@openui5/sap.ui.integration 1.145.1 → 1.147.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.toml +0 -51
- package/THIRDPARTY.txt +6 -50
- package/package.json +6 -6
- package/src/sap/ui/integration/.library +1 -1
- package/src/sap/ui/integration/ActionDefinition.js +2 -3
- package/src/sap/ui/integration/Designtime.js +1 -2
- package/src/sap/ui/integration/Extension.js +5 -8
- package/src/sap/ui/integration/Host.js +14 -21
- package/src/sap/ui/integration/cards/AdaptiveContent.js +1 -1
- package/src/sap/ui/integration/cards/AnalyticalContent.js +1 -1
- package/src/sap/ui/integration/cards/AnalyticsCloudContent.js +1 -1
- package/src/sap/ui/integration/cards/BaseContent.js +3 -2
- package/src/sap/ui/integration/cards/BaseListContent.js +65 -2
- package/src/sap/ui/integration/cards/CalendarContent.js +13 -11
- package/src/sap/ui/integration/cards/ComponentContent.js +1 -2
- package/src/sap/ui/integration/cards/Footer.js +1 -1
- package/src/sap/ui/integration/cards/Header.js +1 -1
- package/src/sap/ui/integration/cards/ListContent.js +15 -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 +27 -3
- package/src/sap/ui/integration/cards/TimelineContent.js +2 -2
- package/src/sap/ui/integration/cards/WebPageContent.js +2 -3
- 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 +5 -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 +2 -2
- 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 -2
- package/src/sap/ui/integration/designtime/baseEditor/PropertyEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/PropertyEditors.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/layout/Form.fragment.xml +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/BasePropertyEditor.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/PropertyEditorFactory.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/arrayEditor/ArrayEditor.fragment.xml +6 -6
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/arrayEditor/ArrayEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/arrayEditor/ArrayEditorPlain.fragment.xml +6 -6
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/booleanEditor/BooleanEditor.fragment.xml +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/booleanEditor/BooleanEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/codeEditor/CodeEditor.fragment.xml +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/codeEditor/CodeEditor.js +18 -7
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/codeEditor/CodeEditorDialog.fragment.xml +3 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/dateEditor/DateEditor.fragment.xml +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/dateEditor/DateEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/dateTimeEditor/DateTimeEditor.fragment.xml +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/dateTimeEditor/DateTimeEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/enumStringEditor/EnumStringEditor.fragment.xml +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/enumStringEditor/EnumStringEditor.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/groupEditor/GroupEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/iconEditor/IconEditor.fragment.xml +3 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/iconEditor/IconEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/iconEditor/IconEditorDialog.fragment.xml +4 -4
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/iconEditor/IsInIconPool.validator.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/integerEditor/IntegerEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/jsonEditor/JsonEditor.fragment.xml +2 -2
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/jsonEditor/JsonEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/jsonEditor/JsonEditorDialog.fragment.xml +4 -4
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/listEditor/ListEditor.fragment.xml +3 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/listEditor/ListEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/mapEditor/MapEditor.fragment.xml +6 -6
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/mapEditor/MapEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/multiSelectEditor/MultiSelectEditor.fragment.xml +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/multiSelectEditor/MultiSelectEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/numberEditor/NumberEditor.fragment.xml +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/numberEditor/NumberEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/objectArrayEditor/ObjectArrayEditor.fragment.xml +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/objectArrayEditor/ObjectArrayEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/selectEditor/SelectEditor.fragment.xml +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/selectEditor/SelectEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/separatorEditor/SeparatorEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/stringEditor/StringEditor.fragment.xml +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/stringEditor/StringEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/textAreaEditor/TextAreaEditor.fragment.xml +1 -1
- package/src/sap/ui/integration/designtime/baseEditor/propertyEditor/textAreaEditor/TextAreaEditor.js +2 -3
- package/src/sap/ui/integration/designtime/baseEditor/util/binding/ObjectBinding.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/util/binding/resolveBinding.js +0 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/cleanupDesigntimeMetadata.js +0 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/createPromise.js +0 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/escapeParameter.js +0 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/findClosestInstance.js +0 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/hasTag.js +0 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/isTemplate.js +0 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/isValidBindingString.js +0 -1
- package/src/sap/ui/integration/designtime/baseEditor/util/unset.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsBoolean.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsDate.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsInteger.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsNumber.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsSelectedKey.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsStringList.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsUniqueKey.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsUniqueList.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/IsValidBinding.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/MaxLength.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/NotABinding.js +1 -2
- package/src/sap/ui/integration/designtime/baseEditor/validator/ValidatorRegistry.js +1 -2
- package/src/sap/ui/integration/designtime/cardEditor/BASEditor.js +0 -1
- package/src/sap/ui/integration/designtime/cardEditor/CardEditor.js +0 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/AppConfig.js +0 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/FooterConfig.js +0 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/HeaderConfig.js +0 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/ListCardConfig.js +0 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/ObjectCardConfig.js +0 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/TableCardConfig.js +84 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/generateActionConfig.js +7 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/generateDataConfig.js +0 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/generateFooterActionsStripConfig.js +0 -1
- package/src/sap/ui/integration/designtime/cardEditor/config/index.js +0 -1
- package/src/sap/ui/integration/designtime/cardEditor/i18n/i18n.properties +45 -0
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/complexMapEditor/ComplexMapEditor.fragment.xml +1 -1
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/complexMapEditor/ComplexMapEditor.js +2 -3
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/destinationsEditor/DestinationsEditor.js +2 -3
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/filtersEditor/FiltersEditor.js +2 -3
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/iconEditor/IconEditor.fragment.xml +5 -5
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/iconEditor/IconEditor.js +2 -3
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/iconEditor/IconEditorSettingsDialog.fragment.xml +4 -4
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/parametersEditor/ParametersConfigurationEditor.fragment.xml +2 -2
- package/src/sap/ui/integration/designtime/cardEditor/propertyEditor/parametersEditor/ParametersEditor.js +2 -3
- package/src/sap/ui/integration/designtime/editor/Card.js +1 -3
- package/src/sap/ui/integration/designtime/editor/CardEditor.js +2 -3
- package/src/sap/ui/integration/designtime/editor/CardPreview.js +1 -2
- package/src/sap/ui/integration/editor/Editor.js +123 -45
- package/src/sap/ui/integration/editor/EditorResourceBundles.js +5 -30
- 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 -2
- package/src/sap/ui/integration/editor/fields/BaseField.js +1 -4
- package/src/sap/ui/integration/editor/fields/BooleanField.js +1 -2
- package/src/sap/ui/integration/editor/fields/DateField.js +1 -2
- package/src/sap/ui/integration/editor/fields/DateTimeField.js +1 -2
- package/src/sap/ui/integration/editor/fields/DestinationField.js +1 -2
- package/src/sap/ui/integration/editor/fields/GroupField.js +1 -2
- package/src/sap/ui/integration/editor/fields/IntegerField.js +1 -2
- package/src/sap/ui/integration/editor/fields/NumberField.js +1 -2
- package/src/sap/ui/integration/editor/fields/ObjectField.js +2 -5
- package/src/sap/ui/integration/editor/fields/ObjectListField.js +1 -2
- package/src/sap/ui/integration/editor/fields/StringField.js +1 -4
- package/src/sap/ui/integration/editor/fields/StringListField.js +1 -2
- package/src/sap/ui/integration/editor/fields/fragment/Controller.js +1 -2
- package/src/sap/ui/integration/editor/fields/viz/ColorSelect.js +1 -2
- package/src/sap/ui/integration/editor/fields/viz/IconSelect.js +1 -2
- package/src/sap/ui/integration/editor/fields/viz/ImageSelect.js +1 -2
- package/src/sap/ui/integration/editor/fields/viz/ShapeSelect.js +1 -2
- package/src/sap/ui/integration/editor/fields/viz/VizBase.js +28 -8
- package/src/sap/ui/integration/extensions/OAuth3LO.js +1 -1
- package/src/sap/ui/integration/formatters/IconFormatter.js +1 -1
- package/src/sap/ui/integration/library.js +17 -22
- 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 +128 -4
- package/src/sap/ui/integration/services/Data.js +0 -1
- package/src/sap/ui/integration/services/Navigation.js +0 -1
- package/src/sap/ui/integration/services/Service.js +0 -1
- package/src/sap/ui/integration/themes/base/ObjectContent.less +8 -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 +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 +3 -4
- 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 -1
- 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/ManifestResolver.js +4 -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/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/widgets/Card.js +172 -69
|
@@ -99,6 +99,7 @@ sap.ui.define([
|
|
|
99
99
|
DESTINATIONS: "/sap.card/configuration/destinations",
|
|
100
100
|
CSRF_TOKENS: "/sap.card/configuration/csrfTokens",
|
|
101
101
|
FILTERS: "/sap.card/configuration/filters",
|
|
102
|
+
CUSTOM_SETTINGS: "/sap.card/customSettings",
|
|
102
103
|
NO_DATA_MESSAGES: "/sap.card/configuration/messages/noData",
|
|
103
104
|
MODEL_SIZE_LIMIT: "/sap.card/configuration/modelSizeLimit",
|
|
104
105
|
CHILD_CARDS: "/sap.card/configuration/childCards"
|
|
@@ -191,7 +192,7 @@ sap.ui.define([
|
|
|
191
192
|
* @extends sap.f.CardBase
|
|
192
193
|
*
|
|
193
194
|
* @author SAP SE
|
|
194
|
-
* @version 1.
|
|
195
|
+
* @version 1.147.0
|
|
195
196
|
* @public
|
|
196
197
|
* @constructor
|
|
197
198
|
* @see {@link topic:5b46b03f024542ba802d99d67bc1a3f4 Cards}
|
|
@@ -225,17 +226,31 @@ sap.ui.define([
|
|
|
225
226
|
* Overrides the default values of the parameters, which are defined in the manifest.
|
|
226
227
|
* The value is an object containing parameters in format <code>{parameterKey: parameterValue}</code>.
|
|
227
228
|
*
|
|
228
|
-
* @experimental
|
|
229
|
+
* @ui5-experimental-since 1.65
|
|
229
230
|
*/
|
|
230
231
|
parameters: {
|
|
231
232
|
type: "object",
|
|
232
233
|
defaultValue: null
|
|
233
234
|
},
|
|
234
235
|
|
|
236
|
+
/**
|
|
237
|
+
* Defines custom settings passed from the Mobile SDK or a hosting application.
|
|
238
|
+
* These are global defaults that can be overridden by individual cards via their manifest.
|
|
239
|
+
* The value is an object containing custom settings as key-value pairs.
|
|
240
|
+
*
|
|
241
|
+
* <b>Note:</b> For Mobile SDK usage, set this property before calling <code>startManifestProcessing</code>.
|
|
242
|
+
*
|
|
243
|
+
* @ui5-experimental-since 1.146
|
|
244
|
+
*/
|
|
245
|
+
customSettings: {
|
|
246
|
+
type: "object",
|
|
247
|
+
defaultValue: {},
|
|
248
|
+
visibility: "hidden"
|
|
249
|
+
},
|
|
250
|
+
|
|
235
251
|
/**
|
|
236
252
|
* Defines the state of the <code>Card</code>. When set to <code>Inactive</code>, the <code>Card</code> doesn't make requests.
|
|
237
|
-
* @experimental
|
|
238
|
-
* @since 1.65
|
|
253
|
+
* @ui5-experimental-since 1.65
|
|
239
254
|
*/
|
|
240
255
|
dataMode: {
|
|
241
256
|
type: "sap.ui.integration.CardDataMode",
|
|
@@ -244,11 +259,14 @@ sap.ui.define([
|
|
|
244
259
|
},
|
|
245
260
|
|
|
246
261
|
/**
|
|
247
|
-
* Defines the base URL of the card manifest. It
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
*
|
|
262
|
+
* Defines the base URL of the card manifest. It must be provided when the manifest is an object and not a URL.
|
|
263
|
+
* The base URL is used to load relatively referenced resources.
|
|
264
|
+
*
|
|
265
|
+
* If the base URL is not defined and the manifest URL is defined, the manifest URL is used as the base URL.
|
|
266
|
+
* <ul>
|
|
267
|
+
* <li>If both the manifest URL and the base URL are defined, the base URL is used.</li>
|
|
268
|
+
* <li>If neither the manifest URL nor the base URL is defined, relative resources will not load correctly.</li>
|
|
269
|
+
* </ul>
|
|
252
270
|
*/
|
|
253
271
|
baseUrl: {
|
|
254
272
|
type: "sap.ui.core.URI",
|
|
@@ -289,8 +307,9 @@ sap.ui.define([
|
|
|
289
307
|
* ]
|
|
290
308
|
* </pre>
|
|
291
309
|
*
|
|
292
|
-
*
|
|
293
|
-
*
|
|
310
|
+
* Disclaimer: this API might be removed when a permanent solution for flexibility changes is implemented.
|
|
311
|
+
*
|
|
312
|
+
* @ui5-experimental-since 1.76
|
|
294
313
|
*/
|
|
295
314
|
manifestChanges: {
|
|
296
315
|
type: "object[]",
|
|
@@ -299,7 +318,6 @@ sap.ui.define([
|
|
|
299
318
|
|
|
300
319
|
/**
|
|
301
320
|
* Defines if the card should be displayed with mock data. To be used with component cards.
|
|
302
|
-
* @experimental Since 1.109
|
|
303
321
|
* @private
|
|
304
322
|
* @since 1.109
|
|
305
323
|
* @deprecated Since 1.112. Use <code>previewMode</code> instead.
|
|
@@ -312,8 +330,7 @@ sap.ui.define([
|
|
|
312
330
|
|
|
313
331
|
/**
|
|
314
332
|
* Defines the design of the <code>Card</code>.
|
|
315
|
-
* @experimental
|
|
316
|
-
* @since 1.109
|
|
333
|
+
* @ui5-experimental-since 1.109
|
|
317
334
|
*/
|
|
318
335
|
design: {
|
|
319
336
|
type: "sap.ui.integration.CardDesign",
|
|
@@ -323,8 +340,8 @@ sap.ui.define([
|
|
|
323
340
|
|
|
324
341
|
/**
|
|
325
342
|
* Defines the display variant for card rendering and behavior.
|
|
326
|
-
* @experimental
|
|
327
|
-
* @
|
|
343
|
+
* @ui5-experimental-since 1.118
|
|
344
|
+
* @ui5-restricted Work Zone
|
|
328
345
|
*/
|
|
329
346
|
displayVariant: {
|
|
330
347
|
type: "sap.ui.integration.CardDisplayVariant",
|
|
@@ -340,8 +357,7 @@ sap.ui.define([
|
|
|
340
357
|
* <li>When set to "Abstract", the card shows abstract placeholder without loading data.</li>
|
|
341
358
|
* <li>When set to "Off", the card displays real data.</li>
|
|
342
359
|
* </ul>
|
|
343
|
-
* @experimental
|
|
344
|
-
* @since 1.112
|
|
360
|
+
* @ui5-experimental-since 1.112
|
|
345
361
|
*/
|
|
346
362
|
previewMode: {
|
|
347
363
|
type: "sap.ui.integration.CardPreviewMode",
|
|
@@ -352,8 +368,7 @@ sap.ui.define([
|
|
|
352
368
|
/**
|
|
353
369
|
* If the card should change depending on its size.
|
|
354
370
|
* This property is temporary. Should be used to enable the feature for cards where it is needed.
|
|
355
|
-
* @experimental
|
|
356
|
-
* @since 1.127
|
|
371
|
+
* @ui5-experimental-since 1.127
|
|
357
372
|
*/
|
|
358
373
|
useProgressiveDisclosure: {
|
|
359
374
|
type: "boolean",
|
|
@@ -366,8 +381,7 @@ sap.ui.define([
|
|
|
366
381
|
*
|
|
367
382
|
* <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.
|
|
368
383
|
*
|
|
369
|
-
* @experimental
|
|
370
|
-
* @since 1.133
|
|
384
|
+
* @ui5-experimental-since 1.133
|
|
371
385
|
*/
|
|
372
386
|
overflow: {
|
|
373
387
|
type: "sap.ui.integration.CardOverflow",
|
|
@@ -409,8 +423,7 @@ sap.ui.define([
|
|
|
409
423
|
/**
|
|
410
424
|
* Actions definitions from which actions in the header menu of the card are created.
|
|
411
425
|
* <b>Note</b>: This aggregation is destroyed when the property <code>manifest</code> changes.
|
|
412
|
-
* @experimental
|
|
413
|
-
* @since 1.85
|
|
426
|
+
* @ui5-experimental-since 1.85
|
|
414
427
|
*/
|
|
415
428
|
actionDefinitions: {
|
|
416
429
|
type: "sap.ui.integration.ActionDefinition",
|
|
@@ -483,8 +496,7 @@ sap.ui.define([
|
|
|
483
496
|
* When an action is triggered in the card it can be handled on several places by "action" event handlers. In consecutive order those places are: <code>Extension</code>, <code>Card</code>, <code>Host</code>.
|
|
484
497
|
* Each of them can prevent the next one to handle the action by calling <code>oEvent.preventDefault()</code>.
|
|
485
498
|
*
|
|
486
|
-
* @experimental
|
|
487
|
-
* Disclaimer: this event is in a beta state - incompatible API changes may be done before its official public release. Use at your own discretion.
|
|
499
|
+
* @ui5-experimental-since 1.64
|
|
488
500
|
*/
|
|
489
501
|
action: {
|
|
490
502
|
allowPreventDefault: true,
|
|
@@ -537,7 +549,7 @@ sap.ui.define([
|
|
|
537
549
|
/**
|
|
538
550
|
* Fired when some configuration settings are changed as a result of user interaction.
|
|
539
551
|
* For example - filter value is changed.
|
|
540
|
-
* @experimental
|
|
552
|
+
* @ui5-experimental-since 1.96
|
|
541
553
|
*/
|
|
542
554
|
configurationChange: {
|
|
543
555
|
parameters: {
|
|
@@ -560,7 +572,7 @@ sap.ui.define([
|
|
|
560
572
|
|
|
561
573
|
/**
|
|
562
574
|
* Fired when the manifest is loaded.
|
|
563
|
-
* @experimental
|
|
575
|
+
* @ui5-experimental-since 1.72
|
|
564
576
|
*/
|
|
565
577
|
manifestReady: {},
|
|
566
578
|
|
|
@@ -576,7 +588,7 @@ sap.ui.define([
|
|
|
576
588
|
/**
|
|
577
589
|
* Fired when the state of the card is changed.
|
|
578
590
|
* For example - the card is ready, new page is selected, a filter is changed or data is refreshed.
|
|
579
|
-
* @experimental
|
|
591
|
+
* @ui5-experimental-since 1.107
|
|
580
592
|
*/
|
|
581
593
|
stateChanged: {}
|
|
582
594
|
},
|
|
@@ -630,6 +642,7 @@ sap.ui.define([
|
|
|
630
642
|
this._aSevereErrors = [];
|
|
631
643
|
this._sPerformanceId = "UI5 Integration Cards " + this.getId() + " ";
|
|
632
644
|
this._aActiveLoadingProviders = [];
|
|
645
|
+
this._oCustomSettings = this.getProperty("customSettings");
|
|
633
646
|
this._fnOnDataReady = function () {
|
|
634
647
|
this._bDataReady = true;
|
|
635
648
|
}.bind(this);
|
|
@@ -647,7 +660,7 @@ sap.ui.define([
|
|
|
647
660
|
* @name sap.ui.integration.widgets.CardFacade
|
|
648
661
|
* @public
|
|
649
662
|
* @author SAP SE
|
|
650
|
-
* @version 1.
|
|
663
|
+
* @version 1.147.0
|
|
651
664
|
* @borrows sap.ui.integration.widgets.Card#getId as getId
|
|
652
665
|
* @borrows sap.ui.integration.widgets.Card#getCombinedParameters as getCombinedParameters
|
|
653
666
|
* @borrows sap.ui.integration.widgets.Card#getManifestEntry as getManifestEntry
|
|
@@ -657,8 +670,7 @@ sap.ui.define([
|
|
|
657
670
|
* @borrows sap.ui.integration.widgets.Card#refreshData as refreshData
|
|
658
671
|
* @borrows sap.ui.integration.widgets.Card#showMessage as showMessage
|
|
659
672
|
* @borrows sap.ui.integration.widgets.Card#hideMessage as hideMessage
|
|
660
|
-
* @borrows sap.ui.integration.widgets.Card#
|
|
661
|
-
* @borrows sap.ui.integration.widgets.Card#getRuntimeUrl as getRuntimeUrl
|
|
673
|
+
* @borrows sap.ui.integration.widgets.Card#resolveUrl as resolveUrl
|
|
662
674
|
* @borrows sap.ui.integration.widgets.Card#getTranslatedText as getTranslatedText
|
|
663
675
|
* @borrows sap.ui.integration.widgets.Card#triggerAction as triggerAction
|
|
664
676
|
* @borrows sap.ui.integration.widgets.Card#addActionDefinition as addActionDefinition
|
|
@@ -690,7 +702,8 @@ sap.ui.define([
|
|
|
690
702
|
"refreshData",
|
|
691
703
|
"showMessage",
|
|
692
704
|
"getBaseUrl",
|
|
693
|
-
"
|
|
705
|
+
"resolveUrl",
|
|
706
|
+
"getRuntimeUrl", // @deprecated since 1.147.0
|
|
694
707
|
"getTranslatedText",
|
|
695
708
|
"getModel",
|
|
696
709
|
"triggerAction",
|
|
@@ -710,6 +723,13 @@ sap.ui.define([
|
|
|
710
723
|
"hideBlockingMessage",
|
|
711
724
|
"getBlockingMessage"
|
|
712
725
|
]);
|
|
726
|
+
|
|
727
|
+
// Temporary compatibility for deprecated getBaseUrl method
|
|
728
|
+
const fnOriginalGetBaseUrl = this._oLimitedInterface.getBaseUrl;
|
|
729
|
+
this._oLimitedInterface.getBaseUrl = function() {
|
|
730
|
+
Log.warning("Method 'getBaseUrl' must not be used through the card interface. It will be removed soon. Use 'resolveUrl' instead.");
|
|
731
|
+
return fnOriginalGetBaseUrl.apply(this, arguments);
|
|
732
|
+
};
|
|
713
733
|
};
|
|
714
734
|
|
|
715
735
|
/**
|
|
@@ -759,6 +779,10 @@ sap.ui.define([
|
|
|
759
779
|
parameters: {
|
|
760
780
|
init: () => this.setModel(new JSONModel(ParameterMap.getParamsForModel()), "parameters")
|
|
761
781
|
},
|
|
782
|
+
customSettings: {
|
|
783
|
+
init: () => this.setModel(new JSONModel({}), "customSettings"),
|
|
784
|
+
reset: () => this.getModel("customSettings").setData({})
|
|
785
|
+
},
|
|
762
786
|
filters: {
|
|
763
787
|
init: () => this.setModel(new JSONModel(), "filters"),
|
|
764
788
|
reset: () => this.getModel("filters").setData({})
|
|
@@ -884,6 +908,12 @@ sap.ui.define([
|
|
|
884
908
|
if (this._getActualDataMode() !== CardDataMode.Active) {
|
|
885
909
|
return;
|
|
886
910
|
}
|
|
911
|
+
|
|
912
|
+
if (this._oCustomSettings !== this.getProperty("customSettings")) {
|
|
913
|
+
this._bApplyCustomSettings = true;
|
|
914
|
+
this._oCustomSettings = this.getProperty("customSettings");
|
|
915
|
+
}
|
|
916
|
+
|
|
887
917
|
this.startManifestProcessing();
|
|
888
918
|
};
|
|
889
919
|
|
|
@@ -930,7 +960,7 @@ sap.ui.define([
|
|
|
930
960
|
);
|
|
931
961
|
}
|
|
932
962
|
|
|
933
|
-
if (this._bApplyManifest || this._bApplyParameters) {
|
|
963
|
+
if (this._bApplyManifest || this._bApplyParameters || this._bApplyCustomSettings) {
|
|
934
964
|
this._clearReadyState();
|
|
935
965
|
this._initReadyState();
|
|
936
966
|
}
|
|
@@ -941,7 +971,7 @@ sap.ui.define([
|
|
|
941
971
|
this.createManifest(vManifest, this.getBaseUrl());
|
|
942
972
|
}
|
|
943
973
|
|
|
944
|
-
if (!this._bApplyManifest && this._bApplyParameters) {
|
|
974
|
+
if (!this._bApplyManifest && (this._bApplyParameters || this._bApplyCustomSettings)) {
|
|
945
975
|
this._oCardManifest.processParameters(this._getContextAndRuntimeParams());
|
|
946
976
|
|
|
947
977
|
this.processDestinations(this._oCardManifest.getJson()).then((oResult) => {
|
|
@@ -953,6 +983,7 @@ sap.ui.define([
|
|
|
953
983
|
|
|
954
984
|
this._bApplyManifest = false;
|
|
955
985
|
this._bApplyParameters = false;
|
|
986
|
+
this._bApplyCustomSettings = false;
|
|
956
987
|
this._refreshActionsMenu();
|
|
957
988
|
};
|
|
958
989
|
|
|
@@ -1146,11 +1177,11 @@ sap.ui.define([
|
|
|
1146
1177
|
};
|
|
1147
1178
|
|
|
1148
1179
|
/**
|
|
1149
|
-
* Causes all
|
|
1180
|
+
* Causes all the controls within the Card
|
|
1150
1181
|
* that support validation to validate their data.
|
|
1151
1182
|
* @public
|
|
1152
|
-
* @experimental
|
|
1153
|
-
* @returns {boolean} if all
|
|
1183
|
+
* @ui5-experimental-since 1.106
|
|
1184
|
+
* @returns {boolean} if all the controls validated successfully; otherwise, false
|
|
1154
1185
|
*/
|
|
1155
1186
|
Card.prototype.validateControls = function () {
|
|
1156
1187
|
this._validateContentControls(true);
|
|
@@ -1286,7 +1317,7 @@ sap.ui.define([
|
|
|
1286
1317
|
|
|
1287
1318
|
/**
|
|
1288
1319
|
* @public
|
|
1289
|
-
* @experimental
|
|
1320
|
+
* @ui5-experimental-since 1.65
|
|
1290
1321
|
* @returns {boolean} If the card is ready or not.
|
|
1291
1322
|
*/
|
|
1292
1323
|
Card.prototype.isReady = function () {
|
|
@@ -1297,7 +1328,7 @@ sap.ui.define([
|
|
|
1297
1328
|
* Refreshes the card by re-applying the manifest settings and triggering all data requests.
|
|
1298
1329
|
*
|
|
1299
1330
|
* @public
|
|
1300
|
-
* @experimental
|
|
1331
|
+
* @ui5-experimental-since 1.65
|
|
1301
1332
|
*/
|
|
1302
1333
|
Card.prototype.refresh = function () {
|
|
1303
1334
|
if (this._getActualDataMode() === CardDataMode.Active) {
|
|
@@ -1394,6 +1425,7 @@ sap.ui.define([
|
|
|
1394
1425
|
return;
|
|
1395
1426
|
}
|
|
1396
1427
|
|
|
1428
|
+
this.hideBlockingMessage();
|
|
1397
1429
|
this.refreshAllData();
|
|
1398
1430
|
this.resetPaginator();
|
|
1399
1431
|
};
|
|
@@ -1598,7 +1630,7 @@ sap.ui.define([
|
|
|
1598
1630
|
* - Use when developing a Component card.
|
|
1599
1631
|
*
|
|
1600
1632
|
* @public
|
|
1601
|
-
* @experimental
|
|
1633
|
+
* @ui5-experimental-since 1.77
|
|
1602
1634
|
* @returns {map} Object containing parameters in format <code>{parameterKey: parameterValue}</code>.
|
|
1603
1635
|
*/
|
|
1604
1636
|
Card.prototype.getCombinedParameters = function () {
|
|
@@ -1618,13 +1650,43 @@ sap.ui.define([
|
|
|
1618
1650
|
return oResultParams;
|
|
1619
1651
|
};
|
|
1620
1652
|
|
|
1653
|
+
/**
|
|
1654
|
+
* Gets the merged custom settings from the manifest combined with the settings from <code>customSettings</code> property.
|
|
1655
|
+
* Card manifest values take precedence for individual properties (shallow merge).
|
|
1656
|
+
*
|
|
1657
|
+
* <b>Notes</b>
|
|
1658
|
+
*
|
|
1659
|
+
* - Use this method when the manifest is ready. Check <code>manifestReady</code> event.
|
|
1660
|
+
*
|
|
1661
|
+
* - This method is intended for use by Mobile SDK.
|
|
1662
|
+
*
|
|
1663
|
+
* @private
|
|
1664
|
+
* @ui5-restricted Mobile SDK
|
|
1665
|
+
* @returns {object} Object containing the merged custom settings. Returns <code>null</code> if the manifest is not ready.
|
|
1666
|
+
* @ui5-experimental-since 1.146
|
|
1667
|
+
*/
|
|
1668
|
+
Card.prototype.getCombinedCustomSettings = function () {
|
|
1669
|
+
if (!this._isManifestReady) {
|
|
1670
|
+
Log.error("The manifest is not ready. Consider using the 'manifestReady' event.", "sap.ui.integration.widgets.Card");
|
|
1671
|
+
return null;
|
|
1672
|
+
}
|
|
1673
|
+
|
|
1674
|
+
const oModel = this.getModel("customSettings");
|
|
1675
|
+
if (oModel) {
|
|
1676
|
+
const oData = oModel.getData();
|
|
1677
|
+
return jQuery.extend(true, {}, oData);
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1680
|
+
return {};
|
|
1681
|
+
};
|
|
1682
|
+
|
|
1621
1683
|
/**
|
|
1622
1684
|
* Returns a value from the Manifest based on the specified path.
|
|
1623
1685
|
*
|
|
1624
1686
|
* <b>Note</b> Use this method when the manifest is ready. Check <code>manifestReady</code> event.
|
|
1625
1687
|
*
|
|
1626
1688
|
* @public
|
|
1627
|
-
* @experimental
|
|
1689
|
+
* @ui5-experimental-since 1.77
|
|
1628
1690
|
* @param {string} sPath The path to return a value for.
|
|
1629
1691
|
* @returns {any} The value at the specified path.
|
|
1630
1692
|
*/
|
|
@@ -1705,7 +1767,7 @@ sap.ui.define([
|
|
|
1705
1767
|
* Can be used only after the <code>manifestApplied</code> event is fired.
|
|
1706
1768
|
*
|
|
1707
1769
|
* @public
|
|
1708
|
-
* @experimental
|
|
1770
|
+
* @ui5-experimental-since 1.81
|
|
1709
1771
|
* @param {string} sMessage The message.
|
|
1710
1772
|
* @param {sap.ui.integration.CardMessageType} sType Type of the message.
|
|
1711
1773
|
* @param {boolean} bAutoClose Close the message automatically. Default is <code>false</code> for most message types.
|
|
@@ -1732,7 +1794,7 @@ sap.ui.define([
|
|
|
1732
1794
|
* Hides the message previously shown by showMessage.
|
|
1733
1795
|
*
|
|
1734
1796
|
* @public
|
|
1735
|
-
* @experimental
|
|
1797
|
+
* @ui5-experimental-since 1.117
|
|
1736
1798
|
*/
|
|
1737
1799
|
Card.prototype.hideMessage = function () {
|
|
1738
1800
|
var oContent = this.getCardContent();
|
|
@@ -1759,7 +1821,7 @@ sap.ui.define([
|
|
|
1759
1821
|
* @property {Response} [httpResponse] Response object in case of a network error
|
|
1760
1822
|
* @property {array} [additionalContent] A list of buttons placed below the description as additional content. Experimental since 1.121
|
|
1761
1823
|
* @public
|
|
1762
|
-
* @experimental
|
|
1824
|
+
* @ui5-experimental-since 1.114
|
|
1763
1825
|
*/
|
|
1764
1826
|
|
|
1765
1827
|
/**
|
|
@@ -1767,7 +1829,7 @@ sap.ui.define([
|
|
|
1767
1829
|
* Should be used after the <code>manifestApplied</code> event or after the <code>cardReady</code> lifecycle hook in Component cards and Extensions.
|
|
1768
1830
|
*
|
|
1769
1831
|
* @public
|
|
1770
|
-
* @experimental
|
|
1832
|
+
* @ui5-experimental-since 1.114
|
|
1771
1833
|
* @param {sap.ui.integration.BlockingMessageSettings} oSettings Blocking message settings
|
|
1772
1834
|
*/
|
|
1773
1835
|
Card.prototype.showBlockingMessage = function (oSettings) {
|
|
@@ -1783,7 +1845,7 @@ sap.ui.define([
|
|
|
1783
1845
|
* Get information about the blocking message in the card.
|
|
1784
1846
|
*
|
|
1785
1847
|
* @public
|
|
1786
|
-
* @experimental
|
|
1848
|
+
* @ui5-experimental-since 1.114
|
|
1787
1849
|
* @returns {sap.ui.integration.BlockingMessageSettings|null} Information about the message or <code>null</code>, if such isn't shown.
|
|
1788
1850
|
*/
|
|
1789
1851
|
Card.prototype.getBlockingMessage = function () {
|
|
@@ -1809,7 +1871,7 @@ sap.ui.define([
|
|
|
1809
1871
|
* Hide the blocking message that is shown in the card by <code>showBlockingMessage</code> call.
|
|
1810
1872
|
*
|
|
1811
1873
|
* @public
|
|
1812
|
-
* @experimental
|
|
1874
|
+
* @ui5-experimental-since 1.114
|
|
1813
1875
|
*/
|
|
1814
1876
|
Card.prototype.hideBlockingMessage = function () {
|
|
1815
1877
|
var oContent = this.getCardContent();
|
|
@@ -1857,37 +1919,42 @@ sap.ui.define([
|
|
|
1857
1919
|
};
|
|
1858
1920
|
|
|
1859
1921
|
/**
|
|
1860
|
-
* Resolves the given URL
|
|
1922
|
+
* Resolves the given URL relative to the manifest base path.
|
|
1861
1923
|
* Absolute paths are not changed.
|
|
1862
1924
|
*
|
|
1863
1925
|
* @example
|
|
1864
|
-
* oCard.
|
|
1865
|
-
* oCard.
|
|
1866
|
-
* oCard.
|
|
1867
|
-
* oCard.
|
|
1926
|
+
* oCard.resolveUrl("images/Avatar.png") === "{cardBaseUrl}/images/Avatar.png"
|
|
1927
|
+
* oCard.resolveUrl("/images/Avatar.png") === "/images/Avatar.png" (remains relative to host root)
|
|
1928
|
+
* oCard.resolveUrl("http://www.someurl.com/Avatar.png") === "http://www.someurl.com/Avatar.png"
|
|
1929
|
+
* oCard.resolveUrl("https://www.someurl.com/Avatar.png") === "https://www.someurl.com/Avatar.png"
|
|
1868
1930
|
*
|
|
1869
1931
|
* @ui5-restricted
|
|
1870
1932
|
* @param {string} sUrl The URL to resolve.
|
|
1871
1933
|
* @returns {string} The resolved URL.
|
|
1872
1934
|
*/
|
|
1873
|
-
Card.prototype.
|
|
1935
|
+
Card.prototype.resolveUrl = function (sUrl) {
|
|
1874
1936
|
if (!sUrl) {
|
|
1875
1937
|
sUrl = "";
|
|
1876
1938
|
}
|
|
1877
1939
|
|
|
1878
|
-
|
|
1879
|
-
if (sAppId === null) {
|
|
1940
|
+
if (!this._oCardManifest) {
|
|
1880
1941
|
Log.error("The manifest is not ready so the URL can not be resolved. Consider using the 'manifestReady' event.", "sap.ui.integration.widgets.Card");
|
|
1881
1942
|
return null;
|
|
1882
1943
|
}
|
|
1883
1944
|
|
|
1884
|
-
|
|
1885
|
-
|
|
1945
|
+
const sAppId = this._oCardManifest.get("/sap.app/id");
|
|
1946
|
+
|
|
1947
|
+
if (sUrl.startsWith("http://") ||
|
|
1886
1948
|
sUrl.startsWith("https://") ||
|
|
1887
1949
|
sUrl.startsWith("//")) {
|
|
1888
1950
|
return sUrl;
|
|
1889
1951
|
}
|
|
1890
1952
|
|
|
1953
|
+
if (!sAppId) {
|
|
1954
|
+
Log.error("The manifest property 'sap.app/id' is missing or empty. The URL '" + sUrl + "' cannot be resolved.", "sap.ui.integration.widgets.Card");
|
|
1955
|
+
return sUrl;
|
|
1956
|
+
}
|
|
1957
|
+
|
|
1891
1958
|
if (sUrl.startsWith("/")) {
|
|
1892
1959
|
// urls which are absolute to the server root are not changed
|
|
1893
1960
|
return sUrl;
|
|
@@ -1901,6 +1968,26 @@ sap.ui.define([
|
|
|
1901
1968
|
return sap.ui.require.toUrl(sAppName) + "/" + sSanitizedUrl;
|
|
1902
1969
|
};
|
|
1903
1970
|
|
|
1971
|
+
/**
|
|
1972
|
+
* Resolves the given URL relative to the manifest base path.
|
|
1973
|
+
* Absolute paths are not changed.
|
|
1974
|
+
*
|
|
1975
|
+
* @example
|
|
1976
|
+
* oCard.getRuntimeUrl("images/Avatar.png") === "{cardBaseUrl}/images/Avatar.png"
|
|
1977
|
+
* oCard.getRuntimeUrl("/images/Avatar.png") === "/images/Avatar.png" (remains relative to host root)
|
|
1978
|
+
* oCard.getRuntimeUrl("http://www.someurl.com/Avatar.png") === "http://www.someurl.com/Avatar.png"
|
|
1979
|
+
* oCard.getRuntimeUrl("https://www.someurl.com/Avatar.png") === "https://www.someurl.com/Avatar.png"
|
|
1980
|
+
*
|
|
1981
|
+
* @deprecated As of version 1.146, replaced by {@link sap.ui.integration.widgets.Card#resolveUrl}
|
|
1982
|
+
* @ui5-restricted
|
|
1983
|
+
* @param {string} sUrl The URL to resolve.
|
|
1984
|
+
* @returns {string} The resolved URL.
|
|
1985
|
+
*/
|
|
1986
|
+
Card.prototype.getRuntimeUrl = function (sUrl) {
|
|
1987
|
+
Log.warning("'getRuntimeUrl' is deprecated. Use 'resolveUrl' instead.", "sap.ui.integration.widgets.Card");
|
|
1988
|
+
return this.resolveUrl(sUrl);
|
|
1989
|
+
};
|
|
1990
|
+
|
|
1904
1991
|
/**
|
|
1905
1992
|
* Returns the matching value from the query.
|
|
1906
1993
|
*
|
|
@@ -1982,6 +2069,7 @@ sap.ui.define([
|
|
|
1982
2069
|
*/
|
|
1983
2070
|
Card.prototype._applyManifestSettings = function () {
|
|
1984
2071
|
this._setParametersModelData();
|
|
2072
|
+
this._setCustomSettingsModelData();
|
|
1985
2073
|
|
|
1986
2074
|
this._checkMockPreviewMode();
|
|
1987
2075
|
|
|
@@ -2024,6 +2112,24 @@ sap.ui.define([
|
|
|
2024
2112
|
this.getModel("parameters").setData(merge(oPredefinedParameters, oCustomParameters));
|
|
2025
2113
|
};
|
|
2026
2114
|
|
|
2115
|
+
/**
|
|
2116
|
+
* Sets the data for the customSettings model.
|
|
2117
|
+
* Merges <code>customSettings</code> property with card manifest overrides.
|
|
2118
|
+
* Card manifest values take precedence for individual properties.
|
|
2119
|
+
*
|
|
2120
|
+
* The merge is shallow - card manifest can override individual properties
|
|
2121
|
+
* while preserving non-overridden properties from <code>customSettings</code> property.
|
|
2122
|
+
*
|
|
2123
|
+
* @private
|
|
2124
|
+
*/
|
|
2125
|
+
Card.prototype._setCustomSettingsModelData = function () {
|
|
2126
|
+
const oCustomSettings = this.getProperty("customSettings");
|
|
2127
|
+
const oManifestOverrides = this._oCardManifest.get(MANIFEST_PATHS.CUSTOM_SETTINGS) || {};
|
|
2128
|
+
const oMergedSettings = Object.assign({}, oCustomSettings, oManifestOverrides);
|
|
2129
|
+
|
|
2130
|
+
this.getModel("customSettings").setData(oMergedSettings);
|
|
2131
|
+
};
|
|
2132
|
+
|
|
2027
2133
|
Card.prototype._applyDataManifestSettings = function () {
|
|
2028
2134
|
var oDataSettings = this._oCardManifest.get(MANIFEST_PATHS.DATA),
|
|
2029
2135
|
oModel;
|
|
@@ -2328,7 +2434,7 @@ sap.ui.define([
|
|
|
2328
2434
|
sAncestorUrl = new URL(oAncestor.getManifest(), window.location).href;
|
|
2329
2435
|
}
|
|
2330
2436
|
|
|
2331
|
-
if (new URL(this.
|
|
2437
|
+
if (new URL(this.resolveUrl(manifest), window.location).href === sAncestorUrl) {
|
|
2332
2438
|
sMatchingChildManifestUrl = manifest;
|
|
2333
2439
|
break;
|
|
2334
2440
|
}
|
|
@@ -2352,7 +2458,7 @@ sap.ui.define([
|
|
|
2352
2458
|
* Gets the instance of the <code>host</code> association.
|
|
2353
2459
|
*
|
|
2354
2460
|
* @public
|
|
2355
|
-
* @experimental
|
|
2461
|
+
* @ui5-experimental-since 1.77
|
|
2356
2462
|
* @returns {sap.ui.integration.Host} The host object associated with this card.
|
|
2357
2463
|
*/
|
|
2358
2464
|
Card.prototype.getHostInstance = function () {
|
|
@@ -2703,11 +2809,10 @@ sap.ui.define([
|
|
|
2703
2809
|
/**
|
|
2704
2810
|
* Sets a new value for the <code>dataMode</code> property.
|
|
2705
2811
|
*
|
|
2706
|
-
* @experimental
|
|
2812
|
+
* @ui5-experimental-since 1.65
|
|
2707
2813
|
* @param {sap.ui.integration.CardDataMode} sMode The mode to set to the Card.
|
|
2708
2814
|
* @returns {this} Pointer to the control instance to allow method chaining.
|
|
2709
2815
|
* @public
|
|
2710
|
-
* @since 1.65
|
|
2711
2816
|
*/
|
|
2712
2817
|
Card.prototype.setDataMode = function (sMode) {
|
|
2713
2818
|
|
|
@@ -2744,7 +2849,7 @@ sap.ui.define([
|
|
|
2744
2849
|
* }
|
|
2745
2850
|
*
|
|
2746
2851
|
* @public
|
|
2747
|
-
* @experimental
|
|
2852
|
+
* @ui5-experimental-since 1.73
|
|
2748
2853
|
* @returns {Promise<object>} Promise resolves after the designtime configuration is loaded.
|
|
2749
2854
|
*/
|
|
2750
2855
|
Card.prototype.loadDesigntime = function () {
|
|
@@ -2933,7 +3038,7 @@ sap.ui.define([
|
|
|
2933
3038
|
* @property {object} response The response object
|
|
2934
3039
|
* @property {string} responseText The response text
|
|
2935
3040
|
* @public
|
|
2936
|
-
* @experimental
|
|
3041
|
+
* @ui5-experimental-since 1.139
|
|
2937
3042
|
*/
|
|
2938
3043
|
|
|
2939
3044
|
/**
|
|
@@ -3034,7 +3139,7 @@ sap.ui.define([
|
|
|
3034
3139
|
* </pre>
|
|
3035
3140
|
*
|
|
3036
3141
|
* @public
|
|
3037
|
-
* @experimental
|
|
3142
|
+
* @ui5-experimental-since 1.84
|
|
3038
3143
|
* @param {object} oAction The settings of the action.
|
|
3039
3144
|
* @param {sap.ui.integration.CardActionType} oAction.type The type of the action.
|
|
3040
3145
|
* @param {object} [oAction.parameters] Additional parameters which will be used by the action handler to perform the action.
|
|
@@ -3054,7 +3159,6 @@ sap.ui.define([
|
|
|
3054
3159
|
* <b>Note:</b> Should be used after the <code>stateChanged</code> event is fired.
|
|
3055
3160
|
*
|
|
3056
3161
|
* @private
|
|
3057
|
-
* @experimental since 1.113
|
|
3058
3162
|
* @deprecated since 1.114
|
|
3059
3163
|
* @returns {boolean} Whether 'No Data' is displayed in the card
|
|
3060
3164
|
*/
|
|
@@ -3067,7 +3171,6 @@ sap.ui.define([
|
|
|
3067
3171
|
* Should be used only by component cards, no earlier than the <code>onCardReady</code> lifecycle hook.
|
|
3068
3172
|
*
|
|
3069
3173
|
* @private
|
|
3070
|
-
* @experimental since 1.113
|
|
3071
3174
|
* @deprecated since 1.114
|
|
3072
3175
|
* @param {object} oSettings 'No Data' settings
|
|
3073
3176
|
* @param {sap.m.IllustratedMessageType} oSettings.type Illustration type
|
|
@@ -3515,13 +3618,13 @@ sap.ui.define([
|
|
|
3515
3618
|
}
|
|
3516
3619
|
|
|
3517
3620
|
if (typeof vManifest === "string") {
|
|
3518
|
-
oChildCard.setManifest(this.
|
|
3621
|
+
oChildCard.setManifest(this.resolveUrl(vManifest));
|
|
3519
3622
|
if (sBaseUrl) {
|
|
3520
3623
|
oChildCard.setBaseUrl(sBaseUrl);
|
|
3521
3624
|
}
|
|
3522
3625
|
} else {
|
|
3523
3626
|
oChildCard.setManifest(vManifest);
|
|
3524
|
-
oChildCard.setBaseUrl(sBaseUrl || this.
|
|
3627
|
+
oChildCard.setBaseUrl(sBaseUrl || this.resolveUrl());
|
|
3525
3628
|
}
|
|
3526
3629
|
|
|
3527
3630
|
return oChildCard;
|