@openmrs/esm-patient-programs-app 3.1.1-pre.1455 → 3.1.1-pre.1471
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 +14 -14
- package/dist/375.js +1 -1
- package/dist/375.js.map +1 -1
- package/dist/76.js +1 -1
- package/dist/76.js.map +1 -1
- package/dist/{540.js → 960.js} +2 -2
- package/dist/960.js.map +1 -0
- package/dist/openmrs-esm-patient-programs-app.js +1 -1
- package/dist/openmrs-esm-patient-programs-app.js.buildmanifest.json +33 -33
- package/dist/openmrs-esm-patient-programs-app.js.map +1 -1
- package/dist/openmrs-esm-patient-programs-app.old +1 -1
- package/package.json +3 -3
- package/src/dashboard.meta.tsx +0 -1
- package/src/programs/programs-overview.component.tsx +2 -2
- package/dist/540.js.map +0 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
@openmrs/esm-patient-programs-app:build: cache hit, replaying output
|
|
1
|
+
@openmrs/esm-patient-programs-app:build: cache hit, replaying output 90c3be6d6eaee7c8
|
|
2
2
|
@openmrs/esm-patient-programs-app:build: $ webpack --mode production
|
|
3
3
|
@openmrs/esm-patient-programs-app:build: assets by chunk 1.22 MiB (id hint: vendors)
|
|
4
4
|
@openmrs/esm-patient-programs-app:build: asset [1m[33m858.js[39m[22m [1m[33m403 KiB[39m[22m [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m [1m[33m[big][39m[22m (id hint: vendors) 2 related assets
|
|
5
5
|
@openmrs/esm-patient-programs-app:build: asset [1m[32m252.js[39m[22m 243 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (id hint: vendors) 2 related assets
|
|
6
6
|
@openmrs/esm-patient-programs-app:build: + 8 assets
|
|
7
|
-
@openmrs/esm-patient-programs-app:build: asset [1m[
|
|
7
|
+
@openmrs/esm-patient-programs-app:build: asset [1m[33m960.js[39m[22m [1m[33m337 KiB[39m[22m [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m [1m[33m[big][39m[22m 1 related asset
|
|
8
8
|
@openmrs/esm-patient-programs-app:build: asset [1m[32m66.js[39m[22m 96.3 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m 1 related asset
|
|
9
9
|
@openmrs/esm-patient-programs-app:build: asset [1m[32m375.js[39m[22m 43.6 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m 1 related asset
|
|
10
10
|
@openmrs/esm-patient-programs-app:build: asset [1m[32m377.js[39m[22m 43.3 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m 1 related asset
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
@openmrs/esm-patient-programs-app:build: asset [1m[32mopenmrs-esm-patient-programs-app.js[39m[22m 7.99 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m (name: @openmrs/esm-patient-programs-app) 1 related asset
|
|
13
13
|
@openmrs/esm-patient-programs-app:build: asset [1m[32m784.js[39m[22m 7.19 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m 2 related assets
|
|
14
14
|
@openmrs/esm-patient-programs-app:build: asset [1m[32m879.js[39m[22m 6.39 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m 1 related asset
|
|
15
|
-
@openmrs/esm-patient-programs-app:build: asset [1m[32m76.js[39m[22m 1.
|
|
15
|
+
@openmrs/esm-patient-programs-app:build: asset [1m[32m76.js[39m[22m 1.65 KiB [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m 1 related asset
|
|
16
16
|
@openmrs/esm-patient-programs-app:build: asset [1m[32m574.js[39m[22m 992 bytes [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m
|
|
17
17
|
@openmrs/esm-patient-programs-app:build: asset [1m[32m757.js[39m[22m 160 bytes [1m[32m[emitted][39m[22m [1m[32m[minimized][39m[22m
|
|
18
|
-
@openmrs/esm-patient-programs-app:build: orphan modules 9.14 MiB (javascript) 42 bytes (consume-shared) [1m[33m[orphan][39m[22m
|
|
18
|
+
@openmrs/esm-patient-programs-app:build: orphan modules 9.14 MiB (javascript) 42 bytes (consume-shared) [1m[33m[orphan][39m[22m 847 modules
|
|
19
19
|
@openmrs/esm-patient-programs-app:build: runtime modules 19.5 KiB 14 modules
|
|
20
20
|
@openmrs/esm-patient-programs-app:build: built modules 5.23 MiB (javascript) 336 bytes (share-init) 336 bytes (consume-shared) [1m[33m[built][39m[22m
|
|
21
21
|
@openmrs/esm-patient-programs-app:build: modules by path [1m../../node_modules/[39m[22m 4.67 MiB 148 modules
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
@openmrs/esm-patient-programs-app:build: consume-shared-module modules 336 bytes
|
|
27
27
|
@openmrs/esm-patient-programs-app:build: modules by path [1mconsume shared module (default) @openmrs/[39m[22m 126 bytes 3 modules
|
|
28
28
|
@openmrs/esm-patient-programs-app:build: + 5 modules
|
|
29
|
-
@openmrs/esm-patient-programs-app:build: modules by path [1m../esm-patient-common-lib/src/[39m[22m
|
|
30
|
-
@openmrs/esm-patient-programs-app:build: [1m../esm-patient-common-lib/src/index.ts +
|
|
29
|
+
@openmrs/esm-patient-programs-app:build: modules by path [1m../esm-patient-common-lib/src/[39m[22m 371 KiB
|
|
30
|
+
@openmrs/esm-patient-programs-app:build: [1m../esm-patient-common-lib/src/index.ts + 30 modules[39m[22m 54.7 KiB [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
31
31
|
@openmrs/esm-patient-programs-app:build: + 4 modules
|
|
32
32
|
@openmrs/esm-patient-programs-app:build: [1mcontainer entry[39m[22m 42 bytes [1m[33m[built][39m[22m [1m[33m[code generated][39m[22m
|
|
33
33
|
@openmrs/esm-patient-programs-app:build:
|
|
34
|
-
@openmrs/esm-patient-programs-app:build: [1mLOG from ../../node_modules/openmrs/node_modules/sass-loader/dist/cjs.js sass-loader ../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!../../node_modules/openmrs/node_modules/sass-loader/dist/cjs.js!./src/programs/programs-
|
|
34
|
+
@openmrs/esm-patient-programs-app:build: [1mLOG from ../../node_modules/openmrs/node_modules/sass-loader/dist/cjs.js sass-loader ../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!../../node_modules/openmrs/node_modules/sass-loader/dist/cjs.js!./src/programs/programs-form.scss[39m[22m
|
|
35
35
|
@openmrs/esm-patient-programs-app:build: <w> [1m[33mDeprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.[39m[22m
|
|
36
36
|
@openmrs/esm-patient-programs-app:build: <w> [1m[33m[39m[22m
|
|
37
37
|
@openmrs/esm-patient-programs-app:build: <w> [1m[33mRecommendation: math.div($px, $carbon--base-font-size) or calc($px / $carbon--base-font-size)[39m[22m
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
@openmrs/esm-patient-programs-app:build: <w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_css--reset.scss 9:9 @import[39m[22m
|
|
46
46
|
@openmrs/esm-patient-programs-app:build: <w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_helper-mixins.scss 23:9 @import[39m[22m
|
|
47
47
|
@openmrs/esm-patient-programs-app:build: <w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_mixins.scss 8:9 @import[39m[22m
|
|
48
|
-
@openmrs/esm-patient-programs-app:build: <w> [1m[33msrc/programs/programs-
|
|
48
|
+
@openmrs/esm-patient-programs-app:build: <w> [1m[33msrc/programs/programs-form.scss 3:9 root stylesheet[39m[22m
|
|
49
49
|
@openmrs/esm-patient-programs-app:build: <w> [1m[33m[39m[22m
|
|
50
50
|
@openmrs/esm-patient-programs-app:build: <w> [1m[33mDeprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.[39m[22m
|
|
51
51
|
@openmrs/esm-patient-programs-app:build: <w> [1m[33m[39m[22m
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
@openmrs/esm-patient-programs-app:build: <w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_css--reset.scss 9:9 @import[39m[22m
|
|
61
61
|
@openmrs/esm-patient-programs-app:build: <w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_helper-mixins.scss 23:9 @import[39m[22m
|
|
62
62
|
@openmrs/esm-patient-programs-app:build: <w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_mixins.scss 8:9 @import[39m[22m
|
|
63
|
-
@openmrs/esm-patient-programs-app:build: <w> [1m[33msrc/programs/programs-
|
|
63
|
+
@openmrs/esm-patient-programs-app:build: <w> [1m[33msrc/programs/programs-form.scss 3:9 root stylesheet[39m[22m
|
|
64
64
|
@openmrs/esm-patient-programs-app:build: <w> [1m[33m[39m[22m
|
|
65
65
|
@openmrs/esm-patient-programs-app:build:
|
|
66
66
|
@openmrs/esm-patient-programs-app:build: [1mLOG from ../../node_modules/openmrs/node_modules/sass-loader/dist/cjs.js sass-loader ../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!../../node_modules/openmrs/node_modules/sass-loader/dist/cjs.js!./src/programs/programs-overview.scss[39m[22m
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
@openmrs/esm-patient-programs-app:build: <w> [1m[33msrc/programs/programs-overview.scss 3:9 root stylesheet[39m[22m
|
|
96
96
|
@openmrs/esm-patient-programs-app:build: <w> [1m[33m[39m[22m
|
|
97
97
|
@openmrs/esm-patient-programs-app:build:
|
|
98
|
-
@openmrs/esm-patient-programs-app:build: [1mLOG from ../../node_modules/openmrs/node_modules/sass-loader/dist/cjs.js sass-loader ../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!../../node_modules/openmrs/node_modules/sass-loader/dist/cjs.js!./src/programs/programs-
|
|
98
|
+
@openmrs/esm-patient-programs-app:build: [1mLOG from ../../node_modules/openmrs/node_modules/sass-loader/dist/cjs.js sass-loader ../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!../../node_modules/openmrs/node_modules/sass-loader/dist/cjs.js!./src/programs/programs-detailed-summary.scss[39m[22m
|
|
99
99
|
@openmrs/esm-patient-programs-app:build: <w> [1m[33mDeprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.[39m[22m
|
|
100
100
|
@openmrs/esm-patient-programs-app:build: <w> [1m[33m[39m[22m
|
|
101
101
|
@openmrs/esm-patient-programs-app:build: <w> [1m[33mRecommendation: math.div($px, $carbon--base-font-size) or calc($px / $carbon--base-font-size)[39m[22m
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
@openmrs/esm-patient-programs-app:build: <w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_css--reset.scss 9:9 @import[39m[22m
|
|
110
110
|
@openmrs/esm-patient-programs-app:build: <w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_helper-mixins.scss 23:9 @import[39m[22m
|
|
111
111
|
@openmrs/esm-patient-programs-app:build: <w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_mixins.scss 8:9 @import[39m[22m
|
|
112
|
-
@openmrs/esm-patient-programs-app:build: <w> [1m[33msrc/programs/programs-
|
|
112
|
+
@openmrs/esm-patient-programs-app:build: <w> [1m[33msrc/programs/programs-detailed-summary.scss 4:9 root stylesheet[39m[22m
|
|
113
113
|
@openmrs/esm-patient-programs-app:build: <w> [1m[33m[39m[22m
|
|
114
114
|
@openmrs/esm-patient-programs-app:build: <w> [1m[33mDeprecation Using / for division outside of calc() is deprecated and will be removed in Dart Sass 2.0.0.[39m[22m
|
|
115
115
|
@openmrs/esm-patient-programs-app:build: <w> [1m[33m[39m[22m
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
@openmrs/esm-patient-programs-app:build: <w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_css--reset.scss 9:9 @import[39m[22m
|
|
125
125
|
@openmrs/esm-patient-programs-app:build: <w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_helper-mixins.scss 23:9 @import[39m[22m
|
|
126
126
|
@openmrs/esm-patient-programs-app:build: <w> [1m[33m../../node_modules/carbon-components/src/globals/scss/_mixins.scss 8:9 @import[39m[22m
|
|
127
|
-
@openmrs/esm-patient-programs-app:build: <w> [1m[33msrc/programs/programs-
|
|
127
|
+
@openmrs/esm-patient-programs-app:build: <w> [1m[33msrc/programs/programs-detailed-summary.scss 4:9 root stylesheet[39m[22m
|
|
128
128
|
@openmrs/esm-patient-programs-app:build: <w> [1m[33m[39m[22m
|
|
129
129
|
@openmrs/esm-patient-programs-app:build:
|
|
130
130
|
@openmrs/esm-patient-programs-app:build: [1mLOG from ../../node_modules/openmrs/node_modules/sass-loader/dist/cjs.js sass-loader ../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!../../node_modules/openmrs/node_modules/sass-loader/dist/cjs.js!../esm-patient-common-lib/src/pagination/pagination.component.scss[39m[22m
|
|
@@ -280,7 +280,7 @@
|
|
|
280
280
|
@openmrs/esm-patient-programs-app:build: [1m[33mWARNING[39m[22m in [1masset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
|
|
281
281
|
@openmrs/esm-patient-programs-app:build: This can impact web performance.
|
|
282
282
|
@openmrs/esm-patient-programs-app:build: Assets:
|
|
283
|
-
@openmrs/esm-patient-programs-app:build:
|
|
283
|
+
@openmrs/esm-patient-programs-app:build: 960.js (337 KiB)
|
|
284
284
|
@openmrs/esm-patient-programs-app:build: 858.js (403 KiB)[39m[22m
|
|
285
285
|
@openmrs/esm-patient-programs-app:build:
|
|
286
|
-
@openmrs/esm-patient-programs-app:build: webpack 5.70.0 compiled with [1m[33m1 warning[39m[22m in
|
|
286
|
+
@openmrs/esm-patient-programs-app:build: webpack 5.70.0 compiled with [1m[33m1 warning[39m[22m in 304437 ms
|
package/dist/375.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_openmrs_esm_patient_programs_app=self.webpackChunk_openmrs_esm_patient_programs_app||[]).push([[375],{4845:(n,e,t)=>{t.d(e,{Z:()=>s});var o=t(272),i=t.n(o),a=t(2609),r=t.n(a)()(i());r.push([n.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{margin:0;padding:0;font:inherit;font-size:100%;vertical-align:baseline;border:0}button,select,input,textarea{font-family:inherit;border-radius:0}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;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}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-overview__skeleton___ptnzT{0%{transform:scaleX(0);transform-origin:left;opacity:.3}20%{transform:scaleX(1);transform-origin:left;opacity:1}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%{transform:scaleX(0);transform-origin:left;opacity:.3}}.-esm-patient-programs__programs-overview__widgetCard___W1HJv{border:1px solid #e0e0e0}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/_css--reset.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_reset.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_font-family.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/icons/mixins.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/_helper-mixins.scss","webpack://./src/programs/programs-overview.scss"],names:[],mappings:"AAyCA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCTE,2ZAiFE,QAAA,CACA,SAAA,CACA,YAAA,CACA,cAAA,CACA,uBAAA,CACA,QAAA,CAIF,6BAIE,mBAAA,CACA,eAAA,CAGF,4BACE,YAAA,CAIF,mFAYE,aAAA,CAGF,KACE,aAAA,CAGF,IACE,oBAAA,CAGF,IACE,kBAAA,CAGF,MAEE,eAAA,CAGF,aAEE,WAAA,CAGF,wDAIE,UAAA,CAGF,MACE,wBAAA,CACA,gBAAA,CAGF,EACE,qBAAA,CAIF,OACE,QAAA,CC3KJ,KACE,cAAA,CAGF,KC0CA,eAAA,CDvCE,gEAViB,CAWjB,iCAAA,CACA,kCAAA,CACA,iCAAA,CAGF,KACE,wGAhBiB,CAmBnB,OC6BA,eAAA,CCxDA,8CACE,IACE,eAAA,CAAA,CFkCJ,GG+dE,kBAqLsB,CArLtB,eAqLsB,CArLtB,iBAqLsB,CArLtB,gBAqLsB,CHhpBxB,GG2dE,cAqLsB,CArLtB,eAqLsB,CArLtB,gBAqLsB,CArLtB,gBAqLsB,CH5oBxB,GGudE,iBAqLsB,CArLtB,eAqLsB,CArLtB,gBAqLsB,CArLtB,gBAqLsB,CHxoBxB,GGmdE,iBAqLsB,CArLtB,eAqLsB,CArLtB,eAqLsB,CArLtB,gBAqLsB,CHpoBxB,GG+cE,cAqLsB,CArLtB,eAqLsB,CArLtB,iBAqLsB,CArLtB,gBAqLsB,CHhoBxB,GG2cE,iBAqLsB,CArLtB,eAqLsB,CArLtB,gBAqLsB,CArLtB,oBAqLsB,CH5nBxB,EGucE,cAqLsB,CArLtB,eAqLsB,CArLtB,eAqLsB,CArLtB,gBAqLsB,CHxnBxB,EAII,aAAA,CAMJ,GACE,iBAAA,CIkHF,sEACE,GACE,mBAAA,CACA,qBAAA,CACA,UAAA,CAEF,IACE,mBAAA,CACA,qBAAA,CACA,SAAA,CAEF,IACE,mBAAA,CACA,sBAAA,CAEF,IACE,mBAAA,CACA,sBAAA,CAEF,IACE,mBAAA,CACA,sBAAA,CAEF,IACE,mBAAA,CACA,sBAAA,CAEF,IACE,mBAAA,CACA,qBAAA,CAEF,IACE,mBAAA,CACA,qBAAA,CAEF,KACE,mBAAA,CACA,qBAAA,CACA,UAAA,CAAA,CC3ON,8DACE,wBAAA",sourcesContent:["$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1200px;\n$breakpoint-desktop-min: 1201px;\n$breakpoint-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","//\n// Copyright IBM Corp. 2016, 2018\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n@import './vendor/@carbon/elements/scss/import-once/import-once';\n@import './vendor/@carbon/elements/scss/type/reset';\n@import './vendor/@carbon/elements/scss/icons/mixins';\n\n/// Resets default browser styling\n/// @access public\n/// @group global-reset\n@mixin reset {\n @if variable-exists(css--reset) == false or $css--reset == false {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n font-size: 100%;\n font-family: inherit;\n vertical-align: baseline;\n border: 0;\n\n *,\n *::before,\n *::after {\n box-sizing: inherit;\n }\n }\n}\n\n@include exports('css--reset') {\n @if variable-exists(css--reset) == false or $css--reset == true {\n // http://cssreset.com/scripts/eric-meyer-reset-css/\n html,\n body,\n div,\n span,\n applet,\n object,\n iframe,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n blockquote,\n pre,\n a,\n abbr,\n acronym,\n address,\n big,\n cite,\n code,\n del,\n dfn,\n em,\n img,\n ins,\n kbd,\n q,\n s,\n samp,\n small,\n strike,\n strong,\n sub,\n sup,\n tt,\n var,\n b,\n u,\n i,\n center,\n dl,\n dt,\n dd,\n ol,\n ul,\n li,\n fieldset,\n form,\n label,\n legend,\n table,\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td,\n article,\n aside,\n canvas,\n details,\n embed,\n figure,\n figcaption,\n footer,\n header,\n hgroup,\n menu,\n nav,\n output,\n ruby,\n section,\n summary,\n time,\n mark,\n audio,\n video {\n margin: 0;\n padding: 0;\n font: inherit;\n font-size: 100%;\n vertical-align: baseline;\n border: 0;\n }\n\n // Chrome 62 fix\n button,\n select,\n input,\n textarea {\n font-family: inherit;\n border-radius: 0;\n }\n\n input[type='text']::-ms-clear {\n display: none;\n }\n\n /* HTML5 display-role reset for older browsers */\n article,\n aside,\n details,\n figcaption,\n figure,\n footer,\n header,\n hgroup,\n main,\n menu,\n nav,\n section {\n display: block;\n }\n\n body {\n line-height: 1;\n }\n\n sup {\n vertical-align: super;\n }\n\n sub {\n vertical-align: sub;\n }\n\n ol,\n ul {\n list-style: none;\n }\n\n blockquote,\n q {\n quotes: none;\n }\n\n blockquote::before,\n blockquote::after,\n q::before,\n q::after {\n content: '';\n }\n\n table {\n border-collapse: collapse;\n border-spacing: 0;\n }\n\n * {\n box-sizing: border-box;\n }\n\n // Fix to remove added margins on buttons in safari (see #5155)\n button {\n margin: 0;\n }\n\n @include carbon--type-reset;\n @include carbon--icons;\n }\n}\n\n@include exports('css--default-type') {\n @if variable-exists(css--default-type) == false or $css--default-type == true\n {\n @include carbon--default-type;\n }\n}\n","//\n// Copyright IBM Corp. 2018, 2018\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n@import '../layout/convert';\n@import 'font-family';\n@import 'styles';\n\n/// Include a type reset for a given body and mono font family\n/// @param {String} $body-font-family [carbon--font-family('sans')] - The font family used on the `<body>` element\n/// @param {String} $mono-font-family [carbon--font-family('mono')] - The font family used on elements that require mono fonts, like the `<code>` element\n/// @access public\n/// @group @carbon/type\n@mixin carbon--type-reset(\n // TODO: remove in next major release. This has been replaced with 100%\n $base-font-size: $carbon--base-font-size,\n $body-font-family: carbon--font-family('sans'),\n $mono-font-family: carbon--font-family('mono')\n) {\n html {\n font-size: 100%;\n }\n\n body {\n @include carbon--font-weight('regular');\n\n font-family: $body-font-family;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n code {\n font-family: $mono-font-family;\n }\n\n strong {\n @include carbon--font-weight('semibold');\n }\n}\n\n/// Include default type styles\n/// @access public\n/// @group @carbon/type\n@mixin carbon--default-type {\n h1 {\n @include carbon--type-style('productive-heading-06');\n }\n\n h2 {\n @include carbon--type-style('productive-heading-05');\n }\n\n h3 {\n @include carbon--type-style('productive-heading-04');\n }\n\n h4 {\n @include carbon--type-style('productive-heading-03');\n }\n\n h5 {\n @include carbon--type-style('productive-heading-02');\n }\n\n h6 {\n @include carbon--type-style('productive-heading-01');\n }\n\n p {\n @include carbon--type-style('body-long-02');\n }\n\n a {\n @if global-variable-exists('carbon--theme') and\n map-has-key($carbon--theme, 'link-01')\n {\n color: map-get($carbon--theme, 'link-01');\n } @else {\n color: #0062fe;\n }\n }\n\n em {\n font-style: italic;\n }\n}\n","//\n// Copyright IBM Corp. 2018, 2018\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// Font family fallbacks for: IBM Plex Mono, IBM Plex Sans, IBM Plex Sans\n/// Condensed, IBM Plex Sans Hebrew, and IBM Plex Serif\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$carbon--font-families: (\n 'mono':\n unquote(\n \"'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace\"\n ),\n 'sans': unquote(\"'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif\"),\n 'sans-condensed':\n unquote(\"'IBM Plex Sans Condensed', 'Helvetica Neue', Arial, sans-serif\"),\n 'sans-hebrew':\n unquote(\n \"'IBM Plex Sans Hebrew', 'Helvetica Hebrew', 'Arial Hebrew', sans-serif\"\n ),\n 'serif': unquote(\"'IBM Plex Serif', 'Georgia', Times, serif\"),\n) !default;\n\n/// Get the font-family for an IBM Plex font\n/// @param {String} $name\n/// @return {String}\n/// @access public\n/// @group @carbon/type\n@function carbon--font-family($name) {\n @return map-get($carbon--font-families, $name);\n}\n\n/// Include the `font-family` definition for the given name in your selector\n/// @param {String} $name\n/// @access public\n/// @group @carbon/type\n@mixin carbon--font-family($name) {\n font-family: carbon--font-family($name);\n}\n\n/// Suggested font weights to be used in product\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$carbon--font-weights: (\n 'light': 300,\n 'regular': 400,\n 'semibold': 600,\n) !default;\n\n/// Retrieve the font-weight value for a given name\n/// @param {String} $weight\n/// @return {Number}\n/// @access public\n/// @group @carbon/type\n@function carbon--font-weight($weight) {\n @return map-get($carbon--font-weights, $weight);\n}\n\n/// Set the `font-weight` property with the value for a given name\n/// @param {String} $weight\n/// @access public\n/// @group @carbon/type\n@mixin carbon--font-weight($weight) {\n font-weight: carbon--font-weight($weight);\n}\n","//\n// Copyright IBM Corp. 2018, 2018\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// Makes SVGs accessible in high contrast mode\n/// @link https://github.com/IBM/carbon-elements/issues/345#issuecomment-466577293 Carbon-elements #345\n/// @access public\n/// @group @carbon/icons\n@mixin carbon--icons {\n @media screen and (-ms-high-contrast: active) {\n svg {\n fill: ButtonText;\n }\n }\n}\n","//\n// Copyright IBM Corp. 2018, 2018\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n@import '../layout/breakpoint';\n@import 'font-family';\n@import 'scale';\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$caption-01: (\n font-size: carbon--type-scale(1),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.34,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: carbon--type-scale(1),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.34,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$helper-text-01: (\n font-size: carbon--type-scale(1),\n line-height: 1.34,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.29,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.43,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: carbon--type-scale(3),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: carbon--type-scale(3),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: carbon--font-family('mono'),\n font-size: carbon--type-scale(1),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.34,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: carbon--font-family('mono'),\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.43,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.29,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: carbon--type-scale(3),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: carbon--type-scale(5),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: carbon--type-scale(7),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.29,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: map-merge(\n $heading-01,\n (\n line-height: 1.25,\n )\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: map-merge(\n $heading-02,\n (\n line-height: 1.5,\n )\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: carbon--type-scale(5),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: carbon--type-scale(5),\n line-height: 1.25,\n ),\n max: (\n font-size: carbon--type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: carbon--type-scale(7),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.29,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: carbon--type-scale(7),\n line-height: 1.25,\n ),\n max: (\n font-size: carbon--type-scale(8),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(9),\n font-weight: carbon--font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: carbon--type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: carbon--type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: carbon--type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: carbon--type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: carbon--type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: carbon--type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: carbon--type-scale(6),\n font-weight: carbon--font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: carbon--type-scale(7),\n line-height: 1.29,\n ),\n max: (\n font-size: carbon--type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-size: carbon--type-scale(5),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(5),\n ),\n lg: (\n font-size: carbon--type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: carbon--type-scale(7),\n line-height: 1.29,\n ),\n max: (\n font-size: carbon--type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: carbon--type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: carbon--type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: carbon--type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(10),\n ),\n lg: (\n font-size: carbon--type-scale(12),\n ),\n xlg: (\n font-size: carbon--type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: carbon--type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(10),\n ),\n lg: (\n font-size: carbon--type-scale(12),\n ),\n xlg: (\n font-size: carbon--type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: carbon--type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: carbon--type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: carbon--type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: carbon--type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: carbon--type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: carbon--type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: carbon--type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n label-01: $label-01,\n helper-text-01: $helper-text-01,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n);\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return $value / ($value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$carbon--grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: $carbon--grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map-remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map-get($type-styles, breakpoints) {\n @include carbon--breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$carbon--grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: $carbon--grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map-get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map-get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map-remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map-get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map-get($type-styles, font-size);\n $min-font-size: map-get($type-styles, font-size);\n @if map-has-key($fluid-breakpoint, font-size) {\n $min-font-size: map-get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map-get($breakpoint, width);\n $min-vw: map-get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: carbon--breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map-has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: carbon--breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map-get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map-get(\n map-get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map-get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n$custom-property-prefix: 'cds' !default;\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$carbon--grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin carbon--type-style(\n $name,\n $fluid: false,\n $breakpoints: $carbon--grid-breakpoints\n) {\n @if not map-has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map-get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map-has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @if global-variable-exists('feature-flags') and\n map-get($feature-flags, 'enable-css-custom-properties')\n {\n @include custom-properties($name, $token);\n } @else {\n // Otherwise, we just include all the property declarations directly on the\n // selector\n @include properties(map-remove($token, 'breakpoints'));\n }\n }\n}\n","//\n// Copyright IBM Corp. 2016, 2018\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n//----------------------------------------------\n// Mixins\n// ---------------------------------------------\n//\n// Category || Description\n// ===========================================\n// Misc || General helper @mixins\n// Deprecated || Not used anymore\n// ===========================================\n\n//----------------------------------------------\n// Misc\n// ---------------------------------------------\n\n@import 'vars';\n@import 'css--reset';\n@import 'typography';\n@import './vendor/@carbon/elements/scss/import-once/import-once';\n\n/// Adds text overflow styling\n/// @access public\n/// @param {Number} $width [false] - Value of width if you want to set width, else nothing\n/// @example @include text-overflow(300px);\n/// @group global-helpers\n@mixin text-overflow($width: false) {\n display: block;\n overflow-x: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n // apply a width if width parameter exists\n @if ($width) {\n width: $width;\n }\n}\n\n/// Adds placeholder text color\n/// @access public\n/// @example @include placeholder-colors;\n/// @group global-helpers\n@mixin placeholder-colors {\n color: $text-05;\n opacity: 1;\n}\n\n/// Adds box shadow\n/// @access public\n/// @example @include box-shadow;\n/// @group global-helpers\n@mixin box-shadow {\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);\n}\n\n/// Adds outline styles depending on specific type\n/// @access public\n/// @param {String} $type ['border'] - Type of outline from: `border`, `blurred`, `outline`, `invalid`, `reset`\n/// @example @include focus-outline('outline');\n/// @group global-helpers\n@mixin focus-outline($type: 'border') {\n @if ($type == 'border') {\n outline: 1px solid $focus;\n\n @media screen and (prefers-contrast) {\n outline-style: dotted;\n }\n }\n\n @if ($type == 'blurred') {\n outline: 1px solid transparent;\n box-shadow: 0 0 0 3px $focus;\n }\n\n @if ($type == 'outline') {\n outline: 2px solid $focus;\n outline-offset: -2px;\n\n @media screen and (prefers-contrast) {\n outline-style: dotted;\n }\n }\n\n @if ($type == 'outline-compat') {\n box-sizing: border-box;\n border: 2px solid $focus;\n\n @media screen and (prefers-contrast) {\n border-style: dotted;\n }\n }\n\n @if ($type == 'invalid') {\n outline: 2px solid $support-01;\n outline-offset: -2px;\n\n @media screen and (prefers-contrast) {\n outline-style: dotted;\n }\n }\n\n @if ($type == 'reset') {\n outline: 2px solid transparent;\n outline-offset: -2px;\n }\n}\n\n/// Adds rotational transformation\n/// @access public\n/// @param {Number} $deg - How many degrees to rotate\n/// @param {Number} $speed - Speed of rotation\n/// @param {Value} $origin [center] - `transform-origin`\n/// @example @include rotate(90deg, 300ms);\n/// @group global-helpers\n@mixin rotate($deg, $speed, $origin: center) {\n transform: rotate($deg);\n transform-origin: $origin;\n transition: transform $speed;\n}\n\n/// Adds styles to hide content\n/// @access public\n/// @group global-helpers\n@mixin hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n white-space: nowrap;\n border: 0;\n visibility: inherit;\n clip: rect(0, 0, 0, 0);\n}\n\n/// Resets button styles\n/// @access public\n/// @param {Bool} $width [true] - Sets width to 100% if true\n/// @example @include button-reset($width: false);\n/// @group global-helpers\n@mixin button-reset($width: true) {\n @include reset;\n\n display: inline-block;\n padding: 0;\n background: none;\n border: 0;\n cursor: pointer;\n appearance: none;\n\n @if ($width == true) {\n width: 100%;\n }\n\n &::-moz-focus-inner {\n border: 0;\n }\n}\n\n/// Skeleton loading animation\n/// @access public\n/// @example @include skeleton;\n/// @group global-helpers\n@mixin skeleton {\n position: relative;\n padding: 0;\n background: $skeleton-01;\n border: none;\n box-shadow: none;\n pointer-events: none;\n\n &:hover,\n &:focus,\n &:active {\n border: none;\n outline: none;\n cursor: default;\n }\n\n &::before {\n position: absolute;\n width: 100%;\n height: 100%;\n background: $skeleton-02;\n animation: 3000ms ease-in-out skeleton infinite;\n content: '';\n will-change: transform-origin, transform, opacity;\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n }\n}\n\n@include exports('skeleton') {\n @keyframes skeleton {\n 0% {\n transform: scaleX(0);\n transform-origin: left;\n opacity: 0.3;\n }\n 20% {\n transform: scaleX(1);\n transform-origin: left;\n opacity: 1;\n }\n 28% {\n transform: scaleX(1);\n transform-origin: right;\n }\n 51% {\n transform: scaleX(0);\n transform-origin: right;\n }\n 58% {\n transform: scaleX(0);\n transform-origin: right;\n }\n 82% {\n transform: scaleX(1);\n transform-origin: right;\n }\n 83% {\n transform: scaleX(1);\n transform-origin: left;\n }\n 96% {\n transform: scaleX(0);\n transform-origin: left;\n }\n 100% {\n transform: scaleX(0);\n transform-origin: left;\n opacity: 0.3;\n }\n }\n}\n",'@import "~@openmrs/esm-styleguide/src/vars";\n@import "~carbon-components/src/globals/scss/vars";\n@import "~carbon-components/src/globals/scss/mixins";\n\n.widgetCard {\n border: 1px solid $ui-03;\n}\n'],sourceRoot:""}]),r.locals={widgetCard:"-esm-patient-programs__programs-overview__widgetCard___W1HJv",skeleton:"-esm-patient-programs__programs-overview__skeleton___ptnzT"};const s=r},9375:(n,e,t)=>{t.r(e),t.d(e,{default:()=>N});var o=t(9902),i=t.n(o),a=t(8011),r=t(1354),s=t.n(r),l=t(1583),p=t.n(l),c=t(7378),d=t.n(c),u=t(5993),f=t.n(u),g=t(4154),h=t.n(g),b=t(8141),m=t.n(b),y=t(4845),A={};A.styleTagTransform=m(),A.setAttributes=f(),A.insert=d().bind(null,"head"),A.domAPI=p(),A.insertStyleElement=h(),s()(y.Z,A);const $=y.Z&&y.Z.locals?y.Z.locals:void 0;var v=t(3066),x=t(8580),w=t(1145),k=t(7030),C=t(160),B=t(5223),z=t(2965),E=t(364),M=t(7500),q=t(8345),L=t(1358),I=t(2427),S=t(3783),_=t(3863),T=t(8827),F=t(819),P=t(3771),G=t(4924),Z=t(4076);function H(){return H=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},H.apply(this,arguments)}const N=function(n){var e,t,o=n.basePath,r=n.patientUuid,s=(0,G.useTranslation)().t,l=s("programs","Program enrollments"),p=s("carePrograms","Care Programs"),c=s("seeAll","See all"),d=window.spaBase+o+"/programs",u=(0,Z.Bw)(r),f=u.data,g=u.isError,h=u.isLoading,b=u.isValidating,m=null==f?void 0:f.filter((function(n){return!n.dateCompleted})),y=(0,Z.oI)().data,A=(0,_.Z)(y,(function(n){return!(0,T.Z)((0,F.Z)(f,"program.uuid"),n.uuid)})),N=(0,v.usePagination)(null!=f?f:[],5),X=N.results,O=N.goTo,D=N.currentPage,j=i().useCallback((function(){return(0,P.launchPatientWorkspace)("programs-form-workspace")}),[]),V=[{key:"display",header:s("activePrograms","Active programs")},{key:"location",header:s("location","Location")},{key:"dateEnrolled",header:s("dateEnrolled","Date enrolled")},{key:"status",header:s("status","Status")}],W=i().useMemo((function(){return null==X?void 0:X.map((function(n){var e;return{id:n.uuid,display:n.display,location:null===(e=n.location)||void 0===e?void 0:e.display,dateEnrolled:(0,v.formatDatetime)(new Date(n.dateEnrolled)),status:n.dateCompleted?"".concat(s("completedOn","Completed On")," ").concat((0,v.formatDate)(new Date(n.dateCompleted))):s("active","Active")}}))}),[X,s]);return h?i().createElement(x.Z,{role:"progressbar"}):g?i().createElement(P.ErrorState,{error:g,headerTitle:p}):(null==m?void 0:m.length)?i().createElement("div",{className:$.widgetCard},i().createElement(P.CardHeader,{title:p},i().createElement("span",null,b?i().createElement(w.Z,null):null),i().createElement(k.Z,{kind:"ghost",renderIcon:a.Z,iconDescription:"Add programs",onClick:j,disabled:(null==y?void 0:y.length)&&0===(null==A?void 0:A.length)},s("add","Add"))),i().createElement(C.Z,null,(null==y?void 0:y.length)&&0===(null==A?void 0:A.length)&&i().createElement(B.K0,{style:{minWidth:"100%",margin:"0rem",padding:"0rem"},kind:"info",lowContrast:!0,subtitle:s("noEligibleEnrollments","There are no more programs left to enroll this patient in"),title:s("fullyEnrolled","Enrolled in all programs")}),i().createElement(z.ZP,{rows:W,headers:V,isSortable:!0,size:"short"},(function(n){var o=n.rows,a=n.headers,r=n.getHeaderProps,s=n.getTableProps;return i().createElement(E.Z,H({},s(),{useZebraStyles:!0}),i().createElement(M.Z,null,i().createElement(q.Z,null,a.map((function(n){var t;return i().createElement(L.Z,H({className:"".concat($.productiveHeading01," ").concat($.text02)},r({header:n,isSortable:n.isSortable})),null!==(e=null===(t=n.header)||void 0===t?void 0:t.content)&&void 0!==e?e:n.header)})))),i().createElement(I.Z,null,o.map((function(n){return i().createElement(q.Z,{key:n.id},n.cells.map((function(n){var e;return i().createElement(S.Z,{key:n.id},null!==(t=null===(e=n.value)||void 0===e?void 0:e.content)&&void 0!==t?t:n.value)})))}))))}))),i().createElement(P.PatientChartPagination,{currentItems:X.length,onPageNumberChange:function(n){var e=n.page;return O(e)},pageNumber:D,pageSize:5,pageUrl:d,totalItems:f.length,urlLabel:c})):i().createElement(P.EmptyState,{displayText:l,headerTitle:p,launchForm:j})}},4076:(n,e,t)=>{t.d(e,{Bw:()=>s,df:()=>p,o9:()=>r,oI:()=>l});var o=t(9857),i=t(3066),a=t(4200),r="custom:(uuid,display,program,dateEnrolled,dateCompleted,location:(uuid,display))";function s(n){var e,t=(0,o.ZP)("/ws/rest/v1/programenrollment?patient=".concat(n,"&v=").concat(r),i.openmrsFetch),s=t.data,l=t.error,p=t.isValidating,c=(null==s||null===(e=s.data)||void 0===e?void 0:e.results.length)>0?null==s?void 0:s.data.results.sort((function(n,e){return e.dateEnrolled>n.dateEnrolled?1:-1})):null;return{data:s?(0,a.Z)(c,(function(n){var e;return null==n||null===(e=n.program)||void 0===e?void 0:e.uuid})):null,isError:l,isLoading:!s&&!l,isValidating:p}}function l(){var n,e,t=(0,o.ZP)("/ws/rest/v1/program?v=custom:(uuid,display,allWorkflows,concept:(uuid,display))",i.openmrsFetch),a=t.data,r=t.error;return{data:(null==a||null===(n=a.data)||void 0===n||null===(e=n.results)||void 0===e?void 0:e.length)?a.data.results:null,isError:r,isLoading:!a&&!r}}function p(n,e){if(!n)return null;var t=n.program,o=n.patient,a=n.dateEnrolled,r=n.dateCompleted,s=n.location;return(0,i.openmrsObservableFetch)("/ws/rest/v1/programenrollment",{method:"POST",headers:{"Content-Type":"application/json"},body:{program:t,patient:o,dateEnrolled:a,dateCompleted:r,location:s},signal:e.signal})}}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_openmrs_esm_patient_programs_app=self.webpackChunk_openmrs_esm_patient_programs_app||[]).push([[375],{4845:(n,e,t)=>{t.d(e,{Z:()=>s});var o=t(272),i=t.n(o),a=t(2609),r=t.n(a)()(i());r.push([n.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{margin:0;padding:0;font:inherit;font-size:100%;vertical-align:baseline;border:0}button,select,input,textarea{font-family:inherit;border-radius:0}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;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}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-overview__skeleton___ptnzT{0%{transform:scaleX(0);transform-origin:left;opacity:.3}20%{transform:scaleX(1);transform-origin:left;opacity:1}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%{transform:scaleX(0);transform-origin:left;opacity:.3}}.-esm-patient-programs__programs-overview__widgetCard___W1HJv{border:1px solid #e0e0e0}","",{version:3,sources:["webpack://./../../node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/_css--reset.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_reset.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_font-family.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/icons/mixins.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/vendor/@carbon/elements/scss/type/_styles.scss","webpack://./../../node_modules/carbon-components/src/globals/scss/_helper-mixins.scss","webpack://./src/programs/programs-overview.scss"],names:[],mappings:"AAyCA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CCTE,2ZAiFE,QAAA,CACA,SAAA,CACA,YAAA,CACA,cAAA,CACA,uBAAA,CACA,QAAA,CAIF,6BAIE,mBAAA,CACA,eAAA,CAGF,4BACE,YAAA,CAIF,mFAYE,aAAA,CAGF,KACE,aAAA,CAGF,IACE,oBAAA,CAGF,IACE,kBAAA,CAGF,MAEE,eAAA,CAGF,aAEE,WAAA,CAGF,wDAIE,UAAA,CAGF,MACE,wBAAA,CACA,gBAAA,CAGF,EACE,qBAAA,CAIF,OACE,QAAA,CC3KJ,KACE,cAAA,CAGF,KC0CA,eAAA,CDvCE,gEAViB,CAWjB,iCAAA,CACA,kCAAA,CACA,iCAAA,CAGF,KACE,wGAhBiB,CAmBnB,OC6BA,eAAA,CCxDA,8CACE,IACE,eAAA,CAAA,CFkCJ,GG+dE,kBAqLsB,CArLtB,eAqLsB,CArLtB,iBAqLsB,CArLtB,gBAqLsB,CHhpBxB,GG2dE,cAqLsB,CArLtB,eAqLsB,CArLtB,gBAqLsB,CArLtB,gBAqLsB,CH5oBxB,GGudE,iBAqLsB,CArLtB,eAqLsB,CArLtB,gBAqLsB,CArLtB,gBAqLsB,CHxoBxB,GGmdE,iBAqLsB,CArLtB,eAqLsB,CArLtB,eAqLsB,CArLtB,gBAqLsB,CHpoBxB,GG+cE,cAqLsB,CArLtB,eAqLsB,CArLtB,iBAqLsB,CArLtB,gBAqLsB,CHhoBxB,GG2cE,iBAqLsB,CArLtB,eAqLsB,CArLtB,gBAqLsB,CArLtB,oBAqLsB,CH5nBxB,EGucE,cAqLsB,CArLtB,eAqLsB,CArLtB,eAqLsB,CArLtB,gBAqLsB,CHxnBxB,EAII,aAAA,CAMJ,GACE,iBAAA,CIkHF,sEACE,GACE,mBAAA,CACA,qBAAA,CACA,UAAA,CAEF,IACE,mBAAA,CACA,qBAAA,CACA,SAAA,CAEF,IACE,mBAAA,CACA,sBAAA,CAEF,IACE,mBAAA,CACA,sBAAA,CAEF,IACE,mBAAA,CACA,sBAAA,CAEF,IACE,mBAAA,CACA,sBAAA,CAEF,IACE,mBAAA,CACA,qBAAA,CAEF,IACE,mBAAA,CACA,qBAAA,CAEF,KACE,mBAAA,CACA,qBAAA,CACA,UAAA,CAAA,CC3ON,8DACE,wBAAA",sourcesContent:["$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1200px;\n$breakpoint-desktop-min: 1201px;\n$breakpoint-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n","//\n// Copyright IBM Corp. 2016, 2018\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n@import './vendor/@carbon/elements/scss/import-once/import-once';\n@import './vendor/@carbon/elements/scss/type/reset';\n@import './vendor/@carbon/elements/scss/icons/mixins';\n\n/// Resets default browser styling\n/// @access public\n/// @group global-reset\n@mixin reset {\n @if variable-exists(css--reset) == false or $css--reset == false {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n font-size: 100%;\n font-family: inherit;\n vertical-align: baseline;\n border: 0;\n\n *,\n *::before,\n *::after {\n box-sizing: inherit;\n }\n }\n}\n\n@include exports('css--reset') {\n @if variable-exists(css--reset) == false or $css--reset == true {\n // http://cssreset.com/scripts/eric-meyer-reset-css/\n html,\n body,\n div,\n span,\n applet,\n object,\n iframe,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n blockquote,\n pre,\n a,\n abbr,\n acronym,\n address,\n big,\n cite,\n code,\n del,\n dfn,\n em,\n img,\n ins,\n kbd,\n q,\n s,\n samp,\n small,\n strike,\n strong,\n sub,\n sup,\n tt,\n var,\n b,\n u,\n i,\n center,\n dl,\n dt,\n dd,\n ol,\n ul,\n li,\n fieldset,\n form,\n label,\n legend,\n table,\n caption,\n tbody,\n tfoot,\n thead,\n tr,\n th,\n td,\n article,\n aside,\n canvas,\n details,\n embed,\n figure,\n figcaption,\n footer,\n header,\n hgroup,\n menu,\n nav,\n output,\n ruby,\n section,\n summary,\n time,\n mark,\n audio,\n video {\n margin: 0;\n padding: 0;\n font: inherit;\n font-size: 100%;\n vertical-align: baseline;\n border: 0;\n }\n\n // Chrome 62 fix\n button,\n select,\n input,\n textarea {\n font-family: inherit;\n border-radius: 0;\n }\n\n input[type='text']::-ms-clear {\n display: none;\n }\n\n /* HTML5 display-role reset for older browsers */\n article,\n aside,\n details,\n figcaption,\n figure,\n footer,\n header,\n hgroup,\n main,\n menu,\n nav,\n section {\n display: block;\n }\n\n body {\n line-height: 1;\n }\n\n sup {\n vertical-align: super;\n }\n\n sub {\n vertical-align: sub;\n }\n\n ol,\n ul {\n list-style: none;\n }\n\n blockquote,\n q {\n quotes: none;\n }\n\n blockquote::before,\n blockquote::after,\n q::before,\n q::after {\n content: '';\n }\n\n table {\n border-collapse: collapse;\n border-spacing: 0;\n }\n\n * {\n box-sizing: border-box;\n }\n\n // Fix to remove added margins on buttons in safari (see #5155)\n button {\n margin: 0;\n }\n\n @include carbon--type-reset;\n @include carbon--icons;\n }\n}\n\n@include exports('css--default-type') {\n @if variable-exists(css--default-type) == false or $css--default-type == true\n {\n @include carbon--default-type;\n }\n}\n","//\n// Copyright IBM Corp. 2018, 2018\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n@import '../layout/convert';\n@import 'font-family';\n@import 'styles';\n\n/// Include a type reset for a given body and mono font family\n/// @param {String} $body-font-family [carbon--font-family('sans')] - The font family used on the `<body>` element\n/// @param {String} $mono-font-family [carbon--font-family('mono')] - The font family used on elements that require mono fonts, like the `<code>` element\n/// @access public\n/// @group @carbon/type\n@mixin carbon--type-reset(\n // TODO: remove in next major release. This has been replaced with 100%\n $base-font-size: $carbon--base-font-size,\n $body-font-family: carbon--font-family('sans'),\n $mono-font-family: carbon--font-family('mono')\n) {\n html {\n font-size: 100%;\n }\n\n body {\n @include carbon--font-weight('regular');\n\n font-family: $body-font-family;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n code {\n font-family: $mono-font-family;\n }\n\n strong {\n @include carbon--font-weight('semibold');\n }\n}\n\n/// Include default type styles\n/// @access public\n/// @group @carbon/type\n@mixin carbon--default-type {\n h1 {\n @include carbon--type-style('productive-heading-06');\n }\n\n h2 {\n @include carbon--type-style('productive-heading-05');\n }\n\n h3 {\n @include carbon--type-style('productive-heading-04');\n }\n\n h4 {\n @include carbon--type-style('productive-heading-03');\n }\n\n h5 {\n @include carbon--type-style('productive-heading-02');\n }\n\n h6 {\n @include carbon--type-style('productive-heading-01');\n }\n\n p {\n @include carbon--type-style('body-long-02');\n }\n\n a {\n @if global-variable-exists('carbon--theme') and\n map-has-key($carbon--theme, 'link-01')\n {\n color: map-get($carbon--theme, 'link-01');\n } @else {\n color: #0062fe;\n }\n }\n\n em {\n font-style: italic;\n }\n}\n","//\n// Copyright IBM Corp. 2018, 2018\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// Font family fallbacks for: IBM Plex Mono, IBM Plex Sans, IBM Plex Sans\n/// Condensed, IBM Plex Sans Hebrew, and IBM Plex Serif\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$carbon--font-families: (\n 'mono':\n unquote(\n \"'IBM Plex Mono', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', Courier, monospace\"\n ),\n 'sans': unquote(\"'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif\"),\n 'sans-condensed':\n unquote(\"'IBM Plex Sans Condensed', 'Helvetica Neue', Arial, sans-serif\"),\n 'sans-hebrew':\n unquote(\n \"'IBM Plex Sans Hebrew', 'Helvetica Hebrew', 'Arial Hebrew', sans-serif\"\n ),\n 'serif': unquote(\"'IBM Plex Serif', 'Georgia', Times, serif\"),\n) !default;\n\n/// Get the font-family for an IBM Plex font\n/// @param {String} $name\n/// @return {String}\n/// @access public\n/// @group @carbon/type\n@function carbon--font-family($name) {\n @return map-get($carbon--font-families, $name);\n}\n\n/// Include the `font-family` definition for the given name in your selector\n/// @param {String} $name\n/// @access public\n/// @group @carbon/type\n@mixin carbon--font-family($name) {\n font-family: carbon--font-family($name);\n}\n\n/// Suggested font weights to be used in product\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$carbon--font-weights: (\n 'light': 300,\n 'regular': 400,\n 'semibold': 600,\n) !default;\n\n/// Retrieve the font-weight value for a given name\n/// @param {String} $weight\n/// @return {Number}\n/// @access public\n/// @group @carbon/type\n@function carbon--font-weight($weight) {\n @return map-get($carbon--font-weights, $weight);\n}\n\n/// Set the `font-weight` property with the value for a given name\n/// @param {String} $weight\n/// @access public\n/// @group @carbon/type\n@mixin carbon--font-weight($weight) {\n font-weight: carbon--font-weight($weight);\n}\n","//\n// Copyright IBM Corp. 2018, 2018\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// Makes SVGs accessible in high contrast mode\n/// @link https://github.com/IBM/carbon-elements/issues/345#issuecomment-466577293 Carbon-elements #345\n/// @access public\n/// @group @carbon/icons\n@mixin carbon--icons {\n @media screen and (-ms-high-contrast: active) {\n svg {\n fill: ButtonText;\n }\n }\n}\n","//\n// Copyright IBM Corp. 2018, 2018\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n@import '../layout/breakpoint';\n@import 'font-family';\n@import 'scale';\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$caption-01: (\n font-size: carbon--type-scale(1),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.34,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: carbon--type-scale(1),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.34,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$helper-text-01: (\n font-size: carbon--type-scale(1),\n line-height: 1.34,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.29,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.43,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: carbon--type-scale(3),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: carbon--type-scale(3),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: carbon--font-family('mono'),\n font-size: carbon--type-scale(1),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.34,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: carbon--font-family('mono'),\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.43,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: carbon--type-scale(2),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.29,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: carbon--type-scale(3),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: carbon--type-scale(5),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: carbon--type-scale(7),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.29,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: map-merge(\n $heading-01,\n (\n line-height: 1.25,\n )\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: map-merge(\n $heading-02,\n (\n line-height: 1.5,\n )\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: carbon--type-scale(5),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: carbon--type-scale(5),\n line-height: 1.25,\n ),\n max: (\n font-size: carbon--type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: carbon--type-scale(7),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.29,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: carbon--type-scale(7),\n line-height: 1.25,\n ),\n max: (\n font-size: carbon--type-scale(8),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(9),\n font-weight: carbon--font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: carbon--type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: carbon--type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: carbon--type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: carbon--type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: carbon--type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: carbon--type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: carbon--type-scale(6),\n font-weight: carbon--font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: carbon--type-scale(7),\n line-height: 1.29,\n ),\n max: (\n font-size: carbon--type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-size: carbon--type-scale(5),\n font-weight: carbon--font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(5),\n ),\n lg: (\n font-size: carbon--type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: carbon--type-scale(7),\n line-height: 1.29,\n ),\n max: (\n font-size: carbon--type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-size: carbon--type-scale(8),\n font-weight: carbon--font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: carbon--type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: carbon--type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: carbon--type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(10),\n ),\n lg: (\n font-size: carbon--type-scale(12),\n ),\n xlg: (\n font-size: carbon--type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: carbon--type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(10),\n ),\n lg: (\n font-size: carbon--type-scale(12),\n ),\n xlg: (\n font-size: carbon--type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: carbon--type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: carbon--type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: carbon--type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: carbon--type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: carbon--type-scale(10),\n font-weight: carbon--font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: carbon--type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: carbon--type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: carbon--type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: carbon--type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n label-01: $label-01,\n helper-text-01: $helper-text-01,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n);\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return $value / ($value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$carbon--grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: $carbon--grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map-remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-styles, sm, $breakpoints);\n\n // Finally, we need to go through all the breakpoints defined in the type\n // token and apply the properties and fluid type size for that given\n // breakpoint\n @each $name, $values in map-get($type-styles, breakpoints) {\n @include carbon--breakpoint($name) {\n @include properties($values);\n @include fluid-type-size($type-styles, $name, $breakpoints);\n }\n }\n}\n\n/// Computes the fluid `font-size` for a given type style and breakpoint\n/// @param {Map} $type-styles - The styles for a given token\n/// @param {String} $name - The name of the breakpoint to which we apply the fluid\n/// @param {Map} $breakpoints [$carbon--grid-breakpoints] - The breakpoints for the grid system\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type-size(\n $type-styles,\n $name,\n $breakpoints: $carbon--grid-breakpoints\n) {\n // Get the information about the breakpoint we're currently working in. Useful\n // for getting initial width information\n $breakpoint: map-get($breakpoints, $name);\n\n // Our fluid styles are captured under the 'breakpoints' property in our type\n // styles map. These define what values to treat as `max-` variables below\n $fluid-sizes: map-get($type-styles, breakpoints);\n $fluid-breakpoint: ();\n // Special case for `sm` because the styles for small are on the type style\n // directly\n @if $name == sm {\n $fluid-breakpoint: map-remove($type-styles, breakpoints);\n } @else {\n $fluid-breakpoint: map-get($fluid-sizes, $name);\n }\n\n // Initialize our font-sizes to the default size for the type style\n $max-font-size: map-get($type-styles, font-size);\n $min-font-size: map-get($type-styles, font-size);\n @if map-has-key($fluid-breakpoint, font-size) {\n $min-font-size: map-get($fluid-breakpoint, font-size);\n }\n\n // Initialize our min and max width to the width of the current breakpoint\n $max-vw: map-get($breakpoint, width);\n $min-vw: map-get($breakpoint, width);\n\n // We can use `breakpoint-next` to see if there is another breakpoint we can\n // use to update `max-font-size` and `max-vw` with larger values\n $next-breakpoint-available: carbon--breakpoint-next($name, $breakpoints);\n $next-fluid-breakpoint-name: null;\n\n // We need to figure out what the next available fluid breakpoint is for our\n // given $type-styles. In this loop we try and iterate through breakpoints\n // until we either manually set $next-breakpoint-available to null or\n // `breakpoint-next` returns null.\n @while $next-breakpoint-available {\n @if map-has-key($fluid-sizes, $next-breakpoint-available) {\n $next-fluid-breakpoint-name: $next-breakpoint-available;\n $next-breakpoint-available: null;\n } @else {\n $next-breakpoint-available: carbon--breakpoint-next(\n $next-breakpoint-available,\n $breakpoints\n );\n }\n }\n\n // If we have found the next available fluid breakpoint name, then we know\n // that we have values that we can use to set max-font-size and max-vw as both\n // values derive from the next breakpoint\n @if $next-fluid-breakpoint-name {\n $next-fluid-breakpoint: map-get($breakpoints, $next-fluid-breakpoint-name);\n $max-font-size: map-get(\n map-get($fluid-sizes, $next-fluid-breakpoint-name),\n font-size\n );\n $max-vw: map-get($next-fluid-breakpoint, width);\n\n // prettier-ignore\n font-size: calc(#{$min-font-size} +\n #{strip-unit($max-font-size - $min-font-size)} *\n ((100vw - #{$min-vw}) / #{strip-unit($max-vw - $min-vw)})\n );\n } @else {\n // Otherwise, just default to setting the font size found from the type\n // style or the given fluid breakpoint in the type style\n font-size: $min-font-size;\n }\n}\n\n// TODO move following variable and `custom-property` mixin into shared file for\n// both `@carbon/type` and `@carbon/themes`\n\n/// @access private\n/// @group @carbon/type\n$custom-property-prefix: 'cds' !default;\n\n/// @access private\n/// @group @carbon/type\n@mixin custom-properties($name, $value) {\n @each $property, $value in $value {\n #{$property}: var(\n --#{$custom-property-prefix}-#{$name}-#{$property},\n #{$value}\n );\n }\n}\n\n/// Helper mixin to include the styles for a given token in any selector in your\n/// project. Also includes an optional fluid option that will enable fluid\n/// styles for the token if they are defined. Fluid styles will cause the\n/// token's font-size to be computed based on the viewport size. As a result, use\n/// with caution in fixed contexts.\n/// @param {String} $name - The name of the token to get the styles for\n/// @param {Boolean} $fluid [false] - Specify whether to include fluid styles for the\n/// @param {Map} $breakpoints [$carbon--grid-breakpoints] - Provide a custom breakpoint map to use\n/// @access public\n/// @group @carbon/type\n@mixin carbon--type-style(\n $name,\n $fluid: false,\n $breakpoints: $carbon--grid-breakpoints\n) {\n @if not map-has-key($tokens, $name) {\n @error 'Unable to find a token with the name: `#{$name}`';\n }\n\n $token: map-get($tokens, $name);\n\n // If $fluid is set to true and the token has breakpoints defined for fluid\n // styles, delegate to the fluid-type helper for the given token\n @if $fluid == true and map-has-key($token, 'breakpoints') {\n @include fluid-type($token, $breakpoints);\n } @else {\n @if global-variable-exists('feature-flags') and\n map-get($feature-flags, 'enable-css-custom-properties')\n {\n @include custom-properties($name, $token);\n } @else {\n // Otherwise, we just include all the property declarations directly on the\n // selector\n @include properties(map-remove($token, 'breakpoints'));\n }\n }\n}\n","//\n// Copyright IBM Corp. 2016, 2018\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n//----------------------------------------------\n// Mixins\n// ---------------------------------------------\n//\n// Category || Description\n// ===========================================\n// Misc || General helper @mixins\n// Deprecated || Not used anymore\n// ===========================================\n\n//----------------------------------------------\n// Misc\n// ---------------------------------------------\n\n@import 'vars';\n@import 'css--reset';\n@import 'typography';\n@import './vendor/@carbon/elements/scss/import-once/import-once';\n\n/// Adds text overflow styling\n/// @access public\n/// @param {Number} $width [false] - Value of width if you want to set width, else nothing\n/// @example @include text-overflow(300px);\n/// @group global-helpers\n@mixin text-overflow($width: false) {\n display: block;\n overflow-x: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n // apply a width if width parameter exists\n @if ($width) {\n width: $width;\n }\n}\n\n/// Adds placeholder text color\n/// @access public\n/// @example @include placeholder-colors;\n/// @group global-helpers\n@mixin placeholder-colors {\n color: $text-05;\n opacity: 1;\n}\n\n/// Adds box shadow\n/// @access public\n/// @example @include box-shadow;\n/// @group global-helpers\n@mixin box-shadow {\n box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);\n}\n\n/// Adds outline styles depending on specific type\n/// @access public\n/// @param {String} $type ['border'] - Type of outline from: `border`, `blurred`, `outline`, `invalid`, `reset`\n/// @example @include focus-outline('outline');\n/// @group global-helpers\n@mixin focus-outline($type: 'border') {\n @if ($type == 'border') {\n outline: 1px solid $focus;\n\n @media screen and (prefers-contrast) {\n outline-style: dotted;\n }\n }\n\n @if ($type == 'blurred') {\n outline: 1px solid transparent;\n box-shadow: 0 0 0 3px $focus;\n }\n\n @if ($type == 'outline') {\n outline: 2px solid $focus;\n outline-offset: -2px;\n\n @media screen and (prefers-contrast) {\n outline-style: dotted;\n }\n }\n\n @if ($type == 'outline-compat') {\n box-sizing: border-box;\n border: 2px solid $focus;\n\n @media screen and (prefers-contrast) {\n border-style: dotted;\n }\n }\n\n @if ($type == 'invalid') {\n outline: 2px solid $support-01;\n outline-offset: -2px;\n\n @media screen and (prefers-contrast) {\n outline-style: dotted;\n }\n }\n\n @if ($type == 'reset') {\n outline: 2px solid transparent;\n outline-offset: -2px;\n }\n}\n\n/// Adds rotational transformation\n/// @access public\n/// @param {Number} $deg - How many degrees to rotate\n/// @param {Number} $speed - Speed of rotation\n/// @param {Value} $origin [center] - `transform-origin`\n/// @example @include rotate(90deg, 300ms);\n/// @group global-helpers\n@mixin rotate($deg, $speed, $origin: center) {\n transform: rotate($deg);\n transform-origin: $origin;\n transition: transform $speed;\n}\n\n/// Adds styles to hide content\n/// @access public\n/// @group global-helpers\n@mixin hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n white-space: nowrap;\n border: 0;\n visibility: inherit;\n clip: rect(0, 0, 0, 0);\n}\n\n/// Resets button styles\n/// @access public\n/// @param {Bool} $width [true] - Sets width to 100% if true\n/// @example @include button-reset($width: false);\n/// @group global-helpers\n@mixin button-reset($width: true) {\n @include reset;\n\n display: inline-block;\n padding: 0;\n background: none;\n border: 0;\n cursor: pointer;\n appearance: none;\n\n @if ($width == true) {\n width: 100%;\n }\n\n &::-moz-focus-inner {\n border: 0;\n }\n}\n\n/// Skeleton loading animation\n/// @access public\n/// @example @include skeleton;\n/// @group global-helpers\n@mixin skeleton {\n position: relative;\n padding: 0;\n background: $skeleton-01;\n border: none;\n box-shadow: none;\n pointer-events: none;\n\n &:hover,\n &:focus,\n &:active {\n border: none;\n outline: none;\n cursor: default;\n }\n\n &::before {\n position: absolute;\n width: 100%;\n height: 100%;\n background: $skeleton-02;\n animation: 3000ms ease-in-out skeleton infinite;\n content: '';\n will-change: transform-origin, transform, opacity;\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n }\n}\n\n@include exports('skeleton') {\n @keyframes skeleton {\n 0% {\n transform: scaleX(0);\n transform-origin: left;\n opacity: 0.3;\n }\n 20% {\n transform: scaleX(1);\n transform-origin: left;\n opacity: 1;\n }\n 28% {\n transform: scaleX(1);\n transform-origin: right;\n }\n 51% {\n transform: scaleX(0);\n transform-origin: right;\n }\n 58% {\n transform: scaleX(0);\n transform-origin: right;\n }\n 82% {\n transform: scaleX(1);\n transform-origin: right;\n }\n 83% {\n transform: scaleX(1);\n transform-origin: left;\n }\n 96% {\n transform: scaleX(0);\n transform-origin: left;\n }\n 100% {\n transform: scaleX(0);\n transform-origin: left;\n opacity: 0.3;\n }\n }\n}\n",'@import "~@openmrs/esm-styleguide/src/vars";\n@import "~carbon-components/src/globals/scss/vars";\n@import "~carbon-components/src/globals/scss/mixins";\n\n.widgetCard {\n border: 1px solid $ui-03;\n}\n'],sourceRoot:""}]),r.locals={widgetCard:"-esm-patient-programs__programs-overview__widgetCard___W1HJv",skeleton:"-esm-patient-programs__programs-overview__skeleton___ptnzT"};const s=r},9375:(n,e,t)=>{t.r(e),t.d(e,{default:()=>N});var o=t(9902),i=t.n(o),a=t(8011),r=t(1354),s=t.n(r),l=t(1583),p=t.n(l),c=t(7378),d=t.n(c),u=t(5993),f=t.n(u),g=t(4154),h=t.n(g),b=t(8141),m=t.n(b),y=t(4845),A={};A.styleTagTransform=m(),A.setAttributes=f(),A.insert=d().bind(null,"head"),A.domAPI=p(),A.insertStyleElement=h(),s()(y.Z,A);const $=y.Z&&y.Z.locals?y.Z.locals:void 0;var v=t(3066),x=t(8580),w=t(1145),k=t(7030),C=t(160),B=t(5223),z=t(2965),E=t(364),M=t(7500),q=t(8345),L=t(1358),I=t(2427),S=t(3783),_=t(3863),T=t(8827),F=t(819),P=t(3771),G=t(4924),Z=t(4076);function H(){return H=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},H.apply(this,arguments)}const N=function(n){var e,t,o=n.basePath,r=n.patientUuid,s=(0,G.useTranslation)().t,l=s("programs","Program enrollments"),p=s("carePrograms","Care Programs"),c=s("seeAll","See all"),d=window.spaBase+o+"/programs",u=(0,Z.Bw)(r),f=u.data,g=u.isError,h=u.isLoading,b=u.isValidating,m=null==f?void 0:f.filter((function(n){return!n.dateCompleted})),y=(0,Z.oI)().data,A=(0,_.Z)(y,(function(n){return!(0,T.Z)((0,F.Z)(f,"program.uuid"),n.uuid)})),N=(0,v.usePagination)(null!=f?f:[],5),X=N.results,O=N.goTo,D=N.currentPage,j=i().useCallback((function(){return(0,P.launchPatientWorkspace)("programs-form-workspace")}),[]),V=[{key:"display",header:s("activePrograms","Active programs")},{key:"location",header:s("location","Location")},{key:"dateEnrolled",header:s("dateEnrolled","Date enrolled")},{key:"status",header:s("status","Status")}],W=i().useMemo((function(){return null==X?void 0:X.map((function(n){var e;return{id:n.uuid,display:n.display,location:null===(e=n.location)||void 0===e?void 0:e.display,dateEnrolled:(0,v.formatDatetime)(new Date(n.dateEnrolled)),status:n.dateCompleted?"".concat(s("completedOn","Completed On")," ").concat((0,v.formatDate)(new Date(n.dateCompleted))):s("active","Active")}}))}),[X,s]);return h?i().createElement(x.Z,{role:"progressbar"}):g?i().createElement(P.ErrorState,{error:g,headerTitle:p}):(null==m?void 0:m.length)?i().createElement("div",{className:$.widgetCard},i().createElement(P.CardHeader,{title:p},i().createElement("span",null,b?i().createElement(w.Z,null):null),i().createElement(k.Z,{kind:"ghost",renderIcon:a.Z,iconDescription:"Add programs",onClick:j,disabled:(null==y?void 0:y.length)&&0===(null==A?void 0:A.length)},s("add","Add"))),i().createElement(C.Z,null,(null==y?void 0:y.length)&&0===(null==A?void 0:A.length)&&i().createElement(B.K0,{style:{minWidth:"100%",margin:"0rem",padding:"0rem"},kind:"info",lowContrast:!0,subtitle:s("noEligibleEnrollments","There are no more programs left to enroll this patient in"),title:s("fullyEnrolled","Enrolled in all programs")}),i().createElement(z.ZP,{rows:W,headers:V,isSortable:!0,size:"short"},(function(n){var o=n.rows,a=n.headers,r=n.getHeaderProps,s=n.getTableProps;return i().createElement(E.Z,H({},s(),{useZebraStyles:!0}),i().createElement(M.Z,null,i().createElement(q.Z,null,a.map((function(n){var t;return i().createElement(L.Z,H({className:"".concat($.productiveHeading01," ").concat($.text02)},r({header:n,isSortable:n.isSortable})),null!==(e=null===(t=n.header)||void 0===t?void 0:t.content)&&void 0!==e?e:n.header)})))),i().createElement(I.Z,null,o.map((function(n){return i().createElement(q.Z,{key:n.id},n.cells.map((function(n){var e;return i().createElement(S.Z,{key:n.id},null!==(t=null===(e=n.value)||void 0===e?void 0:e.content)&&void 0!==t?t:n.value)})))}))))}))),i().createElement(P.PatientChartPagination,{currentItems:X.length,onPageNumberChange:function(n){var e=n.page;return O(e)},pageNumber:D,pageSize:5,totalItems:f.length,dashboardLinkUrl:d,dashboardLinkLabel:c})):i().createElement(P.EmptyState,{displayText:l,headerTitle:p,launchForm:j})}},4076:(n,e,t)=>{t.d(e,{Bw:()=>s,df:()=>p,o9:()=>r,oI:()=>l});var o=t(9857),i=t(3066),a=t(4200),r="custom:(uuid,display,program,dateEnrolled,dateCompleted,location:(uuid,display))";function s(n){var e,t=(0,o.ZP)("/ws/rest/v1/programenrollment?patient=".concat(n,"&v=").concat(r),i.openmrsFetch),s=t.data,l=t.error,p=t.isValidating,c=(null==s||null===(e=s.data)||void 0===e?void 0:e.results.length)>0?null==s?void 0:s.data.results.sort((function(n,e){return e.dateEnrolled>n.dateEnrolled?1:-1})):null;return{data:s?(0,a.Z)(c,(function(n){var e;return null==n||null===(e=n.program)||void 0===e?void 0:e.uuid})):null,isError:l,isLoading:!s&&!l,isValidating:p}}function l(){var n,e,t=(0,o.ZP)("/ws/rest/v1/program?v=custom:(uuid,display,allWorkflows,concept:(uuid,display))",i.openmrsFetch),a=t.data,r=t.error;return{data:(null==a||null===(n=a.data)||void 0===n||null===(e=n.results)||void 0===e?void 0:e.length)?a.data.results:null,isError:r,isLoading:!a&&!r}}function p(n,e){if(!n)return null;var t=n.program,o=n.patient,a=n.dateEnrolled,r=n.dateCompleted,s=n.location;return(0,i.openmrsObservableFetch)("/ws/rest/v1/programenrollment",{method:"POST",headers:{"Content-Type":"application/json"},body:{program:t,patient:o,dateEnrolled:a,dateCompleted:r,location:s},signal:e.signal})}}}]);
|
|
2
2
|
//# sourceMappingURL=375.js.map
|