@sap/ux-specification 1.71.50 → 1.71.55
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 +71 -6
- package/dist/documentation/runDocu-min.js +1 -1
- package/dist/documentation/styleDocu.css +7 -14
- 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/AnalyticalListPageConfig.json +14 -0
- package/dist/schemas/v2/ListReportConfig.json +14 -0
- package/dist/scripts/extractDocu.js +0 -3
- package/dist/scripts/extractDocu.js.map +1 -1
- package/dist/scripts/runDocu.js +40 -47
- package/dist/scripts/runDocu.js.map +1 -1
- package/dist/scripts/spec.js.map +1 -1
- package/dist/scripts/to-json-schema.js.map +1 -1
- package/dist/specification/v2/index-min.js +1 -1
- package/dist/src/api.d.ts +2 -2
- package/dist/src/api.js +12 -12
- package/dist/src/api.js.map +1 -1
- package/dist/src/apiTypes.d.ts +8 -6
- package/dist/src/apiTypes.js +0 -2
- package/dist/src/apiTypes.js.map +1 -1
- package/dist/src/extensionLogger.d.ts +1 -1
- package/dist/src/project.d.ts +1 -1
- package/dist/src/specification/common/Application.d.ts +3 -3
- package/dist/src/specification/common/page.d.ts +1 -1
- package/dist/src/specification/common/webapp/manifest/Manifest.d.ts +5 -5
- package/dist/src/specification/common/webapp/manifest/sapUi5.d.ts +1 -1
- package/dist/src/specification/schemaAccess.d.ts +1 -1
- package/dist/src/specification/schemaAccess.js +1 -2
- package/dist/src/specification/schemaAccess.js.map +1 -1
- package/dist/src/specification/v2/ApplicationV2.d.ts +2 -2
- package/dist/src/specification/v2/controls/Facets.d.ts +1 -1
- package/dist/src/specification/v2/controls/FilterBar.d.ts +17 -0
- package/dist/src/specification/v2/controls/Footer.d.ts +2 -2
- package/dist/src/specification/v2/controls/ObjectPageForm.d.ts +1 -1
- package/dist/src/specification/v2/controls/ObjectPageHeader.d.ts +1 -1
- package/dist/src/specification/v2/controls/ObjectPageSection.d.ts +2 -2
- package/dist/src/specification/v2/controls/ObjectPageTable.d.ts +3 -3
- package/dist/src/specification/v2/controls/ObjectPageToolBar.d.ts +1 -1
- package/dist/src/specification/v2/controls/Table.d.ts +4 -4
- package/dist/src/specification/v2/controls/ToolBar.d.ts +1 -1
- package/dist/src/specification/v2/page.d.ts +1 -1
- package/dist/src/specification/v2/pages/AnalyticalListPageConfig.d.ts +4 -4
- package/dist/src/specification/v2/pages/ListReportConfig.d.ts +2 -2
- package/dist/src/specification/v2/pages/ObjectPageConfig.d.ts +2 -2
- package/dist/src/specification/v2/pages/OverviewPageConfig.d.ts +2 -2
- package/dist/src/specification/v2/webapp/manifest/sapUi5.d.ts +2 -2
- package/dist/src/specification/v2/webapp/manifest/sapUi5.js +0 -1
- package/dist/src/specification/v2/webapp/manifest/sapUi5.js.map +1 -1
- package/dist/src/specification/v2/webapp/manifest/sapUiPageV2.d.ts +2 -2
- package/dist/src/sync/common/appProvider.d.ts +5 -4
- package/dist/src/sync/common/appProvider.js.map +1 -1
- package/dist/src/sync/common/decoration/control.d.ts +1 -1
- package/dist/src/sync/common/decoration/control.js.map +1 -1
- package/dist/src/sync/common/decoration/decorators.d.ts +1 -1
- package/dist/src/sync/common/decoration/decorators.js.map +1 -1
- package/dist/src/sync/common/decoration/factory.d.ts +2 -2
- package/dist/src/sync/common/decoration/flex.d.ts +2 -2
- package/dist/src/sync/common/flexUtils.d.ts +3 -3
- package/dist/src/sync/common/flexUtils.js.map +1 -1
- package/dist/src/sync/common/generate/objectPage.d.ts +5 -3
- package/dist/src/sync/common/generate/objectPage.js +39 -21
- package/dist/src/sync/common/generate/objectPage.js.map +1 -1
- package/dist/src/sync/common/generate/utils.d.ts +37 -9
- package/dist/src/sync/common/generate/utils.js +116 -30
- package/dist/src/sync/common/generate/utils.js.map +1 -1
- package/dist/src/sync/common/import/utils.d.ts +4 -3
- package/dist/src/sync/common/import/utils.js +3 -2
- package/dist/src/sync/common/import/utils.js.map +1 -1
- package/dist/src/sync/common/importProject.d.ts +4 -4
- package/dist/src/sync/common/importProject.js +3 -1
- package/dist/src/sync/common/importProject.js.map +1 -1
- package/dist/src/sync/common/types.d.ts +28 -6
- package/dist/src/sync/common/types.js +24 -0
- package/dist/src/sync/common/types.js.map +1 -1
- package/dist/src/sync/common/utils.d.ts +11 -8
- package/dist/src/sync/common/utils.js +39 -21
- package/dist/src/sync/common/utils.js.map +1 -1
- package/dist/src/sync/i18n.d.ts +1 -1
- package/dist/src/sync/v2/application.d.ts +2 -2
- package/dist/src/sync/v2/application.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Action.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js.map +1 -1
- package/dist/src/sync/v2/export/controls/AnalyticalListPageKPI.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/Card.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/Field.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/FilterBar.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/FilterBar.js +8 -15
- package/dist/src/sync/v2/export/controls/FilterBar.js.map +1 -1
- package/dist/src/sync/v2/export/controls/FormAction.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/FormAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Fragment.d.ts +5 -11
- package/dist/src/sync/v2/export/controls/Fragment.js +108 -32
- package/dist/src/sync/v2/export/controls/Fragment.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.d.ts +3 -3
- package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeader.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageLayout.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.d.ts +6 -6
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js +12 -15
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageTable.d.ts +4 -4
- package/dist/src/sync/v2/export/controls/ObjectPageTable.js +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageTable.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Table.d.ts +4 -3
- package/dist/src/sync/v2/export/controls/Table.js +26 -25
- package/dist/src/sync/v2/export/controls/Table.js.map +1 -1
- package/dist/src/sync/v2/export/controls/TableColumn.d.ts +2 -2
- package/dist/src/sync/v2/export/controls/ToolBar.d.ts +1 -1
- package/dist/src/sync/v2/export/export.d.ts +3 -3
- package/dist/src/sync/v2/export/export.js +6 -1
- package/dist/src/sync/v2/export/export.js.map +1 -1
- package/dist/src/sync/v2/export/exportPage.d.ts +2 -2
- package/dist/src/sync/v2/export/exportPage.js +1 -9
- package/dist/src/sync/v2/export/exportPage.js.map +1 -1
- package/dist/src/sync/v2/export/factory.d.ts +2 -1
- package/dist/src/sync/v2/export/factory.js.map +1 -1
- package/dist/src/sync/v2/export/manifest.d.ts +1 -1
- package/dist/src/sync/v2/export/manifest.js +2 -1
- package/dist/src/sync/v2/export/manifest.js.map +1 -1
- package/dist/src/sync/v2/export/pages/AnalyticalListPage.d.ts +4 -4
- package/dist/src/sync/v2/export/pages/AnalyticalListPage.js.map +1 -1
- package/dist/src/sync/v2/export/pages/ListReport.d.ts +2 -2
- package/dist/src/sync/v2/export/pages/ListReport.js.map +1 -1
- package/dist/src/sync/v2/export/pages/ObjectPage.d.ts +2 -2
- package/dist/src/sync/v2/export/pages/OverviewPage.d.ts +2 -2
- package/dist/src/sync/v2/export/view-controller-generator.d.ts +2 -2
- package/dist/src/sync/v2/export/view-controller-generator.js.map +1 -1
- package/dist/src/sync/v2/generate/analyticalListReport.d.ts +1 -1
- package/dist/src/sync/v2/generate/analyticalListReport.js +29 -35
- package/dist/src/sync/v2/generate/analyticalListReport.js.map +1 -1
- package/dist/src/sync/v2/generate/generate.d.ts +2 -2
- package/dist/src/sync/v2/generate/generate.js +3 -0
- package/dist/src/sync/v2/generate/generate.js.map +1 -1
- package/dist/src/sync/v2/generate/listReport.d.ts +7 -4
- package/dist/src/sync/v2/generate/listReport.js +25 -19
- package/dist/src/sync/v2/generate/listReport.js.map +1 -1
- package/dist/src/sync/v2/generate/objectPage.d.ts +1 -1
- package/dist/src/sync/v2/generate/objectPage.js +61 -99
- package/dist/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v2/generate/overviewPage.d.ts +1 -1
- package/dist/src/sync/v2/generate/overviewPage.js.map +1 -1
- package/dist/src/sync/v2/generate/utils.d.ts +12 -5
- package/dist/src/sync/v2/generate/utils.js +38 -0
- package/dist/src/sync/v2/generate/utils.js.map +1 -1
- package/dist/src/sync/v2/import/app/appProvider.d.ts +4 -4
- package/dist/src/sync/v2/import/app/appProvider.js.map +1 -1
- package/dist/src/sync/v2/import/app/ovpProvider.d.ts +3 -3
- package/dist/src/sync/v2/import/app/ovpProvider.js.map +1 -1
- package/dist/src/sync/v2/import/common/index.d.ts +6 -5
- package/dist/src/sync/v2/import/common/index.js +3 -34
- package/dist/src/sync/v2/import/common/index.js.map +1 -1
- package/dist/src/sync/v2/import/controls/table.d.ts +1 -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 +2 -2
- package/dist/src/sync/v2/import/pages/analyticalListPage.js +2 -10
- package/dist/src/sync/v2/import/pages/analyticalListPage.js.map +1 -1
- package/dist/src/sync/v2/import/pages/listReport.d.ts +2 -2
- package/dist/src/sync/v2/import/pages/objectPage.d.ts +1 -1
- package/dist/src/sync/v2/import/pages/objectPage.js +29 -14
- package/dist/src/sync/v2/import/pages/objectPage.js.map +1 -1
- package/dist/src/sync/v2/import/pages/overviewPage.d.ts +2 -2
- package/dist/src/sync/v2/import/pages/overviewPage.js.map +1 -1
- package/dist/src/sync/v2/import/utils.d.ts +3 -2
- package/dist/src/sync/v2/import/utils.js +28 -3
- package/dist/src/sync/v2/import/utils.js.map +1 -1
- package/dist/src/sync/v2/types.d.ts +7 -7
- package/dist/src/sync/v4/utils/StableIdHelper.js.map +1 -1
- package/dist/test/test-data/flexChange/v2/stta.prod.man/index.d.ts +1 -1
- package/dist/test/test-projects/index.d.ts +1 -1
- package/dist/test/test-utils/utils.d.ts +5 -4
- package/package.json +18 -20
package/dist/src/project.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Target } from './page';
|
|
2
|
-
import { AppSettings as CommonSettingsV2, Pages as PagesV2 } from '../v2';
|
|
3
|
-
import { FlexibleColumnLayoutType } from '../common/types';
|
|
1
|
+
import type { Target } from './page';
|
|
2
|
+
import type { AppSettings as CommonSettingsV2, Pages as PagesV2 } from '../v2';
|
|
3
|
+
import type { FlexibleColumnLayoutType } from '../common/types';
|
|
4
4
|
export interface Application {
|
|
5
5
|
$schema?: string;
|
|
6
6
|
id?: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { SapUiAppV2 } from '../../../v2/webapp/manifest/sapUiPageV2';
|
|
2
|
-
import { SapUi5 as SapUi5V2 } from '../../../v2/webapp/manifest/sapUi5';
|
|
3
|
-
import { SapUi as SapUiV2 } from '../../../v2/webapp/manifest/sapUi';
|
|
4
|
-
import { SapOvp } from './sapOvp';
|
|
5
|
-
import { ManifestSettingsType } from '../../types';
|
|
1
|
+
import type { SapUiAppV2 } from '../../../v2/webapp/manifest/sapUiPageV2';
|
|
2
|
+
import type { SapUi5 as SapUi5V2 } from '../../../v2/webapp/manifest/sapUi5';
|
|
3
|
+
import type { SapUi as SapUiV2 } from '../../../v2/webapp/manifest/sapUi';
|
|
4
|
+
import type { SapOvp } from './sapOvp';
|
|
5
|
+
import type { ManifestSettingsType } from '../../types';
|
|
6
6
|
export declare enum DataSourceType {
|
|
7
7
|
OData = "OData",
|
|
8
8
|
ODataAnnotation = "ODataAnnotation"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FlexibleColumnLayoutType } from '../../../common/types';
|
|
1
|
+
import type { FlexibleColumnLayoutType } from '../../../common/types';
|
|
2
2
|
export declare const FIORI_FCL_ROOT_VIEW_NAME = "sap.fe.templates.RootContainer.view.Fcl";
|
|
3
3
|
export declare const FIORI_FCL_ROOT_ID = "appRootView";
|
|
4
4
|
export declare enum ViewTypes {
|
|
@@ -53,8 +53,7 @@ const readJsonSchema = async (path) => {
|
|
|
53
53
|
exports.getGenericSchema = async (version, schemaType) => {
|
|
54
54
|
try {
|
|
55
55
|
const path = getPathToGenericSchema(version, schemaType);
|
|
56
|
-
|
|
57
|
-
return schema;
|
|
56
|
+
return await readJsonSchema(path);
|
|
58
57
|
}
|
|
59
58
|
catch (error) {
|
|
60
59
|
throw new Error(`No schema available for type: ${schemaType}, version: ${version}. Error was ${error.message}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemaAccess.js","sourceRoot":"","sources":["../../../src/specification/schemaAccess.ts"],"names":[],"mappings":";;AAAA,2BAA8B;AAC9B,+BAA4B;AAG5B;;GAEG;AACH,IAAY,UAMX;AAND,WAAY,UAAU;IAClB,yCAA2B,CAAA;IAC3B,uCAAyB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CAAC;aACf;iBAAM;gBACH,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;aAC7B;QACL,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC,CAAC;AAEF;;;;GAIG;AACU,QAAA,gBAAgB,GAAG,KAAK,EAAE,OAA6B,EAAE,UAAsB,EAAiB,EAAE;IAC3G,IAAI;QACA,MAAM,IAAI,GAAG,sBAAsB,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;QACzD,OAAO,MAAM,cAAc,CAAC,IAAI,CAAC,CAAC;KACrC;IAAC,OAAO,KAAK,EAAE;QACZ,MAAM,IAAI,KAAK,CAAC,iCAAiC,UAAU,cAAc,OAAO,eAAe,KAAK,CAAC,OAAO,EAAE,CAAC,CAAC;KACnH;AACL,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Application, FlexibleColumnLayout } from '../common';
|
|
2
|
-
import { Pages } from './page';
|
|
1
|
+
import type { Application, FlexibleColumnLayout } from '../common';
|
|
2
|
+
import type { 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.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ObjectPageResponsiveTable, ObjectPageAnalyticalTable, ObjectPageGridTable, ObjectPageTreeTable } from './ObjectPageTable';
|
|
1
|
+
import type { ObjectPageResponsiveTable, ObjectPageAnalyticalTable, ObjectPageGridTable, ObjectPageTreeTable } from './ObjectPageTable';
|
|
2
2
|
export declare type ObjectPageTableTypeV2 = ObjectPageResponsiveTable | ObjectPageAnalyticalTable | ObjectPageGridTable | ObjectPageTreeTable;
|
|
3
3
|
/**
|
|
4
4
|
* Table Facet
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Filter Field
|
|
3
|
+
* @isViewNode true
|
|
4
|
+
*/
|
|
5
|
+
export declare type SelectionField = {};
|
|
6
|
+
/**
|
|
7
|
+
* Filter Fields
|
|
8
|
+
* @isViewNode true
|
|
9
|
+
*/
|
|
10
|
+
export interface SelectionFields {
|
|
11
|
+
[key: string]: SelectionField;
|
|
12
|
+
}
|
|
1
13
|
export declare type FilterTypeCategory = {
|
|
2
14
|
/**
|
|
3
15
|
* Choose 'key' to define filter values for single values of the date range type, or 'category' to filter by a whole subset.
|
|
@@ -46,6 +58,11 @@ export interface ListReportFilterBar {
|
|
|
46
58
|
* Handles visibility of the Restore button on the FilterBar.
|
|
47
59
|
*/
|
|
48
60
|
showRestoreOnFB?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* @isViewNode true
|
|
63
|
+
* Selection Fields
|
|
64
|
+
*/
|
|
65
|
+
selectionFields?: SelectionFields;
|
|
49
66
|
}
|
|
50
67
|
/**
|
|
51
68
|
* Filter Bar
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ViewTypes, SAPUI5_FRAGMENT_CLASS, SAPUI5_VIEW_CLASS } from '../../common/webapp/manifest/sapUi5';
|
|
1
|
+
import type { ObjectPageAnalyticalTable, ObjectPageGridTable, ObjectPageTreeTable, ObjectPageForm, ObjectPageResponsiveTable } from './index';
|
|
2
|
+
import type { ViewTypes, SAPUI5_FRAGMENT_CLASS, SAPUI5_VIEW_CLASS } from '../../common/webapp/manifest/sapUi5';
|
|
3
3
|
/**
|
|
4
4
|
* Section
|
|
5
5
|
* @isViewNode true
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GenericColumns, TableTypeV2, PopinLayout, QuickVariantSelection
|
|
2
|
-
import { ObjectPageToolBar } from './ObjectPageToolBar';
|
|
3
|
-
import { ExportType } from '../../common
|
|
1
|
+
import type { GenericColumns, TableTypeV2, QuickVariant, PopinLayout, QuickVariantSelection } from './Table';
|
|
2
|
+
import type { ObjectPageToolBar } from './ObjectPageToolBar';
|
|
3
|
+
import type { ExportType } from '../../common';
|
|
4
4
|
export interface QuickVariantSelectionOP extends QuickVariantSelection {
|
|
5
5
|
/**
|
|
6
6
|
* To show the number of records available, set showCounts to true.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ExportType } from '../../common/types';
|
|
2
|
-
import { SAPUI5_FRAGMENT_CLASS } from '../../common/webapp/manifest/sapUi5';
|
|
3
|
-
import { ToolBar } from './ToolBar';
|
|
4
|
-
import { Action } from './Action';
|
|
1
|
+
import type { ExportType } from '../../common/types';
|
|
2
|
+
import type { SAPUI5_FRAGMENT_CLASS } from '../../common/webapp/manifest/sapUi5';
|
|
3
|
+
import type { ToolBar } from './ToolBar';
|
|
4
|
+
import type { Action } from './Action';
|
|
5
5
|
export declare enum HAlign {
|
|
6
6
|
initial = "Initial",
|
|
7
7
|
left = "Left",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AnalyticalListPageFilterBar, ALPAnalyticalTable, ALPGridTable, ALPResponsiveTable, GenericFooter } from '../controls';
|
|
2
|
-
import { PageConfig } from '../../common/page';
|
|
3
|
-
import { ChartSettings } from '../../../specification/v2/controls';
|
|
4
|
-
import { KPISettings } from '../../../specification/v2/controls/AnalyticalListPageKPI';
|
|
1
|
+
import type { AnalyticalListPageFilterBar, ALPAnalyticalTable, ALPGridTable, ALPResponsiveTable, GenericFooter } from '../controls';
|
|
2
|
+
import type { PageConfig } from '../../common/page';
|
|
3
|
+
import type { ChartSettings } from '../../../specification/v2/controls';
|
|
4
|
+
import type { KPISettings } from '../../../specification/v2/controls/AnalyticalListPageKPI';
|
|
5
5
|
export interface AnalyticalListPageConfig extends PageConfig {
|
|
6
6
|
/**
|
|
7
7
|
* Set fitContent to true to optimize the dynamic page responsiveness on small screens and behavior when the DynamicPageHeader is expanded or collapsed.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { TreeTable, ListReportFilterBar, GenericFooter, AnalyticalTable, GridTable, ResponsiveTable } from '../controls';
|
|
2
|
-
import { PageConfig } from '../../common/page';
|
|
1
|
+
import type { TreeTable, ListReportFilterBar, GenericFooter, AnalyticalTable, GridTable, ResponsiveTable } from '../controls';
|
|
2
|
+
import type { PageConfig } from '../../common/page';
|
|
3
3
|
export declare type ListReportTableTypeV2 = ResponsiveTable | TreeTable | AnalyticalTable | GridTable;
|
|
4
4
|
export interface ListReportConfig extends PageConfig {
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ObjectPageHeader, GenericSections, ObjectPageLayout, CustomSections, ObjectPageFooter } from '../controls';
|
|
2
|
-
import { PageConfig } from '../../common/page';
|
|
1
|
+
import type { ObjectPageHeader, GenericSections, ObjectPageLayout, CustomSections, ObjectPageFooter } from '../controls';
|
|
2
|
+
import type { PageConfig } from '../../common/page';
|
|
3
3
|
export interface ObjectPageConfig extends PageConfig {
|
|
4
4
|
/**
|
|
5
5
|
* Set showConfirmationOnDraftActivate to true to enable a confirmation before a save if you have pending warnings.
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* This file is is based on a json schema to typescript generator and adjusted to our needs.
|
|
3
3
|
* JSON schema source: https://github.wdf.sap.corp/AppDescriptor/manifest/blob/master/schema/sap.ovp/subschema_sapovp.json
|
|
4
4
|
*/
|
|
5
|
-
import { PageConfig } from '../../common/page';
|
|
6
|
-
import { ListCard, AnalyticalCard, StackCard, LinklistCard, TableCard, CustomCard } from '../controls/Card';
|
|
5
|
+
import type { PageConfig } from '../../common/page';
|
|
6
|
+
import type { ListCard, AnalyticalCard, StackCard, LinklistCard, TableCard, CustomCard } from '../controls/Card';
|
|
7
7
|
export declare enum ContainerLayoutType {
|
|
8
8
|
fixed = "fixed",
|
|
9
9
|
resizable = "resizable"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ManifestSection } from '../../../common';
|
|
2
|
-
import { SapUi5RootView, SapUi5OdataModel, SapUi5ResourceModel, SapUi5RoutingRoute, SAPUI5_FRAGMENT_CLASS, SAPUI5_VIEW_CLASS, ViewTypes } from '../../../common/webapp/manifest/sapUi5';
|
|
1
|
+
import type { ManifestSection } from '../../../common';
|
|
2
|
+
import type { SapUi5RootView, SapUi5OdataModel, SapUi5ResourceModel, SapUi5RoutingRoute, SAPUI5_FRAGMENT_CLASS, SAPUI5_VIEW_CLASS, ViewTypes } from '../../../common/webapp/manifest/sapUi5';
|
|
3
3
|
export interface SapUi5 {
|
|
4
4
|
flexEnabled?: boolean;
|
|
5
5
|
resources?: object;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const common_1 = require("../../../common");
|
|
4
3
|
// SAPUI5 EXTENDS
|
|
5
4
|
exports.SAPUI5_VIEW_EXTENSION = 'sap.ui.viewExtensions';
|
|
6
5
|
exports.SAPUI5_CONTROLLER_EXTENSION = 'sap.ui.controllerExtensions';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sapUi5.js","sourceRoot":"","sources":["../../../../../../src/specification/v2/webapp/manifest/sapUi5.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"sapUi5.js","sourceRoot":"","sources":["../../../../../../src/specification/v2/webapp/manifest/sapUi5.ts"],"names":[],"mappings":";;AA6DA,iBAAiB;AACJ,QAAA,qBAAqB,GAAG,uBAAuB,CAAC;AAChD,QAAA,2BAA2B,GAAG,6BAA6B,CAAC;AAW5D,QAAA,iCAAiC,GAAG,uDAAuD,CAAC;AAC5F,QAAA,iCAAiC,GAAG,0DAA0D,CAAC;AAC/F,QAAA,0CAA0C,GACnD,0EAA0E,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SapUiGenericAppPageSettings } from '../../../common/page';
|
|
2
|
-
import { FlexibleColumnLayout, FlexibleColumnLayoutType } from '../../../common';
|
|
1
|
+
import type { SapUiGenericAppPageSettings } from '../../../common/page';
|
|
2
|
+
import type { FlexibleColumnLayout, FlexibleColumnLayoutType } from '../../../common';
|
|
3
3
|
export interface SapUiAppV2 {
|
|
4
4
|
pages: SapUiAppPagesV2;
|
|
5
5
|
_version?: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Application, Manifest as ManifestV2,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import type { Application, Manifest as ManifestV2, PagesBase } from '../../specification/common';
|
|
2
|
+
import { FioriElementsVersion } from '../../specification/common';
|
|
3
|
+
import type { AppSettings as AppSettingsV2 } from '../../specification/v2';
|
|
4
|
+
import type { Files } from './types';
|
|
5
|
+
import type { ExtensionLogger } from '../..';
|
|
5
6
|
export interface Controllers {
|
|
6
7
|
[key: string]: string;
|
|
7
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appProvider.js","sourceRoot":"","sources":["../../../../src/sync/common/appProvider.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"appProvider.js","sourceRoot":"","sources":["../../../../src/sync/common/appProvider.ts"],"names":[],"mappings":";;AACA,uDAAgF;AAGhF,mCAA4C;AAC5C,mCAA4C;AAC5C,mEAA8D;AAO9D,MAAsB,WAAW;IAO7B,YACI,QAAoB,EACpB,OAAc,EACd,IAAY,EACZ,KAAgB,EAChB,OAA6B,EAC7B,QAAwB,EACxB,MAAwB;QAV5B,yDAAyD;QAClD,yBAAoB,GAAkB,EAAE,CAAC;QAW5C,MAAM,UAAU,GAAG,yBAAiB,CAAC,yBAAU,CAAC,WAAW,CAAC,CAAC;QAC7D,IAAI,CAAC,GAAG,mBACJ,OAAO,EAAE,UAAU,CAAC,IAAI,EACxB,EAAE,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAE,EAC1B,KAAK;YACL,IAAI,EACJ,MAAM,EAAE;gBACJ,aAAa,EAAE,OAAO;gBACtB,KAAK,EAAE,OAAO,KAAK,6BAAoB,CAAC,EAAE,CAAC,CAAC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KAAK,EAAE;YAC5B,OAAO,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC;SACnC;QACD,SAAS,CAAC,gBAAQ,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;QAE9B,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;IACtC,CAAC;CACJ;AAnED,kCAmEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control.js","sourceRoot":"","sources":["../../../../../src/sync/common/decoration/control.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"control.js","sourceRoot":"","sources":["../../../../../src/sync/common/decoration/control.ts"],"names":[],"mappings":";;AACA,oCAAwF;AACxF,oCAAkD;AAElD;;;;GAIG;AACU,QAAA,wBAAwB,GAAG,CAAC,MAAc,EAAE,aAAuB,EAAU,EAAE;IACxF,OAAO,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC7C,CAAC,CAAC;AAEF;;;;;GAKG;AACU,QAAA,qBAAqB,GAAG,CAAC,MAAc,EAAE,aAAuB,EAAE,WAAqB,EAAU,EAAE;IAC5G,OAAO,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;AAC9D,CAAC,CAAC;AAEF;;;;;;GAMG;AACU,QAAA,gBAAgB,GAAG,CAAC,SAAiB,EAAE,KAAa,EAAU,EAAE;IACzE,IAAI,kBAA0B,CAAC;IAC/B,MAAM,MAAM,GAAW,wBAAgB,CAAC;IACxC,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;QAC/C,kBAAkB,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;KAC/C;SAAM;QACH,kBAAkB,GAAG,SAAS,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,IAAI,EAAE,GAAG,CAAC,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EAAE,YAAY,EAAE,aAAa,CAAC,CAAC;AACtF,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'reflect-metadata';
|
|
2
|
-
import { SyncRule, PageLayoutInformation, ValidityInformation } from '../types';
|
|
2
|
+
import type { SyncRule, PageLayoutInformation, ValidityInformation } from '../types';
|
|
3
3
|
export declare const reflectMetadataKey: unique symbol;
|
|
4
4
|
export declare const syncRule: (propSpec: SyncRule) => any;
|
|
5
5
|
export declare function getReflectMetadata(target: any, propertyName: string): SyncRule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../../../../src/sync/common/decoration/decorators.ts"],"names":[],"mappings":";;AAAA,4BAA0B;AAGb,QAAA,kBAAkB,GAAG,MAAM,CAAC,0BAA0B,CAAC,CAAC;AACxD,QAAA,QAAQ,GAAG,CAAC,QAAkB,EAAO,EAAE;IAChD,OAAO,OAAO,CAAC,QAAQ,CAAC,0BAAkB,EAAE,QAAQ,CAAC,CAAC;AAC1D,CAAC,CAAC;AAEF,SAAgB,kBAAkB,CAAC,MAAW,EAAE,YAAoB;IAChE,IAAI,MAAM,EAAE;QACR,OAAO,OAAO,CAAC,WAAW,CAAC,0BAAkB,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC;KACxE;AACL,CAAC;AAJD,gDAIC;AAEY,QAAA,qBAAqB,
|
|
1
|
+
{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../../../../src/sync/common/decoration/decorators.ts"],"names":[],"mappings":";;AAAA,4BAA0B;AAGb,QAAA,kBAAkB,GAAG,MAAM,CAAC,0BAA0B,CAAC,CAAC;AACxD,QAAA,QAAQ,GAAG,CAAC,QAAkB,EAAO,EAAE;IAChD,OAAO,OAAO,CAAC,QAAQ,CAAC,0BAAkB,EAAE,QAAQ,CAAC,CAAC;AAC1D,CAAC,CAAC;AAEF,SAAgB,kBAAkB,CAAC,MAAW,EAAE,YAAoB;IAChE,IAAI,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,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC;QACvF,IAAI,GAAG,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,GAAG,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;KACnF;IAED,OAAO,IAAI,CAAC;AAChB,CAAC;AARD,oDAQC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PageType } from '../../../specification/common';
|
|
2
|
-
import { V2Controls, V2Pages } from '../../v2/types';
|
|
1
|
+
import type { PageType } from '../../../specification/common';
|
|
2
|
+
import type { V2Controls, V2Pages } from '../../v2/types';
|
|
3
3
|
/**
|
|
4
4
|
* Common interface that is used for all instantiations of (reflect) metadata classes
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ChangeDefinitionInCreation } from '../types';
|
|
2
|
-
import { Manifest as ManifestV2 } from '../../../v2';
|
|
1
|
+
import type { ChangeDefinitionInCreation } from '../types';
|
|
2
|
+
import type { Manifest as ManifestV2 } from '../../../v2';
|
|
3
3
|
declare type Manifest = ManifestV2;
|
|
4
4
|
export declare function exportToFlexChange(change: ChangeDefinitionInCreation, manifest: Manifest): string;
|
|
5
5
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ChangeDefinition, ChangeDefinitionInCreation } from './types';
|
|
2
|
-
import { Manifest as ManifestV2, UI5Version } from '../../../src';
|
|
3
|
-
import { SyncRule } from '../common';
|
|
1
|
+
import type { ChangeDefinition, ChangeDefinitionInCreation } from './types';
|
|
2
|
+
import type { Manifest as ManifestV2, UI5Version } from '../../../src';
|
|
3
|
+
import type { SyncRule } from '../common';
|
|
4
4
|
declare type Manifest = ManifestV2;
|
|
5
5
|
/**
|
|
6
6
|
* Create a change as string (calls changeUtils from ui5-flexibility-utils)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flexUtils.js","sourceRoot":"","sources":["../../../../src/sync/common/flexUtils.ts"],"names":[],"mappings":";;;;;;;;;AACA,kEAAoD;
|
|
1
|
+
{"version":3,"file":"flexUtils.js","sourceRoot":"","sources":["../../../../src/sync/common/flexUtils.ts"],"names":[],"mappings":";;;;;;;;;AACA,kEAAoD;AAOpD,MAAM,YAAY,GAAG,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC;AAE9C,MAAM,aAAa,GAAG;IAClB,UAAU,EAAE,KAAK;IACjB,aAAa,EAAE,GAAG;IAClB,YAAY,EAAE,eAAe;IAC7B,IAAI,EAAE,gBAAgB;CACzB,CAAC;AAEF;;;;GAIG;AACH,SAAgB,kBAAkB,CAAC,MAAkC,EAAE,QAAkB;IACrF,IAAI,YAAY,GAAG,EAAE,CAAC;IACtB,IAAI;QACA,KAAK,MAAM,YAAY,IAAI,aAAa,EAAE;YACtC,IAAI,MAAM,CAAC,YAAY,CAAC,KAAK,SAAS,EAAE;gBACpC,MAAM,CAAC,YAAY,CAAC,GAAG,aAAa,CAAC,YAAY,CAAC,CAAC;aACtD;SACJ;QACD,YAAY,GAAG,YAAY,CAAC,kBAAkB,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;KACpE;IAAC,OAAO,KAAK,EAAE;QACZ,OAAO,CAAC,KAAK,CAAC,iCAAiC,EAAE,KAAK,CAAC,CAAC;KAC3D;IACD,OAAO,YAAY,CAAC;AACxB,CAAC;AAbD,gDAaC;AAED;;;GAGG;AACH,SAAgB,iBAAiB,CAAC,YAAoB;IAClD,IAAI;QACA,MAAM,MAAM,GAAG,YAAY,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QAChD,OAAO,MAAM,CAAC;KACjB;IAAC,OAAO,KAAK,EAAE;QACZ,OAAO,KAAK,CAAC;KAChB;AACL,CAAC;AAPD,8CAOC;AAED;;;;;;;;;;;;GAYG;AACH,SAAgB,qBAAqB,CACjC,YAAoB,EACpB,QAAkB,EAClB,UAAsB,EACtB,GAAW,EACX,SAAiB;IAEjB,MAAM,UAAU,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,UAAU,CAAC,KAAK,mCAA6B,CAAC,CAAC,CAAC,IAAI,CAAC;IAE3F,MAAM,UAAU,GAA+B;QAC3C,SAAS;QACT,WAAW,EAAE,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE;QACxC,OAAO,EAAE;YACL,QAAQ,EAAE,GAAG;SAChB;QACD,aAAa,EAAE,UAAU,CAAC,UAAU;QACpC,UAAU;KACb,CAAC;IACF,IAAI,YAAY,CAAC,GAAG,CAAC,KAAK,SAAS,EAAE;QACjC,IAAI,QAAQ,CAAC,IAAI,CAAC,eAAe,EAAE;YAC/B,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC,UAAU,EAAE,YAAY,EAAE,GAAG,CAAC,CAAC;SAChE;aAAM,IAAI,YAAY,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE;YACrD,UAAU,CAAC,OAAO,CAAC,UAAU,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;YAClD,UAAU,CAAC,IAAI,GAAG,uBAAuB,CAAC;SAC7C;aAAM;YACH,UAAU,CAAC,OAAO,CAAC,QAAQ,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;SACnD;KACJ;SAAM;QACH,UAAU,CAAC,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC;KACtC;IACD,OAAO,UAAU,CAAC;AACtB,CAAC;AA/BD,sDA+BC"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import { ConverterOutput, EntityType } from '@sap-ux/vocabularies-types';
|
|
1
|
+
import type { ConverterOutput, EntityType } from '@sap-ux/vocabularies-types';
|
|
2
2
|
import { FioriElementsVersion } from '../../../specification/common';
|
|
3
|
-
import { FacetConfig
|
|
4
|
-
import {
|
|
3
|
+
import type { FacetConfig } from '..';
|
|
4
|
+
import { SectionType } from '..';
|
|
5
|
+
import type { EntitySet } from '@sap-ux/annotation-converter';
|
|
5
6
|
/**
|
|
6
7
|
* Adds definitions for forms in object page sections to the app schema
|
|
7
8
|
* @param {SectionType} sectionType - prefix to distinguish Section and HeaderSection
|
|
8
9
|
* @param {FacetConfig} section - facet or section in the FE core model
|
|
9
10
|
* @param {object} appSchemaSection - current definition of facet or section in the JSON schema
|
|
10
11
|
* @param {object} appSchema - app specific schema that gets enhanced
|
|
12
|
+
* @param {FioriElementsVersion} version - Fiori Elements version
|
|
11
13
|
*/
|
|
12
14
|
export declare function handleForm(sectionType: SectionType, section: FacetConfig, appSchemaSection: object, appSchema: object, version: FioriElementsVersion, withActions?: boolean): void;
|
|
13
15
|
/**
|
|
@@ -3,6 +3,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const StableIdHelper_1 = require("../../v4/utils/StableIdHelper");
|
|
4
4
|
const common_1 = require("../../../specification/common");
|
|
5
5
|
const __1 = require("..");
|
|
6
|
+
/**
|
|
7
|
+
* Determines the name for a field definition in app schema
|
|
8
|
+
* @param {FioriElementsVersion} version - Fiori Elements version
|
|
9
|
+
* @param fieldReferenceId - the stable ID representation of the field
|
|
10
|
+
* @param {string} targetID - unique ID, identifies the parent object (form)
|
|
11
|
+
* @param fieldReference - the reference to the field definition in schema
|
|
12
|
+
* @returns the field definition name in schema
|
|
13
|
+
*/
|
|
14
|
+
function determineFieldDefinitionName(version, fieldReferenceId, targetID, fieldReference) {
|
|
15
|
+
const fieldReferenceType = version === common_1.FioriElementsVersion.v2 && fieldReferenceId && fieldReferenceId.includes('::')
|
|
16
|
+
? fieldReferenceId.split('::')[0].replace('DataField', 'Field')
|
|
17
|
+
: undefined;
|
|
18
|
+
if (version === common_1.FioriElementsVersion.v2) {
|
|
19
|
+
return `${fieldReferenceType}<${targetID}::${fieldReference}>`;
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
return `${targetID}::${fieldReference}`;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
6
25
|
/**
|
|
7
26
|
* Adds a field definition to the app specific schema
|
|
8
27
|
* @param {string} sectionType - prefix to distinguish Section and HeaderSection
|
|
@@ -11,30 +30,25 @@ const __1 = require("..");
|
|
|
11
30
|
* @param {string} targetID - unique ID, identifies the parent object (form)
|
|
12
31
|
* @param {string} key - current field key
|
|
13
32
|
* @param {SectionType} section - current section of the object page
|
|
33
|
+
* @param {FioriElementsVersion} version - Fiori Elements version
|
|
14
34
|
*/
|
|
15
35
|
function addField(sectionType, appSchema, field, targetID, key, section, version, withActions = true) {
|
|
16
|
-
var _a
|
|
36
|
+
var _a;
|
|
37
|
+
// Calculate field reference
|
|
17
38
|
const fieldReferenceId = StableIdHelper_1.getStableIdPartFromDataField(field);
|
|
18
39
|
const fieldReference = version === common_1.FioriElementsVersion.v2 && fieldReferenceId && fieldReferenceId.includes('::')
|
|
19
|
-
? fieldReferenceId
|
|
20
|
-
.split('::')
|
|
21
|
-
.splice(1)
|
|
22
|
-
.join('::')
|
|
40
|
+
? fieldReferenceId.split('::').splice(1).join('::')
|
|
23
41
|
: fieldReferenceId;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
const fieldDefinition = version === common_1.FioriElementsVersion.v2
|
|
28
|
-
? `${fieldReferenceType}<${targetID}::${fieldReference}>`
|
|
29
|
-
: `${targetID}::${fieldReference}`;
|
|
30
|
-
const fieldsDefinition = __1.prepareRef(`${sectionType}Fields<${targetID}>`);
|
|
31
|
-
const actionsDefinition = __1.prepareRef(`${sectionType}Actions<${targetID}>`);
|
|
42
|
+
// Determine field definition name
|
|
43
|
+
const fieldDefinition = determineFieldDefinitionName(version, fieldReferenceId, targetID, fieldReference);
|
|
44
|
+
// Evaluate field type, set field reference of properties of fields' or actions' definition
|
|
32
45
|
if (!field || !field.$Type) {
|
|
33
46
|
return;
|
|
34
47
|
}
|
|
35
48
|
else if (field.$Type === "com.sap.vocabularies.UI.v1.DataFieldForAction" /* DataFieldForAction */ ||
|
|
36
49
|
field.$Type === "com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation" /* DataFieldForIntentBasedNavigation */) {
|
|
37
50
|
if (withActions && sectionType === __1.SectionType.Section) {
|
|
51
|
+
const actionsDefinition = __1.prepareRef(`${sectionType}Actions<${targetID}>`);
|
|
38
52
|
appSchema['definitions'][actionsDefinition]['properties'][fieldReference] = {
|
|
39
53
|
$ref: __1.DEFINITION_LINK_PREFIX + fieldDefinition,
|
|
40
54
|
propertyIndex: parseInt(key)
|
|
@@ -42,19 +56,23 @@ function addField(sectionType, appSchema, field, targetID, key, section, version
|
|
|
42
56
|
}
|
|
43
57
|
}
|
|
44
58
|
else {
|
|
59
|
+
const fieldsDefinition = __1.prepareRef(`${sectionType}Fields<${targetID}>`);
|
|
45
60
|
appSchema['definitions'][fieldsDefinition]['properties'][fieldReference] = {
|
|
46
61
|
$ref: __1.DEFINITION_LINK_PREFIX + fieldDefinition,
|
|
47
62
|
propertyIndex: parseInt(key)
|
|
48
63
|
};
|
|
49
64
|
}
|
|
65
|
+
// Now set up the field definition
|
|
50
66
|
appSchema['definitions'][fieldDefinition] = {
|
|
51
67
|
type: 'object',
|
|
52
68
|
isViewNode: true,
|
|
53
69
|
properties: {},
|
|
54
70
|
description: __1.getDatafieldDescription(field, section.entityType),
|
|
55
71
|
additionalProperties: false,
|
|
56
|
-
annotationType: field.$Type
|
|
72
|
+
annotationType: field.$Type,
|
|
73
|
+
annotationPath: `/${section.entityType.fullyQualifiedName}/${field.fullyQualifiedName.split(section.entityType.fullyQualifiedName)[1]}`
|
|
57
74
|
};
|
|
75
|
+
__1.addDataTypeToDefinition(appSchema['definitions'][fieldDefinition], field);
|
|
58
76
|
if (version === common_1.FioriElementsVersion.v2 && appSchema['definitions']['Field']) {
|
|
59
77
|
switch (field.$Type) {
|
|
60
78
|
case "com.sap.vocabularies.UI.v1.DataField" /* DataField */:
|
|
@@ -69,11 +87,12 @@ function addField(sectionType, appSchema, field, targetID, key, section, version
|
|
|
69
87
|
if (field.$Type === "com.sap.vocabularies.UI.v1.DataFieldForAction" /* DataFieldForAction */ && ((_a = appSchema['definitions']) === null || _a === void 0 ? void 0 : _a['FormAction'])) {
|
|
70
88
|
appSchema['definitions'][fieldDefinition]['properties'] = appSchema['definitions']['FormAction']['properties'];
|
|
71
89
|
}
|
|
72
|
-
if ((_c = (_b = field['Value']) === null || _b === void 0 ? void 0 : _b.$target) === null || _c === void 0 ? void 0 : _c.type) {
|
|
73
|
-
appSchema['definitions'][fieldDefinition].dataType = (_e = (_d = field['Value']) === null || _d === void 0 ? void 0 : _d.$target) === null || _e === void 0 ? void 0 : _e.type.replace('Edm.', '');
|
|
74
|
-
}
|
|
75
|
-
appSchema['definitions'][fieldDefinition].annotationPath = `/${section.entityType.fullyQualifiedName}/${field.fullyQualifiedName.split(section.entityType.fullyQualifiedName)[1]}`;
|
|
76
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* The function determines the target ID that shall be used in the app schema for a form
|
|
93
|
+
* @param section - object describing the section or facet
|
|
94
|
+
* @returns the target ID (string)
|
|
95
|
+
*/
|
|
77
96
|
function determineTargetIdOfForm(section) {
|
|
78
97
|
let targetID;
|
|
79
98
|
if (section.target && section.target['qualifier'] && section.entityType) {
|
|
@@ -93,6 +112,7 @@ function determineTargetIdOfForm(section) {
|
|
|
93
112
|
* @param {FacetConfig} section - facet or section in the FE core model
|
|
94
113
|
* @param {object} appSchemaSection - current definition of facet or section in the JSON schema
|
|
95
114
|
* @param {object} appSchema - app specific schema that gets enhanced
|
|
115
|
+
* @param {FioriElementsVersion} version - Fiori Elements version
|
|
96
116
|
*/
|
|
97
117
|
function handleForm(sectionType, section, appSchemaSection, appSchema, version, withActions = true) {
|
|
98
118
|
var _a;
|
|
@@ -277,9 +297,7 @@ exports.addFooterActions = addFooterActions;
|
|
|
277
297
|
* @param {EntityType} entityType - current entity type
|
|
278
298
|
* @param {ConverterOutput} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
|
|
279
299
|
*/
|
|
280
|
-
function addHeaderActions(appSchema, entityType, oDataServiceAVT,
|
|
281
|
-
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
|
|
282
|
-
addHeaderActionCallBack) {
|
|
300
|
+
function addHeaderActions(appSchema, entityType, oDataServiceAVT, addHeaderActionCallBack) {
|
|
283
301
|
appSchema['definitions']['ObjectPageHeader'].properties['actions'] = {
|
|
284
302
|
$ref: `${__1.DEFINITION_LINK_PREFIX}HeaderActions`
|
|
285
303
|
};
|