@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sumaris-net/ngx-components",
3
3
  "description": "SUMARiS Angular components",
4
- "version": "2.2.2",
4
+ "version": "2.2.3",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
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
+ export declare class JsonUtils {
2
+ static exportToFile(content: any, opts?: {
3
+ filename?: string;
4
+ encoding?: string;
5
+ type?: string;
6
+ }): void;
7
+ static writeToFile(content: any, opts?: {
8
+ filename?: string;
9
+ type?: string;
10
+ }): File;
11
+ }
@@ -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
- constructor(formBuilder: UntypedFormBuilder);
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): boolean;
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;