@sapui5/sap.fe.templates 1.93.3 → 1.96.2

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 (90) hide show
  1. package/package.json +2 -2
  2. package/src/sap/fe/templates/.library +1 -1
  3. package/src/sap/fe/templates/AnalyticalListPage/manifest.json +6 -0
  4. package/src/sap/fe/templates/ListReport/ExtensionAPI.js +31 -3
  5. package/src/sap/fe/templates/ListReport/ListReport.view.xml +7 -5
  6. package/src/sap/fe/templates/ListReport/ListReportController.controller.js +181 -197
  7. package/src/sap/fe/templates/ListReport/manifest.json +11 -1
  8. package/src/sap/fe/templates/ListReport/overrides/IntentBasedNavigation.js +1 -1
  9. package/src/sap/fe/templates/ListReport/overrides/ViewState.js +123 -26
  10. package/src/sap/fe/templates/ListReport/view/fragments/MultipleMode.fragment.xml +3 -3
  11. package/src/sap/fe/templates/ObjectPage/AnnotationHelper.js +35 -99
  12. package/src/sap/fe/templates/ObjectPage/Component.js +0 -6
  13. package/src/sap/fe/templates/ObjectPage/ExtensionAPI.js +18 -3
  14. package/src/sap/fe/templates/ObjectPage/ObjectPage.view.xml +169 -165
  15. package/src/sap/fe/templates/ObjectPage/ObjectPageController.controller.js +220 -157
  16. package/src/sap/fe/templates/ObjectPage/controls/SubSectionBlock.js +1 -1
  17. package/src/sap/fe/templates/ObjectPage/overrides/Paginator.js +13 -0
  18. package/src/sap/fe/templates/ObjectPage/overrides/Share.js +2 -2
  19. package/src/sap/fe/templates/ObjectPage/overrides/ViewState.js +22 -1
  20. package/src/sap/fe/templates/ObjectPage/templating/ObjectPageTemplating.js +16 -14
  21. package/src/sap/fe/templates/ObjectPage/templating/ObjectPageTemplating.ts +20 -8
  22. package/src/sap/fe/templates/ObjectPage/view/fragments/Actions.fragment.xml +14 -19
  23. package/src/sap/fe/templates/ObjectPage/view/fragments/EditableHeaderFacet.fragment.xml +3 -3
  24. package/src/sap/fe/templates/ObjectPage/view/fragments/FooterContent.fragment.xml +1 -1
  25. package/src/sap/fe/templates/ObjectPage/view/fragments/HeaderContent.fragment.xml +34 -38
  26. package/src/sap/fe/templates/ObjectPage/view/fragments/Section.fragment.xml +8 -2
  27. package/src/sap/fe/templates/ObjectPage/view/fragments/SectionContent.fragment.xml +8 -4
  28. package/src/sap/fe/templates/RootContainer/controller/Fcl.controller.js +60 -112
  29. package/src/sap/fe/templates/RootContainer/controller/NavContainer.controller.js +62 -70
  30. package/src/sap/fe/templates/RootContainer/controller/RootContainerBaseController.js +9 -1
  31. package/src/sap/fe/templates/TableScroller.js +61 -0
  32. package/src/sap/fe/templates/controls/Chart.fragment.xml +11 -14
  33. package/src/sap/fe/templates/controls/OverflowToolbarButtonHover.js +1 -1
  34. package/src/sap/fe/templates/controls/Table.fragment.xml +1 -0
  35. package/src/sap/fe/templates/library.js +1 -1
  36. package/src/sap/fe/templates/messagebundle.properties +1 -1
  37. package/src/sap/fe/templates/messagebundle_ar.properties +9 -5
  38. package/src/sap/fe/templates/messagebundle_bg.properties +8 -4
  39. package/src/sap/fe/templates/messagebundle_ca.properties +8 -4
  40. package/src/sap/fe/templates/messagebundle_cs.properties +7 -3
  41. package/src/sap/fe/templates/messagebundle_cy.properties +8 -4
  42. package/src/sap/fe/templates/messagebundle_da.properties +9 -5
  43. package/src/sap/fe/templates/messagebundle_de.properties +8 -4
  44. package/src/sap/fe/templates/messagebundle_el.properties +8 -4
  45. package/src/sap/fe/templates/messagebundle_en.properties +7 -3
  46. package/src/sap/fe/templates/messagebundle_en_GB.properties +7 -3
  47. package/src/sap/fe/templates/messagebundle_en_US_sappsd.properties +7 -3
  48. package/src/sap/fe/templates/messagebundle_en_US_saprigi.properties +7 -3
  49. package/src/sap/fe/templates/messagebundle_en_US_saptrc.properties +7 -3
  50. package/src/sap/fe/templates/messagebundle_es.properties +8 -4
  51. package/src/sap/fe/templates/messagebundle_es_MX.properties +8 -4
  52. package/src/sap/fe/templates/messagebundle_et.properties +7 -3
  53. package/src/sap/fe/templates/messagebundle_fi.properties +8 -4
  54. package/src/sap/fe/templates/messagebundle_fr.properties +9 -5
  55. package/src/sap/fe/templates/messagebundle_fr_CA.properties +8 -4
  56. package/src/sap/fe/templates/messagebundle_hi.properties +8 -4
  57. package/src/sap/fe/templates/messagebundle_hr.properties +8 -4
  58. package/src/sap/fe/templates/messagebundle_hu.properties +9 -5
  59. package/src/sap/fe/templates/messagebundle_id.properties +10 -6
  60. package/src/sap/fe/templates/messagebundle_it.properties +8 -4
  61. package/src/sap/fe/templates/messagebundle_iw.properties +8 -4
  62. package/src/sap/fe/templates/messagebundle_ja.properties +8 -4
  63. package/src/sap/fe/templates/messagebundle_kk.properties +8 -4
  64. package/src/sap/fe/templates/messagebundle_ko.properties +8 -4
  65. package/src/sap/fe/templates/messagebundle_lt.properties +8 -4
  66. package/src/sap/fe/templates/messagebundle_lv.properties +8 -4
  67. package/src/sap/fe/templates/messagebundle_ms.properties +8 -4
  68. package/src/sap/fe/templates/messagebundle_nl.properties +8 -4
  69. package/src/sap/fe/templates/messagebundle_no.properties +9 -5
  70. package/src/sap/fe/templates/messagebundle_pl.properties +8 -4
  71. package/src/sap/fe/templates/messagebundle_pt.properties +8 -4
  72. package/src/sap/fe/templates/messagebundle_pt_PT.properties +8 -4
  73. package/src/sap/fe/templates/messagebundle_ro.properties +8 -4
  74. package/src/sap/fe/templates/messagebundle_ru.properties +9 -5
  75. package/src/sap/fe/templates/messagebundle_sh.properties +8 -4
  76. package/src/sap/fe/templates/messagebundle_sk.properties +8 -4
  77. package/src/sap/fe/templates/messagebundle_sl.properties +8 -4
  78. package/src/sap/fe/templates/messagebundle_sv.properties +8 -4
  79. package/src/sap/fe/templates/messagebundle_th.properties +9 -5
  80. package/src/sap/fe/templates/messagebundle_tr.properties +7 -3
  81. package/src/sap/fe/templates/messagebundle_uk.properties +7 -3
  82. package/src/sap/fe/templates/messagebundle_vi.properties +8 -4
  83. package/src/sap/fe/templates/messagebundle_zh_CN.properties +9 -5
  84. package/src/sap/fe/templates/messagebundle_zh_TW.properties +8 -4
  85. package/src/sap/fe/templates/ObjectPage/overrides/Routing.js +0 -20
  86. package/src/sap/fe/templates/ObjectPage/view/fragments/TitleAndSubtitle.fragment.xml +0 -24
  87. package/src/sap/fe/templates/RootContainer/view/PlaceholderLR.view.xml +0 -617
  88. package/src/sap/fe/templates/RootContainer/view/PlaceholderOP.view.xml +0 -588
  89. package/src/sap/fe/templates/controls/Paginator.control.xml +0 -22
  90. package/src/sap/fe/templates/controls/Paginator.js +0 -173
@@ -9,12 +9,24 @@ sap.ui.define(
9
9
  "./RootContainerBaseController",
10
10
  "sap/f/FlexibleColumnLayoutSemanticHelper",
11
11
  "sap/ui/core/Component",
12
+ "sap/fe/core/CommonUtils",
12
13
  "sap/fe/core/controllerextensions/ViewState",
13
14
  "sap/m/Link",
14
15
  "sap/m/MessagePage",
15
16
  "sap/m/MessageBox"
16
17
  ],
17
- function(Log, JSONModel, BaseController, FlexibleColumnLayoutSemanticHelper, Component, ViewState, Link, MessagePage, MessageBox) {
18
+ function(
19
+ Log,
20
+ JSONModel,
21
+ BaseController,
22
+ FlexibleColumnLayoutSemanticHelper,
23
+ Component,
24
+ CommonUtils,
25
+ ViewState,
26
+ Link,
27
+ MessagePage,
28
+ MessageBox
29
+ ) {
18
30
  "use strict";
19
31
 
20
32
  var CONSTANTS = {
@@ -54,28 +66,54 @@ sap.ui.define(
54
66
  applyInitialStateOnly: function() {
55
67
  return false;
56
68
  },
69
+ adaptBindingRefreshControls: function(aControls) {
70
+ this.getView()
71
+ .getController()
72
+ ._getAllVisibleViews()
73
+ .forEach(function(oChildView) {
74
+ var pChildView = new Promise(function(resolve) {
75
+ resolve(oChildView);
76
+ });
77
+ aControls.push(pChildView);
78
+ });
79
+ },
57
80
  adaptStateControls: function(aStateControls) {
58
81
  this.getView()
59
82
  .getController()
60
83
  ._getAllVisibleViews()
61
84
  .forEach(function(oChildView) {
62
85
  var pChildView = new Promise(function(resolve) {
63
- if (
64
- oChildView &&
65
- oChildView.getController &&
66
- oChildView.getController().isPlaceholder &&
67
- oChildView.getController().isPlaceholder()
68
- ) {
69
- oChildView.getController().attachEventOnce("targetPageInsertedInContainer", function(oEvent) {
70
- var oTargetPage = oEvent.getParameter("targetpage");
71
- resolve(_getViewFromContainer(oTargetPage));
72
- });
73
- } else {
74
- resolve(oChildView);
75
- }
86
+ resolve(oChildView);
76
87
  });
77
88
  aStateControls.push(pChildView);
78
89
  });
90
+ },
91
+ onRestore: function() {
92
+ var oView = this.getView(),
93
+ oNavContainer = oView.byId("appContent");
94
+ var oInternalModel = oNavContainer.getModel("internal");
95
+ var oPages = oInternalModel.getProperty("/pages");
96
+
97
+ for (var sComponentId in oPages) {
98
+ oInternalModel.setProperty("/pages/" + sComponentId + "/restoreStatus", "pending");
99
+ }
100
+ },
101
+ onSuspend: function() {
102
+ var oFCLController = this.getView().getController();
103
+ var oFCLControl = oFCLController.getFclControl();
104
+ var aBeginColumnPages = oFCLControl.getBeginColumnPages() || [];
105
+ var aMidColumnPages = oFCLControl.getMidColumnPages() || [];
106
+ var aEndColumnPages = oFCLControl.getEndColumnPages() || [];
107
+ var aPages = [].concat(aBeginColumnPages, aMidColumnPages, aEndColumnPages);
108
+
109
+ aPages.forEach(function(oPage) {
110
+ var oTargetView = _getViewFromContainer(oPage);
111
+
112
+ var oController = oTargetView && oTargetView.getController();
113
+ if (oController && oController.viewState && oController.viewState.onSuspend) {
114
+ return oController.viewState.onSuspend();
115
+ }
116
+ });
79
117
  }
80
118
  }),
81
119
 
@@ -710,104 +748,14 @@ sap.ui.define(
710
748
  return aViews;
711
749
  },
712
750
 
713
- /**
714
- * Trigger the navigation to the Placeholder for a specific route target.
715
- *
716
- * @function
717
- * @name sap.fe.templates.RootContainer.controller.Fcl.controller#displayPlaceholders
718
- * @memberof sap.fe.templates.RootContainer.controller.Fcl.controller
719
- * @param {object} [oTarget] Route target for which the placeHolder must be displayed
720
- * @param {object} [aTargets] Array containing routing targets for the current navigation
721
- * @param {object} [oPlaceholderTarget] Object containing the view to be displayed . if empty the placeHolder view is created and stored
722
- * @param {object} [oRootContainer] NavContainer or FCL
723
- * @param {object} [oRouter] The router component
724
- *
725
- * @returns {boolean} `true` if the placeHolder is displayed
726
- * @ui5-restricted
727
- * @final
728
- */
729
- displayPlaceholders: function(oTarget, aTargets, oPlaceholderTarget, oRootContainer, oRouter) {
730
- var targetIndex = aTargets.indexOf(oTarget);
731
- var bPlaceholderDisplayed = false;
732
- var oFCLLayout = /layout=(.*)Column/.exec(oRouter.getHashChanger().hash);
733
- var fnTo;
734
- var toView;
735
- var bFirstNavigation = false;
736
- if (oFCLLayout && oFCLLayout[1] === "End") {
737
- // this case is used for deeplink with FCLLevel >3
738
- if (!oPlaceholderTarget["end"]) {
739
- oPlaceholderTarget["end"] = this.oPlaceholder.createPlaceholderView(oTarget.name);
740
- oRootContainer.addEndColumnPage(oPlaceholderTarget["end"]);
741
- oRootContainer.setDefaultTransitionNameEndColumn("placeholder");
742
- bFirstNavigation = true;
743
- }
744
- toView = oPlaceholderTarget["end"];
745
- fnTo = oRootContainer.toEndColumnPage;
746
- } else {
747
- switch (targetIndex) {
748
- case 0:
749
- if (!oPlaceholderTarget["begin"]) {
750
- oPlaceholderTarget["begin"] = this.oPlaceholder.createPlaceholderView(oTarget.name);
751
- oRootContainer.addBeginColumnPage(oPlaceholderTarget["begin"]);
752
- oRootContainer.setDefaultTransitionNameBeginColumn("placeholder");
753
- bFirstNavigation = true;
754
- }
755
- toView = oPlaceholderTarget["begin"];
756
- fnTo = oRootContainer.toBeginColumnPage;
757
- break;
758
- case 1:
759
- if (!oPlaceholderTarget["mid"]) {
760
- oPlaceholderTarget["mid"] = this.oPlaceholder.createPlaceholderView(oTarget.name);
761
- oRootContainer.addMidColumnPage(oPlaceholderTarget["mid"]);
762
- oRootContainer.setDefaultTransitionNameMidColumn("placeholder");
763
- bFirstNavigation = true;
764
- }
765
- toView = oPlaceholderTarget["mid"];
766
- fnTo = oRootContainer.toMidColumnPage;
767
- break;
768
- case 2:
769
- if (!oPlaceholderTarget["end"]) {
770
- oPlaceholderTarget["end"] = this.oPlaceholder.createPlaceholderView(oTarget.name);
771
- oRootContainer.addEndColumnPage(oPlaceholderTarget["end"]);
772
- oRootContainer.setDefaultTransitionNameEndColumn("placeholder");
773
- bFirstNavigation = true;
774
- }
775
- toView = oPlaceholderTarget["end"];
776
- fnTo = oRootContainer.toEndColumnPage;
777
- break;
778
- default:
779
- break;
780
- }
781
- }
782
- var sStartupParameter;
783
- var bPlaceholderScreenEnabledFirstTimeOnly;
784
- if (this.oPlaceholder.isPlaceholderEnabled) {
785
- if (oTarget.name === "sap.fe.templates.ListReport") {
786
- sStartupParameter = this.oPlaceholder.getEnumStartingParams().FE_DATA_LOADED;
787
- bPlaceholderScreenEnabledFirstTimeOnly = true;
788
- } else {
789
- sStartupParameter = this.oPlaceholder.getEnumStartingParams().FE_HEROES_LOADED;
790
- bPlaceholderScreenEnabledFirstTimeOnly = false;
791
- }
792
- }
793
- if ((bPlaceholderScreenEnabledFirstTimeOnly && !toView.getController().istargetNavigated(oTarget)) || bFirstNavigation) {
794
- toView.getController().setPlaceholderOption(sStartupParameter);
795
- fnTo.apply(oRootContainer, [toView, "show"]);
796
- bPlaceholderDisplayed = true;
797
- } else if (!bPlaceholderScreenEnabledFirstTimeOnly && targetIndex === aTargets.length - 1) {
798
- //placeholder should not be displayed if only the appstate is modified
799
- var sCurrentHashNoAppState = oRouter
800
- .getHashChanger()
801
- .getHash()
802
- .replace(/[&?]{1}sap-iapp-state=[A-Z0-9]+/, "");
803
- if (this.sPreviousHashNoAppState !== sCurrentHashNoAppState) {
804
- toView.getController().setPlaceholderOption(sStartupParameter);
805
- fnTo.apply(oRootContainer, [toView, "show"]);
806
- bPlaceholderDisplayed = true;
807
- }
808
- this.sPreviousHashNoAppState = sCurrentHashNoAppState;
809
- }
810
- return bPlaceholderDisplayed;
751
+ onContainerReady: function() {
752
+ var aViews = this._getAllVisibleViews();
753
+ var aRestorePromises = [];
754
+ aViews.reduce(function(aPromises, oTargetView) {
755
+ aPromises.push(CommonUtils.restoreView(oTargetView));
756
+ return aPromises;
757
+ }, aRestorePromises);
758
+ return Promise.all(aRestorePromises);
811
759
  }
812
760
  });
813
761
  },
@@ -30,32 +30,74 @@ sap.ui.define(
30
30
  applyInitialStateOnly: function() {
31
31
  return false;
32
32
  },
33
+ adaptBindingRefreshControls: function(aControls) {
34
+ var oView = this.getView(),
35
+ oController = oView.getController();
36
+ aControls.push(oController._getCurrentPage(oView));
37
+ },
33
38
  adaptStateControls: function(aStateControls) {
34
- var that = this;
35
- var pCurrentPage = new Promise(function(resolve) {
36
- var oView = that.getView(),
37
- oNavContainer = oView.byId("appContent");
38
- var oCurrentPage = oNavContainer.getCurrentPage();
39
- if (
40
- oCurrentPage &&
41
- oCurrentPage.getController &&
42
- oCurrentPage.getController().isPlaceholder &&
43
- oCurrentPage.getController().isPlaceholder()
44
- ) {
45
- oCurrentPage.getController().attachEventOnce("targetPageInsertedInContainer", function(oEvent) {
46
- var oTargetPage = oEvent.getParameter("targetpage");
47
- var oTargetView = CommonUtils.getTargetView(oTargetPage);
48
- resolve(oTargetView !== that.getView() && oTargetView);
49
- });
50
- } else {
51
- var oTargetView = CommonUtils.getTargetView(oCurrentPage);
52
- resolve(oTargetView !== that.getView() && oTargetView);
39
+ var oView = this.getView(),
40
+ oController = oView.getController();
41
+ aStateControls.push(oController._getCurrentPage(oView));
42
+ },
43
+ onRestore: function() {
44
+ var oView = this.getView(),
45
+ oNavContainer = oView.byId("appContent");
46
+ var oInternalModel = oNavContainer.getModel("internal");
47
+ var oPages = oInternalModel.getProperty("/pages");
48
+
49
+ for (var sComponentId in oPages) {
50
+ oInternalModel.setProperty("/pages/" + sComponentId + "/restoreStatus", "pending");
51
+ }
52
+ },
53
+ onSuspend: function() {
54
+ var oView = this.getView(),
55
+ oNavContainer = oView.byId("appContent");
56
+ var aPages = oNavContainer.getPages();
57
+ aPages.forEach(function(oPage) {
58
+ var oTargetView = CommonUtils.getTargetView(oPage);
59
+
60
+ var oController = oTargetView && oTargetView.getController();
61
+ if (oController && oController.viewState && oController.viewState.onSuspend) {
62
+ return oController.viewState.onSuspend();
53
63
  }
54
64
  });
55
- aStateControls.push(pCurrentPage);
56
65
  }
57
66
  }),
58
67
 
68
+ onContainerReady: function() {
69
+ // Restore views if neccessary.
70
+ var oView = this.getView(),
71
+ oPagePromise = this._getCurrentPage(oView);
72
+
73
+ return oPagePromise.then(function(oCurrentPage) {
74
+ var oTargetView = CommonUtils.getTargetView(oCurrentPage);
75
+ return CommonUtils.restoreView(oTargetView);
76
+ });
77
+ },
78
+
79
+ _getCurrentPage: function(oView) {
80
+ return new Promise(function(resolve) {
81
+ var oNavContainer = oView.byId("appContent");
82
+ var oCurrentPage = oNavContainer.getCurrentPage();
83
+ if (
84
+ oCurrentPage &&
85
+ oCurrentPage.getController &&
86
+ oCurrentPage.getController().isPlaceholder &&
87
+ oCurrentPage.getController().isPlaceholder()
88
+ ) {
89
+ oCurrentPage.getController().attachEventOnce("targetPageInsertedInContainer", function(oEvent) {
90
+ var oTargetPage = oEvent.getParameter("targetpage");
91
+ var oTargetView = CommonUtils.getTargetView(oTargetPage);
92
+ resolve(oTargetView !== oView && oTargetView);
93
+ });
94
+ } else {
95
+ var oTargetView = CommonUtils.getTargetView(oCurrentPage);
96
+ resolve(oTargetView !== oView && oTargetView);
97
+ }
98
+ });
99
+ },
100
+
59
101
  /**
60
102
  * @private
61
103
  * @name sap.fe.templates.RootContainer.controller.NavContainer.getMetadata
@@ -118,56 +160,6 @@ sap.ui.define(
118
160
  }
119
161
 
120
162
  oNavContainer.to(this.oMessagePage.getId());
121
- },
122
-
123
- /**
124
- * Trigger the navigation to the Placeholder for a specific route target.
125
- *
126
- * @function
127
- * @name sap.fe.templates.RootContainer.controller.NavContainer.controller#displayPlaceholders
128
- * @memberof sap.fe.templates.RootContainer.controller.NavContainer.controller
129
- * @param {object} [oTarget] Route target for which the placeHolder must be displayed
130
- * @param {object} [aTargets] Array containing routing targets for the current navigation
131
- * @param {object} [oPlaceholderTarget] Object containing the view to be displayed . if empty the placeHolder view is created and stored
132
- * @param {object} [oRootContainer] NavContainer or FCL
133
- *
134
- * @returns {boolean} `true` if the placeHolder is displayed
135
- * @ui5-restricted
136
- * @final
137
- */
138
- displayPlaceholders: function(oTarget, aTargets, oPlaceholderTarget, oRootContainer) {
139
- var bPlaceholderDisplayed = false;
140
- oRootContainer.setDefaultTransitionName("placeholder");
141
- var oPlaceholderMapping = this.oPlaceholder.getPlaceholderMapping();
142
-
143
- if (oPlaceholderMapping[oTarget.name]) {
144
- if (!oPlaceholderTarget.view) {
145
- oPlaceholderTarget.view = this.oPlaceholder.createPlaceholderView(oTarget.name);
146
- oRootContainer.addPage(oPlaceholderTarget.view);
147
- }
148
-
149
- var sStartupParameter;
150
- var bPlaceholderScreenEnabledFirstTimeOnly;
151
- if (this.oPlaceholder.isPlaceholderEnabled) {
152
- if (oTarget.name === "sap.fe.templates.ListReport") {
153
- sStartupParameter = this.oPlaceholder.getEnumStartingParams().FE_DATA_LOADED;
154
- bPlaceholderScreenEnabledFirstTimeOnly = true;
155
- } else {
156
- sStartupParameter = this.oPlaceholder.getEnumStartingParams().FE_HEROES_LOADED;
157
- bPlaceholderScreenEnabledFirstTimeOnly = false;
158
- }
159
- }
160
- if (
161
- (bPlaceholderScreenEnabledFirstTimeOnly && !oPlaceholderTarget.view.getController().istargetNavigated(oTarget)) ||
162
- !bPlaceholderScreenEnabledFirstTimeOnly
163
- ) {
164
- oPlaceholderTarget.view.getController().setPlaceholderOption(sStartupParameter);
165
- oRootContainer.to(oPlaceholderTarget.view, "show");
166
- bPlaceholderDisplayed = true;
167
- }
168
- }
169
-
170
- return bPlaceholderDisplayed;
171
163
  }
172
164
  });
173
165
  },
@@ -45,6 +45,10 @@ sap.ui.define(
45
45
 
46
46
  this._aHelperModels = [];
47
47
  },
48
+
49
+ getPlaceholder: function() {
50
+ return this.oPlaceholder;
51
+ },
48
52
  attachRouteMatchers: function() {
49
53
  this.oPlaceholder.attachRouteMatchers();
50
54
  this.getAppComponent()
@@ -159,6 +163,10 @@ sap.ui.define(
159
163
  oView.getParent().onPageReady({ lastFocusedControl: oCurrentFocusedControl });
160
164
  }
161
165
  }
166
+ if (that.onContainerReady) {
167
+ that.onContainerReady();
168
+ }
169
+
162
170
  that.oShellTitlePromise = null;
163
171
  })
164
172
  .catch(function(oError) {
@@ -350,7 +358,7 @@ sap.ui.define(
350
358
  sPath += "/" + sPathPart;
351
359
  var oMetaModel = oAppComponent.getMetaModel(),
352
360
  sParameterPath = oMetaModel.getMetaPath(sPath),
353
- bIsParameterized = oMetaModel.getProperty(
361
+ bIsParameterized = oMetaModel.getObject(
354
362
  sParameterPath + "/@com.sap.vocabularies.Common.v1.ResultContext"
355
363
  );
356
364
  if (bIsParameterized) {
@@ -0,0 +1,61 @@
1
+ /*!
2
+ * SAPUI5
3
+ * (c) Copyright 2009-2021 SAP SE. All rights reserved.
4
+ */
5
+ sap.ui.define(
6
+ [],
7
+ function() {
8
+ "use strict";
9
+
10
+ var TableScroller = {
11
+ /**
12
+ * Scrolls an MDC table to a given row, identified by its context path.
13
+ * If the row with the path can't be found, the table stays unchanged.
14
+ *
15
+ * @param {sap.ui.mdc.Table} oTable The table to be scrolled
16
+ * @param {string} sRowPath The path identifying the row to scroll to
17
+ */
18
+ scrollTableToRow: function(oTable, sRowPath) {
19
+ var oTableRowBinding = oTable.getRowBinding();
20
+
21
+ var getTableContexts = function() {
22
+ if (oTable.data().tableType === "GridTable") {
23
+ return oTableRowBinding.getContexts(0);
24
+ } else {
25
+ return oTableRowBinding.getCurrentContexts();
26
+ }
27
+ };
28
+
29
+ var findAndScroll = function() {
30
+ var oTableRow = getTableContexts().find(function(item) {
31
+ return item && item.getPath() === sRowPath;
32
+ });
33
+ if (oTableRow) {
34
+ oTable.scrollToIndex(oTableRow.getIndex());
35
+ }
36
+ };
37
+
38
+ if (oTableRowBinding) {
39
+ var oTableRowBindingContexts = getTableContexts();
40
+
41
+ if (
42
+ (oTableRowBindingContexts.length === 0 && oTableRowBinding.getLength() > 0) ||
43
+ oTableRowBindingContexts.some(function(context) {
44
+ return context === undefined;
45
+ })
46
+ ) {
47
+ // The contexts are not loaded yet --> wait for a change event before scrolling
48
+ oTableRowBinding.attachEventOnce("dataReceived", findAndScroll);
49
+ } else {
50
+ // Contexts are already loaded --> we can try to scroll immediately
51
+ findAndScroll();
52
+ }
53
+ }
54
+ }
55
+ };
56
+
57
+ return TableScroller;
58
+ },
59
+ /* bExport= */
60
+ true
61
+ );
@@ -1,26 +1,23 @@
1
1
  <core:FragmentDefinition
2
2
  xmlns:template="http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1"
3
3
  xmlns="sap.m"
4
- xmlns:macro="sap.fe.macros"
4
+ xmlns:macro="sap.fe.macros.internal"
5
5
  xmlns:core="sap.ui.core"
6
+ template:require="{
7
+ HELPER: 'sap/fe/macros/chart/ChartHelper'
8
+ }"
6
9
  >
7
10
 
8
11
  <macro:Chart
9
12
  id="{visualizationDefinition>id}"
10
- collection="{visualizationDefinition>collection}"
11
- presentation="{presentationContext>annotationPath}"
13
+ _applyIdToContent="true"
14
+ contextPath="{visualizationDefinition>collection}"
15
+ metaPath="{presentationContext>annotationPath}"
12
16
  chartDefinition="{visualizationDefinition>}"
13
- selectionMode="MULTIPLE"
14
- p13nMode="{visualizationDefinition>p13nMode}"
15
- navigationPath="{visualizationDefinition>navigationPath}"
16
- width="100%"
17
- vizProperties="{visualizationDefinition>vizProperties}"
18
- actions="{visualizationDefinition>actions}"
19
- filter="{visualizationDefinition>filterId}"
20
- chartDelegate="{= '{name: \'sap/fe/templates/AnalyticalListPage/chart/FEChartDelegate\', payload: { contextPath: \'' + (${viewData>contextPath} ? ${viewData>contextPath} : ('\/' + ${visualizationDefinition>entityName})) + '\' } }' }"
21
- dataPointsSelected=".handlers.onChartSelectionChanged"
22
- onSegmentedButtonPressed="{= ${converterContext>hasMultiVisualizations} ? '.handlers.onSegmentedButtonPressed' : '' }"
23
- visible="{= ${converterContext>hasMultiVisualizations} ? '{= ${pageInternal>alpContentView} !== \'Table\'}' : 'true' }"
17
+ selectionMode="Multiple"
18
+ personalization="{visualizationDefinition>personalization}"
19
+ chartDelegate="{= '{name: \'sap/fe/templates/AnalyticalListPage/chart/FEChartDelegate\', payload: { contextPath: \'' + HELPER.getCollectionName(${visualizationDefinition>collection}) + '\', parameters:{$$groupId:\'$auto.Workers\'}, selectionMode: \'Multiple\' } }' }"
20
+ selectionChange=".handlers.onChartSelectionChanged"
24
21
  noDataText="{= ${converterContext>template} === 'ObjectPage' ? undefined : ${sap.fe.i18n>T_OP_TABLE_AND_CHART_NO_DATA_TEXT} }"
25
22
  >
26
23
  </macro:Chart>
@@ -9,7 +9,7 @@ sap.ui.define(["sap/m/OverflowToolbarButton"], function(OverflowToolbarButton) {
9
9
  var OverflowToolbarButtonHover = OverflowToolbarButton.extend("sap.fe.templates.ObjectPage.controls.OverflowToolbarButtonHover", {
10
10
  metadata: {
11
11
  events: {
12
- "hover": {} // this Button has also a "hover" event, in addition to "press" of the normal Button
12
+ hover: {} // this Button has also a "hover" event, in addition to "press" of the normal Button
13
13
  }
14
14
  },
15
15
 
@@ -18,6 +18,7 @@
18
18
  isAlp="{converterContext>hasMultiVisualizations}"
19
19
  onSegmentedButtonPressed="{= ${converterContext>hasMultiVisualizations} ? '.handlers.onSegmentedButtonPressed' : undefined }"
20
20
  visible="{= ${converterContext>hasMultiVisualizations} ? '{= ${pageInternal>alpContentView} !== \'Chart\'}' : 'true' }"
21
+ tabTitle="{view>title}"
21
22
  >
22
23
  </macro:Table>
23
24
  </core:FragmentDefinition>
@@ -46,7 +46,7 @@ sap.ui.define(
46
46
  interfaces: [],
47
47
  controls: [],
48
48
  elements: [],
49
- version: "1.93.3",
49
+ version: "1.96.2",
50
50
  noLibraryCSS: true
51
51
  });
52
52
  if (!sap.fe.templates.ObjectPage) {
@@ -195,7 +195,7 @@ T_KEYBOARD_SHORTCUT_SAVE_MAC = CMD+S
195
195
 
196
196
 
197
197
  # XMSG,100: No Data Text when no filters are applied for the table and chart in the List Report
198
- T_OP_TABLE_AND_CHART_NO_DATA_TEXT=To start, set the relevant filters and choose Go.
198
+ T_OP_TABLE_AND_CHART_NO_DATA_TEXT=To start, set the relevant filters.
199
199
 
200
200
 
201
201
  # XMSG,100: No Data Text when filters applied for the table and chart in the List Report and Object Page
@@ -6,9 +6,9 @@ T_LR_VARIANT_APPLY_AUTOMATICALLY_WHEN_FILTER_SET=\u0625\u0630\u0627 \u062A\u0648
6
6
 
7
7
  T_ANNOTATION_HELPER_DEFAULT_OBJECT_PAGE_HEADER_TITLE_NO_HEADER_INFO=(\u0643\u0627\u0626\u0646 \u0628\u062F\u0648\u0646 \u0627\u0633\u0645)
8
8
 
9
- T_NEW_OBJECT=New Object
9
+ T_NEW_OBJECT=\u0627\u0644\u0643\u0627\u0626\u0646 \u0627\u0644\u062C\u062F\u064A\u062F
10
10
 
11
- T_ANNOTATION_HELPER_DEFAULT_OBJECT_PAGE_HEADER_TITLE=\u062C\u062F\u064A\u062F
11
+ T_ANNOTATION_HELPER_DEFAULT_OBJECT_PAGE_HEADER_TITLE=\u062C\u062F\u064A\u062F\:
12
12
 
13
13
  C_EDITFLOW_OBJECT_PAGE_SESSION_EXPIRED_DIALOG_TITLE=\u0627\u0646\u062A\u0647\u062A \u0635\u0644\u0627\u062D\u064A\u0629 \u0627\u0644\u062C\u0644\u0633\u0629
14
14
 
@@ -24,6 +24,10 @@ T_OP_OBJECT_PAGE_CREATE=\u0625\u0646\u0634\u0627\u0621
24
24
 
25
25
  T_OP_OBJECT_PAGE_SAVE=\u062D\u0641\u0638
26
26
 
27
+ C_COMMON_OBJECT_PAGE_DISPLAY_SAVED_VERSION=\u0639\u0631\u0636 \u0625\u0635\u062F\u0627\u0631 \u0645\u062D\u0641\u0648\u0638
28
+
29
+ C_COMMON_OBJECT_PAGE_RETURN_TO_DRAFT=\u0639\u0648\u062F\u0629 \u0625\u0644\u0649 \u0627\u0644\u0645\u0633\u0648\u062F\u0629
30
+
27
31
  T_COMMON_OBJECT_PAGE_HEADER_SECTION=\u0627\u0644\u0645\u0642\u062F\u0645\u0629
28
32
 
29
33
  T_COMMON_OBJECT_PAGE_OBJECT_INFO=\u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0627\u0644\u0643\u0627\u0626\u0646
@@ -58,9 +62,9 @@ T_COMMON_RATING_INDICATOR_AGGREGATE_COUNT=({0})
58
62
  T_COMMON_RATING_INDICATOR_TITLE_LABEL=\u0627\u0644\u062A\u0635\u0646\u064A\u0641
59
63
 
60
64
 
61
- T_PAGINATOR_CONTROL_PAGINATOR_TOOLTIP_UP=\u0627\u0644\u0633\u0627\u0628\u0642
65
+ T_PAGINATOR_CONTROL_PAGINATOR_TOOLTIP_UP=\u0627\u0644\u0639\u0646\u0635\u0631 \u0627\u0644\u0633\u0627\u0628\u0642
62
66
 
63
- T_PAGINATOR_CONTROL_PAGINATOR_TOOLTIP_DOWN=\u0627\u0644\u062A\u0627\u0644\u064A
67
+ T_PAGINATOR_CONTROL_PAGINATOR_TOOLTIP_DOWN=\u0627\u0644\u0639\u0646\u0635\u0631 \u0627\u0644\u062A\u0627\u0644\u064A
64
68
 
65
69
 
66
70
  T_STASHABLE_HBOX_RTA_HEADERFACET_MENU_ADD=\u0648\u0627\u062C\u0647\u0629 \u0627\u0644\u0645\u0642\u062F\u0645\u0629
@@ -120,7 +124,7 @@ T_KEYBOARD_SHORTCUT_SAVE_MAC=CMD+S
120
124
 
121
125
 
122
126
 
123
- T_OP_TABLE_AND_CHART_NO_DATA_TEXT=\u0644\u0644\u0628\u062F\u0621\u060C \u0639\u064A\u0651\u0650\u0646 \u0639\u0648\u0627\u0645\u0644 \u0627\u0644\u062A\u0635\u0641\u064A\u0629 \u0630\u0627\u062A \u0627\u0644\u0635\u0644\u0629 \u0648\u0627\u062E\u062A\u0631 \u0627\u0646\u062A\u0642\u0627\u0644.
127
+ T_OP_TABLE_AND_CHART_NO_DATA_TEXT=\u0644\u0644\u0628\u062F\u0621\u060C \u0642\u0645 \u0628\u062A\u0639\u064A\u064A\u0646 \u0639\u0648\u0627\u0645\u0644 \u0627\u0644\u062A\u0635\u0641\u064A\u0629 \u0630\u0627\u062A \u0627\u0644\u0635\u0644\u0629.
124
128
 
125
129
 
126
130
  T_OP_TABLE_AND_CHART_NO_DATA_TEXT_WITH_FILTER=\u0644\u0645 \u064A\u062A\u0645 \u0627\u0644\u0639\u062B\u0648\u0631 \u0639\u0644\u0649 \u0628\u064A\u0627\u0646\u0627\u062A. \u062D\u0627\u0648\u0644 \u062A\u0639\u062F\u064A\u0644 \u0645\u0639\u0627\u064A\u064A\u0631 \u0639\u0648\u0627\u0645\u0644 \u0627\u0644\u062A\u0635\u0641\u064A\u0629 \u0623\u0648 \u0627\u0644\u0628\u062D\u062B.
@@ -6,7 +6,7 @@ T_LR_VARIANT_APPLY_AUTOMATICALLY_WHEN_FILTER_SET=\u0410\u043A\u043E \u0438\u043C
6
6
 
7
7
  T_ANNOTATION_HELPER_DEFAULT_OBJECT_PAGE_HEADER_TITLE_NO_HEADER_INFO=(\u041E\u0431\u0435\u043A\u0442 \u0431\u0435\u0437 \u0438\u043C\u0435)
8
8
 
9
- T_NEW_OBJECT=New Object
9
+ T_NEW_OBJECT=\u041D\u043E\u0432 \u043E\u0431\u0435\u043A\u0442
10
10
 
11
11
  T_ANNOTATION_HELPER_DEFAULT_OBJECT_PAGE_HEADER_TITLE=\u041D\u043E\u0432
12
12
 
@@ -24,6 +24,10 @@ T_OP_OBJECT_PAGE_CREATE=\u0421\u044A\u0437\u0434\u0430\u0432\u0430\u043D\u0435
24
24
 
25
25
  T_OP_OBJECT_PAGE_SAVE=\u0417\u0430\u043F\u0430\u0437\u0432\u0430\u043D\u0435
26
26
 
27
+ C_COMMON_OBJECT_PAGE_DISPLAY_SAVED_VERSION=\u0417\u0430\u043F\u0430\u0437\u0435\u043D\u0430 \u0432\u0435\u0440\u0441\u0438\u044F
28
+
29
+ C_COMMON_OBJECT_PAGE_RETURN_TO_DRAFT=\u0412\u0440\u044A\u0449\u0430\u043D\u0435 \u043A\u044A\u043C \u0447\u0435\u0440\u043D\u043E\u0432\u0430
30
+
27
31
  T_COMMON_OBJECT_PAGE_HEADER_SECTION=\u0417\u0430\u0433\u043B\u0430\u0432\u0438\u0435
28
32
 
29
33
  T_COMMON_OBJECT_PAGE_OBJECT_INFO=\u0418\u043D\u0444\u043E\u0440\u043C.\u0437\u0430 \u043E\u0431\u0435\u043A\u0442
@@ -58,9 +62,9 @@ T_COMMON_RATING_INDICATOR_AGGREGATE_COUNT=({0})
58
62
  T_COMMON_RATING_INDICATOR_TITLE_LABEL=\u041E\u0446\u0435\u043D\u043A\u0430
59
63
 
60
64
 
61
- T_PAGINATOR_CONTROL_PAGINATOR_TOOLTIP_UP=\u041D\u0430\u0437\u0430\u0434
65
+ T_PAGINATOR_CONTROL_PAGINATOR_TOOLTIP_UP=\u041F\u0440\u0435\u0434\u0438\u0448\u043D\u0430 \u043F\u043E\u0437\u0438\u0446\u0438\u044F
62
66
 
63
- T_PAGINATOR_CONTROL_PAGINATOR_TOOLTIP_DOWN=\u041D\u0430\u043F\u0440\u0435\u0434
67
+ T_PAGINATOR_CONTROL_PAGINATOR_TOOLTIP_DOWN=\u0421\u043B\u0435\u0434\u0432\u0430\u0449\u0430 \u043F\u043E\u0437\u0438\u0446\u0438\u044F
64
68
 
65
69
 
66
70
  T_STASHABLE_HBOX_RTA_HEADERFACET_MENU_ADD=\u0424\u0430\u0441\u0435\u0442\u043A\u0430 \u043D\u0430 \u0437\u0430\u0433\u043B\u0430\u0432\u0438\u0435
@@ -120,7 +124,7 @@ T_KEYBOARD_SHORTCUT_SAVE_MAC=CMD+S
120
124
 
121
125
 
122
126
 
123
- T_OP_TABLE_AND_CHART_NO_DATA_TEXT=\u0417\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0435\u0442\u0435, \u0437\u0430\u0434\u0430\u0439\u0442\u0435 \u0441\u044A\u043E\u0442\u0432\u0435\u0442\u043D\u0438 \u0444\u0438\u043B\u0442\u0440\u0438 \u0438 \u043D\u0430\u0442\u0438\u0441\u043D\u0435\u0442\u0435 "\u041D\u0430\u0447\u0430\u043B\u043E".
127
+ T_OP_TABLE_AND_CHART_NO_DATA_TEXT=\u0417\u0430 \u0434\u0430 \u0441\u0442\u0430\u0440\u0442\u0438\u0440\u0430\u0442\u0435, \u0437\u0430\u0434\u0430\u0439\u0442\u0435 \u0440\u0435\u043B\u0435\u0432\u0430\u043D\u0442\u043D\u0438\u0442\u0435 \u0444\u0438\u043B\u0442\u0440\u0438.
124
128
 
125
129
 
126
130
  T_OP_TABLE_AND_CHART_NO_DATA_TEXT_WITH_FILTER=\u041D\u044F\u043C\u0430 \u043D\u0430\u043C\u0435\u0440\u0435\u043D\u0438 \u0434\u0430\u043D\u043D\u0438. \u041E\u043F\u0438\u0442\u0430\u0439\u0442\u0435 \u0434\u0430 \u043A\u043E\u0440\u0438\u0433\u0438\u0440\u0430\u0442\u0435 \u0442\u044A\u0440\u0441\u0435\u043D\u0435\u0442\u043E \u0438\u043B\u0438 \u043A\u0440\u0438\u0442\u0435\u0440\u0438\u0438\u0442\u0435 \u0437\u0430 \u0444\u0438\u043B\u0442\u0440\u0438\u0440\u0430\u043D\u0435.
@@ -6,7 +6,7 @@ T_LR_VARIANT_APPLY_AUTOMATICALLY_WHEN_FILTER_SET=Si existeixen valors de filtre
6
6
 
7
7
  T_ANNOTATION_HELPER_DEFAULT_OBJECT_PAGE_HEADER_TITLE_NO_HEADER_INFO=(Objecte sense nom)
8
8
 
9
- T_NEW_OBJECT=New Object
9
+ T_NEW_OBJECT=Objecte nou
10
10
 
11
11
  T_ANNOTATION_HELPER_DEFAULT_OBJECT_PAGE_HEADER_TITLE=Nou
12
12
 
@@ -24,6 +24,10 @@ T_OP_OBJECT_PAGE_CREATE=Crear
24
24
 
25
25
  T_OP_OBJECT_PAGE_SAVE=Desar
26
26
 
27
+ C_COMMON_OBJECT_PAGE_DISPLAY_SAVED_VERSION=Vis.vers.desada
28
+
29
+ C_COMMON_OBJECT_PAGE_RETURN_TO_DRAFT=Tornar a esborrany
30
+
27
31
  T_COMMON_OBJECT_PAGE_HEADER_SECTION=Cap\u00E7alera
28
32
 
29
33
  T_COMMON_OBJECT_PAGE_OBJECT_INFO=Info.d'objecte
@@ -58,9 +62,9 @@ T_COMMON_RATING_INDICATOR_AGGREGATE_COUNT=({0})
58
62
  T_COMMON_RATING_INDICATOR_TITLE_LABEL=Valoraci\u00F3
59
63
 
60
64
 
61
- T_PAGINATOR_CONTROL_PAGINATOR_TOOLTIP_UP=Anterior
65
+ T_PAGINATOR_CONTROL_PAGINATOR_TOOLTIP_UP=Posici\u00F3 anterior
62
66
 
63
- T_PAGINATOR_CONTROL_PAGINATOR_TOOLTIP_DOWN=Seg\u00FCent
67
+ T_PAGINATOR_CONTROL_PAGINATOR_TOOLTIP_DOWN=Posici\u00F3 seg\u00FCent
64
68
 
65
69
 
66
70
  T_STASHABLE_HBOX_RTA_HEADERFACET_MENU_ADD=Faceta de cap\u00E7alera
@@ -120,7 +124,7 @@ T_KEYBOARD_SHORTCUT_SAVE_MAC=CMD+S
120
124
 
121
125
 
122
126
 
123
- T_OP_TABLE_AND_CHART_NO_DATA_TEXT=Per comen\u00E7ar, definiu els filtres rellevants i seleccioneu Anar.
127
+ T_OP_TABLE_AND_CHART_NO_DATA_TEXT=Per comen\u00E7ar, definiu els filtres rellevants.
124
128
 
125
129
 
126
130
  T_OP_TABLE_AND_CHART_NO_DATA_TEXT_WITH_FILTER=No s\u2019han trobat dades. Intenteu ajustar els criteris de cerca o de filtre.