@sapui5/sap.fe.macros 1.142.0 → 1.142.2
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/Field.js +5 -5
- package/src/sap/fe/macros/Field.ts +5 -3
- package/src/sap/fe/macros/FooterContent.js +3 -2
- package/src/sap/fe/macros/FooterContent.tsx +2 -10
- package/src/sap/fe/macros/MessageButton.js +3 -3
- package/src/sap/fe/macros/MessageButton.tsx +3 -2
- 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 +12 -14
- package/src/sap/fe/macros/RichTextEditor.tsx +10 -13
- 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/SummarizationButton.js +6 -4
- package/src/sap/fe/macros/ai/SummarizationButton.tsx +5 -3
- package/src/sap/fe/macros/chart/Action.js +19 -7
- package/src/sap/fe/macros/chart/Action.ts +8 -0
- package/src/sap/fe/macros/chart/ChartDelegate.js +13 -2
- package/src/sap/fe/macros/chart/ChartDelegate.ts +20 -1
- package/src/sap/fe/macros/chart/MdcChartTemplate.js +8 -6
- package/src/sap/fe/macros/chart/MdcChartTemplate.tsx +13 -22
- package/src/sap/fe/macros/controls/FileWrapper.js +4 -3
- package/src/sap/fe/macros/controls/FileWrapper.ts +3 -2
- package/src/sap/fe/macros/controls/FilterBar.js +1 -1
- package/src/sap/fe/macros/controls/FilterBar.ts +8 -1
- package/src/sap/fe/macros/controls/Section.js +3 -2
- package/src/sap/fe/macros/controls/Section.ts +1 -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/OperationParameterDialog.js +23 -18
- package/src/sap/fe/macros/coreUI/OperationParameterDialog.tsx +27 -25
- package/src/sap/fe/macros/field/FieldRuntimeHelper.js +4 -2
- package/src/sap/fe/macros/field/FieldRuntimeHelper.ts +7 -7
- package/src/sap/fe/macros/field/FieldTemplating.js +8 -3
- package/src/sap/fe/macros/field/FieldTemplating.ts +8 -3
- package/src/sap/fe/macros/filterBar/FilterBar.block.js +10 -1
- package/src/sap/fe/macros/filterBar/FilterBar.block.tsx +10 -0
- package/src/sap/fe/macros/form/FormContainer.block.js +9 -8
- package/src/sap/fe/macros/form/FormContainer.block.ts +10 -7
- package/src/sap/fe/macros/internal/field/DisplayStyle.js +3 -2
- package/src/sap/fe/macros/internal/field/DisplayStyle.tsx +1 -0
- package/src/sap/fe/macros/internal/field/EditStyle.js +11 -6
- package/src/sap/fe/macros/internal/field/EditStyle.tsx +7 -3
- package/src/sap/fe/macros/internal/valuehelp/AdditionalValueFormatter.js +36 -7
- package/src/sap/fe/macros/internal/valuehelp/AdditionalValueFormatter.ts +35 -6
- 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/ValueListHelper.js +23 -3
- package/src/sap/fe/macros/internal/valuehelp/ValueListHelper.ts +24 -2
- package/src/sap/fe/macros/library.js +5 -6
- package/src/sap/fe/macros/{library.ts → library.tsx} +1 -1
- package/src/sap/fe/macros/messagebundle.properties +6 -0
- 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 +8 -3
- package/src/sap/fe/macros/multivaluefield/MultiValueFieldDelegate.ts +9 -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/table/ActionsTemplating.js +6 -5
- package/src/sap/fe/macros/table/ActionsTemplating.tsx +4 -4
- package/src/sap/fe/macros/table/MdcTableTemplate.js +31 -13
- package/src/sap/fe/macros/table/MdcTableTemplate.tsx +35 -7
- package/src/sap/fe/macros/table/Table.block.js +3 -1
- package/src/sap/fe/macros/table/Table.block.tsx +7 -4
- package/src/sap/fe/macros/table/TableAPI.js +62 -28
- package/src/sap/fe/macros/table/TableAPI.ts +73 -32
- package/src/sap/fe/macros/table/TableEventHandlerProvider.js +15 -4
- package/src/sap/fe/macros/table/TableEventHandlerProvider.ts +16 -3
- package/src/sap/fe/macros/table/TableRuntime.js +6 -4
- package/src/sap/fe/macros/table/TableRuntime.ts +16 -3
- package/src/sap/fe/macros/table/delegates/TableDelegate.js +3 -3
- package/src/sap/fe/macros/table/delegates/TableDelegate.ts +3 -4
- 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/mixin/ContextMenuHandler.js +2 -4
- package/src/sap/fe/macros/table/mixin/ContextMenuHandler.ts +1 -2
- package/src/sap/fe/macros/table/mixin/EmptyRowsHandler.js +10 -4
- package/src/sap/fe/macros/table/mixin/EmptyRowsHandler.ts +9 -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 +28 -10
- package/src/sap/fe/macros/valuehelp/ValueHelpDelegate.ts +33 -14
|
@@ -84,6 +84,7 @@ type BlockColumnOverride = Partial<Omit<ColumnOverride, "exportSettings">> & {
|
|
|
84
84
|
};
|
|
85
85
|
type BlockMassEdit = Partial<Omit<MassEdit, "customContent">> & { customContent?: string; key: string };
|
|
86
86
|
type BlockQuickVariantSelection = PropertiesOf<QuickVariantSelection> & { key: string };
|
|
87
|
+
type BlockOverflowGroup = PropertiesOf<OverflowGroup> & { key: string };
|
|
87
88
|
type BlockAction = PropertiesOf<Omit<Action, "press">> & { _type: "Action"; press: string };
|
|
88
89
|
type BlockActionGroup = PropertiesOf<Omit<ActionGroup, "actions">> & {
|
|
89
90
|
_type: "ActionGroup";
|
|
@@ -96,8 +97,8 @@ type BlockActionGroupOverride = PropertiesOf<Omit<ActionGroupOverride, "actions"
|
|
|
96
97
|
};
|
|
97
98
|
type CommonCustomAction = {
|
|
98
99
|
key: string;
|
|
99
|
-
enabled: boolean;
|
|
100
|
-
visible: boolean;
|
|
100
|
+
enabled: boolean | undefined;
|
|
101
|
+
visible: boolean | undefined;
|
|
101
102
|
command: string | undefined;
|
|
102
103
|
enableOnSelect: "single" | "multi" | undefined;
|
|
103
104
|
placement: "Before" | "After" | undefined;
|
|
@@ -118,10 +119,11 @@ function safeGetAttribute(node: Element, name: string): string | undefined {
|
|
|
118
119
|
* @param name The name of the attribute
|
|
119
120
|
* @returns The Boolean value of the attribute
|
|
120
121
|
*/
|
|
121
|
-
function getDynamicBooleanValueOfAttribute(node: Element, name: string): boolean {
|
|
122
|
+
function getDynamicBooleanValueOfAttribute(node: Element, name: string): boolean | undefined {
|
|
122
123
|
const enablementAttr = node.getAttribute(name);
|
|
123
124
|
switch (enablementAttr) {
|
|
124
125
|
case null:
|
|
126
|
+
return undefined;
|
|
125
127
|
case "true":
|
|
126
128
|
return true;
|
|
127
129
|
case "false":
|
|
@@ -250,8 +252,9 @@ const setQuickVariantSelection = function (quickVariantSelection: Element): Bloc
|
|
|
250
252
|
};
|
|
251
253
|
};
|
|
252
254
|
|
|
253
|
-
const setCustomActionOverflowGroupProperties = function (overFlowGroup: Element):
|
|
255
|
+
const setCustomActionOverflowGroupProperties = function (overFlowGroup: Element): BlockOverflowGroup {
|
|
254
256
|
return {
|
|
257
|
+
key: overFlowGroup.getAttribute("key")!.replace("InlineXML_", ""),
|
|
255
258
|
overflowGroup: Number.parseInt(overFlowGroup.getAttribute("overflowGroup") as string, 10),
|
|
256
259
|
showSeparator: overFlowGroup.getAttribute("showSeparator") === "true"
|
|
257
260
|
};
|