{"version":3,"file":"ng-primitives-a11y.mjs","sources":["../../../../packages/ng-primitives/a11y/src/active-descendant/active-descendant.ts","../../../../packages/ng-primitives/a11y/src/visually-hidden/visually-hidden-state.ts","../../../../packages/ng-primitives/a11y/src/visually-hidden/visually-hidden.ts","../../../../packages/ng-primitives/a11y/src/ng-primitives-a11y.ts"],"sourcesContent":["import { computed, Signal, signal } from '@angular/core';\nimport { controlled } from 'ng-primitives/state';\nimport { injectDisposables } from 'ng-primitives/utils';\n\nexport interface NgpActiveDescendantManagerProps {\n  /**\n   * The disabled state of the active descendant group.\n   * @default false\n   */\n  disabled?: Signal<boolean>;\n\n  /**\n   * The number of items in the active descendant group.\n   */\n  count: Signal<number>;\n\n  /**\n   * Get the id for the item at a given index.\n   */\n  getItemId: (index: number) => string | undefined;\n\n  /**\n   * Whether the item at a given index is disabled.\n   */\n  isItemDisabled: (index: number) => boolean;\n\n  /**\n   * Get the label of the item at a given index. When provided, enables typeahead\n   * (letter-key) navigation through the `typeahead` method.\n   */\n  getItemLabel?: (index: number) => string;\n\n  /**\n   * Scroll the active descendant item into view.\n   */\n  scrollIntoView: (index: number) => void;\n\n  /**\n   * Whether active descendant should wrap around.\n   * @default false\n   */\n  wrap?: Signal<boolean>;\n}\n\nexport interface NgpActiveDescendantManagerState {\n  /**\n   * The index of the active descendant item.\n   */\n  index: Signal<number>;\n\n  /**\n   * The id of the active descendant item.\n   */\n  id: Signal<string | undefined>;\n\n  /**\n   * Activate an item in the active descendant group.\n   */\n  activateByIndex: (index: number, options?: ActivationOptions) => void;\n\n  /**\n   * Activate an item in the active descendant group by id.\n   */\n  activateById: (id: string, options?: ActivationOptions) => void;\n\n  /**\n   * Activate the first enabled item in the active descendant group.\n   */\n  first: (options?: ActivationOptions) => void;\n  /**\n   * Activate the last enabled item in the active descendant group.\n   */\n  last: (options?: ActivationOptions) => void;\n  /**\n   * Activate the next enabled item in the active descendant group.\n   */\n  next: (options?: ActivationOptions) => void;\n  /**\n   * Activate the previous enabled item in the active descendant group.\n   */\n  previous: (options?: ActivationOptions) => void;\n  /**\n   * Ensure there is an active descendant, this is useful when the items in the group change.\n   */\n  validate: () => void;\n  /**\n   * Reset the active descendant group, clearing the active index.\n   */\n  reset: (options?: ActivationOptions) => void;\n  /**\n   * Activate the next enabled item whose label matches the typed characters.\n   * No-op unless `getItemLabel` was provided.\n   */\n  typeahead: (key: string, options?: ActivationOptions) => void;\n}\n\nexport function activeDescendantManager({\n  disabled: _disabled = signal(false),\n  wrap,\n  count,\n  getItemId,\n  isItemDisabled,\n  getItemLabel,\n  scrollIntoView,\n}: NgpActiveDescendantManagerProps) {\n  const disposables = injectDisposables();\n\n  const activeIndex = signal<number>(0);\n  const disabled = controlled(_disabled);\n  let isIgnoringPointer = false;\n\n  let clearPointerIgnoreTimer: (() => void) | undefined;\n\n  // buffer of characters typed for typeahead navigation, cleared after a short idle\n  let typeaheadBuffer = '';\n  let clearTypeaheadTimer: (() => void) | undefined;\n\n  // compute the id of the active descendant\n  const id = computed(() => {\n    const index = activeIndex();\n    return index >= 0 && index < count() ? getItemId(index) : undefined;\n  });\n\n  /**\n   * Start ignoring pointer interactions temporarily.\n   */\n  function startIgnoringPointer(): void {\n    isIgnoringPointer = true;\n\n    // Clear any existing timer\n    clearPointerIgnoreTimer?.();\n\n    // Reset ignore state after a short delay\n    clearPointerIgnoreTimer = disposables.setTimeout(() => {\n      isIgnoringPointer = false;\n      clearPointerIgnoreTimer = undefined;\n    }, 200); // 200ms should be enough for scroll to complete\n  }\n\n  function activateByIndex(index: number, { scroll = true, origin }: ActivationOptions = {}): void {\n    if (disabled() || (index >= 0 && isItemDisabled(index))) {\n      return;\n    }\n\n    // if the origin is the pointer but we are ignoring pointer interactions, do nothing\n    if (origin === 'pointer' && isIgnoringPointer) {\n      return;\n    }\n\n    // ensure any pointer interactions triggered via scrolling due to keyboard navigation are ignored\n    if (origin === 'keyboard') {\n      startIgnoringPointer();\n    }\n\n    activeIndex.set(index);\n\n    if (index < 0 || index >= count()) {\n      return;\n    }\n\n    if (scroll) {\n      scrollIntoView(index);\n    }\n  }\n\n  function activateById(id: string, options: ActivationOptions = {}): void {\n    for (let i = 0; i < count(); i++) {\n      if (getItemId(i) === id) {\n        activateByIndex(i, options);\n        return;\n      }\n    }\n  }\n\n  function first(options: ActivationOptions = {}): void {\n    for (let i = 0; i < count(); i++) {\n      if (!isItemDisabled(i)) {\n        activateByIndex(i, options);\n        return;\n      }\n    }\n  }\n\n  function last(options: ActivationOptions = {}): void {\n    for (let i = count() - 1; i >= 0; i--) {\n      if (!isItemDisabled(i)) {\n        activateByIndex(i, options);\n        return;\n      }\n    }\n  }\n\n  function next(options: ActivationOptions = {}): void {\n    let index = activeIndex() + 1;\n\n    while (index !== activeIndex()) {\n      if (index >= count()) {\n        if (wrap?.()) {\n          index = 0;\n        } else {\n          return;\n        }\n      }\n\n      if (!isItemDisabled(index)) {\n        activateByIndex(index, options);\n        return;\n      }\n\n      index++;\n    }\n  }\n\n  function previous(options: ActivationOptions = {}): void {\n    let index = activeIndex() - 1;\n\n    while (index !== activeIndex()) {\n      if (index < 0) {\n        if (wrap?.()) {\n          index = count() - 1;\n        } else {\n          return;\n        }\n      }\n\n      if (!isItemDisabled(index)) {\n        activateByIndex(index, options);\n        return;\n      }\n\n      index--;\n    }\n  }\n\n  // any time the item list changes, check if the active index is still valid\n  function validate(): void {\n    const index = activeIndex();\n\n    // if the index is out of bounds, reset it\n    if (index >= count() || index < 0 || isItemDisabled(index)) {\n      // find the first enabled item\n      for (let i = 0; i < count(); i++) {\n        if (!isItemDisabled(i)) {\n          activateByIndex(i);\n          return;\n        }\n      }\n      // if no enabled items, deactivate\n      activateByIndex(-1);\n    }\n  }\n\n  /**\n   * Reset the active descendant group, clearing the active index.\n   */\n  const reset = ({ scroll = false, origin }: ActivationOptions = {}) => {\n    activateByIndex(-1, { scroll, origin });\n  };\n\n  function typeahead(key: string, options: ActivationOptions = {}): void {\n    // typeahead is only enabled when a label accessor is provided\n    if (!getItemLabel) {\n      return;\n    }\n\n    typeaheadBuffer += key.toLowerCase();\n\n    // clear the buffer shortly after the last keystroke so a new search can begin\n    clearTypeaheadTimer?.();\n    clearTypeaheadTimer = disposables.setTimeout(() => {\n      typeaheadBuffer = '';\n      clearTypeaheadTimer = undefined;\n    }, 500);\n\n    const total = count();\n    if (total === 0) {\n      return;\n    }\n\n    // when every buffered character is the same, treat it as a single-character\n    // search that starts after the current item, so repeating a character cycles\n    // through the items whose label starts with it\n    const hasActive = activeIndex() >= 0;\n    const isRepeatedChar = [...typeaheadBuffer].every(char => char === typeaheadBuffer[0]);\n    const search = isRepeatedChar ? typeaheadBuffer[0] : typeaheadBuffer;\n    // only skip past the current item when there is one to cycle from; with no\n    // active item the search must start at index 0 so the first match is found\n    const startOffset = isRepeatedChar && hasActive ? 1 : 0;\n    const base = hasActive ? activeIndex() : 0;\n\n    for (let i = 0; i < total; i++) {\n      const index = (base + startOffset + i) % total;\n\n      if (isItemDisabled(index)) {\n        continue;\n      }\n\n      const label = (getItemLabel(index) ?? '').toLowerCase().trim();\n\n      if (label.startsWith(search)) {\n        activateByIndex(index, { origin: 'keyboard', ...options });\n        return;\n      }\n    }\n  }\n\n  return {\n    id,\n    index: activeIndex,\n    activateByIndex,\n    activateById,\n    first,\n    last,\n    next,\n    previous,\n    reset,\n    validate,\n    typeahead,\n  } satisfies NgpActiveDescendantManagerState;\n}\n\nexport interface ActivationOptions {\n  /** Whether to scroll the activated item into view. */\n  scroll?: boolean;\n  /** Define the source of activation. */\n  origin?: 'keyboard' | 'pointer';\n}\n","import { ChangeDetectorRef, inject, Signal, signal } from '@angular/core';\nimport { injectElementRef } from 'ng-primitives/internal';\nimport { controlled, createPrimitive, styleBinding } from 'ng-primitives/state';\n\n/**\n * The state interface for the VisuallyHidden pattern.\n */\nexport interface NgpVisuallyHiddenState {\n  /**\n   * Whether the element is hidden.\n   */\n  readonly hidden: Signal<boolean>;\n\n  /**\n   * Set the element visibility.\n   * @param visible\n   */\n  setVisibility(visible: boolean): void;\n}\n\n/**\n * The props interface for the VisuallyHidden pattern.\n */\nexport interface NgpVisuallyHiddenProps {\n  /**\n   * Whether the element is hidden. Default is true.\n   */\n  readonly hidden?: Signal<boolean>;\n}\n\nexport const [\n  NgpVisuallyHiddenStateToken,\n  ngpVisuallyHidden,\n  injectVisuallyHiddenState,\n  provideVisuallyHiddenState,\n] = createPrimitive(\n  'NgpVisuallyHidden',\n  ({ hidden: _hidden = signal(true) }: NgpVisuallyHiddenProps): NgpVisuallyHiddenState => {\n    const element = injectElementRef();\n    const hidden = controlled(_hidden);\n    const changeDetector = inject(ChangeDetectorRef);\n\n    // Apply styles to visually hide the element\n    styleBinding(element, 'position', () => (hidden() ? 'absolute' : null));\n    styleBinding(element, 'width', () => (hidden() ? '1px' : null));\n    styleBinding(element, 'height', () => (hidden() ? '1px' : null));\n    styleBinding(element, 'margin', () => (hidden() ? '-1px' : null));\n    styleBinding(element, 'padding', () => (hidden() ? '0' : null));\n    styleBinding(element, 'overflow', () => (hidden() ? 'hidden' : null));\n    styleBinding(element, 'clip', () => (hidden() ? 'rect(0, 0, 0, 0)' : null));\n    styleBinding(element, 'white-space', () => (hidden() ? 'nowrap' : null));\n    styleBinding(element, 'border', () => (hidden() ? '0' : null));\n    styleBinding(element, 'word-wrap', () => (hidden() ? 'normal' : null));\n    styleBinding(element, 'outline', () => (hidden() ? '0' : null));\n    styleBinding(element, '-webkit-appearance', () => (hidden() ? 'none' : null));\n    styleBinding(element, '-moz-appearance', () => (hidden() ? 'none' : null));\n    styleBinding(element, 'inset-inline-start', () => (hidden() ? '0' : null));\n\n    function setVisibility(visible: boolean): void {\n      hidden.set(!visible);\n      // If a change-detection cycle might be running, schedule detection asynchronously and exit\n      // to avoid re-entrancy. Otherwise fall through to call detectChanges synchronously.\n      Promise.resolve().then(() => changeDetector.detectChanges());\n    }\n\n    return {\n      hidden: hidden.asReadonly(),\n      setVisibility,\n    } satisfies NgpVisuallyHiddenState;\n  },\n);\n","import { Directive } from '@angular/core';\nimport { ngpVisuallyHidden, provideVisuallyHiddenState } from './visually-hidden-state';\n\n/**\n * Hide an element visually while keeping it present in the DOM.\n */\n@Directive({\n  selector: '[ngpVisuallyHidden]',\n  exportAs: 'ngpVisuallyHidden',\n  providers: [provideVisuallyHiddenState()],\n})\nexport class NgpVisuallyHidden {\n  protected readonly state = ngpVisuallyHidden({});\n\n  /**\n   * Set the element visibility.\n   * @param visible\n   */\n  setVisibility(visible: boolean): void {\n    this.state.setVisibility(visible);\n  }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAgGM,SAAU,uBAAuB,CAAC,EACtC,QAAQ,EAAE,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC,EACnC,IAAI,EACJ,KAAK,EACL,SAAS,EACT,cAAc,EACd,YAAY,EACZ,cAAc,GACkB,EAAA;AAChC,IAAA,MAAM,WAAW,GAAG,iBAAiB,EAAE;AAEvC,IAAA,MAAM,WAAW,GAAG,MAAM,CAAS,CAAC,kFAAC;AACrC,IAAA,MAAM,QAAQ,GAAG,UAAU,CAAC,SAAS,CAAC;IACtC,IAAI,iBAAiB,GAAG,KAAK;AAE7B,IAAA,IAAI,uBAAiD;;IAGrD,IAAI,eAAe,GAAG,EAAE;AACxB,IAAA,IAAI,mBAA6C;;AAGjD,IAAA,MAAM,EAAE,GAAG,QAAQ,CAAC,MAAK;AACvB,QAAA,MAAM,KAAK,GAAG,WAAW,EAAE;AAC3B,QAAA,OAAO,KAAK,IAAI,CAAC,IAAI,KAAK,GAAG,KAAK,EAAE,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,SAAS;AACrE,IAAA,CAAC,yEAAC;AAEF;;AAEG;AACH,IAAA,SAAS,oBAAoB,GAAA;QAC3B,iBAAiB,GAAG,IAAI;;QAGxB,uBAAuB,IAAI;;AAG3B,QAAA,uBAAuB,GAAG,WAAW,CAAC,UAAU,CAAC,MAAK;YACpD,iBAAiB,GAAG,KAA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