@sumaris-net/ngx-components 18.26.13 → 18.27.0-alpha1
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 +3 -1
- package/esm2022/public_api.mjs +2 -1
- package/esm2022/src/app/core/core.module.mjs +4 -1
- package/esm2022/src/app/core/form/form.utils.mjs +12 -1
- package/esm2022/src/app/shared/field-accessor.mjs +16 -0
- package/esm2022/src/app/shared/focusable.mjs +1 -1
- package/esm2022/src/app/shared/inputs.mjs +22 -3
- package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.mjs +175 -46
- package/esm2022/src/app/shared/material/boolean/material.boolean.mjs +69 -23
- package/esm2022/src/app/shared/material/datetime/material.date.mjs +18 -4
- package/esm2022/src/app/shared/material/datetime/material.datetime.mjs +116 -28
- package/esm2022/src/app/shared/material/duration/duration.module.mjs +10 -3
- package/esm2022/src/app/shared/material/duration/material.duration.mjs +63 -33
- package/esm2022/src/app/shared/material/duration/testing/mat-duration.test.mjs +3 -3
- package/esm2022/src/app/shared/material/latlong/material.latlong-input.mjs +14 -1
- package/esm2022/src/app/shared/material/latlong/material.latlong.mjs +16 -1
- package/esm2022/src/app/shared/material/testing/common.test.mjs +218 -27
- package/fesm2022/sumaris-net.ngx-components.mjs +985 -429
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
- package/src/app/core/core.module.d.ts +15 -15
- package/src/app/core/form/form.utils.d.ts +7 -0
- package/src/app/shared/field-accessor.d.ts +51 -0
- package/src/app/shared/focusable.d.ts +3 -1
- package/src/app/shared/inputs.d.ts +3 -1
- package/src/app/shared/material/autocomplete/material.autocomplete.d.ts +20 -7
- package/src/app/shared/material/boolean/material.boolean.d.ts +12 -4
- package/src/app/shared/material/datetime/material.date.d.ts +6 -2
- package/src/app/shared/material/datetime/material.datetime.d.ts +20 -4
- package/src/app/shared/material/duration/duration.module.d.ts +3 -1
- package/src/app/shared/material/duration/material.duration.d.ts +15 -13
- package/src/app/shared/material/latlong/material.latlong-input.d.ts +5 -3
- package/src/app/shared/material/latlong/material.latlong.d.ts +5 -1
- package/src/app/shared/material/testing/common.test.d.ts +49 -6
- package/src/assets/i18n/en.json +1 -1
- package/src/assets/manifest.json +1 -1
|
@@ -1,25 +1,68 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
2
|
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
3
|
+
import { MatAutocompleteField } from '../autocomplete/material.autocomplete';
|
|
4
|
+
import { MatBooleanField } from '../boolean/material.boolean';
|
|
5
|
+
import { MatDate } from '../datetime/material.date';
|
|
6
|
+
import { MatDateTime } from '../datetime/material.datetime';
|
|
7
|
+
import { MatDuration } from '../duration/material.duration';
|
|
8
|
+
import { ControlFieldAccessor } from '../../field-accessor';
|
|
9
|
+
import { MatLatLongField } from '../latlong/material.latlong';
|
|
3
10
|
import * as i0 from "@angular/core";
|
|
4
11
|
export declare class MatCommonTestPage implements OnInit, OnDestroy {
|
|
5
12
|
protected formBuilder: UntypedFormBuilder;
|
|
6
13
|
protected cd: ChangeDetectorRef;
|
|
7
|
-
showLogPanel: boolean;
|
|
8
|
-
logContent: string;
|
|
9
|
-
form: UntypedFormGroup;
|
|
10
|
-
statusList: readonly import("../../../core/services/model/referential.model").IStatus[];
|
|
11
14
|
private subscription;
|
|
15
|
+
protected form: UntypedFormGroup;
|
|
16
|
+
protected showLogPanel: boolean;
|
|
17
|
+
protected logContent: string;
|
|
18
|
+
protected statusList: readonly import("../../../core/services/model/referential.model").IStatus[];
|
|
19
|
+
protected mode: 'mobile' | 'desktop';
|
|
12
20
|
constructor(formBuilder: UntypedFormBuilder, cd: ChangeDetectorRef);
|
|
13
21
|
ngOnInit(): void;
|
|
14
22
|
ngOnDestroy(): void;
|
|
23
|
+
toggleMode(value: 'mobile' | 'desktop'): void;
|
|
15
24
|
loadData(): Promise<void>;
|
|
16
25
|
doSubmit(_: any): void;
|
|
17
26
|
log(message: string): void;
|
|
18
27
|
clearLogPanel(): void;
|
|
19
|
-
stringify: {
|
|
28
|
+
readonly stringify: {
|
|
20
29
|
(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
|
|
21
30
|
(value: any, replacer?: (string | number)[], space?: string | number): string;
|
|
22
31
|
};
|
|
32
|
+
inputFieldAccessors: QueryList<ControlFieldAccessor>;
|
|
33
|
+
autocompleteField: MatAutocompleteField;
|
|
34
|
+
booleanField: MatBooleanField;
|
|
35
|
+
dateField: MatDate;
|
|
36
|
+
dateTimeField: MatDateTime;
|
|
37
|
+
latitudeField: MatLatLongField;
|
|
38
|
+
longitudeField: MatLatLongField;
|
|
39
|
+
durationField: MatDuration;
|
|
40
|
+
protected readonly accessorFieldOptions: {
|
|
41
|
+
id: string;
|
|
42
|
+
label: string;
|
|
43
|
+
hasTypeText: boolean;
|
|
44
|
+
}[];
|
|
45
|
+
protected selectedAccessorField: {
|
|
46
|
+
id: string;
|
|
47
|
+
label: string;
|
|
48
|
+
hasTypeText: boolean;
|
|
49
|
+
};
|
|
50
|
+
protected accessorWriteValue: string;
|
|
51
|
+
protected accessorTypeText: string;
|
|
52
|
+
protected accessorLastAction: string;
|
|
53
|
+
protected accessorTypeTextLetterByLetter: boolean;
|
|
54
|
+
readonly autocompleteSuggestItems: {
|
|
55
|
+
id: number;
|
|
56
|
+
label: string;
|
|
57
|
+
name: string;
|
|
58
|
+
}[];
|
|
59
|
+
private _getAccessor;
|
|
60
|
+
selectAccessorField(option: (typeof this.accessorFieldOptions)[0]): void;
|
|
61
|
+
selectAccessorFieldById(id: string): void;
|
|
62
|
+
doAccessorFocus(): void;
|
|
63
|
+
doAccessorClear(): void;
|
|
64
|
+
doAccessorWriteValue(): void;
|
|
65
|
+
doAccessorTypeText(event?: Event): Promise<void>;
|
|
23
66
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatCommonTestPage, never>;
|
|
24
67
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatCommonTestPage, "mat-common-test", never, {}, {}, never, never, false, never>;
|
|
25
68
|
}
|
package/src/assets/i18n/en.json
CHANGED
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": "18.
|
|
5
|
+
"version": "18.27.0-alpha1",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|