@sap/ux-specification 1.96.25 → 1.96.26

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 (249) hide show
  1. package/dist/documentation/v2/v2-AnalyticalListPage.html +1 -1
  2. package/dist/documentation/v2/v2-ApplicationV2.html +1 -1
  3. package/dist/documentation/v2/v2-ListReport.html +1 -1
  4. package/dist/documentation/v2/v2-ObjectPage.html +1 -1
  5. package/dist/documentation/v2/v2-OverviewPage.html +1 -1
  6. package/dist/documentation/v4/v4-ApplicationV4.html +1 -1
  7. package/dist/documentation/v4/v4-FreestylePage.html +1 -1
  8. package/dist/documentation/v4/v4-ListReport.html +1 -1
  9. package/dist/documentation/v4/v4-ObjectPage.html +1 -1
  10. package/dist/index-min.js +41 -41
  11. package/dist/index-min.js.map +3 -3
  12. package/dist/schemas/v2/AnalyticalListPageConfig.json +9 -0
  13. package/dist/schemas/v2/ListReportConfig.json +9 -0
  14. package/dist/schemas/v2/ObjectPageConfig.json +9 -0
  15. package/dist/schemas/v4/ListReportConfig.json +32 -32
  16. package/dist/schemas/v4/ObjectPageConfig.json +99 -23
  17. package/dist/scripts/to-json-schema.d.ts.map +1 -1
  18. package/dist/scripts/to-json-schema.js +9 -1
  19. package/dist/scripts/to-json-schema.js.map +1 -1
  20. package/dist/src/api.d.ts +1 -2
  21. package/dist/src/api.d.ts.map +1 -1
  22. package/dist/src/api.js +13 -5
  23. package/dist/src/api.js.map +1 -1
  24. package/dist/src/extensionLogger.d.ts +1 -24
  25. package/dist/src/extensionLogger.d.ts.map +1 -1
  26. package/dist/src/extensionLogger.js +5 -15
  27. package/dist/src/extensionLogger.js.map +1 -1
  28. package/dist/src/index.d.ts +0 -2
  29. package/dist/src/index.d.ts.map +1 -1
  30. package/dist/src/index.js +0 -2
  31. package/dist/src/index.js.map +1 -1
  32. package/dist/src/project.d.ts +1 -2
  33. package/dist/src/project.d.ts.map +1 -1
  34. package/dist/src/project.js.map +1 -1
  35. package/dist/src/sync/common/appProvider.d.ts +1 -3
  36. package/dist/src/sync/common/appProvider.d.ts.map +1 -1
  37. package/dist/src/sync/common/appProvider.js +3 -4
  38. package/dist/src/sync/common/appProvider.js.map +1 -1
  39. package/dist/src/sync/common/decoration/control.d.ts +1 -1
  40. package/dist/src/sync/common/decoration/control.d.ts.map +1 -1
  41. package/dist/src/sync/common/decoration/control.js +12 -12
  42. package/dist/src/sync/common/decoration/control.js.map +1 -1
  43. package/dist/src/sync/common/decoration/decorators.d.ts +1 -1
  44. package/dist/src/sync/common/decoration/decorators.d.ts.map +1 -1
  45. package/dist/src/sync/common/decoration/flex.d.ts +1 -2
  46. package/dist/src/sync/common/decoration/flex.d.ts.map +1 -1
  47. package/dist/src/sync/common/decoration/flex.js.map +1 -1
  48. package/dist/src/sync/common/flexUtils.d.ts +1 -4
  49. package/dist/src/sync/common/flexUtils.d.ts.map +1 -1
  50. package/dist/src/sync/common/flexUtils.js.map +1 -1
  51. package/dist/src/sync/common/generate/objectPage.d.ts +3 -3
  52. package/dist/src/sync/common/generate/objectPage.d.ts.map +1 -1
  53. package/dist/src/sync/common/generate/objectPage.js +45 -43
  54. package/dist/src/sync/common/generate/objectPage.js.map +1 -1
  55. package/dist/src/sync/common/generate/utils.d.ts +20 -4
  56. package/dist/src/sync/common/generate/utils.d.ts.map +1 -1
  57. package/dist/src/sync/common/generate/utils.js +85 -27
  58. package/dist/src/sync/common/generate/utils.js.map +1 -1
  59. package/dist/src/sync/common/import/utils.d.ts +1 -2
  60. package/dist/src/sync/common/import/utils.d.ts.map +1 -1
  61. package/dist/src/sync/common/import/utils.js +4 -3
  62. package/dist/src/sync/common/import/utils.js.map +1 -1
  63. package/dist/src/sync/common/importProject.d.ts +1 -2
  64. package/dist/src/sync/common/importProject.d.ts.map +1 -1
  65. package/dist/src/sync/common/importProject.js +22 -23
  66. package/dist/src/sync/common/importProject.js.map +1 -1
  67. package/dist/src/sync/common/index.d.ts +0 -1
  68. package/dist/src/sync/common/index.d.ts.map +1 -1
  69. package/dist/src/sync/common/index.js +0 -1
  70. package/dist/src/sync/common/index.js.map +1 -1
  71. package/dist/src/sync/common/utils.d.ts +2 -12
  72. package/dist/src/sync/common/utils.d.ts.map +1 -1
  73. package/dist/src/sync/common/utils.js +38 -49
  74. package/dist/src/sync/common/utils.js.map +1 -1
  75. package/dist/src/sync/v2/application.d.ts.map +1 -1
  76. package/dist/src/sync/v2/application.js +1 -2
  77. package/dist/src/sync/v2/application.js.map +1 -1
  78. package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.d.ts.map +1 -1
  79. package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js +1 -2
  80. package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js.map +1 -1
  81. package/dist/src/sync/v2/export/controls/Field.d.ts.map +1 -1
  82. package/dist/src/sync/v2/export/controls/Field.js.map +1 -1
  83. package/dist/src/sync/v2/export/controls/FilterBar.d.ts.map +1 -1
  84. package/dist/src/sync/v2/export/controls/FilterBar.js +4 -5
  85. package/dist/src/sync/v2/export/controls/FilterBar.js.map +1 -1
  86. package/dist/src/sync/v2/export/controls/FormAction.d.ts.map +1 -1
  87. package/dist/src/sync/v2/export/controls/FormAction.js.map +1 -1
  88. package/dist/src/sync/v2/export/controls/Fragment.d.ts +2 -4
  89. package/dist/src/sync/v2/export/controls/Fragment.d.ts.map +1 -1
  90. package/dist/src/sync/v2/export/controls/Fragment.js +12 -13
  91. package/dist/src/sync/v2/export/controls/Fragment.js.map +1 -1
  92. package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.d.ts.map +1 -1
  93. package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.js.map +1 -1
  94. package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.d.ts.map +1 -1
  95. package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js.map +1 -1
  96. package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.d.ts +1 -3
  97. package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.d.ts.map +1 -1
  98. package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js +2 -3
  99. package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js.map +1 -1
  100. package/dist/src/sync/v2/export/controls/ObjectPageTable.d.ts +1 -2
  101. package/dist/src/sync/v2/export/controls/ObjectPageTable.d.ts.map +1 -1
  102. package/dist/src/sync/v2/export/controls/ObjectPageTable.js +3 -3
  103. package/dist/src/sync/v2/export/controls/ObjectPageTable.js.map +1 -1
  104. package/dist/src/sync/v2/export/controls/Table.d.ts +1 -2
  105. package/dist/src/sync/v2/export/controls/Table.d.ts.map +1 -1
  106. package/dist/src/sync/v2/export/controls/Table.js +6 -6
  107. package/dist/src/sync/v2/export/controls/Table.js.map +1 -1
  108. package/dist/src/sync/v2/export/controls/TableColumn.d.ts +1 -1
  109. package/dist/src/sync/v2/export/controls/TableColumn.js +1 -1
  110. package/dist/src/sync/v2/export/export.d.ts +1 -1
  111. package/dist/src/sync/v2/export/export.d.ts.map +1 -1
  112. package/dist/src/sync/v2/export/export.js +6 -6
  113. package/dist/src/sync/v2/export/export.js.map +1 -1
  114. package/dist/src/sync/v2/export/exportPage.d.ts +1 -2
  115. package/dist/src/sync/v2/export/exportPage.d.ts.map +1 -1
  116. package/dist/src/sync/v2/export/exportPage.js +1 -1
  117. package/dist/src/sync/v2/export/exportPage.js.map +1 -1
  118. package/dist/src/sync/v2/export/view-controller-generator.d.ts +1 -2
  119. package/dist/src/sync/v2/export/view-controller-generator.d.ts.map +1 -1
  120. package/dist/src/sync/v2/export/view-controller-generator.js +2 -2
  121. package/dist/src/sync/v2/export/view-controller-generator.js.map +1 -1
  122. package/dist/src/sync/v2/generate/analyticalListReport.d.ts +1 -1
  123. package/dist/src/sync/v2/generate/analyticalListReport.d.ts.map +1 -1
  124. package/dist/src/sync/v2/generate/analyticalListReport.js +10 -10
  125. package/dist/src/sync/v2/generate/analyticalListReport.js.map +1 -1
  126. package/dist/src/sync/v2/generate/generate.d.ts +1 -2
  127. package/dist/src/sync/v2/generate/generate.d.ts.map +1 -1
  128. package/dist/src/sync/v2/generate/generate.js +3 -3
  129. package/dist/src/sync/v2/generate/generate.js.map +1 -1
  130. package/dist/src/sync/v2/generate/listReport.d.ts +1 -1
  131. package/dist/src/sync/v2/generate/listReport.d.ts.map +1 -1
  132. package/dist/src/sync/v2/generate/listReport.js +5 -5
  133. package/dist/src/sync/v2/generate/listReport.js.map +1 -1
  134. package/dist/src/sync/v2/generate/objectPage.d.ts +1 -1
  135. package/dist/src/sync/v2/generate/objectPage.d.ts.map +1 -1
  136. package/dist/src/sync/v2/generate/objectPage.js +43 -41
  137. package/dist/src/sync/v2/generate/objectPage.js.map +1 -1
  138. package/dist/src/sync/v2/generate/utils.d.ts +2 -3
  139. package/dist/src/sync/v2/generate/utils.d.ts.map +1 -1
  140. package/dist/src/sync/v2/generate/utils.js +34 -24
  141. package/dist/src/sync/v2/generate/utils.js.map +1 -1
  142. package/dist/src/sync/v2/import/app/appProvider.d.ts +1 -3
  143. package/dist/src/sync/v2/import/app/appProvider.d.ts.map +1 -1
  144. package/dist/src/sync/v2/import/app/appProvider.js.map +1 -1
  145. package/dist/src/sync/v2/import/app/ovpProvider.d.ts +1 -2
  146. package/dist/src/sync/v2/import/app/ovpProvider.d.ts.map +1 -1
  147. package/dist/src/sync/v2/import/app/ovpProvider.js.map +1 -1
  148. package/dist/src/sync/v2/import/common/index.d.ts +1 -3
  149. package/dist/src/sync/v2/import/common/index.d.ts.map +1 -1
  150. package/dist/src/sync/v2/import/common/index.js +9 -9
  151. package/dist/src/sync/v2/import/common/index.js.map +1 -1
  152. package/dist/src/sync/v2/import/controls/table.d.ts.map +1 -1
  153. package/dist/src/sync/v2/import/controls/table.js +3 -4
  154. package/dist/src/sync/v2/import/controls/table.js.map +1 -1
  155. package/dist/src/sync/v2/import/pages/analyticalListPage.d.ts +1 -2
  156. package/dist/src/sync/v2/import/pages/analyticalListPage.d.ts.map +1 -1
  157. package/dist/src/sync/v2/import/pages/analyticalListPage.js +16 -16
  158. package/dist/src/sync/v2/import/pages/analyticalListPage.js.map +1 -1
  159. package/dist/src/sync/v2/import/pages/listReport.d.ts +1 -2
  160. package/dist/src/sync/v2/import/pages/listReport.d.ts.map +1 -1
  161. package/dist/src/sync/v2/import/pages/listReport.js +15 -15
  162. package/dist/src/sync/v2/import/pages/listReport.js.map +1 -1
  163. package/dist/src/sync/v2/import/pages/objectPage.d.ts +1 -1
  164. package/dist/src/sync/v2/import/pages/objectPage.d.ts.map +1 -1
  165. package/dist/src/sync/v2/import/pages/objectPage.js +31 -31
  166. package/dist/src/sync/v2/import/pages/objectPage.js.map +1 -1
  167. package/dist/src/sync/v2/import/utils.d.ts.map +1 -1
  168. package/dist/src/sync/v2/import/utils.js +1 -1
  169. package/dist/src/sync/v2/import/utils.js.map +1 -1
  170. package/dist/src/sync/v4/application.js +2 -2
  171. package/dist/src/sync/v4/application.js.map +1 -1
  172. package/dist/src/sync/v4/export/controls/ObjectPageForm.d.ts +9 -0
  173. package/dist/src/sync/v4/export/controls/ObjectPageForm.d.ts.map +1 -0
  174. package/dist/src/sync/v4/export/controls/ObjectPageForm.js +10 -0
  175. package/dist/src/sync/v4/export/controls/ObjectPageForm.js.map +1 -0
  176. package/dist/src/sync/v4/export/controls/ObjectPageFormAction.d.ts +10 -0
  177. package/dist/src/sync/v4/export/controls/ObjectPageFormAction.d.ts.map +1 -0
  178. package/dist/src/sync/v4/export/controls/ObjectPageFormAction.js +68 -0
  179. package/dist/src/sync/v4/export/controls/ObjectPageFormAction.js.map +1 -0
  180. package/dist/src/sync/v4/export/controls/ObjectPageTable.js +4 -4
  181. package/dist/src/sync/v4/export/controls/ObjectPageTable.js.map +1 -1
  182. package/dist/src/sync/v4/export/controls/Table.d.ts.map +1 -1
  183. package/dist/src/sync/v4/export/controls/Table.js +2 -1
  184. package/dist/src/sync/v4/export/controls/Table.js.map +1 -1
  185. package/dist/src/sync/v4/export/controls/index.d.ts +2 -0
  186. package/dist/src/sync/v4/export/controls/index.d.ts.map +1 -1
  187. package/dist/src/sync/v4/export/controls/index.js +2 -0
  188. package/dist/src/sync/v4/export/controls/index.js.map +1 -1
  189. package/dist/src/sync/v4/export/export.d.ts +1 -3
  190. package/dist/src/sync/v4/export/export.d.ts.map +1 -1
  191. package/dist/src/sync/v4/export/export.js +36 -36
  192. package/dist/src/sync/v4/export/export.js.map +1 -1
  193. package/dist/src/sync/v4/export/exportCustomColumn.d.ts +1 -1
  194. package/dist/src/sync/v4/export/exportCustomColumn.d.ts.map +1 -1
  195. package/dist/src/sync/v4/export/exportCustomColumn.js +3 -4
  196. package/dist/src/sync/v4/export/exportCustomColumn.js.map +1 -1
  197. package/dist/src/sync/v4/export/types.d.ts +1 -3
  198. package/dist/src/sync/v4/export/types.d.ts.map +1 -1
  199. package/dist/src/sync/v4/generate/freestylePage.d.ts +1 -1
  200. package/dist/src/sync/v4/generate/freestylePage.d.ts.map +1 -1
  201. package/dist/src/sync/v4/generate/generate.d.ts +2 -3
  202. package/dist/src/sync/v4/generate/generate.d.ts.map +1 -1
  203. package/dist/src/sync/v4/generate/generate.js +2 -2
  204. package/dist/src/sync/v4/generate/generate.js.map +1 -1
  205. package/dist/src/sync/v4/generate/listReport.d.ts +1 -1
  206. package/dist/src/sync/v4/generate/listReport.d.ts.map +1 -1
  207. package/dist/src/sync/v4/generate/listReport.js +116 -115
  208. package/dist/src/sync/v4/generate/listReport.js.map +1 -1
  209. package/dist/src/sync/v4/generate/objectPage.d.ts.map +1 -1
  210. package/dist/src/sync/v4/generate/objectPage.js +189 -148
  211. package/dist/src/sync/v4/generate/objectPage.js.map +1 -1
  212. package/dist/src/sync/v4/import/app/appProvider.d.ts +1 -2
  213. package/dist/src/sync/v4/import/app/appProvider.d.ts.map +1 -1
  214. package/dist/src/sync/v4/import/app/appProvider.js.map +1 -1
  215. package/dist/src/sync/v4/import/app/baseAppProvider.d.ts +2 -4
  216. package/dist/src/sync/v4/import/app/baseAppProvider.d.ts.map +1 -1
  217. package/dist/src/sync/v4/import/app/baseAppProvider.js +3 -3
  218. package/dist/src/sync/v4/import/app/baseAppProvider.js.map +1 -1
  219. package/dist/src/sync/v4/import/app/freestyleProvider.d.ts +1 -2
  220. package/dist/src/sync/v4/import/app/freestyleProvider.d.ts.map +1 -1
  221. package/dist/src/sync/v4/import/app/freestyleProvider.js.map +1 -1
  222. package/dist/src/sync/v4/import/fragment.d.ts +1 -2
  223. package/dist/src/sync/v4/import/fragment.d.ts.map +1 -1
  224. package/dist/src/sync/v4/import/fragment.js.map +1 -1
  225. package/dist/src/sync/v4/import/pages/listReport.d.ts +1 -2
  226. package/dist/src/sync/v4/import/pages/listReport.d.ts.map +1 -1
  227. package/dist/src/sync/v4/import/pages/listReport.js +36 -36
  228. package/dist/src/sync/v4/import/pages/listReport.js.map +1 -1
  229. package/dist/src/sync/v4/import/pages/objectPage.d.ts +1 -2
  230. package/dist/src/sync/v4/import/pages/objectPage.d.ts.map +1 -1
  231. package/dist/src/sync/v4/import/pages/objectPage.js +78 -22
  232. package/dist/src/sync/v4/import/pages/objectPage.js.map +1 -1
  233. package/dist/src/sync/v4/utils/StableIdHelper.d.ts +4 -0
  234. package/dist/src/sync/v4/utils/StableIdHelper.d.ts.map +1 -1
  235. package/dist/src/sync/v4/utils/StableIdHelper.js +3 -11
  236. package/dist/src/sync/v4/utils/StableIdHelper.js.map +1 -1
  237. package/dist/src/sync/v4/utils/utils.d.ts +5 -6
  238. package/dist/src/sync/v4/utils/utils.d.ts.map +1 -1
  239. package/dist/src/sync/v4/utils/utils.js +109 -68
  240. package/dist/src/sync/v4/utils/utils.js.map +1 -1
  241. package/package.json +2 -18
  242. package/dist/src/apiTypes.d.ts +0 -335
  243. package/dist/src/apiTypes.d.ts.map +0 -1
  244. package/dist/src/apiTypes.js +0 -25
  245. package/dist/src/apiTypes.js.map +0 -1
  246. package/dist/src/sync/common/types.d.ts +0 -306
  247. package/dist/src/sync/common/types.d.ts.map +0 -1
  248. package/dist/src/sync/common/types.js +0 -176
  249. package/dist/src/sync/common/types.js.map +0 -1
@@ -576,29 +576,35 @@
576
576
  "properties": {
577
577
  "id": {
578
578
  "description": "In case the fragment needs to be re-used for multiple tabs, the id property must be set to make the ids unique.",
579
+ "artifactType": "Fragment",
579
580
  "type": "string"
580
581
  },
581
582
  "text": {
582
583
  "description": "The label of the custom column, preferably as an i18n key.",
583
584
  "i18nClassification": "COL: Custom column header text",
585
+ "artifactType": "Fragment",
584
586
  "type": "string"
585
587
  },
586
588
  "columnKey": {
587
589
  "description": "The column key",
590
+ "artifactType": "Fragment",
588
591
  "type": "string"
589
592
  },
590
593
  "columnIndex": {
591
594
  "description": "The index of the column in the overall collection; if undefined, the custom column will be added at the end of the table.",
592
595
  "minimum": 0,
593
596
  "hidden": true,
597
+ "artifactType": "Fragment",
594
598
  "type": "number"
595
599
  },
596
600
  "leadingProperty": {
597
601
  "description": "If the content of your custom column refers to a property (such as{Price}), you need to include a corresponding 'leadingProperty' entry in the column definition.",
602
+ "artifactType": "Fragment",
598
603
  "type": "string"
599
604
  },
600
605
  "className": {
601
606
  "description": "The UI5 control used for your extension",
607
+ "artifactType": "Manifest",
602
608
  "type": "string",
603
609
  "enum": [
604
610
  "sap.ui.core.Fragment"
@@ -606,14 +612,17 @@
606
612
  },
607
613
  "fragmentName": {
608
614
  "description": "The relative path to your fragment with path segments separated by '.'. The first element is the app ID.",
615
+ "artifactType": "Manifest",
609
616
  "type": "string"
610
617
  },
611
618
  "cellsFragmentName": {
612
619
  "description": "In case of a responsive table, you additionally need to specify a fragment for the table cells.",
620
+ "artifactType": "Manifest",
613
621
  "type": "string"
614
622
  },
615
623
  "tabKey": {
616
624
  "description": "If you use QuickVariantSelectionX, you need to define the extensions per tab. 'tabKey' is the key provided when defining the QuickVariantSelectionX.",
625
+ "artifactType": "Manifest",
617
626
  "type": "string"
618
627
  },
619
628
  "extensionType": {
@@ -587,29 +587,35 @@
587
587
  "properties": {
588
588
  "id": {
589
589
  "description": "In case the fragment needs to be re-used for multiple tabs, the id property must be set to make the ids unique.",
590
+ "artifactType": "Fragment",
590
591
  "type": "string"
591
592
  },
592
593
  "text": {
593
594
  "description": "The label of the custom column, preferably as an i18n key.",
594
595
  "i18nClassification": "COL: Custom column header text",
596
+ "artifactType": "Fragment",
595
597
  "type": "string"
596
598
  },
597
599
  "columnKey": {
598
600
  "description": "The column key",
601
+ "artifactType": "Fragment",
599
602
  "type": "string"
600
603
  },
601
604
  "columnIndex": {
602
605
  "description": "The index of the column in the overall collection; if undefined, the custom column will be added at the end of the table.",
603
606
  "minimum": 0,
604
607
  "hidden": true,
608
+ "artifactType": "Fragment",
605
609
  "type": "number"
606
610
  },
607
611
  "leadingProperty": {
608
612
  "description": "If the content of your custom column refers to a property (such as{Price}), you need to include a corresponding 'leadingProperty' entry in the column definition.",
613
+ "artifactType": "Fragment",
609
614
  "type": "string"
610
615
  },
611
616
  "className": {
612
617
  "description": "The UI5 control used for your extension",
618
+ "artifactType": "Manifest",
613
619
  "type": "string",
614
620
  "enum": [
615
621
  "sap.ui.core.Fragment"
@@ -617,14 +623,17 @@
617
623
  },
618
624
  "fragmentName": {
619
625
  "description": "The relative path to your fragment with path segments separated by '.'. The first element is the app ID.",
626
+ "artifactType": "Manifest",
620
627
  "type": "string"
621
628
  },
622
629
  "cellsFragmentName": {
623
630
  "description": "In case of a responsive table, you additionally need to specify a fragment for the table cells.",
631
+ "artifactType": "Manifest",
624
632
  "type": "string"
625
633
  },
626
634
  "tabKey": {
627
635
  "description": "If you use QuickVariantSelectionX, you need to define the extensions per tab. 'tabKey' is the key provided when defining the QuickVariantSelectionX.",
636
+ "artifactType": "Manifest",
628
637
  "type": "string"
629
638
  },
630
639
  "extensionType": {
@@ -862,29 +862,35 @@
862
862
  "properties": {
863
863
  "id": {
864
864
  "description": "In case the fragment needs to be re-used for multiple tabs, the id property must be set to make the ids unique.",
865
+ "artifactType": "Fragment",
865
866
  "type": "string"
866
867
  },
867
868
  "text": {
868
869
  "description": "The label of the custom column, preferably as an i18n key.",
869
870
  "i18nClassification": "COL: Custom column header text",
871
+ "artifactType": "Fragment",
870
872
  "type": "string"
871
873
  },
872
874
  "columnKey": {
873
875
  "description": "The column key",
876
+ "artifactType": "Fragment",
874
877
  "type": "string"
875
878
  },
876
879
  "columnIndex": {
877
880
  "description": "The index of the column in the overall collection; if undefined, the custom column will be added at the end of the table.",
878
881
  "minimum": 0,
879
882
  "hidden": true,
883
+ "artifactType": "Fragment",
880
884
  "type": "number"
881
885
  },
882
886
  "leadingProperty": {
883
887
  "description": "If the content of your custom column refers to a property (such as{Price}), you need to include a corresponding 'leadingProperty' entry in the column definition.",
888
+ "artifactType": "Fragment",
884
889
  "type": "string"
885
890
  },
886
891
  "className": {
887
892
  "description": "The UI5 control used for your extension",
893
+ "artifactType": "Manifest",
888
894
  "type": "string",
889
895
  "enum": [
890
896
  "sap.ui.core.Fragment"
@@ -892,14 +898,17 @@
892
898
  },
893
899
  "fragmentName": {
894
900
  "description": "The relative path to your fragment with path segments separated by '.'. The first element is the app ID.",
901
+ "artifactType": "Manifest",
895
902
  "type": "string"
896
903
  },
897
904
  "cellsFragmentName": {
898
905
  "description": "In case of a responsive table, you additionally need to specify a fragment for the table cells.",
906
+ "artifactType": "Manifest",
899
907
  "type": "string"
900
908
  },
901
909
  "tabKey": {
902
910
  "description": "If you use QuickVariantSelectionX, you need to define the extensions per tab. 'tabKey' is the key provided when defining the QuickVariantSelectionX.",
911
+ "artifactType": "Manifest",
903
912
  "type": "string"
904
913
  },
905
914
  "extensionType": {
@@ -154,18 +154,18 @@
154
154
  "text": {
155
155
  "description": "The text that is displayed on the button (typically a binding to an i18n entry).",
156
156
  "i18nClassification": "COL: Custom action text",
157
- "type": "string",
158
- "artifactType": "Manifest"
157
+ "artifactType": "Manifest",
158
+ "type": "string"
159
159
  },
160
160
  "press": {
161
161
  "description": "Relevant for extension actions; allows the definition of a target action handler.",
162
- "type": "string",
163
- "artifactType": "Manifest"
162
+ "artifactType": "Manifest",
163
+ "type": "string"
164
164
  },
165
165
  "requiresSelection": {
166
166
  "description": "Indicates whether the action requires a selection of items.",
167
- "type": "boolean",
168
- "artifactType": "Manifest"
167
+ "artifactType": "Manifest",
168
+ "type": "boolean"
169
169
  },
170
170
  "visible": {
171
171
  "pattern": "^(false|true)$|^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",
@@ -211,8 +211,8 @@
211
211
  "properties": {
212
212
  "anchor": {
213
213
  "description": "The key of another action to be used as placement anchor.",
214
- "type": "string",
215
- "artifactType": "Manifest"
214
+ "artifactType": "Manifest",
215
+ "type": "string"
216
216
  },
217
217
  "placement": {
218
218
  "$ref": "#/definitions/ActionPlacement",
@@ -397,8 +397,8 @@
397
397
  "text": {
398
398
  "description": "The text that is displayed on the button (typically a binding to an i18n entry).",
399
399
  "i18nClassification": "COL: Custom action text",
400
- "type": "string",
401
- "artifactType": "Manifest"
400
+ "artifactType": "Manifest",
401
+ "type": "string"
402
402
  },
403
403
  "position": {
404
404
  "$ref": "#/definitions/CustomActionPosition",
@@ -407,13 +407,13 @@
407
407
  },
408
408
  "press": {
409
409
  "description": "Relevant for extension actions; allows the definition of a target action handler.",
410
- "type": "string",
411
- "artifactType": "Manifest"
410
+ "artifactType": "Manifest",
411
+ "type": "string"
412
412
  },
413
413
  "requiresSelection": {
414
414
  "description": "Indicates whether the action requires a selection of items.",
415
- "type": "boolean",
416
- "artifactType": "Manifest"
415
+ "artifactType": "Manifest",
416
+ "type": "boolean"
417
417
  },
418
418
  "visible": {
419
419
  "pattern": "^(false|true)$|^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",
@@ -459,8 +459,8 @@
459
459
  "properties": {
460
460
  "anchor": {
461
461
  "description": "The key of another action to be used as placement anchor.",
462
- "type": "string",
463
- "artifactType": "Manifest"
462
+ "artifactType": "Manifest",
463
+ "type": "string"
464
464
  },
465
465
  "placement": {
466
466
  "$ref": "#/definitions/ActionPlacement",
@@ -567,18 +567,18 @@
567
567
  "header": {
568
568
  "description": "The header is shown on the table as header, as well as in the add/remove dialog.",
569
569
  "i18nClassification": "COL: Custom column header text",
570
- "type": "string",
571
- "artifactType": "Manifest"
570
+ "artifactType": "Manifest",
571
+ "type": "string"
572
572
  },
573
573
  "width": {
574
574
  "description": "A string type that represents CSS size values.\nRefer to https://openui5.hana.ondemand.com/api/sap.ui.core.CSSSize.",
575
- "type": "string",
576
- "artifactType": "Manifest"
575
+ "artifactType": "Manifest",
576
+ "type": "string"
577
577
  },
578
578
  "template": {
579
579
  "description": "Relevant for extension columns; allows the definition of a target fragment.",
580
- "type": "string",
581
- "artifactType": "Manifest"
580
+ "artifactType": "Manifest",
581
+ "type": "string"
582
582
  },
583
583
  "horizontalAlign": {
584
584
  "$ref": "#/definitions/HorizontalAlign",
@@ -592,11 +592,11 @@
592
592
  },
593
593
  "properties": {
594
594
  "description": "If provided and sorting is enabled for the table the custom column header can be clicked. This will lead to a list of properties (or one) that can be sorted by, they are displayed as the labels of the properties, corresponding to their definition in the annotations.",
595
+ "artifactType": "Manifest",
595
596
  "type": "array",
596
597
  "items": {
597
598
  "type": "string"
598
- },
599
- "artifactType": "Manifest"
599
+ }
600
600
  }
601
601
  },
602
602
  "additionalProperties": false,
@@ -1115,18 +1115,18 @@
1115
1115
  "header": {
1116
1116
  "description": "The header is shown on the table as header, as well as in the add/remove dialog.",
1117
1117
  "i18nClassification": "COL: Custom column header text",
1118
- "type": "string",
1119
- "artifactType": "Manifest"
1118
+ "artifactType": "Manifest",
1119
+ "type": "string"
1120
1120
  },
1121
1121
  "width": {
1122
1122
  "description": "A string type that represents CSS size values.\nRefer to https://openui5.hana.ondemand.com/api/sap.ui.core.CSSSize.",
1123
- "type": "string",
1124
- "artifactType": "Manifest"
1123
+ "artifactType": "Manifest",
1124
+ "type": "string"
1125
1125
  },
1126
1126
  "template": {
1127
1127
  "description": "Relevant for extension columns; allows the definition of a target fragment.",
1128
- "type": "string",
1129
- "artifactType": "Manifest"
1128
+ "artifactType": "Manifest",
1129
+ "type": "string"
1130
1130
  },
1131
1131
  "horizontalAlign": {
1132
1132
  "$ref": "#/definitions/HorizontalAlign",
@@ -1140,11 +1140,11 @@
1140
1140
  },
1141
1141
  "properties": {
1142
1142
  "description": "If provided and sorting is enabled for the table the custom column header can be clicked. This will lead to a list of properties (or one) that can be sorted by, they are displayed as the labels of the properties, corresponding to their definition in the annotations.",
1143
+ "artifactType": "Manifest",
1143
1144
  "type": "array",
1144
1145
  "items": {
1145
1146
  "type": "string"
1146
- },
1147
- "artifactType": "Manifest"
1147
+ }
1148
1148
  }
1149
1149
  },
1150
1150
  "additionalProperties": false,
@@ -382,18 +382,18 @@
382
382
  "text": {
383
383
  "description": "The text that is displayed on the button (typically a binding to an i18n entry).",
384
384
  "i18nClassification": "COL: Custom action text",
385
- "type": "string",
386
- "artifactType": "Manifest"
385
+ "artifactType": "Manifest",
386
+ "type": "string"
387
387
  },
388
388
  "press": {
389
389
  "description": "Relevant for extension actions; allows the definition of a target action handler.",
390
- "type": "string",
391
- "artifactType": "Manifest"
390
+ "artifactType": "Manifest",
391
+ "type": "string"
392
392
  },
393
393
  "requiresSelection": {
394
394
  "description": "Indicates whether the action requires a selection of items.",
395
- "type": "boolean",
396
- "artifactType": "Manifest"
395
+ "artifactType": "Manifest",
396
+ "type": "boolean"
397
397
  },
398
398
  "visible": {
399
399
  "pattern": "^(false|true)$|^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",
@@ -443,8 +443,8 @@
443
443
  "properties": {
444
444
  "anchor": {
445
445
  "description": "The key of another action to be used as placement anchor.",
446
- "type": "string",
447
- "artifactType": "Manifest"
446
+ "artifactType": "Manifest",
447
+ "type": "string"
448
448
  },
449
449
  "placement": {
450
450
  "$ref": "#/definitions/ActionPlacement",
@@ -640,18 +640,18 @@
640
640
  "header": {
641
641
  "description": "The header is shown on the table as header, as well as in the add/remove dialog.",
642
642
  "i18nClassification": "COL: Custom column header text",
643
- "type": "string",
644
- "artifactType": "Manifest"
643
+ "artifactType": "Manifest",
644
+ "type": "string"
645
645
  },
646
646
  "width": {
647
647
  "description": "A string type that represents CSS size values.\nRefer to https://openui5.hana.ondemand.com/api/sap.ui.core.CSSSize.",
648
- "type": "string",
649
- "artifactType": "Manifest"
648
+ "artifactType": "Manifest",
649
+ "type": "string"
650
650
  },
651
651
  "template": {
652
652
  "description": "Relevant for extension columns; allows the definition of a target fragment.",
653
- "type": "string",
654
- "artifactType": "Manifest"
653
+ "artifactType": "Manifest",
654
+ "type": "string"
655
655
  },
656
656
  "horizontalAlign": {
657
657
  "$ref": "#/definitions/HorizontalAlign",
@@ -665,11 +665,11 @@
665
665
  },
666
666
  "properties": {
667
667
  "description": "If provided and sorting is enabled for the table the custom column header can be clicked. This will lead to a list of properties (or one) that can be sorted by, they are displayed as the labels of the properties, corresponding to their definition in the annotations.",
668
+ "artifactType": "Manifest",
668
669
  "type": "array",
669
670
  "items": {
670
671
  "type": "string"
671
- },
672
- "artifactType": "Manifest"
672
+ }
673
673
  }
674
674
  },
675
675
  "additionalProperties": false,
@@ -683,8 +683,8 @@
683
683
  "properties": {
684
684
  "anchor": {
685
685
  "description": "The key of another column to be used as placement anchor.",
686
- "type": "string",
687
- "artifactType": "Manifest"
686
+ "artifactType": "Manifest",
687
+ "type": "string"
688
688
  },
689
689
  "placement": {
690
690
  "$ref": "#/definitions/Placement",
@@ -733,15 +733,91 @@
733
733
  "type": "object",
734
734
  "properties": {
735
735
  "form": {
736
- "description": "Form",
737
- "isViewNode": true,
738
- "type": "object",
739
- "properties": {},
740
- "additionalProperties": true
736
+ "$ref": "#/definitions/ObjectPageForm",
737
+ "description": "Form"
738
+ }
739
+ },
740
+ "additionalProperties": false
741
+ },
742
+ "ObjectPageForm": {
743
+ "description": "Object Page Form",
744
+ "isViewNode": true,
745
+ "type": "object",
746
+ "properties": {
747
+ "actions": {
748
+ "$ref": "#/definitions/FormCustomActionsOP"
741
749
  }
742
750
  },
743
751
  "additionalProperties": false
744
752
  },
753
+ "FormCustomActionsOP": {
754
+ "type": "object",
755
+ "additionalProperties": {
756
+ "$ref": "#/definitions/FormCustomActionOP"
757
+ }
758
+ },
759
+ "FormCustomActionOP": {
760
+ "type": "object",
761
+ "properties": {
762
+ "text": {
763
+ "description": "The text that is displayed on the button (typically a binding to an i18n entry).",
764
+ "i18nClassification": "COL: Custom action text",
765
+ "artifactType": "Manifest",
766
+ "type": "string"
767
+ },
768
+ "visible": {
769
+ "pattern": "^(false|true)$|^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",
770
+ "anyOf": [
771
+ {
772
+ "enum": [
773
+ false,
774
+ true,
775
+ "{ui>/editable}",
776
+ "{= !${ui>/editable}}"
777
+ ]
778
+ },
779
+ {
780
+ "type": "string"
781
+ }
782
+ ],
783
+ "description": "Whether the action button should be visible on the screen.",
784
+ "artifactType": "Manifest"
785
+ },
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
+ "enabled": {
797
+ "pattern": "^(false|true)$|^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",
798
+ "anyOf": [
799
+ {
800
+ "enum": [
801
+ false,
802
+ true,
803
+ "{ui>/editable}",
804
+ "{= !${ui>/editable}}"
805
+ ]
806
+ },
807
+ {
808
+ "type": "string"
809
+ }
810
+ ],
811
+ "description": "Whether the action button should be enabled. Default value is `true`.",
812
+ "artifactType": "Manifest"
813
+ }
814
+ },
815
+ "additionalProperties": false,
816
+ "required": [
817
+ "press",
818
+ "text"
819
+ ]
820
+ },
745
821
  "ObjectPageSectionDataPoint": {
746
822
  "type": "object",
747
823
  "properties": {
@@ -1 +1 @@
1
- {"version":3,"file":"to-json-schema.d.ts","sourceRoot":"","sources":["../../scripts/to-json-schema.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAGnE,oBAAY,MAAM,GAAG;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAiBhD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,oBAAoB,GAAG,MAAM,EAAE,CA4BxG"}
1
+ {"version":3,"file":"to-json-schema.d.ts","sourceRoot":"","sources":["../../scripts/to-json-schema.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAGnE,oBAAY,MAAM,GAAG;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAyBhD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,oBAAoB,GAAG,MAAM,EAAE,CA4BxG"}
@@ -38,7 +38,15 @@ const compilerOptions = {
38
38
  const generatorSettings = {
39
39
  noExtraProps: true,
40
40
  required: true,
41
- validationKeywords: ['i18nClassification', 'isViewNode', 'displayName', 'controlProperty', 'hidden', 'minimum']
41
+ validationKeywords: [
42
+ 'i18nClassification',
43
+ 'isViewNode',
44
+ 'displayName',
45
+ 'controlProperty',
46
+ 'hidden',
47
+ 'minimum',
48
+ 'artifactType'
49
+ ]
42
50
  };
43
51
  /**
44
52
  * Convert interfaces to json schema
@@ -1 +1 @@
1
- {"version":3,"file":"to-json-schema.js","sourceRoot":"","sources":["../../scripts/to-json-schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAsC;AACtC,uCAAyB;AAEzB,mEAA6E;AAC7E,yDAAgE;AAChE,2DAAuF;AACvF,2DAAuF;AAEvF,wEAA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AE,IAAI,CAAC,CAAC;IAC9C,QAAQ;IACR,OAAO,GAAG,iBAAiB,CAAC,WAAI,CAAC,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,kBAAkB,CAAC,EAAE,6CAAoB,CAAC,EAAE,CAAC,CAAC;IAClG,kBAAkB,CAAC,UAAU,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;AAClD,CAAC;AAED,MAAM,GAAG,GAAG,WAAI,CAAC,SAAS,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;AAC7C,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE;IACrB,EAAE,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;CACrB;AACD,kDAAkD;AAClD,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,EAAE;IAC7B,YAAY,CAAC,GAAG,CAAC,CAAC;CACrB"}
package/dist/src/api.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import type { ExportResults, File } from './sync/common/types';
2
- import type { GenerateSchemaParameters, ExportConfigParameters, ImportConfigParameters, ImportProjectParameters, ApiVersion, GenerateCustomExtensionParams } from './apiTypes';
1
+ import type { ExportResults, File, GenerateSchemaParameters, ExportConfigParameters, ImportConfigParameters, ImportProjectParameters, ApiVersion, GenerateCustomExtensionParams } from '@sap/ux-specification-types';
3
2
  import type { Editor } from 'mem-fs-editor';
4
3
  /**
5
4
  * Return the generic (project independent) JSON schema
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/api.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EACR,wBAAwB,EACxB,sBAAsB,EACtB,sBAAsB,EACtB,uBAAuB,EACvB,UAAU,EAEV,6BAA6B,EAChC,MAAM,YAAY,CAAC;AA2BpB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAG5C;;;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C,gBAAgB,EAAE,sBAAsB,GAAG,MAAM,GAAG,SAAS,CA8BzF;AAED;;;;GAIG;AACH,wBAAsB,aAAa,CAAC,gBAAgB,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC,CAE9F;AAED;;;;GAIG;AACH,wBAAsB,mBAAmB,CAAC,gBAAgB,EAAE,uBAAuB,GAAG,OAAO,CAAC,IAAI,EAAE,CAAC,CAEpG;AAED;;;GAGG;AACH,wBAAgB,aAAa,IAAI,UAAU,CAK1C;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,qBAAqB,EAAE,6BAA6B,GAAG,MAAM,GAAG,SAAS,CAYhH"}
package/dist/src/api.js CHANGED
@@ -5,7 +5,6 @@ exports.generateCustomExtension = exports.getApiVersion = exports.importProjectS
5
5
  * This file implements the interface 'Specification' from ./types and serves as API to specification
6
6
  */
7
7
  const ux_specification_types_1 = require("@sap/ux-specification-types");
8
- const apiTypes_1 = require("./apiTypes");
9
8
  const generate_1 = require("./sync/v2/generate");
10
9
  const generate_2 = require("./sync/v4/generate");
11
10
  const exportPage_1 = require("./sync/v2/export/exportPage");
@@ -14,6 +13,15 @@ const export_1 = require("./sync/v4/export/export");
14
13
  const import_2 = require("./sync/v4/import");
15
14
  const common_1 = require("./sync/common");
16
15
  const fe_fpm_writer_1 = require("@sap-ux/fe-fpm-writer");
16
+ const FPMWriterMap = new Map([
17
+ [ux_specification_types_1.CustomExtensionType.CustomPage, fe_fpm_writer_1.generateCustomPage],
18
+ [ux_specification_types_1.CustomExtensionType.CustomColumn, fe_fpm_writer_1.generateCustomColumn],
19
+ [ux_specification_types_1.CustomExtensionType.CustomSection, fe_fpm_writer_1.generateCustomSection],
20
+ [ux_specification_types_1.CustomExtensionType.ObjectPage, fe_fpm_writer_1.generateObjectPage],
21
+ [ux_specification_types_1.CustomExtensionType.CustomAction, fe_fpm_writer_1.generateCustomAction],
22
+ [ux_specification_types_1.CustomExtensionType.CustomView, fe_fpm_writer_1.generateCustomView],
23
+ [ux_specification_types_1.CustomExtensionType.ControllerExtension, fe_fpm_writer_1.generateControllerExtension]
24
+ ]);
17
25
  /**
18
26
  * Return the generic (project independent) JSON schema
19
27
  * @param specification - reference to spec
@@ -57,7 +65,7 @@ function generateSchema(generateParameters) {
57
65
  const v4Params = generateParameters[ux_specification_types_1.FioriElementsVersion.v4];
58
66
  if (v4Params[ux_specification_types_1.SchemaType.ListReport]) {
59
67
  const { genericSchema, entitySet, annotations, logger, manifest } = v4Params[ux_specification_types_1.SchemaType.ListReport];
60
- schema = generate_2.generateListReportInterfaceV4(common_1.TemplateType.ListReportObjectPageV4, genericSchema, entitySet, annotations, logger, manifest);
68
+ schema = generate_2.generateListReportInterfaceV4(ux_specification_types_1.TemplateType.ListReportObjectPageV4, genericSchema, entitySet, annotations, logger, manifest);
61
69
  }
62
70
  else if (v4Params[ux_specification_types_1.SchemaType.ObjectPage]) {
63
71
  const { genericSchema, entitySet, annotations, manifest, logger, fragments } = v4Params[ux_specification_types_1.SchemaType.ObjectPage];
@@ -66,11 +74,11 @@ function generateSchema(generateParameters) {
66
74
  else if (v4Params[ux_specification_types_1.SchemaType.AnalyticalListPage]) {
67
75
  const { genericSchema, entitySet, annotations, logger, manifest } = v4Params[ux_specification_types_1.SchemaType.AnalyticalListPage];
68
76
  //As of now, the LR logic can also be applied to ALP
69
- schema = generate_2.generateListReportInterfaceV4(common_1.TemplateType.AnalyticalListPageV4, genericSchema, entitySet, annotations, logger, manifest);
77
+ schema = generate_2.generateListReportInterfaceV4(ux_specification_types_1.TemplateType.AnalyticalListPageV4, genericSchema, entitySet, annotations, logger, manifest);
70
78
  }
71
79
  else if (v4Params[ux_specification_types_1.SchemaType.FreestylePage]) {
72
80
  const { genericSchema, entitySet, annotations, logger, manifest } = v4Params[ux_specification_types_1.SchemaType.FreestylePage];
73
- schema = generate_2.generateFreestyleInterfaceV4(common_1.TemplateType.FreestylePageV4, genericSchema, annotations, manifest, entitySet, logger);
81
+ schema = generate_2.generateFreestyleInterfaceV4(ux_specification_types_1.TemplateType.FreestylePageV4, genericSchema, annotations, manifest, entitySet, logger);
74
82
  }
75
83
  }
76
84
  return schema;
@@ -178,7 +186,7 @@ exports.getApiVersion = getApiVersion;
178
186
  * @returns {Editor} Instance of mem-fs-editor
179
187
  */
180
188
  function generateCustomExtension(customExtensionParams) {
181
- const fpmWriterFunction = apiTypes_1.FPMWriterMap.get(customExtensionParams.customExtension);
189
+ const fpmWriterFunction = FPMWriterMap.get(customExtensionParams.customExtension);
182
190
  if (fpmWriterFunction && typeof fpmWriterFunction === 'function') {
183
191
  fe_fpm_writer_1.enableFPM(customExtensionParams.basePath, {});
184
192
  return fpmWriterFunction(customExtensionParams.basePath, customExtensionParams.data, customExtensionParams.fsEditor);