@openui5/sap.ui.mdc 1.97.1 → 1.99.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/.reuse/dep5 +25 -30
- package/THIRDPARTY.txt +14 -21
- package/package.json +4 -4
- package/src/sap/ui/mdc/.library +1 -1
- package/src/sap/ui/mdc/ActionToolbar.js +6 -3
- package/src/sap/ui/mdc/AggregationBaseDelegate.js +2 -2
- package/src/sap/ui/mdc/BaseDelegate.js +1 -1
- package/src/sap/ui/mdc/Chart.js +1100 -1796
- package/src/sap/ui/mdc/ChartDelegate.js +429 -270
- package/src/sap/ui/mdc/ChartRenderer.js +73 -77
- 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 +2 -2
- package/src/sap/ui/mdc/FilterBar.js +3 -2
- package/src/sap/ui/mdc/FilterField.js +11 -8
- package/src/sap/ui/mdc/Link.js +23 -4
- package/src/sap/ui/mdc/LinkDelegate.js +3 -3
- package/src/sap/ui/mdc/MultiValueField.js +20 -6
- package/src/sap/ui/mdc/Table.js +79 -64
- package/src/sap/ui/mdc/TableDelegate.js +40 -12
- package/src/sap/ui/mdc/ValueHelp.js +19 -9
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +2 -2
- package/src/sap/ui/mdc/{chartNew/ChartSelectionDetailsNew.js → chart/ChartSelectionDetails.js} +8 -8
- package/src/sap/ui/mdc/{chartNew/ChartToolbarNew.js → chart/ChartToolbar.js} +49 -13
- package/src/sap/ui/mdc/chart/ChartTypeButton.js +55 -54
- package/src/sap/ui/mdc/{chartNew/DrillBreadcrumbsNew.js → chart/DrillBreadcrumbs.js} +3 -3
- package/src/sap/ui/mdc/chart/DrillStackHandler.js +38 -249
- package/src/sap/ui/mdc/chart/Item.js +62 -92
- package/src/sap/ui/mdc/{chartNew/PropertyHelperNew.js → chart/PropertyHelper.js} +3 -3
- package/src/sap/ui/mdc/chart/SelectionDetailsActions.js +17 -21
- 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 +256 -43
- 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/chart/Chart.designtime.js +80 -5
- package/src/sap/ui/mdc/designtime/field/Field.designtime.js +81 -5
- package/src/sap/ui/mdc/designtime/filterbar/FilterBarBase.designtime.js +3 -0
- package/src/sap/ui/mdc/designtime/table/Table.designtime.js +60 -20
- 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 +3 -3
- package/src/sap/ui/mdc/field/ConditionsType.js +1 -1
- 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 +75 -27
- package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +4 -4
- package/src/sap/ui/mdc/field/FieldBase.js +32 -6
- package/src/sap/ui/mdc/field/FieldBaseRenderer.js +0 -3
- package/src/sap/ui/mdc/field/FieldHelpBase.js +2 -2
- package/src/sap/ui/mdc/field/FieldInfoBase.js +23 -10
- 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 +2 -2
- package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +2 -2
- package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +6 -3
- package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +1 -1
- package/src/sap/ui/mdc/field/InParameter.js +1 -1
- package/src/sap/ui/mdc/field/ListFieldHelp.js +10 -2
- 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 +70 -0
- package/src/sap/ui/mdc/field/TokenDisplayRenderer.js +24 -0
- package/src/sap/ui/mdc/field/TokenizerDisplay.js +80 -0
- package/src/sap/ui/mdc/field/TokenizerDisplayRenderer.js +69 -0
- package/src/sap/ui/mdc/field/ValueHelpPanel.js +1 -1
- package/src/sap/ui/mdc/field/content/ContentFactory.js +5 -5
- package/src/sap/ui/mdc/field/content/DateContent.js +2 -2
- package/src/sap/ui/mdc/field/content/DefaultContent.js +35 -13
- package/src/sap/ui/mdc/field/content/LinkContent.js +1 -1
- package/src/sap/ui/mdc/filterbar/FilterBarBase.js +335 -126
- package/src/sap/ui/mdc/filterbar/FilterBarBaseRenderer.js +1 -1
- package/src/sap/ui/mdc/filterbar/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +8 -2
- package/src/sap/ui/mdc/filterbar/vh/CollectiveSearchSelect.js +3 -1
- package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +7 -1
- package/src/sap/ui/mdc/filterbar/vh/GenericFilterBarDelegate.js +6 -6
- package/src/sap/ui/mdc/flexibility/AggregateFlex.js +2 -2
- package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +6 -4
- package/src/sap/ui/mdc/flexibility/ColumnFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/FilterBar.flexibility.js +4 -3
- package/src/sap/ui/mdc/flexibility/FilterItemFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/GroupFlex.js +1 -1
- package/src/sap/ui/mdc/flexibility/Panel.flexibility.js +9 -3
- package/src/sap/ui/mdc/flexibility/PropertyInfoFlex.js +110 -0
- package/src/sap/ui/mdc/flexibility/SortFlex.js +2 -2
- package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +6 -6
- package/src/sap/ui/mdc/library.js +45 -42
- package/src/sap/ui/mdc/link/ContactDetails.js +1 -1
- 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/Factory.js +2 -2
- 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/Log.js +1 -1
- package/src/sap/ui/mdc/link/Panel.js +140 -177
- package/src/sap/ui/mdc/link/PanelItem.js +1 -1
- package/src/sap/ui/mdc/link/PanelListItem.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 +55 -1
- package/src/sap/ui/mdc/messagebundle_ar.properties +39 -4
- package/src/sap/ui/mdc/messagebundle_bg.properties +54 -19
- package/src/sap/ui/mdc/messagebundle_ca.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_cs.properties +52 -17
- package/src/sap/ui/mdc/messagebundle_cy.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_da.properties +44 -9
- package/src/sap/ui/mdc/messagebundle_de.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_el.properties +38 -3
- package/src/sap/ui/mdc/messagebundle_en.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +61 -4
- package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_es.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +51 -16
- package/src/sap/ui/mdc/messagebundle_et.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_fi.properties +43 -8
- package/src/sap/ui/mdc/messagebundle_fr.properties +38 -3
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_hi.properties +38 -3
- package/src/sap/ui/mdc/messagebundle_hr.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_hu.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_id.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_it.properties +53 -18
- package/src/sap/ui/mdc/messagebundle_iw.properties +38 -3
- package/src/sap/ui/mdc/messagebundle_ja.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_kk.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_ko.properties +41 -6
- package/src/sap/ui/mdc/messagebundle_lt.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_lv.properties +41 -6
- package/src/sap/ui/mdc/messagebundle_ms.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_nl.properties +42 -7
- package/src/sap/ui/mdc/messagebundle_no.properties +45 -10
- package/src/sap/ui/mdc/messagebundle_pl.properties +38 -3
- package/src/sap/ui/mdc/messagebundle_pt.properties +44 -9
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_ro.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_ru.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_sh.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_sk.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_sl.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_sv.properties +39 -4
- package/src/sap/ui/mdc/messagebundle_th.properties +40 -5
- package/src/sap/ui/mdc/messagebundle_tr.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_uk.properties +41 -6
- package/src/sap/ui/mdc/messagebundle_vi.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +37 -2
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +37 -2
- package/src/sap/ui/mdc/mixin/AdaptationMixin.js +19 -5
- package/src/sap/ui/mdc/mixin/DelegateMixin.js +2 -2
- package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +14 -9
- package/src/sap/ui/mdc/mixin/PromiseMixin.js +2 -3
- package/src/sap/ui/mdc/odata/TypeUtil.js +1 -1
- package/src/sap/ui/mdc/odata/v4/ChartDelegate.js +29 -483
- package/src/sap/ui/mdc/odata/v4/{ChartPropertyHelperNew.js → ChartPropertyHelper.js} +5 -5
- package/src/sap/ui/mdc/odata/v4/TableDelegate.js +112 -96
- package/src/sap/ui/mdc/odata/v4/TypeUtil.js +1 -1
- package/src/sap/ui/mdc/odata/v4/util/DelegateUtil.js +1 -1
- package/src/sap/ui/mdc/odata/v4/vizChart/{ChartDelegateNew.js → ChartDelegate.js} +206 -116
- package/src/sap/ui/mdc/p13n/Engine.js +31 -13
- package/src/sap/ui/mdc/p13n/FlexUtil.js +11 -118
- package/src/sap/ui/mdc/p13n/P13nBuilder.js +7 -7
- package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/p13n/StateUtil.js +20 -6
- package/src/sap/ui/mdc/p13n/UIManager.js +5 -7
- package/src/sap/ui/mdc/p13n/modification/FlexModificationHandler.js +4 -1
- package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +9 -6
- package/src/sap/ui/mdc/p13n/modules/DefaultProviderRegistry.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +1092 -48
- package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +72 -0
- package/src/sap/ui/mdc/p13n/panels/ListView.js +6 -2
- package/src/sap/ui/mdc/p13n/subcontroller/AdaptFiltersController.js +6 -5
- package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +156 -11
- package/src/sap/ui/mdc/p13n/subcontroller/ChartItemController.js +15 -26
- package/src/sap/ui/mdc/p13n/subcontroller/ColumnController.js +6 -5
- package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +14 -7
- package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +173 -0
- package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +10 -17
- package/src/sap/ui/mdc/table/Column.js +12 -12
- package/src/sap/ui/mdc/table/CreationRow.js +11 -11
- package/src/sap/ui/mdc/table/GridTableType.js +5 -6
- package/src/sap/ui/mdc/table/PropertyHelper.js +44 -7
- package/src/sap/ui/mdc/table/ResponsiveTableType.js +8 -10
- package/src/sap/ui/mdc/table/RowSettings.js +4 -4
- package/src/sap/ui/mdc/table/TableTypeBase.js +2 -2
- package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +1 -1
- package/src/sap/ui/mdc/themes/base/FieldBase.less +0 -5
- package/src/sap/ui/mdc/themes/base/TokenDisplay.less +89 -0
- package/src/sap/ui/mdc/themes/base/TokenizerDisplay.less +90 -0
- package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +15 -4
- package/src/sap/ui/mdc/themes/base/library.source.less +2 -0
- package/src/sap/ui/mdc/ui/Container.js +2 -2
- package/src/sap/ui/mdc/ui/ContainerItem.js +2 -2
- package/src/sap/ui/mdc/util/Common.js +1 -1
- package/src/sap/ui/mdc/util/DateUtil.js +1 -1
- package/src/sap/ui/mdc/util/FilterUtil.js +1 -1
- package/src/sap/ui/mdc/util/FormatUtil.js +3 -3
- package/src/sap/ui/mdc/util/IdentifierUtil.js +6 -6
- package/src/sap/ui/mdc/util/PromiseCache.js +1 -1
- package/src/sap/ui/mdc/util/PropertyHelper.js +43 -12
- package/src/sap/ui/mdc/util/TypeUtil.js +5 -4
- package/src/sap/ui/mdc/valuehelp/Dialog.js +11 -8
- package/src/sap/ui/mdc/valuehelp/Popover.js +2 -1
- package/src/sap/ui/mdc/valuehelp/base/Container.js +2 -1
- package/src/sap/ui/mdc/valuehelp/base/Content.js +2 -1
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +2 -1
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +2 -1
- package/src/sap/ui/mdc/valuehelp/base/ListContent.js +2 -1
- package/src/sap/ui/mdc/valuehelp/content/Bool.js +2 -1
- package/src/sap/ui/mdc/valuehelp/content/Conditions.js +4 -2
- package/src/sap/ui/mdc/valuehelp/content/FixedList.js +11 -5
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +43 -8
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +43 -24
- package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +3 -1
- package/test/sap/ui/mdc/testutils/opa/actions/OpenContextMenu.js +3 -3
- package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ActionsBase.js +3 -3
- package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ActionsViz.js +0 -0
- package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/AssertionsBase.js +1 -1
- package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/AssertionsViz.js +0 -0
- package/test/sap/ui/mdc/testutils/opa/{chartNew → chart}/ChartNew.js +0 -0
- package/test/sap/ui/mdc/testutils/opa/chart/TestObjects.js +289 -0
- package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +7 -7
- package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +9 -9
- package/test/sap/ui/mdc/testutils/opa/filterbar/Util.js +12 -11
- package/test/sap/ui/mdc/testutils/opa/link/Actions.js +85 -0
- package/test/sap/ui/mdc/testutils/opa/link/Assertions.js +79 -0
- package/test/sap/ui/mdc/testutils/opa/link/TestObjects.js +112 -0
- package/test/sap/ui/mdc/testutils/opa/link/waitForLink.js +50 -0
- package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +261 -138
- package/test/sap/ui/mdc/testutils/opa/p13n/Util.js +27 -26
- package/test/sap/ui/mdc/testutils/opa/valueHelp/Actions.js +54 -0
- package/test/sap/ui/mdc/testutils/opa/valueHelp/Assertions.js +5 -0
- package/test/sap/ui/mdc/testutils/opa/valueHelp/TestObjects.js +40 -0
- package/test/sap/ui/mdc/testutils/opa/valueHelp/Util.js +28 -0
- package/src/sap/ui/mdc/ChartDelegateNew.js +0 -395
- package/src/sap/ui/mdc/ChartNew.js +0 -1114
- package/src/sap/ui/mdc/ChartNewRenderer.js +0 -91
- package/src/sap/ui/mdc/chart/DimensionItem.js +0 -281
- package/src/sap/ui/mdc/chart/MeasureItem.js +0 -318
- package/src/sap/ui/mdc/chart/MetadataDelegate.js +0 -31
- package/src/sap/ui/mdc/chart/SelectionHandler.js +0 -127
- package/src/sap/ui/mdc/chart/ToolbarHandler.js +0 -328
- package/src/sap/ui/mdc/chartNew/ChartTypeButtonNew.js +0 -295
- package/src/sap/ui/mdc/chartNew/DrillStackHandlerNew.js +0 -212
- package/src/sap/ui/mdc/chartNew/ItemNew.js +0 -72
- package/src/sap/ui/mdc/chartNew/SelectionDetailsActionsNew.js +0 -34
- package/src/sap/ui/mdc/designtime/chart/ChartNew.designtime.js +0 -91
- package/src/sap/ui/mdc/link/SelectionDialog.control.xml +0 -66
- package/src/sap/ui/mdc/link/SelectionDialog.js +0 -213
- package/src/sap/ui/mdc/link/SelectionDialogItem.js +0 -86
- package/src/sap/ui/mdc/odata/v4/ChartDelegateNew.js +0 -35
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanelNew.js +0 -1179
package/src/sap/ui/mdc/Table.js
CHANGED
|
@@ -23,6 +23,7 @@ sap.ui.define([
|
|
|
23
23
|
"sap/ui/core/dnd/DragDropInfo",
|
|
24
24
|
"sap/ui/core/Item",
|
|
25
25
|
"sap/ui/core/format/ListFormat",
|
|
26
|
+
"sap/ui/core/library",
|
|
26
27
|
"sap/ui/events/KeyCodes",
|
|
27
28
|
"sap/ui/model/Sorter",
|
|
28
29
|
"sap/ui/dom/containsOrEquals",
|
|
@@ -59,6 +60,7 @@ sap.ui.define([
|
|
|
59
60
|
DragDropInfo,
|
|
60
61
|
Item,
|
|
61
62
|
ListFormat,
|
|
63
|
+
coreLibrary,
|
|
62
64
|
KeyCodes,
|
|
63
65
|
Sorter,
|
|
64
66
|
containsOrEquals,
|
|
@@ -85,6 +87,7 @@ sap.ui.define([
|
|
|
85
87
|
var ToolbarDesign = MLibrary.ToolbarDesign;
|
|
86
88
|
var ToolbarStyle = MLibrary.ToolbarStyle;
|
|
87
89
|
var MultiSelectMode = library.MultiSelectMode;
|
|
90
|
+
var TitleLevel = coreLibrary.TitleLevel;
|
|
88
91
|
var internalMap = new window.WeakMap();
|
|
89
92
|
var internal = function(oTable) {
|
|
90
93
|
if (!internalMap.has(oTable)) {
|
|
@@ -108,14 +111,13 @@ sap.ui.define([
|
|
|
108
111
|
* Constructor for a new <code>MDCTable</code>.
|
|
109
112
|
*
|
|
110
113
|
* @param {string} [sId] Optional ID for the new control; generated automatically if no non-empty ID is given
|
|
111
|
-
* <b>Note:</b>
|
|
114
|
+
* <b>Note:</b> The optional ID can be omitted, no matter whether <code>mSettings</code> is given or not.
|
|
112
115
|
* @param {object} [mSettings] Object with initial settings for the new control
|
|
113
116
|
* @class
|
|
114
|
-
* <
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
* </p>
|
|
117
|
+
* A metadata-driven table to simplify the usage of existing tables, such as the <code>ResponsiveTable</code> and <code>GridTable</code>
|
|
118
|
+
* controls. The metadata needs to be provided via the {@link module:sap/ui/mdc/TableDelegate TableDelegate} implementation as
|
|
119
|
+
* {@link sap.ui.mdc.table.PropertyInfo}.
|
|
120
|
+
*
|
|
119
121
|
* @extends sap.ui.mdc.Control
|
|
120
122
|
* @author SAP SE
|
|
121
123
|
* @private
|
|
@@ -196,7 +198,7 @@ sap.ui.define([
|
|
|
196
198
|
headerLevel: {
|
|
197
199
|
type: "sap.ui.core.TitleLevel",
|
|
198
200
|
group: "Appearance",
|
|
199
|
-
defaultValue:
|
|
201
|
+
defaultValue: TitleLevel.Auto
|
|
200
202
|
},
|
|
201
203
|
/**
|
|
202
204
|
* Determines whether to bind the table automatically after the initial creation or re-creation of the table.
|
|
@@ -264,7 +266,7 @@ sap.ui.define([
|
|
|
264
266
|
},
|
|
265
267
|
|
|
266
268
|
/**
|
|
267
|
-
* Determines the text shown
|
|
269
|
+
* Determines the text shown if the table has no data.
|
|
268
270
|
*
|
|
269
271
|
* @since 1.63
|
|
270
272
|
*/
|
|
@@ -273,10 +275,10 @@ sap.ui.define([
|
|
|
273
275
|
},
|
|
274
276
|
|
|
275
277
|
/**
|
|
276
|
-
*
|
|
278
|
+
* Defines the sort conditions.
|
|
277
279
|
*
|
|
278
280
|
* <b>Note</b>: This property must not be bound.<br>
|
|
279
|
-
* <b>Note:</b> This property is exclusively
|
|
281
|
+
* <b>Note:</b> This property is used exclusively for handling SAPUI5 flexibility changes. Do not use it otherwise.
|
|
280
282
|
*
|
|
281
283
|
* @since 1.73
|
|
282
284
|
*/
|
|
@@ -285,10 +287,10 @@ sap.ui.define([
|
|
|
285
287
|
},
|
|
286
288
|
|
|
287
289
|
/**
|
|
288
|
-
*
|
|
290
|
+
* Defines the filter conditions.
|
|
289
291
|
*
|
|
290
292
|
* <b>Note</b>: This property must not be bound.<br>
|
|
291
|
-
* <b>Note:</b> This property is exclusively
|
|
293
|
+
* <b>Note:</b> This property is used exclusively for handling SAPUI5 flexibility changes. Do not use it otherwise.
|
|
292
294
|
*
|
|
293
295
|
* @since 1.80.0
|
|
294
296
|
*/
|
|
@@ -298,10 +300,10 @@ sap.ui.define([
|
|
|
298
300
|
},
|
|
299
301
|
|
|
300
302
|
/**
|
|
301
|
-
*
|
|
303
|
+
* Defines the group conditions.
|
|
302
304
|
*
|
|
303
305
|
* <b>Note</b>: This property must not be bound.<br>
|
|
304
|
-
* <b>Note:</b> This property is exclusively
|
|
306
|
+
* <b>Note:</b> This property is used exclusively for handling SAPUI5 flexibility changes. Do not use it otherwise.
|
|
305
307
|
*
|
|
306
308
|
* @since 1.87
|
|
307
309
|
*/
|
|
@@ -310,10 +312,10 @@ sap.ui.define([
|
|
|
310
312
|
},
|
|
311
313
|
|
|
312
314
|
/**
|
|
313
|
-
*
|
|
315
|
+
* Defines the aggregate conditions.
|
|
314
316
|
*
|
|
315
317
|
* <b>Note</b>: This property must not be bound.<br>
|
|
316
|
-
* <b>Note:</b> This property is exclusively used for handling flexibility changes.
|
|
318
|
+
* <b>Note:</b> This property is exclusively used for handling SAPUI5 flexibility changes.
|
|
317
319
|
*
|
|
318
320
|
* @since 1.87
|
|
319
321
|
*/
|
|
@@ -322,7 +324,7 @@ sap.ui.define([
|
|
|
322
324
|
},
|
|
323
325
|
|
|
324
326
|
/**
|
|
325
|
-
* Determines whether table data export is enabled.
|
|
327
|
+
* Determines whether the table data export is enabled.
|
|
326
328
|
*
|
|
327
329
|
* @since 1.75
|
|
328
330
|
*/
|
|
@@ -385,12 +387,14 @@ sap.ui.define([
|
|
|
385
387
|
/**
|
|
386
388
|
* Enables automatic column width calculation based on metadata information if set to <code>true</code>.
|
|
387
389
|
* The column width calculation takes the type, column label, referenced properties, and many other metadata parameters into account.
|
|
388
|
-
* Providing a more precise <code>maxLength</code> value for the <code>String</code> type or <code>precision</code> value for numeric
|
|
390
|
+
* Providing a more precise <code>maxLength</code> value for the <code>String</code> type or <code>precision</code> value for numeric
|
|
391
|
+
* types can help this algorithm to produce better results.
|
|
389
392
|
* The calculated column widths can have a minimum of 3rem and a maximum of 20rem.
|
|
390
393
|
*
|
|
391
|
-
* <b>Note:</b> To customize the automatic column width calculation the <code>visualSettings.widthSettings</code> key of the
|
|
392
|
-
* To avoid the heuristic column width calculation for a particular column, the
|
|
393
|
-
*
|
|
394
|
+
* <b>Note:</b> To customize the automatic column width calculation, the <code>visualSettings.widthSettings</code> key of the
|
|
395
|
+
* <code>PropertyInfo</code> can be used. To avoid the heuristic column width calculation for a particular column, the
|
|
396
|
+
* <code>visualSettings.widthSettings</code> key of the <code>PropertyInfo</code> must be set to <code>null</code>. This feature has
|
|
397
|
+
* no effect if the <code>width</code> property of the column is bound or its value is set.
|
|
394
398
|
*
|
|
395
399
|
* @since 1.95
|
|
396
400
|
*/
|
|
@@ -426,7 +430,7 @@ sap.ui.define([
|
|
|
426
430
|
|
|
427
431
|
/**
|
|
428
432
|
* This row can be used for user input to create new data if {@link sap.ui.mdc.TableType TableType} is "<code>Table</code>".
|
|
429
|
-
* <b>Note:</b> Once the binding
|
|
433
|
+
* <b>Note:</b> Once the binding supports creating transient records, this aggregation will be removed.
|
|
430
434
|
*/
|
|
431
435
|
creationRow: {
|
|
432
436
|
type: "sap.ui.mdc.table.CreationRow",
|
|
@@ -472,9 +476,9 @@ sap.ui.define([
|
|
|
472
476
|
/**
|
|
473
477
|
* <code>DataStateIndicator</code> plugin that can be used to show binding-related messages.
|
|
474
478
|
*
|
|
475
|
-
* <b>Note:</b> The message filtering is not yet supported for this control
|
|
476
|
-
* {@link sap.m.plugins.DataStateIndicator#getEnableFiltering enableFiltering} property of the <code>DataStateIndicator</code>
|
|
477
|
-
* not be set to <code>true</code>.
|
|
479
|
+
* <b>Note:</b> The message filtering is not yet supported for this control. Therefore the
|
|
480
|
+
* {@link sap.m.plugins.DataStateIndicator#getEnableFiltering enableFiltering} property of the <code>DataStateIndicator</code> plugin
|
|
481
|
+
* must not be set to <code>true</code>.
|
|
478
482
|
*
|
|
479
483
|
* @since 1.89
|
|
480
484
|
*/
|
|
@@ -495,7 +499,7 @@ sap.ui.define([
|
|
|
495
499
|
},
|
|
496
500
|
events: {
|
|
497
501
|
/**
|
|
498
|
-
*
|
|
502
|
+
* This event is fired when a row in the table is pressed.
|
|
499
503
|
*/
|
|
500
504
|
rowPress: {
|
|
501
505
|
parameters: {
|
|
@@ -508,7 +512,7 @@ sap.ui.define([
|
|
|
508
512
|
}
|
|
509
513
|
},
|
|
510
514
|
/**
|
|
511
|
-
*
|
|
515
|
+
* This event is fired when the selection in the table is changed.
|
|
512
516
|
*/
|
|
513
517
|
selectionChange: {
|
|
514
518
|
parameters: {
|
|
@@ -525,7 +529,7 @@ sap.ui.define([
|
|
|
525
529
|
type: "boolean"
|
|
526
530
|
},
|
|
527
531
|
/**
|
|
528
|
-
* Identifies whether
|
|
532
|
+
* Identifies whether the Select All checkbox was pressed
|
|
529
533
|
*/
|
|
530
534
|
selectAll: {
|
|
531
535
|
type: "boolean"
|
|
@@ -533,7 +537,7 @@ sap.ui.define([
|
|
|
533
537
|
}
|
|
534
538
|
},
|
|
535
539
|
/**
|
|
536
|
-
*
|
|
540
|
+
* This event is fired right before the export is triggered.
|
|
537
541
|
*
|
|
538
542
|
* For more information about the export settings, see {@link sap.ui.export.Spreadsheet} or
|
|
539
543
|
* {@link topic:7e12e6b9154a4607be9d6072c72d609c Spreadsheet Export Configuration}.
|
|
@@ -560,7 +564,7 @@ sap.ui.define([
|
|
|
560
564
|
}
|
|
561
565
|
},
|
|
562
566
|
/**
|
|
563
|
-
*
|
|
567
|
+
* This event is fired when the user pastes content from the clipboard to the table.
|
|
564
568
|
*/
|
|
565
569
|
paste: {
|
|
566
570
|
parameters: {
|
|
@@ -715,7 +719,7 @@ sap.ui.define([
|
|
|
715
719
|
Table.prototype._onApplyMessageFilter = function(oEvent) {
|
|
716
720
|
this._oMessageFilter = oEvent.getParameter("filter");
|
|
717
721
|
oEvent.preventDefault();
|
|
718
|
-
this.
|
|
722
|
+
this._rebind();
|
|
719
723
|
};
|
|
720
724
|
|
|
721
725
|
/**
|
|
@@ -725,7 +729,7 @@ sap.ui.define([
|
|
|
725
729
|
Table.prototype._onClearMessageFilter = function(oEvent) {
|
|
726
730
|
this._oMessageFilter = null;
|
|
727
731
|
oEvent.preventDefault();
|
|
728
|
-
this.
|
|
732
|
+
this._rebind();
|
|
729
733
|
};
|
|
730
734
|
|
|
731
735
|
// ----Type----
|
|
@@ -876,7 +880,7 @@ sap.ui.define([
|
|
|
876
880
|
}
|
|
877
881
|
|
|
878
882
|
this._bForceRebind = true;
|
|
879
|
-
this.
|
|
883
|
+
this._rebind();
|
|
880
884
|
}
|
|
881
885
|
|
|
882
886
|
return this;
|
|
@@ -1371,7 +1375,7 @@ sap.ui.define([
|
|
|
1371
1375
|
}
|
|
1372
1376
|
|
|
1373
1377
|
if (this.getAutoBindOnInit()) {
|
|
1374
|
-
this.
|
|
1378
|
+
this.rebind();
|
|
1375
1379
|
}
|
|
1376
1380
|
|
|
1377
1381
|
return this.awaitPropertyHelper();
|
|
@@ -1493,7 +1497,7 @@ sap.ui.define([
|
|
|
1493
1497
|
};
|
|
1494
1498
|
|
|
1495
1499
|
/**
|
|
1496
|
-
* Returns the current filter conditions present on the table
|
|
1500
|
+
* Returns the current filter conditions present on the table.
|
|
1497
1501
|
*
|
|
1498
1502
|
* @private
|
|
1499
1503
|
* @ui5-restricted sap.ui.mdc
|
|
@@ -1729,13 +1733,28 @@ sap.ui.define([
|
|
|
1729
1733
|
var oRowBinding = that._getRowBinding();
|
|
1730
1734
|
var mExportSettings = {
|
|
1731
1735
|
workbook: {
|
|
1732
|
-
columns: aSheetColumns
|
|
1736
|
+
columns: aSheetColumns,
|
|
1737
|
+
context: {title: that.getHeader()}
|
|
1733
1738
|
},
|
|
1734
1739
|
dataSource: oRowBinding,
|
|
1735
1740
|
fileType: mCustomConfig.selectedFileType == "pdf" ? "PDF" : "XLSX",
|
|
1736
|
-
fileName: mCustomConfig ? mCustomConfig.fileName :
|
|
1741
|
+
fileName: mCustomConfig ? mCustomConfig.fileName : this.getHeader()
|
|
1742
|
+
};
|
|
1743
|
+
|
|
1744
|
+
var mPDFUserSettings = {
|
|
1745
|
+
border: mCustomConfig.border,
|
|
1746
|
+
fontSize: mCustomConfig.fontSize,
|
|
1747
|
+
paperSize: mCustomConfig.selectedPaperSize,
|
|
1748
|
+
doEnableAccessibility: mCustomConfig.doEnableAccessibility,
|
|
1749
|
+
signature: mCustomConfig.signature,
|
|
1750
|
+
signatureReason: mCustomConfig.signatureReason,
|
|
1751
|
+
orientation: mCustomConfig.selectedOrientation
|
|
1737
1752
|
};
|
|
1738
1753
|
|
|
1754
|
+
if (mExportSettings.fileType === "PDF") {
|
|
1755
|
+
Object.assign(mExportSettings, mPDFUserSettings);
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1739
1758
|
that._loadExportLibrary().then(function() {
|
|
1740
1759
|
sap.ui.require(["sap/ui/export/ExportUtils"], function(ExportUtils) {
|
|
1741
1760
|
var oProcessor = Promise.resolve();
|
|
@@ -1745,12 +1764,10 @@ sap.ui.define([
|
|
|
1745
1764
|
return oPropertyHelper.hasProperty(sPropertyName) ? oPropertyHelper.getProperty(sPropertyName).label : null;
|
|
1746
1765
|
}).then(function(oFilterConfig) {
|
|
1747
1766
|
if (oFilterConfig) {
|
|
1748
|
-
mExportSettings.workbook.context
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
]
|
|
1753
|
-
};
|
|
1767
|
+
var oContext = mExportSettings.workbook.context;
|
|
1768
|
+
|
|
1769
|
+
oContext.metaSheetName = oFilterConfig.name;
|
|
1770
|
+
oContext.metainfo = [oFilterConfig];
|
|
1754
1771
|
}
|
|
1755
1772
|
});
|
|
1756
1773
|
}
|
|
@@ -1795,10 +1812,11 @@ sap.ui.define([
|
|
|
1795
1812
|
|
|
1796
1813
|
this._loadExportLibrary().then(function() {
|
|
1797
1814
|
sap.ui.require(['sap/ui/export/ExportUtils'], function(ExportUtils) {
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1815
|
+
that.getControlDelegate().fetchExportCapabilities().then(function(oExportCapabilities) {
|
|
1816
|
+
ExportUtils.getExportSettingsViaDialog(that._cachedExportSettings, that, undefined, oExportCapabilities).then(function(oUserInput) {
|
|
1817
|
+
that._cachedExportSettings = oUserInput;
|
|
1818
|
+
that._onExport(oUserInput);
|
|
1819
|
+
});
|
|
1802
1820
|
});
|
|
1803
1821
|
});
|
|
1804
1822
|
});
|
|
@@ -2395,14 +2413,14 @@ sap.ui.define([
|
|
|
2395
2413
|
this._onColumnPress(oEvent.getParameter("column"));
|
|
2396
2414
|
};
|
|
2397
2415
|
|
|
2398
|
-
// TODO: maybe selectedContexts should be an association
|
|
2399
|
-
// TODO: The API is unstable/unreliable in GridTable scenarios and has to be worked upon
|
|
2400
2416
|
/**
|
|
2401
|
-
* Gets contexts
|
|
2417
|
+
* Gets contexts that have been selected by the user.
|
|
2402
2418
|
*
|
|
2403
|
-
* @returns {
|
|
2419
|
+
* @returns {sap.ui.model.Context[]} The selected contexts
|
|
2404
2420
|
* @private
|
|
2405
|
-
* @
|
|
2421
|
+
* @ui5-restricted sap.fe
|
|
2422
|
+
* MDC_PUBLIC_CANDIDATE
|
|
2423
|
+
* @experimental The API is subject to change.
|
|
2406
2424
|
*/
|
|
2407
2425
|
Table.prototype.getSelectedContexts = function() {
|
|
2408
2426
|
if (this._oTable) {
|
|
@@ -2420,9 +2438,11 @@ sap.ui.define([
|
|
|
2420
2438
|
};
|
|
2421
2439
|
|
|
2422
2440
|
/**
|
|
2423
|
-
*
|
|
2441
|
+
* Clears the selection.
|
|
2424
2442
|
*
|
|
2425
2443
|
* @private
|
|
2444
|
+
* @ui5-restricted sap.fe
|
|
2445
|
+
* MDC_PUBLIC_CANDIDATE
|
|
2426
2446
|
*/
|
|
2427
2447
|
Table.prototype.clearSelection = function() {
|
|
2428
2448
|
if (this._oTable) {
|
|
@@ -2438,7 +2458,7 @@ sap.ui.define([
|
|
|
2438
2458
|
|
|
2439
2459
|
Table.prototype._registerInnerFilter = function(oFilter) {
|
|
2440
2460
|
oFilter.attachSearch(function() {
|
|
2441
|
-
this.
|
|
2461
|
+
this._rebind();
|
|
2442
2462
|
}, this);
|
|
2443
2463
|
};
|
|
2444
2464
|
|
|
@@ -2467,7 +2487,7 @@ sap.ui.define([
|
|
|
2467
2487
|
|
|
2468
2488
|
var oBindingInfo = {};
|
|
2469
2489
|
|
|
2470
|
-
this.getControlDelegate().updateBindingInfo(this,
|
|
2490
|
+
this.getControlDelegate().updateBindingInfo(this, oBindingInfo);
|
|
2471
2491
|
|
|
2472
2492
|
if (oBindingInfo.path) {
|
|
2473
2493
|
this._oTable.setShowOverlay(false);
|
|
@@ -2604,7 +2624,7 @@ sap.ui.define([
|
|
|
2604
2624
|
};
|
|
2605
2625
|
|
|
2606
2626
|
/**
|
|
2607
|
-
* Gets the row count of the table
|
|
2627
|
+
* Gets the row count of the table.
|
|
2608
2628
|
*
|
|
2609
2629
|
* @private
|
|
2610
2630
|
* @returns {int} the row count
|
|
@@ -2689,20 +2709,15 @@ sap.ui.define([
|
|
|
2689
2709
|
}
|
|
2690
2710
|
};
|
|
2691
2711
|
|
|
2692
|
-
// TODO: Delete!
|
|
2693
|
-
Table.prototype.rebindTable = function() {
|
|
2694
|
-
this.rebind();
|
|
2695
|
-
};
|
|
2696
|
-
|
|
2697
2712
|
/**
|
|
2698
2713
|
* Rebinds the table rows.
|
|
2699
2714
|
*/
|
|
2700
|
-
Table.prototype.
|
|
2715
|
+
Table.prototype._rebind = function() {
|
|
2701
2716
|
// Bind the rows/items of the table, only once it is initialized.
|
|
2702
2717
|
if (this._bFullyInitialized) {
|
|
2703
2718
|
this.bindRows();
|
|
2704
2719
|
} else {
|
|
2705
|
-
this._fullyInitialized().then(this.
|
|
2720
|
+
this._fullyInitialized().then(this._rebind.bind(this));
|
|
2706
2721
|
}
|
|
2707
2722
|
};
|
|
2708
2723
|
|
|
@@ -2743,7 +2758,7 @@ sap.ui.define([
|
|
|
2743
2758
|
};
|
|
2744
2759
|
|
|
2745
2760
|
/**
|
|
2746
|
-
*
|
|
2761
|
+
* Terminates the <code>MDCTable</code> control.
|
|
2747
2762
|
* @private
|
|
2748
2763
|
*/
|
|
2749
2764
|
Table.prototype.exit = function() {
|
|
@@ -14,12 +14,14 @@ sap.ui.define([
|
|
|
14
14
|
"use strict";
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
|
-
* Base delegate
|
|
17
|
+
* Base delegate for {@link sap.ui.mdc.Table}.
|
|
18
18
|
*
|
|
19
19
|
* @author SAP SE
|
|
20
|
+
* @namespace
|
|
21
|
+
* @alias module:sap/ui/mdc/TableDelegate
|
|
22
|
+
* @extends module:sap/ui/mdc/AggregationBaseDelegate
|
|
20
23
|
* @experimental
|
|
21
24
|
* @since 1.60
|
|
22
|
-
* @alias sap.ui.mdc.TableDelegate
|
|
23
25
|
* @private
|
|
24
26
|
* @ui5-restricted sap.fe
|
|
25
27
|
* MDC_PUBLIC_CANDIDATE
|
|
@@ -30,11 +32,10 @@ sap.ui.define([
|
|
|
30
32
|
* Provides a hook to update the binding info object that is used to bind the table to the model.
|
|
31
33
|
*
|
|
32
34
|
* @param {sap.ui.mdc.Table} oMDCTable Instance of the MDC table
|
|
33
|
-
* @param {object} oDelegatePayload The delegate payload
|
|
34
35
|
* @param {sap.ui.base.ManagedObject.AggregationBindingInfo} oBindingInfo The binding info object to be used to bind the table to the model
|
|
35
36
|
* @protected
|
|
36
37
|
*/
|
|
37
|
-
TableDelegate.updateBindingInfo = function(oMDCTable,
|
|
38
|
+
TableDelegate.updateBindingInfo = function(oMDCTable, oBindingInfo) {
|
|
38
39
|
oBindingInfo.parameters = {};
|
|
39
40
|
|
|
40
41
|
if (oMDCTable._oMessageFilter) {
|
|
@@ -49,15 +50,15 @@ sap.ui.define([
|
|
|
49
50
|
* Updates the row binding of the table.
|
|
50
51
|
*
|
|
51
52
|
* The default implementation rebinds the table, but model-specific subclasses must call dedicated binding methods to update the binding instead
|
|
52
|
-
* of using {@link #
|
|
53
|
+
* of using {@link #rebind}.
|
|
53
54
|
*
|
|
54
|
-
* @param {sap.ui.mdc.Table} oMDCTable Instance of the
|
|
55
|
+
* @param {sap.ui.mdc.Table} oMDCTable Instance of the table
|
|
55
56
|
* @param {sap.ui.base.ManagedObject.AggregationBindingInfo} oBindingInfo The binding info object to be used to bind the table to the model
|
|
56
57
|
* @param {sap.ui.model.ListBinding} [oBinding] The binding instance of the table
|
|
57
58
|
* @protected
|
|
58
59
|
*/
|
|
59
60
|
TableDelegate.updateBinding = function(oMDCTable, oBindingInfo, oBinding) {
|
|
60
|
-
this.
|
|
61
|
+
this.rebind(oMDCTable, oBindingInfo);
|
|
61
62
|
};
|
|
62
63
|
|
|
63
64
|
TableDelegate.validateState = function(oControl, oState, sKey) {
|
|
@@ -79,16 +80,16 @@ sap.ui.define([
|
|
|
79
80
|
* @param {sap.ui.base.ManagedObject.AggregationBindingInfo} oBindingInfo The binding info object to be used to bind the table to the model
|
|
80
81
|
* @protected
|
|
81
82
|
*/
|
|
82
|
-
TableDelegate.
|
|
83
|
+
TableDelegate.rebind = function (oMDCTable, oBindingInfo) {
|
|
83
84
|
if (oMDCTable._oTable) {
|
|
84
85
|
oMDCTable._oTable.bindRows(oBindingInfo);
|
|
85
86
|
}
|
|
86
87
|
};
|
|
87
88
|
|
|
88
89
|
/**
|
|
89
|
-
* Returns the filter delegate of the table that provides basic filter functionality such as adding filter fields.
|
|
90
|
-
* <b>Note:</b> The functionality provided in this delegate
|
|
91
|
-
*
|
|
90
|
+
* Returns the filter delegate of the table that provides basic filter functionality, such as adding filter fields.
|
|
91
|
+
* <b>Note:</b> The functionality provided in this delegate acts as a subset of a <code>FilterBarDelegate</code> to enable the table for inbuilt
|
|
92
|
+
* filtering.
|
|
92
93
|
*
|
|
93
94
|
* @example <caption>Example usage of <code>getFilterDelegate</code></caption>
|
|
94
95
|
* oFilterDelegate = {
|
|
@@ -107,7 +108,7 @@ sap.ui.define([
|
|
|
107
108
|
*
|
|
108
109
|
* @param {string} sPropertyName The property name
|
|
109
110
|
* @param {sap.ui.mdc.Table} oTable Instance of the table
|
|
110
|
-
* @returns {Promise<sap.ui.mdc.FilterField>} Promise that resolves with an instance of a <code>sap.ui.mdc.FilterField</code>.
|
|
111
|
+
* @returns {Promise<sap.ui.mdc.FilterField>} <code>Promise</code> that resolves with an instance of a <code>sap.ui.mdc.FilterField</code>.
|
|
111
112
|
* @see sap.ui.mdc.AggregationBaseDelegate#addItem
|
|
112
113
|
*/
|
|
113
114
|
addItem: function(sPropertyName, oTable) {
|
|
@@ -116,5 +117,32 @@ sap.ui.define([
|
|
|
116
117
|
};
|
|
117
118
|
};
|
|
118
119
|
|
|
120
|
+
/**
|
|
121
|
+
* Returns the feature set for exporting data in the MDC Table.
|
|
122
|
+
*
|
|
123
|
+
* @returns {Promise} Export capabilities with specific features
|
|
124
|
+
* @protected
|
|
125
|
+
*/
|
|
126
|
+
TableDelegate.fetchExportCapabilities = function() {
|
|
127
|
+
var oExportCapabilities = {
|
|
128
|
+
"XLSX": {} // default
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
// This is a temporary approach for testing purposes
|
|
132
|
+
if (new URL(window.location.href).search.indexOf("sap-ui-xx-enablePDFExport=true") > -1) {
|
|
133
|
+
oExportCapabilities["PDF"] = {
|
|
134
|
+
DocumentDescriptionReference: "../../../../default/iwbep/common/0001/$metadata",
|
|
135
|
+
DocumentDescriptionCollection: "MyDocumentDescriptions",
|
|
136
|
+
ArchiveFormat: true,
|
|
137
|
+
Signature: true,
|
|
138
|
+
CoverPage: true,
|
|
139
|
+
FitToPage: false,
|
|
140
|
+
ResultSizeDefault: 5000,
|
|
141
|
+
ResultSizeMaximum: 20000
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
return Promise.resolve(oExportCapabilities);
|
|
145
|
+
};
|
|
146
|
+
|
|
119
147
|
return TableDelegate;
|
|
120
148
|
});
|
|
@@ -69,13 +69,14 @@ sap.ui.define([
|
|
|
69
69
|
* @class Element for the <code>FieldHelp</code> association in the <code>FieldBase</code> controls.
|
|
70
70
|
* @extends sap.ui.mdc.Element
|
|
71
71
|
* @implements sap.ui.core.PopupInterface
|
|
72
|
-
* @version 1.
|
|
72
|
+
* @version 1.99.1
|
|
73
73
|
* @constructor
|
|
74
74
|
* @abstract
|
|
75
75
|
* @private
|
|
76
76
|
* @ui5-restricted sap.fe
|
|
77
77
|
* @MDC_PUBLIC_CANDIDATE
|
|
78
|
-
* @since 1.
|
|
78
|
+
* @since 1.95.0
|
|
79
|
+
* @experimental As of version 1.95
|
|
79
80
|
* @alias sap.ui.mdc.ValueHelp
|
|
80
81
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
81
82
|
*/
|
|
@@ -454,6 +455,11 @@ sap.ui.define([
|
|
|
454
455
|
ValueHelp.prototype.open = function(bTypeahead) {
|
|
455
456
|
var oContainer = bTypeahead ? this.getTypeahead() : _getValueHelpContainer.call(this);
|
|
456
457
|
|
|
458
|
+
var oOtherContainer = bTypeahead ? this.getDialog() : this.getTypeahead();
|
|
459
|
+
if (oOtherContainer && oContainer !== oOtherContainer && (oOtherContainer.isOpen() || oOtherContainer.isOpening())) {
|
|
460
|
+
oOtherContainer.close(); // TODO: Check container to be fully closed via promise
|
|
461
|
+
}
|
|
462
|
+
|
|
457
463
|
if (oContainer && !oContainer.isOpen() && !oContainer.isOpening()) {
|
|
458
464
|
this._removePromise("delegateContent" + "--" + oContainer.getId());
|
|
459
465
|
oContainer.open(this._retrieveDelegateContent(oContainer, true));
|
|
@@ -765,11 +771,13 @@ sap.ui.define([
|
|
|
765
771
|
|
|
766
772
|
return oTypeahead.getItemForValue(oConfig).then(function(oItem) {
|
|
767
773
|
_cleanupParameterBinding.call(this, aInBindings);
|
|
768
|
-
if (oItem
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
774
|
+
if (oItem) {
|
|
775
|
+
if (oItem.inParameters) {
|
|
776
|
+
oItem.inParameters = _mapParametersToField.call(this, oItem.inParameters, this.getInParameters());
|
|
777
|
+
}
|
|
778
|
+
if (oItem.outParameters) {
|
|
779
|
+
oItem.outParameters = _mapParametersToField.call(this, oItem.outParameters, this.getOutParameters());
|
|
780
|
+
}
|
|
773
781
|
}
|
|
774
782
|
return oItem;
|
|
775
783
|
}.bind(this));
|
|
@@ -1124,14 +1132,16 @@ sap.ui.define([
|
|
|
1124
1132
|
if (!vValue && bInitialValueFilterEmpty) {
|
|
1125
1133
|
oCondition = Condition.createCondition("Empty", []);
|
|
1126
1134
|
oCondition.isEmpty = false; // no explicit check needed
|
|
1127
|
-
} else {
|
|
1135
|
+
} else if (vValue !== null) {
|
|
1128
1136
|
// TODO: way to provide description on InParameter
|
|
1129
1137
|
// validated to let FilterField determine description if visible on FilterBar.
|
|
1130
1138
|
// Also to show it as selected on table in FieldHelp of FilterField.
|
|
1131
1139
|
oCondition = Condition.createItemCondition(vValue);
|
|
1132
1140
|
oCondition.validated = ConditionValidated.Validated;
|
|
1133
1141
|
}
|
|
1134
|
-
|
|
1142
|
+
if (oCondition) {
|
|
1143
|
+
oInConditions[sFilterPath].push(oCondition);
|
|
1144
|
+
}
|
|
1135
1145
|
}
|
|
1136
1146
|
|
|
1137
1147
|
this.setProperty("_inConditions", oInConditions, true);
|
|
@@ -21,7 +21,7 @@ sap.ui.define([
|
|
|
21
21
|
* @class The action for an {@link sap.ui.mdc.ActionToolbar ActionToolbar}) control
|
|
22
22
|
* @extends sap.ui.core.Control
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.99.1
|
|
25
25
|
* @constructor
|
|
26
26
|
* @private
|
|
27
27
|
* @since 1.58
|
|
@@ -93,7 +93,7 @@ sap.ui.define([
|
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
95
|
*
|
|
96
|
-
* @returns {
|
|
96
|
+
* @returns {string} a text defining the label of this <code>ActionToolbarAction</code> defined by the inner action.
|
|
97
97
|
*/
|
|
98
98
|
ActionToolbarAction.prototype.getLabel = function() {
|
|
99
99
|
var oAction = this.getAction();
|
package/src/sap/ui/mdc/{chartNew/ChartSelectionDetailsNew.js → chart/ChartSelectionDetails.js}
RENAMED
|
@@ -11,7 +11,7 @@ sap.ui.define([
|
|
|
11
11
|
"sap/m/SelectionDetailsItem",
|
|
12
12
|
"sap/m/SelectionDetailsItemLine",
|
|
13
13
|
"sap/m/SelectionDetailsRenderer",
|
|
14
|
-
"./
|
|
14
|
+
"./SelectionDetailsActions"
|
|
15
15
|
],
|
|
16
16
|
function (
|
|
17
17
|
Core,
|
|
@@ -26,24 +26,24 @@ sap.ui.define([
|
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
/**
|
|
29
|
-
* Constructor for a new
|
|
29
|
+
* Constructor for a new ChartSelectionDetails.
|
|
30
30
|
*
|
|
31
31
|
* @param {string} [sId] id for the new control, generated automatically if no id is given
|
|
32
32
|
* @param {object} [mSettings] initial settings for the new control
|
|
33
|
-
* @class The
|
|
33
|
+
* @class The ChartSelectionDetails control creates a sap.m.SelectionDetails popover based on metadata and the configuration specified.
|
|
34
34
|
* @extends sap.m.SelectionDetails
|
|
35
35
|
* @author SAP SE
|
|
36
|
-
* @version 1.
|
|
36
|
+
* @version 1.99.1
|
|
37
37
|
* @constructor
|
|
38
38
|
* @experimental As of version ...
|
|
39
39
|
* @private
|
|
40
40
|
* @ui5-restricted sap.fe
|
|
41
41
|
* @MDC_PUBLIC_CANDIDATE
|
|
42
42
|
* @since 1.88
|
|
43
|
-
* @alias sap.ui.mdc.
|
|
43
|
+
* @alias sap.ui.mdc.chart.ChartSelectionDetails
|
|
44
44
|
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
45
45
|
*/
|
|
46
|
-
var ChartSelectionDetails = SelectionDetails.extend("sap.ui.mdc.
|
|
46
|
+
var ChartSelectionDetails = SelectionDetails.extend("sap.ui.mdc.chart.ChartSelectionDetails", /** @lends sap.ui.mdc.chart.ChartSelectionDetails.prototype */ {
|
|
47
47
|
metadata: {
|
|
48
48
|
library: "sap.ui.mdc",
|
|
49
49
|
interfaces: [
|
|
@@ -110,7 +110,7 @@ sap.ui.define([
|
|
|
110
110
|
ChartSelectionDetails.prototype._hasNavigationTargets = function(aData) {
|
|
111
111
|
return false;
|
|
112
112
|
};
|
|
113
|
-
//TODO: Consider implementation and handling within
|
|
113
|
+
//TODO: Consider implementation and handling within ChartToolbar like the update of actions as well
|
|
114
114
|
ChartSelectionDetails.prototype._attachEvents = function() {
|
|
115
115
|
// Attach to navigation event of selectionDetails
|
|
116
116
|
// for semantic object navigation
|
|
@@ -145,4 +145,4 @@ sap.ui.define([
|
|
|
145
145
|
};
|
|
146
146
|
|
|
147
147
|
return ChartSelectionDetails;
|
|
148
|
-
}
|
|
148
|
+
});
|