@sapui5/sap.fe.macros 1.141.2 → 1.142.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sap/fe/macros/.library +1 -1
- package/src/sap/fe/macros/Breadcrumbs.js +4 -10
- package/src/sap/fe/macros/Breadcrumbs.tsx +2 -8
- package/src/sap/fe/macros/Chart.js +34 -23
- package/src/sap/fe/macros/Chart.tsx +25 -11
- package/src/sap/fe/macros/CollaborativeDraftHandler.js +48 -31
- package/src/sap/fe/macros/CollaborativeDraftHandler.tsx +51 -26
- package/src/sap/fe/macros/CollectionBindingInfo.js +8 -2
- package/src/sap/fe/macros/CollectionBindingInfo.ts +11 -6
- package/src/sap/fe/macros/CommonHelper.js +14 -24
- package/src/sap/fe/macros/CommonHelper.ts +18 -25
- package/src/sap/fe/macros/Field.js +34 -17
- package/src/sap/fe/macros/Field.ts +64 -32
- package/src/sap/fe/macros/FooterContent.js +7 -3
- package/src/sap/fe/macros/FooterContent.tsx +8 -13
- package/src/sap/fe/macros/KPITag.js +1 -1
- package/src/sap/fe/macros/KPITag.tsx +3 -1
- package/src/sap/fe/macros/MacroAPI.js +3 -2
- package/src/sap/fe/macros/MacroAPI.ts +2 -2
- package/src/sap/fe/macros/MessageButton.js +4 -3
- package/src/sap/fe/macros/MessageButton.tsx +7 -3
- package/src/sap/fe/macros/MicroChart.js +10 -6
- package/src/sap/fe/macros/MicroChart.tsx +8 -2
- package/src/sap/fe/macros/MultiValueField.js +22 -36
- package/src/sap/fe/macros/MultiValueField.tsx +34 -66
- package/src/sap/fe/macros/Page.js +8 -4
- package/src/sap/fe/macros/Page.tsx +13 -4
- package/src/sap/fe/macros/RichTextEditor.js +14 -17
- package/src/sap/fe/macros/RichTextEditor.tsx +12 -16
- package/src/sap/fe/macros/Status.js +35 -8
- package/src/sap/fe/macros/Status.tsx +23 -2
- package/src/sap/fe/macros/ValueHelp.js +5 -2
- package/src/sap/fe/macros/ValueHelp.tsx +5 -0
- package/src/sap/fe/macros/ai/EasyFillDialog.js +2 -1
- package/src/sap/fe/macros/ai/EasyFillDialog.tsx +1 -0
- package/src/sap/fe/macros/ai/EasyFilterBar.js +7 -34
- package/src/sap/fe/macros/ai/EasyFilterBar.tsx +6 -35
- package/src/sap/fe/macros/ai/EasyFilterDataFetcher.js +31 -7
- package/src/sap/fe/macros/ai/EasyFilterDataFetcher.ts +33 -6
- package/src/sap/fe/macros/ai/SummarizationButton.js +6 -4
- package/src/sap/fe/macros/ai/SummarizationButton.tsx +5 -3
- package/src/sap/fe/macros/chart/Action.js +37 -2
- package/src/sap/fe/macros/chart/Action.ts +21 -0
- package/src/sap/fe/macros/chart/ActionGroup.js +25 -2
- package/src/sap/fe/macros/chart/ActionGroup.ts +13 -0
- package/src/sap/fe/macros/chart/ChartDelegate.js +19 -8
- package/src/sap/fe/macros/chart/ChartDelegate.ts +36 -12
- package/src/sap/fe/macros/chart/MdcChartTemplate.js +59 -14
- package/src/sap/fe/macros/chart/MdcChartTemplate.tsx +81 -31
- package/src/sap/fe/macros/chart/OverflowGroup.js +62 -0
- package/src/sap/fe/macros/chart/OverflowGroup.ts +22 -0
- package/src/sap/fe/macros/controls/FilterBar.js +39 -3
- package/src/sap/fe/macros/controls/FilterBar.ts +50 -2
- package/src/sap/fe/macros/controls/RadioButtons.js +18 -5
- package/src/sap/fe/macros/controls/RadioButtons.tsx +10 -1
- package/src/sap/fe/macros/controls/TextLink.js +15 -1
- package/src/sap/fe/macros/controls/TextLink.tsx +19 -0
- package/src/sap/fe/macros/coreUI/CreateDialog.js +2 -2
- package/src/sap/fe/macros/coreUI/CreateDialog.tsx +1 -1
- package/src/sap/fe/macros/coreUI/OperationParameterDialog.js +46 -13
- package/src/sap/fe/macros/coreUI/OperationParameterDialog.tsx +51 -10
- package/src/sap/fe/macros/draftIndicator/DraftIndicator.js +4 -2
- package/src/sap/fe/macros/draftIndicator/DraftIndicator.tsx +3 -1
- package/src/sap/fe/macros/field/FieldFormatOptions.js +3 -3
- package/src/sap/fe/macros/field/FieldFormatOptions.ts +1 -1
- package/src/sap/fe/macros/field/FieldHelper.js +4 -3
- package/src/sap/fe/macros/field/FieldHelper.ts +7 -1
- package/src/sap/fe/macros/field/FieldRuntime.js +38 -8
- package/src/sap/fe/macros/field/FieldRuntime.ts +65 -7
- package/src/sap/fe/macros/field/FieldRuntimeHelper.js +6 -35
- package/src/sap/fe/macros/field/FieldRuntimeHelper.ts +35 -60
- package/src/sap/fe/macros/field/FieldTemplating.js +10 -4
- package/src/sap/fe/macros/field/FieldTemplating.ts +12 -5
- package/src/sap/fe/macros/filter/FilterFieldHelper.js +6 -4
- package/src/sap/fe/macros/filter/FilterFieldHelper.ts +7 -2
- package/src/sap/fe/macros/filter/FilterUtils.js +100 -36
- package/src/sap/fe/macros/filter/FilterUtils.ts +127 -39
- package/src/sap/fe/macros/filterBar/ExtendedSemanticDateOperators.js +2 -2
- package/src/sap/fe/macros/filterBar/ExtendedSemanticDateOperators.ts +1 -1
- package/src/sap/fe/macros/filterBar/FilterBar.block.js +13 -3
- package/src/sap/fe/macros/filterBar/FilterBar.block.tsx +29 -8
- package/src/sap/fe/macros/filterBar/FilterBarAPI.js +10 -7
- package/src/sap/fe/macros/filterBar/FilterBarAPI.ts +31 -16
- package/src/sap/fe/macros/filterBar/FilterBarDelegate.js +4 -3
- package/src/sap/fe/macros/filterBar/FilterBarDelegate.ts +5 -2
- package/src/sap/fe/macros/filterBar/mixin/FilterBarAPIStateHandler.js +4 -3
- package/src/sap/fe/macros/filterBar/mixin/FilterBarAPIStateHandler.ts +3 -2
- package/src/sap/fe/macros/form/Form.block.js +27 -2
- package/src/sap/fe/macros/form/Form.block.ts +31 -11
- package/src/sap/fe/macros/form/FormActionButtons.fragment.xml +13 -3
- package/src/sap/fe/macros/form/FormContainer.block.js +104 -72
- package/src/sap/fe/macros/form/FormContainer.block.ts +114 -72
- package/src/sap/fe/macros/formatters/TableFormatter.js +13 -10
- package/src/sap/fe/macros/formatters/TableFormatter.ts +11 -9
- package/src/sap/fe/macros/formatters/VisualFilterFormatter.js +6 -4
- package/src/sap/fe/macros/formatters/VisualFilterFormatter.ts +5 -5
- package/src/sap/fe/macros/inlineEdit/InlineEdit.js +5 -5
- package/src/sap/fe/macros/inlineEdit/InlineEdit.ts +4 -4
- package/src/sap/fe/macros/insights/InsightsService.js +3 -2
- package/src/sap/fe/macros/insights/InsightsService.ts +2 -1
- package/src/sap/fe/macros/internal/DataPoint.js +7 -8
- package/src/sap/fe/macros/internal/DataPoint.tsx +6 -9
- package/src/sap/fe/macros/internal/field/DisplayStyle.js +8 -6
- package/src/sap/fe/macros/internal/field/DisplayStyle.tsx +7 -8
- package/src/sap/fe/macros/internal/field/EditStyle.js +18 -24
- package/src/sap/fe/macros/internal/field/EditStyle.tsx +24 -44
- package/src/sap/fe/macros/internal/field/FieldBlockStructure.js +2 -2
- package/src/sap/fe/macros/internal/field/FieldBlockStructure.tsx +1 -1
- package/src/sap/fe/macros/internal/field/FieldStructure.js +1 -2
- package/src/sap/fe/macros/internal/field/FieldStructure.tsx +0 -2
- package/src/sap/fe/macros/internal/field/FieldStructureHelper.js +7 -7
- package/src/sap/fe/macros/internal/field/FieldStructureHelper.ts +17 -11
- package/src/sap/fe/macros/internal/helpers/DataPointTemplating.js +6 -2
- package/src/sap/fe/macros/internal/helpers/DataPointTemplating.ts +5 -1
- package/src/sap/fe/macros/internal/valuehelp/AdditionalValueFormatter.js +44 -12
- package/src/sap/fe/macros/internal/valuehelp/AdditionalValueFormatter.ts +42 -11
- package/src/sap/fe/macros/internal/valuehelp/AdditionalValueHelper.js +54 -1
- package/src/sap/fe/macros/internal/valuehelp/AdditionalValueHelper.ts +59 -0
- package/src/sap/fe/macros/internal/valuehelp/TableDelegate.js +4 -4
- package/src/sap/fe/macros/internal/valuehelp/TableDelegate.ts +6 -6
- package/src/sap/fe/macros/internal/valuehelp/ValueListDialogTable.fragment.xml +5 -2
- package/src/sap/fe/macros/library.js +5 -6
- package/src/sap/fe/macros/{library.ts → library.tsx} +3 -1
- package/src/sap/fe/macros/mdc/adapter/StateHelper.js +15 -5
- package/src/sap/fe/macros/mdc/adapter/StateHelper.ts +21 -5
- package/src/sap/fe/macros/messagebundle.properties +13 -5
- package/src/sap/fe/macros/messagebundle_ar.properties +12 -3
- package/src/sap/fe/macros/messagebundle_bg.properties +13 -4
- package/src/sap/fe/macros/messagebundle_ca.properties +12 -3
- package/src/sap/fe/macros/messagebundle_cnr.properties +12 -3
- package/src/sap/fe/macros/messagebundle_cs.properties +11 -2
- package/src/sap/fe/macros/messagebundle_cy.properties +12 -3
- package/src/sap/fe/macros/messagebundle_da.properties +12 -3
- package/src/sap/fe/macros/messagebundle_de.properties +16 -7
- package/src/sap/fe/macros/messagebundle_el.properties +13 -4
- package/src/sap/fe/macros/messagebundle_en.properties +13 -4
- package/src/sap/fe/macros/messagebundle_en_GB.properties +13 -4
- package/src/sap/fe/macros/messagebundle_en_US_saprigi.properties +12 -3
- package/src/sap/fe/macros/messagebundle_es.properties +12 -3
- package/src/sap/fe/macros/messagebundle_es_MX.properties +12 -3
- package/src/sap/fe/macros/messagebundle_et.properties +12 -3
- package/src/sap/fe/macros/messagebundle_fi.properties +12 -3
- package/src/sap/fe/macros/messagebundle_fr.properties +12 -3
- package/src/sap/fe/macros/messagebundle_fr_CA.properties +12 -3
- package/src/sap/fe/macros/messagebundle_hi.properties +12 -3
- package/src/sap/fe/macros/messagebundle_hr.properties +13 -4
- package/src/sap/fe/macros/messagebundle_hu.properties +12 -3
- package/src/sap/fe/macros/messagebundle_id.properties +18 -9
- package/src/sap/fe/macros/messagebundle_it.properties +12 -3
- package/src/sap/fe/macros/messagebundle_iw.properties +12 -3
- package/src/sap/fe/macros/messagebundle_ja.properties +12 -3
- package/src/sap/fe/macros/messagebundle_kk.properties +11 -2
- package/src/sap/fe/macros/messagebundle_ko.properties +13 -4
- package/src/sap/fe/macros/messagebundle_lt.properties +12 -3
- package/src/sap/fe/macros/messagebundle_lv.properties +12 -3
- package/src/sap/fe/macros/messagebundle_mk.properties +12 -3
- package/src/sap/fe/macros/messagebundle_ms.properties +12 -3
- package/src/sap/fe/macros/messagebundle_nl.properties +12 -3
- package/src/sap/fe/macros/messagebundle_no.properties +12 -3
- package/src/sap/fe/macros/messagebundle_pl.properties +12 -3
- package/src/sap/fe/macros/messagebundle_pt.properties +12 -3
- package/src/sap/fe/macros/messagebundle_pt_PT.properties +12 -3
- package/src/sap/fe/macros/messagebundle_ro.properties +13 -4
- package/src/sap/fe/macros/messagebundle_ru.properties +12 -3
- package/src/sap/fe/macros/messagebundle_sh.properties +12 -3
- package/src/sap/fe/macros/messagebundle_sk.properties +12 -3
- package/src/sap/fe/macros/messagebundle_sl.properties +13 -4
- package/src/sap/fe/macros/messagebundle_sr.properties +12 -3
- package/src/sap/fe/macros/messagebundle_sv.properties +12 -3
- package/src/sap/fe/macros/messagebundle_th.properties +11 -2
- package/src/sap/fe/macros/messagebundle_tr.properties +12 -3
- package/src/sap/fe/macros/messagebundle_uk.properties +12 -3
- package/src/sap/fe/macros/messagebundle_vi.properties +13 -4
- package/src/sap/fe/macros/messagebundle_zh_CN.properties +12 -3
- package/src/sap/fe/macros/messagebundle_zh_TW.properties +12 -3
- package/src/sap/fe/macros/messages/MessageButton.js +21 -12
- package/src/sap/fe/macros/messages/MessageButton.ts +21 -11
- package/src/sap/fe/macros/multivaluefield/MultiValueFieldDelegate.js +4 -3
- package/src/sap/fe/macros/multivaluefield/MultiValueFieldDelegate.ts +5 -2
- package/src/sap/fe/macros/quickView/QuickView.js +5 -4
- package/src/sap/fe/macros/quickView/QuickView.tsx +10 -3
- package/src/sap/fe/macros/richtexteditor/ButtonGroup.js +2 -2
- package/src/sap/fe/macros/richtexteditor/ButtonGroup.ts +2 -2
- package/src/sap/fe/macros/table/Action.js +15 -2
- package/src/sap/fe/macros/table/Action.ts +11 -1
- package/src/sap/fe/macros/table/ActionGroup.js +15 -2
- package/src/sap/fe/macros/table/ActionGroup.ts +8 -0
- package/src/sap/fe/macros/table/ActionGroupOverride.js +14 -2
- package/src/sap/fe/macros/table/ActionGroupOverride.ts +7 -0
- package/src/sap/fe/macros/table/ActionOverride.js +14 -2
- package/src/sap/fe/macros/table/ActionOverride.ts +7 -0
- package/src/sap/fe/macros/table/ActionsTemplating.js +21 -6
- package/src/sap/fe/macros/table/ActionsTemplating.tsx +19 -4
- package/src/sap/fe/macros/table/MdcTableTemplate.js +113 -15
- package/src/sap/fe/macros/table/MdcTableTemplate.tsx +162 -14
- package/src/sap/fe/macros/table/OverflowGroups.js +59 -0
- package/src/sap/fe/macros/table/OverflowGroups.ts +27 -0
- package/src/sap/fe/macros/table/Table.block.js +72 -29
- package/src/sap/fe/macros/table/Table.block.tsx +71 -15
- package/src/sap/fe/macros/table/TableAPI.js +213 -154
- package/src/sap/fe/macros/table/TableAPI.ts +116 -60
- package/src/sap/fe/macros/table/TableDefinition.js +19 -2
- package/src/sap/fe/macros/table/TableDefinition.ts +17 -1
- package/src/sap/fe/macros/table/TableEventHandlerProvider.js +8 -5
- package/src/sap/fe/macros/table/TableEventHandlerProvider.ts +14 -12
- package/src/sap/fe/macros/table/TableHelper.js +5 -2
- package/src/sap/fe/macros/table/TableHelper.ts +5 -2
- package/src/sap/fe/macros/table/TableRuntime.js +2 -2
- package/src/sap/fe/macros/table/TableRuntime.ts +4 -6
- package/src/sap/fe/macros/table/TableSizeHelper.js +4 -4
- package/src/sap/fe/macros/table/TableSizeHelper.ts +6 -11
- package/src/sap/fe/macros/table/delegates/TableDelegate.js +69 -28
- package/src/sap/fe/macros/table/delegates/TableDelegate.ts +111 -122
- package/src/sap/fe/macros/table/massEdit/MassEditDialog.js +41 -15
- package/src/sap/fe/macros/table/massEdit/MassEditDialog.tsx +41 -22
- package/src/sap/fe/macros/table/massEdit/MassEditDialogHelper.js +2 -2
- package/src/sap/fe/macros/table/massEdit/MassEditDialogHelper.tsx +1 -1
- package/src/sap/fe/macros/table/massEdit/MassEditField.js +1 -1
- package/src/sap/fe/macros/table/massEdit/MassEditField.tsx +3 -6
- package/src/sap/fe/macros/table/mixin/EmptyRowsHandler.js +6 -5
- package/src/sap/fe/macros/table/mixin/EmptyRowsHandler.ts +10 -4
- package/src/sap/fe/macros/table/mixin/TableAPIStateHandler.js +7 -9
- package/src/sap/fe/macros/table/mixin/TableAPIStateHandler.ts +7 -8
- package/src/sap/fe/macros/table/mixin/TableExport.js +1 -1
- package/src/sap/fe/macros/table/mixin/TableExport.ts +3 -3
- package/src/sap/fe/macros/table/mixin/TableHierarchy.js +6 -6
- package/src/sap/fe/macros/table/mixin/TableHierarchy.ts +5 -5
- package/src/sap/fe/macros/valuehelp/ValueHelpDelegate.js +5 -3
- package/src/sap/fe/macros/valuehelp/ValueHelpDelegate.ts +7 -4
- package/src/sap/fe/macros/visualfilters/InteractiveChartHelper.js +4 -4
- package/src/sap/fe/macros/visualfilters/InteractiveChartHelper.ts +3 -3
- package/src/sap/fe/macros/visualfilters/VisualFilter.js +20 -2
- package/src/sap/fe/macros/visualfilters/VisualFilter.tsx +28 -6
- package/src/sap/fe/macros/visualfilters/VisualFilterRuntime.js +6 -3
- package/src/sap/fe/macros/visualfilters/VisualFilterRuntime.ts +4 -3
- package/src/sap/fe/macros/visualfilters/fragments/InteractiveCharts.js +3 -3
- package/src/sap/fe/macros/visualfilters/fragments/InteractiveCharts.tsx +10 -4
- package/src/sap/fe/macros/visualfilters/fragments/InteractiveDonutChart.fragment.xml +1 -1
|
@@ -7,10 +7,13 @@ import type sapChart from "sap/chart/Chart";
|
|
|
7
7
|
import TimeUnitType from "sap/chart/TimeUnitType";
|
|
8
8
|
import type { SelectionMode } from "sap/chart/library";
|
|
9
9
|
import type { CompiledBindingToolkitExpression } from "sap/fe/base/BindingToolkit";
|
|
10
|
-
import type { _FilterRestrictions } from "sap/fe/core/CommonUtils";
|
|
11
10
|
import CommonUtils from "sap/fe/core/CommonUtils";
|
|
12
11
|
import type { MetaModelPropertyAnnotations } from "sap/fe/core/converters/MetaModelConverter";
|
|
12
|
+
import * as MetaModelConverter from "sap/fe/core/converters/MetaModelConverter";
|
|
13
|
+
import type { PageContextPathTarget } from "sap/fe/core/converters/TemplateConverter";
|
|
13
14
|
import type { ChartApplySupported } from "sap/fe/core/converters/controls/Common/Chart";
|
|
15
|
+
import type { FilterRestrictions } from "sap/fe/core/converters/controls/Common/filter/FilterRestrictions";
|
|
16
|
+
import FetchFilterRestrictions from "sap/fe/core/converters/controls/Common/filter/FilterRestrictions";
|
|
14
17
|
import valueFormatters from "sap/fe/core/formatters/ValueFormatter";
|
|
15
18
|
import type {
|
|
16
19
|
FilterRestrictionsPropertyInfoType,
|
|
@@ -20,8 +23,9 @@ import type {
|
|
|
20
23
|
import { getFilterableData, getSortRestrictionsInfo, isMultiValueFilterExpression } from "sap/fe/core/helpers/MetaModelFunction";
|
|
21
24
|
import type { InternalModelContext } from "sap/fe/core/helpers/ModelHelper";
|
|
22
25
|
import ModelHelper from "sap/fe/core/helpers/ModelHelper";
|
|
23
|
-
import ResourceModelHelper from "sap/fe/core/helpers/ResourceModelHelper";
|
|
24
|
-
import type {
|
|
26
|
+
import ResourceModelHelper, { getLocalizedText } from "sap/fe/core/helpers/ResourceModelHelper";
|
|
27
|
+
import type { DataModelObjectPath } from "sap/fe/core/templating/DataModelPathHelper";
|
|
28
|
+
import type { SerializedCollectionBindingInfo } from "sap/fe/macros/CollectionBindingInfo";
|
|
25
29
|
import CommonHelper from "sap/fe/macros/CommonHelper";
|
|
26
30
|
import type { PropertyInfo } from "sap/fe/macros/DelegateUtil";
|
|
27
31
|
import MacrosDelegateUtil from "sap/fe/macros/DelegateUtil";
|
|
@@ -80,8 +84,10 @@ ChartDelegate._handleProperty = function (
|
|
|
80
84
|
const sortRestrictionsInfo = getSortRestrictionsInfo(mEntitySetAnnotations);
|
|
81
85
|
const metaModel = oContext.getModel();
|
|
82
86
|
const entityTypePath = oMDCChart.data("entityType");
|
|
83
|
-
const
|
|
84
|
-
const filterRestrictions:
|
|
87
|
+
const dataModel = MetaModelConverter.getInvolvedDataModelObjects(metaModel.getContext(entityTypePath));
|
|
88
|
+
const filterRestrictions: FilterRestrictions = FetchFilterRestrictions.getFilterRestrictionsByDataModel(
|
|
89
|
+
dataModel as DataModelObjectPath<PageContextPathTarget>
|
|
90
|
+
);
|
|
85
91
|
const propertyFilterableData: Record<string, FilterRestrictionsPropertyInfoType> = {};
|
|
86
92
|
getFilterableData(
|
|
87
93
|
propertyFilterableData,
|
|
@@ -144,6 +150,15 @@ ChartDelegate._handleProperty = function (
|
|
|
144
150
|
if (!unitOfMeasures.includes(oAggregateProperty.path)) {
|
|
145
151
|
aProperties.push(oAggregateProperty);
|
|
146
152
|
}
|
|
153
|
+
if (oAggregateProperty.label.startsWith("{metaModel>")) {
|
|
154
|
+
oAggregateProperty.label = ModelHelper.fetchTextFromMetaModel(
|
|
155
|
+
oAggregateProperty.label,
|
|
156
|
+
undefined,
|
|
157
|
+
(oMDCChart.getModel() as ODataModel).getMetaModel()
|
|
158
|
+
);
|
|
159
|
+
} else {
|
|
160
|
+
oAggregateProperty.label = getLocalizedText(oAggregateProperty.label, oMDCChart);
|
|
161
|
+
}
|
|
147
162
|
});
|
|
148
163
|
//Add transformation aggregated properties to chart properties
|
|
149
164
|
if (aModes && aModes.includes("Filter")) {
|
|
@@ -239,7 +254,7 @@ function addPropertyToChart(
|
|
|
239
254
|
sKey: string,
|
|
240
255
|
oPropertyAnnotations: MetaModelPropertyAnnotations,
|
|
241
256
|
isFilterable: boolean,
|
|
242
|
-
oFilterRestrictionsInfo:
|
|
257
|
+
oFilterRestrictionsInfo: FilterRestrictions,
|
|
243
258
|
isSortable: boolean,
|
|
244
259
|
oMDCChart: Chart,
|
|
245
260
|
sCriticality: string,
|
|
@@ -297,6 +312,15 @@ function addPropertyToChart(
|
|
|
297
312
|
break;
|
|
298
313
|
}
|
|
299
314
|
}
|
|
315
|
+
if (oProperty.label.startsWith("{metaModel>")) {
|
|
316
|
+
oProperty.label = ModelHelper.fetchTextFromMetaModel(
|
|
317
|
+
oProperty.label,
|
|
318
|
+
undefined,
|
|
319
|
+
(oMDCChart.getModel() as ODataModel).getMetaModel()
|
|
320
|
+
);
|
|
321
|
+
} else {
|
|
322
|
+
oProperty.label = getLocalizedText(oProperty.label, oMDCChart);
|
|
323
|
+
}
|
|
300
324
|
|
|
301
325
|
aProperties.push(oProperty);
|
|
302
326
|
return aProperties;
|
|
@@ -404,7 +428,7 @@ ChartDelegate._updateIllustratedMessage = function (oChart: Chart, illustratedMe
|
|
|
404
428
|
const noDataControl = oChart.getNoData() as IllustratedMessage;
|
|
405
429
|
noDataControl.setTitle(illustratedMessageDetail.title);
|
|
406
430
|
noDataControl.setDescription(illustratedMessageDetail.description);
|
|
407
|
-
noDataControl.setIllustrationType(illustratedMessageDetail.illustrationType || IllustratedMessageType.
|
|
431
|
+
noDataControl.setIllustrationType(illustratedMessageDetail.illustrationType || IllustratedMessageType.NoEntries);
|
|
408
432
|
noDataControl.setIllustrationSize(illustratedMessageDetail.illustrationSize || IllustratedMessageSize.Auto);
|
|
409
433
|
};
|
|
410
434
|
|
|
@@ -424,13 +448,13 @@ ChartDelegate.setChartNoDataIllustratedMessage = function (chart: Chart, binding
|
|
|
424
448
|
return {
|
|
425
449
|
title: resourceModel.getText("T_ILLUSTRATED_MESSAGE_TITLE_NOSEARCHRESULTS", undefined, suffixResourceKey),
|
|
426
450
|
description: resourceModel.getText("M_TABLE_AND_CHART_NO_DATA_TEXT_MULTI_VIEW", undefined, suffixResourceKey),
|
|
427
|
-
illustrationType: IllustratedMessageType.
|
|
451
|
+
illustrationType: IllustratedMessageType.NoFilterResults
|
|
428
452
|
};
|
|
429
453
|
}
|
|
430
454
|
return {
|
|
431
455
|
title: resourceModel.getText("T_ILLUSTRATED_MESSAGE_TITLE_NOSEARCHRESULTS", undefined, suffixResourceKey),
|
|
432
456
|
description: resourceModel.getText("T_TABLE_AND_CHART_NO_DATA_TEXT_WITH_FILTER", undefined, suffixResourceKey),
|
|
433
|
-
illustrationType: IllustratedMessageType.
|
|
457
|
+
illustrationType: IllustratedMessageType.NoFilterResults,
|
|
434
458
|
illustrationSize: converterType === "ObjectPage" ? IllustratedMessageSize.Small : IllustratedMessageSize.Auto
|
|
435
459
|
};
|
|
436
460
|
};
|
|
@@ -446,7 +470,7 @@ ChartDelegate.setChartNoDataIllustratedMessage = function (chart: Chart, binding
|
|
|
446
470
|
illustratedInformation = {
|
|
447
471
|
title: resourceModel.getText("T_ILLUSTRATED_MESSAGE_TITLE_NODATA", undefined, suffixResourceKey),
|
|
448
472
|
description: resourceModel.getText("M_TABLE_AND_CHART_NO_FILTERS_NO_DATA_TEXT", undefined, suffixResourceKey),
|
|
449
|
-
illustrationType: IllustratedMessageType.
|
|
473
|
+
illustrationType: IllustratedMessageType.NoEntries,
|
|
450
474
|
illustrationSize: IllustratedMessageSize.Small
|
|
451
475
|
};
|
|
452
476
|
}
|
|
@@ -454,7 +478,7 @@ ChartDelegate.setChartNoDataIllustratedMessage = function (chart: Chart, binding
|
|
|
454
478
|
ChartDelegate._updateIllustratedMessage(chart, illustratedInformation);
|
|
455
479
|
};
|
|
456
480
|
|
|
457
|
-
ChartDelegate.updateBindingInfo = function (oChart: Chart, oBindingInfo:
|
|
481
|
+
ChartDelegate.updateBindingInfo = function (oChart: Chart, oBindingInfo: SerializedCollectionBindingInfo): void {
|
|
458
482
|
const internalBindingContext = oChart.getBindingContext("internal") as InternalModelContext;
|
|
459
483
|
|
|
460
484
|
internalBindingContext.setProperty("isInsightsEnabled", true);
|
|
@@ -627,7 +651,7 @@ ChartDelegate._createPropertyInfosForAggregatable = function (
|
|
|
627
651
|
oMDCChart: Chart,
|
|
628
652
|
sKey: string,
|
|
629
653
|
oPropertyAnnotations: MetaModelPropertyAnnotations,
|
|
630
|
-
oFilterRestrictionsInfo:
|
|
654
|
+
oFilterRestrictionsInfo: FilterRestrictions,
|
|
631
655
|
sortRestrictionsInfo: SortRestrictionsInfoType,
|
|
632
656
|
mKnownAggregatableProps: Record<string, Record<string, { label: string; name: string }>>,
|
|
633
657
|
mCustomAggregates: { [propertyName: string]: unknown },
|