@sumaris-net/ngx-components 18.2.28-alpha3 → 18.2.28-alpha5
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/form/entity/entity-editor.class.mjs +2 -2
- package/esm2022/src/app/core/table/testing/table.testing.mjs +1 -1
- package/esm2022/src/app/shared/material/boolean/material.boolean.mjs +3 -3
- package/esm2022/src/app/shared/material/boolean/testing/boolean.test.page.mjs +3 -3
- package/esm2022/src/app/shared/material/latlong/latlong.utils.mjs +3 -3
- package/esm2022/src/app/shared/material/latlong/material.latlong2.mjs +82 -72
- 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 +103 -95
- 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 +9 -22
- 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): 1 | -1 | 0;
|
|
21
21
|
export interface CanGainFocusOptions {
|
|
22
22
|
minTabindex?: number;
|
|
23
23
|
maxTabindex?: number;
|
|
@@ -4,6 +4,7 @@ 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';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
declare type LatLongSign = 1 | -1;
|
|
9
10
|
interface ILatLongData {
|
|
@@ -28,9 +29,9 @@ export declare class MatLatLongField2 implements OnInit, OnDestroy, ControlValue
|
|
|
28
29
|
private readonly _defaultSubscriptSizing;
|
|
29
30
|
protected _focused: boolean;
|
|
30
31
|
protected _touched: boolean;
|
|
31
|
-
protected degreesControl: FormControl<
|
|
32
|
-
protected minutesControl: FormControl<
|
|
33
|
-
protected secondsControl: FormControl<
|
|
32
|
+
protected degreesControl: FormControl<string>;
|
|
33
|
+
protected minutesControl: FormControl<string>;
|
|
34
|
+
protected secondsControl: FormControl<string>;
|
|
34
35
|
protected signControl: FormControl<LatLongSign>;
|
|
35
36
|
protected showMinutes: boolean;
|
|
36
37
|
protected showSeconds: boolean;
|
|
@@ -38,6 +39,9 @@ export declare class MatLatLongField2 implements OnInit, OnDestroy, ControlValue
|
|
|
38
39
|
protected degreesPlaceholder: string;
|
|
39
40
|
protected minutesPlaceholder: string;
|
|
40
41
|
protected secondsPlaceholder: string;
|
|
42
|
+
protected degreesMask: MaskitoOptions;
|
|
43
|
+
protected minutesMask: MaskitoOptions;
|
|
44
|
+
protected secondsMask: MaskitoOptions;
|
|
41
45
|
protected patternMaxDecimals: number;
|
|
42
46
|
protected i18nErrorKeys: {
|
|
43
47
|
required: string;
|
|
@@ -66,23 +70,6 @@ export declare class MatLatLongField2 implements OnInit, OnDestroy, ControlValue
|
|
|
66
70
|
inconsistent: string;
|
|
67
71
|
equals: string;
|
|
68
72
|
};
|
|
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
|
-
};
|
|
86
73
|
formControl: UntypedFormControl;
|
|
87
74
|
formControlName: string;
|
|
88
75
|
type: LatLongType;
|
|
@@ -98,6 +85,7 @@ export declare class MatLatLongField2 implements OnInit, OnDestroy, ControlValue
|
|
|
98
85
|
minutesSymbolUnit: string;
|
|
99
86
|
secondsSymbolUnit: string;
|
|
100
87
|
clearable: boolean;
|
|
88
|
+
classList: string;
|
|
101
89
|
set tabindex(value: number);
|
|
102
90
|
get tabindex(): number;
|
|
103
91
|
set appearance(value: MatFormFieldAppearance);
|
|
@@ -132,7 +120,6 @@ export declare class MatLatLongField2 implements OnInit, OnDestroy, ControlValue
|
|
|
132
120
|
protected _onFocusInput(event: FocusEvent): void;
|
|
133
121
|
protected _onBlurInput(event: FocusEvent): void;
|
|
134
122
|
protected _onClickInput(event: UIEvent): void;
|
|
135
|
-
protected selectInput(input: any): void;
|
|
136
123
|
protected focus(target?: any): boolean;
|
|
137
124
|
protected format(rawValue: number): string;
|
|
138
125
|
protected computeDecimalPart(value: number, nbOfDecimals: number): number;
|
|
@@ -152,7 +139,7 @@ export declare class MatLatLongField2 implements OnInit, OnDestroy, ControlValue
|
|
|
152
139
|
*/
|
|
153
140
|
private updateTabIndex;
|
|
154
141
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatLatLongField2, [null, { optional: true; }, null]>;
|
|
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>;
|
|
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; }; "classList": { "alias": "class"; "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>;
|
|
156
143
|
static ngAcceptInputType_mobile: unknown;
|
|
157
144
|
static ngAcceptInputType_clearable: unknown;
|
|
158
145
|
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-alpha4",
|
|
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-
|
|
199
|
+
.mat-latlong-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: 1.7em;
|
|
206
206
|
|
|
207
207
|
.mat-mdc-select-trigger {
|
|
208
208
|
align-items: baseline;
|