@openmrs/esm-fast-data-entry-app 1.0.0-pre.29 → 1.0.0-pre.31
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.
|
@@ -1,79 +1,121 @@
|
|
|
1
|
-
name: Node.js CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [main]
|
|
6
|
-
pull_request:
|
|
7
|
-
branches: [main]
|
|
8
|
-
release:
|
|
9
|
-
types:
|
|
10
|
-
- created
|
|
11
|
-
|
|
12
|
-
env:
|
|
13
|
-
ESM_NAME: "@openmrs/esm-fast-data-entry-app"
|
|
14
|
-
JS_NAME: "openmrs-esm-fast-data-entry-app.js"
|
|
15
|
-
|
|
16
|
-
jobs:
|
|
17
|
-
build:
|
|
18
|
-
runs-on: ubuntu-latest
|
|
19
|
-
|
|
20
|
-
steps:
|
|
21
|
-
- uses: actions/checkout@v2
|
|
22
|
-
- name: Use Node.js
|
|
23
|
-
uses: actions/setup-node@v1
|
|
24
|
-
with:
|
|
25
|
-
node-version: "16.x"
|
|
26
|
-
- run: yarn
|
|
27
|
-
- run: yarn lint
|
|
28
|
-
- run: yarn coverage
|
|
29
|
-
- run: yarn typescript
|
|
30
|
-
- run: yarn build
|
|
31
|
-
- name: Upload Artifacts
|
|
32
|
-
uses: actions/upload-artifact@v2
|
|
33
|
-
with:
|
|
34
|
-
name: dist
|
|
35
|
-
path: |
|
|
36
|
-
dist
|
|
37
|
-
|
|
38
|
-
pre_release:
|
|
39
|
-
runs-on: ubuntu-latest
|
|
40
|
-
|
|
41
|
-
needs: build
|
|
42
|
-
|
|
43
|
-
if: ${{ github.event_name == 'push' }}
|
|
44
|
-
|
|
45
|
-
steps:
|
|
46
|
-
- uses: actions/checkout@v2
|
|
47
|
-
- name: Download Artifacts
|
|
48
|
-
uses: actions/download-artifact@v2
|
|
49
|
-
- name: Use Node.js
|
|
50
|
-
uses: actions/setup-node@v1
|
|
51
|
-
with:
|
|
52
|
-
node-version: "16.x"
|
|
53
|
-
registry-url: "https://registry.npmjs.org"
|
|
54
|
-
- run: npm install
|
|
55
|
-
- run: sed -i -e "s/\(\"version\":\\s\+\"\([0-9]\+\.\?\)\+\)/\1-pre.${{ github.run_number }}/" 'package.json'
|
|
56
|
-
- run: npm publish --tag next
|
|
57
|
-
env:
|
|
58
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
|
59
|
-
|
|
60
|
-
release:
|
|
61
|
-
runs-on: ubuntu-latest
|
|
62
|
-
|
|
63
|
-
needs: build
|
|
64
|
-
|
|
65
|
-
if: ${{ github.event_name == 'release' }}
|
|
66
|
-
|
|
67
|
-
steps:
|
|
68
|
-
- uses: actions/checkout@v2
|
|
69
|
-
- name: Download Artifacts
|
|
70
|
-
uses: actions/download-artifact@v2
|
|
71
|
-
- name: Use Node.js
|
|
72
|
-
uses: actions/setup-node@v1
|
|
73
|
-
with:
|
|
74
|
-
node-version: "16.x"
|
|
75
|
-
registry-url: 'https://registry.npmjs.org'
|
|
76
|
-
- run: yarn
|
|
77
|
-
- run: yarn publish
|
|
78
|
-
env:
|
|
79
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
|
1
|
+
name: Node.js CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
release:
|
|
9
|
+
types:
|
|
10
|
+
- created
|
|
11
|
+
|
|
12
|
+
env:
|
|
13
|
+
ESM_NAME: "@openmrs/esm-fast-data-entry-app"
|
|
14
|
+
JS_NAME: "openmrs-esm-fast-data-entry-app.js"
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
build:
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v2
|
|
22
|
+
- name: Use Node.js
|
|
23
|
+
uses: actions/setup-node@v1
|
|
24
|
+
with:
|
|
25
|
+
node-version: "16.x"
|
|
26
|
+
- run: yarn
|
|
27
|
+
- run: yarn lint
|
|
28
|
+
- run: yarn coverage
|
|
29
|
+
- run: yarn typescript
|
|
30
|
+
- run: yarn build
|
|
31
|
+
- name: Upload Artifacts
|
|
32
|
+
uses: actions/upload-artifact@v2
|
|
33
|
+
with:
|
|
34
|
+
name: dist
|
|
35
|
+
path: |
|
|
36
|
+
dist
|
|
37
|
+
|
|
38
|
+
pre_release:
|
|
39
|
+
runs-on: ubuntu-latest
|
|
40
|
+
|
|
41
|
+
needs: build
|
|
42
|
+
|
|
43
|
+
if: ${{ github.event_name == 'push' }}
|
|
44
|
+
|
|
45
|
+
steps:
|
|
46
|
+
- uses: actions/checkout@v2
|
|
47
|
+
- name: Download Artifacts
|
|
48
|
+
uses: actions/download-artifact@v2
|
|
49
|
+
- name: Use Node.js
|
|
50
|
+
uses: actions/setup-node@v1
|
|
51
|
+
with:
|
|
52
|
+
node-version: "16.x"
|
|
53
|
+
registry-url: "https://registry.npmjs.org"
|
|
54
|
+
- run: npm install
|
|
55
|
+
- run: sed -i -e "s/\(\"version\":\\s\+\"\([0-9]\+\.\?\)\+\)/\1-pre.${{ github.run_number }}/" 'package.json'
|
|
56
|
+
- run: npm publish --tag next
|
|
57
|
+
env:
|
|
58
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
|
59
|
+
|
|
60
|
+
release:
|
|
61
|
+
runs-on: ubuntu-latest
|
|
62
|
+
|
|
63
|
+
needs: build
|
|
64
|
+
|
|
65
|
+
if: ${{ github.event_name == 'release' }}
|
|
66
|
+
|
|
67
|
+
steps:
|
|
68
|
+
- uses: actions/checkout@v2
|
|
69
|
+
- name: Download Artifacts
|
|
70
|
+
uses: actions/download-artifact@v2
|
|
71
|
+
- name: Use Node.js
|
|
72
|
+
uses: actions/setup-node@v1
|
|
73
|
+
with:
|
|
74
|
+
node-version: "16.x"
|
|
75
|
+
registry-url: 'https://registry.npmjs.org'
|
|
76
|
+
- run: yarn
|
|
77
|
+
- run: yarn publish
|
|
78
|
+
env:
|
|
79
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
|
80
|
+
|
|
81
|
+
deploy_fast_data_entry_app:
|
|
82
|
+
runs-on: ubuntu-latest
|
|
83
|
+
|
|
84
|
+
env:
|
|
85
|
+
DIR_NAME: "esm-fast-data-entry-app"
|
|
86
|
+
ESM_NAME: "@openmrs/esm-fast-data-entry-app"
|
|
87
|
+
JS_NAME: "openmrs-esm-fast-data-entry-app.js"
|
|
88
|
+
|
|
89
|
+
needs: build
|
|
90
|
+
|
|
91
|
+
if: ${{ github.event_name == 'push' }}
|
|
92
|
+
|
|
93
|
+
steps:
|
|
94
|
+
- name: Download Artifacts
|
|
95
|
+
uses: actions/download-artifact@v2
|
|
96
|
+
- name: Compute Timestamp
|
|
97
|
+
run: echo "TIMESTAMP=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
|
|
98
|
+
- name: Prepare Directory
|
|
99
|
+
shell: bash
|
|
100
|
+
run: |
|
|
101
|
+
mkdir -p dist/${{ env.ESM_NAME }}/${{ env.TIMESTAMP }}_${{ github.sha }}
|
|
102
|
+
mv packages/${{ env.DIR_NAME }}/dist/*.* dist/${{ env.ESM_NAME }}/${{ env.TIMESTAMP }}_${{ github.sha }}/
|
|
103
|
+
- name: Publish to Digital Ocean
|
|
104
|
+
uses: jakejarvis/s3-sync-action@master
|
|
105
|
+
with:
|
|
106
|
+
args: --acl public-read --follow-symlinks --cache-control "max-age=31536000"
|
|
107
|
+
env:
|
|
108
|
+
AWS_S3_BUCKET: ${{ secrets.DIGITAL_OCEAN_SPACES_BUCKET }}
|
|
109
|
+
AWS_ACCESS_KEY_ID: ${{ secrets.DIGITAL_OCEAN_SPACES_KEY_ID }}
|
|
110
|
+
AWS_SECRET_ACCESS_KEY: ${{ secrets.DIGITAL_OCEAN_SPACES_ACCESS_KEY }}
|
|
111
|
+
AWS_S3_ENDPOINT: ${{ secrets.DIGITAL_OCEAN_SPACES_ENDPOINT }}
|
|
112
|
+
SOURCE_DIR: "dist"
|
|
113
|
+
- name: Update Importmap
|
|
114
|
+
uses: fjogeleit/http-request-action@master
|
|
115
|
+
with:
|
|
116
|
+
url: http://${{ secrets.DEPLOYER_HOST }}/services?env=prod
|
|
117
|
+
method: "PATCH"
|
|
118
|
+
username: ${{ secrets.DEPLOYER_USERNAME }}
|
|
119
|
+
password: ${{ secrets.DEPLOYER_PASSWORD }}
|
|
120
|
+
data: '{ "service":"${{ env.ESM_NAME }}","url":"https://spa-modules.nyc3.cdn.digitaloceanspaces.com/${{ env.ESM_NAME }}/${{ env.TIMESTAMP }}_${{ github.sha }}/${{ env.JS_NAME }}" }'
|
|
121
|
+
customHeaders: '{ "Accept": "application/json", "Content-Type": "application/json" }'
|
package/dist/132.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[132],{8132:(e,r,t)=>{"use strict";t.r(r),t.d(r,{backendDependencies:()=>s,importTranslation:()=>n,setupOpenMRS:()=>i});var
|
|
1
|
+
(self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[132],{8132:(e,r,t)=>{"use strict";t.r(r),t.d(r,{backendDependencies:()=>s,importTranslation:()=>n,setupOpenMRS:()=>i});var a=t(311),o={formCategories:{_type:a.Type.Array,_description:"Organize forms into categories. A form can belong to multiple categories.",_elements:{name:{_type:a.Type.String,_description:"Category name"},forms:{_type:a.Type.Array,_description:"List of forms for this category.",_elements:{formUUID:{_type:a.Type.UUID,_description:"UUID of form"},name:{_type:a.Type.String,_description:"Name of form"}}}},_default:[{name:"ICRC Forms",forms:[{formUUID:"0cefb866-110c-4f16-af58-560932a1db1f",name:"Adult Triage"}]},{name:"Distress Scales",forms:[{formUUID:"9f26aad4-244a-46ca-be49-1196df1a8c9a",name:"POC Sample Form 1"}]}]},formCategoriesToShow:{_type:a.Type.Array,_description:"Forms to show by default on the forms app home page.",_elements:{_type:a.Type.String,_description:"Name of category"},_default:["ICRC Forms","Distress Scales"]}},n=t(3979),s={fhir2:"^1.2.0","webservices.rest":"^2.2.0"};function i(){var e="@openmrs/esm-fast-data-entry-app",r={featureName:"fast-data-entry-app",moduleName:e};return(0,a.defineConfigSchema)(e,o),(0,a.registerBreadcrumbs)([{path:"".concat(window.spaBase,"/forms"),title:"Forms",parent:"".concat(window.spaBase,"/home")}]),{pages:[{load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(211),t.e(804)]).then(t.bind(t,9804))}),r),route:"forms"}],extensions:[{name:"forms-app-link",slot:"app-menu-slot",load:(0,a.getAsyncLifecycle)((function(){return Promise.all([t.e(211),t.e(397),t.e(776)]).then(t.bind(t,5776))}),r),online:!0,offline:!0}]}}},3979:(e,r,t)=>{var a={"./en.json":[3574,574]};function o(e){if(!t.o(a,e))return Promise.resolve().then((()=>{var r=new Error("Cannot find module '"+e+"'");throw r.code="MODULE_NOT_FOUND",r}));var r=a[e],o=r[0];return t.e(r[1]).then((()=>t(o)))}o.keys=()=>Object.keys(a),o.id=3979,e.exports=o}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register("@openmrs/esm-fast-data-entry-app",[],function(a,b){var c=void 0;return{execute:function(){a((()=>{function g(a){var b=m[a];if(void 0!==b)return b.exports;var c=m[a]={id:a,loaded:!1,exports:{}};return G[a].call(c.exports,c,c.exports,g),c.loaded=!0,c.exports}var j,k,q,w,x,y,z,A,B,C,r,D,E,F,G={1858:(a,b,c)=>{(0,c(2722).s)(1)},2722:(a,b,c)=>{const d=c(3905).R;b.s=function(a){if(a||(a=1),!c.y.meta||!c.y.meta.url)throw console.error("__system_context__",c.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");c.p=d(c.y.meta.url,a)}},5356:(a,b,c)=>{c(1858)},3905:(a,b)=>{b.R=function(b,c){var d=document.createElement("a");d.href=b;for(var e="/"===d.pathname[0]?d.pathname:"/"+d.pathname,f=0,g=e.length;f!==c&&0<=g;)"/"===e[--g]&&f++;if(f!==c)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+c+") is greater than the number of directories ("+f+") in the URL path "+b);var h=e.slice(0,g+1);return d.protocol+"//"+d.host+h},Number.isInteger},6751:(b,d,f)=>{var g={app:()=>(c||((self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[132],{8132:(b,c,d)=>{function e(){var
|
|
1
|
+
System.register("@openmrs/esm-fast-data-entry-app",[],function(a,b){var c=void 0;return{execute:function(){a((()=>{function g(a){var b=m[a];if(void 0!==b)return b.exports;var c=m[a]={id:a,loaded:!1,exports:{}};return G[a].call(c.exports,c,c.exports,g),c.loaded=!0,c.exports}var j,k,q,w,x,y,z,A,B,C,r,D,E,F,G={1858:(a,b,c)=>{(0,c(2722).s)(1)},2722:(a,b,c)=>{const d=c(3905).R;b.s=function(a){if(a||(a=1),!c.y.meta||!c.y.meta.url)throw console.error("__system_context__",c.y),Error("systemjs-webpack-interop was provided an unknown SystemJS context. Expected context.meta.url, but none was provided");c.p=d(c.y.meta.url,a)}},5356:(a,b,c)=>{c(1858)},3905:(a,b)=>{b.R=function(b,c){var d=document.createElement("a");d.href=b;for(var e="/"===d.pathname[0]?d.pathname:"/"+d.pathname,f=0,g=e.length;f!==c&&0<=g;)"/"===e[--g]&&f++;if(f!==c)throw Error("systemjs-webpack-interop: rootDirectoryLevel ("+c+") is greater than the number of directories ("+f+") in the URL path "+b);var h=e.slice(0,g+1);return d.protocol+"//"+d.host+h},Number.isInteger},6751:(b,d,f)=>{var g={app:()=>(c||((self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[]).push([[132],{8132:(b,c,d)=>{function e(){var b={featureName:"fast-data-entry-app",moduleName:"@openmrs/esm-fast-data-entry-app"};return(0,f.defineConfigSchema)("@openmrs/esm-fast-data-entry-app",a),(0,f.registerBreadcrumbs)([{path:"".concat(window.spaBase,"/forms"),title:"Forms",parent:"".concat(window.spaBase,"/home")}]),{pages:[{load:(0,f.getAsyncLifecycle)(function(){return Promise.all([d.e(211),d.e(804)]).then(d.bind(d,9804))},b),route:"forms"}],extensions:[{name:"forms-app-link",slot:"app-menu-slot",load:(0,f.getAsyncLifecycle)(function(){return Promise.all([d.e(211),d.e(397),d.e(776)]).then(d.bind(d,5776))},b),online:!0,offline:!0}]}}d.r(c),d.d(c,{backendDependencies:()=>h,importTranslation:()=>g,setupOpenMRS:()=>e,assets:()=>["147.js","247.js","294.js","openmrs-esm-fast-data-entry-app.js","508.js","536.js","574.js","595.js","634.js","776.js","804.js","906.js","935.js","954.js"]});var f=d(311),a={formCategories:{_type:f.Type.Array,_description:"Organize forms into categories. A form can belong to multiple categories.",_elements:{name:{_type:f.Type.String,_description:"Category name"},forms:{_type:f.Type.Array,_description:"List of forms for this category.",_elements:{formUUID:{_type:f.Type.UUID,_description:"UUID of form"},name:{_type:f.Type.String,_description:"Name of form"}}}},_default:[{name:"ICRC Forms",forms:[{formUUID:"0cefb866-110c-4f16-af58-560932a1db1f",name:"Adult Triage"}]},{name:"Distress Scales",forms:[{formUUID:"9f26aad4-244a-46ca-be49-1196df1a8c9a",name:"POC Sample Form 1"}]}]},formCategoriesToShow:{_type:f.Type.Array,_description:"Forms to show by default on the forms app home page.",_elements:{_type:f.Type.String,_description:"Name of category"},_default:["ICRC Forms","Distress Scales"]}},g=d(3979),h={fhir2:"^1.2.0","webservices.rest":"^2.2.0"}},3979:(b,c,d)=>{function e(a){if(!d.o(f,a))return Promise.resolve().then(()=>{var b=new Error("Cannot find module '"+a+"'");throw b.code="MODULE_NOT_FOUND",b});var b=f[a],c=b[0];return d.e(b[1]).then(()=>d(c))}var f={"./en.json":[3574,574]};e.keys=()=>Object.keys(f),e.id=3979,b.exports=e}}]),c=f.e(132).then(()=>()=>f(8132))),c)},e=(a,b)=>(f.R=b,b=f.o(g,a)?g[a]():Promise.resolve().then(()=>{throw new Error("Module \""+a+"\" does not exist in container.")}),f.R=void 0,b),h=(a,b)=>{if(f.S){var c=f.S["default"];if(c&&c!==a)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return f.S["default"]=a,f.I("default",b)}};f.d(d,{get:()=>e,init:()=>h})}},m={};return g.m=G,g.c=m,g.y=b,g.n=a=>{var b=a&&a.__esModule?()=>a.default:()=>a;return g.d(b,{a:b}),b},g.d=(a,b)=>{for(var c in b)g.o(b,c)&&!g.o(a,c)&&Object.defineProperty(a,c,{enumerable:!0,get:b[c]})},g.f={},g.e=a=>Promise.all(Object.keys(g.f).reduce((b,c)=>(g.f[c](a,b),b),[])),g.u=a=>a+".js",g.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(a){if("object"==typeof window)return window}}(),g.o=(a,b)=>Object.prototype.hasOwnProperty.call(a,b),j={},k="@openmrs/esm-fast-data-entry-app:",g.l=(a,b,c)=>{if(j[a])j[a].push(b);else{var e,h;if(void 0!==c)for(var m,n=document.getElementsByTagName("script"),o=0;o<n.length;o++)if(m=n[o],m.getAttribute("src")==a||m.getAttribute("data-webpack")==k+c){e=m;break}e||(h=!0,(e=document.createElement("script")).charset="utf-8",e.timeout=120,g.nc&&e.setAttribute("nonce",g.nc),e.setAttribute("data-webpack",k+c),e.src=a),j[a]=[b];var q=(b,c)=>{e.onerror=e.onload=null,clearTimeout(d);var f=j[a];if(delete j[a],e.parentNode&&e.parentNode.removeChild(e),f&&f.forEach(a=>a(c)),b)return b(c)},d=setTimeout(q.bind(null,void 0,{type:"timeout",target:e}),12e4);e.onerror=q.bind(null,e.onerror),e.onload=q.bind(null,e.onload),h&&document.head.appendChild(e)}},g.r=a=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},g.nmd=a=>(a.paths=[],a.children||(a.children=[]),a),(()=>{g.S={};var b={},c={};g.I=(d,e)=>{e||(e=[]);var f=c[d];if(f||(f=c[d]={}),!(0<=e.indexOf(f))){if(e.push(f),b[d])return b[d];g.o(g.S,d)||(g.S[d]={});var h=g.S[d],a=(a,b,c,d)=>{var e=h[a]=h[a]||{},f=e[b];f&&(f.loaded||(!d==!f.eager?!("@openmrs/esm-fast-data-entry-app">f.from):!d))||(e[b]={get:c,from:"@openmrs/esm-fast-data-entry-app",eager:!!d})},i=[];return"default"===d&&(a("@openmrs/esm-framework","3.4.1-pre.122",()=>Promise.all([g.e(595),g.e(211)]).then(()=>()=>g(595))),a("carbon-icons","7.0.7",()=>g.e(906).then(()=>()=>g(906))),a("react-dom","16.14.0",()=>Promise.all([g.e(935),g.e(211)]).then(()=>()=>g(3935))),a("react-i18next","11.18.0",()=>Promise.all([g.e(247),g.e(211)]).then(()=>()=>g(8247))),a("react-router-dom","5.3.3",()=>Promise.all([g.e(536),g.e(211)]).then(()=>()=>g(536))),a("react","16.14.0",()=>g.e(294).then(()=>()=>g(7294)))),b[d]=i.length?Promise.all(i).then(()=>b[d]=1):1}}})(),g.p="",q=a=>{var b=a=>a.split(".").map(a=>+a==a?+a:a),c=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(a),d=c[1]?b(c[1]):[];return c[2]&&(d.length++,d.push.apply(d,b(c[2]))),c[3]&&(d.push([]),d.push.apply(d,b(c[3]))),d},w=(b,c)=>{b=q(b),c=q(c);for(var d=0;;){if(d>=b.length)return d<c.length&&"u"!=(typeof c[d])[0];var f=b[d],g=(typeof f)[0];if(d>=c.length)return"u"==g;var a=c[d],h=(typeof a)[0];if(g!=h)return"o"==g&&"n"==h||"s"==h||"u"==g;if("o"!=g&&"u"!=g&&f!=a)return f<a;d++}},x=a=>{function b(){return g.pop().replace(/^\((.+)\)$/,"$1")}var c=a[0],d="";if(1===a.length)return"*";if(c+.5){d+=0==c?">=":-1==c?"<":1==c?"^":2==c?"~":0<c?"=":"!=";for(var e=1,f=1;f<a.length;f++)e--,d+="u"==(typeof(h=a[f]))[0]?"-":(0<e?".":"")+(e=2,h);return d}var g=[];for(f=1;f<a.length;f++){var h=a[f];g.push(0===h?"not("+b()+")":1===h?"("+b()+" || "+b()+")":2===h?g.pop()+" "+g.pop():x(h))}return b()},y=(b,e)=>{if(0 in b){e=q(e);var g=b[0],i=0>g;i&&(g=-g-1);for(var j=0,k=1,m=!0;;k++,j++){var n,o,v=k<b.length?(typeof b[k])[0]:"";if(j>=e.length||"o"==(o=(typeof(n=e[j]))[0]))return!m||("u"==v?k>g&&!i:""==v!=i);if("u"==o){if(!m||"u"!=v)return!1;}else if(!m)"s"!=v&&"n"!=v&&(m=!1,k--);else if(v==o){if(!(k<=g)){if(i?n>b[k]:n<b[k])return!1;n!=b[k]&&(m=!1)}else if(n!=b[k])return!1;}else if("s"!=v&&"n"!=v){if(i||k<=g)return!1;m=!1,k--}else{if(k<=g||o<v!=i)return!1;m=!1}}}var d=[],p=d.pop.bind(d);for(j=1;j<b.length;j++){var c=b[j];d.push(1==c?p()|p():2==c?p()&p():c?y(c,e):!p())}return!!p()},z=(a,b)=>{var c=a[b];return Object.keys(c).reduce((a,b)=>a&&(c[a].loaded||!w(a,b))?a:b,0)},A=(a,b,c,d)=>"Unsatisfied version "+c+" from "+(c&&a[b][c].from)+" of shared singleton module "+b+" (required "+x(d)+")",B=(a,b,c,d)=>{var e=z(a,c);return y(d,e)||"undefined"!=typeof console&&console.warn&&console.warn(A(a,c,e,d)),C(a[c][e])},C=a=>(a.loaded=1,a.get()),r=(b=>function(c,d,e,f){var h=g.I(c);return h&&h.then?h.then(b.bind(b,c,g.S[c],d,e,f)):b(0,g.S[c],d,e,f)})((a,b,c,d,e)=>b&&g.o(b,c)?B(b,0,c,d):e()),D={},E={311:()=>r("default","@openmrs/esm-framework",[1,"next"],()=>Promise.all([g.e(595),g.e(211)]).then(()=>()=>g(595))),4211:()=>r("default","react",[1,16,14],()=>g.e(294).then(()=>()=>g(7294))),2221:()=>r("default","react-router-dom",[1,5,0,0],()=>g.e(536).then(()=>()=>g(536))),3397:()=>r("default","react-i18next",[1,11],()=>g.e(247).then(()=>()=>g(8247))),8408:()=>r("default","react-dom",[1,16,0],()=>g.e(935).then(()=>()=>g(3935)))},F={132:[311],211:[4211],397:[3397],508:[8408],804:[2221]},g.f.consumes=(a,b)=>{g.o(F,a)&&F[a].forEach(a=>{if(g.o(D,a))return b.push(D[a]);var c=b=>{D[a]=0,g.m[a]=c=>{delete g.c[a],c.exports=b()}},d=b=>{delete D[a],g.m[a]=()=>{throw delete g.c[a],b}};try{var e=E[a]();e.then?b.push(D[a]=e.then(c).catch(d)):c(e)}catch(a){d(a)}})},(()=>{var b={447:0};g.f.j=(c,d)=>{var e=g.o(b,c)?b[c]:void 0;if(0!==e)if(e)d.push(e[2]);else if(/^(211|397)$/.test(c))b[c]=0;else{var f=new Promise((a,d)=>e=b[c]=[a,d]);d.push(e[2]=f);var h=g.p+g.u(c),j=new Error;g.l(h,d=>{if(g.o(b,c)&&(0!==(e=b[c])&&(b[c]=void 0),e)){var f=d&&("load"===d.type?"missing":d.type),h=d&&d.target&&d.target.src;j.message="Loading chunk "+c+" failed.\n("+f+": "+h+")",j.name="ChunkLoadError",j.type=f,j.request=h,e[1](j)}},"chunk-"+c,c)}};var a=(c,d)=>{var e,f,[h,a,i]=d,j=0;if(h.some(a=>0!==b[a])){for(e in a)g.o(a,e)&&(g.m[e]=a[e]);i&&i(g)}for(c&&c(d);j<h.length;j++)f=h[j],g.o(b,f)&&b[f]&&b[f][0](),b[f]=0},c=self.webpackChunk_openmrs_esm_fast_data_entry_app=self.webpackChunk_openmrs_esm_fast_data_entry_app||[];c.forEach(a.bind(null,0)),c.push=a.bind(null,c.push.bind(c))})(),g.nc=void 0,g(5356),g(6751)})())}}});
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
"initial": false,
|
|
6
6
|
"entry": false,
|
|
7
7
|
"recorded": false,
|
|
8
|
-
"size":
|
|
8
|
+
"size": 4640,
|
|
9
9
|
"sizes": {
|
|
10
10
|
"consume-shared": 42,
|
|
11
|
-
"javascript":
|
|
11
|
+
"javascript": 4598
|
|
12
12
|
},
|
|
13
13
|
"names": [],
|
|
14
14
|
"idHints": [],
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"132.js"
|
|
20
20
|
],
|
|
21
21
|
"auxiliaryFiles": [],
|
|
22
|
-
"hash": "
|
|
22
|
+
"hash": "91d3a396ca976e6cf058",
|
|
23
23
|
"childrenByOrder": {}
|
|
24
24
|
},
|
|
25
25
|
{
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -48,10 +48,10 @@ const backendDependencies = {
|
|
|
48
48
|
* `/openmrs/spa/hello`.
|
|
49
49
|
*/
|
|
50
50
|
function setupOpenMRS() {
|
|
51
|
-
const moduleName = "@openmrs/esm-fast-data-entry";
|
|
51
|
+
const moduleName = "@openmrs/esm-fast-data-entry-app";
|
|
52
52
|
|
|
53
53
|
const options = {
|
|
54
|
-
featureName: "fast-data-entry",
|
|
54
|
+
featureName: "fast-data-entry-app",
|
|
55
55
|
moduleName,
|
|
56
56
|
};
|
|
57
57
|
|