{"version":3,"file":"roving-focus-group.mjs","sources":["../../../../../../packages/components/roving-focus-group/src/roving-focus-group.ts"],"sourcesContent":["import { buildProps, definePropType } from '@sgui-plus/utils/props'\r\nimport { createCollectionWithScope } from '@sgui-plus/components/collection'\r\nimport type { ExtractPropTypes, HTMLAttributes, StyleValue } from 'vue'\r\n\r\nexport const rovingFocusGroupProps = buildProps({\r\n  style: { type: definePropType<StyleValue>([String, Array, Object]) },\r\n  currentTabId: {\r\n    type: definePropType<string | null>(String),\r\n  },\r\n  defaultCurrentTabId: String,\r\n  loop: Boolean,\r\n  dir: {\r\n    type: String, // left for direction support\r\n    values: ['ltr', 'rtl'],\r\n    default: 'ltr',\r\n  },\r\n  orientation: {\r\n    // left for orientation support\r\n    type: definePropType<HTMLAttributes['aria-orientation']>(String),\r\n  },\r\n\r\n  onBlur: Function,\r\n  onFocus: Function,\r\n  onMousedown: Function,\r\n})\r\n\r\nexport type SgRovingFocusGroupProps = ExtractPropTypes<\r\n  typeof rovingFocusGroupProps\r\n>\r\n\r\nconst {\r\n  SgCollection,\r\n  SgCollectionItem,\r\n  COLLECTION_INJECTION_KEY,\r\n  COLLECTION_ITEM_INJECTION_KEY,\r\n} = createCollectionWithScope('RovingFocusGroup')\r\n\r\nexport {\r\n  SgCollection,\r\n  SgCollectionItem,\r\n  COLLECTION_INJECTION_KEY as ROVING_FOCUS_COLLECTION_INJECTION_KEY,\r\n  COLLECTION_ITEM_INJECTION_KEY as ROVING_FOCUS_ITEM_COLLECTION_INJECTION_KEY,\r\n}\r\n"],"names":[],"mappings":";;;;AAEY,MAAC,qBAAqB,GAAG,UAAU,CAAC;AAChD,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,EAAE;AAC1D,EAAE,YAAY,EAAE;AAChB,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,mBAAmB,EAAE,MAAM;AAC7B,EAAE,IAAI,EAAE,OAAO;AACf,EAAE,GAAG,EAAE;AACP,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,MAAM,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;AAC1B,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,WAAW,EAAE;AACf,IAAI,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;AAChC,GAAG;AACH,EAAE,MAAM,EAAE,QAAQ;AAClB,EAAE,OAAO,EAAE,QAAQ;AACnB,EAAE,WAAW,EAAE,QAAQ;AACvB,CAAC,EAAE;AACE,MAAC;AACN,EAAE,YAAY;AACd,EAAE,gBAAgB;AAClB,EAAE,wBAAwB;AAC1B,EAAE,6BAA6B;AAC/B,CAAC,GAAG,yBAAyB,CAAC,kBAAkB;;;;"}