@openui5/sap.ui.integration 1.100.0 → 1.102.1
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/.eslintrc.json +18 -0
- package/THIRDPARTY.txt +5 -5
- package/package.json +3 -3
- 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 +4 -2
- package/src/sap/ui/integration/cards/AnalyticsCloudContent.js +1 -1
- package/src/sap/ui/integration/cards/BaseContent.js +4 -3
- 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 +4 -2
- package/src/sap/ui/integration/cards/ListContent.js +1 -1
- package/src/sap/ui/integration/cards/NumericHeader.js +5 -2
- package/src/sap/ui/integration/cards/ObjectContent.js +68 -10
- 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 +1 -1
- package/src/sap/ui/integration/cards/actions/CardActions.js +1 -1
- package/src/sap/ui/integration/cards/actions/HideCardAction.js +12 -3
- package/src/sap/ui/integration/cards/actions/ShowCardAction.js +33 -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/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/controls/ActionsStrip.js +57 -24
- package/src/sap/ui/integration/controls/ActionsToolbar.js +1 -1
- package/src/sap/ui/integration/controls/LinkWithIcon.js +77 -0
- package/src/sap/ui/integration/controls/LinkWithIconRenderer.js +38 -0
- 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/Paginator.js +218 -18
- package/src/sap/ui/integration/controls/PaginatorRenderer.js +2 -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/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/CardEditor.js +98 -10
- package/src/sap/ui/integration/designtime/editor/CardPreview.js +1 -1
- package/src/sap/ui/integration/editor/Editor.js +187 -73
- 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/Merger.js +0 -1
- package/src/sap/ui/integration/editor/Settings.js +1 -1
- package/src/sap/ui/integration/editor/css/Editor.css +11 -5
- package/src/sap/ui/integration/editor/fields/BaseField.js +50 -16
- 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/IntegerField.js +1 -1
- package/src/sap/ui/integration/editor/fields/NumberField.js +1 -1
- package/src/sap/ui/integration/editor/fields/ObjectField.js +1155 -458
- package/src/sap/ui/integration/editor/fields/ObjectListField.js +187 -198
- package/src/sap/ui/integration/editor/fields/StringField.js +39 -16
- package/src/sap/ui/integration/editor/fields/StringListField.js +38 -52
- 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/ShapeSelect.js +1 -1
- package/src/sap/ui/integration/library.js +15 -18
- package/src/sap/ui/integration/messagebundle.properties +52 -25
- package/src/sap/ui/integration/messagebundle_ar.properties +32 -14
- package/src/sap/ui/integration/messagebundle_bg.properties +32 -14
- package/src/sap/ui/integration/messagebundle_ca.properties +31 -13
- package/src/sap/ui/integration/messagebundle_cs.properties +31 -13
- package/src/sap/ui/integration/messagebundle_cy.properties +32 -14
- package/src/sap/ui/integration/messagebundle_da.properties +31 -13
- package/src/sap/ui/integration/messagebundle_de.properties +31 -13
- package/src/sap/ui/integration/messagebundle_el.properties +32 -14
- package/src/sap/ui/integration/messagebundle_en.properties +32 -14
- package/src/sap/ui/integration/messagebundle_en_GB.properties +31 -13
- package/src/sap/ui/integration/messagebundle_en_US_sappsd.properties +31 -13
- package/src/sap/ui/integration/messagebundle_en_US_saprigi.properties +31 -13
- package/src/sap/ui/integration/messagebundle_en_US_saptrc.properties +31 -13
- package/src/sap/ui/integration/messagebundle_es.properties +32 -14
- package/src/sap/ui/integration/messagebundle_es_MX.properties +31 -13
- package/src/sap/ui/integration/messagebundle_et.properties +32 -14
- package/src/sap/ui/integration/messagebundle_fi.properties +33 -15
- package/src/sap/ui/integration/messagebundle_fr.properties +31 -13
- package/src/sap/ui/integration/messagebundle_fr_CA.properties +31 -13
- package/src/sap/ui/integration/messagebundle_hi.properties +31 -13
- package/src/sap/ui/integration/messagebundle_hr.properties +31 -13
- package/src/sap/ui/integration/messagebundle_hu.properties +31 -13
- package/src/sap/ui/integration/messagebundle_id.properties +32 -14
- package/src/sap/ui/integration/messagebundle_it.properties +32 -14
- package/src/sap/ui/integration/messagebundle_iw.properties +31 -13
- package/src/sap/ui/integration/messagebundle_ja.properties +31 -13
- package/src/sap/ui/integration/messagebundle_kk.properties +31 -13
- package/src/sap/ui/integration/messagebundle_ko.properties +32 -14
- package/src/sap/ui/integration/messagebundle_lt.properties +31 -13
- package/src/sap/ui/integration/messagebundle_lv.properties +32 -14
- package/src/sap/ui/integration/messagebundle_ms.properties +32 -14
- package/src/sap/ui/integration/messagebundle_nl.properties +31 -13
- package/src/sap/ui/integration/messagebundle_no.properties +31 -13
- package/src/sap/ui/integration/messagebundle_pl.properties +31 -13
- package/src/sap/ui/integration/messagebundle_pt.properties +31 -13
- package/src/sap/ui/integration/messagebundle_pt_PT.properties +32 -14
- package/src/sap/ui/integration/messagebundle_ro.properties +31 -13
- package/src/sap/ui/integration/messagebundle_ru.properties +31 -13
- package/src/sap/ui/integration/messagebundle_sh.properties +32 -14
- package/src/sap/ui/integration/messagebundle_sk.properties +32 -14
- package/src/sap/ui/integration/messagebundle_sl.properties +32 -14
- package/src/sap/ui/integration/messagebundle_sv.properties +32 -14
- package/src/sap/ui/integration/messagebundle_th.properties +32 -14
- package/src/sap/ui/integration/messagebundle_tr.properties +32 -14
- package/src/sap/ui/integration/messagebundle_uk.properties +32 -14
- package/src/sap/ui/integration/messagebundle_vi.properties +32 -14
- package/src/sap/ui/integration/messagebundle_zh_CN.properties +32 -14
- package/src/sap/ui/integration/messagebundle_zh_TW.properties +31 -13
- 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/model/PagingModelListBinding.js +1 -1
- package/src/sap/ui/integration/schemas/sap-card.json +73 -3
- package/src/sap/ui/integration/themes/base/CalendarContent.less +2 -2
- package/src/sap/ui/integration/themes/base/Card.less +24 -0
- package/src/sap/ui/integration/themes/base/LinkWithIcon.less +11 -0
- package/src/sap/ui/integration/themes/base/ListContentItem.less +11 -0
- package/src/sap/ui/integration/themes/base/Paginator.less +86 -0
- package/src/sap/ui/integration/themes/base/library.source.less +1 -0
- 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/CardMerger.js +82 -8
- package/src/sap/ui/integration/util/CardObserver.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/Destinations.js +1 -1
- package/src/sap/ui/integration/util/ExtensionDataProvider.js +1 -1
- package/src/sap/ui/integration/util/HeaderFactory.js +35 -4
- package/src/sap/ui/integration/util/JSONBindingHelper.js +1 -1
- package/src/sap/ui/integration/util/LoadingProvider.js +2 -2
- package/src/sap/ui/integration/util/Manifest.js +2 -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 +14 -2
- package/src/sap/ui/integration/util/Utils.js +16 -1
- package/src/sap/ui/integration/widgets/Card.js +59 -15
package/.eslintrc.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"overrides": [
|
|
3
|
+
/*
|
|
4
|
+
* Productive code, sample and unit test code of sap.ui.integration has been cleaned up.
|
|
5
|
+
* No more references to the global jQuery allowed
|
|
6
|
+
*/
|
|
7
|
+
{
|
|
8
|
+
"files": [
|
|
9
|
+
"src/**/*.js",
|
|
10
|
+
"test/sap/ui/integration/demokit/**/*.js",
|
|
11
|
+
"test/sap/ui/integration/qunit/**/*.js"
|
|
12
|
+
],
|
|
13
|
+
"globals": {
|
|
14
|
+
"jQuery": "off"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
}
|
package/THIRDPARTY.txt
CHANGED
|
@@ -400,7 +400,7 @@ Contained in: src/sap.ui.mdc/test/sap/ui/mdc/sample/field/filterfieldwithoperato
|
|
|
400
400
|
|
|
401
401
|
Library: sap.ui.webc.common:
|
|
402
402
|
|
|
403
|
-
Component: UI5 Web Components, version: 1.
|
|
403
|
+
Component: UI5 Web Components, version: 1.1.2
|
|
404
404
|
Copyright: SAP
|
|
405
405
|
License: Apache-2.0
|
|
406
406
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
@@ -411,7 +411,7 @@ Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/base/*.*
|
|
|
411
411
|
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-tnt/*.*
|
|
412
412
|
src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/icons-business-suite/*.*
|
|
413
413
|
|
|
414
|
-
Component: lit-html, version:
|
|
414
|
+
Component: lit-html, version: 2.0.1
|
|
415
415
|
Copyright: Google LLC
|
|
416
416
|
License: BSD-3-Clause
|
|
417
417
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
|
|
@@ -420,7 +420,7 @@ Contained in: src/sap.ui.webc.common/src/sap/ui/webc/common/thirdparty/lit-html/
|
|
|
420
420
|
|
|
421
421
|
Library: sap.ui.webc.fiori:
|
|
422
422
|
|
|
423
|
-
Component: UI5 Web Components, version: 1.
|
|
423
|
+
Component: UI5 Web Components, version: 1.1.2
|
|
424
424
|
Copyright: SAP
|
|
425
425
|
License: Apache-2.0
|
|
426
426
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
@@ -429,7 +429,7 @@ Contained in: src/sap.ui.webc.fiori/src/sap/ui/webc/fiori/thirdparty/*.*
|
|
|
429
429
|
|
|
430
430
|
Library: sap.ui.webc.main:
|
|
431
431
|
|
|
432
|
-
Component: UI5 Web Components, version: 1.
|
|
432
|
+
Component: UI5 Web Components, version: 1.1.2
|
|
433
433
|
Copyright: SAP
|
|
434
434
|
License: Apache-2.0
|
|
435
435
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
@@ -450,7 +450,7 @@ License: Apache-2.0
|
|
|
450
450
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
451
451
|
Contained in: lib/jsdoc/ui5/plugin.js
|
|
452
452
|
|
|
453
|
-
Component: SAP Theming Base Content, version: 11.1.
|
|
453
|
+
Component: SAP Theming Base Content, version: 11.1.39
|
|
454
454
|
Copyright: SAP SE or an SAP affiliate company and Theming Base Content contributors
|
|
455
455
|
License: Apache-2.0
|
|
456
456
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.integration",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.102.1",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.ui.integration",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"url": "https://github.com/SAP/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.ui.core": "1.
|
|
18
|
-
"@openui5/sap.f": "1.
|
|
17
|
+
"@openui5/sap.ui.core": "1.102.1",
|
|
18
|
+
"@openui5/sap.f": "1.102.1"
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.
|
|
9
|
+
<version>1.102.1</version>
|
|
10
10
|
|
|
11
11
|
<documentation>SAPUI5 library with integration-related controls.</documentation>
|
|
12
12
|
|
|
@@ -88,7 +88,7 @@ sap.ui.define([
|
|
|
88
88
|
* @extends sap.ui.integration.cards.BaseContent
|
|
89
89
|
*
|
|
90
90
|
* @author SAP SE
|
|
91
|
-
* @version 1.
|
|
91
|
+
* @version 1.102.1
|
|
92
92
|
*
|
|
93
93
|
* @constructor
|
|
94
94
|
* @private
|
|
@@ -320,7 +320,9 @@ sap.ui.define([
|
|
|
320
320
|
aDimensions = oConfiguration.dimensions.map(function (oDimension, i) {
|
|
321
321
|
return {
|
|
322
322
|
name: oResolvedConfiguration.dimensions[i].name || oResolvedConfiguration.dimensions[i].label, // .label for backwards compatibility
|
|
323
|
-
value: oDimension.value
|
|
323
|
+
value: oDimension.value,
|
|
324
|
+
displayValue: oDimension.displayValue,
|
|
325
|
+
dataType: oDimension.dataType
|
|
324
326
|
};
|
|
325
327
|
});
|
|
326
328
|
}
|
|
@@ -52,7 +52,7 @@ sap.ui.define([
|
|
|
52
52
|
* @extends sap.ui.core.Control
|
|
53
53
|
*
|
|
54
54
|
* @author SAP SE
|
|
55
|
-
* @version 1.
|
|
55
|
+
* @version 1.102.1
|
|
56
56
|
*
|
|
57
57
|
* @constructor
|
|
58
58
|
* @private
|
|
@@ -376,11 +376,12 @@ sap.ui.define([
|
|
|
376
376
|
*/
|
|
377
377
|
BaseContent.prototype.onDataRequestComplete = function () {
|
|
378
378
|
var oCard = this.getCardInstance();
|
|
379
|
+
|
|
380
|
+
this.fireEvent("_dataReady");
|
|
381
|
+
|
|
379
382
|
if (oCard) {
|
|
380
383
|
oCard._fireContentDataChange();
|
|
381
384
|
}
|
|
382
|
-
|
|
383
|
-
this.fireEvent("_dataReady");
|
|
384
385
|
};
|
|
385
386
|
|
|
386
387
|
/**
|
|
@@ -38,7 +38,7 @@ sap.ui.define([
|
|
|
38
38
|
* @extends sap.f.cards.Header
|
|
39
39
|
*
|
|
40
40
|
* @author SAP SE
|
|
41
|
-
* @version 1.
|
|
41
|
+
* @version 1.102.1
|
|
42
42
|
*
|
|
43
43
|
* @constructor
|
|
44
44
|
* @private
|
|
@@ -56,7 +56,9 @@ sap.ui.define([
|
|
|
56
56
|
|
|
57
57
|
var mSettings = {
|
|
58
58
|
title: mConfiguration.title,
|
|
59
|
+
titleMaxLines: mConfiguration.titleMaxLines,
|
|
59
60
|
subtitle: mConfiguration.subTitle,
|
|
61
|
+
subtitleMaxLines: mConfiguration.subTitleMaxLines,
|
|
60
62
|
dataTimestamp: mConfiguration.dataTimestamp
|
|
61
63
|
};
|
|
62
64
|
|
|
@@ -82,7 +84,7 @@ sap.ui.define([
|
|
|
82
84
|
|
|
83
85
|
FHeader.call(this, mSettings);
|
|
84
86
|
|
|
85
|
-
if (oActionsToolbar) {
|
|
87
|
+
if (oActionsToolbar && oActionsToolbar.isA("sap.ui.integration.controls.ActionsToolbar")) {
|
|
86
88
|
oActionsToolbar.attachVisibilityChange(this._handleToolbarVisibilityChange.bind(this));
|
|
87
89
|
}
|
|
88
90
|
},
|
|
@@ -35,7 +35,7 @@ sap.ui.define([
|
|
|
35
35
|
* @extends sap.f.cards.NumericHeader
|
|
36
36
|
*
|
|
37
37
|
* @author SAP SE
|
|
38
|
-
* @version 1.
|
|
38
|
+
* @version 1.102.1
|
|
39
39
|
*
|
|
40
40
|
* @constructor
|
|
41
41
|
* @private
|
|
@@ -53,7 +53,9 @@ sap.ui.define([
|
|
|
53
53
|
|
|
54
54
|
var mSettings = {
|
|
55
55
|
title: mConfiguration.title,
|
|
56
|
+
titleMaxLines: mConfiguration.titleMaxLines,
|
|
56
57
|
subtitle: mConfiguration.subTitle,
|
|
58
|
+
subtitleMaxLines: mConfiguration.subTitleMaxLines,
|
|
57
59
|
dataTimestamp: mConfiguration.dataTimestamp
|
|
58
60
|
};
|
|
59
61
|
|
|
@@ -64,6 +66,7 @@ sap.ui.define([
|
|
|
64
66
|
extend(mSettings, {
|
|
65
67
|
unitOfMeasurement: mConfiguration.unitOfMeasurement,
|
|
66
68
|
details: mConfiguration.details,
|
|
69
|
+
detailsMaxLines: mConfiguration.detailsMaxLines,
|
|
67
70
|
sideIndicatorsAlignment: mConfiguration.sideIndicatorsAlignment
|
|
68
71
|
});
|
|
69
72
|
|
|
@@ -84,7 +87,7 @@ sap.ui.define([
|
|
|
84
87
|
|
|
85
88
|
FNumericHeader.call(this, mSettings);
|
|
86
89
|
|
|
87
|
-
if (oActionsToolbar) {
|
|
90
|
+
if (oActionsToolbar && oActionsToolbar.isA("sap.ui.integration.controls.ActionsToolbar")) {
|
|
88
91
|
oActionsToolbar.attachVisibilityChange(this._handleToolbarVisibilityChange.bind(this));
|
|
89
92
|
}
|
|
90
93
|
},
|
|
@@ -28,7 +28,9 @@ sap.ui.define([
|
|
|
28
28
|
"sap/f/AvatarGroupItem",
|
|
29
29
|
"sap/f/cards/NumericIndicators",
|
|
30
30
|
"sap/f/cards/NumericSideIndicator",
|
|
31
|
-
"sap/f/library"
|
|
31
|
+
"sap/f/library",
|
|
32
|
+
"sap/m/OverflowToolbar",
|
|
33
|
+
"sap/m/OverflowToolbarButton"
|
|
32
34
|
], function (
|
|
33
35
|
BaseContent,
|
|
34
36
|
ObjectContentRenderer,
|
|
@@ -54,7 +56,9 @@ sap.ui.define([
|
|
|
54
56
|
AvatarGroupItem,
|
|
55
57
|
NumericIndicators,
|
|
56
58
|
NumericSideIndicator,
|
|
57
|
-
fLibrary
|
|
59
|
+
fLibrary,
|
|
60
|
+
OverflowToolbar,
|
|
61
|
+
OverflowToolbarButton
|
|
58
62
|
) {
|
|
59
63
|
"use strict";
|
|
60
64
|
|
|
@@ -73,6 +77,8 @@ sap.ui.define([
|
|
|
73
77
|
|
|
74
78
|
var AvatarGroupType = fLibrary.AvatarGroupType;
|
|
75
79
|
|
|
80
|
+
var ToolbarStyle = mLibrary.ToolbarStyle;
|
|
81
|
+
|
|
76
82
|
/**
|
|
77
83
|
* Constructor for a new <code>ObjectContent</code>.
|
|
78
84
|
*
|
|
@@ -84,7 +90,7 @@ sap.ui.define([
|
|
|
84
90
|
*
|
|
85
91
|
* @extends sap.ui.integration.cards.BaseContent
|
|
86
92
|
* @author SAP SE
|
|
87
|
-
* @version 1.
|
|
93
|
+
* @version 1.102.1
|
|
88
94
|
*
|
|
89
95
|
* @constructor
|
|
90
96
|
* @since 1.64
|
|
@@ -278,13 +284,16 @@ sap.ui.define([
|
|
|
278
284
|
|
|
279
285
|
switch (oItem.type) {
|
|
280
286
|
case "NumericData":
|
|
281
|
-
oControl = this._createNumericDataItem(oItem);
|
|
287
|
+
oControl = this._createNumericDataItem(oItem, vVisible);
|
|
282
288
|
break;
|
|
283
289
|
case "Status":
|
|
284
290
|
oControl = this._createStatusItem(oItem, vVisible);
|
|
285
291
|
break;
|
|
286
292
|
case "IconGroup":
|
|
287
|
-
oControl = this._createIconGroupItem(oItem);
|
|
293
|
+
oControl = this._createIconGroupItem(oItem, vVisible);
|
|
294
|
+
break;
|
|
295
|
+
case "ButtonGroup":
|
|
296
|
+
oControl = this._createButtonGroupItem(oItem, vVisible);
|
|
288
297
|
break;
|
|
289
298
|
|
|
290
299
|
// deprecated types
|
|
@@ -340,8 +349,10 @@ sap.ui.define([
|
|
|
340
349
|
return oControl;
|
|
341
350
|
};
|
|
342
351
|
|
|
343
|
-
ObjectContent.prototype._createNumericDataItem = function (oItem) {
|
|
344
|
-
var oVbox = new VBox(
|
|
352
|
+
ObjectContent.prototype._createNumericDataItem = function (oItem, vVisible) {
|
|
353
|
+
var oVbox = new VBox({
|
|
354
|
+
visible: BindingHelper.reuse(vVisible)
|
|
355
|
+
});
|
|
345
356
|
var oNumericIndicators = new NumericIndicators({
|
|
346
357
|
number: oItem.mainIndicator.number,
|
|
347
358
|
numberSize: oItem.mainIndicator.size,
|
|
@@ -419,7 +430,52 @@ sap.ui.define([
|
|
|
419
430
|
return oControl;
|
|
420
431
|
};
|
|
421
432
|
|
|
422
|
-
ObjectContent.prototype.
|
|
433
|
+
ObjectContent.prototype._createButtonGroupItem = function (oItem, vVisible) {
|
|
434
|
+
var oTemplateConfig = oItem.template;
|
|
435
|
+
if (!oTemplateConfig) {
|
|
436
|
+
return null;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
var oButtonGroup = new OverflowToolbar({
|
|
440
|
+
visible: BindingHelper.reuse(vVisible),
|
|
441
|
+
style: ToolbarStyle.Clear
|
|
442
|
+
});
|
|
443
|
+
|
|
444
|
+
oButtonGroup.addStyleClass("sapUiIntCardObjectButtonGroup");
|
|
445
|
+
|
|
446
|
+
var oItemTemplate = new OverflowToolbarButton({
|
|
447
|
+
icon: BindingHelper.formattedProperty(oTemplateConfig.icon, function (sValue) {
|
|
448
|
+
return this._oIconFormatter.formatSrc(sValue);
|
|
449
|
+
}.bind(this)),
|
|
450
|
+
text: oTemplateConfig.text || oTemplateConfig.tooltip,
|
|
451
|
+
tooltip: oTemplateConfig.tooltip || oTemplateConfig.text,
|
|
452
|
+
type: ButtonType.Transparent,
|
|
453
|
+
visible: oTemplateConfig.visible
|
|
454
|
+
});
|
|
455
|
+
|
|
456
|
+
if (oTemplateConfig.actions) {
|
|
457
|
+
oItemTemplate.attachPress(function (oEvent) {
|
|
458
|
+
this._onButtonGroupPress(oEvent, oTemplateConfig.actions);
|
|
459
|
+
}.bind(this));
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
oButtonGroup.bindAggregation("content", {
|
|
463
|
+
path: oItem.path || "/",
|
|
464
|
+
template: oItemTemplate,
|
|
465
|
+
templateShareable: false // destroy the template when the AvatarGroup is destroyed
|
|
466
|
+
});
|
|
467
|
+
|
|
468
|
+
return oButtonGroup;
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
ObjectContent.prototype._onButtonGroupPress = function (oEvent, oActionTemplate) {
|
|
472
|
+
var oItem = oEvent.getSource();
|
|
473
|
+
var aResolvedActions = BindingResolver.resolveValue(oActionTemplate, oItem, oItem.getBindingContext().getPath());
|
|
474
|
+
var oAction = aResolvedActions[0];
|
|
475
|
+
this.getActions().fireAction(this, oAction.type, oAction.parameters);
|
|
476
|
+
};
|
|
477
|
+
|
|
478
|
+
ObjectContent.prototype._createIconGroupItem = function (oItem, vVisible) {
|
|
423
479
|
var oTemplateConfig = oItem.template;
|
|
424
480
|
if (!oTemplateConfig) {
|
|
425
481
|
return null;
|
|
@@ -427,7 +483,8 @@ sap.ui.define([
|
|
|
427
483
|
|
|
428
484
|
var oIconGroup = new AvatarGroup({
|
|
429
485
|
avatarDisplaySize: oItem.size || AvatarSize.XS,
|
|
430
|
-
groupType: AvatarGroupType.Individual
|
|
486
|
+
groupType: AvatarGroupType.Individual,
|
|
487
|
+
visible: BindingHelper.reuse(vVisible)
|
|
431
488
|
});
|
|
432
489
|
|
|
433
490
|
// Disable "show more" button
|
|
@@ -447,7 +504,8 @@ sap.ui.define([
|
|
|
447
504
|
src: BindingHelper.formattedProperty(oTemplateConfig.icon.src, function (sValue) {
|
|
448
505
|
return this._oIconFormatter.formatSrc(sValue);
|
|
449
506
|
}.bind(this)),
|
|
450
|
-
initials: oTemplateConfig.icon.text
|
|
507
|
+
initials: oTemplateConfig.icon.text,
|
|
508
|
+
tooltip: oTemplateConfig.icon.alt
|
|
451
509
|
});
|
|
452
510
|
|
|
453
511
|
oIconGroup.bindAggregation("items", {
|
|
@@ -23,13 +23,22 @@ sap.ui.define([
|
|
|
23
23
|
*/
|
|
24
24
|
HideCardAction.prototype.execute = function () {
|
|
25
25
|
var oCard = this.getCardInstance(),
|
|
26
|
-
oDialog = oCard.getParent()
|
|
26
|
+
oDialog = oCard.getParent(),
|
|
27
|
+
oHost = oCard.getHostInstance();
|
|
28
|
+
|
|
29
|
+
if (oHost && oHost.onHideCard) {
|
|
30
|
+
oHost.onHideCard(oCard);
|
|
31
|
+
return; // @todo should we wait for host and then destroy
|
|
32
|
+
}
|
|
27
33
|
|
|
28
34
|
if (oDialog instanceof Dialog) {
|
|
29
35
|
oDialog.close();
|
|
36
|
+
oDialog.attachAfterClose(function () {
|
|
37
|
+
oCard.destroy();
|
|
38
|
+
});
|
|
39
|
+
} else {
|
|
40
|
+
oCard.destroy();
|
|
30
41
|
}
|
|
31
|
-
|
|
32
|
-
oCard.destroy();
|
|
33
42
|
};
|
|
34
43
|
|
|
35
44
|
return HideCardAction;
|
|
@@ -6,7 +6,9 @@
|
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
"./BaseAction",
|
|
8
8
|
"sap/m/Dialog",
|
|
9
|
-
"sap/ui/core/Core"
|
|
9
|
+
"sap/ui/core/Core",
|
|
10
|
+
// jQuery Plugin "firstFocusableDomRef", "lastFocusableDomRef"
|
|
11
|
+
"sap/ui/dom/jquery/Focusable"
|
|
10
12
|
], function (
|
|
11
13
|
BaseAction,
|
|
12
14
|
Dialog,
|
|
@@ -26,6 +28,7 @@ sap.ui.define([
|
|
|
26
28
|
ShowCardAction.prototype.execute = function () {
|
|
27
29
|
var oParameters = this.getParameters() || {},
|
|
28
30
|
oParentCard = this.getCardInstance(),
|
|
31
|
+
oHost = oParentCard.getHostInstance(),
|
|
29
32
|
oChildCard;
|
|
30
33
|
|
|
31
34
|
if (oParameters._cardId) {
|
|
@@ -34,6 +37,11 @@ sap.ui.define([
|
|
|
34
37
|
oChildCard = oParentCard._createChildCard(oParameters);
|
|
35
38
|
}
|
|
36
39
|
|
|
40
|
+
if (oHost && oHost.onShowCard) {
|
|
41
|
+
oHost.onShowCard(oChildCard, oParameters);
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
|
|
37
45
|
this._openDialog(oChildCard, oParentCard);
|
|
38
46
|
};
|
|
39
47
|
|
|
@@ -57,6 +65,8 @@ sap.ui.define([
|
|
|
57
65
|
}
|
|
58
66
|
});
|
|
59
67
|
|
|
68
|
+
oDialog.addStyleClass("sapUiIntCardDialog");
|
|
69
|
+
|
|
60
70
|
oParentCard.addDependent(oDialog);
|
|
61
71
|
|
|
62
72
|
oChildCard.startManifestProcessing();
|
|
@@ -65,10 +75,32 @@ sap.ui.define([
|
|
|
65
75
|
oDialog.open();
|
|
66
76
|
});
|
|
67
77
|
|
|
78
|
+
oChildCard.attachEvent("_ready", function () {
|
|
79
|
+
setTimeout(function () {
|
|
80
|
+
this._setFocus(oChildCard, oDialog);
|
|
81
|
+
}.bind(this), 0); // wait for loading animation to stop
|
|
82
|
+
}.bind(this));
|
|
83
|
+
|
|
68
84
|
oDialog.attachAfterClose(function () {
|
|
69
85
|
oDialog.destroy();
|
|
70
86
|
});
|
|
71
87
|
};
|
|
72
88
|
|
|
89
|
+
ShowCardAction.prototype._setFocus = function (oCard, oDialog) {
|
|
90
|
+
var oFilters = oCard.getAggregation("_filter"),
|
|
91
|
+
oContent = oCard.getAggregation("_content"),
|
|
92
|
+
oFooter = oCard.getAggregation("_footer"),
|
|
93
|
+
oFirstFocusable;
|
|
94
|
+
|
|
95
|
+
oFirstFocusable = oFilters && oFilters.$().firstFocusableDomRef()
|
|
96
|
+
|| oContent && oContent.$().firstFocusableDomRef()
|
|
97
|
+
|| oFooter && oFooter.$().firstFocusableDomRef();
|
|
98
|
+
|
|
99
|
+
if (oFirstFocusable) {
|
|
100
|
+
oDialog.setInitialFocus(oFirstFocusable.id);
|
|
101
|
+
oFirstFocusable.focus();
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
|
|
73
105
|
return ShowCardAction;
|
|
74
106
|
});
|