@openui5/sap.ui.integration 1.132.1 → 1.133.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/.reuse/dep5 +2 -2
- package/LICENSES/LicenseRef-Unicode-3.0.txt +39 -0
- package/THIRDPARTY.txt +54 -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 +1 -1
- package/src/sap/ui/integration/cards/AnalyticalContent.js +9 -2
- package/src/sap/ui/integration/cards/AnalyticsCloudContent.js +8 -1
- package/src/sap/ui/integration/cards/BaseContent.js +30 -2
- package/src/sap/ui/integration/cards/BaseContentRenderer.js +1 -1
- package/src/sap/ui/integration/cards/BaseListContent.js +1 -1
- package/src/sap/ui/integration/cards/CalendarContent.js +6 -6
- package/src/sap/ui/integration/cards/ComponentContent.js +1 -1
- package/src/sap/ui/integration/cards/Footer.js +137 -13
- package/src/sap/ui/integration/cards/Header.js +1 -1
- package/src/sap/ui/integration/cards/ListContent.js +1 -1
- package/src/sap/ui/integration/cards/NumericHeader.js +1 -1
- package/src/sap/ui/integration/cards/ObjectContent.js +1 -1
- package/src/sap/ui/integration/cards/TableContent.js +1 -1
- package/src/sap/ui/integration/cards/TimelineContent.js +1 -1
- package/src/sap/ui/integration/cards/WebPageContent.js +8 -1
- package/src/sap/ui/integration/cards/WebPageContentRenderer.js +3 -1
- package/src/sap/ui/integration/cards/actions/CardActions.js +1 -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 +22 -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/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 +131 -0
- package/src/sap/ui/integration/delegate/Paginator.js +4 -27
- package/src/sap/ui/integration/delegate/PreventKeyboardScrolling.js +120 -0
- 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/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 +21 -3
- package/src/sap/ui/integration/designtime/editor/CardPreview.js +1 -1
- package/src/sap/ui/integration/editor/Editor.js +2 -2
- 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 +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/library-bootstrap.js +6 -8
- package/src/sap/ui/integration/library.js +34 -2
- 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 +10 -3
- package/src/sap/ui/integration/themes/base/Card.less +5 -3
- package/src/sap/ui/integration/themes/base/Footer.less +21 -0
- package/src/sap/ui/integration/themes/base/ObjectContent.less +1 -1
- 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 +3 -2
- 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/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 -28
- 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/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 +1 -1
- package/src/sap/ui/integration/util/Validators.js +1 -1
- package/src/sap/ui/integration/util/openCardDialog.js +10 -2
- package/src/sap/ui/integration/util/openCardShowMore.js +50 -0
- package/src/sap/ui/integration/widgets/Card.js +46 -24
- package/LICENSES/Unicode-DFS-2015.txt +0 -51
|
@@ -46,7 +46,7 @@ sap.ui.define([
|
|
|
46
46
|
* @extends sap.ui.integration.util.BaseFactory
|
|
47
47
|
*
|
|
48
48
|
* @author SAP SE
|
|
49
|
-
* @version 1.
|
|
49
|
+
* @version 1.133.0
|
|
50
50
|
*
|
|
51
51
|
* @constructor
|
|
52
52
|
* @private
|
|
@@ -66,7 +66,8 @@ sap.ui.define([
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
var oContent = new Content({
|
|
69
|
-
card: oCard
|
|
69
|
+
card: oCard,
|
|
70
|
+
overflowWithShowMore: mConfig.overflowWithShowMore
|
|
70
71
|
});
|
|
71
72
|
|
|
72
73
|
if (oContent instanceof AdaptiveContent) {
|
|
@@ -40,14 +40,10 @@ sap.ui.define([
|
|
|
40
40
|
|
|
41
41
|
var ActionType = library.CardActionType;
|
|
42
42
|
|
|
43
|
-
var ButtonType = mLibrary.ButtonType;
|
|
44
|
-
|
|
45
43
|
var CardDisplayVariant = library.CardDisplayVariant;
|
|
46
44
|
|
|
47
45
|
var SemanticRole = fLibrary.cards.SemanticRole;
|
|
48
46
|
|
|
49
|
-
var oResourceBundle = Library.getResourceBundleFor("sap.ui.integration");
|
|
50
|
-
|
|
51
47
|
/**
|
|
52
48
|
* Constructor for a new <code>HeaderFactory</code>.
|
|
53
49
|
*
|
|
@@ -56,7 +52,7 @@ sap.ui.define([
|
|
|
56
52
|
* @extends sap.ui.integration.util.BaseFactory
|
|
57
53
|
*
|
|
58
54
|
* @author SAP SE
|
|
59
|
-
* @version 1.
|
|
55
|
+
* @version 1.133.0
|
|
60
56
|
*
|
|
61
57
|
* @constructor
|
|
62
58
|
* @private
|
|
@@ -78,10 +74,6 @@ sap.ui.define([
|
|
|
78
74
|
|
|
79
75
|
mConfiguration = this.createBindingInfos(mConfiguration, oCard.getBindingNamespaces());
|
|
80
76
|
|
|
81
|
-
if (bIsInDialog && !oCard.hasPaginator()) {
|
|
82
|
-
oToolbar = this._createCloseButton(mConfiguration);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
77
|
if (oCard.isCompactHeader()) {
|
|
86
78
|
mConfiguration.type = "";
|
|
87
79
|
}
|
|
@@ -142,25 +134,6 @@ sap.ui.define([
|
|
|
142
134
|
return oHeader;
|
|
143
135
|
};
|
|
144
136
|
|
|
145
|
-
HeaderFactory.prototype._createCloseButton = function (mConfiguration) {
|
|
146
|
-
var bVisible = true;
|
|
147
|
-
if (mConfiguration.closeButton && "visible" in mConfiguration.closeButton) {
|
|
148
|
-
bVisible = mConfiguration.closeButton.visible;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
var oButton = new Button({
|
|
152
|
-
type: ButtonType.Transparent,
|
|
153
|
-
tooltip: oResourceBundle.getText("CARD_DIALOG_CLOSE_BUTTON"),
|
|
154
|
-
visible: bVisible,
|
|
155
|
-
icon: "sap-icon://decline",
|
|
156
|
-
press: function () {
|
|
157
|
-
this._oCard.hide();
|
|
158
|
-
}.bind(this)
|
|
159
|
-
});
|
|
160
|
-
|
|
161
|
-
return oButton;
|
|
162
|
-
};
|
|
163
|
-
|
|
164
137
|
HeaderFactory.prototype._setTileDisplayDefaults = function (oHeader, mConfiguration) {
|
|
165
138
|
oHeader.setProperty("useTileLayout", true);
|
|
166
139
|
oHeader.setProperty("useTooltips", true);
|
|
@@ -145,7 +145,9 @@ sap.ui.define([
|
|
|
145
145
|
oChildCard.attachEvent("_ready", () => {
|
|
146
146
|
_setDialogHeader(oDialog, oChildCard);
|
|
147
147
|
_setAriaAttributes(oDialog, oChildCard);
|
|
148
|
-
|
|
148
|
+
if (!oChildCard._isComponentCard()) {
|
|
149
|
+
oDialog.open();
|
|
150
|
+
}
|
|
149
151
|
_setFocus(oChildCard, oDialog);
|
|
150
152
|
});
|
|
151
153
|
|
|
@@ -154,8 +156,14 @@ sap.ui.define([
|
|
|
154
156
|
_enableResizing(oDialog, oChildCard);
|
|
155
157
|
}
|
|
156
158
|
|
|
157
|
-
oChildCard.
|
|
159
|
+
oChildCard.attachManifestReady(() => {
|
|
160
|
+
// component card does not trigger the ready event if it hasn't been rendered yet
|
|
161
|
+
if (oChildCard._isComponentCard()) {
|
|
162
|
+
oDialog.open();
|
|
163
|
+
}
|
|
164
|
+
});
|
|
158
165
|
|
|
166
|
+
oChildCard.startManifestProcessing();
|
|
159
167
|
return oDialog;
|
|
160
168
|
}
|
|
161
169
|
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2025 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
"sap/base/util/uid",
|
|
9
|
+
"sap/ui/integration/util/openCardDialog"
|
|
10
|
+
], (
|
|
11
|
+
uid,
|
|
12
|
+
openCardDialog
|
|
13
|
+
) => {
|
|
14
|
+
"use strict";
|
|
15
|
+
|
|
16
|
+
function _createManifest(oCard) {
|
|
17
|
+
const oManifest = oCard.getManifestEntry("/");
|
|
18
|
+
|
|
19
|
+
oManifest["sap.app"].id = oManifest["sap.app"].id + uid();
|
|
20
|
+
|
|
21
|
+
oCard.getAggregation("_filterBar")?._getFilters().forEach((oFilter) => {
|
|
22
|
+
oFilter.writeValueToConfiguration(oManifest["sap.card"].configuration.filters[oFilter.getKey()]);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
return oManifest;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Opens the same card in a dialog with scrolling.
|
|
30
|
+
* @function
|
|
31
|
+
* @since 1.58
|
|
32
|
+
* @private
|
|
33
|
+
* @ui5-restricted sap.ui.integration
|
|
34
|
+
* @alias module:sap/base/util/merge
|
|
35
|
+
* @param {sap.ui.integration.widgets.Card} oCard The card to be opened.
|
|
36
|
+
* @returns {sap.m.Dialog} The opened dialog.
|
|
37
|
+
*/
|
|
38
|
+
function openCardShowMore(oCard) {
|
|
39
|
+
return openCardDialog(
|
|
40
|
+
oCard,
|
|
41
|
+
{
|
|
42
|
+
manifest: _createManifest(oCard),
|
|
43
|
+
baseUrl: oCard.getBaseUrl(),
|
|
44
|
+
showCloseButton: true
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return openCardShowMore;
|
|
50
|
+
});
|
|
@@ -84,7 +84,7 @@ sap.ui.define([
|
|
|
84
84
|
) {
|
|
85
85
|
"use strict";
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
const MANIFEST_PATHS = {
|
|
88
88
|
TYPE: "/sap.card/type",
|
|
89
89
|
ACTIONS: "/sap.card/actions",
|
|
90
90
|
DATA: "/sap.card/data",
|
|
@@ -103,37 +103,39 @@ sap.ui.define([
|
|
|
103
103
|
MODEL_SIZE_LIMIT: "/sap.card/configuration/modelSizeLimit"
|
|
104
104
|
};
|
|
105
105
|
|
|
106
|
-
|
|
106
|
+
const RESERVED_PARAMETER_NAMES = ["visibleItems", "allItems"];
|
|
107
107
|
|
|
108
|
-
|
|
108
|
+
const HeaderPosition = fLibrary.cards.HeaderPosition;
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
const SemanticRole = fLibrary.cards.SemanticRole;
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
const ActionArea = library.CardActionArea;
|
|
113
113
|
|
|
114
|
-
|
|
114
|
+
const CardArea = library.CardArea;
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
const CardDataMode = library.CardDataMode;
|
|
117
117
|
|
|
118
|
-
|
|
118
|
+
const CardDesign = library.CardDesign;
|
|
119
119
|
|
|
120
|
-
|
|
120
|
+
const CardDisplayVariant = library.CardDisplayVariant;
|
|
121
121
|
|
|
122
|
-
|
|
122
|
+
const CardPreviewMode = library.CardPreviewMode;
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
const CardOverflow = library.CardOverflow;
|
|
125
125
|
|
|
126
|
-
|
|
126
|
+
const CardBlockingMessageType = library.CardBlockingMessageType;
|
|
127
127
|
|
|
128
|
-
|
|
128
|
+
const CARD_DESTROYED_ERROR = "Card is destroyed!";
|
|
129
129
|
|
|
130
|
-
|
|
130
|
+
const MODULE_PREFIX = "module:";
|
|
131
|
+
|
|
132
|
+
const DEFAULT_MODEL_SIZE_LIMIT = 1000;
|
|
131
133
|
|
|
132
134
|
/**
|
|
133
135
|
* Constructor for a new <code>Card</code>.
|
|
134
136
|
*
|
|
135
|
-
* @param {string} [sId] ID for the new control
|
|
136
|
-
* @param {object} [mSettings] Initial settings for the new control
|
|
137
|
+
* @param {string} [sId] ID for the new control. ID generated automatically if no ID is provided.
|
|
138
|
+
* @param {object} [mSettings] Initial settings for the new control.
|
|
137
139
|
*
|
|
138
140
|
* @class
|
|
139
141
|
* A control that represents a container with a header and content.
|
|
@@ -186,7 +188,7 @@ sap.ui.define([
|
|
|
186
188
|
* @extends sap.f.CardBase
|
|
187
189
|
*
|
|
188
190
|
* @author SAP SE
|
|
189
|
-
* @version 1.
|
|
191
|
+
* @version 1.133.0
|
|
190
192
|
* @public
|
|
191
193
|
* @constructor
|
|
192
194
|
* @see {@link topic:5b46b03f024542ba802d99d67bc1a3f4 Cards}
|
|
@@ -356,6 +358,20 @@ sap.ui.define([
|
|
|
356
358
|
defaultValue: false
|
|
357
359
|
},
|
|
358
360
|
|
|
361
|
+
/**
|
|
362
|
+
* Allows to control the overflow behaviour of the card.
|
|
363
|
+
*
|
|
364
|
+
* <b>Note</b>: If the "Default" option is used, the card must be allowed to grow in height as much as it needs to avoid overflowing. Use a layout which allows this.
|
|
365
|
+
*
|
|
366
|
+
* @experimental Since 1.133
|
|
367
|
+
* @since 1.133
|
|
368
|
+
*/
|
|
369
|
+
overflow: {
|
|
370
|
+
type: "sap.ui.integration.CardOverflow",
|
|
371
|
+
group: "Behavior",
|
|
372
|
+
defaultValue: CardOverflow.Default
|
|
373
|
+
},
|
|
374
|
+
|
|
359
375
|
/**
|
|
360
376
|
* @since 1.128
|
|
361
377
|
*/
|
|
@@ -608,7 +624,7 @@ sap.ui.define([
|
|
|
608
624
|
* @experimental since 1.79
|
|
609
625
|
* @public
|
|
610
626
|
* @author SAP SE
|
|
611
|
-
* @version 1.
|
|
627
|
+
* @version 1.133.0
|
|
612
628
|
* @borrows sap.ui.integration.widgets.Card#getId as getId
|
|
613
629
|
* @borrows sap.ui.integration.widgets.Card#getDomRef as getDomRef
|
|
614
630
|
* @borrows sap.ui.integration.widgets.Card#setVisible as setVisible
|
|
@@ -789,9 +805,15 @@ sap.ui.define([
|
|
|
789
805
|
* @private
|
|
790
806
|
*/
|
|
791
807
|
Card.prototype.onBeforeRendering = function () {
|
|
792
|
-
|
|
808
|
+
const oCardContent = this.getCardContent();
|
|
793
809
|
if (oCardContent && oCardContent.isA("sap.ui.integration.cards.BaseContent")) {
|
|
794
810
|
oCardContent.setDesign(this.getDesign());
|
|
811
|
+
oCardContent.setOverflowWithShowMore(this.getOverflow() === CardOverflow.ShowMore);
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
const oFooter = this.getCardFooter();
|
|
815
|
+
if (oFooter) {
|
|
816
|
+
oFooter.setDetectVisibility(this.getOverflow() === CardOverflow.ShowMore);
|
|
795
817
|
}
|
|
796
818
|
|
|
797
819
|
if (this._getActualDataMode() !== CardDataMode.Active) {
|
|
@@ -2241,7 +2263,8 @@ sap.ui.define([
|
|
|
2241
2263
|
dataProviderFactory: this._oDataProviderFactory,
|
|
2242
2264
|
iconFormatter: this._oIconFormatter,
|
|
2243
2265
|
noDataConfiguration: this._oCardManifest.get(MANIFEST_PATHS.NO_DATA_MESSAGES),
|
|
2244
|
-
paginator: this._oPaginator
|
|
2266
|
+
paginator: this._oPaginator,
|
|
2267
|
+
overflowWithShowMore: this.getOverflow() === CardOverflow.ShowMore
|
|
2245
2268
|
});
|
|
2246
2269
|
} catch (e) {
|
|
2247
2270
|
this._handleError({
|
|
@@ -2331,6 +2354,7 @@ sap.ui.define([
|
|
|
2331
2354
|
/**
|
|
2332
2355
|
* Checks if this is a Component Card. Manifest must be loaded for that check.
|
|
2333
2356
|
* @private
|
|
2357
|
+
* @ui5-restricted sap.ui.integration
|
|
2334
2358
|
* @returns {boolean} True if this is a Component Card.
|
|
2335
2359
|
*/
|
|
2336
2360
|
Card.prototype._isComponentCard = function () {
|
|
@@ -2389,14 +2413,11 @@ sap.ui.define([
|
|
|
2389
2413
|
Card.prototype.createFooter = function () {
|
|
2390
2414
|
var oManifestFooter = this._oCardManifest.get(MANIFEST_PATHS.FOOTER);
|
|
2391
2415
|
|
|
2392
|
-
if (!oManifestFooter) {
|
|
2393
|
-
return null;
|
|
2394
|
-
}
|
|
2395
|
-
|
|
2396
2416
|
return Footer.create({
|
|
2397
2417
|
card: this,
|
|
2398
2418
|
configuration: oManifestFooter,
|
|
2399
2419
|
showCloseButton: this.getProperty("showCloseButton"),
|
|
2420
|
+
detectVisibility: this.getOverflow() === CardOverflow.ShowMore,
|
|
2400
2421
|
paginator: this._oPaginator
|
|
2401
2422
|
});
|
|
2402
2423
|
};
|
|
@@ -2431,6 +2452,7 @@ sap.ui.define([
|
|
|
2431
2452
|
return this._oContentFactory.create(mContentConfig);
|
|
2432
2453
|
};
|
|
2433
2454
|
|
|
2455
|
+
|
|
2434
2456
|
/**
|
|
2435
2457
|
* Sets a card content.
|
|
2436
2458
|
*
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
UNICODE, INC. LICENSE AGREEMENT - DATA FILES AND SOFTWARE
|
|
2
|
-
|
|
3
|
-
Unicode Data Files include all data files under the directories http://www.unicode.org/Public/,
|
|
4
|
-
http://www.unicode.org/reports/, and http://www.unicode.org/cldr/data/. Unicode
|
|
5
|
-
Data Files do not include PDF online code charts under the directory http://www.unicode.org/Public/.
|
|
6
|
-
Software includes any source code published in the Unicode Standard or under
|
|
7
|
-
the directories http://www.unicode.org/Public/, http://www.unicode.org/reports/,
|
|
8
|
-
and http://www.unicode.org/cldr/data/.
|
|
9
|
-
|
|
10
|
-
NOTICE TO USER: Carefully read the following legal agreement. BY DOWNLOADING,
|
|
11
|
-
INSTALLING, COPYING OR OTHERWISE USING UNICODE INC.'S DATA FILES ("DATA FILES"),
|
|
12
|
-
AND/OR SOFTWARE ("SOFTWARE"), YOU UNEQUIVOCALLY ACCEPT, AND AGREE TO BE BOUND
|
|
13
|
-
BY, ALL OF THE TERMS AND CONDITIONS OF THIS AGREEMENT. IF YOU DO NOT AGREE,
|
|
14
|
-
DO NOT DOWNLOAD, INSTALL, COPY, DISTRIBUTE OR USE THE DATA FILES OR SOFTWARE.
|
|
15
|
-
|
|
16
|
-
COPYRIGHT AND PERMISSION NOTICE
|
|
17
|
-
|
|
18
|
-
Copyright © 1991-2015 Unicode, Inc. All rights reserved. Distributed under
|
|
19
|
-
the Terms of Use in http://www.unicode.org/copyright.html.
|
|
20
|
-
|
|
21
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
22
|
-
of the Unicode data files and any associated documentation (the "Data Files")
|
|
23
|
-
or Unicode software and any associated documentation (the "Software") to deal
|
|
24
|
-
in the Data Files or Software without restriction, including without limitation
|
|
25
|
-
the rights to use, copy, modify, merge, publish, distribute, and/or sell copies
|
|
26
|
-
of the Data Files or Software, and to permit persons to whom the Data Files
|
|
27
|
-
or Software are furnished to do so, provided that
|
|
28
|
-
|
|
29
|
-
(a) this copyright and permission notice appear with all copies of the Data
|
|
30
|
-
Files or Software,
|
|
31
|
-
|
|
32
|
-
(b) this copyright and permission notice appear in associated documentation,
|
|
33
|
-
and
|
|
34
|
-
|
|
35
|
-
(c) there is clear notice in each modified Data File or in the Software as
|
|
36
|
-
well as in the documentation associated with the Data File(s) or Software
|
|
37
|
-
that the data or software has been modified.
|
|
38
|
-
|
|
39
|
-
THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
|
40
|
-
KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
41
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS.
|
|
42
|
-
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS NOTICE
|
|
43
|
-
BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES,
|
|
44
|
-
OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
|
|
45
|
-
IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
|
|
46
|
-
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA FILES OR SOFTWARE.
|
|
47
|
-
|
|
48
|
-
Except as contained in this notice, the name of a copyright holder shall not
|
|
49
|
-
be used in advertising or otherwise to promote the sale, use or other dealings
|
|
50
|
-
in these Data Files or Software without prior written authorization of the
|
|
51
|
-
copyright holder.
|