@sap/ux-specification 1.90.20 → 1.90.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +91 -0
- 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-ListReport.html +1 -1
- package/dist/documentation/v4/v4-ObjectPage.html +1 -1
- package/dist/index-min.js +1 -1
- package/dist/schemas/v2/ApplicationV2.json +11 -11
- package/dist/schemas/v4/ApplicationV4.json +9 -5
- package/dist/schemas/v4/ListReportConfig.json +621 -195
- package/dist/schemas/v4/ObjectPageConfig.json +6 -38
- package/dist/scripts/extractDocu.js.map +1 -1
- package/dist/scripts/runDocu.js +10 -40
- package/dist/scripts/runDocu.js.map +1 -1
- package/dist/scripts/spec.js.map +1 -1
- package/dist/scripts/to-json-schema.js.map +1 -1
- package/dist/specification/v2/index-min.js +1 -1
- package/dist/specification/v4/index-min.js +1 -1
- package/dist/src/api.d.ts +2 -2
- package/dist/src/api.js +11 -11
- package/dist/src/api.js.map +1 -1
- package/dist/src/apiTypes.d.ts +14 -18
- package/dist/src/apiTypes.js +0 -2
- package/dist/src/apiTypes.js.map +1 -1
- package/dist/src/extensionLogger.d.ts +1 -1
- package/dist/src/project.d.ts +1 -1
- package/dist/src/project.js +11 -3
- package/dist/src/project.js.map +1 -1
- package/dist/src/specification/common/Application.d.ts +24 -4
- package/dist/src/specification/common/page.d.ts +1 -1
- package/dist/src/specification/common/webapp/manifest/Manifest.d.ts +6 -6
- package/dist/src/specification/common/webapp/manifest/sapUi5.d.ts +1 -1
- package/dist/src/specification/schemaAccess.d.ts +1 -1
- package/dist/src/specification/schemaAccess.js +1 -2
- package/dist/src/specification/schemaAccess.js.map +1 -1
- package/dist/src/specification/v2/ApplicationV2.d.ts +3 -17
- package/dist/src/specification/v2/controls/Facets.d.ts +1 -1
- package/dist/src/specification/v2/controls/Footer.d.ts +2 -2
- package/dist/src/specification/v2/controls/ObjectPageForm.d.ts +1 -1
- package/dist/src/specification/v2/controls/ObjectPageHeader.d.ts +1 -1
- package/dist/src/specification/v2/controls/ObjectPageSection.d.ts +2 -2
- package/dist/src/specification/v2/controls/ObjectPageTable.d.ts +2 -2
- package/dist/src/specification/v2/controls/ObjectPageToolBar.d.ts +1 -1
- package/dist/src/specification/v2/controls/Table.d.ts +3 -3
- package/dist/src/specification/v2/controls/ToolBar.d.ts +1 -1
- package/dist/src/specification/v2/page.d.ts +1 -1
- package/dist/src/specification/v2/pages/AnalyticalListPageConfig.d.ts +4 -4
- package/dist/src/specification/v2/pages/ListReportConfig.d.ts +2 -2
- package/dist/src/specification/v2/pages/ObjectPageConfig.d.ts +3 -3
- package/dist/src/specification/v2/pages/OverviewPageConfig.d.ts +3 -3
- package/dist/src/specification/v2/webapp/manifest/sapUi5.d.ts +2 -2
- package/dist/src/specification/v2/webapp/manifest/sapUi5.js +0 -1
- package/dist/src/specification/v2/webapp/manifest/sapUi5.js.map +1 -1
- package/dist/src/specification/v2/webapp/manifest/sapUiPageV2.d.ts +2 -2
- package/dist/src/specification/v4/ApplicationV4.d.ts +4 -14
- package/dist/src/specification/v4/controls/ObjectPageHeader.d.ts +1 -1
- package/dist/src/specification/v4/controls/ObjectPageHeaderSection.d.ts +2 -14
- package/dist/src/specification/v4/controls/ObjectPageSection.d.ts +2 -2
- package/dist/src/specification/v4/controls/ObjectPageTable.d.ts +3 -3
- package/dist/src/specification/v4/controls/ObjectPageToolBar.d.ts +1 -1
- package/dist/src/specification/v4/controls/Table.d.ts +166 -25
- package/dist/src/specification/v4/controls/Table.js +6 -0
- package/dist/src/specification/v4/controls/Table.js.map +1 -1
- package/dist/src/specification/v4/controls/ToolBar.d.ts +26 -1
- package/dist/src/specification/v4/page.d.ts +2 -2
- package/dist/src/specification/v4/pages/ListReportConfig.d.ts +22 -3
- package/dist/src/specification/v4/pages/ObjectPageConfig.d.ts +2 -2
- package/dist/src/specification/v4/pages/ObjectPageConfig.js.map +1 -1
- package/dist/src/specification/v4/pages/index.d.ts +0 -1
- package/dist/src/specification/v4/webapp/manifest/ManifestSettings.d.ts +77 -0
- package/dist/src/specification/v4/webapp/manifest/ManifestSettings.js.map +1 -1
- package/dist/src/specification/v4/webapp/manifest/sapUi5.d.ts +12 -3
- package/dist/src/specification/v4/webapp/manifest/sapUi5.js.map +1 -1
- package/dist/src/specification/v4/webapp/manifest/sapUiPageV4.d.ts +21 -1
- package/dist/src/specification/v4/webapp/manifest/sapUiPageV4.js.map +1 -1
- package/dist/src/sync/common/appProvider.d.ts +6 -5
- 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.js +1 -1
- 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.js.map +1 -1
- package/dist/src/sync/common/decoration/factory.d.ts +3 -3
- package/dist/src/sync/common/decoration/flex.d.ts +3 -3
- package/dist/src/sync/common/flexUtils.d.ts +4 -4
- package/dist/src/sync/common/flexUtils.js.map +1 -1
- package/dist/src/sync/common/generate/objectPage.d.ts +9 -7
- package/dist/src/sync/common/generate/objectPage.js +64 -68
- package/dist/src/sync/common/generate/objectPage.js.map +1 -1
- package/dist/src/sync/common/generate/utils.d.ts +24 -16
- package/dist/src/sync/common/generate/utils.js +55 -62
- package/dist/src/sync/common/generate/utils.js.map +1 -1
- package/dist/src/sync/common/import/utils.d.ts +4 -3
- package/dist/src/sync/common/import/utils.js +3 -2
- package/dist/src/sync/common/import/utils.js.map +1 -1
- package/dist/src/sync/common/importProject.d.ts +4 -4
- package/dist/src/sync/common/importProject.js +13 -22
- package/dist/src/sync/common/importProject.js.map +1 -1
- package/dist/src/sync/common/types.d.ts +60 -12
- package/dist/src/sync/common/types.js +59 -7
- package/dist/src/sync/common/types.js.map +1 -1
- package/dist/src/sync/common/utils.d.ts +18 -8
- package/dist/src/sync/common/utils.js +179 -65
- package/dist/src/sync/common/utils.js.map +1 -1
- package/dist/src/sync/i18n.d.ts +1 -1
- package/dist/src/sync/v2/application.d.ts +2 -2
- package/dist/src/sync/v2/application.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Action.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js.map +1 -1
- package/dist/src/sync/v2/export/controls/AnalyticalListPageKPI.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/Card.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/Field.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/FilterBar.d.ts +2 -1
- package/dist/src/sync/v2/export/controls/FormAction.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/FormAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/Fragment.d.ts +5 -11
- package/dist/src/sync/v2/export/controls/Fragment.js +110 -34
- package/dist/src/sync/v2/export/controls/Fragment.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageChart.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.d.ts +3 -3
- package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeader.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageLayout.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.d.ts +6 -6
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js +14 -17
- package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageTable.d.ts +3 -3
- package/dist/src/sync/v2/export/controls/ObjectPageTable.js +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageTable.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.d.ts +1 -1
- package/dist/src/sync/v2/export/controls/Table.d.ts +3 -2
- package/dist/src/sync/v2/export/controls/Table.js +26 -25
- package/dist/src/sync/v2/export/controls/Table.js.map +1 -1
- package/dist/src/sync/v2/export/controls/TableColumn.d.ts +2 -2
- package/dist/src/sync/v2/export/controls/ToolBar.d.ts +1 -1
- package/dist/src/sync/v2/export/export.d.ts +3 -3
- package/dist/src/sync/v2/export/export.js +6 -4
- package/dist/src/sync/v2/export/export.js.map +1 -1
- package/dist/src/sync/v2/export/exportPage.d.ts +2 -2
- package/dist/src/sync/v2/export/exportPage.js +2 -10
- package/dist/src/sync/v2/export/exportPage.js.map +1 -1
- package/dist/src/sync/v2/export/factory.d.ts +2 -1
- package/dist/src/sync/v2/export/factory.js.map +1 -1
- package/dist/src/sync/v2/export/manifest.d.ts +17 -1
- package/dist/src/sync/v2/export/manifest.js +29 -2
- package/dist/src/sync/v2/export/manifest.js.map +1 -1
- package/dist/src/sync/v2/export/pages/AnalyticalListPage.d.ts +4 -4
- package/dist/src/sync/v2/export/pages/AnalyticalListPage.js.map +1 -1
- package/dist/src/sync/v2/export/pages/ListReport.d.ts +2 -2
- package/dist/src/sync/v2/export/pages/ListReport.js.map +1 -1
- package/dist/src/sync/v2/export/pages/ObjectPage.d.ts +3 -3
- package/dist/src/sync/v2/export/pages/OverviewPage.d.ts +2 -2
- package/dist/src/sync/v2/export/pages/OverviewPage.js +6 -3
- package/dist/src/sync/v2/export/pages/OverviewPage.js.map +1 -1
- package/dist/src/sync/v2/export/view-controller-generator.d.ts +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.js +27 -36
- package/dist/src/sync/v2/generate/analyticalListReport.js.map +1 -1
- package/dist/src/sync/v2/generate/generate.d.ts +2 -2
- package/dist/src/sync/v2/generate/generate.js +3 -0
- package/dist/src/sync/v2/generate/generate.js.map +1 -1
- package/dist/src/sync/v2/generate/listReport.d.ts +7 -4
- package/dist/src/sync/v2/generate/listReport.js +38 -36
- 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.js +83 -108
- package/dist/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v2/generate/overviewPage.d.ts +1 -1
- package/dist/src/sync/v2/generate/overviewPage.js.map +1 -1
- package/dist/src/sync/v2/generate/utils.d.ts +5 -5
- package/dist/src/sync/v2/generate/utils.js +34 -33
- package/dist/src/sync/v2/generate/utils.js.map +1 -1
- package/dist/src/sync/v2/import/app/appProvider.d.ts +4 -4
- package/dist/src/sync/v2/import/app/appProvider.js.map +1 -1
- package/dist/src/sync/v2/import/app/ovpProvider.d.ts +3 -3
- package/dist/src/sync/v2/import/app/ovpProvider.js.map +1 -1
- package/dist/src/sync/v2/import/common/index.d.ts +6 -5
- package/dist/src/sync/v2/import/common/index.js +4 -17
- package/dist/src/sync/v2/import/common/index.js.map +1 -1
- package/dist/src/sync/v2/import/controls/table.d.ts +1 -1
- package/dist/src/sync/v2/import/controls/table.js +1 -1
- package/dist/src/sync/v2/import/controls/table.js.map +1 -1
- package/dist/src/sync/v2/import/pages/analyticalListPage.d.ts +2 -2
- package/dist/src/sync/v2/import/pages/analyticalListPage.js +1 -9
- package/dist/src/sync/v2/import/pages/analyticalListPage.js.map +1 -1
- package/dist/src/sync/v2/import/pages/listReport.d.ts +2 -2
- package/dist/src/sync/v2/import/pages/objectPage.d.ts +1 -1
- package/dist/src/sync/v2/import/pages/objectPage.js +33 -20
- package/dist/src/sync/v2/import/pages/objectPage.js.map +1 -1
- package/dist/src/sync/v2/import/pages/overviewPage.d.ts +2 -2
- package/dist/src/sync/v2/import/pages/overviewPage.js +1 -1
- package/dist/src/sync/v2/import/pages/overviewPage.js.map +1 -1
- package/dist/src/sync/v2/import/utils.d.ts +3 -2
- package/dist/src/sync/v2/import/utils.js +16 -2
- package/dist/src/sync/v2/import/utils.js.map +1 -1
- package/dist/src/sync/v2/types.d.ts +7 -7
- package/dist/src/sync/v4/application.d.ts +9 -5
- package/dist/src/sync/v4/application.js +23 -2
- package/dist/src/sync/v4/application.js.map +1 -1
- package/dist/src/sync/v4/export/controls/FilterBar.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts +2 -1
- package/dist/src/sync/v4/export/controls/ObjectPageCustomSection.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageHeader.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.js +3 -3
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderSection.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageLayout.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageTable.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/Table.d.ts +126 -9
- package/dist/src/sync/v4/export/controls/Table.js +439 -48
- package/dist/src/sync/v4/export/controls/Table.js.map +1 -1
- package/dist/src/sync/v4/export/controls/TableColumn.d.ts +52 -1
- package/dist/src/sync/v4/export/controls/TableColumn.js +246 -0
- package/dist/src/sync/v4/export/controls/TableColumn.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ToolBar.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ToolBarAction.d.ts +4 -1
- package/dist/src/sync/v4/export/controls/ToolBarAction.js +10 -0
- package/dist/src/sync/v4/export/controls/ToolBarAction.js.map +1 -1
- package/dist/src/sync/v4/export/export.d.ts +2 -2
- package/dist/src/sync/v4/export/export.js +317 -78
- package/dist/src/sync/v4/export/export.js.map +1 -1
- package/dist/src/sync/v4/export/factory.d.ts +2 -1
- package/dist/src/sync/v4/export/factory.js.map +1 -1
- package/dist/src/sync/v4/export/flexibleColumnLayout.d.ts +1 -1
- package/dist/src/sync/v4/export/flexibleColumnLayout.js.map +1 -1
- package/dist/src/sync/v4/export/manifest.d.ts +2 -2
- package/dist/src/sync/v4/export/manifest.js +43 -31
- package/dist/src/sync/v4/export/manifest.js.map +1 -1
- package/dist/src/sync/v4/export/pages/ListReport.d.ts +9 -3
- package/dist/src/sync/v4/export/pages/ListReport.js +49 -0
- package/dist/src/sync/v4/export/pages/ListReport.js.map +1 -1
- package/dist/src/sync/v4/export/pages/ObjectPage.d.ts +2 -2
- package/dist/src/sync/v4/export/pages/index.d.ts +0 -1
- package/dist/src/sync/v4/export/pages/index.js +0 -1
- package/dist/src/sync/v4/export/pages/index.js.map +1 -1
- package/dist/src/sync/v4/export/types.d.ts +7 -5
- package/dist/src/sync/v4/export/utils.d.ts +1 -1
- package/dist/src/sync/v4/generate/generate.d.ts +5 -4
- package/dist/src/sync/v4/generate/generate.js +6 -3
- package/dist/src/sync/v4/generate/generate.js.map +1 -1
- package/dist/src/sync/v4/generate/listReport.d.ts +2 -4
- package/dist/src/sync/v4/generate/listReport.js +406 -36
- package/dist/src/sync/v4/generate/listReport.js.map +1 -1
- package/dist/src/sync/v4/generate/objectPage.d.ts +1 -1
- package/dist/src/sync/v4/generate/objectPage.js +37 -14
- package/dist/src/sync/v4/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v4/import/app/appProvider.d.ts +6 -5
- package/dist/src/sync/v4/import/app/appProvider.js +55 -43
- package/dist/src/sync/v4/import/app/appProvider.js.map +1 -1
- package/dist/src/sync/v4/import/fragment.d.ts +2 -2
- package/dist/src/sync/v4/import/fragment.js.map +1 -1
- package/dist/src/sync/v4/import/index.d.ts +0 -1
- package/dist/src/sync/v4/import/index.js +0 -1
- package/dist/src/sync/v4/import/index.js.map +1 -1
- package/dist/src/sync/v4/import/pages/listReport.d.ts +8 -7
- package/dist/src/sync/v4/import/pages/listReport.js +120 -29
- package/dist/src/sync/v4/import/pages/listReport.js.map +1 -1
- package/dist/src/sync/v4/import/pages/objectPage.d.ts +2 -2
- package/dist/src/sync/v4/import/pages/objectPage.js +19 -19
- package/dist/src/sync/v4/import/pages/objectPage.js.map +1 -1
- package/dist/src/sync/v4/import/utils.d.ts +2 -2
- package/dist/src/sync/v4/import/utils.js +2 -2
- package/dist/src/sync/v4/import/utils.js.map +1 -1
- package/dist/src/sync/v4/types.d.ts +2 -2
- package/dist/src/sync/v4/utils/StableIdHelper.js.map +1 -1
- package/dist/src/sync/v4/utils/utils.d.ts +17 -12
- package/dist/src/sync/v4/utils/utils.js +72 -25
- package/dist/src/sync/v4/utils/utils.js.map +1 -1
- package/dist/test/test-data/flexChange/v2/stta.prod.man/index.d.ts +1 -1
- package/dist/test/test-projects/index.d.ts +1 -1
- package/dist/test/test-utils/utils.d.ts +5 -4
- package/dist/test/unit/export/manifest.test.d.ts +1 -0
- package/package.json +12 -10
- package/dist/documentation/v4/v4-AnalyticalListPage.html +0 -49
- package/dist/schemas/v4/AnalyticalListPageConfig.json +0 -392
- package/dist/src/specification/v4/pages/AnalyticalListPageConfig.d.ts +0 -13
- package/dist/src/specification/v4/pages/AnalyticalListPageConfig.js +0 -3
- package/dist/src/specification/v4/pages/AnalyticalListPageConfig.js.map +0 -1
- package/dist/src/sync/v4/export/pages/AnalyticalListPage.d.ts +0 -8
- package/dist/src/sync/v4/export/pages/AnalyticalListPage.js +0 -38
- package/dist/src/sync/v4/export/pages/AnalyticalListPage.js.map +0 -1
- package/dist/src/sync/v4/import/pages/analyticalListPage.d.ts +0 -11
- package/dist/src/sync/v4/import/pages/analyticalListPage.js +0 -60
- package/dist/src/sync/v4/import/pages/analyticalListPage.js.map +0 -1
|
@@ -10,7 +10,7 @@ const i18next_1 = __importDefault(require("i18next"));
|
|
|
10
10
|
const __1 = require("../../..");
|
|
11
11
|
const v4_1 = require("../../../v4");
|
|
12
12
|
/**
|
|
13
|
-
* Processes a LineItem record of type
|
|
13
|
+
* Processes a LineItem record of type DataFieldForAction during app schema generation
|
|
14
14
|
* @param appSchema - the app specific schema that shall get enhanced
|
|
15
15
|
* @param entityType - the entity type as part of the AVT ConverterOutput
|
|
16
16
|
* @param actions - actions definition in schema, parent object
|
|
@@ -22,22 +22,41 @@ function handleActionRecord(appSchema, entityType, actions, lineItemPath, lineIt
|
|
|
22
22
|
// Action but not inline action
|
|
23
23
|
if (lineItemRecord.Determining !== true) {
|
|
24
24
|
//no footer bar -> toolbar action
|
|
25
|
-
|
|
25
|
+
let actionDefinitionName;
|
|
26
|
+
if (lineItemId.startsWith('LineItemsOfView')) {
|
|
27
|
+
actionDefinitionName = v4_1.DefinitionName.ViewToolBarAction;
|
|
28
|
+
}
|
|
29
|
+
else if (lineItemId.startsWith(v4_1.DefinitionName.LineItems)) {
|
|
30
|
+
actionDefinitionName = v4_1.DefinitionName.ToolBarAction;
|
|
31
|
+
}
|
|
32
|
+
else {
|
|
33
|
+
actionDefinitionName = v4_1.DefinitionName.ObjectPageToolBarAction;
|
|
34
|
+
}
|
|
26
35
|
const actionDefinition = common_1.prepareRef(`${actionDefinitionName}<${lineItemRecord.Action}>`);
|
|
27
36
|
const description = utils_1.getDatafieldDescription(lineItemRecord, entityType);
|
|
28
|
-
|
|
37
|
+
const prefix = lineItemRecord.$Type.split(`${common_1.UIVOCABULARY}.`)[1];
|
|
38
|
+
actions.properties[`${prefix}::${lineItemRecord.Action}`] = {
|
|
29
39
|
$ref: utils_1.DEFINITION_LINK_PREFIX + actionDefinition,
|
|
30
|
-
description
|
|
31
|
-
propertyIndex: recordIndex,
|
|
32
|
-
annotationType: lineItemRecord.$Type
|
|
40
|
+
description
|
|
33
41
|
};
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
appSchema
|
|
42
|
+
actions.properties[`${prefix}::${lineItemRecord.Action}`][v4_1.SchemaTag.propertyIndex] = recordIndex;
|
|
43
|
+
actions.properties[`${prefix}::${lineItemRecord.Action}`][v4_1.SchemaTag.annotationType] = lineItemRecord.$Type;
|
|
44
|
+
appSchema.definitions[actionDefinition] = JSON.parse(JSON.stringify(appSchema.definitions[actionDefinitionName]));
|
|
45
|
+
appSchema.definitions[actionDefinition][v4_1.SchemaTag.annotationPath] = `${lineItemPath}/${recordIndex}`;
|
|
37
46
|
}
|
|
38
47
|
}
|
|
39
48
|
exports.handleActionRecord = handleActionRecord;
|
|
40
|
-
|
|
49
|
+
/**
|
|
50
|
+
* Processes a LineItem record of type DataField during app schema generation
|
|
51
|
+
* @param lineItem - object comprising the line item information:
|
|
52
|
+
* { lineItemRecord, lineItemId, lineItemPath }
|
|
53
|
+
* @param appSchema - the app specific schema that shall get enhanced
|
|
54
|
+
* @param columnDefinitionName - Schema definition name for the column
|
|
55
|
+
* @param entityType - the entity type as part of the AVT ConverterOutput
|
|
56
|
+
* @param recordIndex - record index in the collection
|
|
57
|
+
* @param {ConverterOutput} oDataServiceAVT - AVT information
|
|
58
|
+
*/
|
|
59
|
+
function handleLineItemRecord(lineItem, appSchema, columnDefinitionName, entityType, recordIndex, oDataServiceAVT) {
|
|
41
60
|
var _a, _b, _c, _d, _e;
|
|
42
61
|
const lineItemId = lineItem['lineItemId'];
|
|
43
62
|
const lineItemRecord = lineItem['lineItemRecord'];
|
|
@@ -47,16 +66,16 @@ function handleLineItemRecord(lineItem, appSchema, columnDefinitionName, entityT
|
|
|
47
66
|
}
|
|
48
67
|
const schemaKey = StableIdHelper_1.getStableIdPartFromDataField(lineItemRecord);
|
|
49
68
|
if (schemaKey) {
|
|
50
|
-
appSchema
|
|
69
|
+
const properties = appSchema.definitions[lineItemId].properties;
|
|
70
|
+
properties[schemaKey] = {
|
|
51
71
|
$ref: utils_1.DEFINITION_LINK_PREFIX + columnDefinitionName,
|
|
52
|
-
description: utils_1.getDatafieldDescription(lineItemRecord, entityType)
|
|
53
|
-
// Custom property in schema - for object properties ordering purpose
|
|
54
|
-
propertyIndex,
|
|
55
|
-
annotationPath: `${lineItem['lineItemPath']}/${propertyIndex}`,
|
|
56
|
-
annotationType: lineItemRecord === null || lineItemRecord === void 0 ? void 0 : lineItemRecord.$Type
|
|
72
|
+
description: utils_1.getDatafieldDescription(lineItemRecord, entityType)
|
|
57
73
|
};
|
|
74
|
+
properties[schemaKey][v4_1.SchemaTag.annotationType] = lineItemRecord === null || lineItemRecord === void 0 ? void 0 : lineItemRecord.$Type;
|
|
75
|
+
properties[schemaKey][v4_1.SchemaTag.annotationPath] = `${lineItem['lineItemPath']}/${recordIndex}`;
|
|
76
|
+
properties[schemaKey][v4_1.SchemaTag.propertyIndex] = recordIndex;
|
|
58
77
|
if ((_c = (_b = lineItemRecord['Value']) === null || _b === void 0 ? void 0 : _b.$target) === null || _c === void 0 ? void 0 : _c.type) {
|
|
59
|
-
|
|
78
|
+
properties[schemaKey][v4_1.SchemaTag.dataType] = (_e = (_d = lineItemRecord['Value']) === null || _d === void 0 ? void 0 : _d.$target) === null || _e === void 0 ? void 0 : _e.type.replace('Edm.', '');
|
|
60
79
|
}
|
|
61
80
|
}
|
|
62
81
|
}
|
|
@@ -66,15 +85,12 @@ function handleLineItemRecord(lineItem, appSchema, columnDefinitionName, entityT
|
|
|
66
85
|
* @param lineItemAnnotation - the UI.LineItem annotation, comprising all records
|
|
67
86
|
* @param entityType - the entity type as part of the AVT ConverterOutput
|
|
68
87
|
* @param {ConverterOutput} oDataServiceAVT - complete service information, as returned by Annotation Vocabularies Tool
|
|
88
|
+
* @param lineItemId - in case of OP the paramter must be passed to distinguish the OP tables;
|
|
89
|
+
* in case of LR or ALP 'LineItems' is passed.
|
|
69
90
|
* @param columnDefinitionName - name of the column definition, i.e. TableColumn or ObjectPageTableColumn
|
|
70
|
-
* @param actionDefinitionName - indicates the prefix for the definition, dpending on the page type
|
|
71
|
-
* @param lineItemId - optional: in case of OP the paramter must be passed to distinguish the OP tables;
|
|
72
|
-
* in case of LR or ALP no ID is passed, 'LineItems' is taken then.
|
|
73
|
-
* @param customColumnRef - schema reference to custom column definition.
|
|
74
91
|
*/
|
|
75
|
-
function addLineItemsType(appSchema, lineItemAnnotation, entityType, oDataServiceAVT, columnDefinitionName = v4_1.DefinitionName.TableColumn
|
|
92
|
+
function addLineItemsType(appSchema, lineItemAnnotation, entityType, oDataServiceAVT, lineItemId, columnDefinitionName = v4_1.DefinitionName.TableColumn) {
|
|
76
93
|
// Add the correct lineItem definition
|
|
77
|
-
lineItemId = lineItemId || 'LineItems';
|
|
78
94
|
const { actions, lineItemPath } = common_1.addCommonLineItemDefinitions(appSchema, lineItemAnnotation, entityType, lineItemId);
|
|
79
95
|
if (!lineItemAnnotation) {
|
|
80
96
|
return;
|
|
@@ -101,7 +117,7 @@ exports.addLineItemsType = addLineItemsType;
|
|
|
101
117
|
* Find the relevant V4 page under the routing targets of manifest,json
|
|
102
118
|
* @param pages - list of all pages in manifest
|
|
103
119
|
* @param pageName - search criterion: page name
|
|
104
|
-
* @param entitySet - search criterion:
|
|
120
|
+
* @param entitySet - search criterion: entity set
|
|
105
121
|
* @param logger - logger for messages
|
|
106
122
|
* @returns the page definition in manifest (if found)
|
|
107
123
|
*/
|
|
@@ -109,7 +125,9 @@ function findPageV4(pages, pageName, entitySet, logger) {
|
|
|
109
125
|
var _a, _b;
|
|
110
126
|
let v4Page;
|
|
111
127
|
for (const i in pages) {
|
|
112
|
-
if (((_b = (_a = pages[i].options) === null || _a === void 0 ? void 0 : _a.settings) === null || _b === void 0 ? void 0 : _b.entitySet) === entitySet.name &&
|
|
128
|
+
if (((_b = (_a = pages[i].options) === null || _a === void 0 ? void 0 : _a.settings) === null || _b === void 0 ? void 0 : _b.entitySet) === entitySet.name &&
|
|
129
|
+
(pages[i].name === pageName ||
|
|
130
|
+
(pageName === v4_1.FE_TEMPLATE_V4_ALP && pages[i].name === v4_1.FE_TEMPLATE_V4_LIST_REPORT))) {
|
|
113
131
|
v4Page = pages[i];
|
|
114
132
|
break;
|
|
115
133
|
}
|
|
@@ -127,4 +145,33 @@ function findPageV4(pages, pageName, entitySet, logger) {
|
|
|
127
145
|
return v4Page;
|
|
128
146
|
}
|
|
129
147
|
exports.findPageV4 = findPageV4;
|
|
148
|
+
/**
|
|
149
|
+
* Depending on the template type, strip down the app schema so that only the relevant views are part of it
|
|
150
|
+
* @param {Definition} appSchema - app specific JSON schema, to be adjusted
|
|
151
|
+
* @param {GenerateAppSchemaParameters} generateParameters - object comprising all input parameters
|
|
152
|
+
* @returns the right definition name for the table in the schema
|
|
153
|
+
*/
|
|
154
|
+
function alignSchemaWithTemplateType(appSchema, generateParameters) {
|
|
155
|
+
let tableDefinitionName;
|
|
156
|
+
if (generateParameters.templateType === utils_1.TemplateType.AnalyticalListPageV4) {
|
|
157
|
+
delete appSchema.properties['table']['anyOf'];
|
|
158
|
+
appSchema.properties['table']['$ref'] = `${utils_1.DEFINITION_LINK_PREFIX}${v4_1.DefinitionName.ALPTableView}`;
|
|
159
|
+
tableDefinitionName = v4_1.DefinitionName.ALPTableView;
|
|
160
|
+
delete appSchema.definitions[v4_1.DefinitionName.Table];
|
|
161
|
+
delete appSchema.definitions[v4_1.DefinitionName.LRChartView];
|
|
162
|
+
delete appSchema.definitions[v4_1.DefinitionName.LRTableView];
|
|
163
|
+
delete appSchema.definitions['MultiTableModeV4'];
|
|
164
|
+
}
|
|
165
|
+
else if (generateParameters.templateType === utils_1.TemplateType.ListReportObjectPageV4) {
|
|
166
|
+
delete appSchema.properties['table']['anyOf'];
|
|
167
|
+
appSchema.properties['table']['$ref'] = `${utils_1.DEFINITION_LINK_PREFIX}${v4_1.DefinitionName.Table}`;
|
|
168
|
+
tableDefinitionName = v4_1.DefinitionName.Table;
|
|
169
|
+
appSchema.definitions[tableDefinitionName].properties['annotationPath'][v4_1.SchemaTag.hidden] =
|
|
170
|
+
true;
|
|
171
|
+
delete appSchema.definitions[v4_1.DefinitionName.ALPTableView];
|
|
172
|
+
appSchema.properties['defaultPath'][v4_1.SchemaTag.hidden] = true;
|
|
173
|
+
}
|
|
174
|
+
return tableDefinitionName;
|
|
175
|
+
}
|
|
176
|
+
exports.alignSchemaWithTemplateType = alignSchemaWithTemplateType;
|
|
130
177
|
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/sync/v4/utils/utils.ts"],"names":[],"mappings":";;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../src/sync/v4/utils/utils.ts"],"names":[],"mappings":";;;;;AAAA,8CAA8G;AAC9G,qDAAgE;AAUhE,yCAAoG;AAEpG,sDAA8B;AAC9B,gCAA6D;AAE7D,oCAAwG;AAGxG;;;;;;;;GAQG;AACH,SAAgB,kBAAkB,CAC9B,SAAqB,EACrB,UAAsB,EACtB,OAAmB,EACnB,YAAoB,EACpB,cAA+C,EAC/C,UAAkB,EAClB,WAAmB;IAEnB,+BAA+B;IAC/B,IAAI,cAAc,CAAC,WAAW,KAAK,IAAI,EAAE;QACrC,iCAAiC;QACjC,IAAI,oBAA4B,CAAC;QACjC,IAAI,UAAU,CAAC,UAAU,CAAC,iBAAiB,CAAC,EAAE;YAC1C,oBAAoB,GAAG,mBAAc,CAAC,iBAAiB,CAAC;SAC3D;aAAM,IAAI,UAAU,CAAC,UAAU,CAAC,mBAAc,CAAC,SAAS,CAAC,EAAE;YACxD,oBAAoB,GAAG,mBAAc,CAAC,aAAa,CAAC;SACvD;aAAM;YACH,oBAAoB,GAAG,mBAAc,CAAC,uB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,SAAS,CAAC,WAAW,CAAC,mBAAc,CAAC,WAAW,CAAC,CAAC;QACzD,OAAO,SAAS,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;KACpD;SAAM,IAAI,kBAAkB,CAAC,YAAY,KAAK,oBAAY,CAAC,sBAAsB,EAAE;QAChF,OAAO,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;QAC9C,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,GAAG,GAAG,8BAAsB,GAAG,mBAAc,CAAC,KAAK,EAAE,CAAC;QAC3F,mBAAmB,GAAG,mBAAc,CAAC,KAAK,CAAC;QAC1C,SAAS,CAAC,WAAW,CAAC,mBAAmB,CAAgB,CAAC,UAAU,CAAC,gBAAgB,CAAC,CAAC,cAAS,CAAC,MAAM,CAAC;YACrG,IAAI,CAAC;QACT,OAAO,SAAS,CAAC,WAAW,CAAC,mBAAc,CAAC,YAAY,CAAC,CAAC;QAC1D,SAAS,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC,cAAS,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;KAChE;IACD,OAAO,mBAAmB,CAAC;AAC/B,CAAC;AAvBD,kEAuBC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Project } from '../../src/project';
|
|
1
|
+
import type { Project } from '../../src/project';
|
|
2
2
|
export declare const getProjects: () => Promise<Project[]>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FileData } from '../../src';
|
|
2
|
-
import { ExtensionLogger } from '../../src';
|
|
3
|
-
import { Location } from '../../src/extensionLogger';
|
|
4
|
-
import { ExportResults } from '../../src/sync/common';
|
|
1
|
+
import type { FileData } from '../../src';
|
|
2
|
+
import type { ExtensionLogger } from '../../src';
|
|
3
|
+
import type { Location } from '../../src/extensionLogger';
|
|
4
|
+
import type { ExportResults } from '../../src/sync/common';
|
|
5
5
|
export declare class Logger implements ExtensionLogger {
|
|
6
6
|
logInfo: string[];
|
|
7
7
|
logWarning: string[];
|
|
@@ -22,6 +22,7 @@ export declare function getSDV4Annotations(): FileData[];
|
|
|
22
22
|
export declare function getSTTAAnnotationsProdMan2(): FileData[];
|
|
23
23
|
export declare function getExtensionsProdMan2(): FileData[];
|
|
24
24
|
export declare function getSEPMRAAnnotations(): FileData[];
|
|
25
|
+
export declare function getExtensionsForS2pMmPurSrcgprojMaintains1(specificFiles?: string[]): FileData[];
|
|
25
26
|
export declare function findFlexChangeBySelector(exportResult: ExportResults, selectorId: string, property: string): object;
|
|
26
27
|
/**
|
|
27
28
|
* Function to find out the flexChange from a list. Uses global variable exportResult
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/ux-specification",
|
|
3
|
-
"version": "1.90.
|
|
3
|
+
"version": "1.90.25",
|
|
4
4
|
"displayName": "SAP Fiori tools - Specification",
|
|
5
5
|
"description": "SAP Fiori tools - Specification",
|
|
6
6
|
"files": [
|
|
@@ -28,11 +28,12 @@
|
|
|
28
28
|
"test": "jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info",
|
|
29
29
|
"test:ci": "jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info",
|
|
30
30
|
"update-snapshots": "jest --updateSnapshot",
|
|
31
|
+
"build:snap": "yarn build:dev && yarn update-snapshots",
|
|
31
32
|
"lint": "eslint . --ext .ts",
|
|
32
33
|
"lint:summary": "eslint . --ext .ts -f summary",
|
|
33
|
-
"lint:fix": "eslint . --
|
|
34
|
-
"lint:report": "eslint . --
|
|
35
|
-
"lint:report:jslint": "eslint . --
|
|
34
|
+
"lint:fix": "eslint . --ext .ts --fix",
|
|
35
|
+
"lint:report": "eslint . --ext .ts -f multiple",
|
|
36
|
+
"lint:report:jslint": "eslint . --ext .ts -o reports/lint/eslint.jslint.xml -f jslint-xml",
|
|
36
37
|
"docuV2": "node dist/scripts/extractDocu.js --version=v2 format=excel",
|
|
37
38
|
"docuV4": "node dist/scripts/extractDocu.js --version=v4 format=excel",
|
|
38
39
|
"iXiaSoftV2": "node dist/scripts/extractDocu.js --version=v2 --format=iXiaSoft",
|
|
@@ -53,26 +54,27 @@
|
|
|
53
54
|
"@types/jest": "26.0.23",
|
|
54
55
|
"@types/jquery": "3.5.6",
|
|
55
56
|
"@types/sax": "1.2.1",
|
|
56
|
-
"@typescript-eslint/eslint-plugin": "
|
|
57
|
-
"@typescript-eslint/parser": "
|
|
57
|
+
"@typescript-eslint/eslint-plugin": "5.12.1",
|
|
58
|
+
"@typescript-eslint/parser": "5.12.1",
|
|
58
59
|
"@ui5/flexibility-utils": "0.1.3",
|
|
59
60
|
"ajv": "6.12.6",
|
|
60
61
|
"cpy-cli": "3.1.1",
|
|
61
62
|
"d3": "7.1.1",
|
|
62
63
|
"deepmerge": "4.2.2",
|
|
63
64
|
"ejs": "3.1.6",
|
|
64
|
-
"eslint": "7.
|
|
65
|
+
"eslint": "7.32.0",
|
|
65
66
|
"eslint-formatter-multiple": "1.0.0",
|
|
66
|
-
"eslint-plugin-prettier": "3.
|
|
67
|
+
"eslint-plugin-prettier": "3.4.1",
|
|
68
|
+
"eslint-config-prettier": "8.3.0",
|
|
67
69
|
"excel4node": "1.7.2",
|
|
68
|
-
"http-server": "13.0.1",
|
|
69
70
|
"i18next": "20.3.1",
|
|
70
71
|
"jest": "26.6.3",
|
|
72
|
+
"jest-file-snapshot": "0.5.0",
|
|
71
73
|
"jest-sonar-reporter": "2.0.0",
|
|
72
74
|
"jquery": "3.6.0",
|
|
73
75
|
"lodash.unset": "4.5.2",
|
|
74
76
|
"path": "0.12.7",
|
|
75
|
-
"prettier": "
|
|
77
|
+
"prettier": "2.5.1",
|
|
76
78
|
"reflect-metadata": "0.1.13",
|
|
77
79
|
"rimraf": "3.0.2",
|
|
78
80
|
"sax": "1.2.4",
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<head>
|
|
3
|
-
<meta charset="utf-8" />
|
|
4
|
-
<link href="../styleDocu.css" rel="stylesheet" />
|
|
5
|
-
</head>
|
|
6
|
-
<body>
|
|
7
|
-
<div id="button-container">
|
|
8
|
-
<input type="button" id="resetTree" value="Reset" /><input type="button" value="Expand" id="expandTree" />
|
|
9
|
-
</div>
|
|
10
|
-
<div id="search-container">
|
|
11
|
-
<div id="search-input-container">
|
|
12
|
-
<svg
|
|
13
|
-
id="search-icon"
|
|
14
|
-
width="14"
|
|
15
|
-
height="14"
|
|
16
|
-
viewBox="0 0 16 16"
|
|
17
|
-
fill="none"
|
|
18
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
19
|
-
>
|
|
20
|
-
<g>
|
|
21
|
-
<path
|
|
22
|
-
fill-rule="evenodd"
|
|
23
|
-
clip-rule="evenodd"
|
|
24
|
-
d="M9.50249 10C7.02149 10 5.00249 7.981 5.00249 5.5C5.00249 3.019 7.02149 1 9.50249 1C11.9835 1 14.0025 3.019 14.0025 5.5C14.0025 7.981 11.9835 10 9.50249 10ZM9.50249 0C6.47049 0 4.00249 2.468 4.00249 5.5C4.00249 6.947 4.56849 8.261 5.48549 9.244L0.000488281 15.331L0.743488 16.001L6.23149 9.911C7.14749 10.592 8.27649 11 9.50249 11C12.5355 11 15.0025 8.532 15.0025 5.5C15.0025 2.468 12.5355 0 9.50249 0Z"
|
|
25
|
-
fill="#C5C5C5"
|
|
26
|
-
/>
|
|
27
|
-
</g>
|
|
28
|
-
</svg>
|
|
29
|
-
<input type="search" data-type="search" placeholder="Search" id="search-input" />
|
|
30
|
-
</div>
|
|
31
|
-
<ul
|
|
32
|
-
id="search-result"
|
|
33
|
-
data-role="listview"
|
|
34
|
-
data-filter="true"
|
|
35
|
-
data-filter-reveal="true"
|
|
36
|
-
data-input="#search-input"
|
|
37
|
-
data-inset="true"
|
|
38
|
-
></ul>
|
|
39
|
-
</div>
|
|
40
|
-
<svg id="tree-container"></svg>
|
|
41
|
-
</body>
|
|
42
|
-
<script>
|
|
43
|
-
// placeholder for data
|
|
44
|
-
var exports = {},
|
|
45
|
-
floorPlanIcon = `<svg id="floorPlan-icon" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
46
|
-
<g><path fill-rule="evenodd" clip-rule="evenodd" fill="#C5C5C5"d="M9 13V14H6V13H9ZM5 13V14H2V13H5ZM13 13V14H10V13H13ZM9 11V12H6V11H9ZM5 11V12H2V11H5ZM13 11V12H10V11H13ZM5 9V10H2V9H5ZM9 9V10H6V9H9ZM13 9V10H10V9H13ZM3.986 1.998V6.024H1.965V1.998H3.986ZM6.99 4.01V6.01H4.99V4.01H6.99ZM10.008 3.019V6.01H8.008V3.019H10.008ZM13.005 1.998V6.011H11.005V1.998H13.005ZM1 14.988H14.988V7.995H1V14.988ZM1.001 6.994H14.989V1H1.001V6.994ZM1.00169 0C0.449309 0 0 0.448336 0 1.00075V14.9992C0 15.5517 0.449309 16 1.00169 16H14.9993C15.5517 16 16 15.5517 16 14.9992V1.00075C16 0.448336 15.5517 0 14.9993 0H1.00169Z"/></g></svg>`;
|
|
47
|
-
var treeData = {"name":"AnalyticalListPage","description":"SAP Fiori elements v4<br>Specification Version: 1.90.20","type":"schema","children":[{"name":"table","children":[{"name":"initialLoad","children":[],"type":"Auto|Disabled|Enabled","artifact":"Manifest","description":"initialLoad defines whether or not the data in the table is automatically loaded.\n- Disabled - Data is never loaded when opening the app without an app state.\n- Enabled - Data is always loaded when opening the app.\n- Auto - Data is only loaded, if initial/preset filters are available (e.g. defined by \"SelectionVariant\" definition, URL parameters or user defaults)."},{"name":"views","children":[{"name":"paths","children":[{"name":"key","children":[],"type":"string"},{"name":"annotationPath","children":[],"type":"string"},{"name":"entitySet","children":[],"type":"string"}],"type":"object","artifact":"Manifest","description":"List of annotation paths referring to SelectionVariant annotations"},{"name":"showCounts","children":[],"type":"boolean","artifact":"Manifest","description":"You can show the counts of entries of each view. To do so, add the showCounts option and set it to true."}],"type":"object","artifact":"Manifest","description":"With the views property you can switch on the multiple view feature. Contrary to quickVariantSelection, each view will be rendered in a different instance of table). It links to SelectionVariant (filters) or SelectionPresentationVariant (filters and sorters) you must have added to your annotations beforehand."},{"name":"toolBar","children":[{"name":"actions","children":[{"name":"enableOnSelect","children":[],"type":"multi|single","artifact":"Manifest","description":"Enables single selection for a bound action"}]}],"type":"object","description":"Tool Bar"},{"name":"type","children":[],"type":"AnalyticalTable|GridTable|ResponsiveTable","artifact":"Manifest","description":"Use type to define the table type. Note: Grid tables, analytical tables, and tree tables cannot be rendered on smartphones. Instead, responsive tables always show on smartphones."},{"name":"creationMode","children":[{"name":"name","children":[],"type":"CreationRow|Inline|NewPage","artifact":"Manifest","description":" possible values are:\n- NewPage: The create action leads to a new page.\n- Inline: The create action leads to a new row at the table.\n- CreationRow: No create button will be rendered, an empty row is directly given.\nThe default is \"NewPage\"."},{"name":"createAtEnd","children":[],"type":"boolean","artifact":"Manifest","description":"In case of inline creation mode you can decide if the new row will be created at the end of the table, or direcly after the currently selected table. The default value is \"true\""}],"type":"object","artifact":"Manifest","description":"Defines the page behavior when a new record is created."},{"name":"personalization","children":[{"name":"column","children":[],"type":"boolean","artifact":"Manifest","description":"Defines whether the user can add and remove columns to a given table."},{"name":"sort","children":[],"type":"boolean","artifact":"Manifest","description":"Defines whether the user can sort a given table."},{"name":"filter","children":[],"type":"boolean","artifact":"Manifest","description":"Defines whether the user can filter data of a given table."}],"type":"object","artifact":"Manifest","description":"Defines the personalization mode, currently only effective if variant management on page is either set to Page or Control.\nBy default all table settings are enabled. You can change this for the different parts of the table by setting the properties \"Column\", \"Sort\" and \"Filter\" accordingly.\nOmitting a property is treated as false, this allows apps to avoid getting new features like grouping in upcoming releases."},{"name":"selectionMode","children":[],"type":"Auto|Multi|None|Single","artifact":"Manifest","description":"Applications can influence whether the table rows are selectable or not, and whether it allows for single selection or multiple selection. It can take the following values:\n- \"Auto\": This is the default value. In this mode, Fiori Elements first checks if there are any custom actions or IBN buttons in the table toolbar that require a context. If no such buttons are found, then no table selection is allowed in display mode. In edit mode too a selection is not allowed unless there is a Delete button in the table toolbar in which case multiple row selection will be allowed.\n- \"Multi\": This will allow end users to select multiple table records (in both display and edit mode)\n- \"Single\" This will allow end user to select only a single table record (in both display and edit mode)\n- \"None\": This will not allow the end user to select any table record in display mode. This will also be the case in edit mode unless the table has a delete button enabled, in which multiple selection is allowed in delete mode."},{"name":"selectAll","children":[],"type":"boolean","artifact":"Manifest","description":"The selectAll configuration overrides the selectionLimit and allows the user to select all the items. When set to true, the select all feature is enabled: a checkbox in the table header is displayed which selects all items when clicked."},{"name":"selectionLimit","children":[],"type":"number","artifact":"Manifest","description":"With the selectionLimit you can define how many items can be selected at a time,"},{"name":"enableExport","children":[],"type":"boolean","artifact":"Manifest","description":" otherwise it is disabled.\nTo disable the export in List Report or to enable it in Object Page, use the \"enableExport\" property and set it to false or true."},{"name":"quickVariantSelection","children":[{"name":"paths","children":[{"name":"annotationPath","children":[],"type":"string"}],"type":"object","artifact":"Manifest","description":"List of annotation paths referring to SelectionVariant annotations"},{"name":"hideTableTitle","children":[],"type":"boolean","artifact":"Manifest","description":"You can hide the table and display only the titles of the tabs. To do so, add the hideTableTitle option and set it to true."},{"name":"showCounts","children":[],"type":"boolean","artifact":"Manifest","description":"You can show the counts of entries of each view. To do so, add the showCounts option and set it to true."}],"type":"object","artifact":"Manifest","description":"With quickVariantSelection you can switch on the multiple view feature (single table mode). It links to SelectionVariant (filters) or SelectionPresentationVariant (filters and sorters) you must have added to your annotations beforehand."},{"name":"condensedTableLayout","children":[],"type":"boolean","artifact":"Manifest","description":"You can set the content density to condensed for ui.table on the list report and object page applications."},{"name":"columns","children":[{"name":"columnId","children":[{"name":"width","children":[],"type":"string","artifact":"Manifest","description":"A string type that represents CSS size values.\nRefer to https://openui5.hana.ondemand.com/api/sap.ui.core.CSSSize."},{"name":"availability","children":[],"type":"Adaptation|Default|Hidden","artifact":"Manifest","description":"Defines where the column should be shown.\nDefault: it will be shown by default in the table.\nAdaptation: it will initially not shown in the table but be available via end user adaptation.\nHidden: the column is neither available in the table nor in adaptation."},{"name":"afterExecution","children":[{"name":"navigateToInstance","children":[],"type":"boolean","artifact":"Manifest","description":"By default, a navigation is automatically triggered after an action execution. If applications want to disable the navigation, they can do so using the manifest setting “navigateToInstance”."},{"name":"enableAutoScroll","children":[],"type":"boolean","artifact":"Manifest","description":"The \"enableAutoScroll\" allows you to scroll to the newly created or change item after execution of an action"}],"type":"object","artifact":"Manifest","description":"Settings that are only relevant for actions (associated with a UI.DataFieldForAction annotation)"}]}]}]},{"name":"variantManagement","children":[],"type":"Control|None|Page","artifact":"Manifest","description":"variantManagement defines how the variant management of page personalizations is controlled.\n- None - No variant management by default.\n- Control - Individual personalizations for each control."}]};
|
|
48
|
-
</script>
|
|
49
|
-
<script type="module" src="./../runDocu-min.js"></script>
|