@sumaris-net/ngx-components 18.2.28-alpha2 → 18.2.28-alpha3
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/public_api.mjs +2 -1
- package/esm2022/src/app/core/services/storage/entity-store.class.mjs +5 -7
- package/esm2022/src/app/core/table/testing/table.testing.mjs +2 -2
- package/esm2022/src/app/shared/inputs.mjs +6 -2
- package/esm2022/src/app/shared/material/latlong/latlong.utils.mjs +19 -27
- package/esm2022/src/app/shared/material/latlong/material.latlong.mjs +16 -7
- package/esm2022/src/app/shared/material/latlong/material.latlong.module.mjs +6 -5
- package/esm2022/src/app/shared/material/latlong/material.latlong2.mjs +607 -0
- package/esm2022/src/app/shared/material/latlong/testing/latlong.test.mjs +18 -7
- package/fesm2022/sumaris-net.ngx-components.mjs +671 -82
- 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/shared/material/latlong/latlong.utils.d.ts +12 -1
- package/src/app/shared/material/latlong/material.latlong.d.ts +1 -1
- package/src/app/shared/material/latlong/material.latlong.module.d.ts +15 -14
- package/src/app/shared/material/latlong/material.latlong2.d.ts +160 -0
- package/src/app/shared/material/latlong/testing/latlong.test.d.ts +3 -2
- package/src/assets/i18n/en-US.json +10 -1
- package/src/assets/i18n/en.json +10 -1
- package/src/assets/i18n/fr.json +10 -1
- package/src/assets/manifest.json +1 -1
- package/src/theme/_material.scss +33 -2
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export { MatDateShort } from './src/app/shared/material/datetime/material.datesh
|
|
|
23
23
|
export { MatDateTime } from './src/app/shared/material/datetime/material.datetime';
|
|
24
24
|
export { MatDate } from './src/app/shared/material/datetime/material.date';
|
|
25
25
|
export { MatLatLongField } from './src/app/shared/material/latlong/material.latlong';
|
|
26
|
+
export { MatLatLongField2 } from './src/app/shared/material/latlong/material.latlong2';
|
|
26
27
|
export * from './src/app/shared/material/latlong/material.latlong.module';
|
|
27
28
|
export * from './src/app/shared/material/duration/duration.module';
|
|
28
29
|
export { MatDuration } from './src/app/shared/material/duration/material.duration';
|
|
@@ -14,8 +14,19 @@ export declare class LatLongFormatOptions {
|
|
|
14
14
|
inputSelectionRanges?: number[][];
|
|
15
15
|
fixLatLong?: boolean;
|
|
16
16
|
}
|
|
17
|
-
export declare const
|
|
17
|
+
export declare const LAT_LONG_PATTERN_MAX_DECIMALS = 3;
|
|
18
|
+
export declare const LAT_LONG_VALUE_MAX_DECIMALS = 7;
|
|
18
19
|
export declare function formatLatLong(value: number, type: LatLongType, opts?: Partial<LatLongFormatOptions>): string;
|
|
19
20
|
export declare function formatLatitude(value: number | null, opts?: Partial<LatLongFormatOptions>): string;
|
|
20
21
|
export declare function formatLongitude(value: number | null, opts?: Partial<LatLongFormatOptions>): string;
|
|
22
|
+
export declare function splitNumberToFieldsDD(value: number, opts: LatLongFormatOptions & {
|
|
23
|
+
longitude: boolean;
|
|
24
|
+
}): (number | string)[];
|
|
25
|
+
export declare function splitNumberToFieldsDDMM(value: number, opts: LatLongFormatOptions & {
|
|
26
|
+
longitude: boolean;
|
|
27
|
+
}): number[];
|
|
28
|
+
export declare function splitNumberToFieldsDDMMSS(value: number, opts: LatLongFormatOptions & {
|
|
29
|
+
longitude: boolean;
|
|
30
|
+
}): number[];
|
|
21
31
|
export declare function parseLatitudeOrLongitude(input: string, pattern: string, maxDecimals?: number, placeholderChar?: string): number | null;
|
|
32
|
+
export declare function computeDecimalDegrees(degrees: number, minutes: number, seconds: number, sign: -1 | 1, maxDecimals?: number): number;
|
|
@@ -68,6 +68,6 @@ export declare class MatLatLongField implements OnInit, OnDestroy, ControlValueA
|
|
|
68
68
|
private parseValue;
|
|
69
69
|
private markForCheck;
|
|
70
70
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatLatLongField, [null, null, null, { optional: true; }, null]>;
|
|
71
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatLatLongField, "mat-latlong-field", never, { "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "type": { "alias": "type"; "required": false; }; "pattern": { "alias": "latLongPattern"; "required": false; }; "required": { "alias": "required"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "defaultSign": { "alias": "defaultSign"; "required": false; }; "maxDecimals": { "alias": "maxDecimals"; "required": false; }; "placeholderChar": { "alias": "placeholderChar"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; }, never, ["[matPrefix]", "[matSuffix]", "mat-error,[matError]", "mat-hint:not([align='end']),[matHint]", "mat-hint[align='end']"], false, never>;
|
|
71
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatLatLongField, "mat-latlong-field-old", never, { "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "type": { "alias": "type"; "required": false; }; "pattern": { "alias": "latLongPattern"; "required": false; }; "required": { "alias": "required"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "defaultSign": { "alias": "defaultSign"; "required": false; }; "maxDecimals": { "alias": "maxDecimals"; "required": false; }; "placeholderChar": { "alias": "placeholderChar"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; }, { "onBlur": "onBlur"; "onFocus": "onFocus"; }, never, ["[matPrefix]", "[matSuffix]", "mat-error,[matError]", "mat-hint:not([align='end']),[matHint]", "mat-hint[align='end']"], false, never>;
|
|
72
72
|
static ngAcceptInputType_mobile: unknown;
|
|
73
73
|
}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./material.latlong";
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "@
|
|
5
|
-
import * as i4 from "@angular
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "../../
|
|
8
|
-
import * as i7 from "
|
|
9
|
-
import * as i8 from "@angular/material/
|
|
10
|
-
import * as i9 from "@angular/material/
|
|
11
|
-
import * as i10 from "@angular/material/
|
|
12
|
-
import * as i11 from "@
|
|
13
|
-
import * as i12 from "@angular
|
|
14
|
-
import * as i13 from "@angular/material/
|
|
15
|
-
import * as i14 from "@
|
|
3
|
+
import * as i2 from "./material.latlong2";
|
|
4
|
+
import * as i3 from "@angular/common";
|
|
5
|
+
import * as i4 from "@ionic/angular";
|
|
6
|
+
import * as i5 from "@angular/forms";
|
|
7
|
+
import * as i6 from "../../directives/directives.module";
|
|
8
|
+
import * as i7 from "../../pipes/pipes.module";
|
|
9
|
+
import * as i8 from "@angular/material/core";
|
|
10
|
+
import * as i9 from "@angular/material/form-field";
|
|
11
|
+
import * as i10 from "@angular/material/input";
|
|
12
|
+
import * as i11 from "@angular/material/button";
|
|
13
|
+
import * as i12 from "@maskito/angular";
|
|
14
|
+
import * as i13 from "@angular/material/icon";
|
|
15
|
+
import * as i14 from "@angular/material/select";
|
|
16
|
+
import * as i15 from "@ngx-translate/core";
|
|
16
17
|
export declare class SharedMatLatLongModule {
|
|
17
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedMatLatLongModule, never>;
|
|
18
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedMatLatLongModule, [typeof i1.MatLatLongField], [typeof
|
|
19
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedMatLatLongModule, [typeof i1.MatLatLongField, typeof i2.MatLatLongField2], [typeof i3.CommonModule, typeof i4.IonicModule, typeof i5.ReactiveFormsModule, typeof i6.SharedDirectivesModule, typeof i7.SharedPipesModule, typeof i8.MatCommonModule, typeof i9.MatFormFieldModule, typeof i10.MatInputModule, typeof i11.MatButtonModule, typeof i12.MaskitoDirective, typeof i13.MatIconModule, typeof i14.MatSelectModule, typeof i15.TranslateModule], [typeof i1.MatLatLongField, typeof i2.MatLatLongField2]>;
|
|
19
20
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedMatLatLongModule>;
|
|
20
21
|
}
|
|
@@ -0,0 +1,160 @@
|
|
|
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 {};
|
|
@@ -9,13 +9,14 @@ export declare class LatLongTestPage implements OnInit {
|
|
|
9
9
|
protected platform: PlatformService;
|
|
10
10
|
form: UntypedFormGroup;
|
|
11
11
|
geoPositionMessage: string;
|
|
12
|
-
mode: 'desktop' | '
|
|
12
|
+
mode: 'mobile' | 'desktop' | 'dev' | 'temp';
|
|
13
|
+
selectedFormat: string;
|
|
13
14
|
appearance: MatFormFieldAppearance;
|
|
14
15
|
constructor(formBuilder: UntypedFormBuilder, platform: PlatformService);
|
|
15
16
|
ngOnInit(): void;
|
|
16
17
|
toggleMode(value: any): void;
|
|
17
18
|
loadData(): Promise<void>;
|
|
18
|
-
doSubmit(event:
|
|
19
|
+
doSubmit(event: Event): void;
|
|
19
20
|
geoPosition(event: Event, controlName?: string): Promise<void>;
|
|
20
21
|
toggleAppearance(event: MatCheckboxChange): void;
|
|
21
22
|
stringify: {
|
|
@@ -87,7 +87,16 @@
|
|
|
87
87
|
"LAT_SIGN_S": "S",
|
|
88
88
|
"LONG_SIGN_PLACEHOLDER": "E|W",
|
|
89
89
|
"LONG_SIGN_E": "E",
|
|
90
|
-
"LONG_SIGN_W": "W"
|
|
90
|
+
"LONG_SIGN_W": "W",
|
|
91
|
+
"SINGLE_FIELD_PATTERN": {
|
|
92
|
+
"DD": "DD",
|
|
93
|
+
"DD_PLACEHOLDER": "± DD.DDDDDDD",
|
|
94
|
+
"DDD": "DDD",
|
|
95
|
+
"DDD_PLACEHOLDER": "±DDD.DDDDDDD",
|
|
96
|
+
"MM": "MM",
|
|
97
|
+
"MM_MMM": "MM.MMM",
|
|
98
|
+
"SS_SS": "SS.SS"
|
|
99
|
+
}
|
|
91
100
|
},
|
|
92
101
|
"METADATA": "Metadata:",
|
|
93
102
|
"DAY_UNIT": "j",
|
package/src/assets/i18n/en.json
CHANGED
|
@@ -86,7 +86,16 @@
|
|
|
86
86
|
"LAT_SIGN_S": "S",
|
|
87
87
|
"LONG_SIGN_PLACEHOLDER": "E|W",
|
|
88
88
|
"LONG_SIGN_E": "E",
|
|
89
|
-
"LONG_SIGN_W": "W"
|
|
89
|
+
"LONG_SIGN_W": "W",
|
|
90
|
+
"SINGLE_FIELD_PATTERN": {
|
|
91
|
+
"DD": "DD",
|
|
92
|
+
"DD_PLACEHOLDER": "± DD.DDDDDDD",
|
|
93
|
+
"DDD": "DDD",
|
|
94
|
+
"DDD_PLACEHOLDER": "±DDD.DDDDDDD",
|
|
95
|
+
"MM": "MM",
|
|
96
|
+
"MM_MMM": "MM.MMM",
|
|
97
|
+
"SS_SS": "SS.SS"
|
|
98
|
+
}
|
|
90
99
|
},
|
|
91
100
|
"METADATA": "Metadata:",
|
|
92
101
|
"DAY_UNIT": "j",
|
package/src/assets/i18n/fr.json
CHANGED
|
@@ -86,7 +86,16 @@
|
|
|
86
86
|
"LAT_SIGN_S": "S",
|
|
87
87
|
"LONG_SIGN_PLACEHOLDER": "E|W",
|
|
88
88
|
"LONG_SIGN_E": "E",
|
|
89
|
-
"LONG_SIGN_W": "W"
|
|
89
|
+
"LONG_SIGN_W": "W",
|
|
90
|
+
"SINGLE_FIELD_PATTERN": {
|
|
91
|
+
"DD": "DD",
|
|
92
|
+
"DD_PLACEHOLDER": "± DD.DDDDDDD",
|
|
93
|
+
"DDD": "DDD",
|
|
94
|
+
"DDD_PLACEHOLDER": "±DDD.DDDDDDD",
|
|
95
|
+
"MM": "MM",
|
|
96
|
+
"MM_MMM": "MM.MMM",
|
|
97
|
+
"SS_SS": "SS.SS"
|
|
98
|
+
}
|
|
90
99
|
},
|
|
91
100
|
"METADATA": "Metadata:",
|
|
92
101
|
"DAY_UNIT": "j",
|
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-alpha3",
|
|
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
|
@@ -11,11 +11,13 @@
|
|
|
11
11
|
// --------------------------------------------------
|
|
12
12
|
.mat-mdc-tab-group.mat-secondary, .mat-mdc-tab-nav-bar.mat-secondary {
|
|
13
13
|
background-color: var(--ion-color-secondary, $secondary);
|
|
14
|
+
|
|
14
15
|
.mat-mdc-tab-link {
|
|
15
16
|
color: var(--ion-color-secondary-contrast);
|
|
16
17
|
--mat-tab-header-label-text-tracking: normal;
|
|
17
18
|
}
|
|
18
19
|
}
|
|
20
|
+
|
|
19
21
|
.mat-mdc-tab-group.mat-primary .mat-ink-bar, .mat-mdc-tab-nav-bar.mat-primary .mat-ink-bar {
|
|
20
22
|
background-color: var(--ion-color-primary, $primary);
|
|
21
23
|
}
|
|
@@ -27,6 +29,7 @@
|
|
|
27
29
|
--mat-tab-header-inactive-ripple-color: rgba(var(--ion-color-primary-rgb), 0.18);
|
|
28
30
|
--mat-tab-header-pagination-icon-color: $text-color;
|
|
29
31
|
}
|
|
32
|
+
|
|
30
33
|
.mat-mdc-tab-header {
|
|
31
34
|
--mat-tab-header-label-text-tracking: 0.0178571429em;
|
|
32
35
|
}
|
|
@@ -53,6 +56,7 @@
|
|
|
53
56
|
.mat-stroked-button.mat-primary {
|
|
54
57
|
color: var(--ion-color-tertiary, $tertiary);
|
|
55
58
|
}
|
|
59
|
+
|
|
56
60
|
.mat-button.mat-secondary,
|
|
57
61
|
.mat-icon.mat-secondary,
|
|
58
62
|
.mat-icon-button.mat-secondary,
|
|
@@ -61,6 +65,7 @@
|
|
|
61
65
|
.mat-stroked-button.mat-secondary {
|
|
62
66
|
color: var(--ion-color-secondary, $secondary);
|
|
63
67
|
}
|
|
68
|
+
|
|
64
69
|
.mat-button.mat-accent,
|
|
65
70
|
.mat-icon.mat-accent,
|
|
66
71
|
.mat-icon-button.mat-accent,
|
|
@@ -69,20 +74,24 @@
|
|
|
69
74
|
.mat-stroked-button.mat-accent {
|
|
70
75
|
color: var(--ion-color-accent, $accent);
|
|
71
76
|
}
|
|
77
|
+
|
|
72
78
|
.mdc-button {
|
|
73
79
|
--mdc-typography-button-letter-spacing: normal;
|
|
74
80
|
--mdc-text-button-label-text-tracking: normal;
|
|
75
81
|
}
|
|
82
|
+
|
|
76
83
|
.mat-mdc-menu-item {
|
|
77
84
|
--mat-menu-item-label-text-tracking: normal;
|
|
78
85
|
--mat-menu-item-label-text-size: 14px;
|
|
79
86
|
--mat-menu-item-icon-color: #0000008a;
|
|
80
87
|
}
|
|
88
|
+
|
|
81
89
|
.mat-mdc-option {
|
|
82
90
|
--mat-option-label-text-tracking: normal;
|
|
83
91
|
--mat-option-label-text-size: 16px;
|
|
84
92
|
min-height: var(--mat-option-min-height, 48px);
|
|
85
93
|
}
|
|
94
|
+
|
|
86
95
|
.mat-mdc-select {
|
|
87
96
|
--mat-select-trigger-text-font: inherit;
|
|
88
97
|
--mat-select-trigger-text-tracking: normal;
|
|
@@ -95,10 +104,12 @@
|
|
|
95
104
|
background-color: var(--ion-color-tertiary);
|
|
96
105
|
color: var(--ion-color-tertiary-contrast);
|
|
97
106
|
}
|
|
107
|
+
|
|
98
108
|
.mat-badge-accent .mat-badge-content {
|
|
99
109
|
background-color: var(--ion-color-accent);
|
|
100
110
|
color: var(--ion-color-accent-contrast);
|
|
101
111
|
}
|
|
112
|
+
|
|
102
113
|
.mat-badge-warn .mat-badge-content {
|
|
103
114
|
background-color: var(--ion-color-warning);
|
|
104
115
|
color: var(--ion-color-warning-contrast);
|
|
@@ -114,9 +125,11 @@
|
|
|
114
125
|
.mat-progress-bar-buffer {
|
|
115
126
|
background-color: var(--background-color);
|
|
116
127
|
}
|
|
117
|
-
|
|
128
|
+
|
|
129
|
+
.mat-progress-bar-primary.mat-progress-bar-fill:after {
|
|
118
130
|
background-color: var(--progress-primary-color);
|
|
119
131
|
}
|
|
132
|
+
|
|
120
133
|
.mat-progress-bar-secondary.mat-progress-bar-fill:after {
|
|
121
134
|
background-color: var(--progress-secondary-color);
|
|
122
135
|
}
|
|
@@ -167,7 +180,7 @@ mat-icon[slot] {
|
|
|
167
180
|
mat-hint,
|
|
168
181
|
.mat-hint,
|
|
169
182
|
mat-error,
|
|
170
|
-
.mat-error{
|
|
183
|
+
.mat-error {
|
|
171
184
|
font-size: 75%;
|
|
172
185
|
}
|
|
173
186
|
}
|
|
@@ -175,8 +188,26 @@ mat-icon[slot] {
|
|
|
175
188
|
.mat-mdc-form-field-infix {
|
|
176
189
|
label {
|
|
177
190
|
width: 100% !important;
|
|
191
|
+
|
|
178
192
|
mat-label {
|
|
179
193
|
text-overflow: ellipsis;
|
|
180
194
|
}
|
|
181
195
|
}
|
|
182
196
|
}
|
|
197
|
+
|
|
198
|
+
// Latitude/Longitude component
|
|
199
|
+
.mat-latlong-form-field {
|
|
200
|
+
|
|
201
|
+
.mat-mdc-form-field-infix {
|
|
202
|
+
display: inline-flex;
|
|
203
|
+
|
|
204
|
+
.mat-mdc-select.sign {
|
|
205
|
+
max-width: 2em;
|
|
206
|
+
|
|
207
|
+
.mat-mdc-select-trigger {
|
|
208
|
+
align-items: baseline;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
}
|