ngx-lite-form 1.4.5 → 1.4.9

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
@@ -8,25 +8,27 @@ declare class FieldDto {
8
8
  formControl: FormControl;
9
9
  rows?: number;
10
10
  type?: 'text' | 'number';
11
- constructor(label: string, formControl: FormControl, rows?: number, type?: 'text' | 'number');
11
+ hint?: string;
12
+ constructor(label: string, formControl: FormControl, rows?: number, type?: 'text' | 'number', hint?: string);
12
13
  }
13
14
  declare abstract class BaseSelectFieldDto<T = any> {
14
15
  label: string;
15
16
  options: T[];
16
17
  displayWith: (_option: T) => string;
17
- constructor(label: string, options: T[], displayWith: (_option: T) => string);
18
+ hint?: string;
19
+ constructor(label: string, options: T[], displayWith: (_option: T) => string, hint?: string);
18
20
  }
19
21
  declare class SelectFieldDto<T = any> extends BaseSelectFieldDto<T> {
20
22
  formControl: FormControl<T>;
21
- constructor(label: string, formControl: FormControl<T>, options: T[], displayWith: (_option: T) => string);
23
+ constructor(label: string, formControl: FormControl<T>, options: T[], displayWith: (_option: T) => string, hint?: string);
22
24
  }
23
25
  declare class MultiSelectFieldDto<T = any> extends BaseSelectFieldDto<T> {
24
26
  formControl: FormControl<T[]>;
25
- constructor(label: string, formControl: FormControl<T[]>, options: T[], displayWith: (_option: T) => string);
27
+ constructor(label: string, formControl: FormControl<T[]>, options: T[], displayWith: (_option: T) => string, hint?: string);
26
28
  }
27
29
  declare class RadioFieldDto<T = any> extends BaseSelectFieldDto<T> {
28
30
  formControl: FormControl<T>;
29
- constructor(label: string, formControl: FormControl<T>, options: T[], displayWith: (_option: T) => string);
31
+ constructor(label: string, formControl: FormControl<T>, options: T[], displayWith: (_option: T) => string, hint?: string);
30
32
  }
31
33
  declare class FileFieldDto {
32
34
  label: string;
@@ -36,8 +38,9 @@ declare class FileFieldDto {
36
38
  maxFileSize?: number;
37
39
  maxFiles?: number;
38
40
  showPreview?: boolean;
41
+ hint?: string;
39
42
  constructor(label: string, formControl: FormControl, multiple?: boolean, accept?: string, maxFileSize?: number, // 10MB
40
- maxFiles?: number, showPreview?: boolean);
43
+ maxFiles?: number, showPreview?: boolean, hint?: string);
41
44
  }
42
45
  type SnackbarType = 'done' | 'warn' | 'error';
43
46
  declare class PaginatorFieldDto {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-lite-form",
3
- "version": "1.4.5",
3
+ "version": "1.4.9",
4
4
  "description": "Lightweight Angular 20+ form library with 15+ standalone components: input, textarea, select, multi-select, radio, checkbox, password, date picker, datetime picker, file upload, data table, pagination, modal panel, loading indicators, and toast notifications",
5
5
  "keywords": [
6
6
  "angular",