@sap/ux-specification 1.96.5 → 1.96.6
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/CHANGELOG.md +29 -3
- 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-AnalyticalListPage.html +1 -1
- package/dist/documentation/v4/v4-ApplicationV4.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 +1 -1
- package/dist/schemas/v4/ObjectPageConfig.json +6 -38
- package/dist/src/apiTypes.d.ts +1 -0
- package/dist/src/specification/v4/controls/ObjectPageHeaderSection.d.ts +2 -14
- package/dist/src/sync/common/generate/utils.d.ts +7 -1
- package/dist/src/sync/common/utils.d.ts +7 -0
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.d.ts +4 -4
- package/dist/src/sync/v4/application.d.ts +1 -1
- package/dist/src/sync/v4/export/manifest.d.ts +1 -1
- package/package.json +2 -4
|
@@ -80,13 +80,10 @@
|
|
|
80
80
|
"additionalProperties": {
|
|
81
81
|
"anyOf": [
|
|
82
82
|
{
|
|
83
|
-
"$ref": "#/definitions/
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"$ref": "#/definitions/ObjectPageHeaderSectionChart"
|
|
83
|
+
"$ref": "#/definitions/CommonHeaderFacetSettings"
|
|
87
84
|
},
|
|
88
85
|
{
|
|
89
|
-
"$ref": "#/definitions/
|
|
86
|
+
"$ref": "#/definitions/ObjectPageHeaderSectionForm"
|
|
90
87
|
},
|
|
91
88
|
{
|
|
92
89
|
"$ref": "#/definitions/ObjectPageHeaderSectionContact"
|
|
@@ -97,16 +94,9 @@
|
|
|
97
94
|
]
|
|
98
95
|
}
|
|
99
96
|
},
|
|
100
|
-
"
|
|
97
|
+
"CommonHeaderFacetSettings": {
|
|
101
98
|
"type": "object",
|
|
102
99
|
"properties": {
|
|
103
|
-
"form": {
|
|
104
|
-
"description": "Form",
|
|
105
|
-
"isViewNode": true,
|
|
106
|
-
"type": "object",
|
|
107
|
-
"properties": {},
|
|
108
|
-
"additionalProperties": true
|
|
109
|
-
},
|
|
110
100
|
"stashed": {
|
|
111
101
|
"description": "Header facets marked as stashed are initially not visible on the UI. Key users can add these header facets via key user adaptation.",
|
|
112
102
|
"type": "boolean",
|
|
@@ -133,33 +123,11 @@
|
|
|
133
123
|
},
|
|
134
124
|
"additionalProperties": false
|
|
135
125
|
},
|
|
136
|
-
"
|
|
137
|
-
"type": "object",
|
|
138
|
-
"properties": {
|
|
139
|
-
"chart": {
|
|
140
|
-
"description": "Chart",
|
|
141
|
-
"isViewNode": true,
|
|
142
|
-
"type": "object",
|
|
143
|
-
"properties": {},
|
|
144
|
-
"additionalProperties": true
|
|
145
|
-
},
|
|
146
|
-
"stashed": {
|
|
147
|
-
"description": "Header facets marked as stashed are initially not visible on the UI. Key users can add these header facets via key user adaptation.",
|
|
148
|
-
"type": "boolean",
|
|
149
|
-
"artifactType": "Manifest"
|
|
150
|
-
},
|
|
151
|
-
"flexSettings": {
|
|
152
|
-
"$ref": "#/definitions/FlexSettings",
|
|
153
|
-
"artifactType": "Manifest"
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
"additionalProperties": false
|
|
157
|
-
},
|
|
158
|
-
"ObjectPageHeaderSectionDataPoint": {
|
|
126
|
+
"ObjectPageHeaderSectionForm": {
|
|
159
127
|
"type": "object",
|
|
160
128
|
"properties": {
|
|
161
|
-
"
|
|
162
|
-
"description": "
|
|
129
|
+
"form": {
|
|
130
|
+
"description": "Form",
|
|
163
131
|
"isViewNode": true,
|
|
164
132
|
"type": "object",
|
|
165
133
|
"properties": {},
|
package/dist/src/apiTypes.d.ts
CHANGED
|
@@ -21,20 +21,6 @@ export interface ObjectPageHeaderSectionForm extends CommonHeaderFacetSettings {
|
|
|
21
21
|
*/
|
|
22
22
|
form?: object;
|
|
23
23
|
}
|
|
24
|
-
export interface ObjectPageHeaderSectionChart extends CommonHeaderFacetSettings {
|
|
25
|
-
/**
|
|
26
|
-
* Chart
|
|
27
|
-
* @isViewNode true
|
|
28
|
-
*/
|
|
29
|
-
chart?: object;
|
|
30
|
-
}
|
|
31
|
-
export interface ObjectPageHeaderSectionDataPoint extends CommonHeaderFacetSettings {
|
|
32
|
-
/**
|
|
33
|
-
* Data Point
|
|
34
|
-
* @isViewNode true
|
|
35
|
-
*/
|
|
36
|
-
dataPoint?: object;
|
|
37
|
-
}
|
|
38
24
|
export interface ObjectPageHeaderSectionContact extends CommonHeaderFacetSettings {
|
|
39
25
|
/**
|
|
40
26
|
* Contact
|
|
@@ -49,6 +35,8 @@ export interface ObjectPageHeaderSectionAddress extends CommonHeaderFacetSetting
|
|
|
49
35
|
*/
|
|
50
36
|
address?: object;
|
|
51
37
|
}
|
|
38
|
+
export declare type ObjectPageHeaderSectionChart = CommonHeaderFacetSettings;
|
|
39
|
+
export declare type ObjectPageHeaderSectionDataPoint = CommonHeaderFacetSettings;
|
|
52
40
|
/**
|
|
53
41
|
* Header Sections
|
|
54
42
|
* @isViewNode true
|
|
@@ -78,9 +78,15 @@ export declare enum DataType {
|
|
|
78
78
|
FieldGroup = "FieldGroup",
|
|
79
79
|
IntentBasedNavigation = "IntentBasedNavigation"
|
|
80
80
|
}
|
|
81
|
+
/**
|
|
82
|
+
* Determines the dataType of the target that shall be added to a property in schema
|
|
83
|
+
* @param target - the given target
|
|
84
|
+
* @returns - the dataType as string
|
|
85
|
+
*/
|
|
86
|
+
export declare function determineDataTypeOfTarget(target: any): string | undefined;
|
|
81
87
|
/**
|
|
82
88
|
* Determines the dataType that shall be added to a property in schema, for any kind of field like
|
|
83
|
-
* -
|
|
89
|
+
* - field of a field group
|
|
84
90
|
* - line item record
|
|
85
91
|
* - selection field
|
|
86
92
|
* @param field - the given field
|
|
@@ -142,6 +142,13 @@ export declare function getTemplateTypeFromManifest(manifest: Manifest, fioriEle
|
|
|
142
142
|
* @param facetKey - key of the facet
|
|
143
143
|
*/
|
|
144
144
|
export declare function addSectionTitleAndDescription(facet: FacetConfig, section: object, facetKey: string): void;
|
|
145
|
+
/**
|
|
146
|
+
* Adds target title or description to a section or header section in an app schema
|
|
147
|
+
* @param facet - intermediate facet structure comprising annotation information
|
|
148
|
+
* @param section - section in the app schema
|
|
149
|
+
* @param facetKey - key of the facet
|
|
150
|
+
*/
|
|
151
|
+
export declare function addTargetTitleAndSectionDescription(facet: FacetConfig, section: object, facetKey: string): void;
|
|
145
152
|
/**
|
|
146
153
|
* Creates a default object for a new section or subsection, and adds the ID as title if present.
|
|
147
154
|
* @param facet Facet configuration, to be analyzed
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ObjectPageSectionFormV2 as ObjectPageSectionFormV2Config, ObjectPageSectionChartV2 as ObjectPageSectionChartV2Config, ObjectPageSectionTableV2 as ObjectPageSectionTableV2Config, ObjectPageSubSectionV2 as ObjectPageSubSectionV2Config } from '../../../../specification/v2/index';
|
|
2
2
|
import { ControlTypeFunction } from '../../../common';
|
|
3
3
|
export declare const FacetTitlePrefix = "Facet ID: ";
|
|
4
|
-
export declare const getTableSectionControlId: (baseId: string, idBreadcrumbs: string[], breadcrumbs: string[], controlType: ControlTypeFunction,
|
|
5
|
-
export declare const getFormSectionControlId: (baseId: string, idBreadcrumbs: string[], breadcrumbs: string[], controlType: ControlTypeFunction,
|
|
4
|
+
export declare const getTableSectionControlId: (baseId: string, idBreadcrumbs: string[], breadcrumbs: string[], controlType: ControlTypeFunction, facetId: string) => string;
|
|
5
|
+
export declare const getFormSectionControlId: (baseId: string, idBreadcrumbs: string[], breadcrumbs: string[], controlType: ControlTypeFunction, facetId: string) => string;
|
|
6
6
|
export declare const getChartSectionControlId: (baseId: string, idBreadcrumbs: string[], breadcrumbs: string[], controlType: ControlTypeFunction, facetID: string) => string;
|
|
7
|
-
export declare const getSectionControlId: (baseId: string, idBreadcrumbs: string[], breadcrumbs: string[], controlType: ControlTypeFunction,
|
|
8
|
-
export declare const getSubSectionControlId: (baseId: string, idBreadcrumbs: string[], breadcrumbs: string[], controlType: ControlTypeFunction,
|
|
7
|
+
export declare const getSectionControlId: (baseId: string, idBreadcrumbs: string[], breadcrumbs: string[], controlType: ControlTypeFunction, facetId: string) => string;
|
|
8
|
+
export declare const getSubSectionControlId: (baseId: string, idBreadcrumbs: string[], breadcrumbs: string[], controlType: ControlTypeFunction, facetId: string) => string;
|
|
9
9
|
export declare class ObjectPageSectionV2 implements ObjectPageSubSectionV2Config {
|
|
10
10
|
visible?: boolean;
|
|
11
11
|
}
|
|
@@ -5,7 +5,7 @@ import { Pages } from '../../specification/v4';
|
|
|
5
5
|
export declare const getSettingsPathForPage: (pageName: string[]) => string;
|
|
6
6
|
export declare const getSettingsPathForHeaderOP: (pageName: string[]) => string;
|
|
7
7
|
export declare const getControlConfigurationPath: (pageName: string[]) => string;
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const getHeaderFacetSettingPath: (pageName: string[], manifest: Manifest, sectionId: string) => string;
|
|
9
9
|
export declare const getTableSettingsPathForLR: (pageName: string[]) => string;
|
|
10
10
|
export declare const getColumnsPathForLR: (pageName: string[], manifest: Manifest, sectionId: string, columnKey: string) => string;
|
|
11
11
|
export declare const getActionsPathForLR: (pageName: string[], manifest: Manifest, sectionId: string, columnKey: string) => string;
|
|
@@ -5,7 +5,7 @@ export declare enum Constants {
|
|
|
5
5
|
Namespace = "sap.fe.templates"
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
|
-
* Transform Pages(from app.json) to UI5 routing configuration(manifest.json)
|
|
8
|
+
* Transform Pages(from app.json) to UI5 routing configuration (manifest.json)
|
|
9
9
|
* @param routing UI5 routing configuration
|
|
10
10
|
*/
|
|
11
11
|
export declare function transformRoutingV4(homePage: string, pages: Pages, manifest: object): SapUi5RoutingV4;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/ux-specification",
|
|
3
|
-
"version": "1.96.
|
|
3
|
+
"version": "1.96.6",
|
|
4
4
|
"displayName": "SAP Fiori tools - Specification",
|
|
5
5
|
"description": "SAP Fiori tools - Specification",
|
|
6
6
|
"files": [
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"publisher": "SAPSE",
|
|
46
46
|
"license": "SEE LICENSE IN LICENSE",
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@sap-ux/fe-fpm-writer": "0.
|
|
48
|
+
"@sap-ux/fe-fpm-writer": "0.5.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@sap-ux/annotation-converter": "0.3.39",
|
|
@@ -61,7 +61,6 @@
|
|
|
61
61
|
"@typescript-eslint/parser": "4.14.1",
|
|
62
62
|
"@ui5/flexibility-utils": "0.1.3",
|
|
63
63
|
"ajv": "6.12.6",
|
|
64
|
-
"copy-webpack-plugin": "9.1.0",
|
|
65
64
|
"cpy-cli": "3.1.1",
|
|
66
65
|
"d3": "7.1.1",
|
|
67
66
|
"deepmerge": "4.2.2",
|
|
@@ -70,7 +69,6 @@
|
|
|
70
69
|
"eslint-formatter-multiple": "1.0.0",
|
|
71
70
|
"eslint-plugin-prettier": "3.3.1",
|
|
72
71
|
"excel4node": "1.7.2",
|
|
73
|
-
"http-server": "13.0.1",
|
|
74
72
|
"i18next": "20.3.1",
|
|
75
73
|
"jest": "26.6.3",
|
|
76
74
|
"jest-sonar-reporter": "2.0.0",
|