{"version":3,"file":"symbol.mjs","sources":["../../../components/collapse/symbol.ts"],"sourcesContent":["import type { InjectionKey } from 'vue'\r\n\r\nexport type CollapseArrowType = 'right' | 'left' | 'none'\r\n\r\nexport interface PanelState {\r\n  tab?: HTMLElement | null,\r\n  label: string | number,\r\n  expanded: boolean,\r\n  setExpanded: (expanded: boolean) => void,\r\n}\r\n\r\nexport interface CollapseState {\r\n  arrowType: CollapseArrowType,\r\n  registerPanel(panel: PanelState): void,\r\n  unregisterPanel(panel: PanelState): void,\r\n  expandPanel(label: string | number, expanded: boolean): void,\r\n  refreshLabels: () => void,\r\n}\r\n\r\nexport interface CollapsePanelSlots {\r\n  /**\r\n   * @internal\r\n   */\r\n  default?: () => any,\r\n  /**\r\n   * @internal\r\n   */\r\n  title?: () => any,\r\n  arrow?: (params: { expanded: boolean }) => any,\r\n}\r\n\r\nexport const COLLAPSE_STATE = '__VXP_COLLAPSE_STATE' as unknown as InjectionKey<CollapseState>\r\n\r\nlet idCount = 0\r\n\r\nexport function getIndexId() {\r\n  return idCount++\r\n}\r\n"],"names":["COLLAPSE_STATE","idCount","getIndexId"],"mappings":"AA+BO,MAAMA,IAAiB;AAE9B,IAAIC,IAAU;AAEP,SAASC,IAAa;AACpB,SAAAD;AACT;"}