@ampath/esm-reports-app 1.0.0-next.11 → 1.0.0-next.111
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/README.md +2 -0
- package/dist/197.js +1 -1
- package/dist/282.js +1 -1
- package/dist/282.js.map +1 -1
- package/dist/295.css +1 -0
- package/dist/295.css.map +1 -0
- package/dist/295.js +1 -0
- package/dist/295.js.map +1 -0
- package/dist/299.js +2 -0
- package/dist/299.js.LICENSE.txt +3 -0
- package/dist/299.js.map +1 -0
- package/dist/300.js +1 -1
- package/dist/311.js +1 -1
- package/dist/311.js.map +1 -1
- package/dist/335.js +1 -1
- package/dist/353.js +1 -1
- package/dist/353.js.map +1 -1
- package/dist/354.js +2 -0
- package/dist/354.js.LICENSE.txt +20 -0
- package/dist/354.js.map +1 -0
- package/dist/410.js +1 -0
- package/dist/410.js.map +1 -0
- package/dist/457.js +2 -0
- package/dist/457.js.LICENSE.txt +261 -0
- package/dist/457.js.map +1 -0
- package/dist/478.js +1 -1
- package/dist/478.js.map +1 -1
- package/dist/480.js +1 -0
- package/dist/540.js +1 -1
- package/dist/540.js.map +1 -1
- package/dist/55.js +1 -1
- package/dist/600.js +2 -0
- package/dist/600.js.LICENSE.txt +35 -0
- package/dist/600.js.map +1 -0
- package/dist/652.js +1 -1
- package/dist/757.js +1 -0
- package/dist/757.js.map +1 -0
- package/dist/781.js +1 -0
- package/dist/781.js.map +1 -0
- package/dist/955.css +1 -0
- package/dist/955.css.map +1 -0
- package/dist/955.js +1 -0
- package/dist/955.js.map +1 -0
- package/dist/961.js +1 -1
- package/dist/961.js.map +1 -1
- package/dist/99.js +1 -1
- package/dist/99.js.map +1 -0
- package/dist/ampath-esm-reports-app.js +1 -1
- package/dist/ampath-esm-reports-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/local-config.json +5 -0
- package/package.json +5 -2
- package/src/common/daily-summary-table.tsx +55 -0
- package/src/common/linelist-table/index.ts +3 -0
- package/src/common/linelist-table/linelist-columns.ts +48 -0
- package/src/common/linelist-table/linelist-table.component.tsx +442 -0
- package/src/common/linelist-table/linelist-table.scss +306 -0
- package/src/common/linelist-table/linelist-table.test.tsx +120 -0
- package/src/common/linelist-table/use-all-rows.ts +93 -0
- package/src/common/linelist-table/use-column-layout.ts +123 -0
- package/src/common/report-error/index.ts +1 -0
- package/src/common/report-error/show-report-error.ts +25 -0
- package/src/common/report-filters/date-range.ts +137 -0
- package/src/common/report-filters/index.ts +4 -0
- package/src/common/report-filters/report-filters.component.tsx +319 -101
- package/src/common/report-filters/report-filters.scss +269 -32
- package/src/common/report-filters/types.ts +83 -0
- package/src/common/report-filters/use-restore-period.ts +53 -0
- package/src/common/report-header/index.ts +2 -0
- package/src/common/report-header/use-facility-name.ts +117 -0
- package/src/common/report-header/use-location-details.ts +58 -0
- package/src/common/report-page/download-sheet-pdf.ts +225 -0
- package/src/common/report-page/index.ts +3 -0
- package/src/common/report-page/report-page.component.tsx +32 -0
- package/src/common/report-page/report-page.scss +45 -0
- package/src/common/report-page/use-page-scale.ts +60 -0
- package/src/common/report-placeholder/has-report-data.ts +15 -0
- package/src/common/report-placeholder/index.ts +3 -0
- package/src/common/report-placeholder/report-placeholder.component.tsx +81 -0
- package/src/common/report-placeholder/report-placeholder.scss +48 -0
- package/src/common/report-placeholder/use-generated-location.ts +62 -0
- package/src/common/report-register/index.ts +6 -0
- package/src/common/report-register/register-columns.ts +46 -0
- package/src/common/report-register/register-layout.component.tsx +302 -0
- package/src/common/report-register/register-layout.scss +209 -0
- package/src/common/report-register/register-table.scss +71 -0
- package/src/common/report-register/report-parents.ts +31 -0
- package/src/common/report-register/rows-to-csv.ts +89 -0
- package/src/common/report-register/use-location-name.ts +54 -0
- package/src/common/report-register/use-patient-list.ts +92 -0
- package/src/common/report-skeleton/index.ts +1 -0
- package/src/common/report-skeleton/report-skeleton.component.tsx +46 -0
- package/src/common/report-skeleton/report-skeleton.scss +29 -0
- package/src/config-schema.ts +9 -1
- package/src/dashboard/report-catalog.ts +501 -0
- package/src/dashboard/reports-dasboard.tsx +269 -33
- package/src/dashboard/reports-dashboard.module.scss +601 -14
- package/src/index.ts +13 -1
- package/src/registers/moh-240/moh-240-register.scss +41 -0
- package/src/registers/moh-240/moh-240.component.test.tsx +166 -0
- package/src/registers/moh-240/moh-240.component.tsx +164 -0
- package/src/registers/moh-267/moh-267-register.component.tsx +409 -0
- package/src/registers/moh-267/moh-267-register.scss +298 -0
- package/src/registers/moh-267/moh-267-summary.ts +103 -0
- package/src/registers/moh-267/moh-267.component.tsx +94 -0
- package/src/registers/moh-267/moh-267.types.ts +47 -0
- package/src/registers/moh-362/moh-362-lab-register.component.tsx +551 -0
- package/src/registers/moh-362/moh-362-lab-register.scss +412 -0
- package/src/registers/moh-362/moh-362-linkage-register.component.tsx +215 -0
- package/src/registers/moh-362/moh-362-linkage-register.scss +91 -0
- package/src/registers/moh-362/moh-362.component.tsx +117 -0
- package/src/registers/moh-362/moh-362.scss +11 -0
- package/src/registers/moh-362/moh-362.types.ts +87 -0
- package/src/registers/moh-368/moh-368.columns.ts +36 -0
- package/src/registers/moh-368/moh-368.component.tsx +178 -0
- package/src/registers/moh-368/moh-368.scss +163 -0
- package/src/registers/presumptive-tb/presumptive-tb-register.component.tsx +391 -0
- package/src/registers/presumptive-tb/presumptive-tb-register.scss +262 -0
- package/src/registers/presumptive-tb/presumptive-tb.component.tsx +92 -0
- package/src/registers/presumptive-tb/presumptive-tb.types.ts +88 -0
- package/src/registers/register-catalog.ts +293 -0
- package/src/registers/register-file-name.ts +18 -0
- package/src/registers/tb-lab-register/tb-lab-register-table.component.tsx +116 -0
- package/src/registers/tb-lab-register/tb-lab-register-table.scss +123 -0
- package/src/registers/tb-lab-register/tb-lab-register.columns.ts +164 -0
- package/src/registers/tb-lab-register/tb-lab-register.component.test.tsx +232 -0
- package/src/registers/tb-lab-register/tb-lab-register.component.tsx +153 -0
- package/src/registers/tb4/tb4-parts.tsx +164 -0
- package/src/registers/tb4/tb4-patient-sheet.component.tsx +418 -0
- package/src/registers/tb4/tb4-register.scss +282 -0
- package/src/registers/tb4/tb4-treatment-sheet.component.tsx +349 -0
- package/src/registers/tb4/tb4.component.tsx +120 -0
- package/src/registers/tb4/tb4.types.ts +129 -0
- package/src/reports/acf-summary/acf-summary-form.component.tsx +176 -0
- package/src/reports/acf-summary/acf-summary-linelist.component.tsx +91 -0
- package/src/reports/acf-summary/acf-summary.component.tsx +101 -0
- package/src/reports/acf-summary/acf-summary.counts.ts +37 -0
- package/src/reports/acf-summary/acf-summary.scss +162 -0
- package/src/reports/datatable-wrapper/datatable-wrapper.component.tsx +63 -48
- package/src/reports/moh-240/line-list.columns.test.tsx +156 -0
- package/src/reports/moh-240/line-list.columns.ts +139 -0
- package/src/reports/moh-240/moh-240-header.component.tsx +62 -0
- package/src/reports/moh-240/moh-240.columns.ts +113 -0
- package/src/reports/moh-240/moh-240.component.test.tsx +109 -0
- package/src/reports/moh-240/moh-240.component.tsx +85 -9
- package/src/reports/moh-240/moh-240.scss +40 -0
- package/src/reports/moh-240/sub-reports/moh-240-register.component.tsx +31 -37
- package/src/reports/moh-240/sub-reports/page-summary.component.tsx +143 -90
- package/src/reports/moh-505/moh-505-header.component.tsx +67 -0
- package/src/reports/moh-505/moh-505.component.tsx +396 -231
- package/src/reports/moh-505/moh-505.scss +131 -0
- package/src/reports/moh-643/moh-643.component.tsx +222 -0
- package/src/reports/moh-643/moh-643.rows.ts +77 -0
- package/src/reports/moh-643/moh-643.scss +164 -0
- package/src/reports/moh-643/registers/moh-643-register.component.tsx +112 -0
- package/src/reports/moh-643/registers/moh-643.columns.ts +32 -0
- package/src/reports/moh-645/moh-645.component.tsx +331 -0
- package/src/reports/moh-645/moh-645.scss +147 -0
- package/src/reports/moh-645/registers/moh-645-register.component.tsx +125 -0
- package/src/reports/moh-645/registers/moh-645.columns.ts +40 -0
- package/src/reports/moh-705B/linelist/moh-705b-linelist.component.tsx +78 -0
- package/src/reports/moh-705B/moh-204b-register.component.tsx +318 -0
- package/src/reports/moh-705B/moh-204b.columns.ts +39 -0
- package/src/reports/moh-705B/moh-705b.component.tsx +622 -427
- package/src/reports/moh-705B/moh-705b.scss +153 -22
- package/src/reports/moh-705a/linelist/moh-705a-linelist.component.tsx +84 -0
- package/src/reports/moh-705a/moh-705a.component.test.tsx +56 -0
- package/src/reports/moh-705a/moh-705a.component.tsx +623 -433
- package/src/reports/moh-705a/moh-705a.scss +153 -22
- package/src/reports/moh-705a/registers/moh-204a-register.component.tsx +404 -0
- package/src/reports/moh-705a/registers/moh-204a.columns.ts +57 -0
- package/src/reports/moh-705a/type.ts +6 -0
- package/src/reports/moh-706/moh-706-header.component.tsx +66 -0
- package/src/reports/moh-706/moh-706.component.tsx +150 -24
- package/src/reports/moh-706/moh-706.scss +119 -11
- package/src/reports/moh-706/sub-reports/bacteriology/bacteriology.component.tsx +43 -34
- package/src/reports/moh-706/sub-reports/blood-chemistry/blood-chemistry.component.tsx +229 -305
- package/src/reports/moh-706/sub-reports/haematology/haematology.component.tsx +30 -23
- package/src/reports/moh-706/sub-reports/histology-and-cytology/histology-and-cytology.component.tsx +25 -25
- package/src/reports/moh-706/sub-reports/parasitology/parasitology.component.tsx +31 -24
- package/src/reports/moh-706/sub-reports/serology/serology.component.tsx +21 -14
- package/src/reports/moh-706/sub-reports/specimen-referral-to-higher-levels/specimen-referral-to-higher-levels.component.tsx +2 -2
- package/src/reports/moh-706/sub-reports/urine-analysis/urine-analysis.component.tsx +27 -20
- package/src/reports/moh-710/moh-710.component.tsx +803 -621
- package/src/reports/moh-710/moh-710.scss +142 -21
- package/src/reports/moh-710/registers/moh-413/moh-413-columns.ts +22 -0
- package/src/reports/moh-710/registers/moh-413/moh-413.component.tsx +140 -0
- package/src/reports/moh-710/registers/moh-413/moh-413.scss +64 -0
- package/src/reports/moh-710/registers/moh-510/moh-510.columns.ts +40 -0
- package/src/reports/moh-710/registers/moh-510/moh-510.component.tsx +191 -0
- package/src/reports/moh-710/registers/moh-510/moh-510.scss +130 -0
- package/src/reports/moh-710/registers/moh-511/moh-511-columns.ts +52 -0
- package/src/reports/moh-710/registers/moh-511/moh-511-register.component.tsx +301 -0
- package/src/reports/moh-710/registers/moh-511/moh-511.scss +130 -0
- package/src/reports/moh-710/registers/moh-511/type.ts +32 -0
- package/src/reports/moh-711/linelist/moh-711-anc-linelist.component.tsx +79 -0
- package/src/reports/moh-711/linelist/moh-711-chanis-linelist.component.tsx +75 -0
- package/src/reports/moh-711/linelist/moh-711-family-planning-linelist.component.tsx +105 -0
- package/src/reports/moh-711/linelist/moh-711-maternity-linelist.component.tsx +105 -0
- package/src/reports/moh-711/linelist/moh-711-pnc-linelist.component.tsx +82 -0
- package/src/reports/moh-711/linelist/use-open-moh-711-anc-linelist.ts +20 -0
- package/src/reports/moh-711/linelist/use-open-moh-711-chanis-linelist.ts +20 -0
- package/src/reports/moh-711/linelist/use-open-moh-711-family-planning-linelist.ts +20 -0
- package/src/reports/moh-711/linelist/use-open-moh-711-maternity-linelist.ts +20 -0
- package/src/reports/moh-711/linelist/use-open-moh-711-pnc-linelist.ts +20 -0
- package/src/reports/moh-711/moh-711.component.tsx +139 -67
- package/src/reports/moh-711/moh711.scss +113 -28
- package/src/reports/moh-711/registers/moh-333-register.component.tsx +675 -0
- package/src/reports/moh-711/registers/moh-333.columns.ts +119 -0
- package/src/reports/moh-711/registers/moh-405-register.component.tsx +562 -0
- package/src/reports/moh-711/registers/moh-405.columns.ts +120 -0
- package/src/reports/moh-711/registers/moh-406-register.component.tsx +577 -0
- package/src/reports/moh-711/registers/moh-406.columns.ts +133 -0
- package/src/reports/moh-711/registers/moh-407-register.component.tsx +153 -0
- package/src/reports/moh-711/registers/moh-407.columns.ts +24 -0
- package/src/reports/moh-711/registers/moh-407.scss +64 -0
- package/src/reports/moh-711/registers/moh-512-columns.ts +94 -0
- package/src/reports/moh-711/registers/moh-512.component.tsx +276 -0
- package/src/reports/moh-711/registers/moh-512.scss +64 -0
- package/src/reports/moh-711/registers/tb-register-columns.ts +17 -0
- package/src/reports/moh-711/registers/tb-register.component.tsx +96 -0
- package/src/reports/moh-711/registers/tb-register.scss +64 -0
- package/src/reports/moh-711/registers/type.ts +192 -0
- package/src/reports/moh-711/sections/anc.component.tsx +39 -24
- package/src/reports/moh-711/sections/cervical-cancer.component.tsx +36 -33
- package/src/reports/moh-711/sections/chanis.component.tsx +89 -84
- package/src/reports/moh-711/sections/family-planning.component.tsx +117 -51
- package/src/reports/moh-711/sections/gbv.component.tsx +43 -43
- package/src/reports/moh-711/sections/maternity.component.tsx +76 -47
- package/src/reports/moh-711/sections/medical-social-work.component.tsx +11 -21
- package/src/reports/moh-711/sections/other.component.tsx +2 -2
- package/src/reports/moh-711/sections/physiotherapy.component.tsx +2 -2
- package/src/reports/moh-711/sections/pnc.component.tsx +38 -15
- package/src/reports/moh-711/sections/post-abortion.component.tsx +2 -2
- package/src/reports/moh-711/sections/rehabilitation.component.tsx +2 -2
- package/src/reports/moh-711/sections/report-compiled-by.component.tsx +12 -4
- package/src/reports/moh-711/sections/tb-screening.component.tsx +52 -15
- package/src/reports/moh-713/moh-713.component.scss +162 -0
- package/src/reports/moh-713/moh-713.component.tsx +122 -0
- package/src/reports/moh-713/sections/section-a-b-c.component.tsx +571 -0
- package/src/reports/moh-713/sections/section-d.component.tsx +133 -0
- package/src/reports/moh-717/moh-717.component.tsx +139 -97
- package/src/reports/moh-717/moh717.scss +174 -77
- package/src/reports/moh-717/registers/moh-209-register.component.tsx +159 -0
- package/src/reports/moh-717/registers/moh-209.columns.ts +30 -0
- package/src/reports/moh-717/registers/nutrition-register.component.tsx +48 -0
- package/src/reports/moh-717/sections/maternity.component.tsx +43 -13
- package/src/reports/moh-717/sections/orthopaedic-trauma.component.tsx +1 -1
- package/src/reports/moh-717/sections/outpatient.component.tsx +130 -40
- package/src/reports/moh-717/sections/preparedby.component.tsx +7 -2
- package/src/reports/moh-717/sections/special-services.component.tsx +64 -10
- package/src/reports/moh-718/moh-718.component.scss +107 -0
- package/src/reports/moh-718/moh-718.component.tsx +2675 -0
- package/src/reports/moh-718/registers/moh-301/moh-301.register.scss +145 -0
- package/src/reports/moh-718/registers/moh-301/moh-301.register.tsx +173 -0
- package/src/reports/moh-729b/moh-729b-form.component.tsx +404 -0
- package/src/reports/moh-729b/moh-729b-linelist.component.tsx +283 -0
- package/src/reports/moh-729b/moh-729b-summary.component.tsx +258 -0
- package/src/reports/moh-729b/moh-729b-summary.config.ts +291 -0
- package/src/reports/moh-729b/moh-729b.component.tsx +165 -0
- package/src/reports/moh-729b/moh-729b.config.ts +241 -0
- package/src/reports/moh-729b/moh-729b.scss +276 -0
- package/src/reports/moh-729b/moh-729b.types.ts +177 -0
- package/src/reports/moh-731/linelist/moh-731-indicators.ts +1126 -0
- package/src/reports/moh-731/linelist/moh-731-linelist-sections.ts +474 -0
- package/src/reports/moh-731/linelist/moh-731-linelist.component.tsx +107 -0
- package/src/reports/moh-731/linelist/use-open-moh-731-linelist.ts +50 -0
- package/src/reports/moh-731/moh-731.component.tsx +272 -0
- package/src/reports/moh-731/moh-731.scss +496 -0
- package/src/reports/moh-731/registers/moh-366.columns.ts +38 -0
- package/src/reports/moh-731/registers/moh-366.component.tsx +471 -0
- package/src/reports/moh-731/registers/prep-register.component.tsx +284 -0
- package/src/reports/moh-731/registers/prep.columns.ts +34 -0
- package/src/reports/moh-731/sections/hiv-and-tb-treatment.component.tsx +1206 -0
- package/src/reports/moh-731/sections/hiv-testing-and-pre-exposure.component.tsx +727 -0
- package/src/reports/moh-731/sections/pmtct.component.tsx +572 -0
- package/src/reports/moh-731/summary/moh-731-summary.component.tsx +313 -0
- package/src/reports/moh-731/summary/moh-731-summary.config.ts +538 -0
- package/src/reports/moh-731/summary/moh-731-summary.scss +247 -0
- package/src/reports/moh-733/linelist/moh-733-linelist.component.tsx +75 -0
- package/src/reports/moh-733/linelist/use-open-moh-733-linelist.ts +19 -0
- package/src/reports/moh-733/moh-733.component.tsx +176 -0
- package/src/reports/moh-733/moh-733.scss +222 -0
- package/src/reports/moh-733/sections/client-category.component.tsx +432 -0
- package/src/reports/moh-733/sections/nutrition-intervention-pregnant-breastfeeding.component.tsx +318 -0
- package/src/reports/moh-733/sections/nutrition-intervention.component.tsx +412 -0
- package/src/reports/moh-733/sections/nutrition-status-weight.component.tsx +409 -0
- package/src/reports/moh-733/sections/nutrition-status.component.tsx +409 -0
- package/src/reports/moh-740/moh-740.component.scss +202 -30
- package/src/reports/moh-740/moh-740.component.tsx +1313 -308
- package/src/reports/moh-740/moh-740.resource.ts +48 -8
- package/src/reports/moh-740/registers/moh-222-daily-register/moh-222-daily-register.scss +20 -0
- package/src/reports/moh-740/registers/moh-222-daily-register/moh-222-daily-register.tsx +183 -0
- package/src/reports/moh-740/registers/moh-270-permanent-register/moh-270-permanent-register.scss +6 -0
- package/src/reports/moh-740/registers/moh-270-permanent-register/moh-270-permanent-register.tsx +151 -0
- package/src/reports/moh-740/registers/moh-740-patient-list.scss +0 -0
- package/src/reports/moh-740/registers/moh-740-patient-list.tsx +60 -0
- package/src/reports/moh-740/registers/moh-740.columns.ts +54 -0
- package/src/reports/moh-740/shared/data-cell/data-cell.scss +6 -0
- package/src/reports/moh-740/shared/data-cell/data-cell.tsx +23 -0
- package/src/reports/moh-740/shared/utils/indicator-register-map.ts +159 -0
- package/src/reports/moh-740/types/index.ts +198 -2
- package/src/reports/moh-745/moh-745.component.tsx +2020 -591
- package/src/reports/moh-745/moh-745.scss +114 -39
- package/src/reports/moh-745/registers/moh-412-register.component.scss +6 -0
- package/src/reports/moh-745/registers/moh-412-register.component.tsx +275 -0
- package/src/reports/moh-745/registers/moh-412.columns.ts +52 -0
- package/src/reports/moh-745/registers/type.ts +223 -0
- package/src/reports/program/care-and-treatment/care-and-treatment-linelist.component.tsx +148 -0
- package/src/reports/program/care-and-treatment/care-and-treatment-table.component.tsx +159 -0
- package/src/reports/program/care-and-treatment/care-and-treatment.component.tsx +284 -0
- package/src/reports/program/care-and-treatment/care-and-treatment.config.ts +210 -0
- package/src/reports/program/care-and-treatment/care-and-treatment.scss +460 -0
- package/src/reports/program/program-report.component.tsx +97 -0
- package/src/reports/program/program-report.scss +75 -0
- package/src/reports/table-wrapper/table-row-mapper.component.tsx +19 -4
- package/src/reports/table-wrapper/table-wrapper.component.tsx +23 -14
- package/src/reports/table-wrapper/table-wrapper.scss +1 -16
- package/src/resources/care-and-treatment.resource.ts +65 -0
- package/src/resources/moh-267.resource.ts +27 -0
- package/src/resources/moh-362.resource.ts +27 -0
- package/src/resources/moh-505.resource.ts +76 -0
- package/src/resources/moh-643.resource.ts +61 -0
- package/src/resources/moh-645.resource.ts +61 -0
- package/src/resources/moh-705.resource.ts +81 -17
- package/src/resources/moh-706.resource.ts +80 -0
- package/src/resources/moh-710.resource.ts +92 -9
- package/src/resources/moh-711.resource.ts +188 -9
- package/src/resources/moh-713.resource.ts +64 -0
- package/src/resources/moh-717.resource.ts +57 -9
- package/src/resources/moh-729b.resource.ts +25 -0
- package/src/resources/moh-731.resource.ts +90 -0
- package/src/resources/moh-733.resource.ts +31 -0
- package/src/resources/moh-745.resource.ts +56 -14
- package/src/resources/patient-list-page.ts +66 -0
- package/src/resources/presumptive-tb.resource.ts +27 -0
- package/src/root.component.tsx +146 -13
- package/src/root.scss +36 -0
- package/src/routes.json +3 -1
- package/src/utils/format-indicator.ts +39 -0
- package/src/utils/get-base-url.ts +39 -7
- package/src/utils/utils.ts +30 -1
- package/tsconfig.json +1 -1
- package/webpack.config.js +22 -1
- package/dist/138.js +0 -2
- package/dist/138.js.LICENSE.txt +0 -20
- package/dist/138.js.map +0 -1
- package/dist/184.js +0 -2
- package/dist/184.js.LICENSE.txt +0 -14
- package/dist/184.js.map +0 -1
- package/dist/205.js +0 -1
- package/dist/205.js.map +0 -1
- package/dist/339.js +0 -1
- package/dist/339.js.map +0 -1
- package/dist/812.js +0 -1
- package/dist/812.js.map +0 -1
- package/dist/ampath-esm-reports-app.js.buildmanifest.json +0 -560
- package/dist/main.js +0 -1
- package/dist/main.js.map +0 -1
|
@@ -1,14 +1,601 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
.
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
@use 'sass:list';
|
|
2
|
+
@use '@carbon/layout';
|
|
3
|
+
@use '@carbon/motion';
|
|
4
|
+
@use '@carbon/type';
|
|
5
|
+
@use '@openmrs/esm-styleguide/src/vars' as *;
|
|
6
|
+
|
|
7
|
+
.dashboard {
|
|
8
|
+
/* `.page` in root.scss gives every route this side gutter. The dashboard
|
|
9
|
+
reaches over it so its grey runs edge to edge, then pads it back. */
|
|
10
|
+
--page-gutter: #{layout.$spacing-06};
|
|
11
|
+
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
margin: 0 calc(-1 * var(--page-gutter));
|
|
14
|
+
padding: 0 var(--page-gutter) layout.$spacing-07;
|
|
15
|
+
/* the original grey behind the reports; the tab row above it is white */
|
|
16
|
+
background-color: $openmrs-background-grey;
|
|
17
|
+
/* grey down to the foot of the window, below the 3rem top bar, however few
|
|
18
|
+
reports are listed */
|
|
19
|
+
min-height: calc(100vh - 3rem);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* Header */
|
|
23
|
+
|
|
24
|
+
/* Tabs, with the facility and date at the right end of the tab row */
|
|
25
|
+
.tabsArea {
|
|
26
|
+
position: relative;
|
|
27
|
+
padding-top: layout.$spacing-05;
|
|
28
|
+
|
|
29
|
+
/* a white band behind the tab row, edge to edge over the page gutter, with
|
|
30
|
+
the tabs' 2px rule along its foot; the reports below sit on grey */
|
|
31
|
+
&::before {
|
|
32
|
+
content: '';
|
|
33
|
+
position: absolute;
|
|
34
|
+
top: 0;
|
|
35
|
+
left: calc(-1 * var(--page-gutter));
|
|
36
|
+
right: calc(-1 * var(--page-gutter));
|
|
37
|
+
height: calc(#{layout.$spacing-05} + #{layout.$spacing-08});
|
|
38
|
+
background-color: $ui-02;
|
|
39
|
+
box-shadow: inset 0 -2px 0 $ui-03;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.headerMeta {
|
|
44
|
+
@include type.type-style('body-compact-01');
|
|
45
|
+
position: absolute;
|
|
46
|
+
/* level with the tab row, below the white band's top padding, and drawn
|
|
47
|
+
over the band */
|
|
48
|
+
top: layout.$spacing-05;
|
|
49
|
+
right: 0;
|
|
50
|
+
z-index: 1;
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
/* the height of the tab row, so the line sits level with the tab labels */
|
|
54
|
+
height: layout.$spacing-08;
|
|
55
|
+
gap: layout.$spacing-05;
|
|
56
|
+
color: $text-02;
|
|
57
|
+
white-space: nowrap;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* the facility and the date, each after a small grey icon */
|
|
61
|
+
.metaItem {
|
|
62
|
+
display: inline-flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
gap: layout.$spacing-02;
|
|
65
|
+
|
|
66
|
+
svg {
|
|
67
|
+
fill: $text-02;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&:first-child {
|
|
71
|
+
color: $color-gray-100;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* The row over each tab's sheet: the report groups as a plain text
|
|
76
|
+
sub-navigation (or the registers' count) at the left, the search at the
|
|
77
|
+
right, over a hairline; the open group is underlined in the brand colour */
|
|
78
|
+
|
|
79
|
+
.groupBar {
|
|
80
|
+
display: flex;
|
|
81
|
+
/* the search sits on the links' line, level with their labels */
|
|
82
|
+
align-items: flex-end;
|
|
83
|
+
justify-content: space-between;
|
|
84
|
+
gap: layout.$spacing-05;
|
|
85
|
+
margin-bottom: layout.$spacing-05;
|
|
86
|
+
border-bottom: 1px solid $ui-03;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* without group links (Registers) there is nothing to underline, so no hairline */
|
|
90
|
+
.plainBar {
|
|
91
|
+
align-items: center;
|
|
92
|
+
border-bottom: none;
|
|
93
|
+
|
|
94
|
+
/* the count and search level with each other */
|
|
95
|
+
.barCount {
|
|
96
|
+
padding: 0;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.groupSearch {
|
|
100
|
+
margin-bottom: 0;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.groupNav {
|
|
105
|
+
display: flex;
|
|
106
|
+
/* the links touch, their 2px rules running on as one track */
|
|
107
|
+
gap: 0;
|
|
108
|
+
/* the track sits on the bar's hairline */
|
|
109
|
+
margin-bottom: -1px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.groupLink {
|
|
113
|
+
@include type.type-style('body-compact-01');
|
|
114
|
+
display: inline-flex;
|
|
115
|
+
align-items: center;
|
|
116
|
+
gap: layout.$spacing-03;
|
|
117
|
+
padding: layout.$spacing-05 layout.$spacing-05 layout.$spacing-04;
|
|
118
|
+
font-family: inherit;
|
|
119
|
+
color: $text-02;
|
|
120
|
+
white-space: nowrap;
|
|
121
|
+
cursor: pointer;
|
|
122
|
+
background: none;
|
|
123
|
+
border: none;
|
|
124
|
+
/* a grey track under every link, green under the open one */
|
|
125
|
+
border-bottom: 2px solid $ui-03;
|
|
126
|
+
transition: all motion.$duration-fast-02 motion.motion(standard, productive);
|
|
127
|
+
|
|
128
|
+
&:hover {
|
|
129
|
+
color: $color-gray-100;
|
|
130
|
+
border-bottom-color: $ui-04;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&:focus-visible {
|
|
134
|
+
outline: 2px solid var(--brand-01);
|
|
135
|
+
outline-offset: -2px;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&[aria-pressed='true'] {
|
|
139
|
+
font-weight: 600;
|
|
140
|
+
color: $color-gray-100;
|
|
141
|
+
border-bottom-color: var(--brand-01);
|
|
142
|
+
|
|
143
|
+
.countBadge {
|
|
144
|
+
color: $ui-02;
|
|
145
|
+
background-color: var(--brand-01);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/* the count in place of the group links, e.g. on the Registers tab */
|
|
151
|
+
.barCount {
|
|
152
|
+
@include type.type-style('body-compact-01');
|
|
153
|
+
padding: layout.$spacing-05 0 layout.$spacing-04;
|
|
154
|
+
color: $text-02;
|
|
155
|
+
white-space: nowrap;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/* the short title only on a phone */
|
|
159
|
+
.groupLinkShort {
|
|
160
|
+
display: none;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/* a count as a small rounded badge: grey, the brand colour on the open
|
|
164
|
+
group or tab */
|
|
165
|
+
.countBadge {
|
|
166
|
+
@include type.type-style('label-01');
|
|
167
|
+
min-width: 1.5rem;
|
|
168
|
+
padding: 0 layout.$spacing-02;
|
|
169
|
+
font-weight: 600;
|
|
170
|
+
line-height: 1.25rem;
|
|
171
|
+
text-align: center;
|
|
172
|
+
color: $color-gray-100;
|
|
173
|
+
background-color: $ui-03;
|
|
174
|
+
border-radius: 0.625rem;
|
|
175
|
+
transition: all motion.$duration-fast-02 motion.motion(standard, productive);
|
|
176
|
+
|
|
177
|
+
/* outlined: nothing in the group (or nothing matching the search) */
|
|
178
|
+
&[data-empty='true'] {
|
|
179
|
+
font-weight: 400;
|
|
180
|
+
color: $text-02;
|
|
181
|
+
background-color: transparent;
|
|
182
|
+
box-shadow: inset 0 0 0 1px $ui-03;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.groupSearch {
|
|
187
|
+
flex: 0 1 20rem;
|
|
188
|
+
min-width: 12rem;
|
|
189
|
+
/* centred on the links' labels, clear of the hairline */
|
|
190
|
+
margin-bottom: layout.$spacing-03;
|
|
191
|
+
|
|
192
|
+
/* a small, quiet field: white with a hairline, grey icon and placeholder,
|
|
193
|
+
both darkening on hover and focus */
|
|
194
|
+
:global(.cds--search-input) {
|
|
195
|
+
@include type.type-style('body-compact-01');
|
|
196
|
+
background-color: $ui-02;
|
|
197
|
+
border-radius: 0.25rem;
|
|
198
|
+
border: 1px solid $ui-03;
|
|
199
|
+
border-bottom-color: $ui-03;
|
|
200
|
+
transition: border-color motion.$duration-fast-02 motion.motion(standard, productive);
|
|
201
|
+
|
|
202
|
+
&::placeholder {
|
|
203
|
+
color: $text-02;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
&:hover {
|
|
207
|
+
border-color: $ui-04;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
&:focus {
|
|
211
|
+
border-color: var(--brand-01);
|
|
212
|
+
outline: 1px solid var(--brand-01);
|
|
213
|
+
outline-offset: -2px;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
:global(.cds--search-magnifier-icon) {
|
|
218
|
+
fill: $text-02;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
:global(.cds--search:focus-within .cds--search-magnifier-icon) {
|
|
222
|
+
fill: $color-gray-100;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/* Each tab's list: one white sheet holding a table of two sides, each
|
|
227
|
+
category's name in one merged cell at the left, its items as rows at the
|
|
228
|
+
right */
|
|
229
|
+
/* each category's colour: an accent for its bar, and an ink dark enough for text */
|
|
230
|
+
$tones: (
|
|
231
|
+
'violet': (#8a3ffc, #6929c4),
|
|
232
|
+
'magenta': (#d02670, #9f1853),
|
|
233
|
+
'teal': (#009d9a, #005d5d),
|
|
234
|
+
'blue': (#0f62fe, #0043ce),
|
|
235
|
+
);
|
|
236
|
+
|
|
237
|
+
.sheet {
|
|
238
|
+
overflow: hidden;
|
|
239
|
+
background-color: $ui-02;
|
|
240
|
+
border: 1px solid $ui-03;
|
|
241
|
+
border-radius: 0.5rem;
|
|
242
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.categoryTable {
|
|
246
|
+
width: 100%;
|
|
247
|
+
border-collapse: collapse;
|
|
248
|
+
|
|
249
|
+
/* a firmer rule between categories */
|
|
250
|
+
tbody + tbody {
|
|
251
|
+
border-top: 1px solid $ui-03;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/* a faint one between the items of a category */
|
|
255
|
+
tbody tr + tr .itemCell {
|
|
256
|
+
border-top: 1px solid $ui-01;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
tbody {
|
|
260
|
+
--tone: var(--brand-01);
|
|
261
|
+
--tone-ink: var(--brand-01);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
@each $name, $pair in $tones {
|
|
265
|
+
tbody[data-tone='#{$name}'] {
|
|
266
|
+
--tone: #{list.nth($pair, 1)};
|
|
267
|
+
--tone-ink: #{list.nth($pair, 2)};
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/* the merged cell: the category's name and what it holds, centred on its
|
|
273
|
+
rows, on a faint tint of its colour with a bar of it at the left */
|
|
274
|
+
.categoryCell {
|
|
275
|
+
width: 15rem;
|
|
276
|
+
padding: layout.$spacing-04 layout.$spacing-05;
|
|
277
|
+
text-align: left;
|
|
278
|
+
vertical-align: middle;
|
|
279
|
+
background-color: color-mix(in srgb, var(--tone) 5%, #{$ui-02});
|
|
280
|
+
border-right: 1px solid $ui-03;
|
|
281
|
+
box-shadow: inset 3px 0 0 var(--tone);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.categoryName {
|
|
285
|
+
@include type.type-style('productive-heading-01');
|
|
286
|
+
display: block;
|
|
287
|
+
color: $color-gray-100;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.categoryDescription {
|
|
291
|
+
@include type.type-style('helper-text-01');
|
|
292
|
+
display: block;
|
|
293
|
+
margin-top: layout.$spacing-02;
|
|
294
|
+
color: $text-02;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.itemCell {
|
|
298
|
+
padding: 0;
|
|
299
|
+
|
|
300
|
+
.sheetRow {
|
|
301
|
+
padding-right: layout.$spacing-05;
|
|
302
|
+
padding-left: layout.$spacing-05;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.sheetRow {
|
|
307
|
+
display: grid;
|
|
308
|
+
/* the codes in one column, wide enough for the longest, MOH/REG/DNTLDP/02 */
|
|
309
|
+
grid-template-columns: 9rem minmax(0, 1fr) auto;
|
|
310
|
+
align-items: center;
|
|
311
|
+
gap: layout.$spacing-04;
|
|
312
|
+
width: 100%;
|
|
313
|
+
padding: layout.$spacing-04 layout.$spacing-03;
|
|
314
|
+
font: inherit;
|
|
315
|
+
text-align: left;
|
|
316
|
+
color: inherit;
|
|
317
|
+
cursor: pointer;
|
|
318
|
+
background: none;
|
|
319
|
+
border: none;
|
|
320
|
+
transition: all motion.$duration-fast-02 motion.motion(standard, productive);
|
|
321
|
+
|
|
322
|
+
&:hover {
|
|
323
|
+
background-color: color-mix(in srgb, var(--tone) 6%, #{$ui-02});
|
|
324
|
+
|
|
325
|
+
.sheetName {
|
|
326
|
+
color: var(--tone-ink);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.sheetArrow {
|
|
330
|
+
opacity: 1;
|
|
331
|
+
transform: translateX(0);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
&:focus-visible {
|
|
336
|
+
outline: 2px solid var(--brand-01);
|
|
337
|
+
outline-offset: -2px;
|
|
338
|
+
|
|
339
|
+
.sheetArrow {
|
|
340
|
+
opacity: 1;
|
|
341
|
+
transform: translateX(0);
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/* the form number as a small chip in its category's colour, in mono so the
|
|
347
|
+
numbers line up */
|
|
348
|
+
.sheetCode {
|
|
349
|
+
@include type.type-style('code-01');
|
|
350
|
+
justify-self: start;
|
|
351
|
+
padding: 0.0625rem layout.$spacing-03;
|
|
352
|
+
color: var(--tone-ink);
|
|
353
|
+
white-space: nowrap;
|
|
354
|
+
background-color: color-mix(in srgb, var(--tone) 9%, #{$ui-02});
|
|
355
|
+
border-radius: 0.25rem;
|
|
356
|
+
transition: all motion.$duration-fast-02 motion.motion(standard, productive);
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.sheetRow:hover .sheetCode {
|
|
360
|
+
background-color: color-mix(in srgb, var(--tone) 16%, #{$ui-02});
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.sheetName {
|
|
364
|
+
@include type.type-style('body-compact-01');
|
|
365
|
+
color: $color-gray-100;
|
|
366
|
+
transition: color motion.$duration-fast-02 motion.motion(standard, productive);
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
/* slides in on hover and focus only */
|
|
370
|
+
.sheetArrow {
|
|
371
|
+
fill: var(--tone-ink);
|
|
372
|
+
opacity: 0;
|
|
373
|
+
transform: translateX(-0.25rem);
|
|
374
|
+
transition: all motion.$duration-fast-02 motion.motion(standard, productive);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/* Empty state */
|
|
378
|
+
|
|
379
|
+
/* Reports / Registers tabs, between the header and the panels */
|
|
380
|
+
|
|
381
|
+
.tabList {
|
|
382
|
+
/* above the white band drawn behind it (.tabsArea::before) */
|
|
383
|
+
position: relative;
|
|
384
|
+
z-index: 1;
|
|
385
|
+
margin-bottom: layout.$spacing-05;
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
/* no (blue) focus ring when a tab is clicked, as the group links; a
|
|
389
|
+
keyboard user still gets one, in the brand colour */
|
|
390
|
+
&#{&} :global(.cds--tabs__nav-item:focus),
|
|
391
|
+
&#{&} :global(.cds--tabs__nav-item:active) {
|
|
392
|
+
outline: none;
|
|
393
|
+
box-shadow: none;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
&#{&} :global(.cds--tabs__nav-item:focus-visible) {
|
|
397
|
+
outline: 2px solid var(--brand-01);
|
|
398
|
+
outline-offset: -2px;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
/* Reports / Registers drawn as the report group links below: side by side,
|
|
402
|
+
touching, on one grey 2px track, the open one green over it */
|
|
403
|
+
:global(.cds--tabs__nav-item) {
|
|
404
|
+
width: auto;
|
|
405
|
+
min-width: 0;
|
|
406
|
+
flex: none;
|
|
407
|
+
padding-right: layout.$spacing-05;
|
|
408
|
+
padding-left: layout.$spacing-05;
|
|
409
|
+
margin-right: 0;
|
|
410
|
+
color: $text-02;
|
|
411
|
+
background: none;
|
|
412
|
+
border-bottom: 2px solid $ui-03;
|
|
413
|
+
transition: all motion.$duration-fast-02 motion.motion(standard, productive);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
:global(.cds--tabs__nav-item:hover) {
|
|
417
|
+
color: $color-gray-100;
|
|
418
|
+
background: none;
|
|
419
|
+
border-bottom-color: $ui-04;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/* the open tab in the AMPATH brand colour rather than Carbon blue */
|
|
423
|
+
:global(.cds--tabs__nav-item--selected),
|
|
424
|
+
:global(.cds--tabs__nav-item--selected:hover) {
|
|
425
|
+
font-weight: 600;
|
|
426
|
+
color: $color-gray-100;
|
|
427
|
+
border-bottom-color: var(--brand-01);
|
|
428
|
+
|
|
429
|
+
.tabLabel svg {
|
|
430
|
+
fill: var(--brand-01);
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
/* Icon, name and count inside a tab */
|
|
436
|
+
.tabLabel {
|
|
437
|
+
display: inline-flex;
|
|
438
|
+
align-items: center;
|
|
439
|
+
gap: layout.$spacing-03;
|
|
440
|
+
|
|
441
|
+
svg {
|
|
442
|
+
fill: $text-02;
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
/* the open tab's count, as the open group's */
|
|
447
|
+
.tabList :global(.cds--tabs__nav-item--selected) .countBadge {
|
|
448
|
+
color: $ui-02;
|
|
449
|
+
background-color: var(--brand-01);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/* Each panel keeps the spacing its content already brings */
|
|
453
|
+
.tabPanel {
|
|
454
|
+
padding: 0;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
.emptyState {
|
|
458
|
+
display: flex;
|
|
459
|
+
flex-direction: column;
|
|
460
|
+
align-items: center;
|
|
461
|
+
gap: layout.$spacing-03;
|
|
462
|
+
padding: layout.$spacing-07 layout.$spacing-05;
|
|
463
|
+
text-align: center;
|
|
464
|
+
background-color: $ui-02;
|
|
465
|
+
border: 1px solid $ui-03;
|
|
466
|
+
|
|
467
|
+
h5 {
|
|
468
|
+
@include type.type-style('productive-heading-02');
|
|
469
|
+
color: $color-gray-100;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
p {
|
|
473
|
+
@include type.type-style('body-long-01');
|
|
474
|
+
color: $text-02;
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.emptyStateIcon {
|
|
479
|
+
fill: $ui-04;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
@media (max-width: $breakpoint-tablet-max) {
|
|
483
|
+
/* the gutter `.page` uses at this size */
|
|
484
|
+
.dashboard {
|
|
485
|
+
--page-gutter: #{layout.$spacing-05};
|
|
486
|
+
|
|
487
|
+
padding-bottom: layout.$spacing-05;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
@media (max-width: $breakpoint-phone-max) {
|
|
492
|
+
/* no room beside the tabs: the facility and date sit above them, and the
|
|
493
|
+
white band grows to hold both */
|
|
494
|
+
.headerMeta {
|
|
495
|
+
/* in the flow, but still painted over the band */
|
|
496
|
+
position: relative;
|
|
497
|
+
top: auto;
|
|
498
|
+
right: auto;
|
|
499
|
+
height: 1.125rem;
|
|
500
|
+
margin-bottom: layout.$spacing-03;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.tabsArea::before {
|
|
504
|
+
height: calc(#{layout.$spacing-05} + 1.125rem + #{layout.$spacing-03} + #{layout.$spacing-08});
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
/* the group links (or count) over the search box, both full width; the
|
|
508
|
+
links scroll sideways if they do not fit */
|
|
509
|
+
.groupBar {
|
|
510
|
+
flex-direction: column;
|
|
511
|
+
align-items: stretch;
|
|
512
|
+
gap: 0;
|
|
513
|
+
border-bottom: none;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.plainBar {
|
|
517
|
+
gap: layout.$spacing-03;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.groupNav {
|
|
521
|
+
margin-bottom: layout.$spacing-04;
|
|
522
|
+
overflow-x: auto;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
.groupLink {
|
|
526
|
+
flex: 1 0 auto;
|
|
527
|
+
justify-content: center;
|
|
528
|
+
padding-right: layout.$spacing-04;
|
|
529
|
+
padding-left: layout.$spacing-04;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.groupSearch {
|
|
533
|
+
flex-basis: auto;
|
|
534
|
+
min-width: 0;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
.barCount {
|
|
538
|
+
padding: 0 0 layout.$spacing-03;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
.groupLinkTitle {
|
|
542
|
+
display: none;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
.groupLinkShort {
|
|
546
|
+
display: inline;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
/* the code chip over the name, so names have the full width */
|
|
550
|
+
.sheetRow {
|
|
551
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
552
|
+
row-gap: layout.$spacing-02;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
.sheetCode,
|
|
556
|
+
.sheetName {
|
|
557
|
+
grid-column: 1;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
.sheetArrow {
|
|
561
|
+
grid-row: 1 / span 2;
|
|
562
|
+
grid-column: 2;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
/* the table: each category a grey band over its items, full width */
|
|
566
|
+
.categoryTable {
|
|
567
|
+
tbody,
|
|
568
|
+
tr,
|
|
569
|
+
th,
|
|
570
|
+
td {
|
|
571
|
+
display: block;
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
.categoryTable .categoryCell {
|
|
576
|
+
width: auto;
|
|
577
|
+
padding: layout.$spacing-03 layout.$spacing-04;
|
|
578
|
+
border-right: none;
|
|
579
|
+
border-bottom: 1px solid $ui-03;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.itemCell .sheetRow {
|
|
583
|
+
padding-right: layout.$spacing-04;
|
|
584
|
+
padding-left: layout.$spacing-04;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
/* the smallest phones (360px and narrower): the three group links fit on one
|
|
589
|
+
line with slightly smaller text and tighter spacing */
|
|
590
|
+
@media (max-width: 360px) {
|
|
591
|
+
.groupLink {
|
|
592
|
+
gap: layout.$spacing-02;
|
|
593
|
+
padding-right: layout.$spacing-03;
|
|
594
|
+
padding-left: layout.$spacing-03;
|
|
595
|
+
font-size: 0.8125rem;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
.groupLink .countBadge {
|
|
599
|
+
min-width: 1.25rem;
|
|
600
|
+
}
|
|
601
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -5,6 +5,18 @@ import { reportsDashboardMeta } from './dashboard-meta/reports-dashboard.meta';
|
|
|
5
5
|
|
|
6
6
|
export const moduleName = '@ampath/esm-reports-app';
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* The section this app's configuration is declared under.
|
|
10
|
+
*
|
|
11
|
+
* Not the package name: the AMPATH deployment's `o3-config.json` declares
|
|
12
|
+
* `@ampath/esm-reporting`, and there is no `@ampath/esm-reports-app` section in
|
|
13
|
+
* it. Registering the schema under the package name left `etlBaseUrl` on its
|
|
14
|
+
* empty default no matter what the deployment set, so every report failed with
|
|
15
|
+
* "the ETL base URL is not configured". Keep this in step with the config, not
|
|
16
|
+
* with `package.json`.
|
|
17
|
+
*/
|
|
18
|
+
export const configSectionName = '@ampath/esm-reporting';
|
|
19
|
+
|
|
8
20
|
const options = {
|
|
9
21
|
featureName: 'ampath-esm-reports',
|
|
10
22
|
moduleName,
|
|
@@ -13,7 +25,7 @@ const options = {
|
|
|
13
25
|
export const importTranslation = require.context('../translations', false, /.json$/, 'lazy');
|
|
14
26
|
|
|
15
27
|
export function startupApp() {
|
|
16
|
-
defineConfigSchema(
|
|
28
|
+
defineConfigSchema(configSectionName, configSchema);
|
|
17
29
|
}
|
|
18
30
|
export const root = getAsyncLifecycle(() => import('./root.component'), options);
|
|
19
31
|
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@use '@carbon/layout';
|
|
2
|
+
@use '@openmrs/esm-styleguide/src/vars' as *;
|
|
3
|
+
|
|
4
|
+
/* Page furniture for the standalone Laboratory (LAB) Register MOH 240. The
|
|
5
|
+
printed sheet itself -- masthead, the A-AA table and the page summary -- is
|
|
6
|
+
the drill-down register's own (reports/moh-240), reused so the register is
|
|
7
|
+
identical wherever it opens from. What is styled here is only what the
|
|
8
|
+
standalone page adds around it: the export toolbar, the pager and the
|
|
9
|
+
empty state. */
|
|
10
|
+
|
|
11
|
+
.toolbar {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: flex-end;
|
|
15
|
+
gap: layout.$spacing-05;
|
|
16
|
+
margin-top: layout.$spacing-05;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.total {
|
|
20
|
+
margin-right: auto;
|
|
21
|
+
font-size: 0.8125rem;
|
|
22
|
+
color: $text-02;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.pager {
|
|
26
|
+
margin-top: layout.$spacing-04;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.empty {
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-direction: column;
|
|
32
|
+
align-items: center;
|
|
33
|
+
gap: layout.$spacing-03;
|
|
34
|
+
margin-top: layout.$spacing-06;
|
|
35
|
+
padding: layout.$spacing-08 layout.$spacing-05;
|
|
36
|
+
text-align: center;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.emptyIcon {
|
|
40
|
+
fill: $text-03;
|
|
41
|
+
}
|