@sapui5/sap.fe.macros 1.141.2 → 1.143.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/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 +47 -36
- package/src/sap/fe/macros/CollaborativeDraftHandler.tsx +50 -31
- 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/ConditionalSwitch.js +1 -2
- package/src/sap/fe/macros/ConditionalSwitch.tsx +0 -1
- package/src/sap/fe/macros/ConditionalSwitchProperty.js +1 -3
- package/src/sap/fe/macros/ConditionalSwitchProperty.tsx +0 -2
- 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 +6 -6
- package/src/sap/fe/macros/KPITag.tsx +8 -6
- package/src/sap/fe/macros/MacroAPI.js +4 -3
- package/src/sap/fe/macros/MacroAPI.ts +3 -3
- 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 +12 -7
- package/src/sap/fe/macros/MicroChart.tsx +9 -3
- package/src/sap/fe/macros/MultiValueField.js +22 -36
- package/src/sap/fe/macros/MultiValueField.tsx +34 -66
- package/src/sap/fe/macros/RichTextEditor.js +3 -4
- package/src/sap/fe/macros/RichTextEditor.tsx +2 -3
- package/src/sap/fe/macros/Share.js +7 -7
- package/src/sap/fe/macros/Share.tsx +9 -6
- package/src/sap/fe/macros/Status.js +39 -11
- package/src/sap/fe/macros/Status.tsx +25 -5
- 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 +25 -2
- package/src/sap/fe/macros/chart/Action.ts +13 -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 +29 -8
- package/src/sap/fe/macros/chart/ChartDelegate.ts +46 -14
- package/src/sap/fe/macros/chart/MdcChartTemplate.js +58 -12
- package/src/sap/fe/macros/chart/MdcChartTemplate.tsx +75 -13
- 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/BuildingBlockObjectProperty.js +7 -7
- package/src/sap/fe/macros/controls/BuildingBlockObjectProperty.ts +3 -2
- package/src/sap/fe/macros/controls/FileWrapper.js +11 -5
- package/src/sap/fe/macros/controls/FileWrapper.ts +10 -4
- package/src/sap/fe/macros/controls/FilterBar.js +39 -3
- package/src/sap/fe/macros/controls/FilterBar.ts +42 -1
- package/src/sap/fe/macros/controls/NumberWithUnitOrCurrency.js +3 -1
- package/src/sap/fe/macros/controls/NumberWithUnitOrCurrency.tsx +2 -0
- 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/coreUI/CreateDialog.js +3 -3
- package/src/sap/fe/macros/coreUI/CreateDialog.tsx +2 -2
- package/src/sap/fe/macros/coreUI/OperationParameterDialog.js +40 -12
- package/src/sap/fe/macros/coreUI/OperationParameterDialog.tsx +48 -9
- 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 +4 -4
- package/src/sap/fe/macros/field/FieldFormatOptions.ts +2 -2
- 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 +44 -9
- package/src/sap/fe/macros/field/FieldRuntime.ts +72 -8
- package/src/sap/fe/macros/field/FieldRuntimeHelper.js +3 -34
- package/src/sap/fe/macros/field/FieldRuntimeHelper.ts +28 -53
- package/src/sap/fe/macros/field/FieldTemplating.js +5 -4
- package/src/sap/fe/macros/field/FieldTemplating.ts +6 -4
- 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 +130 -40
- package/src/sap/fe/macros/filter/FilterUtils.ts +167 -45
- 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 +4 -3
- package/src/sap/fe/macros/filterBar/FilterBar.block.tsx +19 -8
- package/src/sap/fe/macros/filterBar/FilterBarAPI.js +15 -9
- package/src/sap/fe/macros/filterBar/FilterBarAPI.ts +36 -17
- package/src/sap/fe/macros/filterBar/FilterBarDelegate.js +21 -10
- package/src/sap/fe/macros/filterBar/FilterBarDelegate.ts +81 -63
- package/src/sap/fe/macros/filterBar/UOMValidationDelegate.js +376 -0
- package/src/sap/fe/macros/filterBar/UOMValidationDelegate.ts +463 -0
- 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 +110 -63
- package/src/sap/fe/macros/form/FormContainer.block.ts +121 -64
- 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 +9 -20
- package/src/sap/fe/macros/internal/field/EditStyle.tsx +17 -41
- 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 +9 -6
- package/src/sap/fe/macros/internal/valuehelp/AdditionalValueFormatter.ts +7 -5
- 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/internal/valuehelp/ValueListHelper.js +2 -2
- package/src/sap/fe/macros/internal/valuehelp/ValueListHelper.ts +2 -1
- 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 +13 -4
- 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 +7 -3
- package/src/sap/fe/macros/multivaluefield/MultiValueFieldDelegate.ts +8 -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 +21 -5
- package/src/sap/fe/macros/table/Action.ts +14 -4
- 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 +16 -2
- package/src/sap/fe/macros/table/ActionsTemplating.tsx +15 -0
- package/src/sap/fe/macros/table/Column.js +3 -2
- package/src/sap/fe/macros/table/Column.ts +1 -1
- package/src/sap/fe/macros/table/MdcTableTemplate.js +96 -18
- package/src/sap/fe/macros/table/MdcTableTemplate.tsx +136 -17
- 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 +74 -30
- package/src/sap/fe/macros/table/Table.block.tsx +77 -14
- package/src/sap/fe/macros/table/TableAPI.js +175 -132
- package/src/sap/fe/macros/table/TableAPI.ts +67 -30
- package/src/sap/fe/macros/table/TableDefinition.js +20 -3
- package/src/sap/fe/macros/table/TableDefinition.ts +18 -2
- package/src/sap/fe/macros/table/TableEventHandlerProvider.js +6 -3
- package/src/sap/fe/macros/table/TableEventHandlerProvider.ts +12 -9
- 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 +25 -13
- package/src/sap/fe/macros/table/TableRuntime.ts +31 -17
- 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/Utils.js +9 -3
- package/src/sap/fe/macros/table/Utils.ts +14 -8
- package/src/sap/fe/macros/table/delegates/TableDelegate.js +72 -29
- package/src/sap/fe/macros/table/delegates/TableDelegate.ts +114 -123
- 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 +15 -6
- package/src/sap/fe/macros/table/massEdit/MassEditDialogHelper.tsx +14 -5
- 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/ContextMenuHandler.js +2 -3
- package/src/sap/fe/macros/table/mixin/ContextMenuHandler.ts +3 -2
- package/src/sap/fe/macros/table/mixin/EmptyRowsHandler.js +42 -14
- package/src/sap/fe/macros/table/mixin/EmptyRowsHandler.ts +49 -19
- 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 +3 -4
- package/src/sap/fe/macros/table/mixin/TableHierarchy.ts +2 -3
- package/src/sap/fe/macros/table/uploadTable/UploadTableRuntime.js +5 -4
- package/src/sap/fe/macros/table/uploadTable/UploadTableRuntime.ts +6 -3
- package/src/sap/fe/macros/valuehelp/ValueHelpDelegate.js +17 -10
- package/src/sap/fe/macros/valuehelp/ValueHelpDelegate.ts +24 -9
- 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,
|
|
@@ -19,9 +22,9 @@ import type {
|
|
|
19
22
|
} from "sap/fe/core/helpers/MetaModelFunction";
|
|
20
23
|
import { getFilterableData, getSortRestrictionsInfo, isMultiValueFilterExpression } from "sap/fe/core/helpers/MetaModelFunction";
|
|
21
24
|
import type { InternalModelContext } from "sap/fe/core/helpers/ModelHelper";
|
|
22
|
-
import ModelHelper from "sap/fe/core/helpers/ModelHelper";
|
|
23
25
|
import ResourceModelHelper from "sap/fe/core/helpers/ResourceModelHelper";
|
|
24
|
-
import type {
|
|
26
|
+
import type { DataModelObjectPath } from "sap/fe/core/templating/DataModelPathHelper";
|
|
27
|
+
import type { SerializedCollectionBindingInfo } from "sap/fe/macros/CollectionBindingInfo";
|
|
25
28
|
import CommonHelper from "sap/fe/macros/CommonHelper";
|
|
26
29
|
import type { PropertyInfo } from "sap/fe/macros/DelegateUtil";
|
|
27
30
|
import MacrosDelegateUtil from "sap/fe/macros/DelegateUtil";
|
|
@@ -80,8 +83,10 @@ ChartDelegate._handleProperty = function (
|
|
|
80
83
|
const sortRestrictionsInfo = getSortRestrictionsInfo(mEntitySetAnnotations);
|
|
81
84
|
const metaModel = oContext.getModel();
|
|
82
85
|
const entityTypePath = oMDCChart.data("entityType");
|
|
83
|
-
const
|
|
84
|
-
const filterRestrictions:
|
|
86
|
+
const dataModel = MetaModelConverter.getInvolvedDataModelObjects(metaModel.getContext(entityTypePath));
|
|
87
|
+
const filterRestrictions: FilterRestrictions = FetchFilterRestrictions.getFilterRestrictionsByDataModel(
|
|
88
|
+
dataModel as DataModelObjectPath<PageContextPathTarget>
|
|
89
|
+
);
|
|
85
90
|
const propertyFilterableData: Record<string, FilterRestrictionsPropertyInfoType> = {};
|
|
86
91
|
getFilterableData(
|
|
87
92
|
propertyFilterableData,
|
|
@@ -239,7 +244,7 @@ function addPropertyToChart(
|
|
|
239
244
|
sKey: string,
|
|
240
245
|
oPropertyAnnotations: MetaModelPropertyAnnotations,
|
|
241
246
|
isFilterable: boolean,
|
|
242
|
-
oFilterRestrictionsInfo:
|
|
247
|
+
oFilterRestrictionsInfo: FilterRestrictions,
|
|
243
248
|
isSortable: boolean,
|
|
244
249
|
oMDCChart: Chart,
|
|
245
250
|
sCriticality: string,
|
|
@@ -404,7 +409,7 @@ ChartDelegate._updateIllustratedMessage = function (oChart: Chart, illustratedMe
|
|
|
404
409
|
const noDataControl = oChart.getNoData() as IllustratedMessage;
|
|
405
410
|
noDataControl.setTitle(illustratedMessageDetail.title);
|
|
406
411
|
noDataControl.setDescription(illustratedMessageDetail.description);
|
|
407
|
-
noDataControl.setIllustrationType(illustratedMessageDetail.illustrationType || IllustratedMessageType.
|
|
412
|
+
noDataControl.setIllustrationType(illustratedMessageDetail.illustrationType || IllustratedMessageType.NoEntries);
|
|
408
413
|
noDataControl.setIllustrationSize(illustratedMessageDetail.illustrationSize || IllustratedMessageSize.Auto);
|
|
409
414
|
};
|
|
410
415
|
|
|
@@ -424,13 +429,13 @@ ChartDelegate.setChartNoDataIllustratedMessage = function (chart: Chart, binding
|
|
|
424
429
|
return {
|
|
425
430
|
title: resourceModel.getText("T_ILLUSTRATED_MESSAGE_TITLE_NOSEARCHRESULTS", undefined, suffixResourceKey),
|
|
426
431
|
description: resourceModel.getText("M_TABLE_AND_CHART_NO_DATA_TEXT_MULTI_VIEW", undefined, suffixResourceKey),
|
|
427
|
-
illustrationType: IllustratedMessageType.
|
|
432
|
+
illustrationType: IllustratedMessageType.NoFilterResults
|
|
428
433
|
};
|
|
429
434
|
}
|
|
430
435
|
return {
|
|
431
436
|
title: resourceModel.getText("T_ILLUSTRATED_MESSAGE_TITLE_NOSEARCHRESULTS", undefined, suffixResourceKey),
|
|
432
437
|
description: resourceModel.getText("T_TABLE_AND_CHART_NO_DATA_TEXT_WITH_FILTER", undefined, suffixResourceKey),
|
|
433
|
-
illustrationType: IllustratedMessageType.
|
|
438
|
+
illustrationType: IllustratedMessageType.NoFilterResults,
|
|
434
439
|
illustrationSize: converterType === "ObjectPage" ? IllustratedMessageSize.Small : IllustratedMessageSize.Auto
|
|
435
440
|
};
|
|
436
441
|
};
|
|
@@ -446,7 +451,7 @@ ChartDelegate.setChartNoDataIllustratedMessage = function (chart: Chart, binding
|
|
|
446
451
|
illustratedInformation = {
|
|
447
452
|
title: resourceModel.getText("T_ILLUSTRATED_MESSAGE_TITLE_NODATA", undefined, suffixResourceKey),
|
|
448
453
|
description: resourceModel.getText("M_TABLE_AND_CHART_NO_FILTERS_NO_DATA_TEXT", undefined, suffixResourceKey),
|
|
449
|
-
illustrationType: IllustratedMessageType.
|
|
454
|
+
illustrationType: IllustratedMessageType.NoEntries,
|
|
450
455
|
illustrationSize: IllustratedMessageSize.Small
|
|
451
456
|
};
|
|
452
457
|
}
|
|
@@ -454,7 +459,7 @@ ChartDelegate.setChartNoDataIllustratedMessage = function (chart: Chart, binding
|
|
|
454
459
|
ChartDelegate._updateIllustratedMessage(chart, illustratedInformation);
|
|
455
460
|
};
|
|
456
461
|
|
|
457
|
-
ChartDelegate.updateBindingInfo = function (oChart: Chart, oBindingInfo:
|
|
462
|
+
ChartDelegate.updateBindingInfo = function (oChart: Chart, oBindingInfo: SerializedCollectionBindingInfo): void {
|
|
458
463
|
const internalBindingContext = oChart.getBindingContext("internal") as InternalModelContext;
|
|
459
464
|
|
|
460
465
|
internalBindingContext.setProperty("isInsightsEnabled", true);
|
|
@@ -492,13 +497,14 @@ ChartDelegate.updateBindingInfo = function (oChart: Chart, oBindingInfo: Collect
|
|
|
492
497
|
|
|
493
498
|
// remove prefixes so that entityset will match with the property names with these field
|
|
494
499
|
if (oFilterInfo.filters) {
|
|
495
|
-
oFilterInfo.filters.forEach((element) => {
|
|
500
|
+
oFilterInfo.filters.forEach((element: Filter) => {
|
|
496
501
|
if (element.getPath()) {
|
|
497
502
|
(element as unknown as { sPath: string }).sPath = (oChart.getParent() as ChartType).getChartPropertiesWithoutPrefixes(
|
|
498
503
|
element.getPath()!
|
|
499
504
|
);
|
|
500
505
|
}
|
|
501
506
|
});
|
|
507
|
+
oFilterInfo.filters = ChartDelegate._removeSiblingEntityForDraftChart(oFilterInfo.filters);
|
|
502
508
|
}
|
|
503
509
|
oBindingInfo.events ??= {};
|
|
504
510
|
oBindingInfo.events.dataRequested = (oChart.getParent() as ChartType).onInternalDataRequested.bind(oChart.getParent());
|
|
@@ -511,7 +517,6 @@ ChartDelegate.updateBindingInfo = function (oChart: Chart, oBindingInfo: Collect
|
|
|
511
517
|
ChartDelegate.fetchProperties = async function (oMDCChart: Chart): Promise<PropertyInfo[]> {
|
|
512
518
|
const oModel = this._getModel(oMDCChart);
|
|
513
519
|
let pCreatePropertyInfos: Promise<PropertyInfo[]>;
|
|
514
|
-
|
|
515
520
|
if (!oModel) {
|
|
516
521
|
pCreatePropertyInfos = new Promise<ODataModel>((resolve): void => {
|
|
517
522
|
oMDCChart.attachModelContextChange(
|
|
@@ -546,6 +551,33 @@ function onModelContextChange(this: typeof ChartDelegate, oEvent: UI5Event<{}, C
|
|
|
546
551
|
oData.resolver(oModel);
|
|
547
552
|
}
|
|
548
553
|
}
|
|
554
|
+
|
|
555
|
+
ChartDelegate._removeSiblingEntityForDraftChart = function (items: Filter[]): Filter[] {
|
|
556
|
+
if (!items?.length) {
|
|
557
|
+
return [];
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
return items
|
|
561
|
+
.map((item: Filter) => {
|
|
562
|
+
if (item.getPath() === "SiblingEntity/IsActiveEntity" || item.getPath() === "IsActiveEntity") {
|
|
563
|
+
return null;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
if (item.getFilters()?.length) {
|
|
567
|
+
const filteredChildren = ChartDelegate._removeSiblingEntityForDraftChart(item.getFilters());
|
|
568
|
+
|
|
569
|
+
if (filteredChildren.length) {
|
|
570
|
+
return item;
|
|
571
|
+
}
|
|
572
|
+
} else if (item.getPath()) {
|
|
573
|
+
return item;
|
|
574
|
+
} else {
|
|
575
|
+
return null;
|
|
576
|
+
}
|
|
577
|
+
})
|
|
578
|
+
.filter((item: Filter | null | undefined): item is Filter => item !== null && item !== undefined);
|
|
579
|
+
};
|
|
580
|
+
|
|
549
581
|
ChartDelegate._createPropertyInfos = async function (oMDCChart: Chart, oModel: ODataModel): Promise<PropertyInfo[]> {
|
|
550
582
|
const sEntitySetPath = `/${oMDCChart.data("entitySet")}`;
|
|
551
583
|
|
|
@@ -627,7 +659,7 @@ ChartDelegate._createPropertyInfosForAggregatable = function (
|
|
|
627
659
|
oMDCChart: Chart,
|
|
628
660
|
sKey: string,
|
|
629
661
|
oPropertyAnnotations: MetaModelPropertyAnnotations,
|
|
630
|
-
oFilterRestrictionsInfo:
|
|
662
|
+
oFilterRestrictionsInfo: FilterRestrictions,
|
|
631
663
|
sortRestrictionsInfo: SortRestrictionsInfoType,
|
|
632
664
|
mKnownAggregatableProps: Record<string, Record<string, { label: string; name: string }>>,
|
|
633
665
|
mCustomAggregates: { [propertyName: string]: unknown },
|