@ngrdt/forms 0.0.39 → 0.0.41
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 +26 -25
- package/fesm2022/ngrdt-forms.mjs.map +1 -1
- package/index.d.ts +13 -12
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -233,7 +233,6 @@ declare class RdtOfflineSelectDatasource<TValue extends string | number> extends
|
|
|
233
233
|
protected preprocessLabel(label: string): string;
|
|
234
234
|
protected preprocessData(data: RdtLabelValue<TValue>[]): RdtLabelValue<TValue>[];
|
|
235
235
|
protected filterData(query: string | null): RdtLabelValue<TValue>[];
|
|
236
|
-
protected getPage(data: RdtLabelValue<TValue>[], pageIndex: number, pageSize: number): RdtSelectPage<RdtLabelValue<TValue>>;
|
|
237
236
|
}
|
|
238
237
|
|
|
239
238
|
declare abstract class RdtSelectOfflineDatasourceProviderDirective<TValue extends string | number> {
|
|
@@ -243,17 +242,17 @@ declare abstract class RdtSelectOfflineDatasourceProviderDirective<TValue extend
|
|
|
243
242
|
pageSize: _angular_core.Signal<number>;
|
|
244
243
|
totalCount: _angular_core.Signal<number>;
|
|
245
244
|
totalCountKnown: _angular_core.Signal<boolean>;
|
|
246
|
-
options: _angular_core.Signal<RdtLabelValueId<any, any>[]>;
|
|
245
|
+
options: _angular_core.Signal<_ngrdt_forms.RdtLabelValueId<any, any>[]>;
|
|
247
246
|
datasource: _angular_core.Signal<_ngrdt_forms.RdtSelectDatasource<any, any> | null>;
|
|
248
|
-
selectedMap: _angular_core.Signal<Map<any, RdtLabelValueId<any, any>>>;
|
|
247
|
+
selectedMap: _angular_core.Signal<Map<any, _ngrdt_forms.RdtLabelValueId<any, any>>>;
|
|
249
248
|
fetchError: _angular_core.Signal<any>;
|
|
250
249
|
missingValuePlaceholder: _angular_core.Signal<string>;
|
|
251
250
|
hasMore: _angular_core.Signal<boolean>;
|
|
252
|
-
selectedItems: _angular_core.Signal<RdtLabelValueId<any, any>[]>;
|
|
251
|
+
selectedItems: _angular_core.Signal<_ngrdt_forms.RdtLabelValueId<any, any>[]>;
|
|
253
252
|
loadingOptions: _angular_core.Signal<boolean>;
|
|
254
253
|
loadingMissing: _angular_core.Signal<boolean>;
|
|
255
254
|
loading: _angular_core.Signal<boolean>;
|
|
256
|
-
visibleOptions: _angular_core.Signal<RdtRenderedSelectOption<any, any>[]>;
|
|
255
|
+
visibleOptions: _angular_core.Signal<_ngrdt_forms.RdtRenderedSelectOption<any, any>[]>;
|
|
257
256
|
fetch: () => void;
|
|
258
257
|
setDatasource: (datasource: _ngrdt_forms.RdtSelectDatasource<any, any>) => void;
|
|
259
258
|
setQuery: (query: string | null) => void;
|
|
@@ -273,9 +272,9 @@ declare abstract class RdtSelectOfflineDatasourceProviderDirective<TValue extend
|
|
|
273
272
|
pageSize: number;
|
|
274
273
|
totalCount: number;
|
|
275
274
|
totalCountKnown: boolean;
|
|
276
|
-
options: RdtLabelValueId<any, any>[];
|
|
275
|
+
options: _ngrdt_forms.RdtLabelValueId<any, any>[];
|
|
277
276
|
datasource: _ngrdt_forms.RdtSelectDatasource<any, any> | null;
|
|
278
|
-
selectedMap: Map<any, RdtLabelValueId<any, any>>;
|
|
277
|
+
selectedMap: Map<any, _ngrdt_forms.RdtLabelValueId<any, any>>;
|
|
279
278
|
fetchError: any | null;
|
|
280
279
|
missingValuePlaceholder: string;
|
|
281
280
|
}>;
|
|
@@ -410,7 +409,7 @@ type RdtSelectStore<T = any, TId = number> = InstanceType<ReturnType<typeof getR
|
|
|
410
409
|
declare abstract class RdtBaseSelectCommonComponent<TItem, TId, TOut> extends RdtBaseFormInputComponent<TOut> {
|
|
411
410
|
readonly datasourceInput: _angular_core.InputSignal<RdtSelectDatasource<TItem, TId> | null>;
|
|
412
411
|
readonly store: RdtSelectStore<TItem, TId>;
|
|
413
|
-
readonly visibleOptions: _angular_core.Signal<RdtRenderedSelectOption<TItem, TId>[]>;
|
|
412
|
+
readonly visibleOptions: _angular_core.Signal<_ngrdt_forms.RdtRenderedSelectOption<TItem, TId>[]>;
|
|
414
413
|
readonly queryValidatorFnInput: _angular_core.InputSignal<Nullable<ValidatorFn | ValidatorFn[]>>;
|
|
415
414
|
readonly queryValidatorFn: _angular_core.WritableSignal<Nullable<ValidatorFn | ValidatorFn[]>>;
|
|
416
415
|
private readonly queryValidatorEffect;
|
|
@@ -431,19 +430,21 @@ declare abstract class RdtBaseSelectCommonComponent<TItem, TId, TOut> extends Rd
|
|
|
431
430
|
}
|
|
432
431
|
|
|
433
432
|
declare abstract class RdtMultiSelectComponent<TItem, TId> extends RdtBaseSelectCommonComponent<TItem, TId, TId[]> {
|
|
434
|
-
readonly selected: _angular_core.Signal<RdtLabelValueId<TItem, TId>[] | null>;
|
|
433
|
+
readonly selected: _angular_core.Signal<_ngrdt_forms.RdtLabelValueId<TItem, TId>[] | null>;
|
|
435
434
|
protected isEmpty(value: TId[]): boolean;
|
|
436
435
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdtMultiSelectComponent<any, any>, never>;
|
|
437
436
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdtMultiSelectComponent<any, any>, never, never, {}, {}, never, never, true, never>;
|
|
438
437
|
}
|
|
439
438
|
|
|
440
439
|
declare abstract class RdtSingleSelectComponent<TItem, TId> extends RdtBaseSelectCommonComponent<TItem, TId, TId> {
|
|
441
|
-
readonly selected: _angular_core.Signal<RdtLabelValueId<TItem, TId> | null>;
|
|
440
|
+
readonly selected: _angular_core.Signal<_ngrdt_forms.RdtLabelValueId<TItem, TId> | null>;
|
|
442
441
|
protected isEmpty(value: TId): boolean;
|
|
443
442
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdtSingleSelectComponent<any, any>, never>;
|
|
444
443
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdtSingleSelectComponent<any, any>, never, never, {}, {}, never, never, true, never>;
|
|
445
444
|
}
|
|
446
445
|
|
|
446
|
+
declare function getRdtSelectPage<TValue>(data: RdtLabelValue<TValue>[], pageIndex: number, pageSize: number): RdtSelectPage<RdtLabelValue<TValue>>;
|
|
447
|
+
|
|
447
448
|
type RdtInputType = 'text' | 'number' | 'email' | 'password';
|
|
448
449
|
|
|
449
450
|
declare abstract class RdtTextInputComponent extends RdtBaseFormInputComponent<string, string> {
|
|
@@ -486,5 +487,5 @@ declare class RdtCommonValidators {
|
|
|
486
487
|
static cannotContainAccents: ValidatorFn;
|
|
487
488
|
}
|
|
488
489
|
|
|
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 };
|
|
490
|
-
export type { RdtDateType, RdtFileLabelFn, RdtSelectPage, RdtSelectState };
|
|
490
|
+
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, getRdtSelectPage, rdtSelectInitialState };
|
|
491
|
+
export type { RdtDateType, RdtFileLabelFn, 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.41",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@ngrdt/core": "^0.0.
|
|
6
|
-
"@ngrdt/utils": "^0.0.
|
|
5
|
+
"@ngrdt/core": "^0.0.41",
|
|
6
|
+
"@ngrdt/utils": "^0.0.41",
|
|
7
7
|
"@angular/core": ">=18.2.0",
|
|
8
8
|
"@angular/forms": ">=18.2.0",
|
|
9
9
|
"rxjs": ">=7.0.0",
|