{"version":3,"file":"form.mjs","sources":["../../../../packages/tokens/form.ts"],"sourcesContent":["import type { InjectionKey } from 'vue'\nimport type { ValidateFieldsError } from 'async-validator'\nimport type { ComponentSize } from '@element-plus/utils/types'\n\nexport interface ElFormContext {\n registerLabelWidth(width: number, oldWidth: number): void\n deregisterLabelWidth(width: number): void\n autoLabelWidth: string | undefined\n emit: (evt: string, ...args: any[]) => void\n addField: (field: ElFormItemContext) => void\n removeField: (field: ElFormItemContext) => void\n resetFields: () => void\n clearValidate: (props: string | string[]) => void\n validateField: (props: string | string[], cb: ValidateFieldCallback) => void\n labelSuffix: string\n inline?: boolean\n inlineMessage?: boolean\n model?: Record\n size?: ComponentSize\n showMessage?: boolean\n labelPosition?: string\n labelWidth?: string | number\n rules?: Record\n statusIcon?: boolean\n hideRequiredAsterisk?: boolean\n disabled?: boolean\n}\n\nexport interface ValidateFieldCallback {\n (isValid?: string, invalidFields?: ValidateFieldsError): void\n}\n\nexport interface ElFormItemContext {\n prop?: string\n size?: ComponentSize\n validateState: string\n $el: HTMLDivElement\n validate(trigger: string, callback?: ValidateFieldCallback): void\n updateComputedLabelWidth(width: number): void\n evaluateValidationEnabled(): void\n resetField(): void\n clearValidate(): void\n}\n\nexport const elFormKey: InjectionKey = Symbol('elForm')\nexport const elFormItemKey: InjectionKey =\n Symbol('elFormItem')\n"],"names":[],"mappings":"AAAY,MAAC,SAAS,GAAG,MAAM,CAAC,QAAQ,EAAE;AAC9B,MAAC,aAAa,GAAG,MAAM,CAAC,YAAY;;;;"}