@cc-openmrs/cc-esm-active-prescriptions 1.0.61 → 1.0.63

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.
@@ -46,6 +46,33 @@
46
46
  "hash": "6ab7a8d81edef660",
47
47
  "childrenByOrder": {}
48
48
  },
49
+ {
50
+ "rendered": true,
51
+ "initial": false,
52
+ "entry": false,
53
+ "recorded": false,
54
+ "reason": "split chunk (cache group: defaultVendors)",
55
+ "size": 351969,
56
+ "sizes": {
57
+ "javascript": 351969
58
+ },
59
+ "names": [],
60
+ "idHints": [
61
+ "vendors"
62
+ ],
63
+ "runtime": [
64
+ "@cc-openmrs/cc-esm-active-prescriptions",
65
+ "main"
66
+ ],
67
+ "files": [
68
+ "68.js"
69
+ ],
70
+ "auxiliaryFiles": [
71
+ "68.js.map"
72
+ ],
73
+ "hash": "a353dba8ad4288a7",
74
+ "childrenByOrder": {}
75
+ },
49
76
  {
50
77
  "rendered": false,
51
78
  "initial": false,
@@ -162,36 +189,15 @@
162
189
  "hash": "3e62c48dd5a82250",
163
190
  "childrenByOrder": {}
164
191
  },
165
- {
166
- "rendered": false,
167
- "initial": false,
168
- "entry": false,
169
- "recorded": false,
170
- "reason": "split chunk (cache group: default)",
171
- "size": 126,
172
- "sizes": {
173
- "consume-shared": 126
174
- },
175
- "names": [],
176
- "idHints": [],
177
- "runtime": [
178
- "@cc-openmrs/cc-esm-active-prescriptions",
179
- "main"
180
- ],
181
- "files": [],
182
- "auxiliaryFiles": [],
183
- "hash": "aab8ade765f37c5a",
184
- "childrenByOrder": {}
185
- },
186
192
  {
187
193
  "rendered": true,
188
194
  "initial": false,
189
195
  "entry": false,
190
196
  "recorded": false,
191
- "reason": "reused as split chunk (cache group: defaultVendors)",
192
- "size": 316104,
197
+ "reason": "split chunk (cache group: defaultVendors)",
198
+ "size": 4479506,
193
199
  "sizes": {
194
- "javascript": 316104
200
+ "javascript": 4479506
195
201
  },
196
202
  "names": [],
197
203
  "idHints": [
@@ -202,12 +208,12 @@
202
208
  "main"
203
209
  ],
204
210
  "files": [
205
- "282.js"
211
+ "279.js"
206
212
  ],
207
213
  "auxiliaryFiles": [
208
- "282.js.map"
214
+ "279.js.map"
209
215
  ],
210
- "hash": "92b16a77b4ba33af",
216
+ "hash": "9188bc7df5f43886",
211
217
  "childrenByOrder": {}
212
218
  },
213
219
  {
@@ -307,11 +313,11 @@
307
313
  "initial": true,
308
314
  "entry": true,
309
315
  "recorded": false,
310
- "size": 22792,
316
+ "size": 21802,
311
317
  "sizes": {
312
318
  "javascript": 42,
313
- "share-init": 462,
314
- "runtime": 22288
319
+ "share-init": 378,
320
+ "runtime": 21382
315
321
  },
316
322
  "names": [
317
323
  "@cc-openmrs/cc-esm-active-prescriptions"
@@ -326,7 +332,7 @@
326
332
  "auxiliaryFiles": [
327
333
  "openmrs-esm-template-app.js.map"
328
334
  ],
329
- "hash": "d94724a3d20f8d25",
335
+ "hash": "35735dfffb3c41b6",
330
336
  "childrenByOrder": {}
331
337
  },
332
338
  {
@@ -377,33 +383,6 @@
377
383
  "hash": "6eb7a892027c3df2",
378
384
  "childrenByOrder": {}
379
385
  },
380
- {
381
- "rendered": true,
382
- "initial": false,
383
- "entry": false,
384
- "recorded": false,
385
- "reason": "reused as split chunk (cache group: defaultVendors)",
386
- "size": 3824123,
387
- "sizes": {
388
- "javascript": 3824123
389
- },
390
- "names": [],
391
- "idHints": [
392
- "vendors"
393
- ],
394
- "runtime": [
395
- "@cc-openmrs/cc-esm-active-prescriptions",
396
- "main"
397
- ],
398
- "files": [
399
- "464.js"
400
- ],
401
- "auxiliaryFiles": [
402
- "464.js.map"
403
- ],
404
- "hash": "02ca01aeeb7a8f86",
405
- "childrenByOrder": {}
406
- },
407
386
  {
408
387
  "rendered": false,
409
388
  "initial": false,
@@ -430,10 +409,10 @@
430
409
  "initial": false,
431
410
  "entry": false,
432
411
  "recorded": false,
433
- "size": 5585,
412
+ "size": 5703,
434
413
  "sizes": {
435
414
  "consume-shared": 42,
436
- "javascript": 5543
415
+ "javascript": 5661
437
416
  },
438
417
  "names": [],
439
418
  "idHints": [],
@@ -446,7 +425,7 @@
446
425
  "auxiliaryFiles": [
447
426
  "499.js.map"
448
427
  ],
449
- "hash": "9e76f72af63843fb",
428
+ "hash": "dd3e08a5cebec944",
450
429
  "childrenByOrder": {}
451
430
  },
452
431
  {
@@ -498,57 +477,24 @@
498
477
  "childrenByOrder": {}
499
478
  },
500
479
  {
501
- "rendered": true,
502
- "initial": false,
503
- "entry": false,
504
- "recorded": false,
505
- "reason": "split chunk (cache group: defaultVendors)",
506
- "size": 193281,
507
- "sizes": {
508
- "javascript": 193281
509
- },
510
- "names": [],
511
- "idHints": [
512
- "vendors"
513
- ],
514
- "runtime": [
515
- "@cc-openmrs/cc-esm-active-prescriptions",
516
- "main"
517
- ],
518
- "files": [
519
- "570.js"
520
- ],
521
- "auxiliaryFiles": [
522
- "570.js.map"
523
- ],
524
- "hash": "da584db78656f808",
525
- "childrenByOrder": {}
526
- },
527
- {
528
- "rendered": true,
480
+ "rendered": false,
529
481
  "initial": false,
530
482
  "entry": false,
531
483
  "recorded": false,
532
- "reason": "split chunk (cache group: defaultVendors)",
533
- "size": 4076288,
484
+ "reason": "reused as split chunk (cache group: default)",
485
+ "size": 126,
534
486
  "sizes": {
535
- "javascript": 4076288
487
+ "consume-shared": 126
536
488
  },
537
489
  "names": [],
538
- "idHints": [
539
- "vendors"
540
- ],
490
+ "idHints": [],
541
491
  "runtime": [
542
492
  "@cc-openmrs/cc-esm-active-prescriptions",
543
493
  "main"
544
494
  ],
545
- "files": [
546
- "571.js"
547
- ],
548
- "auxiliaryFiles": [
549
- "571.js.map"
550
- ],
551
- "hash": "25631a427deb4642",
495
+ "files": [],
496
+ "auxiliaryFiles": [],
497
+ "hash": "3bc51d04e545691f",
552
498
  "childrenByOrder": {}
553
499
  },
554
500
  {
@@ -575,27 +521,6 @@
575
521
  "hash": "cdfbafc932754b06",
576
522
  "childrenByOrder": {}
577
523
  },
578
- {
579
- "rendered": false,
580
- "initial": false,
581
- "entry": false,
582
- "recorded": false,
583
- "reason": "reused as split chunk (cache group: default)",
584
- "size": 168,
585
- "sizes": {
586
- "consume-shared": 168
587
- },
588
- "names": [],
589
- "idHints": [],
590
- "runtime": [
591
- "@cc-openmrs/cc-esm-active-prescriptions",
592
- "main"
593
- ],
594
- "files": [],
595
- "auxiliaryFiles": [],
596
- "hash": "2fef47f236b66567",
597
- "childrenByOrder": {}
598
- },
599
524
  {
600
525
  "rendered": true,
601
526
  "initial": false,
@@ -623,27 +548,6 @@
623
548
  "hash": "ee2ae0b9f6b7a7e3",
624
549
  "childrenByOrder": {}
625
550
  },
626
- {
627
- "rendered": false,
628
- "initial": false,
629
- "entry": false,
630
- "recorded": false,
631
- "reason": "reused as split chunk (cache group: default)",
632
- "size": 42,
633
- "sizes": {
634
- "consume-shared": 42
635
- },
636
- "names": [],
637
- "idHints": [],
638
- "runtime": [
639
- "@cc-openmrs/cc-esm-active-prescriptions",
640
- "main"
641
- ],
642
- "files": [],
643
- "auxiliaryFiles": [],
644
- "hash": "a899b19ab03bdf2b",
645
- "childrenByOrder": {}
646
- },
647
551
  {
648
552
  "rendered": true,
649
553
  "initial": false,
@@ -712,44 +616,17 @@
712
616
  "hash": "4131a92f8f2016df",
713
617
  "childrenByOrder": {}
714
618
  },
715
- {
716
- "rendered": true,
717
- "initial": false,
718
- "entry": false,
719
- "recorded": false,
720
- "reason": "split chunk (cache group: defaultVendors)",
721
- "size": 158688,
722
- "sizes": {
723
- "javascript": 158688
724
- },
725
- "names": [],
726
- "idHints": [
727
- "vendors"
728
- ],
729
- "runtime": [
730
- "@cc-openmrs/cc-esm-active-prescriptions",
731
- "main"
732
- ],
733
- "files": [
734
- "771.js"
735
- ],
736
- "auxiliaryFiles": [
737
- "771.js.map"
738
- ],
739
- "hash": "b0919deece84a631",
740
- "childrenByOrder": {}
741
- },
742
619
  {
743
620
  "rendered": true,
744
621
  "initial": true,
745
622
  "entry": true,
746
623
  "recorded": false,
747
- "size": 381082,
624
+ "size": 380138,
748
625
  "sizes": {
749
- "consume-shared": 294,
750
- "javascript": 357512,
751
- "share-init": 462,
752
- "runtime": 22814
626
+ "consume-shared": 252,
627
+ "javascript": 357630,
628
+ "share-init": 378,
629
+ "runtime": 21878
753
630
  },
754
631
  "names": [
755
632
  "main"
@@ -764,7 +641,7 @@
764
641
  "auxiliaryFiles": [
765
642
  "main.js.map"
766
643
  ],
767
- "hash": "52cf0505f0694c91",
644
+ "hash": "a6ae7740a7a7ee6b",
768
645
  "childrenByOrder": {}
769
646
  },
770
647
  {
@@ -772,9 +649,9 @@
772
649
  "initial": false,
773
650
  "entry": false,
774
651
  "recorded": false,
775
- "size": 65141,
652
+ "size": 55232,
776
653
  "sizes": {
777
- "javascript": 65141
654
+ "javascript": 55232
778
655
  },
779
656
  "names": [],
780
657
  "idHints": [],
@@ -788,54 +665,54 @@
788
665
  "auxiliaryFiles": [
789
666
  "845.js.map"
790
667
  ],
791
- "hash": "648a83919c8b58fc",
668
+ "hash": "f3a7c9efdf021458",
792
669
  "childrenByOrder": {}
793
670
  },
794
671
  {
795
- "rendered": false,
672
+ "rendered": true,
796
673
  "initial": false,
797
674
  "entry": false,
798
675
  "recorded": false,
799
- "size": 42,
676
+ "reason": "split chunk (cache group: defaultVendors)",
677
+ "size": 2129072,
800
678
  "sizes": {
801
- "consume-shared": 42
679
+ "javascript": 2129072
802
680
  },
803
681
  "names": [],
804
- "idHints": [],
682
+ "idHints": [
683
+ "vendors"
684
+ ],
805
685
  "runtime": [
806
686
  "@cc-openmrs/cc-esm-active-prescriptions",
807
687
  "main"
808
688
  ],
809
- "files": [],
810
- "auxiliaryFiles": [],
811
- "hash": "84d4d35f370e354d",
689
+ "files": [
690
+ "866.js"
691
+ ],
692
+ "auxiliaryFiles": [
693
+ "866.js.map"
694
+ ],
695
+ "hash": "d852614ab74618d2",
812
696
  "childrenByOrder": {}
813
697
  },
814
698
  {
815
- "rendered": true,
699
+ "rendered": false,
816
700
  "initial": false,
817
701
  "entry": false,
818
702
  "recorded": false,
819
- "reason": "split chunk (cache group: defaultVendors)",
820
- "size": 316842,
703
+ "size": 42,
821
704
  "sizes": {
822
- "javascript": 316842
705
+ "consume-shared": 42
823
706
  },
824
707
  "names": [],
825
- "idHints": [
826
- "vendors"
827
- ],
708
+ "idHints": [],
828
709
  "runtime": [
829
710
  "@cc-openmrs/cc-esm-active-prescriptions",
830
711
  "main"
831
712
  ],
832
- "files": [
833
- "945.js"
834
- ],
835
- "auxiliaryFiles": [
836
- "945.js.map"
837
- ],
838
- "hash": "449c4da440538140",
713
+ "files": [],
714
+ "auxiliaryFiles": [],
715
+ "hash": "bbaf48b4225a1590",
839
716
  "childrenByOrder": {}
840
717
  },
841
718
  {
@@ -915,6 +792,27 @@
915
792
  ],
916
793
  "hash": "da7fe3dea24a64a4",
917
794
  "childrenByOrder": {}
795
+ },
796
+ {
797
+ "rendered": false,
798
+ "initial": false,
799
+ "entry": false,
800
+ "recorded": false,
801
+ "reason": "split chunk (cache group: default)",
802
+ "size": 126,
803
+ "sizes": {
804
+ "consume-shared": 126
805
+ },
806
+ "names": [],
807
+ "idHints": [],
808
+ "runtime": [
809
+ "@cc-openmrs/cc-esm-active-prescriptions",
810
+ "main"
811
+ ],
812
+ "files": [],
813
+ "auxiliaryFiles": [],
814
+ "hash": "120fd29ab2d95b69",
815
+ "childrenByOrder": {}
918
816
  }
919
817
  ]
920
818
  }
package/dist/routes.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":">=2.2.0"},"extensions":[{"name":"Red box","component":"redBox","slot":"Boxes"},{"name":"Blue box","component":"blueBox","slot":"Boxes"},{"name":"Brand box","component":"blueBox","slot":"Boxes"},{"name":"prescriptions-action-menu","component":"prescriptionsActionButton","slot":"action-menu-patient-chart-items-slot"}],"workspaces":[{"name":"active-prescriptions","title":"activePrescriptionsWorkspaceTitle","component":"root","type":"active-prescriptions","canHide":false,"width":"wider"}],"version":"1.0.61"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":">=1.2","webservices.rest":">=2.2.0"},"extensions":[{"name":"Red box","component":"redBox","slot":"Boxes"},{"name":"Blue box","component":"blueBox","slot":"Boxes"},{"name":"Brand box","component":"blueBox","slot":"Boxes"},{"name":"prescriptions-action-menu","component":"prescriptionsActionButton","slot":"action-menu-patient-chart-items-slot"}],"workspaces":[{"name":"active-prescriptions","title":"activePrescriptionsWorkspaceTitle","component":"root","type":"active-prescriptions","canHide":false,"width":"wider"}],"version":"1.0.63"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cc-openmrs/cc-esm-active-prescriptions",
3
- "version": "1.0.61",
3
+ "version": "1.0.63",
4
4
  "license": "MPL-2.0",
5
5
  "description": "An OpenMRS seed application for building microfrontends",
6
6
  "browser": "dist/openmrs-esm-template-app.js",
@@ -44,63 +44,64 @@
44
44
  "routes": "src/routes.json"
45
45
  },
46
46
  "dependencies": {
47
- "@carbon/react": "^1.92.1",
48
- "lodash-es": "^4.17.21"
47
+ "@carbon/react": "^1.83.0",
48
+ "classnames": "^2.5.1",
49
+ "lodash-es": "^4.17.21",
50
+ "react-to-print": "^2.14.13"
49
51
  },
50
52
  "peerDependencies": {
51
- "@carbon/react": "1.x",
52
53
  "@openmrs/esm-framework": "9.x",
53
54
  "dayjs": "1.x",
54
55
  "react": "18.x",
55
56
  "react-dom": "18.x",
56
57
  "react-i18next": "16.x",
57
- "react-router-dom": "6.x",
58
58
  "rxjs": "6.x",
59
59
  "swr": "2.x"
60
60
  },
61
61
  "devDependencies": {
62
- "@openmrs/esm-framework": "9.0.2",
63
- "@openmrs/esm-styleguide": "9.0.2",
62
+ "@openmrs/esm-framework": "next",
64
63
  "@playwright/test": "^1.52.0",
65
64
  "@swc/cli": "^0.3.12",
66
- "@swc/core": "^1.3.68",
65
+ "@swc/core": "^1.7.14",
67
66
  "@swc/jest": "^0.2.36",
68
- "@testing-library/dom": "^10.1.0",
69
- "@testing-library/jest-dom": "^6.4.5",
70
- "@testing-library/react": "^15.0.6",
67
+ "@testing-library/dom": "^8.20.1",
68
+ "@testing-library/jest-dom": "^5.17.0",
69
+ "@testing-library/react": "^13.4.0",
71
70
  "@testing-library/user-event": "^14.5.2",
72
- "@types/jest": "^29.5.12",
71
+ "@types/jest": "^28.1.4",
73
72
  "@types/react": "^18.3.21",
74
73
  "@types/react-dom": "^18.3.0",
75
74
  "@types/react-router": "^5.1.20",
76
- "@types/react-router-dom": "^5.3.3",
77
- "@types/webpack-env": "^1.18.1",
78
- "@typescript-eslint/eslint-plugin": "^7.8.0",
79
- "@typescript-eslint/parser": "^7.8.0",
75
+ "@types/react-router-dom": "^5.1.7",
76
+ "@types/webpack-env": "^1.16.0",
77
+ "@typescript-eslint/eslint-plugin": "^8.54.0",
78
+ "@typescript-eslint/parser": "^8.54.0",
80
79
  "css-loader": "^6.8.1",
81
80
  "dayjs": "^1.11.13",
82
- "dotenv": "^16.0.3",
83
- "eslint": "^8.50.0",
81
+ "dotenv": "^16.3.1",
82
+ "eslint": "^8.57.0",
84
83
  "eslint-config-prettier": "^8.8.0",
84
+ "eslint-plugin-import": "^2.31.0",
85
85
  "eslint-plugin-jest-dom": "^5.4.0",
86
86
  "eslint-plugin-prettier": "^5.1.3",
87
- "eslint-plugin-react-hooks": "^4.6.2",
88
- "husky": "^8.0.3",
87
+ "eslint-plugin-react-hooks": "^5.0.0",
88
+ "eslint-plugin-unused-imports": "^4.3.0",
89
+ "husky": "^6.0.0",
89
90
  "i18next": "^25.0.0",
90
91
  "i18next-parser": "^9.3.0",
91
92
  "identity-obj-proxy": "^3.0.0",
92
- "jest": "^29.7.0",
93
- "jest-cli": "^29.7.0",
94
- "jest-environment-jsdom": "^29.7.0",
95
- "lint-staged": "^15.2.2",
96
- "openmrs": "9.0.2",
97
- "prettier": "^3.3.3",
93
+ "jest": "^28.1.3",
94
+ "jest-cli": "^28.1.3",
95
+ "jest-environment-jsdom": "^28.1.3",
96
+ "lint-staged": "^15.2.9",
97
+ "openmrs": "next",
98
+ "prettier": "^3.2.5",
98
99
  "react": "^18.3.1",
99
100
  "react-dom": "^18.3.1",
100
101
  "react-i18next": "^16.0.0",
101
102
  "react-router-dom": "^6.3.0",
102
103
  "rxjs": "^6.6.7",
103
- "swr": "2.2.5",
104
+ "swr": "^2.2.5",
104
105
  "swc-loader": "^0.2.3",
105
106
  "turbo": "^2.5.2",
106
107
  "typescript": "^5.0.0",
@@ -108,7 +109,7 @@
108
109
  "webpack-cli": "^6.0.1"
109
110
  },
110
111
  "lint-staged": {
111
- "packages/**/src/**/*.{ts,tsx}": "eslint --cache --fix --max-warnings 0",
112
+ "*.{ts,tsx}": "eslint --cache --fix --max-warnings 0",
112
113
  "*.{css,scss,ts,tsx}": "prettier --write --list-different"
113
114
  },
114
115
  "packageManager": "yarn@4.10.3"
@@ -1,19 +1,23 @@
1
1
  import React from 'react';
2
- import { Button } from '@carbon/react';
3
- import { launchWorkspace } from '@openmrs/esm-framework';
2
+ import { ActionMenuButton, launchWorkspace } from '@openmrs/esm-framework';
4
3
  import { Events } from '@carbon/react/icons';
5
4
  import { useTranslation } from 'react-i18next';
6
5
 
7
6
  const handleClick = () => launchWorkspace('active-prescriptions');
7
+ const getEventsIcon = (props: object) => <Events {...props} />;
8
8
 
9
9
  const PrescriptionsActionButton: React.FC = () => {
10
10
  const { t } = useTranslation();
11
11
  const label = t('activePrescriptions', 'Active prescriptions');
12
12
 
13
13
  return (
14
- <Button kind="ghost" renderIcon={Events} iconDescription={label} onClick={handleClick} size="md">
15
- {label}
16
- </Button>
14
+ <ActionMenuButton
15
+ getIcon={getEventsIcon}
16
+ handler={handleClick}
17
+ iconDescription={label}
18
+ label={label}
19
+ type="active-prescriptions"
20
+ />
17
21
  );
18
22
  };
19
23