{"version":3,"file":"checkbox-group.mjs","sources":["../../../../../packages/components/checkbox/src/checkbox-group.ts"],"sourcesContent":["import { FORM_COMPONENT_PROPS, type ComponentSize } from '@element-ultra/shared'\nimport type { EmitFn } from '@element-ultra/utils'\nimport type { ExtractPropTypes, PropType } from 'vue'\n\nexport const checkboxGroupProps = {\n  ...FORM_COMPONENT_PROPS,\n  modelValue: {\n    type: Array as PropType<(string | number)[]>,\n    default: () => []\n  },\n  disabled: Boolean,\n  max: {\n    type: Number,\n    default: undefined\n  },\n  size: {\n    type: String as PropType<ComponentSize>,\n    default: 'default'\n  },\n\n  tag: {\n    type: String,\n    default: 'div'\n  },\n  items: {\n    type: Array as PropType<{ value: string | number, label: string }[]>\n  }\n}\n\nexport const checkboxGroupEmit = {\n  'update:modelValue': (v: (string | number)[]) => true,\n  change: (v: (string | number)[], label: (string | number)[]) => true\n}\n\nexport type CheckboxGroupProps = ExtractPropTypes<typeof checkboxGroupProps>\n\nexport type CheckboxGroupEmit = EmitFn<typeof checkboxGroupEmit>\n"],"names":[],"mappings":";;;AAIO,MAAM,kBAAqB,GAAA;AAAA,EAChC,GAAG,oBAAA;AAAA,EACH,UAAY,EAAA;AAAA,IACV,IAAM,EAAA,KAAA;AAAA,IACN,OAAA,EAAS,MAAM,EAAC;AAAA,GAClB;AAAA,EACA,QAAU,EAAA,OAAA;AAAA,EACV,GAAK,EAAA;AAAA,IACH,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,KAAA,CAAA;AAAA,GACX;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,SAAA;AAAA,GACX;AAAA,EAEA,GAAK,EAAA;AAAA,IACH,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA,EACA,KAAO,EAAA;AAAA,IACL,IAAM,EAAA,KAAA;AAAA,GACR;AACF,EAAA;AAEO,MAAM,iBAAoB,GAAA;AAAA,EAC/B,mBAAA,EAAqB,CAAC,CAA2B,KAAA,IAAA;AAAA,EACjD,MAAA,EAAQ,CAAC,CAAA,EAAwB,KAA+B,KAAA,IAAA;AAClE;;;;"}