@openui5/sap.ui.integration 1.96.2 → 1.97.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 (131) hide show
  1. package/.reuse/dep5 +1 -1
  2. package/THIRDPARTY.txt +2 -1
  3. package/package.json +3 -3
  4. package/src/sap/ui/integration/.library +1 -1
  5. package/src/sap/ui/integration/ActionDefinition.js +1 -1
  6. package/src/sap/ui/integration/Designtime.js +1 -1
  7. package/src/sap/ui/integration/Extension.js +1 -1
  8. package/src/sap/ui/integration/Host.js +37 -1
  9. package/src/sap/ui/integration/ManifestResolver.js +102 -0
  10. package/src/sap/ui/integration/cards/AdaptiveContent.js +1 -1
  11. package/src/sap/ui/integration/cards/AnalyticalContent.js +7 -8
  12. package/src/sap/ui/integration/cards/AnalyticsCloudContent.js +4 -2
  13. package/src/sap/ui/integration/cards/BaseContent.js +50 -5
  14. package/src/sap/ui/integration/cards/BaseContentRenderer.js +1 -1
  15. package/src/sap/ui/integration/cards/BaseListContent.js +4 -2
  16. package/src/sap/ui/integration/cards/CalendarContent.js +3 -1
  17. package/src/sap/ui/integration/cards/CalendarContentRenderer.js +1 -0
  18. package/src/sap/ui/integration/cards/ComponentContent.js +2 -1
  19. package/src/sap/ui/integration/cards/Footer.js +1 -1
  20. package/src/sap/ui/integration/cards/Header.js +1 -1
  21. package/src/sap/ui/integration/cards/ListContent.js +36 -11
  22. package/src/sap/ui/integration/cards/NumericHeader.js +1 -1
  23. package/src/sap/ui/integration/cards/ObjectContent.js +145 -131
  24. package/src/sap/ui/integration/cards/TableContent.js +5 -8
  25. package/src/sap/ui/integration/cards/TimelineContent.js +7 -9
  26. package/src/sap/ui/integration/cards/WebPageContent.js +5 -1
  27. package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputChoiceSet.js +1 -1
  28. package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputDate.js +1 -1
  29. package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputNumber.js +1 -1
  30. package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputText.js +1 -1
  31. package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputToggle.js +1 -1
  32. package/src/sap/ui/integration/cards/filters/BaseFilter.js +1 -1
  33. package/src/sap/ui/integration/cards/filters/DateRangeFilter.js +15 -13
  34. package/src/sap/ui/integration/cards/filters/FilterBarFactory.js +1 -1
  35. package/src/sap/ui/integration/cards/filters/SelectFilter.js +33 -3
  36. package/src/sap/ui/integration/controls/ActionsStrip.js +1 -1
  37. package/src/sap/ui/integration/controls/ActionsToolbar.js +1 -1
  38. package/src/sap/ui/integration/controls/ListContentItem.js +1 -1
  39. package/src/sap/ui/integration/controls/Microchart.js +1 -1
  40. package/src/sap/ui/integration/controls/MicrochartLegend.js +1 -1
  41. package/src/sap/ui/integration/designtime/baseEditor/BaseEditor.js +1 -1
  42. package/src/sap/ui/integration/designtime/baseEditor/PropertyEditor.js +1 -1
  43. package/src/sap/ui/integration/designtime/baseEditor/PropertyEditors.js +1 -1
  44. package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_en_US_sappsd.properties +15 -11
  45. package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_en_US_saprigi.properties +13 -19
  46. package/src/sap/ui/integration/designtime/baseEditor/i18n/i18n_en_US_saptrc.properties +16 -12
  47. package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/BasePropertyEditor.js +1 -1
  48. package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/PropertyEditorFactory.js +1 -1
  49. package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/arrayEditor/ArrayEditor.js +1 -1
  50. package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/booleanEditor/BooleanEditor.js +1 -1
  51. package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/dateEditor/DateEditor.js +1 -1
  52. package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/dateTimeEditor/DateTimeEditor.js +1 -1
  53. package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/enumStringEditor/EnumStringEditor.js +1 -1
  54. package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/groupEditor/GroupEditor.js +1 -1
  55. package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/iconEditor/IconEditor.js +1 -1
  56. package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/iconEditor/IsInIconPool.validator.js +1 -1
  57. package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/integerEditor/IntegerEditor.js +1 -1
  58. package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/jsonEditor/JsonEditor.js +1 -1
  59. package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/listEditor/ListEditor.js +1 -1
  60. package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/mapEditor/MapEditor.js +1 -1
  61. package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/numberEditor/NumberEditor.js +1 -1
  62. package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/selectEditor/SelectEditor.js +1 -1
  63. package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/separatorEditor/SeparatorEditor.js +1 -1
  64. package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/stringEditor/StringEditor.js +1 -1
  65. package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/textAreaEditor/TextAreaEditor.js +1 -1
  66. package/src/sap/ui/integration/designtime/baseEditor/util/binding/ObjectBinding.js +1 -1
  67. package/src/sap/ui/integration/designtime/baseEditor/util/unset.js +1 -1
  68. package/src/sap/ui/integration/designtime/baseEditor/validator/IsBoolean.js +1 -1
  69. package/src/sap/ui/integration/designtime/baseEditor/validator/IsDate.js +1 -1
  70. package/src/sap/ui/integration/designtime/baseEditor/validator/IsInteger.js +1 -1
  71. package/src/sap/ui/integration/designtime/baseEditor/validator/IsNumber.js +1 -1
  72. package/src/sap/ui/integration/designtime/baseEditor/validator/IsSelectedKey.js +1 -1
  73. package/src/sap/ui/integration/designtime/baseEditor/validator/IsStringList.js +1 -1
  74. package/src/sap/ui/integration/designtime/baseEditor/validator/IsUniqueKey.js +1 -1
  75. package/src/sap/ui/integration/designtime/baseEditor/validator/IsUniqueList.js +1 -1
  76. package/src/sap/ui/integration/designtime/baseEditor/validator/IsValidBinding.js +1 -1
  77. package/src/sap/ui/integration/designtime/baseEditor/validator/MaxLength.js +1 -1
  78. package/src/sap/ui/integration/designtime/baseEditor/validator/NotABinding.js +1 -1
  79. package/src/sap/ui/integration/designtime/baseEditor/validator/ValidatorRegistry.js +1 -1
  80. package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_en_US_saprigi.properties +0 -4
  81. package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/complexMapEditor/ComplexMapEditor.js +1 -1
  82. package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/destinationsEditor/DestinationsEditor.js +1 -1
  83. package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/iconEditor/IconEditor.js +1 -1
  84. package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/parametersEditor/ParametersEditor.js +1 -1
  85. package/src/sap/ui/integration/designtime/editor/CardEditor.js +1 -1
  86. package/src/sap/ui/integration/designtime/editor/CardPreview.js +26 -4
  87. package/src/sap/ui/integration/designtime/editor/css/CardPreview.css +18 -1
  88. package/src/sap/ui/integration/editor/Editor.js +61 -37
  89. package/src/sap/ui/integration/editor/EditorResourceBundles.js +1 -1
  90. package/src/sap/ui/integration/editor/Extension.js +1 -1
  91. package/src/sap/ui/integration/editor/Manifest.js +1 -1
  92. package/src/sap/ui/integration/editor/Settings.js +1 -1
  93. package/src/sap/ui/integration/editor/fields/BaseField.js +8 -2
  94. package/src/sap/ui/integration/editor/fields/BooleanField.js +3 -1
  95. package/src/sap/ui/integration/editor/fields/DateField.js +1 -1
  96. package/src/sap/ui/integration/editor/fields/DateTimeField.js +1 -1
  97. package/src/sap/ui/integration/editor/fields/DestinationField.js +1 -1
  98. package/src/sap/ui/integration/editor/fields/IntegerField.js +4 -1
  99. package/src/sap/ui/integration/editor/fields/ListField.js +254 -57
  100. package/src/sap/ui/integration/editor/fields/NumberField.js +1 -1
  101. package/src/sap/ui/integration/editor/fields/StringField.js +2 -3
  102. package/src/sap/ui/integration/editor/fields/viz/ColorSelect.js +1 -1
  103. package/src/sap/ui/integration/editor/fields/viz/IconSelect.js +1 -1
  104. package/src/sap/ui/integration/editor/fields/viz/ShapeSelect.js +1 -1
  105. package/src/sap/ui/integration/library.js +2 -2
  106. package/src/sap/ui/integration/messagebundle_en_US_saprigi.properties +55 -81
  107. package/src/sap/ui/integration/model/ContextModel.js +1 -1
  108. package/src/sap/ui/integration/model/ObservableModel.js +1 -1
  109. package/src/sap/ui/integration/schemas/sap-card.json +29 -4
  110. package/src/sap/ui/integration/themes/base/CalendarContent.less +31 -4
  111. package/src/sap/ui/integration/util/BaseFactory.js +1 -1
  112. package/src/sap/ui/integration/util/BindingHelper.js +2 -2
  113. package/src/sap/ui/integration/util/BindingResolver.js +1 -1
  114. package/src/sap/ui/integration/util/CardActions.js +1 -1
  115. package/src/sap/ui/integration/util/CardObserver.js +1 -1
  116. package/src/sap/ui/integration/util/ContentFactory.js +3 -7
  117. package/src/sap/ui/integration/util/CsrfTokenHandler.js +312 -0
  118. package/src/sap/ui/integration/util/DataProvider.js +10 -1
  119. package/src/sap/ui/integration/util/DataProviderFactory.js +48 -11
  120. package/src/sap/ui/integration/util/Destinations.js +1 -1
  121. package/src/sap/ui/integration/util/ExtensionDataProvider.js +1 -1
  122. package/src/sap/ui/integration/util/HeaderFactory.js +1 -1
  123. package/src/sap/ui/integration/util/JSONBindingHelper.js +2 -2
  124. package/src/sap/ui/integration/util/LoadingProvider.js +1 -1
  125. package/src/sap/ui/integration/util/Manifest.js +2 -2
  126. package/src/sap/ui/integration/util/RequestDataProvider.js +86 -48
  127. package/src/sap/ui/integration/util/ServiceDataProvider.js +1 -1
  128. package/src/sap/ui/integration/util/ServiceManager.js +1 -1
  129. package/src/sap/ui/integration/util/Utils.js +41 -1
  130. package/src/sap/ui/integration/widgets/Card.js +17 -3
  131. package/ui5.yaml +286 -1
@@ -62,7 +62,7 @@ sap.ui.define([
62
62
  *
63
63
  * @extends sap.ui.integration.cards.BaseContent
64
64
  * @author SAP SE
65
- * @version 1.96.2
65
+ * @version 1.97.0
66
66
  *
67
67
  * @constructor
68
68
  * @experimental
@@ -171,6 +171,7 @@ sap.ui.define([
171
171
 
172
172
  ObjectContent.prototype.setConfiguration = function (oConfiguration) {
173
173
  BaseContent.prototype.setConfiguration.apply(this, arguments);
174
+ oConfiguration = this.getParsedConfiguration();
174
175
 
175
176
  if (!oConfiguration) {
176
177
  return this;
@@ -210,149 +211,162 @@ sap.ui.define([
210
211
  }
211
212
 
212
213
  oGroup.items.forEach(function (oItem) {
214
+ this._createGroupItems(oItem).forEach(oGroupContainer.addItem, oGroupContainer);
215
+ }, this);
216
+ oContainer.addContent(oGroupContainer);
217
+ }, this);
213
218
 
214
- var vLabel = oItem.label,
215
- vValue = oItem.value,
216
- oLabel,
217
- vVisible,
218
- oControl,
219
- vHref,
220
- aBindingParts = [];
221
-
222
- if (typeof oItem.visible == "string") {
223
- vVisible = !Utils.hasFalsyValueAsString(oItem.visible);
224
- } else {
225
- vVisible = oItem.visible;
226
- }
227
-
228
- if (vLabel) {
229
- // Checks if the label ends with ":" and if not we just add the ":"
230
- vLabel = BindingHelper.formattedProperty(vLabel, function (sValue) {
231
- return sValue && sValue[sValue.length - 1] === ":" ? sValue : sValue + ":";
232
- });
233
- oLabel = new Label({
234
- text: vLabel,
235
- visible: vVisible
236
- }).addStyleClass("sapFCardObjectItemLabel");
237
- }
219
+ this._oActions.attach({
220
+ area: ActionArea.Content,
221
+ actions: oConfiguration.actions,
222
+ control: this
223
+ });
224
+ };
238
225
 
239
- if (vValue && oItem.actions) {
226
+ ObjectContent.prototype._createGroupItems = function (oItem) {
227
+ var vLabel = oItem.label,
228
+ vValue = oItem.value,
229
+ oLabel,
230
+ vVisible,
231
+ oControl,
232
+ vHref,
233
+ aBindingParts = [];
234
+
235
+ if (typeof oItem.visible == "string") {
236
+ vVisible = !Utils.hasFalsyValueAsString(oItem.visible);
237
+ } else {
238
+ vVisible = oItem.visible;
239
+ }
240
+
241
+ if (vLabel) {
242
+ // Checks if the label ends with ":" and if not we just add the ":"
243
+ vLabel = BindingHelper.formattedProperty(vLabel, function (sValue) {
244
+ return sValue && sValue[sValue.length - 1] === ":" ? sValue : sValue + ":";
245
+ });
246
+ oLabel = new Label({
247
+ text: vLabel,
248
+ visible: vVisible
249
+ }).addStyleClass("sapFCardObjectItemLabel");
250
+ }
251
+
252
+ if (vValue && oItem.actions) {
253
+ oControl = new Link({
254
+ text: vValue,
255
+ visible: BindingHelper.reuse(vVisible)
256
+ });
257
+
258
+ if (oLabel) {
259
+ oControl.addAriaLabelledBy(oLabel);
260
+ } else {
261
+ Log.warning("Missing label for Object group item with actions.", null, "sap.ui.integration.widgets.Card");
262
+ }
263
+
264
+ this._oActions.attach({
265
+ area: ActionArea.ContentItemDetail,
266
+ actions: oItem.actions,
267
+ control: this,
268
+ actionControl: oControl,
269
+ enabledPropertyName: "enabled"
270
+ });
271
+ }
272
+
273
+ // deprecated "type" property
274
+ if (vValue && !oItem.actions && oItem.type) {
275
+ Log.warning("Usage of Object Group Item property 'type' is deprecated. Use Card Actions for navigation.", null, "sap.ui.integration.widgets.Card");
276
+
277
+ switch (oItem.type) {
278
+ case 'link':
240
279
  oControl = new Link({
280
+ href: oItem.url || vValue,
241
281
  text: vValue,
282
+ target: oItem.target || '_blank',
242
283
  visible: BindingHelper.reuse(vVisible)
243
284
  });
244
- this._oActions.attach({
245
- area: ActionArea.ContentItemDetail,
246
- actions: oItem.actions,
247
- control: this,
248
- actionControl: oControl,
249
- enabledPropertyName: "enabled"
250
- });
251
- }
252
-
253
- if (vValue && !oItem.actions && oItem.type) {
254
- Log.warning("Usage of Object Group Item property 'type' is deprecated. Use Card Actions for navigation.", null, "sap.ui.integration.widgets.Card");
255
-
256
- switch (oItem.type) {
257
- case 'link':
258
- oControl = new Link({
259
- href: oItem.url || vValue,
260
- text: vValue,
261
- target: oItem.target || '_blank',
262
- visible: BindingHelper.reuse(vVisible)
263
- });
264
- break;
265
- case 'email':
266
- if (oItem.value) {
267
- aBindingParts.push(oItem.value);
268
- }
269
- if (oItem.emailSubject) {
270
- aBindingParts.push(oItem.emailSubject);
271
- }
272
-
273
- vHref = BindingHelper.formattedProperty(aBindingParts, function (sValue, sEmailSubject) {
274
- if (sEmailSubject) {
275
- return "mailto:" + sValue + "?subject=" + sEmailSubject;
276
- } else {
277
- return "mailto:" + sValue;
278
- }
279
- });
280
-
281
- oControl = new Link({
282
- href: vHref,
283
- text: vValue,
284
- visible: BindingHelper.reuse(vVisible)
285
- });
286
- break;
287
- case 'phone':
288
- vHref = BindingHelper.formattedProperty(vValue, function (sValue) {
289
- return "tel:" + sValue;
290
- });
291
- oControl = new Link({
292
- href: vHref,
293
- text: vValue,
294
- visible: BindingHelper.reuse(vVisible)
295
- });
296
- break;
297
- default:
285
+ break;
286
+ case 'email':
287
+ if (oItem.value) {
288
+ aBindingParts.push(oItem.value);
289
+ }
290
+ if (oItem.emailSubject) {
291
+ aBindingParts.push(oItem.emailSubject);
298
292
  }
299
- }
300
293
 
301
- if (vValue && !oControl) {
302
- oControl = new Text({
294
+ vHref = BindingHelper.formattedProperty(aBindingParts, function (sValue, sEmailSubject) {
295
+ if (sEmailSubject) {
296
+ return "mailto:" + sValue + "?subject=" + sEmailSubject;
297
+ } else {
298
+ return "mailto:" + sValue;
299
+ }
300
+ });
301
+
302
+ oControl = new Link({
303
+ href: vHref,
303
304
  text: vValue,
304
305
  visible: BindingHelper.reuse(vVisible)
305
306
  });
306
- }
307
-
308
- if (oControl) {
309
- oControl.addStyleClass("sapFCardObjectItemText");
310
- }
311
-
312
- if (oItem.icon) {
313
- var vSrc = BindingHelper.formattedProperty(oItem.icon.src, function (sValue) {
314
- return this._oIconFormatter.formatSrc(sValue);
315
- }.bind(this));
316
-
317
- var oAvatar = new Avatar({
318
- displaySize: oItem.icon.size || AvatarSize.XS,
319
- src: vSrc,
320
- initials: oItem.icon.text,
321
- displayShape: oItem.icon.shape,
322
- tooltip: oItem.icon.alt,
323
- backgroundColor: oItem.icon.backgroundColor || (oItem.icon.text ? undefined : AvatarColor.Transparent)
324
- }).addStyleClass("sapFCardObjectItemAvatar sapFCardIcon");
325
-
326
- var oVbox = new VBox({
327
- renderType: FlexRendertype.Bare,
328
- items: [
329
- oLabel,
330
- oControl
331
- ]
307
+ break;
308
+ case 'phone':
309
+ vHref = BindingHelper.formattedProperty(vValue, function (sValue) {
310
+ return "tel:" + sValue;
332
311
  });
333
- var oHBox = new HBox({
334
- visible: vVisible,
335
- renderType: FlexRendertype.Bare,
336
- items: [
337
- oAvatar,
338
- oVbox
339
- ]
340
- }).addStyleClass("sapFCardObjectItemLabel");
341
-
342
- oGroupContainer.addItem(oHBox);
343
- } else {
344
- oGroupContainer.addItem(oLabel);
345
- oGroupContainer.addItem(oControl);
346
- }
347
- }, this);
348
- oContainer.addContent(oGroupContainer);
349
- }, this);
312
+ oControl = new Link({
313
+ href: vHref,
314
+ text: vValue,
315
+ visible: BindingHelper.reuse(vVisible)
316
+ });
317
+ break;
318
+ default:
319
+ }
320
+ }
350
321
 
351
- this._oActions.attach({
352
- area: ActionArea.Content,
353
- actions: oConfiguration.actions,
354
- control: this
355
- });
322
+ if (vValue && !oControl) {
323
+ oControl = new Text({
324
+ text: vValue,
325
+ visible: BindingHelper.reuse(vVisible)
326
+ });
327
+ }
328
+
329
+ if (oControl) {
330
+ oControl.addStyleClass("sapFCardObjectItemText");
331
+ }
332
+
333
+ if (oItem.icon) {
334
+ var oVbox = new VBox({
335
+ renderType: FlexRendertype.Bare,
336
+ items: [
337
+ oLabel,
338
+ oControl
339
+ ]
340
+ });
341
+ var oHBox = new HBox({
342
+ visible: vVisible,
343
+ renderType: FlexRendertype.Bare,
344
+ items: [
345
+ this._createGroupItemAvatar(oItem.icon),
346
+ oVbox
347
+ ]
348
+ }).addStyleClass("sapFCardObjectItemLabel");
349
+ return [oHBox];
350
+ } else {
351
+ return [oLabel, oControl];
352
+ }
353
+ };
354
+
355
+ ObjectContent.prototype._createGroupItemAvatar = function (oIconConfiguration) {
356
+ var vSrc = BindingHelper.formattedProperty(oIconConfiguration.src, function (sValue) {
357
+ return this._oIconFormatter.formatSrc(sValue);
358
+ }.bind(this));
359
+
360
+ var oAvatar = new Avatar({
361
+ displaySize: oIconConfiguration.size || AvatarSize.XS,
362
+ src: vSrc,
363
+ initials: oIconConfiguration.text,
364
+ displayShape: oIconConfiguration.shape,
365
+ tooltip: oIconConfiguration.alt,
366
+ backgroundColor: oIconConfiguration.backgroundColor || (oIconConfiguration.text ? undefined : AvatarColor.Transparent)
367
+ }).addStyleClass("sapFCardObjectItemAvatar sapFCardIcon");
368
+
369
+ return oAvatar;
356
370
  };
357
371
 
358
372
  return ObjectContent;
@@ -77,7 +77,7 @@ sap.ui.define([
77
77
  * @extends sap.ui.integration.cards.BaseListContent
78
78
  *
79
79
  * @author SAP SE
80
- * @version 1.96.2
80
+ * @version 1.97.0
81
81
  *
82
82
  * @constructor
83
83
  * @private
@@ -120,14 +120,11 @@ sap.ui.define([
120
120
  };
121
121
 
122
122
  /**
123
- * Setter for configuring a <code>sap.ui.integration.cards.TableContent</code>.
124
- *
125
- * @public
126
- * @param {Object} oConfiguration Configuration object used to create the internal table.
127
- * @returns {this} Pointer to the control instance to allow method chaining.
123
+ * @override
128
124
  */
129
125
  TableContent.prototype.setConfiguration = function (oConfiguration) {
130
126
  BaseListContent.prototype.setConfiguration.apply(this, arguments);
127
+ oConfiguration = this.getParsedConfiguration();
131
128
 
132
129
  if (!oConfiguration) {
133
130
  return this;
@@ -149,7 +146,7 @@ sap.ui.define([
149
146
  * Handler for when data is changed.
150
147
  */
151
148
  TableContent.prototype.onDataChanged = function () {
152
- this._checkHiddenNavigationItems(this.getConfiguration().row);
149
+ this._checkHiddenNavigationItems(this.getParsedConfiguration().row);
153
150
  };
154
151
 
155
152
  /**
@@ -189,7 +186,7 @@ sap.ui.define([
189
186
  disabledPropertyValue: ListType.Inactive
190
187
  });
191
188
 
192
- var oGroup = this.getConfiguration().group;
189
+ var oGroup = this.getParsedConfiguration().group;
193
190
 
194
191
  if (oGroup) {
195
192
  this._oSorter = this._getGroupSorter(oGroup);
@@ -38,7 +38,7 @@ sap.ui.define([
38
38
  * @extends sap.ui.integration.cards.BaseListContent
39
39
  *
40
40
  * @author SAP SE
41
- * @version 1.96.2
41
+ * @version 1.97.0
42
42
  *
43
43
  * @constructor
44
44
  * @experimental
@@ -117,14 +117,11 @@ sap.ui.define([
117
117
  };
118
118
 
119
119
  /**
120
- * Setter for configuring a <code>sap.ui.integration.cards.TimelineContent</code>.
121
- *
122
- * @public
123
- * @param {Object} oConfiguration Configuration object used to create the internal list.
124
- * @returns {this} Pointer to the control instance to allow method chaining.
120
+ * @override
125
121
  */
126
122
  TimelineContent.prototype.setConfiguration = function (oConfiguration) {
127
123
  BaseListContent.prototype.setConfiguration.apply(this, arguments);
124
+ oConfiguration = this.getParsedConfiguration();
128
125
 
129
126
  if (!oConfiguration) {
130
127
  return this;
@@ -146,7 +143,7 @@ sap.ui.define([
146
143
  * Handler for when data is changed.
147
144
  */
148
145
  TimelineContent.prototype.onDataChanged = function () {
149
- this._checkHiddenNavigationItems(this.getConfiguration().item);
146
+ this._checkHiddenNavigationItems(this.getParsedConfiguration().item);
150
147
  };
151
148
 
152
149
  /**
@@ -158,7 +155,7 @@ sap.ui.define([
158
155
  */
159
156
  TimelineContent.prototype._setItem = function (mItem) {
160
157
  var mSettings = {
161
- userNameClickable : false,
158
+ userNameClickable: false,
162
159
  title: mItem.title && mItem.title.value,
163
160
  text: mItem.description && mItem.description.value,
164
161
  dateTime: mItem.dateTime && mItem.dateTime.value,
@@ -179,7 +176,8 @@ sap.ui.define([
179
176
  area: ActionArea.ContentItem,
180
177
  actions: mItem.actions,
181
178
  control: this,
182
- actionControl: this._oItemTemplate
179
+ actionControl: this._oTimeLineItemTemplate,
180
+ eventName: "select"
183
181
  });
184
182
 
185
183
  var oBindingInfo = {
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  * @extends sap.ui.integration.cards.BaseContent
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.96.2
35
+ * @version 1.97.0
36
36
  *
37
37
  * @constructor
38
38
  * @experimental
@@ -105,8 +105,12 @@ sap.ui.define([
105
105
  this._checkSrc();
106
106
  };
107
107
 
108
+ /**
109
+ * @override
110
+ */
108
111
  WebPageContent.prototype.setConfiguration = function (oConfiguration) {
109
112
  BaseContent.prototype.setConfiguration.apply(this, arguments);
113
+ oConfiguration = this.getParsedConfiguration();
110
114
 
111
115
  //workaround until actions refactor
112
116
  this.fireEvent("_actionContentReady"); // todo
@@ -17,7 +17,7 @@ sap.ui.define(["sap/ui/integration/thirdparty/adaptivecards"], function (Adaptiv
17
17
  * <code>ui5-select</code>, or container with <code>ui5-radiobutton</code>, or <code>ui5-checkbox</code> web components.
18
18
  *
19
19
  * @author SAP SE
20
- * @version 1.96.2
20
+ * @version 1.97.0
21
21
  *
22
22
  * @private
23
23
  * @since 1.74
@@ -16,7 +16,7 @@ sap.ui.define(["sap/ui/integration/thirdparty/adaptivecards"], function (Adaptiv
16
16
  * <code>ui5-datepicker</code> web component.
17
17
  *
18
18
  * @author SAP SE
19
- * @version 1.96.2
19
+ * @version 1.97.0
20
20
  *
21
21
  * @private
22
22
  * @since 1.74
@@ -16,7 +16,7 @@ sap.ui.define(["sap/ui/integration/thirdparty/adaptivecards"], function (Adaptiv
16
16
  * <code>ui5-input</code> web component with type Number.
17
17
  *
18
18
  * @author SAP SE
19
- * @version 1.96.2
19
+ * @version 1.97.0
20
20
  *
21
21
  * @private
22
22
  * @since 1.74
@@ -16,7 +16,7 @@ sap.ui.define(["sap/ui/integration/thirdparty/adaptivecards"], function (Adaptiv
16
16
  * <code>ui5-input</code> or <code>ui5-textarea<code> UI5 web component.
17
17
  *
18
18
  * @author SAP SE
19
- * @version 1.96.2
19
+ * @version 1.97.0
20
20
  *
21
21
  * @private
22
22
  * @since 1.74
@@ -16,7 +16,7 @@ sap.ui.define(["sap/ui/integration/thirdparty/adaptivecards"], function (Adaptiv
16
16
  * <code>ui5-checkbox</code> web component.
17
17
  *
18
18
  * @author SAP SE
19
- * @version 1.96.2
19
+ * @version 1.97.0
20
20
  *
21
21
  * @private
22
22
  * @since 1.74
@@ -35,7 +35,7 @@ sap.ui.define([
35
35
  * @extends sap.ui.core.Control
36
36
  *
37
37
  * @author SAP SE
38
- * @version 1.96.2
38
+ * @version 1.97.0
39
39
  *
40
40
  * @constructor
41
41
  * @private
@@ -23,11 +23,11 @@ sap.ui.define([
23
23
  var MAX_ODATA_DATE = new Date("9999-12-31");
24
24
 
25
25
  /**
26
- * @param {string} sOperator sap.m.StandardDynamicDateRangeKeys operator in upper case
27
- * @returns {string} Operator in camel case
26
+ * @param {string} sOption sap.m.StandardDynamicDateRangeKeys option in upper case
27
+ * @returns {string} Option in camel case
28
28
  */
29
- function operatorToCamelCase(sOperator) {
30
- var mOperators = {
29
+ function optionToCamelCase(sOption) {
30
+ var mOptions = {
31
31
  "DATE": "date",
32
32
  "TODAY": "today",
33
33
  "YESTERDAY": "yesterday",
@@ -71,7 +71,7 @@ sap.ui.define([
71
71
  "NEXTYEAR": "nextYear"
72
72
  };
73
73
 
74
- return mOperators[sOperator];
74
+ return mOptions[sOption];
75
75
  }
76
76
 
77
77
  /**
@@ -85,7 +85,7 @@ sap.ui.define([
85
85
  * @extends sap.ui.integration.cards.filters.BaseFilter
86
86
  *
87
87
  * @author SAP SE
88
- * @version 1.96.2
88
+ * @version 1.97.0
89
89
  *
90
90
  * @constructor
91
91
  * @private
@@ -124,8 +124,12 @@ sap.ui.define([
124
124
  var oRangeOData;
125
125
 
126
126
  if (oDateRangeValue) {
127
- oValue = Object.assign({}, oDateRangeValue);
128
- var aDates = DynamicDateUtil.toDates(oValue),
127
+ oValue = {
128
+ option: optionToCamelCase(oDateRangeValue.operator),
129
+ values: oDateRangeValue.values.slice()
130
+ };
131
+
132
+ var aDates = DynamicDateUtil.toDates(oDateRangeValue),
129
133
  dStart = aDates[0].getJSDate ? aDates[0].getJSDate() : aDates[0],
130
134
  dEnd = aDates[1].getJSDate ? aDates[1].getJSDate() : aDates[1];
131
135
 
@@ -138,17 +142,15 @@ sap.ui.define([
138
142
  end: dEnd.toISOString()
139
143
  };
140
144
 
141
- if (oValue.operator === "TO") {
145
+ if (oDateRangeValue.operator === "TO") {
142
146
  oRange.start = MIN_DATE.toISOString();
143
147
  oRangeOData.start = MIN_ODATA_DATE.toISOString();
144
148
  }
145
149
 
146
- if (oValue.operator === "FROM") {
150
+ if (oDateRangeValue.operator === "FROM") {
147
151
  oRange.end = MAX_DATE.toISOString();
148
152
  oRangeOData.end = MAX_ODATA_DATE.toISOString();
149
153
  }
150
-
151
- oValue.operator = operatorToCamelCase(oValue.operator);
152
154
  }
153
155
 
154
156
  return {
@@ -179,7 +181,7 @@ sap.ui.define([
179
181
  var oValue;
180
182
 
181
183
  if (oConfig.value) {
182
- var sOption = oConfig.value.operator.toUpperCase();
184
+ var sOption = oConfig.value.option.toUpperCase();
183
185
  var aTypes = DynamicDateUtil.getOption(sOption).getValueTypes();
184
186
  oValue = {
185
187
  operator: sOption,
@@ -30,7 +30,7 @@ sap.ui.define([
30
30
  * @extends sap.ui.base.Object
31
31
  *
32
32
  * @author SAP SE
33
- * @version 1.96.2
33
+ * @version 1.97.0
34
34
  *
35
35
  * @constructor
36
36
  * @private
@@ -7,12 +7,14 @@ sap.ui.define([
7
7
  "./BaseFilter",
8
8
  "sap/m/Select",
9
9
  "sap/ui/core/ListItem",
10
- "sap/ui/model/json/JSONModel"
10
+ "sap/ui/model/json/JSONModel",
11
+ "sap/ui/integration/util/BindingResolver"
11
12
  ], function (
12
13
  BaseFilter,
13
14
  Select,
14
15
  ListItem,
15
- JSONModel
16
+ JSONModel,
17
+ BindingResolver
16
18
  ) {
17
19
  "use strict";
18
20
 
@@ -27,7 +29,7 @@ sap.ui.define([
27
29
  * @extends sap.ui.integration.cards.filters.BaseFilter
28
30
  *
29
31
  * @author SAP SE
30
- * @version 1.96.2
32
+ * @version 1.97.0
31
33
  *
32
34
  * @constructor
33
35
  * @private
@@ -94,6 +96,34 @@ sap.ui.define([
94
96
  };
95
97
  };
96
98
 
99
+ /**
100
+ * @returns {object} Filter configuration with static items
101
+ */
102
+ SelectFilter.prototype.getStaticConfiguration = function () {
103
+ var oConfiguration = this.getConfig();
104
+ var sPath = "/";
105
+ var aItems = this.getModel().getProperty(sPath);
106
+ var aResolvedItems = [];
107
+
108
+ if (oConfiguration.item && oConfiguration.item.path) {
109
+ sPath = oConfiguration.item.path;
110
+ }
111
+
112
+ for (var i = 0; i < aItems.length; i++) {
113
+ if (sPath === "/") {
114
+ aResolvedItems.push(BindingResolver.resolveValue(oConfiguration.item, this, sPath + i));
115
+ } else {
116
+ aResolvedItems.push(BindingResolver.resolveValue(oConfiguration.item, this, sPath + "/" + i));
117
+ }
118
+ }
119
+
120
+ var oStaticConfiguration = Object.assign({}, oConfiguration);
121
+ delete oStaticConfiguration.item;
122
+ oStaticConfiguration.items = aResolvedItems;
123
+
124
+ return oStaticConfiguration;
125
+ };
126
+
97
127
  SelectFilter.prototype._getSelect = function () {
98
128
  var oControl = this.getAggregation("_select");
99
129
  if (!oControl) {
@@ -46,7 +46,7 @@ sap.ui.define([
46
46
  * @extends sap.ui.core.Control
47
47
  *
48
48
  * @author SAP SE
49
- * @version 1.96.2
49
+ * @version 1.97.0
50
50
  *
51
51
  * @constructor
52
52
  * @private
@@ -76,7 +76,7 @@ sap.ui.define([
76
76
  * @extends sap.ui.core.Control
77
77
  *
78
78
  * @author SAP SE
79
- * @version 1.96.2
79
+ * @version 1.97.0
80
80
  *
81
81
  * @constructor
82
82
  * @private
@@ -34,7 +34,7 @@ sap.ui.define([
34
34
  * @extends sap.m.StandardListItem
35
35
  *
36
36
  * @author SAP SE
37
- * @version 1.96.2
37
+ * @version 1.97.0
38
38
  *
39
39
  * @constructor
40
40
  * @private
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  * @extends sap.ui.core.Control
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.96.2
35
+ * @version 1.97.0
36
36
  *
37
37
  * @constructor
38
38
  * @private
@@ -32,7 +32,7 @@ sap.ui.define([
32
32
  * @extends sap.ui.core.Control
33
33
  *
34
34
  * @author SAP SE
35
- * @version 1.96.2
35
+ * @version 1.97.0
36
36
  *
37
37
  * @constructor
38
38
  * @private