@openui5/sap.ui.mdc 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 +19 -0
- package/THIRDPARTY.txt +5 -5
- package/package.json +4 -4
- package/src/sap/ui/mdc/.library +1 -1
- package/src/sap/ui/mdc/ActionToolbar.js +1 -1
- package/src/sap/ui/mdc/Chart.js +28 -46
- package/src/sap/ui/mdc/ChartDelegate.js +10 -0
- package/src/sap/ui/mdc/Control.js +1 -1
- package/src/sap/ui/mdc/Element.js +1 -1
- package/src/sap/ui/mdc/Field.js +9 -2
- package/src/sap/ui/mdc/FilterBar.js +1 -1
- package/src/sap/ui/mdc/FilterField.js +2 -2
- package/src/sap/ui/mdc/Link.js +1 -1
- package/src/sap/ui/mdc/LinkDelegate.js +7 -5
- package/src/sap/ui/mdc/MultiValueField.js +1 -1
- package/src/sap/ui/mdc/Table.js +313 -424
- package/src/sap/ui/mdc/TableDelegate.js +92 -39
- package/src/sap/ui/mdc/ValueHelp.js +147 -634
- package/src/sap/ui/mdc/ValueHelpDelegate.js +159 -7
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +1 -1
- package/src/sap/ui/mdc/chart/ChartSelectionDetails.js +1 -1
- package/src/sap/ui/mdc/chart/ChartToolbar.js +8 -3
- package/src/sap/ui/mdc/chart/ChartTypeButton.js +11 -2
- package/src/sap/ui/mdc/chart/DrillBreadcrumbs.js +2 -0
- package/src/sap/ui/mdc/chart/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/condition/Condition.js +14 -9
- package/src/sap/ui/mdc/condition/ConditionConverter.js +58 -6
- package/src/sap/ui/mdc/condition/ConditionModel.js +1 -1
- package/src/sap/ui/mdc/condition/FilterConverter.js +1 -1
- package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +14 -10
- package/src/sap/ui/mdc/condition/Operator.js +95 -15
- package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +5 -3
- package/src/sap/ui/mdc/condition/RangeOperator.js +1 -1
- package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +13 -1
- package/src/sap/ui/mdc/designtime/filterbar/FilterBar.designtime.js +3 -1
- package/src/sap/ui/mdc/designtime/table/Table.designtime.js +1 -1
- package/src/sap/ui/mdc/enum/PropagationReason.js +43 -0
- package/src/sap/ui/mdc/enum/SelectType.js +3 -0
- package/src/sap/ui/mdc/field/BoolFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/ConditionFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/ConditionType.js +59 -21
- package/src/sap/ui/mdc/field/ConditionsType.js +7 -2
- package/src/sap/ui/mdc/field/CustomFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
- package/src/sap/ui/mdc/field/DefineConditionPanel.js +15 -19
- package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +3 -3
- package/src/sap/ui/mdc/field/FieldBase.js +29 -13
- package/src/sap/ui/mdc/field/FieldBaseDelegate.js +41 -19
- package/src/sap/ui/mdc/field/FieldHelpBase.js +1 -1
- package/src/sap/ui/mdc/field/FieldInfoBase.js +1 -1
- package/src/sap/ui/mdc/field/FieldInput.js +1 -1
- package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
- package/src/sap/ui/mdc/field/FieldMultiInput.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelp.js +6 -4
- package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +3 -1
- package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +7 -1
- package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +3 -3
- package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +28 -29
- package/src/sap/ui/mdc/field/InParameter.js +1 -1
- package/src/sap/ui/mdc/field/ListFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -1
- package/src/sap/ui/mdc/field/MultiValueFieldItem.js +1 -1
- package/src/sap/ui/mdc/field/OutParameter.js +1 -1
- package/src/sap/ui/mdc/field/TokenDisplay.js +1 -1
- package/src/sap/ui/mdc/field/TokenizerDisplay.js +1 -1
- package/src/sap/ui/mdc/field/ValueHelpPanel.js +1 -1
- package/src/sap/ui/mdc/field/content/ContentFactory.js +8 -0
- package/src/sap/ui/mdc/field/content/DateTimeContent.js +43 -2
- package/src/sap/ui/mdc/filterbar/FilterBarBase.js +90 -69
- package/src/sap/ui/mdc/filterbar/IFilterContainer.js +5 -0
- package/src/sap/ui/mdc/filterbar/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/filterbar/aligned/FilterContainer.js +1 -0
- package/src/sap/ui/mdc/filterbar/aligned/FilterItemLayout.js +1 -0
- package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +41 -11
- package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +37 -5
- package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +4 -41
- package/src/sap/ui/mdc/flexibility/ChartTypeFlex.js +54 -0
- package/src/sap/ui/mdc/flexibility/ConditionFlex.js +2 -2
- package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +1 -1
- package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
- package/src/sap/ui/mdc/library.js +21 -25
- package/src/sap/ui/mdc/link/ContactDetails.js +107 -23
- package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +1 -1
- package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +1 -1
- package/src/sap/ui/mdc/link/ContactDetailsItem.js +1 -1
- package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +1 -1
- package/src/sap/ui/mdc/link/ContactDetailsRenderer.js +26 -0
- package/src/sap/ui/mdc/link/Factory.js +1 -1
- package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -1
- package/src/sap/ui/mdc/link/LinkItem.js +1 -1
- package/src/sap/ui/mdc/link/Panel.js +196 -24
- package/src/sap/ui/mdc/link/PanelItem.js +1 -1
- package/src/sap/ui/mdc/link/PanelRenderer.js +26 -0
- package/src/sap/ui/mdc/link/SemanticObjectMapping.js +1 -1
- package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +1 -1
- package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +1 -1
- package/src/sap/ui/mdc/messagebundle.properties +9 -5
- package/src/sap/ui/mdc/messagebundle_ar.properties +9 -7
- package/src/sap/ui/mdc/messagebundle_bg.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_ca.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_cs.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_cy.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_da.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_de.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_el.properties +6 -4
- package/src/sap/ui/mdc/messagebundle_en.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_es.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_et.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_fi.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_fr.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_hi.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_hr.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_hu.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_id.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_it.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_iw.properties +6 -4
- package/src/sap/ui/mdc/messagebundle_ja.properties +8 -6
- package/src/sap/ui/mdc/messagebundle_kk.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_ko.properties +6 -4
- package/src/sap/ui/mdc/messagebundle_lt.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_lv.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_ms.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_nl.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_no.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_pl.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_pt.properties +13 -11
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_ro.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_ru.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_sh.properties +10 -8
- package/src/sap/ui/mdc/messagebundle_sk.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_sl.properties +8 -6
- package/src/sap/ui/mdc/messagebundle_sv.properties +8 -6
- package/src/sap/ui/mdc/messagebundle_th.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_tr.properties +10 -8
- package/src/sap/ui/mdc/messagebundle_uk.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_vi.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +7 -5
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +7 -5
- package/src/sap/ui/mdc/mixin/AdaptationMixin.js +4 -11
- package/src/sap/ui/mdc/mixin/DelegateMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/PromiseMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/PropertyHelperMixin.js +10 -4
- package/src/sap/ui/mdc/odata/TypeUtil.js +1 -0
- package/src/sap/ui/mdc/odata/v4/ChartPropertyHelper.js +1 -1
- package/src/sap/ui/mdc/odata/v4/FieldBaseDelegate.js +8 -6
- package/src/sap/ui/mdc/odata/v4/TableDelegate.js +18 -33
- package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +63 -3
- package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegate.js +76 -3
- package/src/sap/ui/mdc/p13n/Engine.js +154 -54
- package/src/sap/ui/mdc/p13n/FlexUtil.js +26 -14
- package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/p13n/StateUtil.js +30 -51
- package/src/sap/ui/mdc/p13n/UIManager.js +6 -2
- package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +0 -178
- package/src/sap/ui/mdc/p13n/modules/DefaultProviderRegistry.js +15 -12
- package/src/sap/ui/mdc/p13n/modules/xConfigAPI.js +219 -0
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +73 -14
- package/src/sap/ui/mdc/p13n/panels/FilterPanel.js +42 -18
- package/src/sap/ui/mdc/p13n/panels/GroupView.js +1 -0
- package/src/sap/ui/mdc/p13n/subcontroller/AggregateController.js +2 -2
- package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +30 -2
- package/src/sap/ui/mdc/p13n/subcontroller/ChartTypeController.js +46 -0
- package/src/sap/ui/mdc/p13n/subcontroller/ColumnWidthController.js +37 -6
- package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +24 -6
- package/src/sap/ui/mdc/p13n/subcontroller/GroupController.js +9 -2
- package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +2 -2
- package/src/sap/ui/mdc/table/Column.js +271 -132
- package/src/sap/ui/mdc/table/CreationRow.js +3 -1
- package/src/sap/ui/mdc/table/GridTableType.js +0 -5
- package/src/sap/ui/mdc/table/PropertyHelper.js +80 -158
- package/src/sap/ui/mdc/table/ResponsiveTableType.js +64 -44
- package/src/sap/ui/mdc/table/RowActionItem.js +1 -1
- package/src/sap/ui/mdc/table/RowSettings.js +1 -1
- package/src/sap/ui/mdc/table/TableSettings.js +10 -22
- package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +1 -1
- package/src/sap/ui/mdc/table/menu/Item.js +78 -0
- package/src/sap/ui/mdc/table/menu/ItemContainer.js +60 -0
- package/src/sap/ui/mdc/table/menu/QuickActionContainer.js +151 -0
- package/src/sap/ui/mdc/themes/base/Chart.less +9 -0
- package/src/sap/ui/mdc/themes/base/InfoPanel.less +1 -0
- package/src/sap/ui/mdc/ui/Container.js +0 -0
- package/src/sap/ui/mdc/util/DateUtil.js +30 -5
- package/src/sap/ui/mdc/util/FilterUtil.js +1 -1
- package/src/sap/ui/mdc/util/IdentifierUtil.js +3 -3
- package/src/sap/ui/mdc/util/PromiseCache.js +6 -2
- package/src/sap/ui/mdc/util/PropertyHelper.js +5 -1
- package/src/sap/ui/mdc/valuehelp/Dialog.js +291 -66
- package/src/sap/ui/mdc/valuehelp/Popover.js +4 -3
- package/src/sap/ui/mdc/valuehelp/base/Container.js +71 -52
- package/src/sap/ui/mdc/valuehelp/base/Content.js +57 -24
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +1 -1
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +193 -280
- package/src/sap/ui/mdc/valuehelp/base/ListContent.js +6 -6
- package/src/sap/ui/mdc/valuehelp/content/Bool.js +4 -4
- package/src/sap/ui/mdc/valuehelp/content/Conditions.js +4 -4
- package/src/sap/ui/mdc/valuehelp/content/FixedList.js +4 -4
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +65 -59
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +95 -182
- package/test/sap/ui/mdc/testutils/opa/chart/ActionsBase.js +48 -2
- package/test/sap/ui/mdc/testutils/opa/chart/TestObjects.js +4 -5
- package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +4 -5
- package/test/sap/ui/mdc/testutils/opa/filterbar/Actions.js +55 -4
- package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +2 -2
- package/test/sap/ui/mdc/testutils/opa/link/Actions.js +53 -12
- package/test/sap/ui/mdc/testutils/opa/link/TestObjects.js +6 -6
- package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +103 -122
- package/test/sap/ui/mdc/testutils/opa/p13n/waitForSelectWithSelectedTextOnPanel.js +5 -2
- package/test/sap/ui/mdc/testutils/opa/table/Actions.js +70 -0
- package/test/sap/ui/mdc/testutils/opa/table/TestObjects.js +9 -7
- package/test/sap/ui/mdc/testutils/opa/valueHelp/Actions.js +2 -2
- package/src/sap/ui/mdc/link/ContactDetails.control.xml +0 -29
- package/src/sap/ui/mdc/link/Panel.control.xml +0 -36
- package/src/sap/ui/mdc/link/PanelListItem.control.xml +0 -24
- package/src/sap/ui/mdc/link/PanelListItem.js +0 -101
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
|
-
"sap/ui/mdc/filterbar/p13n/GroupContainer", "sap/ui/mdc/filterbar/p13n/FilterColumnLayout", "sap/ui/mdc/filterbar/p13n/FilterGroupLayout","sap/ui/mdc/filterbar/p13n/TableContainer", "sap/ui/mdc/filterbar/FilterBarBase", "sap/ui/mdc/filterbar/FilterBarBaseRenderer", "sap/base/util/merge", "sap/base/util/UriParameters", "sap/ui/core/Core"
|
|
8
|
-
], function( GroupContainer, FilterColumnLayout, FilterGroupLayout, TableContainer, FilterBarBase, FilterBarBaseRenderer, merge, SAPUriParameters, Core) {
|
|
7
|
+
"sap/ui/mdc/filterbar/p13n/GroupContainer", "sap/ui/mdc/filterbar/p13n/FilterColumnLayout", "sap/ui/mdc/filterbar/p13n/FilterGroupLayout","sap/ui/mdc/filterbar/p13n/TableContainer", "sap/ui/mdc/filterbar/FilterBarBase", "sap/ui/mdc/filterbar/FilterBarBaseRenderer", "sap/base/util/merge", "sap/base/util/UriParameters", "sap/ui/core/Core", "sap/ui/mdc/enum/PersistenceMode"
|
|
8
|
+
], function( GroupContainer, FilterColumnLayout, FilterGroupLayout, TableContainer, FilterBarBase, FilterBarBaseRenderer, merge, SAPUriParameters, Core, PersistenceMode) {
|
|
9
9
|
"use strict";
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -18,7 +18,7 @@ sap.ui.define([
|
|
|
18
18
|
*
|
|
19
19
|
* @extends sap.ui.mdc.filterbar.FilterBarBase
|
|
20
20
|
* @author SAP SE
|
|
21
|
-
* @version 1.
|
|
21
|
+
* @version 1.102.1
|
|
22
22
|
* @constructor
|
|
23
23
|
* @private
|
|
24
24
|
* @since 1.80.0
|
|
@@ -52,7 +52,7 @@ sap.ui.define([
|
|
|
52
52
|
FilterBarBase.prototype.init.apply(this,arguments);
|
|
53
53
|
this.addStyleClass("sapUIAdaptationFilterBar");
|
|
54
54
|
this._bPersistValues = true;
|
|
55
|
-
|
|
55
|
+
this.getEngine().defaultProviderRegistry.attach(this, PersistenceMode.Transient);
|
|
56
56
|
this._fnResolveAdaptationControlPromise = null;
|
|
57
57
|
this._oAdaptationControlPromise = new Promise(function(resolve, reject) {
|
|
58
58
|
this._fnResolveAdaptationControlPromise = resolve;
|
|
@@ -65,6 +65,26 @@ sap.ui.define([
|
|
|
65
65
|
}.bind(this));
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
+
// FIXME: currently the FilterBar key handling is tightly coupled to the path
|
|
69
|
+
// as the FilterFields themselves are referenced through the path in the conditions binding path
|
|
70
|
+
// of the according FilterField. In use cases as for the AdaptationFilterBar, the Table's propertyinfo
|
|
71
|
+
// is being propagated to the FilterBar, where the name does not neessarily need to reflect the technical
|
|
72
|
+
// path in the model. Once the key reference between FilterFields, Columns and property info object has been aligned,
|
|
73
|
+
// the below fallback logic will become obsolete.
|
|
74
|
+
AdaptationFilterBar.prototype._getPropertyByName = function(sName) {
|
|
75
|
+
var oPropertyHelper = this.getPropertyHelper();
|
|
76
|
+
if (oPropertyHelper) {
|
|
77
|
+
var oProperty = oPropertyHelper.getProperties().find(function(oProp){
|
|
78
|
+
return oProp.path === sName;
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
if (!oProperty) {
|
|
82
|
+
oProperty = oPropertyHelper.getPropertyMap()[sName] || null;
|
|
83
|
+
}
|
|
84
|
+
return oProperty;
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
|
|
68
88
|
AdaptationFilterBar.prototype._waitForAdaptControlAndPropertyHelper = function(){
|
|
69
89
|
return this._oAdaptationControlPromise.then(function() {
|
|
70
90
|
return this._getAdaptationControlInstance().awaitPropertyHelper().then(function(oPropertyHelper) {
|
|
@@ -81,12 +101,22 @@ sap.ui.define([
|
|
|
81
101
|
}.bind(this));
|
|
82
102
|
};
|
|
83
103
|
|
|
104
|
+
AdaptationFilterBar.prototype.getControlDelegate = function() {
|
|
105
|
+
return this._getAdaptationControlInstance().getControlDelegate();
|
|
106
|
+
};
|
|
107
|
+
|
|
84
108
|
AdaptationFilterBar.prototype.initControlDelegate = function() {
|
|
85
109
|
return this._oAdaptationControlPromise.then(function() {
|
|
86
110
|
return this._getAdaptationControlInstance().initControlDelegate();
|
|
87
111
|
}.bind(this));
|
|
88
112
|
};
|
|
89
113
|
|
|
114
|
+
AdaptationFilterBar.prototype.initPropertyHelper = function() {
|
|
115
|
+
return this._oAdaptationControlPromise.then(function() {
|
|
116
|
+
return this._getAdaptationControlInstance().initPropertyHelper();
|
|
117
|
+
}.bind(this));
|
|
118
|
+
};
|
|
119
|
+
|
|
90
120
|
AdaptationFilterBar.prototype.getTypeUtil = function() {
|
|
91
121
|
if (!this._getAdaptationControlInstance()) {
|
|
92
122
|
throw new Error("No adaptation control assigned yet.");
|
|
@@ -102,11 +132,6 @@ sap.ui.define([
|
|
|
102
132
|
AdaptationFilterBar.prototype.setLiveMode = function(bLive, bSuppressInvalidate) {
|
|
103
133
|
FilterBarBase.prototype.setLiveMode.apply(this, arguments);
|
|
104
134
|
|
|
105
|
-
//Dialog
|
|
106
|
-
if (!bLive) {
|
|
107
|
-
this._oConditionModel.detachPropertyChange(this._handleConditionModelPropertyChange, this);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
135
|
//update adaptationModel while dialog is open
|
|
111
136
|
this._oConditionModel.attachPropertyChange(function(oEvt){
|
|
112
137
|
var sKey = oEvt.getParameter("path").substring(12);
|
|
@@ -182,9 +207,11 @@ sap.ui.define([
|
|
|
182
207
|
return this.getEngine().waitForChanges(this._getAdaptationControlInstance());
|
|
183
208
|
};
|
|
184
209
|
|
|
185
|
-
AdaptationFilterBar.prototype.applyConditionsAfterChangesApplied = function() {
|
|
210
|
+
AdaptationFilterBar.prototype.applyConditionsAfterChangesApplied = function(oControl) {
|
|
186
211
|
FilterBarBase.prototype.applyConditionsAfterChangesApplied.apply(this, arguments);
|
|
187
|
-
this.
|
|
212
|
+
if (oControl === this._getAdaptationControlInstance()) {
|
|
213
|
+
this.triggerSearch();
|
|
214
|
+
}
|
|
188
215
|
};
|
|
189
216
|
|
|
190
217
|
/**
|
|
@@ -195,6 +222,8 @@ sap.ui.define([
|
|
|
195
222
|
AdaptationFilterBar.prototype.createFilterFields = function(){
|
|
196
223
|
return this.initialized().then(function(){
|
|
197
224
|
var mConditions = this._bPersistValues ? this._getAdaptationControlInstance().getFilterConditions() : this._getAdaptationControlInstance()._getXConditions();
|
|
225
|
+
|
|
226
|
+
this.setFilterConditions(mConditions);
|
|
198
227
|
this._setXConditions(mConditions, true);
|
|
199
228
|
|
|
200
229
|
if (this._bFilterFieldsCreated) {
|
|
@@ -379,6 +408,7 @@ sap.ui.define([
|
|
|
379
408
|
};
|
|
380
409
|
|
|
381
410
|
AdaptationFilterBar.prototype.exit = function() {
|
|
411
|
+
this.getEngine().defaultProviderRegistry.detach(this);
|
|
382
412
|
FilterBarBase.prototype.exit.apply(this, arguments);
|
|
383
413
|
for (var sKey in this._mOriginalsForClone) {
|
|
384
414
|
this._mOriginalsForClone[sKey].destroy();
|
|
@@ -10,7 +10,8 @@ sap.ui.define(
|
|
|
10
10
|
"sap/ui/mdc/filterbar/FilterBarBaseRenderer",
|
|
11
11
|
"sap/ui/mdc/filterbar/aligned/FilterItemLayout",
|
|
12
12
|
"sap/ui/mdc/filterbar/vh/FilterContainer",
|
|
13
|
-
"sap/m/Button"
|
|
13
|
+
"sap/m/Button",
|
|
14
|
+
"sap/ui/mdc/enum/PersistenceMode"
|
|
14
15
|
],
|
|
15
16
|
function (
|
|
16
17
|
mLibrary,
|
|
@@ -18,9 +19,31 @@ sap.ui.define(
|
|
|
18
19
|
FilterBarBaseRenderer,
|
|
19
20
|
FilterItemLayout,
|
|
20
21
|
FilterContainer,
|
|
21
|
-
Button
|
|
22
|
+
Button,
|
|
23
|
+
PersistenceMode
|
|
22
24
|
) {
|
|
23
25
|
"use strict";
|
|
26
|
+
/**
|
|
27
|
+
* Modules for different filterbars
|
|
28
|
+
* @namespace
|
|
29
|
+
* @name sap.ui.mdc.filterbar
|
|
30
|
+
* @since 1.80.0
|
|
31
|
+
* @private
|
|
32
|
+
* @experimental As of version 1.80
|
|
33
|
+
* @ui5-restricted sap.ui.mdc
|
|
34
|
+
*/
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Base-modules for {@link sap.ui.mdc.filterbar.vh.FiterBar FilterBar}
|
|
38
|
+
*
|
|
39
|
+
* These modules are not to be used stand-alone.
|
|
40
|
+
* @namespace
|
|
41
|
+
* @name sap.ui.mdc.filterbar.vh
|
|
42
|
+
* @since 1.84.0
|
|
43
|
+
* @private
|
|
44
|
+
* @experimental As of version 1.84
|
|
45
|
+
* @ui5-restricted sap.ui.mdc
|
|
46
|
+
*/
|
|
24
47
|
|
|
25
48
|
/**
|
|
26
49
|
* Constructor for a new FilterBar.
|
|
@@ -33,7 +56,7 @@ sap.ui.define(
|
|
|
33
56
|
* The metadata information is provided via the {@link sap.ui.mdc.FilterBarDelegate FilterBarDelegate} implementation. This implementation has to be provided by the application.
|
|
34
57
|
* @extends sap.ui.mdc.filterbar.FilterBarBase
|
|
35
58
|
* @author SAP SE
|
|
36
|
-
* @version 1.
|
|
59
|
+
* @version 1.102.1
|
|
37
60
|
* @constructor
|
|
38
61
|
* @private
|
|
39
62
|
* @ui5-restricted sap.fe
|
|
@@ -123,7 +146,6 @@ sap.ui.define(
|
|
|
123
146
|
press: this._onShowAllFilters.bind(this),
|
|
124
147
|
text: this._oRb.getText("valuehelp.SHOWALLFILTERS")
|
|
125
148
|
});
|
|
126
|
-
|
|
127
149
|
this._oFilterBarLayout.addEndContent(this._oShowAllFiltersBtn);
|
|
128
150
|
};
|
|
129
151
|
|
|
@@ -133,11 +155,19 @@ sap.ui.define(
|
|
|
133
155
|
};
|
|
134
156
|
|
|
135
157
|
FilterBar.prototype._handleConditionModelPropertyChange = function() {
|
|
158
|
+
FilterBarBase.prototype._handleConditionModelPropertyChange.apply(this, arguments);
|
|
136
159
|
this.fireFiltersChanged({conditionsBased: true});
|
|
137
160
|
};
|
|
138
161
|
|
|
139
162
|
|
|
163
|
+
FilterBar.prototype.init = function() {
|
|
164
|
+
FilterBarBase.prototype.init.apply(this, arguments);
|
|
165
|
+
this._bPersistValues = true;
|
|
166
|
+
this.getEngine().defaultProviderRegistry.attach(this, PersistenceMode.Transient);
|
|
167
|
+
};
|
|
168
|
+
|
|
140
169
|
FilterBar.prototype.exit = function() {
|
|
170
|
+
this.getEngine().defaultProviderRegistry.detach(this);
|
|
141
171
|
if (this._oCollectiveSearch) { // do not destroy CollectiveSearch as it is owned by value help and might be reused there
|
|
142
172
|
this._oFilterBarLayout.removeControl(this._oCollectiveSearch);
|
|
143
173
|
this._oCollectiveSearch = null;
|
|
@@ -219,7 +249,9 @@ sap.ui.define(
|
|
|
219
249
|
this._oBasicSearchField = oBasicSearchField;
|
|
220
250
|
|
|
221
251
|
if (oBasicSearchField) {
|
|
222
|
-
this.
|
|
252
|
+
if (this.isPropertyInitial("expandFilterFields")) {
|
|
253
|
+
this.setExpandFilterFields(false);
|
|
254
|
+
}
|
|
223
255
|
|
|
224
256
|
if (this._oFilterBarLayout) {
|
|
225
257
|
this._oFilterBarLayout.insertControl(oBasicSearchField, this._oCollectiveSearch ? 1 : 0);
|
|
@@ -4,58 +4,21 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
|
-
'./SortFlex', './ChartItemFlex', './ConditionFlex'
|
|
8
|
-
], function(SortFlex, ChartItemFlex, ConditionFlex) {
|
|
7
|
+
'./SortFlex', './ChartItemFlex', './ConditionFlex', './ChartTypeFlex'
|
|
8
|
+
], function(SortFlex, ChartItemFlex, ConditionFlex, ChartTypeFlex) {
|
|
9
9
|
"use strict";
|
|
10
10
|
/**
|
|
11
11
|
* Chart-control-specific change handler that enables the storing of changes in the layered repository of the flexibility services.
|
|
12
12
|
*
|
|
13
13
|
* @alias sap.ui.mdc.flexibility.Chart
|
|
14
14
|
* @author SAP SE
|
|
15
|
-
* @version 1.
|
|
15
|
+
* @version 1.102.1
|
|
16
16
|
*/
|
|
17
17
|
return {
|
|
18
18
|
addItem: ChartItemFlex.addItem,
|
|
19
19
|
removeItem: ChartItemFlex.removeItem,
|
|
20
20
|
moveItem: ChartItemFlex.moveItem,
|
|
21
|
-
|
|
22
|
-
layers: {
|
|
23
|
-
USER: true
|
|
24
|
-
},
|
|
25
|
-
changeHandler: {
|
|
26
|
-
createChange: function(mPropertyBag) {
|
|
27
|
-
if (!mPropertyBag.control) {
|
|
28
|
-
throw new Error("Invalid control. The existing control object is mandatory");
|
|
29
|
-
}
|
|
30
|
-
return {
|
|
31
|
-
selectorElement: mPropertyBag.control,
|
|
32
|
-
changeSpecificData: {
|
|
33
|
-
changeType: "setChartType",
|
|
34
|
-
content: {
|
|
35
|
-
chartType: mPropertyBag.chartType
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
},
|
|
40
|
-
completeChangeContent: function(oChange, mSpecificChangeInfo) {
|
|
41
|
-
},
|
|
42
|
-
applyChange: function(oChange, oChart, mPropertyBag) {
|
|
43
|
-
var oModifier = mPropertyBag.modifier;
|
|
44
|
-
return Promise.resolve()
|
|
45
|
-
.then(oModifier.getProperty.bind(oModifier, oChart, "chartType"))
|
|
46
|
-
.then(function(vOldValue) {
|
|
47
|
-
// First store the old value for revert
|
|
48
|
-
oChange.setRevertData(vOldValue);
|
|
49
|
-
// Then set the new value
|
|
50
|
-
oModifier.setProperty(oChart, "chartType", oChange.getContent().chartType);
|
|
51
|
-
});
|
|
52
|
-
},
|
|
53
|
-
revertChange: function(oChange, oChart, mPropertyBag) {
|
|
54
|
-
mPropertyBag.modifier.setProperty(oChart, "chartType", oChange.getRevertData());
|
|
55
|
-
oChange.resetRevertData();
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
},
|
|
21
|
+
setChartType: ChartTypeFlex.setChartType,
|
|
59
22
|
removeSort: SortFlex.removeSort,
|
|
60
23
|
addSort: SortFlex.addSort,
|
|
61
24
|
moveSort: SortFlex.moveSort,
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ! OpenUI5
|
|
3
|
+
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
sap.ui.define([
|
|
7
|
+
], function() {
|
|
8
|
+
"use strict";
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
var oChartTypeFlex = {};
|
|
13
|
+
|
|
14
|
+
oChartTypeFlex.setChartType = {
|
|
15
|
+
layers: {
|
|
16
|
+
USER: true
|
|
17
|
+
},
|
|
18
|
+
changeHandler: {
|
|
19
|
+
createChange: function(mPropertyBag) {
|
|
20
|
+
if (!mPropertyBag.control) {
|
|
21
|
+
throw new Error("Invalid control. The existing control object is mandatory");
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
selectorElement: mPropertyBag.control,
|
|
25
|
+
changeSpecificData: {
|
|
26
|
+
changeType: "setChartType",
|
|
27
|
+
content: {
|
|
28
|
+
chartType: mPropertyBag.chartType
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
},
|
|
33
|
+
completeChangeContent: function(oChange, mSpecificChangeInfo) {
|
|
34
|
+
},
|
|
35
|
+
applyChange: function(oChange, oChart, mPropertyBag) {
|
|
36
|
+
var oModifier = mPropertyBag.modifier;
|
|
37
|
+
return Promise.resolve()
|
|
38
|
+
.then(oModifier.getProperty.bind(oModifier, oChart, "chartType"))
|
|
39
|
+
.then(function(vOldValue) {
|
|
40
|
+
// First store the old value for revert
|
|
41
|
+
oChange.setRevertData(vOldValue);
|
|
42
|
+
// Then set the new value
|
|
43
|
+
oModifier.setProperty(oChart, "chartType", oChange.getContent().chartType);
|
|
44
|
+
});
|
|
45
|
+
},
|
|
46
|
+
revertChange: function(oChange, oChart, mPropertyBag) {
|
|
47
|
+
mPropertyBag.modifier.setProperty(oChart, "chartType", oChange.getRevertData());
|
|
48
|
+
oChange.resetRevertData();
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
return oChartTypeFlex;
|
|
54
|
+
});
|
|
@@ -49,7 +49,7 @@ sap.ui.define([
|
|
|
49
49
|
var oFilterControl = fDetermineFilterControl(oControl);
|
|
50
50
|
|
|
51
51
|
if (oFilterControl && oFilterControl.applyConditionsAfterChangesApplied) {
|
|
52
|
-
oFilterControl.applyConditionsAfterChangesApplied();
|
|
52
|
+
oFilterControl.applyConditionsAfterChangesApplied(oControl);
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
return fnQueueChange(oControl, function(){
|
|
@@ -116,7 +116,7 @@ sap.ui.define([
|
|
|
116
116
|
var oFilterControl = fDetermineFilterControl(oControl);
|
|
117
117
|
|
|
118
118
|
if (oFilterControl && oFilterControl.applyConditionsAfterChangesApplied) {
|
|
119
|
-
oFilterControl.applyConditionsAfterChangesApplied();
|
|
119
|
+
oFilterControl.applyConditionsAfterChangesApplied(oControl);
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
return fnQueueChange(oControl, function(){
|
|
@@ -7,15 +7,30 @@
|
|
|
7
7
|
/**
|
|
8
8
|
* Initialization Code and shared classes of library sap.ui.mdc.
|
|
9
9
|
*/
|
|
10
|
-
sap.ui.define([
|
|
10
|
+
sap.ui.define([
|
|
11
11
|
"sap/ui/core/Core", // provides sap.ui.getCore()
|
|
12
12
|
"sap/ui/core/library", // library dependency
|
|
13
13
|
"sap/m/library" // library dependency
|
|
14
14
|
], function () {
|
|
15
15
|
"use strict";
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
/**
|
|
18
|
+
* The SAPUI5 library that contains the metadata-driven controls and other entities.
|
|
19
|
+
*
|
|
20
|
+
* SAP Internal
|
|
21
|
+
* This library is restricted to use by SAP internal projects only.
|
|
22
|
+
*
|
|
23
|
+
* @namespace
|
|
24
|
+
* @alias sap.ui.mdc
|
|
25
|
+
* @author SAP SE
|
|
26
|
+
* @version 1.102.1
|
|
27
|
+
* @since 1.80
|
|
28
|
+
* @private
|
|
29
|
+
* @ui5-restricted sap.fe
|
|
30
|
+
* @experimental As of version 1.54 Disclaimer: Usage Restrictions: The components of this library are under development and documented as private. Their APIs are subject to change and should not be used in productive scenarios without further agreement. A general availability of sap.ui.mdc will be announced via the usual channels.
|
|
31
|
+
*/
|
|
32
|
+
var thisLib = sap.ui.getCore().initLibrary({
|
|
33
|
+
version: "1.102.1",
|
|
19
34
|
name: "sap.ui.mdc",
|
|
20
35
|
dependencies: ["sap.ui.core", "sap.m"],
|
|
21
36
|
designtime: "sap/ui/mdc/designtime/library.designtime",
|
|
@@ -23,9 +38,9 @@ sap.ui.define([
|
|
|
23
38
|
"sap.ui.mdc.TableType",
|
|
24
39
|
"sap.ui.mdc.TableP13Mode",
|
|
25
40
|
"sap.ui.mdc.GrowingMode",
|
|
41
|
+
"sap.ui.mdc.RowAction",
|
|
26
42
|
"sap.ui.mdc.RowCountMode",
|
|
27
43
|
"sap.ui.mdc.SelectionMode",
|
|
28
|
-
"sap.ui.mdc.TableRowAction",
|
|
29
44
|
"sap.ui.mdc.FilterExpression",
|
|
30
45
|
"sap.ui.mdc.MultiSelectMode"
|
|
31
46
|
],
|
|
@@ -111,6 +126,7 @@ sap.ui.define([
|
|
|
111
126
|
"sap.ui.mdc.Chart": "sap/ui/mdc/flexibility/Chart",
|
|
112
127
|
"sap.ui.mdc.FilterBar": "sap/ui/mdc/flexibility/FilterBar",
|
|
113
128
|
"sap.ui.mdc.filterbar.p13n.AdaptationFilterBar": "sap/ui/mdc/flexibility/FilterBar",
|
|
129
|
+
"sap.ui.mdc.filterbar.vh.FilterBar": "sap/ui/mdc/flexibility/FilterBar",
|
|
114
130
|
"sap.ui.mdc.link.PanelItem": "sap/ui/mdc/flexibility/PanelItem",
|
|
115
131
|
"sap.ui.mdc.link.Panel": "sap/ui/mdc/flexibility/Panel",
|
|
116
132
|
"sap.ui.mdc.ActionToolbar": "sap/ui/mdc/flexibility/ActionToolbar",
|
|
@@ -121,30 +137,10 @@ sap.ui.define([
|
|
|
121
137
|
noLibraryCSS: false
|
|
122
138
|
});
|
|
123
139
|
|
|
124
|
-
/* eslint-disable no-undef */
|
|
125
|
-
/**
|
|
126
|
-
* The SAPUI5 library that contains the metadata-driven controls and other entities.
|
|
127
|
-
*
|
|
128
|
-
* SAP Internal
|
|
129
|
-
* This library is restricted to use by SAP internal projects only.
|
|
130
|
-
*
|
|
131
|
-
* @namespace
|
|
132
|
-
* @alias sap.ui.mdc
|
|
133
|
-
* @author SAP SE
|
|
134
|
-
* @version 1.100.0
|
|
135
|
-
* @since 1.80
|
|
136
|
-
* @private
|
|
137
|
-
* @ui5-restricted sap.fe
|
|
138
|
-
* @experimental As of version 1.54 Disclaimer: Usage Restrictions: The components of this library are under development and documented as private. Their APIs are subject to change and should not be used in productive scenarios without further agreement. A general availability of sap.ui.mdc will be announced via the usual channels.
|
|
139
|
-
*/
|
|
140
|
-
var thisLib = sap.ui.mdc;
|
|
141
|
-
/* eslint-enable no-undef */
|
|
142
|
-
|
|
143
140
|
/**
|
|
144
141
|
*
|
|
145
142
|
* Interface for valuehelp containers / contents supporting typeahead functionality
|
|
146
143
|
*
|
|
147
|
-
*
|
|
148
144
|
* @since 1.95
|
|
149
145
|
* @name sap.ui.mdc.valuehelp.ITypeaheadContent
|
|
150
146
|
* @interface
|
|
@@ -267,7 +263,7 @@ sap.ui.define([
|
|
|
267
263
|
* @param {sap.ui.base.Event} oControlEvent
|
|
268
264
|
* @param {sap.ui.base.EventProvider} oControlEvent.getSource
|
|
269
265
|
* @param {object} oControlEvent.getParameters
|
|
270
|
-
* @param {boolean} oControlEvent.getParameters.
|
|
266
|
+
* @param {boolean} oControlEvent.getParameters.leaveFocus Indicates that the source control should be focused again
|
|
271
267
|
* @param {object} oControlEvent.getParameters.condition Provides the target condition of the navigation
|
|
272
268
|
* @param {string} oControlEvent.getParameters.value When no condition is given this can be used to create a default condition
|
|
273
269
|
* @param {string} oControlEvent.getParameters.key When no condition is given this can be used to create a default condition
|
|
@@ -4,7 +4,17 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
sap.ui.define([
|
|
7
|
+
sap.ui.define([
|
|
8
|
+
"sap/ui/core/Control",
|
|
9
|
+
"./ContactDetailsRenderer",
|
|
10
|
+
"sap/ui/core/Title",
|
|
11
|
+
"sap/m/VBox",
|
|
12
|
+
"sap/m/Text",
|
|
13
|
+
"sap/m/Link",
|
|
14
|
+
"sap/m/Label",
|
|
15
|
+
"sap/m/Image",
|
|
16
|
+
"sap/ui/layout/form/SimpleForm"
|
|
17
|
+
], function(Control, ContactDetailsRenderer, Title, VBox, Text, Link, Label, Image, SimpleForm) {
|
|
8
18
|
"use strict";
|
|
9
19
|
|
|
10
20
|
/**
|
|
@@ -13,40 +23,114 @@ sap.ui.define(['sap/ui/core/XMLComposite', 'sap/m/Text', 'sap/m/Link', 'sap/m/La
|
|
|
13
23
|
* @param {string} [sId] ID for the new control, generated automatically if no ID is given
|
|
14
24
|
* @param {object} [mSettings] initial settings for the new control
|
|
15
25
|
* @class The ContactDetails control is used to show additional information like for example 'contact details'.
|
|
16
|
-
* @extends sap.ui.core.
|
|
26
|
+
* @extends sap.ui.core.Control
|
|
17
27
|
* @author SAP SE
|
|
18
|
-
* @version 1.
|
|
28
|
+
* @version 1.102.1
|
|
19
29
|
* @constructor
|
|
20
30
|
* @private
|
|
21
31
|
* @since 1.56.0
|
|
22
32
|
* @alias sap.ui.mdc.link.ContactDetails
|
|
23
33
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
24
34
|
*/
|
|
25
|
-
var ContactDetails =
|
|
26
|
-
{
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
var ContactDetails = Control.extend("sap.ui.mdc.link.ContactDetails", /** @lends sap.ui.mdc.link.ContactDetails.prototype */ {
|
|
36
|
+
metadata: {
|
|
37
|
+
library: "sap.ui.mdc",
|
|
38
|
+
defaultAggregation: "items",
|
|
39
|
+
aggregations: {
|
|
40
|
+
items: {
|
|
41
|
+
type: "sap.ui.mdc.link.ContactDetailsItem",
|
|
42
|
+
multiple: true,
|
|
43
|
+
singularName: "item"
|
|
44
|
+
},
|
|
45
|
+
_content: {
|
|
46
|
+
type: "sap.m.VBox",
|
|
47
|
+
visibility: "hidden",
|
|
48
|
+
multiple: false
|
|
36
49
|
}
|
|
37
50
|
}
|
|
38
|
-
}
|
|
51
|
+
},
|
|
52
|
+
renderer: ContactDetailsRenderer
|
|
53
|
+
});
|
|
39
54
|
|
|
55
|
+
var oRB = sap.ui.getCore().getLibraryResourceBundle("sap.ui.mdc");
|
|
40
56
|
ContactDetails.prototype.applySettings = function() {
|
|
41
|
-
|
|
57
|
+
Control.prototype.applySettings.apply(this, arguments);
|
|
42
58
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
59
|
+
this._createContent();
|
|
60
|
+
};
|
|
61
|
+
ContactDetails.prototype._createContent = function() {
|
|
62
|
+
var aSimpleForms = [];
|
|
63
|
+
this.getItems().forEach(function(oContactDetailsItem) {
|
|
64
|
+
var oTitle = new Title({
|
|
65
|
+
text: oContactDetailsItem.getSectionTitle()
|
|
66
|
+
});
|
|
67
|
+
var oImage = new Image({
|
|
68
|
+
src: oContactDetailsItem.getPhoto(),
|
|
69
|
+
visible: !!oContactDetailsItem.getPhoto(),
|
|
70
|
+
decorative: false,
|
|
71
|
+
width: "5rem",
|
|
72
|
+
height: "5rem"
|
|
73
|
+
});
|
|
74
|
+
var oLabelImage = new Label({
|
|
75
|
+
text: "",
|
|
76
|
+
labelFor: oImage,
|
|
77
|
+
visible: !!oContactDetailsItem.getPhoto()
|
|
78
|
+
});
|
|
79
|
+
var oTextName = new Text({
|
|
80
|
+
text: oContactDetailsItem.getFormattedName(),
|
|
81
|
+
visible: !!oContactDetailsItem.getFormattedName()
|
|
82
|
+
});
|
|
83
|
+
var oLabelName = new Label({
|
|
84
|
+
text: oRB.getText("info.POPOVER_CONTACT_SECTION_NAME"),
|
|
85
|
+
labelFor: oTextName,
|
|
86
|
+
visible: !!oContactDetailsItem.getFormattedName()
|
|
87
|
+
});
|
|
88
|
+
var oTextRole = new Text({
|
|
89
|
+
text: oContactDetailsItem.getRole(),
|
|
90
|
+
visible: !!oContactDetailsItem.getRole()
|
|
91
|
+
});
|
|
92
|
+
var oLabelRole = new Label({
|
|
93
|
+
text: oRB.getText("info.POPOVER_CONTACT_SECTION_ROLE"),
|
|
94
|
+
labelFor: oTextRole,
|
|
95
|
+
visible: !!oContactDetailsItem.getRole()
|
|
96
|
+
});
|
|
97
|
+
var oTextTitle = new Text({
|
|
98
|
+
text: oContactDetailsItem.getTitle(),
|
|
99
|
+
visible: !!oContactDetailsItem.getTitle()
|
|
100
|
+
});
|
|
101
|
+
var oLabelTitle = new Label({
|
|
102
|
+
text: oRB.getText("info.POPOVER_CONTACT_SECTION_JOBTITLE"),
|
|
103
|
+
labelFor: oTextTitle,
|
|
104
|
+
visible: !!oContactDetailsItem.getTitle()
|
|
105
|
+
});
|
|
106
|
+
var oTextOrg = new Text({
|
|
107
|
+
text: oContactDetailsItem.getOrg(),
|
|
108
|
+
visible: !!oContactDetailsItem.getOrg()
|
|
109
|
+
});
|
|
110
|
+
var oLabelOrg = new Label({
|
|
111
|
+
text: oRB.getText("info.POPOVER_CONTACT_SECTION_DEPARTMENT"),
|
|
112
|
+
labelFor: oTextOrg,
|
|
113
|
+
visible: !!oContactDetailsItem.getOrg()
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
var oSimpleForm = new SimpleForm({
|
|
117
|
+
editable: false,
|
|
118
|
+
layout: "ColumnLayout",
|
|
119
|
+
content: [
|
|
120
|
+
oTitle, oLabelImage, oImage, oLabelName, oTextName, oLabelRole, oTextRole, oLabelTitle, oTextTitle, oLabelOrg, oTextOrg
|
|
121
|
+
]
|
|
122
|
+
});
|
|
123
|
+
this._addEmailsToSimpleForm(oContactDetailsItem, oSimpleForm, oRB);
|
|
124
|
+
this._addPhonesToSimpleForm(oContactDetailsItem, oSimpleForm, oRB);
|
|
125
|
+
this._addAddressesToSimpleForm(oContactDetailsItem, oSimpleForm, oRB);
|
|
126
|
+
|
|
127
|
+
aSimpleForms.push(oSimpleForm);
|
|
128
|
+
}.bind(this));
|
|
129
|
+
|
|
130
|
+
this.setAggregation("_content", new VBox({
|
|
131
|
+
//ariaLabelledBy: aSimpleForms.length ? aSimpleForms[0].getContent()[0] : undefined,
|
|
132
|
+
items: aSimpleForms
|
|
133
|
+
}));
|
|
50
134
|
};
|
|
51
135
|
ContactDetails.prototype._addEmailsToSimpleForm = function(oContactDetailsItem, oSimpleForm, oRB) {
|
|
52
136
|
// Show email(s) annotated with 'preferred' on top (independent on type e.g. 'work' or 'home' etc) and then non 'preferred' email(s) below.
|