@zealicsolutions/web-ui 1.0.31 → 1.0.32

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 (43) hide show
  1. package/dist/cjs/contexts/OrganismContext/OrganismContext.d.ts +2 -1
  2. package/dist/cjs/contexts/OrganismContext/OrganismContextProvider.d.ts +1 -1
  3. package/dist/cjs/index.js +2 -2
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/cjs/molecules/Select/Select.d.ts +1 -1
  6. package/dist/esm/components/RichTextViewer/RichTextViewer.js +1 -1
  7. package/dist/esm/components/RichTextViewer/RichTextViewer.js.map +1 -1
  8. package/dist/esm/containers/hooks/useStateListenerValue.js +1 -1
  9. package/dist/esm/containers/hooks/useStateListenerValue.js.map +1 -1
  10. package/dist/esm/contexts/ButtonActionsContext/ButtonActionsContextProvider.js +1 -1
  11. package/dist/esm/contexts/ButtonActionsContext/ButtonActionsContextProvider.js.map +1 -1
  12. package/dist/esm/contexts/OrganismContext/OrganismContext.d.ts +2 -1
  13. package/dist/esm/contexts/OrganismContext/OrganismContext.js +1 -1
  14. package/dist/esm/contexts/OrganismContext/OrganismContext.js.map +1 -1
  15. package/dist/esm/contexts/OrganismContext/OrganismContextProvider.d.ts +1 -1
  16. package/dist/esm/contexts/OrganismContext/OrganismContextProvider.js +1 -1
  17. package/dist/esm/contexts/OrganismContext/OrganismContextProvider.js.map +1 -1
  18. package/dist/esm/molecules/BaseMolecule.js +1 -1
  19. package/dist/esm/molecules/BaseMolecule.js.map +1 -1
  20. package/dist/esm/molecules/BasicTextField/BasicTextField.js +1 -1
  21. package/dist/esm/molecules/BasicTextField/BasicTextField.js.map +1 -1
  22. package/dist/esm/molecules/Checklist/Checklist.js +1 -1
  23. package/dist/esm/molecules/Checklist/Checklist.js.map +1 -1
  24. package/dist/esm/molecules/CurrencyInputtField/CurrencyInputField.js +1 -1
  25. package/dist/esm/molecules/CurrencyInputtField/CurrencyInputField.js.map +1 -1
  26. package/dist/esm/molecules/DatePicker/DatePicker.js +1 -1
  27. package/dist/esm/molecules/DatePicker/DatePicker.js.map +1 -1
  28. package/dist/esm/molecules/EmailInputField/EmailInputField.js +1 -1
  29. package/dist/esm/molecules/EmailInputField/EmailInputField.js.map +1 -1
  30. package/dist/esm/molecules/NumericInputField/NumericInputField.js +1 -1
  31. package/dist/esm/molecules/NumericInputField/NumericInputField.js.map +1 -1
  32. package/dist/esm/molecules/PhoneNumberInputField/PhoneNumberInputField.js +1 -1
  33. package/dist/esm/molecules/PhoneNumberInputField/PhoneNumberInputField.js.map +1 -1
  34. package/dist/esm/molecules/Rating/Rating.js.map +1 -1
  35. package/dist/esm/molecules/Select/Select.d.ts +1 -1
  36. package/dist/esm/molecules/Select/Select.js +1 -1
  37. package/dist/esm/molecules/Select/Select.js.map +1 -1
  38. package/dist/esm/molecules/Slider/Slider.js +1 -1
  39. package/dist/esm/molecules/Slider/Slider.js.map +1 -1
  40. package/dist/esm/molecules/Switch/Switch.js +1 -1
  41. package/dist/esm/molecules/Switch/Switch.js.map +1 -1
  42. package/dist/index.d.ts +4 -3
  43. package/package.json +1 -1
@@ -41,7 +41,7 @@ export interface SelectMoleculeProps {
41
41
  configurationItemInfo?: ConfigurationItemInfo;
42
42
  /** The name of the field in react-hook-form */
43
43
  name: string;
44
- /** The data field in global stateConfig to populate/initialize value */
44
+ /** The data field in stateObject to populate/initialize value */
45
45
  sourceDataModelField?: string;
46
46
  }
47
47
  export declare const SelectMolecule: React.FC<SelectMoleculeProps>;
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"../../node_modules/tslib/tslib.es6.js";import{jsx as e}from"../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import{useMemo as o}from"react";import{createEditor as r}from"../../node_modules/slate/dist/index.es.js";import{withReact as n,Editable as s,Slate as i}from"../../node_modules/slate-react/dist/index.es.js";import{EditorElement as m}from"./components/EditorElement.js";import{Leaf as a}from"./components/Leaf.js";import{matchSlateAndStateObject as c}from"../../helpers/utils.js";import"../../contexts/FormStepContext/FormStepContext.js";import"../../contexts/ButtonActionsContext/ButtonActionsContext.js";import"../../contexts/MlrRichTextViewerContext/MlrRichTextViewerContext.js";import"../../contexts/OrganismContext/OrganismContext.js";import{useStateContext as l}from"../../contexts/hooks/useStateContext.js";import"../../contexts/AccountButtonContext/AccountButtonContext.js";var p="matrix-message",u="communication-link",x="matrix-message-id",d="communication-link-url",f="communication-link-text",j=[{type:"paragraph",children:[{text:""}]}],h=function(p){var u=p.value;p.numberOfLines;var x=o((function(){return n(r())}),[]),d=l().stateConfig,f=j;if(null==u||"string"!=typeof u)f=j;else{var h=u.replace(/\\/g,"");try{f=JSON.parse(u),c(f,d)}catch(t){console.error(t,"Value was parsed incorrectly. Trying to parse it...");try{f=JSON.parse(h),c(f,d)}catch(t){console.error(t,"Most probably that it's not possible to parse this value")}}}return e(i,t({editor:x,value:f},{children:e(s,{readOnly:!0,renderLeaf:function(o){return e(a,t({},o))},placeholder:"Type something...",renderElement:function(o){return e(m,t({},o))}})}),JSON.stringify(f))};export{f as COMMUNICATION_LINK_DATA_TEXT,d as COMMUNICATION_LINK_DATA_URL,u as COMMUNICATION_LINK_ELEMENT_ID,x as MATRIX_MESSAGE_DATA_ID,p as MATRIX_MESSAGE_ELEMENT_ID,h as RichTextViewer,j as defaultValue};
1
+ import{__assign as t}from"../../node_modules/tslib/tslib.es6.js";import{jsx as e}from"../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import{useMemo as o}from"react";import{createEditor as r}from"../../node_modules/slate/dist/index.es.js";import{withReact as n,Editable as s,Slate as i}from"../../node_modules/slate-react/dist/index.es.js";import{EditorElement as m}from"./components/EditorElement.js";import{Leaf as a}from"./components/Leaf.js";import{matchSlateAndStateObject as c}from"../../helpers/utils.js";import"../../contexts/FormStepContext/FormStepContext.js";import"../../contexts/ButtonActionsContext/ButtonActionsContext.js";import"../../contexts/MlrRichTextViewerContext/MlrRichTextViewerContext.js";import{useOrganismContext as l}from"../../contexts/hooks/useOrganismContext.js";import{useStateContext as p}from"../../contexts/hooks/useStateContext.js";import"../../contexts/AccountButtonContext/AccountButtonContext.js";var u="matrix-message",x="communication-link",d="matrix-message-id",f="communication-link-url",j="communication-link-text",h=[{type:"paragraph",children:[{text:""}]}],C=function(u){var x=u.value;u.numberOfLines;var d=o((function(){return n(r())}),[]),f=l().localStateObject,j=p().stateConfig,C=f||j,g=h;if(null==x||"string"!=typeof x)g=h;else{var y=x.replace(/\\/g,"");try{g=JSON.parse(x),c(g,C)}catch(t){console.error(t,"Value was parsed incorrectly. Trying to parse it...");try{g=JSON.parse(y),c(g,C)}catch(t){console.error(t,"Most probably that it's not possible to parse this value")}}}return e(i,t({editor:d,value:g},{children:e(s,{readOnly:!0,renderLeaf:function(o){return e(a,t({},o))},placeholder:"Type something...",renderElement:function(o){return e(m,t({},o))}})}),JSON.stringify(g))};export{j as COMMUNICATION_LINK_DATA_TEXT,f as COMMUNICATION_LINK_DATA_URL,x as COMMUNICATION_LINK_ELEMENT_ID,d as MATRIX_MESSAGE_DATA_ID,u as MATRIX_MESSAGE_ELEMENT_ID,C as RichTextViewer,h as defaultValue};
2
2
  //# sourceMappingURL=RichTextViewer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RichTextViewer.js","sources":["../../../../../src/components/RichTextViewer/RichTextViewer.tsx"],"sourcesContent":[null],"names":["MATRIX_MESSAGE_ELEMENT_ID","COMMUNICATION_LINK_ELEMENT_ID","MATRIX_MESSAGE_DATA_ID","COMMUNICATION_LINK_DATA_URL","COMMUNICATION_LINK_DATA_TEXT","defaultValue","type","children","text","RichTextViewer","_a","value","numberOfLines","editor","useMemo","withReact","createEditor","stateConfig","useStateContext","slateValue","parsedValue","replace","JSON","parse","matchSlateAndStateObject","e","console","error","_jsx","Slate","__assign","Editable","readOnly","renderLeaf","props","Leaf","placeholder","renderElement","EditorElement","stringify"],"mappings":"u7BAOO,IAAMA,EAA4B,iBAC5BC,EAAgC,qBAChCC,EAAyB,oBACzBC,EAA8B,yBAC9BC,EAA+B,0BAE/BC,EAA6B,CAAC,CAAEC,KAAM,YAAaC,SAAU,CAAC,CAAEC,KAAM,OAOtEC,EAA0C,SAACC,OAAEC,EAAKD,EAAAC,MAAeD,EAAAE,cAC5E,IAAMC,EAASC,GAAQ,WAAM,OAAAC,EAAUC,OAAiB,IAChDC,EAAgBC,gBAEpBC,EAAad,EAEjB,GAAIM,SAA0D,iBAAVA,EAClDQ,EAAad,MACR,CACL,IAAMe,EAAcT,EAAMU,QAAQ,MAAO,IACzC,IACEF,EAAaG,KAAKC,MAAMZ,GACxBa,EAAyBL,EAAYF,EACtC,CAAC,MAAOQ,GACPC,QAAQC,MAAMF,EAAG,uDAEjB,IACEN,EAAaG,KAAKC,MAAMH,GACxBI,EAAyBL,EAAYF,EACtC,CAAC,MAAOU,GACPD,QAAQC,MAAMA,EAAO,2DACtB,CACF,CACF,CAKD,OACEC,EAACC,EAAuCC,EAAA,CAAAjB,OAAQA,EAAQF,MAAOQ,GAC7D,CAAAZ,SAAAqB,EAACG,EACC,CAAAC,YACAC,WAPa,SAACC,GAA2B,OAAAN,EAACO,EAASL,EAAA,CAAA,EAAAI,GAAS,EAQ5DE,YAAY,oBACZC,cARgB,SAACH,GAA8B,OAAAN,EAACU,EAAkBR,EAAA,CAAA,EAAAI,GAAS,MAGnEZ,KAAKiB,UAAUpB,GAS/B"}
1
+ {"version":3,"file":"RichTextViewer.js","sources":["../../../../../src/components/RichTextViewer/RichTextViewer.tsx"],"sourcesContent":[null],"names":["MATRIX_MESSAGE_ELEMENT_ID","COMMUNICATION_LINK_ELEMENT_ID","MATRIX_MESSAGE_DATA_ID","COMMUNICATION_LINK_DATA_URL","COMMUNICATION_LINK_DATA_TEXT","defaultValue","type","children","text","RichTextViewer","_a","value","numberOfLines","editor","useMemo","withReact","createEditor","localStateObject","useOrganismContext","stateConfig","useStateContext","stateObject","slateValue","parsedValue","replace","JSON","parse","matchSlateAndStateObject","e","console","error","_jsx","Slate","__assign","Editable","readOnly","renderLeaf","props","Leaf","placeholder","renderElement","EditorElement","stringify"],"mappings":"68BAOO,IAAMA,EAA4B,iBAC5BC,EAAgC,qBAChCC,EAAyB,oBACzBC,EAA8B,yBAC9BC,EAA+B,0BAE/BC,EAA6B,CAAC,CAAEC,KAAM,YAAaC,SAAU,CAAC,CAAEC,KAAM,OAOtEC,EAA0C,SAACC,OAAEC,EAAKD,EAAAC,MAAeD,EAAAE,cAC5E,IAAMC,EAASC,GAAQ,WAAM,OAAAC,EAAUC,OAAiB,IAChDC,EAAqBC,qBACrBC,EAAgBC,gBAElBC,EAAcJ,GAAoBE,EAEpCG,EAAajB,EAEjB,GAAIM,SAA0D,iBAAVA,EAClDW,EAAajB,MACR,CACL,IAAMkB,EAAcZ,EAAMa,QAAQ,MAAO,IACzC,IACEF,EAAaG,KAAKC,MAAMf,GACxBgB,EAAyBL,EAAYD,EACtC,CAAC,MAAOO,GACPC,QAAQC,MAAMF,EAAG,uDAEjB,IACEN,EAAaG,KAAKC,MAAMH,GACxBI,EAAyBL,EAAYD,EACtC,CAAC,MAAOS,GACPD,QAAQC,MAAMA,EAAO,2DACtB,CACF,CACF,CAKD,OACEC,EAACC,EAAuCC,EAAA,CAAApB,OAAQA,EAAQF,MAAOW,GAC7D,CAAAf,SAAAwB,EAACG,EACC,CAAAC,YACAC,WAPa,SAACC,GAA2B,OAAAN,EAACO,EAASL,EAAA,CAAA,EAAAI,GAAS,EAQ5DE,YAAY,oBACZC,cARgB,SAACH,GAA8B,OAAAN,EAACU,EAAkBR,EAAA,CAAA,EAAAI,GAAS,MAGnEZ,KAAKiB,UAAUpB,GAS/B"}
@@ -1,2 +1,2 @@
1
- import"../../contexts/FormStepContext/FormStepContext.js";import"react";import"../../contexts/ButtonActionsContext/ButtonActionsContext.js";import"../../contexts/MlrRichTextViewerContext/MlrRichTextViewerContext.js";import"../../contexts/OrganismContext/OrganismContext.js";import{useStateContext as t}from"../../contexts/hooks/useStateContext.js";import"../../contexts/AccountButtonContext/AccountButtonContext.js";var e=function(e){var o=e.stateListenerId,n=t().stateConfig,i=!0,s=!1;if(!o)return{isStateDisabled:s,isStateVisible:i};var r=(null==n?void 0:n[o])||{},a=r||{},x=a.visible,c=void 0===x||x,l=a.disabled,m=void 0!==l&&l;return o in n&&(i=Boolean(c),s=Boolean(m)),{isStateDisabled:s,isStateVisible:i,stateValue:r}};export{e as useStateListenerValue};
1
+ import"../../contexts/FormStepContext/FormStepContext.js";import"react";import"../../contexts/ButtonActionsContext/ButtonActionsContext.js";import"../../contexts/MlrRichTextViewerContext/MlrRichTextViewerContext.js";import{useOrganismContext as t}from"../../contexts/hooks/useOrganismContext.js";import{useStateContext as e}from"../../contexts/hooks/useStateContext.js";import"../../contexts/AccountButtonContext/AccountButtonContext.js";var o=function(o){var i=o.stateListenerId,n=t().localStateObject,s=e().stateConfig,r=n||s,a=!0,x=!1;if(!i)return{isStateDisabled:x,isStateVisible:a};var c=(null==r?void 0:r[i])||{},l=c||{},u=l.visible,m=void 0===u||u,C=l.disabled,p=void 0!==C&&C;return i in r&&(a=Boolean(m),x=Boolean(p)),{isStateDisabled:x,isStateVisible:a,stateValue:c}};export{o as useStateListenerValue};
2
2
  //# sourceMappingURL=useStateListenerValue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useStateListenerValue.js","sources":["../../../../../src/containers/hooks/useStateListenerValue.ts"],"sourcesContent":[null],"names":["useStateListenerValue","_a","stateListenerId","stateConfig","useStateContext","isStateVisible","isStateDisabled","stateValue","_b","_c","visible","_d","disabled","Boolean"],"mappings":"gaAMO,IAAMA,EAAwB,SAACC,GAAE,IAAAC,EAAeD,EAAAC,gBAC7CC,EAAgBC,gBAEpBC,GAAiB,EACjBC,GAAkB,EAEtB,IAAKJ,EAAiB,MAAO,CAAEI,gBAAeA,EAAED,eAAcA,GAE9D,IAAME,GAAaJ,aAAA,EAAAA,EAAcD,KAAoB,CAAA,EAC/CM,EAAuCD,GAAc,CAAA,EAAnDE,EAAAD,EAAAE,QAAAA,OAAO,IAAAD,GAAOA,EAAEE,EAAgBH,EAAAI,SAAhBA,OAAW,IAAAD,KAOnC,OALIT,KAAmBC,IACrBE,EAAiBQ,QAAQH,GACzBJ,EAAkBO,QAAQD,IAGrB,CACLN,gBAAeA,EACfD,eAAcA,EACdE,WAAUA,EAEd"}
1
+ {"version":3,"file":"useStateListenerValue.js","sources":["../../../../../src/containers/hooks/useStateListenerValue.ts"],"sourcesContent":[null],"names":["useStateListenerValue","_a","stateListenerId","localStateObject","useOrganismContext","stateConfig","useStateContext","stateObject","isStateVisible","isStateDisabled","stateValue","_b","_c","visible","_d","disabled","Boolean"],"mappings":"sbAMO,IAAMA,EAAwB,SAACC,GAAE,IAAAC,EAAeD,EAAAC,gBAC7CC,EAAqBC,qBACrBC,EAAgBC,gBAElBC,EAAcJ,GAAoBE,EAEpCG,GAAiB,EACjBC,GAAkB,EAEtB,IAAKP,EAAiB,MAAO,CAAEO,gBAAeA,EAAED,eAAcA,GAE9D,IAAME,GAAaH,aAAA,EAAAA,EAAcL,KAAoB,CAAA,EAC/CS,EAAuCD,GAAc,CAAA,EAAnDE,EAAAD,EAAAE,QAAAA,OAAO,IAAAD,GAAOA,EAAEE,EAAgBH,EAAAI,SAAhBA,OAAW,IAAAD,KAOnC,OALIZ,KAAmBK,IACrBC,EAAiBQ,QAAQH,GACzBJ,EAAkBO,QAAQD,IAGrB,CACLN,gBAAeA,EACfD,eAAcA,EACdE,WAAUA,EAEd"}