@sap/ux-specification 1.84.113 → 1.84.115

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.
Files changed (75) hide show
  1. package/CHANGELOG.md +39 -1
  2. package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
  3. package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
  4. package/dist/documentation/v2/v2-ListReport.html +2 -2
  5. package/dist/documentation/v2/v2-ObjectPage.html +2 -2
  6. package/dist/documentation/v2/v2-OverviewPage.html +2 -2
  7. package/dist/documentation/v4/v4-ApplicationV4.html +2 -2
  8. package/dist/documentation/v4/v4-ListReport.html +2 -2
  9. package/dist/documentation/v4/v4-ObjectPage.html +2 -2
  10. package/dist/index-min.js +21 -21
  11. package/dist/index-min.js.map +3 -3
  12. package/dist/schemas/v2/ApplicationV2.json +2 -1
  13. package/dist/schemas/v4/ApplicationV4.json +6 -1
  14. package/dist/specification/package.json +3 -3
  15. package/dist/specification/scripts/extractDocu.js +2 -2
  16. package/dist/specification/scripts/extractDocu.js.map +1 -1
  17. package/dist/specification/src/sync/common/utils.d.ts +13 -3
  18. package/dist/specification/src/sync/common/utils.d.ts.map +1 -1
  19. package/dist/specification/src/sync/common/utils.js +43 -11
  20. package/dist/specification/src/sync/common/utils.js.map +1 -1
  21. package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts +6 -3
  22. package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts.map +1 -1
  23. package/dist/specification/src/sync/v2/export/exportPageGeneric.js +27 -17
  24. package/dist/specification/src/sync/v2/export/exportPageGeneric.js.map +1 -1
  25. package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.d.ts +118 -0
  26. package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.d.ts.map +1 -0
  27. package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.js +151 -0
  28. package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.js.map +1 -0
  29. package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts +1 -1
  30. package/dist/specification/src/sync/v2/generate/schemaAdaptation.js +6 -6
  31. package/dist/specification/src/sync/v2/generate/schemaAdaptation.js.map +1 -1
  32. package/dist/specification/src/sync/v2/generate/utils.d.ts +0 -14
  33. package/dist/specification/src/sync/v2/generate/utils.d.ts.map +1 -1
  34. package/dist/specification/src/sync/v2/generate/utils.js +0 -38
  35. package/dist/specification/src/sync/v2/generate/utils.js.map +1 -1
  36. package/dist/specification/src/sync/v2/import/importPage.d.ts +3 -2
  37. package/dist/specification/src/sync/v2/import/importPage.d.ts.map +1 -1
  38. package/dist/specification/src/sync/v2/import/importPage.js +4 -5
  39. package/dist/specification/src/sync/v2/import/importPage.js.map +1 -1
  40. package/dist/specification/src/sync/v2/utils.d.ts +26 -1
  41. package/dist/specification/src/sync/v2/utils.d.ts.map +1 -1
  42. package/dist/specification/src/sync/v2/utils.js +47 -1
  43. package/dist/specification/src/sync/v2/utils.js.map +1 -1
  44. package/dist/specification/src/sync/v4/export/manifest.d.ts.map +1 -1
  45. package/dist/specification/src/sync/v4/export/manifest.js +3 -4
  46. package/dist/specification/src/sync/v4/export/manifest.js.map +1 -1
  47. package/dist/specification/src/sync/v4/import/app/appProvider.d.ts.map +1 -1
  48. package/dist/specification/src/sync/v4/import/app/appProvider.js +5 -1
  49. package/dist/specification/src/sync/v4/import/app/appProvider.js.map +1 -1
  50. package/dist/specification/src/sync/v4/utils/utils.d.ts +1 -1
  51. package/dist/specification/src/sync/v4/utils/utils.d.ts.map +1 -1
  52. package/dist/specification/src/sync/v4/utils/utils.js +3 -3
  53. package/dist/specification/src/sync/v4/utils/utils.js.map +1 -1
  54. package/dist/types/src/apiTypes.d.ts +13 -0
  55. package/dist/types/src/apiTypes.d.ts.map +1 -1
  56. package/dist/types/src/apiTypes.js +18 -1
  57. package/dist/types/src/apiTypes.js.map +1 -1
  58. package/dist/types/src/common/Application.d.ts +3 -0
  59. package/dist/types/src/common/Application.d.ts.map +1 -1
  60. package/dist/types/src/common/types.d.ts +51 -2
  61. package/dist/types/src/common/types.d.ts.map +1 -1
  62. package/dist/types/src/common/types.js +2 -1
  63. package/dist/types/src/common/types.js.map +1 -1
  64. package/dist/types/src/v2/application.d.ts +1 -1
  65. package/dist/types/src/v4/application.d.ts +1 -1
  66. package/dist/types/src/v4/page.d.ts +4 -0
  67. package/dist/types/src/v4/page.d.ts.map +1 -1
  68. package/dist/types/src/v4/webapp/manifest/sapUi5.d.ts +3 -0
  69. package/dist/types/src/v4/webapp/manifest/sapUi5.d.ts.map +1 -1
  70. package/dist/types/src/v4/webapp/manifest/sapUi5.js.map +1 -1
  71. package/dist/types/src/v4/webapp/manifest/sapUiPageV4.d.ts +1 -1
  72. package/dist/types/src/v4/webapp/manifest/sapUiPageV4.d.ts.map +1 -1
  73. package/dist/types/src/v4/webapp/manifest/sapUiPageV4.js +2 -2
  74. package/dist/types/src/v4/webapp/manifest/sapUiPageV4.js.map +1 -1
  75. package/package.json +3 -3
@@ -9,6 +9,7 @@ const common_1 = require("../../common");
9
9
  * Thereby, we assume that such a property always corresponds to a control property (with same name) that can be changed via a flex change
10
10
  * The function will derive the information about the flex change that should be created (or the information that no flex change is needed)
11
11
  * for this property and add it to the list.
12
+ * Note: Currently we assume that conversion exits are only used for manifest based properties. Hence, no extra logic for conversion exits is needed here.
12
13
  *
13
14
  * @param propertyDefinition - definition of the property in the page specific schema
14
15
  * @param value - the value for the property according to the config object that is currently exported
@@ -17,7 +18,6 @@ const common_1 = require("../../common");
17
18
  */
18
19
  function addFlexChangeInfoToList(propertyDefinition, value, propertyName, flexList) {
19
20
  const newValue = value === undefined ? null : value; // special logic for control properties which are not changed by flex
20
- // TODO: Add conversion exit logic
21
21
  const isBinding = typeof newValue === 'string' && newValue.startsWith('{');
22
22
  flexList.push({
23
23
  controlId: propertyDefinition[ux_specification_types_1.SchemaTag.controlId],
@@ -35,10 +35,14 @@ function addFlexChangeInfoToList(propertyDefinition, value, propertyName, flexLi
35
35
  * @param value - the value for the property in the config currently processed (undefined if the property is not present in the config)
36
36
  * @param oldValue - current value for the property in the manifest (resp. undefined if the property is not in the current manifest)
37
37
  * @param propertyDefinition - definition of the property in the current schema
38
- * @param globalTypeDefinitions - global type definitions that may be referred from within propertyDefinition
38
+ * @param globalInfoForExport - global information valid for the export process
39
39
  * @returns the value for the property in the modified manifest, resp. undefined when the property should be removed from the manifest.
40
40
  */
41
- function getValueForManifest(value, oldValue, propertyDefinition, globalTypeDefinitions) {
41
+ function getValueForManifest(value, oldValue, propertyDefinition, globalInfoForExport) {
42
+ if (propertyDefinition[ux_specification_types_1.SchemaTag.conversionExit]) {
43
+ // When a conversion exit has been defined for the property, let it do the job
44
+ return (0, utils_1.executeConversionExit)(false, globalInfoForExport.conversionExitProvider, propertyDefinition, value, globalInfoForExport.fragments, oldValue);
45
+ }
42
46
  // Special logic for string arrays. Note that the opposite logic is implemented in function getConfigRep in import.importPage.ts
43
47
  if (propertyDefinition.type === 'array' && propertyDefinition.items?.['type'] === 'string') {
44
48
  if (!Array.isArray(value) || value.length === 0) {
@@ -63,10 +67,11 @@ function getValueForManifest(value, oldValue, propertyDefinition, globalTypeDefi
63
67
  continue; // ignore properties defined as boolean (should not appear in our schemas anyway)
64
68
  }
65
69
  const refType = (0, common_1.getRefType)(childPropertyDefinition);
66
- childPropertyDefinition = (refType && globalTypeDefinitions[refType]) || childPropertyDefinition;
70
+ childPropertyDefinition =
71
+ (refType && globalInfoForExport.globalTypeDefinitions[refType]) || childPropertyDefinition;
67
72
  const oldChildValue = returnObject[childProperty];
68
73
  hasOldValueDefinedChildProperty = hasOldValueDefinedChildProperty || oldChildValue !== undefined;
69
- const newChildValue = getValueForManifest(value ? value[childProperty] : undefined, oldChildValue, childPropertyDefinition, globalTypeDefinitions);
74
+ const newChildValue = getValueForManifest(value ? value[childProperty] : undefined, oldChildValue, childPropertyDefinition, globalInfoForExport);
70
75
  if (newChildValue === undefined) {
71
76
  delete returnObject[childProperty];
72
77
  }
@@ -141,9 +146,9 @@ function isEmpty(obj) {
141
146
  * In the later case the property should (normally) be removed from the manifest.
142
147
  * @param target - the results of the export to be updated
143
148
  * @param propertyDefinition - definition of the property in the page specific schema
144
- * @param globalTypeDefinitions - global type definitions that may be referred from within propertyDefinition
149
+ * @param globalInfoForExport - global information valid for the export process
145
150
  */
146
- function applyManifestChange(fullManifestPath, value, target, propertyDefinition, globalTypeDefinitions) {
151
+ function applyManifestChange(fullManifestPath, value, target, propertyDefinition, globalInfoForExport) {
147
152
  let manifestSection = target.manifest; // will be used to step down in the hierarchy of the manifest to the parent of the target property
148
153
  const lengthToParent = fullManifestPath.length - 1;
149
154
  const finalProperty = fullManifestPath[lengthToParent]; // name of the property which should be updated
@@ -164,7 +169,7 @@ function applyManifestChange(fullManifestPath, value, target, propertyDefinition
164
169
  });
165
170
  // If the length of backPath is lengthToParent the parent object already exists in the manifest (and is an object). So we (potentially) have an old value for the target property
166
171
  const oldValue = backPath.length === lengthToParent ? manifestSection[finalProperty] : undefined;
167
- const newValue = getValueForManifest(value, oldValue, propertyDefinition, globalTypeDefinitions);
172
+ const newValue = getValueForManifest(value, oldValue, propertyDefinition, globalInfoForExport);
168
173
  if (!isDifferent(newValue, oldValue)) {
169
174
  return; // nothing to do
170
175
  }
@@ -205,9 +210,9 @@ function applyManifestChange(fullManifestPath, value, target, propertyDefinition
205
210
  * @param target - the results of the export to be updated
206
211
  * @param property - name of the property to be handled
207
212
  * @param propertyDefinition - definition of the property in the page specific schema
208
- * @param globalTypeDefinitions - global type definitions that may be referred from within propertyDefinition
213
+ * @param globalInfoForExport - global information valid for the export process
209
214
  */
210
- function transferConfigPropertyToExportResults(source, target, property, propertyDefinition, globalTypeDefinitions) {
215
+ function transferConfigPropertyToExportResults(source, target, property, propertyDefinition, globalInfoForExport) {
211
216
  const sourcePart = source?.[property];
212
217
  const artifactType = propertyDefinition[ux_specification_types_1.SchemaTag.artifactType];
213
218
  // We distinguish three cases:
@@ -235,14 +240,14 @@ function transferConfigPropertyToExportResults(source, target, property, propert
235
240
  manifestPath = manifestPath.concat([property]);
236
241
  }
237
242
  }
238
- applyManifestChange(manifestPath, sourcePart, target, propertyDefinition, globalTypeDefinitions);
243
+ applyManifestChange(manifestPath, sourcePart, target, propertyDefinition, globalInfoForExport);
239
244
  }
240
245
  else {
241
246
  // Note: inline type definitions currently not supported
242
247
  const refType = (0, common_1.getRefType)(propertyDefinition);
243
- const refTypeDefinition = refType ? globalTypeDefinitions[refType] : undefined;
248
+ const refTypeDefinition = refType ? globalInfoForExport.globalTypeDefinitions[refType] : undefined;
244
249
  if ((0, utils_1.isDefinition)(refTypeDefinition)) {
245
- transferConfigToExportResults(sourcePart, target, refTypeDefinition, globalTypeDefinitions);
250
+ transferConfigToExportResults(sourcePart, target, refTypeDefinition, globalInfoForExport);
246
251
  }
247
252
  }
248
253
  }
@@ -258,9 +263,9 @@ function transferConfigPropertyToExportResults(source, target, property, propert
258
263
  * @param source - the section of the config to be transferred
259
264
  * @param target - the results of the export to be updated
260
265
  * @param definition - schema element describing the section of the config currently processed
261
- * @param globalTypeDefinitions - global type definitions that may be referred from within definition
266
+ * @param globalInfoForExport - global information valid for the export process
262
267
  */
263
- function transferConfigToExportResults(source, target, definition, globalTypeDefinitions) {
268
+ function transferConfigToExportResults(source, target, definition, globalInfoForExport) {
264
269
  const properties = definition.properties || {};
265
270
  // Perform the update for all available properties
266
271
  for (const property in properties) {
@@ -268,7 +273,7 @@ function transferConfigToExportResults(source, target, definition, globalTypeDef
268
273
  const propertyDefinition = definition.properties[property];
269
274
  if ((0, utils_1.isDefinition)(propertyDefinition)) {
270
275
  // ignore properties that are null or boolean (should not occur in our schemas anyway)
271
- transferConfigPropertyToExportResults(source, target, property, propertyDefinition, globalTypeDefinitions);
276
+ transferConfigPropertyToExportResults(source, target, property, propertyDefinition, globalInfoForExport);
272
277
  }
273
278
  }
274
279
  }
@@ -293,6 +298,11 @@ function exportPage(inParameters) {
293
298
  };
294
299
  return result;
295
300
  });
301
+ const globalInfoForExport = {
302
+ globalTypeDefinitions,
303
+ conversionExitProvider: inParameters.conversionExitProvider,
304
+ fragments: fragmentResults
305
+ };
296
306
  // TODO: Check whether property 'views' needs to be initialized as well
297
307
  const returnObject = {
298
308
  manifest: structuredClone(inParameters.manifest),
@@ -301,7 +311,7 @@ function exportPage(inParameters) {
301
311
  fragments: fragmentResults
302
312
  };
303
313
  // Adapt returnObject according to the state of the config. This is driven by the page specific schema.
304
- transferConfigToExportResults(config, returnObject, inParameters.jsonSchema, globalTypeDefinitions);
314
+ transferConfigToExportResults(config, returnObject, inParameters.jsonSchema, globalInfoForExport);
305
315
  return returnObject;
306
316
  }
307
317
  //# sourceMappingURL=exportPageGeneric.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"exportPageGeneric.js","sourceRoot":"","sources":["../../../../../../src/sync/v2/export/exportPageGeneric.ts"],"names":[],"mappings":";;AAuYA,gCAuBC;AA9YD,wEAAuF;AAEvF,oCAAwC;AACxC,yCAA0C;AAwD1C;;;;;;;;;;GAUG;AACH,SAAS,uBAAuB,CAC5B,kBAA8B,EAC9B,KAAc,EACd,YAAoB,EACpB,QAAoB;IAEpB,MAAM,QAAQ,GAAG,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,qEAAqE;IAC1H,kCAAkC;IAClC,MAAM,SAAS,GAAG,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IAC3E,QAAQ,CAAC,IAAI,CAAC;QACV,SAAS,EAAE,kBAAkB,CAAC,kCAAS,CAAC,SAAS,CAAC;QAClD,WAAW,EAAE,kBAAkB,CAAC,kCAAS,CAAC,WAAW,CAAC;QACtD,YAAY;QACZ,QAAQ;QACR,SAAS;KACZ,CAAC,CAAC;AACP,CAAC;AAED;;;;;;;;;;GAUG;AACH,SAAS,mBAAmB,CACxB,KAAc,EACd,QAAiB,EACjB,kBAA8B,E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AAe,EAAE,wCAAe,CAAC,QAAQ;SAC5C,CAAC;QACF,OAAO,MAAM,CAAC;IAClB,CAAC,CAAC,CAAC;IACH,MAAM,mBAAmB,GAAG;QACxB,qBAAqB;QACrB,sBAAsB,EAAE,YAAY,CAAC,sBAAsB;QAC3D,SAAS,EAAE,eAAe;KAC7B,CAAC;IAEF,uEAAuE;IACvE,MAAM,YAAY,GAAG;QACjB,QAAQ,EAAE,eAAe,CAAC,YAAY,CAAC,QAAQ,CAAC;QAChD,uBAAuB,EAAE,wCAAe,CAAC,QAAQ;QACjD,QAAQ,EAAE,EAAgB;QAC1B,SAAS,EAAE,eAAe;KAC7B,CAAC;IACF,uGAAuG;IACvG,6BAA6B,CAAC,MAAM,EAAE,YAAY,EAAE,YAAY,CAAC,UAAU,EAAE,mBAAmB,CAAC,CAAC;IAClG,OAAO,YAAY,CAAC;AACxB,CAAC"}
@@ -0,0 +1,118 @@
1
+ /**
2
+ * @file This file contains helper functions for generating page specific schemas that are used in the context of manifest properties.
3
+ * The functionality is implicitly tested by the more complex unit-tests for generic schema generation and generic import in test-folder unit/genericSchemaHandling.
4
+ */
5
+ import type { Definition } from 'typescript-json-schema';
6
+ import type { SyncRule, GenerateAppSchemaParameters, ProcessingRule, AccessorPath, SchemaHandlingParams, ReferenceAdaptationInfo } from '@sap/ux-specification-types';
7
+ import type { ExtensionLogger } from '../../..';
8
+ /**
9
+ * Type check for properties coming from the manifest.
10
+ *
11
+ * @param parent - the parent object in manifest which may contain the property.
12
+ * @param propertyName - name of the property name to be checked
13
+ * @param logger - a logger which may receive the error message in case a type error is detected
14
+ * @param expectedType - the expected type of the value of the property (if it is not undefined)
15
+ * @param mandatory - specifies handling of null and undefined: If parent is null this is always considered an error.
16
+ * undefined value for parent or its specified property is considered an error when parameter mandatory is true.
17
+ * null value for the specified property is considered an error when mandatory is true or the expected type is not 'object'.
18
+ * @returns the information whether a type error was detected.
19
+ */
20
+ export declare function hasPropertyTypeError(parent: unknown, propertyName: string, logger?: ExtensionLogger, expectedType?: string, mandatory?: boolean): boolean;
21
+ /**
22
+ * This symbol is used to indicate that a property is not allowed in the current context and that it should be hidden without any explanation.
23
+ */
24
+ export declare const DISALLOWED_WITHOUT_EXPLANATION: unique symbol;
25
+ /**
26
+ * An instance of this type describes whether a property is allowed in the current context or not.
27
+ * A faulty instance of this type expresses that the property is allowed in the current context.
28
+ * A non-faulty string instance expresses that the property is not allowed in the current context.
29
+ * Moreover, it contains the human readable reason why the property is not allowed.
30
+ * The special value DISALLOWED_WITHOUT_EXPLANATION indicates that the property is not allowed in the current context
31
+ * and that it should be hidden without any explanation.
32
+ */
33
+ export type DisallowedSpecification = string | typeof DISALLOWED_WITHOUT_EXPLANATION;
34
+ /**
35
+ * Helper function to be called within elementAdapters of syncRules.
36
+ * The function should be called when a property defined in the generic schema is not valid
37
+ * for the page the specific schema is currently generated for.
38
+ * We distinguish two cases:
39
+ * - The property is present in the manifest (although it should not)
40
+ * - The property is not present in the manifest (as expected)
41
+ * In the first case the corresponding property should still be present in the schema.
42
+ * However, a warning message is added to the schema in order to make the user aware of this inconsistency.
43
+ * In the second case the property should not be shown to the user. So, preferably we would
44
+ * remove the property from the schema.
45
+ * However, this is currently not possible due to a flaw in the undo/redo logic which results in schemas
46
+ * being used to process the export that do not exactly fit to the current state of the config.
47
+ * For these cases we need the manifest path which is stored with the definition of the property in the schema.
48
+ * Therefore, we set the hidden flag of the property to true. This will be changed as soon as the undo/redo logic has been refactored.
49
+ *
50
+ * @param disallowedReason - The truthy description how the disallowed property should be handled
51
+ * @param element - the element in the schema representing the property
52
+ * @param value - the value of the property in the manifest
53
+ * @param manifestPath - the path to the property in the manifest
54
+ * @returns the ProcessingRule for element, resp. undefined if the element should not be removed from the page specific schema.
55
+ * Note that the second case will only occur after the refactoring of the undo/redo logic.
56
+ */
57
+ export declare function handleDisallowedProperty(disallowedReason: DisallowedSpecification, element: Definition, value: unknown, manifestPath: AccessorPath): ProcessingRule | undefined;
58
+ /**
59
+ * Instances of this type are used during page specific schema generation. They specify how to deal with a specific manifest property.
60
+ * Instances of this type should be provided by instances of type ManifestAnalyzer (passed to function getSyncRuleForManifestProperty).
61
+ *
62
+ * @property manifestPath - specifies where the content for this property should be located within the manifest
63
+ * @property disallowedReason - faulty when the property is valid for the page. Otherwise describes how to deal with the disallowed property if it is present in the manifest.
64
+ */
65
+ export type ManifestRule = {
66
+ manifestPath: AccessorPath;
67
+ disallowedReason?: DisallowedSpecification;
68
+ };
69
+ /**
70
+ * An instance of this type provides a possibility to obtain a ManifestRule. ManifestAnalyzers should be provided by users of function getSyncRuleForManifestProperty.
71
+ *
72
+ * @param element - the element in the schema representing the property to be analyzed
73
+ * @param schemaHandlingParams - information provided by the hierarchy level above of the schema generation process
74
+ * @param generateParameters - input parameters for the schema generation process
75
+ * @returns a ManifestRule which specifies how to deal with the manifest property
76
+ */
77
+ export type ManifestAnalyzer = (element: Definition, schemaHandlingParams: SchemaHandlingParams, generateParameters: GenerateAppSchemaParameters) => ManifestRule;
78
+ /**
79
+ * An instance of this type is called within an instance of type ElementAdapter.
80
+ * Thereby, the schema element it is working on represents a manifest property.
81
+ * The function is called with the same parameters as an instance of type ElementAdapter.
82
+ * The only difference is that the function is called with an additional parameter 'value' which contains the value of the property in the manifest.
83
+ * The task of this function is to adapt the schema element for the page specific schema (if such an adaptation is necessary).
84
+ *
85
+ * @param element - same as in type ElementAdapter. It represents a manifest property.
86
+ * @param schemaHandlingParams - same as in type ElementAdapter
87
+ * @param generateParameters - same as in type ElementAdapter
88
+ * @param value - the value of the property in the manifest
89
+ * @returns a ProcessingRule which specifies how to deal with the manifest property
90
+ */
91
+ type ElementAdapterExtended = (element: Definition, schemaHandlingParams: SchemaHandlingParams, generateParameters: GenerateAppSchemaParameters, value: unknown) => void;
92
+ /**
93
+ * An instance of this type is called within an instance of type ElementAdapter.
94
+ * Thereby, the schema element it is working on represents a manifest property.
95
+ * The function is called with the same parameters as an instance of type ElementAdapter.
96
+ * The only difference is that the parameter 'element' is not passed to the function.
97
+ * The task of this function is to provide the ReferenceAdaptationInfo which should be included
98
+ * in the ProcessingRule provided by the ElementAdapter (if an adaptation of the reference is necessary).
99
+ *
100
+ * @param schemaHandlingParams - same as in type ElementAdapter
101
+ * @param generateParameters - same as in type ElementAdapter
102
+ * @returns the ReferenceAdaptationInfo to be included in the ProcessingRule if necessary
103
+ */
104
+ export type ReferenceAdaptationProvider = (schemaHandlingParams: SchemaHandlingParams, generateParameters: GenerateAppSchemaParameters) => ReferenceAdaptationInfo | undefined;
105
+ /**
106
+ * This function can be used to generate a SyncRule for a manifest property that may be omitted in the page specific schema
107
+ * depending on the context of the page.
108
+ *
109
+ * @param property - the name of the property in the manifest the SyncRule should be generated for
110
+ * @param analyze - provides the ManifestRule for the property
111
+ * @param adapt - an optional function that can be used to adapt the schema element representing the manifest property
112
+ * @param provideReferenceAdaptation - an optional function that can be used to provide the ReferenceAdaptationInfo for the manifest property
113
+ * @param expectedType - the expected type of the value of the property (if it is not undefined)
114
+ * @returns the SyncRule for the manifest property
115
+ */
116
+ export declare function getSyncRuleForManifestProperty(property: string, analyze: ManifestAnalyzer, adapt?: ElementAdapterExtended, provideReferenceAdaptation?: ReferenceAdaptationProvider, expectedType?: string): SyncRule;
117
+ export {};
118
+ //# sourceMappingURL=manifestPropertyUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifestPropertyUtils.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/v2/generate/manifestPropertyUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EACR,QAAQ,EACR,2BAA2B,EAC3B,cAAc,EACd,YAAY,EACZ,oBAAoB,EACpB,uBAAuB,EAC1B,MAAM,6BAA6B,CAAC;AAGrC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAKhD;;;;;;;;;;;GAWG;AACH,wBAAgB,oBAAo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AC9B,0BAA0B,CAAC,EAAE,2BAA2B,EACxD,YAAY,CAAC,EAAE,MAAM,GACtB,QAAQ,CAwCV"}
@@ -0,0 +1,151 @@
1
+ "use strict";
2
+ /**
3
+ * @file This file contains helper functions for generating page specific schemas that are used in the context of manifest properties.
4
+ * The functionality is implicitly tested by the more complex unit-tests for generic schema generation and generic import in test-folder unit/genericSchemaHandling.
5
+ */
6
+ var __importDefault = (this && this.__importDefault) || function (mod) {
7
+ return (mod && mod.__esModule) ? mod : { "default": mod };
8
+ };
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.DISALLOWED_WITHOUT_EXPLANATION = void 0;
11
+ exports.hasPropertyTypeError = hasPropertyTypeError;
12
+ exports.handleDisallowedProperty = handleDisallowedProperty;
13
+ exports.getSyncRuleForManifestProperty = getSyncRuleForManifestProperty;
14
+ const ux_specification_types_1 = require("@sap/ux-specification-types");
15
+ const extensionLogger_1 = require("../../../extensionLogger");
16
+ const i18next_1 = __importDefault(require("i18next"));
17
+ const utils_1 = require("../utils");
18
+ /**
19
+ * Type check for properties coming from the manifest.
20
+ *
21
+ * @param parent - the parent object in manifest which may contain the property.
22
+ * @param propertyName - name of the property name to be checked
23
+ * @param logger - a logger which may receive the error message in case a type error is detected
24
+ * @param expectedType - the expected type of the value of the property (if it is not undefined)
25
+ * @param mandatory - specifies handling of null and undefined: If parent is null this is always considered an error.
26
+ * undefined value for parent or its specified property is considered an error when parameter mandatory is true.
27
+ * null value for the specified property is considered an error when mandatory is true or the expected type is not 'object'.
28
+ * @returns the information whether a type error was detected.
29
+ */
30
+ function hasPropertyTypeError(parent, propertyName, logger, expectedType = 'string', mandatory = false) {
31
+ let hasTypeError;
32
+ if (parent === undefined) {
33
+ hasTypeError = mandatory;
34
+ }
35
+ else if (parent === null || typeof parent !== 'object') {
36
+ hasTypeError = true;
37
+ }
38
+ else {
39
+ const propValue = parent[propertyName];
40
+ if (propValue === undefined) {
41
+ hasTypeError = mandatory;
42
+ }
43
+ else {
44
+ hasTypeError = typeof propValue !== expectedType || (propValue === null && mandatory);
45
+ }
46
+ }
47
+ if (hasTypeError) {
48
+ (0, extensionLogger_1.log)(logger, {
49
+ severity: "error" /* LogSeverity.Error */,
50
+ message: i18next_1.default.t('TYPEERROR', { propertyName: propertyName, expectedType: expectedType })
51
+ });
52
+ }
53
+ return hasTypeError;
54
+ }
55
+ /**
56
+ * This symbol is used to indicate that a property is not allowed in the current context and that it should be hidden without any explanation.
57
+ */
58
+ exports.DISALLOWED_WITHOUT_EXPLANATION = Symbol('Property is suppressed without explanation');
59
+ /**
60
+ * Helper function to be called within elementAdapters of syncRules.
61
+ * The function should be called when a property defined in the generic schema is not valid
62
+ * for the page the specific schema is currently generated for.
63
+ * We distinguish two cases:
64
+ * - The property is present in the manifest (although it should not)
65
+ * - The property is not present in the manifest (as expected)
66
+ * In the first case the corresponding property should still be present in the schema.
67
+ * However, a warning message is added to the schema in order to make the user aware of this inconsistency.
68
+ * In the second case the property should not be shown to the user. So, preferably we would
69
+ * remove the property from the schema.
70
+ * However, this is currently not possible due to a flaw in the undo/redo logic which results in schemas
71
+ * being used to process the export that do not exactly fit to the current state of the config.
72
+ * For these cases we need the manifest path which is stored with the definition of the property in the schema.
73
+ * Therefore, we set the hidden flag of the property to true. This will be changed as soon as the undo/redo logic has been refactored.
74
+ *
75
+ * @param disallowedReason - The truthy description how the disallowed property should be handled
76
+ * @param element - the element in the schema representing the property
77
+ * @param value - the value of the property in the manifest
78
+ * @param manifestPath - the path to the property in the manifest
79
+ * @returns the ProcessingRule for element, resp. undefined if the element should not be removed from the page specific schema.
80
+ * Note that the second case will only occur after the refactoring of the undo/redo logic.
81
+ */
82
+ function handleDisallowedProperty(disallowedReason, element, value, manifestPath) {
83
+ delete element.$ref;
84
+ if (value === undefined || disallowedReason === exports.DISALLOWED_WITHOUT_EXPLANATION) {
85
+ element[ux_specification_types_1.SchemaTag.hidden] = true;
86
+ }
87
+ else {
88
+ if (typeof value === 'object') {
89
+ element.type = 'object';
90
+ }
91
+ element[ux_specification_types_1.SchemaTag.messages] = [
92
+ {
93
+ text: disallowedReason,
94
+ deletable: true,
95
+ type: ux_specification_types_1.PropertyMessageType.Warning
96
+ }
97
+ ];
98
+ }
99
+ return {
100
+ manifestPath
101
+ };
102
+ }
103
+ /**
104
+ * This function can be used to generate a SyncRule for a manifest property that may be omitted in the page specific schema
105
+ * depending on the context of the page.
106
+ *
107
+ * @param property - the name of the property in the manifest the SyncRule should be generated for
108
+ * @param analyze - provides the ManifestRule for the property
109
+ * @param adapt - an optional function that can be used to adapt the schema element representing the manifest property
110
+ * @param provideReferenceAdaptation - an optional function that can be used to provide the ReferenceAdaptationInfo for the manifest property
111
+ * @param expectedType - the expected type of the value of the property (if it is not undefined)
112
+ * @returns the SyncRule for the manifest property
113
+ */
114
+ function getSyncRuleForManifestProperty(property, analyze, adapt, provideReferenceAdaptation, expectedType) {
115
+ return {
116
+ manifest: {},
117
+ elementAdapter: function (element, schemaHandlingParams, generateParameters) {
118
+ const { manifestPath, disallowedReason } = analyze(element, schemaHandlingParams, generateParameters);
119
+ if (disallowedReason === exports.DISALLOWED_WITHOUT_EXPLANATION) {
120
+ return; // Suppress the property even if it is present in the current manifest -> no further processing needed
121
+ }
122
+ // What is the state of the property in the current manifest?
123
+ const { value, parent } = (0, utils_1.getManifestPropertyByPath)(generateParameters.manifest, manifestPath, property);
124
+ if (disallowedReason) {
125
+ return handleDisallowedProperty(disallowedReason, element, value, manifestPath);
126
+ }
127
+ // The property is applicable.
128
+ // But it can still be that its current content does not have the correct type.
129
+ // Type errors are logged. Note that the user can also see these errors.
130
+ const hasTypeErrors = expectedType
131
+ ? hasPropertyTypeError(parent, property, generateParameters.logger, expectedType)
132
+ : false;
133
+ if (hasTypeErrors && (expectedType === 'object' || typeof value === 'object')) {
134
+ // either value in manifest is an object but should be scalar or it is scalar but should be an object.
135
+ // This inconsistency must be removed in the text file of the manifest -> do not provide this property at all
136
+ return;
137
+ }
138
+ if (adapt) {
139
+ adapt(element, schemaHandlingParams, generateParameters, value);
140
+ }
141
+ const referenceAdaptation = provideReferenceAdaptation
142
+ ? provideReferenceAdaptation(schemaHandlingParams, generateParameters)
143
+ : undefined;
144
+ return {
145
+ manifestPath,
146
+ referenceAdaptation
147
+ };
148
+ }
149
+ };
150
+ }
151
+ //# sourceMappingURL=manifestPropertyUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"manifestPropertyUtils.js","sourceRoot":"","sources":["../../../../../../src/sync/v2/generate/manifestPropertyUtils.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;AA8BH,oDA2BC;AAwCD,4DAwBC;AA4ED,wEA8CC;AAxOD,wEAA0F;AAG1F,8DAA+C;AAC/C,sDAA8B;AAC9B,oCAAqD;AAErD;;;;;;;;;;;GAWG;AACH,SAAgB,oBAAoB,CAChC,MAAe,EACf,YAAoB,EACpB,MAAwB,EACxB,eAAuB,QAAQ,EAC/B,YAAqB,KAAK;IAE1B,IAAI,YAAqB,CAAC;IAC1B,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACvB,YAAY,GAAG,SAAS,CAAC;IAC7B,CAAC;SAAM,IAAI,MAAM,KAAK,IAAI,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;QACvD,YAAY,GAAG,IAAI,CAAC;IACxB,CAAC;SAAM,CAAC;QACJ,MAAM,SAAS,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;QACvC,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;YAC1B,YAAY,GAAG,SAAS,CAAC;QAC7B,CAAC;aAAM,CAAC;YACJ,YAAY,GAAG,OAAO,SAAS,KAAK,YAAY,IAAI,CAAC,SAAS,KAAK,IAAI,IAAI,SAAS,CAAC,CAAC;QAC1F,CAAC;IACL,CAAC;IACD,IAAI,YAAY,EAAE,CAAC;QACf,IAAA,qBAAG,EAAC,MAAM,EAAE;YACR,QAAQ,iCAAmB;YAC3B,OAAO,EAAE,iBAAO,CAAC,CAA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AAC,sGAAsG;YAClH,CAAC;YACD,6DAA6D;YAC7D,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,IAAA,iCAAyB,EAAC,kBAAkB,CAAC,QAAQ,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC;YACzG,IAAI,gBAAgB,EAAE,CAAC;gBACnB,OAAO,wBAAwB,CAAC,gBAAgB,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC;YACpF,CAAC;YACD,8BAA8B;YAC9B,+EAA+E;YAC/E,wEAAwE;YACxE,MAAM,aAAa,GAAG,YAAY;gBAC9B,CAAC,CAAC,oBAAoB,CAAC,MAAM,EAAE,QAAQ,EAAE,kBAAkB,CAAC,MAAM,EAAE,YAAY,CAAC;gBACjF,CAAC,CAAC,KAAK,CAAC;YACZ,IAAI,aAAa,IAAI,CAAC,YAAY,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,QAAQ,CAAC,EAAE,CAAC;gBAC5E,sGAAsG;gBACtG,6GAA6G;gBAC7G,OAAO;YACX,CAAC;YACD,IAAI,KAAK,EAAE,CAAC;gBACR,KAAK,CAAC,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,KAAK,CAAC,CAAC;YACpE,CAAC;YACD,MAAM,mBAAmB,GAAG,0BAA0B;gBAClD,CAAC,CAAC,0BAA0B,CAAC,oBAAoB,EAAE,kBAAkB,CAAC;gBACtE,CAAC,CAAC,SAAS,CAAC;YAChB,OAAO;gBACH,YAAY;gBACZ,mBAAmB;aACtB,CAAC;QACN,CAAC;KACJ,CAAC;AACN,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file provides a function that generically creates a page specific schema out of a generic schema for a page
2
+ * @file This file provides a function that generically creates a page specific schema out of a generic schema for a page
3
3
  * of a FE v2 app (function getAdaptedSchema).
4
4
  * In addition to that it exposes some generic helper functions that can be used to configure the generation process.
5
5
  * Unit tests for this class are located in test.unit.genericSchemaHandling.schemaAdaptation.test.ts.
@@ -4,8 +4,8 @@ exports.getAdaptedSchema = getAdaptedSchema;
4
4
  const common_1 = require("../../common");
5
5
  const ux_specification_types_1 = require("@sap/ux-specification-types");
6
6
  const decorators_1 = require("../../common/decoration/decorators");
7
- const utils_1 = require("./utils");
8
- const utils_2 = require("../utils");
7
+ const manifestPropertyUtils_1 = require("./manifestPropertyUtils");
8
+ const utils_1 = require("../utils");
9
9
  const i18n_1 = require("../../../i18n/i18n");
10
10
  /**
11
11
  * Checks whether a schema element contains an anyOf-property. If yes, all types directly or indirectly referred by one of the
@@ -295,15 +295,15 @@ function getAdaptedSchema(pageSpec, getGenericSchemaInfo, logger) {
295
295
  if (!templateType || templateType === ux_specification_types_1.TemplateType.OverviewPageV2) {
296
296
  return; // not supported (yet)
297
297
  }
298
- const manifestPath = (0, utils_2.getManifestPathFromPagePath)(pageSpec.pagePath, false);
299
- const { parent: pageDefinition } = (0, utils_2.getManifestPropertyByPath)(pageSpec.manifest, manifestPath);
298
+ const manifestPath = (0, utils_1.getManifestPathFromPagePath)(pageSpec.pagePath, false);
299
+ const { parent: pageDefinition } = (0, utils_1.getManifestPropertyByPath)(pageSpec.manifest, manifestPath);
300
300
  if (!pageDefinition) {
301
301
  return; // no page definition found at the specified path
302
302
  }
303
303
  // Now we know that pageDefinition is an object. Check basic prerequisites on its content:
304
304
  const componentOfPage = pageDefinition['component'];
305
- if ((0, utils_1.hasPropertyTypeError)(pageDefinition, 'entitySet', logger, 'string', true) ||
306
- (0, utils_1.hasPropertyTypeError)(componentOfPage, 'name', logger, 'string', true)) {
305
+ if ((0, manifestPropertyUtils_1.hasPropertyTypeError)(pageDefinition, 'entitySet', logger, 'string', true) ||
306
+ (0, manifestPropertyUtils_1.hasPropertyTypeError)(componentOfPage, 'name', logger, 'string', true)) {
307
307
  return; // not a valid page definition
308
308
  }
309
309
  const entitySet = pageDefinition['entitySet']; // type ensured above
@@ -1 +1 @@
1
- {"version":3,"file":"schemaAdaptation.js","sourceRoot":"","sources":["../../../../../../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CAAC,CAAC;IAChD,MAAM,SAAS,GAAG,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,aAAa,EAAE,SAAS,CAAC,CAAC;IACtE,MAAM,QAAQ,GAAG;QACb,KAAK,EAAE,QAAQ,CAAC,KAAK;QACrB,aAAa;QACb,SAAS;QACT,SAAS;QACT,QAAQ,EAAE,QAAQ,CAAC,QAAQ;KAC9B,CAAC;IACF,MAAM,MAAM,GAAG;QACX,QAAQ;KACX,CAAC;IACF,MAAM,kBAAkB,GAAG;QACvB,YAAY;QACZ,QAAQ,EAAE,QAAQ,CAAC,QAAQ;QAC3B,UAAU;QACV,oBAAoB,EAAE,6CAAoB,CAAC,EAAE;QAC7C,SAAS,EAAE,mBAAmB;QAC9B,SAAS,EAAE,QAAQ,CAAC,SAAS;QAC7B,MAAM;QACN,UAAU,EAAE,mBAAmB,CAAC,UAAU;KAC7C,CAAC;IAEF,MAAM,WAAW,GAAG;QAChB,KAAK,EAAE,QAAQ,CAAC,WAA4C,EAAE,4DAA4D;QAC1H,iBAAiB,EAAE,IAAI,GAAG,EAAU;KACvC,CAAC;IACF,qDAAqD;IACrD,iJAAiJ;IACjJ,aAAa,CAAC,kBAAkB,EAAE,MAAM,EAAE,gBAAgB,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;IACnF,qFAAqF;IACrF,KAAK,MAAM,QAAQ,IAAI,QAAQ,CAAC,WAAW,EAAE,CAAC;QAC1C,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC/C,OAAO,QAAQ,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QAC1C,CAAC;IACL,CAAC;IACD,OAAO,QAAQ,CAAC;AACpB,CAAC"}
@@ -6,7 +6,6 @@ import type { LineItem, SelectionFields } from '@sap-ux/vocabularies-types/vocab
6
6
  import type * as Edm from '@sap-ux/vocabularies-types/Edm';
7
7
  import type { EntityTypeAnnotations_UI } from '@sap-ux/vocabularies-types/vocabularies/UI_Edm';
8
8
  import { ActionTypeV2 } from '../types';
9
- import type { ExtensionLogger } from '../../..';
10
9
  /**
11
10
  * Processes a LineItem record of type DataFieldForAction and DataFieldForIntentBasedNavigation during app schema generation
12
11
  * @param appSchema - the app specific schema that shall get enhanced
@@ -141,17 +140,4 @@ export declare function getUIAnnotationForEntitySet(generateParameters: Generate
141
140
  entityType?: Edm.EntityType;
142
141
  uIAnnotations?: EntityTypeAnnotations_UI;
143
142
  };
144
- /**
145
- * Type check for properties coming from the manifest.
146
- *
147
- * @param parent - the parent object in manifest which may contain the property.
148
- * @param propertyName - name of the property name to be checked
149
- * @param logger - a logger which may receive the error message in case a type error is detected
150
- * @param expectedType - the expected type of the value of the property (if it is not undefined)
151
- * @param mandatory - specifies handling handling of null and undefined: If parent is null this is always considered an error.
152
- * undefined value for parent or its specified property is considered an error when parameter mandatory is true.
153
- * null value for the specified property is considered an error when mandatory is true or the expected type is not 'object'.
154
- * @returns the information whether a type error was detected.
155
- */
156
- export declare function hasPropertyTypeError(parent: unknown, propertyName: string, logger?: ExtensionLogger, expectedType?: string, mandatory?: boolean): boolean;
157
143
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/v2/generate/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AACjF,OAAO,KAAK,EACR,EAAE,EACF,UAAU,EACV,UAAU,EACV,QAAQ,EAER,2BAA2B,EAC9B,MAAM,6BAA6B,CAAC;AASrC,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxF,OAAO,KAAK,EAA0B,QAAQ,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAkBpH,OAAO,KAAK,KAAK,GA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