{"version":3,"file":"checkbox-group.mjs","sources":["../../../../../../packages/components/checkbox/src/checkbox-group.ts"],"sourcesContent":["import { UPDATE_MODEL_EVENT } from '@vuesax-alpha/constants'\nimport { buildProps, definePropType, isArray } from '@vuesax-alpha/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type { CheckboxValueType } from './checkbox'\nimport type CheckboxGroup from './checkbox-group.vue'\n\nexport type CheckboxGroupValueType = CheckboxValueType[]\n\nexport const checkboxGroupProps = buildProps({\n  /**\n   * @description binding value\n   */\n  modelValue: {\n    type: definePropType<CheckboxGroupValueType>(Array),\n    default: () => [],\n  },\n  /**\n   * @description whether the nesting checkboxes are disabled\n   */\n  disabled: {\n    type: Boolean,\n    default: false,\n  },\n  /**\n   * @description minimum number of checkbox checked\n   */\n  min: {\n    type: Number,\n  },\n  /**\n   * @description maximum number of checkbox checked\n   */\n  max: {\n    type: Number,\n  },\n} as const)\n\nexport type CheckboxGroupProps = ExtractPropTypes<typeof checkboxGroupProps>\nexport type CheckboxGroupInstance = InstanceType<typeof CheckboxGroup>\n\nexport const checkboxGroupEmits = {\n  [UPDATE_MODEL_EVENT]: (val: CheckboxGroupValueType) => isArray(val),\n  change: (val: CheckboxGroupValueType) => isArray(val),\n}\n\nexport type CheckboxGroupEmits = typeof checkboxGroupEmits\n"],"names":[],"mappings":";;;;;;AASO,MAAM,qBAAqB,UAAW,CAAA;AAAA,EAI3C,UAAY,EAAA;AAAA,IACV,IAAA,EAAM,eAAuC,KAAK,CAAA;AAAA,IAClD,OAAA,EAAS,MAAM,EAAC;AAAA,GAClB;AAAA,EAIA,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA,KAAA;AAAA,GACX;AAAA,EAIA,GAAK,EAAA;AAAA,IACH,IAAM,EAAA,MAAA;AAAA,GACR;AAAA,EAIA,GAAK,EAAA;AAAA,IACH,IAAM,EAAA,MAAA;AAAA,GACR;AACF,CAAU,EAAA;AAKH,MAAM,kBAAqB,GAAA;AAAA,EAChC,CAAC,kBAAA,GAAqB,CAAC,GAAA,KAAgC,QAAQ,GAAG,CAAA;AAAA,EAClE,MAAQ,EAAA,CAAC,GAAgC,KAAA,OAAA,CAAQ,GAAG,CAAA;AACtD;;;;"}