@sap/ux-specification 1.96.12 → 1.96.15

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 (40) hide show
  1. package/CHANGELOG.md +90 -12
  2. package/dist/documentation/v2/v2-AnalyticalListPage.html +1 -1
  3. package/dist/documentation/v2/v2-ApplicationV2.html +1 -1
  4. package/dist/documentation/v2/v2-ListReport.html +1 -1
  5. package/dist/documentation/v2/v2-ObjectPage.html +1 -1
  6. package/dist/documentation/v2/v2-OverviewPage.html +1 -1
  7. package/dist/documentation/v4/v4-ApplicationV4.html +1 -1
  8. package/dist/documentation/v4/v4-ListReport.html +1 -1
  9. package/dist/documentation/v4/v4-ObjectPage.html +1 -1
  10. package/dist/index-min.js +1 -1
  11. package/dist/schemas/v2/AnalyticalListPageConfig.json +1 -0
  12. package/dist/schemas/v2/ListReportConfig.json +1 -0
  13. package/dist/schemas/v2/ObjectPageConfig.json +1 -0
  14. package/dist/schemas/v4/ListReportConfig.json +3 -3
  15. package/dist/src/apiTypes.d.ts +3 -3
  16. package/dist/src/specification/v2/controls/Facets.d.ts +2 -1
  17. package/dist/src/specification/v2/controls/ObjectPageSection.d.ts +4 -2
  18. package/dist/src/specification/v2/controls/Table.d.ts +1 -0
  19. package/dist/src/specification/v2/controls/index.d.ts +1 -0
  20. package/dist/src/specification/v4/controls/Table.d.ts +2 -2
  21. package/dist/src/specification/v4/pages/ListReportConfig.d.ts +1 -1
  22. package/dist/src/sync/common/appProvider.d.ts +1 -1
  23. package/dist/src/sync/common/decoration/decorators.d.ts +2 -2
  24. package/dist/src/sync/common/generate/objectPage.d.ts +8 -9
  25. package/dist/src/sync/common/generate/utils.d.ts +16 -8
  26. package/dist/src/sync/common/import/utils.d.ts +6 -0
  27. package/dist/src/sync/common/importProject.d.ts +2 -3
  28. package/dist/src/sync/common/types.d.ts +5 -2
  29. package/dist/src/sync/common/utils.d.ts +17 -15
  30. package/dist/src/sync/v2/application.d.ts +3 -3
  31. package/dist/src/sync/v2/export/controls/Fragment.d.ts +2 -1
  32. package/dist/src/sync/v2/generate/listReport.d.ts +3 -4
  33. package/dist/src/sync/v2/generate/utils.d.ts +7 -6
  34. package/dist/src/sync/v4/export/controls/Table.d.ts +1 -1
  35. package/dist/src/sync/v4/export/pages/ListReport.d.ts +1 -1
  36. package/dist/src/sync/v4/generate/listReport.d.ts +2 -2
  37. package/dist/src/sync/v4/types.d.ts +1 -1
  38. package/dist/src/sync/v4/utils/utils.d.ts +12 -11
  39. package/dist/test/test-utils/utils.d.ts +1 -2
  40. package/package.json +7 -7
@@ -1,23 +1,23 @@
1
- import type { EntitySet } from '@sap-ux/annotation-converter';
2
1
  import type { GenerateAppSchemaParameters, SapUiAppPageV4 } from '../../../v4';
3
2
  import type { ExtensionLogger } from '../../..';
4
- import type { AnnotationTerm, ConverterOutput, EntityType, LineItem, DataFieldForActionAbstractTypes } from '@sap-ux/vocabularies-types';
3
+ import type { LineItem, DataFieldForActionAbstractTypes } from '@sap-ux/vocabularies-types/vocabularies/UI';
4
+ import type { AnnotationTerm, ConvertedMetadata, EntitySet, EntityType } from '@sap-ux/vocabularies-types';
5
5
  import { DefinitionName } from '../../../v4';
6
6
  import type { Definition } from 'typescript-json-schema';
7
7
  /**
8
- * Common function for enhancing the LineItems definiton of app schema by custom columns
8
+ * Common function for enhancing the LineItems definition of app schema by custom columns
9
9
  * @param appSchema - app-specific JSON schema
10
10
  * @param v4Page - actual page in the manifest
11
11
  * @param logger - logger for error messages
12
12
  * @param customColumnDefinitionName - custom column definition name
13
13
  * @param sectionId - identifier of the current object page section in schema
14
- * @param sectionIdInManfest - identifier of the current object page section in manifest
14
+ * @param sectionIdInManifest - identifier of the current object page section in manifest
15
15
  */
16
- export declare function addCustomColumnDefinition(appSchema: object, v4Page: SapUiAppPageV4, logger: ExtensionLogger, customColumnDefinitionName?: string, sectionId?: string, sectionIdInManfest?: string): void;
16
+ export declare function addCustomColumnDefinition(appSchema: object, v4Page: SapUiAppPageV4, logger: ExtensionLogger, customColumnDefinitionName?: string, sectionId?: string, sectionIdInManifest?: string): void;
17
17
  /**
18
18
  * Processes a LineItem record of type DataFieldForAction during app schema generation
19
19
  * @param appSchema - the app specific schema that shall get enhanced
20
- * @param entityType - the entity type as part of the AVT ConverterOutput
20
+ * @param entityType - the entity type as part of the AVT ConvertedMetadata
21
21
  * @param actions - actions definition in schema, parent object
22
22
  * @param lineItemPath - annotation path to the line item
23
23
  * @param lineItemRecord - actual record of the line item collection
@@ -28,20 +28,21 @@ export declare function handleActionRecord(appSchema: Definition, entityType: En
28
28
  * Adds the line item definition, columns and actions to the app schema (for the list report or an object page section comprising a table)
29
29
  * @param appSchema - the app specific schema that shall get enhanced
30
30
  * @param lineItemAnnotation - the UI.LineItem annotation, comprising all records
31
- * @param entityType - the entity type as part of the AVT ConverterOutput
32
- * @param {ConverterOutput} oDataServiceAVT - complete service information, as returned by Annotation Vocabularies Tool
33
- * @param lineItemId - in case of OP the paramter must be passed to distinguish the OP tables;
31
+ * @param entityType - the entity type as part of the AVT ConvertedMetadata
32
+ * @param {ConvertedMetadata} oDataServiceAVT - complete service information, as returned by Annotation Vocabularies Tool
33
+ * @param lineItemId - in case of OP the parameter must be passed to distinguish the OP tables;
34
34
  * in case of LR or ALP 'LineItems' is passed.
35
35
  * @param columnDefinitionName - name of the column definition, i.e. TableColumn or ObjectPageTableColumn
36
36
  * @param customColumnDefinitionName - name of the custom column definition
37
37
  */
38
- export declare function addLineItemsType(appSchema: Definition, lineItemAnnotation: AnnotationTerm<LineItem>, entityType: EntityType, oDataServiceAVT: ConverterOutput, lineItemId: string, columnDefinitionName?: string, customColumnDefinitionName?: string): void;
38
+ export declare function addLineItemsType(appSchema: Definition, lineItemAnnotation: AnnotationTerm<LineItem>, entityType: EntityType, oDataServiceAVT: ConvertedMetadata, lineItemId: string, columnDefinitionName?: string, customColumnDefinitionName?: string): void;
39
39
  /**
40
40
  * Adds an enum or value help to position > anchor of custom column
41
41
  * @param appSchema - app specific JSON schema
42
42
  * @param lineItemId - ID of the current line item in schema
43
43
  * @param v4Page - current page in manifest
44
44
  * @param positionName - ID of the definition of custom column position in schema
45
+ * @param sectionIdInManifest - identifier of the current object page section in manifest
45
46
  */
46
47
  export declare function addFragmentEnumForAnchor(appSchema: Definition, lineItemId: string, v4Page: SapUiAppPageV4, positionName?: DefinitionName, sectionIdInManifest?: string): void;
47
48
  /**
@@ -59,4 +60,4 @@ export declare function findPageV4(pages: SapUiAppPageV4[], pageName: string, en
59
60
  * @param {GenerateAppSchemaParameters} generateParameters - object comprising all input parameters
60
61
  * @returns the right definition name for the table in the schema
61
62
  */
62
- export declare function alignSchemaWithTemplateType(appSchema: Definition, generateParameters: GenerateAppSchemaParameters): string;
63
+ export declare function alignSchemaWithTemplateType(appSchema: Definition, generateParameters: GenerateAppSchemaParameters): DefinitionName.Table | DefinitionName.ALPTableView;
@@ -1,5 +1,4 @@
1
- import type { FileData } from '../../src';
2
- import type { ExtensionLogger } from '../../src';
1
+ import type { FileData, ExtensionLogger } from '../../src';
3
2
  import type { Location } from '../../src/extensionLogger';
4
3
  import type { ExportResults } from '../../src/sync/common';
5
4
  export declare class Logger implements ExtensionLogger {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/ux-specification",
3
- "version": "1.96.12",
3
+ "version": "1.96.15",
4
4
  "displayName": "SAP Fiori tools - Specification",
5
5
  "description": "SAP Fiori tools - Specification",
6
6
  "files": [
@@ -13,8 +13,8 @@
13
13
  "v4": "dist/specification/v4/index-min.js"
14
14
  },
15
15
  "engines": {
16
- "node": ">=12.22.5",
17
- "yarn": ">=1.22.5"
16
+ "node": ">=14.16.0",
17
+ "yarn": ">=1.22.18"
18
18
  },
19
19
  "scripts": {
20
20
  "clean": "rimraf ./dist ./schemas",
@@ -49,9 +49,9 @@
49
49
  "@sap-ux/fe-fpm-writer": "0.6.1"
50
50
  },
51
51
  "devDependencies": {
52
- "@sap-ux/annotation-converter": "0.3.39",
53
- "@sap-ux/edmx-parser": "0.3.39",
54
- "@sap-ux/vocabularies-types": "0.3.39",
52
+ "@sap-ux/annotation-converter": "0.5.7",
53
+ "@sap-ux/edmx-parser": "0.5.4",
54
+ "@sap-ux/vocabularies-types": "0.5.4",
55
55
  "@sapui5/ts-types-esm": "1.96.8",
56
56
  "@types/d3": "7.1.0",
57
57
  "@types/jest": "26.0.23",
@@ -122,4 +122,4 @@
122
122
  }
123
123
  ]
124
124
  }
125
- }
125
+ }