@sap/ux-specification 1.136.13 → 1.136.15
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 +73 -1
- package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
- package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
- package/dist/documentation/v2/v2-ListReport.html +2 -2
- package/dist/documentation/v2/v2-ListReportNew.html +2 -2
- package/dist/documentation/v2/v2-ObjectPage.html +2 -2
- package/dist/documentation/v2/v2-OverviewPage.html +2 -2
- package/dist/documentation/v4/v4-ApplicationV4.html +2 -2
- package/dist/documentation/v4/v4-BuildingBlocks.html +2 -2
- package/dist/documentation/v4/v4-FreestylePage.html +2 -2
- package/dist/documentation/v4/v4-ListReport.html +2 -2
- package/dist/documentation/v4/v4-ObjectPage.html +2 -2
- package/dist/index-min.js +260 -261
- package/dist/index-min.js.map +4 -4
- package/dist/schemas/v2/ApplicationV2.json +28 -3
- package/dist/schemas/v2/ListReportNewConfig.json +45 -0
- package/dist/schemas/v2/ObjectPageConfig.json +11 -5
- package/dist/schemas/v4/ApplicationV4.json +18 -12
- package/dist/schemas/v4/BuildingBlocksConfig.json +72 -35
- package/dist/schemas/v4/ListReportConfig.json +299 -28
- package/dist/schemas/v4/ObjectPageConfig.json +409 -130
- package/dist/specification/package.json +17 -17
- package/dist/specification/scripts/macros/corrections.d.ts.map +1 -1
- package/dist/specification/scripts/macros/corrections.js +17 -1
- package/dist/specification/scripts/macros/corrections.js.map +1 -1
- package/dist/specification/scripts/macros/schema.d.ts.map +1 -1
- package/dist/specification/scripts/macros/schema.js +10 -1
- package/dist/specification/scripts/macros/schema.js.map +1 -1
- package/dist/specification/scripts/macros/types.d.ts +1 -0
- package/dist/specification/scripts/macros/types.d.ts.map +1 -1
- package/dist/specification/scripts/schema/to-json-schema.d.ts.map +1 -1
- package/dist/specification/scripts/schema/to-json-schema.js +23 -13
- package/dist/specification/scripts/schema/to-json-schema.js.map +1 -1
- package/dist/specification/src/api.d.ts.map +1 -1
- package/dist/specification/src/api.js +2 -1
- package/dist/specification/src/api.js.map +1 -1
- package/dist/specification/src/sync/common/DataFieldStrategy.d.ts +38 -8
- package/dist/specification/src/sync/common/DataFieldStrategy.d.ts.map +1 -1
- package/dist/specification/src/sync/common/DataFieldStrategy.js +64 -11
- package/dist/specification/src/sync/common/DataFieldStrategy.js.map +1 -1
- package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.d.ts +0 -4
- package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.d.ts.map +1 -1
- package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.js +0 -3
- package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.js.map +1 -1
- package/dist/specification/src/sync/common/appProvider.d.ts +0 -1
- package/dist/specification/src/sync/common/appProvider.d.ts.map +1 -1
- package/dist/specification/src/sync/common/appProvider.js +0 -1
- package/dist/specification/src/sync/common/appProvider.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorators.d.ts +65 -4
- package/dist/specification/src/sync/common/decoration/decorators.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorators.js +138 -8
- package/dist/specification/src/sync/common/decoration/decorators.js.map +1 -1
- package/dist/specification/src/sync/common/distTagEvaluator.d.ts +10 -3
- package/dist/specification/src/sync/common/distTagEvaluator.d.ts.map +1 -1
- package/dist/specification/src/sync/common/distTagEvaluator.js +14 -4
- package/dist/specification/src/sync/common/distTagEvaluator.js.map +1 -1
- package/dist/specification/src/sync/common/generate/objectPage.d.ts +0 -1
- package/dist/specification/src/sync/common/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/common/generate/objectPage.js +0 -3
- package/dist/specification/src/sync/common/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/common/generate/utils.d.ts +12 -6
- package/dist/specification/src/sync/common/generate/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/generate/utils.js +33 -22
- package/dist/specification/src/sync/common/generate/utils.js.map +1 -1
- package/dist/specification/src/sync/common/i18n.json +6 -4
- package/dist/specification/src/sync/common/import/utils.d.ts +0 -1
- package/dist/specification/src/sync/common/import/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/import/utils.js +0 -1
- package/dist/specification/src/sync/common/import/utils.js.map +1 -1
- package/dist/specification/src/sync/common/rules.d.ts.map +1 -1
- package/dist/specification/src/sync/common/rules.js +18 -13
- package/dist/specification/src/sync/common/rules.js.map +1 -1
- package/dist/specification/src/sync/common/utils.d.ts +52 -2
- package/dist/specification/src/sync/common/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/utils.js +176 -5
- package/dist/specification/src/sync/common/utils.js.map +1 -1
- package/dist/specification/src/sync/v2/application.d.ts +1 -0
- package/dist/specification/src/sync/v2/application.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/application.js +18 -0
- package/dist/specification/src/sync/v2/application.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPage.js +15 -4
- package/dist/specification/src/sync/v2/export/exportPage.js.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js +8 -15
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js.map +1 -1
- package/dist/specification/src/sync/v2/export/factory.d.ts +26 -0
- package/dist/specification/src/sync/v2/export/factory.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/factory.js +3 -3
- package/dist/specification/src/sync/v2/export/factory.js.map +1 -1
- package/dist/specification/src/sync/v2/export/pages/ObjectPage.d.ts +1 -0
- package/dist/specification/src/sync/v2/export/pages/ObjectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/pages/ObjectPage.js +11 -0
- package/dist/specification/src/sync/v2/export/pages/ObjectPage.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/analyticalListReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/analyticalListReport.js +46 -0
- package/dist/specification/src/sync/v2/generate/analyticalListReport.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/listReport.js +46 -1
- package/dist/specification/src/sync/v2/generate/listReport.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/objectPage.js +63 -13
- package/dist/specification/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js +28 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiViewSingleTable.d.ts +22 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiViewSingleTable.d.ts.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiViewSingleTable.js +124 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiViewSingleTable.js.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.js +4 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.d.ts +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.js +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.js.map +1 -1
- package/dist/specification/src/sync/v2/import/importPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/importPage.js +5 -6
- package/dist/specification/src/sync/v2/import/importPage.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/overviewPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/overviewPage.js +4 -0
- package/dist/specification/src/sync/v2/import/pages/overviewPage.js.map +1 -1
- package/dist/specification/src/sync/v2/utils.d.ts +17 -1
- package/dist/specification/src/sync/v2/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/utils.js +57 -0
- package/dist/specification/src/sync/v2/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/application.d.ts +1 -1
- package/dist/specification/src/sync/v4/application.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/application.js +1 -1
- package/dist/specification/src/sync/v4/application.js.map +1 -1
- package/dist/specification/src/sync/v4/export/actions.d.ts +39 -0
- package/dist/specification/src/sync/v4/export/actions.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/export/actions.js +99 -0
- package/dist/specification/src/sync/v4/export/actions.js.map +1 -0
- package/dist/specification/src/sync/v4/export/controls/Header.d.ts +3 -2
- package/dist/specification/src/sync/v4/export/controls/Header.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Header.js +14 -2
- package/dist/specification/src/sync/v4/export/controls/Header.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/HeaderAction.d.ts +2 -1
- package/dist/specification/src/sync/v4/export/controls/HeaderAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/HeaderAction.js +7 -2
- package/dist/specification/src/sync/v4/export/controls/HeaderAction.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageForm.d.ts +2 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageForm.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageForm.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageFormAction.d.ts +2 -4
- package/dist/specification/src/sync/v4/export/controls/ObjectPageFormAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageFormAction.js +2 -21
- package/dist/specification/src/sync/v4/export/controls/ObjectPageFormAction.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageHeader.d.ts +2 -2
- package/dist/specification/src/sync/v4/export/controls/ObjectPageHeader.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageHeader.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageHeaderAction.d.ts +14 -3
- package/dist/specification/src/sync/v4/export/controls/ObjectPageHeaderAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageHeaderAction.js +52 -9
- package/dist/specification/src/sync/v4/export/controls/ObjectPageHeaderAction.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts +4 -0
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTableColumn.js +30 -0
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTableColumn.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageToolBarAction.d.ts +15 -3
- package/dist/specification/src/sync/v4/export/controls/ObjectPageToolBarAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageToolBarAction.js +53 -10
- package/dist/specification/src/sync/v4/export/controls/ObjectPageToolBarAction.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Table.d.ts +0 -3
- package/dist/specification/src/sync/v4/export/controls/Table.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Table.js +0 -3
- package/dist/specification/src/sync/v4/export/controls/Table.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/TableColumn.d.ts +7 -0
- package/dist/specification/src/sync/v4/export/controls/TableColumn.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/TableColumn.js +60 -0
- package/dist/specification/src/sync/v4/export/controls/TableColumn.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBar.d.ts +9 -2
- package/dist/specification/src/sync/v4/export/controls/ToolBar.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBar.js +39 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBar.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.d.ts +17 -4
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.js +76 -19
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.js.map +1 -1
- package/dist/specification/src/sync/v4/export/export.d.ts +7 -0
- package/dist/specification/src/sync/v4/export/export.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/export.js +100 -11
- package/dist/specification/src/sync/v4/export/export.js.map +1 -1
- package/dist/specification/src/sync/v4/export/pages/ListReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/pages/ListReport.js +2 -1
- package/dist/specification/src/sync/v4/export/pages/ListReport.js.map +1 -1
- package/dist/specification/src/sync/v4/export/types.d.ts +2 -0
- package/dist/specification/src/sync/v4/export/types.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/ListReportUtils.d.ts +107 -0
- package/dist/specification/src/sync/v4/generate/ListReportUtils.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/generate/ListReportUtils.js +394 -0
- package/dist/specification/src/sync/v4/generate/ListReportUtils.js.map +1 -0
- package/dist/specification/src/sync/v4/generate/actions.d.ts +35 -0
- package/dist/specification/src/sync/v4/generate/actions.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/generate/actions.js +112 -0
- package/dist/specification/src/sync/v4/generate/actions.js.map +1 -0
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.d.ts +3 -3
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.js +10 -2
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.d.ts +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.js +3 -2
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js +9 -2
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.js +2 -2
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/listReport.d.ts +129 -4
- package/dist/specification/src/sync/v4/generate/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/listReport.js +196 -353
- package/dist/specification/src/sync/v4/generate/listReport.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/objectPage.d.ts +0 -1
- package/dist/specification/src/sync/v4/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/objectPage.js +15 -21
- package/dist/specification/src/sync/v4/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/objectPage.js +16 -3
- package/dist/specification/src/sync/v4/import/pages/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v4/import/utils.d.ts +0 -1
- package/dist/specification/src/sync/v4/import/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/import/utils.js +0 -1
- package/dist/specification/src/sync/v4/import/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/App.d.ts +141 -0
- package/dist/specification/src/sync/v4/sync-rules/App.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/App.js +208 -0
- package/dist/specification/src/sync/v4/sync-rules/App.js.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.d.ts +193 -0
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.js +384 -0
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.js.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.d.ts +172 -0
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js +410 -0
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/Page.d.ts +70 -0
- package/dist/specification/src/sync/v4/sync-rules/Page.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/Page.js +73 -0
- package/dist/specification/src/sync/v4/sync-rules/Page.js.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/utils.d.ts +9 -0
- package/dist/specification/src/sync/v4/sync-rules/utils.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/utils.js +43 -0
- package/dist/specification/src/sync/v4/sync-rules/utils.js.map +1 -0
- package/dist/specification/src/sync/v4/utils/utils.d.ts +105 -49
- package/dist/specification/src/sync/v4/utils/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/utils/utils.js +363 -97
- package/dist/specification/src/sync/v4/utils/utils.js.map +1 -1
- package/dist/types/src/apiTypes.d.ts +3 -2
- package/dist/types/src/apiTypes.d.ts.map +1 -1
- package/dist/types/src/apiTypes.js +1 -0
- package/dist/types/src/apiTypes.js.map +1 -1
- package/dist/types/src/common/types.d.ts +152 -3
- package/dist/types/src/common/types.d.ts.map +1 -1
- package/dist/types/src/common/types.js +47 -2
- package/dist/types/src/common/types.js.map +1 -1
- package/dist/types/src/common/webapp/manifest/Manifest.d.ts +1 -1
- package/dist/types/src/common/webapp/manifest/Manifest.d.ts.map +1 -1
- package/dist/types/src/v2/application.d.ts +18 -0
- package/dist/types/src/v2/application.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageHeaderSection.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageTable.d.ts +4 -4
- package/dist/types/src/v2/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/types/src/v2/controls/Table.d.ts.map +1 -1
- package/dist/types/src/v2/pages/ObjectPageConfigV2.d.ts +10 -1
- package/dist/types/src/v2/pages/ObjectPageConfigV2.d.ts.map +1 -1
- package/dist/types/src/v4/application.d.ts +6 -6
- package/dist/types/src/v4/controls/CustomAction.d.ts +133 -19
- package/dist/types/src/v4/controls/CustomAction.d.ts.map +1 -1
- package/dist/types/src/v4/controls/CustomAction.js.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageForm.d.ts +2 -2
- package/dist/types/src/v4/controls/ObjectPageForm.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageHeader.d.ts +22 -3
- package/dist/types/src/v4/controls/ObjectPageHeader.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageHeaderSection.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageSection.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageToolBar.d.ts +2 -2
- package/dist/types/src/v4/controls/ObjectPageToolBar.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ToolBar.d.ts +3 -3
- package/dist/types/src/v4/controls/ToolBar.d.ts.map +1 -1
- package/dist/types/src/v4/webapp/manifest/ManifestSettings.d.ts +59 -0
- package/dist/types/src/v4/webapp/manifest/ManifestSettings.d.ts.map +1 -1
- package/dist/types/src/v4/webapp/manifest/ManifestSettings.js.map +1 -1
- package/package.json +17 -17
|
@@ -1,10 +1,48 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
2
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ToolBar = exports.Actions = void 0;
|
|
9
|
+
exports.CustomActionMenuActions = exports.CustomActionMenu = exports.ToolBar = exports.Actions = void 0;
|
|
10
|
+
const ToolBarAction_1 = require("./ToolBarAction");
|
|
11
|
+
const common_1 = require("../../../common");
|
|
12
|
+
const application_1 = require("../../application");
|
|
13
|
+
const actions_1 = require("../actions");
|
|
4
14
|
class Actions {
|
|
5
15
|
}
|
|
6
16
|
exports.Actions = Actions;
|
|
7
17
|
class ToolBar {
|
|
8
18
|
}
|
|
9
19
|
exports.ToolBar = ToolBar;
|
|
20
|
+
class CustomActionMenu extends ToolBarAction_1.CustomTableActionBase {
|
|
21
|
+
}
|
|
22
|
+
exports.CustomActionMenu = CustomActionMenu;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, common_1.syncRule)({
|
|
25
|
+
manifest: {
|
|
26
|
+
path: application_1.getActionsPathForLR,
|
|
27
|
+
export: actions_1.exportActionMenuAction
|
|
28
|
+
}
|
|
29
|
+
}),
|
|
30
|
+
(0, common_1.validity)({
|
|
31
|
+
since: '1.84.0'
|
|
32
|
+
})
|
|
33
|
+
], CustomActionMenu.prototype, "actions", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, common_1.syncRule)({
|
|
36
|
+
manifest: {
|
|
37
|
+
path: application_1.getActionsPathForLR,
|
|
38
|
+
export: actions_1.exportActionMenuDefaultAction
|
|
39
|
+
}
|
|
40
|
+
}),
|
|
41
|
+
(0, common_1.validity)({
|
|
42
|
+
since: '1.84.0'
|
|
43
|
+
})
|
|
44
|
+
], CustomActionMenu.prototype, "defaultAction", void 0);
|
|
45
|
+
class CustomActionMenuActions {
|
|
46
|
+
}
|
|
47
|
+
exports.CustomActionMenuActions = CustomActionMenuActions;
|
|
10
48
|
//# sourceMappingURL=ToolBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolBar.js","sourceRoot":"","sources":["../../../../../../../src/sync/v4/export/controls/ToolBar.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ToolBar.js","sourceRoot":"","sources":["../../../../../../../src/sync/v4/export/controls/ToolBar.ts"],"names":[],"mappings":";;;;;;;;;AACA,mDAKyB;AACzB,4CAAqD;AACrD,mDAAwD;AACxD,wCAAmF;AAEnF,MAAa,OAAO;CAEnB;AAFD,0BAEC;AAED,MAAa,OAAO;CAEnB;AAFD,0BAEC;AAED,MAAa,gBAAiB,SAAQ,qCAAqB;CAsB1D;AAtBD,4CAsBC;AAZG;IATC,IAAA,iBAAQ,EAAC;QACN,QAAQ,EAAE;YACN,IAAI,EAAE,iCAAmB;YACzB,MAAM,EAAE,gCAAsB;SACjC;KACJ,CAAC;IACD,IAAA,iBAAQ,EAAC;QACN,KAAK,EAAE,QAAQ;KAClB,CAAC;iDACgC;AAWlC;IATC,IAAA,iBAAQ,EAAC;QACN,QAAQ,EAAE;YACN,IAAI,EAAE,iCAAmB;YACzB,MAAM,EAAE,uCAA6B;SACxC;KACJ,CAAC;IACD,IAAA,iBAAQ,EAAC;QACN,KAAK,EAAE,QAAQ;KAClB,CAAC;uDACqB;AAG3B,MAAa,uBAAuB;CAEnC;AAFD,0DAEC"}
|
|
@@ -24,14 +24,17 @@ export declare class CustomActionPosition implements v4.CustomActionPosition {
|
|
|
24
24
|
anchor?: string;
|
|
25
25
|
placement: v4.ActionPlacement;
|
|
26
26
|
}
|
|
27
|
-
export declare class
|
|
27
|
+
export declare class CustomTableActionBase implements v4.CustomActionElement {
|
|
28
|
+
menu: string[];
|
|
28
29
|
text: string;
|
|
29
30
|
position: CustomActionPosition;
|
|
30
|
-
press: string;
|
|
31
31
|
requiresSelection?: boolean;
|
|
32
32
|
visible?: boolean;
|
|
33
33
|
enabled?: boolean;
|
|
34
34
|
}
|
|
35
|
+
export declare class CustomTableAction extends CustomTableActionBase implements v4.CustomTableAction {
|
|
36
|
+
press: string;
|
|
37
|
+
}
|
|
35
38
|
/**
|
|
36
39
|
* Sync class for Position
|
|
37
40
|
*/
|
|
@@ -39,12 +42,22 @@ export declare class ViewCustomActionPosition implements v4.ViewCustomActionPosi
|
|
|
39
42
|
anchor?: string;
|
|
40
43
|
placement: v4.ActionPlacement;
|
|
41
44
|
}
|
|
42
|
-
export declare class
|
|
45
|
+
export declare class ViewTableCustomActionBase implements v4.CustomActionElement {
|
|
46
|
+
menu: string[];
|
|
43
47
|
text: string;
|
|
44
48
|
position: CustomActionPosition;
|
|
45
|
-
press: string;
|
|
46
49
|
requiresSelection?: boolean;
|
|
47
50
|
visible?: boolean;
|
|
48
51
|
enabled?: boolean;
|
|
49
52
|
}
|
|
53
|
+
export declare class ViewTableCustomAction extends ViewTableCustomActionBase implements v4.ViewTableCustomAction {
|
|
54
|
+
press: string;
|
|
55
|
+
}
|
|
56
|
+
export declare class ViewCustomActionMenu extends ViewTableCustomActionBase implements v4.ViewCustomActionMenu {
|
|
57
|
+
actions?: ViewCustomActionMenuActions;
|
|
58
|
+
defaultAction?: string;
|
|
59
|
+
}
|
|
60
|
+
export declare class ViewCustomActionMenuActions implements v4.ViewCustomActionMenuActions {
|
|
61
|
+
[id: string]: ToolBarAction | CustomTableAction | ToolBarActionGroup;
|
|
62
|
+
}
|
|
50
63
|
//# sourceMappingURL=ToolBarAction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolBarAction.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/v4/export/controls/ToolBarAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAY,MAAM,6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,SAAQ,qBAAsB,YAAW,EAAE,CAAC,iBAAiB;IASxF,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,qBAAa,wBAAyB,YAAW,EAAE,CAAC,wBAAwB;IAexE,MAAM,CAAC,EAAE,MAAM,CAAC;IAehB,SAAS,EAAE,EAAE,CAAC,eAAe,CAAC;CACjC;AAED,qBAAa,yBAA0B,YAAW,EAAE,CAAC,mBAAmB;IAUpE,IAAI,EAAE,MAAM,EAAE,CAAC;IAUf,IAAI,EAAE,MAAM,CAAC;IAUb,QAAQ,EAAE,oBAAoB,CAAC;IAU/B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAW5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAWlB,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,qBAAa,qBAAsB,SAAQ,yBAA0B,YAAW,EAAE,CAAC,qBAAqB;IASpG,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,qBAAa,oBAAqB,SAAQ,yBAA0B,YAAW,EAAE,CAAC,oBAAoB;IAUlG,OAAO,CAAC,EAAE,2BAA2B,CAAC;IAWtC,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,qBAAa,2BAA4B,YAAW,EAAE,CAAC,2BAA2B;IAC9E,CAAC,EAAE,EAAE,MAAM,GAAG,aAAa,GAAG,iBAAiB,GAAG,kBAAkB,CAAC;CACxE"}
|
|
@@ -6,10 +6,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.ViewTableCustomAction = exports.ViewCustomActionPosition = exports.CustomTableAction = exports.CustomActionPosition = exports.ViewToolBarAction = exports.ViewToolBarActionGroup = exports.ToolBarActionGroup = exports.ToolBarAction = exports.ActionAfterExecutionConfigurationToolBarLR = void 0;
|
|
9
|
+
exports.ViewCustomActionMenuActions = exports.ViewCustomActionMenu = exports.ViewTableCustomAction = exports.ViewTableCustomActionBase = exports.ViewCustomActionPosition = exports.CustomTableAction = exports.CustomTableActionBase = exports.CustomActionPosition = exports.ViewToolBarAction = exports.ViewToolBarActionGroup = exports.ToolBarActionGroup = exports.ToolBarAction = exports.ActionAfterExecutionConfigurationToolBarLR = void 0;
|
|
10
10
|
const decorators_1 = require("../../../common/decoration/decorators");
|
|
11
11
|
const application_1 = require("../../application");
|
|
12
12
|
const control_1 = require("../../../common/decoration/control");
|
|
13
|
+
const actions_1 = require("../actions");
|
|
13
14
|
class ActionAfterExecutionConfigurationToolBarLR {
|
|
14
15
|
}
|
|
15
16
|
exports.ActionAfterExecutionConfigurationToolBarLR = ActionAfterExecutionConfigurationToolBarLR;
|
|
@@ -94,19 +95,20 @@ __decorate([
|
|
|
94
95
|
since: '1.84.0'
|
|
95
96
|
})
|
|
96
97
|
], CustomActionPosition.prototype, "placement", void 0);
|
|
97
|
-
class
|
|
98
|
+
class CustomTableActionBase {
|
|
98
99
|
}
|
|
99
|
-
exports.
|
|
100
|
+
exports.CustomTableActionBase = CustomTableActionBase;
|
|
100
101
|
__decorate([
|
|
101
102
|
(0, decorators_1.syncRule)({
|
|
102
103
|
manifest: {
|
|
103
|
-
path: application_1.getActionsPathForLR
|
|
104
|
+
path: application_1.getActionsPathForLR,
|
|
105
|
+
export: actions_1.exportActionMenuMenu
|
|
104
106
|
}
|
|
105
107
|
}),
|
|
106
108
|
(0, decorators_1.validity)({
|
|
107
109
|
since: '1.84.0'
|
|
108
110
|
})
|
|
109
|
-
],
|
|
111
|
+
], CustomTableActionBase.prototype, "menu", void 0);
|
|
110
112
|
__decorate([
|
|
111
113
|
(0, decorators_1.syncRule)({
|
|
112
114
|
manifest: {
|
|
@@ -116,7 +118,7 @@ __decorate([
|
|
|
116
118
|
(0, decorators_1.validity)({
|
|
117
119
|
since: '1.84.0'
|
|
118
120
|
})
|
|
119
|
-
],
|
|
121
|
+
], CustomTableActionBase.prototype, "text", void 0);
|
|
120
122
|
__decorate([
|
|
121
123
|
(0, decorators_1.syncRule)({
|
|
122
124
|
manifest: {
|
|
@@ -126,7 +128,7 @@ __decorate([
|
|
|
126
128
|
(0, decorators_1.validity)({
|
|
127
129
|
since: '1.84.0'
|
|
128
130
|
})
|
|
129
|
-
],
|
|
131
|
+
], CustomTableActionBase.prototype, "position", void 0);
|
|
130
132
|
__decorate([
|
|
131
133
|
(0, decorators_1.syncRule)({
|
|
132
134
|
manifest: {
|
|
@@ -136,7 +138,7 @@ __decorate([
|
|
|
136
138
|
(0, decorators_1.validity)({
|
|
137
139
|
since: '1.84.0'
|
|
138
140
|
})
|
|
139
|
-
],
|
|
141
|
+
], CustomTableActionBase.prototype, "requiresSelection", void 0);
|
|
140
142
|
__decorate([
|
|
141
143
|
(0, decorators_1.syncRule)({
|
|
142
144
|
manifest: {
|
|
@@ -147,7 +149,7 @@ __decorate([
|
|
|
147
149
|
(0, decorators_1.validity)({
|
|
148
150
|
since: '1.84.0'
|
|
149
151
|
})
|
|
150
|
-
],
|
|
152
|
+
], CustomTableActionBase.prototype, "visible", void 0);
|
|
151
153
|
__decorate([
|
|
152
154
|
(0, decorators_1.syncRule)({
|
|
153
155
|
manifest: {
|
|
@@ -158,7 +160,20 @@ __decorate([
|
|
|
158
160
|
(0, decorators_1.validity)({
|
|
159
161
|
since: '1.84.0'
|
|
160
162
|
})
|
|
161
|
-
],
|
|
163
|
+
], CustomTableActionBase.prototype, "enabled", void 0);
|
|
164
|
+
class CustomTableAction extends CustomTableActionBase {
|
|
165
|
+
}
|
|
166
|
+
exports.CustomTableAction = CustomTableAction;
|
|
167
|
+
__decorate([
|
|
168
|
+
(0, decorators_1.syncRule)({
|
|
169
|
+
manifest: {
|
|
170
|
+
path: application_1.getActionsPathForLR
|
|
171
|
+
}
|
|
172
|
+
}),
|
|
173
|
+
(0, decorators_1.validity)({
|
|
174
|
+
since: '1.84.0'
|
|
175
|
+
})
|
|
176
|
+
], CustomTableAction.prototype, "press", void 0);
|
|
162
177
|
/**
|
|
163
178
|
* Sync class for Position
|
|
164
179
|
*/
|
|
@@ -185,19 +200,20 @@ __decorate([
|
|
|
185
200
|
since: '1.84.0'
|
|
186
201
|
})
|
|
187
202
|
], ViewCustomActionPosition.prototype, "placement", void 0);
|
|
188
|
-
class
|
|
203
|
+
class ViewTableCustomActionBase {
|
|
189
204
|
}
|
|
190
|
-
exports.
|
|
205
|
+
exports.ViewTableCustomActionBase = ViewTableCustomActionBase;
|
|
191
206
|
__decorate([
|
|
192
207
|
(0, decorators_1.syncRule)({
|
|
193
208
|
manifest: {
|
|
194
|
-
path: application_1.getActionsPathForView
|
|
209
|
+
path: application_1.getActionsPathForView,
|
|
210
|
+
export: actions_1.exportActionMenuMenu
|
|
195
211
|
}
|
|
196
212
|
}),
|
|
197
213
|
(0, decorators_1.validity)({
|
|
198
214
|
since: '1.84.0'
|
|
199
215
|
})
|
|
200
|
-
],
|
|
216
|
+
], ViewTableCustomActionBase.prototype, "menu", void 0);
|
|
201
217
|
__decorate([
|
|
202
218
|
(0, decorators_1.syncRule)({
|
|
203
219
|
manifest: {
|
|
@@ -207,7 +223,7 @@ __decorate([
|
|
|
207
223
|
(0, decorators_1.validity)({
|
|
208
224
|
since: '1.84.0'
|
|
209
225
|
})
|
|
210
|
-
],
|
|
226
|
+
], ViewTableCustomActionBase.prototype, "text", void 0);
|
|
211
227
|
__decorate([
|
|
212
228
|
(0, decorators_1.syncRule)({
|
|
213
229
|
manifest: {
|
|
@@ -217,7 +233,7 @@ __decorate([
|
|
|
217
233
|
(0, decorators_1.validity)({
|
|
218
234
|
since: '1.84.0'
|
|
219
235
|
})
|
|
220
|
-
],
|
|
236
|
+
], ViewTableCustomActionBase.prototype, "position", void 0);
|
|
221
237
|
__decorate([
|
|
222
238
|
(0, decorators_1.syncRule)({
|
|
223
239
|
manifest: {
|
|
@@ -227,7 +243,7 @@ __decorate([
|
|
|
227
243
|
(0, decorators_1.validity)({
|
|
228
244
|
since: '1.84.0'
|
|
229
245
|
})
|
|
230
|
-
],
|
|
246
|
+
], ViewTableCustomActionBase.prototype, "requiresSelection", void 0);
|
|
231
247
|
__decorate([
|
|
232
248
|
(0, decorators_1.syncRule)({
|
|
233
249
|
manifest: {
|
|
@@ -238,7 +254,7 @@ __decorate([
|
|
|
238
254
|
(0, decorators_1.validity)({
|
|
239
255
|
since: '1.84.0'
|
|
240
256
|
})
|
|
241
|
-
],
|
|
257
|
+
], ViewTableCustomActionBase.prototype, "visible", void 0);
|
|
242
258
|
__decorate([
|
|
243
259
|
(0, decorators_1.syncRule)({
|
|
244
260
|
manifest: {
|
|
@@ -249,5 +265,46 @@ __decorate([
|
|
|
249
265
|
(0, decorators_1.validity)({
|
|
250
266
|
since: '1.84.0'
|
|
251
267
|
})
|
|
252
|
-
],
|
|
268
|
+
], ViewTableCustomActionBase.prototype, "enabled", void 0);
|
|
269
|
+
class ViewTableCustomAction extends ViewTableCustomActionBase {
|
|
270
|
+
}
|
|
271
|
+
exports.ViewTableCustomAction = ViewTableCustomAction;
|
|
272
|
+
__decorate([
|
|
273
|
+
(0, decorators_1.syncRule)({
|
|
274
|
+
manifest: {
|
|
275
|
+
path: application_1.getActionsPathForView
|
|
276
|
+
}
|
|
277
|
+
}),
|
|
278
|
+
(0, decorators_1.validity)({
|
|
279
|
+
since: '1.84.0'
|
|
280
|
+
})
|
|
281
|
+
], ViewTableCustomAction.prototype, "press", void 0);
|
|
282
|
+
class ViewCustomActionMenu extends ViewTableCustomActionBase {
|
|
283
|
+
}
|
|
284
|
+
exports.ViewCustomActionMenu = ViewCustomActionMenu;
|
|
285
|
+
__decorate([
|
|
286
|
+
(0, decorators_1.syncRule)({
|
|
287
|
+
manifest: {
|
|
288
|
+
path: application_1.getActionsPathForView,
|
|
289
|
+
export: actions_1.exportActionMenuAction
|
|
290
|
+
}
|
|
291
|
+
}),
|
|
292
|
+
(0, decorators_1.validity)({
|
|
293
|
+
since: '1.84.0'
|
|
294
|
+
})
|
|
295
|
+
], ViewCustomActionMenu.prototype, "actions", void 0);
|
|
296
|
+
__decorate([
|
|
297
|
+
(0, decorators_1.syncRule)({
|
|
298
|
+
manifest: {
|
|
299
|
+
path: application_1.getActionsPathForView,
|
|
300
|
+
export: actions_1.exportActionMenuDefaultAction
|
|
301
|
+
}
|
|
302
|
+
}),
|
|
303
|
+
(0, decorators_1.validity)({
|
|
304
|
+
since: '1.84.0'
|
|
305
|
+
})
|
|
306
|
+
], ViewCustomActionMenu.prototype, "defaultAction", void 0);
|
|
307
|
+
class ViewCustomActionMenuActions {
|
|
308
|
+
}
|
|
309
|
+
exports.ViewCustomActionMenuActions = ViewCustomActionMenuActions;
|
|
253
310
|
//# sourceMappingURL=ToolBarAction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolBarAction.js","sourceRoot":"","sources":["../../../../../../../src/sync/v4/export/controls/ToolBarAction.ts"],"names":[],"mappings":";;;;;;;;;AACA,sEAA8F;AAC9F,mDAA+E;AAC/E,gEAAwF;
|
|
1
|
+
{"version":3,"file":"ToolBarAction.js","sourceRoot":"","sources":["../../../../../../../src/sync/v4/export/controls/ToolBarAction.ts"],"names":[],"mappings":";;;;;;;;;AACA,sEAA8F;AAC9F,mDAA+E;AAC/E,gEAAwF;AACxF,wCAAyG;AAEzG,MAAa,0CAA0C;CA4BtD;AA5BD,gGA4BC;AAdG;IAbC,IAAA,qBAAQ,EAAC;QACN,QAAQ,EAAE;YACN,IAAI,EAAE,CACF,QAAkB,EAClB,QAAkB,EAClB,SAAiB,EACjB,SAAiB,EACjB,gBAAwB,EAClB,EAAE,CACR,IAAA,iCAAmB,EAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,gBAAgB,CAAC,GAAG,iBAAiB;SAC1G;KACJ,CAAC;IACD,IAAA,8BAAiB,EAAC,8DAA8D,CAAC;sFACrD;AAa7B;IAZC,IAAA,qBAAQ,EAAC;QACN,QAAQ,EAAE;YAC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AAQ,yBAAyB;CAsBlE;AAtBD,oDAsBC;AAZG;IATC,IAAA,qBAAQ,EAAC;QACN,QAAQ,EAAE;YACN,IAAI,EAAE,mCAAqB;YAC3B,MAAM,EAAE,gCAAsB;SACjC;KACJ,CAAC;IACD,IAAA,qBAAQ,EAAC;QACN,KAAK,EAAE,QAAQ;KAClB,CAAC;qDACoC;AAWtC;IATC,IAAA,qBAAQ,EAAC;QACN,QAAQ,EAAE;YACN,IAAI,EAAE,mCAAqB;YAC3B,MAAM,EAAE,uCAA6B;SACxC;KACJ,CAAC;IACD,IAAA,qBAAQ,EAAC;QACN,KAAK,EAAE,QAAQ;KAClB,CAAC;2DACqB;AAG3B,MAAa,2BAA2B;CAEvC;AAFD,kEAEC"}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import type { FioriElementsVersion, ExportParametersV4, ExportV4WithPath, ExportResults, UI5Version } from '@sap/ux-specification-types';
|
|
2
|
+
export type ExportSessionState = {
|
|
3
|
+
/**
|
|
4
|
+
* Manifest JSON paths (sync-rule based) that were written/created during the current export run.
|
|
5
|
+
* Used to prevent later rules from deleting a property that was re-created earlier in the same session.
|
|
6
|
+
*/
|
|
7
|
+
writtenManifestPaths: Set<string>;
|
|
8
|
+
};
|
|
2
9
|
/**
|
|
3
10
|
* General API for the export of a V4 config page.
|
|
4
11
|
* Export means the transfer of the properties and values of the given config to manifest entries or flex changes.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/v4/export/export.ts"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EACR,oBAAoB,EAKpB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EAEb,UAAU,EAIb,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"export.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/v4/export/export.ts"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EACR,oBAAoB,EAKpB,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EAEb,UAAU,EAIb,MAAM,6BAA6B,CAAC;AAgBrC,MAAM,MAAM,kBAAkB,GAAG;IAC7B;;;OAGG;IACH,oBAAoB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CACrC,CAAC;AAshDF;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,GACrB,oBAAoB,kBAAkB,CAAC,oBAAoB,CAAC,EAAE,CAAC,EAC/D,YAAY,UAAU,KACvB,aAAa,GAAG,SAiBlB,CAAC;AAsBF;;;;;;;;GAQG;AACH,eAAO,MAAM,0BAA0B,GACnC,oBAAoB,gBAAgB,CAAC,oBAAoB,CAAC,EAAE,CAAC,EAC7D,aAAa,UAAU,EACvB,yBAAuB,KACxB,aAAa,GAAG,SAelB,CAAC"}
|
|
@@ -14,6 +14,7 @@ const fpmCustomPage_1 = require("./fpmCustomPage");
|
|
|
14
14
|
const utils_3 = require("../utils/utils");
|
|
15
15
|
const viewProperties = ['key', 'index', 'label', 'visible', 'showCounts', 'entitySet', 'keepPreviousPersonalization'];
|
|
16
16
|
const doTransfer = [...viewProperties, 'views', 'initialLoad', 'template'];
|
|
17
|
+
const SKIPPED_TRACKED_PROPERTIES = new Set(['index']);
|
|
17
18
|
/**
|
|
18
19
|
* Returns a fresh export results object with default values.
|
|
19
20
|
*
|
|
@@ -245,14 +246,18 @@ function determineKeyForSyncRule(ids) {
|
|
|
245
246
|
let idIndex = 0;
|
|
246
247
|
for (let index = ids.length - 1; index > -1; index--) {
|
|
247
248
|
const element = ids[index];
|
|
248
|
-
|
|
249
|
+
// The check responds to the fact that the last element of the array may refer to a sub-action set
|
|
250
|
+
// we should not include it in the key
|
|
251
|
+
const isMenuActionSubActionElement = index === ids.length - 1 && element === ux_specification_types_1.PropertyName.actions;
|
|
252
|
+
if (([
|
|
249
253
|
ux_specification_types_1.PropertyName.actions,
|
|
250
254
|
ux_specification_types_1.PropertyName.columns,
|
|
251
255
|
ux_specification_types_1.PropertyName.views,
|
|
252
256
|
ux_specification_types_1.PropertyName.visualFilters,
|
|
253
257
|
ux_specification_types_1.PropertyName.selectionFields,
|
|
254
258
|
ux_specification_types_1.PropertyName.fields
|
|
255
|
-
].includes(ux_specification_types_1.PropertyName[element])
|
|
259
|
+
].includes(ux_specification_types_1.PropertyName[element]) &&
|
|
260
|
+
!isMenuActionSubActionElement) ||
|
|
256
261
|
isGroupingElement(element)) {
|
|
257
262
|
idIndex = index + 1;
|
|
258
263
|
break;
|
|
@@ -294,7 +299,10 @@ function transferPropertyToManifest(params, propertyDefinition, nextDefinition)
|
|
|
294
299
|
!params.configObject[params.configPropertyKey].length) ||
|
|
295
300
|
(!Array.isArray(params.configObject[params.configPropertyKey]) &&
|
|
296
301
|
params.configObject[params.configPropertyKey] === undefined)) {
|
|
297
|
-
delete
|
|
302
|
+
// we can delete the property only if it has not been added to the manifest during this export session by another export rule
|
|
303
|
+
if (!params.hasPropertyAddedThisExport) {
|
|
304
|
+
delete params.manifestSection[params.manifestKey];
|
|
305
|
+
}
|
|
298
306
|
}
|
|
299
307
|
else {
|
|
300
308
|
params.manifestSection[params.manifestKey] = params.configObject[params.configPropertyKey];
|
|
@@ -351,6 +359,32 @@ function deleteFromManifest(ids, params, transferParameters, manifestSection, pa
|
|
|
351
359
|
(0, utils_1.deleteEmptyStructure)(transferParameters.exportResults.manifest, path, transferParameters.deletionRequest, transferParameters.entityPathArray, targetAnnotation, targetAnnotationEncoded);
|
|
352
360
|
return changed;
|
|
353
361
|
}
|
|
362
|
+
/**
|
|
363
|
+
* Records a manifest property path as "processed during this export session".
|
|
364
|
+
*
|
|
365
|
+
* The export logic can both create/update and delete manifest entries. Some export rules may (re-)create
|
|
366
|
+
* the same manifest property for a different structure during the same run (e.g. action/menu-related settings).
|
|
367
|
+
* To prevent a later rule from deleting a property that has been (re-)added earlier in the same session,
|
|
368
|
+
* the export process keeps a session-scoped set of manifest paths (`writtenManifestPaths`) that were written.
|
|
369
|
+
*
|
|
370
|
+
* This helper adds the given `fullPath` to that set, except for meta/config-only keys that must not be tracked.
|
|
371
|
+
*
|
|
372
|
+
* Notes on exclusions:
|
|
373
|
+
* - Certain config keys are used only for ordering or internal bookkeeping and should not be treated as actual
|
|
374
|
+
* manifest settings. Currently `index` is such a key and is excluded.
|
|
375
|
+
* - Exclusions are centralized in `SKIPPED_TRACKED_PROPERTIES` to make the rule explicit and extensible.
|
|
376
|
+
*
|
|
377
|
+
* @param fullPath - Fully qualified manifest path of the exported property
|
|
378
|
+
* (typically: `syncRule.manifest.path(...) + '/' + (syncRule.manifest.key ?? configKey)`).
|
|
379
|
+
* @param writtenManifestPaths - Session-scoped set used to track manifest paths written during the current export run.
|
|
380
|
+
* @param key - Current config property key (used to skip meta keys like `index`).
|
|
381
|
+
*/
|
|
382
|
+
function storeProcessedPropertyToMap(fullPath, writtenManifestPaths, key) {
|
|
383
|
+
if (SKIPPED_TRACKED_PROPERTIES.has(key)) {
|
|
384
|
+
return;
|
|
385
|
+
}
|
|
386
|
+
writtenManifestPaths.add(fullPath);
|
|
387
|
+
}
|
|
354
388
|
/**
|
|
355
389
|
* Transfers a change in config.json to manifest.
|
|
356
390
|
*
|
|
@@ -361,6 +395,7 @@ function deleteFromManifest(ids, params, transferParameters, manifestSection, pa
|
|
|
361
395
|
* @returns a boolean indicator if any change happened to the manifest
|
|
362
396
|
*/
|
|
363
397
|
function exportManifestChange(ids, syncRule, parameters, nextDefinition) {
|
|
398
|
+
const writtenManifestPaths = parameters.transferParameters.exportSession.writtenManifestPaths;
|
|
364
399
|
let changed = false;
|
|
365
400
|
const originalIds = [...ids];
|
|
366
401
|
//eliminate subsections' hierarchy
|
|
@@ -372,25 +407,37 @@ function exportManifestChange(ids, syncRule, parameters, nextDefinition) {
|
|
|
372
407
|
const { targetAnnotationEncoded, targetAnnotation, custom } = determineTargetAnnotation(ids, parameters.transferParameters, parameters.configObject);
|
|
373
408
|
const syncRuleKey = determineKeyForSyncRule(ids);
|
|
374
409
|
const path = syncRule.manifest.path(parameters.transferParameters.pageNameArray, parameters.transferParameters.exportResults.manifest, targetAnnotationEncoded, syncRuleKey, targetAnnotation, parameters.configObject, originalIds);
|
|
410
|
+
const fullPath = `${path}/${syncRule.manifest.key ?? parameters.key}`;
|
|
375
411
|
const manifestSection = path
|
|
376
412
|
? (0, common_1.getManifestSectionByPathV4)(parameters.transferParameters.exportResults.manifest, path, targetAnnotation, custom ? undefined : targetAnnotationEncoded)
|
|
377
413
|
: undefined;
|
|
378
414
|
if (manifestSection) {
|
|
415
|
+
// If the property has already been added to the manifest during this export session,
|
|
416
|
+
// we must not delete it again. Due to non-deterministic processing order,
|
|
417
|
+
// another object (e.g. a manifest-based action menu) may have already moved or reattached
|
|
418
|
+
// this property. Deleting it here would lead to an incorrect final manifest state.
|
|
419
|
+
const isAddedDuringExportSession = writtenManifestPaths?.has(fullPath);
|
|
379
420
|
const exportParams = {
|
|
380
421
|
syncRule,
|
|
381
422
|
manifestSection,
|
|
382
423
|
configObject: parameters.configObject,
|
|
383
424
|
configPropertyKey: parameters.key,
|
|
384
425
|
manifestKey: syncRule.manifest.key || parameters.key,
|
|
385
|
-
syncRuleKey
|
|
426
|
+
syncRuleKey,
|
|
427
|
+
hasPropertyAddedThisExport: isAddedDuringExportSession
|
|
386
428
|
};
|
|
387
|
-
if (parameters.configObject[parameters.key] === undefined ||
|
|
429
|
+
if ((parameters.configObject[parameters.key] === undefined && !isAddedDuringExportSession) ||
|
|
388
430
|
(parameters.transferParameters.deletionRequest &&
|
|
389
431
|
(0, common_1.arrayIncludes)([...parameters.breadcrumbs, parameters.key], parameters.transferParameters.entityPathArray))) {
|
|
390
432
|
changed = deleteFromManifest(ids, exportParams, parameters.transferParameters, manifestSection, path, targetAnnotation, targetAnnotationEncoded);
|
|
391
433
|
}
|
|
392
434
|
else {
|
|
393
435
|
changed = transferPropertyToManifest(exportParams, parameters.propertyDefinition, nextDefinition);
|
|
436
|
+
// we need to store all properties that are added to the manifest during this export session
|
|
437
|
+
// to be able to avoid unnecessary deletion of them
|
|
438
|
+
if (changed && writtenManifestPaths) {
|
|
439
|
+
storeProcessedPropertyToMap(fullPath, writtenManifestPaths, parameters.key);
|
|
440
|
+
}
|
|
394
441
|
}
|
|
395
442
|
}
|
|
396
443
|
return changed;
|
|
@@ -744,6 +791,25 @@ function transferConfigEntriesWithAnyOfDefinitions(transferEntryParameters, anyO
|
|
|
744
791
|
}
|
|
745
792
|
return preprocessed;
|
|
746
793
|
}
|
|
794
|
+
/**
|
|
795
|
+
* Merges additional properties into a provided list according to specified conditions.
|
|
796
|
+
* Handles properties with `$ref` or `anyOf` by utilizing corresponding helper functions for integration.
|
|
797
|
+
*
|
|
798
|
+
* @param transferParameters The transfer parameters which guide the merging process.
|
|
799
|
+
* @param additionalProperties The additional properties to be merged, potentially containing `$ref` or `anyOf`.
|
|
800
|
+
* @param list The list into which additional properties will be inserted.
|
|
801
|
+
* @param configObject A configuration object containing relevant settings or data for the merging process.
|
|
802
|
+
*/
|
|
803
|
+
function mergeAdditionalProperties(transferParameters, additionalProperties, list, configObject) {
|
|
804
|
+
if (additionalProperties?.$ref) {
|
|
805
|
+
// Merge new entries for creation into list
|
|
806
|
+
mergeEntriesForInsert(transferParameters, additionalProperties, list, configObject);
|
|
807
|
+
}
|
|
808
|
+
if (Array.isArray(additionalProperties?.anyOf)) {
|
|
809
|
+
// Merge new entries for creation into list according to all definitions in anyOf
|
|
810
|
+
mergeAnyOfEntriesForInsert(transferParameters, additionalProperties, list, configObject);
|
|
811
|
+
}
|
|
812
|
+
}
|
|
747
813
|
/**
|
|
748
814
|
* Method updates list of definition entries from schema with entries for insertion based on `additionalProperties` entry.
|
|
749
815
|
*
|
|
@@ -767,6 +833,21 @@ function mergeEntriesForInsert(transferParameters, additionalProperties, list, c
|
|
|
767
833
|
}
|
|
768
834
|
}
|
|
769
835
|
}
|
|
836
|
+
/**
|
|
837
|
+
* Merges new entries according to all schemas in the `anyOf` property of the provided `additionalProperties`.
|
|
838
|
+
*
|
|
839
|
+
* @param {TransferParameterTypeV4} transferParameters - Contains parameters to manage the transfer process.
|
|
840
|
+
* @param {Definition} additionalProperties - The schema containing the `anyOf` property to iterate over.
|
|
841
|
+
* @param {[string, DefinitionOrBoolean][]} list - A list of key-value pairs to be processed.
|
|
842
|
+
* @param {{ [key: string]: unknown }} configObject - An object containing additional configuration parameters for the merge operation.
|
|
843
|
+
*/
|
|
844
|
+
function mergeAnyOfEntriesForInsert(transferParameters, additionalProperties, list, configObject) {
|
|
845
|
+
const { anyOf } = additionalProperties;
|
|
846
|
+
// Merge new entries according to all schemas in anyOf
|
|
847
|
+
anyOf.forEach((anyOfDefinition) => {
|
|
848
|
+
mergeEntriesForInsert(transferParameters, anyOfDefinition, list, configObject);
|
|
849
|
+
});
|
|
850
|
+
}
|
|
770
851
|
/**
|
|
771
852
|
* Sorts the properties of a schema definition, considering the propertyIndex.
|
|
772
853
|
*
|
|
@@ -832,10 +913,7 @@ function transferManifestEntriesAndFlexChange(transferParameters, configObject,
|
|
|
832
913
|
const preprocessed = checkIfAnyOfDefinition(additionalProperties, transferParameters, transferEntryParameters, schemaDefinition, parentIds, stableIdParts);
|
|
833
914
|
//Sort if there is a propertyIndex, so that the exported list ends up in manifest in the right order
|
|
834
915
|
const sortedList = sortProperties(schemaDefinition.properties);
|
|
835
|
-
|
|
836
|
-
// Merge new entries for creation into list
|
|
837
|
-
mergeEntriesForInsert(transferParameters, additionalProperties, sortedList, configObject);
|
|
838
|
-
}
|
|
916
|
+
mergeAdditionalProperties(transferParameters, additionalProperties, sortedList, configObject);
|
|
839
917
|
index = 0;
|
|
840
918
|
if (sortedList) {
|
|
841
919
|
sortedList.forEach((element) => {
|
|
@@ -927,6 +1005,9 @@ const exportObjectPage = (exportParameters, ui5Version, deletionRequest = false)
|
|
|
927
1005
|
}
|
|
928
1006
|
const transferParameters = {
|
|
929
1007
|
exportResults,
|
|
1008
|
+
exportSession: {
|
|
1009
|
+
writtenManifestPaths: new Set()
|
|
1010
|
+
},
|
|
930
1011
|
appId: exportParameters.appId,
|
|
931
1012
|
appRootPath: exportParameters.appRootPath,
|
|
932
1013
|
baseId: calculateBaseId(pageInstance, exportParameters),
|
|
@@ -982,6 +1063,9 @@ const exportListPage = (exportParameters, factory, config, pageType, ui5Version,
|
|
|
982
1063
|
}
|
|
983
1064
|
const transferParameters = {
|
|
984
1065
|
exportResults,
|
|
1066
|
+
exportSession: {
|
|
1067
|
+
writtenManifestPaths: new Set()
|
|
1068
|
+
},
|
|
985
1069
|
appId: exportParameters.appId,
|
|
986
1070
|
appRootPath: exportParameters.appRootPath,
|
|
987
1071
|
baseId: calculateBaseId(config, exportParameters),
|
|
@@ -1084,14 +1168,19 @@ const exportApplicationV4 = (application, manifest, appSchema) => {
|
|
|
1084
1168
|
applyExportRule(syncRule, path, key, application, exportResults.manifest, appSchema);
|
|
1085
1169
|
}
|
|
1086
1170
|
else {
|
|
1087
|
-
|
|
1171
|
+
// Read section/segment with 'readOnly=true'
|
|
1172
|
+
let manifestSection = (0, common_1.getManifestSectionByPathV4)(exportResults.manifest, path, undefined, undefined, true);
|
|
1088
1173
|
const settingProperty = application.settings?.[key];
|
|
1089
1174
|
// Property could be empty object or undefined, check for both
|
|
1090
1175
|
if (settingProperty !== undefined &&
|
|
1091
1176
|
(typeof settingProperty !== 'object' || Object.keys(settingProperty).length !== 0)) {
|
|
1177
|
+
// Read section/segment with 'readOnly=false'(create object/array if existing value not found by given path)
|
|
1178
|
+
manifestSection =
|
|
1179
|
+
manifestSection ??
|
|
1180
|
+
(0, common_1.getManifestSectionByPathV4)(exportResults.manifest, path, undefined, undefined, false);
|
|
1092
1181
|
manifestSection[key] = application.settings[key];
|
|
1093
1182
|
}
|
|
1094
|
-
else if (key in manifestSection) {
|
|
1183
|
+
else if (manifestSection && key in manifestSection) {
|
|
1095
1184
|
delete manifestSection[key];
|
|
1096
1185
|
(0, utils_1.deleteEmptyStructure)(exportResults.manifest, path, false);
|
|
1097
1186
|
}
|