@sapui5/sap.fe.macros 1.141.0 → 1.142.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 +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 +30 -13
- package/src/sap/fe/macros/Field.ts +60 -30
- package/src/sap/fe/macros/FooterContent.js +5 -2
- package/src/sap/fe/macros/FooterContent.tsx +6 -3
- 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 +3 -2
- package/src/sap/fe/macros/MessageButton.tsx +5 -2
- 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/RichTextEditor.js +3 -4
- package/src/sap/fe/macros/RichTextEditor.tsx +2 -3
- 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/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/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 +8 -8
- package/src/sap/fe/macros/chart/ChartDelegate.ts +17 -12
- package/src/sap/fe/macros/chart/MdcChartTemplate.js +54 -11
- package/src/sap/fe/macros/chart/MdcChartTemplate.tsx +70 -11
- 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 +42 -1
- 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 +2 -2
- package/src/sap/fe/macros/coreUI/CreateDialog.tsx +1 -1
- package/src/sap/fe/macros/coreUI/OperationParameterDialog.js +37 -9
- package/src/sap/fe/macros/coreUI/OperationParameterDialog.tsx +45 -6
- 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 +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 +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 +4 -3
- package/src/sap/fe/macros/filterBar/FilterBar.block.tsx +19 -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 +96 -65
- package/src/sap/fe/macros/form/FormContainer.block.ts +104 -65
- 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/library.js +3 -3
- package/src/sap/fe/macros/library.ts +2 -0
- 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 +7 -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/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 +16 -2
- package/src/sap/fe/macros/table/ActionsTemplating.tsx +15 -0
- package/src/sap/fe/macros/table/MdcTableTemplate.js +91 -10
- package/src/sap/fe/macros/table/MdcTableTemplate.tsx +131 -10
- 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 +70 -29
- package/src/sap/fe/macros/table/Table.block.tsx +65 -12
- package/src/sap/fe/macros/table/TableAPI.js +169 -131
- package/src/sap/fe/macros/table/TableAPI.ts +58 -28
- 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 +4 -3
- package/src/sap/fe/macros/table/TableEventHandlerProvider.ts +8 -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 +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 +67 -26
- package/src/sap/fe/macros/table/delegates/TableDelegate.ts +108 -118
- 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/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
|
@@ -27,6 +27,7 @@ import type {
|
|
|
27
27
|
HorizontalAlign,
|
|
28
28
|
Importance,
|
|
29
29
|
ManifestAction,
|
|
30
|
+
OverflowGroupsConfiguration,
|
|
30
31
|
TableManifestConfiguration
|
|
31
32
|
} from "sap/fe/core/converters/ManifestSettings";
|
|
32
33
|
import { CreationMode, VisualizationType } from "sap/fe/core/converters/ManifestSettings";
|
|
@@ -45,21 +46,24 @@ import { generate } from "sap/fe/core/helpers/StableIdHelper";
|
|
|
45
46
|
import { isAnnotationOfTerm } from "sap/fe/core/helpers/TypeGuards";
|
|
46
47
|
import type { DataModelObjectPath } from "sap/fe/core/templating/DataModelPathHelper";
|
|
47
48
|
import { getContextRelativeTargetObjectPath } from "sap/fe/core/templating/DataModelPathHelper";
|
|
49
|
+
import type CollectionBindingInfoAPI from "sap/fe/macros/CollectionBindingInfo";
|
|
48
50
|
import MacroAPI from "sap/fe/macros/MacroAPI";
|
|
49
51
|
import type Action from "sap/fe/macros/table/Action";
|
|
50
52
|
import type ActionGroup from "sap/fe/macros/table/ActionGroup";
|
|
51
53
|
import type Column from "sap/fe/macros/table/Column";
|
|
52
54
|
import type { TableBlockProperties } from "sap/fe/macros/table/MdcTableTemplate";
|
|
53
55
|
import { getMDCTableTemplate } from "sap/fe/macros/table/MdcTableTemplate";
|
|
56
|
+
import type OverflowGroup from "sap/fe/macros/table/OverflowGroups";
|
|
54
57
|
import TableAPI from "sap/fe/macros/table/TableAPI";
|
|
55
58
|
import TableCreationOptions from "sap/fe/macros/table/TableCreationOptions";
|
|
56
|
-
import FlexItemData from "sap/m/FlexItemData";
|
|
57
59
|
import type { OverflowToolbarPriority } from "sap/m/library";
|
|
60
|
+
import type UI5Event from "sap/ui/base/Event";
|
|
58
61
|
import { type TitleLevel } from "sap/ui/core/library";
|
|
59
|
-
import type { ExportSettings } from "sap/ui/mdc/Table";
|
|
62
|
+
import type { ExportSettings, Table$SelectionChangeEventParameters } from "sap/ui/mdc/Table";
|
|
63
|
+
import type { RowActionItem$PressEventParameters } from "sap/ui/mdc/table/RowActionItem";
|
|
60
64
|
import type Context from "sap/ui/model/Context";
|
|
61
65
|
import type ODataMetaModel from "sap/ui/model/odata/v4/ODataMetaModel";
|
|
62
|
-
import {
|
|
66
|
+
import type { EventHandler } from "types/extension_types";
|
|
63
67
|
import type ActionGroupOverride from "./ActionGroupOverride";
|
|
64
68
|
import type ActionOverride from "./ActionOverride";
|
|
65
69
|
import type AnalyticalConfiguration from "./AnalyticalConfiguration";
|
|
@@ -101,6 +105,7 @@ type CommonCustomAction = {
|
|
|
101
105
|
isAIOperation?: boolean;
|
|
102
106
|
priority?: OverflowToolbarPriority;
|
|
103
107
|
group?: number;
|
|
108
|
+
overflowGroup?: number;
|
|
104
109
|
_type: "Action" | "ActionOverride";
|
|
105
110
|
};
|
|
106
111
|
function safeGetAttribute(node: Element, name: string): string | undefined {
|
|
@@ -189,6 +194,10 @@ function getCommonCustomActionProperties(actionNode: Element): CommonCustomActio
|
|
|
189
194
|
action["group"] = Number.parseInt(safeGetAttribute(actionNode, "group") ?? "", 10);
|
|
190
195
|
}
|
|
191
196
|
|
|
197
|
+
if (actionNode?.getAttribute("overflowGroup")) {
|
|
198
|
+
action["overflowGroup"] = Number.parseInt(safeGetAttribute(actionNode, "overflowGroup") ?? "", 10);
|
|
199
|
+
}
|
|
200
|
+
|
|
192
201
|
return action;
|
|
193
202
|
}
|
|
194
203
|
|
|
@@ -241,6 +250,13 @@ const setQuickVariantSelection = function (quickVariantSelection: Element): Bloc
|
|
|
241
250
|
};
|
|
242
251
|
};
|
|
243
252
|
|
|
253
|
+
const setCustomActionOverflowGroupProperties = function (overFlowGroup: Element): PropertiesOf<OverflowGroup> {
|
|
254
|
+
return {
|
|
255
|
+
overflowGroup: Number.parseInt(overFlowGroup.getAttribute("overflowGroup") as string, 10),
|
|
256
|
+
showSeparator: overFlowGroup.getAttribute("showSeparator") === "true"
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
|
|
244
260
|
/**
|
|
245
261
|
* Parses the common custom properties of the action groups from the XML node.
|
|
246
262
|
* @param actionNode The action group node
|
|
@@ -919,6 +935,21 @@ export default class TableBlock extends BuildingBlockTemplatingBase {
|
|
|
919
935
|
})
|
|
920
936
|
quickVariantSelection?: Record<string, BlockQuickVariantSelection>;
|
|
921
937
|
|
|
938
|
+
/**
|
|
939
|
+
* Aggregate overflowGroups of the table.
|
|
940
|
+
* @public
|
|
941
|
+
*/
|
|
942
|
+
@blockAggregation({
|
|
943
|
+
type: "sap.fe.macros.table.OverflowGroup",
|
|
944
|
+
isPublic: true,
|
|
945
|
+
multiple: true,
|
|
946
|
+
hasVirtualNode: true,
|
|
947
|
+
skipKey: true,
|
|
948
|
+
reallySkipKey: true,
|
|
949
|
+
processAggregations: setCustomActionOverflowGroupProperties
|
|
950
|
+
})
|
|
951
|
+
actionOverflowGroups?: Record<string, OverflowGroup>;
|
|
952
|
+
|
|
922
953
|
convertedMetadata: ConvertedMetadata;
|
|
923
954
|
|
|
924
955
|
contextObjectPath: DataModelObjectPath<LineItem | PresentationVariant | SelectionPresentationVariant>;
|
|
@@ -934,16 +965,18 @@ export default class TableBlock extends BuildingBlockTemplatingBase {
|
|
|
934
965
|
* @public
|
|
935
966
|
*/
|
|
936
967
|
@blockEvent()
|
|
937
|
-
private readonly beforeRebindTable?:
|
|
968
|
+
private readonly beforeRebindTable?: EventHandler<
|
|
969
|
+
UI5Event<{ collectionBindingInfo: CollectionBindingInfoAPI; quickFilterKey?: string }, TableAPI>
|
|
970
|
+
>;
|
|
938
971
|
|
|
939
972
|
/**
|
|
940
|
-
* An event is triggered when the user chooses a row
|
|
973
|
+
* An event is triggered when the user chooses a row. The event contains information about which row is chosen.
|
|
941
974
|
*
|
|
942
|
-
* You can set this
|
|
975
|
+
* You can set this to handle the navigation manually.
|
|
943
976
|
* @public
|
|
944
977
|
*/
|
|
945
978
|
@blockEvent()
|
|
946
|
-
rowPress?:
|
|
979
|
+
rowPress?: EventHandler<UI5Event<RowActionItem$PressEventParameters, TableAPI>>;
|
|
947
980
|
|
|
948
981
|
/**
|
|
949
982
|
* Event handler to react to the change event of the table's list binding.
|
|
@@ -967,7 +1000,9 @@ export default class TableBlock extends BuildingBlockTemplatingBase {
|
|
|
967
1000
|
* @public
|
|
968
1001
|
*/
|
|
969
1002
|
@blockEvent()
|
|
970
|
-
private readonly selectionChange?:
|
|
1003
|
+
private readonly selectionChange?: EventHandler<
|
|
1004
|
+
UI5Event<Table$SelectionChangeEventParameters & { selectedContext: Context[] }, TableAPI>
|
|
1005
|
+
>;
|
|
971
1006
|
|
|
972
1007
|
@blockEvent()
|
|
973
1008
|
variantSelected?: string;
|
|
@@ -1165,6 +1200,7 @@ export default class TableBlock extends BuildingBlockTemplatingBase {
|
|
|
1165
1200
|
|
|
1166
1201
|
const tableSettings = table.getTableSettings();
|
|
1167
1202
|
const extraManifestSettings: TableManifestConfiguration = {
|
|
1203
|
+
overflowGroups: TableBlock.createActionOverflowGroups(table),
|
|
1168
1204
|
actions: TableBlock.createActionsFromManifest(table),
|
|
1169
1205
|
columns: TableBlock.createColumnsForManifest(table),
|
|
1170
1206
|
tableSettings
|
|
@@ -1229,7 +1265,8 @@ export default class TableBlock extends BuildingBlockTemplatingBase {
|
|
|
1229
1265
|
enabled: action.enabled,
|
|
1230
1266
|
isAIOperation: action.isAIOperation,
|
|
1231
1267
|
priority: action.priority,
|
|
1232
|
-
group: action.group
|
|
1268
|
+
group: action.group,
|
|
1269
|
+
overflowGroup: action.overflowGroup
|
|
1233
1270
|
};
|
|
1234
1271
|
if (action._type === "Action") {
|
|
1235
1272
|
actionsSettings[key] = {
|
|
@@ -1283,10 +1320,28 @@ export default class TableBlock extends BuildingBlockTemplatingBase {
|
|
|
1283
1320
|
return actionsSettings;
|
|
1284
1321
|
}
|
|
1285
1322
|
|
|
1323
|
+
/**
|
|
1324
|
+
* Creates the manifest overflowGroups for the table.
|
|
1325
|
+
* @param table The table block
|
|
1326
|
+
* @returns The manifest overflowGroups for the table
|
|
1327
|
+
*/
|
|
1328
|
+
static createActionOverflowGroups(table: TableBlock): OverflowGroupsConfiguration {
|
|
1329
|
+
const overflowGroupsSettings: OverflowGroupsConfiguration = {};
|
|
1330
|
+
if (table.actionOverflowGroups) {
|
|
1331
|
+
Object.values(table.actionOverflowGroups).forEach((overFlowGroup) => {
|
|
1332
|
+
overflowGroupsSettings[overFlowGroup.overflowGroup] = {
|
|
1333
|
+
showSeparator: overFlowGroup.showSeparator
|
|
1334
|
+
};
|
|
1335
|
+
});
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
return overflowGroupsSettings;
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1286
1341
|
/**
|
|
1287
1342
|
* Creates the manifest columns for the table.
|
|
1288
1343
|
* @param table The table block
|
|
1289
|
-
* @returns The manifest
|
|
1344
|
+
* @returns The manifest columns for the table
|
|
1290
1345
|
*/
|
|
1291
1346
|
static createColumnsForManifest(table: TableBlock): Record<string, CustomDefinedTableColumn | CustomDefinedTableColumnForOverride> {
|
|
1292
1347
|
const isBlockColumn = (block: BlockColumn | BlockColumnOverride): block is BlockColumn => {
|
|
@@ -1450,9 +1505,7 @@ export default class TableBlock extends BuildingBlockTemplatingBase {
|
|
|
1450
1505
|
condensedTableLayout={this.condensedTableLayout}
|
|
1451
1506
|
>
|
|
1452
1507
|
{{
|
|
1453
|
-
customData: createCustomData("tableAPILocalId", this._apiId),
|
|
1454
1508
|
creationMode,
|
|
1455
|
-
layoutData: <FlexItemData maxWidth="100%" />,
|
|
1456
1509
|
content: getMDCTableTemplate(tableProps, {
|
|
1457
1510
|
metaPath: this.metaPath,
|
|
1458
1511
|
convertedMetadata: this.convertedMetadata,
|