@sap/ux-specification 1.136.16 → 1.136.17
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 +31 -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 +273 -271
- package/dist/index-min.js.map +4 -4
- package/dist/schemas/v4/BuildingBlocksConfig.json +52 -4
- package/dist/specification/package.json +6 -6
- package/dist/specification/scripts/macros/corrections.d.ts.map +1 -1
- package/dist/specification/scripts/macros/corrections.js +33 -1
- package/dist/specification/scripts/macros/corrections.js.map +1 -1
- package/dist/specification/scripts/macros/schema.d.ts.map +1 -1
- package/dist/specification/scripts/macros/schema.js +13 -0
- package/dist/specification/scripts/macros/schema.js.map +1 -1
- package/dist/specification/src/i18n/i18n.d.ts.map +1 -1
- package/dist/specification/src/i18n/i18n.js +2 -1
- package/dist/specification/src/i18n/i18n.js.map +1 -1
- package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.d.ts +8 -1
- package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.d.ts.map +1 -1
- package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.js +10 -6
- package/dist/specification/src/sync/common/ManifestDrivenSchemaProcessor.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorators.d.ts +6 -40
- package/dist/specification/src/sync/common/decoration/decorators.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorators.js +26 -91
- package/dist/specification/src/sync/common/decoration/decorators.js.map +1 -1
- package/dist/specification/src/sync/common/rules.d.ts +20 -0
- package/dist/specification/src/sync/common/rules.d.ts.map +1 -1
- package/dist/specification/src/sync/common/rules.js +22 -2
- package/dist/specification/src/sync/common/rules.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/analyticalListReport.js +7 -7
- package/dist/specification/src/sync/v2/generate/analyticalListReport.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/objectPage.js +56 -2
- package/dist/specification/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v4/application.d.ts +11 -0
- package/dist/specification/src/sync/v4/application.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/application.js +18 -3
- package/dist/specification/src/sync/v4/application.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Table.d.ts +8 -2
- package/dist/specification/src/sync/v4/export/controls/Table.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Table.js +44 -12
- package/dist/specification/src/sync/v4/export/controls/Table.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.js +2 -2
- package/dist/specification/src/sync/v4/export/controls/ToolBarAction.js.map +1 -1
- 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 +19 -11
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/list-report/listReport.d.ts +6 -2
- 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 +79 -95
- package/dist/specification/src/sync/v4/generate/list-report/listReport.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/objectPage.js +26 -23
- package/dist/specification/src/sync/v4/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.d.ts +119 -127
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js +168 -168
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js.map +1 -1
- package/package.json +7 -7
|
@@ -614,7 +614,7 @@
|
|
|
614
614
|
}
|
|
615
615
|
},
|
|
616
616
|
"required": {
|
|
617
|
-
"type": "
|
|
617
|
+
"type": "boolean",
|
|
618
618
|
"description": "Use the 'required' attribute to make sure that the editor is filled with some text.",
|
|
619
619
|
"artifactType": "XMLProperty",
|
|
620
620
|
"metadata": {
|
|
@@ -622,7 +622,7 @@
|
|
|
622
622
|
}
|
|
623
623
|
},
|
|
624
624
|
"value": {
|
|
625
|
-
"type": "
|
|
625
|
+
"type": "string",
|
|
626
626
|
"description": "The value contained in the editor. You can use this attribute to set a default value.",
|
|
627
627
|
"artifactType": "XMLProperty",
|
|
628
628
|
"metadata": {
|
|
@@ -714,7 +714,7 @@
|
|
|
714
714
|
}
|
|
715
715
|
},
|
|
716
716
|
"required": {
|
|
717
|
-
"type": "
|
|
717
|
+
"type": "boolean",
|
|
718
718
|
"description": "Use the 'required' attribute to make sure that the editor is filled with some text.",
|
|
719
719
|
"artifactType": "XMLProperty",
|
|
720
720
|
"metadata": {
|
|
@@ -722,7 +722,7 @@
|
|
|
722
722
|
}
|
|
723
723
|
},
|
|
724
724
|
"value": {
|
|
725
|
-
"type": "
|
|
725
|
+
"type": "string",
|
|
726
726
|
"description": "The value contained in the editor. You can use this attribute to set a default value.",
|
|
727
727
|
"artifactType": "XMLProperty",
|
|
728
728
|
"metadata": {
|
|
@@ -3131,6 +3131,18 @@
|
|
|
3131
3131
|
"aggregationCardinality": "Single"
|
|
3132
3132
|
}
|
|
3133
3133
|
},
|
|
3134
|
+
"quickVariantSelection": {
|
|
3135
|
+
"type": "object",
|
|
3136
|
+
"additionalProperties": {
|
|
3137
|
+
"$ref": "#/definitions/sap.fe.macros.table.QuickVariantSelection"
|
|
3138
|
+
},
|
|
3139
|
+
"isViewNode": false,
|
|
3140
|
+
"metadata": {
|
|
3141
|
+
"path": [],
|
|
3142
|
+
"type": "Aggregation",
|
|
3143
|
+
"aggregationCardinality": "Single"
|
|
3144
|
+
}
|
|
3145
|
+
},
|
|
3134
3146
|
"beforeRebindTable": {
|
|
3135
3147
|
"type": "string",
|
|
3136
3148
|
"description": "Before a table rebind, an event is triggered that contains information about the binding.\nThe event contains a parameter, `collectionBindingInfo`, which is an instance of `CollectionBindingInfoAPI`.\nThis allows you to manipulate the table's list binding.\nYou can use this event to attach event handlers to the table's list binding.\nYou can use this event to add selects, and add or read the sorters and filters.\n",
|
|
@@ -3495,6 +3507,18 @@
|
|
|
3495
3507
|
"aggregationCardinality": "Single"
|
|
3496
3508
|
}
|
|
3497
3509
|
},
|
|
3510
|
+
"quickVariantSelection": {
|
|
3511
|
+
"type": "object",
|
|
3512
|
+
"additionalProperties": {
|
|
3513
|
+
"$ref": "#/definitions/sap.fe.macros.table.QuickVariantSelection"
|
|
3514
|
+
},
|
|
3515
|
+
"isViewNode": false,
|
|
3516
|
+
"metadata": {
|
|
3517
|
+
"path": [],
|
|
3518
|
+
"type": "Aggregation",
|
|
3519
|
+
"aggregationCardinality": "Single"
|
|
3520
|
+
}
|
|
3521
|
+
},
|
|
3498
3522
|
"beforeRebindTable": {
|
|
3499
3523
|
"type": "string",
|
|
3500
3524
|
"description": "Before a table rebind, an event is triggered that contains information about the binding.\nThe event contains a parameter, `collectionBindingInfo`, which is an instance of `CollectionBindingInfoAPI`.\nThis allows you to manipulate the table's list binding.\nYou can use this event to attach event handlers to the table's list binding.\nYou can use this event to add selects, and add or read the sorters and filters.\n",
|
|
@@ -3961,6 +3985,18 @@
|
|
|
3961
3985
|
"aggregationCardinality": "Single"
|
|
3962
3986
|
}
|
|
3963
3987
|
},
|
|
3988
|
+
"quickVariantSelection": {
|
|
3989
|
+
"type": "object",
|
|
3990
|
+
"additionalProperties": {
|
|
3991
|
+
"$ref": "#/definitions/sap.fe.macros.table.QuickVariantSelection"
|
|
3992
|
+
},
|
|
3993
|
+
"isViewNode": false,
|
|
3994
|
+
"metadata": {
|
|
3995
|
+
"path": [],
|
|
3996
|
+
"type": "Aggregation",
|
|
3997
|
+
"aggregationCardinality": "Single"
|
|
3998
|
+
}
|
|
3999
|
+
},
|
|
3964
4000
|
"beforeRebindTable": {
|
|
3965
4001
|
"type": "string",
|
|
3966
4002
|
"description": "Before a table rebind, an event is triggered that contains information about the binding.\nThe event contains a parameter, `collectionBindingInfo`, which is an instance of `CollectionBindingInfoAPI`.\nThis allows you to manipulate the table's list binding.\nYou can use this event to attach event handlers to the table's list binding.\nYou can use this event to add selects, and add or read the sorters and filters.\n",
|
|
@@ -4360,6 +4396,18 @@
|
|
|
4360
4396
|
"aggregationCardinality": "Single"
|
|
4361
4397
|
}
|
|
4362
4398
|
},
|
|
4399
|
+
"quickVariantSelection": {
|
|
4400
|
+
"type": "object",
|
|
4401
|
+
"additionalProperties": {
|
|
4402
|
+
"$ref": "#/definitions/sap.fe.macros.table.QuickVariantSelection"
|
|
4403
|
+
},
|
|
4404
|
+
"isViewNode": false,
|
|
4405
|
+
"metadata": {
|
|
4406
|
+
"path": [],
|
|
4407
|
+
"type": "Aggregation",
|
|
4408
|
+
"aggregationCardinality": "Single"
|
|
4409
|
+
}
|
|
4410
|
+
},
|
|
4363
4411
|
"beforeRebindTable": {
|
|
4364
4412
|
"type": "string",
|
|
4365
4413
|
"description": "Before a table rebind, an event is triggered that contains information about the binding.\nThe event contains a parameter, `collectionBindingInfo`, which is an instance of `CollectionBindingInfoAPI`.\nThis allows you to manipulate the table's list binding.\nYou can use this event to attach event handlers to the table's list binding.\nYou can use this event to add selects, and add or read the sorters and filters.\n",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/ux-specification",
|
|
3
|
-
"version": "1.136.
|
|
3
|
+
"version": "1.136.17",
|
|
4
4
|
"displayName": "SAP Fiori tools - Specification",
|
|
5
5
|
"description": "SAP Fiori tools - Specification",
|
|
6
6
|
"files": [
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"lint:report:jslint": "eslint . -o reports/lint/eslint.jslint.xml -f jslint-xml",
|
|
43
43
|
"macros": "ts-node ./scripts/macros/index.ts",
|
|
44
44
|
"test": "jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info",
|
|
45
|
-
"test:ci": "jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info",
|
|
45
|
+
"test:ci": "node --max-old-space-size=4096 ./node_modules/.bin/jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info",
|
|
46
46
|
"update-snapshots": "jest --updateSnapshot",
|
|
47
47
|
"watch": "npm-run-all -l -s clean:before -p compile create-json-schemas macros copy-templates -p copy-json-schemas -s bundle:watch",
|
|
48
48
|
"watch:doc": "npm-run-all -l -s clean:doc -s compile -s htmlV2 htmlV4 -s bundle:watch"
|
|
@@ -50,14 +50,14 @@
|
|
|
50
50
|
"publisher": "SAPSE",
|
|
51
51
|
"license": "SEE LICENSE IN LICENSE",
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@sap-ux/fe-fpm-writer": "0.43.
|
|
53
|
+
"@sap-ux/fe-fpm-writer": "0.43.10",
|
|
54
54
|
"@sap-ux/vocabularies-types": "0.15.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@sap-ux/annotation-converter": "0.10.21",
|
|
58
58
|
"@sap-ux/edmx-parser": "0.10.0",
|
|
59
|
-
"@sap-ux/project-access": "1.35.
|
|
60
|
-
"@sap/ux-specification-types": "1.136.
|
|
59
|
+
"@sap-ux/project-access": "1.35.13",
|
|
60
|
+
"@sap/ux-specification-types": "1.136.17",
|
|
61
61
|
"@sapui5/types": "latest-1.136",
|
|
62
62
|
"@types/d3": "7.4.3",
|
|
63
63
|
"@types/jquery": "3.5.34",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"ejs": "3.1.10",
|
|
75
75
|
"eslint-formatter-checkstyle": "9.0.1",
|
|
76
76
|
"excel4node": "1.8.2",
|
|
77
|
-
"i18next": "25.8.
|
|
77
|
+
"i18next": "25.8.18",
|
|
78
78
|
"jquery": "3.7.1",
|
|
79
79
|
"jsdom": "25.0.1",
|
|
80
80
|
"jsonpath-plus": "10.4.0",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"corrections.d.ts","sourceRoot":"","sources":["../../../../scripts/macros/corrections.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,EAA8B,WAAW,EAAE,MAAM,SAAS,CAAC;AAG7G,UAAU,aAAa;IACnB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,YAAY,CAAC,EAAE,cAAc,EAAE,CAAC;IAChC,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,UAAU,CAAC,EAAE,KAAK,CAAC,WAAW,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC,GAAG;QAAE,MAAM,EAAE,IAAI,CAAA;KAAE,CAAC,CAAC,CAAC;IAC5E,QAAQ,CAAC,EAAE,SAAS,CAAC;CACxB;AAED;;GAEG;AACH,UAAU,oBAAoB;IAC1B;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;KAAE,CAAC;CACvC;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,EAAE;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,oBAAoB,CAAA;KAAE,CAAC;CAmB1D,CAAC;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,GAAG,SAAS,CAiBtB;AAED,eAAO,MAAM,gBAAgB,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAA;CA6J5D,CAAC;AA4KF;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,SAAS,GAAG,IAAI,CAuBrD"}
|
|
@@ -184,6 +184,38 @@ exports.macrosCorrection = {
|
|
|
184
184
|
visibility: types_1.UI5Visibility.hidden
|
|
185
185
|
}
|
|
186
186
|
]
|
|
187
|
+
},
|
|
188
|
+
'sap.fe.macros.controls.BaseAction': {
|
|
189
|
+
properties: [
|
|
190
|
+
{
|
|
191
|
+
name: 'text',
|
|
192
|
+
extend: true,
|
|
193
|
+
// Correct from any to string while fix is not applied from fe team
|
|
194
|
+
type: 'string'
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: 'visible',
|
|
198
|
+
extend: true,
|
|
199
|
+
// Correct from any to boolean while fix is not applied from fe team
|
|
200
|
+
type: 'boolean'
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
},
|
|
204
|
+
'sap.fe.macros.RichTextEditor': {
|
|
205
|
+
properties: [
|
|
206
|
+
{
|
|
207
|
+
name: 'required',
|
|
208
|
+
extend: true,
|
|
209
|
+
// Correct from any to boolean while fix is not applied from fe team
|
|
210
|
+
type: 'boolean'
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: 'value',
|
|
214
|
+
extend: true,
|
|
215
|
+
// Correct from any to string while fix is not applied from fe team
|
|
216
|
+
type: 'string'
|
|
217
|
+
}
|
|
218
|
+
]
|
|
187
219
|
}
|
|
188
220
|
};
|
|
189
221
|
const placementEnum = [ux_specification_types_1.v4.Placement.After, ux_specification_types_1.v4.Placement.Before];
|
|
@@ -263,7 +295,7 @@ function applyCorrectionForNode(node, correction) {
|
|
|
263
295
|
for (const aggregation of correction.removeAggregations || []) {
|
|
264
296
|
const aggregationIndex = node.aggregations.findIndex((existingAggregation) => existingAggregation.name === aggregation);
|
|
265
297
|
if (aggregationIndex !== -1) {
|
|
266
|
-
node.aggregations.splice(aggregationIndex);
|
|
298
|
+
node.aggregations.splice(aggregationIndex, 1);
|
|
267
299
|
}
|
|
268
300
|
}
|
|
269
301
|
for (const property of correction.properties || []) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"corrections.js","sourceRoot":"","sources":["../../../../scripts/macros/corrections.ts"],"names":[],"mappings":";;;AA0EA,sDAqBC;
|
|
1
|
+
{"version":3,"file":"corrections.js","sourceRoot":"","sources":["../../../../scripts/macros/corrections.ts"],"names":[],"mappings":";;;AA0EA,sDAqBC;AAkVD,4CAuBC;AAxcD,mCAMiB;AAEjB,wEAAiD;AAyBjD;;;;;;;GAOG;AACU,QAAA,uBAAuB,GAEhC;IACA,0CAA0C,EAAE;QACxC,OAAO,EAAE;YACL,iBAAiB,EAAE,MAAM;YACzB,MAAM,EAAE;gBACJ,YAAY,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,eAAe,CAAC;gBAC9D,IAAI,EAAE,CAAC,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,CAAC;gBAC1D,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC;gBACnC,SAAS,EAAE,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC;gBACtD,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;gBACtB,MAAM,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC;gBAC9B,IAAI,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC;gBACxB,YAAY,EAAE,CAAC,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,cAAc,CAAC;gBACxE,KAAK,EAAE,CAAC,OAAO,CAAC;gBAChB,WAAW,EAAE,CAAC,aAAa,CAAC;aAC/B;SACJ;KACJ;CACJ,CAAC;AAEF;;;;;;;;;;GAUG;AACH,SAAgB,qBAAqB,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wB;IACxB,KAAK,MAAM,IAAI,IAAI,wBAAgB,EAAE,CAAC;QAClC,MAAM,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,SAAoB,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC;QACnF,IAAI,CAAC,MAAM,IAAI,wBAAgB,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;YAC7C,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC;gBACb,GAAG,wBAAgB,CAAC,IAAI,CAAC,CAAC,QAAQ;aACrC,CAAC,CAAC;QACP,CAAC;IACL,CAAC;IACD,2CAA2C;IAC3C,KAAK,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,EAAE,CAAC;QAC/B,MAAM,UAAU,GAAG,wBAAgB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,UAAU,IAAI,MAAM,CAAC,IAAI,KAAK,6BAAqB,EAAE,CAAC;YACvD,SAAS;QACb,CAAC;QACD,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;QAC7B,sBAAsB,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAC7C,CAAC;IACD,eAAe;IACf,uBAAuB,CAAC,GAAG,CAAC,CAAC;IAC7B,0BAA0B;IAC1B,qBAAqB,CAAC,GAAG,CAAC,CAAC;AAC/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../scripts/macros/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAGpE,OAAO,KAAK,EACR,SAAS,EAOZ,MAAM,SAAS,CAAC;AASjB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../scripts/macros/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAGpE,OAAO,KAAK,EACR,SAAS,EAOZ,MAAM,SAAS,CAAC;AASjB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAavD,eAAO,MAAM,2BAA2B,EAAE,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAgC,CAAC;AAC1G;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;CAE9B,CAAC;AAsTF;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,SAAS,GAAG,gBAAgB,CAkD/D"}
|
|
@@ -7,6 +7,15 @@ const ux_specification_types_2 = require("@sap/ux-specification-types");
|
|
|
7
7
|
const types_1 = require("./types");
|
|
8
8
|
const corrections_1 = require("./corrections");
|
|
9
9
|
const common_1 = require("../../src/sync/common");
|
|
10
|
+
/**
|
|
11
|
+
* Mapping of interface definitions to their implementing classes.
|
|
12
|
+
* Used to resolve interface $refs to concrete implementations that contain the actual properties.
|
|
13
|
+
*/
|
|
14
|
+
const INTERFACE_TO_IMPLEMENTATION_MAP = new Map([
|
|
15
|
+
['sap.fe.macros.table.ITableColumn', 'sap.fe.macros.table.Column'],
|
|
16
|
+
['sap.fe.macros.table.ITableActionOrGroup', 'sap.fe.macros.table.Action'],
|
|
17
|
+
['sap.fe.macros.table.ITableAction', 'sap.fe.macros.table.Action']
|
|
18
|
+
]);
|
|
10
19
|
exports.UI5_TO_JSON_SCHEMA_TYPE_MAP = new Map([['int', 'number']]);
|
|
11
20
|
/**
|
|
12
21
|
* Semantic classification patterns for properties
|
|
@@ -111,6 +120,10 @@ function getSchemaForType(type) {
|
|
|
111
120
|
: type;
|
|
112
121
|
}
|
|
113
122
|
else {
|
|
123
|
+
const implementationType = INTERFACE_TO_IMPLEMENTATION_MAP.get(type);
|
|
124
|
+
if (implementationType) {
|
|
125
|
+
type = implementationType;
|
|
126
|
+
}
|
|
114
127
|
schema.$ref = `#/definitions/${type}`;
|
|
115
128
|
}
|
|
116
129
|
return schema;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../scripts/macros/schema.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../scripts/macros/schema.ts"],"names":[],"mappings":";;;AAoWA,wCAkDC;AArZD,wEAA2D;AAC3D,wEAA8F;AAU9F,mCAMiB;AACjB,+CAAiD;AAEjD,kDAAwD;AAExD;;;GAGG;AACH,MAAM,+BAA+B,GAAwB,IAAI,GAAG,CAAC;IACjE,CAAC,kCAAkC,EAAE,4BAA4B,CAAC;IAClE,CAAC,yCAAyC,EAAE,4BAA4B,CAAC;IACzE,CAAC,kCAAkC,EAAE,4BAA4B,CAAC;CACrE,CAAC,CAAC;AAEU,QAAA,2BAA2B,GAAqC,IAAI,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;AAC1G;;;GAGG;AACU,QAAA,kBAAkB,GAAG;IAC9B,YAAY,EAAE,CAAC,+CAA+C,EAAE,cAAc,CAAC;CAClF,CAAC;AAEF;;;;;GAKG;AACH,SAAS,YAAY,CAAC,IAAY;IAC9B,OAAO,CACH,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;QAC3F,mCAA2B,CAAC,GAAG,CAAC,IAAI,CAAC,CACxC,CAAC;AACN,CAAC;AAED;;;;GAIG;AACH,SAAS,aAAa;IAClB,MAAM,cAAc,GAAqB,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC1E,OAAO;QACH,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE;YACN,UAAU,EAAE,EAAE;SACjB;QACD,UAAU,EAAE;YAC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QAC3C,KAAK,MAAM,QAAQ,IAAI,UAAU,EAAE,CAAC;YAChC,UAAU,CAAC,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;QACrE,CAAC;IACL,CAAC;IAED,OAAO,MAAM,CAAC;AAClB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../../src/i18n/i18n.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,SAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../../../src/i18n/i18n.ts"],"names":[],"mappings":"AAIA;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,QAAQ,SAAO,GAAG,IAAI,CAgB9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../../../src/i18n/i18n.ts"],"names":[],"mappings":";;;;;AASA,
|
|
1
|
+
{"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../../../src/i18n/i18n.ts"],"names":[],"mappings":";;;;;AASA,4BAgBC;AAzBD,sDAA8B;AAC9B,yFAAiD;AACjD,uCAAwD;AAExD;;;;GAIG;AACH,SAAgB,QAAQ,CAAC,QAAQ,GAAG,IAAI;IACpC,sCAAsC;IACtC,iBAAO,CAAC,IAAI,CAAC;QACT,SAAS,EAAE;YACP,EAAE,EAAE;gBACA,WAAW,EAAE,gCAAM;aACtB;SACJ;QACD,GAAG,EAAE,QAAQ;QACb,WAAW,EAAE,IAAI;QACjB,UAAU,EAAE,MAAM;QAClB,iBAAiB,EAAE,KAAK;KAC3B,CAAC,CAAC;IAEH,oCAAoC;IACpC,IAAA,eAAY,EAAC,iBAAO,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -28,6 +28,8 @@ export interface NamedRule {
|
|
|
28
28
|
/**
|
|
29
29
|
* Registry for schema processing rules.
|
|
30
30
|
* Stores and resolves rules by name for later execution by the processor.
|
|
31
|
+
*
|
|
32
|
+
* @deprecated Use decorator-based approach instead of registering rules.
|
|
31
33
|
*/
|
|
32
34
|
declare class ManifestDrivenRuleRegistry {
|
|
33
35
|
private rules;
|
|
@@ -48,7 +50,11 @@ declare class ManifestDrivenRuleRegistry {
|
|
|
48
50
|
/**
|
|
49
51
|
* Applies schema adaptation rules driven by manifest settings.
|
|
50
52
|
* Given a rule name, page context, and schema, it executes the matching rule(s)
|
|
51
|
-
* and mutates the schema accordingly
|
|
53
|
+
* and mutates the schema accordingly.
|
|
54
|
+
*
|
|
55
|
+
* @deprecated This processor is being replaced by decorator-based schema modifications.
|
|
56
|
+
* Use @hide, @message, and @enums decorators on definition classes instead.
|
|
57
|
+
* @see Table and TableCreationModeLR classes for examples of the new approach.
|
|
52
58
|
*/
|
|
53
59
|
declare class ManifestDrivenSchemaProcessor {
|
|
54
60
|
private registry;
|
|
@@ -63,6 +69,7 @@ declare class ManifestDrivenSchemaProcessor {
|
|
|
63
69
|
*
|
|
64
70
|
* @param {RuleName} ruleName - The name of the rule to be applied.
|
|
65
71
|
* @param {RuleContext} context - The context in which the rule will be processed.
|
|
72
|
+
* @deprecated Use decorator-based approach instead.
|
|
66
73
|
*/
|
|
67
74
|
apply(ruleName: RuleName, context: RuleContext): void;
|
|
68
75
|
}
|
|
@@ -1 +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;;;;OAIG;IACH,OAAO,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAAC;CACvC;AAED
|
|
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;;;;OAIG;IACH,OAAO,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAAC;CACvC;AAED;;;;;GAKG;AACH,cAAM,0BAA0B;IAC5B,OAAO,CAAC,KAAK,CAAkC;IAC/C;;;;OAIG;IACH,QAAQ,CAAC,IAAI,EAAE,SAAS;IAGxB;;;;;OAKG;IACH,GAAG,CAAC,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS;CAG7C;AAED;;;;;;;;GAQG;AACH,cAAM,6BAA6B;IAMnB,OAAO,CAAC,QAAQ;IAL5B;;;;OAIG;gBACiB,QAAQ,EAAE,0BAA0B;IAExD;;;;;;OAMG;IACH,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW;CASjD;AAOD,eAAO,MAAM,6BAA6B,+BAA8C,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.manifestDrivenSchemaProcessor = void 0;
|
|
4
|
-
const rules_1 = require("./rules");
|
|
5
4
|
/**
|
|
6
5
|
* Registry for schema processing rules.
|
|
7
6
|
* Stores and resolves rules by name for later execution by the processor.
|
|
7
|
+
*
|
|
8
|
+
* @deprecated Use decorator-based approach instead of registering rules.
|
|
8
9
|
*/
|
|
9
10
|
class ManifestDrivenRuleRegistry {
|
|
10
11
|
constructor() {
|
|
@@ -31,7 +32,11 @@ class ManifestDrivenRuleRegistry {
|
|
|
31
32
|
/**
|
|
32
33
|
* Applies schema adaptation rules driven by manifest settings.
|
|
33
34
|
* Given a rule name, page context, and schema, it executes the matching rule(s)
|
|
34
|
-
* and mutates the schema accordingly
|
|
35
|
+
* and mutates the schema accordingly.
|
|
36
|
+
*
|
|
37
|
+
* @deprecated This processor is being replaced by decorator-based schema modifications.
|
|
38
|
+
* Use @hide, @message, and @enums decorators on definition classes instead.
|
|
39
|
+
* @see Table and TableCreationModeLR classes for examples of the new approach.
|
|
35
40
|
*/
|
|
36
41
|
class ManifestDrivenSchemaProcessor {
|
|
37
42
|
/**
|
|
@@ -47,6 +52,7 @@ class ManifestDrivenSchemaProcessor {
|
|
|
47
52
|
*
|
|
48
53
|
* @param {RuleName} ruleName - The name of the rule to be applied.
|
|
49
54
|
* @param {RuleContext} context - The context in which the rule will be processed.
|
|
55
|
+
* @deprecated Use decorator-based approach instead.
|
|
50
56
|
*/
|
|
51
57
|
apply(ruleName, context) {
|
|
52
58
|
const rule = this.registry.get(ruleName);
|
|
@@ -59,9 +65,7 @@ class ManifestDrivenSchemaProcessor {
|
|
|
59
65
|
}
|
|
60
66
|
}
|
|
61
67
|
const registry = new ManifestDrivenRuleRegistry();
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
registry.register(rules_1.LR_CREATION_MODE_FOR_NON_CREATION_DIALOG_MODE);
|
|
65
|
-
registry.register(rules_1.LR_ANALYTICAL_CONFIGURATION_FOR_NON_ANALYTICAL_TABLE);
|
|
68
|
+
// Note: List Report table rules have been migrated to decorator-based approach.
|
|
69
|
+
// See Table and TableCreationModeLR classes in src/sync/v4/export/controls/Table.ts
|
|
66
70
|
exports.manifestDrivenSchemaProcessor = new ManifestDrivenSchemaProcessor(registry);
|
|
67
71
|
//# sourceMappingURL=ManifestDrivenSchemaProcessor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManifestDrivenSchemaProcessor.js","sourceRoot":"","sources":["../../../../../src/sync/common/ManifestDrivenSchemaProcessor.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"ManifestDrivenSchemaProcessor.js","sourceRoot":"","sources":["../../../../../src/sync/common/ManifestDrivenSchemaProcessor.ts"],"names":[],"mappings":";;;AAoCA;;;;;GAKG;AACH,MAAM,0BAA0B;IAAhC;QACY,UAAK,GAAG,IAAI,GAAG,EAAuB,CAAC;IAkBnD,CAAC;IAjBG;;;;OAIG;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;;;;;;;;GAQG;AACH,MAAM,6BAA6B;IAC/B;;;;OAIG;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,gFAAgF;AAChF,oFAAoF;AAEvE,QAAA,6BAA6B,GAAG,IAAI,6BAA6B,CAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -69,42 +69,34 @@ export interface DecoratorMetadata extends DependsOnCondition {
|
|
|
69
69
|
}
|
|
70
70
|
/**
|
|
71
71
|
* Decorator to conditionally hide a property based on conditions.
|
|
72
|
-
* The property will be hidden
|
|
72
|
+
* The property will be hidden when the condition(s) ARE met.
|
|
73
73
|
*
|
|
74
74
|
* @example
|
|
75
75
|
* ```typescript
|
|
76
76
|
* import { page, custom, when, and, or } from './decorator-paths';
|
|
77
77
|
*
|
|
78
|
-
* // Truthy check - hide
|
|
78
|
+
* // Truthy check - hide when page.isALP is truthy
|
|
79
79
|
* @hide(page.isALP)
|
|
80
80
|
*
|
|
81
|
-
* // Equality check - hide
|
|
81
|
+
* // Equality check - hide when page.type === 'GridTable'
|
|
82
82
|
* @hide(when(page.type, 'GridTable'))
|
|
83
83
|
*
|
|
84
|
-
* // Custom function - hide
|
|
84
|
+
* // Custom function - hide when function returns true (type !== 'GridTable')
|
|
85
85
|
* @hide(when(page.type, (type) => type !== 'GridTable'))
|
|
86
86
|
*
|
|
87
87
|
* // Always hide
|
|
88
88
|
* @hide(true)
|
|
89
89
|
*
|
|
90
|
-
* // AND logic - hide
|
|
90
|
+
* // AND logic - hide when isALP is truthy AND type === 'GridTable'
|
|
91
91
|
* @hide(and(page.isALP, when(page.type, 'GridTable')))
|
|
92
92
|
*
|
|
93
|
-
* // OR logic - hide
|
|
93
|
+
* // OR logic - hide when actionType === 'Bound' OR actionType === 'Custom'
|
|
94
94
|
* @hide(or(when(page.actionType, 'Bound'), when(page.actionType, 'Custom')))
|
|
95
95
|
* ```
|
|
96
96
|
* @param condition - The condition to evaluate
|
|
97
97
|
* @returns PropertyDecorator
|
|
98
98
|
*/
|
|
99
99
|
export declare function hide(condition: ConditionInput): PropertyDecorator;
|
|
100
|
-
/**
|
|
101
|
-
* Retrieves the hide metadata associated with a specific property of a target object.
|
|
102
|
-
*
|
|
103
|
-
* @param target - The object containing the property.
|
|
104
|
-
* @param propertyName - The name of the property whose hide metadata is to be retrieved.
|
|
105
|
-
* @returns The hide information of the property, or undefined if no metadata is found.
|
|
106
|
-
*/
|
|
107
|
-
export declare function getHideMetadata(target: object, propertyName: string): DecoratorMetadata | undefined;
|
|
108
100
|
/**
|
|
109
101
|
* Decorator to conditionally display a message based on conditions.
|
|
110
102
|
* A message will be shown when the condition(s) are met.
|
|
@@ -135,15 +127,6 @@ export declare function getHideMetadata(target: object, propertyName: string): D
|
|
|
135
127
|
* ```
|
|
136
128
|
*/
|
|
137
129
|
export declare function message(condition: ConditionInput, messageConfig: MessageConfig): PropertyDecorator;
|
|
138
|
-
/**
|
|
139
|
-
* Retrieves the message metadata associated with a specific property of a target object.
|
|
140
|
-
* Returns an array of DecoratorMetadata since multiple @message decorators can be applied.
|
|
141
|
-
*
|
|
142
|
-
* @param target - The object containing the property.
|
|
143
|
-
* @param propertyName - The name of the property whose message metadata is to be retrieved.
|
|
144
|
-
* @returns An array of message metadata, or undefined if no metadata is found.
|
|
145
|
-
*/
|
|
146
|
-
export declare function getMessageMetadata(target: object, propertyName: string): DecoratorMetadata[] | undefined;
|
|
147
130
|
/**
|
|
148
131
|
* Decorator to conditionally mark a property as readonly based on conditions.
|
|
149
132
|
* The property will be readonly when the condition(s) are met.
|
|
@@ -165,14 +148,6 @@ export declare function getMessageMetadata(target: object, propertyName: string)
|
|
|
165
148
|
* @returns PropertyDecorator
|
|
166
149
|
*/
|
|
167
150
|
export declare function readonly(condition: ConditionInput): PropertyDecorator;
|
|
168
|
-
/**
|
|
169
|
-
* Retrieves the readonly metadata associated with a specific property of a target object.
|
|
170
|
-
*
|
|
171
|
-
* @param target - The object containing the property.
|
|
172
|
-
* @param propertyName - The name of the property whose readonly metadata is to be retrieved.
|
|
173
|
-
* @returns The readonly information of the property, or undefined if no metadata is found.
|
|
174
|
-
*/
|
|
175
|
-
export declare function getReadonlyMetadata(target: object, propertyName: string): DecoratorMetadata | undefined;
|
|
176
151
|
/**
|
|
177
152
|
* Metadata structure for the @enums decorator.
|
|
178
153
|
* Extends DecoratorMetadata with the list of allowed enum values.
|
|
@@ -204,15 +179,6 @@ export interface EnumsDecoratorMetadata extends DecoratorMetadata {
|
|
|
204
179
|
* @returns PropertyDecorator
|
|
205
180
|
*/
|
|
206
181
|
export declare function enums(condition: ConditionInput, allowedValues: string[]): PropertyDecorator;
|
|
207
|
-
/**
|
|
208
|
-
* Retrieves the enums metadata associated with a specific property of a target object.
|
|
209
|
-
* Returns an array of EnumsDecoratorMetadata since multiple @enums decorators can be applied.
|
|
210
|
-
*
|
|
211
|
-
* @param target - The object containing the property.
|
|
212
|
-
* @param propertyName - The name of the property whose enums metadata is to be retrieved.
|
|
213
|
-
* @returns An array of enums metadata, or undefined if no metadata is found.
|
|
214
|
-
*/
|
|
215
|
-
export declare function getEnumsMetadata(target: object, propertyName: string): EnumsDecoratorMetadata[] | undefined;
|
|
216
182
|
/**
|
|
217
183
|
* Generates a deprecation message for a given key, optionally including additional validity information.
|
|
218
184
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorators.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/common/decoration/decorators.ts"],"names":[],"m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