@sap/ux-specification 1.71.55 → 1.71.58
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 +56 -20
- 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/index-min.js +1 -1
- package/dist/schemas/v2/ObjectPageConfig.json +229 -0
- package/dist/src/project.d.ts +1 -0
- package/dist/src/project.js +13 -5
- package/dist/src/project.js.map +1 -1
- package/dist/src/specification/v2/controls/ObjectPageChart.d.ts +16 -0
- package/dist/src/specification/v2/controls/ObjectPageChart.js +3 -0
- package/dist/src/specification/v2/controls/ObjectPageChart.js.map +1 -0
- package/dist/src/specification/v2/controls/ObjectPageSection.d.ts +47 -7
- package/dist/src/specification/v2/controls/ObjectPageSection.js.map +1 -1
- package/dist/src/specification/v2/controls/index.d.ts +1 -0
- package/dist/src/specification/v2/controls/index.js.map +1 -1
- package/dist/src/sync/common/decoration/control.d.ts +1 -1
- package/dist/src/sync/common/decoration/control.js +27 -22
- package/dist/src/sync/common/decoration/control.js.map +1 -1
- package/dist/src/sync/common/generate/objectPage.d.ts +5 -4
- package/dist/src/sync/common/generate/objectPage.js +60 -59
- package/dist/src/sync/common/generate/objectPage.js.map +1 -1
- package/dist/src/sync/common/generate/utils.d.ts +48 -8
- package/dist/src/sync/common/generate/utils.js +124 -38
- package/dist/src/sync/common/generate/utils.js.map +1 -1
- package/dist/src/sync/common/import/utils.d.ts +3 -2
- package/dist/src/sync/common/import/utils.js +11 -6
- package/dist/src/sync/common/import/utils.js.map +1 -1
- package/dist/src/sync/common/importProject.js +20 -19
- package/dist/src/sync/common/importProject.js.map +1 -1
- package/dist/src/sync/common/types.d.ts +103 -26
- package/dist/src/sync/common/types.js +99 -22
- package/dist/src/sync/common/types.js.map +1 -1
- package/dist/src/sync/common/utils.d.ts +14 -7
- package/dist/src/sync/common/utils.js +96 -50
- package/dist/src/sync/common/utils.js.map +1 -1
- package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js +1 -1
- package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Fragment.js +2 -2
- package/dist/src/sync/v2/export/controls/Fragment.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.d.ts +30 -11
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js +87 -4
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Table.js +36 -33
- package/dist/src/sync/v2/export/controls/Table.js.map +1 -1
- package/dist/src/sync/v2/export/export.d.ts +0 -1
- package/dist/src/sync/v2/export/export.js +186 -142
- package/dist/src/sync/v2/export/export.js.map +1 -1
- package/dist/src/sync/v2/export/exportPage.js +35 -34
- package/dist/src/sync/v2/export/exportPage.js.map +1 -1
- package/dist/src/sync/v2/export/manifest.d.ts +22 -0
- package/dist/src/sync/v2/export/manifest.js +77 -36
- package/dist/src/sync/v2/export/manifest.js.map +1 -1
- package/dist/src/sync/v2/generate/analyticalListReport.js +10 -10
- package/dist/src/sync/v2/generate/analyticalListReport.js.map +1 -1
- package/dist/src/sync/v2/generate/listReport.js +1 -1
- package/dist/src/sync/v2/generate/listReport.js.map +1 -1
- package/dist/src/sync/v2/generate/objectPage.js +90 -57
- package/dist/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v2/generate/utils.d.ts +3 -2
- package/dist/src/sync/v2/generate/utils.js +94 -89
- package/dist/src/sync/v2/generate/utils.js.map +1 -1
- package/dist/src/sync/v2/import/app/appProvider.d.ts +9 -0
- package/dist/src/sync/v2/import/app/appProvider.js +36 -13
- package/dist/src/sync/v2/import/app/appProvider.js.map +1 -1
- package/dist/src/sync/v2/import/app/ovpProvider.js +1 -1
- package/dist/src/sync/v2/import/app/ovpProvider.js.map +1 -1
- package/dist/src/sync/v2/import/common/index.js +6 -6
- package/dist/src/sync/v2/import/common/index.js.map +1 -1
- package/dist/src/sync/v2/import/pages/objectPage.js +96 -104
- package/dist/src/sync/v2/import/pages/objectPage.js.map +1 -1
- package/dist/src/sync/v2/import/pages/overviewPage.js +1 -1
- package/dist/src/sync/v2/import/pages/overviewPage.js.map +1 -1
- package/dist/src/sync/v2/import/utils.js +1 -1
- package/dist/src/sync/v2/import/utils.js.map +1 -1
- package/dist/src/sync/v2/types.d.ts +8 -3
- package/dist/src/sync/v2/types.js +6 -2
- package/dist/src/sync/v2/types.js.map +1 -1
- package/dist/src/sync/v4/utils/StableIdHelper.js +13 -10
- package/dist/src/sync/v4/utils/StableIdHelper.js.map +1 -1
- package/dist/test/unit/export/manifest.test.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Manifest } from '../../specification/common/webapp/manifest';
|
|
2
|
-
import type { EntityType } from '@sap-ux/vocabularies-types';
|
|
2
|
+
import type { AnnotationTerm, CollectionFacet, EntityType, ReferenceFacet, ReferenceURLFacet } from '@sap-ux/vocabularies-types';
|
|
3
3
|
import type { ManifestSettingsType } from '../../specification/common/types';
|
|
4
|
+
export declare type anyFacetType = AnnotationTerm<CollectionFacet> | AnnotationTerm<ReferenceFacet> | AnnotationTerm<ReferenceURLFacet>;
|
|
4
5
|
export declare enum ExportArtifacts {
|
|
5
6
|
flex = "flex",
|
|
6
7
|
manifest = "manifest"
|
|
@@ -35,6 +36,7 @@ export interface ExportResults {
|
|
|
35
36
|
}
|
|
36
37
|
export declare enum SectionType {
|
|
37
38
|
Section = "Section",
|
|
39
|
+
SubSection = "SubSection",
|
|
38
40
|
HeaderSection = "HeaderSection"
|
|
39
41
|
}
|
|
40
42
|
export declare enum ArtifactType {
|
|
@@ -109,12 +111,13 @@ export interface FlexAdapter {
|
|
|
109
111
|
importFlexValue?: importFlexValue;
|
|
110
112
|
}
|
|
111
113
|
export declare type ManifestPath = (pageKeys?: string[], manifest?: Manifest, ...pathParts: string[]) => string;
|
|
114
|
+
export declare type ExportHandlerFunction = (manifestSection: unknown, configObject: unknown, key: string, manifestKey?: string, ...pathParts: string[]) => unknown;
|
|
112
115
|
export interface ManifestConverter {
|
|
113
116
|
path: ManifestPath;
|
|
114
117
|
key?: string;
|
|
115
118
|
import?: ((manifestSection: unknown, sectionId?: string, propertyKey?: string, breadcrumbs?: string[]) => unknown) | boolean;
|
|
116
|
-
export?:
|
|
117
|
-
delete?: (manifestSection: unknown, configObject: unknown, key: string, manifestKey: string) => unknown;
|
|
119
|
+
export?: ExportHandlerFunction | boolean;
|
|
120
|
+
delete?: ((manifestSection: unknown, configObject: unknown, key: string, manifestKey: string, syncRuleKey?: string) => unknown) | boolean;
|
|
118
121
|
}
|
|
119
122
|
export interface SyncRule {
|
|
120
123
|
flex?: FlexAdapter;
|
|
@@ -155,6 +158,10 @@ export interface FileData {
|
|
|
155
158
|
dataSourceUri: string;
|
|
156
159
|
fileContent: string;
|
|
157
160
|
}
|
|
161
|
+
export declare enum Visualization {
|
|
162
|
+
LineItem = "LineItem",
|
|
163
|
+
Chart = "Chart"
|
|
164
|
+
}
|
|
158
165
|
export declare enum FacetBase {
|
|
159
166
|
LineItem = "LineItem",
|
|
160
167
|
CollectionFacet = "CollectionFacet",
|
|
@@ -174,6 +181,7 @@ export interface FacetConfig {
|
|
|
174
181
|
entityType?: EntityType;
|
|
175
182
|
annotationPath?: string;
|
|
176
183
|
target?: object;
|
|
184
|
+
facets?: FacetConfigs;
|
|
177
185
|
}
|
|
178
186
|
export interface SubSectionConfig {
|
|
179
187
|
base: FacetBase;
|
|
@@ -218,41 +226,110 @@ export declare enum ViewTemplateType {
|
|
|
218
226
|
ResponsiveTableCellsExtension = "ResponsiveTableCellsExtension"
|
|
219
227
|
}
|
|
220
228
|
export declare enum DefinitionName {
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
229
|
+
Actions = "Actions",
|
|
230
|
+
ALPChart = "ALPChart",
|
|
231
|
+
ALPChartView = "ALPChartView",
|
|
232
|
+
ALPTable = "ALPTable",
|
|
233
|
+
ALPTableView = "ALPTableView",
|
|
234
|
+
AnalyticalListPageFilterBar = "AnalyticalListPageFilterBar",
|
|
235
|
+
AnnotationPathAsObject = "AnnotationPathAsObject",
|
|
236
|
+
ChartToolBarAction = "ChartToolBarAction",
|
|
237
|
+
CommonHeaderFacetSettings = "CommonHeaderFacetSettings",
|
|
228
238
|
CustomColumn = "TableCustomColumn",
|
|
229
|
-
ViewCustomColumn = "ViewTableCustomColumn",
|
|
230
239
|
CustomColumnOP = "TableCustomColumnOP",
|
|
231
|
-
|
|
232
|
-
|
|
240
|
+
CustomColumns = "TableCustomColumns",
|
|
241
|
+
CustomSections = "CustomSections",
|
|
242
|
+
FieldPath = "FieldPath",
|
|
243
|
+
Field = "Field",
|
|
244
|
+
Fields = "Fields",
|
|
245
|
+
Fields4Dialog = "Fields4Dialog",
|
|
246
|
+
Footer = "Footer",
|
|
247
|
+
FooterActions = "FooterActions",
|
|
248
|
+
Form = "Form",
|
|
249
|
+
FormAction = "FormAction",
|
|
250
|
+
GenericActions = "GenericActions",
|
|
251
|
+
GenericColumnsOP = "GenericColumnsOP",
|
|
252
|
+
GenericFooter = "GenericFooter",
|
|
253
|
+
GenericSections = "GenericSections",
|
|
254
|
+
HeaderActions = "HeaderActions",
|
|
255
|
+
HeaderSections = "HeaderSections",
|
|
256
|
+
LineItems = "LineItems",
|
|
257
|
+
LineItemsOfView = "LineItemsOfView",
|
|
233
258
|
ListReportFilterBar = "ListReportFilterBar",
|
|
234
|
-
AnalyticalListPageFilterBar = "AnalyticalListPageFilterBar",
|
|
235
|
-
ALPChart = "ALPChart",
|
|
236
|
-
ALPChartView = "ALPChartView",
|
|
237
|
-
ViewChartToolBar = "ViewChartToolBar",
|
|
238
|
-
Table = "Table",
|
|
239
259
|
LRTableView = "LRTableView",
|
|
240
260
|
LRChartView = "LRChartView",
|
|
241
|
-
Actions = "Actions",
|
|
242
|
-
ViewToolBarAction = "ViewToolBarAction",
|
|
243
|
-
ChartToolBarAction = "ChartToolBarAction",
|
|
244
|
-
ToolBarAction = "ToolBarAction",
|
|
245
|
-
ObjectPageToolBarAction = "ObjectPageToolBarAction",
|
|
246
261
|
MultiTableModeV4 = "MultiTableModeV4",
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
262
|
+
ObjectPageChart = "ObjectPageChart",
|
|
263
|
+
ObjectPageCustomSectionFragment = "ObjectPageCustomSectionFragment",
|
|
264
|
+
ObjectPageFooter = "ObjectPageFooter",
|
|
265
|
+
ObjectPageFooterAction = "ObjectPageFooterAction",
|
|
266
|
+
ObjectPageFooterActions = "ObjectPageFooterActions",
|
|
267
|
+
ObjectPageHeader = "ObjectPageHeader",
|
|
268
|
+
ObjectPageHeaderSectionForm = "ObjectPageHeaderSectionForm",
|
|
269
|
+
ObjectPageHeaderSectionChart = "ObjectPageHeaderSectionChart",
|
|
270
|
+
ObjectPageHeaderSectionDataPoint = "ObjectPageHeaderSectionDataPoint",
|
|
271
|
+
ObjectPageHeaderSectionContact = "ObjectPageHeaderSectionContact",
|
|
272
|
+
ObjectPageHeaderSectionAddress = "ObjectPageHeaderSectionAddress",
|
|
273
|
+
ObjectPageLayout = "ObjectPageLayout",
|
|
274
|
+
ObjectPagePresentationVariant = "ObjectPagePresentationVariant",
|
|
275
|
+
ObjectPageSectionAddress = "ObjectPageSectionAddress",
|
|
276
|
+
ObjectPageSectionChart = "ObjectPageSectionChart",
|
|
277
|
+
ObjectPageSectionContact = "ObjectPageSectionContact",
|
|
278
|
+
ObjectPageSectionDataPoint = "ObjectPageSectionDataPoint",
|
|
279
|
+
ObjectPageSectionForm = "ObjectPageSectionForm",
|
|
280
|
+
ObjectPageSectionPresentationVariant = "ObjectPageSectionPresentationVariant",
|
|
281
|
+
ObjectPageSectionTableV4 = "ObjectPageSectionTableV4",
|
|
282
|
+
ObjectPageSubSections = "ObjectPageSubSections",
|
|
283
|
+
ObjectPageTable = "ObjectPageTable",
|
|
284
|
+
ObjectPageTableColumn = "ObjectPageTableColumn",
|
|
285
|
+
ObjectPageToolBar = "ObjectPageToolBar",
|
|
286
|
+
ObjectPageToolBarAction = "ObjectPageToolBarAction",
|
|
287
|
+
ObjectPageToolBarActions = "ObjectPageToolBarActions",
|
|
288
|
+
Position = "Position",
|
|
289
|
+
PositionOP = "PositionOP",
|
|
290
|
+
QuickVariant = "QuickVariant",
|
|
291
|
+
QuickVariantSelectionOP = "QuickVariantSelectionOP",
|
|
292
|
+
QuickVariantSelectionV4OP = "QuickVariantSelectionV4OP",
|
|
293
|
+
RelatedFacetKeys = "RelatedFacetKeys",
|
|
294
|
+
Sections = "Sections",
|
|
295
|
+
Table = "Table",
|
|
296
|
+
TableSPV = "TableSPV",
|
|
297
|
+
TableColumn = "TableColumn",
|
|
298
|
+
ToolBarAction = "ToolBarAction",
|
|
299
|
+
ToolBarLR = "ToolBar<LineItems>",
|
|
300
|
+
ToolBar = "ToolBar",
|
|
301
|
+
ViewTableColumn = "ViewTableColumn",
|
|
302
|
+
ViewCustomColumn = "ViewTableCustomColumn",
|
|
303
|
+
ViewChartToolBar = "ViewChartToolBar",
|
|
304
|
+
ViewToolBarAction = "ViewToolBarAction"
|
|
305
|
+
}
|
|
306
|
+
export declare enum PropertyName {
|
|
307
|
+
actions = "actions",
|
|
308
|
+
annotationPath = "annotationPath",
|
|
309
|
+
chart = "chart",
|
|
310
|
+
defaultPath = "defaultPath",
|
|
311
|
+
defaultTemplateAnnotationPath = "defaultTemplateAnnotationPath",
|
|
312
|
+
sections = "sections",
|
|
313
|
+
table = "table",
|
|
314
|
+
views = "views"
|
|
315
|
+
}
|
|
316
|
+
export declare enum SchemaTag {
|
|
317
|
+
hidden = "hidden",
|
|
318
|
+
isViewNode = "isViewNode",
|
|
319
|
+
annotationPath = "annotationPath",
|
|
320
|
+
annotationType = "annotationType",
|
|
321
|
+
artifactType = "artifactType",
|
|
322
|
+
controlType = "controlType",
|
|
323
|
+
dataType = "dataType",
|
|
324
|
+
propertyIndex = "propertyIndex",
|
|
325
|
+
key = "key"
|
|
250
326
|
}
|
|
251
327
|
export declare const METADATAPATH = "webapp/localService/metadata.xml";
|
|
252
328
|
export declare const MANIFESTPATH = "webapp/manifest.json";
|
|
253
329
|
export declare const VOCWITHSLASH = "/@com.sap.vocabularies";
|
|
254
330
|
export declare const VOCWITHCOLONS = "::@com.sap.vocabularies";
|
|
255
331
|
export declare const UIVOCABULARY = "com.sap.vocabularies.UI.v1";
|
|
332
|
+
export declare const UIVOCABULARYDOT = "com.sap.vocabularies.UI.v1.";
|
|
256
333
|
export declare const QUICKVARPATH = "/quickVariantSelection";
|
|
257
334
|
export declare const QUICKVARPATHX = "/quickVariantSelectionX";
|
|
258
335
|
export declare const DATESETTINGSPATH = "/filterSettings/dateSettings";
|
|
@@ -34,6 +34,7 @@ exports.ActionTitlePrefix = 'Action ID: ';
|
|
|
34
34
|
var SectionType;
|
|
35
35
|
(function (SectionType) {
|
|
36
36
|
SectionType["Section"] = "Section";
|
|
37
|
+
SectionType["SubSection"] = "SubSection";
|
|
37
38
|
SectionType["HeaderSection"] = "HeaderSection";
|
|
38
39
|
})(SectionType = exports.SectionType || (exports.SectionType = {}));
|
|
39
40
|
var ArtifactType;
|
|
@@ -64,6 +65,11 @@ var ControlType;
|
|
|
64
65
|
ControlType["Section"] = "sap.uxap.ObjectPageSection";
|
|
65
66
|
ControlType["SubSection"] = "sap.uxap.ObjectPageSubSection";
|
|
66
67
|
})(ControlType = exports.ControlType || (exports.ControlType = {}));
|
|
68
|
+
var Visualization;
|
|
69
|
+
(function (Visualization) {
|
|
70
|
+
Visualization["LineItem"] = "LineItem";
|
|
71
|
+
Visualization["Chart"] = "Chart";
|
|
72
|
+
})(Visualization = exports.Visualization || (exports.Visualization = {}));
|
|
67
73
|
var FacetBase;
|
|
68
74
|
(function (FacetBase) {
|
|
69
75
|
FacetBase["LineItem"] = "LineItem";
|
|
@@ -88,41 +94,112 @@ var ViewTemplateType;
|
|
|
88
94
|
//Definitions for elements in app schema
|
|
89
95
|
var DefinitionName;
|
|
90
96
|
(function (DefinitionName) {
|
|
91
|
-
DefinitionName["
|
|
92
|
-
DefinitionName["
|
|
97
|
+
DefinitionName["Actions"] = "Actions";
|
|
98
|
+
DefinitionName["ALPChart"] = "ALPChart";
|
|
99
|
+
DefinitionName["ALPChartView"] = "ALPChartView";
|
|
100
|
+
DefinitionName["ALPTable"] = "ALPTable";
|
|
101
|
+
DefinitionName["ALPTableView"] = "ALPTableView";
|
|
102
|
+
DefinitionName["AnalyticalListPageFilterBar"] = "AnalyticalListPageFilterBar";
|
|
103
|
+
DefinitionName["AnnotationPathAsObject"] = "AnnotationPathAsObject";
|
|
104
|
+
DefinitionName["ChartToolBarAction"] = "ChartToolBarAction";
|
|
105
|
+
DefinitionName["CommonHeaderFacetSettings"] = "CommonHeaderFacetSettings";
|
|
106
|
+
DefinitionName["CustomColumn"] = "TableCustomColumn";
|
|
107
|
+
DefinitionName["CustomColumnOP"] = "TableCustomColumnOP";
|
|
108
|
+
DefinitionName["CustomColumns"] = "TableCustomColumns";
|
|
109
|
+
DefinitionName["CustomSections"] = "CustomSections";
|
|
110
|
+
DefinitionName["FieldPath"] = "FieldPath";
|
|
111
|
+
DefinitionName["Field"] = "Field";
|
|
112
|
+
DefinitionName["Fields"] = "Fields";
|
|
113
|
+
DefinitionName["Fields4Dialog"] = "Fields4Dialog";
|
|
114
|
+
DefinitionName["Footer"] = "Footer";
|
|
115
|
+
DefinitionName["FooterActions"] = "FooterActions";
|
|
116
|
+
DefinitionName["Form"] = "Form";
|
|
117
|
+
DefinitionName["FormAction"] = "FormAction";
|
|
118
|
+
DefinitionName["GenericActions"] = "GenericActions";
|
|
119
|
+
DefinitionName["GenericColumnsOP"] = "GenericColumnsOP";
|
|
120
|
+
DefinitionName["GenericFooter"] = "GenericFooter";
|
|
121
|
+
DefinitionName["GenericSections"] = "GenericSections";
|
|
122
|
+
DefinitionName["HeaderActions"] = "HeaderActions";
|
|
123
|
+
DefinitionName["HeaderSections"] = "HeaderSections";
|
|
124
|
+
DefinitionName["LineItems"] = "LineItems";
|
|
125
|
+
DefinitionName["LineItemsOfView"] = "LineItemsOfView";
|
|
126
|
+
DefinitionName["ListReportFilterBar"] = "ListReportFilterBar";
|
|
127
|
+
DefinitionName["LRTableView"] = "LRTableView";
|
|
128
|
+
DefinitionName["LRChartView"] = "LRChartView";
|
|
129
|
+
DefinitionName["MultiTableModeV4"] = "MultiTableModeV4";
|
|
130
|
+
DefinitionName["ObjectPageChart"] = "ObjectPageChart";
|
|
131
|
+
DefinitionName["ObjectPageCustomSectionFragment"] = "ObjectPageCustomSectionFragment";
|
|
132
|
+
DefinitionName["ObjectPageFooter"] = "ObjectPageFooter";
|
|
133
|
+
DefinitionName["ObjectPageFooterAction"] = "ObjectPageFooterAction";
|
|
134
|
+
DefinitionName["ObjectPageFooterActions"] = "ObjectPageFooterActions";
|
|
135
|
+
DefinitionName["ObjectPageHeader"] = "ObjectPageHeader";
|
|
136
|
+
DefinitionName["ObjectPageHeaderSectionForm"] = "ObjectPageHeaderSectionForm";
|
|
137
|
+
DefinitionName["ObjectPageHeaderSectionChart"] = "ObjectPageHeaderSectionChart";
|
|
138
|
+
DefinitionName["ObjectPageHeaderSectionDataPoint"] = "ObjectPageHeaderSectionDataPoint";
|
|
139
|
+
DefinitionName["ObjectPageHeaderSectionContact"] = "ObjectPageHeaderSectionContact";
|
|
140
|
+
DefinitionName["ObjectPageHeaderSectionAddress"] = "ObjectPageHeaderSectionAddress";
|
|
141
|
+
DefinitionName["ObjectPageLayout"] = "ObjectPageLayout";
|
|
142
|
+
DefinitionName["ObjectPagePresentationVariant"] = "ObjectPagePresentationVariant";
|
|
143
|
+
DefinitionName["ObjectPageSectionAddress"] = "ObjectPageSectionAddress";
|
|
144
|
+
DefinitionName["ObjectPageSectionChart"] = "ObjectPageSectionChart";
|
|
145
|
+
DefinitionName["ObjectPageSectionContact"] = "ObjectPageSectionContact";
|
|
146
|
+
DefinitionName["ObjectPageSectionDataPoint"] = "ObjectPageSectionDataPoint";
|
|
147
|
+
DefinitionName["ObjectPageSectionForm"] = "ObjectPageSectionForm";
|
|
148
|
+
DefinitionName["ObjectPageSectionPresentationVariant"] = "ObjectPageSectionPresentationVariant";
|
|
149
|
+
DefinitionName["ObjectPageSectionTableV4"] = "ObjectPageSectionTableV4";
|
|
150
|
+
DefinitionName["ObjectPageSubSections"] = "ObjectPageSubSections";
|
|
93
151
|
DefinitionName["ObjectPageTable"] = "ObjectPageTable";
|
|
94
152
|
DefinitionName["ObjectPageTableColumn"] = "ObjectPageTableColumn";
|
|
153
|
+
DefinitionName["ObjectPageToolBar"] = "ObjectPageToolBar";
|
|
154
|
+
DefinitionName["ObjectPageToolBarAction"] = "ObjectPageToolBarAction";
|
|
155
|
+
DefinitionName["ObjectPageToolBarActions"] = "ObjectPageToolBarActions";
|
|
156
|
+
DefinitionName["Position"] = "Position";
|
|
157
|
+
DefinitionName["PositionOP"] = "PositionOP";
|
|
158
|
+
DefinitionName["QuickVariant"] = "QuickVariant";
|
|
159
|
+
DefinitionName["QuickVariantSelectionOP"] = "QuickVariantSelectionOP";
|
|
160
|
+
DefinitionName["QuickVariantSelectionV4OP"] = "QuickVariantSelectionV4OP";
|
|
161
|
+
DefinitionName["RelatedFacetKeys"] = "RelatedFacetKeys";
|
|
162
|
+
DefinitionName["Sections"] = "Sections";
|
|
163
|
+
DefinitionName["Table"] = "Table";
|
|
164
|
+
DefinitionName["TableSPV"] = "TableSPV";
|
|
165
|
+
DefinitionName["TableColumn"] = "TableColumn";
|
|
166
|
+
DefinitionName["ToolBarAction"] = "ToolBarAction";
|
|
95
167
|
DefinitionName["ToolBarLR"] = "ToolBar<LineItems>";
|
|
96
168
|
DefinitionName["ToolBar"] = "ToolBar";
|
|
97
|
-
DefinitionName["
|
|
98
|
-
DefinitionName["CustomColumn"] = "TableCustomColumn";
|
|
169
|
+
DefinitionName["ViewTableColumn"] = "ViewTableColumn";
|
|
99
170
|
DefinitionName["ViewCustomColumn"] = "ViewTableCustomColumn";
|
|
100
|
-
DefinitionName["CustomColumnOP"] = "TableCustomColumnOP";
|
|
101
|
-
DefinitionName["Position"] = "Position";
|
|
102
|
-
DefinitionName["PositionOP"] = "PositionOP";
|
|
103
|
-
DefinitionName["ListReportFilterBar"] = "ListReportFilterBar";
|
|
104
|
-
DefinitionName["AnalyticalListPageFilterBar"] = "AnalyticalListPageFilterBar";
|
|
105
|
-
DefinitionName["ALPChart"] = "ALPChart";
|
|
106
|
-
DefinitionName["ALPChartView"] = "ALPChartView";
|
|
107
171
|
DefinitionName["ViewChartToolBar"] = "ViewChartToolBar";
|
|
108
|
-
DefinitionName["Table"] = "Table";
|
|
109
|
-
DefinitionName["LRTableView"] = "LRTableView";
|
|
110
|
-
DefinitionName["LRChartView"] = "LRChartView";
|
|
111
|
-
DefinitionName["Actions"] = "Actions";
|
|
112
172
|
DefinitionName["ViewToolBarAction"] = "ViewToolBarAction";
|
|
113
|
-
DefinitionName["ChartToolBarAction"] = "ChartToolBarAction";
|
|
114
|
-
DefinitionName["ToolBarAction"] = "ToolBarAction";
|
|
115
|
-
DefinitionName["ObjectPageToolBarAction"] = "ObjectPageToolBarAction";
|
|
116
|
-
DefinitionName["MultiTableModeV4"] = "MultiTableModeV4";
|
|
117
|
-
DefinitionName["AnnotationPathAsObject"] = "AnnotationPathAsObject";
|
|
118
|
-
DefinitionName["ALPTable"] = "ALPTable";
|
|
119
|
-
DefinitionName["ALPTableView"] = "ALPTableView";
|
|
120
173
|
})(DefinitionName = exports.DefinitionName || (exports.DefinitionName = {}));
|
|
174
|
+
var PropertyName;
|
|
175
|
+
(function (PropertyName) {
|
|
176
|
+
PropertyName["actions"] = "actions";
|
|
177
|
+
PropertyName["annotationPath"] = "annotationPath";
|
|
178
|
+
PropertyName["chart"] = "chart";
|
|
179
|
+
PropertyName["defaultPath"] = "defaultPath";
|
|
180
|
+
PropertyName["defaultTemplateAnnotationPath"] = "defaultTemplateAnnotationPath";
|
|
181
|
+
PropertyName["sections"] = "sections";
|
|
182
|
+
PropertyName["table"] = "table";
|
|
183
|
+
PropertyName["views"] = "views";
|
|
184
|
+
})(PropertyName = exports.PropertyName || (exports.PropertyName = {}));
|
|
185
|
+
var SchemaTag;
|
|
186
|
+
(function (SchemaTag) {
|
|
187
|
+
SchemaTag["hidden"] = "hidden";
|
|
188
|
+
SchemaTag["isViewNode"] = "isViewNode";
|
|
189
|
+
SchemaTag["annotationPath"] = "annotationPath";
|
|
190
|
+
SchemaTag["annotationType"] = "annotationType";
|
|
191
|
+
SchemaTag["artifactType"] = "artifactType";
|
|
192
|
+
SchemaTag["controlType"] = "controlType";
|
|
193
|
+
SchemaTag["dataType"] = "dataType";
|
|
194
|
+
SchemaTag["propertyIndex"] = "propertyIndex";
|
|
195
|
+
SchemaTag["key"] = "key";
|
|
196
|
+
})(SchemaTag = exports.SchemaTag || (exports.SchemaTag = {}));
|
|
121
197
|
exports.METADATAPATH = 'webapp/localService/metadata.xml';
|
|
122
198
|
exports.MANIFESTPATH = 'webapp/manifest.json';
|
|
123
199
|
exports.VOCWITHSLASH = '/@com.sap.vocabularies';
|
|
124
200
|
exports.VOCWITHCOLONS = '::@com.sap.vocabularies';
|
|
125
201
|
exports.UIVOCABULARY = 'com.sap.vocabularies.UI.v1';
|
|
202
|
+
exports.UIVOCABULARYDOT = 'com.sap.vocabularies.UI.v1.';
|
|
126
203
|
exports.QUICKVARPATH = '/quickVariantSelection';
|
|
127
204
|
exports.QUICKVARPATHX = '/quickVariantSelectionX';
|
|
128
205
|
exports.DATESETTINGSPATH = '/filterSettings/dateSettings';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/sync/common/types.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/sync/common/types.ts"],"names":[],"mappings":";;AAeA,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,gCAAa,CAAA;IACb,wCAAqB,CAAA;AACzB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B;AAED,IAAY,WAGX;AAHD,WAAY,WAAW;IACnB,kCAAmB,CAAA;IACnB,sCAAuB,CAAA;AAC3B,CAAC,EAHW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAGtB;AAED,IAAY,OAaX;AAbD,WAAY,OAAO;IACf,wBAAa,CAAA;IACb,+BAAoB,CAAA;IACpB,0BAAe,CAAA;IACf,4BAAiB,CAAA;IACjB,wBAAa,CAAA;IACb,8BAAmB,CAAA;IACnB,wCAA6B,CAAA;IAC7B,oCAAyB,CAAA;IACzB,wBAAa,CAAA;IACb,gCAAqB,CAAA;IACrB,sBAAW,CAAA;IACX,6BAAkB,CAAA;AACtB,CAAC,EAbW,OAAO,GAAP,eAAO,KAAP,eAAO,QAalB;AACD,IAAY,QAEX;AAFD,WAAY,QAAQ;IAChB,4BAAgB,CAAA;AACpB,CAAC,EAFW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAEnB;AACY,QAAA,gBAAgB,GAAG,YAAY,CAAC;AAChC,QAAA,iBAAiB,GAAG,aAAa,CAAC;AAQ/C,IAAY,WAIX;AAJD,WAAY,WAAW;IACnB,kCAAmB,CAAA;IACnB,wCAAyB,CAAA;IACzB,8CAA+B,CAAA;AACnC,CAAC,EAJW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAItB;AAED,IAAY,YAIX;AAJD,WAAY,YAAY;IACpB,qCAAqB,CAAA;IACrB,yCAAyB,CAAA;IACzB,yCAAyB,CAAA;AAC7B,CAAC,EAJW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAIvB;AAED,IAAY,WAoBX;AApBD,WAAY,WA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B,GAAG,YAAY,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import type { FacetConfigs, FileData, FacetConfig, FacetSection, SchemaFilePath } from './types';
|
|
2
|
-
import type {
|
|
1
|
+
import type { FacetConfigs, FileData, FacetConfig, FacetSection, SchemaFilePath, anyFacetType } from './types';
|
|
2
|
+
import type { ConverterOutput, DataFieldAbstractTypes, EntityType, PropertyAnnotations, PropertyPath } from '@sap-ux/vocabularies-types';
|
|
3
3
|
import type { Manifest } from '../../specification/common';
|
|
4
4
|
import { FioriElementsVersion, PageType } from '../../specification/common';
|
|
5
5
|
import { SchemaType } from '../../specification/schemaAccess';
|
|
6
6
|
import type { ExtensionLogger } from '../../apiTypes';
|
|
7
7
|
import type { MetadataInstanceInterface } from './decoration/factory';
|
|
8
|
+
import type { Definition } from 'typescript-json-schema';
|
|
8
9
|
export declare enum TemplateType {
|
|
9
10
|
ListReportObjectPageV2 = "ListReportObjectPageV2",
|
|
10
11
|
ListReportObjectPageV4 = "ListReportObjectPageV4",
|
|
@@ -75,7 +76,7 @@ export declare function findAlias(namespace: string, oDataServiceAVT: ConverterO
|
|
|
75
76
|
* @param {ExtensionLogger} logger - Logger class for logging messages
|
|
76
77
|
* @returns {FacetSection} - object comprising the relevant facet information
|
|
77
78
|
*/
|
|
78
|
-
export declare function getSectionFacet(facetDefinition:
|
|
79
|
+
export declare function getSectionFacet(facetDefinition: anyFacetType, sourceEntityType: EntityType, oDataServiceAVT: ConverterOutput, logger?: ExtensionLogger, oDataVersion?: FioriElementsVersion, keyForRelatedFacetKeys?: boolean): FacetSection | undefined;
|
|
79
80
|
/**
|
|
80
81
|
* Finds the alias for a given namespace in the references' section of the converted service metadata.
|
|
81
82
|
* An empty object is created if the path element does not exist yet.
|
|
@@ -131,13 +132,20 @@ export declare function getTemplateTypeFromManifest(manifest: Manifest, fioriEle
|
|
|
131
132
|
* @param section - section in the app schema
|
|
132
133
|
* @param facetKey - key of the facet
|
|
133
134
|
*/
|
|
134
|
-
export declare function addSectionTitleAndDescription(facet: FacetConfig, section:
|
|
135
|
+
export declare function addSectionTitleAndDescription(facet: FacetConfig, section: Definition, facetKey: string): void;
|
|
136
|
+
/**
|
|
137
|
+
* Adds target title or description to a section or header section in an app schema
|
|
138
|
+
* @param facet - intermediate facet structure comprising annotation information
|
|
139
|
+
* @param section - section in the app schema
|
|
140
|
+
* @param facetKey - key of the facet
|
|
141
|
+
*/
|
|
142
|
+
export declare function addTargetTitleAndSectionDescription(facet: FacetConfig, section: Definition, facetKey: string): void;
|
|
135
143
|
/**
|
|
136
144
|
* Creates a default object for a new section or subsection, and adds the ID as title if present.
|
|
137
145
|
* @param facet Facet configuration, to be analyzed
|
|
138
146
|
* @returns the new section object
|
|
139
147
|
*/
|
|
140
|
-
export declare function
|
|
148
|
+
export declare function createDefaultSection(appSchema: Definition, facet: FacetConfig, facetKey: string): Definition;
|
|
141
149
|
/**
|
|
142
150
|
* Retrieve page section data(so far id/key and label/description).
|
|
143
151
|
* @param {EntityType} entityType The actual entityType
|
|
@@ -168,11 +176,10 @@ export declare const getSchemaFilePath: (schemaType: PageType | SchemaType, enti
|
|
|
168
176
|
* @param appVersion - Fiori Elements version - V2 or V4.
|
|
169
177
|
* @param pageType - Page type.
|
|
170
178
|
* @param entitySet - Entity Set.
|
|
171
|
-
* @param navigationProperty - Navigation property (optional).
|
|
172
179
|
* @param viewId - Custom page's viewId (optional).
|
|
173
180
|
* @returns {string} Generated page id
|
|
174
181
|
*/
|
|
175
|
-
export declare function generatePageId(
|
|
182
|
+
export declare function generatePageId(pageType: PageType, entitySet: string, viewId?: string): string;
|
|
176
183
|
export declare type NextDefinition = {
|
|
177
184
|
configObject?: object;
|
|
178
185
|
targetDefinition?: object;
|