@sap/ux-specification 1.136.9 → 1.136.11
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 +52 -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 +437 -135
- package/dist/index-min.js.map +4 -4
- package/dist/schemas/v4/BuildingBlocksConfig.json +325 -8
- package/dist/schemas/v4/ListReportConfig.json +93 -0
- package/dist/schemas/v4/ObjectPageConfig.json +70 -3
- package/dist/specification/package.json +10 -7
- package/dist/specification/src/api.d.ts +1 -0
- package/dist/specification/src/api.d.ts.map +1 -1
- package/dist/specification/src/api.js +6 -3
- package/dist/specification/src/api.js.map +1 -1
- package/dist/specification/src/ftfs/annotations.d.ts +12 -0
- package/dist/specification/src/ftfs/annotations.d.ts.map +1 -0
- package/dist/specification/src/ftfs/annotations.js +50 -0
- package/dist/specification/src/ftfs/annotations.js.map +1 -0
- package/dist/specification/src/ftfs/ftfs.d.ts +9 -0
- package/dist/specification/src/ftfs/ftfs.d.ts.map +1 -0
- package/dist/specification/src/ftfs/ftfs.js +49 -0
- package/dist/specification/src/ftfs/ftfs.js.map +1 -0
- package/dist/specification/src/ftfs/index.d.ts +2 -0
- package/dist/specification/src/ftfs/index.d.ts.map +1 -0
- package/dist/specification/src/ftfs/index.js +6 -0
- package/dist/specification/src/ftfs/index.js.map +1 -0
- package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.d.ts +75 -0
- package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.d.ts.map +1 -0
- package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.js +70 -0
- package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.js.map +1 -0
- package/dist/specification/src/sync/common/dist_tag.json +19 -4
- package/dist/specification/src/sync/common/generate/utils.d.ts +5 -3
- package/dist/specification/src/sync/common/generate/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/generate/utils.js +7 -4
- package/dist/specification/src/sync/common/generate/utils.js.map +1 -1
- package/dist/specification/src/sync/common/i18n.json +5 -1
- package/dist/specification/src/sync/common/index.d.ts +1 -0
- package/dist/specification/src/sync/common/index.d.ts.map +1 -1
- package/dist/specification/src/sync/common/index.js +1 -0
- package/dist/specification/src/sync/common/index.js.map +1 -1
- package/dist/specification/src/sync/common/rules.d.ts +6 -0
- package/dist/specification/src/sync/common/rules.d.ts.map +1 -0
- package/dist/specification/src/sync/common/rules.js +126 -0
- package/dist/specification/src/sync/common/rules.js.map +1 -0
- package/dist/specification/src/sync/v4/application.d.ts +23 -0
- package/dist/specification/src/sync/v4/application.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/application.js +39 -2
- package/dist/specification/src/sync/v4/application.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Field.d.ts +17 -0
- package/dist/specification/src/sync/v4/export/controls/Field.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/export/controls/Field.js +74 -0
- package/dist/specification/src/sync/v4/export/controls/Field.js.map +1 -0
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.d.ts +4 -10
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.js +61 -121
- package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Table.d.ts +63 -1
- package/dist/specification/src/sync/v4/export/controls/Table.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Table.js +220 -2
- package/dist/specification/src/sync/v4/export/controls/Table.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/index.d.ts +1 -0
- package/dist/specification/src/sync/v4/export/controls/index.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/index.js +1 -0
- package/dist/specification/src/sync/v4/export/controls/index.js.map +1 -1
- package/dist/specification/src/sync/v4/export/export.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/export.js +18 -2
- package/dist/specification/src/sync/v4/export/export.js.map +1 -1
- package/dist/specification/src/sync/v4/export/fpmCustomPage.d.ts +10 -0
- package/dist/specification/src/sync/v4/export/fpmCustomPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/fpmCustomPage.js +55 -6
- package/dist/specification/src/sync/v4/export/fpmCustomPage.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/listReport.d.ts +12 -1
- package/dist/specification/src/sync/v4/generate/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/listReport.js +183 -40
- package/dist/specification/src/sync/v4/generate/listReport.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/objectPage.js +55 -11
- 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 +61 -10
- package/dist/specification/src/sync/v4/import/pages/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v4/utils/macros.d.ts +12 -4
- package/dist/specification/src/sync/v4/utils/macros.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/utils/macros.js +23 -8
- package/dist/specification/src/sync/v4/utils/macros.js.map +1 -1
- package/dist/specification/src/sync/v4/utils/utils.d.ts +35 -13
- package/dist/specification/src/sync/v4/utils/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/utils/utils.js +108 -37
- package/dist/specification/src/sync/v4/utils/utils.js.map +1 -1
- package/dist/types/src/apiTypes.d.ts +34 -3
- 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 +24 -3
- package/dist/types/src/common/types.d.ts.map +1 -1
- package/dist/types/src/common/types.js +23 -1
- package/dist/types/src/common/types.js.map +1 -1
- package/dist/types/src/v4/controls/CustomField.d.ts +45 -0
- package/dist/types/src/v4/controls/CustomField.d.ts.map +1 -0
- package/dist/types/src/v4/controls/CustomField.js +9 -0
- package/dist/types/src/v4/controls/CustomField.js.map +1 -0
- package/dist/types/src/v4/controls/ObjectPageForm.d.ts +2 -1
- package/dist/types/src/v4/controls/ObjectPageForm.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageTable.d.ts +4 -1
- package/dist/types/src/v4/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageTable.js.map +1 -1
- package/dist/types/src/v4/controls/Table.d.ts +61 -3
- package/dist/types/src/v4/controls/Table.d.ts.map +1 -1
- package/dist/types/src/v4/controls/Table.js.map +1 -1
- package/dist/types/src/v4/controls/index.d.ts +1 -0
- package/dist/types/src/v4/controls/index.d.ts.map +1 -1
- package/dist/types/src/v4/controls/index.js +1 -0
- package/dist/types/src/v4/controls/index.js.map +1 -1
- package/dist/types/src/v4/webapp/manifest/sapUiPageV4.d.ts +1 -0
- package/dist/types/src/v4/webapp/manifest/sapUiPageV4.d.ts.map +1 -1
- package/dist/types/src/v4/webapp/manifest/sapUiPageV4.js.map +1 -1
- package/package.json +10 -7
|
@@ -595,6 +595,10 @@
|
|
|
595
595
|
"const": "AnalyticalTable",
|
|
596
596
|
"artifactType": "Manifest"
|
|
597
597
|
},
|
|
598
|
+
"analyticalConfiguration": {
|
|
599
|
+
"$ref": "#/definitions/ObjectPageAnalyticalConfiguration",
|
|
600
|
+
"artifactType": "Manifest"
|
|
601
|
+
},
|
|
598
602
|
"enableFullScreen": {
|
|
599
603
|
"description": "Enables full screen mode for this table. This adds a button to the table toolbar which opens the table in a full screen dialog.",
|
|
600
604
|
"type": "boolean",
|
|
@@ -719,6 +723,18 @@
|
|
|
719
723
|
},
|
|
720
724
|
"additionalProperties": false
|
|
721
725
|
},
|
|
726
|
+
"ObjectPageAnalyticalConfiguration": {
|
|
727
|
+
"type": "object",
|
|
728
|
+
"properties": {
|
|
729
|
+
"aggregationOnLeafLevel": {
|
|
730
|
+
"description": "When set to true, aggregation is based only on visible columns.",
|
|
731
|
+
"artifactType": "Manifest",
|
|
732
|
+
"descriptionSrcURL": "https://ui5.sap.com/1.136.0/#/topic/7f844f1021cd4791b8f7408eac7c1cec",
|
|
733
|
+
"type": "boolean"
|
|
734
|
+
}
|
|
735
|
+
},
|
|
736
|
+
"additionalProperties": false
|
|
737
|
+
},
|
|
722
738
|
"ObjectPageToolBar": {
|
|
723
739
|
"description": "Toolbar",
|
|
724
740
|
"isViewNode": true,
|
|
@@ -1799,11 +1815,62 @@
|
|
|
1799
1815
|
"ObjectPageFormFields": {
|
|
1800
1816
|
"type": "object",
|
|
1801
1817
|
"additionalProperties": {
|
|
1802
|
-
"
|
|
1803
|
-
"properties": {},
|
|
1804
|
-
"additionalProperties": true
|
|
1818
|
+
"$ref": "#/definitions/CustomField"
|
|
1805
1819
|
}
|
|
1806
1820
|
},
|
|
1821
|
+
"CustomField": {
|
|
1822
|
+
"description": "Custom Field",
|
|
1823
|
+
"isViewNode": true,
|
|
1824
|
+
"type": "object",
|
|
1825
|
+
"properties": {
|
|
1826
|
+
"label": {
|
|
1827
|
+
"description": "The label is shown on the form as the label of the field.",
|
|
1828
|
+
"i18nClassification": "COL: Custom field label",
|
|
1829
|
+
"artifactType": "Manifest",
|
|
1830
|
+
"type": "string"
|
|
1831
|
+
},
|
|
1832
|
+
"position": {
|
|
1833
|
+
"$ref": "#/definitions/CustomFieldPosition",
|
|
1834
|
+
"description": "Defines the position of the field relative to other fields.",
|
|
1835
|
+
"artifactType": "Manifest"
|
|
1836
|
+
},
|
|
1837
|
+
"template": {
|
|
1838
|
+
"description": "Defines a target fragment.",
|
|
1839
|
+
"artifactType": "Manifest",
|
|
1840
|
+
"type": "string"
|
|
1841
|
+
}
|
|
1842
|
+
},
|
|
1843
|
+
"additionalProperties": false,
|
|
1844
|
+
"required": [
|
|
1845
|
+
"template"
|
|
1846
|
+
]
|
|
1847
|
+
},
|
|
1848
|
+
"CustomFieldPosition": {
|
|
1849
|
+
"type": "object",
|
|
1850
|
+
"properties": {
|
|
1851
|
+
"anchor": {
|
|
1852
|
+
"description": "The key of another field to be used as placement anchor.",
|
|
1853
|
+
"artifactType": "Manifest",
|
|
1854
|
+
"type": "string"
|
|
1855
|
+
},
|
|
1856
|
+
"placement": {
|
|
1857
|
+
"$ref": "#/definitions/FieldPlacement",
|
|
1858
|
+
"description": "Define the placement, either before or after the anchor field.",
|
|
1859
|
+
"artifactType": "Manifest"
|
|
1860
|
+
}
|
|
1861
|
+
},
|
|
1862
|
+
"additionalProperties": false,
|
|
1863
|
+
"required": [
|
|
1864
|
+
"placement"
|
|
1865
|
+
]
|
|
1866
|
+
},
|
|
1867
|
+
"FieldPlacement": {
|
|
1868
|
+
"enum": [
|
|
1869
|
+
"After",
|
|
1870
|
+
"Before"
|
|
1871
|
+
],
|
|
1872
|
+
"type": "string"
|
|
1873
|
+
},
|
|
1807
1874
|
"ObjectPageFormActions": {
|
|
1808
1875
|
"type": "object",
|
|
1809
1876
|
"additionalProperties": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/ux-specification",
|
|
3
|
-
"version": "1.136.
|
|
3
|
+
"version": "1.136.11",
|
|
4
4
|
"displayName": "SAP Fiori tools - Specification",
|
|
5
5
|
"description": "SAP Fiori tools - Specification",
|
|
6
6
|
"files": [
|
|
@@ -49,30 +49,33 @@
|
|
|
49
49
|
"publisher": "SAPSE",
|
|
50
50
|
"license": "SEE LICENSE IN LICENSE",
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@sap-ux/fe-fpm-writer": "0.39.
|
|
52
|
+
"@sap-ux/fe-fpm-writer": "0.39.18",
|
|
53
53
|
"@sap-ux/vocabularies-types": "0.13.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@sap-ux/annotation-converter": "0.10.
|
|
56
|
+
"@sap-ux/annotation-converter": "0.10.7",
|
|
57
57
|
"@sap-ux/edmx-parser": "0.9.6",
|
|
58
|
-
"@sap/
|
|
58
|
+
"@sap-ux/project-access": "1.32.8",
|
|
59
|
+
"@sap/ux-specification-types": "1.136.11",
|
|
59
60
|
"@sapui5/types": "latest-1.136",
|
|
60
61
|
"@types/d3": "7.4.3",
|
|
61
62
|
"@types/jquery": "3.5.32",
|
|
62
|
-
"@types/mem-fs
|
|
63
|
+
"@types/mem-fs": "1.1.2",
|
|
64
|
+
"@types/mem-fs-editor": "7.0.1",
|
|
63
65
|
"@ui5/flexibility-utils": "0.1.3",
|
|
64
66
|
"@xml-tools/ast": "5.0.5",
|
|
65
67
|
"@xml-tools/parser": "1.0.11",
|
|
66
|
-
"axios": "1.
|
|
68
|
+
"axios": "1.13.2",
|
|
67
69
|
"copyfiles": "2.4.1",
|
|
68
70
|
"d3": "7.9.0",
|
|
69
71
|
"deepmerge": "4.3.1",
|
|
70
72
|
"ejs": "3.1.10",
|
|
71
73
|
"excel4node": "1.8.2",
|
|
72
|
-
"i18next": "25.6.
|
|
74
|
+
"i18next": "25.6.2",
|
|
73
75
|
"jquery": "3.7.1",
|
|
74
76
|
"jsdom": "25.0.1",
|
|
75
77
|
"lodash.unset": "4.5.2",
|
|
78
|
+
"mem-fs": "2.1.0",
|
|
76
79
|
"mem-fs-editor": "9.7.0",
|
|
77
80
|
"path": "0.12.7",
|
|
78
81
|
"reflect-metadata": "0.2.2",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ExportResults, File, GenerateSchemaParameters, ExportConfigParameters, ImportConfigParameters, ImportProjectParameters, ApiVersion, GenerateCustomExtensionParams, ExportConfigWithPath } from '@sap/ux-specification-types';
|
|
2
2
|
import type { Editor } from 'mem-fs-editor';
|
|
3
3
|
import { PromptsAPI, PromptsType } from '@sap-ux/fe-fpm-writer';
|
|
4
|
+
export { readApp } from './ftfs';
|
|
4
5
|
/**
|
|
5
6
|
* Return the generic (project independent) JSON schema.
|
|
6
7
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/api.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAER,aAAa,EACb,IAAI,EACJ,wBAAwB,EACxB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,UAAU,EAEV,6BAA6B,EAC7B,oBAAoB,EACvB,MAAM,6BAA6B,CAAC;AA2BrC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAaH,UAAU,EACV,WAAW,
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/api.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAER,aAAa,EACb,IAAI,EACJ,wBAAwB,EACxB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,UAAU,EAEV,6BAA6B,EAC7B,oBAAoB,EACvB,MAAM,6BAA6B,CAAC;AA2BrC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAaH,UAAU,EACV,WAAW,EAEd,MAAM,uBAAuB,CAAC;AAqB/B,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AAEjC;;;;;;;GAOG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,OAAO;;;CAGnB,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,kBAAkB,EAAE,wBAAwB,GAAG,MAAM,CA2GnF;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,gBAAgB,EAAE,sBAAsB,GAAG,aAAa,CAiBpF;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,gBAAgB,EAAE,oBAAoB,GAAG,aAAa,CAkB9F;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,gBAAgB,EAAE,oBAAoB,GAAG,aAAa,CAkB9F;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,gBAAgB,EAAE,sBAAsB,GAAG,MAAM,GAAG,SAAS,CAgCzF;AAED;;;;;GAKG;AACH,wBAAsB,aAAa,CAAC,gBAAgB,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC,CAE9F;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CAAC,gBAAgB,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC,CAEpG;AAED;;;;GAIG;AACH,wBAAgB,aAAa,IAAI,UAAU,CAM1C;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACnC,qBAAqB,EAAE,6BAA6B,GACrD,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAY7B"}
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.prompts = exports.getGenericSchema = void 0;
|
|
6
|
+
exports.prompts = exports.getGenericSchema = exports.readApp = void 0;
|
|
7
7
|
exports.generateSchema = generateSchema;
|
|
8
8
|
exports.exportConfig = exportConfig;
|
|
9
9
|
exports.exportConfigEntityByPath = exportConfigEntityByPath;
|
|
@@ -38,8 +38,11 @@ const fpmWriterMap = new Map([
|
|
|
38
38
|
[ux_specification_types_1.CustomExtensionType.ControllerExtension, fe_fpm_writer_1.generateControllerExtension],
|
|
39
39
|
[ux_specification_types_1.CustomExtensionType.CustomSubSection, fe_fpm_writer_1.generateCustomSubSection],
|
|
40
40
|
[ux_specification_types_1.CustomExtensionType.CustomFilterField, fe_fpm_writer_1.generateCustomFilter],
|
|
41
|
-
[ux_specification_types_1.CustomExtensionType.CustomHeaderSection, fe_fpm_writer_1.generateCustomHeaderSection]
|
|
41
|
+
[ux_specification_types_1.CustomExtensionType.CustomHeaderSection, fe_fpm_writer_1.generateCustomHeaderSection],
|
|
42
|
+
[ux_specification_types_1.CustomExtensionType.CustomField, fe_fpm_writer_1.generateCustomField]
|
|
42
43
|
]);
|
|
44
|
+
var ftfs_1 = require("./ftfs");
|
|
45
|
+
Object.defineProperty(exports, "readApp", { enumerable: true, get: function () { return ftfs_1.readApp; } });
|
|
43
46
|
/**
|
|
44
47
|
* Return the generic (project independent) JSON schema.
|
|
45
48
|
*
|
|
@@ -263,7 +266,7 @@ async function importProjectSchema(importParameters) {
|
|
|
263
266
|
function getApiVersion() {
|
|
264
267
|
return {
|
|
265
268
|
version: '23',
|
|
266
|
-
fpmWriter: '
|
|
269
|
+
fpmWriter: '34',
|
|
267
270
|
moduleVersion: package_json_1.default.version
|
|
268
271
|
};
|
|
269
272
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/api.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/api.ts"],"names":[],"mappings":";;;;;;AAiHA,wCA2GC;AAQD,oCAiBC;AAQD,4DAkBC;AAQD,4DAkBC;AAQD,oCAgCC;AAQD,sCAEC;AAQD,kDAEC;AAOD,sCAMC;AAQD,0DAcC;AAxYD;;GAEG;AACH,wEAMqC;AAcrC,iDAK4B;AAC5B,iDAK4B;AAC5B,4DAAuF;AACvF,6CAI0B;AAC1B,iFAAsH,CAAC,kIAA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,CAAC,CAAC;AACrD,CAAC;AAED;;;;GAIG;AACH,SAAgB,aAAa;IACzB,OAAO;QACH,OAAO,EAAE,IAAI;QACb,SAAS,EAAE,IAAI;QACf,aAAa,EAAE,sBAAW,CAAC,OAAO;KACrC,CAAC;AACN,CAAC;AAED;;;;;GAKG;AACH,SAAgB,uBAAuB,CACnC,qBAAoD;IAEpD,MAAM,iBAAiB,GAAG,YAAY,CAAC,GAAG,CAAC,qBAAqB,CAAC,eAAe,CAAC,CAAC;IAClF,IAAI,iBAAiB,IAAI,OAAO,iBAAiB,KAAK,UAAU,EAAE,CAAC;QAC/D,IAAA,yBAAS,EAAC,qBAAqB,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QAC9C,OAAO,iBAAiB,CACpB,qBAAqB,CAAC,QAAQ,EAC9B,qBAAqB,CAAC,IAAI,EAC1B,qBAAqB,CAAC,QAAQ,CACjC,CAAC;IACN,CAAC;SAAM,CAAC;QACJ,OAAO;IACX,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ApplicationAccess } from '@sap-ux/project-access';
|
|
2
|
+
import type { FileData } from '@sap/ux-specification-types';
|
|
3
|
+
import type { Editor } from 'mem-fs-editor';
|
|
4
|
+
/**
|
|
5
|
+
* Reads annotation files for the application.
|
|
6
|
+
*
|
|
7
|
+
* @param appAccess - The application access object
|
|
8
|
+
* @param fs - The file system or editor interface used to read file contents.
|
|
9
|
+
* @returns A promise that resolves to an array of FileData objects
|
|
10
|
+
*/
|
|
11
|
+
export declare function readAnnotationFiles(appAccess: ApplicationAccess, fs: Editor): Promise<FileData[]>;
|
|
12
|
+
//# sourceMappingURL=annotations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"annotations.d.ts","sourceRoot":"","sources":["../../../../src/ftfs/annotations.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAC5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C;;;;;;GAMG;AACH,wBAAsB,mBAAmB,CAAC,SAAS,EAAE,iBAAiB,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,EAAE,CAAC,CAoCvG"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.readAnnotationFiles = readAnnotationFiles;
|
|
4
|
+
const project_access_1 = require("@sap-ux/project-access");
|
|
5
|
+
/**
|
|
6
|
+
* Reads annotation files for the application.
|
|
7
|
+
*
|
|
8
|
+
* @param appAccess - The application access object
|
|
9
|
+
* @param fs - The file system or editor interface used to read file contents.
|
|
10
|
+
* @returns A promise that resolves to an array of FileData objects
|
|
11
|
+
*/
|
|
12
|
+
async function readAnnotationFiles(appAccess, fs) {
|
|
13
|
+
const annotationData = [];
|
|
14
|
+
const mainServiceName = appAccess.app.mainService ?? 'mainService';
|
|
15
|
+
const mainService = appAccess.app?.services?.[mainServiceName];
|
|
16
|
+
if (!mainService) {
|
|
17
|
+
return [];
|
|
18
|
+
}
|
|
19
|
+
if (mainService.uri && (appAccess.projectType === 'CAPJava' || appAccess.projectType === 'CAPNodejs')) {
|
|
20
|
+
const serviceUri = mainService?.uri ?? '';
|
|
21
|
+
if (serviceUri) {
|
|
22
|
+
const edmx = await (0, project_access_1.readCapServiceMetadataEdmx)(appAccess.root, serviceUri);
|
|
23
|
+
annotationData.push({
|
|
24
|
+
fileContent: edmx,
|
|
25
|
+
dataSourceUri: serviceUri
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
if (mainService.local) {
|
|
31
|
+
const serviceFile = fs.read(mainService.local);
|
|
32
|
+
annotationData.push({
|
|
33
|
+
dataSourceUri: mainService.local,
|
|
34
|
+
fileContent: serviceFile.toString()
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
const { annotations = [] } = mainService;
|
|
38
|
+
for (const annotation of annotations) {
|
|
39
|
+
if (annotation.local) {
|
|
40
|
+
const annotationFile = fs.read(annotation.local);
|
|
41
|
+
annotationData.push({
|
|
42
|
+
dataSourceUri: annotation.local,
|
|
43
|
+
fileContent: annotationFile.toString()
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return annotationData;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=annotations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"annotations.js","sourceRoot":"","sources":["../../../../src/ftfs/annotations.ts"],"names":[],"mappings":";;AAYA,kDAoCC;AAhDD,2DAAoE;AAKpE;;;;;;GAMG;AACI,KAAK,UAAU,mBAAmB,CAAC,SAA4B,EAAE,EAAU;IAC9E,MAAM,cAAc,GAAe,EAAE,CAAC;IACtC,MAAM,eAAe,GAAG,SAAS,CAAC,GAAG,CAAC,WAAW,IAAI,aAAa,CAAC;IACnE,MAAM,WAAW,GAAG,SAAS,CAAC,GAAG,EAAE,QAAQ,EAAE,CAAC,eAAe,CAAC,CAAC;IAC/D,IAAI,CAAC,WAAW,EAAE,CAAC;QACf,OAAO,EAAE,CAAC;IACd,CAAC;IACD,IAAI,WAAW,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,WAAW,KAAK,SAAS,IAAI,SAAS,CAAC,WAAW,KAAK,WAAW,CAAC,EAAE,CAAC;QACpG,MAAM,UAAU,GAAG,WAAW,EAAE,GAAG,IAAI,EAAE,CAAC;QAC1C,IAAI,UAAU,EAAE,CAAC;YACb,MAAM,IAAI,GAAG,MAAM,IAAA,2CAA0B,EAAC,SAAS,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;YAC1E,cAAc,CAAC,IAAI,CAAC;gBAChB,WAAW,EAAE,IAAI;gBACjB,aAAa,EAAE,UAAU;aAC5B,CAAC,CAAC;QACP,CAAC;IACL,CAAC;SAAM,CAAC;QACJ,IAAI,WAAW,CAAC,KAAK,EAAE,CAAC;YACpB,MAAM,WAAW,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YAC/C,cAAc,CAAC,IAAI,CAAC;gBAChB,aAAa,EAAE,WAAW,CAAC,KAAK;gBAChC,WAAW,EAAE,WAAW,CAAC,QAAQ,EAAE;aACtC,CAAC,CAAC;QACP,CAAC;QACD,MAAM,EAAE,WAAW,GAAG,EAAE,EAAE,GAAG,WAAW,CAAC;QACzC,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE,CAAC;YACnC,IAAI,UAAU,CAAC,KAAK,EAAE,CAAC;gBACnB,MAAM,cAAc,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;gBACjD,cAAc,CAAC,IAAI,CAAC;oBAChB,aAAa,EAAE,UAAU,CAAC,KAAK;oBAC/B,WAAW,EAAE,cAAc,CAAC,QAAQ,EAAE;iBACzC,CAAC,CAAC;YACP,CAAC;QACL,CAAC;IACL,CAAC;IACD,OAAO,cAAc,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ReadAppParams, ReadAppResult } from '@sap/ux-specification-types';
|
|
2
|
+
/**
|
|
3
|
+
* Reads virtual files for a project located at the given application path.
|
|
4
|
+
*
|
|
5
|
+
* @param options - Parameters for application read.
|
|
6
|
+
* @returns {Promise<ReadAppResult>} A promise that resolves to a ReadAppResult object containing an array of virtual `File` objects.
|
|
7
|
+
*/
|
|
8
|
+
export declare function readApp(options: ReadAppParams): Promise<ReadAppResult>;
|
|
9
|
+
//# sourceMappingURL=ftfs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ftfs.d.ts","sourceRoot":"","sources":["../../../../src/ftfs/ftfs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,aAAa,EAAE,aAAa,EAAY,MAAM,6BAA6B,CAAC;AAqBhG;;;;;GAKG;AACH,wBAAsB,OAAO,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAuB5E"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.readApp = readApp;
|
|
4
|
+
const project_access_1 = require("@sap-ux/project-access");
|
|
5
|
+
const mem_fs_1 = require("mem-fs");
|
|
6
|
+
const mem_fs_editor_1 = require("mem-fs-editor");
|
|
7
|
+
const annotations_1 = require("./annotations");
|
|
8
|
+
const api_1 = require("../api");
|
|
9
|
+
// Retrieve API version
|
|
10
|
+
const ApiVersion = (0, api_1.getApiVersion)();
|
|
11
|
+
/**
|
|
12
|
+
* Returns a mem-fs editor instance. If an instance is not provided, a new one is created.
|
|
13
|
+
*
|
|
14
|
+
* @param {Editor} [fs] - An optional mem-fs editor instance.
|
|
15
|
+
* @returns {Editor} - The mem-fs editor instance.
|
|
16
|
+
*/
|
|
17
|
+
function getFsInstance(fs) {
|
|
18
|
+
return fs ?? (0, mem_fs_editor_1.create)((0, mem_fs_1.create)());
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Reads virtual files for a project located at the given application path.
|
|
22
|
+
*
|
|
23
|
+
* @param options - Parameters for application read.
|
|
24
|
+
* @returns {Promise<ReadAppResult>} A promise that resolves to a ReadAppResult object containing an array of virtual `File` objects.
|
|
25
|
+
*/
|
|
26
|
+
async function readApp(options) {
|
|
27
|
+
const memFs = getFsInstance(options.fs);
|
|
28
|
+
// Reuse app access or create new instance
|
|
29
|
+
const appAccess = typeof options.app === 'string' ? await (0, project_access_1.createApplicationAccess)(options.app, memFs) : options.app;
|
|
30
|
+
let files = [];
|
|
31
|
+
const manifest = memFs.readJSON(appAccess.app.manifest);
|
|
32
|
+
if (manifest) {
|
|
33
|
+
const annotationData = await (0, annotations_1.readAnnotationFiles)(appAccess, memFs);
|
|
34
|
+
const changeFiles = await (0, project_access_1.readFlexChanges)(appAccess.app.changes, memFs);
|
|
35
|
+
// Import project using specification API
|
|
36
|
+
files = await (0, api_1.importProject)({
|
|
37
|
+
manifest: manifest,
|
|
38
|
+
annotations: annotationData,
|
|
39
|
+
flex: Object.values(changeFiles),
|
|
40
|
+
logger: options.logger
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
files,
|
|
45
|
+
appAccess,
|
|
46
|
+
version: ApiVersion
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=ftfs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ftfs.js","sourceRoot":"","sources":["../../../../src/ftfs/ftfs.ts"],"names":[],"mappings":";;AA2BA,0BAuBC;AAjDD,2DAAkF;AAClF,mCAAiD;AACjD,iDAAuC;AAEvC,+CAAoD;AACpD,gCAAsD;AAEtD,uBAAuB;AACvB,MAAM,UAAU,GAAG,IAAA,mBAAa,GAAE,CAAC;AAEnC;;;;;GAKG;AACH,SAAS,aAAa,CAAC,EAAW;IAC9B,OAAO,EAAE,IAAI,IAAA,sBAAM,EAAC,IAAA,eAAa,GAAE,CAAC,CAAC;AACzC,CAAC;AAED;;;;;GAKG;AACI,KAAK,UAAU,OAAO,CAAC,OAAsB;IAChD,MAAM,KAAK,GAAG,aAAa,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IACxC,0CAA0C;IAC1C,MAAM,SAAS,GAAG,OAAO,OAAO,CAAC,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,IAAA,wCAAuB,EAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC;IACpH,IAAI,KAAK,GAAW,EAAE,CAAC;IACvB,MAAM,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAwB,CAAC;IAC/E,IAAI,QAAQ,EAAE,CAAC;QACX,MAAM,cAAc,GAAG,MAAM,IAAA,iCAAmB,EAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QACnE,MAAM,WAAW,GAAG,MAAM,IAAA,gCAAe,EAAC,SAAS,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;QACxE,yCAAyC;QACzC,KAAK,GAAG,MAAM,IAAA,mBAAa,EAAC;YACxB,QAAQ,EAAE,QAAQ;YAClB,WAAW,EAAE,cAAc;YAC3B,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC;YAChC,MAAM,EAAE,OAAO,CAAC,MAAM;SACzB,CAAC,CAAC;IACP,CAAC;IAED,OAAO;QACH,KAAK;QACL,SAAS;QACT,OAAO,EAAE,UAAU;KACtB,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/ftfs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.readApp = void 0;
|
|
4
|
+
var ftfs_1 = require("./ftfs");
|
|
5
|
+
Object.defineProperty(exports, "readApp", { enumerable: true, get: function () { return ftfs_1.readApp; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ftfs/index.ts"],"names":[],"mappings":";;;AAAA,+BAAiC;AAAxB,+FAAA,OAAO,OAAA"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import type { Definition } from 'typescript-json-schema';
|
|
2
|
+
import type { ExtensionLogger, v4, RuleName } from '@sap/ux-specification-types';
|
|
3
|
+
export interface RuleContext {
|
|
4
|
+
page?: v4.SapUiAppPageV4;
|
|
5
|
+
schema?: Definition;
|
|
6
|
+
logger?: ExtensionLogger;
|
|
7
|
+
parameters?: Record<string, unknown>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Named schema rule that can check applicability and adapt the schema.
|
|
11
|
+
*/
|
|
12
|
+
export interface NamedRule {
|
|
13
|
+
name: RuleName;
|
|
14
|
+
/**
|
|
15
|
+
* Determines whether the rule should be executed for the current context.
|
|
16
|
+
*
|
|
17
|
+
* @param {RuleContext} context - The context against which the match is evaluated.
|
|
18
|
+
* @returns {boolean} True if the context meets the required conditions; otherwise, false.
|
|
19
|
+
*/
|
|
20
|
+
match(context: RuleContext): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Performs the schema adaptation.
|
|
23
|
+
*
|
|
24
|
+
* @param {RuleContext} context - The context object containing the details and state required for processing.
|
|
25
|
+
* @returns {void} This method does not return a value.
|
|
26
|
+
*/
|
|
27
|
+
process(context: RuleContext): void;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Registry for schema processing rules.
|
|
31
|
+
* Stores and resolves rules by name for later execution by the processor.
|
|
32
|
+
*/
|
|
33
|
+
declare class ManifestDrivenRuleRegistry {
|
|
34
|
+
private rules;
|
|
35
|
+
/**
|
|
36
|
+
* Registers a new rule by adding it to the collection of rules.
|
|
37
|
+
*
|
|
38
|
+
* @param {NamedRule} rule - The rule to register, including its name and associated functionality.
|
|
39
|
+
* @returns {void}
|
|
40
|
+
*/
|
|
41
|
+
register(rule: NamedRule): void;
|
|
42
|
+
/**
|
|
43
|
+
* Retrieves a named rule from the collection of rules.
|
|
44
|
+
*
|
|
45
|
+
* @param {RuleName} name - The name of the rule to retrieve.
|
|
46
|
+
* @returns {NamedRule | undefined} The corresponding named rule if it exists, or undefined if it does not.
|
|
47
|
+
*/
|
|
48
|
+
get(name: RuleName): NamedRule | undefined;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Applies schema adaptation rules driven by manifest settings.
|
|
52
|
+
* Given a rule name, page context, and schema, it executes the matching rule(s)
|
|
53
|
+
* and mutates the schema accordingly
|
|
54
|
+
*/
|
|
55
|
+
declare class ManifestDrivenSchemaProcessor {
|
|
56
|
+
private registry;
|
|
57
|
+
/**
|
|
58
|
+
* Constructs an instance of the class.
|
|
59
|
+
*
|
|
60
|
+
* @param {ManifestDrivenRuleRegistry} registry - The registry containing the manifest-driven rules.
|
|
61
|
+
* @returns {void}
|
|
62
|
+
*/
|
|
63
|
+
constructor(registry: ManifestDrivenRuleRegistry);
|
|
64
|
+
/**
|
|
65
|
+
* Applies a specific rule from the registry to the given context.
|
|
66
|
+
*
|
|
67
|
+
* @param {RuleName} ruleName - The name of the rule to be applied.
|
|
68
|
+
* @param {RuleContext} context - The context in which the rule will be processed.
|
|
69
|
+
* @returns {void} The method does not return a value.
|
|
70
|
+
*/
|
|
71
|
+
apply(ruleName: RuleName, context: RuleContext): void;
|
|
72
|
+
}
|
|
73
|
+
export declare const manifestDrivenSchemaProcessor: ManifestDrivenSchemaProcessor;
|
|
74
|
+
export {};
|
|
75
|
+
//# sourceMappingURL=ManifestDrivenSchemaProcessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ManifestDrivenSchemaProcessor.d.ts","sourceRoot":"","sources":["../../../../../src/sync/common/ManifestDrivenSchemaProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,eAAe,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC;AAQjF,MAAM,WAAW,WAAW;IACxB,IAAI,CAAC,EAAE,EAAE,CAAC,cAAc,CAAC;IACzB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACxC;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACtB,IAAI,EAAE,QAAQ,CAAC;IACf;;;;;OAKG;IACH,KAAK,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC;IACrC;;;;;OAKG;IACH,OAAO,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAAC;CACvC;AAED;;;GAGG;AACH,cAAM,0BAA0B;IAC5B,OAAO,CAAC,KAAK,CAAkC;IAC/C;;;;;OAKG;IACH,QAAQ,CAAC,IAAI,EAAE,SAAS;IAGxB;;;;;OAKG;IACH,GAAG,CAAC,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS;CAG7C;AAED;;;;GAIG;AACH,cAAM,6BAA6B;IAOnB,OAAO,CAAC,QAAQ;IAN5B;;;;;OAKG;gBACiB,QAAQ,EAAE,0BAA0B;IAExD;;;;;;OAMG;IACH,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW;CASjD;AASD,eAAO,MAAM,6BAA6B,+BAA8C,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.manifestDrivenSchemaProcessor = void 0;
|
|
4
|
+
const rules_1 = require("./rules");
|
|
5
|
+
/**
|
|
6
|
+
* Registry for schema processing rules.
|
|
7
|
+
* Stores and resolves rules by name for later execution by the processor.
|
|
8
|
+
*/
|
|
9
|
+
class ManifestDrivenRuleRegistry {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.rules = new Map();
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Registers a new rule by adding it to the collection of rules.
|
|
15
|
+
*
|
|
16
|
+
* @param {NamedRule} rule - The rule to register, including its name and associated functionality.
|
|
17
|
+
* @returns {void}
|
|
18
|
+
*/
|
|
19
|
+
register(rule) {
|
|
20
|
+
this.rules.set(rule.name, rule);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Retrieves a named rule from the collection of rules.
|
|
24
|
+
*
|
|
25
|
+
* @param {RuleName} name - The name of the rule to retrieve.
|
|
26
|
+
* @returns {NamedRule | undefined} The corresponding named rule if it exists, or undefined if it does not.
|
|
27
|
+
*/
|
|
28
|
+
get(name) {
|
|
29
|
+
return this.rules.get(name);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Applies schema adaptation rules driven by manifest settings.
|
|
34
|
+
* Given a rule name, page context, and schema, it executes the matching rule(s)
|
|
35
|
+
* and mutates the schema accordingly
|
|
36
|
+
*/
|
|
37
|
+
class ManifestDrivenSchemaProcessor {
|
|
38
|
+
/**
|
|
39
|
+
* Constructs an instance of the class.
|
|
40
|
+
*
|
|
41
|
+
* @param {ManifestDrivenRuleRegistry} registry - The registry containing the manifest-driven rules.
|
|
42
|
+
* @returns {void}
|
|
43
|
+
*/
|
|
44
|
+
constructor(registry) {
|
|
45
|
+
this.registry = registry;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Applies a specific rule from the registry to the given context.
|
|
49
|
+
*
|
|
50
|
+
* @param {RuleName} ruleName - The name of the rule to be applied.
|
|
51
|
+
* @param {RuleContext} context - The context in which the rule will be processed.
|
|
52
|
+
* @returns {void} The method does not return a value.
|
|
53
|
+
*/
|
|
54
|
+
apply(ruleName, context) {
|
|
55
|
+
const rule = this.registry.get(ruleName);
|
|
56
|
+
if (!rule) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
if (rule.match(context)) {
|
|
60
|
+
rule.process(context);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
const registry = new ManifestDrivenRuleRegistry();
|
|
65
|
+
registry.register(rules_1.LR_CREATION_MODE_FOR_ANALYTICAL_TABLE);
|
|
66
|
+
registry.register(rules_1.LR_CREATION_MODE_FOR_NON_TREE_TABLE);
|
|
67
|
+
registry.register(rules_1.LR_CREATION_MODE_FOR_NON_CREATION_DIALOG_MODE);
|
|
68
|
+
registry.register(rules_1.LR_ANALYTICAL_CONFIGURATION_FOR_NON_ANALYTICAL_TABLE);
|
|
69
|
+
exports.manifestDrivenSchemaProcessor = new ManifestDrivenSchemaProcessor(registry);
|
|
70
|
+
//# sourceMappingURL=ManifestDrivenSchemaProcessor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ManifestDrivenSchemaProcessor.js","sourceRoot":"","sources":["../../../../../src/sync/common/ManifestDrivenSchemaProcessor.ts"],"names":[],"mappings":";;;AAEA,mCAKiB;AA8BjB;;;GAGG;AACH,MAAM,0BAA0B;IAAhC;QACY,UAAK,GAAG,IAAI,GAAG,EAAuB,CAAC;IAmBnD,CAAC;IAlBG;;;;;OAKG;IACH,QAAQ,CAAC,IAAe;QACpB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACpC,CAAC;IACD;;;;;OAKG;IACH,GAAG,CAAC,IAAc;QACd,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAChC,CAAC;CACJ;AAED;;;;GAIG;AACH,MAAM,6BAA6B;IAC/B;;;;;OAKG;IACH,YAAoB,QAAoC;QAApC,aAAQ,GAAR,QAAQ,CAA4B;IAAG,CAAC;IAE5D;;;;;;OAMG;IACH,KAAK,CAAC,QAAkB,EAAE,OAAoB;QAC1C,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QACzC,IAAI,CAAC,IAAI,EAAE,CAAC;YACR,OAAO;QACX,CAAC;QACD,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC;YACtB,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAC1B,CAAC;IACL,CAAC;CACJ;AAED,MAAM,QAAQ,GAAG,IAAI,0BAA0B,EAAE,CAAC;AAElD,QAAQ,CAAC,QAAQ,CAAC,6CAAqC,CAAC,CAAC;AACzD,QAAQ,CAAC,QAAQ,CAAC,2CAAmC,CAAC,CAAC;AACvD,QAAQ,CAAC,QAAQ,CAAC,qDAA6C,CAAC,CAAC;AACjE,QAAQ,CAAC,QAAQ,CAAC,4DAAoD,CAAC,CAAC;AAE3D,QAAA,6BAA6B,GAAG,IAAI,6BAA6B,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -7,16 +7,31 @@
|
|
|
7
7
|
"rootPpmsObject": "FIORI ELEMENT SPEC 1.0",
|
|
8
8
|
"distTags": [
|
|
9
9
|
{
|
|
10
|
-
"version": "1.
|
|
10
|
+
"version": "1.139",
|
|
11
11
|
"distTag": [
|
|
12
12
|
"latest",
|
|
13
13
|
"UI5-2.0",
|
|
14
14
|
"UI5-2.1",
|
|
15
|
+
"UI5-1.139",
|
|
16
|
+
"UI5-1.140",
|
|
17
|
+
"UI5-1.141",
|
|
18
|
+
"UI5-1.142",
|
|
19
|
+
"UI5-1.143",
|
|
20
|
+
"UI5-1.144",
|
|
21
|
+
"UI5-1.145",
|
|
22
|
+
"UI5-1.146",
|
|
23
|
+
"UI5-1.147",
|
|
24
|
+
"UI5-1.148",
|
|
25
|
+
"UI5-1.149"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"version": "1.136",
|
|
30
|
+
"distTag": [
|
|
31
|
+
"UI5-1.136-legacy-free",
|
|
15
32
|
"UI5-1.136",
|
|
16
33
|
"UI5-1.137",
|
|
17
|
-
"UI5-1.138"
|
|
18
|
-
"UI5-1.139",
|
|
19
|
-
"UI5-1.140"
|
|
34
|
+
"UI5-1.138"
|
|
20
35
|
]
|
|
21
36
|
},
|
|
22
37
|
{
|
|
@@ -278,9 +278,11 @@ export declare function getDataFieldDescription(dataFieldAbstract: DataFieldAbst
|
|
|
278
278
|
/**
|
|
279
279
|
* Adds a message to the `messages` field of a schema element.
|
|
280
280
|
*
|
|
281
|
-
* @param element The
|
|
282
|
-
* @param message The message text to
|
|
281
|
+
* @param {Definition} element - The element to which the message will be added.
|
|
282
|
+
* @param {string} message - The message text to be added to the schema.
|
|
283
|
+
* @param {boolean} [deletable=false] - Indicates whether the message can be deleted.
|
|
284
|
+
* @returns {void}
|
|
283
285
|
*/
|
|
284
|
-
export declare function addMessageToSchema(element: Definition, message: string): void;
|
|
286
|
+
export declare function addMessageToSchema(element: Definition, message: string, deletable?: boolean): void;
|
|
285
287
|
export {};
|
|
286
288
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/common/generate/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC3G,OAAO,KAAK,EAAE,sBAAsB,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AACnG,OAAO,EAAqB,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAU5D,OAAO,KAAK,EACR,WAAW,EACX,YAAY,EACZ,WAAW,EACX,gBAAgB,EAGnB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,cAAc,EAAa,aAAa,EAAgB,MAAM,6BAA6B,CAAC;AAKrG,UAAU,oBAAoB;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,UAAU,CAAC;CACvB;AAED,UAAU,4BAA4B;IAClC,UAAU,CAAC,E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