@sap/ux-specification 1.96.19 → 1.96.21
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/runDocu-min.js +27 -2
- package/dist/documentation/runDocu-min.js.map +7 -0
- package/dist/documentation/styleDocu.css +32 -28
- package/dist/documentation/v2/v2-AnalyticalListPage.html +20 -8
- package/dist/documentation/v2/v2-ApplicationV2.html +20 -8
- package/dist/documentation/v2/v2-ListReport.html +20 -8
- package/dist/documentation/v2/v2-ObjectPage.html +20 -8
- package/dist/documentation/v2/v2-OverviewPage.html +20 -8
- package/dist/documentation/v4/v4-ApplicationV4.html +20 -8
- package/dist/documentation/v4/v4-FreestylePage.html +20 -8
- package/dist/documentation/v4/v4-ListReport.html +20 -8
- package/dist/documentation/v4/v4-ObjectPage.html +20 -8
- package/dist/index-min.js +123 -2
- package/dist/index-min.js.map +7 -0
- package/dist/schemas/v2/AnalyticalListPageConfig.json +12 -9
- package/dist/schemas/v2/ListReportConfig.json +133 -130
- package/dist/schemas/v2/ObjectPageConfig.json +2 -3
- package/dist/schemas/v4/ApplicationV4.json +22 -1
- package/dist/schemas/v4/FreestylePageConfig.json +3 -0
- package/dist/schemas/v4/ListReportConfig.json +7 -2
- package/dist/schemas/v4/ObjectPageConfig.json +1 -2
- package/dist/scripts/extractDocu.d.ts +1 -0
- package/dist/scripts/extractDocu.d.ts.map +1 -0
- package/dist/scripts/extractDocu.js +495 -0
- package/dist/scripts/extractDocu.js.map +1 -0
- package/dist/scripts/runDocu.d.ts +1 -0
- package/dist/scripts/runDocu.d.ts.map +1 -0
- package/dist/scripts/runDocu.js +579 -0
- package/dist/scripts/runDocu.js.map +1 -0
- package/dist/scripts/spec.d.ts +1 -0
- package/dist/scripts/spec.d.ts.map +1 -0
- package/dist/scripts/spec.js +114 -0
- package/dist/scripts/spec.js.map +1 -0
- package/dist/scripts/to-json-schema.d.ts +2 -1
- package/dist/scripts/to-json-schema.d.ts.map +1 -0
- package/dist/scripts/to-json-schema.js +132 -0
- package/dist/scripts/to-json-schema.js.map +1 -0
- package/dist/src/api.d.ts +3 -2
- package/dist/src/api.d.ts.map +1 -0
- package/dist/src/api.js +190 -0
- package/dist/src/api.js.map +1 -0
- package/dist/src/apiTypes.d.ts +20 -22
- package/dist/src/apiTypes.d.ts.map +1 -0
- package/dist/src/apiTypes.js +22 -0
- package/dist/src/apiTypes.js.map +1 -0
- package/dist/src/extensionLogger.d.ts +1 -0
- package/dist/src/extensionLogger.d.ts.map +1 -0
- package/dist/src/extensionLogger.js +39 -0
- package/dist/src/extensionLogger.js.map +1 -0
- package/dist/src/i18n/i18n.d.ts +1 -0
- package/dist/src/i18n/i18n.d.ts.map +1 -0
- package/dist/src/i18n/i18n.js +25 -0
- package/dist/src/i18n/i18n.js.map +1 -0
- package/dist/src/index.d.ts +3 -2
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +13 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/project.d.ts +3 -1
- package/dist/src/project.d.ts.map +1 -0
- package/dist/src/project.js +149 -0
- package/dist/src/project.js.map +1 -0
- package/dist/src/specification/schemaAccess.d.ts +7 -10
- package/dist/src/specification/schemaAccess.d.ts.map +1 -0
- package/dist/src/specification/schemaAccess.js +60 -0
- package/dist/src/specification/schemaAccess.js.map +1 -0
- package/dist/src/sync/common/appProvider.d.ts +5 -6
- package/dist/src/sync/common/appProvider.d.ts.map +1 -0
- package/dist/src/sync/common/appProvider.js +133 -0
- package/dist/src/sync/common/appProvider.js.map +1 -0
- package/dist/src/sync/common/decoration/control.d.ts +1 -0
- package/dist/src/sync/common/decoration/control.d.ts.map +1 -0
- package/dist/src/sync/common/decoration/control.js +211 -0
- package/dist/src/sync/common/decoration/control.js.map +1 -0
- package/dist/src/sync/common/decoration/decorators.d.ts +1 -0
- package/dist/src/sync/common/decoration/decorators.d.ts.map +1 -0
- package/dist/src/sync/common/decoration/decorators.js +45 -0
- package/dist/src/sync/common/decoration/decorators.js.map +1 -0
- package/dist/src/sync/common/decoration/factory.d.ts +2 -1
- package/dist/src/sync/common/decoration/factory.d.ts.map +1 -0
- package/dist/src/sync/common/decoration/factory.js +48 -0
- package/dist/src/sync/common/decoration/factory.js.map +1 -0
- package/dist/src/sync/common/decoration/flex.d.ts +2 -4
- package/dist/src/sync/common/decoration/flex.d.ts.map +1 -0
- package/dist/src/sync/common/decoration/flex.js +8 -0
- package/dist/src/sync/common/decoration/flex.js.map +1 -0
- package/dist/src/sync/common/decoration/index.d.ts +1 -0
- package/dist/src/sync/common/decoration/index.d.ts.map +1 -0
- package/dist/src/sync/common/decoration/index.js +9 -0
- package/dist/src/sync/common/decoration/index.js.map +1 -0
- package/dist/src/sync/common/flexUtils.d.ts +3 -4
- package/dist/src/sync/common/flexUtils.d.ts.map +1 -0
- package/dist/src/sync/common/flexUtils.js +94 -0
- package/dist/src/sync/common/flexUtils.js.map +1 -0
- package/dist/src/sync/common/generate/index.d.ts +1 -0
- package/dist/src/sync/common/generate/index.d.ts.map +1 -0
- package/dist/src/sync/common/generate/index.js +8 -0
- package/dist/src/sync/common/generate/index.js.map +1 -0
- package/dist/src/sync/common/generate/objectPage.d.ts +4 -3
- package/dist/src/sync/common/generate/objectPage.d.ts.map +1 -0
- package/dist/src/sync/common/generate/objectPage.js +378 -0
- package/dist/src/sync/common/generate/objectPage.js.map +1 -0
- package/dist/src/sync/common/generate/utils.d.ts +3 -1
- package/dist/src/sync/common/generate/utils.d.ts.map +1 -0
- package/dist/src/sync/common/generate/utils.js +487 -0
- package/dist/src/sync/common/generate/utils.js.map +1 -0
- package/dist/src/sync/common/i18n.json +23 -0
- package/dist/src/sync/common/import/utils.d.ts +1 -0
- package/dist/src/sync/common/import/utils.d.ts.map +1 -0
- package/dist/src/sync/common/import/utils.js +106 -0
- package/dist/src/sync/common/import/utils.js.map +1 -0
- package/dist/src/sync/common/importProject.d.ts +1 -0
- package/dist/src/sync/common/importProject.d.ts.map +1 -0
- package/dist/src/sync/common/importProject.js +339 -0
- package/dist/src/sync/common/importProject.js.map +1 -0
- package/dist/src/sync/common/index.d.ts +1 -0
- package/dist/src/sync/common/index.d.ts.map +1 -0
- package/dist/src/sync/common/index.js +15 -0
- package/dist/src/sync/common/index.js.map +1 -0
- package/dist/src/sync/common/types.d.ts +7 -54
- package/dist/src/sync/common/types.d.ts.map +1 -0
- package/dist/src/sync/common/types.js +175 -0
- package/dist/src/sync/common/types.js.map +1 -0
- package/dist/src/sync/common/utils.d.ts +6 -7
- package/dist/src/sync/common/utils.d.ts.map +1 -0
- package/dist/src/sync/common/utils.js +1244 -0
- package/dist/src/sync/common/utils.js.map +1 -0
- package/dist/src/sync/i18n.d.ts +1 -0
- package/dist/src/sync/i18n.d.ts.map +1 -0
- package/dist/src/sync/i18n.js +15 -0
- package/dist/src/sync/i18n.js.map +1 -0
- package/dist/src/sync/v2/application.d.ts +8 -7
- package/dist/src/sync/v2/application.d.ts.map +1 -0
- package/dist/src/sync/v2/application.js +189 -0
- package/dist/src/sync/v2/application.js.map +1 -0
- package/dist/src/sync/v2/export/controls/Action.d.ts +5 -4
- package/dist/src/sync/v2/export/controls/Action.d.ts.map +1 -0
- package/dist/src/sync/v2/export/controls/Action.js +127 -0
- package/dist/src/sync/v2/export/controls/Action.js.map +1 -0
- package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.d.ts +4 -3
- package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.d.ts.map +1 -0
- package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js +73 -0
- package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js.map +1 -0
- package/dist/src/sync/v2/export/controls/AnalyticalListPageKPI.d.ts +3 -2
- package/dist/src/sync/v2/export/controls/AnalyticalListPageKPI.d.ts.map +1 -0
- package/dist/src/sync/v2/export/controls/AnalyticalListPageKPI.js +56 -0
- package/dist/src/sync/v2/export/controls/AnalyticalListPageKPI.js.map +1 -0
- package/dist/src/sync/v2/export/controls/Card.d.ts +31 -30
- package/dist/src/sync/v2/export/controls/Card.d.ts.map +1 -0
- package/dist/src/sync/v2/export/controls/Card.js +655 -0
- package/dist/src/sync/v2/export/controls/Card.js.map +1 -0
- package/dist/src/sync/v2/export/controls/Field.d.ts +3 -2
- package/dist/src/sync/v2/export/controls/Field.d.ts.map +1 -0
- package/dist/src/sync/v2/export/controls/Field.js +41 -0
- package/dist/src/sync/v2/export/controls/Field.js.map +1 -0
- package/dist/src/sync/v2/export/controls/FilterBar.d.ts +14 -14
- package/dist/src/sync/v2/export/controls/FilterBar.d.ts.map +1 -0
- package/dist/src/sync/v2/export/controls/FilterBar.js +283 -0
- package/dist/src/sync/v2/export/controls/FilterBar.js.map +1 -0
- package/dist/src/sync/v2/export/controls/FormAction.d.ts +4 -3
- package/dist/src/sync/v2/export/controls/FormAction.d.ts.map +1 -0
- package/dist/src/sync/v2/export/controls/FormAction.js +96 -0
- package/dist/src/sync/v2/export/controls/FormAction.js.map +1 -0
- package/dist/src/sync/v2/export/controls/Fragment.d.ts +6 -5
- package/dist/src/sync/v2/export/controls/Fragment.d.ts.map +1 -0
- package/dist/src/sync/v2/export/controls/Fragment.js +580 -0
- package/dist/src/sync/v2/export/controls/Fragment.js.map +1 -0
- package/dist/src/sync/v2/export/controls/ObjectPageChart.d.ts +4 -3
- package/dist/src/sync/v2/export/controls/ObjectPageChart.d.ts.map +1 -0
- package/dist/src/sync/v2/export/controls/ObjectPageChart.js +37 -0
- package/dist/src/sync/v2/export/controls/ObjectPageChart.js.map +1 -0
- package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.d.ts +7 -8
- package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.d.ts.map +1 -0
- package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.js +110 -0
- package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.js.map +1 -0
- package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.d.ts +3 -2
- package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.d.ts.map +1 -0
- package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.js +62 -0
- package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.js.map +1 -0
- package/dist/src/sync/v2/export/controls/ObjectPageHeader.d.ts +3 -2
- package/dist/src/sync/v2/export/controls/ObjectPageHeader.d.ts.map +1 -0
- package/dist/src/sync/v2/export/controls/ObjectPageHeader.js +61 -0
- package/dist/src/sync/v2/export/controls/ObjectPageHeader.js.map +1 -0
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.d.ts +3 -2
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.d.ts.map +1 -0
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js +62 -0
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js.map +1 -0
- package/dist/src/sync/v2/export/controls/ObjectPageLayout.d.ts +3 -2
- package/dist/src/sync/v2/export/controls/ObjectPageLayout.d.ts.map +1 -0
- package/dist/src/sync/v2/export/controls/ObjectPageLayout.js +59 -0
- package/dist/src/sync/v2/export/controls/ObjectPageLayout.js.map +1 -0
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.d.ts +14 -13
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.d.ts.map +1 -0
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js +194 -0
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js.map +1 -0
- package/dist/src/sync/v2/export/controls/ObjectPageTable.d.ts +17 -17
- package/dist/src/sync/v2/export/controls/ObjectPageTable.d.ts.map +1 -0
- package/dist/src/sync/v2/export/controls/ObjectPageTable.js +336 -0
- package/dist/src/sync/v2/export/controls/ObjectPageTable.js.map +1 -0
- package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.d.ts +3 -2
- package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.d.ts.map +1 -0
- package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.js +61 -0
- package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.js.map +1 -0
- package/dist/src/sync/v2/export/controls/Table.d.ts +25 -24
- package/dist/src/sync/v2/export/controls/Table.d.ts.map +1 -0
- package/dist/src/sync/v2/export/controls/Table.js +709 -0
- package/dist/src/sync/v2/export/controls/Table.js.map +1 -0
- package/dist/src/sync/v2/export/controls/TableColumn.d.ts +6 -6
- package/dist/src/sync/v2/export/controls/TableColumn.d.ts.map +1 -0
- package/dist/src/sync/v2/export/controls/TableColumn.js +166 -0
- package/dist/src/sync/v2/export/controls/TableColumn.js.map +1 -0
- package/dist/src/sync/v2/export/controls/ToolBar.d.ts +4 -3
- package/dist/src/sync/v2/export/controls/ToolBar.d.ts.map +1 -0
- package/dist/src/sync/v2/export/controls/ToolBar.js +6 -0
- package/dist/src/sync/v2/export/controls/ToolBar.js.map +1 -0
- package/dist/src/sync/v2/export/controls/index.d.ts +1 -0
- package/dist/src/sync/v2/export/controls/index.d.ts.map +1 -0
- package/dist/src/sync/v2/export/controls/index.js +26 -0
- package/dist/src/sync/v2/export/controls/index.js.map +1 -0
- package/dist/src/sync/v2/export/export.d.ts +2 -1
- package/dist/src/sync/v2/export/export.d.ts.map +1 -0
- package/dist/src/sync/v2/export/export.js +681 -0
- package/dist/src/sync/v2/export/export.js.map +1 -0
- package/dist/src/sync/v2/export/exportPage.d.ts +3 -1
- package/dist/src/sync/v2/export/exportPage.d.ts.map +1 -0
- package/dist/src/sync/v2/export/exportPage.js +304 -0
- package/dist/src/sync/v2/export/exportPage.js.map +1 -0
- package/dist/src/sync/v2/export/factory.d.ts +1 -0
- package/dist/src/sync/v2/export/factory.d.ts.map +1 -0
- package/dist/src/sync/v2/export/factory.js +58 -0
- package/dist/src/sync/v2/export/factory.js.map +1 -0
- package/dist/src/sync/v2/export/manifest.d.ts +3 -2
- package/dist/src/sync/v2/export/manifest.d.ts.map +1 -0
- package/dist/src/sync/v2/export/manifest.js +155 -0
- package/dist/src/sync/v2/export/manifest.js.map +1 -0
- package/dist/src/sync/v2/export/pages/AnalyticalListPage.d.ts +7 -8
- package/dist/src/sync/v2/export/pages/AnalyticalListPage.d.ts.map +1 -0
- package/dist/src/sync/v2/export/pages/AnalyticalListPage.js +42 -0
- package/dist/src/sync/v2/export/pages/AnalyticalListPage.js.map +1 -0
- package/dist/src/sync/v2/export/pages/ListReport.d.ts +5 -4
- package/dist/src/sync/v2/export/pages/ListReport.d.ts.map +1 -0
- package/dist/src/sync/v2/export/pages/ListReport.js +39 -0
- package/dist/src/sync/v2/export/pages/ListReport.js.map +1 -0
- package/dist/src/sync/v2/export/pages/ObjectPage.d.ts +8 -8
- package/dist/src/sync/v2/export/pages/ObjectPage.d.ts.map +1 -0
- package/dist/src/sync/v2/export/pages/ObjectPage.js +100 -0
- package/dist/src/sync/v2/export/pages/ObjectPage.js.map +1 -0
- package/dist/src/sync/v2/export/pages/OverviewPage.d.ts +8 -7
- package/dist/src/sync/v2/export/pages/OverviewPage.d.ts.map +1 -0
- package/dist/src/sync/v2/export/pages/OverviewPage.js +213 -0
- package/dist/src/sync/v2/export/pages/OverviewPage.js.map +1 -0
- package/dist/src/sync/v2/export/pages/index.d.ts +1 -0
- package/dist/src/sync/v2/export/pages/index.d.ts.map +1 -0
- package/dist/src/sync/v2/export/pages/index.js +10 -0
- package/dist/src/sync/v2/export/pages/index.js.map +1 -0
- package/dist/src/sync/v2/export/view-controller-generator.d.ts +5 -5
- package/dist/src/sync/v2/export/view-controller-generator.d.ts.map +1 -0
- package/dist/src/sync/v2/export/view-controller-generator.js +140 -0
- package/dist/src/sync/v2/export/view-controller-generator.js.map +1 -0
- package/dist/src/sync/v2/generate/analyticalListReport.d.ts +2 -1
- package/dist/src/sync/v2/generate/analyticalListReport.d.ts.map +1 -0
- package/dist/src/sync/v2/generate/analyticalListReport.js +86 -0
- package/dist/src/sync/v2/generate/analyticalListReport.js.map +1 -0
- package/dist/src/sync/v2/generate/generate.d.ts +2 -1
- package/dist/src/sync/v2/generate/generate.d.ts.map +1 -0
- package/dist/src/sync/v2/generate/generate.js +99 -0
- package/dist/src/sync/v2/generate/generate.js.map +1 -0
- package/dist/src/sync/v2/generate/index.d.ts +1 -0
- package/dist/src/sync/v2/generate/index.d.ts.map +1 -0
- package/dist/src/sync/v2/generate/index.js +14 -0
- package/dist/src/sync/v2/generate/index.js.map +1 -0
- package/dist/src/sync/v2/generate/listReport.d.ts +2 -1
- package/dist/src/sync/v2/generate/listReport.d.ts.map +1 -0
- package/dist/src/sync/v2/generate/listReport.js +124 -0
- package/dist/src/sync/v2/generate/listReport.js.map +1 -0
- package/dist/src/sync/v2/generate/objectPage.d.ts +2 -1
- package/dist/src/sync/v2/generate/objectPage.d.ts.map +1 -0
- package/dist/src/sync/v2/generate/objectPage.js +545 -0
- package/dist/src/sync/v2/generate/objectPage.js.map +1 -0
- package/dist/src/sync/v2/generate/overviewPage.d.ts +2 -1
- package/dist/src/sync/v2/generate/overviewPage.d.ts.map +1 -0
- package/dist/src/sync/v2/generate/overviewPage.js +70 -0
- package/dist/src/sync/v2/generate/overviewPage.js.map +1 -0
- package/dist/src/sync/v2/generate/utils.d.ts +4 -4
- package/dist/src/sync/v2/generate/utils.d.ts.map +1 -0
- package/dist/src/sync/v2/generate/utils.js +531 -0
- package/dist/src/sync/v2/generate/utils.js.map +1 -0
- package/dist/src/sync/v2/import/app/appProvider.d.ts +5 -4
- package/dist/src/sync/v2/import/app/appProvider.d.ts.map +1 -0
- package/dist/src/sync/v2/import/app/appProvider.js +136 -0
- package/dist/src/sync/v2/import/app/appProvider.js.map +1 -0
- package/dist/src/sync/v2/import/app/ovpProvider.d.ts +2 -1
- package/dist/src/sync/v2/import/app/ovpProvider.d.ts.map +1 -0
- package/dist/src/sync/v2/import/app/ovpProvider.js +32 -0
- package/dist/src/sync/v2/import/app/ovpProvider.js.map +1 -0
- package/dist/src/sync/v2/import/common/index.d.ts +7 -9
- package/dist/src/sync/v2/import/common/index.d.ts.map +1 -0
- package/dist/src/sync/v2/import/common/index.js +413 -0
- package/dist/src/sync/v2/import/common/index.js.map +1 -0
- package/dist/src/sync/v2/import/controls/table.d.ts +3 -2
- package/dist/src/sync/v2/import/controls/table.d.ts.map +1 -0
- package/dist/src/sync/v2/import/controls/table.js +33 -0
- package/dist/src/sync/v2/import/controls/table.js.map +1 -0
- package/dist/src/sync/v2/import/getPageType.d.ts +1 -0
- package/dist/src/sync/v2/import/getPageType.d.ts.map +1 -0
- package/dist/src/sync/v2/import/getPageType.js +1 -0
- package/dist/src/sync/v2/import/getPageType.js.map +1 -0
- package/dist/src/sync/v2/import/index.d.ts +1 -0
- package/dist/src/sync/v2/import/index.d.ts.map +1 -0
- package/dist/src/sync/v2/import/index.js +11 -0
- package/dist/src/sync/v2/import/index.js.map +1 -0
- package/dist/src/sync/v2/import/pages/analyticalListPage.d.ts +3 -2
- package/dist/src/sync/v2/import/pages/analyticalListPage.d.ts.map +1 -0
- package/dist/src/sync/v2/import/pages/analyticalListPage.js +128 -0
- package/dist/src/sync/v2/import/pages/analyticalListPage.js.map +1 -0
- package/dist/src/sync/v2/import/pages/listReport.d.ts +3 -2
- package/dist/src/sync/v2/import/pages/listReport.d.ts.map +1 -0
- package/dist/src/sync/v2/import/pages/listReport.js +156 -0
- package/dist/src/sync/v2/import/pages/listReport.js.map +1 -0
- package/dist/src/sync/v2/import/pages/objectPage.d.ts +4 -2
- package/dist/src/sync/v2/import/pages/objectPage.d.ts.map +1 -0
- package/dist/src/sync/v2/import/pages/objectPage.js +746 -0
- package/dist/src/sync/v2/import/pages/objectPage.js.map +1 -0
- package/dist/src/sync/v2/import/pages/overviewPage.d.ts +3 -3
- package/dist/src/sync/v2/import/pages/overviewPage.d.ts.map +1 -0
- package/dist/src/sync/v2/import/pages/overviewPage.js +111 -0
- package/dist/src/sync/v2/import/pages/overviewPage.js.map +1 -0
- package/dist/src/sync/v2/import/utils.d.ts +6 -5
- package/dist/src/sync/v2/import/utils.d.ts.map +1 -0
- package/dist/src/sync/v2/import/utils.js +171 -0
- package/dist/src/sync/v2/import/utils.js.map +1 -0
- package/dist/src/sync/v2/types.d.ts +6 -6
- package/dist/src/sync/v2/types.d.ts.map +1 -0
- package/dist/src/sync/v2/types.js +37 -0
- package/dist/src/sync/v2/types.js.map +1 -0
- package/dist/src/sync/v4/application.d.ts +7 -7
- package/dist/src/sync/v4/application.d.ts.map +1 -0
- package/dist/src/sync/v4/application.js +164 -0
- package/dist/src/sync/v4/application.js.map +1 -0
- package/dist/src/sync/v4/export/controls/FilterBar.d.ts +5 -3
- package/dist/src/sync/v4/export/controls/FilterBar.d.ts.map +1 -0
- package/dist/src/sync/v4/export/controls/FilterBar.js +24 -0
- package/dist/src/sync/v4/export/controls/FilterBar.js.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts +5 -6
- package/dist/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageCustomSection.js +135 -0
- package/dist/src/sync/v4/export/controls/ObjectPageCustomSection.js.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageHeader.d.ts +4 -3
- package/dist/src/sync/v4/export/controls/ObjectPageHeader.d.ts.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageHeader.js +54 -0
- package/dist/src/sync/v4/export/controls/ObjectPageHeader.js.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.d.ts +11 -10
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.d.ts.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.js +65 -0
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.js.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageLayout.d.ts +4 -3
- package/dist/src/sync/v4/export/controls/ObjectPageLayout.d.ts.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageLayout.js +24 -0
- package/dist/src/sync/v4/export/controls/ObjectPageLayout.js.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageTable.d.ts +10 -9
- package/dist/src/sync/v4/export/controls/ObjectPageTable.d.ts.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageTable.js +233 -0
- package/dist/src/sync/v4/export/controls/ObjectPageTable.js.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts +12 -11
- package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.js +160 -0
- package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.js.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.d.ts +7 -6
- package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.d.ts.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.js +113 -0
- package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.js.map +1 -0
- package/dist/src/sync/v4/export/controls/Table.d.ts +28 -28
- package/dist/src/sync/v4/export/controls/Table.d.ts.map +1 -0
- package/dist/src/sync/v4/export/controls/Table.js +784 -0
- package/dist/src/sync/v4/export/controls/Table.js.map +1 -0
- package/dist/src/sync/v4/export/controls/TableColumn.d.ts +21 -20
- package/dist/src/sync/v4/export/controls/TableColumn.d.ts.map +1 -0
- package/dist/src/sync/v4/export/controls/TableColumn.js +310 -0
- package/dist/src/sync/v4/export/controls/TableColumn.js.map +1 -0
- package/dist/src/sync/v4/export/controls/ToolBar.d.ts +4 -3
- package/dist/src/sync/v4/export/controls/ToolBar.d.ts.map +1 -0
- package/dist/src/sync/v4/export/controls/ToolBar.js +9 -0
- package/dist/src/sync/v4/export/controls/ToolBar.js.map +1 -0
- package/dist/src/sync/v4/export/controls/ToolBarAction.d.ts +12 -11
- package/dist/src/sync/v4/export/controls/ToolBarAction.d.ts.map +1 -0
- package/dist/src/sync/v4/export/controls/ToolBarAction.js +214 -0
- package/dist/src/sync/v4/export/controls/ToolBarAction.js.map +1 -0
- package/dist/src/sync/v4/export/controls/index.d.ts +1 -0
- package/dist/src/sync/v4/export/controls/index.d.ts.map +1 -0
- package/dist/src/sync/v4/export/controls/index.js +18 -0
- package/dist/src/sync/v4/export/controls/index.js.map +1 -0
- package/dist/src/sync/v4/export/export.d.ts +1 -0
- package/dist/src/sync/v4/export/export.d.ts.map +1 -0
- package/dist/src/sync/v4/export/export.js +846 -0
- package/dist/src/sync/v4/export/export.js.map +1 -0
- package/dist/src/sync/v4/export/exportCustomColumn.d.ts +1 -0
- package/dist/src/sync/v4/export/exportCustomColumn.d.ts.map +1 -0
- package/dist/src/sync/v4/export/exportCustomColumn.js +49 -0
- package/dist/src/sync/v4/export/exportCustomColumn.js.map +1 -0
- package/dist/src/sync/v4/export/factory.d.ts +1 -0
- package/dist/src/sync/v4/export/factory.d.ts.map +1 -0
- package/dist/src/sync/v4/export/factory.js +44 -0
- package/dist/src/sync/v4/export/factory.js.map +1 -0
- package/dist/src/sync/v4/export/flexibleColumnLayout.d.ts +4 -2
- package/dist/src/sync/v4/export/flexibleColumnLayout.d.ts.map +1 -0
- package/dist/src/sync/v4/export/flexibleColumnLayout.js +125 -0
- package/dist/src/sync/v4/export/flexibleColumnLayout.js.map +1 -0
- package/dist/src/sync/v4/export/manifest.d.ts +3 -2
- package/dist/src/sync/v4/export/manifest.d.ts.map +1 -0
- package/dist/src/sync/v4/export/manifest.js +235 -0
- package/dist/src/sync/v4/export/manifest.js.map +1 -0
- package/dist/src/sync/v4/export/pages/FreestylePage.d.ts +1 -0
- package/dist/src/sync/v4/export/pages/FreestylePage.d.ts.map +1 -0
- package/dist/src/sync/v4/export/pages/FreestylePage.js +9 -0
- package/dist/src/sync/v4/export/pages/FreestylePage.js.map +1 -0
- package/dist/src/sync/v4/export/pages/ListReport.d.ts +7 -6
- package/dist/src/sync/v4/export/pages/ListReport.d.ts.map +1 -0
- package/dist/src/sync/v4/export/pages/ListReport.js +82 -0
- package/dist/src/sync/v4/export/pages/ListReport.js.map +1 -0
- package/dist/src/sync/v4/export/pages/ObjectPage.d.ts +5 -4
- package/dist/src/sync/v4/export/pages/ObjectPage.d.ts.map +1 -0
- package/dist/src/sync/v4/export/pages/ObjectPage.js +40 -0
- package/dist/src/sync/v4/export/pages/ObjectPage.js.map +1 -0
- package/dist/src/sync/v4/export/pages/index.d.ts +1 -0
- package/dist/src/sync/v4/export/pages/index.d.ts.map +1 -0
- package/dist/src/sync/v4/export/pages/index.js +9 -0
- package/dist/src/sync/v4/export/pages/index.js.map +1 -0
- package/dist/src/sync/v4/export/types.d.ts +2 -1
- package/dist/src/sync/v4/export/types.d.ts.map +1 -0
- package/dist/src/sync/v4/export/types.js +3 -0
- package/dist/src/sync/v4/export/types.js.map +1 -0
- package/dist/src/sync/v4/export/utils.d.ts +3 -2
- package/dist/src/sync/v4/export/utils.d.ts.map +1 -0
- package/dist/src/sync/v4/export/utils.js +43 -0
- package/dist/src/sync/v4/export/utils.js.map +1 -0
- package/dist/src/sync/v4/generate/freestylePage.d.ts +1 -0
- package/dist/src/sync/v4/generate/freestylePage.d.ts.map +1 -0
- package/dist/src/sync/v4/generate/freestylePage.js +15 -0
- package/dist/src/sync/v4/generate/freestylePage.js.map +1 -0
- package/dist/src/sync/v4/generate/generate.d.ts +2 -1
- package/dist/src/sync/v4/generate/generate.d.ts.map +1 -0
- package/dist/src/sync/v4/generate/generate.js +81 -0
- package/dist/src/sync/v4/generate/generate.js.map +1 -0
- package/dist/src/sync/v4/generate/index.d.ts +1 -0
- package/dist/src/sync/v4/generate/index.d.ts.map +1 -0
- package/dist/src/sync/v4/generate/index.js +13 -0
- package/dist/src/sync/v4/generate/index.js.map +1 -0
- package/dist/src/sync/v4/generate/listReport.d.ts +1 -0
- package/dist/src/sync/v4/generate/listReport.d.ts.map +1 -0
- package/dist/src/sync/v4/generate/listReport.js +680 -0
- package/dist/src/sync/v4/generate/listReport.js.map +1 -0
- package/dist/src/sync/v4/generate/objectPage.d.ts +1 -0
- package/dist/src/sync/v4/generate/objectPage.d.ts.map +1 -0
- package/dist/src/sync/v4/generate/objectPage.js +618 -0
- package/dist/src/sync/v4/generate/objectPage.js.map +1 -0
- package/dist/src/sync/v4/import/app/appProvider.d.ts +3 -2
- package/dist/src/sync/v4/import/app/appProvider.d.ts.map +1 -0
- package/dist/src/sync/v4/import/app/appProvider.js +10 -0
- package/dist/src/sync/v4/import/app/appProvider.js.map +1 -0
- package/dist/src/sync/v4/import/app/baseAppProvider.d.ts +11 -10
- package/dist/src/sync/v4/import/app/baseAppProvider.d.ts.map +1 -0
- package/dist/src/sync/v4/import/app/baseAppProvider.js +330 -0
- package/dist/src/sync/v4/import/app/baseAppProvider.js.map +1 -0
- package/dist/src/sync/v4/import/app/freestyleProvider.d.ts +3 -2
- package/dist/src/sync/v4/import/app/freestyleProvider.d.ts.map +1 -0
- package/dist/src/sync/v4/import/app/freestyleProvider.js +11 -0
- package/dist/src/sync/v4/import/app/freestyleProvider.js.map +1 -0
- package/dist/src/sync/v4/import/app/index.d.ts +1 -0
- package/dist/src/sync/v4/import/app/index.d.ts.map +1 -0
- package/dist/src/sync/v4/import/app/index.js +12 -0
- package/dist/src/sync/v4/import/app/index.js.map +1 -0
- package/dist/src/sync/v4/import/fragment.d.ts +2 -1
- package/dist/src/sync/v4/import/fragment.d.ts.map +1 -0
- package/dist/src/sync/v4/import/fragment.js +130 -0
- package/dist/src/sync/v4/import/fragment.js.map +1 -0
- package/dist/src/sync/v4/import/index.d.ts +1 -0
- package/dist/src/sync/v4/import/index.d.ts.map +1 -0
- package/dist/src/sync/v4/import/index.js +8 -0
- package/dist/src/sync/v4/import/index.js.map +1 -0
- package/dist/src/sync/v4/import/pages/listReport.d.ts +5 -4
- package/dist/src/sync/v4/import/pages/listReport.d.ts.map +1 -0
- package/dist/src/sync/v4/import/pages/listReport.js +287 -0
- package/dist/src/sync/v4/import/pages/listReport.js.map +1 -0
- package/dist/src/sync/v4/import/pages/objectPage.d.ts +3 -2
- package/dist/src/sync/v4/import/pages/objectPage.d.ts.map +1 -0
- package/dist/src/sync/v4/import/pages/objectPage.js +267 -0
- package/dist/src/sync/v4/import/pages/objectPage.js.map +1 -0
- package/dist/src/sync/v4/import/utils.d.ts +2 -1
- package/dist/src/sync/v4/import/utils.d.ts.map +1 -0
- package/dist/src/sync/v4/import/utils.js +34 -0
- package/dist/src/sync/v4/import/utils.js.map +1 -0
- package/dist/src/sync/v4/types.d.ts +1 -0
- package/dist/src/sync/v4/types.d.ts.map +1 -0
- package/dist/src/sync/v4/types.js +3 -0
- package/dist/src/sync/v4/types.js.map +1 -0
- package/dist/src/sync/v4/utils/StableIdHelper.d.ts +1 -0
- package/dist/src/sync/v4/utils/StableIdHelper.d.ts.map +1 -0
- package/dist/src/sync/v4/utils/StableIdHelper.js +156 -0
- package/dist/src/sync/v4/utils/StableIdHelper.js.map +1 -0
- package/dist/src/sync/v4/utils/utils.d.ts +8 -7
- package/dist/src/sync/v4/utils/utils.d.ts.map +1 -0
- package/dist/src/sync/v4/utils/utils.js +442 -0
- package/dist/src/sync/v4/utils/utils.js.map +1 -0
- package/package.json +16 -21
- package/CHANGELOG.md +0 -411
- package/dist/documentation/runDocu-min.js.LICENSE.txt +0 -24
- package/dist/index-min.js.LICENSE.txt +0 -26
- package/dist/specification/v2/index-min.js +0 -1
- package/dist/specification/v4/index-min.js +0 -1
- package/dist/src/specification/common/Application.d.ts +0 -36
- package/dist/src/specification/common/index.d.ts +0 -5
- package/dist/src/specification/common/page.d.ts +0 -47
- package/dist/src/specification/common/types.d.ts +0 -16
- package/dist/src/specification/common/webapp/manifest/Manifest.d.ts +0 -49
- package/dist/src/specification/common/webapp/manifest/index.d.ts +0 -3
- package/dist/src/specification/common/webapp/manifest/sapOvp.d.ts +0 -375
- package/dist/src/specification/common/webapp/manifest/sapUi5.d.ts +0 -33
- package/dist/src/specification/v2/ApplicationV2.d.ts +0 -46
- package/dist/src/specification/v2/controls/Action.d.ts +0 -73
- package/dist/src/specification/v2/controls/AnalyticalListPageChart.d.ts +0 -58
- package/dist/src/specification/v2/controls/AnalyticalListPageKPI.d.ts +0 -30
- package/dist/src/specification/v2/controls/Card.d.ts +0 -657
- package/dist/src/specification/v2/controls/Facets.d.ts +0 -17
- package/dist/src/specification/v2/controls/Field.d.ts +0 -10
- package/dist/src/specification/v2/controls/FilterBar.d.ts +0 -234
- package/dist/src/specification/v2/controls/Footer.d.ts +0 -20
- package/dist/src/specification/v2/controls/ObjectPageChart.d.ts +0 -16
- package/dist/src/specification/v2/controls/ObjectPageForm.d.ts +0 -15
- package/dist/src/specification/v2/controls/ObjectPageHeader.d.ts +0 -32
- package/dist/src/specification/v2/controls/ObjectPageLayout.d.ts +0 -22
- package/dist/src/specification/v2/controls/ObjectPageSection.d.ts +0 -120
- package/dist/src/specification/v2/controls/ObjectPageTable.d.ts +0 -186
- package/dist/src/specification/v2/controls/ObjectPageToolBar.d.ts +0 -15
- package/dist/src/specification/v2/controls/Table.d.ts +0 -482
- package/dist/src/specification/v2/controls/ToolBar.d.ts +0 -8
- package/dist/src/specification/v2/controls/index.d.ts +0 -17
- package/dist/src/specification/v2/index.d.ts +0 -5
- package/dist/src/specification/v2/page.d.ts +0 -7
- package/dist/src/specification/v2/pages/AnalyticalListPageConfig.d.ts +0 -21
- package/dist/src/specification/v2/pages/ListReportConfig.d.ts +0 -12
- package/dist/src/specification/v2/pages/ObjectPageConfig.d.ts +0 -33
- package/dist/src/specification/v2/pages/OverviewPageConfig.d.ts +0 -131
- package/dist/src/specification/v2/pages/index.d.ts +0 -4
- package/dist/src/specification/v2/webapp/index.d.ts +0 -1
- package/dist/src/specification/v2/webapp/manifest/index.d.ts +0 -2
- package/dist/src/specification/v2/webapp/manifest/sapUi.d.ts +0 -10
- package/dist/src/specification/v2/webapp/manifest/sapUi5.d.ts +0 -98
- package/dist/src/specification/v2/webapp/manifest/sapUiPageV2.d.ts +0 -31
- package/dist/src/specification/v4/ApplicationV4.d.ts +0 -31
- package/dist/src/specification/v4/controls/FilterBar.d.ts +0 -18
- package/dist/src/specification/v4/controls/ObjectPageFooter.d.ts +0 -11
- package/dist/src/specification/v4/controls/ObjectPageHeader.d.ts +0 -29
- package/dist/src/specification/v4/controls/ObjectPageHeaderSection.d.ts +0 -46
- package/dist/src/specification/v4/controls/ObjectPageLayout.d.ts +0 -14
- package/dist/src/specification/v4/controls/ObjectPageSection.d.ts +0 -98
- package/dist/src/specification/v4/controls/ObjectPageTable.d.ts +0 -106
- package/dist/src/specification/v4/controls/ObjectPageToolBar.d.ts +0 -37
- package/dist/src/specification/v4/controls/Table.d.ts +0 -339
- package/dist/src/specification/v4/controls/ToolBar.d.ts +0 -110
- package/dist/src/specification/v4/controls/index.d.ts +0 -10
- package/dist/src/specification/v4/index.d.ts +0 -5
- package/dist/src/specification/v4/page.d.ts +0 -17
- package/dist/src/specification/v4/pages/FreestylePageConfig.d.ts +0 -2
- package/dist/src/specification/v4/pages/ListReportConfig.d.ts +0 -36
- package/dist/src/specification/v4/pages/ObjectPageConfig.d.ts +0 -18
- package/dist/src/specification/v4/pages/index.d.ts +0 -3
- package/dist/src/specification/v4/webapp/index.d.ts +0 -1
- package/dist/src/specification/v4/webapp/manifest/ManifestSettings.d.ts +0 -224
- package/dist/src/specification/v4/webapp/manifest/index.d.ts +0 -4
- package/dist/src/specification/v4/webapp/manifest/sapUi5.d.ts +0 -102
- package/dist/src/specification/v4/webapp/manifest/sapUiPageV4.d.ts +0 -83
- package/dist/src/v2.d.ts +0 -2
- package/dist/src/v4.d.ts +0 -2
- package/dist/test/test-data/flexChange/v2/stta.prod.man/index.d.ts +0 -7
- package/dist/test/test-projects/index.d.ts +0 -2
- package/dist/test/test-utils/utils.d.ts +0 -32
- package/dist/test/unit/customSections/exportV2.test.d.ts +0 -1
- package/dist/test/unit/customSections/exportV4.test.d.ts +0 -1
- package/dist/test/unit/customSections/generateFacetsSchemaV2.test.d.ts +0 -1
- package/dist/test/unit/customSections/generateFacetsSchemaV4.test.d.ts +0 -1
- package/dist/test/unit/customSections/importV2.test.d.ts +0 -1
- package/dist/test/unit/customSections/importV4.test.d.ts +0 -1
- package/dist/test/unit/export/exportALPV2.test.d.ts +0 -1
- package/dist/test/unit/export/exportALPV4.test.d.ts +0 -1
- package/dist/test/unit/export/exportAppV2.test.d.ts +0 -1
- package/dist/test/unit/export/exportAppV4.test.d.ts +0 -1
- package/dist/test/unit/export/exportFormPageV4.test.d.ts +0 -1
- package/dist/test/unit/export/exportLRPV2.test.d.ts +0 -1
- package/dist/test/unit/export/exportLRPV2CustomColumns.test.d.ts +0 -1
- package/dist/test/unit/export/exportLRPV4.test.d.ts +0 -1
- package/dist/test/unit/export/exportOVPV2.test.d.ts +0 -1
- package/dist/test/unit/export/exportObjectPageV2.test.d.ts +0 -1
- package/dist/test/unit/export/exportObjectPageV4.test.d.ts +0 -1
- package/dist/test/unit/export/flexUtils.test.d.ts +0 -1
- package/dist/test/unit/export/manifest.test.d.ts +0 -1
- package/dist/test/unit/fcl/exportV2.test.d.ts +0 -1
- package/dist/test/unit/fcl/exportV4.test.d.ts +0 -1
- package/dist/test/unit/fcl/importV2.test.d.ts +0 -1
- package/dist/test/unit/fcl/importV4.test.d.ts +0 -1
- package/dist/test/unit/generateAppSchema/generateAppSchemaALPV2.test.d.ts +0 -1
- package/dist/test/unit/generateAppSchema/generateAppSchemaALPV4.test.d.ts +0 -1
- package/dist/test/unit/generateAppSchema/generateAppSchemaFFV4.test.d.ts +0 -1
- package/dist/test/unit/generateAppSchema/generateAppSchemaFPV4.test.d.ts +0 -1
- package/dist/test/unit/generateAppSchema/generateAppSchemaLRV2.test.d.ts +0 -1
- package/dist/test/unit/generateAppSchema/generateAppSchemaLRV4.test.d.ts +0 -1
- package/dist/test/unit/generateAppSchema/generateAppSchemaOPV2.test.d.ts +0 -1
- package/dist/test/unit/generateAppSchema/generateAppSchemaOPV4.test.d.ts +0 -1
- package/dist/test/unit/generateAppSchema/generateAppSchemaOVPV2.test.d.ts +0 -1
- package/dist/test/unit/generateGenericSchema/generateGenericSchemaAppV2.test.d.ts +0 -1
- package/dist/test/unit/generateGenericSchema/generateGenericSchemaAppV4.test.d.ts +0 -1
- package/dist/test/unit/generateGenericSchema/generateGenericSchemaFFV4.test.d.ts +0 -1
- package/dist/test/unit/generateGenericSchema/generateGenericSchemaLRV2.test.d.ts +0 -1
- package/dist/test/unit/generateGenericSchema/generateGenericSchemaLRV4.test.d.ts +0 -1
- package/dist/test/unit/generateGenericSchema/generateGenericSchemaOPV2.test.d.ts +0 -1
- package/dist/test/unit/generateGenericSchema/generateGenericSchemaOPV4.test.d.ts +0 -1
- package/dist/test/unit/generateGenericSchema/generateI18nV2.test.d.ts +0 -1
- package/dist/test/unit/generateGenericSchema/generateI18nV4.test.d.ts +0 -1
- package/dist/test/unit/generateGenericSchema/genericSchemas.test.d.ts +0 -1
- package/dist/test/unit/import/fragment.test.d.ts +0 -1
- package/dist/test/unit/import/importALPV2.test.d.ts +0 -1
- package/dist/test/unit/import/importALPV4.test.d.ts +0 -1
- package/dist/test/unit/import/importAppV2.test.d.ts +0 -1
- package/dist/test/unit/import/importAppV4.test.d.ts +0 -1
- package/dist/test/unit/import/importFPV4.test.d.ts +0 -1
- package/dist/test/unit/import/importLRPV2.test.d.ts +0 -1
- package/dist/test/unit/import/importLRPV4.test.d.ts +0 -1
- package/dist/test/unit/import/importOPV2.test.d.ts +0 -1
- package/dist/test/unit/import/importOPV4.test.d.ts +0 -1
- package/dist/test/unit/import/importOVPV2.test.d.ts +0 -1
- package/dist/test/unit/index.test.d.ts +0 -1
- package/dist/test/unit/projects.test.d.ts +0 -1
- package/dist/test/unit/schemaAccess.test.d.ts +0 -1
- package/dist/test/unit/utils.test.d.ts +0 -1
- package/dist/test/unit/view-controller-generator.test.d.ts +0 -1
|
@@ -0,0 +1,267 @@
|
|
|
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
|
+
const ux_specification_types_1 = require("@sap/ux-specification-types");
|
|
7
|
+
const utils_1 = require("../utils");
|
|
8
|
+
const common_1 = require("../../../common");
|
|
9
|
+
const i18next_1 = __importDefault(require("i18next"));
|
|
10
|
+
const extensionLogger_1 = require("../../../../extensionLogger");
|
|
11
|
+
const i18n_1 = require("../../../../i18n/i18n");
|
|
12
|
+
const factory_1 = require("../../export/factory");
|
|
13
|
+
/**
|
|
14
|
+
* Converts section ID to manifest ID (replaces '::' with ['/', '#'])
|
|
15
|
+
* @param sectionId - converted ID of the given object page section
|
|
16
|
+
* @param splitOnLt - split ID and get only part in <...>
|
|
17
|
+
* @returns manifest ID
|
|
18
|
+
*/
|
|
19
|
+
function getManifestId(sectionId, splitOnLt = false) {
|
|
20
|
+
var _a, _b, _c;
|
|
21
|
+
const tableId = splitOnLt ? (_a = sectionId.split('<')[1]) === null || _a === void 0 ? void 0 : _a.slice(0, -1) : sectionId;
|
|
22
|
+
const pathParts = tableId.split(`@${"com.sap.vocabularies.UI.v1.LineItem" /* LineItem */}`);
|
|
23
|
+
return `${(_b = pathParts[0]) === null || _b === void 0 ? void 0 : _b.replace(/::/g, '/')}@${"com.sap.vocabularies.UI.v1.LineItem" /* LineItem */}${(_c = pathParts[1]) === null || _c === void 0 ? void 0 : _c.replace(/::/g, '#')}`;
|
|
24
|
+
}
|
|
25
|
+
exports.getManifestId = getManifestId;
|
|
26
|
+
/**
|
|
27
|
+
* Converts manifest ID to definition ID (replaces ['#', '/'] with '::')
|
|
28
|
+
* @param manifestId - ID of the given object page section in manifest
|
|
29
|
+
* @returns definition ID
|
|
30
|
+
*/
|
|
31
|
+
function getDefinitionId(manifestId) {
|
|
32
|
+
return manifestId.replace(/#/g, '::').replace(/\//g, '::');
|
|
33
|
+
}
|
|
34
|
+
exports.getDefinitionId = getDefinitionId;
|
|
35
|
+
/**
|
|
36
|
+
* Fills the section table columns in a V4 config
|
|
37
|
+
* @param {ImportObjectPageV4Parameters} importParameters - object comprising all input data
|
|
38
|
+
* @param manifestSection - section of the manifest.json
|
|
39
|
+
* @param configPart - the given part of the object page config
|
|
40
|
+
* @param sectionId - converted ID of the given object page section
|
|
41
|
+
* @param manifestSectionId - ID of the given object page section in manifest
|
|
42
|
+
* @param {MetadataInstanceInterface} factory - factory, for generating the access to reflect-metadata
|
|
43
|
+
* @param v4Page - page definition in V4 format
|
|
44
|
+
*/
|
|
45
|
+
function fillTableColumnsInConfig(importParameters, manifestSection, configPart, sectionId, factory, manifestSectionId) {
|
|
46
|
+
if (manifestSection['columns']) {
|
|
47
|
+
configPart[sectionId].table.columns = {};
|
|
48
|
+
let tableDefinition;
|
|
49
|
+
const lineItems = importParameters.jsonSchema.definitions[getDefinitionId(manifestSectionId)];
|
|
50
|
+
if (lineItems) {
|
|
51
|
+
for (const columnKey in lineItems.properties) {
|
|
52
|
+
const columnInSchema = lineItems.properties[columnKey];
|
|
53
|
+
if (columnInSchema.$ref.indexOf(common_1.DefinitionName.CustomColumnOP) > -1) {
|
|
54
|
+
tableDefinition = common_1.DefinitionName.CustomColumnOP;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
tableDefinition = common_1.DefinitionName.ObjectPageTableColumn;
|
|
58
|
+
}
|
|
59
|
+
const columnInConfig = factory.createInstance(ux_specification_types_1.PageTypeV4.ObjectPage, tableDefinition);
|
|
60
|
+
utils_1.transferSettingsOfObject(columnInConfig, importParameters.manifest, importParameters.jsonSchema.definitions[tableDefinition], importParameters.routingId, [columnKey], manifestSectionId);
|
|
61
|
+
if (Object.keys(columnInConfig).length > 0) {
|
|
62
|
+
configPart[sectionId].table.columns[columnKey] = columnInConfig;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Fills the table actions in config.json
|
|
70
|
+
* @param {ImportObjectPageV4Parameters} importParameters - object comprising all input data
|
|
71
|
+
* @param sectionId - ID of the current section
|
|
72
|
+
* @param configPart - the given part of the object page config
|
|
73
|
+
* @param {MetadataInstanceInterface} factory - factory, for generating the access to reflect-metadata
|
|
74
|
+
* @param v4Page - current (object) page
|
|
75
|
+
*/
|
|
76
|
+
function fillTableActionsInConfig(importParameters, sectionId, configPart, factory, manifestSectionId = sectionId) {
|
|
77
|
+
const actionsDefinition = importParameters.jsonSchema.definitions[`${common_1.DefinitionName.Actions}<${getDefinitionId(manifestSectionId)}>`];
|
|
78
|
+
if (typeof actionsDefinition === 'object') {
|
|
79
|
+
for (const actionKey in actionsDefinition['properties']) {
|
|
80
|
+
const actionDefinition = actionsDefinition.properties[actionKey];
|
|
81
|
+
if (typeof actionDefinition === 'object' && actionDefinition.$ref) {
|
|
82
|
+
const definitionKey = common_1.getDefinitionKey(actionDefinition.$ref);
|
|
83
|
+
const schemaPropertyName = definitionKey.split('<')[0];
|
|
84
|
+
configPart[sectionId].table.toolBar.actions[actionKey] = factory.createInstance(ux_specification_types_1.PageTypeV4.ObjectPage, schemaPropertyName);
|
|
85
|
+
utils_1.transferSettingsOfObject(configPart[sectionId].table.toolBar.actions[actionKey], importParameters.manifest, importParameters.jsonSchema.definitions[definitionKey], importParameters.routingId, [actionKey.replace('/', '??')], manifestSectionId);
|
|
86
|
+
if (Object.keys(configPart[sectionId].table.toolBar.actions[actionKey]).length === 0) {
|
|
87
|
+
delete configPart[sectionId].table.toolBar.actions[actionKey];
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Fills the table settings in config.json
|
|
95
|
+
* @param {ImportObjectPageV4Parameters} importParameters - object comprising all input data
|
|
96
|
+
* @param manifestSettings - object page settings section of the manifest
|
|
97
|
+
* @param configPart - the given part of the object page config
|
|
98
|
+
* @param sectionId - ID of the current section
|
|
99
|
+
* @param {MetadataInstanceInterface} factory - factory, for generating the access to reflect-metadata
|
|
100
|
+
* @param v4Page - current (object) page
|
|
101
|
+
*/
|
|
102
|
+
function fillTableInConfig(importParameters, manifestSettings, configPart, sectionId, factory, tableId) {
|
|
103
|
+
const manifestSectionId = tableId ? tableId : getManifestId(sectionId);
|
|
104
|
+
const manifestSection = manifestSettings.controlConfiguration[manifestSectionId];
|
|
105
|
+
if (manifestSection) {
|
|
106
|
+
// Data needs to be transferred
|
|
107
|
+
configPart[sectionId] = {};
|
|
108
|
+
configPart[sectionId].table = factory.createInstance(ux_specification_types_1.PageTypeV4.ObjectPage, common_1.DefinitionName.ObjectPageTable);
|
|
109
|
+
const sectionDefinition = `${common_1.DefinitionName.ObjectPageTable}<${tableId ? getDefinitionId(tableId) : sectionId.replace('#', '::')}>`;
|
|
110
|
+
utils_1.transferSettingsOfObject(configPart[sectionId].table, importParameters.manifest, importParameters.jsonSchema.definitions[sectionDefinition], importParameters.routingId, [], manifestSectionId);
|
|
111
|
+
configPart[sectionId].table.toolBar = factory.createInstance(ux_specification_types_1.PageTypeV4.ObjectPage, common_1.DefinitionName.ToolBar, {
|
|
112
|
+
actions: {}
|
|
113
|
+
});
|
|
114
|
+
fillTableActionsInConfig(importParameters, sectionId, configPart, factory, manifestSectionId);
|
|
115
|
+
fillTableColumnsInConfig(importParameters, manifestSection, configPart, sectionId, factory, manifestSectionId);
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Fills the sections and subsections of the configuration (recursive function)
|
|
120
|
+
* @param {ImportObjectPageV4Parameters} importParameters - object comprising all input data
|
|
121
|
+
* @param sectionProperties - current properties' list (of sections or subsections)
|
|
122
|
+
* @param manifestSettings - object page settings section of the manifest
|
|
123
|
+
* @param configPart - the given part of the object page config
|
|
124
|
+
* @param {MetadataInstanceInterface} factory - factory, for generating the access to reflect-metadata
|
|
125
|
+
* @param v4Page - current (object) page
|
|
126
|
+
*/
|
|
127
|
+
function fillSectionsInConfig(importParameters, sectionProperties, manifestSettings, configPart, factory) {
|
|
128
|
+
var _a, _b;
|
|
129
|
+
for (const sectionId in sectionProperties) {
|
|
130
|
+
const schemaSection = sectionProperties[sectionId];
|
|
131
|
+
let tableManifestId = sectionId;
|
|
132
|
+
if (sectionId.includes('com.sap.vocabularies.UI.v1.PresentationVariant') && ((_a = schemaSection.$ref) === null || _a === void 0 ? void 0 : _a.startsWith(common_1.DEFINITION_LINK_PREFIX + common_1.DefinitionName.ObjectPageSectionTableV4))) {
|
|
133
|
+
const sectionIdRef = schemaSection['$ref'].split(common_1.DEFINITION_LINK_PREFIX)[1];
|
|
134
|
+
tableManifestId = sectionIdRef ? getManifestId(sectionIdRef, true) : sectionId;
|
|
135
|
+
fillTableInConfig(importParameters, manifestSettings, configPart, sectionId, factory, tableManifestId);
|
|
136
|
+
}
|
|
137
|
+
else if ((_b = schemaSection.$ref) === null || _b === void 0 ? void 0 : _b.startsWith(common_1.DEFINITION_LINK_PREFIX + common_1.DefinitionName.ObjectPageSectionTableV4)) {
|
|
138
|
+
// Section without subsections
|
|
139
|
+
fillTableInConfig(importParameters, manifestSettings, configPart, sectionId, factory);
|
|
140
|
+
}
|
|
141
|
+
else if (schemaSection.properties && schemaSection.properties.subsections) {
|
|
142
|
+
configPart[sectionId] = {
|
|
143
|
+
subsections: {}
|
|
144
|
+
};
|
|
145
|
+
fillSectionsInConfig(importParameters, schemaSection.properties.subsections['properties'], manifestSettings, configPart[sectionId].subsections, factory);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Fills the header facets in the config file of a V4 object page
|
|
151
|
+
* @param appSchema - app specific schema
|
|
152
|
+
* @param objectPageConfig - configuration, to be enhanced
|
|
153
|
+
* @param {MetadataInstanceInterface} factory - factory, for generating the access to reflect-metadata
|
|
154
|
+
* @param manifest - manifest.json of the app
|
|
155
|
+
* @param v4Page - current (object) page
|
|
156
|
+
*/
|
|
157
|
+
function fillHeaderFacets(appSchema, objectPageConfig, factory, manifest, routingId) {
|
|
158
|
+
var _a, _b, _c;
|
|
159
|
+
const headerSections = appSchema.definitions[common_1.DefinitionName.HeaderSections];
|
|
160
|
+
if (headerSections && headerSections.properties) {
|
|
161
|
+
objectPageConfig.header.sections = {};
|
|
162
|
+
for (const sectionId in headerSections.properties) {
|
|
163
|
+
const sectionDefinitionKey = (_a = headerSections.properties[sectionId]['$ref']) === null || _a === void 0 ? void 0 : _a.split(common_1.DEFINITION_LINK_PREFIX)[1];
|
|
164
|
+
const sectionDefinition = sectionDefinitionKey
|
|
165
|
+
? appSchema.definitions[sectionDefinitionKey]
|
|
166
|
+
: headerSections.properties[sectionId];
|
|
167
|
+
const factoryKey = sectionDefinitionKey ? sectionDefinitionKey.split('<')[0] : undefined;
|
|
168
|
+
objectPageConfig.header.sections[sectionId] = factoryKey
|
|
169
|
+
? factory.createInstance(ux_specification_types_1.PageTypeV4.ObjectPage, factoryKey)
|
|
170
|
+
: {};
|
|
171
|
+
utils_1.transferSettingsOfObject(objectPageConfig.header.sections[sectionId], manifest, sectionDefinition, routingId, [], (_c = (_b = sectionDefinition) === null || _b === void 0 ? void 0 : _b.title) === null || _c === void 0 ? void 0 : _c.split(common_1.FacetTitlePrefix)[1]);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Fills the object page configuration from the given manifest
|
|
177
|
+
* @param {ImportObjectPageV4Parameters} importParameters - object comprising all input data
|
|
178
|
+
* @param v4Page - current (object) page
|
|
179
|
+
* @param {MetadataInstanceInterface} factory - factory, for generating the access to reflect-metadata
|
|
180
|
+
* @returns {ObjectPageConfig} the object page configuration
|
|
181
|
+
*/
|
|
182
|
+
function fillObjectPageConfig(importParameters, v4Page, factory) {
|
|
183
|
+
var _a, _b;
|
|
184
|
+
const objectPageConfig = factory.createPageInstance(ux_specification_types_1.PageTypeV4.ObjectPage);
|
|
185
|
+
const manifestSettings = v4Page.options && v4Page.options.settings;
|
|
186
|
+
// Transfer header information
|
|
187
|
+
objectPageConfig.header = factory.createInstance(ux_specification_types_1.PageTypeV4.ObjectPage, common_1.DefinitionName.ObjectPageHeader);
|
|
188
|
+
utils_1.transferSettingsOfObject(objectPageConfig.header, importParameters.manifest, importParameters.jsonSchema.definitions[common_1.DefinitionName.ObjectPageHeader], importParameters.routingId, []);
|
|
189
|
+
// Transfer layout information
|
|
190
|
+
objectPageConfig.layout = factory.createInstance(ux_specification_types_1.PageTypeV4.ObjectPage, common_1.DefinitionName.ObjectPageLayout);
|
|
191
|
+
utils_1.transferSettingsOfObject(objectPageConfig.layout, importParameters.manifest, importParameters.jsonSchema.definitions[common_1.DefinitionName.ObjectPageLayout], importParameters.routingId, []);
|
|
192
|
+
utils_1.transferSettingsOfObject(objectPageConfig, importParameters.manifest, importParameters.jsonSchema, importParameters.routingId, []);
|
|
193
|
+
if (!objectPageConfig.sections) {
|
|
194
|
+
objectPageConfig.sections = {};
|
|
195
|
+
}
|
|
196
|
+
if (manifestSettings) {
|
|
197
|
+
if (manifestSettings.controlConfiguration && importParameters.jsonSchema.definitions[common_1.DefinitionName.Sections]) {
|
|
198
|
+
// Fill sections and subsections
|
|
199
|
+
objectPageConfig.sections = {};
|
|
200
|
+
fillSectionsInConfig(importParameters, importParameters.jsonSchema.definitions[common_1.DefinitionName.Sections]['properties'], manifestSettings, objectPageConfig.sections, factory);
|
|
201
|
+
}
|
|
202
|
+
// Fill Custom sections
|
|
203
|
+
const customSections = (_b = (_a = manifestSettings.content) === null || _a === void 0 ? void 0 : _a.body) === null || _b === void 0 ? void 0 : _b.sections;
|
|
204
|
+
if (customSections) {
|
|
205
|
+
objectPageConfig.sections.custom = [];
|
|
206
|
+
for (const sectionId in customSections) {
|
|
207
|
+
const section = factory.createInstance(ux_specification_types_1.PageTypeV4.ObjectPage, common_1.DefinitionName.ObjectPageCustomSectionFragment);
|
|
208
|
+
utils_1.transferSettingsOfObject(section, importParameters.manifest, importParameters.jsonSchema.definitions[common_1.DefinitionName.ObjectPageCustomSectionFragment], importParameters.routingId, [], sectionId);
|
|
209
|
+
objectPageConfig.sections.custom.push(section);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
// Fill header facets
|
|
213
|
+
fillHeaderFacets(importParameters.jsonSchema, objectPageConfig, factory, importParameters.manifest, importParameters.routingId);
|
|
214
|
+
}
|
|
215
|
+
return objectPageConfig;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* External API: Create configuration (file content) for a V4 object page
|
|
219
|
+
* @param {ImportObjectPageV4Parameters} importParameters - object comprising all input data
|
|
220
|
+
* @param {ExtensionLogger} logger - Logger class for logging messages
|
|
221
|
+
*
|
|
222
|
+
* @returns {ObjectPageConfig} config - the object page configuration
|
|
223
|
+
*/
|
|
224
|
+
function createObjectPageConfigV4(importParameters) {
|
|
225
|
+
// Initialize i18next
|
|
226
|
+
i18n_1.initI18n();
|
|
227
|
+
if (!importParameters.manifest[ux_specification_types_1.ManifestSection.ui5] || !importParameters.manifest[ux_specification_types_1.ManifestSection.ui5]['routing']) {
|
|
228
|
+
extensionLogger_1.log(importParameters.logger, {
|
|
229
|
+
severity: "error" /* Error */,
|
|
230
|
+
message: i18next_1.default.t('NOROUTING'),
|
|
231
|
+
location: {
|
|
232
|
+
path: common_1.MANIFESTPATH,
|
|
233
|
+
range: [ux_specification_types_1.ManifestSection.ui5]
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
return;
|
|
237
|
+
}
|
|
238
|
+
const v4Pages = importParameters.manifest[ux_specification_types_1.ManifestSection.ui5]['routing']['targets'];
|
|
239
|
+
if (!v4Pages) {
|
|
240
|
+
extensionLogger_1.log(importParameters.logger, {
|
|
241
|
+
severity: "error" /* Error */,
|
|
242
|
+
message: i18next_1.default.t('NOTARGETS'),
|
|
243
|
+
location: {
|
|
244
|
+
path: common_1.MANIFESTPATH,
|
|
245
|
+
range: [ux_specification_types_1.ManifestSection.ui5, 'routing']
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
250
|
+
const v4Page = v4Pages[importParameters.routingId];
|
|
251
|
+
if (!v4Page) {
|
|
252
|
+
extensionLogger_1.log(importParameters.logger, {
|
|
253
|
+
severity: "error" /* Error */,
|
|
254
|
+
message: i18next_1.default.t('NOROUTINGID', { routingId: importParameters.routingId }),
|
|
255
|
+
location: {
|
|
256
|
+
path: common_1.MANIFESTPATH,
|
|
257
|
+
range: [ux_specification_types_1.ManifestSection.ui5, 'routing']
|
|
258
|
+
}
|
|
259
|
+
});
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
const factory = new factory_1.MetadataInstanceFactoryV4();
|
|
263
|
+
//Fill config.json
|
|
264
|
+
return fillObjectPageConfig(importParameters, v4Page, factory);
|
|
265
|
+
}
|
|
266
|
+
exports.createObjectPageConfigV4 = createObjectPageConfigV4;
|
|
267
|
+
//# sourceMappingURL=objectPage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"objectPage.js","sourceRoot":"","sources":["../../../../../../src/sync/v4/import/pages/objectPage.ts"],"names":[],"mappings":";;;;;AAGA,wEAA0E;AAC1E,oCAAoD;AACpD,4CAMyB;AACzB,sDAA8B;AAC9B,iEAA+D;AAE/D,gDAAiD;AACjD,kDAA4E;AAG5E;;;;;GAKG;AACH,SAAgB,aAAa,CAAC,SAAiB,EAAE,SAAS,GAAG,KAAK;;IAC9D,MAAM,OAAO,GAAG,SAAS,CAAC,CAAC,OAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,0CAAE,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC;IAC9E,MAAM,SAAS,GAAG,OAAO,CAAC,KAAK,CAAC,IAAI,oDAA0B,EAAE,CAAC,CAAC;IAClE,OAAO,GAAG,MAAA,SAAS,CAAC,CAAC,CAAC,0CAAE,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,IAAI,oDAA0B,GAAG,MAAA,SAAS,CAAC,CAAC,CAAC,0CAAE,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,CAAC;AAC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gB,CAAC,SAAS,CAAC,CAAC;IACnD,IAAI,CAAC,MAAM,EAAE;QACT,qBAAG,CAAC,gBAAgB,CAAC,MAAM,EAAE;YACzB,QAAQ,qBAAmB;YAC3B,OAAO,EAAE,iBAAO,CAAC,CAAC,CAAC,aAAa,EAAE,EAAE,SAAS,EAAE,gBAAgB,CAAC,SAAS,EAAE,CAAC;YAC5E,QAAQ,EAAE;gBACN,IAAI,EAAE,qBAAY;gBAClB,KAAK,EAAE,CAAC,wCAAe,CAAC,GAAG,EAAE,SAAS,CAAC;aAC1C;SACJ,CAAC,CAAC;QACH,OAAO;KACV;IACD,MAAM,OAAO,GAAG,IAAI,mCAAO,EAAE,CAAC;IAE9B,kBAAkB;IAClB,OAAO,oBAAoB,CAAC,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;AACnE,CAAC;AA5CD,4DA4CC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Definition, DefinitionOrBoolean } from 'typescript-json-schema';
|
|
2
|
-
import type { Manifest } from '../../../specification/common/webapp/manifest/Manifest';
|
|
3
2
|
import type { ExtensionLogger } from '../../..';
|
|
3
|
+
import type { Manifest } from '@sap/ux-specification-types';
|
|
4
4
|
/**
|
|
5
5
|
* Transfers settings from manifest to object page config
|
|
6
6
|
* @param configPart - part of the configuration to be filled
|
|
@@ -13,3 +13,4 @@ import type { ExtensionLogger } from '../../..';
|
|
|
13
13
|
export declare function transferSettingsOfObject(configPart: {
|
|
14
14
|
[key: string]: any;
|
|
15
15
|
}, manifest: Manifest, appSchema: Definition | DefinitionOrBoolean, pageKey: string, breadcrumbs: string[], sectionId?: string, logger?: ExtensionLogger): void;
|
|
16
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/sync/v4/import/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAG9E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAE5D;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,CACpC,UAAU,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,EAClC,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,UAAU,GAAG,mBAAmB,EAC3C,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EAAE,EACrB,SAAS,CAAC,EAAE,MAAM,EAClB,MAAM,CAAC,EAAE,eAAe,GACzB,IAAI,CAoBN"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const common_1 = require("../../common");
|
|
4
|
+
const decorators_1 = require("../../common/decoration/decorators");
|
|
5
|
+
/**
|
|
6
|
+
* Transfers settings from manifest to object page config
|
|
7
|
+
* @param configPart - part of the configuration to be filled
|
|
8
|
+
* @param manifest - manifest.json of the app
|
|
9
|
+
* @param appSchema - app specific schema
|
|
10
|
+
* @param pageID - ID of the given object page
|
|
11
|
+
* @param sectionId (optional) - ID of the given section (optional)
|
|
12
|
+
* @param {ExtensionLogger} logger - Logger class for logging messages
|
|
13
|
+
*/
|
|
14
|
+
function transferSettingsOfObject(configPart, manifest, appSchema, pageKey, breadcrumbs, sectionId, logger) {
|
|
15
|
+
if (!appSchema) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
let manifestSection = {};
|
|
19
|
+
const deprecatedProperties = configPart === null || configPart === void 0 ? void 0 : configPart.getDeprecated;
|
|
20
|
+
const targetAnnotationEncoded = sectionId && sectionId.replace('/', '::');
|
|
21
|
+
for (const propertyKey in appSchema['properties']) {
|
|
22
|
+
const syncRule = decorators_1.getReflectMetadata(configPart, propertyKey);
|
|
23
|
+
if (syncRule === null || syncRule === void 0 ? void 0 : syncRule.manifest) {
|
|
24
|
+
const path = syncRule.manifest.path([pageKey], manifest, targetAnnotationEncoded, ...breadcrumbs);
|
|
25
|
+
manifestSection = common_1.getManifestSectionByPathV4(manifest, path, sectionId, targetAnnotationEncoded);
|
|
26
|
+
if (manifestSection && Object.keys(manifestSection).length > 0) {
|
|
27
|
+
common_1.importProperty(syncRule, manifestSection, propertyKey, configPart, sectionId, breadcrumbs);
|
|
28
|
+
common_1.checkDeprecatedProperties(deprecatedProperties, manifestSection, path, logger);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.transferSettingsOfObject = transferSettingsOfObject;
|
|
34
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/sync/v4/import/utils.ts"],"names":[],"mappings":";;AACA,yCAAqG;AACrG,mEAAwE;AAIxE;;;;;;;;GAQG;AACH,SAAgB,wBAAwB,CACpC,UAAkC,EAClC,QAAkB,EAClB,SAA2C,EAC3C,OAAe,EACf,WAAqB,EACrB,SAAkB,EAClB,MAAwB;IAExB,IAAI,CAAC,SAAS,EAAE;QACZ,OAAO;KACV;IACD,IAAI,eAAe,GAAG,EAAE,CAAC;IACzB,MAAM,oBAAoB,GAAG,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,aAAa,CAAC;IACvD,MAAM,uBAAuB,GAAG,SAAS,IAAI,SAAS,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IAE1E,KAAK,MAAM,WAAW,IAAI,SAAS,CAAC,YAAY,CAAC,EAAE;QAC/C,MAAM,QAAQ,GAAG,+BAAkB,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;QAE7D,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,QAAQ,EAAE;YACpB,MAAM,IAAI,GAAG,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,EAAE,QAAQ,EAAE,uBAAuB,EAAE,GAAG,WAAW,CAAC,CAAC;YAClG,eAAe,GAAG,mCAA0B,CAAC,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,uBAAuB,CAAC,CAAC;YACjG,IAAI,eAAe,IAAI,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;gBAC5D,uBAAc,CAAC,QAAQ,EAAE,eAAe,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;gBAC3F,kCAAyB,CAAC,oBAAoB,EAAE,eAAe,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;aAClF;SACJ;KACJ;AACL,CAAC;AA5BD,4DA4BC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/sync/v4/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAClF,OAAO,KAAK,KAAK,UAAU,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAE/C,oBAAY,UAAU,GAAG,OAAO,UAAU,CAAC;AAC3C,oBAAY,OAAO,GAAG,OAAO,OAAO,CAAC;AAErC,oBAAY,qBAAqB,GAAG,KAAK,GAAG,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/sync/v4/types.ts"],"names":[],"mappings":""}
|
|
@@ -2,3 +2,4 @@ export declare function replaceSpecialChars(sId: string): string;
|
|
|
2
2
|
export declare const prepareId: (sId: string) => string;
|
|
3
3
|
export declare const getStableIdPartFromSemanticObjectAndAction: (oDataField: any) => string;
|
|
4
4
|
export declare const getStableIdPartFromDataField: (oDataField: any) => string;
|
|
5
|
+
//# sourceMappingURL=StableIdHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StableIdHelper.d.ts","sourceRoot":"","sources":["../../../../../src/sync/v4/utils/StableIdHelper.ts"],"names":[],"mappings":"AAgBA,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAuBvD;AAQD,eAAO,MAAM,SAAS,yBAOrB,CAAC;AAmCF,eAAO,MAAM,0CAA0C,6BAgBtD,CAAC;AAEF,eAAO,MAAM,4BAA4B,6BA+CxC,CAAC"}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/**
|
|
4
|
+
* Stable Id helper (parts copied from sap.fe.core/helpers/StableIdHelper.ts)
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Copy for the Core.isValid function to be independent.
|
|
8
|
+
*
|
|
9
|
+
* @param {string} vValue string to validate
|
|
10
|
+
* @returns {boolean} the validate
|
|
11
|
+
*/
|
|
12
|
+
function isValid(vValue) {
|
|
13
|
+
return /^([A-Za-z_][-A-Za-z0-9_.:]*)$/.test(vValue);
|
|
14
|
+
}
|
|
15
|
+
function replaceSpecialChars(sId) {
|
|
16
|
+
if (typeof sId !== 'string') {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
if (sId.indexOf(' ') >= 0) {
|
|
20
|
+
throw sId + ' - Spaces are not allowed in ID parts.';
|
|
21
|
+
}
|
|
22
|
+
sId = sId
|
|
23
|
+
.replace(/^\/|^@|^#|^\*/, '') // remove special characters from the beginning of the string
|
|
24
|
+
.replace(/\/$|@$|#$|\*$/, '') // remove special characters from the end of the string
|
|
25
|
+
.replace(/\/|@|\(|\)|#|\*/g, '::'); // replace special characters with ::
|
|
26
|
+
// Replace double occurrences of the separator with a single separator
|
|
27
|
+
while (sId.indexOf('::::') > -1) {
|
|
28
|
+
sId = sId.replace('::::', '::');
|
|
29
|
+
}
|
|
30
|
+
// If there is a :: at the end of the ID remove it
|
|
31
|
+
if (sId.slice(-2) === '::') {
|
|
32
|
+
sId = sId.slice(0, -2);
|
|
33
|
+
}
|
|
34
|
+
return sId;
|
|
35
|
+
}
|
|
36
|
+
exports.replaceSpecialChars = replaceSpecialChars;
|
|
37
|
+
function removeNamespaces(sId) {
|
|
38
|
+
sId = sId.replace('com.sap.vocabularies.UI.v1.', '');
|
|
39
|
+
sId = sId.replace('com.sap.vocabularies.Communication.v1.', '');
|
|
40
|
+
return sId;
|
|
41
|
+
}
|
|
42
|
+
exports.prepareId = function (sId) {
|
|
43
|
+
sId = replaceSpecialChars(removeNamespaces(sId));
|
|
44
|
+
if (isValid(sId)) {
|
|
45
|
+
return sId;
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
throw sId + ' - Stable Id could not be generated due to insufficient information.';
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
function evaluateConcat(oValue) {
|
|
52
|
+
let sPathConcat = '';
|
|
53
|
+
for (const applyValue of oValue.$Apply) {
|
|
54
|
+
if (applyValue.$Path) {
|
|
55
|
+
if (sPathConcat) {
|
|
56
|
+
sPathConcat += '::';
|
|
57
|
+
}
|
|
58
|
+
sPathConcat += applyValue.$Path;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
return sPathConcat;
|
|
62
|
+
}
|
|
63
|
+
function getStableIdPartFromValue(oValue) {
|
|
64
|
+
var _a, _b;
|
|
65
|
+
if ((oValue === null || oValue === void 0 ? void 0 : oValue.$Path) || (oValue === null || oValue === void 0 ? void 0 : oValue.path)) {
|
|
66
|
+
return oValue.$Path || oValue.path;
|
|
67
|
+
}
|
|
68
|
+
if ((oValue === null || oValue === void 0 ? void 0 : oValue.$Apply) && oValue.$Function === 'odata.concat') {
|
|
69
|
+
return evaluateConcat(oValue);
|
|
70
|
+
}
|
|
71
|
+
if (oValue) {
|
|
72
|
+
if (typeof oValue === 'string') {
|
|
73
|
+
//old AVT format
|
|
74
|
+
return replaceSpecialChars(oValue.replace(/ /g, '_'));
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
//new AVT format
|
|
78
|
+
return replaceSpecialChars((_b = (_a = oValue === null || oValue === void 0 ? void 0 : oValue.value) === null || _a === void 0 ? void 0 : _a.String) === null || _b === void 0 ? void 0 : _b.replace(/ /g, '_'));
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
exports.getStableIdPartFromSemanticObjectAndAction = function (oDataField) {
|
|
83
|
+
let sIdPart = '';
|
|
84
|
+
if (typeof oDataField.SemanticObject === 'string') {
|
|
85
|
+
sIdPart += oDataField.SemanticObject;
|
|
86
|
+
}
|
|
87
|
+
else if (oDataField.SemanticObject.$Path) {
|
|
88
|
+
sIdPart += oDataField.SemanticObject.$Path;
|
|
89
|
+
}
|
|
90
|
+
if (typeof oDataField.Action === 'string') {
|
|
91
|
+
sIdPart += '::' + oDataField.Action;
|
|
92
|
+
}
|
|
93
|
+
else if (oDataField.Action && oDataField.Action.$Path) {
|
|
94
|
+
sIdPart += '::' + oDataField.Action.$Path;
|
|
95
|
+
}
|
|
96
|
+
if (oDataField['RequiresContext'] && oDataField['RequiresContext'] == true) {
|
|
97
|
+
sIdPart += '::RequiresContext';
|
|
98
|
+
}
|
|
99
|
+
return sIdPart;
|
|
100
|
+
};
|
|
101
|
+
exports.getStableIdPartFromDataField = function (oDataField) {
|
|
102
|
+
let sIdPart = '';
|
|
103
|
+
if (oDataField.$Type && oDataField.$Type === "com.sap.vocabularies.UI.v1.DataFieldForAction" /* DataFieldForAction */) {
|
|
104
|
+
sIdPart = 'DataFieldForAction::';
|
|
105
|
+
sIdPart += oDataField.Action;
|
|
106
|
+
return exports.prepareId(sIdPart);
|
|
107
|
+
}
|
|
108
|
+
else if (oDataField.$Type && oDataField.$Type === "com.sap.vocabularies.UI.v1.DataFieldForIntentBasedNavigation" /* DataFieldForIntentBasedNavigation */) {
|
|
109
|
+
sIdPart = 'DataFieldForIntentBasedNavigation::';
|
|
110
|
+
sIdPart += exports.getStableIdPartFromSemanticObjectAndAction(oDataField);
|
|
111
|
+
return sIdPart;
|
|
112
|
+
}
|
|
113
|
+
else if (oDataField.$Type && oDataField.$Type === "com.sap.vocabularies.UI.v1.DataFieldForAnnotation" /* DataFieldForAnnotation */) {
|
|
114
|
+
sIdPart = 'DataFieldForAnnotation::';
|
|
115
|
+
sIdPart += exports.prepareId(oDataField.Target.$AnnotationPath || oDataField.Target.value);
|
|
116
|
+
return sIdPart;
|
|
117
|
+
}
|
|
118
|
+
else if (oDataField.$Type && oDataField.$Type === "com.sap.vocabularies.UI.v1.DataFieldWithAction" /* DataFieldWithAction */) {
|
|
119
|
+
sIdPart = 'DataFieldWithAction::';
|
|
120
|
+
if (oDataField.Value) {
|
|
121
|
+
sIdPart += getStableIdPartFromValue(oDataField.Value) + '::';
|
|
122
|
+
}
|
|
123
|
+
sIdPart += oDataField.Action;
|
|
124
|
+
return exports.prepareId(sIdPart);
|
|
125
|
+
}
|
|
126
|
+
else if (oDataField.$Type && oDataField.$Type === "com.sap.vocabularies.UI.v1.DataField" /* DataField */) {
|
|
127
|
+
sIdPart = 'DataField::';
|
|
128
|
+
sIdPart += getStableIdPartFromValue(oDataField.Value);
|
|
129
|
+
return exports.prepareId(sIdPart);
|
|
130
|
+
}
|
|
131
|
+
else if (oDataField.$Type && oDataField.$Type === "com.sap.vocabularies.UI.v1.DataFieldWithIntentBasedNavigation" /* DataFieldWithIntentBasedNavigation */) {
|
|
132
|
+
sIdPart = 'DataFieldWithIntentBasedNavigation::';
|
|
133
|
+
sIdPart += getStableIdPartFromValue(oDataField.Value) + '::';
|
|
134
|
+
sIdPart += exports.getStableIdPartFromSemanticObjectAndAction(oDataField);
|
|
135
|
+
return exports.prepareId(sIdPart);
|
|
136
|
+
}
|
|
137
|
+
else if (oDataField.$Type && oDataField.$Type === "com.sap.vocabularies.UI.v1.DataFieldWithNavigationPath" /* DataFieldWithNavigationPath */) {
|
|
138
|
+
sIdPart = 'DataFieldWithNavigationPath::';
|
|
139
|
+
sIdPart += getStableIdPartFromValue(oDataField.Value);
|
|
140
|
+
if (oDataField.Target && oDataField.Target['$NavigationPropertyPath']) {
|
|
141
|
+
sIdPart += '::' + oDataField.Target['$NavigationPropertyPath'];
|
|
142
|
+
}
|
|
143
|
+
return exports.prepareId(sIdPart);
|
|
144
|
+
}
|
|
145
|
+
else if (oDataField.$Type && oDataField.$Type === "com.sap.vocabularies.UI.v1.DataFieldWithUrl" /* DataFieldWithUrl */) {
|
|
146
|
+
sIdPart = 'DataFieldWithUrl::';
|
|
147
|
+
sIdPart += getStableIdPartFromValue(oDataField.Value);
|
|
148
|
+
return exports.prepareId(sIdPart);
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
// In case of a string or unknown property
|
|
152
|
+
// Log.error("Stable ID Helper: Unable to create a stable ID. Please check the annotations.");
|
|
153
|
+
}
|
|
154
|
+
return undefined;
|
|
155
|
+
};
|
|
156
|
+
//# sourceMappingURL=StableIdHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StableIdHelper.js","sourceRoot":"","sources":["../../../../../src/sync/v4/utils/StableIdHelper.ts"],"names":[],"mappings":";;AAEA;;GAEG;AAEH;;;;;GAKG;AACH,SAAS,OAAO,CAAC,MAAc;IAC3B,OAAO,+BAA+B,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,mBAAmB,CAAC,GAAW;IAC3C,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QACzB,OAAO;KACV;IACD,IAAI,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;QACvB,MAAM,GAAG,GAAG,wCAAwC,CAAC;KACxD;IACD,GAAG,GAAG,GAAG;SACJ,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,6DAA6D;SAC1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
2
|
-
import type { ExtensionLogger } from '../../..';
|
|
1
|
+
import type { ExtensionLogger, GenerateAppSchemaParameters } from '../../..';
|
|
3
2
|
import type { LineItem, DataFieldForActionAbstractTypes } from '@sap-ux/vocabularies-types/vocabularies/UI';
|
|
4
3
|
import type { AnnotationTerm, ConvertedMetadata, EntitySet, EntityType } from '@sap-ux/vocabularies-types';
|
|
5
|
-
import { DefinitionName } from '
|
|
4
|
+
import { DefinitionName } from '../../common';
|
|
5
|
+
import { v4 } from '@sap/ux-specification-types';
|
|
6
6
|
import type { Definition } from 'typescript-json-schema';
|
|
7
7
|
/**
|
|
8
8
|
* Common function for enhancing the LineItems definition of app schema by custom columns
|
|
@@ -13,7 +13,7 @@ import type { Definition } from 'typescript-json-schema';
|
|
|
13
13
|
* @param sectionId - identifier of the current object page section in schema
|
|
14
14
|
* @param sectionIdInManifest - identifier of the current object page section in manifest
|
|
15
15
|
*/
|
|
16
|
-
export declare function addCustomColumnDefinition(appSchema: Definition, v4Page: SapUiAppPageV4, logger: ExtensionLogger, customColumnDefinitionName?: string, sectionId?: string, sectionIdInManifest?: string): void;
|
|
16
|
+
export declare function addCustomColumnDefinition(appSchema: Definition, v4Page: v4.SapUiAppPageV4, logger: ExtensionLogger, customColumnDefinitionName?: string, sectionId?: string, sectionIdInManifest?: string): void;
|
|
17
17
|
/**
|
|
18
18
|
* Processes a LineItem record of type DataFieldForAction during app schema generation
|
|
19
19
|
* @param appSchema - the app specific schema that shall get enhanced
|
|
@@ -44,7 +44,7 @@ export declare function addLineItemsType(appSchema: Definition, lineItemAnnotati
|
|
|
44
44
|
* @param positionName - ID of the definition of custom column position in schema
|
|
45
45
|
* @param sectionIdInManifest - identifier of the current object page section in manifest
|
|
46
46
|
*/
|
|
47
|
-
export declare function addFragmentEnumForAnchor(appSchema: Definition, lineItemId: string, v4Page: SapUiAppPageV4, positionName?: string, sectionIdInManifest?: string): void;
|
|
47
|
+
export declare function addFragmentEnumForAnchor(appSchema: Definition, lineItemId: string, v4Page: v4.SapUiAppPageV4, positionName?: string, sectionIdInManifest?: string): void;
|
|
48
48
|
/**
|
|
49
49
|
* Adds an enum or value help to position > anchor of custom column
|
|
50
50
|
* @param appSchema - app specific JSON schema
|
|
@@ -60,7 +60,7 @@ export declare function addEnumForActionAnchor(appSchema: Definition, definition
|
|
|
60
60
|
* @param logger - logger for messages
|
|
61
61
|
* @returns the page definition in manifest (if found)
|
|
62
62
|
*/
|
|
63
|
-
export declare function findPageV4(pages: SapUiAppPageV4[], pageName: string, entitySet: EntitySet, logger: ExtensionLogger): SapUiAppPageV4 | undefined;
|
|
63
|
+
export declare function findPageV4(pages: v4.SapUiAppPageV4[], pageName: string, entitySet: EntitySet, logger: ExtensionLogger): v4.SapUiAppPageV4 | undefined;
|
|
64
64
|
/**
|
|
65
65
|
* Depending on the template type, strip down the app schema so that only the relevant views are part of it
|
|
66
66
|
* @param {Definition} appSchema - app specific JSON schema, to be adjusted
|
|
@@ -77,4 +77,5 @@ export declare function alignSchemaWithTemplateType(appSchema: Definition, gener
|
|
|
77
77
|
* @param sectionId - identifier of the current object page section in schema
|
|
78
78
|
* @param sectionIdInManifest - identifier of the current object page section in manifest
|
|
79
79
|
*/
|
|
80
|
-
export declare function addCustomActionDefinition(appSchema: Definition, v4Page: SapUiAppPageV4, logger: ExtensionLogger, customColumnDefinitionName?: string, sectionId?: string, sectionIdInManifest?: string): void;
|
|
80
|
+
export declare function addCustomActionDefinition(appSchema: Definition, v4Page: v4.SapUiAppPageV4, logger: ExtensionLogger, customColumnDefinitionName?: string, sectionId?: string, sectionIdInManifest?: string): void;
|
|
81
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/sync/v4/utils/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,2BAA2B,EAAE,MAAM,UAAU,CAAC;AAC7E,OAAO,KAAK,EACR,Q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