@openmrs/esm-form-builder-app 2.5.1-pre.841 → 2.5.1-pre.847
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/dist/192.js +1 -1
- package/dist/192.js.map +1 -1
- package/dist/274.js +1 -0
- package/dist/274.js.map +1 -0
- package/dist/29.js +1 -1
- package/dist/29.js.map +1 -1
- package/dist/300.js +1 -1
- package/dist/606.js +1 -0
- package/dist/606.js.map +1 -0
- package/dist/{991.js → 639.js} +3 -3
- package/dist/{991.js.map → 639.js.map} +1 -1
- package/dist/91.js +1 -1
- package/dist/91.js.map +1 -1
- package/dist/926.js +2 -0
- package/dist/926.js.map +1 -0
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-form-builder-app.js +1 -1
- package/dist/openmrs-esm-form-builder-app.js.buildmanifest.json +175 -151
- package/dist/openmrs-esm-form-builder-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/components/interactive-builder/delete-question-modal.component.tsx +28 -16
- package/src/components/interactive-builder/draggable-question.component.tsx +34 -14
- package/src/components/interactive-builder/droppable-container.component.tsx +6 -6
- package/src/components/interactive-builder/droppable-container.scss +9 -0
- package/src/components/interactive-builder/interactive-builder.component.tsx +17 -33
- package/src/index.ts +5 -0
- package/src/routes.json +6 -0
- package/dist/180.js +0 -2
- package/dist/180.js.map +0 -1
- package/dist/24.js +0 -1
- package/dist/24.js.map +0 -1
- /package/dist/{991.js.LICENSE.txt → 639.js.LICENSE.txt} +0 -0
- /package/dist/{180.js.LICENSE.txt → 926.js.LICENSE.txt} +0 -0
package/dist/192.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunk_openmrs_esm_form_builder_app=globalThis.webpackChunk_openmrs_esm_form_builder_app||[]).push([[192],{4192:(e,r,a)=>{a.r(r),a.d(r,{default:()=>o});var n=a(16072),t=a.n(n),l=a(53941),s=a(
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_form_builder_app=globalThis.webpackChunk_openmrs_esm_form_builder_app||[]).push([[192],{4192:(e,r,a)=>{a.r(r),a.d(r,{default:()=>o});var n=a(16072),t=a.n(n),l=a(53941),s=a(76926),m=a(57644);const o=function(){var e=(0,l.useTranslation)().t,r=e("manageForms","Manage Forms");return t().createElement(s.Wdr,null,t().createElement(s.t3h,{href:"".concat(window.spaBase,"/form-builder"),target:"_blank",rel:"noopener noreferrer"},t().createElement("div",null,t().createElement("div",{className:"heading"},r),t().createElement("div",{className:"content"},e("formBuilder","Form builder"))),t().createElement("div",{className:"iconWrapper"},t().createElement(m.Qp,{size:16}))))}}}]);
|
package/dist/192.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"192.js","mappings":"
|
|
1
|
+
{"version":3,"file":"192.js","mappings":"gPAuBA,QAlBsC,WACpC,IAAM,GAAQA,EAAAA,EAAAA,kBAANC,EACFC,EAASD,EAAE,cAAe,gBAChC,OACE,kBAACE,EAAAA,IAAKA,KACJ,kBAACC,EAAAA,IAAaA,CAACC,KAAM,GAAkB,OAAfC,OAAOC,QAAQ,iBAAgBC,OAAO,SAASC,IAAI,uBACzE,kBAACC,MAAAA,KACC,kBAACA,MAAAA,CAAIC,UAAU,WAAWT,GAC1B,kBAACQ,MAAAA,CAAIC,UAAU,WAAWV,EAAE,cAAe,kBAE7C,kBAACS,MAAAA,CAAIC,UAAU,eACb,kBAACC,EAAAA,GAAUA,CAACC,KAAM,OAK5B,C","sources":["webpack://@openmrs/esm-form-builder-app/./src/form-builder-admin-card-link.component.tsx"],"names":["useTranslation","t","header","Layer","ClickableTile","href","window","spaBase","target","rel","div","className","ArrowRight","size"],"sourceRoot":""}
|
package/dist/274.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_openmrs_esm_form_builder_app=globalThis.webpackChunk_openmrs_esm_form_builder_app||[]).push([[274],{1274:(e,n,t)=>{t.r(n),t.d(n,{default:()=>u});var l=t(16072),o=t.n(l),r=t(53941),a=t(76926),i=t(25987);function s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}const u=function(e){var n=e.closeModal,t=e.onSchemaChange,l=e.pageIndex,u=e.question,c=e.questionIndex,d=e.resetIndices,b=e.schema,m=e.sectionIndex,p=(0,r.useTranslation)().t;return o().createElement("div",null,o().createElement(a.rQ0,{closeModal:n,title:p("deleteQuestionConfirmation","Are you sure you want to delete this question? ")}),o().createElement(a.cwr,null,o().createElement("p",null,p("deleteQuestionWarningText","Clicking the delete button will delete the question labelled")," ",o().createElement("strong",null,'"',u.label,'"'),"."),o().createElement("br",null),o().createElement("p",null,p("deleteQuestionExplainerText","This action cannot be undone."))),o().createElement(a.jlY,null,o().createElement(a.$nd,{kind:"secondary",onClick:n},p("cancel","Cancel")),o().createElement(a.$nd,{kind:"danger",onClick:function(){!function(e,l,o){try{b.pages[e].sections[l].questions.splice(o,1),t(function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{},l=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(l=l.concat(Object.getOwnPropertySymbols(t).filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})))),l.forEach((function(n){s(e,n,t[n])}))}return e}({},b)),d(),(0,i.showSnackbar)({title:p("questionDeleted","Question deleted"),kind:"success",isLowContrast:!0,subtitle:p("questionDeletedMessage",'The question labelled "{{- questionLabel}}" has been deleted.',{questionLabel:u.label})})}catch(e){r=e,(null!=(a=Error)&&"undefined"!=typeof Symbol&&a[Symbol.hasInstance]?a[Symbol.hasInstance](r):r instanceof a)&&(0,i.showSnackbar)({title:p("errorDeletingQuestion","Error deleting question"),kind:"error",subtitle:null==e?void 0:e.message})}var r,a;n()}(l,m,c)}},o().createElement("span",null,p("deleteQuestion","Delete question")))))}}}]);
|
package/dist/274.js.map
ADDED
|
@@ -0,0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,EAAE,iBAAkB,sBAKrC,C","sources":["webpack://@openmrs/esm-form-builder-app/./src/components/interactive-builder/delete-question-modal.component.tsx"],"names":["closeModal","onSchemaChange","pageIndex","question","questionIndex","resetIndices","schema","sectionIndex","useTranslation","t","div","ModalHeader","title","ModalBody","p","strong","label","br","ModalFooter","Button","kind","onClick","pages","sections","questions","splice","showSnackbar","isLowContrast","subtitle","questionLabel","error","Error","message","deleteQuestion","span"],"sourceRoot":""}
|