@webilix/ngx-helper-m3 0.0.16 → 0.0.17

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.
@@ -0,0 +1,19 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { Coordinate } from 'ol/coordinate';
3
+ import { INgxHelperCoordinates, INgxHelperCoordinatesConfig } from '../ngx-helper-coordinates.interface';
4
+ import * as i0 from "@angular/core";
5
+ export declare class GetComponent implements OnInit {
6
+ coordinates?: INgxHelperCoordinates;
7
+ config?: Partial<INgxHelperCoordinatesConfig>;
8
+ close: (coordinates?: INgxHelperCoordinates) => void;
9
+ private map;
10
+ coordinate: Coordinate;
11
+ inputTransformFn: (value: any) => string;
12
+ ngOnInit(): void;
13
+ addLayer(): void;
14
+ checkInputs(latitude: string, longitude: string): void;
15
+ selectCoordinates(): void;
16
+ setCoordinates(event: MouseEvent): void;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<GetComponent, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<GetComponent, "ng-component", never, {}, {}, never, never, true, never>;
19
+ }
@@ -0,0 +1,10 @@
1
+ export interface INgxHelperCoordinates {
2
+ latitude: number;
3
+ longitude: number;
4
+ }
5
+ export interface INgxHelperCoordinatesConfig {
6
+ zoom: number;
7
+ size: number;
8
+ color: string;
9
+ view: INgxHelperCoordinates;
10
+ }
@@ -0,0 +1,16 @@
1
+ import { ApplicationRef, Injector } from '@angular/core';
2
+ import { INgxHelperCoordinates, INgxHelperCoordinatesConfig } from './ngx-helper-coordinates.interface';
3
+ import * as i0 from "@angular/core";
4
+ export declare class NgxHelperCoordinatesService {
5
+ private readonly applicationRef;
6
+ private readonly injector;
7
+ constructor(applicationRef: ApplicationRef, injector: Injector);
8
+ get(): Promise<INgxHelperCoordinates>;
9
+ get(coordinates: INgxHelperCoordinates): Promise<INgxHelperCoordinates>;
10
+ get(config: Partial<INgxHelperCoordinatesConfig>): Promise<INgxHelperCoordinates>;
11
+ get(coordinates: INgxHelperCoordinates, config: Partial<INgxHelperCoordinatesConfig>): Promise<INgxHelperCoordinates>;
12
+ show(coordinates: INgxHelperCoordinates): void;
13
+ show(coordinates: INgxHelperCoordinates, config: Partial<Omit<INgxHelperCoordinatesConfig, 'view'>>): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxHelperCoordinatesService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<NgxHelperCoordinatesService>;
16
+ }
@@ -0,0 +1,15 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { INgxHelperCoordinates, INgxHelperCoordinatesConfig } from '../ngx-helper-coordinates.interface';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ShowComponent implements OnInit {
5
+ coordinates: INgxHelperCoordinates;
6
+ config?: Partial<Omit<INgxHelperCoordinatesConfig, 'view'>>;
7
+ close: () => void;
8
+ private map;
9
+ copied?: 'LATITUDE' | 'LONGITUDE';
10
+ private copyTimeout;
11
+ ngOnInit(): void;
12
+ setCopy(type: 'LATITUDE' | 'LONGITUDE'): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShowComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<ShowComponent, "ng-component", never, {}, {}, never, never, true, never>;
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webilix/ngx-helper-m3",
3
- "version": "0.0.16",
3
+ "version": "0.0.17",
4
4
  "author": "Ali Amirnezhad",
5
5
  "description": "Helper library for Angular and Material 3",
6
6
  "repository": {
@@ -24,7 +24,9 @@
24
24
  "@angular/core": ">=19.0.5",
25
25
  "@angular/material": ">=19.0.4",
26
26
  "@webilix/helper-library": ">=6.0.2",
27
- "@webilix/jalali-date-time": ">=2.0.5"
27
+ "@webilix/jalali-date-time": ">=2.0.5",
28
+ "ngx-mask": ">=19.0.6",
29
+ "ol": ">=10.3.1"
28
30
  },
29
31
  "dependencies": {
30
32
  "tslib": "^2.3.0"
package/public-api.d.ts CHANGED
@@ -17,6 +17,8 @@ export * from './lib/confirm/confirm.interface';
17
17
  export * from './lib/confirm/confirm.service';
18
18
  export * from './lib/container/container.interface';
19
19
  export * from './lib/container/container.service';
20
+ export * from './lib/coordinates/ngx-helper-coordinates.interface';
21
+ export * from './lib/coordinates/ngx-helper-coordinates.service';
20
22
  export * from './lib/http/ngx-helper-http.interface';
21
23
  export * from './lib/http/ngx-helper-http.service';
22
24
  export * from './lib/toast/ngx-helper-toast.interface';