@sap/ux-specification 1.108.31 → 1.108.33

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.
Files changed (97) hide show
  1. package/CHANGELOG.md +60 -5
  2. package/dist/documentation/runDocu-min.js +5 -5
  3. package/dist/documentation/runDocu-min.js.map +2 -2
  4. package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
  5. package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
  6. package/dist/documentation/v2/v2-ListReport.html +2 -2
  7. package/dist/documentation/v2/v2-ObjectPage.html +2 -2
  8. package/dist/documentation/v2/v2-OverviewPage.html +2 -2
  9. package/dist/documentation/v4/v4-ApplicationV4.html +2 -2
  10. package/dist/documentation/v4/v4-BuildingBlocks.html +2 -2
  11. package/dist/documentation/v4/v4-FreestylePage.html +2 -2
  12. package/dist/documentation/v4/v4-ListReport.html +2 -2
  13. package/dist/documentation/v4/v4-ObjectPage.html +2 -2
  14. package/dist/index-min.js +105 -105
  15. package/dist/index-min.js.map +4 -4
  16. package/dist/schemas/v2/AnalyticalListPageConfig.json +9 -24
  17. package/dist/schemas/v2/ListReportConfig.json +15 -40
  18. package/dist/schemas/v2/ObjectPageConfig.json +4 -4
  19. package/dist/schemas/v4/ObjectPageConfig.json +92 -0
  20. package/dist/specification/package.json +8 -8
  21. package/dist/specification/src/api.js +1 -1
  22. package/dist/specification/src/sync/common/dist_tag.json +9 -1
  23. package/dist/specification/src/sync/common/generate/utils.d.ts +2 -1
  24. package/dist/specification/src/sync/common/generate/utils.d.ts.map +1 -1
  25. package/dist/specification/src/sync/common/generate/utils.js +45 -15
  26. package/dist/specification/src/sync/common/generate/utils.js.map +1 -1
  27. package/dist/specification/src/sync/common/i18n.json +2 -1
  28. package/dist/specification/src/sync/common/utils.d.ts.map +1 -1
  29. package/dist/specification/src/sync/common/utils.js +6 -16
  30. package/dist/specification/src/sync/common/utils.js.map +1 -1
  31. package/dist/specification/src/sync/v2/export/controls/Table.d.ts +0 -1
  32. package/dist/specification/src/sync/v2/export/controls/Table.d.ts.map +1 -1
  33. package/dist/specification/src/sync/v2/export/controls/Table.js +2 -10
  34. package/dist/specification/src/sync/v2/export/controls/Table.js.map +1 -1
  35. package/dist/specification/src/sync/v2/generate/analyticalListReport.d.ts.map +1 -1
  36. package/dist/specification/src/sync/v2/generate/analyticalListReport.js +13 -5
  37. package/dist/specification/src/sync/v2/generate/analyticalListReport.js.map +1 -1
  38. package/dist/specification/src/sync/v2/generate/listReport.js +1 -1
  39. package/dist/specification/src/sync/v2/generate/listReport.js.map +1 -1
  40. package/dist/specification/src/sync/v2/generate/objectPage.d.ts.map +1 -1
  41. package/dist/specification/src/sync/v2/generate/objectPage.js +29 -9
  42. package/dist/specification/src/sync/v2/generate/objectPage.js.map +1 -1
  43. package/dist/specification/src/sync/v2/generate/utils.d.ts +2 -1
  44. package/dist/specification/src/sync/v2/generate/utils.d.ts.map +1 -1
  45. package/dist/specification/src/sync/v2/generate/utils.js +3 -2
  46. package/dist/specification/src/sync/v2/generate/utils.js.map +1 -1
  47. package/dist/specification/src/sync/v4/application.d.ts +1 -0
  48. package/dist/specification/src/sync/v4/application.d.ts.map +1 -1
  49. package/dist/specification/src/sync/v4/application.js +5 -1
  50. package/dist/specification/src/sync/v4/application.js.map +1 -1
  51. package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts +5 -0
  52. package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.d.ts.map +1 -1
  53. package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.js +4 -1
  54. package/dist/specification/src/sync/v4/export/controls/ObjectPageCustomSection.js.map +1 -1
  55. package/dist/specification/src/sync/v4/export/controls/ObjectPageSectionAction.d.ts +16 -0
  56. package/dist/specification/src/sync/v4/export/controls/ObjectPageSectionAction.d.ts.map +1 -0
  57. package/dist/specification/src/sync/v4/export/controls/ObjectPageSectionAction.js +94 -0
  58. package/dist/specification/src/sync/v4/export/controls/ObjectPageSectionAction.js.map +1 -0
  59. package/dist/specification/src/sync/v4/export/controls/index.d.ts +1 -0
  60. package/dist/specification/src/sync/v4/export/controls/index.d.ts.map +1 -1
  61. package/dist/specification/src/sync/v4/export/controls/index.js +1 -0
  62. package/dist/specification/src/sync/v4/export/controls/index.js.map +1 -1
  63. package/dist/specification/src/sync/v4/export/manifest.d.ts.map +1 -1
  64. package/dist/specification/src/sync/v4/export/manifest.js +9 -4
  65. package/dist/specification/src/sync/v4/export/manifest.js.map +1 -1
  66. package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.d.ts.map +1 -1
  67. package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.js +21 -4
  68. package/dist/specification/src/sync/v4/generate/fpm-custom-page/annotations.js.map +1 -1
  69. package/dist/specification/src/sync/v4/generate/listReport.d.ts +2 -1
  70. package/dist/specification/src/sync/v4/generate/listReport.d.ts.map +1 -1
  71. package/dist/specification/src/sync/v4/generate/listReport.js +7 -3
  72. package/dist/specification/src/sync/v4/generate/listReport.js.map +1 -1
  73. package/dist/specification/src/sync/v4/generate/objectPage.d.ts.map +1 -1
  74. package/dist/specification/src/sync/v4/generate/objectPage.js +51 -2
  75. package/dist/specification/src/sync/v4/generate/objectPage.js.map +1 -1
  76. package/dist/specification/src/sync/v4/import/pages/objectPage.d.ts.map +1 -1
  77. package/dist/specification/src/sync/v4/import/pages/objectPage.js +27 -11
  78. package/dist/specification/src/sync/v4/import/pages/objectPage.js.map +1 -1
  79. package/dist/specification/src/sync/v4/utils/utils.d.ts +6 -4
  80. package/dist/specification/src/sync/v4/utils/utils.d.ts.map +1 -1
  81. package/dist/specification/src/sync/v4/utils/utils.js +36 -23
  82. package/dist/specification/src/sync/v4/utils/utils.js.map +1 -1
  83. package/dist/types/src/common/types.d.ts +4 -1
  84. package/dist/types/src/common/types.d.ts.map +1 -1
  85. package/dist/types/src/common/types.js +3 -0
  86. package/dist/types/src/common/types.js.map +1 -1
  87. package/dist/types/src/v2/controls/ObjectPageHeaderSection.d.ts +1 -1
  88. package/dist/types/src/v2/controls/ObjectPageHeaderSection.d.ts.map +1 -1
  89. package/dist/types/src/v2/controls/Table.d.ts +2 -6
  90. package/dist/types/src/v2/controls/Table.d.ts.map +1 -1
  91. package/dist/types/src/v4/controls/ObjectPageSection.d.ts +15 -1
  92. package/dist/types/src/v4/controls/ObjectPageSection.d.ts.map +1 -1
  93. package/dist/types/src/v4/controls/ObjectPageSection.js.map +1 -1
  94. package/dist/types/src/v4/webapp/manifest/sapUiPageV4.d.ts +1 -0
  95. package/dist/types/src/v4/webapp/manifest/sapUiPageV4.d.ts.map +1 -1
  96. package/dist/types/src/v4/webapp/manifest/sapUiPageV4.js.map +1 -1
  97. package/package.json +8 -8
@@ -168,12 +168,6 @@
168
168
  "artifactType": "FlexChange",
169
169
  "controlType": "sap.ui.comp.smarttable.SmartTable"
170
170
  },
171
- "fitContainer": {
172
- "description": "Set to false if the table does not occupy the entire space available in the container.",
173
- "type": "boolean",
174
- "artifactType": "FlexChange",
175
- "controlType": "sap.ui.comp.smarttable.SmartTable"
176
- },
177
171
  "quickVariantSelection": {
178
172
  "$ref": "#/definitions/QuickVariantSelection",
179
173
  "description": "With quickVariantSelection you can switch on the multiple view feature. It links to variants you must have added to your annotations beforehand.",
@@ -190,9 +184,10 @@
190
184
  "artifactType": "Manifest"
191
185
  },
192
186
  "enableTableFilterInPageVariant": {
193
- "description": "If you have enabled harmonized variant management, by default, you cannot set a filter in the table personalization settings.\nTo enable filtering, set the enableTableFilterInPageVariant property to true.",
187
+ "description": "If you have enabled harmonized variant management, by default, business users cannot set a filter in the table personalization settings.\nTo enable filtering for business users, you must set the enableTableFilterInPageVariant property to true.",
194
188
  "type": "boolean",
195
- "artifactType": "Manifest"
189
+ "artifactType": "Manifest",
190
+ "descriptionSrcURL": "https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b"
196
191
  },
197
192
  "dataLoadSettings": {
198
193
  "$ref": "#/definitions/DataLoadSettings",
@@ -742,12 +737,6 @@
742
737
  "artifactType": "FlexChange",
743
738
  "controlType": "sap.ui.comp.smarttable.SmartTable"
744
739
  },
745
- "fitContainer": {
746
- "description": "Set to false if the table does not occupy the entire space available in the container.",
747
- "type": "boolean",
748
- "artifactType": "FlexChange",
749
- "controlType": "sap.ui.comp.smarttable.SmartTable"
750
- },
751
740
  "quickVariantSelection": {
752
741
  "$ref": "#/definitions/QuickVariantSelection",
753
742
  "description": "With quickVariantSelection you can switch on the multiple view feature. It links to variants you must have added to your annotations beforehand.",
@@ -764,9 +753,10 @@
764
753
  "artifactType": "Manifest"
765
754
  },
766
755
  "enableTableFilterInPageVariant": {
767
- "description": "If you have enabled harmonized variant management, by default, you cannot set a filter in the table personalization settings.\nTo enable filtering, set the enableTableFilterInPageVariant property to true.",
756
+ "description": "If you have enabled harmonized variant management, by default, business users cannot set a filter in the table personalization settings.\nTo enable filtering for business users, you must set the enableTableFilterInPageVariant property to true.",
768
757
  "type": "boolean",
769
- "artifactType": "Manifest"
758
+ "artifactType": "Manifest",
759
+ "descriptionSrcURL": "https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b"
770
760
  },
771
761
  "dataLoadSettings": {
772
762
  "$ref": "#/definitions/DataLoadSettings",
@@ -865,12 +855,6 @@
865
855
  "artifactType": "FlexChange",
866
856
  "controlType": "sap.ui.comp.smarttable.SmartTable"
867
857
  },
868
- "fitContainer": {
869
- "description": "Set to false if the table does not occupy the entire space available in the container.",
870
- "type": "boolean",
871
- "artifactType": "FlexChange",
872
- "controlType": "sap.ui.comp.smarttable.SmartTable"
873
- },
874
858
  "quickVariantSelection": {
875
859
  "$ref": "#/definitions/QuickVariantSelection",
876
860
  "description": "With quickVariantSelection you can switch on the multiple view feature. It links to variants you must have added to your annotations beforehand.",
@@ -887,9 +871,10 @@
887
871
  "artifactType": "Manifest"
888
872
  },
889
873
  "enableTableFilterInPageVariant": {
890
- "description": "If you have enabled harmonized variant management, by default, you cannot set a filter in the table personalization settings.\nTo enable filtering, set the enableTableFilterInPageVariant property to true.",
874
+ "description": "If you have enabled harmonized variant management, by default, business users cannot set a filter in the table personalization settings.\nTo enable filtering for business users, you must set the enableTableFilterInPageVariant property to true.",
891
875
  "type": "boolean",
892
- "artifactType": "Manifest"
876
+ "artifactType": "Manifest",
877
+ "descriptionSrcURL": "https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b"
893
878
  },
894
879
  "dataLoadSettings": {
895
880
  "$ref": "#/definitions/DataLoadSettings",
@@ -522,12 +522,6 @@
522
522
  "artifactType": "FlexChange",
523
523
  "controlType": "sap.ui.comp.smarttable.SmartTable"
524
524
  },
525
- "fitContainer": {
526
- "description": "Set to false if the table does not occupy the entire space available in the container.",
527
- "type": "boolean",
528
- "artifactType": "FlexChange",
529
- "controlType": "sap.ui.comp.smarttable.SmartTable"
530
- },
531
525
  "quickVariantSelection": {
532
526
  "$ref": "#/definitions/QuickVariantSelection",
533
527
  "description": "With quickVariantSelection you can switch on the multiple view feature. It links to variants you must have added to your annotations beforehand.",
@@ -544,9 +538,10 @@
544
538
  "artifactType": "Manifest"
545
539
  },
546
540
  "enableTableFilterInPageVariant": {
547
- "description": "If you have enabled harmonized variant management, by default, you cannot set a filter in the table personalization settings.\nTo enable filtering, set the enableTableFilterInPageVariant property to true.",
541
+ "description": "If you have enabled harmonized variant management, by default, business users cannot set a filter in the table personalization settings.\nTo enable filtering for business users, you must set the enableTableFilterInPageVariant property to true.",
548
542
  "type": "boolean",
549
- "artifactType": "Manifest"
543
+ "artifactType": "Manifest",
544
+ "descriptionSrcURL": "https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b"
550
545
  },
551
546
  "dataLoadSettings": {
552
547
  "$ref": "#/definitions/DataLoadSettings",
@@ -1085,12 +1080,6 @@
1085
1080
  "artifactType": "FlexChange",
1086
1081
  "controlType": "sap.ui.comp.smarttable.SmartTable"
1087
1082
  },
1088
- "fitContainer": {
1089
- "description": "Set to false if the table does not occupy the entire space available in the container.",
1090
- "type": "boolean",
1091
- "artifactType": "FlexChange",
1092
- "controlType": "sap.ui.comp.smarttable.SmartTable"
1093
- },
1094
1083
  "quickVariantSelection": {
1095
1084
  "$ref": "#/definitions/QuickVariantSelection",
1096
1085
  "description": "With quickVariantSelection you can switch on the multiple view feature. It links to variants you must have added to your annotations beforehand.",
@@ -1107,9 +1096,10 @@
1107
1096
  "artifactType": "Manifest"
1108
1097
  },
1109
1098
  "enableTableFilterInPageVariant": {
1110
- "description": "If you have enabled harmonized variant management, by default, you cannot set a filter in the table personalization settings.\nTo enable filtering, set the enableTableFilterInPageVariant property to true.",
1099
+ "description": "If you have enabled harmonized variant management, by default, business users cannot set a filter in the table personalization settings.\nTo enable filtering for business users, you must set the enableTableFilterInPageVariant property to true.",
1111
1100
  "type": "boolean",
1112
- "artifactType": "Manifest"
1101
+ "artifactType": "Manifest",
1102
+ "descriptionSrcURL": "https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b"
1113
1103
  },
1114
1104
  "dataLoadSettings": {
1115
1105
  "$ref": "#/definitions/DataLoadSettings",
@@ -1177,12 +1167,6 @@
1177
1167
  "artifactType": "FlexChange",
1178
1168
  "controlType": "sap.ui.comp.smarttable.SmartTable"
1179
1169
  },
1180
- "fitContainer": {
1181
- "description": "Set to false if the table does not occupy the entire space available in the container.",
1182
- "type": "boolean",
1183
- "artifactType": "FlexChange",
1184
- "controlType": "sap.ui.comp.smarttable.SmartTable"
1185
- },
1186
1170
  "quickVariantSelection": {
1187
1171
  "$ref": "#/definitions/QuickVariantSelection",
1188
1172
  "description": "With quickVariantSelection you can switch on the multiple view feature. It links to variants you must have added to your annotations beforehand.",
@@ -1199,9 +1183,10 @@
1199
1183
  "artifactType": "Manifest"
1200
1184
  },
1201
1185
  "enableTableFilterInPageVariant": {
1202
- "description": "If you have enabled harmonized variant management, by default, you cannot set a filter in the table personalization settings.\nTo enable filtering, set the enableTableFilterInPageVariant property to true.",
1186
+ "description": "If you have enabled harmonized variant management, by default, business users cannot set a filter in the table personalization settings.\nTo enable filtering for business users, you must set the enableTableFilterInPageVariant property to true.",
1203
1187
  "type": "boolean",
1204
- "artifactType": "Manifest"
1188
+ "artifactType": "Manifest",
1189
+ "descriptionSrcURL": "https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b"
1205
1190
  },
1206
1191
  "dataLoadSettings": {
1207
1192
  "$ref": "#/definitions/DataLoadSettings",
@@ -1305,12 +1290,6 @@
1305
1290
  "artifactType": "FlexChange",
1306
1291
  "controlType": "sap.ui.comp.smarttable.SmartTable"
1307
1292
  },
1308
- "fitContainer": {
1309
- "description": "Set to false if the table does not occupy the entire space available in the container.",
1310
- "type": "boolean",
1311
- "artifactType": "FlexChange",
1312
- "controlType": "sap.ui.comp.smarttable.SmartTable"
1313
- },
1314
1293
  "quickVariantSelection": {
1315
1294
  "$ref": "#/definitions/QuickVariantSelection",
1316
1295
  "description": "With quickVariantSelection you can switch on the multiple view feature. It links to variants you must have added to your annotations beforehand.",
@@ -1327,9 +1306,10 @@
1327
1306
  "artifactType": "Manifest"
1328
1307
  },
1329
1308
  "enableTableFilterInPageVariant": {
1330
- "description": "If you have enabled harmonized variant management, by default, you cannot set a filter in the table personalization settings.\nTo enable filtering, set the enableTableFilterInPageVariant property to true.",
1309
+ "description": "If you have enabled harmonized variant management, by default, business users cannot set a filter in the table personalization settings.\nTo enable filtering for business users, you must set the enableTableFilterInPageVariant property to true.",
1331
1310
  "type": "boolean",
1332
- "artifactType": "Manifest"
1311
+ "artifactType": "Manifest",
1312
+ "descriptionSrcURL": "https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b"
1333
1313
  },
1334
1314
  "dataLoadSettings": {
1335
1315
  "$ref": "#/definitions/DataLoadSettings",
@@ -1466,12 +1446,6 @@
1466
1446
  "artifactType": "FlexChange",
1467
1447
  "controlType": "sap.ui.comp.smarttable.SmartTable"
1468
1448
  },
1469
- "fitContainer": {
1470
- "description": "Set to false if the table does not occupy the entire space available in the container.",
1471
- "type": "boolean",
1472
- "artifactType": "FlexChange",
1473
- "controlType": "sap.ui.comp.smarttable.SmartTable"
1474
- },
1475
1449
  "quickVariantSelection": {
1476
1450
  "$ref": "#/definitions/QuickVariantSelection",
1477
1451
  "description": "With quickVariantSelection you can switch on the multiple view feature. It links to variants you must have added to your annotations beforehand.",
@@ -1488,9 +1462,10 @@
1488
1462
  "artifactType": "Manifest"
1489
1463
  },
1490
1464
  "enableTableFilterInPageVariant": {
1491
- "description": "If you have enabled harmonized variant management, by default, you cannot set a filter in the table personalization settings.\nTo enable filtering, set the enableTableFilterInPageVariant property to true.",
1465
+ "description": "If you have enabled harmonized variant management, by default, business users cannot set a filter in the table personalization settings.\nTo enable filtering for business users, you must set the enableTableFilterInPageVariant property to true.",
1492
1466
  "type": "boolean",
1493
- "artifactType": "Manifest"
1467
+ "artifactType": "Manifest",
1468
+ "descriptionSrcURL": "https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b"
1494
1469
  },
1495
1470
  "dataLoadSettings": {
1496
1471
  "$ref": "#/definitions/DataLoadSettings",
@@ -348,6 +348,10 @@
348
348
  "isViewNode": true,
349
349
  "type": "object",
350
350
  "properties": {
351
+ "type": {
352
+ "type": "string",
353
+ "const": "XML"
354
+ },
351
355
  "className": {
352
356
  "type": "string",
353
357
  "const": "sap.ui.core.Fragment"
@@ -355,10 +359,6 @@
355
359
  "fragmentName": {
356
360
  "type": "string"
357
361
  },
358
- "type": {
359
- "type": "string",
360
- "const": "XML"
361
- },
362
362
  "relatedFacet": {
363
363
  "type": "string"
364
364
  },
@@ -1324,6 +1324,9 @@
1324
1324
  "artifactType": "Manifest",
1325
1325
  "type": "string"
1326
1326
  },
1327
+ "actions": {
1328
+ "$ref": "#/definitions/ObjectPageCustomSectionActions"
1329
+ },
1327
1330
  "relatedFacet": {
1328
1331
  "description": "Use the key of another facet/section as a placement anchor.",
1329
1332
  "artifactType": "Manifest",
@@ -1348,6 +1351,95 @@
1348
1351
  "title"
1349
1352
  ]
1350
1353
  },
1354
+ "ObjectPageCustomSectionActions": {
1355
+ "description": "Actions",
1356
+ "isViewNode": true,
1357
+ "type": "object",
1358
+ "additionalProperties": {
1359
+ "$ref": "#/definitions/CustomSectionActionOP"
1360
+ }
1361
+ },
1362
+ "CustomSectionActionOP": {
1363
+ "type": "object",
1364
+ "properties": {
1365
+ "position": {
1366
+ "$ref": "#/definitions/CustomSectionActionPositionOP",
1367
+ "description": "Defines the position of the action relative to other actions.",
1368
+ "artifactType": "Manifest"
1369
+ },
1370
+ "text": {
1371
+ "description": "The text that is displayed on the button (typically a binding to an i18n entry).",
1372
+ "i18nClassification": "COL: Custom action text",
1373
+ "artifactType": "Manifest",
1374
+ "type": "string"
1375
+ },
1376
+ "press": {
1377
+ "description": "Relevant for extension actions; allows the definition of a target action handler.",
1378
+ "artifactType": "Manifest",
1379
+ "type": "string"
1380
+ },
1381
+ "visible": {
1382
+ "pattern": "^(false|true)$|^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",
1383
+ "anyOf": [
1384
+ {
1385
+ "enum": [
1386
+ false,
1387
+ true,
1388
+ "{ui>/isEditable}",
1389
+ "{= !${ui>/isEditable}}"
1390
+ ]
1391
+ },
1392
+ {
1393
+ "type": "string"
1394
+ }
1395
+ ],
1396
+ "description": "Allows you to define if the action button is visible on the screen.",
1397
+ "artifactType": "Manifest"
1398
+ },
1399
+ "enabled": {
1400
+ "pattern": "^(false|true)$|^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",
1401
+ "anyOf": [
1402
+ {
1403
+ "enum": [
1404
+ false,
1405
+ true,
1406
+ "{ui>/isEditable}",
1407
+ "{= !${ui>/isEditable}}"
1408
+ ]
1409
+ },
1410
+ {
1411
+ "type": "string"
1412
+ }
1413
+ ],
1414
+ "description": "Allows you to define if the action should be enabled. The default value is \"true\".",
1415
+ "artifactType": "Manifest"
1416
+ }
1417
+ },
1418
+ "additionalProperties": false,
1419
+ "required": [
1420
+ "press",
1421
+ "text"
1422
+ ]
1423
+ },
1424
+ "CustomSectionActionPositionOP": {
1425
+ "type": "object",
1426
+ "properties": {
1427
+ "anchor": {
1428
+ "description": "The key of another action to be used as placement anchor.",
1429
+ "artifactType": "Manifest",
1430
+ "type": "string"
1431
+ },
1432
+ "placement": {
1433
+ "$ref": "#/definitions/ActionPlacement",
1434
+ "description": "Define the placement, either before or after the anchor action.",
1435
+ "artifactType": "Manifest"
1436
+ }
1437
+ },
1438
+ "additionalProperties": false,
1439
+ "required": [
1440
+ "placement"
1441
+ ]
1442
+ },
1351
1443
  "ObjectPageFooter<ObjectPageFooterActions>": {
1352
1444
  "description": "Footer",
1353
1445
  "isViewNode": true,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/ux-specification",
3
- "version": "1.108.31",
3
+ "version": "1.108.33",
4
4
  "displayName": "SAP Fiori tools - Specification",
5
5
  "description": "SAP Fiori tools - Specification",
6
6
  "files": [
@@ -51,21 +51,21 @@
51
51
  "publisher": "SAPSE",
52
52
  "license": "SEE LICENSE IN LICENSE",
53
53
  "dependencies": {
54
- "@sap-ux/fe-fpm-writer": "0.24.11",
55
- "@sap-ux/vocabularies-types": "0.10.12"
54
+ "@sap-ux/fe-fpm-writer": "0.24.15",
55
+ "@sap-ux/vocabularies-types": "0.10.13"
56
56
  },
57
57
  "devDependencies": {
58
- "@sap-ux/annotation-converter": "0.8.13",
58
+ "@sap-ux/annotation-converter": "0.8.14",
59
59
  "@sap-ux/edmx-parser": "0.7.1",
60
- "@sap/ux-specification-types": "1.108.31",
61
- "@sapui5/ts-types-esm": "1.108.27",
60
+ "@sap/ux-specification-types": "1.108.33",
61
+ "@sapui5/ts-types-esm": "1.108.32",
62
62
  "@types/d3": "7.4.3",
63
63
  "@types/jquery": "3.5.30",
64
64
  "@types/mem-fs-editor": "7.0.7",
65
65
  "@ui5/flexibility-utils": "0.1.3",
66
66
  "@xml-tools/ast": "5.0.5",
67
67
  "@xml-tools/parser": "1.0.11",
68
- "axios": "1.6.8",
68
+ "axios": "1.7.2",
69
69
  "copyfiles": "2.4.1",
70
70
  "d3": "7.9.0",
71
71
  "deepmerge": "4.3.1",
@@ -73,7 +73,7 @@
73
73
  "excel4node": "1.8.2",
74
74
  "i18next": "23.11.5",
75
75
  "jquery": "3.7.1",
76
- "jsdom": "24.0.0",
76
+ "jsdom": "24.1.0",
77
77
  "lodash.unset": "4.5.2",
78
78
  "mem-fs-editor": "9.7.0",
79
79
  "path": "0.12.7",
@@ -240,7 +240,7 @@ exports.importProjectSchema = importProjectSchema;
240
240
  function getApiVersion() {
241
241
  return {
242
242
  version: '15',
243
- fpmWriter: '14'
243
+ fpmWriter: '15'
244
244
  };
245
245
  }
246
246
  exports.getApiVersion = getApiVersion;
@@ -10,11 +10,19 @@
10
10
  "version": "1.120",
11
11
  "distTag": [
12
12
  "latest",
13
+ "UI5-2.0",
14
+ "UI5-2.1",
13
15
  "UI5-1.120",
14
16
  "UI5-1.121",
15
17
  "UI5-1.122",
16
18
  "UI5-1.123",
17
- "UI5-1.124"
19
+ "UI5-1.124",
20
+ "UI5-1.125",
21
+ "UI5-1.126",
22
+ "UI5-1.127",
23
+ "UI5-1.128",
24
+ "UI5-1.129",
25
+ "UI5-1.130"
18
26
  ]
19
27
  },
20
28
  {
@@ -94,6 +94,7 @@ export declare function parseSchemaDefinition(definition: string, facetKey: stri
94
94
  export declare function getCustomExtensionDefinitionName(appSchema: Definition, lineItemId: string, customExtensionDefinitionName: string): string;
95
95
  /**
96
96
  * Functions used both by V2 and V4 to add the common definitions for a line item to the app schema
97
+ * @param isObjectPage - indicates that the page is an object page
97
98
  * @param appSchema - the app specific schema that shall get enhanced
98
99
  * @param lineItemAnnotation - the UI.LineItem annotation, comprising all records
99
100
  * @param entityType - the entity type as part of the AVT ConvertedMetadata
@@ -102,7 +103,7 @@ export declare function getCustomExtensionDefinitionName(appSchema: Definition,
102
103
  * Passed in the V4 case, then additional properties of this type will be allowed.
103
104
  * @returns the actions definition plus the annotation path to the given line item
104
105
  */
105
- export declare function addCommonLineItemDefinitions(appSchema: Definition, lineItemAnnotation: AnnotationTerm<LineItem>, entityType: EntityType, lineItemId: string, customColumnDefinitionName?: string, customActionDefinitionName?: string): {
106
+ export declare function addCommonLineItemDefinitions(isObjectPage: boolean, appSchema: Definition, lineItemAnnotation: AnnotationTerm<LineItem>, entityType: EntityType, lineItemId: string, customColumnDefinitionName?: string, customActionDefinitionName?: string): {
106
107
  actions: Definition;
107
108
  footerActions: Definition;
108
109
  lineItemPath: string;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/sync/common/generate/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAC3G,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4CAA4C,CAAC;AAC3E,OAAO,EAAqB,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC9E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAS5D,OAAO,KAAK,EACR,WAAW,EACX,YAAY,EACZ,WAAW,EACX,gBAAgB,EAEnB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,cAAc,EAAa,aAAa,EAAgB,MAAM,6BAA6B,CAAC;AAGrG,UAAU,oBAAoB;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,UAAU,CAAC;CACvB;AAED,UAAU,4BAA4B;IAClC,UA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CtG"}
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.addKeyToDefinition = exports.getActionKey = exports.addDescriptiveEnumDefinition = exports.getEnumEntry = exports.addFieldsType = exports.handleAddressContact = exports.getFacetAnnotationPath = exports.addDefinitionRef = exports.getFacetDefinitionLink = exports.addDataTypeToDefinition = exports.determineDataType = exports.determineDataTypeOfTarget = exports.getDataTypeFromAnnotation = exports.DataType = exports.addCommonLineItemDefinitions = exports.getCustomExtensionDefinitionName = exports.parseSchemaDefinition = exports.getFacetKeyInSchema = exports.addDefinitionForRelatedFacetKeys = exports.addEnumFieldGroupAnnotationPath = exports.addEnumForVariantEntitySet = exports.addEnumForMultiTabVariant = exports.addEnumForSingleTabVariant = exports.addEnumForValidAnnotations = exports.addEnumToSchema = void 0;
4
7
  const __1 = require("..");
5
8
  const ux_specification_types_1 = require("@sap/ux-specification-types");
6
9
  const StableIdHelper_1 = require("../../v4/utils/StableIdHelper");
10
+ const i18next_1 = __importDefault(require("i18next"));
7
11
  /**
8
12
  * Adds enum values to the app schema. Either as 'enum' - if multiple entries exist,
9
13
  * or as 'const', if it is only a single value
@@ -179,8 +183,13 @@ function parseSchemaDefinition(definition, facetKey, appSchema, useDefinitionAsK
179
183
  facetDefinitionKey = getFacetDefinitionKey(subDefinitionName ? subDefinitionName : definition, facetKey);
180
184
  }
181
185
  if (definition && definition !== facetDefinitionKey) {
182
- const schemaDefinition = JSON.parse(JSON.stringify(appSchema.definitions[definition]));
183
- appSchema.definitions[facetDefinitionKey] = schemaDefinition;
186
+ try {
187
+ const schemaDefinition = JSON.parse(JSON.stringify(appSchema.definitions[definition]));
188
+ appSchema.definitions[facetDefinitionKey] = schemaDefinition;
189
+ }
190
+ catch (error) {
191
+ throw new Error(i18next_1.default.t('INCONSISTENTSCHEMA', { function: 'parseSchemaDefinition', definition }));
192
+ }
184
193
  }
185
194
  return appSchema.definitions[facetDefinitionKey];
186
195
  }
@@ -208,6 +217,7 @@ function getCustomExtensionDefinitionName(appSchema, lineItemId, customExtension
208
217
  exports.getCustomExtensionDefinitionName = getCustomExtensionDefinitionName;
209
218
  /**
210
219
  * Functions used both by V2 and V4 to add the common definitions for a line item to the app schema
220
+ * @param isObjectPage - indicates that the page is an object page
211
221
  * @param appSchema - the app specific schema that shall get enhanced
212
222
  * @param lineItemAnnotation - the UI.LineItem annotation, comprising all records
213
223
  * @param entityType - the entity type as part of the AVT ConvertedMetadata
@@ -216,7 +226,7 @@ exports.getCustomExtensionDefinitionName = getCustomExtensionDefinitionName;
216
226
  * Passed in the V4 case, then additional properties of this type will be allowed.
217
227
  * @returns the actions definition plus the annotation path to the given line item
218
228
  */
219
- function addCommonLineItemDefinitions(appSchema, lineItemAnnotation, entityType, lineItemId, customColumnDefinitionName, customActionDefinitionName) {
229
+ function addCommonLineItemDefinitions(isObjectPage, appSchema, lineItemAnnotation, entityType, lineItemId, customColumnDefinitionName, customActionDefinitionName) {
220
230
  let lineItemPath;
221
231
  appSchema.definitions[lineItemId] = {
222
232
  type: 'object',
@@ -230,31 +240,51 @@ function addCommonLineItemDefinitions(appSchema, lineItemAnnotation, entityType,
230
240
  appSchema.definitions[lineItemId].additionalProperties = { $ref: customColumnRef };
231
241
  }
232
242
  // Copy toolbar
233
- const toolBar = lineItemId.startsWith(ux_specification_types_1.DefinitionName.LineItems)
234
- ? ux_specification_types_1.DefinitionName.ToolBar
235
- : ux_specification_types_1.DefinitionName.ObjectPageToolBar;
243
+ const toolBar = isObjectPage ? ux_specification_types_1.DefinitionName.ObjectPageToolBar : ux_specification_types_1.DefinitionName.ToolBar;
236
244
  const schemaIdForToolBar = `${toolBar}<${lineItemId}>`;
237
- appSchema.definitions[schemaIdForToolBar] = JSON.parse(JSON.stringify(appSchema.definitions[`${toolBar}`]));
245
+ try {
246
+ appSchema.definitions[schemaIdForToolBar] = JSON.parse(JSON.stringify(appSchema.definitions[`${toolBar}`]));
247
+ }
248
+ catch (error) {
249
+ throw new Error(i18next_1.default.t('INCONSISTENTSCHEMA', { function: 'addCommonLineItemDefinitions', definition: `${toolBar}` }));
250
+ }
238
251
  const schemaIdForActions = `${ux_specification_types_1.DefinitionName.Actions}<${(0, __1.prepareRef)(lineItemId)}>`;
239
252
  appSchema.definitions[schemaIdForToolBar].properties.actions['$ref'] =
240
253
  __1.DEFINITION_LINK_PREFIX + schemaIdForActions;
241
254
  const actionId = lineItemId.startsWith(ux_specification_types_1.DefinitionName.LineItems)
242
255
  ? ux_specification_types_1.DefinitionName.Actions
243
256
  : ux_specification_types_1.DefinitionName.ObjectPageToolBarActions;
244
- const actions = (appSchema.definitions[schemaIdForActions] = JSON.parse(JSON.stringify(appSchema.definitions[actionId])));
245
- actions.properties = {};
246
- // Handle actions additional properties - add custom action reference if it is supported
247
- actions.additionalProperties = false;
248
- if (customActionDefinitionName) {
249
- const customActionRef = getCustomExtensionDefinitionName(appSchema, lineItemId, customActionDefinitionName);
250
- actions.additionalProperties = { $ref: customActionRef };
257
+ let actions;
258
+ try {
259
+ actions = appSchema.definitions[schemaIdForActions] = JSON.parse(JSON.stringify(appSchema.definitions[actionId]));
260
+ actions.properties = {};
261
+ // Handle actions additional properties - add custom action reference if it is supported
262
+ actions.additionalProperties = false;
263
+ if (customActionDefinitionName) {
264
+ const customActionRef = getCustomExtensionDefinitionName(appSchema, lineItemId, customActionDefinitionName);
265
+ actions.additionalProperties = { $ref: customActionRef };
266
+ }
267
+ }
268
+ catch (error) {
269
+ throw new Error(i18next_1.default.t('INCONSISTENTSCHEMA', {
270
+ function: 'addCommonLineItemDefinitions',
271
+ definition: `${actionId}`
272
+ }));
251
273
  }
252
274
  // Copy LR footer
253
275
  let footerActions, schemaIdForFooter;
254
276
  if (lineItemId === ux_specification_types_1.DefinitionName.LineItems && appSchema.properties['footer']) {
255
277
  schemaIdForFooter = `${ux_specification_types_1.DefinitionName.Footer}<${lineItemId}>`;
256
278
  appSchema.properties['footer'].$ref = `${__1.DEFINITION_LINK_PREFIX}${schemaIdForFooter}`;
257
- appSchema.definitions[schemaIdForFooter] = JSON.parse(JSON.stringify(appSchema.definitions[ux_specification_types_1.DefinitionName.GenericFooter]));
279
+ try {
280
+ appSchema.definitions[schemaIdForFooter] = JSON.parse(JSON.stringify(appSchema.definitions[ux_specification_types_1.DefinitionName.GenericFooter]));
281
+ }
282
+ catch (error) {
283
+ throw new Error(i18next_1.default.t('INCONSISTENTSCHEMA', {
284
+ function: 'addCommonLineItemDefinitions',
285
+ definition: ux_specification_types_1.DefinitionName.GenericFooter
286
+ }));
287
+ }
258
288
  const schemaIdForFooterActions = `${ux_specification_types_1.DefinitionName.FooterActions}<${(0, __1.prepareRef)(lineItemId)}>`;
259
289
  appSchema.definitions[schemaIdForFooter].properties.actions['$ref'] =
260
290
  __1.DEFINITION_LINK_PREFIX + schemaIdForFooterActions;