@openui5/sap.ui.integration 1.138.0 → 1.140.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/README.md +1 -1
- package/REUSE.toml +8 -1
- package/THIRDPARTY.txt +72 -66
- package/package.json +7 -7
- 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 +2 -2
- package/src/sap/ui/integration/cards/AnalyticalContent.js +1 -1
- package/src/sap/ui/integration/cards/AnalyticsCloudContent.js +16 -1
- package/src/sap/ui/integration/cards/BaseContent.js +21 -1
- package/src/sap/ui/integration/cards/BaseListContent.js +1 -1
- package/src/sap/ui/integration/cards/CalendarContent.js +1 -1
- package/src/sap/ui/integration/cards/ComponentContent.js +1 -1
- package/src/sap/ui/integration/cards/Footer.js +1 -1
- package/src/sap/ui/integration/cards/Header.js +7 -3
- package/src/sap/ui/integration/cards/ListContent.js +1 -1
- package/src/sap/ui/integration/cards/NumericHeader.js +20 -4
- package/src/sap/ui/integration/cards/ObjectContent.js +38 -47
- package/src/sap/ui/integration/cards/TableContent.js +11 -1
- package/src/sap/ui/integration/cards/TimelineContent.js +1 -1
- package/src/sap/ui/integration/cards/WebPageContent.js +1 -1
- package/src/sap/ui/integration/cards/actions/CardActions.js +18 -1
- 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 +1 -1
- 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 +1 -1
- 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 +9 -9
- 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/i18n/i18n_vi.properties +1 -1
- 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 +4 -2
- package/src/sap/ui/integration/designtime/editor/CardPreview.js +1 -1
- package/src/sap/ui/integration/editor/Constants.js +32 -0
- package/src/sap/ui/integration/editor/Editor.js +34 -31
- 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/fields/BaseField.js +7 -5
- 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 +7 -5
- 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 +7 -2
- package/src/sap/ui/integration/editor/fields/ObjectListField.js +1 -1
- package/src/sap/ui/integration/editor/fields/StringField.js +7 -5
- 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/library.js +2 -2
- package/src/sap/ui/integration/messagebundle.properties +5 -2
- package/src/sap/ui/integration/messagebundle_ar.properties +3 -1
- package/src/sap/ui/integration/messagebundle_bg.properties +3 -1
- package/src/sap/ui/integration/messagebundle_ca.properties +3 -1
- package/src/sap/ui/integration/messagebundle_cnr.properties +3 -1
- package/src/sap/ui/integration/messagebundle_cs.properties +3 -1
- package/src/sap/ui/integration/messagebundle_cy.properties +3 -1
- package/src/sap/ui/integration/messagebundle_da.properties +3 -1
- package/src/sap/ui/integration/messagebundle_de.properties +3 -1
- package/src/sap/ui/integration/messagebundle_el.properties +3 -1
- package/src/sap/ui/integration/messagebundle_en.properties +3 -1
- package/src/sap/ui/integration/messagebundle_en_GB.properties +3 -1
- package/src/sap/ui/integration/messagebundle_en_US_saprigi.properties +3 -1
- package/src/sap/ui/integration/messagebundle_es.properties +3 -1
- package/src/sap/ui/integration/messagebundle_es_MX.properties +3 -1
- package/src/sap/ui/integration/messagebundle_et.properties +3 -1
- package/src/sap/ui/integration/messagebundle_fi.properties +3 -1
- package/src/sap/ui/integration/messagebundle_fr.properties +3 -1
- package/src/sap/ui/integration/messagebundle_fr_CA.properties +3 -1
- package/src/sap/ui/integration/messagebundle_hi.properties +3 -1
- package/src/sap/ui/integration/messagebundle_hr.properties +3 -1
- package/src/sap/ui/integration/messagebundle_hu.properties +3 -1
- package/src/sap/ui/integration/messagebundle_id.properties +7 -5
- package/src/sap/ui/integration/messagebundle_it.properties +3 -1
- package/src/sap/ui/integration/messagebundle_iw.properties +3 -1
- package/src/sap/ui/integration/messagebundle_ja.properties +3 -1
- package/src/sap/ui/integration/messagebundle_kk.properties +3 -1
- package/src/sap/ui/integration/messagebundle_ko.properties +3 -1
- package/src/sap/ui/integration/messagebundle_lt.properties +3 -1
- package/src/sap/ui/integration/messagebundle_lv.properties +3 -1
- package/src/sap/ui/integration/messagebundle_mk.properties +3 -1
- package/src/sap/ui/integration/messagebundle_ms.properties +3 -1
- package/src/sap/ui/integration/messagebundle_nl.properties +3 -1
- package/src/sap/ui/integration/messagebundle_no.properties +3 -1
- package/src/sap/ui/integration/messagebundle_pl.properties +3 -1
- package/src/sap/ui/integration/messagebundle_pt.properties +3 -1
- package/src/sap/ui/integration/messagebundle_pt_PT.properties +3 -1
- package/src/sap/ui/integration/messagebundle_ro.properties +3 -1
- package/src/sap/ui/integration/messagebundle_ru.properties +3 -1
- package/src/sap/ui/integration/messagebundle_sh.properties +3 -1
- package/src/sap/ui/integration/messagebundle_sk.properties +3 -1
- package/src/sap/ui/integration/messagebundle_sl.properties +3 -1
- package/src/sap/ui/integration/messagebundle_sr.properties +3 -1
- package/src/sap/ui/integration/messagebundle_sv.properties +3 -1
- package/src/sap/ui/integration/messagebundle_th.properties +3 -1
- package/src/sap/ui/integration/messagebundle_tr.properties +3 -1
- package/src/sap/ui/integration/messagebundle_uk.properties +3 -1
- package/src/sap/ui/integration/messagebundle_vi.properties +3 -1
- package/src/sap/ui/integration/messagebundle_zh_CN.properties +3 -1
- package/src/sap/ui/integration/messagebundle_zh_TW.properties +3 -1
- 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 +63 -7
- package/src/sap/ui/integration/themes/base/CardVariants.less +5 -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 +50 -4
- package/src/sap/ui/integration/util/BindingResolver.js +19 -2
- 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 -1
- package/src/sap/ui/integration/util/CsrfTokenHandler.js +1 -1
- package/src/sap/ui/integration/util/DataProvider.js +1 -1
- package/src/sap/ui/integration/util/DataProviderFactory.js +1 -1
- package/src/sap/ui/integration/util/DateRangeHelper.js +24 -2
- package/src/sap/ui/integration/util/Destinations.js +87 -18
- 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 +3 -3
- 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/RequestDataProvider.js +1 -1
- package/src/sap/ui/integration/util/ServiceDataProvider.js +1 -1
- package/src/sap/ui/integration/util/ServiceManager.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 +45 -1
- package/src/sap/ui/integration/util/Validators.js +1 -1
- package/src/sap/ui/integration/util/openCardDialog.js +4 -0
- package/src/sap/ui/integration/util/openCardShowMore.js +2 -1
- package/src/sap/ui/integration/util/subtitleToSubTitle.js +36 -0
- package/src/sap/ui/integration/widgets/Card.js +131 -26
- package/ui5.yaml +83 -46
|
@@ -190,7 +190,7 @@ sap.ui.define([
|
|
|
190
190
|
* @extends sap.f.CardBase
|
|
191
191
|
*
|
|
192
192
|
* @author SAP SE
|
|
193
|
-
* @version 1.
|
|
193
|
+
* @version 1.140.0
|
|
194
194
|
* @public
|
|
195
195
|
* @constructor
|
|
196
196
|
* @see {@link topic:5b46b03f024542ba802d99d67bc1a3f4 Cards}
|
|
@@ -384,6 +384,16 @@ sap.ui.define([
|
|
|
384
384
|
visibility: "hidden"
|
|
385
385
|
},
|
|
386
386
|
|
|
387
|
+
/**
|
|
388
|
+
* @since 1.140
|
|
389
|
+
*/
|
|
390
|
+
isPaginationCard: {
|
|
391
|
+
type: "boolean",
|
|
392
|
+
group: "Behavior",
|
|
393
|
+
defaultValue: false,
|
|
394
|
+
visibility: "hidden"
|
|
395
|
+
},
|
|
396
|
+
|
|
387
397
|
/**
|
|
388
398
|
* Defines if the card is interactive.
|
|
389
399
|
*/
|
|
@@ -626,7 +636,7 @@ sap.ui.define([
|
|
|
626
636
|
* @experimental since 1.79
|
|
627
637
|
* @public
|
|
628
638
|
* @author SAP SE
|
|
629
|
-
* @version 1.
|
|
639
|
+
* @version 1.140.0
|
|
630
640
|
* @borrows sap.ui.integration.widgets.Card#getId as getId
|
|
631
641
|
* @borrows sap.ui.integration.widgets.Card#getDomRef as getDomRef
|
|
632
642
|
* @borrows sap.ui.integration.widgets.Card#setVisible as setVisible
|
|
@@ -1451,21 +1461,24 @@ sap.ui.define([
|
|
|
1451
1461
|
this.destroyAggregation("_filterBar");
|
|
1452
1462
|
this.destroyAggregation("_footer");
|
|
1453
1463
|
|
|
1454
|
-
this._cleanupOldManifest();
|
|
1464
|
+
this._cleanupOldManifest(false);
|
|
1455
1465
|
};
|
|
1456
1466
|
|
|
1457
1467
|
/**
|
|
1458
1468
|
* Cleans up internal models and other before new manifest processing.
|
|
1469
|
+
* @param {boolean} [bResetInternalModels=true] If true, the internal models will be reset.
|
|
1459
1470
|
*/
|
|
1460
|
-
Card.prototype._cleanupOldManifest = function() {
|
|
1471
|
+
Card.prototype._cleanupOldManifest = function(bResetInternalModels = true) {
|
|
1461
1472
|
if (this._fnOnModelChange) {
|
|
1462
1473
|
this.getModel().detachEvent("change", this._fnOnModelChange, this);
|
|
1463
1474
|
delete this._fnOnModelChange;
|
|
1464
1475
|
}
|
|
1465
1476
|
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
this._INTERNAL_MODELS[modelName].reset
|
|
1477
|
+
if (bResetInternalModels) {
|
|
1478
|
+
for (const modelName in this._INTERNAL_MODELS) {
|
|
1479
|
+
if (this._INTERNAL_MODELS[modelName].reset) {
|
|
1480
|
+
this._INTERNAL_MODELS[modelName].reset();
|
|
1481
|
+
}
|
|
1469
1482
|
}
|
|
1470
1483
|
}
|
|
1471
1484
|
|
|
@@ -1672,7 +1685,7 @@ sap.ui.define([
|
|
|
1672
1685
|
};
|
|
1673
1686
|
|
|
1674
1687
|
/**
|
|
1675
|
-
* Settings for blocking message that
|
|
1688
|
+
* Settings for blocking message that occurred in a {@link sap.ui.integration.widgets.Card}
|
|
1676
1689
|
*
|
|
1677
1690
|
* @typedef {object} sap.ui.integration.BlockingMessageSettings
|
|
1678
1691
|
* @property {sap.ui.integration.CardBlockingMessageType} type Blocking message type
|
|
@@ -1852,11 +1865,24 @@ sap.ui.define([
|
|
|
1852
1865
|
this._oDataProviderFactory.destroy();
|
|
1853
1866
|
}
|
|
1854
1867
|
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1868
|
+
try {
|
|
1869
|
+
this._oDestinations = Destinations.create({
|
|
1870
|
+
card: this,
|
|
1871
|
+
mainCard: this.getMainCard(),
|
|
1872
|
+
isPaginationCard: this.getProperty("isPaginationCard")
|
|
1859
1873
|
});
|
|
1874
|
+
} catch (oError) {
|
|
1875
|
+
this.getMainCard()._handleError({
|
|
1876
|
+
illustrationType: IllustratedMessageType.UnableToLoad,
|
|
1877
|
+
title: oResourceBundle.getText("CARD_ERROR_CONFIGURATION_TITLE"),
|
|
1878
|
+
description: oResourceBundle.getText("CARD_ERROR_CONFIGURATION_DESCRIPTION"),
|
|
1879
|
+
details: " ",
|
|
1880
|
+
originalError: oError
|
|
1881
|
+
});
|
|
1882
|
+
|
|
1883
|
+
return Promise.reject(oError);
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1860
1886
|
this._oIconFormatter = new IconFormatter({
|
|
1861
1887
|
card: this
|
|
1862
1888
|
});
|
|
@@ -1938,7 +1964,8 @@ sap.ui.define([
|
|
|
1938
1964
|
return;
|
|
1939
1965
|
}
|
|
1940
1966
|
|
|
1941
|
-
this.
|
|
1967
|
+
this._sBindingPath = oDataSettings.path || "/";
|
|
1968
|
+
this.bindObject(BindingResolver.resolveValue(this._sBindingPath, this));
|
|
1942
1969
|
|
|
1943
1970
|
if (this._oDataProvider) {
|
|
1944
1971
|
this._oDataProvider.destroy();
|
|
@@ -2230,24 +2257,44 @@ sap.ui.define([
|
|
|
2230
2257
|
};
|
|
2231
2258
|
|
|
2232
2259
|
/**
|
|
2233
|
-
*
|
|
2260
|
+
* Generates accessibility texts based on the rendering style of the card.
|
|
2234
2261
|
*
|
|
2235
2262
|
* @private
|
|
2236
2263
|
*/
|
|
2237
|
-
Card.prototype.
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
oContent;
|
|
2264
|
+
Card.prototype._applyAriaTexts = function () {
|
|
2265
|
+
const sCardType = this._oCardManifest.get(MANIFEST_PATHS.TYPE);
|
|
2266
|
+
const bIsTileDisplayVariant = this.isTileDisplayVariant();
|
|
2267
|
+
let sAriaText;
|
|
2242
2268
|
|
|
2243
|
-
|
|
2269
|
+
|
|
2270
|
+
if (sCardType && !bIsTileDisplayVariant) {
|
|
2244
2271
|
sAriaText = this._oIntegrationRb.getText("ARIA_DESCRIPTION_CARD_TYPE_" + sCardType.toUpperCase());
|
|
2272
|
+
|
|
2273
|
+
// @TODO: This adds the same text to the card. The region has an aria-describedby = card type. Group has aria-labelledby with the card type. Leads to duplicate hidden text.
|
|
2274
|
+
// Suggestion for a fix: delete _ariaText and add _describedByCardTypeText to aria-labelled by of the region.
|
|
2275
|
+
this._describedByCardTypeText.setText(sAriaText);
|
|
2276
|
+
} else if (bIsTileDisplayVariant) {
|
|
2277
|
+
sAriaText = this._oIntegrationRb.getText("ARIA_LABELLEDBY_DISPLAY_VARIANT_TILE");
|
|
2245
2278
|
} else {
|
|
2246
2279
|
sAriaText = this._oRb.getText("ARIA_ROLEDESCRIPTION_CARD");
|
|
2247
2280
|
}
|
|
2248
|
-
|
|
2281
|
+
|
|
2249
2282
|
this._ariaText.setText(sAriaText);
|
|
2250
|
-
|
|
2283
|
+
};
|
|
2284
|
+
|
|
2285
|
+
/**
|
|
2286
|
+
* Creates specific type of card content based on sap.card/content part of the manifest.
|
|
2287
|
+
*
|
|
2288
|
+
* @private
|
|
2289
|
+
*/
|
|
2290
|
+
Card.prototype._applyContentManifestSettings = function () {
|
|
2291
|
+
var sCardType = this._oCardManifest.get(MANIFEST_PATHS.TYPE),
|
|
2292
|
+
oContentManifest = this.getContentManifest(),
|
|
2293
|
+
oContent;
|
|
2294
|
+
|
|
2295
|
+
this.destroyAggregation("_content");
|
|
2296
|
+
|
|
2297
|
+
this._applyAriaTexts();
|
|
2251
2298
|
|
|
2252
2299
|
if (this._shouldIgnoreContent()) {
|
|
2253
2300
|
this.fireEvent("_contentReady");
|
|
@@ -2362,6 +2409,15 @@ sap.ui.define([
|
|
|
2362
2409
|
return sCardType?.toLowerCase() === "component";
|
|
2363
2410
|
};
|
|
2364
2411
|
|
|
2412
|
+
/**
|
|
2413
|
+
* @private
|
|
2414
|
+
* @ui5-restricted sap.ui.integration
|
|
2415
|
+
* @returns {string|undefined} The binding path for the card.
|
|
2416
|
+
*/
|
|
2417
|
+
Card.prototype._getDataPath = function () {
|
|
2418
|
+
return this._sBindingPath || "/";
|
|
2419
|
+
};
|
|
2420
|
+
|
|
2365
2421
|
/**
|
|
2366
2422
|
* Checks if the content section should be ignored.
|
|
2367
2423
|
* @private
|
|
@@ -2759,10 +2815,30 @@ sap.ui.define([
|
|
|
2759
2815
|
};
|
|
2760
2816
|
|
|
2761
2817
|
/**
|
|
2762
|
-
*
|
|
2818
|
+
* Settings for card request error.
|
|
2763
2819
|
*
|
|
2820
|
+
* <b>Note:</b> For backward compatibility, the object can also be accessed as an array
|
|
2821
|
+
* with the properties in the order - message, response, and responseText.
|
|
2822
|
+
*
|
|
2823
|
+
* @typedef {object} sap.ui.integration.CardRequestError
|
|
2824
|
+
* @property {string} message The error message
|
|
2825
|
+
* @property {object} response The response object
|
|
2826
|
+
* @property {string} responseText The response text
|
|
2764
2827
|
* @public
|
|
2765
|
-
* @experimental
|
|
2828
|
+
* @experimental As of version 1.139
|
|
2829
|
+
*/
|
|
2830
|
+
|
|
2831
|
+
/**
|
|
2832
|
+
* Performs an asynchronous network request using the specified request settings,
|
|
2833
|
+
* enabling dynamic bindings to card configurations, such as CSRF tokens, destinations, and parameters.
|
|
2834
|
+
* If the request is successful, it returns a Promise that resolves with the response data.
|
|
2835
|
+
*
|
|
2836
|
+
* If an error occurs during the request, the Promise will reject with a {@link sap.ui.integration.CardRequestError}.
|
|
2837
|
+
*
|
|
2838
|
+
* For more details on card data handling and request settings see [Card Explorer Data Section]{@link https://ui5.sap.com/test-resources/sap/ui/integration/demokit/cardExplorer/webapp/index.html#/learn/features/data}.
|
|
2839
|
+
*
|
|
2840
|
+
* @public
|
|
2841
|
+
* @since 1.79
|
|
2766
2842
|
* @param {object} oConfiguration The configuration of the request.
|
|
2767
2843
|
* @param {string} oConfiguration.url The URL of the resource.
|
|
2768
2844
|
* @param {string} [oConfiguration.mode="cors"] The mode of the request. Possible values are "cors", "no-cors", "same-origin".
|
|
@@ -2798,7 +2874,8 @@ sap.ui.define([
|
|
|
2798
2874
|
*</ul>
|
|
2799
2875
|
* @param {string} [oConfiguration.dataType="json"] Deprecated. Use the correct <code>Accept</code> headers and set correct <code>Content-Type</code> header in the response.
|
|
2800
2876
|
* @param {object} [oConfiguration.headers] The HTTP headers of the request.
|
|
2801
|
-
* @param {boolean} [oConfiguration.withCredentials=false] Indicates whether
|
|
2877
|
+
* @param {boolean} [oConfiguration.withCredentials=false] Indicates whether
|
|
2878
|
+
* cross-site requests should be made using credentials. Same-origin requests are always made using credentials.
|
|
2802
2879
|
* @returns {Promise<any>} Resolves when the request is successful, rejects otherwise.
|
|
2803
2880
|
*/
|
|
2804
2881
|
Card.prototype.request = function (oConfiguration) {
|
|
@@ -2812,7 +2889,19 @@ sap.ui.define([
|
|
|
2812
2889
|
true)
|
|
2813
2890
|
.setAllowCustomDataType(true)
|
|
2814
2891
|
.attachDataChanged((e) => { resolve(e.getParameter("data")); })
|
|
2815
|
-
.attachError((e) => {
|
|
2892
|
+
.attachError((e) => {
|
|
2893
|
+
const oResult = [e.getParameter("message"),
|
|
2894
|
+
e.getParameter("response"),
|
|
2895
|
+
e.getParameter("responseText"),
|
|
2896
|
+
e.getParameter("settings")];
|
|
2897
|
+
|
|
2898
|
+
oResult.message = e.getParameter("message");
|
|
2899
|
+
oResult.response = e.getParameter("response");
|
|
2900
|
+
oResult.responseText = e.getParameter("responseText");
|
|
2901
|
+
oResult._requestSettings = e.getParameter("settings");
|
|
2902
|
+
|
|
2903
|
+
reject(oResult);
|
|
2904
|
+
})
|
|
2816
2905
|
.triggerDataUpdate();
|
|
2817
2906
|
});
|
|
2818
2907
|
});
|
|
@@ -3292,6 +3381,7 @@ sap.ui.define([
|
|
|
3292
3381
|
|
|
3293
3382
|
oChildCard.setAssociation("openerReference", this);
|
|
3294
3383
|
oChildCard.setProperty("showCloseButton", !!oParameters.showCloseButton);
|
|
3384
|
+
oChildCard.setProperty("isPaginationCard", !!oParameters.isPaginationCard);
|
|
3295
3385
|
|
|
3296
3386
|
if (oData) {
|
|
3297
3387
|
each(oData, function (sModelName, oModelData) {
|
|
@@ -3462,5 +3552,20 @@ sap.ui.define([
|
|
|
3462
3552
|
return !!this._bDataReady;
|
|
3463
3553
|
};
|
|
3464
3554
|
|
|
3555
|
+
/**
|
|
3556
|
+
* @private
|
|
3557
|
+
* @ui5-restricted sap.ui.integration
|
|
3558
|
+
* @returns {sap.ui.integration.widgets.Card} The main card of the current card.
|
|
3559
|
+
*/
|
|
3560
|
+
Card.prototype.getMainCard = function () {
|
|
3561
|
+
let oParentCard = Element.getElementById(this.getAssociation("openerReference"));
|
|
3562
|
+
|
|
3563
|
+
while (oParentCard && oParentCard.getAssociation("openerReference")) {
|
|
3564
|
+
oParentCard = Element.getElementById(oParentCard.getAssociation("openerReference"));
|
|
3565
|
+
}
|
|
3566
|
+
|
|
3567
|
+
return oParentCard || this;
|
|
3568
|
+
};
|
|
3569
|
+
|
|
3465
3570
|
return Card;
|
|
3466
3571
|
});
|
package/ui5.yaml
CHANGED
|
@@ -44,8 +44,6 @@ builder:
|
|
|
44
44
|
- "!sap/ui/integration/*-preload.js"
|
|
45
45
|
- "!sap/ui/integration/designtime/"
|
|
46
46
|
- "!sap/ui/integration/editor/"
|
|
47
|
-
- "!sap/viz/"
|
|
48
|
-
- "!sap/suite/ui/commons/"
|
|
49
47
|
- sap/ui/core/support/Hotkeys.js
|
|
50
48
|
- "!sap/ui/integration/thirdparty/"
|
|
51
49
|
- "!sap/ui/integration/designtime/thirdparty/"
|
|
@@ -111,8 +109,6 @@ builder:
|
|
|
111
109
|
- "!sap/ui/integration/*-preload.js"
|
|
112
110
|
- "!sap/ui/integration/designtime/"
|
|
113
111
|
- "!sap/ui/integration/editor/"
|
|
114
|
-
- "!sap/viz/"
|
|
115
|
-
- "!sap/suite/ui/commons/"
|
|
116
112
|
- sap/ui/core/support/Hotkeys.js
|
|
117
113
|
- "!sap/ui/integration/thirdparty/"
|
|
118
114
|
- "!sap/ui/integration/designtime/thirdparty/"
|
|
@@ -169,6 +165,8 @@ builder:
|
|
|
169
165
|
- sap/ui/core/Core.js
|
|
170
166
|
- sap/ui/core/CustomData.js
|
|
171
167
|
- sap/ui/core/UIComponent.js
|
|
168
|
+
- sap/ui/core/boot/FieldHelpEndpoint.js
|
|
169
|
+
- sap/ui/core/boot/KeyboardInteractionEndpoint.js
|
|
172
170
|
- sap/ui/core/mvc/XMLView.js
|
|
173
171
|
- sap/ui/integration/
|
|
174
172
|
- sap/f/cards/
|
|
@@ -185,35 +183,64 @@ builder:
|
|
|
185
183
|
- "!sap/ui/integration/*-preload.js"
|
|
186
184
|
- "!sap/ui/integration/designtime/"
|
|
187
185
|
- "!sap/ui/integration/editor/"
|
|
188
|
-
- "!sap/viz/"
|
|
189
|
-
- "!sap/suite/ui/commons/"
|
|
190
186
|
- sap/ui/core/support/Hotkeys.js
|
|
191
187
|
- "!sap/ui/integration/thirdparty/"
|
|
192
188
|
- "!sap/ui/integration/designtime/thirdparty/"
|
|
189
|
+
# own manifest
|
|
190
|
+
- sap/ui/integration/manifest.json
|
|
191
|
+
# manifests for library dependencies
|
|
192
|
+
- sap/ui/core/manifest.json
|
|
193
|
+
- sap/m/manifest.json
|
|
194
|
+
- sap/f/manifest.json
|
|
195
|
+
- sap/ui/unified/manifest.json
|
|
196
|
+
- sap/ui/layout/manifest.json
|
|
193
197
|
resolve: true
|
|
194
198
|
renderer: true
|
|
195
199
|
- mode: require
|
|
196
200
|
filters:
|
|
197
201
|
- sap/ui/integration/library-bootstrap.js
|
|
202
|
+
- mode: bundleInfo
|
|
203
|
+
name: sap-ui-integration-nojQuery-ext.js
|
|
204
|
+
filters:
|
|
205
|
+
- sap/ui/core/
|
|
206
|
+
- "!sap/ui/core/support/"
|
|
207
|
+
- "!sap/ui/core/plugin/"
|
|
208
|
+
- sap/ui/integration/
|
|
209
|
+
- "!sap/ui/integration/editor/"
|
|
210
|
+
- "!sap/ui/integration/thirdparty/"
|
|
211
|
+
- "!sap/ui/fl/"
|
|
212
|
+
- sap/m/
|
|
213
|
+
- sap/f/
|
|
214
|
+
- sap/ui/layout/
|
|
215
|
+
- sap/ui/unified/
|
|
216
|
+
- "!**/designtime/"
|
|
217
|
+
- "!**/library-preload-lazy.js"
|
|
218
|
+
- "!**/*.support.js"
|
|
219
|
+
- "!**/*.flexibility.js"
|
|
220
|
+
resolve: true
|
|
221
|
+
renderer: true
|
|
198
222
|
bundleOptions:
|
|
199
223
|
optimize: true
|
|
200
224
|
usePredefineCalls: true
|
|
201
225
|
decorateBootstrapModule: true
|
|
202
226
|
addTryCatchRestartWrapper: true
|
|
203
227
|
- bundleDefinition:
|
|
204
|
-
name: sap-ui-integration-
|
|
228
|
+
name: sap-ui-integration-nojQuery-ext.js
|
|
205
229
|
sections:
|
|
206
230
|
- mode: provided
|
|
207
231
|
filters:
|
|
208
|
-
- sap/ui/
|
|
209
|
-
- ui5loader-autoconfig.js
|
|
232
|
+
- sap/ui/thirdparty/jquery-compat.js
|
|
210
233
|
- sap/ui/core/Core.js
|
|
211
234
|
- sap/ui/core/CustomData.js
|
|
212
235
|
- sap/ui/core/UIComponent.js
|
|
236
|
+
- sap/ui/core/boot/FieldHelpEndpoint.js
|
|
237
|
+
- sap/ui/core/boot/KeyboardInteractionEndpoint.js
|
|
213
238
|
- sap/ui/core/mvc/XMLView.js
|
|
214
239
|
- sap/ui/integration/
|
|
215
240
|
- sap/f/cards/
|
|
216
241
|
- sap/ui/core/date/Gregorian.js
|
|
242
|
+
- "!sap/ui/thirdparty/jquery.js"
|
|
243
|
+
- "!sap/ui/thirdparty/jquery-mobile-custom.js"
|
|
217
244
|
- "!sap/ui/integration/sap-ui-integration-config.js"
|
|
218
245
|
- "!sap/ui/integration/customElements/CustomElementCardEditor.js"
|
|
219
246
|
- "!sap/ui/integration/customElements/CustomElementEditor.js"
|
|
@@ -224,29 +251,44 @@ builder:
|
|
|
224
251
|
- "!sap/ui/integration/*-preload.js"
|
|
225
252
|
- "!sap/ui/integration/designtime/"
|
|
226
253
|
- "!sap/ui/integration/editor/"
|
|
227
|
-
- "!sap/viz/"
|
|
228
|
-
- "!sap/suite/ui/commons/"
|
|
229
254
|
- sap/ui/core/support/Hotkeys.js
|
|
230
255
|
- "!sap/ui/integration/thirdparty/"
|
|
231
256
|
- "!sap/ui/integration/designtime/thirdparty/"
|
|
257
|
+
# own manifest
|
|
258
|
+
- sap/ui/integration/manifest.json
|
|
259
|
+
# manifests for library dependencies
|
|
260
|
+
- sap/ui/core/manifest.json
|
|
261
|
+
- sap/m/manifest.json
|
|
262
|
+
- sap/f/manifest.json
|
|
263
|
+
- sap/ui/unified/manifest.json
|
|
264
|
+
- sap/ui/layout/manifest.json
|
|
232
265
|
resolve: true
|
|
233
266
|
renderer: true
|
|
234
267
|
- mode: preload
|
|
235
|
-
name: sap-ui-integration-
|
|
268
|
+
name: sap-ui-integration-nojQuery-ext.js
|
|
236
269
|
filters:
|
|
237
|
-
- sap/ui/
|
|
238
|
-
- sap/ui/
|
|
239
|
-
- sap/ui/
|
|
270
|
+
- sap/ui/core/
|
|
271
|
+
- "!sap/ui/core/support/"
|
|
272
|
+
- "!sap/ui/core/plugin/"
|
|
273
|
+
- sap/ui/integration/
|
|
274
|
+
- "!sap/ui/integration/editor/"
|
|
275
|
+
- "!sap/ui/integration/thirdparty/"
|
|
276
|
+
- "!sap/ui/fl/"
|
|
277
|
+
- sap/m/
|
|
278
|
+
- sap/f/
|
|
279
|
+
- sap/ui/layout/
|
|
280
|
+
- sap/ui/unified/
|
|
281
|
+
- "!**/designtime/"
|
|
282
|
+
- "!**/library-preload-lazy.js"
|
|
283
|
+
- "!**/*.support.js"
|
|
284
|
+
- "!**/*.flexibility.js"
|
|
240
285
|
resolve: true
|
|
241
286
|
renderer: true
|
|
242
|
-
- mode: require
|
|
243
|
-
filters:
|
|
244
|
-
- sap/ui/integration/customElements/CustomElementCardEditor.js
|
|
245
287
|
bundleOptions:
|
|
246
288
|
optimize: true
|
|
247
289
|
usePredefineCalls: true
|
|
248
290
|
- bundleDefinition:
|
|
249
|
-
name: sap-ui-integration-
|
|
291
|
+
name: sap-ui-integration-card-editor.js
|
|
250
292
|
sections:
|
|
251
293
|
- mode: provided
|
|
252
294
|
filters:
|
|
@@ -277,18 +319,21 @@ builder:
|
|
|
277
319
|
resolve: true
|
|
278
320
|
renderer: true
|
|
279
321
|
- mode: preload
|
|
280
|
-
name: sap-ui-integration-
|
|
322
|
+
name: sap-ui-integration-card-editor
|
|
281
323
|
filters:
|
|
282
|
-
- sap/ui/integration/
|
|
283
|
-
- sap/ui/integration/
|
|
284
|
-
-
|
|
324
|
+
- sap/ui/integration/customElements/CustomElementCardEditor.js
|
|
325
|
+
- sap/ui/integration/editor/
|
|
326
|
+
- sap/ui/integration/designtime/editor/
|
|
285
327
|
resolve: true
|
|
286
328
|
renderer: true
|
|
329
|
+
- mode: require
|
|
330
|
+
filters:
|
|
331
|
+
- sap/ui/integration/customElements/CustomElementCardEditor.js
|
|
287
332
|
bundleOptions:
|
|
288
333
|
optimize: true
|
|
289
334
|
usePredefineCalls: true
|
|
290
335
|
- bundleDefinition:
|
|
291
|
-
name: sap-ui-integration-
|
|
336
|
+
name: sap-ui-integration-cardEditor.js
|
|
292
337
|
sections:
|
|
293
338
|
- mode: provided
|
|
294
339
|
filters:
|
|
@@ -319,31 +364,23 @@ builder:
|
|
|
319
364
|
resolve: true
|
|
320
365
|
renderer: true
|
|
321
366
|
- mode: preload
|
|
322
|
-
name: sap-ui-integration-
|
|
367
|
+
name: sap-ui-integration-cardEditor
|
|
323
368
|
filters:
|
|
324
|
-
- sap/ui/integration/
|
|
325
|
-
- sap/ui/integration/
|
|
369
|
+
- sap/ui/integration/designtime/baseEditor/
|
|
370
|
+
- sap/ui/integration/designtime/cardEditor/
|
|
371
|
+
- "!sap/ui/integration/designtime/cardEditor/ConfigurationTemplate.js"
|
|
326
372
|
resolve: true
|
|
327
373
|
renderer: true
|
|
328
|
-
- mode: require
|
|
329
|
-
filters:
|
|
330
|
-
- sap/ui/integration/customElements/CustomElementEditor.js
|
|
331
374
|
bundleOptions:
|
|
332
375
|
optimize: true
|
|
333
376
|
usePredefineCalls: true
|
|
334
377
|
- bundleDefinition:
|
|
335
|
-
name: sap-ui-integration-
|
|
378
|
+
name: sap-ui-integration-editor.js
|
|
336
379
|
sections:
|
|
337
|
-
- mode:
|
|
380
|
+
- mode: provided
|
|
338
381
|
filters:
|
|
339
382
|
- sap/ui/integration/sap-ui-integration-config.js
|
|
340
383
|
- ui5loader-autoconfig.js
|
|
341
|
-
declareRawModules: false
|
|
342
|
-
resolve: true
|
|
343
|
-
sort: true
|
|
344
|
-
- mode: preload
|
|
345
|
-
name: sap-ui-integration
|
|
346
|
-
filters:
|
|
347
384
|
- sap/ui/core/Core.js
|
|
348
385
|
- sap/ui/core/CustomData.js
|
|
349
386
|
- sap/ui/core/UIComponent.js
|
|
@@ -351,10 +388,6 @@ builder:
|
|
|
351
388
|
- sap/ui/integration/
|
|
352
389
|
- sap/f/cards/
|
|
353
390
|
- sap/ui/core/date/Gregorian.js
|
|
354
|
-
- sap/m/IconTabBar.js
|
|
355
|
-
- sap/m/GenericTile.js
|
|
356
|
-
- sap/m/TileContent.js
|
|
357
|
-
- sap/m/ImageContent.js
|
|
358
391
|
- "!sap/ui/integration/sap-ui-integration-config.js"
|
|
359
392
|
- "!sap/ui/integration/customElements/CustomElementCardEditor.js"
|
|
360
393
|
- "!sap/ui/integration/customElements/CustomElementEditor.js"
|
|
@@ -372,14 +405,19 @@ builder:
|
|
|
372
405
|
- "!sap/ui/integration/designtime/thirdparty/"
|
|
373
406
|
resolve: true
|
|
374
407
|
renderer: true
|
|
408
|
+
- mode: preload
|
|
409
|
+
name: sap-ui-integration-editor
|
|
410
|
+
filters:
|
|
411
|
+
- sap/ui/integration/customElements/CustomElementEditor.js
|
|
412
|
+
- sap/ui/integration/editor/
|
|
413
|
+
resolve: true
|
|
414
|
+
renderer: true
|
|
375
415
|
- mode: require
|
|
376
416
|
filters:
|
|
377
|
-
- sap/ui/integration/
|
|
417
|
+
- sap/ui/integration/customElements/CustomElementEditor.js
|
|
378
418
|
bundleOptions:
|
|
379
419
|
optimize: true
|
|
380
420
|
usePredefineCalls: true
|
|
381
|
-
decorateBootstrapModule: true
|
|
382
|
-
addTryCatchRestartWrapper: true
|
|
383
421
|
jsdoc:
|
|
384
422
|
excludes:
|
|
385
423
|
- "sap/ui/integration/thirdparty/**"
|
|
@@ -391,6 +429,5 @@ builder:
|
|
|
391
429
|
- sap-ui-integration-editor.js
|
|
392
430
|
- sap-ui-integration-card-editor.js
|
|
393
431
|
- sap-ui-integration-cardEditor.js
|
|
394
|
-
- sap-ui-integration-shell-toolkit.js
|
|
395
432
|
- sap/ui/integration/thirdparty/**
|
|
396
433
|
- sap/ui/integration/designtime/cardEditor/ConfigurationTemplate.js
|