xv-webcomponents 1.17.25-qa.0 → 1.17.27-qa.0

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.
@@ -81576,12 +81576,13 @@ const XvGeoMap = class {
81576
81576
  async emitSelection() {
81577
81577
  var _a, _b, _c;
81578
81578
  const postalCodes = [...this.selected.keys()];
81579
+ const names = [...this.selected.values()].map(u => { var _a; return (_a = u === null || u === void 0 ? void 0 : u.name) !== null && _a !== void 0 ? _a : ''; });
81579
81580
  const unitIds = [...this.selected.values()].map(u => u.id);
81580
81581
  const seq = ++this.popSeq;
81581
81582
  // populations are already cached per PLZ (tooltips) — sum locally, emit instantly
81582
81583
  if (postalCodes.every(c => this.populations.has(c))) {
81583
81584
  const population = postalCodes.reduce((sum, c) => sum + this.populations.get(c), 0);
81584
- const selection = { postalCodes, population: postalCodes.length ? population : null, unitIds };
81585
+ const selection = { postalCodes, names, population: postalCodes.length ? population : null, unitIds };
81585
81586
  this.changeSelection.emit(selection);
81586
81587
  return selection;
81587
81588
  }
@@ -81601,7 +81602,7 @@ const XvGeoMap = class {
81601
81602
  }
81602
81603
  if (seq !== this.popSeq)
81603
81604
  return null; // a newer selection superseded this one
81604
- const selection = { postalCodes, population, unitIds };
81605
+ const selection = { postalCodes, names, population, unitIds };
81605
81606
  this.changeSelection.emit(selection);
81606
81607
  return selection;
81607
81608
  }
@@ -81676,7 +81677,7 @@ const XvGeoMap = class {
81676
81677
  this.map.fitBounds([[minX, minY], [maxX, maxY]], { padding: 48, maxZoom: 12, duration: 800 });
81677
81678
  }
81678
81679
  render() {
81679
- return (index$1.h(index$1.Host, { key: '61229149683ca630df8e596e6c3b131649f86553' }, index$1.h("div", { key: '9b05c0b5ff3fba1cc6514c452596ae5bb5f16873', class: "container" }, index$1.h("div", { key: '802fa4025f9e024d804b2ed109cadbd068ebc5a3', class: "map", ref: el => (this.mapContainer = el) }), this.ready && this.zoomGated && (index$1.h("div", { key: '09d1b50c338524057c2287b53296ea1077254636', class: "hint" }, "Reinzoomen, um PLZ-Gebiete zu laden")), !this.ready && !this.loadError && (index$1.h("div", { key: '7cb3f9150753b0e4bb3cfa4fd382ee3e23fb5c8a', class: "skeleton", "aria-busy": "true" }, index$1.h("xv-loader-v2", { key: '3c1661d1cd5f5be16171ba5abadc18066812a2df', variant: "vertical" }, "Karte wird geladen \u2026"))), this.loadError && index$1.h("div", { key: '7447c9198e50db0779ce6e347a2854d748f861a6', class: "skeleton error" }, "Karte konnte nicht geladen werden."))));
81680
+ return (index$1.h(index$1.Host, { key: '822a6f976073d9e8672b14747791f126a632a850' }, index$1.h("div", { key: 'c34d058f349bc8380e0cf3f0f96b2b0bbc039b06', class: "container" }, index$1.h("div", { key: '7b6c3b1e172319eefc995e02ab8651e8ecc5f8e1', class: "map", ref: el => (this.mapContainer = el) }), this.ready && this.zoomGated && (index$1.h("div", { key: '967a4f2f067243d8ef6694c80285102c47c9838e', class: "hint" }, "Reinzoomen, um PLZ-Gebiete zu laden")), !this.ready && !this.loadError && (index$1.h("div", { key: '8bb735a2144162a25332578426ec9017e32e067a', class: "skeleton", "aria-busy": "true" }, index$1.h("xv-loader-v2", { key: 'a67f78e06d7889f929b7410c54ce7f7227823e4d', variant: "vertical" }, "Karte wird geladen \u2026"))), this.loadError && index$1.h("div", { key: '239722811a7b43834deb83f5bdb75358b055c3f5', class: "skeleton error" }, "Karte konnte nicht geladen werden."))));
81680
81681
  }
81681
81682
  get el() { return index$1.getElement(this); }
81682
81683
  static get watchers() { return {
@@ -305,12 +305,13 @@ export class XvGeoMap {
305
305
  async emitSelection() {
306
306
  var _a, _b, _c;
307
307
  const postalCodes = [...this.selected.keys()];
308
+ const names = [...this.selected.values()].map(u => { var _a; return (_a = u === null || u === void 0 ? void 0 : u.name) !== null && _a !== void 0 ? _a : ''; });
308
309
  const unitIds = [...this.selected.values()].map(u => u.id);
309
310
  const seq = ++this.popSeq;
310
311
  // populations are already cached per PLZ (tooltips) — sum locally, emit instantly
311
312
  if (postalCodes.every(c => this.populations.has(c))) {
312
313
  const population = postalCodes.reduce((sum, c) => sum + this.populations.get(c), 0);
313
- const selection = { postalCodes, population: postalCodes.length ? population : null, unitIds };
314
+ const selection = { postalCodes, names, population: postalCodes.length ? population : null, unitIds };
314
315
  this.changeSelection.emit(selection);
315
316
  return selection;
316
317
  }
@@ -330,7 +331,7 @@ export class XvGeoMap {
330
331
  }
331
332
  if (seq !== this.popSeq)
332
333
  return null; // a newer selection superseded this one
333
- const selection = { postalCodes, population, unitIds };
334
+ const selection = { postalCodes, names, population, unitIds };
334
335
  this.changeSelection.emit(selection);
335
336
  return selection;
336
337
  }
@@ -405,7 +406,7 @@ export class XvGeoMap {
405
406
  this.map.fitBounds([[minX, minY], [maxX, maxY]], { padding: 48, maxZoom: 12, duration: 800 });
406
407
  }
407
408
  render() {
408
- return (h(Host, { key: '61229149683ca630df8e596e6c3b131649f86553' }, h("div", { key: '9b05c0b5ff3fba1cc6514c452596ae5bb5f16873', class: "container" }, h("div", { key: '802fa4025f9e024d804b2ed109cadbd068ebc5a3', class: "map", ref: el => (this.mapContainer = el) }), this.ready && this.zoomGated && (h("div", { key: '09d1b50c338524057c2287b53296ea1077254636', class: "hint" }, "Reinzoomen, um PLZ-Gebiete zu laden")), !this.ready && !this.loadError && (h("div", { key: '7cb3f9150753b0e4bb3cfa4fd382ee3e23fb5c8a', class: "skeleton", "aria-busy": "true" }, h("xv-loader-v2", { key: '3c1661d1cd5f5be16171ba5abadc18066812a2df', variant: "vertical" }, "Karte wird geladen \u2026"))), this.loadError && h("div", { key: '7447c9198e50db0779ce6e347a2854d748f861a6', class: "skeleton error" }, "Karte konnte nicht geladen werden."))));
409
+ return (h(Host, { key: '822a6f976073d9e8672b14747791f126a632a850' }, h("div", { key: 'c34d058f349bc8380e0cf3f0f96b2b0bbc039b06', class: "container" }, h("div", { key: '7b6c3b1e172319eefc995e02ab8651e8ecc5f8e1', class: "map", ref: el => (this.mapContainer = el) }), this.ready && this.zoomGated && (h("div", { key: '967a4f2f067243d8ef6694c80285102c47c9838e', class: "hint" }, "Reinzoomen, um PLZ-Gebiete zu laden")), !this.ready && !this.loadError && (h("div", { key: '8bb735a2144162a25332578426ec9017e32e067a', class: "skeleton", "aria-busy": "true" }, h("xv-loader-v2", { key: 'a67f78e06d7889f929b7410c54ce7f7227823e4d', variant: "vertical" }, "Karte wird geladen \u2026"))), this.loadError && h("div", { key: '239722811a7b43834deb83f5bdb75358b055c3f5', class: "skeleton error" }, "Karte konnte nicht geladen werden."))));
409
410
  }
410
411
  static get is() { return "xv-geo-map-v2"; }
411
412
  static get encapsulation() { return "shadow"; }
@@ -81574,12 +81574,13 @@ const XvGeoMap = class {
81574
81574
  async emitSelection() {
81575
81575
  var _a, _b, _c;
81576
81576
  const postalCodes = [...this.selected.keys()];
81577
+ const names = [...this.selected.values()].map(u => { var _a; return (_a = u === null || u === void 0 ? void 0 : u.name) !== null && _a !== void 0 ? _a : ''; });
81577
81578
  const unitIds = [...this.selected.values()].map(u => u.id);
81578
81579
  const seq = ++this.popSeq;
81579
81580
  // populations are already cached per PLZ (tooltips) — sum locally, emit instantly
81580
81581
  if (postalCodes.every(c => this.populations.has(c))) {
81581
81582
  const population = postalCodes.reduce((sum, c) => sum + this.populations.get(c), 0);
81582
- const selection = { postalCodes, population: postalCodes.length ? population : null, unitIds };
81583
+ const selection = { postalCodes, names, population: postalCodes.length ? population : null, unitIds };
81583
81584
  this.changeSelection.emit(selection);
81584
81585
  return selection;
81585
81586
  }
@@ -81599,7 +81600,7 @@ const XvGeoMap = class {
81599
81600
  }
81600
81601
  if (seq !== this.popSeq)
81601
81602
  return null; // a newer selection superseded this one
81602
- const selection = { postalCodes, population, unitIds };
81603
+ const selection = { postalCodes, names, population, unitIds };
81603
81604
  this.changeSelection.emit(selection);
81604
81605
  return selection;
81605
81606
  }
@@ -81674,7 +81675,7 @@ const XvGeoMap = class {
81674
81675
  this.map.fitBounds([[minX, minY], [maxX, maxY]], { padding: 48, maxZoom: 12, duration: 800 });
81675
81676
  }
81676
81677
  render() {
81677
- return (h(Host, { key: '61229149683ca630df8e596e6c3b131649f86553' }, h("div", { key: '9b05c0b5ff3fba1cc6514c452596ae5bb5f16873', class: "container" }, h("div", { key: '802fa4025f9e024d804b2ed109cadbd068ebc5a3', class: "map", ref: el => (this.mapContainer = el) }), this.ready && this.zoomGated && (h("div", { key: '09d1b50c338524057c2287b53296ea1077254636', class: "hint" }, "Reinzoomen, um PLZ-Gebiete zu laden")), !this.ready && !this.loadError && (h("div", { key: '7cb3f9150753b0e4bb3cfa4fd382ee3e23fb5c8a', class: "skeleton", "aria-busy": "true" }, h("xv-loader-v2", { key: '3c1661d1cd5f5be16171ba5abadc18066812a2df', variant: "vertical" }, "Karte wird geladen \u2026"))), this.loadError && h("div", { key: '7447c9198e50db0779ce6e347a2854d748f861a6', class: "skeleton error" }, "Karte konnte nicht geladen werden."))));
81678
+ return (h(Host, { key: '822a6f976073d9e8672b14747791f126a632a850' }, h("div", { key: 'c34d058f349bc8380e0cf3f0f96b2b0bbc039b06', class: "container" }, h("div", { key: '7b6c3b1e172319eefc995e02ab8651e8ecc5f8e1', class: "map", ref: el => (this.mapContainer = el) }), this.ready && this.zoomGated && (h("div", { key: '967a4f2f067243d8ef6694c80285102c47c9838e', class: "hint" }, "Reinzoomen, um PLZ-Gebiete zu laden")), !this.ready && !this.loadError && (h("div", { key: '8bb735a2144162a25332578426ec9017e32e067a', class: "skeleton", "aria-busy": "true" }, h("xv-loader-v2", { key: 'a67f78e06d7889f929b7410c54ce7f7227823e4d', variant: "vertical" }, "Karte wird geladen \u2026"))), this.loadError && h("div", { key: '239722811a7b43834deb83f5bdb75358b055c3f5', class: "skeleton error" }, "Karte konnte nicht geladen werden."))));
81678
81679
  }
81679
81680
  get el() { return getElement(this); }
81680
81681
  static get watchers() { return {
@@ -1,6 +1,8 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
2
  export interface GeoMapSelection {
3
3
  postalCodes: string[];
4
+ /** display names aligned with postalCodes (e.g. Bundesland names) */
5
+ names: string[];
4
6
  population: number | null;
5
7
  unitIds: string[];
6
8
  }