{"version":3,"file":"ng-primitives-input-otp.mjs","sources":["../../../../packages/ng-primitives/input-otp/src/input-otp/input-otp-state.ts","../../../../packages/ng-primitives/input-otp/src/input-otp/input-otp.ts","../../../../packages/ng-primitives/input-otp/src/input-otp-input/input-otp-input-state.ts","../../../../packages/ng-primitives/input-otp/src/input-otp-input/input-otp-input.ts","../../../../packages/ng-primitives/input-otp/src/input-otp-slot/input-otp-slot-state.ts","../../../../packages/ng-primitives/input-otp/src/input-otp-slot/input-otp-slot.ts","../../../../packages/ng-primitives/input-otp/src/ng-primitives-input-otp.ts"],"sourcesContent":["import { computed, signal, Signal } from '@angular/core';\nimport { ngpInteractions } from 'ng-primitives/interactions';\nimport { controlled, createPrimitive, emitter } from 'ng-primitives/state';\nimport { Observable } from 'rxjs';\nimport type { NgpInputOtpInputState } from '../input-otp-input/input-otp-input-state';\nimport type { NgpInputOtpSlotState } from '../input-otp-slot/input-otp-slot-state';\nimport type { NgpInputOtpInputMode } from './input-otp';\n\nexport interface NgpInputOtpProps {\n  /**\n   * The current value of the OTP.\n   * @default ''\n   */\n  readonly value?: Signal<string>;\n\n  /**\n   * The regex pattern for allowed characters.\n   * @default '[0-9]'\n   */\n  readonly pattern?: Signal<string>;\n\n  /**\n   * The input mode for the hidden input.\n   * @default 'text'\n   */\n  readonly inputMode?: Signal<NgpInputOtpInputMode>;\n\n  /**\n   * Function to transform pasted text.\n   */\n  readonly pasteTransformer?: Signal<((text: string) => string) | undefined>;\n\n  /**\n   * Whether the input-otp is disabled.\n   * @default false\n   */\n  readonly disabled?: Signal<boolean>;\n\n  /**\n   * The placeholder character to display when a slot is empty.\n   * @default ''\n   */\n  readonly placeholder?: Signal<string>;\n\n  /**\n   * Callback invoked when the value changes.\n   */\n  readonly onValueChange?: (value: string) => void;\n\n  /**\n   * Callback invoked when the OTP is complete (maxLength characters entered).\n   */\n  readonly onComplete?: (value: string) => void;\n}\n\nexport interface NgpInputOtpState {\n  /**\n   * The current value of the OTP.\n   */\n  readonly value: Signal<string>;\n\n  /**\n   * The regex pattern for allowed characters.\n   */\n  readonly pattern: Signal<string>;\n\n  /**\n   * The input mode for the hidden input.\n   */\n  readonly inputMode: Signal<NgpInputOtpInputMode>;\n\n  /**\n   * Function to transform pasted text.\n   */\n  readonly pasteTransformer: Signal<((text: string) => string) | undefined>;\n\n  /**\n   * Whether the input-otp is disabled.\n   */\n  readonly disabled: Signal<boolean>;\n\n  /**\n   * The placeholder character to display when a slot is empty.\n   */\n  readonly placeholder: Signal<string>;\n\n  /**\n   * The number of characters in the OTP, derived from the registered slots.\n   */\n  readonly maxLength: Signal<number>;\n\n  /**\n   * The focus state of the input.\n   * @internal\n   */\n  readonly isFocused: Signal<boolean>;\n\n  /**\n   * The selection start position.\n   * @internal\n   */\n  readonly selectionStart: Signal<number>;\n\n  /**\n   * The selection end position.\n   * @internal\n   */\n  readonly selectionEnd: Signal<number>;\n\n  /**\n   * Emits when the value changes.\n   */\n  readonly valueChange: Observable<string>;\n\n  /**\n   * Emits once the OTP is complete (`maxLength` characters entered). It does\n   * not emit when a complete value is shortened.\n   */\n  readonly complete: Observable<string>;\n\n  /**\n   * Register the hidden input with the input-otp.\n   * @internal\n   */\n  registerInput(input: NgpInputOtpInputState): void;\n\n  /**\n   * Register a slot with the input-otp.\n   * @internal\n   */\n  registerSlot(slot: NgpInputOtpSlotState): void;\n\n  /**\n   * Unregister a slot from the input-otp.\n   * @internal\n   */\n  unregisterSlot(slot: NgpInputOtpSlotState): void;\n\n  /**\n   * Get the index of a registered slot.\n   * @internal\n   */\n  getSlotIndex(slot: NgpInputOtpSlotState): number;\n\n  /**\n   * Update the value and emit change events.\n   * @internal\n   */\n  updateValue(value: string): void;\n\n  /**\n   * Update the focus state.\n   * @internal\n   */\n  updateFocus(focused: boolean): void;\n\n  /**\n   * Update the selection state.\n   * @internal\n   */\n  updateSelection(start: number, end: number): void;\n\n  /**\n   * Focus the input and set the caret to the given position.\n   * @internal\n   */\n  focusAtPosition(position: number): void;\n}\n\nexport const [NgpInputOtpStateToken, ngpInputOtp, injectInputOtpState, provideInputOtpState] =\n  createPrimitive(\n    'NgpInputOtp',\n    ({\n      value: _value = signal(''),\n      pattern = signal('[0-9]'),\n      inputMode = signal<NgpInputOtpInputMode>('text'),\n      pasteTransformer = signal<((text: string) => string) | undefined>(undefined),\n      disabled = signal(false),\n      placeholder = signal(''),\n      onValueChange,\n      onComplete,\n    }: NgpInputOtpProps): NgpInputOtpState => {\n      // The value is mutated internally as the user types, so it is controlled.\n      const value = controlled(_value);\n      const valueChange = emitter<string>();\n      const complete = emitter<string>();\n\n      // The registered hidden input and slots stay private to the factory — no other\n      // part reads them directly, only the derived `maxLength` and the methods below.\n      const inputElement = signal<NgpInputOtpInputState | undefined>(undefined);\n      const slots = signal<NgpInputOtpSlotState[]>([]);\n\n      const isFocused = signal(false);\n      const selectionStart = signal(0);\n      const selectionEnd = signal(0);\n\n      // The number of characters in the OTP is derived from the registered slots.\n      const maxLength = computed(() => slots().length);\n\n      ngpInteractions({\n        hover: true,\n        press: true,\n        focus: true,\n        disabled: disabled,\n      });\n\n      function registerInput(input: NgpInputOtpInputState): void {\n        inputElement.set(input);\n      }\n\n      function registerSlot(slot: NgpInputOtpSlotState): void {\n        slots.update(current => [...current, slot]);\n      }\n\n      function unregisterSlot(slot: NgpInputOtpSlotState): void {\n        slots.update(current => current.filter(s => s !== slot));\n      }\n\n      function getSlotIndex(slot: NgpInputOtpSlotState): number {\n        return slots().indexOf(slot);\n      }\n\n      function updateValue(newValue: string): void {\n        if (newValue === value()) {\n          return;\n        }\n\n        value.set(newValue);\n        onValueChange?.(newValue);\n        valueChange.emit(newValue);\n\n        // Emit complete once the OTP has been fully entered.\n        if (newValue.length === maxLength()) {\n          onComplete?.(newValue);\n          complete.emit(newValue);\n        }\n      }\n\n      function updateFocus(focused: boolean): void {\n        isFocused.set(focused);\n      }\n\n      function updateSelection(start: number, end: number): void {\n        selectionStart.set(start);\n        selectionEnd.set(end);\n      }\n\n      function focusAtPosition(position: number): void {\n        const input = inputElement();\n        if (!input) {\n          return;\n        }\n\n        input.focus();\n        input.setSelectionRange(position, position);\n      }\n\n      return {\n        value,\n        pattern,\n        inputMode,\n        pasteTransformer,\n        disabled,\n        placeholder,\n        maxLength,\n        isFocused,\n        selectionStart,\n        selectionEnd,\n        valueChange: valueChange.asObservable(),\n        complete: complete.asObservable(),\n        registerInput,\n        registerSlot,\n        unregisterSlot,\n        getSlotIndex,\n        updateValue,\n        updateFocus,\n        updateSelection,\n        focusAtPosition,\n      } satisfies NgpInputOtpState;\n    },\n  );\n","import { BooleanInput } from '@angular/cdk/coercion';\nimport { booleanAttribute, Directive, input, output } from '@angular/core';\nimport { uniqueId } from 'ng-primitives/utils';\nimport { ngpInputOtp, provideInputOtpState } from './input-otp-state';\n\nexport type NgpInputOtpInputMode =\n  | 'numeric'\n  | 'text'\n  | 'decimal'\n  | 'tel'\n  | 'search'\n  | 'email'\n  | 'url';\n\n@Directive({\n  selector: '[ngpInputOtp]',\n  exportAs: 'ngpInputOtp',\n  providers: [provideInputOtpState()],\n})\nexport class NgpInputOtp {\n  /**\n   * The id of the input-otp.\n   */\n  readonly id = input(uniqueId('ngp-input-otp'));\n\n  /**\n   * The current value of the OTP. A null/undefined value (e.g. from a form\n   * `writeValue(null)` or `reset()`) is coerced to an empty string.\n   */\n  readonly value = input<string, string | null | undefined>('', {\n    alias: 'ngpInputOtpValue',\n    transform: value => value ?? '',\n  });\n\n  /**\n   * The regex pattern for allowed characters.\n   */\n  readonly pattern = input<string>('[0-9]', {\n    alias: 'ngpInputOtpPattern',\n  });\n\n  /**\n   * The input mode for the hidden input.\n   */\n  readonly inputMode = input<NgpInputOtpInputMode>('text', {\n    alias: 'ngpInputOtpInputMode',\n  });\n\n  /**\n   * Function to transform pasted text.\n   */\n  readonly pasteTransformer = input<(text: string) => string>(undefined, {\n    alias: 'ngpInputOtpPasteTransformer',\n  });\n\n  /**\n   * Whether the input-otp is disabled.\n   */\n  readonly disabled = input<boolean, BooleanInput>(false, {\n    alias: 'ngpInputOtpDisabled',\n    transform: booleanAttribute,\n  });\n\n  /**\n   * The placeholder character to display when a slot is empty.\n   */\n  readonly placeholder = input<string>('', {\n    alias: 'ngpInputOtpPlaceholder',\n  });\n\n  /**\n   * Event emitted when the value changes.\n   */\n  readonly valueChange = output<string>({\n    alias: 'ngpInputOtpValueChange',\n  });\n\n  /**\n   * Event emitted when the OTP is complete (maxLength characters entered).\n   */\n  readonly complete = output<string>({\n    alias: 'ngpInputOtpComplete',\n  });\n\n  /**\n   * The state of the input-otp.\n   */\n  private readonly state = ngpInputOtp({\n    value: this.value,\n    pattern: this.pattern,\n    inputMode: this.inputMode,\n    pasteTransformer: this.pasteTransformer,\n    disabled: this.disabled,\n    placeholder: this.placeholder,\n    onValueChange: value => this.valueChange.emit(value),\n    onComplete: value => this.complete.emit(value),\n  });\n}\n","import { afterRenderEffect } from '@angular/core';\nimport { ngpVisuallyHidden } from 'ng-primitives/a11y';\nimport { injectElementRef } from 'ng-primitives/internal';\nimport { attrBinding, createPrimitive, listener } from 'ng-primitives/state';\nimport { injectInputOtpState } from '../input-otp/input-otp-state';\n\nexport interface NgpInputOtpInputState {\n  /**\n   * Focus the input.\n   */\n  focus(): void;\n\n  /**\n   * Set the selection range on the input.\n   * @internal\n   */\n  setSelectionRange(start: number, end: number): void;\n}\n\nexport const [NgpInputOtpInputStateToken, ngpInputOtpInput] = createPrimitive(\n  'NgpInputOtpInput',\n  (): NgpInputOtpInputState => {\n    const elementRef = injectElementRef<HTMLInputElement>();\n    const otpState = injectInputOtpState();\n    ngpVisuallyHidden({});\n\n    // Attribute bindings\n    attrBinding(elementRef, 'autocomplete', 'one-time-code');\n    attrBinding(elementRef, 'inputmode', () => otpState().inputMode());\n    attrBinding(elementRef, 'maxlength', () => otpState().maxLength());\n    attrBinding(elementRef, 'pattern', () => otpState().pattern() || null);\n    attrBinding(elementRef, 'disabled', () => (otpState().disabled() ? '' : null));\n\n    // Event listeners\n    listener(elementRef, 'input', event => onInput(event));\n    listener(elementRef, 'paste', event => onPaste(event));\n    listener(elementRef, 'focus', () => onFocus());\n    listener(elementRef, 'blur', () => otpState().updateFocus(false));\n    listener(elementRef, 'keyup', () => updateSelection());\n    listener(elementRef, 'select', () => updateSelection());\n\n    // Keep the hidden input's value in sync with the state, including programmatic\n    // changes (e.g. a form writeValue) which don't fire `input`. Guarded so it never\n    // rewrites the value the user is actively typing (which would reset the caret) —\n    // during typing the state and the element already agree.\n    afterRenderEffect(() => {\n      const value = otpState().value();\n      if (elementRef.nativeElement.value !== value) {\n        elementRef.nativeElement.value = value;\n      }\n    });\n\n    function focus(): void {\n      elementRef.nativeElement.focus();\n    }\n\n    function setSelectionRange(start: number, end: number): void {\n      elementRef.nativeElement.setSelectionRange(start, end);\n    }\n\n    function onInput(event: Event): void {\n      if (otpState().disabled()) {\n        return;\n      }\n\n      const input = event.target as HTMLInputElement;\n      let newValue = input.value;\n\n      // Validate against the pattern if provided.\n      const pattern = otpState().pattern();\n      if (pattern) {\n        const patternRegex = new RegExp(pattern);\n        const filteredValue = newValue\n          .split('')\n          .filter(char => patternRegex.test(char))\n          .join('');\n\n        if (filteredValue !== newValue) {\n          newValue = filteredValue;\n          input.value = newValue;\n        }\n      }\n\n      // Clamp to maxLength.\n      const maxLength = otpState().maxLength();\n      if (newValue.length > maxLength) {\n        newValue = newValue.substring(0, maxLength);\n        input.value = newValue;\n      }\n\n      otpState().updateValue(newValue);\n      updateSelection();\n    }\n\n    function onPaste(event: ClipboardEvent): void {\n      if (otpState().disabled()) {\n        return;\n      }\n\n      event.preventDefault();\n\n      const clipboardData = event.clipboardData?.getData('text') || '';\n      let pastedText = clipboardData.trim();\n\n      // Apply the paste transformer if provided.\n      const transformer = otpState().pasteTransformer();\n      if (transformer) {\n        pastedText = transformer(pastedText);\n      }\n\n      // Validate against the pattern if provided.\n      const pattern = otpState().pattern();\n      if (pattern) {\n        const patternRegex = new RegExp(pattern);\n        pastedText = pastedText\n          .split('')\n          .filter(char => patternRegex.test(char))\n          .join('');\n      }\n\n      // Clamp to maxLength.\n      const maxLength = otpState().maxLength();\n      if (pastedText.length > maxLength) {\n        pastedText = pastedText.substring(0, maxLength);\n      }\n\n      // Update the input value and the state.\n      elementRef.nativeElement.value = pastedText;\n      otpState().updateValue(pastedText);\n\n      // Set the caret to the end.\n      const endPosition = pastedText.length;\n      setSelectionRange(endPosition, endPosition);\n      updateSelection();\n    }\n\n    function onFocus(): void {\n      otpState().updateFocus(true);\n      updateSelection();\n    }\n\n    function updateSelection(): void {\n      const input = elementRef.nativeElement;\n      const maxLength = otpState().maxLength();\n\n      // If the input is at max length, keep the selection on the last character.\n      if (input.value.length === maxLength) {\n        input.setSelectionRange(input.value.length - 1, input.value.length);\n      }\n\n      // If the input is below max length, keep the caret at the end.\n      if (input.value.length < maxLength) {\n        input.setSelectionRange(input.value.length, input.value.length);\n      }\n\n      const start = input.selectionStart || 0;\n      const end = input.selectionEnd || 0;\n      otpState().updateSelection(start, end);\n    }\n\n    const state: NgpInputOtpInputState = {\n      focus,\n      setSelectionRange,\n    };\n\n    // Register the hidden input so the parent can drive focus/caret imperatively.\n    otpState().registerInput(state);\n\n    return state;\n  },\n);\n","import { Directive } from '@angular/core';\nimport { ngpInputOtpInput } from './input-otp-input-state';\n\n@Directive({\n  selector: 'input[ngpInputOtpInput]',\n  exportAs: 'ngpInputOtpInput',\n})\nexport class NgpInputOtpInput {\n  /**\n   * The state of the input-otp input.\n   */\n  protected readonly state = ngpInputOtpInput();\n\n  /**\n   * Focus the input.\n   */\n  focus(): void {\n    this.state.focus();\n  }\n}\n","import { computed, effect } from '@angular/core';\nimport { injectElementRef } from 'ng-primitives/internal';\nimport {\n  attrBinding,\n  createPrimitive,\n  dataBinding,\n  listener,\n  onDestroy,\n} from 'ng-primitives/state';\nimport { injectInputOtpState } from '../input-otp/input-otp-state';\n\nexport interface NgpInputOtpSlotState {}\n\nexport const [NgpInputOtpSlotStateToken, ngpInputOtpSlot] = createPrimitive(\n  'NgpInputOtpSlot',\n  (): NgpInputOtpSlotState => {\n    const element = injectElementRef<HTMLElement>();\n    const otpState = injectInputOtpState();\n\n    // Identity token for this slot. The parent orders slots by registration order,\n    // so a stable per-slot reference is all it needs.\n    const state: NgpInputOtpSlotState = {};\n\n    // The index of this slot based on registration order.\n    const index = computed(() => otpState().getSlotIndex(state));\n\n    // The character for this slot from the value string.\n    const char = computed(() => {\n      const value = otpState().value();\n      const currentIndex = index();\n      return currentIndex >= 0 && currentIndex < value.length ? value[currentIndex] : null;\n    });\n\n    // Whether this slot is focused (active).\n    const focused = computed(() => {\n      const currentIndex = index();\n      const isFocused = otpState().isFocused();\n      const selectionStart = otpState().selectionStart();\n      const value = otpState().value();\n      const maxLength = otpState().maxLength();\n\n      return (\n        isFocused &&\n        (currentIndex === selectionStart ||\n          (value.length === maxLength && currentIndex === maxLength - 1))\n      );\n    });\n\n    // Whether this slot should show the caret.\n    const caret = computed(() => {\n      const currentIndex = index();\n      const isFocused = otpState().isFocused();\n      const selectionStart = otpState().selectionStart();\n      const selectionEnd = otpState().selectionEnd();\n      const value = otpState().value();\n      const maxLength = otpState().maxLength();\n\n      return (\n        isFocused &&\n        currentIndex === selectionStart &&\n        selectionStart === selectionEnd &&\n        value.length < maxLength\n      );\n    });\n\n    // Whether this slot is filled with a character.\n    const filled = computed(() => char() !== null);\n\n    // Whether to show the placeholder for this slot.\n    const showPlaceholder = computed(() => {\n      const placeholder = otpState().placeholder();\n      return !filled() && !!placeholder;\n    });\n\n    // The display character for this slot (character or placeholder).\n    const displayChar = computed(() => {\n      const character = char();\n      if (character) {\n        return character;\n      }\n      if (showPlaceholder()) {\n        return otpState().placeholder();\n      }\n      return '';\n    });\n\n    // Attribute & data bindings\n    attrBinding(element, 'role', 'presentation');\n    attrBinding(element, 'data-slot-index', index);\n    dataBinding(element, 'data-active', () => (focused() ? '' : null));\n    dataBinding(element, 'data-filled', () => (filled() ? '' : null));\n    dataBinding(element, 'data-caret', () => (caret() ? '' : null));\n    dataBinding(element, 'data-placeholder', () => (showPlaceholder() ? '' : null));\n\n    // `textContent` is a DOM property, not an attribute, so there is no binding\n    // helper for it — write it reactively.\n    effect(() => {\n      element.nativeElement.textContent = displayChar();\n    });\n\n    // Event listeners\n    listener(element, 'click', event => onClick(event));\n\n    function onClick(event: Event): void {\n      if (otpState().disabled()) {\n        return;\n      }\n\n      const currentValue = otpState().value();\n      const maxLength = otpState().maxLength();\n\n      // Focus the first empty slot, or the last slot if all are filled.\n      const targetPosition = currentValue.length < maxLength ? currentValue.length : maxLength - 1;\n      otpState().focusAtPosition(targetPosition);\n      event.preventDefault();\n      event.stopPropagation();\n    }\n\n    // Register with the parent and deregister on teardown so the slot count and\n    // ordering stay accurate as slots are added or removed.\n    otpState().registerSlot(state);\n    onDestroy(() => otpState().unregisterSlot(state));\n\n    return state;\n  },\n);\n","import { Directive } from '@angular/core';\nimport { ngpInputOtpSlot } from './input-otp-slot-state';\n\n@Directive({\n  selector: '[ngpInputOtpSlot]',\n  exportAs: 'ngpInputOtpSlot',\n})\nexport class NgpInputOtpSlot {\n  /**\n   * The state of the input-otp slot.\n   */\n  protected readonly state = ngpInputOtpSlot();\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAyKO,MAAM,CAAC,qBAAqB,EAAE,WAAW,EAAE,mBAAmB,EAAE,oBAAoB,CAAC,GAC1F,eAAe,CACb,aAAa,EACb,CAAC,EACC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC,EAC1B,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,EACzB,SAAS,GAAG,MAAM,CAAuB,MAAM,CAAC,EAChD,gBAAgB,GAAG,MAAM,CAAyC,SAAS,CAAC,EAC5E,QAAQ,GAAG,MAAM,CAAC,KAAK,CAAC,EACxB,WAAW,GAAG,MAAM,CAAC,EAAE,CAAC,EACxB,aAAa,EACb,UAAU,GACO,KAAsB;;AAEvC,IAAA,MAA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