@openui5/sap.ui.mdc 1.98.0 → 1.101.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/THIRDPARTY.txt +6 -6
- 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 +1 -1
- package/src/sap/ui/mdc/Chart.js +186 -102
- package/src/sap/ui/mdc/ChartDelegate.js +85 -30
- package/src/sap/ui/mdc/ChartRenderer.js +1 -1
- package/src/sap/ui/mdc/Control.js +11 -6
- package/src/sap/ui/mdc/Element.js +10 -6
- package/src/sap/ui/mdc/Field.js +19 -4
- package/src/sap/ui/mdc/FilterBar.js +1 -1
- package/src/sap/ui/mdc/FilterBarDelegate.js +26 -0
- package/src/sap/ui/mdc/FilterField.js +41 -3
- package/src/sap/ui/mdc/Link.js +22 -4
- package/src/sap/ui/mdc/LinkDelegate.js +9 -7
- package/src/sap/ui/mdc/MultiValueField.js +30 -6
- package/src/sap/ui/mdc/Table.js +332 -316
- package/src/sap/ui/mdc/TableDelegate.js +146 -31
- package/src/sap/ui/mdc/ValueHelp.js +136 -624
- package/src/sap/ui/mdc/ValueHelpDelegate.js +154 -7
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +2 -2
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarActionRenderer.js +1 -1
- package/src/sap/ui/mdc/chart/ChartSelectionDetails.js +1 -1
- package/src/sap/ui/mdc/chart/ChartToolbar.js +56 -11
- package/src/sap/ui/mdc/chart/ChartTypeButton.js +24 -10
- package/src/sap/ui/mdc/chart/DrillBreadcrumbs.js +9 -7
- package/src/sap/ui/mdc/chart/DrillStackHandler.js +6 -6
- package/src/sap/ui/mdc/chart/PropertyHelper.js +1 -1
- package/src/sap/ui/mdc/condition/Condition.js +14 -9
- package/src/sap/ui/mdc/condition/ConditionConverter.js +58 -6
- package/src/sap/ui/mdc/condition/ConditionModel.js +1 -1
- package/src/sap/ui/mdc/condition/FilterConverter.js +4 -2
- package/src/sap/ui/mdc/condition/FilterOperatorUtil.js +393 -68
- package/src/sap/ui/mdc/condition/Operator.js +14 -2
- package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +78 -24
- package/src/sap/ui/mdc/condition/RangeOperator.js +5 -5
- package/src/sap/ui/mdc/designtime/Util.js +63 -0
- package/src/sap/ui/mdc/designtime/actiontoolbar/ActionToolbar.designtime.js +23 -30
- package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +6 -0
- package/src/sap/ui/mdc/designtime/filterbar/FilterBar.designtime.js +3 -1
- package/src/sap/ui/mdc/designtime/link/PanelItem.designtime.js +3 -1
- package/src/sap/ui/mdc/designtime/table/Table.designtime.js +36 -9
- package/src/sap/ui/mdc/enum/PropagationReason.js +43 -0
- package/src/sap/ui/mdc/field/BoolFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/ConditionFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/ConditionType.js +44 -13
- package/src/sap/ui/mdc/field/ConditionsType.js +3 -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 +31 -9
- package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +76 -19
- package/src/sap/ui/mdc/field/FieldBase.js +69 -14
- package/src/sap/ui/mdc/field/FieldBaseDelegate.js +41 -19
- package/src/sap/ui/mdc/field/FieldHelpBase.js +2 -2
- package/src/sap/ui/mdc/field/FieldInfoBase.js +24 -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 +9 -4
- package/src/sap/ui/mdc/field/FieldValueHelpContentWrapperBase.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpDelegate.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpMTableWrapper.js +5 -4
- package/src/sap/ui/mdc/field/FieldValueHelpMdcTableWrapper.js +6 -4
- package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +6 -3
- package/src/sap/ui/mdc/field/FieldValueHelpUITableWrapper.js +7 -7
- package/src/sap/ui/mdc/field/InParameter.js +1 -1
- package/src/sap/ui/mdc/field/ListFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/ListFieldHelpItem.js +1 -1
- package/src/sap/ui/mdc/field/MultiValueFieldItem.js +1 -1
- package/src/sap/ui/mdc/field/OutParameter.js +1 -1
- package/src/sap/ui/mdc/field/TokenDisplay.js +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 +10 -6
- package/src/sap/ui/mdc/field/content/DateContent.js +27 -19
- package/src/sap/ui/mdc/field/content/DateTimeContent.js +0 -6
- 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 +137 -216
- package/src/sap/ui/mdc/filterbar/FilterBarBaseRenderer.js +1 -1
- package/src/sap/ui/mdc/filterbar/IFilterContainer.js +5 -0
- package/src/sap/ui/mdc/filterbar/PropertyHelper.js +27 -2
- package/src/sap/ui/mdc/filterbar/aligned/FilterContainer.js +1 -0
- package/src/sap/ui/mdc/filterbar/aligned/FilterItemLayout.js +1 -0
- package/src/sap/ui/mdc/filterbar/p13n/AdaptationFilterBar.js +144 -64
- package/src/sap/ui/mdc/filterbar/p13n/FilterColumnLayout.js +2 -2
- package/src/sap/ui/mdc/filterbar/p13n/GroupContainer.js +7 -3
- package/src/sap/ui/mdc/filterbar/p13n/TableContainer.js +52 -14
- package/src/sap/ui/mdc/filterbar/vh/FilterBar.js +73 -23
- package/src/sap/ui/mdc/filterbar/vh/FilterContainer.js +1 -1
- package/src/sap/ui/mdc/flexibility/AggregationConfigFlex.js +48 -31
- package/src/sap/ui/mdc/flexibility/Chart.flexibility.js +7 -42
- package/src/sap/ui/mdc/flexibility/ChartItemFlex.js +36 -0
- package/src/sap/ui/mdc/flexibility/ChartTypeFlex.js +54 -0
- package/src/sap/ui/mdc/flexibility/ConditionFlex.js +49 -12
- 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 +0 -1
- package/src/sap/ui/mdc/flexibility/PropertyInfoFlex.js +2 -85
- package/src/sap/ui/mdc/flp/FlpLinkDelegate.js +5 -5
- package/src/sap/ui/mdc/library.js +41 -30
- package/src/sap/ui/mdc/link/ContactDetails.js +107 -23
- package/src/sap/ui/mdc/link/ContactDetailsAddressItem.js +1 -1
- package/src/sap/ui/mdc/link/ContactDetailsEmailItem.js +1 -1
- package/src/sap/ui/mdc/link/ContactDetailsItem.js +1 -1
- package/src/sap/ui/mdc/link/ContactDetailsPhoneItem.js +1 -1
- package/src/sap/ui/mdc/link/ContactDetailsRenderer.js +26 -0
- package/src/sap/ui/mdc/link/Factory.js +1 -1
- package/src/sap/ui/mdc/link/FakeFlpConnector.js +1 -1
- package/src/sap/ui/mdc/link/LinkItem.js +1 -1
- package/src/sap/ui/mdc/link/Log.js +1 -1
- package/src/sap/ui/mdc/link/Panel.js +205 -29
- package/src/sap/ui/mdc/link/PanelItem.js +1 -1
- package/src/sap/ui/mdc/link/PanelRenderer.js +26 -0
- package/src/sap/ui/mdc/link/SemanticObjectMapping.js +1 -1
- package/src/sap/ui/mdc/link/SemanticObjectMappingItem.js +1 -1
- package/src/sap/ui/mdc/link/SemanticObjectUnavailableAction.js +1 -1
- package/src/sap/ui/mdc/messagebundle.properties +59 -6
- package/src/sap/ui/mdc/messagebundle_ar.properties +40 -6
- package/src/sap/ui/mdc/messagebundle_bg.properties +58 -24
- package/src/sap/ui/mdc/messagebundle_ca.properties +40 -6
- package/src/sap/ui/mdc/messagebundle_cs.properties +40 -6
- package/src/sap/ui/mdc/messagebundle_cy.properties +40 -6
- package/src/sap/ui/mdc/messagebundle_da.properties +40 -6
- package/src/sap/ui/mdc/messagebundle_de.properties +40 -6
- package/src/sap/ui/mdc/messagebundle_el.properties +39 -5
- package/src/sap/ui/mdc/messagebundle_en.properties +40 -6
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +40 -6
- package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +40 -6
- package/src/sap/ui/mdc/messagebundle_en_US_saprigi.properties +68 -9
- package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +41 -7
- package/src/sap/ui/mdc/messagebundle_es.properties +40 -6
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +41 -7
- package/src/sap/ui/mdc/messagebundle_et.properties +40 -6
- package/src/sap/ui/mdc/messagebundle_fi.properties +40 -6
- package/src/sap/ui/mdc/messagebundle_fr.properties +41 -7
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +40 -6
- package/src/sap/ui/mdc/messagebundle_hi.properties +40 -6
- package/src/sap/ui/mdc/messagebundle_hr.properties +40 -6
- package/src/sap/ui/mdc/messagebundle_hu.properties +40 -6
- package/src/sap/ui/mdc/messagebundle_id.properties +40 -6
- package/src/sap/ui/mdc/messagebundle_it.properties +41 -7
- package/src/sap/ui/mdc/messagebundle_iw.properties +39 -5
- package/src/sap/ui/mdc/messagebundle_ja.properties +41 -7
- package/src/sap/ui/mdc/messagebundle_kk.properties +40 -6
- package/src/sap/ui/mdc/messagebundle_ko.properties +39 -5
- package/src/sap/ui/mdc/messagebundle_lt.properties +40 -6
- package/src/sap/ui/mdc/messagebundle_lv.properties +44 -10
- package/src/sap/ui/mdc/messagebundle_ms.properties +40 -6
- package/src/sap/ui/mdc/messagebundle_nl.properties +40 -6
- package/src/sap/ui/mdc/messagebundle_no.properties +40 -6
- package/src/sap/ui/mdc/messagebundle_pl.properties +40 -6
- package/src/sap/ui/mdc/messagebundle_pt.properties +41 -7
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +40 -6
- package/src/sap/ui/mdc/messagebundle_ro.properties +40 -6
- package/src/sap/ui/mdc/messagebundle_ru.properties +40 -6
- package/src/sap/ui/mdc/messagebundle_sh.properties +43 -9
- package/src/sap/ui/mdc/messagebundle_sk.properties +40 -6
- package/src/sap/ui/mdc/messagebundle_sl.properties +41 -7
- package/src/sap/ui/mdc/messagebundle_sv.properties +41 -7
- package/src/sap/ui/mdc/messagebundle_th.properties +43 -9
- package/src/sap/ui/mdc/messagebundle_tr.properties +41 -7
- package/src/sap/ui/mdc/messagebundle_uk.properties +43 -9
- package/src/sap/ui/mdc/messagebundle_vi.properties +40 -6
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +40 -6
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +40 -6
- package/src/sap/ui/mdc/mixin/AdaptationMixin.js +24 -15
- package/src/sap/ui/mdc/mixin/DelegateMixin.js +1 -141
- package/src/sap/ui/mdc/mixin/FilterIntegrationMixin.js +1 -9
- package/src/sap/ui/mdc/mixin/PromiseMixin.js +1 -1
- package/src/sap/ui/mdc/mixin/PropertyHelperMixin.js +354 -0
- package/src/sap/ui/mdc/odata/TypeUtil.js +1 -1
- package/src/sap/ui/mdc/odata/v4/ChartPropertyHelper.js +70 -3
- package/src/sap/ui/mdc/odata/v4/FieldBaseDelegate.js +8 -6
- package/src/sap/ui/mdc/odata/v4/FilterBarDelegate.js +116 -20
- package/src/sap/ui/mdc/odata/v4/ODataMetaModelUtil.js +2 -2
- package/src/sap/ui/mdc/odata/v4/TableDelegate.js +32 -69
- package/src/sap/ui/mdc/odata/v4/TypeUtil.js +2 -4
- package/src/sap/ui/mdc/odata/v4/ValueHelpDelegate.js +65 -5
- package/src/sap/ui/mdc/odata/v4/vizChart/ChartDelegate.js +412 -326
- package/src/sap/ui/mdc/p13n/AdaptationProvider.js +1 -1
- package/src/sap/ui/mdc/p13n/Engine.js +169 -66
- package/src/sap/ui/mdc/p13n/FlexUtil.js +26 -19
- package/src/sap/ui/mdc/p13n/P13nBuilder.js +6 -6
- package/src/sap/ui/mdc/p13n/PropertyHelper.js +2 -2
- package/src/sap/ui/mdc/p13n/StateUtil.js +34 -51
- package/src/sap/ui/mdc/p13n/UIManager.js +21 -14
- package/src/sap/ui/mdc/p13n/modification/ModificationHandler.js +0 -174
- package/src/sap/ui/mdc/p13n/modules/DefaultProviderRegistry.js +2 -2
- package/src/sap/ui/mdc/p13n/modules/xConfigAPI.js +219 -0
- package/src/sap/ui/mdc/p13n/panels/ActionToolbarPanel.js +6 -6
- package/src/sap/ui/mdc/p13n/panels/AdaptFiltersPanel.js +49 -27
- package/src/sap/ui/mdc/p13n/panels/ChartItemPanel.js +76 -16
- package/src/sap/ui/mdc/p13n/panels/FilterPanel.js +136 -0
- package/src/sap/ui/mdc/p13n/panels/GroupView.js +53 -28
- package/src/sap/ui/mdc/p13n/panels/LinkSelectionPanel.js +54 -18
- package/src/sap/ui/mdc/p13n/subcontroller/ActionToolbarController.js +4 -7
- package/src/sap/ui/mdc/p13n/subcontroller/AdaptFiltersController.js +1 -2
- package/src/sap/ui/mdc/p13n/subcontroller/AggregateController.js +2 -2
- package/src/sap/ui/mdc/p13n/subcontroller/BaseController.js +30 -2
- package/src/sap/ui/mdc/p13n/subcontroller/ChartTypeController.js +46 -0
- package/src/sap/ui/mdc/p13n/subcontroller/ColumnWidthController.js +37 -6
- package/src/sap/ui/mdc/p13n/subcontroller/FilterController.js +40 -12
- package/src/sap/ui/mdc/p13n/subcontroller/GroupController.js +9 -2
- package/src/sap/ui/mdc/p13n/subcontroller/LinkPanelController.js +1 -0
- package/src/sap/ui/mdc/p13n/subcontroller/SortController.js +4 -4
- package/src/sap/ui/mdc/table/Column.js +271 -132
- package/src/sap/ui/mdc/table/CreationRow.js +1 -1
- package/src/sap/ui/mdc/table/GridTableType.js +75 -27
- package/src/sap/ui/mdc/table/PropertyHelper.js +71 -95
- package/src/sap/ui/mdc/table/ResponsiveTableType.js +121 -40
- package/src/sap/ui/mdc/table/RowActionItem.js +119 -0
- package/src/sap/ui/mdc/table/RowSettings.js +42 -1
- package/src/sap/ui/mdc/table/TableSettings.js +10 -22
- package/src/sap/ui/mdc/table/V4AnalyticsPropertyHelper.js +2 -2
- package/src/sap/ui/mdc/table/menu/Item.js +78 -0
- package/src/sap/ui/mdc/table/menu/ItemContainer.js +60 -0
- package/src/sap/ui/mdc/table/menu/QuickActionContainer.js +151 -0
- package/src/sap/ui/mdc/themes/base/Chart.less +6 -0
- 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 +4 -3
- package/src/sap/ui/mdc/themes/base/library.source.less +2 -0
- package/src/sap/ui/mdc/ui/Container.js +0 -240
- package/src/sap/ui/mdc/util/DateUtil.js +32 -7
- package/src/sap/ui/mdc/util/FilterUtil.js +2 -2
- package/src/sap/ui/mdc/util/FormatUtil.js +2 -2
- package/src/sap/ui/mdc/util/IdentifierUtil.js +7 -7
- package/src/sap/ui/mdc/util/PromiseCache.js +6 -2
- package/src/sap/ui/mdc/util/PropertyHelper.js +205 -76
- package/src/sap/ui/mdc/util/TypeUtil.js +1 -1
- package/src/sap/ui/mdc/valuehelp/Dialog.js +234 -44
- package/src/sap/ui/mdc/valuehelp/Popover.js +7 -4
- package/src/sap/ui/mdc/valuehelp/base/Container.js +63 -48
- package/src/sap/ui/mdc/valuehelp/base/Content.js +35 -16
- package/src/sap/ui/mdc/valuehelp/base/DialogTab.js +1 -1
- package/src/sap/ui/mdc/valuehelp/base/FilterableListContent.js +161 -284
- package/src/sap/ui/mdc/valuehelp/base/ListContent.js +4 -4
- package/src/sap/ui/mdc/valuehelp/content/Bool.js +4 -4
- package/src/sap/ui/mdc/valuehelp/content/Conditions.js +4 -4
- package/src/sap/ui/mdc/valuehelp/content/FixedList.js +16 -13
- package/src/sap/ui/mdc/valuehelp/content/ListCollection.js +205 -0
- package/src/sap/ui/mdc/valuehelp/content/MDCTable.js +67 -66
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +94 -185
- package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +2 -1
- package/test/sap/ui/mdc/testutils/opa/chart/TestObjects.js +6 -5
- package/test/sap/ui/mdc/testutils/opa/chartNew/TestObjects.js +4 -5
- package/test/sap/ui/mdc/testutils/opa/filterbar/TestObjects.js +8 -9
- package/test/sap/ui/mdc/testutils/opa/link/TestObjects.js +8 -8
- package/test/sap/ui/mdc/testutils/opa/p13n/Actions.js +43 -27
- 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/filterbar/vh/GenericFilterBarDelegate.js +0 -150
- package/src/sap/ui/mdc/link/ContactDetails.control.xml +0 -29
- package/src/sap/ui/mdc/link/Panel.control.xml +0 -36
- package/src/sap/ui/mdc/link/PanelListItem.control.xml +0 -24
- package/src/sap/ui/mdc/link/PanelListItem.js +0 -101
- package/src/sap/ui/mdc/p13n/panels/BasePanel.js +0 -721
- package/src/sap/ui/mdc/p13n/panels/ListView.js +0 -408
- package/src/sap/ui/mdc/p13n/panels/SelectionPanel.js +0 -92
- package/src/sap/ui/mdc/p13n/panels/SortPanel.js +0 -150
- package/src/sap/ui/mdc/ui/ContainerItem.js +0 -79
|
@@ -17,7 +17,8 @@ sap.ui.define([
|
|
|
17
17
|
"./Util",
|
|
18
18
|
"sap/base/Log",
|
|
19
19
|
"sap/base/util/UriParameters",
|
|
20
|
-
"sap/ui/core/Core"
|
|
20
|
+
"sap/ui/core/Core",
|
|
21
|
+
"sap/ui/Device"
|
|
21
22
|
], function(
|
|
22
23
|
Opa5,
|
|
23
24
|
Matcher,
|
|
@@ -33,7 +34,8 @@ sap.ui.define([
|
|
|
33
34
|
Util,
|
|
34
35
|
Log,
|
|
35
36
|
UriParameters,
|
|
36
|
-
oCore
|
|
37
|
+
oCore,
|
|
38
|
+
Device
|
|
37
39
|
) {
|
|
38
40
|
"use strict";
|
|
39
41
|
|
|
@@ -495,7 +497,7 @@ sap.ui.define([
|
|
|
495
497
|
|
|
496
498
|
var iPersonalizeListViewItems = function(oP13nDialog, aItems) {
|
|
497
499
|
this.waitFor({
|
|
498
|
-
controlType: oP13nDialog.getContent()[0].getView("columns") && oP13nDialog.getContent()[0].getView("columns").getContent().isA("sap.
|
|
500
|
+
controlType: oP13nDialog.getContent()[0].getView("columns") && oP13nDialog.getContent()[0].getView("columns").getContent().isA("sap.m.p13n.SelectionPanel") ? "sap.m.p13n.SelectionPanel" : "sap.m.p13n.SelectionPanel",
|
|
499
501
|
matchers: new Ancestor(oP13nDialog, false),
|
|
500
502
|
success: function(aListViews) {
|
|
501
503
|
var oListView = aListViews[0];
|
|
@@ -730,9 +732,9 @@ sap.ui.define([
|
|
|
730
732
|
return iOpenThePersonalizationDialog.call(this, oControl, oSettings);
|
|
731
733
|
},
|
|
732
734
|
/**
|
|
733
|
-
* @typedef {
|
|
734
|
-
* @property {
|
|
735
|
-
* @property {
|
|
735
|
+
* @typedef {object} ChartPersonalizationConfiguration
|
|
736
|
+
* @property {string} key Key of the value that is the result of the personalization
|
|
737
|
+
* @property {string} role Role of the given value
|
|
736
738
|
*/
|
|
737
739
|
/**
|
|
738
740
|
* OPA5 test action
|
|
@@ -740,17 +742,20 @@ sap.ui.define([
|
|
|
740
742
|
* 2. Selects a chart type given by <code>sChartType</code>.
|
|
741
743
|
* 3. Executes the given <code>ChartPersonalizationConfiguration</code>.
|
|
742
744
|
* 4. Closes the personalization dialog.
|
|
743
|
-
* @param {sap.ui.core.Control |
|
|
744
|
-
* @param {
|
|
745
|
-
* @param {ChartPersonalizationConfiguration[]}
|
|
745
|
+
* @param {sap.ui.core.Control | string} oControl Instance / ID of the <code>SmartChart</code> that is personalized
|
|
746
|
+
* @param {string} sChartType String containing the type of chart that is displayed
|
|
747
|
+
* @param {ChartPersonalizationConfiguration[]} aItems Array containing the chart personalization configuration objects
|
|
748
|
+
* @param {bool} bIsMDC indicates, that the action is called by the MDC framework instead of comp
|
|
746
749
|
* @returns {Promise} OPA waitFor
|
|
747
750
|
*/
|
|
748
|
-
iPersonalizeChart: function(oControl, sChartType, aItems) {
|
|
751
|
+
iPersonalizeChart: function(oControl, sChartType, aItems, bIsMDC) {
|
|
749
752
|
return iPersonalize.call(this, oControl, Util.texts.chart, {
|
|
750
753
|
success: function(oP13nDialog) {
|
|
751
754
|
|
|
752
|
-
|
|
753
|
-
|
|
755
|
+
var sViewName = bIsMDC ? "Item" : "dimeasure";
|
|
756
|
+
|
|
757
|
+
//oP13nDialog.getContent()[0].getView("item") && oP13nDialog.getContent()[0].getView("item").getContent().isA("sap.m.p13n.SelectionPanel")
|
|
758
|
+
if (oP13nDialog.getContent()[0].getView(sViewName).getContent().isA("sap.m.P13nDimMeasurePanel")){
|
|
754
759
|
iPersonalizeOldChartP13n.call(this, oControl, sChartType, aItems, oP13nDialog);
|
|
755
760
|
} else {
|
|
756
761
|
this.waitFor({
|
|
@@ -817,9 +822,20 @@ sap.ui.define([
|
|
|
817
822
|
|
|
818
823
|
var fnAddAllItems = function(oCurrentItem, aItems, fnFollowUp){
|
|
819
824
|
if (oCurrentItem.kind) {
|
|
825
|
+
|
|
826
|
+
var sKind = oCurrentItem.kind;
|
|
827
|
+
|
|
828
|
+
if (bIsMDC) {
|
|
829
|
+
if (sKind === "Dimension") {
|
|
830
|
+
sKind = "Groupable";
|
|
831
|
+
} else if (sKind === "Measure") {
|
|
832
|
+
sKind = "Aggregatable";
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
|
|
820
836
|
this.waitFor({
|
|
821
837
|
controlType: "sap.m.ComboBox",
|
|
822
|
-
id: "p13nPanel-templateComboBox-" +
|
|
838
|
+
id: "p13nPanel-templateComboBox-" + sKind,
|
|
823
839
|
matchers: new Ancestor(oP13nDialog, false),
|
|
824
840
|
actions: function(oComboBox) {
|
|
825
841
|
iChangeComboBoxSelection.call(this, oComboBox, oCurrentItem.key);
|
|
@@ -906,8 +922,8 @@ sap.ui.define([
|
|
|
906
922
|
* 1. Opens the personalization dialog of a given table.
|
|
907
923
|
* 2. Selects all columns determined by the given labels. Also deselects all other columns that are selected but not included in the given labels.
|
|
908
924
|
* 3. Closes the personalization dialog.
|
|
909
|
-
* @param {sap.ui.core.Control |
|
|
910
|
-
* @param {
|
|
925
|
+
* @param {sap.ui.core.Control | string} oControl Instance / ID of the control which is to be personalized
|
|
926
|
+
* @param {string[]} aColumns Array containing the labels of the columns that are the result of the personalization
|
|
911
927
|
* @returns {Promise} Opa waitFor
|
|
912
928
|
*/
|
|
913
929
|
iPersonalizeColumns: function(oControl, aColumns) {
|
|
@@ -971,7 +987,7 @@ sap.ui.define([
|
|
|
971
987
|
},
|
|
972
988
|
/**
|
|
973
989
|
* @param {sap.ui.core.Control | string} oControl Instance / ID of the control which is to be personalized
|
|
974
|
-
* @param {
|
|
990
|
+
* @param {string[]} aLinks an array containing the names of the links that should be result of the personalisation
|
|
975
991
|
* @returns {Promise} Opa waitFor
|
|
976
992
|
*/
|
|
977
993
|
iPersonalizeLink: function(oControl, aLinks) {
|
|
@@ -1017,18 +1033,18 @@ sap.ui.define([
|
|
|
1017
1033
|
});
|
|
1018
1034
|
},
|
|
1019
1035
|
/**
|
|
1020
|
-
* @typedef {
|
|
1021
|
-
* @property {
|
|
1022
|
-
* @property {
|
|
1023
|
-
* @property {
|
|
1024
|
-
* @property {
|
|
1036
|
+
* @typedef {object} FilterPersonalizationConfiguration
|
|
1037
|
+
* @property {string} key Key of the value that is the result of the personalization
|
|
1038
|
+
* @property {string} operator Operator defining how the items are filtered
|
|
1039
|
+
* @property {string[]} values Filter values for the given operator
|
|
1040
|
+
* @property {string} inputControl <code>Control</code> that is used as input for the value
|
|
1025
1041
|
*/
|
|
1026
1042
|
/**
|
|
1027
1043
|
* OPA5 test action
|
|
1028
1044
|
* 1. Opens the personalization dialog of a given chart.
|
|
1029
1045
|
* 2. Executes the given <code>FilterPersonalizationConfiguration</code>.
|
|
1030
1046
|
* 3. Closes the personalization dialog.
|
|
1031
|
-
* @param {sap.ui.core.Control |
|
|
1047
|
+
* @param {sap.ui.core.Control | string} oControl Instance / ID of the <code>Control</code> that is filtered
|
|
1032
1048
|
* @param {FilterPersonalizationConfiguration[]} aConfigurations Array containing the filter personalization configuration objects
|
|
1033
1049
|
* @returns {Promise} OPA waitFor
|
|
1034
1050
|
*/
|
|
@@ -1121,16 +1137,16 @@ sap.ui.define([
|
|
|
1121
1137
|
});
|
|
1122
1138
|
},
|
|
1123
1139
|
/**
|
|
1124
|
-
* @typedef {
|
|
1125
|
-
* @property {
|
|
1126
|
-
* @property {
|
|
1140
|
+
* @typedef {object} SortPersonalizationConfiguration
|
|
1141
|
+
* @property {string} key Key of the item that is the result of the personalization
|
|
1142
|
+
* @property {boolean} descending Determines whether the sort direction is descending
|
|
1127
1143
|
*/
|
|
1128
1144
|
/**
|
|
1129
1145
|
* OPA5 test action
|
|
1130
1146
|
* 1. Opens the personalization dialog of a given chart.
|
|
1131
1147
|
* 2. Executes the given <code>SortPersonalizationConfiguration</code>.
|
|
1132
1148
|
* 3. Closes the personalization dialog.
|
|
1133
|
-
* @param {sap.ui.core.Control |
|
|
1149
|
+
* @param {sap.ui.core.Control | string} oControl Instance / ID of the <code>Control</code> that is sorted
|
|
1134
1150
|
* @param {SortPersonalizationConfiguration[]} aConfigurations Array containing the sort personalization configuration objects
|
|
1135
1151
|
* @returns {Promise} OPA waitFor
|
|
1136
1152
|
*/
|
|
@@ -1171,7 +1187,7 @@ sap.ui.define([
|
|
|
1171
1187
|
* 2. Presses the reset personalization button.
|
|
1172
1188
|
* 3. Confirms the reset dialog.
|
|
1173
1189
|
* 4. Closes the personalization dialog.
|
|
1174
|
-
* @param {sap.ui.core.Control |
|
|
1190
|
+
* @param {sap.ui.core.Control | string} oControl Instance / ID of the <code>Control</code> that is reset
|
|
1175
1191
|
* @returns {Promise} OPA waitFor
|
|
1176
1192
|
*/
|
|
1177
1193
|
iResetThePersonalization: function (oControl) {
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
sap.ui.define([
|
|
2
|
+
"sap/ui/test/Opa5",
|
|
3
|
+
"sap/ui/test/matchers/Ancestor",
|
|
4
|
+
"sap/ui/test/matchers/PropertyStrictEquals",
|
|
5
|
+
"sap/ui/test/actions/Press",
|
|
6
|
+
"./Util"
|
|
7
|
+
], function (Opa5, Ancestor, PropertyStrictEquals, Press, Util) {
|
|
8
|
+
"use strict";
|
|
9
|
+
|
|
10
|
+
return {
|
|
11
|
+
iOpenTheValueHelpForField: function(oField) {
|
|
12
|
+
var sControlId = typeof oField === "string" ? oField : oField.getId();
|
|
13
|
+
return this.waitFor({
|
|
14
|
+
id: sControlId,
|
|
15
|
+
success: function(oField) {
|
|
16
|
+
this.waitFor({
|
|
17
|
+
controlType: "sap.ui.core.Icon",
|
|
18
|
+
matchers: new Ancestor(oField, false),
|
|
19
|
+
success: function(aIcons) {
|
|
20
|
+
Opa5.assert.equal(aIcons.length, 1, "ValueHelp icon found.");
|
|
21
|
+
new Press().executeOn(aIcons[0]);
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
},
|
|
27
|
+
iCloseTheValueHelpDialog: function(bCancel) {
|
|
28
|
+
return this.waitFor({
|
|
29
|
+
controlType: "sap.ui.mdc.field.FieldValueHelp",
|
|
30
|
+
success: function(aFieldValueHelps) {
|
|
31
|
+
Opa5.assert.equal(aFieldValueHelps.length, 1, "sap.ui.mdc.field.FieldValueHelp found.");
|
|
32
|
+
this.waitFor({
|
|
33
|
+
controlType: "sap.m.Dialog",
|
|
34
|
+
matchers: new Ancestor(aFieldValueHelps[0]),
|
|
35
|
+
success: function(aVHDialogs) {
|
|
36
|
+
Opa5.assert.equal(aVHDialogs.length, 1, "ValueHelp dialog found.");
|
|
37
|
+
this.waitFor({
|
|
38
|
+
controlType: "sap.m.Button",
|
|
39
|
+
matchers: [
|
|
40
|
+
new Ancestor(aVHDialogs[0], false),
|
|
41
|
+
new PropertyStrictEquals({
|
|
42
|
+
name: "text",
|
|
43
|
+
value: bCancel ? Util.texts.cancel : Util.texts.ok
|
|
44
|
+
})
|
|
45
|
+
],
|
|
46
|
+
actions: new Press()
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* ${copyright}
|
|
3
|
+
*/
|
|
4
|
+
sap.ui.define([
|
|
5
|
+
"sap/ui/test/Opa5",
|
|
6
|
+
"../valueHelp/Actions",
|
|
7
|
+
"../valueHelp/Assertions"
|
|
8
|
+
], function(
|
|
9
|
+
Opa5,
|
|
10
|
+
Actions,
|
|
11
|
+
Assertions
|
|
12
|
+
) {
|
|
13
|
+
"use strict";
|
|
14
|
+
|
|
15
|
+
Opa5.createPageObjects({
|
|
16
|
+
onTheMDCValueHelp: {
|
|
17
|
+
actions: {
|
|
18
|
+
/**
|
|
19
|
+
* OPA5 test action
|
|
20
|
+
* @param {sap.ui.core.Control | string} oField Instance / ID of the <code>sap.ui.mdc.Field</code>
|
|
21
|
+
* @returns {Promise} OPA waitFor
|
|
22
|
+
* Opens the value help for a given <code>sap.ui.mdc.Field</code>.
|
|
23
|
+
*/
|
|
24
|
+
iOpenTheValueHelpForField: function(oField) {
|
|
25
|
+
return Actions.iOpenTheValueHelpForField.call(this, oField);
|
|
26
|
+
},
|
|
27
|
+
/**
|
|
28
|
+
* OPA5 test action
|
|
29
|
+
* @param {boolean} bCancel Boolean that defines if the Cancel button is pressed
|
|
30
|
+
* @returns {Promise} OPA waitFor
|
|
31
|
+
* Closes an open value help dialog by pressing the OK / Cancel button.
|
|
32
|
+
*/
|
|
33
|
+
iCloseTheValueHelpDialog: function(bCancel) {
|
|
34
|
+
return Actions.iCloseTheValueHelpDialog.call(this, bCancel);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ! ${copyright}
|
|
3
|
+
*/
|
|
4
|
+
sap.ui.define([
|
|
5
|
+
"sap/ui/core/Core"
|
|
6
|
+
], function(oCore) {
|
|
7
|
+
"use strict";
|
|
8
|
+
|
|
9
|
+
var oMDCBundle = oCore.getLibraryResourceBundle("sap.ui.mdc");
|
|
10
|
+
|
|
11
|
+
var Util = {
|
|
12
|
+
|
|
13
|
+
texts: {
|
|
14
|
+
ok: oMDCBundle.getText("valuehelp.OK"),
|
|
15
|
+
cancel: oMDCBundle.getText("valuehelp.CANCEL"),
|
|
16
|
+
defineConditions: oMDCBundle.getText("valuehelp.DEFINECONDITIONSNONUMBER"),
|
|
17
|
+
add: oMDCBundle.getText("valuehelp.DEFINECONDITIONS_ADDCONDITION")
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
icons: {
|
|
21
|
+
decline: "sap-icon://decline"
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
return Util;
|
|
28
|
+
});
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* ! OpenUI5
|
|
3
|
-
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
-
*/
|
|
6
|
-
sap.ui.define([
|
|
7
|
-
"sap/ui/mdc/odata/v4/FilterBarDelegate",
|
|
8
|
-
'sap/ui/base/ManagedObjectObserver'
|
|
9
|
-
], function(FilterBarDelegate, ManagedObjectObserver) {
|
|
10
|
-
"use strict";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Helper class for sap.ui.mdc.filterbar.vh.GenericFilterBarDelegate.
|
|
14
|
-
* This GenericFilterbarDelegate creates the propertyInfo based on the FilterItems of the Filterbar and does NOT load and analyse any metadata!
|
|
15
|
-
* <h3><b>Note:</b></h3>
|
|
16
|
-
* The class is experimental and the API/behaviour is not finalised and hence this should not be used for productive usage.
|
|
17
|
-
*
|
|
18
|
-
* @author SAP SE
|
|
19
|
-
* @private
|
|
20
|
-
* @experimental
|
|
21
|
-
* @since 1.86
|
|
22
|
-
* @alias sap.ui.mdc.filterbar.vh.GenericFilterBarDelegate
|
|
23
|
-
*/
|
|
24
|
-
var GenericFilterBarDelegate = Object.assign({}, FilterBarDelegate);
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* Fetches the relevant metadata (from the FilterItems of the FiterBar) for the FilterBar and returns property info array
|
|
28
|
-
*
|
|
29
|
-
* @param {Object} oFilterBar - instance of the valuehelp FilterBar
|
|
30
|
-
* @returns {Array} array of property info
|
|
31
|
-
*/
|
|
32
|
-
GenericFilterBarDelegate.fetchProperties = function(oFilterBar) {
|
|
33
|
-
if (!oFilterBar.__oObserver) {
|
|
34
|
-
oFilterBar.__oObserver = new ManagedObjectObserver(_observeChanges.bind(this));
|
|
35
|
-
oFilterBar.__oObserver.observe(oFilterBar, {
|
|
36
|
-
aggregations: ["filterItems"]
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
return new Promise(function(fResolve) {
|
|
41
|
-
var aFilterItems = oFilterBar.getFilterItems();
|
|
42
|
-
oFilterBar.__aProperties = [];
|
|
43
|
-
aFilterItems.forEach(function(oFF){
|
|
44
|
-
addFilterField.call(this, oFF, oFilterBar.__aProperties);
|
|
45
|
-
}.bind(this));
|
|
46
|
-
|
|
47
|
-
fResolve(oFilterBar.__aProperties);
|
|
48
|
-
}.bind(this));
|
|
49
|
-
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
function addFilterField(oFF, aProperties) {
|
|
53
|
-
var sPath = oFF.getBindingPath("conditions");
|
|
54
|
-
if (!sPath) {
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
var aPathParts = sPath.split("/");
|
|
58
|
-
var sFieldPath = aPathParts[aPathParts.length - 1];
|
|
59
|
-
|
|
60
|
-
aProperties.push({
|
|
61
|
-
name: sFieldPath,
|
|
62
|
-
label: oFF.getLabel() || sFieldPath,
|
|
63
|
-
type: oFF.getDataType(),
|
|
64
|
-
formatOptions: oFF.getDataTypeFormatOptions(),
|
|
65
|
-
constraints: oFF.getDataTypeConstraints(),
|
|
66
|
-
typeConfig: this.getTypeUtil().getTypeConfig(oFF.getDataType(), oFF.getDataTypeFormatOptions(), oFF.getDataTypeConstraints()),
|
|
67
|
-
required: oFF.getRequired(),
|
|
68
|
-
hiddenFilter: false,
|
|
69
|
-
visible: oFF.getVisible(),
|
|
70
|
-
maxConditions : oFF.getMaxConditions(),
|
|
71
|
-
fieldHelp: oFF.getFieldHelp()
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
function removeFilterField(oFF, aProperties) {
|
|
76
|
-
var sPath = oFF.getBindingPath("conditions");
|
|
77
|
-
if (!sPath) {
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
function _getProperty(sName) {
|
|
82
|
-
var oNamedProperty = null;
|
|
83
|
-
aProperties.some(function(oProperty) {
|
|
84
|
-
if (oProperty.name === sName) {
|
|
85
|
-
oNamedProperty = oProperty;
|
|
86
|
-
}
|
|
87
|
-
return oNamedProperty !== null;
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
return oNamedProperty;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
function _removeProperty(sName) {
|
|
94
|
-
var nIdx = -1;
|
|
95
|
-
aProperties.some(function(oProperty, index) {
|
|
96
|
-
if (oProperty.name === sName) {
|
|
97
|
-
nIdx = index;
|
|
98
|
-
}
|
|
99
|
-
return nIdx !== -1;
|
|
100
|
-
});
|
|
101
|
-
|
|
102
|
-
if (nIdx >= 0) {
|
|
103
|
-
aProperties.splice(nIdx, 1);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
return nIdx;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
var aPathParts = sPath.split("/");
|
|
110
|
-
var sFieldPath = aPathParts[aPathParts.length - 1];
|
|
111
|
-
if (_getProperty(sFieldPath)) {
|
|
112
|
-
_removeProperty(sFieldPath);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
function _observeChanges(oChanges) {
|
|
119
|
-
var oFilterBar, aProperties;
|
|
120
|
-
|
|
121
|
-
if (oChanges.name === "filterItems") {
|
|
122
|
-
if (oChanges.mutation === "insert") {
|
|
123
|
-
var oNewFF = oChanges.child;
|
|
124
|
-
oFilterBar = oNewFF.getParent();
|
|
125
|
-
aProperties = oFilterBar.__aProperties;
|
|
126
|
-
addFilterField.call(this, oNewFF, aProperties);
|
|
127
|
-
return;
|
|
128
|
-
}
|
|
129
|
-
if (oChanges.mutation === "remove") {
|
|
130
|
-
var oRemoveFF = oChanges.child;
|
|
131
|
-
oFilterBar = oRemoveFF.getParent();
|
|
132
|
-
aProperties = oFilterBar.__aProperties;
|
|
133
|
-
removeFilterField(oRemoveFF, aProperties);
|
|
134
|
-
return;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
GenericFilterBarDelegate.cleanup = function(oFilterBar) {
|
|
140
|
-
|
|
141
|
-
if (oFilterBar.__oObserver) {
|
|
142
|
-
oFilterBar.__oObserver.disconnect();
|
|
143
|
-
delete oFilterBar.__oObserver;
|
|
144
|
-
delete oFilterBar.__aProperties;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
return GenericFilterBarDelegate;
|
|
150
|
-
});
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
<core:FragmentDefinition xmlns:m="sap.m" xmlns:core="sap.ui.core" xmlns:f="sap.ui.layout.form">
|
|
2
|
-
|
|
3
|
-
<m:VBox items="{path:'$this>/items', templateShareable:false}" aria-labelledby="IDContactDetailsTitle">
|
|
4
|
-
<f:SimpleForm id="IDSimpleForm" editable="false" layout="ResponsiveGridLayout">
|
|
5
|
-
|
|
6
|
-
<core:Title id="IDContactDetailsTitle" text="{$this>sectionTitle}"/>
|
|
7
|
-
|
|
8
|
-
<m:Label text="" labelFor="IDImage" visible="{= !!${$this>photo}}"/>
|
|
9
|
-
<m:Image id="IDImage" src="{$this>photo}" decorative="false" width="5rem" height="5rem"
|
|
10
|
-
visible="{= !!${$this>photo}}"/>
|
|
11
|
-
|
|
12
|
-
<m:Label text="{$this.i18n>info.POPOVER_CONTACT_SECTION_NAME}" labelFor="IDName"
|
|
13
|
-
visible="{= !!${$this>formattedName}}"/>
|
|
14
|
-
<m:Text id="IDName" text="{$this>formattedName}" visible="{= !!${$this>formattedName}}"/>
|
|
15
|
-
|
|
16
|
-
<m:Label text="{$this.i18n>info.POPOVER_CONTACT_SECTION_ROLE}" labelFor="IDRole"
|
|
17
|
-
visible="{= !!${$this>role}}"/>
|
|
18
|
-
<m:Text id="IDRole" text="{$this>role}" visible="{= !!${$this>role}}"/>
|
|
19
|
-
|
|
20
|
-
<m:Label text="{$this.i18n>info.POPOVER_CONTACT_SECTION_JOBTITLE}" labelFor="IDTitle"
|
|
21
|
-
visible="{= !!${$this>title}}"/>
|
|
22
|
-
<m:Text id="IDTitle" text="{$this>title}" visible="{= !!${$this>title}}"/>
|
|
23
|
-
|
|
24
|
-
<m:Label text="{$this.i18n>info.POPOVER_CONTACT_SECTION_DEPARTMENT}" labelFor="IDOrg"
|
|
25
|
-
visible="{= !!${$this>org}}"/>
|
|
26
|
-
<m:Text id="IDOrg" text="{$this>org}" visible="{= !!${$this>org}}"/>
|
|
27
|
-
</f:SimpleForm>
|
|
28
|
-
</m:VBox>
|
|
29
|
-
</core:FragmentDefinition>
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
<core:FragmentDefinition xmlns:mdcLink="sap.ui.mdc.link" xmlns:m="sap.m" xmlns:core="sap.ui.core"
|
|
2
|
-
xmlns:l="sap.ui.layout">
|
|
3
|
-
|
|
4
|
-
<l:VerticalLayout width="calc(100% - 2rem)" class="mdcbaseinfoPanel">
|
|
5
|
-
<m:VBox id="idSectionAdditionalContent" fitContainer="false"/>
|
|
6
|
-
|
|
7
|
-
<m:VBox fitContainer="false" class="mdcbaseinfoPanelSeparator"
|
|
8
|
-
visible="{= ${$sapuimdclinkPanel>/countAdditionalContent} > 0 && ${$sapuimdcLink>/metadata}.length > 0}"/>
|
|
9
|
-
|
|
10
|
-
<!-- Determination of 'visible' property of PanelListItem rely on some prerequisites: -->
|
|
11
|
-
<!-- If link personalization is not enabled we have to show all links independent whether they are valid or not -->
|
|
12
|
-
<!-- The item without valid <code>key</code> property should always be shown. -->
|
|
13
|
-
<m:VBox id="idSectionLinks" fitContainer="false" class="mdcbaseinfoPanelSectionLinks"
|
|
14
|
-
items="{
|
|
15
|
-
path:'$sapuimdclinkPanel>/runtimeItems',
|
|
16
|
-
templateShareable:false
|
|
17
|
-
}">
|
|
18
|
-
<mdcLink:PanelListItem key="{$sapuimdclinkPanel>id}"
|
|
19
|
-
visible="{$sapuimdclinkPanel>visible}"
|
|
20
|
-
text="{$sapuimdclinkPanel>text}"
|
|
21
|
-
description="{$sapuimdclinkPanel>description}"
|
|
22
|
-
href="{$sapuimdclinkPanel>href}"
|
|
23
|
-
icon="{$sapuimdclinkPanel>icon}"
|
|
24
|
-
target="{$sapuimdclinkPanel>target}"
|
|
25
|
-
pressLink="onPressLink"
|
|
26
|
-
/>
|
|
27
|
-
</m:VBox>
|
|
28
|
-
|
|
29
|
-
<m:HBox visible="{= ${$sapuimdcLink>/metadata}.length > 0}"
|
|
30
|
-
id="idSectionPersonalizationButton" justifyContent="End" class="mdcbaseinfoPanelPersonalizationButton">
|
|
31
|
-
<m:Button id="idPersonalizationButton" type="Transparent" text="{$this.i18n>info.POPOVER_DEFINE_LINKS}"
|
|
32
|
-
press="onPressLinkPersonalization"/>
|
|
33
|
-
</m:HBox>
|
|
34
|
-
|
|
35
|
-
</l:VerticalLayout>
|
|
36
|
-
</core:FragmentDefinition>
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<core:FragmentDefinition xmlns:m="sap.m" xmlns:core="sap.ui.core" xmlns:l="sap.ui.layout">
|
|
2
|
-
|
|
3
|
-
<l:HorizontalLayout id="idLayout" class="mdcbaseinfoPanelListItem">
|
|
4
|
-
|
|
5
|
-
<m:HBox id="idContainer" visible="{$this>visible}">
|
|
6
|
-
<m:layoutData>
|
|
7
|
-
<m:FlexItemData
|
|
8
|
-
styleClass="{= ${$this>description} ? 'mdcbaseinfoPanelItemsGroup' : 'mdcbaseinfoPanelItemsWithoutGroup'}"/>
|
|
9
|
-
</m:layoutData>
|
|
10
|
-
|
|
11
|
-
<m:ImageContent src="{$this>icon}" visible="{= ${$this>icon} ? true:false}"/>
|
|
12
|
-
|
|
13
|
-
<m:VBox>
|
|
14
|
-
<m:Link text="{$this>text}" href="{$this>href}" target="{$this>target}" visible="{= ${$this>href} ? true:false}" press="onPress" wrapping="true"/>
|
|
15
|
-
<m:Label text="{$this>text}" visible="{= ${$this>href} ? false:true}" wrapping="true"/>
|
|
16
|
-
|
|
17
|
-
<m:Text text="{$this>description}" visible="{= ${$this>description} ? true:false}" wrapping="true"/>
|
|
18
|
-
</m:VBox>
|
|
19
|
-
</m:HBox>
|
|
20
|
-
|
|
21
|
-
</l:HorizontalLayout>
|
|
22
|
-
|
|
23
|
-
</core:FragmentDefinition>
|
|
24
|
-
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* ! OpenUI5
|
|
3
|
-
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
sap.ui.define([
|
|
8
|
-
'sap/ui/core/XMLComposite'
|
|
9
|
-
], function(XMLComposite) {
|
|
10
|
-
"use strict";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Constructor for a new PanelListItem.
|
|
14
|
-
*
|
|
15
|
-
* @param {string} [sId] ID for the new control, generated automatically if no ID is given
|
|
16
|
-
* @param {object} [mSettings] initial settings for the new control
|
|
17
|
-
* @class Type for <code>items</code> aggregation in <code>Panel</code> control.
|
|
18
|
-
* @extends sap.ui.core.XMLComposite
|
|
19
|
-
* @version 1.98.0
|
|
20
|
-
* @constructor
|
|
21
|
-
* @private
|
|
22
|
-
* @since 1.54.0
|
|
23
|
-
* @alias sap.ui.mdc.link.PanelListItem
|
|
24
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
25
|
-
*/
|
|
26
|
-
var PanelListItem = XMLComposite.extend("sap.ui.mdc.link.PanelListItem", /** @lends sap.ui.mdc.link.PanelListItem.prototype */
|
|
27
|
-
{
|
|
28
|
-
metadata: {
|
|
29
|
-
library: "sap.ui.mdc",
|
|
30
|
-
properties: {
|
|
31
|
-
/**
|
|
32
|
-
* Defines personalization key of the item.
|
|
33
|
-
*/
|
|
34
|
-
key: {
|
|
35
|
-
type: "string"
|
|
36
|
-
},
|
|
37
|
-
/**
|
|
38
|
-
* Defines text of the item.
|
|
39
|
-
*/
|
|
40
|
-
text: {
|
|
41
|
-
type: "string"
|
|
42
|
-
},
|
|
43
|
-
/**
|
|
44
|
-
* Defines additional text of the item.
|
|
45
|
-
*/
|
|
46
|
-
description: {
|
|
47
|
-
type: "string"
|
|
48
|
-
},
|
|
49
|
-
/**
|
|
50
|
-
* Defines href of the item.
|
|
51
|
-
*/
|
|
52
|
-
href: {
|
|
53
|
-
type: "string"
|
|
54
|
-
},
|
|
55
|
-
/**
|
|
56
|
-
* Defines icon of the item.
|
|
57
|
-
*/
|
|
58
|
-
icon: {
|
|
59
|
-
type: "string"
|
|
60
|
-
},
|
|
61
|
-
/**
|
|
62
|
-
* Defines target of the item.
|
|
63
|
-
*/
|
|
64
|
-
target: {
|
|
65
|
-
type: "string",
|
|
66
|
-
defaultValue: undefined
|
|
67
|
-
},
|
|
68
|
-
/**
|
|
69
|
-
* Defines visibility of the item.
|
|
70
|
-
*/
|
|
71
|
-
visible: {
|
|
72
|
-
type: "boolean",
|
|
73
|
-
defaultValue: true
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
events: {
|
|
77
|
-
/**
|
|
78
|
-
* Event is fired when the user triggers the link control.
|
|
79
|
-
*/
|
|
80
|
-
pressLink: {
|
|
81
|
-
allowPreventDefault: true,
|
|
82
|
-
parameters: {
|
|
83
|
-
target: {
|
|
84
|
-
type: "string"
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
PanelListItem.prototype.onPress = function(oEvent) {
|
|
92
|
-
if (!this.firePressLink({
|
|
93
|
-
href: oEvent.getSource().getHref(),
|
|
94
|
-
target: oEvent.getSource().getTarget()
|
|
95
|
-
})) {
|
|
96
|
-
oEvent.preventDefault();
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
return PanelListItem;
|
|
100
|
-
|
|
101
|
-
});
|