@panoramax/web-viewer 4.0.3-develop-0c0d89e3 → 4.0.3-develop-ffa0bd32
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/CHANGELOG.md +5 -0
- package/build/index.js +16 -13
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/menus/MapLegend.js +9 -2
- package/src/components/menus/PictureMetadata.js +13 -3
- package/src/components/ui/widgets/Legend.js +3 -2
- package/src/translations/da.json +1 -1
- package/src/translations/de.json +1 -1
- package/src/translations/en.json +1 -1
- package/src/translations/eo.json +1 -1
- package/src/translations/fr.json +1 -1
- package/src/translations/it.json +1 -1
- package/src/translations/nl.json +1 -1
- package/src/translations/zh_Hant.json +1 -1
package/package.json
CHANGED
|
@@ -14,19 +14,26 @@ export default class MapLegend extends LitElement {
|
|
|
14
14
|
/** @private */
|
|
15
15
|
static styles = css`
|
|
16
16
|
:host {
|
|
17
|
-
font-size: 0.
|
|
17
|
+
font-size: 0.7em;
|
|
18
18
|
}
|
|
19
19
|
small {
|
|
20
20
|
font-size: 1em;
|
|
21
21
|
}
|
|
22
|
+
.maplibregl-ctrl-attrib-inner {
|
|
23
|
+
display: inline-block;
|
|
24
|
+
}
|
|
22
25
|
`;
|
|
23
26
|
|
|
24
27
|
/** @private */
|
|
25
28
|
render() {
|
|
29
|
+
/* eslint-disable indent */
|
|
26
30
|
const mapAttrib = this._parent?.map?._attribution?._innerContainer;
|
|
31
|
+
const mapLabelParts = this._parent?._t.map.map_data.split("{m}");
|
|
27
32
|
|
|
28
33
|
return html`
|
|
29
|
-
${mapAttrib && mapAttrib.innerHTML.length > 0
|
|
34
|
+
${mapAttrib && mapAttrib.innerHTML.length > 0
|
|
35
|
+
? html`${mapLabelParts.shift()}${mapAttrib}${mapLabelParts.shift()}`
|
|
36
|
+
: nothing}
|
|
30
37
|
`;
|
|
31
38
|
}
|
|
32
39
|
}
|
|
@@ -101,6 +101,14 @@ export default class PictureMetadata extends LitElement {
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
+
/** @private */
|
|
105
|
+
_onCaptureDateClick() {
|
|
106
|
+
const qsTab = this.shadowRoot.querySelector("pnx-tabs");
|
|
107
|
+
if(qsTab) {
|
|
108
|
+
qsTab.setAttribute("activeTabIndex", 1);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
104
112
|
/** @private */
|
|
105
113
|
_toTab(title, data) {
|
|
106
114
|
return html`
|
|
@@ -108,7 +116,7 @@ export default class PictureMetadata extends LitElement {
|
|
|
108
116
|
<div slot="content" class="data-blocks">
|
|
109
117
|
${data.filter(b => b).map(b => html`<div class="data-block" style=${b.style}>
|
|
110
118
|
<h5>${b.title}</h5>
|
|
111
|
-
<div style=${b.content_style}>${b.content}</div>
|
|
119
|
+
<div style=${b.content_style} @click=${b.click}>${b.content}</div>
|
|
112
120
|
</div>`)}
|
|
113
121
|
</div>
|
|
114
122
|
`;
|
|
@@ -313,9 +321,11 @@ export default class PictureMetadata extends LitElement {
|
|
|
313
321
|
// Capture date
|
|
314
322
|
this._meta?.caption?.date && {
|
|
315
323
|
title: this._parent?._t.pnx.metadata_general_date,
|
|
324
|
+
click: this._onCaptureDateClick,
|
|
325
|
+
content_style: "cursor: pointer",
|
|
316
326
|
content: html`
|
|
317
327
|
<strong>${new Intl.DateTimeFormat(lang, {timeZone: this._meta.caption.tz, dateStyle: "long"}).format(this._meta.caption.date)}</strong>
|
|
318
|
-
<br />${new Intl.DateTimeFormat(lang, {timeZone: this._meta.caption.tz, hour: "numeric",minute:"numeric"}).format(this._meta.caption.date)}
|
|
328
|
+
<br />${new Intl.DateTimeFormat(lang, {timeZone: this._meta.caption.tz, hour: "numeric",minute:"numeric", second: "numeric"}).format(this._meta.caption.date)}
|
|
319
329
|
`
|
|
320
330
|
},
|
|
321
331
|
// Camera
|
|
@@ -334,10 +344,10 @@ export default class PictureMetadata extends LitElement {
|
|
|
334
344
|
// Quality score
|
|
335
345
|
hasQualityScore && {
|
|
336
346
|
title: this._parent?._t.pnx.metadata_quality,
|
|
347
|
+
click: this._onQualityScoreClick,
|
|
337
348
|
content: html`<pnx-quality-score
|
|
338
349
|
grade=${generalGrade}
|
|
339
350
|
style="font-size: 14px; cursor: pointer"
|
|
340
|
-
@click=${this._onQualityScoreClick}
|
|
341
351
|
/>`
|
|
342
352
|
},
|
|
343
353
|
// Copy ID
|
|
@@ -46,7 +46,8 @@ export default class Legend extends LitElement {
|
|
|
46
46
|
width: 250px;
|
|
47
47
|
}
|
|
48
48
|
.presentation {
|
|
49
|
-
font-size: 0.
|
|
49
|
+
font-size: 0.85em;
|
|
50
|
+
line-height: 1em;
|
|
50
51
|
display: flex;
|
|
51
52
|
gap: 5px;
|
|
52
53
|
align-items: center;
|
|
@@ -104,7 +105,7 @@ export default class Legend extends LitElement {
|
|
|
104
105
|
</pnx-picture-legend>
|
|
105
106
|
<pnx-map-legend
|
|
106
107
|
._parent=${this._parent}
|
|
107
|
-
style=${this.focus != "map" ? "display: none": ""}
|
|
108
|
+
style=${this.focus != "map" ? "display: none": "display: block; margin-top: 5px"}
|
|
108
109
|
></pnx-map-legend>
|
|
109
110
|
</div>`;
|
|
110
111
|
}
|
package/src/translations/da.json
CHANGED
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
"thumbnail": "Miniature af billedet, der holdes",
|
|
200
200
|
"not_public": "Ikke offentligt synlig",
|
|
201
201
|
"slow_loading": "Kortet indlæses langsomt og kan virke defekt",
|
|
202
|
-
"map_data": "Kortdata:",
|
|
202
|
+
"map_data": "Kortdata: {m}",
|
|
203
203
|
"more_panoramax": "Få mere at vide om Panoramax"
|
|
204
204
|
}
|
|
205
205
|
}
|
package/src/translations/de.json
CHANGED
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
"not_public": "Nicht öffentlich sichtbar",
|
|
226
226
|
"loading": "Laden…",
|
|
227
227
|
"slow_loading": "Die Karte wird nur langsam geladen und könnte fehlerhaft erscheinen",
|
|
228
|
-
"map_data": "Kartendaten:",
|
|
228
|
+
"map_data": "Kartendaten: {m}",
|
|
229
229
|
"more_panoramax": "Mehr Infos über Panoramax"
|
|
230
230
|
},
|
|
231
231
|
"maplibre": {
|
package/src/translations/en.json
CHANGED
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
"thumbnail": "Thumbnail of hovered picture",
|
|
226
226
|
"not_public": "Not publicly visible",
|
|
227
227
|
"slow_loading": "Map is slow to load and could appear broken",
|
|
228
|
-
"map_data": "Map
|
|
228
|
+
"map_data": "Map based on {m}",
|
|
229
229
|
"more_panoramax": "Discover more about Panoramax"
|
|
230
230
|
}
|
|
231
231
|
}
|
package/src/translations/eo.json
CHANGED
package/src/translations/fr.json
CHANGED
|
@@ -223,7 +223,7 @@
|
|
|
223
223
|
"thumbnail": "Miniature de la photo survolée",
|
|
224
224
|
"not_public": "Masqué au public",
|
|
225
225
|
"slow_loading": "La carte est longue à charger et pourrait apparaître cassée",
|
|
226
|
-
"map_data": "
|
|
226
|
+
"map_data": "Carte basée sur {m}",
|
|
227
227
|
"more_panoramax": "En savoir plus sur Panoramax"
|
|
228
228
|
}
|
|
229
229
|
}
|
package/src/translations/it.json
CHANGED
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
"thumbnail": "Miniatura della foto passata con il mouse",
|
|
229
229
|
"not_public": "Non pubblicamente visibile",
|
|
230
230
|
"slow_loading": "La mappa impiega troppo tempo a caricarsi e potrebbe apparire a pezzi",
|
|
231
|
-
"map_data": "Dati cartografici:",
|
|
231
|
+
"map_data": "Dati cartografici: {m}",
|
|
232
232
|
"more_panoramax": "Per saperne di più su Panoramax"
|
|
233
233
|
}
|
|
234
234
|
}
|
package/src/translations/nl.json
CHANGED
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
"slow_loading": "De kaart laadt traag en kan er gebroken uitzien",
|
|
229
229
|
"thumbnail": "Thumbnail van de aangeduide foto",
|
|
230
230
|
"not_public": "Niet openbaar zichtbaar",
|
|
231
|
-
"map_data": "Kaartdata:",
|
|
231
|
+
"map_data": "Kaartdata: {m}",
|
|
232
232
|
"more_panoramax": "Meer weten over Panoramax"
|
|
233
233
|
}
|
|
234
234
|
}
|