@sap/ux-specification 1.144.1 → 1.144.2
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 +41 -0
- 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 +317 -312
- package/dist/index-min.js.map +4 -4
- package/dist/schemas/v2/ListReportNewConfig.json +208 -7
- package/dist/schemas/v4/ApplicationV4.json +14 -0
- package/dist/schemas/v4/BuildingBlocksConfig.json +286 -41
- package/dist/schemas/v4/ObjectPageConfig.json +112 -728
- package/dist/specification/package.json +8 -8
- package/dist/specification/scripts/generate-validity-report.js +1 -1
- package/dist/specification/scripts/generate-validity-report.js.map +1 -1
- package/dist/specification/scripts/macros/corrections.d.ts.map +1 -1
- package/dist/specification/scripts/macros/corrections.js +15 -0
- 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 +23 -10
- package/dist/specification/scripts/macros/schema.js.map +1 -1
- package/dist/specification/scripts/schema/to-json-schema.js +1 -1
- 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 +39 -3
- package/dist/specification/src/api.js.map +1 -1
- package/dist/specification/src/ftfs/ftfs.d.ts +8 -0
- package/dist/specification/src/ftfs/ftfs.d.ts.map +1 -1
- package/dist/specification/src/ftfs/ftfs.js +1 -0
- package/dist/specification/src/ftfs/ftfs.js.map +1 -1
- package/dist/specification/src/ftfs/index.d.ts +1 -1
- package/dist/specification/src/ftfs/index.d.ts.map +1 -1
- package/dist/specification/src/ftfs/index.js +2 -1
- package/dist/specification/src/ftfs/index.js.map +1 -1
- package/dist/specification/src/ftfs/parser/model/TreeModel.d.ts.map +1 -1
- package/dist/specification/src/ftfs/parser/model/TreeModel.js +3 -1
- package/dist/specification/src/ftfs/parser/model/TreeModel.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/Decorator.d.ts +91 -0
- package/dist/specification/src/sync/common/decoration/Decorator.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/Decorator.js +139 -0
- package/dist/specification/src/sync/common/decoration/Decorator.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/condition-evaluator.d.ts +95 -0
- package/dist/specification/src/sync/common/decoration/condition-evaluator.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/condition-evaluator.js +210 -0
- package/dist/specification/src/sync/common/decoration/condition-evaluator.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/decorator-paths.d.ts +58 -22
- package/dist/specification/src/sync/common/decoration/decorator-paths.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorator-paths.js +23 -1
- package/dist/specification/src/sync/common/decoration/decorator-paths.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorators.d.ts +0 -8
- package/dist/specification/src/sync/common/decoration/decorators.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorators.js +0 -15
- package/dist/specification/src/sync/common/decoration/decorators.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/index.d.ts +4 -0
- package/dist/specification/src/sync/common/decoration/index.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/index.js +4 -0
- package/dist/specification/src/sync/common/decoration/index.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/interfaces.d.ts +38 -0
- package/dist/specification/src/sync/common/decoration/interfaces.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/interfaces.js +3 -0
- package/dist/specification/src/sync/common/decoration/interfaces.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Enums.d.ts +18 -0
- package/dist/specification/src/sync/common/decoration/steps/Enums.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Enums.js +50 -0
- package/dist/specification/src/sync/common/decoration/steps/Enums.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Hide.d.ts +18 -0
- package/dist/specification/src/sync/common/decoration/steps/Hide.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Hide.js +46 -0
- package/dist/specification/src/sync/common/decoration/steps/Hide.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Message.d.ts +26 -0
- package/dist/specification/src/sync/common/decoration/steps/Message.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Message.js +77 -0
- package/dist/specification/src/sync/common/decoration/steps/Message.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Readonly.d.ts +18 -0
- package/dist/specification/src/sync/common/decoration/steps/Readonly.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Readonly.js +43 -0
- package/dist/specification/src/sync/common/decoration/steps/Readonly.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Validity.d.ts +18 -0
- package/dist/specification/src/sync/common/decoration/steps/Validity.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/Validity.js +68 -0
- package/dist/specification/src/sync/common/decoration/steps/Validity.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/enum-utils.d.ts +19 -0
- package/dist/specification/src/sync/common/decoration/steps/enum-utils.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/enum-utils.js +48 -0
- package/dist/specification/src/sync/common/decoration/steps/enum-utils.js.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/index.d.ts +6 -0
- package/dist/specification/src/sync/common/decoration/steps/index.d.ts.map +1 -0
- package/dist/specification/src/sync/common/decoration/steps/index.js +14 -0
- package/dist/specification/src/sync/common/decoration/steps/index.js.map +1 -0
- package/dist/specification/src/sync/common/i18n.json +25 -1
- package/dist/specification/src/sync/common/importProject.d.ts.map +1 -1
- package/dist/specification/src/sync/common/importProject.js +2 -0
- package/dist/specification/src/sync/common/importProject.js.map +1 -1
- package/dist/specification/src/sync/common/rules.d.ts +1 -1
- package/dist/specification/src/sync/common/rules.js +1 -1
- package/dist/specification/src/sync/v2/export/controls/Fragment.d.ts +4 -5
- package/dist/specification/src/sync/v2/export/controls/Fragment.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/Fragment.js +29 -20
- package/dist/specification/src/sync/v2/export/controls/Fragment.js.map +1 -1
- package/dist/specification/src/sync/v2/export/export.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/export.js +3 -2
- package/dist/specification/src/sync/v2/export/export.js.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 +48 -19
- package/dist/specification/src/sync/v2/export/exportPage.js.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts +2 -0
- package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js +17 -6
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js.map +1 -1
- package/dist/specification/src/sync/v2/export/view-controller-generator.d.ts +54 -6
- package/dist/specification/src/sync/v2/export/view-controller-generator.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/view-controller-generator.js +106 -12
- package/dist/specification/src/sync/v2/export/view-controller-generator.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts +2 -0
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js +3 -2
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/utils.d.ts +16 -1
- package/dist/specification/src/sync/v2/generate/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/utils.js +30 -18
- package/dist/specification/src/sync/v2/generate/utils.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/FilterBar.js +4 -4
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiEdit.d.ts +12 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiEdit.d.ts.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiEdit.js +167 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiEdit.js.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiTable.js +3 -3
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiTable.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts +60 -2
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.js +626 -11
- 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/genericSchemaHandling/pages/pageAccess.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.js +30 -6
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/pageAccess.js.map +1 -1
- package/dist/specification/src/sync/v2/types.d.ts +2 -0
- package/dist/specification/src/sync/v2/types.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/types.js.map +1 -1
- package/dist/specification/src/sync/v2/utils.d.ts +25 -0
- package/dist/specification/src/sync/v2/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/utils.js +28 -4
- package/dist/specification/src/sync/v2/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/application.d.ts +1 -0
- package/dist/specification/src/sync/v4/application.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/application.js +10 -0
- package/dist/specification/src/sync/v4/application.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/FilterBar.d.ts +1 -2
- package/dist/specification/src/sync/v4/export/controls/FilterBar.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/FilterBar.js +1 -2
- package/dist/specification/src/sync/v4/export/controls/FilterBar.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Header.d.ts +3 -5
- package/dist/specification/src/sync/v4/export/controls/Header.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Header.js +2 -7
- package/dist/specification/src/sync/v4/export/controls/Header.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/HeaderAction.d.ts +9 -3
- package/dist/specification/src/sync/v4/export/controls/HeaderAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/HeaderAction.js +10 -6
- package/dist/specification/src/sync/v4/export/controls/HeaderAction.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts +1 -2
- package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.js +1 -2
- package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.d.ts +11 -51
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.js +95 -246
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Table.d.ts +6 -27
- package/dist/specification/src/sync/v4/export/controls/Table.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Table.js +11 -38
- package/dist/specification/src/sync/v4/export/controls/Table.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.d.ts +1 -2
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.js +1 -2
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.js.map +1 -1
- package/dist/specification/src/sync/v4/export/factory.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/factory.js +2 -4
- package/dist/specification/src/sync/v4/export/factory.js.map +1 -1
- package/dist/specification/src/sync/v4/export/fpmCustomPage.d.ts +1 -0
- package/dist/specification/src/sync/v4/export/fpmCustomPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/fpmCustomPage.js +212 -46
- package/dist/specification/src/sync/v4/export/fpmCustomPage.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/app.d.ts +11 -0
- package/dist/specification/src/sync/v4/generate/app.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/generate/app.js +31 -0
- package/dist/specification/src/sync/v4/generate/app.js.map +1 -0
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.d.ts +13 -0
- 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 +74 -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.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/extensions.js +4 -3
- 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 +29 -27
- 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.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.js +12 -3
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.d.ts +32 -13
- package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.js +103 -78
- package/dist/specification/src/sync/v4/generate/list-report/ListReportUtils.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/list-report/listReport.d.ts +7 -4
- package/dist/specification/src/sync/v4/generate/list-report/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/list-report/listReport.js +34 -19
- package/dist/specification/src/sync/v4/generate/list-report/listReport.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/objectPage.d.ts +1 -2
- package/dist/specification/src/sync/v4/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/objectPage.js +136 -95
- package/dist/specification/src/sync/v4/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.js +20 -0
- package/dist/specification/src/sync/v4/import/pages/fpmCustomPage.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 +11 -50
- package/dist/specification/src/sync/v4/import/pages/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/App.d.ts +2 -4
- package/dist/specification/src/sync/v4/sync-rules/App.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/App.js +2 -1
- package/dist/specification/src/sync/v4/sync-rules/App.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.d.ts +2 -1
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.js +3 -1
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.d.ts +1 -294
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js +0 -753
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/Page.d.ts +2 -4
- package/dist/specification/src/sync/v4/sync-rules/Page.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/Page.js.map +1 -1
- package/dist/specification/src/sync/v4/utils/StableIdHelper.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/utils/StableIdHelper.js +10 -4
- package/dist/specification/src/sync/v4/utils/StableIdHelper.js.map +1 -1
- package/dist/specification/src/sync/v4/utils/macros.d.ts +19 -0
- package/dist/specification/src/sync/v4/utils/macros.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/utils/macros.js +34 -0
- package/dist/specification/src/sync/v4/utils/macros.js.map +1 -1
- package/dist/specification/src/sync/v4/utils/utils.d.ts +22 -2
- package/dist/specification/src/sync/v4/utils/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/utils/utils.js +238 -41
- package/dist/specification/src/sync/v4/utils/utils.js.map +1 -1
- package/dist/specification/test/test-utils/utils.d.ts +1 -0
- package/dist/specification/test/test-utils/utils.d.ts.map +1 -1
- package/dist/specification/test/test-utils/utils.js +11 -0
- package/dist/specification/test/test-utils/utils.js.map +1 -1
- package/dist/specification/test/unit/decorators/validity-test-utils.d.ts +2 -2
- package/dist/specification/test/unit/decorators/validity-test-utils.d.ts.map +1 -1
- package/dist/specification/test/unit/decorators/validity-test-utils.js +6 -6
- package/dist/specification/test/unit/decorators/validity-test-utils.js.map +1 -1
- package/dist/templates/AnalyticalTableColumnsExtension.xml +3 -3
- package/dist/templates/GridTableColumnsExtension.xml +3 -3
- package/dist/templates/ResponsiveTableColumnsExtension.xml +2 -2
- package/dist/templates/TreeTableColumnsExtension.xml +4 -4
- package/dist/templates/fragment.xml +3 -3
- package/dist/templates/view.xml +3 -3
- package/dist/types/src/apiTypes.d.ts +15 -5
- 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 +11 -6
- package/dist/types/src/common/types.d.ts.map +1 -1
- package/dist/types/src/common/types.js +12 -7
- package/dist/types/src/common/types.js.map +1 -1
- package/dist/types/src/v4/application.d.ts +15 -0
- package/dist/types/src/v4/application.d.ts.map +1 -1
- package/dist/types/src/v4/application.js +10 -0
- package/dist/types/src/v4/application.js.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageTable.d.ts +86 -252
- package/dist/types/src/v4/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageTable.js.map +1 -1
- package/package.json +8 -8
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConditionEvaluator = void 0;
|
|
4
|
+
const jsonpath_plus_1 = require("jsonpath-plus");
|
|
5
|
+
const decorator_paths_1 = require("./decorator-paths");
|
|
6
|
+
/**
|
|
7
|
+
* Evaluates decorator conditions against runtime context.
|
|
8
|
+
* Supports single conditions, AND conditions, and OR conditions with nesting.
|
|
9
|
+
*/
|
|
10
|
+
class ConditionEvaluator {
|
|
11
|
+
/**
|
|
12
|
+
* Creates a new ConditionEvaluator with the given decorator context.
|
|
13
|
+
*
|
|
14
|
+
* @param context - The decorator context containing app, page, and custom runtime data
|
|
15
|
+
*/
|
|
16
|
+
constructor(context) {
|
|
17
|
+
this.context = {
|
|
18
|
+
// Use app.config (plain AppContext) for JSONPath evaluation, not the full App instance.
|
|
19
|
+
// app.config holds manifest and other plain data that path builders reference (e.g. app.manifest).
|
|
20
|
+
app: context.app?.config,
|
|
21
|
+
page: context.page?.config,
|
|
22
|
+
custom: context.custom
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Gets property value from the decorator context using a property path.
|
|
27
|
+
* Supports JSONPath syntax for complex paths.
|
|
28
|
+
*
|
|
29
|
+
* @param propertyPath - JSONPath-style path to resolve (e.g. 'page.isALP', 'custom.type')
|
|
30
|
+
* @returns The key/value pair at the resolved path, or undefined if not found
|
|
31
|
+
*/
|
|
32
|
+
getPropertyKeyValue(propertyPath) {
|
|
33
|
+
if (!propertyPath || !this.context) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
try {
|
|
37
|
+
const jsonPath = propertyPath.startsWith('$') ? propertyPath : `$.${propertyPath}`;
|
|
38
|
+
const results = (0, jsonpath_plus_1.JSONPath)({
|
|
39
|
+
path: jsonPath,
|
|
40
|
+
json: this.context,
|
|
41
|
+
resultType: 'all'
|
|
42
|
+
});
|
|
43
|
+
if (!results || results.length === 0) {
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
const result = results[0];
|
|
47
|
+
const key = String(result.parentProperty);
|
|
48
|
+
const value = result.value;
|
|
49
|
+
return { key, value };
|
|
50
|
+
}
|
|
51
|
+
catch {
|
|
52
|
+
return undefined;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Resolves PathNode values in message params to their actual values.
|
|
57
|
+
*
|
|
58
|
+
* @param params - Optional map of parameter names to values (may contain PathNodes)
|
|
59
|
+
* @returns Resolved params with PathNodes replaced by their runtime values
|
|
60
|
+
*/
|
|
61
|
+
resolveMessageParams(params) {
|
|
62
|
+
if (!params) {
|
|
63
|
+
return params;
|
|
64
|
+
}
|
|
65
|
+
const resolved = {};
|
|
66
|
+
for (const [key, value] of Object.entries(params)) {
|
|
67
|
+
if ((0, decorator_paths_1.isPathNode)(value)) {
|
|
68
|
+
const result = this.getPropertyKeyValue((0, decorator_paths_1.getPath)(value));
|
|
69
|
+
resolved[key] = result?.value ?? '';
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
resolved[key] = value;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return resolved;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Evaluates a condition and returns whether it passed and context for messages.
|
|
79
|
+
*
|
|
80
|
+
* @param conditionInfo - The condition to evaluate (single, AND, or OR)
|
|
81
|
+
* @returns Whether the condition passed and a context string for message interpolation
|
|
82
|
+
*/
|
|
83
|
+
evaluate(conditionInfo) {
|
|
84
|
+
let passed = false;
|
|
85
|
+
let context = '';
|
|
86
|
+
if (conditionInfo.orConditions && Array.isArray(conditionInfo.orConditions)) {
|
|
87
|
+
const result = this.evaluateOrConditions(conditionInfo.orConditions);
|
|
88
|
+
passed = result.passed;
|
|
89
|
+
context = this.getContextForMessage(result.results);
|
|
90
|
+
}
|
|
91
|
+
else if (conditionInfo.conditions && Array.isArray(conditionInfo.conditions)) {
|
|
92
|
+
const result = this.evaluateAndConditions(conditionInfo.conditions);
|
|
93
|
+
passed = result.passed;
|
|
94
|
+
context = this.getContextForMessage(result.results);
|
|
95
|
+
}
|
|
96
|
+
else if (conditionInfo.path) {
|
|
97
|
+
const result = this.evaluateSingleCondition(conditionInfo);
|
|
98
|
+
passed = result.passed;
|
|
99
|
+
context = this.getContextForMessage([result]);
|
|
100
|
+
}
|
|
101
|
+
return { passed, context };
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Evaluates a single dependency condition.
|
|
105
|
+
*
|
|
106
|
+
* @param condition - A single condition with path, optional expectedValue, and optional negate
|
|
107
|
+
* @returns The evaluation result with passed flag, resolved value, and key
|
|
108
|
+
*/
|
|
109
|
+
evaluateSingleCondition(condition) {
|
|
110
|
+
if (condition.path === '__always__') {
|
|
111
|
+
return { passed: true, value: true, key: '__always__' };
|
|
112
|
+
}
|
|
113
|
+
const result = this.getPropertyKeyValue(condition.path);
|
|
114
|
+
const key = result?.key ?? condition.path;
|
|
115
|
+
const value = result?.value;
|
|
116
|
+
let passed = false;
|
|
117
|
+
if (condition.dependsOn) {
|
|
118
|
+
passed = condition.dependsOn(value);
|
|
119
|
+
}
|
|
120
|
+
else if (condition.expectedValue !== undefined) {
|
|
121
|
+
passed = value === condition.expectedValue;
|
|
122
|
+
}
|
|
123
|
+
else {
|
|
124
|
+
passed = !!value;
|
|
125
|
+
}
|
|
126
|
+
if (condition.negate) {
|
|
127
|
+
passed = !passed;
|
|
128
|
+
}
|
|
129
|
+
return { passed, value, key };
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Gets the context message from evaluation results.
|
|
133
|
+
*
|
|
134
|
+
* @param results - Array of evaluation results to summarize
|
|
135
|
+
* @returns A comma-separated string of failed condition key/value pairs
|
|
136
|
+
*/
|
|
137
|
+
getContextForMessage(results) {
|
|
138
|
+
return results
|
|
139
|
+
.filter((result) => !result.passed)
|
|
140
|
+
.map((result) => `${result.key}: ${result.value}`)
|
|
141
|
+
.join(', ');
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Evaluates an AND condition item which can be a single condition or nested OR group.
|
|
145
|
+
*
|
|
146
|
+
* @param conditionItem - A single condition or an OR group nested inside AND
|
|
147
|
+
* @returns Whether the item passed and the individual evaluation results
|
|
148
|
+
*/
|
|
149
|
+
evaluateAndConditionItem(conditionItem) {
|
|
150
|
+
if ((0, decorator_paths_1.isOrConditionGroup)(conditionItem)) {
|
|
151
|
+
return this.evaluateOrConditions(conditionItem.__orConditions);
|
|
152
|
+
}
|
|
153
|
+
const result = this.evaluateSingleCondition(conditionItem);
|
|
154
|
+
return { passed: result.passed, results: [result] };
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Evaluates OR conditions (at least one must match).
|
|
158
|
+
*
|
|
159
|
+
* @param orConditions - Array of OR condition items (single conditions or AND groups)
|
|
160
|
+
* @returns Whether any condition passed and all individual evaluation results
|
|
161
|
+
*/
|
|
162
|
+
evaluateOrConditions(orConditions) {
|
|
163
|
+
const allResults = [];
|
|
164
|
+
for (const conditionItem of orConditions) {
|
|
165
|
+
if ((0, decorator_paths_1.isAndConditionGroup)(conditionItem)) {
|
|
166
|
+
const andResults = [];
|
|
167
|
+
let allAndPassed = true;
|
|
168
|
+
for (const andItem of conditionItem.__andConditions) {
|
|
169
|
+
const { passed, results } = this.evaluateAndConditionItem(andItem);
|
|
170
|
+
andResults.push(...results);
|
|
171
|
+
if (!passed) {
|
|
172
|
+
allAndPassed = false;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
allResults.push(...andResults);
|
|
176
|
+
if (allAndPassed) {
|
|
177
|
+
return { passed: true, results: allResults };
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
const result = this.evaluateSingleCondition(conditionItem);
|
|
182
|
+
allResults.push(result);
|
|
183
|
+
if (result.passed) {
|
|
184
|
+
return { passed: true, results: allResults };
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
return { passed: false, results: allResults };
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Evaluates AND conditions (all must match).
|
|
192
|
+
*
|
|
193
|
+
* @param andConditions - Array of AND condition items (single conditions or OR groups)
|
|
194
|
+
* @returns Whether all conditions passed and all individual evaluation results
|
|
195
|
+
*/
|
|
196
|
+
evaluateAndConditions(andConditions) {
|
|
197
|
+
const allResults = [];
|
|
198
|
+
let allPassed = true;
|
|
199
|
+
for (const conditionItem of andConditions) {
|
|
200
|
+
const { passed, results } = this.evaluateAndConditionItem(conditionItem);
|
|
201
|
+
allResults.push(...results);
|
|
202
|
+
if (!passed) {
|
|
203
|
+
allPassed = false;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
return { passed: allPassed, results: allResults };
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
exports.ConditionEvaluator = ConditionEvaluator;
|
|
210
|
+
//# sourceMappingURL=condition-evaluator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"condition-evaluator.js","sourceRoot":"","sources":["../../../../../../src/sync/common/decoration/condition-evaluator.ts"],"names":[],"mappings":";;;AAUA,iDAAyC;AACzC,uDAAiG;AA+BjG;;;GAGG;AACH,MAAa,kBAAkB;IAG3B;;;;OAIG;IACH,YAAY,OAAyB;QACjC,IAAI,CAAC,OAAO,GAAG;YACX,wFAAwF;YACxF,mGAAmG;YACnG,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,MAAM;YACxB,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,MAAM;YAC1B,MAAM,EAAE,OAAO,CAAC,MAAM;SACzB,CAAC;IACN,CAAC;IAED;;;;;;OAMG;IACH,mBAAmB,CAAC,YAAoB;QACpC,IAAI,CAAC,YAAY,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;YACjC,OAAO,SAAS,CAAC;QACrB,CAAC;QAED,IAAI,CAAC;YACD,MAAM,QAAQ,GAAG,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,YAAY,EAAE,CAAC;YACnF,MAAM,OAAO,GAAG,IAAA,wBAAQ,EAAC;gBACrB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,IAAI,CAAC,OAAO;gBAClB,UAAU,EAAE,KAAK;aACpB,CAAC,CAAC;YAEH,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBACnC,OAAO,SAAS,CAAC;YACrB,CAAC;YAED,MAAM,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YAC1B,MAAM,GAAG,GAAG,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;YAC1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AS,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;IACtD,CAAC;CACJ;AAxOD,gDAwOC"}
|
|
@@ -56,6 +56,8 @@ import type { Manifest, v4, AndConditionItem, OrConditionItem, AndConditionGroup
|
|
|
56
56
|
export type AppContext = {
|
|
57
57
|
/** The application manifest */
|
|
58
58
|
manifest: Manifest;
|
|
59
|
+
/** Returns the minimum UI5 version for the application */
|
|
60
|
+
minUI5Version: string;
|
|
59
61
|
};
|
|
60
62
|
/**
|
|
61
63
|
* Page context (sourced from page.config).
|
|
@@ -64,7 +66,9 @@ export type AppContext = {
|
|
|
64
66
|
* These properties are determined by the Page class and its configuration.
|
|
65
67
|
* Extend this type when new config properties are added to Page.
|
|
66
68
|
*/
|
|
67
|
-
export type PageContext = {
|
|
69
|
+
export type PageContext = {
|
|
70
|
+
[key: string]: unknown;
|
|
71
|
+
};
|
|
68
72
|
/**
|
|
69
73
|
* Settings for the Table Class context, taken from manifest.
|
|
70
74
|
*
|
|
@@ -75,6 +79,37 @@ export type LRTableContext = {
|
|
|
75
79
|
creationMode?: v4.TableCreationModeLR;
|
|
76
80
|
analyticalConfiguration?: v4.AnalyticalConfiguration;
|
|
77
81
|
popinLayout?: string;
|
|
82
|
+
/** Whether the entity/navigation is insertable (based on Capabilities.InsertRestrictions) */
|
|
83
|
+
isInsertable?: boolean;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Settings for the Object Page Table Class context.
|
|
87
|
+
*
|
|
88
|
+
* This context is provided via `init()` when applying Object Page table decorators.
|
|
89
|
+
*/
|
|
90
|
+
export type OPTableContext = {
|
|
91
|
+
type: v4.TableTypeV4;
|
|
92
|
+
/** Page-level section layout setting (affects rowCountMode behavior) */
|
|
93
|
+
sectionLayout?: v4.SectionLayoutType;
|
|
94
|
+
rowCountMode?: v4.RowCountMode;
|
|
95
|
+
rowCount?: number;
|
|
96
|
+
popinLayout?: string;
|
|
97
|
+
analyticalConfiguration?: v4.ObjectPageAnalyticalConfiguration;
|
|
98
|
+
creationMode?: {
|
|
99
|
+
name?: v4.TableCreationModeType;
|
|
100
|
+
createAtEnd?: boolean;
|
|
101
|
+
inlineCreationRowsHiddenInEditMode?: boolean;
|
|
102
|
+
createInPlace?: boolean;
|
|
103
|
+
isCreateEnabled?: string;
|
|
104
|
+
creationFields?: string[];
|
|
105
|
+
outbound?: string;
|
|
106
|
+
};
|
|
107
|
+
/** Whether navigation is defined in page settings (used to determine default creation mode) */
|
|
108
|
+
hasNavigation?: boolean;
|
|
109
|
+
/** Whether the entity/navigation is insertable (based on Capabilities.InsertRestrictions) */
|
|
110
|
+
isInsertable?: boolean;
|
|
111
|
+
/** Whether the table is in a collection section (affects rowCountMode Tabs restriction) */
|
|
112
|
+
isCollection?: boolean;
|
|
78
113
|
};
|
|
79
114
|
/**
|
|
80
115
|
* Symbol used to store the path string within PathNode objects.
|
|
@@ -205,6 +240,28 @@ export declare const custom: PathBuilder<Record<string, unknown>, `${string}.`>
|
|
|
205
240
|
* ```
|
|
206
241
|
*/
|
|
207
242
|
export declare const tableContext: PathBuilder<LRTableContext, `${string}.`> & PathNode<string>;
|
|
243
|
+
/**
|
|
244
|
+
* Type-safe path builder for Object Page table decorator context.
|
|
245
|
+
*
|
|
246
|
+
* This context **must be provided** in the customContext parameter of `init()`.
|
|
247
|
+
* Use this for table-specific conditions in Object Page table decorators.
|
|
248
|
+
*
|
|
249
|
+
* Properties are accessed directly without nesting (e.g., `opTableContext.type` not `opTableContext.table.type`).
|
|
250
|
+
*
|
|
251
|
+
* @example
|
|
252
|
+
* ```typescript
|
|
253
|
+
* // In decorator - with full type safety
|
|
254
|
+
* @hide(when(opTableContext.type, 'TreeTable'))
|
|
255
|
+
* @hide(when(opTableContext.creationMode.name, 'Inline'))
|
|
256
|
+
*
|
|
257
|
+
* // In init - provide flat context object
|
|
258
|
+
* decorator.init({
|
|
259
|
+
* type: 'GridTable',
|
|
260
|
+
* creationMode: { name: 'NewPage' }
|
|
261
|
+
* });
|
|
262
|
+
* ```
|
|
263
|
+
*/
|
|
264
|
+
export declare const opTableContext: PathBuilder<OPTableContext, `${string}.`> & PathNode<string>;
|
|
208
265
|
/**
|
|
209
266
|
* Symbol used to identify WhenCondition objects.
|
|
210
267
|
*/
|
|
@@ -478,26 +535,5 @@ export declare function isOrConditionGroup(item: AndConditionItem): item is OrCo
|
|
|
478
535
|
* @returns True if item is an AndConditionGroup
|
|
479
536
|
*/
|
|
480
537
|
export declare function isAndConditionGroup(item: OrConditionItem): item is AndConditionGroup;
|
|
481
|
-
/**
|
|
482
|
-
* The complete decorator context type used internally.
|
|
483
|
-
* Contains app, page and custom context.
|
|
484
|
-
*/
|
|
485
|
-
export type DecoratorContextType = {
|
|
486
|
-
/**
|
|
487
|
-
* App context - auto-injected from app.config.
|
|
488
|
-
* Provides access to manifest and other app-level properties.
|
|
489
|
-
*/
|
|
490
|
-
app?: Partial<AppContext>;
|
|
491
|
-
/**
|
|
492
|
-
* Page context - auto-injected from page.config.
|
|
493
|
-
* Provides access to page-level properties like isALP, visualization, etc.
|
|
494
|
-
*/
|
|
495
|
-
page?: Partial<PageContext>;
|
|
496
|
-
/**
|
|
497
|
-
* Custom context - provided via init().
|
|
498
|
-
* Use for runtime-specific conditions like table state, section state, etc.
|
|
499
|
-
*/
|
|
500
|
-
custom?: Record<string, unknown>;
|
|
501
|
-
};
|
|
502
538
|
export {};
|
|
503
539
|
//# sourceMappingURL=decorator-paths.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorator-paths.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/common/decoration/decorator-paths.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAEH,OAAO,KAAK,EACR,QAAQ,EACR,EAAE,EACF,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EACnB,MAAM,6BAA6B,CAAC;AAMrC;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG;IACrB,+BAA+B;IAC/B,QAAQ,EAAE,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"decorator-paths.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/common/decoration/decorator-paths.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAEH,OAAO,KAAK,EACR,QAAQ,EACR,EAAE,EACF,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EACnB,MAAM,6BAA6B,CAAC;AAMrC;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG;IACrB,+BAA+B;IAC/B,QAAQ,EAAE,QAAQ,CAAC;IACnB,0DAA0D;IAC1D,aAAa,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,CAAC;AAErD;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG;IACzB,IAAI,EAAE,EAAE,CAAC,WAAW,CAAC;IACrB,YAAY,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC;IACtC,uBAAuB,CAAC,EAAE,EAAE,CAAC,uBAAuB,CAAC;IACrD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6FAA6F;IAC7F,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG;IACzB,IAAI,EAAE,EAAE,CAAC,WAAW,CAAC;IACrB,wEAAwE;IACxE,aAAa,CAAC,EAAE,EAAE,CAAC,iBAAiB,CAAC;IACrC,YAAY,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uBAAuB,CAAC,EAAE,EAAE,CAAC,iCAAiC,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AAiB,CAEpF"}
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
* ```
|
|
51
51
|
*/
|
|
52
52
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
-
exports.MSG_SYMBOL = exports.NOT_SYMBOL = exports.WHEN_SYMBOL = exports.tableContext = exports.custom = exports.page = exports.app = exports.PATH_SYMBOL = void 0;
|
|
53
|
+
exports.MSG_SYMBOL = exports.NOT_SYMBOL = exports.WHEN_SYMBOL = exports.opTableContext = exports.tableContext = exports.custom = exports.page = exports.app = exports.PATH_SYMBOL = void 0;
|
|
54
54
|
exports.getPath = getPath;
|
|
55
55
|
exports.isPathNode = isPathNode;
|
|
56
56
|
exports.isWhenCondition = isWhenCondition;
|
|
@@ -219,6 +219,28 @@ exports.custom = createPathBuilder('custom');
|
|
|
219
219
|
* ```
|
|
220
220
|
*/
|
|
221
221
|
exports.tableContext = createPathBuilder('custom');
|
|
222
|
+
/**
|
|
223
|
+
* Type-safe path builder for Object Page table decorator context.
|
|
224
|
+
*
|
|
225
|
+
* This context **must be provided** in the customContext parameter of `init()`.
|
|
226
|
+
* Use this for table-specific conditions in Object Page table decorators.
|
|
227
|
+
*
|
|
228
|
+
* Properties are accessed directly without nesting (e.g., `opTableContext.type` not `opTableContext.table.type`).
|
|
229
|
+
*
|
|
230
|
+
* @example
|
|
231
|
+
* ```typescript
|
|
232
|
+
* // In decorator - with full type safety
|
|
233
|
+
* @hide(when(opTableContext.type, 'TreeTable'))
|
|
234
|
+
* @hide(when(opTableContext.creationMode.name, 'Inline'))
|
|
235
|
+
*
|
|
236
|
+
* // In init - provide flat context object
|
|
237
|
+
* decorator.init({
|
|
238
|
+
* type: 'GridTable',
|
|
239
|
+
* creationMode: { name: 'NewPage' }
|
|
240
|
+
* });
|
|
241
|
+
* ```
|
|
242
|
+
*/
|
|
243
|
+
exports.opTableContext = createPathBuilder('custom');
|
|
222
244
|
// ============================================
|
|
223
245
|
// WHEN CONDITION HELPER
|
|
224
246
|
// ============================================
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorator-paths.js","sourceRoot":"","sources":["../../../../../../src/sync/common/decoration/decorator-paths.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;;;
|
|
1
|
+
{"version":3,"file":"decorator-paths.js","sourceRoot":"","sources":["../../../../../../src/sync/common/decoration/decorator-paths.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;;;AAwKH,0BAEC;AAQD,gCAEC;AA+ID,0CAEC;AAuBD,oBAMC;AAgCD,wCAEC;AA8BD,kBAkBC;AA2BD,wBAEC;AAoCD,0CAEC;AA0BD,kBAWC;AA4DD,kBAKC;AAgBD,gBAKC;AAQD,wCAEC;AAQD,sCAEC;AAQD,4CAEC;AAYD,gDAEC;AAQD,kDAEC;AAzlBD,+CAA+C;AAC/C,2BAA2B;AAC3B,+CAA+C;AAE/C;;;;;;GAMG;AACU,QAAA,WAAW,GAAG,MAAM,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;AA6B5D;;;;;;;;;;;;;;;GAeG;AACH,SAAS,iBAAiB,CACtB,MAAc;IAEd,MAAM,OAAO,GAAyB;QAClC,GAAG,CAAC,CAAC,EAAE,IAAqB;YACxB,IAAI,IAAI,KAAK,mBAAW,EAAE,CAAC;gBACvB,OAAO,MAAM,CAAC;YAClB,CAAC;YACD,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;gBAC3B,OAAO,iBAAiB,CAAC,GAAG,MAAM,IAAI,IAAI,EAAE,CAAC,CAAC;YAClD,CAAC;YACD,OAAO,SAAS,CAAC;QACrB,CAAC;QACD,gEAAgE;QAChE,GAAG,CAAC,CAAC,EAAE,IAAqB;YACxB,OAAO,IAAI,KAAK,mBAAW,CAAC;QAChC,CAAC;KACJ,CAAC;IACF,OAAO,IAAI,KAA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AQ,IAAI,gBAAgB,IAAI,IAAI,CAAC;AACjF,CAAC;AAED;;;;;GAKG;AACH,SAAgB,mBAAmB,CAAC,IAAqB;IACrD,OAAO,IAAI,KAAK,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,iBAAiB,IAAI,IAAI,CAAC;AAClF,CAAC"}
|
|
@@ -39,14 +39,6 @@ export declare const descriptionUrlMetadataKey: unique symbol;
|
|
|
39
39
|
export declare const descriptionSrcURL: (id: string) => any;
|
|
40
40
|
export declare const getDescriptionSrcURL: (target: any, propertyName: string) => string;
|
|
41
41
|
export declare const validity: (validity: Validity) => any;
|
|
42
|
-
/**
|
|
43
|
-
* Retrieves the validity metadata associated with a specific property of a target object.
|
|
44
|
-
*
|
|
45
|
-
* @param target - The object containing the property.
|
|
46
|
-
* @param propertyName - The name of the property whose validity metadata is to be retrieved.
|
|
47
|
-
* @returns The validity information of the property, or undefined if no metadata is found.
|
|
48
|
-
*/
|
|
49
|
-
export declare function getValidityMetadata(target: object, propertyName: string): ValidityInformation | undefined;
|
|
50
42
|
/**
|
|
51
43
|
* Mark the target class with a metadata flag indicating it is a view node.
|
|
52
44
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/common/decoration/decorators.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EACR,QAAQ,EACR,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EAChB,QAAQ,EACR,kBAAkB,EAIrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAQH,KAAK,cAAc,EAEnB,KAAK,aAAa,EAErB,MAAM,mBAAmB,CAAC;AAM3B;;;GAGG;AACH,eAAO,MAAM,YAAY;;;;;;;;;CASxB,CAAC;AAoBF,eAAO,MAAM,QAAQ,GAAI,UAAU,QAAQ,KAAG,GAE7C,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,kBAAkB,C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MD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,QAAQ,CAAC,SAAS,EAAE,cAAc,GAAG,iBAAiB,CAGrE;AAMD;;;GAGG;AACH,MAAM,WAAW,sBAAuB,SAAQ,iBAAiB;IAC7D,wDAAwD;IACxD,aAAa,EAAE,MAAM,EAAE,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,KAAK,CAAC,SAAS,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,iBAAiB,CAG3F;AAMD;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,EAAE,mBAAmB,CAAC,EAAE,mBAAmB,GAAG,MAAM,CAQnG"}
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.validity = exports.getDescriptionSrcURL = exports.descriptionSrcURL = exports.descriptionUrlMetadataKey = exports.getPageLayoutInformation = exports.getChildId = exports.childId = exports.pageLayoutInformation = exports.syncRule = exports.metadataKeys = void 0;
|
|
4
4
|
exports.getReflectMetadata = getReflectMetadata;
|
|
5
5
|
exports.getReflectTypeMetadata = getReflectTypeMetadata;
|
|
6
|
-
exports.getValidityMetadata = getValidityMetadata;
|
|
7
6
|
exports.isViewNode = isViewNode;
|
|
8
7
|
exports.description = description;
|
|
9
8
|
exports.hide = hide;
|
|
@@ -116,20 +115,6 @@ const validity = (validity) => {
|
|
|
116
115
|
return Reflect.metadata(exports.metadataKeys.validity, validity);
|
|
117
116
|
};
|
|
118
117
|
exports.validity = validity;
|
|
119
|
-
/**
|
|
120
|
-
* Retrieves the validity metadata associated with a specific property of a target object.
|
|
121
|
-
*
|
|
122
|
-
* @param target - The object containing the property.
|
|
123
|
-
* @param propertyName - The name of the property whose validity metadata is to be retrieved.
|
|
124
|
-
* @returns The validity information of the property, or undefined if no metadata is found.
|
|
125
|
-
*/
|
|
126
|
-
function getValidityMetadata(target, propertyName) {
|
|
127
|
-
let validityInfo;
|
|
128
|
-
if (target) {
|
|
129
|
-
validityInfo = Reflect.getMetadata(exports.metadataKeys.validity, target, propertyName);
|
|
130
|
-
}
|
|
131
|
-
return validityInfo;
|
|
132
|
-
}
|
|
133
118
|
// ============================================
|
|
134
119
|
// VIEW NODE DECORATOR
|
|
135
120
|
// ============================================
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../../../../../src/sync/common/decoration/decorators.ts"],"names":[],"mappings":";;;AA0EA,gDAMC;AAQD,wDAMC;
|
|
1
|
+
{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../../../../../src/sync/common/decoration/decorators.ts"],"names":[],"mappings":";;;AA0EA,gDAMC;AAQD,wDAMC;AAsDD,gCAEC;AAYD,kCAIC;AAoND,oBAGC;AAmCD,0BAMC;AA0BD,4BAGC;AAqCD,sBAGC;AAaD,oDAQC;AAhgBD,4BAA0B;AAY1B,uDAY2B;AAE3B,+CAA+C;AAC/C,gBAAgB;AAChB,+CAA+C;AAE/C;;;GAGG;AACU,QAAA,YAAY,GAAG;IACxB,WAAW,EAAE,MAAM,CAAC,gBAAgB,CAAC;IACrC,UAAU,EAAE,MAAM,CAAC,eAAe,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC,WAAW,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC,mBAAmB,CAAC;IACrC,IAAI,EAAE,MAAM,CAAC,eAAe,CAAC;IAC7B,OAAO,EAAE,MAAM,CAAC,kBAAkB,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC,mBAAmB,CAAC;IACrC,KAAK,EAAE,MAAM,CAAC,gBAAgB,CAAC;CAClC,CAAC;AAEF;;;;;;;GAOG;AACH,SAAS,eAAe,CAAI,GAAW,EAAE,QAAgB,EAAE,WAA4B,EAAE,KAAQ;IAC7F,MAAM,QAAQ,GAAQ,OAAO,CAAC,WAAW,CAAC,GAAG,EAAE,QAAQ,EAAE,WAAW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AAC,CAAC,CAAC,GAAG,IAAI,KAAK,mBAAmB,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;IAC1G,CAAC;IAED,OAAO,IAAI,CAAC;AAChB,CAAC"}
|
|
@@ -2,4 +2,8 @@ export * from './control';
|
|
|
2
2
|
export * from './decorators';
|
|
3
3
|
export * from './flex';
|
|
4
4
|
export * from './decorator-paths';
|
|
5
|
+
export * from './interfaces';
|
|
6
|
+
export * from './condition-evaluator';
|
|
7
|
+
export * from './Decorator';
|
|
8
|
+
export * from './steps';
|
|
5
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/common/decoration/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/common/decoration/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
@@ -18,4 +18,8 @@ __exportStar(require("./control"), exports);
|
|
|
18
18
|
__exportStar(require("./decorators"), exports);
|
|
19
19
|
__exportStar(require("./flex"), exports);
|
|
20
20
|
__exportStar(require("./decorator-paths"), exports);
|
|
21
|
+
__exportStar(require("./interfaces"), exports);
|
|
22
|
+
__exportStar(require("./condition-evaluator"), exports);
|
|
23
|
+
__exportStar(require("./Decorator"), exports);
|
|
24
|
+
__exportStar(require("./steps"), exports);
|
|
21
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sync/common/decoration/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,+CAA6B;AAC7B,yCAAuB;AACvB,oDAAkC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/sync/common/decoration/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,+CAA6B;AAC7B,yCAAuB;AACvB,oDAAkC;AAClC,+CAA6B;AAC7B,wDAAsC;AACtC,8CAA4B;AAC5B,0CAAwB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Definition } from 'typescript-json-schema';
|
|
2
|
+
import type { ExtensionLogger } from '@sap/ux-specification-types';
|
|
3
|
+
import type { App, AppSchema, Page } from '../../v4/sync-rules';
|
|
4
|
+
/**
|
|
5
|
+
* Combined context passed to Decorator and each DecoratorStep.
|
|
6
|
+
* Uses interfaces compatible with App and Page classes from sync-rules.
|
|
7
|
+
*/
|
|
8
|
+
export interface DecoratorContext {
|
|
9
|
+
/** App-level context (has config, getMinUI5Version) */
|
|
10
|
+
app?: App;
|
|
11
|
+
/** Page-level context (has config, target) */
|
|
12
|
+
page?: Page;
|
|
13
|
+
/** Custom context (e.g., table state, section state) */
|
|
14
|
+
custom?: Record<string, unknown>;
|
|
15
|
+
/** Schema context for definition lookup */
|
|
16
|
+
schema: AppSchema;
|
|
17
|
+
/** Logger for debugging and error reporting */
|
|
18
|
+
logger?: ExtensionLogger;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Interface for decorator processing steps.
|
|
22
|
+
* Each step handles a specific type of decorator metadata.
|
|
23
|
+
*
|
|
24
|
+
* Steps are executed in order: enums -> message -> hide
|
|
25
|
+
*/
|
|
26
|
+
export interface DecoratorStep {
|
|
27
|
+
/** Unique name for the step (used for disabling via options) */
|
|
28
|
+
readonly name: string;
|
|
29
|
+
/**
|
|
30
|
+
* Initialize this step's decorator logic for the schema definition.
|
|
31
|
+
*
|
|
32
|
+
* @param target - The class prototype containing decorator metadata
|
|
33
|
+
* @param definition - The schema definition to modify
|
|
34
|
+
* @param context - context for condition evaluation
|
|
35
|
+
*/
|
|
36
|
+
init(target: object, definition: Definition, context: DecoratorContext): void;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/common/decoration/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAEhE;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC7B,uDAAuD;IACvD,GAAG,CAAC,EAAE,GAAG,CAAC;IACV,8CAA8C;IAC9C,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,wDAAwD;IACxD,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,2CAA2C;IAC3C,MAAM,EAAE,SAAS,CAAC;IAClB,+CAA+C;IAC/C,MAAM,CAAC,EAAE,eAAe,CAAC;CAC5B;AAED;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC1B,gEAAgE;IAChE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAEtB;;;;;;OAMG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,gBAAgB,GAAG,IAAI,CAAC;CACjF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../../src/sync/common/decoration/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Definition } from 'typescript-json-schema';
|
|
2
|
+
import type { DecoratorStep, DecoratorContext } from '../interfaces';
|
|
3
|
+
/**
|
|
4
|
+
* Enums step - filters enum values based on conditions.
|
|
5
|
+
* If multiple @enums decorators exist on the same property, the first matching condition wins.
|
|
6
|
+
*/
|
|
7
|
+
export declare class Enums implements DecoratorStep {
|
|
8
|
+
readonly name = "enums";
|
|
9
|
+
/**
|
|
10
|
+
* Applies enum filtering to all properties in the definition.
|
|
11
|
+
*
|
|
12
|
+
* @param target - The class prototype containing decorator metadata
|
|
13
|
+
* @param definition - The schema definition to modify
|
|
14
|
+
* @param context - Runtime context for condition evaluation
|
|
15
|
+
*/
|
|
16
|
+
init(target: object, definition: Definition, context: DecoratorContext): void;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=Enums.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Enums.d.ts","sourceRoot":"","sources":["../../../../../../../src/sync/common/decoration/steps/Enums.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAKrE;;;GAGG;AACH,qBAAa,KAAM,YAAW,aAAa;IACvC,QAAQ,CAAC,IAAI,WAAW;IAExB;;;;;;OAMG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,gBAAgB,GAAG,IAAI;CA+BhF"}
|