@sap/ux-specification 1.96.6 → 1.96.11
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 +85 -18
- 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 +629 -199
- package/dist/schemas/v4/ObjectPageConfig.json +36 -0
- 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 +18 -21
- 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/ObjectPageSection.d.ts +24 -3
- 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 +170 -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 +52 -19
- 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 +110 -13
- package/dist/src/sync/common/utils.d.ts +23 -15
- 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 +2 -2
- 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 +4 -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 -4
- 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 +23 -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 +3 -3
- 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 +8 -7
- package/dist/src/sync/v2/import/app/appProvider.d.ts +13 -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 +28 -12
- 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 +131 -10
- 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 +1 -1
- 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 +8 -6
- 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 +15 -2
- package/dist/src/sync/v4/import/utils.d.ts +4 -3
- package/dist/src/sync/v4/types.d.ts +4 -2
- package/dist/src/sync/v4/utils/utils.d.ts +21 -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 +14 -11
- 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,55 @@
|
|
|
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 type { Definition } from 'typescript-json-schema';
|
|
4
|
+
import type { FacetConfig, FacetSection } from '..';
|
|
5
|
+
import type { SectionTypeV2 } from '../../v2/types';
|
|
6
|
+
import type { PresentationVariantV4 } from '../../v4/types';
|
|
7
|
+
import { UIAnnotationTerms } from '@sap-ux/vocabularies-types';
|
|
8
|
+
import { DefinitionName } from '..';
|
|
4
9
|
/**
|
|
5
10
|
* Adds an enum filled with existing UI annotations of the given list (validAnnotations)
|
|
6
11
|
* @param {EntityType} entityType
|
|
7
12
|
* @param {UIAnnotationTerms[]} validAnnotations
|
|
8
|
-
* @param annoPath - the annotation path property in the app schema where the enum shall be added
|
|
13
|
+
* @param {Definition} annoPath - the annotation path property in the app schema where the enum shall be added
|
|
9
14
|
*/
|
|
10
|
-
export declare function addEnumForValidAnnotations(entityType: EntityType, validAnnotations: UIAnnotationTerms[], annoPath:
|
|
15
|
+
export declare function addEnumForValidAnnotations(entityType: EntityType, validAnnotations: UIAnnotationTerms[], annoPath: Definition): void;
|
|
11
16
|
/**
|
|
12
17
|
* Adds an enum filled with existing UI annotations for single-tab variants of a table
|
|
13
18
|
* @param {EntityType} entityType
|
|
14
|
-
* @param appSchema - app specific
|
|
19
|
+
* @param {Definition} appSchema - app specific JSON schema
|
|
15
20
|
* @param definitionName - name of the definition in the app schema
|
|
16
21
|
*/
|
|
17
|
-
export declare function addEnumForSingleTabVariant(entityType: EntityType, appSchema:
|
|
22
|
+
export declare function addEnumForSingleTabVariant(entityType: EntityType, appSchema: Definition, definitionName: string): void;
|
|
18
23
|
/**
|
|
19
24
|
* 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
25
|
* @param appSchema - app specific JSOn schema
|
|
22
26
|
* @param definitionName - name of the definition in the app schema
|
|
27
|
+
* @param {EntitySet} entitySet - current entity set of the page or view
|
|
23
28
|
*/
|
|
24
|
-
export declare function addEnumForMultiTabVariant(
|
|
29
|
+
export declare function addEnumForMultiTabVariant(appSchema: Definition, definitionName: string, entitySet: EntitySet): void;
|
|
25
30
|
/**
|
|
26
|
-
* Adds the
|
|
31
|
+
* Adds the enum values for entitySet as part of the multiple view scenario
|
|
27
32
|
* @param {ConverterOutput} oDataServiceAVT - combined service metadata, as returned by annotation vocabularies tools
|
|
28
33
|
* @param appSchema - app specific JSOn schema
|
|
29
34
|
* @param definitionName - name of the definition in the app schema
|
|
30
35
|
*/
|
|
31
|
-
export declare function addEnumForVariantEntitySet(oDataServiceAVT: ConverterOutput, appSchema:
|
|
36
|
+
export declare function addEnumForVariantEntitySet(oDataServiceAVT: ConverterOutput, appSchema: Definition, definitionName: string): void;
|
|
32
37
|
/**
|
|
33
38
|
* Adds an enum filled with existing UI annotations for annotationPath property in FilterBar
|
|
34
39
|
* @param {EntityType} entityType
|
|
35
40
|
* @param appSchema - app specific JSOn schema
|
|
36
41
|
* @param definitionName - name of the definition in the app schema
|
|
37
42
|
*/
|
|
38
|
-
export declare function addEnumForFilterBarAnnotationPath(entityType: EntityType, appSchema:
|
|
43
|
+
export declare function addEnumForFilterBarAnnotationPath(entityType: EntityType, appSchema: Definition, definitionName: string): void;
|
|
39
44
|
/**
|
|
40
|
-
* Method adds definition for 'RelatedFacetKeys' as enum with
|
|
41
|
-
* @param {
|
|
45
|
+
* Method adds definition for 'RelatedFacetKeys' as enum with description and adds references to 'RelatedFacetKeys' for custom section definitions.
|
|
46
|
+
* @param {Definition} appSchema App specific schema that potentially gets enhanced
|
|
42
47
|
* @param {string[]>} sectionDefinitions array of section definitions which should be updated with new reference to 'RelatedFacetKeys' enum.
|
|
43
48
|
* @param {FacetSection[]} facetSections Array of facet section objects which is used to generate enum values.
|
|
44
49
|
* @param {Array<keyof Omit<FacetSection, 'custom'>>} idProperties Array of property names which should be looked up in 'FacetSection' object.
|
|
45
50
|
* Please note that method depends on order and takes first non empty value associated to passed properties.
|
|
46
51
|
*/
|
|
47
|
-
export declare function addDefinitionForRelatedFacetKeys(
|
|
52
|
+
export declare function addDefinitionForRelatedFacetKeys(appSchema: Definition, sectionDefinitions: string[], facetSections: FacetSection[], idProperties: Array<keyof Omit<FacetSection, 'custom'>>): void;
|
|
48
53
|
/**
|
|
49
54
|
* Functions used both by V2 and V4 to add the common definitions for a line item to the app schema
|
|
50
55
|
* @param appSchema - the app specific schema that shall get enhanced
|
|
@@ -55,9 +60,9 @@ export declare function addDefinitionForRelatedFacetKeys(schema: object, section
|
|
|
55
60
|
* Passed in the V4 case, then additional properties of this type will be allowed.
|
|
56
61
|
* @returns the actions definition plus the annotation path to the given line item
|
|
57
62
|
*/
|
|
58
|
-
export declare function addCommonLineItemDefinitions(appSchema:
|
|
59
|
-
actions:
|
|
60
|
-
footerActions:
|
|
63
|
+
export declare function addCommonLineItemDefinitions(appSchema: Definition, lineItemAnnotation: AnnotationTerm<LineItem>, entityType: EntityType, lineItemId: string, customColumnDefinitionName?: string): {
|
|
64
|
+
actions: Definition;
|
|
65
|
+
footerActions: Definition;
|
|
61
66
|
lineItemPath: string;
|
|
62
67
|
};
|
|
63
68
|
/**
|
|
@@ -66,7 +71,7 @@ export declare function addCommonLineItemDefinitions(appSchema: object, lineItem
|
|
|
66
71
|
* @param {EntityType} entityType - Given entity type for which entries shall get generated
|
|
67
72
|
* @param {string=} floorplanSuffix - floorplan specific suffix (optional)
|
|
68
73
|
*/
|
|
69
|
-
export declare function addFieldsType(appSchema:
|
|
74
|
+
export declare function addFieldsType(appSchema: Definition, entityType: EntityType, floorplanSuffix?: string): void;
|
|
70
75
|
export declare enum DataType {
|
|
71
76
|
String = "String",
|
|
72
77
|
Rating = "Rating",
|
|
@@ -99,3 +104,31 @@ export declare function determineDataType(field: object): string | undefined;
|
|
|
99
104
|
* @param field - given field definition = annotation property, at AVT
|
|
100
105
|
*/
|
|
101
106
|
export declare function addDataTypeToDefinition(definition: object, field: object): void;
|
|
107
|
+
/**
|
|
108
|
+
* Receives a facet key and returns the key as used in schema
|
|
109
|
+
* @param facetKey - key of the facet, as used in annotation
|
|
110
|
+
* @returns facetKeyInSchema - key of the facet, as used in schema
|
|
111
|
+
*/
|
|
112
|
+
export declare function getFacetKeyInSchema(facetKey: string): string;
|
|
113
|
+
/**
|
|
114
|
+
* Adds an existing schema definition to a new definition in the app schema
|
|
115
|
+
* @param definition name of definition, as used in schema
|
|
116
|
+
* @param facetKey - key of the facet, as used in annotation
|
|
117
|
+
* @param {Definition} appSchema App schema in general
|
|
118
|
+
* @param {boolean} useDefinitionAsKey If set to false, facet key will solely be used as key, else encapsulated within definition key `definition<facetKey>`
|
|
119
|
+
* @returns {Definition} part of app schema that has been added and filled
|
|
120
|
+
*/
|
|
121
|
+
export declare function parseSchemaDefinition(definition: DefinitionName | SectionTypeV2, facetKey: string, appSchema: Definition, useDefinitionAsKey?: boolean): Definition;
|
|
122
|
+
/**
|
|
123
|
+
* Creates a definition link for a facet and definition name
|
|
124
|
+
* @param definition name of definition, as used in schema
|
|
125
|
+
* @param facetKey - key of the facet, as used in annotation
|
|
126
|
+
* @returns definition link of facet, as used in definition
|
|
127
|
+
*/
|
|
128
|
+
export declare function getFacetDefinitionLink(definition: DefinitionName | SectionTypeV2, facetKey: string): string;
|
|
129
|
+
/**
|
|
130
|
+
* Extracts annotationPath from facet or Chart/LineItem fullyQualifiedName
|
|
131
|
+
* @param facet facet or Chart/LineItem
|
|
132
|
+
* @returns {string} annotationPath
|
|
133
|
+
*/
|
|
134
|
+
export declare function getFacetAnnotationPath(facet: FacetConfig | PresentationVariantV4 | object): string | undefined;
|
|
@@ -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,15 @@
|
|
|
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 { AnnotationTerm, CollectionFacet, EntityType, ReferenceFacet, ReferenceURLFacet } from '@sap-ux/vocabularies-types';
|
|
3
|
+
import type { ManifestSettingsType } from '../../specification/common/types';
|
|
4
|
+
export declare type anyFacetType = AnnotationTerm<CollectionFacet> | AnnotationTerm<ReferenceFacet> | AnnotationTerm<ReferenceURLFacet>;
|
|
4
5
|
export declare enum ExportArtifacts {
|
|
5
6
|
flex = "flex",
|
|
6
7
|
manifest = "manifest"
|
|
7
8
|
}
|
|
9
|
+
export declare enum ALPViewType {
|
|
10
|
+
Primary = "primary",
|
|
11
|
+
Secondary = "secondary"
|
|
12
|
+
}
|
|
8
13
|
export declare enum DirName {
|
|
9
14
|
Sapux = "src",
|
|
10
15
|
Schemas = ".schemas",
|
|
@@ -105,12 +110,13 @@ export interface FlexAdapter {
|
|
|
105
110
|
importFlexValue?: importFlexValue;
|
|
106
111
|
}
|
|
107
112
|
export declare type ManifestPath = (pageKeys?: string[], manifest?: Manifest, ...pathParts: string[]) => string;
|
|
113
|
+
export declare type ExportHandlerFunction = (manifestSection: unknown, configObject: unknown, key: string, manifestKey?: string, ...pathParts: string[]) => unknown;
|
|
108
114
|
export interface ManifestConverter {
|
|
109
115
|
path: ManifestPath;
|
|
110
116
|
key?: string;
|
|
111
|
-
import?: ((manifestSection: unknown, sectionId?: string, propertyKey?: string) => unknown) | boolean;
|
|
112
|
-
export?:
|
|
113
|
-
delete?: (manifestSection: unknown, configObject: unknown, key: string, manifestKey: string) => unknown;
|
|
117
|
+
import?: ((manifestSection: unknown, sectionId?: string, propertyKey?: string, breadcrumbs?: string[]) => unknown) | boolean;
|
|
118
|
+
export?: ExportHandlerFunction | boolean;
|
|
119
|
+
delete?: ((manifestSection: unknown, configObject: unknown, key: string, manifestKey: string, syncRuleKey?: string) => unknown) | boolean;
|
|
114
120
|
}
|
|
115
121
|
export interface SyncRule {
|
|
116
122
|
flex?: FlexAdapter;
|
|
@@ -151,6 +157,10 @@ export interface FileData {
|
|
|
151
157
|
dataSourceUri: string;
|
|
152
158
|
fileContent: string;
|
|
153
159
|
}
|
|
160
|
+
export declare enum Visualization {
|
|
161
|
+
LineItem = "LineItem",
|
|
162
|
+
Chart = "Chart"
|
|
163
|
+
}
|
|
154
164
|
export declare enum FacetBase {
|
|
155
165
|
LineItem = "LineItem",
|
|
156
166
|
CollectionFacet = "CollectionFacet",
|
|
@@ -160,6 +170,7 @@ export declare enum FacetBase {
|
|
|
160
170
|
DataPoint = "DataPoint",
|
|
161
171
|
Address = "Address",
|
|
162
172
|
Contact = "Contact",
|
|
173
|
+
PresentationVariant = "PresentationVariant",
|
|
163
174
|
Unknown = ""
|
|
164
175
|
}
|
|
165
176
|
export interface FacetConfig {
|
|
@@ -214,23 +225,109 @@ export declare enum ViewTemplateType {
|
|
|
214
225
|
ResponsiveTableCellsExtension = "ResponsiveTableCellsExtension"
|
|
215
226
|
}
|
|
216
227
|
export declare enum DefinitionName {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
228
|
+
Actions = "Actions",
|
|
229
|
+
ALPChart = "ALPChart",
|
|
230
|
+
ALPChartView = "ALPChartView",
|
|
231
|
+
ALPTable = "ALPTable",
|
|
232
|
+
ALPTableView = "ALPTableView",
|
|
233
|
+
AnalyticalListPageFilterBar = "AnalyticalListPageFilterBar",
|
|
234
|
+
AnnotationPathAsObject = "AnnotationPathAsObject",
|
|
235
|
+
ChartToolBarAction = "ChartToolBarAction",
|
|
236
|
+
CommonHeaderFacetSettings = "CommonHeaderFacetSettings",
|
|
222
237
|
CustomColumn = "TableCustomColumn",
|
|
223
238
|
CustomColumnOP = "TableCustomColumnOP",
|
|
239
|
+
CustomColumns = "TableCustomColumns",
|
|
240
|
+
CustomSections = "CustomSections",
|
|
241
|
+
FieldPath = "FieldPath",
|
|
242
|
+
Fields = "Fields",
|
|
243
|
+
Fields4Dialog = "Fields4Dialog",
|
|
244
|
+
Footer = "Footer",
|
|
245
|
+
FooterActions = "FooterActions",
|
|
246
|
+
Form = "Form",
|
|
247
|
+
FormAction = "FormAction",
|
|
248
|
+
GenericActions = "GenericActions",
|
|
249
|
+
GenericColumnsOP = "GenericColumnsOP",
|
|
250
|
+
GenericFooter = "GenericFooter",
|
|
251
|
+
GenericSections = "GenericSections",
|
|
252
|
+
HeaderActions = "HeaderActions",
|
|
253
|
+
HeaderSections = "HeaderSections",
|
|
254
|
+
LineItems = "LineItems",
|
|
255
|
+
LineItemsOfView = "LineItemsOfView",
|
|
256
|
+
ListReportFilterBar = "ListReportFilterBar",
|
|
257
|
+
LRTableView = "LRTableView",
|
|
258
|
+
LRChartView = "LRChartView",
|
|
259
|
+
MultiTableModeV4 = "MultiTableModeV4",
|
|
260
|
+
ObjectPageChart = "ObjectPageChart",
|
|
261
|
+
ObjectPageCustomSectionFragment = "ObjectPageCustomSectionFragment",
|
|
262
|
+
ObjectPageFooter = "ObjectPageFooter",
|
|
263
|
+
ObjectPageFooterAction = "ObjectPageFooterAction",
|
|
264
|
+
ObjectPageFooterActions = "ObjectPageFooterActions",
|
|
265
|
+
ObjectPageHeader = "ObjectPageHeader",
|
|
266
|
+
ObjectPageHeaderSectionForm = "ObjectPageHeaderSectionForm",
|
|
267
|
+
ObjectPageHeaderSectionChart = "ObjectPageHeaderSectionChart",
|
|
268
|
+
ObjectPageHeaderSectionDataPoint = "ObjectPageHeaderSectionDataPoint",
|
|
269
|
+
ObjectPageHeaderSectionContact = "ObjectPageHeaderSectionContact",
|
|
270
|
+
ObjectPageHeaderSectionAddress = "ObjectPageHeaderSectionAddress",
|
|
271
|
+
ObjectPageLayout = "ObjectPageLayout",
|
|
272
|
+
ObjectPagePresentationVariant = "ObjectPagePresentationVariant",
|
|
273
|
+
ObjectPageSectionAddress = "ObjectPageSectionAddress",
|
|
274
|
+
ObjectPageSectionChart = "ObjectPageSectionChart",
|
|
275
|
+
ObjectPageSectionContact = "ObjectPageSectionContact",
|
|
276
|
+
ObjectPageSectionDataPoint = "ObjectPageSectionDataPoint",
|
|
277
|
+
ObjectPageSectionForm = "ObjectPageSectionForm",
|
|
278
|
+
ObjectPageSectionPresentationVariant = "ObjectPageSectionPresentationVariant",
|
|
279
|
+
ObjectPageSectionTableV4 = "ObjectPageSectionTableV4",
|
|
280
|
+
ObjectPageSubSections = "ObjectPageSubSections",
|
|
281
|
+
ObjectPageTable = "ObjectPageTable",
|
|
282
|
+
ObjectPageTableColumn = "ObjectPageTableColumn",
|
|
283
|
+
ObjectPageToolBar = "ObjectPageToolBar",
|
|
284
|
+
ObjectPageToolBarAction = "ObjectPageToolBarAction",
|
|
285
|
+
ObjectPageToolBarActions = "ObjectPageToolBarActions",
|
|
224
286
|
Position = "Position",
|
|
225
287
|
PositionOP = "PositionOP",
|
|
226
|
-
|
|
227
|
-
|
|
288
|
+
QuickVariant = "QuickVariant",
|
|
289
|
+
QuickVariantSelectionOP = "QuickVariantSelectionOP",
|
|
290
|
+
QuickVariantSelectionV4OP = "QuickVariantSelectionV4OP",
|
|
291
|
+
RelatedFacetKeys = "RelatedFacetKeys",
|
|
292
|
+
Sections = "Sections",
|
|
293
|
+
Table = "Table",
|
|
294
|
+
TableSPV = "TableSPV",
|
|
295
|
+
TableColumn = "TableColumn",
|
|
296
|
+
ToolBarAction = "ToolBarAction",
|
|
297
|
+
ToolBarLR = "ToolBar<LineItems>",
|
|
298
|
+
ToolBar = "ToolBar",
|
|
299
|
+
ViewTableColumn = "ViewTableColumn",
|
|
300
|
+
ViewCustomColumn = "ViewTableCustomColumn",
|
|
301
|
+
ViewChartToolBar = "ViewChartToolBar",
|
|
302
|
+
ViewToolBarAction = "ViewToolBarAction"
|
|
303
|
+
}
|
|
304
|
+
export declare enum PropertyName {
|
|
305
|
+
actions = "actions",
|
|
306
|
+
annotationPath = "annotationPath",
|
|
307
|
+
chart = "chart",
|
|
308
|
+
defaultPath = "defaultPath",
|
|
309
|
+
defaultTemplateAnnotationPath = "defaultTemplateAnnotationPath",
|
|
310
|
+
sections = "sections",
|
|
311
|
+
table = "table",
|
|
312
|
+
views = "views"
|
|
313
|
+
}
|
|
314
|
+
export declare enum SchemaTag {
|
|
315
|
+
annotationPath = "annotationPath",
|
|
316
|
+
annotationType = "annotationType",
|
|
317
|
+
artifactType = "artifactType",
|
|
318
|
+
dataType = "dataType",
|
|
319
|
+
fullyQualifiedName = "fullyQualifiedName",
|
|
320
|
+
hidden = "hidden",
|
|
321
|
+
isViewNode = "isViewNode",
|
|
322
|
+
key = "key",
|
|
323
|
+
propertyIndex = "propertyIndex"
|
|
228
324
|
}
|
|
229
325
|
export declare const METADATAPATH = "webapp/localService/metadata.xml";
|
|
230
326
|
export declare const MANIFESTPATH = "webapp/manifest.json";
|
|
231
327
|
export declare const VOCWITHSLASH = "/@com.sap.vocabularies";
|
|
232
328
|
export declare const VOCWITHCOLONS = "::@com.sap.vocabularies";
|
|
233
329
|
export declare const UIVOCABULARY = "com.sap.vocabularies.UI.v1";
|
|
330
|
+
export declare const UIVOCABULARYDOT = "com.sap.vocabularies.UI.v1.";
|
|
234
331
|
export declare const QUICKVARPATH = "/quickVariantSelection";
|
|
235
332
|
export declare const QUICKVARPATHX = "/quickVariantSelectionX";
|
|
236
333
|
export declare const DATESETTINGSPATH = "/filterSettings/dateSettings";
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { Definition } from 'typescript-json-schema';
|
|
2
|
+
import type { ExtensionLogger } from '../../apiTypes';
|
|
3
|
+
import type { FacetConfigs, FileData, FacetConfig, FacetSection, SchemaFilePath, anyFacetType } from './types';
|
|
4
|
+
import type { Manifest } from '../../specification/common';
|
|
5
|
+
import type { MetadataInstanceInterface } from './decoration/factory';
|
|
6
|
+
import type { ConverterOutput, DataFieldAbstractTypes, EntityType, PropertyAnnotations, PropertyPath } from '@sap-ux/vocabularies-types';
|
|
7
|
+
import { FioriElementsVersion, PageType, PageTypeV4 } from '../../specification/common';
|
|
4
8
|
import { SchemaType } from '../../specification/schemaAccess';
|
|
5
|
-
import { ExtensionLogger } from '../../apiTypes';
|
|
6
|
-
import { MetadataInstanceInterface } from './decoration/factory';
|
|
7
9
|
export declare enum TemplateType {
|
|
8
10
|
ListReportObjectPageV2 = "ListReportObjectPageV2",
|
|
9
11
|
ListReportObjectPageV4 = "ListReportObjectPageV4",
|
|
@@ -53,7 +55,13 @@ export declare function getLabelForDataField(field: DataFieldAbstractTypes, enti
|
|
|
53
55
|
* @param dataFieldAbstract - the given record of the line item annotation
|
|
54
56
|
* @param entityType - the entity type as part of the AVT ConverterOutput
|
|
55
57
|
*/
|
|
56
|
-
export declare function
|
|
58
|
+
export declare function getDataFieldDescription(dataFieldAbstract: DataFieldAbstractTypes, entityType: EntityType): string;
|
|
59
|
+
/**
|
|
60
|
+
* Prepare string for reference use in schema
|
|
61
|
+
* @param refInput string to be character checked and replaced
|
|
62
|
+
* @returns string with replaced characters
|
|
63
|
+
*/
|
|
64
|
+
export declare function prepareRef(refInput: string): string;
|
|
57
65
|
/**
|
|
58
66
|
* Return the page type for a given V2 page in manifest
|
|
59
67
|
* @param name - page component name
|
|
@@ -80,17 +88,19 @@ export declare function findAlias(namespace: string, oDataServiceAVT: ConverterO
|
|
|
80
88
|
* @param {ExtensionLogger} logger - Logger class for logging messages
|
|
81
89
|
* @returns {FacetSection} - object comprising the relevant facet information
|
|
82
90
|
*/
|
|
83
|
-
export declare function getSectionFacet(facetDefinition:
|
|
91
|
+
export declare function getSectionFacet(facetDefinition: anyFacetType, sourceEntityType: EntityType, oDataServiceAVT: ConverterOutput, logger?: ExtensionLogger, oDataVersion?: FioriElementsVersion, keyForRelatedFacetKeys?: boolean): FacetSection | undefined;
|
|
84
92
|
/**
|
|
85
|
-
* Finds the alias for a given namespace in the references' section of the converted service metadata
|
|
86
|
-
*
|
|
93
|
+
* Finds the alias for a given namespace in the references' section of the converted service metadata.
|
|
94
|
+
* An empty object is created if the path element does not exist yet.
|
|
95
|
+
* Exception: if an empty array is the next element of the 'path' definition, an empty array is created instaed of an empty object.
|
|
96
|
+
* @param {object} manifest - manifest that is being modified during export
|
|
87
97
|
* @param {string} path - path of the property in the manifest
|
|
88
98
|
* @param {string} targetAnnotation - target annotation (optional)
|
|
89
99
|
* @param {string} targetAnnotationEncoded - target annotation in its encoded form, as used in manifest settings
|
|
90
100
|
* @param {boolean} importScenario - indicates if the function is called for the import, else it is the export
|
|
91
101
|
* @returns returns section of the manifest based on path, generates an empty object in case it does not exists
|
|
92
102
|
*/
|
|
93
|
-
export declare const getManifestSectionByPathV4: (
|
|
103
|
+
export declare const getManifestSectionByPathV4: (manifest: object, path: string, targetAnnotation?: string, targetAnnotationEncoded?: string, importScenario?: boolean) => object;
|
|
94
104
|
export declare function getSchemaKeyOfLineItemRecord(lineItemRecord: DataFieldAbstractTypes): string;
|
|
95
105
|
/**
|
|
96
106
|
* Retrieve header facet configurations that can be used to generate ObjectPage schemas
|
|
@@ -141,7 +151,7 @@ export declare function getTemplateTypeFromManifest(manifest: Manifest, fioriEle
|
|
|
141
151
|
* @param section - section in the app schema
|
|
142
152
|
* @param facetKey - key of the facet
|
|
143
153
|
*/
|
|
144
|
-
export declare function addSectionTitleAndDescription(facet: FacetConfig, section:
|
|
154
|
+
export declare function addSectionTitleAndDescription(facet: FacetConfig, section: Definition, facetKey: string): void;
|
|
145
155
|
/**
|
|
146
156
|
* Adds target title or description to a section or header section in an app schema
|
|
147
157
|
* @param facet - intermediate facet structure comprising annotation information
|
|
@@ -154,7 +164,7 @@ export declare function addTargetTitleAndSectionDescription(facet: FacetConfig,
|
|
|
154
164
|
* @param facet Facet configuration, to be analyzed
|
|
155
165
|
* @returns the new section object
|
|
156
166
|
*/
|
|
157
|
-
export declare function createSectionWithoutProperties(facet: FacetConfig, facetKey: string):
|
|
167
|
+
export declare function createSectionWithoutProperties(facet: FacetConfig, facetKey: string): Definition;
|
|
158
168
|
/**
|
|
159
169
|
* Retrieve page section data(so far id/key and label/description).
|
|
160
170
|
* @param {EntityType} entityType The actual entityType
|
|
@@ -185,11 +195,10 @@ export declare const getSchemaFilePath: (schemaType: PageType | PageTypeV4 | Sch
|
|
|
185
195
|
* @param appVersion - Fiori Elements version - V2 or V4.
|
|
186
196
|
* @param pageType - Page type.
|
|
187
197
|
* @param entitySet - Entity Set.
|
|
188
|
-
* @param navigationProperty - Navigation property (optional).
|
|
189
198
|
* @param viewId - Custom page's viewId (optional).
|
|
190
199
|
* @returns {string} Generated page id
|
|
191
200
|
*/
|
|
192
|
-
export declare function generatePageId(pageType: PageType | PageTypeV4, entitySet: string,
|
|
201
|
+
export declare function generatePageId(pageType: PageType | PageTypeV4, entitySet: string, viewId?: string): string;
|
|
193
202
|
export declare type NextDefinition = {
|
|
194
203
|
configObject?: object;
|
|
195
204
|
targetDefinition?: object;
|
|
@@ -206,7 +215,6 @@ export declare type NextDefinition = {
|
|
|
206
215
|
* @param pageType - page type
|
|
207
216
|
*/
|
|
208
217
|
export declare function getNextTargetDefinition(appSchema: object, title: string, currentConfigObject: object, propertyDefinition: object, key: string, factory: MetadataInstanceInterface, pageType: PageType | PageTypeV4): NextDefinition;
|
|
209
|
-
export declare function prepareRef(refInput: string): string;
|
|
210
218
|
/**
|
|
211
219
|
* Custom array merge function called by deepmerge's merge function
|
|
212
220
|
*
|
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,5 +1,5 @@
|
|
|
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
4
|
export declare const getTableSectionControlId: (baseId: string, idBreadcrumbs: string[], breadcrumbs: string[], controlType: ControlTypeFunction, facetId: string) => string;
|
|
5
5
|
export declare const getFormSectionControlId: (baseId: string, idBreadcrumbs: string[], breadcrumbs: string[], controlType: ControlTypeFunction, facetId: string) => string;
|
|
@@ -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;
|