@openmrs/esm-patient-programs-app 3.2.0 → 3.2.1-pre.112

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 (54) hide show
  1. package/.turbo/turbo-build.log +27 -120
  2. package/dist/13.js +1 -0
  3. package/dist/145.js +1 -0
  4. package/dist/186.js +2 -0
  5. package/dist/{921.js.LICENSE.txt → 186.js.LICENSE.txt} +0 -0
  6. package/dist/206.js +2 -0
  7. package/dist/206.js.LICENSE.txt +14 -0
  8. package/dist/252.js +2 -0
  9. package/dist/{60.js.LICENSE.txt → 252.js.LICENSE.txt} +0 -0
  10. package/dist/294.js +2 -0
  11. package/dist/294.js.LICENSE.txt +23 -0
  12. package/dist/337.js +2 -0
  13. package/dist/{796.js.LICENSE.txt → 337.js.LICENSE.txt} +0 -0
  14. package/dist/373.js +1 -2
  15. package/dist/402.js +1 -2
  16. package/dist/622.js +1 -0
  17. package/dist/635.js +1 -2
  18. package/dist/692.js +1 -0
  19. package/dist/701.js +1 -0
  20. package/dist/76.js +1 -2
  21. package/dist/784.js +1 -2
  22. package/dist/817.js +2 -0
  23. package/dist/817.js.LICENSE.txt +8 -0
  24. package/dist/858.js +1 -2
  25. package/dist/879.js +1 -2
  26. package/dist/93.js +1 -0
  27. package/dist/932.js +1 -2
  28. package/dist/openmrs-esm-patient-programs-app.js +1 -1
  29. package/dist/openmrs-esm-patient-programs-app.js.buildmanifest.json +235 -129
  30. package/dist/openmrs-esm-patient-programs-app.old +1 -2
  31. package/package.json +3 -3
  32. package/dist/344.js +0 -2
  33. package/dist/344.js.map +0 -1
  34. package/dist/373.js.map +0 -1
  35. package/dist/402.js.map +0 -1
  36. package/dist/511.js +0 -2
  37. package/dist/511.js.map +0 -1
  38. package/dist/593.js +0 -2
  39. package/dist/593.js.map +0 -1
  40. package/dist/60.js +0 -3
  41. package/dist/60.js.map +0 -1
  42. package/dist/635.js.map +0 -1
  43. package/dist/716.js +0 -2
  44. package/dist/716.js.map +0 -1
  45. package/dist/76.js.map +0 -1
  46. package/dist/784.js.map +0 -1
  47. package/dist/796.js +0 -3
  48. package/dist/796.js.map +0 -1
  49. package/dist/858.js.map +0 -1
  50. package/dist/879.js.map +0 -1
  51. package/dist/921.js +0 -3
  52. package/dist/921.js.map +0 -1
  53. package/dist/932.js.map +0 -1
  54. package/dist/openmrs-esm-patient-programs-app.js.map +0 -1
@@ -1,129 +1,36 @@
1
- @openmrs/esm-patient-programs-app:build: cache hit, replaying output 0cf264f83c1fed6b
1
+ @openmrs/esm-patient-programs-app:build: cache hit, replaying output 0e1072e92040262c
2
2
  @openmrs/esm-patient-programs-app:build: $ webpack --mode production
3
- @openmrs/esm-patient-programs-app:build: assets by chunk 1.19 MiB (id hint: vendors)
4
- @openmrs/esm-patient-programs-app:build:  asset 858.js 477 KiB [emitted] [minimized] [big] (id hint: vendors) 2 related assets
5
- @openmrs/esm-patient-programs-app:build:  asset 60.js 241 KiB [emitted] [minimized] (id hint: vendors) 2 related assets
6
- @openmrs/esm-patient-programs-app:build:  asset 635.js 228 KiB [emitted] [minimized] (id hint: vendors) 2 related assets
7
- @openmrs/esm-patient-programs-app:build:  asset 921.js 126 KiB [emitted] [minimized] (id hint: vendors) 2 related assets
8
- @openmrs/esm-patient-programs-app:build:  asset 402.js 85.5 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
9
- @openmrs/esm-patient-programs-app:build:  asset 796.js 59 KiB [emitted] [minimized] (id hint: vendors) 2 related assets
10
- @openmrs/esm-patient-programs-app:build: + 13 assets
11
- @openmrs/esm-patient-programs-app:build: orphan modules 9.3 MiB (javascript) 42 bytes (consume-shared) [orphan] 774 modules
12
- @openmrs/esm-patient-programs-app:build: runtime modules 18.7 KiB 14 modules
13
- @openmrs/esm-patient-programs-app:build: built modules 5.05 MiB (javascript) 294 bytes (share-init) 252 bytes (consume-shared) [built]
14
- @openmrs/esm-patient-programs-app:build:  modules by path ../../node_modules/ 4.27 MiB 136 modules
15
- @openmrs/esm-patient-programs-app:build:  modules by path ./ 249 KiB
16
- @openmrs/esm-patient-programs-app:build:  modules by path ./src/ 248 KiB 8 modules
17
- @openmrs/esm-patient-programs-app:build:  modules by path ./translations/ 1000 bytes 3 modules
18
- @openmrs/esm-patient-programs-app:build:  provide-module modules 294 bytes
3
+ @openmrs/esm-patient-programs-app:build: assets by chunk 1.37 MiB (id hint: vendors)
4
+ @openmrs/esm-patient-programs-app:build:  asset 858.js 474 KiB [emitted] [minimized] [big] (id hint: vendors) 1 related asset
5
+ @openmrs/esm-patient-programs-app:build:  asset 252.js 243 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
6
+ @openmrs/esm-patient-programs-app:build:  asset 635.js 228 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
7
+ @openmrs/esm-patient-programs-app:build:  asset 186.js 124 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
8
+ @openmrs/esm-patient-programs-app:build:  asset 294.js 114 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
9
+ @openmrs/esm-patient-programs-app:build:  asset 402.js 85.5 KiB [emitted] [minimized] (id hint: vendors)
10
+ @openmrs/esm-patient-programs-app:build:  asset 337.js 56.9 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
11
+ @openmrs/esm-patient-programs-app:build:  asset 206.js 45.4 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
12
+ @openmrs/esm-patient-programs-app:build:  asset 817.js 27.2 KiB [emitted] [minimized] (id hint: vendors) 1 related asset
13
+ @openmrs/esm-patient-programs-app:build:  asset 701.js 4.92 KiB [emitted] [minimized] (id hint: vendors)
14
+ @openmrs/esm-patient-programs-app:build: + 14 assets
15
+ @openmrs/esm-patient-programs-app:build: orphan modules 9.24 MiB (javascript) 42 bytes (consume-shared) [orphan] 836 modules
16
+ @openmrs/esm-patient-programs-app:build: runtime modules 19.9 KiB 15 modules
17
+ @openmrs/esm-patient-programs-app:build: built modules 5.49 MiB (javascript) 378 bytes (share-init) 378 bytes (consume-shared) [built]
18
+ @openmrs/esm-patient-programs-app:build:  modules by path ../../node_modules/ 5.37 MiB 157 modules
19
+ @openmrs/esm-patient-programs-app:build:  modules by path ./ 45.7 KiB 11 modules
20
+ @openmrs/esm-patient-programs-app:build:  provide-module modules 378 bytes
19
21
  @openmrs/esm-patient-programs-app:build:  modules by path provide shared module (default) @openmrs/ 84 bytes 2 modules
22
+ @openmrs/esm-patient-programs-app:build:  + 7 modules
23
+ @openmrs/esm-patient-programs-app:build:  consume-shared-module modules 378 bytes
24
+ @openmrs/esm-patient-programs-app:build:  modules by path consume shared module (default) @openmrs/ 126 bytes 3 modules
25
+ @openmrs/esm-patient-programs-app:build:  + 6 modules
26
+ @openmrs/esm-patient-programs-app:build:  modules by path ../esm-patient-common-lib/src/ 80.9 KiB
27
+ @openmrs/esm-patient-programs-app:build:  ../esm-patient-common-lib/src/index.ts + 31 modules 59.6 KiB [built] [code generated]
20
28
  @openmrs/esm-patient-programs-app:build:  + 5 modules
21
- @openmrs/esm-patient-programs-app:build:  consume-shared-module modules 252 bytes
22
- @openmrs/esm-patient-programs-app:build:  modules by path consume shared module (default) @openmrs/ 84 bytes 2 modules
23
- @openmrs/esm-patient-programs-app:build:  + 4 modules
24
29
  @openmrs/esm-patient-programs-app:build:  container entry 42 bytes [built] [code generated]
25
- @openmrs/esm-patient-programs-app:build:  ../esm-patient-common-lib/dist/openmrs-esm-patient-common-lib.js 553 KiB [built] [code generated]
26
- @openmrs/esm-patient-programs-app:build: 
27
- @openmrs/esm-patient-programs-app:build: LOG from ../../node_modules/sass-loader/dist/cjs.js sass-loader ../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!../../node_modules/sass-loader/dist/cjs.js!./src/programs/programs-form.scss
28
- @openmrs/esm-patient-programs-app:build: <w> Deprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
29
- @openmrs/esm-patient-programs-app:build: <w> 
30
- @openmrs/esm-patient-programs-app:build: <w> Recommendation: math.div($px, $carbon--base-font-size) or calc($px / $carbon--base-font-size)
31
- @openmrs/esm-patient-programs-app:build: <w> 
32
- @openmrs/esm-patient-programs-app:build: <w> More info and automated migrator: https://sass-lang.com/d/slash-div
33
- @openmrs/esm-patient-programs-app:build: <w> 
34
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/layout/_convert.scss 25:12 carbon--rem()
35
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/layout/_breakpoint.scss 16:23 @import
36
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss 8:9 @import
37
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_reset.scss 10:9 @import
38
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/_css--reset.scss 9:9 @import
39
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/_helper-mixins.scss 23:9 @import
40
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/_mixins.scss 8:9 @import
41
- @openmrs/esm-patient-programs-app:build: <w> src/programs/programs-form.scss 3:9 root stylesheet
42
- @openmrs/esm-patient-programs-app:build: <w> 
43
- @openmrs/esm-patient-programs-app:build: <w> Deprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
44
- @openmrs/esm-patient-programs-app:build: <w> 
45
- @openmrs/esm-patient-programs-app:build: <w> Recommendation: math.div($step - 2, 4) or calc(($step - 2) / 4)
46
- @openmrs/esm-patient-programs-app:build: <w> 
47
- @openmrs/esm-patient-programs-app:build: <w> More info and automated migrator: https://sass-lang.com/d/slash-div
48
- @openmrs/esm-patient-programs-app:build: <w> 
49
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_scale.scss 20:53 carbon--get-type-size()
50
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_scale.scss 31:17 @import
51
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss 10:9 @import
52
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_reset.scss 10:9 @import
53
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/_css--reset.scss 9:9 @import
54
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/_helper-mixins.scss 23:9 @import
55
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/_mixins.scss 8:9 @import
56
- @openmrs/esm-patient-programs-app:build: <w> src/programs/programs-form.scss 3:9 root stylesheet
57
- @openmrs/esm-patient-programs-app:build: <w> 
58
- @openmrs/esm-patient-programs-app:build: 
59
- @openmrs/esm-patient-programs-app:build: LOG from ../../node_modules/sass-loader/dist/cjs.js sass-loader ../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!../../node_modules/sass-loader/dist/cjs.js!./src/programs/programs-detailed-summary.scss
60
- @openmrs/esm-patient-programs-app:build: <w> Deprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
61
- @openmrs/esm-patient-programs-app:build: <w> 
62
- @openmrs/esm-patient-programs-app:build: <w> Recommendation: math.div($px, $carbon--base-font-size) or calc($px / $carbon--base-font-size)
63
- @openmrs/esm-patient-programs-app:build: <w> 
64
- @openmrs/esm-patient-programs-app:build: <w> More info and automated migrator: https://sass-lang.com/d/slash-div
65
- @openmrs/esm-patient-programs-app:build: <w> 
66
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/layout/_convert.scss 25:12 carbon--rem()
67
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/layout/_breakpoint.scss 16:23 @import
68
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss 8:9 @import
69
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_reset.scss 10:9 @import
70
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/_css--reset.scss 9:9 @import
71
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/_helper-mixins.scss 23:9 @import
72
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/_mixins.scss 8:9 @import
73
- @openmrs/esm-patient-programs-app:build: <w> src/programs/programs-detailed-summary.scss 4:9 root stylesheet
74
- @openmrs/esm-patient-programs-app:build: <w> 
75
- @openmrs/esm-patient-programs-app:build: <w> Deprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
76
- @openmrs/esm-patient-programs-app:build: <w> 
77
- @openmrs/esm-patient-programs-app:build: <w> Recommendation: math.div($step - 2, 4) or calc(($step - 2) / 4)
78
- @openmrs/esm-patient-programs-app:build: <w> 
79
- @openmrs/esm-patient-programs-app:build: <w> More info and automated migrator: https://sass-lang.com/d/slash-div
80
- @openmrs/esm-patient-programs-app:build: <w> 
81
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_scale.scss 20:53 carbon--get-type-size()
82
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_scale.scss 31:17 @import
83
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss 10:9 @import
84
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_reset.scss 10:9 @import
85
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/_css--reset.scss 9:9 @import
86
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/_helper-mixins.scss 23:9 @import
87
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/_mixins.scss 8:9 @import
88
- @openmrs/esm-patient-programs-app:build: <w> src/programs/programs-detailed-summary.scss 4:9 root stylesheet
89
- @openmrs/esm-patient-programs-app:build: <w> 
90
- @openmrs/esm-patient-programs-app:build: 
91
- @openmrs/esm-patient-programs-app:build: LOG from ../../node_modules/sass-loader/dist/cjs.js sass-loader ../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!../../node_modules/sass-loader/dist/cjs.js!./src/programs/programs-overview.scss
92
- @openmrs/esm-patient-programs-app:build: <w> Deprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
93
- @openmrs/esm-patient-programs-app:build: <w> 
94
- @openmrs/esm-patient-programs-app:build: <w> Recommendation: math.div($px, $carbon--base-font-size) or calc($px / $carbon--base-font-size)
95
- @openmrs/esm-patient-programs-app:build: <w> 
96
- @openmrs/esm-patient-programs-app:build: <w> More info and automated migrator: https://sass-lang.com/d/slash-div
97
- @openmrs/esm-patient-programs-app:build: <w> 
98
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/layout/_convert.scss 25:12 carbon--rem()
99
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/layout/_breakpoint.scss 16:23 @import
100
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss 8:9 @import
101
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_reset.scss 10:9 @import
102
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/_css--reset.scss 9:9 @import
103
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/_helper-mixins.scss 23:9 @import
104
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/_mixins.scss 8:9 @import
105
- @openmrs/esm-patient-programs-app:build: <w> src/programs/programs-overview.scss 3:9 root stylesheet
106
- @openmrs/esm-patient-programs-app:build: <w> 
107
- @openmrs/esm-patient-programs-app:build: <w> Deprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.
108
- @openmrs/esm-patient-programs-app:build: <w> 
109
- @openmrs/esm-patient-programs-app:build: <w> Recommendation: math.div($step - 2, 4) or calc(($step - 2) / 4)
110
- @openmrs/esm-patient-programs-app:build: <w> 
111
- @openmrs/esm-patient-programs-app:build: <w> More info and automated migrator: https://sass-lang.com/d/slash-div
112
- @openmrs/esm-patient-programs-app:build: <w> 
113
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_scale.scss 20:53 carbon--get-type-size()
114
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_scale.scss 31:17 @import
115
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss 10:9 @import
116
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_reset.scss 10:9 @import
117
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/_css--reset.scss 9:9 @import
118
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/_helper-mixins.scss 23:9 @import
119
- @openmrs/esm-patient-programs-app:build: <w> ../../node_modules/carbon-components/src/globals/scss/_mixins.scss 8:9 @import
120
- @openmrs/esm-patient-programs-app:build: <w> src/programs/programs-overview.scss 3:9 root stylesheet
121
- @openmrs/esm-patient-programs-app:build: <w> 
122
30
  @openmrs/esm-patient-programs-app:build: 
123
31
  @openmrs/esm-patient-programs-app:build: WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
124
32
  @openmrs/esm-patient-programs-app:build: This can impact web performance.
125
33
  @openmrs/esm-patient-programs-app:build: Assets:
126
- @openmrs/esm-patient-programs-app:build:  716.js (476 KiB)
127
- @openmrs/esm-patient-programs-app:build:  858.js (477 KiB)
34
+ @openmrs/esm-patient-programs-app:build:  858.js (474 KiB)
128
35
  @openmrs/esm-patient-programs-app:build: 
129
- @openmrs/esm-patient-programs-app:build: webpack 5.72.0 compiled with 1 warning in 151389 ms
36
+ @openmrs/esm-patient-programs-app:build: webpack 5.73.0 compiled with 1 warning in 172962 ms
package/dist/13.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_openmrs_esm_patient_programs_app=self.webpackChunk_openmrs_esm_patient_programs_app||[]).push([[13],{5351:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(9601),a=r.n(n),o=r(2609),l=r.n(o)()(a());l.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{padding:0;border:0;margin:0;font:inherit;font-size:100%;vertical-align:baseline}button,select,input,textarea{border-radius:0;font-family:inherit}input[type=text]::-ms-clear{display:none}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section{display:block}body{line-height:1}sup{vertical-align:super}sub{vertical-align:sub}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote::before,blockquote::after,q::before,q::after{content:\"\"}table{border-collapse:collapse;border-spacing:0}*{box-sizing:border-box}button{margin:0}html{font-size:100%}body{font-weight:400;font-family:'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}code{font-family:'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace}strong{font-weight:600}@media screen and (-ms-high-contrast: active){svg{fill:ButtonText}}h1{font-size:2.625rem;font-weight:300;line-height:1.199;letter-spacing:0}h2{font-size:2rem;font-weight:400;line-height:1.25;letter-spacing:0}h3{font-size:1.75rem;font-weight:400;line-height:1.29;letter-spacing:0}h4{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0}h5{font-size:1rem;font-weight:600;line-height:1.375;letter-spacing:0}h6{font-size:.875rem;font-weight:600;line-height:1.29;letter-spacing:.16px}p{font-size:1rem;font-weight:400;line-height:1.5;letter-spacing:0}a{color:#0f62fe}em{font-style:italic}@keyframes -esm-patient-programs__programs-detailed-summary__skeleton___vysuL{0%{opacity:.3;transform:scaleX(0);transform-origin:left}20%{opacity:1;transform:scaleX(1);transform-origin:left}28%{transform:scaleX(1);transform-origin:right}51%{transform:scaleX(0);transform-origin:right}58%{transform:scaleX(0);transform-origin:right}82%{transform:scaleX(1);transform-origin:right}83%{transform:scaleX(1);transform-origin:left}96%{transform:scaleX(0);transform-origin:left}100%{opacity:.3;transform:scaleX(0);transform-origin:left}}.-esm-patient-programs__programs-detailed-summary__widgetCard___q9_pO{border:1px solid #e0e0e0}",""]),l.locals={widgetCard:"-esm-patient-programs__programs-detailed-summary__widgetCard___q9_pO",skeleton:"-esm-patient-programs__programs-detailed-summary__skeleton___vysuL"};const i=l},6013:(e,t,r)=>{r.r(t),r.d(t,{default:()=>V});var n=r(9902),a=r.n(n),o=r(8011),l=r(3863),i=r(8827),s=r(819),d=r(321),m=r.n(d),u=r(1195),c=r.n(u),p=r(3275),g=r.n(p),f=r(7162),h=r.n(f),v=r(2094),b=r.n(v),y=r(757),_=r.n(y),E=r(5351),k={};k.styleTagTransform=_(),k.setAttributes=h(),k.insert=g().bind(null,"head"),k.domAPI=c(),k.insertStyleElement=b(),m()(E.Z,k);const w=E.Z&&E.Z.locals?E.Z.locals:void 0;var Z=r(3771),C=r(4924),P=r(4076),x=r(8580),z=r(1145),S=r(7030),q=r(160),T=r(5223),O=r(2965),X=r(364),M=r(7500),A=r(8345),D=r(1358),L=r(2427),B=r(3783),I=r(3066);function j(){return j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},j.apply(this,arguments)}const V=function(e){var t,r,n=e.patientUuid,d=(0,C.useTranslation)().t,m=d("programEnrollments","Program enrollments"),u=d("carePrograms","Care Programs"),c=(0,P.Bw)(n),p=c.data,g=c.isError,f=c.isLoading,h=c.isValidating,v=(0,P.oI)().data,b=(0,l.Z)(v,(function(e){return!(0,i.Z)((0,s.Z)(p,"program.uuid"),e.uuid)})),y=a().useMemo((function(){return[{key:"display",header:d("activePrograms","Active programs")},{key:"location",header:d("location","Location")},{key:"dateEnrolled",header:d("dateEnrolled","Date enrolled")},{key:"status",header:d("status","Status")}]}),[d]),_=a().useMemo((function(){return null==p?void 0:p.map((function(e){var t;return{id:e.uuid,display:e.display,location:null===(t=e.location)||void 0===t?void 0:t.display,dateEnrolled:(0,I.formatDatetime)(new Date(e.dateEnrolled)),status:e.dateCompleted?"".concat(d("completedOn","Completed On")," ").concat((0,I.formatDate)(new Date(e.dateCompleted))):d("active","Active")}}))}),[p,d]),E=a().useCallback((function(){return(0,Z.launchPatientWorkspace)("programs-form-workspace")}),[]);return f?a().createElement(x.Z,{role:"progressbar"}):g?a().createElement(Z.ErrorState,{error:g,headerTitle:u}):(null==p?void 0:p.length)?a().createElement("div",{className:w.widgetCard},a().createElement(Z.CardHeader,{title:u},a().createElement("span",null,h?a().createElement(z.Z,null):null),a().createElement(S.Z,{kind:"ghost",renderIcon:o.Z,iconDescription:"Add programs",onClick:E,disabled:(null==v?void 0:v.length)&&0===(null==b?void 0:b.length)},d("add","Add"))),a().createElement(q.Z,null,(null==v?void 0:v.length)&&0===(null==b?void 0:b.length)&&a().createElement(T.K0,{style:{minWidth:"100%",margin:"0rem",padding:"0rem"},kind:"info",lowContrast:!0,subtitle:d("noEligibleEnrollments","There are no more programs left to enroll this patient in"),title:d("fullyEnrolled","Enrolled in all programs")}),a().createElement(O.ZP,{rows:_,headers:y,isSortable:!0,size:"short"},(function(e){var n=e.rows,o=e.headers,l=e.getHeaderProps,i=e.getTableProps;return a().createElement(X.Z,j({},i(),{useZebraStyles:!0}),a().createElement(M.Z,null,a().createElement(A.Z,null,o.map((function(e){var r;return a().createElement(D.Z,j({className:"".concat(w.productiveHeading01," ").concat(w.text02)},l({header:e,isSortable:e.isSortable})),null!==(t=null===(r=e.header)||void 0===r?void 0:r.content)&&void 0!==t?t:e.header)})))),a().createElement(L.Z,null,n.map((function(e){return a().createElement(A.Z,{key:e.id},e.cells.map((function(e){var t;return a().createElement(B.Z,{key:e.id},null!==(r=null===(t=e.value)||void 0===t?void 0:t.content)&&void 0!==r?r:e.value)})))}))))})))):a().createElement(Z.EmptyState,{displayText:m,headerTitle:u,launchForm:E})}},4076:(e,t,r)=>{r.d(t,{Bw:()=>i,df:()=>d,o9:()=>l,oI:()=>s});var n=r(9857),a=r(3066),o=r(4200),l="custom:(uuid,display,program,dateEnrolled,dateCompleted,location:(uuid,display))";function i(e){var t,r=(0,n.ZP)("/ws/rest/v1/programenrollment?patient=".concat(e,"&v=").concat(l),a.openmrsFetch),i=r.data,s=r.error,d=r.isValidating,m=(null==i||null===(t=i.data)||void 0===t?void 0:t.results.length)>0?null==i?void 0:i.data.results.sort((function(e,t){return t.dateEnrolled>e.dateEnrolled?1:-1})):null;return{data:i?(0,o.Z)(m,(function(e){var t;return null==e||null===(t=e.program)||void 0===t?void 0:t.uuid})):null,isError:s,isLoading:!i&&!s,isValidating:d}}function s(){var e,t,r=(0,n.ZP)("/ws/rest/v1/program?v=custom:(uuid,display,allWorkflows,concept:(uuid,display))",a.openmrsFetch),o=r.data,l=r.error;return{data:(null==o||null===(e=o.data)||void 0===e||null===(t=e.results)||void 0===t?void 0:t.length)?o.data.results:null,isError:l,isLoading:!o&&!l}}function d(e,t){if(!e)return null;var r=e.program,n=e.patient,o=e.dateEnrolled,l=e.dateCompleted,i=e.location;return(0,a.openmrsObservableFetch)("/ws/rest/v1/programenrollment",{method:"POST",headers:{"Content-Type":"application/json"},body:{program:r,patient:n,dateEnrolled:o,dateCompleted:l,location:i},signal:t.signal})}}}]);
package/dist/145.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_openmrs_esm_patient_programs_app=self.webpackChunk_openmrs_esm_patient_programs_app||[]).push([[145],{1951:(e,t,r)=>{r.d(t,{Z:()=>l});var n=r(9601),a=r.n(n),o=r(2609),i=r.n(o)()(a());i.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{padding:0;border:0;margin:0;font:inherit;font-size:100%;vertical-align:baseline}button,select,input,textarea{border-radius:0;font-family:inherit}input[type=text]::-ms-clear{display:none}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section{display:block}body{line-height:1}sup{vertical-align:super}sub{vertical-align:sub}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote::before,blockquote::after,q::before,q::after{content:\"\"}table{border-collapse:collapse;border-spacing:0}*{box-sizing:border-box}button{margin:0}html{font-size:100%}body{font-weight:400;font-family:'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}code{font-family:'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace}strong{font-weight:600}@media screen and (-ms-high-contrast: active){svg{fill:ButtonText}}h1{font-size:2.625rem;font-weight:300;line-height:1.199;letter-spacing:0}h2{font-size:2rem;font-weight:400;line-height:1.25;letter-spacing:0}h3{font-size:1.75rem;font-weight:400;line-height:1.29;letter-spacing:0}h4{font-size:1.25rem;font-weight:400;line-height:1.4;letter-spacing:0}h5{font-size:1rem;font-weight:600;line-height:1.375;letter-spacing:0}h6{font-size:.875rem;font-weight:600;line-height:1.29;letter-spacing:.16px}p{font-size:1rem;font-weight:400;line-height:1.5;letter-spacing:0}a{color:#0f62fe}em{font-style:italic}@keyframes -esm-patient-programs__programs-form__skeleton____oCAx{0%{opacity:.3;transform:scaleX(0);transform-origin:left}20%{opacity:1;transform:scaleX(1);transform-origin:left}28%{transform:scaleX(1);transform-origin:right}51%{transform:scaleX(0);transform-origin:right}58%{transform:scaleX(0);transform-origin:right}82%{transform:scaleX(1);transform-origin:right}83%{transform:scaleX(1);transform-origin:left}96%{transform:scaleX(0);transform-origin:left}100%{opacity:.3;transform:scaleX(0);transform-origin:left}}.-esm-patient-programs__programs-form__selectContainer___SCnNW{display:flex;align-items:center}.-esm-patient-programs__programs-form__loading___KGmNP{margin-left:1rem;width:2rem;min-height:2.5rem}.-esm-patient-programs__programs-form__button___KPSt9{height:4rem;display:flex;align-content:flex-start;align-items:baseline;min-width:50%}.-esm-patient-programs__programs-form__tablet___yw5Wr{padding:1.5rem 1rem;background-color:#fff}.-esm-patient-programs__programs-form__desktop___RnK8C{padding:0rem}.-esm-patient-programs__programs-form__formContainer___lqbdm{margin:1rem}.-esm-patient-programs__programs-form__form___BLqPA{display:flex;flex-direction:column;justify-content:space-between;height:calc(100vh - 6rem)}",""]),i.locals={selectContainer:"-esm-patient-programs__programs-form__selectContainer___SCnNW",loading:"-esm-patient-programs__programs-form__loading___KGmNP",button:"-esm-patient-programs__programs-form__button___KPSt9",tablet:"-esm-patient-programs__programs-form__tablet___yw5Wr",desktop:"-esm-patient-programs__programs-form__desktop___RnK8C",formContainer:"-esm-patient-programs__programs-form__formContainer___lqbdm",form:"-esm-patient-programs__programs-form__form___BLqPA",skeleton:"-esm-patient-programs__programs-form__skeleton____oCAx"};const l=i},8145:(e,t,r)=>{r.r(t),r.d(t,{default:()=>j});var n=r(9902),a=r.n(n),o=r(3565),i=r.n(o),l=r(3863),s=r(8827),m=r(819),d=r(9857),u=r(4924),c=r(3066),p=r(7898),g=r(786),f=r(2810),_=r(5067),h=r(6642),b=r(182),v=r(6549),y=r(7030),w=r(4076),E=r(321),k=r.n(E),C=r(1195),x=r.n(C),S=r(3275),Z=r.n(S),T=r(7162),P=r.n(T),q=r(2094),A=r.n(q),D=r(757),I=r.n(D),N=r(1951),z={};z.styleTagTransform=I(),z.setAttributes=P(),z.insert=Z().bind(null,"head"),z.domAPI=x(),z.insertStyleElement=A(),k()(N.Z,z);const L=N.Z&&N.Z.locals?N.Z.locals:void 0;function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function B(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,l=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){l=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(l)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return X(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?X(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const j=function(e){var t,r,n=e.closeWorkspace,o=e.patientUuid,E=(0,u.useTranslation)().t,k="tablet"===(0,c.useLayoutType)(),C=(0,c.useSession)(),x=(0,c.useLocations)(),S=(0,d.kY)().mutate,Z=(0,w.oI)().data,T=(0,w.Bw)(o).data,P=(0,l.Z)(Z,(function(e){return!(0,s.Z)((0,m.Z)(T,"program.uuid"),e.uuid)})),q=B(a().useState(null),2),A=q[0],D=q[1],I=B(a().useState(new Date),2),N=I[0],z=I[1],X=B(a().useState(""),2),j=X[0],M=X[1],O=B(a().useState(""),2),K=O[0],W=O[1];!K&&(null==C||null===(t=C.sessionLocation)||void 0===t?void 0:t.uuid)&&W(null==C||null===(r=C.sessionLocation)||void 0===r?void 0:r.uuid);var F=a().useCallback((function(e){if(e.preventDefault(),j){var t={patient:o,program:j,dateEnrolled:N?i()(N).format():null,dateCompleted:A?i()(A).format():null,location:K},r=new AbortController,a=(0,w.df)(t,r).subscribe((function(e){201===e.status&&(n(),(0,c.showToast)({critical:!0,kind:"success",description:E("enrollmentNowVisible","It is now visible on the Programs page"),title:E("enrollmentSaved","Program enrollment saved")}),S("/ws/rest/v1/programenrollment?patient=".concat(o,"&v=").concat(w.o9)))}),(function(e){(0,c.createErrorHandler)(),(0,c.showNotification)({title:E("programEnrollmentSaveError","Error saving program enrollment"),kind:"error",critical:!0,description:null==e?void 0:e.message})}));return function(){a.unsubscribe()}}}),[n,A,N,S,o,j,E,K]);return a().createElement(p.Z,{className:L.form,onSubmit:F},a().createElement("div",{className:L.formContainer},a().createElement(g.Z,{style:{width:"50%"},legendText:E("program","Program")},a().createElement("div",{className:L.selectContainer},a().createElement(f.Z,{id:"program",invalidText:E("required","Required"),labelText:"",light:k,onChange:function(e){return M(e.target.value)}},j?null:a().createElement(_.Z,{text:E("chooseProgram","Choose a program"),value:""}),(null==P?void 0:P.length)>0&&P.map((function(e){return a().createElement(_.Z,{key:e.uuid,text:e.display,value:e.uuid},e.display)}))))),a().createElement(g.Z,{legendText:E("dateEnrolled","Date enrolled")},a().createElement(h.Z,{id:"enrollmentDate",datePickerType:"single",dateFormat:"d/m/Y",light:k,maxDate:(new Date).toISOString(),placeholder:"dd/mm/yyyy",onChange:function(e){var t=B(e,1)[0];return z(t)},value:N},a().createElement(b.Z,{id:"enrollmentDateInput",labelText:""}))),a().createElement(g.Z,{legendText:E("dateCompleted","Date completed")},a().createElement(h.Z,{id:"completionDate",datePickerType:"single",dateFormat:"d/m/Y",light:k,minDate:new Date(N).toISOString(),maxDate:(new Date).toISOString(),placeholder:"dd/mm/yyyy",onChange:function(e){var t=B(e,1)[0];return D(t)},value:A},a().createElement(b.Z,{id:"completionDateInput",labelText:""}))),a().createElement(g.Z,{style:{width:"50%"},legendText:E("enrollmentLocation","Enrollment location")},a().createElement(f.Z,{id:"location",invalidText:"Required",labelText:"",light:k,onChange:function(e){return W(e.target.value)},value:K},K?null:a().createElement(_.Z,{text:E("chooseLocation","Choose a location"),value:""}),(null==x?void 0:x.length)>0&&x.map((function(e){return a().createElement(_.Z,{key:e.uuid,text:e.display,value:e.uuid},e.display)}))))),a().createElement(v.Z,{className:k?L.tablet:L.desktop},a().createElement(y.Z,{className:L.button,kind:"secondary",onClick:function(){return n()}},E("cancel","Cancel")),a().createElement(y.Z,{className:L.button,kind:"primary",disabled:!j,type:"submit"},E("saveAndClose","Save and close"))))}},4076:(e,t,r)=>{r.d(t,{Bw:()=>l,df:()=>m,o9:()=>i,oI:()=>s});var n=r(9857),a=r(3066),o=r(4200),i="custom:(uuid,display,program,dateEnrolled,dateCompleted,location:(uuid,display))";function l(e){var t,r=(0,n.ZP)("/ws/rest/v1/programenrollment?patient=".concat(e,"&v=").concat(i),a.openmrsFetch),l=r.data,s=r.error,m=r.isValidating,d=(null==l||null===(t=l.data)||void 0===t?void 0:t.results.length)>0?null==l?void 0:l.data.results.sort((function(e,t){return t.dateEnrolled>e.dateEnrolled?1:-1})):null;return{data:l?(0,o.Z)(d,(function(e){var t;return null==e||null===(t=e.program)||void 0===t?void 0:t.uuid})):null,isError:s,isLoading:!l&&!s,isValidating:m}}function s(){var e,t,r=(0,n.ZP)("/ws/rest/v1/program?v=custom:(uuid,display,allWorkflows,concept:(uuid,display))",a.openmrsFetch),o=r.data,i=r.error;return{data:(null==o||null===(e=o.data)||void 0===e||null===(t=e.results)||void 0===t?void 0:t.length)?o.data.results:null,isError:i,isLoading:!o&&!i}}function m(e,t){if(!e)return null;var r=e.program,n=e.patient,o=e.dateEnrolled,i=e.dateCompleted,l=e.location;return(0,a.openmrsObservableFetch)("/ws/rest/v1/programenrollment",{method:"POST",headers:{"Content-Type":"application/json"},body:{program:r,patient:n,dateEnrolled:o,dateCompleted:i,location:l},signal:t.signal})}}}]);