@sumaris-net/ngx-components 2.8.3 → 2.8.4
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/doc/changelog.md +5 -1
- package/esm2022/src/app/core/form/properties/properties.table.mjs +1 -1
- package/esm2022/src/app/core/services/validator/base.validator.class.mjs +2 -2
- package/esm2022/src/app/core/table/testing/table.testing.mjs +1 -1
- package/esm2022/src/app/core/table/testing/table2.testing.mjs +1 -1
- package/esm2022/src/app/shared/form/field.component.mjs +1 -1
- package/esm2022/src/app/shared/material/boolean/boolean.module.mjs +11 -3
- package/esm2022/src/app/shared/material/boolean/material.boolean.mjs +81 -36
- package/esm2022/src/app/shared/material/boolean/testing/boolean.test.page.mjs +7 -3
- package/esm2022/src/app/shared/material/testing/common.test.mjs +1 -1
- package/fesm2022/sumaris-net.ngx-components.mjs +126 -74
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/material/boolean/boolean.module.d.ts +3 -1
- package/src/app/shared/material/boolean/material.boolean.d.ts +20 -11
- package/src/app/shared/material/boolean/testing/boolean.test.page.d.ts +1 -0
- package/src/assets/manifest.json +1 -1
package/package.json
CHANGED
|
@@ -12,8 +12,10 @@ import * as i10 from "@angular/material/checkbox";
|
|
|
12
12
|
import * as i11 from "ngx-material-timepicker";
|
|
13
13
|
import * as i12 from "@ngx-translate/core";
|
|
14
14
|
import * as i13 from "../../directives/directives.module";
|
|
15
|
+
import * as i14 from "@angular/material/icon";
|
|
16
|
+
import * as i15 from "@angular/material/button";
|
|
15
17
|
export declare class SharedMatBooleanModule {
|
|
16
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedMatBooleanModule, never>;
|
|
17
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedMatBooleanModule, [typeof i1.MatBooleanField], [typeof i2.CommonModule, typeof i3.IonicModule, typeof i4.ReactiveFormsModule, typeof i5.SharedPipesModule, typeof i6.MatCommonModule, typeof i7.MatFormFieldModule, typeof i8.MatInputModule, typeof i9.MatRadioModule, typeof i10.MatCheckboxModule, typeof i11.NgxMaterialTimepickerModule, typeof i12.TranslateModule, typeof i13.SharedDirectivesModule], [typeof i1.MatBooleanField]>;
|
|
19
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedMatBooleanModule, [typeof i1.MatBooleanField], [typeof i2.CommonModule, typeof i3.IonicModule, typeof i4.ReactiveFormsModule, typeof i5.SharedPipesModule, typeof i6.MatCommonModule, typeof i7.MatFormFieldModule, typeof i8.MatInputModule, typeof i9.MatRadioModule, typeof i10.MatCheckboxModule, typeof i11.NgxMaterialTimepickerModule, typeof i12.TranslateModule, typeof i13.SharedDirectivesModule, typeof i14.MatIcon, typeof i15.MatIconButton], [typeof i1.MatBooleanField]>;
|
|
18
20
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedMatBooleanModule>;
|
|
19
21
|
}
|
|
@@ -9,6 +9,13 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
export declare class MatBooleanField implements OnInit, ControlValueAccessor, InputElement {
|
|
10
10
|
private cd;
|
|
11
11
|
private formGroupDir;
|
|
12
|
+
private _onChangeCallback;
|
|
13
|
+
private _onTouchedCallback;
|
|
14
|
+
private _writing;
|
|
15
|
+
protected _value: boolean;
|
|
16
|
+
protected _tabindex: number;
|
|
17
|
+
protected _showRadio: boolean;
|
|
18
|
+
protected _focused: boolean;
|
|
12
19
|
yesButton: MatRadioButton;
|
|
13
20
|
noButton: MatRadioButton;
|
|
14
21
|
checkboxButton: MatCheckbox;
|
|
@@ -31,19 +38,16 @@ export declare class MatBooleanField implements OnInit, ControlValueAccessor, In
|
|
|
31
38
|
showButtonIcons: boolean;
|
|
32
39
|
yesIcon: string;
|
|
33
40
|
noIcon: string;
|
|
34
|
-
|
|
41
|
+
clearable: boolean;
|
|
42
|
+
set tabindex(value: number);
|
|
43
|
+
get tabindex(): number;
|
|
44
|
+
set showRadio(v: any);
|
|
45
|
+
get showRadio(): any;
|
|
46
|
+
set value(v: any);
|
|
47
|
+
get value(): any;
|
|
35
48
|
onPressEnter: EventEmitter<any>;
|
|
36
49
|
onBlur: EventEmitter<FocusEvent>;
|
|
37
|
-
protected _value: boolean;
|
|
38
|
-
protected _tabindex: number;
|
|
39
|
-
private _onChangeCallback;
|
|
40
|
-
private _onTouchedCallback;
|
|
41
|
-
private _writing;
|
|
42
50
|
constructor(cd: ChangeDetectorRef, formGroupDir: FormGroupDirective);
|
|
43
|
-
get tabindex(): number;
|
|
44
|
-
set tabindex(value: number);
|
|
45
|
-
get value(): any;
|
|
46
|
-
set value(v: any);
|
|
47
51
|
ngOnInit(): void;
|
|
48
52
|
writeValue(value: any, event?: Event): void;
|
|
49
53
|
registerOnChange(fn: any): void;
|
|
@@ -54,11 +58,16 @@ export declare class MatBooleanField implements OnInit, ControlValueAccessor, In
|
|
|
54
58
|
onRadioValueChanged(event: MatRadioChange): void;
|
|
55
59
|
onCheckboxValueChanged(event: MatCheckboxChange): void;
|
|
56
60
|
private checkIfTouched;
|
|
61
|
+
/**
|
|
62
|
+
* Show/Hide the fake input
|
|
63
|
+
*/
|
|
64
|
+
private updateFakeInput;
|
|
57
65
|
/**
|
|
58
66
|
* This is a special case, because, this component has a temporary component displayed before the first focus event
|
|
59
67
|
*/
|
|
60
68
|
private updateTabIndex;
|
|
61
69
|
private markForCheck;
|
|
70
|
+
protected clear(event?: Event): void;
|
|
62
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatBooleanField, [null, { optional: true; }]>;
|
|
63
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatBooleanField, "mat-boolean-field", never, { "disabled": { "alias": "disabled"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "style": { "alias": "style"; "required": false; }; "buttonsColCount": { "alias": "buttonsColCount"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "yesLabel": { "alias": "yesLabel"; "required": false; }; "noLabel": { "alias": "noLabel"; "required": false; }; "showButtonIcons": { "alias": "showButtonIcons"; "required": false; }; "yesIcon": { "alias": "yesIcon"; "required": false; }; "noIcon": { "alias": "noIcon"; "required": false; }; "
|
|
72
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatBooleanField, "mat-boolean-field", never, { "disabled": { "alias": "disabled"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "style": { "alias": "style"; "required": false; }; "buttonsColCount": { "alias": "buttonsColCount"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "yesLabel": { "alias": "yesLabel"; "required": false; }; "noLabel": { "alias": "noLabel"; "required": false; }; "showButtonIcons": { "alias": "showButtonIcons"; "required": false; }; "yesIcon": { "alias": "yesIcon"; "required": false; }; "noIcon": { "alias": "noIcon"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "showRadio": { "alias": "showRadio"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "onPressEnter": "keyup.enter"; "onBlur": "onBlur"; }, never, ["[matPrefix]", "[matSuffix]"], false, never>;
|
|
64
73
|
}
|
|
@@ -16,6 +16,7 @@ export declare class BooleanTestPage extends AppForm<any> implements OnInit, Aft
|
|
|
16
16
|
ngAfterViewInit(): void;
|
|
17
17
|
toggleMode(value: any): void;
|
|
18
18
|
protected markForCheck(): void;
|
|
19
|
+
protected clearControlValue(path: string, event?: Event): void;
|
|
19
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<BooleanTestPage, never>;
|
|
20
21
|
static ɵcmp: i0.ɵɵComponentDeclaration<BooleanTestPage, "app-boolean-test-page", never, {}, {}, never, never, false, never>;
|
|
21
22
|
}
|
package/src/assets/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "ngx-sumaris-components",
|
|
3
3
|
"short_name": "ngx-sumaris-components",
|
|
4
4
|
"manifest_version": 1,
|
|
5
|
-
"version": "2.8.
|
|
5
|
+
"version": "2.8.4",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|