@openui5/sap.ui.integration 1.147.1 → 1.148.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.
- package/THIRDPARTY.txt +1 -1
- package/package.json +6 -6
- package/src/sap/ui/integration/.library +1 -1
- package/src/sap/ui/integration/ActionDefinition.js +1 -1
- package/src/sap/ui/integration/Designtime.js +1 -1
- package/src/sap/ui/integration/Extension.js +1 -1
- package/src/sap/ui/integration/Host.js +1 -1
- package/src/sap/ui/integration/cards/AdaptiveContent.js +1 -3
- package/src/sap/ui/integration/cards/AnalyticalContent.js +1 -4
- package/src/sap/ui/integration/cards/AnalyticsCloudContent.js +1 -9
- package/src/sap/ui/integration/cards/BaseContent.js +2 -9
- package/src/sap/ui/integration/cards/BaseListContent.js +1 -85
- package/src/sap/ui/integration/cards/CalendarContent.js +7 -10
- package/src/sap/ui/integration/cards/ComponentContent.js +10 -7
- package/src/sap/ui/integration/cards/Footer.js +11 -2
- package/src/sap/ui/integration/cards/Header.js +2 -9
- package/src/sap/ui/integration/cards/ListContent.js +1 -12
- package/src/sap/ui/integration/cards/NumericHeader.js +2 -8
- package/src/sap/ui/integration/cards/ObjectContent.js +1 -7
- package/src/sap/ui/integration/cards/TableContent.js +1 -21
- package/src/sap/ui/integration/cards/TimelineContent.js +1 -14
- package/src/sap/ui/integration/cards/WebPageContent.js +1 -4
- package/src/sap/ui/integration/cards/actions/CardActions.js +36 -191
- package/src/sap/ui/integration/cards/actions/NavigationAction.js +0 -4
- package/src/sap/ui/integration/cards/actions/SubmitAction.js +1 -2
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputChoiceSet.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputDate.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputNumber.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputText.js +1 -1
- package/src/sap/ui/integration/cards/adaptivecards/elements/UI5InputToggle.js +1 -1
- package/src/sap/ui/integration/cards/filters/BaseFilter.js +2 -2
- package/src/sap/ui/integration/cards/filters/ComboBoxFilter.js +1 -1
- package/src/sap/ui/integration/cards/filters/DateRangeFilter.js +1 -1
- package/src/sap/ui/integration/cards/filters/FilterBar.js +1 -1
- package/src/sap/ui/integration/cards/filters/FilterBarFactory.js +1 -1
- package/src/sap/ui/integration/cards/filters/SearchFilter.js +1 -1
- package/src/sap/ui/integration/cards/filters/SelectFilter.js +1 -1
- package/src/sap/ui/integration/cards/list/MicrochartsResizeHelper.js +1 -1
- package/src/sap/ui/integration/controls/ActionsStrip.js +5 -8
- package/src/sap/ui/integration/controls/ActionsToolbar.js +1 -1
- package/src/sap/ui/integration/controls/BlockingMessage.js +1 -1
- package/src/sap/ui/integration/controls/ComboBox.js +1 -1
- package/src/sap/ui/integration/controls/HeaderInfoSectionColumn.js +1 -1
- package/src/sap/ui/integration/controls/HeaderInfoSectionRow.js +1 -1
- package/src/sap/ui/integration/controls/ImageWithOverlay.js +1 -1
- package/src/sap/ui/integration/controls/ListContentItem.js +1 -1
- package/src/sap/ui/integration/controls/Microchart.js +1 -1
- package/src/sap/ui/integration/controls/MicrochartLegend.js +1 -1
- package/src/sap/ui/integration/controls/ObjectStatus.js +1 -1
- package/src/sap/ui/integration/delegate/OverflowHandler.js +1 -1
- package/src/sap/ui/integration/delegate/Paginator.js +1 -1
- package/src/sap/ui/integration/delegate/PreventKeyboardScrolling.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/BaseEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/PropertyEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/PropertyEditors.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/BasePropertyEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/PropertyEditorFactory.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/arrayEditor/ArrayEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/booleanEditor/BooleanEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/codeEditor/CodeEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/dateEditor/DateEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/dateTimeEditor/DateTimeEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/enumStringEditor/EnumStringEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/groupEditor/GroupEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/iconEditor/IconEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/iconEditor/IsInIconPool.validator.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/integerEditor/IntegerEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/jsonEditor/JsonEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/listEditor/ListEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/mapEditor/MapEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/multiSelectEditor/MultiSelectEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/numberEditor/NumberEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/objectArrayEditor/ObjectArrayEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/selectEditor/SelectEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/separatorEditor/SeparatorEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/stringEditor/StringEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/textAreaEditor/TextAreaEditor.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/binding/ObjectBinding.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/unset.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsBoolean.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsDate.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsInteger.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsNumber.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsSelectedKey.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsStringList.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsUniqueKey.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsUniqueList.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsValidBinding.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/MaxLength.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/NotABinding.js +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/validator/ValidatorRegistry.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/generateActionConfig.js +0 -6
- package/src/sap/ui/integration/designtime/cardEditor/config/generateDataConfig.js +0 -14
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n.properties +0 -9
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ar.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_bg.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ca.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_cnr.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_cs.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_cy.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_da.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_de.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_el.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_en.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_en_GB.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_en_US_saprigi.properties +30 -6
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_es.properties +32 -2
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_es_MX.properties +32 -2
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_et.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_fi.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_fr.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_fr_CA.properties +31 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_hi.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_hr.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_hu.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_id.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_it.properties +31 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_iw.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ja.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_kk.properties +32 -2
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ko.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_lt.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_lv.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_mk.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ms.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_nl.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_no.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_pl.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_pt.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_pt_PT.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ro.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_ru.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_sh.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_sk.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_sl.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_sr.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_sv.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_th.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_tr.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_uk.properties +32 -2
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_vi.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_zh_CN.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n_zh_TW.properties +30 -0
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/complexMapEditor/ComplexMapEditor.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/destinationsEditor/DestinationsEditor.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/filtersEditor/FiltersEditor.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/iconEditor/IconEditor.js +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/parametersEditor/ParametersEditor.js +1 -1
- package/src/sap/ui/integration/designtime/editor/Card.js +1 -1
- package/src/sap/ui/integration/designtime/editor/CardEditor.js +20 -6
- package/src/sap/ui/integration/designtime/editor/CardPreview.js +3 -1
- package/src/sap/ui/integration/editor/Editor.js +23 -12
- package/src/sap/ui/integration/editor/EditorResourceBundles.js +1 -1
- package/src/sap/ui/integration/editor/Extension.js +1 -1
- package/src/sap/ui/integration/editor/Manifest.js +1 -1
- package/src/sap/ui/integration/editor/Settings.js +1 -1
- package/src/sap/ui/integration/editor/css/Editor.css +2 -2
- package/src/sap/ui/integration/editor/fields/BaseField.js +1 -1
- package/src/sap/ui/integration/editor/fields/BooleanField.js +1 -1
- package/src/sap/ui/integration/editor/fields/DateField.js +1 -1
- package/src/sap/ui/integration/editor/fields/DateTimeField.js +1 -1
- package/src/sap/ui/integration/editor/fields/DestinationField.js +1 -1
- package/src/sap/ui/integration/editor/fields/GroupField.js +1 -1
- package/src/sap/ui/integration/editor/fields/IntegerField.js +1 -1
- package/src/sap/ui/integration/editor/fields/NumberField.js +1 -1
- package/src/sap/ui/integration/editor/fields/ObjectField.js +1 -1
- package/src/sap/ui/integration/editor/fields/ObjectListField.js +1 -1
- package/src/sap/ui/integration/editor/fields/StringField.js +1 -1
- package/src/sap/ui/integration/editor/fields/StringListField.js +1 -1
- package/src/sap/ui/integration/editor/fields/fragment/Controller.js +1 -1
- package/src/sap/ui/integration/editor/fields/viz/ColorSelect.js +1 -1
- package/src/sap/ui/integration/editor/fields/viz/IconSelect.js +1 -1
- package/src/sap/ui/integration/editor/fields/viz/ImageSelect.js +1 -1
- package/src/sap/ui/integration/editor/fields/viz/ShapeSelect.js +1 -1
- package/src/sap/ui/integration/editor/fields/viz/VizBase.js +1 -1
- package/src/sap/ui/integration/extensions/OAuth3LO.js +1 -1
- package/src/sap/ui/integration/formatters/IconFormatter.js +8 -0
- package/src/sap/ui/integration/library-bootstrap.js +6 -9
- package/src/sap/ui/integration/library.js +2 -17
- package/src/sap/ui/integration/model/ContextModel.js +1 -1
- package/src/sap/ui/integration/model/ObservableModel.js +1 -1
- package/src/sap/ui/integration/schemas/sap-card.json +20 -31
- package/src/sap/ui/integration/themes/base/Footer.less +4 -0
- package/src/sap/ui/integration/util/AnalyticsCloudHelper.js +1 -1
- package/src/sap/ui/integration/util/BaseFactory.js +1 -1
- package/src/sap/ui/integration/util/BindingHelper.js +1 -1
- package/src/sap/ui/integration/util/BindingResolver.js +1 -1
- package/src/sap/ui/integration/util/CardObserver.js +1 -1
- package/src/sap/ui/integration/util/ComboBoxHelper.js +1 -1
- package/src/sap/ui/integration/util/ContentFactory.js +1 -2
- package/src/sap/ui/integration/util/CsrfTokenHandler.js +1 -1
- package/src/sap/ui/integration/util/DataProvider.js +1 -2
- package/src/sap/ui/integration/util/DataProviderFactory.js +3 -13
- package/src/sap/ui/integration/util/Destinations.js +1 -1
- package/src/sap/ui/integration/util/DisplayVariants.js +1 -1
- package/src/sap/ui/integration/util/ErrorHandler.js +1 -1
- package/src/sap/ui/integration/util/ExtensionDataProvider.js +1 -1
- package/src/sap/ui/integration/util/Form.js +1 -1
- package/src/sap/ui/integration/util/HeaderFactory.js +1 -6
- package/src/sap/ui/integration/util/JSONBindingHelper.js +1 -1
- package/src/sap/ui/integration/util/LoadingProvider.js +1 -1
- package/src/sap/ui/integration/util/Manifest.js +1 -1
- package/src/sap/ui/integration/util/OAuth3LOHelper.js +1 -1
- package/src/sap/ui/integration/util/ObjectStatusFactory.js +1 -1
- package/src/sap/ui/integration/util/RadioButtonHelper.js +1 -1
- package/src/sap/ui/integration/util/RequestDataProvider.js +1 -1
- package/src/sap/ui/integration/util/SkeletonCard.js +1 -1
- package/src/sap/ui/integration/util/SorterHelper.js +1 -1
- package/src/sap/ui/integration/util/Utils.js +1 -1
- package/src/sap/ui/integration/util/Validators.js +1 -1
- package/src/sap/ui/integration/widgets/Card.js +5 -33
- package/src/sap/ui/integration/services/Data.js +0 -55
- package/src/sap/ui/integration/services/Navigation.js +0 -47
- package/src/sap/ui/integration/services/Service.js +0 -49
- package/src/sap/ui/integration/util/ServiceDataProvider.js +0 -117
- package/src/sap/ui/integration/util/ServiceManager.js +0 -173
|
@@ -64,9 +64,6 @@ sap.ui.define([
|
|
|
64
64
|
var ListSeparators = mobileLibrary.ListSeparators;
|
|
65
65
|
var ListType = mobileLibrary.ListType;
|
|
66
66
|
|
|
67
|
-
// shortcuts for sap.ui.integration.CardActionArea
|
|
68
|
-
var ActionArea = library.CardActionArea;
|
|
69
|
-
|
|
70
67
|
/**
|
|
71
68
|
* Constructor for a new <code>TableContent</code>.
|
|
72
69
|
*
|
|
@@ -85,7 +82,7 @@ sap.ui.define([
|
|
|
85
82
|
* @extends sap.ui.integration.cards.BaseListContent
|
|
86
83
|
*
|
|
87
84
|
* @author SAP SE
|
|
88
|
-
* @version 1.
|
|
85
|
+
* @version 1.148.0
|
|
89
86
|
*
|
|
90
87
|
* @constructor
|
|
91
88
|
* @private
|
|
@@ -283,15 +280,6 @@ sap.ui.define([
|
|
|
283
280
|
return this._getTable().getItems().filter((item) => !item.isA("sap.m.GroupHeaderListItem")).length;
|
|
284
281
|
};
|
|
285
282
|
|
|
286
|
-
/**
|
|
287
|
-
* Handler for when data is changed.
|
|
288
|
-
*/
|
|
289
|
-
TableContent.prototype.onDataChanged = function () {
|
|
290
|
-
BaseListContent.prototype.onDataChanged.apply(this, arguments);
|
|
291
|
-
|
|
292
|
-
this._checkHiddenNavigationItems(this.getParsedConfiguration().row);
|
|
293
|
-
};
|
|
294
|
-
|
|
295
283
|
/**
|
|
296
284
|
* Binds/Sets properties to the inner item template based on the configuration object row template which is already parsed.
|
|
297
285
|
* Attaches all required actions.
|
|
@@ -324,7 +312,6 @@ sap.ui.define([
|
|
|
324
312
|
});
|
|
325
313
|
|
|
326
314
|
this._oActions.attach({
|
|
327
|
-
area: ActionArea.ContentItem,
|
|
328
315
|
actions: oRow.actions,
|
|
329
316
|
control: this,
|
|
330
317
|
actionControl: this._oItemTemplate,
|
|
@@ -386,7 +373,6 @@ sap.ui.define([
|
|
|
386
373
|
|
|
387
374
|
if (oRow.actions && Array.isArray(oRow.actions)) {
|
|
388
375
|
this._oActions.attach({
|
|
389
|
-
area: ActionArea.ContentItem,
|
|
390
376
|
actions: oRow.actions,
|
|
391
377
|
control: this,
|
|
392
378
|
actionControl: oItem,
|
|
@@ -398,9 +384,6 @@ sap.ui.define([
|
|
|
398
384
|
|
|
399
385
|
oTable.addItem(oItem);
|
|
400
386
|
}.bind(this));
|
|
401
|
-
|
|
402
|
-
//workaround until actions refactor
|
|
403
|
-
this.fireEvent("_actionContentReady");
|
|
404
387
|
};
|
|
405
388
|
|
|
406
389
|
/**
|
|
@@ -439,7 +422,6 @@ sap.ui.define([
|
|
|
439
422
|
oControl.setTitleActive(true);
|
|
440
423
|
|
|
441
424
|
this._oActions.attach({
|
|
442
|
-
area: ActionArea.ContentItemDetail,
|
|
443
425
|
actions: oColumn.actions,
|
|
444
426
|
control: this,
|
|
445
427
|
actionControl: oControl,
|
|
@@ -461,7 +443,6 @@ sap.ui.define([
|
|
|
461
443
|
});
|
|
462
444
|
|
|
463
445
|
this._oActions.attach({
|
|
464
|
-
area: ActionArea.ContentItemDetail,
|
|
465
446
|
actions: oColumn.actions,
|
|
466
447
|
control: oStatus,
|
|
467
448
|
enabledPropertyName: "active"
|
|
@@ -488,7 +469,6 @@ sap.ui.define([
|
|
|
488
469
|
});
|
|
489
470
|
|
|
490
471
|
this._oActions.attach({
|
|
491
|
-
area: ActionArea.ContentItemDetail,
|
|
492
472
|
actions: oColumn.actions,
|
|
493
473
|
control: this,
|
|
494
474
|
actionControl: oControl,
|
|
@@ -22,9 +22,6 @@ sap.ui.define([
|
|
|
22
22
|
) {
|
|
23
23
|
"use strict";
|
|
24
24
|
|
|
25
|
-
// shortcuts for sap.ui.integration.CardActionArea
|
|
26
|
-
var ActionArea = library.CardActionArea;
|
|
27
|
-
|
|
28
25
|
// lazy dependencies, loaded on the first attempt to create TimelineContent
|
|
29
26
|
var Timeline, TimelineItem;
|
|
30
27
|
|
|
@@ -40,7 +37,7 @@ sap.ui.define([
|
|
|
40
37
|
* @extends sap.ui.integration.cards.BaseListContent
|
|
41
38
|
*
|
|
42
39
|
* @author SAP SE
|
|
43
|
-
* @version 1.
|
|
40
|
+
* @version 1.148.0
|
|
44
41
|
*
|
|
45
42
|
* @constructor
|
|
46
43
|
* @private
|
|
@@ -163,15 +160,6 @@ sap.ui.define([
|
|
|
163
160
|
return this._getTimeline().getContent().length;
|
|
164
161
|
};
|
|
165
162
|
|
|
166
|
-
/**
|
|
167
|
-
* Handler for when data is changed.
|
|
168
|
-
*/
|
|
169
|
-
TimelineContent.prototype.onDataChanged = function () {
|
|
170
|
-
BaseListContent.prototype.onDataChanged.apply(this, arguments);
|
|
171
|
-
|
|
172
|
-
this._checkHiddenNavigationItems(this.getParsedConfiguration().item);
|
|
173
|
-
};
|
|
174
|
-
|
|
175
163
|
/**
|
|
176
164
|
* Binds/Sets properties to the inner item template based on the configuration object item template which is already parsed.
|
|
177
165
|
*
|
|
@@ -199,7 +187,6 @@ sap.ui.define([
|
|
|
199
187
|
this._oTimeLineItemTemplate = new TimelineItem(mSettings);
|
|
200
188
|
|
|
201
189
|
this._oActions.attach({
|
|
202
|
-
area: ActionArea.ContentItem,
|
|
203
190
|
actions: mItem.actions,
|
|
204
191
|
control: this,
|
|
205
192
|
actionControl: this._oTimeLineItemTemplate,
|
|
@@ -36,7 +36,7 @@ sap.ui.define([
|
|
|
36
36
|
* @extends sap.ui.integration.cards.BaseContent
|
|
37
37
|
*
|
|
38
38
|
* @author SAP SE
|
|
39
|
-
* @version 1.
|
|
39
|
+
* @version 1.148.0
|
|
40
40
|
*
|
|
41
41
|
* @constructor
|
|
42
42
|
* @private
|
|
@@ -160,9 +160,6 @@ sap.ui.define([
|
|
|
160
160
|
WebPageContent.prototype.applyConfiguration = function () {
|
|
161
161
|
const oConfiguration = this.getParsedConfiguration();
|
|
162
162
|
|
|
163
|
-
//workaround until actions refactor
|
|
164
|
-
this.fireEvent("_actionContentReady"); // todo
|
|
165
|
-
|
|
166
163
|
if (!oConfiguration) {
|
|
167
164
|
return;
|
|
168
165
|
}
|
|
@@ -7,7 +7,6 @@ sap.ui.define([
|
|
|
7
7
|
"sap/ui/integration/library",
|
|
8
8
|
"sap/base/Log",
|
|
9
9
|
"sap/ui/dom/detectTextSelection",
|
|
10
|
-
"sap/ui/base/BindingInfo",
|
|
11
10
|
"sap/ui/base/ManagedObject",
|
|
12
11
|
"sap/ui/integration/cards/actions/CustomAction",
|
|
13
12
|
"sap/ui/integration/cards/actions/DateChangeAction",
|
|
@@ -24,7 +23,6 @@ sap.ui.define([
|
|
|
24
23
|
library,
|
|
25
24
|
Log,
|
|
26
25
|
detectTextSelection,
|
|
27
|
-
BindingInfo,
|
|
28
26
|
ManagedObject,
|
|
29
27
|
CustomAction,
|
|
30
28
|
DateChangeAction,
|
|
@@ -40,16 +38,7 @@ sap.ui.define([
|
|
|
40
38
|
) {
|
|
41
39
|
"use strict";
|
|
42
40
|
|
|
43
|
-
|
|
44
|
-
if (vService && typeof vService === "object") {
|
|
45
|
-
return vService.name;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
return vService;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
var ActionArea = library.CardActionArea,
|
|
52
|
-
CardActionType = library.CardActionType;
|
|
41
|
+
var CardActionType = library.CardActionType;
|
|
53
42
|
|
|
54
43
|
/**
|
|
55
44
|
* Constructor for a new <code>CardActions</code>.
|
|
@@ -63,7 +52,7 @@ sap.ui.define([
|
|
|
63
52
|
* @extends sap.ui.base.ManagedObject
|
|
64
53
|
*
|
|
65
54
|
* @author SAP SE
|
|
66
|
-
* @version 1.
|
|
55
|
+
* @version 1.148.0
|
|
67
56
|
*
|
|
68
57
|
* @constructor
|
|
69
58
|
* @private
|
|
@@ -101,7 +90,6 @@ sap.ui.define([
|
|
|
101
90
|
* Listens for a press event on the provided area control and triggers an action with the provided parameters from the item.
|
|
102
91
|
* @private
|
|
103
92
|
* @param {object} oConfig Object containing configuration for the action
|
|
104
|
-
* @param {sap.ui.integration.CardActionArea} oConfig.area The area that describes what the action will be attached to
|
|
105
93
|
* @param {object[]} oConfig.actions Configuration object for the actions on an item
|
|
106
94
|
* @param {sap.ui.core.Control} oConfig.control The control that the action will be attached on
|
|
107
95
|
* @param {sap.ui.core.Control} [oConfig.actionControl] Optional control that the action will be attached on. If supplied, <code>oConfig.control</code> will not receive the action.
|
|
@@ -111,140 +99,72 @@ sap.ui.define([
|
|
|
111
99
|
* @param {string} [oConfig.eventName=press] Name of the event to attach to
|
|
112
100
|
*/
|
|
113
101
|
CardActions.prototype.attach = function (oConfig) {
|
|
114
|
-
var oControl = oConfig.control,
|
|
115
|
-
sActionArea = oConfig.area;
|
|
116
|
-
|
|
117
102
|
oConfig.actionControl = oConfig.actionControl || oConfig.control;
|
|
118
103
|
oConfig.enabledPropertyValue = oConfig.enabledPropertyValue !== undefined ? oConfig.enabledPropertyValue : true;
|
|
119
104
|
oConfig.disabledPropertyValue = oConfig.disabledPropertyValue || false;
|
|
120
105
|
oConfig.eventName = oConfig.eventName || "press";
|
|
121
106
|
|
|
122
|
-
if (!oConfig.actions) {
|
|
123
|
-
//
|
|
124
|
-
|
|
125
|
-
this._fireActionReady(oControl, sActionArea);
|
|
107
|
+
if (!oConfig.actions || !oConfig.actions.length) {
|
|
108
|
+
// No actions defined - disable the control
|
|
109
|
+
this._setControlDisabled(oConfig);
|
|
126
110
|
|
|
127
111
|
return;
|
|
128
112
|
}
|
|
129
113
|
|
|
130
114
|
// For now we allow for only one action of type navigation.
|
|
131
115
|
var oAction = oConfig.actions[0];
|
|
132
|
-
|
|
116
|
+
|
|
117
|
+
if (oAction) {
|
|
133
118
|
oConfig.action = oAction;
|
|
134
|
-
this._attachAction(oConfig);
|
|
135
119
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
120
|
+
if (oAction.type) {
|
|
121
|
+
// Action has a type - attach the full action logic
|
|
122
|
+
this._attachAction(oConfig);
|
|
123
|
+
} else if (oConfig.enabledPropertyName && (oConfig.actionControl.isA("sap.m.Button") || oConfig.actionControl.isA("sap.m.Link"))) {
|
|
124
|
+
// Action has no type but we have Button/Link - handle the enabled state
|
|
125
|
+
// This applies to ActionsStrip buttons/links, not list items
|
|
126
|
+
this._setControlEnabledState(oConfig);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Disables the control if the enabledPropertyName is set.
|
|
133
|
+
* @param {object} oConfig The action configuration
|
|
134
|
+
* @private
|
|
135
|
+
*/
|
|
136
|
+
CardActions.prototype._setControlDisabled = function (oConfig) {
|
|
137
|
+
if (!oConfig.control?.isA("sap.m.Link") && !oConfig.control?.isA("sap.m.Button")) {
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
if (oConfig.enabledPropertyName) {
|
|
142
|
+
// No valid action configuration - disable the control
|
|
143
|
+
Log.warning("Button disabled: no actions defined");
|
|
144
|
+
oConfig.actionControl.setProperty(oConfig.enabledPropertyName, oConfig.disabledPropertyValue);
|
|
139
145
|
}
|
|
140
146
|
};
|
|
141
147
|
|
|
142
148
|
CardActions.prototype._attachAction = function (oConfig) {
|
|
143
149
|
var oAction = oConfig.action,
|
|
144
|
-
sActionArea = oConfig.area,
|
|
145
|
-
oAreaControl = oConfig.control,
|
|
146
150
|
sEnabledPropertyName = oConfig.enabledPropertyName,
|
|
147
151
|
bCheckEnabledState = true,
|
|
148
|
-
bSingleAction = this._isSingleAction(sActionArea),
|
|
149
152
|
bActionEnabled = true;
|
|
150
153
|
|
|
151
154
|
if (sEnabledPropertyName) {
|
|
152
155
|
bCheckEnabledState = false;
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
// When there is a service let it handle the "enabled" state.
|
|
156
|
-
this._setControlEnabledStateUsingService(oConfig);
|
|
157
|
-
} else {
|
|
158
|
-
// Or when there is a list item template, handle the "enabled" state with bindProperty + formatter
|
|
159
|
-
this._setControlEnabledState(oConfig);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
if (oAction.service && bSingleAction) {
|
|
164
|
-
this._getSingleActionEnabledState(oAction, oAreaControl).then(function (bEnabled) {
|
|
165
|
-
if (bEnabled) {
|
|
166
|
-
this._attachEventListener(oConfig);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
this._fireActionReady(oAreaControl, sActionArea);
|
|
170
|
-
}.bind(this));
|
|
171
|
-
|
|
172
|
-
return;
|
|
156
|
+
// When there is a list item template, handle the "enabled" state with bindProperty + formatter
|
|
157
|
+
this._setControlEnabledState(oConfig);
|
|
173
158
|
}
|
|
174
159
|
|
|
175
160
|
if (bCheckEnabledState) {
|
|
176
|
-
// Handle the "enabled" state when there is no
|
|
161
|
+
// Handle the "enabled" state when there is no item template with formatter.
|
|
177
162
|
bActionEnabled = oAction.enabled !== false && oAction.enabled !== "false";
|
|
178
163
|
}
|
|
179
164
|
|
|
180
165
|
if (bActionEnabled) {
|
|
181
166
|
this._attachEventListener(oConfig);
|
|
182
167
|
}
|
|
183
|
-
|
|
184
|
-
this._fireActionReady(oAreaControl, sActionArea);
|
|
185
|
-
};
|
|
186
|
-
|
|
187
|
-
CardActions.prototype._setControlEnabledStateUsingService = function (oConfig) {
|
|
188
|
-
var oAction = oConfig.action,
|
|
189
|
-
oAreaControl = oConfig.control,
|
|
190
|
-
oActionControl = oConfig.actionControl,
|
|
191
|
-
sEnabledPropertyName = oConfig.enabledPropertyName,
|
|
192
|
-
vEnabled = oConfig.enabledPropertyValue,
|
|
193
|
-
vDisabled = oConfig.disabledPropertyValue,
|
|
194
|
-
oBindingInfo = BindingInfo.parse("{path:''}");
|
|
195
|
-
|
|
196
|
-
// Async formatter to set oActionControl's property depending
|
|
197
|
-
// if the list item context is a correct navigation target (decided by the navigation service).
|
|
198
|
-
oBindingInfo.formatter = function (vValue) {
|
|
199
|
-
|
|
200
|
-
var oBindingContext = this.getBindingContext(),
|
|
201
|
-
sPath,
|
|
202
|
-
mParameters;
|
|
203
|
-
|
|
204
|
-
if (oBindingContext) {
|
|
205
|
-
sPath = oBindingContext.getPath();
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
mParameters = BindingResolver.resolveValue(oAction.parameters, oAreaControl, sPath);
|
|
209
|
-
|
|
210
|
-
if (vValue.__resolved) {
|
|
211
|
-
if (!vValue.__enabled || vValue.__enabled === "false") {
|
|
212
|
-
return vDisabled;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
return vEnabled;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
if (!vValue.__promise) {
|
|
219
|
-
vValue.__promise = true;
|
|
220
|
-
|
|
221
|
-
oAreaControl._oServiceManager.getService(_getServiceName(oAction.service))
|
|
222
|
-
.then(function (oNavigationService) {
|
|
223
|
-
if (oNavigationService) {
|
|
224
|
-
oNavigationService
|
|
225
|
-
.enabled({
|
|
226
|
-
parameters: mParameters
|
|
227
|
-
})
|
|
228
|
-
.then(function (bEnabled) {
|
|
229
|
-
vValue.__resolved = true;
|
|
230
|
-
vValue.__enabled = bEnabled;
|
|
231
|
-
oAreaControl.getModel().checkUpdate(true);
|
|
232
|
-
})
|
|
233
|
-
.catch(function () {
|
|
234
|
-
vValue.__resolved = true;
|
|
235
|
-
vValue.__enabled = false;
|
|
236
|
-
});
|
|
237
|
-
} else {
|
|
238
|
-
vValue.__resolved = true;
|
|
239
|
-
vValue.__enabled = false;
|
|
240
|
-
}
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
return vDisabled;
|
|
245
|
-
};
|
|
246
|
-
|
|
247
|
-
oActionControl.bindProperty(sEnabledPropertyName, oBindingInfo);
|
|
248
168
|
};
|
|
249
169
|
|
|
250
170
|
/**
|
|
@@ -283,47 +203,6 @@ sap.ui.define([
|
|
|
283
203
|
}
|
|
284
204
|
};
|
|
285
205
|
|
|
286
|
-
CardActions.prototype._getSingleActionEnabledState = function (oAction, oAreaControl) {
|
|
287
|
-
var oBindingContext = oAreaControl.getBindingContext(),
|
|
288
|
-
mParameters,
|
|
289
|
-
sPath;
|
|
290
|
-
|
|
291
|
-
if (oBindingContext) {
|
|
292
|
-
sPath = oBindingContext.getPath();
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
mParameters = BindingResolver.resolveValue(oAction.parameters, oAreaControl, sPath);
|
|
296
|
-
|
|
297
|
-
return new Promise(function (resolve) {
|
|
298
|
-
oAreaControl._oServiceManager.getService(_getServiceName(oAction.service))
|
|
299
|
-
.then(function (oNavigationService) {
|
|
300
|
-
if (oNavigationService) {
|
|
301
|
-
oNavigationService
|
|
302
|
-
.enabled({
|
|
303
|
-
parameters: mParameters
|
|
304
|
-
})
|
|
305
|
-
.then(function (bEnabled) {
|
|
306
|
-
resolve(bEnabled);
|
|
307
|
-
})
|
|
308
|
-
.catch(function () {
|
|
309
|
-
resolve(false);
|
|
310
|
-
});
|
|
311
|
-
} else {
|
|
312
|
-
resolve(false);
|
|
313
|
-
}
|
|
314
|
-
})
|
|
315
|
-
.catch(function () {
|
|
316
|
-
resolve(false);
|
|
317
|
-
});
|
|
318
|
-
});
|
|
319
|
-
};
|
|
320
|
-
|
|
321
|
-
CardActions.prototype._fireActionReady = function (oAreaControl, sActionArea) {
|
|
322
|
-
var bHeader = sActionArea === ActionArea.Header;
|
|
323
|
-
var sEventName = bHeader ? "_actionHeaderReady" : "_actionContentReady";
|
|
324
|
-
oAreaControl.fireEvent(sEventName);
|
|
325
|
-
};
|
|
326
|
-
|
|
327
206
|
CardActions.prototype._resolveBindingPath = function (oEvent) {
|
|
328
207
|
var oBindingContext = oEvent.getSource().getBindingContext(),
|
|
329
208
|
sPath;
|
|
@@ -337,25 +216,6 @@ sap.ui.define([
|
|
|
337
216
|
return sPath;
|
|
338
217
|
};
|
|
339
218
|
|
|
340
|
-
CardActions.prototype._handleServiceAction = function (oEvent, oAction, oAreaControl) {
|
|
341
|
-
var oSource = oEvent.getSource();
|
|
342
|
-
var sPath = this._resolveBindingPath(oEvent);
|
|
343
|
-
|
|
344
|
-
oAreaControl._oServiceManager.getService(_getServiceName(oAction.service))
|
|
345
|
-
.then(function (oService) {
|
|
346
|
-
if (oService) {
|
|
347
|
-
oService.navigate({ // only for navigation?
|
|
348
|
-
parameters: BindingResolver.resolveValue(oAction.parameters, oSource, sPath)
|
|
349
|
-
});
|
|
350
|
-
}
|
|
351
|
-
})
|
|
352
|
-
.catch(function (e) {
|
|
353
|
-
Log.error("Navigation service unavailable", e);
|
|
354
|
-
}).finally(function () {
|
|
355
|
-
this._processAction(oSource, oAction, sPath, oEvent);
|
|
356
|
-
}.bind(this));
|
|
357
|
-
};
|
|
358
|
-
|
|
359
219
|
CardActions.prototype._attachEventListener = function (oConfig) {
|
|
360
220
|
var oAction = oConfig.action;
|
|
361
221
|
|
|
@@ -377,11 +237,7 @@ sap.ui.define([
|
|
|
377
237
|
}
|
|
378
238
|
}
|
|
379
239
|
|
|
380
|
-
|
|
381
|
-
this._handleServiceAction(oEvent, oAction, oConfig.control);
|
|
382
|
-
} else {
|
|
383
|
-
this._processAction(oSource, oAction, this._resolveBindingPath(oEvent), oEvent);
|
|
384
|
-
}
|
|
240
|
+
this._processAction(oSource, oAction, this._resolveBindingPath(oEvent), oEvent);
|
|
385
241
|
}.bind(this));
|
|
386
242
|
};
|
|
387
243
|
|
|
@@ -487,17 +343,6 @@ sap.ui.define([
|
|
|
487
343
|
return true;
|
|
488
344
|
};
|
|
489
345
|
|
|
490
|
-
/**
|
|
491
|
-
* @param {sap.ui.integration.CardActionArea} sActionArea The area that describes what the action will be attached to
|
|
492
|
-
* @returns {boolean} If the action is configured for the header, content, or a detail of an item in the content of the card
|
|
493
|
-
*/
|
|
494
|
-
CardActions.prototype._isSingleAction = function (sActionArea) {
|
|
495
|
-
return [ActionArea.Header,
|
|
496
|
-
ActionArea.Content,
|
|
497
|
-
ActionArea.ContentItemDetail,
|
|
498
|
-
ActionArea.ActionsStrip].indexOf(sActionArea) > -1;
|
|
499
|
-
};
|
|
500
|
-
|
|
501
346
|
CardActions._createHandler = function (mConfig) {
|
|
502
347
|
var _ActionClass = null;
|
|
503
348
|
switch (mConfig.action.type) {
|
|
@@ -43,7 +43,7 @@ sap.ui.define([
|
|
|
43
43
|
* @extends sap.ui.core.Control
|
|
44
44
|
*
|
|
45
45
|
* @author SAP SE
|
|
46
|
-
* @version 1.
|
|
46
|
+
* @version 1.148.0
|
|
47
47
|
*
|
|
48
48
|
* @constructor
|
|
49
49
|
* @private
|
|
@@ -267,7 +267,7 @@ sap.ui.define([
|
|
|
267
267
|
this._oDataProvider.destroy();
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
this._oDataProvider = oCard.getDataProviderFactory().create(oDataConfig,
|
|
270
|
+
this._oDataProvider = oCard.getDataProviderFactory().create(oDataConfig, true);
|
|
271
271
|
|
|
272
272
|
if (oDataConfig.name) {
|
|
273
273
|
oModel = oCard.getModel(oDataConfig.name);
|
|
@@ -46,7 +46,6 @@ sap.ui.define([
|
|
|
46
46
|
|
|
47
47
|
const AriaHasPopup = coreLibrary.aria.HasPopup;
|
|
48
48
|
|
|
49
|
-
const ActionArea = library.CardActionArea;
|
|
50
49
|
const CardActionType = library.CardActionType;
|
|
51
50
|
|
|
52
51
|
/**
|
|
@@ -60,7 +59,7 @@ sap.ui.define([
|
|
|
60
59
|
* @extends sap.ui.core.Control
|
|
61
60
|
*
|
|
62
61
|
* @author SAP SE
|
|
63
|
-
* @version 1.
|
|
62
|
+
* @version 1.148.0
|
|
64
63
|
*
|
|
65
64
|
* @constructor
|
|
66
65
|
* @private
|
|
@@ -236,7 +235,6 @@ sap.ui.define([
|
|
|
236
235
|
}));
|
|
237
236
|
|
|
238
237
|
const oActionsConfig = {
|
|
239
|
-
area: ActionArea.ActionsStrip,
|
|
240
238
|
control: oItem,
|
|
241
239
|
actions: oConfig.actions,
|
|
242
240
|
enabledPropertyName: "enabled"
|
|
@@ -244,10 +242,12 @@ sap.ui.define([
|
|
|
244
242
|
|
|
245
243
|
if (this.getDisableItemsInitially()) {
|
|
246
244
|
oActionsConfig.enabledPropertyValue = false;
|
|
247
|
-
oItem._mActionsConfig = oActionsConfig;
|
|
248
245
|
oItem._bIsDisabled = true;
|
|
249
246
|
}
|
|
250
247
|
|
|
248
|
+
// Store config for later use by disableItems/enableItems
|
|
249
|
+
oItem._mActionsConfig = oActionsConfig;
|
|
250
|
+
|
|
251
251
|
if (oConfig.type !== "Label") {
|
|
252
252
|
this.getCardActions().attach(oActionsConfig);
|
|
253
253
|
}
|
|
@@ -278,11 +278,8 @@ sap.ui.define([
|
|
|
278
278
|
if (mActionsConfig?.action) {
|
|
279
279
|
mActionsConfig.enabledPropertyValue = true;
|
|
280
280
|
this.getCardActions()._setControlEnabledState(mActionsConfig);
|
|
281
|
-
|
|
282
|
-
oItem.setEnabled(true);
|
|
281
|
+
delete oItem._bIsDisabled;
|
|
283
282
|
}
|
|
284
|
-
|
|
285
|
-
delete oItem._bIsDisabled;
|
|
286
283
|
}
|
|
287
284
|
});
|
|
288
285
|
};
|