{"version":3,"file":"allianz-ng-aquila-input.mjs","names":["i1","i2"],"sources":["../../../projects/ng-aquila/src/input/input.directive.ts","../../../projects/ng-aquila/src/input/password-toggle.component.ts","../../../projects/ng-aquila/src/input/input.module.ts"],"sourcesContent":["import { NxFormfieldControl, NxFormfieldUpdateEventType } from '@allianz/ng-aquila/formfield';\nimport { NxAbstractControl } from '@allianz/ng-aquila/shared';\nimport { ErrorStateMatcher, IdGenerationService } from '@allianz/ng-aquila/utils';\nimport { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { getSupportedInputTypes, Platform } from '@angular/cdk/platform';\nimport { AutofillMonitor } from '@angular/cdk/text-field';\nimport {\n  computed,\n  Directive,\n  DoCheck,\n  ElementRef,\n  Inject,\n  inject,\n  InjectionToken,\n  Input,\n  input,\n  OnChanges,\n  OnDestroy,\n  OnInit,\n  Optional,\n  Self,\n  signal,\n} from '@angular/core';\nimport { FormControl, FormGroupDirective, NgControl, NgForm, Validators } from '@angular/forms';\nimport { Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nexport const NX_INPUT_VALUE_ACCESSOR = new InjectionToken<NxInputValueAccessor>(\n  'NX_INPUT_VALUE_ACCESSOR',\n);\n\nexport interface NxInputValueAccessor {\n  value: any;\n  setReadonly?(value: boolean): void;\n}\n\nconst INVALID_TYPES = [\n  'button',\n  'checkbox',\n  'file',\n  'hidden',\n  'image',\n  'radio',\n  'range',\n  'reset',\n  'submit',\n];\n\nconst NEVER_EMPTY = ['date', 'datetime', 'datetime-local', 'month', 'time', 'week'].filter((t) =>\n  getSupportedInputTypes().has(t),\n);\n\n@Directive({\n  selector: 'input[nxInput], textarea[nxInput], select[nxInput]',\n  exportAs: 'nxInput',\n  host: {\n    '[class.c-input]': 'true',\n    '[class.nx-input]': 'true',\n    '[attr.id]': 'id',\n    '[class.is-filled]': 'empty === false',\n    '[class.is-disabled]': 'disabled',\n    '[class.has-error]': 'errorState',\n    '[class.is-focused]': 'focused',\n    '[attr.disabled]': 'disabled || null',\n    '[attr.readonly]': 'readonly || null',\n    '[attr.required]': 'required || null',\n    '[attr.aria-label]': '_ariaLabel() || null',\n    '[attr.aria-describedby]': '_ariaDescribedby || null',\n    '[attr.aria-invalid]': 'errorState',\n    '[attr.aria-required]': 'required.toString()',\n    '[attr.placeholder]': 'placeholder || null',\n    '(blur)': '_focusChanged(false)',\n    '(focus)': '_focusChanged(true)',\n  },\n  providers: [\n    { provide: NxFormfieldControl, useExisting: NxInputDirective },\n    { provide: NxAbstractControl, useExisting: NxInputDirective },\n  ],\n  standalone: true,\n})\nexport class NxInputDirective\n  implements OnInit, DoCheck, OnChanges, OnDestroy, NxFormfieldControl<any>, NxAbstractControl\n{\n  protected _uid = inject(IdGenerationService).nextId('nx-input');\n\n  protected _previousNativeValue: any;\n  private readonly _inputValueAccessor: NxInputValueAccessor;\n  _ariaDescribedby!: string;\n\n  /** Aria label to be used if the input is not connected to an label. */\n  readonly nxAriaLabel = input<string>('');\n  private readonly _ariaLabelSignal = signal<string>('');\n  protected readonly _ariaLabel = computed(() => this._ariaLabelSignal() || this.nxAriaLabel());\n\n  /** @docs-private */\n  errorState = false;\n\n  /**\n   * Name of this control that is used inside the formfield component\n   * @docs-private\n   */\n  controlType = 'nx-input';\n\n  /** @docs-private */\n  autofilled = false;\n\n  /** @docs-private */\n  readonly stateChanges = new Subject<void>();\n\n  /** @docs-private */\n  focused = false;\n\n  /** The id of the input. */\n  @Input() set id(value: string) {\n    this._id = value || this._uid;\n  }\n  get id() {\n    return this._id;\n  }\n  protected _id!: string;\n\n  /** The input element's value. */\n  @Input() set value(value: any) {\n    if (value !== this.value) {\n      this._inputValueAccessor.value = value;\n    }\n  }\n  get value(): any {\n    return this._inputValueAccessor.value;\n  }\n\n  /** Whether the element is readonly. */\n  @Input() set readonly(value: BooleanInput) {\n    this._readonly = coerceBooleanProperty(value);\n    if (this._inputValueAccessor && this._inputValueAccessor.setReadonly) {\n      this._inputValueAccessor.setReadonly?.(this._readonly);\n    }\n    this.stateChanges.next();\n  }\n  get readonly(): boolean {\n    return this._readonly;\n  }\n  private _readonly = false;\n\n  /** set readonly state */\n  setReadonly(value: boolean) {\n    this.readonly = value;\n  }\n\n  /** Whether the input is disabled. */\n  @Input() set disabled(value: BooleanInput) {\n    this._disabled = coerceBooleanProperty(value);\n\n    // Browsers may not fire the blur event if the input is disabled too quickly.\n    // Reset from here to ensure that the element doesn't become stuck.\n    if (this.focused) {\n      this.focused = false;\n      this.stateChanges.next();\n    }\n  }\n  get disabled(): boolean {\n    if (this.ngControl?.disabled != null) {\n      return this.ngControl.disabled;\n    }\n    return this._disabled;\n  }\n  protected _disabled = false;\n\n  /** Whether the element is required. */\n  @Input() set required(value: any) {\n    this._required = coerceBooleanProperty(value);\n  }\n  get required() {\n    return this._required ?? this.ngControl?.control?.hasValidator(Validators.required) ?? false;\n  }\n  protected _required: boolean | undefined;\n\n  /** Sets the type of the input element (e.g. password, text etc). */\n  @Input() set type(value: string) {\n    this._type = value || 'text';\n    this._validateType();\n\n    // When using Angular inputs, developers are no longer able to set the properties on the native\n    // input element. To ensure that bindings for `type` work, we need to sync the setter\n    // with the native property. Textarea elements don't support the type property or attribute.\n    if (!this._isTextarea() && getSupportedInputTypes().has(this._type)) {\n      this._elementRef.nativeElement.type = this._type;\n    }\n  }\n  get type() {\n    return this._type;\n  }\n  protected _type = 'text';\n\n  /**\n   * Sets the text for the input placeholder.\n   */\n  @Input() set placeholder(value: string) {\n    this._placeholder.set(value);\n  }\n  get placeholder() {\n    return this._placeholder();\n  }\n  private readonly _placeholder = signal<string>('');\n\n  /**\n   *\n   * Sets the event that triggers change detection in the input.\n   */\n  @Input() set updateOn(value: NxFormfieldUpdateEventType) {\n    if (this._updateOn !== value) {\n      this._updateOn = value;\n    }\n  }\n  get updateOn(): NxFormfieldUpdateEventType {\n    return this._updateOn;\n  }\n  private _updateOn: NxFormfieldUpdateEventType = 'change';\n\n  private readonly _destroyed = new Subject<void>();\n\n  constructor(\n    protected readonly _elementRef: ElementRef,\n    protected readonly _platform: Platform,\n    /** @docs-private */ @Optional() @Self() readonly ngControl: NgControl | null,\n    @Optional() private readonly _parentForm: NgForm | null,\n    @Optional() private readonly _parentFormGroup: FormGroupDirective | null,\n    private readonly _errorStateMatcher: ErrorStateMatcher,\n    @Optional()\n    @Self()\n    @Inject(NX_INPUT_VALUE_ACCESSOR)\n    private readonly inputValueAccessor: NxInputValueAccessor | null,\n    private readonly _autofillMonitor: AutofillMonitor,\n  ) {\n    const id = this.id;\n    this.id = id; // invoke setter\n\n    // This will enable other directives to plugin itself as the value accessor\n    // by using the NX_INPUT_VALUE_ACCESSOR Token. Default is the given input field.\n    // TODO eliminate injected dateValueAccessor once we have intra-package support in ng-packagr\n    // See the datefield for details.\n    this._inputValueAccessor = inputValueAccessor || this._elementRef.nativeElement;\n    this._previousNativeValue = this.value;\n\n    if (this._elementRef.nativeElement.nodeName.toLowerCase() === 'textarea') {\n      this.controlType = 'textarea';\n    }\n  }\n\n  ngOnInit(): void {\n    if (this._platform.isBrowser) {\n      this._autofillMonitor\n        .monitor(this._elementRef.nativeElement)\n        .pipe(takeUntil(this._destroyed))\n        .subscribe((event) => {\n          this.autofilled = event.isAutofilled;\n          this.stateChanges.next();\n        });\n    }\n  }\n\n  /** @docs-private */\n  get elementRef(): ElementRef {\n    return this._elementRef;\n  }\n\n  _focusChanged(isFocused: boolean) {\n    if (isFocused !== this.focused) {\n      this.focused = isFocused;\n      this.stateChanges.next();\n\n      if (this._updateOn === 'blur') {\n        this._detectInputChanges();\n      }\n    }\n  }\n\n  _detectInputChanges() {\n    if (this.ngControl) {\n      // We need to re-evaluate this on every change detection cycle, because there are some\n      // error triggers that we can't subscribe to (e.g. parent form submissions). This means\n      // that whatever logic is in here has to be super lean or we risk destroying the performance.\n      this.updateErrorState();\n    }\n\n    // We need to dirty-check the native element's value, because there are some cases where\n    // we won't be notified when it changes (e.g. the consumer isn't using forms or they're\n    // updating the value using `emitEvent: false`).\n    this._dirtyCheckNativeValue();\n  }\n\n  ngOnChanges(): void {\n    this.stateChanges.next();\n  }\n\n  ngOnDestroy(): void {\n    this._destroyed.next();\n    this._destroyed.complete();\n    this.stateChanges.complete();\n\n    if (this._platform.isBrowser) {\n      this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement);\n    }\n  }\n\n  ngDoCheck(): void {\n    if (this._updateOn === 'change') {\n      this._detectInputChanges();\n    }\n  }\n\n  /** @docs-private */\n  updateErrorState() {\n    const oldState = this.errorState;\n    const parent = this._parentFormGroup || this._parentForm;\n    const control = this.ngControl ? (this.ngControl.control as FormControl) : null;\n    const newState = this._errorStateMatcher.isErrorState(control, parent);\n\n    if (newState !== oldState) {\n      this.errorState = newState;\n      this.stateChanges.next();\n    }\n  }\n\n  /**\n   * Set a list of ids that is currently describing this input\n   * (if you have hints and errors for example).\n   */\n  setDescribedByIds(ids: string[]) {\n    this._ariaDescribedby = ids.join(' ');\n  }\n\n  // allow to set a arial label value in case there\n  // is not possibility to display a proper label\n  /**\n   * Method to set the aria label.\n   * This is required if you use the input outside of a formfield\n   * where you don't have a label connected.\n   */\n  setAriaLabel(value: string) {\n    this._ariaLabelSignal.set(value);\n  }\n\n  protected _isBadInput() {\n    // The `validity` property won't be present on platform-server.\n    const validity = (this._elementRef.nativeElement as HTMLInputElement).validity;\n    return validity?.badInput;\n  }\n\n  /** @docs-private */\n  get empty(): boolean {\n    return (\n      !this._isNeverEmpty() &&\n      !this._elementRef.nativeElement.value &&\n      !this._isBadInput() &&\n      !this.autofilled\n    );\n  }\n\n  protected _isNeverEmpty() {\n    return NEVER_EMPTY.includes(this._type);\n  }\n\n  protected _isTextarea() {\n    const nativeElement = this._elementRef.nativeElement;\n    return nativeElement.nodeName ? nativeElement.nodeName.toLowerCase() === 'textarea' : false;\n  }\n\n  protected _validateType() {\n    if (INVALID_TYPES.includes(this._type)) {\n      throw new Error(`Input of type '${this._type}' is not supported`);\n    }\n  }\n\n  /** @docs-private */\n  get shouldLabelFloat(): boolean {\n    return !!(this.focused || !this.empty || (this.placeholder && this.placeholder.length > 0));\n  }\n\n  protected _dirtyCheckNativeValue() {\n    const newValue = this.value;\n\n    if (this._previousNativeValue !== newValue) {\n      this._previousNativeValue = newValue;\n      this.stateChanges.next();\n    }\n  }\n}\n","import { NxIconModule } from '@allianz/ng-aquila/icon';\nimport { FocusMonitor } from '@angular/cdk/a11y';\nimport { ENTER, SPACE } from '@angular/cdk/keycodes';\nimport {\n  AfterViewInit,\n  ChangeDetectionStrategy,\n  ChangeDetectorRef,\n  Component,\n  ElementRef,\n  Input,\n  input,\n  OnDestroy,\n} from '@angular/core';\n\nconst visibilityIcons = {\n  show: 'password-show-o',\n  hide: 'password-hide-o',\n};\n\n@Component({\n  selector: 'nx-password-toggle',\n  template: `<nx-icon aria-hidden=\"true\" [name]=\"_currentIcon\"> </nx-icon>`,\n  styleUrls: ['./password-toggle.component.scss'],\n  host: {\n    '[attr.aria-label]': 'ariaLabel',\n    '[attr.tabindex]': 'tabindex',\n    '[attr.aria-pressed]': '_pressed',\n    role: 'button',\n    '(click)': 'toggleInputType()',\n    '(keydown)': '_onKeydown($event)',\n  },\n  changeDetection: ChangeDetectionStrategy.OnPush,\n  imports: [NxIconModule],\n})\nexport class NxPasswordToggleComponent implements AfterViewInit, OnDestroy {\n  /** Input element using the toggle functionality. */\n  readonly control = input<HTMLInputElement>();\n\n  /** @docs-private */\n  _currentIcon: string = visibilityIcons.show;\n  /** @docs-private */\n  _pressed = false;\n\n  /**\n   * Sets the aria-label needed for accessibility.\n   * Notice that this `aria-label` should describe the initial action according to the status of the visibility.\n   * E.g if you have an `input[type=password]` at the beginning then the\n   * password will be hidden and the correct aria-label would be 'Show password.'\n   */\n  @Input() set ariaLabel(value: string) {\n    if (value !== this._ariaLabel) {\n      this._ariaLabel = value;\n      this._cdr.markForCheck();\n    }\n  }\n  get ariaLabel(): string {\n    return this._ariaLabel;\n  }\n  private _ariaLabel = 'Show password';\n\n  constructor(\n    private readonly _cdr: ChangeDetectorRef,\n    private readonly _elementRef: ElementRef,\n    private readonly _focusMonitor: FocusMonitor,\n  ) {}\n\n  ngAfterViewInit(): void {\n    this._focusMonitor.monitor(this._elementRef);\n\n    const control = this.control();\n    if (!control) {\n      console.warn('You need to pass an input as a control to the password toggle.');\n      return;\n    }\n    // show the right icon according to the initial type of the input\n    this._currentIcon = control.type === 'password' ? visibilityIcons.show : visibilityIcons.hide;\n  }\n\n  ngOnDestroy(): void {\n    this._focusMonitor.stopMonitoring(this._elementRef);\n  }\n\n  /** Toggles the type of the input. */\n  toggleInputType(): void {\n    const control = this.control();\n    if (control) {\n      control.type = control.type === 'password' ? 'text' : 'password';\n      this._pressed = !this._pressed;\n      this.toggleIcon();\n      this._cdr.markForCheck();\n    }\n  }\n\n  /** @docs-private */\n  toggleIcon(): void {\n    this._currentIcon =\n      this._currentIcon === visibilityIcons.show ? visibilityIcons.hide : visibilityIcons.show;\n  }\n\n  /** @docs-private */\n  _onKeydown($event: KeyboardEvent) {\n    if ($event && ($event.keyCode === ENTER || $event.keyCode === SPACE)) {\n      this.toggleInputType();\n    }\n  }\n\n  /** @docs-private */\n  get tabindex(): number | null {\n    const control = this.control();\n    if (control) {\n      return control.disabled ? -1 : 0;\n    }\n    return null;\n  }\n}\n","import { NxFormfieldModule } from '@allianz/ng-aquila/formfield';\nimport { NxIconModule } from '@allianz/ng-aquila/icon';\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\n\nimport { NxInputDirective } from './input.directive';\nimport { NxPasswordToggleComponent } from './password-toggle.component';\n\n@NgModule({\n  imports: [\n    CommonModule,\n    NxFormfieldModule,\n    NxIconModule,\n    NxInputDirective,\n    NxPasswordToggleComponent,\n  ],\n  exports: [NxFormfieldModule, NxInputDirective, NxPasswordToggleComponent],\n})\nexport class NxInputModule {}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AA2BA,MAAa,0BAA0B,IAAI,eACzC,yBAAyB;AAQ3B,MAAM,gBAAgB;CACpB;CACA;C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