@openui5/sap.ui.mdc 1.141.2 → 1.143.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/REUSE.toml +39 -1
- package/THIRDPARTY.txt +36 -3
- package/package.json +4 -4
- package/src/sap/ui/mdc/.library +1 -1
- package/src/sap/ui/mdc/ActionToolbar.js +89 -63
- package/src/sap/ui/mdc/Chart.js +1 -1
- package/src/sap/ui/mdc/Control.js +1 -1
- package/src/sap/ui/mdc/DefaultTypeMap.js +1 -1
- package/src/sap/ui/mdc/Element.js +1 -1
- package/src/sap/ui/mdc/Field.js +31 -8
- package/src/sap/ui/mdc/FilterBar.js +1 -1
- package/src/sap/ui/mdc/FilterField.js +11 -11
- package/src/sap/ui/mdc/Geomap.js +571 -0
- package/src/sap/ui/mdc/GeomapDelegate.js +285 -0
- package/src/sap/ui/mdc/GeomapRenderer.js +76 -0
- package/src/sap/ui/mdc/Link.js +1 -1
- package/src/sap/ui/mdc/MultiValueField.js +7 -7
- package/src/sap/ui/mdc/Table.js +141 -116
- package/src/sap/ui/mdc/TableDelegate.js +3 -2
- package/src/sap/ui/mdc/ValueHelp.js +1 -1
- package/src/sap/ui/mdc/ValueHelpDelegate.js +4 -1
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +1 -1
- package/src/sap/ui/mdc/chart/ChartImplementationContainer.js +1 -1
- package/src/sap/ui/mdc/chart/ChartSelectionDetails.js +1 -1
- package/src/sap/ui/mdc/chart/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/chart/ToolbarControlFactory.js +1 -1
- package/src/sap/ui/mdc/chart/Util.js +5 -2
- package/src/sap/ui/mdc/condition/Condition.js +1 -1
- package/src/sap/ui/mdc/condition/ConditionConverter.js +1 -1
- 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 +1 -1
- package/src/sap/ui/mdc/condition/Operator.js +1 -1
- package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +1 -1
- package/src/sap/ui/mdc/condition/RangeOperator.js +1 -1
- package/src/sap/ui/mdc/designtime/geomap/Geomap.designtime.js +23 -0
- package/src/sap/ui/mdc/enums/GeomapControlPosition.js +46 -0
- package/src/sap/ui/mdc/enums/TableActionPosition.js +123 -0
- package/src/sap/ui/mdc/enums/TablePopinDisplay.js +36 -0
- package/src/sap/ui/mdc/field/ConditionType.js +1 -1
- package/src/sap/ui/mdc/field/ConditionTypeMixin.js +1 -1
- package/src/sap/ui/mdc/field/ConditionsType.js +1 -1
- package/src/sap/ui/mdc/field/CustomFieldInfo.js +1 -1
- package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +1 -1
- package/src/sap/ui/mdc/field/FieldBase.js +137 -66
- 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/FieldSelect.js +7 -1
- package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -1
- package/src/sap/ui/mdc/field/MultiValueFieldDelegate.js +22 -0
- package/src/sap/ui/mdc/field/MultiValueFieldItem.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/content/ContentFactory.js +3 -0
- package/src/sap/ui/mdc/filterbar/FilterBarBase.js +35 -1
- package/src/sap/ui/mdc/filterbar/FilterBarBaseRenderer.js +3 -0
- package/src/sap/ui/mdc/filterbar/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +1 -1
- package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +1 -1
- package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +1 -1
- 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/flexibility/ItemBaseFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/SortFlex.js +12 -5
- package/src/sap/ui/mdc/flexibility/Table.flexibility.js +17 -11
- package/src/sap/ui/mdc/flexibility/actiontoolbar/CombineAction.js +1 -1
- package/src/sap/ui/mdc/flexibility/actiontoolbar/SplitAction.js +1 -1
- package/src/sap/ui/mdc/flexibility/helpers/getAffectedSorter.js +25 -0
- package/src/sap/ui/mdc/geomap/Item.js +48 -0
- package/src/sap/ui/mdc/geomap/PropertyHelper.js +70 -0
- package/src/sap/ui/mdc/library.js +19 -4
- package/src/sap/ui/mdc/link/Factory.js +1 -1
- package/src/sap/ui/mdc/link/LinkItem.js +1 -1
- package/src/sap/ui/mdc/link/Panel.js +1 -1
- package/src/sap/ui/mdc/link/PanelItem.js +1 -1
- 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 +15 -1
- package/src/sap/ui/mdc/messagebundle_ar.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_bg.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_ca.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_cnr.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_cs.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_cy.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_da.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_de.properties +10 -2
- package/src/sap/ui/mdc/messagebundle_el.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_en.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +12 -1
- package/src/sap/ui/mdc/messagebundle_es.properties +10 -2
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_et.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_fi.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_fr.properties +11 -3
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_hi.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_hr.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_hu.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_id.properties +11 -3
- package/src/sap/ui/mdc/messagebundle_it.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_iw.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_ja.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_kk.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_ko.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_lt.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_lv.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_mk.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_ms.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_nl.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_no.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_pl.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_pt.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_ro.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_ru.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_sh.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_sk.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_sl.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_sr.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_sv.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_th.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_tr.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_uk.properties +8 -0
- package/src/sap/ui/mdc/messagebundle_vi.properties +11 -3
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +9 -1
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +8 -0
- package/src/sap/ui/mdc/mixin/AdaptationMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/DelegateMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/FilterBarLayoutMixin.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 +1 -1
- package/src/sap/ui/mdc/odata/TypeMap.js +1 -1
- package/src/sap/ui/mdc/odata/v4/GeomapDelegate.js +60 -0
- package/src/sap/ui/mdc/odata/v4/TableDelegate.js +53 -2
- package/src/sap/ui/mdc/odata/v4/TypeMap.js +1 -1
- package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegate.js +16 -0
- package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/p13n/StateUtil.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +3 -0
- package/src/sap/ui/mdc/p13n/subcontroller/ColumnFreezeController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/ShowDetailsController.js +1 -1
- package/src/sap/ui/mdc/rules/Table.support.js +149 -118
- package/src/sap/ui/mdc/table/ActionLayoutData.js +47 -0
- package/src/sap/ui/mdc/table/Column.js +40 -186
- package/src/sap/ui/mdc/table/ColumnSettings.js +1 -1
- package/src/sap/ui/mdc/table/CreationRow.js +1 -1
- package/src/sap/ui/mdc/table/DragDropConfig.js +1 -1
- package/src/sap/ui/mdc/table/GridTableType.js +35 -21
- package/src/sap/ui/mdc/table/ODataV4PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/table/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/table/ResponsiveColumnSettings.js +1 -1
- package/src/sap/ui/mdc/table/ResponsiveTableType.js +97 -14
- 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 +34 -7
- package/src/sap/ui/mdc/table/TableTypeBase.js +38 -7
- package/src/sap/ui/mdc/table/utils/Personalization.js +1 -1
- package/src/sap/ui/mdc/themes/base/Geomap.less +50 -0
- package/src/sap/ui/mdc/ushell/SemanticObjectMapping.js +1 -1
- package/src/sap/ui/mdc/ushell/SemanticObjectMappingItem.js +1 -1
- package/src/sap/ui/mdc/ushell/SemanticObjectUnavailableAction.js +1 -1
- package/src/sap/ui/mdc/util/InfoBar.js +1 -1
- package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
- package/src/sap/ui/mdc/util/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/util/PropertyHelperUtil.js +1 -1
- package/src/sap/ui/mdc/valuehelp/Dialog.js +2 -2
- package/src/sap/ui/mdc/valuehelp/FilterBar.js +22 -3
- package/src/sap/ui/mdc/valuehelp/Popover.js +1 -1
- package/src/sap/ui/mdc/valuehelp/base/Container.js +1 -1
- package/src/sap/ui/mdc/valuehelp/base/Content.js +1 -1
- package/src/sap/ui/mdc/valuehelp/base/DefineConditionPanel.js +140 -26
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +1 -1
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +4 -3
- package/src/sap/ui/mdc/valuehelp/base/ListContent.js +1 -1
- package/src/sap/ui/mdc/valuehelp/content/Bool.js +1 -1
- package/src/sap/ui/mdc/valuehelp/content/Conditions.js +1 -1
- package/src/sap/ui/mdc/valuehelp/content/FixedList.js +1 -1
- package/src/sap/ui/mdc/valuehelp/content/FixedListItem.js +1 -1
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +1 -1
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +7 -5
- package/test/sap/ui/mdc/testutils/opa/filterbar/Actions.js +36 -0
- package/test/sap/ui/mdc/testutils/opa/filterfield/Actions.js +20 -3
- package/test/sap/ui/mdc/testutils/opa/valueHelp/Actions.js +33 -1
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2025 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
|
+
"sap/ui/mdc/AggregationBaseDelegate",
|
|
8
|
+
"sap/ui/mdc/enums/GeomapControlPosition"
|
|
9
|
+
], (AggregationBaseDelegate, GeomapControlPosition) => {
|
|
10
|
+
"use strict";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Base Delegate for {@link sap.ui.mdc.Geomap Geomap}. Extend this object in your project to use all functionalities of the {@link sap.ui.mdc.GeoMap GeoMap}.<br>
|
|
14
|
+
* This class provides method calls, that are called by the <code>geomap</code> for specific operations and overwrite the internal behavior.
|
|
15
|
+
*
|
|
16
|
+
* @namespace
|
|
17
|
+
* @author SAP SE
|
|
18
|
+
* @alias module:sap/ui/mdc/GeomapDelegate
|
|
19
|
+
* @extends module:sap/ui/mdc/AggregationBaseDelegate
|
|
20
|
+
* @public
|
|
21
|
+
* @ui5-experimental-since 1.142
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
const GeomapDelegate = Object.assign({}, AggregationBaseDelegate);
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Notifies the inner geomap to zoom in.
|
|
28
|
+
*
|
|
29
|
+
* @param {sap.ui.mdc.Geomap} oGeomap Reference to the geomap
|
|
30
|
+
*
|
|
31
|
+
* @public
|
|
32
|
+
*/
|
|
33
|
+
GeomapDelegate.zoomIn = function(oGeomap) { };
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Notifies the inner geomap to zoom out.
|
|
37
|
+
*
|
|
38
|
+
* @param {sap.ui.mdc.GeoMap} oGeoMap Reference to the geomap
|
|
39
|
+
*
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
GeomapDelegate.zoomOut = function(oGeomap) { };
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* geomap <code>ZoomState</code> type.
|
|
46
|
+
*
|
|
47
|
+
* @typedef {object} sap.ui.mdc.geomap.ZoomState
|
|
48
|
+
* @property {boolean} enabled Zooming is enabled if set to <code>true</code>
|
|
49
|
+
* @property {number} currentZoomLevel Current zoom level of the geomap in percent (between 0 and 1)
|
|
50
|
+
* @experimental As of version 1.142
|
|
51
|
+
* @public
|
|
52
|
+
*/
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Gets the current zooming information for the geomap.
|
|
56
|
+
*
|
|
57
|
+
* @param {sap.ui.mdc.Geomap} oGeomap Reference to the geomap
|
|
58
|
+
* @returns {float} Current <code>zoom</code> level of the inner geomap
|
|
59
|
+
*
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
62
|
+
GeomapDelegate.getZoomLevel = function(oGeomap) { };
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Creates a new geomap item for a given property name and updates the inner geomap.<br>
|
|
66
|
+
* <b>Note:</b> This does <b>not</b> add the geomap item to the <code>Items</code> aggregation of the geomap.
|
|
67
|
+
* Called and used by <code>p13n</code>.
|
|
68
|
+
*
|
|
69
|
+
* @param {sap.ui.mdc.Geomap} oGeomap Reference to the MDC geomap to add the property to
|
|
70
|
+
* @param {string} sPropertyName The name of the property added
|
|
71
|
+
* @param {object} mPropertyBag The property bag containing useful information about the change
|
|
72
|
+
* @param {string} [sRole] New role for given item
|
|
73
|
+
* @returns {Promise<object>} <code>Promise</code> that resolves with new geomap <code>Item</code> as parameter
|
|
74
|
+
*
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
77
|
+
GeomapDelegate.addItem = function(oGeomap, sPropertyName, mPropertyBag, sRole) {
|
|
78
|
+
return Promise.resolve();
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Removes an existing geomap item for a given property name and updates the inner geomap..
|
|
83
|
+
*
|
|
84
|
+
* @param {sap.ui.mdc.Geomap} oGeomap Reference to the MDC geomap from which property is removed
|
|
85
|
+
* @param {object} oItem The <code>item</code> that is removed from the geomap
|
|
86
|
+
* @param {object} mPropertyBag The property bag containing useful information about the change
|
|
87
|
+
* @returns {Promise<boolean>} <code>Promise</code> containing information whether the item was deleted
|
|
88
|
+
*
|
|
89
|
+
* @public
|
|
90
|
+
*/
|
|
91
|
+
GeomapDelegate.removeItem = function(oGeomap, oItem, mPropertyBag) {
|
|
92
|
+
return Promise.resolve(true);
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Inserts a geomap item (spot / circle for <code>sap.geomap.geomap</code>) into the inner geomap.<br>
|
|
97
|
+
* This function is called by the geomap for a change of the <code>Items</code> aggregation.<br>
|
|
98
|
+
* <b>Note:</b> Do not call this yourself, as it would not be synced with the geomap, but insert the item into the geomap instead.
|
|
99
|
+
*
|
|
100
|
+
* @param {sap.ui.mdc.Geomap} oGeomap geomap into which the item is insert
|
|
101
|
+
* @param {object} oGeomapItem geomap item (spot, container, circle & etc. )that is inserted into the inner geomap
|
|
102
|
+
* @param {int} iIndex The index into which the geomap item is inserted
|
|
103
|
+
* @param {string} sType the type of item which should be added to the geomap
|
|
104
|
+
*
|
|
105
|
+
* @public
|
|
106
|
+
*/
|
|
107
|
+
GeomapDelegate.insertItemToGeomap = function(oGeomap, oGeomapItem, iIndex, sType) { };
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Removes a geomap item (spot / circle for <code>sap.geomap.geomap</code>) from the inner geomap.<br>
|
|
111
|
+
* This function is called by the geomap for a change of the <code>Items</code> aggregation.<br>
|
|
112
|
+
* <b>Note:</b> Do not call this yourself, as it would not be synced with the geomap, but remove the item from the geomap instead.
|
|
113
|
+
*
|
|
114
|
+
* @param {sap.ui.mdc.Geomap} oGeoap geomap from which the item is removed
|
|
115
|
+
* @param {object} oGeomapItem geomap item that is removed from the geomap
|
|
116
|
+
* @param {string} sType geomap item type that should be removed from the geomap
|
|
117
|
+
*
|
|
118
|
+
* @public
|
|
119
|
+
*/
|
|
120
|
+
GeomapDelegate.removeItemFromGeomap = function(oGeomap, oGeomapItem, sType) { };
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Loads the required libraries and creates the inner geomap.<br>
|
|
124
|
+
* By default, the method returns <code>Promise.reject()</code>.
|
|
125
|
+
*
|
|
126
|
+
* @param {sap.ui.mdc.Geomap} oGeomap Reference to the geomap
|
|
127
|
+
* @returns {Promise} Resolved once the inner geomap has been initialized
|
|
128
|
+
*
|
|
129
|
+
* @public
|
|
130
|
+
*/
|
|
131
|
+
GeomapDelegate.initializeGeomap = function(oGeomap) {
|
|
132
|
+
return Promise.reject();
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Creates the initial content for the geomap before the metadata is retrieved.<br>
|
|
137
|
+
* This can be used by geomap libraries that can already show some information without the actual data (for example, axis labels, legend, ...).
|
|
138
|
+
*
|
|
139
|
+
* @param {sap.ui.mdc.Geomap} oGeomap Reference to the geomap
|
|
140
|
+
*
|
|
141
|
+
* @public
|
|
142
|
+
*/
|
|
143
|
+
GeomapDelegate.createInitialGeomapContent = function(oGeomap) { };
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Returns the instance of the inner geomap.
|
|
147
|
+
*
|
|
148
|
+
* @param {sap.ui.mdc.Geomap} oGeomap Reference to the MDC geomap
|
|
149
|
+
* @returns {sap.ui.core.Control} Instance of the inner geomap
|
|
150
|
+
*
|
|
151
|
+
* @public
|
|
152
|
+
*/
|
|
153
|
+
GeomapDelegate._getInnerGeomap = function(oGeomap) { };
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Geomap <code>GeomapTypeObject</code> type.
|
|
157
|
+
*
|
|
158
|
+
* @typedef {object} sap.ui.mdc.Geomap.GeomapTypeObject
|
|
159
|
+
* @property {string} key Unique key of the geomap type
|
|
160
|
+
* @property {sap.ui.core.URI} icon URI for the icon for the current geomap type
|
|
161
|
+
* @property {string} text Name of the current geomap type
|
|
162
|
+
* @property {boolean} selected Whether the geomap type is the one currently used
|
|
163
|
+
* @experimental As of version 1.142
|
|
164
|
+
* @public
|
|
165
|
+
*/
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Returns the current geomap type.
|
|
169
|
+
*
|
|
170
|
+
* @param {sap.ui.mdc.Geomap} oGeomap Reference to the MDC geomap
|
|
171
|
+
* @returns {sap.ui.mdc.GeoMap.GeomapTypeObject[]} Information about the current geomap type
|
|
172
|
+
* @throws {Error} Error thrown if inner geomap is not initialized yet
|
|
173
|
+
*
|
|
174
|
+
* @public
|
|
175
|
+
*/
|
|
176
|
+
GeomapDelegate.getGeomapTypeInfo = function(oGeomap) { };
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Binds the inner geomap to the back-end data and creates the inner geomap content.
|
|
180
|
+
*
|
|
181
|
+
* @param {sap.ui.mdc.Geomap} oGeomap Reference to the geomap
|
|
182
|
+
* @param {function} fnCallbackDataLoaded Callback function when data is loaded
|
|
183
|
+
*
|
|
184
|
+
* @public
|
|
185
|
+
*/
|
|
186
|
+
GeomapDelegate.createInnerGeomapContent = function(oGeomap, fnCallbackDataLoaded) { };
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Checks the binding of the geomap and rebinds it if required.
|
|
191
|
+
*
|
|
192
|
+
* @param {sap.ui.mdc.Geomap} oGeomap Reference to the geomap
|
|
193
|
+
* @param {sap.ui.base.ManagedObject.AggregationBindingInfo} oBindingInfo BindingInfo of the geomap
|
|
194
|
+
*
|
|
195
|
+
* @public
|
|
196
|
+
*/
|
|
197
|
+
GeomapDelegate.rebind = function(oGeomap, oBindingInfo) { };
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Returns the binding info for given geomap.
|
|
201
|
+
*
|
|
202
|
+
* @param {sap.ui.mdc.Geomap} oGeomap Reference to the geomap
|
|
203
|
+
* @returns {sap.ui.base.ManagedObject.AggregationBindingInfo} BindingInfo object
|
|
204
|
+
*
|
|
205
|
+
* @public
|
|
206
|
+
*/
|
|
207
|
+
GeomapDelegate.getBindingInfo = function(oGeomap) { };
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Updates the binding info with the relevant information.<br>
|
|
211
|
+
* By default, this method updates a given {@link sap.ui.base.ManagedObject.AggregationBindingInfo AggregationBindingInfo}.
|
|
212
|
+
*
|
|
213
|
+
* @param {sap.ui.mdc.Geomap} oGeomap Reference to the geomap
|
|
214
|
+
* @param {sap.ui.base.ManagedObject.AggregationBindingInfo} oBindingInfo Binding info of the geomap
|
|
215
|
+
*
|
|
216
|
+
* @public
|
|
217
|
+
*/
|
|
218
|
+
GeomapDelegate.updateBindingInfo = function(oGeomap, oBindingInfo) {
|
|
219
|
+
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Returns the relevant property info based on the metadata used with the geomap instance.
|
|
224
|
+
*
|
|
225
|
+
* <b>Note:</b>
|
|
226
|
+
* The result of this function must be kept stable throughout the lifecycle of your application.
|
|
227
|
+
* Any changes of the returned values might result in undesired effects.
|
|
228
|
+
*
|
|
229
|
+
* <b>Note</b>: Existing properties (set via <code>sap.ui.mdc.GeoMap#setPropertyInfo</code>) must not be removed and their attributes must not be changed during the {@link module:sap/ui/mdc/GeoMapDelegate.fetchProperties fetchProperties} callback. Otherwise validation errors might occur whenever personalization-related control features (such as the opening of any personalization dialog) are activated.
|
|
230
|
+
*
|
|
231
|
+
* @param {sap.ui.mdc.Geomap} oGeomap Reference to the geomap
|
|
232
|
+
* @returns {Promise<sap.ui.mdc.GeoMap.PropertyInfo[]>} Array of the property infos that is used within the geomap
|
|
233
|
+
*
|
|
234
|
+
* @public
|
|
235
|
+
*/
|
|
236
|
+
GeomapDelegate.fetchProperties = function(oGeomap) {
|
|
237
|
+
return Promise.resolve([]);
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* Gets the information whether the inner geomap is currently bound.
|
|
242
|
+
*
|
|
243
|
+
* @param {sap.ui.mdc.Geomap} oGeomap Reference to the geomap
|
|
244
|
+
* @returns {boolean} <code>true</code> if inner geomap is bound; <code>false</code> if not
|
|
245
|
+
*
|
|
246
|
+
* @public
|
|
247
|
+
*/
|
|
248
|
+
GeomapDelegate.getGeomapBound = function() {
|
|
249
|
+
return false;
|
|
250
|
+
};
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Returns the information for control positions on the map.
|
|
254
|
+
*
|
|
255
|
+
* @returns {object} with defined control positions
|
|
256
|
+
* @public
|
|
257
|
+
*/
|
|
258
|
+
GeomapDelegate.getControlPositions = function() {
|
|
259
|
+
return {
|
|
260
|
+
controlPositions: {
|
|
261
|
+
navigation: GeomapControlPosition.TopLeft,
|
|
262
|
+
selection: GeomapControlPosition.TopRight,
|
|
263
|
+
fullscreen: GeomapControlPosition.TopRight,
|
|
264
|
+
scale: GeomapControlPosition.BottomLeft
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* Returns the visible properties (set in <code>items</code> aggregation of the geomap.
|
|
271
|
+
* @param oGeomap
|
|
272
|
+
* @returns {Array} array of visible properties
|
|
273
|
+
*/
|
|
274
|
+
GeomapDelegate.getVisibleProperties = function(oGeomap) {
|
|
275
|
+
const aMDCGeomapItems = oGeomap.getAggregation("items") || [];
|
|
276
|
+
let aInitiallyVisibleProperties = [];
|
|
277
|
+
if (aMDCGeomapItems.length > 0) {
|
|
278
|
+
aInitiallyVisibleProperties = aMDCGeomapItems.map((oItem) => oItem.getPropertyKey());
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
return aInitiallyVisibleProperties;
|
|
282
|
+
};
|
|
283
|
+
|
|
284
|
+
return GeomapDelegate;
|
|
285
|
+
});
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* OpenUI5
|
|
3
|
+
* (c) Copyright 2025 SAP SE or an SAP affiliate company.
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
sap.ui.define(['./library'],
|
|
8
|
+
(library) => {
|
|
9
|
+
"use strict";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* GeoMap renderer.
|
|
13
|
+
* @namespace
|
|
14
|
+
*/
|
|
15
|
+
const GeomapRenderer = {
|
|
16
|
+
apiVersion: 2
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* CSS class to be applied to the HTML root element of the control.
|
|
21
|
+
*
|
|
22
|
+
* @readonly
|
|
23
|
+
* @const {string}
|
|
24
|
+
*/
|
|
25
|
+
GeomapRenderer.CSS_CLASS = "sapUiMDCGeomap";
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Renders the HTML for the given control, using the provided {@link sap.ui.core.RenderManager}.
|
|
29
|
+
*
|
|
30
|
+
* @param {sap.ui.core.RenderManager} oRm The RenderManager that can be used for writing to the render output buffer
|
|
31
|
+
* @param {sap.ui.mdc.Geomap} oGeomap An object representation of the control that should be rendered
|
|
32
|
+
*/
|
|
33
|
+
GeomapRenderer.render = function(oRm, oGeomap) {
|
|
34
|
+
oRm.openStart("div", oGeomap);
|
|
35
|
+
oRm.class(GeomapRenderer.CSS_CLASS);
|
|
36
|
+
oRm.style("height", oGeomap.getHeight());
|
|
37
|
+
oRm.style("width", oGeomap.getWidth());
|
|
38
|
+
oRm.openEnd();
|
|
39
|
+
|
|
40
|
+
const sHeader = oGeomap.getHeader();
|
|
41
|
+
if (sHeader) {
|
|
42
|
+
oRm.openStart("div", oGeomap.getId() + "-header");
|
|
43
|
+
oRm.openEnd();
|
|
44
|
+
oRm.text(sHeader);
|
|
45
|
+
oRm.close("div");
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// render internal geomap
|
|
49
|
+
GeomapRenderer.renderInternalGeomap(oRm, oGeomap);
|
|
50
|
+
|
|
51
|
+
oRm.close("div");
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
GeomapRenderer.renderInternalGeomap = function(oRm, oGeomap) {
|
|
55
|
+
oRm.openStart("div", oGeomap.getId() + "-internal");
|
|
56
|
+
oRm.class("sapUiMDCGeomapInternal");
|
|
57
|
+
oRm.openEnd();
|
|
58
|
+
oRm.renderControl(oGeomap.getAggregation("_geomap"));
|
|
59
|
+
oRm.close("div");
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
GeomapRenderer.renderContent = function(oRm, oGeomap) {
|
|
63
|
+
oRm.openStart("div", oGeomap.getId() + "-content");
|
|
64
|
+
oRm.class("sapUiMDCGeomapInternal");
|
|
65
|
+
oRm.openEnd();
|
|
66
|
+
oRm.renderControl(oGeomap.getAggregation("content"));
|
|
67
|
+
oRm.close("div");
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
GeomapRenderer.renderInnerStructure = function(oRm, oInnerStructure) {
|
|
71
|
+
oRm.renderControl(oInnerStructure);
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
return GeomapRenderer;
|
|
75
|
+
},
|
|
76
|
+
true);
|
package/src/sap/ui/mdc/Link.js
CHANGED
|
@@ -33,9 +33,9 @@ sap.ui.define([
|
|
|
33
33
|
*
|
|
34
34
|
* <ul>
|
|
35
35
|
* <li>In display mode, usually a {@link sap.m.Tokenizer Tokenizer} control is rendered.</li>
|
|
36
|
-
* <li>If
|
|
36
|
+
* <li>If {@link sap.ui.mdc.field.FieldBase#getMultipleLines multipleLines} is set, an {@link sap.m.ExpandableText ExpandableText} control is rendered.</li>
|
|
37
37
|
* <li>In edit mode, usually a {@link sap.m.MultiInput MultiInput} control is rendered.</li>
|
|
38
|
-
* <li>If
|
|
38
|
+
* <li>If {@link sap.ui.mdc.field.FieldBase#getMultipleLines multipleLines} is set, a {@link sap.m.TextArea TextArea} control is rendered.</li>
|
|
39
39
|
* </ul>
|
|
40
40
|
*
|
|
41
41
|
* @extends sap.ui.mdc.field.FieldBase
|
|
@@ -44,7 +44,7 @@ sap.ui.define([
|
|
|
44
44
|
* @constructor
|
|
45
45
|
* @alias sap.ui.mdc.MultiValueField
|
|
46
46
|
* @author SAP SE
|
|
47
|
-
* @version 1.
|
|
47
|
+
* @version 1.143.0
|
|
48
48
|
* @since 1.93.0
|
|
49
49
|
*
|
|
50
50
|
* @public
|
|
@@ -83,7 +83,7 @@ sap.ui.define([
|
|
|
83
83
|
* Items of the <code>MultiValueField</code> control.
|
|
84
84
|
*
|
|
85
85
|
* The items are not updated by user input or value help selection automatically. That's because an aggregation binding can only be updated by the model,
|
|
86
|
-
* not by the bound aggregation. Therefore, the {@link module:sap/ui/mdc/field/MultiValueFieldDelegate.
|
|
86
|
+
* not by the bound aggregation. Therefore, the {@link module:sap/ui/mdc/field/MultiValueFieldDelegate.updateItemsFromConditions MultiValueFieldDelegate.updateItemsFromConditions} function needs to be implemented
|
|
87
87
|
* to update the items after a user interaction.
|
|
88
88
|
*/
|
|
89
89
|
items: {
|
|
@@ -96,7 +96,7 @@ sap.ui.define([
|
|
|
96
96
|
defaultAggregation: "items",
|
|
97
97
|
events: {
|
|
98
98
|
/**
|
|
99
|
-
* This event is fired when the
|
|
99
|
+
* This event is fired when the {@link #getItems items} aggregation of the field is changed by user interaction.
|
|
100
100
|
*
|
|
101
101
|
* <b>Note</b> This event is only triggered if the used content control has a change event.
|
|
102
102
|
*/
|
|
@@ -106,7 +106,7 @@ sap.ui.define([
|
|
|
106
106
|
/**
|
|
107
107
|
* The new items of the <code>MultiValueField</code> control.
|
|
108
108
|
*
|
|
109
|
-
* If a
|
|
109
|
+
* If a {@link sap.ui.mdc.field.FieldBase#getValueHelp ValueHelp} element is assigned to the <code>MultiValueField</code> control, the {@link sap.ui.mdc.field.MultiValueFieldItem#getKey key} of the items is used as key for the {@link sap.ui.mdc.field.FieldBase#getValueHelp ValueHelp} items.
|
|
110
110
|
*/
|
|
111
111
|
items: { type: "sap.ui.mdc.field.MultiValueFieldItem[]" },
|
|
112
112
|
|
|
@@ -288,7 +288,7 @@ sap.ui.define([
|
|
|
288
288
|
return;
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
-
this.getControlDelegate().
|
|
291
|
+
this.getControlDelegate().updateItemsFromConditions(this, aConditions);
|
|
292
292
|
|
|
293
293
|
}
|
|
294
294
|
|