@sap/ux-specification 1.84.26 → 1.84.30
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 +92 -9
- package/dist/documentation/runDocu-min.js +1 -1
- package/dist/documentation/styleDocu.css +4 -5
- 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 +103 -40
- package/dist/schemas/v2/ListReportConfig.json +112 -32
- package/dist/schemas/v2/ObjectPageConfig.json +247 -56
- package/dist/schemas/v2/OverviewPageConfig.json +258 -196
- package/dist/schemas/v4/AnalyticalListPageConfig.json +48 -93
- package/dist/schemas/v4/ListReportConfig.json +48 -93
- package/dist/schemas/v4/ObjectPageConfig.json +51 -104
- package/dist/scripts/extractDocu.js +18 -8
- package/dist/scripts/extractDocu.js.map +1 -1
- package/dist/scripts/runDocu.js +105 -89
- package/dist/scripts/runDocu.js.map +1 -1
- package/dist/scripts/to-json-schema.js +32 -37
- package/dist/scripts/to-json-schema.js.map +1 -1
- package/dist/specification/v2/index-min.js +1 -1
- package/dist/specification/v4/index-min.js +1 -1
- package/dist/src/api.js +9 -9
- package/dist/src/api.js.map +1 -1
- package/dist/src/apiTypes.d.ts +5 -2
- package/dist/src/specification/schemaAccess.js +1 -3
- package/dist/src/specification/schemaAccess.js.map +1 -1
- package/dist/src/specification/v2/controls/Action.d.ts +87 -0
- package/dist/src/specification/v2/controls/{FormAction.js → Action.js} +1 -1
- package/dist/src/specification/v2/controls/Action.js.map +1 -0
- package/dist/src/specification/v2/controls/Card.d.ts +20 -72
- package/dist/src/specification/v2/controls/Card.js.map +1 -1
- package/dist/src/specification/v2/controls/FilterBar.d.ts +6 -2
- package/dist/src/specification/v2/controls/Footer.d.ts +20 -0
- package/dist/src/specification/v2/controls/{ObjectPageFooter.js → Footer.js} +1 -1
- package/dist/src/specification/v2/controls/Footer.js.map +1 -0
- package/dist/src/specification/v2/controls/ObjectPageForm.d.ts +1 -2
- package/dist/src/specification/v2/controls/ObjectPageHeader.d.ts +1 -1
- package/dist/src/specification/v2/controls/ObjectPageTable.d.ts +5 -0
- package/dist/src/specification/v2/controls/ObjectPageToolBar.d.ts +1 -5
- package/dist/src/specification/v2/controls/Table.d.ts +14 -10
- package/dist/src/specification/v2/controls/Table.js.map +1 -1
- package/dist/src/specification/v2/controls/ToolBar.d.ts +1 -8
- package/dist/src/specification/v2/controls/index.d.ts +8 -10
- package/dist/src/specification/v2/controls/index.js +3 -3
- package/dist/src/specification/v2/controls/index.js.map +1 -1
- package/dist/src/specification/v2/pages/AnalyticalListPageConfig.d.ts +2 -1
- package/dist/src/specification/v2/pages/ListReportConfig.d.ts +3 -2
- package/dist/src/specification/v4/controls/ObjectPageFooter.d.ts +2 -2
- package/dist/src/specification/v4/controls/ObjectPageSection.d.ts +7 -7
- package/dist/src/specification/v4/controls/ObjectPageTable.d.ts +6 -13
- package/dist/src/specification/v4/controls/Table.d.ts +4 -10
- package/dist/src/specification/v4/webapp/manifest/ManifestSettings.d.ts +51 -13
- package/dist/src/specification/v4/webapp/manifest/ManifestSettings.js +6 -0
- package/dist/src/specification/v4/webapp/manifest/ManifestSettings.js.map +1 -1
- package/dist/src/sync/common/appProvider.js.map +1 -1
- package/dist/src/sync/common/decoration/control.d.ts +11 -1
- package/dist/src/sync/common/decoration/control.js +29 -3
- package/dist/src/sync/common/decoration/control.js.map +1 -1
- package/dist/src/sync/common/decoration/factory.js +2 -4
- package/dist/src/sync/common/decoration/factory.js.map +1 -1
- package/dist/src/sync/common/generate/index.d.ts +1 -0
- package/dist/src/sync/common/generate/index.js +1 -0
- package/dist/src/sync/common/generate/index.js.map +1 -1
- package/dist/src/sync/common/generate/objectPage.d.ts +8 -0
- package/dist/src/sync/common/generate/objectPage.js +28 -12
- package/dist/src/sync/common/generate/objectPage.js.map +1 -1
- package/dist/src/sync/common/generate/utils.d.ts +60 -0
- package/dist/src/sync/common/generate/utils.js +208 -0
- package/dist/src/sync/common/generate/utils.js.map +1 -0
- package/dist/src/sync/common/i18n.json +2 -0
- package/dist/src/sync/common/import/utils.d.ts +8 -1
- package/dist/src/sync/common/import/utils.js +14 -3
- package/dist/src/sync/common/import/utils.js.map +1 -1
- package/dist/src/sync/common/importProject.js +19 -28
- package/dist/src/sync/common/importProject.js.map +1 -1
- package/dist/src/sync/common/types.d.ts +29 -15
- package/dist/src/sync/common/types.js +25 -1
- package/dist/src/sync/common/types.js.map +1 -1
- package/dist/src/sync/common/utils.d.ts +6 -33
- package/dist/src/sync/common/utils.js +25 -131
- package/dist/src/sync/common/utils.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Action.d.ts +28 -0
- package/dist/src/sync/v2/export/controls/Action.js +127 -0
- package/dist/src/sync/v2/export/controls/Action.js.map +1 -0
- package/dist/src/sync/v2/export/controls/Card.d.ts +3 -7
- package/dist/src/sync/v2/export/controls/Card.js +15 -43
- package/dist/src/sync/v2/export/controls/Card.js.map +1 -1
- package/dist/src/sync/v2/export/controls/FilterBar.d.ts +4 -3
- package/dist/src/sync/v2/export/controls/FilterBar.js +23 -22
- package/dist/src/sync/v2/export/controls/FilterBar.js.map +1 -1
- package/dist/src/sync/v2/export/controls/FormAction.js +3 -2
- package/dist/src/sync/v2/export/controls/FormAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Fragment.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/Fragment.js +244 -168
- package/dist/src/sync/v2/export/controls/Fragment.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.d.ts +8 -0
- package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.js +62 -0
- package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.js.map +1 -0
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js +11 -29
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.d.ts +2 -2
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js +4 -4
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageTable.d.ts +4 -1
- package/dist/src/sync/v2/export/controls/ObjectPageTable.js +15 -0
- package/dist/src/sync/v2/export/controls/ObjectPageTable.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.d.ts +8 -0
- package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.js +61 -0
- package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.js.map +1 -0
- package/dist/src/sync/v2/export/controls/Table.d.ts +5 -4
- package/dist/src/sync/v2/export/controls/Table.js +16 -21
- package/dist/src/sync/v2/export/controls/Table.js.map +1 -1
- package/dist/src/sync/v2/export/controls/TableColumn.d.ts +18 -2
- package/dist/src/sync/v2/export/controls/TableColumn.js +126 -1
- package/dist/src/sync/v2/export/controls/TableColumn.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ToolBar.d.ts +4 -0
- package/dist/src/sync/v2/export/controls/ToolBar.js +6 -0
- package/dist/src/sync/v2/export/controls/ToolBar.js.map +1 -0
- package/dist/src/sync/v2/export/controls/index.d.ts +12 -8
- package/dist/src/sync/v2/export/controls/index.js +12 -8
- package/dist/src/sync/v2/export/controls/index.js.map +1 -1
- package/dist/src/sync/v2/export/export.js +134 -111
- package/dist/src/sync/v2/export/export.js.map +1 -1
- package/dist/src/sync/v2/export/exportPage.js +3 -2
- package/dist/src/sync/v2/export/exportPage.js.map +1 -1
- package/dist/src/sync/v2/export/manifest.js +2 -5
- package/dist/src/sync/v2/export/manifest.js.map +1 -1
- package/dist/src/sync/v2/export/pages/AnalyticalListPage.d.ts +2 -1
- package/dist/src/sync/v2/export/pages/AnalyticalListPage.js +3 -0
- package/dist/src/sync/v2/export/pages/AnalyticalListPage.js.map +1 -1
- package/dist/src/sync/v2/export/pages/ListReport.d.ts +3 -2
- package/dist/src/sync/v2/export/pages/ListReport.js +3 -0
- package/dist/src/sync/v2/export/pages/ListReport.js.map +1 -1
- package/dist/src/sync/v2/export/view-controller-generator.d.ts +16 -21
- package/dist/src/sync/v2/export/view-controller-generator.js +20 -36
- package/dist/src/sync/v2/export/view-controller-generator.js.map +1 -1
- package/dist/src/sync/v2/generate/analyticalListReport.js +16 -8
- package/dist/src/sync/v2/generate/analyticalListReport.js.map +1 -1
- package/dist/src/sync/v2/generate/listReport.d.ts +8 -0
- package/dist/src/sync/v2/generate/listReport.js +25 -6
- package/dist/src/sync/v2/generate/listReport.js.map +1 -1
- package/dist/src/sync/v2/generate/objectPage.d.ts +1 -6
- package/dist/src/sync/v2/generate/objectPage.js +208 -126
- package/dist/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v2/generate/utils.d.ts +16 -12
- package/dist/src/sync/v2/generate/utils.js +235 -98
- package/dist/src/sync/v2/generate/utils.js.map +1 -1
- package/dist/src/sync/v2/import/common/index.d.ts +29 -4
- package/dist/src/sync/v2/import/common/index.js +330 -56
- package/dist/src/sync/v2/import/common/index.js.map +1 -1
- package/dist/src/sync/v2/import/controls/table.js +3 -2
- package/dist/src/sync/v2/import/controls/table.js.map +1 -1
- package/dist/src/sync/v2/import/pages/analyticalListPage.js +27 -5
- package/dist/src/sync/v2/import/pages/analyticalListPage.js.map +1 -1
- package/dist/src/sync/v2/import/pages/listReport.d.ts +0 -5
- package/dist/src/sync/v2/import/pages/listReport.js +21 -100
- package/dist/src/sync/v2/import/pages/listReport.js.map +1 -1
- package/dist/src/sync/v2/import/pages/objectPage.d.ts +1 -1
- package/dist/src/sync/v2/import/pages/objectPage.js +443 -303
- package/dist/src/sync/v2/import/pages/objectPage.js.map +1 -1
- package/dist/src/sync/v2/import/utils.d.ts +4 -6
- package/dist/src/sync/v2/import/utils.js +32 -11
- package/dist/src/sync/v2/import/utils.js.map +1 -1
- package/dist/src/sync/v2/types.d.ts +28 -2
- package/dist/src/sync/v2/types.js +14 -0
- package/dist/src/sync/v2/types.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageTable.d.ts +2 -8
- package/dist/src/sync/v4/export/controls/ObjectPageTable.js +3 -68
- package/dist/src/sync/v4/export/controls/ObjectPageTable.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts +4 -7
- package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.js +3 -33
- package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.js.map +1 -1
- package/dist/src/sync/v4/export/controls/Table.d.ts +1 -8
- package/dist/src/sync/v4/export/controls/Table.js +2 -75
- package/dist/src/sync/v4/export/controls/Table.js.map +1 -1
- package/dist/src/sync/v4/export/controls/TableColumn.d.ts +3 -6
- package/dist/src/sync/v4/export/controls/TableColumn.js +3 -33
- package/dist/src/sync/v4/export/controls/TableColumn.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ToolBar.d.ts +5 -1
- package/dist/src/sync/v4/export/controls/ToolBar.js +3 -0
- package/dist/src/sync/v4/export/controls/ToolBar.js.map +1 -1
- package/dist/src/sync/v4/export/export.js +36 -25
- package/dist/src/sync/v4/export/export.js.map +1 -1
- package/dist/src/sync/v4/export/manifest.js.map +1 -1
- package/dist/src/sync/v4/export/pages/AnalyticalListPage.d.ts +2 -2
- package/dist/src/sync/v4/export/pages/ListReport.d.ts +2 -2
- package/dist/src/sync/v4/export/pages/ObjectPage.d.ts +2 -2
- package/dist/src/sync/v4/export/types.d.ts +4 -0
- package/dist/src/sync/v4/generate/generate.d.ts +4 -2
- package/dist/src/sync/v4/generate/generate.js +15 -6
- package/dist/src/sync/v4/generate/generate.js.map +1 -1
- package/dist/src/sync/v4/generate/listReport.d.ts +9 -7
- package/dist/src/sync/v4/generate/listReport.js +93 -22
- package/dist/src/sync/v4/generate/listReport.js.map +1 -1
- package/dist/src/sync/v4/generate/objectPage.js +111 -81
- package/dist/src/sync/v4/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v4/import/app/appProvider.js +2 -2
- package/dist/src/sync/v4/import/app/appProvider.js.map +1 -1
- package/dist/src/sync/v4/import/pages/analyticalListPage.d.ts +2 -2
- package/dist/src/sync/v4/import/pages/analyticalListPage.js +0 -1
- package/dist/src/sync/v4/import/pages/analyticalListPage.js.map +1 -1
- package/dist/src/sync/v4/import/pages/listReport.d.ts +4 -6
- package/dist/src/sync/v4/import/pages/listReport.js +57 -36
- package/dist/src/sync/v4/import/pages/listReport.js.map +1 -1
- package/dist/src/sync/v4/import/pages/objectPage.d.ts +2 -2
- package/dist/src/sync/v4/import/pages/objectPage.js +21 -18
- package/dist/src/sync/v4/import/pages/objectPage.js.map +1 -1
- package/dist/src/sync/v4/import/utils.js +6 -5
- package/dist/src/sync/v4/import/utils.js.map +1 -1
- package/dist/src/sync/v4/utils/utils.d.ts +15 -2
- package/dist/src/sync/v4/utils/utils.js +65 -26
- package/dist/src/sync/v4/utils/utils.js.map +1 -1
- package/dist/test/unit/utils.test.d.ts +1 -1
- package/package.json +13 -11
- package/dist/src/specification/v2/controls/FormAction.d.ts +0 -43
- package/dist/src/specification/v2/controls/FormAction.js.map +0 -1
- package/dist/src/specification/v2/controls/ObjectPageFooter.d.ts +0 -11
- package/dist/src/specification/v2/controls/ObjectPageFooter.js.map +0 -1
- package/dist/src/specification/v2/controls/ObjectPageHeaderAction.d.ts +0 -27
- package/dist/src/specification/v2/controls/ObjectPageHeaderAction.js +0 -3
- package/dist/src/specification/v2/controls/ObjectPageHeaderAction.js.map +0 -1
- package/dist/test/test-utils/metadataParser.d.ts +0 -19
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="@sapui5/ts-types" />
|
|
1
2
|
import { GenericColumns, TableTypeV2, PopinLayout, QuickVariant } from './Table';
|
|
2
3
|
import { ObjectPageToolBar } from './ObjectPageToolBar';
|
|
3
4
|
export interface QuickVariantSelectionOP {
|
|
@@ -49,6 +50,10 @@ export interface ObjectPageCommonTableSettings<COLS = GenericColumns> {
|
|
|
49
50
|
* useExportToExcel must be set to true if you want to export data to a spreadsheet application, for example Microsoft Excel.
|
|
50
51
|
*/
|
|
51
52
|
useExportToExcel?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Specifies the type of export to be used in the SmartTable control. UI5Client is the default option.
|
|
55
|
+
*/
|
|
56
|
+
exportType?: sap.ui.comp.smarttable.ExportType;
|
|
52
57
|
/**
|
|
53
58
|
* Use createMode 'inline' to enable inline creation of table entries for draft enabled applications.
|
|
54
59
|
*/
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
/// <reference types="@sapui5/ts-types" />
|
|
1
2
|
import { SAPUI5_FRAGMENT_CLASS } from '../../common/webapp/manifest/sapUi5';
|
|
2
3
|
import { ToolBar } from './ToolBar';
|
|
4
|
+
import { Action } from './Action';
|
|
3
5
|
export declare enum HAlign {
|
|
4
6
|
initial = "Initial",
|
|
5
7
|
left = "Left",
|
|
@@ -22,6 +24,12 @@ export interface TableColumn {
|
|
|
22
24
|
*/
|
|
23
25
|
hAlign?: HAlign;
|
|
24
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* Column Action
|
|
29
|
+
* @isViewNode true
|
|
30
|
+
*/
|
|
31
|
+
export interface TableColumnAction extends Action, TableColumn {
|
|
32
|
+
}
|
|
25
33
|
/**
|
|
26
34
|
* Custom Column
|
|
27
35
|
* @isViewNode true
|
|
@@ -32,7 +40,7 @@ export interface TableCustomColumn {
|
|
|
32
40
|
*/
|
|
33
41
|
id?: string;
|
|
34
42
|
/**
|
|
35
|
-
* The label of the custom column,
|
|
43
|
+
* The label of the custom column, preferably as an i18n key.
|
|
36
44
|
* @i18nClassification COL: Custom column header text
|
|
37
45
|
*/
|
|
38
46
|
text?: string;
|
|
@@ -90,7 +98,7 @@ export declare enum TableColumnExtensionTypeV2 {
|
|
|
90
98
|
*/
|
|
91
99
|
export declare type TableCustomColumns = Array<TableCustomColumn>;
|
|
92
100
|
export interface GenericColumns {
|
|
93
|
-
[key: string]: TableColumn | TableCustomColumns;
|
|
101
|
+
[key: string]: TableColumn | TableCustomColumns | TableColumnAction;
|
|
94
102
|
}
|
|
95
103
|
export declare enum PopinLayout {
|
|
96
104
|
Block = "Block",
|
|
@@ -221,6 +229,10 @@ export interface CommonTableSettings<COLS = GenericColumns> {
|
|
|
221
229
|
* useExportToExcel must be set to true if you want to export data to a spreadsheet application, for example Microsoft Excel.
|
|
222
230
|
*/
|
|
223
231
|
useExportToExcel?: boolean;
|
|
232
|
+
/**
|
|
233
|
+
* Specifies the type of export to be used in the SmartTable control. UI5Client is the default option.
|
|
234
|
+
*/
|
|
235
|
+
exportType?: sap.ui.comp.smarttable.ExportType;
|
|
224
236
|
/**
|
|
225
237
|
* Set to false if the table does not occupy the entire space available in the container.
|
|
226
238
|
*/
|
|
@@ -357,10 +369,6 @@ export interface AnalyticalTable extends CommonTableSettings {
|
|
|
357
369
|
* @i18nClassification TIT: Title for the content area
|
|
358
370
|
*/
|
|
359
371
|
contentTitle?: string;
|
|
360
|
-
/**
|
|
361
|
-
* Lets you to add default values for FilterBar using SelectionVariant annotation
|
|
362
|
-
*/
|
|
363
|
-
filterDefaultsFromSelectionVariant?: boolean;
|
|
364
372
|
/**
|
|
365
373
|
* All filter fields will be set as in parameter
|
|
366
374
|
*/
|
|
@@ -405,10 +413,6 @@ export interface TableALPCommonSettings extends CommonTableSettings {
|
|
|
405
413
|
* This setting allows developer to determine chart / table interaction. 'true' would mean chart act as filter for table, 'false' would mean that matching table rows are highlighted but table is not filtered.
|
|
406
414
|
*/
|
|
407
415
|
autoHide?: boolean;
|
|
408
|
-
/**
|
|
409
|
-
* Lets you to add default values for FilterBar using SelectionVariant annotation
|
|
410
|
-
*/
|
|
411
|
-
filterDefaultsFromSelectionVariant?: boolean;
|
|
412
416
|
/**
|
|
413
417
|
* All filter fields will be set as in parameter
|
|
414
418
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../../../src/specification/v2/controls/Table.ts"],"names":[],"mappings":";;
|
|
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;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,18 +1,16 @@
|
|
|
1
|
+
export * from './Action';
|
|
2
|
+
export * from './Card';
|
|
3
|
+
export * from './Facets';
|
|
4
|
+
export * from './Field';
|
|
1
5
|
export * from './FilterBar';
|
|
2
6
|
export * from './Table';
|
|
3
|
-
export * from './Facets';
|
|
4
7
|
export * from './ToolBar';
|
|
5
|
-
export * from './
|
|
8
|
+
export * from './Footer';
|
|
9
|
+
export * from './AnalyticalListPageChart';
|
|
6
10
|
export * from './ObjectPageHeader';
|
|
7
|
-
export * from './ObjectPageHeaderAction';
|
|
8
|
-
export * from './ObjectPageFooter';
|
|
9
11
|
export * from './ObjectPageLayout';
|
|
10
12
|
export * from './ObjectPageSection';
|
|
11
|
-
export * from './Card';
|
|
12
|
-
export * from './ObjectPageTable';
|
|
13
|
-
export * from './AnalyticalListPageChart';
|
|
14
13
|
export * from './ObjectPageChart';
|
|
15
14
|
export * from './ObjectPageForm';
|
|
16
|
-
export * from './
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './FormAction';
|
|
15
|
+
export * from './ObjectPageTable';
|
|
16
|
+
export * from './ObjectPageToolBar';
|
|
@@ -3,12 +3,12 @@ function __export(m) {
|
|
|
3
3
|
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
4
4
|
}
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
__export(require("./Action"));
|
|
7
|
+
__export(require("./Card"));
|
|
6
8
|
__export(require("./FilterBar"));
|
|
7
9
|
__export(require("./Table"));
|
|
10
|
+
__export(require("./AnalyticalListPageChart"));
|
|
8
11
|
__export(require("./ObjectPageHeader"));
|
|
9
12
|
__export(require("./ObjectPageSection"));
|
|
10
|
-
__export(require("./Card"));
|
|
11
13
|
__export(require("./ObjectPageTable"));
|
|
12
|
-
__export(require("./AnalyticalListPageChart"));
|
|
13
|
-
__export(require("./FormAction"));
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/specification/v2/controls/index.ts"],"names":[],"mappings":";;;;;AAAA,iCAA4B;AAC5B,6BAAwB;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/specification/v2/controls/index.ts"],"names":[],"mappings":";;;;;AAAA,8BAAyB;AACzB,4BAAuB;AAGvB,iCAA4B;AAC5B,6BAAwB;AAGxB,+CAA0C;AAC1C,wCAAmC;AAEnC,yCAAoC;AAGpC,uCAAkC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnalyticalListPageFilterBar, ALPAnalyticalTable, ALPGridTable, ALPResponsiveTable } from '../controls';
|
|
1
|
+
import { AnalyticalListPageFilterBar, ALPAnalyticalTable, ALPGridTable, ALPResponsiveTable, GenericFooter } from '../controls';
|
|
2
2
|
import { PageConfig } from '../../common/page';
|
|
3
3
|
import { ChartSettings } from '../../../specification/v2/controls';
|
|
4
4
|
import { KPISettings } from '../../../specification/v2/controls/AnalyticalListPageKPI';
|
|
@@ -10,6 +10,7 @@ export interface AnalyticalListPageConfig extends PageConfig {
|
|
|
10
10
|
table?: ALPResponsiveTable | ALPGridTable | ALPAnalyticalTable;
|
|
11
11
|
filterBar?: AnalyticalListPageFilterBar;
|
|
12
12
|
chart?: ChartSettings;
|
|
13
|
+
footer?: GenericFooter;
|
|
13
14
|
/**
|
|
14
15
|
* Key Performance Indicators
|
|
15
16
|
* @isViewNode true
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TreeTable,
|
|
1
|
+
import { TreeTable, ListReportFilterBar, GenericFooter, AnalyticalTable, GridTable, ResponsiveTableWithInlineDelete, ResponsiveTableWithMultiSelect } from '../controls';
|
|
2
2
|
import { PageConfig } from '../../common/page';
|
|
3
3
|
export declare type ListReportTableTypeV2 = ResponsiveTableWithMultiSelect | ResponsiveTableWithInlineDelete | TreeTable | AnalyticalTable | GridTable;
|
|
4
4
|
export interface ListReportConfig extends PageConfig {
|
|
@@ -7,5 +7,6 @@ export interface ListReportConfig extends PageConfig {
|
|
|
7
7
|
*/
|
|
8
8
|
fitContent?: boolean;
|
|
9
9
|
table?: ListReportTableTypeV2;
|
|
10
|
-
filterBar?:
|
|
10
|
+
filterBar?: ListReportFilterBar;
|
|
11
|
+
footer?: GenericFooter;
|
|
11
12
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare type FooterActionV4 = object;
|
|
2
|
-
export interface
|
|
2
|
+
export interface ObjectPageFooterActions {
|
|
3
3
|
[id: string]: FooterActionV4;
|
|
4
4
|
}
|
|
5
5
|
/**
|
|
6
6
|
* Footer
|
|
7
7
|
* @isViewNode true
|
|
8
8
|
*/
|
|
9
|
-
export interface ObjectPageFooter<ACT =
|
|
9
|
+
export interface ObjectPageFooter<ACT = ObjectPageFooterActions> {
|
|
10
10
|
actions?: ACT;
|
|
11
11
|
}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import { ObjectPageSectionTableV4 } from '../controls/ObjectPageTable';
|
|
2
2
|
import { SAPUI5_FRAGMENT_CLASS } from '../../common/webapp/manifest/sapUi5';
|
|
3
|
-
/**
|
|
4
|
-
* Subsections
|
|
5
|
-
* @isViewNode true
|
|
6
|
-
*/
|
|
7
|
-
export interface ObjectPageSubSections {
|
|
8
|
-
subsections: GenericSections;
|
|
9
|
-
}
|
|
10
3
|
export interface ObjectPageSectionForm {
|
|
11
4
|
/**
|
|
12
5
|
* Form
|
|
@@ -38,6 +31,13 @@ export interface ObjectPageSectionAddress {
|
|
|
38
31
|
export interface GenericSections {
|
|
39
32
|
[key: string]: ObjectPageSectionTableV4 | ObjectPageSectionForm | ObjectPageSectionDataPoint | ObjectPageSectionContact | ObjectPageSectionAddress;
|
|
40
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Subsections
|
|
36
|
+
* @isViewNode true
|
|
37
|
+
*/
|
|
38
|
+
export interface ObjectPageSubSections {
|
|
39
|
+
subsections: GenericSections;
|
|
40
|
+
}
|
|
41
41
|
export declare enum SectionPosition {
|
|
42
42
|
After = "After",
|
|
43
43
|
Before = "Before"
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import { AnnotationPathAsObject, TableCreationModeType,
|
|
2
|
-
import {
|
|
1
|
+
import { AnnotationPathAsObject, TableCreationModeType, TableSettings } from '../controls';
|
|
2
|
+
import { ObjectPageTableColumn as ObjectPageTableColumnIF, ObjectPageTableColumnAction } from '../webapp/manifest/ManifestSettings';
|
|
3
3
|
import { ObjectPageToolBar } from './ObjectPageToolBar';
|
|
4
4
|
/**
|
|
5
5
|
* Table
|
|
6
6
|
* @isViewNode true
|
|
7
7
|
*/
|
|
8
8
|
export interface ObjectPageTable extends TableSettingsOP {
|
|
9
|
-
/**
|
|
10
|
-
* By setting enableFullScreen to true you can enable the full screen mode for this table; this will display a new button on the table toolbar allowing the user to open the table in a fullscreen dialog.
|
|
11
|
-
*/
|
|
12
|
-
enableFullScreen?: boolean;
|
|
13
9
|
/**
|
|
14
10
|
* In the Object Page tables, it is possible to add several items at a time by copying and pasting data from an excel file, if this property is set to true.
|
|
15
11
|
*/
|
|
@@ -68,8 +64,8 @@ export interface QuickVariantSelectionV4OP {
|
|
|
68
64
|
*/
|
|
69
65
|
showCounts?: boolean;
|
|
70
66
|
}
|
|
71
|
-
interface
|
|
72
|
-
[key: string]:
|
|
67
|
+
export interface GenericColumnsOP {
|
|
68
|
+
[key: string]: ObjectPageTableColumnIF | ObjectPageTableColumnAction;
|
|
73
69
|
}
|
|
74
70
|
export interface TableSettingsOP extends TableSettings {
|
|
75
71
|
/**
|
|
@@ -78,14 +74,11 @@ export interface TableSettingsOP extends TableSettings {
|
|
|
78
74
|
creationMode?: TableCreationModeOP;
|
|
79
75
|
/**
|
|
80
76
|
* Defines the personalization mode, currently only effective if variant management on page is either set to Page or Control.
|
|
81
|
-
* By default all table settings are enabled. You can change this for the different parts of the table by setting the properties "Column", "Sort" and "Filter" accordingly.
|
|
82
|
-
* Omitting a property is treated as false, this allows apps to avoid getting new features like grouping in upcoming releases.
|
|
83
77
|
*/
|
|
84
|
-
personalization?:
|
|
78
|
+
personalization?: boolean;
|
|
85
79
|
/**
|
|
86
80
|
* With quickVariantSelection you can switch on the multiple view feature (single table mode). It links to SelectionVariant (filters) or SelectionPresentationVariant (filters and sorters) you must have added to your annotations beforehand.
|
|
87
81
|
*/
|
|
88
82
|
quickVariantSelection?: QuickVariantSelectionV4OP;
|
|
89
|
-
columns?:
|
|
83
|
+
columns?: GenericColumnsOP;
|
|
90
84
|
}
|
|
91
|
-
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TableColumn,
|
|
1
|
+
import { TableColumn, TableColumnAction } from './../webapp/manifest/ManifestSettings';
|
|
2
2
|
import { ToolBar } from './ToolBar';
|
|
3
3
|
export declare enum SelectionMode {
|
|
4
4
|
Multi = "Multi",
|
|
@@ -49,6 +49,7 @@ export interface AnnotationPathAsObject {
|
|
|
49
49
|
export interface AnnotationPathWithKey {
|
|
50
50
|
key: string;
|
|
51
51
|
annotationPath: string;
|
|
52
|
+
entitySet?: string;
|
|
52
53
|
}
|
|
53
54
|
export interface QuickVariantSelectionV4 {
|
|
54
55
|
/**
|
|
@@ -74,13 +75,8 @@ export interface MultiTableModeV4 {
|
|
|
74
75
|
*/
|
|
75
76
|
showCounts?: boolean;
|
|
76
77
|
}
|
|
77
|
-
/**
|
|
78
|
-
* Custom Columns
|
|
79
|
-
* @isViewNode true
|
|
80
|
-
*/
|
|
81
|
-
export declare type TableCustomColumns = Array<TableCustomColumn>;
|
|
82
78
|
export interface GenericColumns {
|
|
83
|
-
[key: string]: TableColumn |
|
|
79
|
+
[key: string]: TableColumn | TableColumnAction;
|
|
84
80
|
}
|
|
85
81
|
export interface TableSettings<COLS = GenericColumns> {
|
|
86
82
|
/**
|
|
@@ -93,10 +89,8 @@ export interface TableSettings<COLS = GenericColumns> {
|
|
|
93
89
|
creationMode?: TableCreationMode;
|
|
94
90
|
/**
|
|
95
91
|
* Defines the personalization mode, currently only effective if variant management on page is either set to Page or Control.
|
|
96
|
-
* By default all table settings are enabled. You can change this for the different parts of the table by setting the properties "Column", "Sort" and "Filter" accordingly.
|
|
97
|
-
* Omitting a property is treated as false, this allows apps to avoid getting new features like grouping in upcoming releases.
|
|
98
92
|
*/
|
|
99
|
-
personalization?:
|
|
93
|
+
personalization?: boolean;
|
|
100
94
|
/**
|
|
101
95
|
* Applications can influence whether the table rows are selectable or not, and whether it allows for single selection or multiple selection. It can take the following values:
|
|
102
96
|
* - "Auto": This is the default value. In this mode, Fiori Elements first checks if there are any custom actions or IBN buttons in the table toolbar that require a context. If no such buttons are found, then no table selection is allowed in display mode. In edit mode too a selection is not allowed unless there is a Delete button in the table toolbar in which case multiple row selection will be allowed.
|
|
@@ -3,7 +3,7 @@ export declare enum Placement {
|
|
|
3
3
|
Before = "Before",
|
|
4
4
|
End = "End"
|
|
5
5
|
}
|
|
6
|
-
export
|
|
6
|
+
export interface Position {
|
|
7
7
|
/**
|
|
8
8
|
* The key of another column to be used as placement anchor.
|
|
9
9
|
*/
|
|
@@ -12,7 +12,7 @@ export declare type Position = {
|
|
|
12
12
|
* Define the placement, either before or after the anchor column.
|
|
13
13
|
*/
|
|
14
14
|
placement: Placement;
|
|
15
|
-
}
|
|
15
|
+
}
|
|
16
16
|
export declare type Positionable = {
|
|
17
17
|
/**
|
|
18
18
|
* Defines the position of the column relative to other columns.
|
|
@@ -44,11 +44,16 @@ export declare enum Availability {
|
|
|
44
44
|
'Adaptation' = "Adaptation",
|
|
45
45
|
'Hidden' = "Hidden"
|
|
46
46
|
}
|
|
47
|
+
export declare enum HorizontalAlign {
|
|
48
|
+
'Begin' = "Begin",
|
|
49
|
+
'Center' = "Center",
|
|
50
|
+
'End' = "End"
|
|
51
|
+
}
|
|
47
52
|
/**
|
|
48
53
|
* Table Column
|
|
49
54
|
* @isViewNode true
|
|
50
55
|
*/
|
|
51
|
-
export
|
|
56
|
+
export interface TableColumn {
|
|
52
57
|
/**
|
|
53
58
|
* A string type that represents CSS size values.
|
|
54
59
|
* Refer to https://openui5.hana.ondemand.com/api/sap.ui.core.CSSSize.
|
|
@@ -61,16 +66,12 @@ export declare type TableColumn = {
|
|
|
61
66
|
* Hidden: the column is neither available in the table nor in adaptation.
|
|
62
67
|
*/
|
|
63
68
|
availability?: Availability;
|
|
64
|
-
|
|
65
|
-
* Settings that are only relevant for actions (associated with a UI.DataFieldForAction annotation)
|
|
66
|
-
*/
|
|
67
|
-
afterExecution?: ActionAfterExecutionConfiguration;
|
|
68
|
-
};
|
|
69
|
+
}
|
|
69
70
|
/**
|
|
70
71
|
* Table Column
|
|
71
72
|
* @isViewNode true
|
|
72
73
|
*/
|
|
73
|
-
export
|
|
74
|
+
export interface ObjectPageTableColumn {
|
|
74
75
|
/**
|
|
75
76
|
* A string type that represents CSS size values.
|
|
76
77
|
* Refer to https://openui5.hana.ondemand.com/api/sap.ui.core.CSSSize.
|
|
@@ -83,18 +84,40 @@ export declare type TableColumnOP = {
|
|
|
83
84
|
* Hidden: the column is neither available in the table nor in adaptation.
|
|
84
85
|
*/
|
|
85
86
|
availability?: Availability;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Inline Action
|
|
90
|
+
* @isViewNode true
|
|
91
|
+
*/
|
|
92
|
+
export interface TableColumnAction extends TableColumn {
|
|
93
|
+
/**
|
|
94
|
+
* Settings that are only relevant for actions (associated with a UI.DataFieldForAction annotation)
|
|
95
|
+
*/
|
|
96
|
+
afterExecution?: ActionAfterExecutionConfiguration;
|
|
97
|
+
}
|
|
98
|
+
export declare type ColumnPropertiesType = string[];
|
|
99
|
+
/**
|
|
100
|
+
* Inline Action for Object Page
|
|
101
|
+
* @isViewNode true
|
|
102
|
+
*/
|
|
103
|
+
export interface ObjectPageTableColumnAction extends TableColumn {
|
|
86
104
|
/**
|
|
87
105
|
* Settings that are only relevant for actions (associated with a UI.DataFieldForAction annotation)
|
|
88
106
|
*/
|
|
89
107
|
afterExecution?: ActionAfterExecutionConfigurationOP;
|
|
90
|
-
}
|
|
108
|
+
}
|
|
91
109
|
/**
|
|
92
110
|
* Custom Column
|
|
93
111
|
* @isViewNode true
|
|
94
112
|
*/
|
|
95
|
-
export
|
|
113
|
+
export interface TableCustomColumn {
|
|
114
|
+
/**
|
|
115
|
+
* Defines the position of the column relative to other columns.
|
|
116
|
+
*/
|
|
117
|
+
position?: Position;
|
|
96
118
|
/**
|
|
97
119
|
* The header is shown on the table as header, as well as in the add/remove dialog.
|
|
120
|
+
* @i18nClassification COL: Custom column header text
|
|
98
121
|
*/
|
|
99
122
|
header: string;
|
|
100
123
|
/**
|
|
@@ -105,5 +128,20 @@ export declare type TableCustomColumn = Positionable & {
|
|
|
105
128
|
/**
|
|
106
129
|
* Relevant for extension columns; allows the definition of a target fragment.
|
|
107
130
|
*/
|
|
108
|
-
template
|
|
109
|
-
|
|
131
|
+
template: string;
|
|
132
|
+
/**
|
|
133
|
+
* Aligns the header as well as the content horizontally.
|
|
134
|
+
*/
|
|
135
|
+
horizontalAlign?: HorizontalAlign;
|
|
136
|
+
/**
|
|
137
|
+
* Defines where the column should be shown.
|
|
138
|
+
* - Default: it will be shown by default in the table.
|
|
139
|
+
* - Adaptation: it will initially not shown in the table but be available via end user adaptation
|
|
140
|
+
* - Hidden: the column is neither available in the table nor in adaptation
|
|
141
|
+
*/
|
|
142
|
+
availability?: Availability;
|
|
143
|
+
/**
|
|
144
|
+
* If provided and sorting is enabled for the table the custom column header can be clicked. This will lead to a list of properties (or one) that can be sorted by, they are displayed as the labels of the properties, corresponding to their definition in the annotations.
|
|
145
|
+
*/
|
|
146
|
+
properties?: ColumnPropertiesType;
|
|
147
|
+
}
|
|
@@ -13,4 +13,10 @@ var Availability;
|
|
|
13
13
|
Availability["Adaptation"] = "Adaptation";
|
|
14
14
|
Availability["Hidden"] = "Hidden";
|
|
15
15
|
})(Availability = exports.Availability || (exports.Availability = {}));
|
|
16
|
+
var HorizontalAlign;
|
|
17
|
+
(function (HorizontalAlign) {
|
|
18
|
+
HorizontalAlign["Begin"] = "Begin";
|
|
19
|
+
HorizontalAlign["Center"] = "Center";
|
|
20
|
+
HorizontalAlign["End"] = "End";
|
|
21
|
+
})(HorizontalAlign = exports.HorizontalAlign || (exports.HorizontalAlign = {}));
|
|
16
22
|
//# sourceMappingURL=ManifestSettings.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManifestSettings.js","sourceRoot":"","sources":["../../../../../../src/specification/v4/webapp/manifest/ManifestSettings.ts"],"names":[],"mappings":";;AAAA,oCAAoC;AACpC,IAAY,SAIX;AAJD,WAAY,SAAS;IACjB,4BAAe,CAAA;IACf,8BAAiB,CAAA;IACjB,wBAAW,CAAA;AACf,CAAC,EAJW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAIpB;AA0CD,IAAY,YAIX;AAJD,WAAY,YAAY;IACpB,mCAAqB,CAAA;IACrB,yCAA2B,CAAA;IAC3B,iCAAmB,CAAA;AACvB,CAAC,EAJW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAIvB"}
|
|
1
|
+
{"version":3,"file":"ManifestSettings.js","sourceRoot":"","sources":["../../../../../../src/specification/v4/webapp/manifest/ManifestSettings.ts"],"names":[],"mappings":";;AAAA,oCAAoC;AACpC,IAAY,SAIX;AAJD,WAAY,SAAS;IACjB,4BAAe,CAAA;IACf,8BAAiB,CAAA;IACjB,wBAAW,CAAA;AACf,CAAC,EAJW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAIpB;AA0CD,IAAY,YAIX;AAJD,WAAY,YAAY;IACpB,mCAAqB,CAAA;IACrB,yCAA2B,CAAA;IAC3B,iCAAmB,CAAA;AACvB,CAAC,EAJW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAIvB;AAED,IAAY,eAIX;AAJD,WAAY,eAAe;IACvB,kCAAiB,CAAA;IACjB,oCAAmB,CAAA;IACnB,8BAAa,CAAA;AACjB,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appProvider.js","sourceRoot":"","sources":["../../../../src/sync/common/appProvider.ts"],"names":[],"mappings":";;AAAA,uDAMoC;
|
|
1
|
+
{"version":3,"file":"appProvider.js","sourceRoot":"","sources":["../../../../src/sync/common/appProvider.ts"],"names":[],"mappings":";;AAAA,uDAMoC;AAGpC,mCAAmD;AACnD,mCAA4C;AAC5C,mEAA8D;AAO9D,MAAsB,WAAW;IAO7B,YACI,QAAiC,EACjC,OAAc,EACd,IAAY,EACZ,KAAgB,EAChB,OAA6B,EAC7B,QAAwC,EACxC,MAAwB;QAV5B,yDAAyD;QAClD,yBAAoB,GAAkB,EAAE,CAAC;QAW5C,MAAM,UAAU,GAAG,yBAAiB,CAAC,yBAAU,CAAC,WAAW,CAAC,CAAC;QAC7D,IAAI,CAAC,GAAG,mBACJ,OAAO,EAAE,UAAU,CAAC,IAAI,EACxB,EAAE,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC,EAA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GAAgB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QAC9D,KAAK,MAAM,MAAM,IAAI,GAAG,CAAC,KAAK,EAAE;YAC5B,OAAO,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC;SACnC;QACD,SAAS,CAAC,gBAAQ,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;QAE9B,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;IACtC,CAAC;CACJ;AAnED,kCAmEC"}
|
|
@@ -28,7 +28,7 @@ export declare enum BindingValue {
|
|
|
28
28
|
NotEditable = "{= !${ui>/editable}}"
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
* Export rule
|
|
31
|
+
* Export rule for table columns
|
|
32
32
|
* @param baseId - base ID, first part of the stable ID
|
|
33
33
|
* @param idBreadcrumbs - array of ID parts
|
|
34
34
|
* @param breadcrumbs - array of breadcrumbs
|
|
@@ -36,5 +36,15 @@ export declare enum BindingValue {
|
|
|
36
36
|
* @param title - title from JSON schema, comprising the facet ID
|
|
37
37
|
*/
|
|
38
38
|
export declare const buildColumnControlId: (baseId: string, idBreadcrumbs: string[], breadcrumbs: string[], controlType: ControlTypeFunction, title: string) => string;
|
|
39
|
+
/**
|
|
40
|
+
* Split up action breadcrumb and return different parts from it
|
|
41
|
+
* @param breadcrumbs - array of breadcrumbs
|
|
42
|
+
* @returns {object} - actionType, semanticObjectId, actionId of action
|
|
43
|
+
*/
|
|
44
|
+
export declare const getActionBreadcrumbParts: (breadcrumbs: string[]) => {
|
|
45
|
+
actionType: string;
|
|
46
|
+
semanticObjectId: string;
|
|
47
|
+
actionId: string;
|
|
48
|
+
};
|
|
39
49
|
export declare const addPatternForBindingChangeOfEnumLR: (schema: object, definition: object, propertyName: string) => void;
|
|
40
50
|
export declare const addPatternForBindingChangeOfEnumOP: (schema: object, definition: object, propertyName: string) => void;
|
|
@@ -29,7 +29,7 @@ exports.buildControlIdForPage = (baseId, idBreadcrumbs, breadcrumbs) => {
|
|
|
29
29
|
exports.convertSectionId = (sectionId, title) => {
|
|
30
30
|
let convertedSectionId;
|
|
31
31
|
const prefix = types_1.FacetTitlePrefix;
|
|
32
|
-
if (title !== undefined) {
|
|
32
|
+
if (title !== undefined && title.includes(prefix)) {
|
|
33
33
|
convertedSectionId = title.split(prefix)[1];
|
|
34
34
|
}
|
|
35
35
|
else {
|
|
@@ -55,7 +55,7 @@ var BindingValue;
|
|
|
55
55
|
BindingValue["NotEditable"] = "{= !${ui>/editable}}";
|
|
56
56
|
})(BindingValue = exports.BindingValue || (exports.BindingValue = {}));
|
|
57
57
|
/**
|
|
58
|
-
* Export rule
|
|
58
|
+
* Export rule for table columns
|
|
59
59
|
* @param baseId - base ID, first part of the stable ID
|
|
60
60
|
* @param idBreadcrumbs - array of ID parts
|
|
61
61
|
* @param breadcrumbs - array of breadcrumbs
|
|
@@ -85,10 +85,14 @@ exports.buildColumnControlId = (baseId, idBreadcrumbs, breadcrumbs, controlType,
|
|
|
85
85
|
.replace(/::com.sap.vocabularies/g, types_1.VOCWITHSLASH)
|
|
86
86
|
.replace(/::@com.sap.vocabularies/g, types_1.VOCWITHSLASH);
|
|
87
87
|
}
|
|
88
|
+
else if (idBreadcrumbs[0] === 'table') {
|
|
89
|
+
tableId = idBreadcrumbs[0];
|
|
90
|
+
}
|
|
88
91
|
const lastIdPart = localBreadcrumbs[localBreadcrumbs.length - 1]
|
|
89
92
|
.replace(/::com.sap.vocabularies/g, types_1.VOCWITHSLASH)
|
|
90
93
|
.replace(/::@com.sap.vocabularies/g, types_1.VOCWITHSLASH)
|
|
91
|
-
.replace('sTarget/@', 'sTarget::@')
|
|
94
|
+
.replace('sTarget/@', 'sTarget::@')
|
|
95
|
+
.replace('/', ':2f');
|
|
92
96
|
let fullId;
|
|
93
97
|
const splitPoint = lastIdPart.indexOf(':::');
|
|
94
98
|
if (lastIdPart.startsWith('DataField') && splitPoint > -1) {
|
|
@@ -106,6 +110,28 @@ exports.buildColumnControlId = (baseId, idBreadcrumbs, breadcrumbs, controlType,
|
|
|
106
110
|
}
|
|
107
111
|
return escapeId(fullId);
|
|
108
112
|
};
|
|
113
|
+
/**
|
|
114
|
+
* Split up action breadcrumb and return different parts from it
|
|
115
|
+
* @param breadcrumbs - array of breadcrumbs
|
|
116
|
+
* @returns {object} - actionType, semanticObjectId, actionId of action
|
|
117
|
+
*/
|
|
118
|
+
exports.getActionBreadcrumbParts = (breadcrumbs) => {
|
|
119
|
+
const actionIdParts = breadcrumbs[breadcrumbs.length - 1].split(':::');
|
|
120
|
+
let actionType, semanticObjectId, actionId;
|
|
121
|
+
if (actionIdParts.length > 2) {
|
|
122
|
+
actionType = actionIdParts[0];
|
|
123
|
+
semanticObjectId = actionIdParts[1].split('::')[1];
|
|
124
|
+
actionId = actionIdParts[2].split('::')[1];
|
|
125
|
+
}
|
|
126
|
+
else if (actionIdParts.length === 2) {
|
|
127
|
+
actionType = actionIdParts[0];
|
|
128
|
+
actionId = actionIdParts[1].split('sAction::')[1];
|
|
129
|
+
}
|
|
130
|
+
else {
|
|
131
|
+
actionId = actionIdParts[0];
|
|
132
|
+
}
|
|
133
|
+
return { actionType, semanticObjectId, actionId };
|
|
134
|
+
};
|
|
109
135
|
/**
|
|
110
136
|
* Determines the valid pattern for a binding change
|
|
111
137
|
* @param schemaDefinition - definition in the JSON schema
|
|
@@ -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,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M,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,CAAC,CAAC;AACtF,CAAC,CAAC"}
|
|
@@ -31,8 +31,7 @@ class MetadataFactory {
|
|
|
31
31
|
? this.pageTypes[pageType][controlPropertyValue]
|
|
32
32
|
: this.pageTypes[pageType][schemaPropertyName];
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
return metadataInstance;
|
|
34
|
+
return metadataClass ? Object.assign(new metadataClass(), data) : data;
|
|
36
35
|
}
|
|
37
36
|
/**
|
|
38
37
|
* Creates an instance of a metadata class for a given page
|
|
@@ -42,8 +41,7 @@ class MetadataFactory {
|
|
|
42
41
|
*/
|
|
43
42
|
createPageInstance(pageType, data) {
|
|
44
43
|
const metadataClass = this.pages[pageType];
|
|
45
|
-
|
|
46
|
-
return metadataInstance;
|
|
44
|
+
return Object.assign(new metadataClass(), data);
|
|
47
45
|
}
|
|
48
46
|
}
|
|
49
47
|
exports.MetadataFactory = MetadataFactory;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.js","sourceRoot":"","sources":["../../../../../src/sync/common/decoration/factory.ts"],"names":[],"mappings":";;AAiBA,MAAsB,eAAe;IAKjC;;;;;OAKG;IACH,YAAsB,QAAiC,EAAE,KAAwB,EAAE,SAAiB;QAChG,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IAED;;;;;;;;;OASG;IACH,cAAc,CACV,QAA+B,EAC/B,kBAA0B,EAC1B,IAAa,EACb,oBAA6B;QAE7B,IAAI,aAAa,GAAG,IAAI,CAAC,QAAQ,CAAC,oBAAoB,CAAC;YACnD,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,oBAAoB,CAAC;YACrC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC;QACxC,IAAI,CAAC,aAAa,EAA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