@igo2/common 21.0.0-next.31 → 21.0.0-next.33
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/igo2-common-form.mjs +469 -53
- package/fesm2022/igo2-common-form.mjs.map +1 -1
- package/fesm2022/igo2-common.mjs +0 -1
- package/fesm2022/igo2-common.mjs.map +1 -1
- package/locale/en.common.json +7 -7
- package/locale/fr.common.json +7 -7
- package/package.json +3 -7
- package/types/igo2-common-form.d.ts +164 -15
- package/types/igo2-common.d.ts +0 -1
- package/fesm2022/igo2-common-select-value-dialog.mjs +0 -155
- package/fesm2022/igo2-common-select-value-dialog.mjs.map +0 -1
- package/types/igo2-common-select-value-dialog.d.ts +0 -65
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnInit, ModuleWithProviders } from '@angular/core';
|
|
3
|
-
import { UntypedFormGroup } from '@angular/forms';
|
|
4
|
-
import { MatDialogConfig, MatDialogRef } from '@angular/material/dialog';
|
|
5
|
-
import { MatRadioChange } from '@angular/material/radio';
|
|
6
|
-
import { LanguageService } from '@igo2/core/language';
|
|
7
|
-
import { BehaviorSubject, Observable } from 'rxjs';
|
|
8
|
-
|
|
9
|
-
declare enum SelectValueDialogType {
|
|
10
|
-
Radio = "radio",
|
|
11
|
-
Checkbox = "checkbox"
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
interface Choice {
|
|
15
|
-
value: any;
|
|
16
|
-
title: any;
|
|
17
|
-
}
|
|
18
|
-
interface SelectValueData extends SelectValueDialogOptions {
|
|
19
|
-
choices: Choice[];
|
|
20
|
-
}
|
|
21
|
-
interface SelectValueDialogOptions extends MatDialogConfig {
|
|
22
|
-
type?: SelectValueDialogType;
|
|
23
|
-
title?: string;
|
|
24
|
-
processButtonText?: string;
|
|
25
|
-
cancelButtonText?: string;
|
|
26
|
-
selectFieldText?: string;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
declare class SelectValueCheckRadioDialogComponent implements OnInit {
|
|
30
|
-
private formBuilder;
|
|
31
|
-
languageService: LanguageService;
|
|
32
|
-
dialogRef: MatDialogRef<SelectValueCheckRadioDialogComponent, any>;
|
|
33
|
-
data: SelectValueData | null;
|
|
34
|
-
formGroup: UntypedFormGroup;
|
|
35
|
-
isDisabled$: BehaviorSubject<boolean>;
|
|
36
|
-
constructor();
|
|
37
|
-
ngOnInit(): void;
|
|
38
|
-
getFg(): Record<string, boolean>;
|
|
39
|
-
canProcess(): void;
|
|
40
|
-
save(): void;
|
|
41
|
-
cancel(): void;
|
|
42
|
-
onChange(e: MatRadioChange): void;
|
|
43
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SelectValueCheckRadioDialogComponent, never>;
|
|
44
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectValueCheckRadioDialogComponent, "igo-select-value-check-radio-dialog", never, {}, {}, never, never, true, never>;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
declare class IgoSelectValueDialogModule {
|
|
48
|
-
/**
|
|
49
|
-
* @deprecated it has no effect
|
|
50
|
-
*/
|
|
51
|
-
static forRoot(): ModuleWithProviders<IgoSelectValueDialogModule>;
|
|
52
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IgoSelectValueDialogModule, never>;
|
|
53
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IgoSelectValueDialogModule, never, [typeof SelectValueCheckRadioDialogComponent], [typeof SelectValueCheckRadioDialogComponent]>;
|
|
54
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<IgoSelectValueDialogModule>;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
declare class SelectValueDialogService {
|
|
58
|
-
private dialog;
|
|
59
|
-
open(choices: Choice[], options?: SelectValueDialogOptions): Observable<any>;
|
|
60
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SelectValueDialogService, never>;
|
|
61
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SelectValueDialogService>;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export { IgoSelectValueDialogModule, SelectValueCheckRadioDialogComponent, SelectValueDialogService, SelectValueDialogType };
|
|
65
|
-
export type { Choice, SelectValueData, SelectValueDialogOptions };
|