@panoramax/web-viewer 5.2.0-develop-56d27b9b → 5.2.0-develop-17f52ec9

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.
@@ -9,7 +9,7 @@ import BasicStyles from "./Basic.css" with { type: "css" };
9
9
  document.adoptedStyleSheets.push(AtkinsonStyles);
10
10
  document.adoptedStyleSheets.push(BasicStyles);
11
11
 
12
- const __COMMIT_HASH__ = "56d27b9";
12
+ const __COMMIT_HASH__ = "17f52ec";
13
13
  const __PACKAGE_VERSION__ = "5.2.0";
14
14
  const __PACKAGE_ISSUES_URL__ = "https://gitlab.com/panoramax/clients/web-viewer/-/work_items";
15
15
 
@@ -172,7 +172,6 @@ export default class Basic extends LitElement {
172
172
  * @fulfil {null} When initialization is complete.
173
173
  * @reject {string} Error message
174
174
  */
175
- // eslint-disable-next-line class-methods-use-this
176
175
  onceReady() {
177
176
  throw new Error("You must override this method on sub-class");
178
177
  }
@@ -261,7 +260,6 @@ export default class Basic extends LitElement {
261
260
  * @returns {string} The class name (for example "Basic")
262
261
  * @memberof Panoramax.components.core.Basic#
263
262
  */
264
- // eslint-disable-next-line class-methods-use-this
265
263
  getClassName() {
266
264
  return "Basic";
267
265
  }
@@ -311,7 +309,6 @@ export default class Basic extends LitElement {
311
309
  }
312
310
 
313
311
  /** @private */
314
- // eslint-disable-next-line class-methods-use-this
315
312
  render() {
316
313
  return html`<p>Should not be used directly, use Viewer/CoverageMap/Editor instead</p>`;
317
314
  }
@@ -321,7 +318,6 @@ export default class Basic extends LitElement {
321
318
  * @returns {string[]} Sub-components names.
322
319
  * @memberof Panoramax.components.core.Basic#
323
320
  */
324
- // eslint-disable-next-line class-methods-use-this
325
321
  getSubComponentsNames() {
326
322
  return ["loader", "api"];
327
323
  }
@@ -107,7 +107,6 @@ export default class CoverageMap extends Basic {
107
107
  this.map?.destroy();
108
108
  }
109
109
 
110
- // eslint-disable-next-line class-methods-use-this
111
110
  getClassName() {
112
111
  return "CoverageMap";
113
112
  }
@@ -140,7 +140,6 @@ export default class Editor extends Basic {
140
140
  this.psv?.destroy();
141
141
  }
142
142
 
143
- // eslint-disable-next-line class-methods-use-this
144
143
  getClassName() {
145
144
  return "Editor";
146
145
  }
@@ -234,7 +234,6 @@ export default class PhotoViewer extends Basic {
234
234
  window.removeEventListener("keypress", this._toggleKeyboardBasedOnFocus);
235
235
  }
236
236
 
237
- // eslint-disable-next-line class-methods-use-this
238
237
  getClassName() {
239
238
  return "PhotoViewer";
240
239
  }
@@ -271,7 +271,6 @@ export default class Viewer extends PhotoViewer {
271
271
  this.map?.destroy();
272
272
  }
273
273
 
274
- // eslint-disable-next-line class-methods-use-this
275
274
  getClassName() {
276
275
  return "Viewer";
277
276
  }
@@ -208,6 +208,12 @@ export default class MapFilters extends LitElement {
208
208
  this._parent.mapStyleComposer.addEventListener("panoramax-changed", () => this._onParentFilterChange(this._parent.mapStyleComposer.panoramaxFilters));
209
209
  this._onUpdateZoomIn();
210
210
  this._onParentFilterChange(this._parent.mapStyleComposer.panoramaxFilters);
211
+ this._parent.addEventListener("menu-closed", e => {
212
+ if(e.detail.menu === this.parentNode){
213
+ const userSearch = this.shadowRoot.querySelector("#pnx-filter-search-user");
214
+ if(userSearch) { userSearch._results = null; }
215
+ }
216
+ })
211
217
  }));
212
218
  }
213
219
 
@@ -105,7 +105,6 @@ export default class PictureMetadata extends LitElement {
105
105
  }
106
106
 
107
107
  /** @private */
108
- // eslint-disable-next-line class-methods-use-this
109
108
  _toTab(title, data) {
110
109
  return html`
111
110
  <h4 slot="title">${title}</h4>
@@ -118,7 +118,6 @@ export default class SemanticsMetadata extends LitElement {
118
118
  }
119
119
 
120
120
  /** @private */
121
- // eslint-disable-next-line class-methods-use-this
122
121
  _onBrowserQuit(e) {
123
122
  e.preventDefault();
124
123
  e.returnValue = true;
@@ -112,7 +112,6 @@ export default class AnnotationsSwitch extends LitElement {
112
112
  }
113
113
 
114
114
  /** @private */
115
- // eslint-disable-next-line class-methods-use-this
116
115
  _persistAnnotationsLocalStorage(isAnnotToggled) {
117
116
  localStorage.setItem(DISABLE_ANNOTATIONS_PARAM, isAnnotToggled ? "false": "true");
118
117
  }
@@ -304,7 +304,6 @@ export default class TimeTravel extends LitElement {
304
304
  }
305
305
 
306
306
  /** @private */
307
- // eslint-disable-next-line class-methods-use-this
308
307
  _collectFromTiles(coords, map, layerId) {
309
308
  let box;
310
309
  try {
@@ -292,7 +292,7 @@
292
292
  "delete_picture_ok": "A foto foi excluída com sucesso",
293
293
  "delete_picture_error": "Ocorreu um erro ao tentar excluir a imagem:\n{e}",
294
294
  "semantics_empty": "Nenhuma etiqueta definida",
295
- "delete_picture_warn": "⚠️ Atenção: isso exclui a imagem de forma definitiva.\nTem certeza de que deseja excluir completamente esta imagem?",
295
+ "delete_picture_warn": "⚠️ Atenção: isso excluirá definitivamente esta foto.\nTem certeza de que deseja continuar?",
296
296
  "metadata_general_title": "Título",
297
297
  "time_travel_close": "Ocultar outras datas",
298
298
  "time_travel": "Ver este local em outras datas",
@@ -321,7 +321,7 @@
321
321
  "map": {
322
322
  "thumbnail": "Miniatura da imagem ao passar o cursor",
323
323
  "not_public": "Não visível publicamente",
324
- "slow_loading": "O mapa demora a carregar e pode parecer danificado",
324
+ "slow_loading": "O mapa está carregando lentamente e pode parecer com defeito",
325
325
  "map_data": "Mapa baseado em {m}",
326
326
  "more_panoramax": "Descubra mais sobre o Panoramax",
327
327
  "loading": "Carregando…"
@@ -1,4 +1,3 @@
1
- /* eslint-disable class-methods-use-this */
2
1
  import {
3
2
  MAP_FILTERS_JS2URL, alterMapState, alterPSVState, alterPhotoViewerState, alterViewerState
4
3
  } from "./InitParameters.js";
@@ -355,7 +355,6 @@ export function isInternetFast() {
355
355
  return Promise.resolve(speed >= InternetFastThreshold());
356
356
  }
357
357
  // Fallback for other browsers
358
-
359
358
  catch(e) {
360
359
  try {
361
360
  // Check if test has been done before and stored
@@ -383,7 +382,6 @@ export function isInternetFast() {
383
382
  });
384
383
  }
385
384
  // Fallback for browser blocking third-party downloads or sessionStorage
386
-
387
385
  catch(e) {
388
386
  return Promise.resolve(false);
389
387
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panoramax/web-viewer",
3
- "version": "5.2.0-develop-56d27b9b",
3
+ "version": "5.2.0-develop-17f52ec9",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "./build/cjs/index.js",
6
6
  "module": "./build/esm/index.js",