@geotrekce/geotrek-rando-widget 0.0.13 → 0.0.14
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/dist/cjs/{css-shim-6f592941.js → css-shim-06c204c1.js} +1 -1
- package/dist/cjs/{dom-d5e52c7e.js → dom-874a1e39.js} +1 -1
- package/dist/cjs/geotrek-rando-widget.cjs.js +4 -4
- package/dist/cjs/grw-app.cjs.entry.js +4 -3
- package/dist/cjs/grw-filter_6.cjs.entry.js +14447 -14156
- package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js +2 -2
- package/dist/cjs/grw-trek-card.cjs.entry.js +15 -7
- package/dist/cjs/{index-66d58516.js → index-c3fb4999.js} +219 -66
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/{shadow-css-cf936b02.js → shadow-css-a33dc836.js} +1 -1
- package/dist/cjs/{store-d301af22.js → store-5183d8f8.js} +4 -2
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/grw-app/grw-app.js +432 -450
- package/dist/collection/components/grw-filter/grw-filter.js +65 -61
- package/dist/collection/components/grw-information-desk-detail/grw-information-desk-detail.js +35 -44
- package/dist/collection/components/grw-map/grw-map.css +5 -4
- package/dist/collection/components/grw-map/grw-map.js +251 -217
- package/dist/collection/components/grw-poi-detail/grw-poi-detail.js +33 -32
- package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.js +42 -47
- package/dist/collection/components/grw-trek-card/grw-trek-card.js +142 -129
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +135 -208
- package/dist/collection/components/grw-treks-list/grw-treks-list.js +95 -65
- package/dist/collection/store/grw-trek-provider.js +61 -55
- package/dist/collection/store/grw-treks-provider.js +181 -177
- package/dist/collection/store/store.js +3 -2
- package/dist/components/grw-app.js +3 -2
- package/dist/components/grw-map2.js +14405 -14129
- package/dist/components/grw-trek-card2.js +17 -7
- package/dist/components/grw-trek-detail2.js +10 -3
- package/dist/components/grw-trek-provider2.js +6 -2
- package/dist/components/grw-treks-list2.js +7 -2
- package/dist/components/grw-treks-provider2.js +5 -3
- package/dist/components/store.js +3 -2
- package/dist/esm/{css-shim-2d0a698c.js → css-shim-bfa379cd.js} +1 -1
- package/dist/esm/{dom-9794f747.js → dom-104fb833.js} +1 -1
- package/dist/esm/geotrek-rando-widget.js +4 -4
- package/dist/esm/grw-app.entry.js +4 -3
- package/dist/esm/grw-filter_6.entry.js +14427 -14136
- package/dist/esm/grw-information-desk-detail_3.entry.js +2 -2
- package/dist/esm/grw-trek-card.entry.js +15 -7
- package/dist/esm/{index-899307bb.js → index-e834943f.js} +219 -66
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{shadow-css-4cd4480f.js → shadow-css-4261c637.js} +1 -1
- package/dist/esm/{store-70461a28.js → store-c6ccb3db.js} +4 -3
- package/dist/esm-es5/{css-shim-2d0a698c.js → css-shim-bfa379cd.js} +0 -0
- package/dist/esm-es5/{dom-9794f747.js → dom-104fb833.js} +0 -0
- package/dist/esm-es5/geotrek-rando-widget.js +1 -1
- package/dist/esm-es5/grw-app.entry.js +1 -1
- package/dist/esm-es5/grw-filter_6.entry.js +4 -5
- package/dist/esm-es5/grw-information-desk-detail_3.entry.js +1 -1
- package/dist/esm-es5/grw-trek-card.entry.js +1 -1
- package/dist/esm-es5/{index-899307bb.js → index-e834943f.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{shadow-css-4cd4480f.js → shadow-css-4261c637.js} +0 -0
- package/dist/esm-es5/{store-70461a28.js → store-c6ccb3db.js} +1 -1
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
- package/dist/geotrek-rando-widget/geotrek-rando-widget.js +1 -1
- package/dist/geotrek-rando-widget/p-392538a1.system.entry.js +1 -0
- package/dist/geotrek-rando-widget/{p-d1582cff.js → p-4c61dcad.js} +0 -0
- package/dist/geotrek-rando-widget/p-4e0fcbe6.js +1 -0
- package/dist/geotrek-rando-widget/p-6469fc8a.system.js +1 -0
- package/dist/geotrek-rando-widget/{p-c8c96517.system.js → p-6523a23b.system.js} +0 -0
- package/dist/geotrek-rando-widget/{p-32d97a4f.system.js → p-70ecdd1b.system.js} +0 -0
- package/dist/geotrek-rando-widget/{p-0c5b047c.js → p-88046639.js} +0 -0
- package/dist/geotrek-rando-widget/p-88e55e13.entry.js +1 -0
- package/dist/geotrek-rando-widget/p-93d51eaa.entry.js +1 -0
- package/dist/geotrek-rando-widget/p-95932d69.system.entry.js +5 -0
- package/dist/geotrek-rando-widget/{p-4690907e.js → p-9c0d229f.js} +1 -1
- package/dist/geotrek-rando-widget/{p-b1530d9c.system.js → p-a8de6293.system.js} +0 -0
- package/dist/geotrek-rando-widget/p-d56c1888.system.entry.js +1 -0
- package/dist/geotrek-rando-widget/{p-533fc2bb.entry.js → p-dce99cef.entry.js} +1 -1
- package/dist/geotrek-rando-widget/{p-8f9914f4.system.js → p-e2d589f8.system.js} +1 -1
- package/dist/geotrek-rando-widget/{p-82ca029f.system.js → p-e3c13365.system.js} +1 -1
- package/dist/geotrek-rando-widget/{p-2bd0278f.system.entry.js → p-e9f13f25.system.entry.js} +1 -1
- package/dist/geotrek-rando-widget/{p-4eaf20b7.js → p-ef5d4167.js} +0 -0
- package/dist/geotrek-rando-widget/p-fce69064.entry.js +1 -0
- package/dist/types/components/grw-map/grw-map.d.ts +3 -1
- package/dist/types/components/grw-trek-card/grw-trek-card.d.ts +4 -1
- package/dist/types/components/grw-trek-detail/grw-trek-detail.d.ts +3 -1
- package/dist/types/components/grw-treks-list/grw-treks-list.d.ts +1 -0
- package/dist/types/components.d.ts +8 -0
- package/dist/types/store/store.d.ts +5 -3
- package/dist/types/types/types.d.ts +6 -0
- package/loader/package.json +1 -0
- package/package.json +12 -12
- package/readme.md +4 -6
- package/dist/geotrek-rando-widget/p-067c02c4.system.js +0 -1
- package/dist/geotrek-rando-widget/p-18038011.js +0 -1
- package/dist/geotrek-rando-widget/p-2712caa8.system.entry.js +0 -6
- package/dist/geotrek-rando-widget/p-3ed52659.entry.js +0 -1
- package/dist/geotrek-rando-widget/p-48d5dde7.entry.js +0 -1
- package/dist/geotrek-rando-widget/p-e1431f36.system.entry.js +0 -1
- package/dist/geotrek-rando-widget/p-e38f4ff4.system.entry.js +0 -1
- package/dist/geotrek-rando-widget/p-f5d98aae.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Host, h } from '@stencil/core';
|
|
2
2
|
import L from 'leaflet';
|
|
3
|
-
import state, { onChange } from 'store/store';
|
|
3
|
+
import state, { onChange, reset } from 'store/store';
|
|
4
4
|
import departureArrivalImage from '../../assets/departure-arrival.svg';
|
|
5
5
|
export class GrwMap {
|
|
6
6
|
constructor() {
|
|
@@ -14,9 +14,10 @@ export class GrwMap {
|
|
|
14
14
|
this.colorArrivalIcon = '#85003b';
|
|
15
15
|
this.colorSensitiveArea = ' #4974a5';
|
|
16
16
|
this.colorPoiIcon = '#974c6e';
|
|
17
|
+
this.resetStoreOnDisconnected = true;
|
|
17
18
|
this.handleTreksWithinBoundsBind = this.handleTreksWithinBounds.bind(this);
|
|
18
19
|
}
|
|
19
|
-
|
|
20
|
+
componentDidLoad() {
|
|
20
21
|
this.map = L.map(this.element, {
|
|
21
22
|
center: this.center.split(',').map(Number),
|
|
22
23
|
zoom: this.zoom,
|
|
@@ -137,7 +138,8 @@ export class GrwMap {
|
|
|
137
138
|
}
|
|
138
139
|
}
|
|
139
140
|
handleTreksWithinBounds() {
|
|
140
|
-
if (
|
|
141
|
+
if ((state.currentTreks && !state.currentMapTreksBounds) ||
|
|
142
|
+
(state.currentTreks && state.currentMapTreksBounds && state.currentMapTreksBounds.toBBoxString() !== this.map.getBounds().toBBoxString())) {
|
|
141
143
|
state.treksWithinBounds = state.currentTreks.filter(trek => this.map.getBounds().contains(L.latLng(trek.departure_geom[1], trek.departure_geom[0])));
|
|
142
144
|
}
|
|
143
145
|
}
|
|
@@ -385,6 +387,11 @@ export class GrwMap {
|
|
|
385
387
|
this.currentPointsReferenceLayer = null;
|
|
386
388
|
}
|
|
387
389
|
}
|
|
390
|
+
disconnectedCallback() {
|
|
391
|
+
if (this.resetStoreOnDisconnected) {
|
|
392
|
+
reset();
|
|
393
|
+
}
|
|
394
|
+
}
|
|
388
395
|
render() {
|
|
389
396
|
return (h(Host, { style: {
|
|
390
397
|
'--color-primary': this.colorPrimary,
|
|
@@ -392,232 +399,259 @@ export class GrwMap {
|
|
|
392
399
|
'--color-departure-icon': this.colorDepartureIcon,
|
|
393
400
|
'--color-arrival-icon': this.colorArrivalIcon,
|
|
394
401
|
'--color-poi-icon': this.colorPoiIcon,
|
|
395
|
-
} }, !this.mapIsReady && (h("div", { class: "map-loader-container" },
|
|
396
|
-
h("span", { class: "loader" })))));
|
|
402
|
+
} }, !this.mapIsReady && (h("div", { class: "map-loader-container" }, h("span", { class: "loader" })))));
|
|
397
403
|
}
|
|
398
404
|
static get is() { return "grw-map"; }
|
|
399
|
-
static get originalStyleUrls() {
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
"
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
"original": "string",
|
|
428
|
-
"resolved": "string",
|
|
429
|
-
"references": {}
|
|
430
|
-
},
|
|
431
|
-
"required": false,
|
|
432
|
-
"optional": false,
|
|
433
|
-
"docs": {
|
|
434
|
-
"tags": [],
|
|
435
|
-
"text": ""
|
|
436
|
-
},
|
|
437
|
-
"attribute": "attribution",
|
|
438
|
-
"reflect": false
|
|
439
|
-
},
|
|
440
|
-
"center": {
|
|
441
|
-
"type": "string",
|
|
442
|
-
"mutable": false,
|
|
443
|
-
"complexType": {
|
|
444
|
-
"original": "string",
|
|
445
|
-
"resolved": "string",
|
|
446
|
-
"references": {}
|
|
447
|
-
},
|
|
448
|
-
"required": false,
|
|
449
|
-
"optional": false,
|
|
450
|
-
"docs": {
|
|
451
|
-
"tags": [],
|
|
452
|
-
"text": ""
|
|
453
|
-
},
|
|
454
|
-
"attribute": "center",
|
|
455
|
-
"reflect": false,
|
|
456
|
-
"defaultValue": "'1, 1'"
|
|
457
|
-
},
|
|
458
|
-
"zoom": {
|
|
459
|
-
"type": "number",
|
|
460
|
-
"mutable": false,
|
|
461
|
-
"complexType": {
|
|
462
|
-
"original": "number",
|
|
463
|
-
"resolved": "number",
|
|
464
|
-
"references": {}
|
|
465
|
-
},
|
|
466
|
-
"required": false,
|
|
467
|
-
"optional": false,
|
|
468
|
-
"docs": {
|
|
469
|
-
"tags": [],
|
|
470
|
-
"text": ""
|
|
471
|
-
},
|
|
472
|
-
"attribute": "zoom",
|
|
473
|
-
"reflect": false,
|
|
474
|
-
"defaultValue": "10"
|
|
475
|
-
},
|
|
476
|
-
"colorPrimary": {
|
|
477
|
-
"type": "string",
|
|
478
|
-
"mutable": false,
|
|
479
|
-
"complexType": {
|
|
480
|
-
"original": "string",
|
|
481
|
-
"resolved": "string",
|
|
482
|
-
"references": {}
|
|
483
|
-
},
|
|
484
|
-
"required": false,
|
|
485
|
-
"optional": false,
|
|
486
|
-
"docs": {
|
|
487
|
-
"tags": [],
|
|
488
|
-
"text": ""
|
|
489
|
-
},
|
|
490
|
-
"attribute": "color-primary",
|
|
491
|
-
"reflect": false,
|
|
492
|
-
"defaultValue": "'#6b0030'"
|
|
493
|
-
},
|
|
494
|
-
"colorPrimaryTint": {
|
|
495
|
-
"type": "string",
|
|
496
|
-
"mutable": false,
|
|
497
|
-
"complexType": {
|
|
498
|
-
"original": "string",
|
|
499
|
-
"resolved": "string",
|
|
500
|
-
"references": {}
|
|
501
|
-
},
|
|
502
|
-
"required": false,
|
|
503
|
-
"optional": false,
|
|
504
|
-
"docs": {
|
|
505
|
-
"tags": [],
|
|
506
|
-
"text": ""
|
|
507
|
-
},
|
|
508
|
-
"attribute": "color-primary-tint",
|
|
509
|
-
"reflect": false,
|
|
510
|
-
"defaultValue": "'#974c6e'"
|
|
511
|
-
},
|
|
512
|
-
"colorTrekLine": {
|
|
513
|
-
"type": "string",
|
|
514
|
-
"mutable": false,
|
|
515
|
-
"complexType": {
|
|
516
|
-
"original": "string",
|
|
517
|
-
"resolved": "string",
|
|
518
|
-
"references": {}
|
|
405
|
+
static get originalStyleUrls() {
|
|
406
|
+
return {
|
|
407
|
+
"$": ["grw-map.scss"]
|
|
408
|
+
};
|
|
409
|
+
}
|
|
410
|
+
static get styleUrls() {
|
|
411
|
+
return {
|
|
412
|
+
"$": ["grw-map.css"]
|
|
413
|
+
};
|
|
414
|
+
}
|
|
415
|
+
static get properties() {
|
|
416
|
+
return {
|
|
417
|
+
"urlLayer": {
|
|
418
|
+
"type": "string",
|
|
419
|
+
"mutable": false,
|
|
420
|
+
"complexType": {
|
|
421
|
+
"original": "string",
|
|
422
|
+
"resolved": "string",
|
|
423
|
+
"references": {}
|
|
424
|
+
},
|
|
425
|
+
"required": false,
|
|
426
|
+
"optional": false,
|
|
427
|
+
"docs": {
|
|
428
|
+
"tags": [],
|
|
429
|
+
"text": ""
|
|
430
|
+
},
|
|
431
|
+
"attribute": "url-layer",
|
|
432
|
+
"reflect": false
|
|
519
433
|
},
|
|
520
|
-
"
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
"
|
|
524
|
-
|
|
434
|
+
"attribution": {
|
|
435
|
+
"type": "string",
|
|
436
|
+
"mutable": false,
|
|
437
|
+
"complexType": {
|
|
438
|
+
"original": "string",
|
|
439
|
+
"resolved": "string",
|
|
440
|
+
"references": {}
|
|
441
|
+
},
|
|
442
|
+
"required": false,
|
|
443
|
+
"optional": false,
|
|
444
|
+
"docs": {
|
|
445
|
+
"tags": [],
|
|
446
|
+
"text": ""
|
|
447
|
+
},
|
|
448
|
+
"attribute": "attribution",
|
|
449
|
+
"reflect": false
|
|
525
450
|
},
|
|
526
|
-
"
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
"
|
|
535
|
-
"
|
|
536
|
-
"
|
|
451
|
+
"center": {
|
|
452
|
+
"type": "string",
|
|
453
|
+
"mutable": false,
|
|
454
|
+
"complexType": {
|
|
455
|
+
"original": "string",
|
|
456
|
+
"resolved": "string",
|
|
457
|
+
"references": {}
|
|
458
|
+
},
|
|
459
|
+
"required": false,
|
|
460
|
+
"optional": false,
|
|
461
|
+
"docs": {
|
|
462
|
+
"tags": [],
|
|
463
|
+
"text": ""
|
|
464
|
+
},
|
|
465
|
+
"attribute": "center",
|
|
466
|
+
"reflect": false,
|
|
467
|
+
"defaultValue": "'1, 1'"
|
|
537
468
|
},
|
|
538
|
-
"
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
"
|
|
542
|
-
|
|
469
|
+
"zoom": {
|
|
470
|
+
"type": "number",
|
|
471
|
+
"mutable": false,
|
|
472
|
+
"complexType": {
|
|
473
|
+
"original": "number",
|
|
474
|
+
"resolved": "number",
|
|
475
|
+
"references": {}
|
|
476
|
+
},
|
|
477
|
+
"required": false,
|
|
478
|
+
"optional": false,
|
|
479
|
+
"docs": {
|
|
480
|
+
"tags": [],
|
|
481
|
+
"text": ""
|
|
482
|
+
},
|
|
483
|
+
"attribute": "zoom",
|
|
484
|
+
"reflect": false,
|
|
485
|
+
"defaultValue": "10"
|
|
543
486
|
},
|
|
544
|
-
"
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
"
|
|
553
|
-
"
|
|
554
|
-
"
|
|
487
|
+
"colorPrimary": {
|
|
488
|
+
"type": "string",
|
|
489
|
+
"mutable": false,
|
|
490
|
+
"complexType": {
|
|
491
|
+
"original": "string",
|
|
492
|
+
"resolved": "string",
|
|
493
|
+
"references": {}
|
|
494
|
+
},
|
|
495
|
+
"required": false,
|
|
496
|
+
"optional": false,
|
|
497
|
+
"docs": {
|
|
498
|
+
"tags": [],
|
|
499
|
+
"text": ""
|
|
500
|
+
},
|
|
501
|
+
"attribute": "color-primary",
|
|
502
|
+
"reflect": false,
|
|
503
|
+
"defaultValue": "'#6b0030'"
|
|
555
504
|
},
|
|
556
|
-
"
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
"
|
|
560
|
-
|
|
505
|
+
"colorPrimaryTint": {
|
|
506
|
+
"type": "string",
|
|
507
|
+
"mutable": false,
|
|
508
|
+
"complexType": {
|
|
509
|
+
"original": "string",
|
|
510
|
+
"resolved": "string",
|
|
511
|
+
"references": {}
|
|
512
|
+
},
|
|
513
|
+
"required": false,
|
|
514
|
+
"optional": false,
|
|
515
|
+
"docs": {
|
|
516
|
+
"tags": [],
|
|
517
|
+
"text": ""
|
|
518
|
+
},
|
|
519
|
+
"attribute": "color-primary-tint",
|
|
520
|
+
"reflect": false,
|
|
521
|
+
"defaultValue": "'#974c6e'"
|
|
561
522
|
},
|
|
562
|
-
"
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
"
|
|
571
|
-
"
|
|
572
|
-
"
|
|
523
|
+
"colorTrekLine": {
|
|
524
|
+
"type": "string",
|
|
525
|
+
"mutable": false,
|
|
526
|
+
"complexType": {
|
|
527
|
+
"original": "string",
|
|
528
|
+
"resolved": "string",
|
|
529
|
+
"references": {}
|
|
530
|
+
},
|
|
531
|
+
"required": false,
|
|
532
|
+
"optional": false,
|
|
533
|
+
"docs": {
|
|
534
|
+
"tags": [],
|
|
535
|
+
"text": ""
|
|
536
|
+
},
|
|
537
|
+
"attribute": "color-trek-line",
|
|
538
|
+
"reflect": false,
|
|
539
|
+
"defaultValue": "'#6b0030'"
|
|
573
540
|
},
|
|
574
|
-
"
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
"
|
|
578
|
-
|
|
541
|
+
"colorDepartureIcon": {
|
|
542
|
+
"type": "string",
|
|
543
|
+
"mutable": false,
|
|
544
|
+
"complexType": {
|
|
545
|
+
"original": "string",
|
|
546
|
+
"resolved": "string",
|
|
547
|
+
"references": {}
|
|
548
|
+
},
|
|
549
|
+
"required": false,
|
|
550
|
+
"optional": false,
|
|
551
|
+
"docs": {
|
|
552
|
+
"tags": [],
|
|
553
|
+
"text": ""
|
|
554
|
+
},
|
|
555
|
+
"attribute": "color-departure-icon",
|
|
556
|
+
"reflect": false,
|
|
557
|
+
"defaultValue": "'#006b3b'"
|
|
579
558
|
},
|
|
580
|
-
"
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
"
|
|
589
|
-
"
|
|
590
|
-
"
|
|
559
|
+
"colorArrivalIcon": {
|
|
560
|
+
"type": "string",
|
|
561
|
+
"mutable": false,
|
|
562
|
+
"complexType": {
|
|
563
|
+
"original": "string",
|
|
564
|
+
"resolved": "string",
|
|
565
|
+
"references": {}
|
|
566
|
+
},
|
|
567
|
+
"required": false,
|
|
568
|
+
"optional": false,
|
|
569
|
+
"docs": {
|
|
570
|
+
"tags": [],
|
|
571
|
+
"text": ""
|
|
572
|
+
},
|
|
573
|
+
"attribute": "color-arrival-icon",
|
|
574
|
+
"reflect": false,
|
|
575
|
+
"defaultValue": "'#85003b'"
|
|
591
576
|
},
|
|
592
|
-
"
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
"
|
|
596
|
-
|
|
577
|
+
"colorSensitiveArea": {
|
|
578
|
+
"type": "string",
|
|
579
|
+
"mutable": false,
|
|
580
|
+
"complexType": {
|
|
581
|
+
"original": "string",
|
|
582
|
+
"resolved": "string",
|
|
583
|
+
"references": {}
|
|
584
|
+
},
|
|
585
|
+
"required": false,
|
|
586
|
+
"optional": false,
|
|
587
|
+
"docs": {
|
|
588
|
+
"tags": [],
|
|
589
|
+
"text": ""
|
|
590
|
+
},
|
|
591
|
+
"attribute": "color-sensitive-area",
|
|
592
|
+
"reflect": false,
|
|
593
|
+
"defaultValue": "'\t#4974a5'"
|
|
597
594
|
},
|
|
598
|
-
"
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
"
|
|
614
|
-
"
|
|
595
|
+
"colorPoiIcon": {
|
|
596
|
+
"type": "string",
|
|
597
|
+
"mutable": false,
|
|
598
|
+
"complexType": {
|
|
599
|
+
"original": "string",
|
|
600
|
+
"resolved": "string",
|
|
601
|
+
"references": {}
|
|
602
|
+
},
|
|
603
|
+
"required": false,
|
|
604
|
+
"optional": false,
|
|
605
|
+
"docs": {
|
|
606
|
+
"tags": [],
|
|
607
|
+
"text": ""
|
|
608
|
+
},
|
|
609
|
+
"attribute": "color-poi-icon",
|
|
610
|
+
"reflect": false,
|
|
611
|
+
"defaultValue": "'#974c6e'"
|
|
615
612
|
},
|
|
616
|
-
"
|
|
617
|
-
"
|
|
618
|
-
"
|
|
619
|
-
"
|
|
613
|
+
"resetStoreOnDisconnected": {
|
|
614
|
+
"type": "boolean",
|
|
615
|
+
"mutable": false,
|
|
616
|
+
"complexType": {
|
|
617
|
+
"original": "boolean",
|
|
618
|
+
"resolved": "boolean",
|
|
619
|
+
"references": {}
|
|
620
|
+
},
|
|
621
|
+
"required": false,
|
|
622
|
+
"optional": false,
|
|
623
|
+
"docs": {
|
|
624
|
+
"tags": [],
|
|
625
|
+
"text": ""
|
|
626
|
+
},
|
|
627
|
+
"attribute": "reset-store-on-disconnected",
|
|
628
|
+
"reflect": false,
|
|
629
|
+
"defaultValue": "true"
|
|
620
630
|
}
|
|
621
|
-
}
|
|
631
|
+
};
|
|
632
|
+
}
|
|
633
|
+
static get states() {
|
|
634
|
+
return {
|
|
635
|
+
"mapIsReady": {}
|
|
636
|
+
};
|
|
637
|
+
}
|
|
638
|
+
static get events() {
|
|
639
|
+
return [{
|
|
640
|
+
"method": "trekCardPress",
|
|
641
|
+
"name": "trekCardPress",
|
|
642
|
+
"bubbles": true,
|
|
643
|
+
"cancelable": true,
|
|
644
|
+
"composed": true,
|
|
645
|
+
"docs": {
|
|
646
|
+
"tags": [],
|
|
647
|
+
"text": ""
|
|
648
|
+
},
|
|
649
|
+
"complexType": {
|
|
650
|
+
"original": "number",
|
|
651
|
+
"resolved": "number",
|
|
652
|
+
"references": {}
|
|
653
|
+
}
|
|
654
|
+
}];
|
|
655
|
+
}
|
|
622
656
|
static get elementRef() { return "element"; }
|
|
623
657
|
}
|
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Host, h } from '@stencil/core';
|
|
2
2
|
export class GrwPoiDetail {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, null,
|
|
5
|
-
this.poi.attachments && this.poi.attachments[0] && this.poi.attachments[0].thumbnail && (h("div", { class: "poi-img" },
|
|
6
|
-
h("img", { src: this.poi.attachments[0].thumbnail, loading: "lazy" }))),
|
|
7
|
-
h("div", { class: "poi-sub-container" },
|
|
8
|
-
h("div", { class: "poi-name" }, this.poi.name),
|
|
9
|
-
h("div", { class: "poi-description", innerHTML: this.poi.description }))));
|
|
4
|
+
return (h(Host, null, this.poi.attachments && this.poi.attachments[0] && this.poi.attachments[0].thumbnail && (h("div", { class: "poi-img" }, h("img", { src: this.poi.attachments[0].thumbnail, loading: "lazy" }))), h("div", { class: "poi-sub-container" }, h("div", { class: "poi-name" }, this.poi.name), h("div", { class: "poi-description", innerHTML: this.poi.description }))));
|
|
10
5
|
}
|
|
11
6
|
static get is() { return "grw-poi-detail"; }
|
|
12
7
|
static get encapsulation() { return "shadow"; }
|
|
13
|
-
static get originalStyleUrls() {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
8
|
+
static get originalStyleUrls() {
|
|
9
|
+
return {
|
|
10
|
+
"$": ["grw-poi-detail.scss"]
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
static get styleUrls() {
|
|
14
|
+
return {
|
|
15
|
+
"$": ["grw-poi-detail.css"]
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
static get properties() {
|
|
19
|
+
return {
|
|
20
|
+
"poi": {
|
|
21
|
+
"type": "unknown",
|
|
22
|
+
"mutable": false,
|
|
23
|
+
"complexType": {
|
|
24
|
+
"original": "Poi",
|
|
25
|
+
"resolved": "{ id: number; name: string; description: string; attachments: Attachments; type: number; geometry: Geometry; }",
|
|
26
|
+
"references": {
|
|
27
|
+
"Poi": {
|
|
28
|
+
"location": "import",
|
|
29
|
+
"path": "types/types"
|
|
30
|
+
}
|
|
30
31
|
}
|
|
32
|
+
},
|
|
33
|
+
"required": false,
|
|
34
|
+
"optional": false,
|
|
35
|
+
"docs": {
|
|
36
|
+
"tags": [],
|
|
37
|
+
"text": ""
|
|
31
38
|
}
|
|
32
|
-
},
|
|
33
|
-
"required": false,
|
|
34
|
-
"optional": false,
|
|
35
|
-
"docs": {
|
|
36
|
-
"tags": [],
|
|
37
|
-
"text": ""
|
|
38
39
|
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
41
42
|
}
|