@kenyaemr/esm-patient-list-management-app 8.1.1-pre.114 → 8.1.1-pre.118

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/.turbo/turbo-build.log +18 -18
  2. package/dist/130.js +1 -1
  3. package/dist/130.js.map +1 -1
  4. package/dist/271.js +1 -1
  5. package/dist/319.js +1 -1
  6. package/dist/37.js +1 -1
  7. package/dist/37.js.map +1 -1
  8. package/dist/455.js +1 -0
  9. package/dist/455.js.map +1 -0
  10. package/dist/460.js +1 -1
  11. package/dist/574.js +1 -1
  12. package/dist/644.js +1 -1
  13. package/dist/658.js +2 -0
  14. package/dist/658.js.map +1 -0
  15. package/dist/757.js +1 -1
  16. package/dist/788.js +1 -1
  17. package/dist/807.js +1 -1
  18. package/dist/833.js +1 -1
  19. package/dist/kenyaemr-esm-patient-list-management-app.js +1 -1
  20. package/dist/kenyaemr-esm-patient-list-management-app.js.buildmanifest.json +84 -84
  21. package/dist/kenyaemr-esm-patient-list-management-app.js.map +1 -1
  22. package/dist/main.js +1 -1
  23. package/dist/main.js.map +1 -1
  24. package/dist/routes.json +1 -1
  25. package/package.json +1 -1
  26. package/src/add-patient/add-patient.component.tsx +81 -152
  27. package/src/add-patient/add-patient.scss +73 -4
  28. package/src/add-patient/add-patient.test.tsx +100 -0
  29. package/src/add-patient-to-patient-list-menu-item.component.tsx +1 -0
  30. package/src/add-patient-to-patient-list-menu-item.test.tsx +5 -1
  31. package/src/api/api-remote.ts +90 -2
  32. package/src/api/types.ts +7 -0
  33. package/src/lists-dashboard/lists-dashboard.component.tsx +22 -16
  34. package/src/lists-dashboard/lists-dashboard.scss +6 -0
  35. package/src/routes.json +6 -4
  36. package/translations/am.json +0 -1
  37. package/translations/ar.json +0 -1
  38. package/translations/en.json +2 -3
  39. package/translations/es.json +0 -1
  40. package/translations/fr.json +35 -36
  41. package/translations/he.json +0 -1
  42. package/translations/km.json +0 -1
  43. package/translations/zh.json +0 -1
  44. package/translations/zh_CN.json +0 -1
  45. package/dist/112.js +0 -1
  46. package/dist/112.js.map +0 -1
  47. package/dist/592.js +0 -2
  48. package/dist/592.js.map +0 -1
  49. package/src/header/header.component.tsx +0 -52
  50. package/src/illo.component.tsx +0 -25
  51. /package/dist/{592.js.LICENSE.txt → 658.js.LICENSE.txt} +0 -0
@@ -1,52 +0,0 @@
1
- import React from 'react';
2
- import { useTranslation } from 'react-i18next';
3
- import { Button } from '@carbon/react';
4
- import { Add, Calendar } from '@carbon/react/icons';
5
- import { formatDate, navigate } from '@openmrs/esm-framework';
6
- import Illustration from '../illo.component';
7
- import styles from './header.scss';
8
-
9
- const Header: React.FC = () => {
10
- const { t } = useTranslation();
11
- const newCohortUrl = window.getOpenmrsSpaBase() + 'home/patient-lists?new_cohort=true';
12
-
13
- const handleShowNewListOverlay = () => {
14
- // URL navigation is in place to know either to open the create list overlay or not
15
- // The url /patient-list?new_cohort=true is being used in the "Add patient to list" widget
16
- // in the patient chart. The button in the above mentioned widget "Create new list", navigates
17
- // to /patient-list?new_cohort=true to open the overlay directly.
18
- navigate({
19
- to: newCohortUrl,
20
- });
21
- };
22
-
23
- return (
24
- <div className={styles.patientListHeader}>
25
- <div className={styles.leftJustifiedItems}>
26
- <Illustration />
27
- <div className={styles.pageLabels}>
28
- <p>{t('patientLists', 'Patient lists')}</p>
29
- <p className={styles.pageName}>{t('home', 'Home')}</p>
30
- </div>
31
- </div>
32
- <div className={styles.rightJustifiedItems}>
33
- <div className={styles.date}>
34
- <Calendar size={16} />
35
- <span className={styles.value}>{formatDate(new Date(), { mode: 'standard' })}</span>
36
- </div>
37
- <Button
38
- className={styles.newListButton}
39
- data-openmrs-role="New List"
40
- kind="ghost"
41
- iconDescription="Add"
42
- renderIcon={(props) => <Add {...props} size={16} />}
43
- onClick={handleShowNewListOverlay}
44
- size="sm">
45
- {t('newList', 'New list')}
46
- </Button>
47
- </div>
48
- </div>
49
- );
50
- };
51
-
52
- export default Header;
@@ -1,25 +0,0 @@
1
- import React from 'react';
2
- import { useTranslation } from 'react-i18next';
3
-
4
- const Illustration: React.FC = () => {
5
- const { t } = useTranslation();
6
-
7
- return (
8
- <svg width="92" height="94" viewBox="0 0 92 94" xmlns="http://www.w3.org/2000/svg">
9
- <title>{t('emptyStateIllustration', 'Empty state illustration')}</title>
10
- <g fill="none" fillRule="evenodd">
11
- <path fill="#FFF" d="M0 0h92v94H0z" />
12
- <path
13
- d="M40 32c.84-.602 1.12-1.797 1-3 .12-5.005-3.96-9-9-9s-9.12 3.995-9 9c-.12 3.572 2.1 6.706 5 8-6.76 1.741-12 7.91-12 15v15h28V32h-4zM76 67V52c0-7.09-5.24-13.278-12-15 2.9-1.294 5.12-4.428 5-8 .12-5.005-3.96-9-9-9s-9.12 3.995-9 9c-.12 1.203.14 2.398 1 3h-4v35h28z"
14
- fill="#CEE6E5"
15
- />
16
- <path
17
- d="M32 75V60.312c0-7.402 5.24-13.59 12.3-15.216-3.2-1.39-5.42-4.523-5.42-8.166 0-4.935 4.08-8.93 9.12-8.93 5.04 0 9.12 3.995 9.12 8.93 0 3.642-2.22 6.776-5.42 8.166C58.76 46.741 64 52.91 64 60.313V75"
18
- fill="#7BBCB9"
19
- />
20
- </g>
21
- </svg>
22
- );
23
- };
24
-
25
- export default Illustration;
File without changes