@sap/ux-specification 1.136.12 → 1.136.14
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 +58 -1
- package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
- package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
- package/dist/documentation/v2/v2-ListReport.html +2 -2
- package/dist/documentation/v2/v2-ListReportNew.html +2 -2
- package/dist/documentation/v2/v2-ObjectPage.html +2 -2
- package/dist/documentation/v2/v2-OverviewPage.html +2 -2
- package/dist/documentation/v4/v4-ApplicationV4.html +2 -2
- package/dist/documentation/v4/v4-BuildingBlocks.html +2 -2
- package/dist/documentation/v4/v4-FreestylePage.html +2 -2
- package/dist/documentation/v4/v4-ListReport.html +2 -2
- package/dist/documentation/v4/v4-ObjectPage.html +2 -2
- package/dist/index-min.js +251 -254
- package/dist/index-min.js.map +4 -4
- package/dist/schemas/v2/ApplicationV2.json +46 -12
- package/dist/schemas/v2/ListReportNewConfig.json +136 -0
- package/dist/schemas/v2/ObjectPageConfig.json +11 -5
- package/dist/schemas/v4/ApplicationV4.json +50 -28
- package/dist/schemas/v4/BuildingBlocksConfig.json +116 -52
- package/dist/schemas/v4/ListReportConfig.json +48 -0
- package/dist/schemas/v4/ObjectPageConfig.json +24 -0
- package/dist/specification/package.json +16 -16
- package/dist/specification/scripts/macros/schema.d.ts +7 -0
- package/dist/specification/scripts/macros/schema.d.ts.map +1 -1
- package/dist/specification/scripts/macros/schema.js +61 -14
- package/dist/specification/scripts/macros/schema.js.map +1 -1
- package/dist/specification/scripts/macros/types.d.ts +1 -0
- package/dist/specification/scripts/macros/types.d.ts.map +1 -1
- package/dist/specification/scripts/schema/to-json-schema.d.ts.map +1 -1
- package/dist/specification/scripts/schema/to-json-schema.js +64 -9
- package/dist/specification/scripts/schema/to-json-schema.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorators.d.ts +65 -4
- package/dist/specification/src/sync/common/decoration/decorators.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorators.js +138 -8
- package/dist/specification/src/sync/common/decoration/decorators.js.map +1 -1
- package/dist/specification/src/sync/common/distTagEvaluator.d.ts +10 -3
- package/dist/specification/src/sync/common/distTagEvaluator.d.ts.map +1 -1
- package/dist/specification/src/sync/common/distTagEvaluator.js +14 -4
- package/dist/specification/src/sync/common/distTagEvaluator.js.map +1 -1
- package/dist/specification/src/sync/common/dist_tag.json +9 -5
- package/dist/specification/src/sync/common/generate/utils.d.ts +11 -4
- package/dist/specification/src/sync/common/generate/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/generate/utils.js +32 -20
- package/dist/specification/src/sync/common/generate/utils.js.map +1 -1
- package/dist/specification/src/sync/common/i18n.json +9 -2
- package/dist/specification/src/sync/common/rules.d.ts.map +1 -1
- package/dist/specification/src/sync/common/rules.js +18 -12
- package/dist/specification/src/sync/common/rules.js.map +1 -1
- package/dist/specification/src/sync/common/utils.d.ts +64 -0
- package/dist/specification/src/sync/common/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/utils.js +147 -1
- package/dist/specification/src/sync/common/utils.js.map +1 -1
- package/dist/specification/src/sync/v2/application.d.ts +1 -0
- package/dist/specification/src/sync/v2/application.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/application.js +18 -0
- package/dist/specification/src/sync/v2/application.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPage.js +15 -4
- package/dist/specification/src/sync/v2/export/exportPage.js.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js +6 -12
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js.map +1 -1
- package/dist/specification/src/sync/v2/export/factory.d.ts +26 -0
- package/dist/specification/src/sync/v2/export/factory.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/factory.js +3 -3
- package/dist/specification/src/sync/v2/export/factory.js.map +1 -1
- package/dist/specification/src/sync/v2/export/pages/ObjectPage.d.ts +1 -0
- package/dist/specification/src/sync/v2/export/pages/ObjectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/pages/ObjectPage.js +11 -0
- package/dist/specification/src/sync/v2/export/pages/ObjectPage.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/listReport.js +46 -1
- package/dist/specification/src/sync/v2/generate/listReport.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.d.ts +1 -2
- package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/objectPage.js +63 -13
- package/dist/specification/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js +4 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/stableIdUtils.d.ts +8 -0
- package/dist/specification/src/sync/v2/generate/stableIdUtils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/stableIdUtils.js +1 -0
- package/dist/specification/src/sync/v2/generate/stableIdUtils.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/FilterBar.js +3 -2
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/FilterBar.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiTable.d.ts +78 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiTable.d.ts.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiTable.js +454 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiTable.js.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiViewSingleTable.d.ts +22 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiViewSingleTable.d.ts.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiViewSingleTable.js +124 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiViewSingleTable.js.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts +55 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.js +152 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.js.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.d.ts +3 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.js +3 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.d.ts +4 -2
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.js +61 -23
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/overviewPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/overviewPage.js +32 -13
- package/dist/specification/src/sync/v2/import/pages/overviewPage.js.map +1 -1
- package/dist/specification/src/sync/v2/utils.d.ts +23 -0
- package/dist/specification/src/sync/v2/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/utils.js +67 -0
- package/dist/specification/src/sync/v2/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Header.d.ts +3 -2
- package/dist/specification/src/sync/v4/export/controls/Header.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Header.js +14 -2
- package/dist/specification/src/sync/v4/export/controls/Header.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/HeaderAction.d.ts +2 -1
- package/dist/specification/src/sync/v4/export/controls/HeaderAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/HeaderAction.js +7 -2
- package/dist/specification/src/sync/v4/export/controls/HeaderAction.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts +4 -0
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTableColumn.js +30 -0
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTableColumn.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Table.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Table.js +20 -23
- package/dist/specification/src/sync/v4/export/controls/Table.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/TableColumn.d.ts +7 -0
- package/dist/specification/src/sync/v4/export/controls/TableColumn.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/TableColumn.js +60 -0
- package/dist/specification/src/sync/v4/export/controls/TableColumn.js.map +1 -1
- package/dist/specification/src/sync/v4/export/fpmCustomPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/fpmCustomPage.js +13 -3
- package/dist/specification/src/sync/v4/export/fpmCustomPage.js.map +1 -1
- package/dist/specification/src/sync/v4/export/pages/ListReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/pages/ListReport.js +2 -1
- package/dist/specification/src/sync/v4/export/pages/ListReport.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/ListReportUtils.d.ts +107 -0
- package/dist/specification/src/sync/v4/generate/ListReportUtils.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/generate/ListReportUtils.js +392 -0
- package/dist/specification/src/sync/v4/generate/ListReportUtils.js.map +1 -0
- package/dist/specification/src/sync/v4/generate/listReport.d.ts +107 -2
- package/dist/specification/src/sync/v4/generate/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/listReport.js +163 -91
- package/dist/specification/src/sync/v4/generate/listReport.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/objectPage.js +52 -5
- package/dist/specification/src/sync/v4/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/App.d.ts +141 -0
- package/dist/specification/src/sync/v4/sync-rules/App.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/App.js +208 -0
- package/dist/specification/src/sync/v4/sync-rules/App.js.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.d.ts +193 -0
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.js +384 -0
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.js.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.d.ts +172 -0
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js +410 -0
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/Page.d.ts +70 -0
- package/dist/specification/src/sync/v4/sync-rules/Page.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/Page.js +73 -0
- package/dist/specification/src/sync/v4/sync-rules/Page.js.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/utils.d.ts +9 -0
- package/dist/specification/src/sync/v4/sync-rules/utils.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/utils.js +43 -0
- package/dist/specification/src/sync/v4/sync-rules/utils.js.map +1 -0
- package/dist/specification/src/sync/v4/utils/utils.d.ts +14 -3
- package/dist/specification/src/sync/v4/utils/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/utils/utils.js +52 -4
- package/dist/specification/src/sync/v4/utils/utils.js.map +1 -1
- package/dist/types/src/common/types.d.ts +110 -1
- package/dist/types/src/common/types.d.ts.map +1 -1
- package/dist/types/src/common/types.js +6 -0
- package/dist/types/src/common/types.js.map +1 -1
- package/dist/types/src/common/webapp/manifest/Manifest.d.ts +1 -1
- package/dist/types/src/common/webapp/manifest/Manifest.d.ts.map +1 -1
- package/dist/types/src/v2/application.d.ts +18 -0
- package/dist/types/src/v2/application.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageHeaderSection.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageTable.d.ts +4 -4
- package/dist/types/src/v2/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/types/src/v2/controls/Table.d.ts.map +1 -1
- package/dist/types/src/v2/pages/ObjectPageConfigV2.d.ts +10 -1
- package/dist/types/src/v2/pages/ObjectPageConfigV2.d.ts.map +1 -1
- package/dist/types/src/v4/application.d.ts +6 -6
- package/dist/types/src/v4/controls/ObjectPageHeaderSection.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageSection.d.ts.map +1 -1
- package/dist/types/src/v4/webapp/manifest/ManifestSettings.d.ts +59 -0
- package/dist/types/src/v4/webapp/manifest/ManifestSettings.d.ts.map +1 -1
- package/dist/types/src/v4/webapp/manifest/ManifestSettings.js.map +1 -1
- package/package.json +16 -16
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file This file contains the classes implementing the interfaces defined in the corresponding types file.
|
|
3
|
+
* Note that the logic for dealing with the multi-table scenario is implemented in the sibling file MultiTable.ts.
|
|
4
|
+
*/
|
|
5
|
+
import type { smarttable } from 'sap/ui/comp/library';
|
|
6
|
+
import type * as Edm from '@sap-ux/vocabularies-types/Edm';
|
|
7
|
+
import type { ExtensionLogger } from '@sap/ux-specification-types';
|
|
8
|
+
import * as v2 from '@sap/ux-specification-types/src/v2/genericSchemaHandling/controls/Table';
|
|
9
|
+
import type { SapUiGenericAppPageSettings } from '@sap/ux-specification-types/src/common';
|
|
10
|
+
import type { LineItemInfo } from '../../generate/utils';
|
|
11
|
+
import type { MultiTableInfo } from './MultiTable';
|
|
12
|
+
/**
|
|
13
|
+
* Specific params applicable to the current table passed to the ProcessingRuleAdapter.
|
|
14
|
+
*
|
|
15
|
+
* @property settings - the component settings from the manifest
|
|
16
|
+
* @property tableType - the type of the table
|
|
17
|
+
* @property tableId - the control id of the smart table
|
|
18
|
+
* @property multiTableInfo - Information about multi-table scenario if applicable, undefined if quickVariantSelectionX is not defined in the manifest
|
|
19
|
+
* @property lineItemInfo - the line item this table is built on. For the instance representing the multi-table case as a whole it is the line item which is used as fallback.
|
|
20
|
+
* @property entityType - the entity type this table is built for. For the instance representing the multi-table case as a whole it is the entityType of the main entitySet.
|
|
21
|
+
*/
|
|
22
|
+
export type TableParams = {
|
|
23
|
+
settings?: SapUiGenericAppPageSettings;
|
|
24
|
+
tableType: v2.TableTypeV2Enum;
|
|
25
|
+
tableId: string;
|
|
26
|
+
multiTableInfo?: MultiTableInfo;
|
|
27
|
+
lineItemInfo?: LineItemInfo;
|
|
28
|
+
entityType: Edm.EntityType;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Returns the default table type used for tables for the given entity type (i.e. the table type which will be used by Fiori Elements if no manifest setting for the table type is available).
|
|
32
|
+
*
|
|
33
|
+
* @param entityTypeDefinition - the entity type for which the table is created
|
|
34
|
+
* @returns the default table type for the given entity type
|
|
35
|
+
*/
|
|
36
|
+
export declare function getDefaultTableType(entityTypeDefinition: Edm.EntityType): v2.TableTypeV2Enum;
|
|
37
|
+
/**
|
|
38
|
+
* Checks whether a given table type is valid. Thereby undefined and empty string are also considered as valid (they represent the default table type).
|
|
39
|
+
*
|
|
40
|
+
* @param tableType - the table type to be checked
|
|
41
|
+
* @param logger - would log an error if tableType is invalid
|
|
42
|
+
* @returns - information whether the tableType is valid
|
|
43
|
+
*/
|
|
44
|
+
export declare function checkTableType(tableType: string | undefined, logger?: ExtensionLogger): boolean;
|
|
45
|
+
export declare class Table implements v2.Table {
|
|
46
|
+
entitySet?: string;
|
|
47
|
+
annotationPath?: string;
|
|
48
|
+
showItemNavigationOnChart?: boolean;
|
|
49
|
+
views?: v2.MultiViewsDefinition;
|
|
50
|
+
quickVariantSelection?: v2.MultiViewsOnTable;
|
|
51
|
+
showTablePersonalisation?: boolean;
|
|
52
|
+
exportType?: smarttable.ExportType;
|
|
53
|
+
useExportToExcel?: boolean;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/controls/Table.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,KAAK,GAAG,MAAM,gCAAgC,CAAC;AAG3D,OAAO,KAAK,EAAE,eAAe,EAAkD,MAAM,6BAA6B,CAAC;AACnH,OAAO,KAAK,EAAE,MAAM,yEAAyE,CAAC;AAC9F,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC;AAG1F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAInD;;;;;;;;;GASG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB,QAAQ,CAAC,EAAE,2BAA2B,CAAC;IACvC,SAAS,EAAE,EAAE,CAAC,eAAe,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,UAAU,EAAE,GAAG,CAAC,UAAU,CAAC;CAE9B,CAAC;AAcF;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,oBAAoB,EAAE,GAAG,CAAC,UAAU,GAAG,EAAE,CAAC,eAAe,CAG5F;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,EAAE,MAAM,CAAC,EAAE,eAAe,GAAG,OAAO,CAe/F;AAuBD,qBAAa,KAAM,YAAW,EAAE,CAAC,KAAK;IAIlC,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,cAAc,CAAC,EAAE,MAAM,CAAC;IAIxB,yBAAyB,CAAC,EAAE,OAAO,CAAC;IAIpC,KAAK,CAAC,EAAE,EAAE,CAAC,oBAAoB,CAAC;IAIhC,qBAAqB,CAAC,EAAE,EAAE,CAAC,iBAAiB,CAAC;IAI7C,wBAAwB,CAAC,EAAE,OAAO,CAAC;IAOnC,UAAU,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC;IAInC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B"}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @file This file contains the classes implementing the interfaces defined in the corresponding types file.
|
|
4
|
+
* Note that the logic for dealing with the multi-table scenario is implemented in the sibling file MultiTable.ts.
|
|
5
|
+
*/
|
|
6
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
+
if (k2 === undefined) k2 = k;
|
|
8
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
+
}
|
|
12
|
+
Object.defineProperty(o, k2, desc);
|
|
13
|
+
}) : (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
o[k2] = m[k];
|
|
16
|
+
}));
|
|
17
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
+
}) : function(o, v) {
|
|
20
|
+
o["default"] = v;
|
|
21
|
+
});
|
|
22
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
23
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
24
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
25
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
26
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
27
|
+
};
|
|
28
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
29
|
+
var ownKeys = function(o) {
|
|
30
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
31
|
+
var ar = [];
|
|
32
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
33
|
+
return ar;
|
|
34
|
+
};
|
|
35
|
+
return ownKeys(o);
|
|
36
|
+
};
|
|
37
|
+
return function (mod) {
|
|
38
|
+
if (mod && mod.__esModule) return mod;
|
|
39
|
+
var result = {};
|
|
40
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
41
|
+
__setModuleDefault(result, mod);
|
|
42
|
+
return result;
|
|
43
|
+
};
|
|
44
|
+
})();
|
|
45
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
46
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
47
|
+
};
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.Table = void 0;
|
|
50
|
+
exports.getDefaultTableType = getDefaultTableType;
|
|
51
|
+
exports.checkTableType = checkTableType;
|
|
52
|
+
const i18next_1 = __importDefault(require("i18next"));
|
|
53
|
+
const ux_specification_types_1 = require("@sap/ux-specification-types");
|
|
54
|
+
const v2 = __importStar(require("@sap/ux-specification-types/src/v2/genericSchemaHandling/controls/Table"));
|
|
55
|
+
const decoration_1 = require("../../../common/decoration");
|
|
56
|
+
const extensionLogger_1 = require("../../../../extensionLogger");
|
|
57
|
+
const MultiTable_1 = require("./MultiTable");
|
|
58
|
+
const MultiViewSingleTable_1 = require("./MultiViewSingleTable");
|
|
59
|
+
/**
|
|
60
|
+
* This function should return the information whether the given entity type is analytical.
|
|
61
|
+
* Unfortunately this is currently impossible due to missing information provided by the annotation api.
|
|
62
|
+
* As soon as the annotation api has been enhanced accordingly, this function should be enhanced.
|
|
63
|
+
*
|
|
64
|
+
* @param entityTypeDefinition - the entity type to be checked
|
|
65
|
+
* @returns true if the entity type is analytical, false otherwise
|
|
66
|
+
*/
|
|
67
|
+
function isTypeAnalytical(entityTypeDefinition) {
|
|
68
|
+
return false; // todo: enhance
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Returns the default table type used for tables for the given entity type (i.e. the table type which will be used by Fiori Elements if no manifest setting for the table type is available).
|
|
72
|
+
*
|
|
73
|
+
* @param entityTypeDefinition - the entity type for which the table is created
|
|
74
|
+
* @returns the default table type for the given entity type
|
|
75
|
+
*/
|
|
76
|
+
function getDefaultTableType(entityTypeDefinition) {
|
|
77
|
+
const isAnalytical = isTypeAnalytical(entityTypeDefinition);
|
|
78
|
+
return isAnalytical ? v2.TableTypeV2Enum.AnalyticalTable : v2.TableTypeV2Enum.ResponsiveTable;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Checks whether a given table type is valid. Thereby undefined and empty string are also considered as valid (they represent the default table type).
|
|
82
|
+
*
|
|
83
|
+
* @param tableType - the table type to be checked
|
|
84
|
+
* @param logger - would log an error if tableType is invalid
|
|
85
|
+
* @returns - information whether the tableType is valid
|
|
86
|
+
*/
|
|
87
|
+
function checkTableType(tableType, logger) {
|
|
88
|
+
if (tableType === undefined ||
|
|
89
|
+
tableType === '' ||
|
|
90
|
+
Object.values(v2.TableTypeV2Enum).includes(tableType)) {
|
|
91
|
+
return true;
|
|
92
|
+
}
|
|
93
|
+
(0, extensionLogger_1.log)(logger, {
|
|
94
|
+
severity: "error" /* LogSeverity.Error */,
|
|
95
|
+
message: i18next_1.default.t('ILLEGALTABLETYPE', {
|
|
96
|
+
property: tableType
|
|
97
|
+
})
|
|
98
|
+
});
|
|
99
|
+
return false;
|
|
100
|
+
}
|
|
101
|
+
/** SyncRule which should be used for all properties with artifact type 'FlexChange' belonging to the SmartTable. */
|
|
102
|
+
const syncRuleForFlexSmartTable = {
|
|
103
|
+
flex: {
|
|
104
|
+
controlType: () => ux_specification_types_1.ControlType.SmartTable
|
|
105
|
+
},
|
|
106
|
+
processingRuleAdapter: function (processingRule, schemaHandlingParams) {
|
|
107
|
+
const tableParams = schemaHandlingParams.specificParams;
|
|
108
|
+
const isPropertyValid = !((tableParams.multiTableInfo && !tableParams.multiTableInfo.variantInfo) ||
|
|
109
|
+
tableParams.multiTableInfo?.variantInfo.isChart); // the property is invalid on top-level of a multi-table scenario and on a view displaying a chart
|
|
110
|
+
if (isPropertyValid) {
|
|
111
|
+
processingRule.controlId = tableParams.multiTableInfo
|
|
112
|
+
? tableParams.multiTableInfo.variantInfo.smartControlId
|
|
113
|
+
: tableParams.tableId;
|
|
114
|
+
}
|
|
115
|
+
else {
|
|
116
|
+
delete processingRule.element;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
class Table {
|
|
121
|
+
} // Table
|
|
122
|
+
exports.Table = Table;
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, decoration_1.syncRule)((0, MultiTable_1.getSyncRuleForMultiTableManifestProperty)('entitySet')),
|
|
125
|
+
(0, decoration_1.descriptionSrcURL)('https://ui5.sap.com/sdk/#/topic/b6b59e4a4c3548cf83ff9c3b955d3ba3')
|
|
126
|
+
], Table.prototype, "entitySet", void 0);
|
|
127
|
+
__decorate([
|
|
128
|
+
(0, decoration_1.syncRule)((0, MultiTable_1.getSyncRuleForMultiTableManifestProperty)('annotationPath')),
|
|
129
|
+
(0, decoration_1.descriptionSrcURL)('https://ui5.sap.com/sdk/#/topic/37aeed74e17a42caa2cba3123f0c15fc')
|
|
130
|
+
], Table.prototype, "annotationPath", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, decoration_1.syncRule)((0, MultiTable_1.getSyncRuleForMultiTableManifestProperty)('showItemNavigationOnChart'))
|
|
133
|
+
], Table.prototype, "showItemNavigationOnChart", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, decoration_1.syncRule)((0, MultiTable_1.getSyncRuleForMultiTableManifestProperty)('views'))
|
|
136
|
+
], Table.prototype, "views", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, decoration_1.syncRule)((0, MultiViewSingleTable_1.getSyncRuleForQuickVariantSelection)())
|
|
139
|
+
], Table.prototype, "quickVariantSelection", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, decoration_1.syncRule)(syncRuleForFlexSmartTable)
|
|
142
|
+
], Table.prototype, "showTablePersonalisation", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, decoration_1.syncRule)(syncRuleForFlexSmartTable),
|
|
145
|
+
(0, decoration_1.validity)({
|
|
146
|
+
since: '1.50.0'
|
|
147
|
+
})
|
|
148
|
+
], Table.prototype, "exportType", void 0);
|
|
149
|
+
__decorate([
|
|
150
|
+
(0, decoration_1.syncRule)(syncRuleForFlexSmartTable)
|
|
151
|
+
], Table.prototype, "useExportToExcel", void 0);
|
|
152
|
+
//# sourceMappingURL=Table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Table.js","sourceRoot":"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EAAC,yBAAyB,CAAC;+CACT"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/controls/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/controls/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,SAAS,CAAC"}
|
|
@@ -21,4 +21,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
21
21
|
__exportStar(require("./Action"), exports);
|
|
22
22
|
__exportStar(require("./FilterBar"), exports);
|
|
23
23
|
__exportStar(require("./ListHeader"), exports);
|
|
24
|
+
__exportStar(require("./MultiTable"), exports);
|
|
25
|
+
__exportStar(require("./MultiViewSingleTable"), exports);
|
|
26
|
+
__exportStar(require("./Table"), exports);
|
|
24
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/controls/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,2CAAyB;AACzB,8CAA4B;AAC5B,+CAA6B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/controls/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,2CAAyB;AACzB,8CAA4B;AAC5B,+CAA6B;AAC7B,+CAA6B;AAC7B,yDAAuC;AACvC,0CAAwB"}
|
|
@@ -5,11 +5,12 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type * as Edm from '@sap-ux/vocabularies-types/Edm';
|
|
7
7
|
import type { EntityTypeAnnotations_UI } from '@sap-ux/vocabularies-types/vocabularies/UI_Edm';
|
|
8
|
-
import { TableTypeV2 } from '@sap/ux-specification-types/src/v2/controls/Table';
|
|
9
8
|
import type { SapUiGenericAppPageSettings } from '@sap/ux-specification-types';
|
|
10
9
|
import type { ListReportNewConfigV2 } from '@sap/ux-specification-types/src/v2/genericSchemaHandling/pages/ListReportNewConfigV2';
|
|
10
|
+
import { TableTypeV2Enum } from '@sap/ux-specification-types/src/v2/genericSchemaHandling/controls/Table';
|
|
11
11
|
import { ListHeader } from '../controls/ListHeader';
|
|
12
12
|
import { ListReportFilterBar } from '../controls/FilterBar';
|
|
13
|
+
import { Table } from '../controls/Table';
|
|
13
14
|
import type { Toolbar } from '../controls/Action';
|
|
14
15
|
import type { LineItemInfo } from '../../generate/utils';
|
|
15
16
|
/**
|
|
@@ -27,13 +28,14 @@ export type LRSchemaHandlingParams = {
|
|
|
27
28
|
settings?: SapUiGenericAppPageSettings;
|
|
28
29
|
entityType: Edm.EntityType;
|
|
29
30
|
uIAnnotations: EntityTypeAnnotations_UI;
|
|
30
|
-
tableType:
|
|
31
|
+
tableType: TableTypeV2Enum;
|
|
31
32
|
lineItemInfo?: LineItemInfo;
|
|
32
33
|
};
|
|
33
34
|
export declare class ListReportNew implements ListReportNewConfigV2 {
|
|
34
35
|
fitContent?: boolean;
|
|
35
36
|
header?: ListHeader;
|
|
36
37
|
filterBar?: ListReportFilterBar;
|
|
38
|
+
table?: Table;
|
|
37
39
|
footer?: Toolbar;
|
|
38
40
|
}
|
|
39
41
|
//# sourceMappingURL=ListReportNew.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListReportNew.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/pages/ListReportNew.ts"],"names":[],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AK,CAAC,EAAE,KAAK,CAAC;IAcd,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -10,38 +10,24 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
10
10
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
11
11
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
12
12
|
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
13
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
17
|
exports.ListReportNew = void 0;
|
|
15
|
-
const Table_1 = require("@sap/ux-specification-types/src/v2/controls/Table");
|
|
16
18
|
const ux_specification_types_1 = require("@sap/ux-specification-types");
|
|
17
19
|
const decorators_1 = require("../../../common/decoration/decorators");
|
|
18
20
|
const v2_1 = require("@sap/ux-specification-types/src/v2");
|
|
21
|
+
const Table_1 = require("@sap/ux-specification-types/src/v2/genericSchemaHandling/controls/Table");
|
|
22
|
+
const extensionLogger_1 = require("../../../../extensionLogger");
|
|
23
|
+
const i18next_1 = __importDefault(require("i18next"));
|
|
19
24
|
const utils_1 = require("../../utils");
|
|
20
25
|
const ListHeader_1 = require("../controls/ListHeader");
|
|
21
26
|
const FilterBar_1 = require("../controls/FilterBar");
|
|
27
|
+
const Table_2 = require("../controls/Table");
|
|
22
28
|
const Action_1 = require("../controls/Action");
|
|
29
|
+
const manifestPropertyUtils_1 = require("../../generate/manifestPropertyUtils");
|
|
23
30
|
const utils_2 = require("../../generate/utils");
|
|
24
|
-
/**
|
|
25
|
-
* This function should return the information whether the given entity type is analytical.
|
|
26
|
-
* Unfortunately this is currently impossible due to missing information provided by the annotation api.
|
|
27
|
-
* As soon as the annotation api has been enhanced accordingly, this function should be enhanced.
|
|
28
|
-
*
|
|
29
|
-
* @param entityTypeDefinition - the entity type to be checked
|
|
30
|
-
* @returns true if the entity type is analytical, false otherwise
|
|
31
|
-
*/
|
|
32
|
-
function isTypeAnalytical(entityTypeDefinition) {
|
|
33
|
-
return false; // todo: enhance
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Returns the default table type used for tables for the given entity type (i.e. the table type which will be used by Fiori Elements if no manifest setting for the table type is available).
|
|
37
|
-
*
|
|
38
|
-
* @param entityTypeDefinition - the entity type for which the table is created
|
|
39
|
-
* @returns the default table type for the given entity type
|
|
40
|
-
*/
|
|
41
|
-
function getDefaultTableType(entityTypeDefinition) {
|
|
42
|
-
const isAnalytical = isTypeAnalytical(entityTypeDefinition);
|
|
43
|
-
return isAnalytical ? Table_1.TableTypeV2.AnalyticalTable : Table_1.TableTypeV2.ResponsiveTable;
|
|
44
|
-
}
|
|
45
31
|
// ListReportNew
|
|
46
32
|
let ListReportNew = class ListReportNew {
|
|
47
33
|
};
|
|
@@ -82,6 +68,58 @@ __decorate([
|
|
|
82
68
|
}
|
|
83
69
|
})
|
|
84
70
|
], ListReportNew.prototype, "filterBar", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, decorators_1.syncRule)({
|
|
73
|
+
processingRuleAdapter(processingRule, schemaHandlingParams, generateParameters) {
|
|
74
|
+
const lRSchemaHandlingParams = schemaHandlingParams.specificParams;
|
|
75
|
+
processingRule.element[ux_specification_types_1.SchemaTag.icon] = 'Table'; // do not use member of enum UiIcons in @sap-ux/ui-components to avoid unwanted dependency
|
|
76
|
+
processingRule.element[ux_specification_types_1.SchemaTag.propertyIndex] = 2;
|
|
77
|
+
const lrSettings = lRSchemaHandlingParams.settings;
|
|
78
|
+
const tableType = lRSchemaHandlingParams.tableType;
|
|
79
|
+
const tableParams = {
|
|
80
|
+
settings: lrSettings,
|
|
81
|
+
tableType,
|
|
82
|
+
tableId: 'listReport',
|
|
83
|
+
lineItemInfo: lRSchemaHandlingParams.lineItemInfo,
|
|
84
|
+
entityType: lRSchemaHandlingParams.entityType
|
|
85
|
+
};
|
|
86
|
+
// Check whether we are in a multi-view multi-table scenario.
|
|
87
|
+
const quickVariantSelectionX = !(0, manifestPropertyUtils_1.hasPropertyTypeError)(lrSettings, 'quickVariantSelectionX', generateParameters.logger, 'object') &&
|
|
88
|
+
lrSettings?.quickVariantSelectionX;
|
|
89
|
+
let suffix;
|
|
90
|
+
if (quickVariantSelectionX) {
|
|
91
|
+
if ((0, utils_1.isEmpty)(quickVariantSelectionX['variants'])) {
|
|
92
|
+
(0, extensionLogger_1.log)(generateParameters.logger, {
|
|
93
|
+
severity: "warning" /* LogSeverity.Warning */,
|
|
94
|
+
message: i18next_1.default.t('QUICKVARIANTSELECTIONXNOVARIANTS')
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
suffix = 'Top';
|
|
99
|
+
if (lrSettings.quickVariantSelection) {
|
|
100
|
+
// Do not use quickVariantSelection and quickVariantSelectionX together
|
|
101
|
+
(0, extensionLogger_1.log)(generateParameters.logger, {
|
|
102
|
+
severity: "error" /* LogSeverity.Error */,
|
|
103
|
+
message: i18next_1.default.t('QUICKVARIANTSELECTIONDUPLICATE')
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
// Preliminary setting of multiTableInfo. Will be enhanced later.
|
|
107
|
+
tableParams.multiTableInfo = {
|
|
108
|
+
usedTableTypes: {
|
|
109
|
+
nonResponsive: tableType === Table_1.TableTypeV2Enum.ResponsiveTable ? 0 : 1,
|
|
110
|
+
responsive: tableType === Table_1.TableTypeV2Enum.ResponsiveTable ? 1 : 0
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
processingRule.referenceAdaptation = {
|
|
116
|
+
suffix,
|
|
117
|
+
specificParams: tableParams,
|
|
118
|
+
syncRuleProvider: Table_2.Table
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
})
|
|
122
|
+
], ListReportNew.prototype, "table", void 0);
|
|
85
123
|
__decorate([
|
|
86
124
|
(0, decorators_1.syncRule)({
|
|
87
125
|
processingRuleAdapter(processingRule, schemaHandlingParams) {
|
|
@@ -103,7 +141,7 @@ exports.ListReportNew = ListReportNew = __decorate([
|
|
|
103
141
|
const { parent: pageSettings } = (0, utils_1.getManifestPropertyByPath)(generateParameters.manifest, manifestPathToPageSettings);
|
|
104
142
|
const settings = pageSettings;
|
|
105
143
|
const tableSettings = settings?.tableSettings;
|
|
106
|
-
const tableType = tableSettings?.['type'] || settings?.tableType || getDefaultTableType(entityType);
|
|
144
|
+
const tableType = tableSettings?.['type'] || settings?.tableType || (0, Table_2.getDefaultTableType)(entityType);
|
|
107
145
|
const lineItemAnnotation = (0, utils_2.getLineItemAnnotation)(uIAnnotations, settings, generateParameters.logger);
|
|
108
146
|
let lineItemInfo;
|
|
109
147
|
if (lineItemAnnotation) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListReportNew.js","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/pages/ListReportNew.ts"],"names":[],"mappings":";AAAA;;;;GAIG
|
|
1
|
+
{"version":3,"file":"ListReportNew.js","sourceRoot":"","sources":["../../../../../../../src/sync/v2/genericSchemaHandling/pages/ListReportNew.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;AAMH,wEAAmG;AAQnG,sEAAwF;AACxF,2DAAmH;AACnH,mGAA0G;AAC1G,iEAAkD;AAClD,sDAA8B;AAC9B,uCAAgG;AAChG,uDAAoD;AACpD,qDAA4D;AAC5D,6CAA+D;AAG/D,+CAAmE;AACnE,gFAA4E;AAC5E,gDAK8B;AAsB9B,gBAAgB;AAiDT,IAAM,aAAa,GAAnB,MAAM,aAAa;CAkHzB,CAAA;AAlHY,sCAAa;AAUtB;IARC,IAAA,qBAAQ,EAAC;QACN,IAAI,EAAE;YACF,WAAW,EAAE,GAAgB,EAAE,CAAC,oCAAW,CAAC,WAAW;SAC1D;QACD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,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;YACrG,IAAI,YAA0B,CAAC;YAC/B,IAAI,kBAAkB,EAAE,CAAC;gBACrB,MAAM,YAAY,GACd,kBAAkB,CAAC,IAAI,GAAG,CAAC,kBAAkB,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,kBAAkB,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;gBACvG,MAAM,QAAQ,GAAG,YAAY,CAAC,OAAO,CAAC,wCAAe,EAAE,EAAE,CAAC,CAAC;gBAC3D,MAAM,kBAAkB,GAAG,aAAa,CAAC,QAAQ,CAA6B,CAAC;gBAC/E,YAAY,GAAG,IAAA,uBAAe,EAC1B,YAAY,EACZ,kBAAkB,EAClB,UAAU,EACV,SAAS,EACT,kBAAkB,EAClB,KAAK,CACR,CAAC;YACN,CAAC;YACD,MAAM,cAAc,GAA2B;gBAC3C,QAAQ;gBACR,UAAU;gBACV,aAAa;gBACb,SAAS;gBACT,YAAY;aACf,CAAC;YACF,uEAAuE;YACvE,cAAc,CAAC,mBAAmB,GAAG;gBACjC,cAAc;aACjB,CAAC;QACN,CAAC;KACJ,CAAC;GACW,aAAa,CAkHzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overviewPage.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v2/import/pages/overviewPage.ts"],"names":[],"mappings":"AAOA,OAAO,EAAO,KAAK,8BAA8B,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"overviewPage.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v2/import/pages/overviewPage.ts"],"names":[],"mappings":"AAOA,OAAO,EAAO,KAAK,8BAA8B,EAAE,MAAM,aAAa,CAAC;AA0NvE;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,gBAAgB,EAAE,8BAA8B,GAAG,MAAM,CASjG"}
|
|
@@ -39,19 +39,24 @@ function transferSettingsOfRef(importParameters, definitionArray, configPart, ke
|
|
|
39
39
|
* @param {ImportOverviewPageV2Parameters} importParameters - structure of import parameters
|
|
40
40
|
* @param {MetadataInstanceInterface} factory - Metadata factory
|
|
41
41
|
* @param {string[]} pathHierarchy - Parts of the path or breadcrumbs
|
|
42
|
+
* @param {v2.CardTemplateType} cardType - Target card type to process
|
|
42
43
|
*/
|
|
43
|
-
function processPropertiesOfObject(configPart, key, schemaProperties, importParameters, factory, pathHierarchy) {
|
|
44
|
+
function processPropertiesOfObject(configPart, key, schemaProperties, importParameters, factory, pathHierarchy, cardType) {
|
|
45
|
+
const isConfigPropertyDefined = key in configPart;
|
|
44
46
|
if (schemaProperties[key].$ref) {
|
|
45
47
|
configPart[key] = configPart[key] ?? {};
|
|
46
48
|
const definitionArray = schemaProperties[key].$ref.split(common_1.DEFINITION_LINK_PREFIX);
|
|
47
49
|
transferSettingsOfRef(importParameters, definitionArray, configPart, key, factory, pathHierarchy);
|
|
48
50
|
}
|
|
49
|
-
else if (key === 'settings' && schemaProperties[key].anyOf &&
|
|
51
|
+
else if (key === 'settings' && schemaProperties[key].anyOf && cardType in ux_specification_types_1.v2.cardTemplateSettingsMap) {
|
|
50
52
|
configPart[key] = configPart[key] ?? {};
|
|
51
|
-
const ref = `${common_1.DEFINITION_LINK_PREFIX}${ux_specification_types_1.v2.cardTemplateSettingsMap[
|
|
53
|
+
const ref = `${common_1.DEFINITION_LINK_PREFIX}${ux_specification_types_1.v2.cardTemplateSettingsMap[cardType]}`;
|
|
52
54
|
const definitionArray = ref.split(common_1.DEFINITION_LINK_PREFIX);
|
|
53
55
|
transferSettingsOfRef(importParameters, definitionArray, configPart, key, factory, pathHierarchy);
|
|
54
56
|
}
|
|
57
|
+
if (!isConfigPropertyDefined && !Object.keys(configPart[key]).length) {
|
|
58
|
+
delete configPart[key];
|
|
59
|
+
}
|
|
55
60
|
}
|
|
56
61
|
/**
|
|
57
62
|
* Imports a single sap.ovp property into the config.
|
|
@@ -62,8 +67,9 @@ function processPropertiesOfObject(configPart, key, schemaProperties, importPara
|
|
|
62
67
|
* @param importParameters - structure of import parameters
|
|
63
68
|
* @param schemaProperties - current properties' list of a definition from app schema
|
|
64
69
|
* @param factory - Metadata factory
|
|
70
|
+
* @param cardType - Target card type to process
|
|
65
71
|
*/
|
|
66
|
-
function processOvpProperty(configPart, key, pathHierarchy, importParameters, schemaProperties, factory) {
|
|
72
|
+
function processOvpProperty(configPart, key, pathHierarchy, importParameters, schemaProperties, factory, cardType) {
|
|
67
73
|
const syncRule = (0, decorators_1.getReflectMetadata)(configPart, key);
|
|
68
74
|
if (syncRule?.manifest) {
|
|
69
75
|
const path = syncRule.manifest.path([...pathHierarchy, key]);
|
|
@@ -84,7 +90,7 @@ function processOvpProperty(configPart, key, pathHierarchy, importParameters, sc
|
|
|
84
90
|
}
|
|
85
91
|
}
|
|
86
92
|
else if (key !== 'cards' && key !== '$schema' && typeof schemaProperties[key] === 'object') {
|
|
87
|
-
processPropertiesOfObject(configPart, key, schemaProperties, importParameters, factory, pathHierarchy);
|
|
93
|
+
processPropertiesOfObject(configPart, key, schemaProperties, importParameters, factory, pathHierarchy, cardType);
|
|
88
94
|
}
|
|
89
95
|
}
|
|
90
96
|
/**
|
|
@@ -95,10 +101,11 @@ function processOvpProperty(configPart, key, pathHierarchy, importParameters, sc
|
|
|
95
101
|
* @param {ImportOverviewPageV2Parameters} importParameters - structure of import parameters
|
|
96
102
|
* @param {Definition} schemaProperties - current properties' list of a definition from app schema
|
|
97
103
|
* @param {string[]} pathHierarchy - Parts of the path or breadcrumbs
|
|
104
|
+
* @param {v2.CardTemplateType} cardType - Target card type to process
|
|
98
105
|
*/
|
|
99
|
-
function processOvpProperties(factory, configPart, importParameters, schemaProperties, pathHierarchy) {
|
|
106
|
+
function processOvpProperties(factory, configPart, importParameters, schemaProperties, pathHierarchy, cardType) {
|
|
100
107
|
for (const key in schemaProperties) {
|
|
101
|
-
processOvpProperty(configPart, key, pathHierarchy, importParameters, schemaProperties, factory);
|
|
108
|
+
processOvpProperty(configPart, key, pathHierarchy, importParameters, schemaProperties, factory, cardType);
|
|
102
109
|
}
|
|
103
110
|
}
|
|
104
111
|
/**
|
|
@@ -114,15 +121,27 @@ function addSettings(pageConfig, importParameters, factory) {
|
|
|
114
121
|
Object.keys(importParameters.manifest[ux_specification_types_1.ManifestSection.ovp].cards).forEach((cardId) => {
|
|
115
122
|
const cardTemplate = importParameters.manifest[ux_specification_types_1.ManifestSection.ovp]['cards'][cardId].template;
|
|
116
123
|
const cardType = ux_specification_types_1.v2.cardTemplateTypeMap[cardTemplate] ?? 'CustomCard';
|
|
117
|
-
const cardTypes = [
|
|
124
|
+
const cardTypes = [];
|
|
125
|
+
for (const template in ux_specification_types_1.v2.cardTemplateTypeMap) {
|
|
126
|
+
if (ux_specification_types_1.v2.cardTemplateTypeMap[template] !== cardType) {
|
|
127
|
+
cardTypes.push({
|
|
128
|
+
template,
|
|
129
|
+
cardType: ux_specification_types_1.v2.cardTemplateTypeMap[template]
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
}
|
|
118
133
|
// Ensure cardTemplate is moved to the end
|
|
119
|
-
cardTypes.push(
|
|
120
|
-
|
|
134
|
+
cardTypes.push({
|
|
135
|
+
template: cardTemplate,
|
|
136
|
+
cardType
|
|
137
|
+
});
|
|
138
|
+
for (const variantCard of cardTypes) {
|
|
121
139
|
//instantiate Card:
|
|
122
|
-
pageConfig.cards[cardId] = (0, export_1.assignReflectMetadataRules)(factory,
|
|
123
|
-
pageConfig.cards = (0, export_1.assignReflectMetadataRules)(factory,
|
|
140
|
+
pageConfig.cards[cardId] = (0, export_1.assignReflectMetadataRules)(factory, variantCard.cardType, pageConfig.cards[cardId] ?? {}, 'CustomCard');
|
|
141
|
+
pageConfig.cards = (0, export_1.assignReflectMetadataRules)(factory, variantCard.cardType, pageConfig.cards, 'CustomCard');
|
|
124
142
|
//transfer settings:
|
|
125
|
-
processOvpProperties(factory, pageConfig.cards[cardId], importParameters, importParameters.jsonSchema.definitions[
|
|
143
|
+
processOvpProperties(factory, pageConfig.cards[cardId], importParameters, importParameters.jsonSchema.definitions[variantCard.cardType]
|
|
144
|
+
.properties, ['cards', cardId], variantCard.template);
|
|
126
145
|
}
|
|
127
146
|
});
|
|
128
147
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overviewPage.js","sourceRoot":"","sources":["../../../../../../../src/sync/v2/import/pages/overviewPage.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"overviewPage.js","sourceRoot":"","sources":["../../../../../../../src/sync/v2/import/pages/overviewPage.ts"],"names":[],"mappings":";;;;;AAuOA,4DASC;AAhPD,wEAA2F;AAC3F,sEAA2E;AAC3E,oDAAsE;AACtE,kDAA4E;AAE5E,gDAAiE;AACjE,4CAA0F;AAC1F,mCAAuE;AAEvE,sDAA8B;AAE9B;;;;;;;;;GASG;AACH,SAAS,qBAAqB,CAC1B,gBAAgD,EAChD,eAAoB,EACpB,UAAkC,EAClC,GAAW,EACX,OAAkC,EAClC,aAAuB;IAEvB,MAAM,oBAAoB,GAAG,eAAe,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IACzE,MAAM,oBAAoB,GAAI,gBAAgB,CAAC,UAAyB,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;IAC3G,UAAU,CAAC,GAAG,CAAC,GAAG,IAAA,mCAA0B,EAAC,OAAO,EAAE,GAAG,EAAE,UAAU,CAAC,GAAG,CAAC,EAAE,oBAAoB,CAAC,CAAC;IAClG,oBAAoB;IACpB,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACxB,oBAAoB,CAChB,OAAO,EACP,UAAU,CAAC,GAAG,CAAC,EACf,gBAAgB,EACf,oBAAmC,CAAC,UAAU,EAC/C,aAAa,CAChB,CAAC;AACN,CAAC;AAED;;;;;;;;;;GAUG;AACH,SAAS,yBAAyB,CAC9B,UAAkC,EAClC,GAAW,EACX,gBAA4B,EAC5B,gBA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AK,MAAM,WAAW,IAAI,SAAS,EAAE,CAAC;YAClC,mBAAmB;YACnB,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,IAAA,mCAA0B,EACjD,OAAO,EACP,WAAW,CAAC,QAAQ,EACpB,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,EAC9B,YAAY,CACA,CAAC;YAEjB,UAAU,CAAC,KAAK,GAAG,IAAA,mCAA0B,EACzC,OAAO,EACP,WAAW,CAAC,QAAQ,EACpB,UAAU,CAAC,KAAK,EAChB,YAAY,CAGf,CAAC;YAEF,oBAAoB;YACpB,oBAAoB,CAChB,OAAO,EACP,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,EACxB,gBAAgB,EACd,gBAAgB,CAAC,UAAyB,CAAC,WAAW,CAAC,WAAW,CAAC,QAAQ,CAAgB;iBACxF,UAAU,EACf,CAAC,OAAO,EAAE,MAAM,CAAC,EACjB,WAAW,CAAC,QAA+B,CAC9C,CAAC;QACN,CAAC;IACL,CAAC,CAAC,CAAC;AACP,CAAC;AAED;;;;;GAKG;AACH,SAAgB,wBAAwB,CAAC,gBAAgD;IACrF,MAAM,OAAO,GAAG,IAAI,mCAAO,EAAE,CAAC;IAC9B,kBAAkB;IAClB,MAAM,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC,mCAAU,CAAC,YAAY,CAAC,CAAC;IAEnE,IAAI,gBAAgB,CAAC,UAAU,EAAE,CAAC;QAC9B,WAAW,CAAC,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACnD,CAAC;IACD,OAAO,MAAM,CAAC;AAClB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { AccessorPath, ConversionExitProvider, ExtensionLogger, FileData, Manifest, ManifestSettingsType } from '@sap/ux-specification-types';
|
|
2
2
|
import type { Definition, DefinitionOrBoolean } from 'typescript-json-schema';
|
|
3
|
+
import type { ManifestPathParams } from '../common';
|
|
3
4
|
/**
|
|
4
5
|
* Returns the manifest path to (a section within) the settings for a page.
|
|
5
6
|
*
|
|
@@ -55,4 +56,26 @@ export declare function addConversionExit(element: Definition, conversionExit: s
|
|
|
55
56
|
* @returns the converted value
|
|
56
57
|
*/
|
|
57
58
|
export declare function executeConversionExit(isDirectionAppToConfig: boolean, conversionExitProvider: ConversionExitProvider | undefined, propertyDefinition: Definition, value: unknown, fragments?: FileData[], oldValue?: unknown, logger?: ExtensionLogger): unknown;
|
|
59
|
+
/**
|
|
60
|
+
* Returns whether an object should be considered as an empty object.
|
|
61
|
+
*
|
|
62
|
+
* @param obj - the object to be checked
|
|
63
|
+
* @returns whether the object should be considered empty
|
|
64
|
+
*/
|
|
65
|
+
export declare function isEmpty(obj: object | null | undefined): boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Adds 'manifestPath' to each property in a definition based on metadata sync rules.
|
|
68
|
+
*
|
|
69
|
+
* @param appSchema - Full schema.
|
|
70
|
+
* @param definitionName - The name of the definition/class whose properties are being processed.
|
|
71
|
+
* If `undefined`, the function attempts to resolve the definition name from the `$ref` property of the provided definition.
|
|
72
|
+
* @param definition - The definition object containing property schemas.
|
|
73
|
+
* @param pathParams - Additional context required to compute manifest paths.
|
|
74
|
+
* @param control - Control containing sync rules to detect 'manifestPath'
|
|
75
|
+
*/
|
|
76
|
+
export declare function addManifestPathsToProperties(appSchema: Definition, definitionName: string | undefined, definition: Definition, pathParams: ManifestPathParams, control?: {
|
|
77
|
+
[key: string]: {
|
|
78
|
+
prototype: object;
|
|
79
|
+
};
|
|
80
|
+
}): void;
|
|
58
81
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/sync/v2/utils.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACR,YAAY,EACZ,sBAAsB,EACtB,eAAe,EACf,QAAQ,EAER,QAAQ,EACR,oBAAoB,EACvB,MAAM,6BAA6B,CAAC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