@sap/ux-specification 1.71.63 → 1.71.66

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 (526) hide show
  1. package/CHANGELOG.md +53 -2
  2. package/dist/documentation/runDocu-min.js +9645 -2
  3. package/dist/documentation/runDocu-min.js.map +7 -0
  4. package/dist/documentation/styleDocu.css +32 -28
  5. package/dist/documentation/v2/v2-AnalyticalListPage.html +20 -8
  6. package/dist/documentation/v2/v2-ApplicationV2.html +20 -8
  7. package/dist/documentation/v2/v2-ListReport.html +20 -8
  8. package/dist/documentation/v2/v2-ObjectPage.html +20 -8
  9. package/dist/documentation/v2/v2-OverviewPage.html +20 -8
  10. package/dist/index-min.js +24708 -2
  11. package/dist/index-min.js.map +7 -0
  12. package/dist/schemas/v2/AnalyticalListPageConfig.json +3 -2
  13. package/dist/schemas/v2/ApplicationV2.json +10 -1
  14. package/dist/schemas/v2/ListReportConfig.json +4 -3
  15. package/dist/schemas/v2/ObjectPageConfig.json +20 -19
  16. package/dist/{src → types}/api.d.ts +2 -1
  17. package/dist/types/api.d.ts.map +1 -0
  18. package/dist/{src → types}/apiTypes.d.ts +3 -1
  19. package/dist/types/apiTypes.d.ts.map +1 -0
  20. package/dist/{src → types}/extensionLogger.d.ts +1 -0
  21. package/dist/types/extensionLogger.d.ts.map +1 -0
  22. package/dist/{src → types}/i18n/i18n.d.ts +1 -0
  23. package/dist/types/i18n/i18n.d.ts.map +1 -0
  24. package/dist/{src → types}/index.d.ts +1 -0
  25. package/dist/types/index.d.ts.map +1 -0
  26. package/dist/{src → types}/project.d.ts +1 -0
  27. package/dist/types/project.d.ts.map +1 -0
  28. package/dist/{src → types}/specification/common/Application.d.ts +1 -0
  29. package/dist/types/specification/common/Application.d.ts.map +1 -0
  30. package/dist/{src → types}/specification/common/index.d.ts +1 -0
  31. package/dist/types/specification/common/index.d.ts.map +1 -0
  32. package/dist/{src → types}/specification/common/page.d.ts +2 -1
  33. package/dist/types/specification/common/page.d.ts.map +1 -0
  34. package/dist/{src → types}/specification/common/types.d.ts +1 -0
  35. package/dist/types/specification/common/types.d.ts.map +1 -0
  36. package/dist/{src → types}/specification/common/webapp/manifest/Manifest.d.ts +1 -0
  37. package/dist/types/specification/common/webapp/manifest/Manifest.d.ts.map +1 -0
  38. package/dist/{src → types}/specification/common/webapp/manifest/index.d.ts +1 -0
  39. package/dist/types/specification/common/webapp/manifest/index.d.ts.map +1 -0
  40. package/dist/{src → types}/specification/common/webapp/manifest/sapOvp.d.ts +1 -0
  41. package/dist/types/specification/common/webapp/manifest/sapOvp.d.ts.map +1 -0
  42. package/dist/{src → types}/specification/common/webapp/manifest/sapUi5.d.ts +1 -0
  43. package/dist/types/specification/common/webapp/manifest/sapUi5.d.ts.map +1 -0
  44. package/dist/{src → types}/specification/schemaAccess.d.ts +7 -0
  45. package/dist/types/specification/schemaAccess.d.ts.map +1 -0
  46. package/dist/{src → types}/specification/v2/ApplicationV2.d.ts +1 -0
  47. package/dist/types/specification/v2/ApplicationV2.d.ts.map +1 -0
  48. package/dist/{src → types}/specification/v2/controls/Action.d.ts +1 -0
  49. package/dist/types/specification/v2/controls/Action.d.ts.map +1 -0
  50. package/dist/{src → types}/specification/v2/controls/AnalyticalListPageChart.d.ts +1 -0
  51. package/dist/types/specification/v2/controls/AnalyticalListPageChart.d.ts.map +1 -0
  52. package/dist/{src → types}/specification/v2/controls/AnalyticalListPageKPI.d.ts +1 -0
  53. package/dist/types/specification/v2/controls/AnalyticalListPageKPI.d.ts.map +1 -0
  54. package/dist/{src → types}/specification/v2/controls/Card.d.ts +1 -0
  55. package/dist/types/specification/v2/controls/Card.d.ts.map +1 -0
  56. package/dist/{src → types}/specification/v2/controls/Facets.d.ts +1 -0
  57. package/dist/types/specification/v2/controls/Facets.d.ts.map +1 -0
  58. package/dist/{src → types}/specification/v2/controls/Field.d.ts +1 -0
  59. package/dist/types/specification/v2/controls/Field.d.ts.map +1 -0
  60. package/dist/{src → types}/specification/v2/controls/FilterBar.d.ts +1 -0
  61. package/dist/types/specification/v2/controls/FilterBar.d.ts.map +1 -0
  62. package/dist/{src → types}/specification/v2/controls/Footer.d.ts +1 -0
  63. package/dist/types/specification/v2/controls/Footer.d.ts.map +1 -0
  64. package/dist/{src → types}/specification/v2/controls/ObjectPageChart.d.ts +1 -0
  65. package/dist/types/specification/v2/controls/ObjectPageChart.d.ts.map +1 -0
  66. package/dist/{src → types}/specification/v2/controls/ObjectPageForm.d.ts +1 -0
  67. package/dist/types/specification/v2/controls/ObjectPageForm.d.ts.map +1 -0
  68. package/dist/{src → types}/specification/v2/controls/ObjectPageHeader.d.ts +1 -0
  69. package/dist/types/specification/v2/controls/ObjectPageHeader.d.ts.map +1 -0
  70. package/dist/{src → types}/specification/v2/controls/ObjectPageLayout.d.ts +1 -0
  71. package/dist/types/specification/v2/controls/ObjectPageLayout.d.ts.map +1 -0
  72. package/dist/{src → types}/specification/v2/controls/ObjectPageSection.d.ts +1 -0
  73. package/dist/types/specification/v2/controls/ObjectPageSection.d.ts.map +1 -0
  74. package/dist/{src → types}/specification/v2/controls/ObjectPageTable.d.ts +1 -0
  75. package/dist/types/specification/v2/controls/ObjectPageTable.d.ts.map +1 -0
  76. package/dist/{src → types}/specification/v2/controls/ObjectPageToolBar.d.ts +1 -0
  77. package/dist/types/specification/v2/controls/ObjectPageToolBar.d.ts.map +1 -0
  78. package/dist/{src → types}/specification/v2/controls/Table.d.ts +2 -0
  79. package/dist/types/specification/v2/controls/Table.d.ts.map +1 -0
  80. package/dist/{src → types}/specification/v2/controls/ToolBar.d.ts +1 -0
  81. package/dist/types/specification/v2/controls/ToolBar.d.ts.map +1 -0
  82. package/dist/{src → types}/specification/v2/controls/index.d.ts +1 -0
  83. package/dist/types/specification/v2/controls/index.d.ts.map +1 -0
  84. package/dist/{src → types}/specification/v2/index.d.ts +1 -0
  85. package/dist/types/specification/v2/index.d.ts.map +1 -0
  86. package/dist/{src → types}/specification/v2/page.d.ts +1 -0
  87. package/dist/types/specification/v2/page.d.ts.map +1 -0
  88. package/dist/{src → types}/specification/v2/pages/AnalyticalListPageConfig.d.ts +1 -0
  89. package/dist/types/specification/v2/pages/AnalyticalListPageConfig.d.ts.map +1 -0
  90. package/dist/{src → types}/specification/v2/pages/ListReportConfig.d.ts +1 -0
  91. package/dist/types/specification/v2/pages/ListReportConfig.d.ts.map +1 -0
  92. package/dist/{src → types}/specification/v2/pages/ObjectPageConfig.d.ts +1 -0
  93. package/dist/types/specification/v2/pages/ObjectPageConfig.d.ts.map +1 -0
  94. package/dist/{src → types}/specification/v2/pages/OverviewPageConfig.d.ts +1 -0
  95. package/dist/types/specification/v2/pages/OverviewPageConfig.d.ts.map +1 -0
  96. package/dist/{src → types}/specification/v2/pages/index.d.ts +1 -0
  97. package/dist/types/specification/v2/pages/index.d.ts.map +1 -0
  98. package/dist/types/specification/v2/webapp/index.d.ts +2 -0
  99. package/dist/types/specification/v2/webapp/index.d.ts.map +1 -0
  100. package/dist/{src → types}/specification/v2/webapp/manifest/index.d.ts +1 -0
  101. package/dist/types/specification/v2/webapp/manifest/index.d.ts.map +1 -0
  102. package/dist/{src → types}/specification/v2/webapp/manifest/sapUi.d.ts +1 -0
  103. package/dist/types/specification/v2/webapp/manifest/sapUi.d.ts.map +1 -0
  104. package/dist/{src → types}/specification/v2/webapp/manifest/sapUi5.d.ts +1 -0
  105. package/dist/types/specification/v2/webapp/manifest/sapUi5.d.ts.map +1 -0
  106. package/dist/{src → types}/specification/v2/webapp/manifest/sapUiPageV2.d.ts +1 -0
  107. package/dist/types/specification/v2/webapp/manifest/sapUiPageV2.d.ts.map +1 -0
  108. package/dist/{src → types}/sync/common/appProvider.d.ts +2 -1
  109. package/dist/types/sync/common/appProvider.d.ts.map +1 -0
  110. package/dist/{src → types}/sync/common/decoration/control.d.ts +1 -0
  111. package/dist/types/sync/common/decoration/control.d.ts.map +1 -0
  112. package/dist/{src → types}/sync/common/decoration/decorators.d.ts +1 -0
  113. package/dist/types/sync/common/decoration/decorators.d.ts.map +1 -0
  114. package/dist/{src → types}/sync/common/decoration/factory.d.ts +1 -0
  115. package/dist/types/sync/common/decoration/factory.d.ts.map +1 -0
  116. package/dist/{src → types}/sync/common/decoration/flex.d.ts +1 -0
  117. package/dist/types/sync/common/decoration/flex.d.ts.map +1 -0
  118. package/dist/{src → types}/sync/common/decoration/index.d.ts +1 -0
  119. package/dist/types/sync/common/decoration/index.d.ts.map +1 -0
  120. package/dist/{src → types}/sync/common/flexUtils.d.ts +1 -0
  121. package/dist/types/sync/common/flexUtils.d.ts.map +1 -0
  122. package/dist/{src → types}/sync/common/generate/index.d.ts +1 -0
  123. package/dist/types/sync/common/generate/index.d.ts.map +1 -0
  124. package/dist/{src → types}/sync/common/generate/objectPage.d.ts +3 -1
  125. package/dist/types/sync/common/generate/objectPage.d.ts.map +1 -0
  126. package/dist/{src → types}/sync/common/generate/utils.d.ts +1 -0
  127. package/dist/types/sync/common/generate/utils.d.ts.map +1 -0
  128. package/dist/{src → types}/sync/common/import/utils.d.ts +1 -0
  129. package/dist/types/sync/common/import/utils.d.ts.map +1 -0
  130. package/dist/{src → types}/sync/common/importProject.d.ts +1 -0
  131. package/dist/types/sync/common/importProject.d.ts.map +1 -0
  132. package/dist/{src → types}/sync/common/index.d.ts +1 -0
  133. package/dist/types/sync/common/index.d.ts.map +1 -0
  134. package/dist/{src → types}/sync/common/types.d.ts +6 -2
  135. package/dist/types/sync/common/types.d.ts.map +1 -0
  136. package/dist/{src → types}/sync/common/utils.d.ts +3 -2
  137. package/dist/types/sync/common/utils.d.ts.map +1 -0
  138. package/dist/{src → types}/sync/i18n.d.ts +1 -0
  139. package/dist/types/sync/i18n.d.ts.map +1 -0
  140. package/dist/{src → types}/sync/v2/application.d.ts +1 -0
  141. package/dist/types/sync/v2/application.d.ts.map +1 -0
  142. package/dist/{src → types}/sync/v2/export/controls/Action.d.ts +1 -0
  143. package/dist/types/sync/v2/export/controls/Action.d.ts.map +1 -0
  144. package/dist/{src → types}/sync/v2/export/controls/AnalyticalListPageChart.d.ts +1 -0
  145. package/dist/types/sync/v2/export/controls/AnalyticalListPageChart.d.ts.map +1 -0
  146. package/dist/{src → types}/sync/v2/export/controls/AnalyticalListPageKPI.d.ts +1 -0
  147. package/dist/types/sync/v2/export/controls/AnalyticalListPageKPI.d.ts.map +1 -0
  148. package/dist/{src → types}/sync/v2/export/controls/Card.d.ts +1 -0
  149. package/dist/types/sync/v2/export/controls/Card.d.ts.map +1 -0
  150. package/dist/{src → types}/sync/v2/export/controls/Field.d.ts +1 -0
  151. package/dist/types/sync/v2/export/controls/Field.d.ts.map +1 -0
  152. package/dist/{src → types}/sync/v2/export/controls/FilterBar.d.ts +1 -0
  153. package/dist/types/sync/v2/export/controls/FilterBar.d.ts.map +1 -0
  154. package/dist/{src → types}/sync/v2/export/controls/FormAction.d.ts +1 -0
  155. package/dist/types/sync/v2/export/controls/FormAction.d.ts.map +1 -0
  156. package/dist/{src → types}/sync/v2/export/controls/Fragment.d.ts +1 -0
  157. package/dist/types/sync/v2/export/controls/Fragment.d.ts.map +1 -0
  158. package/dist/{src → types}/sync/v2/export/controls/ObjectPageCustomSection.d.ts +1 -0
  159. package/dist/types/sync/v2/export/controls/ObjectPageCustomSection.d.ts.map +1 -0
  160. package/dist/{src → types}/sync/v2/export/controls/ObjectPageFooterAction.d.ts +1 -0
  161. package/dist/types/sync/v2/export/controls/ObjectPageFooterAction.d.ts.map +1 -0
  162. package/dist/{src → types}/sync/v2/export/controls/ObjectPageHeader.d.ts +1 -0
  163. package/dist/types/sync/v2/export/controls/ObjectPageHeader.d.ts.map +1 -0
  164. package/dist/{src → types}/sync/v2/export/controls/ObjectPageHeaderAction.d.ts +1 -0
  165. package/dist/types/sync/v2/export/controls/ObjectPageHeaderAction.d.ts.map +1 -0
  166. package/dist/{src → types}/sync/v2/export/controls/ObjectPageLayout.d.ts +1 -0
  167. package/dist/types/sync/v2/export/controls/ObjectPageLayout.d.ts.map +1 -0
  168. package/dist/{src → types}/sync/v2/export/controls/ObjectPageSectionsV2.d.ts +1 -0
  169. package/dist/types/sync/v2/export/controls/ObjectPageSectionsV2.d.ts.map +1 -0
  170. package/dist/{src → types}/sync/v2/export/controls/ObjectPageTable.d.ts +1 -0
  171. package/dist/types/sync/v2/export/controls/ObjectPageTable.d.ts.map +1 -0
  172. package/dist/{src → types}/sync/v2/export/controls/ObjectPageToolBarAction.d.ts +1 -0
  173. package/dist/types/sync/v2/export/controls/ObjectPageToolBarAction.d.ts.map +1 -0
  174. package/dist/{src → types}/sync/v2/export/controls/Table.d.ts +1 -0
  175. package/dist/types/sync/v2/export/controls/Table.d.ts.map +1 -0
  176. package/dist/{src → types}/sync/v2/export/controls/TableColumn.d.ts +1 -0
  177. package/dist/types/sync/v2/export/controls/TableColumn.d.ts.map +1 -0
  178. package/dist/{src → types}/sync/v2/export/controls/ToolBar.d.ts +1 -0
  179. package/dist/types/sync/v2/export/controls/ToolBar.d.ts.map +1 -0
  180. package/dist/{src → types}/sync/v2/export/controls/index.d.ts +1 -0
  181. package/dist/types/sync/v2/export/controls/index.d.ts.map +1 -0
  182. package/dist/{src → types}/sync/v2/export/export.d.ts +1 -0
  183. package/dist/types/sync/v2/export/export.d.ts.map +1 -0
  184. package/dist/{src → types}/sync/v2/export/exportPage.d.ts +1 -0
  185. package/dist/types/sync/v2/export/exportPage.d.ts.map +1 -0
  186. package/dist/{src → types}/sync/v2/export/factory.d.ts +1 -0
  187. package/dist/types/sync/v2/export/factory.d.ts.map +1 -0
  188. package/dist/{src → types}/sync/v2/export/manifest.d.ts +1 -0
  189. package/dist/types/sync/v2/export/manifest.d.ts.map +1 -0
  190. package/dist/{src → types}/sync/v2/export/pages/AnalyticalListPage.d.ts +1 -0
  191. package/dist/types/sync/v2/export/pages/AnalyticalListPage.d.ts.map +1 -0
  192. package/dist/{src → types}/sync/v2/export/pages/ListReport.d.ts +1 -0
  193. package/dist/types/sync/v2/export/pages/ListReport.d.ts.map +1 -0
  194. package/dist/{src → types}/sync/v2/export/pages/ObjectPage.d.ts +1 -0
  195. package/dist/types/sync/v2/export/pages/ObjectPage.d.ts.map +1 -0
  196. package/dist/{src → types}/sync/v2/export/pages/OverviewPage.d.ts +1 -0
  197. package/dist/types/sync/v2/export/pages/OverviewPage.d.ts.map +1 -0
  198. package/dist/{src → types}/sync/v2/export/pages/index.d.ts +1 -0
  199. package/dist/types/sync/v2/export/pages/index.d.ts.map +1 -0
  200. package/dist/{src → types}/sync/v2/export/view-controller-generator.d.ts +1 -0
  201. package/dist/types/sync/v2/export/view-controller-generator.d.ts.map +1 -0
  202. package/dist/{src → types}/sync/v2/generate/analyticalListReport.d.ts +1 -0
  203. package/dist/types/sync/v2/generate/analyticalListReport.d.ts.map +1 -0
  204. package/dist/{src → types}/sync/v2/generate/generate.d.ts +1 -0
  205. package/dist/types/sync/v2/generate/generate.d.ts.map +1 -0
  206. package/dist/{src → types}/sync/v2/generate/index.d.ts +1 -0
  207. package/dist/types/sync/v2/generate/index.d.ts.map +1 -0
  208. package/dist/{src → types}/sync/v2/generate/listReport.d.ts +1 -0
  209. package/dist/types/sync/v2/generate/listReport.d.ts.map +1 -0
  210. package/dist/{src → types}/sync/v2/generate/objectPage.d.ts +1 -0
  211. package/dist/types/sync/v2/generate/objectPage.d.ts.map +1 -0
  212. package/dist/{src → types}/sync/v2/generate/overviewPage.d.ts +1 -0
  213. package/dist/types/sync/v2/generate/overviewPage.d.ts.map +1 -0
  214. package/dist/{src → types}/sync/v2/generate/utils.d.ts +1 -0
  215. package/dist/types/sync/v2/generate/utils.d.ts.map +1 -0
  216. package/dist/{src → types}/sync/v2/import/app/appProvider.d.ts +1 -0
  217. package/dist/types/sync/v2/import/app/appProvider.d.ts.map +1 -0
  218. package/dist/{src → types}/sync/v2/import/app/ovpProvider.d.ts +1 -0
  219. package/dist/types/sync/v2/import/app/ovpProvider.d.ts.map +1 -0
  220. package/dist/{src → types}/sync/v2/import/common/index.d.ts +1 -0
  221. package/dist/types/sync/v2/import/common/index.d.ts.map +1 -0
  222. package/dist/{src → types}/sync/v2/import/controls/table.d.ts +1 -0
  223. package/dist/types/sync/v2/import/controls/table.d.ts.map +1 -0
  224. package/dist/types/sync/v2/import/getPageType.d.ts +1 -0
  225. package/dist/types/sync/v2/import/getPageType.d.ts.map +1 -0
  226. package/dist/{src → types}/sync/v2/import/index.d.ts +1 -0
  227. package/dist/types/sync/v2/import/index.d.ts.map +1 -0
  228. package/dist/{src → types}/sync/v2/import/pages/analyticalListPage.d.ts +1 -0
  229. package/dist/types/sync/v2/import/pages/analyticalListPage.d.ts.map +1 -0
  230. package/dist/{src → types}/sync/v2/import/pages/listReport.d.ts +1 -0
  231. package/dist/types/sync/v2/import/pages/listReport.d.ts.map +1 -0
  232. package/dist/{src → types}/sync/v2/import/pages/objectPage.d.ts +1 -0
  233. package/dist/types/sync/v2/import/pages/objectPage.d.ts.map +1 -0
  234. package/dist/{src → types}/sync/v2/import/pages/overviewPage.d.ts +1 -0
  235. package/dist/types/sync/v2/import/pages/overviewPage.d.ts.map +1 -0
  236. package/dist/{src → types}/sync/v2/import/utils.d.ts +1 -0
  237. package/dist/types/sync/v2/import/utils.d.ts.map +1 -0
  238. package/dist/{src → types}/sync/v2/types.d.ts +1 -0
  239. package/dist/types/sync/v2/types.d.ts.map +1 -0
  240. package/dist/{src → types}/sync/v4/utils/StableIdHelper.d.ts +1 -0
  241. package/dist/types/sync/v4/utils/StableIdHelper.d.ts.map +1 -0
  242. package/dist/{src → types}/v2.d.ts +1 -0
  243. package/dist/types/v2.d.ts.map +1 -0
  244. package/package.json +25 -28
  245. package/dist/documentation/runDocu-min.js.LICENSE.txt +0 -24
  246. package/dist/index-min.js.LICENSE.txt +0 -26
  247. package/dist/scripts/extractDocu.d.ts +0 -1
  248. package/dist/scripts/extractDocu.js +0 -485
  249. package/dist/scripts/extractDocu.js.map +0 -1
  250. package/dist/scripts/runDocu.d.ts +0 -1
  251. package/dist/scripts/runDocu.js +0 -570
  252. package/dist/scripts/runDocu.js.map +0 -1
  253. package/dist/scripts/spec.d.ts +0 -1
  254. package/dist/scripts/spec.js +0 -114
  255. package/dist/scripts/spec.js.map +0 -1
  256. package/dist/scripts/to-json-schema.d.ts +0 -10
  257. package/dist/scripts/to-json-schema.js +0 -112
  258. package/dist/scripts/to-json-schema.js.map +0 -1
  259. package/dist/specification/v2/index-min.js +0 -1
  260. package/dist/src/api.js +0 -123
  261. package/dist/src/api.js.map +0 -1
  262. package/dist/src/apiTypes.js +0 -3
  263. package/dist/src/apiTypes.js.map +0 -1
  264. package/dist/src/extensionLogger.js +0 -34
  265. package/dist/src/extensionLogger.js.map +0 -1
  266. package/dist/src/i18n/i18n.js +0 -25
  267. package/dist/src/i18n/i18n.js.map +0 -1
  268. package/dist/src/index.js +0 -12
  269. package/dist/src/index.js.map +0 -1
  270. package/dist/src/project.js +0 -151
  271. package/dist/src/project.js.map +0 -1
  272. package/dist/src/specification/common/Application.js +0 -3
  273. package/dist/src/specification/common/Application.js.map +0 -1
  274. package/dist/src/specification/common/i18n.json +0 -1
  275. package/dist/src/specification/common/index.js +0 -10
  276. package/dist/src/specification/common/index.js.map +0 -1
  277. package/dist/src/specification/common/page.js +0 -26
  278. package/dist/src/specification/common/page.js.map +0 -1
  279. package/dist/src/specification/common/types.js +0 -25
  280. package/dist/src/specification/common/types.js.map +0 -1
  281. package/dist/src/specification/common/webapp/manifest/Manifest.js +0 -17
  282. package/dist/src/specification/common/webapp/manifest/Manifest.js.map +0 -1
  283. package/dist/src/specification/common/webapp/manifest/index.js +0 -8
  284. package/dist/src/specification/common/webapp/manifest/index.js.map +0 -1
  285. package/dist/src/specification/common/webapp/manifest/sapOvp.js +0 -9
  286. package/dist/src/specification/common/webapp/manifest/sapOvp.js.map +0 -1
  287. package/dist/src/specification/common/webapp/manifest/sapUi5.js +0 -14
  288. package/dist/src/specification/common/webapp/manifest/sapUi5.js.map +0 -1
  289. package/dist/src/specification/schemaAccess.js +0 -62
  290. package/dist/src/specification/schemaAccess.js.map +0 -1
  291. package/dist/src/specification/v2/ApplicationV2.js +0 -3
  292. package/dist/src/specification/v2/ApplicationV2.js.map +0 -1
  293. package/dist/src/specification/v2/controls/Action.js +0 -15
  294. package/dist/src/specification/v2/controls/Action.js.map +0 -1
  295. package/dist/src/specification/v2/controls/AnalyticalListPageChart.js +0 -36
  296. package/dist/src/specification/v2/controls/AnalyticalListPageChart.js.map +0 -1
  297. package/dist/src/specification/v2/controls/AnalyticalListPageKPI.js +0 -3
  298. package/dist/src/specification/v2/controls/AnalyticalListPageKPI.js.map +0 -1
  299. package/dist/src/specification/v2/controls/Card.js +0 -53
  300. package/dist/src/specification/v2/controls/Card.js.map +0 -1
  301. package/dist/src/specification/v2/controls/Facets.js +0 -3
  302. package/dist/src/specification/v2/controls/Facets.js.map +0 -1
  303. package/dist/src/specification/v2/controls/Field.js +0 -3
  304. package/dist/src/specification/v2/controls/Field.js.map +0 -1
  305. package/dist/src/specification/v2/controls/FilterBar.js +0 -3
  306. package/dist/src/specification/v2/controls/FilterBar.js.map +0 -1
  307. package/dist/src/specification/v2/controls/Footer.js +0 -3
  308. package/dist/src/specification/v2/controls/Footer.js.map +0 -1
  309. package/dist/src/specification/v2/controls/ObjectPageChart.js +0 -3
  310. package/dist/src/specification/v2/controls/ObjectPageChart.js.map +0 -1
  311. package/dist/src/specification/v2/controls/ObjectPageForm.js +0 -3
  312. package/dist/src/specification/v2/controls/ObjectPageForm.js.map +0 -1
  313. package/dist/src/specification/v2/controls/ObjectPageHeader.js +0 -8
  314. package/dist/src/specification/v2/controls/ObjectPageHeader.js.map +0 -1
  315. package/dist/src/specification/v2/controls/ObjectPageLayout.js +0 -3
  316. package/dist/src/specification/v2/controls/ObjectPageLayout.js.map +0 -1
  317. package/dist/src/specification/v2/controls/ObjectPageSection.js +0 -13
  318. package/dist/src/specification/v2/controls/ObjectPageSection.js.map +0 -1
  319. package/dist/src/specification/v2/controls/ObjectPageTable.js +0 -7
  320. package/dist/src/specification/v2/controls/ObjectPageTable.js.map +0 -1
  321. package/dist/src/specification/v2/controls/ObjectPageToolBar.js +0 -3
  322. package/dist/src/specification/v2/controls/ObjectPageToolBar.js.map +0 -1
  323. package/dist/src/specification/v2/controls/Table.js +0 -51
  324. package/dist/src/specification/v2/controls/Table.js.map +0 -1
  325. package/dist/src/specification/v2/controls/ToolBar.js +0 -3
  326. package/dist/src/specification/v2/controls/ToolBar.js.map +0 -1
  327. package/dist/src/specification/v2/controls/index.js +0 -13
  328. package/dist/src/specification/v2/controls/index.js.map +0 -1
  329. package/dist/src/specification/v2/index.js +0 -9
  330. package/dist/src/specification/v2/index.js.map +0 -1
  331. package/dist/src/specification/v2/page.js +0 -3
  332. package/dist/src/specification/v2/page.js.map +0 -1
  333. package/dist/src/specification/v2/pages/AnalyticalListPageConfig.js +0 -3
  334. package/dist/src/specification/v2/pages/AnalyticalListPageConfig.js.map +0 -1
  335. package/dist/src/specification/v2/pages/ListReportConfig.js +0 -3
  336. package/dist/src/specification/v2/pages/ListReportConfig.js.map +0 -1
  337. package/dist/src/specification/v2/pages/ObjectPageConfig.js +0 -3
  338. package/dist/src/specification/v2/pages/ObjectPageConfig.js.map +0 -1
  339. package/dist/src/specification/v2/pages/OverviewPageConfig.js +0 -8
  340. package/dist/src/specification/v2/pages/OverviewPageConfig.js.map +0 -1
  341. package/dist/src/specification/v2/pages/index.js +0 -7
  342. package/dist/src/specification/v2/pages/index.js.map +0 -1
  343. package/dist/src/specification/v2/webapp/index.d.ts +0 -1
  344. package/dist/src/specification/v2/webapp/index.js +0 -7
  345. package/dist/src/specification/v2/webapp/index.js.map +0 -1
  346. package/dist/src/specification/v2/webapp/manifest/index.js +0 -8
  347. package/dist/src/specification/v2/webapp/manifest/index.js.map +0 -1
  348. package/dist/src/specification/v2/webapp/manifest/sapUi.js +0 -3
  349. package/dist/src/specification/v2/webapp/manifest/sapUi.js.map +0 -1
  350. package/dist/src/specification/v2/webapp/manifest/sapUi5.js +0 -9
  351. package/dist/src/specification/v2/webapp/manifest/sapUi5.js.map +0 -1
  352. package/dist/src/specification/v2/webapp/manifest/sapUiPageV2.js +0 -7
  353. package/dist/src/specification/v2/webapp/manifest/sapUiPageV2.js.map +0 -1
  354. package/dist/src/sync/common/appProvider.js +0 -57
  355. package/dist/src/sync/common/appProvider.js.map +0 -1
  356. package/dist/src/sync/common/decoration/control.js +0 -211
  357. package/dist/src/sync/common/decoration/control.js.map +0 -1
  358. package/dist/src/sync/common/decoration/decorators.js +0 -45
  359. package/dist/src/sync/common/decoration/decorators.js.map +0 -1
  360. package/dist/src/sync/common/decoration/factory.js +0 -48
  361. package/dist/src/sync/common/decoration/factory.js.map +0 -1
  362. package/dist/src/sync/common/decoration/flex.js +0 -8
  363. package/dist/src/sync/common/decoration/flex.js.map +0 -1
  364. package/dist/src/sync/common/decoration/index.js +0 -9
  365. package/dist/src/sync/common/decoration/index.js.map +0 -1
  366. package/dist/src/sync/common/flexUtils.js +0 -94
  367. package/dist/src/sync/common/flexUtils.js.map +0 -1
  368. package/dist/src/sync/common/generate/index.js +0 -8
  369. package/dist/src/sync/common/generate/index.js.map +0 -1
  370. package/dist/src/sync/common/generate/objectPage.js +0 -355
  371. package/dist/src/sync/common/generate/objectPage.js.map +0 -1
  372. package/dist/src/sync/common/generate/utils.js +0 -381
  373. package/dist/src/sync/common/generate/utils.js.map +0 -1
  374. package/dist/src/sync/common/i18n.json +0 -21
  375. package/dist/src/sync/common/import/utils.js +0 -92
  376. package/dist/src/sync/common/import/utils.js.map +0 -1
  377. package/dist/src/sync/common/importProject.js +0 -259
  378. package/dist/src/sync/common/importProject.js.map +0 -1
  379. package/dist/src/sync/common/index.js +0 -15
  380. package/dist/src/sync/common/index.js.map +0 -1
  381. package/dist/src/sync/common/types.js +0 -212
  382. package/dist/src/sync/common/types.js.map +0 -1
  383. package/dist/src/sync/common/utils.js +0 -1072
  384. package/dist/src/sync/common/utils.js.map +0 -1
  385. package/dist/src/sync/i18n.js +0 -15
  386. package/dist/src/sync/i18n.js.map +0 -1
  387. package/dist/src/sync/v2/application.js +0 -155
  388. package/dist/src/sync/v2/application.js.map +0 -1
  389. package/dist/src/sync/v2/export/controls/Action.js +0 -127
  390. package/dist/src/sync/v2/export/controls/Action.js.map +0 -1
  391. package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js +0 -61
  392. package/dist/src/sync/v2/export/controls/AnalyticalListPageChart.js.map +0 -1
  393. package/dist/src/sync/v2/export/controls/AnalyticalListPageKPI.js +0 -56
  394. package/dist/src/sync/v2/export/controls/AnalyticalListPageKPI.js.map +0 -1
  395. package/dist/src/sync/v2/export/controls/Card.js +0 -655
  396. package/dist/src/sync/v2/export/controls/Card.js.map +0 -1
  397. package/dist/src/sync/v2/export/controls/Field.js +0 -32
  398. package/dist/src/sync/v2/export/controls/Field.js.map +0 -1
  399. package/dist/src/sync/v2/export/controls/FilterBar.js +0 -107
  400. package/dist/src/sync/v2/export/controls/FilterBar.js.map +0 -1
  401. package/dist/src/sync/v2/export/controls/FormAction.js +0 -128
  402. package/dist/src/sync/v2/export/controls/FormAction.js.map +0 -1
  403. package/dist/src/sync/v2/export/controls/Fragment.js +0 -571
  404. package/dist/src/sync/v2/export/controls/Fragment.js.map +0 -1
  405. package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.js +0 -110
  406. package/dist/src/sync/v2/export/controls/ObjectPageCustomSection.js.map +0 -1
  407. package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.js +0 -62
  408. package/dist/src/sync/v2/export/controls/ObjectPageFooterAction.js.map +0 -1
  409. package/dist/src/sync/v2/export/controls/ObjectPageHeader.js +0 -60
  410. package/dist/src/sync/v2/export/controls/ObjectPageHeader.js.map +0 -1
  411. package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js +0 -62
  412. package/dist/src/sync/v2/export/controls/ObjectPageHeaderAction.js.map +0 -1
  413. package/dist/src/sync/v2/export/controls/ObjectPageLayout.js +0 -59
  414. package/dist/src/sync/v2/export/controls/ObjectPageLayout.js.map +0 -1
  415. package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js +0 -193
  416. package/dist/src/sync/v2/export/controls/ObjectPageSectionsV2.js.map +0 -1
  417. package/dist/src/sync/v2/export/controls/ObjectPageTable.js +0 -278
  418. package/dist/src/sync/v2/export/controls/ObjectPageTable.js.map +0 -1
  419. package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.js +0 -61
  420. package/dist/src/sync/v2/export/controls/ObjectPageToolBarAction.js.map +0 -1
  421. package/dist/src/sync/v2/export/controls/Table.js +0 -593
  422. package/dist/src/sync/v2/export/controls/Table.js.map +0 -1
  423. package/dist/src/sync/v2/export/controls/TableColumn.js +0 -166
  424. package/dist/src/sync/v2/export/controls/TableColumn.js.map +0 -1
  425. package/dist/src/sync/v2/export/controls/ToolBar.js +0 -6
  426. package/dist/src/sync/v2/export/controls/ToolBar.js.map +0 -1
  427. package/dist/src/sync/v2/export/controls/index.js +0 -25
  428. package/dist/src/sync/v2/export/controls/index.js.map +0 -1
  429. package/dist/src/sync/v2/export/export.js +0 -682
  430. package/dist/src/sync/v2/export/export.js.map +0 -1
  431. package/dist/src/sync/v2/export/exportPage.js +0 -305
  432. package/dist/src/sync/v2/export/exportPage.js.map +0 -1
  433. package/dist/src/sync/v2/export/factory.js +0 -56
  434. package/dist/src/sync/v2/export/factory.js.map +0 -1
  435. package/dist/src/sync/v2/export/manifest.js +0 -169
  436. package/dist/src/sync/v2/export/manifest.js.map +0 -1
  437. package/dist/src/sync/v2/export/pages/AnalyticalListPage.js +0 -44
  438. package/dist/src/sync/v2/export/pages/AnalyticalListPage.js.map +0 -1
  439. package/dist/src/sync/v2/export/pages/ListReport.js +0 -41
  440. package/dist/src/sync/v2/export/pages/ListReport.js.map +0 -1
  441. package/dist/src/sync/v2/export/pages/ObjectPage.js +0 -74
  442. package/dist/src/sync/v2/export/pages/ObjectPage.js.map +0 -1
  443. package/dist/src/sync/v2/export/pages/OverviewPage.js +0 -118
  444. package/dist/src/sync/v2/export/pages/OverviewPage.js.map +0 -1
  445. package/dist/src/sync/v2/export/pages/index.js +0 -10
  446. package/dist/src/sync/v2/export/pages/index.js.map +0 -1
  447. package/dist/src/sync/v2/export/view-controller-generator.js +0 -141
  448. package/dist/src/sync/v2/export/view-controller-generator.js.map +0 -1
  449. package/dist/src/sync/v2/generate/analyticalListReport.js +0 -84
  450. package/dist/src/sync/v2/generate/analyticalListReport.js.map +0 -1
  451. package/dist/src/sync/v2/generate/generate.js +0 -99
  452. package/dist/src/sync/v2/generate/generate.js.map +0 -1
  453. package/dist/src/sync/v2/generate/index.js +0 -14
  454. package/dist/src/sync/v2/generate/index.js.map +0 -1
  455. package/dist/src/sync/v2/generate/listReport.js +0 -116
  456. package/dist/src/sync/v2/generate/listReport.js.map +0 -1
  457. package/dist/src/sync/v2/generate/objectPage.js +0 -537
  458. package/dist/src/sync/v2/generate/objectPage.js.map +0 -1
  459. package/dist/src/sync/v2/generate/overviewPage.js +0 -70
  460. package/dist/src/sync/v2/generate/overviewPage.js.map +0 -1
  461. package/dist/src/sync/v2/generate/utils.js +0 -526
  462. package/dist/src/sync/v2/generate/utils.js.map +0 -1
  463. package/dist/src/sync/v2/import/app/appProvider.js +0 -145
  464. package/dist/src/sync/v2/import/app/appProvider.js.map +0 -1
  465. package/dist/src/sync/v2/import/app/ovpProvider.js +0 -33
  466. package/dist/src/sync/v2/import/app/ovpProvider.js.map +0 -1
  467. package/dist/src/sync/v2/import/common/index.js +0 -395
  468. package/dist/src/sync/v2/import/common/index.js.map +0 -1
  469. package/dist/src/sync/v2/import/controls/table.js +0 -32
  470. package/dist/src/sync/v2/import/controls/table.js.map +0 -1
  471. package/dist/src/sync/v2/import/getPageType.d.ts +0 -0
  472. package/dist/src/sync/v2/import/getPageType.js +0 -1
  473. package/dist/src/sync/v2/import/getPageType.js.map +0 -1
  474. package/dist/src/sync/v2/import/index.js +0 -11
  475. package/dist/src/sync/v2/import/index.js.map +0 -1
  476. package/dist/src/sync/v2/import/pages/analyticalListPage.js +0 -119
  477. package/dist/src/sync/v2/import/pages/analyticalListPage.js.map +0 -1
  478. package/dist/src/sync/v2/import/pages/listReport.js +0 -143
  479. package/dist/src/sync/v2/import/pages/listReport.js.map +0 -1
  480. package/dist/src/sync/v2/import/pages/objectPage.js +0 -745
  481. package/dist/src/sync/v2/import/pages/objectPage.js.map +0 -1
  482. package/dist/src/sync/v2/import/pages/overviewPage.js +0 -107
  483. package/dist/src/sync/v2/import/pages/overviewPage.js.map +0 -1
  484. package/dist/src/sync/v2/import/utils.js +0 -149
  485. package/dist/src/sync/v2/import/utils.js.map +0 -1
  486. package/dist/src/sync/v2/types.js +0 -36
  487. package/dist/src/sync/v2/types.js.map +0 -1
  488. package/dist/src/sync/v4/utils/StableIdHelper.js +0 -156
  489. package/dist/src/sync/v4/utils/StableIdHelper.js.map +0 -1
  490. package/dist/src/v2.js +0 -8
  491. package/dist/src/v2.js.map +0 -1
  492. package/dist/test/test-data/flexChange/v2/stta.prod.man/index.d.ts +0 -7
  493. package/dist/test/test-projects/index.d.ts +0 -2
  494. package/dist/test/test-utils/utils.d.ts +0 -33
  495. package/dist/test/unit/customSections/exportV2.test.d.ts +0 -1
  496. package/dist/test/unit/customSections/generateFacetsSchemaV2.test.d.ts +0 -1
  497. package/dist/test/unit/customSections/importV2.test.d.ts +0 -1
  498. package/dist/test/unit/export/exportALPV2.test.d.ts +0 -1
  499. package/dist/test/unit/export/exportAppV2.test.d.ts +0 -1
  500. package/dist/test/unit/export/exportLRPV2.test.d.ts +0 -1
  501. package/dist/test/unit/export/exportLRPV2CustomColumns.test.d.ts +0 -1
  502. package/dist/test/unit/export/exportOVPV2.test.d.ts +0 -1
  503. package/dist/test/unit/export/exportObjectPageV2.test.d.ts +0 -1
  504. package/dist/test/unit/export/flexUtils.test.d.ts +0 -1
  505. package/dist/test/unit/export/manifest.test.d.ts +0 -1
  506. package/dist/test/unit/fcl/exportV2.test.d.ts +0 -1
  507. package/dist/test/unit/fcl/importV2.test.d.ts +0 -1
  508. package/dist/test/unit/generateAppSchema/generateAppSchemaALPV2.test.d.ts +0 -1
  509. package/dist/test/unit/generateAppSchema/generateAppSchemaLRV2.test.d.ts +0 -1
  510. package/dist/test/unit/generateAppSchema/generateAppSchemaOPV2.test.d.ts +0 -1
  511. package/dist/test/unit/generateAppSchema/generateAppSchemaOVPV2.test.d.ts +0 -1
  512. package/dist/test/unit/generateGenericSchema/generateGenericSchemaAppV2.test.d.ts +0 -1
  513. package/dist/test/unit/generateGenericSchema/generateGenericSchemaLRV2.test.d.ts +0 -1
  514. package/dist/test/unit/generateGenericSchema/generateGenericSchemaOPV2.test.d.ts +0 -1
  515. package/dist/test/unit/generateGenericSchema/generateI18nV2.test.d.ts +0 -1
  516. package/dist/test/unit/generateGenericSchema/genericSchemas.test.d.ts +0 -1
  517. package/dist/test/unit/import/importALPV2.test.d.ts +0 -1
  518. package/dist/test/unit/import/importAppV2.test.d.ts +0 -1
  519. package/dist/test/unit/import/importLRPV2.test.d.ts +0 -1
  520. package/dist/test/unit/import/importOPV2.test.d.ts +0 -1
  521. package/dist/test/unit/import/importOVPV2.test.d.ts +0 -1
  522. package/dist/test/unit/index.test.d.ts +0 -1
  523. package/dist/test/unit/projects.test.d.ts +0 -1
  524. package/dist/test/unit/schemaAccess.test.d.ts +0 -1
  525. package/dist/test/unit/utils.test.d.ts +0 -1
  526. package/dist/test/unit/view-controller-generator.test.d.ts +0 -1
package/package.json CHANGED
@@ -1,28 +1,29 @@
1
1
  {
2
2
  "name": "@sap/ux-specification",
3
- "version": "1.71.63",
3
+ "version": "1.71.66",
4
4
  "displayName": "SAP Fiori tools - Specification",
5
5
  "description": "SAP Fiori tools - Specification",
6
6
  "files": [
7
- "dist"
7
+ "dist",
8
+ "types"
8
9
  ],
9
10
  "main": "dist/index-min.js",
10
- "types": "dist/src/index.d.ts",
11
- "specificationVersions": {
12
- "v2": "dist/specification/v2/index-min.js"
13
- },
11
+ "typings": "dist/types",
14
12
  "engines": {
15
13
  "node": ">=14.16.0",
16
14
  "yarn": ">=1.22.19"
17
15
  },
18
16
  "scripts": {
19
- "clean": "rimraf ./dist ./schemas ../schemas",
20
- "build": "yarn run clean && tsc --project ./tsconfig.build.json && yarn run create-json-schemas && yarn copy-json-schemas && webpack --color --config webpack.prod.js && yarn copy-templates && yarn run generate-html-prod",
21
- "build:dev": "yarn run clean && tsc --project ./tsconfig.build.json && yarn run create-json-schemas && yarn copy-json-schemas && webpack --color --config webpack.prod.js && yarn copy-templates",
22
- "watch": "yarn run clean && tsc --project ./tsconfig.build.json && yarn run create-json-schemas && yarn copy-json-schemas && webpack --color --config webpack.dev.js && yarn copy-templates",
23
- "watch-docu": "yarn run generate-html-dev",
24
- "create-json-schemas": "node dist/scripts/to-json-schema.js",
25
- "copy-json-schemas": "cpy schemas/** dist --parents",
17
+ "clean:before": "rimraf ./dist ./types ./schemas",
18
+ "compile": "tsc --project ./tsconfig.build.json",
19
+ "compile:watch": "tsc --build ./tsconfig.build.json --pretty --watch",
20
+ "bundle": "node esbuild.js",
21
+ "bundle:watch": "node esbuild --watch --minify=false",
22
+ "build": "npm-run-all -l -s clean:before -p compile create-json-schemas copy-templates -p copy-json-schemas htmlV2 -s bundle",
23
+ "build:dev": "npm-run-all -l -s clean:before -p compile create-json-schemas copy-templates -s copy-json-schemas bundle",
24
+ "watch": "npm-run-all -l -s clean:before -p compile create-json-schemas copy-templates -p copy-json-schemas -s bundle:watch",
25
+ "create-json-schemas": "ts-node ./scripts/to-json-schema.ts ",
26
+ "copy-json-schemas": "cpy ./schemas/** dist --parents",
26
27
  "copy-templates": "cpy src/sync/v2/export/templates/** dist/templates",
27
28
  "test": "jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info",
28
29
  "test:ci": "jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info",
@@ -30,22 +31,22 @@
30
31
  "build:snap": "yarn build:dev && yarn update-snapshots",
31
32
  "lint": "eslint . --ext .ts",
32
33
  "lint:summary": "eslint . --ext .ts -f summary",
33
- "lint:fix": "eslint . --ext .ts --fix",
34
- "lint:report": "eslint . --ext .ts -f multiple",
35
- "lint:report:jslint": "eslint . --ext .ts -o reports/lint/eslint.jslint.xml -f jslint-xml",
36
- "docuV2": "node dist/scripts/extractDocu.js --version=v2 format=excel",
37
- "iXiaSoftV2": "node dist/scripts/extractDocu.js --version=v2 --format=iXiaSoft",
38
- "htmlV2": "node dist/scripts/extractDocu.js --version=v2 --format=html",
39
- "generate-html-prod": "yarn run htmlV2 && webpack --color --config webpack.docu.prod.js ",
40
- "generate-html-dev": "yarn run htmlV2 && webpack --color --config webpack.docu.dev.js"
41
-
34
+ "lint:fix": "eslint . --report-unused-disable-directives --ext .ts --fix",
35
+ "lint:report": "eslint . --report-unused-disable-directives --ext .ts -f multiple",
36
+ "lint:report:jslint": "eslint . --report-unused-disable-directives --ext .ts -o reports/lint/eslint.jslint.xml -f jslint-xml",
37
+ "docuV2": "ts-node ./scripts/extractDocu.ts --version=v2 format=excel",
38
+ "iXiaSoftV2": "ts-node ./scripts/extractDocu.ts --version=v2 --format=iXiaSoft",
39
+ "htmlV2": "ts-node ./scripts/extractDocu.ts --version=v2 --format=html"
42
40
  },
43
41
  "publisher": "SAPSE",
44
42
  "license": "SEE LICENSE IN LICENSE",
43
+ "dependencies": {
44
+ "@sap-ux/vocabularies-types": "0.5.7",
45
+ "typescript-json-schema": "0.53.0"
46
+ },
45
47
  "devDependencies": {
46
48
  "@sap-ux/annotation-converter": "0.5.7",
47
49
  "@sap-ux/edmx-parser": "0.5.4",
48
- "@sap-ux/vocabularies-types": "0.5.4",
49
50
  "@types/d3": "7.1.0",
50
51
  "@types/jest": "26.0.23",
51
52
  "@types/jquery": "3.5.6",
@@ -57,6 +58,7 @@
57
58
  "cpy-cli": "3.1.1",
58
59
  "d3": "7.1.1",
59
60
  "deepmerge": "4.2.2",
61
+ "esbuild": "0.14.25",
60
62
  "ejs": "3.1.7",
61
63
  "eslint": "7.32.0",
62
64
  "eslint-formatter-multiple": "1.0.0",
@@ -74,15 +76,10 @@
74
76
  "reflect-metadata": "0.1.13",
75
77
  "rimraf": "3.0.2",
76
78
  "sax": "1.2.4",
77
- "source-map-loader": "1.0.0",
78
- "terser-webpack-plugin": "4.2.3",
79
79
  "ts-jest": "26.5.6",
80
80
  "ts-json-schema-generator": "0.96.0",
81
- "ts-loader": "9.1.2",
82
81
  "ts-node": "9.1.1",
83
82
  "typescript": "3.8.3",
84
- "typescript-json-schema": "0.48.0",
85
- "webpack-cli": "4.7.2",
86
83
  "xml-js": "1.6.11"
87
84
  },
88
85
  "husky": {
@@ -1,24 +0,0 @@
1
- /*!
2
- * Sizzle CSS Selector Engine v2.3.6
3
- * https://sizzlejs.com/
4
- *
5
- * Copyright JS Foundation and other contributors
6
- * Released under the MIT license
7
- * https://js.foundation/
8
- *
9
- * Date: 2021-02-16
10
- */
11
-
12
- /*!
13
- * jQuery JavaScript Library v3.6.0
14
- * https://jquery.com/
15
- *
16
- * Includes Sizzle.js
17
- * https://sizzlejs.com/
18
- *
19
- * Copyright OpenJS Foundation and other contributors
20
- * Released under the MIT license
21
- * https://jquery.org/license
22
- *
23
- * Date: 2021-03-02T17:08Z
24
- */
@@ -1,26 +0,0 @@
1
- /*! *****************************************************************************
2
- Copyright (C) Microsoft. All rights reserved.
3
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4
- this file except in compliance with the License. You may obtain a copy of the
5
- License at http://www.apache.org/licenses/LICENSE-2.0
6
-
7
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10
- MERCHANTABLITY OR NON-INFRINGEMENT.
11
-
12
- See the Apache Version 2.0 License for specific language governing permissions
13
- and limitations under the License.
14
- ***************************************************************************** */
15
-
16
- /*! http://mths.be/fromcodepoint v0.1.0 by @mathias */
17
-
18
- /**
19
- * @file Embedded JavaScript templating engine. {@link http://ejs.co}
20
- * @author Matthew Eernisse <mde@fleegix.org>
21
- * @author Tiancheng "Timothy" Gu <timothygu99@gmail.com>
22
- * @project EJS
23
- * @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0}
24
- */
25
-
26
- /** @license URI.js v4.2.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
@@ -1 +0,0 @@
1
- export {};
@@ -1,485 +0,0 @@
1
- "use strict";
2
- var __importStar = (this && this.__importStar) || function (mod) {
3
- if (mod && mod.__esModule) return mod;
4
- var result = {};
5
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
6
- result["default"] = mod;
7
- return result;
8
- };
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- /**
11
- * This script extracts all existing documentation (i.e. descriptions) from the generic schemas of a certain OData version (V2 or V4).
12
- * All descriptions are collected in an Excel sheet that you afterwards can find under dist/documentation: it is named Specificationv2.xslx or Specificationv4.xslx, depending on the chosen version.
13
- * You can find one worksheet for each generic schema file.
14
- *
15
- * The script expects that you supply an argument --version with either v2 or v4.
16
- * You can also start it from one of the debugger scripts named in launch.json: "Extract V2 documentation" or "Extract V4 documentation".
17
- */
18
- const page_1 = require("../src/specification/common/page");
19
- const path_1 = require("path");
20
- const fs = __importStar(require("fs"));
21
- const excel = __importStar(require("excel4node"));
22
- /**
23
- * Handles reference ($ref) within the schema, finds the corresponding definition
24
- * @param schema - Object representing the whole generic schema
25
- * @param reference - Content for the $ref property
26
- * @param output - Array of descriptions with assigned hierarchy elements, all separated by ';' (csv like)
27
- * @param definition - The current hierarchy element (list of path parts separated by ';')
28
- * @param description - The description of the current hierarchy element
29
- * @param additionalMetadata - Additional information about the current hierarchy element, separated by ';'
30
- */
31
- function dereference(schema, reference, output, definition, description, additionalMetadata) {
32
- const currentDefinition = reference.split('#/definitions/')[1];
33
- try {
34
- parseSchema(schema, schema['definitions'][currentDefinition], output, definition, description, additionalMetadata);
35
- }
36
- catch (error) {
37
- console.log(error);
38
- }
39
- }
40
- /**
41
- * Handles one property of a sub-schema
42
- * @param schema - Object representing the whole generic schema
43
- * @param subSchema - Object representing the current sub-structure of the schema
44
- * @param property - Name of the property within the subSchema
45
- * @param output - Array of descriptions with assigned hierarchy elements, all separated by ';' (csv like)
46
- * @param definition - The current hierarchy element (list of path parts separated by ';')
47
- */
48
- function processElement(schema, subSchema, property, output, definition) {
49
- function addMetadata() {
50
- if (additionalMetadata) {
51
- output.push(definition + ';' + `TYPE_${element['type']}` + additionalMetadata + ';' + element['description']);
52
- }
53
- else {
54
- output.push(definition + ';' + `TYPE_${element['type']}` + ';' + element['description']);
55
- }
56
- }
57
- if (['$schema', 'id', 'pages', 'home', 'custom', '1', '2', '3', '4', '5', '6', '7', '8', '9'].includes(property)) {
58
- return;
59
- }
60
- const element = subSchema[property];
61
- const property2write = property === '^[0-9]+$' ? 'Instance (key = number)' : property;
62
- definition = definition ? definition + ';' + property2write : property2write;
63
- if (property === 'columns') {
64
- definition = definition + ';columnId';
65
- }
66
- if (property === 'sections') {
67
- definition = definition + ';sectionId';
68
- }
69
- if (property === 'cards') {
70
- definition = definition + ';cardKey';
71
- }
72
- let additionalMetadata;
73
- if (element['artifactType']) {
74
- additionalMetadata = `;ARTIFACT_${element['artifactType']}`;
75
- }
76
- if (element['controlType']) {
77
- additionalMetadata += `;CONTROL_${element['controlType']}`;
78
- }
79
- if (element['description']) {
80
- if (element['$ref']) {
81
- dereference(schema, element['$ref'], output, definition, element['description'], additionalMetadata);
82
- return;
83
- }
84
- else if (element['anyOf']) {
85
- handleAnyOf(schema, element['anyOf'], output, definition, element['description'], element, additionalMetadata);
86
- return;
87
- }
88
- if (element['type'] && element['items']) {
89
- const reference = element['items']['$ref'] || (element['items'][0] && element['items'][0]['$ref']);
90
- if (reference) {
91
- dereference(schema, reference, output, definition, element['description'], additionalMetadata);
92
- }
93
- else {
94
- addMetadata();
95
- }
96
- return;
97
- }
98
- addMetadata();
99
- }
100
- // Temporary as Description is not maintained for some properties - description should be added
101
- if (!element['description'] && element['type']) {
102
- if (additionalMetadata) {
103
- output.push(definition + ';' + `TYPE_${element['type']}` + additionalMetadata);
104
- }
105
- else {
106
- output.push(definition + ';' + `TYPE_${element['type']}`);
107
- }
108
- }
109
- if (element['$ref']) {
110
- dereference(schema, element['$ref'], output, definition);
111
- }
112
- else {
113
- parseSchema(schema, element, output, definition);
114
- }
115
- }
116
- /**
117
- * Special handling of anyOf elements of a JSON schema
118
- * @param schema - Object representing the whole generic schema
119
- * @param anyOfSchema - Object representing the current sub-structure of the schema
120
- * @param output - Array of descriptions with assigned hierarchy elements, all separated by ';' (csv like)
121
- * @param definition - The current hierarchy element (list of path parts separated by ';')
122
- * @param description - The description of the current hierarchy element
123
- * @param element - Object representing the sub-structure of the current hierarchy element
124
- * @param additionalMetadata - Additional information about the current hierarchy element, separated by ';' (e.g. artifactType)
125
- */
126
- function handleAnyOf(schema, anyOfSchema, output, definition, description, element, additionalMetadata) {
127
- for (let index = 0; index < anyOfSchema.length; index++) {
128
- const anyOfSchemaElement = anyOfSchema[index];
129
- if ((element === null || element === void 0 ? void 0 : element['pattern']) && anyOfSchemaElement['type'] === 'string') {
130
- return;
131
- }
132
- if (Object.keys(anyOfSchemaElement)[0] === '$ref') {
133
- dereference(schema, anyOfSchemaElement['$ref'], output, definition, description, additionalMetadata);
134
- }
135
- else {
136
- parseSchema(schema, anyOfSchemaElement, output, definition, description, additionalMetadata);
137
- }
138
- }
139
- }
140
- /**
141
- * Parses a sub-structure of the schema
142
- * @param schema - Object representing the whole generic schema
143
- * @param subSchema - Object representing the current sub-structure of the schema
144
- * @param output - Array of descriptions with assigned hierarchy elements, all separated by ';' (csv like)
145
- * @param definition - The current hierarchy element (list of path parts separated by ';')
146
- * @param description - The description of the current hierarchy element
147
- * @param additionalMetadata - Additional information about the current hierarchy element, separated by ';' (e.g. artifactType)
148
- */
149
- function parseSchema(schema, subSchema, output, definition, description, additionalMetadata) {
150
- if (Object.keys(subSchema) && Object.keys(subSchema)[0] === 'anyOf') {
151
- handleAnyOf(schema, subSchema['anyOf'], output, definition);
152
- return;
153
- }
154
- for (const property in subSchema['properties']) {
155
- if (property === '$ref') {
156
- dereference(schema, subSchema['properties']['$ref'], output, definition);
157
- }
158
- else if (property === 'anyOf') {
159
- handleAnyOf(schema, subSchema['properties']['anyOf'], output, definition);
160
- }
161
- else {
162
- processElement(schema, subSchema['properties'], property, output, definition);
163
- }
164
- }
165
- for (const property in subSchema['patternProperties']) {
166
- if (property === '$ref') {
167
- dereference(schema, subSchema['patternProperties']['$ref'], output, definition);
168
- }
169
- else if (property === 'anyOf') {
170
- handleAnyOf(schema, subSchema['patternProperties']['anyOf'], output, definition);
171
- }
172
- else {
173
- processElement(schema, subSchema['patternProperties'], property, output, definition);
174
- }
175
- }
176
- for (const property in subSchema['additionalProperties']) {
177
- if (property === '$ref') {
178
- dereference(schema, subSchema['additionalProperties']['$ref'], output, definition);
179
- }
180
- else if (property === 'anyOf') {
181
- handleAnyOf(schema, subSchema['additionalProperties']['anyOf'], output, definition);
182
- }
183
- else {
184
- processElement(schema, subSchema['additionalProperties'], property, output, definition);
185
- }
186
- }
187
- if (subSchema['enum'] && description) {
188
- if (additionalMetadata) {
189
- output.push(definition + ';' + `TYPE_${[subSchema['enum'].join('|')]}` + additionalMetadata + ';' + description);
190
- }
191
- else {
192
- output.push(definition + ';' + `TYPE_${[subSchema['enum'].join('|')]}` + ';' + description);
193
- }
194
- }
195
- else if (subSchema['type'] && description) {
196
- if (additionalMetadata) {
197
- output.push(definition + ';' + `TYPE_${subSchema['type']}` + additionalMetadata + ';' + description);
198
- }
199
- else {
200
- output.push(definition + ';' + `TYPE_${subSchema['type']}` + ';' + description);
201
- }
202
- }
203
- }
204
- /**
205
- * Fills an excel4node workbook based on csv like information
206
- * @param workbook - Excel workbook (excel4node format)
207
- * @param output - Array of descriptions with assigned hierarchy elements, all separated by ';' (csv like)
208
- * @param file - file name of the original schema
209
- */
210
- function writeToExcel(workbook, output, file) {
211
- //filter output to remove duplicated lines due to different table types (anyOf)
212
- output = output.filter((e, i, a) => a.indexOf(e) === i);
213
- const sheetName = file.split('.')[0];
214
- const worksheet = workbook.addWorksheet(sheetName);
215
- worksheet.headerFooter = { evenHeader: output[0] };
216
- // Create a reusable style
217
- const style = workbook.createStyle({
218
- font: {
219
- //color: '#800000',
220
- size: 12
221
- },
222
- numberFormat: '$#,##0.00; ($#,##0.00); -'
223
- });
224
- for (let rowIndex = 1; rowIndex < output.length; rowIndex++) {
225
- const element = output[rowIndex];
226
- const cellArray = element.split(';');
227
- for (let cellIndex = 0; cellIndex < cellArray.length; cellIndex++) {
228
- const cell = cellArray[cellIndex];
229
- worksheet
230
- .cell(rowIndex, cellIndex + 1)
231
- .string(cell)
232
- .style(style);
233
- }
234
- }
235
- }
236
- function generateIxiaSoftFormat(output, file, version) {
237
- //filter output to remove duplicated lines due to different table types (anyOf)
238
- output = output.filter((e, i, a) => a.indexOf(e) === i);
239
- let iXiaFormat = `<simpletable frame="all" relcolwidth="1* 1*" id="simpletable_uqj_klr_jlb">
240
- <sthead>
241
- <stentry> Settings </stentry>
242
- <stentry> Description </stentry>
243
- </sthead>
244
- `;
245
- const fileName = file.split('.')[0];
246
- for (let rowIndex = 1; rowIndex < output.length; rowIndex++) {
247
- const element = output[rowIndex];
248
- const cellArray = element.split(';');
249
- let setting = '{';
250
- iXiaFormat = iXiaFormat + `\t<strow>\n`;
251
- for (let cellIndex = 0; cellIndex < cellArray.length - 1; cellIndex++) {
252
- let cell = cellArray[cellIndex];
253
- if (['0', '1'].includes(cell)) {
254
- cell = 'variantKey' + cell;
255
- }
256
- if (cellArray[cellIndex + 1].includes('TYPE')) {
257
- setting = setting + `"${cell}": ${cellArray[cellIndex + 1].split('_')[1]}`;
258
- let noOfOpeningBraces = setting.match(/{/g).length;
259
- while (noOfOpeningBraces > 0) {
260
- setting = setting + '}';
261
- noOfOpeningBraces--;
262
- }
263
- iXiaFormat = iXiaFormat + `\t\t<stentry> ${setting} </stentry>\n`;
264
- }
265
- else {
266
- setting = setting + `"${cell}": {`;
267
- }
268
- }
269
- // add description to the table
270
- iXiaFormat = iXiaFormat + `\t\t<stentry> ${cellArray[cellArray.length - 1]} </stentry>\n\t</strow>\n`;
271
- }
272
- iXiaFormat = iXiaFormat + `</simpletable>`;
273
- const outDir = path_1.join('dist', 'documentation');
274
- if (!fs.existsSync(outDir)) {
275
- fs.mkdirSync(outDir);
276
- }
277
- const outFile = path_1.join(outDir, 'Specification' + version + fileName + '.txt');
278
- fs.writeFile(outFile, iXiaFormat, (err) => {
279
- if (err)
280
- throw err;
281
- console.log(`${outFile} was succesfully saved!`);
282
- });
283
- }
284
- function createNestedJSON(output, floorPlan, odataVersion, specVersion) {
285
- let root;
286
- const tree = {
287
- name: floorPlan,
288
- description: 'SAP Fiori elements ' + odataVersion + '<br>Specification Version: ' + specVersion,
289
- type: 'schema',
290
- children: []
291
- };
292
- function find(string) {
293
- if (string.includes('ARTIFACT_')) {
294
- return 'artifact';
295
- }
296
- else if (string.includes('CONTROL_')) {
297
- return 'control';
298
- }
299
- else {
300
- return 'description';
301
- }
302
- }
303
- function addKeyValue(element, index, elementsArray) {
304
- if (element.includes('TYPE_')) {
305
- root.type = element.split('_')[1];
306
- for (let i = index + 1; i < elementsArray.length; i++) {
307
- const match = find(elementsArray[i]);
308
- switch (match) {
309
- case 'artifact':
310
- root.artifact = elementsArray[i].split('_')[1];
311
- break;
312
- case 'control':
313
- root.control = elementsArray[i].split('_')[1];
314
- break;
315
- default:
316
- root.description = elementsArray[i];
317
- }
318
- }
319
- return false;
320
- }
321
- else {
322
- for (let i = 0; i < root.children.length; i++) {
323
- if (element === root.children[i].name) {
324
- root = root.children[i];
325
- return true;
326
- }
327
- }
328
- root.children.push({
329
- name: element,
330
- children: []
331
- });
332
- root = root.children[root.children.length - 1];
333
- return true;
334
- }
335
- }
336
- output.forEach((line) => {
337
- const elements = line.split(';');
338
- root = tree;
339
- elements.every(addKeyValue);
340
- });
341
- return tree;
342
- }
343
- function createSVGIcon(floorPlan) {
344
- let svgFormat = `<svg id="floorPlan-icon" width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
345
- <g><path fill-rule="evenodd" clip-rule="evenodd" fill="#C5C5C5"`;
346
- const svgPathALP = `d="M9 13V14H6V13H9ZM5 13V14H2V13H5ZM13 13V14H10V13H13ZM9 11V12H6V11H9ZM5 11V12H2V11H5ZM13 11V12H10V11H13ZM5 9V10H2V9H5ZM9 9V10H6V9H9ZM13 9V10H10V9H13ZM3.986 1.998V6.024H1.965V1.998H3.986ZM6.99 4.01V6.01H4.99V4.01H6.99ZM10.008 3.019V6.01H8.008V3.019H10.008ZM13.005 1.998V6.011H11.005V1.998H13.005ZM1 14.988H14.988V7.995H1V14.988ZM1.001 6.994H14.989V1H1.001V6.994ZM1.00169 0C0.449309 0 0 0.448336 0 1.00075V14.9992C0 15.5517 0.449309 16 1.00169 16H14.9993C15.5517 16 16 15.5517 16 14.9992V1.00075C16 0.448336 15.5517 0 14.9993 0H1.00169Z"`;
347
- const svgPathLR = `d="M5 3.0028H2V2.0048H5V3.0028ZM6.0044 3.0028H9.0044V2.0048H6.0044V3.0028ZM10.0014 3.0028H13.0014V2.0048H10.0014V3.0028ZM1 14.993L0.997 4.995H14.988V14.988L1 14.993ZM14.988 0.995V3.994H0.996L0.995 1L14.988 0.995ZM14 7H10V6H14V7ZM11 9.0028H14V8.0048H11V9.0028ZM14 11H10V10H14V11ZM14 13.0028H11V12.0048H14V13.0028ZM6 12.999H9V12.001H6V12.999ZM9 10.999H6V10.001H9V10.999ZM6 8.999H9V8.001H6V8.999ZM9 6.999H6V6.001H9V6.999ZM2 12.999H5V12.001H2V12.999ZM5 11.0028H2V10.0048H5V11.0028ZM2 9.0028H5V8.0048H2V9.0028ZM5 6.999H2V6.001H5V6.999ZM14.993 0H0.995C0.446 0 0 0.446 0 0.995V14.993C0 15.542 0.446 15.988 0.995 15.988H14.993C15.542 15.988 15.988 15.542 15.988 14.993V0.995C15.988 0.446 15.542 0 14.993 0Z"`;
348
- const svgPathOP = `d="M9 13V14H6V13H9ZM9 11V12H6V11H9ZM13 9V10H10V9H13ZM9 9V10H6V9H9ZM5 9V10H2V9H5ZM14.989 7.996L14.988 14.989H1L1.001 7.996H14.989ZM3.998 2C5.1 2 5.996 2.896 5.996 3.998C5.996 5.1 5.1 5.996 3.998 5.996C2.896 5.996 2 5.1 2 3.998C2 2.896 2.896 2 3.998 2ZM14 4.0046V5.0046H8V4.0046H14ZM3.998 3C3.447 3 3 3.447 3 3.998C3 4.549 3.447 4.996 3.998 4.996C4.549 4.996 4.996 4.549 4.996 3.998C4.996 3.447 4.549 3 3.998 3ZM12.002 2V3H8V2H12.002ZM14.989 1.001V6.995H1.001V1L14.989 1.001ZM14.989 0H1.001C0.449 0 0 0.449 0 1.001V14.989C0 15.541 0.449 15.989 1.001 15.989H14.989C15.541 15.989 15.989 15.541 15.989 14.989V1.001C15.989 0.488429 15.6027 0.0646684 15.1056 0.00674636L14.989 0Z"`;
349
- const svgPathOVP = `d="M14.988 15.488V14.988H14.989L14.988 15.488ZM14.988 14.988H1V1H14.988V14.988ZM14.988 0H1C0.448 0 0 0.448 0 1V14.988C0 15.54 0.448 15.988 1 15.988H14.988C15.54 15.988 15.988 15.54 15.988 14.988V1C15.988 0.448 15.54 0 14.988 0ZM2.9917 7.037H7.0147V3.014H2.9917V7.037ZM7.5147 2.013H2.4907C2.2147 2.013 1.9907 2.237 1.9907 2.513V7.537C1.9907 7.813 2.2147 8.037 2.4907 8.037H7.5147C7.7907 8.037 8.0147 7.813 8.0147 7.537V2.513C8.0147 2.237 7.7907 2.013 7.5147 2.013ZM7.0147 13.014H2.9917V10.034H7.0147V13.014ZM2.4907 9.034H7.5147C7.7907 9.034 8.0147 9.258 8.0147 9.534V13.514C8.0147 13.791 7.7907 14.014 7.5147 14.014H2.4907C2.2147 14.014 1.9907 13.791 1.9907 13.514V9.534C1.9907 9.258 2.2147 9.034 2.4907 9.034ZM9.9847 9.034H13.0217V3.013H9.9847V9.034ZM13.5217 2.013H9.4847C9.2087 2.013 8.9847 2.237 8.9847 2.513V9.534C8.9847 9.81 9.2087 10.034 9.4847 10.034H13.5217C13.7987 10.034 14.0217 9.81 14.0217 9.534V2.513C14.0217 2.237 13.7987 2.013 13.5217 2.013ZM13.0217 13.006H9.9847V12.021H13.0217V13.006ZM9.4847 11.02H13.5217C13.7987 11.02 14.0217 11.244 14.0217 11.52V13.506C14.0217 13.782 13.7987 14.006 13.5217 14.006H9.4847C9.2087 14.006 8.9847 13.782 8.9847 13.506V11.52C8.9847 11.244 9.2087 11.02 9.4847 11.02Z"`;
350
- const name = floorPlan.toLowerCase();
351
- if (name.includes('analytical'))
352
- svgFormat += svgPathALP;
353
- else if (name.includes('listreport'))
354
- svgFormat += svgPathLR;
355
- else if (name.includes('objectpage'))
356
- svgFormat += svgPathOP;
357
- else if (name.includes('overviewpage'))
358
- svgFormat += svgPathOVP;
359
- else
360
- return undefined;
361
- svgFormat += `/></g></svg>`;
362
- return svgFormat;
363
- }
364
- function generateHTMLFormat(output, file, odataVersion) {
365
- //filter output to remove duplicated lines due to different table types (anyOf)
366
- output = output.filter((e, i, a) => a.indexOf(e) === i);
367
- const nameFloorPlan = file.split('.')[0].replace(/Config/g, '');
368
- const packageJson = JSON.parse(fs.readFileSync(path_1.join(__dirname, '/../../package.json'), 'utf8'));
369
- const specVersion = packageJson.version;
370
- output.shift();
371
- const svgIcon = createSVGIcon(nameFloorPlan);
372
- const treeData = createNestedJSON(output, nameFloorPlan, odataVersion, specVersion);
373
- const templateFilePath = path_1.join(__dirname, '/../../scripts/templateDocu.html');
374
- let template;
375
- try {
376
- template = fs.readFileSync(templateFilePath, 'utf8');
377
- }
378
- catch (e) {
379
- console.log(`Error: ${e.message}`);
380
- }
381
- template = template.replace(`'insertDataHere'`, JSON.stringify(treeData));
382
- if (svgIcon !== undefined) {
383
- template = template.replace(`floorPlanIcon`, 'floorPlanIcon = `' + svgIcon + '`');
384
- }
385
- let outDir;
386
- if (odataVersion === 'v2') {
387
- outDir = path_1.join('dist', 'documentation', 'v2');
388
- }
389
- if (!fs.existsSync(outDir)) {
390
- fs.mkdirSync(outDir, { recursive: true });
391
- }
392
- const outFile = path_1.join(outDir, odataVersion + '-' + nameFloorPlan + '.html');
393
- fs.writeFile(outFile, template, (err) => {
394
- if (err)
395
- throw err;
396
- console.log(`${outFile} was successfully saved!`);
397
- });
398
- }
399
- function copyFileToFolder() {
400
- const file = 'styleDocu.css';
401
- const src = path_1.join(__dirname + '/../../scripts/' + file);
402
- const dest = path_1.join('dist', 'documentation', file);
403
- if (!fs.existsSync(dest)) {
404
- fs.copyFile(src, dest, (err) => {
405
- if (err)
406
- throw err;
407
- if (!err) {
408
- console.log(file + ' has been copied!');
409
- }
410
- });
411
- }
412
- }
413
- /**
414
- * Writes an Excel workbook to a file in the dist/documentation folder.
415
- * @param workbook - Excel workbook (excel4node format)
416
- * @param version - OData version
417
- */
418
- function writeToFile(workbook, version) {
419
- const outDir = path_1.join('dist', 'documentation');
420
- if (!fs.existsSync(outDir)) {
421
- fs.mkdirSync(outDir);
422
- }
423
- const outFile = path_1.join(outDir, 'Specification' + version + '.xlsx');
424
- workbook.write(outFile);
425
- }
426
- /********************** Main ***************************/
427
- function generateDocmentation() {
428
- const myArgs = process.argv.slice(2);
429
- let version;
430
- let format;
431
- myArgs.forEach((arg) => {
432
- const value = arg.split('=')[1];
433
- if (arg.includes('version')) {
434
- version = value;
435
- }
436
- else if (arg.includes('format')) {
437
- format = value;
438
- }
439
- });
440
- let directoryPath = '';
441
- switch (version) {
442
- case page_1.FioriElementsVersion.v2:
443
- directoryPath = path_1.join('schemas', 'v2');
444
- break;
445
- case page_1.FioriElementsVersion.v4:
446
- directoryPath = path_1.join('schemas', 'v4');
447
- break;
448
- default:
449
- console.log('Invalid version ' + version + '; processing stopped.');
450
- break;
451
- }
452
- if (directoryPath.length > 0) {
453
- const workbook = new excel.Workbook();
454
- fs.readdir(directoryPath, function (err, files) {
455
- if (err) {
456
- return console.log(err);
457
- }
458
- files.forEach((file) => {
459
- const filePath = path_1.join(directoryPath, file);
460
- const output = [filePath];
461
- const data = fs.readFileSync(filePath, 'utf8');
462
- const schema = JSON.parse(data);
463
- parseSchema(schema, schema, output);
464
- //console.log(output);
465
- if (format === 'excel') {
466
- writeToExcel(workbook, output, file);
467
- }
468
- if (format === 'iXiaSoft') {
469
- generateIxiaSoftFormat(output, file, version);
470
- }
471
- if (format === 'html') {
472
- generateHTMLFormat(output, file, version);
473
- }
474
- });
475
- if (format === 'excel') {
476
- writeToFile(workbook, version);
477
- }
478
- if (format === 'html') {
479
- copyFileToFolder();
480
- }
481
- });
482
- }
483
- }
484
- generateDocmentation();
485
- //# sourceMappingURL=extractDocu.js.map