@sumaris-net/ngx-components 1.19.13-rc3 → 1.19.13
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/bundles/sumaris-net.ngx-components.umd.js +56 -52
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/shared/material/datetime/material.date.js +2 -2
- package/esm2015/src/app/shared/material/datetime/material.dateshort.js +2 -2
- package/esm2015/src/app/shared/material/latlong/latlong.utils.js +1 -1
- package/esm2015/src/app/shared/material/latlong/material.latlong.js +19 -16
- package/esm2015/src/app/shared/material/latlong/testing/latlong.test.js +2 -2
- package/esm2015/src/app/shared/pipes/latlong-format.pipe.js +17 -24
- package/esm2015/src/app/vendor.js +7 -1
- package/fesm2015/sumaris-net.ngx-components.js +48 -46
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/material/latlong/latlong.utils.d.ts +2 -2
- package/src/app/shared/material/latlong/material.latlong.d.ts +11 -7
- package/src/app/shared/pipes/latlong-format.pipe.d.ts +6 -4
- package/src/app/vendor.d.ts +5 -0
- package/sumaris-net.ngx-components.metadata.json +1 -1
package/package.json
CHANGED
|
@@ -8,6 +8,6 @@ export declare class LatLongFormatOptions {
|
|
|
8
8
|
}
|
|
9
9
|
export declare type LatLongFormatFn = (value: number | null, opts?: LatLongFormatOptions) => string;
|
|
10
10
|
export declare const LAT_LONG_DEFAULT_MAX_DECIMALS = 3;
|
|
11
|
-
export declare function formatLatitude(value: number | null, opts?: LatLongFormatOptions): string;
|
|
12
|
-
export declare function formatLongitude(value: number | null, opts?: LatLongFormatOptions): string;
|
|
11
|
+
export declare function formatLatitude(value: number | null, opts?: Partial<LatLongFormatOptions>): string;
|
|
12
|
+
export declare function formatLongitude(value: number | null, opts?: Partial<LatLongFormatOptions>): string;
|
|
13
13
|
export declare function parseLatitudeOrLongitude(input: string, pattern: string, maxDecimals?: number, placeholderChar?: string): number | null;
|
|
@@ -12,11 +12,11 @@ export declare class MatLatLongField implements OnInit, OnDestroy, ControlValueA
|
|
|
12
12
|
private _onChangeCallback;
|
|
13
13
|
private _onTouchedCallback;
|
|
14
14
|
private _subscription;
|
|
15
|
+
private _formatOptions;
|
|
15
16
|
protected disabling: boolean;
|
|
16
17
|
protected writing: boolean;
|
|
17
18
|
_readonly: boolean;
|
|
18
|
-
|
|
19
|
-
formatFnOptions: LatLongFormatOptions;
|
|
19
|
+
_formatFn: LatLongFormatFn;
|
|
20
20
|
textMaskConfig: TextMaskConfig;
|
|
21
21
|
textFormControl: FormControl;
|
|
22
22
|
signFormControl: FormControl;
|
|
@@ -24,21 +24,20 @@ export declare class MatLatLongField implements OnInit, OnDestroy, ControlValueA
|
|
|
24
24
|
value: number;
|
|
25
25
|
inputPlaceholder: string;
|
|
26
26
|
showSignControl: boolean;
|
|
27
|
-
mobile: boolean;
|
|
28
27
|
get disabled(): any;
|
|
29
28
|
formControl: FormControl;
|
|
30
29
|
formControlName: string;
|
|
31
|
-
placeholder: string;
|
|
32
30
|
type: 'latitude' | 'longitude';
|
|
33
31
|
pattern: LatLongPattern;
|
|
32
|
+
required: boolean;
|
|
33
|
+
floatLabel: FloatLabelType;
|
|
34
|
+
placeholder: string;
|
|
35
|
+
tabindex: number;
|
|
34
36
|
defaultSign: '-' | '+';
|
|
35
37
|
maxDecimals: number;
|
|
36
38
|
placeholderChar: string;
|
|
37
|
-
floatLabel: FloatLabelType;
|
|
38
39
|
set readonly(value: boolean);
|
|
39
40
|
get readonly(): boolean;
|
|
40
|
-
required: boolean;
|
|
41
|
-
tabindex: number;
|
|
42
41
|
onBlur: EventEmitter<FocusEvent>;
|
|
43
42
|
onFocus: EventEmitter<FocusEvent>;
|
|
44
43
|
inputElement: ElementRef;
|
|
@@ -49,6 +48,11 @@ export declare class MatLatLongField implements OnInit, OnDestroy, ControlValueA
|
|
|
49
48
|
registerOnChange(fn: any): void;
|
|
50
49
|
registerOnTouched(fn: any): void;
|
|
51
50
|
setDisabledState(isDisabled: boolean): void;
|
|
51
|
+
/**
|
|
52
|
+
* Format value to display as string (no placeholder char, and show sign)
|
|
53
|
+
* @param value
|
|
54
|
+
* @param opts
|
|
55
|
+
*/
|
|
52
56
|
_format(value: number, opts?: Partial<LatLongFormatOptions>): string;
|
|
53
57
|
_onFocus(event: FocusEvent): boolean;
|
|
54
58
|
_onBlur(event: FocusEvent): void;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { formatLatitude, formatLongitude } from '../material/latlong/latlong.utils';
|
|
3
|
-
export declare class LatLongFormatPipe implements PipeTransform {
|
|
4
|
-
transform(value: number, args?: any): string | Promise<string>;
|
|
5
|
-
}
|
|
2
|
+
import { formatLatitude, formatLongitude, LatLongFormatOptions } from '../material/latlong/latlong.utils';
|
|
6
3
|
export declare class LatitudeFormatPipe implements PipeTransform {
|
|
7
4
|
transform: typeof formatLatitude;
|
|
8
5
|
}
|
|
9
6
|
export declare class LongitudeFormatPipe implements PipeTransform {
|
|
10
7
|
transform: typeof formatLongitude;
|
|
11
8
|
}
|
|
9
|
+
export declare class LatLongFormatPipe implements PipeTransform {
|
|
10
|
+
transform(value: number, opts?: Partial<LatLongFormatOptions> & {
|
|
11
|
+
type: 'latitude' | 'longitude';
|
|
12
|
+
}): string | Promise<string>;
|
|
13
|
+
}
|
package/src/app/vendor.d.ts
CHANGED
|
@@ -2,3 +2,8 @@ import 'tweetnacl';
|
|
|
2
2
|
import 'tweetnacl-util';
|
|
3
3
|
import 'scrypt-async';
|
|
4
4
|
import 'hammerjs';
|
|
5
|
+
import * as momentImported from 'moment';
|
|
6
|
+
import { Moment } from 'moment';
|
|
7
|
+
declare const moment: typeof momentImported;
|
|
8
|
+
declare const tz: typeof momentImported;
|
|
9
|
+
export { moment, tz, Moment };
|