@ikas/popup-renderer 1.0.95 → 1.0.96
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 +1 @@
|
|
|
1
|
-
import{makeObservable as r,observable as e}from"mobx";import{FormItemTypeEnum as i,InputPlaceholder as a,InputLabel as
|
|
1
|
+
import{makeObservable as r,observable as e}from"mobx";import{FormItemTypeEnum as i,InputPlaceholder as a,InputLabel as l,RequiredInput as t}from"../index.js";import{Popup as o}from"../../../../../index.js";var n=function(o){void 0===o&&(o={}),this.type=i.CUSTOMER_EMAIL,this.value=o.value||null,this.placeholder=o.placeholder?new a(o.placeholder):null,this.inputLabel=o.inputLabel?new l(o.inputLabel):null,this.required=o.required?new t(o.required):new t,this.updateCurrentInfo=o.updateCurrentInfo||!1,this.validEmailError=new s(o.validEmailError),r(this,{value:e,type:e,placeholder:e,inputLabel:e,required:e,updateCurrentInfo:e,validEmailError:e})},s=function(i){void 0===i&&(i={}),this.validationErrorMessage=i.validationErrorMessage||o.t("popup:initialClassTranslations.validEmailErrorMessage"),this.hasError=i.hasError||!1,r(this,{validationErrorMessage:e,hasError:e})};export{n as CustomerEmailFormItem,s as ValidEmailError};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{makeObservable as r,observable as e}from"mobx";import{FormItemTypeEnum as
|
|
1
|
+
import{makeObservable as r,observable as e}from"mobx";import{FormItemTypeEnum as o,InputPlaceholder as i,InputLabel as a,RequiredInput as t}from"../index.js";import{Popup as n}from"../../../../../index.js";var l=function(n){void 0===n&&(n={}),this.type=o.CUSTOMER_PHONE,this.value=n.value||null,this.placeholder=n.placeholder?new i(n.placeholder):null,this.inputLabel=n.inputLabel?new a(n.inputLabel):null,this.required=n.required?new t(n.required):null,this.addCountryCode=n.addCountryCode||!1,this.updateCurrentInfo=n.updateCurrentInfo||!1,this.validPhoneError=new d(n.validPhoneError),r(this,{value:e,type:e,placeholder:e,inputLabel:e,required:e,addCountryCode:e,updateCurrentInfo:e,validPhoneError:e})},d=function(o){void 0===o&&(o={}),this.validationErrorMessage=o.validationErrorMessage||n.t("popup:initialClassTranslations.validPhoneErrorMessage"),this.hasError=o.hasError||!1,r(this,{validationErrorMessage:e,hasError:e})};export{l as CustomerPhoneFormItem,d as ValidPhoneError};
|