{"version":3,"file":"props.mjs","sources":["../../../components/tour/props.ts"],"sourcesContent":["import { booleanProp, booleanStringProp, buildProps, eventProp, localeProp } from '@vexip-ui/config'\r\n\r\nimport type { ExtractPropTypes, PropType } from 'vue'\r\nimport type { ConfigurableProps } from '@vexip-ui/config'\r\nimport type { Placement } from '@vexip-ui/hooks'\r\nimport type { TourSignType, TourSlots, TourStepOptions, TourStepRenderFn, TourType } from './symbol'\r\n\r\nexport const tourProps = buildProps({\r\n  locale: localeProp('tour'),\r\n  active: booleanProp,\r\n  index: Number,\r\n  steps: Array as PropType<TourStepOptions[]>,\r\n  type: String as PropType<TourType>,\r\n  hideMask: booleanProp,\r\n  signType: String as PropType<TourSignType>,\r\n  padding: [Number, Array] as PropType<number | number[]>,\r\n  closable: booleanProp,\r\n  permeable: booleanProp,\r\n  transfer: booleanStringProp,\r\n  slots: Object as PropType<TourSlots>,\r\n  onToggle: eventProp<(active: boolean) => void>(),\r\n  onChange: eventProp<(index: number, step: TourStepOptions) => void>(),\r\n  onClose: eventProp(),\r\n  onMaskClick: eventProp<(event: MouseEvent) => void>(),\r\n})\r\n\r\nexport type TourProps = ExtractPropTypes<typeof tourProps>\r\nexport type TourCProps = ConfigurableProps<ExtractPropTypes<typeof tourProps>>\r\n\r\nexport const tourStepProps = buildProps({\r\n  target: [String, Object, Function] as PropType<string | object | (() => any)>,\r\n  placement: String as PropType<Placement>,\r\n  title: String,\r\n  content: String,\r\n  order: Number,\r\n  type: String as PropType<TourType>,\r\n  renderer: Function as PropType<TourStepRenderFn>,\r\n  onPrev: eventProp(),\r\n  onNext: eventProp(),\r\n})\r\n\r\nexport type TourStepProps = ExtractPropTypes<typeof tourStepProps>\r\nexport type TourStepCProps = ConfigurableProps<ExtractPropTypes<typeof tourStepProps>>\r\n"],"names":["tourProps","buildProps","localeProp","booleanProp","booleanStringProp","eventProp","tourStepProps"],"mappings":";AAOO,MAAMA,IAAYC,EAAW;AAAA,EAClC,QAAQC,EAAW,MAAM;AAAA,EACzB,QAAQC;AAAA,EACR,OAAO;AAAA,EACP,OAAO;AAAA,EACP,MAAM;AAAA,EACN,UAAUA;AAAA,EACV,UAAU;AAAA,EACV,SAAS,CAAC,QAAQ,KAAK;AAAA,EACvB,UAAUA;AAAA,EACV,WAAWA;AAAA,EACX,UAAUC;AAAA,EACV,OAAO;AAAA,EACP,UAAUC,EAAqC;AAAA,EAC/C,UAAUA,EAA0D;AAAA,EACpE,SAASA,EAAU;AAAA,EACnB,aAAaA,EAAuC;AACtD,CAAC,GAKYC,IAAgBL,EAAW;AAAA,EACtC,QAAQ,CAAC,QAAQ,QAAQ,QAAQ;AAAA,EACjC,WAAW;AAAA,EACX,OAAO;AAAA,EACP,SAAS;AAAA,EACT,OAAO;AAAA,EACP,MAAM;AAAA,EACN,UAAU;AAAA,EACV,QAAQI,EAAU;AAAA,EAClB,QAAQA,EAAU;AACpB,CAAC;"}