@trismegisto/maps 3.3.10 → 3.3.11
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/LICENSE +56 -56
- package/NOTICE +62 -62
- package/README.md +144 -144
- package/fesm2022/trismegisto-maps-basemaps-br-mesorregioes.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-br-microrregioes.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-br-municipios-ac.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-br-municipios-al.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-br-municipios-am.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-br-municipios-ap.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-br-municipios-ba.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-br-municipios-ce.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-br-municipios-df.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-br-municipios-es.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-br-municipios-go.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-br-municipios-ma.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-br-municipios-mg.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-br-municipios-ms.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-br-municipios-mt.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-br-municipios-pa.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-br-municipios-pb.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-br-municipios-pe.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-br-municipios-pi.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-br-municipios-pr.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-br-municipios-rj.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-br-municipios-rn.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-br-municipios-ro.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-br-municipios-rr.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-br-municipios-rs.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-br-municipios-sc.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-br-municipios-se.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-br-municipios-sp.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-br-municipios-to.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-br.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-world-50m.mjs.map +1 -1
- package/fesm2022/trismegisto-maps-basemaps-world.mjs.map +1 -1
- package/fesm2022/trismegisto-maps.mjs +806 -806
- package/fesm2022/trismegisto-maps.mjs.map +1 -1
- package/package.json +5 -5
|
@@ -2830,155 +2830,155 @@ class MapComponent {
|
|
|
2830
2830
|
this.status.set(formatMessage(this.text.map.zoomStatus, { zoom: engine.zoom, max: engine.maxZoom }));
|
|
2831
2831
|
}
|
|
2832
2832
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2833
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: MapComponent, isStandalone: true, selector: "hm-map", inputs: { center: { classPropertyName: "center", publicName: "center", isSignal: true, isRequired: false, transformFunction: null }, zoom: { classPropertyName: "zoom", publicName: "zoom", isSignal: true, isRequired: false, transformFunction: null }, minZoom: { classPropertyName: "minZoom", publicName: "minZoom", isSignal: true, isRequired: false, transformFunction: null }, maxZoom: { classPropertyName: "maxZoom", publicName: "maxZoom", isSignal: true, isRequired: false, transformFunction: null }, maxBounds: { classPropertyName: "maxBounds", publicName: "maxBounds", isSignal: true, isRequired: false, transformFunction: null }, bounds: { classPropertyName: "bounds", publicName: "bounds", isSignal: true, isRequired: false, transformFunction: null }, boundsPadding: { classPropertyName: "boundsPadding", publicName: "boundsPadding", isSignal: true, isRequired: false, transformFunction: null }, tileUrl: { classPropertyName: "tileUrl", publicName: "tileUrl", isSignal: true, isRequired: false, transformFunction: null }, subdomains: { classPropertyName: "subdomains", publicName: "subdomains", isSignal: true, isRequired: false, transformFunction: null }, maxNativeZoom: { classPropertyName: "maxNativeZoom", publicName: "maxNativeZoom", isSignal: true, isRequired: false, transformFunction: null }, attribution: { classPropertyName: "attribution", publicName: "attribution", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, zoomControl: { classPropertyName: "zoomControl", publicName: "zoomControl", isSignal: true, isRequired: false, transformFunction: null }, scale: { classPropertyName: "scale", publicName: "scale", isSignal: true, isRequired: false, transformFunction: null }, scaleUnits: { classPropertyName: "scaleUnits", publicName: "scaleUnits", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null }, scrollWheelZoom: { classPropertyName: "scrollWheelZoom", publicName: "scrollWheelZoom", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { viewChange: "viewChange" }, host: { properties: { "class.hm-map--static": "!interactive()" }, classAttribute: "hm-map" }, providers: [{ provide: HM_MAP, useExisting: MapComponent }], viewQueries: [{ propertyName: "viewportRef", first: true, predicate: ["viewport"], descendants: true, isSignal: true }, { propertyName: "paneRef", first: true, predicate: ["pane"], descendants: true, isSignal: true }, { propertyName: "tilesRef", first: true, predicate: ["tiles"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
2834
|
-
<div
|
|
2835
|
-
#viewport
|
|
2836
|
-
class="hm-map__viewport"
|
|
2837
|
-
tabindex="0"
|
|
2838
|
-
role="region"
|
|
2839
|
-
[attr.aria-roledescription]="text.map.roleDescription"
|
|
2840
|
-
[attr.aria-label]="label() || text.map.label"
|
|
2841
|
-
[attr.aria-describedby]="helpId"
|
|
2842
|
-
>
|
|
2843
|
-
<div #pane class="hm-map__pane">
|
|
2844
|
-
<div #tiles class="hm-map__tiles"></div>
|
|
2845
|
-
<div class="hm-map__regions"><ng-content select="hm-map-basemap, hm-map-choropleth" /></div>
|
|
2846
|
-
<svg
|
|
2847
|
-
class="hm-map__overlay"
|
|
2848
|
-
aria-hidden="true"
|
|
2849
|
-
focusable="false"
|
|
2850
|
-
[attr.width]="size().x"
|
|
2851
|
-
[attr.height]="size().y"
|
|
2852
|
-
>
|
|
2853
|
-
@for (p of paths(); track p.key) {
|
|
2854
|
-
<path
|
|
2855
|
-
[attr.d]="p.d"
|
|
2856
|
-
[attr.class]="'hm-map__path hm-map__path--' + p.kind + (p.onClick ? ' hm-map__path--interactive' : '') + (p.className ? ' ' + p.className : '')"
|
|
2857
|
-
[style.stroke]="p.stroke"
|
|
2858
|
-
[style.fill]="p.fill"
|
|
2859
|
-
[style.stroke-width.px]="p.weight"
|
|
2860
|
-
[style.stroke-opacity]="p.opacity"
|
|
2861
|
-
[style.fill-opacity]="p.fillOpacity"
|
|
2862
|
-
[style.stroke-dasharray]="p.dashArray"
|
|
2863
|
-
(click)="p.onClick?.()"
|
|
2864
|
-
/>
|
|
2865
|
-
}
|
|
2866
|
-
</svg>
|
|
2867
|
-
<div class="hm-map__markers"><ng-content select="hm-map-marker, hm-map-cluster, hm-map-route" /></div>
|
|
2868
|
-
<div class="hm-map__popups"><ng-content select="hm-map-popup" /></div>
|
|
2869
|
-
@if (tooltip(); as tip) {
|
|
2870
|
-
<div class="hm-map__tooltip" aria-hidden="true" [style.transform]="'translate3d(' + tip.at.x + 'px, ' + tip.at.y + 'px, 0)'">
|
|
2871
|
-
<div class="hm-map__tooltip-box">
|
|
2872
|
-
<span class="hm-map__tooltip-title">{{ tip.title }}</span>
|
|
2873
|
-
@if (tip.detail) {
|
|
2874
|
-
<span class="hm-map__tooltip-detail">{{ tip.detail }}</span>
|
|
2875
|
-
}
|
|
2876
|
-
</div>
|
|
2877
|
-
</div>
|
|
2878
|
-
}
|
|
2879
|
-
</div>
|
|
2880
|
-
|
|
2881
|
-
@if (zoomControl()) {
|
|
2882
|
-
<div class="hm-map__controls" role="group" data-hm-map-nodrag [attr.aria-label]="text.controls.label">
|
|
2883
|
-
<button
|
|
2884
|
-
type="button"
|
|
2885
|
-
class="hm-map__control"
|
|
2886
|
-
[attr.aria-label]="text.controls.zoomIn"
|
|
2887
|
-
[disabled]="currentZoom() >= limits().maxZoom"
|
|
2888
|
-
(click)="zoomIn()"
|
|
2889
|
-
>
|
|
2890
|
-
<hm-icon shape="plus" />
|
|
2891
|
-
</button>
|
|
2892
|
-
<button
|
|
2893
|
-
type="button"
|
|
2894
|
-
class="hm-map__control"
|
|
2895
|
-
[attr.aria-label]="text.controls.zoomOut"
|
|
2896
|
-
[disabled]="currentZoom() <= limits().minZoom"
|
|
2897
|
-
(click)="zoomOut()"
|
|
2898
|
-
>
|
|
2899
|
-
<hm-icon shape="minus" />
|
|
2900
|
-
</button>
|
|
2901
|
-
</div>
|
|
2902
|
-
}
|
|
2903
|
-
|
|
2904
|
-
@if (panels().length) {
|
|
2905
|
-
<div class="hm-map__panels" data-hm-map-nodrag>
|
|
2906
|
-
@for (panel of panels(); track panel.id) {
|
|
2907
|
-
<div class="hm-map__panel">
|
|
2908
|
-
@if (panel.legend) {
|
|
2909
|
-
<hm-legend class="hm-map__legend" marker="square" [items]="panel.legend" [label]="panel.legendLabel" />
|
|
2910
|
-
}
|
|
2911
|
-
@if (panel.table) {
|
|
2912
|
-
<button
|
|
2913
|
-
type="button"
|
|
2914
|
-
class="hm-map__table-toggle"
|
|
2915
|
-
[id]="panel.id + '-toggle'"
|
|
2916
|
-
[attr.aria-expanded]="openTable() === panel.id"
|
|
2917
|
-
[attr.aria-controls]="panel.id + '-table'"
|
|
2918
|
-
(click)="toggleTable(panel.id)"
|
|
2919
|
-
>
|
|
2920
|
-
{{ text.data.showTable }}
|
|
2921
|
-
</button>
|
|
2922
|
-
}
|
|
2923
|
-
</div>
|
|
2924
|
-
}
|
|
2925
|
-
</div>
|
|
2926
|
-
}
|
|
2927
|
-
|
|
2928
|
-
<div class="hm-map__footer" data-hm-map-nodrag>
|
|
2929
|
-
@if (scale()) {
|
|
2930
|
-
<div class="hm-map__scale" role="group" [attr.aria-label]="text.controls.scale">
|
|
2931
|
-
@for (bar of scaleBars(); track bar.unit) {
|
|
2932
|
-
<span class="hm-map__scale-bar" [style.width.px]="bar.width">{{ bar.label }}</span>
|
|
2933
|
-
}
|
|
2934
|
-
</div>
|
|
2935
|
-
}
|
|
2936
|
-
@if (attributionHtml()) {
|
|
2937
|
-
<div class="hm-map__attribution" role="note" [attr.aria-label]="text.map.attribution" [innerHTML]="attributionHtml()"></div>
|
|
2938
|
-
}
|
|
2939
|
-
</div>
|
|
2940
|
-
|
|
2941
|
-
<p class="hm-map__sr-only" [id]="helpId">{{ text.map.instructions }}</p>
|
|
2942
|
-
<div class="hm-map__sr-only" aria-live="polite" aria-atomic="true">{{ status() }}</div>
|
|
2943
|
-
</div>
|
|
2944
|
-
@for (panel of panels(); track panel.id) {
|
|
2945
|
-
@if (panel.table; as table) {
|
|
2946
|
-
<div
|
|
2947
|
-
class="hm-map__table"
|
|
2948
|
-
[id]="panel.id + '-table'"
|
|
2949
|
-
[class.hm-map__sr-only]="openTable() !== panel.id"
|
|
2950
|
-
[attr.role]="openTable() === panel.id ? 'region' : null"
|
|
2951
|
-
[attr.aria-label]="openTable() === panel.id ? table.caption : null"
|
|
2952
|
-
(keydown.escape)="openTable() === panel.id && closeTable(panel.id)"
|
|
2953
|
-
>
|
|
2954
|
-
@if (openTable() === panel.id) {
|
|
2955
|
-
<div class="hm-map__table-bar">
|
|
2956
|
-
<button type="button" class="hm-map__table-toggle" (click)="closeTable(panel.id)">{{ text.data.hideTable }}</button>
|
|
2957
|
-
</div>
|
|
2958
|
-
}
|
|
2959
|
-
<div class="hm-map__table-scroll" [attr.tabindex]="openTable() === panel.id ? 0 : null">
|
|
2960
|
-
<table class="hm-table hm-table--compact">
|
|
2961
|
-
<caption>{{ table.caption }}</caption>
|
|
2962
|
-
<thead>
|
|
2963
|
-
<tr>
|
|
2964
|
-
<th scope="col">{{ table.columns[0] }}</th>
|
|
2965
|
-
<th scope="col" class="hm-map__table-num">{{ table.columns[1] }}</th>
|
|
2966
|
-
</tr>
|
|
2967
|
-
</thead>
|
|
2968
|
-
<tbody>
|
|
2969
|
-
@for (row of table.rows; track row.key) {
|
|
2970
|
-
<tr>
|
|
2971
|
-
<th scope="row">{{ row.header }}</th>
|
|
2972
|
-
<td class="hm-map__table-num">{{ row.value }}</td>
|
|
2973
|
-
</tr>
|
|
2974
|
-
}
|
|
2975
|
-
</tbody>
|
|
2976
|
-
</table>
|
|
2977
|
-
</div>
|
|
2978
|
-
</div>
|
|
2979
|
-
}
|
|
2980
|
-
}
|
|
2981
|
-
<div class="hm-map__layers" hidden><ng-content /></div>
|
|
2833
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: MapComponent, isStandalone: true, selector: "hm-map", inputs: { center: { classPropertyName: "center", publicName: "center", isSignal: true, isRequired: false, transformFunction: null }, zoom: { classPropertyName: "zoom", publicName: "zoom", isSignal: true, isRequired: false, transformFunction: null }, minZoom: { classPropertyName: "minZoom", publicName: "minZoom", isSignal: true, isRequired: false, transformFunction: null }, maxZoom: { classPropertyName: "maxZoom", publicName: "maxZoom", isSignal: true, isRequired: false, transformFunction: null }, maxBounds: { classPropertyName: "maxBounds", publicName: "maxBounds", isSignal: true, isRequired: false, transformFunction: null }, bounds: { classPropertyName: "bounds", publicName: "bounds", isSignal: true, isRequired: false, transformFunction: null }, boundsPadding: { classPropertyName: "boundsPadding", publicName: "boundsPadding", isSignal: true, isRequired: false, transformFunction: null }, tileUrl: { classPropertyName: "tileUrl", publicName: "tileUrl", isSignal: true, isRequired: false, transformFunction: null }, subdomains: { classPropertyName: "subdomains", publicName: "subdomains", isSignal: true, isRequired: false, transformFunction: null }, maxNativeZoom: { classPropertyName: "maxNativeZoom", publicName: "maxNativeZoom", isSignal: true, isRequired: false, transformFunction: null }, attribution: { classPropertyName: "attribution", publicName: "attribution", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, zoomControl: { classPropertyName: "zoomControl", publicName: "zoomControl", isSignal: true, isRequired: false, transformFunction: null }, scale: { classPropertyName: "scale", publicName: "scale", isSignal: true, isRequired: false, transformFunction: null }, scaleUnits: { classPropertyName: "scaleUnits", publicName: "scaleUnits", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null }, scrollWheelZoom: { classPropertyName: "scrollWheelZoom", publicName: "scrollWheelZoom", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { viewChange: "viewChange" }, host: { properties: { "class.hm-map--static": "!interactive()" }, classAttribute: "hm-map" }, providers: [{ provide: HM_MAP, useExisting: MapComponent }], viewQueries: [{ propertyName: "viewportRef", first: true, predicate: ["viewport"], descendants: true, isSignal: true }, { propertyName: "paneRef", first: true, predicate: ["pane"], descendants: true, isSignal: true }, { propertyName: "tilesRef", first: true, predicate: ["tiles"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
2834
|
+
<div
|
|
2835
|
+
#viewport
|
|
2836
|
+
class="hm-map__viewport"
|
|
2837
|
+
tabindex="0"
|
|
2838
|
+
role="region"
|
|
2839
|
+
[attr.aria-roledescription]="text.map.roleDescription"
|
|
2840
|
+
[attr.aria-label]="label() || text.map.label"
|
|
2841
|
+
[attr.aria-describedby]="helpId"
|
|
2842
|
+
>
|
|
2843
|
+
<div #pane class="hm-map__pane">
|
|
2844
|
+
<div #tiles class="hm-map__tiles"></div>
|
|
2845
|
+
<div class="hm-map__regions"><ng-content select="hm-map-basemap, hm-map-choropleth" /></div>
|
|
2846
|
+
<svg
|
|
2847
|
+
class="hm-map__overlay"
|
|
2848
|
+
aria-hidden="true"
|
|
2849
|
+
focusable="false"
|
|
2850
|
+
[attr.width]="size().x"
|
|
2851
|
+
[attr.height]="size().y"
|
|
2852
|
+
>
|
|
2853
|
+
@for (p of paths(); track p.key) {
|
|
2854
|
+
<path
|
|
2855
|
+
[attr.d]="p.d"
|
|
2856
|
+
[attr.class]="'hm-map__path hm-map__path--' + p.kind + (p.onClick ? ' hm-map__path--interactive' : '') + (p.className ? ' ' + p.className : '')"
|
|
2857
|
+
[style.stroke]="p.stroke"
|
|
2858
|
+
[style.fill]="p.fill"
|
|
2859
|
+
[style.stroke-width.px]="p.weight"
|
|
2860
|
+
[style.stroke-opacity]="p.opacity"
|
|
2861
|
+
[style.fill-opacity]="p.fillOpacity"
|
|
2862
|
+
[style.stroke-dasharray]="p.dashArray"
|
|
2863
|
+
(click)="p.onClick?.()"
|
|
2864
|
+
/>
|
|
2865
|
+
}
|
|
2866
|
+
</svg>
|
|
2867
|
+
<div class="hm-map__markers"><ng-content select="hm-map-marker, hm-map-cluster, hm-map-route" /></div>
|
|
2868
|
+
<div class="hm-map__popups"><ng-content select="hm-map-popup" /></div>
|
|
2869
|
+
@if (tooltip(); as tip) {
|
|
2870
|
+
<div class="hm-map__tooltip" aria-hidden="true" [style.transform]="'translate3d(' + tip.at.x + 'px, ' + tip.at.y + 'px, 0)'">
|
|
2871
|
+
<div class="hm-map__tooltip-box">
|
|
2872
|
+
<span class="hm-map__tooltip-title">{{ tip.title }}</span>
|
|
2873
|
+
@if (tip.detail) {
|
|
2874
|
+
<span class="hm-map__tooltip-detail">{{ tip.detail }}</span>
|
|
2875
|
+
}
|
|
2876
|
+
</div>
|
|
2877
|
+
</div>
|
|
2878
|
+
}
|
|
2879
|
+
</div>
|
|
2880
|
+
|
|
2881
|
+
@if (zoomControl()) {
|
|
2882
|
+
<div class="hm-map__controls" role="group" data-hm-map-nodrag [attr.aria-label]="text.controls.label">
|
|
2883
|
+
<button
|
|
2884
|
+
type="button"
|
|
2885
|
+
class="hm-map__control"
|
|
2886
|
+
[attr.aria-label]="text.controls.zoomIn"
|
|
2887
|
+
[disabled]="currentZoom() >= limits().maxZoom"
|
|
2888
|
+
(click)="zoomIn()"
|
|
2889
|
+
>
|
|
2890
|
+
<hm-icon shape="plus" />
|
|
2891
|
+
</button>
|
|
2892
|
+
<button
|
|
2893
|
+
type="button"
|
|
2894
|
+
class="hm-map__control"
|
|
2895
|
+
[attr.aria-label]="text.controls.zoomOut"
|
|
2896
|
+
[disabled]="currentZoom() <= limits().minZoom"
|
|
2897
|
+
(click)="zoomOut()"
|
|
2898
|
+
>
|
|
2899
|
+
<hm-icon shape="minus" />
|
|
2900
|
+
</button>
|
|
2901
|
+
</div>
|
|
2902
|
+
}
|
|
2903
|
+
|
|
2904
|
+
@if (panels().length) {
|
|
2905
|
+
<div class="hm-map__panels" data-hm-map-nodrag>
|
|
2906
|
+
@for (panel of panels(); track panel.id) {
|
|
2907
|
+
<div class="hm-map__panel">
|
|
2908
|
+
@if (panel.legend) {
|
|
2909
|
+
<hm-legend class="hm-map__legend" marker="square" [items]="panel.legend" [label]="panel.legendLabel" />
|
|
2910
|
+
}
|
|
2911
|
+
@if (panel.table) {
|
|
2912
|
+
<button
|
|
2913
|
+
type="button"
|
|
2914
|
+
class="hm-map__table-toggle"
|
|
2915
|
+
[id]="panel.id + '-toggle'"
|
|
2916
|
+
[attr.aria-expanded]="openTable() === panel.id"
|
|
2917
|
+
[attr.aria-controls]="panel.id + '-table'"
|
|
2918
|
+
(click)="toggleTable(panel.id)"
|
|
2919
|
+
>
|
|
2920
|
+
{{ text.data.showTable }}
|
|
2921
|
+
</button>
|
|
2922
|
+
}
|
|
2923
|
+
</div>
|
|
2924
|
+
}
|
|
2925
|
+
</div>
|
|
2926
|
+
}
|
|
2927
|
+
|
|
2928
|
+
<div class="hm-map__footer" data-hm-map-nodrag>
|
|
2929
|
+
@if (scale()) {
|
|
2930
|
+
<div class="hm-map__scale" role="group" [attr.aria-label]="text.controls.scale">
|
|
2931
|
+
@for (bar of scaleBars(); track bar.unit) {
|
|
2932
|
+
<span class="hm-map__scale-bar" [style.width.px]="bar.width">{{ bar.label }}</span>
|
|
2933
|
+
}
|
|
2934
|
+
</div>
|
|
2935
|
+
}
|
|
2936
|
+
@if (attributionHtml()) {
|
|
2937
|
+
<div class="hm-map__attribution" role="note" [attr.aria-label]="text.map.attribution" [innerHTML]="attributionHtml()"></div>
|
|
2938
|
+
}
|
|
2939
|
+
</div>
|
|
2940
|
+
|
|
2941
|
+
<p class="hm-map__sr-only" [id]="helpId">{{ text.map.instructions }}</p>
|
|
2942
|
+
<div class="hm-map__sr-only" aria-live="polite" aria-atomic="true">{{ status() }}</div>
|
|
2943
|
+
</div>
|
|
2944
|
+
@for (panel of panels(); track panel.id) {
|
|
2945
|
+
@if (panel.table; as table) {
|
|
2946
|
+
<div
|
|
2947
|
+
class="hm-map__table"
|
|
2948
|
+
[id]="panel.id + '-table'"
|
|
2949
|
+
[class.hm-map__sr-only]="openTable() !== panel.id"
|
|
2950
|
+
[attr.role]="openTable() === panel.id ? 'region' : null"
|
|
2951
|
+
[attr.aria-label]="openTable() === panel.id ? table.caption : null"
|
|
2952
|
+
(keydown.escape)="openTable() === panel.id && closeTable(panel.id)"
|
|
2953
|
+
>
|
|
2954
|
+
@if (openTable() === panel.id) {
|
|
2955
|
+
<div class="hm-map__table-bar">
|
|
2956
|
+
<button type="button" class="hm-map__table-toggle" (click)="closeTable(panel.id)">{{ text.data.hideTable }}</button>
|
|
2957
|
+
</div>
|
|
2958
|
+
}
|
|
2959
|
+
<div class="hm-map__table-scroll" [attr.tabindex]="openTable() === panel.id ? 0 : null">
|
|
2960
|
+
<table class="hm-table hm-table--compact">
|
|
2961
|
+
<caption>{{ table.caption }}</caption>
|
|
2962
|
+
<thead>
|
|
2963
|
+
<tr>
|
|
2964
|
+
<th scope="col">{{ table.columns[0] }}</th>
|
|
2965
|
+
<th scope="col" class="hm-map__table-num">{{ table.columns[1] }}</th>
|
|
2966
|
+
</tr>
|
|
2967
|
+
</thead>
|
|
2968
|
+
<tbody>
|
|
2969
|
+
@for (row of table.rows; track row.key) {
|
|
2970
|
+
<tr>
|
|
2971
|
+
<th scope="row">{{ row.header }}</th>
|
|
2972
|
+
<td class="hm-map__table-num">{{ row.value }}</td>
|
|
2973
|
+
</tr>
|
|
2974
|
+
}
|
|
2975
|
+
</tbody>
|
|
2976
|
+
</table>
|
|
2977
|
+
</div>
|
|
2978
|
+
</div>
|
|
2979
|
+
}
|
|
2980
|
+
}
|
|
2981
|
+
<div class="hm-map__layers" hidden><ng-content /></div>
|
|
2982
2982
|
`, isInline: true, styles: [".hm-map{--hm-map-water: color-mix(in srgb, var(--hm-accent) 16%, var(--hm-surface-raised));--hm-map-land: color-mix(in srgb, var(--hm-text) 5%, var(--hm-surface-raised));--hm-map-land-muted: color-mix(in srgb, var(--hm-map-land) 45%, var(--hm-map-water));--hm-map-border: var(--hm-border);--hm-map-border-weight: var(--hm-border-hairline);--hm-map-region-border: var(--hm-surface-raised);--hm-map-nodata: color-mix(in srgb, var(--hm-text) 14%, var(--hm-surface-raised));--hm-map-label: var(--hm-text);--hm-map-label-halo: var(--hm-surface-raised);--hm-map-bg: var(--hm-map-water);--hm-map-path-color: var(--hm-data-categorical-1);--hm-map-path-weight: var(--hm-border-thin);--hm-map-fill-opacity: .2;--hm-map-marker-size: var(--hm-icon-xl);--hm-map-marker-color: var(--hm-accent);--hm-map-control-size: var(--hm-control-height);--hm-map-gap: var(--hm-space-sm);position:relative;display:block;overflow:hidden;aspect-ratio:16/9;border:var(--hm-border-hairline) solid var(--hm-border);border-radius:var(--hm-radius);background:var(--hm-map-bg);color:var(--hm-text);font-family:var(--hm-font-family);font-size:var(--hm-font-size-sm);isolation:isolate;contain:layout paint}.hm-map__viewport{position:absolute;inset:0;overflow:hidden;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.hm-map__viewport:focus-visible{outline:var(--hm-border-thin) solid var(--hm-focus-color);outline-offset:calc(-1 * var(--hm-border-thin))}.hm-map--dragging,.hm-map--dragging *{cursor:grabbing}.hm-map--static .hm-map__viewport{cursor:default;touch-action:auto}.hm-map__pane{position:absolute;top:0;left:0;will-change:transform}.hm-map__tiles,.hm-map__markers,.hm-map__popups{position:absolute;top:0;left:0}.hm-map__tiles{z-index:1}.hm-map__tile-level{position:absolute;top:0;left:0}.hm-map__tile{position:absolute;top:0;left:0;max-width:none;max-height:none;border:0;padding:0;margin:0;opacity:0;-webkit-user-select:none;user-select:none;pointer-events:none;image-rendering:auto;transition:opacity var(--hm-duration-standard) var(--hm-ease-standard)}.hm-map__tile--loaded{opacity:1}.hm-map__tile--error{visibility:hidden}.hm-map__overlay{position:absolute;top:0;left:0;z-index:2;overflow:visible;pointer-events:none}.hm-map__path{fill:none;stroke:var(--hm-map-path-color);stroke-width:var(--hm-map-path-weight);stroke-linecap:round;stroke-linejoin:round;fill-rule:evenodd}.hm-map__path--area,.hm-map__path--point{fill:var(--hm-map-path-color);fill-opacity:var(--hm-map-fill-opacity)}.hm-map__path--point{fill-opacity:1;stroke:var(--hm-surface-raised)}.hm-map__path--interactive{pointer-events:visiblePainted;cursor:pointer}.hm-map__markers{z-index:3}.hm-map__popups{z-index:4}.hm-map__controls{position:absolute;top:var(--hm-map-gap);left:var(--hm-map-gap);z-index:5;display:flex;flex-direction:column;border:var(--hm-border-hairline) solid var(--hm-border);border-radius:var(--hm-radius-control);background:var(--hm-surface-overlay);box-shadow:var(--hm-shadow-overlay);overflow:hidden}.hm-map__control{display:inline-flex;align-items:center;justify-content:center;width:var(--hm-map-control-size);height:var(--hm-map-control-size);padding:0;border:0;background:transparent;color:var(--hm-text);font-size:var(--hm-icon-md);cursor:pointer}.hm-map__control+.hm-map__control{border-top:var(--hm-border-hairline) solid var(--hm-border)}.hm-map__control:hover:not(:disabled){background:var(--hm-accent-subtle)}.hm-map__control:focus-visible{outline:var(--hm-border-thin) solid var(--hm-focus-color);outline-offset:calc(-1 * var(--hm-border-thin))}.hm-map__control:disabled{color:var(--hm-disabled-text);cursor:not-allowed}.hm-map__footer{position:absolute;right:0;bottom:0;left:0;z-index:5;display:flex;align-items:flex-end;justify-content:space-between;gap:var(--hm-map-gap);padding:0 0 0 var(--hm-map-gap);pointer-events:none}.hm-map__footer>*{pointer-events:auto}.hm-map__scale{display:flex;flex-direction:column;gap:var(--hm-space-xxxs);margin-bottom:var(--hm-map-gap)}.hm-map__scale-bar{box-sizing:border-box;padding:0 var(--hm-space-xxxs);border:var(--hm-border-thin) solid var(--hm-text);border-top:0;background:color-mix(in srgb,var(--hm-surface-overlay) 80%,transparent);color:var(--hm-text);font-size:var(--hm-font-size-xs);line-height:var(--hm-line-height-snug);white-space:nowrap}.hm-map__attribution{margin-left:auto;max-width:100%;padding:var(--hm-space-xxxs) var(--hm-space-xs);border-top-left-radius:var(--hm-radius-micro);background:color-mix(in srgb,var(--hm-surface-overlay) 85%,transparent);color:var(--hm-text);font-size:var(--hm-font-size-xs);line-height:var(--hm-line-height-snug);overflow-wrap:anywhere}.hm-map__attribution a{color:var(--hm-accent-strong)}.hm-map__attribution a:focus-visible{outline:var(--hm-border-thin) solid var(--hm-focus-color);outline-offset:var(--hm-border-hairline)}.hm-map__sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.hm-map__layers{display:none}.hm-map-cluster{display:contents}.hm-map-marker--clustered{display:none}.hm-map-cluster__group{position:absolute;top:0;left:0;width:0;height:0}.hm-map-cluster__button{position:absolute;display:grid;place-items:center;min-width:var(--hm-control-height);min-height:var(--hm-control-height);padding:0 var(--hm-space-nano);border:var(--hm-border-thin) solid var(--hm-surface-raised);border-radius:var(--hm-radius-pill);background:var(--hm-action);color:var(--hm-on-action);font:inherit;font-size:var(--hm-font-size-sm);font-weight:var(--hm-font-weight-bold);font-variant-numeric:tabular-nums;line-height:1;cursor:pointer;transform:translate(-50%,-50%);box-shadow:0 0 0 var(--hm-space-micro) color-mix(in srgb,var(--hm-action) 28%,transparent)}.hm-map-cluster__button--large{min-width:calc(var(--hm-control-height) * 1.25);min-height:calc(var(--hm-control-height) * 1.25)}.hm-map-cluster__button:hover{box-shadow:0 0 0 var(--hm-space-nano) color-mix(in srgb,var(--hm-action) 34%,transparent)}.hm-map-cluster__button:focus-visible{outline:var(--hm-border-thin) solid var(--hm-focus-color);outline-offset:var(--hm-space-micro)}@media(forced-colors:active){.hm-map-cluster__button{border-color:CanvasText;background:Canvas;color:LinkText;box-shadow:none;forced-color-adjust:none}.hm-map-cluster__button:focus-visible{outline-color:Highlight}}.hm-map-marker{position:absolute;top:0;left:0;width:0;height:0}.hm-map-marker__button{position:absolute;left:0;top:0;display:inline-flex;align-items:center;justify-content:center;min-width:var(--hm-map-marker-size);min-height:var(--hm-map-marker-size);padding:0;border:0;border-radius:var(--hm-radius-pill);background:transparent;color:var(--hm-map-marker-color);font-size:var(--hm-map-marker-size);line-height:1;cursor:pointer;transform:translate(-50%,-100%);filter:drop-shadow(0 0 var(--hm-border-hairline) var(--hm-surface-raised))}.hm-map-marker__button:focus-visible{outline:var(--hm-border-thin) solid var(--hm-focus-color);outline-offset:var(--hm-border-hairline)}.hm-map-marker--center .hm-map-marker__button{transform:translate(-50%,-50%)}.hm-map-marker__icon{pointer-events:none}.hm-map-marker--open{z-index:1}.hm-map-popup{position:absolute;top:0;left:0;width:0;height:0;z-index:2}.hm-map-popup--anchored{top:calc(-1 * var(--hm-map-marker-size))}.hm-map-popup__box{--hm-map-popup-tip: var(--hm-space-sm);position:absolute;bottom:var(--hm-map-popup-tip);left:0;box-sizing:border-box;width:max-content;min-width:calc(var(--hm-control-height) * 4);max-width:min(var(--hm-control-height) * 9,80vw);padding:var(--hm-space-sm) var(--hm-space-md);border:var(--hm-border-hairline) solid var(--hm-border);border-radius:var(--hm-radius);background:var(--hm-surface-overlay);color:var(--hm-text);box-shadow:var(--hm-shadow-overlay);font-size:var(--hm-font-size-sm);line-height:var(--hm-line-height-normal);transform:translate(-50%);cursor:auto;-webkit-user-select:text;user-select:text}.hm-map-popup__box:focus-visible{outline:var(--hm-border-thin) solid var(--hm-focus-color);outline-offset:var(--hm-border-hairline)}.hm-map-popup__box:after{content:\"\";position:absolute;top:100%;left:50%;width:var(--hm-map-popup-tip);height:var(--hm-map-popup-tip);border-right:var(--hm-border-hairline) solid var(--hm-border);border-bottom:var(--hm-border-hairline) solid var(--hm-border);background:var(--hm-surface-overlay);transform:translate(-50%,-50%) rotate(45deg)}.hm-map-popup__close{float:right;display:inline-flex;align-items:center;justify-content:center;width:var(--hm-control-height-dense);height:var(--hm-control-height-dense);margin:calc(-1 * var(--hm-space-xs)) calc(-1 * var(--hm-space-sm)) 0 var(--hm-space-xs);padding:0;border:0;border-radius:var(--hm-radius-control);background:transparent;color:var(--hm-muted);font-size:var(--hm-icon-md);cursor:pointer}.hm-map-popup__close:hover{background:var(--hm-accent-subtle);color:var(--hm-text)}.hm-map-popup__close:focus-visible{outline:var(--hm-border-thin) solid var(--hm-focus-color);outline-offset:calc(-1 * var(--hm-border-thin))}.hm-map-popup__content{overflow-wrap:anywhere}.hm-map__regions{position:absolute;top:0;left:0;z-index:1}.hm-map-regions{position:absolute;top:0;left:0}.hm-map-regions__svg{position:absolute;top:0;left:0;overflow:visible;pointer-events:none}.hm-map-regions__label{fill:var(--hm-map-label);stroke:var(--hm-map-label-halo);stroke-width:calc(var(--hm-border-thin) * 1.5);stroke-linejoin:round;paint-order:stroke;font-family:var(--hm-font-family);font-size:var(--hm-font-size-xs);font-weight:var(--hm-font-weight-semibold);text-anchor:middle;dominant-baseline:central;pointer-events:none}.hm-map-basemap__region{fill:var(--hm-map-land);fill-rule:evenodd;stroke:var(--hm-map-border);stroke-width:var(--hm-map-border-weight);stroke-linejoin:round}.hm-map-basemap--muted .hm-map-basemap__region{fill:var(--hm-map-land-muted)}.hm-map-choropleth__region{fill:var(--hm-map-nodata);fill-rule:evenodd;stroke:var(--hm-map-region-border);stroke-width:var(--hm-map-border-weight);stroke-linejoin:round;pointer-events:visiblePainted;outline:none}.hm-map-choropleth__region--empty{stroke:var(--hm-map-border)}.hm-map-choropleth__highlight{fill:none;stroke:var(--hm-focus-color);stroke-width:var(--hm-border-thin);stroke-linejoin:round;pointer-events:none;filter:drop-shadow(0 0 var(--hm-border-hairline) var(--hm-surface-raised)) drop-shadow(0 0 var(--hm-border-hairline) var(--hm-surface-raised))}.hm-map__tooltip{position:absolute;top:0;left:0;z-index:5;width:0;height:0;pointer-events:none}.hm-map__tooltip-box{position:absolute;bottom:var(--hm-space-xs);left:0;display:flex;flex-direction:column;width:max-content;max-width:calc(var(--hm-control-height) * 8);padding:var(--hm-space-nano) var(--hm-space-xs);border:var(--hm-border-hairline) solid var(--hm-border);border-radius:var(--hm-radius-micro);background:var(--hm-surface-overlay);color:var(--hm-text);box-shadow:var(--hm-shadow-overlay);font-size:var(--hm-font-size-xs);line-height:var(--hm-line-height-snug);transform:translate(-50%)}.hm-map__tooltip-title{font-weight:var(--hm-font-weight-semibold)}.hm-map__tooltip-detail{font-variant-numeric:tabular-nums}.hm-map__panels{position:absolute;top:var(--hm-map-gap);right:var(--hm-map-gap);z-index:5;display:flex;flex-direction:column;gap:var(--hm-space-xs);max-inline-size:min(50%,var(--hm-control-height) * 7);max-block-size:calc(100% - var(--hm-map-gap) * 2 - var(--hm-control-height));overflow:auto}.hm-map__panel{display:flex;flex-direction:column;align-items:flex-start;gap:var(--hm-space-nano);padding:var(--hm-space-nano) var(--hm-space-xs);border:var(--hm-border-hairline) solid var(--hm-border);border-radius:var(--hm-radius-control);background:color-mix(in srgb,var(--hm-surface-overlay) 92%,transparent);color:var(--hm-text);box-shadow:var(--hm-shadow-overlay);cursor:auto}.hm-map__legend .hm-legend{gap:var(--hm-space-micro)}.hm-map__legend .hm-legend__text{font-size:var(--hm-font-size-xs);font-variant-numeric:tabular-nums}.hm-map__legend .hm-legend__marker{inline-size:var(--hm-space-sm);block-size:var(--hm-space-sm);margin-block-start:calc((1lh - var(--hm-space-sm)) / 2);box-shadow:inset 0 0 0 var(--hm-border-hairline) color-mix(in srgb,var(--hm-text) 25%,transparent)}.hm-map__table-toggle{display:inline-flex;align-items:center;min-block-size:var(--hm-control-height);padding:0 var(--hm-space-xs);border:var(--hm-border-hairline) solid var(--hm-border);border-radius:var(--hm-radius-control);background:var(--hm-surface-overlay);color:var(--hm-accent-strong);font:inherit;font-size:var(--hm-font-size-xs);font-weight:var(--hm-font-weight-semibold);cursor:pointer}.hm-map__table-toggle:hover{background:var(--hm-accent-subtle)}.hm-map__table-toggle:focus-visible{outline:var(--hm-border-thin) solid var(--hm-focus-color);outline-offset:var(--hm-border-hairline)}.hm-map__viewport{container-type:inline-size}@container (max-width: 480px){.hm-map__panels{top:var(--hm-space-xs);right:var(--hm-space-xs);gap:var(--hm-space-micro);max-inline-size:45%}.hm-map__panel{gap:var(--hm-space-micro);padding:var(--hm-space-micro) var(--hm-space-xs)}.hm-map__legend .hm-legend{gap:0}.hm-map__legend .hm-legend__text,.hm-map__table-toggle{font-size:var(--hm-font-size-2xs)}.hm-map__legend .hm-legend__marker{inline-size:var(--hm-space-xs);block-size:var(--hm-space-xs);margin-block-start:calc((1lh - var(--hm-space-xs)) / 2)}}.hm-map__table:not(.hm-map__sr-only){position:absolute;inset:0;z-index:6;display:flex;flex-direction:column;background:var(--hm-surface-raised);color:var(--hm-text)}.hm-map__table-bar{display:flex;justify-content:flex-end;padding:var(--hm-space-xs) var(--hm-map-gap);border-bottom:var(--hm-border-hairline) solid var(--hm-divider)}.hm-map__table:not(.hm-map__sr-only) .hm-map__table-scroll{overflow:auto}.hm-map__table-scroll{flex:1 1 auto;min-block-size:0;padding:0 var(--hm-map-gap) var(--hm-map-gap)}.hm-map__table-scroll:focus-visible{outline:var(--hm-border-thin) solid var(--hm-focus-color);outline-offset:calc(-1 * var(--hm-border-thin))}.hm-map__table-scroll table{inline-size:100%}.hm-map__table-scroll caption{padding-block:var(--hm-space-xs);color:var(--hm-muted);font-size:var(--hm-font-size-sm);text-align:start}.hm-map__table-num{text-align:end;font-variant-numeric:tabular-nums}@media(prefers-reduced-motion:reduce){.hm-map__tile{transition:none}}@media(forced-colors:active){.hm-map{border-color:CanvasText}.hm-map__viewport:focus-visible,.hm-map__control:focus-visible,.hm-map__table-toggle:focus-visible,.hm-map__table-scroll:focus-visible,.hm-map-marker__button:focus-visible,.hm-map-popup__box:focus-visible,.hm-map-popup__close:focus-visible{outline-color:Highlight}.hm-map__controls,.hm-map-popup__box,.hm-map__attribution,.hm-map__scale-bar{border:var(--hm-border-hairline) solid CanvasText;background:Canvas;color:CanvasText;forced-color-adjust:none}.hm-map__control{background:ButtonFace;color:ButtonText;forced-color-adjust:none}.hm-map__control:disabled{color:GrayText}.hm-map-marker__button{color:LinkText;forced-color-adjust:none}.hm-map__path{stroke:CanvasText!important;forced-color-adjust:none}.hm-map__path--area,.hm-map__path--point{fill:Highlight!important}.hm-map-basemap__region,.hm-map-basemap--muted .hm-map-basemap__region{fill:Canvas;stroke:CanvasText;forced-color-adjust:none}.hm-map-choropleth__region{stroke:CanvasText;forced-color-adjust:none}.hm-map-choropleth__highlight{stroke:Highlight;filter:none;forced-color-adjust:none}.hm-map-regions__label{fill:CanvasText;stroke:Canvas;forced-color-adjust:none}.hm-map__tooltip-box,.hm-map__panel,.hm-map__table-toggle{border-color:CanvasText;background:Canvas;color:CanvasText}.hm-map__legend .hm-legend__marker{forced-color-adjust:none;box-shadow:inset 0 0 0 var(--hm-border-hairline) CanvasText}}.hm-map{--hm-map-route-color: var(--hm-accent);--hm-map-route-casing: var(--hm-surface-raised);--hm-map-route-alt: var(--hm-muted);--hm-map-route-active: var(--hm-accent-strong);--hm-map-route-weight: calc(var(--hm-border-thin) * 3)}.hm-map-route{position:absolute;top:0;left:0;width:0;height:0}.hm-map-route__start{--hm-map-marker-color: var(--hm-success)}.hm-map-route__end{--hm-map-marker-color: var(--hm-danger)}.hm-map__path.hm-map-route__casing{stroke:var(--hm-map-route-casing);stroke-width:calc(var(--hm-map-route-weight) + var(--hm-border-thin) * 2)}.hm-map__path.hm-map-route__line{stroke:var(--hm-map-route-color);stroke-width:var(--hm-map-route-weight)}.hm-map__path.hm-map-route__alt{stroke:var(--hm-map-route-alt);stroke-width:var(--hm-map-route-weight);stroke-opacity:.6}.hm-map__path.hm-map-route__alt.hm-map__path--interactive:hover{stroke-opacity:.9}.hm-map__path.hm-map-route__active{stroke:var(--hm-map-route-active);stroke-width:calc(var(--hm-map-route-weight) + var(--hm-border-thin))}.hm-map__path.hm-map-route__step-point{fill:var(--hm-map-route-active);stroke:var(--hm-surface-raised);stroke-width:var(--hm-border-thin)}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }, { kind: "component", type: LegendComponent, selector: "hm-legend", inputs: ["items", "orientation", "marker", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2983
2983
|
}
|
|
2984
2984
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapComponent, decorators: [{
|
|
@@ -2986,155 +2986,155 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
2986
2986
|
args: [{ selector: 'hm-map', imports: [IconComponent, LegendComponent], providers: [{ provide: HM_MAP, useExisting: MapComponent }], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
2987
2987
|
class: 'hm-map',
|
|
2988
2988
|
'[class.hm-map--static]': '!interactive()',
|
|
2989
|
-
}, template: `
|
|
2990
|
-
<div
|
|
2991
|
-
#viewport
|
|
2992
|
-
class="hm-map__viewport"
|
|
2993
|
-
tabindex="0"
|
|
2994
|
-
role="region"
|
|
2995
|
-
[attr.aria-roledescription]="text.map.roleDescription"
|
|
2996
|
-
[attr.aria-label]="label() || text.map.label"
|
|
2997
|
-
[attr.aria-describedby]="helpId"
|
|
2998
|
-
>
|
|
2999
|
-
<div #pane class="hm-map__pane">
|
|
3000
|
-
<div #tiles class="hm-map__tiles"></div>
|
|
3001
|
-
<div class="hm-map__regions"><ng-content select="hm-map-basemap, hm-map-choropleth" /></div>
|
|
3002
|
-
<svg
|
|
3003
|
-
class="hm-map__overlay"
|
|
3004
|
-
aria-hidden="true"
|
|
3005
|
-
focusable="false"
|
|
3006
|
-
[attr.width]="size().x"
|
|
3007
|
-
[attr.height]="size().y"
|
|
3008
|
-
>
|
|
3009
|
-
@for (p of paths(); track p.key) {
|
|
3010
|
-
<path
|
|
3011
|
-
[attr.d]="p.d"
|
|
3012
|
-
[attr.class]="'hm-map__path hm-map__path--' + p.kind + (p.onClick ? ' hm-map__path--interactive' : '') + (p.className ? ' ' + p.className : '')"
|
|
3013
|
-
[style.stroke]="p.stroke"
|
|
3014
|
-
[style.fill]="p.fill"
|
|
3015
|
-
[style.stroke-width.px]="p.weight"
|
|
3016
|
-
[style.stroke-opacity]="p.opacity"
|
|
3017
|
-
[style.fill-opacity]="p.fillOpacity"
|
|
3018
|
-
[style.stroke-dasharray]="p.dashArray"
|
|
3019
|
-
(click)="p.onClick?.()"
|
|
3020
|
-
/>
|
|
3021
|
-
}
|
|
3022
|
-
</svg>
|
|
3023
|
-
<div class="hm-map__markers"><ng-content select="hm-map-marker, hm-map-cluster, hm-map-route" /></div>
|
|
3024
|
-
<div class="hm-map__popups"><ng-content select="hm-map-popup" /></div>
|
|
3025
|
-
@if (tooltip(); as tip) {
|
|
3026
|
-
<div class="hm-map__tooltip" aria-hidden="true" [style.transform]="'translate3d(' + tip.at.x + 'px, ' + tip.at.y + 'px, 0)'">
|
|
3027
|
-
<div class="hm-map__tooltip-box">
|
|
3028
|
-
<span class="hm-map__tooltip-title">{{ tip.title }}</span>
|
|
3029
|
-
@if (tip.detail) {
|
|
3030
|
-
<span class="hm-map__tooltip-detail">{{ tip.detail }}</span>
|
|
3031
|
-
}
|
|
3032
|
-
</div>
|
|
3033
|
-
</div>
|
|
3034
|
-
}
|
|
3035
|
-
</div>
|
|
3036
|
-
|
|
3037
|
-
@if (zoomControl()) {
|
|
3038
|
-
<div class="hm-map__controls" role="group" data-hm-map-nodrag [attr.aria-label]="text.controls.label">
|
|
3039
|
-
<button
|
|
3040
|
-
type="button"
|
|
3041
|
-
class="hm-map__control"
|
|
3042
|
-
[attr.aria-label]="text.controls.zoomIn"
|
|
3043
|
-
[disabled]="currentZoom() >= limits().maxZoom"
|
|
3044
|
-
(click)="zoomIn()"
|
|
3045
|
-
>
|
|
3046
|
-
<hm-icon shape="plus" />
|
|
3047
|
-
</button>
|
|
3048
|
-
<button
|
|
3049
|
-
type="button"
|
|
3050
|
-
class="hm-map__control"
|
|
3051
|
-
[attr.aria-label]="text.controls.zoomOut"
|
|
3052
|
-
[disabled]="currentZoom() <= limits().minZoom"
|
|
3053
|
-
(click)="zoomOut()"
|
|
3054
|
-
>
|
|
3055
|
-
<hm-icon shape="minus" />
|
|
3056
|
-
</button>
|
|
3057
|
-
</div>
|
|
3058
|
-
}
|
|
3059
|
-
|
|
3060
|
-
@if (panels().length) {
|
|
3061
|
-
<div class="hm-map__panels" data-hm-map-nodrag>
|
|
3062
|
-
@for (panel of panels(); track panel.id) {
|
|
3063
|
-
<div class="hm-map__panel">
|
|
3064
|
-
@if (panel.legend) {
|
|
3065
|
-
<hm-legend class="hm-map__legend" marker="square" [items]="panel.legend" [label]="panel.legendLabel" />
|
|
3066
|
-
}
|
|
3067
|
-
@if (panel.table) {
|
|
3068
|
-
<button
|
|
3069
|
-
type="button"
|
|
3070
|
-
class="hm-map__table-toggle"
|
|
3071
|
-
[id]="panel.id + '-toggle'"
|
|
3072
|
-
[attr.aria-expanded]="openTable() === panel.id"
|
|
3073
|
-
[attr.aria-controls]="panel.id + '-table'"
|
|
3074
|
-
(click)="toggleTable(panel.id)"
|
|
3075
|
-
>
|
|
3076
|
-
{{ text.data.showTable }}
|
|
3077
|
-
</button>
|
|
3078
|
-
}
|
|
3079
|
-
</div>
|
|
3080
|
-
}
|
|
3081
|
-
</div>
|
|
3082
|
-
}
|
|
3083
|
-
|
|
3084
|
-
<div class="hm-map__footer" data-hm-map-nodrag>
|
|
3085
|
-
@if (scale()) {
|
|
3086
|
-
<div class="hm-map__scale" role="group" [attr.aria-label]="text.controls.scale">
|
|
3087
|
-
@for (bar of scaleBars(); track bar.unit) {
|
|
3088
|
-
<span class="hm-map__scale-bar" [style.width.px]="bar.width">{{ bar.label }}</span>
|
|
3089
|
-
}
|
|
3090
|
-
</div>
|
|
3091
|
-
}
|
|
3092
|
-
@if (attributionHtml()) {
|
|
3093
|
-
<div class="hm-map__attribution" role="note" [attr.aria-label]="text.map.attribution" [innerHTML]="attributionHtml()"></div>
|
|
3094
|
-
}
|
|
3095
|
-
</div>
|
|
3096
|
-
|
|
3097
|
-
<p class="hm-map__sr-only" [id]="helpId">{{ text.map.instructions }}</p>
|
|
3098
|
-
<div class="hm-map__sr-only" aria-live="polite" aria-atomic="true">{{ status() }}</div>
|
|
3099
|
-
</div>
|
|
3100
|
-
@for (panel of panels(); track panel.id) {
|
|
3101
|
-
@if (panel.table; as table) {
|
|
3102
|
-
<div
|
|
3103
|
-
class="hm-map__table"
|
|
3104
|
-
[id]="panel.id + '-table'"
|
|
3105
|
-
[class.hm-map__sr-only]="openTable() !== panel.id"
|
|
3106
|
-
[attr.role]="openTable() === panel.id ? 'region' : null"
|
|
3107
|
-
[attr.aria-label]="openTable() === panel.id ? table.caption : null"
|
|
3108
|
-
(keydown.escape)="openTable() === panel.id && closeTable(panel.id)"
|
|
3109
|
-
>
|
|
3110
|
-
@if (openTable() === panel.id) {
|
|
3111
|
-
<div class="hm-map__table-bar">
|
|
3112
|
-
<button type="button" class="hm-map__table-toggle" (click)="closeTable(panel.id)">{{ text.data.hideTable }}</button>
|
|
3113
|
-
</div>
|
|
3114
|
-
}
|
|
3115
|
-
<div class="hm-map__table-scroll" [attr.tabindex]="openTable() === panel.id ? 0 : null">
|
|
3116
|
-
<table class="hm-table hm-table--compact">
|
|
3117
|
-
<caption>{{ table.caption }}</caption>
|
|
3118
|
-
<thead>
|
|
3119
|
-
<tr>
|
|
3120
|
-
<th scope="col">{{ table.columns[0] }}</th>
|
|
3121
|
-
<th scope="col" class="hm-map__table-num">{{ table.columns[1] }}</th>
|
|
3122
|
-
</tr>
|
|
3123
|
-
</thead>
|
|
3124
|
-
<tbody>
|
|
3125
|
-
@for (row of table.rows; track row.key) {
|
|
3126
|
-
<tr>
|
|
3127
|
-
<th scope="row">{{ row.header }}</th>
|
|
3128
|
-
<td class="hm-map__table-num">{{ row.value }}</td>
|
|
3129
|
-
</tr>
|
|
3130
|
-
}
|
|
3131
|
-
</tbody>
|
|
3132
|
-
</table>
|
|
3133
|
-
</div>
|
|
3134
|
-
</div>
|
|
3135
|
-
}
|
|
3136
|
-
}
|
|
3137
|
-
<div class="hm-map__layers" hidden><ng-content /></div>
|
|
2989
|
+
}, template: `
|
|
2990
|
+
<div
|
|
2991
|
+
#viewport
|
|
2992
|
+
class="hm-map__viewport"
|
|
2993
|
+
tabindex="0"
|
|
2994
|
+
role="region"
|
|
2995
|
+
[attr.aria-roledescription]="text.map.roleDescription"
|
|
2996
|
+
[attr.aria-label]="label() || text.map.label"
|
|
2997
|
+
[attr.aria-describedby]="helpId"
|
|
2998
|
+
>
|
|
2999
|
+
<div #pane class="hm-map__pane">
|
|
3000
|
+
<div #tiles class="hm-map__tiles"></div>
|
|
3001
|
+
<div class="hm-map__regions"><ng-content select="hm-map-basemap, hm-map-choropleth" /></div>
|
|
3002
|
+
<svg
|
|
3003
|
+
class="hm-map__overlay"
|
|
3004
|
+
aria-hidden="true"
|
|
3005
|
+
focusable="false"
|
|
3006
|
+
[attr.width]="size().x"
|
|
3007
|
+
[attr.height]="size().y"
|
|
3008
|
+
>
|
|
3009
|
+
@for (p of paths(); track p.key) {
|
|
3010
|
+
<path
|
|
3011
|
+
[attr.d]="p.d"
|
|
3012
|
+
[attr.class]="'hm-map__path hm-map__path--' + p.kind + (p.onClick ? ' hm-map__path--interactive' : '') + (p.className ? ' ' + p.className : '')"
|
|
3013
|
+
[style.stroke]="p.stroke"
|
|
3014
|
+
[style.fill]="p.fill"
|
|
3015
|
+
[style.stroke-width.px]="p.weight"
|
|
3016
|
+
[style.stroke-opacity]="p.opacity"
|
|
3017
|
+
[style.fill-opacity]="p.fillOpacity"
|
|
3018
|
+
[style.stroke-dasharray]="p.dashArray"
|
|
3019
|
+
(click)="p.onClick?.()"
|
|
3020
|
+
/>
|
|
3021
|
+
}
|
|
3022
|
+
</svg>
|
|
3023
|
+
<div class="hm-map__markers"><ng-content select="hm-map-marker, hm-map-cluster, hm-map-route" /></div>
|
|
3024
|
+
<div class="hm-map__popups"><ng-content select="hm-map-popup" /></div>
|
|
3025
|
+
@if (tooltip(); as tip) {
|
|
3026
|
+
<div class="hm-map__tooltip" aria-hidden="true" [style.transform]="'translate3d(' + tip.at.x + 'px, ' + tip.at.y + 'px, 0)'">
|
|
3027
|
+
<div class="hm-map__tooltip-box">
|
|
3028
|
+
<span class="hm-map__tooltip-title">{{ tip.title }}</span>
|
|
3029
|
+
@if (tip.detail) {
|
|
3030
|
+
<span class="hm-map__tooltip-detail">{{ tip.detail }}</span>
|
|
3031
|
+
}
|
|
3032
|
+
</div>
|
|
3033
|
+
</div>
|
|
3034
|
+
}
|
|
3035
|
+
</div>
|
|
3036
|
+
|
|
3037
|
+
@if (zoomControl()) {
|
|
3038
|
+
<div class="hm-map__controls" role="group" data-hm-map-nodrag [attr.aria-label]="text.controls.label">
|
|
3039
|
+
<button
|
|
3040
|
+
type="button"
|
|
3041
|
+
class="hm-map__control"
|
|
3042
|
+
[attr.aria-label]="text.controls.zoomIn"
|
|
3043
|
+
[disabled]="currentZoom() >= limits().maxZoom"
|
|
3044
|
+
(click)="zoomIn()"
|
|
3045
|
+
>
|
|
3046
|
+
<hm-icon shape="plus" />
|
|
3047
|
+
</button>
|
|
3048
|
+
<button
|
|
3049
|
+
type="button"
|
|
3050
|
+
class="hm-map__control"
|
|
3051
|
+
[attr.aria-label]="text.controls.zoomOut"
|
|
3052
|
+
[disabled]="currentZoom() <= limits().minZoom"
|
|
3053
|
+
(click)="zoomOut()"
|
|
3054
|
+
>
|
|
3055
|
+
<hm-icon shape="minus" />
|
|
3056
|
+
</button>
|
|
3057
|
+
</div>
|
|
3058
|
+
}
|
|
3059
|
+
|
|
3060
|
+
@if (panels().length) {
|
|
3061
|
+
<div class="hm-map__panels" data-hm-map-nodrag>
|
|
3062
|
+
@for (panel of panels(); track panel.id) {
|
|
3063
|
+
<div class="hm-map__panel">
|
|
3064
|
+
@if (panel.legend) {
|
|
3065
|
+
<hm-legend class="hm-map__legend" marker="square" [items]="panel.legend" [label]="panel.legendLabel" />
|
|
3066
|
+
}
|
|
3067
|
+
@if (panel.table) {
|
|
3068
|
+
<button
|
|
3069
|
+
type="button"
|
|
3070
|
+
class="hm-map__table-toggle"
|
|
3071
|
+
[id]="panel.id + '-toggle'"
|
|
3072
|
+
[attr.aria-expanded]="openTable() === panel.id"
|
|
3073
|
+
[attr.aria-controls]="panel.id + '-table'"
|
|
3074
|
+
(click)="toggleTable(panel.id)"
|
|
3075
|
+
>
|
|
3076
|
+
{{ text.data.showTable }}
|
|
3077
|
+
</button>
|
|
3078
|
+
}
|
|
3079
|
+
</div>
|
|
3080
|
+
}
|
|
3081
|
+
</div>
|
|
3082
|
+
}
|
|
3083
|
+
|
|
3084
|
+
<div class="hm-map__footer" data-hm-map-nodrag>
|
|
3085
|
+
@if (scale()) {
|
|
3086
|
+
<div class="hm-map__scale" role="group" [attr.aria-label]="text.controls.scale">
|
|
3087
|
+
@for (bar of scaleBars(); track bar.unit) {
|
|
3088
|
+
<span class="hm-map__scale-bar" [style.width.px]="bar.width">{{ bar.label }}</span>
|
|
3089
|
+
}
|
|
3090
|
+
</div>
|
|
3091
|
+
}
|
|
3092
|
+
@if (attributionHtml()) {
|
|
3093
|
+
<div class="hm-map__attribution" role="note" [attr.aria-label]="text.map.attribution" [innerHTML]="attributionHtml()"></div>
|
|
3094
|
+
}
|
|
3095
|
+
</div>
|
|
3096
|
+
|
|
3097
|
+
<p class="hm-map__sr-only" [id]="helpId">{{ text.map.instructions }}</p>
|
|
3098
|
+
<div class="hm-map__sr-only" aria-live="polite" aria-atomic="true">{{ status() }}</div>
|
|
3099
|
+
</div>
|
|
3100
|
+
@for (panel of panels(); track panel.id) {
|
|
3101
|
+
@if (panel.table; as table) {
|
|
3102
|
+
<div
|
|
3103
|
+
class="hm-map__table"
|
|
3104
|
+
[id]="panel.id + '-table'"
|
|
3105
|
+
[class.hm-map__sr-only]="openTable() !== panel.id"
|
|
3106
|
+
[attr.role]="openTable() === panel.id ? 'region' : null"
|
|
3107
|
+
[attr.aria-label]="openTable() === panel.id ? table.caption : null"
|
|
3108
|
+
(keydown.escape)="openTable() === panel.id && closeTable(panel.id)"
|
|
3109
|
+
>
|
|
3110
|
+
@if (openTable() === panel.id) {
|
|
3111
|
+
<div class="hm-map__table-bar">
|
|
3112
|
+
<button type="button" class="hm-map__table-toggle" (click)="closeTable(panel.id)">{{ text.data.hideTable }}</button>
|
|
3113
|
+
</div>
|
|
3114
|
+
}
|
|
3115
|
+
<div class="hm-map__table-scroll" [attr.tabindex]="openTable() === panel.id ? 0 : null">
|
|
3116
|
+
<table class="hm-table hm-table--compact">
|
|
3117
|
+
<caption>{{ table.caption }}</caption>
|
|
3118
|
+
<thead>
|
|
3119
|
+
<tr>
|
|
3120
|
+
<th scope="col">{{ table.columns[0] }}</th>
|
|
3121
|
+
<th scope="col" class="hm-map__table-num">{{ table.columns[1] }}</th>
|
|
3122
|
+
</tr>
|
|
3123
|
+
</thead>
|
|
3124
|
+
<tbody>
|
|
3125
|
+
@for (row of table.rows; track row.key) {
|
|
3126
|
+
<tr>
|
|
3127
|
+
<th scope="row">{{ row.header }}</th>
|
|
3128
|
+
<td class="hm-map__table-num">{{ row.value }}</td>
|
|
3129
|
+
</tr>
|
|
3130
|
+
}
|
|
3131
|
+
</tbody>
|
|
3132
|
+
</table>
|
|
3133
|
+
</div>
|
|
3134
|
+
</div>
|
|
3135
|
+
}
|
|
3136
|
+
}
|
|
3137
|
+
<div class="hm-map__layers" hidden><ng-content /></div>
|
|
3138
3138
|
`, styles: [".hm-map{--hm-map-water: color-mix(in srgb, var(--hm-accent) 16%, var(--hm-surface-raised));--hm-map-land: color-mix(in srgb, var(--hm-text) 5%, var(--hm-surface-raised));--hm-map-land-muted: color-mix(in srgb, var(--hm-map-land) 45%, var(--hm-map-water));--hm-map-border: var(--hm-border);--hm-map-border-weight: var(--hm-border-hairline);--hm-map-region-border: var(--hm-surface-raised);--hm-map-nodata: color-mix(in srgb, var(--hm-text) 14%, var(--hm-surface-raised));--hm-map-label: var(--hm-text);--hm-map-label-halo: var(--hm-surface-raised);--hm-map-bg: var(--hm-map-water);--hm-map-path-color: var(--hm-data-categorical-1);--hm-map-path-weight: var(--hm-border-thin);--hm-map-fill-opacity: .2;--hm-map-marker-size: var(--hm-icon-xl);--hm-map-marker-color: var(--hm-accent);--hm-map-control-size: var(--hm-control-height);--hm-map-gap: var(--hm-space-sm);position:relative;display:block;overflow:hidden;aspect-ratio:16/9;border:var(--hm-border-hairline) solid var(--hm-border);border-radius:var(--hm-radius);background:var(--hm-map-bg);color:var(--hm-text);font-family:var(--hm-font-family);font-size:var(--hm-font-size-sm);isolation:isolate;contain:layout paint}.hm-map__viewport{position:absolute;inset:0;overflow:hidden;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.hm-map__viewport:focus-visible{outline:var(--hm-border-thin) solid var(--hm-focus-color);outline-offset:calc(-1 * var(--hm-border-thin))}.hm-map--dragging,.hm-map--dragging *{cursor:grabbing}.hm-map--static .hm-map__viewport{cursor:default;touch-action:auto}.hm-map__pane{position:absolute;top:0;left:0;will-change:transform}.hm-map__tiles,.hm-map__markers,.hm-map__popups{position:absolute;top:0;left:0}.hm-map__tiles{z-index:1}.hm-map__tile-level{position:absolute;top:0;left:0}.hm-map__tile{position:absolute;top:0;left:0;max-width:none;max-height:none;border:0;padding:0;margin:0;opacity:0;-webkit-user-select:none;user-select:none;pointer-events:none;image-rendering:auto;transition:opacity var(--hm-duration-standard) var(--hm-ease-standard)}.hm-map__tile--loaded{opacity:1}.hm-map__tile--error{visibility:hidden}.hm-map__overlay{position:absolute;top:0;left:0;z-index:2;overflow:visible;pointer-events:none}.hm-map__path{fill:none;stroke:var(--hm-map-path-color);stroke-width:var(--hm-map-path-weight);stroke-linecap:round;stroke-linejoin:round;fill-rule:evenodd}.hm-map__path--area,.hm-map__path--point{fill:var(--hm-map-path-color);fill-opacity:var(--hm-map-fill-opacity)}.hm-map__path--point{fill-opacity:1;stroke:var(--hm-surface-raised)}.hm-map__path--interactive{pointer-events:visiblePainted;cursor:pointer}.hm-map__markers{z-index:3}.hm-map__popups{z-index:4}.hm-map__controls{position:absolute;top:var(--hm-map-gap);left:var(--hm-map-gap);z-index:5;display:flex;flex-direction:column;border:var(--hm-border-hairline) solid var(--hm-border);border-radius:var(--hm-radius-control);background:var(--hm-surface-overlay);box-shadow:var(--hm-shadow-overlay);overflow:hidden}.hm-map__control{display:inline-flex;align-items:center;justify-content:center;width:var(--hm-map-control-size);height:var(--hm-map-control-size);padding:0;border:0;background:transparent;color:var(--hm-text);font-size:var(--hm-icon-md);cursor:pointer}.hm-map__control+.hm-map__control{border-top:var(--hm-border-hairline) solid var(--hm-border)}.hm-map__control:hover:not(:disabled){background:var(--hm-accent-subtle)}.hm-map__control:focus-visible{outline:var(--hm-border-thin) solid var(--hm-focus-color);outline-offset:calc(-1 * var(--hm-border-thin))}.hm-map__control:disabled{color:var(--hm-disabled-text);cursor:not-allowed}.hm-map__footer{position:absolute;right:0;bottom:0;left:0;z-index:5;display:flex;align-items:flex-end;justify-content:space-between;gap:var(--hm-map-gap);padding:0 0 0 var(--hm-map-gap);pointer-events:none}.hm-map__footer>*{pointer-events:auto}.hm-map__scale{display:flex;flex-direction:column;gap:var(--hm-space-xxxs);margin-bottom:var(--hm-map-gap)}.hm-map__scale-bar{box-sizing:border-box;padding:0 var(--hm-space-xxxs);border:var(--hm-border-thin) solid var(--hm-text);border-top:0;background:color-mix(in srgb,var(--hm-surface-overlay) 80%,transparent);color:var(--hm-text);font-size:var(--hm-font-size-xs);line-height:var(--hm-line-height-snug);white-space:nowrap}.hm-map__attribution{margin-left:auto;max-width:100%;padding:var(--hm-space-xxxs) var(--hm-space-xs);border-top-left-radius:var(--hm-radius-micro);background:color-mix(in srgb,var(--hm-surface-overlay) 85%,transparent);color:var(--hm-text);font-size:var(--hm-font-size-xs);line-height:var(--hm-line-height-snug);overflow-wrap:anywhere}.hm-map__attribution a{color:var(--hm-accent-strong)}.hm-map__attribution a:focus-visible{outline:var(--hm-border-thin) solid var(--hm-focus-color);outline-offset:var(--hm-border-hairline)}.hm-map__sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.hm-map__layers{display:none}.hm-map-cluster{display:contents}.hm-map-marker--clustered{display:none}.hm-map-cluster__group{position:absolute;top:0;left:0;width:0;height:0}.hm-map-cluster__button{position:absolute;display:grid;place-items:center;min-width:var(--hm-control-height);min-height:var(--hm-control-height);padding:0 var(--hm-space-nano);border:var(--hm-border-thin) solid var(--hm-surface-raised);border-radius:var(--hm-radius-pill);background:var(--hm-action);color:var(--hm-on-action);font:inherit;font-size:var(--hm-font-size-sm);font-weight:var(--hm-font-weight-bold);font-variant-numeric:tabular-nums;line-height:1;cursor:pointer;transform:translate(-50%,-50%);box-shadow:0 0 0 var(--hm-space-micro) color-mix(in srgb,var(--hm-action) 28%,transparent)}.hm-map-cluster__button--large{min-width:calc(var(--hm-control-height) * 1.25);min-height:calc(var(--hm-control-height) * 1.25)}.hm-map-cluster__button:hover{box-shadow:0 0 0 var(--hm-space-nano) color-mix(in srgb,var(--hm-action) 34%,transparent)}.hm-map-cluster__button:focus-visible{outline:var(--hm-border-thin) solid var(--hm-focus-color);outline-offset:var(--hm-space-micro)}@media(forced-colors:active){.hm-map-cluster__button{border-color:CanvasText;background:Canvas;color:LinkText;box-shadow:none;forced-color-adjust:none}.hm-map-cluster__button:focus-visible{outline-color:Highlight}}.hm-map-marker{position:absolute;top:0;left:0;width:0;height:0}.hm-map-marker__button{position:absolute;left:0;top:0;display:inline-flex;align-items:center;justify-content:center;min-width:var(--hm-map-marker-size);min-height:var(--hm-map-marker-size);padding:0;border:0;border-radius:var(--hm-radius-pill);background:transparent;color:var(--hm-map-marker-color);font-size:var(--hm-map-marker-size);line-height:1;cursor:pointer;transform:translate(-50%,-100%);filter:drop-shadow(0 0 var(--hm-border-hairline) var(--hm-surface-raised))}.hm-map-marker__button:focus-visible{outline:var(--hm-border-thin) solid var(--hm-focus-color);outline-offset:var(--hm-border-hairline)}.hm-map-marker--center .hm-map-marker__button{transform:translate(-50%,-50%)}.hm-map-marker__icon{pointer-events:none}.hm-map-marker--open{z-index:1}.hm-map-popup{position:absolute;top:0;left:0;width:0;height:0;z-index:2}.hm-map-popup--anchored{top:calc(-1 * var(--hm-map-marker-size))}.hm-map-popup__box{--hm-map-popup-tip: var(--hm-space-sm);position:absolute;bottom:var(--hm-map-popup-tip);left:0;box-sizing:border-box;width:max-content;min-width:calc(var(--hm-control-height) * 4);max-width:min(var(--hm-control-height) * 9,80vw);padding:var(--hm-space-sm) var(--hm-space-md);border:var(--hm-border-hairline) solid var(--hm-border);border-radius:var(--hm-radius);background:var(--hm-surface-overlay);color:var(--hm-text);box-shadow:var(--hm-shadow-overlay);font-size:var(--hm-font-size-sm);line-height:var(--hm-line-height-normal);transform:translate(-50%);cursor:auto;-webkit-user-select:text;user-select:text}.hm-map-popup__box:focus-visible{outline:var(--hm-border-thin) solid var(--hm-focus-color);outline-offset:var(--hm-border-hairline)}.hm-map-popup__box:after{content:\"\";position:absolute;top:100%;left:50%;width:var(--hm-map-popup-tip);height:var(--hm-map-popup-tip);border-right:var(--hm-border-hairline) solid var(--hm-border);border-bottom:var(--hm-border-hairline) solid var(--hm-border);background:var(--hm-surface-overlay);transform:translate(-50%,-50%) rotate(45deg)}.hm-map-popup__close{float:right;display:inline-flex;align-items:center;justify-content:center;width:var(--hm-control-height-dense);height:var(--hm-control-height-dense);margin:calc(-1 * var(--hm-space-xs)) calc(-1 * var(--hm-space-sm)) 0 var(--hm-space-xs);padding:0;border:0;border-radius:var(--hm-radius-control);background:transparent;color:var(--hm-muted);font-size:var(--hm-icon-md);cursor:pointer}.hm-map-popup__close:hover{background:var(--hm-accent-subtle);color:var(--hm-text)}.hm-map-popup__close:focus-visible{outline:var(--hm-border-thin) solid var(--hm-focus-color);outline-offset:calc(-1 * var(--hm-border-thin))}.hm-map-popup__content{overflow-wrap:anywhere}.hm-map__regions{position:absolute;top:0;left:0;z-index:1}.hm-map-regions{position:absolute;top:0;left:0}.hm-map-regions__svg{position:absolute;top:0;left:0;overflow:visible;pointer-events:none}.hm-map-regions__label{fill:var(--hm-map-label);stroke:var(--hm-map-label-halo);stroke-width:calc(var(--hm-border-thin) * 1.5);stroke-linejoin:round;paint-order:stroke;font-family:var(--hm-font-family);font-size:var(--hm-font-size-xs);font-weight:var(--hm-font-weight-semibold);text-anchor:middle;dominant-baseline:central;pointer-events:none}.hm-map-basemap__region{fill:var(--hm-map-land);fill-rule:evenodd;stroke:var(--hm-map-border);stroke-width:var(--hm-map-border-weight);stroke-linejoin:round}.hm-map-basemap--muted .hm-map-basemap__region{fill:var(--hm-map-land-muted)}.hm-map-choropleth__region{fill:var(--hm-map-nodata);fill-rule:evenodd;stroke:var(--hm-map-region-border);stroke-width:var(--hm-map-border-weight);stroke-linejoin:round;pointer-events:visiblePainted;outline:none}.hm-map-choropleth__region--empty{stroke:var(--hm-map-border)}.hm-map-choropleth__highlight{fill:none;stroke:var(--hm-focus-color);stroke-width:var(--hm-border-thin);stroke-linejoin:round;pointer-events:none;filter:drop-shadow(0 0 var(--hm-border-hairline) var(--hm-surface-raised)) drop-shadow(0 0 var(--hm-border-hairline) var(--hm-surface-raised))}.hm-map__tooltip{position:absolute;top:0;left:0;z-index:5;width:0;height:0;pointer-events:none}.hm-map__tooltip-box{position:absolute;bottom:var(--hm-space-xs);left:0;display:flex;flex-direction:column;width:max-content;max-width:calc(var(--hm-control-height) * 8);padding:var(--hm-space-nano) var(--hm-space-xs);border:var(--hm-border-hairline) solid var(--hm-border);border-radius:var(--hm-radius-micro);background:var(--hm-surface-overlay);color:var(--hm-text);box-shadow:var(--hm-shadow-overlay);font-size:var(--hm-font-size-xs);line-height:var(--hm-line-height-snug);transform:translate(-50%)}.hm-map__tooltip-title{font-weight:var(--hm-font-weight-semibold)}.hm-map__tooltip-detail{font-variant-numeric:tabular-nums}.hm-map__panels{position:absolute;top:var(--hm-map-gap);right:var(--hm-map-gap);z-index:5;display:flex;flex-direction:column;gap:var(--hm-space-xs);max-inline-size:min(50%,var(--hm-control-height) * 7);max-block-size:calc(100% - var(--hm-map-gap) * 2 - var(--hm-control-height));overflow:auto}.hm-map__panel{display:flex;flex-direction:column;align-items:flex-start;gap:var(--hm-space-nano);padding:var(--hm-space-nano) var(--hm-space-xs);border:var(--hm-border-hairline) solid var(--hm-border);border-radius:var(--hm-radius-control);background:color-mix(in srgb,var(--hm-surface-overlay) 92%,transparent);color:var(--hm-text);box-shadow:var(--hm-shadow-overlay);cursor:auto}.hm-map__legend .hm-legend{gap:var(--hm-space-micro)}.hm-map__legend .hm-legend__text{font-size:var(--hm-font-size-xs);font-variant-numeric:tabular-nums}.hm-map__legend .hm-legend__marker{inline-size:var(--hm-space-sm);block-size:var(--hm-space-sm);margin-block-start:calc((1lh - var(--hm-space-sm)) / 2);box-shadow:inset 0 0 0 var(--hm-border-hairline) color-mix(in srgb,var(--hm-text) 25%,transparent)}.hm-map__table-toggle{display:inline-flex;align-items:center;min-block-size:var(--hm-control-height);padding:0 var(--hm-space-xs);border:var(--hm-border-hairline) solid var(--hm-border);border-radius:var(--hm-radius-control);background:var(--hm-surface-overlay);color:var(--hm-accent-strong);font:inherit;font-size:var(--hm-font-size-xs);font-weight:var(--hm-font-weight-semibold);cursor:pointer}.hm-map__table-toggle:hover{background:var(--hm-accent-subtle)}.hm-map__table-toggle:focus-visible{outline:var(--hm-border-thin) solid var(--hm-focus-color);outline-offset:var(--hm-border-hairline)}.hm-map__viewport{container-type:inline-size}@container (max-width: 480px){.hm-map__panels{top:var(--hm-space-xs);right:var(--hm-space-xs);gap:var(--hm-space-micro);max-inline-size:45%}.hm-map__panel{gap:var(--hm-space-micro);padding:var(--hm-space-micro) var(--hm-space-xs)}.hm-map__legend .hm-legend{gap:0}.hm-map__legend .hm-legend__text,.hm-map__table-toggle{font-size:var(--hm-font-size-2xs)}.hm-map__legend .hm-legend__marker{inline-size:var(--hm-space-xs);block-size:var(--hm-space-xs);margin-block-start:calc((1lh - var(--hm-space-xs)) / 2)}}.hm-map__table:not(.hm-map__sr-only){position:absolute;inset:0;z-index:6;display:flex;flex-direction:column;background:var(--hm-surface-raised);color:var(--hm-text)}.hm-map__table-bar{display:flex;justify-content:flex-end;padding:var(--hm-space-xs) var(--hm-map-gap);border-bottom:var(--hm-border-hairline) solid var(--hm-divider)}.hm-map__table:not(.hm-map__sr-only) .hm-map__table-scroll{overflow:auto}.hm-map__table-scroll{flex:1 1 auto;min-block-size:0;padding:0 var(--hm-map-gap) var(--hm-map-gap)}.hm-map__table-scroll:focus-visible{outline:var(--hm-border-thin) solid var(--hm-focus-color);outline-offset:calc(-1 * var(--hm-border-thin))}.hm-map__table-scroll table{inline-size:100%}.hm-map__table-scroll caption{padding-block:var(--hm-space-xs);color:var(--hm-muted);font-size:var(--hm-font-size-sm);text-align:start}.hm-map__table-num{text-align:end;font-variant-numeric:tabular-nums}@media(prefers-reduced-motion:reduce){.hm-map__tile{transition:none}}@media(forced-colors:active){.hm-map{border-color:CanvasText}.hm-map__viewport:focus-visible,.hm-map__control:focus-visible,.hm-map__table-toggle:focus-visible,.hm-map__table-scroll:focus-visible,.hm-map-marker__button:focus-visible,.hm-map-popup__box:focus-visible,.hm-map-popup__close:focus-visible{outline-color:Highlight}.hm-map__controls,.hm-map-popup__box,.hm-map__attribution,.hm-map__scale-bar{border:var(--hm-border-hairline) solid CanvasText;background:Canvas;color:CanvasText;forced-color-adjust:none}.hm-map__control{background:ButtonFace;color:ButtonText;forced-color-adjust:none}.hm-map__control:disabled{color:GrayText}.hm-map-marker__button{color:LinkText;forced-color-adjust:none}.hm-map__path{stroke:CanvasText!important;forced-color-adjust:none}.hm-map__path--area,.hm-map__path--point{fill:Highlight!important}.hm-map-basemap__region,.hm-map-basemap--muted .hm-map-basemap__region{fill:Canvas;stroke:CanvasText;forced-color-adjust:none}.hm-map-choropleth__region{stroke:CanvasText;forced-color-adjust:none}.hm-map-choropleth__highlight{stroke:Highlight;filter:none;forced-color-adjust:none}.hm-map-regions__label{fill:CanvasText;stroke:Canvas;forced-color-adjust:none}.hm-map__tooltip-box,.hm-map__panel,.hm-map__table-toggle{border-color:CanvasText;background:Canvas;color:CanvasText}.hm-map__legend .hm-legend__marker{forced-color-adjust:none;box-shadow:inset 0 0 0 var(--hm-border-hairline) CanvasText}}.hm-map{--hm-map-route-color: var(--hm-accent);--hm-map-route-casing: var(--hm-surface-raised);--hm-map-route-alt: var(--hm-muted);--hm-map-route-active: var(--hm-accent-strong);--hm-map-route-weight: calc(var(--hm-border-thin) * 3)}.hm-map-route{position:absolute;top:0;left:0;width:0;height:0}.hm-map-route__start{--hm-map-marker-color: var(--hm-success)}.hm-map-route__end{--hm-map-marker-color: var(--hm-danger)}.hm-map__path.hm-map-route__casing{stroke:var(--hm-map-route-casing);stroke-width:calc(var(--hm-map-route-weight) + var(--hm-border-thin) * 2)}.hm-map__path.hm-map-route__line{stroke:var(--hm-map-route-color);stroke-width:var(--hm-map-route-weight)}.hm-map__path.hm-map-route__alt{stroke:var(--hm-map-route-alt);stroke-width:var(--hm-map-route-weight);stroke-opacity:.6}.hm-map__path.hm-map-route__alt.hm-map__path--interactive:hover{stroke-opacity:.9}.hm-map__path.hm-map-route__active{stroke:var(--hm-map-route-active);stroke-width:calc(var(--hm-map-route-weight) + var(--hm-border-thin))}.hm-map__path.hm-map-route__step-point{fill:var(--hm-map-route-active);stroke:var(--hm-surface-raised);stroke-width:var(--hm-border-thin)}\n"] }]
|
|
3139
3139
|
}], ctorParameters: () => [], propDecorators: { center: [{ type: i0.Input, args: [{ isSignal: true, alias: "center", required: false }] }], zoom: [{ type: i0.Input, args: [{ isSignal: true, alias: "zoom", required: false }] }], minZoom: [{ type: i0.Input, args: [{ isSignal: true, alias: "minZoom", required: false }] }], maxZoom: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxZoom", required: false }] }], maxBounds: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxBounds", required: false }] }], bounds: [{ type: i0.Input, args: [{ isSignal: true, alias: "bounds", required: false }] }], boundsPadding: [{ type: i0.Input, args: [{ isSignal: true, alias: "boundsPadding", required: false }] }], tileUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "tileUrl", required: false }] }], subdomains: [{ type: i0.Input, args: [{ isSignal: true, alias: "subdomains", required: false }] }], maxNativeZoom: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxNativeZoom", required: false }] }], attribution: [{ type: i0.Input, args: [{ isSignal: true, alias: "attribution", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], zoomControl: [{ type: i0.Input, args: [{ isSignal: true, alias: "zoomControl", required: false }] }], scale: [{ type: i0.Input, args: [{ isSignal: true, alias: "scale", required: false }] }], scaleUnits: [{ type: i0.Input, args: [{ isSignal: true, alias: "scaleUnits", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }], scrollWheelZoom: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollWheelZoom", required: false }] }], viewChange: [{ type: i0.Output, args: ["viewChange"] }], viewportRef: [{ type: i0.ViewChild, args: ['viewport', { isSignal: true }] }], paneRef: [{ type: i0.ViewChild, args: ['pane', { isSignal: true }] }], tilesRef: [{ type: i0.ViewChild, args: ['tiles', { isSignal: true }] }] } });
|
|
3140
3140
|
/** Retângulo ampliado em `fraction` da altura/largura de cada lado, sem passar dos polos do Mercator nem de ±180°. */
|
|
@@ -3256,25 +3256,25 @@ class MapPopupComponent {
|
|
|
3256
3256
|
this.close(true);
|
|
3257
3257
|
}
|
|
3258
3258
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapPopupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3259
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: MapPopupComponent, isStandalone: true, selector: "hm-map-popup", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, closeButton: { classPropertyName: "closeButton", publicName: "closeButton", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange" }, host: { properties: { "class.hm-map-popup--anchored": "anchored", "style.transform": "transform()" }, classAttribute: "hm-map-popup" }, ngImport: i0, template: `
|
|
3260
|
-
@if (open()) {
|
|
3261
|
-
<div
|
|
3262
|
-
class="hm-map-popup__box"
|
|
3263
|
-
role="dialog"
|
|
3264
|
-
tabindex="-1"
|
|
3265
|
-
data-hm-map-nodrag
|
|
3266
|
-
[id]="boxId"
|
|
3267
|
-
[attr.aria-label]="label() || text.popup.label"
|
|
3268
|
-
(keydown.escape)="onEscape($event)"
|
|
3269
|
-
>
|
|
3270
|
-
@if (closeButton()) {
|
|
3271
|
-
<button type="button" class="hm-map-popup__close" [attr.aria-label]="text.popup.close" (click)="close(true)">
|
|
3272
|
-
<hm-icon shape="times" />
|
|
3273
|
-
</button>
|
|
3274
|
-
}
|
|
3275
|
-
<div class="hm-map-popup__content"><ng-content /></div>
|
|
3276
|
-
</div>
|
|
3277
|
-
}
|
|
3259
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: MapPopupComponent, isStandalone: true, selector: "hm-map-popup", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, closeButton: { classPropertyName: "closeButton", publicName: "closeButton", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange" }, host: { properties: { "class.hm-map-popup--anchored": "anchored", "style.transform": "transform()" }, classAttribute: "hm-map-popup" }, ngImport: i0, template: `
|
|
3260
|
+
@if (open()) {
|
|
3261
|
+
<div
|
|
3262
|
+
class="hm-map-popup__box"
|
|
3263
|
+
role="dialog"
|
|
3264
|
+
tabindex="-1"
|
|
3265
|
+
data-hm-map-nodrag
|
|
3266
|
+
[id]="boxId"
|
|
3267
|
+
[attr.aria-label]="label() || text.popup.label"
|
|
3268
|
+
(keydown.escape)="onEscape($event)"
|
|
3269
|
+
>
|
|
3270
|
+
@if (closeButton()) {
|
|
3271
|
+
<button type="button" class="hm-map-popup__close" [attr.aria-label]="text.popup.close" (click)="close(true)">
|
|
3272
|
+
<hm-icon shape="times" />
|
|
3273
|
+
</button>
|
|
3274
|
+
}
|
|
3275
|
+
<div class="hm-map-popup__content"><ng-content /></div>
|
|
3276
|
+
</div>
|
|
3277
|
+
}
|
|
3278
3278
|
`, isInline: true, dependencies: [{ kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3279
3279
|
}
|
|
3280
3280
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapPopupComponent, decorators: [{
|
|
@@ -3289,25 +3289,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
3289
3289
|
'[class.hm-map-popup--anchored]': 'anchored',
|
|
3290
3290
|
'[style.transform]': 'transform()',
|
|
3291
3291
|
},
|
|
3292
|
-
template: `
|
|
3293
|
-
@if (open()) {
|
|
3294
|
-
<div
|
|
3295
|
-
class="hm-map-popup__box"
|
|
3296
|
-
role="dialog"
|
|
3297
|
-
tabindex="-1"
|
|
3298
|
-
data-hm-map-nodrag
|
|
3299
|
-
[id]="boxId"
|
|
3300
|
-
[attr.aria-label]="label() || text.popup.label"
|
|
3301
|
-
(keydown.escape)="onEscape($event)"
|
|
3302
|
-
>
|
|
3303
|
-
@if (closeButton()) {
|
|
3304
|
-
<button type="button" class="hm-map-popup__close" [attr.aria-label]="text.popup.close" (click)="close(true)">
|
|
3305
|
-
<hm-icon shape="times" />
|
|
3306
|
-
</button>
|
|
3307
|
-
}
|
|
3308
|
-
<div class="hm-map-popup__content"><ng-content /></div>
|
|
3309
|
-
</div>
|
|
3310
|
-
}
|
|
3292
|
+
template: `
|
|
3293
|
+
@if (open()) {
|
|
3294
|
+
<div
|
|
3295
|
+
class="hm-map-popup__box"
|
|
3296
|
+
role="dialog"
|
|
3297
|
+
tabindex="-1"
|
|
3298
|
+
data-hm-map-nodrag
|
|
3299
|
+
[id]="boxId"
|
|
3300
|
+
[attr.aria-label]="label() || text.popup.label"
|
|
3301
|
+
(keydown.escape)="onEscape($event)"
|
|
3302
|
+
>
|
|
3303
|
+
@if (closeButton()) {
|
|
3304
|
+
<button type="button" class="hm-map-popup__close" [attr.aria-label]="text.popup.close" (click)="close(true)">
|
|
3305
|
+
<hm-icon shape="times" />
|
|
3306
|
+
</button>
|
|
3307
|
+
}
|
|
3308
|
+
<div class="hm-map-popup__content"><ng-content /></div>
|
|
3309
|
+
</div>
|
|
3310
|
+
}
|
|
3311
3311
|
`,
|
|
3312
3312
|
}]
|
|
3313
3313
|
}], ctorParameters: () => [], propDecorators: { position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], closeButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButton", required: false }] }] } });
|
|
@@ -3351,19 +3351,19 @@ class MapMarkerComponent {
|
|
|
3351
3351
|
this.host.nativeElement.querySelector('.hm-map-marker__button')?.focus();
|
|
3352
3352
|
}
|
|
3353
3353
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapMarkerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3354
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.24", type: MapMarkerComponent, isStandalone: true, selector: "hm-map-marker", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, anchor: { classPropertyName: "anchor", publicName: "anchor", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { markerClick: "markerClick" }, host: { properties: { "class.hm-map-marker--center": "anchor() === 'center'", "class.hm-map-marker--open": "popup()?.open()", "style.transform": "transform()", "style.--hm-map-marker-color": "color() || null", "class.hm-map-marker--clustered": "clustered()", "attr.hidden": "clustered() || null" }, classAttribute: "hm-map-marker" }, providers: [{ provide: HM_MAP_MARKER, useExisting: MapMarkerComponent }], queries: [{ propertyName: "popup", first: true, predicate: MapPopupComponent, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
3355
|
-
<button
|
|
3356
|
-
type="button"
|
|
3357
|
-
class="hm-map-marker__button"
|
|
3358
|
-
[id]="buttonId"
|
|
3359
|
-
[attr.aria-label]="label() || text.marker.label"
|
|
3360
|
-
[attr.aria-expanded]="popup() ? !!popup()!.open() : null"
|
|
3361
|
-
[attr.aria-controls]="popup()?.open() ? popup()!.boxId : null"
|
|
3362
|
-
(click)="activate()"
|
|
3363
|
-
>
|
|
3364
|
-
<ng-content><hm-icon class="hm-map-marker__icon" shape="map-marker" solid /></ng-content>
|
|
3365
|
-
</button>
|
|
3366
|
-
<ng-content select="hm-map-popup" />
|
|
3354
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.24", type: MapMarkerComponent, isStandalone: true, selector: "hm-map-marker", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, anchor: { classPropertyName: "anchor", publicName: "anchor", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { markerClick: "markerClick" }, host: { properties: { "class.hm-map-marker--center": "anchor() === 'center'", "class.hm-map-marker--open": "popup()?.open()", "style.transform": "transform()", "style.--hm-map-marker-color": "color() || null", "class.hm-map-marker--clustered": "clustered()", "attr.hidden": "clustered() || null" }, classAttribute: "hm-map-marker" }, providers: [{ provide: HM_MAP_MARKER, useExisting: MapMarkerComponent }], queries: [{ propertyName: "popup", first: true, predicate: MapPopupComponent, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
3355
|
+
<button
|
|
3356
|
+
type="button"
|
|
3357
|
+
class="hm-map-marker__button"
|
|
3358
|
+
[id]="buttonId"
|
|
3359
|
+
[attr.aria-label]="label() || text.marker.label"
|
|
3360
|
+
[attr.aria-expanded]="popup() ? !!popup()!.open() : null"
|
|
3361
|
+
[attr.aria-controls]="popup()?.open() ? popup()!.boxId : null"
|
|
3362
|
+
(click)="activate()"
|
|
3363
|
+
>
|
|
3364
|
+
<ng-content><hm-icon class="hm-map-marker__icon" shape="map-marker" solid /></ng-content>
|
|
3365
|
+
</button>
|
|
3366
|
+
<ng-content select="hm-map-popup" />
|
|
3367
3367
|
`, isInline: true, dependencies: [{ kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3368
3368
|
}
|
|
3369
3369
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapMarkerComponent, decorators: [{
|
|
@@ -3383,19 +3383,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
3383
3383
|
'[class.hm-map-marker--clustered]': 'clustered()',
|
|
3384
3384
|
'[attr.hidden]': 'clustered() || null',
|
|
3385
3385
|
},
|
|
3386
|
-
template: `
|
|
3387
|
-
<button
|
|
3388
|
-
type="button"
|
|
3389
|
-
class="hm-map-marker__button"
|
|
3390
|
-
[id]="buttonId"
|
|
3391
|
-
[attr.aria-label]="label() || text.marker.label"
|
|
3392
|
-
[attr.aria-expanded]="popup() ? !!popup()!.open() : null"
|
|
3393
|
-
[attr.aria-controls]="popup()?.open() ? popup()!.boxId : null"
|
|
3394
|
-
(click)="activate()"
|
|
3395
|
-
>
|
|
3396
|
-
<ng-content><hm-icon class="hm-map-marker__icon" shape="map-marker" solid /></ng-content>
|
|
3397
|
-
</button>
|
|
3398
|
-
<ng-content select="hm-map-popup" />
|
|
3386
|
+
template: `
|
|
3387
|
+
<button
|
|
3388
|
+
type="button"
|
|
3389
|
+
class="hm-map-marker__button"
|
|
3390
|
+
[id]="buttonId"
|
|
3391
|
+
[attr.aria-label]="label() || text.marker.label"
|
|
3392
|
+
[attr.aria-expanded]="popup() ? !!popup()!.open() : null"
|
|
3393
|
+
[attr.aria-controls]="popup()?.open() ? popup()!.boxId : null"
|
|
3394
|
+
(click)="activate()"
|
|
3395
|
+
>
|
|
3396
|
+
<ng-content><hm-icon class="hm-map-marker__icon" shape="map-marker" solid /></ng-content>
|
|
3397
|
+
</button>
|
|
3398
|
+
<ng-content select="hm-map-popup" />
|
|
3399
3399
|
`,
|
|
3400
3400
|
}]
|
|
3401
3401
|
}], propDecorators: { position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], anchor: [{ type: i0.Input, args: [{ isSignal: true, alias: "anchor", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], markerClick: [{ type: i0.Output, args: ["markerClick"] }], popup: [{ type: i0.ContentChild, args: [i0.forwardRef(() => MapPopupComponent), { isSignal: true }] }] } });
|
|
@@ -3498,22 +3498,22 @@ class MapClusterComponent {
|
|
|
3498
3498
|
});
|
|
3499
3499
|
}
|
|
3500
3500
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapClusterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3501
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: MapClusterComponent, isStandalone: true, selector: "hm-map-cluster", inputs: { radius: { classPropertyName: "radius", publicName: "radius", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, disableAtZoom: { classPropertyName: "disableAtZoom", publicName: "disableAtZoom", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clusterClick: "clusterClick" }, host: { classAttribute: "hm-map-cluster" }, queries: [{ propertyName: "markers", predicate: MapMarkerComponent, isSignal: true }], ngImport: i0, template: `
|
|
3502
|
-
<ng-content select="hm-map-marker" />
|
|
3503
|
-
@for (group of groups(); track group.key) {
|
|
3504
|
-
<div class="hm-map-cluster__group" [style.transform]="'translate3d(' + group.x + 'px, ' + group.y + 'px, 0)'">
|
|
3505
|
-
<button
|
|
3506
|
-
type="button"
|
|
3507
|
-
class="hm-map-cluster__button"
|
|
3508
|
-
[class.hm-map-cluster__button--large]="group.count >= 10"
|
|
3509
|
-
[attr.aria-label]="labelFor(group)"
|
|
3510
|
-
[attr.data-hm-cluster-members]="group.key"
|
|
3511
|
-
(click)="activate(group)"
|
|
3512
|
-
>
|
|
3513
|
-
<span aria-hidden="true">{{ group.count }}</span>
|
|
3514
|
-
</button>
|
|
3515
|
-
</div>
|
|
3516
|
-
}
|
|
3501
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: MapClusterComponent, isStandalone: true, selector: "hm-map-cluster", inputs: { radius: { classPropertyName: "radius", publicName: "radius", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, disableAtZoom: { classPropertyName: "disableAtZoom", publicName: "disableAtZoom", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clusterClick: "clusterClick" }, host: { classAttribute: "hm-map-cluster" }, queries: [{ propertyName: "markers", predicate: MapMarkerComponent, isSignal: true }], ngImport: i0, template: `
|
|
3502
|
+
<ng-content select="hm-map-marker" />
|
|
3503
|
+
@for (group of groups(); track group.key) {
|
|
3504
|
+
<div class="hm-map-cluster__group" [style.transform]="'translate3d(' + group.x + 'px, ' + group.y + 'px, 0)'">
|
|
3505
|
+
<button
|
|
3506
|
+
type="button"
|
|
3507
|
+
class="hm-map-cluster__button"
|
|
3508
|
+
[class.hm-map-cluster__button--large]="group.count >= 10"
|
|
3509
|
+
[attr.aria-label]="labelFor(group)"
|
|
3510
|
+
[attr.data-hm-cluster-members]="group.key"
|
|
3511
|
+
(click)="activate(group)"
|
|
3512
|
+
>
|
|
3513
|
+
<span aria-hidden="true">{{ group.count }}</span>
|
|
3514
|
+
</button>
|
|
3515
|
+
</div>
|
|
3516
|
+
}
|
|
3517
3517
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3518
3518
|
}
|
|
3519
3519
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapClusterComponent, decorators: [{
|
|
@@ -3523,22 +3523,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
3523
3523
|
encapsulation: ViewEncapsulation.None,
|
|
3524
3524
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3525
3525
|
host: { class: 'hm-map-cluster' },
|
|
3526
|
-
template: `
|
|
3527
|
-
<ng-content select="hm-map-marker" />
|
|
3528
|
-
@for (group of groups(); track group.key) {
|
|
3529
|
-
<div class="hm-map-cluster__group" [style.transform]="'translate3d(' + group.x + 'px, ' + group.y + 'px, 0)'">
|
|
3530
|
-
<button
|
|
3531
|
-
type="button"
|
|
3532
|
-
class="hm-map-cluster__button"
|
|
3533
|
-
[class.hm-map-cluster__button--large]="group.count >= 10"
|
|
3534
|
-
[attr.aria-label]="labelFor(group)"
|
|
3535
|
-
[attr.data-hm-cluster-members]="group.key"
|
|
3536
|
-
(click)="activate(group)"
|
|
3537
|
-
>
|
|
3538
|
-
<span aria-hidden="true">{{ group.count }}</span>
|
|
3539
|
-
</button>
|
|
3540
|
-
</div>
|
|
3541
|
-
}
|
|
3526
|
+
template: `
|
|
3527
|
+
<ng-content select="hm-map-marker" />
|
|
3528
|
+
@for (group of groups(); track group.key) {
|
|
3529
|
+
<div class="hm-map-cluster__group" [style.transform]="'translate3d(' + group.x + 'px, ' + group.y + 'px, 0)'">
|
|
3530
|
+
<button
|
|
3531
|
+
type="button"
|
|
3532
|
+
class="hm-map-cluster__button"
|
|
3533
|
+
[class.hm-map-cluster__button--large]="group.count >= 10"
|
|
3534
|
+
[attr.aria-label]="labelFor(group)"
|
|
3535
|
+
[attr.data-hm-cluster-members]="group.key"
|
|
3536
|
+
(click)="activate(group)"
|
|
3537
|
+
>
|
|
3538
|
+
<span aria-hidden="true">{{ group.count }}</span>
|
|
3539
|
+
</button>
|
|
3540
|
+
</div>
|
|
3541
|
+
}
|
|
3542
3542
|
`,
|
|
3543
3543
|
}]
|
|
3544
3544
|
}], ctorParameters: () => [], propDecorators: { radius: [{ type: i0.Input, args: [{ isSignal: true, alias: "radius", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], disableAtZoom: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableAtZoom", required: false }] }], clusterClick: [{ type: i0.Output, args: ["clusterClick"] }], markers: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => MapMarkerComponent), { isSignal: true }] }] } });
|
|
@@ -3879,17 +3879,17 @@ class MapRouteComponent {
|
|
|
3879
3879
|
});
|
|
3880
3880
|
}
|
|
3881
3881
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapRouteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3882
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: MapRouteComponent, isStandalone: true, selector: "hm-map-route", inputs: { route: { classPropertyName: "route", publicName: "route", isSignal: true, isRequired: true, transformFunction: null }, alternatives: { classPropertyName: "alternatives", publicName: "alternatives", isSignal: true, isRequired: false, transformFunction: null }, activeStep: { classPropertyName: "activeStep", publicName: "activeStep", isSignal: true, isRequired: false, transformFunction: null }, startLabel: { classPropertyName: "startLabel", publicName: "startLabel", isSignal: true, isRequired: false, transformFunction: null }, endLabel: { classPropertyName: "endLabel", publicName: "endLabel", isSignal: true, isRequired: false, transformFunction: null }, markers: { classPropertyName: "markers", publicName: "markers", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { routeSelect: "routeSelect" }, host: { classAttribute: "hm-map-route" }, ngImport: i0, template: `
|
|
3883
|
-
@if (markers()) {
|
|
3884
|
-
@if (startPoint(); as p) {
|
|
3885
|
-
<hm-map-marker class="hm-map-route__start" [position]="p" [label]="startName()" />
|
|
3886
|
-
}
|
|
3887
|
-
@if (endPoint(); as p) {
|
|
3888
|
-
<hm-map-marker class="hm-map-route__end" [position]="p" [label]="endName()">
|
|
3889
|
-
<hm-icon class="hm-map-marker__icon" shape="flag" solid />
|
|
3890
|
-
</hm-map-marker>
|
|
3891
|
-
}
|
|
3892
|
-
}
|
|
3882
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: MapRouteComponent, isStandalone: true, selector: "hm-map-route", inputs: { route: { classPropertyName: "route", publicName: "route", isSignal: true, isRequired: true, transformFunction: null }, alternatives: { classPropertyName: "alternatives", publicName: "alternatives", isSignal: true, isRequired: false, transformFunction: null }, activeStep: { classPropertyName: "activeStep", publicName: "activeStep", isSignal: true, isRequired: false, transformFunction: null }, startLabel: { classPropertyName: "startLabel", publicName: "startLabel", isSignal: true, isRequired: false, transformFunction: null }, endLabel: { classPropertyName: "endLabel", publicName: "endLabel", isSignal: true, isRequired: false, transformFunction: null }, markers: { classPropertyName: "markers", publicName: "markers", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { routeSelect: "routeSelect" }, host: { classAttribute: "hm-map-route" }, ngImport: i0, template: `
|
|
3883
|
+
@if (markers()) {
|
|
3884
|
+
@if (startPoint(); as p) {
|
|
3885
|
+
<hm-map-marker class="hm-map-route__start" [position]="p" [label]="startName()" />
|
|
3886
|
+
}
|
|
3887
|
+
@if (endPoint(); as p) {
|
|
3888
|
+
<hm-map-marker class="hm-map-route__end" [position]="p" [label]="endName()">
|
|
3889
|
+
<hm-icon class="hm-map-marker__icon" shape="flag" solid />
|
|
3890
|
+
</hm-map-marker>
|
|
3891
|
+
}
|
|
3892
|
+
}
|
|
3893
3893
|
`, isInline: true, dependencies: [{ kind: "component", type: MapMarkerComponent, selector: "hm-map-marker", inputs: ["position", "label", "anchor", "color"], outputs: ["markerClick"] }, { kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
3894
3894
|
}
|
|
3895
3895
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapRouteComponent, decorators: [{
|
|
@@ -3900,17 +3900,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
3900
3900
|
encapsulation: ViewEncapsulation.None,
|
|
3901
3901
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3902
3902
|
host: { class: 'hm-map-route' },
|
|
3903
|
-
template: `
|
|
3904
|
-
@if (markers()) {
|
|
3905
|
-
@if (startPoint(); as p) {
|
|
3906
|
-
<hm-map-marker class="hm-map-route__start" [position]="p" [label]="startName()" />
|
|
3907
|
-
}
|
|
3908
|
-
@if (endPoint(); as p) {
|
|
3909
|
-
<hm-map-marker class="hm-map-route__end" [position]="p" [label]="endName()">
|
|
3910
|
-
<hm-icon class="hm-map-marker__icon" shape="flag" solid />
|
|
3911
|
-
</hm-map-marker>
|
|
3912
|
-
}
|
|
3913
|
-
}
|
|
3903
|
+
template: `
|
|
3904
|
+
@if (markers()) {
|
|
3905
|
+
@if (startPoint(); as p) {
|
|
3906
|
+
<hm-map-marker class="hm-map-route__start" [position]="p" [label]="startName()" />
|
|
3907
|
+
}
|
|
3908
|
+
@if (endPoint(); as p) {
|
|
3909
|
+
<hm-map-marker class="hm-map-route__end" [position]="p" [label]="endName()">
|
|
3910
|
+
<hm-icon class="hm-map-marker__icon" shape="flag" solid />
|
|
3911
|
+
</hm-map-marker>
|
|
3912
|
+
}
|
|
3913
|
+
}
|
|
3914
3914
|
`,
|
|
3915
3915
|
}]
|
|
3916
3916
|
}], ctorParameters: () => [], propDecorators: { route: [{ type: i0.Input, args: [{ isSignal: true, alias: "route", required: true }] }], alternatives: [{ type: i0.Input, args: [{ isSignal: true, alias: "alternatives", required: false }] }], activeStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeStep", required: false }] }], startLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "startLabel", required: false }] }], endLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "endLabel", required: false }] }], markers: [{ type: i0.Input, args: [{ isSignal: true, alias: "markers", required: false }] }], routeSelect: [{ type: i0.Output, args: ["routeSelect"] }] } });
|
|
@@ -4007,112 +4007,112 @@ class RouteDirectionsComponent {
|
|
|
4007
4007
|
this.select(next);
|
|
4008
4008
|
}
|
|
4009
4009
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: RouteDirectionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4010
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: RouteDirectionsComponent, isStandalone: true, selector: "hm-route-directions", inputs: { route: { classPropertyName: "route", publicName: "route", isSignal: true, isRequired: true, transformFunction: null }, alternatives: { classPropertyName: "alternatives", publicName: "alternatives", isSignal: true, isRequired: false, transformFunction: null }, activeStep: { classPropertyName: "activeStep", publicName: "activeStep", isSignal: true, isRequired: false, transformFunction: null }, units: { classPropertyName: "units", publicName: "units", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activeStep: "activeStepChange", routeSelect: "routeSelect" }, host: { classAttribute: "hm-route-directions" }, ngImport: i0, template: `
|
|
4011
|
-
<div class="hm-route-directions__header">
|
|
4012
|
-
<p class="hm-route-directions__title" [id]="titleId">{{ label() || route().label || text.route.directions }}</p>
|
|
4013
|
-
<p class="hm-route-directions__totals">{{ totalsText() }}</p>
|
|
4014
|
-
</div>
|
|
4015
|
-
|
|
4016
|
-
@if (options().length > 1) {
|
|
4017
|
-
<div class="hm-route-directions__options" role="group" [attr.aria-label]="text.route.alternatives">
|
|
4018
|
-
@for (option of options(); track option.id) {
|
|
4019
|
-
<button
|
|
4020
|
-
type="button"
|
|
4021
|
-
class="hm-route-directions__option"
|
|
4022
|
-
[class.hm-route-directions__option--selected]="option.selected"
|
|
4023
|
-
[attr.aria-pressed]="option.selected"
|
|
4024
|
-
[attr.aria-label]="option.name"
|
|
4025
|
-
(click)="chooseRoute(option)"
|
|
4026
|
-
>
|
|
4027
|
-
<span class="hm-route-directions__option-label">{{ option.label }}</span>
|
|
4028
|
-
<span class="hm-route-directions__option-meta" aria-hidden="true">{{ option.distance }} · {{ option.duration }}</span>
|
|
4029
|
-
</button>
|
|
4030
|
-
}
|
|
4031
|
-
</div>
|
|
4032
|
-
}
|
|
4033
|
-
|
|
4034
|
-
@if (steps().length) {
|
|
4035
|
-
<p class="hm-route-directions__sr-only" [id]="helpId">{{ text.route.stepsInstructions }}</p>
|
|
4036
|
-
<ol class="hm-route-directions__steps" [attr.aria-labelledby]="titleId" [attr.aria-describedby]="helpId" (keydown)="onKeydown($event)">
|
|
4037
|
-
@for (step of steps(); track $index) {
|
|
4038
|
-
<li class="hm-route-directions__item">
|
|
4039
|
-
<button
|
|
4040
|
-
type="button"
|
|
4041
|
-
class="hm-route-directions__step"
|
|
4042
|
-
[class.hm-route-directions__step--active]="activeStep() === $index"
|
|
4043
|
-
[attr.aria-current]="activeStep() === $index ? 'step' : null"
|
|
4044
|
-
(click)="select($index)"
|
|
4045
|
-
(focus)="select($index)"
|
|
4046
|
-
>
|
|
4047
|
-
<span class="hm-route-directions__maneuver" aria-hidden="true">
|
|
4048
|
-
<hm-icon [shape]="step.icon" [solid]="step.solid" [style.transform]="step.rotation ? 'rotate(' + step.rotation + 'deg)' : null" />
|
|
4049
|
-
</span>
|
|
4050
|
-
<span class="hm-route-directions__instruction">{{ step.instruction }}</span>
|
|
4051
|
-
@if (step.distance) {
|
|
4052
|
-
<span class="hm-route-directions__distance">{{ step.distance }}</span>
|
|
4053
|
-
}
|
|
4054
|
-
</button>
|
|
4055
|
-
</li>
|
|
4056
|
-
}
|
|
4057
|
-
</ol>
|
|
4058
|
-
} @else {
|
|
4059
|
-
<p class="hm-route-directions__empty">{{ text.route.empty }}</p>
|
|
4060
|
-
}
|
|
4010
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: RouteDirectionsComponent, isStandalone: true, selector: "hm-route-directions", inputs: { route: { classPropertyName: "route", publicName: "route", isSignal: true, isRequired: true, transformFunction: null }, alternatives: { classPropertyName: "alternatives", publicName: "alternatives", isSignal: true, isRequired: false, transformFunction: null }, activeStep: { classPropertyName: "activeStep", publicName: "activeStep", isSignal: true, isRequired: false, transformFunction: null }, units: { classPropertyName: "units", publicName: "units", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activeStep: "activeStepChange", routeSelect: "routeSelect" }, host: { classAttribute: "hm-route-directions" }, ngImport: i0, template: `
|
|
4011
|
+
<div class="hm-route-directions__header">
|
|
4012
|
+
<p class="hm-route-directions__title" [id]="titleId">{{ label() || route().label || text.route.directions }}</p>
|
|
4013
|
+
<p class="hm-route-directions__totals">{{ totalsText() }}</p>
|
|
4014
|
+
</div>
|
|
4015
|
+
|
|
4016
|
+
@if (options().length > 1) {
|
|
4017
|
+
<div class="hm-route-directions__options" role="group" [attr.aria-label]="text.route.alternatives">
|
|
4018
|
+
@for (option of options(); track option.id) {
|
|
4019
|
+
<button
|
|
4020
|
+
type="button"
|
|
4021
|
+
class="hm-route-directions__option"
|
|
4022
|
+
[class.hm-route-directions__option--selected]="option.selected"
|
|
4023
|
+
[attr.aria-pressed]="option.selected"
|
|
4024
|
+
[attr.aria-label]="option.name"
|
|
4025
|
+
(click)="chooseRoute(option)"
|
|
4026
|
+
>
|
|
4027
|
+
<span class="hm-route-directions__option-label">{{ option.label }}</span>
|
|
4028
|
+
<span class="hm-route-directions__option-meta" aria-hidden="true">{{ option.distance }} · {{ option.duration }}</span>
|
|
4029
|
+
</button>
|
|
4030
|
+
}
|
|
4031
|
+
</div>
|
|
4032
|
+
}
|
|
4033
|
+
|
|
4034
|
+
@if (steps().length) {
|
|
4035
|
+
<p class="hm-route-directions__sr-only" [id]="helpId">{{ text.route.stepsInstructions }}</p>
|
|
4036
|
+
<ol class="hm-route-directions__steps" [attr.aria-labelledby]="titleId" [attr.aria-describedby]="helpId" (keydown)="onKeydown($event)">
|
|
4037
|
+
@for (step of steps(); track $index) {
|
|
4038
|
+
<li class="hm-route-directions__item">
|
|
4039
|
+
<button
|
|
4040
|
+
type="button"
|
|
4041
|
+
class="hm-route-directions__step"
|
|
4042
|
+
[class.hm-route-directions__step--active]="activeStep() === $index"
|
|
4043
|
+
[attr.aria-current]="activeStep() === $index ? 'step' : null"
|
|
4044
|
+
(click)="select($index)"
|
|
4045
|
+
(focus)="select($index)"
|
|
4046
|
+
>
|
|
4047
|
+
<span class="hm-route-directions__maneuver" aria-hidden="true">
|
|
4048
|
+
<hm-icon [shape]="step.icon" [solid]="step.solid" [style.transform]="step.rotation ? 'rotate(' + step.rotation + 'deg)' : null" />
|
|
4049
|
+
</span>
|
|
4050
|
+
<span class="hm-route-directions__instruction">{{ step.instruction }}</span>
|
|
4051
|
+
@if (step.distance) {
|
|
4052
|
+
<span class="hm-route-directions__distance">{{ step.distance }}</span>
|
|
4053
|
+
}
|
|
4054
|
+
</button>
|
|
4055
|
+
</li>
|
|
4056
|
+
}
|
|
4057
|
+
</ol>
|
|
4058
|
+
} @else {
|
|
4059
|
+
<p class="hm-route-directions__empty">{{ text.route.empty }}</p>
|
|
4060
|
+
}
|
|
4061
4061
|
`, isInline: true, styles: [".hm-route-directions{display:flex;flex-direction:column;gap:var(--hm-space-sm);min-inline-size:0;color:var(--hm-text);font-family:var(--hm-font-family);font-size:var(--hm-font-size-sm)}.hm-route-directions__header{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:var(--hm-space-xs)}.hm-route-directions__title{margin:0;font-size:var(--hm-font-size-md);font-weight:var(--hm-font-weight-semibold);overflow-wrap:anywhere}.hm-route-directions__totals{margin:0;color:var(--hm-muted);font-variant-numeric:tabular-nums}.hm-route-directions__options{display:flex;flex-wrap:wrap;gap:var(--hm-space-xs)}.hm-route-directions__option{display:flex;flex-direction:column;align-items:flex-start;gap:var(--hm-space-nano);min-inline-size:0;min-block-size:var(--hm-control-height);padding:var(--hm-space-xs) var(--hm-space-sm);border:var(--hm-border-hairline) solid var(--hm-border);border-radius:var(--hm-radius-control);background:var(--hm-surface-raised);color:var(--hm-text);font:inherit;text-align:start;cursor:pointer}.hm-route-directions__option:hover{background:var(--hm-hover)}.hm-route-directions__option:focus-visible{outline:var(--hm-border-thin) solid var(--hm-focus-color);outline-offset:var(--hm-border-hairline)}.hm-route-directions__option--selected{border-color:var(--hm-accent);box-shadow:inset 0 0 0 var(--hm-border-hairline) var(--hm-accent)}.hm-route-directions__option-label{font-weight:var(--hm-font-weight-semibold)}.hm-route-directions__option-meta{color:var(--hm-muted);font-variant-numeric:tabular-nums}.hm-route-directions__steps{display:flex;flex-direction:column;margin:0;padding:0;list-style:none;border-block-start:var(--hm-border-hairline) solid var(--hm-border)}.hm-route-directions__item{min-inline-size:0;border-block-end:var(--hm-border-hairline) solid var(--hm-border)}.hm-route-directions__step{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:var(--hm-space-sm);inline-size:100%;min-block-size:var(--hm-control-height);padding:var(--hm-space-xs) var(--hm-space-sm);border:0;background:transparent;color:var(--hm-text);font:inherit;text-align:start;cursor:pointer}.hm-route-directions__step:hover{background:var(--hm-hover)}.hm-route-directions__step:focus-visible{outline:var(--hm-border-thin) solid var(--hm-focus-color);outline-offset:calc(-1 * var(--hm-border-thin))}.hm-route-directions__step--active{background:color-mix(in srgb,var(--hm-accent) 12%,transparent);box-shadow:inset var(--hm-border-thin) 0 0 var(--hm-accent)}.hm-route-directions__maneuver{display:inline-flex;align-items:center;justify-content:center;inline-size:var(--hm-icon-xl);block-size:var(--hm-icon-xl);border-radius:var(--hm-radius-pill);background:var(--hm-hover);color:var(--hm-accent-strong)}.hm-route-directions__maneuver hm-icon{--color: currentcolor;width:var(--hm-icon-md);height:var(--hm-icon-md)}.hm-route-directions__instruction{overflow-wrap:anywhere}.hm-route-directions__distance{color:var(--hm-muted);font-variant-numeric:tabular-nums;white-space:nowrap}.hm-route-directions__empty{margin:0;color:var(--hm-muted)}.hm-route-directions__sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4062
4062
|
}
|
|
4063
4063
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: RouteDirectionsComponent, decorators: [{
|
|
4064
4064
|
type: Component,
|
|
4065
|
-
args: [{ selector: 'hm-route-directions', imports: [IconComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'hm-route-directions' }, template: `
|
|
4066
|
-
<div class="hm-route-directions__header">
|
|
4067
|
-
<p class="hm-route-directions__title" [id]="titleId">{{ label() || route().label || text.route.directions }}</p>
|
|
4068
|
-
<p class="hm-route-directions__totals">{{ totalsText() }}</p>
|
|
4069
|
-
</div>
|
|
4070
|
-
|
|
4071
|
-
@if (options().length > 1) {
|
|
4072
|
-
<div class="hm-route-directions__options" role="group" [attr.aria-label]="text.route.alternatives">
|
|
4073
|
-
@for (option of options(); track option.id) {
|
|
4074
|
-
<button
|
|
4075
|
-
type="button"
|
|
4076
|
-
class="hm-route-directions__option"
|
|
4077
|
-
[class.hm-route-directions__option--selected]="option.selected"
|
|
4078
|
-
[attr.aria-pressed]="option.selected"
|
|
4079
|
-
[attr.aria-label]="option.name"
|
|
4080
|
-
(click)="chooseRoute(option)"
|
|
4081
|
-
>
|
|
4082
|
-
<span class="hm-route-directions__option-label">{{ option.label }}</span>
|
|
4083
|
-
<span class="hm-route-directions__option-meta" aria-hidden="true">{{ option.distance }} · {{ option.duration }}</span>
|
|
4084
|
-
</button>
|
|
4085
|
-
}
|
|
4086
|
-
</div>
|
|
4087
|
-
}
|
|
4088
|
-
|
|
4089
|
-
@if (steps().length) {
|
|
4090
|
-
<p class="hm-route-directions__sr-only" [id]="helpId">{{ text.route.stepsInstructions }}</p>
|
|
4091
|
-
<ol class="hm-route-directions__steps" [attr.aria-labelledby]="titleId" [attr.aria-describedby]="helpId" (keydown)="onKeydown($event)">
|
|
4092
|
-
@for (step of steps(); track $index) {
|
|
4093
|
-
<li class="hm-route-directions__item">
|
|
4094
|
-
<button
|
|
4095
|
-
type="button"
|
|
4096
|
-
class="hm-route-directions__step"
|
|
4097
|
-
[class.hm-route-directions__step--active]="activeStep() === $index"
|
|
4098
|
-
[attr.aria-current]="activeStep() === $index ? 'step' : null"
|
|
4099
|
-
(click)="select($index)"
|
|
4100
|
-
(focus)="select($index)"
|
|
4101
|
-
>
|
|
4102
|
-
<span class="hm-route-directions__maneuver" aria-hidden="true">
|
|
4103
|
-
<hm-icon [shape]="step.icon" [solid]="step.solid" [style.transform]="step.rotation ? 'rotate(' + step.rotation + 'deg)' : null" />
|
|
4104
|
-
</span>
|
|
4105
|
-
<span class="hm-route-directions__instruction">{{ step.instruction }}</span>
|
|
4106
|
-
@if (step.distance) {
|
|
4107
|
-
<span class="hm-route-directions__distance">{{ step.distance }}</span>
|
|
4108
|
-
}
|
|
4109
|
-
</button>
|
|
4110
|
-
</li>
|
|
4111
|
-
}
|
|
4112
|
-
</ol>
|
|
4113
|
-
} @else {
|
|
4114
|
-
<p class="hm-route-directions__empty">{{ text.route.empty }}</p>
|
|
4115
|
-
}
|
|
4065
|
+
args: [{ selector: 'hm-route-directions', imports: [IconComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'hm-route-directions' }, template: `
|
|
4066
|
+
<div class="hm-route-directions__header">
|
|
4067
|
+
<p class="hm-route-directions__title" [id]="titleId">{{ label() || route().label || text.route.directions }}</p>
|
|
4068
|
+
<p class="hm-route-directions__totals">{{ totalsText() }}</p>
|
|
4069
|
+
</div>
|
|
4070
|
+
|
|
4071
|
+
@if (options().length > 1) {
|
|
4072
|
+
<div class="hm-route-directions__options" role="group" [attr.aria-label]="text.route.alternatives">
|
|
4073
|
+
@for (option of options(); track option.id) {
|
|
4074
|
+
<button
|
|
4075
|
+
type="button"
|
|
4076
|
+
class="hm-route-directions__option"
|
|
4077
|
+
[class.hm-route-directions__option--selected]="option.selected"
|
|
4078
|
+
[attr.aria-pressed]="option.selected"
|
|
4079
|
+
[attr.aria-label]="option.name"
|
|
4080
|
+
(click)="chooseRoute(option)"
|
|
4081
|
+
>
|
|
4082
|
+
<span class="hm-route-directions__option-label">{{ option.label }}</span>
|
|
4083
|
+
<span class="hm-route-directions__option-meta" aria-hidden="true">{{ option.distance }} · {{ option.duration }}</span>
|
|
4084
|
+
</button>
|
|
4085
|
+
}
|
|
4086
|
+
</div>
|
|
4087
|
+
}
|
|
4088
|
+
|
|
4089
|
+
@if (steps().length) {
|
|
4090
|
+
<p class="hm-route-directions__sr-only" [id]="helpId">{{ text.route.stepsInstructions }}</p>
|
|
4091
|
+
<ol class="hm-route-directions__steps" [attr.aria-labelledby]="titleId" [attr.aria-describedby]="helpId" (keydown)="onKeydown($event)">
|
|
4092
|
+
@for (step of steps(); track $index) {
|
|
4093
|
+
<li class="hm-route-directions__item">
|
|
4094
|
+
<button
|
|
4095
|
+
type="button"
|
|
4096
|
+
class="hm-route-directions__step"
|
|
4097
|
+
[class.hm-route-directions__step--active]="activeStep() === $index"
|
|
4098
|
+
[attr.aria-current]="activeStep() === $index ? 'step' : null"
|
|
4099
|
+
(click)="select($index)"
|
|
4100
|
+
(focus)="select($index)"
|
|
4101
|
+
>
|
|
4102
|
+
<span class="hm-route-directions__maneuver" aria-hidden="true">
|
|
4103
|
+
<hm-icon [shape]="step.icon" [solid]="step.solid" [style.transform]="step.rotation ? 'rotate(' + step.rotation + 'deg)' : null" />
|
|
4104
|
+
</span>
|
|
4105
|
+
<span class="hm-route-directions__instruction">{{ step.instruction }}</span>
|
|
4106
|
+
@if (step.distance) {
|
|
4107
|
+
<span class="hm-route-directions__distance">{{ step.distance }}</span>
|
|
4108
|
+
}
|
|
4109
|
+
</button>
|
|
4110
|
+
</li>
|
|
4111
|
+
}
|
|
4112
|
+
</ol>
|
|
4113
|
+
} @else {
|
|
4114
|
+
<p class="hm-route-directions__empty">{{ text.route.empty }}</p>
|
|
4115
|
+
}
|
|
4116
4116
|
`, styles: [".hm-route-directions{display:flex;flex-direction:column;gap:var(--hm-space-sm);min-inline-size:0;color:var(--hm-text);font-family:var(--hm-font-family);font-size:var(--hm-font-size-sm)}.hm-route-directions__header{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:var(--hm-space-xs)}.hm-route-directions__title{margin:0;font-size:var(--hm-font-size-md);font-weight:var(--hm-font-weight-semibold);overflow-wrap:anywhere}.hm-route-directions__totals{margin:0;color:var(--hm-muted);font-variant-numeric:tabular-nums}.hm-route-directions__options{display:flex;flex-wrap:wrap;gap:var(--hm-space-xs)}.hm-route-directions__option{display:flex;flex-direction:column;align-items:flex-start;gap:var(--hm-space-nano);min-inline-size:0;min-block-size:var(--hm-control-height);padding:var(--hm-space-xs) var(--hm-space-sm);border:var(--hm-border-hairline) solid var(--hm-border);border-radius:var(--hm-radius-control);background:var(--hm-surface-raised);color:var(--hm-text);font:inherit;text-align:start;cursor:pointer}.hm-route-directions__option:hover{background:var(--hm-hover)}.hm-route-directions__option:focus-visible{outline:var(--hm-border-thin) solid var(--hm-focus-color);outline-offset:var(--hm-border-hairline)}.hm-route-directions__option--selected{border-color:var(--hm-accent);box-shadow:inset 0 0 0 var(--hm-border-hairline) var(--hm-accent)}.hm-route-directions__option-label{font-weight:var(--hm-font-weight-semibold)}.hm-route-directions__option-meta{color:var(--hm-muted);font-variant-numeric:tabular-nums}.hm-route-directions__steps{display:flex;flex-direction:column;margin:0;padding:0;list-style:none;border-block-start:var(--hm-border-hairline) solid var(--hm-border)}.hm-route-directions__item{min-inline-size:0;border-block-end:var(--hm-border-hairline) solid var(--hm-border)}.hm-route-directions__step{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:var(--hm-space-sm);inline-size:100%;min-block-size:var(--hm-control-height);padding:var(--hm-space-xs) var(--hm-space-sm);border:0;background:transparent;color:var(--hm-text);font:inherit;text-align:start;cursor:pointer}.hm-route-directions__step:hover{background:var(--hm-hover)}.hm-route-directions__step:focus-visible{outline:var(--hm-border-thin) solid var(--hm-focus-color);outline-offset:calc(-1 * var(--hm-border-thin))}.hm-route-directions__step--active{background:color-mix(in srgb,var(--hm-accent) 12%,transparent);box-shadow:inset var(--hm-border-thin) 0 0 var(--hm-accent)}.hm-route-directions__maneuver{display:inline-flex;align-items:center;justify-content:center;inline-size:var(--hm-icon-xl);block-size:var(--hm-icon-xl);border-radius:var(--hm-radius-pill);background:var(--hm-hover);color:var(--hm-accent-strong)}.hm-route-directions__maneuver hm-icon{--color: currentcolor;width:var(--hm-icon-md);height:var(--hm-icon-md)}.hm-route-directions__instruction{overflow-wrap:anywhere}.hm-route-directions__distance{color:var(--hm-muted);font-variant-numeric:tabular-nums;white-space:nowrap}.hm-route-directions__empty{margin:0;color:var(--hm-muted)}.hm-route-directions__sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}\n"] }]
|
|
4117
4117
|
}], propDecorators: { route: [{ type: i0.Input, args: [{ isSignal: true, alias: "route", required: true }] }], alternatives: [{ type: i0.Input, args: [{ isSignal: true, alias: "alternatives", required: false }] }], activeStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeStep", required: false }] }, { type: i0.Output, args: ["activeStepChange"] }], units: [{ type: i0.Input, args: [{ isSignal: true, alias: "units", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], routeSelect: [{ type: i0.Output, args: ["routeSelect"] }] } });
|
|
4118
4118
|
|
|
@@ -4193,164 +4193,164 @@ class StreetViewComponent {
|
|
|
4193
4193
|
action();
|
|
4194
4194
|
}
|
|
4195
4195
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: StreetViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4196
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: StreetViewComponent, isStandalone: true, selector: "hm-street-view", inputs: { address: { classPropertyName: "address", publicName: "address", isSignal: true, isRequired: false, transformFunction: null }, caption: { classPropertyName: "caption", publicName: "caption", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: false, transformFunction: null }, rotateStep: { classPropertyName: "rotateStep", publicName: "rotateStep", isSignal: true, isRequired: false, transformFunction: null }, attribution: { classPropertyName: "attribution", publicName: "attribution", isSignal: true, isRequired: true, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, fullscreen: { classPropertyName: "fullscreen", publicName: "fullscreen", isSignal: true, isRequired: false, transformFunction: null }, canMoveForward: { classPropertyName: "canMoveForward", publicName: "canMoveForward", isSignal: true, isRequired: false, transformFunction: null }, canMoveBackward: { classPropertyName: "canMoveBackward", publicName: "canMoveBackward", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { heading: "headingChange", move: "move", fullscreenRequest: "fullscreenRequest" }, host: { classAttribute: "hm-street-view" }, ngImport: i0, template: `
|
|
4197
|
-
@if (address() || caption()) {
|
|
4198
|
-
<div class="hm-street-view__header">
|
|
4199
|
-
@if (address()) {
|
|
4200
|
-
<p class="hm-street-view__address">{{ address() }}</p>
|
|
4201
|
-
}
|
|
4202
|
-
@if (caption()) {
|
|
4203
|
-
<p class="hm-street-view__caption">{{ caption() }}</p>
|
|
4204
|
-
}
|
|
4205
|
-
</div>
|
|
4206
|
-
}
|
|
4207
|
-
|
|
4208
|
-
<div
|
|
4209
|
-
class="hm-street-view__stage"
|
|
4210
|
-
role="region"
|
|
4211
|
-
tabindex="0"
|
|
4212
|
-
[attr.aria-roledescription]="text.streetView.roleDescription"
|
|
4213
|
-
[attr.aria-label]="label() || address() || text.streetView.label"
|
|
4214
|
-
[attr.aria-describedby]="helpId"
|
|
4215
|
-
[attr.aria-busy]="status() === 'loading' ? 'true' : null"
|
|
4216
|
-
(keydown)="onKeydown($event)"
|
|
4217
|
-
>
|
|
4218
|
-
@switch (status()) {
|
|
4219
|
-
@case ('loading') {
|
|
4220
|
-
<div class="hm-street-view__state" role="status">
|
|
4221
|
-
<hm-spinner decorative />
|
|
4222
|
-
<span>{{ text.streetView.loading }}</span>
|
|
4223
|
-
</div>
|
|
4224
|
-
}
|
|
4225
|
-
@case ('empty') {
|
|
4226
|
-
<div class="hm-street-view__state" role="status">
|
|
4227
|
-
<hm-icon class="hm-street-view__state-icon" shape="image" />
|
|
4228
|
-
<span class="hm-street-view__state-title">{{ text.streetView.noImagery }}</span>
|
|
4229
|
-
<span class="hm-street-view__state-hint">{{ text.streetView.noImageryHint }}</span>
|
|
4230
|
-
</div>
|
|
4231
|
-
}
|
|
4232
|
-
@default {
|
|
4233
|
-
<div class="hm-street-view__media"><ng-content /></div>
|
|
4234
|
-
}
|
|
4235
|
-
}
|
|
4236
|
-
|
|
4237
|
-
@if (status() === 'ready') {
|
|
4238
|
-
<div class="hm-street-view__compass" role="img" [attr.aria-label]="headingText()">
|
|
4239
|
-
<span class="hm-street-view__needle" [style.transform]="'rotate(' + -normalized() + 'deg)'" aria-hidden="true">
|
|
4240
|
-
<span class="hm-street-view__north">{{ text.streetView.north }}</span>
|
|
4241
|
-
<hm-icon shape="arrow" />
|
|
4242
|
-
</span>
|
|
4243
|
-
</div>
|
|
4244
|
-
|
|
4245
|
-
<div class="hm-street-view__controls" role="group" [attr.aria-label]="text.streetView.controls">
|
|
4246
|
-
<button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.rotateLeft" (click)="rotate(-1)">
|
|
4247
|
-
<hm-icon shape="undo" />
|
|
4248
|
-
</button>
|
|
4249
|
-
<button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.forward" [disabled]="!canMoveForward()" (click)="go('forward')">
|
|
4250
|
-
<hm-icon shape="arrow" />
|
|
4251
|
-
</button>
|
|
4252
|
-
<button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.backward" [disabled]="!canMoveBackward()" (click)="go('backward')">
|
|
4253
|
-
<hm-icon shape="arrow" direction="down" />
|
|
4254
|
-
</button>
|
|
4255
|
-
<button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.rotateRight" (click)="rotate(1)">
|
|
4256
|
-
<hm-icon shape="redo" />
|
|
4257
|
-
</button>
|
|
4258
|
-
@if (fullscreen()) {
|
|
4259
|
-
<button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.fullscreen" (click)="fullscreenRequest.emit()">
|
|
4260
|
-
<hm-icon shape="window-max" />
|
|
4261
|
-
</button>
|
|
4262
|
-
}
|
|
4263
|
-
</div>
|
|
4264
|
-
}
|
|
4265
|
-
|
|
4266
|
-
<p class="hm-street-view__sr-only" [id]="helpId">{{ text.streetView.instructions }}</p>
|
|
4267
|
-
<div class="hm-street-view__sr-only" aria-live="polite" aria-atomic="true">{{ announcement() }}</div>
|
|
4268
|
-
</div>
|
|
4269
|
-
|
|
4270
|
-
@if (attribution()) {
|
|
4271
|
-
<div class="hm-street-view__attribution" role="note" [attr.aria-label]="text.streetView.attribution" [innerHTML]="attribution()"></div>
|
|
4272
|
-
}
|
|
4196
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: StreetViewComponent, isStandalone: true, selector: "hm-street-view", inputs: { address: { classPropertyName: "address", publicName: "address", isSignal: true, isRequired: false, transformFunction: null }, caption: { classPropertyName: "caption", publicName: "caption", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: false, transformFunction: null }, rotateStep: { classPropertyName: "rotateStep", publicName: "rotateStep", isSignal: true, isRequired: false, transformFunction: null }, attribution: { classPropertyName: "attribution", publicName: "attribution", isSignal: true, isRequired: true, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, fullscreen: { classPropertyName: "fullscreen", publicName: "fullscreen", isSignal: true, isRequired: false, transformFunction: null }, canMoveForward: { classPropertyName: "canMoveForward", publicName: "canMoveForward", isSignal: true, isRequired: false, transformFunction: null }, canMoveBackward: { classPropertyName: "canMoveBackward", publicName: "canMoveBackward", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { heading: "headingChange", move: "move", fullscreenRequest: "fullscreenRequest" }, host: { classAttribute: "hm-street-view" }, ngImport: i0, template: `
|
|
4197
|
+
@if (address() || caption()) {
|
|
4198
|
+
<div class="hm-street-view__header">
|
|
4199
|
+
@if (address()) {
|
|
4200
|
+
<p class="hm-street-view__address">{{ address() }}</p>
|
|
4201
|
+
}
|
|
4202
|
+
@if (caption()) {
|
|
4203
|
+
<p class="hm-street-view__caption">{{ caption() }}</p>
|
|
4204
|
+
}
|
|
4205
|
+
</div>
|
|
4206
|
+
}
|
|
4207
|
+
|
|
4208
|
+
<div
|
|
4209
|
+
class="hm-street-view__stage"
|
|
4210
|
+
role="region"
|
|
4211
|
+
tabindex="0"
|
|
4212
|
+
[attr.aria-roledescription]="text.streetView.roleDescription"
|
|
4213
|
+
[attr.aria-label]="label() || address() || text.streetView.label"
|
|
4214
|
+
[attr.aria-describedby]="helpId"
|
|
4215
|
+
[attr.aria-busy]="status() === 'loading' ? 'true' : null"
|
|
4216
|
+
(keydown)="onKeydown($event)"
|
|
4217
|
+
>
|
|
4218
|
+
@switch (status()) {
|
|
4219
|
+
@case ('loading') {
|
|
4220
|
+
<div class="hm-street-view__state" role="status">
|
|
4221
|
+
<hm-spinner decorative />
|
|
4222
|
+
<span>{{ text.streetView.loading }}</span>
|
|
4223
|
+
</div>
|
|
4224
|
+
}
|
|
4225
|
+
@case ('empty') {
|
|
4226
|
+
<div class="hm-street-view__state" role="status">
|
|
4227
|
+
<hm-icon class="hm-street-view__state-icon" shape="image" />
|
|
4228
|
+
<span class="hm-street-view__state-title">{{ text.streetView.noImagery }}</span>
|
|
4229
|
+
<span class="hm-street-view__state-hint">{{ text.streetView.noImageryHint }}</span>
|
|
4230
|
+
</div>
|
|
4231
|
+
}
|
|
4232
|
+
@default {
|
|
4233
|
+
<div class="hm-street-view__media"><ng-content /></div>
|
|
4234
|
+
}
|
|
4235
|
+
}
|
|
4236
|
+
|
|
4237
|
+
@if (status() === 'ready') {
|
|
4238
|
+
<div class="hm-street-view__compass" role="img" [attr.aria-label]="headingText()">
|
|
4239
|
+
<span class="hm-street-view__needle" [style.transform]="'rotate(' + -normalized() + 'deg)'" aria-hidden="true">
|
|
4240
|
+
<span class="hm-street-view__north">{{ text.streetView.north }}</span>
|
|
4241
|
+
<hm-icon shape="arrow" />
|
|
4242
|
+
</span>
|
|
4243
|
+
</div>
|
|
4244
|
+
|
|
4245
|
+
<div class="hm-street-view__controls" role="group" [attr.aria-label]="text.streetView.controls">
|
|
4246
|
+
<button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.rotateLeft" (click)="rotate(-1)">
|
|
4247
|
+
<hm-icon shape="undo" />
|
|
4248
|
+
</button>
|
|
4249
|
+
<button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.forward" [disabled]="!canMoveForward()" (click)="go('forward')">
|
|
4250
|
+
<hm-icon shape="arrow" />
|
|
4251
|
+
</button>
|
|
4252
|
+
<button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.backward" [disabled]="!canMoveBackward()" (click)="go('backward')">
|
|
4253
|
+
<hm-icon shape="arrow" direction="down" />
|
|
4254
|
+
</button>
|
|
4255
|
+
<button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.rotateRight" (click)="rotate(1)">
|
|
4256
|
+
<hm-icon shape="redo" />
|
|
4257
|
+
</button>
|
|
4258
|
+
@if (fullscreen()) {
|
|
4259
|
+
<button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.fullscreen" (click)="fullscreenRequest.emit()">
|
|
4260
|
+
<hm-icon shape="window-max" />
|
|
4261
|
+
</button>
|
|
4262
|
+
}
|
|
4263
|
+
</div>
|
|
4264
|
+
}
|
|
4265
|
+
|
|
4266
|
+
<p class="hm-street-view__sr-only" [id]="helpId">{{ text.streetView.instructions }}</p>
|
|
4267
|
+
<div class="hm-street-view__sr-only" aria-live="polite" aria-atomic="true">{{ announcement() }}</div>
|
|
4268
|
+
</div>
|
|
4269
|
+
|
|
4270
|
+
@if (attribution()) {
|
|
4271
|
+
<div class="hm-street-view__attribution" role="note" [attr.aria-label]="text.streetView.attribution" [innerHTML]="attribution()"></div>
|
|
4272
|
+
}
|
|
4273
4273
|
`, isInline: true, styles: [".hm-street-view{display:flex;flex-direction:column;min-inline-size:0;overflow:hidden;border:var(--hm-border-hairline) solid var(--hm-border);border-radius:var(--hm-radius);background:var(--hm-surface-raised);color:var(--hm-text);font-family:var(--hm-font-family);font-size:var(--hm-font-size-sm)}.hm-street-view__header{display:flex;flex-direction:column;gap:var(--hm-space-nano);padding:var(--hm-space-sm) var(--hm-space-md);border-block-end:var(--hm-border-hairline) solid var(--hm-border)}.hm-street-view__address{margin:0;font-size:var(--hm-font-size-md);font-weight:var(--hm-font-weight-semibold);overflow-wrap:anywhere}.hm-street-view__caption{margin:0;color:var(--hm-muted)}.hm-street-view__stage{position:relative;aspect-ratio:16/9;min-block-size:0;background:color-mix(in srgb,var(--hm-text) 8%,var(--hm-surface-raised))}.hm-street-view__stage:focus-visible{outline:var(--hm-border-thin) solid var(--hm-focus-color);outline-offset:calc(-1 * var(--hm-border-thin))}.hm-street-view__media{position:absolute;inset:0}.hm-street-view__media>img,.hm-street-view__media>svg,.hm-street-view__media>canvas,.hm-street-view__media>video,.hm-street-view__media>iframe{display:block;inline-size:100%;block-size:100%;object-fit:cover;border:0}.hm-street-view__state{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--hm-space-xs);padding:var(--hm-space-md);color:var(--hm-muted);text-align:center}.hm-street-view__state-icon{--color: currentcolor;width:var(--hm-icon-xl);height:var(--hm-icon-xl)}.hm-street-view__state-title{color:var(--hm-text);font-weight:var(--hm-font-weight-semibold)}.hm-street-view__compass{position:absolute;top:var(--hm-space-sm);right:var(--hm-space-sm);display:flex;align-items:center;justify-content:center;inline-size:var(--hm-control-height-large);block-size:var(--hm-control-height-large);border:var(--hm-border-hairline) solid var(--hm-border);border-radius:var(--hm-radius-pill);background:var(--hm-surface-raised);box-shadow:var(--hm-shadow-lg)}.hm-street-view__needle{position:relative;display:flex;flex-direction:column;align-items:center;color:var(--hm-danger);line-height:1;transition:transform var(--hm-duration-standard) var(--hm-ease-standard)}.hm-street-view__needle hm-icon{--color: currentcolor;width:var(--hm-icon-md);height:var(--hm-icon-md)}.hm-street-view__north{font-size:var(--hm-font-size-2xs);font-weight:var(--hm-font-weight-bold);color:var(--hm-text)}.hm-street-view__controls{position:absolute;bottom:var(--hm-space-sm);left:50%;display:flex;gap:var(--hm-space-xxxs);padding:var(--hm-space-xxxs);border:var(--hm-border-hairline) solid var(--hm-border);border-radius:var(--hm-radius-pill);background:var(--hm-surface-raised);box-shadow:var(--hm-shadow-lg);transform:translate(-50%)}.hm-street-view__control{display:inline-flex;align-items:center;justify-content:center;inline-size:var(--hm-control-height);block-size:var(--hm-control-height);padding:0;border:0;border-radius:var(--hm-radius-pill);background:transparent;color:var(--hm-text);cursor:pointer}.hm-street-view__control:hover:not(:disabled){background:var(--hm-hover)}.hm-street-view__control:focus-visible{outline:var(--hm-border-thin) solid var(--hm-focus-color);outline-offset:var(--hm-border-hairline)}.hm-street-view__control:disabled{color:var(--hm-muted);cursor:not-allowed}.hm-street-view__control hm-icon{--color: currentcolor;width:var(--hm-icon-md);height:var(--hm-icon-md)}.hm-street-view__attribution{padding:var(--hm-space-xxxs) var(--hm-space-sm);border-block-start:var(--hm-border-hairline) solid var(--hm-border);color:var(--hm-muted);font-size:var(--hm-font-size-xs);text-align:end}.hm-street-view__attribution a{color:var(--hm-accent-strong)}.hm-street-view__attribution a:focus-visible{outline:var(--hm-border-thin) solid var(--hm-focus-color);outline-offset:var(--hm-border-hairline)}.hm-street-view__sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}@media(prefers-reduced-motion:reduce){.hm-street-view__needle{transition:none}}\n"], dependencies: [{ kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }, { kind: "component", type: SpinnerComponent, selector: "hm-spinner", inputs: ["size", "inverse", "label", "labelVisible", "decorative", "done", "doneLabel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4274
4274
|
}
|
|
4275
4275
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: StreetViewComponent, decorators: [{
|
|
4276
4276
|
type: Component,
|
|
4277
|
-
args: [{ selector: 'hm-street-view', imports: [IconComponent, SpinnerComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'hm-street-view' }, template: `
|
|
4278
|
-
@if (address() || caption()) {
|
|
4279
|
-
<div class="hm-street-view__header">
|
|
4280
|
-
@if (address()) {
|
|
4281
|
-
<p class="hm-street-view__address">{{ address() }}</p>
|
|
4282
|
-
}
|
|
4283
|
-
@if (caption()) {
|
|
4284
|
-
<p class="hm-street-view__caption">{{ caption() }}</p>
|
|
4285
|
-
}
|
|
4286
|
-
</div>
|
|
4287
|
-
}
|
|
4288
|
-
|
|
4289
|
-
<div
|
|
4290
|
-
class="hm-street-view__stage"
|
|
4291
|
-
role="region"
|
|
4292
|
-
tabindex="0"
|
|
4293
|
-
[attr.aria-roledescription]="text.streetView.roleDescription"
|
|
4294
|
-
[attr.aria-label]="label() || address() || text.streetView.label"
|
|
4295
|
-
[attr.aria-describedby]="helpId"
|
|
4296
|
-
[attr.aria-busy]="status() === 'loading' ? 'true' : null"
|
|
4297
|
-
(keydown)="onKeydown($event)"
|
|
4298
|
-
>
|
|
4299
|
-
@switch (status()) {
|
|
4300
|
-
@case ('loading') {
|
|
4301
|
-
<div class="hm-street-view__state" role="status">
|
|
4302
|
-
<hm-spinner decorative />
|
|
4303
|
-
<span>{{ text.streetView.loading }}</span>
|
|
4304
|
-
</div>
|
|
4305
|
-
}
|
|
4306
|
-
@case ('empty') {
|
|
4307
|
-
<div class="hm-street-view__state" role="status">
|
|
4308
|
-
<hm-icon class="hm-street-view__state-icon" shape="image" />
|
|
4309
|
-
<span class="hm-street-view__state-title">{{ text.streetView.noImagery }}</span>
|
|
4310
|
-
<span class="hm-street-view__state-hint">{{ text.streetView.noImageryHint }}</span>
|
|
4311
|
-
</div>
|
|
4312
|
-
}
|
|
4313
|
-
@default {
|
|
4314
|
-
<div class="hm-street-view__media"><ng-content /></div>
|
|
4315
|
-
}
|
|
4316
|
-
}
|
|
4317
|
-
|
|
4318
|
-
@if (status() === 'ready') {
|
|
4319
|
-
<div class="hm-street-view__compass" role="img" [attr.aria-label]="headingText()">
|
|
4320
|
-
<span class="hm-street-view__needle" [style.transform]="'rotate(' + -normalized() + 'deg)'" aria-hidden="true">
|
|
4321
|
-
<span class="hm-street-view__north">{{ text.streetView.north }}</span>
|
|
4322
|
-
<hm-icon shape="arrow" />
|
|
4323
|
-
</span>
|
|
4324
|
-
</div>
|
|
4325
|
-
|
|
4326
|
-
<div class="hm-street-view__controls" role="group" [attr.aria-label]="text.streetView.controls">
|
|
4327
|
-
<button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.rotateLeft" (click)="rotate(-1)">
|
|
4328
|
-
<hm-icon shape="undo" />
|
|
4329
|
-
</button>
|
|
4330
|
-
<button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.forward" [disabled]="!canMoveForward()" (click)="go('forward')">
|
|
4331
|
-
<hm-icon shape="arrow" />
|
|
4332
|
-
</button>
|
|
4333
|
-
<button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.backward" [disabled]="!canMoveBackward()" (click)="go('backward')">
|
|
4334
|
-
<hm-icon shape="arrow" direction="down" />
|
|
4335
|
-
</button>
|
|
4336
|
-
<button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.rotateRight" (click)="rotate(1)">
|
|
4337
|
-
<hm-icon shape="redo" />
|
|
4338
|
-
</button>
|
|
4339
|
-
@if (fullscreen()) {
|
|
4340
|
-
<button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.fullscreen" (click)="fullscreenRequest.emit()">
|
|
4341
|
-
<hm-icon shape="window-max" />
|
|
4342
|
-
</button>
|
|
4343
|
-
}
|
|
4344
|
-
</div>
|
|
4345
|
-
}
|
|
4346
|
-
|
|
4347
|
-
<p class="hm-street-view__sr-only" [id]="helpId">{{ text.streetView.instructions }}</p>
|
|
4348
|
-
<div class="hm-street-view__sr-only" aria-live="polite" aria-atomic="true">{{ announcement() }}</div>
|
|
4349
|
-
</div>
|
|
4350
|
-
|
|
4351
|
-
@if (attribution()) {
|
|
4352
|
-
<div class="hm-street-view__attribution" role="note" [attr.aria-label]="text.streetView.attribution" [innerHTML]="attribution()"></div>
|
|
4353
|
-
}
|
|
4277
|
+
args: [{ selector: 'hm-street-view', imports: [IconComponent, SpinnerComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'hm-street-view' }, template: `
|
|
4278
|
+
@if (address() || caption()) {
|
|
4279
|
+
<div class="hm-street-view__header">
|
|
4280
|
+
@if (address()) {
|
|
4281
|
+
<p class="hm-street-view__address">{{ address() }}</p>
|
|
4282
|
+
}
|
|
4283
|
+
@if (caption()) {
|
|
4284
|
+
<p class="hm-street-view__caption">{{ caption() }}</p>
|
|
4285
|
+
}
|
|
4286
|
+
</div>
|
|
4287
|
+
}
|
|
4288
|
+
|
|
4289
|
+
<div
|
|
4290
|
+
class="hm-street-view__stage"
|
|
4291
|
+
role="region"
|
|
4292
|
+
tabindex="0"
|
|
4293
|
+
[attr.aria-roledescription]="text.streetView.roleDescription"
|
|
4294
|
+
[attr.aria-label]="label() || address() || text.streetView.label"
|
|
4295
|
+
[attr.aria-describedby]="helpId"
|
|
4296
|
+
[attr.aria-busy]="status() === 'loading' ? 'true' : null"
|
|
4297
|
+
(keydown)="onKeydown($event)"
|
|
4298
|
+
>
|
|
4299
|
+
@switch (status()) {
|
|
4300
|
+
@case ('loading') {
|
|
4301
|
+
<div class="hm-street-view__state" role="status">
|
|
4302
|
+
<hm-spinner decorative />
|
|
4303
|
+
<span>{{ text.streetView.loading }}</span>
|
|
4304
|
+
</div>
|
|
4305
|
+
}
|
|
4306
|
+
@case ('empty') {
|
|
4307
|
+
<div class="hm-street-view__state" role="status">
|
|
4308
|
+
<hm-icon class="hm-street-view__state-icon" shape="image" />
|
|
4309
|
+
<span class="hm-street-view__state-title">{{ text.streetView.noImagery }}</span>
|
|
4310
|
+
<span class="hm-street-view__state-hint">{{ text.streetView.noImageryHint }}</span>
|
|
4311
|
+
</div>
|
|
4312
|
+
}
|
|
4313
|
+
@default {
|
|
4314
|
+
<div class="hm-street-view__media"><ng-content /></div>
|
|
4315
|
+
}
|
|
4316
|
+
}
|
|
4317
|
+
|
|
4318
|
+
@if (status() === 'ready') {
|
|
4319
|
+
<div class="hm-street-view__compass" role="img" [attr.aria-label]="headingText()">
|
|
4320
|
+
<span class="hm-street-view__needle" [style.transform]="'rotate(' + -normalized() + 'deg)'" aria-hidden="true">
|
|
4321
|
+
<span class="hm-street-view__north">{{ text.streetView.north }}</span>
|
|
4322
|
+
<hm-icon shape="arrow" />
|
|
4323
|
+
</span>
|
|
4324
|
+
</div>
|
|
4325
|
+
|
|
4326
|
+
<div class="hm-street-view__controls" role="group" [attr.aria-label]="text.streetView.controls">
|
|
4327
|
+
<button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.rotateLeft" (click)="rotate(-1)">
|
|
4328
|
+
<hm-icon shape="undo" />
|
|
4329
|
+
</button>
|
|
4330
|
+
<button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.forward" [disabled]="!canMoveForward()" (click)="go('forward')">
|
|
4331
|
+
<hm-icon shape="arrow" />
|
|
4332
|
+
</button>
|
|
4333
|
+
<button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.backward" [disabled]="!canMoveBackward()" (click)="go('backward')">
|
|
4334
|
+
<hm-icon shape="arrow" direction="down" />
|
|
4335
|
+
</button>
|
|
4336
|
+
<button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.rotateRight" (click)="rotate(1)">
|
|
4337
|
+
<hm-icon shape="redo" />
|
|
4338
|
+
</button>
|
|
4339
|
+
@if (fullscreen()) {
|
|
4340
|
+
<button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.fullscreen" (click)="fullscreenRequest.emit()">
|
|
4341
|
+
<hm-icon shape="window-max" />
|
|
4342
|
+
</button>
|
|
4343
|
+
}
|
|
4344
|
+
</div>
|
|
4345
|
+
}
|
|
4346
|
+
|
|
4347
|
+
<p class="hm-street-view__sr-only" [id]="helpId">{{ text.streetView.instructions }}</p>
|
|
4348
|
+
<div class="hm-street-view__sr-only" aria-live="polite" aria-atomic="true">{{ announcement() }}</div>
|
|
4349
|
+
</div>
|
|
4350
|
+
|
|
4351
|
+
@if (attribution()) {
|
|
4352
|
+
<div class="hm-street-view__attribution" role="note" [attr.aria-label]="text.streetView.attribution" [innerHTML]="attribution()"></div>
|
|
4353
|
+
}
|
|
4354
4354
|
`, styles: [".hm-street-view{display:flex;flex-direction:column;min-inline-size:0;overflow:hidden;border:var(--hm-border-hairline) solid var(--hm-border);border-radius:var(--hm-radius);background:var(--hm-surface-raised);color:var(--hm-text);font-family:var(--hm-font-family);font-size:var(--hm-font-size-sm)}.hm-street-view__header{display:flex;flex-direction:column;gap:var(--hm-space-nano);padding:var(--hm-space-sm) var(--hm-space-md);border-block-end:var(--hm-border-hairline) solid var(--hm-border)}.hm-street-view__address{margin:0;font-size:var(--hm-font-size-md);font-weight:var(--hm-font-weight-semibold);overflow-wrap:anywhere}.hm-street-view__caption{margin:0;color:var(--hm-muted)}.hm-street-view__stage{position:relative;aspect-ratio:16/9;min-block-size:0;background:color-mix(in srgb,var(--hm-text) 8%,var(--hm-surface-raised))}.hm-street-view__stage:focus-visible{outline:var(--hm-border-thin) solid var(--hm-focus-color);outline-offset:calc(-1 * var(--hm-border-thin))}.hm-street-view__media{position:absolute;inset:0}.hm-street-view__media>img,.hm-street-view__media>svg,.hm-street-view__media>canvas,.hm-street-view__media>video,.hm-street-view__media>iframe{display:block;inline-size:100%;block-size:100%;object-fit:cover;border:0}.hm-street-view__state{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--hm-space-xs);padding:var(--hm-space-md);color:var(--hm-muted);text-align:center}.hm-street-view__state-icon{--color: currentcolor;width:var(--hm-icon-xl);height:var(--hm-icon-xl)}.hm-street-view__state-title{color:var(--hm-text);font-weight:var(--hm-font-weight-semibold)}.hm-street-view__compass{position:absolute;top:var(--hm-space-sm);right:var(--hm-space-sm);display:flex;align-items:center;justify-content:center;inline-size:var(--hm-control-height-large);block-size:var(--hm-control-height-large);border:var(--hm-border-hairline) solid var(--hm-border);border-radius:var(--hm-radius-pill);background:var(--hm-surface-raised);box-shadow:var(--hm-shadow-lg)}.hm-street-view__needle{position:relative;display:flex;flex-direction:column;align-items:center;color:var(--hm-danger);line-height:1;transition:transform var(--hm-duration-standard) var(--hm-ease-standard)}.hm-street-view__needle hm-icon{--color: currentcolor;width:var(--hm-icon-md);height:var(--hm-icon-md)}.hm-street-view__north{font-size:var(--hm-font-size-2xs);font-weight:var(--hm-font-weight-bold);color:var(--hm-text)}.hm-street-view__controls{position:absolute;bottom:var(--hm-space-sm);left:50%;display:flex;gap:var(--hm-space-xxxs);padding:var(--hm-space-xxxs);border:var(--hm-border-hairline) solid var(--hm-border);border-radius:var(--hm-radius-pill);background:var(--hm-surface-raised);box-shadow:var(--hm-shadow-lg);transform:translate(-50%)}.hm-street-view__control{display:inline-flex;align-items:center;justify-content:center;inline-size:var(--hm-control-height);block-size:var(--hm-control-height);padding:0;border:0;border-radius:var(--hm-radius-pill);background:transparent;color:var(--hm-text);cursor:pointer}.hm-street-view__control:hover:not(:disabled){background:var(--hm-hover)}.hm-street-view__control:focus-visible{outline:var(--hm-border-thin) solid var(--hm-focus-color);outline-offset:var(--hm-border-hairline)}.hm-street-view__control:disabled{color:var(--hm-muted);cursor:not-allowed}.hm-street-view__control hm-icon{--color: currentcolor;width:var(--hm-icon-md);height:var(--hm-icon-md)}.hm-street-view__attribution{padding:var(--hm-space-xxxs) var(--hm-space-sm);border-block-start:var(--hm-border-hairline) solid var(--hm-border);color:var(--hm-muted);font-size:var(--hm-font-size-xs);text-align:end}.hm-street-view__attribution a{color:var(--hm-accent-strong)}.hm-street-view__attribution a:focus-visible{outline:var(--hm-border-thin) solid var(--hm-focus-color);outline-offset:var(--hm-border-hairline)}.hm-street-view__sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}@media(prefers-reduced-motion:reduce){.hm-street-view__needle{transition:none}}\n"] }]
|
|
4355
4355
|
}], propDecorators: { address: [{ type: i0.Input, args: [{ isSignal: true, alias: "address", required: false }] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], heading: [{ type: i0.Input, args: [{ isSignal: true, alias: "heading", required: false }] }, { type: i0.Output, args: ["headingChange"] }], rotateStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "rotateStep", required: false }] }], attribution: [{ type: i0.Input, args: [{ isSignal: true, alias: "attribution", required: true }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], fullscreen: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullscreen", required: false }] }], canMoveForward: [{ type: i0.Input, args: [{ isSignal: true, alias: "canMoveForward", required: false }] }], canMoveBackward: [{ type: i0.Input, args: [{ isSignal: true, alias: "canMoveBackward", required: false }] }], move: [{ type: i0.Output, args: ["move"] }], fullscreenRequest: [{ type: i0.Output, args: ["fullscreenRequest"] }] } });
|
|
4356
4356
|
|
|
@@ -4477,30 +4477,30 @@ class MapBasemapComponent extends MapRegionsBase {
|
|
|
4477
4477
|
/** Terra em tom esmaecido, entre a terra e a água: para a camada de contexto (o mundo em volta do Brasil). */
|
|
4478
4478
|
muted = input(false, { ...(ngDevMode ? { debugName: "muted" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
4479
4479
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapBasemapComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4480
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: MapBasemapComponent, isStandalone: true, selector: "hm-map-basemap", inputs: { muted: { classPropertyName: "muted", publicName: "muted", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.hm-map-basemap--muted": "muted()" }, classAttribute: "hm-map-regions hm-map-basemap" }, usesInheritance: true, ngImport: i0, template: `
|
|
4481
|
-
<svg
|
|
4482
|
-
class="hm-map-regions__svg"
|
|
4483
|
-
aria-hidden="true"
|
|
4484
|
-
focusable="false"
|
|
4485
|
-
[attr.width]="map.viewSize().x"
|
|
4486
|
-
[attr.height]="map.viewSize().y"
|
|
4487
|
-
>
|
|
4488
|
-
<g class="hm-map-basemap__land">
|
|
4489
|
-
@for (p of regionPaths(); track p.region.id) {
|
|
4490
|
-
<path class="hm-map-basemap__region" [attr.d]="p.d" [attr.data-region]="p.region.id" />
|
|
4491
|
-
}
|
|
4492
|
-
</g>
|
|
4493
|
-
@if (labelItems().length) {
|
|
4494
|
-
<g class="hm-map-regions__labels">
|
|
4495
|
-
@for (l of labelItems(); track l.id) {
|
|
4496
|
-
<text class="hm-map-regions__label" [attr.x]="l.x" [attr.y]="l.y">{{ l.text }}</text>
|
|
4497
|
-
}
|
|
4498
|
-
</g>
|
|
4499
|
-
}
|
|
4500
|
-
</svg>
|
|
4501
|
-
@if (failed()) {
|
|
4502
|
-
<p class="hm-map__sr-only" role="status">{{ text.data.loadError }}</p>
|
|
4503
|
-
}
|
|
4480
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: MapBasemapComponent, isStandalone: true, selector: "hm-map-basemap", inputs: { muted: { classPropertyName: "muted", publicName: "muted", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.hm-map-basemap--muted": "muted()" }, classAttribute: "hm-map-regions hm-map-basemap" }, usesInheritance: true, ngImport: i0, template: `
|
|
4481
|
+
<svg
|
|
4482
|
+
class="hm-map-regions__svg"
|
|
4483
|
+
aria-hidden="true"
|
|
4484
|
+
focusable="false"
|
|
4485
|
+
[attr.width]="map.viewSize().x"
|
|
4486
|
+
[attr.height]="map.viewSize().y"
|
|
4487
|
+
>
|
|
4488
|
+
<g class="hm-map-basemap__land">
|
|
4489
|
+
@for (p of regionPaths(); track p.region.id) {
|
|
4490
|
+
<path class="hm-map-basemap__region" [attr.d]="p.d" [attr.data-region]="p.region.id" />
|
|
4491
|
+
}
|
|
4492
|
+
</g>
|
|
4493
|
+
@if (labelItems().length) {
|
|
4494
|
+
<g class="hm-map-regions__labels">
|
|
4495
|
+
@for (l of labelItems(); track l.id) {
|
|
4496
|
+
<text class="hm-map-regions__label" [attr.x]="l.x" [attr.y]="l.y">{{ l.text }}</text>
|
|
4497
|
+
}
|
|
4498
|
+
</g>
|
|
4499
|
+
}
|
|
4500
|
+
</svg>
|
|
4501
|
+
@if (failed()) {
|
|
4502
|
+
<p class="hm-map__sr-only" role="status">{{ text.data.loadError }}</p>
|
|
4503
|
+
}
|
|
4504
4504
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4505
4505
|
}
|
|
4506
4506
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapBasemapComponent, decorators: [{
|
|
@@ -4510,30 +4510,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
4510
4510
|
encapsulation: ViewEncapsulation.None,
|
|
4511
4511
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4512
4512
|
host: { class: 'hm-map-regions hm-map-basemap', '[class.hm-map-basemap--muted]': 'muted()' },
|
|
4513
|
-
template: `
|
|
4514
|
-
<svg
|
|
4515
|
-
class="hm-map-regions__svg"
|
|
4516
|
-
aria-hidden="true"
|
|
4517
|
-
focusable="false"
|
|
4518
|
-
[attr.width]="map.viewSize().x"
|
|
4519
|
-
[attr.height]="map.viewSize().y"
|
|
4520
|
-
>
|
|
4521
|
-
<g class="hm-map-basemap__land">
|
|
4522
|
-
@for (p of regionPaths(); track p.region.id) {
|
|
4523
|
-
<path class="hm-map-basemap__region" [attr.d]="p.d" [attr.data-region]="p.region.id" />
|
|
4524
|
-
}
|
|
4525
|
-
</g>
|
|
4526
|
-
@if (labelItems().length) {
|
|
4527
|
-
<g class="hm-map-regions__labels">
|
|
4528
|
-
@for (l of labelItems(); track l.id) {
|
|
4529
|
-
<text class="hm-map-regions__label" [attr.x]="l.x" [attr.y]="l.y">{{ l.text }}</text>
|
|
4530
|
-
}
|
|
4531
|
-
</g>
|
|
4532
|
-
}
|
|
4533
|
-
</svg>
|
|
4534
|
-
@if (failed()) {
|
|
4535
|
-
<p class="hm-map__sr-only" role="status">{{ text.data.loadError }}</p>
|
|
4536
|
-
}
|
|
4513
|
+
template: `
|
|
4514
|
+
<svg
|
|
4515
|
+
class="hm-map-regions__svg"
|
|
4516
|
+
aria-hidden="true"
|
|
4517
|
+
focusable="false"
|
|
4518
|
+
[attr.width]="map.viewSize().x"
|
|
4519
|
+
[attr.height]="map.viewSize().y"
|
|
4520
|
+
>
|
|
4521
|
+
<g class="hm-map-basemap__land">
|
|
4522
|
+
@for (p of regionPaths(); track p.region.id) {
|
|
4523
|
+
<path class="hm-map-basemap__region" [attr.d]="p.d" [attr.data-region]="p.region.id" />
|
|
4524
|
+
}
|
|
4525
|
+
</g>
|
|
4526
|
+
@if (labelItems().length) {
|
|
4527
|
+
<g class="hm-map-regions__labels">
|
|
4528
|
+
@for (l of labelItems(); track l.id) {
|
|
4529
|
+
<text class="hm-map-regions__label" [attr.x]="l.x" [attr.y]="l.y">{{ l.text }}</text>
|
|
4530
|
+
}
|
|
4531
|
+
</g>
|
|
4532
|
+
}
|
|
4533
|
+
</svg>
|
|
4534
|
+
@if (failed()) {
|
|
4535
|
+
<p class="hm-map__sr-only" role="status">{{ text.data.loadError }}</p>
|
|
4536
|
+
}
|
|
4537
4537
|
`,
|
|
4538
4538
|
}]
|
|
4539
4539
|
}], propDecorators: { muted: [{ type: i0.Input, args: [{ isSignal: true, alias: "muted", required: false }] }] } });
|
|
@@ -4775,49 +4775,49 @@ class MapChoroplethComponent extends MapRegionsBase {
|
|
|
4775
4775
|
this.host.nativeElement.querySelectorAll('.hm-map-choropleth__region')[next]?.focus();
|
|
4776
4776
|
}
|
|
4777
4777
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapChoroplethComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4778
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: MapChoroplethComponent, isStandalone: true, selector: "hm-map-choropleth", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, joinBy: { classPropertyName: "joinBy", publicName: "joinBy", isSignal: true, isRequired: false, transformFunction: null }, valueKey: { classPropertyName: "valueKey", publicName: "valueKey", isSignal: true, isRequired: false, transformFunction: null }, scale: { classPropertyName: "scale", publicName: "scale", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, method: { classPropertyName: "method", publicName: "method", isSignal: true, isRequired: false, transformFunction: null }, domain: { classPropertyName: "domain", publicName: "domain", isSignal: true, isRequired: false, transformFunction: null }, breaks: { classPropertyName: "breaks", publicName: "breaks", isSignal: true, isRequired: false, transformFunction: null }, midpoint: { classPropertyName: "midpoint", publicName: "midpoint", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, valueLabel: { classPropertyName: "valueLabel", publicName: "valueLabel", isSignal: true, isRequired: false, transformFunction: null }, regionLabel: { classPropertyName: "regionLabel", publicName: "regionLabel", isSignal: true, isRequired: false, transformFunction: null }, legend: { classPropertyName: "legend", publicName: "legend", isSignal: true, isRequired: false, transformFunction: null }, table: { classPropertyName: "table", publicName: "table", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { regionClick: "regionClick" }, host: { classAttribute: "hm-map-regions hm-map-choropleth" }, usesInheritance: true, ngImport: i0, template: `
|
|
4779
|
-
<svg
|
|
4780
|
-
class="hm-map-regions__svg"
|
|
4781
|
-
focusable="false"
|
|
4782
|
-
role="list"
|
|
4783
|
-
[attr.aria-label]="listLabel()"
|
|
4784
|
-
[attr.aria-describedby]="uid + '-help'"
|
|
4785
|
-
[attr.width]="map.viewSize().x"
|
|
4786
|
-
[attr.height]="map.viewSize().y"
|
|
4787
|
-
>
|
|
4788
|
-
@for (p of drawn(); track p.item.region.id; let i = $index) {
|
|
4789
|
-
<path
|
|
4790
|
-
role="listitem"
|
|
4791
|
-
class="hm-map-choropleth__region"
|
|
4792
|
-
[class.hm-map-choropleth__region--empty]="!p.item.cls"
|
|
4793
|
-
[attr.d]="p.d"
|
|
4794
|
-
[style.fill]="p.item.cls?.color ?? null"
|
|
4795
|
-
[attr.tabindex]="i === tabStop() ? 0 : -1"
|
|
4796
|
-
[attr.aria-label]="p.item.label"
|
|
4797
|
-
[attr.data-region]="p.item.region.id"
|
|
4798
|
-
(focus)="onFocus(i)"
|
|
4799
|
-
(blur)="onBlur(i)"
|
|
4800
|
-
(keydown)="onKeydown($event, i)"
|
|
4801
|
-
(click)="select(i)"
|
|
4802
|
-
(pointermove)="onPointer($event, i)"
|
|
4803
|
-
(pointerleave)="onLeave(i)"
|
|
4804
|
-
/>
|
|
4805
|
-
}
|
|
4806
|
-
@if (highlight(); as d) {
|
|
4807
|
-
<path class="hm-map-choropleth__highlight" aria-hidden="true" [attr.d]="d" />
|
|
4808
|
-
}
|
|
4809
|
-
@if (labelItems().length) {
|
|
4810
|
-
<g class="hm-map-regions__labels" aria-hidden="true">
|
|
4811
|
-
@for (l of labelItems(); track l.id) {
|
|
4812
|
-
<text class="hm-map-regions__label" [attr.x]="l.x" [attr.y]="l.y">{{ l.text }}</text>
|
|
4813
|
-
}
|
|
4814
|
-
</g>
|
|
4815
|
-
}
|
|
4816
|
-
</svg>
|
|
4817
|
-
<p class="hm-map__sr-only" [id]="uid + '-help'">{{ text.data.regionsInstructions }}</p>
|
|
4818
|
-
@if (failed()) {
|
|
4819
|
-
<p class="hm-map__sr-only" role="status">{{ text.data.loadError }}</p>
|
|
4820
|
-
}
|
|
4778
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: MapChoroplethComponent, isStandalone: true, selector: "hm-map-choropleth", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, joinBy: { classPropertyName: "joinBy", publicName: "joinBy", isSignal: true, isRequired: false, transformFunction: null }, valueKey: { classPropertyName: "valueKey", publicName: "valueKey", isSignal: true, isRequired: false, transformFunction: null }, scale: { classPropertyName: "scale", publicName: "scale", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, method: { classPropertyName: "method", publicName: "method", isSignal: true, isRequired: false, transformFunction: null }, domain: { classPropertyName: "domain", publicName: "domain", isSignal: true, isRequired: false, transformFunction: null }, breaks: { classPropertyName: "breaks", publicName: "breaks", isSignal: true, isRequired: false, transformFunction: null }, midpoint: { classPropertyName: "midpoint", publicName: "midpoint", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, valueLabel: { classPropertyName: "valueLabel", publicName: "valueLabel", isSignal: true, isRequired: false, transformFunction: null }, regionLabel: { classPropertyName: "regionLabel", publicName: "regionLabel", isSignal: true, isRequired: false, transformFunction: null }, legend: { classPropertyName: "legend", publicName: "legend", isSignal: true, isRequired: false, transformFunction: null }, table: { classPropertyName: "table", publicName: "table", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { regionClick: "regionClick" }, host: { classAttribute: "hm-map-regions hm-map-choropleth" }, usesInheritance: true, ngImport: i0, template: `
|
|
4779
|
+
<svg
|
|
4780
|
+
class="hm-map-regions__svg"
|
|
4781
|
+
focusable="false"
|
|
4782
|
+
role="list"
|
|
4783
|
+
[attr.aria-label]="listLabel()"
|
|
4784
|
+
[attr.aria-describedby]="uid + '-help'"
|
|
4785
|
+
[attr.width]="map.viewSize().x"
|
|
4786
|
+
[attr.height]="map.viewSize().y"
|
|
4787
|
+
>
|
|
4788
|
+
@for (p of drawn(); track p.item.region.id; let i = $index) {
|
|
4789
|
+
<path
|
|
4790
|
+
role="listitem"
|
|
4791
|
+
class="hm-map-choropleth__region"
|
|
4792
|
+
[class.hm-map-choropleth__region--empty]="!p.item.cls"
|
|
4793
|
+
[attr.d]="p.d"
|
|
4794
|
+
[style.fill]="p.item.cls?.color ?? null"
|
|
4795
|
+
[attr.tabindex]="i === tabStop() ? 0 : -1"
|
|
4796
|
+
[attr.aria-label]="p.item.label"
|
|
4797
|
+
[attr.data-region]="p.item.region.id"
|
|
4798
|
+
(focus)="onFocus(i)"
|
|
4799
|
+
(blur)="onBlur(i)"
|
|
4800
|
+
(keydown)="onKeydown($event, i)"
|
|
4801
|
+
(click)="select(i)"
|
|
4802
|
+
(pointermove)="onPointer($event, i)"
|
|
4803
|
+
(pointerleave)="onLeave(i)"
|
|
4804
|
+
/>
|
|
4805
|
+
}
|
|
4806
|
+
@if (highlight(); as d) {
|
|
4807
|
+
<path class="hm-map-choropleth__highlight" aria-hidden="true" [attr.d]="d" />
|
|
4808
|
+
}
|
|
4809
|
+
@if (labelItems().length) {
|
|
4810
|
+
<g class="hm-map-regions__labels" aria-hidden="true">
|
|
4811
|
+
@for (l of labelItems(); track l.id) {
|
|
4812
|
+
<text class="hm-map-regions__label" [attr.x]="l.x" [attr.y]="l.y">{{ l.text }}</text>
|
|
4813
|
+
}
|
|
4814
|
+
</g>
|
|
4815
|
+
}
|
|
4816
|
+
</svg>
|
|
4817
|
+
<p class="hm-map__sr-only" [id]="uid + '-help'">{{ text.data.regionsInstructions }}</p>
|
|
4818
|
+
@if (failed()) {
|
|
4819
|
+
<p class="hm-map__sr-only" role="status">{{ text.data.loadError }}</p>
|
|
4820
|
+
}
|
|
4821
4821
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4822
4822
|
}
|
|
4823
4823
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapChoroplethComponent, decorators: [{
|
|
@@ -4827,49 +4827,49 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
4827
4827
|
encapsulation: ViewEncapsulation.None,
|
|
4828
4828
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4829
4829
|
host: { class: 'hm-map-regions hm-map-choropleth' },
|
|
4830
|
-
template: `
|
|
4831
|
-
<svg
|
|
4832
|
-
class="hm-map-regions__svg"
|
|
4833
|
-
focusable="false"
|
|
4834
|
-
role="list"
|
|
4835
|
-
[attr.aria-label]="listLabel()"
|
|
4836
|
-
[attr.aria-describedby]="uid + '-help'"
|
|
4837
|
-
[attr.width]="map.viewSize().x"
|
|
4838
|
-
[attr.height]="map.viewSize().y"
|
|
4839
|
-
>
|
|
4840
|
-
@for (p of drawn(); track p.item.region.id; let i = $index) {
|
|
4841
|
-
<path
|
|
4842
|
-
role="listitem"
|
|
4843
|
-
class="hm-map-choropleth__region"
|
|
4844
|
-
[class.hm-map-choropleth__region--empty]="!p.item.cls"
|
|
4845
|
-
[attr.d]="p.d"
|
|
4846
|
-
[style.fill]="p.item.cls?.color ?? null"
|
|
4847
|
-
[attr.tabindex]="i === tabStop() ? 0 : -1"
|
|
4848
|
-
[attr.aria-label]="p.item.label"
|
|
4849
|
-
[attr.data-region]="p.item.region.id"
|
|
4850
|
-
(focus)="onFocus(i)"
|
|
4851
|
-
(blur)="onBlur(i)"
|
|
4852
|
-
(keydown)="onKeydown($event, i)"
|
|
4853
|
-
(click)="select(i)"
|
|
4854
|
-
(pointermove)="onPointer($event, i)"
|
|
4855
|
-
(pointerleave)="onLeave(i)"
|
|
4856
|
-
/>
|
|
4857
|
-
}
|
|
4858
|
-
@if (highlight(); as d) {
|
|
4859
|
-
<path class="hm-map-choropleth__highlight" aria-hidden="true" [attr.d]="d" />
|
|
4860
|
-
}
|
|
4861
|
-
@if (labelItems().length) {
|
|
4862
|
-
<g class="hm-map-regions__labels" aria-hidden="true">
|
|
4863
|
-
@for (l of labelItems(); track l.id) {
|
|
4864
|
-
<text class="hm-map-regions__label" [attr.x]="l.x" [attr.y]="l.y">{{ l.text }}</text>
|
|
4865
|
-
}
|
|
4866
|
-
</g>
|
|
4867
|
-
}
|
|
4868
|
-
</svg>
|
|
4869
|
-
<p class="hm-map__sr-only" [id]="uid + '-help'">{{ text.data.regionsInstructions }}</p>
|
|
4870
|
-
@if (failed()) {
|
|
4871
|
-
<p class="hm-map__sr-only" role="status">{{ text.data.loadError }}</p>
|
|
4872
|
-
}
|
|
4830
|
+
template: `
|
|
4831
|
+
<svg
|
|
4832
|
+
class="hm-map-regions__svg"
|
|
4833
|
+
focusable="false"
|
|
4834
|
+
role="list"
|
|
4835
|
+
[attr.aria-label]="listLabel()"
|
|
4836
|
+
[attr.aria-describedby]="uid + '-help'"
|
|
4837
|
+
[attr.width]="map.viewSize().x"
|
|
4838
|
+
[attr.height]="map.viewSize().y"
|
|
4839
|
+
>
|
|
4840
|
+
@for (p of drawn(); track p.item.region.id; let i = $index) {
|
|
4841
|
+
<path
|
|
4842
|
+
role="listitem"
|
|
4843
|
+
class="hm-map-choropleth__region"
|
|
4844
|
+
[class.hm-map-choropleth__region--empty]="!p.item.cls"
|
|
4845
|
+
[attr.d]="p.d"
|
|
4846
|
+
[style.fill]="p.item.cls?.color ?? null"
|
|
4847
|
+
[attr.tabindex]="i === tabStop() ? 0 : -1"
|
|
4848
|
+
[attr.aria-label]="p.item.label"
|
|
4849
|
+
[attr.data-region]="p.item.region.id"
|
|
4850
|
+
(focus)="onFocus(i)"
|
|
4851
|
+
(blur)="onBlur(i)"
|
|
4852
|
+
(keydown)="onKeydown($event, i)"
|
|
4853
|
+
(click)="select(i)"
|
|
4854
|
+
(pointermove)="onPointer($event, i)"
|
|
4855
|
+
(pointerleave)="onLeave(i)"
|
|
4856
|
+
/>
|
|
4857
|
+
}
|
|
4858
|
+
@if (highlight(); as d) {
|
|
4859
|
+
<path class="hm-map-choropleth__highlight" aria-hidden="true" [attr.d]="d" />
|
|
4860
|
+
}
|
|
4861
|
+
@if (labelItems().length) {
|
|
4862
|
+
<g class="hm-map-regions__labels" aria-hidden="true">
|
|
4863
|
+
@for (l of labelItems(); track l.id) {
|
|
4864
|
+
<text class="hm-map-regions__label" [attr.x]="l.x" [attr.y]="l.y">{{ l.text }}</text>
|
|
4865
|
+
}
|
|
4866
|
+
</g>
|
|
4867
|
+
}
|
|
4868
|
+
</svg>
|
|
4869
|
+
<p class="hm-map__sr-only" [id]="uid + '-help'">{{ text.data.regionsInstructions }}</p>
|
|
4870
|
+
@if (failed()) {
|
|
4871
|
+
<p class="hm-map__sr-only" role="status">{{ text.data.loadError }}</p>
|
|
4872
|
+
}
|
|
4873
4873
|
`,
|
|
4874
4874
|
}]
|
|
4875
4875
|
}], ctorParameters: () => [], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], joinBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "joinBy", required: false }] }], valueKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueKey", required: false }] }], scale: [{ type: i0.Input, args: [{ isSignal: true, alias: "scale", required: false }] }], classes: [{ type: i0.Input, args: [{ isSignal: true, alias: "classes", required: false }] }], method: [{ type: i0.Input, args: [{ isSignal: true, alias: "method", required: false }] }], domain: [{ type: i0.Input, args: [{ isSignal: true, alias: "domain", required: false }] }], breaks: [{ type: i0.Input, args: [{ isSignal: true, alias: "breaks", required: false }] }], midpoint: [{ type: i0.Input, args: [{ isSignal: true, alias: "midpoint", required: false }] }], format: [{ type: i0.Input, args: [{ isSignal: true, alias: "format", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], valueLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueLabel", required: false }] }], regionLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "regionLabel", required: false }] }], legend: [{ type: i0.Input, args: [{ isSignal: true, alias: "legend", required: false }] }], table: [{ type: i0.Input, args: [{ isSignal: true, alias: "table", required: false }] }], regionClick: [{ type: i0.Output, args: ["regionClick"] }] } });
|