@m4l/gclick 0.2.0-JAEBeta.0 → 0.2.0-JAEBeta.1

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.
@@ -1,4 +1,4 @@
1
- import { leafletAllStyles } from "./leaflet.styles";
1
+ import { l as leafletAllStyles } from "./Leaflet.styles.js";
2
2
  import { m as mapSourcesToolStyles } from "./subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapSourcesTool/MapSourcesTool.styles.js";
3
3
  import { m as mapLayersToolStyles } from "./subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MapLayersTool/MapLayersTool.styles.js";
4
4
  import { m as mapMeasureToolStyles, g as getMapContainerMeasureToolStyles } from "./subcomponents/Controls/subcomponents/TopRigthTools/subcomponents/MeasureTool/MeasureTool.styles.js";
@@ -0,0 +1,535 @@
1
+ const leafletAllStyles = {
2
+ /* required styles */
3
+ ".leaflet-pane, .leaflet-tile, .leaflet-marker-icon, .leaflet-marker-shadow, .leaflet-tile-container, .leaflet-pane > svg, .leaflet-pane > canvas, .leaflet-zoom-box, .leaflet-image-layer, .leaflet-layer": {
4
+ position: "absolute",
5
+ left: 0,
6
+ top: 0
7
+ },
8
+ ".leaflet-container": {
9
+ overflow: "hidden",
10
+ WebkitTapHighlightColor: "transparent",
11
+ background: "#ddd",
12
+ outlineOffset: "1px",
13
+ fontFamily: '"Helvetica Neue", Arial, Helvetica, sans-serif',
14
+ fontSize: ".65rem",
15
+ lineHeight: 1.5
16
+ },
17
+ ".leaflet-tile, .leaflet-marker-icon, .leaflet-marker-shadow": {
18
+ userSelect: "none",
19
+ // @ts-ignore - WebkitUserDrag no está en el tipo CSSProperties
20
+ WebkitUserDrag: "none"
21
+ },
22
+ /* Prevents IE11 from highlighting tiles in blue */
23
+ ".leaflet-tile::selection": {
24
+ background: "transparent"
25
+ },
26
+ /* Safari renders non-retina tile on retina better with this, but Chrome is worse */
27
+ ".leaflet-safari .leaflet-tile": {
28
+ imageRendering: "-webkit-optimize-contrast"
29
+ },
30
+ /* hack that prevents hw layers "stretching" when loading new tiles */
31
+ ".leaflet-safari .leaflet-tile-container": {
32
+ width: "1600px",
33
+ height: "1600px",
34
+ WebkitTransformOrigin: "0 0"
35
+ },
36
+ ".leaflet-marker-icon, .leaflet-marker-shadow": {
37
+ display: "block"
38
+ },
39
+ /* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
40
+ /* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
41
+ ".leaflet-container .leaflet-overlay-pane svg": {
42
+ maxWidth: "none !important",
43
+ maxHeight: "none !important"
44
+ },
45
+ ".leaflet-container .leaflet-marker-pane img, .leaflet-container .leaflet-shadow-pane img, .leaflet-container .leaflet-tile-pane img, .leaflet-container img.leaflet-image-layer, .leaflet-container .leaflet-tile": {
46
+ maxWidth: "none !important",
47
+ maxHeight: "none !important",
48
+ width: "auto",
49
+ padding: 0
50
+ },
51
+ ".leaflet-container img.leaflet-tile": {
52
+ /* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
53
+ mixBlendMode: "plus-lighter"
54
+ },
55
+ ".leaflet-container.leaflet-touch-zoom": {
56
+ msTouchAction: "pan-x pan-y",
57
+ touchAction: "pan-x pan-y"
58
+ },
59
+ ".leaflet-container.leaflet-touch-drag": {
60
+ msTouchAction: "pinch-zoom",
61
+ /* Fallback for FF which doesn't support pinch-zoom */
62
+ touchAction: "pinch-zoom"
63
+ },
64
+ ".leaflet-container.leaflet-touch-drag.leaflet-touch-zoom": {
65
+ msTouchAction: "none",
66
+ touchAction: "none"
67
+ },
68
+ ".leaflet-container a": {
69
+ color: "#0078A8",
70
+ WebkitTapHighlightColor: "rgba(51, 181, 229, 0.4)"
71
+ },
72
+ ".leaflet-tile": {
73
+ display: "block",
74
+ filter: "inherit",
75
+ visibility: "hidden"
76
+ },
77
+ ".leaflet-tile-loaded": {
78
+ visibility: "inherit"
79
+ },
80
+ ".leaflet-zoom-box": {
81
+ width: 0,
82
+ height: 0,
83
+ MozBoxSizing: "border-box",
84
+ boxSizing: "border-box",
85
+ zIndex: 800,
86
+ border: "2px dotted #38f",
87
+ background: "rgba(255,255,255,0.5)"
88
+ },
89
+ /* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
90
+ ".leaflet-overlay-pane svg": {
91
+ MozUserSelect: "none"
92
+ },
93
+ ".leaflet-pane": { zIndex: 400 },
94
+ ".leaflet-tile-pane": { zIndex: 200 },
95
+ ".leaflet-overlay-pane": { zIndex: 400 },
96
+ ".leaflet-shadow-pane": { zIndex: 500 },
97
+ ".leaflet-marker-pane": { zIndex: 600 },
98
+ ".leaflet-tooltip-pane": { zIndex: 650 },
99
+ ".leaflet-popup-pane": { zIndex: 700 },
100
+ ".leaflet-map-pane canvas": { zIndex: 100 },
101
+ ".leaflet-map-pane svg": { zIndex: 200 },
102
+ ".leaflet-vml-shape": {
103
+ width: "1px",
104
+ height: "1px"
105
+ },
106
+ ".lvml": {
107
+ // @ts-ignore - behavior no está en el tipo CSSProperties
108
+ behavior: "url(#default#VML)",
109
+ display: "inline-block",
110
+ position: "absolute"
111
+ },
112
+ /* control positioning */
113
+ ".leaflet-control": {
114
+ position: "relative",
115
+ zIndex: 800,
116
+ pointerEvents: "auto",
117
+ float: "left",
118
+ clear: "both"
119
+ },
120
+ ".leaflet-top, .leaflet-bottom": {
121
+ position: "absolute",
122
+ zIndex: 1e3,
123
+ pointerEvents: "none"
124
+ },
125
+ ".leaflet-top": {
126
+ top: 0
127
+ },
128
+ ".leaflet-right": {
129
+ right: 0
130
+ },
131
+ ".leaflet-bottom": {
132
+ bottom: 0
133
+ },
134
+ ".leaflet-left": {
135
+ left: 0
136
+ },
137
+ ".leaflet-right .leaflet-control": {
138
+ float: "right",
139
+ marginRight: "16px"
140
+ },
141
+ ".leaflet-top .leaflet-control": {
142
+ marginTop: "16px"
143
+ },
144
+ ".leaflet-bottom .leaflet-control": {
145
+ marginBottom: "16px"
146
+ },
147
+ ".leaflet-left .leaflet-control": {
148
+ marginLeft: "16px"
149
+ },
150
+ /* zoom and fade animations */
151
+ ".leaflet-fade-anim .leaflet-popup": {
152
+ opacity: 0,
153
+ WebkitTransition: "opacity 0.2s linear",
154
+ MozTransition: "opacity 0.2s linear",
155
+ transition: "opacity 0.2s linear"
156
+ },
157
+ ".leaflet-fade-anim .leaflet-map-pane .leaflet-popup": {
158
+ opacity: 1
159
+ },
160
+ ".leaflet-zoom-animated": {
161
+ WebkitTransformOrigin: "0 0",
162
+ msTransformOrigin: "0 0",
163
+ transformOrigin: "0 0"
164
+ },
165
+ "svg.leaflet-zoom-animated": {
166
+ willChange: "transform"
167
+ },
168
+ ".leaflet-zoom-anim .leaflet-zoom-animated": {
169
+ WebkitTransition: "-webkit-transform 0.25s cubic-bezier(0,0,0.25,1)",
170
+ MozTransition: "-moz-transform 0.25s cubic-bezier(0,0,0.25,1)",
171
+ transition: "transform 0.25s cubic-bezier(0,0,0.25,1)"
172
+ },
173
+ ".leaflet-zoom-anim .leaflet-tile, .leaflet-pan-anim .leaflet-tile": {
174
+ WebkitTransition: "none",
175
+ MozTransition: "none",
176
+ transition: "none"
177
+ },
178
+ ".leaflet-zoom-anim .leaflet-zoom-hide": {
179
+ visibility: "hidden"
180
+ },
181
+ /* cursors */
182
+ ".leaflet-interactive": {
183
+ cursor: "pointer"
184
+ },
185
+ ".leaflet-grab": {
186
+ cursor: "-webkit-grab"
187
+ },
188
+ ".leaflet-crosshair, .leaflet-crosshair .leaflet-interactive": {
189
+ cursor: "crosshair"
190
+ },
191
+ ".leaflet-popup-pane, .leaflet-control": {
192
+ cursor: "auto"
193
+ },
194
+ ".leaflet-dragging .leaflet-grab, .leaflet-dragging .leaflet-grab .leaflet-interactive, .leaflet-dragging .leaflet-marker-draggable": {
195
+ cursor: "move"
196
+ },
197
+ /* marker & overlays interactivity */
198
+ ".leaflet-marker-icon, .leaflet-marker-shadow, .leaflet-image-layer, .leaflet-pane > svg path, .leaflet-tile-container": {
199
+ pointerEvents: "none"
200
+ },
201
+ ".leaflet-marker-icon.leaflet-interactive, .leaflet-image-layer.leaflet-interactive, .leaflet-pane > svg path.leaflet-interactive, svg.leaflet-image-layer.leaflet-interactive path": {
202
+ pointerEvents: "auto"
203
+ },
204
+ /* visual tweaks */
205
+ /* general toolbar styles */
206
+ ".leaflet-bar": {
207
+ boxShadow: "0 1px 5px rgba(0,0,0,0.65)",
208
+ borderRadius: "4px"
209
+ },
210
+ ".leaflet-bar a": {
211
+ backgroundColor: "#fff",
212
+ borderBottom: "1px solid #ccc",
213
+ width: "26px",
214
+ height: "26px",
215
+ lineHeight: "26px",
216
+ display: "block",
217
+ textAlign: "center",
218
+ textDecoration: "none",
219
+ color: "black",
220
+ backgroundPosition: "50% 50%",
221
+ backgroundRepeat: "no-repeat"
222
+ },
223
+ ".leaflet-control-layers-toggle": {
224
+ backgroundImage: "url(images/layers.png)",
225
+ width: "36px",
226
+ height: "36px",
227
+ backgroundPosition: "50% 50%",
228
+ backgroundRepeat: "no-repeat",
229
+ display: "block"
230
+ },
231
+ ".leaflet-bar a:hover, .leaflet-bar a:focus": {
232
+ backgroundColor: "#f4f4f4"
233
+ },
234
+ ".leaflet-bar a:first-child": {
235
+ borderTopLeftRadius: "4px",
236
+ borderTopRightRadius: "4px"
237
+ },
238
+ ".leaflet-bar a:last-child": {
239
+ borderBottomLeftRadius: "4px",
240
+ borderBottomRightRadius: "4px",
241
+ borderBottom: "none"
242
+ },
243
+ ".leaflet-bar a.leaflet-disabled": {
244
+ cursor: "default",
245
+ backgroundColor: "#f4f4f4",
246
+ color: "#bbb"
247
+ },
248
+ ".leaflet-touch .leaflet-bar a": {
249
+ width: "30px",
250
+ height: "30px",
251
+ lineHeight: "30px"
252
+ },
253
+ ".leaflet-touch .leaflet-bar a:first-child": {
254
+ borderTopLeftRadius: "2px",
255
+ borderTopRightRadius: "2px"
256
+ },
257
+ ".leaflet-touch .leaflet-bar a:last-child": {
258
+ borderBottomLeftRadius: "2px",
259
+ borderBottomRightRadius: "2px"
260
+ },
261
+ /* zoom control */
262
+ ".leaflet-control-zoom-in, .leaflet-control-zoom-out": {
263
+ font: 'bold 18px "Lucida Console", Monaco, monospace',
264
+ textIndent: "1px"
265
+ },
266
+ ".leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out": {
267
+ fontSize: "22px"
268
+ },
269
+ /* layers control */
270
+ ".leaflet-control-layers": {
271
+ boxShadow: "0 1px 5px rgba(0,0,0,0.4)",
272
+ background: "#fff",
273
+ borderRadius: "5px"
274
+ },
275
+ ".leaflet-retina .leaflet-control-layers-toggle": {
276
+ backgroundImage: "url(images/layers-2x.png)",
277
+ backgroundSize: "26px 26px"
278
+ },
279
+ ".leaflet-touch .leaflet-control-layers-toggle": {
280
+ width: "44px",
281
+ height: "44px"
282
+ },
283
+ ".leaflet-control-layers .leaflet-control-layers-list, .leaflet-control-layers-expanded .leaflet-control-layers-toggle": {
284
+ display: "none"
285
+ },
286
+ ".leaflet-control-layers-expanded .leaflet-control-layers-list": {
287
+ display: "block",
288
+ position: "relative"
289
+ },
290
+ ".leaflet-control-layers-expanded": {
291
+ padding: "6px 10px 6px 6px",
292
+ color: "#333",
293
+ background: "#fff"
294
+ },
295
+ ".leaflet-control-layers-scrollbar": {
296
+ overflowY: "scroll",
297
+ overflowX: "hidden",
298
+ paddingRight: "5px"
299
+ },
300
+ ".leaflet-control-layers-selector": {
301
+ marginTop: "2px",
302
+ position: "relative",
303
+ top: "1px"
304
+ },
305
+ ".leaflet-control-layers label": {
306
+ display: "block",
307
+ fontSize: "1.08333em"
308
+ },
309
+ ".leaflet-control-layers-separator": {
310
+ height: 0,
311
+ borderTop: "1px solid #ddd",
312
+ margin: "5px -10px 5px -6px"
313
+ },
314
+ /* Default icon URLs */
315
+ ".leaflet-default-icon-path": {
316
+ /* used only in path-guessing heuristic, see L.Icon.Default */
317
+ backgroundImage: "url(images/marker-icon.png)"
318
+ },
319
+ /* attribution and scale controls */
320
+ ".leaflet-container .leaflet-control-attribution": {
321
+ background: "rgba(255, 255, 255, 0.8)",
322
+ margin: 0
323
+ },
324
+ ".leaflet-control-attribution, .leaflet-control-scale-line": {
325
+ padding: "0 5px",
326
+ color: "#333",
327
+ lineHeight: 1.4
328
+ },
329
+ ".leaflet-control-attribution a": {
330
+ textDecoration: "none"
331
+ },
332
+ ".leaflet-control-attribution a:hover, .leaflet-control-attribution a:focus": {
333
+ textDecoration: "underline"
334
+ },
335
+ ".leaflet-attribution-flag": {
336
+ display: "inline !important",
337
+ verticalAlign: "baseline !important",
338
+ width: "1em",
339
+ height: "0.6669em"
340
+ },
341
+ ".leaflet-left .leaflet-control-scale": {
342
+ marginLeft: "5px"
343
+ },
344
+ ".leaflet-bottom .leaflet-control-scale": {
345
+ marginBottom: "5px"
346
+ },
347
+ ".leaflet-control-scale-line": {
348
+ border: "2px solid #777",
349
+ borderTop: "none",
350
+ lineHeight: 1.1,
351
+ padding: "2px 5px 1px",
352
+ whiteSpace: "nowrap",
353
+ MozBoxSizing: "border-box",
354
+ boxSizing: "border-box",
355
+ background: "rgba(255, 255, 255, 0.8)",
356
+ textShadow: "1px 1px #fff"
357
+ },
358
+ ".leaflet-control-scale-line:not(:first-child)": {
359
+ borderTop: "2px solid #777",
360
+ borderBottom: "none",
361
+ marginTop: "-2px"
362
+ },
363
+ ".leaflet-control-scale-line:not(:first-child):not(:last-child)": {
364
+ borderBottom: "2px solid #777"
365
+ },
366
+ ".leaflet-touch .leaflet-control-attribution, .leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar": {
367
+ boxShadow: "none"
368
+ },
369
+ ".leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar": {
370
+ border: "2px solid rgba(0,0,0,0.2)",
371
+ backgroundClip: "padding-box"
372
+ },
373
+ /* popup */
374
+ ".leaflet-popup": {
375
+ position: "absolute",
376
+ textAlign: "center",
377
+ marginBottom: "20px"
378
+ },
379
+ ".leaflet-popup-content-wrapper": {
380
+ padding: "1px",
381
+ textAlign: "left",
382
+ borderRadius: "12px"
383
+ },
384
+ ".leaflet-popup-content": {
385
+ margin: "13px 24px 13px 20px",
386
+ lineHeight: 1.3,
387
+ fontSize: "13px",
388
+ minHeight: "1px"
389
+ },
390
+ ".leaflet-popup-content p": {
391
+ margin: "17px 0"
392
+ },
393
+ ".leaflet-popup-tip-container": {
394
+ width: "40px",
395
+ height: "20px",
396
+ position: "absolute",
397
+ left: "50%",
398
+ marginTop: "-1px",
399
+ marginLeft: "-20px",
400
+ overflow: "hidden",
401
+ pointerEvents: "none"
402
+ },
403
+ ".leaflet-popup-tip": {
404
+ width: "17px",
405
+ height: "17px",
406
+ padding: "1px",
407
+ margin: "-10px auto 0",
408
+ pointerEvents: "auto",
409
+ WebkitTransform: "rotate(45deg)",
410
+ MozTransform: "rotate(45deg)",
411
+ msTransform: "rotate(45deg)",
412
+ transform: "rotate(45deg)"
413
+ },
414
+ ".leaflet-popup-content-wrapper, .leaflet-popup-tip": {
415
+ background: "white",
416
+ color: "#333",
417
+ boxShadow: "0 3px 14px rgba(0,0,0,0.4)"
418
+ },
419
+ ".leaflet-container a.leaflet-popup-close-button": {
420
+ position: "absolute",
421
+ top: 0,
422
+ right: 0,
423
+ border: "none",
424
+ textAlign: "center",
425
+ width: "24px",
426
+ height: "24px",
427
+ font: "16px/24px Tahoma, Verdana, sans-serif",
428
+ color: "#757575",
429
+ textDecoration: "none",
430
+ background: "transparent"
431
+ },
432
+ ".leaflet-container a.leaflet-popup-close-button:hover, .leaflet-container a.leaflet-popup-close-button:focus": {
433
+ color: "#585858"
434
+ },
435
+ ".leaflet-popup-scrolled": {
436
+ overflow: "auto"
437
+ },
438
+ ".leaflet-oldie .leaflet-popup-content-wrapper": {
439
+ // @ts-ignore - msZoom no está en el tipo CSSProperties
440
+ msZoom: 1
441
+ },
442
+ ".leaflet-oldie .leaflet-popup-tip": {
443
+ width: "24px",
444
+ margin: "0 auto",
445
+ // @ts-ignore - msFilter no está en el tipo CSSProperties
446
+ msFilter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)",
447
+ filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)"
448
+ },
449
+ ".leaflet-oldie .leaflet-control-zoom, .leaflet-oldie .leaflet-control-layers, .leaflet-oldie .leaflet-popup-content-wrapper, .leaflet-oldie .leaflet-popup-tip": {
450
+ border: "1px solid #999"
451
+ },
452
+ /* div icon */
453
+ ".leaflet-div-icon": {
454
+ background: "#fff",
455
+ border: "1px solid #666"
456
+ },
457
+ /* Tooltip */
458
+ /* Base styles for the element that has a tooltip */
459
+ ".leaflet-tooltip": {
460
+ position: "absolute",
461
+ padding: "6px",
462
+ backgroundColor: "#fff",
463
+ border: "1px solid #fff",
464
+ borderRadius: "3px",
465
+ color: "#222",
466
+ whiteSpace: "nowrap",
467
+ WebkitUserSelect: "none",
468
+ MozUserSelect: "none",
469
+ msUserSelect: "none",
470
+ userSelect: "none",
471
+ pointerEvents: "none",
472
+ boxShadow: "0 1px 3px rgba(0,0,0,0.4)"
473
+ },
474
+ ".leaflet-tooltip.leaflet-interactive": {
475
+ cursor: "pointer",
476
+ pointerEvents: "auto"
477
+ },
478
+ ".leaflet-tooltip-top:before, .leaflet-tooltip-bottom:before, .leaflet-tooltip-left:before, .leaflet-tooltip-right:before": {
479
+ position: "absolute",
480
+ pointerEvents: "none",
481
+ border: "6px solid transparent",
482
+ background: "transparent",
483
+ content: '""'
484
+ },
485
+ /* Directions */
486
+ ".leaflet-tooltip-bottom": {
487
+ marginTop: "6px"
488
+ },
489
+ ".leaflet-tooltip-top": {
490
+ marginTop: "-6px"
491
+ },
492
+ ".leaflet-tooltip-bottom:before, .leaflet-tooltip-top:before": {
493
+ left: "50%",
494
+ marginLeft: "-6px"
495
+ },
496
+ ".leaflet-tooltip-top:before": {
497
+ bottom: 0,
498
+ marginBottom: "-12px",
499
+ borderTopColor: "#fff"
500
+ },
501
+ ".leaflet-tooltip-bottom:before": {
502
+ top: 0,
503
+ marginTop: "-12px",
504
+ marginLeft: "-6px",
505
+ borderBottomColor: "#fff"
506
+ },
507
+ ".leaflet-tooltip-left": {
508
+ marginLeft: "-6px"
509
+ },
510
+ ".leaflet-tooltip-right": {
511
+ marginLeft: "6px"
512
+ },
513
+ ".leaflet-tooltip-left:before, .leaflet-tooltip-right:before": {
514
+ top: "50%",
515
+ marginTop: "-6px"
516
+ },
517
+ ".leaflet-tooltip-left:before": {
518
+ right: 0,
519
+ marginRight: "-12px",
520
+ borderLeftColor: "#fff"
521
+ },
522
+ ".leaflet-tooltip-right:before": {
523
+ left: 0,
524
+ marginLeft: "-12px",
525
+ borderRightColor: "#fff"
526
+ },
527
+ /* Printing */
528
+ ".leaflet-control-print": {
529
+ WebkitPrintColorAdjust: "exact",
530
+ printColorAdjust: "exact"
531
+ }
532
+ };
533
+ export {
534
+ leafletAllStyles as l
535
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m4l/gclick",
3
- "version": "0.2.0-JAEBeta.0",
3
+ "version": "0.2.0-JAEBeta.1",
4
4
  "license": "UNLICENSED",
5
5
  "lint-staged": {
6
6
  "*.{js,ts,tsx}": "eslint --fix --max-warnings 0 --no-warn-ignored"