@sap/ux-specification 1.96.102 → 1.96.104
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 +59 -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 +249 -250
- package/dist/index-min.js.map +4 -4
- package/dist/schemas/v2/ApplicationV2.json +24 -3
- package/dist/schemas/v2/ListReportNewConfig.json +45 -0
- package/dist/schemas/v2/ObjectPageConfig.json +12 -5
- package/dist/schemas/v4/ApplicationV4.json +12 -6
- package/dist/schemas/v4/BuildingBlocksConfig.json +10 -5
- package/dist/schemas/v4/ObjectPageConfig.json +1 -1
- package/dist/specification/package.json +17 -17
- package/dist/specification/scripts/macros/schema.d.ts.map +1 -1
- package/dist/specification/scripts/macros/schema.js +4 -1
- package/dist/specification/scripts/macros/schema.js.map +1 -1
- package/dist/specification/scripts/schema/to-json-schema.d.ts.map +1 -1
- package/dist/specification/scripts/schema/to-json-schema.js +23 -13
- package/dist/specification/scripts/schema/to-json-schema.js.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorators.d.ts +65 -4
- package/dist/specification/src/sync/common/decoration/decorators.d.ts.map +1 -1
- package/dist/specification/src/sync/common/decoration/decorators.js +138 -8
- package/dist/specification/src/sync/common/decoration/decorators.js.map +1 -1
- package/dist/specification/src/sync/common/distTagEvaluator.d.ts +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/objectPage.js +3 -1
- package/dist/specification/src/sync/common/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/common/generate/utils.d.ts +13 -4
- package/dist/specification/src/sync/common/generate/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/generate/utils.js +35 -20
- 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 +52 -1
- package/dist/specification/src/sync/common/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/common/utils.js +194 -4
- package/dist/specification/src/sync/common/utils.js.map +1 -1
- package/dist/specification/src/sync/v2/application.d.ts +1 -0
- package/dist/specification/src/sync/v2/application.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/application.js +18 -0
- package/dist/specification/src/sync/v2/application.js.map +1 -1
- package/dist/specification/src/sync/v2/export/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPage.js +15 -4
- package/dist/specification/src/sync/v2/export/exportPage.js.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js +8 -15
- package/dist/specification/src/sync/v2/export/exportPageGeneric.js.map +1 -1
- package/dist/specification/src/sync/v2/export/factory.d.ts +26 -0
- package/dist/specification/src/sync/v2/export/factory.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/factory.js +3 -3
- package/dist/specification/src/sync/v2/export/factory.js.map +1 -1
- package/dist/specification/src/sync/v2/export/pages/ObjectPage.d.ts +1 -0
- package/dist/specification/src/sync/v2/export/pages/ObjectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/pages/ObjectPage.js +11 -0
- package/dist/specification/src/sync/v2/export/pages/ObjectPage.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/analyticalListReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/analyticalListReport.js +46 -0
- package/dist/specification/src/sync/v2/generate/analyticalListReport.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/listReport.js +46 -1
- package/dist/specification/src/sync/v2/generate/listReport.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/objectPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/objectPage.js +63 -13
- package/dist/specification/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js +28 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiViewSingleTable.d.ts +22 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiViewSingleTable.d.ts.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiViewSingleTable.js +124 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/MultiViewSingleTable.js.map +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.js +4 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Table.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.d.ts +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.js +1 -0
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/index.js.map +1 -1
- package/dist/specification/src/sync/v2/import/importPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/importPage.js +5 -6
- package/dist/specification/src/sync/v2/import/importPage.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/overviewPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/overviewPage.js +4 -0
- package/dist/specification/src/sync/v2/import/pages/overviewPage.js.map +1 -1
- package/dist/specification/src/sync/v2/utils.d.ts +17 -1
- package/dist/specification/src/sync/v2/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/utils.js +57 -0
- package/dist/specification/src/sync/v2/utils.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Header.d.ts +3 -2
- package/dist/specification/src/sync/v4/export/controls/Header.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/Header.js +14 -2
- package/dist/specification/src/sync/v4/export/controls/Header.js.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/HeaderAction.d.ts +2 -1
- package/dist/specification/src/sync/v4/export/controls/HeaderAction.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/controls/HeaderAction.js +7 -2
- package/dist/specification/src/sync/v4/export/controls/HeaderAction.js.map +1 -1
- package/dist/specification/src/sync/v4/export/export.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/export.js +11 -3
- package/dist/specification/src/sync/v4/export/export.js.map +1 -1
- package/dist/specification/src/sync/v4/export/pages/ListReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/export/pages/ListReport.js +2 -1
- package/dist/specification/src/sync/v4/export/pages/ListReport.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/ListReportUtils.d.ts +107 -0
- package/dist/specification/src/sync/v4/generate/ListReportUtils.d.ts.map +1 -0
- package/dist/specification/src/sync/v4/generate/ListReportUtils.js +374 -0
- package/dist/specification/src/sync/v4/generate/ListReportUtils.js.map +1 -0
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js +8 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js.map +1 -1
- package/dist/specification/src/sync/v4/generate/listReport.d.ts +100 -2
- package/dist/specification/src/sync/v4/generate/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/listReport.js +127 -107
- 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 +25 -26
- package/dist/specification/src/sync/v4/generate/objectPage.js.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/listReport.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/import/pages/listReport.js +15 -10
- package/dist/specification/src/sync/v4/import/pages/listReport.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 -28
- package/dist/specification/src/sync/v4/utils/utils.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/utils/utils.js +8 -55
- package/dist/specification/src/sync/v4/utils/utils.js.map +1 -1
- package/dist/types/src/common/types.d.ts +121 -1
- package/dist/types/src/common/types.d.ts.map +1 -1
- package/dist/types/src/common/types.js +16 -1
- package/dist/types/src/common/types.js.map +1 -1
- package/dist/types/src/common/webapp/manifest/Manifest.d.ts +1 -1
- package/dist/types/src/common/webapp/manifest/Manifest.d.ts.map +1 -1
- package/dist/types/src/v2/application.d.ts +18 -0
- package/dist/types/src/v2/application.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageHeaderSection.d.ts.map +1 -1
- package/dist/types/src/v2/controls/ObjectPageTable.d.ts +4 -4
- package/dist/types/src/v2/controls/ObjectPageTable.d.ts.map +1 -1
- package/dist/types/src/v2/controls/Table.d.ts.map +1 -1
- package/dist/types/src/v2/pages/ObjectPageConfigV2.d.ts +10 -1
- package/dist/types/src/v2/pages/ObjectPageConfigV2.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageHeader.d.ts +1 -1
- package/dist/types/src/v4/controls/ObjectPageHeaderSection.d.ts.map +1 -1
- package/dist/types/src/v4/controls/ObjectPageSection.d.ts.map +1 -1
- package/package.json +17 -17
|
@@ -50,6 +50,11 @@
|
|
|
50
50
|
"description": "Allows applications to configure persistence mode in an object page. Persistence mode retains the tab selection made on an object page in certain cases.",
|
|
51
51
|
"manifestPath": "$[\"sap.ui.generic.app\"].settings.statePreservationMode"
|
|
52
52
|
},
|
|
53
|
+
"globalTableSettings": {
|
|
54
|
+
"$ref": "#/definitions/GlobalApplicationTableSettings",
|
|
55
|
+
"description": "Settings for all tables.",
|
|
56
|
+
"manifestPath": "$[\"sap.ui.generic.app\"].settings.tableSettings"
|
|
57
|
+
},
|
|
53
58
|
"title": {
|
|
54
59
|
"description": "Defines the title for the application.",
|
|
55
60
|
"i18nClassification": "TIT: Title of the application",
|
|
@@ -81,10 +86,12 @@
|
|
|
81
86
|
"type": "object",
|
|
82
87
|
"properties": {
|
|
83
88
|
"defaultTwoColumnLayoutType": {
|
|
84
|
-
"$ref": "#/definitions/FlexibleColumnLayoutType"
|
|
89
|
+
"$ref": "#/definitions/FlexibleColumnLayoutType",
|
|
90
|
+
"manifestPath": "$[\"sap.ui.generic.app\"].settings.flexibleColumnLayout.defaultTwoColumnLayoutType"
|
|
85
91
|
},
|
|
86
92
|
"defaultThreeColumnLayoutType": {
|
|
87
|
-
"$ref": "#/definitions/FlexibleColumnLayoutType"
|
|
93
|
+
"$ref": "#/definitions/FlexibleColumnLayoutType",
|
|
94
|
+
"manifestPath": "$[\"sap.ui.generic.app\"].settings.flexibleColumnLayout.defaultThreeColumnLayoutType"
|
|
88
95
|
}
|
|
89
96
|
},
|
|
90
97
|
"additionalProperties": false
|
|
@@ -117,7 +124,8 @@
|
|
|
117
124
|
"enabled": {
|
|
118
125
|
"description": "Allows applications to turn off the discard draft confirmation popup in various scenarios.",
|
|
119
126
|
"type": "string",
|
|
120
|
-
"const": "restricted"
|
|
127
|
+
"const": "restricted",
|
|
128
|
+
"manifestPath": "$[\"sap.ui.generic.app\"].settings.draftDiscardConfirmationSettings.enabled"
|
|
121
129
|
}
|
|
122
130
|
},
|
|
123
131
|
"additionalProperties": false,
|
|
@@ -132,6 +140,19 @@
|
|
|
132
140
|
],
|
|
133
141
|
"type": "string"
|
|
134
142
|
},
|
|
143
|
+
"GlobalApplicationTableSettings": {
|
|
144
|
+
"type": "object",
|
|
145
|
+
"properties": {
|
|
146
|
+
"createMode": {
|
|
147
|
+
"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.",
|
|
148
|
+
"descriptionSrcURL": "https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b",
|
|
149
|
+
"type": "string",
|
|
150
|
+
"const": "inline",
|
|
151
|
+
"manifestPath": "$[\"sap.ui.generic.app\"].settings.tableSettings.createMode"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"additionalProperties": false
|
|
155
|
+
},
|
|
135
156
|
"CloudDevAdaptationStatus": {
|
|
136
157
|
"internal": true,
|
|
137
158
|
"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
|
"smarttable.ExportType": {
|
|
504
549
|
"description": "Provides the type of services available for export in the `SmartTable` control.",
|
|
505
550
|
"enum": [
|
|
@@ -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
|
}
|
|
@@ -718,7 +725,7 @@
|
|
|
718
725
|
"controlType": "sap.m.Table"
|
|
719
726
|
},
|
|
720
727
|
"createMode": {
|
|
721
|
-
"description": "You can set the following values for this property:\n- creationRows: Used to enable empty rows mode. In create
|
|
728
|
+
"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.",
|
|
722
729
|
"type": "string",
|
|
723
730
|
"const": "inline",
|
|
724
731
|
"artifactType": "Manifest",
|
|
@@ -1174,7 +1181,7 @@
|
|
|
1174
1181
|
"controlType": "sap.m.Table"
|
|
1175
1182
|
},
|
|
1176
1183
|
"createMode": {
|
|
1177
|
-
"description": "You can set the following values for this property:\n- creationRows: Used to enable empty rows mode. In create
|
|
1184
|
+
"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.",
|
|
1178
1185
|
"type": "string",
|
|
1179
1186
|
"const": "inline",
|
|
1180
1187
|
"artifactType": "Manifest",
|
|
@@ -1269,7 +1276,7 @@
|
|
|
1269
1276
|
"artifactType": "Manifest"
|
|
1270
1277
|
},
|
|
1271
1278
|
"createMode": {
|
|
1272
|
-
"description": "You can set the following values for this property:\n- creationRows: Used to enable empty rows mode. In create
|
|
1279
|
+
"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.",
|
|
1273
1280
|
"type": "string",
|
|
1274
1281
|
"const": "inline",
|
|
1275
1282
|
"artifactType": "Manifest",
|
|
@@ -1364,7 +1371,7 @@
|
|
|
1364
1371
|
"artifactType": "Manifest"
|
|
1365
1372
|
},
|
|
1366
1373
|
"createMode": {
|
|
1367
|
-
"description": "You can set the following values for this property:\n- creationRows: Used to enable empty rows mode. In create
|
|
1374
|
+
"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.",
|
|
1368
1375
|
"type": "string",
|
|
1369
1376
|
"const": "inline",
|
|
1370
1377
|
"artifactType": "Manifest",
|
|
@@ -1459,7 +1466,7 @@
|
|
|
1459
1466
|
"artifactType": "Manifest"
|
|
1460
1467
|
},
|
|
1461
1468
|
"createMode": {
|
|
1462
|
-
"description": "You can set the following values for this property:\n- creationRows: Used to enable empty rows mode. In create
|
|
1469
|
+
"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.",
|
|
1463
1470
|
"type": "string",
|
|
1464
1471
|
"const": "inline",
|
|
1465
1472
|
"artifactType": "Manifest",
|
|
@@ -82,13 +82,16 @@
|
|
|
82
82
|
"properties": {
|
|
83
83
|
"limitFCLToTwoColumns": {
|
|
84
84
|
"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.",
|
|
85
|
-
"type": "boolean"
|
|
85
|
+
"type": "boolean",
|
|
86
|
+
"manifestPath": "$[\"sap.ui5\"].routing.config.flexibleColumnLayout.limitFCLToTwoColumns"
|
|
86
87
|
},
|
|
87
88
|
"defaultTwoColumnLayoutType": {
|
|
88
|
-
"$ref": "#/definitions/FlexibleColumnLayoutType"
|
|
89
|
+
"$ref": "#/definitions/FlexibleColumnLayoutType",
|
|
90
|
+
"manifestPath": "$[\"sap.ui5\"].routing.config.flexibleColumnLayout.defaultTwoColumnLayoutType"
|
|
89
91
|
},
|
|
90
92
|
"defaultThreeColumnLayoutType": {
|
|
91
|
-
"$ref": "#/definitions/FlexibleColumnLayoutType"
|
|
93
|
+
"$ref": "#/definitions/FlexibleColumnLayoutType",
|
|
94
|
+
"manifestPath": "$[\"sap.ui5\"].routing.config.flexibleColumnLayout.defaultThreeColumnLayoutType"
|
|
92
95
|
}
|
|
93
96
|
},
|
|
94
97
|
"additionalProperties": false
|
|
@@ -140,7 +143,8 @@
|
|
|
140
143
|
"type": "object",
|
|
141
144
|
"properties": {
|
|
142
145
|
"minUI5Version": {
|
|
143
|
-
"type": "string"
|
|
146
|
+
"type": "string",
|
|
147
|
+
"manifestPath": "$[\"sap.ui5\"].dependencies.minUI5Version"
|
|
144
148
|
},
|
|
145
149
|
"libs": {
|
|
146
150
|
"type": "object",
|
|
@@ -152,7 +156,8 @@
|
|
|
152
156
|
}
|
|
153
157
|
},
|
|
154
158
|
"additionalProperties": false
|
|
155
|
-
}
|
|
159
|
+
},
|
|
160
|
+
"manifestPath": "$[\"sap.ui5\"].dependencies.libs"
|
|
156
161
|
},
|
|
157
162
|
"components": {
|
|
158
163
|
"type": "object",
|
|
@@ -164,7 +169,8 @@
|
|
|
164
169
|
}
|
|
165
170
|
},
|
|
166
171
|
"additionalProperties": false
|
|
167
|
-
}
|
|
172
|
+
},
|
|
173
|
+
"manifestPath": "$[\"sap.ui5\"].dependencies.components"
|
|
168
174
|
}
|
|
169
175
|
},
|
|
170
176
|
"additionalProperties": false
|
|
@@ -83,7 +83,8 @@
|
|
|
83
83
|
"isViewNode": false,
|
|
84
84
|
"metadata": {
|
|
85
85
|
"path": [],
|
|
86
|
-
"type": "Aggregation"
|
|
86
|
+
"type": "Aggregation",
|
|
87
|
+
"aggregationCardinality": "Multiple"
|
|
87
88
|
}
|
|
88
89
|
}
|
|
89
90
|
},
|
|
@@ -448,7 +449,8 @@
|
|
|
448
449
|
"isViewNode": true,
|
|
449
450
|
"metadata": {
|
|
450
451
|
"path": [],
|
|
451
|
-
"type": "Aggregation"
|
|
452
|
+
"type": "Aggregation",
|
|
453
|
+
"aggregationCardinality": "Multiple"
|
|
452
454
|
}
|
|
453
455
|
},
|
|
454
456
|
"filterChanged": {
|
|
@@ -636,7 +638,8 @@
|
|
|
636
638
|
"isViewNode": true,
|
|
637
639
|
"metadata": {
|
|
638
640
|
"path": [],
|
|
639
|
-
"type": "Aggregation"
|
|
641
|
+
"type": "Aggregation",
|
|
642
|
+
"aggregationCardinality": "Multiple"
|
|
640
643
|
}
|
|
641
644
|
},
|
|
642
645
|
"columns": {
|
|
@@ -647,7 +650,8 @@
|
|
|
647
650
|
"isViewNode": true,
|
|
648
651
|
"metadata": {
|
|
649
652
|
"path": [],
|
|
650
|
-
"type": "Aggregation"
|
|
653
|
+
"type": "Aggregation",
|
|
654
|
+
"aggregationCardinality": "Multiple"
|
|
651
655
|
}
|
|
652
656
|
},
|
|
653
657
|
"rowPress": {
|
|
@@ -712,7 +716,8 @@
|
|
|
712
716
|
"isViewNode": true,
|
|
713
717
|
"metadata": {
|
|
714
718
|
"path": [],
|
|
715
|
-
"type": "Aggregation"
|
|
719
|
+
"type": "Aggregation",
|
|
720
|
+
"aggregationCardinality": "Multiple"
|
|
716
721
|
}
|
|
717
722
|
}
|
|
718
723
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/ux-specification",
|
|
3
|
-
"version": "1.96.
|
|
3
|
+
"version": "1.96.104",
|
|
4
4
|
"displayName": "SAP Fiori tools - Specification",
|
|
5
5
|
"description": "SAP Fiori tools - Specification",
|
|
6
6
|
"files": [
|
|
@@ -34,11 +34,11 @@
|
|
|
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
42
|
"macros": "ts-node ./scripts/macros/index.ts",
|
|
43
43
|
"test": "jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info",
|
|
44
44
|
"test:ci": "jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info",
|
|
@@ -49,39 +49,39 @@
|
|
|
49
49
|
"publisher": "SAPSE",
|
|
50
50
|
"license": "SEE LICENSE IN LICENSE",
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@sap-ux/fe-fpm-writer": "0.
|
|
53
|
-
"@sap-ux/vocabularies-types": "0.
|
|
52
|
+
"@sap-ux/fe-fpm-writer": "0.42.6",
|
|
53
|
+
"@sap-ux/vocabularies-types": "0.14.6"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@sap-ux/annotation-converter": "0.10.
|
|
57
|
-
"@sap-ux/edmx-parser": "0.9.
|
|
58
|
-
"@sap-ux/project-access": "1.
|
|
59
|
-
"@sap/ux-specification-types": "1.96.
|
|
56
|
+
"@sap-ux/annotation-converter": "0.10.20",
|
|
57
|
+
"@sap-ux/edmx-parser": "0.9.8",
|
|
58
|
+
"@sap-ux/project-access": "1.35.2",
|
|
59
|
+
"@sap/ux-specification-types": "1.96.104",
|
|
60
60
|
"@sapui5/ts-types-esm": "latest-1.96",
|
|
61
61
|
"@types/d3": "7.4.3",
|
|
62
62
|
"@types/jquery": "3.5.33",
|
|
63
|
+
"@types/json-schema": "7.0.15",
|
|
63
64
|
"@types/mem-fs": "1.1.5",
|
|
64
65
|
"@types/mem-fs-editor": "7.0.1",
|
|
65
|
-
"@types/json-schema": "7.0.5",
|
|
66
66
|
"@ui5/flexibility-utils": "0.1.3",
|
|
67
67
|
"@xml-tools/ast": "5.0.5",
|
|
68
68
|
"@xml-tools/parser": "1.0.11",
|
|
69
|
-
"axios": "1.13.
|
|
69
|
+
"axios": "1.13.5",
|
|
70
70
|
"copyfiles": "2.4.1",
|
|
71
71
|
"d3": "7.9.0",
|
|
72
72
|
"deepmerge": "4.3.1",
|
|
73
73
|
"ejs": "3.1.10",
|
|
74
|
+
"eslint-formatter-checkstyle": "9.0.1",
|
|
74
75
|
"excel4node": "1.8.2",
|
|
75
|
-
"i18next": "25.
|
|
76
|
+
"i18next": "25.8.0",
|
|
76
77
|
"jquery": "3.7.1",
|
|
77
78
|
"jsdom": "25.0.1",
|
|
78
|
-
"lodash.unset": "4.5.2",
|
|
79
79
|
"mem-fs": "2.1.0",
|
|
80
80
|
"mem-fs-editor": "9.7.0",
|
|
81
81
|
"path": "0.12.7",
|
|
82
82
|
"reflect-metadata": "0.2.2",
|
|
83
83
|
"semver": "7.7.3",
|
|
84
|
-
"typescript-json-schema": "0.
|
|
84
|
+
"typescript-json-schema": "0.67.1",
|
|
85
85
|
"xml-js": "1.6.11"
|
|
86
86
|
},
|
|
87
87
|
"husky": {
|
|
@@ -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;AAGjB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAIvD,eAAO,MAAM,2BAA2B,EAAE,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAgC,CAAC;AAC1G;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;CAE9B,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;AAGjB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAIvD,eAAO,MAAM,2BAA2B,EAAE,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAgC,CAAC;AAC1G;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;CAE9B,CAAC;AAgTF;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,SAAS,GAAG,gBAAgB,CAkD/D"}
|
|
@@ -222,7 +222,10 @@ function prepareAggregations(aggregation, defaultAggregation) {
|
|
|
222
222
|
isViewNode,
|
|
223
223
|
metadata: {
|
|
224
224
|
path: [],
|
|
225
|
-
type: ux_specification_types_2.MacrosPropertyType.Aggregation
|
|
225
|
+
type: ux_specification_types_2.MacrosPropertyType.Aggregation,
|
|
226
|
+
aggregationCardinality: aggregation.cardinality === '0..1'
|
|
227
|
+
? ux_specification_types_2.MacrosAggregatioCardinality.Single
|
|
228
|
+
: ux_specification_types_2.MacrosAggregatioCardinality.Multiple
|
|
226
229
|
}
|
|
227
230
|
};
|
|
228
231
|
}
|
|
@@ -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":";;;AA+UA,wCAkDC;AAhYD,wEAA2D;AAC3D,wEAA8F;AAU9F,mCAAwH;AACxH,+CAAiD;AAEjD,kDAAwD;AAExD,MAAM,SAAS,GAAG,IAAI,GAAG,CAAiB,CAAC,CAAC,sBAAsB,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;AACnE,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;I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AC,sCAA8B,CAAC,EAAE,kBAAkB,EAC1D,MAAM,CAAC,IAAI,CACd,CAAC;QACF,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC;QACtC,MAAM,UAAU,GAAG,MAAM,CAAC,UAAU,IAAI,EAAE,CAAC;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":"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;;;;;;;GAOG;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;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,oBAAoB,GAAG,MAAM,EAAE,CA4BxG;AAuID;;GAEG;AACH,eAAO,MAAM,2BAA2B,EAAE,yBAwBzC,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,CA0BrD"}
|
|
@@ -209,20 +209,30 @@ function addManifestPathsToApplication(schema, classPrototype) {
|
|
|
209
209
|
for (const property in schema.definitions.AppSettings.properties) {
|
|
210
210
|
const propertySchema = schema.definitions.AppSettings.properties[property];
|
|
211
211
|
const rule = (0, decoration_1.getReflectMetadata)(classPrototype, property);
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
}
|
|
212
|
+
if (!rule?.manifest?.path) {
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
const exportPropertyKey = rule?.manifest?.key ?? property;
|
|
216
|
+
const manifestPath = `${rule.manifest.path()}/${exportPropertyKey}`;
|
|
217
|
+
propertySchema.manifestPath = (0, utils_2.convertSyncRulePathToJsonPath)(manifestPath);
|
|
218
|
+
// Continue parsing of inner properties
|
|
219
|
+
// Handle anyOf with inner properties
|
|
220
|
+
if (propertySchema.anyOf) {
|
|
221
|
+
for (const innerSchema of propertySchema.anyOf) {
|
|
222
|
+
if (!innerSchema.properties) {
|
|
223
|
+
continue;
|
|
225
224
|
}
|
|
225
|
+
for (const property in innerSchema.properties) {
|
|
226
|
+
innerSchema.properties[property].manifestPath = (0, utils_2.appendJsonPathSegment)(propertySchema.manifestPath, property);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
// Handle $ref with inner properties
|
|
231
|
+
if (propertySchema.manifestPath && propertySchema.$ref) {
|
|
232
|
+
const innerDefinitions = (0, utils_2.getDefinitionKey)(propertySchema.$ref);
|
|
233
|
+
const innerProperties = schema.definitions[innerDefinitions]?.properties ?? {};
|
|
234
|
+
for (const innerProperty in innerProperties) {
|
|
235
|
+
innerProperties[innerProperty].manifestPath = (0, utils_2.appendJsonPathSegment)(propertySchema.manifestPath, innerProperty);
|
|
226
236
|
}
|
|
227
237
|
}
|
|
228
238
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-json-schema.js","sourceRoot":"","sources":["../../../../scripts/schema/to-json-schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDA,gFAEC;AAUD,8CA4BC;
|
|
1
|
+
{"version":3,"file":"to-json-schema.js","sourceRoot":"","sources":["../../../../scripts/schema/to-json-schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDA,gFAEC;AAUD,8CA4BC;AAyKD,oCA0BC;AAjSD,+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,sBAAsB,EAAE,MAAM,CAAC;IAC/C,eAAe,EAAE,IAAI;IACrB,iBAAiB,EAAE,IAAI;IACvB,kBAAkB,EAAE,IAAI;CAC3B,CAAC;AAEF,MAAM,iBAAiB,GAAG;IACtB,YAAY,EAAE,IAAI,EAAE,uDAAuD;IAC3E,QAAQ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AAE,CAAC;IACX,KAAK,CAAC,IAAI,CAAC,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IAC3C,uBAAuB,CAAC,KAAK,EAAE,6CAAoB,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC;IACpE,QAAQ;IACR,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,kBAAkB,CAAC,EAAE,6CAAoB,CAAC,EAAE,CAAC,CAAC;IAC7G,QAAQ;IACR,MAAM,YAAY,GAAG,iBAAiB,CAAC,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,kBAAkB,CAAC,EAAE,6CAAoB,CAAC,EAAE,CAAC,CAAC;IAC7G,8BAA8B;IAC9B,kBAAkB,CAAC,EAAE,GAAG,YAAY,EAAE,GAAG,YAAY,EAAE,CAAC,CAAC;IACzD,mBAAmB;IACnB,kBAAkB,CAAC,UAAU,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC;IACnD,kBAAkB,CAAC,UAAU,EAAE,YAAY,EAAE,IAAI,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
|
/**
|
|
6
13
|
* Retrieves the metadata associated with a specific property of a target object.
|
|
@@ -24,8 +31,62 @@ export declare const getPageLayoutInformation: (target: any) => PageLayoutInform
|
|
|
24
31
|
export declare const descriptionUrlMetadataKey: unique symbol;
|
|
25
32
|
export declare const descriptionSrcURL: (id: string) => any;
|
|
26
33
|
export declare const getDescriptionSrcURL: (target: any, propertyName: string) => string;
|
|
27
|
-
export declare const
|
|
28
|
-
|
|
34
|
+
export declare const validity: (validity: Validity) => any;
|
|
35
|
+
/**
|
|
36
|
+
* Retrieves the validity metadata associated with a specific property of a target object.
|
|
37
|
+
*
|
|
38
|
+
* @param target - The object containing the property.
|
|
39
|
+
* @param propertyName - The name of the property whose validity metadata is to be retrieved.
|
|
40
|
+
* @returns The validity information of the property, or undefined if no metadata is found.
|
|
41
|
+
*/
|
|
42
|
+
export declare function getValidityMetadata(target: object, propertyName: string): ValidityInformation | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Mark the target class with a metadata flag indicating it is a view node.
|
|
45
|
+
*
|
|
46
|
+
* @param target - The constructor of the class to be marked as a view node
|
|
47
|
+
*/
|
|
48
|
+
export declare function isViewNode(target: Function): void;
|
|
49
|
+
/**
|
|
50
|
+
* Decorator to add a description to a class or property in the schema.
|
|
51
|
+
*
|
|
52
|
+
* @param text - The description text
|
|
53
|
+
* @returns ClassDecorator
|
|
54
|
+
*/
|
|
55
|
+
export declare function description(text: string): (target: Function) => void;
|
|
56
|
+
/**
|
|
57
|
+
* Decorator to conditionally hide a property in the schema based on a condition function.
|
|
58
|
+
* The condition function is evaluated during schema generation with the appropriate context.
|
|
59
|
+
*
|
|
60
|
+
* @param condition - A function that takes context and returns boolean indicating if property should be hidden
|
|
61
|
+
* @returns PropertyDecorator or ClassDecorator depending on usage
|
|
62
|
+
*/
|
|
63
|
+
export declare function hidden(condition?: BooleanCondition): PropertyDecorator & ClassDecorator;
|
|
64
|
+
/**
|
|
65
|
+
* Helper function to create a DependsOnMessage object.
|
|
66
|
+
*
|
|
67
|
+
* @param text - The message text (can be true for default i18n message, a string, or a function)
|
|
68
|
+
* @param deletable - Whether the message can be deleted/dismissed in the UI
|
|
69
|
+
* @returns A DependsOnMessage object
|
|
70
|
+
*/
|
|
71
|
+
export declare const dependsOnMessage: (text?: DependsOnMessage["text"], deletable?: boolean) => DependsOnMessage;
|
|
72
|
+
/**
|
|
73
|
+
* Decorator to conditionally show/hide a property based on one or more property values.
|
|
74
|
+
* The decorated property will be hidden if the dependency condition(s) are not met.
|
|
75
|
+
*
|
|
76
|
+
* @param pathOrConditions - A string property path or an array of condition objects (all must be met)
|
|
77
|
+
* @param conditionOrValueOrMessage - Single condition: condition/expected value/message; Multi-condition: message parameter
|
|
78
|
+
* @param message - Optional message parameter (only for single condition with condition/value)
|
|
79
|
+
* @returns PropertyDecorator
|
|
80
|
+
*/
|
|
81
|
+
export declare function dependsOn(pathOrConditions: string | MultiDependsOnCondition, conditionOrValueOrMessage?: BooleanCondition | any | DependsOnMessage, message?: DependsOnMessage): PropertyDecorator;
|
|
82
|
+
/**
|
|
83
|
+
* Retrieves the dependsOn metadata associated with a specific property of a target object.
|
|
84
|
+
*
|
|
85
|
+
* @param target - The object containing the property.
|
|
86
|
+
* @param propertyName - The name of the property whose dependsOn metadata is to be retrieved.
|
|
87
|
+
* @returns The dependsOn information of the property, or undefined if no metadata is found.
|
|
88
|
+
*/
|
|
89
|
+
export declare function getDependsOnMetadata(target: object, propertyName: string): DependsOnCondition | undefined;
|
|
29
90
|
/**
|
|
30
91
|
* Generates a deprecation message for a given key, optionally including additional validity information.
|
|
31
92
|
*
|
|
@@ -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
|
+
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