@openui5/sap.ui.mdc 1.97.1 → 1.98.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 +25 -30
- package/THIRDPARTY.txt +13 -20
- 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 +1 -1
- package/src/sap/ui/mdc/BaseDelegate.js +1 -1
- package/src/sap/ui/mdc/Chart.js +1016 -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 +4 -3
- package/src/sap/ui/mdc/LinkDelegate.js +1 -1
- package/src/sap/ui/mdc/MultiValueField.js +1 -1
- package/src/sap/ui/mdc/Table.js +48 -44
- package/src/sap/ui/mdc/TableDelegate.js +23 -10
- package/src/sap/ui/mdc/ValueHelp.js +19 -9
- package/src/sap/ui/mdc/actiontoolbar/ActionToolbarAction.js +1 -1
- package/src/sap/ui/mdc/{chartNew/ChartSelectionDetailsNew.js → chart/ChartSelectionDetails.js} +8 -8
- package/src/sap/ui/mdc/{chartNew/ChartToolbarNew.js → chart/ChartToolbar.js} +10 -10
- package/src/sap/ui/mdc/chart/ChartTypeButton.js +48 -52
- 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 +1 -1
- package/src/sap/ui/mdc/condition/Operator.js +1 -1
- package/src/sap/ui/mdc/condition/OperatorDynamicDateOption.js +1 -1
- package/src/sap/ui/mdc/condition/RangeOperator.js +1 -1
- package/src/sap/ui/mdc/designtime/chart/Chart.designtime.js +77 -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/field/BoolFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/ConditionFieldHelp.js +1 -1
- package/src/sap/ui/mdc/field/ConditionType.js +1 -1
- 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 +58 -21
- package/src/sap/ui/mdc/field/DynamicDateRangeConditionsType.js +4 -4
- package/src/sap/ui/mdc/field/FieldBase.js +30 -6
- package/src/sap/ui/mdc/field/FieldBaseRenderer.js +0 -3
- package/src/sap/ui/mdc/field/FieldHelpBase.js +1 -1
- package/src/sap/ui/mdc/field/FieldInfoBase.js +1 -1
- package/src/sap/ui/mdc/field/FieldInput.js +1 -1
- package/src/sap/ui/mdc/field/FieldInputRenderUtil.js +1 -1
- package/src/sap/ui/mdc/field/FieldMultiInput.js +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelp.js +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 +1 -1
- package/src/sap/ui/mdc/field/FieldValueHelpTableWrapperBase.js +1 -1
- 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/ValueHelpPanel.js +1 -1
- package/src/sap/ui/mdc/field/content/DateContent.js +2 -2
- package/src/sap/ui/mdc/filterbar/FilterBarBase.js +301 -124
- 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 +1 -1
- 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 +1 -1
- package/src/sap/ui/mdc/library.js +32 -37
- 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/Panel.js +140 -178
- 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 +6 -0
- package/src/sap/ui/mdc/messagebundle_ar.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_bg.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_ca.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_cs.properties +18 -15
- package/src/sap/ui/mdc/messagebundle_cy.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_da.properties +10 -7
- package/src/sap/ui/mdc/messagebundle_de.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_el.properties +4 -1
- package/src/sap/ui/mdc/messagebundle_en.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_en_GB.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_en_US_sappsd.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_en_US_saptrc.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_es.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_es_MX.properties +16 -13
- package/src/sap/ui/mdc/messagebundle_et.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_fi.properties +9 -6
- package/src/sap/ui/mdc/messagebundle_fr.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_fr_CA.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_hi.properties +4 -1
- package/src/sap/ui/mdc/messagebundle_hr.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_hu.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_id.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_it.properties +18 -15
- package/src/sap/ui/mdc/messagebundle_iw.properties +4 -1
- package/src/sap/ui/mdc/messagebundle_ja.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_kk.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_ko.properties +7 -4
- package/src/sap/ui/mdc/messagebundle_lt.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_lv.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_ms.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_nl.properties +8 -5
- package/src/sap/ui/mdc/messagebundle_no.properties +11 -8
- package/src/sap/ui/mdc/messagebundle_pl.properties +4 -1
- package/src/sap/ui/mdc/messagebundle_pt.properties +10 -7
- package/src/sap/ui/mdc/messagebundle_pt_PT.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_ro.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_ru.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_sh.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_sk.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_sl.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_sv.properties +5 -2
- package/src/sap/ui/mdc/messagebundle_th.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_tr.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_uk.properties +4 -1
- package/src/sap/ui/mdc/messagebundle_vi.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_zh_CN.properties +3 -0
- package/src/sap/ui/mdc/messagebundle_zh_TW.properties +3 -0
- package/src/sap/ui/mdc/mixin/AdaptationMixin.js +2 -3
- 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 +109 -93
- 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} +125 -46
- package/src/sap/ui/mdc/p13n/Engine.js +24 -10
- package/src/sap/ui/mdc/p13n/FlexUtil.js +11 -118
- package/src/sap/ui/mdc/p13n/P13nBuilder.js +1 -1
- 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 +6 -5
- 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/ValueHelpDialog.less +12 -1
- 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 +1 -1
- package/src/sap/ui/mdc/util/IdentifierUtil.js +1 -1
- 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 +36 -6
- package/src/sap/ui/mdc/valuehelp/content/MTable.js +43 -24
- package/test/sap/ui/mdc/testutils/opa/TestLibrary.js +2 -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 +5 -5
- 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 +264 -141
- package/test/sap/ui/mdc/testutils/opa/p13n/Util.js +27 -26
- 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
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
<core:FragmentDefinition xmlns:m="sap.m" xmlns:mdcLink="sap.ui.mdc.link" xmlns:core="sap.ui.core">
|
|
2
|
-
|
|
3
|
-
<m:Dialog horizontalScrolling="false"
|
|
4
|
-
contentWidth="25rem"
|
|
5
|
-
contentHeight="35rem"
|
|
6
|
-
draggable="true"
|
|
7
|
-
resizable="true"
|
|
8
|
-
title="{$this.i18n>info.SELECTION_DIALOG_ALIGNEDTITLE}"
|
|
9
|
-
stretch="{device>/system/phone}"
|
|
10
|
-
afterClose="onAfterClose"
|
|
11
|
-
class="mdcbaseinfoSelectionDialog">
|
|
12
|
-
<m:content>
|
|
13
|
-
<m:Table id="idList"
|
|
14
|
-
mode="MultiSelect"
|
|
15
|
-
includeItemInSelection="false"
|
|
16
|
-
selectionChange="onSelectionChange"
|
|
17
|
-
items="{path:'$this>/items',
|
|
18
|
-
templateShareable:false}">
|
|
19
|
-
<m:headerToolbar>
|
|
20
|
-
<m:OverflowToolbar>
|
|
21
|
-
<m:SearchField id="idSearchField" liveChange="onSearchFieldLiveChange" width="100%">
|
|
22
|
-
<m:layoutData>
|
|
23
|
-
<m:OverflowToolbarLayoutData shrinkable="true" moveToOverflow="true" priority="High"/>
|
|
24
|
-
</m:layoutData>
|
|
25
|
-
</m:SearchField>
|
|
26
|
-
</m:OverflowToolbar>
|
|
27
|
-
</m:headerToolbar>
|
|
28
|
-
<m:columns>
|
|
29
|
-
<m:Column>
|
|
30
|
-
<m:Text text="{$this.i18n>info.SELECTION_DIALOG_INFO_TOOLBAR} ({path:'$this>/@custom/countOfSelectedItems'}/{path:'$this>/@custom/countOfItems'}) "/>
|
|
31
|
-
</m:Column>
|
|
32
|
-
</m:columns>
|
|
33
|
-
<m:items>
|
|
34
|
-
<m:ColumnListItem id="idListItem" selected="{path:'$this>visible'}">
|
|
35
|
-
<mdcLink:PanelListItem visible="true"
|
|
36
|
-
text="{$this>text}"
|
|
37
|
-
description="{$this>description}"
|
|
38
|
-
href="{= ${$this>/showItemAsLink} ? ${$this>href}:null}"
|
|
39
|
-
target="{$this>target}"
|
|
40
|
-
icon="{$this>icon}"
|
|
41
|
-
pressLink="onPressLink"/>
|
|
42
|
-
</m:ColumnListItem>
|
|
43
|
-
</m:items>
|
|
44
|
-
</m:Table>
|
|
45
|
-
</m:content>
|
|
46
|
-
|
|
47
|
-
<m:buttons>
|
|
48
|
-
<m:Button id="idOk" text="{$this.i18n>p13nDialog.OK}" press="onPressOk" type="Emphasized">
|
|
49
|
-
<m:layoutData>
|
|
50
|
-
<m:OverflowToolbarLayoutData priority="NeverOverflow"/>
|
|
51
|
-
</m:layoutData>
|
|
52
|
-
</m:Button>
|
|
53
|
-
<m:Button id="idCancel" text="{$this.i18n>p13nDialog.CANCEL}" press="onPressCancel">
|
|
54
|
-
<m:layoutData>
|
|
55
|
-
<m:OverflowToolbarLayoutData priority="NeverOverflow"/>
|
|
56
|
-
</m:layoutData>
|
|
57
|
-
</m:Button>
|
|
58
|
-
<m:Button visible="{$this>/showReset}" enabled="{$this>/showResetEnabled}" id="idReset" text="{$this.i18n>p13nDialog.RESET}" press="onPressReset">
|
|
59
|
-
<m:layoutData>
|
|
60
|
-
<m:OverflowToolbarLayoutData priority="NeverOverflow"/>
|
|
61
|
-
</m:layoutData>
|
|
62
|
-
</m:Button>
|
|
63
|
-
</m:buttons>
|
|
64
|
-
</m:Dialog>
|
|
65
|
-
|
|
66
|
-
</core:FragmentDefinition>
|
|
@@ -1,213 +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', 'sap/ui/model/Filter', 'sap/ui/model/FilterOperator', 'sap/ui/base/ManagedObjectObserver', 'sap/base/Log', 'sap/ui/Device', 'sap/ui/model/json/JSONModel', 'sap/m/MessageBox'
|
|
9
|
-
], function(XMLComposite, Filter, FilterOperator, ManagedObjectObserver, Log, Device, JSONModel, MessageBox) {
|
|
10
|
-
"use strict";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Constructor for a new SelectionDialog.
|
|
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 The SelectionDialog control is used to show <code>items</code>.
|
|
18
|
-
* @extends sap.ui.core.XMLComposite
|
|
19
|
-
* @author SAP SE
|
|
20
|
-
* @version 1.97.1
|
|
21
|
-
* @constructor
|
|
22
|
-
* @private
|
|
23
|
-
* @since 1.60.0
|
|
24
|
-
* @alias sap.ui.mdc.link.SelectionDialog
|
|
25
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
26
|
-
*/
|
|
27
|
-
var SelectionDialog = XMLComposite.extend("sap.ui.mdc.link.SelectionDialog", /** @lends sap.ui.mdc.link.SelectionDialog.prototype */
|
|
28
|
-
{
|
|
29
|
-
metadata: {
|
|
30
|
-
library: "sap.ui.mdc",
|
|
31
|
-
properties: {
|
|
32
|
-
showItemAsLink: {
|
|
33
|
-
type: "boolean",
|
|
34
|
-
defaultValue: true,
|
|
35
|
-
invalidate: true
|
|
36
|
-
},
|
|
37
|
-
/**
|
|
38
|
-
* This property determines whether the 'Restore' button is shown inside the dialog. If this property is set to true, clicking the
|
|
39
|
-
* 'Reset' button will trigger the <code>reset</code> event sending a notification that model data must be reset.
|
|
40
|
-
*/
|
|
41
|
-
showReset: {
|
|
42
|
-
type: "boolean",
|
|
43
|
-
defaultValue: false,
|
|
44
|
-
invalidate: true
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* This property determines whether the 'Restore' button is enabled and is taken into account only if <code>showReset</code> is set
|
|
49
|
-
* to <code>true</code>.
|
|
50
|
-
*/
|
|
51
|
-
showResetEnabled: {
|
|
52
|
-
type: "boolean",
|
|
53
|
-
defaultValue: false,
|
|
54
|
-
invalidate: true
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
defaultAggregation: "items",
|
|
58
|
-
aggregations: {
|
|
59
|
-
/**
|
|
60
|
-
* Defines personalization items.
|
|
61
|
-
*/
|
|
62
|
-
items: {
|
|
63
|
-
type: "sap.ui.mdc.link.SelectionDialogItem",
|
|
64
|
-
multiple: true,
|
|
65
|
-
singularName: "item"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
events: {
|
|
69
|
-
/**
|
|
70
|
-
* Event fired if an item in <code>SelectionDialog</code> is set as visible or invisible.
|
|
71
|
-
*/
|
|
72
|
-
visibilityChanged: {
|
|
73
|
-
key: {
|
|
74
|
-
type: "string"
|
|
75
|
-
},
|
|
76
|
-
visible: {
|
|
77
|
-
type: "boolean"
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
/**
|
|
81
|
-
* Event fired if the 'ok' button in <code>SelectionDialog</code> is clicked.
|
|
82
|
-
*/
|
|
83
|
-
ok: {},
|
|
84
|
-
/**
|
|
85
|
-
* Event fired if the 'cancel' button in <code>SelectionDialog</code> is clicked.
|
|
86
|
-
*/
|
|
87
|
-
cancel: {},
|
|
88
|
-
/**
|
|
89
|
-
* Event fired if the 'reset' button in <code>SelectionDialog</code> is clicked.
|
|
90
|
-
*/
|
|
91
|
-
reset: {}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
|
|
96
|
-
SelectionDialog.prototype.init = function() {
|
|
97
|
-
// Set device model
|
|
98
|
-
var oDeviceModel = new JSONModel(Device);
|
|
99
|
-
oDeviceModel.setDefaultBindingMode("OneWay");
|
|
100
|
-
oDeviceModel.setSizeLimit(1000);
|
|
101
|
-
this.setModel(oDeviceModel, "device");
|
|
102
|
-
this._getManagedObjectModel().setSizeLimit(1000);
|
|
103
|
-
this._bUnconfirmedResetPressed = false;
|
|
104
|
-
};
|
|
105
|
-
SelectionDialog.prototype.open = function() {
|
|
106
|
-
this._getManagedObjectModel().setProperty("/@custom/countOfItems", this._getTable().getItems().length);
|
|
107
|
-
this._updateCountOfSelectedItems();
|
|
108
|
-
this._getCompositeAggregation().open();
|
|
109
|
-
};
|
|
110
|
-
SelectionDialog.prototype.close = function() {
|
|
111
|
-
this._getCompositeAggregation().close();
|
|
112
|
-
};
|
|
113
|
-
SelectionDialog.prototype.onSelectionChange = function(oEvent) {
|
|
114
|
-
oEvent.getParameter("listItems").forEach(function(oTableItem) {
|
|
115
|
-
this._selectTableItem(oTableItem);
|
|
116
|
-
}, this);
|
|
117
|
-
};
|
|
118
|
-
SelectionDialog.prototype.onSearchFieldLiveChange = function(oEvent) {
|
|
119
|
-
var aFilters = [];
|
|
120
|
-
|
|
121
|
-
var oSearchField = oEvent.getSource();
|
|
122
|
-
var sSearchText = oSearchField ? oSearchField.getValue() : "";
|
|
123
|
-
if (sSearchText) {
|
|
124
|
-
aFilters.push(new Filter([
|
|
125
|
-
new Filter("text", FilterOperator.Contains, sSearchText), new Filter("tooltip", FilterOperator.Contains, sSearchText), new Filter("description", FilterOperator.Contains, sSearchText)
|
|
126
|
-
], false));
|
|
127
|
-
}
|
|
128
|
-
this._getTable().getBinding("items").filter(aFilters);
|
|
129
|
-
};
|
|
130
|
-
SelectionDialog.prototype.onPressOk = function() {
|
|
131
|
-
this.fireOk();
|
|
132
|
-
};
|
|
133
|
-
SelectionDialog.prototype.onPressCancel = function() {
|
|
134
|
-
this.fireCancel();
|
|
135
|
-
};
|
|
136
|
-
SelectionDialog.prototype.onPressReset = function() {
|
|
137
|
-
this._resetSelection();
|
|
138
|
-
this.fireReset();
|
|
139
|
-
};
|
|
140
|
-
SelectionDialog.prototype.onAfterClose = function() {
|
|
141
|
-
this.fireCancel();
|
|
142
|
-
};
|
|
143
|
-
SelectionDialog.prototype.onPressLink = function(oEvent) {
|
|
144
|
-
var sHref = oEvent.getParameter("href");
|
|
145
|
-
if (this.getParent().getBeforeNavigationCallback() && oEvent.getParameter("target") !== "_blank") {
|
|
146
|
-
oEvent.preventDefault();
|
|
147
|
-
this.getParent().getBeforeNavigationCallback()(oEvent).then(function (bNavigate) {
|
|
148
|
-
if (bNavigate) {
|
|
149
|
-
window.location.href = sHref;
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
} else if (oEvent.getParameter("target") !== "_blank") {
|
|
153
|
-
oEvent.preventDefault();
|
|
154
|
-
MessageBox.show(sap.ui.getCore().getLibraryResourceBundle("sap.ui.mdc").getText("info.SELECTION_DIALOG_LINK_VALIDATION_QUESTION"), {
|
|
155
|
-
icon: MessageBox.Icon.WARNING,
|
|
156
|
-
title: sap.ui.getCore().getLibraryResourceBundle("sap.ui.mdc").getText("info.SELECTION_DIALOG_LINK_VALIDATION_TITLE"),
|
|
157
|
-
actions: [
|
|
158
|
-
MessageBox.Action.YES, MessageBox.Action.NO
|
|
159
|
-
],
|
|
160
|
-
onClose: function (oAction) {
|
|
161
|
-
if (oAction === MessageBox.Action.YES) {
|
|
162
|
-
window.location.href = sHref;
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
styleClass: this.$().closest(".sapUiSizeCompact").length ? "sapUiSizeCompact" : ""
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
};
|
|
169
|
-
SelectionDialog.prototype._selectTableItem = function(oTableItem) {
|
|
170
|
-
this._updateCountOfSelectedItems();
|
|
171
|
-
|
|
172
|
-
this.fireVisibilityChanged({
|
|
173
|
-
key: this._getKeyByTableItem(oTableItem),
|
|
174
|
-
visible: oTableItem.getSelected()
|
|
175
|
-
});
|
|
176
|
-
};
|
|
177
|
-
SelectionDialog.prototype._getTable = function() {
|
|
178
|
-
return sap.ui.getCore().byId(this.getId() + "--idList") || null;
|
|
179
|
-
};
|
|
180
|
-
SelectionDialog.prototype._getSelectedTableContextPaths = function() {
|
|
181
|
-
return this._getTable().getSelectedContextPaths();
|
|
182
|
-
};
|
|
183
|
-
/**
|
|
184
|
-
*
|
|
185
|
-
* @param {sap.m.ListItemBase} oTableItem Item whose key shall be returned
|
|
186
|
-
* @returns {string | null} key of the oTableItem
|
|
187
|
-
* @private
|
|
188
|
-
*/
|
|
189
|
-
SelectionDialog.prototype._getKeyByTableItem = function(oTableItem) {
|
|
190
|
-
var iIndex = this._getTable().indexOfItem(oTableItem);
|
|
191
|
-
return iIndex < 0 ? null : this._getTable().getBinding("items").getContexts()[iIndex].getObject().getKey();
|
|
192
|
-
};
|
|
193
|
-
SelectionDialog.prototype._updateCountOfSelectedItems = function() {
|
|
194
|
-
this._getManagedObjectModel().setProperty("/@custom/countOfSelectedItems", this._getSelectedTableContextPaths().length);
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
SelectionDialog.prototype._resetSelection = function() {
|
|
198
|
-
var oTable = this._getTable();
|
|
199
|
-
if (oTable) {
|
|
200
|
-
oTable.getItems().forEach(function(oTableItem) {
|
|
201
|
-
var iIndex = oTable.indexOfItem(oTableItem);
|
|
202
|
-
var bIsBaseline = oTable.getBinding("items").getContexts(undefined, undefined, undefined, true)[iIndex].getObject().getIsBaseline();
|
|
203
|
-
if (oTableItem.getSelected() !== bIsBaseline) {
|
|
204
|
-
oTableItem.setSelected(bIsBaseline);
|
|
205
|
-
this._selectTableItem(oTableItem);
|
|
206
|
-
}
|
|
207
|
-
}.bind(this));
|
|
208
|
-
}
|
|
209
|
-
};
|
|
210
|
-
|
|
211
|
-
return SelectionDialog;
|
|
212
|
-
|
|
213
|
-
});
|
|
@@ -1,86 +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/Element'
|
|
9
|
-
], function(Element) {
|
|
10
|
-
"use strict";
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Constructor for a new SelectionDialogItem.
|
|
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 tbd
|
|
18
|
-
* @extends sap.ui.core.Element
|
|
19
|
-
* @version 1.97.1
|
|
20
|
-
* @constructor
|
|
21
|
-
* @abstract
|
|
22
|
-
* @private
|
|
23
|
-
* @since 1.60.0
|
|
24
|
-
* @alias sap.ui.mdc.link.SelectionDialogItem
|
|
25
|
-
* @ui5-metamodel This control/element also will be described in the UI5 (legacy) designtime metamodel
|
|
26
|
-
*/
|
|
27
|
-
var SelectionDialogItem = Element.extend("sap.ui.mdc.link.SelectionDialogItem", /** @lends sap.ui.mdc.link.SelectionDialogItem.prototype */
|
|
28
|
-
{
|
|
29
|
-
metadata: {
|
|
30
|
-
library: "sap.ui.mdc",
|
|
31
|
-
properties: {
|
|
32
|
-
/**
|
|
33
|
-
* The unique key of the item.
|
|
34
|
-
*/
|
|
35
|
-
key: {
|
|
36
|
-
type: "string"
|
|
37
|
-
},
|
|
38
|
-
/**
|
|
39
|
-
* The text to be displayed for the item.
|
|
40
|
-
*/
|
|
41
|
-
text: {
|
|
42
|
-
type: "string"
|
|
43
|
-
},
|
|
44
|
-
/**
|
|
45
|
-
* The description to be displayed for the item.
|
|
46
|
-
*/
|
|
47
|
-
description: {
|
|
48
|
-
type: "string"
|
|
49
|
-
},
|
|
50
|
-
/**
|
|
51
|
-
* Defines href of the item.
|
|
52
|
-
*/
|
|
53
|
-
href: {
|
|
54
|
-
type: "string",
|
|
55
|
-
defaultValue: undefined
|
|
56
|
-
},
|
|
57
|
-
/**
|
|
58
|
-
* Defines target of the item.
|
|
59
|
-
*/
|
|
60
|
-
target: {
|
|
61
|
-
type: "string"
|
|
62
|
-
},
|
|
63
|
-
/**
|
|
64
|
-
* Defines icon of the item.
|
|
65
|
-
*/
|
|
66
|
-
icon: {
|
|
67
|
-
type: "string"
|
|
68
|
-
},
|
|
69
|
-
/**
|
|
70
|
-
* Defines visibility of the item.
|
|
71
|
-
*/
|
|
72
|
-
visible: {
|
|
73
|
-
type: "boolean",
|
|
74
|
-
defaultValue: false
|
|
75
|
-
},
|
|
76
|
-
isBaseline: {
|
|
77
|
-
type: "boolean",
|
|
78
|
-
defaultValue: false
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
|
|
84
|
-
return SelectionDialogItem;
|
|
85
|
-
|
|
86
|
-
});
|
|
@@ -1,35 +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
|
-
"../../ChartDelegateNew",
|
|
9
|
-
"../../util/loadModules",
|
|
10
|
-
"../../library",
|
|
11
|
-
"sap/ui/core/Core"
|
|
12
|
-
], function (
|
|
13
|
-
ChartDelegate,
|
|
14
|
-
loadModules,
|
|
15
|
-
library,
|
|
16
|
-
Core
|
|
17
|
-
) {
|
|
18
|
-
"use strict";
|
|
19
|
-
/**
|
|
20
|
-
* Delegate class for sap.ui.mdc.ChartNew and ODataV4.
|
|
21
|
-
* Enables additional analytical capabilities.
|
|
22
|
-
* <b>Note:</b> The class is experimental and the API/behavior is not finalized.
|
|
23
|
-
*
|
|
24
|
-
* @author SAP SE
|
|
25
|
-
* @private
|
|
26
|
-
* @ui5-restricted sap.fe
|
|
27
|
-
* @MDC_PUBLIC_CANDIDATE
|
|
28
|
-
* @since 1.88
|
|
29
|
-
* @alias sap.ui.mdc.odata.v4.ChartDelegateNew
|
|
30
|
-
*/
|
|
31
|
-
var Delegate = Object.assign({}, ChartDelegate);
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return Delegate;
|
|
35
|
-
});
|