@openmrs/esm-openconceptlab-app 3.0.1-pre.7 → 3.0.1-pre.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/.turbo/turbo-build.log +33 -36
  2. package/dist/130.js +2 -0
  3. package/dist/130.js.LICENSE.txt +5 -0
  4. package/dist/130.js.map +1 -0
  5. package/dist/316.js +1 -1
  6. package/dist/316.js.map +1 -0
  7. package/dist/392.js +1 -0
  8. package/dist/392.js.map +1 -0
  9. package/dist/553.js +1 -0
  10. package/dist/553.js.map +1 -0
  11. package/dist/574.js +1 -1
  12. package/dist/608.js +2 -0
  13. package/dist/608.js.LICENSE.txt +15 -0
  14. package/dist/608.js.map +1 -0
  15. package/dist/784.js +1 -1
  16. package/dist/784.js.map +1 -0
  17. package/dist/842.js +1 -0
  18. package/dist/842.js.map +1 -0
  19. package/dist/853.js +1 -0
  20. package/dist/853.js.map +1 -0
  21. package/dist/912.js +2 -0
  22. package/dist/912.js.LICENSE.txt +9 -0
  23. package/dist/912.js.map +1 -0
  24. package/dist/main.js +1 -1
  25. package/dist/main.js.map +1 -0
  26. package/dist/openmrs-esm-openconceptlab-app.js +1 -1
  27. package/dist/openmrs-esm-openconceptlab-app.js.buildmanifest.json +143 -54
  28. package/dist/openmrs-esm-openconceptlab-app.js.map +1 -0
  29. package/dist/routes.json +1 -0
  30. package/jest.config.js +3 -0
  31. package/package.json +7 -5
  32. package/src/admin-ocl-card-link.component.tsx +23 -0
  33. package/src/declarations.d.tsx +2 -0
  34. package/src/import/import.component.tsx +38 -21
  35. package/src/import/import.resource.ts +1 -1
  36. package/src/import/import.scss +26 -0
  37. package/src/import/import.test.tsx +13 -15
  38. package/src/index.ts +9 -51
  39. package/src/previous-imports/import-overview/import-items.component.tsx +23 -20
  40. package/src/previous-imports/import-overview/import-items.resource.ts +1 -1
  41. package/src/previous-imports/import-overview/import-items.scss +23 -0
  42. package/src/previous-imports/import-overview/import-items.test.tsx +7 -14
  43. package/src/previous-imports/import-overview/import-overview.component.tsx +2 -2
  44. package/src/previous-imports/import-overview/import-overview.scss +10 -0
  45. package/src/previous-imports/import-overview/import-overview.test.tsx +1 -2
  46. package/src/previous-imports/previous-imports.component.tsx +4 -4
  47. package/src/previous-imports/previous-imports.resource.ts +1 -1
  48. package/src/previous-imports/previous-imports.scss +39 -0
  49. package/src/previous-imports/previous-imports.test.tsx +1 -2
  50. package/src/root.component.tsx +8 -8
  51. package/src/root.scss +23 -0
  52. package/src/root.test.tsx +4 -4
  53. package/src/routes.json +20 -0
  54. package/src/subscription/subscription.component.tsx +58 -24
  55. package/src/subscription/subscription.resource.ts +1 -1
  56. package/src/subscription/subscription.scss +26 -0
  57. package/src/subscription/subscription.test.tsx +22 -20
  58. package/src/utils.ts +27 -0
  59. package/translations/en.json +42 -40
  60. package/tsconfig.json +1 -19
  61. package/webpack.config.js +1 -1
  62. package/dist/452.js +0 -1
  63. package/dist/645.js +0 -2
  64. package/dist/645.js.LICENSE.txt +0 -20
  65. package/dist/709.js +0 -1
  66. package/dist/858.js +0 -2
  67. package/dist/858.js.LICENSE.txt +0 -1
  68. package/dist/862.js +0 -1
  69. package/dist/openmrs-esm-openconceptlab-app.old +0 -1
  70. package/locales/en/translation.json +0 -35
  71. package/locales/fr/translation.json +0 -35
  72. package/src/import/import.component.scss +0 -27
  73. package/src/previous-imports/import-overview/import-items.component.scss +0 -24
  74. package/src/previous-imports/import-overview/import-overview.component.scss +0 -11
  75. package/src/previous-imports/previous-imports.component.scss +0 -39
  76. package/src/root.component.scss +0 -23
  77. package/src/setup-tests.ts +0 -1
  78. package/src/subscription/subscription.component.scss +0 -27
@@ -1 +0,0 @@
1
- /*! For license information please see openmrs-esm-react-utils.js.LICENSE.txt */
package/dist/862.js DELETED
@@ -1 +0,0 @@
1
- (self.webpackChunk_openmrs_esm_openconceptlab_app=self.webpackChunk_openmrs_esm_openconceptlab_app||[]).push([[862],{4862:(e,n,o)=>{"use strict";o.r(n),o.d(n,{backendDependencies:()=>a,importTranslation:()=>t,setupOpenMRS:()=>c});var r=o(906),p={},t=o(3979),a={openconceptlab:"^1.2.0","webservices.rest":"^2.2.0"};function c(){var e="@openmrs/esm-openconceptlab-app",n={featureName:"openconceptlab",moduleName:e};return(0,r.defineConfigSchema)(e,p),{pages:[{load:(0,r.getAsyncLifecycle)((function(){return Promise.all([o.e(645),o.e(268),o.e(452)]).then(o.bind(o,7564))}),n),route:"ocl"}]}}},3979:(e,n,o)=>{var r={"./en.json":[3574,574]};function p(e){if(!o.o(r,e))return Promise.resolve().then((()=>{var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=r[e],p=n[0];return o.e(n[1]).then((()=>o(p)))}p.keys=()=>Object.keys(r),p.id=3979,e.exports=p}}]);
@@ -1 +0,0 @@
1
- var _openmrs_esm_openconceptlab_app;(()=>{"use strict";var e,r,t,n,o,a,i,l,s,p,u,f,c,d,h={3203:(e,r,t)=>{var n={"./start":()=>t.e(862).then((()=>()=>t(4862)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not exist in container.')})),t.R=void 0,r),a=(e,r)=>{if(t.S){var n="default",o=t.S[n];if(o&&o!==e)throw new Error("Container initialization failed as it has already been initialized with a different share scope");return t.S[n]=e,t.I(n,r)}};t.d(r,{get:()=>o,init:()=>a})}},m={};function v(e){var r=m[e];if(void 0!==r)return r.exports;var t=m[e]={id:e,loaded:!1,exports:{}};return h[e].call(t.exports,t,t.exports,v),t.loaded=!0,t.exports}v.m=h,v.c=m,v.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return v.d(r,{a:r}),r},v.d=(e,r)=>{for(var t in r)v.o(r,t)&&!v.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},v.f={},v.e=e=>Promise.all(Object.keys(v.f).reduce(((r,t)=>(v.f[t](e,r),r)),[])),v.u=e=>e+".js",v.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),v.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e={},r="@openmrs/esm-openconceptlab-app:",v.l=(t,n,o,a)=>{if(e[t])e[t].push(n);else{var i,l;if(void 0!==o)for(var s=document.getElementsByTagName("script"),p=0;p<s.length;p++){var u=s[p];if(u.getAttribute("src")==t||u.getAttribute("data-webpack")==r+o){i=u;break}}i||(l=!0,(i=document.createElement("script")).charset="utf-8",i.timeout=120,v.nc&&i.setAttribute("nonce",v.nc),i.setAttribute("data-webpack",r+o),i.src=t),e[t]=[n];var f=(r,n)=>{i.onerror=i.onload=null,clearTimeout(c);var o=e[t];if(delete e[t],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach((e=>e(n))),r)return r(n)},c=setTimeout(f.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=f.bind(null,i.onerror),i.onload=f.bind(null,i.onload),l&&document.head.appendChild(i)}},v.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},v.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{v.S={};var e={},r={};v.I=(t,n)=>{n||(n=[]);var o=r[t];if(o||(o=r[t]={}),!(n.indexOf(o)>=0)){if(n.push(o),e[t])return e[t];v.o(v.S,t)||(v.S[t]={});var a=v.S[t],i="@openmrs/esm-openconceptlab-app",l=(e,r,t,n)=>{var o=a[e]=a[e]||{},l=o[r];(!l||!l.loaded&&(!n!=!l.eager?n:i>l.from))&&(o[r]={get:t,from:i,eager:!!n})},s=[];return"default"===t&&(l("@openmrs/esm-framework","4.0.1-pre.238",(()=>Promise.all([v.e(858),v.e(268)]).then((()=>()=>v(6858))))),l("react-dom","18.2.0",(()=>Promise.all([v.e(316),v.e(268)]).then((()=>()=>v(8316))))),l("react-i18next","11.18.4",(()=>Promise.all([v.e(709),v.e(268)]).then((()=>()=>v(709))))),l("react","18.2.0",(()=>v.e(784).then((()=>()=>v(2784)))))),e[t]=s.length?Promise.all(s).then((()=>e[t]=1)):1}}})(),(()=>{var e;v.g.importScripts&&(e=v.g.location+"");var r=v.g.document;if(!e&&r&&(r.currentScript&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");t.length&&(e=t[t.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),v.p=e})(),t=e=>{var r=e=>e.split(".").map((e=>+e==e?+e:e)),t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(e),n=t[1]?r(t[1]):[];return t[2]&&(n.length++,n.push.apply(n,r(t[2]))),t[3]&&(n.push([]),n.push.apply(n,r(t[3]))),n},n=(e,r)=>{e=t(e),r=t(r);for(var n=0;;){if(n>=e.length)return n<r.length&&"u"!=(typeof r[n])[0];var o=e[n],a=(typeof o)[0];if(n>=r.length)return"u"==a;var i=r[n],l=(typeof i)[0];if(a!=l)return"o"==a&&"n"==l||"s"==l||"u"==a;if("o"!=a&&"u"!=a&&o!=i)return o<i;n++}},o=e=>{var r=e[0],t="";if(1===e.length)return"*";if(r+.5){t+=0==r?">=":-1==r?"<":1==r?"^":2==r?"~":r>0?"=":"!=";for(var n=1,a=1;a<e.length;a++)n--,t+="u"==(typeof(l=e[a]))[0]?"-":(n>0?".":"")+(n=2,l);return t}var i=[];for(a=1;a<e.length;a++){var l=e[a];i.push(0===l?"not("+s()+")":1===l?"("+s()+" || "+s()+")":2===l?i.pop()+" "+i.pop():o(l))}return s();function s(){return i.pop().replace(/^\((.+)\)$/,"$1")}},a=(e,r)=>{if(0 in e){r=t(r);var n=e[0],o=n<0;o&&(n=-n-1);for(var i=0,l=1,s=!0;;l++,i++){var p,u,f=l<e.length?(typeof e[l])[0]:"";if(i>=r.length||"o"==(u=(typeof(p=r[i]))[0]))return!s||("u"==f?l>n&&!o:""==f!=o);if("u"==u){if(!s||"u"!=f)return!1}else if(s)if(f==u)if(l<=n){if(p!=e[l])return!1}else{if(o?p>e[l]:p<e[l])return!1;p!=e[l]&&(s=!1)}else if("s"!=f&&"n"!=f){if(o||l<=n)return!1;s=!1,l--}else{if(l<=n||u<f!=o)return!1;s=!1}else"s"!=f&&"n"!=f&&(s=!1,l--)}}var c=[],d=c.pop.bind(c);for(i=1;i<e.length;i++){var h=e[i];c.push(1==h?d()|d():2==h?d()&d():h?a(h,r):!d())}return!!d()},i=(e,r)=>{var t=e[r];return Object.keys(t).reduce(((e,r)=>!e||!t[e].loaded&&n(e,r)?r:e),0)},l=(e,r,t,n)=>"Unsatisfied version "+t+" from "+(t&&e[r][t].from)+" of shared singleton module "+r+" (required "+o(n)+")",s=(e,r,t,n)=>{var o=i(e,t);return a(n,o)||"undefined"!=typeof console&&console.warn&&console.warn(l(e,t,o,n)),p(e[t][o])},p=e=>(e.loaded=1,e.get()),u=(e=>function(r,t,n,o){var a=v.I(r);return a&&a.then?a.then(e.bind(e,r,v.S[r],t,n,o)):e(0,v.S[r],t,n,o)})(((e,r,t,n,o)=>r&&v.o(r,t)?s(r,0,t,n):o())),f={},c={268:()=>u("default","react",[1,18],(()=>v.e(784).then((()=>()=>v(2784))))),906:()=>u("default","@openmrs/esm-framework",[1,4],(()=>Promise.all([v.e(858),v.e(268)]).then((()=>()=>v(6858))))),1858:()=>u("default","react-dom",[1,18],(()=>v.e(316).then((()=>()=>v(8316))))),4924:()=>u("default","react-i18next",[1,11],(()=>v.e(709).then((()=>()=>v(709)))))},d={268:[268],452:[1858,4924],862:[906]},v.f.consumes=(e,r)=>{v.o(d,e)&&d[e].forEach((e=>{if(v.o(f,e))return r.push(f[e]);var t=r=>{f[e]=0,v.m[e]=t=>{delete v.c[e],t.exports=r()}},n=r=>{delete f[e],v.m[e]=t=>{throw delete v.c[e],r}};try{var o=c[e]();o.then?r.push(f[e]=o.then(t).catch(n)):t(o)}catch(e){n(e)}}))},(()=>{var e={174:0};v.f.j=(r,t)=>{var n=v.o(e,r)?e[r]:void 0;if(0!==n)if(n)t.push(n[2]);else if(268!=r){var o=new Promise(((t,o)=>n=e[r]=[t,o]));t.push(n[2]=o);var a=v.p+v.u(r),i=new Error;v.l(a,(t=>{if(v.o(e,r)&&(0!==(n=e[r])&&(e[r]=void 0),n)){var o=t&&("load"===t.type?"missing":t.type),a=t&&t.target&&t.target.src;i.message="Loading chunk "+r+" failed.\n("+o+": "+a+")",i.name="ChunkLoadError",i.type=o,i.request=a,n[1](i)}}),"chunk-"+r,r)}else e[r]=0};var r=(r,t)=>{var n,o,[a,i,l]=t,s=0;if(a.some((r=>0!==e[r]))){for(n in i)v.o(i,n)&&(v.m[n]=i[n]);l&&l(v)}for(r&&r(t);s<a.length;s++)o=a[s],v.o(e,o)&&e[o]&&e[o][0](),e[o]=0},t=self.webpackChunk_openmrs_esm_openconceptlab_app=self.webpackChunk_openmrs_esm_openconceptlab_app||[];t.forEach(r.bind(null,0)),t.push=r.bind(null,t.push.bind(t))})(),v.nc=void 0;var g=v(3203);_openmrs_esm_openconceptlab_app=g})();
@@ -1,35 +0,0 @@
1
- {
2
- "fileFormatError": "",
3
- "noSubscriptionError": "",
4
- "importSuccess": "",
5
- "importFailed": "",
6
- "noFileSelected": "",
7
- "subscriptionError": "",
8
- "importConcepts": "",
9
- "importInstructions": "",
10
- "importFromSubscription": "",
11
- "importFromFileHeading": "",
12
- "importFromFileInfo": "",
13
- "fileAdded": "",
14
- "importFromFileDragInfo": "",
15
- "importFromFile": "",
16
- "moduleTitle": "",
17
- "subscription": "",
18
- "import": "",
19
- "previousImports": "",
20
- "errorSavingSubscription": "",
21
- "cancelledChanges": "",
22
- "subscriptionDeleted": "",
23
- "errorDeletingSubscription": "",
24
- "setupSubscription": "",
25
- "subscriptionUrl": "",
26
- "apiToken": "",
27
- "advancedOptions": "",
28
- "subscribeToSnapshotText": "",
29
- "disableValidationText": "",
30
- "cancelButton": "",
31
- "subscribeButton": "",
32
- "unsubscribe": "",
33
- "unsubscribeInfo": "",
34
- "unsubscribeButton": ""
35
- }
@@ -1,35 +0,0 @@
1
- {
2
- "fileFormatError": "",
3
- "noSubscriptionError": "",
4
- "importSuccess": "",
5
- "importFailed": "",
6
- "noFileSelected": "",
7
- "subscriptionError": "",
8
- "importConcepts": "",
9
- "importInstructions": "",
10
- "importFromSubscription": "",
11
- "importFromFileHeading": "",
12
- "importFromFileInfo": "",
13
- "fileAdded": "",
14
- "importFromFileDragInfo": "",
15
- "importFromFile": "",
16
- "moduleTitle": "",
17
- "subscription": "",
18
- "import": "",
19
- "previousImports": "",
20
- "errorSavingSubscription": "",
21
- "cancelledChanges": "",
22
- "subscriptionDeleted": "",
23
- "errorDeletingSubscription": "",
24
- "setupSubscription": "",
25
- "subscriptionUrl": "",
26
- "apiToken": "",
27
- "advancedOptions": "",
28
- "subscribeToSnapshotText": "",
29
- "disableValidationText": "",
30
- "cancelButton": "",
31
- "subscribeButton": "",
32
- "unsubscribe": "",
33
- "unsubscribeInfo": "",
34
- "unsubscribeButton": ""
35
- }
@@ -1,27 +0,0 @@
1
- @use "@carbon/styles/scss/spacing";
2
- @use "@carbon/styles/scss/type";
3
- @import "~@openmrs/esm-styleguide/src/vars";
4
-
5
- .grid {
6
- margin-left: 0;
7
- margin-right: 0;
8
- padding-left: 0;
9
- padding-right: 0;
10
- }
11
-
12
- .productiveHeading03 {
13
- @include type.type-style('productive-heading-03');
14
- margin-bottom: spacing.$spacing-03;
15
- }
16
-
17
- .form {
18
- margin-top: spacing.$spacing-07;
19
- }
20
-
21
- .formText {
22
- padding-bottom: spacing.$spacing-05;
23
- }
24
-
25
- .fileUploaderDropContainer {
26
- margin-bottom: spacing.$spacing-06;
27
- }
@@ -1,24 +0,0 @@
1
- @use "@carbon/styles/scss/spacing";
2
- @use "@carbon/styles/scss/type";
3
- @import "~@openmrs/esm-styleguide/src/vars";
4
-
5
- .pagination {
6
- @include type.type-style('body-short-01');
7
- background-color: $ui-02;
8
- color: $text-02;
9
- border: 1px solid $ui-03;
10
- display: flex;
11
- }
12
-
13
- .tableBordered {
14
- border: 1px solid $ui-03;
15
- }
16
-
17
- .tableDataRow > td {
18
- padding-left: 1rem !important;
19
- background-color: $ui-02 !important;
20
- }
21
-
22
- .tableHeaderRow > th {
23
- background-color: $ui-03 !important;
24
- }
@@ -1,11 +0,0 @@
1
- @use "@carbon/styles/scss/spacing";
2
- @use "@carbon/styles/scss/type";
3
- @import "~@openmrs/esm-styleguide/src/vars";
4
-
5
- .heading01 {
6
- @include type.type-style('heading-01');
7
- }
8
-
9
- .indentedContent {
10
- margin-left: spacing.$spacing-07;
11
- }
@@ -1,39 +0,0 @@
1
- @use "@carbon/styles/scss/spacing";
2
- @use "@carbon/styles/scss/type";
3
- @import "~@openmrs/esm-styleguide/src/vars";
4
-
5
- .grid {
6
- margin-left: 0;
7
- margin-right: 0;
8
- padding-left: 0;
9
- padding-right: 0;
10
- }
11
-
12
- .productiveHeading03 {
13
- @include type.type-style('productive-heading-03');
14
- margin-bottom: spacing.$spacing-03;
15
- }
16
-
17
- .pagination {
18
- @include type.type-style('body-short-01');
19
- background-color: $ui-02;
20
- color: $text-02;
21
- border: 1px solid $ui-03;
22
- display: flex;
23
- }
24
-
25
- .tableBordered {
26
- border: 1px solid $ui-03;
27
- }
28
-
29
- .tableRow > td {
30
- background-color: $ui-02;
31
- border-bottom: 1px solid $ui-03 !important;
32
- }
33
-
34
- .tableExpandedRow > td {
35
- padding-left: spacing.$spacing-09 !important;
36
- padding-right: spacing.$spacing-09;
37
- padding-top: spacing.$spacing-05;
38
- padding-bottom: spacing.$spacing-05;
39
- }
@@ -1,23 +0,0 @@
1
- @use "@carbon/styles/scss/spacing";
2
- @use "@carbon/styles/scss/type";
3
- @import "~@openmrs/esm-styleguide/src/vars";
4
-
5
- .main {
6
- background-color: $ui-02;
7
- }
8
-
9
- .moduleHeader {
10
- @include type.type-style('productive-heading-03');
11
- padding-left: spacing.$spacing-05;
12
- padding-top: spacing.$spacing-05;
13
- padding-bottom: spacing.$spacing-05;
14
- }
15
-
16
- .tabList {
17
- padding: 0 spacing.$spacing-05;
18
- }
19
-
20
- .tabPanel {
21
- height: 100%;
22
- background-color: $ui-01;
23
- }
@@ -1 +0,0 @@
1
- import '@testing-library/jest-dom/extend-expect';
@@ -1,27 +0,0 @@
1
- @use "@carbon/styles/scss/spacing";
2
- @use "@carbon/styles/scss/type";
3
- @import "~@openmrs/esm-styleguide/src/vars";
4
-
5
- .grid {
6
- margin-left: 0;
7
- margin-right: 0;
8
- padding-left: 0;
9
- padding-right: 0;
10
- }
11
-
12
- .productiveHeading03 {
13
- @include type.type-style('productive-heading-03');
14
- margin-bottom: spacing.$spacing-03;
15
- }
16
-
17
- .formGroup {
18
- margin-bottom: spacing.$spacing-05;
19
- }
20
-
21
- .unsubscribeText {
22
- padding-bottom: spacing.$spacing-05;
23
- }
24
-
25
- .unsubscribeForm {
26
- margin-top: spacing.$spacing-05;
27
- }