@sap/ux-specification 1.84.128 → 1.84.129
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 +32 -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-ListReport.html +2 -2
- package/dist/documentation/v4/v4-ObjectPage.html +2 -2
- package/dist/index-min.js +177 -177
- package/dist/index-min.js.map +4 -4
- package/dist/schemas/v2/ApplicationV2.json +22 -2
- package/dist/schemas/v2/ListReportNewConfig.json +45 -0
- package/dist/schemas/v2/ObjectPageConfig.json +12 -5
- package/dist/schemas/v4/ApplicationV4.json +10 -11
- package/dist/specification/package.json +16 -15
- package/dist/specification/scripts/schema/to-json-schema.d.ts.map +1 -1
- package/dist/specification/scripts/schema/to-json-schema.js +23 -13
- package/dist/specification/scripts/schema/to-json-schema.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorators.d.ts +72 -4
- package/dist/specification/src/sync/common/decoration/decorators.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorators.js +145 -8
- package/dist/specification/src/sync/common/decoration/decorators.js.map +1 -1
- package/dist/specification/src/sync/common/distTagEvaluator.d.ts +7 -0
- package/dist/specification/src/sync/common/distTagEvaluator.d.ts.map +1 -1
- package/dist/specification/src/sync/common/distTagEvaluator.js +10 -0
- package/dist/specification/src/sync/common/distTagEvaluator.js.map +1 -1
- package/dist/specification/src/sync/common/generate/utils.d.ts +17 -7
- package/dist/specification/src/sync/common/generate/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/generate/utils.js +38 -22
- package/dist/specification/src/sync/common/generate/utils.js.map +1 -1
- package/dist/specification/src/sync/common/i18n.json +5 -4
- package/dist/specification/src/sync/common/utils.d.ts +39 -0
- package/dist/specification/src/sync/common/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/utils.js +94 -3
- package/dist/specification/src/sync/common/utils.js.map +1 -1
- package/dist/specification/src/sync/v2/application.d.ts +1 -0
- package/dist/specification/src/sync/v2/application.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/application.js +18 -0
- package/dist/specification/src/sync/v2/application.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPage.js +15 -4
- package/dist/specification/src/sync/v2/export/exportPage.js.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js +5 -2
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js.map +1 -1
- package/dist/specification/src/sync/v2/export/factory.d.ts +26 -0
- package/dist/specification/src/sync/v2/export/factory.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/factory.js +3 -3
- package/dist/specification/src/sync/v2/export/factory.js.map +1 -1
- package/dist/specification/src/sync/v2/export/pages/ObjectPage.d.ts +1 -0
- package/dist/specification/src/sync/v2/export/pages/ObjectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/pages/ObjectPage.js +11 -0
- package/dist/specification/src/sync/v2/export/pages/ObjectPage.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/listReport.js +44 -0
- package/dist/specification/src/sync/v2/generate/listReport.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/objectPage.js +86 -31
- package/dist/specification/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiViewSingleTable.d.ts +22 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiViewSingleTable.d.ts.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiViewSingleTable.js +124 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiViewSingleTable.js.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.js +4 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.d.ts +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.js +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/overviewPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/overviewPage.js +4 -0
- package/dist/specification/src/sync/v2/import/pages/overviewPage.js.map +1 -1
- package/dist/specification/src/sync/v2/utils.d.ts +17 -1
- package/dist/specification/src/sync/v2/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/utils.js +57 -0
- package/dist/specification/src/sync/v2/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/export/pages/ListReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/pages/ListReport.js +2 -1
- package/dist/specification/src/sync/v4/export/pages/ListReport.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/ListReportUtils.d.ts +74 -0
- package/dist/specification/src/sync/v4/generate/ListReportUtils.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/generate/ListReportUtils.js +262 -0
- package/dist/specification/src/sync/v4/generate/ListReportUtils.js.map +1 -0
- package/dist/specification/src/sync/v4/generate/listReport.d.ts +61 -2
- package/dist/specification/src/sync/v4/generate/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/listReport.js +92 -94
- 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 +7 -7
- package/dist/specification/src/sync/v4/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v4/sync-rules/App.d.ts +141 -0
- package/dist/specification/src/sync/v4/sync-rules/App.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/App.js +208 -0
- package/dist/specification/src/sync/v4/sync-rules/App.js.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.d.ts +193 -0
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.js +384 -0
- package/dist/specification/src/sync/v4/sync-rules/AppSchema.js.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.d.ts +172 -0
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js +410 -0
- package/dist/specification/src/sync/v4/sync-rules/DecoratorClass.js.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/Page.d.ts +70 -0
- package/dist/specification/src/sync/v4/sync-rules/Page.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/Page.js +73 -0
- package/dist/specification/src/sync/v4/sync-rules/Page.js.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/utils.d.ts +9 -0
- package/dist/specification/src/sync/v4/sync-rules/utils.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/sync-rules/utils.js +43 -0
- package/dist/specification/src/sync/v4/sync-rules/utils.js.map +1 -0
- package/dist/specification/src/sync/v4/utils/utils.d.ts +6 -29
- package/dist/specification/src/sync/v4/utils/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/utils/utils.js +7 -54
- package/dist/specification/src/sync/v4/utils/utils.js.map +1 -1
- package/dist/types/src/common/Application.d.ts +3 -0
- package/dist/types/src/common/Application.d.ts.map +1 -1
- package/dist/types/src/common/Application.js +4 -0
- package/dist/types/src/common/Application.js.map +1 -1
- package/dist/types/src/common/types.d.ts +105 -1
- package/dist/types/src/common/types.d.ts.map +1 -1
- package/dist/types/src/common/types.js +2 -0
- package/dist/types/src/common/types.js.map +1 -1
- package/dist/types/src/common/webapp/manifest/Manifest.d.ts +1 -1
- package/dist/types/src/common/webapp/manifest/Manifest.d.ts.map +1 -1
- package/dist/types/src/v2/application.d.ts +18 -0
- package/dist/types/src/v2/application.d.ts.map +1 -1
- package/dist/types/src/v2/controls/Action.d.ts +12 -0
- package/dist/types/src/v2/controls/Action.d.ts.map +1 -1
- package/dist/types/src/v2/controls/AnalyticalListPageChart.d.ts +1 -0
- package/dist/types/src/v2/controls/AnalyticalListPageChart.d.ts.map +1 -1
- package/dist/types/src/v2/controls/AnalyticalListPageKPI.d.ts +1 -0
- package/dist/types/src/v2/controls/AnalyticalListPageKPI.d.ts.map +1 -1
- package/dist/types/src/v2/controls/Card.d.ts +13 -0
- package/dist/types/src/v2/controls/Card.d.ts.map +1 -1
- package/dist/types/src/v2/controls/Card.js.map +1 -1
- package/dist/types/src/v2/controls/Field.d.ts +1 -0
- package/dist/types/src/v2/controls/Field.d.ts.map +1 -1
- package/dist/types/src/v2/controls/FilterBar.d.ts +6 -0
- package/dist/types/src/v2/controls/FilterBar.d.ts.map +1 -1
- package/dist/types/src/v2/controls/FilterBar.js.map +1 -1
- package/dist/types/src/v2/controls/Header.d.ts +1 -0
- package/dist/types/src/v2/controls/Header.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageChart.d.ts +1 -0
- package/dist/types/src/v2/controls/ObjectPageChart.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageFooter.d.ts +2 -0
- package/dist/types/src/v2/controls/ObjectPageFooter.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageForm.d.ts +1 -0
- package/dist/types/src/v2/controls/ObjectPageForm.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageHeader.d.ts +1 -0
- package/dist/types/src/v2/controls/ObjectPageHeader.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageHeaderSection.d.ts +3 -0
- package/dist/types/src/v2/controls/ObjectPageHeaderSection.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageLayout.d.ts +1 -0
- package/dist/types/src/v2/controls/ObjectPageLayout.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageSection.d.ts +13 -0
- package/dist/types/src/v2/controls/ObjectPageSection.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageSection.js.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageTable.d.ts +10 -4
- package/dist/types/src/v2/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageToolBar.d.ts +2 -0
- package/dist/types/src/v2/controls/ObjectPageToolBar.d.ts.map +1 -1
- package/dist/types/src/v2/controls/Table.d.ts +28 -0
- package/dist/types/src/v2/controls/Table.d.ts.map +1 -1
- package/dist/types/src/v2/controls/Table.js.map +1 -1
- package/dist/types/src/v2/controls/ToolBar.d.ts +1 -0
- package/dist/types/src/v2/controls/ToolBar.d.ts.map +1 -1
- package/dist/types/src/v2/pages/AnalyticalListPageConfigV2.d.ts +1 -0
- package/dist/types/src/v2/pages/AnalyticalListPageConfigV2.d.ts.map +1 -1
- package/dist/types/src/v2/pages/ObjectPageConfigV2.d.ts +10 -1
- package/dist/types/src/v2/pages/ObjectPageConfigV2.d.ts.map +1 -1
- package/dist/types/src/v2/pages/OverviewPageConfigV2.d.ts +4 -0
- package/dist/types/src/v2/pages/OverviewPageConfigV2.d.ts.map +1 -1
- package/dist/types/src/v4/controls/FilterBar.d.ts +2 -0
- package/dist/types/src/v4/controls/FilterBar.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageFooter.d.ts +1 -0
- package/dist/types/src/v4/controls/ObjectPageFooter.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageHeader.d.ts +1 -0
- package/dist/types/src/v4/controls/ObjectPageHeader.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageHeaderSection.d.ts +4 -0
- package/dist/types/src/v4/controls/ObjectPageHeaderSection.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageLayout.d.ts +1 -0
- package/dist/types/src/v4/controls/ObjectPageLayout.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageSection.d.ts +15 -0
- package/dist/types/src/v4/controls/ObjectPageSection.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageSection.js.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageTable.d.ts +2 -0
- 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/ObjectPageToolBar.d.ts +3 -0
- package/dist/types/src/v4/controls/ObjectPageToolBar.d.ts.map +1 -1
- package/dist/types/src/v4/controls/Table.d.ts +15 -0
- package/dist/types/src/v4/controls/Table.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ToolBar.d.ts +6 -0
- package/dist/types/src/v4/controls/ToolBar.d.ts.map +1 -1
- package/dist/types/src/v4/webapp/manifest/ManifestSettings.d.ts +22 -0
- package/dist/types/src/v4/webapp/manifest/ManifestSettings.d.ts.map +1 -1
- package/package.json +16 -15
|
@@ -40,6 +40,11 @@
|
|
|
40
40
|
"description": "tableColumnVerticalAlignment provides an option for vertical alignment for the whole responsive table.",
|
|
41
41
|
"manifestPath": "$[\"sap.ui.generic.app\"].settings.tableColumnVerticalAlignment"
|
|
42
42
|
},
|
|
43
|
+
"globalTableSettings": {
|
|
44
|
+
"$ref": "#/definitions/GlobalApplicationTableSettings",
|
|
45
|
+
"description": "Settings for all tables.",
|
|
46
|
+
"manifestPath": "$[\"sap.ui.generic.app\"].settings.tableSettings"
|
|
47
|
+
},
|
|
43
48
|
"title": {
|
|
44
49
|
"description": "Defines the title for the application.",
|
|
45
50
|
"i18nClassification": "TIT: Title of the application",
|
|
@@ -71,10 +76,12 @@
|
|
|
71
76
|
"type": "object",
|
|
72
77
|
"properties": {
|
|
73
78
|
"defaultTwoColumnLayoutType": {
|
|
74
|
-
"$ref": "#/definitions/FlexibleColumnLayoutType"
|
|
79
|
+
"$ref": "#/definitions/FlexibleColumnLayoutType",
|
|
80
|
+
"manifestPath": "$[\"sap.ui.generic.app\"].settings.flexibleColumnLayout.defaultTwoColumnLayoutType"
|
|
75
81
|
},
|
|
76
82
|
"defaultThreeColumnLayoutType": {
|
|
77
|
-
"$ref": "#/definitions/FlexibleColumnLayoutType"
|
|
83
|
+
"$ref": "#/definitions/FlexibleColumnLayoutType",
|
|
84
|
+
"manifestPath": "$[\"sap.ui.generic.app\"].settings.flexibleColumnLayout.defaultThreeColumnLayoutType"
|
|
78
85
|
}
|
|
79
86
|
},
|
|
80
87
|
"additionalProperties": false
|
|
@@ -101,6 +108,19 @@
|
|
|
101
108
|
],
|
|
102
109
|
"type": "string"
|
|
103
110
|
},
|
|
111
|
+
"GlobalApplicationTableSettings": {
|
|
112
|
+
"type": "object",
|
|
113
|
+
"properties": {
|
|
114
|
+
"createMode": {
|
|
115
|
+
"description": "This property acts as a global default for all pages and tables in the application. Page-level or table-level definitions override this setting.\nYou can set the following values for this property:\n- creationRows: Used to enable empty rows mode. In create and edit mode, an empty row is added to the table.\n- creationRowsHiddenInEditMode: Similar to \"creationRows\", but in edit mode, the empty row is only displayed when the user clicks the \"Create\" button. This option is available starting with SAPUI5 version 1.110.\n- inline: In create and edit mode, users can use the \"Create\" button to add new entries to the table. We recommend to use \"creationRows\" instead.\nBy default, an empty row is not provided and the \"Create\" button automatically navigates to the item's object page for the newly created entry.",
|
|
116
|
+
"descriptionSrcURL": "https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b",
|
|
117
|
+
"type": "string",
|
|
118
|
+
"const": "inline",
|
|
119
|
+
"manifestPath": "$[\"sap.ui.generic.app\"].settings.tableSettings.createMode"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"additionalProperties": false
|
|
123
|
+
},
|
|
104
124
|
"CloudDevAdaptationStatus": {
|
|
105
125
|
"internal": true,
|
|
106
126
|
"enum": [
|
|
@@ -447,6 +447,10 @@
|
|
|
447
447
|
"views": {
|
|
448
448
|
"$ref": "#/definitions/MultiViewsDefinition"
|
|
449
449
|
},
|
|
450
|
+
"quickVariantSelection": {
|
|
451
|
+
"$ref": "#/definitions/MultiViewsOnTable",
|
|
452
|
+
"description": "With quickVariantSelection, you can switch to multiple views (single table mode).\nEach view links to a variant you have added to your annotations."
|
|
453
|
+
},
|
|
450
454
|
"showTablePersonalisation": {
|
|
451
455
|
"description": "The showTablePersonalisation attribute can be set to false to hide the table personalization button.",
|
|
452
456
|
"type": "boolean",
|
|
@@ -500,6 +504,47 @@
|
|
|
500
504
|
"$ref": "#/definitions/Table"
|
|
501
505
|
}
|
|
502
506
|
},
|
|
507
|
+
"MultiViewsOnTable": {
|
|
508
|
+
"type": "object",
|
|
509
|
+
"properties": {
|
|
510
|
+
"showCounts": {
|
|
511
|
+
"description": "To show the number of available records, set showCounts to true.",
|
|
512
|
+
"type": "boolean",
|
|
513
|
+
"artifactType": "Manifest"
|
|
514
|
+
},
|
|
515
|
+
"variants": {
|
|
516
|
+
"description": "The variants section contains a set of entries that point to a SelectionVariant or SelectionPresentationVariant annotation.",
|
|
517
|
+
"type": "object",
|
|
518
|
+
"additionalProperties": {
|
|
519
|
+
"$ref": "#/definitions/ViewOnTable"
|
|
520
|
+
},
|
|
521
|
+
"artifactType": "Manifest"
|
|
522
|
+
}
|
|
523
|
+
},
|
|
524
|
+
"additionalProperties": false,
|
|
525
|
+
"required": [
|
|
526
|
+
"variants"
|
|
527
|
+
]
|
|
528
|
+
},
|
|
529
|
+
"ViewOnTable": {
|
|
530
|
+
"type": "object",
|
|
531
|
+
"properties": {
|
|
532
|
+
"key": {
|
|
533
|
+
"description": "The key property is mandatory. It is used for initializing the corresponding SegmentedButton item.",
|
|
534
|
+
"type": "string"
|
|
535
|
+
},
|
|
536
|
+
"annotationPath": {
|
|
537
|
+
"description": "Use annotationPath to define a specific variant that points to a SelectionVariant or SelectionPresentationVariant annotation.",
|
|
538
|
+
"type": "string",
|
|
539
|
+
"artifactType": "Manifest"
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
"additionalProperties": false,
|
|
543
|
+
"required": [
|
|
544
|
+
"annotationPath",
|
|
545
|
+
"key"
|
|
546
|
+
]
|
|
547
|
+
},
|
|
503
548
|
"ExportType": {
|
|
504
549
|
"enum": [
|
|
505
550
|
"GW",
|
|
@@ -56,6 +56,13 @@
|
|
|
56
56
|
"footer": {
|
|
57
57
|
"$ref": "#/definitions/ObjectPageFooter<ObjectPageFooterActions>"
|
|
58
58
|
},
|
|
59
|
+
"createMode": {
|
|
60
|
+
"description": "This property applies to all tables within the page. Individual tables can override this setting by defining the property explicitly at table level.\nYou can set the following values for this property:\n- creationRows: Used to enable empty rows mode. In create and edit mode, an empty row is added to the table.\n- creationRowsHiddenInEditMode: Similar to \"creationRows\", but in edit mode, the empty row is only displayed when the user clicks the \"Create\" button. This option is available starting with SAPUI5 version 1.110.\n- inline: In create and edit mode, users can use the \"Create\" button to add new entries to the table. We recommend to use \"creationRows\" instead.\nBy default, an empty row is not provided and the \"Create\" button automatically navigates to the item's object page for the newly created entry.",
|
|
61
|
+
"type": "string",
|
|
62
|
+
"const": "inline",
|
|
63
|
+
"artifactType": "Manifest",
|
|
64
|
+
"descriptionSrcURL": "https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b"
|
|
65
|
+
},
|
|
59
66
|
"$schema": {
|
|
60
67
|
"type": "string"
|
|
61
68
|
}
|
|
@@ -717,7 +724,7 @@
|
|
|
717
724
|
"controlType": "sap.m.Table"
|
|
718
725
|
},
|
|
719
726
|
"createMode": {
|
|
720
|
-
"description": "You can set the following values for this property:\n- creationRows: Used to enable empty rows mode. In create
|
|
727
|
+
"description": "You can set the following values for this property:\n- creationRows: Used to enable empty rows mode. In create and edit mode, an empty row is added to the table.\n- creationRowsHiddenInEditMode: Similar to \"creationRows\", but in edit mode, the empty row is only displayed when the user clicks the \"Create\" button. This option is available starting with SAPUI5 version 1.110.\n- inline: In create and edit mode, users can use the \"Create\" button to add new entries to the table. We recommend to use \"creationRows\" instead.\nBy default, an empty row is not provided and the \"Create\" button automatically navigates to the item's object page for the newly created entry.",
|
|
721
728
|
"type": "string",
|
|
722
729
|
"const": "inline",
|
|
723
730
|
"artifactType": "Manifest",
|
|
@@ -1164,7 +1171,7 @@
|
|
|
1164
1171
|
"controlType": "sap.m.Table"
|
|
1165
1172
|
},
|
|
1166
1173
|
"createMode": {
|
|
1167
|
-
"description": "You can set the following values for this property:\n- creationRows: Used to enable empty rows mode. In create
|
|
1174
|
+
"description": "You can set the following values for this property:\n- creationRows: Used to enable empty rows mode. In create and edit mode, an empty row is added to the table.\n- creationRowsHiddenInEditMode: Similar to \"creationRows\", but in edit mode, the empty row is only displayed when the user clicks the \"Create\" button. This option is available starting with SAPUI5 version 1.110.\n- inline: In create and edit mode, users can use the \"Create\" button to add new entries to the table. We recommend to use \"creationRows\" instead.\nBy default, an empty row is not provided and the \"Create\" button automatically navigates to the item's object page for the newly created entry.",
|
|
1168
1175
|
"type": "string",
|
|
1169
1176
|
"const": "inline",
|
|
1170
1177
|
"artifactType": "Manifest",
|
|
@@ -1252,7 +1259,7 @@
|
|
|
1252
1259
|
"artifactType": "Manifest"
|
|
1253
1260
|
},
|
|
1254
1261
|
"createMode": {
|
|
1255
|
-
"description": "You can set the following values for this property:\n- creationRows: Used to enable empty rows mode. In create
|
|
1262
|
+
"description": "You can set the following values for this property:\n- creationRows: Used to enable empty rows mode. In create and edit mode, an empty row is added to the table.\n- creationRowsHiddenInEditMode: Similar to \"creationRows\", but in edit mode, the empty row is only displayed when the user clicks the \"Create\" button. This option is available starting with SAPUI5 version 1.110.\n- inline: In create and edit mode, users can use the \"Create\" button to add new entries to the table. We recommend to use \"creationRows\" instead.\nBy default, an empty row is not provided and the \"Create\" button automatically navigates to the item's object page for the newly created entry.",
|
|
1256
1263
|
"type": "string",
|
|
1257
1264
|
"const": "inline",
|
|
1258
1265
|
"artifactType": "Manifest",
|
|
@@ -1340,7 +1347,7 @@
|
|
|
1340
1347
|
"artifactType": "Manifest"
|
|
1341
1348
|
},
|
|
1342
1349
|
"createMode": {
|
|
1343
|
-
"description": "You can set the following values for this property:\n- creationRows: Used to enable empty rows mode. In create
|
|
1350
|
+
"description": "You can set the following values for this property:\n- creationRows: Used to enable empty rows mode. In create and edit mode, an empty row is added to the table.\n- creationRowsHiddenInEditMode: Similar to \"creationRows\", but in edit mode, the empty row is only displayed when the user clicks the \"Create\" button. This option is available starting with SAPUI5 version 1.110.\n- inline: In create and edit mode, users can use the \"Create\" button to add new entries to the table. We recommend to use \"creationRows\" instead.\nBy default, an empty row is not provided and the \"Create\" button automatically navigates to the item's object page for the newly created entry.",
|
|
1344
1351
|
"type": "string",
|
|
1345
1352
|
"const": "inline",
|
|
1346
1353
|
"artifactType": "Manifest",
|
|
@@ -1428,7 +1435,7 @@
|
|
|
1428
1435
|
"artifactType": "Manifest"
|
|
1429
1436
|
},
|
|
1430
1437
|
"createMode": {
|
|
1431
|
-
"description": "You can set the following values for this property:\n- creationRows: Used to enable empty rows mode. In create
|
|
1438
|
+
"description": "You can set the following values for this property:\n- creationRows: Used to enable empty rows mode. In create and edit mode, an empty row is added to the table.\n- creationRowsHiddenInEditMode: Similar to \"creationRows\", but in edit mode, the empty row is only displayed when the user clicks the \"Create\" button. This option is available starting with SAPUI5 version 1.110.\n- inline: In create and edit mode, users can use the \"Create\" button to add new entries to the table. We recommend to use \"creationRows\" instead.\nBy default, an empty row is not provided and the \"Create\" button automatically navigates to the item's object page for the newly created entry.",
|
|
1432
1439
|
"type": "string",
|
|
1433
1440
|
"const": "inline",
|
|
1434
1441
|
"artifactType": "Manifest",
|
|
@@ -36,26 +36,22 @@
|
|
|
36
36
|
},
|
|
37
37
|
"cloudDevAdaptationStatus": {
|
|
38
38
|
"$ref": "#/definitions/CloudDevAdaptationStatus",
|
|
39
|
-
"description": "Represents the release status for the developer adaptation in the cloud (relevant for SAP internal only). The supported types are released, deprecated, obsolete, no value means not released."
|
|
40
|
-
"manifestPath": "$[\"sap.fiori\"].cloudDevAdaptationStatus"
|
|
39
|
+
"description": "Represents the release status for the developer adaptation in the cloud (relevant for SAP internal only). The supported types are released, deprecated, obsolete, no value means not released."
|
|
41
40
|
},
|
|
42
41
|
"title": {
|
|
43
42
|
"description": "Defines the title for the application.",
|
|
44
43
|
"i18nClassification": "TIT: Title of the application",
|
|
45
|
-
"type": "string"
|
|
46
|
-
"manifestPath": "$[\"sap.app\"].title"
|
|
44
|
+
"type": "string"
|
|
47
45
|
},
|
|
48
46
|
"description": {
|
|
49
47
|
"description": "Defines the description for the application.",
|
|
50
48
|
"i18nClassification": "TIT: Description of the application",
|
|
51
|
-
"type": "string"
|
|
52
|
-
"manifestPath": "$[\"sap.app\"].description"
|
|
49
|
+
"type": "string"
|
|
53
50
|
},
|
|
54
51
|
"flexEnabled": {
|
|
55
52
|
"description": "Enables key user adaptation for an application.",
|
|
56
53
|
"descriptionSrcURL": "https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53",
|
|
57
|
-
"type": "boolean"
|
|
58
|
-
"manifestPath": "$[\"sap.ui5\"].flexEnabled"
|
|
54
|
+
"type": "boolean"
|
|
59
55
|
}
|
|
60
56
|
},
|
|
61
57
|
"additionalProperties": false
|
|
@@ -66,13 +62,16 @@
|
|
|
66
62
|
"properties": {
|
|
67
63
|
"limitFCLToTwoColumns": {
|
|
68
64
|
"description": "Determines whether the Flexible Column Layout is limited to two columns. If set to true, the third level will be displayed in full screen mode rather than a third column.",
|
|
69
|
-
"type": "boolean"
|
|
65
|
+
"type": "boolean",
|
|
66
|
+
"manifestPath": "$[\"sap.ui5\"].routing.config.flexibleColumnLayout.limitFCLToTwoColumns"
|
|
70
67
|
},
|
|
71
68
|
"defaultTwoColumnLayoutType": {
|
|
72
|
-
"$ref": "#/definitions/FlexibleColumnLayoutType"
|
|
69
|
+
"$ref": "#/definitions/FlexibleColumnLayoutType",
|
|
70
|
+
"manifestPath": "$[\"sap.ui5\"].routing.config.flexibleColumnLayout.defaultTwoColumnLayoutType"
|
|
73
71
|
},
|
|
74
72
|
"defaultThreeColumnLayoutType": {
|
|
75
|
-
"$ref": "#/definitions/FlexibleColumnLayoutType"
|
|
73
|
+
"$ref": "#/definitions/FlexibleColumnLayoutType",
|
|
74
|
+
"manifestPath": "$[\"sap.ui5\"].routing.config.flexibleColumnLayout.defaultThreeColumnLayoutType"
|
|
76
75
|
}
|
|
77
76
|
},
|
|
78
77
|
"additionalProperties": false
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/ux-specification",
|
|
3
|
-
"version": "1.84.
|
|
3
|
+
"version": "1.84.129",
|
|
4
4
|
"displayName": "SAP Fiori tools - Specification",
|
|
5
5
|
"description": "SAP Fiori tools - Specification",
|
|
6
6
|
"files": [
|
|
@@ -34,11 +34,12 @@
|
|
|
34
34
|
"docuV4": "ts-node ./scripts/extractDocu.ts --version=v4 format=excel",
|
|
35
35
|
"htmlV2": "ts-node ./scripts/extractDocu.ts --version=v2 --format=html",
|
|
36
36
|
"htmlV4": "ts-node ./scripts/extractDocu.ts --version=v4 --format=html",
|
|
37
|
-
"lint": "eslint .
|
|
38
|
-
"lint:summary": "eslint .
|
|
39
|
-
"lint:fix": "eslint . --
|
|
40
|
-
"lint:report": "eslint .
|
|
41
|
-
"lint:report:jslint": "eslint .
|
|
37
|
+
"lint": "eslint .",
|
|
38
|
+
"lint:summary": "eslint . -f summary",
|
|
39
|
+
"lint:fix": "eslint . --fix",
|
|
40
|
+
"lint:report": "eslint . -f multiple",
|
|
41
|
+
"lint:report:jslint": "eslint . -o reports/lint/eslint.jslint.xml -f jslint-xml",
|
|
42
|
+
"macros": "ts-node ./scripts/macros/index.ts",
|
|
42
43
|
"test": "jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info",
|
|
43
44
|
"test:ci": "jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info",
|
|
44
45
|
"update-snapshots": "jest --updateSnapshot",
|
|
@@ -48,19 +49,19 @@
|
|
|
48
49
|
"publisher": "SAPSE",
|
|
49
50
|
"license": "SEE LICENSE IN LICENSE",
|
|
50
51
|
"dependencies": {
|
|
51
|
-
"@sap-ux/vocabularies-types": "0.
|
|
52
|
+
"@sap-ux/vocabularies-types": "0.14.5"
|
|
52
53
|
},
|
|
53
54
|
"devDependencies": {
|
|
54
|
-
"@sap-ux/annotation-converter": "0.10.
|
|
55
|
-
"@sap-ux/edmx-parser": "0.9.
|
|
56
|
-
"@sap-ux/project-access": "1.
|
|
57
|
-
"@sap/ux-specification-types": "1.84.
|
|
55
|
+
"@sap-ux/annotation-converter": "0.10.19",
|
|
56
|
+
"@sap-ux/edmx-parser": "0.9.8",
|
|
57
|
+
"@sap-ux/project-access": "1.34.2",
|
|
58
|
+
"@sap/ux-specification-types": "1.84.129",
|
|
58
59
|
"@sapui5/ts-types": "latest-1.84",
|
|
59
60
|
"@types/d3": "7.4.3",
|
|
60
61
|
"@types/jquery": "3.5.33",
|
|
62
|
+
"@types/json-schema": "7.0.15",
|
|
61
63
|
"@types/mem-fs": "1.1.5",
|
|
62
64
|
"@types/mem-fs-editor": "7.0.1",
|
|
63
|
-
"@types/json-schema": "7.0.5",
|
|
64
65
|
"@ui5/flexibility-utils": "0.1.3",
|
|
65
66
|
"@xml-tools/ast": "5.0.5",
|
|
66
67
|
"@xml-tools/parser": "1.0.11",
|
|
@@ -69,16 +70,16 @@
|
|
|
69
70
|
"d3": "7.9.0",
|
|
70
71
|
"deepmerge": "4.3.1",
|
|
71
72
|
"ejs": "3.1.10",
|
|
73
|
+
"eslint-formatter-checkstyle": "9.0.1",
|
|
72
74
|
"excel4node": "1.8.2",
|
|
73
|
-
"i18next": "25.7.
|
|
75
|
+
"i18next": "25.7.4",
|
|
74
76
|
"jquery": "3.7.1",
|
|
75
77
|
"jsdom": "25.0.1",
|
|
76
|
-
"lodash.unset": "4.5.2",
|
|
77
78
|
"mem-fs": "2.1.0",
|
|
78
79
|
"mem-fs-editor": "9.7.0",
|
|
79
80
|
"path": "0.12.7",
|
|
80
81
|
"reflect-metadata": "0.2.2",
|
|
81
|
-
"typescript-json-schema": "0.
|
|
82
|
+
"typescript-json-schema": "0.67.1",
|
|
82
83
|
"xml-js": "1.6.11"
|
|
83
84
|
},
|
|
84
85
|
"husky": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-json-schema.d.ts","sourceRoot":"","sources":["../../../../scripts/schema/to-json-schema.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AAS1F,MAAM,MAAM,MAAM,GAAG;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AA6BhD;;;;;GAKG;AACH,wBAAgB,kCAAkC,CAAC,OAAO,CAAC,EAAE,yBAAyB,QAErF;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,oBAAoB,GAAG,MAAM,EAAE,CA4BxG;
|
|
1
|
+
{"version":3,"file":"to-json-schema.d.ts","sourceRoot":"","sources":["../../../../scripts/schema/to-json-schema.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AAS1F,MAAM,MAAM,MAAM,GAAG;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AA6BhD;;;;;GAKG;AACH,wBAAgB,kCAAkC,CAAC,OAAO,CAAC,EAAE,yBAAyB,QAErF;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,oBAAoB,GAAG,MAAM,EAAE,CA4BxG;AAoID;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,yBAqBzC,CAAC;AAEF;;;GAGG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CA0BrD"}
|
|
@@ -200,20 +200,30 @@ function addManifestPathsToApplication(schema, classPrototype) {
|
|
|
200
200
|
for (const property in schema.definitions.AppSettings.properties) {
|
|
201
201
|
const propertySchema = schema.definitions.AppSettings.properties[property];
|
|
202
202
|
const rule = (0, decoration_1.getReflectMetadata)(classPrototype, property);
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
}
|
|
203
|
+
if (!rule?.manifest?.path) {
|
|
204
|
+
return;
|
|
205
|
+
}
|
|
206
|
+
const exportPropertyKey = rule?.manifest?.key ?? property;
|
|
207
|
+
const manifestPath = `${rule.manifest.path()}/${exportPropertyKey}`;
|
|
208
|
+
propertySchema.manifestPath = (0, utils_2.convertSyncRulePathToJsonPath)(manifestPath);
|
|
209
|
+
// Continue parsing of inner properties
|
|
210
|
+
// Handle anyOf with inner properties
|
|
211
|
+
if (propertySchema.anyOf) {
|
|
212
|
+
for (const innerSchema of propertySchema.anyOf) {
|
|
213
|
+
if (!innerSchema.properties) {
|
|
214
|
+
continue;
|
|
216
215
|
}
|
|
216
|
+
for (const property in innerSchema.properties) {
|
|
217
|
+
innerSchema.properties[property].manifestPath = (0, utils_2.appendJsonPathSegment)(propertySchema.manifestPath, property);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
// Handle $ref with inner properties
|
|
222
|
+
if (propertySchema.manifestPath && propertySchema.$ref) {
|
|
223
|
+
const innerDefinitions = (0, utils_2.getDefinitionKey)(propertySchema.$ref);
|
|
224
|
+
const innerProperties = schema.definitions[innerDefinitions]?.properties ?? {};
|
|
225
|
+
for (const innerProperty in innerProperties) {
|
|
226
|
+
innerProperties[innerProperty].manifestPath = (0, utils_2.appendJsonPathSegment)(propertySchema.manifestPath, innerProperty);
|
|
217
227
|
}
|
|
218
228
|
}
|
|
219
229
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-json-schema.js","sourceRoot":"","sources":["../../../../scripts/schema/to-json-schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDA,gFAEC;AAOD,8CA4BC;
|
|
1
|
+
{"version":3,"file":"to-json-schema.js","sourceRoot":"","sources":["../../../../scripts/schema/to-json-schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDA,gFAEC;AAOD,8CA4BC;AAkKD,oCA0BC;AAvRD,+BAAsC;AACtC,uCAAyB;AAEzB,mEAA6E;AAE7E,4DAAmE;AACnE,8DAA0F;AAC1F,8DAA0F;AAE1F,wEAAmE;AAGnE,+FAA4F;AAC5F,6FAA+E;AAC/E,iEAAsE;AACtE,uDAAqH;AACrH,+DAA6E;AAC7E,+DAA6E;AAI7E,4CAA4C;AAC5C,MAAM,eAAe,GAAG;IACpB,YAAY,EAAE,IAAI;IAClB,KAAK,EAAE,CAAC,MAAM,EAAE,kBAAkB,EAAE,M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I,CAAC,CAAC;AACvD,CAAC"}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import 'reflect-metadata';
|
|
2
|
-
import type { SyncRule, PageLayoutInformation, ValidityInformation, SyncRuleProvider } from '@sap/ux-specification-types';
|
|
3
|
-
export declare const
|
|
2
|
+
import type { SyncRule, PageLayoutInformation, ValidityInformation, SyncRuleProvider, Validity, BooleanCondition, DependsOnCondition, DependsOnMessage, MultiDependsOnCondition } from '@sap/ux-specification-types';
|
|
3
|
+
export declare const metadataKeys: {
|
|
4
|
+
description: symbol;
|
|
5
|
+
hidden: symbol;
|
|
6
|
+
isViewNode: symbol;
|
|
7
|
+
syncRule: symbol;
|
|
8
|
+
dependsOn: symbol;
|
|
9
|
+
validity: symbol;
|
|
10
|
+
};
|
|
4
11
|
export declare const syncRule: (propSpec: SyncRule) => any;
|
|
5
12
|
export declare function getReflectMetadata(target: object, propertyName: string): SyncRule | undefined;
|
|
6
13
|
/**
|
|
@@ -17,7 +24,68 @@ export declare const getPageLayoutInformation: (target: any) => PageLayoutInform
|
|
|
17
24
|
export declare const descriptionUrlMetadataKey: unique symbol;
|
|
18
25
|
export declare const descriptionSrcURL: (id: string) => any;
|
|
19
26
|
export declare const getDescriptionSrcURL: (target: any, propertyName: string) => string;
|
|
20
|
-
export declare const
|
|
21
|
-
|
|
27
|
+
export declare const validity: (validity: Validity) => any;
|
|
28
|
+
/**
|
|
29
|
+
* Retrieves the validity metadata associated with a specific property of a target object.
|
|
30
|
+
*
|
|
31
|
+
* @param target - The object containing the property.
|
|
32
|
+
* @param propertyName - The name of the property whose validity metadata is to be retrieved.
|
|
33
|
+
* @returns The validity information of the property, or undefined if no metadata is found.
|
|
34
|
+
*/
|
|
35
|
+
export declare function getValidityMetadata(target: object, propertyName: string): ValidityInformation | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Mark the target class with a metadata flag indicating it is a view node.
|
|
38
|
+
*
|
|
39
|
+
* @param target - The constructor of the class to be marked as a view node
|
|
40
|
+
*/
|
|
41
|
+
export declare function isViewNode(target: Function): void;
|
|
42
|
+
/**
|
|
43
|
+
* Decorator to add a description to a class or property in the schema.
|
|
44
|
+
*
|
|
45
|
+
* @param text - The description text
|
|
46
|
+
* @returns ClassDecorator
|
|
47
|
+
*/
|
|
48
|
+
export declare function description(text: string): (target: Function) => void;
|
|
49
|
+
/**
|
|
50
|
+
* Decorator to conditionally hide a property in the schema based on a condition function.
|
|
51
|
+
* The condition function is evaluated during schema generation with the appropriate context.
|
|
52
|
+
*
|
|
53
|
+
* @param condition - A function that takes context and returns boolean indicating if property should be hidden
|
|
54
|
+
* @returns PropertyDecorator or ClassDecorator depending on usage
|
|
55
|
+
*/
|
|
56
|
+
export declare function hidden(condition?: BooleanCondition): PropertyDecorator & ClassDecorator;
|
|
57
|
+
/**
|
|
58
|
+
* Helper function to create a DependsOnMessage object.
|
|
59
|
+
*
|
|
60
|
+
* @param text - The message text (can be true for default i18n message, a string, or a function)
|
|
61
|
+
* @param deletable - Whether the message can be deleted/dismissed in the UI
|
|
62
|
+
* @returns A DependsOnMessage object
|
|
63
|
+
*/
|
|
64
|
+
export declare const dependsOnMessage: (text?: DependsOnMessage["text"], deletable?: boolean) => DependsOnMessage;
|
|
65
|
+
/**
|
|
66
|
+
* Decorator to conditionally show/hide a property based on one or more property values.
|
|
67
|
+
* The decorated property will be hidden if the dependency condition(s) are not met.
|
|
68
|
+
*
|
|
69
|
+
* @param pathOrConditions - A string property path or an array of condition objects (all must be met)
|
|
70
|
+
* @param conditionOrValueOrMessage - Single condition: condition/expected value/message; Multi-condition: message parameter
|
|
71
|
+
* @param message - Optional message parameter (only for single condition with condition/value)
|
|
72
|
+
* @returns PropertyDecorator
|
|
73
|
+
*/
|
|
74
|
+
export declare function dependsOn(pathOrConditions: string | MultiDependsOnCondition, conditionOrValueOrMessage?: BooleanCondition | any | DependsOnMessage, message?: DependsOnMessage): PropertyDecorator;
|
|
75
|
+
/**
|
|
76
|
+
* Retrieves the dependsOn metadata associated with a specific property of a target object.
|
|
77
|
+
*
|
|
78
|
+
* @param target - The object containing the property.
|
|
79
|
+
* @param propertyName - The name of the property whose dependsOn metadata is to be retrieved.
|
|
80
|
+
* @returns The dependsOn information of the property, or undefined if no metadata is found.
|
|
81
|
+
*/
|
|
82
|
+
export declare function getDependsOnMetadata(target: object, propertyName: string): DependsOnCondition | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* Generates a deprecation message for a given key, optionally including additional validity information.
|
|
85
|
+
*
|
|
86
|
+
* @param key - The key or property name that is deprecated.
|
|
87
|
+
* @param validityInformation - Optional validity information providing details about the deprecation.
|
|
88
|
+
* @returns A string containing the deprecation message.
|
|
89
|
+
*/
|
|
22
90
|
export declare function getTextForDeprecated(key: string, validityInformation?: ValidityInformation): string;
|
|
23
91
|
//# sourceMappingURL=decorators.d.ts.map
|
|
@@ -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,
|
|
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,gBAAgB,EAChB,kBAAkB,EAClB,gBAAgB,EAChB,uBAAuB,EAC1B,MAAM,6BAA6B,CAAC;AAGrC,eAAO,MAAM,YAAY;;;;;;;CAOxB,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,UAAU,QAAQ,KAAG,GAE7C,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,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