@sap/ux-specification 1.96.5 → 1.96.10
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 +80 -12
- package/dist/documentation/v2/v2-AnalyticalListPage.html +1 -1
- package/dist/documentation/v2/v2-ApplicationV2.html +1 -1
- package/dist/documentation/v2/v2-ListReport.html +1 -1
- package/dist/documentation/v2/v2-ObjectPage.html +1 -1
- package/dist/documentation/v2/v2-OverviewPage.html +1 -1
- package/dist/documentation/v4/v4-ApplicationV4.html +1 -1
- package/dist/documentation/v4/v4-ListReport.html +1 -1
- package/dist/documentation/v4/v4-ObjectPage.html +1 -1
- package/dist/index-min.js +1 -1
- package/dist/schemas/v2/ApplicationV2.json +14 -14
- package/dist/schemas/v4/ApplicationV4.json +9 -5
- package/dist/schemas/v4/ListReportConfig.json +619 -209
- package/dist/schemas/v4/ObjectPageConfig.json +6 -38
- package/dist/specification/v2/index-min.js +1 -1
- package/dist/specification/v4/index-min.js +1 -1
- package/dist/src/api.d.ts +3 -3
- package/dist/src/apiTypes.d.ts +17 -20
- package/dist/src/extensionLogger.d.ts +1 -1
- package/dist/src/project.d.ts +1 -1
- package/dist/src/specification/common/Application.d.ts +24 -4
- package/dist/src/specification/common/page.d.ts +1 -1
- package/dist/src/specification/common/webapp/manifest/Manifest.d.ts +6 -6
- 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/v2/ApplicationV2.d.ts +3 -17
- package/dist/src/specification/v2/controls/Facets.d.ts +1 -1
- 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 +2 -2
- package/dist/src/specification/v2/controls/ObjectPageToolBar.d.ts +1 -1
- package/dist/src/specification/v2/controls/Table.d.ts +3 -3
- 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 +3 -3
- package/dist/src/specification/v2/pages/OverviewPageConfig.d.ts +3 -3
- package/dist/src/specification/v2/webapp/manifest/sapUi5.d.ts +2 -2
- package/dist/src/specification/v2/webapp/manifest/sapUiPageV2.d.ts +2 -2
- package/dist/src/specification/v4/ApplicationV4.d.ts +4 -14
- package/dist/src/specification/v4/controls/ObjectPageHeader.d.ts +1 -1
- package/dist/src/specification/v4/controls/ObjectPageHeaderSection.d.ts +2 -14
- package/dist/src/specification/v4/controls/ObjectPageSection.d.ts +2 -2
- package/dist/src/specification/v4/controls/ObjectPageTable.d.ts +3 -3
- package/dist/src/specification/v4/controls/ObjectPageToolBar.d.ts +1 -1
- package/dist/src/specification/v4/controls/Table.d.ts +166 -25
- package/dist/src/specification/v4/controls/ToolBar.d.ts +26 -1
- package/dist/src/specification/v4/page.d.ts +2 -2
- package/dist/src/specification/v4/pages/ListReportConfig.d.ts +22 -3
- package/dist/src/specification/v4/pages/ObjectPageConfig.d.ts +2 -2
- package/dist/src/specification/v4/pages/index.d.ts +0 -1
- package/dist/src/specification/v4/webapp/manifest/ManifestSettings.d.ts +77 -0
- package/dist/src/specification/v4/webapp/manifest/sapUi5.d.ts +12 -3
- package/dist/src/specification/v4/webapp/manifest/sapUiPageV4.d.ts +21 -1
- package/dist/src/sync/common/appProvider.d.ts +6 -5
- package/dist/src/sync/common/decoration/control.d.ts +1 -1
- package/dist/src/sync/common/decoration/decorators.d.ts +1 -1
- package/dist/src/sync/common/decoration/factory.d.ts +3 -3
- package/dist/src/sync/common/decoration/flex.d.ts +3 -3
- package/dist/src/sync/common/flexUtils.d.ts +4 -4
- package/dist/src/sync/common/generate/objectPage.d.ts +9 -7
- package/dist/src/sync/common/generate/utils.d.ts +24 -16
- package/dist/src/sync/common/import/utils.d.ts +4 -3
- package/dist/src/sync/common/importProject.d.ts +4 -4
- package/dist/src/sync/common/types.d.ts +60 -12
- package/dist/src/sync/common/utils.d.ts +18 -8
- package/dist/src/sync/i18n.d.ts +1 -1
- package/dist/src/sync/v2/application.d.ts +2 -2
- 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/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 +2 -1
- package/dist/src/sync/v2/export/controls/FormAction.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/Fragment.d.ts +5 -11
- package/dist/src/sync/v2/export/controls/ObjectPageChart.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.d.ts +3 -3
- package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.d.ts +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/ObjectPageLayout.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.d.ts +6 -6
- package/dist/src/sync/v2/export/controls/ObjectPageTable.d.ts +3 -3
- package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/Table.d.ts +3 -2
- 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/exportPage.d.ts +2 -2
- package/dist/src/sync/v2/export/factory.d.ts +2 -1
- package/dist/src/sync/v2/export/manifest.d.ts +17 -1
- package/dist/src/sync/v2/export/pages/AnalyticalListPage.d.ts +4 -4
- package/dist/src/sync/v2/export/pages/ListReport.d.ts +2 -2
- package/dist/src/sync/v2/export/pages/ObjectPage.d.ts +3 -3
- 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/generate/analyticalListReport.d.ts +1 -1
- package/dist/src/sync/v2/generate/generate.d.ts +2 -2
- package/dist/src/sync/v2/generate/listReport.d.ts +7 -4
- package/dist/src/sync/v2/generate/objectPage.d.ts +1 -1
- package/dist/src/sync/v2/generate/overviewPage.d.ts +1 -1
- package/dist/src/sync/v2/generate/utils.d.ts +5 -5
- package/dist/src/sync/v2/import/app/appProvider.d.ts +4 -4
- package/dist/src/sync/v2/import/app/ovpProvider.d.ts +3 -3
- package/dist/src/sync/v2/import/common/index.d.ts +6 -5
- package/dist/src/sync/v2/import/controls/table.d.ts +1 -1
- package/dist/src/sync/v2/import/pages/analyticalListPage.d.ts +2 -2
- 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/overviewPage.d.ts +2 -2
- package/dist/src/sync/v2/import/utils.d.ts +3 -2
- package/dist/src/sync/v2/types.d.ts +7 -7
- package/dist/src/sync/v4/application.d.ts +9 -5
- package/dist/src/sync/v4/export/controls/FilterBar.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts +2 -1
- package/dist/src/sync/v4/export/controls/ObjectPageHeader.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageLayout.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageTable.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/Table.d.ts +126 -9
- package/dist/src/sync/v4/export/controls/TableColumn.d.ts +39 -1
- package/dist/src/sync/v4/export/controls/ToolBar.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ToolBarAction.d.ts +4 -1
- package/dist/src/sync/v4/export/export.d.ts +2 -2
- package/dist/src/sync/v4/export/exportCustomColumn.d.ts +2 -2
- package/dist/src/sync/v4/export/factory.d.ts +2 -1
- package/dist/src/sync/v4/export/flexibleColumnLayout.d.ts +1 -1
- package/dist/src/sync/v4/export/manifest.d.ts +2 -2
- package/dist/src/sync/v4/export/pages/ListReport.d.ts +9 -3
- package/dist/src/sync/v4/export/pages/ObjectPage.d.ts +2 -2
- package/dist/src/sync/v4/export/pages/index.d.ts +0 -1
- package/dist/src/sync/v4/export/types.d.ts +7 -5
- package/dist/src/sync/v4/export/utils.d.ts +1 -1
- package/dist/src/sync/v4/generate/generate.d.ts +5 -4
- package/dist/src/sync/v4/generate/listReport.d.ts +2 -4
- package/dist/src/sync/v4/generate/objectPage.d.ts +1 -1
- package/dist/src/sync/v4/import/app/appProvider.d.ts +6 -5
- package/dist/src/sync/v4/import/fragment.d.ts +2 -2
- package/dist/src/sync/v4/import/index.d.ts +0 -1
- package/dist/src/sync/v4/import/pages/listReport.d.ts +8 -7
- package/dist/src/sync/v4/import/pages/objectPage.d.ts +2 -2
- package/dist/src/sync/v4/import/utils.d.ts +2 -2
- package/dist/src/sync/v4/types.d.ts +2 -2
- package/dist/src/sync/v4/utils/utils.d.ts +22 -13
- 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/dist/test/unit/export/manifest.test.d.ts +1 -0
- package/package.json +13 -12
- package/dist/documentation/v4/v4-AnalyticalListPage.html +0 -49
- package/dist/schemas/v4/AnalyticalListPageConfig.json +0 -481
- package/dist/src/specification/v4/pages/AnalyticalListPageConfig.d.ts +0 -13
- package/dist/src/sync/v4/export/pages/AnalyticalListPage.d.ts +0 -8
- package/dist/src/sync/v4/import/pages/analyticalListPage.d.ts +0 -11
|
@@ -1,50 +1,52 @@
|
|
|
1
|
-
import { EntityType } from '@sap-ux/annotation-converter';
|
|
2
|
-
import { AnnotationTerm, ConverterOutput, LineItem
|
|
3
|
-
import {
|
|
1
|
+
import type { EntitySet, EntityType } from '@sap-ux/annotation-converter';
|
|
2
|
+
import type { AnnotationTerm, ConverterOutput, LineItem } from '@sap-ux/vocabularies-types';
|
|
3
|
+
import { UIAnnotationTerms } from '@sap-ux/vocabularies-types';
|
|
4
|
+
import type { Definition } from 'typescript-json-schema';
|
|
5
|
+
import type { FacetSection } from '..';
|
|
4
6
|
/**
|
|
5
7
|
* Adds an enum filled with existing UI annotations of the given list (validAnnotations)
|
|
6
8
|
* @param {EntityType} entityType
|
|
7
9
|
* @param {UIAnnotationTerms[]} validAnnotations
|
|
8
|
-
* @param annoPath - the annotation path property in the app schema where the enum shall be added
|
|
10
|
+
* @param {Definition} annoPath - the annotation path property in the app schema where the enum shall be added
|
|
9
11
|
*/
|
|
10
|
-
export declare function addEnumForValidAnnotations(entityType: EntityType, validAnnotations: UIAnnotationTerms[], annoPath:
|
|
12
|
+
export declare function addEnumForValidAnnotations(entityType: EntityType, validAnnotations: UIAnnotationTerms[], annoPath: Definition): void;
|
|
11
13
|
/**
|
|
12
14
|
* Adds an enum filled with existing UI annotations for single-tab variants of a table
|
|
13
15
|
* @param {EntityType} entityType
|
|
14
|
-
* @param appSchema - app specific
|
|
16
|
+
* @param {Definition} appSchema - app specific JSON schema
|
|
15
17
|
* @param definitionName - name of the definition in the app schema
|
|
16
18
|
*/
|
|
17
|
-
export declare function addEnumForSingleTabVariant(entityType: EntityType, appSchema:
|
|
19
|
+
export declare function addEnumForSingleTabVariant(entityType: EntityType, appSchema: Definition, definitionName: string): void;
|
|
18
20
|
/**
|
|
19
21
|
* Adds an enum filled with existing UI annotations for multi-tab variants of a table
|
|
20
|
-
* @param {ConverterOutput} oDataServiceAVT - combined service metadata, as returned by annotation vocabularies tools
|
|
21
22
|
* @param appSchema - app specific JSOn schema
|
|
22
23
|
* @param definitionName - name of the definition in the app schema
|
|
24
|
+
* @param {EntitySet} entitySet - current entity set of the page or view
|
|
23
25
|
*/
|
|
24
|
-
export declare function addEnumForMultiTabVariant(
|
|
26
|
+
export declare function addEnumForMultiTabVariant(appSchema: Definition, definitionName: string, entitySet: EntitySet): void;
|
|
25
27
|
/**
|
|
26
28
|
* Adds the enume values for entitySet as part of the multiple view scenario
|
|
27
29
|
* @param {ConverterOutput} oDataServiceAVT - combined service metadata, as returned by annotation vocabularies tools
|
|
28
30
|
* @param appSchema - app specific JSOn schema
|
|
29
31
|
* @param definitionName - name of the definition in the app schema
|
|
30
32
|
*/
|
|
31
|
-
export declare function addEnumForVariantEntitySet(oDataServiceAVT: ConverterOutput, appSchema:
|
|
33
|
+
export declare function addEnumForVariantEntitySet(oDataServiceAVT: ConverterOutput, appSchema: Definition, definitionName: string): void;
|
|
32
34
|
/**
|
|
33
35
|
* Adds an enum filled with existing UI annotations for annotationPath property in FilterBar
|
|
34
36
|
* @param {EntityType} entityType
|
|
35
37
|
* @param appSchema - app specific JSOn schema
|
|
36
38
|
* @param definitionName - name of the definition in the app schema
|
|
37
39
|
*/
|
|
38
|
-
export declare function addEnumForFilterBarAnnotationPath(entityType: EntityType, appSchema:
|
|
40
|
+
export declare function addEnumForFilterBarAnnotationPath(entityType: EntityType, appSchema: Definition, definitionName: string): void;
|
|
39
41
|
/**
|
|
40
42
|
* Method adds definition for 'RelatedFacetKeys' as enum with describtion and adds references to 'RelatedFacetKeys' for custom section definitions.
|
|
41
|
-
* @param {object}
|
|
43
|
+
* @param {object} appSchema App specific schema that potentially gets enhanced
|
|
42
44
|
* @param {string[]>} sectionDefinitions array of section definitions which should be updated with new reference to 'RelatedFacetKeys' enum.
|
|
43
45
|
* @param {FacetSection[]} facetSections Array of facet section objects which is used to generate enum values.
|
|
44
46
|
* @param {Array<keyof Omit<FacetSection, 'custom'>>} idProperties Array of property names which should be looked up in 'FacetSection' object.
|
|
45
47
|
* Please note that method depends on order and takes first non empty value associated to passed properties.
|
|
46
48
|
*/
|
|
47
|
-
export declare function addDefinitionForRelatedFacetKeys(
|
|
49
|
+
export declare function addDefinitionForRelatedFacetKeys(appSchema: object, sectionDefinitions: string[], facetSections: FacetSection[], idProperties: Array<keyof Omit<FacetSection, 'custom'>>): void;
|
|
48
50
|
/**
|
|
49
51
|
* Functions used both by V2 and V4 to add the common definitions for a line item to the app schema
|
|
50
52
|
* @param appSchema - the app specific schema that shall get enhanced
|
|
@@ -55,7 +57,7 @@ export declare function addDefinitionForRelatedFacetKeys(schema: object, section
|
|
|
55
57
|
* Passed in the V4 case, then additional properties of this type will be allowed.
|
|
56
58
|
* @returns the actions definition plus the annotation path to the given line item
|
|
57
59
|
*/
|
|
58
|
-
export declare function addCommonLineItemDefinitions(appSchema:
|
|
60
|
+
export declare function addCommonLineItemDefinitions(appSchema: Definition, lineItemAnnotation: AnnotationTerm<LineItem>, entityType: EntityType, lineItemId: string, customColumnDefinitionName?: string): {
|
|
59
61
|
actions: object;
|
|
60
62
|
footerActions: object;
|
|
61
63
|
lineItemPath: string;
|
|
@@ -66,7 +68,7 @@ export declare function addCommonLineItemDefinitions(appSchema: object, lineItem
|
|
|
66
68
|
* @param {EntityType} entityType - Given entity type for which entries shall get generated
|
|
67
69
|
* @param {string=} floorplanSuffix - floorplan specific suffix (optional)
|
|
68
70
|
*/
|
|
69
|
-
export declare function addFieldsType(appSchema:
|
|
71
|
+
export declare function addFieldsType(appSchema: Definition, entityType: EntityType, floorplanSuffix?: string): void;
|
|
70
72
|
export declare enum DataType {
|
|
71
73
|
String = "String",
|
|
72
74
|
Rating = "Rating",
|
|
@@ -78,9 +80,15 @@ export declare enum DataType {
|
|
|
78
80
|
FieldGroup = "FieldGroup",
|
|
79
81
|
IntentBasedNavigation = "IntentBasedNavigation"
|
|
80
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Determines the dataType of the target that shall be added to a property in schema
|
|
85
|
+
* @param target - the given target
|
|
86
|
+
* @returns - the dataType as string
|
|
87
|
+
*/
|
|
88
|
+
export declare function determineDataTypeOfTarget(target: any): string | undefined;
|
|
81
89
|
/**
|
|
82
90
|
* Determines the dataType that shall be added to a property in schema, for any kind of field like
|
|
83
|
-
* -
|
|
91
|
+
* - field of a field group
|
|
84
92
|
* - line item record
|
|
85
93
|
* - selection field
|
|
86
94
|
* @param field - the given field
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DeprecatedProperties, SyncRule } from '../';
|
|
2
|
-
import { ExtensionLogger } from '../../../apiTypes';
|
|
1
|
+
import type { DeprecatedProperties, SyncRule } from '../';
|
|
2
|
+
import type { ExtensionLogger } from '../../../apiTypes';
|
|
3
3
|
/**
|
|
4
4
|
* Transfers the value of a single manifest setting to the config
|
|
5
5
|
* @param syncRule - Metadata rule
|
|
@@ -7,10 +7,11 @@ import { ExtensionLogger } from '../../../apiTypes';
|
|
|
7
7
|
* @param propertyKey - Key of the property or setting
|
|
8
8
|
* @param configPart - Part of the config JSON
|
|
9
9
|
* @param sectionId - Section or facet ID
|
|
10
|
+
* @param breadcrumbs - list of breadcrumbs or id's describing the keys of all hierarchy levels
|
|
10
11
|
*/
|
|
11
12
|
export declare function importProperty(syncRule: SyncRule, manifestSection: {}, propertyKey: string, configPart: {
|
|
12
13
|
[key: string]: any;
|
|
13
|
-
}, sectionId?: string): void;
|
|
14
|
+
}, sectionId?: string, breadcrumbs?: string[]): void;
|
|
14
15
|
/**
|
|
15
16
|
* Validation during import: check if properties are marked as deprecated.
|
|
16
17
|
* If so, log them.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ConverterOutput } from '@sap-ux/vocabularies-types';
|
|
2
|
-
import { EntitySet } from '@sap-ux/vocabularies-types/dist/Converter';
|
|
3
|
-
import { ImportProjectParameters } from '../../apiTypes';
|
|
4
|
-
import { File } from './types';
|
|
1
|
+
import type { ConverterOutput } from '@sap-ux/vocabularies-types';
|
|
2
|
+
import type { EntitySet } from '@sap-ux/vocabularies-types/dist/Converter';
|
|
3
|
+
import type { ImportProjectParameters } from '../../apiTypes';
|
|
4
|
+
import type { File } from './types';
|
|
5
5
|
export declare function getEntitySetByEntitySetName(entitySetName: string, oDataServiceAVT: ConverterOutput): EntitySet;
|
|
6
6
|
/**
|
|
7
7
|
* Import the schema and config files for a given project
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { Manifest } from '../../specification/common/webapp/manifest';
|
|
2
|
-
import { EntityType } from '@sap-ux/vocabularies-types';
|
|
3
|
-
import { ManifestSettingsType } from '../../specification/common/types';
|
|
1
|
+
import type { Manifest } from '../../specification/common/webapp/manifest';
|
|
2
|
+
import type { EntityType } from '@sap-ux/vocabularies-types';
|
|
3
|
+
import type { ManifestSettingsType } from '../../specification/common/types';
|
|
4
4
|
export declare enum ExportArtifacts {
|
|
5
5
|
flex = "flex",
|
|
6
6
|
manifest = "manifest"
|
|
7
7
|
}
|
|
8
|
+
export declare enum ALPViewType {
|
|
9
|
+
Primary = "primary",
|
|
10
|
+
Secondary = "secondary"
|
|
11
|
+
}
|
|
8
12
|
export declare enum DirName {
|
|
9
13
|
Sapux = "src",
|
|
10
14
|
Schemas = ".schemas",
|
|
@@ -108,8 +112,8 @@ export declare type ManifestPath = (pageKeys?: string[], manifest?: Manifest, ..
|
|
|
108
112
|
export interface ManifestConverter {
|
|
109
113
|
path: ManifestPath;
|
|
110
114
|
key?: string;
|
|
111
|
-
import?: ((manifestSection: unknown, sectionId?: string, propertyKey?: string) => unknown) | boolean;
|
|
112
|
-
export?: ((manifestSection: unknown, configObject: unknown, key: string, manifestKey?: string) => unknown) | boolean;
|
|
115
|
+
import?: ((manifestSection: unknown, sectionId?: string, propertyKey?: string, breadcrumbs?: string[]) => unknown) | boolean;
|
|
116
|
+
export?: ((manifestSection: unknown, configObject: unknown, key: string, manifestKey?: string, ...pathParts: string[]) => unknown) | boolean;
|
|
113
117
|
delete?: (manifestSection: unknown, configObject: unknown, key: string, manifestKey: string) => unknown;
|
|
114
118
|
}
|
|
115
119
|
export interface SyncRule {
|
|
@@ -151,6 +155,10 @@ export interface FileData {
|
|
|
151
155
|
dataSourceUri: string;
|
|
152
156
|
fileContent: string;
|
|
153
157
|
}
|
|
158
|
+
export declare enum Visualization {
|
|
159
|
+
LineItem = "LineItem",
|
|
160
|
+
Chart = "Chart"
|
|
161
|
+
}
|
|
154
162
|
export declare enum FacetBase {
|
|
155
163
|
LineItem = "LineItem",
|
|
156
164
|
CollectionFacet = "CollectionFacet",
|
|
@@ -214,17 +222,57 @@ export declare enum ViewTemplateType {
|
|
|
214
222
|
ResponsiveTableCellsExtension = "ResponsiveTableCellsExtension"
|
|
215
223
|
}
|
|
216
224
|
export declare enum DefinitionName {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
225
|
+
Actions = "Actions",
|
|
226
|
+
ALPChart = "ALPChart",
|
|
227
|
+
ALPChartView = "ALPChartView",
|
|
228
|
+
ALPTable = "ALPTable",
|
|
229
|
+
ALPTableView = "ALPTableView",
|
|
230
|
+
AnalyticalListPageFilterBar = "AnalyticalListPageFilterBar",
|
|
231
|
+
AnnotationPathAsObject = "AnnotationPathAsObject",
|
|
232
|
+
ChartToolBarAction = "ChartToolBarAction",
|
|
222
233
|
CustomColumn = "TableCustomColumn",
|
|
223
234
|
CustomColumnOP = "TableCustomColumnOP",
|
|
235
|
+
CustomColumns = "TableCustomColumns",
|
|
236
|
+
Fields = "Fields",
|
|
237
|
+
FooterActions = "FooterActions",
|
|
238
|
+
Form = "Form",
|
|
239
|
+
FormAction = "FormAction",
|
|
240
|
+
GenericActions = "GenericActions",
|
|
241
|
+
HeaderActions = "HeaderActions",
|
|
242
|
+
LineItems = "LineItems",
|
|
243
|
+
LineItemsOfView = "LineItemsOfView",
|
|
244
|
+
ListReportFilterBar = "ListReportFilterBar",
|
|
245
|
+
LRTableView = "LRTableView",
|
|
246
|
+
LRChartView = "LRChartView",
|
|
247
|
+
MultiTableModeV4 = "MultiTableModeV4",
|
|
248
|
+
ObjectPageFooter = "ObjectPageFooter",
|
|
249
|
+
ObjectPageFooterAction = "ObjectPageFooterAction",
|
|
250
|
+
ObjectPageFooterActions = "ObjectPageFooterActions",
|
|
251
|
+
ObjectPageHeader = "ObjectPageHeader",
|
|
252
|
+
ObjectPageTable = "ObjectPageTable",
|
|
253
|
+
ObjectPageTableColumn = "ObjectPageTableColumn",
|
|
254
|
+
ObjectPageToolBarAction = "ObjectPageToolBarAction",
|
|
224
255
|
Position = "Position",
|
|
225
256
|
PositionOP = "PositionOP",
|
|
226
|
-
|
|
227
|
-
|
|
257
|
+
Table = "Table",
|
|
258
|
+
TableColumn = "TableColumn",
|
|
259
|
+
ToolBarAction = "ToolBarAction",
|
|
260
|
+
ToolBarLR = "ToolBar<LineItems>",
|
|
261
|
+
ToolBar = "ToolBar",
|
|
262
|
+
ViewTableColumn = "ViewTableColumn",
|
|
263
|
+
ViewCustomColumn = "ViewTableCustomColumn",
|
|
264
|
+
ViewChartToolBar = "ViewChartToolBar",
|
|
265
|
+
ViewToolBarAction = "ViewToolBarAction"
|
|
266
|
+
}
|
|
267
|
+
export declare enum SchemaTag {
|
|
268
|
+
hidden = "hidden",
|
|
269
|
+
isViewNode = "isViewNode",
|
|
270
|
+
annotationPath = "annotationPath",
|
|
271
|
+
annotationType = "annotationType",
|
|
272
|
+
dataType = "dataType",
|
|
273
|
+
propertyIndex = "propertyIndex",
|
|
274
|
+
artifactType = "artifactType",
|
|
275
|
+
key = "key"
|
|
228
276
|
}
|
|
229
277
|
export declare const METADATAPATH = "webapp/localService/metadata.xml";
|
|
230
278
|
export declare const MANIFESTPATH = "webapp/manifest.json";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { FacetConfigs, FileData, FacetConfig, FacetSection, SchemaFilePath } from './types';
|
|
2
|
-
import { AnnotationTerm, CollectionFacet, ConverterOutput, DataFieldAbstractTypes, EntityType, PropertyAnnotations, PropertyPath, ReferenceFacet, ReferenceURLFacet } from '@sap-ux/vocabularies-types';
|
|
3
|
-
import {
|
|
1
|
+
import type { FacetConfigs, FileData, FacetConfig, FacetSection, SchemaFilePath } from './types';
|
|
2
|
+
import type { AnnotationTerm, CollectionFacet, ConverterOutput, DataFieldAbstractTypes, EntityType, PropertyAnnotations, PropertyPath, ReferenceFacet, ReferenceURLFacet } from '@sap-ux/vocabularies-types';
|
|
3
|
+
import type { Manifest } from '../../specification/common';
|
|
4
|
+
import { FioriElementsVersion, PageType, PageTypeV4 } from '../../specification/common';
|
|
4
5
|
import { SchemaType } from '../../specification/schemaAccess';
|
|
5
|
-
import { ExtensionLogger } from '../../apiTypes';
|
|
6
|
-
import { MetadataInstanceInterface } from './decoration/factory';
|
|
6
|
+
import type { ExtensionLogger } from '../../apiTypes';
|
|
7
|
+
import type { MetadataInstanceInterface } from './decoration/factory';
|
|
7
8
|
export declare enum TemplateType {
|
|
8
9
|
ListReportObjectPageV2 = "ListReportObjectPageV2",
|
|
9
10
|
ListReportObjectPageV4 = "ListReportObjectPageV4",
|
|
@@ -82,15 +83,17 @@ export declare function findAlias(namespace: string, oDataServiceAVT: ConverterO
|
|
|
82
83
|
*/
|
|
83
84
|
export declare function getSectionFacet(facetDefinition: AnnotationTerm<CollectionFacet> | AnnotationTerm<ReferenceFacet> | AnnotationTerm<ReferenceURLFacet>, sourceEntityType: EntityType, oDataServiceAVT: ConverterOutput, logger?: ExtensionLogger, oDataVersion?: FioriElementsVersion, keyForRelatedFacetKeys?: boolean): FacetSection | undefined;
|
|
84
85
|
/**
|
|
85
|
-
* Finds the alias for a given namespace in the references' section of the converted service metadata
|
|
86
|
-
*
|
|
86
|
+
* Finds the alias for a given namespace in the references' section of the converted service metadata.
|
|
87
|
+
* An empty object is created if the path element does not exist yet.
|
|
88
|
+
* Exception: if an empty array is the next element of the 'path' definition, an empty array is created instaed of an empty object.
|
|
89
|
+
* @param {object} manifest - manifest that is being modified during export
|
|
87
90
|
* @param {string} path - path of the property in the manifest
|
|
88
91
|
* @param {string} targetAnnotation - target annotation (optional)
|
|
89
92
|
* @param {string} targetAnnotationEncoded - target annotation in its encoded form, as used in manifest settings
|
|
90
93
|
* @param {boolean} importScenario - indicates if the function is called for the import, else it is the export
|
|
91
94
|
* @returns returns section of the manifest based on path, generates an empty object in case it does not exists
|
|
92
95
|
*/
|
|
93
|
-
export declare const getManifestSectionByPathV4: (
|
|
96
|
+
export declare const getManifestSectionByPathV4: (manifest: object, path: string, targetAnnotation?: string, targetAnnotationEncoded?: string, importScenario?: boolean) => object;
|
|
94
97
|
export declare function getSchemaKeyOfLineItemRecord(lineItemRecord: DataFieldAbstractTypes): string;
|
|
95
98
|
/**
|
|
96
99
|
* Retrieve header facet configurations that can be used to generate ObjectPage schemas
|
|
@@ -142,6 +145,13 @@ export declare function getTemplateTypeFromManifest(manifest: Manifest, fioriEle
|
|
|
142
145
|
* @param facetKey - key of the facet
|
|
143
146
|
*/
|
|
144
147
|
export declare function addSectionTitleAndDescription(facet: FacetConfig, section: object, facetKey: string): void;
|
|
148
|
+
/**
|
|
149
|
+
* Adds target title or description to a section or header section in an app schema
|
|
150
|
+
* @param facet - intermediate facet structure comprising annotation information
|
|
151
|
+
* @param section - section in the app schema
|
|
152
|
+
* @param facetKey - key of the facet
|
|
153
|
+
*/
|
|
154
|
+
export declare function addTargetTitleAndSectionDescription(facet: FacetConfig, section: object, facetKey: string): void;
|
|
145
155
|
/**
|
|
146
156
|
* Creates a default object for a new section or subsection, and adds the ID as title if present.
|
|
147
157
|
* @param facet Facet configuration, to be analyzed
|
package/dist/src/sync/i18n.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i18n } from 'i18next';
|
|
1
|
+
import type { i18n } from 'i18next';
|
|
2
2
|
export declare function initI18n(i18nInstance: i18n): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AppSettings as CommonSettingsV2, Pages, TableColumnVerticalAlignment, StatePreservationMode, DraftDiscardConfirmationSettings } from '../../specification/v2';
|
|
2
|
-
import { Target, Application, FlexibleColumnLayout, Manifest } from '../../specification/common';
|
|
1
|
+
import type { AppSettings as CommonSettingsV2, Pages, TableColumnVerticalAlignment, StatePreservationMode, DraftDiscardConfirmationSettings } from '../../specification/v2';
|
|
2
|
+
import type { Target, Application, FlexibleColumnLayout, Manifest } from '../../specification/common';
|
|
3
3
|
export declare const getAppSettingPathV2: (pageKeys: string[]) => string;
|
|
4
4
|
export declare const getTableSettingPathV2: (pageKeys: string[]) => string;
|
|
5
5
|
export declare const getChartSettingPathV2: (pageKeys: string[]) => string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChartSettings as ChartConfig, ChartType } from '../../../../specification/v2/controls/AnalyticalListPageChart';
|
|
1
|
+
import type { ChartSettings as ChartConfig, ChartType } from '../../../../specification/v2/controls/AnalyticalListPageChart';
|
|
2
2
|
export declare const getSmartChartControlId: (baseId: string) => string;
|
|
3
3
|
export declare class ChartSettings implements ChartConfig {
|
|
4
4
|
showLegendButton?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { KPISettings as KPIConfig } from '../../../../specification/v2/controls/AnalyticalListPageKPI';
|
|
1
|
+
import type { KPISettings as KPIConfig } from '../../../../specification/v2/controls/AnalyticalListPageKPI';
|
|
2
2
|
export declare class KPISettings implements KPIConfig {
|
|
3
3
|
model: string;
|
|
4
4
|
entitySet?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CustomCard as CustomCardConfig, ListCard as ListCardConfig, AnalyticalCard as AnalyticalCardConfig, StackCard as StackCardConfig, LinklistCard as LinklistCardConfig, TableCard as TableCardConfig, AnalyticalCardSettings, AnalyticalCardSettingsv4, TableCardSettings, LinkListCardSettings, ListCardSettings, StackCardSettings, TabSetting, CustomCardSettings, CommonCardSettings as CommonCardConfig, DefaultSpanDef, StaticContent, CardTemplateType, PlotAreaDef } from '../../../../specification/v2/controls/Card';
|
|
1
|
+
import type { CustomCard as CustomCardConfig, ListCard as ListCardConfig, AnalyticalCard as AnalyticalCardConfig, StackCard as StackCardConfig, LinklistCard as LinklistCardConfig, TableCard as TableCardConfig, AnalyticalCardSettings, AnalyticalCardSettingsv4, TableCardSettings, LinkListCardSettings, ListCardSettings, StackCardSettings, TabSetting, CustomCardSettings, CommonCardSettings as CommonCardConfig, DefaultSpanDef, StaticContent, CardTemplateType, PlotAreaDef } from '../../../../specification/v2/controls/Card';
|
|
2
2
|
export declare class CommonCardSettings implements CommonCardConfig {
|
|
3
3
|
entitySet?: string;
|
|
4
4
|
title: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { FilterType, DateRangeType,
|
|
1
|
+
import type { FilterType, DateRangeType, DefaultDateRangeValueType, DateRange as DateRangeInterface, CommonFilterBar as FilterBarConfig, SelectionFields as SelectionFieldsConfig, DefaultDateRange as DefaultDateRangeConfig, ListReportFilterBar as ListReportFilterBarIF, AnalyticalListPageFilterBar as AnalyticalListPageFilterBarIF, SelectionFieldDateSettings as SelectionFieldDateSettingsConfig } from '../../../../specification/v2';
|
|
2
|
+
import { SelectionField } from '../../../../specification/v2';
|
|
2
3
|
export declare function importDateSettings(manifestSection: object): DateRange;
|
|
3
4
|
export declare function exportDateSettings(manifestSection: unknown, configPart: DateRange, key: string): void;
|
|
4
5
|
export declare function exportDateSettingsField(manifestSection: unknown, configPart: DateRange, key: string): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="@sapui5/ts-types" />
|
|
2
|
-
import { FormAction as FormActionConfig } from '../../../../specification/v2';
|
|
2
|
+
import type { FormAction as FormActionConfig } from '../../../../specification/v2';
|
|
3
3
|
export declare class FormAction implements FormActionConfig {
|
|
4
4
|
visible: boolean;
|
|
5
5
|
tooltip?: string;
|
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ExportResults, ExtensionLogger } from '../../../../v2';
|
|
3
|
-
import {
|
|
1
|
+
import type { TableCustomColumns, SapUiAppPageV2 } from '../../../../specification/v2';
|
|
2
|
+
import type { ExportResults, ExtensionLogger } from '../../../../v2';
|
|
3
|
+
import type { FileData } from '../../../common/types';
|
|
4
|
+
import { ViewTemplateType } from '../../../common/types';
|
|
4
5
|
export declare const FRAGMENT_DEFINITION = "core:FragmentDefinition";
|
|
5
|
-
|
|
6
|
-
* Method which receives fragment definition node and returns 'tag' name of root column definition.
|
|
7
|
-
* There is different column definition names - method resolves them.
|
|
8
|
-
* For example 'Column', 'table:Column', etc.
|
|
9
|
-
* @param {unknown} definition - Application or Page Config object.
|
|
10
|
-
* @returns {unknown | undefined} Root column tag name.
|
|
11
|
-
*/
|
|
12
|
-
export declare function getTagNameFromFragmentJSON(definition: unknown): string | undefined;
|
|
6
|
+
export declare const SAP_UI_TABLE = "sap.ui.table";
|
|
13
7
|
/**
|
|
14
8
|
* Method which receives fragment definition node and reads root column definition.
|
|
15
9
|
* @param {unknown} definition - Application or Page Config object.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ObjectPageChart as ObjectPageChartConfig, GlobalChartSettings as GlobalChartSettingsConfig } from '../../../../specification/v2/index';
|
|
1
|
+
import type { ObjectPageChart as ObjectPageChartConfig, GlobalChartSettings as GlobalChartSettingsConfig } from '../../../../specification/v2/index';
|
|
2
2
|
export declare class ObjectPageChart implements ObjectPageChartConfig {
|
|
3
3
|
variantManagement?: boolean;
|
|
4
4
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SectionPosition, ObjectPageCustomSectionView as ViewCustomSectionConfig, ObjectPageCustomSectionFragment as FragmentCustomSectionConfig, ObjectPageCustomSectionBase as BaseCustomSectionConfig, ExtensionFragmentTypes } from '../../../../specification/v2';
|
|
2
|
-
import { SAPUI5_FRAGMENT_CLASS, SAPUI5_VIEW_CLASS } from '../../../../specification/common';
|
|
3
|
-
import { ViewTypes } from '../../../../specification/common/webapp/manifest/sapUi5';
|
|
1
|
+
import type { SectionPosition, ObjectPageCustomSectionView as ViewCustomSectionConfig, ObjectPageCustomSectionFragment as FragmentCustomSectionConfig, ObjectPageCustomSectionBase as BaseCustomSectionConfig, ExtensionFragmentTypes } from '../../../../specification/v2';
|
|
2
|
+
import type { SAPUI5_FRAGMENT_CLASS, SAPUI5_VIEW_CLASS } from '../../../../specification/common';
|
|
3
|
+
import type { ViewTypes } from '../../../../specification/common/webapp/manifest/sapUi5';
|
|
4
4
|
export declare class BaseCustomSection implements BaseCustomSectionConfig {
|
|
5
5
|
relatedFacet: string;
|
|
6
6
|
relativePosition: SectionPosition;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="@sapui5/ts-types" />
|
|
2
|
-
import { ObjectPageFooterAction as FooterActionConfig } from '../../../../specification/v2';
|
|
2
|
+
import type { ObjectPageFooterAction as FooterActionConfig } from '../../../../specification/v2';
|
|
3
3
|
export declare class ObjectPageFooterAction implements FooterActionConfig {
|
|
4
4
|
visible: boolean;
|
|
5
5
|
tooltip?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="@sapui5/ts-types" />
|
|
2
|
-
import { ObjectPageHeader as ObjectPageHeaderConfig, GenericActions } from '../../../../specification/v2/controls/ObjectPageHeader';
|
|
2
|
+
import type { ObjectPageHeader as ObjectPageHeaderConfig, GenericActions } from '../../../../specification/v2/controls/ObjectPageHeader';
|
|
3
3
|
export declare class ObjectPageHeader<ACT = GenericActions> implements ObjectPageHeaderConfig<ACT> {
|
|
4
4
|
showRelatedApps?: boolean;
|
|
5
5
|
editableHeaderContent?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="@sapui5/ts-types" />
|
|
2
|
-
import { HeaderAction as HeaderActionConfig } from '../../../../specification/v2';
|
|
2
|
+
import type { HeaderAction as HeaderActionConfig } from '../../../../specification/v2';
|
|
3
3
|
export declare class HeaderAction implements HeaderActionConfig {
|
|
4
4
|
visible: boolean;
|
|
5
5
|
tooltip?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ObjectPageLayout as ObjectPageLayoutConfig } from '../../../../specification/v2/controls/ObjectPageLayout';
|
|
1
|
+
import type { ObjectPageLayout as ObjectPageLayoutConfig } from '../../../../specification/v2/controls/ObjectPageLayout';
|
|
2
2
|
export declare class ObjectPageLayout implements ObjectPageLayoutConfig {
|
|
3
3
|
showHeaderContent?: boolean;
|
|
4
4
|
showAnchorBar?: boolean;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ObjectPageSectionFormV2 as ObjectPageSectionFormV2Config, ObjectPageSectionChartV2 as ObjectPageSectionChartV2Config, ObjectPageSectionTableV2 as ObjectPageSectionTableV2Config, ObjectPageSubSectionV2 as ObjectPageSubSectionV2Config } from '../../../../specification/v2/index';
|
|
2
|
-
import { ControlTypeFunction } from '../../../common';
|
|
1
|
+
import type { ObjectPageSectionFormV2 as ObjectPageSectionFormV2Config, ObjectPageSectionChartV2 as ObjectPageSectionChartV2Config, ObjectPageSectionTableV2 as ObjectPageSectionTableV2Config, ObjectPageSubSectionV2 as ObjectPageSubSectionV2Config } from '../../../../specification/v2/index';
|
|
2
|
+
import type { ControlTypeFunction } from '../../../common';
|
|
3
3
|
export declare const FacetTitlePrefix = "Facet ID: ";
|
|
4
|
-
export declare const getTableSectionControlId: (baseId: string, idBreadcrumbs: string[], breadcrumbs: string[], controlType: ControlTypeFunction,
|
|
5
|
-
export declare const getFormSectionControlId: (baseId: string, idBreadcrumbs: string[], breadcrumbs: string[], controlType: ControlTypeFunction,
|
|
4
|
+
export declare const getTableSectionControlId: (baseId: string, idBreadcrumbs: string[], breadcrumbs: string[], controlType: ControlTypeFunction, facetId: string) => string;
|
|
5
|
+
export declare const getFormSectionControlId: (baseId: string, idBreadcrumbs: string[], breadcrumbs: string[], controlType: ControlTypeFunction, facetId: string) => string;
|
|
6
6
|
export declare const getChartSectionControlId: (baseId: string, idBreadcrumbs: string[], breadcrumbs: string[], controlType: ControlTypeFunction, facetID: string) => string;
|
|
7
|
-
export declare const getSectionControlId: (baseId: string, idBreadcrumbs: string[], breadcrumbs: string[], controlType: ControlTypeFunction,
|
|
8
|
-
export declare const getSubSectionControlId: (baseId: string, idBreadcrumbs: string[], breadcrumbs: string[], controlType: ControlTypeFunction,
|
|
7
|
+
export declare const getSectionControlId: (baseId: string, idBreadcrumbs: string[], breadcrumbs: string[], controlType: ControlTypeFunction, facetId: string) => string;
|
|
8
|
+
export declare const getSubSectionControlId: (baseId: string, idBreadcrumbs: string[], breadcrumbs: string[], controlType: ControlTypeFunction, facetId: string) => string;
|
|
9
9
|
export declare class ObjectPageSectionV2 implements ObjectPageSubSectionV2Config {
|
|
10
10
|
visible?: boolean;
|
|
11
11
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="@sapui5/ts-types" />
|
|
2
|
-
import { GenericColumns, CreateMode, TableTypeV2, Fields4Dialog, QuickVariant, FieldPathOP as FieldPathOPInterface, CreationFieldKeys, ObjectPageToolBar } from '../../../../specification/v2';
|
|
3
|
-
import { ObjectPageCommonTableSettings as ObjectPageCommonTableConfig, ObjectPageResponsiveTable as ObjectPageResponsiveTableConfig, ObjectPageAnalyticalTable as ObjectPageAnalyticalTableConfig, ObjectPageGridTable as ObjectPageGridTableConfig, ObjectPageTreeTable as ObjectPageTreeTableConfig } from '../../../../specification/v2/controls/ObjectPageTable';
|
|
4
|
-
import { DeprecatedProperties } from '../../../common';
|
|
2
|
+
import type { GenericColumns, CreateMode, TableTypeV2, Fields4Dialog, QuickVariant, FieldPathOP as FieldPathOPInterface, CreationFieldKeys, ObjectPageToolBar } from '../../../../specification/v2';
|
|
3
|
+
import type { ObjectPageCommonTableSettings as ObjectPageCommonTableConfig, ObjectPageResponsiveTable as ObjectPageResponsiveTableConfig, ObjectPageAnalyticalTable as ObjectPageAnalyticalTableConfig, ObjectPageGridTable as ObjectPageGridTableConfig, ObjectPageTreeTable as ObjectPageTreeTableConfig } from '../../../../specification/v2/controls/ObjectPageTable';
|
|
4
|
+
import type { DeprecatedProperties } from '../../../common';
|
|
5
5
|
export declare class QuickVariantSelectionOP {
|
|
6
6
|
showCounts?: boolean;
|
|
7
7
|
variants: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="@sapui5/ts-types" />
|
|
2
|
-
import { ObjectPageToolBarAction as ToolBarActionConfig } from '../../../../specification/v2';
|
|
2
|
+
import type { ObjectPageToolBarAction as ToolBarActionConfig } from '../../../../specification/v2';
|
|
3
3
|
export declare class ObjectPageToolBarAction implements ToolBarActionConfig {
|
|
4
4
|
visible: boolean;
|
|
5
5
|
tooltip?: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="@sapui5/ts-types" />
|
|
2
|
-
import { AnalyticalTable as AnalyticalTableConfig, TableALP as TableALPConfig, CommonTableSettings as CommonTableConfig, DefaultContentView, DefaultFilterMode, GenericColumns, GridTable as GridTableConfig, LoadDataOnAppLaunchSettings, QuickVariantSelectionX as QuickVariantSelectionXInterface, ResponsiveTable as ResponsiveTableConfig,
|
|
3
|
-
import {
|
|
2
|
+
import type { AnalyticalTable as AnalyticalTableConfig, TableALP as TableALPConfig, CommonTableSettings as CommonTableConfig, DefaultContentView, DefaultFilterMode, GenericColumns, GridTable as GridTableConfig, LoadDataOnAppLaunchSettings, QuickVariantSelectionX as QuickVariantSelectionXInterface, ResponsiveTable as ResponsiveTableConfig, TreeTable as TreeTableConfig, Strategy, FieldPath as FieldPathInterface, QuickVariant, QuickVariantX, CreationFieldKeys, ToolBar } from '../../../../specification/v2';
|
|
3
|
+
import { TableTypeV2 } from '../../../../specification/v2';
|
|
4
|
+
import type { ControlTypeFunction, DeprecatedProperties } from '../../../common';
|
|
4
5
|
export declare const getSmartTableControlId: (baseId: string, idBreadcrumbs: string[], _breadcrumbs: string[], controlType: ControlTypeFunction) => string;
|
|
5
6
|
export declare function importCreateParameters(manifestSection: object): object;
|
|
6
7
|
export declare function exportCreateParameters(manifestSection: unknown, configPart: Fields4Dialog): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="@sapui5/ts-types" />
|
|
2
|
-
import { TableColumn as TableColumnConfig, TableColumnAction as TableColumnActionConfig, TableCustomColumn as TableCustomColumnConfig, TableColumnExtensionTypeV2 } from '../../../../specification/v2';
|
|
3
|
-
import { SAPUI5_FRAGMENT_CLASS } from '../../../../specification/common/webapp/manifest';
|
|
2
|
+
import type { TableColumn as TableColumnConfig, TableColumnAction as TableColumnActionConfig, TableCustomColumn as TableCustomColumnConfig, TableColumnExtensionTypeV2 } from '../../../../specification/v2';
|
|
3
|
+
import type { SAPUI5_FRAGMENT_CLASS } from '../../../../specification/common/webapp/manifest';
|
|
4
4
|
export declare class TableColumn implements TableColumnConfig {
|
|
5
5
|
width?: string;
|
|
6
6
|
hAlign?: sap.ui.core.TextAlign;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ExportResults } from '../../../v2';
|
|
2
|
-
import { MetadataInstanceInterface } from '../../common/decoration/factory';
|
|
3
|
-
import { TransferParameterTypeV2 } from '../types';
|
|
1
|
+
import type { ExportResults } from '../../../v2';
|
|
2
|
+
import type { MetadataInstanceInterface } from '../../common/decoration/factory';
|
|
3
|
+
import type { TransferParameterTypeV2 } from '../types';
|
|
4
4
|
/**
|
|
5
5
|
* Private recursive function that traverses the content of the current object. It reads decorators and fills manifest entries and flex changes
|
|
6
6
|
* @param configObject - current object to traverse
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { UI5Version, ExportParametersV2, FioriElementsVersion } from '../../..';
|
|
2
|
-
import { ExportResults } from '../../common';
|
|
1
|
+
import type { UI5Version, ExportParametersV2, FioriElementsVersion } from '../../..';
|
|
2
|
+
import type { ExportResults } from '../../common';
|
|
3
3
|
/**
|
|
4
4
|
* Exports a Fiori Element V2 page.
|
|
5
5
|
* It converts the entries of the input page (config file) to corresponding manifest settings and flex changes
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { MetadataInstanceInterface
|
|
1
|
+
import type { MetadataInstanceInterface } from '../../common/decoration/factory';
|
|
2
|
+
import { MetadataFactory } from '../../common/decoration/factory';
|
|
2
3
|
/**
|
|
3
4
|
* V2 specific factory class for creating instances of (reflect) metadata classes
|
|
4
5
|
*/
|
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
import { Pages } from '../../../specification/v2';
|
|
1
|
+
import type { Pages } from '../../../specification/v2';
|
|
2
|
+
/**
|
|
3
|
+
* Method searches in manifest object by passed path and returns found value.
|
|
4
|
+
* If value was not found in manifest object,
|
|
5
|
+
* then method created empty object in manifest object within passed path.
|
|
6
|
+
* @param manifest - target manifest object
|
|
7
|
+
* @param path - path to lookup in manifest
|
|
8
|
+
* @returns Found or created value
|
|
9
|
+
*/
|
|
10
|
+
export declare const ensureManifestSectionByPathV2: (manifest: object, path: string) => object;
|
|
11
|
+
/**
|
|
12
|
+
* Method searches in manifest object by passed path and returns found value.
|
|
13
|
+
* If value was not found in manifest object, then 'undefined' is returned.
|
|
14
|
+
* @param manifest - target manifest file
|
|
15
|
+
* @param path - path to lookup in manifest
|
|
16
|
+
* @returns Found value
|
|
17
|
+
*/
|
|
2
18
|
export declare const getManifestSectionByPathV2: (manifest: object, path: string) => object;
|
|
3
19
|
export declare const deleteManifestSectionByPathV2: (manifest: object, path: string) => void;
|
|
4
20
|
export declare function transformPageToNewManifestV2(pageId: string, configPages: Pages, manifestPage: object): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AnalyticalListPageConfig, AnalyticalListPageFilterBar } from '../../../../specification/v2';
|
|
2
|
-
import { AnalyticalTable } from '../controls/Table';
|
|
3
|
-
import { ChartSettings, GenericFooter } from '../../../../specification/v2/controls';
|
|
4
|
-
import { KPISettings } from '../../../../specification/v2/controls/AnalyticalListPageKPI';
|
|
1
|
+
import type { AnalyticalListPageConfig, AnalyticalListPageFilterBar } from '../../../../specification/v2';
|
|
2
|
+
import type { AnalyticalTable } from '../controls/Table';
|
|
3
|
+
import type { ChartSettings, GenericFooter } from '../../../../specification/v2/controls';
|
|
4
|
+
import type { KPISettings } from '../../../../specification/v2/controls/AnalyticalListPageKPI';
|
|
5
5
|
export declare class AnalyticalListPage implements AnalyticalListPageConfig {
|
|
6
6
|
fitContent?: boolean;
|
|
7
7
|
table?: AnalyticalTable;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ListReportConfig, ListReportFilterBar, GenericFooter } from '../../../../specification/v2';
|
|
2
|
-
import { ResponsiveTable, TreeTable, AnalyticalTable, GridTable } from '../controls/Table';
|
|
1
|
+
import type { ListReportConfig, ListReportFilterBar, GenericFooter } from '../../../../specification/v2';
|
|
2
|
+
import type { ResponsiveTable, TreeTable, AnalyticalTable, GridTable } from '../controls/Table';
|
|
3
3
|
declare type TableClassType = ResponsiveTable | TreeTable | AnalyticalTable | GridTable;
|
|
4
4
|
export declare class ListReport implements ListReportConfig {
|
|
5
5
|
fitContent?: boolean;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* The module is mapped to specification/v2/pages/ObjectPageConfig.ts
|
|
3
3
|
* This comment is maintained as this module is named as ObjectPage.ts and the corresponding module is named as ObjectPageConfig.ts
|
|
4
4
|
*/
|
|
5
|
-
import { ObjectPageConfig, GlobalChartSettings } from '../../../../specification/v2/index';
|
|
6
|
-
import { ObjectPageHeader, GenericSections, ObjectPageLayout, CustomSections } from '../../../../specification/v2/controls';
|
|
7
|
-
import { FlexibleColumnLayoutType } from '../../../../specification/common/types';
|
|
5
|
+
import type { ObjectPageConfig, GlobalChartSettings } from '../../../../specification/v2/index';
|
|
6
|
+
import type { ObjectPageHeader, GenericSections, ObjectPageLayout, CustomSections } from '../../../../specification/v2/controls';
|
|
7
|
+
import type { FlexibleColumnLayoutType } from '../../../../specification/common/types';
|
|
8
8
|
export declare class ObjectPage implements ObjectPageConfig {
|
|
9
9
|
showConfirmationOnDraftActivate?: boolean;
|
|
10
10
|
hideChevronForUnauthorizedExtNav?: boolean;
|