@sap/ux-specification 1.84.35 → 1.84.38
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 +69 -24
- 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 +9 -5
- package/dist/schemas/v2/ListReportConfig.json +11 -7
- package/dist/schemas/v2/ObjectPageConfig.json +195 -7
- package/dist/schemas/v4/ListReportConfig.json +34 -4
- package/dist/schemas/v4/ObjectPageConfig.json +36 -0
- package/dist/specification/v2/index-min.js +1 -1
- package/dist/src/apiTypes.d.ts +2 -1
- package/dist/src/project.d.ts +1 -0
- package/dist/src/project.js +13 -5
- package/dist/src/project.js.map +1 -1
- package/dist/src/specification/v2/controls/ObjectPageSection.d.ts +40 -7
- package/dist/src/specification/v2/controls/ObjectPageSection.js.map +1 -1
- package/dist/src/specification/v2/controls/ObjectPageTable.d.ts +2 -3
- package/dist/src/specification/v2/controls/Table.d.ts +5 -2
- package/dist/src/specification/v2/controls/Table.js +5 -0
- package/dist/src/specification/v2/controls/Table.js.map +1 -1
- package/dist/src/specification/v4/controls/ObjectPageSection.d.ts +22 -1
- package/dist/src/specification/v4/controls/ObjectPageSection.js.map +1 -1
- package/dist/src/specification/v4/controls/ObjectPageTable.d.ts +0 -14
- package/dist/src/specification/v4/controls/Table.d.ts +12 -29
- package/dist/src/specification/v4/pages/ListReportConfig.d.ts +6 -1
- package/dist/src/specification/v4/webapp/manifest/sapUiPageV4.d.ts +1 -0
- package/dist/src/specification/v4/webapp/manifest/sapUiPageV4.js.map +1 -1
- package/dist/src/sync/common/decoration/control.d.ts +1 -1
- package/dist/src/sync/common/decoration/control.js +27 -22
- package/dist/src/sync/common/decoration/control.js.map +1 -1
- package/dist/src/sync/common/generate/objectPage.d.ts +5 -4
- package/dist/src/sync/common/generate/objectPage.js +67 -66
- package/dist/src/sync/common/generate/objectPage.js.map +1 -1
- package/dist/src/sync/common/generate/utils.d.ts +53 -12
- package/dist/src/sync/common/generate/utils.js +139 -46
- package/dist/src/sync/common/generate/utils.js.map +1 -1
- package/dist/src/sync/common/import/utils.d.ts +3 -2
- package/dist/src/sync/common/import/utils.js +11 -6
- package/dist/src/sync/common/import/utils.js.map +1 -1
- package/dist/src/sync/common/importProject.js +20 -19
- package/dist/src/sync/common/importProject.js.map +1 -1
- package/dist/src/sync/common/types.d.ts +105 -26
- package/dist/src/sync/common/types.js +101 -22
- package/dist/src/sync/common/types.js.map +1 -1
- package/dist/src/sync/common/utils.d.ts +17 -12
- package/dist/src/sync/common/utils.js +132 -88
- package/dist/src/sync/common/utils.js.map +1 -1
- package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js +1 -1
- package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Fragment.js +2 -2
- package/dist/src/sync/v2/export/controls/Fragment.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.d.ts +26 -14
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js +57 -5
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageTable.d.ts +2 -3
- package/dist/src/sync/v2/export/controls/ObjectPageTable.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Table.d.ts +3 -3
- package/dist/src/sync/v2/export/controls/Table.js +89 -48
- package/dist/src/sync/v2/export/controls/Table.js.map +1 -1
- package/dist/src/sync/v2/export/export.d.ts +0 -1
- package/dist/src/sync/v2/export/export.js +222 -160
- package/dist/src/sync/v2/export/export.js.map +1 -1
- package/dist/src/sync/v2/export/exportPage.js +35 -34
- package/dist/src/sync/v2/export/exportPage.js.map +1 -1
- package/dist/src/sync/v2/export/manifest.d.ts +22 -0
- package/dist/src/sync/v2/export/manifest.js +77 -36
- package/dist/src/sync/v2/export/manifest.js.map +1 -1
- package/dist/src/sync/v2/export/pages/OverviewPage.d.ts +1 -1
- package/dist/src/sync/v2/export/pages/OverviewPage.js +18 -16
- package/dist/src/sync/v2/export/pages/OverviewPage.js.map +1 -1
- package/dist/src/sync/v2/generate/analyticalListReport.js +10 -10
- package/dist/src/sync/v2/generate/analyticalListReport.js.map +1 -1
- package/dist/src/sync/v2/generate/listReport.js +1 -1
- package/dist/src/sync/v2/generate/listReport.js.map +1 -1
- package/dist/src/sync/v2/generate/objectPage.js +57 -43
- package/dist/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v2/generate/utils.d.ts +5 -4
- package/dist/src/sync/v2/generate/utils.js +73 -69
- package/dist/src/sync/v2/generate/utils.js.map +1 -1
- package/dist/src/sync/v2/import/app/appProvider.d.ts +9 -0
- package/dist/src/sync/v2/import/app/appProvider.js +36 -13
- package/dist/src/sync/v2/import/app/appProvider.js.map +1 -1
- package/dist/src/sync/v2/import/app/ovpProvider.js +1 -1
- package/dist/src/sync/v2/import/app/ovpProvider.js.map +1 -1
- package/dist/src/sync/v2/import/common/index.js +6 -6
- package/dist/src/sync/v2/import/common/index.js.map +1 -1
- package/dist/src/sync/v2/import/pages/objectPage.js +93 -101
- package/dist/src/sync/v2/import/pages/objectPage.js.map +1 -1
- package/dist/src/sync/v2/import/pages/overviewPage.js +1 -1
- package/dist/src/sync/v2/import/pages/overviewPage.js.map +1 -1
- package/dist/src/sync/v2/import/utils.js +1 -1
- package/dist/src/sync/v2/import/utils.js.map +1 -1
- package/dist/src/sync/v2/types.d.ts +8 -3
- package/dist/src/sync/v2/types.js +6 -2
- package/dist/src/sync/v2/types.js.map +1 -1
- package/dist/src/sync/v4/application.d.ts +22 -10
- package/dist/src/sync/v4/application.js +68 -19
- package/dist/src/sync/v4/application.js.map +1 -1
- package/dist/src/sync/v4/export/controls/Table.d.ts +5 -0
- package/dist/src/sync/v4/export/controls/Table.js +91 -50
- package/dist/src/sync/v4/export/controls/Table.js.map +1 -1
- package/dist/src/sync/v4/export/controls/TableColumn.js +4 -4
- package/dist/src/sync/v4/export/controls/TableColumn.js.map +1 -1
- package/dist/src/sync/v4/export/export.js +287 -150
- package/dist/src/sync/v4/export/export.js.map +1 -1
- package/dist/src/sync/v4/export/manifest.js +25 -6
- package/dist/src/sync/v4/export/manifest.js.map +1 -1
- package/dist/src/sync/v4/export/pages/ListReport.d.ts +1 -0
- package/dist/src/sync/v4/export/pages/ListReport.js +7 -0
- package/dist/src/sync/v4/export/pages/ListReport.js.map +1 -1
- package/dist/src/sync/v4/export/pages/ObjectPage.js +3 -2
- package/dist/src/sync/v4/export/pages/ObjectPage.js.map +1 -1
- package/dist/src/sync/v4/export/types.d.ts +5 -5
- package/dist/src/sync/v4/generate/listReport.js +304 -156
- package/dist/src/sync/v4/generate/listReport.js.map +1 -1
- package/dist/src/sync/v4/generate/objectPage.d.ts +1 -1
- package/dist/src/sync/v4/generate/objectPage.js +288 -147
- package/dist/src/sync/v4/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v4/import/app/appProvider.js +32 -22
- package/dist/src/sync/v4/import/app/appProvider.js.map +1 -1
- package/dist/src/sync/v4/import/pages/listReport.js +54 -37
- package/dist/src/sync/v4/import/pages/listReport.js.map +1 -1
- package/dist/src/sync/v4/import/pages/objectPage.d.ts +13 -0
- package/dist/src/sync/v4/import/pages/objectPage.js +64 -35
- package/dist/src/sync/v4/import/pages/objectPage.js.map +1 -1
- package/dist/src/sync/v4/import/utils.d.ts +2 -1
- package/dist/src/sync/v4/import/utils.js.map +1 -1
- package/dist/src/sync/v4/types.d.ts +2 -0
- package/dist/src/sync/v4/utils/StableIdHelper.js +13 -10
- package/dist/src/sync/v4/utils/StableIdHelper.js.map +1 -1
- package/dist/src/sync/v4/utils/utils.d.ts +7 -7
- package/dist/src/sync/v4/utils/utils.js +43 -32
- package/dist/src/sync/v4/utils/utils.js.map +1 -1
- package/dist/test/unit/export/manifest.test.d.ts +1 -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 +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":";;AAyJA,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,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import type { GenericColumns, TableTypeV2, QuickVariant, PopinLayout } from './Table';
|
|
1
|
+
import type { GenericColumns, TableTypeV2, QuickVariant, PopinLayout, ExportType } from './Table';
|
|
3
2
|
import type { ObjectPageToolBar } from './ObjectPageToolBar';
|
|
4
3
|
export interface QuickVariantSelectionOP {
|
|
5
4
|
/**
|
|
@@ -53,7 +52,7 @@ export interface ObjectPageCommonTableSettings<COLS = GenericColumns> {
|
|
|
53
52
|
/**
|
|
54
53
|
* Specifies the type of export to be used in the SmartTable control. UI5Client is the default option.
|
|
55
54
|
*/
|
|
56
|
-
exportType?:
|
|
55
|
+
exportType?: ExportType;
|
|
57
56
|
/**
|
|
58
57
|
* Use createMode 'inline' to enable inline creation of table entries for draft enabled applications.
|
|
59
58
|
*/
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="@sapui5/ts-types" />
|
|
2
1
|
import type { SAPUI5_FRAGMENT_CLASS } from '../../common/webapp/manifest/sapUi5';
|
|
3
2
|
import type { ToolBar } from './ToolBar';
|
|
4
3
|
import type { Action } from './Action';
|
|
@@ -10,6 +9,10 @@ export declare enum HAlign {
|
|
|
10
9
|
begin = "Begin",
|
|
11
10
|
end = "End"
|
|
12
11
|
}
|
|
12
|
+
export declare enum ExportType {
|
|
13
|
+
GW = "GW",
|
|
14
|
+
UI5Client = "UI5Client"
|
|
15
|
+
}
|
|
13
16
|
/**
|
|
14
17
|
* Column
|
|
15
18
|
* @isViewNode true
|
|
@@ -232,7 +235,7 @@ export interface CommonTableSettings<COLS = GenericColumns> {
|
|
|
232
235
|
/**
|
|
233
236
|
* Specifies the type of export to be used in the SmartTable control. UI5Client is the default option.
|
|
234
237
|
*/
|
|
235
|
-
exportType?:
|
|
238
|
+
exportType?: ExportType;
|
|
236
239
|
/**
|
|
237
240
|
* Set to false if the table does not occupy the entire space available in the container.
|
|
238
241
|
*/
|
|
@@ -9,6 +9,11 @@ var HAlign;
|
|
|
9
9
|
HAlign["begin"] = "Begin";
|
|
10
10
|
HAlign["end"] = "End";
|
|
11
11
|
})(HAlign = exports.HAlign || (exports.HAlign = {}));
|
|
12
|
+
var ExportType;
|
|
13
|
+
(function (ExportType) {
|
|
14
|
+
ExportType["GW"] = "GW";
|
|
15
|
+
ExportType["UI5Client"] = "UI5Client";
|
|
16
|
+
})(ExportType = exports.ExportType || (exports.ExportType = {}));
|
|
12
17
|
var customColumnViewTypes;
|
|
13
18
|
(function (customColumnViewTypes) {
|
|
14
19
|
customColumnViewTypes["XML"] = "XML";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../../../src/specification/v2/controls/Table.ts"],"names":[],"mappings":";;AAIA,IAAY,MAOX;AAPD,WAAY,MAAM;IACd,6BAAmB,CAAA;IACnB,uBAAa,CAAA;IACb,2BAAiB,CAAA;IACjB,yBAAe,CAAA;IACf,yBAAe,CAAA;IACf,qBAAW,CAAA;AACf,CAAC,EAPW,MAAM,GAAN,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mCAA2B,QAItC"}
|
|
1
|
+
{"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../../../src/specification/v2/controls/Table.ts"],"names":[],"mappings":";;AAIA,IAAY,MAOX;AAPD,WAAY,MAAM;IACd,6BAAmB,CAAA;IACnB,uBAAa,CAAA;IACb,2BAAiB,CAAA;IACjB,yBAAe,CAAA;IACf,yBAAe,CAAA;IACf,qBAAW,CAAA;AACf,CAAC,EAPW,MAAM,GAAN,cAAM,KAAN,cAAM,QAOjB;AAED,IAAY,UAGX;AAHD,WAAY,UAAU;IAClB,uBAAS,CAAA;IACT,qCAAuB,CAAA;AAC3B,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB;AAuED,IAAY,qBAEX;AAFD,WAAY,qBAAqB;IAC7B,oCAAW,CAAA;AACf,CAAC,EAFW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAEhC;AAED,IAAY,WAKX;AALD,WAAY,WAAW;IACnB,kDAAmC,CAAA;IACnC,sCAAuB,CAAA;IACvB,kDAAmC,CAAA;IACnC,sCAAuB,CAAA;AAC3B,CAAC,EALW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAKtB;AAED,IAAY,0BAKX;AALD,WAAY,0BAA0B;IAClC,iGAAmE,CAAA;IACnE,iGAAmE,CAAA;IACnE,qFAAuD,CAAA;IACvD,qFAAuD,CAAA;AAC3D,CAAC,EALW,0BAA0B,GAA1B,kCAA0B,KAA1B,kCAA0B,QAKrC;AAYD,IAAY,WAIX;AAJD,WAAY,WAAW;IACnB,8BAAe,CAAA;IACf,sCAAuB,CAAA;IACvB,sCAAuB,CAAA;AAC3B,CAAC,EAJW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAItB;AA6ED,IAAY,QAEX;AAFD,WAAY,QAAQ;IAChB,mCAAuB,CAAA;AAC3B,CAAC,EAFW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAEnB;AAED,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC1B,+CAAyB,CAAA;IACzB,qCAAe,CAAA;IACf,qCAAe,CAAA;AACnB,CAAC,EAJW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAI7B;AAED,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IACzB,sCAAiB,CAAA;IACjB,wCAAmB,CAAA;AACvB,CAAC,EAHW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAG5B;AAED,IAAY,2BAIX;AAJD,WAAY,2BAA2B;IACnC,gDAAiB,CAAA;IACjB,8CAAe,CAAA;IACf,oEAAqC,CAAA;AACzC,CAAC,EAJW,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAItC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ObjectPageSectionTableV4 } from '../controls/ObjectPageTable';
|
|
2
2
|
import type { SAPUI5_FRAGMENT_CLASS } from '../../common/webapp/manifest/sapUi5';
|
|
3
|
+
import type { ObjectPageToolBar } from './ObjectPageToolBar';
|
|
3
4
|
export interface ObjectPageSectionForm {
|
|
4
5
|
/**
|
|
5
6
|
* Form
|
|
@@ -28,8 +29,28 @@ export interface ObjectPageSectionAddress {
|
|
|
28
29
|
*/
|
|
29
30
|
address?: object;
|
|
30
31
|
}
|
|
32
|
+
export interface ObjectPageChart {
|
|
33
|
+
/**
|
|
34
|
+
* Chart Toolbar
|
|
35
|
+
* @isViewNode true
|
|
36
|
+
*/
|
|
37
|
+
toolBar?: ObjectPageToolBar;
|
|
38
|
+
}
|
|
39
|
+
export interface ObjectPageSectionChart {
|
|
40
|
+
/**
|
|
41
|
+
* Chart
|
|
42
|
+
* @isViewNode true
|
|
43
|
+
*/
|
|
44
|
+
chart?: ObjectPageChart;
|
|
45
|
+
}
|
|
46
|
+
export interface ObjectPageSectionPresentationVariant {
|
|
47
|
+
/**
|
|
48
|
+
* Presentation Variant
|
|
49
|
+
*/
|
|
50
|
+
[key: string]: ObjectPageSectionTableV4 | ObjectPageSectionChart;
|
|
51
|
+
}
|
|
31
52
|
export interface GenericSections {
|
|
32
|
-
[key: string]: ObjectPageSectionTableV4 | ObjectPageSectionForm | ObjectPageSectionDataPoint | ObjectPageSectionContact | ObjectPageSectionAddress;
|
|
53
|
+
[key: string]: ObjectPageSectionTableV4 | ObjectPageSectionForm | ObjectPageSectionDataPoint | ObjectPageSectionContact | ObjectPageSectionAddress | ObjectPageSectionPresentationVariant;
|
|
33
54
|
}
|
|
34
55
|
/**
|
|
35
56
|
* Subsections
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObjectPageSection.js","sourceRoot":"","sources":["../../../../../src/specification/v4/controls/ObjectPageSection.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"ObjectPageSection.js","sourceRoot":"","sources":["../../../../../src/specification/v4/controls/ObjectPageSection.ts"],"names":[],"mappings":";;AA6EA,IAAY,eAGX;AAHD,WAAY,eAAe;IACvB,kCAAe,CAAA;IACf,oCAAiB,CAAA;AACrB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B;AAED,IAAY,wBAEX;AAFD,WAAY,wBAAwB;IAChC,uCAAW,CAAA;AACf,CAAC,EAFW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAEnC"}
|
|
@@ -36,20 +36,6 @@ export interface TableCreationModeOP {
|
|
|
36
36
|
*/
|
|
37
37
|
createAtEnd?: boolean;
|
|
38
38
|
}
|
|
39
|
-
export interface PersonalizationTypeOP {
|
|
40
|
-
/**
|
|
41
|
-
* Defines whether the user can add and remove columns to a given table.
|
|
42
|
-
*/
|
|
43
|
-
column?: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* Defines whether the user can sort a given table.
|
|
46
|
-
*/
|
|
47
|
-
sort?: boolean;
|
|
48
|
-
/**
|
|
49
|
-
* Defines whether the user can filter data of a given table.
|
|
50
|
-
*/
|
|
51
|
-
filter?: boolean;
|
|
52
|
-
}
|
|
53
39
|
export interface QuickVariantSelectionV4OP {
|
|
54
40
|
/**
|
|
55
41
|
* List of annotation paths referring to SelectionVariant annotations
|
|
@@ -48,34 +48,6 @@ export interface ViewTableCreationMode {
|
|
|
48
48
|
*/
|
|
49
49
|
createAtEnd?: boolean;
|
|
50
50
|
}
|
|
51
|
-
export interface PersonalizationType {
|
|
52
|
-
/**
|
|
53
|
-
* Defines whether the user can add and remove columns to a given table.
|
|
54
|
-
*/
|
|
55
|
-
column?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* Defines whether the user can sort a given table.
|
|
58
|
-
*/
|
|
59
|
-
sort?: boolean;
|
|
60
|
-
/**
|
|
61
|
-
* Defines whether the user can filter data of a given table.
|
|
62
|
-
*/
|
|
63
|
-
filter?: boolean;
|
|
64
|
-
}
|
|
65
|
-
export interface ViewPersonalizationType {
|
|
66
|
-
/**
|
|
67
|
-
* Defines whether the user can add and remove columns to a given table.
|
|
68
|
-
*/
|
|
69
|
-
column?: boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Defines whether the user can sort a given table.
|
|
72
|
-
*/
|
|
73
|
-
sort?: boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Defines whether the user can filter data of a given table.
|
|
76
|
-
*/
|
|
77
|
-
filter?: boolean;
|
|
78
|
-
}
|
|
79
51
|
export interface AnnotationPathAsObject {
|
|
80
52
|
annotationPath: string;
|
|
81
53
|
}
|
|
@@ -173,6 +145,8 @@ export interface ALPChartView {
|
|
|
173
145
|
* @isViewNode true
|
|
174
146
|
*/
|
|
175
147
|
export interface LRChartView {
|
|
148
|
+
key: string;
|
|
149
|
+
index: number;
|
|
176
150
|
/**
|
|
177
151
|
* To use charts in multiple table mode, define a UI.Chart annotation, including a qualifier.
|
|
178
152
|
* Reference the UI.Chart annotation in your SelectionPresentationVariant or PresentationVariant for your view.
|
|
@@ -222,6 +196,8 @@ export interface ALPTableView extends TableSettings {
|
|
|
222
196
|
* @isViewNode true
|
|
223
197
|
*/
|
|
224
198
|
export interface LRTableView extends TableSettings {
|
|
199
|
+
key: string;
|
|
200
|
+
index: number;
|
|
225
201
|
/**
|
|
226
202
|
* The annotation path can be either UI.LineItem, UI.PresentationVariant, or UI.SelectionPresentationVariant.
|
|
227
203
|
*/
|
|
@@ -254,7 +230,14 @@ export interface LRTableView extends TableSettings {
|
|
|
254
230
|
*/
|
|
255
231
|
export interface Table extends TableSettings {
|
|
256
232
|
/**
|
|
257
|
-
*
|
|
233
|
+
* The secondary annotation path can be either UI.LineItem, UI.PresentationVariant, or UI.SelectionPresentationVariant.
|
|
234
|
+
*/
|
|
235
|
+
annotationPath?: string;
|
|
236
|
+
/**
|
|
237
|
+
* initialLoad defines whether or not the data in the table is automatically loaded.
|
|
238
|
+
* - Disabled - Data is never loaded when opening the app without an app state.
|
|
239
|
+
* - Enabled - Data is always loaded when opening the app.
|
|
240
|
+
* - Auto - Data is only loaded, if initial/preset filters are available (e.g. defined by "SelectionVariant" definition, URL parameters or user defaults).
|
|
258
241
|
*/
|
|
259
242
|
initialLoad?: boolean;
|
|
260
243
|
/**
|
|
@@ -25,7 +25,12 @@ export interface ListReportConfig extends PageConfig {
|
|
|
25
25
|
*/
|
|
26
26
|
table?: Table | ALPTableView;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* defaultTemplateAnnotationPath must be a reference to a SelectionPresentationVariant.
|
|
29
|
+
* You use the SelectionPresentationVariant to configure the default visualizations and default filter values of the main content area.
|
|
30
|
+
*/
|
|
31
|
+
defaultTemplateAnnotationPath?: string;
|
|
32
|
+
/**
|
|
33
|
+
* defaultPath can be "primary", "secondary", or "both". If it is "primary", SAP Fiori elements loads the app in chart-only view. If it is "secondary", SAP Fiori elements loads the app in table-only view. If it is "both", SAP Fiori elements loads the app in hybrid view.
|
|
29
34
|
*/
|
|
30
35
|
defaultPath?: DefaultPathType;
|
|
31
36
|
}
|
|
@@ -38,6 +38,7 @@ export declare type SapUiPageSettingsV4 = SapUiGenericAppPageSettings & {
|
|
|
38
38
|
controlConfiguration?: SapUiGenericAppPageSettings;
|
|
39
39
|
content?: SapUi5RoutingTargetContent;
|
|
40
40
|
views?: SapUi5Views;
|
|
41
|
+
defaultTemplateAnnotationPath?: string;
|
|
41
42
|
};
|
|
42
43
|
export interface SapUiAppPageV4 {
|
|
43
44
|
type: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sapUiPageV4.js","sourceRoot":"","sources":["../../../../../../src/specification/v4/webapp/manifest/sapUiPageV4.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"sapUiPageV4.js","sourceRoot":"","sources":["../../../../../../src/specification/v4/webapp/manifest/sapUiPageV4.ts"],"names":[],"mappings":";;AAkEa,QAAA,cAAc,GAAG,kBAAkB,CAAC;AACpC,QAAA,0BAA0B,GAAG,iBAAiB,CAAC;AAC/C,QAAA,0BAA0B,GAAG,6BAA6B,CAAC;AAC3D,QAAA,0BAA0B,GAAG,6BAA6B,CAAC;AAC3D,QAAA,kBAAkB,GAAG,qCAAqC,CAAC;AAgB3D,QAAA,uBAAuB,GAAG,aAAa,CAAC;AASrD,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IACzB,8CAAyB,CAAA;IACzB,gDAA2B,CAAA;AAC/B,CAAC,EAHW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAG5B"}
|
|
@@ -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
|
|
@@ -55,23 +55,21 @@ var BindingValue;
|
|
|
55
55
|
BindingValue["NotEditable"] = "{= !${ui>/editable}}";
|
|
56
56
|
})(BindingValue = exports.BindingValue || (exports.BindingValue = {}));
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
59
|
-
* @param baseId - base ID, first part of the stable ID
|
|
58
|
+
* Consolidates the list of id's and other breadcrumbs into one list, for finding the right stable ID for a column
|
|
60
59
|
* @param idBreadcrumbs - array of ID parts
|
|
61
|
-
* @param
|
|
62
|
-
* @param
|
|
63
|
-
* @
|
|
60
|
+
* @param localBreadcrumbs - array of breadcrumbs
|
|
61
|
+
* @param title - (section) title = facet ID
|
|
62
|
+
* @returns the consolidated breadcrumbs' list
|
|
64
63
|
*/
|
|
65
|
-
|
|
66
|
-
let sectionId
|
|
67
|
-
const localBreadcrumbs = [...breadcrumbs];
|
|
64
|
+
function mapBreadcrumbs(idBreadcrumbs, localBreadcrumbs, title) {
|
|
65
|
+
let sectionId;
|
|
68
66
|
idBreadcrumbs = idBreadcrumbs.map(function (item) {
|
|
69
|
-
if (item ===
|
|
67
|
+
if (item === types_1.PropertyName.sections) {
|
|
70
68
|
for (let index = 0; index < localBreadcrumbs.length; index++) {
|
|
71
69
|
const breadcrumb = localBreadcrumbs[index];
|
|
72
|
-
if (breadcrumb ===
|
|
70
|
+
if (breadcrumb === types_1.PropertyName.sections) {
|
|
73
71
|
sectionId = localBreadcrumbs[index + 1];
|
|
74
|
-
if (sectionId.indexOf(
|
|
72
|
+
if (sectionId.indexOf(types_1.FacetBase.LineItem) !== -1) {
|
|
75
73
|
localBreadcrumbs[index + 1] = exports.convertSectionId(sectionId, title) + '::Table';
|
|
76
74
|
return localBreadcrumbs[index + 1];
|
|
77
75
|
}
|
|
@@ -80,12 +78,26 @@ exports.buildColumnControlId = (baseId, idBreadcrumbs, breadcrumbs, controlType,
|
|
|
80
78
|
}
|
|
81
79
|
return item;
|
|
82
80
|
});
|
|
83
|
-
|
|
81
|
+
return { idBreadcrumbs };
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Export rule for table columns
|
|
85
|
+
* @param baseId - base ID, first part of the stable ID
|
|
86
|
+
* @param idBreadcrumbs - array of ID parts
|
|
87
|
+
* @param breadcrumbs - array of breadcrumbs
|
|
88
|
+
* @param controlType - controlType function of ecorators, not used here
|
|
89
|
+
* @param title - title from JSON schema, comprising the facet ID
|
|
90
|
+
*/
|
|
91
|
+
exports.buildColumnControlId = (baseId, idBreadcrumbs, breadcrumbs, _controlType, title) => {
|
|
92
|
+
let tableId = 'listReport'; //default
|
|
93
|
+
const localBreadcrumbs = [...breadcrumbs];
|
|
94
|
+
({ idBreadcrumbs } = mapBreadcrumbs(idBreadcrumbs, localBreadcrumbs, title));
|
|
95
|
+
if (localBreadcrumbs[0] === types_1.PropertyName.sections) {
|
|
84
96
|
tableId = localBreadcrumbs[1]
|
|
85
97
|
.replace(/::com.sap.vocabularies/g, types_1.VOCWITHSLASH)
|
|
86
98
|
.replace(/::@com.sap.vocabularies/g, types_1.VOCWITHSLASH);
|
|
87
99
|
}
|
|
88
|
-
else if (idBreadcrumbs[0] ===
|
|
100
|
+
else if (idBreadcrumbs[0] === types_1.PropertyName.table) {
|
|
89
101
|
tableId = idBreadcrumbs[0];
|
|
90
102
|
}
|
|
91
103
|
const lastIdPart = localBreadcrumbs[localBreadcrumbs.length - 1]
|
|
@@ -96,17 +108,10 @@ exports.buildColumnControlId = (baseId, idBreadcrumbs, breadcrumbs, controlType,
|
|
|
96
108
|
let fullId;
|
|
97
109
|
const splitPoint = lastIdPart.indexOf(':::');
|
|
98
110
|
if (lastIdPart.startsWith('DataField') && splitPoint > -1) {
|
|
99
|
-
fullId =
|
|
100
|
-
baseId +
|
|
101
|
-
'template:::TableColumn:::' +
|
|
102
|
-
lastIdPart.substr(0, splitPoint) +
|
|
103
|
-
':::sSmartTableId::' +
|
|
104
|
-
tableId.replace('::Table', ':3a:3aTable') +
|
|
105
|
-
':::' +
|
|
106
|
-
lastIdPart.substr(splitPoint + 3);
|
|
111
|
+
fullId = `${baseId}template:::TableColumn:::${lastIdPart.substring(0, splitPoint)}:::sSmartTableId::${tableId.replace('::Table', ':3a:3aTable')}:::${lastIdPart.substring(splitPoint + 3)}`;
|
|
107
112
|
}
|
|
108
113
|
else {
|
|
109
|
-
fullId = baseId
|
|
114
|
+
fullId = `${baseId}${idBreadcrumbs.join('::')}-${lastIdPart}`;
|
|
110
115
|
}
|
|
111
116
|
return escapeId(fullId);
|
|
112
117
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control.js","sourceRoot":"","sources":["../../../../../src/sync/common/decoration/control.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"control.js","sourceRoot":"","sources":["../../../../../src/sync/common/decoration/control.ts"],"names":[],"mappings":";;AAEA,oCAAiH;AACjH,oCAAkD;AAElD;;;;GAIG;AACU,QAAA,wBAAwB,GAAG,CAAC,MAAc,EAAE,aAAuB,EAAU,EAAE;IACxF,OAAO,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC7C,CAAC,CAAC;AAEF;;;;;GAKG;AACU,QAAA,qBAAqB,GAAG,CAAC,MAAc,EAAE,aAAuB,EAAE,WAAqB,EAAU,EAAE;IAC5G,OAAO,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;AAC9D,CAAC,CAAC;AAEF;;;;;;GAMG;AACU,QAAA,gBAAgB,GAAG,CAAC,SAAiB,EAAE,KAAa,EAAU,EAAE;IACzE,IAAI,kBAA0B,CAAC;IAC/B,MAAM,MAAM,GAAW,wBAAgB,CAAC;IACxC,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;QAC/C,kBAAkB,GAAG,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;KAC/C;SAAM;QACH,kBAAkB,GAAG,SAAS,CAAC,OAAO,CAAC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AAG,CAAC,MAAc,EAAE,UAAkB,EAAE,YAAoB,EAAQ,EAAE;IACjH,gCAAgC,CAAC,MAAM,EAAE,UAAU,EAAE,YAAY,CAAC,CAAC;AACvE,CAAC,CAAC;AAEW,QAAA,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"}
|
|
@@ -3,6 +3,7 @@ import { FioriElementsVersion } from '../../../specification/common';
|
|
|
3
3
|
import type { FacetConfig } from '..';
|
|
4
4
|
import { SectionType } from '..';
|
|
5
5
|
import type { EntitySet } from '@sap-ux/annotation-converter';
|
|
6
|
+
import type { Definition } from 'typescript-json-schema';
|
|
6
7
|
/**
|
|
7
8
|
* Adds definitions for forms in object page sections to the app schema
|
|
8
9
|
* @param {SectionType} sectionType - prefix to distinguish Section and HeaderSection
|
|
@@ -11,7 +12,7 @@ import type { EntitySet } from '@sap-ux/annotation-converter';
|
|
|
11
12
|
* @param {object} appSchema - app specific schema that gets enhanced
|
|
12
13
|
* @param {FioriElementsVersion} version - Fiori Elements version
|
|
13
14
|
*/
|
|
14
|
-
export declare function handleForm(sectionType: SectionType, section: FacetConfig, appSchemaSection:
|
|
15
|
+
export declare function handleForm(sectionType: SectionType, section: FacetConfig, appSchemaSection: Definition, appSchema: Definition, version: FioriElementsVersion, withActions?: boolean): void;
|
|
15
16
|
/**
|
|
16
17
|
* Replaces an alias in an annotation ID or reference, based on the AVT references' list
|
|
17
18
|
* @param annotationIdentifier - annotation ID or reference
|
|
@@ -36,20 +37,20 @@ export declare function getActionNameAndId(action: string, entityType: EntityTyp
|
|
|
36
37
|
* @param {EntityType} entityType - current entity type
|
|
37
38
|
* @param {ConverterOutput} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
|
|
38
39
|
*/
|
|
39
|
-
export declare function addFooterActions(appSchema:
|
|
40
|
+
export declare function addFooterActions(appSchema: Definition, entityType: EntityType, oDataServiceAVT: ConverterOutput): void;
|
|
40
41
|
/**
|
|
41
42
|
* Add Object Page Header Action Buttons to app-specific schema
|
|
42
43
|
* @param {object} appSchema Schema of the app
|
|
43
44
|
* @param {EntityType} entityType - current entity type
|
|
44
45
|
* @param {ConverterOutput} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
|
|
45
46
|
*/
|
|
46
|
-
export declare function addHeaderActions(appSchema:
|
|
47
|
+
export declare function addHeaderActions(appSchema: Definition, entityType: EntityType, oDataServiceAVT: ConverterOutput, addHeaderActionCallBack: any): void;
|
|
47
48
|
/**
|
|
48
49
|
* Adds common Object Page Header definitions to the app schema
|
|
49
50
|
* @param appSchema - app-specific JSOn schema
|
|
50
51
|
* @param entityType - current entity Type
|
|
51
52
|
*/
|
|
52
|
-
export declare function addCommonHeaderSchema(appSchema:
|
|
53
|
+
export declare function addCommonHeaderSchema(appSchema: Definition, entityType: EntityType): void;
|
|
53
54
|
/**
|
|
54
55
|
* Common logic to determine the EntitySet of a facet
|
|
55
56
|
* @param facet - current facet or section
|