ngx-eiffage-material 0.1.4 → 0.1.6
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/index.d.ts
CHANGED
|
@@ -710,6 +710,10 @@ declare class NgxBasicSelect<T> implements ControlValueAccessor {
|
|
|
710
710
|
* y para no fallar cuando el componente se usa sin formulario.
|
|
711
711
|
*/
|
|
712
712
|
private readonly _ngControl;
|
|
713
|
+
/** Formulario contenedor, para saber si ya se intentó enviar (reactive o template-driven). */
|
|
714
|
+
private readonly _parentFormGroup;
|
|
715
|
+
private readonly _parentForm;
|
|
716
|
+
private readonly _changeDetectorRef;
|
|
713
717
|
readonly label: _angular_core.InputSignal<string>;
|
|
714
718
|
readonly options: _angular_core.InputSignal<T[]>;
|
|
715
719
|
readonly basicSelectConfig: _angular_core.InputSignal<BasicSelectConfig<T>>;
|
|
@@ -759,7 +763,13 @@ declare class NgxBasicSelect<T> implements ControlValueAccessor {
|
|
|
759
763
|
protected readonly showNoOptionsMessage: _angular_core.Signal<boolean>;
|
|
760
764
|
/** Mensaje aria-live con el recuento de resultados al filtrar. */
|
|
761
765
|
protected readonly searchAnnouncement: _angular_core.Signal<string>;
|
|
762
|
-
/**
|
|
766
|
+
/**
|
|
767
|
+
* ErrorStateMatcher que refleja el estado del control del formulario.
|
|
768
|
+
* Replica el criterio por defecto de Material: se muestra el error si el
|
|
769
|
+
* control es inválido y además ha sido tocado O ya se ha enviado el
|
|
770
|
+
* formulario. Sin la parte de `submitted`, al pulsar "Guardar" los campos
|
|
771
|
+
* obligatorios que el usuario no llegó a tocar no se marcaban en rojo.
|
|
772
|
+
*/
|
|
763
773
|
protected readonly errorStateMatcher: ErrorStateMatcher;
|
|
764
774
|
/**
|
|
765
775
|
* Obligatorio si el control del formulario tiene el validador `required`.
|
|
@@ -767,6 +777,8 @@ declare class NgxBasicSelect<T> implements ControlValueAccessor {
|
|
|
767
777
|
* asterisco, igual que hace Material con un `<input matInput>`.
|
|
768
778
|
*/
|
|
769
779
|
protected isRequired(): boolean;
|
|
780
|
+
/** true cuando el formulario contenedor ya ha intentado enviarse. */
|
|
781
|
+
private _isParentFormSubmitted;
|
|
770
782
|
constructor();
|
|
771
783
|
writeValue(value: any): void;
|
|
772
784
|
registerOnChange(fn: (value: any) => void): void;
|
|
@@ -1101,6 +1113,10 @@ declare class NgxPaginatedSelect<T, U extends PaginatedFilter<T>> implements Con
|
|
|
1101
1113
|
private readonly _bottomSheet;
|
|
1102
1114
|
/** Se auto-registra como CVA (self/optional para leer validación y no fallar sin form). */
|
|
1103
1115
|
private readonly _ngControl;
|
|
1116
|
+
/** Formulario contenedor, para saber si ya se intento enviar (reactive o template-driven). */
|
|
1117
|
+
private readonly _parentFormGroup;
|
|
1118
|
+
private readonly _parentForm;
|
|
1119
|
+
private readonly _changeDetectorRef;
|
|
1104
1120
|
readonly intl: NgxTablesIntl;
|
|
1105
1121
|
/** Label that floats on the form field */
|
|
1106
1122
|
readonly label: _angular_core.InputSignal<string>;
|
|
@@ -1180,6 +1196,8 @@ declare class NgxPaginatedSelect<T, U extends PaginatedFilter<T>> implements Con
|
|
|
1180
1196
|
protected readonly remainingChipsCount: _angular_core.Signal<number>;
|
|
1181
1197
|
/** ErrorStateMatcher que refleja el estado del control del formulario. */
|
|
1182
1198
|
protected readonly errorStateMatcher: ErrorStateMatcher;
|
|
1199
|
+
/** true cuando el formulario contenedor ya ha intentado enviarse. */
|
|
1200
|
+
private _isParentFormSubmitted;
|
|
1183
1201
|
/**
|
|
1184
1202
|
* Obligatorio si el control del formulario tiene el validador `required`.
|
|
1185
1203
|
* Se propaga al input interno para que el mat-form-field pinte el asterisco,
|