@sap/ux-specification 1.96.27 → 1.96.28
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/documentation/v2/v2-AnalyticalListPage.html +1 -1
- package/dist/documentation/v2/v2-ApplicationV2.html +1 -1
- package/dist/documentation/v2/v2-ListReport.html +1 -1
- package/dist/documentation/v2/v2-ObjectPage.html +1 -1
- package/dist/documentation/v2/v2-OverviewPage.html +1 -1
- package/dist/documentation/v4/v4-ApplicationV4.html +1 -1
- package/dist/documentation/v4/v4-BuildingBlocks.html +60 -0
- package/dist/documentation/v4/v4-FreestylePage.html +1 -1
- package/dist/documentation/v4/v4-ListReport.html +1 -1
- package/dist/documentation/v4/v4-ObjectPage.html +1 -1
- package/dist/index-min.js +271 -187
- package/dist/index-min.js.map +3 -3
- package/dist/package.json +111 -0
- package/dist/schemas/v4/BuildingBlocksConfig.json +750 -0
- package/dist/schemas/v4/ObjectPageConfig.json +185 -9
- package/dist/scripts/macros/api.d.ts +9 -0
- package/dist/scripts/macros/api.d.ts.map +1 -0
- package/dist/scripts/macros/api.js +161 -0
- package/dist/scripts/macros/api.js.map +1 -0
- package/dist/scripts/macros/cmd.d.ts +7 -0
- package/dist/scripts/macros/cmd.d.ts.map +1 -0
- package/dist/scripts/macros/cmd.js +49 -0
- package/dist/scripts/macros/cmd.js.map +1 -0
- package/dist/scripts/macros/corrections.d.ts +18 -0
- package/dist/scripts/macros/corrections.d.ts.map +1 -0
- package/dist/scripts/macros/corrections.js +188 -0
- package/dist/scripts/macros/corrections.js.map +1 -0
- package/dist/scripts/macros/index.d.ts +2 -0
- package/dist/scripts/macros/index.d.ts.map +1 -0
- package/dist/scripts/macros/index.js +8 -0
- package/dist/scripts/macros/index.js.map +1 -0
- package/dist/scripts/macros/schema.d.ts +9 -0
- package/dist/scripts/macros/schema.d.ts.map +1 -0
- package/dist/scripts/macros/schema.js +201 -0
- package/dist/scripts/macros/schema.js.map +1 -0
- package/dist/scripts/macros/types.d.ts +77 -0
- package/dist/scripts/macros/types.d.ts.map +1 -0
- package/dist/scripts/macros/types.js +14 -0
- package/dist/scripts/macros/types.js.map +1 -0
- package/dist/src/api.d.ts.map +1 -1
- package/dist/src/api.js +8 -1
- package/dist/src/api.js.map +1 -1
- package/dist/src/project.d.ts +1 -0
- package/dist/src/project.d.ts.map +1 -1
- package/dist/src/project.js +6 -4
- package/dist/src/project.js.map +1 -1
- package/dist/src/specification/schemaAccess.d.ts.map +1 -1
- package/dist/src/specification/schemaAccess.js +16 -3
- package/dist/src/specification/schemaAccess.js.map +1 -1
- package/dist/src/sync/common/appProvider.d.ts +12 -0
- package/dist/src/sync/common/appProvider.d.ts.map +1 -1
- package/dist/src/sync/common/appProvider.js +51 -18
- package/dist/src/sync/common/appProvider.js.map +1 -1
- package/dist/src/sync/common/generate/utils.d.ts +7 -7
- package/dist/src/sync/common/generate/utils.d.ts.map +1 -1
- package/dist/src/sync/common/generate/utils.js +27 -33
- package/dist/src/sync/common/generate/utils.js.map +1 -1
- package/dist/src/sync/common/i18n.json +2 -1
- package/dist/src/sync/common/importProject.d.ts.map +1 -1
- package/dist/src/sync/common/importProject.js +67 -31
- package/dist/src/sync/common/importProject.js.map +1 -1
- package/dist/src/sync/common/types.d.ts +6 -0
- package/dist/src/sync/common/types.d.ts.map +1 -0
- package/dist/src/sync/common/types.js +3 -0
- package/dist/src/sync/common/types.js.map +1 -0
- package/dist/src/sync/common/utils.d.ts +26 -5
- package/dist/src/sync/common/utils.d.ts.map +1 -1
- package/dist/src/sync/common/utils.js +42 -5
- package/dist/src/sync/common/utils.js.map +1 -1
- package/dist/src/sync/v2/generate/analyticalListReport.d.ts.map +1 -1
- package/dist/src/sync/v2/generate/analyticalListReport.js +1 -0
- package/dist/src/sync/v2/generate/analyticalListReport.js.map +1 -1
- package/dist/src/sync/v2/generate/listReport.d.ts.map +1 -1
- package/dist/src/sync/v2/generate/listReport.js +1 -0
- package/dist/src/sync/v2/generate/listReport.js.map +1 -1
- package/dist/src/sync/v2/generate/objectPage.d.ts.map +1 -1
- package/dist/src/sync/v2/generate/objectPage.js +1 -0
- package/dist/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageFooter.d.ts +5 -1
- package/dist/src/sync/v4/export/controls/ObjectPageFooter.d.ts.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageFooter.js +4 -1
- package/dist/src/sync/v4/export/controls/ObjectPageFooter.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageFooterAction.d.ts +14 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFooterAction.d.ts.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageFooterAction.js +83 -1
- package/dist/src/sync/v4/export/controls/ObjectPageFooterAction.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageHeader.d.ts +5 -1
- package/dist/src/sync/v4/export/controls/ObjectPageHeader.d.ts.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageHeader.js +4 -1
- package/dist/src/sync/v4/export/controls/ObjectPageHeader.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderAction.d.ts +14 -0
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderAction.d.ts.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderAction.js +83 -1
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderAction.js.map +1 -1
- package/dist/src/sync/v4/export/export.d.ts +1 -0
- package/dist/src/sync/v4/export/export.d.ts.map +1 -1
- package/dist/src/sync/v4/export/export.js +11 -6
- package/dist/src/sync/v4/export/export.js.map +1 -1
- package/dist/src/sync/v4/export/fpmCustomPage.d.ts +11 -0
- package/dist/src/sync/v4/export/fpmCustomPage.d.ts.map +1 -0
- package/dist/src/sync/v4/export/fpmCustomPage.js +131 -0
- package/dist/src/sync/v4/export/fpmCustomPage.js.map +1 -0
- package/dist/src/sync/v4/generate/fpmCustomPage.d.ts +10 -0
- package/dist/src/sync/v4/generate/fpmCustomPage.d.ts.map +1 -0
- package/dist/src/sync/v4/generate/fpmCustomPage.js +266 -0
- package/dist/src/sync/v4/generate/fpmCustomPage.js.map +1 -0
- package/dist/src/sync/v4/generate/generate.d.ts +13 -1
- package/dist/src/sync/v4/generate/generate.d.ts.map +1 -1
- package/dist/src/sync/v4/generate/generate.js +22 -1
- package/dist/src/sync/v4/generate/generate.js.map +1 -1
- package/dist/src/sync/v4/generate/index.d.ts +2 -1
- package/dist/src/sync/v4/generate/index.d.ts.map +1 -1
- package/dist/src/sync/v4/generate/index.js +4 -1
- package/dist/src/sync/v4/generate/index.js.map +1 -1
- package/dist/src/sync/v4/generate/objectPage.d.ts.map +1 -1
- package/dist/src/sync/v4/generate/objectPage.js +45 -12
- package/dist/src/sync/v4/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v4/import/app/appProvider.d.ts +2 -1
- package/dist/src/sync/v4/import/app/appProvider.d.ts.map +1 -1
- package/dist/src/sync/v4/import/app/appProvider.js +2 -2
- package/dist/src/sync/v4/import/app/appProvider.js.map +1 -1
- package/dist/src/sync/v4/import/app/baseAppProvider.d.ts +7 -2
- package/dist/src/sync/v4/import/app/baseAppProvider.d.ts.map +1 -1
- package/dist/src/sync/v4/import/app/baseAppProvider.js +26 -6
- package/dist/src/sync/v4/import/app/baseAppProvider.js.map +1 -1
- package/dist/src/sync/v4/import/app/freestyleProvider.d.ts +2 -1
- package/dist/src/sync/v4/import/app/freestyleProvider.d.ts.map +1 -1
- package/dist/src/sync/v4/import/app/freestyleProvider.js +2 -2
- package/dist/src/sync/v4/import/app/freestyleProvider.js.map +1 -1
- package/dist/src/sync/v4/import/index.d.ts +1 -0
- package/dist/src/sync/v4/import/index.d.ts.map +1 -1
- package/dist/src/sync/v4/import/index.js +1 -0
- package/dist/src/sync/v4/import/index.js.map +1 -1
- package/dist/src/sync/v4/import/pages/fpmCustomPage.d.ts +9 -0
- package/dist/src/sync/v4/import/pages/fpmCustomPage.d.ts.map +1 -0
- package/dist/src/sync/v4/import/pages/fpmCustomPage.js +102 -0
- package/dist/src/sync/v4/import/pages/fpmCustomPage.js.map +1 -0
- package/dist/src/sync/v4/import/pages/objectPage.js +1 -1
- package/dist/src/sync/v4/import/pages/objectPage.js.map +1 -1
- package/dist/src/sync/v4/utils/macros.d.ts +29 -0
- package/dist/src/sync/v4/utils/macros.d.ts.map +1 -0
- package/dist/src/sync/v4/utils/macros.js +113 -0
- package/dist/src/sync/v4/utils/macros.js.map +1 -0
- package/dist/src/sync/v4/utils/utils.d.ts +11 -1
- package/dist/src/sync/v4/utils/utils.d.ts.map +1 -1
- package/dist/src/sync/v4/utils/utils.js +88 -1
- package/dist/src/sync/v4/utils/utils.js.map +1 -1
- package/package.json +14 -8
|
@@ -68,9 +68,104 @@
|
|
|
68
68
|
"HeaderActions": {
|
|
69
69
|
"type": "object",
|
|
70
70
|
"additionalProperties": {
|
|
71
|
-
"
|
|
71
|
+
"anyOf": [
|
|
72
|
+
{
|
|
73
|
+
"$ref": "#/definitions/CustomHeaderActionOP"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"$ref": "#/definitions/HeaderActionV4"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
72
79
|
}
|
|
73
80
|
},
|
|
81
|
+
"CustomHeaderActionOP": {
|
|
82
|
+
"type": "object",
|
|
83
|
+
"properties": {
|
|
84
|
+
"position": {
|
|
85
|
+
"$ref": "#/definitions/CustomHeaderActionPositionOP",
|
|
86
|
+
"description": "Defines the position of the action relative to other actions.",
|
|
87
|
+
"artifactType": "Manifest"
|
|
88
|
+
},
|
|
89
|
+
"text": {
|
|
90
|
+
"description": "The text that is displayed on the button (typically a binding to an i18n entry).",
|
|
91
|
+
"i18nClassification": "COL: Custom action text",
|
|
92
|
+
"artifactType": "Manifest",
|
|
93
|
+
"type": "string"
|
|
94
|
+
},
|
|
95
|
+
"press": {
|
|
96
|
+
"description": "Relevant for extension actions; allows the definition of a target action handler.",
|
|
97
|
+
"artifactType": "Manifest",
|
|
98
|
+
"type": "string"
|
|
99
|
+
},
|
|
100
|
+
"visible": {
|
|
101
|
+
"pattern": "^(false|true)$|^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",
|
|
102
|
+
"anyOf": [
|
|
103
|
+
{
|
|
104
|
+
"enum": [
|
|
105
|
+
false,
|
|
106
|
+
true,
|
|
107
|
+
"{ui>/editable}",
|
|
108
|
+
"{= !${ui>/editable}}"
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"type": "string"
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"description": "Whether the action button should be visible on the screen.",
|
|
116
|
+
"artifactType": "Manifest"
|
|
117
|
+
},
|
|
118
|
+
"enabled": {
|
|
119
|
+
"pattern": "^(false|true)$|^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",
|
|
120
|
+
"anyOf": [
|
|
121
|
+
{
|
|
122
|
+
"enum": [
|
|
123
|
+
false,
|
|
124
|
+
true,
|
|
125
|
+
"{ui>/editable}",
|
|
126
|
+
"{= !${ui>/editable}}"
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"type": "string"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"description": "Whether the action button should be enabled. Default value is `true`.",
|
|
134
|
+
"artifactType": "Manifest"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"additionalProperties": false,
|
|
138
|
+
"required": [
|
|
139
|
+
"press",
|
|
140
|
+
"text"
|
|
141
|
+
]
|
|
142
|
+
},
|
|
143
|
+
"CustomHeaderActionPositionOP": {
|
|
144
|
+
"type": "object",
|
|
145
|
+
"properties": {
|
|
146
|
+
"anchor": {
|
|
147
|
+
"description": "The key of another action to be used as placement anchor.",
|
|
148
|
+
"artifactType": "Manifest",
|
|
149
|
+
"type": "string"
|
|
150
|
+
},
|
|
151
|
+
"placement": {
|
|
152
|
+
"$ref": "#/definitions/ActionPlacement",
|
|
153
|
+
"description": "Define the placement, either before or after the anchor action.",
|
|
154
|
+
"artifactType": "Manifest"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"additionalProperties": false,
|
|
158
|
+
"required": [
|
|
159
|
+
"placement"
|
|
160
|
+
]
|
|
161
|
+
},
|
|
162
|
+
"ActionPlacement": {
|
|
163
|
+
"enum": [
|
|
164
|
+
"After",
|
|
165
|
+
"Before"
|
|
166
|
+
],
|
|
167
|
+
"type": "string"
|
|
168
|
+
},
|
|
74
169
|
"HeaderActionV4": {
|
|
75
170
|
"type": "object",
|
|
76
171
|
"properties": {
|
|
@@ -482,13 +577,6 @@
|
|
|
482
577
|
"placement"
|
|
483
578
|
]
|
|
484
579
|
},
|
|
485
|
-
"ActionPlacement": {
|
|
486
|
-
"enum": [
|
|
487
|
-
"After",
|
|
488
|
-
"Before"
|
|
489
|
-
],
|
|
490
|
-
"type": "string"
|
|
491
|
-
},
|
|
492
580
|
"TableCreationModeOP": {
|
|
493
581
|
"type": "object",
|
|
494
582
|
"properties": {
|
|
@@ -1022,9 +1110,97 @@
|
|
|
1022
1110
|
"ObjectPageFooterActions": {
|
|
1023
1111
|
"type": "object",
|
|
1024
1112
|
"additionalProperties": {
|
|
1025
|
-
"
|
|
1113
|
+
"anyOf": [
|
|
1114
|
+
{
|
|
1115
|
+
"$ref": "#/definitions/CustomFooterActionOP"
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
"$ref": "#/definitions/FooterActionV4"
|
|
1119
|
+
}
|
|
1120
|
+
]
|
|
1026
1121
|
}
|
|
1027
1122
|
},
|
|
1123
|
+
"CustomFooterActionOP": {
|
|
1124
|
+
"type": "object",
|
|
1125
|
+
"properties": {
|
|
1126
|
+
"position": {
|
|
1127
|
+
"$ref": "#/definitions/CustomFooterActionPositionOP",
|
|
1128
|
+
"description": "Defines the position of the action relative to other actions.",
|
|
1129
|
+
"artifactType": "Manifest"
|
|
1130
|
+
},
|
|
1131
|
+
"text": {
|
|
1132
|
+
"description": "The text that is displayed on the button (typically a binding to an i18n entry).",
|
|
1133
|
+
"i18nClassification": "COL: Custom action text",
|
|
1134
|
+
"artifactType": "Manifest",
|
|
1135
|
+
"type": "string"
|
|
1136
|
+
},
|
|
1137
|
+
"press": {
|
|
1138
|
+
"description": "Relevant for extension actions; allows the definition of a target action handler.",
|
|
1139
|
+
"artifactType": "Manifest",
|
|
1140
|
+
"type": "string"
|
|
1141
|
+
},
|
|
1142
|
+
"visible": {
|
|
1143
|
+
"pattern": "^(false|true)$|^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",
|
|
1144
|
+
"anyOf": [
|
|
1145
|
+
{
|
|
1146
|
+
"enum": [
|
|
1147
|
+
false,
|
|
1148
|
+
true,
|
|
1149
|
+
"{ui>/editable}",
|
|
1150
|
+
"{= !${ui>/editable}}"
|
|
1151
|
+
]
|
|
1152
|
+
},
|
|
1153
|
+
{
|
|
1154
|
+
"type": "string"
|
|
1155
|
+
}
|
|
1156
|
+
],
|
|
1157
|
+
"description": "Whether the action button should be visible on the screen.",
|
|
1158
|
+
"artifactType": "Manifest"
|
|
1159
|
+
},
|
|
1160
|
+
"enabled": {
|
|
1161
|
+
"pattern": "^(false|true)$|^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",
|
|
1162
|
+
"anyOf": [
|
|
1163
|
+
{
|
|
1164
|
+
"enum": [
|
|
1165
|
+
false,
|
|
1166
|
+
true,
|
|
1167
|
+
"{ui>/editable}",
|
|
1168
|
+
"{= !${ui>/editable}}"
|
|
1169
|
+
]
|
|
1170
|
+
},
|
|
1171
|
+
{
|
|
1172
|
+
"type": "string"
|
|
1173
|
+
}
|
|
1174
|
+
],
|
|
1175
|
+
"description": "Whether the action button should be enabled. Default value is `true`.",
|
|
1176
|
+
"artifactType": "Manifest"
|
|
1177
|
+
}
|
|
1178
|
+
},
|
|
1179
|
+
"additionalProperties": false,
|
|
1180
|
+
"required": [
|
|
1181
|
+
"press",
|
|
1182
|
+
"text"
|
|
1183
|
+
]
|
|
1184
|
+
},
|
|
1185
|
+
"CustomFooterActionPositionOP": {
|
|
1186
|
+
"type": "object",
|
|
1187
|
+
"properties": {
|
|
1188
|
+
"anchor": {
|
|
1189
|
+
"description": "The key of another action to be used as placement anchor.",
|
|
1190
|
+
"artifactType": "Manifest",
|
|
1191
|
+
"type": "string"
|
|
1192
|
+
},
|
|
1193
|
+
"placement": {
|
|
1194
|
+
"$ref": "#/definitions/ActionPlacement",
|
|
1195
|
+
"description": "Define the placement, either before or after the anchor action.",
|
|
1196
|
+
"artifactType": "Manifest"
|
|
1197
|
+
}
|
|
1198
|
+
},
|
|
1199
|
+
"additionalProperties": false,
|
|
1200
|
+
"required": [
|
|
1201
|
+
"placement"
|
|
1202
|
+
]
|
|
1203
|
+
},
|
|
1028
1204
|
"FooterActionV4": {
|
|
1029
1205
|
"type": "object",
|
|
1030
1206
|
"properties": {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { MacrosAPI } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Method returns "sap.fe.macros" api for passed specification version.
|
|
4
|
+
* @param {string} specVersion Specification version.
|
|
5
|
+
* @param {boolean} [useNightlyBuild] If true, then dev/nightly build version will be retrieved.
|
|
6
|
+
* @returns {Promise<MacrosAPI | undefined>} Promise to "sap.fe.macros" api.
|
|
7
|
+
*/
|
|
8
|
+
export declare function getMacrosAPI(specVersion: string, useNightlyBuild?: boolean, overwriteCache?: boolean): Promise<MacrosAPI | undefined>;
|
|
9
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../scripts/macros/api.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAqIzC;;;;;GAKG;AACH,wBAAsB,YAAY,CAC9B,WAAW,EAAE,MAAM,EACnB,eAAe,UAAQ,EACvB,cAAc,UAAQ,GACvB,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC,CA+BhC"}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getMacrosAPI = void 0;
|
|
7
|
+
const fs_1 = __importDefault(require("fs"));
|
|
8
|
+
const semver_1 = require("semver");
|
|
9
|
+
const axios_1 = __importDefault(require("axios"));
|
|
10
|
+
const path_1 = require("path");
|
|
11
|
+
const LATEST_RELEASED_SPEC_VERSION = 102;
|
|
12
|
+
const MINIMAL_SUPPORTED_VERSION = 85;
|
|
13
|
+
const CACHE_FOLDER = 'cache';
|
|
14
|
+
const API_JSON = 'api.json';
|
|
15
|
+
var UI5Info;
|
|
16
|
+
(function (UI5Info) {
|
|
17
|
+
UI5Info["OfficialUrl"] = "https://ui5.sap.com";
|
|
18
|
+
UI5Info["NightlyBuild"] = "https://sapui5nightly.int.sap.eu2.hana.ondemand.com";
|
|
19
|
+
UI5Info["Versions"] = "version.json";
|
|
20
|
+
UI5Info["Api"] = "test-resources/sap/fe/macros/designtime/apiref/api.json";
|
|
21
|
+
})(UI5Info || (UI5Info = {}));
|
|
22
|
+
/**
|
|
23
|
+
* Method checks if passed specification version should be considered as latest.
|
|
24
|
+
* @param {string} specVersion Specification version.
|
|
25
|
+
* @returns {boolean} Is latest specification version.
|
|
26
|
+
*/
|
|
27
|
+
function isLatestVersion(specVersion) {
|
|
28
|
+
const ui5Version = semver_1.coerce(specVersion);
|
|
29
|
+
return specVersion === '9.9.9' || (ui5Version.major === 1 && ui5Version.minor >= LATEST_RELEASED_SPEC_VERSION);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Method finds SAPUI5 version for passed specification version by searching in list of passed SAPUI5 versions.
|
|
33
|
+
* @param {UI5Versions} versions SAPUI5 versions.
|
|
34
|
+
* @param {string} specVersion Specification version.
|
|
35
|
+
* @returns {string} Found associated SAPUI5 versions.
|
|
36
|
+
*/
|
|
37
|
+
function findValidVersion(versions, specVersion) {
|
|
38
|
+
const ui5Version = semver_1.coerce(specVersion);
|
|
39
|
+
if (ui5Version.major === 1 && ui5Version.minor < MINIMAL_SUPPORTED_VERSION) {
|
|
40
|
+
return undefined;
|
|
41
|
+
}
|
|
42
|
+
let foundVersion = undefined;
|
|
43
|
+
for (const version in versions) {
|
|
44
|
+
const versionInfo = semver_1.coerce(version);
|
|
45
|
+
if (!versionInfo) {
|
|
46
|
+
continue;
|
|
47
|
+
}
|
|
48
|
+
if (ui5Version.major === versionInfo.major && versionInfo.minor <= ui5Version.minor) {
|
|
49
|
+
if (!foundVersion || versionInfo.minor > foundVersion.minor) {
|
|
50
|
+
foundVersion = {
|
|
51
|
+
version: versions[version].version,
|
|
52
|
+
minor: versionInfo.minor
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return foundVersion ? foundVersion.version : undefined;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Method returns valid SAPUI5 version for passed specification version by looking for SAPUI5 version in "https://ui5.sap.com/version.json".
|
|
61
|
+
* @param {string} specVersion Specification version.
|
|
62
|
+
* @returns {string} SAPUI5 versions.
|
|
63
|
+
*/
|
|
64
|
+
async function getValidUI5Version(specVersion) {
|
|
65
|
+
let version = undefined;
|
|
66
|
+
const requestUrl = `${"https://ui5.sap.com" /* OfficialUrl */}/${"version.json" /* Versions */}`;
|
|
67
|
+
try {
|
|
68
|
+
const response = await axios_1.default.get(requestUrl);
|
|
69
|
+
if (response.status === 200) {
|
|
70
|
+
const ui5Version = findValidVersion(response.data, specVersion);
|
|
71
|
+
if (!ui5Version) {
|
|
72
|
+
console.log('No valid ui5 version found');
|
|
73
|
+
}
|
|
74
|
+
return ui5Version;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
catch (error) {
|
|
78
|
+
console.log(`UI5 versions request "${requestUrl}" failed with error "${error}"`);
|
|
79
|
+
version = undefined;
|
|
80
|
+
}
|
|
81
|
+
return version;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Method retrieves "api.json" for "sap.fe.macros" by sending request to "https://ui5.sap.com/${ui5Version}/test-resources/sap/fe/macros/designtime/apiref/api.json".
|
|
85
|
+
* @param {string} ui5Version SAPUI5 version to read "sap.fe.macros" api.
|
|
86
|
+
* @param {boolean} [useNightlyBuild] If true, then dev/nightly build version will be retrieved.
|
|
87
|
+
* @returns {Promise<MacrosAPI | undefined>} Promise to "sap.fe.macros" api.
|
|
88
|
+
*/
|
|
89
|
+
async function retrieveMacrosAPI(ui5Version, useNightlyBuild = false) {
|
|
90
|
+
let api = undefined;
|
|
91
|
+
const subPath = ui5Version ? `${ui5Version}/` : '';
|
|
92
|
+
const requestUrl = `${useNightlyBuild ? "https://sapui5nightly.int.sap.eu2.hana.ondemand.com" /* NightlyBuild */ : "https://ui5.sap.com" /* OfficialUrl */}/${subPath}${"test-resources/sap/fe/macros/designtime/apiref/api.json" /* Api */}`;
|
|
93
|
+
try {
|
|
94
|
+
const response = await axios_1.default.get(requestUrl);
|
|
95
|
+
if (response.status === 200) {
|
|
96
|
+
api = response.data;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
catch (error) {
|
|
100
|
+
console.log(`API request "${requestUrl}" failed with error "${error}"`);
|
|
101
|
+
api = undefined;
|
|
102
|
+
}
|
|
103
|
+
return api;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Method saves passed api as cached version.
|
|
107
|
+
* @param {MacrosAPI} api "sap.fe.macros" api to save.
|
|
108
|
+
* @param {string} cachePath Cache folder path.
|
|
109
|
+
* @param {string} apiFilePath API file path.
|
|
110
|
+
*/
|
|
111
|
+
function saveAPI(api, cachePath, apiFilePath) {
|
|
112
|
+
if (!fs_1.default.existsSync(cachePath)) {
|
|
113
|
+
fs_1.default.mkdirSync(cachePath);
|
|
114
|
+
}
|
|
115
|
+
// Save result
|
|
116
|
+
fs_1.default.writeFile(apiFilePath, JSON.stringify(api, null, 2), function (error) {
|
|
117
|
+
const message = error ? `Save failed with error "${error}"` : `${API_JSON} file successfully saved`;
|
|
118
|
+
console.log(message);
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Method returns "sap.fe.macros" api for passed specification version.
|
|
123
|
+
* @param {string} specVersion Specification version.
|
|
124
|
+
* @param {boolean} [useNightlyBuild] If true, then dev/nightly build version will be retrieved.
|
|
125
|
+
* @returns {Promise<MacrosAPI | undefined>} Promise to "sap.fe.macros" api.
|
|
126
|
+
*/
|
|
127
|
+
async function getMacrosAPI(specVersion, useNightlyBuild = false, overwriteCache = false) {
|
|
128
|
+
const cachePath = path_1.join(__dirname, CACHE_FOLDER);
|
|
129
|
+
const apiFilePath = path_1.join(cachePath, API_JSON);
|
|
130
|
+
let api;
|
|
131
|
+
// Check cached file
|
|
132
|
+
if (fs_1.default.existsSync(apiFilePath) && !overwriteCache) {
|
|
133
|
+
const apiContent = fs_1.default.readFileSync(apiFilePath, 'utf8');
|
|
134
|
+
try {
|
|
135
|
+
api = JSON.parse(apiContent);
|
|
136
|
+
}
|
|
137
|
+
catch {
|
|
138
|
+
console.log('Parse of cached api.json failed');
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
if (!api) {
|
|
142
|
+
// Find ui5 version to include into request URL for API
|
|
143
|
+
const useLatestVersion = isLatestVersion(specVersion);
|
|
144
|
+
let ui5Version = '';
|
|
145
|
+
// Get ui5 version
|
|
146
|
+
if (!useLatestVersion) {
|
|
147
|
+
// Find valid maintainable version
|
|
148
|
+
ui5Version = await getValidUI5Version(specVersion);
|
|
149
|
+
}
|
|
150
|
+
if (ui5Version || useLatestVersion) {
|
|
151
|
+
// Request macros API
|
|
152
|
+
api = await retrieveMacrosAPI(ui5Version, useNightlyBuild);
|
|
153
|
+
if (api) {
|
|
154
|
+
saveAPI(api, cachePath, apiFilePath);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
return api;
|
|
159
|
+
}
|
|
160
|
+
exports.getMacrosAPI = getMacrosAPI;
|
|
161
|
+
//# sourceMappingURL=api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../scripts/macros/api.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AACpB,mCAAgC;AAChC,kDAA0B;AAC1B,+BAA4B;AAI5B,MAAM,4BAA4B,GAAG,GAAG,CAAC;AACzC,MAAM,yBAAyB,GAAG,EAAE,CAAC;AACrC,MAAM,YAAY,GAAG,OAAO,CAAC;AAC7B,MAAM,QAAQ,GAAG,UAAU,CAAC;AAE5B,IAAW,OAKV;AALD,WAAW,OAAO;IACd,8CAAmC,CAAA;IACnC,+EAAoE,CAAA;IACpE,oCAAyB,CAAA;IACzB,0EAA+D,CAAA;AACnE,CAAC,EALU,OAAO,KAAP,OAAO,QAKjB;AAiBD;;;;GAIG;AACH,SAAS,eAAe,CAAC,WAAmB;IACxC,MAAM,UAAU,GAAG,eAAM,CAAC,WAAW,CAAC,CAAC;IACvC,OAAO,WAAW,KAAK,OAAO,IAAI,CAAC,UAAU,CAAC,KAAK,KAAK,CAAC,IAAI,UAAU,CAAC,KAAK,IAAI,4BAA4B,CAAC,CAAC;AACnH,CAAC;AAED;;;;;GAKG;AACH,SAAS,gBAAgB,CAAC,QAAqB,EAAE,WAAmB;IAChE,MAAM,UAAU,GAAG,eAAM,CAAC,WAAW,CAAC,CAAC;IACvC,IAAI,UAAU,CAAC,KAAK,KAAK,CAAC,IAAI,UAAU,CAAC,KAAK,GAAG,yBAAyB,EAAE;QACxE,OAAO,SAAS,CAAC;KACpB;IACD,IAAI,YAAY,GAA4B,SAA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to generate macros generic schema by resolving "sap.fe.macros" api.json.
|
|
4
|
+
* @param {string[]} argv Additional arguments for API retrieval and schema generation. Currently we support '--nightly' and '--update'.
|
|
5
|
+
*/
|
|
6
|
+
export declare function run(argv: string[]): Promise<void>;
|
|
7
|
+
//# sourceMappingURL=cmd.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cmd.d.ts","sourceRoot":"","sources":["../../../scripts/macros/cmd.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,mCAAmC,8BAA8B,CAAC;AAS/E;;;GAGG;AACH,wBAAsB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CA4BvD"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.run = exports.FPM_CUSTOM_PAGE_GENERIC_SCHEMA_NAME = void 0;
|
|
7
|
+
const fs_1 = __importDefault(require("fs"));
|
|
8
|
+
const path_1 = require("path");
|
|
9
|
+
const package_json_1 = __importDefault(require("../../package.json"));
|
|
10
|
+
const api_1 = require("./api");
|
|
11
|
+
const schema_1 = require("./schema");
|
|
12
|
+
exports.FPM_CUSTOM_PAGE_GENERIC_SCHEMA_NAME = 'BuildingBlocksConfig.json';
|
|
13
|
+
const CmdParams = {
|
|
14
|
+
// Use nighly build api version
|
|
15
|
+
nightlyBuild: '--nightly',
|
|
16
|
+
// Overwrite cache
|
|
17
|
+
overwriteCache: '--update'
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Run command to generate macros generic schema by resolving "sap.fe.macros" api.json.
|
|
21
|
+
* @param {string[]} argv Additional arguments for API retrieval and schema generation. Currently we support '--nightly' and '--update'.
|
|
22
|
+
*/
|
|
23
|
+
async function run(argv) {
|
|
24
|
+
const api = await api_1.getMacrosAPI(package_json_1.default.version, argv.includes(CmdParams.nightlyBuild), argv.includes(CmdParams.overwriteCache));
|
|
25
|
+
if (api) {
|
|
26
|
+
// Generate generic schema for macros
|
|
27
|
+
const schema = schema_1.generateSchema(api);
|
|
28
|
+
// Make sure schemas/v4 folders exists
|
|
29
|
+
const rootName = path_1.join(__dirname, '..', '..');
|
|
30
|
+
const schemasDir = path_1.join(rootName, 'schemas');
|
|
31
|
+
const schemaV4Dir = path_1.join(schemasDir, 'v4');
|
|
32
|
+
const macrosSchemaPath = path_1.join(schemaV4Dir, exports.FPM_CUSTOM_PAGE_GENERIC_SCHEMA_NAME);
|
|
33
|
+
if (!fs_1.default.existsSync(schemasDir)) {
|
|
34
|
+
fs_1.default.mkdirSync(schemasDir);
|
|
35
|
+
}
|
|
36
|
+
if (!fs_1.default.existsSync(schemaV4Dir)) {
|
|
37
|
+
fs_1.default.mkdirSync(schemaV4Dir);
|
|
38
|
+
}
|
|
39
|
+
// Write generic macros schema file
|
|
40
|
+
fs_1.default.writeFile(macrosSchemaPath, JSON.stringify(schema, null, 2), function (error) {
|
|
41
|
+
const message = error
|
|
42
|
+
? `Save for ${exports.FPM_CUSTOM_PAGE_GENERIC_SCHEMA_NAME} failed with error "${error}"`
|
|
43
|
+
: `${exports.FPM_CUSTOM_PAGE_GENERIC_SCHEMA_NAME} file successfully saved`;
|
|
44
|
+
console.log(message);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.run = run;
|
|
49
|
+
//# sourceMappingURL=cmd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cmd.js","sourceRoot":"","sources":["../../../scripts/macros/cmd.ts"],"names":[],"mappings":";;;;;;AAAA,4CAAoB;AACpB,+BAA4B;AAE5B,sEAA6C;AAC7C,+BAAqC;AACrC,qCAA0C;AAE7B,QAAA,mCAAmC,GAAG,2BAA2B,CAAC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C,0BAA0B,CAAC;YACvE,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACzB,CAAC,CAAC,CAAC;KACN;AACL,CAAC;AA5BD,kBA4BC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { MacrosAPI, UI5Aggregation, UI5Symbol, UI5Property } from './types';
|
|
2
|
+
interface APICorrection {
|
|
3
|
+
aggregations?: UI5Aggregation[];
|
|
4
|
+
properties?: UI5Property[];
|
|
5
|
+
metadata?: UI5Symbol;
|
|
6
|
+
}
|
|
7
|
+
export declare const macrosCorrection: {
|
|
8
|
+
[key: string]: APICorrection;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Method applies missing aggregations and properties for "sap.fe.macros" api object.
|
|
12
|
+
* We notice that api object of "sap.fe.macros" is missing some aggregation and properties information
|
|
13
|
+
* - in result we apply missing data on top of received api object.
|
|
14
|
+
* @param {MacrosAPI} api "sap.fe.macros" api object.
|
|
15
|
+
*/
|
|
16
|
+
export declare function applyCorrections(api: MacrosAPI): void;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=corrections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"corrections.d.ts","sourceRoot":"","sources":["../../../scripts/macros/corrections.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,EAA8B,WAAW,EAAE,MAAM,SAAS,CAAC;AAE7G,UAAU,aAAa;IACnB,YAAY,CAAC,EAAE,cAAc,EAAE,CAAC;IAChC,UAAU,CAAC,EAAE,WAAW,EAAE,CAAC;IAC3B,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAED,eAAO,MAAM,gBAAgB,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAA;CA8G5D,CAAC;AAiDF;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,SAAS,GAAG,IAAI,CAmBrD"}
|