ngx-lite-form 1.1.8-pr.24.20250922045107 → 1.1.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/fesm2022/ngx-lite-form.mjs +120 -120
- package/fesm2022/ngx-lite-form.mjs.map +1 -1
- package/index.d.ts +15 -15
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -15,20 +15,20 @@ declare class FieldDto {
|
|
|
15
15
|
declare abstract class BaseSelectFieldDto<T = any> {
|
|
16
16
|
label: string;
|
|
17
17
|
options: T[];
|
|
18
|
-
displayWith: (
|
|
19
|
-
constructor(label: string, options: T[], displayWith: (
|
|
18
|
+
displayWith: (option: T) => string;
|
|
19
|
+
constructor(label: string, options: T[], displayWith: (option: T) => string);
|
|
20
20
|
}
|
|
21
21
|
declare class SelectFieldDto<T = any> extends BaseSelectFieldDto<T> {
|
|
22
22
|
formControl: FormControl<T>;
|
|
23
|
-
constructor(label: string, formControl: FormControl<T>, options: T[], displayWith: (
|
|
23
|
+
constructor(label: string, formControl: FormControl<T>, options: T[], displayWith: (option: T) => string);
|
|
24
24
|
}
|
|
25
25
|
declare class MultiSelectFieldDto<T = any> extends BaseSelectFieldDto<T> {
|
|
26
26
|
formControl: FormControl<T[]>;
|
|
27
|
-
constructor(label: string, formControl: FormControl<T[]>, options: T[], displayWith: (
|
|
27
|
+
constructor(label: string, formControl: FormControl<T[]>, options: T[], displayWith: (option: T) => string);
|
|
28
28
|
}
|
|
29
29
|
declare class RadioFieldDto<T = any> extends BaseSelectFieldDto<T> {
|
|
30
30
|
formControl: FormControl<T>;
|
|
31
|
-
constructor(label: string, formControl: FormControl<T>, options: T[], displayWith: (
|
|
31
|
+
constructor(label: string, formControl: FormControl<T>, options: T[], displayWith: (option: T) => string);
|
|
32
32
|
}
|
|
33
33
|
declare class FileFieldDto {
|
|
34
34
|
label: string;
|
|
@@ -122,13 +122,13 @@ declare class LiteTextarea {
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
declare class LiteSelect {
|
|
125
|
-
private
|
|
125
|
+
private elementRef;
|
|
126
126
|
inEdit: _angular_core.InputSignal<boolean>;
|
|
127
127
|
control: _angular_core.InputSignal<SelectFieldDto<any>>;
|
|
128
128
|
showOptions: string;
|
|
129
129
|
inputText: string;
|
|
130
130
|
readonly FormUtils: typeof FormUtils;
|
|
131
|
-
constructor(
|
|
131
|
+
constructor(elementRef: ElementRef);
|
|
132
132
|
onDocumentClick(event: MouseEvent): void;
|
|
133
133
|
isRequired(): boolean;
|
|
134
134
|
hasErrors(): boolean;
|
|
@@ -145,7 +145,7 @@ declare class LiteSelect {
|
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
declare class LiteMultiSelect implements AfterViewInit {
|
|
148
|
-
private
|
|
148
|
+
private elementRef;
|
|
149
149
|
inEdit: _angular_core.InputSignal<boolean>;
|
|
150
150
|
control: _angular_core.InputSignal<MultiSelectFieldDto<any>>;
|
|
151
151
|
showOptions: string;
|
|
@@ -155,7 +155,7 @@ declare class LiteMultiSelect implements AfterViewInit {
|
|
|
155
155
|
containerHeight: string;
|
|
156
156
|
selectedItemsRef?: ElementRef;
|
|
157
157
|
readonly FormUtils: typeof FormUtils;
|
|
158
|
-
constructor(
|
|
158
|
+
constructor(elementRef: ElementRef);
|
|
159
159
|
ngAfterViewInit(): void;
|
|
160
160
|
onDocumentClick(event: MouseEvent): void;
|
|
161
161
|
isRequired(): boolean;
|
|
@@ -223,7 +223,7 @@ interface DateRangeFieldDto extends Omit<FieldDto, 'formControl'> {
|
|
|
223
223
|
formControl: FormControl<string[]>;
|
|
224
224
|
}
|
|
225
225
|
declare class LiteDate {
|
|
226
|
-
private
|
|
226
|
+
private elementRef;
|
|
227
227
|
inEdit: _angular_core.InputSignal<boolean>;
|
|
228
228
|
control: _angular_core.InputSignal<FieldDto | DateRangeFieldDto>;
|
|
229
229
|
format: _angular_core.InputSignal<string>;
|
|
@@ -237,7 +237,7 @@ declare class LiteDate {
|
|
|
237
237
|
secondCalendarDays: _angular_core.Signal<CalendarDay[]>;
|
|
238
238
|
private getMonthDays;
|
|
239
239
|
readonly FormUtils: typeof FormUtils;
|
|
240
|
-
constructor(
|
|
240
|
+
constructor(elementRef: ElementRef);
|
|
241
241
|
onDocumentClick(event: Event): void;
|
|
242
242
|
isRequired(): boolean;
|
|
243
243
|
hasErrors(): boolean;
|
|
@@ -296,7 +296,7 @@ interface FileItem {
|
|
|
296
296
|
error?: string;
|
|
297
297
|
}
|
|
298
298
|
declare class LiteFile {
|
|
299
|
-
private
|
|
299
|
+
private sanitizer;
|
|
300
300
|
file_icon: string;
|
|
301
301
|
fileInput: ElementRef<HTMLInputElement>;
|
|
302
302
|
cameraInput: ElementRef<HTMLInputElement>;
|
|
@@ -315,7 +315,7 @@ declare class LiteFile {
|
|
|
315
315
|
maxFileSize: _angular_core.Signal<number>;
|
|
316
316
|
maxFiles: _angular_core.Signal<number>;
|
|
317
317
|
showPreview: _angular_core.Signal<boolean>;
|
|
318
|
-
constructor(
|
|
318
|
+
constructor(sanitizer: DomSanitizer);
|
|
319
319
|
isRequired(): boolean;
|
|
320
320
|
hasFormErrors(): boolean;
|
|
321
321
|
getErrorMessage(): string[];
|
|
@@ -350,7 +350,7 @@ interface CalendarDateTime {
|
|
|
350
350
|
isSelected: boolean;
|
|
351
351
|
}
|
|
352
352
|
declare class LiteDateTime {
|
|
353
|
-
private
|
|
353
|
+
private elementRef;
|
|
354
354
|
inEdit: _angular_core.InputSignal<boolean>;
|
|
355
355
|
control: _angular_core.InputSignal<FieldDto>;
|
|
356
356
|
format: _angular_core.InputSignal<string>;
|
|
@@ -366,7 +366,7 @@ declare class LiteDateTime {
|
|
|
366
366
|
calendarDays: _angular_core.Signal<CalendarDateTime[]>;
|
|
367
367
|
private getMonthDays;
|
|
368
368
|
readonly FormUtils: typeof FormUtils;
|
|
369
|
-
constructor(
|
|
369
|
+
constructor(elementRef: ElementRef);
|
|
370
370
|
onDocumentClick(event: Event): void;
|
|
371
371
|
isRequired(): boolean;
|
|
372
372
|
hasErrors(): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-lite-form",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"description": "A lightweight Angular form library with reusable input, textarea, select, multi-select, radio, checkbox, date picker and password components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|