structra-ui 0.1.95 → 0.1.97

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "structra-ui",
3
- "version": "0.1.95",
3
+ "version": "0.1.97",
4
4
  "description": "Biblioteca de componentes Angular da StructraLab (UI reutilizável).",
5
5
  "homepage": "https://structralab.com/",
6
6
  "license": "MIT",
@@ -163,6 +163,7 @@ declare abstract class BaseFieldDirective<T> implements ControlValueAccessor {
163
163
  protected readonly cdr: ChangeDetectorRef;
164
164
  protected readonly injector: Injector;
165
165
  protected readonly destroyRef: DestroyRef;
166
+ private readonly hostElementRef;
166
167
  private formGroupDir;
167
168
  private ngFormDir;
168
169
  /** Identificador estável para a11y quando `id` não é informado */
@@ -208,6 +209,9 @@ declare abstract class BaseFieldDirective<T> implements ControlValueAccessor {
208
209
  private onChange;
209
210
  private onTouched;
210
211
  get controlId(): string;
212
+ /** Útil para inspeção no DOM sem colidir com `id` do input interno. */
213
+ get hostDataControlId(): string;
214
+ protected get autoIdPrefix(): string;
211
215
  /** Valor do atributo HTML `autocomplete` derivado de {@link autocomplete}. */
212
216
  get autocompleteAttr(): 'on' | 'off';
213
217
  /**
@@ -464,6 +468,9 @@ declare class TextFieldComponent extends NgControlFieldDirective<string | null>
464
468
  }
465
469
 
466
470
  declare class PasswordFieldComponent extends NgControlFieldDirective<string | null> implements OnInit {
471
+ /** Password já nasce com ícone de chave no prefixo; pode ser sobrescrito via `prefixIcon`. */
472
+ showPrefixIcon: boolean;
473
+ prefixIcon: string;
467
474
  get hostInvalidClass(): boolean;
468
475
  /** Por defeito `false`: o botão de limpar compete com o toggle de visibilidade. */
469
476
  clearable: boolean;
@@ -489,7 +496,8 @@ declare class PasswordFieldComponent extends NgControlFieldDirective<string | nu
489
496
  onClear(): void;
490
497
  togglePasswordVisible(ev: Event): void;
491
498
  static ɵfac: i0.ɵɵFactoryDeclaration<PasswordFieldComponent, never>;
492
- static ɵcmp: i0.ɵɵComponentDeclaration<PasswordFieldComponent, "app-password-field", never, { "clearable": { "alias": "clearable"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "autoComplete": { "alias": "autoComplete"; "required": false; }; }, {}, never, ["[appFieldPrefix]"], true, never>;
499
+ static ɵcmp: i0.ɵɵComponentDeclaration<PasswordFieldComponent, "app-password-field", never, { "showPrefixIcon": { "alias": "showPrefixIcon"; "required": false; }; "prefixIcon": { "alias": "prefixIcon"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "autoComplete": { "alias": "autoComplete"; "required": false; }; }, {}, never, ["[appFieldPrefix]"], true, never>;
500
+ static ngAcceptInputType_showPrefixIcon: unknown;
493
501
  static ngAcceptInputType_clearable: unknown;
494
502
  static ngAcceptInputType_maxLength: unknown;
495
503
  }
@@ -1285,6 +1293,7 @@ declare class FileUploadFieldComponent implements OnChanges, OnDestroy {
1285
1293
  private readonly cdr;
1286
1294
  private readonly confirmDialog;
1287
1295
  label?: string | undefined;
1296
+ id: string;
1288
1297
  hint?: string | undefined;
1289
1298
  accept?: string | undefined;
1290
1299
  /** Se definido, mostra-se no drop zone em vez do texto formatado a partir de `accept`. */
@@ -1318,7 +1327,9 @@ declare class FileUploadFieldComponent implements OnChanges, OnDestroy {
1318
1327
  */
1319
1328
  readonly fileItemClick: EventEmitter<File>;
1320
1329
  private fileInputRef?;
1321
- readonly fieldId: string;
1330
+ private readonly autoId;
1331
+ get fieldId(): string;
1332
+ get hostDataControlId(): string;
1322
1333
  isDragging: boolean;
1323
1334
  hasHover: boolean;
1324
1335
  private internalError;
@@ -1369,7 +1380,7 @@ declare class FileUploadFieldComponent implements OnChanges, OnDestroy {
1369
1380
  private syncFilePreviewObjectUrls;
1370
1381
  private releaseAllFilePreviewObjectUrls;
1371
1382
  static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadFieldComponent, never>;
1372
- static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadFieldComponent, "app-file-upload-field", never, { "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "acceptLabel": { "alias": "acceptLabel"; "required": false; }; "maxSizeMb": { "alias": "maxSizeMb"; "required": false; }; "maxFiles": { "alias": "maxFiles"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "value": { "alias": "value"; "required": false; }; "fileItemRowClickable": { "alias": "fileItemRowClickable"; "required": false; }; "showFileDownload": { "alias": "showFileDownload"; "required": false; }; }, { "valueChange": "valueChange"; "fileRejected": "fileRejected"; "fileItemClick": "fileItemClick"; }, never, never, true, never>;
1383
+ static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadFieldComponent, "app-file-upload-field", never, { "label": { "alias": "label"; "required": false; }; "id": { "alias": "id"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "acceptLabel": { "alias": "acceptLabel"; "required": false; }; "maxSizeMb": { "alias": "maxSizeMb"; "required": false; }; "maxFiles": { "alias": "maxFiles"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "value": { "alias": "value"; "required": false; }; "fileItemRowClickable": { "alias": "fileItemRowClickable"; "required": false; }; "showFileDownload": { "alias": "showFileDownload"; "required": false; }; }, { "valueChange": "valueChange"; "fileRejected": "fileRejected"; "fileItemClick": "fileItemClick"; }, never, never, true, never>;
1373
1384
  static ngAcceptInputType_maxSizeMb: unknown;
1374
1385
  static ngAcceptInputType_maxFiles: unknown;
1375
1386
  static ngAcceptInputType_disabled: unknown;
@@ -1820,13 +1831,13 @@ declare class FormSectionComponent {
1820
1831
  titulo: string;
1821
1832
  subtitulo: string;
1822
1833
  dense: boolean;
1823
- withDivider: boolean;
1834
+ divider: boolean;
1824
1835
  get hostClass(): string;
1825
1836
  get showHeader(): boolean;
1826
1837
  static ɵfac: i0.ɵɵFactoryDeclaration<FormSectionComponent, never>;
1827
- static ɵcmp: i0.ɵɵComponentDeclaration<FormSectionComponent, "app-form-section", never, { "titulo": { "alias": "titulo"; "required": true; }; "subtitulo": { "alias": "subtitulo"; "required": false; }; "dense": { "alias": "dense"; "required": false; }; "withDivider": { "alias": "withDivider"; "required": false; }; }, {}, never, ["*"], true, never>;
1838
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormSectionComponent, "app-form-section", never, { "titulo": { "alias": "titulo"; "required": true; }; "subtitulo": { "alias": "subtitulo"; "required": false; }; "dense": { "alias": "dense"; "required": false; }; "divider": { "alias": "divider"; "required": false; }; }, {}, never, ["*"], true, never>;
1828
1839
  static ngAcceptInputType_dense: unknown;
1829
- static ngAcceptInputType_withDivider: unknown;
1840
+ static ngAcceptInputType_divider: unknown;
1830
1841
  }
1831
1842
 
1832
1843
  /** Variante visual do resumo de validação. */