@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.
@@ -80,13 +80,10 @@
80
80
  "additionalProperties": {
81
81
  "anyOf": [
82
82
  {
83
- "$ref": "#/definitions/ObjectPageHeaderSectionForm"
84
- },
85
- {
86
- "$ref": "#/definitions/ObjectPageHeaderSectionChart"
83
+ "$ref": "#/definitions/CommonHeaderFacetSettings"
87
84
  },
88
85
  {
89
- "$ref": "#/definitions/ObjectPageHeaderSectionDataPoint"
86
+ "$ref": "#/definitions/ObjectPageHeaderSectionForm"
90
87
  },
91
88
  {
92
89
  "$ref": "#/definitions/ObjectPageHeaderSectionContact"
@@ -97,16 +94,9 @@
97
94
  ]
98
95
  }
99
96
  },
100
- "ObjectPageHeaderSectionForm": {
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
- "ObjectPageHeaderSectionChart": {
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
- "dataPoint": {
162
- "description": "Data Point",
129
+ "form": {
130
+ "description": "Form",
163
131
  "isViewNode": true,
164
132
  "type": "object",
165
133
  "properties": {},
@@ -310,6 +310,7 @@ export declare const FPMWriterMap: Map<CustomExtensionType, (basePath: string, d
310
310
  */
311
311
  export interface ApiVersion {
312
312
  version?: string;
313
+ fpmWriter?: string;
313
314
  }
314
315
  /**
315
316
  * API interface
@@ -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
- * - feld of a field group
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, facetID: string) => string;
5
- export declare const getFormSectionControlId: (baseId: string, idBreadcrumbs: string[], breadcrumbs: string[], controlType: ControlTypeFunction, title: string) => string;
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, title: string) => string;
8
- export declare const getSubSectionControlId: (baseId: string, idBreadcrumbs: string[], breadcrumbs: string[], controlType: ControlTypeFunction, title: string) => string;
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 getHeadeFacetSettingPath: (pageName: string[], manifest: Manifest, sectionId: string) => string;
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.5",
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.4.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",