@ngrdt/forms 0.0.80 → 0.0.81
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/fesm2022/ngrdt-forms.mjs +43 -31
- package/fesm2022/ngrdt-forms.mjs.map +1 -1
- package/index.d.ts +5 -4
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as _angular_core from '@angular/core';
|
|
|
2
2
|
import { OnInit, OnDestroy, Injector, Signal, Type, InjectionToken, PipeTransform } from '@angular/core';
|
|
3
3
|
import * as _angular_forms from '@angular/forms';
|
|
4
4
|
import { ControlValueAccessor, AbstractControl, ValidationErrors, NgControl, FormControl, ValidatorFn } from '@angular/forms';
|
|
5
|
-
import { RdtInteractiveElementComponent, RdtComponentOutletDirective } from '@ngrdt/core';
|
|
5
|
+
import { RdtInteractiveElementComponent, RdtComponentOutletDirective, RdtTranslateService } from '@ngrdt/core';
|
|
6
6
|
import { Nullable, RdtBaseFormInputComponentInputsInt, RdtFile, RdtMimeType, RdtCombinedMimeType, AllEncodingAliases } from '@ngrdt/utils';
|
|
7
7
|
import * as _ngrdt_forms from '@ngrdt/forms';
|
|
8
8
|
import * as rxjs from 'rxjs';
|
|
@@ -184,7 +184,7 @@ declare class VnshFileReaderText extends RdtFileReader<string> {
|
|
|
184
184
|
|
|
185
185
|
declare const RDT_DEFAULT_FILE_READER: InjectionToken<RdtFileReader<unknown>>;
|
|
186
186
|
|
|
187
|
-
declare function
|
|
187
|
+
declare function fileLabelTranslate(translate: RdtTranslateService, files: RdtFile[]): string;
|
|
188
188
|
type RdtFileLabelFn = (files: RdtFile[]) => string;
|
|
189
189
|
declare const RDT_DEFAULT_FILE_LABEL_FN: InjectionToken<RdtFileLabelFn>;
|
|
190
190
|
|
|
@@ -542,7 +542,7 @@ type RdtErrorValue = {
|
|
|
542
542
|
key: string;
|
|
543
543
|
value: string;
|
|
544
544
|
} | null;
|
|
545
|
-
type ErrorCodesFn = (value?: any) => string;
|
|
545
|
+
type ErrorCodesFn = (value?: any) => string | string[];
|
|
546
546
|
|
|
547
547
|
interface RdtFormErrorCodeMap {
|
|
548
548
|
required: ErrorCodesFn;
|
|
@@ -557,6 +557,7 @@ interface RdtFormErrorCodeMap {
|
|
|
557
557
|
declare function getFirstError(errors: ValidationErrors): RdtErrorValue;
|
|
558
558
|
declare const defaultRdtFormErrorCodes: RdtFormErrorCodeMap;
|
|
559
559
|
declare class RdtFormErrorPipe implements PipeTransform {
|
|
560
|
+
private translateService;
|
|
560
561
|
private readonly errorCodes;
|
|
561
562
|
transform(errors: ValidationErrors | undefined | null): string;
|
|
562
563
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdtFormErrorPipe, never>;
|
|
@@ -594,5 +595,5 @@ declare class RdtCommonValidators {
|
|
|
594
595
|
static cannotContainAccents: ValidatorFn;
|
|
595
596
|
}
|
|
596
597
|
|
|
597
|
-
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,
|
|
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 };
|
|
598
599
|
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.
|
|
3
|
+
"version": "0.0.81",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@ngrdt/core": "^0.0.
|
|
6
|
-
"@ngrdt/utils": "^0.0.
|
|
5
|
+
"@ngrdt/core": "^0.0.81",
|
|
6
|
+
"@ngrdt/utils": "^0.0.81",
|
|
7
7
|
"@angular/core": ">=20.0.0",
|
|
8
8
|
"@angular/forms": ">=20.0.0",
|
|
9
9
|
"rxjs": ">=7.0.0",
|