@ngrdt/forms 0.0.32 → 0.0.34

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
@@ -6,7 +6,7 @@ import { RdtInteractiveElementComponent } from '@ngrdt/core';
6
6
  import { Nullable, RdtFile, RdtMimeType, RdtCombinedMimeType, AllEncodingAliases } from '@ngrdt/utils';
7
7
  import * as _ngrdt_forms from '@ngrdt/forms';
8
8
  import * as rxjs from 'rxjs';
9
- import { Observable, Subscription } from 'rxjs';
9
+ import { Observable, Subscription, Subject } from 'rxjs';
10
10
  import * as _ngrx_signals from '@ngrx/signals';
11
11
  import { Highlightable } from '@angular/cdk/a11y';
12
12
 
@@ -457,5 +457,34 @@ declare abstract class RdtTextInputComponent extends RdtBaseFormInputComponent<s
457
457
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdtTextInputComponent, never, never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "autocomplete": { "alias": "autocomplete"; "required": false; "isSignal": true; }; "maxlength": { "alias": "maxlength"; "required": false; "isSignal": true; }; "minlength": { "alias": "minlength"; "required": false; "isSignal": true; }; "pattern": { "alias": "pattern"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
458
458
  }
459
459
 
460
- export { NO_OP_FILE_READER, NoOpFileReader, RDT_DEFAULT_FILE_LABEL_FN, RDT_DEFAULT_FILE_READER, RDT_DEFAULT_MAX_FILE_SIZE, RdtBaseFormInputComponent, RdtBaseSelectCommonComponent, RdtCheckboxComponent, RdtDateComponent, RdtFileInputComponent, RdtFileReader, RdtFileReaderArrayBuffer, RdtFileReaderBase64, RdtMultiSelectComponent, RdtNumericInputComponent, RdtOfflineSelectDatasource, RdtSelectDatasource, RdtSelectOfflineDatasourceProviderDirective, RdtSelectOptionDirective, RdtSelectStore, RdtSingleSelectComponent, RdtTextInputComponent, VnshFileReaderText, czechFileLabelFn, rdtSelectInitialState };
460
+ declare class RdtDateValidators {
461
+ static readonly notInFuture: ValidatorFn;
462
+ static lastDayOfMonth: ValidatorFn;
463
+ static greaterOrEqualToField(startDateField: string | FormControl<string | null>, error?: string, unsubscribeSubj?: Subject<void>): ValidatorFn;
464
+ static lessOrEqualToField(endDateField: string | FormControl<string> | FormControl<string | null>, error?: string, unsubscribeSubj?: Subject<void>): ValidatorFn;
465
+ static lessOrEqualToConstant(value: Date | string): (control: AbstractControl) => ValidationErrors | null;
466
+ static greaterOrEqualToConstant(value: Date | string): (control: AbstractControl) => ValidationErrors | null;
467
+ static getDateRangeErrors(value: Nullable<string>, minDate: Nullable<Date | string>, maxDate: Nullable<Date | string>): ValidationErrors | null;
468
+ }
469
+
470
+ declare class RdtCommonValidators {
471
+ static readonly atLeastOneRequired: ValidatorFn;
472
+ static readonly atLeastOneRequiredParent: ValidatorFn;
473
+ static cannotContainChars(chars: string[]): (control: AbstractControl) => {
474
+ cannotContainChars: string[];
475
+ } | null;
476
+ static startsWithPrefix(text: string): ValidatorFn;
477
+ static exactLength(length: number): (control: AbstractControl) => {
478
+ exactLength: number;
479
+ } | null;
480
+ static maxNumLength(length: number): (control: AbstractControl) => {
481
+ maxlength: {
482
+ requiredLength: number;
483
+ };
484
+ } | null;
485
+ static mustBeLowercase: ValidatorFn;
486
+ static cannotContainAccents: ValidatorFn;
487
+ }
488
+
489
+ export { NO_OP_FILE_READER, NoOpFileReader, RDT_DEFAULT_FILE_LABEL_FN, RDT_DEFAULT_FILE_READER, RDT_DEFAULT_MAX_FILE_SIZE, RdtBaseFormInputComponent, RdtBaseSelectCommonComponent, RdtCheckboxComponent, RdtCommonValidators, RdtDateComponent, RdtDateValidators, RdtFileInputComponent, RdtFileReader, RdtFileReaderArrayBuffer, RdtFileReaderBase64, RdtMultiSelectComponent, RdtNumericInputComponent, RdtOfflineSelectDatasource, RdtSelectDatasource, RdtSelectOfflineDatasourceProviderDirective, RdtSelectOptionDirective, RdtSelectStore, RdtSingleSelectComponent, RdtTextInputComponent, VnshFileReaderText, czechFileLabelFn, rdtSelectInitialState };
461
490
  export type { RdtDateType, RdtFileLabelFn, RdtSelectPage, RdtSelectState };
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@ngrdt/forms",
3
- "version": "0.0.32",
3
+ "version": "0.0.34",
4
4
  "peerDependencies": {
5
- "@ngrdt/core": "^0.0.32",
6
- "@ngrdt/utils": "^0.0.32",
5
+ "@ngrdt/core": "^0.0.34",
6
+ "@ngrdt/utils": "^0.0.34",
7
7
  "@angular/core": ">=18.2.0",
8
8
  "@angular/forms": ">=18.2.0",
9
9
  "rxjs": ">=7.0.0",