{"version":3,"file":"clr-angular-forms-file-input.mjs","sources":["../../../projects/angular/forms/file-input/file-input.helpers.ts","../../../projects/angular/forms/file-input/file-messages.ts","../../../projects/angular/forms/file-input/file-messages-template.ts","../../../projects/angular/forms/file-input/file-list.ts","../../../projects/angular/forms/file-input/file-input-container.ts","../../../projects/angular/forms/file-input/file-input.ts","../../../projects/angular/forms/file-input/file-input-validator.ts","../../../projects/angular/forms/file-input/file-input-validator-errors.ts","../../../projects/angular/forms/file-input/file-input-value-accessor.ts","../../../projects/angular/forms/file-input/file-input.module.ts","../../../projects/angular/forms/file-input/index.ts","../../../projects/angular/forms/file-input/clr-angular-forms-file-input.ts"],"sourcesContent":["/*\n * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.\n * The term \"Broadcom\" refers to Broadcom Inc. and/or its subsidiaries.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\nexport function buildFileList(files: File[]) {\n  const dataTransfer = new DataTransfer();\n\n  for (const file of files) {\n    dataTransfer.items.add(file);\n  }\n\n  return dataTransfer.files;\n}\n\nexport function selectFiles(fileInputElement: HTMLInputElement, files: File[] | FileList) {\n  fileInputElement.files = files instanceof FileList ? files : buildFileList(files);\n  fileInputElement.dispatchEvent(new Event('change', { bubbles: true, cancelable: true }));\n}\n\nexport function clearFiles(fileInputElement: HTMLInputElement) {\n  fileInputElement.value = '';\n  fileInputElement.dispatchEvent(new Event('change', { bubbles: true, cancelable: true }));\n}\n","/*\n * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.\n * The term \"Broadcom\" refers to Broadcom Inc. and/or its subsidiaries.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\nimport { Component, inject, InjectionToken } from '@angular/core';\n\nimport { ClrFileMessagesTemplateContext } from './file-messages-template';\n\nexport const CLR_FILE_MESSAGES_TEMPLATE_CONTEXT = new InjectionToken<ClrFileMessagesTemplateContext>(\n  'ClrFileMessagesTemplateContext'\n);\n\n@Component({\n  selector: 'clr-file-info',\n  template: `\n    <span class=\"clr-subtext\">\n      <ng-content></ng-content>\n    </span>\n  `,\n  host: {\n    '[class.clr-subtext-wrapper]': 'true',\n  },\n  standalone: false,\n})\nexport class ClrFileInfo {}\n\n@Component({\n  selector: 'clr-file-success',\n  // We check for success here so that consumers don't have to.\n  template: `\n    @if (context.success) {\n      <cds-icon class=\"clr-validate-icon\" shape=\"success-standard\" status=\"success\" aria-hidden=\"true\"></cds-icon>\n      <span class=\"clr-subtext\">\n        <ng-content></ng-content>\n      </span>\n    }\n  `,\n  host: {\n    '[style.display]': 'context.success ? \"flex\" : \"none\"',\n    '[class.clr-subtext-wrapper]': 'true',\n    '[class.success]': 'true',\n  },\n  standalone: false,\n})\nexport class ClrFileSuccess {\n  protected readonly context: ClrFileMessagesTemplateContext = inject(CLR_FILE_MESSAGES_TEMPLATE_CONTEXT);\n}\n\n@Component({\n  selector: 'clr-file-error',\n  // The host should have an `*ngIf` or `@if` that checks for the relevant error.\n  template: `\n    <cds-icon class=\"clr-validate-icon\" shape=\"error-standard\" status=\"danger\" aria-hidden=\"true\"></cds-icon>\n    <span class=\"clr-subtext\">\n      <ng-content></ng-content>\n    </span>\n  `,\n  host: {\n    '[class.clr-subtext-wrapper]': 'true',\n    '[class.error]': 'true',\n  },\n  standalone: false,\n})\nexport class ClrFileError {}\n","/*\n * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.\n * The term \"Broadcom\" refers to Broadcom Inc. and/or its subsidiaries.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\nimport { Directive, inject, TemplateRef } from '@angular/core';\n\nimport { ClrFileAcceptError, ClrFileMaxFileSizeError, ClrFileMinFileSizeError } from './file-input-validator-errors';\n\nexport interface ClrSingleFileValidationErrors {\n  accept?: ClrFileAcceptError;\n  minFileSize?: ClrFileMinFileSizeError;\n  maxFileSize?: ClrFileMaxFileSizeError;\n}\n\nexport interface ClrFileMessagesTemplateContext {\n  $implicit: File;\n  success: boolean;\n  errors: ClrSingleFileValidationErrors;\n}\n\n@Directive({\n  selector: 'ng-template[clr-file-messages]',\n  standalone: false,\n})\nexport class ClrFileMessagesTemplate {\n  readonly templateRef: TemplateRef<ClrFileMessagesTemplateContext> = inject(TemplateRef);\n\n  static ngTemplateContextGuard(\n    directive: ClrFileMessagesTemplate,\n    context: unknown\n  ): context is ClrFileMessagesTemplateContext {\n    return true;\n  }\n}\n","/*\n * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.\n * The term \"Broadcom\" refers to Broadcom Inc. and/or its subsidiaries.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\nimport { Component, ContentChild, inject, Injector } from '@angular/core';\nimport { NgControlService } from '@clr/angular/forms/common';\nimport { ClrCommonStringsService } from '@clr/angular/utils';\n\nimport { ClrFileInputContainer } from './file-input-container';\nimport { ClrFileListValidationErrors } from './file-input-validator-errors';\nimport { selectFiles } from './file-input.helpers';\nimport { CLR_FILE_MESSAGES_TEMPLATE_CONTEXT } from './file-messages';\nimport {\n  ClrFileMessagesTemplate,\n  ClrFileMessagesTemplateContext,\n  ClrSingleFileValidationErrors,\n} from './file-messages-template';\n\n@Component({\n  selector: 'clr-file-list',\n  template: `\n    @for (file of files; track file) {\n      @if (createFileMessagesTemplateContext(file); as fileMessagesTemplateContext) {\n        <div\n          role=\"listitem\"\n          class=\"clr-file-list-item\"\n          [ngClass]=\"{\n            'clr-error': !fileMessagesTemplateContext.success,\n            'clr-success': fileMessagesTemplateContext.success,\n          }\"\n        >\n          <div class=\"clr-file-label-and-status-icon\">\n            <span class=\"label clr-file-label\">\n              {{ file.name }}\n              <button\n                class=\"btn btn-sm btn-link-neutral btn-icon clr-file-clear-button\"\n                [attr.aria-label]=\"getClearFileLabel(file.name)\"\n                (click)=\"clearFile(file)\"\n              >\n                <cds-icon shape=\"times\"></cds-icon>\n              </button>\n            </span>\n          </div>\n          @if (fileMessagesTemplate) {\n            <ng-container\n              [ngTemplateOutlet]=\"fileMessagesTemplate.templateRef\"\n              [ngTemplateOutletContext]=\"fileMessagesTemplateContext\"\n              [ngTemplateOutletInjector]=\"injectorCache.get(file)\"\n            ></ng-container>\n          }\n        </div>\n      }\n    }\n  `,\n  host: {\n    '[attr.role]': '\"list\"',\n    '[class.clr-file-list]': 'true',\n  },\n  standalone: false,\n})\nexport class ClrFileList {\n  @ContentChild(ClrFileMessagesTemplate) protected readonly fileMessagesTemplate: ClrFileMessagesTemplate;\n\n  protected injectorCache = new Map<File, Injector>();\n  private contextCache = new Map<File, ClrFileMessagesTemplateContext>();\n\n  private readonly injector = inject(Injector);\n  private readonly commonStrings = inject(ClrCommonStringsService);\n  private readonly ngControlService = inject(NgControlService, { optional: true });\n  private readonly fileInputContainer = inject(ClrFileInputContainer, { optional: true });\n\n  constructor() {\n    if (!this.ngControlService || !this.fileInputContainer) {\n      throw new Error('The clr-file-list component can only be used within a clr-file-input-container.');\n    }\n  }\n\n  protected get files() {\n    if (!this.fileInputContainer.fileInput) {\n      return [];\n    }\n\n    const fileInputElement = this.fileInputContainer.fileInput.elementRef.nativeElement;\n\n    return Array.from(fileInputElement.files).sort((a, b) => a.name.localeCompare(b.name));\n  }\n\n  protected getClearFileLabel(filename: string) {\n    return this.commonStrings.parse(this.commonStrings.keys.clearFile, {\n      FILE: filename,\n    });\n  }\n\n  protected clearFile(fileToRemove: File) {\n    if (!this.fileInputContainer.fileInput) {\n      return;\n    }\n\n    const fileInputElement = this.fileInputContainer.fileInput.elementRef.nativeElement;\n    const files = Array.from(fileInputElement.files);\n    const newFiles = files.filter(file => file !== fileToRemove);\n\n    selectFiles(fileInputElement, newFiles);\n    this.fileInputContainer.focusBrowseButton();\n  }\n\n  protected createFileMessagesTemplateContext(file: File): ClrFileMessagesTemplateContext {\n    const fileInputErrors: ClrFileListValidationErrors = this.ngControlService.controls[0].errors || {};\n\n    const errors: ClrSingleFileValidationErrors = {\n      accept: fileInputErrors.accept?.find(error => error.name === file.name),\n      minFileSize: fileInputErrors.minFileSize?.find(error => error.name === file.name),\n      maxFileSize: fileInputErrors.maxFileSize?.find(error => error.name === file.name),\n    };\n\n    const success = Object.values(errors).every(error => !error);\n\n    const cached = this.contextCache.get(file);\n    if (cached && cached.success === success && this.errorsEqual(cached.errors, errors)) {\n      return cached;\n    }\n\n    // new context is made and old reference replaced\n    const context: ClrFileMessagesTemplateContext = { $implicit: file, success, errors };\n    this.contextCache.set(file, context);\n\n    // new injector is made and old reference replaced\n    const injector = this.createFileMessagesTemplateInjector(context);\n    this.injectorCache.set(file, injector);\n\n    return context;\n  }\n\n  private createFileMessagesTemplateInjector(fileMessagesTemplateContext: ClrFileMessagesTemplateContext) {\n    return Injector.create({\n      parent: this.injector,\n      providers: [{ provide: CLR_FILE_MESSAGES_TEMPLATE_CONTEXT, useValue: fileMessagesTemplateContext }],\n    });\n  }\n\n  private errorsEqual(a: ClrSingleFileValidationErrors, b: ClrSingleFileValidationErrors): boolean {\n    return a.accept === b.accept && a.minFileSize === b.minFileSize && a.maxFileSize === b.maxFileSize;\n  }\n}\n","/*\n * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.\n * The term \"Broadcom\" refers to Broadcom Inc. and/or its subsidiaries.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\nimport { Component, ContentChild, ElementRef, forwardRef, inject, Input, ViewChild } from '@angular/core';\nimport {\n  ClrAbstractContainer,\n  ControlClassService,\n  ControlIdService,\n  NgControlService,\n} from '@clr/angular/forms/common';\nimport { ClrCommonStringsService } from '@clr/angular/utils';\n\nimport { ClrFileInput } from './file-input';\nimport { selectFiles } from './file-input.helpers';\nimport { ClrFileList } from './file-list';\nimport { ClrFileError, ClrFileSuccess } from './file-messages';\n\n@Component({\n  selector: 'clr-file-input-container',\n  template: `\n    <ng-content select=\"label\"></ng-content>\n    @if (!label && addGrid()) {\n      <label></label>\n    }\n    <div class=\"clr-control-container\" [ngClass]=\"controlClass()\">\n      <div class=\"clr-file-input-wrapper\">\n        <ng-content select=\"[clrFileInput]\"></ng-content>\n\n        <!-- file input to handle adding new files to selection when file list is present (prevent replacing selected files on the main file input) -->\n        @if (fileList) {\n          <input\n            #fileListFileInput\n            type=\"file\"\n            class=\"clr-file-input\"\n            tabindex=\"-1\"\n            aria-hidden=\"true\"\n            [accept]=\"accept\"\n            [multiple]=\"multiple\"\n            [disabled]=\"disabled\"\n            (change)=\"addFilesToSelection(fileListFileInput.files)\"\n          />\n        }\n\n        <button\n          #browseButton\n          type=\"button\"\n          class=\"btn btn-sm clr-file-input-browse-button\"\n          [attr.aria-describedby]=\"browseButtonDescribedBy\"\n          [disabled]=\"disabled\"\n          (click)=\"browse()\"\n        >\n          <cds-icon shape=\"folder-open\"></cds-icon>\n          <span class=\"clr-file-input-browse-button-text\">{{ browseButtonText }}</span>\n        </button>\n        @if (!fileList && fileInput?.selection?.fileCount) {\n          <button\n            type=\"button\"\n            class=\"btn btn-sm clr-file-input-clear-button\"\n            [attr.aria-label]=\"fileInput?.selection?.clearFilesButtonLabel\"\n            (click)=\"clearSelectedFiles()\"\n          >\n            <cds-icon shape=\"times\" status=\"neutral\"></cds-icon>\n          </button>\n        }\n      </div>\n      @if (showHelper) {\n        <ng-content select=\"clr-control-helper\"></ng-content>\n      }\n      @if (showInvalid) {\n        <ng-content select=\"clr-control-error\"></ng-content>\n      }\n      @if (showValid) {\n        <ng-content select=\"clr-control-success\"></ng-content>\n      }\n\n      <!-- If this is present, this file input becomes an \"advanced\" file input. -->\n      <ng-container>\n        <div class=\"clr-file-list-break\"></div>\n        <ng-content select=\"clr-file-list\"></ng-content>\n      </ng-container>\n    </div>\n  `,\n  host: {\n    '[class.clr-form-control]': 'true',\n    '[class.clr-form-control-disabled]': 'disabled',\n    '[class.clr-row]': 'addGrid()',\n  },\n  providers: [NgControlService, ControlIdService, ControlClassService],\n  standalone: false,\n})\nexport class ClrFileInputContainer extends ClrAbstractContainer {\n  @Input('clrButtonLabel') customButtonLabel: string;\n\n  @ContentChild(forwardRef(() => ClrFileInput)) readonly fileInput: ClrFileInput;\n  @ContentChild(forwardRef(() => ClrFileList)) protected readonly fileList: ClrFileList;\n\n  @ViewChild('browseButton') private browseButtonElementRef: ElementRef<HTMLButtonElement>;\n  @ViewChild('fileListFileInput') private fileListFileInputElementRef: ElementRef<HTMLInputElement>;\n\n  // These are for the \"message present\" override properties\n  @ContentChild(ClrFileSuccess) private readonly fileSuccessComponent: ClrFileSuccess;\n  @ContentChild(ClrFileError) private readonly fileErrorComponent: ClrFileError;\n\n  private readonly commonStrings = inject(ClrCommonStringsService);\n\n  protected get accept() {\n    return this.fileInput.elementRef.nativeElement.accept;\n  }\n\n  protected get multiple() {\n    return this.fileInput.elementRef.nativeElement.multiple;\n  }\n\n  protected get disabled() {\n    return this.control ? this.control.disabled : this.fileInput.elementRef.nativeElement.disabled;\n  }\n\n  protected get browseButtonText() {\n    const selectionButtonLabel = this.fileList ? undefined : this.fileInput?.selection?.buttonLabel;\n\n    return selectionButtonLabel || this.customButtonLabel || this.commonStrings.keys.browse;\n  }\n\n  protected get browseButtonDescribedBy() {\n    return `${this.label?.forAttr} ${this.fileInput.elementRef.nativeElement.getAttribute('aria-describedby')}`;\n  }\n\n  protected override get successMessagePresent() {\n    return super.successMessagePresent || !!this.fileSuccessComponent;\n  }\n\n  protected override get errorMessagePresent() {\n    return super.errorMessagePresent || !!this.fileErrorComponent;\n  }\n\n  focusBrowseButton() {\n    this.browseButtonElementRef.nativeElement.focus();\n  }\n\n  protected browse() {\n    const fileInputElementRef =\n      this.fileList && this.multiple ? this.fileListFileInputElementRef : this.fileInput.elementRef;\n\n    fileInputElementRef.nativeElement.click();\n  }\n\n  protected clearSelectedFiles() {\n    this.fileInput.elementRef.nativeElement.value = '';\n    this.fileInput.elementRef.nativeElement.dispatchEvent(new Event('change', { bubbles: true, cancelable: true }));\n\n    this.focusBrowseButton();\n  }\n\n  protected addFilesToSelection(newFiles: FileList) {\n    if (!newFiles.length) {\n      return;\n    }\n\n    // start with new files\n    const mergedFiles = [...newFiles];\n\n    // add existing files if a new file doesn't have the same name\n    for (const existingFile of this.fileInput.elementRef.nativeElement.files) {\n      if (!mergedFiles.some(file => file.name === existingFile.name)) {\n        mergedFiles.push(existingFile);\n      }\n    }\n\n    // update file selection\n    selectFiles(this.fileInput.elementRef.nativeElement, mergedFiles);\n  }\n}\n","/*\n * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.\n * The term \"Broadcom\" refers to Broadcom Inc. and/or its subsidiaries.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\nimport {\n  Directive,\n  ElementRef,\n  HostListener,\n  Injector,\n  Optional,\n  Renderer2,\n  Self,\n  ViewContainerRef,\n} from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { WrappedFormControl } from '@clr/angular/forms/common';\nimport { ClrCommonStringsService } from '@clr/angular/utils';\n\nimport { ClrFileInputContainer } from './file-input-container';\n\nexport interface ClrFileInputSelection {\n  fileCount: number;\n  buttonLabel: string;\n  clearFilesButtonLabel: string;\n}\n\n@Directive({\n  selector: 'input[type=\"file\"][clrFileInput]',\n  host: {\n    tabindex: '-1', // Remove the hidden file `input` element from the tab order because the browse `button` replaces it.\n    'aria-hidden': 'true', // Remove the hidden file `input` element from the accessibility tree because the browse `button` replaces it.\n    '[class.clr-file-input]': 'true',\n  },\n  standalone: false,\n})\nexport class ClrFileInput extends WrappedFormControl<ClrFileInputContainer> {\n  selection: ClrFileInputSelection = undefined;\n\n  constructor(\n    injector: Injector,\n    renderer: Renderer2,\n    viewContainerRef: ViewContainerRef,\n    readonly elementRef: ElementRef<HTMLInputElement>,\n    @Self() @Optional() private readonly control: NgControl,\n    private readonly commonStrings: ClrCommonStringsService\n  ) {\n    super(viewContainerRef, ClrFileInputContainer, injector, control, renderer, elementRef);\n  }\n\n  @HostListener('change')\n  private handleChange() {\n    this.updateSelection();\n  }\n\n  private updateSelection() {\n    const files = this.elementRef.nativeElement.files;\n    let selectionButtonLabel: string;\n    let clearFilesButtonLabel: string;\n\n    if (files?.length === 1) {\n      const filename = files[0].name;\n\n      selectionButtonLabel = filename;\n\n      clearFilesButtonLabel = this.commonStrings.parse(this.commonStrings.keys.clearFile, {\n        FILE: filename,\n      });\n    } else if (files?.length > 1) {\n      const fileCount = files.length.toString();\n\n      selectionButtonLabel = this.commonStrings.parse(this.commonStrings.keys.fileCount, {\n        COUNT: fileCount,\n      });\n\n      clearFilesButtonLabel = this.commonStrings.parse(this.commonStrings.keys.clearFiles, {\n        COUNT: fileCount,\n      });\n    }\n\n    this.selection = {\n      fileCount: files.length,\n      buttonLabel: selectionButtonLabel,\n      clearFilesButtonLabel,\n    };\n  }\n}\n","/*\n * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.\n * The term \"Broadcom\" refers to Broadcom Inc. and/or its subsidiaries.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\nimport { Directive, ElementRef, Input } from '@angular/core';\nimport { AbstractControl, NG_VALIDATORS, ValidationErrors, Validator } from '@angular/forms';\n\nimport { ClrFileListValidationErrors } from './file-input-validator-errors';\n\n@Directive({\n  selector: 'input[type=\"file\"][clrFileInput]',\n  providers: [{ provide: NG_VALIDATORS, useExisting: ClrFileInputValidator, multi: true }],\n  standalone: false,\n})\nexport class ClrFileInputValidator implements Validator {\n  @Input('clrMinFileSize') minFileSize: number;\n  @Input('clrMaxFileSize') maxFileSize: number;\n\n  constructor(private readonly elementRef: ElementRef<HTMLInputElement>) {}\n\n  validate(control: AbstractControl<FileList>): ValidationErrors {\n    const files = control.value;\n    const fileInputElement = this.elementRef.nativeElement;\n\n    const errors: ClrFileListValidationErrors = {};\n\n    // required validation (native attribute)\n    if (fileInputElement.required && files?.length === 0) {\n      errors.required = true;\n    }\n\n    const accept = fileInputElement.accept ? fileInputElement.accept.split(',').map(type => type.trim()) : null;\n\n    if (files?.length > 0 && (accept || this.minFileSize || this.maxFileSize)) {\n      for (let i = 0; i < files.length; i++) {\n        const file = files.item(i);\n\n        // accept validation (native attribute)\n        if (accept && accept.length) {\n          if (!this.validateAccept(file, accept)) {\n            errors.accept = errors.accept || [];\n            errors.accept.push({\n              name: file.name,\n              accept,\n              type: file.type || '',\n              extension: this.getSuffixByDepth(file.name, 2), // last up to 2 parts for reporting\n            });\n          }\n        }\n\n        // min file validation (custom input)\n        if (this.minFileSize && file.size < this.minFileSize) {\n          errors.minFileSize = errors.minFileSize || [];\n          errors.minFileSize.push({ name: file.name, minFileSize: this.minFileSize, actualFileSize: file.size });\n        }\n\n        // max file validation (custom input)\n        if (this.maxFileSize && file.size > this.maxFileSize) {\n          errors.maxFileSize = errors.maxFileSize || [];\n          errors.maxFileSize.push({ name: file.name, maxFileSize: this.maxFileSize, actualFileSize: file.size });\n        }\n      }\n    }\n\n    return Object.keys(errors).length ? errors : null;\n  }\n\n  private getSuffixByDepth(filename: string, depth: number): string {\n    const match = filename.toLowerCase().match(new RegExp(`(\\\\.[^.]+){1,${depth}}$`, 'i'));\n    return match ? match[0] : '';\n  }\n\n  private validateAccept(file: File, acceptList: string[]): boolean {\n    const name = file.name.toLowerCase();\n    const type = (file.type || '').toLowerCase();\n\n    for (const entryRaw of acceptList) {\n      const entry = entryRaw.trim().toLowerCase();\n      if (!entry) {\n        continue;\n      }\n\n      // Extension check\n      if (entry.startsWith('.')) {\n        const depth = (entry.match(/\\./g) || []).length;\n        if (this.getSuffixByDepth(name, depth) === entry) {\n          return true;\n        }\n        continue;\n      }\n\n      // MIME check\n      if (entry.endsWith('/*')) {\n        const prefix = entry.slice(0, entry.length - 1); // keep trailing slash\n        if (type.startsWith(prefix)) {\n          return true;\n        }\n      } else if (entry.includes('/') && type === entry) {\n        return true;\n      }\n    }\n\n    return false;\n  }\n}\n","/*\n * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.\n * The term \"Broadcom\" refers to Broadcom Inc. and/or its subsidiaries.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\nexport interface ClrFileListValidationErrors {\n  required?: boolean;\n  accept?: ClrFileAcceptError[];\n  minFileSize?: ClrFileMinFileSizeError[];\n  maxFileSize?: ClrFileMaxFileSizeError[];\n}\n\nexport interface ClrFileAcceptError {\n  /**\n   * The name of the selected file.\n   */\n  name: string;\n\n  /**\n   * The file types that are accepted by the file input.\n   */\n  accept: string[];\n\n  /**\n   * The actual MIME type of the selected file.\n   */\n  type: string;\n\n  /**\n   * The actual extension of the selected file.\n   */\n  extension: string;\n}\n\nexport interface ClrFileMinFileSizeError {\n  /**\n   * The name of the selected file.\n   */\n  name: string;\n\n  /**\n   * The minimum file size that is accepted by the file input.\n   */\n  minFileSize: number;\n\n  /**\n   * The actual size of the selected file.\n   */\n  actualFileSize: number;\n}\n\nexport interface ClrFileMaxFileSizeError {\n  /**\n   * The name of the selected file.\n   */\n  name: string;\n\n  /**\n   * The maximum file size that is accepted by the file input.\n   */\n  maxFileSize: number;\n\n  /**\n   * The actual size of the selected file.\n   */\n  actualFileSize: number;\n}\n","/*\n * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.\n * The term \"Broadcom\" refers to Broadcom Inc. and/or its subsidiaries.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\nimport { Directive, ElementRef, HostListener } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\n\nimport { clearFiles, selectFiles } from './file-input.helpers';\n\n@Directive({\n  selector: 'input[type=\"file\"][clrFileInput]',\n  providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: ClrFileInputValueAccessor, multi: true }],\n  standalone: false,\n})\nexport class ClrFileInputValueAccessor implements ControlValueAccessor {\n  constructor(private readonly elementRef: ElementRef<HTMLInputElement>) {}\n\n  writeValue(value: FileList) {\n    if (value !== undefined && value !== null && !(value instanceof FileList)) {\n      throw new Error('The value of a file input control must be a FileList.');\n    }\n\n    if (value) {\n      selectFiles(this.elementRef.nativeElement, value);\n    } else if (this.elementRef.nativeElement.files.length) {\n      clearFiles(this.elementRef.nativeElement);\n    }\n  }\n\n  registerOnChange(fn: (value: FileList) => void) {\n    this.onChange = fn;\n  }\n\n  registerOnTouched(fn: () => void) {\n    this.onTouched = fn;\n  }\n\n  setDisabledState(isDisabled: boolean): void {\n    this.elementRef.nativeElement.disabled = isDisabled;\n  }\n\n  @HostListener('change')\n  private handleChange() {\n    this.onTouched();\n    this.onChange(this.elementRef.nativeElement.files);\n  }\n\n  private onChange = (_value: FileList) => {};\n\n  private onTouched = () => {};\n}\n","/*\n * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.\n * The term \"Broadcom\" refers to Broadcom Inc. and/or its subsidiaries.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\nimport { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ClrCommonFormsModule } from '@clr/angular/forms/common';\nimport { ClarityIcons, ClrIcon, errorStandardIcon, folderOpenIcon, successStandardIcon } from '@clr/angular/icon';\n\nimport { ClrFileInput } from './file-input';\nimport { ClrFileInputContainer } from './file-input-container';\nimport { ClrFileInputValidator } from './file-input-validator';\nimport { ClrFileInputValueAccessor } from './file-input-value-accessor';\nimport { ClrFileList } from './file-list';\nimport { ClrFileError, ClrFileInfo, ClrFileSuccess } from './file-messages';\nimport { ClrFileMessagesTemplate } from './file-messages-template';\n\n@NgModule({\n  imports: [CommonModule, ClrIcon, ClrCommonFormsModule],\n  declarations: [\n    ClrFileInput,\n    ClrFileInputContainer,\n    ClrFileInputValidator,\n    ClrFileInputValueAccessor,\n    ClrFileList,\n    ClrFileMessagesTemplate,\n    ClrFileInfo,\n    ClrFileSuccess,\n    ClrFileError,\n  ],\n  exports: [\n    ClrCommonFormsModule,\n    ClrFileInput,\n    ClrFileInputContainer,\n    ClrFileInputValidator,\n    ClrFileInputValueAccessor,\n    ClrFileList,\n    ClrFileMessagesTemplate,\n    ClrFileInfo,\n    ClrFileSuccess,\n    ClrFileError,\n  ],\n})\nexport class ClrFileInputModule {\n  constructor() {\n    ClarityIcons.addIcons(folderOpenIcon, successStandardIcon, errorStandardIcon);\n  }\n}\n","/*\n * Copyright (c) 2016-2026 Broadcom. All Rights Reserved.\n * The term \"Broadcom\" refers to Broadcom Inc. and/or its subsidiaries.\n * This software is released under MIT license.\n * The full license information can be found in LICENSE in the root directory of this project.\n */\n\nexport * from './file-input';\nexport * from './file-input-validator';\nexport * from './file-input-validator-errors';\nexport * from './file-input-value-accessor';\nexport * from './file-input-container';\nexport * from './file-list';\nexport * from './file-messages-template';\nexport * from './file-messages';\nexport * from './file-input.module';\nexport * from './file-input.helpers';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2"],"mappings":";;;;;;;;;;;;;AAAA;;;;;AAKG;AAEG,SAAU,aAAa,CAAC,KAAa,EAAA;AACzC,IAAA,MAAM,YAAY,GAAG,IAAI,YAAY,EAAE;AAEvC,IAAA,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;AACxB,QAAA,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC;IAC9B;IAEA,OAAO,YAAY,CAAC,KAAK;AAC3B;AAEM,SAAU,WAAW,CAAC,gBAAkC,EAAE,KAAwB,EAAA;AACtF,IAAA,gBAAgB,CAAC,KAAK,GAAG,KAAK,YAAY,QAAQ,GAAG,KAAK,GAAG,aAAa,CAAC,KAAK,CAAC;AACjF,IAAA,gBAAgB,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;AAC1F;AAEM,SAAU,UAAU,CAAC,gBAAkC,EAAA;AAC3D,IAAA,gBAAgB,CAAC,KAAK,GAAG,EAAE;AAC3B,IAAA,gBAAgB,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC;AA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