@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.
- package/.eslintignore +5 -0
- package/.eslintrc.js +19 -0
- package/.github/workflows/main.yml +162 -0
- package/.prettierrc +8 -0
- package/LICENSE +401 -0
- package/README.md +317 -0
- package/dist/0081d5d3d536cb23.js +1 -0
- package/dist/02acc4469a2fe2e4.woff2 +0 -0
- package/dist/081587ca0db8e63f.woff2 +0 -0
- package/dist/08cf53c4e5e71cf1.woff2 +0 -0
- package/dist/090b2bc014d24ea4.woff2 +0 -0
- package/dist/09de5db63ef7b579.js +1 -0
- package/dist/0ae92bcea615e948.woff2 +0 -0
- package/dist/0be8520d8945b3b7.woff2 +0 -0
- package/dist/0e7dd073cd8bb0ad.woff2 +0 -0
- package/dist/0edb77cd19e43550.js +1 -0
- package/dist/14869ac5d1830304.woff2 +0 -0
- package/dist/14aaceff85fc8b28.woff2 +0 -0
- package/dist/14c3abea79fc1389.js +1 -0
- package/dist/155a4ac079785bfd.js +1 -0
- package/dist/155a4ac079785bfd.js.map +1 -0
- package/dist/16f443eed01776ca.woff2 +0 -0
- package/dist/183bae0e53a22182.woff2 +0 -0
- package/dist/19c8f94ccd6289f5.woff2 +0 -0
- package/dist/1ae86565eab7451c.woff2 +0 -0
- package/dist/1c7bf8797e0a9be6.woff2 +0 -0
- package/dist/1f266d3619b30f16.woff2 +0 -0
- package/dist/1f8c5a4087a524fd.woff2 +0 -0
- package/dist/20ba2b23c5c0cd0b.woff2 +0 -0
- package/dist/22a32bd51591301b.js +1 -0
- package/dist/273c72d90e432a3d.js +1 -0
- package/dist/295dd01a1fbfee6d.woff2 +0 -0
- package/dist/29cbe6827c3f03ef.js +1 -0
- package/dist/2f686985e26e7107.woff2 +0 -0
- package/dist/315eff729e4ccbd9.woff2 +0 -0
- package/dist/368d16e3259bf207.woff2 +0 -0
- package/dist/36c49aa341a7079a.woff2 +0 -0
- package/dist/36e1e0430475edee.woff2 +0 -0
- package/dist/374c3ee36d9e040a.js +1 -0
- package/dist/377971e519bf3f4a.js +2 -0
- package/dist/377971e519bf3f4a.js.LICENSE.txt +39 -0
- package/dist/377971e519bf3f4a.js.map +1 -0
- package/dist/3b0ea8395009dcf3.js +2 -0
- package/dist/3b0ea8395009dcf3.js.LICENSE.txt +9 -0
- package/dist/3b0ea8395009dcf3.js.map +1 -0
- package/dist/3bc19662b8630ee9.woff2 +0 -0
- package/dist/3f645f473b3f8fba.woff2 +0 -0
- package/dist/41320d8930d23b36.js +1 -0
- package/dist/4218ac9901b9d36d.woff2 +0 -0
- package/dist/4659f3ca46d928b5.js +1 -0
- package/dist/4659f3ca46d928b5.js.map +1 -0
- package/dist/4680ba68412e4da9.woff2 +0 -0
- package/dist/48e37bd7ebf85a1f.woff2 +0 -0
- package/dist/4aabceefe5a2494a.js +1 -0
- package/dist/4c188cbaefba58cd.js +1 -0
- package/dist/4e11b8a7c445255f.woff2 +0 -0
- package/dist/537ddd61c5c1fce2.woff2 +0 -0
- package/dist/54f5eee3a7989556.js +1 -0
- package/dist/55c9107b50dd747c.js +1 -0
- package/dist/56c4118c0907f151.woff2 +0 -0
- package/dist/5938bc2ae7ec60c0.woff2 +0 -0
- package/dist/5c6586155f0d278a.woff2 +0 -0
- package/dist/5e50c92017029ca3.js +1 -0
- package/dist/5e50c92017029ca3.js.map +1 -0
- package/dist/600aca7295d8bcb7.js +2 -0
- package/dist/600aca7295d8bcb7.js.LICENSE.txt +9 -0
- package/dist/600aca7295d8bcb7.js.map +1 -0
- package/dist/60ec587649ba812a.woff2 +0 -0
- package/dist/64cf08a5ac3266d8.js +1 -0
- package/dist/652f476a8a1603d3.js +2 -0
- package/dist/652f476a8a1603d3.js.LICENSE.txt +9 -0
- package/dist/652f476a8a1603d3.js.map +1 -0
- package/dist/65e6511e035870e1.woff2 +0 -0
- package/dist/661425f6798cd16a.woff2 +0 -0
- package/dist/66b864fe213caf46.woff2 +0 -0
- package/dist/680eb791e6266590.js +2 -0
- package/dist/680eb791e6266590.js.LICENSE.txt +19 -0
- package/dist/680eb791e6266590.js.map +1 -0
- package/dist/69d087d970ee9455.woff2 +0 -0
- package/dist/69e3aa4276b4cb4b.js +1 -0
- package/dist/6a88f03fc4e7c3da.js +1 -0
- package/dist/6c6c45e66ff54281.woff2 +0 -0
- package/dist/6d9009857c6df878.js +1 -0
- package/dist/6ebe7cea59ed2853.js +1 -0
- package/dist/6f3181849e740935.js +1 -0
- package/dist/6f3181849e740935.js.map +1 -0
- package/dist/7073a7323e92bd11.woff2 +0 -0
- package/dist/70ac433ae2a89a89.js +1 -0
- package/dist/70ee4ee625ac0ec1.js +1 -0
- package/dist/718c6cc31274ab1a.woff2 +0 -0
- package/dist/727696c3934d0966.js +1 -0
- package/dist/727763c0f0df59dc.js +1 -0
- package/dist/727763c0f0df59dc.js.map +1 -0
- package/dist/72cdbedfe04be9f9.woff2 +0 -0
- package/dist/7509c9f56fe9e532.woff2 +0 -0
- package/dist/75dc5c5b04adc8bf.woff2 +0 -0
- package/dist/77b48bc05299ecca.woff2 +0 -0
- package/dist/7a0a0215c248c73d.woff2 +0 -0
- package/dist/7c0d0c5180de8729.js +1 -0
- package/dist/7f00bebb24e40167.woff2 +0 -0
- package/dist/802c6176541eeed7.woff2 +0 -0
- package/dist/8080081b3379c637.woff2 +0 -0
- package/dist/81cfdaeaa0bbca1f.js +1 -0
- package/dist/8605507b7a8487c4.woff2 +0 -0
- package/dist/893a160d06428365.js +1 -0
- package/dist/893a160d06428365.js.map +1 -0
- package/dist/8a83d654702f6534.woff2 +0 -0
- package/dist/8fe71173a13fe571.woff2 +0 -0
- package/dist/94aa912dcac90114.js +1 -0
- package/dist/9624cec0f9bdd81e.woff2 +0 -0
- package/dist/98a3af55a1698171.woff2 +0 -0
- package/dist/99823aaebba56f46.js +1 -0
- package/dist/9ba85996af74c5ce.woff2 +0 -0
- package/dist/9ddb22faa35006e7.woff2 +0 -0
- package/dist/a167fb2799dd741b.woff2 +0 -0
- package/dist/a2045a5cc4fdf94f.woff2 +0 -0
- package/dist/a246c73905a31c93.woff2 +0 -0
- package/dist/a325099b0a580ce2.js +2 -0
- package/dist/a325099b0a580ce2.js.LICENSE.txt +14 -0
- package/dist/a325099b0a580ce2.js.map +1 -0
- package/dist/a401aa7939cb6e6f.woff2 +0 -0
- package/dist/a40fef67997d3b2c.js +1 -0
- package/dist/a62897b000a24b86.js +1 -0
- package/dist/a6ed036f17a1ea29.woff2 +0 -0
- package/dist/a77bac4877483a0a.js +1 -0
- package/dist/a9f25ca430709a1a.woff2 +0 -0
- package/dist/aa0dfbdd569b1c24.js +2 -0
- package/dist/aa0dfbdd569b1c24.js.LICENSE.txt +5 -0
- package/dist/aa0dfbdd569b1c24.js.map +1 -0
- package/dist/ab0f637d6cff12e4.js +1 -0
- package/dist/afa9121a49e95351.woff2 +0 -0
- package/dist/afcda12d9f805543.woff2 +0 -0
- package/dist/b09ded85a7da77f1.woff2 +0 -0
- package/dist/b10dbe5318a91a12.js +1 -0
- package/dist/b2f4e9d1e821b71c.woff2 +0 -0
- package/dist/b4a074bf828bb757.woff2 +0 -0
- package/dist/b7f447da43f6e596.woff2 +0 -0
- package/dist/bcca84a524572d10.woff2 +0 -0
- package/dist/be093e052a6d50eb.js +1 -0
- package/dist/be4d1f97b11d087c.woff2 +0 -0
- package/dist/bec14780d81164de.woff2 +0 -0
- package/dist/c31657fe213c1b5e.js +1 -0
- package/dist/c49ef726d3f0420b.js +1 -0
- package/dist/c553f7e0199c5084.woff2 +0 -0
- package/dist/c94ac2fdc1ff1418.js +1 -0
- package/dist/c9d9ce9f465df4fe.woff2 +0 -0
- package/dist/cbbb57b397433964.js +2 -0
- package/dist/cbbb57b397433964.js.LICENSE.txt +14 -0
- package/dist/cbbb57b397433964.js.map +1 -0
- package/dist/d188f7f036ac5779.woff2 +0 -0
- package/dist/d1aa59bd9c702dc4.js +2 -0
- package/dist/d1aa59bd9c702dc4.js.LICENSE.txt +32 -0
- package/dist/d1aa59bd9c702dc4.js.map +1 -0
- package/dist/d265d81c58525ae4.woff2 +0 -0
- package/dist/d5942cd81663e136.woff2 +0 -0
- package/dist/d66b8ff73d95cabb.woff2 +0 -0
- package/dist/d84bac6d07672dd2.js +1 -0
- package/dist/d84bac6d07672dd2.js.map +1 -0
- package/dist/d88899ef0fd16719.woff2 +0 -0
- package/dist/d92b5ecf31fc187b.js +1 -0
- package/dist/d9a5d958e69e058d.woff2 +0 -0
- package/dist/dac90d495be353a0.woff2 +0 -0
- package/dist/db0550511978dc47.js +1 -0
- package/dist/dd8ce598529c3fab.woff2 +0 -0
- package/dist/de013f1be25103fa.woff2 +0 -0
- package/dist/df222fceeffca849.woff2 +0 -0
- package/dist/df22bda08ec7964c.js +1 -0
- package/dist/e05b7f902b02a251.js +1 -0
- package/dist/e05b7f902b02a251.js.map +1 -0
- package/dist/e465f1481f0d2e1c.js +1 -0
- package/dist/e62b00b9199c1ac9.woff2 +0 -0
- package/dist/e696cef1407b2610.woff2 +0 -0
- package/dist/eb42de5422d9af00.js +1 -0
- package/dist/eed48feba743e21c.woff2 +0 -0
- package/dist/f135ef54213f8975.js +1 -0
- package/dist/f260e50923d4283b.js +1 -0
- package/dist/f543c88feb236d11.woff2 +0 -0
- package/dist/f591b0079faa93fe.woff2 +0 -0
- package/dist/f6ed27923769ad1d.woff2 +0 -0
- package/dist/f8d066e92ea157c6.js +1 -0
- package/dist/fae042506530c1e6.js +1 -0
- package/dist/favicon.ico +0 -0
- package/dist/fbebeb4336e67012.woff2 +0 -0
- package/dist/fd574df77d31a5eb.js +1 -0
- package/dist/icon_128x128.3dde25c6e69b1c010a6a5d6b27b3f436.png +0 -0
- package/dist/icon_144x144.e263e02b838d229b02ff9133e6e0f2ba.png +0 -0
- package/dist/icon_192x192.d3d318638bbe8a10a3c687d3d302d01a.png +0 -0
- package/dist/icon_256x256.c729f6e7e914b58fcea5ce91d7aa9bad.png +0 -0
- package/dist/icon_384x384.c8923df6b6bd08eba5c79b78d7fcecc0.png +0 -0
- package/dist/icon_512x512.7163efb26df832de513bc58d925ea22e.png +0 -0
- package/dist/icon_96x96.682ee334ae19d49894217370b8596f61.png +0 -0
- package/dist/index.html +9 -0
- package/dist/logo-512.png +0 -0
- package/dist/logo.svg +30 -0
- package/dist/manifest.266df36f2271d27ae9bcaa196a2976ae.json +47 -0
- package/dist/openmrs.39723c21cec4b1fc.css +1 -0
- package/dist/openmrs.39723c21cec4b1fc.css.map +1 -0
- package/dist/openmrs.44bac4c8520ee42f.css +2 -0
- package/dist/openmrs.44bac4c8520ee42f.css.map +1 -0
- package/dist/openmrs.936e8cf6a4b1599d.css +2 -0
- package/dist/openmrs.936e8cf6a4b1599d.css.map +1 -0
- package/dist/openmrs.c3adea28ef850516.js +1 -0
- package/dist/openmrs.c3adea28ef850516.js.map +1 -0
- package/dist/openmrs.e4daba1e3b840e70.css +25 -0
- package/dist/openmrs.e4daba1e3b840e70.css.map +1 -0
- package/dist/service-worker.js +1 -0
- package/dist/service-worker.js.map +1 -0
- package/dist-build-23687264126/0081d5d3d536cb23.js +1 -0
- package/dist-build-23687264126/02acc4469a2fe2e4.woff2 +0 -0
- package/dist-build-23687264126/081587ca0db8e63f.woff2 +0 -0
- package/dist-build-23687264126/08cf53c4e5e71cf1.woff2 +0 -0
- package/dist-build-23687264126/090b2bc014d24ea4.woff2 +0 -0
- package/dist-build-23687264126/09de5db63ef7b579.js +1 -0
- package/dist-build-23687264126/0ae92bcea615e948.woff2 +0 -0
- package/dist-build-23687264126/0be8520d8945b3b7.woff2 +0 -0
- package/dist-build-23687264126/0e7dd073cd8bb0ad.woff2 +0 -0
- package/dist-build-23687264126/0edb77cd19e43550.js +1 -0
- package/dist-build-23687264126/14869ac5d1830304.woff2 +0 -0
- package/dist-build-23687264126/14aaceff85fc8b28.woff2 +0 -0
- package/dist-build-23687264126/14c3abea79fc1389.js +1 -0
- package/dist-build-23687264126/155a4ac079785bfd.js +1 -0
- package/dist-build-23687264126/155a4ac079785bfd.js.map +1 -0
- package/dist-build-23687264126/16f443eed01776ca.woff2 +0 -0
- package/dist-build-23687264126/183bae0e53a22182.woff2 +0 -0
- package/dist-build-23687264126/19c8f94ccd6289f5.woff2 +0 -0
- package/dist-build-23687264126/1ae86565eab7451c.woff2 +0 -0
- package/dist-build-23687264126/1c7bf8797e0a9be6.woff2 +0 -0
- package/dist-build-23687264126/1f266d3619b30f16.woff2 +0 -0
- package/dist-build-23687264126/1f8c5a4087a524fd.woff2 +0 -0
- package/dist-build-23687264126/20ba2b23c5c0cd0b.woff2 +0 -0
- package/dist-build-23687264126/22a32bd51591301b.js +1 -0
- package/dist-build-23687264126/273c72d90e432a3d.js +1 -0
- package/dist-build-23687264126/295dd01a1fbfee6d.woff2 +0 -0
- package/dist-build-23687264126/29cbe6827c3f03ef.js +1 -0
- package/dist-build-23687264126/2f686985e26e7107.woff2 +0 -0
- package/dist-build-23687264126/315eff729e4ccbd9.woff2 +0 -0
- package/dist-build-23687264126/368d16e3259bf207.woff2 +0 -0
- package/dist-build-23687264126/36c49aa341a7079a.woff2 +0 -0
- package/dist-build-23687264126/36e1e0430475edee.woff2 +0 -0
- package/dist-build-23687264126/374c3ee36d9e040a.js +1 -0
- package/dist-build-23687264126/377971e519bf3f4a.js +2 -0
- package/dist-build-23687264126/377971e519bf3f4a.js.LICENSE.txt +39 -0
- package/dist-build-23687264126/377971e519bf3f4a.js.map +1 -0
- package/dist-build-23687264126/3b0ea8395009dcf3.js +2 -0
- package/dist-build-23687264126/3b0ea8395009dcf3.js.LICENSE.txt +9 -0
- package/dist-build-23687264126/3b0ea8395009dcf3.js.map +1 -0
- package/dist-build-23687264126/3bc19662b8630ee9.woff2 +0 -0
- package/dist-build-23687264126/3f645f473b3f8fba.woff2 +0 -0
- package/dist-build-23687264126/41320d8930d23b36.js +1 -0
- package/dist-build-23687264126/4218ac9901b9d36d.woff2 +0 -0
- package/dist-build-23687264126/4659f3ca46d928b5.js +1 -0
- package/dist-build-23687264126/4659f3ca46d928b5.js.map +1 -0
- package/dist-build-23687264126/4680ba68412e4da9.woff2 +0 -0
- package/dist-build-23687264126/48e37bd7ebf85a1f.woff2 +0 -0
- package/dist-build-23687264126/4aabceefe5a2494a.js +1 -0
- package/dist-build-23687264126/4c188cbaefba58cd.js +1 -0
- package/dist-build-23687264126/4e11b8a7c445255f.woff2 +0 -0
- package/dist-build-23687264126/537ddd61c5c1fce2.woff2 +0 -0
- package/dist-build-23687264126/54f5eee3a7989556.js +1 -0
- package/dist-build-23687264126/55c9107b50dd747c.js +1 -0
- package/dist-build-23687264126/56c4118c0907f151.woff2 +0 -0
- package/dist-build-23687264126/5938bc2ae7ec60c0.woff2 +0 -0
- package/dist-build-23687264126/5c6586155f0d278a.woff2 +0 -0
- package/dist-build-23687264126/5e50c92017029ca3.js +1 -0
- package/dist-build-23687264126/5e50c92017029ca3.js.map +1 -0
- package/dist-build-23687264126/600aca7295d8bcb7.js +2 -0
- package/dist-build-23687264126/600aca7295d8bcb7.js.LICENSE.txt +9 -0
- package/dist-build-23687264126/600aca7295d8bcb7.js.map +1 -0
- package/dist-build-23687264126/60ec587649ba812a.woff2 +0 -0
- package/dist-build-23687264126/64cf08a5ac3266d8.js +1 -0
- package/dist-build-23687264126/652f476a8a1603d3.js +2 -0
- package/dist-build-23687264126/652f476a8a1603d3.js.LICENSE.txt +9 -0
- package/dist-build-23687264126/652f476a8a1603d3.js.map +1 -0
- package/dist-build-23687264126/65e6511e035870e1.woff2 +0 -0
- package/dist-build-23687264126/661425f6798cd16a.woff2 +0 -0
- package/dist-build-23687264126/66b864fe213caf46.woff2 +0 -0
- package/dist-build-23687264126/680eb791e6266590.js +2 -0
- package/dist-build-23687264126/680eb791e6266590.js.LICENSE.txt +19 -0
- package/dist-build-23687264126/680eb791e6266590.js.map +1 -0
- package/dist-build-23687264126/69d087d970ee9455.woff2 +0 -0
- package/dist-build-23687264126/69e3aa4276b4cb4b.js +1 -0
- package/dist-build-23687264126/6a88f03fc4e7c3da.js +1 -0
- package/dist-build-23687264126/6c6c45e66ff54281.woff2 +0 -0
- package/dist-build-23687264126/6d9009857c6df878.js +1 -0
- package/dist-build-23687264126/6ebe7cea59ed2853.js +1 -0
- package/dist-build-23687264126/6f3181849e740935.js +1 -0
- package/dist-build-23687264126/6f3181849e740935.js.map +1 -0
- package/dist-build-23687264126/7073a7323e92bd11.woff2 +0 -0
- package/dist-build-23687264126/70ac433ae2a89a89.js +1 -0
- package/dist-build-23687264126/70ee4ee625ac0ec1.js +1 -0
- package/dist-build-23687264126/718c6cc31274ab1a.woff2 +0 -0
- package/dist-build-23687264126/727696c3934d0966.js +1 -0
- package/dist-build-23687264126/727763c0f0df59dc.js +1 -0
- package/dist-build-23687264126/727763c0f0df59dc.js.map +1 -0
- package/dist-build-23687264126/72cdbedfe04be9f9.woff2 +0 -0
- package/dist-build-23687264126/7509c9f56fe9e532.woff2 +0 -0
- package/dist-build-23687264126/75dc5c5b04adc8bf.woff2 +0 -0
- package/dist-build-23687264126/77b48bc05299ecca.woff2 +0 -0
- package/dist-build-23687264126/7a0a0215c248c73d.woff2 +0 -0
- package/dist-build-23687264126/7c0d0c5180de8729.js +1 -0
- package/dist-build-23687264126/7f00bebb24e40167.woff2 +0 -0
- package/dist-build-23687264126/802c6176541eeed7.woff2 +0 -0
- package/dist-build-23687264126/8080081b3379c637.woff2 +0 -0
- package/dist-build-23687264126/81cfdaeaa0bbca1f.js +1 -0
- package/dist-build-23687264126/8605507b7a8487c4.woff2 +0 -0
- package/dist-build-23687264126/893a160d06428365.js +1 -0
- package/dist-build-23687264126/893a160d06428365.js.map +1 -0
- package/dist-build-23687264126/8a83d654702f6534.woff2 +0 -0
- package/dist-build-23687264126/8fe71173a13fe571.woff2 +0 -0
- package/dist-build-23687264126/94aa912dcac90114.js +1 -0
- package/dist-build-23687264126/9624cec0f9bdd81e.woff2 +0 -0
- package/dist-build-23687264126/98a3af55a1698171.woff2 +0 -0
- package/dist-build-23687264126/99823aaebba56f46.js +1 -0
- package/dist-build-23687264126/9ba85996af74c5ce.woff2 +0 -0
- package/dist-build-23687264126/9ddb22faa35006e7.woff2 +0 -0
- package/dist-build-23687264126/a167fb2799dd741b.woff2 +0 -0
- package/dist-build-23687264126/a2045a5cc4fdf94f.woff2 +0 -0
- package/dist-build-23687264126/a246c73905a31c93.woff2 +0 -0
- package/dist-build-23687264126/a325099b0a580ce2.js +2 -0
- package/dist-build-23687264126/a325099b0a580ce2.js.LICENSE.txt +14 -0
- package/dist-build-23687264126/a325099b0a580ce2.js.map +1 -0
- package/dist-build-23687264126/a401aa7939cb6e6f.woff2 +0 -0
- package/dist-build-23687264126/a40fef67997d3b2c.js +1 -0
- package/dist-build-23687264126/a62897b000a24b86.js +1 -0
- package/dist-build-23687264126/a6ed036f17a1ea29.woff2 +0 -0
- package/dist-build-23687264126/a77bac4877483a0a.js +1 -0
- package/dist-build-23687264126/a9f25ca430709a1a.woff2 +0 -0
- package/dist-build-23687264126/aa0dfbdd569b1c24.js +2 -0
- package/dist-build-23687264126/aa0dfbdd569b1c24.js.LICENSE.txt +5 -0
- package/dist-build-23687264126/aa0dfbdd569b1c24.js.map +1 -0
- package/dist-build-23687264126/ab0f637d6cff12e4.js +1 -0
- package/dist-build-23687264126/afa9121a49e95351.woff2 +0 -0
- package/dist-build-23687264126/afcda12d9f805543.woff2 +0 -0
- package/dist-build-23687264126/b09ded85a7da77f1.woff2 +0 -0
- package/dist-build-23687264126/b10dbe5318a91a12.js +1 -0
- package/dist-build-23687264126/b2f4e9d1e821b71c.woff2 +0 -0
- package/dist-build-23687264126/b4a074bf828bb757.woff2 +0 -0
- package/dist-build-23687264126/b7f447da43f6e596.woff2 +0 -0
- package/dist-build-23687264126/bcca84a524572d10.woff2 +0 -0
- package/dist-build-23687264126/be093e052a6d50eb.js +1 -0
- package/dist-build-23687264126/be4d1f97b11d087c.woff2 +0 -0
- package/dist-build-23687264126/bec14780d81164de.woff2 +0 -0
- package/dist-build-23687264126/c31657fe213c1b5e.js +1 -0
- package/dist-build-23687264126/c49ef726d3f0420b.js +1 -0
- package/dist-build-23687264126/c553f7e0199c5084.woff2 +0 -0
- package/dist-build-23687264126/c94ac2fdc1ff1418.js +1 -0
- package/dist-build-23687264126/c9d9ce9f465df4fe.woff2 +0 -0
- package/dist-build-23687264126/cbbb57b397433964.js +2 -0
- package/dist-build-23687264126/cbbb57b397433964.js.LICENSE.txt +14 -0
- package/dist-build-23687264126/cbbb57b397433964.js.map +1 -0
- package/dist-build-23687264126/d188f7f036ac5779.woff2 +0 -0
- package/dist-build-23687264126/d1aa59bd9c702dc4.js +2 -0
- package/dist-build-23687264126/d1aa59bd9c702dc4.js.LICENSE.txt +32 -0
- package/dist-build-23687264126/d1aa59bd9c702dc4.js.map +1 -0
- package/dist-build-23687264126/d265d81c58525ae4.woff2 +0 -0
- package/dist-build-23687264126/d5942cd81663e136.woff2 +0 -0
- package/dist-build-23687264126/d66b8ff73d95cabb.woff2 +0 -0
- package/dist-build-23687264126/d84bac6d07672dd2.js +1 -0
- package/dist-build-23687264126/d84bac6d07672dd2.js.map +1 -0
- package/dist-build-23687264126/d88899ef0fd16719.woff2 +0 -0
- package/dist-build-23687264126/d92b5ecf31fc187b.js +1 -0
- package/dist-build-23687264126/d9a5d958e69e058d.woff2 +0 -0
- package/dist-build-23687264126/dac90d495be353a0.woff2 +0 -0
- package/dist-build-23687264126/db0550511978dc47.js +1 -0
- package/dist-build-23687264126/dd8ce598529c3fab.woff2 +0 -0
- package/dist-build-23687264126/de013f1be25103fa.woff2 +0 -0
- package/dist-build-23687264126/df222fceeffca849.woff2 +0 -0
- package/dist-build-23687264126/df22bda08ec7964c.js +1 -0
- package/dist-build-23687264126/e05b7f902b02a251.js +1 -0
- package/dist-build-23687264126/e05b7f902b02a251.js.map +1 -0
- package/dist-build-23687264126/e465f1481f0d2e1c.js +1 -0
- package/dist-build-23687264126/e62b00b9199c1ac9.woff2 +0 -0
- package/dist-build-23687264126/e696cef1407b2610.woff2 +0 -0
- package/dist-build-23687264126/eb42de5422d9af00.js +1 -0
- package/dist-build-23687264126/eed48feba743e21c.woff2 +0 -0
- package/dist-build-23687264126/f135ef54213f8975.js +1 -0
- package/dist-build-23687264126/f260e50923d4283b.js +1 -0
- package/dist-build-23687264126/f543c88feb236d11.woff2 +0 -0
- package/dist-build-23687264126/f591b0079faa93fe.woff2 +0 -0
- package/dist-build-23687264126/f6ed27923769ad1d.woff2 +0 -0
- package/dist-build-23687264126/f8d066e92ea157c6.js +1 -0
- package/dist-build-23687264126/fae042506530c1e6.js +1 -0
- package/dist-build-23687264126/favicon.ico +0 -0
- package/dist-build-23687264126/fbebeb4336e67012.woff2 +0 -0
- package/dist-build-23687264126/fd574df77d31a5eb.js +1 -0
- package/dist-build-23687264126/icon_128x128.3dde25c6e69b1c010a6a5d6b27b3f436.png +0 -0
- package/dist-build-23687264126/icon_144x144.e263e02b838d229b02ff9133e6e0f2ba.png +0 -0
- package/dist-build-23687264126/icon_192x192.d3d318638bbe8a10a3c687d3d302d01a.png +0 -0
- package/dist-build-23687264126/icon_256x256.c729f6e7e914b58fcea5ce91d7aa9bad.png +0 -0
- package/dist-build-23687264126/icon_384x384.c8923df6b6bd08eba5c79b78d7fcecc0.png +0 -0
- package/dist-build-23687264126/icon_512x512.7163efb26df832de513bc58d925ea22e.png +0 -0
- package/dist-build-23687264126/icon_96x96.682ee334ae19d49894217370b8596f61.png +0 -0
- package/dist-build-23687264126/index.html +9 -0
- package/dist-build-23687264126/logo-512.png +0 -0
- package/dist-build-23687264126/logo.svg +30 -0
- package/dist-build-23687264126/manifest.266df36f2271d27ae9bcaa196a2976ae.json +47 -0
- package/dist-build-23687264126/openmrs.39723c21cec4b1fc.css +1 -0
- package/dist-build-23687264126/openmrs.39723c21cec4b1fc.css.map +1 -0
- package/dist-build-23687264126/openmrs.44bac4c8520ee42f.css +2 -0
- package/dist-build-23687264126/openmrs.44bac4c8520ee42f.css.map +1 -0
- package/dist-build-23687264126/openmrs.936e8cf6a4b1599d.css +2 -0
- package/dist-build-23687264126/openmrs.936e8cf6a4b1599d.css.map +1 -0
- package/dist-build-23687264126/openmrs.c3adea28ef850516.js +1 -0
- package/dist-build-23687264126/openmrs.c3adea28ef850516.js.map +1 -0
- package/dist-build-23687264126/openmrs.e4daba1e3b840e70.css +25 -0
- package/dist-build-23687264126/openmrs.e4daba1e3b840e70.css.map +1 -0
- package/dist-build-23687264126/service-worker.js +1 -0
- package/dist-build-23687264126/service-worker.js.map +1 -0
- package/e2e/core/env.ts +5 -0
- package/e2e/core/global-setup.ts +34 -0
- package/e2e/core/test.ts +21 -0
- package/e2e/pages/app-shell.page.ts +34 -0
- package/e2e/pages/etl-sources.page.ts +35 -0
- package/e2e/pages/report-sections.page.ts +20 -0
- package/e2e/pages/section-preview.modal.ts +29 -0
- package/e2e/specs/etl-sources.spec.ts +51 -0
- package/e2e/specs/navigation.spec.ts +13 -0
- package/e2e/specs/section-preview-validation.spec.ts +38 -0
- package/e2e/specs/section-preview.spec.ts +94 -0
- package/e2e/tsconfig.json +11 -0
- package/example.env +5 -0
- package/jest.config.js +28 -0
- package/package.json +82 -0
- package/playwright.config.ts +28 -0
- package/src/admin-card-link.extension.module.scss +55 -0
- package/src/admin-card-link.extension.tsx +24 -0
- package/src/components/admin/admin-page.component.tsx +31 -0
- package/src/components/admin/age-categories-page.component.tsx +109 -0
- package/src/components/admin/age-groups-page.component.tsx +146 -0
- package/src/components/admin/etl-sources-page.component.tsx +344 -0
- package/src/components/admin/report-categories-page.component.tsx +256 -0
- package/src/components/admin/report-library-page.component.tsx +540 -0
- package/src/components/ai-support/ai-assist-button.component.tsx +30 -0
- package/src/components/ai-support/ai-assist-modal.component.tsx +81 -0
- package/src/components/ai-support/ai.service.ts +21 -0
- package/src/components/ai-support/ai.types.ts +12 -0
- package/src/components/app-shell/report-builder-shell.component.tsx +120 -0
- package/src/components/app-shell/report-builder-shell.scss +15 -0
- package/src/components/data-themes/data-theme-form.component.tsx +59 -0
- package/src/components/data-themes/data-theme-modal.component.tsx +349 -0
- package/src/components/data-themes/data-themes-page.component.tsx +132 -0
- package/src/components/data-themes/data-themes-table.component.tsx +91 -0
- package/src/components/data-themes/icon-registry.ts +35 -0
- package/src/components/data-themes/sections/data-theme-basics.section.tsx +63 -0
- package/src/components/data-themes/sections/data-theme-condition-columns.section.tsx +397 -0
- package/src/components/data-themes/sections/data-theme-fields-editor.section.tsx +125 -0
- package/src/components/data-themes/sections/data-theme-metadata.section.tsx +245 -0
- package/src/components/data-themes/sections/data-theme-preview.section.tsx +115 -0
- package/src/components/data-themes/sections/data-theme-source.section.tsx +184 -0
- package/src/components/indicators/README.md +24 -0
- package/src/components/indicators/base-indicator-basic-fields.component.tsx +18 -0
- package/src/components/indicators/base-indicator-basics.section.tsx +54 -0
- package/src/components/indicators/base-indicator-countby.section.tsx +25 -0
- package/src/components/indicators/base-indicator-criteria.section.tsx +83 -0
- package/src/components/indicators/base-indicator-details-form.component.tsx +80 -0
- package/src/components/indicators/base-indicator-theme-unit-fields.component.tsx +39 -0
- package/src/components/indicators/create-base-indicator-modal.component.tsx +501 -0
- package/src/components/indicators/create-composite-base-indicator-modal.component.tsx +297 -0
- package/src/components/indicators/create-final-indicator-modal.component.tsx +260 -0
- package/src/components/indicators/diagnosis-filters-form.component.tsx +101 -0
- package/src/components/indicators/disaggregation-panel.component.tsx +93 -0
- package/src/components/indicators/handler/concept-search-multiselect.component.tsx +153 -0
- package/src/components/indicators/handler/question-answer-concept-search.component.tsx +336 -0
- package/src/components/indicators/indicator-status-tag.component.tsx +9 -0
- package/src/components/indicators/indicators-page.component.tsx +481 -0
- package/src/components/indicators/indicators-page.scss +121 -0
- package/src/components/indicators/indicators-table.component.tsx +166 -0
- package/src/components/indicators/preview-table.component.tsx +31 -0
- package/src/components/indicators/sections/composite-indicator-basics.section.tsx +36 -0
- package/src/components/indicators/sections/composite-indicator-picker.section.tsx +161 -0
- package/src/components/indicators/sections/composite-indicator-sql-preview.section.tsx +31 -0
- package/src/components/indicators/sections/final-indicator-basics.section.tsx +46 -0
- package/src/components/indicators/sections/final-indicator-disaggregation.section.tsx +47 -0
- package/src/components/indicators/sections/final-indicator-picker.section.tsx +92 -0
- package/src/components/indicators/sections/final-indicator-preview.section.tsx +20 -0
- package/src/components/indicators/sections/final-indicator-results-preview.section.tsx +65 -0
- package/src/components/indicators/sections/indicator-basics.section.tsx +40 -0
- package/src/components/indicators/sections/indicator-conditions.section.tsx +194 -0
- package/src/components/indicators/sections/indicator-sql-preview.section.tsx +26 -0
- package/src/components/indicators/sections/indicator-theme.section.tsx +48 -0
- package/src/components/indicators/sql-preview.component.tsx +19 -0
- package/src/components/indicators/types/base-indicator-form.types.ts +17 -0
- package/src/components/indicators/types/base-indicator-theme.constants.ts +8 -0
- package/src/components/indicators/types/composite-indicator.types.ts +21 -0
- package/src/components/indicators/types/condition-ui.types.ts +11 -0
- package/src/components/indicators/types/data-theme-config.types.ts +88 -0
- package/src/components/indicators/types/indicator-types.ts +56 -0
- package/src/components/indicators/types/sql-builders.ts +43 -0
- package/src/components/indicators/utils/composite-indicator-sql.utils.ts +206 -0
- package/src/components/indicators/utils/concept-preload.utils.ts +21 -0
- package/src/components/indicators/utils/final-indicator-sql.utils.ts +124 -0
- package/src/components/indicators/utils/indicator-conditions-hydration.utils.ts +254 -0
- package/src/components/indicators/utils/indicator-sql.utils.ts +185 -0
- package/src/components/landing/landing-action-item.component.tsx +50 -0
- package/src/components/landing/landing-action-list.component.tsx +12 -0
- package/src/components/landing/landing-activity-list.component.tsx +47 -0
- package/src/components/landing/landing-footer-grid.component.tsx +45 -0
- package/src/components/landing/landing-hero.component.tsx +18 -0
- package/src/components/landing/landing-section-card.component.tsx +33 -0
- package/src/components/landing/report-builder-landing-page.component.tsx +103 -0
- package/src/components/landing/report-builder-landing-page.scss +131 -0
- package/src/components/report/dashboard/reports-table.component.tsx +145 -0
- package/src/components/report/definition/panels/properties-panel.component.tsx +38 -0
- package/src/components/report/definition/panels/report-structure-panel.component.tsx +61 -0
- package/src/components/report/definition/panels/selection-panel.component.tsx +58 -0
- package/src/components/report/definition/report-definition-editor.component.tsx +99 -0
- package/src/components/report/definition/report-definition.types.ts +66 -0
- package/src/components/report/design/panels/IndicatorPropertiesPanel.scss +33 -0
- package/src/components/report/design/panels/IndicatorPropertiesPanel.tsx +389 -0
- package/src/components/report/design/panels/JsonPreviewPanel.scss +32 -0
- package/src/components/report/design/panels/JsonPreviewPanel.tsx +104 -0
- package/src/components/report/design/panels/mapping-preview-panel.component.tsx +82 -0
- package/src/components/report/design/panels/mapping-preview-panel.scss +55 -0
- package/src/components/report/design/panels/template-structure-panel.component.tsx +296 -0
- package/src/components/report/design/panels/template-structure-panel.scss +81 -0
- package/src/components/report/design/report-design-editor.component.tsx +894 -0
- package/src/components/report/design/report-design.types.ts +43 -0
- package/src/components/report/design/report-design.utils.ts +86 -0
- package/src/components/report/panels/report-detail.component.tsx +71 -0
- package/src/components/report/panels/report-panel-shell.component.tsx +60 -0
- package/src/components/report/report-dashboard.page.component.tsx +75 -0
- package/src/components/report/report-editor.page.component.tsx +466 -0
- package/src/components/report/report.routes.tsx +30 -0
- package/src/components/report-sections/create-report-section-modal.component.tsx +278 -0
- package/src/components/report-sections/hooks/useAgeCategories.ts +25 -0
- package/src/components/report-sections/hooks/useSectionEditorState.ts +306 -0
- package/src/components/report-sections/panels/Dhis2MappingPanel.tsx +157 -0
- package/src/components/report-sections/panels/DisaggregationPanel.tsx +97 -0
- package/src/components/report-sections/panels/IndicatorPickerPanel.tsx +143 -0
- package/src/components/report-sections/panels/SectionBasicsPanel.tsx +27 -0
- package/src/components/report-sections/report-section-preview-modal.component.tsx +418 -0
- package/src/components/report-sections/report-sections-page.component.tsx +313 -0
- package/src/components/report-sections/section-types.ts +55 -0
- package/src/components/report-sections/section-utils.ts +46 -0
- package/src/components/report-sections/sections-page.scss +79 -0
- package/src/components/run-reports/run-reports-page.component.tsx +23 -0
- package/src/components/shared/header/builder-header-actions.component.tsx +38 -0
- package/src/components/shared/header/header.component.tsx +85 -0
- package/src/components/shared/header/header.scss +150 -0
- package/src/components/shared/header/illustration.component.tsx +34 -0
- package/src/components/shared/indicator-properties-panel/IndicatorPropertiesPanel.scss +33 -0
- package/src/components/shared/indicator-properties-panel/IndicatorPropertiesPanel.tsx +389 -0
- package/src/components/shared/json-preview-panel/JsonPreviewPanel.scss +32 -0
- package/src/components/shared/json-preview-panel/JsonPreviewPanel.tsx +104 -0
- package/src/components/shared/mapping-preview-panel/mapping-preview-panel.component.tsx +82 -0
- package/src/components/shared/mapping-preview-panel/mapping-preview-panel.scss +55 -0
- package/src/components/shared/preview/query-results-preview.component.tsx +204 -0
- package/src/components/shared/template-structure-panel/template-structure-panel.component.tsx +296 -0
- package/src/components/shared/template-structure-panel/template-structure-panel.scss +81 -0
- package/src/config-schema.ts +23 -0
- package/src/globals.d.ts +14 -0
- package/src/hooks/theme/useDataThemes.ts +28 -0
- package/src/hooks/theme/useMambaTableMeta.ts +34 -0
- package/src/hooks/theme/useMambaTables.ts +63 -0
- package/src/index.ts +23 -0
- package/src/resources/agegroup/agegroups.api.ts +58 -0
- package/src/resources/concepts/concept-mapper.ts +21 -0
- package/src/resources/concepts/concept-types.ts +31 -0
- package/src/resources/concepts/concepts.resource.ts +44 -0
- package/src/resources/concepts/useConceptSearch.ts +41 -0
- package/src/resources/etl-source/etl-source.api.ts +65 -0
- package/src/resources/indicator/indicators.api.ts +125 -0
- package/src/resources/openmrs-api.ts +24 -0
- package/src/resources/preview/sql-preview.api.ts +54 -0
- package/src/resources/report/reports.api.ts +117 -0
- package/src/resources/report-category/report-category.api.ts +41 -0
- package/src/resources/report-library/report-library.api.ts +63 -0
- package/src/resources/report-section/report-sections.api.ts +73 -0
- package/src/resources/report-section/section-preview.api.ts +21 -0
- package/src/resources/theme/data-theme.api.ts +88 -0
- package/src/resources/theme/mamba-schema.api.ts +31 -0
- package/src/resources/theme/mamba-table-meta.api.ts +45 -0
- package/src/root.component.tsx +20 -0
- package/src/routes/report-builder.routes.tsx +66 -0
- package/src/routes/report-builder.scss +56 -0
- package/src/routes.json +21 -0
- package/src/sample-template.ts +121 -0
- package/src/template-utils.ts +110 -0
- package/src/types/carbon-react-inert.d.ts +13 -0
- package/src/types/condition-operators.ts +49 -0
- package/src/types/theme/data-theme.types.ts +88 -0
- package/src/utils/html-entities.utils.ts +23 -0
- package/tools/setup-tests.ts +1 -0
- package/translations/en.json +4 -0
- package/tsconfig.json +43 -0
- package/webpack.config.js +14 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { request, type FullConfig } from '@playwright/test';
|
|
2
|
+
import fs from 'node:fs/promises';
|
|
3
|
+
import path from 'node:path';
|
|
4
|
+
import { e2eBaseUrl, loginLocation, password, username } from './env';
|
|
5
|
+
|
|
6
|
+
async function globalSetup(config: FullConfig) {
|
|
7
|
+
const storageStatePath = config.projects[0]?.use?.storageState as string | undefined;
|
|
8
|
+
if (!storageStatePath) return;
|
|
9
|
+
|
|
10
|
+
const requestContext = await request.newContext({ baseURL: e2eBaseUrl });
|
|
11
|
+
|
|
12
|
+
const authHeader = `Basic ${Buffer.from(`${username}:${password}`).toString('base64')}`;
|
|
13
|
+
const response = await requestContext.post('/ws/rest/v1/session', {
|
|
14
|
+
headers: {
|
|
15
|
+
Authorization: authHeader,
|
|
16
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
17
|
+
},
|
|
18
|
+
form: {
|
|
19
|
+
sessionLocation: loginLocation,
|
|
20
|
+
},
|
|
21
|
+
failOnStatusCode: false,
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
if (!response.ok()) {
|
|
25
|
+
throw new Error(`E2E authentication failed with status ${response.status()}. Check E2E_* variables and backend availability.`);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const state = await requestContext.storageState();
|
|
29
|
+
await fs.mkdir(path.dirname(storageStatePath), { recursive: true });
|
|
30
|
+
await fs.writeFile(storageStatePath, JSON.stringify(state, null, 2));
|
|
31
|
+
await requestContext.dispose();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export default globalSetup;
|
package/e2e/core/test.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { test as base, expect } from '@playwright/test';
|
|
2
|
+
import { AppShellPage } from '../pages/app-shell.page';
|
|
3
|
+
import { ETLSourcesPage } from '../pages/etl-sources.page';
|
|
4
|
+
import { ReportSectionsPage } from '../pages/report-sections.page';
|
|
5
|
+
import { SectionPreviewModal } from '../pages/section-preview.modal';
|
|
6
|
+
|
|
7
|
+
type Fixtures = {
|
|
8
|
+
appShell: AppShellPage;
|
|
9
|
+
etlSourcesPage: ETLSourcesPage;
|
|
10
|
+
reportSectionsPage: ReportSectionsPage;
|
|
11
|
+
sectionPreviewModal: SectionPreviewModal;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export const test = base.extend<Fixtures>({
|
|
15
|
+
appShell: async ({ page }, use) => use(new AppShellPage(page)),
|
|
16
|
+
etlSourcesPage: async ({ page }, use) => use(new ETLSourcesPage(page)),
|
|
17
|
+
reportSectionsPage: async ({ page }, use) => use(new ReportSectionsPage(page)),
|
|
18
|
+
sectionPreviewModal: async ({ page }, use) => use(new SectionPreviewModal(page)),
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
export { expect };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { Page } from '@playwright/test';
|
|
2
|
+
|
|
3
|
+
export class AppShellPage {
|
|
4
|
+
constructor(private readonly page: Page) {}
|
|
5
|
+
|
|
6
|
+
async goto(path = '/') {
|
|
7
|
+
await this.page.goto(path);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
async openHome() {
|
|
11
|
+
await this.page.getByRole('link', { name: 'Home' }).click();
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
async openReports() {
|
|
15
|
+
await this.page.getByRole('link', { name: 'Reports' }).click();
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
async openSections() {
|
|
19
|
+
await this.page.getByRole('link', { name: 'Sections' }).click();
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
async openIndicators() {
|
|
23
|
+
await this.page.getByRole('link', { name: 'Indicators' }).click();
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
async openAdminMenu() {
|
|
27
|
+
await this.page.getByText('Admin', { exact: true }).click();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
async openAdminTile(name: string) {
|
|
31
|
+
await this.openAdminMenu();
|
|
32
|
+
await this.page.getByText(name, { exact: true }).click();
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { Page } from '@playwright/test';
|
|
2
|
+
import { expect } from '@playwright/test';
|
|
3
|
+
|
|
4
|
+
export class ETLSourcesPage {
|
|
5
|
+
constructor(private readonly page: Page) {}
|
|
6
|
+
|
|
7
|
+
async goto() {
|
|
8
|
+
await this.page.goto('/admin/etl-sources');
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
async expectLoaded() {
|
|
12
|
+
await expect(this.page.getByRole('heading', { name: 'ETL Sources' })).toBeVisible();
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
async clickNew() {
|
|
16
|
+
await this.page.getByTestId('etl-source-new').click();
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
async fillForm(data: { name: string; code?: string; schemaName?: string; sourceType?: string; description?: string; tablePatterns?: string }) {
|
|
20
|
+
await this.page.locator('[data-testid="etl-source-name"] input').fill(data.name);
|
|
21
|
+
if (data.code !== undefined) await this.page.locator('[data-testid="etl-source-code"] input').fill(data.code);
|
|
22
|
+
if (data.schemaName !== undefined) await this.page.locator('[data-testid="etl-source-schema"] input').fill(data.schemaName);
|
|
23
|
+
if (data.sourceType !== undefined) await this.page.locator('[data-testid="etl-source-type"] input').fill(data.sourceType);
|
|
24
|
+
if (data.description !== undefined) await this.page.locator('[data-testid="etl-source-description"] textarea').fill(data.description);
|
|
25
|
+
if (data.tablePatterns !== undefined) await this.page.locator('[data-testid="etl-source-table-patterns"] textarea').fill(data.tablePatterns);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
async save() {
|
|
29
|
+
await this.page.getByRole('button', { name: 'Save' }).click();
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
row(name: string) {
|
|
33
|
+
return this.page.getByRole('row').filter({ hasText: name });
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Page } from '@playwright/test';
|
|
2
|
+
import { expect } from '@playwright/test';
|
|
3
|
+
|
|
4
|
+
export class ReportSectionsPage {
|
|
5
|
+
constructor(private readonly page: Page) {}
|
|
6
|
+
|
|
7
|
+
async goto() {
|
|
8
|
+
await this.page.goto('/sections');
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
async expectLoaded() {
|
|
12
|
+
await expect(this.page.getByRole('heading', { name: 'Sections' })).toBeVisible();
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
async openPreviewFor(sectionName: string) {
|
|
16
|
+
const row = this.page.getByTestId(`section-row-${sectionName.replace(/\s+/g, '-')}`);
|
|
17
|
+
await row.getByLabel('Actions').click();
|
|
18
|
+
await this.page.getByText('Preview', { exact: true }).click();
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Page } from '@playwright/test';
|
|
2
|
+
import { expect } from '@playwright/test';
|
|
3
|
+
|
|
4
|
+
export class SectionPreviewModal {
|
|
5
|
+
constructor(private readonly page: Page) {}
|
|
6
|
+
|
|
7
|
+
async expectOpen() {
|
|
8
|
+
await expect(this.page.getByRole('dialog')).toBeVisible();
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
async fillPreviewRequest(data: { startDate: string; endDate: string; indicatorUuid?: string; maxRows?: number }) {
|
|
12
|
+
await this.page.locator('[data-testid="section-preview-startdate"] input').fill(data.startDate);
|
|
13
|
+
await this.page.locator('[data-testid="section-preview-enddate"] input').fill(data.endDate);
|
|
14
|
+
if (data.indicatorUuid !== undefined) await this.page.locator('[data-testid="section-preview-indicatoruuid"] input').fill(data.indicatorUuid);
|
|
15
|
+
if (data.maxRows !== undefined) await this.page.locator('[data-testid="section-preview-maxrows"] input').fill(String(data.maxRows));
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
async run() {
|
|
19
|
+
await this.page.getByTestId('section-preview-run').click();
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
async expectMatrixVisible() {
|
|
23
|
+
await expect(this.page.getByTestId('section-preview-matrix')).toBeVisible();
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
async expectError(message: string) {
|
|
27
|
+
await expect(this.page.getByText(message)).toBeVisible();
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { test, expect } from '../core/test';
|
|
2
|
+
|
|
3
|
+
test.describe('ETL Sources', () => {
|
|
4
|
+
test('creates an ETL source and sends the expected payload', async ({ page, etlSourcesPage }) => {
|
|
5
|
+
await page.route('**/ws/rest/v1/reportbuilder/etlsource**', async (route) => {
|
|
6
|
+
const request = route.request();
|
|
7
|
+
|
|
8
|
+
if (request.method() === 'GET') {
|
|
9
|
+
await route.fulfill({
|
|
10
|
+
status: 200,
|
|
11
|
+
contentType: 'application/json',
|
|
12
|
+
body: JSON.stringify({ results: [] }),
|
|
13
|
+
});
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
if (request.method() === 'POST') {
|
|
18
|
+
const body = request.postDataJSON();
|
|
19
|
+
expect(body).toMatchObject({
|
|
20
|
+
name: 'E2E Source',
|
|
21
|
+
code: 'E2E_SRC',
|
|
22
|
+
schemaName: 'reporting',
|
|
23
|
+
sourceType: 'mysql',
|
|
24
|
+
active: true,
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
await route.fulfill({
|
|
28
|
+
status: 201,
|
|
29
|
+
contentType: 'application/json',
|
|
30
|
+
body: JSON.stringify({ uuid: 'etl-1', ...body }),
|
|
31
|
+
});
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
await route.continue();
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
await etlSourcesPage.goto();
|
|
39
|
+
await etlSourcesPage.expectLoaded();
|
|
40
|
+
await etlSourcesPage.clickNew();
|
|
41
|
+
await etlSourcesPage.fillForm({
|
|
42
|
+
name: 'E2E Source',
|
|
43
|
+
code: 'E2E_SRC',
|
|
44
|
+
schemaName: 'reporting',
|
|
45
|
+
sourceType: 'mysql',
|
|
46
|
+
description: 'Created from Playwright',
|
|
47
|
+
tablePatterns: 'encounter_%',
|
|
48
|
+
});
|
|
49
|
+
await etlSourcesPage.save();
|
|
50
|
+
});
|
|
51
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { test } from '../core/test';
|
|
2
|
+
|
|
3
|
+
test.describe('report builder navigation', () => {
|
|
4
|
+
test('loads the sections page', async ({ reportSectionsPage }) => {
|
|
5
|
+
await reportSectionsPage.goto();
|
|
6
|
+
await reportSectionsPage.expectLoaded();
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
test('loads the ETL Sources page', async ({ etlSourcesPage }) => {
|
|
10
|
+
await etlSourcesPage.goto();
|
|
11
|
+
await etlSourcesPage.expectLoaded();
|
|
12
|
+
});
|
|
13
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { test } from '../core/test';
|
|
2
|
+
|
|
3
|
+
const sectionUuid = '4278ebf9-47ab-40b8-aeca-df3e4a050c79';
|
|
4
|
+
|
|
5
|
+
test.describe('section preview validation', () => {
|
|
6
|
+
test('shows a validation error when dates are missing', async ({ page, reportSectionsPage, sectionPreviewModal }) => {
|
|
7
|
+
await page.route('**/ws/rest/v1/reportbuilder/section?**', async (route) => {
|
|
8
|
+
await route.fulfill({
|
|
9
|
+
status: 200,
|
|
10
|
+
contentType: 'application/json',
|
|
11
|
+
body: JSON.stringify({ results: [{ uuid: sectionUuid, name: 'Monthly HTS Summary', configJson: '{}' }] }),
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
await page.route(`**/ws/rest/v1/reportbuilder/section/${sectionUuid}**`, async (route) => {
|
|
16
|
+
await route.fulfill({
|
|
17
|
+
status: 200,
|
|
18
|
+
contentType: 'application/json',
|
|
19
|
+
body: JSON.stringify({ uuid: sectionUuid, name: 'Monthly HTS Summary', configJson: '{}' }),
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
await page.route('**/ws/rest/v1/reportbuilder/indicator**', async (route) => {
|
|
24
|
+
await route.fulfill({
|
|
25
|
+
status: 200,
|
|
26
|
+
contentType: 'application/json',
|
|
27
|
+
body: JSON.stringify({ results: [] }),
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
await reportSectionsPage.goto();
|
|
32
|
+
await reportSectionsPage.expectLoaded();
|
|
33
|
+
await reportSectionsPage.openPreviewFor('Monthly HTS Summary');
|
|
34
|
+
await sectionPreviewModal.expectOpen();
|
|
35
|
+
await sectionPreviewModal.run();
|
|
36
|
+
await sectionPreviewModal.expectError('Start date and End date are required.');
|
|
37
|
+
});
|
|
38
|
+
});
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { test, expect } from '../core/test';
|
|
2
|
+
|
|
3
|
+
const sectionUuid = '4278ebf9-47ab-40b8-aeca-df3e4a050c79';
|
|
4
|
+
const indicatorUuid = '2b9c6c8e-1234-4d9f-8abc-1234567890ab';
|
|
5
|
+
|
|
6
|
+
test.describe('section preview', () => {
|
|
7
|
+
test('submits preview payload and renders the matrix', async ({ page, reportSectionsPage, sectionPreviewModal }) => {
|
|
8
|
+
await page.route('**/ws/rest/v1/reportbuilder/section?**', async (route) => {
|
|
9
|
+
await route.fulfill({
|
|
10
|
+
status: 200,
|
|
11
|
+
contentType: 'application/json',
|
|
12
|
+
body: JSON.stringify({
|
|
13
|
+
results: [
|
|
14
|
+
{
|
|
15
|
+
uuid: sectionUuid,
|
|
16
|
+
name: 'Monthly HTS Summary',
|
|
17
|
+
code: 'HTS_MONTHLY',
|
|
18
|
+
configJson: JSON.stringify({ indicators: [{ uuid: indicatorUuid }] }),
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
}),
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
await page.route(`**/ws/rest/v1/reportbuilder/section/${sectionUuid}**`, async (route) => {
|
|
26
|
+
await route.fulfill({
|
|
27
|
+
status: 200,
|
|
28
|
+
contentType: 'application/json',
|
|
29
|
+
body: JSON.stringify({
|
|
30
|
+
uuid: sectionUuid,
|
|
31
|
+
name: 'Monthly HTS Summary',
|
|
32
|
+
code: 'HTS_MONTHLY',
|
|
33
|
+
configJson: JSON.stringify({ indicators: [{ uuid: indicatorUuid }] }),
|
|
34
|
+
}),
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
await page.route('**/ws/rest/v1/reportbuilder/indicator**', async (route) => {
|
|
39
|
+
await route.fulfill({
|
|
40
|
+
status: 200,
|
|
41
|
+
contentType: 'application/json',
|
|
42
|
+
body: JSON.stringify({ results: [] }),
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
await page.route('**/ws/rest/v1/reportbuilder/sectionpreview', async (route) => {
|
|
47
|
+
const body = route.request().postDataJSON();
|
|
48
|
+
expect(body).toEqual({
|
|
49
|
+
sectionUuid,
|
|
50
|
+
indicatorUuid,
|
|
51
|
+
startDate: '2026-01-01',
|
|
52
|
+
endDate: '2026-01-31',
|
|
53
|
+
maxRows: 100,
|
|
54
|
+
params: {},
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
await route.fulfill({
|
|
58
|
+
status: 200,
|
|
59
|
+
contentType: 'application/json',
|
|
60
|
+
body: JSON.stringify({
|
|
61
|
+
sectionUuid,
|
|
62
|
+
results: [
|
|
63
|
+
{
|
|
64
|
+
indicatorUuid,
|
|
65
|
+
name: 'HTS TST',
|
|
66
|
+
kind: 'base',
|
|
67
|
+
columns: ['age_group', 'gender', 'value'],
|
|
68
|
+
rows: [
|
|
69
|
+
['0-28d', 'F', 2],
|
|
70
|
+
['0-28d', 'M', 1],
|
|
71
|
+
],
|
|
72
|
+
rowCount: 2,
|
|
73
|
+
truncated: false,
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
}),
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
await reportSectionsPage.goto();
|
|
81
|
+
await reportSectionsPage.expectLoaded();
|
|
82
|
+
await reportSectionsPage.openPreviewFor('Monthly HTS Summary');
|
|
83
|
+
await sectionPreviewModal.expectOpen();
|
|
84
|
+
await sectionPreviewModal.fillPreviewRequest({
|
|
85
|
+
startDate: '2026-01-01',
|
|
86
|
+
endDate: '2026-01-31',
|
|
87
|
+
indicatorUuid,
|
|
88
|
+
maxRows: 100,
|
|
89
|
+
});
|
|
90
|
+
await sectionPreviewModal.run();
|
|
91
|
+
await sectionPreviewModal.expectMatrixVisible();
|
|
92
|
+
await expect(page.getByText('HTS TST')).toBeVisible();
|
|
93
|
+
});
|
|
94
|
+
});
|
package/example.env
ADDED
package/jest.config.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/** @type {import('jest').Config} */
|
|
2
|
+
module.exports = {
|
|
3
|
+
clearMocks: true,
|
|
4
|
+
transform: {
|
|
5
|
+
'^.+\\.[jt]sx?$': ['@swc/jest'],
|
|
6
|
+
},
|
|
7
|
+
transformIgnorePatterns: ['/node_modules/(?!@openmrs|.+\\.pnp\\.[^\\/]+$)'],
|
|
8
|
+
moduleDirectories: ['node_modules', '__mocks__', 'tools', 'src', __dirname],
|
|
9
|
+
moduleNameMapper: {
|
|
10
|
+
'^@resources/(.*)$': '<rootDir>/src/resources/$1',
|
|
11
|
+
'^@hooks/(.*)$': '<rootDir>/src/hooks/$1',
|
|
12
|
+
'^@types$': '<rootDir>/src/types.ts',
|
|
13
|
+
'^@tools/(.*)$': '<rootDir>/tools/$1',
|
|
14
|
+
'^@constants$': '<rootDir>/src/constants.ts',
|
|
15
|
+
'^@carbon/icons-react/es/(.*)$': '@carbon/icons-react/lib/$1',
|
|
16
|
+
'^carbon-components-react/es/(.*)$': 'carbon-components-react/lib/$1',
|
|
17
|
+
'@openmrs/esm-framework': '@openmrs/esm-framework/mock',
|
|
18
|
+
'\\.(s?css)$': 'identity-obj-proxy',
|
|
19
|
+
'^lodash-es/(.*)$': 'lodash/$1',
|
|
20
|
+
'lodash-es': 'lodash',
|
|
21
|
+
'^dexie$': '<rootDir>/node_modules/dexie',
|
|
22
|
+
'^react-i18next$': '<rootDir>/__mocks__/react-i18next.js',
|
|
23
|
+
'react-markdown': '<rootDir>/__mocks__/react-markdown.tsx',
|
|
24
|
+
},
|
|
25
|
+
setupFilesAfterEnv: ['<rootDir>/tools/setup-tests.ts'],
|
|
26
|
+
testEnvironment: 'jsdom',
|
|
27
|
+
testPathIgnorePatterns: ['<rootDir>/e2e'],
|
|
28
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@epcare/esm-report-builder",
|
|
3
|
+
"version": "0.1.1-pre.15",
|
|
4
|
+
"license": "MPL-2.0",
|
|
5
|
+
"description": "OpenMRS ESM Report Builder",
|
|
6
|
+
"browser": "dist/openmrs-esm-report-builder.js",
|
|
7
|
+
"main": "src/index.ts",
|
|
8
|
+
"source": true,
|
|
9
|
+
"scripts": {
|
|
10
|
+
"start": "openmrs develop",
|
|
11
|
+
"build": "openmrs build",
|
|
12
|
+
"analyze": "openmrs build --analyze",
|
|
13
|
+
"lint": "eslint --ext js,jsx,ts,tsx .",
|
|
14
|
+
"typescript": "tsc",
|
|
15
|
+
"test": "jest --passWithNoTests",
|
|
16
|
+
"coverage": "jest --coverage --passWithNoTests",
|
|
17
|
+
"verify": "npm-run-all --parallel lint test typescript",
|
|
18
|
+
"e2e": "playwright test",
|
|
19
|
+
"e2e:ui": "playwright test --ui",
|
|
20
|
+
"e2e:headed": "playwright test --headed",
|
|
21
|
+
"e2e:install": "playwright install"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@carbon/icons-react": "^11.58.0",
|
|
25
|
+
"@carbon/react": "^1.39.0",
|
|
26
|
+
"lodash-es": "^4.17.21",
|
|
27
|
+
"react-ace": "^10.1.0",
|
|
28
|
+
"sass": "^1.83.0"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@openmrs/esm-framework": "next",
|
|
32
|
+
"@openmrs/esm-styleguide": "next",
|
|
33
|
+
"@playwright/test": "^1.58.2",
|
|
34
|
+
"@swc/core": "^1.7.36",
|
|
35
|
+
"@swc/jest": "^0.2.36",
|
|
36
|
+
"@types/jest": "^29.5.12",
|
|
37
|
+
"@types/minimatch": "^5.1.2",
|
|
38
|
+
"@types/node": "^22.10.2",
|
|
39
|
+
"@types/react": "^18.3.2",
|
|
40
|
+
"@types/react-dom": "^18.3.0",
|
|
41
|
+
"@types/webpack-env": "^1.18.5",
|
|
42
|
+
"@typescript-eslint/eslint-plugin": "^7.9.0",
|
|
43
|
+
"@typescript-eslint/parser": "^7.9.0",
|
|
44
|
+
"css-loader": "^6.11.0",
|
|
45
|
+
"eslint": "^8.57.0",
|
|
46
|
+
"eslint-plugin-import": "^2.31.0",
|
|
47
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
48
|
+
"jest": "^29.7.0",
|
|
49
|
+
"jest-cli": "^29.7.0",
|
|
50
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
51
|
+
"npm-run-all": "^4.1.5",
|
|
52
|
+
"openmrs": "next",
|
|
53
|
+
"prettier": "^3.4.2",
|
|
54
|
+
"react": "^18.3.1",
|
|
55
|
+
"react-dom": "^18.3.1",
|
|
56
|
+
"react-i18next": "^16.0.0",
|
|
57
|
+
"rxjs": "^6.6.7",
|
|
58
|
+
"swc-loader": "^0.2.6",
|
|
59
|
+
"typescript": "5.5.4",
|
|
60
|
+
"webpack": "^5.99.9",
|
|
61
|
+
"webpack-cli": "^6.0.1"
|
|
62
|
+
},
|
|
63
|
+
"peerDependencies": {
|
|
64
|
+
"@openmrs/esm-framework": "^8.0.0",
|
|
65
|
+
"react": "^18.0.0",
|
|
66
|
+
"react-dom": "^18.0.0",
|
|
67
|
+
"react-i18next": "^16.0.0",
|
|
68
|
+
"rxjs": "^6.6.7",
|
|
69
|
+
"single-spa": "^5.0.0"
|
|
70
|
+
},
|
|
71
|
+
"openmrs": {
|
|
72
|
+
"buildPath": "dist",
|
|
73
|
+
"rootDir": "src",
|
|
74
|
+
"config": {
|
|
75
|
+
"paths": {
|
|
76
|
+
"@openmrs/esm-report-builder": [
|
|
77
|
+
"src"
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { defineConfig, devices } from '@playwright/test';
|
|
2
|
+
|
|
3
|
+
const rootBaseUrl = process.env.PLAYWRIGHT_BASE_URL
|
|
4
|
+
|| (process.env.E2E_BASE_URL ? `${process.env.E2E_BASE_URL.replace(/\/$/, '')}/spa/report-builder` : 'http://localhost:8080/openmrs/spa/report-builder');
|
|
5
|
+
|
|
6
|
+
export default defineConfig({
|
|
7
|
+
testDir: './e2e/specs',
|
|
8
|
+
fullyParallel: true,
|
|
9
|
+
retries: process.env.CI ? 2 : 0,
|
|
10
|
+
workers: process.env.CI ? 1 : undefined,
|
|
11
|
+
reporter: [['list'], ['html', { open: 'never' }]],
|
|
12
|
+
timeout: 60_000,
|
|
13
|
+
expect: { timeout: 10_000 },
|
|
14
|
+
use: {
|
|
15
|
+
baseURL: rootBaseUrl,
|
|
16
|
+
trace: 'retain-on-failure',
|
|
17
|
+
screenshot: 'only-on-failure',
|
|
18
|
+
video: 'retain-on-failure',
|
|
19
|
+
storageState: 'e2e/storageState.json',
|
|
20
|
+
},
|
|
21
|
+
globalSetup: './e2e/core/global-setup.ts',
|
|
22
|
+
projects: [
|
|
23
|
+
{
|
|
24
|
+
name: 'chromium',
|
|
25
|
+
use: { ...devices['Desktop Chrome'] },
|
|
26
|
+
},
|
|
27
|
+
],
|
|
28
|
+
});
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
.cardLink {
|
|
2
|
+
text-decoration: none;
|
|
3
|
+
}
|
|
4
|
+
.tile {
|
|
5
|
+
padding: 1rem;
|
|
6
|
+
min-height: 5rem;
|
|
7
|
+
display: block;
|
|
8
|
+
}
|
|
9
|
+
.title {
|
|
10
|
+
font-weight: 600;
|
|
11
|
+
margin-bottom: 0.25rem;
|
|
12
|
+
}
|
|
13
|
+
.description {
|
|
14
|
+
font-size: 0.875rem;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.panel {
|
|
18
|
+
padding: 1rem;
|
|
19
|
+
border-radius: 12px; // adjust to match your design
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.panelTitle {
|
|
23
|
+
margin: 0 0 0.75rem 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.panelHeaderRow {
|
|
27
|
+
display: flex;
|
|
28
|
+
justify-content: space-between;
|
|
29
|
+
align-items: center;
|
|
30
|
+
gap: 1rem;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.subtleText {
|
|
34
|
+
margin: 0 0 1rem 0;
|
|
35
|
+
opacity: 0.8;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.mappingGrid {
|
|
39
|
+
display: grid;
|
|
40
|
+
grid-template-columns: 1fr 1fr;
|
|
41
|
+
gap: 1rem;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.dimensionsGrid {
|
|
45
|
+
margin-top: 1rem;
|
|
46
|
+
display: grid;
|
|
47
|
+
grid-template-columns: 1fr 1fr;
|
|
48
|
+
gap: 1rem;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.treeWrapper {
|
|
52
|
+
max-height: calc(100vh - 240px);
|
|
53
|
+
overflow: auto;
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useTranslation } from 'react-i18next';
|
|
3
|
+
import { Layer, ClickableTile } from '@carbon/react';
|
|
4
|
+
import { ArrowRight } from '@carbon/react/icons';
|
|
5
|
+
|
|
6
|
+
const ReportBuilderAdminCardLink: React.FC = () => {
|
|
7
|
+
const { t } = useTranslation();
|
|
8
|
+
const header = t('manageForms', 'Report Builder');
|
|
9
|
+
|
|
10
|
+
return (
|
|
11
|
+
<Layer>
|
|
12
|
+
<ClickableTile href={`${window.spaBase}/report-builder`} rel="noopener noreferrer">
|
|
13
|
+
<div>
|
|
14
|
+
<div className="heading">{header}</div>
|
|
15
|
+
<div className="content">{t('reportBuilder', 'Report Builder')}</div>
|
|
16
|
+
</div>
|
|
17
|
+
<div className="iconWrapper">
|
|
18
|
+
<ArrowRight size={16} />
|
|
19
|
+
</div>
|
|
20
|
+
</ClickableTile>
|
|
21
|
+
</Layer>
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
export default ReportBuilderAdminCardLink;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ClickableTile, Stack } from '@carbon/react';
|
|
3
|
+
import { useNavigate } from 'react-router-dom';
|
|
4
|
+
import Header from '../shared/header/header.component';
|
|
5
|
+
|
|
6
|
+
const tileStyle: React.CSSProperties = { minHeight: '10rem' };
|
|
7
|
+
|
|
8
|
+
export default function AdminPage() {
|
|
9
|
+
const navigate = useNavigate();
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
<Stack gap={5}>
|
|
13
|
+
<Header
|
|
14
|
+
title="Admin"
|
|
15
|
+
subtitle="Manage shared configuration, catalogues, and library references for the report builder."
|
|
16
|
+
/>
|
|
17
|
+
|
|
18
|
+
<div style={{ display: 'grid', gridTemplateColumns: 'repeat(auto-fit, minmax(260px, 1fr))', gap: '1rem' }}>
|
|
19
|
+
<ClickableTile style={tileStyle} onClick={() => navigate('/admin/report-library')}>
|
|
20
|
+
<h4>Report Library</h4>
|
|
21
|
+
<p>Catalog completed and legacy reports before full migration into the builder.</p>
|
|
22
|
+
</ClickableTile>
|
|
23
|
+
|
|
24
|
+
<ClickableTile style={tileStyle} onClick={() => navigate('/admin/themes')}>
|
|
25
|
+
<h4>Data Themes</h4>
|
|
26
|
+
<p>Manage reusable source configurations and table mappings.</p>
|
|
27
|
+
</ClickableTile>
|
|
28
|
+
</div>
|
|
29
|
+
</Stack>
|
|
30
|
+
);
|
|
31
|
+
}
|