@theseam/ui-common 1.0.2-beta.60 → 1.0.2-beta.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,6 @@ import * as _angular_core from '@angular/core';
4
4
  import { InjectionToken, AfterViewInit, EventEmitter } from '@angular/core';
5
5
  import * as _fortawesome_fontawesome_common_types from '@fortawesome/fontawesome-common-types';
6
6
  import { FormGroup, FormControl, ControlValueAccessor } from '@angular/forms';
7
- import { NgxFileDropEntry } from 'ngx-file-drop';
8
7
  import { ModalConfig } from '@theseam/ui-common/modal';
9
8
  import * as _angular_cdk_testing from '@angular/cdk/testing';
10
9
  import { ComponentHarness, TestElement, BaseHarnessFilters, HarnessPredicate } from '@angular/cdk/testing';
@@ -153,24 +152,13 @@ declare class TheSeamSignatureInputImgComponent implements ControlValueAccessor,
153
152
  static readonly MAX_FILE_SIZE: number;
154
153
  private readonly _container;
155
154
  private readonly _destroyRef;
156
- /**
157
- * The File is only needed for validation at selection time. Once it's been
158
- * converted to a data URL and stored in the form value, we don't need the
159
- * File again — so there's no point trying to round-trip it through
160
- * writeValue / form state. The preview renders off the current form value.
161
- */
162
155
  protected readonly _fileControl: FormControl<File | null>;
163
156
  private readonly _fileStatus;
164
157
  protected readonly _sizeError: _angular_core.Signal<string | null>;
165
- /**
166
- * Single source of truth for both the form value and the preview image.
167
- * External writes (writeValue) and successful uploads both funnel through
168
- * here, so switching tabs and coming back always shows the last committed
169
- * signature.
170
- */
171
158
  private readonly _value;
172
159
  protected readonly _previewDataUrl: _angular_core.Signal<string | null>;
173
160
  protected readonly _previewBackgroundImage: _angular_core.Signal<string | null>;
161
+ private readonly _nativeInput;
174
162
  private _onChange;
175
163
  private _onTouched;
176
164
  constructor();
@@ -180,7 +168,8 @@ declare class TheSeamSignatureInputImgComponent implements ControlValueAccessor,
180
168
  setDisabledState(isDisabled: boolean): void;
181
169
  clear(): void;
182
170
  openFileBrowse(): void;
183
- protected _onFileDropped(files: NgxFileDropEntry[]): void;
171
+ protected _onFilesDropped(files: File[]): void;
172
+ protected _onNativeChange(event: Event): void;
184
173
  private _setValue;
185
174
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TheSeamSignatureInputImgComponent, never>;
186
175
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<TheSeamSignatureInputImgComponent, "seam-signature-input-img", never, {}, {}, never, never, true, never>;