@panoramax/web-viewer 4.0.3-develop-0c0d89e3 → 4.0.3-develop-e49e7274
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 +4 -0
- package/build/index.js +6 -7
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/menus/PictureMetadata.js +13 -3
package/package.json
CHANGED
|
@@ -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
|