@zealicsolutions/web-ui 1.0.40-beta-10 → 1.0.40
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/cjs/containers/utils.d.ts +0 -1
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/containers/FormContainer.js +1 -1
- package/dist/esm/containers/FormContainer.js.map +1 -1
- package/dist/esm/containers/utils.d.ts +0 -1
- package/dist/esm/molecules/BasicTextField/BasicTextField.js +1 -1
- package/dist/esm/molecules/BasicTextField/BasicTextField.js.map +1 -1
- package/package.json +1 -1
@@ -1,2 +1,2 @@
|
|
1
|
-
import{__awaiter as t,__assign as e,__generator as o}from"../node_modules/tslib/tslib.es6.js";import{jsx as r}from"../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import{useForm as n,FormProvider as i}from"../node_modules/react-hook-form/dist/index.esm.mjs.js";import{FormStepContextProvider as s}from"../contexts/FormStepContext/FormStepContextProvider.js";import{useEffect as m}from"react";import{useStateModifierHandler as u}from"./hooks/useStateModifierHandler.js";import"../contexts/FormStepContext/FormStepContext.js";import"../contexts/ButtonActionsContext/ButtonActionsContext.js";import"../contexts/MlrRichTextViewerContext/MlrRichTextViewerContext.js";import{useOrganismContext as c}from"../contexts/hooks/useOrganismContext.js";import"../contexts/StateContext/StateContext.js";import"../contexts/AccountButtonContext/AccountButtonContext.js";var a=function(t,e){Object.values(t).forEach((function(t){(null==t?void 0:t._f)?e(t._f):t&&"object"==typeof t&&a(t,e)}))},f=function(f){var
|
1
|
+
import{__awaiter as t,__assign as e,__generator as o}from"../node_modules/tslib/tslib.es6.js";import{jsx as r}from"../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import{useForm as n,FormProvider as i}from"../node_modules/react-hook-form/dist/index.esm.mjs.js";import{FormStepContextProvider as s}from"../contexts/FormStepContext/FormStepContextProvider.js";import{useEffect as m}from"react";import{useStateModifierHandler as u}from"./hooks/useStateModifierHandler.js";import"../contexts/FormStepContext/FormStepContext.js";import"../contexts/ButtonActionsContext/ButtonActionsContext.js";import"../contexts/MlrRichTextViewerContext/MlrRichTextViewerContext.js";import{useOrganismContext as c}from"../contexts/hooks/useOrganismContext.js";import"../contexts/StateContext/StateContext.js";import"../contexts/AccountButtonContext/AccountButtonContext.js";var a=function(t,e){Object.values(t).forEach((function(t){(null==t?void 0:t._f)?e(t._f):t&&"object"==typeof t&&a(t,e)}))},f=function(f){var d=f.mode,l=void 0===d?"onChange":d,x=f.state,p=f.children,v=n({mode:l}),j=u().onStateChange,C=c().formId,h=void 0===C?"":C;return m((function(){if(x)if("default"!==x)if("required_error"!==x){if("validation_error"===x){var e=setTimeout((function(){return t(void 0,void 0,void 0,(function(){return o(this,(function(t){return a(v.control._fields,(function(t){var e=t.name,o=t.pattern;(null==o?void 0:o.value)instanceof RegExp&&".+"===o.value.source&&""===o.value.flags||v.setError(e,{type:"required",message:"object"==typeof o&&(null==o?void 0:o.message)||"Invalid value"})})),[2]}))}))}),0);return function(){return clearTimeout(e)}}}else v.trigger();else v.clearErrors()}),[x]),m((function(){v.formState.isDirty&&j({id:h,type:"started"})}),[v.formState.isDirty]),r(i,e({},v,{children:r(s,{children:p})}))};export{f as FormContainer,a as walkFields};
|
2
2
|
//# sourceMappingURL=FormContainer.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"FormContainer.js","sources":["../../../../src/containers/FormContainer.tsx"],"sourcesContent":[null],"names":["walkFields","node","fn","Object","values","forEach","child","_f","FormContainer","_a","_b","mode","state","children","methods","useForm","onStateChange","useStateModifierHandler","_c","useOrganismContext","formId","useEffect","t_1","setTimeout","__awaiter","
|
1
|
+
{"version":3,"file":"FormContainer.js","sources":["../../../../src/containers/FormContainer.tsx"],"sourcesContent":[null],"names":["walkFields","node","fn","Object","values","forEach","child","_f","FormContainer","_a","_b","mode","state","children","methods","useForm","onStateChange","useStateModifierHandler","_c","useOrganismContext","formId","useEffect","t_1","setTimeout","__awaiter","control","_fields","name","pattern","value","RegExp","source","flags","setError","type","message","clearTimeout","trigger","clearErrors","formState","isDirty","id","_jsx","FormProvider","__assign","FormStepContextProvider"],"mappings":"u3BAMa,IAAAA,EAAa,SACxBC,EACAC,GAEAC,OAAOC,OAAOH,GAAMI,SAAQ,SAACC,IACvBA,aAAA,EAAAA,EAAOC,IAAIL,EAAGI,EAAMC,IACfD,GAA0B,iBAAVA,GAAoBN,EAAWM,EAAOJ,EACjE,GACF,EAOaM,EAAgB,SAACC,OAAEC,EAAiBD,EAAAE,KAAjBA,OAAI,IAAAD,EAAG,WAAUA,EAAEE,EAAKH,EAAAG,MAAEC,EAAQJ,EAAAI,SAC1DC,EAAUC,EAAQ,CAAEJ,KAAIA,IACtBK,EAAkBC,kBAClBC,EAAgBC,IAAoBC,OAApCA,OAAM,IAAAF,EAAG,GAAEA,EA4CnB,OA1CAG,GAAU,WACR,GAAKT,EAEL,GAAc,YAAVA,EAKJ,GAAc,mBAAVA,GAKJ,GAAc,qBAAVA,EAA8B,CAEhC,IAAMU,EAAIC,YAAW,WAAA,OAAAC,OAAA,OAAA,OAAA,GAAA,6CACnBxB,EAAWc,EAAQW,QAAQC,SAAS,SAACjB,OAAEkB,EAAIlB,EAAAkB,KAAEC,EAAOnB,EAAAmB,SAEhDA,eAAAA,EAASC,iBAAiBC,QACD,OAAzBF,EAAQC,MAAME,QACU,KAAxBH,EAAQC,MAAMG,OAMhBlB,EAAQmB,SAASN,EAAM,CACrBO,KAAM,WACNC,QAA6B,iBAAZP,IAAwBA,eAAAA,EAASO,UAAY,iBAElE,gBACC,GAEH,OAAO,WAAM,OAAAC,aAAad,EAAE,CAC7B,OAzBCR,EAAQuB,eALRvB,EAAQwB,aA+BZ,GAAG,CAAC1B,IAGJS,GAAU,WACJP,EAAQyB,UAAUC,SAASxB,EAAc,CAAEyB,GAAIrB,EAAQc,KAAM,WAClE,GAAE,CAACpB,EAAQyB,UAAUC,UAGpBE,EAACC,EAAYC,EAAA,CAAA,EAAK9B,EAAO,CAAAD,SACvB6B,EAACG,EAAyB,CAAAhC,SAAAA,MAGhC"}
|
@@ -1,4 +1,3 @@
|
|
1
1
|
export declare function overrideProperties(savedProperties: Partial<Record<string, unknown>>, currentContentProperties: Partial<Record<string, unknown>> | undefined, propertyKeys: string[], // Renamed to avoid conflict
|
2
2
|
selected: boolean): Partial<Record<string, unknown>>;
|
3
3
|
export declare function overrideProps(savedProps: Partial<Record<string, unknown>>, currentStyleProperties?: Partial<Record<string, unknown>>, selected?: boolean): Partial<Record<string, unknown>>;
|
4
|
-
export declare const getInvalidValue: (rx: RegExp) => string;
|