@sumaris-net/ngx-components 2.2.2 → 2.2.3
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/esm2020/public_api.mjs +3 -1
- package/esm2020/src/app/core/services/platform.service.mjs +6 -4
- package/esm2020/src/app/shared/file/json.utils.mjs +33 -0
- package/esm2020/src/app/shared/geolocation/geolocation.utils.mjs +41 -0
- package/esm2020/src/app/shared/material/latlong/testing/latlong.test.mjs +44 -16
- package/fesm2015/sumaris-net.ngx-components.mjs +110 -14
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +111 -11
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +2 -0
- package/src/app/shared/file/json.utils.d.ts +11 -0
- package/src/app/shared/geolocation/geolocation.utils.d.ts +11 -0
- package/src/app/shared/material/latlong/testing/latlong.test.d.ts +5 -2
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -97,9 +97,11 @@ export * from './src/app/shared/observables';
|
|
|
97
97
|
export * from './src/app/shared/events';
|
|
98
98
|
export * from './src/app/shared/alerts';
|
|
99
99
|
export * from './src/app/shared/platforms';
|
|
100
|
+
export * from './src/app/shared/geolocation/geolocation.utils';
|
|
100
101
|
export * from './src/app/shared/file/file.utils';
|
|
101
102
|
export * from './src/app/shared/file/csv.utils';
|
|
102
103
|
export * from './src/app/shared/file/images.utils';
|
|
104
|
+
export * from './src/app/shared/file/json.utils';
|
|
103
105
|
export * from './src/app/shared/file/uri.utils';
|
|
104
106
|
export * from './src/app/shared/hotkeys/shared-hotkeys.module';
|
|
105
107
|
export * from './src/app/shared/hotkeys/hotkeys.service';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PlatformService } from '../../core/services/platform.service';
|
|
2
|
+
export declare class IPosition {
|
|
3
|
+
latitude: number;
|
|
4
|
+
longitude: number;
|
|
5
|
+
}
|
|
6
|
+
export declare abstract class GeolocationUtils {
|
|
7
|
+
/**
|
|
8
|
+
* Get the position by geo loc sensor
|
|
9
|
+
*/
|
|
10
|
+
static getCurrentPosition(platform: PlatformService, options?: PositionOptions): Promise<IPosition>;
|
|
11
|
+
}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
3
|
+
import { PlatformService } from '../../../../core/services/platform.service';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class LatLongTestPage implements OnInit {
|
|
5
6
|
protected formBuilder: UntypedFormBuilder;
|
|
7
|
+
protected platform: PlatformService;
|
|
6
8
|
form: UntypedFormGroup;
|
|
7
|
-
|
|
9
|
+
geoPositionMessage: string;
|
|
10
|
+
constructor(formBuilder: UntypedFormBuilder, platform: PlatformService);
|
|
8
11
|
ngOnInit(): void;
|
|
9
12
|
loadData(): Promise<void>;
|
|
10
13
|
doSubmit(event: any): void;
|
|
11
|
-
geoPosition(event: Event):
|
|
14
|
+
geoPosition(event: Event, controlName?: string): Promise<void>;
|
|
12
15
|
stringify: {
|
|
13
16
|
(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
|
|
14
17
|
(value: any, replacer?: (string | number)[], space?: string | number): string;
|