@sap/ux-specification 1.90.12 → 1.90.13
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 +38 -4
- 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-AnalyticalListPage.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 +86 -11
- package/dist/schemas/v2/ListReportConfig.json +86 -11
- package/dist/schemas/v2/ObjectPageConfig.json +265 -53
- package/dist/schemas/v2/OverviewPageConfig.json +0 -28
- package/dist/schemas/v4/ObjectPageConfig.json +22 -0
- package/dist/specification/v2/index-min.js +1 -1
- package/dist/src/apiTypes.d.ts +8 -0
- package/dist/src/specification/v2/controls/Card.d.ts +0 -8
- package/dist/src/specification/v2/controls/Card.js.map +1 -1
- package/dist/src/specification/v2/controls/{DataField.d.ts → Field.d.ts} +2 -2
- package/dist/src/specification/v2/controls/{DataField.js → Field.js} +1 -1
- package/dist/src/specification/v2/controls/Field.js.map +1 -0
- package/dist/src/specification/v2/controls/FormAction.d.ts +43 -0
- package/dist/src/specification/v2/controls/FormAction.js +20 -0
- package/dist/src/specification/v2/controls/FormAction.js.map +1 -0
- package/dist/src/specification/v2/controls/ObjectPageFooter.d.ts +11 -0
- package/dist/src/specification/v2/controls/ObjectPageFooter.js +3 -0
- package/dist/src/specification/v2/controls/ObjectPageFooter.js.map +1 -0
- package/dist/src/specification/v2/controls/ObjectPageForm.d.ts +4 -5
- package/dist/src/specification/v2/controls/ObjectPageHeaderAction.d.ts +20 -0
- package/dist/src/specification/v2/controls/ObjectPageSection.d.ts +25 -15
- package/dist/src/specification/v2/controls/ObjectPageSection.js.map +1 -1
- package/dist/src/specification/v2/controls/ObjectPageTable.d.ts +8 -4
- package/dist/src/specification/v2/controls/ObjectPageTable.js.map +1 -1
- package/dist/src/specification/v2/controls/Table.d.ts +4 -3
- package/dist/src/specification/v2/controls/ToolBar.d.ts +2 -6
- package/dist/src/specification/v2/controls/index.d.ts +4 -1
- package/dist/src/specification/v2/controls/index.js +1 -0
- package/dist/src/specification/v2/controls/index.js.map +1 -1
- package/dist/src/specification/v2/pages/ObjectPageConfig.d.ts +2 -1
- package/dist/src/specification/v4/controls/ObjectPageFooter.d.ts +11 -0
- package/dist/src/specification/v4/controls/ObjectPageFooter.js +3 -0
- package/dist/src/specification/v4/controls/ObjectPageFooter.js.map +1 -0
- package/dist/src/specification/v4/controls/index.d.ts +1 -0
- package/dist/src/specification/v4/pages/ObjectPageConfig.d.ts +2 -1
- package/dist/src/specification/v4/webapp/manifest/sapUi5.d.ts +2 -1
- package/dist/src/specification/v4/webapp/manifest/sapUi5.js.map +1 -1
- package/dist/src/sync/common/decoration/control.js +34 -19
- package/dist/src/sync/common/decoration/control.js.map +1 -1
- package/dist/src/sync/common/generate/objectPage.d.ts +31 -2
- package/dist/src/sync/common/generate/objectPage.js +185 -20
- package/dist/src/sync/common/generate/objectPage.js.map +1 -1
- package/dist/src/sync/common/import/utils.d.ts +6 -0
- package/dist/src/sync/common/import/utils.js +21 -0
- package/dist/src/sync/common/import/utils.js.map +1 -1
- package/dist/src/sync/common/importProject.js +62 -60
- package/dist/src/sync/common/importProject.js.map +1 -1
- package/dist/src/sync/common/types.d.ts +5 -2
- package/dist/src/sync/common/types.js +4 -0
- package/dist/src/sync/common/types.js.map +1 -1
- package/dist/src/sync/common/utils.d.ts +4 -3
- package/dist/src/sync/common/utils.js +76 -81
- package/dist/src/sync/common/utils.js.map +1 -1
- package/dist/src/sync/v2/application.d.ts +1 -0
- package/dist/src/sync/v2/application.js +3 -0
- package/dist/src/sync/v2/application.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Card.d.ts +0 -2
- package/dist/src/sync/v2/export/controls/Card.js +0 -14
- package/dist/src/sync/v2/export/controls/Card.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Field.d.ts +4 -0
- package/dist/src/sync/v2/export/controls/{DataField.js → Field.js} +6 -6
- package/dist/src/sync/v2/export/controls/Field.js.map +1 -0
- package/dist/src/sync/v2/export/controls/FilterBar.d.ts +1 -2
- package/dist/src/sync/v2/export/controls/FilterBar.js +2 -4
- package/dist/src/sync/v2/export/controls/FilterBar.js.map +1 -1
- package/dist/src/sync/v2/export/controls/FormAction.d.ts +15 -0
- package/dist/src/sync/v2/export/controls/FormAction.js +133 -0
- package/dist/src/sync/v2/export/controls/FormAction.js.map +1 -0
- package/dist/src/sync/v2/export/controls/ObjectPageChart.d.ts +4 -1
- package/dist/src/sync/v2/export/controls/ObjectPageChart.js +13 -0
- package/dist/src/sync/v2/export/controls/ObjectPageChart.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.d.ts +5 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js +42 -3
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.d.ts +32 -0
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js +144 -0
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js.map +1 -0
- package/dist/src/sync/v2/export/controls/ObjectPageTable.d.ts +5 -4
- package/dist/src/sync/v2/export/controls/ObjectPageTable.js +16 -4
- package/dist/src/sync/v2/export/controls/ObjectPageTable.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Table.d.ts +12 -4
- package/dist/src/sync/v2/export/controls/Table.js +84 -37
- package/dist/src/sync/v2/export/controls/Table.js.map +1 -1
- package/dist/src/sync/v2/export/controls/index.d.ts +3 -1
- package/dist/src/sync/v2/export/controls/index.js +3 -1
- package/dist/src/sync/v2/export/controls/index.js.map +1 -1
- package/dist/src/sync/v2/export/export.js +125 -86
- package/dist/src/sync/v2/export/export.js.map +1 -1
- package/dist/src/sync/v2/generate/analyticalListReport.d.ts +3 -9
- package/dist/src/sync/v2/generate/analyticalListReport.js +12 -13
- package/dist/src/sync/v2/generate/analyticalListReport.js.map +1 -1
- package/dist/src/sync/v2/generate/generate.js +28 -6
- package/dist/src/sync/v2/generate/generate.js.map +1 -1
- package/dist/src/sync/v2/generate/listReport.d.ts +3 -10
- package/dist/src/sync/v2/generate/listReport.js +7 -12
- package/dist/src/sync/v2/generate/listReport.js.map +1 -1
- package/dist/src/sync/v2/generate/objectPage.d.ts +3 -10
- package/dist/src/sync/v2/generate/objectPage.js +199 -151
- package/dist/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v2/generate/utils.d.ts +1 -2
- package/dist/src/sync/v2/generate/utils.js +5 -0
- package/dist/src/sync/v2/generate/utils.js.map +1 -1
- package/dist/src/sync/v2/import/pages/objectPage.js +162 -88
- package/dist/src/sync/v2/import/pages/objectPage.js.map +1 -1
- package/dist/src/sync/v2/types.d.ts +12 -0
- package/dist/src/sync/v2/types.js +11 -0
- package/dist/src/sync/v2/types.js.map +1 -1
- package/dist/src/sync/v4/application.js +10 -10
- package/dist/src/sync/v4/application.js.map +1 -1
- package/dist/src/sync/v4/export/export.js +156 -134
- package/dist/src/sync/v4/export/export.js.map +1 -1
- package/dist/src/sync/v4/export/manifest.js +96 -76
- package/dist/src/sync/v4/export/manifest.js.map +1 -1
- package/dist/src/sync/v4/generate/generate.js +10 -2
- package/dist/src/sync/v4/generate/generate.js.map +1 -1
- package/dist/src/sync/v4/generate/objectPage.d.ts +3 -6
- package/dist/src/sync/v4/generate/objectPage.js +87 -94
- package/dist/src/sync/v4/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v4/import/app/appProvider.js +108 -80
- package/dist/src/sync/v4/import/app/appProvider.js.map +1 -1
- package/dist/src/sync/v4/import/fragment.js +41 -46
- package/dist/src/sync/v4/import/fragment.js.map +1 -1
- package/dist/src/sync/v4/utils/utils.js +1 -1
- package/dist/src/sync/v4/utils/utils.js.map +1 -1
- package/package.json +4 -5
- package/dist/src/specification/v2/controls/DataField.js.map +0 -1
- package/dist/src/sync/v2/export/controls/DataField.d.ts +0 -4
- package/dist/src/sync/v2/export/controls/DataField.js.map +0 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare type SapUiCoreURI = string;
|
|
2
|
+
export declare enum ButtonType {
|
|
3
|
+
Accept = "Accept",
|
|
4
|
+
Attention = "Attention",
|
|
5
|
+
Back = "Back",
|
|
6
|
+
Critical = "Critical",
|
|
7
|
+
Default = "Default",
|
|
8
|
+
Emphasized = "Emphasized",
|
|
9
|
+
Ghost = "Ghost",
|
|
10
|
+
Negative = "Negative",
|
|
11
|
+
Neutral = "Neutral",
|
|
12
|
+
Reject = "Reject",
|
|
13
|
+
Success = "Success",
|
|
14
|
+
Transparent = "Transparent",
|
|
15
|
+
Unstyled = "Unstyled",
|
|
16
|
+
Up = "Up"
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Action
|
|
20
|
+
* @isViewNode true
|
|
21
|
+
*/
|
|
22
|
+
export interface FormAction {
|
|
23
|
+
/**
|
|
24
|
+
* Text for tooltip of button
|
|
25
|
+
*/
|
|
26
|
+
tooltip?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Icon to be displayed as graphical element within the Button. Can be an image or icon from the icon font, represented as RFC 3986 conformant URI.
|
|
29
|
+
*/
|
|
30
|
+
icon?: SapUiCoreURI;
|
|
31
|
+
/**
|
|
32
|
+
* Alternative icon for the active (depressed) state of the button, represented as RFC 3986 conformant URI.
|
|
33
|
+
*/
|
|
34
|
+
activeIcon?: SapUiCoreURI;
|
|
35
|
+
/**
|
|
36
|
+
* Defines the Button type.
|
|
37
|
+
*/
|
|
38
|
+
type?: ButtonType;
|
|
39
|
+
/**
|
|
40
|
+
* Whether the button should be visible on the screen.
|
|
41
|
+
*/
|
|
42
|
+
visible?: boolean;
|
|
43
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var ButtonType;
|
|
4
|
+
(function (ButtonType) {
|
|
5
|
+
ButtonType["Accept"] = "Accept";
|
|
6
|
+
ButtonType["Attention"] = "Attention";
|
|
7
|
+
ButtonType["Back"] = "Back";
|
|
8
|
+
ButtonType["Critical"] = "Critical";
|
|
9
|
+
ButtonType["Default"] = "Default";
|
|
10
|
+
ButtonType["Emphasized"] = "Emphasized";
|
|
11
|
+
ButtonType["Ghost"] = "Ghost";
|
|
12
|
+
ButtonType["Negative"] = "Negative";
|
|
13
|
+
ButtonType["Neutral"] = "Neutral";
|
|
14
|
+
ButtonType["Reject"] = "Reject";
|
|
15
|
+
ButtonType["Success"] = "Success";
|
|
16
|
+
ButtonType["Transparent"] = "Transparent";
|
|
17
|
+
ButtonType["Unstyled"] = "Unstyled";
|
|
18
|
+
ButtonType["Up"] = "Up";
|
|
19
|
+
})(ButtonType = exports.ButtonType || (exports.ButtonType = {}));
|
|
20
|
+
//# sourceMappingURL=FormAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormAction.js","sourceRoot":"","sources":["../../../../../src/specification/v2/controls/FormAction.ts"],"names":[],"mappings":";;AAEA,IAAY,UAeX;AAfD,WAAY,UAAU;IAClB,+BAAiB,CAAA;IACjB,qCAAuB,CAAA;IACvB,2BAAa,CAAA;IACb,mCAAqB,CAAA;IACrB,iCAAmB,CAAA;IACnB,uCAAyB,CAAA;IACzB,6BAAe,CAAA;IACf,mCAAqB,CAAA;IACrB,iCAAmB,CAAA;IACnB,+BAAiB,CAAA;IACjB,iCAAmB,CAAA;IACnB,yCAA2B,CAAA;IAC3B,mCAAqB,CAAA;IACrB,uBAAS,CAAA;AACb,CAAC,EAfW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAerB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObjectPageFooter.js","sourceRoot":"","sources":["../../../../../src/specification/v2/controls/ObjectPageFooter.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FormAction } from './FormAction';
|
|
2
|
+
import { Field } from './Field';
|
|
2
3
|
/**
|
|
3
4
|
* Object Page Form
|
|
4
5
|
* @isViewNode true
|
|
@@ -8,10 +9,8 @@ export interface ObjectPageForm {
|
|
|
8
9
|
actions?: ObjectPageFormActions;
|
|
9
10
|
}
|
|
10
11
|
export interface ObjectPageFormFields {
|
|
11
|
-
[key: string]:
|
|
12
|
+
[key: string]: Field;
|
|
12
13
|
}
|
|
13
14
|
export interface ObjectPageFormActions {
|
|
14
|
-
[key: string]:
|
|
15
|
+
[key: string]: FormAction;
|
|
15
16
|
}
|
|
16
|
-
declare type ObjectPageFormAction = object;
|
|
17
|
-
export {};
|
|
@@ -1,7 +1,27 @@
|
|
|
1
|
+
import { ButtonType, SapUiCoreURI } from '.';
|
|
1
2
|
/**
|
|
2
3
|
* Header Action
|
|
3
4
|
* @isViewNode true
|
|
4
5
|
*/
|
|
5
6
|
export interface HeaderAction {
|
|
7
|
+
/**
|
|
8
|
+
* Text for tooltip of button
|
|
9
|
+
*/
|
|
10
|
+
tooltip?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Icon to be displayed as graphical element within the Button. Can be an image or icon from the icon font, represented as RFC 3986 conformant URI.
|
|
13
|
+
*/
|
|
14
|
+
icon?: SapUiCoreURI;
|
|
15
|
+
/**
|
|
16
|
+
* Alternative icon for the active (depressed) state of the button, represented as RFC 3986 conformant URI.
|
|
17
|
+
*/
|
|
18
|
+
activeIcon?: SapUiCoreURI;
|
|
19
|
+
/**
|
|
20
|
+
* Defines the Button type.
|
|
21
|
+
*/
|
|
22
|
+
type?: ButtonType;
|
|
23
|
+
/**
|
|
24
|
+
* Whether the button should be visible on the screen.
|
|
25
|
+
*/
|
|
6
26
|
visible?: boolean;
|
|
7
27
|
}
|
|
@@ -1,35 +1,45 @@
|
|
|
1
1
|
import { ObjectPageResponsiveTableWithMultiSelect, ObjectPageResponsiveTableWithInlineDelete, ObjectPageAnalyticalTable, ObjectPageGridTable, ObjectPageTreeTable, ObjectPageChart, ObjectPageForm } from './index';
|
|
2
2
|
import { ViewTypes, SAPUI5_FRAGMENT_CLASS, SAPUI5_VIEW_CLASS } from '../../common/webapp/manifest/sapUi5';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Section
|
|
5
5
|
* @isViewNode true
|
|
6
6
|
*/
|
|
7
|
-
export interface
|
|
8
|
-
|
|
7
|
+
export interface ObjectPageSection {
|
|
8
|
+
/**
|
|
9
|
+
* Whether the section should be visible on the screen.
|
|
10
|
+
*/
|
|
11
|
+
visible?: boolean;
|
|
9
12
|
}
|
|
10
13
|
/**
|
|
11
|
-
*
|
|
14
|
+
* Form
|
|
12
15
|
* @isViewNode true
|
|
13
16
|
*/
|
|
14
|
-
export interface
|
|
15
|
-
|
|
17
|
+
export interface ObjectPageSectionFormV2 extends ObjectPageSection {
|
|
18
|
+
form?: ObjectPageForm;
|
|
16
19
|
}
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Table
|
|
22
|
+
* @isViewNode true
|
|
23
|
+
*/
|
|
24
|
+
export interface ObjectPageSectionTableV2 extends ObjectPageSection {
|
|
25
|
+
table?: ObjectPageResponsiveTableWithMultiSelect | ObjectPageResponsiveTableWithInlineDelete | ObjectPageAnalyticalTable | ObjectPageGridTable | ObjectPageTreeTable;
|
|
19
26
|
}
|
|
20
27
|
/**
|
|
21
|
-
*
|
|
28
|
+
* Chart
|
|
22
29
|
* @isViewNode true
|
|
23
30
|
*/
|
|
24
|
-
export interface
|
|
25
|
-
|
|
31
|
+
export interface ObjectPageSectionChartV2 extends ObjectPageSection {
|
|
32
|
+
chart?: ObjectPageChart;
|
|
26
33
|
}
|
|
27
34
|
/**
|
|
28
|
-
*
|
|
35
|
+
* Subsection
|
|
29
36
|
* @isViewNode true
|
|
30
37
|
*/
|
|
31
|
-
export interface
|
|
32
|
-
subsections
|
|
38
|
+
export interface ObjectPageSubSectionV2 extends ObjectPageSection {
|
|
39
|
+
subsections?: object;
|
|
40
|
+
}
|
|
41
|
+
export interface GenericSections {
|
|
42
|
+
[key: string]: ObjectPageSectionTableV2 | ObjectPageSectionChartV2 | ObjectPageSectionFormV2 | ObjectPageSubSectionV2;
|
|
33
43
|
}
|
|
34
44
|
/**
|
|
35
45
|
* Custom Sections
|
|
@@ -42,7 +52,7 @@ export interface ObjectPageCustomSectionBase {
|
|
|
42
52
|
relatedFacet: string;
|
|
43
53
|
relativePosition: SectionPosition;
|
|
44
54
|
/**
|
|
45
|
-
* The label of the custom section,
|
|
55
|
+
* The label of the custom section, preferably as an i18n key
|
|
46
56
|
* @i18nClassification TIT: Custom section title
|
|
47
57
|
*/
|
|
48
58
|
title: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObjectPageSection.js","sourceRoot":"","sources":["../../../../../src/specification/v2/controls/ObjectPageSection.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"ObjectPageSection.js","sourceRoot":"","sources":["../../../../../src/specification/v2/controls/ObjectPageSection.ts"],"names":[],"mappings":";;AAyGA,IAAY,eAIX;AAJD,WAAY,eAAe;IACvB,4CAAyB,CAAA;IACzB,8CAA2B,CAAA;IAC3B,gDAA6B,CAAA;AACjC,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B;AAED,IAAY,sBAEX;AAFD,WAAY,sBAAsB;IAC9B,qCAAW,CAAA;AACf,CAAC,EAFW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAEjC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GenericColumns, TableTypeV2, PopinLayout, QuickVariant
|
|
1
|
+
import { GenericColumns, TableTypeV2, PopinLayout, QuickVariant } from './Table';
|
|
2
2
|
import { ObjectPageToolBar } from './ObjectPageToolBar';
|
|
3
3
|
export interface QuickVariantSelectionOP {
|
|
4
4
|
/**
|
|
@@ -12,10 +12,14 @@ export interface QuickVariantSelectionOP {
|
|
|
12
12
|
[key: number]: QuickVariant;
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
+
export interface FieldPathOP {
|
|
16
|
+
path: string;
|
|
17
|
+
}
|
|
18
|
+
export interface CreationFieldKeysOP {
|
|
19
|
+
[key: string]: FieldPathOP;
|
|
20
|
+
}
|
|
15
21
|
export interface Fields4DialogOP {
|
|
16
|
-
fields:
|
|
17
|
-
[key: string]: FieldPath;
|
|
18
|
-
};
|
|
22
|
+
fields: CreationFieldKeysOP;
|
|
19
23
|
}
|
|
20
24
|
export declare enum CreateMode {
|
|
21
25
|
inline = "inline"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObjectPageTable.js","sourceRoot":"","sources":["../../../../../src/specification/v2/controls/ObjectPageTable.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"ObjectPageTable.js","sourceRoot":"","sources":["../../../../../src/specification/v2/controls/ObjectPageTable.ts"],"names":[],"mappings":";;AA4BA,IAAY,UAEX;AAFD,WAAY,UAAU;IAClB,+BAAiB,CAAA;AACrB,CAAC,EAFW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAErB"}
|
|
@@ -191,13 +191,14 @@ export interface DataLoadSettings {
|
|
|
191
191
|
*/
|
|
192
192
|
loadDataOnAppLaunch: LoadDataOnAppLaunchSettings;
|
|
193
193
|
}
|
|
194
|
+
export interface CreationFieldKeys {
|
|
195
|
+
[key: string]: FieldPath;
|
|
196
|
+
}
|
|
194
197
|
export interface FieldPath {
|
|
195
198
|
path: string;
|
|
196
199
|
}
|
|
197
200
|
export interface Fields4Dialog {
|
|
198
|
-
fields:
|
|
199
|
-
[key: string]: FieldPath;
|
|
200
|
-
};
|
|
201
|
+
fields: CreationFieldKeys;
|
|
201
202
|
}
|
|
202
203
|
export interface CommonTableSettings<COLS = GenericColumns> {
|
|
203
204
|
/**
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
* Action
|
|
3
|
-
* @isViewNode true
|
|
4
|
-
*/
|
|
5
|
-
export declare type Action = object;
|
|
1
|
+
import { FormAction } from './FormAction';
|
|
6
2
|
/**
|
|
7
3
|
* Actions
|
|
8
4
|
* @isViewNode true
|
|
9
5
|
*/
|
|
10
6
|
export interface Actions {
|
|
11
|
-
[key: string]:
|
|
7
|
+
[key: string]: FormAction;
|
|
12
8
|
}
|
|
13
9
|
/**
|
|
14
10
|
* Toolbar
|
|
@@ -5,6 +5,7 @@ export * from './ToolBar';
|
|
|
5
5
|
export * from './ObjectPageToolBar';
|
|
6
6
|
export * from './ObjectPageHeader';
|
|
7
7
|
export * from './ObjectPageHeaderAction';
|
|
8
|
+
export * from './ObjectPageFooter';
|
|
8
9
|
export * from './ObjectPageLayout';
|
|
9
10
|
export * from './ObjectPageSection';
|
|
10
11
|
export * from './Card';
|
|
@@ -12,4 +13,6 @@ export * from './ObjectPageTable';
|
|
|
12
13
|
export * from './AnalyticalListPageChart';
|
|
13
14
|
export * from './ObjectPageChart';
|
|
14
15
|
export * from './ObjectPageForm';
|
|
15
|
-
export * from './
|
|
16
|
+
export * from './Field';
|
|
17
|
+
export * from './ObjectPageHeaderAction';
|
|
18
|
+
export * from './FormAction';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/specification/v2/controls/index.ts"],"names":[],"mappings":";;;;;AAAA,iCAA4B;AAC5B,6BAAwB;AAIxB,wCAAmC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/specification/v2/controls/index.ts"],"names":[],"mappings":";;;;;AAAA,iCAA4B;AAC5B,6BAAwB;AAIxB,wCAAmC;AAInC,yCAAoC;AACpC,4BAAuB;AACvB,uCAAkC;AAClC,+CAA0C;AAK1C,kCAA6B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ObjectPageHeader, GenericSections, ObjectPageLayout, CustomSections, GlobalChartSettings } from '../controls';
|
|
1
|
+
import { ObjectPageHeader, GenericSections, ObjectPageLayout, CustomSections, GlobalChartSettings, ObjectPageFooter } from '../controls';
|
|
2
2
|
import { PageConfig } from '../../common/page';
|
|
3
3
|
import { FlexibleColumnLayoutType } from '../../common/types';
|
|
4
4
|
export interface ObjectPageConfig extends PageConfig {
|
|
@@ -29,4 +29,5 @@ export interface ObjectPageConfig extends PageConfig {
|
|
|
29
29
|
header?: ObjectPageHeader;
|
|
30
30
|
layout?: ObjectPageLayout;
|
|
31
31
|
sections?: GenericSections | CustomSections;
|
|
32
|
+
footer?: ObjectPageFooter;
|
|
32
33
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObjectPageFooter.js","sourceRoot":"","sources":["../../../../../src/specification/v4/controls/ObjectPageFooter.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PageConfig } from '../../common/page';
|
|
2
|
-
import { ObjectPageLayout, ObjectPageHeader, GenericSections, CustomSections } from '../controls';
|
|
2
|
+
import { ObjectPageLayout, ObjectPageHeader, ObjectPageFooter, GenericSections, CustomSections } from '../controls';
|
|
3
3
|
export declare enum VariantManagementTypeObjectPage {
|
|
4
4
|
None = "None",
|
|
5
5
|
Control = "Control"
|
|
@@ -14,4 +14,5 @@ export interface ObjectPageConfig extends PageConfig {
|
|
|
14
14
|
*/
|
|
15
15
|
variantManagement?: VariantManagementTypeObjectPage;
|
|
16
16
|
sections?: GenericSections | CustomSections;
|
|
17
|
+
footer?: ObjectPageFooter;
|
|
17
18
|
}
|
|
@@ -17,8 +17,9 @@ export interface SapUi5RoutingV4 {
|
|
|
17
17
|
routes?: SapUi5RoutingRoute[];
|
|
18
18
|
targets: SapUi5RoutingTargetsV4;
|
|
19
19
|
}
|
|
20
|
+
export declare type RoutingTargetOptions = SapUi5RoutingTargetV4 | SapUi5RoutingTargetCustomPageV4 | SapUi5RoutingTargetCustomPageV4New;
|
|
20
21
|
export interface SapUi5RoutingTargetsV4 {
|
|
21
|
-
[key: string]:
|
|
22
|
+
[key: string]: RoutingTargetOptions;
|
|
22
23
|
}
|
|
23
24
|
export interface SapUi5RoutingTargetBaseV4 {
|
|
24
25
|
options?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sapUi5.js","sourceRoot":"","sources":["../../../../../../src/specification/v4/webapp/manifest/sapUi5.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"sapUi5.js","sourceRoot":"","sources":["../../../../../../src/specification/v4/webapp/manifest/sapUi5.ts"],"names":[],"mappings":";;AAmFa,QAAA,sBAAsB,GAAG,sBAAsB,CAAC;AAO7D,IAAY,gCAIX;AAJD,WAAY,gCAAgC;IACxC,yEAAqC,CAAA;IACrC,qEAAiC,CAAA;IACjC,qEAAiC,CAAA;AACrC,CAAC,EAJW,gCAAgC,GAAhC,wCAAgC,KAAhC,wCAAgC,QAI3C;AAQY,QAAA,2BAA2B,GAAG,OAAO,CAAC"}
|
|
@@ -72,7 +72,8 @@ exports.buildColumnControlId = (baseId, idBreadcrumbs, breadcrumbs, controlType,
|
|
|
72
72
|
if (breadcrumb === 'sections') {
|
|
73
73
|
sectionId = localBreadcrumbs[index + 1];
|
|
74
74
|
if (sectionId.indexOf('LineItem') !== -1) {
|
|
75
|
-
|
|
75
|
+
localBreadcrumbs[index + 1] = exports.convertSectionId(sectionId, title) + '::Table';
|
|
76
|
+
return localBreadcrumbs[index + 1];
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
}
|
|
@@ -105,33 +106,47 @@ exports.buildColumnControlId = (baseId, idBreadcrumbs, breadcrumbs, controlType,
|
|
|
105
106
|
}
|
|
106
107
|
return escapeId(fullId);
|
|
107
108
|
};
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
let targetDefinition;
|
|
109
|
+
/**
|
|
110
|
+
* Determines the valid pattern for a binding change
|
|
111
|
+
* @param schemaDefinition - definition in the JSON schema
|
|
112
|
+
* @returns the pattern as string
|
|
113
|
+
*/
|
|
114
|
+
function determinePattern(schemaDefinition) {
|
|
115
115
|
let pattern = types_1.BindingPropertyRegexAsString;
|
|
116
|
-
|
|
117
|
-
if (originalDefinition.$ref) {
|
|
118
|
-
targetDefinition = schema['definitions'][originalDefinition.$ref.split(utils_1.DEFINITION_LINK_PREFIX)[1]];
|
|
119
|
-
}
|
|
120
|
-
else {
|
|
121
|
-
targetDefinition = originalDefinition;
|
|
122
|
-
}
|
|
123
|
-
const description = originalDefinition.description ? originalDefinition.description : targetDefinition.description;
|
|
124
|
-
if (targetDefinition.enum) {
|
|
116
|
+
if (schemaDefinition.enum) {
|
|
125
117
|
let enumPattern;
|
|
126
|
-
|
|
118
|
+
schemaDefinition.enum.forEach((enumValue) => {
|
|
127
119
|
if (!enumValue.toString().startsWith('{')) {
|
|
128
120
|
enumPattern = enumPattern ? enumPattern + '|' + enumValue.toString() : enumValue.toString();
|
|
129
121
|
}
|
|
130
122
|
});
|
|
131
123
|
pattern = `^(${enumPattern})$|${pattern}`;
|
|
132
124
|
}
|
|
133
|
-
if (
|
|
125
|
+
if (schemaDefinition['type'] && schemaDefinition['type'] === 'boolean') {
|
|
134
126
|
pattern = `^(false|true)$|${pattern}`;
|
|
127
|
+
}
|
|
128
|
+
return pattern;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Reuseable function for strings that allow binding changes
|
|
132
|
+
* @param schema - the complete JSON schema
|
|
133
|
+
* @param definition - definition in the JSON schema, to be updated
|
|
134
|
+
* @param propertyName - property in the properties' list of the given definition
|
|
135
|
+
* @param bindingValues - values that shall be added to the resulting enum
|
|
136
|
+
*/
|
|
137
|
+
const addPatternForBindingChangeOfEnum = (schema, definition, propertyName, bindingValues) => {
|
|
138
|
+
const propertyList = definition && definition['properties'];
|
|
139
|
+
if (propertyList[propertyName].pattern) {
|
|
140
|
+
return; //as already processed
|
|
141
|
+
}
|
|
142
|
+
const originalDefinition = propertyList[propertyName];
|
|
143
|
+
let resultDefinition = originalDefinition;
|
|
144
|
+
const targetDefinition = originalDefinition.$ref
|
|
145
|
+
? schema['definitions'][originalDefinition.$ref.split(utils_1.DEFINITION_LINK_PREFIX)[1]]
|
|
146
|
+
: originalDefinition;
|
|
147
|
+
const description = originalDefinition.description ? originalDefinition.description : targetDefinition.description;
|
|
148
|
+
const pattern = determinePattern(targetDefinition);
|
|
149
|
+
if (targetDefinition['type'] && targetDefinition['type'] === 'boolean') {
|
|
135
150
|
resultDefinition = { enum: [false, true] };
|
|
136
151
|
}
|
|
137
152
|
if (bindingValues && resultDefinition['enum']) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control.js","sourceRoot":"","sources":["../../../../../src/sync/common/decoration/control.ts"],"names":[],"mappings":";;AAAA,oCAA6G;AAC7G,oCAAkD;AAElD;;;;GAIG;AACU,QAAA,wBAAwB,GAAG,CAAC,MAAc,EAAE,aAAuB,EAAU,EAAE;IACxF,OAAO,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC7C,CAAC,CAAC;AAEF;;;;;GAKG;AACU,QAAA,qBAAqB,GAAG,CAAC,MAAc,EAAE,aAAuB,EAAE,WAAqB,EAAU,EAAE;IAC5G,OAAO,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;AAC9D,CAAC,CAAC;AAEF;;;;;;GAMG;AACU,QAAA,gBAAgB,GAAG,CAAC,SAAiB,EAAE,KAAa,EAAU,EAAE;IACzE,IAAI,kBAA0B,CAAC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A,kCAAkC,GAAG,CAAC,MAAc,EAAE,UAAkB,EAAE,YAAoB,EAAQ,EAAE;IACjH,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IAClD,gCAAgC,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,CAAC,CAAC;AACtF,CAAC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { ConverterOutput, EntityType } from '@sap-ux/vocabularies-types';
|
|
2
|
+
import { FioriElementsVersion } from '../../../specification/common';
|
|
1
3
|
import { FacetConfig, SectionType } from '..';
|
|
2
|
-
import { EntityType } from '@sap-ux/vocabularies-types/dist/Parser';
|
|
3
4
|
/**
|
|
4
5
|
* Adds definitions for forms in object page sections to the app schema
|
|
5
6
|
* @param {SectionType} sectionType - prefix to distinguish Section and HeaderSection
|
|
@@ -7,7 +8,14 @@ import { EntityType } from '@sap-ux/vocabularies-types/dist/Parser';
|
|
|
7
8
|
* @param {object} appSchemaSection - current definition of facet or section in the JSON schema
|
|
8
9
|
* @param {object} appSchema - app specific schema that gets enhanced
|
|
9
10
|
*/
|
|
10
|
-
export declare function handleForm(sectionType: SectionType, section: FacetConfig, appSchemaSection: object, appSchema: object,
|
|
11
|
+
export declare function handleForm(sectionType: SectionType, section: FacetConfig, appSchemaSection: object, appSchema: object, version: FioriElementsVersion, withActions?: boolean): void;
|
|
12
|
+
/**
|
|
13
|
+
* Replaces an alias in an annotation ID or reference, based on the AVT references' list
|
|
14
|
+
* @param annotationIdentifier - annotation ID or reference
|
|
15
|
+
* @param {ConverterOutput} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
|
|
16
|
+
* @returns the converted string
|
|
17
|
+
*/
|
|
18
|
+
export declare function replaceAlias(annotationIdentifier: string, oDataServiceAVT: ConverterOutput): string;
|
|
11
19
|
/**
|
|
12
20
|
* Common routine to determine the name and the ID of a header action
|
|
13
21
|
* @param action - action as given by AVT
|
|
@@ -18,3 +26,24 @@ export declare function getActionNameAndId(action: string, entityType: EntityTyp
|
|
|
18
26
|
actionName: string;
|
|
19
27
|
actionId: string;
|
|
20
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* Add Object Page Footer Action Buttons to app-specific schema
|
|
31
|
+
*
|
|
32
|
+
* @param {object} appSchema Schema of the app
|
|
33
|
+
* @param {EntityType} entityType - current entity type
|
|
34
|
+
* @param {ConverterOutput} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
|
|
35
|
+
*/
|
|
36
|
+
export declare function addFooterActions(appSchema: object, entityType: EntityType, oDataServiceAVT: ConverterOutput): void;
|
|
37
|
+
/**
|
|
38
|
+
* Add Object Page Header Action Buttons to app-specific schema
|
|
39
|
+
* @param {object} appSchema Schema of the app
|
|
40
|
+
* @param {EntityType} entityType - current entity type
|
|
41
|
+
* @param {ConverterOutput} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
|
|
42
|
+
*/
|
|
43
|
+
export declare function addHeaderActions(appSchema: object, entityType: EntityType, oDataServiceAVT: ConverterOutput, addHeaderActionCallBack: any): void;
|
|
44
|
+
/**
|
|
45
|
+
* Adds common Object Page Header definitions to the app schema
|
|
46
|
+
* @param appSchema - app-specific JSOn schema
|
|
47
|
+
* @param entityType - current entity Type
|
|
48
|
+
*/
|
|
49
|
+
export declare function addCommonHeaderSchema(appSchema: object, entityType: EntityType): void;
|