<${props.Flatpickr} name="mf-date" className="mf-input mf-date-input mf-left-parent " placeholder="${ parent.decodeEntities(`Date`) } " options=${{"minDate":"no","maxDate":"","dateFormat":"m-d-Y","enableTime":"","disable":[],"mode":"single","static":true,"disableMobile":true,"time_24hr":false}} value=${parent.getValue('mf-date')} onInput=${parent.handleDateTime} aria-invalid=${validation.errors['mf-date'] ? 'true' : 'false'} ref=${el => props.DateWidget( el, '', {"message":"This field is required.","required":true}, register, parent )} /> <${validation.ErrorMessage} errors=${validation.errors} name="mf-date" as=${html``} />
<${props.Flatpickr} name="mf-time" className="mf-input mf-date-input mf-time-input mf-left-parent " placeholder="${ parent.decodeEntities(`Time`) } " options=${{"enableTime":true,"dateFormat":"h:i K","noCalendar":true,"time_24hr":false,"static":true}} value=${parent.getValue('mf-time')} onInput=${parent.handleDateTime} aria-invalid=${validation.errors['mf-time'] ? 'true' : 'false'} ref=${ el => { if( el && el.node.nextSibling ) { if( el.props.value.trim().length ) { el.node.nextSibling.classList.add('value-found'); }else { el.node.nextSibling.classList.remove('value-found'); } } register({ name: "mf-time" }, parent.activateValidation({"message":"This field is required.","required":true})) } } /> <${validation.ErrorMessage} errors=${validation.errors} name="mf-time" as=${html``} />
<${props.Select} className=${"mf-input mf-input-select " + ( validation.errors['mf-select'] ? 'mf-invalid' : '' )} classNamePrefix="mf_select" name="mf-select" placeholder="${ parent.decodeEntities(`Select`) } " isSearchable=${false} options=${[{"label":"1 Person","value":"value-1","isDisabled":false},{"label":"2 Person","value":"value-2","isDisabled":false},{"label":"3 Person","value":"value-3","isDisabled":false},{"label":"4 Person","value":"value-4","isDisabled":false}]} value=${parent.getValue("mf-select") ? [{"mf_input_option_text":"1 Person","mf_input_option_value":"value-1","_id":"02982b1","mf_input_option_status":"","mf_input_option_selected":""},{"mf_input_option_text":"2 Person","mf_input_option_value":"value-2","_id":"4347ced","mf_input_option_status":"","mf_input_option_selected":""},{"mf_input_option_text":"3 Person","mf_input_option_value":"value-3","_id":"e36ef14","mf_input_option_status":"","mf_input_option_selected":""},{"mf_input_option_text":"4 Person","mf_input_option_value":"value-4","_id":"24d90f0","mf_input_option_status":"","mf_input_option_selected":""}].filter(item => item.value === parent.getValue("mf-select"))[0] : []} onChange=${parent.handleSelect} ref=${() => { register({ name: "mf-select" }, parent.activateValidation({"message":"This field is required.","minLength":1,"maxLength":"","type":"none","required":true})); if ( parent.getValue("mf-select") === '' && false ) { parent.handleChange({ target: { name: 'mf-select', value: '' } }); parent.setValue( 'mf-select', '', true ); } }} /> <${validation.ErrorMessage} errors=${validation.errors} name="mf-select" as=${html``} />
es_ES