@epcare/esm-report-builder 0.1.1-pre.15

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 (586) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +19 -0
  3. package/.github/workflows/main.yml +162 -0
  4. package/.prettierrc +8 -0
  5. package/LICENSE +401 -0
  6. package/README.md +317 -0
  7. package/dist/0081d5d3d536cb23.js +1 -0
  8. package/dist/02acc4469a2fe2e4.woff2 +0 -0
  9. package/dist/081587ca0db8e63f.woff2 +0 -0
  10. package/dist/08cf53c4e5e71cf1.woff2 +0 -0
  11. package/dist/090b2bc014d24ea4.woff2 +0 -0
  12. package/dist/09de5db63ef7b579.js +1 -0
  13. package/dist/0ae92bcea615e948.woff2 +0 -0
  14. package/dist/0be8520d8945b3b7.woff2 +0 -0
  15. package/dist/0e7dd073cd8bb0ad.woff2 +0 -0
  16. package/dist/0edb77cd19e43550.js +1 -0
  17. package/dist/14869ac5d1830304.woff2 +0 -0
  18. package/dist/14aaceff85fc8b28.woff2 +0 -0
  19. package/dist/14c3abea79fc1389.js +1 -0
  20. package/dist/155a4ac079785bfd.js +1 -0
  21. package/dist/155a4ac079785bfd.js.map +1 -0
  22. package/dist/16f443eed01776ca.woff2 +0 -0
  23. package/dist/183bae0e53a22182.woff2 +0 -0
  24. package/dist/19c8f94ccd6289f5.woff2 +0 -0
  25. package/dist/1ae86565eab7451c.woff2 +0 -0
  26. package/dist/1c7bf8797e0a9be6.woff2 +0 -0
  27. package/dist/1f266d3619b30f16.woff2 +0 -0
  28. package/dist/1f8c5a4087a524fd.woff2 +0 -0
  29. package/dist/20ba2b23c5c0cd0b.woff2 +0 -0
  30. package/dist/22a32bd51591301b.js +1 -0
  31. package/dist/273c72d90e432a3d.js +1 -0
  32. package/dist/295dd01a1fbfee6d.woff2 +0 -0
  33. package/dist/29cbe6827c3f03ef.js +1 -0
  34. package/dist/2f686985e26e7107.woff2 +0 -0
  35. package/dist/315eff729e4ccbd9.woff2 +0 -0
  36. package/dist/368d16e3259bf207.woff2 +0 -0
  37. package/dist/36c49aa341a7079a.woff2 +0 -0
  38. package/dist/36e1e0430475edee.woff2 +0 -0
  39. package/dist/374c3ee36d9e040a.js +1 -0
  40. package/dist/377971e519bf3f4a.js +2 -0
  41. package/dist/377971e519bf3f4a.js.LICENSE.txt +39 -0
  42. package/dist/377971e519bf3f4a.js.map +1 -0
  43. package/dist/3b0ea8395009dcf3.js +2 -0
  44. package/dist/3b0ea8395009dcf3.js.LICENSE.txt +9 -0
  45. package/dist/3b0ea8395009dcf3.js.map +1 -0
  46. package/dist/3bc19662b8630ee9.woff2 +0 -0
  47. package/dist/3f645f473b3f8fba.woff2 +0 -0
  48. package/dist/41320d8930d23b36.js +1 -0
  49. package/dist/4218ac9901b9d36d.woff2 +0 -0
  50. package/dist/4659f3ca46d928b5.js +1 -0
  51. package/dist/4659f3ca46d928b5.js.map +1 -0
  52. package/dist/4680ba68412e4da9.woff2 +0 -0
  53. package/dist/48e37bd7ebf85a1f.woff2 +0 -0
  54. package/dist/4aabceefe5a2494a.js +1 -0
  55. package/dist/4c188cbaefba58cd.js +1 -0
  56. package/dist/4e11b8a7c445255f.woff2 +0 -0
  57. package/dist/537ddd61c5c1fce2.woff2 +0 -0
  58. package/dist/54f5eee3a7989556.js +1 -0
  59. package/dist/55c9107b50dd747c.js +1 -0
  60. package/dist/56c4118c0907f151.woff2 +0 -0
  61. package/dist/5938bc2ae7ec60c0.woff2 +0 -0
  62. package/dist/5c6586155f0d278a.woff2 +0 -0
  63. package/dist/5e50c92017029ca3.js +1 -0
  64. package/dist/5e50c92017029ca3.js.map +1 -0
  65. package/dist/600aca7295d8bcb7.js +2 -0
  66. package/dist/600aca7295d8bcb7.js.LICENSE.txt +9 -0
  67. package/dist/600aca7295d8bcb7.js.map +1 -0
  68. package/dist/60ec587649ba812a.woff2 +0 -0
  69. package/dist/64cf08a5ac3266d8.js +1 -0
  70. package/dist/652f476a8a1603d3.js +2 -0
  71. package/dist/652f476a8a1603d3.js.LICENSE.txt +9 -0
  72. package/dist/652f476a8a1603d3.js.map +1 -0
  73. package/dist/65e6511e035870e1.woff2 +0 -0
  74. package/dist/661425f6798cd16a.woff2 +0 -0
  75. package/dist/66b864fe213caf46.woff2 +0 -0
  76. package/dist/680eb791e6266590.js +2 -0
  77. package/dist/680eb791e6266590.js.LICENSE.txt +19 -0
  78. package/dist/680eb791e6266590.js.map +1 -0
  79. package/dist/69d087d970ee9455.woff2 +0 -0
  80. package/dist/69e3aa4276b4cb4b.js +1 -0
  81. package/dist/6a88f03fc4e7c3da.js +1 -0
  82. package/dist/6c6c45e66ff54281.woff2 +0 -0
  83. package/dist/6d9009857c6df878.js +1 -0
  84. package/dist/6ebe7cea59ed2853.js +1 -0
  85. package/dist/6f3181849e740935.js +1 -0
  86. package/dist/6f3181849e740935.js.map +1 -0
  87. package/dist/7073a7323e92bd11.woff2 +0 -0
  88. package/dist/70ac433ae2a89a89.js +1 -0
  89. package/dist/70ee4ee625ac0ec1.js +1 -0
  90. package/dist/718c6cc31274ab1a.woff2 +0 -0
  91. package/dist/727696c3934d0966.js +1 -0
  92. package/dist/727763c0f0df59dc.js +1 -0
  93. package/dist/727763c0f0df59dc.js.map +1 -0
  94. package/dist/72cdbedfe04be9f9.woff2 +0 -0
  95. package/dist/7509c9f56fe9e532.woff2 +0 -0
  96. package/dist/75dc5c5b04adc8bf.woff2 +0 -0
  97. package/dist/77b48bc05299ecca.woff2 +0 -0
  98. package/dist/7a0a0215c248c73d.woff2 +0 -0
  99. package/dist/7c0d0c5180de8729.js +1 -0
  100. package/dist/7f00bebb24e40167.woff2 +0 -0
  101. package/dist/802c6176541eeed7.woff2 +0 -0
  102. package/dist/8080081b3379c637.woff2 +0 -0
  103. package/dist/81cfdaeaa0bbca1f.js +1 -0
  104. package/dist/8605507b7a8487c4.woff2 +0 -0
  105. package/dist/893a160d06428365.js +1 -0
  106. package/dist/893a160d06428365.js.map +1 -0
  107. package/dist/8a83d654702f6534.woff2 +0 -0
  108. package/dist/8fe71173a13fe571.woff2 +0 -0
  109. package/dist/94aa912dcac90114.js +1 -0
  110. package/dist/9624cec0f9bdd81e.woff2 +0 -0
  111. package/dist/98a3af55a1698171.woff2 +0 -0
  112. package/dist/99823aaebba56f46.js +1 -0
  113. package/dist/9ba85996af74c5ce.woff2 +0 -0
  114. package/dist/9ddb22faa35006e7.woff2 +0 -0
  115. package/dist/a167fb2799dd741b.woff2 +0 -0
  116. package/dist/a2045a5cc4fdf94f.woff2 +0 -0
  117. package/dist/a246c73905a31c93.woff2 +0 -0
  118. package/dist/a325099b0a580ce2.js +2 -0
  119. package/dist/a325099b0a580ce2.js.LICENSE.txt +14 -0
  120. package/dist/a325099b0a580ce2.js.map +1 -0
  121. package/dist/a401aa7939cb6e6f.woff2 +0 -0
  122. package/dist/a40fef67997d3b2c.js +1 -0
  123. package/dist/a62897b000a24b86.js +1 -0
  124. package/dist/a6ed036f17a1ea29.woff2 +0 -0
  125. package/dist/a77bac4877483a0a.js +1 -0
  126. package/dist/a9f25ca430709a1a.woff2 +0 -0
  127. package/dist/aa0dfbdd569b1c24.js +2 -0
  128. package/dist/aa0dfbdd569b1c24.js.LICENSE.txt +5 -0
  129. package/dist/aa0dfbdd569b1c24.js.map +1 -0
  130. package/dist/ab0f637d6cff12e4.js +1 -0
  131. package/dist/afa9121a49e95351.woff2 +0 -0
  132. package/dist/afcda12d9f805543.woff2 +0 -0
  133. package/dist/b09ded85a7da77f1.woff2 +0 -0
  134. package/dist/b10dbe5318a91a12.js +1 -0
  135. package/dist/b2f4e9d1e821b71c.woff2 +0 -0
  136. package/dist/b4a074bf828bb757.woff2 +0 -0
  137. package/dist/b7f447da43f6e596.woff2 +0 -0
  138. package/dist/bcca84a524572d10.woff2 +0 -0
  139. package/dist/be093e052a6d50eb.js +1 -0
  140. package/dist/be4d1f97b11d087c.woff2 +0 -0
  141. package/dist/bec14780d81164de.woff2 +0 -0
  142. package/dist/c31657fe213c1b5e.js +1 -0
  143. package/dist/c49ef726d3f0420b.js +1 -0
  144. package/dist/c553f7e0199c5084.woff2 +0 -0
  145. package/dist/c94ac2fdc1ff1418.js +1 -0
  146. package/dist/c9d9ce9f465df4fe.woff2 +0 -0
  147. package/dist/cbbb57b397433964.js +2 -0
  148. package/dist/cbbb57b397433964.js.LICENSE.txt +14 -0
  149. package/dist/cbbb57b397433964.js.map +1 -0
  150. package/dist/d188f7f036ac5779.woff2 +0 -0
  151. package/dist/d1aa59bd9c702dc4.js +2 -0
  152. package/dist/d1aa59bd9c702dc4.js.LICENSE.txt +32 -0
  153. package/dist/d1aa59bd9c702dc4.js.map +1 -0
  154. package/dist/d265d81c58525ae4.woff2 +0 -0
  155. package/dist/d5942cd81663e136.woff2 +0 -0
  156. package/dist/d66b8ff73d95cabb.woff2 +0 -0
  157. package/dist/d84bac6d07672dd2.js +1 -0
  158. package/dist/d84bac6d07672dd2.js.map +1 -0
  159. package/dist/d88899ef0fd16719.woff2 +0 -0
  160. package/dist/d92b5ecf31fc187b.js +1 -0
  161. package/dist/d9a5d958e69e058d.woff2 +0 -0
  162. package/dist/dac90d495be353a0.woff2 +0 -0
  163. package/dist/db0550511978dc47.js +1 -0
  164. package/dist/dd8ce598529c3fab.woff2 +0 -0
  165. package/dist/de013f1be25103fa.woff2 +0 -0
  166. package/dist/df222fceeffca849.woff2 +0 -0
  167. package/dist/df22bda08ec7964c.js +1 -0
  168. package/dist/e05b7f902b02a251.js +1 -0
  169. package/dist/e05b7f902b02a251.js.map +1 -0
  170. package/dist/e465f1481f0d2e1c.js +1 -0
  171. package/dist/e62b00b9199c1ac9.woff2 +0 -0
  172. package/dist/e696cef1407b2610.woff2 +0 -0
  173. package/dist/eb42de5422d9af00.js +1 -0
  174. package/dist/eed48feba743e21c.woff2 +0 -0
  175. package/dist/f135ef54213f8975.js +1 -0
  176. package/dist/f260e50923d4283b.js +1 -0
  177. package/dist/f543c88feb236d11.woff2 +0 -0
  178. package/dist/f591b0079faa93fe.woff2 +0 -0
  179. package/dist/f6ed27923769ad1d.woff2 +0 -0
  180. package/dist/f8d066e92ea157c6.js +1 -0
  181. package/dist/fae042506530c1e6.js +1 -0
  182. package/dist/favicon.ico +0 -0
  183. package/dist/fbebeb4336e67012.woff2 +0 -0
  184. package/dist/fd574df77d31a5eb.js +1 -0
  185. package/dist/icon_128x128.3dde25c6e69b1c010a6a5d6b27b3f436.png +0 -0
  186. package/dist/icon_144x144.e263e02b838d229b02ff9133e6e0f2ba.png +0 -0
  187. package/dist/icon_192x192.d3d318638bbe8a10a3c687d3d302d01a.png +0 -0
  188. package/dist/icon_256x256.c729f6e7e914b58fcea5ce91d7aa9bad.png +0 -0
  189. package/dist/icon_384x384.c8923df6b6bd08eba5c79b78d7fcecc0.png +0 -0
  190. package/dist/icon_512x512.7163efb26df832de513bc58d925ea22e.png +0 -0
  191. package/dist/icon_96x96.682ee334ae19d49894217370b8596f61.png +0 -0
  192. package/dist/index.html +9 -0
  193. package/dist/logo-512.png +0 -0
  194. package/dist/logo.svg +30 -0
  195. package/dist/manifest.266df36f2271d27ae9bcaa196a2976ae.json +47 -0
  196. package/dist/openmrs.39723c21cec4b1fc.css +1 -0
  197. package/dist/openmrs.39723c21cec4b1fc.css.map +1 -0
  198. package/dist/openmrs.44bac4c8520ee42f.css +2 -0
  199. package/dist/openmrs.44bac4c8520ee42f.css.map +1 -0
  200. package/dist/openmrs.936e8cf6a4b1599d.css +2 -0
  201. package/dist/openmrs.936e8cf6a4b1599d.css.map +1 -0
  202. package/dist/openmrs.c3adea28ef850516.js +1 -0
  203. package/dist/openmrs.c3adea28ef850516.js.map +1 -0
  204. package/dist/openmrs.e4daba1e3b840e70.css +25 -0
  205. package/dist/openmrs.e4daba1e3b840e70.css.map +1 -0
  206. package/dist/service-worker.js +1 -0
  207. package/dist/service-worker.js.map +1 -0
  208. package/dist-build-23687264126/0081d5d3d536cb23.js +1 -0
  209. package/dist-build-23687264126/02acc4469a2fe2e4.woff2 +0 -0
  210. package/dist-build-23687264126/081587ca0db8e63f.woff2 +0 -0
  211. package/dist-build-23687264126/08cf53c4e5e71cf1.woff2 +0 -0
  212. package/dist-build-23687264126/090b2bc014d24ea4.woff2 +0 -0
  213. package/dist-build-23687264126/09de5db63ef7b579.js +1 -0
  214. package/dist-build-23687264126/0ae92bcea615e948.woff2 +0 -0
  215. package/dist-build-23687264126/0be8520d8945b3b7.woff2 +0 -0
  216. package/dist-build-23687264126/0e7dd073cd8bb0ad.woff2 +0 -0
  217. package/dist-build-23687264126/0edb77cd19e43550.js +1 -0
  218. package/dist-build-23687264126/14869ac5d1830304.woff2 +0 -0
  219. package/dist-build-23687264126/14aaceff85fc8b28.woff2 +0 -0
  220. package/dist-build-23687264126/14c3abea79fc1389.js +1 -0
  221. package/dist-build-23687264126/155a4ac079785bfd.js +1 -0
  222. package/dist-build-23687264126/155a4ac079785bfd.js.map +1 -0
  223. package/dist-build-23687264126/16f443eed01776ca.woff2 +0 -0
  224. package/dist-build-23687264126/183bae0e53a22182.woff2 +0 -0
  225. package/dist-build-23687264126/19c8f94ccd6289f5.woff2 +0 -0
  226. package/dist-build-23687264126/1ae86565eab7451c.woff2 +0 -0
  227. package/dist-build-23687264126/1c7bf8797e0a9be6.woff2 +0 -0
  228. package/dist-build-23687264126/1f266d3619b30f16.woff2 +0 -0
  229. package/dist-build-23687264126/1f8c5a4087a524fd.woff2 +0 -0
  230. package/dist-build-23687264126/20ba2b23c5c0cd0b.woff2 +0 -0
  231. package/dist-build-23687264126/22a32bd51591301b.js +1 -0
  232. package/dist-build-23687264126/273c72d90e432a3d.js +1 -0
  233. package/dist-build-23687264126/295dd01a1fbfee6d.woff2 +0 -0
  234. package/dist-build-23687264126/29cbe6827c3f03ef.js +1 -0
  235. package/dist-build-23687264126/2f686985e26e7107.woff2 +0 -0
  236. package/dist-build-23687264126/315eff729e4ccbd9.woff2 +0 -0
  237. package/dist-build-23687264126/368d16e3259bf207.woff2 +0 -0
  238. package/dist-build-23687264126/36c49aa341a7079a.woff2 +0 -0
  239. package/dist-build-23687264126/36e1e0430475edee.woff2 +0 -0
  240. package/dist-build-23687264126/374c3ee36d9e040a.js +1 -0
  241. package/dist-build-23687264126/377971e519bf3f4a.js +2 -0
  242. package/dist-build-23687264126/377971e519bf3f4a.js.LICENSE.txt +39 -0
  243. package/dist-build-23687264126/377971e519bf3f4a.js.map +1 -0
  244. package/dist-build-23687264126/3b0ea8395009dcf3.js +2 -0
  245. package/dist-build-23687264126/3b0ea8395009dcf3.js.LICENSE.txt +9 -0
  246. package/dist-build-23687264126/3b0ea8395009dcf3.js.map +1 -0
  247. package/dist-build-23687264126/3bc19662b8630ee9.woff2 +0 -0
  248. package/dist-build-23687264126/3f645f473b3f8fba.woff2 +0 -0
  249. package/dist-build-23687264126/41320d8930d23b36.js +1 -0
  250. package/dist-build-23687264126/4218ac9901b9d36d.woff2 +0 -0
  251. package/dist-build-23687264126/4659f3ca46d928b5.js +1 -0
  252. package/dist-build-23687264126/4659f3ca46d928b5.js.map +1 -0
  253. package/dist-build-23687264126/4680ba68412e4da9.woff2 +0 -0
  254. package/dist-build-23687264126/48e37bd7ebf85a1f.woff2 +0 -0
  255. package/dist-build-23687264126/4aabceefe5a2494a.js +1 -0
  256. package/dist-build-23687264126/4c188cbaefba58cd.js +1 -0
  257. package/dist-build-23687264126/4e11b8a7c445255f.woff2 +0 -0
  258. package/dist-build-23687264126/537ddd61c5c1fce2.woff2 +0 -0
  259. package/dist-build-23687264126/54f5eee3a7989556.js +1 -0
  260. package/dist-build-23687264126/55c9107b50dd747c.js +1 -0
  261. package/dist-build-23687264126/56c4118c0907f151.woff2 +0 -0
  262. package/dist-build-23687264126/5938bc2ae7ec60c0.woff2 +0 -0
  263. package/dist-build-23687264126/5c6586155f0d278a.woff2 +0 -0
  264. package/dist-build-23687264126/5e50c92017029ca3.js +1 -0
  265. package/dist-build-23687264126/5e50c92017029ca3.js.map +1 -0
  266. package/dist-build-23687264126/600aca7295d8bcb7.js +2 -0
  267. package/dist-build-23687264126/600aca7295d8bcb7.js.LICENSE.txt +9 -0
  268. package/dist-build-23687264126/600aca7295d8bcb7.js.map +1 -0
  269. package/dist-build-23687264126/60ec587649ba812a.woff2 +0 -0
  270. package/dist-build-23687264126/64cf08a5ac3266d8.js +1 -0
  271. package/dist-build-23687264126/652f476a8a1603d3.js +2 -0
  272. package/dist-build-23687264126/652f476a8a1603d3.js.LICENSE.txt +9 -0
  273. package/dist-build-23687264126/652f476a8a1603d3.js.map +1 -0
  274. package/dist-build-23687264126/65e6511e035870e1.woff2 +0 -0
  275. package/dist-build-23687264126/661425f6798cd16a.woff2 +0 -0
  276. package/dist-build-23687264126/66b864fe213caf46.woff2 +0 -0
  277. package/dist-build-23687264126/680eb791e6266590.js +2 -0
  278. package/dist-build-23687264126/680eb791e6266590.js.LICENSE.txt +19 -0
  279. package/dist-build-23687264126/680eb791e6266590.js.map +1 -0
  280. package/dist-build-23687264126/69d087d970ee9455.woff2 +0 -0
  281. package/dist-build-23687264126/69e3aa4276b4cb4b.js +1 -0
  282. package/dist-build-23687264126/6a88f03fc4e7c3da.js +1 -0
  283. package/dist-build-23687264126/6c6c45e66ff54281.woff2 +0 -0
  284. package/dist-build-23687264126/6d9009857c6df878.js +1 -0
  285. package/dist-build-23687264126/6ebe7cea59ed2853.js +1 -0
  286. package/dist-build-23687264126/6f3181849e740935.js +1 -0
  287. package/dist-build-23687264126/6f3181849e740935.js.map +1 -0
  288. package/dist-build-23687264126/7073a7323e92bd11.woff2 +0 -0
  289. package/dist-build-23687264126/70ac433ae2a89a89.js +1 -0
  290. package/dist-build-23687264126/70ee4ee625ac0ec1.js +1 -0
  291. package/dist-build-23687264126/718c6cc31274ab1a.woff2 +0 -0
  292. package/dist-build-23687264126/727696c3934d0966.js +1 -0
  293. package/dist-build-23687264126/727763c0f0df59dc.js +1 -0
  294. package/dist-build-23687264126/727763c0f0df59dc.js.map +1 -0
  295. package/dist-build-23687264126/72cdbedfe04be9f9.woff2 +0 -0
  296. package/dist-build-23687264126/7509c9f56fe9e532.woff2 +0 -0
  297. package/dist-build-23687264126/75dc5c5b04adc8bf.woff2 +0 -0
  298. package/dist-build-23687264126/77b48bc05299ecca.woff2 +0 -0
  299. package/dist-build-23687264126/7a0a0215c248c73d.woff2 +0 -0
  300. package/dist-build-23687264126/7c0d0c5180de8729.js +1 -0
  301. package/dist-build-23687264126/7f00bebb24e40167.woff2 +0 -0
  302. package/dist-build-23687264126/802c6176541eeed7.woff2 +0 -0
  303. package/dist-build-23687264126/8080081b3379c637.woff2 +0 -0
  304. package/dist-build-23687264126/81cfdaeaa0bbca1f.js +1 -0
  305. package/dist-build-23687264126/8605507b7a8487c4.woff2 +0 -0
  306. package/dist-build-23687264126/893a160d06428365.js +1 -0
  307. package/dist-build-23687264126/893a160d06428365.js.map +1 -0
  308. package/dist-build-23687264126/8a83d654702f6534.woff2 +0 -0
  309. package/dist-build-23687264126/8fe71173a13fe571.woff2 +0 -0
  310. package/dist-build-23687264126/94aa912dcac90114.js +1 -0
  311. package/dist-build-23687264126/9624cec0f9bdd81e.woff2 +0 -0
  312. package/dist-build-23687264126/98a3af55a1698171.woff2 +0 -0
  313. package/dist-build-23687264126/99823aaebba56f46.js +1 -0
  314. package/dist-build-23687264126/9ba85996af74c5ce.woff2 +0 -0
  315. package/dist-build-23687264126/9ddb22faa35006e7.woff2 +0 -0
  316. package/dist-build-23687264126/a167fb2799dd741b.woff2 +0 -0
  317. package/dist-build-23687264126/a2045a5cc4fdf94f.woff2 +0 -0
  318. package/dist-build-23687264126/a246c73905a31c93.woff2 +0 -0
  319. package/dist-build-23687264126/a325099b0a580ce2.js +2 -0
  320. package/dist-build-23687264126/a325099b0a580ce2.js.LICENSE.txt +14 -0
  321. package/dist-build-23687264126/a325099b0a580ce2.js.map +1 -0
  322. package/dist-build-23687264126/a401aa7939cb6e6f.woff2 +0 -0
  323. package/dist-build-23687264126/a40fef67997d3b2c.js +1 -0
  324. package/dist-build-23687264126/a62897b000a24b86.js +1 -0
  325. package/dist-build-23687264126/a6ed036f17a1ea29.woff2 +0 -0
  326. package/dist-build-23687264126/a77bac4877483a0a.js +1 -0
  327. package/dist-build-23687264126/a9f25ca430709a1a.woff2 +0 -0
  328. package/dist-build-23687264126/aa0dfbdd569b1c24.js +2 -0
  329. package/dist-build-23687264126/aa0dfbdd569b1c24.js.LICENSE.txt +5 -0
  330. package/dist-build-23687264126/aa0dfbdd569b1c24.js.map +1 -0
  331. package/dist-build-23687264126/ab0f637d6cff12e4.js +1 -0
  332. package/dist-build-23687264126/afa9121a49e95351.woff2 +0 -0
  333. package/dist-build-23687264126/afcda12d9f805543.woff2 +0 -0
  334. package/dist-build-23687264126/b09ded85a7da77f1.woff2 +0 -0
  335. package/dist-build-23687264126/b10dbe5318a91a12.js +1 -0
  336. package/dist-build-23687264126/b2f4e9d1e821b71c.woff2 +0 -0
  337. package/dist-build-23687264126/b4a074bf828bb757.woff2 +0 -0
  338. package/dist-build-23687264126/b7f447da43f6e596.woff2 +0 -0
  339. package/dist-build-23687264126/bcca84a524572d10.woff2 +0 -0
  340. package/dist-build-23687264126/be093e052a6d50eb.js +1 -0
  341. package/dist-build-23687264126/be4d1f97b11d087c.woff2 +0 -0
  342. package/dist-build-23687264126/bec14780d81164de.woff2 +0 -0
  343. package/dist-build-23687264126/c31657fe213c1b5e.js +1 -0
  344. package/dist-build-23687264126/c49ef726d3f0420b.js +1 -0
  345. package/dist-build-23687264126/c553f7e0199c5084.woff2 +0 -0
  346. package/dist-build-23687264126/c94ac2fdc1ff1418.js +1 -0
  347. package/dist-build-23687264126/c9d9ce9f465df4fe.woff2 +0 -0
  348. package/dist-build-23687264126/cbbb57b397433964.js +2 -0
  349. package/dist-build-23687264126/cbbb57b397433964.js.LICENSE.txt +14 -0
  350. package/dist-build-23687264126/cbbb57b397433964.js.map +1 -0
  351. package/dist-build-23687264126/d188f7f036ac5779.woff2 +0 -0
  352. package/dist-build-23687264126/d1aa59bd9c702dc4.js +2 -0
  353. package/dist-build-23687264126/d1aa59bd9c702dc4.js.LICENSE.txt +32 -0
  354. package/dist-build-23687264126/d1aa59bd9c702dc4.js.map +1 -0
  355. package/dist-build-23687264126/d265d81c58525ae4.woff2 +0 -0
  356. package/dist-build-23687264126/d5942cd81663e136.woff2 +0 -0
  357. package/dist-build-23687264126/d66b8ff73d95cabb.woff2 +0 -0
  358. package/dist-build-23687264126/d84bac6d07672dd2.js +1 -0
  359. package/dist-build-23687264126/d84bac6d07672dd2.js.map +1 -0
  360. package/dist-build-23687264126/d88899ef0fd16719.woff2 +0 -0
  361. package/dist-build-23687264126/d92b5ecf31fc187b.js +1 -0
  362. package/dist-build-23687264126/d9a5d958e69e058d.woff2 +0 -0
  363. package/dist-build-23687264126/dac90d495be353a0.woff2 +0 -0
  364. package/dist-build-23687264126/db0550511978dc47.js +1 -0
  365. package/dist-build-23687264126/dd8ce598529c3fab.woff2 +0 -0
  366. package/dist-build-23687264126/de013f1be25103fa.woff2 +0 -0
  367. package/dist-build-23687264126/df222fceeffca849.woff2 +0 -0
  368. package/dist-build-23687264126/df22bda08ec7964c.js +1 -0
  369. package/dist-build-23687264126/e05b7f902b02a251.js +1 -0
  370. package/dist-build-23687264126/e05b7f902b02a251.js.map +1 -0
  371. package/dist-build-23687264126/e465f1481f0d2e1c.js +1 -0
  372. package/dist-build-23687264126/e62b00b9199c1ac9.woff2 +0 -0
  373. package/dist-build-23687264126/e696cef1407b2610.woff2 +0 -0
  374. package/dist-build-23687264126/eb42de5422d9af00.js +1 -0
  375. package/dist-build-23687264126/eed48feba743e21c.woff2 +0 -0
  376. package/dist-build-23687264126/f135ef54213f8975.js +1 -0
  377. package/dist-build-23687264126/f260e50923d4283b.js +1 -0
  378. package/dist-build-23687264126/f543c88feb236d11.woff2 +0 -0
  379. package/dist-build-23687264126/f591b0079faa93fe.woff2 +0 -0
  380. package/dist-build-23687264126/f6ed27923769ad1d.woff2 +0 -0
  381. package/dist-build-23687264126/f8d066e92ea157c6.js +1 -0
  382. package/dist-build-23687264126/fae042506530c1e6.js +1 -0
  383. package/dist-build-23687264126/favicon.ico +0 -0
  384. package/dist-build-23687264126/fbebeb4336e67012.woff2 +0 -0
  385. package/dist-build-23687264126/fd574df77d31a5eb.js +1 -0
  386. package/dist-build-23687264126/icon_128x128.3dde25c6e69b1c010a6a5d6b27b3f436.png +0 -0
  387. package/dist-build-23687264126/icon_144x144.e263e02b838d229b02ff9133e6e0f2ba.png +0 -0
  388. package/dist-build-23687264126/icon_192x192.d3d318638bbe8a10a3c687d3d302d01a.png +0 -0
  389. package/dist-build-23687264126/icon_256x256.c729f6e7e914b58fcea5ce91d7aa9bad.png +0 -0
  390. package/dist-build-23687264126/icon_384x384.c8923df6b6bd08eba5c79b78d7fcecc0.png +0 -0
  391. package/dist-build-23687264126/icon_512x512.7163efb26df832de513bc58d925ea22e.png +0 -0
  392. package/dist-build-23687264126/icon_96x96.682ee334ae19d49894217370b8596f61.png +0 -0
  393. package/dist-build-23687264126/index.html +9 -0
  394. package/dist-build-23687264126/logo-512.png +0 -0
  395. package/dist-build-23687264126/logo.svg +30 -0
  396. package/dist-build-23687264126/manifest.266df36f2271d27ae9bcaa196a2976ae.json +47 -0
  397. package/dist-build-23687264126/openmrs.39723c21cec4b1fc.css +1 -0
  398. package/dist-build-23687264126/openmrs.39723c21cec4b1fc.css.map +1 -0
  399. package/dist-build-23687264126/openmrs.44bac4c8520ee42f.css +2 -0
  400. package/dist-build-23687264126/openmrs.44bac4c8520ee42f.css.map +1 -0
  401. package/dist-build-23687264126/openmrs.936e8cf6a4b1599d.css +2 -0
  402. package/dist-build-23687264126/openmrs.936e8cf6a4b1599d.css.map +1 -0
  403. package/dist-build-23687264126/openmrs.c3adea28ef850516.js +1 -0
  404. package/dist-build-23687264126/openmrs.c3adea28ef850516.js.map +1 -0
  405. package/dist-build-23687264126/openmrs.e4daba1e3b840e70.css +25 -0
  406. package/dist-build-23687264126/openmrs.e4daba1e3b840e70.css.map +1 -0
  407. package/dist-build-23687264126/service-worker.js +1 -0
  408. package/dist-build-23687264126/service-worker.js.map +1 -0
  409. package/e2e/core/env.ts +5 -0
  410. package/e2e/core/global-setup.ts +34 -0
  411. package/e2e/core/test.ts +21 -0
  412. package/e2e/pages/app-shell.page.ts +34 -0
  413. package/e2e/pages/etl-sources.page.ts +35 -0
  414. package/e2e/pages/report-sections.page.ts +20 -0
  415. package/e2e/pages/section-preview.modal.ts +29 -0
  416. package/e2e/specs/etl-sources.spec.ts +51 -0
  417. package/e2e/specs/navigation.spec.ts +13 -0
  418. package/e2e/specs/section-preview-validation.spec.ts +38 -0
  419. package/e2e/specs/section-preview.spec.ts +94 -0
  420. package/e2e/tsconfig.json +11 -0
  421. package/example.env +5 -0
  422. package/jest.config.js +28 -0
  423. package/package.json +82 -0
  424. package/playwright.config.ts +28 -0
  425. package/src/admin-card-link.extension.module.scss +55 -0
  426. package/src/admin-card-link.extension.tsx +24 -0
  427. package/src/components/admin/admin-page.component.tsx +31 -0
  428. package/src/components/admin/age-categories-page.component.tsx +109 -0
  429. package/src/components/admin/age-groups-page.component.tsx +146 -0
  430. package/src/components/admin/etl-sources-page.component.tsx +344 -0
  431. package/src/components/admin/report-categories-page.component.tsx +256 -0
  432. package/src/components/admin/report-library-page.component.tsx +540 -0
  433. package/src/components/ai-support/ai-assist-button.component.tsx +30 -0
  434. package/src/components/ai-support/ai-assist-modal.component.tsx +81 -0
  435. package/src/components/ai-support/ai.service.ts +21 -0
  436. package/src/components/ai-support/ai.types.ts +12 -0
  437. package/src/components/app-shell/report-builder-shell.component.tsx +120 -0
  438. package/src/components/app-shell/report-builder-shell.scss +15 -0
  439. package/src/components/data-themes/data-theme-form.component.tsx +59 -0
  440. package/src/components/data-themes/data-theme-modal.component.tsx +349 -0
  441. package/src/components/data-themes/data-themes-page.component.tsx +132 -0
  442. package/src/components/data-themes/data-themes-table.component.tsx +91 -0
  443. package/src/components/data-themes/icon-registry.ts +35 -0
  444. package/src/components/data-themes/sections/data-theme-basics.section.tsx +63 -0
  445. package/src/components/data-themes/sections/data-theme-condition-columns.section.tsx +397 -0
  446. package/src/components/data-themes/sections/data-theme-fields-editor.section.tsx +125 -0
  447. package/src/components/data-themes/sections/data-theme-metadata.section.tsx +245 -0
  448. package/src/components/data-themes/sections/data-theme-preview.section.tsx +115 -0
  449. package/src/components/data-themes/sections/data-theme-source.section.tsx +184 -0
  450. package/src/components/indicators/README.md +24 -0
  451. package/src/components/indicators/base-indicator-basic-fields.component.tsx +18 -0
  452. package/src/components/indicators/base-indicator-basics.section.tsx +54 -0
  453. package/src/components/indicators/base-indicator-countby.section.tsx +25 -0
  454. package/src/components/indicators/base-indicator-criteria.section.tsx +83 -0
  455. package/src/components/indicators/base-indicator-details-form.component.tsx +80 -0
  456. package/src/components/indicators/base-indicator-theme-unit-fields.component.tsx +39 -0
  457. package/src/components/indicators/create-base-indicator-modal.component.tsx +501 -0
  458. package/src/components/indicators/create-composite-base-indicator-modal.component.tsx +297 -0
  459. package/src/components/indicators/create-final-indicator-modal.component.tsx +260 -0
  460. package/src/components/indicators/diagnosis-filters-form.component.tsx +101 -0
  461. package/src/components/indicators/disaggregation-panel.component.tsx +93 -0
  462. package/src/components/indicators/handler/concept-search-multiselect.component.tsx +153 -0
  463. package/src/components/indicators/handler/question-answer-concept-search.component.tsx +336 -0
  464. package/src/components/indicators/indicator-status-tag.component.tsx +9 -0
  465. package/src/components/indicators/indicators-page.component.tsx +481 -0
  466. package/src/components/indicators/indicators-page.scss +121 -0
  467. package/src/components/indicators/indicators-table.component.tsx +166 -0
  468. package/src/components/indicators/preview-table.component.tsx +31 -0
  469. package/src/components/indicators/sections/composite-indicator-basics.section.tsx +36 -0
  470. package/src/components/indicators/sections/composite-indicator-picker.section.tsx +161 -0
  471. package/src/components/indicators/sections/composite-indicator-sql-preview.section.tsx +31 -0
  472. package/src/components/indicators/sections/final-indicator-basics.section.tsx +46 -0
  473. package/src/components/indicators/sections/final-indicator-disaggregation.section.tsx +47 -0
  474. package/src/components/indicators/sections/final-indicator-picker.section.tsx +92 -0
  475. package/src/components/indicators/sections/final-indicator-preview.section.tsx +20 -0
  476. package/src/components/indicators/sections/final-indicator-results-preview.section.tsx +65 -0
  477. package/src/components/indicators/sections/indicator-basics.section.tsx +40 -0
  478. package/src/components/indicators/sections/indicator-conditions.section.tsx +194 -0
  479. package/src/components/indicators/sections/indicator-sql-preview.section.tsx +26 -0
  480. package/src/components/indicators/sections/indicator-theme.section.tsx +48 -0
  481. package/src/components/indicators/sql-preview.component.tsx +19 -0
  482. package/src/components/indicators/types/base-indicator-form.types.ts +17 -0
  483. package/src/components/indicators/types/base-indicator-theme.constants.ts +8 -0
  484. package/src/components/indicators/types/composite-indicator.types.ts +21 -0
  485. package/src/components/indicators/types/condition-ui.types.ts +11 -0
  486. package/src/components/indicators/types/data-theme-config.types.ts +88 -0
  487. package/src/components/indicators/types/indicator-types.ts +56 -0
  488. package/src/components/indicators/types/sql-builders.ts +43 -0
  489. package/src/components/indicators/utils/composite-indicator-sql.utils.ts +206 -0
  490. package/src/components/indicators/utils/concept-preload.utils.ts +21 -0
  491. package/src/components/indicators/utils/final-indicator-sql.utils.ts +124 -0
  492. package/src/components/indicators/utils/indicator-conditions-hydration.utils.ts +254 -0
  493. package/src/components/indicators/utils/indicator-sql.utils.ts +185 -0
  494. package/src/components/landing/landing-action-item.component.tsx +50 -0
  495. package/src/components/landing/landing-action-list.component.tsx +12 -0
  496. package/src/components/landing/landing-activity-list.component.tsx +47 -0
  497. package/src/components/landing/landing-footer-grid.component.tsx +45 -0
  498. package/src/components/landing/landing-hero.component.tsx +18 -0
  499. package/src/components/landing/landing-section-card.component.tsx +33 -0
  500. package/src/components/landing/report-builder-landing-page.component.tsx +103 -0
  501. package/src/components/landing/report-builder-landing-page.scss +131 -0
  502. package/src/components/report/dashboard/reports-table.component.tsx +145 -0
  503. package/src/components/report/definition/panels/properties-panel.component.tsx +38 -0
  504. package/src/components/report/definition/panels/report-structure-panel.component.tsx +61 -0
  505. package/src/components/report/definition/panels/selection-panel.component.tsx +58 -0
  506. package/src/components/report/definition/report-definition-editor.component.tsx +99 -0
  507. package/src/components/report/definition/report-definition.types.ts +66 -0
  508. package/src/components/report/design/panels/IndicatorPropertiesPanel.scss +33 -0
  509. package/src/components/report/design/panels/IndicatorPropertiesPanel.tsx +389 -0
  510. package/src/components/report/design/panels/JsonPreviewPanel.scss +32 -0
  511. package/src/components/report/design/panels/JsonPreviewPanel.tsx +104 -0
  512. package/src/components/report/design/panels/mapping-preview-panel.component.tsx +82 -0
  513. package/src/components/report/design/panels/mapping-preview-panel.scss +55 -0
  514. package/src/components/report/design/panels/template-structure-panel.component.tsx +296 -0
  515. package/src/components/report/design/panels/template-structure-panel.scss +81 -0
  516. package/src/components/report/design/report-design-editor.component.tsx +894 -0
  517. package/src/components/report/design/report-design.types.ts +43 -0
  518. package/src/components/report/design/report-design.utils.ts +86 -0
  519. package/src/components/report/panels/report-detail.component.tsx +71 -0
  520. package/src/components/report/panels/report-panel-shell.component.tsx +60 -0
  521. package/src/components/report/report-dashboard.page.component.tsx +75 -0
  522. package/src/components/report/report-editor.page.component.tsx +466 -0
  523. package/src/components/report/report.routes.tsx +30 -0
  524. package/src/components/report-sections/create-report-section-modal.component.tsx +278 -0
  525. package/src/components/report-sections/hooks/useAgeCategories.ts +25 -0
  526. package/src/components/report-sections/hooks/useSectionEditorState.ts +306 -0
  527. package/src/components/report-sections/panels/Dhis2MappingPanel.tsx +157 -0
  528. package/src/components/report-sections/panels/DisaggregationPanel.tsx +97 -0
  529. package/src/components/report-sections/panels/IndicatorPickerPanel.tsx +143 -0
  530. package/src/components/report-sections/panels/SectionBasicsPanel.tsx +27 -0
  531. package/src/components/report-sections/report-section-preview-modal.component.tsx +418 -0
  532. package/src/components/report-sections/report-sections-page.component.tsx +313 -0
  533. package/src/components/report-sections/section-types.ts +55 -0
  534. package/src/components/report-sections/section-utils.ts +46 -0
  535. package/src/components/report-sections/sections-page.scss +79 -0
  536. package/src/components/run-reports/run-reports-page.component.tsx +23 -0
  537. package/src/components/shared/header/builder-header-actions.component.tsx +38 -0
  538. package/src/components/shared/header/header.component.tsx +85 -0
  539. package/src/components/shared/header/header.scss +150 -0
  540. package/src/components/shared/header/illustration.component.tsx +34 -0
  541. package/src/components/shared/indicator-properties-panel/IndicatorPropertiesPanel.scss +33 -0
  542. package/src/components/shared/indicator-properties-panel/IndicatorPropertiesPanel.tsx +389 -0
  543. package/src/components/shared/json-preview-panel/JsonPreviewPanel.scss +32 -0
  544. package/src/components/shared/json-preview-panel/JsonPreviewPanel.tsx +104 -0
  545. package/src/components/shared/mapping-preview-panel/mapping-preview-panel.component.tsx +82 -0
  546. package/src/components/shared/mapping-preview-panel/mapping-preview-panel.scss +55 -0
  547. package/src/components/shared/preview/query-results-preview.component.tsx +204 -0
  548. package/src/components/shared/template-structure-panel/template-structure-panel.component.tsx +296 -0
  549. package/src/components/shared/template-structure-panel/template-structure-panel.scss +81 -0
  550. package/src/config-schema.ts +23 -0
  551. package/src/globals.d.ts +14 -0
  552. package/src/hooks/theme/useDataThemes.ts +28 -0
  553. package/src/hooks/theme/useMambaTableMeta.ts +34 -0
  554. package/src/hooks/theme/useMambaTables.ts +63 -0
  555. package/src/index.ts +23 -0
  556. package/src/resources/agegroup/agegroups.api.ts +58 -0
  557. package/src/resources/concepts/concept-mapper.ts +21 -0
  558. package/src/resources/concepts/concept-types.ts +31 -0
  559. package/src/resources/concepts/concepts.resource.ts +44 -0
  560. package/src/resources/concepts/useConceptSearch.ts +41 -0
  561. package/src/resources/etl-source/etl-source.api.ts +65 -0
  562. package/src/resources/indicator/indicators.api.ts +125 -0
  563. package/src/resources/openmrs-api.ts +24 -0
  564. package/src/resources/preview/sql-preview.api.ts +54 -0
  565. package/src/resources/report/reports.api.ts +117 -0
  566. package/src/resources/report-category/report-category.api.ts +41 -0
  567. package/src/resources/report-library/report-library.api.ts +63 -0
  568. package/src/resources/report-section/report-sections.api.ts +73 -0
  569. package/src/resources/report-section/section-preview.api.ts +21 -0
  570. package/src/resources/theme/data-theme.api.ts +88 -0
  571. package/src/resources/theme/mamba-schema.api.ts +31 -0
  572. package/src/resources/theme/mamba-table-meta.api.ts +45 -0
  573. package/src/root.component.tsx +20 -0
  574. package/src/routes/report-builder.routes.tsx +66 -0
  575. package/src/routes/report-builder.scss +56 -0
  576. package/src/routes.json +21 -0
  577. package/src/sample-template.ts +121 -0
  578. package/src/template-utils.ts +110 -0
  579. package/src/types/carbon-react-inert.d.ts +13 -0
  580. package/src/types/condition-operators.ts +49 -0
  581. package/src/types/theme/data-theme.types.ts +88 -0
  582. package/src/utils/html-entities.utils.ts +23 -0
  583. package/tools/setup-tests.ts +1 -0
  584. package/translations/en.json +4 -0
  585. package/tsconfig.json +43 -0
  586. package/webpack.config.js +14 -0
@@ -0,0 +1,185 @@
1
+ import type { DataThemeConfig, ThemeCondition } from '../types/data-theme-config.types';
2
+ import type { IndicatorCondition } from '../types/indicator-types';
3
+
4
+ import { normalizeOperator, isInOperator } from '../../../types/condition-operators';
5
+
6
+ const DEMO_JOIN_TABLE = 'mamba_fact_patients_latest_patient_demographics';
7
+
8
+ function sqlQuote(v: string) {
9
+ return `'${String(v).replace(/'/g, "''")}'`;
10
+ }
11
+
12
+ function qualifyColumn(col: string) {
13
+ const c = String(col ?? '').trim();
14
+ if (!c) return c;
15
+ if (c.includes('.') || c.includes('(') || c.includes(' ') || c.includes('`')) return c;
16
+ return `a.${c}`;
17
+ }
18
+
19
+ function parseQaColumnsFromExpr(expr?: string | null) {
20
+ const raw = String(expr ?? '').trim();
21
+ if (!raw) return { questionColumn: undefined as string | undefined, answerColumn: undefined as string | undefined };
22
+
23
+ const m = raw.match(/QA\s*$begin:math:text$\(\.\*\)$end:math:text$/i);
24
+ if (!m) return { questionColumn: undefined, answerColumn: undefined };
25
+
26
+ const inner = (m[1] ?? '').trim();
27
+ if (!inner) return { questionColumn: undefined, answerColumn: undefined };
28
+
29
+ const parts = inner
30
+ .split(',')
31
+ .map((x) => x.trim())
32
+ .filter(Boolean);
33
+
34
+ return { questionColumn: parts[0], answerColumn: parts[1] };
35
+ }
36
+
37
+ function looksLikeQaExpression(expr?: string | null) {
38
+ const raw = String(expr ?? '').trim();
39
+ return /^([a-z]\.)?QA\s*\(/i.test(raw);
40
+ }
41
+
42
+ type QAValue = {
43
+ question?: string | number | null;
44
+ questions?: Array<string | number>;
45
+ answers?: Array<string | number>;
46
+ };
47
+
48
+ function isQAValue(v: any): v is QAValue {
49
+ return v && typeof v === 'object' && ('question' in v || 'questions' in v || 'answers' in v);
50
+ }
51
+
52
+ function normalizeArrayValue(v: any) {
53
+ const arr = Array.isArray(v) ? v : [v];
54
+ return arr.map((x) => String(x)).filter((x) => x.trim().length > 0);
55
+ }
56
+
57
+ export function buildSqlPreview(themeCfg: DataThemeConfig) {
58
+ const src = themeCfg.sourceTable;
59
+ const pid = themeCfg.patientIdColumn;
60
+ const dateCol = themeCfg.dateColumn;
61
+
62
+ const lines: string[] = [];
63
+ lines.push(`SELECT`);
64
+ lines.push(` COUNT(*) AS total`);
65
+ lines.push(`FROM ${src} a`);
66
+ lines.push(`JOIN ${DEMO_JOIN_TABLE} mdp`);
67
+ lines.push(` ON mdp.patient_id = a.${pid}`);
68
+ lines.push(`WHERE a.${dateCol} >= ':startDate'`);
69
+ lines.push(` AND a.${dateCol} < ':endDate'`);
70
+ lines.push(` AND mdp.birthdate IS NOT NULL`);
71
+ lines.push(` AND mdp.gender IS NOT NULL`);
72
+ lines.push(`;`);
73
+
74
+ return lines.join('\n');
75
+ }
76
+
77
+ export function applyConditionClauses(baseSql: string, themeConditions: ThemeCondition[], picked: IndicatorCondition[]) {
78
+ const sqlLines = baseSql.split('\n');
79
+
80
+ const demoBirthIdx = sqlLines.findIndex((l) => l.includes('mdp.birthdate IS NOT NULL'));
81
+ const insertAt = demoBirthIdx > -1 ? demoBirthIdx : sqlLines.length;
82
+
83
+ const clauses: string[] = [];
84
+
85
+ for (const tc of themeConditions ?? []) {
86
+ const pc = picked.find((x) => x.key === tc.key);
87
+ if (!pc) continue;
88
+
89
+ const v: any = pc.value;
90
+ if (v === null || v === undefined) continue;
91
+
92
+ // ✅ Normalize operator tokens from theme/UI
93
+ const op = normalizeOperator((pc.operator as any) ?? (tc.operator as any) ?? 'IN');
94
+
95
+ // QUESTION_ANSWER_CONCEPT_SEARCH
96
+ if (tc.handler === 'QUESTION_ANSWER_CONCEPT_SEARCH' && isQAValue(v)) {
97
+ const qVals: any[] = Array.isArray(v.questions)
98
+ ? v.questions
99
+ : v.question !== null && v.question !== undefined && String(v.question).trim() !== ''
100
+ ? [v.question]
101
+ : [];
102
+
103
+ const av = Array.isArray(v.answers) ? v.answers : [];
104
+
105
+ let questionColumn = (tc as any)?.columns?.question ?? (tc as any).questionColumn;
106
+ let answerColumn = (tc as any)?.columns?.answer ?? (tc as any).answerColumn;
107
+
108
+ if ((!questionColumn || !answerColumn) && (tc as any)?.column) {
109
+ const parsed = parseQaColumnsFromExpr((tc as any).column);
110
+ questionColumn = questionColumn ?? parsed.questionColumn;
111
+ answerColumn = answerColumn ?? parsed.answerColumn;
112
+ }
113
+
114
+ const tcCol = (tc as any)?.column as string | undefined;
115
+ if (!questionColumn && tcCol) questionColumn = tcCol;
116
+ if (!answerColumn && tcCol && !looksLikeQaExpression(tcCol)) answerColumn = tcCol;
117
+
118
+ if (questionColumn && qVals.length) {
119
+ const arr = normalizeArrayValue(qVals);
120
+ if (arr.length) {
121
+ const isNumericList = tc.valueType === 'conceptId' || arr.every((x) => /^[0-9]+$/.test(x));
122
+ const rendered = arr.map((x) => (isNumericList ? x : sqlQuote(x))).join(',');
123
+ const col = qualifyColumn(questionColumn);
124
+
125
+ // For questions we keep original behavior: single => =, many => IN (...)
126
+ if (arr.length === 1) clauses.push(` AND ${col} = ${rendered}`);
127
+ else clauses.push(` AND ${col} IN (${rendered})`);
128
+ }
129
+ }
130
+
131
+ if (answerColumn && Array.isArray(av) && av.length) {
132
+ const arr = normalizeArrayValue(av);
133
+ if (arr.length) {
134
+ const isNumericList = tc.valueType === 'conceptId' || arr.every((x) => /^[0-9]+$/.test(x));
135
+ const rendered = arr.map((x) => (isNumericList ? x : sqlQuote(x))).join(',');
136
+ const col = qualifyColumn(answerColumn);
137
+
138
+ // ✅ Always bracket IN/NOT IN
139
+ if (op === 'NOT IN') clauses.push(` AND ${col} NOT IN (${rendered})`);
140
+ else clauses.push(` AND ${col} IN (${rendered})`);
141
+ }
142
+ }
143
+
144
+ continue;
145
+ }
146
+
147
+ // array values
148
+ if (Array.isArray(v)) {
149
+ const arr = normalizeArrayValue(v);
150
+ if (!arr.length) continue;
151
+
152
+ const isNumericList = tc.valueType === 'conceptId' || arr.every((x) => /^[0-9]+$/.test(x));
153
+ const rendered = arr.map((x) => (isNumericList ? x : sqlQuote(x))).join(',');
154
+
155
+ const col = qualifyColumn(tc.column);
156
+
157
+ if (op === 'NOT IN') clauses.push(` AND ${col} NOT IN (${rendered})`);
158
+ else if (op === 'IN') clauses.push(` AND ${col} IN (${rendered})`);
159
+ else clauses.push(` AND ${col} ${op} (${rendered})`);
160
+
161
+ continue;
162
+ }
163
+
164
+ // other object not supported
165
+ if (typeof v === 'object') continue;
166
+
167
+ // scalar
168
+ const sval = String(v);
169
+ const isNumeric = tc.valueType === 'conceptId' || /^[0-9]+$/.test(sval);
170
+ const renderedScalar = isNumeric ? sval : sqlQuote(sval);
171
+
172
+ const col = qualifyColumn(tc.column);
173
+
174
+ // ✅ IN must always have brackets, even for scalar
175
+ if (isInOperator(op)) {
176
+ if (op === 'NOT IN') clauses.push(` AND ${col} NOT IN (${renderedScalar})`);
177
+ else clauses.push(` AND ${col} IN (${renderedScalar})`);
178
+ } else {
179
+ clauses.push(` AND ${col} ${op} ${renderedScalar}`);
180
+ }
181
+ }
182
+
183
+ sqlLines.splice(insertAt, 0, ...clauses);
184
+ return sqlLines.join('\n');
185
+ }
@@ -0,0 +1,50 @@
1
+ import React from 'react';
2
+ import { ChevronRight } from '@carbon/icons-react';
3
+ import { Link } from 'react-router-dom';
4
+
5
+ import styles from './report-builder-landing-page.scss';
6
+
7
+ type LandingActionItemBase = {
8
+ icon: React.ReactNode;
9
+ label: string;
10
+ };
11
+
12
+ type LandingActionItemLink = LandingActionItemBase & {
13
+ to: string;
14
+ onClick?: never;
15
+ };
16
+
17
+ type LandingActionItemButton = LandingActionItemBase & {
18
+ onClick: () => void;
19
+ to?: never;
20
+ };
21
+
22
+ export type LandingActionItemProps = LandingActionItemLink | LandingActionItemButton;
23
+
24
+ const LandingActionItem: React.FC<LandingActionItemProps> = (props) => {
25
+ const content = (
26
+ <>
27
+ <div className={styles.rbActionLeft}>
28
+ {props.icon}
29
+ <span className={styles.rbActionLabel}>{props.label}</span>
30
+ </div>
31
+ <ChevronRight />
32
+ </>
33
+ );
34
+
35
+ if ('to' in props) {
36
+ return (
37
+ <Link className={styles.rbAction} to={props.to}>
38
+ {content}
39
+ </Link>
40
+ );
41
+ }
42
+
43
+ return (
44
+ <button className={styles.rbAction} type="button" onClick={props.onClick}>
45
+ {content}
46
+ </button>
47
+ );
48
+ };
49
+
50
+ export default LandingActionItem;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import styles from './report-builder-landing-page.scss';
3
+
4
+ type LandingActionListProps = {
5
+ children: React.ReactNode;
6
+ };
7
+
8
+ const LandingActionList: React.FC<LandingActionListProps> = ({ children }) => {
9
+ return <div className={styles.rbActions}>{children}</div>;
10
+ };
11
+
12
+ export default LandingActionList;
@@ -0,0 +1,47 @@
1
+ import React from 'react';
2
+ import { ChevronRight, Document, Report } from '@carbon/icons-react';
3
+ import styles from './report-builder-landing-page.scss';
4
+
5
+ type RecentIndicator = { name: string; when: string };
6
+
7
+ type LandingActivityListProps = {
8
+ recentIndicators: RecentIndicator[];
9
+ savedReports: string[];
10
+ };
11
+
12
+ const cx = (...parts: Array<string | undefined | false>) => parts.filter(Boolean).join(' ');
13
+
14
+ const LandingActivityList: React.FC<LandingActivityListProps> = ({ recentIndicators, savedReports }) => {
15
+ return (
16
+ <div>
17
+ <div className={styles.rbListSectionTitle}>Recent Activity</div>
18
+
19
+ <div className={styles.rbListSubTitle}>Recently Edited Indicators</div>
20
+ {recentIndicators.map((x) => (
21
+ <div key={x.name} className={styles.rbListItem}>
22
+ <div className={styles.rbListLeft}>
23
+ <Document />
24
+ <div>
25
+ <div className={styles.rbListName}>{x.name}</div>
26
+ <div className={styles.rbListMeta}>{x.when}</div>
27
+ </div>
28
+ </div>
29
+ <ChevronRight />
30
+ </div>
31
+ ))}
32
+
33
+ <div className={cx(styles.rbListSubTitle, styles.rbMt12)}>Saved Reports</div>
34
+ {savedReports.map((r) => (
35
+ <div key={r} className={styles.rbListItem}>
36
+ <div className={styles.rbListLeft}>
37
+ <Report />
38
+ <div className={styles.rbListName}>{r}</div>
39
+ </div>
40
+ <ChevronRight />
41
+ </div>
42
+ ))}
43
+ </div>
44
+ );
45
+ };
46
+
47
+ export default LandingActivityList;
@@ -0,0 +1,45 @@
1
+ import React from 'react';
2
+ import { Button, Tag } from '@carbon/react';
3
+ import { Play, Time, Save, ChartColumn } from '@carbon/icons-react';
4
+
5
+ import styles from './report-builder-landing-page.scss';
6
+ import LandingSectionCard from './landing-section-card.component';
7
+ import LandingActionList from './landing-action-list.component';
8
+ import LandingActionItem from './landing-action-item.component';
9
+
10
+ type LandingFooterGridProps = {
11
+ onNavigate: (path: string) => void;
12
+ };
13
+
14
+ const cx = (...parts: Array<string | undefined | false>) => parts.filter(Boolean).join(' ');
15
+
16
+ const LandingFooterGrid: React.FC<LandingFooterGridProps> = ({ onNavigate }) => {
17
+ return (
18
+ <div className={cx(styles.rbLandingGrid, styles.rbLandingGridBottom)}>
19
+ <LandingSectionCard title="Indicators" tone="blue" headerIcon={<ChartColumn />}>
20
+ <div className={styles.rbFooterActions}>
21
+ <Button size="sm" kind="secondary" renderIcon={Save} onClick={() => onNavigate('/indicators/save')}>
22
+ Save Indicator
23
+ </Button>
24
+ <Tag type="blue">Result: 124</Tag>
25
+ </div>
26
+ </LandingSectionCard>
27
+
28
+ <LandingSectionCard title="Saved Reports" tone="gold" headerIcon={<Save />}>
29
+ <LandingActionList>
30
+ <LandingActionItem icon={<Time />} label="Run a report" onClick={() => onNavigate('/run')} />
31
+ <LandingActionItem icon={<Time />} label="View recent runs" onClick={() => onNavigate('/runs')} />
32
+ <div className={styles.rbActionsRight}>
33
+ <Button size="sm" kind="primary" renderIcon={Play} onClick={() => onNavigate('/run')}>
34
+ Run a report
35
+ </Button>
36
+ </div>
37
+ </LandingActionList>
38
+ </LandingSectionCard>
39
+
40
+ <div />
41
+ </div>
42
+ );
43
+ };
44
+
45
+ export default LandingFooterGrid;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import styles from './report-builder-landing-page.scss';
3
+
4
+ type LandingHeroProps = {
5
+ title: string;
6
+ subtitle: string;
7
+ };
8
+
9
+ const LandingHero: React.FC<LandingHeroProps> = ({ title, subtitle }) => {
10
+ return (
11
+ <div className={styles.rbLandingHero}>
12
+ <h2 className={styles.rbLandingTitle}>{title}</h2>
13
+ <div className={styles.rbLandingSubtitle}>{subtitle}</div>
14
+ </div>
15
+ );
16
+ };
17
+
18
+ export default LandingHero;
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ import styles from './report-builder-landing-page.scss';
3
+
4
+ export type CardTone = 'blue' | 'green' | 'gold';
5
+
6
+ const cx = (...parts: Array<string | undefined | false>) => parts.filter(Boolean).join(' ');
7
+
8
+ type LandingSectionCardProps = {
9
+ title: string;
10
+ tone: CardTone;
11
+ headerIcon: React.ReactNode;
12
+ children: React.ReactNode;
13
+ };
14
+
15
+ const toneClass: Record<CardTone, string> = {
16
+ blue: styles.rbCardHeaderBlue,
17
+ green: styles.rbCardHeaderGreen,
18
+ gold: styles.rbCardHeaderGold,
19
+ };
20
+
21
+ const LandingSectionCard: React.FC<LandingSectionCardProps> = ({ title, tone, headerIcon, children }) => {
22
+ return (
23
+ <div className={styles.rbCard}>
24
+ <div className={cx(styles.rbCardHeader, toneClass[tone])}>
25
+ {headerIcon}
26
+ <span>{title}</span>
27
+ </div>
28
+ <div className={styles.rbCardBody}>{children}</div>
29
+ </div>
30
+ );
31
+ };
32
+
33
+ export default LandingSectionCard;
@@ -0,0 +1,103 @@
1
+ import React from 'react';
2
+ import { Button, Tile } from '@carbon/react';
3
+ import { Add, ChartColumn, Play, Report } from '@carbon/icons-react';
4
+ import { useTranslation } from 'react-i18next';
5
+ import { useNavigate } from 'react-router-dom';
6
+
7
+ import styles from './report-builder-landing-page.scss';
8
+ import Header from '../shared/header/header.component';
9
+
10
+ const ReportBuilderLandingPage: React.FC = () => {
11
+ const { t } = useTranslation();
12
+ const navigate = useNavigate();
13
+
14
+ return (
15
+ <div className={styles.page}>
16
+ {/* HERO (matches screenshot layout) */}
17
+ <Header
18
+ title={t('welcomeReporting', 'Welcome Report Builder')}
19
+ subtitle={t('welcomeReportingHint', 'Manage health data reports, define indicators, and run reports with ease.')}
20
+ />
21
+
22
+ {/* CARDS */}
23
+ <div className={styles.cardsGrid}>
24
+ <Tile className={styles.card}>
25
+ <div className={styles.cardIllustration} aria-hidden>
26
+ <div className={styles.illCircle}>
27
+ <Report size={56} />
28
+ </div>
29
+ </div>
30
+
31
+ <h3 className={styles.cardTitle}>{t('createReports', 'Create Reports')}</h3>
32
+ <p className={styles.cardBody}>
33
+ {t('createReportsHint', 'Define and configure health data reports tailored to your needs.')}
34
+ </p>
35
+
36
+ <div className={styles.cardActions}>
37
+ <Button
38
+ kind="primary"
39
+ size="lg"
40
+ renderIcon={Add}
41
+ className={styles.cardButton}
42
+ onClick={() => navigate('/new')}
43
+ >
44
+ {t('getStarted', 'Get started')}
45
+ </Button>
46
+ </div>
47
+ </Tile>
48
+
49
+ <Tile className={styles.card}>
50
+ <div className={styles.cardIllustration} aria-hidden>
51
+ <div className={styles.illCircle}>
52
+ <ChartColumn size={56} />
53
+ </div>
54
+ </div>
55
+
56
+ <h3 className={styles.cardTitle}>{t('manageIndicators', 'Manage Indicators')}</h3>
57
+ <p className={styles.cardBody}>
58
+ {t('manageIndicatorsHint', 'Create, edit, and organize indicators to measure key health metrics.')}
59
+ </p>
60
+
61
+ <div className={styles.cardActions}>
62
+ <Button
63
+ kind="primary"
64
+ size="lg"
65
+ renderIcon={ChartColumn}
66
+ className={styles.cardButton}
67
+ onClick={() => navigate('/indicators')}
68
+ >
69
+ {t('viewIndicators', 'View indicators')}
70
+ </Button>
71
+ </div>
72
+ </Tile>
73
+
74
+ <Tile className={styles.card}>
75
+ <div className={styles.cardIllustration} aria-hidden>
76
+ <div className={styles.illCircle}>
77
+ <Play size={56} />
78
+ </div>
79
+ </div>
80
+
81
+ <h3 className={styles.cardTitle}>{t('runReports', 'Run Reports')}</h3>
82
+ <p className={styles.cardBody}>
83
+ {t('runReportsHint', 'Choose a report and run it for specific time periods and locations.')}
84
+ </p>
85
+
86
+ <div className={styles.cardActions}>
87
+ <Button
88
+ kind="primary"
89
+ size="lg"
90
+ renderIcon={Play}
91
+ className={styles.cardButton}
92
+ onClick={() => navigate('/run')}
93
+ >
94
+ {t('runNow', 'Run now')}
95
+ </Button>
96
+ </div>
97
+ </Tile>
98
+ </div>
99
+ </div>
100
+ );
101
+ };
102
+
103
+ export default ReportBuilderLandingPage;
@@ -0,0 +1,131 @@
1
+ .page {
2
+ width: 100%;
3
+ margin: 0 auto;
4
+ padding: 1.5rem 0 2rem;
5
+ }
6
+
7
+ /* HERO */
8
+ .hero {
9
+ display: grid;
10
+ grid-template-columns: 380px 1fr;
11
+ gap: 1.5rem;
12
+ align-items: center;
13
+
14
+ padding: 1.25rem 1.5rem;
15
+ border-radius: 12px;
16
+ border: 1px solid var(--cds-border-subtle, #e0e0e0);
17
+ background: linear-gradient(90deg, #eef4ff 0%, #ffffff 55%, #ffffff 100%);
18
+ }
19
+
20
+ .heroArt {
21
+ height: 150px;
22
+ border-radius: 10px;
23
+ background: radial-gradient(circle at 30% 30%, #dbe7ff 0%, #eef4ff 55%, #ffffff 100%);
24
+ border: 1px solid rgba(0, 0, 0, 0.04);
25
+ display: grid;
26
+ place-items: center;
27
+ }
28
+
29
+ .heroArtInner {
30
+ width: 112px;
31
+ height: 112px;
32
+ border-radius: 14px;
33
+ display: grid;
34
+ place-items: center;
35
+ background: rgba(255, 255, 255, 0.75);
36
+ border: 1px solid rgba(0, 0, 0, 0.04);
37
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
38
+ }
39
+
40
+ .heroTitle {
41
+ margin: 0;
42
+ font-size: 1.75rem;
43
+ font-weight: 600;
44
+ letter-spacing: 0.1px;
45
+ }
46
+
47
+ .heroSubtitle {
48
+ margin: 0.5rem 0 0;
49
+ font-size: 1rem;
50
+ line-height: 1.45;
51
+ opacity: 0.85;
52
+ max-width: 54ch;
53
+ }
54
+
55
+ /* CARDS GRID */
56
+ .cardsGrid {
57
+ margin-top: 1.5rem;
58
+ display: grid;
59
+ grid-template-columns: repeat(3, 1fr);
60
+ gap: 1.25rem;
61
+ }
62
+
63
+ .card {
64
+ border-radius: 12px;
65
+ border: 1px solid var(--cds-border-subtle, #e0e0e0);
66
+ box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
67
+ background: #fff;
68
+
69
+ padding: 1.25rem 1.25rem 1.25rem;
70
+ min-height: 340px;
71
+
72
+ display: flex;
73
+ flex-direction: column;
74
+ }
75
+
76
+ .cardIllustration {
77
+ display: grid;
78
+ place-items: center;
79
+ height: 140px;
80
+ border-radius: 12px;
81
+ background: linear-gradient(180deg, #f2f6ff 0%, #ffffff 100%);
82
+ border: 1px solid rgba(0, 0, 0, 0.04);
83
+ }
84
+
85
+ .illCircle {
86
+ width: 92px;
87
+ height: 92px;
88
+ border-radius: 999px;
89
+ display: grid;
90
+ place-items: center;
91
+ background: rgba(255, 255, 255, 0.9);
92
+ border: 1px solid rgba(0, 0, 0, 0.05);
93
+ box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
94
+ }
95
+
96
+ .cardTitle {
97
+ margin: 1rem 0 0;
98
+ font-size: 1.4rem;
99
+ font-weight: 600;
100
+ }
101
+
102
+ .cardBody {
103
+ margin: 0.65rem 0 0;
104
+ line-height: 1.5;
105
+ opacity: 0.85;
106
+ max-width: 46ch;
107
+ }
108
+
109
+ .cardActions {
110
+ margin-top: auto;
111
+ padding-top: 1.25rem;
112
+ }
113
+
114
+ .cardButton {
115
+ width: 100%;
116
+ }
117
+
118
+ /* RESPONSIVE */
119
+ @media (max-width: 1050px) {
120
+ .hero {
121
+ grid-template-columns: 1fr;
122
+ }
123
+
124
+ .heroArt {
125
+ height: 180px;
126
+ }
127
+
128
+ .cardsGrid {
129
+ grid-template-columns: 1fr;
130
+ }
131
+ }