@sapui5/sap.fe.templates 1.98.0 → 1.101.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.
Files changed (144) hide show
  1. package/package.json +9 -6
  2. package/src/sap/fe/templates/.library +1 -2
  3. package/src/sap/fe/templates/AnalyticalListPage/Component.js +25 -12
  4. package/src/sap/fe/templates/AnalyticalListPage/Component.ts +6 -0
  5. package/src/sap/fe/templates/AnalyticalListPage/chart/FEChartDelegate.js +31 -32
  6. package/src/sap/fe/templates/AnalyticalListPage/chart/FEChartDelegate.ts +25 -0
  7. package/src/sap/fe/templates/Feedback.js +80 -0
  8. package/src/sap/fe/templates/Feedback.ts +67 -0
  9. package/src/sap/fe/templates/ListComponent.js +157 -118
  10. package/src/sap/fe/templates/ListComponent.ts +105 -0
  11. package/src/sap/fe/templates/ListReport/Component.js +83 -39
  12. package/src/sap/fe/templates/ListReport/Component.ts +39 -0
  13. package/src/sap/fe/templates/ListReport/ExtensionAPI.js +124 -107
  14. package/src/sap/fe/templates/ListReport/ExtensionAPI.ts +100 -0
  15. package/src/sap/fe/templates/ListReport/ListReport.view.xml +34 -27
  16. package/src/sap/fe/templates/ListReport/ListReportController.controller.js +1112 -1001
  17. package/src/sap/fe/templates/ListReport/ListReportController.controller.ts +1009 -0
  18. package/src/sap/fe/templates/ListReport/overrides/IntentBasedNavigation.js +55 -53
  19. package/src/sap/fe/templates/ListReport/overrides/IntentBasedNavigation.ts +55 -0
  20. package/src/sap/fe/templates/ListReport/overrides/Share.js +135 -136
  21. package/src/sap/fe/templates/ListReport/overrides/Share.ts +134 -0
  22. package/src/sap/fe/templates/ListReport/overrides/ViewState.js +444 -406
  23. package/src/sap/fe/templates/ListReport/overrides/ViewState.ts +413 -0
  24. package/src/sap/fe/templates/ListReport/view/fragments/CollectionVisualization.fragment.xml +31 -23
  25. package/src/sap/fe/templates/ListReport/view/fragments/MultipleMode.fragment.js +72 -0
  26. package/src/sap/fe/templates/ListReport/view/fragments/MultipleMode.fragment.ts +62 -0
  27. package/src/sap/fe/templates/ListReport/view/fragments/MultipleModeOld.fragment.xml +50 -0
  28. package/src/sap/fe/templates/ObjectPage/AnnotationHelper.js +479 -473
  29. package/src/sap/fe/templates/ObjectPage/AnnotationHelper.ts +511 -0
  30. package/src/sap/fe/templates/ObjectPage/Component.js +170 -149
  31. package/src/sap/fe/templates/ObjectPage/Component.ts +131 -0
  32. package/src/sap/fe/templates/ObjectPage/ExtensionAPI.js +141 -142
  33. package/src/sap/fe/templates/ObjectPage/ExtensionAPI.ts +116 -0
  34. package/src/sap/fe/templates/ObjectPage/ObjectPage.view.xml +14 -53
  35. package/src/sap/fe/templates/ObjectPage/ObjectPageController.controller.js +1531 -1464
  36. package/src/sap/fe/templates/ObjectPage/ObjectPageController.controller.ts +1442 -0
  37. package/src/sap/fe/templates/ObjectPage/controls/StashableHBox.js +137 -95
  38. package/src/sap/fe/templates/ObjectPage/controls/StashableHBox.ts +84 -0
  39. package/src/sap/fe/templates/ObjectPage/controls/StashableVBox.js +25 -21
  40. package/src/sap/fe/templates/ObjectPage/controls/StashableVBox.ts +10 -0
  41. package/src/sap/fe/templates/ObjectPage/controls/SubSectionBlock.js +99 -53
  42. package/src/sap/fe/templates/ObjectPage/controls/SubSectionBlock.ts +50 -0
  43. package/src/sap/fe/templates/ObjectPage/designtime/FlexBox.designtime.js +21 -16
  44. package/src/sap/fe/templates/ObjectPage/designtime/FlexBox.designtime.ts +15 -0
  45. package/src/sap/fe/templates/ObjectPage/designtime/StashableHBox.designtime.js +51 -47
  46. package/src/sap/fe/templates/ObjectPage/designtime/StashableHBox.designtime.ts +47 -0
  47. package/src/sap/fe/templates/ObjectPage/designtime/StashableVBox.designtime.js +35 -34
  48. package/src/sap/fe/templates/ObjectPage/designtime/StashableVBox.designtime.ts +34 -0
  49. package/src/sap/fe/templates/ObjectPage/flexibility/StashableHBox.flexibility.js +16 -15
  50. package/src/sap/fe/templates/ObjectPage/flexibility/StashableHBox.flexibility.ts +13 -0
  51. package/src/sap/fe/templates/ObjectPage/flexibility/StashableVBox.flexibility.js +12 -11
  52. package/src/sap/fe/templates/ObjectPage/flexibility/StashableVBox.flexibility.ts +7 -0
  53. package/src/sap/fe/templates/ObjectPage/overrides/IntentBasedNavigation.js +56 -52
  54. package/src/sap/fe/templates/ObjectPage/overrides/IntentBasedNavigation.ts +57 -0
  55. package/src/sap/fe/templates/ObjectPage/overrides/InternalRouting.js +16 -17
  56. package/src/sap/fe/templates/ObjectPage/overrides/InternalRouting.ts +13 -0
  57. package/src/sap/fe/templates/ObjectPage/overrides/MessageHandler.js +14 -17
  58. package/src/sap/fe/templates/ObjectPage/overrides/MessageHandler.ts +14 -0
  59. package/src/sap/fe/templates/ObjectPage/overrides/Paginator.js +24 -21
  60. package/src/sap/fe/templates/ObjectPage/overrides/Paginator.ts +21 -0
  61. package/src/sap/fe/templates/ObjectPage/overrides/Share.js +311 -317
  62. package/src/sap/fe/templates/ObjectPage/overrides/Share.ts +316 -0
  63. package/src/sap/fe/templates/ObjectPage/overrides/ViewState.js +67 -57
  64. package/src/sap/fe/templates/ObjectPage/overrides/ViewState.ts +65 -0
  65. package/src/sap/fe/templates/ObjectPage/templating/ObjectPageTemplating.js +1 -1
  66. package/src/sap/fe/templates/ObjectPage/templating/ObjectPageTemplating.ts +3 -3
  67. package/src/sap/fe/templates/ObjectPage/view/fragments/Actions.fragment.xml +18 -24
  68. package/src/sap/fe/templates/ObjectPage/view/fragments/CollaborationDraft.fragment.xml +38 -0
  69. package/src/sap/fe/templates/ObjectPage/view/fragments/EditableHeaderFacet.fragment.xml +1 -1
  70. package/src/sap/fe/templates/ObjectPage/view/fragments/FooterContent.fragment.xml +9 -5
  71. package/src/sap/fe/templates/ObjectPage/view/fragments/HeaderFacet.fragment.xml +1 -0
  72. package/src/sap/fe/templates/ObjectPage/view/fragments/HeaderFacetCustomContainer.fragment.xml +1 -0
  73. package/src/sap/fe/templates/ObjectPage/view/fragments/Heading.fragment.xml +33 -0
  74. package/src/sap/fe/templates/ObjectPage/view/fragments/HeadingAvatar.fragment.xml +17 -0
  75. package/src/sap/fe/templates/ObjectPage/view/fragments/HeadingTitle.fragment.xml +18 -0
  76. package/src/sap/fe/templates/ObjectPage/view/fragments/SectionFormContent.fragment.xml +3 -3
  77. package/src/sap/fe/templates/ObjectPage/view/fragments/SectionMoreFormContent.fragment.xml +3 -3
  78. package/src/sap/fe/templates/ObjectPage/view/fragments/SwitchDraftAndActiveObjectPopOver.fragment.xml +27 -0
  79. package/src/sap/fe/templates/RootContainer/controller/Fcl.controller.js +852 -815
  80. package/src/sap/fe/templates/RootContainer/controller/Fcl.controller.ts +795 -0
  81. package/src/sap/fe/templates/RootContainer/controller/NavContainer.controller.js +206 -187
  82. package/src/sap/fe/templates/RootContainer/controller/NavContainer.controller.ts +178 -0
  83. package/src/sap/fe/templates/RootContainer/controller/RootContainerBaseController.js +485 -459
  84. package/src/sap/fe/templates/RootContainer/controller/RootContainerBaseController.ts +438 -0
  85. package/src/sap/fe/templates/RootContainer/overrides/EditFlow.js +17 -14
  86. package/src/sap/fe/templates/RootContainer/overrides/EditFlow.ts +20 -0
  87. package/src/sap/fe/templates/TableScroller.js +46 -53
  88. package/src/sap/fe/templates/TableScroller.ts +48 -0
  89. package/src/sap/fe/templates/controls/Chart.fragment.xml +18 -17
  90. package/src/sap/fe/templates/controls/MacroChart.fragment.xml +22 -0
  91. package/src/sap/fe/templates/library.js +50 -63
  92. package/src/sap/fe/templates/library.ts +57 -0
  93. package/src/sap/fe/templates/messagebundle.properties +32 -36
  94. package/src/sap/fe/templates/messagebundle_ar.properties +15 -8
  95. package/src/sap/fe/templates/messagebundle_bg.properties +15 -8
  96. package/src/sap/fe/templates/messagebundle_ca.properties +15 -8
  97. package/src/sap/fe/templates/messagebundle_cs.properties +15 -8
  98. package/src/sap/fe/templates/messagebundle_cy.properties +15 -8
  99. package/src/sap/fe/templates/messagebundle_da.properties +15 -8
  100. package/src/sap/fe/templates/messagebundle_de.properties +15 -8
  101. package/src/sap/fe/templates/messagebundle_el.properties +16 -9
  102. package/src/sap/fe/templates/messagebundle_en.properties +15 -8
  103. package/src/sap/fe/templates/messagebundle_en_GB.properties +15 -8
  104. package/src/sap/fe/templates/messagebundle_en_US_sappsd.properties +9 -6
  105. package/src/sap/fe/templates/messagebundle_en_US_saprigi.properties +15 -8
  106. package/src/sap/fe/templates/messagebundle_en_US_saptrc.properties +15 -8
  107. package/src/sap/fe/templates/messagebundle_es.properties +15 -8
  108. package/src/sap/fe/templates/messagebundle_es_MX.properties +15 -8
  109. package/src/sap/fe/templates/messagebundle_et.properties +15 -8
  110. package/src/sap/fe/templates/messagebundle_fi.properties +15 -8
  111. package/src/sap/fe/templates/messagebundle_fr.properties +15 -8
  112. package/src/sap/fe/templates/messagebundle_fr_CA.properties +15 -8
  113. package/src/sap/fe/templates/messagebundle_hi.properties +15 -8
  114. package/src/sap/fe/templates/messagebundle_hr.properties +16 -9
  115. package/src/sap/fe/templates/messagebundle_hu.properties +15 -8
  116. package/src/sap/fe/templates/messagebundle_id.properties +17 -10
  117. package/src/sap/fe/templates/messagebundle_it.properties +15 -8
  118. package/src/sap/fe/templates/messagebundle_iw.properties +15 -8
  119. package/src/sap/fe/templates/messagebundle_ja.properties +15 -8
  120. package/src/sap/fe/templates/messagebundle_kk.properties +15 -8
  121. package/src/sap/fe/templates/messagebundle_ko.properties +15 -8
  122. package/src/sap/fe/templates/messagebundle_lt.properties +15 -8
  123. package/src/sap/fe/templates/messagebundle_lv.properties +15 -8
  124. package/src/sap/fe/templates/messagebundle_ms.properties +15 -8
  125. package/src/sap/fe/templates/messagebundle_nl.properties +15 -8
  126. package/src/sap/fe/templates/messagebundle_no.properties +15 -8
  127. package/src/sap/fe/templates/messagebundle_pl.properties +15 -8
  128. package/src/sap/fe/templates/messagebundle_pt.properties +18 -11
  129. package/src/sap/fe/templates/messagebundle_pt_PT.properties +16 -9
  130. package/src/sap/fe/templates/messagebundle_ro.properties +15 -8
  131. package/src/sap/fe/templates/messagebundle_ru.properties +15 -8
  132. package/src/sap/fe/templates/messagebundle_sh.properties +15 -8
  133. package/src/sap/fe/templates/messagebundle_sk.properties +15 -8
  134. package/src/sap/fe/templates/messagebundle_sl.properties +15 -8
  135. package/src/sap/fe/templates/messagebundle_sv.properties +16 -9
  136. package/src/sap/fe/templates/messagebundle_th.properties +15 -8
  137. package/src/sap/fe/templates/messagebundle_tr.properties +15 -8
  138. package/src/sap/fe/templates/messagebundle_uk.properties +16 -9
  139. package/src/sap/fe/templates/messagebundle_vi.properties +15 -8
  140. package/src/sap/fe/templates/messagebundle_zh_CN.properties +15 -8
  141. package/src/sap/fe/templates/messagebundle_zh_TW.properties +15 -8
  142. package/ui5.yaml +0 -3
  143. package/src/sap/fe/templates/ListReport/overrides/MassEdit.js +0 -95
  144. package/src/sap/fe/templates/ListReport/view/fragments/MultipleMode.fragment.xml +0 -49
@@ -1,151 +1,172 @@
1
1
  /*!
2
- * SAPUI5
3
- * (c) Copyright 2009-2022 SAP SE. All rights reserved.
2
+ * SAP UI development toolkit for HTML5 (SAPUI5)
3
+ * (c) Copyright 2009-2021 SAP SE. All rights reserved
4
4
  */
5
- sap.ui.define(
6
- [
7
- "sap/fe/core/TemplateComponent",
8
- "sap/ui/model/odata/v4/ODataListBinding",
9
- "sap/fe/core/CommonUtils",
10
- "sap/base/Log",
11
- "sap/fe/core/library",
12
- "sap/fe/templates/ObjectPage/SectionLayout"
13
- ],
14
- function(TemplateComponent, ODataListBinding, CommonUtils, Log, CoreLibrary, SectionLayout) {
15
- "use strict";
16
-
17
- var VariantManagement = CoreLibrary.VariantManagement,
18
- CreationMode = CoreLibrary.CreationMode,
19
- ObjectPageComponent = TemplateComponent.extend("sap.fe.templates.ObjectPage.Component", {
20
- metadata: {
21
- properties: {
22
- /**
23
- * Defines if and on which level variants can be configured:
24
- * None: no variant configuration at all
25
- * Page: one variant configuration for the whole page
26
- * Control: variant configuration on control level
27
- */
28
- variantManagement: {
29
- type: "sap.fe.core.VariantManagement",
30
- defaultValue: VariantManagement.None
31
- },
32
- /**
33
- * Defines how the sections are rendered
34
- * Page: all sections are shown on one page
35
- * Tabs: each top-level section is shown in an own tab
36
- */
37
- sectionLayout: {
38
- type: "sap.fe.templates.ObjectPage.SectionLayout",
39
- defaultValue: SectionLayout.Page
40
- },
41
- /**
42
- * Enables the related apps features
43
- */
44
- showRelatedApps: {
45
- type: "boolean",
46
- defaultValue: false
47
- },
48
-
49
- additionalSemanticObjects: {
50
- type: "object"
51
- },
52
- /**
53
- * Enables the editable object page header
54
- */
55
- editableHeaderContent: {
56
- type: "boolean",
57
- defaultValue: true
58
- },
59
- /**
60
- * Enables the BreadCrumbs features
61
- */
62
- showBreadCrumbs: {
63
- type: "boolean",
64
- defaultValue: true
65
- },
66
- /**
67
- * Calls draftPrepare on draftEdit
68
- */
69
- prepareOnEdit: {
70
- type: "boolean",
71
- defaultValue: false
72
- },
73
- /**
74
- * Defines the properties which can be used for inbound Navigation
75
- */
76
- inboundParameters: {
77
- type: "object"
78
- }
79
- },
80
- library: "sap.fe.templates",
81
- manifest: "json"
82
- },
83
-
84
- isContextExpected: function() {
85
- return true;
86
- },
87
-
88
- // TODO: this should be ideally be handled by the editflow/routing without the need to have this method in the
89
- // object page - for now keep it here
90
- createDeferredContext: function(sPath, oListBinding, bActionCreate) {
91
- if (!this.DeferredContextCreated) {
92
- this.DeferredContextCreated = true;
93
- var that = this,
94
- oParamters = {
95
- "$$groupId": "$auto.Heroes",
96
- "$$updateGroupId": "$auto"
97
- };
98
- if (!oListBinding || oListBinding.isRelative() === false) {
99
- oListBinding = new ODataListBinding(
100
- this.getModel(),
101
- sPath.replace("(...)", ""),
102
- undefined,
103
- undefined,
104
- undefined,
105
- oParamters
106
- );
107
- } else {
108
- oListBinding.mParameters = oParamters;
109
- }
110
- var oStartUpParams =
111
- this.oAppComponent &&
112
- this.oAppComponent.getComponentData() &&
113
- this.oAppComponent.getComponentData().startupParameters,
114
- oInboundParameters = this.getViewData().inboundParameters,
115
- createParams;
116
- if (oStartUpParams.preferredMode && oStartUpParams.preferredMode[0].indexOf("create") !== -1) {
117
- createParams = CommonUtils.getAdditionalParamsForCreate(oStartUpParams, oInboundParameters);
118
- }
119
-
120
- // for now wait until the view and the controller is created
121
- that.getRootControl()
122
- .getController()
123
- .editFlow.createDocument(oListBinding, {
124
- creationMode: CreationMode.Sync,
125
- createAction: bActionCreate,
126
- data: createParams
127
- })
128
- .finally(function() {
129
- that.DeferredContextCreated = false;
130
- })
131
- .catch(function() {
132
- // the creation failed or was aborted by the user - showing the object page doesn't make any sense
133
- // now - for now just use window.history.back to navigate back
134
- window.history.back();
135
- });
136
- }
137
- },
138
-
139
- setVariantManagement: function(sVariantManagement) {
140
- if (sVariantManagement === VariantManagement.Page) {
141
- Log.error("ObjectPage does not support Page-level variant management yet");
142
- sVariantManagement = VariantManagement.None;
143
- }
144
-
145
- this.setProperty("variantManagement", sVariantManagement);
146
- }
147
- });
148
- return ObjectPageComponent;
149
- },
150
- /* bExport= */ true
151
- );
5
+ sap.ui.define(["sap/base/Log", "sap/fe/core/CommonUtils", "sap/fe/core/helpers/ClassSupport", "sap/fe/core/library", "sap/fe/core/TemplateComponent", "sap/fe/templates/library", "sap/ui/model/odata/v4/ODataListBinding"], function (Log, CommonUtils, ClassSupport, CoreLibrary, TemplateComponent, templateLib, ODataListBinding) {
6
+ "use strict";
7
+
8
+ var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7;
9
+
10
+ var property = ClassSupport.property;
11
+ var defineUI5Class = ClassSupport.defineUI5Class;
12
+
13
+ function _initializerDefineProperty(target, property, descriptor, context) { if (!descriptor) return; Object.defineProperty(target, property, { enumerable: descriptor.enumerable, configurable: descriptor.configurable, writable: descriptor.writable, value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 }); }
14
+
15
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
16
+
17
+ function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
18
+
19
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
20
+
21
+ function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { var desc = {}; Object.keys(descriptor).forEach(function (key) { desc[key] = descriptor[key]; }); desc.enumerable = !!desc.enumerable; desc.configurable = !!desc.configurable; if ('value' in desc || desc.initializer) { desc.writable = true; } desc = decorators.slice().reverse().reduce(function (desc, decorator) { return decorator(target, property, desc) || desc; }, desc); if (context && desc.initializer !== void 0) { desc.value = desc.initializer ? desc.initializer.call(context) : void 0; desc.initializer = undefined; } if (desc.initializer === void 0) { Object.defineProperty(target, property, desc); desc = null; } return desc; }
22
+
23
+ function _initializerWarningHelper(descriptor, context) { throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); }
24
+
25
+ var VariantManagement = CoreLibrary.VariantManagement,
26
+ CreationMode = CoreLibrary.CreationMode;
27
+ var SectionLayout = templateLib.ObjectPage.SectionLayout;
28
+ var ObjectPageComponent = (_dec = defineUI5Class("sap.fe.templates.ObjectPage.Component", {
29
+ library: "sap.fe.templates",
30
+ manifest: "json"
31
+ }), _dec2 = property({
32
+ type: "sap.fe.core.VariantManagement",
33
+ defaultValue: VariantManagement.None
34
+ }), _dec3 = property({
35
+ type: "sap.fe.templates.ObjectPage.SectionLayout",
36
+ defaultValue: SectionLayout.Page
37
+ }), _dec4 = property({
38
+ type: "boolean",
39
+ defaultValue: false
40
+ }), _dec5 = property({
41
+ type: "object"
42
+ }), _dec6 = property({
43
+ type: "boolean",
44
+ defaultValue: true
45
+ }), _dec7 = property({
46
+ type: "boolean",
47
+ defaultValue: true
48
+ }), _dec8 = property({
49
+ type: "object"
50
+ }), _dec(_class = (_class2 = /*#__PURE__*/function (_TemplateComponent) {
51
+ _inheritsLoose(ObjectPageComponent, _TemplateComponent);
52
+
53
+ function ObjectPageComponent() {
54
+ var _this;
55
+
56
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
57
+ args[_key] = arguments[_key];
58
+ }
59
+
60
+ _this = _TemplateComponent.call.apply(_TemplateComponent, [this].concat(args)) || this;
61
+
62
+ _initializerDefineProperty(_this, "variantManagement", _descriptor, _assertThisInitialized(_this));
63
+
64
+ _initializerDefineProperty(_this, "sectionLayout", _descriptor2, _assertThisInitialized(_this));
65
+
66
+ _initializerDefineProperty(_this, "showRelatedApps", _descriptor3, _assertThisInitialized(_this));
67
+
68
+ _initializerDefineProperty(_this, "additionalSemanticObjects", _descriptor4, _assertThisInitialized(_this));
69
+
70
+ _initializerDefineProperty(_this, "editableHeaderContent", _descriptor5, _assertThisInitialized(_this));
71
+
72
+ _initializerDefineProperty(_this, "showBreadCrumbs", _descriptor6, _assertThisInitialized(_this));
73
+
74
+ _initializerDefineProperty(_this, "inboundParameters", _descriptor7, _assertThisInitialized(_this));
75
+
76
+ _this.DeferredContextCreated = false;
77
+ return _this;
78
+ }
79
+
80
+ var _proto = ObjectPageComponent.prototype;
81
+
82
+ _proto.isContextExpected = function isContextExpected() {
83
+ return true;
84
+ } // TODO: this should be ideally be handled by the editflow/routing without the need to have this method in the
85
+ // object page - for now keep it here
86
+ ;
87
+
88
+ _proto.createDeferredContext = function createDeferredContext(sPath, oListBinding, bActionCreate) {
89
+ var _this2 = this;
90
+
91
+ if (!this.DeferredContextCreated) {
92
+ this.DeferredContextCreated = true;
93
+ var oParamters = {
94
+ "$$groupId": "$auto.Heroes",
95
+ "$$updateGroupId": "$auto"
96
+ };
97
+
98
+ if (!oListBinding || oListBinding.isRelative() === false) {
99
+ oListBinding = new ODataListBinding(this.getModel(), sPath.replace("(...)", ""), undefined, undefined, undefined, oParamters);
100
+ } else {
101
+ oListBinding.mParameters = oParamters;
102
+ }
103
+
104
+ var oStartUpParams = this.oAppComponent && this.oAppComponent.getComponentData() && this.oAppComponent.getComponentData().startupParameters,
105
+ oInboundParameters = this.getViewData().inboundParameters;
106
+ var createParams;
107
+
108
+ if (oStartUpParams && oStartUpParams.preferredMode && oStartUpParams.preferredMode[0].indexOf("create") !== -1) {
109
+ createParams = CommonUtils.getAdditionalParamsForCreate(oStartUpParams, oInboundParameters);
110
+ } // for now wait until the view and the controller is created
111
+
112
+
113
+ this.getRootControl().getController().editFlow.createDocument(oListBinding, {
114
+ creationMode: CreationMode.Sync,
115
+ createAction: bActionCreate,
116
+ data: createParams
117
+ }).finally(function () {
118
+ _this2.DeferredContextCreated = false;
119
+ }).catch(function () {// Do Nothing ?
120
+ });
121
+ }
122
+ };
123
+
124
+ _proto.setVariantManagement = function setVariantManagement(sVariantManagement) {
125
+ if (sVariantManagement === VariantManagement.Page) {
126
+ Log.error("ObjectPage does not support Page-level variant management yet");
127
+ sVariantManagement = VariantManagement.None;
128
+ }
129
+
130
+ this.setProperty("variantManagement", sVariantManagement);
131
+ };
132
+
133
+ return ObjectPageComponent;
134
+ }(TemplateComponent), (_descriptor = _applyDecoratedDescriptor(_class2.prototype, "variantManagement", [_dec2], {
135
+ configurable: true,
136
+ enumerable: true,
137
+ writable: true,
138
+ initializer: null
139
+ }), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, "sectionLayout", [_dec3], {
140
+ configurable: true,
141
+ enumerable: true,
142
+ writable: true,
143
+ initializer: null
144
+ }), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, "showRelatedApps", [_dec4], {
145
+ configurable: true,
146
+ enumerable: true,
147
+ writable: true,
148
+ initializer: null
149
+ }), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, "additionalSemanticObjects", [_dec5], {
150
+ configurable: true,
151
+ enumerable: true,
152
+ writable: true,
153
+ initializer: null
154
+ }), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, "editableHeaderContent", [_dec6], {
155
+ configurable: true,
156
+ enumerable: true,
157
+ writable: true,
158
+ initializer: null
159
+ }), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, "showBreadCrumbs", [_dec7], {
160
+ configurable: true,
161
+ enumerable: true,
162
+ writable: true,
163
+ initializer: null
164
+ }), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, "inboundParameters", [_dec8], {
165
+ configurable: true,
166
+ enumerable: true,
167
+ writable: true,
168
+ initializer: null
169
+ })), _class2)) || _class);
170
+ return ObjectPageComponent;
171
+ }, false);
172
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkNvbXBvbmVudC50cyJdLCJuYW1lcyI6WyJWYXJpYW50TWFuYWdlbWVudCIsIkNvcmVMaWJyYXJ5IiwiQ3JlYXRpb25Nb2RlIiwiU2VjdGlvbkxheW91dCIsInRlbXBsYXRlTGliIiwiT2JqZWN0UGFnZSIsIk9iamVjdFBhZ2VDb21wb25lbnQiLCJkZWZpbmVVSTVDbGFzcyIsImxpYnJhcnkiLCJtYW5pZmVzdCIsInByb3BlcnR5IiwidHlwZSIsImRlZmF1bHRWYWx1ZSIsIk5vbmUiLCJQYWdlIiwiRGVmZXJyZWRDb250ZXh0Q3JlYXRlZCIsImlzQ29udGV4dEV4cGVjdGVkIiwiY3JlYXRlRGVmZXJyZWRDb250ZXh0Iiwic1BhdGgiLCJvTGlzdEJpbmRpbmciLCJiQWN0aW9uQ3JlYXRlIiwib1BhcmFtdGVycyIsImlzUmVsYXRpdmUiLCJPRGF0YUxpc3RCaW5kaW5nIiwiZ2V0TW9kZWwiLCJyZXBsYWNlIiwidW5kZWZpbmVkIiwibVBhcmFtZXRlcnMiLCJvU3RhcnRVcFBhcmFtcyIsIm9BcHBDb21wb25lbnQiLCJnZXRDb21wb25lbnREYXRhIiwic3RhcnR1cFBhcmFtZXRlcnMiLCJvSW5ib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ZW1lbnQpO1xuXHR9XG59XG5cbmV4cG9ydCBkZWZhdWx0IE9iamVjdFBhZ2VDb21wb25lbnQ7XG4iXX0=
@@ -0,0 +1,131 @@
1
+ import Log from "sap/base/Log";
2
+ import CommonUtils from "sap/fe/core/CommonUtils";
3
+ import { defineUI5Class, property } from "sap/fe/core/helpers/ClassSupport";
4
+ import CoreLibrary from "sap/fe/core/library";
5
+ import TemplateComponent from "sap/fe/core/TemplateComponent";
6
+ import templateLib from "sap/fe/templates/library";
7
+ import ODataListBinding from "sap/ui/model/odata/v4/ODataListBinding";
8
+
9
+ const VariantManagement = CoreLibrary.VariantManagement,
10
+ CreationMode = CoreLibrary.CreationMode;
11
+ const SectionLayout = templateLib.ObjectPage.SectionLayout;
12
+ @defineUI5Class("sap.fe.templates.ObjectPage.Component", { library: "sap.fe.templates", manifest: "json" })
13
+ class ObjectPageComponent extends TemplateComponent {
14
+ /**
15
+ * Defines if and on which level variants can be configured:
16
+ * None: no variant configuration at all
17
+ * Page: one variant configuration for the whole page
18
+ * Control: variant configuration on control level
19
+ */
20
+ @property({
21
+ type: "sap.fe.core.VariantManagement",
22
+ defaultValue: VariantManagement.None
23
+ })
24
+ variantManagement: typeof VariantManagement;
25
+ /**
26
+ * Defines how the sections are rendered
27
+ * Page: all sections are shown on one page
28
+ * Tabs: each top-level section is shown in an own tab
29
+ */
30
+ @property({
31
+ type: "sap.fe.templates.ObjectPage.SectionLayout",
32
+ defaultValue: SectionLayout.Page
33
+ })
34
+ sectionLayout: typeof SectionLayout;
35
+ /**
36
+ * Enables the related apps features
37
+ */
38
+ @property({
39
+ type: "boolean",
40
+ defaultValue: false
41
+ })
42
+ showRelatedApps!: boolean;
43
+
44
+ @property({ type: "object" })
45
+ additionalSemanticObjects: any;
46
+ /**
47
+ * Enables the editable object page header
48
+ */
49
+ @property({
50
+ type: "boolean",
51
+ defaultValue: true
52
+ })
53
+ editableHeaderContent!: boolean;
54
+ /**
55
+ * Enables the BreadCrumbs features
56
+ */
57
+ @property({
58
+ type: "boolean",
59
+ defaultValue: true
60
+ })
61
+ showBreadCrumbs!: boolean;
62
+ /**
63
+ * Defines the properties which can be used for inbound Navigation
64
+ */
65
+ @property({
66
+ type: "object"
67
+ })
68
+ inboundParameters: any;
69
+ private DeferredContextCreated: Boolean = false;
70
+
71
+ isContextExpected() {
72
+ return true;
73
+ }
74
+
75
+ // TODO: this should be ideally be handled by the editflow/routing without the need to have this method in the
76
+ // object page - for now keep it here
77
+ createDeferredContext(sPath: any, oListBinding: any, bActionCreate: any) {
78
+ if (!this.DeferredContextCreated) {
79
+ this.DeferredContextCreated = true;
80
+ const oParamters = {
81
+ "$$groupId": "$auto.Heroes",
82
+ "$$updateGroupId": "$auto"
83
+ };
84
+ if (!oListBinding || oListBinding.isRelative() === false) {
85
+ oListBinding = new (ODataListBinding as any)(
86
+ this.getModel(),
87
+ sPath.replace("(...)", ""),
88
+ undefined,
89
+ undefined,
90
+ undefined,
91
+ oParamters
92
+ );
93
+ } else {
94
+ oListBinding.mParameters = oParamters;
95
+ }
96
+ const oStartUpParams =
97
+ this.oAppComponent && this.oAppComponent.getComponentData() && this.oAppComponent.getComponentData().startupParameters,
98
+ oInboundParameters = this.getViewData().inboundParameters;
99
+ let createParams;
100
+ if (oStartUpParams && oStartUpParams.preferredMode && oStartUpParams.preferredMode[0].indexOf("create") !== -1) {
101
+ createParams = CommonUtils.getAdditionalParamsForCreate(oStartUpParams, oInboundParameters);
102
+ }
103
+
104
+ // for now wait until the view and the controller is created
105
+ (this.getRootControl() as any)
106
+ .getController()
107
+ .editFlow.createDocument(oListBinding, {
108
+ creationMode: CreationMode.Sync,
109
+ createAction: bActionCreate,
110
+ data: createParams
111
+ })
112
+ .finally(() => {
113
+ this.DeferredContextCreated = false;
114
+ })
115
+ .catch(function () {
116
+ // Do Nothing ?
117
+ });
118
+ }
119
+ }
120
+
121
+ setVariantManagement(sVariantManagement: any) {
122
+ if (sVariantManagement === VariantManagement.Page) {
123
+ Log.error("ObjectPage does not support Page-level variant management yet");
124
+ sVariantManagement = VariantManagement.None;
125
+ }
126
+
127
+ this.setProperty("variantManagement", sVariantManagement);
128
+ }
129
+ }
130
+
131
+ export default ObjectPageComponent;