{"version":3,"file":"sortable-list.mjs","sources":["../../../../../../packages/components/sortable-list/src/sortable-list.ts"],"sourcesContent":["import { buildProps, definePropType } from '@element-plus/utils'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport type { ExtractPropTypes } from 'vue'\n// import type { Options } from 'sortablejs'\n\ntype SortableOptions = any // Options\n\nexport const sortableListProps = buildProps({\n  modelValue: {\n    type: definePropType<any[]>(Array),\n    required: true,\n  },\n  tag: {\n    type: definePropType<string>(String),\n    default: 'div',\n  },\n  options: {\n    type: definePropType<SortableOptions>(Object),\n    default: () => ({\n      animation: 300,\n    }),\n  },\n} as const)\nexport type SortableListProps = ExtractPropTypes<typeof sortableListProps>\n\nexport const sortableListEmits = {\n  [UPDATE_MODEL_EVENT]: (value: any) => !!value,\n  [CHANGE_EVENT]: (value: any) => !!value,\n}\nexport type SortableListEmits = typeof sortableListEmits\n"],"names":[],"mappings":";;;AAOO,MAAM,oBAAoB,UAAW,CAAA;AAAA,EAC1C,UAAY,EAAA;AAAA,IACV,IAAA,EAAM,eAAsB,KAAK,CAAA;AAAA,IACjC,QAAU,EAAA,IAAA;AAAA,GACZ;AAAA,EACA,GAAK,EAAA;AAAA,IACH,IAAA,EAAM,eAAuB,MAAM,CAAA;AAAA,IACnC,OAAS,EAAA,KAAA;AAAA,GACX;AAAA,EACA,OAAS,EAAA;AAAA,IACP,IAAA,EAAM,eAAgC,MAAM,CAAA;AAAA,IAC5C,SAAS,OAAO;AAAA,MACd,SAAW,EAAA,GAAA;AAAA,KACb,CAAA;AAAA,GACF;AACF,CAAU,EAAA;AAGH,MAAM,iBAAoB,GAAA;AAAA,EAC/B,CAAC,kBAAA,GAAqB,CAAC,KAAA,KAAe,CAAC,CAAC,KAAA;AAAA,EACxC,CAAC,YAAA,GAAe,CAAC,KAAA,KAAe,CAAC,CAAC,KAAA;AACpC;;;;"}