@sap/ux-specification 1.71.41 → 1.71.45
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 +88 -22
- package/README.md +4 -4
- package/dist/documentation/runDocu-min.js +2 -0
- package/dist/documentation/runDocu-min.js.LICENSE.txt +24 -0
- package/dist/documentation/styleDocu.css +227 -0
- package/dist/documentation/v2/v2-AnalyticalListPage.html +49 -0
- package/dist/documentation/v2/v2-ApplicationV2.html +48 -0
- package/dist/documentation/v2/v2-ListReport.html +49 -0
- package/dist/documentation/v2/v2-ObjectPage.html +49 -0
- package/dist/documentation/v2/v2-OverviewPage.html +49 -0
- package/dist/index-min.js +1 -1
- package/dist/schemas/v2/AnalyticalListPageConfig.json +76 -6
- package/dist/schemas/v2/ApplicationV2.json +6 -0
- package/dist/schemas/v2/ListReportConfig.json +75 -5
- package/dist/schemas/v2/ObjectPageConfig.json +302 -42
- package/dist/schemas/v2/OverviewPageConfig.json +24 -41
- package/dist/scripts/extractDocu.js +186 -19
- package/dist/scripts/extractDocu.js.map +1 -1
- package/dist/scripts/runDocu.d.ts +1 -0
- package/dist/scripts/runDocu.js +561 -0
- package/dist/scripts/runDocu.js.map +1 -0
- package/dist/specification/v2/index-min.js +1 -1
- package/dist/src/api.js +8 -14
- package/dist/src/api.js.map +1 -1
- package/dist/src/apiTypes.d.ts +72 -65
- package/dist/src/extensionLogger.js +2 -2
- package/dist/src/extensionLogger.js.map +1 -1
- package/dist/src/specification/common/page.d.ts +2 -2
- package/dist/src/specification/common/page.js.map +1 -1
- package/dist/src/specification/common/types.d.ts +1 -0
- package/dist/src/specification/common/webapp/manifest/Manifest.d.ts +3 -1
- package/dist/src/specification/common/webapp/manifest/Manifest.js +1 -0
- package/dist/src/specification/common/webapp/manifest/Manifest.js.map +1 -1
- package/dist/src/specification/common/webapp/manifest/sapOvp.d.ts +2 -1
- package/dist/src/specification/v2/ApplicationV2.d.ts +6 -0
- package/dist/src/specification/v2/controls/AnalyticalListPageChart.d.ts +1 -1
- package/dist/src/specification/v2/controls/Card.d.ts +11 -13
- package/dist/src/specification/v2/controls/Card.js +0 -3
- package/dist/src/specification/v2/controls/Card.js.map +1 -1
- package/dist/src/specification/v2/controls/Facets.d.ts +2 -1
- package/dist/src/specification/v2/controls/Field.d.ts +10 -0
- package/dist/src/specification/v2/controls/Field.js +3 -0
- package/dist/src/specification/v2/controls/Field.js.map +1 -0
- package/dist/src/specification/v2/controls/FormAction.d.ts +38 -0
- package/dist/src/specification/v2/controls/FormAction.js +15 -0
- package/dist/src/specification/v2/controls/FormAction.js.map +1 -0
- package/dist/src/specification/v2/controls/ObjectPageFooter.d.ts +11 -0
- package/dist/src/specification/v2/controls/ObjectPageFooter.js +3 -0
- package/dist/src/specification/v2/controls/ObjectPageFooter.js.map +1 -0
- package/dist/src/specification/v2/controls/ObjectPageForm.d.ts +16 -0
- package/dist/src/specification/v2/controls/ObjectPageForm.js +3 -0
- package/dist/src/specification/v2/controls/ObjectPageForm.js.map +1 -0
- package/dist/src/specification/v2/controls/ObjectPageHeaderAction.d.ts +21 -5
- package/dist/src/specification/v2/controls/ObjectPageHeaderAction.js +0 -5
- package/dist/src/specification/v2/controls/ObjectPageHeaderAction.js.map +1 -1
- package/dist/src/specification/v2/controls/ObjectPageSection.d.ts +24 -7
- package/dist/src/specification/v2/controls/ObjectPageSection.js.map +1 -1
- package/dist/src/specification/v2/controls/ObjectPageTable.d.ts +4 -1
- package/dist/src/specification/v2/controls/Table.d.ts +4 -0
- package/dist/src/specification/v2/controls/Table.js.map +1 -1
- package/dist/src/specification/v2/controls/ToolBar.d.ts +2 -6
- package/dist/src/specification/v2/controls/index.d.ts +5 -0
- package/dist/src/specification/v2/controls/index.js +1 -1
- package/dist/src/specification/v2/controls/index.js.map +1 -1
- package/dist/src/specification/v2/pages/ListReportConfig.d.ts +2 -1
- package/dist/src/specification/v2/pages/ObjectPageConfig.d.ts +2 -1
- package/dist/src/specification/v2/webapp/manifest/sapUiPageV2.d.ts +1 -0
- package/dist/src/specification/v2/webapp/manifest/sapUiPageV2.js +1 -0
- package/dist/src/specification/v2/webapp/manifest/sapUiPageV2.js.map +1 -1
- package/dist/src/sync/common/decoration/control.d.ts +8 -1
- package/dist/src/sync/common/decoration/control.js +62 -21
- package/dist/src/sync/common/decoration/control.js.map +1 -1
- package/dist/src/sync/common/flexUtils.d.ts +2 -2
- package/dist/src/sync/common/flexUtils.js +10 -5
- package/dist/src/sync/common/flexUtils.js.map +1 -1
- package/dist/src/sync/common/generate/index.d.ts +1 -0
- package/dist/src/sync/common/generate/index.js +7 -0
- package/dist/src/sync/common/generate/index.js.map +1 -0
- package/dist/src/sync/common/generate/objectPage.d.ts +49 -0
- package/dist/src/sync/common/generate/objectPage.js +319 -0
- package/dist/src/sync/common/generate/objectPage.js.map +1 -0
- package/dist/src/sync/common/import/utils.d.ts +28 -0
- package/dist/src/sync/common/import/utils.js +75 -0
- package/dist/src/sync/common/import/utils.js.map +1 -0
- package/dist/src/sync/common/importProject.js +53 -50
- package/dist/src/sync/common/importProject.js.map +1 -1
- package/dist/src/sync/common/index.d.ts +2 -0
- package/dist/src/sync/common/index.js +2 -0
- package/dist/src/sync/common/index.js.map +1 -1
- package/dist/src/sync/common/types.d.ts +19 -6
- package/dist/src/sync/common/types.js +12 -0
- package/dist/src/sync/common/types.js.map +1 -1
- package/dist/src/sync/common/utils.d.ts +30 -9
- package/dist/src/sync/common/utils.js +255 -173
- package/dist/src/sync/common/utils.js.map +1 -1
- package/dist/src/sync/v2/application.d.ts +2 -0
- package/dist/src/sync/v2/application.js +18 -5
- package/dist/src/sync/v2/application.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Card.d.ts +4 -3
- package/dist/src/sync/v2/export/controls/Card.js +16 -9
- package/dist/src/sync/v2/export/controls/Card.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Field.d.ts +4 -0
- package/dist/src/sync/v2/export/controls/Field.js +32 -0
- package/dist/src/sync/v2/export/controls/Field.js.map +1 -0
- package/dist/src/sync/v2/export/controls/FormAction.d.ts +15 -0
- package/dist/src/sync/v2/export/controls/FormAction.js +127 -0
- package/dist/src/sync/v2/export/controls/FormAction.js.map +1 -0
- package/dist/src/sync/v2/export/controls/Fragment.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/Fragment.js +100 -87
- package/dist/src/sync/v2/export/controls/Fragment.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeader.js +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeader.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.d.ts +6 -2
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js +43 -4
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.d.ts +25 -0
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js +113 -0
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js.map +1 -0
- package/dist/src/sync/v2/export/controls/ObjectPageTable.js +4 -5
- package/dist/src/sync/v2/export/controls/ObjectPageTable.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Table.d.ts +8 -1
- package/dist/src/sync/v2/export/controls/Table.js +88 -31
- package/dist/src/sync/v2/export/controls/Table.js.map +1 -1
- package/dist/src/sync/v2/export/controls/TableColumn.js +1 -1
- package/dist/src/sync/v2/export/controls/TableColumn.js.map +1 -1
- package/dist/src/sync/v2/export/controls/index.d.ts +3 -0
- package/dist/src/sync/v2/export/controls/index.js +3 -0
- package/dist/src/sync/v2/export/controls/index.js.map +1 -1
- package/dist/src/sync/v2/export/export.d.ts +24 -10
- package/dist/src/sync/v2/export/export.js +285 -503
- package/dist/src/sync/v2/export/export.js.map +1 -1
- package/dist/src/sync/v2/export/exportPage.d.ts +10 -0
- package/dist/src/sync/v2/export/exportPage.js +311 -0
- package/dist/src/sync/v2/export/exportPage.js.map +1 -0
- package/dist/src/sync/v2/export/pages/ListReport.d.ts +3 -1
- package/dist/src/sync/v2/export/pages/ListReport.js.map +1 -1
- package/dist/src/sync/v2/export/pages/OverviewPage.d.ts +3 -1
- package/dist/src/sync/v2/export/pages/OverviewPage.js.map +1 -1
- package/dist/src/sync/v2/export/view-controller-generator.js +1 -1
- package/dist/src/sync/v2/export/view-controller-generator.js.map +1 -1
- package/dist/src/sync/v2/generate/analyticalListReport.d.ts +3 -9
- package/dist/src/sync/v2/generate/analyticalListReport.js +13 -16
- package/dist/src/sync/v2/generate/analyticalListReport.js.map +1 -1
- package/dist/src/sync/v2/generate/generate.js +28 -6
- package/dist/src/sync/v2/generate/generate.js.map +1 -1
- package/dist/src/sync/v2/generate/listReport.d.ts +3 -9
- package/dist/src/sync/v2/generate/listReport.js +20 -23
- package/dist/src/sync/v2/generate/listReport.js.map +1 -1
- package/dist/src/sync/v2/generate/objectPage.d.ts +3 -10
- package/dist/src/sync/v2/generate/objectPage.js +226 -141
- package/dist/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v2/generate/utils.d.ts +1 -2
- package/dist/src/sync/v2/generate/utils.js +21 -6
- package/dist/src/sync/v2/generate/utils.js.map +1 -1
- package/dist/src/sync/v2/import/app/appProvider.js +25 -3
- package/dist/src/sync/v2/import/app/appProvider.js.map +1 -1
- package/dist/src/sync/v2/import/app/ovpProvider.d.ts +2 -1
- package/dist/src/sync/v2/import/app/ovpProvider.js +7 -3
- package/dist/src/sync/v2/import/app/ovpProvider.js.map +1 -1
- package/dist/src/sync/v2/import/common/index.d.ts +10 -1
- package/dist/src/sync/v2/import/common/index.js +17 -38
- package/dist/src/sync/v2/import/common/index.js.map +1 -1
- package/dist/src/sync/v2/import/controls/table.d.ts +2 -1
- package/dist/src/sync/v2/import/controls/table.js +1 -1
- package/dist/src/sync/v2/import/controls/table.js.map +1 -1
- package/dist/src/sync/v2/import/pages/analyticalListPage.d.ts +3 -8
- package/dist/src/sync/v2/import/pages/analyticalListPage.js +23 -24
- package/dist/src/sync/v2/import/pages/analyticalListPage.js.map +1 -1
- package/dist/src/sync/v2/import/pages/listReport.d.ts +3 -7
- package/dist/src/sync/v2/import/pages/listReport.js +23 -24
- package/dist/src/sync/v2/import/pages/listReport.js.map +1 -1
- package/dist/src/sync/v2/import/pages/objectPage.d.ts +6 -12
- package/dist/src/sync/v2/import/pages/objectPage.js +293 -154
- package/dist/src/sync/v2/import/pages/objectPage.js.map +1 -1
- package/dist/src/sync/v2/import/pages/overviewPage.d.ts +9 -1
- package/dist/src/sync/v2/import/pages/overviewPage.js +69 -39
- package/dist/src/sync/v2/import/pages/overviewPage.js.map +1 -1
- package/dist/src/sync/v2/import/utils.d.ts +3 -3
- package/dist/src/sync/v2/import/utils.js +5 -5
- package/dist/src/sync/v2/import/utils.js.map +1 -1
- package/dist/src/sync/v2/types.d.ts +32 -0
- package/dist/src/sync/v2/types.js +15 -0
- package/dist/src/sync/v2/types.js.map +1 -1
- package/dist/src/sync/v4/utils/StableIdHelper.d.ts +4 -0
- package/dist/src/sync/v4/utils/StableIdHelper.js +153 -0
- package/dist/src/sync/v4/utils/StableIdHelper.js.map +1 -0
- package/package.json +15 -7
package/dist/src/api.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const page_1 = require("./specification/common/page");
|
|
7
7
|
const schemaAccess_1 = require("./specification/schemaAccess");
|
|
8
8
|
const generate_1 = require("./sync/v2/generate");
|
|
9
|
-
const
|
|
9
|
+
const exportPage_1 = require("./sync/v2/export/exportPage");
|
|
10
10
|
const import_1 = require("./sync/v2/import");
|
|
11
11
|
const common_1 = require("./sync/common");
|
|
12
12
|
/**
|
|
@@ -60,7 +60,7 @@ function exportConfig(exportParameters) {
|
|
|
60
60
|
* Handle v2 export
|
|
61
61
|
*/
|
|
62
62
|
const v2Params = exportParameters[page_1.FioriElementsVersion.v2];
|
|
63
|
-
exportResults =
|
|
63
|
+
exportResults = exportPage_1.exportPageV2(v2Params, ui5Config);
|
|
64
64
|
}
|
|
65
65
|
return exportResults;
|
|
66
66
|
}
|
|
@@ -77,20 +77,16 @@ function importConfig(importParameters) {
|
|
|
77
77
|
*/
|
|
78
78
|
const v2Params = importParameters[page_1.FioriElementsVersion.v2];
|
|
79
79
|
if (v2Params[schemaAccess_1.SchemaType.ListReport]) {
|
|
80
|
-
|
|
81
|
-
schema = import_1.createListReportConfig(manifest, flex, jsonSchema, fragments, logger);
|
|
80
|
+
schema = import_1.createListReportConfig(v2Params[schemaAccess_1.SchemaType.ListReport]);
|
|
82
81
|
}
|
|
83
82
|
else if (v2Params[schemaAccess_1.SchemaType.ObjectPage]) {
|
|
84
|
-
|
|
85
|
-
schema = import_1.createObjectPageConfig(manifest, flex, jsonSchema, entitySet, fragments, logger);
|
|
83
|
+
schema = import_1.createObjectPageConfigV2(v2Params[schemaAccess_1.SchemaType.ObjectPage]);
|
|
86
84
|
}
|
|
87
85
|
else if (v2Params[schemaAccess_1.SchemaType.OverviewPage]) {
|
|
88
|
-
|
|
89
|
-
schema = import_1.createOverviewPageConfig(manifest, jsonSchema);
|
|
86
|
+
schema = import_1.createOverviewPageConfig(v2Params[schemaAccess_1.SchemaType.OverviewPage]);
|
|
90
87
|
}
|
|
91
88
|
else if (v2Params[schemaAccess_1.SchemaType.AnalyticalListPage]) {
|
|
92
|
-
|
|
93
|
-
schema = import_1.createAnalyticalListPageConfig(manifest, flex, jsonSchema, fragments, logger);
|
|
89
|
+
schema = import_1.createAnalyticalListPageConfig(v2Params[schemaAccess_1.SchemaType.AnalyticalListPage]);
|
|
94
90
|
}
|
|
95
91
|
}
|
|
96
92
|
return schema;
|
|
@@ -102,8 +98,7 @@ exports.importConfig = importConfig;
|
|
|
102
98
|
* @returns a list of files, comprising app schemas and configs
|
|
103
99
|
*/
|
|
104
100
|
async function importProject(importParameters) {
|
|
105
|
-
|
|
106
|
-
return files;
|
|
101
|
+
return await common_1.importProjectSchemaAndConfig(importParameters);
|
|
107
102
|
}
|
|
108
103
|
exports.importProject = importProject;
|
|
109
104
|
/**
|
|
@@ -112,8 +107,7 @@ exports.importProject = importProject;
|
|
|
112
107
|
* @returns a list of files, comprising all app schemas
|
|
113
108
|
*/
|
|
114
109
|
async function importProjectSchema(importParameters) {
|
|
115
|
-
|
|
116
|
-
return files;
|
|
110
|
+
return await common_1.importProjectSchema(importParameters);
|
|
117
111
|
}
|
|
118
112
|
exports.importProjectSchema = importProjectSchema;
|
|
119
113
|
/**
|
package/dist/src/api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/api.ts"],"names":[],"mappings":";;AAAA;;GAEG;AACH,sDAAmE;AACnE,+DAA0D;AAS1D,iDAK4B;AAC5B,
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../src/api.ts"],"names":[],"mappings":";;AAAA;;GAEG;AACH,sDAAmE;AACnE,+DAA0D;AAS1D,iDAK4B;AAC5B,4DAA2D;AAC3D,6CAK0B;AAC1B,0CAA6G;AAG7G;;;;;GAKG;AACH,6DAAgE;AAAvD,0CAAA,gBAAgB,CAAA;AAEzB;;;GAGG;AACH,SAAgB,cAAc,CAAC,kBAA4C;IACvE,IAAI,MAAc,CAAC;IACnB,IAAI,kBAAkB,CAAC,2BAAoB,CAAC,EAAE,CAAC,EAAE;QAC7C;;WAEG;QACH,MAAM,QAAQ,GAAG,kBAAkB,CAAC,2BAAoB,CAAC,EAAE,CAAC,CAAC;QAC7D,IAAI,QAAQ,CAAC,yBAAU,CAAC,UAAU,CAAC,EAAE;YACjC,MAAM,EAAE,aAAa,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,QAAQ,CAAC,yBAAU,CAAC,UAAU,CAAC,CAAC;YACvG,MAAM,GAAG,wCAA6B,CAAC,aAAa,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;SACtG;aAAM,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Aa;IACzB,OAAO;QACH,OAAO,EAAE,GAAG;KACf,CAAC;AACN,CAAC;AAJD,sCAIC"}
|
package/dist/src/apiTypes.d.ts
CHANGED
|
@@ -3,13 +3,15 @@ import { FioriElementsVersion } from './specification/common/page';
|
|
|
3
3
|
import { Page as PageV2 } from './specification/v2/page';
|
|
4
4
|
import { FileData, File, ExportResults, ServiceMetadata } from './sync/common/types';
|
|
5
5
|
import { ApplicationV2, ObjectPageConfig as ObjectPageConfigV2, ListReportConfig as ListReportConfigV2, OverviewPageConfig as OverviewPageConfigV2, AnalyticalListPageConfig as AnalyticalListPageConfigV2, Manifest as ManifestV2, FlexChangeLayer } from './v2';
|
|
6
|
+
import { ConverterOutput } from '@sap-ux/vocabularies-types';
|
|
7
|
+
export declare type MessageMetadataType = (object | string | number)[];
|
|
6
8
|
/**
|
|
7
9
|
* Interface used to define a logger for the specificaton API
|
|
8
10
|
*/
|
|
9
11
|
export interface ExtensionLogger {
|
|
10
|
-
info: (message: string, ...meta:
|
|
11
|
-
warning: (message: string, ...meta:
|
|
12
|
-
error: (message: string, ...meta:
|
|
12
|
+
info: (message: string, ...meta: MessageMetadataType) => void;
|
|
13
|
+
warning: (message: string, ...meta: MessageMetadataType) => void;
|
|
14
|
+
error: (message: string, ...meta: MessageMetadataType) => void;
|
|
13
15
|
}
|
|
14
16
|
/**
|
|
15
17
|
* Types for V2 schema generation
|
|
@@ -51,8 +53,9 @@ export declare type GenerateAnalyticalListPageV2 = {
|
|
|
51
53
|
logger?: ExtensionLogger;
|
|
52
54
|
};
|
|
53
55
|
};
|
|
56
|
+
export declare type GenerateSchemaV2Type = GenerateListReportV2 | GenerateObjectPageV2 | GenerateOverviewPageV2 | GenerateAnalyticalListPageV2;
|
|
54
57
|
export interface GenerateSchemaV2 {
|
|
55
|
-
[FioriElementsVersion.v2]:
|
|
58
|
+
[FioriElementsVersion.v2]: GenerateSchemaV2Type;
|
|
56
59
|
}
|
|
57
60
|
/**
|
|
58
61
|
* Union types for schema generation
|
|
@@ -61,33 +64,40 @@ export declare type GenerateSchemaParameters = GenerateSchemaV2;
|
|
|
61
64
|
/**
|
|
62
65
|
* Types for v2 export
|
|
63
66
|
*/
|
|
67
|
+
export declare type ExportListReportV2Parameters = {
|
|
68
|
+
appId: string;
|
|
69
|
+
page: PageV2;
|
|
70
|
+
manifest: object;
|
|
71
|
+
jsonSchema: object;
|
|
72
|
+
fragments?: FileData[];
|
|
73
|
+
logger?: ExtensionLogger;
|
|
74
|
+
};
|
|
64
75
|
export declare type ExportListReportV2 = {
|
|
65
|
-
[SchemaType.ListReport]:
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
76
|
+
[SchemaType.ListReport]: ExportListReportV2Parameters;
|
|
77
|
+
};
|
|
78
|
+
export declare type ExportAnalyticalListPageV2Parameters = ExportListReportV2Parameters;
|
|
79
|
+
export declare type ExportAnalyticalListPageV2 = {
|
|
80
|
+
[SchemaType.AnalyticalListPage]: ExportAnalyticalListPageV2Parameters;
|
|
81
|
+
};
|
|
82
|
+
export declare type ExportOverviewPageV2Parameters = {
|
|
83
|
+
page: PageV2;
|
|
84
|
+
manifest: object;
|
|
85
|
+
jsonSchema: object;
|
|
86
|
+
logger?: ExtensionLogger;
|
|
73
87
|
};
|
|
74
88
|
export declare type ExportOverviewPageV2 = {
|
|
75
|
-
[SchemaType.OverviewPage]:
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
89
|
+
[SchemaType.OverviewPage]: ExportOverviewPageV2Parameters;
|
|
90
|
+
};
|
|
91
|
+
export declare type ExportObjectPageV2Parameters = {
|
|
92
|
+
appId: string;
|
|
93
|
+
page: PageV2;
|
|
94
|
+
manifest: object;
|
|
95
|
+
jsonSchema: object;
|
|
96
|
+
fragments?: FileData[];
|
|
97
|
+
logger?: ExtensionLogger;
|
|
81
98
|
};
|
|
82
99
|
export declare type ExportObjectPageV2 = {
|
|
83
|
-
[SchemaType.ObjectPage]:
|
|
84
|
-
appId: string;
|
|
85
|
-
page: PageV2;
|
|
86
|
-
manifest: object;
|
|
87
|
-
jsonSchema: object;
|
|
88
|
-
fragments?: FileData[];
|
|
89
|
-
logger?: ExtensionLogger;
|
|
90
|
-
};
|
|
100
|
+
[SchemaType.ObjectPage]: ExportObjectPageV2Parameters;
|
|
91
101
|
};
|
|
92
102
|
export declare type ExportAppV2 = {
|
|
93
103
|
[SchemaType.Application]: {
|
|
@@ -97,22 +107,13 @@ export declare type ExportAppV2 = {
|
|
|
97
107
|
logger?: ExtensionLogger;
|
|
98
108
|
};
|
|
99
109
|
};
|
|
100
|
-
export declare type ExportAnalyticalListPageV2 = {
|
|
101
|
-
[SchemaType.AnalyticalListPage]: {
|
|
102
|
-
appId: string;
|
|
103
|
-
page: PageV2;
|
|
104
|
-
manifest: object;
|
|
105
|
-
jsonSchema: object;
|
|
106
|
-
fragments?: FileData[];
|
|
107
|
-
logger?: ExtensionLogger;
|
|
108
|
-
};
|
|
109
|
-
};
|
|
110
110
|
export interface UI5Version {
|
|
111
111
|
ui5Version?: string;
|
|
112
112
|
layer?: FlexChangeLayer;
|
|
113
113
|
}
|
|
114
|
+
export declare type ExportParametersV2Type = ExportListReportV2 | ExportObjectPageV2 | ExportOverviewPageV2 | ExportAppV2 | ExportAnalyticalListPageV2;
|
|
114
115
|
export interface ExportParametersV2 {
|
|
115
|
-
[FioriElementsVersion.v2]:
|
|
116
|
+
[FioriElementsVersion.v2]: ExportParametersV2Type;
|
|
116
117
|
}
|
|
117
118
|
/**
|
|
118
119
|
* Union types for export
|
|
@@ -121,43 +122,42 @@ export declare type ExportConfigParameters = UI5Version & ExportParametersV2;
|
|
|
121
122
|
/**
|
|
122
123
|
* Types for v2 import
|
|
123
124
|
*/
|
|
125
|
+
export declare type ImportListReportV2Parameters = {
|
|
126
|
+
manifest: object;
|
|
127
|
+
flex: string[];
|
|
128
|
+
jsonSchema: object;
|
|
129
|
+
fragments?: FileData[];
|
|
130
|
+
logger?: ExtensionLogger;
|
|
131
|
+
};
|
|
124
132
|
export declare type ImportListReportV2 = {
|
|
125
|
-
[SchemaType.ListReport]:
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
133
|
+
[SchemaType.ListReport]: ImportListReportV2Parameters;
|
|
134
|
+
};
|
|
135
|
+
export declare type ImportObjectPageV2Parameters = {
|
|
136
|
+
manifest: object;
|
|
137
|
+
flex: string[];
|
|
138
|
+
jsonSchema: object;
|
|
139
|
+
entitySet: string;
|
|
140
|
+
fragments?: FileData[];
|
|
141
|
+
logger?: ExtensionLogger;
|
|
132
142
|
};
|
|
133
143
|
export declare type ImportObjectPageV2 = {
|
|
134
|
-
[SchemaType.ObjectPage]:
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
logger?: ExtensionLogger;
|
|
141
|
-
};
|
|
144
|
+
[SchemaType.ObjectPage]: ImportObjectPageV2Parameters;
|
|
145
|
+
};
|
|
146
|
+
export declare type ImportOverviewPageV2Parameters = {
|
|
147
|
+
manifest: object;
|
|
148
|
+
jsonSchema: object;
|
|
149
|
+
logger?: ExtensionLogger;
|
|
142
150
|
};
|
|
143
151
|
export declare type ImportOverviewPageV2 = {
|
|
144
|
-
[SchemaType.OverviewPage]:
|
|
145
|
-
manifest: object;
|
|
146
|
-
jsonSchema: object;
|
|
147
|
-
logger?: ExtensionLogger;
|
|
148
|
-
};
|
|
152
|
+
[SchemaType.OverviewPage]: ImportOverviewPageV2Parameters;
|
|
149
153
|
};
|
|
154
|
+
export declare type ImportALPV2Parameters = ImportListReportV2Parameters;
|
|
150
155
|
export declare type ImportAnalyticalListPageV2 = {
|
|
151
|
-
[SchemaType.AnalyticalListPage]:
|
|
152
|
-
manifest: object;
|
|
153
|
-
flex: string[];
|
|
154
|
-
jsonSchema: object;
|
|
155
|
-
fragments?: FileData[];
|
|
156
|
-
logger?: ExtensionLogger;
|
|
157
|
-
};
|
|
156
|
+
[SchemaType.AnalyticalListPage]: ImportALPV2Parameters;
|
|
158
157
|
};
|
|
158
|
+
export declare type ImportParametersV2Type = ImportListReportV2 | ImportObjectPageV2 | ImportOverviewPageV2 | ImportAnalyticalListPageV2;
|
|
159
159
|
export interface ImportParametersV2 {
|
|
160
|
-
[FioriElementsVersion.v2]:
|
|
160
|
+
[FioriElementsVersion.v2]: ImportParametersV2Type;
|
|
161
161
|
}
|
|
162
162
|
export declare type ImportResultsV2 = ListReportConfigV2 | ObjectPageConfigV2 | OverviewPageConfigV2 | AnalyticalListPageConfigV2;
|
|
163
163
|
export declare type ImportConfigParameters = ImportParametersV2;
|
|
@@ -172,6 +172,13 @@ export interface ImportProjectParameters {
|
|
|
172
172
|
fragments?: FileData[];
|
|
173
173
|
logger?: ExtensionLogger;
|
|
174
174
|
}
|
|
175
|
+
export interface GenerateAppSchemaParameters {
|
|
176
|
+
manifest: ManifestV2;
|
|
177
|
+
serviceAVT: ConverterOutput;
|
|
178
|
+
fioriElementsVersion: FioriElementsVersion;
|
|
179
|
+
fragments?: FileData[];
|
|
180
|
+
logger?: ExtensionLogger;
|
|
181
|
+
}
|
|
175
182
|
/**
|
|
176
183
|
* API Version
|
|
177
184
|
*/
|
|
@@ -24,10 +24,10 @@ exports.log = (logger, logEntry, ...meta) => {
|
|
|
24
24
|
}
|
|
25
25
|
else {
|
|
26
26
|
if (logEntry.location) {
|
|
27
|
-
console.log(exports.LogSeverityLabel[logEntry.severity]
|
|
27
|
+
console.log(`${exports.LogSeverityLabel[logEntry.severity]}: ${logEntry.message}; location: ${logEntry.location}`, ...meta);
|
|
28
28
|
}
|
|
29
29
|
else {
|
|
30
|
-
console.log(exports.LogSeverityLabel[logEntry.severity]
|
|
30
|
+
console.log(`${exports.LogSeverityLabel[logEntry.severity]}: '${logEntry.message}`, ...meta);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensionLogger.js","sourceRoot":"","sources":["../../src/extensionLogger.ts"],"names":[],"mappings":";;AAEA,IAAkB,WAIjB;AAJD,WAAkB,WAAW;IACzB,8BAAe,CAAA;IACf,kCAAmB,CAAA;IACnB,4BAAa,CAAA;AACjB,CAAC,EAJiB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAI5B;AAEY,QAAA,gBAAgB,GAAG;IAC5B,qBAAmB,EAAE,OAAO;IAC5B,yBAAqB,EAAE,SAAS;IAChC,mBAAkB,EAAE,aAAa;CACpC,CAAC;AA2BF;;;;;;GAMG;AACU,QAAA,GAAG,GAAG,CAAC,MAAuB,EAAE,QAAkB,EAAE,GAAG,IAAkC,EAAQ,EAAE;IAC5G,IAAI,MAAM,EAAE;QACR,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,QAAQ,EAAE,GAAG,IAAI,CAAC,CAAC;KAC3E;SAAM;QACH,IAAI,QAAQ,CAAC,QAAQ,EAAE;YACnB,OAAO,CAAC,GAAG,CACP,wBAAgB,CAAC,QAAQ,CAAC,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"extensionLogger.js","sourceRoot":"","sources":["../../src/extensionLogger.ts"],"names":[],"mappings":";;AAEA,IAAkB,WAIjB;AAJD,WAAkB,WAAW;IACzB,8BAAe,CAAA;IACf,kCAAmB,CAAA;IACnB,4BAAa,CAAA;AACjB,CAAC,EAJiB,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAI5B;AAEY,QAAA,gBAAgB,GAAG;IAC5B,qBAAmB,EAAE,OAAO;IAC5B,yBAAqB,EAAE,SAAS;IAChC,mBAAkB,EAAE,aAAa;CACpC,CAAC;AA2BF;;;;;;GAMG;AACU,QAAA,GAAG,GAAG,CAAC,MAAuB,EAAE,QAAkB,EAAE,GAAG,IAAkC,EAAQ,EAAE;IAC5G,IAAI,MAAM,EAAE;QACR,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAC,QAAQ,EAAE,GAAG,IAAI,CAAC,CAAC;KAC3E;SAAM;QACH,IAAI,QAAQ,CAAC,QAAQ,EAAE;YACnB,OAAO,CAAC,GAAG,CACP,GAAG,wBAAgB,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,QAAQ,CAAC,OAAO,eAAe,QAAQ,CAAC,QAAQ,EAAE,EAC7F,GAAG,IAAI,CACV,CAAC;SACL;aAAM;YACH,OAAO,CAAC,GAAG,CAAC,GAAG,wBAAgB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,QAAQ,CAAC,OAAO,EAAE,EAAE,GAAG,IAAI,CAAC,CAAC;SACxF;KACJ;AACL,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FlexibleColumnLayoutType } from '../common/types';
|
|
1
|
+
import { FlexibleColumnLayoutType, ManifestSettingsType } from '../common/types';
|
|
2
2
|
export declare enum PageType {
|
|
3
3
|
ObjectPage = "ObjectPage",
|
|
4
4
|
ListReport = "ListReport",
|
|
@@ -36,6 +36,6 @@ export interface PagesBase {
|
|
|
36
36
|
[key: string]: PageBase;
|
|
37
37
|
}
|
|
38
38
|
export interface SapUiGenericAppPageSettings {
|
|
39
|
-
[key: string]:
|
|
39
|
+
[key: string]: ManifestSettingsType;
|
|
40
40
|
}
|
|
41
41
|
export declare const PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP: Map<PageType, string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.js","sourceRoot":"","sources":["../../../../src/specification/common/page.ts"],"names":[],"mappings":";;AAEA,IAAY,QAMX;AAND,WAAY,QAAQ;IAChB,qCAAyB,CAAA;IACzB,qCAAyB,CAAA;IACzB,yCAA6B,CAAA;IAC7B,qCAAyB,CAAA;IACzB,qDAAyC,CAAA;AAC7C,CAAC,EANW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAMnB;AAgBD,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC5B,iCAAS,CAAA;IACT,iCAAS,CAAA;AACb,CAAC,EAHW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAG/B;AACD,IAAY,YAGX;AAHD,WAAY,YAAY;IACpB,yBAAS,CAAA;IACT,yBAAS,CAAA;AACb,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB;
|
|
1
|
+
{"version":3,"file":"page.js","sourceRoot":"","sources":["../../../../src/specification/common/page.ts"],"names":[],"mappings":";;AAEA,IAAY,QAMX;AAND,WAAY,QAAQ;IAChB,qCAAyB,CAAA;IACzB,qCAAyB,CAAA;IACzB,yCAA6B,CAAA;IAC7B,qCAAyB,CAAA;IACzB,qDAAyC,CAAA;AAC7C,CAAC,EANW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAMnB;AAgBD,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC5B,iCAAS,CAAA;IACT,iCAAS,CAAA;AACb,CAAC,EAHW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAG/B;AACD,IAAY,YAGX;AAHD,WAAY,YAAY;IACpB,yBAAS,CAAA;IACT,yBAAS,CAAA;AACb,CAAC,EAHW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAGvB;AAaY,QAAA,oCAAoC,GAA0B,IAAI,GAAG,CAAC;IAC/E,CAAC,QAAQ,CAAC,UAAU,EAAE,0DAA0D,CAAC;IACjF,CAAC,QAAQ,CAAC,kBAAkB,EAAE,0EAA0E,CAAC;IACzG,CAAC,QAAQ,CAAC,UAAU,EAAE,uDAAuD,CAAC;CACjF,CAAC,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { SapUiAppV2 } from '../../../v2/webapp/manifest/sapUiPageV2';
|
|
|
2
2
|
import { SapUi5 as SapUi5V2 } from '../../../v2/webapp/manifest/sapUi5';
|
|
3
3
|
import { SapUi as SapUiV2 } from '../../../v2/webapp/manifest/sapUi';
|
|
4
4
|
import { SapOvp } from './sapOvp';
|
|
5
|
+
import { ManifestSettingsType } from '../../types';
|
|
5
6
|
export declare enum DataSourceType {
|
|
6
7
|
OData = "OData",
|
|
7
8
|
ODataAnnotation = "ODataAnnotation"
|
|
@@ -24,7 +25,7 @@ export interface SapAppDataSource {
|
|
|
24
25
|
}
|
|
25
26
|
export declare type ODataVersionType = '2.0' | '4.0';
|
|
26
27
|
export interface SapAppDataSourceSettings {
|
|
27
|
-
[key: string]:
|
|
28
|
+
[key: string]: ManifestSettingsType;
|
|
28
29
|
annotations?: string[];
|
|
29
30
|
localUri?: string;
|
|
30
31
|
odataVersion?: ODataVersionType;
|
|
@@ -36,6 +37,7 @@ export declare enum ManifestSection {
|
|
|
36
37
|
ovp = "sap.ovp",
|
|
37
38
|
ui5 = "sap.ui5"
|
|
38
39
|
}
|
|
40
|
+
export declare const GENERICAPPSETTINGS: string;
|
|
39
41
|
export interface Manifest {
|
|
40
42
|
_version?: string;
|
|
41
43
|
'sap.ui'?: SapUiV2;
|
|
@@ -13,4 +13,5 @@ var ManifestSection;
|
|
|
13
13
|
ManifestSection["ovp"] = "sap.ovp";
|
|
14
14
|
ManifestSection["ui5"] = "sap.ui5";
|
|
15
15
|
})(ManifestSection = exports.ManifestSection || (exports.ManifestSection = {}));
|
|
16
|
+
exports.GENERICAPPSETTINGS = `${ManifestSection.generic}/settings`;
|
|
16
17
|
//# sourceMappingURL=Manifest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Manifest.js","sourceRoot":"","sources":["../../../../../../src/specification/common/webapp/manifest/Manifest.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"Manifest.js","sourceRoot":"","sources":["../../../../../../src/specification/common/webapp/manifest/Manifest.ts"],"names":[],"mappings":";;AAMA,IAAY,cAGX;AAHD,WAAY,cAAc;IACtB,iCAAe,CAAA;IACf,qDAAmC,CAAA;AACvC,CAAC,EAHW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAGzB;AA4BD,IAAY,eAMX;AAND,WAAY,eAAe;IACvB,gCAAa,CAAA;IACb,kCAAe,CAAA;IACf,iDAA8B,CAAA;IAC9B,kCAAe,CAAA;IACf,kCAAe,CAAA;AACnB,CAAC,EANW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAM1B;AAEY,QAAA,kBAAkB,GAAG,GAAG,eAAe,CAAC,OAAO,WAAW,CAAC"}
|
|
@@ -113,6 +113,7 @@ export interface SapOvpCard {
|
|
|
113
113
|
*/
|
|
114
114
|
tabs?: [SapOvpTabSetting, ...SapOvpTabSetting[]];
|
|
115
115
|
}
|
|
116
|
+
export declare type CardSettingNavigationType = 'dataPointNav' | 'chartNav' | 'headerNav' | 'noHeaderNav';
|
|
116
117
|
/**
|
|
117
118
|
* Represents the card specific properties - properties that are passed to the card
|
|
118
119
|
*/
|
|
@@ -216,7 +217,7 @@ export interface CardSetting {
|
|
|
216
217
|
/**
|
|
217
218
|
* Represents the configuration to alter the navigation mode in OVP Analytical Cards
|
|
218
219
|
*/
|
|
219
|
-
navigation?:
|
|
220
|
+
navigation?: CardSettingNavigationType;
|
|
220
221
|
/**
|
|
221
222
|
* Represents a switch to Show or Hide Filters in Cards Headers in OVP application
|
|
222
223
|
*/
|
|
@@ -3,10 +3,12 @@ import { Pages } from './page';
|
|
|
3
3
|
export interface AppSettings {
|
|
4
4
|
/**
|
|
5
5
|
* To change the application header, in your project artifacts, change the i18n property file for your app under webapp/i18n/i18n.properties ->appTitle. Then, refer to the title as {{appTitle}} in the sap.app section of the manifest file.
|
|
6
|
+
* @i18nClassification TIT: Title of the application
|
|
6
7
|
*/
|
|
7
8
|
title?: string;
|
|
8
9
|
/**
|
|
9
10
|
* To change the application header, in your project artifacts, change i18n property file for your app under webapp/i18n/i18n.properties ->appDescription. Then, refer to the description as {{appDescription}} in the sap.app section of the manifest file.
|
|
11
|
+
* @i18nClassification TIT: Description of the application
|
|
10
12
|
*/
|
|
11
13
|
description?: string;
|
|
12
14
|
/**
|
|
@@ -17,6 +19,10 @@ export interface AppSettings {
|
|
|
17
19
|
* The flexible column layout allows users to see more details on the page, and to expand and collapse the screen areas. For the overview page, this layout is not relevant.
|
|
18
20
|
*/
|
|
19
21
|
flexibleColumnLayout?: FlexibleColumnLayout;
|
|
22
|
+
/**
|
|
23
|
+
* The flexEnabled indicates if the application supports UI adaptation.
|
|
24
|
+
*/
|
|
25
|
+
flexEnabled?: boolean;
|
|
20
26
|
}
|
|
21
27
|
export interface ApplicationV2 extends Application {
|
|
22
28
|
settings?: AppSettings;
|
|
@@ -104,7 +104,7 @@ export interface CommonCardSettings {
|
|
|
104
104
|
*/
|
|
105
105
|
defaultSpan?: DefaultSpanDef;
|
|
106
106
|
/**
|
|
107
|
-
*
|
|
107
|
+
* Define an authorization check at card level
|
|
108
108
|
*/
|
|
109
109
|
requireAppAuthorization?: string;
|
|
110
110
|
}
|
|
@@ -122,12 +122,9 @@ export declare enum CardTemplateType {
|
|
|
122
122
|
}
|
|
123
123
|
export declare const cardTemplateTypeMap: {
|
|
124
124
|
'sap.ovp.cards.charts.analytical': string;
|
|
125
|
-
'sap.ovp.cards.v4.charts.analytical': string;
|
|
126
125
|
'sap.ovp.cards.list': string;
|
|
127
|
-
'sap.ovp.cards.v4.list': string;
|
|
128
126
|
'sap.ovp.cards.linklist': string;
|
|
129
127
|
'sap.ovp.cards.table': string;
|
|
130
|
-
'sap.ovp.cards.v4.table': string;
|
|
131
128
|
'sap.ovp.cards.stack': string;
|
|
132
129
|
};
|
|
133
130
|
export declare enum CardSettingsType {
|
|
@@ -197,10 +194,6 @@ export interface StackCard {
|
|
|
197
194
|
* Represents the properties that are passed to the stack card.
|
|
198
195
|
*/
|
|
199
196
|
stackCardSettings: StackCardSettings;
|
|
200
|
-
/**
|
|
201
|
-
* Represents the Stack Card with view switch control.
|
|
202
|
-
*/
|
|
203
|
-
tabs?: [TabSetting, ...TabSetting[]];
|
|
204
197
|
}
|
|
205
198
|
/**
|
|
206
199
|
* Link List Card
|
|
@@ -220,10 +213,6 @@ export interface LinklistCard {
|
|
|
220
213
|
* Represents the properties that are passed to the link list card.
|
|
221
214
|
*/
|
|
222
215
|
linkListCardSettings: LinkListCardSettings;
|
|
223
|
-
/**
|
|
224
|
-
* Represents the card with view switch control.
|
|
225
|
-
*/
|
|
226
|
-
tabs?: [TabSetting, ...TabSetting[]];
|
|
227
216
|
}
|
|
228
217
|
/**
|
|
229
218
|
* Table Card
|
|
@@ -276,6 +265,7 @@ export interface AnalyticalCard {
|
|
|
276
265
|
*/
|
|
277
266
|
tabs?: [TabSetting, ...TabSetting[]];
|
|
278
267
|
}
|
|
268
|
+
export declare type CustomCardNavigationType = 'dataPointNav' | 'chartNav' | 'headerNav' | 'noHeaderNav';
|
|
279
269
|
/**
|
|
280
270
|
* @displayName settings
|
|
281
271
|
*/
|
|
@@ -364,7 +354,7 @@ export interface CustomCardSettings extends CommonCardSettings {
|
|
|
364
354
|
/**
|
|
365
355
|
* Represents the configuration to alter the navigation mode in OVP Analytical Cards.
|
|
366
356
|
*/
|
|
367
|
-
navigation?:
|
|
357
|
+
navigation?: CustomCardNavigationType;
|
|
368
358
|
/**
|
|
369
359
|
* Represents a switch to Show or Hide Filters in Cards Headers in OVP application.
|
|
370
360
|
*/
|
|
@@ -617,6 +607,14 @@ export interface LinkListCardSettings {
|
|
|
617
607
|
* staticContent represents the static content of a static link list card.
|
|
618
608
|
*/
|
|
619
609
|
staticContent?: StaticContent[];
|
|
610
|
+
/**
|
|
611
|
+
* Define an authorization check at card level
|
|
612
|
+
*/
|
|
613
|
+
requireAppAuthorization?: string;
|
|
614
|
+
/**
|
|
615
|
+
* Represents the annotation path.
|
|
616
|
+
*/
|
|
617
|
+
annotationPath?: string;
|
|
620
618
|
}
|
|
621
619
|
export interface StaticContent {
|
|
622
620
|
/**
|
|
@@ -16,12 +16,9 @@ var CardTemplateType;
|
|
|
16
16
|
})(CardTemplateType = exports.CardTemplateType || (exports.CardTemplateType = {}));
|
|
17
17
|
exports.cardTemplateTypeMap = {
|
|
18
18
|
'sap.ovp.cards.charts.analytical': 'AnalyticalCard',
|
|
19
|
-
'sap.ovp.cards.v4.charts.analytical': 'AnalyticalCard',
|
|
20
19
|
'sap.ovp.cards.list': 'ListCard',
|
|
21
|
-
'sap.ovp.cards.v4.list': 'ListCard',
|
|
22
20
|
'sap.ovp.cards.linklist': 'LinklistCard',
|
|
23
21
|
'sap.ovp.cards.table': 'TableCard',
|
|
24
|
-
'sap.ovp.cards.v4.table': 'TableCard',
|
|
25
22
|
'sap.ovp.cards.stack': 'StackCard'
|
|
26
23
|
};
|
|
27
24
|
var CardSettingsType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../../../src/specification/v2/controls/Card.ts"],"names":[],"mappings":";;AAqHA,IAAY,aAIX;AAJD,WAAY,aAAa;IACrB,0CAAyB,CAAA;IACzB,kDAAiC,CAAA;IACjC,oDAAmC,CAAA;AACvC,CAAC,EAJW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAIxB;AAED,IAAY,gBAMX;AAND,WAAY,gBAAgB;IACxB,kEAA8C,CAAA;IAC9C,+CAA2B,CAAA;IAC3B,uDAAmC,CAAA;IACnC,iDAA6B,CAAA;IAC7B,iDAA6B,CAAA;AACjC,CAAC,EANW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAM3B;AAEY,QAAA,mBAAmB,GAAG;IAC/B,iCAAiC,EAAE,gBAAgB;IACnD,
|
|
1
|
+
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../../../../src/specification/v2/controls/Card.ts"],"names":[],"mappings":";;AAqHA,IAAY,aAIX;AAJD,WAAY,aAAa;IACrB,0CAAyB,CAAA;IACzB,kDAAiC,CAAA;IACjC,oDAAmC,CAAA;AACvC,CAAC,EAJW,aAAa,GAAb,qBAAa,KAAb,qBAA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ObjectPageAnalyticalTable, ObjectPageGridTable, ObjectPageTreeTable } from './ObjectPageTable';
|
|
2
|
+
export declare type ObjectPageTableTypeV2 = ObjectPageResponsiveTable | ObjectPageAnalyticalTable | ObjectPageGridTable | ObjectPageTreeTable;
|
|
2
3
|
/**
|
|
3
4
|
* Table Facet
|
|
4
5
|
* @isViewNode true
|
|
5
6
|
*/
|
|
6
7
|
export interface LineItemFacet {
|
|
7
|
-
table:
|
|
8
|
+
table: ObjectPageTableTypeV2;
|
|
8
9
|
}
|
|
9
10
|
/**
|
|
10
11
|
* Form Facet
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Field.js","sourceRoot":"","sources":["../../../../../src/specification/v2/controls/Field.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export declare type SapUiCoreURI = string;
|
|
2
|
+
export declare enum ButtonType {
|
|
3
|
+
Accept = "Accept",
|
|
4
|
+
Back = "Back",
|
|
5
|
+
Default = "Default",
|
|
6
|
+
Emphasized = "Emphasized",
|
|
7
|
+
Ghost = "Ghost",
|
|
8
|
+
Reject = "Reject",
|
|
9
|
+
Transparent = "Transparent",
|
|
10
|
+
Unstyled = "Unstyled",
|
|
11
|
+
Up = "Up"
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Action
|
|
15
|
+
* @isViewNode true
|
|
16
|
+
*/
|
|
17
|
+
export interface FormAction {
|
|
18
|
+
/**
|
|
19
|
+
* Text for tooltip of button
|
|
20
|
+
*/
|
|
21
|
+
tooltip?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Icon to be displayed as graphical element within the Button. Can be an image or icon from the icon font, represented as RFC 3986 conformant URI.
|
|
24
|
+
*/
|
|
25
|
+
icon?: SapUiCoreURI;
|
|
26
|
+
/**
|
|
27
|
+
* Alternative icon for the active (depressed) state of the button, represented as RFC 3986 conformant URI.
|
|
28
|
+
*/
|
|
29
|
+
activeIcon?: SapUiCoreURI;
|
|
30
|
+
/**
|
|
31
|
+
* Defines the Button type.
|
|
32
|
+
*/
|
|
33
|
+
type?: ButtonType;
|
|
34
|
+
/**
|
|
35
|
+
* Whether the button should be visible on the screen.
|
|
36
|
+
*/
|
|
37
|
+
visible?: boolean;
|
|
38
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var ButtonType;
|
|
4
|
+
(function (ButtonType) {
|
|
5
|
+
ButtonType["Accept"] = "Accept";
|
|
6
|
+
ButtonType["Back"] = "Back";
|
|
7
|
+
ButtonType["Default"] = "Default";
|
|
8
|
+
ButtonType["Emphasized"] = "Emphasized";
|
|
9
|
+
ButtonType["Ghost"] = "Ghost";
|
|
10
|
+
ButtonType["Reject"] = "Reject";
|
|
11
|
+
ButtonType["Transparent"] = "Transparent";
|
|
12
|
+
ButtonType["Unstyled"] = "Unstyled";
|
|
13
|
+
ButtonType["Up"] = "Up";
|
|
14
|
+
})(ButtonType = exports.ButtonType || (exports.ButtonType = {}));
|
|
15
|
+
//# sourceMappingURL=FormAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormAction.js","sourceRoot":"","sources":["../../../../../src/specification/v2/controls/FormAction.ts"],"names":[],"mappings":";;AAEA,IAAY,UAUX;AAVD,WAAY,UAAU;IAClB,+BAAiB,CAAA;IACjB,2BAAa,CAAA;IACb,iCAAmB,CAAA;IACnB,uCAAyB,CAAA;IACzB,6BAAe,CAAA;IACf,+BAAiB,CAAA;IACjB,yCAA2B,CAAA;IAC3B,mCAAqB,CAAA;IACrB,uBAAS,CAAA;AACb,CAAC,EAVW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAUrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObjectPageFooter.js","sourceRoot":"","sources":["../../../../../src/specification/v2/controls/ObjectPageFooter.ts"],"names":[],"mappings":""}
|