@sap/ux-specification 1.84.82 → 1.84.84

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 (73) hide show
  1. package/CHANGELOG.md +48 -4
  2. package/README.md +16 -17
  3. package/dist/documentation/runDocu-min.js +5 -5
  4. package/dist/documentation/runDocu-min.js.map +4 -4
  5. package/dist/documentation/styleDocu.css +2 -1
  6. package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
  7. package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
  8. package/dist/documentation/v2/v2-ListReport.html +2 -2
  9. package/dist/documentation/v2/v2-ObjectPage.html +2 -2
  10. package/dist/documentation/v2/v2-OverviewPage.html +2 -2
  11. package/dist/documentation/v4/v4-ApplicationV4.html +2 -2
  12. package/dist/documentation/v4/v4-ListReport.html +2 -2
  13. package/dist/documentation/v4/v4-ObjectPage.html +2 -2
  14. package/dist/index-min.js +44 -44
  15. package/dist/index-min.js.map +4 -4
  16. package/dist/package.json +5 -5
  17. package/dist/schemas/v2/ObjectPageConfig.json +113 -8
  18. package/dist/src/api.d.ts +20 -3
  19. package/dist/src/api.d.ts.map +1 -1
  20. package/dist/src/api.js +59 -4
  21. package/dist/src/api.js.map +1 -1
  22. package/dist/src/specification/schemaAccess.d.ts +1 -0
  23. package/dist/src/specification/schemaAccess.d.ts.map +1 -1
  24. package/dist/src/specification/schemaAccess.js +1 -0
  25. package/dist/src/specification/schemaAccess.js.map +1 -1
  26. package/dist/src/sync/common/utils.d.ts +17 -5
  27. package/dist/src/sync/common/utils.d.ts.map +1 -1
  28. package/dist/src/sync/common/utils.js +57 -13
  29. package/dist/src/sync/common/utils.js.map +1 -1
  30. package/dist/src/sync/v2/export/controls/Fragment.d.ts.map +1 -1
  31. package/dist/src/sync/v2/export/controls/Fragment.js +11 -2
  32. package/dist/src/sync/v2/export/controls/Fragment.js.map +1 -1
  33. package/dist/src/sync/v2/export/controls/ObjectPageHeader.d.ts +1 -0
  34. package/dist/src/sync/v2/export/controls/ObjectPageHeader.d.ts.map +1 -1
  35. package/dist/src/sync/v2/export/controls/ObjectPageHeader.js +10 -0
  36. package/dist/src/sync/v2/export/controls/ObjectPageHeader.js.map +1 -1
  37. package/dist/src/sync/v2/export/controls/ObjectPageHeaderSection.d.ts +20 -0
  38. package/dist/src/sync/v2/export/controls/ObjectPageHeaderSection.d.ts.map +1 -0
  39. package/dist/src/sync/v2/export/controls/ObjectPageHeaderSection.js +127 -0
  40. package/dist/src/sync/v2/export/controls/ObjectPageHeaderSection.js.map +1 -0
  41. package/dist/src/sync/v2/export/controls/index.d.ts +1 -0
  42. package/dist/src/sync/v2/export/controls/index.d.ts.map +1 -1
  43. package/dist/src/sync/v2/export/controls/index.js +1 -0
  44. package/dist/src/sync/v2/export/controls/index.js.map +1 -1
  45. package/dist/src/sync/v2/export/export.d.ts +3 -1
  46. package/dist/src/sync/v2/export/export.d.ts.map +1 -1
  47. package/dist/src/sync/v2/export/export.js +37 -14
  48. package/dist/src/sync/v2/export/export.js.map +1 -1
  49. package/dist/src/sync/v2/export/exportPage.d.ts +40 -4
  50. package/dist/src/sync/v2/export/exportPage.d.ts.map +1 -1
  51. package/dist/src/sync/v2/export/exportPage.js +106 -43
  52. package/dist/src/sync/v2/export/exportPage.js.map +1 -1
  53. package/dist/src/sync/v2/generate/objectPage.d.ts.map +1 -1
  54. package/dist/src/sync/v2/generate/objectPage.js +107 -14
  55. package/dist/src/sync/v2/generate/objectPage.js.map +1 -1
  56. package/dist/src/sync/v2/generate/utils.d.ts +9 -1
  57. package/dist/src/sync/v2/generate/utils.d.ts.map +1 -1
  58. package/dist/src/sync/v2/generate/utils.js +45 -26
  59. package/dist/src/sync/v2/generate/utils.js.map +1 -1
  60. package/dist/src/sync/v2/import/pages/objectPage.d.ts.map +1 -1
  61. package/dist/src/sync/v2/import/pages/objectPage.js +61 -8
  62. package/dist/src/sync/v2/import/pages/objectPage.js.map +1 -1
  63. package/dist/src/sync/v2/types.d.ts +10 -1
  64. package/dist/src/sync/v2/types.d.ts.map +1 -1
  65. package/dist/src/sync/v2/types.js +7 -0
  66. package/dist/src/sync/v2/types.js.map +1 -1
  67. package/dist/src/sync/v4/export/export.d.ts +12 -6
  68. package/dist/src/sync/v4/export/export.d.ts.map +1 -1
  69. package/dist/src/sync/v4/export/export.js +171 -134
  70. package/dist/src/sync/v4/export/export.js.map +1 -1
  71. package/dist/src/sync/v4/export/types.d.ts +4 -1
  72. package/dist/src/sync/v4/export/types.d.ts.map +1 -1
  73. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -12,12 +12,38 @@ This project adheres to [Semantic Versioning](http://semver.org/) and the change
12
12
 
13
13
  [NodeJS](https://nodejs.org/en/download/) Version `18.18.0` or higher
14
14
 
15
- ## [1.84.82] - 2024-02-08
15
+ ## [1.84.84] - 2024-03-07
16
16
 
17
17
  ### Added
18
18
 
19
- - OData V4:
20
- - View columns set as view nodes
19
+ - New API functions exportConfigEntityByPath and deleteConfigEntityByPath have been added that allow a selective export or deletion of a single property or section from a config.json. The additional parameter entityPath must be applied. The new functions are released for List Report, Object Page and Analytical List Page of OData V2 and V4.
20
+ - In the API result a change indicator is added that shows if the manifest was changed. In case of the new functions exportConfigEntityByPath and deleteConfigEntityByPath, only updated fragment files are returned (V2 flexibility changes are still returned completely due to compatibility, deletion is indicated by newValue = null).
21
+
22
+ ### Changed
23
+
24
+ - Actualization of the README file.
25
+
26
+ ### Removed
27
+
28
+ ### Deprecated
29
+
30
+ ### Fixed
31
+
32
+ - Update transitive dependencies
33
+
34
+ Upgrades:
35
+
36
+ - eslint to v8.57.0
37
+ - esbuild to v0.20.1
38
+
39
+ ## [1.84.83] - 2024-02-21
40
+
41
+ ### Added
42
+
43
+ - OData V2:
44
+ - Support of Header facets on Object Page
45
+ - UX adjustments of inplace documentation:
46
+ - Support for Screen Readers and Arrow Navigation
21
47
 
22
48
  ### Changed
23
49
 
@@ -27,6 +53,25 @@ This project adheres to [Semantic Versioning](http://semver.org/) and the change
27
53
 
28
54
  ### Fixed
29
55
 
56
+ - Update transitive dependencies
57
+
58
+ Upgrades:
59
+
60
+ - @sapui5/ts-types to 1.84.42
61
+ - @sap-ux/vocabularies-types to 0.10.5
62
+ - @sap-ux/annotation-converter to 0.8.6
63
+
64
+ Upgrades
65
+
66
+ ## [1.84.82] - 2024-02-08
67
+
68
+ ### Added
69
+
70
+ - OData V4:
71
+ - View columns set as view nodes
72
+
73
+ ### Fixed
74
+
30
75
  - Invalid object-like descriptions and keys had been generated into the app-specific schemas if DataFieldForIntentBasedNavigation was defined with a path reference
31
76
  - An exception happened during app schema generation if a NavigationProperty pointed to an invalid target annotation
32
77
  - OData V4:
@@ -45,7 +90,6 @@ Upgrades
45
90
 
46
91
  ## [1.84.81] - 2024-01-25
47
92
 
48
-
49
93
  ### Added
50
94
 
51
95
  - OData V4:
package/README.md CHANGED
@@ -1,40 +1,39 @@
1
1
  # @sap/ux-specification
2
2
 
3
- This package specifies the structure of SAP Fiori Element templates in form of typescript types and JSON schema files. You can find the JSON schemas under dist/schema.
4
- It is used by SAP Fiori Tools (see documentation link below) but can also be used independent from this application.
3
+ This package specifies the structure of SAP Fiori elements templates in form of typescript types and JSON schema files. You can find the JSON schemas under dist/schema.
4
+ This package is used by SAP Fiori tools (see documentation link below) but can also be used independently of this application.
5
5
 
6
- The major and minor version of this specification package matches the major and minor version of SAPUI5, which contains Fiori elements.
6
+ Each major version of this specification package corresponds to one or more major versions of SAPUI5. A new major version is usually set up for each SAPUI5 version that has a long-term maintenance. The major versions of @sap/ux-specification differ in the scope of supported properties and capabilities, in analogy with the SAP Fiori elements' capabilities of the SAPUI5 major version.
7
+ The relevant SAPUI5 versions of a specification version are linked by tags.
7
8
 
8
- _Example_:
9
- `@sap/ux-specification@1.84.x` specifies the Fiori elements that are delivered with SAPUI5 version 1.84.x
10
-
11
- The module supports both the OData V2 and the OData V4 version of the templates (aka FioriElementsVersion), you thus can find two different access points for the typescript definitions:
9
+ The module supports both the OData V2 and the OData V4 version of the templates (aka FioriElementsVersion), so you can find two different access points for the typescript definitions:
12
10
 
13
11
  - src/v2.ts comprises the OData V2 definitions
14
12
  - src/v4.ts comprises the OData V4 definitions
15
13
 
16
- JSON schemas are provided for the following schema types:
14
+ (Generic) JSON schemas are generated from the typescript definitions for the following schema types (enum TemplateType):
17
15
 
18
- - FioriElementsVersion.v2: Application, ObjectPage, ListReport and OverviewPage
19
- - FioriElementsVersion.v4: Application, ObjectPage, ListReport
16
+ - FioriElementsVersion.v2: Application, ObjectPage, ListReport, AnalyticalListPage and OverviewPage
17
+ - FioriElementsVersion.v4: Application, ObjectPage, ListReport, AnalyticalListPage and FreestylePage
20
18
 
21
- Further schema or template types are planned within the next releases.
22
19
  You can retrieve any generic schema via schemaAccess.ts.
23
20
 
24
- Besides the specification, src/api.ts provides functions that can be used with SAP Fiori apps in connection with the JSON schemas:
21
+ Besides the type definitions and schemas, src/api.(d.)ts provides functions that can be used by SAP Fiori apps in connection with the JSON schemas:
25
22
 
26
- - generateSchema: converts one generic schema to an application specific one, enriched by app specific information like annotations.
23
+ - generateSchema: converts one generic schema to an application specific one, enriched by app-specific information such as the annotations (as far as they are relevant for setting up the schematic view of the app, for instance collections like facets, columns, actions).
27
24
  - importConfig: imports information from the app, like manifest settings or SAPUI5 flexibility changes, into one JSON configuration file that relates to a given schema (representing the central settings of the app or of a page of the app).
28
- - exportConfig: exports from one JSON configuration file, returning an updated manifest.json file and a list of SAPUI5 flexibility changes.
25
+ - exportConfig: exports from one JSON configuration file, returning an updated manifest.json file and a complete list of all current SAPUI5 flexibility changes and view or fragments.
26
+ - exportConfigEntityByPath: exports a single property or section from the given config.json that is specified by a path expression, returns only the updated artifacts. Supported for List Report, Object Page and Analytical List Page.
27
+ - deleteConfigEntityByPath: deletes a single property or section from the given config.json that is specified by a path expression. Supported for List Report, Object Page and Analytical List Page.
29
28
  - importProject: imports information from the app and generates all schemas and JSON configuration files.
30
29
  - importProjectSchema: imports information from the app and generates all schemas but no JSON configuration files.
31
- - getApiVersion: returns the given API version. The API version starts with 1 and will only be increased in case of incompatible changes where the consumption layer must react on.
30
+ - getApiVersion: returns the given API version. The API version starts with 1 and will be increased in case of incompatible changes to which the consumption layer must react.
32
31
 
33
32
  When calling any API function you may pass a logger instance for collecting any messages. The interface of your logger must fit to the ExtensionLogger definition. If no logger is passed, the output channel for messages is the console.
34
33
 
35
34
  ## Constraints
36
35
 
37
- The definitions and functions do not handle the OData annotations of the SAP Fiori Element templates.
36
+ The API functions do not modify any OData annotations.
38
37
 
39
38
  ## Support
40
39
 
@@ -43,7 +42,7 @@ Please assign tag: _SAP Fiori tools_.
43
42
 
44
43
  To log an issue with SAP Fiori tools, please see [Contact SAP Support](https://help.sap.com/viewer/1bb01966b27a429ebf62fa2e45354fea/Latest/en-US).
45
44
 
46
- ## Documentation
45
+ ## Documentation
47
46
 
48
47
  - Visit **SAP Help Portal** for [SAP Fiori tools](https://help.sap.com/viewer/product/SAP_FIORI_tools/Latest/en-US) documentation.
49
48