@sap-ux/fe-fpm-writer 0.30.0 → 0.31.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/dist/building-block/prompts/questions/building-blocks.d.ts +7 -1
- package/dist/building-block/prompts/questions/building-blocks.js +15 -1
- package/dist/building-block/prompts/questions/chart.js +37 -12
- package/dist/building-block/prompts/questions/filter-bar.js +31 -8
- package/dist/building-block/prompts/questions/table.js +14 -11
- package/dist/prompts/translations/i18n.en.json +46 -16
- package/package.json +3 -3
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import type { Answers, Prompts, PromptsType } from '../../../prompts/types';
|
|
1
|
+
import type { Answers, Prompts, PromptsGroup, PromptsType } from '../../../prompts/types';
|
|
2
2
|
export interface BuildingBlockTypePromptsAnswer extends Answers {
|
|
3
3
|
buildingBlockType: PromptsType;
|
|
4
4
|
}
|
|
5
|
+
/**
|
|
6
|
+
* Returns the manifest prompts group, the same for all available building blocks.
|
|
7
|
+
*
|
|
8
|
+
* @returns The manifest prompts group.
|
|
9
|
+
*/
|
|
10
|
+
export declare const getManifestPromptsGroup: () => PromptsGroup;
|
|
5
11
|
/**
|
|
6
12
|
* Returns a list of prompts required to generate building blocks.
|
|
7
13
|
*
|
|
@@ -1,8 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getBuildingBlockTypePrompts = void 0;
|
|
3
|
+
exports.getBuildingBlockTypePrompts = exports.getManifestPromptsGroup = void 0;
|
|
4
4
|
const i18n_1 = require("../../../i18n");
|
|
5
5
|
const types_1 = require("../../types");
|
|
6
|
+
/**
|
|
7
|
+
* Returns the manifest prompts group, the same for all available building blocks.
|
|
8
|
+
*
|
|
9
|
+
* @returns The manifest prompts group.
|
|
10
|
+
*/
|
|
11
|
+
const getManifestPromptsGroup = () => {
|
|
12
|
+
const t = (0, i18n_1.translate)(i18n_1.i18nNamespaces.buildingBlock, 'prompts.super.manifestGroup.');
|
|
13
|
+
return {
|
|
14
|
+
id: 'manifestLibraries',
|
|
15
|
+
title: t('manifestLibrariesTitle'),
|
|
16
|
+
description: t('manifestLibrariesDescription', { returnObjects: true })
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
exports.getManifestPromptsGroup = getManifestPromptsGroup;
|
|
6
20
|
/**
|
|
7
21
|
* Returns a list of prompts required to generate building blocks.
|
|
8
22
|
*
|
|
@@ -4,10 +4,17 @@ exports.getChartBuildingBlockPrompts = void 0;
|
|
|
4
4
|
const i18n_1 = require("../../../i18n");
|
|
5
5
|
const utils_1 = require("../utils");
|
|
6
6
|
const types_1 = require("../../types");
|
|
7
|
+
const building_blocks_1 = require("./building-blocks");
|
|
8
|
+
const MANIFEST_LIBRARIES_GROUP = (0, building_blocks_1.getManifestPromptsGroup)();
|
|
7
9
|
const defaultAnswers = {
|
|
8
10
|
id: 'Chart',
|
|
9
11
|
bindingContextType: 'absolute'
|
|
10
12
|
};
|
|
13
|
+
const groupIds = {
|
|
14
|
+
commonChartBuildingBlockProperties: 'chartBuildingBlockProperties',
|
|
15
|
+
chartVisualizationProperties: 'chartVisualizationProperties',
|
|
16
|
+
chartConfigureEvents: 'chartConfigureEvents'
|
|
17
|
+
};
|
|
11
18
|
/**
|
|
12
19
|
* Returns a list of prompts required to generate a chart building block.
|
|
13
20
|
*
|
|
@@ -17,11 +24,31 @@ const defaultAnswers = {
|
|
|
17
24
|
async function getChartBuildingBlockPrompts(context) {
|
|
18
25
|
const { project } = context;
|
|
19
26
|
const t = (0, i18n_1.translate)(i18n_1.i18nNamespaces.buildingBlock, 'prompts.chart.');
|
|
27
|
+
const groups = [
|
|
28
|
+
{
|
|
29
|
+
id: groupIds.commonChartBuildingBlockProperties,
|
|
30
|
+
title: t('chartBuildingBlockPropertiesTitle'),
|
|
31
|
+
description: t('chartBuildingBlockPropertiesDescription', { returnObjects: true })
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
id: groupIds.chartVisualizationProperties,
|
|
35
|
+
title: t('chartVisualizationPropertiesTitle'),
|
|
36
|
+
description: t('chartVisualizationPropertiesDescription', { returnObjects: true })
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
id: groupIds.chartConfigureEvents,
|
|
40
|
+
title: t('chartConfigureEventsTitle'),
|
|
41
|
+
description: t('chartConfigureEventsDescription', { returnObjects: true })
|
|
42
|
+
},
|
|
43
|
+
MANIFEST_LIBRARIES_GROUP
|
|
44
|
+
];
|
|
20
45
|
return {
|
|
46
|
+
groups,
|
|
21
47
|
questions: [
|
|
22
48
|
(0, utils_1.getViewOrFragmentPathPrompt)(context, t('viewOrFragmentPath.validate'), {
|
|
23
49
|
message: t('viewOrFragmentPath.message'),
|
|
24
50
|
guiOptions: {
|
|
51
|
+
groupId: groupIds.commonChartBuildingBlockProperties,
|
|
25
52
|
mandatory: true,
|
|
26
53
|
dependantPromptNames: ['aggregationPath', 'buildingBlockData.filterBar']
|
|
27
54
|
}
|
|
@@ -29,14 +56,13 @@ async function getChartBuildingBlockPrompts(context) {
|
|
|
29
56
|
(0, utils_1.getBuildingBlockIdPrompt)(context, t('id.validation'), {
|
|
30
57
|
message: t('id.message'),
|
|
31
58
|
default: defaultAnswers.id,
|
|
32
|
-
guiOptions: {
|
|
33
|
-
mandatory: true
|
|
34
|
-
}
|
|
59
|
+
guiOptions: { groupId: groupIds.commonChartBuildingBlockProperties, mandatory: true }
|
|
35
60
|
}),
|
|
36
61
|
(0, utils_1.getBindingContextTypePrompt)({
|
|
37
62
|
message: t('bindingContextType'),
|
|
38
63
|
default: defaultAnswers.bindingContextType,
|
|
39
64
|
guiOptions: {
|
|
65
|
+
groupId: groupIds.commonChartBuildingBlockProperties,
|
|
40
66
|
mandatory: true,
|
|
41
67
|
dependantPromptNames: ['buildingBlockData.metaPath.qualifier']
|
|
42
68
|
}
|
|
@@ -46,6 +72,7 @@ async function getChartBuildingBlockPrompts(context) {
|
|
|
46
72
|
await (0, utils_1.getCAPServicePrompt)(context, {
|
|
47
73
|
message: t('service'),
|
|
48
74
|
guiOptions: {
|
|
75
|
+
groupId: groupIds.commonChartBuildingBlockProperties,
|
|
49
76
|
mandatory: true,
|
|
50
77
|
dependantPromptNames: []
|
|
51
78
|
}
|
|
@@ -55,6 +82,7 @@ async function getChartBuildingBlockPrompts(context) {
|
|
|
55
82
|
(0, utils_1.getEntityPrompt)(context, {
|
|
56
83
|
message: t('entity'),
|
|
57
84
|
guiOptions: {
|
|
85
|
+
groupId: groupIds.commonChartBuildingBlockProperties,
|
|
58
86
|
mandatory: true,
|
|
59
87
|
dependantPromptNames: ['buildingBlockData.metaPath.qualifier']
|
|
60
88
|
}
|
|
@@ -62,6 +90,7 @@ async function getChartBuildingBlockPrompts(context) {
|
|
|
62
90
|
(0, utils_1.getAnnotationPathQualifierPrompt)(context, {
|
|
63
91
|
message: t('qualifier'),
|
|
64
92
|
guiOptions: {
|
|
93
|
+
groupId: groupIds.commonChartBuildingBlockProperties,
|
|
65
94
|
mandatory: true,
|
|
66
95
|
placeholder: t('qualifierPlaceholder'),
|
|
67
96
|
hint: t('valuesDependentOnEntityTypeInfo')
|
|
@@ -69,14 +98,13 @@ async function getChartBuildingBlockPrompts(context) {
|
|
|
69
98
|
}, ["com.sap.vocabularies.UI.v1.Chart" /* UIAnnotationTerms.Chart */]),
|
|
70
99
|
(0, utils_1.getAggregationPathPrompt)(context, {
|
|
71
100
|
message: t('aggregation'),
|
|
72
|
-
guiOptions: {
|
|
73
|
-
mandatory: true
|
|
74
|
-
}
|
|
101
|
+
guiOptions: { groupId: groupIds.commonChartBuildingBlockProperties, mandatory: true }
|
|
75
102
|
}),
|
|
76
103
|
(0, utils_1.getFilterBarIdPrompt)(context, {
|
|
77
104
|
message: t('filterBar.message'),
|
|
78
105
|
type: 'list',
|
|
79
106
|
guiOptions: {
|
|
107
|
+
groupId: groupIds.commonChartBuildingBlockProperties,
|
|
80
108
|
placeholder: t('filterBar.placeholder'),
|
|
81
109
|
creation: { placeholder: t('filterBar.inputPlaceholder') }
|
|
82
110
|
}
|
|
@@ -91,6 +119,7 @@ async function getChartBuildingBlockPrompts(context) {
|
|
|
91
119
|
{ name: t('personalization.choices.sort'), value: 'Sort' }
|
|
92
120
|
],
|
|
93
121
|
guiOptions: {
|
|
122
|
+
groupId: groupIds.chartVisualizationProperties,
|
|
94
123
|
placeholder: t('personalization.placeholder'),
|
|
95
124
|
selectType: 'static'
|
|
96
125
|
}
|
|
@@ -103,17 +132,13 @@ async function getChartBuildingBlockPrompts(context) {
|
|
|
103
132
|
{ name: t('selectionMode.choices.single'), value: 'Single' },
|
|
104
133
|
{ name: t('selectionMode.choices.multiple'), value: 'Multiple' }
|
|
105
134
|
],
|
|
106
|
-
guiOptions: {
|
|
107
|
-
selectType: 'static'
|
|
108
|
-
}
|
|
135
|
+
guiOptions: { groupId: groupIds.chartConfigureEvents, selectType: 'static' }
|
|
109
136
|
},
|
|
110
137
|
{
|
|
111
138
|
type: 'input',
|
|
112
139
|
name: 'buildingBlockData.selectionChange',
|
|
113
140
|
message: t('selectionChange'),
|
|
114
|
-
guiOptions: {
|
|
115
|
-
placeholder: t('selectionChangePlaceholder')
|
|
116
|
-
}
|
|
141
|
+
guiOptions: { groupId: groupIds.chartConfigureEvents, placeholder: t('selectionChangePlaceholder') }
|
|
117
142
|
}
|
|
118
143
|
],
|
|
119
144
|
initialAnswers: {
|
|
@@ -4,10 +4,16 @@ exports.getFilterBarBuildingBlockPrompts = void 0;
|
|
|
4
4
|
const i18n_1 = require("../../../i18n");
|
|
5
5
|
const utils_1 = require("../utils");
|
|
6
6
|
const types_1 = require("../../types");
|
|
7
|
+
const building_blocks_1 = require("./building-blocks");
|
|
8
|
+
const MANIFEST_LIBRARIES_GROUP = (0, building_blocks_1.getManifestPromptsGroup)();
|
|
7
9
|
const defaultAnswers = {
|
|
8
10
|
id: 'FilterBar',
|
|
9
11
|
bindingContextType: 'absolute'
|
|
10
12
|
};
|
|
13
|
+
const groupIds = {
|
|
14
|
+
commonFilterBarBuildingBlockProperties: 'filterBarBuildingBlockProperties',
|
|
15
|
+
filterConfigureEvents: 'filterConfigureEvents'
|
|
16
|
+
};
|
|
11
17
|
/**
|
|
12
18
|
* Returns a list of prompts required to generate a filterbar building block.
|
|
13
19
|
*
|
|
@@ -17,11 +23,26 @@ const defaultAnswers = {
|
|
|
17
23
|
async function getFilterBarBuildingBlockPrompts(context) {
|
|
18
24
|
const { project } = context;
|
|
19
25
|
const t = (0, i18n_1.translate)(i18n_1.i18nNamespaces.buildingBlock, 'prompts.filterBar.');
|
|
26
|
+
const groups = [
|
|
27
|
+
{
|
|
28
|
+
id: groupIds.commonFilterBarBuildingBlockProperties,
|
|
29
|
+
title: t('filterBarBuildingBlockPropertiesTitle'),
|
|
30
|
+
description: t('filterBarBuildingBlockPropertiesDescription', { returnObjects: true })
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
id: groupIds.filterConfigureEvents,
|
|
34
|
+
title: t('filterBarConfigureEventsTitle'),
|
|
35
|
+
description: t('filterBarConfigureEventsDescription', { returnObjects: true })
|
|
36
|
+
},
|
|
37
|
+
MANIFEST_LIBRARIES_GROUP
|
|
38
|
+
];
|
|
20
39
|
return {
|
|
40
|
+
groups,
|
|
21
41
|
questions: [
|
|
22
42
|
(0, utils_1.getViewOrFragmentPathPrompt)(context, t('viewOrFragmentPath.validate'), {
|
|
23
43
|
message: t('viewOrFragmentPath.message'),
|
|
24
44
|
guiOptions: {
|
|
45
|
+
groupId: groupIds.commonFilterBarBuildingBlockProperties,
|
|
25
46
|
mandatory: true,
|
|
26
47
|
dependantPromptNames: ['aggregationPath']
|
|
27
48
|
}
|
|
@@ -29,14 +50,13 @@ async function getFilterBarBuildingBlockPrompts(context) {
|
|
|
29
50
|
(0, utils_1.getBuildingBlockIdPrompt)(context, t('id.validation'), {
|
|
30
51
|
message: t('id.message'),
|
|
31
52
|
default: defaultAnswers.id,
|
|
32
|
-
guiOptions: {
|
|
33
|
-
mandatory: true
|
|
34
|
-
}
|
|
53
|
+
guiOptions: { groupId: groupIds.commonFilterBarBuildingBlockProperties, mandatory: true }
|
|
35
54
|
}),
|
|
36
55
|
(0, utils_1.getBindingContextTypePrompt)({
|
|
37
56
|
message: t('bindingContextType'),
|
|
38
57
|
default: defaultAnswers.bindingContextType,
|
|
39
58
|
guiOptions: {
|
|
59
|
+
groupId: groupIds.commonFilterBarBuildingBlockProperties,
|
|
40
60
|
mandatory: true,
|
|
41
61
|
dependantPromptNames: ['buildingBlockData.metaPath.qualifier']
|
|
42
62
|
}
|
|
@@ -46,6 +66,7 @@ async function getFilterBarBuildingBlockPrompts(context) {
|
|
|
46
66
|
await (0, utils_1.getCAPServicePrompt)(context, {
|
|
47
67
|
message: t('service'),
|
|
48
68
|
guiOptions: {
|
|
69
|
+
groupId: groupIds.commonFilterBarBuildingBlockProperties,
|
|
49
70
|
mandatory: true,
|
|
50
71
|
dependantPromptNames: []
|
|
51
72
|
}
|
|
@@ -54,13 +75,12 @@ async function getFilterBarBuildingBlockPrompts(context) {
|
|
|
54
75
|
: []),
|
|
55
76
|
(0, utils_1.getAggregationPathPrompt)(context, {
|
|
56
77
|
message: t('aggregation'),
|
|
57
|
-
guiOptions: {
|
|
58
|
-
mandatory: true
|
|
59
|
-
}
|
|
78
|
+
guiOptions: { groupId: groupIds.commonFilterBarBuildingBlockProperties, mandatory: true }
|
|
60
79
|
}),
|
|
61
80
|
(0, utils_1.getEntityPrompt)(context, {
|
|
62
81
|
message: t('entity'),
|
|
63
82
|
guiOptions: {
|
|
83
|
+
groupId: groupIds.commonFilterBarBuildingBlockProperties,
|
|
64
84
|
mandatory: true,
|
|
65
85
|
dependantPromptNames: ['buildingBlockData.metaPath.qualifier']
|
|
66
86
|
}
|
|
@@ -68,6 +88,7 @@ async function getFilterBarBuildingBlockPrompts(context) {
|
|
|
68
88
|
(0, utils_1.getAnnotationPathQualifierPrompt)(context, {
|
|
69
89
|
message: t('qualifier'),
|
|
70
90
|
guiOptions: {
|
|
91
|
+
groupId: groupIds.commonFilterBarBuildingBlockProperties,
|
|
71
92
|
mandatory: true,
|
|
72
93
|
placeholder: t('qualifierPlaceholder'),
|
|
73
94
|
hint: t('valuesDependentOnEntityTypeInfo')
|
|
@@ -76,12 +97,14 @@ async function getFilterBarBuildingBlockPrompts(context) {
|
|
|
76
97
|
{
|
|
77
98
|
type: 'input',
|
|
78
99
|
name: 'buildingBlockData.filterChanged',
|
|
79
|
-
message: t('filterChanged')
|
|
100
|
+
message: t('filterChanged'),
|
|
101
|
+
guiOptions: { groupId: groupIds.filterConfigureEvents, placeholder: t('filterChangedPlaceholder') }
|
|
80
102
|
},
|
|
81
103
|
{
|
|
82
104
|
type: 'input',
|
|
83
105
|
name: 'buildingBlockData.search',
|
|
84
|
-
message: t('search')
|
|
106
|
+
message: t('search'),
|
|
107
|
+
guiOptions: { groupId: groupIds.filterConfigureEvents, placeholder: t('searchPlaceholder') }
|
|
85
108
|
}
|
|
86
109
|
],
|
|
87
110
|
initialAnswers: {
|
|
@@ -4,8 +4,10 @@ exports.getTableBuildingBlockPrompts = void 0;
|
|
|
4
4
|
const i18n_1 = require("../../../i18n");
|
|
5
5
|
const utils_1 = require("../utils");
|
|
6
6
|
const types_1 = require("../../types");
|
|
7
|
+
const building_blocks_1 = require("./building-blocks");
|
|
8
|
+
const MANIFEST_LIBRARIES_GROUP = (0, building_blocks_1.getManifestPromptsGroup)();
|
|
7
9
|
const groupIds = {
|
|
8
|
-
|
|
10
|
+
commonTableBuildingBlockProperties: 'tableBuildingBlockProperties',
|
|
9
11
|
visualisationProperties: 'tableVisualizationProperties'
|
|
10
12
|
};
|
|
11
13
|
const defaultAnswers = {
|
|
@@ -33,7 +35,7 @@ async function getTableBuildingBlockPrompts(context) {
|
|
|
33
35
|
const t = (0, i18n_1.translate)(i18n_1.i18nNamespaces.buildingBlock, 'prompts.table.');
|
|
34
36
|
const groups = [
|
|
35
37
|
{
|
|
36
|
-
id: groupIds.
|
|
38
|
+
id: groupIds.commonTableBuildingBlockProperties,
|
|
37
39
|
title: t('tableBuildingBlockPropertiesTitle'),
|
|
38
40
|
description: t('tableBuildingBlockPropertiesDescription', { returnObjects: true })
|
|
39
41
|
},
|
|
@@ -41,7 +43,8 @@ async function getTableBuildingBlockPrompts(context) {
|
|
|
41
43
|
id: groupIds.visualisationProperties,
|
|
42
44
|
title: t('tableVisualizationPropertiesTitle'),
|
|
43
45
|
description: t('tableVisualizationPropertiesDescription', { returnObjects: true })
|
|
44
|
-
}
|
|
46
|
+
},
|
|
47
|
+
MANIFEST_LIBRARIES_GROUP
|
|
45
48
|
];
|
|
46
49
|
return {
|
|
47
50
|
groups,
|
|
@@ -50,7 +53,7 @@ async function getTableBuildingBlockPrompts(context) {
|
|
|
50
53
|
(0, utils_1.getViewOrFragmentPathPrompt)(context, t('viewOrFragmentPath.validate'), {
|
|
51
54
|
message: t('viewOrFragmentPath.message'),
|
|
52
55
|
guiOptions: {
|
|
53
|
-
groupId: groupIds.
|
|
56
|
+
groupId: groupIds.commonTableBuildingBlockProperties,
|
|
54
57
|
mandatory: true,
|
|
55
58
|
dependantPromptNames: ['aggregationPath', 'buildingBlockData.filterBar']
|
|
56
59
|
}
|
|
@@ -59,7 +62,7 @@ async function getTableBuildingBlockPrompts(context) {
|
|
|
59
62
|
message: t('id.message'),
|
|
60
63
|
default: defaultAnswers.id,
|
|
61
64
|
guiOptions: {
|
|
62
|
-
groupId: groupIds.
|
|
65
|
+
groupId: groupIds.commonTableBuildingBlockProperties,
|
|
63
66
|
mandatory: true
|
|
64
67
|
}
|
|
65
68
|
}),
|
|
@@ -67,7 +70,7 @@ async function getTableBuildingBlockPrompts(context) {
|
|
|
67
70
|
message: t('bindingContextType'),
|
|
68
71
|
default: defaultAnswers.bindingContextType,
|
|
69
72
|
guiOptions: {
|
|
70
|
-
groupId: groupIds.
|
|
73
|
+
groupId: groupIds.commonTableBuildingBlockProperties,
|
|
71
74
|
mandatory: true,
|
|
72
75
|
dependantPromptNames: ['buildingBlockData.metaPath.qualifier']
|
|
73
76
|
}
|
|
@@ -77,7 +80,7 @@ async function getTableBuildingBlockPrompts(context) {
|
|
|
77
80
|
await (0, utils_1.getCAPServicePrompt)(context, {
|
|
78
81
|
message: t('service'),
|
|
79
82
|
guiOptions: {
|
|
80
|
-
groupId: groupIds.
|
|
83
|
+
groupId: groupIds.commonTableBuildingBlockProperties,
|
|
81
84
|
mandatory: true,
|
|
82
85
|
dependantPromptNames: []
|
|
83
86
|
}
|
|
@@ -87,7 +90,7 @@ async function getTableBuildingBlockPrompts(context) {
|
|
|
87
90
|
(0, utils_1.getEntityPrompt)(context, {
|
|
88
91
|
message: t('entity'),
|
|
89
92
|
guiOptions: {
|
|
90
|
-
groupId: groupIds.
|
|
93
|
+
groupId: groupIds.commonTableBuildingBlockProperties,
|
|
91
94
|
mandatory: true,
|
|
92
95
|
dependantPromptNames: ['buildingBlockData.metaPath.qualifier']
|
|
93
96
|
}
|
|
@@ -96,7 +99,7 @@ async function getTableBuildingBlockPrompts(context) {
|
|
|
96
99
|
message: t('qualifier'),
|
|
97
100
|
guiOptions: {
|
|
98
101
|
hint: t('valuesDependentOnEntityTypeInfo'),
|
|
99
|
-
groupId: groupIds.
|
|
102
|
+
groupId: groupIds.commonTableBuildingBlockProperties,
|
|
100
103
|
mandatory: true,
|
|
101
104
|
placeholder: t('qualifierPlaceholder')
|
|
102
105
|
}
|
|
@@ -104,7 +107,7 @@ async function getTableBuildingBlockPrompts(context) {
|
|
|
104
107
|
(0, utils_1.getAggregationPathPrompt)(context, {
|
|
105
108
|
message: t('aggregation'),
|
|
106
109
|
guiOptions: {
|
|
107
|
-
groupId: groupIds.
|
|
110
|
+
groupId: groupIds.commonTableBuildingBlockProperties,
|
|
108
111
|
mandatory: true
|
|
109
112
|
}
|
|
110
113
|
}),
|
|
@@ -112,7 +115,7 @@ async function getTableBuildingBlockPrompts(context) {
|
|
|
112
115
|
message: t('filterBar.message'),
|
|
113
116
|
type: 'list',
|
|
114
117
|
guiOptions: {
|
|
115
|
-
groupId: groupIds.
|
|
118
|
+
groupId: groupIds.commonTableBuildingBlockProperties,
|
|
116
119
|
placeholder: t('filterBar.placeholder'),
|
|
117
120
|
creation: { placeholder: t('filterBar.inputPlaceholder') }
|
|
118
121
|
}
|
|
@@ -8,6 +8,12 @@
|
|
|
8
8
|
"filterBar": "Filter Bar",
|
|
9
9
|
"table": "Table"
|
|
10
10
|
}
|
|
11
|
+
},
|
|
12
|
+
"manifestGroup": {
|
|
13
|
+
"manifestLibrariesTitle": "Manifest Libraries",
|
|
14
|
+
"manifestLibrariesDescription": [
|
|
15
|
+
"In order for macros to work, we need to ensure that the sap.fe.macros library is maintained in manifest.json. Please see the code snippet."
|
|
16
|
+
]
|
|
11
17
|
}
|
|
12
18
|
},
|
|
13
19
|
"common": {
|
|
@@ -44,6 +50,18 @@
|
|
|
44
50
|
}
|
|
45
51
|
},
|
|
46
52
|
"chart": {
|
|
53
|
+
"chartBuildingBlockPropertiesTitle": "Chart Building Block Properties",
|
|
54
|
+
"chartBuildingBlockPropertiesDescription": [
|
|
55
|
+
"Select the `View or Fragment File` where you would like to insert the chart building block and provide a `Building Block ID` to identify the chart.",
|
|
56
|
+
"Select an `Entity Set`, and a `Chart Annotation` you would like to use for the chart building block.",
|
|
57
|
+
"Select an `Aggregation Path` to determine where you would like the chart to be placed on the page."
|
|
58
|
+
],
|
|
59
|
+
"chartVisualizationPropertiesTitle": "Chart Visualization Properties",
|
|
60
|
+
"chartVisualizationPropertiesDescription": ["Configure your chart using the properties below."],
|
|
61
|
+
"chartConfigureEventsTitle": "Configure Events",
|
|
62
|
+
"chartConfigureEventsDescription": [
|
|
63
|
+
"Configure the below properties to react to events. Event handler methods are invoked when an event occurs."
|
|
64
|
+
],
|
|
47
65
|
"id": {
|
|
48
66
|
"message": "Building Block ID",
|
|
49
67
|
"validation": "An ID is required to generate the chart building block"
|
|
@@ -80,13 +98,23 @@
|
|
|
80
98
|
"multiple": "Multiple"
|
|
81
99
|
}
|
|
82
100
|
},
|
|
83
|
-
"selectionChange": "Selection Change
|
|
84
|
-
"selectionChangePlaceholder": "Enter a
|
|
85
|
-
"qualifier": "Chart
|
|
86
|
-
"qualifierPlaceholder": "Select chart
|
|
87
|
-
"valuesDependentOnEntityTypeInfo": "Values are dependent on entity
|
|
101
|
+
"selectionChange": "Selection Change Event",
|
|
102
|
+
"selectionChangePlaceholder": "Enter a function to be executed",
|
|
103
|
+
"qualifier": "Chart Annotation Path",
|
|
104
|
+
"qualifierPlaceholder": "Select a chart annotation path",
|
|
105
|
+
"valuesDependentOnEntityTypeInfo": "Values are dependent on entity set"
|
|
88
106
|
},
|
|
89
107
|
"filterBar": {
|
|
108
|
+
"filterBarBuildingBlockPropertiesTitle": "Filter Bar Building Block Properties",
|
|
109
|
+
"filterBarBuildingBlockPropertiesDescription": [
|
|
110
|
+
"Select the `View or Fragment File` where you would like to insert the filter bar building block and provide a `Building Block ID` to identify the filter bar.",
|
|
111
|
+
"Select an `Entity Set`, and a `Selection Field Annotation` you would like to use for the filter bar building block.",
|
|
112
|
+
"Select an `Aggregation Path` to determine where you would like the filter bar to be placed on the page."
|
|
113
|
+
],
|
|
114
|
+
"filterBarConfigureEventsTitle": "Configure Events",
|
|
115
|
+
"filterBarConfigureEventsDescription": [
|
|
116
|
+
"Configure the below properties to react to events. Event handler methods are invoked when an event occurs."
|
|
117
|
+
],
|
|
90
118
|
"id": {
|
|
91
119
|
"message": "Building Block ID",
|
|
92
120
|
"validation": "An ID is required to generate the filter bar building block"
|
|
@@ -98,21 +126,23 @@
|
|
|
98
126
|
"entity": "Entity",
|
|
99
127
|
"service": "Service",
|
|
100
128
|
"metaPath": "Enter the relative path of the property in the meta model",
|
|
101
|
-
"filterChanged": "Filter
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
129
|
+
"filterChanged": "Filter Changed Event",
|
|
130
|
+
"filterChangedPlaceholder": "Enter a function to be executed",
|
|
131
|
+
"search": "Search Event",
|
|
132
|
+
"searchPlaceholder": "Enter a function to be executed",
|
|
133
|
+
"qualifier": "Selection Field Annotation Path",
|
|
134
|
+
"qualifierPlaceholder": "Select a selection field annotation path",
|
|
105
135
|
"aggregation": "Aggregation Path",
|
|
106
|
-
"valuesDependentOnEntityTypeInfo": "Values are dependent on entity
|
|
136
|
+
"valuesDependentOnEntityTypeInfo": "Values are dependent on entity set",
|
|
107
137
|
"bindingContextType": "Binding Context Path Type"
|
|
108
138
|
},
|
|
109
139
|
"table": {
|
|
110
140
|
"tableBuildingBlockPropertiesTitle": "Table Building Block Properties",
|
|
111
141
|
"tableBuildingBlockPropertiesDescription": [
|
|
112
142
|
"Select the `View or Fragment File` where you would like to insert the table building block and provide a `Building Block ID` to identify the table.",
|
|
113
|
-
"Select an `Entity
|
|
114
|
-
"Select an `Aggregation Path` to determine where you would like the table to
|
|
115
|
-
"
|
|
143
|
+
"Select an `Entity Set`, and a `Line Item Annotation` you would like to use for the table building block.",
|
|
144
|
+
"Select an `Aggregation Path` to determine where you would like the table to appear on the page.",
|
|
145
|
+
"Provide the Associated Filter Bar ID if you want to link the table to an existing filter bar."
|
|
116
146
|
],
|
|
117
147
|
"tableVisualizationPropertiesTitle": "Table Visualization Properties",
|
|
118
148
|
"tableVisualizationPropertiesDescription": ["Configure your table using the properties below."],
|
|
@@ -127,8 +157,8 @@
|
|
|
127
157
|
"bindingContextType": "Binding Context Path Type",
|
|
128
158
|
"entity": "Entity",
|
|
129
159
|
"service": "Service",
|
|
130
|
-
"qualifier": "Line Item
|
|
131
|
-
"qualifierPlaceholder": "Select a line item
|
|
160
|
+
"qualifier": "Line Item Annotation Path",
|
|
161
|
+
"qualifierPlaceholder": "Select a line item annotation path",
|
|
132
162
|
"aggregation": "Aggregation Path",
|
|
133
163
|
"filterBar": {
|
|
134
164
|
"message": "Associated Filter Bar ID",
|
|
@@ -165,7 +195,7 @@
|
|
|
165
195
|
"fullScreenMode": "Enable Full Screen Mode",
|
|
166
196
|
"pasteFromClipboard": "Enable Paste From Clipboard",
|
|
167
197
|
"tableSearchableToggle": "Table Searchable Toggle",
|
|
168
|
-
"valuesDependentOnEntityTypeInfo": "Values are dependent on entity
|
|
198
|
+
"valuesDependentOnEntityTypeInfo": "Values are dependent on entity set"
|
|
169
199
|
}
|
|
170
200
|
}
|
|
171
201
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/fe-fpm-writer",
|
|
3
3
|
"description": "SAP Fiori elements flexible programming model writer",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.31.1",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
"semver": "7.5.4",
|
|
32
32
|
"xml-formatter": "2.6.1",
|
|
33
33
|
"xpath": "0.0.33",
|
|
34
|
-
"@sap-ux/fiori-annotation-api": "0.2.
|
|
35
|
-
"@sap-ux/project-access": "1.27.
|
|
34
|
+
"@sap-ux/fiori-annotation-api": "0.2.3",
|
|
35
|
+
"@sap-ux/project-access": "1.27.3"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/inquirer": "8.2.6",
|