@sumaris-net/ngx-components 18.2.28-alpha5 → 18.2.28
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/esm2022/src/app/core/table/testing/table.testing.mjs +1 -1
- package/esm2022/src/app/shared/material/latlong/latlong.utils.mjs +3 -3
- package/esm2022/src/app/shared/material/latlong/material.latlong2.mjs +72 -82
- package/esm2022/src/app/shared/material/latlong/testing/latlong.test.mjs +1 -1
- package/esm2022/src/app/shared/pipes/latlong-format.pipe.mjs +2 -2
- package/fesm2022/sumaris-net.ngx-components.mjs +90 -98
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/inputs.d.ts +1 -1
- package/src/app/shared/material/latlong/material.latlong2.d.ts +22 -9
- package/src/assets/manifest.json +1 -1
- package/src/theme/_material.scss +2 -2
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@ export interface InputElement extends FocusableElement {
|
|
|
17
17
|
}
|
|
18
18
|
export declare function isInputElement(object: any): object is InputElement;
|
|
19
19
|
export declare function asInputElement<T = any>(object: ElementRef<T>): InputElement | undefined;
|
|
20
|
-
export declare function tabindexComparator(a: InputElement, b: InputElement):
|
|
20
|
+
export declare function tabindexComparator(a: InputElement, b: InputElement): 0 | 1 | -1;
|
|
21
21
|
export interface CanGainFocusOptions {
|
|
22
22
|
minTabindex?: number;
|
|
23
23
|
maxTabindex?: number;
|
|
@@ -4,7 +4,6 @@ import { MatFormField, MatFormFieldAppearance, MatFormFieldDefaultOptions, Subsc
|
|
|
4
4
|
import { AppFloatLabelType } from '../../form/field.model';
|
|
5
5
|
import { LatLongPattern, LatLongType } from './latlong.utils';
|
|
6
6
|
import { MatSelect } from '@angular/material/select';
|
|
7
|
-
import { MaskitoOptions } from '@maskito/core';
|
|
8
7
|
import * as i0 from "@angular/core";
|
|
9
8
|
declare type LatLongSign = 1 | -1;
|
|
10
9
|
interface ILatLongData {
|
|
@@ -29,9 +28,9 @@ export declare class MatLatLongField2 implements OnInit, OnDestroy, ControlValue
|
|
|
29
28
|
private readonly _defaultSubscriptSizing;
|
|
30
29
|
protected _focused: boolean;
|
|
31
30
|
protected _touched: boolean;
|
|
32
|
-
protected degreesControl: FormControl<
|
|
33
|
-
protected minutesControl: FormControl<
|
|
34
|
-
protected secondsControl: FormControl<
|
|
31
|
+
protected degreesControl: FormControl<number>;
|
|
32
|
+
protected minutesControl: FormControl<number>;
|
|
33
|
+
protected secondsControl: FormControl<number>;
|
|
35
34
|
protected signControl: FormControl<LatLongSign>;
|
|
36
35
|
protected showMinutes: boolean;
|
|
37
36
|
protected showSeconds: boolean;
|
|
@@ -39,9 +38,6 @@ export declare class MatLatLongField2 implements OnInit, OnDestroy, ControlValue
|
|
|
39
38
|
protected degreesPlaceholder: string;
|
|
40
39
|
protected minutesPlaceholder: string;
|
|
41
40
|
protected secondsPlaceholder: string;
|
|
42
|
-
protected degreesMask: MaskitoOptions;
|
|
43
|
-
protected minutesMask: MaskitoOptions;
|
|
44
|
-
protected secondsMask: MaskitoOptions;
|
|
45
41
|
protected patternMaxDecimals: number;
|
|
46
42
|
protected i18nErrorKeys: {
|
|
47
43
|
required: string;
|
|
@@ -70,6 +66,23 @@ export declare class MatLatLongField2 implements OnInit, OnDestroy, ControlValue
|
|
|
70
66
|
inconsistent: string;
|
|
71
67
|
equals: string;
|
|
72
68
|
};
|
|
69
|
+
protected minMaxValues: {
|
|
70
|
+
degrees?: {
|
|
71
|
+
min: number;
|
|
72
|
+
max: number;
|
|
73
|
+
step: number;
|
|
74
|
+
};
|
|
75
|
+
minutes?: {
|
|
76
|
+
min: number;
|
|
77
|
+
max: number;
|
|
78
|
+
step: number;
|
|
79
|
+
};
|
|
80
|
+
seconds?: {
|
|
81
|
+
min: number;
|
|
82
|
+
max: number;
|
|
83
|
+
step: number;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
73
86
|
formControl: UntypedFormControl;
|
|
74
87
|
formControlName: string;
|
|
75
88
|
type: LatLongType;
|
|
@@ -85,7 +98,6 @@ export declare class MatLatLongField2 implements OnInit, OnDestroy, ControlValue
|
|
|
85
98
|
minutesSymbolUnit: string;
|
|
86
99
|
secondsSymbolUnit: string;
|
|
87
100
|
clearable: boolean;
|
|
88
|
-
classList: string;
|
|
89
101
|
set tabindex(value: number);
|
|
90
102
|
get tabindex(): number;
|
|
91
103
|
set appearance(value: MatFormFieldAppearance);
|
|
@@ -120,6 +132,7 @@ export declare class MatLatLongField2 implements OnInit, OnDestroy, ControlValue
|
|
|
120
132
|
protected _onFocusInput(event: FocusEvent): void;
|
|
121
133
|
protected _onBlurInput(event: FocusEvent): void;
|
|
122
134
|
protected _onClickInput(event: UIEvent): void;
|
|
135
|
+
protected selectInput(input: any): void;
|
|
123
136
|
protected focus(target?: any): boolean;
|
|
124
137
|
protected format(rawValue: number): string;
|
|
125
138
|
protected computeDecimalPart(value: number, nbOfDecimals: number): number;
|
|
@@ -139,7 +152,7 @@ export declare class MatLatLongField2 implements OnInit, OnDestroy, ControlValue
|
|
|
139
152
|
*/
|
|
140
153
|
private updateTabIndex;
|
|
141
154
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatLatLongField2, [null, { optional: true; }, null]>;
|
|
142
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatLatLongField2, "mat-latlong-field", never, { "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "type": { "alias": "type"; "required": false; }; "pattern": { "alias": "latLongPattern"; "required": false; }; "maxDecimals": { "alias": "maxDecimals"; "required": false; }; "required": { "alias": "required"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "defaultSign": { "alias": "defaultSign"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "degreesSymbolUnit": { "alias": "degreesSymbolUnit"; "required": false; }; "minutesSymbolUnit": { "alias": "minutesSymbolUnit"; "required": false; }; "secondsSymbolUnit": { "alias": "secondsSymbolUnit"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "
|
|
155
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatLatLongField2, "mat-latlong-field", never, { "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "type": { "alias": "type"; "required": false; }; "pattern": { "alias": "latLongPattern"; "required": false; }; "maxDecimals": { "alias": "maxDecimals"; "required": false; }; "required": { "alias": "required"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "defaultSign": { "alias": "defaultSign"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "degreesSymbolUnit": { "alias": "degreesSymbolUnit"; "required": false; }; "minutesSymbolUnit": { "alias": "minutesSymbolUnit"; "required": false; }; "secondsSymbolUnit": { "alias": "secondsSymbolUnit"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; }, { "keyupEnter": "keyup.enter"; "blurred": "blur"; "focused": "focus"; }, never, ["[matPrefix]", "[matSuffix]", "mat-error,[matError]", "mat-hint:not([align='end']),[matHint]", "mat-hint[align='end']"], false, never>;
|
|
143
156
|
static ngAcceptInputType_mobile: unknown;
|
|
144
157
|
static ngAcceptInputType_clearable: unknown;
|
|
145
158
|
static ngAcceptInputType_tabindex: unknown;
|
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.2.28
|
|
5
|
+
"version": "18.2.28",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|
package/src/theme/_material.scss
CHANGED
|
@@ -196,13 +196,13 @@ mat-icon[slot] {
|
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
// Latitude/Longitude component
|
|
199
|
-
.mat-latlong-field {
|
|
199
|
+
.mat-latlong-form-field {
|
|
200
200
|
|
|
201
201
|
.mat-mdc-form-field-infix {
|
|
202
202
|
display: inline-flex;
|
|
203
203
|
|
|
204
204
|
.mat-mdc-select.sign {
|
|
205
|
-
max-width:
|
|
205
|
+
max-width: 2em;
|
|
206
206
|
|
|
207
207
|
.mat-mdc-select-trigger {
|
|
208
208
|
align-items: baseline;
|