@guajiritos/map 18.0.1 → 19.0.0
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/README.md +159 -159
- package/fesm2022/guajiritos-map.mjs +31 -26
- package/fesm2022/guajiritos-map.mjs.map +1 -1
- package/package.json +5 -7
- package/esm2022/guajiritos-map.mjs +0 -5
- package/esm2022/interfaces/interfaces.mjs +0 -15
- package/esm2022/lib/guajiritos-map.component.mjs +0 -403
- package/esm2022/public-api.mjs +0 -6
package/README.md
CHANGED
|
@@ -1,159 +1,159 @@
|
|
|
1
|
-
# Guajiritos Map
|
|
2
|
-
|
|
3
|
-
`Guajiritos Map` es una librería para Angular que permite la configuración de un mapa de `Leaflet` para su posterior uso de distintas formas.
|
|
4
|
-
|
|
5
|
-
## Instalación
|
|
6
|
-
|
|
7
|
-
Con `npm`
|
|
8
|
-
|
|
9
|
-
```sh
|
|
10
|
-
npm i @guajiritos/map --save
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
Con `yarn`
|
|
14
|
-
|
|
15
|
-
```sh
|
|
16
|
-
yarn add @guajiritos/map
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Nota
|
|
20
|
-
|
|
21
|
-
Para el uso correcto de esta librería es necesario tener instalado previamente `@ngular/material`, `leaflet` y `@types/leaflet`. En caso de no tener instalado las librerías anteriormente descritas el uso de la librería `@guajiritos/map` derivaría en errores para su aplicación.
|
|
22
|
-
|
|
23
|
-
## Importación
|
|
24
|
-
|
|
25
|
-
Importar la librería como se muestra a continuación.
|
|
26
|
-
|
|
27
|
-
```ts
|
|
28
|
-
import {GuajiritosMap} from "@guajiritos/map";
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
Luego añadirla a la sección imports.
|
|
32
|
-
|
|
33
|
-
```ts
|
|
34
|
-
imports: [
|
|
35
|
-
...
|
|
36
|
-
GuajiritosMap,
|
|
37
|
-
]
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
## Estilos
|
|
41
|
-
|
|
42
|
-
Para usar correctamente los estilos del mapa debe poner en su archivo `angular.json` la línea de código `"./node_modules/leaflet/dist/leaflet.css",` como se muestra a continuación
|
|
43
|
-
|
|
44
|
-
```json
|
|
45
|
-
{
|
|
46
|
-
...
|
|
47
|
-
"projects": {
|
|
48
|
-
"angular-leaflet-app": {
|
|
49
|
-
...
|
|
50
|
-
"architect": {
|
|
51
|
-
"build": {
|
|
52
|
-
...
|
|
53
|
-
"options": {
|
|
54
|
-
...
|
|
55
|
-
"styles": [
|
|
56
|
-
"./node_modules/leaflet/dist/leaflet.css",
|
|
57
|
-
"src/styles.css"
|
|
58
|
-
],
|
|
59
|
-
...
|
|
60
|
-
}
|
|
61
|
-
...
|
|
62
|
-
}
|
|
63
|
-
...
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
Para que los marcadores de leaflet puedan ser vistos en el mapa debe agregar al archivo `angular.json` los siguientes etilos como se muestra a continuación
|
|
71
|
-
|
|
72
|
-
```json
|
|
73
|
-
{
|
|
74
|
-
...
|
|
75
|
-
"projects": {
|
|
76
|
-
"angular-leaflet-example": {
|
|
77
|
-
...
|
|
78
|
-
"architect": {
|
|
79
|
-
"build": {
|
|
80
|
-
...
|
|
81
|
-
"options": {
|
|
82
|
-
...
|
|
83
|
-
"assets": [
|
|
84
|
-
"src/favicon.ico",
|
|
85
|
-
"src/assets",
|
|
86
|
-
{
|
|
87
|
-
"glob": "**/*",
|
|
88
|
-
"input": "node_modules/leaflet/dist/images/",
|
|
89
|
-
"output": "./assets"
|
|
90
|
-
}
|
|
91
|
-
],
|
|
92
|
-
...
|
|
93
|
-
}
|
|
94
|
-
...
|
|
95
|
-
}
|
|
96
|
-
...
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
Nota: En caso de querer quitar el cartel pequeño en la esquina inferior derecha, basta con poner en el `styles.css` o `styles.scss` las siguientes líneas de código
|
|
104
|
-
|
|
105
|
-
```scss
|
|
106
|
-
.leaflet-bottom.leaflet-right {
|
|
107
|
-
display: none;
|
|
108
|
-
}
|
|
109
|
-
```
|
|
110
|
-
|
|
111
|
-
## Uso
|
|
112
|
-
|
|
113
|
-
En nuestro archivo HTML debemos agregar la etiqueta `guajiritos-multi-chips` como se muestra a continuación.
|
|
114
|
-
|
|
115
|
-
```html
|
|
116
|
-
|
|
117
|
-
<guajiritos-map [latLabel]="latLabel" [latPlaceholder]="latPlaceholder" [latError]="latError" [lngLabel]="lngLabel"
|
|
118
|
-
[lngPlaceholder]="lngPlaceholder" [lngError]="lngError" [appearance]="appearance" [color]="color"
|
|
119
|
-
[readonly]="false" [hidden]="false" [options]="options" [circle]="circle" [icon]="icon"
|
|
120
|
-
[markers]="markers()" [formControl]="form" (markerDragend)="markerDragEnd($event)">
|
|
121
|
-
</guajiritos-map>
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
Cada una de las propiedades descritas en el ejemplo anterior no son de uso requerido. A continuación se explica cada una de ellas.
|
|
125
|
-
|
|
126
|
-
```text
|
|
127
|
-
latLabel: Representa el label que se va a mostrar cuando se visualice el campo de la latitud.
|
|
128
|
-
|
|
129
|
-
latPlaceholder: Representa el placeholder que se va a mostrar cuando se visualice el campo de la latitud.
|
|
130
|
-
|
|
131
|
-
latError: Representa el error a mostrar cuando el campo latitud se encuentre vacío.
|
|
132
|
-
|
|
133
|
-
lngLabel: Representa el label que se va a mostrar cuando se visualice el campo de la longitud.
|
|
134
|
-
|
|
135
|
-
lngPlaceholder: Representa el placeholder que se va a mostrar cuando se visualice el campo de la longitud.
|
|
136
|
-
|
|
137
|
-
lngError: Representa el error a mostrar cuando el campo longitud se encuentre vacío.
|
|
138
|
-
|
|
139
|
-
appearance: Representa la apariencia del componente. Por defecto toma el valor "outline".
|
|
140
|
-
|
|
141
|
-
color: Representa el color del componente. Por defecto su valor es "accent".
|
|
142
|
-
|
|
143
|
-
readonly: Convierte en solo lectura los campos de latitud y longitud cuando sea necesario. Por defecto su valor es "false".
|
|
144
|
-
|
|
145
|
-
hidden: Fuerza que los campos de latitud y longitud se oculten. Por defecto su valor es "false".
|
|
146
|
-
|
|
147
|
-
options: Representa las opciones iniciales del mapa que va ser mostrado.
|
|
148
|
-
|
|
149
|
-
circle: Utilizado para dibujar un círculo en el mapa.
|
|
150
|
-
|
|
151
|
-
icon: Valor para representar el ícono de los marcadores que serán dibujados sobre el mapa.
|
|
152
|
-
|
|
153
|
-
markers: Listado de marcadores que serán dibujados en el mapa. Éste listado debe estar representado en forma de arreglo de marcadores.
|
|
154
|
-
|
|
155
|
-
formControl: Representa el FormControl al que se hace referencia en el formulario donde la librería es usada.
|
|
156
|
-
|
|
157
|
-
markerDragEnd: Evento que se lanza cuando el marcador es movido de una posición a otra.
|
|
158
|
-
```
|
|
159
|
-
|
|
1
|
+
# Guajiritos Map
|
|
2
|
+
|
|
3
|
+
`Guajiritos Map` es una librería para Angular que permite la configuración de un mapa de `Leaflet` para su posterior uso de distintas formas.
|
|
4
|
+
|
|
5
|
+
## Instalación
|
|
6
|
+
|
|
7
|
+
Con `npm`
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
npm i @guajiritos/map --save
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Con `yarn`
|
|
14
|
+
|
|
15
|
+
```sh
|
|
16
|
+
yarn add @guajiritos/map
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Nota
|
|
20
|
+
|
|
21
|
+
Para el uso correcto de esta librería es necesario tener instalado previamente `@ngular/material`, `leaflet` y `@types/leaflet`. En caso de no tener instalado las librerías anteriormente descritas el uso de la librería `@guajiritos/map` derivaría en errores para su aplicación.
|
|
22
|
+
|
|
23
|
+
## Importación
|
|
24
|
+
|
|
25
|
+
Importar la librería como se muestra a continuación.
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
import {GuajiritosMap} from "@guajiritos/map";
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Luego añadirla a la sección imports.
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
imports: [
|
|
35
|
+
...
|
|
36
|
+
GuajiritosMap,
|
|
37
|
+
]
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Estilos
|
|
41
|
+
|
|
42
|
+
Para usar correctamente los estilos del mapa debe poner en su archivo `angular.json` la línea de código `"./node_modules/leaflet/dist/leaflet.css",` como se muestra a continuación
|
|
43
|
+
|
|
44
|
+
```json
|
|
45
|
+
{
|
|
46
|
+
...
|
|
47
|
+
"projects": {
|
|
48
|
+
"angular-leaflet-app": {
|
|
49
|
+
...
|
|
50
|
+
"architect": {
|
|
51
|
+
"build": {
|
|
52
|
+
...
|
|
53
|
+
"options": {
|
|
54
|
+
...
|
|
55
|
+
"styles": [
|
|
56
|
+
"./node_modules/leaflet/dist/leaflet.css",
|
|
57
|
+
"src/styles.css"
|
|
58
|
+
],
|
|
59
|
+
...
|
|
60
|
+
}
|
|
61
|
+
...
|
|
62
|
+
}
|
|
63
|
+
...
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Para que los marcadores de leaflet puedan ser vistos en el mapa debe agregar al archivo `angular.json` los siguientes etilos como se muestra a continuación
|
|
71
|
+
|
|
72
|
+
```json
|
|
73
|
+
{
|
|
74
|
+
...
|
|
75
|
+
"projects": {
|
|
76
|
+
"angular-leaflet-example": {
|
|
77
|
+
...
|
|
78
|
+
"architect": {
|
|
79
|
+
"build": {
|
|
80
|
+
...
|
|
81
|
+
"options": {
|
|
82
|
+
...
|
|
83
|
+
"assets": [
|
|
84
|
+
"src/favicon.ico",
|
|
85
|
+
"src/assets",
|
|
86
|
+
{
|
|
87
|
+
"glob": "**/*",
|
|
88
|
+
"input": "node_modules/leaflet/dist/images/",
|
|
89
|
+
"output": "./assets"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
...
|
|
93
|
+
}
|
|
94
|
+
...
|
|
95
|
+
}
|
|
96
|
+
...
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Nota: En caso de querer quitar el cartel pequeño en la esquina inferior derecha, basta con poner en el `styles.css` o `styles.scss` las siguientes líneas de código
|
|
104
|
+
|
|
105
|
+
```scss
|
|
106
|
+
.leaflet-bottom.leaflet-right {
|
|
107
|
+
display: none;
|
|
108
|
+
}
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
## Uso
|
|
112
|
+
|
|
113
|
+
En nuestro archivo HTML debemos agregar la etiqueta `guajiritos-multi-chips` como se muestra a continuación.
|
|
114
|
+
|
|
115
|
+
```html
|
|
116
|
+
|
|
117
|
+
<guajiritos-map [latLabel]="latLabel" [latPlaceholder]="latPlaceholder" [latError]="latError" [lngLabel]="lngLabel"
|
|
118
|
+
[lngPlaceholder]="lngPlaceholder" [lngError]="lngError" [appearance]="appearance" [color]="color"
|
|
119
|
+
[readonly]="false" [hidden]="false" [options]="options" [circle]="circle" [icon]="icon"
|
|
120
|
+
[markers]="markers()" [formControl]="form" (markerDragend)="markerDragEnd($event)">
|
|
121
|
+
</guajiritos-map>
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
Cada una de las propiedades descritas en el ejemplo anterior no son de uso requerido. A continuación se explica cada una de ellas.
|
|
125
|
+
|
|
126
|
+
```text
|
|
127
|
+
latLabel: Representa el label que se va a mostrar cuando se visualice el campo de la latitud.
|
|
128
|
+
|
|
129
|
+
latPlaceholder: Representa el placeholder que se va a mostrar cuando se visualice el campo de la latitud.
|
|
130
|
+
|
|
131
|
+
latError: Representa el error a mostrar cuando el campo latitud se encuentre vacío.
|
|
132
|
+
|
|
133
|
+
lngLabel: Representa el label que se va a mostrar cuando se visualice el campo de la longitud.
|
|
134
|
+
|
|
135
|
+
lngPlaceholder: Representa el placeholder que se va a mostrar cuando se visualice el campo de la longitud.
|
|
136
|
+
|
|
137
|
+
lngError: Representa el error a mostrar cuando el campo longitud se encuentre vacío.
|
|
138
|
+
|
|
139
|
+
appearance: Representa la apariencia del componente. Por defecto toma el valor "outline".
|
|
140
|
+
|
|
141
|
+
color: Representa el color del componente. Por defecto su valor es "accent".
|
|
142
|
+
|
|
143
|
+
readonly: Convierte en solo lectura los campos de latitud y longitud cuando sea necesario. Por defecto su valor es "false".
|
|
144
|
+
|
|
145
|
+
hidden: Fuerza que los campos de latitud y longitud se oculten. Por defecto su valor es "false".
|
|
146
|
+
|
|
147
|
+
options: Representa las opciones iniciales del mapa que va ser mostrado.
|
|
148
|
+
|
|
149
|
+
circle: Utilizado para dibujar un círculo en el mapa.
|
|
150
|
+
|
|
151
|
+
icon: Valor para representar el ícono de los marcadores que serán dibujados sobre el mapa.
|
|
152
|
+
|
|
153
|
+
markers: Listado de marcadores que serán dibujados en el mapa. Éste listado debe estar representado en forma de arreglo de marcadores.
|
|
154
|
+
|
|
155
|
+
formControl: Representa el FormControl al que se hace referencia en el formulario donde la librería es usada.
|
|
156
|
+
|
|
157
|
+
markerDragEnd: Evento que se lanza cuando el marcador es movido de una posición a otra.
|
|
158
|
+
```
|
|
159
|
+
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, DestroyRef, signal, EventEmitter, forwardRef,
|
|
2
|
+
import { inject, DestroyRef, signal, EventEmitter, forwardRef, Output, Input, Component } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import * as L from 'leaflet';
|
|
6
6
|
import { LatLng, layerGroup, icon } from 'leaflet';
|
|
7
7
|
import * as i2 from '@angular/material/input';
|
|
8
8
|
import { MatInputModule } from '@angular/material/input';
|
|
9
|
-
import * as
|
|
10
|
-
import { UntypedFormGroup, UntypedFormControl, Validators, NG_VALUE_ACCESSOR, NG_VALIDATORS
|
|
11
|
-
import * as
|
|
9
|
+
import * as i3 from '@angular/forms';
|
|
10
|
+
import { UntypedFormGroup, UntypedFormControl, Validators, ReactiveFormsModule, NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
|
|
11
|
+
import * as i4 from '@angular/material/icon';
|
|
12
12
|
import { MatIconModule } from '@angular/material/icon';
|
|
13
13
|
import { distinctUntilChanged, debounceTime } from 'rxjs';
|
|
14
|
-
import * as
|
|
14
|
+
import * as i5 from '@ngx-translate/core';
|
|
15
15
|
import { TranslateModule } from '@ngx-translate/core';
|
|
16
16
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
17
|
-
import * as i3 from '@angular/material/form-field';
|
|
18
17
|
|
|
19
18
|
const DEFAULT_MAP_OPTION = {
|
|
20
19
|
center: [23.130257185291036, -82.35626220703126],
|
|
@@ -31,6 +30,7 @@ const DEFAULT_MAP_OPTION = {
|
|
|
31
30
|
scrollable: false,
|
|
32
31
|
};
|
|
33
32
|
|
|
33
|
+
const LATITUDE_LONGITUDE = /^(-?\d+(\.\d+)?)$/;
|
|
34
34
|
class GuajiritosMap {
|
|
35
35
|
constructor() {
|
|
36
36
|
this._destroyedRef = inject(DestroyRef);
|
|
@@ -39,8 +39,8 @@ class GuajiritosMap {
|
|
|
39
39
|
this.options = signal(DEFAULT_MAP_OPTION);
|
|
40
40
|
this.circle = signal(null);
|
|
41
41
|
this.form = new UntypedFormGroup({
|
|
42
|
-
latitude: new UntypedFormControl({ value: null, disabled: false }, [Validators.required]),
|
|
43
|
-
longitude: new UntypedFormControl({ value: null, disabled: false }, [Validators.required])
|
|
42
|
+
latitude: new UntypedFormControl({ value: null, disabled: false }, [Validators.required, Validators.pattern(LATITUDE_LONGITUDE)]),
|
|
43
|
+
longitude: new UntypedFormControl({ value: null, disabled: false }, [Validators.required, Validators.pattern(LATITUDE_LONGITUDE)])
|
|
44
44
|
});
|
|
45
45
|
this.appearance = 'outline';
|
|
46
46
|
this.color = 'accent';
|
|
@@ -327,27 +327,32 @@ class GuajiritosMap {
|
|
|
327
327
|
this.form.valueChanges
|
|
328
328
|
.pipe(takeUntilDestroyed(this._destroyedRef), distinctUntilChanged(), debounceTime(300))
|
|
329
329
|
.subscribe((marker) => {
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
if (this.
|
|
333
|
-
this.
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
330
|
+
if (this.form.valid) {
|
|
331
|
+
this.propagateChange(this.form.value);
|
|
332
|
+
if (this.options().aloneMarker && marker.latitude && marker.longitude) {
|
|
333
|
+
if (this.mapMarkers()?.length === 0) {
|
|
334
|
+
this.addMarker({
|
|
335
|
+
lat: Number(marker.latitude),
|
|
336
|
+
lng: Number(marker.longitude),
|
|
337
|
+
draggable: true
|
|
338
|
+
});
|
|
339
|
+
this.changeCenter(new L.LatLng(Number(marker.latitude), Number(marker.longitude)));
|
|
340
|
+
}
|
|
341
|
+
else {
|
|
342
|
+
this.drawAloneMarker(Number(marker.latitude), Number(marker.longitude));
|
|
343
|
+
}
|
|
342
344
|
}
|
|
343
345
|
}
|
|
346
|
+
else {
|
|
347
|
+
this.propagateChange(null);
|
|
348
|
+
}
|
|
344
349
|
});
|
|
345
350
|
}
|
|
346
351
|
ngAfterViewInit() {
|
|
347
352
|
this.initMap();
|
|
348
353
|
}
|
|
349
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
350
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
354
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: GuajiritosMap, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
355
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.12", type: GuajiritosMap, isStandalone: true, selector: "guajiritos-map", inputs: { appearance: "appearance", color: "color", floatLabel: "floatLabel", subscriptSizing: "subscriptSizing", readonly: "readonly", hiddenForm: "hiddenForm", showIcon: "showIcon", showLabel: "showLabel", mapId: "mapId", optionsMap: "optionsMap", circleConfig: "circleConfig", center: "center", icon: "icon", markers: "markers" }, outputs: { markerDragend: "markerDragend", markerAdded: "markerAdded", markerClicked: "markerClicked" }, providers: [
|
|
351
356
|
{
|
|
352
357
|
provide: NG_VALUE_ACCESSOR,
|
|
353
358
|
useExisting: forwardRef(() => GuajiritosMap),
|
|
@@ -358,11 +363,11 @@ class GuajiritosMap {
|
|
|
358
363
|
useExisting: forwardRef(() => GuajiritosMap),
|
|
359
364
|
multi: true
|
|
360
365
|
}
|
|
361
|
-
], ngImport: i0, template: "@if (mapId) {\
|
|
366
|
+
], ngImport: i0, template: "@if (mapId) {\n <div class=\"map-container\">\n @if (!hiddenForm && options()?.aloneMarker && mapMarkers()?.length <= 1) {\n <div class=\"lat-lng-input\" [formGroup]=\"form\">\n <mat-form-field [appearance]=\"appearance\" [color]=\"color\" [floatLabel]=\"floatLabel\" class='w-100'\n [subscriptSizing]=\"subscriptSizing\">\n <mat-label *ngIf=\"showLabel\">{{ \"latitud\" | translate | titlecase }}</mat-label>\n <mat-icon matSuffix class=\"material-icons-outlined\" [color]=\"color\" *ngIf=\"showIcon\">place</mat-icon>\n <input matInput [placeholder]=\"'latitud' | translate\" [readonly]=\"readonly\" formControlName=\"latitude\">\n <mat-error>{{ 'Latitud requerida' | translate }}</mat-error>\n </mat-form-field>\n <mat-form-field [appearance]=\"appearance\" [color]=\"color\" [floatLabel]=\"floatLabel\" class='w-100'\n [subscriptSizing]=\"subscriptSizing\">\n <mat-label *ngIf=\"showLabel\">{{ \"longitud\" | translate | titlecase }}</mat-label>\n <mat-icon matSuffix class=\"material-icons-outlined\" [color]=\"color\" *ngIf=\"showIcon\">place</mat-icon>\n <input matInput [placeholder]=\"'longitud' | translate\" [readonly]=\"readonly\" formControlName=\"longitude\">\n <mat-error>{{ 'Longitud requerida' | translate }}</mat-error>\n </mat-form-field>\n </div>\n }\n\n <div [id]=\"mapId\" class=\"map\"\n [ngStyle]=\"{'border-radius': options()?.borderRadius ?? '8px', 'height': options()?.height ?? '400px'}\"></div>\n </div>\n}\n", styles: [".map-container{display:flex;flex-direction:column;gap:2rem}.lat-lng-input{display:flex;flex-direction:row;gap:1rem}.map{min-height:100px;max-width:100%}.w-100{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: i1.TitleCasePipe, name: "titlecase" }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i2.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2.MatLabel, selector: "mat-label" }, { kind: "directive", type: i2.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i2.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i5.TranslatePipe, name: "translate" }] }); }
|
|
362
367
|
}
|
|
363
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
368
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.12", ngImport: i0, type: GuajiritosMap, decorators: [{
|
|
364
369
|
type: Component,
|
|
365
|
-
args: [{ selector: 'guajiritos-map',
|
|
370
|
+
args: [{ selector: 'guajiritos-map', imports: [
|
|
366
371
|
CommonModule,
|
|
367
372
|
MatInputModule,
|
|
368
373
|
ReactiveFormsModule,
|
|
@@ -379,7 +384,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImpor
|
|
|
379
384
|
useExisting: forwardRef(() => GuajiritosMap),
|
|
380
385
|
multi: true
|
|
381
386
|
}
|
|
382
|
-
], template: "@if (mapId) {\
|
|
387
|
+
], template: "@if (mapId) {\n <div class=\"map-container\">\n @if (!hiddenForm && options()?.aloneMarker && mapMarkers()?.length <= 1) {\n <div class=\"lat-lng-input\" [formGroup]=\"form\">\n <mat-form-field [appearance]=\"appearance\" [color]=\"color\" [floatLabel]=\"floatLabel\" class='w-100'\n [subscriptSizing]=\"subscriptSizing\">\n <mat-label *ngIf=\"showLabel\">{{ \"latitud\" | translate | titlecase }}</mat-label>\n <mat-icon matSuffix class=\"material-icons-outlined\" [color]=\"color\" *ngIf=\"showIcon\">place</mat-icon>\n <input matInput [placeholder]=\"'latitud' | translate\" [readonly]=\"readonly\" formControlName=\"latitude\">\n <mat-error>{{ 'Latitud requerida' | translate }}</mat-error>\n </mat-form-field>\n <mat-form-field [appearance]=\"appearance\" [color]=\"color\" [floatLabel]=\"floatLabel\" class='w-100'\n [subscriptSizing]=\"subscriptSizing\">\n <mat-label *ngIf=\"showLabel\">{{ \"longitud\" | translate | titlecase }}</mat-label>\n <mat-icon matSuffix class=\"material-icons-outlined\" [color]=\"color\" *ngIf=\"showIcon\">place</mat-icon>\n <input matInput [placeholder]=\"'longitud' | translate\" [readonly]=\"readonly\" formControlName=\"longitude\">\n <mat-error>{{ 'Longitud requerida' | translate }}</mat-error>\n </mat-form-field>\n </div>\n }\n\n <div [id]=\"mapId\" class=\"map\"\n [ngStyle]=\"{'border-radius': options()?.borderRadius ?? '8px', 'height': options()?.height ?? '400px'}\"></div>\n </div>\n}\n", styles: [".map-container{display:flex;flex-direction:column;gap:2rem}.lat-lng-input{display:flex;flex-direction:row;gap:1rem}.map{min-height:100px;max-width:100%}.w-100{width:100%}\n"] }]
|
|
383
388
|
}], propDecorators: { appearance: [{
|
|
384
389
|
type: Input
|
|
385
390
|
}], color: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guajiritos-map.mjs","sources":["../../../projects/guajiritos-map/src/interfaces/interfaces.ts","../../../projects/guajiritos-map/src/lib/guajiritos-map.component.ts","../../../projects/guajiritos-map/src/lib/guajiritos-map.component.html","../../../projects/guajiritos-map/src/public-api.ts","../../../projects/guajiritos-map/src/guajiritos-map.ts"],"sourcesContent":["\r\n/**\r\n * Map options interface\r\n */\r\nexport interface MapOption {\r\n center?: [number, number];\r\n draggable?: boolean;\r\n updateWithClick?: boolean;\r\n updateWithDoubleClick?: boolean;\r\n zoom?: number;\r\n borderRadius?: string;\r\n height?: string;\r\n scrollable?: boolean;\r\n zoomControl?: boolean;\r\n scrollWheelZoom?: boolean;\r\n addMarker?: boolean;\r\n aloneMarker?: boolean;\r\n}\r\n\r\n/**\r\n * Marker interface\r\n */\r\nexport interface MarkerMap {\r\n lat: number;\r\n lng: number;\r\n id?: string;\r\n alt?: number;\r\n popupContent?: string;\r\n draggable?: boolean;\r\n clickable?: boolean;\r\n}\r\n\r\n/**\r\n * Icon interface\r\n */\r\nexport interface Icon {\r\n iconSize: [number, number];\r\n iconAnchor: [number, number];\r\n iconUrl: string;\r\n iconRetinaUrl?: string,\r\n shadowUrl?: string,\r\n popupAnchor?: [number, number],\r\n tooltipAnchor?: [number, number],\r\n shadowSize?: [number, number],\r\n}\r\n\r\n/**\r\n * Circle map interface\r\n */\r\nexport interface CircleMap {\r\n center: MarkerMap;\r\n radius: number;\r\n}\r\n\r\nexport const DEFAULT_MAP_OPTION: MapOption = {\r\n center: [23.130257185291036, -82.35626220703126],\r\n draggable: true,\r\n zoom: 15,\r\n updateWithClick: false,\r\n updateWithDoubleClick: false,\r\n zoomControl: true,\r\n borderRadius: '8px',\r\n height: '400px',\r\n scrollWheelZoom: false,\r\n addMarker: false,\r\n aloneMarker: true,\r\n scrollable: false,\r\n};\r\n","import {\r\n AfterViewInit,\r\n Component,\r\n DestroyRef,\r\n EventEmitter,\r\n forwardRef,\r\n inject,\r\n Input,\r\n OnInit,\r\n Output,\r\n signal,\r\n WritableSignal\r\n} from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport * as L from 'leaflet';\r\nimport { icon, LatLng, LatLngExpression, layerGroup, LayerGroup, Map } from 'leaflet';\r\nimport { MatInputModule } from '@angular/material/input';\r\nimport {\r\n ControlValueAccessor,\r\n NG_VALIDATORS,\r\n NG_VALUE_ACCESSOR,\r\n ReactiveFormsModule,\r\n UntypedFormControl,\r\n UntypedFormGroup,\r\n ValidationErrors,\r\n Validator,\r\n Validators\r\n} from '@angular/forms';\r\nimport { FloatLabelType, MatFormFieldAppearance, SubscriptSizing } from '@angular/material/form-field';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { ThemePalette } from '@angular/material/core';\r\nimport { debounceTime, distinctUntilChanged } from 'rxjs';\r\nimport { TranslateModule } from '@ngx-translate/core';\r\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\r\n\r\nimport { CircleMap, DEFAULT_MAP_OPTION, Icon, MapOption, MarkerMap } from '../interfaces/interfaces';\r\n\r\n@Component({\r\n selector: 'guajiritos-map',\r\n templateUrl: './guajiritos-map.component.html',\r\n styleUrls: ['./guajiritos-map.component.scss'],\r\n standalone: true,\r\n imports: [\r\n CommonModule,\r\n MatInputModule,\r\n ReactiveFormsModule,\r\n MatIconModule,\r\n TranslateModule\r\n ],\r\n providers: [\r\n {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: forwardRef(() => GuajiritosMap),\r\n multi: true\r\n },\r\n {\r\n provide: NG_VALIDATORS,\r\n useExisting: forwardRef(() => GuajiritosMap),\r\n multi: true\r\n }\r\n ]\r\n})\r\nexport class GuajiritosMap implements OnInit, AfterViewInit, ControlValueAccessor, Validator {\r\n private _destroyedRef: DestroyRef = inject(DestroyRef);\r\n\r\n private map: Map;\r\n private layerGroup: LayerGroup = new L.LayerGroup();\r\n\r\n public mapMarkers: WritableSignal<MarkerMap[]> = signal([]);\r\n public options: WritableSignal<MapOption> = signal(DEFAULT_MAP_OPTION);\r\n public circle: WritableSignal<CircleMap> = signal(null);\r\n\r\n public form: UntypedFormGroup = new UntypedFormGroup({\r\n latitude: new UntypedFormControl({ value: null, disabled: false }, [Validators.required]),\r\n longitude: new UntypedFormControl({ value: null, disabled: false }, [Validators.required])\r\n });\r\n\r\n @Input() appearance: MatFormFieldAppearance = 'outline';\r\n @Input() color: ThemePalette = 'accent';\r\n @Input() floatLabel: FloatLabelType = 'always';\r\n @Input() subscriptSizing: SubscriptSizing = 'dynamic';\r\n\r\n @Input() readonly: boolean = false;\r\n @Input() hiddenForm: boolean = false;\r\n @Input() showIcon: boolean = true;\r\n @Input() showLabel: boolean = true;\r\n\r\n @Input() mapId: string = 'map';\r\n\r\n /**\r\n * Default map options\r\n */\r\n @Input() set optionsMap(options: Partial<MapOption>) {\r\n if (options) {\r\n this.options.set({\r\n ...this.options(),\r\n ...options\r\n });\r\n }\r\n };\r\n\r\n /**\r\n * Add a circle on the map\r\n */\r\n @Input() set circleConfig(circle: CircleMap) {\r\n if (circle) {\r\n this.circle.set(circle);\r\n\r\n if (this.map) {\r\n this.addCircle(this.circle()?.center, this.circle()?.radius);\r\n }\r\n }\r\n }\r\n\r\n @Input() set center(center: MarkerMap) {\r\n if (center) {\r\n this.changeCenter(new LatLng(center.lat, center.lng));\r\n }\r\n }\r\n\r\n /**\r\n * Default marker icon\r\n */\r\n @Input() icon: Icon = {\r\n iconSize: [25, 41],\r\n iconAnchor: [13, 41],\r\n iconUrl: 'leaflet/marker-icon.png'\r\n };\r\n\r\n /**\r\n * List of markers\r\n * @param markers - Markers array\r\n */\r\n @Input() set markers(markers: MarkerMap[]) {\r\n if (markers?.length) {\r\n this.mapMarkers.set(markers);\r\n\r\n this.form.patchValue({\r\n latitude: this.mapMarkers()?.[0]?.lat,\r\n longitude: this.mapMarkers()?.[0]?.lng\r\n });\r\n\r\n this.changeCenter(new L.LatLng(this.mapMarkers()[0].lat, this.mapMarkers()[0].lng));\r\n\r\n if (this.map && this.layerGroup) {\r\n this.drawMarkers();\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Se lanza cada vez que cambia un marcador\r\n */\r\n @Output() markerDragend: EventEmitter<LatLng> = new EventEmitter();\r\n /**\r\n * Se lanza cada vez que se añade un marcador\r\n */\r\n @Output() markerAdded: EventEmitter<MarkerMap> = new EventEmitter();\r\n\r\n @Output() markerClicked: EventEmitter<MarkerMap> = new EventEmitter();\r\n\r\n /**\r\n * Draws the markers.\r\n */\r\n private drawMarkers(): void {\r\n if (this.mapMarkers()?.length) {\r\n this.layerGroup.clearLayers();\r\n this.mapMarkers().forEach((m: MarkerMap): void => {\r\n this.addMarker(m, false);\r\n });\r\n }\r\n }\r\n\r\n /**\r\n * Main properties of the map\r\n * @private\r\n */\r\n private initMap(): void {\r\n this.map = L.map(this.mapId, {\r\n center: this.options()?.center as LatLngExpression ?? DEFAULT_MAP_OPTION.center,\r\n dragging: this.options()?.draggable ?? DEFAULT_MAP_OPTION.draggable,\r\n zoom: this.options()?.zoom ?? DEFAULT_MAP_OPTION.zoom,\r\n zoomControl: this.options()?.zoomControl || DEFAULT_MAP_OPTION.zoomControl,\r\n scrollWheelZoom: this.options()?.scrollWheelZoom || DEFAULT_MAP_OPTION.scrollWheelZoom,\r\n maxZoom: 18,\r\n minZoom: 3\r\n });\r\n\r\n this.layerGroup = layerGroup().addTo(this.map);\r\n\r\n L.tileLayer('http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png').addTo(this.map);\r\n\r\n this.drawMarkers();\r\n\r\n if (this.mapMarkers()?.[0]?.lat && this.mapMarkers()?.[0]?.lng) {\r\n this.changeCenter(new L.LatLng(this.mapMarkers()[0].lat, this.mapMarkers()[0].lng));\r\n }\r\n\r\n if (this.circle()) {\r\n this.addCircle(this.circle()?.center, this.circle()?.radius);\r\n }\r\n\r\n if (this.options()?.addMarker) {\r\n let that = this;\r\n this.map.on('click', function (e: L.LeafletMouseEvent): void {\r\n if (that.mapMarkers().length === 0 || (that.mapMarkers().length > 0 && !that.options()?.aloneMarker)) {\r\n const newMarker: MarkerMap = {\r\n lat: e.latlng.lat,\r\n lng: e.latlng.lng,\r\n draggable: that.options()?.draggable ?? DEFAULT_MAP_OPTION.draggable\r\n };\r\n\r\n that.form.patchValue({\r\n latitude: e.latlng.lat,\r\n longitude: e.latlng.lng\r\n });\r\n\r\n that.addMarker(newMarker);\r\n\r\n that.markerAdded.emit(newMarker);\r\n } else {\r\n that.drawAloneMarker(e.latlng.lat, e.latlng.lng);\r\n }\r\n });\r\n }\r\n }\r\n\r\n /**\r\n * Draws a marker at the specified latitude and longitude if the first marker's latitude and longitude\r\n * are different from the provided values. It updates the first marker's latitude and longitude if the\r\n * marker array is not empty.\r\n *\r\n * @param {number} lat - The latitude of the marker\r\n * @param {number} lng - The longitude of the marker\r\n */\r\n private drawAloneMarker(lat: number, lng: number): void {\r\n if (this.mapMarkers()?.[0]?.lat && this.mapMarkers()?.[0]?.lng) {\r\n if (this.mapMarkers()[0].lat !== lat || this.mapMarkers()[0].lng !== lng) {\r\n this.mapMarkers.update((markers: MarkerMap[]): MarkerMap[] => {\r\n if (markers?.length) {\r\n markers[0].lat = lat;\r\n markers[0].lng = lng;\r\n }\r\n return markers;\r\n });\r\n\r\n this.drawMarkers();\r\n this.changeCenter(new L.LatLng(this.mapMarkers()[0].lat, this.mapMarkers()[0].lng));\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Add marker to map\r\n * @param center - center of the circle\r\n * @param radius - radius of the circle in meters\r\n * @private\r\n */\r\n private addCircle(center: MarkerMap, radius: number): void {\r\n if (this.map && center?.lat && center?.lng) {\r\n this.drawMarkers();\r\n L.circleMarker([center.lat, center.lng], { radius: radius ?? 10 }).addTo(this.map);\r\n }\r\n }\r\n\r\n /**\r\n * Add marker to map\r\n * @param marker - Point of the map\r\n * @param canAdd\r\n */\r\n private addMarker(marker: MarkerMap, canAdd: boolean = true): void {\r\n if (this.map && marker?.lat && marker?.lng) {\r\n const markerAdd: L.Marker = L.marker({\r\n lat: marker.lat,\r\n lng: marker.lng,\r\n alt: marker?.alt ?? 0,\r\n }, {\r\n draggable: marker?.draggable ?? true,\r\n autoPan: true\r\n }).setIcon(\r\n icon({\r\n iconSize: this.icon?.iconSize,\r\n iconAnchor: this.icon?.iconAnchor,\r\n iconUrl: this.icon?.iconUrl\r\n })\r\n ).addTo(this.layerGroup);\r\n\r\n if (canAdd) {\r\n this.mapMarkers.update((markers: MarkerMap[]): MarkerMap[] => {\r\n markers.push(marker);\r\n return markers;\r\n });\r\n }\r\n\r\n markerAdd.on('dragend', (): void => {\r\n this.changeCenter(markerAdd.getLatLng());\r\n this.markerDragend.emit(markerAdd.getLatLng());\r\n });\r\n\r\n if (marker?.popupContent) {\r\n markerAdd.on('mouseover', (): void => {\r\n const popup: L.Popup = L.popup({\r\n className: 'guajiritos-marker-popup',\r\n closeButton: false,\r\n offset: new L.Point(0, -32)\r\n })\r\n .setLatLng(markerAdd.getLatLng())\r\n .setContent(marker.popupContent)\r\n .addTo(this.layerGroup);\r\n\r\n document.querySelector('.guajiritos-marker-popup')\r\n .addEventListener('click', (): void => {\r\n this.markerClicked.emit(marker);\r\n })\r\n });\r\n }\r\n\r\n if (marker?.clickable) {\r\n markerAdd.on('click', (): void => {\r\n this.markerClicked.emit(marker);\r\n });\r\n }\r\n }\r\n }\r\n\r\n /**\r\n * Put the map center on marker position\r\n * @param marker - Point of the map\r\n */\r\n public changeCenter(marker: L.LatLng): void {\r\n this.form.patchValue({\r\n latitude: marker.lat,\r\n longitude: marker.lng\r\n });\r\n this.map?.setView(marker);\r\n }\r\n\r\n /**\r\n * Propagates the change to other components.\r\n *\r\n * @param {any} _ - an arbitrary parameter.\r\n */\r\n propagateChange(_: any): void {\r\n };\r\n\r\n /**\r\n * Sets the callback function to be called when the value\r\n * of the control changes.\r\n *\r\n * @param {any} fn - The callback function to be called\r\n * when the value of the control changes.\r\n */\r\n registerOnChange(fn: any): void {\r\n this.propagateChange = fn;\r\n }\r\n\r\n /**\r\n * Registers a callback function to be called when the form control is \"touched\".\r\n */\r\n registerOnTouched(): void {\r\n }\r\n\r\n /**\r\n * Sets the disabled state of the form.\r\n *\r\n * @param {boolean} isDisabled - Specifies whether the form should be disabled or not.\r\n */\r\n setDisabledState(isDisabled: boolean): void {\r\n if (isDisabled) {\r\n this.form.disable();\r\n } else {\r\n this.form.enable();\r\n }\r\n }\r\n\r\n /**\r\n * Writes a value to the form.\r\n *\r\n * @param {any} data - The data to be written.\r\n */\r\n writeValue(data: { latitude: number | string; longitude: number | string }): void {\r\n if (data?.latitude && data?.longitude) {\r\n this.form.patchValue({\r\n latitude: data.latitude,\r\n longitude: data.longitude\r\n });\r\n }\r\n }\r\n\r\n public validate(): ValidationErrors {\r\n return this.form.invalid ? { wrongLocation: true } : null;\r\n }\r\n\r\n /**\r\n * Initializes the component and sets up a listener for changes in the form value.\r\n */\r\n ngOnInit(): void {\r\n this.form.valueChanges\r\n .pipe(\r\n takeUntilDestroyed(this._destroyedRef),\r\n distinctUntilChanged(),\r\n debounceTime(300)\r\n )\r\n .subscribe((marker: { latitude: string, longitude: string }): void => {\r\n this.propagateChange(this.form.value);\r\n\r\n if (this.options().aloneMarker && marker.latitude && marker.longitude) {\r\n if (this.mapMarkers()?.length === 0) {\r\n this.addMarker({\r\n lat: Number(marker.latitude),\r\n lng: Number(marker.longitude),\r\n draggable: true\r\n });\r\n this.changeCenter(new L.LatLng(Number(marker.latitude), Number(marker.longitude)));\r\n } else {\r\n this.drawAloneMarker(Number(marker.latitude), Number(marker.longitude));\r\n }\r\n }\r\n });\r\n }\r\n\r\n ngAfterViewInit(): void {\r\n this.initMap();\r\n }\r\n}\r\n","@if (mapId) {\r\n <div class=\"map-container\">\r\n @if (!hiddenForm && options()?.aloneMarker && mapMarkers()?.length <= 1) {\r\n <div class=\"lat-lng-input\" [formGroup]=\"form\">\r\n <mat-form-field [appearance]=\"appearance\" [color]=\"color\" [floatLabel]=\"floatLabel\" class='w-100'\r\n [subscriptSizing]=\"subscriptSizing\">\r\n <mat-label *ngIf=\"showLabel\">{{ \"latitud\" | translate | titlecase }}</mat-label>\r\n <mat-icon matSuffix class=\"material-icons-outlined\" [color]=\"color\" *ngIf=\"showIcon\">place</mat-icon>\r\n <input matInput [placeholder]=\"'latitud' | translate\" [readonly]=\"readonly\" formControlName=\"latitude\">\r\n <mat-error>{{ 'Latitud requerida' | translate }}</mat-error>\r\n </mat-form-field>\r\n <mat-form-field [appearance]=\"appearance\" [color]=\"color\" [floatLabel]=\"floatLabel\" class='w-100'\r\n [subscriptSizing]=\"subscriptSizing\">\r\n <mat-label *ngIf=\"showLabel\">{{ \"longitud\" | translate | titlecase }}</mat-label>\r\n <mat-icon matSuffix class=\"material-icons-outlined\" [color]=\"color\" *ngIf=\"showIcon\">place</mat-icon>\r\n <input matInput [placeholder]=\"'longitud' | translate\" [readonly]=\"readonly\" formControlName=\"longitude\">\r\n <mat-error>{{ 'Longitud requerida' | translate }}</mat-error>\r\n </mat-form-field>\r\n </div>\r\n }\r\n\r\n <div [id]=\"mapId\" class=\"map\"\r\n [ngStyle]=\"{'border-radius': options()?.borderRadius ?? '8px', 'height': options()?.height ?? '400px'}\"></div>\r\n </div>\r\n}\r\n","/*\r\n * Public API Surface of guajiritos-map\r\n */\r\n\r\nexport * from './interfaces/interfaces';\r\nexport * from './lib/guajiritos-map.component';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAsDa,MAAA,kBAAkB,GAAc;AAC3C,IAAA,MAAM,EAAE,CAAC,kBAAkB,EAAE,CAAC,iBAAiB,CAAC;AAChD,IAAA,SAAS,EAAE,IAAI;AACf,IAAA,IAAI,EAAE,EAAE;AACR,IAAA,eAAe,EAAE,KAAK;AACtB,IAAA,qBAAqB,EAAE,KAAK;AAC5B,IAAA,WAAW,EAAE,IAAI;AACjB,IAAA,YAAY,EAAE,KAAK;AACnB,IAAA,MAAM,EAAE,OAAO;AACf,IAAA,eAAe,EAAE,KAAK;AACtB,IAAA,SAAS,EAAE,KAAK;AAChB,IAAA,WAAW,EAAE,IAAI;AACjB,IAAA,UAAU,EAAE,KAAK;;;MCJN,aAAa,CAAA;AAzB1B,IAAA,WAAA,GAAA;AA0BU,QAAA,IAAA,CAAA,aAAa,GAAe,MAAM,CAAC,UAAU,CAAC,CAAC;AAG/C,QAAA,IAAA,CAAA,UAAU,GAAe,IAAI,CAAC,CAAC,UAAU,EAAE,CAAC;AAE7C,QAAA,IAAA,CAAA,UAAU,GAAgC,MAAM,CAAC,EAA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b,KAAK;gBAKO,UAAU,EAAA,CAAA;sBAAtB,KAAK;gBAYO,YAAY,EAAA,CAAA;sBAAxB,KAAK;gBAUO,MAAM,EAAA,CAAA;sBAAlB,KAAK;gBASG,IAAI,EAAA,CAAA;sBAAZ,KAAK;gBAUO,OAAO,EAAA,CAAA;sBAAnB,KAAK;gBAoBI,aAAa,EAAA,CAAA;sBAAtB,MAAM;gBAIG,WAAW,EAAA,CAAA;sBAApB,MAAM;gBAEG,aAAa,EAAA,CAAA;sBAAtB,MAAM;;;AE/JT;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"guajiritos-map.mjs","sources":["../../../projects/guajiritos-map/src/interfaces/interfaces.ts","../../../projects/guajiritos-map/src/lib/guajiritos-map.component.ts","../../../projects/guajiritos-map/src/lib/guajiritos-map.component.html","../../../projects/guajiritos-map/src/public-api.ts","../../../projects/guajiritos-map/src/guajiritos-map.ts"],"sourcesContent":["\n/**\n * Map options interface\n */\nexport interface MapOption {\n center?: [number, number];\n draggable?: boolean;\n updateWithClick?: boolean;\n updateWithDoubleClick?: boolean;\n zoom?: number;\n borderRadius?: string;\n height?: string;\n scrollable?: boolean;\n zoomControl?: boolean;\n scrollWheelZoom?: boolean;\n addMarker?: boolean;\n aloneMarker?: boolean;\n}\n\n/**\n * Marker interface\n */\nexport interface MarkerMap {\n lat: number;\n lng: number;\n id?: string;\n alt?: number;\n popupContent?: string;\n draggable?: boolean;\n clickable?: boolean;\n}\n\n/**\n * Icon interface\n */\nexport interface Icon {\n iconSize: [number, number];\n iconAnchor: [number, number];\n iconUrl: string;\n iconRetinaUrl?: string,\n shadowUrl?: string,\n popupAnchor?: [number, number],\n tooltipAnchor?: [number, number],\n shadowSize?: [number, number],\n}\n\n/**\n * Circle map interface\n */\nexport interface CircleMap {\n center: MarkerMap;\n radius: number;\n}\n\nexport const DEFAULT_MAP_OPTION: MapOption = {\n center: [23.130257185291036, -82.35626220703126],\n draggable: true,\n zoom: 15,\n updateWithClick: false,\n updateWithDoubleClick: false,\n zoomControl: true,\n borderRadius: '8px',\n height: '400px',\n scrollWheelZoom: false,\n addMarker: false,\n aloneMarker: true,\n scrollable: false,\n};\n","import {\n AfterViewInit,\n Component,\n DestroyRef,\n EventEmitter,\n forwardRef,\n inject,\n Input,\n OnInit,\n Output,\n signal,\n WritableSignal\n} from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport * as L from 'leaflet';\nimport { icon, LatLng, LatLngExpression, layerGroup, LayerGroup, Map } from 'leaflet';\nimport { MatInputModule } from '@angular/material/input';\nimport {\n ControlValueAccessor,\n NG_VALIDATORS,\n NG_VALUE_ACCESSOR,\n ReactiveFormsModule,\n UntypedFormControl,\n UntypedFormGroup,\n ValidationErrors,\n Validator,\n Validators\n} from '@angular/forms';\nimport { FloatLabelType, MatFormFieldAppearance, SubscriptSizing } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { ThemePalette } from '@angular/material/core';\nimport { debounceTime, distinctUntilChanged } from 'rxjs';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\nimport { CircleMap, DEFAULT_MAP_OPTION, Icon, MapOption, MarkerMap } from '../interfaces/interfaces';\n\nconst LATITUDE_LONGITUDE = /^(-?\\d+(\\.\\d+)?)$/;\n\n@Component({\n selector: 'guajiritos-map',\n templateUrl: './guajiritos-map.component.html',\n styleUrls: ['./guajiritos-map.component.scss'],\n imports: [\n CommonModule,\n MatInputModule,\n ReactiveFormsModule,\n MatIconModule,\n TranslateModule\n ],\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => GuajiritosMap),\n multi: true\n },\n {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => GuajiritosMap),\n multi: true\n }\n ]\n})\nexport class GuajiritosMap implements OnInit, AfterViewInit, ControlValueAccessor, Validator {\n private _destroyedRef: DestroyRef = inject(DestroyRef);\n private map: Map;\n private layerGroup: LayerGroup = new L.LayerGroup();\n\n public mapMarkers: WritableSignal<MarkerMap[]> = signal([]);\n public options: WritableSignal<MapOption> = signal(DEFAULT_MAP_OPTION);\n public circle: WritableSignal<CircleMap> = signal(null);\n\n public form: UntypedFormGroup = new UntypedFormGroup({\n latitude: new UntypedFormControl({ value: null, disabled: false }, [Validators.required, Validators.pattern(LATITUDE_LONGITUDE)]),\n longitude: new UntypedFormControl({ value: null, disabled: false }, [Validators.required, Validators.pattern(LATITUDE_LONGITUDE)])\n });\n\n @Input() appearance: MatFormFieldAppearance = 'outline';\n @Input() color: ThemePalette = 'accent';\n @Input() floatLabel: FloatLabelType = 'always';\n @Input() subscriptSizing: SubscriptSizing = 'dynamic';\n\n @Input() readonly: boolean = false;\n @Input() hiddenForm: boolean = false;\n @Input() showIcon: boolean = true;\n @Input() showLabel: boolean = true;\n\n @Input() mapId: string = 'map';\n\n /**\n * Default map options\n */\n @Input() set optionsMap(options: Partial<MapOption>) {\n if (options) {\n this.options.set({\n ...this.options(),\n ...options\n });\n }\n };\n\n /**\n * Add a circle on the map\n */\n @Input() set circleConfig(circle: CircleMap) {\n if (circle) {\n this.circle.set(circle);\n\n if (this.map) {\n this.addCircle(this.circle()?.center, this.circle()?.radius);\n }\n }\n }\n\n @Input() set center(center: MarkerMap) {\n if (center) {\n this.changeCenter(new LatLng(center.lat, center.lng));\n }\n }\n\n /**\n * Default marker icon\n */\n @Input() icon: Icon = {\n iconSize: [25, 41],\n iconAnchor: [13, 41],\n iconUrl: 'leaflet/marker-icon.png'\n };\n\n /**\n * List of markers\n * @param markers - Markers array\n */\n @Input() set markers(markers: MarkerMap[]) {\n if (markers?.length) {\n this.mapMarkers.set(markers);\n\n this.form.patchValue({\n latitude: this.mapMarkers()?.[0]?.lat,\n longitude: this.mapMarkers()?.[0]?.lng\n });\n\n this.changeCenter(new L.LatLng(this.mapMarkers()[0].lat, this.mapMarkers()[0].lng));\n\n if (this.map && this.layerGroup) {\n this.drawMarkers();\n }\n }\n }\n\n /**\n * Se lanza cada vez que cambia un marcador\n */\n @Output() markerDragend: EventEmitter<LatLng> = new EventEmitter();\n /**\n * Se lanza cada vez que se añade un marcador\n */\n @Output() markerAdded: EventEmitter<MarkerMap> = new EventEmitter();\n\n @Output() markerClicked: EventEmitter<MarkerMap> = new EventEmitter();\n\n /**\n * Draws the markers.\n */\n private drawMarkers(): void {\n if (this.mapMarkers()?.length) {\n this.layerGroup.clearLayers();\n this.mapMarkers().forEach((m: MarkerMap): void => {\n this.addMarker(m, false);\n });\n }\n }\n\n /**\n * Main properties of the map\n * @private\n */\n private initMap(): void {\n this.map = L.map(this.mapId, {\n center: this.options()?.center as LatLngExpression ?? DEFAULT_MAP_OPTION.center,\n dragging: this.options()?.draggable ?? DEFAULT_MAP_OPTION.draggable,\n zoom: this.options()?.zoom ?? DEFAULT_MAP_OPTION.zoom,\n zoomControl: this.options()?.zoomControl || DEFAULT_MAP_OPTION.zoomControl,\n scrollWheelZoom: this.options()?.scrollWheelZoom || DEFAULT_MAP_OPTION.scrollWheelZoom,\n maxZoom: 18,\n minZoom: 3\n });\n\n this.layerGroup = layerGroup().addTo(this.map);\n\n L.tileLayer('http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png').addTo(this.map);\n\n this.drawMarkers();\n\n if (this.mapMarkers()?.[0]?.lat && this.mapMarkers()?.[0]?.lng) {\n this.changeCenter(new L.LatLng(this.mapMarkers()[0].lat, this.mapMarkers()[0].lng));\n }\n\n if (this.circle()) {\n this.addCircle(this.circle()?.center, this.circle()?.radius);\n }\n\n if (this.options()?.addMarker) {\n let that = this;\n this.map.on('click', function (e: L.LeafletMouseEvent): void {\n if (that.mapMarkers().length === 0 || (that.mapMarkers().length > 0 && !that.options()?.aloneMarker)) {\n const newMarker: MarkerMap = {\n lat: e.latlng.lat,\n lng: e.latlng.lng,\n draggable: that.options()?.draggable ?? DEFAULT_MAP_OPTION.draggable\n };\n\n that.form.patchValue({\n latitude: e.latlng.lat,\n longitude: e.latlng.lng\n });\n\n that.addMarker(newMarker);\n\n that.markerAdded.emit(newMarker);\n } else {\n that.drawAloneMarker(e.latlng.lat, e.latlng.lng);\n }\n });\n }\n }\n\n /**\n * Draws a marker at the specified latitude and longitude if the first marker's latitude and longitude\n * are different from the provided values. It updates the first marker's latitude and longitude if the\n * marker array is not empty.\n *\n * @param {number} lat - The latitude of the marker\n * @param {number} lng - The longitude of the marker\n */\n private drawAloneMarker(lat: number, lng: number): void {\n if (this.mapMarkers()?.[0]?.lat && this.mapMarkers()?.[0]?.lng) {\n if (this.mapMarkers()[0].lat !== lat || this.mapMarkers()[0].lng !== lng) {\n this.mapMarkers.update((markers: MarkerMap[]): MarkerMap[] => {\n if (markers?.length) {\n markers[0].lat = lat;\n markers[0].lng = lng;\n }\n return markers;\n });\n\n this.drawMarkers();\n this.changeCenter(new L.LatLng(this.mapMarkers()[0].lat, this.mapMarkers()[0].lng));\n }\n }\n }\n\n /**\n * Add marker to map\n * @param center - center of the circle\n * @param radius - radius of the circle in meters\n * @private\n */\n private addCircle(center: MarkerMap, radius: number): void {\n if (this.map && center?.lat && center?.lng) {\n this.drawMarkers();\n L.circleMarker([center.lat, center.lng], { radius: radius ?? 10 }).addTo(this.map);\n }\n }\n\n /**\n * Add marker to map\n * @param marker - Point of the map\n * @param canAdd\n */\n private addMarker(marker: MarkerMap, canAdd: boolean = true): void {\n if (this.map && marker?.lat && marker?.lng) {\n const markerAdd: L.Marker = L.marker({\n lat: marker.lat,\n lng: marker.lng,\n alt: marker?.alt ?? 0,\n }, {\n draggable: marker?.draggable ?? true,\n autoPan: true\n }).setIcon(\n icon({\n iconSize: this.icon?.iconSize,\n iconAnchor: this.icon?.iconAnchor,\n iconUrl: this.icon?.iconUrl\n })\n ).addTo(this.layerGroup);\n\n if (canAdd) {\n this.mapMarkers.update((markers: MarkerMap[]): MarkerMap[] => {\n markers.push(marker);\n return markers;\n });\n }\n\n markerAdd.on('dragend', (): void => {\n this.changeCenter(markerAdd.getLatLng());\n this.markerDragend.emit(markerAdd.getLatLng());\n });\n\n if (marker?.popupContent) {\n markerAdd.on('mouseover', (): void => {\n const popup: L.Popup = L.popup({\n className: 'guajiritos-marker-popup',\n closeButton: false,\n offset: new L.Point(0, -32)\n })\n .setLatLng(markerAdd.getLatLng())\n .setContent(marker.popupContent)\n .addTo(this.layerGroup);\n\n document.querySelector('.guajiritos-marker-popup')\n .addEventListener('click', (): void => {\n this.markerClicked.emit(marker);\n })\n });\n }\n\n if (marker?.clickable) {\n markerAdd.on('click', (): void => {\n this.markerClicked.emit(marker);\n });\n }\n }\n }\n\n /**\n * Put the map center on marker position\n * @param marker - Point of the map\n */\n public changeCenter(marker: L.LatLng): void {\n this.form.patchValue({\n latitude: marker.lat,\n longitude: marker.lng\n });\n this.map?.setView(marker);\n }\n\n /**\n * Propagates the change to other components.\n *\n * @param {any} _ - an arbitrary parameter.\n */\n propagateChange(_: any): void {\n };\n\n /**\n * Sets the callback function to be called when the value\n * of the control changes.\n *\n * @param {any} fn - The callback function to be called\n * when the value of the control changes.\n */\n registerOnChange(fn: any): void {\n this.propagateChange = fn;\n }\n\n /**\n * Registers a callback function to be called when the form control is \"touched\".\n */\n registerOnTouched(): void {\n }\n\n /**\n * Sets the disabled state of the form.\n *\n * @param {boolean} isDisabled - Specifies whether the form should be disabled or not.\n */\n setDisabledState(isDisabled: boolean): void {\n if (isDisabled) {\n this.form.disable();\n } else {\n this.form.enable();\n }\n }\n\n /**\n * Writes a value to the form.\n *\n * @param {any} data - The data to be written.\n */\n writeValue(data: { latitude: number | string; longitude: number | string }): void {\n if (data?.latitude && data?.longitude) {\n this.form.patchValue({\n latitude: data.latitude,\n longitude: data.longitude\n });\n }\n }\n\n public validate(): ValidationErrors {\n return this.form.invalid ? { wrongLocation: true } : null;\n }\n\n /**\n * Initializes the component and sets up a listener for changes in the form value.\n */\n ngOnInit(): void {\n this.form.valueChanges\n .pipe(\n takeUntilDestroyed(this._destroyedRef),\n distinctUntilChanged(),\n debounceTime(300)\n )\n .subscribe((marker: { latitude: string, longitude: string }): void => {\n if (this.form.valid) {\n this.propagateChange(this.form.value);\n\n if (this.options().aloneMarker && marker.latitude && marker.longitude) {\n if (this.mapMarkers()?.length === 0) {\n this.addMarker({\n lat: Number(marker.latitude),\n lng: Number(marker.longitude),\n draggable: true\n });\n this.changeCenter(new L.LatLng(Number(marker.latitude), Number(marker.longitude)));\n } else {\n this.drawAloneMarker(Number(marker.latitude), Number(marker.longitude));\n }\n }\n } else {\n this.propagateChange(null);\n }\n });\n }\n\n ngAfterViewInit(): void {\n this.initMap();\n }\n}\n","@if (mapId) {\n <div class=\"map-container\">\n @if (!hiddenForm && options()?.aloneMarker && mapMarkers()?.length <= 1) {\n <div class=\"lat-lng-input\" [formGroup]=\"form\">\n <mat-form-field [appearance]=\"appearance\" [color]=\"color\" [floatLabel]=\"floatLabel\" class='w-100'\n [subscriptSizing]=\"subscriptSizing\">\n <mat-label *ngIf=\"showLabel\">{{ \"latitud\" | translate | titlecase }}</mat-label>\n <mat-icon matSuffix class=\"material-icons-outlined\" [color]=\"color\" *ngIf=\"showIcon\">place</mat-icon>\n <input matInput [placeholder]=\"'latitud' | translate\" [readonly]=\"readonly\" formControlName=\"latitude\">\n <mat-error>{{ 'Latitud requerida' | translate }}</mat-error>\n </mat-form-field>\n <mat-form-field [appearance]=\"appearance\" [color]=\"color\" [floatLabel]=\"floatLabel\" class='w-100'\n [subscriptSizing]=\"subscriptSizing\">\n <mat-label *ngIf=\"showLabel\">{{ \"longitud\" | translate | titlecase }}</mat-label>\n <mat-icon matSuffix class=\"material-icons-outlined\" [color]=\"color\" *ngIf=\"showIcon\">place</mat-icon>\n <input matInput [placeholder]=\"'longitud' | translate\" [readonly]=\"readonly\" formControlName=\"longitude\">\n <mat-error>{{ 'Longitud requerida' | translate }}</mat-error>\n </mat-form-field>\n </div>\n }\n\n <div [id]=\"mapId\" class=\"map\"\n [ngStyle]=\"{'border-radius': options()?.borderRadius ?? '8px', 'height': options()?.height ?? '400px'}\"></div>\n </div>\n}\n","/*\n * Public API Surface of guajiritos-map\n */\n\nexport * from './interfaces/interfaces';\nexport * from './lib/guajiritos-map.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAsDa,MAAA,kBAAkB,GAAc;AAC3C,IAAA,MAAM,EAAE,CAAC,kBAAkB,EAAE,CAAC,iBAAiB,CAAC;AAChD,IAAA,SAAS,EAAE,IAAI;AACf,IAAA,IAAI,EAAE,EAAE;AACR,IAAA,eAAe,EAAE,KAAK;AACtB,IAAA,qBAAqB,EAAE,KAAK;AAC5B,IAAA,WAAW,EAAE,IAAI;AACjB,IAAA,YAAY,EAAE,KAAK;AACnB,IAAA,MAAM,EAAE,OAAO;AACf,IAAA,eAAe,EAAE,KAAK;AACtB,IAAA,SAAS,EAAE,KAAK;AAChB,IAAA,WAAW,EAAE,IAAI;AACjB,IAAA,UAAU,EAAE,KAAK;;;AC7BnB,MAAM,kBAAkB,GAAG,mBAAmB;MA0BjC,aAAa,CAAA;AAxB1B,IAAA,WAAA,GAAA;AAyBU,QAAA,IAAA,CAAA,aAAa,GAAe,MAAM,CAAC,UAAU,CAAC;AAE9C,QAAA,IAAA,CAAA,UAAU,GAAe,IAAI,CAAC,CAAC,UAAU,EAAE;AAE5C,QAAA,IAAA,CAAA,UAAU,GAAgC,MAAM,CAAC,EAAE,CAAC;AACpD,QAAA,IAAA,CAAA,OAAO,GAA8B,MAAM,CAAC,kBAAkB,CAAC;AAC/D,QAAA,IAAA,CAAA,MAAM,GAA8B,MAAM,CAAC,IAAI,CAAC;QAEhD,IAAI,CAAA,IAAA,GAAqB,IAAI,gBAAgB,CAAC;YACnD,QAAQ,EAAE,IAAI,kBAAkB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC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Ab;gBACQ,UAAU,EAAA,CAAA;sBAAlB;gBACQ,eAAe,EAAA,CAAA;sBAAvB;gBAEQ,QAAQ,EAAA,CAAA;sBAAhB;gBACQ,UAAU,EAAA,CAAA;sBAAlB;gBACQ,QAAQ,EAAA,CAAA;sBAAhB;gBACQ,SAAS,EAAA,CAAA;sBAAjB;gBAEQ,KAAK,EAAA,CAAA;sBAAb;gBAKY,UAAU,EAAA,CAAA;sBAAtB;gBAYY,YAAY,EAAA,CAAA;sBAAxB;gBAUY,MAAM,EAAA,CAAA;sBAAlB;gBASQ,IAAI,EAAA,CAAA;sBAAZ;gBAUY,OAAO,EAAA,CAAA;sBAAnB;gBAoBS,aAAa,EAAA,CAAA;sBAAtB;gBAIS,WAAW,EAAA,CAAA;sBAApB;gBAES,aAAa,EAAA,CAAA;sBAAtB;;;AE/JH;;AAEG;;ACFH;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guajiritos/map",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "19.0.0",
|
|
4
4
|
"maintainers": [
|
|
5
5
|
{
|
|
6
6
|
"name": "Alejandro Ravelo Julian",
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
}
|
|
9
9
|
],
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"@angular/cdk": "^
|
|
12
|
-
"@angular/common": "^
|
|
13
|
-
"@angular/core": "^
|
|
14
|
-
"@angular/material": "^
|
|
11
|
+
"@angular/cdk": "^19.2.17",
|
|
12
|
+
"@angular/common": "^19.2.12",
|
|
13
|
+
"@angular/core": "^19.2.12",
|
|
14
|
+
"@angular/material": "^19.2.17",
|
|
15
15
|
"leaflet": "^1.9.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
@@ -26,8 +26,6 @@
|
|
|
26
26
|
},
|
|
27
27
|
".": {
|
|
28
28
|
"types": "./index.d.ts",
|
|
29
|
-
"esm2022": "./esm2022/guajiritos-map.mjs",
|
|
30
|
-
"esm": "./esm2022/guajiritos-map.mjs",
|
|
31
29
|
"default": "./fesm2022/guajiritos-map.mjs"
|
|
32
30
|
}
|
|
33
31
|
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public-api';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3VhamlyaXRvcy1tYXAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9wcm9qZWN0cy9ndWFqaXJpdG9zLW1hcC9zcmMvZ3VhamlyaXRvcy1tYXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export const DEFAULT_MAP_OPTION = {
|
|
2
|
-
center: [23.130257185291036, -82.35626220703126],
|
|
3
|
-
draggable: true,
|
|
4
|
-
zoom: 15,
|
|
5
|
-
updateWithClick: false,
|
|
6
|
-
updateWithDoubleClick: false,
|
|
7
|
-
zoomControl: true,
|
|
8
|
-
borderRadius: '8px',
|
|
9
|
-
height: '400px',
|
|
10
|
-
scrollWheelZoom: false,
|
|
11
|
-
addMarker: false,
|
|
12
|
-
aloneMarker: true,
|
|
13
|
-
scrollable: false,
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJmYWNlcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi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iAgZHJhZ2dhYmxlOiB0cnVlLFxyXG4gIHpvb206IDE1LFxyXG4gIHVwZGF0ZVdpdGhDbGljazogZmFsc2UsXHJcbiAgdXBkYXRlV2l0aERvdWJsZUNsaWNrOiBmYWxzZSxcclxuICB6b29tQ29udHJvbDogdHJ1ZSxcclxuICBib3JkZXJSYWRpdXM6ICc4cHgnLFxyXG4gIGhlaWdodDogJzQwMHB4JyxcclxuICBzY3JvbGxXaGVlbFpvb206IGZhbHNlLFxyXG4gIGFkZE1hcmtlcjogZmFsc2UsXHJcbiAgYWxvbmVNYXJrZXI6IHRydWUsXHJcbiAgc2Nyb2xsYWJsZTogZmFsc2UsXHJcbn07XHJcbiJdfQ==
|
|
@@ -1,403 +0,0 @@
|
|
|
1
|
-
import { Component, DestroyRef, EventEmitter, forwardRef, inject, Input, Output, signal } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import * as L from 'leaflet';
|
|
4
|
-
import { icon, LatLng, layerGroup } from 'leaflet';
|
|
5
|
-
import { MatInputModule } from '@angular/material/input';
|
|
6
|
-
import { NG_VALIDATORS, NG_VALUE_ACCESSOR, ReactiveFormsModule, UntypedFormControl, UntypedFormGroup, Validators } from '@angular/forms';
|
|
7
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
8
|
-
import { debounceTime, distinctUntilChanged } from 'rxjs';
|
|
9
|
-
import { TranslateModule } from '@ngx-translate/core';
|
|
10
|
-
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
11
|
-
import { DEFAULT_MAP_OPTION } from '../interfaces/interfaces';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
import * as i1 from "@angular/common";
|
|
14
|
-
import * as i2 from "@angular/material/input";
|
|
15
|
-
import * as i3 from "@angular/material/form-field";
|
|
16
|
-
import * as i4 from "@angular/forms";
|
|
17
|
-
import * as i5 from "@angular/material/icon";
|
|
18
|
-
import * as i6 from "@ngx-translate/core";
|
|
19
|
-
export class GuajiritosMap {
|
|
20
|
-
constructor() {
|
|
21
|
-
this._destroyedRef = inject(DestroyRef);
|
|
22
|
-
this.layerGroup = new L.LayerGroup();
|
|
23
|
-
this.mapMarkers = signal([]);
|
|
24
|
-
this.options = signal(DEFAULT_MAP_OPTION);
|
|
25
|
-
this.circle = signal(null);
|
|
26
|
-
this.form = new UntypedFormGroup({
|
|
27
|
-
latitude: new UntypedFormControl({ value: null, disabled: false }, [Validators.required]),
|
|
28
|
-
longitude: new UntypedFormControl({ value: null, disabled: false }, [Validators.required])
|
|
29
|
-
});
|
|
30
|
-
this.appearance = 'outline';
|
|
31
|
-
this.color = 'accent';
|
|
32
|
-
this.floatLabel = 'always';
|
|
33
|
-
this.subscriptSizing = 'dynamic';
|
|
34
|
-
this.readonly = false;
|
|
35
|
-
this.hiddenForm = false;
|
|
36
|
-
this.showIcon = true;
|
|
37
|
-
this.showLabel = true;
|
|
38
|
-
this.mapId = 'map';
|
|
39
|
-
/**
|
|
40
|
-
* Default marker icon
|
|
41
|
-
*/
|
|
42
|
-
this.icon = {
|
|
43
|
-
iconSize: [25, 41],
|
|
44
|
-
iconAnchor: [13, 41],
|
|
45
|
-
iconUrl: 'leaflet/marker-icon.png'
|
|
46
|
-
};
|
|
47
|
-
/**
|
|
48
|
-
* Se lanza cada vez que cambia un marcador
|
|
49
|
-
*/
|
|
50
|
-
this.markerDragend = new EventEmitter();
|
|
51
|
-
/**
|
|
52
|
-
* Se lanza cada vez que se añade un marcador
|
|
53
|
-
*/
|
|
54
|
-
this.markerAdded = new EventEmitter();
|
|
55
|
-
this.markerClicked = new EventEmitter();
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Default map options
|
|
59
|
-
*/
|
|
60
|
-
set optionsMap(options) {
|
|
61
|
-
if (options) {
|
|
62
|
-
this.options.set({
|
|
63
|
-
...this.options(),
|
|
64
|
-
...options
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
;
|
|
69
|
-
/**
|
|
70
|
-
* Add a circle on the map
|
|
71
|
-
*/
|
|
72
|
-
set circleConfig(circle) {
|
|
73
|
-
if (circle) {
|
|
74
|
-
this.circle.set(circle);
|
|
75
|
-
if (this.map) {
|
|
76
|
-
this.addCircle(this.circle()?.center, this.circle()?.radius);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
set center(center) {
|
|
81
|
-
if (center) {
|
|
82
|
-
this.changeCenter(new LatLng(center.lat, center.lng));
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* List of markers
|
|
87
|
-
* @param markers - Markers array
|
|
88
|
-
*/
|
|
89
|
-
set markers(markers) {
|
|
90
|
-
if (markers?.length) {
|
|
91
|
-
this.mapMarkers.set(markers);
|
|
92
|
-
this.form.patchValue({
|
|
93
|
-
latitude: this.mapMarkers()?.[0]?.lat,
|
|
94
|
-
longitude: this.mapMarkers()?.[0]?.lng
|
|
95
|
-
});
|
|
96
|
-
this.changeCenter(new L.LatLng(this.mapMarkers()[0].lat, this.mapMarkers()[0].lng));
|
|
97
|
-
if (this.map && this.layerGroup) {
|
|
98
|
-
this.drawMarkers();
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Draws the markers.
|
|
104
|
-
*/
|
|
105
|
-
drawMarkers() {
|
|
106
|
-
if (this.mapMarkers()?.length) {
|
|
107
|
-
this.layerGroup.clearLayers();
|
|
108
|
-
this.mapMarkers().forEach((m) => {
|
|
109
|
-
this.addMarker(m, false);
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Main properties of the map
|
|
115
|
-
* @private
|
|
116
|
-
*/
|
|
117
|
-
initMap() {
|
|
118
|
-
this.map = L.map(this.mapId, {
|
|
119
|
-
center: this.options()?.center ?? DEFAULT_MAP_OPTION.center,
|
|
120
|
-
dragging: this.options()?.draggable ?? DEFAULT_MAP_OPTION.draggable,
|
|
121
|
-
zoom: this.options()?.zoom ?? DEFAULT_MAP_OPTION.zoom,
|
|
122
|
-
zoomControl: this.options()?.zoomControl || DEFAULT_MAP_OPTION.zoomControl,
|
|
123
|
-
scrollWheelZoom: this.options()?.scrollWheelZoom || DEFAULT_MAP_OPTION.scrollWheelZoom,
|
|
124
|
-
maxZoom: 18,
|
|
125
|
-
minZoom: 3
|
|
126
|
-
});
|
|
127
|
-
this.layerGroup = layerGroup().addTo(this.map);
|
|
128
|
-
L.tileLayer('http://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png').addTo(this.map);
|
|
129
|
-
this.drawMarkers();
|
|
130
|
-
if (this.mapMarkers()?.[0]?.lat && this.mapMarkers()?.[0]?.lng) {
|
|
131
|
-
this.changeCenter(new L.LatLng(this.mapMarkers()[0].lat, this.mapMarkers()[0].lng));
|
|
132
|
-
}
|
|
133
|
-
if (this.circle()) {
|
|
134
|
-
this.addCircle(this.circle()?.center, this.circle()?.radius);
|
|
135
|
-
}
|
|
136
|
-
if (this.options()?.addMarker) {
|
|
137
|
-
let that = this;
|
|
138
|
-
this.map.on('click', function (e) {
|
|
139
|
-
if (that.mapMarkers().length === 0 || (that.mapMarkers().length > 0 && !that.options()?.aloneMarker)) {
|
|
140
|
-
const newMarker = {
|
|
141
|
-
lat: e.latlng.lat,
|
|
142
|
-
lng: e.latlng.lng,
|
|
143
|
-
draggable: that.options()?.draggable ?? DEFAULT_MAP_OPTION.draggable
|
|
144
|
-
};
|
|
145
|
-
that.form.patchValue({
|
|
146
|
-
latitude: e.latlng.lat,
|
|
147
|
-
longitude: e.latlng.lng
|
|
148
|
-
});
|
|
149
|
-
that.addMarker(newMarker);
|
|
150
|
-
that.markerAdded.emit(newMarker);
|
|
151
|
-
}
|
|
152
|
-
else {
|
|
153
|
-
that.drawAloneMarker(e.latlng.lat, e.latlng.lng);
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* Draws a marker at the specified latitude and longitude if the first marker's latitude and longitude
|
|
160
|
-
* are different from the provided values. It updates the first marker's latitude and longitude if the
|
|
161
|
-
* marker array is not empty.
|
|
162
|
-
*
|
|
163
|
-
* @param {number} lat - The latitude of the marker
|
|
164
|
-
* @param {number} lng - The longitude of the marker
|
|
165
|
-
*/
|
|
166
|
-
drawAloneMarker(lat, lng) {
|
|
167
|
-
if (this.mapMarkers()?.[0]?.lat && this.mapMarkers()?.[0]?.lng) {
|
|
168
|
-
if (this.mapMarkers()[0].lat !== lat || this.mapMarkers()[0].lng !== lng) {
|
|
169
|
-
this.mapMarkers.update((markers) => {
|
|
170
|
-
if (markers?.length) {
|
|
171
|
-
markers[0].lat = lat;
|
|
172
|
-
markers[0].lng = lng;
|
|
173
|
-
}
|
|
174
|
-
return markers;
|
|
175
|
-
});
|
|
176
|
-
this.drawMarkers();
|
|
177
|
-
this.changeCenter(new L.LatLng(this.mapMarkers()[0].lat, this.mapMarkers()[0].lng));
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* Add marker to map
|
|
183
|
-
* @param center - center of the circle
|
|
184
|
-
* @param radius - radius of the circle in meters
|
|
185
|
-
* @private
|
|
186
|
-
*/
|
|
187
|
-
addCircle(center, radius) {
|
|
188
|
-
if (this.map && center?.lat && center?.lng) {
|
|
189
|
-
this.drawMarkers();
|
|
190
|
-
L.circleMarker([center.lat, center.lng], { radius: radius ?? 10 }).addTo(this.map);
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* Add marker to map
|
|
195
|
-
* @param marker - Point of the map
|
|
196
|
-
* @param canAdd
|
|
197
|
-
*/
|
|
198
|
-
addMarker(marker, canAdd = true) {
|
|
199
|
-
if (this.map && marker?.lat && marker?.lng) {
|
|
200
|
-
const markerAdd = L.marker({
|
|
201
|
-
lat: marker.lat,
|
|
202
|
-
lng: marker.lng,
|
|
203
|
-
alt: marker?.alt ?? 0,
|
|
204
|
-
}, {
|
|
205
|
-
draggable: marker?.draggable ?? true,
|
|
206
|
-
autoPan: true
|
|
207
|
-
}).setIcon(icon({
|
|
208
|
-
iconSize: this.icon?.iconSize,
|
|
209
|
-
iconAnchor: this.icon?.iconAnchor,
|
|
210
|
-
iconUrl: this.icon?.iconUrl
|
|
211
|
-
})).addTo(this.layerGroup);
|
|
212
|
-
if (canAdd) {
|
|
213
|
-
this.mapMarkers.update((markers) => {
|
|
214
|
-
markers.push(marker);
|
|
215
|
-
return markers;
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
|
-
markerAdd.on('dragend', () => {
|
|
219
|
-
this.changeCenter(markerAdd.getLatLng());
|
|
220
|
-
this.markerDragend.emit(markerAdd.getLatLng());
|
|
221
|
-
});
|
|
222
|
-
if (marker?.popupContent) {
|
|
223
|
-
markerAdd.on('mouseover', () => {
|
|
224
|
-
const popup = L.popup({
|
|
225
|
-
className: 'guajiritos-marker-popup',
|
|
226
|
-
closeButton: false,
|
|
227
|
-
offset: new L.Point(0, -32)
|
|
228
|
-
})
|
|
229
|
-
.setLatLng(markerAdd.getLatLng())
|
|
230
|
-
.setContent(marker.popupContent)
|
|
231
|
-
.addTo(this.layerGroup);
|
|
232
|
-
document.querySelector('.guajiritos-marker-popup')
|
|
233
|
-
.addEventListener('click', () => {
|
|
234
|
-
this.markerClicked.emit(marker);
|
|
235
|
-
});
|
|
236
|
-
});
|
|
237
|
-
}
|
|
238
|
-
if (marker?.clickable) {
|
|
239
|
-
markerAdd.on('click', () => {
|
|
240
|
-
this.markerClicked.emit(marker);
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
/**
|
|
246
|
-
* Put the map center on marker position
|
|
247
|
-
* @param marker - Point of the map
|
|
248
|
-
*/
|
|
249
|
-
changeCenter(marker) {
|
|
250
|
-
this.form.patchValue({
|
|
251
|
-
latitude: marker.lat,
|
|
252
|
-
longitude: marker.lng
|
|
253
|
-
});
|
|
254
|
-
this.map?.setView(marker);
|
|
255
|
-
}
|
|
256
|
-
/**
|
|
257
|
-
* Propagates the change to other components.
|
|
258
|
-
*
|
|
259
|
-
* @param {any} _ - an arbitrary parameter.
|
|
260
|
-
*/
|
|
261
|
-
propagateChange(_) {
|
|
262
|
-
}
|
|
263
|
-
;
|
|
264
|
-
/**
|
|
265
|
-
* Sets the callback function to be called when the value
|
|
266
|
-
* of the control changes.
|
|
267
|
-
*
|
|
268
|
-
* @param {any} fn - The callback function to be called
|
|
269
|
-
* when the value of the control changes.
|
|
270
|
-
*/
|
|
271
|
-
registerOnChange(fn) {
|
|
272
|
-
this.propagateChange = fn;
|
|
273
|
-
}
|
|
274
|
-
/**
|
|
275
|
-
* Registers a callback function to be called when the form control is "touched".
|
|
276
|
-
*/
|
|
277
|
-
registerOnTouched() {
|
|
278
|
-
}
|
|
279
|
-
/**
|
|
280
|
-
* Sets the disabled state of the form.
|
|
281
|
-
*
|
|
282
|
-
* @param {boolean} isDisabled - Specifies whether the form should be disabled or not.
|
|
283
|
-
*/
|
|
284
|
-
setDisabledState(isDisabled) {
|
|
285
|
-
if (isDisabled) {
|
|
286
|
-
this.form.disable();
|
|
287
|
-
}
|
|
288
|
-
else {
|
|
289
|
-
this.form.enable();
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
/**
|
|
293
|
-
* Writes a value to the form.
|
|
294
|
-
*
|
|
295
|
-
* @param {any} data - The data to be written.
|
|
296
|
-
*/
|
|
297
|
-
writeValue(data) {
|
|
298
|
-
if (data?.latitude && data?.longitude) {
|
|
299
|
-
this.form.patchValue({
|
|
300
|
-
latitude: data.latitude,
|
|
301
|
-
longitude: data.longitude
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
validate() {
|
|
306
|
-
return this.form.invalid ? { wrongLocation: true } : null;
|
|
307
|
-
}
|
|
308
|
-
/**
|
|
309
|
-
* Initializes the component and sets up a listener for changes in the form value.
|
|
310
|
-
*/
|
|
311
|
-
ngOnInit() {
|
|
312
|
-
this.form.valueChanges
|
|
313
|
-
.pipe(takeUntilDestroyed(this._destroyedRef), distinctUntilChanged(), debounceTime(300))
|
|
314
|
-
.subscribe((marker) => {
|
|
315
|
-
this.propagateChange(this.form.value);
|
|
316
|
-
if (this.options().aloneMarker && marker.latitude && marker.longitude) {
|
|
317
|
-
if (this.mapMarkers()?.length === 0) {
|
|
318
|
-
this.addMarker({
|
|
319
|
-
lat: Number(marker.latitude),
|
|
320
|
-
lng: Number(marker.longitude),
|
|
321
|
-
draggable: true
|
|
322
|
-
});
|
|
323
|
-
this.changeCenter(new L.LatLng(Number(marker.latitude), Number(marker.longitude)));
|
|
324
|
-
}
|
|
325
|
-
else {
|
|
326
|
-
this.drawAloneMarker(Number(marker.latitude), Number(marker.longitude));
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
});
|
|
330
|
-
}
|
|
331
|
-
ngAfterViewInit() {
|
|
332
|
-
this.initMap();
|
|
333
|
-
}
|
|
334
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: GuajiritosMap, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
335
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.0.5", type: GuajiritosMap, isStandalone: true, selector: "guajiritos-map", inputs: { appearance: "appearance", color: "color", floatLabel: "floatLabel", subscriptSizing: "subscriptSizing", readonly: "readonly", hiddenForm: "hiddenForm", showIcon: "showIcon", showLabel: "showLabel", mapId: "mapId", optionsMap: "optionsMap", circleConfig: "circleConfig", center: "center", icon: "icon", markers: "markers" }, outputs: { markerDragend: "markerDragend", markerAdded: "markerAdded", markerClicked: "markerClicked" }, providers: [
|
|
336
|
-
{
|
|
337
|
-
provide: NG_VALUE_ACCESSOR,
|
|
338
|
-
useExisting: forwardRef(() => GuajiritosMap),
|
|
339
|
-
multi: true
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
provide: NG_VALIDATORS,
|
|
343
|
-
useExisting: forwardRef(() => GuajiritosMap),
|
|
344
|
-
multi: true
|
|
345
|
-
}
|
|
346
|
-
], ngImport: i0, template: "@if (mapId) {\r\n <div class=\"map-container\">\r\n @if (!hiddenForm && options()?.aloneMarker && mapMarkers()?.length <= 1) {\r\n <div class=\"lat-lng-input\" [formGroup]=\"form\">\r\n <mat-form-field [appearance]=\"appearance\" [color]=\"color\" [floatLabel]=\"floatLabel\" class='w-100'\r\n [subscriptSizing]=\"subscriptSizing\">\r\n <mat-label *ngIf=\"showLabel\">{{ \"latitud\" | translate | titlecase }}</mat-label>\r\n <mat-icon matSuffix class=\"material-icons-outlined\" [color]=\"color\" *ngIf=\"showIcon\">place</mat-icon>\r\n <input matInput [placeholder]=\"'latitud' | translate\" [readonly]=\"readonly\" formControlName=\"latitude\">\r\n <mat-error>{{ 'Latitud requerida' | translate }}</mat-error>\r\n </mat-form-field>\r\n <mat-form-field [appearance]=\"appearance\" [color]=\"color\" [floatLabel]=\"floatLabel\" class='w-100'\r\n [subscriptSizing]=\"subscriptSizing\">\r\n <mat-label *ngIf=\"showLabel\">{{ \"longitud\" | translate | titlecase }}</mat-label>\r\n <mat-icon matSuffix class=\"material-icons-outlined\" [color]=\"color\" *ngIf=\"showIcon\">place</mat-icon>\r\n <input matInput [placeholder]=\"'longitud' | translate\" [readonly]=\"readonly\" formControlName=\"longitude\">\r\n <mat-error>{{ 'Longitud requerida' | translate }}</mat-error>\r\n </mat-form-field>\r\n </div>\r\n }\r\n\r\n <div [id]=\"mapId\" class=\"map\"\r\n [ngStyle]=\"{'border-radius': options()?.borderRadius ?? '8px', 'height': options()?.height ?? '400px'}\"></div>\r\n </div>\r\n}\r\n", styles: [".map-container{display:flex;flex-direction:column;gap:2rem}.lat-lng-input{display:flex;flex-direction:row;gap:1rem}.map{min-height:100px;max-width:100%}.w-100{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: i1.TitleCasePipe, name: "titlecase" }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i3.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }] }); }
|
|
347
|
-
}
|
|
348
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: GuajiritosMap, decorators: [{
|
|
349
|
-
type: Component,
|
|
350
|
-
args: [{ selector: 'guajiritos-map', standalone: true, imports: [
|
|
351
|
-
CommonModule,
|
|
352
|
-
MatInputModule,
|
|
353
|
-
ReactiveFormsModule,
|
|
354
|
-
MatIconModule,
|
|
355
|
-
TranslateModule
|
|
356
|
-
], providers: [
|
|
357
|
-
{
|
|
358
|
-
provide: NG_VALUE_ACCESSOR,
|
|
359
|
-
useExisting: forwardRef(() => GuajiritosMap),
|
|
360
|
-
multi: true
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
|
-
provide: NG_VALIDATORS,
|
|
364
|
-
useExisting: forwardRef(() => GuajiritosMap),
|
|
365
|
-
multi: true
|
|
366
|
-
}
|
|
367
|
-
], template: "@if (mapId) {\r\n <div class=\"map-container\">\r\n @if (!hiddenForm && options()?.aloneMarker && mapMarkers()?.length <= 1) {\r\n <div class=\"lat-lng-input\" [formGroup]=\"form\">\r\n <mat-form-field [appearance]=\"appearance\" [color]=\"color\" [floatLabel]=\"floatLabel\" class='w-100'\r\n [subscriptSizing]=\"subscriptSizing\">\r\n <mat-label *ngIf=\"showLabel\">{{ \"latitud\" | translate | titlecase }}</mat-label>\r\n <mat-icon matSuffix class=\"material-icons-outlined\" [color]=\"color\" *ngIf=\"showIcon\">place</mat-icon>\r\n <input matInput [placeholder]=\"'latitud' | translate\" [readonly]=\"readonly\" formControlName=\"latitude\">\r\n <mat-error>{{ 'Latitud requerida' | translate }}</mat-error>\r\n </mat-form-field>\r\n <mat-form-field [appearance]=\"appearance\" [color]=\"color\" [floatLabel]=\"floatLabel\" class='w-100'\r\n [subscriptSizing]=\"subscriptSizing\">\r\n <mat-label *ngIf=\"showLabel\">{{ \"longitud\" | translate | titlecase }}</mat-label>\r\n <mat-icon matSuffix class=\"material-icons-outlined\" [color]=\"color\" *ngIf=\"showIcon\">place</mat-icon>\r\n <input matInput [placeholder]=\"'longitud' | translate\" [readonly]=\"readonly\" formControlName=\"longitude\">\r\n <mat-error>{{ 'Longitud requerida' | translate }}</mat-error>\r\n </mat-form-field>\r\n </div>\r\n }\r\n\r\n <div [id]=\"mapId\" class=\"map\"\r\n [ngStyle]=\"{'border-radius': options()?.borderRadius ?? '8px', 'height': options()?.height ?? '400px'}\"></div>\r\n </div>\r\n}\r\n", styles: [".map-container{display:flex;flex-direction:column;gap:2rem}.lat-lng-input{display:flex;flex-direction:row;gap:1rem}.map{min-height:100px;max-width:100%}.w-100{width:100%}\n"] }]
|
|
368
|
-
}], propDecorators: { appearance: [{
|
|
369
|
-
type: Input
|
|
370
|
-
}], color: [{
|
|
371
|
-
type: Input
|
|
372
|
-
}], floatLabel: [{
|
|
373
|
-
type: Input
|
|
374
|
-
}], subscriptSizing: [{
|
|
375
|
-
type: Input
|
|
376
|
-
}], readonly: [{
|
|
377
|
-
type: Input
|
|
378
|
-
}], hiddenForm: [{
|
|
379
|
-
type: Input
|
|
380
|
-
}], showIcon: [{
|
|
381
|
-
type: Input
|
|
382
|
-
}], showLabel: [{
|
|
383
|
-
type: Input
|
|
384
|
-
}], mapId: [{
|
|
385
|
-
type: Input
|
|
386
|
-
}], optionsMap: [{
|
|
387
|
-
type: Input
|
|
388
|
-
}], circleConfig: [{
|
|
389
|
-
type: Input
|
|
390
|
-
}], center: [{
|
|
391
|
-
type: Input
|
|
392
|
-
}], icon: [{
|
|
393
|
-
type: Input
|
|
394
|
-
}], markers: [{
|
|
395
|
-
type: Input
|
|
396
|
-
}], markerDragend: [{
|
|
397
|
-
type: Output
|
|
398
|
-
}], markerAdded: [{
|
|
399
|
-
type: Output
|
|
400
|
-
}], markerClicked: [{
|
|
401
|
-
type: Output
|
|
402
|
-
}] } });
|
|
403
|
-
//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5zZXRJY29uKFxyXG4gICAgICAgIGljb24oe1xyXG4gICAgICAgICAgaWNvblNpemU6IHRoaXMuaWNvbj8uaWNvblNpemUsXHJcbiAgICAgICAgICBpY29uQW5jaG9yOiB0aGlzLmljb24/Lmljb25BbmNob3IsXHJcbiAgICAgICAgICBpY29uVXJsOiB0aGlzLmljb24/Lmljb25VcmxcclxuICAgICAgICB9KVxyXG4gICAgICApLmFkZFRvKHRoaXMubGF5ZXJHcm91cCk7XHJcblxyXG4gICAgICBpZiAoY2FuQWRkKSB7XHJcbiAgICAgICAgdGhpcy5tYXBNYXJrZXJzLnVwZGF0ZSgobWFya2VyczogTWFya2VyTWFwW10pOiBNYXJrZXJNYXBbXSA9PiB7XHJcbiAgICAgICAgICBtYXJrZXJzLnB1c2gobWFya2VyKTtcclxuICAgICAgICAgIHJldHVybiBtYXJrZXJzO1xyXG4gICAgICAgIH0pO1xyXG4gICAgICB9XHJcblxyXG4gICAgICBtYXJrZXJBZGQub24oJ2RyYWdlbmQnLCAoKTogdm9pZCA9PiB7XHJcbiAgICAgICAgdGhpcy5jaGFuZ2VDZW50ZXIobWFya2VyQWRkLmdldExhdExuZygpKTtcclxuICAgICAgICB0aGlzLm1hcmtlckRyYWdlbmQuZW1pdChtYXJrZXJBZGQuZ2V0TGF0TG5nKCkpO1xyXG4gICAgICB9KTtcclxuXHJcbiAgICAgIGlmIChtYXJrZXI/LnBvcHVwQ29udGVudCkge1xyXG4gICAgICAgIG1hcmtlckFkZC5vbignbW91c2VvdmVyJywgKCk6IHZvaWQgPT4ge1xyXG4gICAgICAgICAgY29uc3QgcG9wdXA6IEwuUG9wdXAgPSBMLnBvcHVwKHtcclxuICAgICAgICAgICAgY2xhc3NOYW1lOiAnZ3VhamlyaXRvcy1tYXJrZXItcG9wdXAnLFxyXG4gICAgICAgICAgICBjbG9zZUJ1dHRvbjogZmFsc2UsXHJcbiAgICAgICAgICAgIG9mZnNldDogbmV3IEwuUG9pbnQoMCwgLTMyKVxyXG4gICAgICAgICAgfSlcclxuICAgICAgICAgICAgLnNldExhdExuZyhtYXJrZXJBZGQuZ2V0TGF0TG5nKCkpXHJcbiAgICAgICAgICAgIC5zZXRDb250ZW50KG1hcmtlci5wb3B1cENvbnRlbnQpXHJcbiAgICAgICAgICAgIC5hZGRUbyh0aGlzLmxheWVyR3JvdXApO1xyXG5cclxuICAgICAgICAgIGRvY3VtZW50LnF1ZXJ5U2VsZWN0b3IoJy5ndWFqaXJpdG9zLW1hcmtlci1wb3B1cCcpXHJcbiAgICAgICAgICAgIC5hZGRFdmVudExpc3RlbmVyKCdjbGljaycsICgpOiB2b2lkID0+IHtcclxuICAgICAgICAgICAgICB0aGlzLm1hcmtlckNsaWNrZWQuZW1pdChtYXJrZXIpO1xyXG4gICAgICAgICAgICB9KVxyXG4gICAgICAgIH0pO1xyXG4gICAgICB9XHJcblxyXG4gICAgICBpZiAobWFya2VyPy5jbGlja2FibGUpIHtcclxuICAgICAgICBtYXJrZXJBZGQub24oJ2NsaWNrJywgKCk6IHZvaWQgPT4ge1xyXG4gICAgICAgICAgdGhpcy5tYXJrZXJDbGlja2VkLmVtaXQobWFya2VyKTtcclxuICAgICAgICB9KTtcclxuICAgICAgfVxyXG4gICAgfVxyXG4gIH1cclxuXHJcbiAgLyoqXHJcbiAgICogUHV0IHRoZSBtYXAgY2VudGVyIG9uIG1hcmtlciBwb3NpdGlvblxyXG4gICAqIEBwYXJhbSBtYXJrZXIgLSBQb2ludCBvZiB0aGUgbWFwXHJcbiAgICovXHJcbiAgcHVibGljIGNoYW5nZUNlbnRlcihtYXJrZXI6IEwuTGF0TG5nKTogdm9pZCB7XHJcbiAgICB0aGlzLmZvcm0ucGF0Y2hWYWx1ZSh7XHJcbiAgICAgIGxhdGl0dWRlOiBtYXJrZXIubGF0LFxyXG4gICAgICBsb25naXR1ZGU6IG1hcmtlci5sbmdcclxuICAgIH0pO1xyXG4gICAgdGhpcy5tYXA/LnNldFZpZXcobWFya2VyKTtcclxuICB9XHJcblx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ItcmFkaXVzJzogb3B0aW9ucygpPy5ib3JkZXJSYWRpdXMgPz8gJzhweCcsICdoZWlnaHQnOiBvcHRpb25zKCk/LmhlaWdodCA/PyAnNDAwcHgnfVwiPjwvZGl2PlxyXG4gIDwvZGl2PlxyXG59XHJcbiJdfQ==
|
package/esm2022/public-api.mjs
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Public API Surface of guajiritos-map
|
|
3
|
-
*/
|
|
4
|
-
export * from './interfaces/interfaces';
|
|
5
|
-
export * from './lib/guajiritos-map.component';
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2d1YWppcml0b3MtbWFwL3NyYy9wdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLGdDQUFnQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcclxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIGd1YWppcml0b3MtbWFwXHJcbiAqL1xyXG5cclxuZXhwb3J0ICogZnJvbSAnLi9pbnRlcmZhY2VzL2ludGVyZmFjZXMnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9ndWFqaXJpdG9zLW1hcC5jb21wb25lbnQnO1xyXG4iXX0=
|