ideaz-element
Version:
<p align="center"> <a href="" target="_blank" rel="noopener noreferrer"> <img src="./docs/public/logo.svg" alt="Ideaz Element" width="180" style="width: 180px;" /> </a> </p>
1 lines • 2 kB
Source Map (JSON)
{"version":3,"file":"input.cjs","sources":["../../../../../packages/element/input/src/input.ts"],"sourcesContent":["import { isString } from '@ideaz/utils'\nimport { inputProps } from 'element-plus'\nimport type { ExtractPropTypes, PropType, VNode } from 'vue'\n\nexport const definePropType = <T>(val: any): PropType<T> => val\n\nexport const zInputProps = {\n ...inputProps,\n prepend: {\n type: [String, Function] as PropType<string | (() => VNode)>,\n },\n append: {\n type: [String, Function] as PropType<string | (() => VNode)>,\n },\n prefix: {\n type: [String, Function] as PropType<string | (() => VNode)>,\n },\n suffix: {\n type: [String, Function] as PropType<string | (() => VNode)>,\n },\n}\nexport type InputProps = ExtractPropTypes<typeof inputProps>\n\nexport const inputEmits = {\n 'update:modelValue': (value: string) => isString(value),\n // 'input': (value: string) => isString(value),\n}\n\nexport const INPUT_SLOTS = ['prepend', 'append', 'prefix', 'suffix']\n\nconst totalInputEmits = {\n ...inputEmits,\n change: (value: string) => isString(value),\n focus: (evt: FocusEvent) => evt instanceof FocusEvent,\n blur: (evt: FocusEvent) => evt instanceof FocusEvent,\n clear: () => true,\n}\n\nexport type InputEmits = typeof totalInputEmits\n\nexport const FILTER_INPUT_PROPS = ['prepend', 'append', 'prefix', 'suffix']\n"],"names":["definePropType","val","zInputProps","elementPlus","inputEmits","value","is","INPUT_SLOTS","totalInputEmits","evt","FILTER_INPUT_PROPS"],"mappings":"uLAIaA,EAAAC,GAAAA,EAENC,EAAA,CAAoB,GAAAC,EAAA,WACtB,QAAA,CACM,KAAA,CAAA,OAAA,QAAA,CACgB,EACzB,OAAA,CACQ,KAAA,CAAA,OAAA,QAAA,CACiB,EACzB,OAAA,CACQ,KAAA,CAAA,OAAA,QAAA,CACiB,EACzB,OAAA,CACQ,KAAA,CAAA,OAAA,QAAA,CACiB,CAE3B,EAGOC,EAAA,CAAmB,oBAAAC,GAAAC,EAAA,SAAAD,CAAA,CAG1B,EAEOE,EAAA,CAAA,UAAA,SAAA,SAAA,QAAA,EAEPC,EAAA,CAAwB,GAAAJ,EACnB,OAAAC,GAAAC,EAAA,SAAAD,CAAA,EACsC,MAAAI,GAAAA,aAAA,WACE,KAAAA,GAAAA,aAAA,WACD,MAAA,IAAA,EAE5C,EAIOC,EAAA,CAAA,UAAA,SAAA,SAAA,QAAA"}