@sap/ux-specification 1.96.26 → 1.96.27
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/dist/documentation/v2/v2-AnalyticalListPage.html +1 -1
- package/dist/documentation/v2/v2-ApplicationV2.html +1 -1
- package/dist/documentation/v2/v2-ListReport.html +1 -1
- package/dist/documentation/v2/v2-ObjectPage.html +1 -1
- package/dist/documentation/v2/v2-OverviewPage.html +1 -1
- package/dist/documentation/v4/v4-ApplicationV4.html +1 -1
- package/dist/documentation/v4/v4-FreestylePage.html +1 -1
- package/dist/documentation/v4/v4-ListReport.html +1 -1
- package/dist/documentation/v4/v4-ObjectPage.html +1 -1
- package/dist/index-min.js +185 -55
- package/dist/index-min.js.map +3 -3
- package/dist/schemas/v2/ObjectPageConfig.json +4 -4
- package/dist/schemas/v4/ListReportConfig.json +38 -15
- package/dist/schemas/v4/ObjectPageConfig.json +126 -52
- package/dist/src/api.js +1 -1
- package/dist/src/sync/common/generate/objectPage.d.ts +10 -6
- package/dist/src/sync/common/generate/objectPage.d.ts.map +1 -1
- package/dist/src/sync/common/generate/objectPage.js +224 -115
- package/dist/src/sync/common/generate/objectPage.js.map +1 -1
- package/dist/src/sync/common/generate/utils.d.ts +1 -1
- package/dist/src/sync/common/generate/utils.d.ts.map +1 -1
- package/dist/src/sync/common/generate/utils.js +13 -5
- package/dist/src/sync/common/generate/utils.js.map +1 -1
- package/dist/src/sync/common/utils.d.ts.map +1 -1
- package/dist/src/sync/common/utils.js +30 -13
- package/dist/src/sync/common/utils.js.map +1 -1
- package/dist/src/sync/v2/export/controls/ObjectPageHeader.d.ts +2 -2
- package/dist/src/sync/v2/export/controls/ObjectPageHeader.d.ts.map +1 -1
- package/dist/src/sync/v2/generate/objectPage.d.ts.map +1 -1
- package/dist/src/sync/v2/generate/objectPage.js +74 -40
- package/dist/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v2/generate/utils.d.ts +1 -1
- package/dist/src/sync/v2/generate/utils.d.ts.map +1 -1
- package/dist/src/sync/v2/generate/utils.js +22 -19
- package/dist/src/sync/v2/generate/utils.js.map +1 -1
- package/dist/src/sync/v4/application.d.ts +3 -0
- package/dist/src/sync/v4/application.d.ts.map +1 -1
- package/dist/src/sync/v4/application.js +13 -1
- package/dist/src/sync/v4/application.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageFooter.d.ts +5 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFooter.d.ts.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFooter.js +7 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFooter.js.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFooterAction.d.ts +9 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFooterAction.d.ts.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFooterAction.js +42 -0
- package/dist/src/sync/v4/export/controls/ObjectPageFooterAction.js.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageForm.d.ts +10 -3
- package/dist/src/sync/v4/export/controls/ObjectPageForm.d.ts.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageForm.js +39 -1
- package/dist/src/sync/v4/export/controls/ObjectPageForm.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageFormAction.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageFormAction.js +8 -8
- package/dist/src/sync/v4/export/controls/ObjectPageHeader.d.ts +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageHeader.d.ts.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageHeader.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderAction.d.ts +9 -0
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderAction.d.ts.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderAction.js +42 -0
- package/dist/src/sync/v4/export/controls/ObjectPageHeaderAction.js.map +1 -0
- package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts +1 -2
- package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.d.ts.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.js +0 -10
- package/dist/src/sync/v4/export/controls/ObjectPageTableColumn.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.d.ts +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.d.ts.map +1 -1
- package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.js +9 -9
- package/dist/src/sync/v4/export/controls/ObjectPageToolBarAction.js.map +1 -1
- package/dist/src/sync/v4/export/controls/Table.js +1 -1
- package/dist/src/sync/v4/export/controls/Table.js.map +1 -1
- package/dist/src/sync/v4/export/controls/ToolBar.d.ts +2 -2
- package/dist/src/sync/v4/export/controls/ToolBar.d.ts.map +1 -1
- package/dist/src/sync/v4/export/controls/ToolBarAction.d.ts +6 -1
- package/dist/src/sync/v4/export/controls/ToolBarAction.d.ts.map +1 -1
- package/dist/src/sync/v4/export/controls/ToolBarAction.js +33 -9
- package/dist/src/sync/v4/export/controls/ToolBarAction.js.map +1 -1
- package/dist/src/sync/v4/export/controls/index.d.ts +4 -0
- package/dist/src/sync/v4/export/controls/index.d.ts.map +1 -1
- package/dist/src/sync/v4/export/controls/index.js +4 -0
- package/dist/src/sync/v4/export/controls/index.js.map +1 -1
- package/dist/src/sync/v4/export/manifest.js +1 -1
- package/dist/src/sync/v4/export/manifest.js.map +1 -1
- package/dist/src/sync/v4/export/pages/ObjectPage.d.ts +1 -0
- package/dist/src/sync/v4/export/pages/ObjectPage.d.ts.map +1 -1
- package/dist/src/sync/v4/export/pages/ObjectPage.js.map +1 -1
- package/dist/src/sync/v4/generate/listReport.d.ts.map +1 -1
- package/dist/src/sync/v4/generate/listReport.js +26 -10
- package/dist/src/sync/v4/generate/listReport.js.map +1 -1
- package/dist/src/sync/v4/generate/objectPage.d.ts.map +1 -1
- package/dist/src/sync/v4/generate/objectPage.js +68 -23
- package/dist/src/sync/v4/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v4/import/app/baseAppProvider.js +1 -1
- package/dist/src/sync/v4/import/app/baseAppProvider.js.map +1 -1
- package/dist/src/sync/v4/import/pages/objectPage.d.ts +2 -1
- package/dist/src/sync/v4/import/pages/objectPage.d.ts.map +1 -1
- package/dist/src/sync/v4/import/pages/objectPage.js +84 -43
- package/dist/src/sync/v4/import/pages/objectPage.js.map +1 -1
- package/dist/src/sync/v4/utils/utils.d.ts.map +1 -1
- package/dist/src/sync/v4/utils/utils.js +7 -7
- package/dist/src/sync/v4/utils/utils.js.map +1 -1
- package/package.json +4 -3
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"artifactType": "Manifest"
|
|
36
36
|
},
|
|
37
37
|
"header": {
|
|
38
|
-
"$ref": "#/definitions/ObjectPageHeader
|
|
38
|
+
"$ref": "#/definitions/ObjectPageHeader"
|
|
39
39
|
},
|
|
40
40
|
"layout": {
|
|
41
41
|
"$ref": "#/definitions/ObjectPageLayout"
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
},
|
|
71
71
|
"additionalProperties": false
|
|
72
72
|
},
|
|
73
|
-
"ObjectPageHeader
|
|
73
|
+
"ObjectPageHeader": {
|
|
74
74
|
"description": "Header",
|
|
75
75
|
"isViewNode": true,
|
|
76
76
|
"type": "object",
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"controlType": "sap.f.Avatar"
|
|
106
106
|
},
|
|
107
107
|
"actions": {
|
|
108
|
-
"$ref": "#/definitions/
|
|
108
|
+
"$ref": "#/definitions/HeaderActions",
|
|
109
109
|
"description": "Set properties of actions on Object Page Header"
|
|
110
110
|
}
|
|
111
111
|
},
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
],
|
|
119
119
|
"type": "string"
|
|
120
120
|
},
|
|
121
|
-
"
|
|
121
|
+
"HeaderActions": {
|
|
122
122
|
"type": "object",
|
|
123
123
|
"additionalProperties": {
|
|
124
124
|
"$ref": "#/definitions/HeaderAction"
|
|
@@ -132,6 +132,10 @@
|
|
|
132
132
|
"$ref": "#/definitions/SelectType",
|
|
133
133
|
"description": "Enables single selection for a bound action",
|
|
134
134
|
"artifactType": "Manifest"
|
|
135
|
+
},
|
|
136
|
+
"afterExecution": {
|
|
137
|
+
"$ref": "#/definitions/ActionAfterExecutionConfigurationToolBarLR",
|
|
138
|
+
"description": "Settings that are only relevant for actions (associated with a UI.DataFieldForAction annotation)"
|
|
135
139
|
}
|
|
136
140
|
},
|
|
137
141
|
"additionalProperties": false
|
|
@@ -143,6 +147,22 @@
|
|
|
143
147
|
],
|
|
144
148
|
"type": "string"
|
|
145
149
|
},
|
|
150
|
+
"ActionAfterExecutionConfigurationToolBarLR": {
|
|
151
|
+
"type": "object",
|
|
152
|
+
"properties": {
|
|
153
|
+
"navigateToInstance": {
|
|
154
|
+
"description": "By default, a navigation is automatically triggered after an action execution. If applications want to disable the navigation, they can do so using the manifest setting “navigateToInstance”.",
|
|
155
|
+
"type": "boolean",
|
|
156
|
+
"artifactType": "Manifest"
|
|
157
|
+
},
|
|
158
|
+
"enableAutoScroll": {
|
|
159
|
+
"description": "The \"enableAutoScroll\" allows you to scroll to the newly created or changed item after execution of an action",
|
|
160
|
+
"type": "boolean",
|
|
161
|
+
"artifactType": "Manifest"
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"additionalProperties": false
|
|
165
|
+
},
|
|
146
166
|
"ViewTableCustomAction": {
|
|
147
167
|
"type": "object",
|
|
148
168
|
"properties": {
|
|
@@ -151,6 +171,11 @@
|
|
|
151
171
|
"description": "Defines the position of the action relative to other actions.",
|
|
152
172
|
"artifactType": "Manifest"
|
|
153
173
|
},
|
|
174
|
+
"requiresSelection": {
|
|
175
|
+
"description": "Indicates whether the action requires a selection of items.",
|
|
176
|
+
"artifactType": "Manifest",
|
|
177
|
+
"type": "boolean"
|
|
178
|
+
},
|
|
154
179
|
"text": {
|
|
155
180
|
"description": "The text that is displayed on the button (typically a binding to an i18n entry).",
|
|
156
181
|
"i18nClassification": "COL: Custom action text",
|
|
@@ -162,11 +187,6 @@
|
|
|
162
187
|
"artifactType": "Manifest",
|
|
163
188
|
"type": "string"
|
|
164
189
|
},
|
|
165
|
-
"requiresSelection": {
|
|
166
|
-
"description": "Indicates whether the action requires a selection of items.",
|
|
167
|
-
"artifactType": "Manifest",
|
|
168
|
-
"type": "boolean"
|
|
169
|
-
},
|
|
170
190
|
"visible": {
|
|
171
191
|
"pattern": "^(false|true)$|^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",
|
|
172
192
|
"anyOf": [
|
|
@@ -371,7 +391,7 @@
|
|
|
371
391
|
"$ref": "#/definitions/ToolBarAction"
|
|
372
392
|
},
|
|
373
393
|
{
|
|
374
|
-
"$ref": "#/definitions/
|
|
394
|
+
"$ref": "#/definitions/CustomTableAction"
|
|
375
395
|
}
|
|
376
396
|
]
|
|
377
397
|
}
|
|
@@ -385,15 +405,23 @@
|
|
|
385
405
|
"$ref": "#/definitions/SelectType",
|
|
386
406
|
"description": "Enables single selection for a bound action",
|
|
387
407
|
"artifactType": "Manifest"
|
|
408
|
+
},
|
|
409
|
+
"afterExecution": {
|
|
410
|
+
"$ref": "#/definitions/ActionAfterExecutionConfigurationToolBarLR",
|
|
411
|
+
"description": "Settings that are only relevant for actions (associated with a UI.DataFieldForAction annotation)",
|
|
412
|
+
"artifactType": "Manifest"
|
|
388
413
|
}
|
|
389
414
|
},
|
|
390
415
|
"additionalProperties": false
|
|
391
416
|
},
|
|
392
|
-
"
|
|
393
|
-
"description": "Action",
|
|
394
|
-
"isViewNode": true,
|
|
417
|
+
"CustomTableAction": {
|
|
395
418
|
"type": "object",
|
|
396
419
|
"properties": {
|
|
420
|
+
"requiresSelection": {
|
|
421
|
+
"description": "Indicates whether the action requires a selection of items.",
|
|
422
|
+
"artifactType": "Manifest",
|
|
423
|
+
"type": "boolean"
|
|
424
|
+
},
|
|
397
425
|
"text": {
|
|
398
426
|
"description": "The text that is displayed on the button (typically a binding to an i18n entry).",
|
|
399
427
|
"i18nClassification": "COL: Custom action text",
|
|
@@ -410,11 +438,6 @@
|
|
|
410
438
|
"artifactType": "Manifest",
|
|
411
439
|
"type": "string"
|
|
412
440
|
},
|
|
413
|
-
"requiresSelection": {
|
|
414
|
-
"description": "Indicates whether the action requires a selection of items.",
|
|
415
|
-
"artifactType": "Manifest",
|
|
416
|
-
"type": "boolean"
|
|
417
|
-
},
|
|
418
441
|
"visible": {
|
|
419
442
|
"pattern": "^(false|true)$|^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",
|
|
420
443
|
"anyOf": [
|
|
@@ -547,7 +570,7 @@
|
|
|
547
570
|
"artifactType": "Manifest"
|
|
548
571
|
},
|
|
549
572
|
"enableAutoScroll": {
|
|
550
|
-
"description": "The \"enableAutoScroll\" allows you to scroll to the newly created or
|
|
573
|
+
"description": "The \"enableAutoScroll\" allows you to scroll to the newly created or changed item after execution of an action",
|
|
551
574
|
"type": "boolean",
|
|
552
575
|
"artifactType": "Manifest"
|
|
553
576
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"type": "object",
|
|
3
3
|
"properties": {
|
|
4
4
|
"header": {
|
|
5
|
-
"$ref": "#/definitions/ObjectPageHeader
|
|
5
|
+
"$ref": "#/definitions/ObjectPageHeader"
|
|
6
6
|
},
|
|
7
7
|
"layout": {
|
|
8
8
|
"$ref": "#/definitions/ObjectPageLayout"
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"additionalProperties": false,
|
|
33
33
|
"definitions": {
|
|
34
|
-
"ObjectPageHeader
|
|
34
|
+
"ObjectPageHeader": {
|
|
35
35
|
"description": "Header",
|
|
36
36
|
"isViewNode": true,
|
|
37
37
|
"type": "object",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"artifactType": "Manifest"
|
|
58
58
|
},
|
|
59
59
|
"actions": {
|
|
60
|
-
"$ref": "#/definitions/
|
|
60
|
+
"$ref": "#/definitions/HeaderActions"
|
|
61
61
|
},
|
|
62
62
|
"sections": {
|
|
63
63
|
"$ref": "#/definitions/HeaderSections"
|
|
@@ -65,14 +65,39 @@
|
|
|
65
65
|
},
|
|
66
66
|
"additionalProperties": false
|
|
67
67
|
},
|
|
68
|
-
"
|
|
68
|
+
"HeaderActions": {
|
|
69
69
|
"type": "object",
|
|
70
70
|
"additionalProperties": {
|
|
71
|
-
"
|
|
72
|
-
"properties": {},
|
|
73
|
-
"additionalProperties": true
|
|
71
|
+
"$ref": "#/definitions/HeaderActionV4"
|
|
74
72
|
}
|
|
75
73
|
},
|
|
74
|
+
"HeaderActionV4": {
|
|
75
|
+
"type": "object",
|
|
76
|
+
"properties": {
|
|
77
|
+
"afterExecution": {
|
|
78
|
+
"$ref": "#/definitions/ActionAfterExecutionConfigurationHeader",
|
|
79
|
+
"description": "Settings that are only relevant for actions (associated with a UI.DataFieldForAction annotation)",
|
|
80
|
+
"artifactType": "Manifest"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"additionalProperties": false
|
|
84
|
+
},
|
|
85
|
+
"ActionAfterExecutionConfigurationHeader": {
|
|
86
|
+
"type": "object",
|
|
87
|
+
"properties": {
|
|
88
|
+
"navigateToInstance": {
|
|
89
|
+
"description": "By default, a navigation is automatically triggered after an action execution. If applications want to disable the navigation, they can do so using the manifest setting “navigateToInstance”.",
|
|
90
|
+
"type": "boolean",
|
|
91
|
+
"artifactType": "Manifest"
|
|
92
|
+
},
|
|
93
|
+
"enableAutoScroll": {
|
|
94
|
+
"description": "The \"enableAutoScroll\" allows you to scroll to the newly created or changed item after execution of an action",
|
|
95
|
+
"type": "boolean",
|
|
96
|
+
"artifactType": "Manifest"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"additionalProperties": false
|
|
100
|
+
},
|
|
76
101
|
"HeaderSections": {
|
|
77
102
|
"description": "Header Sections",
|
|
78
103
|
"isViewNode": true,
|
|
@@ -346,7 +371,7 @@
|
|
|
346
371
|
"$ref": "#/definitions/ObjectPageToolBarAction"
|
|
347
372
|
},
|
|
348
373
|
{
|
|
349
|
-
"$ref": "#/definitions/
|
|
374
|
+
"$ref": "#/definitions/CustomTableActionOP"
|
|
350
375
|
}
|
|
351
376
|
]
|
|
352
377
|
}
|
|
@@ -371,7 +396,7 @@
|
|
|
371
396
|
],
|
|
372
397
|
"type": "string"
|
|
373
398
|
},
|
|
374
|
-
"
|
|
399
|
+
"CustomTableActionOP": {
|
|
375
400
|
"type": "object",
|
|
376
401
|
"properties": {
|
|
377
402
|
"position": {
|
|
@@ -379,6 +404,11 @@
|
|
|
379
404
|
"description": "Defines the position of the action relative to other actions.",
|
|
380
405
|
"artifactType": "Manifest"
|
|
381
406
|
},
|
|
407
|
+
"requiresSelection": {
|
|
408
|
+
"description": "Indicates whether the action requires a selection of items.",
|
|
409
|
+
"artifactType": "Manifest",
|
|
410
|
+
"type": "boolean"
|
|
411
|
+
},
|
|
382
412
|
"text": {
|
|
383
413
|
"description": "The text that is displayed on the button (typically a binding to an i18n entry).",
|
|
384
414
|
"i18nClassification": "COL: Custom action text",
|
|
@@ -390,11 +420,6 @@
|
|
|
390
420
|
"artifactType": "Manifest",
|
|
391
421
|
"type": "string"
|
|
392
422
|
},
|
|
393
|
-
"requiresSelection": {
|
|
394
|
-
"description": "Indicates whether the action requires a selection of items.",
|
|
395
|
-
"artifactType": "Manifest",
|
|
396
|
-
"type": "boolean"
|
|
397
|
-
},
|
|
398
423
|
"visible": {
|
|
399
424
|
"pattern": "^(false|true)$|^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",
|
|
400
425
|
"anyOf": [
|
|
@@ -595,11 +620,6 @@
|
|
|
595
620
|
"isViewNode": true,
|
|
596
621
|
"type": "object",
|
|
597
622
|
"properties": {
|
|
598
|
-
"afterExecution": {
|
|
599
|
-
"$ref": "#/definitions/ActionAfterExecutionConfigurationOP",
|
|
600
|
-
"description": "Settings that are only relevant for actions (associated with a UI.DataFieldForAction annotation)",
|
|
601
|
-
"artifactType": "Manifest"
|
|
602
|
-
},
|
|
603
623
|
"width": {
|
|
604
624
|
"description": "A string type that represents CSS size values.\nRefer to https://openui5.hana.ondemand.com/api/sap.ui.core.CSSSize.",
|
|
605
625
|
"type": "string",
|
|
@@ -613,22 +633,6 @@
|
|
|
613
633
|
},
|
|
614
634
|
"additionalProperties": false
|
|
615
635
|
},
|
|
616
|
-
"ActionAfterExecutionConfigurationOP": {
|
|
617
|
-
"type": "object",
|
|
618
|
-
"properties": {
|
|
619
|
-
"navigateToInstance": {
|
|
620
|
-
"description": "By default, a navigation is automatically triggered after an action execution. If applications want to disable the navigation, they can do so using the manifest setting “navigateToInstance”.",
|
|
621
|
-
"type": "boolean",
|
|
622
|
-
"artifactType": "Manifest"
|
|
623
|
-
},
|
|
624
|
-
"enableAutoScroll": {
|
|
625
|
-
"description": "The \"enableAutoScroll\" allows you to scroll to the newly created or change item after execution of an action",
|
|
626
|
-
"type": "boolean",
|
|
627
|
-
"artifactType": "Manifest"
|
|
628
|
-
}
|
|
629
|
-
},
|
|
630
|
-
"additionalProperties": false
|
|
631
|
-
},
|
|
632
636
|
"TableCustomColumnOP": {
|
|
633
637
|
"type": "object",
|
|
634
638
|
"properties": {
|
|
@@ -744,27 +748,55 @@
|
|
|
744
748
|
"isViewNode": true,
|
|
745
749
|
"type": "object",
|
|
746
750
|
"properties": {
|
|
751
|
+
"fields": {
|
|
752
|
+
"$ref": "#/definitions/ObjectPageFormFields"
|
|
753
|
+
},
|
|
747
754
|
"actions": {
|
|
748
|
-
"$ref": "#/definitions/
|
|
755
|
+
"$ref": "#/definitions/ObjectPageFormActions"
|
|
749
756
|
}
|
|
750
757
|
},
|
|
751
758
|
"additionalProperties": false
|
|
752
759
|
},
|
|
753
|
-
"
|
|
760
|
+
"ObjectPageFormFields": {
|
|
754
761
|
"type": "object",
|
|
755
762
|
"additionalProperties": {
|
|
756
|
-
"
|
|
763
|
+
"type": "object",
|
|
764
|
+
"properties": {},
|
|
765
|
+
"additionalProperties": true
|
|
757
766
|
}
|
|
758
767
|
},
|
|
759
|
-
"
|
|
768
|
+
"ObjectPageFormActions": {
|
|
769
|
+
"type": "object",
|
|
770
|
+
"additionalProperties": {
|
|
771
|
+
"anyOf": [
|
|
772
|
+
{
|
|
773
|
+
"$ref": "#/definitions/CustomFormActionOP"
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
"$ref": "#/definitions/FormAction"
|
|
777
|
+
}
|
|
778
|
+
]
|
|
779
|
+
}
|
|
780
|
+
},
|
|
781
|
+
"CustomFormActionOP": {
|
|
760
782
|
"type": "object",
|
|
761
783
|
"properties": {
|
|
784
|
+
"position": {
|
|
785
|
+
"$ref": "#/definitions/CustomActionPositionOP",
|
|
786
|
+
"description": "Defines the position of the action relative to other actions.",
|
|
787
|
+
"artifactType": "Manifest"
|
|
788
|
+
},
|
|
762
789
|
"text": {
|
|
763
790
|
"description": "The text that is displayed on the button (typically a binding to an i18n entry).",
|
|
764
791
|
"i18nClassification": "COL: Custom action text",
|
|
765
792
|
"artifactType": "Manifest",
|
|
766
793
|
"type": "string"
|
|
767
794
|
},
|
|
795
|
+
"press": {
|
|
796
|
+
"description": "Relevant for extension actions; allows the definition of a target action handler.",
|
|
797
|
+
"artifactType": "Manifest",
|
|
798
|
+
"type": "string"
|
|
799
|
+
},
|
|
768
800
|
"visible": {
|
|
769
801
|
"pattern": "^(false|true)$|^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",
|
|
770
802
|
"anyOf": [
|
|
@@ -783,16 +815,6 @@
|
|
|
783
815
|
"description": "Whether the action button should be visible on the screen.",
|
|
784
816
|
"artifactType": "Manifest"
|
|
785
817
|
},
|
|
786
|
-
"position": {
|
|
787
|
-
"$ref": "#/definitions/CustomActionPositionOP",
|
|
788
|
-
"description": "Defines the position of the action relative to other actions.",
|
|
789
|
-
"artifactType": "Manifest"
|
|
790
|
-
},
|
|
791
|
-
"press": {
|
|
792
|
-
"description": "Relevant for extension actions; allows the definition of a target action handler.",
|
|
793
|
-
"artifactType": "Manifest",
|
|
794
|
-
"type": "string"
|
|
795
|
-
},
|
|
796
818
|
"enabled": {
|
|
797
819
|
"pattern": "^(false|true)$|^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",
|
|
798
820
|
"anyOf": [
|
|
@@ -818,6 +840,33 @@
|
|
|
818
840
|
"text"
|
|
819
841
|
]
|
|
820
842
|
},
|
|
843
|
+
"FormAction": {
|
|
844
|
+
"type": "object",
|
|
845
|
+
"properties": {
|
|
846
|
+
"afterExecution": {
|
|
847
|
+
"$ref": "#/definitions/ActionAfterExecutionConfigurationForm",
|
|
848
|
+
"description": "Settings that are only relevant for actions (associated with a UI.DataFieldForAction annotation)",
|
|
849
|
+
"artifactType": "Manifest"
|
|
850
|
+
}
|
|
851
|
+
},
|
|
852
|
+
"additionalProperties": false
|
|
853
|
+
},
|
|
854
|
+
"ActionAfterExecutionConfigurationForm": {
|
|
855
|
+
"type": "object",
|
|
856
|
+
"properties": {
|
|
857
|
+
"navigateToInstance": {
|
|
858
|
+
"description": "By default, a navigation is automatically triggered after an action execution. If applications want to disable the navigation, they can do so using the manifest setting “navigateToInstance”.",
|
|
859
|
+
"type": "boolean",
|
|
860
|
+
"artifactType": "Manifest"
|
|
861
|
+
},
|
|
862
|
+
"enableAutoScroll": {
|
|
863
|
+
"description": "The \"enableAutoScroll\" allows you to scroll to the newly created or changed item after execution of an action",
|
|
864
|
+
"type": "boolean",
|
|
865
|
+
"artifactType": "Manifest"
|
|
866
|
+
}
|
|
867
|
+
},
|
|
868
|
+
"additionalProperties": false
|
|
869
|
+
},
|
|
821
870
|
"ObjectPageSectionDataPoint": {
|
|
822
871
|
"type": "object",
|
|
823
872
|
"properties": {
|
|
@@ -973,10 +1022,35 @@
|
|
|
973
1022
|
"ObjectPageFooterActions": {
|
|
974
1023
|
"type": "object",
|
|
975
1024
|
"additionalProperties": {
|
|
976
|
-
"
|
|
977
|
-
"properties": {},
|
|
978
|
-
"additionalProperties": true
|
|
1025
|
+
"$ref": "#/definitions/FooterActionV4"
|
|
979
1026
|
}
|
|
1027
|
+
},
|
|
1028
|
+
"FooterActionV4": {
|
|
1029
|
+
"type": "object",
|
|
1030
|
+
"properties": {
|
|
1031
|
+
"afterExecution": {
|
|
1032
|
+
"$ref": "#/definitions/ActionAfterExecutionConfigurationFooter",
|
|
1033
|
+
"description": "Settings that are only relevant for actions (associated with a UI.DataFieldForAction annotation)",
|
|
1034
|
+
"artifactType": "Manifest"
|
|
1035
|
+
}
|
|
1036
|
+
},
|
|
1037
|
+
"additionalProperties": false
|
|
1038
|
+
},
|
|
1039
|
+
"ActionAfterExecutionConfigurationFooter": {
|
|
1040
|
+
"type": "object",
|
|
1041
|
+
"properties": {
|
|
1042
|
+
"navigateToInstance": {
|
|
1043
|
+
"description": "By default, a navigation is automatically triggered after an action execution. If applications want to disable the navigation, they can do so using the manifest setting “navigateToInstance”.",
|
|
1044
|
+
"type": "boolean",
|
|
1045
|
+
"artifactType": "Manifest"
|
|
1046
|
+
},
|
|
1047
|
+
"enableAutoScroll": {
|
|
1048
|
+
"description": "The \"enableAutoScroll\" allows you to scroll to the newly created or changed item after execution of an action",
|
|
1049
|
+
"type": "boolean",
|
|
1050
|
+
"artifactType": "Manifest"
|
|
1051
|
+
}
|
|
1052
|
+
},
|
|
1053
|
+
"additionalProperties": false
|
|
980
1054
|
}
|
|
981
1055
|
},
|
|
982
1056
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
package/dist/src/api.js
CHANGED
|
@@ -5,13 +5,14 @@ import type { Definition } from 'typescript-json-schema';
|
|
|
5
5
|
/**
|
|
6
6
|
* Adds definitions for forms in object page sections to the app schema
|
|
7
7
|
* @param {SectionType} sectionType - prefix to distinguish Section and HeaderSection
|
|
8
|
-
* @param {FacetConfig} section -
|
|
8
|
+
* @param {FacetConfig} section - section definition, as prepared from the annotations
|
|
9
9
|
* @param {object} appSchemaSection - current definition of facet or section in the JSON schema
|
|
10
10
|
* @param {object} appSchema - app specific schema that gets enhanced
|
|
11
11
|
* @param {FioriElementsVersion} version - Fiori Elements version
|
|
12
|
+
* @param {string} facetKey - facet key
|
|
12
13
|
* @returns {string | undefined} target id of form
|
|
13
14
|
*/
|
|
14
|
-
export declare function handleForm(sectionType: SectionType, section: FacetConfig, appSchemaSection: Definition, appSchema: Definition, version: FioriElementsVersion,
|
|
15
|
+
export declare function handleForm(sectionType: SectionType, section: FacetConfig, appSchemaSection: Definition, appSchema: Definition, version: FioriElementsVersion, facetKey: string): string | undefined;
|
|
15
16
|
/**
|
|
16
17
|
* Replaces an alias in an annotation ID or reference, based on the AVT references' list
|
|
17
18
|
* @param annotationIdentifier - annotation ID or reference
|
|
@@ -25,23 +26,26 @@ export declare function replaceAlias(annotationIdentifier: string, oDataServiceA
|
|
|
25
26
|
* @param entityType - entity type by AVT
|
|
26
27
|
* @returns an object comprising action name and action id
|
|
27
28
|
*/
|
|
28
|
-
export declare function getActionNameAndId(
|
|
29
|
+
export declare function getActionNameAndId(item: any, entityType: EntityType, oDataServiceAVT: ConvertedMetadata): {
|
|
29
30
|
actionName: string;
|
|
30
31
|
actionId: string;
|
|
32
|
+
namespace: string;
|
|
31
33
|
};
|
|
32
34
|
/**
|
|
33
35
|
* Add Object Page Footer Action Buttons to app-specific schema
|
|
34
36
|
*
|
|
35
37
|
* @param {object} appSchema Schema of the app
|
|
36
|
-
* @param {
|
|
37
|
-
* @param {
|
|
38
|
+
* @param {GenerateAppSchemaParameters} generateParameters - Schema parameters
|
|
39
|
+
* @param {FioriElementsVersion} version - Fiori elements versions
|
|
40
|
+
* @param {function} addFooterActionCallBack - Callback function, either V2 or V4
|
|
38
41
|
*/
|
|
39
|
-
export declare function addFooterActions(appSchema: Definition, generateParameters: GenerateAppSchemaParameters): void;
|
|
42
|
+
export declare function addFooterActions(appSchema: Definition, generateParameters: GenerateAppSchemaParameters, version: FioriElementsVersion, addFooterActionCallBack: any): void;
|
|
40
43
|
/**
|
|
41
44
|
* Add Object Page Header Action Buttons to app-specific schema
|
|
42
45
|
* @param {object} appSchema Schema of the app
|
|
43
46
|
* @param {EntityType} entityType - current entity type
|
|
44
47
|
* @param {ConvertedMetadata} oDataServiceAVT - complete service information, as returned by annotation vocabularies tool
|
|
48
|
+
* @param {function} addHeaderActionCallBack - Callback function, either V2 or V4
|
|
45
49
|
*/
|
|
46
50
|
export declare function addHeaderActions(appSchema: Definition, entityType: EntityType, oDataServiceAVT: ConvertedMetadata, addHeaderActionCallBack: any): void;
|
|
47
51
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objectPage.d.ts","sourceRoot":"","sources":["../../../../../src/sync/common/generate/objectPage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAI3F,OAAO,KAAK,EAAE,WAAW,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"objectPage.d.ts","sourceRoot":"","sources":["../../../../../src/sync/common/generate/objectPage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAI3F,OAAO,KAAK,EAAE,WAAW,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAE5F,OAAO,EAGH,oBAAoB,EAGpB,WAAW,EAEd,MAAM,6BAA6B,CAAC;AASrC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAmTzD;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CACtB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,WAAW,EACpB,gBAAgB,EAAE,UAAU,EAC5B,SAAS,EAAE,UAAU,EACrB,OAAO,EAAE,oBAAoB,EAC7B,QAAQ,EAAE,MAAM,GACjB,MAAM,GAAG,SAAS,CAwDpB;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,oBAAoB,EAAE,MAAM,EAAE,eAAe,EAAE,iBAAiB,GAAG,MAAM,CAarG;AAED;;;;;GAKG;AAEH,wBAAgB,kBAAkB,CAC9B,IAAI,EAAE,GAAG,EACT,UAAU,EAAE,UAAU,EACtB,eAAe,EAAE,iBAAiB,GACnC;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CA0B7D;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC5B,SAAS,EAAE,UAAU,EACrB,kBAAkB,EAAE,2BAA2B,EAC/C,OAAO,EAAE,oBAAoB,EAC7B,uBAAuB,KAAA,GACxB,IAAI,CAuCN;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC5B,SAAS,EAAE,UAAU,EACrB,UAAU,EAAE,UAAU,EACtB,eAAe,EAAE,iBAAiB,EAClC,uBAAuB,KAAA,GACxB,IAAI,CAkCN;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,GAAG,IAAI,CAUzF;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,iBAAiB,GAAG,SAAS,GAAG,SAAS,CAMlH"}
|