@sap/ux-specification 1.84.130 → 1.84.131
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 +453 -413
- 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-ListReport.html +2 -2
- package/dist/documentation/v4/v4-ObjectPage.html +2 -2
- package/dist/index-min.js +175 -172
- package/dist/index-min.js.map +4 -4
- package/dist/schemas/v2/AnalyticalListPageConfig.json +3 -3
- package/dist/schemas/v2/ListReportConfig.json +5 -5
- package/dist/schemas/v2/ListReportNewConfig.json +1 -1
- package/dist/schemas/v2/ObjectPageConfig.json +5 -5
- package/dist/specification/package.json +12 -9
- package/dist/specification/scripts/extractDocu.js +18 -1
- package/dist/specification/scripts/extractDocu.js.map +1 -1
- package/dist/specification/scripts/generate-validity-report.d.ts +15 -0
- package/dist/specification/scripts/generate-validity-report.d.ts.map +1 -0
- package/dist/specification/scripts/generate-validity-report.js +320 -0
- package/dist/specification/scripts/generate-validity-report.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/decorator-paths.d.ts +501 -0
- package/dist/specification/src/sync/common/decoration/decorator-paths.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/decorator-paths.js +497 -0
- package/dist/specification/src/sync/common/decoration/decorator-paths.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/decorators.d.ts +149 -23
- package/dist/specification/src/sync/common/decoration/decorators.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorators.js +369 -74
- package/dist/specification/src/sync/common/decoration/decorators.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/index.d.ts +1 -0
- package/dist/specification/src/sync/common/decoration/index.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/index.js +1 -0
- package/dist/specification/src/sync/common/decoration/index.js.map +1 -1
- package/dist/specification/src/sync/common/dist_tag.json +8 -3
- package/dist/specification/src/sync/common/i18n.json +2 -1
- package/dist/specification/src/sync/common/importProject.d.ts.map +1 -1
- package/dist/specification/src/sync/common/importProject.js +2 -0
- package/dist/specification/src/sync/common/importProject.js.map +1 -1
- package/dist/specification/src/sync/common/utils.d.ts +22 -6
- package/dist/specification/src/sync/common/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/utils.js +122 -18
- package/dist/specification/src/sync/common/utils.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/analyticalListReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/analyticalListReport.js +2 -0
- package/dist/specification/src/sync/v2/generate/analyticalListReport.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 +3 -1
- package/dist/specification/src/sync/v2/generate/listReport.js.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 +2 -0
- package/dist/specification/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/overviewPage.d.ts +1 -8
- package/dist/specification/src/sync/v2/generate/overviewPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/overviewPage.js +30 -1
- package/dist/specification/src/sync/v2/generate/overviewPage.js.map +1 -1
- package/dist/specification/src/sync/v2/import/app/appProvider.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/app/appProvider.js +2 -0
- package/dist/specification/src/sync/v2/import/app/appProvider.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/analyticalListPage.d.ts +2 -1
- package/dist/specification/src/sync/v2/import/pages/analyticalListPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/analyticalListPage.js +5 -0
- package/dist/specification/src/sync/v2/import/pages/analyticalListPage.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/listReport.d.ts +2 -1
- package/dist/specification/src/sync/v2/import/pages/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/listReport.js +5 -0
- package/dist/specification/src/sync/v2/import/pages/listReport.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/objectPage.js +2 -1
- package/dist/specification/src/sync/v2/import/pages/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v2/import/utils.d.ts +28 -1
- package/dist/specification/src/sync/v2/import/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/utils.js +37 -0
- package/dist/specification/src/sync/v2/import/utils.js.map +1 -1
- package/dist/specification/src/sync/v2/utils.d.ts +12 -2
- package/dist/specification/src/sync/v2/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/utils.js +19 -2
- package/dist/specification/src/sync/v2/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/application.d.ts +39 -4
- package/dist/specification/src/sync/v4/application.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/application.js +67 -6
- package/dist/specification/src/sync/v4/application.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/FilterBar.d.ts +2 -1
- package/dist/specification/src/sync/v4/export/controls/FilterBar.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/FilterBar.js +2 -1
- package/dist/specification/src/sync/v4/export/controls/FilterBar.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts +2 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.js +2 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Table.d.ts +19 -6
- package/dist/specification/src/sync/v4/export/controls/Table.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Table.js +24 -8
- package/dist/specification/src/sync/v4/export/controls/Table.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/TableColumn.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/TableColumn.js +2 -2
- package/dist/specification/src/sync/v4/export/controls/TableColumn.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.d.ts +2 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.js +2 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.js.map +1 -1
- package/dist/specification/src/sync/v4/export/export.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/export.js +28 -5
- package/dist/specification/src/sync/v4/export/export.js.map +1 -1
- package/dist/specification/src/sync/v4/export/pages/ListReport.js +1 -1
- package/dist/specification/src/sync/v4/export/pages/ListReport.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/index.d.ts +1 -1
- package/dist/specification/src/sync/v4/generate/index.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/index.js +1 -1
- package/dist/specification/src/sync/v4/generate/index.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.d.ts +72 -0
- package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.js +299 -0
- package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.js.map +1 -0
- package/dist/specification/src/sync/v4/generate/{listReport.d.ts → list-report/listReport.d.ts} +24 -14
- package/dist/specification/src/sync/v4/generate/list-report/listReport.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/generate/{listReport.js → list-report/listReport.js} +113 -128
- package/dist/specification/src/sync/v4/generate/list-report/listReport.js.map +1 -0
- package/dist/specification/src/sync/v4/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/objectPage.js +99 -16
- package/dist/specification/src/sync/v4/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/listReport.js +15 -9
- package/dist/specification/src/sync/v4/import/pages/listReport.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/App.d.ts +9 -7
- package/dist/specification/src/sync/v4/sync-rules/App.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/App.js +4 -8
- package/dist/specification/src/sync/v4/sync-rules/App.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.d.ts +2 -9
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.js +2 -11
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.d.ts +177 -46
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js +498 -152
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/Page.d.ts +17 -22
- package/dist/specification/src/sync/v4/sync-rules/Page.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/Page.js +15 -22
- package/dist/specification/src/sync/v4/sync-rules/Page.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/index.d.ts +5 -0
- package/dist/specification/src/sync/v4/sync-rules/index.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/index.js +21 -0
- package/dist/specification/src/sync/v4/sync-rules/index.js.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/utils.js +4 -0
- package/dist/specification/src/sync/v4/sync-rules/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/utils/index.d.ts +2 -0
- package/dist/specification/src/sync/v4/utils/index.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/utils/index.js +18 -0
- package/dist/specification/src/sync/v4/utils/index.js.map +1 -0
- package/dist/specification/src/sync/v4/utils/utils.d.ts +9 -1
- package/dist/specification/src/sync/v4/utils/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/utils/utils.js +19 -4
- package/dist/specification/src/sync/v4/utils/utils.js.map +1 -1
- package/dist/specification/test/test-projects/v2sttaProdMan2/webapp/manifest.json +549 -0
- package/dist/specification/test/test-projects/v4new/webapp/manifest.json +147 -0
- package/dist/specification/test/test-utils/utils.d.ts +55 -0
- package/dist/specification/test/test-utils/utils.d.ts.map +1 -0
- package/dist/specification/test/test-utils/utils.js +346 -0
- package/dist/specification/test/test-utils/utils.js.map +1 -0
- package/dist/specification/test/unit/decorators/validity-test-utils.d.ts +274 -0
- package/dist/specification/test/unit/decorators/validity-test-utils.d.ts.map +1 -0
- package/dist/specification/test/unit/decorators/validity-test-utils.js +583 -0
- package/dist/specification/test/unit/decorators/validity-test-utils.js.map +1 -0
- package/dist/types/src/apiTypes.d.ts +2 -3
- package/dist/types/src/apiTypes.d.ts.map +1 -1
- package/dist/types/src/apiTypes.js.map +1 -1
- package/dist/types/src/common/types.d.ts +119 -13
- package/dist/types/src/common/types.d.ts.map +1 -1
- package/dist/types/src/common/types.js.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageTable.d.ts +1 -1
- package/dist/types/src/v2/controls/Table.d.ts +1 -1
- package/package.json +13 -10
- package/dist/specification/src/sync/v4/generate/ListReportUtils.d.ts +0 -74
- package/dist/specification/src/sync/v4/generate/ListReportUtils.d.ts.map +0 -1
- package/dist/specification/src/sync/v4/generate/ListReportUtils.js +0 -262
- package/dist/specification/src/sync/v4/generate/ListReportUtils.js.map +0 -1
- package/dist/specification/src/sync/v4/generate/listReport.d.ts.map +0 -1
- package/dist/specification/src/sync/v4/generate/listReport.js.map +0 -1
|
@@ -70,7 +70,7 @@ __decorate([
|
|
|
70
70
|
path: (entitySet) => (0, application_1.getSettingsPathForPage)(entitySet)
|
|
71
71
|
}
|
|
72
72
|
}),
|
|
73
|
-
(0, decorators_1.
|
|
73
|
+
(0, decorators_1.hide)(true)
|
|
74
74
|
], ListReport.prototype, "defaultTemplateAnnotationPath", void 0);
|
|
75
75
|
__decorate([
|
|
76
76
|
(0, decorators_1.childId)('fe::FilterBar')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListReport.js","sourceRoot":"","sources":["../../../../../../../src/sync/v4/export/pages/ListReport.ts"],"names":[],"mappings":";;;;;;;;;AAEA,sEAO+C;AAC/C,mDAA2D;AAE3D;;;GAGG;AACH,SAAS,iBAAiB,CAAC,eAAuB;IAC9C,IAAI,eAAe,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,IAAI,eAAe,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC;QACrF,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/E,CAAC;AACL,CAAC;AAED;;GAEG;AACH,SAAS,WAAW;IAChB,OAAO;AACX,CAAC;AAED;;GAEG;AACH,SAAS,WAAW;IAChB,OAAO;AACX,CAAC;AAED;;GAEG;AAKI,IAAM,UAAU,GAAhB,MAAM,UAAU;CA+CtB,CAAA;AA/CY,gCAAU;AASnB;IARC,IAAA,qBAAQ,EAAC;QACN,QAAQ,EAAE;YACN,IAAI,EAAE,CAAC,SAAS,EAAU,EAAE,CAAC,IAAA,oCAAsB,EAAC,SAAS,CAAC,GAAG,QAAQ;YACzE,MAAM,EAAE,WAAW;YACnB,MAAM,EAAE,WAAW;YACnB,MAAM,EAAE,iBAAiB;SAC5B;KACJ,CAAC;yCACsB;AAiBxB;IARC,IAAA,qBAAQ,EAAC;QACN,QAAQ,EAAE;YACN,IAAI,EAAE,CAAC,SAAmB,EAAU,EAAE,CAAC,IAAA,oCAAsB,EAAC,SAAS,CAAC;SAC3E;KACJ,CAAC;IACD,IAAA,qBAAQ,EAAC;QACN,KAAK,EAAE,QAAQ;KAClB,CAAC;qDACqD;AAQvD;IANC,IAAA,qBAAQ,EAAC;QACN,QAAQ,EAAE;YACN,IAAI,EAAE,CAAC,SAAS,EAAU,EAAE,CAAC,IAAA,oCAAsB,EAAC,SAAS,CAAC,GAAG,mBAAmB;SACvF;KACJ,CAAC;IACD,IAAA,8BAAiB,EAAC,kEAAkE,CAAC;+CACrD;AAQjC;IANC,IAAA,qBAAQ,EAAC;QACN,QAAQ,EAAE;YACN,IAAI,EAAE,CAAC,SAAS,EAAU,EAAE,CAAC,IAAA,oCAAsB,EAAC,SAAS,CAAC;SACjE;KACJ,CAAC;IACD,IAAA,
|
|
1
|
+
{"version":3,"file":"ListReport.js","sourceRoot":"","sources":["../../../../../../../src/sync/v4/export/pages/ListReport.ts"],"names":[],"mappings":";;;;;;;;;AAEA,sEAO+C;AAC/C,mDAA2D;AAE3D;;;GAGG;AACH,SAAS,iBAAiB,CAAC,eAAuB;IAC9C,IAAI,eAAe,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,OAAO,IAAI,eAAe,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC;QACrF,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/E,CAAC;AACL,CAAC;AAED;;GAEG;AACH,SAAS,WAAW;IAChB,OAAO;AACX,CAAC;AAED;;GAEG;AACH,SAAS,WAAW;IAChB,OAAO;AACX,CAAC;AAED;;GAEG;AAKI,IAAM,UAAU,GAAhB,MAAM,UAAU;CA+CtB,CAAA;AA/CY,gCAAU;AASnB;IARC,IAAA,qBAAQ,EAAC;QACN,QAAQ,EAAE;YACN,IAAI,EAAE,CAAC,SAAS,EAAU,EAAE,CAAC,IAAA,oCAAsB,EAAC,SAAS,CAAC,GAAG,QAAQ;YACzE,MAAM,EAAE,WAAW;YACnB,MAAM,EAAE,WAAW;YACnB,MAAM,EAAE,iBAAiB;SAC5B;KACJ,CAAC;yCACsB;AAiBxB;IARC,IAAA,qBAAQ,EAAC;QACN,QAAQ,EAAE;YACN,IAAI,EAAE,CAAC,SAAmB,EAAU,EAAE,CAAC,IAAA,oCAAsB,EAAC,SAAS,CAAC;SAC3E;KACJ,CAAC;IACD,IAAA,qBAAQ,EAAC;QACN,KAAK,EAAE,QAAQ;KAClB,CAAC;qDACqD;AAQvD;IANC,IAAA,qBAAQ,EAAC;QACN,QAAQ,EAAE;YACN,IAAI,EAAE,CAAC,SAAS,EAAU,EAAE,CAAC,IAAA,oCAAsB,EAAC,SAAS,CAAC,GAAG,mBAAmB;SACvF;KACJ,CAAC;IACD,IAAA,8BAAiB,EAAC,kEAAkE,CAAC;+CACrD;AAQjC;IANC,IAAA,qBAAQ,EAAC;QACN,QAAQ,EAAE;YACN,IAAI,EAAE,CAAC,SAAS,EAAU,EAAE,CAAC,IAAA,oCAAsB,EAAC,SAAS,CAAC;SACjE;KACJ,CAAC;IACD,IAAA,iBAAI,EAAC,IAAI,CAAC;iEAC4B;AAIvC;IADC,IAAA,oBAAO,EAAC,eAAe,CAAC;6CACH;qBA9Cb,UAAU;IAJtB,IAAA,kCAAqB,EAAC;QACnB,EAAE,EAAE,0DAA0D;QAC9D,MAAM,EAAE,0CAA0C;KACrD,CAAC;GACW,UAAU,CA+CtB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { generateListReportSchemaV4 } from './listReport';
|
|
1
|
+
export { generateListReportSchemaV4 } from './list-report/listReport';
|
|
2
2
|
export { generateObjectPageSchemaV4 } from './objectPage';
|
|
3
3
|
export { generateFreestyleSchemaV4 } from './freestylePage';
|
|
4
4
|
export { generateListReportInterfaceV4, generateObjectPageInterfaceV4, generateFreestyleInterfaceV4 } from './generate';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/v4/generate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/v4/generate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,iBAAiB,CAAC;AAC5D,OAAO,EAAE,6BAA6B,EAAE,6BAA6B,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.generateFreestyleInterfaceV4 = exports.generateObjectPageInterfaceV4 = exports.generateListReportInterfaceV4 = exports.generateFreestyleSchemaV4 = exports.generateObjectPageSchemaV4 = exports.generateListReportSchemaV4 = void 0;
|
|
4
|
-
var listReport_1 = require("./listReport");
|
|
4
|
+
var listReport_1 = require("./list-report/listReport");
|
|
5
5
|
Object.defineProperty(exports, "generateListReportSchemaV4", { enumerable: true, get: function () { return listReport_1.generateListReportSchemaV4; } });
|
|
6
6
|
var objectPage_1 = require("./objectPage");
|
|
7
7
|
Object.defineProperty(exports, "generateObjectPageSchemaV4", { enumerable: true, get: function () { return objectPage_1.generateObjectPageSchemaV4; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sync/v4/generate/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sync/v4/generate/index.ts"],"names":[],"mappings":";;;AAAA,uDAAsE;AAA7D,wHAAA,0BAA0B,OAAA;AACnC,2CAA0D;AAAjD,wHAAA,0BAA0B,OAAA;AACnC,iDAA4D;AAAnD,0HAAA,yBAAyB,OAAA;AAClC,uCAAwH;AAA/G,yHAAA,6BAA6B,OAAA;AAAE,yHAAA,6BAA6B,OAAA;AAAE,wHAAA,4BAA4B,OAAA"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import type { Manifest } from '../../../..';
|
|
2
|
+
import type { GeneralSettings } from '../../sync-rules';
|
|
3
|
+
import { BaseConstruct } from '../../sync-rules';
|
|
4
|
+
import type { Definition } from 'typescript-json-schema';
|
|
5
|
+
/**
|
|
6
|
+
* Add general settings to schema (LR or ALP).
|
|
7
|
+
*
|
|
8
|
+
* - Adds Selection-(PresentationVariant) related enums to the schema.
|
|
9
|
+
*/
|
|
10
|
+
export declare class GeneralListReportSettings extends BaseConstruct {
|
|
11
|
+
/**
|
|
12
|
+
* Constructor for general settings of ListReport.
|
|
13
|
+
*
|
|
14
|
+
* @param settings - general settings (App, Page, AppSchema, Logger)
|
|
15
|
+
*/
|
|
16
|
+
constructor(settings: GeneralSettings);
|
|
17
|
+
init(): void;
|
|
18
|
+
/**
|
|
19
|
+
* Adds Selection-(PresentationVariant) related enums to the schema.
|
|
20
|
+
*
|
|
21
|
+
* @param definitionName - definition name
|
|
22
|
+
*/
|
|
23
|
+
private addSPVEnums;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Add filter bar to schema (LR or ALP).
|
|
27
|
+
*/
|
|
28
|
+
export declare class FilterBar extends BaseConstruct {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @param settings - general settings (App, Page, AppSchema, Logger)
|
|
32
|
+
*/
|
|
33
|
+
constructor(settings: GeneralSettings);
|
|
34
|
+
/**
|
|
35
|
+
* Initializes the filter bar adjustments.
|
|
36
|
+
*/
|
|
37
|
+
init(): void;
|
|
38
|
+
private addSelectionFields;
|
|
39
|
+
/**
|
|
40
|
+
* Adds filter bar to schema (LR or ALP).
|
|
41
|
+
*
|
|
42
|
+
* @param entityType - the entity type
|
|
43
|
+
* @param schema - the application schema
|
|
44
|
+
* @param v4Page - the actual page in the manifest
|
|
45
|
+
* @param alias - alias definition for the UI vocabulary
|
|
46
|
+
*/
|
|
47
|
+
private addFilterBar;
|
|
48
|
+
}
|
|
49
|
+
export declare class TableAndViews extends BaseConstruct {
|
|
50
|
+
/**
|
|
51
|
+
* Initializes the addition of table and views to the schema.
|
|
52
|
+
*/
|
|
53
|
+
init(): void;
|
|
54
|
+
/**
|
|
55
|
+
* Adds table and views to the schema.
|
|
56
|
+
*/
|
|
57
|
+
private addTableAndViews;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Enhances the List Report schema with manifest paths for definition and properties.
|
|
61
|
+
*
|
|
62
|
+
* This function extends the app schema (`appSchema`) by adding manifestPath to definition and properties on the List Report.
|
|
63
|
+
*
|
|
64
|
+
* @param {Definition} appSchema - The application schema object representing the List Report structure.
|
|
65
|
+
* @param {string} pageId - Identifier of the page.
|
|
66
|
+
* @param {string} definitionName - Identifier of the corresponding definition.
|
|
67
|
+
* @param {Manifest} manifest - The application manifest.
|
|
68
|
+
* @param {string} targetAnnotation - Target annotation.
|
|
69
|
+
* @param {string} entitySet - Entity set.
|
|
70
|
+
*/
|
|
71
|
+
export declare function addManifestPathsToDefinitionPropertiesLR(appSchema: Definition, pageId: string, definitionName: string, manifest: Manifest, targetAnnotation?: string, entitySet?: string): void;
|
|
72
|
+
//# sourceMappingURL=ListReportUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListReportUtils.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v4/generate/list-report/ListReportUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA+B,QAAQ,EAAM,MAAM,aAAa,CAAC;AAa7E,OAAO,KAAK,EAAE,eAAe,EAAwB,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAMjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD;;;;GAIG;AACH,qBAAa,yBAA0B,SAAQ,aAAa;IACxD;;;;OAIG;gBACS,QAAQ,EAAE,eAAe;IAIrC,IAAI;IAIJ;;;;OAIG;IACH,OAAO,CAAC,WAAW;CActB;AAED;;GAEG;AACH,qBAAa,SAAU,SAAQ,aAAa;IACxC;;;OAGG;gBACS,QAAQ,EAAE,eAAe;IAIrC;;OAEG;IACH,IAAI;IAUJ,OAAO,CAAC,kBAAkB;IAE1B;;;;;;;OAOG;IACH,OAAO,CAAC,YAAY;CAYvB;AAwMD,qBAAa,aAAc,SAAQ,aAAa;IAC5C;;OAEG;IACH,IAAI;IAIJ;;OAEG;IACH,OAAO,CAAC,gBAAgB;CAgC3B;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,wCAAwC,CACpD,SAAS,EAAE,UAAU,EACrB,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,QAAQ,EAClB,gBAAgB,CAAC,EAAE,MAAM,EACzB,SAAS,CAAC,EAAE,MAAM,GACnB,IAAI,CAoBN"}
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.TableAndViews = exports.FilterBar = exports.GeneralListReportSettings = void 0;
|
|
7
|
+
exports.addManifestPathsToDefinitionPropertiesLR = addManifestPathsToDefinitionPropertiesLR;
|
|
8
|
+
const __1 = require("../../../..");
|
|
9
|
+
const utils_1 = require("../../utils");
|
|
10
|
+
const listReport_1 = require("../list-report/listReport");
|
|
11
|
+
const sync_rules_1 = require("../../sync-rules");
|
|
12
|
+
const common_1 = require("../../../common");
|
|
13
|
+
const i18next_1 = __importDefault(require("i18next"));
|
|
14
|
+
/**
|
|
15
|
+
* Add general settings to schema (LR or ALP).
|
|
16
|
+
*
|
|
17
|
+
* - Adds Selection-(PresentationVariant) related enums to the schema.
|
|
18
|
+
*/
|
|
19
|
+
class GeneralListReportSettings extends sync_rules_1.BaseConstruct {
|
|
20
|
+
/**
|
|
21
|
+
* Constructor for general settings of ListReport.
|
|
22
|
+
*
|
|
23
|
+
* @param settings - general settings (App, Page, AppSchema, Logger)
|
|
24
|
+
*/
|
|
25
|
+
constructor(settings) {
|
|
26
|
+
super(settings);
|
|
27
|
+
}
|
|
28
|
+
init() {
|
|
29
|
+
this.addSPVEnums(__1.DefinitionName.AnnotationPathAsObject);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Adds Selection-(PresentationVariant) related enums to the schema.
|
|
33
|
+
*
|
|
34
|
+
* @param definitionName - definition name
|
|
35
|
+
*/
|
|
36
|
+
addSPVEnums(definitionName) {
|
|
37
|
+
const targetTerms = ["com.sap.vocabularies.UI.v1.SelectionVariant" /* UIAnnotationTerms.SelectionVariant */, "com.sap.vocabularies.UI.v1.SelectionPresentationVariant" /* UIAnnotationTerms.SelectionPresentationVariant */];
|
|
38
|
+
const uiAnnotations = this.page.getUIAnnotations();
|
|
39
|
+
if (!uiAnnotations) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
const enumStrings = Object.values(uiAnnotations)
|
|
43
|
+
.filter((annotation) => targetTerms.includes(annotation.term))
|
|
44
|
+
.map((annotation) => annotation.qualifier ? `${annotation.term}#${annotation.qualifier}` : annotation.term);
|
|
45
|
+
const enums = [...new Set(enumStrings)];
|
|
46
|
+
this.appSchema.addEnumToSchema(definitionName, ['properties', __1.SchemaTag.annotationPath], enums);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.GeneralListReportSettings = GeneralListReportSettings;
|
|
50
|
+
/**
|
|
51
|
+
* Add filter bar to schema (LR or ALP).
|
|
52
|
+
*/
|
|
53
|
+
class FilterBar extends sync_rules_1.BaseConstruct {
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @param settings - general settings (App, Page, AppSchema, Logger)
|
|
57
|
+
*/
|
|
58
|
+
constructor(settings) {
|
|
59
|
+
super(settings);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Initializes the filter bar adjustments.
|
|
63
|
+
*/
|
|
64
|
+
init() {
|
|
65
|
+
this.addFilterBar(this.page.getEntityType(), this.appSchema, this.page.target, this.page.getUIVocabularyAlias());
|
|
66
|
+
}
|
|
67
|
+
// Implementation for FilterBar can be added here
|
|
68
|
+
addSelectionFields() { }
|
|
69
|
+
/**
|
|
70
|
+
* Adds filter bar to schema (LR or ALP).
|
|
71
|
+
*
|
|
72
|
+
* @param entityType - the entity type
|
|
73
|
+
* @param schema - the application schema
|
|
74
|
+
* @param v4Page - the actual page in the manifest
|
|
75
|
+
* @param alias - alias definition for the UI vocabulary
|
|
76
|
+
*/
|
|
77
|
+
addFilterBar(entityType, schema, v4Page, alias) {
|
|
78
|
+
const selectionFields = alias && entityType?.annotations?.[alias]?.SelectionFields;
|
|
79
|
+
(0, listReport_1.addSelectionFields)(entityType, schema.get(), selectionFields);
|
|
80
|
+
// Add "manifestPath" to filter fields
|
|
81
|
+
addManifestPathsToDefinitionPropertiesLR(schema.get(), v4Page.id, __1.DefinitionName.SelectionFields, this.app.getManifest());
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
exports.FilterBar = FilterBar;
|
|
85
|
+
/**
|
|
86
|
+
* Adjusts the entity type if a different entity set is maintained for a view.
|
|
87
|
+
*
|
|
88
|
+
* @param {EntitySet} entitySet - actual entity set (AVT information)
|
|
89
|
+
* @param view - the current view in manifest
|
|
90
|
+
* @param page - the page object
|
|
91
|
+
* @param app - the app object
|
|
92
|
+
* @returns the target entity type
|
|
93
|
+
*/
|
|
94
|
+
function getTargetEntityType(entitySet, view, page, app) {
|
|
95
|
+
let targetEntityType = page.getEntityType();
|
|
96
|
+
let viewEntitySet = entitySet;
|
|
97
|
+
if (view['entitySet'] && view['entitySet'] !== entitySet.name) {
|
|
98
|
+
viewEntitySet = app.getAVT()?.entitySets.find((es) => {
|
|
99
|
+
return es.name === view['entitySet'];
|
|
100
|
+
});
|
|
101
|
+
targetEntityType = viewEntitySet.entityType;
|
|
102
|
+
}
|
|
103
|
+
return targetEntityType;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Adapts the table definition in schema.
|
|
107
|
+
* Evaluates the path depending on if defaultTemplateAnnotationPath or Selection-/PresentationVariant is present.
|
|
108
|
+
*
|
|
109
|
+
* @param settings - general settings (App, Page, AppSchema, Logger)
|
|
110
|
+
* @param templateAnnotation - defaultTemplateAnnotationPath as registered in manifest
|
|
111
|
+
* @param tableDefinitionName - The name of the table definition in the schema
|
|
112
|
+
*/
|
|
113
|
+
function adaptTableDefinition(settings, templateAnnotation, tableDefinitionName) {
|
|
114
|
+
const { appSchema, page, app } = settings;
|
|
115
|
+
let schemaIdForColumns = `${__1.DefinitionName.LineItems}`;
|
|
116
|
+
let schemaIdForActions;
|
|
117
|
+
//here: tableDefinitionName = DefinitionName.Table
|
|
118
|
+
const tableDefinition = appSchema.getDefinition(tableDefinitionName);
|
|
119
|
+
const { visualization, targetAnnotation, namespace } = (0, listReport_1.analyzeViewAnnotation)(templateAnnotation, page.getUIAnnotations(), undefined, __1.Visualization.LineItem, app.logger);
|
|
120
|
+
if (visualization) {
|
|
121
|
+
const annotationTerm = visualization.split('.')[1];
|
|
122
|
+
schemaIdForColumns = `${__1.DefinitionName.LineItems}OfSPV::${(0, common_1.prepareRef)(annotationTerm)}`;
|
|
123
|
+
const spvTable = appSchema.cloneDefinition(tableDefinitionName, `${tableDefinitionName}SPV`);
|
|
124
|
+
appSchema.setPropertyRef(spvTable, ['properties', 'toolBar'], `${__1.DefinitionName.ToolBar}<${schemaIdForColumns}>`);
|
|
125
|
+
// Switch from generic column to specific definition
|
|
126
|
+
// schema.setProperty(spvTable, ['properties', 'columns'], {});
|
|
127
|
+
appSchema.setProperty(spvTable, [__1.SchemaTag.annotationPath], targetAnnotation);
|
|
128
|
+
appSchema.setPropertyRef(spvTable, ['properties', 'columns'], schemaIdForColumns);
|
|
129
|
+
appSchema.setDefinitionRef(tableDefinition, `${tableDefinitionName}SPV`);
|
|
130
|
+
appSchema.removeProperty(spvTable, __1.SchemaTag.isViewNode);
|
|
131
|
+
appSchema.removeProperty(tableDefinition, 'properties');
|
|
132
|
+
appSchema.setProperty(tableDefinition, [__1.SchemaTag.annotationPath], `/${namespace}/@${templateAnnotation}`);
|
|
133
|
+
const lineItemAnnotation = page.getUIAnnotations()[annotationTerm];
|
|
134
|
+
if (!lineItemAnnotation) {
|
|
135
|
+
(0, __1.log)(app.logger, {
|
|
136
|
+
severity: "error" /* LogSeverity.Error */,
|
|
137
|
+
message: i18next_1.default.t('NOTARGET', { target: annotationTerm })
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
const dataForLineItem = {
|
|
141
|
+
isObjectPage: false,
|
|
142
|
+
appSchema: appSchema.get(),
|
|
143
|
+
lineItemAnnotation,
|
|
144
|
+
entityType: page.entity.type,
|
|
145
|
+
oDataServiceAVT: app.getAVT(),
|
|
146
|
+
lineItemId: schemaIdForColumns
|
|
147
|
+
};
|
|
148
|
+
(0, utils_1.addLineItemsTypeToSchema)(dataForLineItem);
|
|
149
|
+
const annotationTermQualifier = annotationTerm.split('#')?.[1];
|
|
150
|
+
const sectionIdInManifest = annotationTermQualifier
|
|
151
|
+
? `@${"com.sap.vocabularies.UI.v1.LineItem" /* UIAnnotationTerms.LineItem */}#${annotationTermQualifier}`
|
|
152
|
+
: `@${"com.sap.vocabularies.UI.v1.LineItem" /* UIAnnotationTerms.LineItem */}`;
|
|
153
|
+
// Table toolbar actions with custom actions
|
|
154
|
+
schemaIdForActions = `${__1.DefinitionName.Actions}<${schemaIdForColumns}>`;
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
appSchema.setPropertyRef(tableDefinition, ['properties', 'toolBar'], `${__1.DefinitionName.ToolBarLR}`);
|
|
158
|
+
appSchema.setPropertyRef(tableDefinition, ['properties', 'columns'], `${__1.DefinitionName.LineItems}`);
|
|
159
|
+
// Switch from generic column to specific definition
|
|
160
|
+
const lineItemAnnotation = page.getUIAnnotations()?.LineItem;
|
|
161
|
+
if (!lineItemAnnotation && !page.target.options?.settings?.views?.paths) {
|
|
162
|
+
(0, __1.log)(app.logger, {
|
|
163
|
+
severity: "error" /* LogSeverity.Error */,
|
|
164
|
+
message: i18next_1.default.t('NOLINEITEMS')
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
const dataForLineItem = {
|
|
168
|
+
isObjectPage: false,
|
|
169
|
+
appSchema: appSchema.get(),
|
|
170
|
+
lineItemAnnotation,
|
|
171
|
+
entityType: page.entity.type,
|
|
172
|
+
oDataServiceAVT: app.getAVT(),
|
|
173
|
+
lineItemId: __1.DefinitionName.LineItems
|
|
174
|
+
};
|
|
175
|
+
(0, utils_1.addLineItemsTypeToSchema)(dataForLineItem);
|
|
176
|
+
if (lineItemAnnotation && !page.target.options?.settings?.views?.paths) {
|
|
177
|
+
tableDefinition[__1.SchemaTag.annotationPath] = (0, common_1.createAnnotationPath)(page.entity.type.fullyQualifiedName, lineItemAnnotation.term, lineItemAnnotation.qualifier);
|
|
178
|
+
}
|
|
179
|
+
// Table toolbar actions with custom actions
|
|
180
|
+
schemaIdForActions = `${__1.DefinitionName.Actions}<${__1.DefinitionName.LineItems}>`;
|
|
181
|
+
}
|
|
182
|
+
// Add "manifestPath" for table properties
|
|
183
|
+
(0, listReport_1.addManifestPathsToPropertiesLR)(appSchema.get(), tableDefinitionName, tableDefinition, {
|
|
184
|
+
pageName: page.target.id,
|
|
185
|
+
manifest: app.getManifest(),
|
|
186
|
+
targetAnnotation
|
|
187
|
+
});
|
|
188
|
+
// Add "manifestPath" for table columns and actions
|
|
189
|
+
const customExtensionDefinitionNames = [schemaIdForColumns, schemaIdForActions];
|
|
190
|
+
customExtensionDefinitionNames.forEach((definitionName) => {
|
|
191
|
+
addManifestPathsToDefinitionPropertiesLR(appSchema.get(), page.target.id, definitionName, app.getManifest());
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Add list report views to the app-specific schema.
|
|
196
|
+
*
|
|
197
|
+
* @param settings - general settings (App, Page, AppSchema, Logger)
|
|
198
|
+
* @param tableDefinitionName - The name of the table definition in the schema
|
|
199
|
+
*/
|
|
200
|
+
function addLRViews(settings, tableDefinitionName) {
|
|
201
|
+
const { appSchema, app, page } = settings;
|
|
202
|
+
const viewsPaths = page.config.views.paths;
|
|
203
|
+
const tableDefinition = appSchema.getDefinition(tableDefinitionName);
|
|
204
|
+
tableDefinition.properties = {
|
|
205
|
+
annotationPath: tableDefinition.properties.annotationPath,
|
|
206
|
+
initialLoad: tableDefinition.properties.initialLoad,
|
|
207
|
+
views: tableDefinition.properties.views
|
|
208
|
+
};
|
|
209
|
+
const viewsDefinition = appSchema.getDefinition(__1.DefinitionName.MultiTableModeV4);
|
|
210
|
+
for (const view of viewsPaths) {
|
|
211
|
+
if (!view[__1.SchemaTag.key]) {
|
|
212
|
+
continue;
|
|
213
|
+
}
|
|
214
|
+
let navPropName = undefined;
|
|
215
|
+
const targetEntityType = getTargetEntityType(page.entity.set, view, page, app);
|
|
216
|
+
const uiAnnotations = targetEntityType?.annotations.UI;
|
|
217
|
+
const { visualization, targetAnnotation, namespace, title } = (0, listReport_1.analyzeViewAnnotation)(view?.[__1.SchemaTag.annotationPath], uiAnnotations, view[__1.SchemaTag.key], undefined, app.logger);
|
|
218
|
+
if (view['entitySet']) {
|
|
219
|
+
navPropName = page.entity.type.navigationProperties.find((np) => {
|
|
220
|
+
return np.targetTypeName === namespace;
|
|
221
|
+
})?.name;
|
|
222
|
+
}
|
|
223
|
+
const viewKey = (0, common_1.prepareRef)(view[__1.SchemaTag.key]);
|
|
224
|
+
const commonInputParameters = {
|
|
225
|
+
viewKey,
|
|
226
|
+
appSchema: appSchema.get(),
|
|
227
|
+
targetAnnotation,
|
|
228
|
+
navPropName,
|
|
229
|
+
targetEntityType,
|
|
230
|
+
title,
|
|
231
|
+
entitySet: view['entitySet']
|
|
232
|
+
};
|
|
233
|
+
(0, listReport_1.addLRViewParts)(visualization, viewsDefinition, commonInputParameters, { serviceAVT: app.getAVT(), entityType: targetEntityType, logger: app.logger }, page, app, uiAnnotations, view);
|
|
234
|
+
(0, listReport_1.addTagsToView)(viewsDefinition, viewKey, namespace, view);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
class TableAndViews extends sync_rules_1.BaseConstruct {
|
|
238
|
+
/**
|
|
239
|
+
* Initializes the addition of table and views to the schema.
|
|
240
|
+
*/
|
|
241
|
+
init() {
|
|
242
|
+
this.addTableAndViews();
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Adds table and views to the schema.
|
|
246
|
+
*/
|
|
247
|
+
addTableAndViews() {
|
|
248
|
+
const tableDefinitionName = (0, utils_1.alignSchemaWithTemplateType)(this.appSchema.get(), this.page.template.type);
|
|
249
|
+
const config = this.page.config;
|
|
250
|
+
if (this.page.template.type === __1.TemplateType.ListReportObjectPageV4) {
|
|
251
|
+
this.appSchema.hide(this.appSchema.getRootProperty([__1.PropertyName.chart]));
|
|
252
|
+
adaptTableDefinition(this.getSettings(), config.defaultAnnotation, tableDefinitionName);
|
|
253
|
+
if (!config.views) {
|
|
254
|
+
this.appSchema.setProperty(__1.DefinitionName.MultiTableModeV4, ['properties'], {});
|
|
255
|
+
}
|
|
256
|
+
else if (config.views.paths) {
|
|
257
|
+
this.appSchema.cleanup(['LineItems', 'ToolBar<LineItems>', 'Actions<LineItems>']);
|
|
258
|
+
addLRViews(this.getSettings(), tableDefinitionName);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
else if (config.isALP) {
|
|
262
|
+
const generateParameters = {
|
|
263
|
+
logger: this.logger,
|
|
264
|
+
entityType: this.page.getEntityType(),
|
|
265
|
+
serviceAVT: this.app.getAVT()
|
|
266
|
+
};
|
|
267
|
+
(0, listReport_1.addALPViews)(this.appSchema.get(), config.views?.paths, generateParameters, config.defaultAnnotation, this.page.target, tableDefinitionName);
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
exports.TableAndViews = TableAndViews;
|
|
272
|
+
/**
|
|
273
|
+
* Enhances the List Report schema with manifest paths for definition and properties.
|
|
274
|
+
*
|
|
275
|
+
* This function extends the app schema (`appSchema`) by adding manifestPath to definition and properties on the List Report.
|
|
276
|
+
*
|
|
277
|
+
* @param {Definition} appSchema - The application schema object representing the List Report structure.
|
|
278
|
+
* @param {string} pageId - Identifier of the page.
|
|
279
|
+
* @param {string} definitionName - Identifier of the corresponding definition.
|
|
280
|
+
* @param {Manifest} manifest - The application manifest.
|
|
281
|
+
* @param {string} targetAnnotation - Target annotation.
|
|
282
|
+
* @param {string} entitySet - Entity set.
|
|
283
|
+
*/
|
|
284
|
+
function addManifestPathsToDefinitionPropertiesLR(appSchema, pageId, definitionName, manifest, targetAnnotation, entitySet) {
|
|
285
|
+
const matchingDefinition = appSchema.definitions[definitionName];
|
|
286
|
+
for (const key in matchingDefinition?.properties ?? {}) {
|
|
287
|
+
const property = matchingDefinition.properties[key];
|
|
288
|
+
(0, listReport_1.addManifestPathsToPropertiesLR)(appSchema, undefined, property, {
|
|
289
|
+
pageName: pageId,
|
|
290
|
+
columnKey: key,
|
|
291
|
+
manifest,
|
|
292
|
+
targetAnnotation,
|
|
293
|
+
viewConfig: {
|
|
294
|
+
entitySet
|
|
295
|
+
}
|
|
296
|
+
}, true);
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
//# sourceMappingURL=ListReportUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListReportUtils.js","sourceRoot":"","sources":["../../../../../../../src/sync/v4/generate/list-report/ListReportUtils.ts"],"names":[],"mappings":";;;;;;AA8WA,4FA2BC;AAxYD,mCAAqH;AAErH,uCAAoF;AAEpF,0DAOmC;AAEnC,iDAAiD;AAGjD,4CAAqF;AACrF,sDAA8B;AAI9B;;;;GAIG;AACH,MAAa,yBAA0B,SAAQ,0BAAa;IACxD;;;;OAIG;IACH,YAAY,QAAyB;QACjC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACpB,CAAC;IAED,IAAI;QACA,IAAI,CAAC,WAAW,CAAC,kBAAc,CAAC,sBAAsB,CAAC,CAAC;IAC5D,CAAC;IAED;;;;OAIG;IACK,WAAW,CAAC,cAA8B;QAC9C,MAAM,WAAW,GAAG,wMAAoF,CAAC;QACzG,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACnD,IAAI,CAAC,aAAa,EAAE,CAAC;YACjB,OAAO;QACX,CAAC;QACD,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC;aAC3C,MAAM,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAyB,CAAC,CAAC;aAClF,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAChB,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,IAAI,IAAI,UAAU,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CACxF,CAAC;QACN,MAAM,KAAK,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC;QACxC,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,cAAc,EAAE,CAAC,YAAY,EAAE,aAAS,CAAC,cAAc,CAAC,EAAE,KAAK,CAAC,CAAC;IACpG,CAAC;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}
|
package/dist/specification/src/sync/v4/generate/{listReport.d.ts → list-report/listReport.d.ts}
RENAMED
|
@@ -1,12 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { v4, GenerateAppSchemaParameters
|
|
1
|
+
import { Visualization } from '@sap/ux-specification-types';
|
|
2
|
+
import type { ExtensionLogger, v4, GenerateAppSchemaParameters } from '@sap/ux-specification-types';
|
|
3
3
|
import type { AnnotationTerm, EntitySet, EntityType } from '@sap-ux/vocabularies-types';
|
|
4
4
|
import type { SelectionFields } from '@sap-ux/vocabularies-types/vocabularies/UI';
|
|
5
|
-
import { type ManifestPathParams } from '
|
|
5
|
+
import { type ManifestPathParams } from '../../../common';
|
|
6
6
|
import type { Definition } from 'typescript-json-schema';
|
|
7
|
-
import {
|
|
7
|
+
import type { PageConfig, App } from '../../sync-rules';
|
|
8
|
+
import { Page } from '../../sync-rules';
|
|
8
9
|
/**
|
|
9
|
-
*
|
|
10
|
+
* Configuration interface for List Report pages.
|
|
11
|
+
* Extends the base PageConfig with List Report specific properties.
|
|
12
|
+
*/
|
|
13
|
+
export interface ListReportPageConfig extends PageConfig {
|
|
14
|
+
isALP?: boolean;
|
|
15
|
+
defaultAnnotation?: string;
|
|
16
|
+
views?: v4.SapUi5Views;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Type alias for a Page with ListReportPageConfig configuration.
|
|
20
|
+
*/
|
|
21
|
+
export type LRPage = Page<ListReportPageConfig>;
|
|
22
|
+
/**
|
|
23
|
+
* Adds the selection fields to the app schema, as properties of the FilterBar.
|
|
24
|
+
*
|
|
10
25
|
* @param {EntityType} entityType - the entity type as part of the AVT ConvertedMetadata
|
|
11
26
|
* @param {Definition} appSchema - the app specific schema that shall get enhanced
|
|
12
27
|
* @param {AnnotationTerm<SelectionFields>} selectionFieldsAnnotation - the UI.SelectionField annotation
|
|
@@ -68,17 +83,11 @@ export declare function addTagsToView(viewsDefinition: Definition, viewKey: stri
|
|
|
68
83
|
* @param generateParameters.entityType - entity type of the current page
|
|
69
84
|
* @param generateParameters.logger - extension logger
|
|
70
85
|
* @param page - the current page object
|
|
86
|
+
* @param app - the application object containing manifest and other app-specific information.
|
|
71
87
|
* @param uiAnnotations - UI annotations of the given entityType
|
|
72
88
|
* @param view - the given view
|
|
73
89
|
*/
|
|
74
|
-
export declare function addLRViewParts(visualization: string, viewsDefinition: Definition, commonInputParameters: ViewsParameters, { serviceAVT, entityType, logger }: Partial<GenerateAppSchemaParameters>, page: Page, uiAnnotations: object, view: object): void;
|
|
75
|
-
/**
|
|
76
|
-
* Checks for the default annotation path to use for LR table
|
|
77
|
-
* @param {SapUiAppPageV4} v4Page - actual page in the manifest
|
|
78
|
-
* @param {EntityType} entityType - actual entity type (AVT information)
|
|
79
|
-
* @returns {string} annotation term
|
|
80
|
-
*/
|
|
81
|
-
export declare function getDefaultAnnotationPath(v4Page: v4.SapUiAppPageV4, entityType: EntityType, templateType: TemplateType): string | undefined;
|
|
90
|
+
export declare function addLRViewParts(visualization: string, viewsDefinition: Definition, commonInputParameters: ViewsParameters, { serviceAVT, entityType, logger }: Partial<GenerateAppSchemaParameters>, page: Page, app: App, uiAnnotations: object, view: object): void;
|
|
82
91
|
/**
|
|
83
92
|
* Adds 'manifestPath' to each property in a definition based on metadata sync rules.
|
|
84
93
|
*
|
|
@@ -86,8 +95,9 @@ export declare function getDefaultAnnotationPath(v4Page: v4.SapUiAppPageV4, enti
|
|
|
86
95
|
* @param definitionName - The name of the definition/class whose properties are being processed.
|
|
87
96
|
* @param definition - The definition object containing property schemas.
|
|
88
97
|
* @param pathParams - Additional context required to compute manifest paths.
|
|
98
|
+
* @param handleRelative - A flag indicating whether to use relative paths for definition properties.
|
|
89
99
|
*/
|
|
90
|
-
export declare function addManifestPathsToPropertiesLR(appSchema: Definition, definitionName: string | undefined, definition: Definition, pathParams: ManifestPathParams): void;
|
|
100
|
+
export declare function addManifestPathsToPropertiesLR(appSchema: Definition, definitionName: string | undefined, definition: Definition, pathParams: ManifestPathParams, handleRelative?: boolean): void;
|
|
91
101
|
/**
|
|
92
102
|
* Generates an app specific schema for the FE V4 ListReport from the generic schema.
|
|
93
103
|
* Generic types are replaced by information from the app specific annotations.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listReport.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v4/generate/list-report/listReport.ts"],"names":[],"mappings":"AAGA,OAAO,EAIH,aAAa,EAUhB,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EAAE,eAAe,EAAE,EAAE,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AACpG,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxF,OAAO,KAAK,EAAoC,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAIpH,OAAO,EAYH,KAAK,kBAAkB,EAC1B,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,UAAU,EAAuB,MAAM,wBAAwB,CAAC;AAC9E,OAAO,KAAK,EAAE,UAAU,EAAmB,GAAG,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAwB,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAY9D;;;GAGG;AACH,MAAM,WAAW,oBAAqB,SAAQ,UAAU;IACpD,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,KAAK,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,IAAI,CAAC,oBAAoB,CAAC,CAAC;AAEhD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAC9B,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,UAAU,EACrB,yBAAyB,EAAE,cAAc,CAAC,eAAe,CAAC,EAC1D,yBAAyB,CAAC,EAAE,UAAU,GACvC,UAAU,CA4DZ;AA0ID;;;;;;;;;;;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