@sap/ux-specification 1.96.11 → 1.96.12
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 +26 -0
- 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/AnalyticalListPageConfig.json +10 -10
- package/dist/schemas/v2/ListReportConfig.json +15 -15
- package/dist/schemas/v2/ObjectPageConfig.json +204 -20
- package/dist/src/project.d.ts +1 -0
- package/dist/src/specification/v2/controls/Action.d.ts +6 -4
- package/dist/src/specification/v2/controls/ObjectPageHeader.d.ts +3 -2
- package/dist/src/specification/v2/controls/ObjectPageSection.d.ts +40 -7
- package/dist/src/specification/v2/controls/ObjectPageTable.d.ts +5 -3
- package/dist/src/specification/v2/controls/Table.d.ts +7 -4
- package/dist/src/sync/common/decoration/control.d.ts +1 -1
- package/dist/src/sync/common/generate/utils.d.ts +12 -2
- package/dist/src/sync/common/import/utils.d.ts +3 -2
- package/dist/src/sync/common/types.d.ts +4 -0
- package/dist/src/sync/common/utils.d.ts +2 -2
- package/dist/src/sync/v2/export/controls/Action.d.ts +12 -10
- package/dist/src/sync/v2/export/controls/FormAction.d.ts +9 -7
- package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.d.ts +6 -4
- package/dist/src/sync/v2/export/controls/ObjectPageHeader.d.ts +3 -2
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.d.ts +6 -4
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.d.ts +26 -14
- package/dist/src/sync/v2/export/controls/ObjectPageTable.d.ts +5 -3
- package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.d.ts +6 -4
- package/dist/src/sync/v2/export/controls/Table.d.ts +5 -3
- package/dist/src/sync/v2/export/controls/TableColumn.d.ts +12 -10
- package/dist/src/sync/v2/types.d.ts +8 -3
- package/dist/src/sync/v4/export/controls/Table.d.ts +2 -0
- package/package.json +2 -2
|
@@ -4,7 +4,7 @@ import type { ViewTypes, SAPUI5_FRAGMENT_CLASS, SAPUI5_VIEW_CLASS } from '../../
|
|
|
4
4
|
* Section
|
|
5
5
|
* @isViewNode true
|
|
6
6
|
*/
|
|
7
|
-
export interface
|
|
7
|
+
export interface ObjectPageSectionV2 {
|
|
8
8
|
/**
|
|
9
9
|
* Whether the section should be visible on the screen.
|
|
10
10
|
*/
|
|
@@ -14,32 +14,65 @@ export interface ObjectPageSection {
|
|
|
14
14
|
* Form
|
|
15
15
|
* @isViewNode true
|
|
16
16
|
*/
|
|
17
|
-
export interface ObjectPageSectionFormV2 extends
|
|
17
|
+
export interface ObjectPageSectionFormV2 extends ObjectPageSectionV2 {
|
|
18
18
|
form?: ObjectPageForm;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Table
|
|
22
22
|
* @isViewNode true
|
|
23
23
|
*/
|
|
24
|
-
export interface ObjectPageSectionTableV2 extends
|
|
24
|
+
export interface ObjectPageSectionTableV2 extends ObjectPageSectionV2 {
|
|
25
25
|
table?: ObjectPageResponsiveTableWithMultiSelect | ObjectPageResponsiveTableWithInlineDelete | ObjectPageAnalyticalTable | ObjectPageGridTable | ObjectPageTreeTable;
|
|
26
26
|
}
|
|
27
27
|
/**
|
|
28
28
|
* Chart
|
|
29
29
|
* @isViewNode true
|
|
30
30
|
*/
|
|
31
|
-
export interface ObjectPageSectionChartV2 extends
|
|
31
|
+
export interface ObjectPageSectionChartV2 extends ObjectPageSectionV2 {
|
|
32
32
|
chart?: ObjectPageChart;
|
|
33
33
|
}
|
|
34
|
+
export interface ObjectPageSectionContactV2 extends ObjectPageSectionV2 {
|
|
35
|
+
/**
|
|
36
|
+
* Contact
|
|
37
|
+
* @isViewNode true
|
|
38
|
+
*/
|
|
39
|
+
contact?: object;
|
|
40
|
+
}
|
|
41
|
+
export interface ObjectPageSectionAddressV2 extends ObjectPageSectionV2 {
|
|
42
|
+
/**
|
|
43
|
+
* Address
|
|
44
|
+
* @isViewNode true
|
|
45
|
+
*/
|
|
46
|
+
address?: object;
|
|
47
|
+
}
|
|
48
|
+
export interface ObjectPageSubSectionContactV2 extends ObjectPageSectionV2 {
|
|
49
|
+
/**
|
|
50
|
+
* Contact
|
|
51
|
+
* @isViewNode true
|
|
52
|
+
*/
|
|
53
|
+
contact?: object;
|
|
54
|
+
}
|
|
55
|
+
export interface ObjectPageSubSectionAddressV2 extends ObjectPageSectionV2 {
|
|
56
|
+
/**
|
|
57
|
+
* Address
|
|
58
|
+
* @isViewNode true
|
|
59
|
+
*/
|
|
60
|
+
address?: object;
|
|
61
|
+
}
|
|
62
|
+
export declare type AnySubSectionType = ObjectPageSectionTableV2 | ObjectPageSectionChartV2 | ObjectPageSectionFormV2 | ObjectPageSubSectionContactV2 | ObjectPageSubSectionAddressV2;
|
|
63
|
+
export interface GenericSubSections {
|
|
64
|
+
[key: string]: AnySubSectionType;
|
|
65
|
+
}
|
|
34
66
|
/**
|
|
35
67
|
* Subsection
|
|
36
68
|
* @isViewNode true
|
|
37
69
|
*/
|
|
38
|
-
export interface ObjectPageSubSectionV2 extends
|
|
39
|
-
subsections?:
|
|
70
|
+
export interface ObjectPageSubSectionV2 extends ObjectPageSectionV2 {
|
|
71
|
+
subsections?: GenericSubSections;
|
|
40
72
|
}
|
|
73
|
+
export declare type AnySectionType = ObjectPageSectionTableV2 | ObjectPageSectionChartV2 | ObjectPageSectionFormV2 | ObjectPageSectionContactV2 | ObjectPageSectionAddressV2 | ObjectPageSectionV2 | ObjectPageSubSectionV2;
|
|
41
74
|
export interface GenericSections {
|
|
42
|
-
[key: string]:
|
|
75
|
+
[key: string]: AnySectionType;
|
|
43
76
|
}
|
|
44
77
|
/**
|
|
45
78
|
* Custom Sections
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
/// <reference types="@sapui5/ts-types" />
|
|
1
|
+
/// <reference types="@sapui5/ts-types-esm" />
|
|
2
2
|
import type { GenericColumns, TableTypeV2, QuickVariant } from './Table';
|
|
3
3
|
import type { ObjectPageToolBar } from './ObjectPageToolBar';
|
|
4
|
+
import type { PopinLayout } from 'sap/m/library';
|
|
5
|
+
import type { smarttable } from 'sap/ui/comp/library';
|
|
4
6
|
export interface QuickVariantSelectionOP {
|
|
5
7
|
/**
|
|
6
8
|
* To show the number of records available, set showCounts to true.
|
|
@@ -53,7 +55,7 @@ export interface ObjectPageCommonTableSettings<COLS = GenericColumns> {
|
|
|
53
55
|
/**
|
|
54
56
|
* Specifies the type of export to be used in the SmartTable control. UI5Client is the default option.
|
|
55
57
|
*/
|
|
56
|
-
exportType?:
|
|
58
|
+
exportType?: smarttable.ExportType;
|
|
57
59
|
/**
|
|
58
60
|
* Use createMode 'inline' to enable inline creation of table entries for draft enabled applications.
|
|
59
61
|
*/
|
|
@@ -90,7 +92,7 @@ export interface ObjectPageResponsiveTableCommonSettings extends ObjectPageCommo
|
|
|
90
92
|
/**
|
|
91
93
|
* popinLayout defines the layout in which the table pop-in rows shall be rendered.
|
|
92
94
|
*/
|
|
93
|
-
popinLayout?:
|
|
95
|
+
popinLayout?: PopinLayout;
|
|
94
96
|
/**
|
|
95
97
|
* growingThreshold defines the number of items to be requested from the model for each grow. This property can only be used if the growing property is set to true.
|
|
96
98
|
*/
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
/// <reference types="@sapui5/ts-types" />
|
|
1
|
+
/// <reference types="@sapui5/ts-types-esm" />
|
|
2
2
|
import type { SAPUI5_FRAGMENT_CLASS } from '../../common/webapp/manifest/sapUi5';
|
|
3
3
|
import type { ToolBar } from './ToolBar';
|
|
4
4
|
import type { Action } from './Action';
|
|
5
|
+
import type { PopinLayout } from 'sap/m/library';
|
|
6
|
+
import type { smarttable } from 'sap/ui/comp/library';
|
|
7
|
+
import type { TextAlign } from 'sap/ui/core/library';
|
|
5
8
|
/**
|
|
6
9
|
* Column
|
|
7
10
|
* @isViewNode true
|
|
@@ -14,7 +17,7 @@ export interface TableColumn {
|
|
|
14
17
|
/**
|
|
15
18
|
* The hAlign property defines the horizontal alignment of the column content.
|
|
16
19
|
*/
|
|
17
|
-
hAlign?:
|
|
20
|
+
hAlign?: TextAlign;
|
|
18
21
|
}
|
|
19
22
|
/**
|
|
20
23
|
* Column Action
|
|
@@ -219,7 +222,7 @@ export interface CommonTableSettings<COLS = GenericColumns> {
|
|
|
219
222
|
/**
|
|
220
223
|
* Specifies the type of export to be used in the SmartTable control. UI5Client is the default option.
|
|
221
224
|
*/
|
|
222
|
-
exportType?:
|
|
225
|
+
exportType?: smarttable.ExportType;
|
|
223
226
|
/**
|
|
224
227
|
* Set to false if the table does not occupy the entire space available in the container.
|
|
225
228
|
*/
|
|
@@ -267,7 +270,7 @@ export interface ResponsiveTableCommonSettings extends CommonTableSettings {
|
|
|
267
270
|
/**
|
|
268
271
|
* popinLayout defines the layout in which the table pop-in rows are rendered.
|
|
269
272
|
*/
|
|
270
|
-
popinLayout?:
|
|
273
|
+
popinLayout?: PopinLayout;
|
|
271
274
|
/**
|
|
272
275
|
* createWithFilters adds a new create action that uses the filter settings as input.
|
|
273
276
|
*/
|
|
@@ -35,7 +35,7 @@ export declare enum BindingValue {
|
|
|
35
35
|
* @param controlType - controlType function of ecorators, not used here
|
|
36
36
|
* @param title - title from JSON schema, comprising the facet ID
|
|
37
37
|
*/
|
|
38
|
-
export declare const buildColumnControlId: (baseId: string, idBreadcrumbs: string[], breadcrumbs: string[],
|
|
38
|
+
export declare const buildColumnControlId: (baseId: string, idBreadcrumbs: string[], breadcrumbs: string[], _controlType: ControlTypeFunction, title: string) => string;
|
|
39
39
|
/**
|
|
40
40
|
* Split up action breadcrumb and return different parts from it
|
|
41
41
|
* @param breadcrumbs - array of breadcrumbs
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { EntitySet, EntityType } from '@sap-ux/annotation-converter';
|
|
2
2
|
import type { AnnotationTerm, ConverterOutput, LineItem } from '@sap-ux/vocabularies-types';
|
|
3
3
|
import type { Definition } from 'typescript-json-schema';
|
|
4
|
-
import type { FacetConfig, FacetSection } from '..';
|
|
4
|
+
import type { FacetConfig, FacetSection, SectionType } from '..';
|
|
5
5
|
import type { SectionTypeV2 } from '../../v2/types';
|
|
6
6
|
import type { PresentationVariantV4 } from '../../v4/types';
|
|
7
7
|
import { UIAnnotationTerms } from '@sap-ux/vocabularies-types';
|
|
@@ -116,9 +116,10 @@ export declare function getFacetKeyInSchema(facetKey: string): string;
|
|
|
116
116
|
* @param facetKey - key of the facet, as used in annotation
|
|
117
117
|
* @param {Definition} appSchema App schema in general
|
|
118
118
|
* @param {boolean} useDefinitionAsKey If set to false, facet key will solely be used as key, else encapsulated within definition key `definition<facetKey>`
|
|
119
|
+
* @param subDefinitionName - sub definition, if different from the definition (e.g. subsection vs. section)
|
|
119
120
|
* @returns {Definition} part of app schema that has been added and filled
|
|
120
121
|
*/
|
|
121
|
-
export declare function parseSchemaDefinition(definition: DefinitionName | SectionTypeV2, facetKey: string, appSchema: Definition, useDefinitionAsKey?: boolean): Definition;
|
|
122
|
+
export declare function parseSchemaDefinition(definition: DefinitionName | SectionTypeV2, facetKey: string, appSchema: Definition, useDefinitionAsKey?: boolean, subDefinitionName?: DefinitionName): Definition;
|
|
122
123
|
/**
|
|
123
124
|
* Creates a definition link for a facet and definition name
|
|
124
125
|
* @param definition name of definition, as used in schema
|
|
@@ -132,3 +133,12 @@ export declare function getFacetDefinitionLink(definition: DefinitionName | Sect
|
|
|
132
133
|
* @returns {string} annotationPath
|
|
133
134
|
*/
|
|
134
135
|
export declare function getFacetAnnotationPath(facet: FacetConfig | PresentationVariantV4 | object): string | undefined;
|
|
136
|
+
/**
|
|
137
|
+
* Adds definitions for Address and Contact items in object page sections to the app schema
|
|
138
|
+
* @param {FacetConfig} facet - current facet.
|
|
139
|
+
* @param {string} facetKey - facet key.
|
|
140
|
+
* @param {object} sections - schema of current sections definition.
|
|
141
|
+
* @param {object} appSchema - app specific schema that potentially gets enhanced.
|
|
142
|
+
* @param {SectionType} sectionPrefix - prefix to distinguish Section and HeaderSection
|
|
143
|
+
*/
|
|
144
|
+
export declare function handleAddressContact(facet: FacetConfig, facetKey: string, sections: Definition, appSchema: Definition, sectionPrefix: SectionType, subSectionPrefix?: SectionType, versionPostfix?: string): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { DeprecatedProperties, SyncRule } from '../';
|
|
2
2
|
import type { ExtensionLogger } from '../../../apiTypes';
|
|
3
|
+
import type { Definition } from 'typescript-json-schema';
|
|
3
4
|
/**
|
|
4
5
|
* Transfers the value of a single manifest setting to the config
|
|
5
6
|
* @param syncRule - Metadata rule
|
|
@@ -22,11 +23,11 @@ export declare function importProperty(syncRule: SyncRule, manifestSection: {},
|
|
|
22
23
|
*/
|
|
23
24
|
export declare function checkDeprecatedProperties(deprecatedProperties: DeprecatedProperties | undefined, manifestSection: {}, path: string, logger?: ExtensionLogger): void;
|
|
24
25
|
/**
|
|
25
|
-
*
|
|
26
|
+
* Determines the title of a section representation in the app schema, main aspect is checking the facet ID
|
|
26
27
|
* @param schemaSection - Section in manifest.json
|
|
27
28
|
* @param jsonSchema - app specific schema
|
|
28
29
|
*/
|
|
29
|
-
export declare function getSectionTitle(schemaSection:
|
|
30
|
+
export declare function getSectionTitle(schemaSection: Definition, jsonSchema: Definition): string | undefined;
|
|
30
31
|
/**
|
|
31
32
|
* Method returns target by resolving custom column reference name.
|
|
32
33
|
* For example - 'TableCustomColumns<dummyTarget>' is resolved as 'dummyTarget'.
|
|
@@ -36,6 +36,7 @@ export interface ExportResults {
|
|
|
36
36
|
}
|
|
37
37
|
export declare enum SectionType {
|
|
38
38
|
Section = "Section",
|
|
39
|
+
SubSection = "SubSection",
|
|
39
40
|
HeaderSection = "HeaderSection"
|
|
40
41
|
}
|
|
41
42
|
export declare enum ArtifactType {
|
|
@@ -181,6 +182,7 @@ export interface FacetConfig {
|
|
|
181
182
|
entityType?: EntityType;
|
|
182
183
|
annotationPath?: string;
|
|
183
184
|
target?: object;
|
|
185
|
+
facets?: FacetConfigs;
|
|
184
186
|
}
|
|
185
187
|
export interface SubSectionConfig {
|
|
186
188
|
base: FacetBase;
|
|
@@ -239,6 +241,7 @@ export declare enum DefinitionName {
|
|
|
239
241
|
CustomColumns = "TableCustomColumns",
|
|
240
242
|
CustomSections = "CustomSections",
|
|
241
243
|
FieldPath = "FieldPath",
|
|
244
|
+
Field = "Field",
|
|
242
245
|
Fields = "Fields",
|
|
243
246
|
Fields4Dialog = "Fields4Dialog",
|
|
244
247
|
Footer = "Footer",
|
|
@@ -315,6 +318,7 @@ export declare enum SchemaTag {
|
|
|
315
318
|
annotationPath = "annotationPath",
|
|
316
319
|
annotationType = "annotationType",
|
|
317
320
|
artifactType = "artifactType",
|
|
321
|
+
controlType = "controlType",
|
|
318
322
|
dataType = "dataType",
|
|
319
323
|
fullyQualifiedName = "fullyQualifiedName",
|
|
320
324
|
hidden = "hidden",
|
|
@@ -158,13 +158,13 @@ export declare function addSectionTitleAndDescription(facet: FacetConfig, sectio
|
|
|
158
158
|
* @param section - section in the app schema
|
|
159
159
|
* @param facetKey - key of the facet
|
|
160
160
|
*/
|
|
161
|
-
export declare function addTargetTitleAndSectionDescription(facet: FacetConfig, section:
|
|
161
|
+
export declare function addTargetTitleAndSectionDescription(facet: FacetConfig, section: Definition, facetKey: string): void;
|
|
162
162
|
/**
|
|
163
163
|
* Creates a default object for a new section or subsection, and adds the ID as title if present.
|
|
164
164
|
* @param facet Facet configuration, to be analyzed
|
|
165
165
|
* @returns the new section object
|
|
166
166
|
*/
|
|
167
|
-
export declare function
|
|
167
|
+
export declare function createDefaultSection(appSchema: Definition, facet: FacetConfig, facetKey: string): Definition;
|
|
168
168
|
/**
|
|
169
169
|
* Retrieve page section data(so far id/key and label/description).
|
|
170
170
|
* @param {EntityType} entityType The actual entityType
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
/// <reference types="@sapui5/ts-types" />
|
|
1
|
+
/// <reference types="@sapui5/ts-types-esm" />
|
|
2
2
|
import type { Action as ActionConfig } from '../../../../specification/v2';
|
|
3
|
+
import type { ButtonType } from 'sap/m/library';
|
|
4
|
+
import type { URI } from 'sap/ui/core/library';
|
|
3
5
|
/**
|
|
4
6
|
* Create stable ID for Intent Based Action button
|
|
5
7
|
*
|
|
@@ -11,19 +13,19 @@ import type { Action as ActionConfig } from '../../../../specification/v2';
|
|
|
11
13
|
export declare const buildIntentBasedActionId: (baseId: string, _idBreadcrumbs: string[], breadcrumbs: string[]) => string;
|
|
12
14
|
export declare class Action implements ActionConfig {
|
|
13
15
|
tooltip?: string;
|
|
14
|
-
icon?:
|
|
15
|
-
activeIcon?:
|
|
16
|
-
type?:
|
|
16
|
+
icon?: URI;
|
|
17
|
+
activeIcon?: URI;
|
|
18
|
+
type?: ButtonType;
|
|
17
19
|
}
|
|
18
20
|
export declare class ToolBarAction implements ActionConfig {
|
|
19
21
|
tooltip?: string;
|
|
20
|
-
icon?:
|
|
21
|
-
activeIcon?:
|
|
22
|
-
type?:
|
|
22
|
+
icon?: URI;
|
|
23
|
+
activeIcon?: URI;
|
|
24
|
+
type?: ButtonType;
|
|
23
25
|
}
|
|
24
26
|
export declare class FooterAction implements ActionConfig {
|
|
25
27
|
tooltip?: string;
|
|
26
|
-
icon?:
|
|
27
|
-
activeIcon?:
|
|
28
|
-
type?:
|
|
28
|
+
icon?: URI;
|
|
29
|
+
activeIcon?: URI;
|
|
30
|
+
type?: ButtonType;
|
|
29
31
|
}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
/// <reference types="@sapui5/ts-types" />
|
|
1
|
+
/// <reference types="@sapui5/ts-types-esm" />
|
|
2
2
|
import type { FormAction as FormActionConfig } from '../../../../specification/v2';
|
|
3
|
+
import type { ButtonType } from 'sap/m/library';
|
|
4
|
+
import type { URI } from 'sap/ui/core/library';
|
|
3
5
|
export declare class FormAction implements FormActionConfig {
|
|
4
6
|
visible: boolean;
|
|
5
7
|
tooltip?: string;
|
|
6
|
-
icon?:
|
|
7
|
-
activeIcon?:
|
|
8
|
-
type?:
|
|
8
|
+
icon?: URI;
|
|
9
|
+
activeIcon?: URI;
|
|
10
|
+
type?: ButtonType;
|
|
9
11
|
}
|
|
10
12
|
export declare class FieldForAction implements FormActionConfig {
|
|
11
13
|
visible: boolean;
|
|
12
14
|
tooltip?: string;
|
|
13
|
-
icon?:
|
|
14
|
-
activeIcon?:
|
|
15
|
-
type?:
|
|
15
|
+
icon?: URI;
|
|
16
|
+
activeIcon?: URI;
|
|
17
|
+
type?: ButtonType;
|
|
16
18
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
/// <reference types="@sapui5/ts-types" />
|
|
1
|
+
/// <reference types="@sapui5/ts-types-esm" />
|
|
2
2
|
import type { ObjectPageFooterAction as FooterActionConfig } from '../../../../specification/v2';
|
|
3
|
+
import type { ButtonType } from 'sap/m/library';
|
|
4
|
+
import type { URI } from 'sap/ui/core/library';
|
|
3
5
|
export declare class ObjectPageFooterAction implements FooterActionConfig {
|
|
4
6
|
visible: boolean;
|
|
5
7
|
tooltip?: string;
|
|
6
|
-
icon?:
|
|
7
|
-
activeIcon?:
|
|
8
|
-
type?:
|
|
8
|
+
icon?: URI;
|
|
9
|
+
activeIcon?: URI;
|
|
10
|
+
type?: ButtonType;
|
|
9
11
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
/// <reference types="@sapui5/ts-types" />
|
|
1
|
+
/// <reference types="@sapui5/ts-types-esm" />
|
|
2
2
|
import type { ObjectPageHeader as ObjectPageHeaderConfig, GenericActions } from '../../../../specification/v2/controls/ObjectPageHeader';
|
|
3
|
+
import type AvatarShape from 'sap/m/AvatarShape';
|
|
3
4
|
export declare class ObjectPageHeader<ACT = GenericActions> implements ObjectPageHeaderConfig<ACT> {
|
|
4
5
|
showRelatedApps?: boolean;
|
|
5
6
|
editableHeaderContent?: boolean;
|
|
6
7
|
simpleHeaderFacets?: boolean;
|
|
7
|
-
displayShape?:
|
|
8
|
+
displayShape?: AvatarShape;
|
|
8
9
|
actions?: ACT;
|
|
9
10
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
/// <reference types="@sapui5/ts-types" />
|
|
1
|
+
/// <reference types="@sapui5/ts-types-esm" />
|
|
2
2
|
import type { HeaderAction as HeaderActionConfig } from '../../../../specification/v2';
|
|
3
|
+
import type { ButtonType } from 'sap/m/library';
|
|
4
|
+
import type { URI } from 'sap/ui/core/library';
|
|
3
5
|
export declare class HeaderAction implements HeaderActionConfig {
|
|
4
6
|
visible: boolean;
|
|
5
7
|
tooltip?: string;
|
|
6
|
-
icon?:
|
|
7
|
-
activeIcon?:
|
|
8
|
-
type?:
|
|
8
|
+
icon?: URI;
|
|
9
|
+
activeIcon?: URI;
|
|
10
|
+
type?: ButtonType;
|
|
9
11
|
}
|
|
@@ -1,32 +1,44 @@
|
|
|
1
|
-
import type { ObjectPageSectionFormV2 as
|
|
1
|
+
import type { ObjectPageSectionFormV2 as ObjectPageSectionFormIF, ObjectPageSectionChartV2 as ObjectPageSectionChartIF, ObjectPageSectionTableV2 as ObjectPageSectionTableIF, ObjectPageSectionAddressV2 as ObjectPageSectionAddressIF, ObjectPageSectionContactV2 as ObjectPageSectionContactIF, ObjectPageSubSectionV2 as ObjectPageSubSectionIF } from '../../../../specification/v2/index';
|
|
2
2
|
import type { ControlTypeFunction } from '../../../common';
|
|
3
3
|
export declare const FacetTitlePrefix = "Facet ID: ";
|
|
4
|
-
export declare const getTableSectionControlId: (baseId: string,
|
|
5
|
-
export declare const getFormSectionControlId: (baseId: string,
|
|
6
|
-
export declare const getChartSectionControlId: (baseId: string,
|
|
7
|
-
export declare const getSectionControlId: (baseId: string,
|
|
8
|
-
export declare const getSubSectionControlId: (baseId: string,
|
|
9
|
-
export declare class ObjectPageSectionV2 implements
|
|
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
|
+
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, facetId: string) => string;
|
|
8
|
+
export declare const getSubSectionControlId: (baseId: string, _idBreadcrumbs: string[], breadcrumbs: string[], _controlType: ControlTypeFunction, facetId: string) => string;
|
|
9
|
+
export declare class ObjectPageSectionV2 implements ObjectPageSubSectionIF {
|
|
10
10
|
visible?: boolean;
|
|
11
11
|
}
|
|
12
|
-
export declare class ObjectPageSectionFormV2 implements
|
|
12
|
+
export declare class ObjectPageSectionFormV2 implements ObjectPageSectionFormIF {
|
|
13
13
|
visible?: boolean;
|
|
14
14
|
}
|
|
15
|
-
export declare class ObjectPageSectionChartV2 implements
|
|
15
|
+
export declare class ObjectPageSectionChartV2 implements ObjectPageSectionChartIF {
|
|
16
16
|
visible?: boolean;
|
|
17
17
|
}
|
|
18
|
-
export declare class ObjectPageSectionTableV2 implements
|
|
18
|
+
export declare class ObjectPageSectionTableV2 implements ObjectPageSectionTableIF {
|
|
19
19
|
visible?: boolean;
|
|
20
20
|
}
|
|
21
|
-
export declare class
|
|
21
|
+
export declare class ObjectPageSectionAddressV2 implements ObjectPageSectionAddressIF {
|
|
22
22
|
visible?: boolean;
|
|
23
23
|
}
|
|
24
|
-
export declare class
|
|
24
|
+
export declare class ObjectPageSectionContactV2 implements ObjectPageSectionContactIF {
|
|
25
25
|
visible?: boolean;
|
|
26
26
|
}
|
|
27
|
-
export declare class
|
|
27
|
+
export declare class ObjectPageSubSectionV2 implements ObjectPageSubSectionIF {
|
|
28
28
|
visible?: boolean;
|
|
29
29
|
}
|
|
30
|
-
export declare class
|
|
30
|
+
export declare class ObjectPageSubSectionFormV2 implements ObjectPageSubSectionIF {
|
|
31
|
+
visible?: boolean;
|
|
32
|
+
}
|
|
33
|
+
export declare class ObjectPageSubSectionChartV2 implements ObjectPageSubSectionIF {
|
|
34
|
+
visible?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export declare class ObjectPageSubSectionAddressV2 implements ObjectPageSubSectionIF {
|
|
37
|
+
visible?: boolean;
|
|
38
|
+
}
|
|
39
|
+
export declare class ObjectPageSubSectionContactV2 implements ObjectPageSubSectionIF {
|
|
40
|
+
visible?: boolean;
|
|
41
|
+
}
|
|
42
|
+
export declare class ObjectPageSubSectionTableV2 implements ObjectPageSubSectionIF {
|
|
31
43
|
visible?: boolean;
|
|
32
44
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
/// <reference types="@sapui5/ts-types" />
|
|
1
|
+
/// <reference types="@sapui5/ts-types-esm" />
|
|
2
2
|
import type { GenericColumns, CreateMode, TableTypeV2, Fields4Dialog, QuickVariant, FieldPathOP as FieldPathOPInterface, CreationFieldKeys, ObjectPageToolBar } from '../../../../specification/v2';
|
|
3
3
|
import type { ObjectPageCommonTableSettings as ObjectPageCommonTableConfig, ObjectPageResponsiveTable as ObjectPageResponsiveTableConfig, ObjectPageAnalyticalTable as ObjectPageAnalyticalTableConfig, ObjectPageGridTable as ObjectPageGridTableConfig, ObjectPageTreeTable as ObjectPageTreeTableConfig } from '../../../../specification/v2/controls/ObjectPageTable';
|
|
4
4
|
import type { DeprecatedProperties } from '../../../common';
|
|
5
|
+
import type { PopinLayout } from 'sap/m/library';
|
|
6
|
+
import type { smarttable } from 'sap/ui/comp/library';
|
|
5
7
|
export declare class QuickVariantSelectionOP {
|
|
6
8
|
showCounts?: boolean;
|
|
7
9
|
variants: {
|
|
@@ -23,7 +25,7 @@ export declare class ObjectPageCommonTableSettings<COLS = GenericColumns> implem
|
|
|
23
25
|
selectionLimit?: number;
|
|
24
26
|
quickVariantSelection?: QuickVariantSelectionOP;
|
|
25
27
|
useExportToExcel?: boolean;
|
|
26
|
-
exportType?:
|
|
28
|
+
exportType?: smarttable.ExportType;
|
|
27
29
|
createMode?: CreateMode;
|
|
28
30
|
disableDefaultInlineCreateSort?: boolean;
|
|
29
31
|
variantManagement?: boolean;
|
|
@@ -32,7 +34,7 @@ export declare class ObjectPageCommonTableSettings<COLS = GenericColumns> implem
|
|
|
32
34
|
export declare class ObjectPageResponsiveTable extends ObjectPageCommonTableSettings implements ObjectPageResponsiveTableConfig {
|
|
33
35
|
type?: TableTypeV2.ResponsiveTable;
|
|
34
36
|
includeItemInSelection?: boolean;
|
|
35
|
-
popinLayout?:
|
|
37
|
+
popinLayout?: PopinLayout;
|
|
36
38
|
inlineDelete?: boolean;
|
|
37
39
|
growingThreshold?: number;
|
|
38
40
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
/// <reference types="@sapui5/ts-types" />
|
|
1
|
+
/// <reference types="@sapui5/ts-types-esm" />
|
|
2
2
|
import type { ObjectPageToolBarAction as ToolBarActionConfig } from '../../../../specification/v2';
|
|
3
|
+
import type { ButtonType } from 'sap/m/library';
|
|
4
|
+
import type { URI } from 'sap/ui/core/library';
|
|
3
5
|
export declare class ObjectPageToolBarAction implements ToolBarActionConfig {
|
|
4
6
|
visible: boolean;
|
|
5
7
|
tooltip?: string;
|
|
6
|
-
icon?:
|
|
7
|
-
activeIcon?:
|
|
8
|
-
type?:
|
|
8
|
+
icon?: URI;
|
|
9
|
+
activeIcon?: URI;
|
|
10
|
+
type?: ButtonType;
|
|
9
11
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
/// <reference types="@sapui5/ts-types" />
|
|
1
|
+
/// <reference types="@sapui5/ts-types-esm" />
|
|
2
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
3
|
import { TableTypeV2 } from '../../../../specification/v2';
|
|
4
4
|
import type { ControlTypeFunction, DeprecatedProperties } from '../../../common';
|
|
5
|
+
import type { PopinLayout } from 'sap/m/library';
|
|
6
|
+
import type { smarttable } from 'sap/ui/comp/library';
|
|
5
7
|
export declare const getSmartTableControlId: (baseId: string, idBreadcrumbs: string[], _breadcrumbs: string[], controlType: ControlTypeFunction) => string;
|
|
6
8
|
export declare function importCreateParameters(manifestSection: object): object;
|
|
7
9
|
export declare function exportCreateParameters(manifestSection: unknown, configPart: Fields4Dialog): void;
|
|
@@ -37,7 +39,7 @@ export declare class CommonTableSettings<COLS = GenericColumns> implements Commo
|
|
|
37
39
|
createWithParameterDialog?: Fields4Dialog;
|
|
38
40
|
showTablePersonalisation?: boolean;
|
|
39
41
|
useExportToExcel?: boolean;
|
|
40
|
-
exportType?:
|
|
42
|
+
exportType?: smarttable.ExportType;
|
|
41
43
|
fitContainer?: boolean;
|
|
42
44
|
quickVariantSelection?: QuickVariantSelection;
|
|
43
45
|
quickVariantSelectionX?: QuickVariantSelectionX;
|
|
@@ -52,7 +54,7 @@ export declare class CommonTableSettings<COLS = GenericColumns> implements Commo
|
|
|
52
54
|
export declare class ResponsiveTable extends CommonTableSettings implements ResponsiveTableConfig {
|
|
53
55
|
type?: TableTypeV2.ResponsiveTable;
|
|
54
56
|
createWithFilters?: CreateWithFilters;
|
|
55
|
-
popinLayout?:
|
|
57
|
+
popinLayout?: PopinLayout;
|
|
56
58
|
includeItemInSelection?: boolean;
|
|
57
59
|
inlineDelete?: boolean;
|
|
58
60
|
showDraftToggle?: boolean;
|
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
/// <reference types="@sapui5/ts-types" />
|
|
1
|
+
/// <reference types="@sapui5/ts-types-esm" />
|
|
2
2
|
import type { TableColumn as TableColumnConfig, TableColumnAction as TableColumnActionConfig, TableCustomColumn as TableCustomColumnConfig, TableColumnExtensionTypeV2 } from '../../../../specification/v2';
|
|
3
3
|
import type { SAPUI5_FRAGMENT_CLASS } from '../../../../specification/common/webapp/manifest';
|
|
4
|
+
import type { TextAlign, URI } from 'sap/ui/core/library';
|
|
5
|
+
import type { ButtonType } from 'sap/m/library';
|
|
4
6
|
export declare class TableColumn implements TableColumnConfig {
|
|
5
7
|
width?: string;
|
|
6
|
-
hAlign?:
|
|
8
|
+
hAlign?: TextAlign;
|
|
7
9
|
}
|
|
8
10
|
export declare class TableColumnAction implements TableColumnActionConfig {
|
|
9
11
|
width?: string;
|
|
10
|
-
hAlign?:
|
|
12
|
+
hAlign?: TextAlign;
|
|
11
13
|
tooltip?: string;
|
|
12
|
-
icon?:
|
|
13
|
-
activeIcon?:
|
|
14
|
-
type?:
|
|
14
|
+
icon?: URI;
|
|
15
|
+
activeIcon?: URI;
|
|
16
|
+
type?: ButtonType;
|
|
15
17
|
}
|
|
16
18
|
export declare class TableColumnActionIntentBased extends TableColumnAction {
|
|
17
19
|
width?: string;
|
|
18
|
-
hAlign?:
|
|
20
|
+
hAlign?: TextAlign;
|
|
19
21
|
tooltip?: string;
|
|
20
|
-
icon?:
|
|
21
|
-
activeIcon?:
|
|
22
|
-
type?:
|
|
22
|
+
icon?: URI;
|
|
23
|
+
activeIcon?: URI;
|
|
24
|
+
type?: ButtonType;
|
|
23
25
|
}
|
|
24
26
|
/**
|
|
25
27
|
* No sync rules are defined for table custom columns, as they are transferred altogether, by function exportToFragment.
|
|
@@ -5,6 +5,7 @@ import type { MetadataFactory, MetadataInstanceInterface } from '../common/decor
|
|
|
5
5
|
import type { ExportResults } from '../common';
|
|
6
6
|
import type * as v2controls from './export/controls';
|
|
7
7
|
import type * as v2pages from './export/pages';
|
|
8
|
+
import type { Definition } from 'typescript-json-schema';
|
|
8
9
|
export declare type V2Controls = typeof v2controls;
|
|
9
10
|
export declare type V2Pages = typeof v2pages;
|
|
10
11
|
export declare type TransferParameterTypeV2 = {
|
|
@@ -27,13 +28,17 @@ export declare const TREETABLE = "TreeTable<LineItems>";
|
|
|
27
28
|
export declare const ANALYTICALTABLE = "AnalyticalTable<LineItems>";
|
|
28
29
|
export declare const GRIDTABLE = "GridTable<LineItems>";
|
|
29
30
|
export declare enum SectionTypeV2 {
|
|
31
|
+
SectionAddress = "ObjectPageSectionAddressV2",
|
|
32
|
+
SectionChart = "ObjectPageSectionChartV2",
|
|
33
|
+
SectionContact = "ObjectPageSectionContactV2",
|
|
34
|
+
SectionForm = "ObjectPageSectionFormV2",
|
|
30
35
|
Section = "ObjectPageSectionV2",
|
|
31
36
|
SubSection = "ObjectPageSubSectionV2",
|
|
32
|
-
SectionForm = "ObjectPageSectionFormV2",
|
|
33
37
|
SectionTable = "ObjectPageSectionTableV2",
|
|
34
|
-
SectionChart = "ObjectPageSectionChartV2",
|
|
35
38
|
SubSectionForm = "ObjectPageSubSectionFormV2",
|
|
36
39
|
SubSectionTable = "ObjectPageSubSectionTableV2",
|
|
40
|
+
SubSectionAddress = "ObjectPageSubSectionAddressV2",
|
|
41
|
+
SubSectionContact = "ObjectPageSubSectionContactV2",
|
|
37
42
|
SubSectionChart = "ObjectPageSubSectionChartV2"
|
|
38
43
|
}
|
|
39
44
|
export declare enum ActionTypeV2 {
|
|
@@ -59,5 +64,5 @@ export declare type ObjectPageV2ConfigParameters = {
|
|
|
59
64
|
export declare type SectionPartProperties = {
|
|
60
65
|
id: string;
|
|
61
66
|
type: SectionTypeV2;
|
|
62
|
-
schema:
|
|
67
|
+
schema: Definition;
|
|
63
68
|
};
|
|
@@ -25,6 +25,8 @@ export declare function deleteCreationModeName(manifestSection: unknown, manifes
|
|
|
25
25
|
/**
|
|
26
26
|
* common sync rule function for the deletion of any property of personalization
|
|
27
27
|
* @param manifestSection - section in manifest comprising the table settings
|
|
28
|
+
* @param _configObject - page config object
|
|
29
|
+
* @param _key - key or property in page config object
|
|
28
30
|
* @param manifestKey - key or property in manifest
|
|
29
31
|
*/
|
|
30
32
|
export declare function deletePersonalizationProperty(manifestSection: unknown, _configObject: object, _key: string, manifestKey: string): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/ux-specification",
|
|
3
|
-
"version": "1.96.
|
|
3
|
+
"version": "1.96.12",
|
|
4
4
|
"displayName": "SAP Fiori tools - Specification",
|
|
5
5
|
"description": "SAP Fiori tools - Specification",
|
|
6
6
|
"files": [
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@sap-ux/annotation-converter": "0.3.39",
|
|
53
53
|
"@sap-ux/edmx-parser": "0.3.39",
|
|
54
54
|
"@sap-ux/vocabularies-types": "0.3.39",
|
|
55
|
-
"@sapui5/ts-types": "1.96.
|
|
55
|
+
"@sapui5/ts-types-esm": "1.96.8",
|
|
56
56
|
"@types/d3": "7.1.0",
|
|
57
57
|
"@types/jest": "26.0.23",
|
|
58
58
|
"@types/jquery": "3.5.6",
|