@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
|
@@ -1,38 +1,27 @@
|
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
*/
|
|
9
|
-
sap.ui.define(
|
|
10
|
-
[
|
|
11
|
-
"./support/AnnotationIssue.support",
|
|
12
|
-
"./support/CollectionFacetMissingID.support",
|
|
13
|
-
"./support/CollectionFacetUnsupportedLevel.support",
|
|
14
|
-
"./support/InvalidAnnotationColumnKey.support"
|
|
15
|
-
],
|
|
16
|
-
function(AnnotationIssue, CollectionFacetMissingID, CollectionFacetUnsupportedLevel, InvalidAnnotationColumnKey) {
|
|
17
|
-
"use strict";
|
|
5
|
+
sap.ui.define(["./support/AnnotationIssue.support", "./support/CollectionFacetMissingID.support", "./support/CollectionFacetUnsupportedLevel.support", "./support/InvalidAnnotationColumnKey.support"], function (AnnotationIssue, CollectionFacetMissingID, CollectionFacetUnsupportedLevel, InvalidAnnotationColumnKey) {
|
|
6
|
+
"use strict";
|
|
18
7
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
8
|
+
sap.ui.support.SystemPresets.FeV4 = {
|
|
9
|
+
id: "FioriElementsV4",
|
|
10
|
+
title: "Fiori Elements V4",
|
|
11
|
+
description: "Fiori Elements V4 rules",
|
|
12
|
+
selections: [{
|
|
13
|
+
ruleId: "annotationIssue",
|
|
14
|
+
libName: "sap.fe.core"
|
|
15
|
+
}]
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Adds support rules of the sap.fe.core library to the support infrastructure.
|
|
19
|
+
*/
|
|
25
20
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
InvalidAnnotationColumnKey.getRules()
|
|
34
|
-
]
|
|
35
|
-
};
|
|
36
|
-
},
|
|
37
|
-
true
|
|
38
|
-
);
|
|
21
|
+
return {
|
|
22
|
+
name: "sap.fe.core",
|
|
23
|
+
niceName: "SAP.FE V4 - Core library",
|
|
24
|
+
ruleset: [AnnotationIssue.getRules(), CollectionFacetMissingID.getRules(), CollectionFacetUnsupportedLevel.getRules(), InvalidAnnotationColumnKey.getRules()]
|
|
25
|
+
};
|
|
26
|
+
}, false);
|
|
27
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImxpYnJhcnkuc3VwcG9ydC50cyJdLCJuYW1lcyI6WyJzYXAiLCJ1aSIsInN1cHBvcnQiLCJTeXN0ZW1QcmVzZXRzIiwiRmVWNCIsImlkIiwidGl0bGUiLCJkZXNjcmlwdGlvbiIsInNlbGVjdGlvbnMiLCJydWxlSWQiLCJsaWJOYW1lIiwibmFtZSIsIm5pY2VOYW1lIiwicnVsZXNldCIsIkFubm90YXRpb25Jc3N1ZSIsImdldFJ1bGVzIiwiQ29sbGVjdGlvbkZhY2V0TWlzc2luZ0lEIiwiQ29sbGVjdGlvbkZhY2V0VW5zdXBwb3J0ZWRMZXZlbCIsIkludmFsaWRBbm5vdGF0aW9uQ29sdW1uS2V5Il0sIm1hcHBpbmdzIjoiO0FBQUE7QUFDQTtBQUNBOzs7O0FBRUNBLEVBQUFBLEdBQUcsQ0FBQ0MsRUFBSixDQUFPQyxPQUFSLENBQXdCQyxhQUF4QixDQUFzQ0MsSUFBdEMsR0FBNkM7QUFDNUNDLElBQUFBLEVBQUUsRUFBRSxpQkFEd0M7QUFFNUNDLElBQUFBLEtBQUssRUFBRSxtQkFGcUM7QUFHNUNDLElBQUFBLFdBQVcsRUFBRSx5QkFIK0I7QUFJNUNDLElBQUFBLFVBQVUsRUFBRSxDQUFDO0FBQUVDLE1BQUFBLE1BQU0sRUFBRSxpQkFBVjtBQUE2QkMsTUFBQUEsT0FBTyxFQUFFO0FBQXRDLEtBQUQ7QUFKZ0MsR0FBN0M7QUFNQTtBQUNBO0FBQ0E7O1NBQ2U7QUFDZEMsSUFBQUEsSUFBSSxF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ZS5jb3JlXCIgfV1cbn07XG4vKipcbiAqIEFkZHMgc3VwcG9ydCBydWxlcyBvZiB0aGUgc2FwLmZlLmNvcmUgbGlicmFyeSB0byB0aGUgc3VwcG9ydCBpbmZyYXN0cnVjdHVyZS5cbiAqL1xuZXhwb3J0IGRlZmF1bHQge1xuXHRuYW1lOiBcInNhcC5mZS5jb3JlXCIsXG5cdG5pY2VOYW1lOiBcIlNBUC5GRSBWNCAtIENvcmUgbGlicmFyeVwiLFxuXHRydWxlc2V0OiBbXG5cdFx0QW5ub3RhdGlvbklzc3VlLmdldFJ1bGVzKCksXG5cdFx0Q29sbGVjdGlvbkZhY2V0TWlzc2luZ0lELmdldFJ1bGVzKCksXG5cdFx0Q29sbGVjdGlvbkZhY2V0VW5zdXBwb3J0ZWRMZXZlbC5nZXRSdWxlcygpLFxuXHRcdEludmFsaWRBbm5vdGF0aW9uQ29sdW1uS2V5LmdldFJ1bGVzKClcblx0XVxufTtcbiJdfQ==
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as AnnotationIssue from "./support/AnnotationIssue.support";
|
|
2
|
+
import * as CollectionFacetMissingID from "./support/CollectionFacetMissingID.support";
|
|
3
|
+
import * as CollectionFacetUnsupportedLevel from "./support/CollectionFacetUnsupportedLevel.support";
|
|
4
|
+
import * as InvalidAnnotationColumnKey from "./support/InvalidAnnotationColumnKey.support";
|
|
5
|
+
(sap.ui.support as any).SystemPresets.FeV4 = {
|
|
6
|
+
id: "FioriElementsV4",
|
|
7
|
+
title: "Fiori Elements V4",
|
|
8
|
+
description: "Fiori Elements V4 rules",
|
|
9
|
+
selections: [{ ruleId: "annotationIssue", libName: "sap.fe.core" }]
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Adds support rules of the sap.fe.core library to the support infrastructure.
|
|
13
|
+
*/
|
|
14
|
+
export default {
|
|
15
|
+
name: "sap.fe.core",
|
|
16
|
+
niceName: "SAP.FE V4 - Core library",
|
|
17
|
+
ruleset: [
|
|
18
|
+
AnnotationIssue.getRules(),
|
|
19
|
+
CollectionFacetMissingID.getRules(),
|
|
20
|
+
CollectionFacetUnsupportedLevel.getRules(),
|
|
21
|
+
InvalidAnnotationColumnKey.getRules()
|
|
22
|
+
]
|
|
23
|
+
};
|
|
@@ -0,0 +1,420 @@
|
|
|
1
|
+
import Log from "sap/base/Log";
|
|
2
|
+
import DataType from "sap/ui/base/DataType";
|
|
3
|
+
import TemplatedViewServiceFactory from "sap/fe/core/services/TemplatedViewServiceFactory";
|
|
4
|
+
import ResourceModelServiceFactory from "sap/fe/core/services/ResourceModelServiceFactory";
|
|
5
|
+
import CacheHandlerServiceFactory from "sap/fe/core/services/CacheHandlerServiceFactory";
|
|
6
|
+
import NavigationService from "sap/fe/core/services/NavigationServiceFactory";
|
|
7
|
+
import RoutingServiceFactory from "sap/fe/core/services/RoutingServiceFactory";
|
|
8
|
+
import SideEffectsServiceFactory from "sap/fe/core/services/SideEffectsServiceFactory";
|
|
9
|
+
import ShellServicesFactory from "sap/fe/core/services/ShellServicesFactory";
|
|
10
|
+
import AsyncComponentServiceFactory from "sap/fe/core/services/AsyncComponentServiceFactory";
|
|
11
|
+
import EnvironmentServiceFactory from "sap/fe/core/services/EnvironmentServiceFactory";
|
|
12
|
+
import ServiceFactoryRegistry from "sap/ui/core/service/ServiceFactoryRegistry";
|
|
13
|
+
import "sap/ui/core/Core";
|
|
14
|
+
import "sap/ui/core/library";
|
|
15
|
+
import "sap/fe/navigation/library";
|
|
16
|
+
import "sap/fe/placeholder/library";
|
|
17
|
+
import "sap/ui/fl/library";
|
|
18
|
+
import "sap/ui/mdc/library";
|
|
19
|
+
import "sap/fe/core/formatters/ValueFormatter";
|
|
20
|
+
import "sap/fe/core/formatters/FPMFormatter";
|
|
21
|
+
import "sap/fe/core/type/Email";
|
|
22
|
+
/**
|
|
23
|
+
* Root namespace for all the libraries related to SAP Fiori elements.
|
|
24
|
+
*
|
|
25
|
+
* @namespace
|
|
26
|
+
* @name sap.fe
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Library providing the core functionality of the runtime for SAP Fiori elements for OData V4.
|
|
32
|
+
*
|
|
33
|
+
* @namespace
|
|
34
|
+
* @name sap.fe.core
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Collection of controller extensions used internally in SAP Fiori elements exposing a method that you can override to allow more flexibility.
|
|
40
|
+
*
|
|
41
|
+
* @namespace
|
|
42
|
+
* @name sap.fe.core.controllerextensions
|
|
43
|
+
* @public
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Collection of classes provided by SAP Fiori elements for the Flexible Programming Model
|
|
48
|
+
*
|
|
49
|
+
* @namespace
|
|
50
|
+
* @name sap.fe.core.fpm
|
|
51
|
+
* @public
|
|
52
|
+
*/
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* @namespace
|
|
56
|
+
* @name sap.fe.core.actions
|
|
57
|
+
* @private
|
|
58
|
+
*/
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* @namespace
|
|
62
|
+
* @name sap.fe.common
|
|
63
|
+
* @private
|
|
64
|
+
*/
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* @namespace
|
|
68
|
+
* @name sap.fe.core.model
|
|
69
|
+
* @private
|
|
70
|
+
*/
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @namespace
|
|
74
|
+
* @name sap.fe.core.navigation
|
|
75
|
+
* @private
|
|
76
|
+
*/
|
|
77
|
+
sap.ui.getCore().initLibrary({
|
|
78
|
+
name: "sap.fe.core",
|
|
79
|
+
dependencies: ["sap.ui.core", "sap.fe.navigation", "sap.fe.placeholder", "sap.ui.fl", "sap.ui.mdc"],
|
|
80
|
+
types: ["sap.fe.core.CreationMode", "sap.fe.core.VariantManagement"],
|
|
81
|
+
interfaces: [],
|
|
82
|
+
controls: [],
|
|
83
|
+
elements: [],
|
|
84
|
+
version: "${version}",
|
|
85
|
+
noLibraryCSS: true,
|
|
86
|
+
extensions: {
|
|
87
|
+
//Configuration used for rule loading of Support Assistant
|
|
88
|
+
"sap.ui.support": {
|
|
89
|
+
publicRules: true,
|
|
90
|
+
internalRules: true
|
|
91
|
+
},
|
|
92
|
+
flChangeHandlers: {
|
|
93
|
+
"sap.fe.core.controls.FilterBar": "sap/ui/mdc/flexibility/FilterBar"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
const thisLib = (sap as any).fe.core;
|
|
98
|
+
/**
|
|
99
|
+
* Available values for invocation grouping.
|
|
100
|
+
*
|
|
101
|
+
* @readonly
|
|
102
|
+
* @enum {string}
|
|
103
|
+
* @private
|
|
104
|
+
*/
|
|
105
|
+
thisLib.InvocationGrouping = {
|
|
106
|
+
/**
|
|
107
|
+
* Isolated.
|
|
108
|
+
*
|
|
109
|
+
* @constant
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @public
|
|
112
|
+
*/
|
|
113
|
+
Isolated: "Isolated",
|
|
114
|
+
/**
|
|
115
|
+
* ChangeSet.
|
|
116
|
+
*
|
|
117
|
+
* @constant
|
|
118
|
+
* @type {string}
|
|
119
|
+
* @public
|
|
120
|
+
*/
|
|
121
|
+
ChangeSet: "ChangeSet"
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* Available values for creation mode.
|
|
125
|
+
*
|
|
126
|
+
* @readonly
|
|
127
|
+
* @enum {string}
|
|
128
|
+
* @private
|
|
129
|
+
*/
|
|
130
|
+
thisLib.CreationMode = {
|
|
131
|
+
/**
|
|
132
|
+
* New Page.
|
|
133
|
+
*
|
|
134
|
+
* @constant
|
|
135
|
+
* @type {string}
|
|
136
|
+
* @public
|
|
137
|
+
*/
|
|
138
|
+
NewPage: "NewPage",
|
|
139
|
+
/**
|
|
140
|
+
* Sync.
|
|
141
|
+
*
|
|
142
|
+
* @constant
|
|
143
|
+
* @type {string}
|
|
144
|
+
* @public
|
|
145
|
+
*/
|
|
146
|
+
Sync: "Sync",
|
|
147
|
+
/**
|
|
148
|
+
* Async.
|
|
149
|
+
*
|
|
150
|
+
* @constant
|
|
151
|
+
* @type {string}
|
|
152
|
+
* @public
|
|
153
|
+
*/
|
|
154
|
+
Async: "Async",
|
|
155
|
+
/**
|
|
156
|
+
* Deferred.
|
|
157
|
+
*
|
|
158
|
+
* @constant
|
|
159
|
+
* @type {string}
|
|
160
|
+
* @public
|
|
161
|
+
*/
|
|
162
|
+
Deferred: "Deferred",
|
|
163
|
+
/**
|
|
164
|
+
* Inline.
|
|
165
|
+
*
|
|
166
|
+
* @constant
|
|
167
|
+
* @type {string}
|
|
168
|
+
* @public
|
|
169
|
+
*/
|
|
170
|
+
Inline: "Inline",
|
|
171
|
+
/**
|
|
172
|
+
* Creation row.
|
|
173
|
+
*
|
|
174
|
+
* @constant
|
|
175
|
+
* @type {string}
|
|
176
|
+
* @public
|
|
177
|
+
*/
|
|
178
|
+
CreationRow: "CreationRow",
|
|
179
|
+
/**
|
|
180
|
+
* External (by outbound navigation).
|
|
181
|
+
*
|
|
182
|
+
* @constant
|
|
183
|
+
* @type {string}
|
|
184
|
+
* @public
|
|
185
|
+
*/
|
|
186
|
+
External: "External"
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* Available values for Variant Management.
|
|
190
|
+
*
|
|
191
|
+
* @readonly
|
|
192
|
+
* @enum {string}
|
|
193
|
+
* @private
|
|
194
|
+
*/
|
|
195
|
+
thisLib.VariantManagement = {
|
|
196
|
+
/**
|
|
197
|
+
* No variant management at all.
|
|
198
|
+
*
|
|
199
|
+
* @constant
|
|
200
|
+
* @type {string}
|
|
201
|
+
* @public
|
|
202
|
+
*/
|
|
203
|
+
None: "None",
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* One variant configuration for the whole page.
|
|
207
|
+
*
|
|
208
|
+
* @constant
|
|
209
|
+
* @type {string}
|
|
210
|
+
* @public
|
|
211
|
+
*/
|
|
212
|
+
Page: "Page",
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Variant management on control level.
|
|
216
|
+
*
|
|
217
|
+
* @constant
|
|
218
|
+
* @type {string}
|
|
219
|
+
* @public
|
|
220
|
+
*/
|
|
221
|
+
Control: "Control"
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
* Available constants.
|
|
225
|
+
*
|
|
226
|
+
* @readonly
|
|
227
|
+
* @enum {string}
|
|
228
|
+
* @private
|
|
229
|
+
*/
|
|
230
|
+
thisLib.Constants = {
|
|
231
|
+
/**
|
|
232
|
+
* Indicates cancelling of an action dialog.
|
|
233
|
+
*
|
|
234
|
+
* @constant
|
|
235
|
+
* @type {string}
|
|
236
|
+
* @public
|
|
237
|
+
*/
|
|
238
|
+
CancelActionDialog: "cancel"
|
|
239
|
+
};
|
|
240
|
+
/**
|
|
241
|
+
* Available values for programming model.
|
|
242
|
+
*
|
|
243
|
+
* @readonly
|
|
244
|
+
* @enum {string}
|
|
245
|
+
* @private
|
|
246
|
+
*/
|
|
247
|
+
thisLib.ProgrammingModel = {
|
|
248
|
+
/**
|
|
249
|
+
* Draft.
|
|
250
|
+
*
|
|
251
|
+
* @constant
|
|
252
|
+
* @type {string}
|
|
253
|
+
* @public
|
|
254
|
+
*/
|
|
255
|
+
Draft: "Draft",
|
|
256
|
+
/**
|
|
257
|
+
* Sticky.
|
|
258
|
+
*
|
|
259
|
+
* @constant
|
|
260
|
+
* @type {string}
|
|
261
|
+
* @public
|
|
262
|
+
*/
|
|
263
|
+
Sticky: "Sticky",
|
|
264
|
+
/**
|
|
265
|
+
* NonDraft.
|
|
266
|
+
*
|
|
267
|
+
* @constant
|
|
268
|
+
* @type {string}
|
|
269
|
+
* @public
|
|
270
|
+
*/
|
|
271
|
+
NonDraft: "NonDraft"
|
|
272
|
+
};
|
|
273
|
+
/**
|
|
274
|
+
* Available values for draft status.
|
|
275
|
+
*
|
|
276
|
+
* @readonly
|
|
277
|
+
* @enum {string}
|
|
278
|
+
* @private
|
|
279
|
+
*/
|
|
280
|
+
thisLib.DraftStatus = {
|
|
281
|
+
/**
|
|
282
|
+
* Saving.
|
|
283
|
+
*
|
|
284
|
+
* @constant
|
|
285
|
+
* @type {string}
|
|
286
|
+
* @public
|
|
287
|
+
*/
|
|
288
|
+
Saving: "Saving",
|
|
289
|
+
/**
|
|
290
|
+
* Saved.
|
|
291
|
+
*
|
|
292
|
+
* @constant
|
|
293
|
+
* @type {string}
|
|
294
|
+
* @public
|
|
295
|
+
*/
|
|
296
|
+
Saved: "Saved",
|
|
297
|
+
/**
|
|
298
|
+
* Clear.
|
|
299
|
+
*
|
|
300
|
+
* @constant
|
|
301
|
+
* @type {string}
|
|
302
|
+
* @public
|
|
303
|
+
*/
|
|
304
|
+
Clear: "Clear"
|
|
305
|
+
};
|
|
306
|
+
/**
|
|
307
|
+
* Edit mode values.
|
|
308
|
+
*
|
|
309
|
+
* @readonly
|
|
310
|
+
* @enum {string}
|
|
311
|
+
* @private
|
|
312
|
+
*/
|
|
313
|
+
thisLib.EditMode = {
|
|
314
|
+
/**
|
|
315
|
+
* View is currently displaying only.
|
|
316
|
+
*
|
|
317
|
+
* @constant
|
|
318
|
+
* @type {string}
|
|
319
|
+
* @public
|
|
320
|
+
*/
|
|
321
|
+
Display: "Display",
|
|
322
|
+
/**
|
|
323
|
+
* View is currently editable.
|
|
324
|
+
*
|
|
325
|
+
* @constant
|
|
326
|
+
* @type {string}
|
|
327
|
+
* @public
|
|
328
|
+
*/
|
|
329
|
+
Editable: "Editable"
|
|
330
|
+
};
|
|
331
|
+
/**
|
|
332
|
+
* Template views.
|
|
333
|
+
*
|
|
334
|
+
* @readonly
|
|
335
|
+
* @enum {string}
|
|
336
|
+
* @private
|
|
337
|
+
*/
|
|
338
|
+
thisLib.TemplateContentView = {
|
|
339
|
+
/**
|
|
340
|
+
* Hybrid.
|
|
341
|
+
* @constant
|
|
342
|
+
* @type {string}
|
|
343
|
+
*/
|
|
344
|
+
Hybrid: "Hybrid",
|
|
345
|
+
/**
|
|
346
|
+
* Chart.
|
|
347
|
+
* @constant
|
|
348
|
+
* @type {string}
|
|
349
|
+
*/
|
|
350
|
+
Chart: "Chart",
|
|
351
|
+
/**
|
|
352
|
+
* Table.
|
|
353
|
+
* @constant
|
|
354
|
+
* @type {string}
|
|
355
|
+
*/
|
|
356
|
+
Table: "Table"
|
|
357
|
+
};
|
|
358
|
+
/**
|
|
359
|
+
* Possible initial load (first app startup) modes for a ListReport.
|
|
360
|
+
*
|
|
361
|
+
* @enum {string}
|
|
362
|
+
* @name sap.fe.core.InitialLoadMode
|
|
363
|
+
* @readonly
|
|
364
|
+
* @public
|
|
365
|
+
* @since 1.86.0
|
|
366
|
+
*/
|
|
367
|
+
thisLib.InitialLoadMode = {
|
|
368
|
+
/**
|
|
369
|
+
* Data will be loaded initially.
|
|
370
|
+
*
|
|
371
|
+
* @name sap.fe.core.InitialLoadMode.Enabled
|
|
372
|
+
* @public
|
|
373
|
+
*/
|
|
374
|
+
Enabled: "Enabled",
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Data will not be loaded initially.
|
|
378
|
+
* @name sap.fe.core.InitialLoadMode.Disabled
|
|
379
|
+
* @public
|
|
380
|
+
*/
|
|
381
|
+
Disabled: "Disabled",
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Data will be loaded initially if filters are set.
|
|
385
|
+
* @name sap.fe.core.InitialLoadMode.Auto
|
|
386
|
+
* @public
|
|
387
|
+
*/
|
|
388
|
+
Auto: "Auto"
|
|
389
|
+
};
|
|
390
|
+
// explicit type to handle backward compatibility with boolean values
|
|
391
|
+
const InitialLoadType = DataType.createType("sap.fe.core.InitialLoadMode", {
|
|
392
|
+
defaultValue: thisLib.InitialLoadMode.Auto,
|
|
393
|
+
isValid: function(vValue: any) {
|
|
394
|
+
if (typeof vValue === "boolean") {
|
|
395
|
+
Log.warning(
|
|
396
|
+
"DEPRECATED: boolean value not allowed for 'initialLoad' manifest setting - supported values are: Disabled|Enabled|Auto"
|
|
397
|
+
);
|
|
398
|
+
}
|
|
399
|
+
return vValue === undefined || vValue === null || typeof vValue === "boolean" || thisLib.InitialLoadMode.hasOwnProperty(vValue);
|
|
400
|
+
}
|
|
401
|
+
});
|
|
402
|
+
// normalize a value, taking care of boolean type
|
|
403
|
+
InitialLoadType.setNormalizer(function(vValue: any) {
|
|
404
|
+
if (!vValue) {
|
|
405
|
+
// undefined, null or false
|
|
406
|
+
return thisLib.InitialLoadMode.Disabled;
|
|
407
|
+
}
|
|
408
|
+
return vValue === true ? thisLib.InitialLoadMode.Enabled : vValue;
|
|
409
|
+
});
|
|
410
|
+
ServiceFactoryRegistry.register("sap.fe.core.services.TemplatedViewService", new TemplatedViewServiceFactory());
|
|
411
|
+
ServiceFactoryRegistry.register("sap.fe.core.services.ResourceModelService", new ResourceModelServiceFactory());
|
|
412
|
+
ServiceFactoryRegistry.register("sap.fe.core.services.CacheHandlerService", new CacheHandlerServiceFactory());
|
|
413
|
+
ServiceFactoryRegistry.register("sap.fe.core.services.NavigationService", new NavigationService());
|
|
414
|
+
ServiceFactoryRegistry.register("sap.fe.core.services.RoutingService", new RoutingServiceFactory());
|
|
415
|
+
ServiceFactoryRegistry.register("sap.fe.core.services.SideEffectsService", new SideEffectsServiceFactory());
|
|
416
|
+
ServiceFactoryRegistry.register("sap.fe.core.services.ShellServices", new ShellServicesFactory());
|
|
417
|
+
ServiceFactoryRegistry.register("sap.fe.core.services.EnvironmentService", new EnvironmentServiceFactory());
|
|
418
|
+
ServiceFactoryRegistry.register("sap.fe.core.services.AsyncComponentService", new AsyncComponentServiceFactory());
|
|
419
|
+
|
|
420
|
+
export default thisLib;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* SAP UI development toolkit for HTML5 (SAPUI5)
|
|
3
3
|
* (c) Copyright 2009-2021 SAP SE. All rights reserved
|
|
4
4
|
*/
|
|
5
|
-
sap.ui.define(["sap/base/util/ObjectPath"], function (ObjectPath) {
|
|
5
|
+
sap.ui.define(["sap/base/util/ObjectPath", "sap/base/Log"], function (ObjectPath, Log) {
|
|
6
6
|
"use strict";
|
|
7
7
|
|
|
8
8
|
var _exports = {};
|
|
@@ -16,7 +16,8 @@ sap.ui.define(["sap/base/util/ObjectPath"], function (ObjectPath) {
|
|
|
16
16
|
var pageSettings;
|
|
17
17
|
var propertyChange = changeContent === null || changeContent === void 0 ? void 0 : changeContent.entityPropertyChange; // return unmodified manifest in case change not valid
|
|
18
18
|
|
|
19
|
-
if ((propertyChange === null || propertyChange === void 0 ? void 0 : propertyChange.operation) !== "UPSERT" || !(propertyChange !== null && propertyChange !== void 0 && propertyChange.propertyPath) ||
|
|
19
|
+
if ((propertyChange === null || propertyChange === void 0 ? void 0 : propertyChange.operation) !== "UPSERT" || !(propertyChange !== null && propertyChange !== void 0 && propertyChange.propertyPath) || (propertyChange === null || propertyChange === void 0 ? void 0 : propertyChange.propertyValue) === undefined || propertyChange !== null && propertyChange !== void 0 && propertyChange.propertyPath.startsWith("/")) {
|
|
20
|
+
Log.error("Change content is not a valid");
|
|
20
21
|
return manifest;
|
|
21
22
|
}
|
|
22
23
|
|
|
@@ -34,6 +35,7 @@ sap.ui.define(["sap/base/util/ObjectPath"], function (ObjectPath) {
|
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
if (!pageSettings) {
|
|
38
|
+
Log.error("No Fiori elements page with ID " + pageID + " found in routing targets.");
|
|
37
39
|
return manifest;
|
|
38
40
|
}
|
|
39
41
|
|
|
@@ -59,4 +61,4 @@ sap.ui.define(["sap/base/util/ObjectPath"], function (ObjectPath) {
|
|
|
59
61
|
_exports.applyChange = applyChange;
|
|
60
62
|
return _exports;
|
|
61
63
|
}, false);
|
|
62
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
64
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkNoYW5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ZpZ3VyYXRpb24gaGFzIHRvIHN0YXkgdG9nZXRoZXIuIEZvciBub3cgcmVseSBvbiB0aGUgZmFjdCB0aGUgQCBpcyBpbiB0aGUgbGFzdCBwYXJ0XG5cdFx0Zm9yIChsZXQgaSA9IDE7IGkgPCBwcm9wZXJ0eVBhdGgubGVuZ3RoOyBpKyspIHtcblx0XHRcdGFubm90YXRpb25QYXRoICs9IChpID4gMSA/IFwiL1wiIDogXCJcIikgKyBwcm9wZXJ0eVBhdGhbaV07XG5cdFx0XHRpZiAoYW5ub3RhdGlvblBhdGguaW5kZXhPZihcIkBcIikgPiAtMSkge1xuXHRcdFx0XHRwcm9wZXJ0eVBhdGggPSBbXCJjb250cm9sQ29uZmlndXJhdGlvblwiLCBhbm5vdGF0aW9uUGF0aF0uY29uY2F0KHByb3BlcnR5UGF0aC5zbGljZShpICsgMSkpO1xuXHRcdFx0XHRicmVhaztcblx0XHRcdH1cblx0XHR9XG5cdH1cblx0T2JqZWN0UGF0aC5zZXQocHJvcGVydHlQYXRoLCBwcm9wZXJ0eUNoYW5nZS5wcm9wZXJ0eVZhbHVlLCBwYWdlU2V0dGluZ3MpO1xuXG5cdHJldHVybiBtYW5pZmVzdDtcbn1cbiJdfQ==
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* ${copyright}
|
|
3
3
|
*/
|
|
4
4
|
import ObjectPath from "sap/base/util/ObjectPath";
|
|
5
|
+
import Log from "sap/base/Log";
|
|
5
6
|
|
|
6
7
|
export type Change = {
|
|
7
8
|
getContent(): ChangeContent;
|
|
@@ -29,9 +30,10 @@ export function applyChange(manifest: any, change: Change): any {
|
|
|
29
30
|
if (
|
|
30
31
|
propertyChange?.operation !== "UPSERT" ||
|
|
31
32
|
!propertyChange?.propertyPath ||
|
|
32
|
-
|
|
33
|
+
propertyChange?.propertyValue === undefined ||
|
|
33
34
|
propertyChange?.propertyPath.startsWith("/")
|
|
34
35
|
) {
|
|
36
|
+
Log.error("Change content is not a valid");
|
|
35
37
|
return manifest;
|
|
36
38
|
}
|
|
37
39
|
|
|
@@ -45,6 +47,7 @@ export function applyChange(manifest: any, change: Change): any {
|
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
if (!pageSettings) {
|
|
50
|
+
Log.error("No Fiori elements page with ID " + pageID + " found in routing targets.");
|
|
48
51
|
return manifest;
|
|
49
52
|
}
|
|
50
53
|
|
|
@@ -83,9 +83,26 @@ CANCEL=Cancel
|
|
|
83
83
|
# XMSG,30
|
|
84
84
|
WARNING=Warning
|
|
85
85
|
|
|
86
|
+
# XMSG,30
|
|
87
|
+
PROCEED=Proceed anyway?
|
|
88
|
+
|
|
89
|
+
# XBUT,50
|
|
90
|
+
IGNORE=Ignore Warnings and {0}
|
|
91
|
+
|
|
92
|
+
|
|
86
93
|
# YMSG, 100: Used in the message box after pressing the edit button of a locked object.
|
|
87
94
|
C_DRAFT_OBJECT_PAGE_DRAFT_LOCKED_BY_USER=You can\'t edit this object at the moment \nIt is locked by {0}
|
|
88
95
|
|
|
96
|
+
# ------------------------ COLLABORATION DRAFT ------------------------
|
|
97
|
+
# YMSG
|
|
98
|
+
C_COLLABORATIONDRAFT_ACTIVATE=User "{0}" has saved the document.
|
|
99
|
+
|
|
100
|
+
# YMSG
|
|
101
|
+
C_COLLABORATIONDRAFT_DISCARD=User "{0}" has discarded the draft document.
|
|
102
|
+
|
|
103
|
+
# YMSG
|
|
104
|
+
C_COLLABORATIONDRAFT_DELETE=User "{0}" has deleted the currently viewed document.
|
|
105
|
+
|
|
89
106
|
# ------------------------ ACTION CONTROLLER ------------------------
|
|
90
107
|
|
|
91
108
|
# XTIT,70
|
|
@@ -365,6 +382,9 @@ C_DRAFT_OBJECT_PAGE_DRAFT_UNSAVED_CHANGES=Another user edited this object withou
|
|
|
365
382
|
# XBUT,15: Text for button to edit draft
|
|
366
383
|
C_COMMON_OBJECT_PAGE_EDIT=Edit
|
|
367
384
|
|
|
385
|
+
# XBUT,15: Text for button to save draft
|
|
386
|
+
C_OP_OBJECT_PAGE_SAVE=Save
|
|
387
|
+
|
|
368
388
|
# XTIT,50: Edit state, filter
|
|
369
389
|
C_DRAFT_EDIT_STATE_DRAFT_ALL_FILTER=All
|
|
370
390
|
|
|
@@ -495,14 +515,11 @@ C_MASS_EDIT_CONFIRM_MESSAGE_DETAIL_HEADER=Possible Causes
|
|
|
495
515
|
#XMSG: Message details cause grouping text
|
|
496
516
|
C_MASS_EDIT_CONFIRM_MESSAGE_DETAIL_REASON=Selected products are excluded if:
|
|
497
517
|
|
|
498
|
-
#XMSG: Message details cause for draft products to confirm non-editable contexts
|
|
518
|
+
#XMSG: Message details cause for draft products to confirm non-editable contexts
|
|
499
519
|
C_MASS_EDIT_CONFIRM_MESSAGE_DETAIL_REASON_DRAFT=Somebody is working on the product (a draft exists or changes haven't been saved).
|
|
500
520
|
|
|
501
521
|
#XMSG: Message details cause for non-editable products to confirm non-editable contexts.
|
|
502
522
|
C_MASS_EDIT_CONFIRM_MESSAGE_DETAIL_REASON_NON_EDITABLE=Editing isn't allowed for the product.
|
|
503
523
|
|
|
504
524
|
# XBUT,30: Text for Confirm Mass Edit.
|
|
505
|
-
C_MASS_EDIT_CONFIRM_BUTTON_TEXT=Edit
|
|
506
|
-
|
|
507
|
-
# XBUT,30: Text for the cancel Mass Edit.
|
|
508
|
-
C_MASS_EDIT_CANCEL_BUTTON_TEXT=Cancel
|
|
525
|
+
C_MASS_EDIT_CONFIRM_BUTTON_TEXT=Edit
|