@ngrdt/forms 0.0.83 → 0.0.86

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
@@ -55,6 +55,7 @@ declare abstract class RdtBaseFormInputComponent<TExt, TInt = TExt> extends RdtI
55
55
  protected abstract isEmpty(value: TExt | null): boolean;
56
56
  onInternalValueChange(value: TInt | null): void;
57
57
  setAdditionalErrors(errors: ValidationErrors | null): void;
58
+ protected areInternalValuesEqual(value1: TInt | null, value2: TInt | null): boolean;
58
59
  protected listenControlEvents(control: AbstractControl): void;
59
60
  protected toExternalValue(internalValue: TInt | null): TExt | null;
60
61
  protected toInternalValue(externalValue: TExt | null): TInt | null;
@@ -115,12 +116,22 @@ declare const RDT_CHECKBOX_BASE_PROVIDER: InjectionToken<Type<RdtCheckboxCompone
115
116
 
116
117
  type RdtDateType = 'date' | 'month' | 'week' | 'datetime-local' | 'time';
117
118
 
119
+ declare const RDT_FORM_CONTROL_DATE_FORMAT: InjectionToken<string>;
120
+ declare const RDT_FORM_CONTROL_DATETIME_FORMAT: InjectionToken<string>;
121
+ declare const RDT_FORM_CONTROL_TIME_FORMAT: InjectionToken<string>;
122
+ declare const RDT_EMPTY_TIME_DATE: InjectionToken<Date>;
123
+
118
124
  declare abstract class RdtDateComponent<TExt = string, TInt = TExt> extends RdtBaseFormInputComponent<TExt, TInt> {
125
+ readonly formControlDateFormat: string;
126
+ readonly formControlDateTimeFormat: string;
127
+ readonly formControlTimeFormat: string;
128
+ readonly emptyTimeDate: Date;
119
129
  readonly type: _angular_core.InputSignal<RdtDateType>;
120
130
  readonly minInput: _angular_core.InputSignalWithTransform<Nullable<TExt>, TExt | null>;
121
131
  readonly min: _angular_core.WritableSignal<TInt | null>;
122
132
  readonly maxInput: _angular_core.InputSignalWithTransform<Nullable<TExt>, TExt | null>;
123
133
  readonly max: _angular_core.WritableSignal<TInt | null>;
134
+ readonly formControlFormat: _angular_core.Signal<string>;
124
135
  protected isEmpty(value: TExt | null): boolean;
125
136
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdtDateComponent<any, any>, never>;
126
137
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdtDateComponent<any, any>, never, never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "minInput": { "alias": "minInput"; "required": false; "isSignal": true; }; "maxInput": { "alias": "maxInput"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
@@ -595,5 +606,5 @@ declare class RdtCommonValidators {
595
606
  static cannotContainAccents: ValidatorFn;
596
607
  }
597
608
 
598
- export { NO_OP_FILE_READER, NoOpFileReader, RDT_CHECKBOX_BASE_PROVIDER, RDT_DEFAULT_FILE_LABEL_FN, RDT_DEFAULT_FILE_READER, RDT_DEFAULT_MAX_FILE_SIZE, RDT_FORM_ERROR_CODES_PROVIDER, RdtBaseFormInputComponent, RdtBaseSelectCommonComponent, RdtCheckboxComponent, RdtCheckboxOutletDirective, RdtCommonValidators, RdtDateComponent, RdtDateValidators, RdtFileInputComponent, RdtFileReader, RdtFileReaderArrayBuffer, RdtFileReaderBase64, RdtFormErrorPipe, RdtFormInputOutletDirective, RdtMultiSelectComponent, RdtNumericInputComponent, RdtOfflineSelectDatasource, RdtSelectDatasource, RdtSelectOfflineDatasourceProviderDirective, RdtSelectOptionDirective, RdtSelectStore, RdtSingleSelectComponent, RdtTextAreaComponent, RdtTextInputComponent, VnshFileReaderText, defaultRdtFormErrorCodes, fileLabelTranslate, getFirstError, getRdtSelectPage, rdtSelectInitialState };
609
+ export { NO_OP_FILE_READER, NoOpFileReader, RDT_CHECKBOX_BASE_PROVIDER, RDT_DEFAULT_FILE_LABEL_FN, RDT_DEFAULT_FILE_READER, RDT_DEFAULT_MAX_FILE_SIZE, RDT_EMPTY_TIME_DATE, RDT_FORM_CONTROL_DATETIME_FORMAT, RDT_FORM_CONTROL_DATE_FORMAT, RDT_FORM_CONTROL_TIME_FORMAT, RDT_FORM_ERROR_CODES_PROVIDER, RdtBaseFormInputComponent, RdtBaseSelectCommonComponent, RdtCheckboxComponent, RdtCheckboxOutletDirective, RdtCommonValidators, RdtDateComponent, RdtDateValidators, RdtFileInputComponent, RdtFileReader, RdtFileReaderArrayBuffer, RdtFileReaderBase64, RdtFormErrorPipe, RdtFormInputOutletDirective, RdtMultiSelectComponent, RdtNumericInputComponent, RdtOfflineSelectDatasource, RdtSelectDatasource, RdtSelectOfflineDatasourceProviderDirective, RdtSelectOptionDirective, RdtSelectStore, RdtSingleSelectComponent, RdtTextAreaComponent, RdtTextInputComponent, VnshFileReaderText, defaultRdtFormErrorCodes, fileLabelTranslate, getFirstError, getRdtSelectPage, rdtSelectInitialState };
599
610
  export type { ErrorCodesFn, RdtCheckboxInputInt, RdtDateType, RdtErrorValue, RdtFileLabelFn, RdtFormErrorCodeMap, RdtLabelValue, RdtLabelValueId, RdtRenderedSelectOption, RdtSelectPage, RdtSelectRequestParams, RdtSelectState };
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@ngrdt/forms",
3
- "version": "0.0.83",
3
+ "version": "0.0.86",
4
4
  "peerDependencies": {
5
- "@ngrdt/core": "^0.0.83",
6
- "@ngrdt/utils": "^0.0.83",
5
+ "@ngrdt/core": "^0.0.86",
6
+ "@ngrdt/utils": "^0.0.86",
7
7
  "@angular/core": ">=20.0.0",
8
8
  "@angular/forms": ">=20.0.0",
9
9
  "rxjs": ">=7.0.0",