@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.
- package/.turbo/turbo-build.log +27 -120
- package/dist/13.js +1 -0
- package/dist/145.js +1 -0
- package/dist/186.js +2 -0
- package/dist/{921.js.LICENSE.txt → 186.js.LICENSE.txt} +0 -0
- package/dist/206.js +2 -0
- package/dist/206.js.LICENSE.txt +14 -0
- package/dist/252.js +2 -0
- package/dist/{60.js.LICENSE.txt → 252.js.LICENSE.txt} +0 -0
- package/dist/294.js +2 -0
- package/dist/294.js.LICENSE.txt +23 -0
- package/dist/337.js +2 -0
- package/dist/{796.js.LICENSE.txt → 337.js.LICENSE.txt} +0 -0
- package/dist/373.js +1 -2
- package/dist/402.js +1 -2
- package/dist/622.js +1 -0
- package/dist/635.js +1 -2
- package/dist/692.js +1 -0
- package/dist/701.js +1 -0
- package/dist/76.js +1 -2
- package/dist/784.js +1 -2
- package/dist/817.js +2 -0
- package/dist/817.js.LICENSE.txt +8 -0
- package/dist/858.js +1 -2
- package/dist/879.js +1 -2
- package/dist/93.js +1 -0
- package/dist/932.js +1 -2
- package/dist/openmrs-esm-patient-programs-app.js +1 -1
- package/dist/openmrs-esm-patient-programs-app.js.buildmanifest.json +235 -129
- package/dist/openmrs-esm-patient-programs-app.old +1 -2
- package/package.json +3 -3
- package/dist/344.js +0 -2
- package/dist/344.js.map +0 -1
- package/dist/373.js.map +0 -1
- package/dist/402.js.map +0 -1
- package/dist/511.js +0 -2
- package/dist/511.js.map +0 -1
- package/dist/593.js +0 -2
- package/dist/593.js.map +0 -1
- package/dist/60.js +0 -3
- package/dist/60.js.map +0 -1
- package/dist/635.js.map +0 -1
- package/dist/716.js +0 -2
- package/dist/716.js.map +0 -1
- package/dist/76.js.map +0 -1
- package/dist/784.js.map +0 -1
- package/dist/796.js +0 -3
- package/dist/796.js.map +0 -1
- package/dist/858.js.map +0 -1
- package/dist/879.js.map +0 -1
- package/dist/921.js +0 -3
- package/dist/921.js.map +0 -1
- package/dist/932.js.map +0 -1
- package/dist/openmrs-esm-patient-programs-app.js.map +0 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,129 +1,36 @@
|
|
|
1
|
-
|
|
1
|
+
@openmrs/esm-patient-programs-app:build: cache hit, replaying output [2m0e1072e92040262c[0m
|
|
2
2
|
[34m@openmrs/esm-patient-programs-app:build: [0m$ webpack --mode production
|
|
3
|
-
[34m@openmrs/esm-patient-programs-app:build: [0massets by chunk 1.
|
|
4
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m asset [1m[33m858.js[39m[22m [1m[
|
|
5
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m asset [1m[
|
|
6
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m asset [1m[32m635.js[39m[22m 228 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors)
|
|
7
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m asset [1m[
|
|
8
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m asset [1m[
|
|
9
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m asset [1m[
|
|
10
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m
|
|
11
|
-
[34m@openmrs/esm-patient-programs-app:build: [
|
|
12
|
-
[34m@openmrs/esm-patient-programs-app:build: [
|
|
13
|
-
[34m@openmrs/esm-patient-programs-app:build: [
|
|
14
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m
|
|
15
|
-
[34m@openmrs/esm-patient-programs-app:build: [
|
|
16
|
-
[34m@openmrs/esm-patient-programs-app:build: [
|
|
17
|
-
[34m@openmrs/esm-patient-programs-app:build: [
|
|
18
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m
|
|
3
|
+
[34m@openmrs/esm-patient-programs-app:build: [0massets by chunk 1.37 MiB (id hint: vendors)
|
|
4
|
+
[34m@openmrs/esm-patient-programs-app:build: [0m asset [1m[33m858.js[39m[22m [1m[33m474 KiB[39m[22m [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m [1m[33m[big][39m[22m (id hint: vendors) 1 related asset
|
|
5
|
+
[34m@openmrs/esm-patient-programs-app:build: [0m asset [1m[32m252.js[39m[22m 243 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
6
|
+
[34m@openmrs/esm-patient-programs-app:build: [0m asset [1m[32m635.js[39m[22m 228 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
7
|
+
[34m@openmrs/esm-patient-programs-app:build: [0m asset [1m[32m186.js[39m[22m 124 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
8
|
+
[34m@openmrs/esm-patient-programs-app:build: [0m asset [1m[32m294.js[39m[22m 114 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
9
|
+
[34m@openmrs/esm-patient-programs-app:build: [0m asset [1m[32m402.js[39m[22m 85.5 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors)
|
|
10
|
+
[34m@openmrs/esm-patient-programs-app:build: [0m asset [1m[32m337.js[39m[22m 56.9 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
11
|
+
[34m@openmrs/esm-patient-programs-app:build: [0m asset [1m[32m206.js[39m[22m 45.4 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
12
|
+
[34m@openmrs/esm-patient-programs-app:build: [0m asset [1m[32m817.js[39m[22m 27.2 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 1 related asset
|
|
13
|
+
[34m@openmrs/esm-patient-programs-app:build: [0m asset [1m[32m701.js[39m[22m 4.92 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors)
|
|
14
|
+
[34m@openmrs/esm-patient-programs-app:build: [0m+ 14 assets
|
|
15
|
+
[34m@openmrs/esm-patient-programs-app:build: [0morphan modules 9.24 MiB (javascript) 42 bytes (consume-shared) [1m[33m[orphan][39m[22m 836 modules
|
|
16
|
+
[34m@openmrs/esm-patient-programs-app:build: [0mruntime modules 19.9 KiB 15 modules
|
|
17
|
+
[34m@openmrs/esm-patient-programs-app:build: [0mbuilt modules 5.49 MiB (javascript) 378 bytes (share-init) 378 bytes (consume-shared) [1m[33m[built][39m[22m
|
|
18
|
+
[34m@openmrs/esm-patient-programs-app:build: [0m modules by path [1m../../node_modules/[39m[22m 5.37 MiB 157 modules
|
|
19
|
+
[34m@openmrs/esm-patient-programs-app:build: [0m modules by path [1m./[39m[22m 45.7 KiB 11 modules
|
|
20
|
+
[34m@openmrs/esm-patient-programs-app:build: [0m provide-module modules 378 bytes
|
|
19
21
|
[34m@openmrs/esm-patient-programs-app:build: [0m modules by path [1mprovide shared module (default) @openmrs/[39m[22m 84 bytes 2 modules
|
|
22
|
+
[34m@openmrs/esm-patient-programs-app:build: [0m + 7 modules
|
|
23
|
+
[34m@openmrs/esm-patient-programs-app:build: [0m consume-shared-module modules 378 bytes
|
|
24
|
+
[34m@openmrs/esm-patient-programs-app:build: [0m modules by path [1mconsume shared module (default) @openmrs/[39m[22m 126 bytes 3 modules
|
|
25
|
+
[34m@openmrs/esm-patient-programs-app:build: [0m + 6 modules
|
|
26
|
+
[34m@openmrs/esm-patient-programs-app:build: [0m modules by path [1m../esm-patient-common-lib/src/[39m[22m 80.9 KiB
|
|
27
|
+
[34m@openmrs/esm-patient-programs-app:build: [0m [1m../esm-patient-common-lib/src/index.ts + 31 modules[39m[22m 59.6 KiB [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
20
28
|
[34m@openmrs/esm-patient-programs-app:build: [0m + 5 modules
|
|
21
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m consume-shared-module modules 252 bytes
|
|
22
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m modules by path [1mconsume shared module (default) @openmrs/[39m[22m 84 bytes 2 modules
|
|
23
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m + 4 modules
|
|
24
29
|
[34m@openmrs/esm-patient-programs-app:build: [0m [1mcontainer entry[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
25
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m [1m../esm-patient-common-lib/dist/openmrs-esm-patient-common-lib.js[39m[22m 553 KiB [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
26
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m
|
|
27
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m[1mLOG 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[39m[22m
|
|
28
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33mDeprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.[39m[22m
|
|
29
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m[39m[22m
|
|
30
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33mRecommendation: math.div($px, $carbon--base-font-size) or calc($px / $carbon--base-font-size)[39m[22m
|
|
31
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m[39m[22m
|
|
32
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33mMore info and automated migrator: https://sass-lang.com/d/slash-div[39m[22m
|
|
33
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m[39m[22m
|
|
34
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/layout/_convert.scss 25:12 carbon--rem()[39m[22m
|
|
35
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/layout/_breakpoint.scss 16:23 @import[39m[22m
|
|
36
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss 8:9 @import[39m[22m
|
|
37
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_reset.scss 10:9 @import[39m[22m
|
|
38
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_css--reset.scss 9:9 @import[39m[22m
|
|
39
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_helper-mixins.scss 23:9 @import[39m[22m
|
|
40
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_mixins.scss 8:9 @import[39m[22m
|
|
41
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33msrc/programs/programs-form.scss 3:9 root stylesheet[39m[22m
|
|
42
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m[39m[22m
|
|
43
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33mDeprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.[39m[22m
|
|
44
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m[39m[22m
|
|
45
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33mRecommendation: math.div($step - 2, 4) or calc(($step - 2) / 4)[39m[22m
|
|
46
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m[39m[22m
|
|
47
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33mMore info and automated migrator: https://sass-lang.com/d/slash-div[39m[22m
|
|
48
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m[39m[22m
|
|
49
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_scale.scss 20:53 carbon--get-type-size()[39m[22m
|
|
50
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_scale.scss 31:17 @import[39m[22m
|
|
51
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss 10:9 @import[39m[22m
|
|
52
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_reset.scss 10:9 @import[39m[22m
|
|
53
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_css--reset.scss 9:9 @import[39m[22m
|
|
54
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_helper-mixins.scss 23:9 @import[39m[22m
|
|
55
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_mixins.scss 8:9 @import[39m[22m
|
|
56
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33msrc/programs/programs-form.scss 3:9 root stylesheet[39m[22m
|
|
57
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m[39m[22m
|
|
58
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m
|
|
59
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m[1mLOG 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[39m[22m
|
|
60
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33mDeprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.[39m[22m
|
|
61
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m[39m[22m
|
|
62
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33mRecommendation: math.div($px, $carbon--base-font-size) or calc($px / $carbon--base-font-size)[39m[22m
|
|
63
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m[39m[22m
|
|
64
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33mMore info and automated migrator: https://sass-lang.com/d/slash-div[39m[22m
|
|
65
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m[39m[22m
|
|
66
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/layout/_convert.scss 25:12 carbon--rem()[39m[22m
|
|
67
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/layout/_breakpoint.scss 16:23 @import[39m[22m
|
|
68
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss 8:9 @import[39m[22m
|
|
69
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_reset.scss 10:9 @import[39m[22m
|
|
70
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_css--reset.scss 9:9 @import[39m[22m
|
|
71
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_helper-mixins.scss 23:9 @import[39m[22m
|
|
72
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_mixins.scss 8:9 @import[39m[22m
|
|
73
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33msrc/programs/programs-detailed-summary.scss 4:9 root stylesheet[39m[22m
|
|
74
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m[39m[22m
|
|
75
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33mDeprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.[39m[22m
|
|
76
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m[39m[22m
|
|
77
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33mRecommendation: math.div($step - 2, 4) or calc(($step - 2) / 4)[39m[22m
|
|
78
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m[39m[22m
|
|
79
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33mMore info and automated migrator: https://sass-lang.com/d/slash-div[39m[22m
|
|
80
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m[39m[22m
|
|
81
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_scale.scss 20:53 carbon--get-type-size()[39m[22m
|
|
82
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_scale.scss 31:17 @import[39m[22m
|
|
83
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss 10:9 @import[39m[22m
|
|
84
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_reset.scss 10:9 @import[39m[22m
|
|
85
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_css--reset.scss 9:9 @import[39m[22m
|
|
86
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_helper-mixins.scss 23:9 @import[39m[22m
|
|
87
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_mixins.scss 8:9 @import[39m[22m
|
|
88
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33msrc/programs/programs-detailed-summary.scss 4:9 root stylesheet[39m[22m
|
|
89
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m[39m[22m
|
|
90
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m
|
|
91
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m[1mLOG 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[39m[22m
|
|
92
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33mDeprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.[39m[22m
|
|
93
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m[39m[22m
|
|
94
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33mRecommendation: math.div($px, $carbon--base-font-size) or calc($px / $carbon--base-font-size)[39m[22m
|
|
95
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m[39m[22m
|
|
96
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33mMore info and automated migrator: https://sass-lang.com/d/slash-div[39m[22m
|
|
97
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m[39m[22m
|
|
98
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/layout/_convert.scss 25:12 carbon--rem()[39m[22m
|
|
99
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/layout/_breakpoint.scss 16:23 @import[39m[22m
|
|
100
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss 8:9 @import[39m[22m
|
|
101
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_reset.scss 10:9 @import[39m[22m
|
|
102
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_css--reset.scss 9:9 @import[39m[22m
|
|
103
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_helper-mixins.scss 23:9 @import[39m[22m
|
|
104
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_mixins.scss 8:9 @import[39m[22m
|
|
105
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33msrc/programs/programs-overview.scss 3:9 root stylesheet[39m[22m
|
|
106
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m[39m[22m
|
|
107
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33mDeprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.[39m[22m
|
|
108
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m[39m[22m
|
|
109
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33mRecommendation: math.div($step - 2, 4) or calc(($step - 2) / 4)[39m[22m
|
|
110
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m[39m[22m
|
|
111
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33mMore info and automated migrator: https://sass-lang.com/d/slash-div[39m[22m
|
|
112
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m[39m[22m
|
|
113
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_scale.scss 20:53 carbon--get-type-size()[39m[22m
|
|
114
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_scale.scss 31:17 @import[39m[22m
|
|
115
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss 10:9 @import[39m[22m
|
|
116
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_reset.scss 10:9 @import[39m[22m
|
|
117
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_css--reset.scss 9:9 @import[39m[22m
|
|
118
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_helper-mixins.scss 23:9 @import[39m[22m
|
|
119
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_mixins.scss 8:9 @import[39m[22m
|
|
120
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33msrc/programs/programs-overview.scss 3:9 root stylesheet[39m[22m
|
|
121
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m<w> [1m[33m[39m[22m
|
|
122
30
|
[34m@openmrs/esm-patient-programs-app:build: [0m
|
|
123
31
|
[34m@openmrs/esm-patient-programs-app:build: [0m[1m[33mWARNING[39m[22m in [1masset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
|
|
124
32
|
[34m@openmrs/esm-patient-programs-app:build: [0mThis can impact web performance.
|
|
125
33
|
[34m@openmrs/esm-patient-programs-app:build: [0mAssets:
|
|
126
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m
|
|
127
|
-
[34m@openmrs/esm-patient-programs-app:build: [0m 858.js (477 KiB)[39m[22m
|
|
34
|
+
[34m@openmrs/esm-patient-programs-app:build: [0m 858.js (474 KiB)[39m[22m
|
|
128
35
|
[34m@openmrs/esm-patient-programs-app:build: [0m
|
|
129
|
-
[34m@openmrs/esm-patient-programs-app:build: [0mwebpack 5.
|
|
36
|
+
[34m@openmrs/esm-patient-programs-app:build: [0mwebpack 5.73.0 compiled with [1m[33m1 warning[39m[22m 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})}}}]);
|