@openmrs/esm-report-builder 0.1.1-pre.87
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/.prettierrc +8 -0
- package/.tx/config +12 -0
- package/LICENSE +401 -0
- package/README.md +336 -0
- package/__mocks__/react-i18next.js +12 -0
- package/dist/162.js +1 -0
- package/dist/162.js.map +1 -0
- package/dist/184.js +2 -0
- package/dist/184.js.LICENSE.txt +14 -0
- package/dist/184.js.map +1 -0
- package/dist/242.js +2 -0
- package/dist/242.js.LICENSE.txt +21 -0
- package/dist/242.js.map +1 -0
- package/dist/253.js +1 -0
- package/dist/253.js.map +1 -0
- package/dist/300.js +1 -0
- package/dist/311.js +1 -0
- package/dist/311.js.map +1 -0
- package/dist/469.js +2 -0
- package/dist/469.js.LICENSE.txt +45 -0
- package/dist/469.js.map +1 -0
- package/dist/478.js +2 -0
- package/dist/478.js.LICENSE.txt +9 -0
- package/dist/478.js.map +1 -0
- package/dist/539.js +1 -0
- package/dist/539.js.map +1 -0
- package/dist/540.js +2 -0
- package/dist/540.js.LICENSE.txt +9 -0
- package/dist/540.js.map +1 -0
- package/dist/669.js +1 -0
- package/dist/669.js.map +1 -0
- package/dist/710.js +1 -0
- package/dist/710.js.map +1 -0
- package/dist/729.js +1 -0
- package/dist/729.js.map +1 -0
- package/dist/838.js +2 -0
- package/dist/838.js.LICENSE.txt +9 -0
- package/dist/838.js.map +1 -0
- package/dist/917.js +1 -0
- package/dist/917.js.map +1 -0
- package/dist/961.js +2 -0
- package/dist/961.js.LICENSE.txt +19 -0
- package/dist/961.js.map +1 -0
- package/dist/main.js +1 -0
- package/dist/main.js.map +1 -0
- package/dist/openmrs-esm-report-builder.js +1 -0
- package/dist/openmrs-esm-report-builder.js.buildmanifest.json +530 -0
- package/dist/openmrs-esm-report-builder.js.map +1 -0
- package/dist/routes.json +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/support/github/Dockerfile +22 -0
- package/e2e/support/github/Dockerfile.dockerignore +13 -0
- package/e2e/support/github/docker-compose.yml +31 -0
- package/e2e/support/github/run-e2e-docker-env.sh +131 -0
- package/e2e/support/github/spa-assemble-config.json +9 -0
- package/e2e/tsconfig.json +11 -0
- package/example.env +5 -0
- package/jest.config.js +28 -0
- package/linelist_report_builder_design_spec.md +816 -0
- package/package.json +111 -0
- package/playwright.config.ts +28 -0
- package/routes.json +22 -0
- package/src/__debug__/all-designs.test.tsx +30 -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 +75 -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-browser/columns-tab.component.tsx +80 -0
- package/src/components/admin/etl-browser/etl-browser-page.component.tsx +309 -0
- package/src/components/admin/etl-browser/etl-browser.component.scss +424 -0
- package/src/components/admin/etl-browser/metadata-tab.component.tsx +65 -0
- package/src/components/admin/etl-browser/preview-grid.component.tsx +189 -0
- package/src/components/admin/etl-browser/relationships-tab.component.tsx +21 -0
- package/src/components/admin/etl-browser/sources-tree.component.tsx +118 -0
- package/src/components/admin/etl-browser/table-detail.component.tsx +124 -0
- package/src/components/admin/etl-browser/table-info-strip.component.tsx +51 -0
- package/src/components/admin/etl-browser/table-list.component.tsx +136 -0
- package/src/components/admin/etl-browser/use-table-preview.ts +47 -0
- package/src/components/admin/etl-sources-page.component.tsx +355 -0
- package/src/components/admin/etl-tasks-page.component.scss +370 -0
- package/src/components/admin/etl-tasks-page.component.tsx +768 -0
- package/src/components/admin/report-categories-page.component.tsx +267 -0
- package/src/components/admin/report-library-page.component.tsx +551 -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 +242 -0
- package/src/components/app-shell/report-builder-shell.scss +18 -0
- package/src/components/dashboards/dashboard-config.schema.ts +97 -0
- package/src/components/dashboards/dashboard-form-modal.component.tsx +150 -0
- package/src/components/dashboards/dashboards-admin.scss +62 -0
- package/src/components/dashboards/dashboards-page.component.tsx +153 -0
- package/src/components/dashboards/dashboards-table.component.tsx +130 -0
- package/src/components/dashboards/sections/dashboard-autoinclude.section.tsx +75 -0
- package/src/components/dashboards/sections/dashboard-basics.section.tsx +80 -0
- package/src/components/dashboards/sections/dashboard-json.section.tsx +79 -0
- package/src/components/dashboards/sections/dashboard-sections-editor.section.tsx +130 -0
- package/src/components/dashboards/sections/dashboard-widgets-editor.section.tsx +184 -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 +139 -0
- package/src/components/data-themes/data-themes-table.component.tsx +98 -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/data-visualizer/components/cqi-components/cqi-data-table.component.tsx +214 -0
- package/src/components/data-visualizer/components/cqi-components/cqi-elements.ts +203 -0
- package/src/components/data-visualizer/components/cqi-components/detail.component.tsx +110 -0
- package/src/components/data-visualizer/components/cqi-components/detail.scss +22 -0
- package/src/components/data-visualizer/components/data-table/data-table.component.tsx +208 -0
- package/src/components/data-visualizer/components/data-table/data-tables.scss +206 -0
- package/src/components/data-visualizer/components/empty-state/empty-state-illustration.component.tsx +53 -0
- package/src/components/data-visualizer/components/header/header.component.tsx +43 -0
- package/src/components/data-visualizer/components/header/header.scss +71 -0
- package/src/components/data-visualizer/components/model/confirm.component.tsx +40 -0
- package/src/components/data-visualizer/components/panel/panel.component.tsx +20 -0
- package/src/components/data-visualizer/components/panel/panel.scss +25 -0
- package/src/components/data-visualizer/components/popover/modifier-panel.tsx +53 -0
- package/src/components/data-visualizer/constants.ts +445 -0
- package/src/components/data-visualizer/data-visualizer-illustration.component.tsx +31 -0
- package/src/components/data-visualizer/data-visualizer.component.tsx +1935 -0
- package/src/components/data-visualizer/data-visualizer.resource.ts +462 -0
- package/src/components/data-visualizer/data-visualizer.scss +449 -0
- package/src/components/data-visualizer/declarations.d.ts +131 -0
- package/src/components/data-visualizer/parameter-inputs/boolean-parameter-input.component.tsx +34 -0
- package/src/components/data-visualizer/parameter-inputs/concept-parameter-input.component.tsx +81 -0
- package/src/components/data-visualizer/parameter-inputs/date-parameter-input.component.tsx +110 -0
- package/src/components/data-visualizer/parameter-inputs/date-range-input.component.scss +47 -0
- package/src/components/data-visualizer/parameter-inputs/date-range-input.component.tsx +228 -0
- package/src/components/data-visualizer/parameter-inputs/identifier-type-parameter-input.component.tsx +69 -0
- package/src/components/data-visualizer/parameter-inputs/list-parameter-input.component.tsx +73 -0
- package/src/components/data-visualizer/parameter-inputs/location-parameter-input.component.tsx +81 -0
- package/src/components/data-visualizer/parameter-inputs/number-parameter-input.component.tsx +40 -0
- package/src/components/data-visualizer/parameter-inputs/person-attribute-parameter-input.component.tsx +71 -0
- package/src/components/data-visualizer/parameter-inputs/text-parameter-input.component.tsx +52 -0
- package/src/components/data-visualizer/report-parameter-modal.component.tsx +383 -0
- package/src/components/data-visualizer/types.ts +206 -0
- package/src/components/etl-monitor/builder/builder-state-machine.ts +381 -0
- package/src/components/etl-monitor/builder/design-registry.tsx +139 -0
- package/src/components/etl-monitor/builder/etl-monitor-builder-context.tsx +702 -0
- package/src/components/etl-monitor/builder/etl-monitor-builder-modal.component.tsx +461 -0
- package/src/components/etl-monitor/builder/etl-monitor-builder-modal.scss +256 -0
- package/src/components/etl-monitor/builder/etl-monitor-builder-page.component.tsx +387 -0
- package/src/components/etl-monitor/builder/etl-monitor-builder-page.scss +976 -0
- package/src/components/etl-monitor/builder/generated-config-panel.component.tsx +168 -0
- package/src/components/etl-monitor/builder/generated-config-panel.scss +198 -0
- package/src/components/etl-monitor/builder/index.ts +5 -0
- package/src/components/etl-monitor/builder/monitor-preview.tsx +124 -0
- package/src/components/etl-monitor/builder/steps/data-source-step.component.tsx +667 -0
- package/src/components/etl-monitor/builder/steps/data-source-step.scss +284 -0
- package/src/components/etl-monitor/builder/steps/design-samples.ts +278 -0
- package/src/components/etl-monitor/builder/steps/design-step.component.tsx +299 -0
- package/src/components/etl-monitor/builder/steps/design-step.scss +479 -0
- package/src/components/etl-monitor/builder/steps/fields-step.component.tsx +859 -0
- package/src/components/etl-monitor/builder/steps/fields-step.scss +459 -0
- package/src/components/etl-monitor/builder/steps/general-step.component.tsx +288 -0
- package/src/components/etl-monitor/builder/steps/general-step.scss +103 -0
- package/src/components/etl-monitor/builder/steps/index.ts +5 -0
- package/src/components/etl-monitor/builder/steps/preview-step.component.tsx +245 -0
- package/src/components/etl-monitor/builder/steps/preview-step.scss +236 -0
- package/src/components/etl-monitor/etl-monitor-card-shell.component.tsx +154 -0
- package/src/components/etl-monitor/etl-monitor-card-shell.scss +103 -0
- package/src/components/etl-monitor/etl-monitor-dashboard.component.tsx +227 -0
- package/src/components/etl-monitor/etl-monitor-dashboard.scss +148 -0
- package/src/components/etl-monitor/etl-monitor-status-card.component.tsx +192 -0
- package/src/components/etl-monitor/etl-monitors-page.component.tsx +621 -0
- package/src/components/etl-monitor/renderers/DetailsRenderer.tsx +2 -0
- package/src/components/etl-monitor/renderers/ErrorLogRenderer.tsx +2 -0
- package/src/components/etl-monitor/renderers/EtlMonitorWidget.tsx +97 -0
- package/src/components/etl-monitor/renderers/MetricsGridRenderer.tsx +2 -0
- package/src/components/etl-monitor/renderers/MonitorRenderer.tsx +175 -0
- package/src/components/etl-monitor/renderers/ProgressRenderer.tsx +2 -0
- package/src/components/etl-monitor/renderers/StatusCardRenderer.tsx +2 -0
- package/src/components/etl-monitor/renderers/SummaryCardRenderer.tsx +2 -0
- package/src/components/etl-monitor/renderers/TableRenderer.tsx +2 -0
- package/src/components/etl-monitor/renderers/component-icons.tsx +33 -0
- package/src/components/etl-monitor/renderers/components/details-renderer.tsx +195 -0
- package/src/components/etl-monitor/renderers/components/error-log-renderer.tsx +104 -0
- package/src/components/etl-monitor/renderers/components/index.ts +6 -0
- package/src/components/etl-monitor/renderers/components/log-renderer.tsx +86 -0
- package/src/components/etl-monitor/renderers/components/metrics-grid-renderer.tsx +133 -0
- package/src/components/etl-monitor/renderers/components/progress-renderer.tsx +188 -0
- package/src/components/etl-monitor/renderers/components/status-card-renderer.tsx +247 -0
- package/src/components/etl-monitor/renderers/components/summary-card-renderer.tsx +160 -0
- package/src/components/etl-monitor/renderers/components/table-renderer.tsx +175 -0
- package/src/components/etl-monitor/renderers/components/time-series-renderer.tsx +310 -0
- package/src/components/etl-monitor/renderers/data-transformer.ts +361 -0
- package/src/components/etl-monitor/renderers/index.ts +11 -0
- package/src/components/etl-monitor/renderers/legacy-monitor-renderer.tsx +69 -0
- package/src/components/etl-monitor/renderers/monitor-renderer.tsx +6 -0
- package/src/components/etl-monitor/renderers/monitor-renderers.scss +1621 -0
- package/src/components/etl-monitor/renderers/monitor-widget-card.component.tsx +54 -0
- package/src/components/etl-monitor/renderers/monitor-widget-card.scss +16 -0
- package/src/components/etl-monitor/renderers/v2-monitor-renderer.tsx +227 -0
- package/src/components/import-export/artifact-groups.ts +153 -0
- package/src/components/import-export/export-report-modal.component.tsx +265 -0
- package/src/components/import-export/import-export-page.component.tsx +610 -0
- package/src/components/import-export/import-export.styles.scss +825 -0
- package/src/components/import-export/import-package-modal.component.tsx +401 -0
- package/src/components/import-export/index.ts +3 -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 +623 -0
- package/src/components/indicators/create-composite-base-indicator-modal.component.tsx +295 -0
- package/src/components/indicators/create-custom-indicator-modal.component.tsx +548 -0
- package/src/components/indicators/create-final-indicator-modal.component.tsx +285 -0
- package/src/components/indicators/custom-condition-input.component.tsx +310 -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-run-preview-modal.component.tsx +391 -0
- package/src/components/indicators/indicator-search-select.component.tsx +297 -0
- package/src/components/indicators/indicator-status-tag.component.tsx +9 -0
- package/src/components/indicators/indicators-page.component.tsx +673 -0
- package/src/components/indicators/indicators-page.scss +121 -0
- package/src/components/indicators/indicators-table.component.tsx +188 -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 +116 -0
- package/src/components/indicators/sections/composite-indicator-sql-preview.section.tsx +31 -0
- package/src/components/indicators/sections/custom-indicator-basics.section.tsx +65 -0
- package/src/components/indicators/sections/custom-indicator-disaggregation.section.tsx +93 -0
- package/src/components/indicators/sections/custom-indicator-filters.section.tsx +203 -0
- package/src/components/indicators/sections/custom-indicator-population.section.tsx +107 -0
- package/src/components/indicators/sections/custom-indicator-sql-preview.section.tsx +108 -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 +60 -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 +279 -0
- package/src/components/indicators/sections/indicator-sql-preview.section.tsx +63 -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/tag-input.component.tsx +177 -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 +27 -0
- package/src/components/indicators/types/condition-ui.types.ts +11 -0
- package/src/components/indicators/types/custom-indicator.types.ts +161 -0
- package/src/components/indicators/types/data-theme-config.types.ts +88 -0
- package/src/components/indicators/types/indicator-types.ts +57 -0
- package/src/components/indicators/types/sql-builders.ts +43 -0
- package/src/components/indicators/utils/composite-indicator-sql.utils.test.ts +143 -0
- package/src/components/indicators/utils/composite-indicator-sql.utils.ts +426 -0
- package/src/components/indicators/utils/concept-preload.utils.ts +21 -0
- package/src/components/indicators/utils/custom-indicator-interpreter.test.ts +493 -0
- package/src/components/indicators/utils/custom-indicator-interpreter.ts +702 -0
- package/src/components/indicators/utils/final-indicator-sql.utils.ts +190 -0
- package/src/components/indicators/utils/indicator-conditions-hydration.utils.ts +254 -0
- package/src/components/indicators/utils/indicator-sql-resolution.utils.ts +204 -0
- package/src/components/indicators/utils/indicator-sql.utils.ts +721 -0
- package/src/components/indicators/utils/population-sql.compiler.test.ts +999 -0
- package/src/components/indicators/utils/population-sql.compiler.ts +858 -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 +186 -0
- package/src/components/landing/report-builder-landing-page.scss +131 -0
- package/src/components/legacy-reports/legacy-report-detail-page.component.tsx +300 -0
- package/src/components/legacy-reports/legacy-report-editor-page.component.tsx +324 -0
- package/src/components/legacy-reports/legacy-report-upload-modal.component.tsx +307 -0
- package/src/components/legacy-reports/legacy-reports-page.component.tsx +206 -0
- package/src/components/legacy-reports/legacy-reports-table.component.tsx +154 -0
- package/src/components/legacy-reports/tabs/legacy-report-datasets-tab.component.tsx +344 -0
- package/src/components/legacy-reports/tabs/legacy-report-dimensions-tab.component.tsx +590 -0
- package/src/components/legacy-reports/tabs/legacy-report-indicators-tab.component.tsx +490 -0
- package/src/components/legacy-reports/tabs/legacy-report-json-preview-tab.component.tsx +272 -0
- package/src/components/legacy-reports/tabs/legacy-report-overview-tab.component.tsx +218 -0
- package/src/components/legacy-reports/tabs/legacy-report-parameters-tab.component.tsx +279 -0
- package/src/components/linelist/definition/indicator-to-sql.utils.ts +281 -0
- package/src/components/linelist/definition/linelist-definition-editor.component.tsx +1676 -0
- package/src/components/linelist/definition/linelist-definition-editor.scss +461 -0
- package/src/components/linelist/definition/linelist-definition.types.ts +108 -0
- package/src/components/linelist/definition/panels/column-properties-panel.component.tsx +328 -0
- package/src/components/linelist/definition/panels/column-selector-panel.component.tsx +1082 -0
- package/src/components/linelist/definition/panels/column-selector-panel.scss +100 -0
- package/src/components/linelist/definition/panels/custom-sql-column-modal.component.tsx +248 -0
- package/src/components/linelist/definition/panels/encounter-diagnosis-column-modal.component.tsx +300 -0
- package/src/components/linelist/definition/panels/encounter-diagnosis-column-modal.scss +21 -0
- package/src/components/linelist/definition/panels/multi-datasource-selector.component.tsx +332 -0
- package/src/components/linelist/definition/panels/multi-datasource-selector.scss +161 -0
- package/src/components/linelist/definition/panels/observation-column-modal.component.tsx +450 -0
- package/src/components/linelist/definition/panels/observation-column-modal.scss +29 -0
- package/src/components/linelist/definition/panels/parameter-panel.component.tsx +659 -0
- package/src/components/linelist/definition/panels/parameter-panel.scss +64 -0
- package/src/components/linelist/definition/panels/population-source-selector.component.tsx +407 -0
- package/src/components/linelist/definition/panels/population-source-selector.scss +187 -0
- package/src/components/linelist/design/panels/column-category-selector.component.tsx +433 -0
- package/src/components/linelist/design/panels/column-category-selector.scss +329 -0
- package/src/components/linelist/design/panels/column-debug-panel.component.tsx +197 -0
- package/src/components/linelist/design/panels/column-debug-panel.scss +141 -0
- package/src/components/linelist/design/panels/data-catalogue.component.tsx +1062 -0
- package/src/components/linelist/design/panels/data-catalogue.scss +263 -0
- package/src/components/linelist/design/panels/display-settings-panel.component.tsx +405 -0
- package/src/components/linelist/design/panels/display-settings-panel.scss +78 -0
- package/src/components/linelist/design/panels/filtermap-editor.component.tsx +434 -0
- package/src/components/linelist/design/panels/filtermap-editor.scss +176 -0
- package/src/components/linelist/design/panels/json-preview.component.tsx +114 -0
- package/src/components/linelist/design/panels/json-preview.scss +85 -0
- package/src/components/linelist/design/panels/query-config-panel.component.tsx +1137 -0
- package/src/components/linelist/design/panels/query-config-panel.scss +342 -0
- package/src/components/linelist/design/panels/sort-config-panel.component.tsx +330 -0
- package/src/components/linelist/design/panels/sort-config-panel.scss +77 -0
- package/src/components/linelist/design/panels/sql-builder-panel.component.tsx +475 -0
- package/src/components/linelist/design/panels/sql-builder-panel.scss +226 -0
- package/src/components/linelist/design/panels/transformation-panel.component.tsx +687 -0
- package/src/components/linelist/design/panels/transformation-panel.scss +81 -0
- package/src/components/linelist/design/panels/visual-filter-panel.component.tsx +595 -0
- package/src/components/linelist/design/panels/visual-filter-panel.scss +76 -0
- package/src/components/linelist/linelist-dashboard.page.component.tsx +756 -0
- package/src/components/linelist/linelist-dashboard.page.scss +240 -0
- package/src/components/linelist/linelist-editor.page.component.tsx +134 -0
- package/src/components/linelist/linelist-editor.page.scss +28 -0
- package/src/components/linelist/linelist-run-report.page.component.tsx +715 -0
- package/src/components/linelist/linelist-run-report.page.scss +136 -0
- package/src/components/linelist/modals/linelist-report-builder-modal.component.tsx +1454 -0
- package/src/components/linelist/modals/linelist-report-builder-modal.scss +164 -0
- package/src/components/linelist/modals/preview-parameter-modal.component.tsx +361 -0
- package/src/components/report/dashboard/reports-table.component.tsx +186 -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 +1170 -0
- package/src/components/report/design/report-design.types.ts +48 -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 +554 -0
- package/src/components/report/report-editor.page.component.tsx +590 -0
- package/src/components/report/report.routes.tsx +32 -0
- package/src/components/report-sections/create-report-section-modal.component.tsx +388 -0
- package/src/components/report-sections/hooks/useAgeCategories.ts +25 -0
- package/src/components/report-sections/hooks/useSectionEditorState.ts +449 -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 +201 -0
- package/src/components/report-sections/panels/SectionBasicsPanel.tsx +27 -0
- package/src/components/report-sections/report-section-preview-modal.component.tsx +548 -0
- package/src/components/report-sections/report-sections-page.component.tsx +325 -0
- package/src/components/report-sections/section-disaggregation.utils.ts +637 -0
- package/src/components/report-sections/section-types.ts +55 -0
- package/src/components/report-sections/section-utils.ts +50 -0
- package/src/components/report-sections/sections-page.scss +79 -0
- package/src/components/run-reports/run-reports-page.component.tsx +8 -0
- package/src/components/security/access-denied-page.component.tsx +69 -0
- package/src/components/security/access-denied-page.scss +39 -0
- package/src/components/security/privilege-route.component.test.tsx +79 -0
- package/src/components/security/privilege-route.component.tsx +39 -0
- package/src/components/shared/compile-setup-modal.component.tsx +182 -0
- package/src/components/shared/concept-selector.component.tsx +245 -0
- package/src/components/shared/concept-selector.scss +121 -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 +43 -0
- package/src/constants/privileges.test.ts +53 -0
- package/src/constants/privileges.ts +118 -0
- package/src/features/dashboards/DashboardRendererPage.tsx +174 -0
- package/src/features/dashboards/DashboardsPage.tsx +164 -0
- package/src/features/dashboards/EtlDashboardPage.tsx +32 -0
- package/src/features/dashboards/components/DashboardEmptyState.tsx +41 -0
- package/src/features/dashboards/components/DashboardGrid.tsx +48 -0
- package/src/features/dashboards/components/DashboardHeader.tsx +58 -0
- package/src/features/dashboards/components/DashboardSection.tsx +46 -0
- package/src/features/dashboards/components/ReportLaunchCard.tsx +51 -0
- package/src/features/dashboards/components/WidgetSlotDispatcher.tsx +61 -0
- package/src/features/dashboards/components/WidgetUnavailableCard.tsx +36 -0
- package/src/features/dashboards/dashboards.scss +196 -0
- package/src/features/dashboards/hooks/useDashboard.ts +61 -0
- package/src/features/dashboards/hooks/useDashboardWidgets.ts +74 -0
- package/src/features/dashboards/hooks/useDashboards.ts +56 -0
- package/src/features/dashboards/hooks/useMonitorDataMap.ts +84 -0
- package/src/features/dashboards/index.ts +11 -0
- package/src/features/dashboards/utils/dashboard-config.util.test.ts +255 -0
- package/src/features/dashboards/utils/dashboard-config.util.ts +382 -0
- package/src/features/report-visualizer/ReportVisualizerPage.tsx +448 -0
- package/src/features/report-visualizer/components/Export/ExportMenu.tsx +141 -0
- package/src/features/report-visualizer/components/Export/index.ts +2 -0
- package/src/features/report-visualizer/components/ReportExplorer/QuickFilters.tsx +152 -0
- package/src/features/report-visualizer/components/ReportExplorer/ReportCategoryFilter.tsx +54 -0
- package/src/features/report-visualizer/components/ReportExplorer/ReportExplorerPanel.tsx +201 -0
- package/src/features/report-visualizer/components/ReportExplorer/ReportExplorerRail.tsx +202 -0
- package/src/features/report-visualizer/components/ReportExplorer/ReportList.tsx +287 -0
- package/src/features/report-visualizer/components/ReportExplorer/ReportSearch.tsx +151 -0
- package/src/features/report-visualizer/components/ReportExplorer/ReportTagFilter.tsx +100 -0
- package/src/features/report-visualizer/components/ReportExplorer/RunReportButton.tsx +42 -0
- package/src/features/report-visualizer/components/ReportExplorer/RuntimeParameterForm.tsx +259 -0
- package/src/features/report-visualizer/components/ReportExplorer/index.ts +8 -0
- package/src/features/report-visualizer/components/ReportWorkspace/ReportLayer.tsx +33 -0
- package/src/features/report-visualizer/components/ReportWorkspace/ReportSummary.tsx +88 -0
- package/src/features/report-visualizer/components/ReportWorkspace/ReportViewTabs.tsx +72 -0
- package/src/features/report-visualizer/components/ReportWorkspace/ReportWorkspaceHeader.tsx +92 -0
- package/src/features/report-visualizer/components/ReportWorkspace/ReportWorkspacePanel.tsx +242 -0
- package/src/features/report-visualizer/components/ReportWorkspace/index.ts +5 -0
- package/src/features/report-visualizer/components/TableView/ColumnVisibilityMenu.tsx +206 -0
- package/src/features/report-visualizer/components/TableView/ReportTable.tsx +253 -0
- package/src/features/report-visualizer/components/TableView/index.ts +2 -0
- package/src/features/report-visualizer/hooks/index.ts +4 -0
- package/src/features/report-visualizer/hooks/useExplorerPreferences.ts +103 -0
- package/src/features/report-visualizer/hooks/useReportCapabilities.ts +112 -0
- package/src/features/report-visualizer/hooks/useReportParameters.ts +152 -0
- package/src/features/report-visualizer/hooks/useReports.ts +135 -0
- package/src/features/report-visualizer/index.ts +6 -0
- package/src/features/report-visualizer/report-visualizer.scss +593 -0
- package/src/features/report-visualizer/types/index.ts +1 -0
- package/src/features/report-visualizer/types/report-visualizer.types.ts +104 -0
- package/src/features/report-visualizer/utils/status-colors.ts +117 -0
- package/src/globals.d.ts +14 -0
- package/src/hooks/address-template.ts +86 -0
- package/src/hooks/concept.ts +112 -0
- package/src/hooks/indicator/index.ts +1 -0
- package/src/hooks/indicator/useIndicatorsByTheme.ts +41 -0
- package/src/hooks/openmrs-reference-data.ts +432 -0
- package/src/hooks/theme/index.ts +4 -0
- package/src/hooks/theme/useDataTheme.ts +61 -0
- package/src/hooks/theme/useDataThemes.ts +28 -0
- package/src/hooks/theme/useMambaTableMeta.ts +34 -0
- package/src/hooks/theme/useMambaTables.ts +95 -0
- package/src/hooks/use-report-builder-privileges.test.tsx +98 -0
- package/src/hooks/use-report-builder-privileges.ts +58 -0
- package/src/index.ts +29 -0
- package/src/resources/address-template/address-template.api.ts +180 -0
- package/src/resources/agegroup/agegroups.api.ts +58 -0
- package/src/resources/concept/concept.api.ts +116 -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/dashboard/dashboard.api.ts +107 -0
- package/src/resources/etl-monitor/etl-monitor-test.api.ts +409 -0
- package/src/resources/etl-monitor/etl-monitor.api.ts +381 -0
- package/src/resources/etl-source/etl-source.api.ts +65 -0
- package/src/resources/etl-task/etl-task.api.ts +96 -0
- package/src/resources/etl-task/etl-task.types.ts +31 -0
- package/src/resources/indicator/indicators.api.ts +125 -0
- package/src/resources/legacy-reports/legacy-reports.api.ts +144 -0
- package/src/resources/linelist/linelist-reports.api.ts +616 -0
- package/src/resources/location/location.api.ts +135 -0
- package/src/resources/openmrs-api.ts +40 -0
- package/src/resources/patient-identifier-type/patient-identifier-type.api.ts +65 -0
- package/src/resources/person-attribute-type/person-attribute-type.api.ts +71 -0
- package/src/resources/preview/sql-preview.api.ts +54 -0
- package/src/resources/report/reports.api.ts +140 -0
- package/src/resources/report-category/report-category.api.ts +41 -0
- package/src/resources/report-import-export/import-export-api.ts +164 -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 +25 -0
- package/src/resources/theme/data-theme.api.ts +88 -0
- package/src/resources/theme/etl-schema.api.ts +101 -0
- package/src/resources/theme/etl-table-meta.api.ts +45 -0
- package/src/root.component.tsx +20 -0
- package/src/routes/report-builder.routes.tsx +160 -0
- package/src/routes/report-builder.scss +56 -0
- package/src/routes.json +28 -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 +63 -0
- package/src/types/dashboard/dashboard.types.ts +137 -0
- package/src/types/dashboard/index.ts +4 -0
- package/src/types/etl/etl-types.ts +238 -0
- package/src/types/etl-monitor/etl-monitor-builder.types.ts +555 -0
- package/src/types/etl-monitor/etl-monitor-v2.types.ts +397 -0
- package/src/types/etl-monitor/etl-monitor.types.ts +188 -0
- package/src/types/etl-monitor/index.ts +6 -0
- package/src/types/linelist/compile-config.ts +455 -0
- package/src/types/linelist-types.ts +2059 -0
- package/src/types/theme/data-theme.types.ts +88 -0
- package/src/utils/api-error.utils.test.ts +151 -0
- package/src/utils/api-error.utils.ts +131 -0
- package/src/utils/config-enhancer.ts +62 -0
- package/src/utils/etl-browser/etl-browser.util.test.ts +145 -0
- package/src/utils/etl-browser/export-csv.util.ts +43 -0
- package/src/utils/etl-browser/group-tables.util.ts +84 -0
- package/src/utils/etl-browser/index.ts +4 -0
- package/src/utils/etl-browser/summarize-columns.util.ts +27 -0
- package/src/utils/etl-browser/table-sql.util.ts +20 -0
- package/src/utils/etl-monitor/config-v2-adapter.util.ts +460 -0
- package/src/utils/etl-monitor/endpoint-config-normalizer.util.ts +383 -0
- package/src/utils/etl-monitor/index.ts +10 -0
- package/src/utils/etl-monitor/jsonpath-resolver.util.ts +118 -0
- package/src/utils/etl-monitor/normalization-examples.ts +0 -0
- package/src/utils/etl-monitor/schema-inspector.util.ts +76 -0
- package/src/utils/etl-monitor/semantic-type-detector.util.ts +76 -0
- package/src/utils/etl-monitor/status-mapper.util.ts +105 -0
- package/src/utils/etl-monitor/value-formatters.util.ts +167 -0
- package/src/utils/etl-task/etl-task-card.util.test.ts +239 -0
- package/src/utils/etl-task/etl-task-card.util.ts +276 -0
- package/src/utils/etl-task/index.ts +1 -0
- package/src/utils/html-entities.utils.ts +34 -0
- package/src/utils/parameter-resolution.ts +218 -0
- package/src/views/etl-monitor-builder/add-monitor-modal.component.scss +0 -0
- package/src/views/etl-monitor-builder/add-monitor-modal.component.tsx +210 -0
- package/src/views/etl-monitor-builder/etl-monitor-builder.component.scss +157 -0
- package/src/views/etl-monitor-builder/etl-monitor-builder.component.tsx +252 -0
- package/src/views/etl-monitor-builder/etl-monitor-builder.store.ts +126 -0
- package/tools/scss-stub.js +12 -0
- package/tools/setup-tests.ts +1 -0
- package/translations/en.json +65 -0
- package/tsconfig.json +43 -0
- package/webpack.config.js +30 -0
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Concept Selector Component
|
|
3
|
+
*
|
|
4
|
+
* Allows users to search and select OpenMRS concepts
|
|
5
|
+
* Uses the same pattern as base indicator creation (Search + FilterableMultiSelect)
|
|
6
|
+
*
|
|
7
|
+
* Used for:
|
|
8
|
+
* - Observations (selecting concepts to observe)
|
|
9
|
+
* - Encounter Diagnoses (selecting diagnosis concepts)
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import React, { useState, useCallback, useEffect } from 'react';
|
|
13
|
+
import {
|
|
14
|
+
Search,
|
|
15
|
+
FilterableMultiSelect,
|
|
16
|
+
InlineLoading,
|
|
17
|
+
Tag,
|
|
18
|
+
Stack,
|
|
19
|
+
InlineNotification,
|
|
20
|
+
Button,
|
|
21
|
+
} from '@carbon/react';
|
|
22
|
+
import { Close, Information } from '@carbon/react/icons';
|
|
23
|
+
import { useConceptSearch } from '../../resources/concepts/useConceptSearch';
|
|
24
|
+
import type { ConceptSummary } from '../../resources/concepts/concept-types';
|
|
25
|
+
import styles from './concept-selector.scss';
|
|
26
|
+
|
|
27
|
+
type Props = {
|
|
28
|
+
/** Currently selected concept */
|
|
29
|
+
selectedConcept?: ConceptSummary;
|
|
30
|
+
/** Callback when a concept is selected */
|
|
31
|
+
onSelect: (concept: ConceptSummary) => void;
|
|
32
|
+
/** Callback when selection is cleared */
|
|
33
|
+
onClear?: () => void;
|
|
34
|
+
/** Disable the component */
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
/** Optional placeholder text for search */
|
|
37
|
+
placeholder?: string;
|
|
38
|
+
/** Optional label for the search input */
|
|
39
|
+
label?: string;
|
|
40
|
+
/** Filter concepts by class UUID */
|
|
41
|
+
conceptClassUuid?: string;
|
|
42
|
+
/** Show advanced options */
|
|
43
|
+
showAdvanced?: boolean;
|
|
44
|
+
/** Key to force reset of component state */
|
|
45
|
+
openKey?: number;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const ConceptSelector: React.FC<Props> = ({
|
|
49
|
+
selectedConcept,
|
|
50
|
+
onSelect,
|
|
51
|
+
onClear,
|
|
52
|
+
disabled = false,
|
|
53
|
+
placeholder = 'Type to search concepts...',
|
|
54
|
+
label = 'Search concepts',
|
|
55
|
+
showAdvanced = false,
|
|
56
|
+
openKey = 0,
|
|
57
|
+
}) => {
|
|
58
|
+
const [conceptQuery, setConceptQuery] = useState('');
|
|
59
|
+
const [multiKey, setMultiKey] = useState(0);
|
|
60
|
+
|
|
61
|
+
// Force-reset state when modal opens (openKey changes)
|
|
62
|
+
useEffect(() => {
|
|
63
|
+
setConceptQuery('');
|
|
64
|
+
setMultiKey((k) => k + 1);
|
|
65
|
+
}, [openKey]);
|
|
66
|
+
|
|
67
|
+
const { loading, results, error } = useConceptSearch(conceptQuery);
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Combine search results with the currently selected concept
|
|
71
|
+
* This ensures the selected concept appears in the list even if not in search results
|
|
72
|
+
*/
|
|
73
|
+
const items = React.useMemo(() => {
|
|
74
|
+
const combined = [...results];
|
|
75
|
+
// If there's a selected concept and it's not already in the results, add it
|
|
76
|
+
if (selectedConcept) {
|
|
77
|
+
const exists = results.some(r => r.uuid === selectedConcept.uuid);
|
|
78
|
+
if (!exists) {
|
|
79
|
+
combined.unshift(selectedConcept); // Add at the beginning
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return combined;
|
|
83
|
+
}, [results, selectedConcept]);
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Handle search input change
|
|
87
|
+
*/
|
|
88
|
+
const handleSearchChange = useCallback((e: React.ChangeEvent<HTMLInputElement>) => {
|
|
89
|
+
setConceptQuery(e.target.value);
|
|
90
|
+
}, []);
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Handle concept selection
|
|
94
|
+
*/
|
|
95
|
+
const handleSelect = useCallback((selectedItems: ConceptSummary[]) => {
|
|
96
|
+
if (selectedItems.length > 0) {
|
|
97
|
+
onSelect(selectedItems[0]);
|
|
98
|
+
}
|
|
99
|
+
}, [onSelect]);
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Handle clearing selection
|
|
103
|
+
*/
|
|
104
|
+
const handleClearSelection = useCallback(() => {
|
|
105
|
+
onClear?.();
|
|
106
|
+
setConceptQuery('');
|
|
107
|
+
}, [onClear]);
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Format concept for display
|
|
111
|
+
*/
|
|
112
|
+
const itemToString = useCallback((item: ConceptSummary | null) => {
|
|
113
|
+
if (!item) return '';
|
|
114
|
+
const className = item.conceptClass?.name || '';
|
|
115
|
+
return className ? `${item.display} (${className})` : item.display;
|
|
116
|
+
}, []);
|
|
117
|
+
|
|
118
|
+
return (
|
|
119
|
+
<div className={styles.container}>
|
|
120
|
+
<Stack gap={4}>
|
|
121
|
+
{/* Header */}
|
|
122
|
+
{showAdvanced && (
|
|
123
|
+
<div className={styles.header}>
|
|
124
|
+
<div className={styles.headerTitle}>
|
|
125
|
+
<Information size={16} />
|
|
126
|
+
<h4>Select Concept</h4>
|
|
127
|
+
</div>
|
|
128
|
+
<p className={styles.headerDescription}>
|
|
129
|
+
Search for an OpenMRS concept to use for this column. Concepts define what data to observe or diagnose.
|
|
130
|
+
</p>
|
|
131
|
+
</div>
|
|
132
|
+
)}
|
|
133
|
+
|
|
134
|
+
{/* Selected Concept Display */}
|
|
135
|
+
{selectedConcept && (
|
|
136
|
+
<div className={styles.selectedDisplay}>
|
|
137
|
+
<div className={styles.selectedInfo}>
|
|
138
|
+
<span className={styles.selectedLabel}>Selected:</span>
|
|
139
|
+
<Tag type="blue" size="sm">
|
|
140
|
+
{selectedConcept.display}
|
|
141
|
+
</Tag>
|
|
142
|
+
<span className={styles.selectedMeta}>
|
|
143
|
+
{selectedConcept.conceptClass?.name}
|
|
144
|
+
</span>
|
|
145
|
+
</div>
|
|
146
|
+
<Button
|
|
147
|
+
kind="ghost"
|
|
148
|
+
size="sm"
|
|
149
|
+
hasIconOnly
|
|
150
|
+
renderIcon={Close}
|
|
151
|
+
iconDescription="Clear selection"
|
|
152
|
+
onClick={handleClearSelection}
|
|
153
|
+
disabled={disabled}
|
|
154
|
+
/>
|
|
155
|
+
</div>
|
|
156
|
+
)}
|
|
157
|
+
|
|
158
|
+
{/* Concept Search - using base indicator pattern */}
|
|
159
|
+
<div className={styles.searchSection}>
|
|
160
|
+
<Search
|
|
161
|
+
id="concept-search"
|
|
162
|
+
labelText={label}
|
|
163
|
+
placeholder={placeholder}
|
|
164
|
+
value={conceptQuery}
|
|
165
|
+
onChange={handleSearchChange}
|
|
166
|
+
size="lg"
|
|
167
|
+
disabled={disabled}
|
|
168
|
+
/>
|
|
169
|
+
|
|
170
|
+
{loading ? <InlineLoading description="Searching…" /> : null}
|
|
171
|
+
{error ? (
|
|
172
|
+
<InlineNotification
|
|
173
|
+
kind="error"
|
|
174
|
+
title="Error"
|
|
175
|
+
subtitle={error}
|
|
176
|
+
lowContrast
|
|
177
|
+
hideCloseButton
|
|
178
|
+
/>
|
|
179
|
+
) : null}
|
|
180
|
+
|
|
181
|
+
<FilterableMultiSelect
|
|
182
|
+
key={multiKey}
|
|
183
|
+
id="concept-select"
|
|
184
|
+
titleText="Select concept"
|
|
185
|
+
items={items}
|
|
186
|
+
itemToString={itemToString}
|
|
187
|
+
placeholder={items.length ? 'Select a concept…' : 'No results'}
|
|
188
|
+
helperText={selectedConcept ? 'Click to change selection' : 'Type at least 2 characters to search'}
|
|
189
|
+
onChange={(e: any) => handleSelect((e.selectedItems ?? []) as ConceptSummary[])}
|
|
190
|
+
disabled={disabled}
|
|
191
|
+
selectionFeedback="top"
|
|
192
|
+
initialSelectedItems={selectedConcept ? [selectedConcept] : []}
|
|
193
|
+
/>
|
|
194
|
+
|
|
195
|
+
{/* Helper Text */}
|
|
196
|
+
{!selectedConcept && !loading && !error && (
|
|
197
|
+
<div className={styles.helperText}>
|
|
198
|
+
<p>
|
|
199
|
+
Type at least 2 characters to search for concepts. You can search by concept name or UUID.
|
|
200
|
+
</p>
|
|
201
|
+
<p className={styles.hint}>
|
|
202
|
+
<strong>Tip:</strong> Use specific terms like "Weight", "HIV Status", or "Diagnosis" for better results.
|
|
203
|
+
</p>
|
|
204
|
+
</div>
|
|
205
|
+
)}
|
|
206
|
+
</div>
|
|
207
|
+
|
|
208
|
+
{/* Advanced Options */}
|
|
209
|
+
{showAdvanced && selectedConcept && (
|
|
210
|
+
<div className={styles.advancedOptions}>
|
|
211
|
+
<h5 className={styles.advancedTitle}>Concept Details</h5>
|
|
212
|
+
<Stack gap={2}>
|
|
213
|
+
<div className={styles.detailRow}>
|
|
214
|
+
<span className={styles.detailLabel}>UUID:</span>
|
|
215
|
+
<span className={styles.detailValue}>{selectedConcept.uuid}</span>
|
|
216
|
+
</div>
|
|
217
|
+
<div className={styles.detailRow}>
|
|
218
|
+
<span className={styles.detailLabel}>Data Type:</span>
|
|
219
|
+
<span className={styles.detailValue}>{selectedConcept.datatype?.name}</span>
|
|
220
|
+
</div>
|
|
221
|
+
<div className={styles.detailRow}>
|
|
222
|
+
<span className={styles.detailLabel}>Class:</span>
|
|
223
|
+
<span className={styles.detailValue}>{selectedConcept.conceptClass?.name}</span>
|
|
224
|
+
</div>
|
|
225
|
+
{selectedConcept.answers && selectedConcept.answers.length > 0 && (
|
|
226
|
+
<div className={styles.detailRow}>
|
|
227
|
+
<span className={styles.detailLabel}>Answers:</span>
|
|
228
|
+
<div className={styles.detailValue}>
|
|
229
|
+
{selectedConcept.answers.map(answer => (
|
|
230
|
+
<Tag key={answer.uuid} type="gray" size="sm">
|
|
231
|
+
{answer.display}
|
|
232
|
+
</Tag>
|
|
233
|
+
))}
|
|
234
|
+
</div>
|
|
235
|
+
</div>
|
|
236
|
+
)}
|
|
237
|
+
</Stack>
|
|
238
|
+
</div>
|
|
239
|
+
)}
|
|
240
|
+
</Stack>
|
|
241
|
+
</div>
|
|
242
|
+
);
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
export default ConceptSelector;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Concept Selector Component Styles
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
.container {
|
|
6
|
+
width: 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.header {
|
|
10
|
+
margin-bottom: 1rem;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.headerTitle {
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
gap: 0.5rem;
|
|
17
|
+
margin-bottom: 0.5rem;
|
|
18
|
+
|
|
19
|
+
h4 {
|
|
20
|
+
margin: 0;
|
|
21
|
+
font-size: 0.925rem;
|
|
22
|
+
font-weight: 600;
|
|
23
|
+
color: #161616;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.headerDescription {
|
|
28
|
+
font-size: 0.75rem;
|
|
29
|
+
color: #6f6f6f;
|
|
30
|
+
margin: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.selectedDisplay {
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: space-between;
|
|
37
|
+
padding: 0.75rem;
|
|
38
|
+
background-color: #f0f0f0;
|
|
39
|
+
border-radius: 4px;
|
|
40
|
+
margin-bottom: 0.75rem;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.selectedInfo {
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
gap: 0.5rem;
|
|
47
|
+
flex-wrap: wrap;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.selectedLabel {
|
|
51
|
+
font-size: 0.875rem;
|
|
52
|
+
font-weight: 500;
|
|
53
|
+
color: #333;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.selectedMeta {
|
|
57
|
+
font-size: 0.75rem;
|
|
58
|
+
color: #666;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.searchSection {
|
|
62
|
+
margin-bottom: 1rem;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.helperText {
|
|
66
|
+
margin-top: 0.5rem;
|
|
67
|
+
|
|
68
|
+
p {
|
|
69
|
+
font-size: 0.75rem;
|
|
70
|
+
color: #6f6f6f;
|
|
71
|
+
margin: 0.25rem 0;
|
|
72
|
+
|
|
73
|
+
&:last-child {
|
|
74
|
+
margin-bottom: 0;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.hint {
|
|
79
|
+
color: #00665A;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.advancedOptions {
|
|
84
|
+
padding: 1rem;
|
|
85
|
+
background-color: #fafafa;
|
|
86
|
+
border-radius: 4px;
|
|
87
|
+
margin-top: 1rem;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.advancedTitle {
|
|
91
|
+
margin: 0 0 0.75rem 0;
|
|
92
|
+
font-size: 0.875rem;
|
|
93
|
+
font-weight: 600;
|
|
94
|
+
color: #333;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.detailRow {
|
|
98
|
+
display: flex;
|
|
99
|
+
align-items: flex-start;
|
|
100
|
+
gap: 0.5rem;
|
|
101
|
+
margin-bottom: 0.5rem;
|
|
102
|
+
|
|
103
|
+
&:last-child {
|
|
104
|
+
margin-bottom: 0;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.detailLabel {
|
|
109
|
+
font-size: 0.75rem;
|
|
110
|
+
font-weight: 500;
|
|
111
|
+
color: #666;
|
|
112
|
+
min-width: 80px;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.detailValue {
|
|
116
|
+
font-size: 0.75rem;
|
|
117
|
+
color: #333;
|
|
118
|
+
display: flex;
|
|
119
|
+
gap: 0.25rem;
|
|
120
|
+
flex-wrap: wrap;
|
|
121
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {Button, ButtonSet} from '@carbon/react';
|
|
3
|
+
import {Download, Save, View} from '@carbon/icons-react';
|
|
4
|
+
import {useTranslation} from 'react-i18next';
|
|
5
|
+
|
|
6
|
+
type Props = {
|
|
7
|
+
onSave?: () => void;
|
|
8
|
+
onPreview?: () => void;
|
|
9
|
+
onExport?: () => void;
|
|
10
|
+
saving?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export default function BuilderHeaderActions({
|
|
15
|
+
onSave,
|
|
16
|
+
onPreview,
|
|
17
|
+
onExport,
|
|
18
|
+
saving = false,
|
|
19
|
+
disabled = false,
|
|
20
|
+
}: Props) {
|
|
21
|
+
const {t} = useTranslation();
|
|
22
|
+
|
|
23
|
+
return (
|
|
24
|
+
<ButtonSet>
|
|
25
|
+
<Button kind="secondary" size="md" renderIcon={Save} onClick={onSave} disabled={disabled || saving}>
|
|
26
|
+
{saving ? t('saving', 'Saving…') : t('save', 'Save')}
|
|
27
|
+
</Button>
|
|
28
|
+
|
|
29
|
+
<Button kind="secondary" size="md" renderIcon={View} onClick={onPreview} disabled={disabled}>
|
|
30
|
+
{t('preview', 'Preview')}
|
|
31
|
+
</Button>
|
|
32
|
+
|
|
33
|
+
<Button kind="primary" size="md" renderIcon={Download} onClick={onExport} disabled={disabled}>
|
|
34
|
+
{t('export', 'Export')}
|
|
35
|
+
</Button>
|
|
36
|
+
</ButtonSet>
|
|
37
|
+
);
|
|
38
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useTranslation } from 'react-i18next';
|
|
3
|
+
import { Calendar, ChevronDown, Location, UserFollow } from '@carbon/react/icons';
|
|
4
|
+
import { formatDate, useSession } from '@openmrs/esm-framework';
|
|
5
|
+
|
|
6
|
+
import Illustration from './illustration.component';
|
|
7
|
+
import styles from './header.scss';
|
|
8
|
+
import AiAssistButton from '../../ai-support/ai-assist-button.component';
|
|
9
|
+
|
|
10
|
+
export interface HeaderStatus {
|
|
11
|
+
label: string;
|
|
12
|
+
kind?: 'neutral' | 'info' | 'success' | 'warning'; // kept for future, not styled as pill in this design
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface HeaderProps {
|
|
16
|
+
title: string;
|
|
17
|
+
subtitle?: string;
|
|
18
|
+
status?: HeaderStatus;
|
|
19
|
+
actions?: React.ReactNode;
|
|
20
|
+
|
|
21
|
+
showAiAssist?: boolean; // NEW
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const Header: React.FC<HeaderProps> = ({ title, subtitle, status, actions, showAiAssist = true }) => {
|
|
25
|
+
const { t } = useTranslation();
|
|
26
|
+
const session = useSession();
|
|
27
|
+
const location = session?.sessionLocation?.display;
|
|
28
|
+
|
|
29
|
+
const metaLeft = status?.label;
|
|
30
|
+
const metaRight = subtitle;
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<div className={styles.header}>
|
|
34
|
+
{/* LEFT */}
|
|
35
|
+
<div className={styles.left}>
|
|
36
|
+
<div className={styles.illustrationWrap}>
|
|
37
|
+
<Illustration />
|
|
38
|
+
</div>
|
|
39
|
+
|
|
40
|
+
<div className={styles.pageLabels}>
|
|
41
|
+
<div className={styles.appName}>{t('reportBuilder', 'Report builder')}</div>
|
|
42
|
+
<div className={styles.pageTitle}>{title}</div>
|
|
43
|
+
|
|
44
|
+
{(metaLeft || metaRight) && (
|
|
45
|
+
<div className={styles.metaLine}>
|
|
46
|
+
{metaLeft ? <span className={styles.metaItem}>{metaLeft}</span> : null}
|
|
47
|
+
{metaLeft && metaRight ? <span className={styles.metaDot}>•</span> : null}
|
|
48
|
+
{metaRight ? <span className={styles.metaItem}>{metaRight}</span> : null}
|
|
49
|
+
</div>
|
|
50
|
+
)}
|
|
51
|
+
</div>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
{/* RIGHT */}
|
|
55
|
+
<div className={styles.right}>
|
|
56
|
+
<div className={styles.rightTop}>
|
|
57
|
+
<div className={styles.userRow}>
|
|
58
|
+
<span className={styles.userName}>{session?.user?.person?.display}</span>
|
|
59
|
+
<UserFollow size={18} className={styles.userIcon} />
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
<div className={styles.contextRow}>
|
|
63
|
+
<Location size={16} />
|
|
64
|
+
<span className={styles.value}>{location}</span>
|
|
65
|
+
<span className={styles.metaDot}>•</span>
|
|
66
|
+
<Calendar size={16} />
|
|
67
|
+
<span className={styles.value}>{formatDate(new Date(), { mode: 'standard' })}</span>
|
|
68
|
+
<ChevronDown size={16} className={styles.chevron} />
|
|
69
|
+
</div>
|
|
70
|
+
</div>
|
|
71
|
+
|
|
72
|
+
{showAiAssist || actions ? (
|
|
73
|
+
<div className={styles.actions}>
|
|
74
|
+
{showAiAssist ? <AiAssistButton context={{ page: title }} /> : null}
|
|
75
|
+
{actions}
|
|
76
|
+
</div>
|
|
77
|
+
) : null}
|
|
78
|
+
</div>
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
</div>
|
|
82
|
+
);
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export default Header;
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
@use '@carbon/layout' as layout;
|
|
2
|
+
@use '@carbon/type' as type;
|
|
3
|
+
|
|
4
|
+
.page {
|
|
5
|
+
width: 100%;
|
|
6
|
+
margin: 0 auto;
|
|
7
|
+
padding: 1.5rem 0 2rem;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.header {
|
|
11
|
+
background: var(--cds-layer-01, #ffffff);
|
|
12
|
+
border-bottom: 1px solid var(--cds-border-subtle, #e0e0e0);
|
|
13
|
+
padding: layout.$spacing-06 layout.$spacing-06;
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
justify-content: space-between;
|
|
17
|
+
gap: layout.$spacing-07;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.left {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: flex-start;
|
|
23
|
+
gap: layout.$spacing-06;
|
|
24
|
+
min-width: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.illustrationWrap {
|
|
28
|
+
flex: 0 0 auto;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.pageLabels {
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
gap: layout.$spacing-03;
|
|
35
|
+
min-width: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.appName {
|
|
39
|
+
@include type.type-style('body-compact-02');
|
|
40
|
+
color: var(--cds-text-secondary, #525252);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.pageTitle {
|
|
44
|
+
@include type.type-style('heading-05');
|
|
45
|
+
color: var(--cds-text-primary, #161616);
|
|
46
|
+
line-height: 1.15;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.metaLine {
|
|
50
|
+
@include type.type-style('body-compact-02');
|
|
51
|
+
color: var(--cds-text-secondary, #525252);
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
gap: layout.$spacing-03;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.metaItem {
|
|
58
|
+
white-space: nowrap;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.metaDot {
|
|
62
|
+
opacity: 0.7;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.right {
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
align-items: flex-end;
|
|
69
|
+
gap: layout.$spacing-05;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.rightTop {
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
align-items: flex-end;
|
|
76
|
+
gap: layout.$spacing-03;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.userRow {
|
|
80
|
+
display: flex;
|
|
81
|
+
align-items: center;
|
|
82
|
+
gap: layout.$spacing-03;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.userName {
|
|
86
|
+
@include type.type-style('body-compact-02');
|
|
87
|
+
color: var(--cds-text-primary, #161616);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.userIcon {
|
|
91
|
+
color: var(--cds-text-secondary, #525252);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.contextRow {
|
|
95
|
+
@include type.type-style('body-compact-02');
|
|
96
|
+
color: var(--cds-text-secondary, #525252);
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
justify-content: flex-end;
|
|
100
|
+
gap: layout.$spacing-03;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.value {
|
|
104
|
+
margin-left: layout.$spacing-02;
|
|
105
|
+
white-space: nowrap;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.chevron {
|
|
109
|
+
opacity: 0.7;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.actions {
|
|
113
|
+
display: flex;
|
|
114
|
+
align-items: center;
|
|
115
|
+
justify-content: flex-end;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
.illustration {
|
|
120
|
+
position: relative;
|
|
121
|
+
width: 44px;
|
|
122
|
+
height: 44px;
|
|
123
|
+
flex: 0 0 auto;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.sheetBack,
|
|
127
|
+
.sheetMid,
|
|
128
|
+
.sheetFront {
|
|
129
|
+
position: absolute;
|
|
130
|
+
inset: 0;
|
|
131
|
+
border-radius: 2px;
|
|
132
|
+
background: #a7d6d4; /* example */
|
|
133
|
+
border: 1px solid rgba(0, 0, 0, 0.08);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* ✅ overlap should trail LEFT */
|
|
137
|
+
.sheetBack {
|
|
138
|
+
transform: translateX(-8px) translateY(2px);
|
|
139
|
+
opacity: 0.6;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.sheetMid {
|
|
143
|
+
transform: translateX(-4px) translateY(1px);
|
|
144
|
+
opacity: 0.8;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.sheetFront {
|
|
148
|
+
transform: translateX(0) translateY(0);
|
|
149
|
+
opacity: 1;
|
|
150
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
const Illustration: React.FC = () => {
|
|
4
|
+
return (
|
|
5
|
+
<svg
|
|
6
|
+
height="64"
|
|
7
|
+
width="64"
|
|
8
|
+
viewBox="0 0 32 32"
|
|
9
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
+
xmlSpace="preserve"
|
|
11
|
+
fillRule="evenodd"
|
|
12
|
+
clipRule="evenodd"
|
|
13
|
+
strokeLinejoin="round"
|
|
14
|
+
strokeMiterlimit="2"
|
|
15
|
+
>
|
|
16
|
+
<path
|
|
17
|
+
d="M27 31.36H8a.36.36 0 0 1-.36-.36v-1.64H6a.36.36 0 0 1-.36-.36v-1.64H5a.36.36 0 0 1-.36-.36V3A.36.36 0 0 1 5 2.64h4.64V2a.36.36 0 0 1 .36-.36h1.64V1A.36.36 0 0 1 12 .64h4a.36.36 0 0 1 .36.36v.64H18a.36.36 0 0 1 .36.36v.64H23a.36.36 0 0 1 .36.36v1.64H25a.36.36 0 0 1 .36.36v1.64H27a.36.36 0 0 1 .36.36v24a.36.36 0 0 1-.36.36Z"
|
|
18
|
+
fill="#d2e5e5"
|
|
19
|
+
/>
|
|
20
|
+
<path d="M8.36 30.64h18.28V7.36h-1.28V29a.36.36 0 0 1-.36.36H8.36v1.28Z" fill="#8abab8" />
|
|
21
|
+
<path
|
|
22
|
+
d="M5.36 26.64h17.28V3.36h-4.28V4a.36.36 0 0 1-.36.36h-8A.36.36 0 0 1 9.64 4v-.64H5.36v23.28Z"
|
|
23
|
+
fill="#8abab8"
|
|
24
|
+
/>
|
|
25
|
+
<path fill="#fff" d="M7.5 12.64h13v.72h-13zM7.5 8.64h13v.72h-13zM7.5 20.64h13v.72h-13zM7.5 16.64h13v.72h-13z" />
|
|
26
|
+
<path
|
|
27
|
+
d="M10.36 3.64h7.28V2.36H16a.36.36 0 0 1-.36-.36v-.64h-3.28V2a.36.36 0 0 1-.36.36h-1.64v1.28ZM6.36 28.64h18.28V5.36h-1.28V27a.36.36 0 0 1-.36.36H6.36v1.28Z"
|
|
28
|
+
fill="#8abab8"
|
|
29
|
+
/>
|
|
30
|
+
</svg>
|
|
31
|
+
);
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export default Illustration;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
.tileHeader {
|
|
2
|
+
margin-bottom: 0.75rem;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.tileTitle {
|
|
6
|
+
margin: 0;
|
|
7
|
+
font-weight: 600;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.formGrid {
|
|
11
|
+
display: grid;
|
|
12
|
+
grid-template-columns: 1fr;
|
|
13
|
+
gap: 0.75rem;
|
|
14
|
+
margin-top: 0.75rem;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.note {
|
|
18
|
+
margin-top: 0.75rem;
|
|
19
|
+
padding: 0.75rem;
|
|
20
|
+
border-left: 4px solid var(--cds-support-info, #0f62fe);
|
|
21
|
+
background: var(--cds-layer-accent-01, #edf5ff);
|
|
22
|
+
border-radius: 0.25rem;
|
|
23
|
+
font-size: 0.875rem;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.mappingActions {
|
|
27
|
+
margin-top: 0.75rem;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.placeholder {
|
|
31
|
+
padding: 1rem 0;
|
|
32
|
+
opacity: 0.8;
|
|
33
|
+
}
|