@openui5/sap.ui.mdc 1.92.0 → 1.95.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.reuse/dep5 +1 -6
- package/THIRDPARTY.txt +4 -10
- 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/AggregationBaseDelegate.js +2 -1
- package/src/sap/ui/mdc/Chart.js +14 -6
- package/src/sap/ui/mdc/ChartDelegate.js +1 -1
- package/src/sap/ui/mdc/ChartNew.js +104 -32
- package/src/sap/ui/mdc/Control.js +1 -1
- package/src/sap/ui/mdc/Element.js +2 -2
- package/src/sap/ui/mdc/Field.js +15 -2
- package/src/sap/ui/mdc/FilterBar.js +11 -1
- package/src/sap/ui/mdc/FilterField.js +28 -4
- package/src/sap/ui/mdc/Link.js +2 -2
- package/src/sap/ui/mdc/MultiValueField.js +406 -0
- package/src/sap/ui/mdc/Table.js +166 -102
- package/src/sap/ui/mdc/TableDelegate.js +30 -21
- package/src/sap/ui/mdc/ValueHelp.js +1459 -0
- package/src/sap/ui/mdc/ValueHelpDelegate.js +41 -0
- package/src/sap/ui/mdc/chart/ToolbarHandler.js +233 -223
- package/src/sap/ui/mdc/chartNew/ChartSelectionDetailsNew.js +1 -1
- package/src/sap/ui/mdc/chartNew/ChartToolbarNew.js +9 -18
- package/src/sap/ui/mdc/chartNew/ChartTypeButtonNew.js +1 -1
- package/src/sap/ui/mdc/chartNew/DrillStackHandlerNew.js +1 -1
- package/src/sap/ui/mdc/chartNew/ItemNew.js +1 -1
- package/src/sap/ui/mdc/chartNew/PropertyHelperNew.js +1 -1
- package/src/sap/ui/mdc/condition/Condition.js +2 -2
- 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 +27 -15
- package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +15 -9
- package/src/sap/ui/mdc/condition/Operator.js +13 -8
- package/src/sap/ui/mdc/condition/RangeOperator.js +3 -6
- package/src/sap/ui/mdc/designtime/filterbar/FilterBar.designtime.js +1 -0
- package/src/sap/ui/mdc/enum/SelectType.js +43 -0
- package/src/sap/ui/mdc/field/BoolFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/ConditionFieldHelp.js +5 -4
- package/src/sap/ui/mdc/field/ConditionType.js +69 -33
- package/src/sap/ui/mdc/field/ConditionsType.js +4 -3
- 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 +38 -24
- package/src/sap/ui/mdc/field/FieldBase.js +106 -42
- package/src/sap/ui/mdc/field/FieldBaseDelegate.js +25 -2
- package/src/sap/ui/mdc/field/FieldHelpBase.js +64 -4
- 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 +55 -33
- 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 +52 -32
- package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +8 -10
- package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +2 -1
- package/src/sap/ui/mdc/field/InParameter.js +1 -1
- package/src/sap/ui/mdc/field/ListFieldHelp.js +3 -3
- package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -1
- package/src/sap/ui/mdc/field/MultiValueFieldDelegate.js +49 -0
- package/src/sap/ui/mdc/field/MultiValueFieldItem.js +70 -0
- package/src/sap/ui/mdc/field/OutParameter.js +1 -1
- package/src/sap/ui/mdc/field/ValueHelpPanel.js +1 -1
- package/src/sap/ui/mdc/field/content/ContentFactory.js +2 -2
- package/src/sap/ui/mdc/filterbar/FilterBarBase.js +146 -76
- package/src/sap/ui/mdc/filterbar/PropertyHelper.js +52 -0
- package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +4 -20
- package/src/sap/ui/mdc/filterbar/p13n/FilterGroupLayout.js +9 -3
- package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +1 -1
- package/src/sap/ui/mdc/filterbar/vh/GenericFilterBarDelegate.js +55 -39
- package/src/sap/ui/mdc/flexibility/AggregateFlex.js +31 -22
- package/src/sap/ui/mdc/flexibility/AggregationConfigFlex.js +33 -29
- package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +10 -5
- package/src/sap/ui/mdc/flexibility/ChartItemFlex.js +18 -6
- package/src/sap/ui/mdc/flexibility/ColumnFlex.js +15 -4
- package/src/sap/ui/mdc/flexibility/ConditionFlex.js +92 -79
- 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/GroupFlex.js +70 -52
- package/src/sap/ui/mdc/flexibility/ItemBaseFlex.js +184 -115
- package/src/sap/ui/mdc/flexibility/Panel.flexibility.js +59 -41
- package/src/sap/ui/mdc/flexibility/SortFlex.js +72 -54
- package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +2 -1
- package/src/sap/ui/mdc/library.js +618 -7
- 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 +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 +1 -1
- 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/SelectionDialog.js +1 -1
- package/src/sap/ui/mdc/link/SelectionDialogItem.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 +20 -8
- package/src/sap/ui/mdc/messagebundle_ar.properties +16 -6
- package/src/sap/ui/mdc/messagebundle_bg.properties +15 -5
- package/src/sap/ui/mdc/messagebundle_ca.properties +15 -5
- package/src/sap/ui/mdc/messagebundle_cs.properties +17 -7
- package/src/sap/ui/mdc/messagebundle_cy.properties +15 -5
- package/src/sap/ui/mdc/messagebundle_da.properties +15 -5
- package/src/sap/ui/mdc/messagebundle_de.properties +23 -13
- package/src/sap/ui/mdc/messagebundle_el.properties +16 -6
- package/src/sap/ui/mdc/messagebundle_en.properties +14 -4
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +15 -5
- package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +12 -4
- package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +3 -1
- package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +12 -4
- package/src/sap/ui/mdc/messagebundle_es.properties +40 -30
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +15 -5
- package/src/sap/ui/mdc/messagebundle_et.properties +15 -5
- package/src/sap/ui/mdc/messagebundle_fi.properties +16 -6
- package/src/sap/ui/mdc/messagebundle_fr.properties +27 -17
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +15 -5
- package/src/sap/ui/mdc/messagebundle_hi.properties +13 -3
- package/src/sap/ui/mdc/messagebundle_hr.properties +15 -5
- package/src/sap/ui/mdc/messagebundle_hu.properties +16 -6
- package/src/sap/ui/mdc/messagebundle_id.properties +14 -4
- package/src/sap/ui/mdc/messagebundle_it.properties +38 -28
- package/src/sap/ui/mdc/messagebundle_iw.properties +15 -5
- package/src/sap/ui/mdc/messagebundle_ja.properties +16 -6
- package/src/sap/ui/mdc/messagebundle_kk.properties +15 -5
- package/src/sap/ui/mdc/messagebundle_ko.properties +13 -3
- package/src/sap/ui/mdc/messagebundle_lt.properties +15 -5
- package/src/sap/ui/mdc/messagebundle_lv.properties +15 -5
- package/src/sap/ui/mdc/messagebundle_ms.properties +13 -3
- package/src/sap/ui/mdc/messagebundle_nl.properties +16 -6
- package/src/sap/ui/mdc/messagebundle_no.properties +22 -12
- package/src/sap/ui/mdc/messagebundle_pl.properties +19 -9
- package/src/sap/ui/mdc/messagebundle_pt.properties +15 -5
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +14 -4
- package/src/sap/ui/mdc/messagebundle_ro.properties +18 -8
- package/src/sap/ui/mdc/messagebundle_ru.properties +15 -5
- package/src/sap/ui/mdc/messagebundle_sh.properties +15 -5
- package/src/sap/ui/mdc/messagebundle_sk.properties +16 -6
- package/src/sap/ui/mdc/messagebundle_sl.properties +15 -5
- package/src/sap/ui/mdc/messagebundle_sv.properties +16 -6
- package/src/sap/ui/mdc/messagebundle_th.properties +19 -9
- package/src/sap/ui/mdc/messagebundle_tr.properties +15 -5
- package/src/sap/ui/mdc/messagebundle_uk.properties +16 -6
- package/src/sap/ui/mdc/messagebundle_vi.properties +15 -5
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +13 -3
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +13 -3
- package/src/sap/ui/mdc/mixin/AdaptationMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/DelegateMixin.js +2 -2
- package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +28 -16
- package/src/sap/ui/mdc/mixin/PromiseMixin.js +94 -0
- package/src/sap/ui/mdc/odata/json/FilterBarDelegate.js +9 -8
- package/src/sap/ui/mdc/odata/v4/ChartDelegate.js +5 -5
- package/src/sap/ui/mdc/odata/v4/ChartPropertyHelperNew.js +1 -1
- package/src/sap/ui/mdc/odata/v4/FieldBaseDelegate.js +9 -0
- package/src/sap/ui/mdc/odata/v4/FilterBarDelegate.js +88 -80
- package/src/sap/ui/mdc/odata/v4/TableDelegate.js +37 -10
- package/src/sap/ui/mdc/odata/v4/TypeUtil.js +17 -0
- package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +94 -0
- package/src/sap/ui/mdc/odata/v4/util/DelegateUtil.js +45 -53
- package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegateNew.js +302 -179
- package/src/sap/ui/mdc/p13n/DefaultProviderRegistry.js +1 -1
- package/src/sap/ui/mdc/p13n/Engine.js +21 -16
- package/src/sap/ui/mdc/p13n/P13nBuilder.js +5 -59
- package/src/sap/ui/mdc/p13n/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/p13n/UIManager.js +1 -1
- package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +130 -53
- package/src/sap/ui/mdc/p13n/panels/BasePanel.js +16 -7
- package/src/sap/ui/mdc/p13n/panels/GroupPanel.js +1 -1
- package/src/sap/ui/mdc/p13n/panels/ListView.js +58 -2
- package/src/sap/ui/mdc/p13n/panels/QueryPanel.js +17 -10
- package/src/sap/ui/mdc/p13n/panels/SortQueryPanel.js +6 -1
- package/src/sap/ui/mdc/p13n/panels/Wrapper.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/ColumnController.js +10 -11
- package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +13 -1
- package/src/sap/ui/mdc/p13n/subcontroller/GroupController.js +1 -1
- package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +11 -2
- package/src/sap/ui/mdc/table/Column.js +21 -4
- package/src/sap/ui/mdc/table/CreationRow.js +1 -1
- package/src/sap/ui/mdc/table/PropertyHelper.js +176 -4
- package/src/sap/ui/mdc/table/ResponsiveTableType.js +11 -1
- package/src/sap/ui/mdc/table/RowSettings.js +1 -1
- package/src/sap/ui/mdc/table/TableSettings.js +4 -49
- package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +1 -1
- package/src/sap/ui/mdc/themes/base/FieldBase.less +4 -0
- package/src/sap/ui/mdc/themes/base/FilterBar.less +2 -2
- package/src/sap/ui/mdc/themes/base/GroupView.less +2 -2
- package/src/sap/ui/mdc/themes/base/ListView.less +2 -2
- package/src/sap/ui/mdc/themes/base/ValueHelpDialog.less +56 -21
- package/src/sap/ui/mdc/ui/Container.js +3 -3
- package/src/sap/ui/mdc/ui/ContainerItem.js +2 -2
- package/src/sap/ui/mdc/util/Common.js +26 -0
- package/src/sap/ui/mdc/util/FilterUtil.js +68 -16
- package/src/sap/ui/mdc/util/IdentifierUtil.js +4 -0
- package/src/sap/ui/mdc/util/PromiseCache.js +266 -0
- package/src/sap/ui/mdc/util/PropertyHelper.js +27 -2
- package/src/sap/ui/mdc/valuehelp/Dialog.js +475 -0
- package/src/sap/ui/mdc/valuehelp/Popover.js +346 -0
- package/src/sap/ui/mdc/valuehelp/base/Container.js +440 -0
- package/src/sap/ui/mdc/valuehelp/base/Content.js +442 -0
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +96 -0
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +537 -0
- package/src/sap/ui/mdc/valuehelp/base/ListContent.js +105 -0
- package/src/sap/ui/mdc/valuehelp/content/Bool.js +232 -0
- package/src/sap/ui/mdc/valuehelp/content/Conditions.js +250 -0
- package/src/sap/ui/mdc/valuehelp/content/FixedList.js +504 -0
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +619 -0
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +881 -0
- package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +2 -2
- package/test/sap/ui/mdc/testutils/opa/filterbar/Actions.js +250 -0
- package/test/sap/ui/mdc/testutils/opa/filterbar/Assertions.js +91 -0
- package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +137 -0
- package/test/sap/ui/mdc/testutils/opa/filterbar/Util.js +25 -0
- package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +256 -94
- package/test/sap/ui/mdc/testutils/opa/p13n/Util.js +2 -1
- package/test/sap/ui/mdc/testutils/opa/p13n/{waitForP13nButtonWithParentAndIcon.js → waitForP13nButtonWithMatchers.js} +5 -18
- package/test/sap/ui/mdc/testutils/opa/table/TestObjects.js +0 -1
package/.reuse/dep5
CHANGED
|
@@ -309,7 +309,7 @@ License: MIT
|
|
|
309
309
|
Comment: these files belong to: lodash
|
|
310
310
|
|
|
311
311
|
Files: src/sap.ui.core/src/sap/ui/thirdparty/hyphenopoly/*
|
|
312
|
-
Copyright:
|
|
312
|
+
Copyright: 2021 Mathias Nater
|
|
313
313
|
License: MIT
|
|
314
314
|
Comment: these files belong to: Hyphenopoly
|
|
315
315
|
|
|
@@ -347,11 +347,6 @@ Copyright: 2013 Ariya Hidayat and other contributors
|
|
|
347
347
|
License: BSD-2-Clause
|
|
348
348
|
Comment: these files belong to: Esprima
|
|
349
349
|
|
|
350
|
-
Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/google-code-prettify/*
|
|
351
|
-
Copyright: 2006 Google Inc.
|
|
352
|
-
License: Apache-2.0
|
|
353
|
-
Comment: these files belong to: google-code-prettify
|
|
354
|
-
|
|
355
350
|
Files: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/highlight.js/*
|
|
356
351
|
Copyright: 2006-2020, Ivan Sagalaev
|
|
357
352
|
License: BSD-3-Clause
|
package/THIRDPARTY.txt
CHANGED
|
@@ -6,7 +6,7 @@ The full text of all referenced licenses is appended at the end of this file.
|
|
|
6
6
|
|
|
7
7
|
Library: sap.ui.codeeditor:
|
|
8
8
|
|
|
9
|
-
Component: Ace (Ajax.org Cloud9 Editor), version: 1.4.
|
|
9
|
+
Component: Ace (Ajax.org Cloud9 Editor), version: 1.4.12
|
|
10
10
|
Copyright: 2010, Ajax.org B.V.
|
|
11
11
|
License: BSD-3-Clause
|
|
12
12
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-3-Clause.txt
|
|
@@ -279,8 +279,8 @@ License: MIT
|
|
|
279
279
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
280
280
|
Contained in: src/sap.ui.core/src/sap/ui/base/util/restricted/_/lodash.custom.js
|
|
281
281
|
|
|
282
|
-
Component: Hyphenopoly, version:
|
|
283
|
-
Copyright:
|
|
282
|
+
Component: Hyphenopoly, version: 3.4.0
|
|
283
|
+
Copyright: 2021 Mathias Nater
|
|
284
284
|
License: MIT
|
|
285
285
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
|
286
286
|
Contained in: src/sap.ui.core/src/sap/ui/thirdparty/hyphenopoly/*
|
|
@@ -324,12 +324,6 @@ License: BSD-2-Clause
|
|
|
324
324
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/BSD-2-Clause.txt
|
|
325
325
|
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/esprima.js
|
|
326
326
|
|
|
327
|
-
Component: google-code-prettify, version: 20130304
|
|
328
|
-
Copyright: 2006 Google Inc.
|
|
329
|
-
License: Apache-2.0
|
|
330
|
-
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Apache-2.0.txt
|
|
331
|
-
Contained in: src/sap.ui.documentation/src/sap/ui/documentation/sdk/thirdparty/google-code-prettify/*
|
|
332
|
-
|
|
333
327
|
Component: highlight.js, version: 10.4.1
|
|
334
328
|
Copyright: 2006-2020, Ivan Sagalaev
|
|
335
329
|
License: BSD-3-Clause
|
|
@@ -376,7 +370,7 @@ License: Unicode-DFS-2015
|
|
|
376
370
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/Unicode-DFS-2015.txt
|
|
377
371
|
Contained in: src/sap.ui.integration/src/sap/ui/integration/thirdparty/webcomponents/Unicode-Data-Files-LICENSE.txt
|
|
378
372
|
|
|
379
|
-
Component: Adaptive Cards, version:
|
|
373
|
+
Component: Adaptive Cards, version: 2.9.0
|
|
380
374
|
Copyright: 2017 Microsoft
|
|
381
375
|
License: MIT
|
|
382
376
|
License Text: https://github.com/SAP/openui5/blob/master/LICENSES/MIT.txt
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openui5/sap.ui.mdc",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.95.0",
|
|
4
4
|
"description": "OpenUI5 UI Library sap.ui.mdc",
|
|
5
5
|
"author": "SAP SE (https://www.sap.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"url": "https://github.com/SAP/openui5.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@openui5/sap.m": "1.
|
|
18
|
-
"@openui5/sap.ui.core": "1.
|
|
19
|
-
"@openui5/sap.ui.layout": "1.
|
|
17
|
+
"@openui5/sap.m": "1.95.0",
|
|
18
|
+
"@openui5/sap.ui.core": "1.95.0",
|
|
19
|
+
"@openui5/sap.ui.layout": "1.95.0"
|
|
20
20
|
}
|
|
21
21
|
}
|
package/src/sap/ui/mdc/.library
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<copyright>OpenUI5
|
|
7
7
|
* (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
|
|
8
8
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
|
|
9
|
-
<version>1.
|
|
9
|
+
<version>1.95.0</version>
|
|
10
10
|
|
|
11
11
|
<documentation>UI5 library: sap.ui.mdc</documentation>
|
|
12
12
|
|
|
@@ -21,7 +21,7 @@ sap.ui.define([
|
|
|
21
21
|
* @class The column for the metadata driven table, that hold the template to be shown when the rows has data.
|
|
22
22
|
* @extends sap.m.OverflowToolbar
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.95.0
|
|
25
25
|
* @constructor
|
|
26
26
|
* @private
|
|
27
27
|
* @experimental
|
|
@@ -98,7 +98,8 @@ sap.ui.define(['sap/ui/mdc/BaseDelegate', 'sap/ui/core/library'], function (Base
|
|
|
98
98
|
|
|
99
99
|
return {
|
|
100
100
|
validation: sValidation,
|
|
101
|
-
|
|
101
|
+
/* Please provide a meaningful message here. */
|
|
102
|
+
message: undefined
|
|
102
103
|
};
|
|
103
104
|
}
|
|
104
105
|
|
package/src/sap/ui/mdc/Chart.js
CHANGED
|
@@ -69,7 +69,7 @@ sap.ui.define([
|
|
|
69
69
|
* @class The Chart control creates a chart based on metadata and the configuration specified.
|
|
70
70
|
* @extends sap.ui.mdc.Control
|
|
71
71
|
* @author SAP SE
|
|
72
|
-
* @version 1.
|
|
72
|
+
* @version 1.95.0
|
|
73
73
|
* @constructor
|
|
74
74
|
* @experimental As of version 1.61
|
|
75
75
|
* @private
|
|
@@ -350,6 +350,7 @@ sap.ui.define([
|
|
|
350
350
|
var _onSelectionMode = function(vValue) {
|
|
351
351
|
|
|
352
352
|
if (!this.oChartPromise) {
|
|
353
|
+
this._bNeedSelectionModeSet = true;
|
|
353
354
|
return;
|
|
354
355
|
}
|
|
355
356
|
|
|
@@ -477,7 +478,10 @@ sap.ui.define([
|
|
|
477
478
|
this._mStoredActions = aActions;
|
|
478
479
|
|
|
479
480
|
//Toolbar needs settings to be applied before creation to read properties like header/title
|
|
480
|
-
|
|
481
|
+
if (!this._oToolbarHandler) {
|
|
482
|
+
this._oToolbarHandler = new ToolbarHandler();
|
|
483
|
+
}
|
|
484
|
+
this._oToolbarHandler.createToolbar(this, aActions, true);
|
|
481
485
|
this._createTempNoData();
|
|
482
486
|
}
|
|
483
487
|
|
|
@@ -561,10 +565,14 @@ sap.ui.define([
|
|
|
561
565
|
|
|
562
566
|
.then(function createDrillBreadcrumbs(oInnerChart) {
|
|
563
567
|
|
|
568
|
+
if (!this._oToolbarHandler) {
|
|
569
|
+
this._oToolbarHandler = new ToolbarHandler();
|
|
570
|
+
}
|
|
571
|
+
|
|
564
572
|
if (this.getAutoBindOnInit()){
|
|
565
|
-
|
|
573
|
+
this._oToolbarHandler.createToolbar(this, aActions);
|
|
566
574
|
} else {
|
|
567
|
-
|
|
575
|
+
this._oToolbarHandler.updateToolbar(this);
|
|
568
576
|
}
|
|
569
577
|
|
|
570
578
|
this._createDrillBreadcrumbs();
|
|
@@ -583,7 +591,7 @@ sap.ui.define([
|
|
|
583
591
|
|
|
584
592
|
}.bind(this));
|
|
585
593
|
|
|
586
|
-
if (!mSettings || mSettings.selectionMode === undefined) {
|
|
594
|
+
if (!mSettings || mSettings.selectionMode === undefined || this._bNeedSelectionModeSet) {
|
|
587
595
|
_onSelectionMode.apply(this);
|
|
588
596
|
}
|
|
589
597
|
|
|
@@ -627,7 +635,7 @@ sap.ui.define([
|
|
|
627
635
|
};
|
|
628
636
|
|
|
629
637
|
Chart.prototype._onDataLoadComplete = function(mEventParams) {
|
|
630
|
-
if (mEventParams.mParameters.reason === "change" && !mEventParams.mParameters.detailedReason) {
|
|
638
|
+
if ((mEventParams.mParameters.reason === "change" || mEventParams.mParameters.reason === "filter" ) && !mEventParams.mParameters.detailedReason) {
|
|
631
639
|
this.setBusy(false);
|
|
632
640
|
}
|
|
633
641
|
};
|
|
@@ -176,7 +176,7 @@ sap.ui.define([
|
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
var aPropertiesMetadata = oFilter.getPropertyInfoSet ? oFilter.getPropertyInfoSet() : null;
|
|
179
|
-
var oFilterInfo = FilterUtil.getFilterInfo(
|
|
179
|
+
var oFilterInfo = FilterUtil.getFilterInfo(ChartDelegate.getTypeUtil(), mConditions, aPropertiesMetadata);
|
|
180
180
|
oBindingInfo.filters = oFilterInfo.filters;
|
|
181
181
|
}
|
|
182
182
|
}
|
|
@@ -57,7 +57,7 @@ sap.ui.define([
|
|
|
57
57
|
* @class The Chart control creates a chart based on metadata and the configuration specified.
|
|
58
58
|
* @extends sap.ui.mdc.Control
|
|
59
59
|
* @author SAP SE
|
|
60
|
-
* @version 1.
|
|
60
|
+
* @version 1.95.0
|
|
61
61
|
* @constructor
|
|
62
62
|
* @experimental As of version ...
|
|
63
63
|
* @private
|
|
@@ -316,15 +316,61 @@ sap.ui.define([
|
|
|
316
316
|
Chart.prototype.init = function () {
|
|
317
317
|
this._oManagedObjectModel = new ManagedObjectModel(this);
|
|
318
318
|
this.setModel(this._oManagedObjectModel, "$mdcChart");
|
|
319
|
+
this._bNewP13n = true;//TODO: remove with migration
|
|
320
|
+
Control.prototype.init.apply(this, arguments);
|
|
321
|
+
};
|
|
319
322
|
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
323
|
+
Chart.prototype.setP13nMode = function(aMode) {
|
|
324
|
+
var aSortedKeys = null;
|
|
325
|
+
if (aMode && aMode.length > 1){
|
|
326
|
+
aSortedKeys = [];
|
|
327
|
+
var mKeys = aMode.reduce(function(mMap, sKey, iIndex){
|
|
328
|
+
mMap[sKey] = true;
|
|
329
|
+
return mMap;
|
|
330
|
+
}, {});
|
|
331
|
+
|
|
332
|
+
//as the p13nMode has no strict order we need to ensure the order of tabs here
|
|
333
|
+
if (mKeys.Item) {
|
|
334
|
+
aSortedKeys.push("Item");
|
|
324
335
|
}
|
|
325
|
-
|
|
336
|
+
if (mKeys.Sort) {
|
|
337
|
+
aSortedKeys.push("Sort");
|
|
338
|
+
}
|
|
339
|
+
if (mKeys.Type) {
|
|
340
|
+
this._typeBtnActive = true;
|
|
341
|
+
} else {
|
|
342
|
+
this._typeBtnActive = false;
|
|
343
|
+
}
|
|
344
|
+
} else {
|
|
345
|
+
aSortedKeys = aMode;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
this.setProperty("p13nMode", aSortedKeys, true);
|
|
349
|
+
|
|
350
|
+
this._updateAdaptation(this.getP13nMode());
|
|
351
|
+
|
|
352
|
+
return this;
|
|
353
|
+
};
|
|
354
|
+
|
|
355
|
+
Chart.prototype._updateAdaptation = function(aMode) {
|
|
356
|
+
var oRegisterConfig = {
|
|
357
|
+
controller: {}
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
var mRegistryOptions = {
|
|
361
|
+
Item: ChartItemController,
|
|
362
|
+
Sort: SortController
|
|
363
|
+
};
|
|
364
|
+
|
|
365
|
+
if (aMode && aMode.length > 0) {
|
|
366
|
+
aMode.forEach(function(sMode){
|
|
367
|
+
var sKey = sMode;
|
|
368
|
+
oRegisterConfig.controller[sKey] = mRegistryOptions[sMode];
|
|
369
|
+
});
|
|
370
|
+
|
|
371
|
+
this.getEngine().registerAdaptation(this, oRegisterConfig);
|
|
372
|
+
}
|
|
326
373
|
|
|
327
|
-
Control.prototype.init.apply(this, arguments);
|
|
328
374
|
};
|
|
329
375
|
|
|
330
376
|
/**
|
|
@@ -481,16 +527,21 @@ sap.ui.define([
|
|
|
481
527
|
* @param {object} oChange the change object from the ManagedObjectModel observer
|
|
482
528
|
*/
|
|
483
529
|
Chart.prototype._propagateItemChangeToInnerChart = function (oChange) {
|
|
530
|
+
|
|
531
|
+
if (this._bIsDestroyed){
|
|
532
|
+
return; //Don't propagate changes when CHart is destroyed
|
|
533
|
+
}
|
|
534
|
+
|
|
484
535
|
this.setBusy(true);
|
|
485
536
|
switch (oChange.mutation) {
|
|
486
537
|
|
|
487
538
|
case "insert":
|
|
488
539
|
var iIndex = this.getItems().indexOf(oChange.child);
|
|
489
540
|
|
|
490
|
-
this.getControlDelegate().insertItemToInnerChart(oChange.child, iIndex);
|
|
541
|
+
this.getControlDelegate().insertItemToInnerChart(this, oChange.child, iIndex);
|
|
491
542
|
break;
|
|
492
543
|
case "remove":
|
|
493
|
-
this.getControlDelegate().removeItemFromInnerChart(oChange.child);
|
|
544
|
+
this.getControlDelegate().removeItemFromInnerChart(this, oChange.child);
|
|
494
545
|
break;
|
|
495
546
|
default:
|
|
496
547
|
Log.error("Unknown mutation on MDC Chart Item Aggregation. This will not sync to inner chart!");
|
|
@@ -524,7 +575,7 @@ sap.ui.define([
|
|
|
524
575
|
|
|
525
576
|
this.setBusy(true);
|
|
526
577
|
|
|
527
|
-
if (!this.getControlDelegate().getInnerChartBound()) {
|
|
578
|
+
if (!this.getControlDelegate().getInnerChartBound(this)) {
|
|
528
579
|
this._createContentfromPropertyInfos();
|
|
529
580
|
return;
|
|
530
581
|
}
|
|
@@ -549,8 +600,7 @@ sap.ui.define([
|
|
|
549
600
|
*/
|
|
550
601
|
Chart.prototype._createToolbar = function () {
|
|
551
602
|
var toolbar = new ChartToolbar(this.getId() + "--toolbar", {
|
|
552
|
-
design: "Transparent"
|
|
553
|
-
actions: this._aInitialToolbarActions
|
|
603
|
+
design: "Transparent"
|
|
554
604
|
});
|
|
555
605
|
|
|
556
606
|
toolbar.createToolbarContent(this);
|
|
@@ -558,6 +608,16 @@ sap.ui.define([
|
|
|
558
608
|
this.setAggregation("_toolbar", toolbar);
|
|
559
609
|
};
|
|
560
610
|
|
|
611
|
+
/**
|
|
612
|
+
* Gets initial actions for toolbar as they cannot not be forwarded on init due to sorting issues
|
|
613
|
+
* @returns {array} intial actions
|
|
614
|
+
*
|
|
615
|
+
* @private
|
|
616
|
+
*/
|
|
617
|
+
Chart.prototype._getInitialToolbarActions = function() {
|
|
618
|
+
return this._aInitialToolbarActions ? this._aInitialToolbarActions : [];
|
|
619
|
+
};
|
|
620
|
+
|
|
561
621
|
/**
|
|
562
622
|
* Calls the update function on the toolbar, if toolbar exists
|
|
563
623
|
*
|
|
@@ -579,7 +639,7 @@ sap.ui.define([
|
|
|
579
639
|
*/
|
|
580
640
|
Chart.prototype._getInnerChart = function () {
|
|
581
641
|
if (this._bInnerChartReady) {
|
|
582
|
-
return this.getControlDelegate().getInnerChart();
|
|
642
|
+
return this.getControlDelegate().getInnerChart(this);
|
|
583
643
|
} else {
|
|
584
644
|
Log.error("Trying to acces inner chart while inner chart is not yet initialized!");
|
|
585
645
|
}
|
|
@@ -643,7 +703,7 @@ sap.ui.define([
|
|
|
643
703
|
iValue = 10;
|
|
644
704
|
}
|
|
645
705
|
|
|
646
|
-
this.getControlDelegate().zoomIn(iValue);
|
|
706
|
+
this.getControlDelegate().zoomIn(this, iValue);
|
|
647
707
|
};
|
|
648
708
|
|
|
649
709
|
/**
|
|
@@ -659,7 +719,7 @@ sap.ui.define([
|
|
|
659
719
|
iValue = 10;
|
|
660
720
|
}
|
|
661
721
|
|
|
662
|
-
this.getControlDelegate().zoomOut(iValue);
|
|
722
|
+
this.getControlDelegate().zoomOut(this, iValue);
|
|
663
723
|
};
|
|
664
724
|
|
|
665
725
|
/**
|
|
@@ -676,11 +736,11 @@ sap.ui.define([
|
|
|
676
736
|
* @ui5-restricted sap.ui.mdc, sap.fe
|
|
677
737
|
*/
|
|
678
738
|
Chart.prototype.getZoomState = function () {
|
|
679
|
-
return this.getControlDelegate().getZoomState();
|
|
739
|
+
return this.getControlDelegate().getZoomState(this);
|
|
680
740
|
};
|
|
681
741
|
|
|
682
742
|
Chart.prototype.getSelectionHandler = function () {
|
|
683
|
-
return this.getControlDelegate().getInnerChartSelectionHandler();
|
|
743
|
+
return this.getControlDelegate().getInnerChartSelectionHandler(this);
|
|
684
744
|
};
|
|
685
745
|
|
|
686
746
|
/**
|
|
@@ -697,7 +757,7 @@ sap.ui.define([
|
|
|
697
757
|
|
|
698
758
|
//Skip if no control delegate; gets propagated by _propagatePropertiesToInnerChart after init
|
|
699
759
|
try {
|
|
700
|
-
this.getControlDelegate().setLegendVisible(bVisible);
|
|
760
|
+
this.getControlDelegate().setLegendVisible(this, bVisible);
|
|
701
761
|
} catch (e) {
|
|
702
762
|
Log.info("Trying to set legend visiblity for Chart before delegate was initialized");
|
|
703
763
|
}
|
|
@@ -716,7 +776,7 @@ sap.ui.define([
|
|
|
716
776
|
|
|
717
777
|
//Skip if no control delegate; gets propagated by _propagatePropertiesToInnerChart after init
|
|
718
778
|
try {
|
|
719
|
-
this.getControlDelegate().setChartTooltipVisibility(bValue);
|
|
779
|
+
this.getControlDelegate().setChartTooltipVisibility(this, bValue);
|
|
720
780
|
} catch (e) {
|
|
721
781
|
Log.info("Trying to set tooltip visibility before delegate was initialized");
|
|
722
782
|
}
|
|
@@ -724,6 +784,12 @@ sap.ui.define([
|
|
|
724
784
|
return this;
|
|
725
785
|
};
|
|
726
786
|
|
|
787
|
+
Chart.prototype.destroy = function() {
|
|
788
|
+
this._bIsDestroyed = true;
|
|
789
|
+
|
|
790
|
+
Control.prototype.destroy.apply(this, arguments);
|
|
791
|
+
};
|
|
792
|
+
|
|
727
793
|
/**
|
|
728
794
|
* shows the drill-down popover for selection a dimension to drill down to.
|
|
729
795
|
* @param {sap.m.Button} oDrillBtn reference to the drill down button for loacation of the popover
|
|
@@ -783,7 +849,7 @@ sap.ui.define([
|
|
|
783
849
|
var mInfo;
|
|
784
850
|
|
|
785
851
|
try {
|
|
786
|
-
mInfo = this.getControlDelegate().getChartTypeInfo();
|
|
852
|
+
mInfo = this.getControlDelegate().getChartTypeInfo(this);
|
|
787
853
|
} catch (error) {
|
|
788
854
|
//Inner chart is not yet ready
|
|
789
855
|
if (!mInfo) {
|
|
@@ -807,7 +873,7 @@ sap.ui.define([
|
|
|
807
873
|
* @ui5-restricted Fiori Elements
|
|
808
874
|
*/
|
|
809
875
|
Chart.prototype.getAvailableChartTypes = function () {
|
|
810
|
-
return this.getControlDelegate().getAvailableChartTypes();
|
|
876
|
+
return this.getControlDelegate().getAvailableChartTypes(this);
|
|
811
877
|
};
|
|
812
878
|
|
|
813
879
|
|
|
@@ -820,7 +886,7 @@ sap.ui.define([
|
|
|
820
886
|
this.setProperty("chartType", sChartType);
|
|
821
887
|
|
|
822
888
|
try {
|
|
823
|
-
this.getControlDelegate().setChartType(sChartType);
|
|
889
|
+
this.getControlDelegate().setChartType(this, sChartType);
|
|
824
890
|
} catch (e) {
|
|
825
891
|
Log.info("Trying to set chart type for Chart before delegate was initialized");
|
|
826
892
|
}
|
|
@@ -848,15 +914,18 @@ sap.ui.define([
|
|
|
848
914
|
* @private
|
|
849
915
|
*/
|
|
850
916
|
//TODO: Pass this as an callback function to the delegate instead of calling it form the delegate directly
|
|
851
|
-
Chart.prototype._innerChartDataLoadComplete = function () {
|
|
852
|
-
this.
|
|
853
|
-
|
|
917
|
+
Chart.prototype._innerChartDataLoadComplete = function (mArguments) {
|
|
918
|
+
if (this.getControlDelegate().checkEventForDataLoaded(mArguments)){
|
|
919
|
+
this.setBusy(false);
|
|
920
|
+
this._renderOverlay(false);
|
|
854
921
|
|
|
855
|
-
|
|
922
|
+
this._updateToolbar();
|
|
923
|
+
|
|
924
|
+
this.fireEvent("innerChartLoadedData ", {
|
|
925
|
+
innerChart: this.getControlDelegate().getInnerChart(this)
|
|
926
|
+
});
|
|
927
|
+
}
|
|
856
928
|
|
|
857
|
-
this.fireEvent("innerChartLoadedData ", {
|
|
858
|
-
innerChart: this.getControlDelegate().getInnerChart()
|
|
859
|
-
});
|
|
860
929
|
};
|
|
861
930
|
|
|
862
931
|
/**
|
|
@@ -972,6 +1041,9 @@ sap.ui.define([
|
|
|
972
1041
|
|
|
973
1042
|
};
|
|
974
1043
|
|
|
1044
|
+
Chart.prototype._getTypeBtnActive = function(){
|
|
1045
|
+
return !!this._typeBtnActive;
|
|
1046
|
+
};
|
|
975
1047
|
|
|
976
1048
|
/**
|
|
977
1049
|
* Callback for when fuilters changed
|
|
@@ -984,7 +1056,7 @@ sap.ui.define([
|
|
|
984
1056
|
* @ui5-restricted Fiori Elements, sap.ui.mdc
|
|
985
1057
|
*/
|
|
986
1058
|
Chart.prototype._onFiltersChanged = function(oEvent) {
|
|
987
|
-
if (this._bInnerChartReady && this.getControlDelegate() && this.getControlDelegate().getInnerChartBound() && oEvent.getParameter("conditionsBased")) {
|
|
1059
|
+
if (this._bInnerChartReady && this.getControlDelegate() && this.getControlDelegate().getInnerChartBound(this) && oEvent.getParameter("conditionsBased")) {
|
|
988
1060
|
this._renderOverlay(true);
|
|
989
1061
|
}
|
|
990
1062
|
};
|
|
@@ -999,9 +1071,9 @@ sap.ui.define([
|
|
|
999
1071
|
*/
|
|
1000
1072
|
Chart.prototype._renderOverlay = function(bShow) {
|
|
1001
1073
|
|
|
1002
|
-
if (this.getControlDelegate().getInnerChart()) {
|
|
1074
|
+
if (this.getControlDelegate().getInnerChart(this)) {
|
|
1003
1075
|
|
|
1004
|
-
var $this = this.getControlDelegate().getInnerChart().$(), $overlay = $this.find(".sapUiMdcChartOverlay");
|
|
1076
|
+
var $this = this.getControlDelegate().getInnerChart(this).$(), $overlay = $this.find(".sapUiMdcChartOverlay");
|
|
1005
1077
|
if (bShow && $overlay.length === 0) {
|
|
1006
1078
|
$overlay = jQuery("<div>").addClass("sapUiOverlay sapUiMdcChartOverlay").css("z-index", "1");
|
|
1007
1079
|
$this.append($overlay);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
5
|
*/
|
|
6
6
|
sap.ui.define([
|
|
7
|
-
"sap/ui/core/Element",
|
|
7
|
+
"sap/ui/core/Element", "sap/ui/mdc/mixin/DelegateMixin", "sap/ui/mdc/mixin/AdaptationMixin"
|
|
8
8
|
], function(CoreElement, DelegateMixin, AdaptationMixin) {
|
|
9
9
|
"use strict";
|
|
10
10
|
|
|
@@ -20,7 +20,7 @@ sap.ui.define([
|
|
|
20
20
|
* @extends sap.ui.core.Element
|
|
21
21
|
* @abstract
|
|
22
22
|
* @author SAP SE
|
|
23
|
-
* @version 1.
|
|
23
|
+
* @version 1.95.0
|
|
24
24
|
* @alias sap.ui.mdc.Element
|
|
25
25
|
*
|
|
26
26
|
* @borrows sap.ui.mdc.mixin.DelegateMixin.awaitControlDelegate as awaitControlDelegate
|
package/src/sap/ui/mdc/Field.js
CHANGED
|
@@ -46,12 +46,12 @@ sap.ui.define([
|
|
|
46
46
|
* @implements sap.ui.core.IFormContent
|
|
47
47
|
*
|
|
48
48
|
* @author SAP SE
|
|
49
|
-
* @version 1.
|
|
49
|
+
* @version 1.95.0
|
|
50
50
|
*
|
|
51
51
|
* @constructor
|
|
52
52
|
* @alias sap.ui.mdc.Field
|
|
53
53
|
* @author SAP SE
|
|
54
|
-
* @version 1.
|
|
54
|
+
* @version 1.95.0
|
|
55
55
|
* @since 1.54.0
|
|
56
56
|
* @experimental As of version 1.54
|
|
57
57
|
*
|
|
@@ -211,6 +211,18 @@ sap.ui.define([
|
|
|
211
211
|
|
|
212
212
|
};
|
|
213
213
|
|
|
214
|
+
Field.prototype.setProperty = function(sPropertyName, oValue, bSuppressInvalidate) {
|
|
215
|
+
|
|
216
|
+
if (sPropertyName === "value" && this._bParseError && deepEqual(this.getValue(), this.validateProperty(sPropertyName, oValue))) {
|
|
217
|
+
// in parse error and same value - no update on property - so remove error here
|
|
218
|
+
this._oManagedObjectModel.checkUpdate(true, true); // async. to reduce updates (additionalValue will follow)
|
|
219
|
+
this._bParseError = false;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
return FieldBase.prototype.setProperty.apply(this, arguments);
|
|
223
|
+
|
|
224
|
+
};
|
|
225
|
+
|
|
214
226
|
/**
|
|
215
227
|
* This property must not be set for the <code>Field</code>
|
|
216
228
|
*
|
|
@@ -408,6 +420,7 @@ sap.ui.define([
|
|
|
408
420
|
if (this._bTypeInitialized && this._oContentFactory.getUnitOriginalType()) {
|
|
409
421
|
// internal type already created, initialize it too
|
|
410
422
|
this.getControlDelegate().initializeInternalUnitType(this.getPayload(), this._oContentFactory.getDataType(), this._oTypeInitialization);
|
|
423
|
+
this.getControlDelegate().initializeInternalUnitType(this.getPayload(), this._oContentFactory.getUnitType(), this._oTypeInitialization);
|
|
411
424
|
}
|
|
412
425
|
}
|
|
413
426
|
|
|
@@ -21,7 +21,7 @@ sap.ui.define([
|
|
|
21
21
|
* The metadata information is provided via the {@link sap.ui.mdc.FilterBarDelegate FilterBarDelegate} implementation. This implementation has to be provided by the application.
|
|
22
22
|
* @extends sap.ui.mdc.filterbar.FilterBarBase
|
|
23
23
|
* @author SAP SE
|
|
24
|
-
* @version 1.
|
|
24
|
+
* @version 1.95.0
|
|
25
25
|
* @constructor
|
|
26
26
|
* @experimental As of version 1.61
|
|
27
27
|
* @private
|
|
@@ -232,6 +232,16 @@ sap.ui.define([
|
|
|
232
232
|
return oState;
|
|
233
233
|
};
|
|
234
234
|
|
|
235
|
+
/**
|
|
236
|
+
* Sets the focus to the first filter in error state.
|
|
237
|
+
* @private
|
|
238
|
+
* @ui5-restricted sap.fe
|
|
239
|
+
* @returns {sap.ui.mdc.FilterField} Returns the first filter field in error state
|
|
240
|
+
*/
|
|
241
|
+
FilterBarBase.prototype.setFocusOnFirstErroneousField = function() {
|
|
242
|
+
return this._setFocusOnFirstErroneousField();
|
|
243
|
+
};
|
|
244
|
+
|
|
235
245
|
return FilterBar;
|
|
236
246
|
|
|
237
247
|
});
|
|
@@ -6,11 +6,13 @@
|
|
|
6
6
|
sap.ui.define([
|
|
7
7
|
'sap/ui/mdc/field/FieldBase',
|
|
8
8
|
'sap/ui/mdc/field/FieldBaseRenderer',
|
|
9
|
-
'sap/base/util/merge'
|
|
9
|
+
'sap/base/util/merge',
|
|
10
|
+
'sap/base/util/deepEqual'
|
|
10
11
|
], function(
|
|
11
12
|
FieldBase,
|
|
12
13
|
FieldBaseRenderer,
|
|
13
|
-
merge
|
|
14
|
+
merge,
|
|
15
|
+
deepEqual
|
|
14
16
|
) {
|
|
15
17
|
"use strict";
|
|
16
18
|
|
|
@@ -29,12 +31,12 @@ sap.ui.define([
|
|
|
29
31
|
* @extends sap.ui.mdc.field.FieldBase
|
|
30
32
|
*
|
|
31
33
|
* @author SAP SE
|
|
32
|
-
* @version 1.
|
|
34
|
+
* @version 1.95.0
|
|
33
35
|
*
|
|
34
36
|
* @constructor
|
|
35
37
|
* @alias sap.ui.mdc.FilterField
|
|
36
38
|
* @author SAP SE
|
|
37
|
-
* @version 1.
|
|
39
|
+
* @version 1.95.0
|
|
38
40
|
* @since 1.48.0
|
|
39
41
|
*
|
|
40
42
|
* @experimental As of version 1.48
|
|
@@ -127,6 +129,28 @@ sap.ui.define([
|
|
|
127
129
|
|
|
128
130
|
};
|
|
129
131
|
|
|
132
|
+
FilterField.prototype.setProperty = function(sPropertyName, oValue, bSuppressInvalidate) {
|
|
133
|
+
|
|
134
|
+
if (sPropertyName === "conditions" && this._bParseError && deepEqual(this.getConditions(), this.validateProperty(sPropertyName, oValue))) {
|
|
135
|
+
// in parse error and same Conditions - no update on property - so remove error here
|
|
136
|
+
// As ConditionModel triggers checkUpdate in forced mode on addCondition, setConditions... also unchanged conditions will be updated
|
|
137
|
+
// So e.g. if a variant is applied an error will be removed.
|
|
138
|
+
if (this._oContentFactory.getBoundProperty()) { // single value case
|
|
139
|
+
this._oManagedObjectModel.checkUpdate(true, true); // async. to reduce updates (additionalValue will follow)
|
|
140
|
+
} else { // Multi value case - don't update tokens, initialize value
|
|
141
|
+
var oContent = this._getContent()[0];
|
|
142
|
+
if (oContent && oContent.setValue) {
|
|
143
|
+
oContent.setValue(); // TODO: custom controls with different property?
|
|
144
|
+
}
|
|
145
|
+
this._removeUIMessage();
|
|
146
|
+
}
|
|
147
|
+
this._bParseError = false;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
return FieldBase.prototype.setProperty.apply(this, arguments);
|
|
151
|
+
|
|
152
|
+
};
|
|
153
|
+
|
|
130
154
|
FilterField.prototype._fireChange = function(aConditions, bValid, vWrongValue, oPromise) {
|
|
131
155
|
|
|
132
156
|
var vValue;
|
package/src/sap/ui/mdc/Link.js
CHANGED
|
@@ -45,7 +45,7 @@ sap.ui.define([
|
|
|
45
45
|
* @extends sap.ui.mdc.field.FieldInfoBase
|
|
46
46
|
*
|
|
47
47
|
* @author SAP SE
|
|
48
|
-
* @version 1.
|
|
48
|
+
* @version 1.95.0
|
|
49
49
|
*
|
|
50
50
|
* @constructor
|
|
51
51
|
* @alias sap.ui.mdc.Link
|
|
@@ -191,7 +191,7 @@ sap.ui.define([
|
|
|
191
191
|
/**
|
|
192
192
|
* Checks if a given {@link sap.ui.mdc.LinkDelegate.LinkType} contains a directLink value.
|
|
193
193
|
* @param {sap.ui.mdc.LinkDelegate.LinkType} oLinkType the <code>LinkType</code> which should be checked
|
|
194
|
-
* @returns {
|
|
194
|
+
* @returns {boolean} bHasDirectLink
|
|
195
195
|
* @private
|
|
196
196
|
*/
|
|
197
197
|
Link.prototype._linkTypeHasDirectLink = function(oLinkType) {
|