@sap/ux-specification 1.96.25 → 1.96.27
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/dist/documentation/v2/v2-AnalyticalListPage.html +1 -1
- package/dist/documentation/v2/v2-ApplicationV2.html +1 -1
- package/dist/documentation/v2/v2-ListReport.html +1 -1
- package/dist/documentation/v2/v2-ObjectPage.html +1 -1
- package/dist/documentation/v2/v2-OverviewPage.html +1 -1
- package/dist/documentation/v4/v4-ApplicationV4.html +1 -1
- package/dist/documentation/v4/v4-FreestylePage.html +1 -1
- package/dist/documentation/v4/v4-ListReport.html +1 -1
- package/dist/documentation/v4/v4-ObjectPage.html +1 -1
- package/dist/index-min.js +185 -55
- package/dist/index-min.js.map +3 -3
- package/dist/schemas/v2/AnalyticalListPageConfig.json +9 -0
- package/dist/schemas/v2/ListReportConfig.json +9 -0
- package/dist/schemas/v2/ObjectPageConfig.json +13 -4
- package/dist/schemas/v4/ListReportConfig.json +66 -43
- package/dist/schemas/v4/ObjectPageConfig.json +209 -59
- package/dist/scripts/to-json-schema.d.ts.map +1 -1
- package/dist/scripts/to-json-schema.js +9 -1
- package/dist/scripts/to-json-schema.js.map +1 -1
- package/dist/src/api.d.ts +1 -2
- package/dist/src/api.d.ts.map +1 -1
- package/dist/src/api.js +14 -6
- package/dist/src/api.js.map +1 -1
- package/dist/src/extensionLogger.d.ts +1 -24
- package/dist/src/extensionLogger.d.ts.map +1 -1
- package/dist/src/extensionLogger.js +5 -15
- package/dist/src/extensionLogger.js.map +1 -1
- package/dist/src/index.d.ts +0 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +0 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/project.d.ts +1 -2
- package/dist/src/project.d.ts.map +1 -1
- package/dist/src/project.js.map +1 -1
- package/dist/src/sync/common/appProvider.d.ts +1 -3
- package/dist/src/sync/common/appProvider.d.ts.map +1 -1
- package/dist/src/sync/common/appProvider.js +3 -4
- package/dist/src/sync/common/appProvider.js.map +1 -1
- package/dist/src/sync/common/decoration/control.d.ts +1 -1
- package/dist/src/sync/common/decoration/control.d.ts.map +1 -1
- package/dist/src/sync/common/decoration/control.js +12 -12
- package/dist/src/sync/common/decoration/control.js.map +1 -1
- package/dist/src/sync/common/decoration/decorators.d.ts +1 -1
- package/dist/src/sync/common/decoration/decorators.d.ts.map +1 -1
- package/dist/src/sync/common/decoration/flex.d.ts +1 -2
- package/dist/src/sync/common/decoration/flex.d.ts.map +1 -1
- package/dist/src/sync/common/decoration/flex.js.map +1 -1
- package/dist/src/sync/common/flexUtils.d.ts +1 -4
- package/dist/src/sync/common/flexUtils.d.ts.map +1 -1
- package/dist/src/sync/common/flexUtils.js.map +1 -1
- package/dist/src/sync/common/generate/objectPage.d.ts +12 -8
- package/dist/src/sync/common/generate/objectPage.d.ts.map +1 -1
- package/dist/src/sync/common/generate/objectPage.js +226 -115
- package/dist/src/sync/common/generate/objectPage.js.map +1 -1
- package/dist/src/sync/common/generate/utils.d.ts +20 -4
- package/dist/src/sync/common/generate/utils.d.ts.map +1 -1
- package/dist/src/sync/common/generate/utils.js +93 -27
- package/dist/src/sync/common/generate/utils.js.map +1 -1
- package/dist/src/sync/common/import/utils.d.ts +1 -2
- package/dist/src/sync/common/import/utils.d.ts.map +1 -1
- package/dist/src/sync/common/import/utils.js +4 -3
- package/dist/src/sync/common/import/utils.js.map +1 -1
- package/dist/src/sync/common/importProject.d.ts +1 -2
- package/dist/src/sync/common/importProject.d.ts.map +1 -1
- package/dist/src/sync/common/importProject.js +22 -23
- package/dist/src/sync/common/importProject.js.map +1 -1
- package/dist/src/sync/common/index.d.ts +0 -1
- package/dist/src/sync/common/index.d.ts.map +1 -1
- package/dist/src/sync/common/index.js +0 -1
- package/dist/src/sync/common/index.js.map +1 -1
- package/dist/src/sync/common/utils.d.ts +2 -12
- package/dist/src/sync/common/utils.d.ts.map +1 -1
- package/dist/src/sync/common/utils.js +67 -61
- package/dist/src/sync/common/utils.js.map +1 -1
- package/dist/src/sync/v2/application.d.ts.map +1 -1
- package/dist/src/sync/v2/application.js +1 -2
- package/dist/src/sync/v2/application.js.map +1 -1
- package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.d.ts.map +1 -1
- package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js +1 -2
- package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Field.d.ts.map +1 -1
- package/dist/src/sync/v2/export/controls/Field.js.map +1 -1
- package/dist/src/sync/v2/export/controls/FilterBar.d.ts.map +1 -1
- package/dist/src/sync/v2/export/controls/FilterBar.js +4 -5
- package/dist/src/sync/v2/export/controls/FilterBar.js.map +1 -1
- package/dist/src/sync/v2/export/controls/FormAction.d.ts.map +1 -1
- package/dist/src/sync/v2/export/controls/FormAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Fragment.d.ts +2 -4
- package/dist/src/sync/v2/export/controls/Fragment.d.ts.map +1 -1
- package/dist/src/sync/v2/export/controls/Fragment.js +12 -13
- package/dist/src/sync/v2/export/controls/Fragment.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.d.ts.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeader.d.ts +2 -2
- package/dist/src/sync/v2/export/controls/ObjectPageHeader.d.ts.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.d.ts.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.d.ts +1 -3
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.d.ts.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js +2 -3
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageTable.d.ts +1 -2
- package/dist/src/sync/v2/export/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageTable.js +3 -3
- package/dist/src/sync/v2/export/controls/ObjectPageTable.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Table.d.ts +1 -2
- package/dist/src/sync/v2/export/controls/Table.d.ts.map +1 -1
- package/dist/src/sync/v2/export/controls/Table.js +6 -6
- package/dist/src/sync/v2/export/controls/Table.js.map +1 -1
- package/dist/src/sync/v2/export/controls/TableColumn.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/TableColumn.js +1 -1
- package/dist/src/sync/v2/export/export.d.ts +1 -1
- package/dist/src/sync/v2/export/export.d.ts.map +1 -1
- package/dist/src/sync/v2/export/export.js +6 -6
- package/dist/src/sync/v2/export/export.js.map +1 -1
- package/dist/src/sync/v2/export/exportPage.d.ts +1 -2
- package/dist/src/sync/v2/export/exportPage.d.ts.map +1 -1
- package/dist/src/sync/v2/export/exportPage.js +1 -1
- package/dist/src/sync/v2/export/exportPage.js.map +1 -1
- package/dist/src/sync/v2/export/view-controller-generator.d.ts +1 -2
- package/dist/src/sync/v2/export/view-controller-generator.d.ts.map +1 -1
- package/dist/src/sync/v2/export/view-controller-generator.js +2 -2
- package/dist/src/sync/v2/export/view-controller-generator.js.map +1 -1
- package/dist/src/sync/v2/generate/analyticalListReport.d.ts +1 -1
- package/dist/src/sync/v2/generate/analyticalListReport.d.ts.map +1 -1
- package/dist/src/sync/v2/generate/analyticalListReport.js +10 -10
- package/dist/src/sync/v2/generate/analyticalListReport.js.map +1 -1
- package/dist/src/sync/v2/generate/generate.d.ts +1 -2
- package/dist/src/sync/v2/generate/generate.d.ts.map +1 -1
- package/dist/src/sync/v2/generate/generate.js +3 -3
- package/dist/src/sync/v2/generate/generate.js.map +1 -1
- package/dist/src/sync/v2/generate/listReport.d.ts +1 -1
- package/dist/src/sync/v2/generate/listReport.d.ts.map +1 -1
- package/dist/src/sync/v2/generate/listReport.js +5 -5
- package/dist/src/sync/v2/generate/listReport.js.map +1 -1
- package/dist/src/sync/v2/generate/objectPage.d.ts +1 -1
- package/dist/src/sync/v2/generate/objectPage.d.ts.map +1 -1
- package/dist/src/sync/v2/generate/objectPage.js +114 -78
- package/dist/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v2/generate/utils.d.ts +3 -4
- package/dist/src/sync/v2/generate/utils.d.ts.map +1 -1
- package/dist/src/sync/v2/generate/utils.js +53 -40
- package/dist/src/sync/v2/generate/utils.js.map +1 -1
- package/dist/src/sync/v2/import/app/appProvider.d.ts +1 -3
- package/dist/src/sync/v2/import/app/appProvider.d.ts.map +1 -1
- package/dist/src/sync/v2/import/app/appProvider.js.map +1 -1
- package/dist/src/sync/v2/import/app/ovpProvider.d.ts +1 -2
- package/dist/src/sync/v2/import/app/ovpProvider.d.ts.map +1 -1
- package/dist/src/sync/v2/import/app/ovpProvider.js.map +1 -1
- package/dist/src/sync/v2/import/common/index.d.ts +1 -3
- package/dist/src/sync/v2/import/common/index.d.ts.map +1 -1
- package/dist/src/sync/v2/import/common/index.js +9 -9
- package/dist/src/sync/v2/import/common/index.js.map +1 -1
- package/dist/src/sync/v2/import/controls/table.d.ts.map +1 -1
- package/dist/src/sync/v2/import/controls/table.js +3 -4
- package/dist/src/sync/v2/import/controls/table.js.map +1 -1
- package/dist/src/sync/v2/import/pages/analyticalListPage.d.ts +1 -2
- package/dist/src/sync/v2/import/pages/analyticalListPage.d.ts.map +1 -1
- package/dist/src/sync/v2/import/pages/analyticalListPage.js +16 -16
- package/dist/src/sync/v2/import/pages/analyticalListPage.js.map +1 -1
- package/dist/src/sync/v2/import/pages/listReport.d.ts +1 -2
- package/dist/src/sync/v2/import/pages/listReport.d.ts.map +1 -1
- package/dist/src/sync/v2/import/pages/listReport.js +15 -15
- package/dist/src/sync/v2/import/pages/listReport.js.map +1 -1
- package/dist/src/sync/v2/import/pages/objectPage.d.ts +1 -1
- package/dist/src/sync/v2/import/pages/objectPage.d.ts.map +1 -1
- package/dist/src/sync/v2/import/pages/objectPage.js +31 -31
- package/dist/src/sync/v2/import/pages/objectPage.js.map +1 -1
- package/dist/src/sync/v2/import/utils.d.ts.map +1 -1
- package/dist/src/sync/v2/import/utils.js +1 -1
- package/dist/src/sync/v2/import/utils.js.map +1 -1
- package/dist/src/sync/v4/application.d.ts +3 -0
- package/dist/src/sync/v4/application.d.ts.map +1 -1
- package/dist/src/sync/v4/application.js +15 -3
- package/dist/src/sync/v4/application.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageFooter.d.ts +5 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFooter.d.ts.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFooter.js +7 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFooter.js.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFooterAction.d.ts +9 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFooterAction.d.ts.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFooterAction.js +42 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFooterAction.js.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageForm.d.ts +16 -0
- package/dist/src/sync/v4/export/controls/ObjectPageForm.d.ts.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageForm.js +48 -0
- package/dist/src/sync/v4/export/controls/ObjectPageForm.js.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFormAction.d.ts +10 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFormAction.d.ts.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFormAction.js +68 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFormAction.js.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageHeader.d.ts +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageHeader.d.ts.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageHeader.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderAction.d.ts +9 -0
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderAction.d.ts.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderAction.js +42 -0
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderAction.js.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageTable.js +4 -4
- package/dist/src/sync/v4/export/controls/ObjectPageTable.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts +1 -2
- package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.js +0 -10
- package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.d.ts.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.js +9 -9
- package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.js.map +1 -1
- package/dist/src/sync/v4/export/controls/Table.d.ts.map +1 -1
- package/dist/src/sync/v4/export/controls/Table.js +2 -1
- package/dist/src/sync/v4/export/controls/Table.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ToolBar.d.ts +2 -2
- package/dist/src/sync/v4/export/controls/ToolBar.d.ts.map +1 -1
- package/dist/src/sync/v4/export/controls/ToolBarAction.d.ts +6 -1
- package/dist/src/sync/v4/export/controls/ToolBarAction.d.ts.map +1 -1
- package/dist/src/sync/v4/export/controls/ToolBarAction.js +33 -9
- package/dist/src/sync/v4/export/controls/ToolBarAction.js.map +1 -1
- package/dist/src/sync/v4/export/controls/index.d.ts +6 -0
- package/dist/src/sync/v4/export/controls/index.d.ts.map +1 -1
- package/dist/src/sync/v4/export/controls/index.js +6 -0
- package/dist/src/sync/v4/export/controls/index.js.map +1 -1
- package/dist/src/sync/v4/export/export.d.ts +1 -3
- package/dist/src/sync/v4/export/export.d.ts.map +1 -1
- package/dist/src/sync/v4/export/export.js +36 -36
- package/dist/src/sync/v4/export/export.js.map +1 -1
- package/dist/src/sync/v4/export/exportCustomColumn.d.ts +1 -1
- package/dist/src/sync/v4/export/exportCustomColumn.d.ts.map +1 -1
- package/dist/src/sync/v4/export/exportCustomColumn.js +3 -4
- package/dist/src/sync/v4/export/exportCustomColumn.js.map +1 -1
- package/dist/src/sync/v4/export/manifest.js +1 -1
- package/dist/src/sync/v4/export/manifest.js.map +1 -1
- package/dist/src/sync/v4/export/pages/ObjectPage.d.ts +1 -0
- package/dist/src/sync/v4/export/pages/ObjectPage.d.ts.map +1 -1
- package/dist/src/sync/v4/export/pages/ObjectPage.js.map +1 -1
- package/dist/src/sync/v4/export/types.d.ts +1 -3
- package/dist/src/sync/v4/export/types.d.ts.map +1 -1
- package/dist/src/sync/v4/generate/freestylePage.d.ts +1 -1
- package/dist/src/sync/v4/generate/freestylePage.d.ts.map +1 -1
- package/dist/src/sync/v4/generate/generate.d.ts +2 -3
- package/dist/src/sync/v4/generate/generate.d.ts.map +1 -1
- package/dist/src/sync/v4/generate/generate.js +2 -2
- package/dist/src/sync/v4/generate/generate.js.map +1 -1
- package/dist/src/sync/v4/generate/listReport.d.ts +1 -1
- package/dist/src/sync/v4/generate/listReport.d.ts.map +1 -1
- package/dist/src/sync/v4/generate/listReport.js +137 -120
- package/dist/src/sync/v4/generate/listReport.js.map +1 -1
- package/dist/src/sync/v4/generate/objectPage.d.ts.map +1 -1
- package/dist/src/sync/v4/generate/objectPage.js +245 -159
- package/dist/src/sync/v4/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v4/import/app/appProvider.d.ts +1 -2
- package/dist/src/sync/v4/import/app/appProvider.d.ts.map +1 -1
- package/dist/src/sync/v4/import/app/appProvider.js.map +1 -1
- package/dist/src/sync/v4/import/app/baseAppProvider.d.ts +2 -4
- package/dist/src/sync/v4/import/app/baseAppProvider.d.ts.map +1 -1
- package/dist/src/sync/v4/import/app/baseAppProvider.js +4 -4
- package/dist/src/sync/v4/import/app/baseAppProvider.js.map +1 -1
- package/dist/src/sync/v4/import/app/freestyleProvider.d.ts +1 -2
- package/dist/src/sync/v4/import/app/freestyleProvider.d.ts.map +1 -1
- package/dist/src/sync/v4/import/app/freestyleProvider.js.map +1 -1
- package/dist/src/sync/v4/import/fragment.d.ts +1 -2
- package/dist/src/sync/v4/import/fragment.d.ts.map +1 -1
- package/dist/src/sync/v4/import/fragment.js.map +1 -1
- package/dist/src/sync/v4/import/pages/listReport.d.ts +1 -2
- package/dist/src/sync/v4/import/pages/listReport.d.ts.map +1 -1
- package/dist/src/sync/v4/import/pages/listReport.js +36 -36
- package/dist/src/sync/v4/import/pages/listReport.js.map +1 -1
- package/dist/src/sync/v4/import/pages/objectPage.d.ts +3 -3
- package/dist/src/sync/v4/import/pages/objectPage.d.ts.map +1 -1
- package/dist/src/sync/v4/import/pages/objectPage.js +125 -28
- package/dist/src/sync/v4/import/pages/objectPage.js.map +1 -1
- package/dist/src/sync/v4/utils/StableIdHelper.d.ts +4 -0
- package/dist/src/sync/v4/utils/StableIdHelper.d.ts.map +1 -1
- package/dist/src/sync/v4/utils/StableIdHelper.js +3 -11
- package/dist/src/sync/v4/utils/StableIdHelper.js.map +1 -1
- package/dist/src/sync/v4/utils/utils.d.ts +5 -6
- package/dist/src/sync/v4/utils/utils.d.ts.map +1 -1
- package/dist/src/sync/v4/utils/utils.js +109 -68
- package/dist/src/sync/v4/utils/utils.js.map +1 -1
- package/package.json +4 -19
- package/dist/src/apiTypes.d.ts +0 -335
- package/dist/src/apiTypes.d.ts.map +0 -1
- package/dist/src/apiTypes.js +0 -25
- package/dist/src/apiTypes.js.map +0 -1
- package/dist/src/sync/common/types.d.ts +0 -306
- package/dist/src/sync/common/types.d.ts.map +0 -1
- package/dist/src/sync/common/types.js +0 -176
- package/dist/src/sync/common/types.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../../../src/sync/v2/generate/generate.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"generate.js","sourceRoot":"","sources":["../../../../../src/sync/v2/generate/generate.ts"],"names":[],"mappings":";;;AAAA,8CAA6D;AAC7D,6CAA0D;AAC1D,6CAA0D;AAC1D,iEAA8E;AAC9E,iDAA8D;AAE9D,wEAAiF;AAEjF;;;;;;;;;;;;GAYG;AACH,SAAgB,6BAA6B,CACzC,aAAqB,EACrB,SAAiB,EACjB,WAAuB,EACvB,QAAgB,EAChB,SAAsB,EACtB,MAAwB;IAExB,MAAM,UAAU,GAAG,+BAAuB,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IAChE,MAAM,kBAAkB,GAAgC;QACpD,YAAY,EAAE,qCAAY,CAAC,sBAAsB;QACjD,oBAAoB,EAAE,6CAAoB,CAAC,EAAE;QAC7C,QAAQ;QACR,SAAS;QACT,UAAU;QACV,MAAM;KACT,CAAC;IACF,OAAO,uCAA0B,CAAC,kBAAkB,EAAE,aAAa,EAAE,SAAS,CAAC,CAAC;AACpF,CAAC;AAlBD,sEAkBC;AAED;;;;;;;;;;;;GAYG;AACH,SAAgB,6BAA6B,CACzC,aAAqB,EACrB,UAAkB,EAClB,WAAuB,EACvB,QAAgB,EAChB,SAAsB,EACtB,MAAwB;IAExB,MAAM,UAAU,GAAG,+BAAuB,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IAChE,MAAM,kBAAkB,GAAgC;QACpD,YAAY,EAAE,qCAAY,CAAC,sBAAsB;QACjD,oBAAoB,EAAE,6CAAoB,CAAC,EAAE;QAC7C,QAAQ;QACR,SAAS;QACT,UAAU;QACV,MAAM;KACT,CAAC;IACF,OAAO,uCAA0B,CAAC,kBAAkB,EAAE,aAAa,EAAE,UAAU,CAAC,CAAC;AACrF,CAAC;AAlBD,sEAkBC;AAED;;;;;;GAMG;AACH,SAAgB,sBAAsB,CAAC,aAAqB,EAAE,QAAgB;IAC1E,OAAO,2CAA4B,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;AACjE,CAAC;AAFD,wDAEC;AAED;;;;;;;;;;;;;GAaG;AACH,SAAgB,qCAAqC,CACjD,aAAqB,EACrB,UAAkB,EAClB,WAAuB,EACvB,QAAgB,EAChB,SAAsB,EACtB,MAAwB;IAExB,MAAM,UAAU,GAAG,+BAAuB,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;IAChE,MAAM,kBAAkB,GAAgC;QACpD,YAAY,EAAE,qCAAY,CAAC,oBAAoB;QAC/C,oBAAoB,EAAE,6CAAoB,CAAC,EAAE;QAC7C,QAAQ;QACR,SAAS;QACT,UAAU;QACV,MAAM;KACT,CAAC;IACF,OAAO,2DAAoC,CAAC,kBAAkB,EAAE,aAAa,EAAE,UAAU,CAAC,CAAC;AAC/F,CAAC;AAlBD,sFAkBC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ConvertedMetadata, EntitySet, EntityType } from '@sap-ux/vocabularies-types';
|
|
2
2
|
import type { Definition } from 'typescript-json-schema';
|
|
3
|
-
import type { GenerateAppSchemaParameters } from '
|
|
3
|
+
import type { GenerateAppSchemaParameters } from '@sap/ux-specification-types';
|
|
4
4
|
/**
|
|
5
5
|
* Adds the enum types for QuickVariant and QuickVariantX, based on the entity type annotations
|
|
6
6
|
* @param {EntityType} entityType
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listReport.d.ts","sourceRoot":"","sources":["../../../../../src/sync/v2/generate/listReport.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"listReport.d.ts","sourceRoot":"","sources":["../../../../../src/sync/v2/generate/listReport.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC3F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAE/E;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAClC,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,EACpB,SAAS,EAAE,UAAU,EACrB,eAAe,EAAE,iBAAiB,GACnC,IAAI,CAIN;AAED;;;;;;;;GAQG;AACH,wBAAgB,0BAA0B,CACtC,kBAAkB,EAAE,2BAA2B,EAC/C,aAAa,EAAE,UAAU,EACzB,cAAc,EAAE,MAAM,GACvB,MAAM,CAsGR"}
|
|
@@ -49,14 +49,14 @@ function generateListReportSchemaV2(generateParameters, genericSchema, entityTyp
|
|
|
49
49
|
const analyticalTableDefinition = JSON.parse(JSON.stringify(genericSchema.definitions.AnalyticalTable));
|
|
50
50
|
const gridTableDefinition = JSON.parse(JSON.stringify(genericSchema.definitions.GridTable));
|
|
51
51
|
const lrLineItems = {
|
|
52
|
-
$ref: common_1.DEFINITION_LINK_PREFIX +
|
|
52
|
+
$ref: common_1.DEFINITION_LINK_PREFIX + ux_specification_types_1.DefinitionName.LineItems
|
|
53
53
|
};
|
|
54
54
|
responsiveTableMultiSelect.properties.columns = lrLineItems;
|
|
55
55
|
responsiveTableInlineDelete.properties.columns = lrLineItems;
|
|
56
56
|
treeTableDefinition.properties.columns = lrLineItems;
|
|
57
57
|
analyticalTableDefinition.properties.columns = lrLineItems;
|
|
58
58
|
gridTableDefinition.properties.columns = lrLineItems;
|
|
59
|
-
const lrToolBar = common_1.DEFINITION_LINK_PREFIX +
|
|
59
|
+
const lrToolBar = common_1.DEFINITION_LINK_PREFIX + ux_specification_types_1.DefinitionName.ToolBarLR;
|
|
60
60
|
appSchema.definitions[types_1.MULTISELECTTABLE] = responsiveTableMultiSelect;
|
|
61
61
|
appSchema.definitions[types_1.MULTISELECTTABLE].properties.toolBar['$ref'] = lrToolBar;
|
|
62
62
|
appSchema.definitions[types_1.INLINEDELETETABLE] = responsiveTableInlineDelete;
|
|
@@ -73,7 +73,7 @@ function generateListReportSchemaV2(generateParameters, genericSchema, entityTyp
|
|
|
73
73
|
severity: "error" /* Error */,
|
|
74
74
|
message: i18next_1.default.t('NOENTITYTYPE', { entityType: entityTypeName }),
|
|
75
75
|
location: {
|
|
76
|
-
path:
|
|
76
|
+
path: ux_specification_types_1.METADATAPATH
|
|
77
77
|
}
|
|
78
78
|
});
|
|
79
79
|
}
|
|
@@ -93,7 +93,7 @@ function generateListReportSchemaV2(generateParameters, genericSchema, entityTyp
|
|
|
93
93
|
severity: "error" /* Error */,
|
|
94
94
|
message: i18next_1.default.t('NOALP'),
|
|
95
95
|
location: {
|
|
96
|
-
path:
|
|
96
|
+
path: ux_specification_types_1.MANIFESTPATH,
|
|
97
97
|
range: [ux_specification_types_1.ManifestSection.generic]
|
|
98
98
|
}
|
|
99
99
|
});
|
|
@@ -102,7 +102,7 @@ function generateListReportSchemaV2(generateParameters, genericSchema, entityTyp
|
|
|
102
102
|
utils_1.addTableColumnExtensions(appSchema, entityType, v2Page, generateParameters.manifest, generateParameters.fragments);
|
|
103
103
|
const entitySet = generateParameters.serviceAVT?.entitySets?.find((es) => es.name === v2Page.entitySet);
|
|
104
104
|
addEnumForVariantPaths(entityType, entitySet, appSchema, generateParameters.serviceAVT);
|
|
105
|
-
common_1.addEnumForFilterBarAnnotationPath(entityType, appSchema,
|
|
105
|
+
common_1.addEnumForFilterBarAnnotationPath(entityType, appSchema, ux_specification_types_1.DefinitionName.ListReportFilterBar);
|
|
106
106
|
//Delete generic definitions
|
|
107
107
|
delete appSchema.definitions.ResponsiveTableWithMultiSelect;
|
|
108
108
|
delete appSchema.definitions.ResponsiveTableWithInlineDelete;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listReport.js","sourceRoot":"","sources":["../../../../../src/sync/v2/generate/listReport.ts"],"names":[],"mappings":";;;;;;AAAA,mCAAyF;AACzF,sCAAiD;AACjD,
|
|
1
|
+
{"version":3,"file":"listReport.js","sourceRoot":"","sources":["../../../../../src/sync/v2/generate/listReport.ts"],"names":[],"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,uCAAc,CAAC,mBAAmB,CAAC,CAAC;QAE7F,4BAA4B;QAC5B,OAAO,SAAS,CAAC,WAAW,CAAC,8BAA8B,CAAC;QAC5D,OAAO,SAAS,CAAC,WAAW,CAAC,+BAA+B,CAAC;QAC7D,OAAO,SAAS,CAAC,WAAW,CAAC,SAAS,CAAC;QACvC,OAAO,SAAS,CAAC,WAAW,CAAC,eAAe,CAAC;QAC7C,OAAO,SAAS,CAAC,WAAW,CAAC,SAAS,CAAC;QACvC,OAAO,SAAS,CAAC,WAAW,CAAC,cAAc,CAAC;QAC5C,OAAO,SAAS,CAAC,WAAW,CAAC,iBAAiB,CAAC;QAC/C,OAAO,SAAS,CAAC,WAAW,CAAC,OAAO,CAAC;QACrC,OAAO,SAAS,CAAC,WAAW,CAAC,OAAO,CAAC;QACrC,OAAO,SAAS,CAAC,WAAW,CAAC,aAAa,CAAC;KAC9C;IACD,OAAO,SAAS,CAAC;AACrB,CAAC;AA1GD,gEA0GC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GenerateAppSchemaParameters } from '
|
|
1
|
+
import type { GenerateAppSchemaParameters } from '@sap/ux-specification-types';
|
|
2
2
|
/**
|
|
3
3
|
* Generates an app specific schema out of the generic schema.
|
|
4
4
|
* @param {GenerateSchemaParameters} generateParameters - list of API input parameters
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objectPage.d.ts","sourceRoot":"","sources":["../../../../../src/sync/v2/generate/objectPage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"objectPage.d.ts","sourceRoot":"","sources":["../../../../../src/sync/v2/generate/objectPage.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAKR,2BAA2B,EAE9B,MAAM,6BAA6B,CAAC;AAirBrC;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACtC,kBAAkB,EAAE,2BAA2B,EAC/C,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,MAAM,GACvB,MAAM,CAkGR"}
|
|
@@ -6,12 +6,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.generateObjectPageSchemaV2 = void 0;
|
|
7
7
|
const ux_specification_types_1 = require("@sap/ux-specification-types");
|
|
8
8
|
const common_1 = require("../../common");
|
|
9
|
+
const common_2 = require("../../common");
|
|
9
10
|
const utils_1 = require("./utils");
|
|
10
11
|
const import_1 = require("../import");
|
|
11
12
|
const extensionLogger_1 = require("../../../extensionLogger");
|
|
12
13
|
const i18next_1 = __importDefault(require("i18next"));
|
|
13
14
|
const i18n_1 = require("../../../i18n/i18n");
|
|
14
15
|
const types_1 = require("../types");
|
|
16
|
+
const StableIdHelper_1 = require("../../v4/utils/StableIdHelper");
|
|
15
17
|
/**
|
|
16
18
|
* Adds flexChange properties for sub(sections)
|
|
17
19
|
* @param appSchema - app schema in general
|
|
@@ -20,7 +22,7 @@ const types_1 = require("../types");
|
|
|
20
22
|
* @param sectionType - type of section
|
|
21
23
|
*/
|
|
22
24
|
function addFlexChangeForSection(appSchema, schemaSection, property, sectionType) {
|
|
23
|
-
schemaSection.properties[property][
|
|
25
|
+
schemaSection.properties[property][ux_specification_types_1.SchemaTag.artifactType] = ux_specification_types_1.ArtifactType.FlexChange;
|
|
24
26
|
let controlType;
|
|
25
27
|
switch (sectionType) {
|
|
26
28
|
case types_1.SectionTypeV2.Section:
|
|
@@ -45,8 +47,8 @@ function addFlexChangeForSection(appSchema, schemaSection, property, sectionType
|
|
|
45
47
|
if (!controlType) {
|
|
46
48
|
return;
|
|
47
49
|
}
|
|
48
|
-
|
|
49
|
-
schemaSection.properties[property][
|
|
50
|
+
common_2.addPatternForBindingChangeOfEnumOP(appSchema, schemaSection, property);
|
|
51
|
+
schemaSection.properties[property][ux_specification_types_1.SchemaTag.controlType] = controlType;
|
|
50
52
|
}
|
|
51
53
|
/**
|
|
52
54
|
* Callback for adding a single action to headerActions of V2
|
|
@@ -58,16 +60,50 @@ function addFlexChangeForSection(appSchema, schemaSection, property, sectionType
|
|
|
58
60
|
function addHeaderActionCallBackV2(entityType, appSchema, actionAnnotation, headerActions, oDataServiceAVT) {
|
|
59
61
|
return (item, index) => {
|
|
60
62
|
if (!item['Determining'] && item.$Type === "com.sap.vocabularies.UI.v1.DataFieldForAction" /* DataFieldForAction */) {
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
+
const { actionName, actionId, namespace } = common_2.getActionNameAndId(item, entityType, oDataServiceAVT);
|
|
64
|
+
//actionId is used as key in V2, as this is the right part for building the full stable ID
|
|
65
|
+
if (!actionId) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
63
68
|
const description = item.Label || actionName;
|
|
64
|
-
const actionDefinitionKey = `HeaderAction<${
|
|
69
|
+
const actionDefinitionKey = `HeaderAction<${common_2.prepareRef(actionId)}>`;
|
|
65
70
|
appSchema.definitions[actionDefinitionKey] = JSON.parse(JSON.stringify(appSchema.definitions['HeaderAction']));
|
|
66
71
|
const convertedIdentification = actionAnnotation.fullyQualifiedName.replace(`@${"com.sap.vocabularies.UI.v1.Identification" /* Identification */}`, `/@${"com.sap.vocabularies.UI.v1.Identification" /* Identification */}`);
|
|
67
|
-
appSchema.definitions[actionDefinitionKey][
|
|
68
|
-
appSchema.definitions[actionDefinitionKey]
|
|
72
|
+
appSchema.definitions[actionDefinitionKey][ux_specification_types_1.SchemaTag.annotationPath] = `/${convertedIdentification}/${index}`;
|
|
73
|
+
appSchema.definitions[actionDefinitionKey].description = description;
|
|
74
|
+
appSchema.definitions[actionDefinitionKey][ux_specification_types_1.SchemaTag.keys] = [
|
|
75
|
+
{ name: ux_specification_types_1.SchemaKeyName.action, value: actionName }
|
|
76
|
+
];
|
|
77
|
+
if (namespace) {
|
|
78
|
+
appSchema.definitions[actionDefinitionKey][ux_specification_types_1.SchemaTag.target] = namespace;
|
|
79
|
+
}
|
|
69
80
|
headerActions.properties[actionId] = {
|
|
70
|
-
$ref: `${
|
|
81
|
+
$ref: `${common_2.DEFINITION_LINK_PREFIX}${actionDefinitionKey}`
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Callback for adding a single action to footerActions of V2
|
|
88
|
+
* @param {EntityType} entityType - current entity type
|
|
89
|
+
* @param {Definition} appSchema Schema of the app
|
|
90
|
+
* @param {Definition} footerActions - list of footer actions, to be enhanced
|
|
91
|
+
* @param {String} convertedIdentification - converted UI.Identification term
|
|
92
|
+
*/
|
|
93
|
+
function addFooterActionCallBackV2(entityType, appSchema, footerActions, convertedIdentification) {
|
|
94
|
+
return (item, index) => {
|
|
95
|
+
if (item['Determining'] && item.$Type === "com.sap.vocabularies.UI.v1.DataFieldForAction" /* DataFieldForAction */) {
|
|
96
|
+
const action = StableIdHelper_1.getStableIdPartFromDataField(item);
|
|
97
|
+
const actionId = action.split('::').splice(1).join('::');
|
|
98
|
+
const description = common_1.getDataFieldDescription(item, entityType);
|
|
99
|
+
const actionDefinitionKey = common_2.prepareRef(`${ux_specification_types_1.DefinitionName.ObjectPageFooterAction}<${actionId}>`);
|
|
100
|
+
appSchema.definitions[actionDefinitionKey] = {
|
|
101
|
+
...JSON.parse(JSON.stringify(appSchema.definitions[ux_specification_types_1.DefinitionName.ObjectPageFooterAction])),
|
|
102
|
+
description,
|
|
103
|
+
annotationPath: `/${convertedIdentification}/${index}`
|
|
104
|
+
};
|
|
105
|
+
footerActions.properties[actionId] = {
|
|
106
|
+
$ref: `${common_2.DEFINITION_LINK_PREFIX}${actionDefinitionKey}`
|
|
71
107
|
};
|
|
72
108
|
}
|
|
73
109
|
};
|
|
@@ -96,17 +132,17 @@ function ensureCustomColumnDefinitionExists(appSchema, manifest, entitySetName,
|
|
|
96
132
|
suffix = facet.Label.replace(/\s+/g, '');
|
|
97
133
|
}
|
|
98
134
|
if (suffix) {
|
|
99
|
-
customColumnsDefinitionName = `${
|
|
135
|
+
customColumnsDefinitionName = `${ux_specification_types_1.DefinitionName.CustomColumns}<${entitySetName}><${facetKey}><${suffix}>`;
|
|
100
136
|
}
|
|
101
137
|
else {
|
|
102
|
-
customColumnsDefinitionName = `${
|
|
138
|
+
customColumnsDefinitionName = `${ux_specification_types_1.DefinitionName.CustomColumns}<${entitySetName}><${facetKey}>`;
|
|
103
139
|
}
|
|
104
140
|
if (appSchema.definitions[customColumnsDefinitionName]) {
|
|
105
141
|
// Definition is already created - we do not need to create it again
|
|
106
142
|
return customColumnsDefinitionName;
|
|
107
143
|
}
|
|
108
144
|
// Create type specific 'TableCustomColumn' definition - use entity set as type.
|
|
109
|
-
const customColumnDefinitionName = `${
|
|
145
|
+
const customColumnDefinitionName = `${ux_specification_types_1.DefinitionName.CustomColumn}<${entitySetName}>`;
|
|
110
146
|
const customColumnDefinition = JSON.parse(JSON.stringify(appSchema.definitions['TableCustomColumn']));
|
|
111
147
|
appSchema.definitions[customColumnDefinitionName] = customColumnDefinition;
|
|
112
148
|
// Update definitions for type specific custom columns
|
|
@@ -136,7 +172,7 @@ function addAppSchemaDefinition(appSchema, appSchemaSection, sectionType, mainSe
|
|
|
136
172
|
* @param {string} definitionKey key which the section should point to
|
|
137
173
|
*/
|
|
138
174
|
function addSectionReference(sections, key, definitionKey) {
|
|
139
|
-
sections.properties[key] = { $ref: `${
|
|
175
|
+
sections.properties[key] = { $ref: `${common_2.DEFINITION_LINK_PREFIX}${definitionKey}` };
|
|
140
176
|
}
|
|
141
177
|
/**
|
|
142
178
|
* Reuse function for all table types, copies and adapts the generic definition
|
|
@@ -146,21 +182,22 @@ function addSectionReference(sections, key, definitionKey) {
|
|
|
146
182
|
* @param appSchema - app-specific schema, to be updated
|
|
147
183
|
*/
|
|
148
184
|
function addTableDefinition(tableType, facetId, facet, appSchema) {
|
|
149
|
-
const schemaId =
|
|
185
|
+
const schemaId = common_2.prepareRef(`${tableType}<${facetId}>`);
|
|
150
186
|
appSchema.definitions[schemaId] = JSON.parse(JSON.stringify(appSchema.definitions[tableType]));
|
|
151
|
-
appSchema.definitions[schemaId]['properties']['columns']['$ref'] =
|
|
152
|
-
appSchema.definitions[schemaId].properties.toolBar['$ref'] = `${
|
|
153
|
-
appSchema.definitions[schemaId][
|
|
187
|
+
appSchema.definitions[schemaId]['properties']['columns']['$ref'] = common_2.DEFINITION_LINK_PREFIX + facetId;
|
|
188
|
+
appSchema.definitions[schemaId].properties.toolBar['$ref'] = `${common_2.DEFINITION_LINK_PREFIX}ObjectPageToolBar<${facetId}>`;
|
|
189
|
+
appSchema.definitions[schemaId][ux_specification_types_1.SchemaTag.annotationPath] = facet.annotationPath;
|
|
154
190
|
if (facet.ID !== undefined) {
|
|
155
|
-
appSchema.definitions[schemaId].title =
|
|
191
|
+
appSchema.definitions[schemaId].title = ux_specification_types_1.FacetTitlePrefix + facet.ID;
|
|
192
|
+
appSchema.definitions[schemaId][ux_specification_types_1.SchemaTag.keys] = [{ name: `ID`, value: facet.ID }];
|
|
156
193
|
}
|
|
157
|
-
appSchema.definitions[schemaId].description =
|
|
194
|
+
appSchema.definitions[schemaId].description = ux_specification_types_1.DefinitionName.Table;
|
|
158
195
|
//adjust quickVariantSelection
|
|
159
|
-
appSchema.definitions[schemaId].properties['quickVariantSelection']['$ref'] = `${
|
|
196
|
+
appSchema.definitions[schemaId].properties['quickVariantSelection']['$ref'] = `${common_2.DEFINITION_LINK_PREFIX}QuickVariantSelectionOP<${facetId}>`;
|
|
160
197
|
appSchema.definitions[`QuickVariantSelectionOP<${facetId}>`] = JSON.parse(JSON.stringify(appSchema.definitions['QuickVariantSelectionOP']));
|
|
161
198
|
appSchema.definitions[`QuickVariant<${facetId}>`] = JSON.parse(JSON.stringify(appSchema.definitions['QuickVariant']));
|
|
162
|
-
appSchema.definitions[`QuickVariantSelectionOP<${facetId}>`].properties.variants.patternProperties['^[0-9]+$']['$ref'] = `${
|
|
163
|
-
|
|
199
|
+
appSchema.definitions[`QuickVariantSelectionOP<${facetId}>`].properties.variants.patternProperties['^[0-9]+$']['$ref'] = `${common_2.DEFINITION_LINK_PREFIX}QuickVariant<${facetId}>`;
|
|
200
|
+
common_2.addEnumForSingleTabVariant(facet.entityType, appSchema, `QuickVariant<${facetId}>`);
|
|
164
201
|
}
|
|
165
202
|
/**
|
|
166
203
|
* Adds definitions for line items in object page sections to the app schema
|
|
@@ -172,35 +209,35 @@ function addTableDefinition(tableType, facetId, facet, appSchema) {
|
|
|
172
209
|
* @param {SectionTypeV2} sectionType (sub)section type
|
|
173
210
|
*/
|
|
174
211
|
function handleLineItem(generateParameters, facetKey, appSchema, facet, facets, sectionType) {
|
|
175
|
-
if (facet.base !==
|
|
212
|
+
if (facet.base !== ux_specification_types_1.FacetBase.LineItem || !facetKey) {
|
|
176
213
|
//no properties
|
|
177
214
|
return;
|
|
178
215
|
}
|
|
179
216
|
const navigationProperty = facetKey.split('::')[0];
|
|
180
217
|
const schemaIdForOpSection = `${sectionType}<${facetKey}>`;
|
|
181
|
-
appSchema.definitions[schemaIdForOpSection] =
|
|
218
|
+
appSchema.definitions[schemaIdForOpSection] = common_2.createDefaultSection(appSchema, facet, facetKey);
|
|
182
219
|
const appSchemaSection = appSchema.definitions[schemaIdForOpSection];
|
|
183
220
|
addAppSchemaDefinition(appSchema, appSchemaSection, sectionType, types_1.SectionTypeV2.SectionTable);
|
|
184
|
-
appSchemaSection.properties.table = JSON.parse(JSON.stringify(appSchema.definitions[types_1.SectionTypeV2.SectionTable]['properties'][
|
|
221
|
+
appSchemaSection.properties.table = JSON.parse(JSON.stringify(appSchema.definitions[types_1.SectionTypeV2.SectionTable]['properties'][ux_specification_types_1.PropertyName.table]));
|
|
185
222
|
appSchemaSection.properties.table.anyOf = [
|
|
186
223
|
{
|
|
187
|
-
$ref: `${
|
|
224
|
+
$ref: `${common_2.DEFINITION_LINK_PREFIX}ObjectPageResponsiveTableWithMultiSelect<${facetKey}>`
|
|
188
225
|
},
|
|
189
226
|
{
|
|
190
|
-
$ref: `${
|
|
227
|
+
$ref: `${common_2.DEFINITION_LINK_PREFIX}ObjectPageResponsiveTableWithInlineDelete<${facetKey}>`
|
|
191
228
|
},
|
|
192
229
|
{
|
|
193
|
-
$ref: `${
|
|
230
|
+
$ref: `${common_2.DEFINITION_LINK_PREFIX}ObjectPageAnalyticalTable<${facetKey}>`
|
|
194
231
|
},
|
|
195
232
|
{
|
|
196
|
-
$ref: `${
|
|
233
|
+
$ref: `${common_2.DEFINITION_LINK_PREFIX}ObjectPageGridTable<${facetKey}>`
|
|
197
234
|
},
|
|
198
235
|
{
|
|
199
|
-
$ref: `${
|
|
236
|
+
$ref: `${common_2.DEFINITION_LINK_PREFIX}ObjectPageTreeTable<${facetKey}>`
|
|
200
237
|
}
|
|
201
238
|
];
|
|
202
|
-
appSchemaSection[
|
|
203
|
-
|
|
239
|
+
appSchemaSection[ux_specification_types_1.SchemaTag.annotationPath] = facet.annotationPath;
|
|
240
|
+
common_2.addSectionTitleAndDescription(facet, appSchemaSection, facetKey);
|
|
204
241
|
addTableDefinition('ObjectPageResponsiveTableWithMultiSelect', facetKey, facet, appSchema);
|
|
205
242
|
addTableDefinition('ObjectPageResponsiveTableWithInlineDelete', facetKey, facet, appSchema);
|
|
206
243
|
addTableDefinition('ObjectPageGridTable', facetKey, facet, appSchema);
|
|
@@ -208,13 +245,13 @@ function handleLineItem(generateParameters, facetKey, appSchema, facet, facets,
|
|
|
208
245
|
addTableDefinition('ObjectPageAnalyticalTable', facetKey, facet, appSchema);
|
|
209
246
|
let customColumnDefinitionKey;
|
|
210
247
|
// Find target entity
|
|
211
|
-
const targetEntitySet =
|
|
248
|
+
const targetEntitySet = common_2.determineEntitySetOfFacet(facet, generateParameters.serviceAVT);
|
|
212
249
|
if (targetEntitySet) {
|
|
213
250
|
// Make sure that custom columns definitions are created for passed entity
|
|
214
251
|
customColumnDefinitionKey = ensureCustomColumnDefinitionExists(appSchema, generateParameters.manifest, targetEntitySet.name, facet.entityType.name, generateParameters.serviceAVT, facet, facetKey, generateParameters.fragments);
|
|
215
252
|
}
|
|
216
253
|
for (const facetItem in facets) {
|
|
217
|
-
if (facets[facetItem].base ===
|
|
254
|
+
if (facets[facetItem].base === ux_specification_types_1.FacetBase.LineItem && facetItem.includes(navigationProperty)) {
|
|
218
255
|
utils_1.addLineItemsType(appSchema, facets[facetItem].target, facets[facetItem].entityType, facetItem, customColumnDefinitionKey);
|
|
219
256
|
}
|
|
220
257
|
}
|
|
@@ -228,7 +265,7 @@ function handleLineItem(generateParameters, facetKey, appSchema, facet, facets,
|
|
|
228
265
|
* @param {SectionTypeV2} sectionType (sub)section type
|
|
229
266
|
*/
|
|
230
267
|
function handleSubSection(appSchema, definitionKey, facet, facetId, sectionType) {
|
|
231
|
-
appSchema.definitions[definitionKey] =
|
|
268
|
+
appSchema.definitions[definitionKey] = common_2.createDefaultSection(appSchema, facet, facetId);
|
|
232
269
|
const appSchemaSection = appSchema.definitions[definitionKey];
|
|
233
270
|
addAppSchemaDefinition(appSchema, appSchemaSection, sectionType, types_1.SectionTypeV2.SubSection);
|
|
234
271
|
appSchemaSection.properties.subsections = {
|
|
@@ -237,7 +274,7 @@ function handleSubSection(appSchema, definitionKey, facet, facetId, sectionType)
|
|
|
237
274
|
properties: {},
|
|
238
275
|
additionalProperties: false
|
|
239
276
|
};
|
|
240
|
-
appSchemaSection.properties.subsections[
|
|
277
|
+
appSchemaSection.properties.subsections[ux_specification_types_1.SchemaTag.isViewNode] = true;
|
|
241
278
|
}
|
|
242
279
|
/**
|
|
243
280
|
* Method fills new chart section with properties.
|
|
@@ -248,7 +285,7 @@ function handleSubSection(appSchema, definitionKey, facet, facetId, sectionType)
|
|
|
248
285
|
* @param {SectionTypeV2} sectionType (sub)section type
|
|
249
286
|
*/
|
|
250
287
|
function handleSectionChart(appSchema, definitionKey, facet, facetKey, sectionType) {
|
|
251
|
-
appSchema.definitions[definitionKey] =
|
|
288
|
+
appSchema.definitions[definitionKey] = common_2.createDefaultSection(appSchema, facet, facetKey);
|
|
252
289
|
const appSchemaSection = appSchema.definitions[definitionKey];
|
|
253
290
|
addAppSchemaDefinition(appSchema, appSchemaSection, sectionType, types_1.SectionTypeV2.SectionChart);
|
|
254
291
|
}
|
|
@@ -261,12 +298,12 @@ function handleSectionChart(appSchema, definitionKey, facet, facetKey, sectionTy
|
|
|
261
298
|
* @param {SectionTypeV2} sectionType (sub)section type
|
|
262
299
|
* @return {object} returns filled form section in app schema.
|
|
263
300
|
*/
|
|
264
|
-
function
|
|
265
|
-
appSchema.definitions[definitionKey] =
|
|
301
|
+
function handleFormSection(appSchema, definitionKey, facet, facetKey, sectionType) {
|
|
302
|
+
appSchema.definitions[definitionKey] = common_2.createDefaultSection(appSchema, facet, facetKey);
|
|
266
303
|
const appSchemaSection = appSchema.definitions[definitionKey];
|
|
267
304
|
addAppSchemaDefinition(appSchema, appSchemaSection, sectionType, types_1.SectionTypeV2.SectionForm);
|
|
268
|
-
appSchemaSection[
|
|
269
|
-
appSchemaSection[
|
|
305
|
+
appSchemaSection[ux_specification_types_1.SchemaTag.annotationPath] = facet.annotationPath;
|
|
306
|
+
appSchemaSection[ux_specification_types_1.SchemaTag.isViewNode] = true;
|
|
270
307
|
return appSchemaSection;
|
|
271
308
|
}
|
|
272
309
|
/**
|
|
@@ -277,22 +314,22 @@ function handleAppSchemaFormSection(appSchema, definitionKey, facet, facetKey, s
|
|
|
277
314
|
*/
|
|
278
315
|
function getSectionType(facetType, isSubSection) {
|
|
279
316
|
const sectionTypeMapping = new Map([
|
|
280
|
-
[
|
|
281
|
-
[
|
|
282
|
-
[
|
|
283
|
-
[
|
|
284
|
-
[
|
|
285
|
-
[
|
|
286
|
-
[
|
|
317
|
+
[ux_specification_types_1.FacetBase.CollectionFacet, types_1.SectionTypeV2.Section],
|
|
318
|
+
[ux_specification_types_1.FacetBase.LineItem, types_1.SectionTypeV2.SectionTable],
|
|
319
|
+
[ux_specification_types_1.FacetBase.Chart, types_1.SectionTypeV2.SectionChart],
|
|
320
|
+
[ux_specification_types_1.FacetBase.Address, types_1.SectionTypeV2.SectionAddress],
|
|
321
|
+
[ux_specification_types_1.FacetBase.Contact, types_1.SectionTypeV2.SectionContact],
|
|
322
|
+
[ux_specification_types_1.FacetBase.Form, types_1.SectionTypeV2.SectionForm],
|
|
323
|
+
[ux_specification_types_1.FacetBase.Identification, types_1.SectionTypeV2.SectionForm]
|
|
287
324
|
]);
|
|
288
325
|
const subSectionTypeMapping = new Map([
|
|
289
|
-
[
|
|
290
|
-
[
|
|
291
|
-
[
|
|
292
|
-
[
|
|
293
|
-
[
|
|
294
|
-
[
|
|
295
|
-
[
|
|
326
|
+
[ux_specification_types_1.FacetBase.CollectionFacet, types_1.SectionTypeV2.SubSection],
|
|
327
|
+
[ux_specification_types_1.FacetBase.LineItem, types_1.SectionTypeV2.SubSectionTable],
|
|
328
|
+
[ux_specification_types_1.FacetBase.Chart, types_1.SectionTypeV2.SubSectionChart],
|
|
329
|
+
[ux_specification_types_1.FacetBase.Address, types_1.SectionTypeV2.SubSectionAddress],
|
|
330
|
+
[ux_specification_types_1.FacetBase.Contact, types_1.SectionTypeV2.SubSectionContact],
|
|
331
|
+
[ux_specification_types_1.FacetBase.Form, types_1.SectionTypeV2.SubSectionForm],
|
|
332
|
+
[ux_specification_types_1.FacetBase.Identification, types_1.SectionTypeV2.SubSectionForm]
|
|
296
333
|
]);
|
|
297
334
|
if (isSubSection) {
|
|
298
335
|
return subSectionTypeMapping.get(facetType);
|
|
@@ -348,7 +385,7 @@ function addSection(generateParameters, facets, facetKey, sections, appSchema, i
|
|
|
348
385
|
handleLineItem(generateParameters, facetKey, appSchema, facet, facets, sectionType);
|
|
349
386
|
//add fields for createWithParameterDialog
|
|
350
387
|
const floorplanSuffix = 'OP';
|
|
351
|
-
|
|
388
|
+
common_2.addFieldsType(appSchema, facet.entityType, floorplanSuffix);
|
|
352
389
|
break;
|
|
353
390
|
}
|
|
354
391
|
case types_1.SectionTypeV2.SectionChart:
|
|
@@ -359,24 +396,23 @@ function addSection(generateParameters, facets, facetKey, sections, appSchema, i
|
|
|
359
396
|
}
|
|
360
397
|
case types_1.SectionTypeV2.SectionForm:
|
|
361
398
|
case types_1.SectionTypeV2.SubSectionForm: {
|
|
362
|
-
const
|
|
363
|
-
|
|
364
|
-
common_1.handleForm(ux_specification_types_1.SectionType.Section, facet, appSchemaSection, appSchema, ux_specification_types_1.FioriElementsVersion.v2, withActions);
|
|
399
|
+
const appSchemaSection = handleFormSection(appSchema, definitionKey, facet, facetKey, sectionType);
|
|
400
|
+
common_2.handleForm(ux_specification_types_1.SectionType.Section, facet, appSchemaSection, appSchema, ux_specification_types_1.FioriElementsVersion.v2, facetKey);
|
|
365
401
|
break;
|
|
366
402
|
}
|
|
367
403
|
case types_1.SectionTypeV2.SectionAddress:
|
|
368
404
|
case types_1.SectionTypeV2.SectionContact: {
|
|
369
|
-
|
|
405
|
+
common_2.handleAddressContact(facet, facetKey, sections, appSchema, ux_specification_types_1.SectionType.Section, undefined, 'V2');
|
|
370
406
|
break;
|
|
371
407
|
}
|
|
372
408
|
case types_1.SectionTypeV2.SubSectionAddress:
|
|
373
409
|
case types_1.SectionTypeV2.SubSectionContact: {
|
|
374
|
-
|
|
410
|
+
common_2.handleAddressContact(facet, facetKey, sections, appSchema, ux_specification_types_1.SectionType.Section, ux_specification_types_1.SectionType.SubSection, 'V2');
|
|
375
411
|
break;
|
|
376
412
|
}
|
|
377
413
|
default: {
|
|
378
414
|
// Other facets -> only default properties of ObjectPageSection
|
|
379
|
-
sections.properties[facetKey] =
|
|
415
|
+
sections.properties[facetKey] = common_2.createDefaultSection(appSchema, facet, facetKey);
|
|
380
416
|
}
|
|
381
417
|
}
|
|
382
418
|
}
|
|
@@ -389,16 +425,16 @@ function addSection(generateParameters, facets, facetKey, sections, appSchema, i
|
|
|
389
425
|
* @param {SapUiAppPagesV2} pages - list of (manifest) pages
|
|
390
426
|
*/
|
|
391
427
|
function addSections(generateParameters, appSchema, entityType, entitySetName, pages) {
|
|
392
|
-
const sections = appSchema.definitions[
|
|
393
|
-
sections[
|
|
428
|
+
const sections = appSchema.definitions[ux_specification_types_1.DefinitionName.Sections];
|
|
429
|
+
sections[ux_specification_types_1.SchemaTag.isViewNode] = true;
|
|
394
430
|
if (entityType) {
|
|
395
|
-
sections[
|
|
431
|
+
sections[ux_specification_types_1.SchemaTag.annotationPath] = `/${entityType.fullyQualifiedName}/@${"com.sap.vocabularies.UI.v1.Facets" /* Facets */}`;
|
|
396
432
|
}
|
|
397
433
|
if (!pages) {
|
|
398
434
|
return;
|
|
399
435
|
}
|
|
400
436
|
// Get facet annotations
|
|
401
|
-
const facets =
|
|
437
|
+
const facets = common_2.getObjectPageFacets(entityType, generateParameters.serviceAVT, ux_specification_types_1.FioriElementsVersion.v2, generateParameters.logger);
|
|
402
438
|
if (!facets || Object.keys(facets).length === 0) {
|
|
403
439
|
return;
|
|
404
440
|
}
|
|
@@ -429,9 +465,9 @@ function addSections(generateParameters, appSchema, entityType, entitySetName, p
|
|
|
429
465
|
* @param {ConvertedMetadata} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
|
|
430
466
|
*/
|
|
431
467
|
function addHeader(appSchema, entityType, oDataServiceAVT) {
|
|
432
|
-
|
|
468
|
+
common_2.addCommonHeaderSchema(appSchema, entityType);
|
|
433
469
|
//Add header actions
|
|
434
|
-
|
|
470
|
+
common_2.addHeaderActions(appSchema, entityType, oDataServiceAVT, addHeaderActionCallBackV2);
|
|
435
471
|
}
|
|
436
472
|
/**
|
|
437
473
|
* Adds the related facets keys 'enum' to the app schema
|
|
@@ -443,9 +479,9 @@ function addHeader(appSchema, entityType, oDataServiceAVT) {
|
|
|
443
479
|
function addRelatedFacetKeysType(schema, entityType, oDataServiceAVT, logger) {
|
|
444
480
|
// Find sections from annotation
|
|
445
481
|
// And create new definition in schema as enum with description
|
|
446
|
-
const facetSections =
|
|
482
|
+
const facetSections = common_2.getObjectPageFacetSection(entityType, oDataServiceAVT, logger, undefined, true);
|
|
447
483
|
if (facetSections) {
|
|
448
|
-
|
|
484
|
+
common_2.addDefinitionForRelatedFacetKeys(schema, ['ObjectPageCustomSectionFragment', 'ObjectPageCustomSectionView'], facetSections, ['ID', 'key']);
|
|
449
485
|
}
|
|
450
486
|
}
|
|
451
487
|
/**
|
|
@@ -466,8 +502,8 @@ function generateObjectPageSchemaV2(generateParameters, genericSchema, entityTyp
|
|
|
466
502
|
additionalSections[name] = appSchema.definitions['CustomSections'].properties[name];
|
|
467
503
|
}
|
|
468
504
|
// Change reference to generated sections
|
|
469
|
-
appSchema.properties[
|
|
470
|
-
$ref:
|
|
505
|
+
appSchema.properties[ux_specification_types_1.PropertyName.sections] = {
|
|
506
|
+
$ref: common_2.DEFINITION_LINK_PREFIX + 'Sections'
|
|
471
507
|
};
|
|
472
508
|
const entitySet = generateParameters.serviceAVT?.entitySets &&
|
|
473
509
|
generateParameters.serviceAVT.entitySets.find((es) => es.entityType.name === entityTypeName || es.name === entityTypeName);
|
|
@@ -476,7 +512,7 @@ function generateObjectPageSchemaV2(generateParameters, genericSchema, entityTyp
|
|
|
476
512
|
severity: "error" /* Error */,
|
|
477
513
|
message: i18next_1.default.t('NOENTITYSET4NAME', { entityType: entityTypeName }),
|
|
478
514
|
location: {
|
|
479
|
-
path:
|
|
515
|
+
path: ux_specification_types_1.METADATAPATH
|
|
480
516
|
}
|
|
481
517
|
});
|
|
482
518
|
return appSchema;
|
|
@@ -489,7 +525,7 @@ function generateObjectPageSchemaV2(generateParameters, genericSchema, entityTyp
|
|
|
489
525
|
severity: "error" /* Error */,
|
|
490
526
|
message: i18next_1.default.t('NOPAGES', { appId: generateParameters.manifest['sap.app']['id'] }),
|
|
491
527
|
location: {
|
|
492
|
-
path:
|
|
528
|
+
path: ux_specification_types_1.MANIFESTPATH,
|
|
493
529
|
range: [ux_specification_types_1.ManifestSection.generic]
|
|
494
530
|
}
|
|
495
531
|
});
|
|
@@ -498,7 +534,7 @@ function generateObjectPageSchemaV2(generateParameters, genericSchema, entityTyp
|
|
|
498
534
|
// Add header
|
|
499
535
|
addHeader(appSchema, entityType, generateParameters.serviceAVT);
|
|
500
536
|
// Add sections
|
|
501
|
-
appSchema.definitions[
|
|
537
|
+
appSchema.definitions[ux_specification_types_1.DefinitionName.Sections] = {
|
|
502
538
|
type: 'object',
|
|
503
539
|
properties: {},
|
|
504
540
|
description: 'Sections',
|
|
@@ -515,13 +551,13 @@ function generateObjectPageSchemaV2(generateParameters, genericSchema, entityTyp
|
|
|
515
551
|
properties: additionalSections,
|
|
516
552
|
additionalProperties: false
|
|
517
553
|
};
|
|
518
|
-
appSchema.definitions.Sections[
|
|
554
|
+
appSchema.definitions.Sections[ux_specification_types_1.SchemaTag.isViewNode] = true;
|
|
519
555
|
}
|
|
520
556
|
else {
|
|
521
|
-
delete appSchema.properties[
|
|
557
|
+
delete appSchema.properties[ux_specification_types_1.PropertyName.sections];
|
|
522
558
|
}
|
|
523
559
|
}
|
|
524
|
-
|
|
560
|
+
common_2.addFooterActions(appSchema, generateParameters, ux_specification_types_1.FioriElementsVersion.v2, addFooterActionCallBackV2);
|
|
525
561
|
// Eliminate generic definitions
|
|
526
562
|
delete appSchema.definitions['GenericSections'];
|
|
527
563
|
delete appSchema.definitions['GenericSubSections'];
|