@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
package/package.json CHANGED
@@ -1,24 +1,27 @@
1
1
  {
2
2
  "name": "@sapui5/sap.fe.templates",
3
- "version": "1.98.0",
3
+ "version": "1.101.0",
4
4
  "description": "SAPUI5 Library sap.fe.templates",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "SAP SE (https://www.sap.com)",
7
7
  "homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
8
8
  "scripts": {
9
- "build": "tsc -v && tsc --project tsconfig-build.json",
9
+ "build": "echo 'nothing to do'",
10
10
  "prepare-npm-sources": "babel target/npm-sources/src --out-dir target/npm-sources/src --extensions \".ts\" --config-file ../../.babelrc",
11
- "test": "jest --runInBand",
11
+ "prepare-ts-class-doc": "ts-node ../../docbuilder/prepareTSClassDoc sap.fe.templates",
12
+ "prepare-ui5-build-sources": "mkdirp target/ui5-build-tmp/src && babel src --out-dir target/ui5-build-tmp/src --extensions \".ts\" --config-file ../../.babelrc && babel test --out-dir target/ui5-build-tmp/test --extensions \".ts\" --config-file ../../.babelrc",
13
+ "test": "jest --maxWorkers=4",
12
14
  "test-refs": "jest --runInBand --config jest.config-refs.js",
13
- "test-updateSnapshots": "jest --runInBand -u"
15
+ "test-updateSnapshots": "jest --maxWorkers=4 -u"
14
16
  },
15
17
  "keywords": [
16
18
  "sapui5",
17
19
  "ui5"
18
20
  ],
19
21
  "devDependencies": {
20
- "ts-node": "^9.1.1",
21
22
  "@babel/cli": "^7.14.8",
22
- "@ui5/cli": "^2.14.0"
23
+ "@ui5/cli": "^2.14.0",
24
+ "mkdirp": "^1.0.4",
25
+ "ts-node": "^9.1.1"
23
26
  }
24
27
  }
@@ -6,7 +6,7 @@
6
6
  <copyright>SAP UI development toolkit for HTML5 (SAPUI5)
7
7
  (c) Copyright 2009-2021 SAP SE. All rights reserved
8
8
  </copyright>
9
- <version>1.98.0</version>
9
+ <version>1.101.0</version>
10
10
 
11
11
  <documentation>UI5 library: sap.fe.templates</documentation>
12
12
 
@@ -36,7 +36,6 @@
36
36
  </dependency>
37
37
  <dependency>
38
38
  <libraryName>sap.ui.mdc</libraryName>
39
- <!-- change that to lazy:true if xml view supports require and we get rid of the require in PhantomUtil -->
40
39
  <lazy>false</lazy>
41
40
  </dependency>
42
41
  <dependency>
@@ -1,14 +1,27 @@
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
- ["sap/fe/templates/ListComponent"],
7
- function(ListComponent) {
8
- "use strict";
9
-
10
- var AnanlyticalListPageComponent = ListComponent.extend("sap.fe.templates.AnalyticalListPage.Component");
11
- return AnanlyticalListPageComponent;
12
- },
13
- /* bExport= */ true
14
- );
5
+ sap.ui.define(["sap/fe/core/helpers/ClassSupport", "sap/fe/templates/ListComponent"], function (ClassSupport, ListComponent) {
6
+ "use strict";
7
+
8
+ var _dec, _class;
9
+
10
+ var defineUI5Class = ClassSupport.defineUI5Class;
11
+
12
+ function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
13
+
14
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
15
+
16
+ var AnalyticalListPageComponent = (_dec = defineUI5Class("sap.fe.templates.AnalyticalListPage.Component"), _dec(_class = /*#__PURE__*/function (_ListComponent) {
17
+ _inheritsLoose(AnalyticalListPageComponent, _ListComponent);
18
+
19
+ function AnalyticalListPageComponent() {
20
+ return _ListComponent.apply(this, arguments) || this;
21
+ }
22
+
23
+ return AnalyticalListPageComponent;
24
+ }(ListComponent)) || _class);
25
+ return AnalyticalListPageComponent;
26
+ }, false);
27
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkNvbXBvbmVudC50cyJdLCJuYW1lcyI6WyJBbmFseXRpY2FsTGlzdFBhZ2VDb21wb25lbnQiLCJkZWZpbmVVSTVDbGFzcyIsIkxpc3RDb21wb25lbnQiXSwibWFwcGluZ3MiOiI7QUFBQTtBQUNBO0FBQ0E7Ozs7Ozs7Ozs7OztNQUNNQSwyQixXQURMQyxjQUFjLENBQUMsK0NBQUQsQzs7Ozs7Ozs7SUFDMkJDLGE7U0FFM0JGLDJCIiwic291cmNlUm9vdCI6Ii4iLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBkZWZpbmVVSTVDbGFzcyB9IGZyb20gXCJzYXAvZmUvY29yZS9oZWxwZXJzL0NsYXNzU3VwcG9ydFwiO1xuaW1wb3J0IExpc3RDb21wb25lbnQgZnJvbSBcInNhcC9mZS90ZW1wbGF0ZXMvTGlzdENvbXBvbmVudFwiO1xuQGRlZmluZVVJNUNsYXNzKFwic2FwLmZlLnRlbXBsYXRlcy5BbmFseXRpY2FsTGlzdFBhZ2UuQ29tcG9uZW50XCIpXG5jbGFzcyBBbmFseXRpY2FsTGlzdFBhZ2VDb21wb25lbnQgZXh0ZW5kcyBMaXN0Q29tcG9uZW50IHt9XG5cbmV4cG9ydCBkZWZhdWx0IEFuYWx5dGljYWxMaXN0UGFnZUNvbXBvbmVudDtcbiJdfQ==
@@ -0,0 +1,6 @@
1
+ import { defineUI5Class } from "sap/fe/core/helpers/ClassSupport";
2
+ import ListComponent from "sap/fe/templates/ListComponent";
3
+ @defineUI5Class("sap.fe.templates.AnalyticalListPage.Component")
4
+ class AnalyticalListPageComponent extends ListComponent {}
5
+
6
+ export default AnalyticalListPageComponent;
@@ -1,36 +1,35 @@
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
- // ---------------------------------------------------------------------------------------
6
- // Helper class used to help create content in the chart/item and fill relevant metadata
7
- // ---------------------------------------------------------------------------------------
8
- // ---------------------------------------------------------------------------------------
9
- sap.ui.define(
10
- ["sap/fe/macros/ChartDelegate"],
11
- function(BaseChartDelegate) {
12
- "use strict";
13
- var ChartDelegate = Object.assign({}, BaseChartDelegate);
5
+ sap.ui.define(["sap/fe/macros/ChartDelegate"], function (BaseChartDelegate) {
6
+ "use strict";
14
7
 
15
- /**
16
- * @param oMDCChart The mdc chart control
17
- * @param oBindingInfo The binding info of chart
18
- * data in chart and table must be synchronised. every
19
- * time the chart refreshes, the table must be refreshed too.
20
- */
21
- ChartDelegate.rebind = function(oMDCChart, oBindingInfo) {
22
- // var oComponent = flUtils.getAppComponentForControl(oMDCChart);
23
- // var bIsSearchTriggered = oComponent.getAppStateHandler().getIsSearchTriggered();
24
- // workaround in place to prevent chart from loading when go button is present and initial load is false
25
- // if (bIsSearchTriggered) {
26
- var oInternalModelContext = oMDCChart.getBindingContext("pageInternal");
27
- var sTemplateContentView = oInternalModelContext.getProperty(oInternalModelContext.getPath() + "/alpContentView");
28
- if (!sTemplateContentView || sTemplateContentView !== "Table") {
29
- BaseChartDelegate.rebind(oMDCChart, oBindingInfo);
30
- }
31
- };
8
+ // ---------------------------------------------------------------------------------------
9
+ // Helper class used to help create content in the chart/item and fill relevant metadata
10
+ // ---------------------------------------------------------------------------------------
11
+ // ---------------------------------------------------------------------------------------
12
+ var ChartDelegate = Object.assign({}, BaseChartDelegate);
13
+ /**
14
+ * @param oMDCChart The mdc chart control
15
+ * @param oBindingInfo The binding info of chart
16
+ * data in chart and table must be synchronised. every
17
+ * time the chart refreshes, the table must be refreshed too.
18
+ */
32
19
 
33
- return ChartDelegate;
34
- },
35
- /* bExport= */ false
36
- );
20
+ ChartDelegate.rebind = function (oMDCChart, oBindingInfo) {
21
+ // var oComponent = flUtils.getAppComponentForControl(oMDCChart);
22
+ // var bIsSearchTriggered = oComponent.getAppStateHandler().getIsSearchTriggered();
23
+ // workaround in place to prevent chart from loading when go button is present and initial load is false
24
+ // if (bIsSearchTriggered) {
25
+ var oInternalModelContext = oMDCChart.getBindingContext("pageInternal");
26
+ var sTemplateContentView = oInternalModelContext.getProperty(oInternalModelContext.getPath() + "/alpContentView");
27
+
28
+ if (!sTemplateContentView || sTemplateContentView !== "Table") {
29
+ BaseChartDelegate.rebind(oMDCChart, oBindingInfo);
30
+ }
31
+ };
32
+
33
+ return ChartDelegate;
34
+ }, false);
35
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkZFQ2hhcnREZWxlZ2F0ZS50cyJdLCJuYW1lcyI6WyJDaGFydERlbGVnYXRlIiwiT2JqZWN0IiwiYXNzaWduIiwiQmFzZUNoYXJ0RGVsZWdhdGUiLCJyZWJpbmQiLCJvTURDQ2hhcnQiLCJvQmluZGluZ0luZm8iLCJvSW50ZXJuYWxNb2RlbENvbnRleHQiLCJnZXRCaW5kaW5nQ29udGV4dCIsInNUZW1wbGF0ZUNvbnRlbnRWaWV3I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JvbSBsb2FkaW5nIHdoZW4gZ28gYnV0dG9uIGlzIHByZXNlbnQgYW5kIGluaXRpYWwgbG9hZCBpcyBmYWxzZVxuXHQvL1x0aWYgKGJJc1NlYXJjaFRyaWdnZXJlZCkge1xuXHRjb25zdCBvSW50ZXJuYWxNb2RlbENvbnRleHQgPSBvTURDQ2hhcnQuZ2V0QmluZGluZ0NvbnRleHQoXCJwYWdlSW50ZXJuYWxcIik7XG5cdGNvbnN0IHNUZW1wbGF0ZUNvbnRlbnRWaWV3ID0gb0ludGVybmFsTW9kZWxDb250ZXh0LmdldFByb3BlcnR5KG9JbnRlcm5hbE1vZGVsQ29udGV4dC5nZXRQYXRoKCkgKyBcIi9hbHBDb250ZW50Vmlld1wiKTtcblx0aWYgKCFzVGVtcGxhdGVDb250ZW50VmlldyB8fCBzVGVtcGxhdGVDb250ZW50VmlldyAhPT0gXCJUYWJsZVwiKSB7XG5cdFx0QmFzZUNoYXJ0RGVsZWdhdGUucmViaW5kKG9NRENDaGFydCwgb0JpbmRpbmdJbmZvKTtcblx0fVxufTtcblxuZXhwb3J0IGRlZmF1bHQgQ2hhcnREZWxlZ2F0ZTtcbiJdfQ==
@@ -0,0 +1,25 @@
1
+ import BaseChartDelegate from "sap/fe/macros/ChartDelegate";
2
+ // ---------------------------------------------------------------------------------------
3
+ // Helper class used to help create content in the chart/item and fill relevant metadata
4
+ // ---------------------------------------------------------------------------------------
5
+ // ---------------------------------------------------------------------------------------
6
+ const ChartDelegate = Object.assign({}, BaseChartDelegate);
7
+ /**
8
+ * @param oMDCChart The mdc chart control
9
+ * @param oBindingInfo The binding info of chart
10
+ * data in chart and table must be synchronised. every
11
+ * time the chart refreshes, the table must be refreshed too.
12
+ */
13
+ ChartDelegate.rebind = function (oMDCChart: any, oBindingInfo: any) {
14
+ // var oComponent = flUtils.getAppComponentForControl(oMDCChart);
15
+ // var bIsSearchTriggered = oComponent.getAppStateHandler().getIsSearchTriggered();
16
+ // workaround in place to prevent chart from loading when go button is present and initial load is false
17
+ // if (bIsSearchTriggered) {
18
+ const oInternalModelContext = oMDCChart.getBindingContext("pageInternal");
19
+ const sTemplateContentView = oInternalModelContext.getProperty(oInternalModelContext.getPath() + "/alpContentView");
20
+ if (!sTemplateContentView || sTemplateContentView !== "Table") {
21
+ BaseChartDelegate.rebind(oMDCChart, oBindingInfo);
22
+ }
23
+ };
24
+
25
+ export default ChartDelegate;
@@ -0,0 +1,80 @@
1
+ /*!
2
+ * SAP UI development toolkit for HTML5 (SAPUI5)
3
+ * (c) Copyright 2009-2021 SAP SE. All rights reserved
4
+ */
5
+ sap.ui.define(["sap/ui/core/Core"], function (Core) {
6
+ "use strict";
7
+
8
+ var _exports = {};
9
+
10
+ var triggerType;
11
+
12
+ (function (triggerType) {
13
+ triggerType["action"] = "actions";
14
+ triggerType["standardAction"] = "standardActions";
15
+ })(triggerType || (triggerType = {}));
16
+
17
+ _exports.triggerType = triggerType;
18
+ var standardActions;
19
+ /**
20
+ * Asking user for feedback
21
+ *
22
+ * @alias sap.fe.templates.Feedback
23
+ * @private
24
+ */
25
+
26
+ (function (standardActions) {
27
+ standardActions["save"] = "save";
28
+ })(standardActions || (standardActions = {}));
29
+
30
+ _exports.standardActions = standardActions;
31
+ var channel = "sap.feedback";
32
+ var feature = "inapp.feature";
33
+ /**
34
+ * Triggers a feedback survey.
35
+ *
36
+ * @memberof sap.fe.templates.Feedback
37
+ * @param {string} areaId The area id of the application.
38
+ * @param {string} triggerName The name of the trigger.
39
+ * @param {object} payload A flat list of key/values to be passed to the survey.
40
+ * @alias sap.fe.templates.Feedback#triggerSurvey
41
+ * @private
42
+ */
43
+
44
+ function triggerSurvey(areaId, triggerName, payload) {
45
+ var parameters = {
46
+ "areaId": areaId,
47
+ "triggerName": triggerName,
48
+ "payload": payload
49
+ };
50
+ Core.getEventBus().publish(channel, feature, parameters);
51
+ }
52
+ /**
53
+ * Triggers a feedback survey configured for a given action on the current page.
54
+ *
55
+ * @memberof sap.fe.templates.Feedback
56
+ * @param {View} view The view which is checked for a feedback configuration.
57
+ * @param {string} action The name of the action.
58
+ * @param {string} triggerType The trigger type of the action (actions|standardActions)
59
+ * @alias sap.fe.templates.Feedback#triggerConfiguredSurvey
60
+ * @private
61
+ */
62
+
63
+
64
+ _exports.triggerSurvey = triggerSurvey;
65
+
66
+ function triggerConfiguredSurvey(view, action, triggerType) {
67
+ var _view$getViewData, _view$getViewData$con, _feedbackConfig$trigg;
68
+
69
+ var feedbackConfig = (_view$getViewData = view.getViewData()) === null || _view$getViewData === void 0 ? void 0 : (_view$getViewData$con = _view$getViewData.content) === null || _view$getViewData$con === void 0 ? void 0 : _view$getViewData$con.feedback;
70
+ var surveyConfig = feedbackConfig === null || feedbackConfig === void 0 ? void 0 : (_feedbackConfig$trigg = feedbackConfig[triggerType]) === null || _feedbackConfig$trigg === void 0 ? void 0 : _feedbackConfig$trigg[action];
71
+
72
+ if (surveyConfig) {
73
+ triggerSurvey(surveyConfig.areaId, surveyConfig.triggerName, surveyConfig.payload);
74
+ }
75
+ }
76
+
77
+ _exports.triggerConfiguredSurvey = triggerConfiguredSurvey;
78
+ return _exports;
79
+ }, false);
80
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkZlZWRiYWNrLnRzIl0sIm5hbWVzIjpbInRyaWdnZXJUeXBlIiwic3RhbmRhcmRBY3Rpb25zIiwiY2hhbm5lbCIsImZlYXR1cmUiLCJ0cmlnZ2VyU3VydmV5IiwiYXJlYUlkIiwidHJpZ2dlck5hbWUiLCJwYXlsb2FkIiwicGFyYW1ldGVycyIsIkNvcmUiLCJnZXRFdmVudEJ1cyIsInB1Ymxpc2giLCJ0cmlnZ2VyQ29uZmlndXJlZFN1cnZleSIsInZpZXciLCJhY3Rpb24iLCJmZWVkYmFja0NvbmZpZyIsImdldFZpZXdEYXRhIiwiY29udGVudCIsImZlZWRiYWNrIiwic3VydmV5Q29uZmlnIl0sIm1hcHBpbmdzIjo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uXG4gKiBAcGFyYW0ge3N0cmluZ30gdHJpZ2dlclR5cGUgVGhlIHRyaWdnZXIgdHlwZSBvZiB0aGUgYWN0aW9uIChhY3Rpb25zfHN0YW5kYXJkQWN0aW9ucylcbiAqIEBhbGlhcyBzYXAuZmUudGVtcGxhdGVzLkZlZWRiYWNrI3RyaWdnZXJDb25maWd1cmVkU3VydmV5XG4gKiBAcHJpdmF0ZVxuICovXG5leHBvcnQgZnVuY3Rpb24gdHJpZ2dlckNvbmZpZ3VyZWRTdXJ2ZXkodmlldzogVmlldywgYWN0aW9uOiBzdHJpbmcsIHRyaWdnZXJUeXBlOiB0cmlnZ2VyVHlwZSkge1xuXHRjb25zdCBmZWVkYmFja0NvbmZpZyA9ICh2aWV3LmdldFZpZXdEYXRhKCkgYXMgYW55KT8uY29udGVudD8uZmVlZGJhY2s7XG5cdGNvbnN0IHN1cnZleUNvbmZpZyA9IGZlZWRiYWNrQ29uZmlnPy5bdHJpZ2dlclR5cGVdPy5bYWN0aW9uXSBhcyBzdXJ2ZXlDb25maWc7XG5cdGlmIChzdXJ2ZXlDb25maWcpIHtcblx0XHR0cmlnZ2VyU3VydmV5KHN1cnZleUNvbmZpZy5hcmVhSWQsIHN1cnZleUNvbmZpZy50cmlnZ2VyTmFtZSwgc3VydmV5Q29uZmlnLnBheWxvYWQpO1xuXHR9XG59XG4iXX0=
@@ -0,0 +1,67 @@
1
+ /*!
2
+ * ${copyright}
3
+ */
4
+ import Core from "sap/ui/core/Core";
5
+ import View from "sap/ui/core/mvc/View";
6
+
7
+ type surveyConfig = {
8
+ areaId: string;
9
+ triggerName: string;
10
+ payload?: object;
11
+ };
12
+
13
+ export enum triggerType {
14
+ action = "actions",
15
+ standardAction = "standardActions"
16
+ }
17
+
18
+ export enum standardActions {
19
+ save = "save"
20
+ }
21
+
22
+ /**
23
+ * Asking user for feedback
24
+ *
25
+ * @alias sap.fe.templates.Feedback
26
+ * @private
27
+ */
28
+
29
+ const channel = "sap.feedback";
30
+ const feature = "inapp.feature";
31
+
32
+ /**
33
+ * Triggers a feedback survey.
34
+ *
35
+ * @memberof sap.fe.templates.Feedback
36
+ * @param {string} areaId The area id of the application.
37
+ * @param {string} triggerName The name of the trigger.
38
+ * @param {object} payload A flat list of key/values to be passed to the survey.
39
+ * @alias sap.fe.templates.Feedback#triggerSurvey
40
+ * @private
41
+ */
42
+ export function triggerSurvey(areaId: string, triggerName: string, payload: any) {
43
+ const parameters = {
44
+ "areaId": areaId,
45
+ "triggerName": triggerName,
46
+ "payload": payload
47
+ };
48
+ Core.getEventBus().publish(channel, feature, parameters);
49
+ }
50
+
51
+ /**
52
+ * Triggers a feedback survey configured for a given action on the current page.
53
+ *
54
+ * @memberof sap.fe.templates.Feedback
55
+ * @param {View} view The view which is checked for a feedback configuration.
56
+ * @param {string} action The name of the action.
57
+ * @param {string} triggerType The trigger type of the action (actions|standardActions)
58
+ * @alias sap.fe.templates.Feedback#triggerConfiguredSurvey
59
+ * @private
60
+ */
61
+ export function triggerConfiguredSurvey(view: View, action: string, triggerType: triggerType) {
62
+ const feedbackConfig = (view.getViewData() as any)?.content?.feedback;
63
+ const surveyConfig = feedbackConfig?.[triggerType]?.[action] as surveyConfig;
64
+ if (surveyConfig) {
65
+ triggerSurvey(surveyConfig.areaId, surveyConfig.triggerName, surveyConfig.payload);
66
+ }
67
+ }