UNPKG

1.74 kBSource Map (JSON)View Raw
1{"version":3,"sources":["email-field/EmailField.js"],"names":["EmailField","arguments","type","FieldType","email","label","getProp","valueMissing","typeMismatch","TextField","displayName","observer"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAIA,UAAU;AAAA;AAAA;AAAA;;AAAA;;AACV,wBAAc;AAAA;;AAAA;AACV,+BAASC,SAAT;AACA,UAAKC,IAAL,GAAY,OAAZ;AAFU;AAGb;;AAJS;AAAA;AAAA,mCAKK;AACX,aAAOC,gBAAUC,KAAjB;AACH;AAPS;AAAA;AAAA,wBAQsB;AAC5B,UAAMC,KAAK,GAAG,KAAKC,OAAL,CAAa,OAAb,CAAd;AACA,aAAO;AACHC,QAAAA,YAAY,EAAE,uBAAG,YAAH,EAAiBF,KAAK,GAAG,eAAH,GAAqB,wBAA3C,EAAqE;AAAEA,UAAAA,KAAK,EAALA;AAAF,SAArE,CADX;AAEHG,QAAAA,YAAY,EAAE,uBAAG,YAAH,EAAiB,eAAjB;AAFX,OAAP;AAIH;AAdS;AAAA;AAAA,EAA4BC,qBAA5B,CAAd;;AAgBAT,UAAU,CAACU,WAAX,GAAyB,YAAzB;AACAV,UAAU,GAAG,uBAAW,CACpBW,mBADoB,CAAX,EAEVX,UAFU,CAAb;eAGeA,U","sourcesContent":["import { __decorate } from \"tslib\";\nimport { observer } from 'mobx-react';\nimport { TextField } from '../text-field/TextField';\nimport { $l } from '../locale-context';\nimport { FieldType } from '../data-set/enum';\nlet EmailField = class EmailField extends TextField {\n constructor() {\n super(...arguments);\n this.type = 'email';\n }\n getFieldType() {\n return FieldType.email;\n }\n get defaultValidationMessages() {\n const label = this.getProp('label');\n return {\n valueMissing: $l('EmailField', label ? 'value_missing' : 'value_missing_no_label', { label }),\n typeMismatch: $l('EmailField', 'type_mismatch'),\n };\n }\n};\nEmailField.displayName = 'EmailField';\nEmailField = __decorate([\n observer\n], EmailField);\nexport default EmailField;\n"],"file":"EmailField.js"}
\No newline at end of file