@sapui5/sap.suite.ui.generic.template 1.108.48 → 1.108.50

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 (36) hide show
  1. package/package.json +1 -1
  2. package/src/sap/suite/ui/generic/template/.library +1 -1
  3. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_bg.properties +3 -3
  4. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_da.properties +3 -3
  5. package/src/sap/suite/ui/generic/template/AnalyticalListPage/i18n/i18n_id.properties +2 -2
  6. package/src/sap/suite/ui/generic/template/ListReport/controller/ControllerImplementation.js +15 -9
  7. package/src/sap/suite/ui/generic/template/ListReport/controller/IappStateHandler.js +18 -8
  8. package/src/sap/suite/ui/generic/template/ListReport/i18n/i18n_id.properties +1 -1
  9. package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartChart.fragment.xml +3 -2
  10. package/src/sap/suite/ui/generic/template/ListReport/view/fragments/SmartTable.fragment.xml +2 -1
  11. package/src/sap/suite/ui/generic/template/ObjectPage/controller/ControllerImplementation.js +4 -1
  12. package/src/sap/suite/ui/generic/template/ObjectPage/controller/RelatedAppsHandler.js +28 -26
  13. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_pt.properties +1 -1
  14. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sh.properties +1 -1
  15. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sl.properties +3 -3
  16. package/src/sap/suite/ui/generic/template/ObjectPage/i18n/i18n_sr.properties +1 -1
  17. package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartChart.fragment.xml +1 -0
  18. package/src/sap/suite/ui/generic/template/ObjectPage/view/fragments/SmartTable.fragment.xml +2 -1
  19. package/src/sap/suite/ui/generic/template/genericUtilities/ControlStateWrapperFactory.js +109 -68
  20. package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/DynamicPageWrapper.js +19 -51
  21. package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/ObjectPageLayoutWrapper.js +10 -32
  22. package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/PreliminaryWrapper.js +151 -0
  23. package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SearchFieldWrapper.js +8 -30
  24. package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartFilterBarWrapper.js +76 -99
  25. package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartTableChartCommon.js +105 -91
  26. package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartTableWrapper.js +10 -2
  27. package/src/sap/suite/ui/generic/template/genericUtilities/controlStateWrapperFactory/SmartVariantManagementWrapper.js +98 -81
  28. package/src/sap/suite/ui/generic/template/js/AnnotationHelperStreamSupport.js +25 -6
  29. package/src/sap/suite/ui/generic/template/lib/AppComponent.js +1 -1
  30. package/src/sap/suite/ui/generic/template/lib/CommonUtils.js +5 -5
  31. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fi.properties +2 -2
  32. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_fr.properties +2 -2
  33. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_ru.properties +5 -5
  34. package/src/sap/suite/ui/generic/template/lib/i18n/i18n_zh_CN.properties +1 -1
  35. package/src/sap/suite/ui/generic/template/lib/navigation/NavigationController.js +7 -7
  36. package/src/sap/suite/ui/generic/template/library.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.suite.ui.generic.template",
3
- "version": "1.108.48",
3
+ "version": "1.108.50",
4
4
  "description": "SAPUI5 Library sap.suite.ui.generic.template",
5
5
  "keywords": [
6
6
  "sapui5",
@@ -7,7 +7,7 @@
7
7
 
8
8
  (c) Copyright 2009-2015 SAP SE. All rights reserved
9
9
  </copyright>
10
- <version>1.108.48</version>
10
+ <version>1.108.50</version>
11
11
 
12
12
  <documentation>Library with generic Suite UI templates.</documentation>
13
13
 
@@ -106,11 +106,11 @@ CONTACT_FAX=\u0424\u0430\u043A\u0441
106
106
 
107
107
 
108
108
 
109
- CONTAINER_VIEW_TABLE=\u041A\u0430\u0442\u043E \u0442\u0430\u0431\u043B\u0438\u0446\u0430
109
+ CONTAINER_VIEW_TABLE=\u0422\u0430\u0431\u043B\u0438\u0447\u0435\u043D \u0438\u0437\u0433\u043B\u0435\u0434
110
110
 
111
- CONTAINER_VIEW_CHART=\u041A\u0430\u0442\u043E \u0434\u0438\u0430\u0433\u0440\u0430\u043C\u0430
111
+ CONTAINER_VIEW_CHART=\u0414\u0438\u0430\u0433\u0440\u0430\u043C\u0435\u043D \u0438\u0437\u0433\u043B\u0435\u0434
112
112
 
113
- CONTAINER_VIEW_CHARTTABLE=\u041A\u0430\u0442\u043E \u0434\u0438\u0430\u0433\u0440\u0430\u043C\u0430 \u0438 \u0442\u0430\u0431\u043B\u0438\u0446\u0430
113
+ CONTAINER_VIEW_CHARTTABLE=\u0418\u0437\u0433\u043B\u0435\u0434 \u043D\u0430 \u0434\u0438\u0430\u0433\u0440\u0430\u043C\u0430 \u0438 \u0442\u0430\u0431\u043B\u0438\u0446\u0430
114
114
 
115
115
  CONTAINER_VIEW_CROSSTAB=\u0410\u0441\u043F\u0435\u043A\u0442 \u0437\u0430 \u0432\u0441\u0438\u0447\u043A\u0438 \u0442\u0430\u0431\u043B\u0438\u0446\u0438
116
116
 
@@ -106,11 +106,11 @@ CONTACT_FAX=Fax
106
106
 
107
107
 
108
108
 
109
- CONTAINER_VIEW_TABLE=Tabelview
109
+ CONTAINER_VIEW_TABLE=Tabelvisning
110
110
 
111
- CONTAINER_VIEW_CHART=Diagramview
111
+ CONTAINER_VIEW_CHART=Diagramvisning
112
112
 
113
- CONTAINER_VIEW_CHARTTABLE=Diagram- og tabelview
113
+ CONTAINER_VIEW_CHARTTABLE=Diagram- og tabelvisning
114
114
 
115
115
  CONTAINER_VIEW_CROSSTAB=Krydstabelview
116
116
 
@@ -65,9 +65,9 @@ VISUAL_FILTER_CHART_TYPE_Donut=Bagan Donat
65
65
 
66
66
  VISUAL_FILTER_SORTING=Pengurutan
67
67
 
68
- VISUAL_FILTER_SORTING_ASCENDING=Naik
68
+ VISUAL_FILTER_SORTING_ASCENDING=Menaik
69
69
 
70
- VISUAL_FILTER_SORTING_DESCENDING=Turun
70
+ VISUAL_FILTER_SORTING_DESCENDING=Menurun
71
71
 
72
72
  VISUAL_FILTER_LINE_CHART_TIME_LINE=Tampilkan
73
73
 
@@ -51,7 +51,7 @@ sap.ui.define([
51
51
 
52
52
  function onSmartFilterBarInitialise(oEvent) {
53
53
  var oSmartFilterbar = oEvent.getSource();
54
- // Apply filter defaults from the Selection Variant Annotation.
54
+ // Apply filter defaults from the Selection Variant Annotation.
55
55
  var sAnnotationPath = oController.getOwnerComponent().getAnnotationPath();
56
56
  if (sAnnotationPath !== undefined) {
57
57
  fnApplyFilterDefaultsFromSV(oSmartFilterbar, sAnnotationPath);
@@ -137,7 +137,7 @@ sap.ui.define([
137
137
  }
138
138
  oTemplateUtils.oCommonEventHandlers.onSemanticObjectLinkNavigationTargetObtained(oState.oPresentationControlHandler.getEntitySet(), {}, oEventParameters, oState, sTitle);
139
139
  }
140
-
140
+
141
141
  function getItemInTable(sContextPath) {
142
142
  var aItems = oViewProxy.getItems();
143
143
  for (var i = 0; i < aItems.length; i++) {
@@ -321,7 +321,7 @@ sap.ui.define([
321
321
  shareTilePressed: function() {
322
322
  ShareUtils.fireBookMarkPress();
323
323
  },
324
-
324
+
325
325
  getDownloadUrl: function () {
326
326
  var oBinding = oState.oPresentationControlHandler.getBinding(oState);
327
327
  return oBinding && oBinding.getDownloadUrl() || "";
@@ -346,7 +346,7 @@ sap.ui.define([
346
346
  var oMetadata = oController.getOwnerComponent().getAppComponent().getMetadata();
347
347
  var oUIManifest = oMetadata.getManifestEntry("sap.ui");
348
348
  var oAppManifest = oMetadata.getManifestEntry("sap.app");
349
-
349
+
350
350
  return oFragmentController.getServiceUrl().then(function(sServiceUrl) {
351
351
  return ShareUtils.getCurrentUrl().then(function (sCurrentUrl) {
352
352
  return {
@@ -473,6 +473,9 @@ sap.ui.define([
473
473
  });
474
474
  }
475
475
 
476
+ // Expose selected private functions to unit tests
477
+ /* eslint-enable */
478
+
476
479
  // Generation of Event Handlers
477
480
  return {
478
481
  onInit: function () {
@@ -488,10 +491,10 @@ sap.ui.define([
488
491
  var oMultipleViewsHandler = new MultipleViewsHandler(oState, oController, oTemplateUtils);
489
492
  oState.oMultipleViewsHandler = oMultipleViewsHandler;
490
493
  oState.oMessageStripHelper = new MessageStripHelper(oState.oPresentationControlHandler, oMultipleViewsHandler, oController, oTemplateUtils, "listReport");
491
- // proxy for oCommonUtils.refreshModel that ensures that also the other SmartTable instances
492
- // pointing to the same entity set will be refreshed
494
+ // proxy for oCommonUtils.refreshModel that ensures that also the other SmartTable instances
495
+ // pointing to the same entity set will be refreshed
493
496
  oState.refreshModel = function () {
494
- /* getEntitySet should not be a method of PresentationControlHandler. For more details, refer to the comment
497
+ /* getEntitySet should not be a method of PresentationControlHandler. For more details, refer to the comment
495
498
  mentioned before the method's definition in the class */
496
499
  var bIsInvalidating = oTemplateUtils.oCommonUtils.refreshModel(oState.oPresentationControlHandler.getEntitySet());
497
500
  if (bIsInvalidating) {
@@ -502,7 +505,7 @@ sap.ui.define([
502
505
  oState.oWorklistHandler = new WorklistHandler(oState, oController, oTemplateUtils);
503
506
  oState.oIappStateHandler = new IappStateHandler(oState, oController, oTemplateUtils);
504
507
  oState.oMultiEditHandler = new MultiEditHandler(oState, oController, oTemplateUtils);
505
-
508
+
506
509
 
507
510
  var oTemplatePrivateModel = oTemplateUtils.oComponentUtils.getTemplatePrivateModel();
508
511
  oTemplatePrivateModel.setProperty("/generic/bDataAreShownInTable", false);
@@ -525,7 +528,7 @@ sap.ui.define([
525
528
 
526
529
  // initialise the message trip in LR to be hidden on load
527
530
  oTemplatePrivateModel.setProperty("/listReport/multipleViews/msgVisibility", false);
528
-
531
+
529
532
  oViewProxy.adaptToChildContext = function(sCurrentChildContext) {
530
533
  oState.oPresentationControlHandler.scrollToSelectedItemAsPerChildContext(sCurrentChildContext);
531
534
  };
@@ -597,6 +600,9 @@ sap.ui.define([
597
600
  },
598
601
 
599
602
  handlers: {
603
+ onAfterVariantInitialise: function(oEvent) {
604
+ oTemplateUtils.oCommonUtils.getControlStateWrapper(oEvent.getSource()).onAfterVariantInitialise();
605
+ },
600
606
  addEntry: addEntry,
601
607
  addEntryWithFilters: addEntryWithFilters,
602
608
  deleteEntries: fnDeleteEntries,
@@ -209,12 +209,6 @@ sap.ui.define([
209
209
  // However, for iAppState case, SVM wrapper also needs to contain SFB wrapper (and not oCustomFiltersWrapper directly)
210
210
 
211
211
 
212
- // DynamicPage state: header pinned
213
- var oDynamicPage = oController.byId(StableIdHelper.getStableId({type: "ListReportPage", subType: "DynamicPage"}));
214
- // TODO: Discuss: should this state (header pinned) be part of variant (only page variant or SFB variant)? Assumption: no
215
- var oDynamicPageWrapper = oTemplateUtils.oCommonUtils.getControlStateWrapper(oDynamicPage);
216
- aControlStateWrappers.push(oDynamicPageWrapper);
217
-
218
212
  // SmartVariantManagement state: Selected Variant and whether it's dirty, including wrappers for managed controls (all controls, for which the corresponding state
219
213
  // information should be part of the variant)
220
214
  // Due to direct connection between SVM and SFB, also their wrappers need to each other directly. Remarks:
@@ -225,13 +219,19 @@ sap.ui.define([
225
219
  if (oSmartVariantManagement){
226
220
  var oSmartVariantManagementWrapper = oTemplateUtils.oCommonUtils.getControlStateWrapper(oSmartVariantManagement, {
227
221
  managedControlWrappers: aPageVariantControlStateWrappers.concat([oSmartFilterBarWrapper]),
228
- dynamicPageWrapper: oDynamicPageWrapper
222
+ smartFilterBarWrapper: oSmartFilterBarWrapper
229
223
  });
230
224
  aControlStateWrappers.push(oSmartVariantManagementWrapper);
231
225
  } else {
232
226
  aControlStateWrappers.push(oSmartFilterBarWrapper);
233
227
  }
234
228
 
229
+ // DynamicPage state: header pinned
230
+ var oDynamicPage = oController.byId(StableIdHelper.getStableId({type: "ListReportPage", subType: "DynamicPage"}));
231
+ // The DynamicPage state (header pinned) is intentionally stored only in iAppState and not included in any variant (neither page variant nor SFB variant).
232
+ var oDynamicPageWrapper = oTemplateUtils.oCommonUtils.getControlStateWrapper(oDynamicPage);
233
+ aControlStateWrappers.push(oDynamicPageWrapper);
234
+
235
235
 
236
236
  // Wrapper to control whether data is loaded
237
237
 
@@ -778,7 +778,8 @@ sap.ui.define([
778
778
  // For desktop devices, expand the header for Standard and Custom variants and for tablet and mobile devices,
779
779
  // collapse the header only if search is triggered.
780
780
  if (Device.system.desktop) {
781
- oTemplateUtils.oCommonUtils.getControlStateWrapper(oController.byId(StableIdHelper.getStableId({type: "ListReportPage", subType: "DynamicPage"}))).setHeaderState(oController, true);
781
+ var oTemplatePrivateModel = oTemplateUtils.oComponentUtils.getTemplatePrivateModel();
782
+ oTemplatePrivateModel.setProperty("/listReport/isHeaderExpanded", true);
782
783
  } else {
783
784
  collapseHeader();
784
785
  }
@@ -891,6 +892,15 @@ sap.ui.define([
891
892
  // regarding a), while SFB takes care to set the data for standard filters (created via annotation), for others (extension filters, edit state filter, anything else that
892
893
  // should be controlled by VM (currently anything else we add to iAppState, but maybe that's only correct in case of page variant management)) we have to set it
893
894
  // (independent of the context).
895
+ // Restore header collapse logic (originally removed in change 5641712)
896
+ // Collapse header when user manually selects a variant (context === undefined) that has executeOnSelect set to true
897
+ var oContext = oEvent.getParameter("context");
898
+ var bExecuteOnSelect = oEvent.getParameter("executeOnSelect");
899
+
900
+ if (oContext === undefined && bExecuteOnSelect) {
901
+ collapseHeader();
902
+ }
903
+
894
904
  fnRestoreExtendedFilterDataOnAfterSFBVariantLoad(oEvent);
895
905
  }
896
906
 
@@ -126,7 +126,7 @@ LOCKED_OBJECT_FILTER=Dikunci oleh Pengguna Lain
126
126
 
127
127
  UNSAVED_CHANGES=Perubahan Belum Disimpan
128
128
 
129
- UNSAVED_CHANGES_FILTER=Perubahan oleh Pengguna Lain yang Belum Disimpan
129
+ UNSAVED_CHANGES_FILTER=Perubahan yang Belum Disimpan oleh Pengguna Lain
130
130
 
131
131
  SHARE=Bagikan
132
132
 
@@ -9,8 +9,9 @@
9
9
  xmlns:smartChart="sap.ui.comp.smartchart">
10
10
  <template:with path="entityType>com.sap.vocabularies.UI.v1.HeaderInfo" var="header">
11
11
  <smartChart:SmartChart
12
- id="listReport{= ${parameter>/settings/quickVariantSelectionX} ? ${path: 'tabItem>', formatter: 'sap.suite.ui.generic.template.js.AnnotationHelper.getSuffixFromIconTabFilterKey'} : ''}"
13
- visible="{path: 'tabItem>', formatter: 'sap.suite.ui.generic.template.js.AnnotationHelperMultipleViews.getVisibleForTableTabs'}"
12
+ id="listReport{= ${parameter>/settings/quickVariantSelectionX} ? ${path: 'tabItem>', formatter: 'sap.suite.ui.generic.template.js.AnnotationHelper.getSuffixFromIconTabFilterKey'} : ''}"
13
+ afterVariantInitialise="._templateEventHandlers.onAfterVariantInitialise"
14
+ visible="{path: 'tabItem>', formatter: 'AHMultipleViews.getVisibleForTableTabs'}"
14
15
  smartFilterId=""
15
16
  persistencyKey="listReportChart{= ${parameter>/settings/quickVariantSelectionX} ? ${path: 'tabItem>', formatter: 'sap.suite.ui.generic.template.js.AnnotationHelper.getSuffixFromIconTabFilterKey'} : ''}"
16
17
  header="{path: 'header>TypeNamePlural', formatter: 'sap.ui.model.odata.AnnotationHelper.format'}"
@@ -10,6 +10,7 @@
10
10
  <template:with path="parameter>/" helper="sap.suite.ui.generic.template.js.StableIdHelper.preparePathForStableId" var="smartTableId">
11
11
  <template:if test="{= ${smartTableId>}.buildStableId({type: 'ListReportTable', subType: 'SmartTable', sQuickVariantKey: ${tabItem>key}})}" />
12
12
  <smarttable:SmartTable id="{smartTableId>id}"
13
+ afterVariantInitialise="._templateEventHandlers.onAfterVariantInitialise"
13
14
  smartFilterId="{= ${parameter>/settings/quickVariantSelectionX} ? '' : 'listReportFilter'}"
14
15
  visible="{path: 'tabItem>', formatter: 'sap.suite.ui.generic.template.js.AnnotationHelperMultipleViews.getVisibleForTableTabs'}"
15
16
  initialise="._templateEventHandlers.onTableInit"
@@ -204,7 +205,7 @@
204
205
  <template:else >
205
206
  <Table id="{:= ${parameter>/stableId}.getStableId({type: 'ListReportTable', subType: 'ResponsiveTable', sQuickVariantKey: ${tabItem>key}})}"
206
207
  showOverlay="{= ${_templPriv>/listReport/firstSelection} &amp;&amp; !${_templPriv>/generic/bDataAreShownInTable}}"
207
- fixedLayout="{= !${appSettings>/enableAutoColumnWidthForSmartTable} ? (${parameter>/settings/isWorklist} ? true : false) : undefined}"
208
+ fixedLayout="{= !${appSettings>/enableAutoColumnWidthForSmartTable} ? (${parameter>/settings/isWorklist} ? true : false) : undefined}"
208
209
  growing="true" growingScrollToLoad="true"
209
210
  sticky="ColumnHeaders,HeaderToolbar"
210
211
  mode="{tableSettings>mode}"
@@ -2271,7 +2271,10 @@ sap.ui.define([
2271
2271
  }
2272
2272
  },
2273
2273
  handlers: {
2274
- onEditAndActiveToggle: function () {
2274
+ onAfterVariantInitialise: function(oEvent) {
2275
+ oTemplateUtils.oCommonUtils.getControlStateWrapper(oEvent.getSource()).onAfterVariantInitialise();
2276
+ },
2277
+ onEditAndActiveToggle: function () { // Implementation of draft toggle for static header
2275
2278
  var oUIModel = oObjectPage.getModel("ui");
2276
2279
  var bIsEditable = oUIModel.getProperty("/editable");
2277
2280
  oTemplateUtils.oServices.oApplication.performAfterSideEffectExecution(function () {
@@ -83,43 +83,46 @@ sap.ui.define([
83
83
  fnReject();
84
84
  return;
85
85
  }
86
+
87
+ var oAppComponent = oController.getOwnerComponent().getAppComponent();
88
+ // Preparing the array of semantic objects to fetch links.
89
+ // Initialize the array with the current app's semantic object.
90
+ var aSemanticObjects = [sCurrentSemObj];
91
+
86
92
  //Get all semantic object from manifest setting
87
93
  var oSettings = oTemplateUtils.oComponentUtils.getSettings();
88
94
  var oRelatedAppsSettings = oSettings.relatedAppsSettings;
89
-
90
- var oLinksDeferred;
91
95
  var bHasRelatedAppSettings = oRelatedAppsSettings && Object.keys(oRelatedAppsSettings).length > 0;
92
96
  if (bHasRelatedAppSettings) {
93
- var aSemanticObjects = [[{
94
- semanticObject: sCurrentSemObj
95
- }]];
96
-
97
+ // Iterate through oRelatedAppsSettings and add all semantic objects.
97
98
  for (var sKey in oRelatedAppsSettings) {
98
- if (sKey) {
99
- aSemanticObjects.push([{
100
- semanticObject: oRelatedAppsSettings[sKey].semanticObject
101
- }]);
99
+ if (oRelatedAppsSettings.hasOwnProperty(sKey)) {
100
+ var sSemanticObject = oRelatedAppsSettings[sKey].semanticObject;
101
+ aSemanticObjects.push(sSemanticObject);
102
102
  }
103
103
  }
104
- oLinksDeferred = oXApplNavigation.getLinks(aSemanticObjects);
105
- } else {
106
- var oAppComponent = oController.getOwnerComponent().getAppComponent();
107
- oLinksDeferred = oXApplNavigation.getLinks({
108
- semanticObject: sCurrentSemObj,
104
+ }
105
+ // Remove duplicates
106
+ aSemanticObjects = Array.from(new Set(aSemanticObjects));
107
+ // Add parameters to semantic objects
108
+ var aSemanticObjectsWithParams = aSemanticObjects.map(function (sSemanticObject) {
109
+ return [{
110
+ semanticObject: sSemanticObject,
109
111
  params: oParam,
110
112
  ui5Component: oAppComponent
111
- });
112
- }
113
- oLinksDeferred.done(function (aLinks) {
113
+ }];
114
+ });
115
+
116
+ oXApplNavigation.getLinks(aSemanticObjectsWithParams).done(function (aResult) {
117
+ // Convert the response into a single dimension array by flattening it
118
+ var aLinks = aResult.flat(Infinity);
119
+ // Get structured links
114
120
  var aSemObjWithLink = [];
115
- var fnAddLink = function(oLinkDef){
121
+ var fnAddLink = function (oLinkDef) {
116
122
  var oLink = getStructuredSemanticObjectActionLinks(oLinkDef);
117
- aSemObjWithLink.push(oLink);
123
+ aSemObjWithLink.push(oLink);
118
124
  };
119
- aLinks.forEach(bHasRelatedAppSettings ? function(aLinks){
120
- aLinks[0].forEach(fnAddLink);
121
- } : fnAddLink);
122
-
125
+ aLinks.forEach(fnAddLink);
123
126
  //Get All Semantic Object Unavailable action
124
127
  var getStringProperty = function (oAction) {
125
128
  return oAction.String;
@@ -186,8 +189,7 @@ sap.ui.define([
186
189
  oButtonsModel.setProperty("/buttons", aButtons);
187
190
  fnResolve();
188
191
  oBusyHelper.getUnbusy().then(oActionSheet.openBy.bind(oActionSheet, oButton));
189
- });
190
- oLinksDeferred.fail(fnReject);
192
+ }).fail(fnReject);
191
193
  }, fnReject);
192
194
  });
193
195
  oBusyHelper.setBusy(oOpenPromise);
@@ -17,7 +17,7 @@ SAVED_VERSION=Vers\u00E3o gravada
17
17
 
18
18
  DRAFT_VERSION=Esbo\u00E7o
19
19
 
20
- SAVE=Gravar
20
+ SAVE=Salvar
21
21
 
22
22
  SAVE_AND_EDIT=Salvar e editar
23
23
 
@@ -21,7 +21,7 @@ SAVE=Sa\u010Duvaj
21
21
 
22
22
  SAVE_AND_EDIT=Sa\u010Duvaj i uredi
23
23
 
24
- SAVE_AND_NEXT=Sa\u010Duvaj i slede\u0107e
24
+ SAVE_AND_NEXT=Sa\u010Duvaj i idi na slede\u0107e
25
25
 
26
26
  CREATE=Kreiraj
27
27
 
@@ -5,7 +5,7 @@ DESCRIPTION=Stran objekta
5
5
 
6
6
  EDIT=Obdelava
7
7
 
8
- CREATE_OBJECT=Ustvari
8
+ CREATE_OBJECT=Kreiraj
9
9
 
10
10
  CREATE_DIALOG_TITLE=Nova postavka
11
11
 
@@ -23,7 +23,7 @@ SAVE_AND_EDIT=Shrani in uredi
23
23
 
24
24
  SAVE_AND_NEXT=Shrani in naprej
25
25
 
26
- CREATE=Ustvari
26
+ CREATE=Kreiraj
27
27
 
28
28
  CONTINUE_LATER=Nadaljevanje pozneje
29
29
 
@@ -43,7 +43,7 @@ DRAFT_FOUND_TITLE=Osnutek na voljo
43
43
 
44
44
  DRAFT_FOUND_TEXT=Za dokument, ki ga prikazujete, je na voljo osnutek. \u017Delite ta osnutek uporabiti za nadaljnjo obdelavo?
45
45
 
46
- CREATE_DRAFT_MESSAGE_TEXT=Ustvarite objekt.
46
+ CREATE_DRAFT_MESSAGE_TEXT=Kreirajte objekt.
47
47
 
48
48
  SAVE_DRAFT_MESSAGE_TEXT=Uporabite spremembe za shranjeno verzijo.
49
49
 
@@ -21,7 +21,7 @@ SAVE=\u0421\u0430\u0447\u0443\u0432\u0430\u0458
21
21
 
22
22
  SAVE_AND_EDIT=\u0421\u0430\u0447\u0443\u0432\u0430\u0458 \u0438 \u0443\u0440\u0435\u0434\u0438
23
23
 
24
- SAVE_AND_NEXT=\u0421\u0430\u0447\u0443\u0432\u0430\u0458 \u0438 \u0441\u043B\u0435\u0434\u0435\u045B\u0435
24
+ SAVE_AND_NEXT=\u0421\u0430\u0447\u0443\u0432\u0430\u0458 \u0438 \u0438\u0434\u0438 \u043D\u0430 \u0441\u043B\u0435\u0434\u0435\u045B\u0435
25
25
 
26
26
  CREATE=\u041A\u0440\u0435\u0438\u0440\u0430\u0458
27
27
 
@@ -17,6 +17,7 @@
17
17
  <template:if test="{:= ${smartChartId>}.set(AH.getStableIdPartFromFacet(${facet>}) + '::Chart') }"/>
18
18
  <smartChart:SmartChart
19
19
  id="{smartChartId>value}"
20
+ afterVariantInitialise="._templateEventHandlers.onAfterVariantInitialise"
20
21
  header="{chartAnnotation>Title/String}"
21
22
  initialized="._templateEventHandlers.onChartInit"
22
23
  requestAtLeastFields="{parts: [{path: 'chartAnnotation>'}, {path: 'entitySet>entityType'}], formatter: 'sap.suite.ui.generic.template.js.AnnotationHelper.getApplicablePathForChartToolbarActions'}"
@@ -16,6 +16,7 @@
16
16
  <template:if test="{= ${facetId>}.buildStableId({type: 'ObjectPage', subType: 'Facet', sRecordType: ${facet>RecordType}, sAnnotationPath: ${facet>Target/AnnotationPath}, sAnnotationId: ${facet>ID/String}, bIsHeaderFacet: ${isHeaderFacet>value}})}"/>
17
17
  <template:if test="{= ${smartTableId>}.buildStableId({type: 'ObjectPageTable', subType: 'SmartTable', sFacet: ${facetId>id}})}" />
18
18
  <st:SmartTable id="{smartTableId>id}"
19
+ afterVariantInitialise="._templateEventHandlers.onAfterVariantInitialise"
19
20
  initialise="._templateEventHandlers.onTableInit($event, '{facetId>id}')"
20
21
  persistencyKey="{parts: [{path: 'smartTableId>id'}, {path: 'objectPageTableSettings>value/persistencyKeyState'}], formatter: 'sap.suite.ui.generic.template.js.AnnotationHelper.getPersistencyKey'}"
21
22
  tableBindingPath="{= ${path: 'target>AnnotationPath'}.slice(0, ${path: 'target>AnnotationPath'}.lastIndexOf('/')) }"
@@ -117,7 +118,7 @@
117
118
  <st:customData>
118
119
  <core:CustomData key="inlineCreate" value="{parts: [{path: 'facet>'}, {path: 'parameter>/settings/sections'}, {value: 'inline'}], formatter: 'sap.suite.ui.generic.template.js.AnnotationHelper.isInlineMode'}" />
119
120
  <core:CustomData key="disableInlineCreateSort" value="{parts: [{path: 'facet>'}, {path: 'parameter>/settings/sections'}], formatter: 'sap.suite.ui.generic.template.js.AnnotationHelper.isInlineCreateSorting'}" />
120
- <core:CustomData key="inlineCreationRows" value="{parts: [{path: 'facet>'}, {path: 'parameter>/settings/sections'}, {value: 'creationRows'}], formatter: 'sap.suite.ui.generic.template.js.AnnotationHelper.isInlineMode'}" />
121
+ <core:CustomData key="inlineCreationRows" value="{parts: [{path: 'facet>'}, {path: 'parameter>/settings/sections'}, {value: 'creationRows'}], formatter: 'sap.suite.ui.generic.template.js.AnnotationHelper.isInlineMode'}" />
121
122
  <core:CustomData key="isEntityCreatableUsingBooleanRestrictions" value="{= ${parts: [{path: 'listEntitySet>Org.OData.Capabilities.V1.InsertRestrictions'}, {path: 'listEntitySet>'}, {value: 'Insertable'}, {path: 'entitySet>name'}], formatter: 'sap.suite.ui.generic.template.js.AnnotationHelper.areBooleanRestrictionsValidAndPossible'}}"/>
122
123
  <core:CustomData key="isEntityCreatableUsingPathRestrictions" value="{= ${parts: [{path: 'entitySet>'}, {path: 'listEntitySet>'}, {path: 'parameter>/settings/subPages/'}, {path: 'facet>'}, {path: 'parameter>/settings/sections'}, {path: 'parameter>/isDraftEnabled'}, {path: 'objectPageTableSettings>value/createWithParameterDialog'}], formatter: 'sap.suite.ui.generic.template.js.AnnotationHelper.isRelatedEntityCreatable'}}"/>
123
124
  </st:customData>