@sumaris-net/ngx-components 18.2.28 → 18.2.29
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 +4 -0
- package/esm2022/public_api.mjs +1 -2
- package/esm2022/src/app/core/table/testing/table.testing.mjs +4 -4
- package/esm2022/src/app/shared/material/boolean/material.boolean.mjs +2 -2
- package/esm2022/src/app/shared/material/latlong/latlong.utils.mjs +3 -4
- package/esm2022/src/app/shared/material/latlong/material.latlong.mjs +451 -247
- package/esm2022/src/app/shared/material/latlong/material.latlong.module.mjs +6 -7
- package/esm2022/src/app/shared/material/latlong/testing/latlong.test.mjs +4 -4
- package/esm2022/src/app/shared/material/material.animations.mjs +2 -2
- package/esm2022/src/app/shared/pipes/latlong-format.pipe.mjs +2 -2
- package/esm2022/src/app/shared/validator/validators.mjs +6 -3
- package/fesm2022/sumaris-net.ngx-components.mjs +129 -504
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +0 -1
- package/src/app/shared/material/latlong/material.latlong.d.ts +105 -31
- package/src/app/shared/material/latlong/material.latlong.module.d.ts +14 -15
- package/src/app/shared/validator/validators.d.ts +3 -1
- package/src/assets/manifest.json +1 -1
- package/src/theme/_material.scss +2 -2
- package/src/theme/_ngx-components.table.scss +5 -6
- package/esm2022/src/app/shared/material/latlong/material.latlong2.mjs +0 -607
- package/src/app/shared/material/latlong/material.latlong2.d.ts +0 -160
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor, FormControl, FormGroupDirective, UntypedFormControl } from '@angular/forms';
|
|
3
|
-
import { MatFormField, MatFormFieldAppearance, MatFormFieldDefaultOptions, SubscriptSizing } from '@angular/material/form-field';
|
|
4
|
-
import { AppFloatLabelType } from '../../form/field.model';
|
|
5
|
-
import { LatLongPattern, LatLongType } from './latlong.utils';
|
|
6
|
-
import { MatSelect } from '@angular/material/select';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
declare type LatLongSign = 1 | -1;
|
|
9
|
-
interface ILatLongData {
|
|
10
|
-
degrees: number;
|
|
11
|
-
minutes: number;
|
|
12
|
-
seconds: number;
|
|
13
|
-
sign: LatLongSign;
|
|
14
|
-
}
|
|
15
|
-
export declare class MatLatLongField2 implements OnInit, OnDestroy, ControlValueAccessor {
|
|
16
|
-
private cd;
|
|
17
|
-
private formGroupDir;
|
|
18
|
-
private _onChangeCallback;
|
|
19
|
-
private _onTouchedCallback;
|
|
20
|
-
private _subscription;
|
|
21
|
-
private _disabling;
|
|
22
|
-
private _writing;
|
|
23
|
-
private _appearance;
|
|
24
|
-
private _subscriptSizing;
|
|
25
|
-
private _readonly;
|
|
26
|
-
private _tabindex;
|
|
27
|
-
private readonly _defaultAppearance;
|
|
28
|
-
private readonly _defaultSubscriptSizing;
|
|
29
|
-
protected _focused: boolean;
|
|
30
|
-
protected _touched: boolean;
|
|
31
|
-
protected degreesControl: FormControl<number>;
|
|
32
|
-
protected minutesControl: FormControl<number>;
|
|
33
|
-
protected secondsControl: FormControl<number>;
|
|
34
|
-
protected signControl: FormControl<LatLongSign>;
|
|
35
|
-
protected showMinutes: boolean;
|
|
36
|
-
protected showSeconds: boolean;
|
|
37
|
-
protected showSignControl: boolean;
|
|
38
|
-
protected degreesPlaceholder: string;
|
|
39
|
-
protected minutesPlaceholder: string;
|
|
40
|
-
protected secondsPlaceholder: string;
|
|
41
|
-
protected patternMaxDecimals: number;
|
|
42
|
-
protected i18nErrorKeys: {
|
|
43
|
-
required: string;
|
|
44
|
-
min: string;
|
|
45
|
-
max: string;
|
|
46
|
-
minlength: string;
|
|
47
|
-
maxlength: string;
|
|
48
|
-
pubkey: string;
|
|
49
|
-
validDate: string;
|
|
50
|
-
dateIsAfter: string;
|
|
51
|
-
dateIsBefore: string;
|
|
52
|
-
dateRange: string;
|
|
53
|
-
dateMinDuration: string;
|
|
54
|
-
dateMaxDuration: string;
|
|
55
|
-
maxDecimals: string;
|
|
56
|
-
decimal: string;
|
|
57
|
-
integer: string;
|
|
58
|
-
precision: string;
|
|
59
|
-
email: string;
|
|
60
|
-
latitude: string;
|
|
61
|
-
longitude: string;
|
|
62
|
-
pattern: string;
|
|
63
|
-
unique: string;
|
|
64
|
-
entity: string;
|
|
65
|
-
invalid: string;
|
|
66
|
-
inconsistent: string;
|
|
67
|
-
equals: string;
|
|
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
|
-
};
|
|
86
|
-
formControl: UntypedFormControl;
|
|
87
|
-
formControlName: string;
|
|
88
|
-
type: LatLongType;
|
|
89
|
-
pattern: LatLongPattern;
|
|
90
|
-
maxDecimals: number;
|
|
91
|
-
required: boolean;
|
|
92
|
-
floatLabel: AppFloatLabelType;
|
|
93
|
-
placeholder: string;
|
|
94
|
-
defaultSign: '-' | '+';
|
|
95
|
-
autofocus: boolean;
|
|
96
|
-
mobile: boolean;
|
|
97
|
-
degreesSymbolUnit: string;
|
|
98
|
-
minutesSymbolUnit: string;
|
|
99
|
-
secondsSymbolUnit: string;
|
|
100
|
-
clearable: boolean;
|
|
101
|
-
set tabindex(value: number);
|
|
102
|
-
get tabindex(): number;
|
|
103
|
-
set appearance(value: MatFormFieldAppearance);
|
|
104
|
-
get appearance(): MatFormFieldAppearance;
|
|
105
|
-
set readonly(value: boolean);
|
|
106
|
-
get readonly(): boolean;
|
|
107
|
-
set subscriptSizing(value: SubscriptSizing);
|
|
108
|
-
get subscriptSizing(): SubscriptSizing;
|
|
109
|
-
get showFields(): boolean;
|
|
110
|
-
get disabled(): any;
|
|
111
|
-
keyupEnter: EventEmitter<any>;
|
|
112
|
-
blurred: EventEmitter<FocusEvent>;
|
|
113
|
-
focused: EventEmitter<FocusEvent>;
|
|
114
|
-
formField: MatFormField;
|
|
115
|
-
fakeInput: ElementRef;
|
|
116
|
-
inputDegrees: ElementRef;
|
|
117
|
-
inputMinutes: ElementRef;
|
|
118
|
-
inputSeconds: ElementRef;
|
|
119
|
-
inputSign: ElementRef;
|
|
120
|
-
inputSignSelect: MatSelect;
|
|
121
|
-
constructor(cd: ChangeDetectorRef, formGroupDir: FormGroupDirective, defaultOptions?: MatFormFieldDefaultOptions);
|
|
122
|
-
ngOnInit(): void;
|
|
123
|
-
ngOnDestroy(): void;
|
|
124
|
-
registerOnChange(fn: any): void;
|
|
125
|
-
registerOnTouched(fn: any): void;
|
|
126
|
-
writeValue(value: number | string): void;
|
|
127
|
-
setDisabledState(isDisabled: boolean): void;
|
|
128
|
-
clearValue(event?: Event): void;
|
|
129
|
-
protected get internalElements(): HTMLElement[];
|
|
130
|
-
protected onFocusFakeInput(event: FocusEvent): void;
|
|
131
|
-
protected onBlurFakeInput(event: FocusEvent): void;
|
|
132
|
-
protected _onFocusInput(event: FocusEvent): void;
|
|
133
|
-
protected _onBlurInput(event: FocusEvent): void;
|
|
134
|
-
protected _onClickInput(event: UIEvent): void;
|
|
135
|
-
protected selectInput(input: any): void;
|
|
136
|
-
protected focus(target?: any): boolean;
|
|
137
|
-
protected format(rawValue: number): string;
|
|
138
|
-
protected computeDecimalPart(value: number, nbOfDecimals: number): number;
|
|
139
|
-
protected computeLatLongFormGroupValue(rawValue: number | string): ILatLongData;
|
|
140
|
-
protected markAsTouched(): void;
|
|
141
|
-
private patchValue;
|
|
142
|
-
private onFormChange;
|
|
143
|
-
private emitChange;
|
|
144
|
-
private _checkIfTouched;
|
|
145
|
-
private markForCheck;
|
|
146
|
-
/**
|
|
147
|
-
* Show/Hide the fake input
|
|
148
|
-
*/
|
|
149
|
-
private updateFakeInput;
|
|
150
|
-
/**
|
|
151
|
-
* This is a special case, because, this component has a temporary component displayed before the first focus event
|
|
152
|
-
*/
|
|
153
|
-
private updateTabIndex;
|
|
154
|
-
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>;
|
|
156
|
-
static ngAcceptInputType_mobile: unknown;
|
|
157
|
-
static ngAcceptInputType_clearable: unknown;
|
|
158
|
-
static ngAcceptInputType_tabindex: unknown;
|
|
159
|
-
}
|
|
160
|
-
export {};
|