@oiz/stzh-components 2.5.0-alpha → 2.5.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.
Files changed (64) hide show
  1. package/dist/cjs/{app-globals-0c3558c0.js → app-globals-c8a48779.js} +1 -1
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/stzh-badge_3.cjs.entry.js +1 -1
  4. package/dist/cjs/stzh-carousel.cjs.entry.js +1 -1
  5. package/dist/cjs/stzh-chip_2.cjs.entry.js +1 -1
  6. package/dist/cjs/stzh-components.cjs.js +2 -2
  7. package/dist/cjs/stzh-dropdown.cjs.entry.js +19 -1
  8. package/dist/cjs/stzh-olmap.cjs.entry.js +442 -1
  9. package/dist/collection/components/stzh-button/stzh-button.css +1 -0
  10. package/dist/collection/components/stzh-carousel/stzh-carousel.css +5 -5
  11. package/dist/collection/components/stzh-carousel/stzh-carousel.stories.js +20 -18
  12. package/dist/collection/components/stzh-chip/stzh-chip.css +13 -8
  13. package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +15 -2
  14. package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +94 -8
  15. package/dist/collection/components/stzh-olmap/stzh-olmap.css +7 -2
  16. package/dist/collection/components/stzh-olmap/stzh-olmap.js +34 -0
  17. package/dist/components/index.js +1 -1
  18. package/dist/components/stzh-button2.js +1 -1
  19. package/dist/components/stzh-carousel.js +1 -1
  20. package/dist/components/stzh-chip2.js +1 -1
  21. package/dist/components/stzh-dropdown2.js +24 -2
  22. package/dist/components/stzh-olmap.js +444 -2
  23. package/dist/esm/{app-globals-a58b5d2d.js → app-globals-68acedf1.js} +1 -1
  24. package/dist/esm/loader.js +2 -2
  25. package/dist/esm/stzh-badge_3.entry.js +1 -1
  26. package/dist/esm/stzh-carousel.entry.js +1 -1
  27. package/dist/esm/stzh-chip_2.entry.js +1 -1
  28. package/dist/esm/stzh-components.js +2 -2
  29. package/dist/esm/stzh-dropdown.entry.js +19 -1
  30. package/dist/esm/stzh-olmap.entry.js +442 -1
  31. package/dist/esm-es5/{app-globals-a58b5d2d.js → app-globals-68acedf1.js} +1 -1
  32. package/dist/esm-es5/loader.js +1 -1
  33. package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
  34. package/dist/esm-es5/stzh-carousel.entry.js +1 -1
  35. package/dist/esm-es5/stzh-chip_2.entry.js +1 -1
  36. package/dist/esm-es5/stzh-components.js +1 -1
  37. package/dist/esm-es5/stzh-dropdown.entry.js +6 -6
  38. package/dist/esm-es5/stzh-olmap.entry.js +2 -2
  39. package/dist/stzh-components/{p-d9be7a41.entry.js → p-03358336.entry.js} +1 -1
  40. package/dist/stzh-components/p-08e324a9.entry.js +9 -0
  41. package/dist/stzh-components/p-22d01c71.entry.js +1 -0
  42. package/dist/stzh-components/p-4b2a4289.entry.js +1 -0
  43. package/dist/stzh-components/{p-a8205b50.system.entry.js → p-833c666f.system.entry.js} +1 -1
  44. package/dist/stzh-components/{p-8276a3a5.js → p-8634e81f.js} +1 -1
  45. package/dist/stzh-components/p-8cc6fd09.system.js +1 -0
  46. package/dist/stzh-components/p-992811cd.system.entry.js +1 -0
  47. package/dist/stzh-components/p-a3d67aca.entry.js +7 -0
  48. package/dist/stzh-components/p-a493c52e.system.entry.js +1 -0
  49. package/dist/stzh-components/p-b706c115.system.entry.js +1 -0
  50. package/dist/stzh-components/{p-73ce3c9b.system.entry.js → p-bd2b4c37.system.entry.js} +7 -7
  51. package/dist/stzh-components/{p-72f050c1.system.js → p-be219288.system.js} +1 -1
  52. package/dist/stzh-components/stzh-components.esm.js +1 -1
  53. package/dist/stzh-components/stzh-components.js +1 -1
  54. package/dist/types/components.d.ts +36 -8
  55. package/dist/vscode-data.json +20 -0
  56. package/package.json +1 -1
  57. package/dist/stzh-components/p-06e2b01d.system.entry.js +0 -1
  58. package/dist/stzh-components/p-077a1368.entry.js +0 -1
  59. package/dist/stzh-components/p-0b5226e2.entry.js +0 -7
  60. package/dist/stzh-components/p-406c9413.entry.js +0 -9
  61. package/dist/stzh-components/p-a0aeb3d6.system.entry.js +0 -1
  62. package/dist/stzh-components/p-ac6df3e4.system.entry.js +0 -1
  63. package/dist/stzh-components/p-cfe82456.entry.js +0 -1
  64. package/dist/stzh-components/p-dde56464.system.js +0 -1
@@ -49320,6 +49320,437 @@ _ol_source_Vector_.Event = function(type, opt_feature) {
49320
49320
  };
49321
49321
  _ol_.inherits(_ol_source_Vector_.Event, _ol_events_Event_);
49322
49322
 
49323
+ var _ol_geom_flat_interpolate_ = {};
49324
+
49325
+
49326
+ /**
49327
+ * @param {Array.<number>} flatCoordinates Flat coordinates.
49328
+ * @param {number} offset Offset.
49329
+ * @param {number} end End.
49330
+ * @param {number} stride Stride.
49331
+ * @param {number} fraction Fraction.
49332
+ * @param {Array.<number>=} opt_dest Destination.
49333
+ * @return {Array.<number>} Destination.
49334
+ */
49335
+ _ol_geom_flat_interpolate_.lineString = function(flatCoordinates, offset, end, stride, fraction, opt_dest) {
49336
+ var pointX = NaN;
49337
+ var pointY = NaN;
49338
+ var n = (end - offset) / stride;
49339
+ if (n === 1) {
49340
+ pointX = flatCoordinates[offset];
49341
+ pointY = flatCoordinates[offset + 1];
49342
+ } else if (n == 2) {
49343
+ pointX = (1 - fraction) * flatCoordinates[offset] +
49344
+ fraction * flatCoordinates[offset + stride];
49345
+ pointY = (1 - fraction) * flatCoordinates[offset + 1] +
49346
+ fraction * flatCoordinates[offset + stride + 1];
49347
+ } else if (n !== 0) {
49348
+ var x1 = flatCoordinates[offset];
49349
+ var y1 = flatCoordinates[offset + 1];
49350
+ var length = 0;
49351
+ var cumulativeLengths = [0];
49352
+ var i;
49353
+ for (i = offset + stride; i < end; i += stride) {
49354
+ var x2 = flatCoordinates[i];
49355
+ var y2 = flatCoordinates[i + 1];
49356
+ length += Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
49357
+ cumulativeLengths.push(length);
49358
+ x1 = x2;
49359
+ y1 = y2;
49360
+ }
49361
+ var target = fraction * length;
49362
+ var index = _ol_array_.binarySearch(cumulativeLengths, target);
49363
+ if (index < 0) {
49364
+ var t = (target - cumulativeLengths[-index - 2]) /
49365
+ (cumulativeLengths[-index - 1] - cumulativeLengths[-index - 2]);
49366
+ var o = offset + (-index - 2) * stride;
49367
+ pointX = _ol_math_.lerp(
49368
+ flatCoordinates[o], flatCoordinates[o + stride], t);
49369
+ pointY = _ol_math_.lerp(
49370
+ flatCoordinates[o + 1], flatCoordinates[o + stride + 1], t);
49371
+ } else {
49372
+ pointX = flatCoordinates[offset + index * stride];
49373
+ pointY = flatCoordinates[offset + index * stride + 1];
49374
+ }
49375
+ }
49376
+ if (opt_dest) {
49377
+ opt_dest[0] = pointX;
49378
+ opt_dest[1] = pointY;
49379
+ return opt_dest;
49380
+ } else {
49381
+ return [pointX, pointY];
49382
+ }
49383
+ };
49384
+
49385
+
49386
+ /**
49387
+ * @param {Array.<number>} flatCoordinates Flat coordinates.
49388
+ * @param {number} offset Offset.
49389
+ * @param {number} end End.
49390
+ * @param {number} stride Stride.
49391
+ * @param {number} m M.
49392
+ * @param {boolean} extrapolate Extrapolate.
49393
+ * @return {ol.Coordinate} Coordinate.
49394
+ */
49395
+ _ol_geom_flat_interpolate_.lineStringCoordinateAtM = function(flatCoordinates, offset, end, stride, m, extrapolate) {
49396
+ if (end == offset) {
49397
+ return null;
49398
+ }
49399
+ var coordinate;
49400
+ if (m < flatCoordinates[offset + stride - 1]) {
49401
+ if (extrapolate) {
49402
+ coordinate = flatCoordinates.slice(offset, offset + stride);
49403
+ coordinate[stride - 1] = m;
49404
+ return coordinate;
49405
+ } else {
49406
+ return null;
49407
+ }
49408
+ } else if (flatCoordinates[end - 1] < m) {
49409
+ if (extrapolate) {
49410
+ coordinate = flatCoordinates.slice(end - stride, end);
49411
+ coordinate[stride - 1] = m;
49412
+ return coordinate;
49413
+ } else {
49414
+ return null;
49415
+ }
49416
+ }
49417
+ // FIXME use O(1) search
49418
+ if (m == flatCoordinates[offset + stride - 1]) {
49419
+ return flatCoordinates.slice(offset, offset + stride);
49420
+ }
49421
+ var lo = offset / stride;
49422
+ var hi = end / stride;
49423
+ while (lo < hi) {
49424
+ var mid = (lo + hi) >> 1;
49425
+ if (m < flatCoordinates[(mid + 1) * stride - 1]) {
49426
+ hi = mid;
49427
+ } else {
49428
+ lo = mid + 1;
49429
+ }
49430
+ }
49431
+ var m0 = flatCoordinates[lo * stride - 1];
49432
+ if (m == m0) {
49433
+ return flatCoordinates.slice((lo - 1) * stride, (lo - 1) * stride + stride);
49434
+ }
49435
+ var m1 = flatCoordinates[(lo + 1) * stride - 1];
49436
+ var t = (m - m0) / (m1 - m0);
49437
+ coordinate = [];
49438
+ var i;
49439
+ for (i = 0; i < stride - 1; ++i) {
49440
+ coordinate.push(_ol_math_.lerp(flatCoordinates[(lo - 1) * stride + i],
49441
+ flatCoordinates[lo * stride + i], t));
49442
+ }
49443
+ coordinate.push(m);
49444
+ return coordinate;
49445
+ };
49446
+
49447
+
49448
+ /**
49449
+ * @param {Array.<number>} flatCoordinates Flat coordinates.
49450
+ * @param {number} offset Offset.
49451
+ * @param {Array.<number>} ends Ends.
49452
+ * @param {number} stride Stride.
49453
+ * @param {number} m M.
49454
+ * @param {boolean} extrapolate Extrapolate.
49455
+ * @param {boolean} interpolate Interpolate.
49456
+ * @return {ol.Coordinate} Coordinate.
49457
+ */
49458
+ _ol_geom_flat_interpolate_.lineStringsCoordinateAtM = function(
49459
+ flatCoordinates, offset, ends, stride, m, extrapolate, interpolate) {
49460
+ if (interpolate) {
49461
+ return _ol_geom_flat_interpolate_.lineStringCoordinateAtM(
49462
+ flatCoordinates, offset, ends[ends.length - 1], stride, m, extrapolate);
49463
+ }
49464
+ var coordinate;
49465
+ if (m < flatCoordinates[stride - 1]) {
49466
+ if (extrapolate) {
49467
+ coordinate = flatCoordinates.slice(0, stride);
49468
+ coordinate[stride - 1] = m;
49469
+ return coordinate;
49470
+ } else {
49471
+ return null;
49472
+ }
49473
+ }
49474
+ if (flatCoordinates[flatCoordinates.length - 1] < m) {
49475
+ if (extrapolate) {
49476
+ coordinate = flatCoordinates.slice(flatCoordinates.length - stride);
49477
+ coordinate[stride - 1] = m;
49478
+ return coordinate;
49479
+ } else {
49480
+ return null;
49481
+ }
49482
+ }
49483
+ var i, ii;
49484
+ for (i = 0, ii = ends.length; i < ii; ++i) {
49485
+ var end = ends[i];
49486
+ if (offset == end) {
49487
+ continue;
49488
+ }
49489
+ if (m < flatCoordinates[offset + stride - 1]) {
49490
+ return null;
49491
+ } else if (m <= flatCoordinates[end - 1]) {
49492
+ return _ol_geom_flat_interpolate_.lineStringCoordinateAtM(
49493
+ flatCoordinates, offset, end, stride, m, false);
49494
+ }
49495
+ offset = end;
49496
+ }
49497
+ return null;
49498
+ };
49499
+
49500
+ /**
49501
+ * @classdesc
49502
+ * Linestring geometry.
49503
+ *
49504
+ * @constructor
49505
+ * @extends {ol.geom.SimpleGeometry}
49506
+ * @param {Array.<ol.Coordinate>} coordinates Coordinates.
49507
+ * @param {ol.geom.GeometryLayout=} opt_layout Layout.
49508
+ * @api
49509
+ */
49510
+ var _ol_geom_LineString_ = function(coordinates, opt_layout) {
49511
+
49512
+ _ol_geom_SimpleGeometry_.call(this);
49513
+
49514
+ /**
49515
+ * @private
49516
+ * @type {ol.Coordinate}
49517
+ */
49518
+ this.flatMidpoint_ = null;
49519
+
49520
+ /**
49521
+ * @private
49522
+ * @type {number}
49523
+ */
49524
+ this.flatMidpointRevision_ = -1;
49525
+
49526
+ /**
49527
+ * @private
49528
+ * @type {number}
49529
+ */
49530
+ this.maxDelta_ = -1;
49531
+
49532
+ /**
49533
+ * @private
49534
+ * @type {number}
49535
+ */
49536
+ this.maxDeltaRevision_ = -1;
49537
+
49538
+ this.setCoordinates(coordinates, opt_layout);
49539
+
49540
+ };
49541
+
49542
+ _ol_.inherits(_ol_geom_LineString_, _ol_geom_SimpleGeometry_);
49543
+
49544
+
49545
+ /**
49546
+ * Append the passed coordinate to the coordinates of the linestring.
49547
+ * @param {ol.Coordinate} coordinate Coordinate.
49548
+ * @api
49549
+ */
49550
+ _ol_geom_LineString_.prototype.appendCoordinate = function(coordinate) {
49551
+ if (!this.flatCoordinates) {
49552
+ this.flatCoordinates = coordinate.slice();
49553
+ } else {
49554
+ _ol_array_.extend(this.flatCoordinates, coordinate);
49555
+ }
49556
+ this.changed();
49557
+ };
49558
+
49559
+
49560
+ /**
49561
+ * Make a complete copy of the geometry.
49562
+ * @return {!ol.geom.LineString} Clone.
49563
+ * @override
49564
+ * @api
49565
+ */
49566
+ _ol_geom_LineString_.prototype.clone = function() {
49567
+ var lineString = new _ol_geom_LineString_(null);
49568
+ lineString.setFlatCoordinates(this.layout, this.flatCoordinates.slice());
49569
+ return lineString;
49570
+ };
49571
+
49572
+
49573
+ /**
49574
+ * @inheritDoc
49575
+ */
49576
+ _ol_geom_LineString_.prototype.closestPointXY = function(x, y, closestPoint, minSquaredDistance) {
49577
+ if (minSquaredDistance <
49578
+ _ol_extent_.closestSquaredDistanceXY(this.getExtent(), x, y)) {
49579
+ return minSquaredDistance;
49580
+ }
49581
+ if (this.maxDeltaRevision_ != this.getRevision()) {
49582
+ this.maxDelta_ = Math.sqrt(_ol_geom_flat_closest_.getMaxSquaredDelta(
49583
+ this.flatCoordinates, 0, this.flatCoordinates.length, this.stride, 0));
49584
+ this.maxDeltaRevision_ = this.getRevision();
49585
+ }
49586
+ return _ol_geom_flat_closest_.getClosestPoint(
49587
+ this.flatCoordinates, 0, this.flatCoordinates.length, this.stride,
49588
+ this.maxDelta_, false, x, y, closestPoint, minSquaredDistance);
49589
+ };
49590
+
49591
+
49592
+ /**
49593
+ * Iterate over each segment, calling the provided callback.
49594
+ * If the callback returns a truthy value the function returns that
49595
+ * value immediately. Otherwise the function returns `false`.
49596
+ *
49597
+ * @param {function(this: S, ol.Coordinate, ol.Coordinate): T} callback Function
49598
+ * called for each segment.
49599
+ * @param {S=} opt_this The object to be used as the value of 'this'
49600
+ * within callback.
49601
+ * @return {T|boolean} Value.
49602
+ * @template T,S
49603
+ * @api
49604
+ */
49605
+ _ol_geom_LineString_.prototype.forEachSegment = function(callback, opt_this) {
49606
+ return _ol_geom_flat_segments_.forEach(this.flatCoordinates, 0,
49607
+ this.flatCoordinates.length, this.stride, callback, opt_this);
49608
+ };
49609
+
49610
+
49611
+ /**
49612
+ * Returns the coordinate at `m` using linear interpolation, or `null` if no
49613
+ * such coordinate exists.
49614
+ *
49615
+ * `opt_extrapolate` controls extrapolation beyond the range of Ms in the
49616
+ * MultiLineString. If `opt_extrapolate` is `true` then Ms less than the first
49617
+ * M will return the first coordinate and Ms greater than the last M will
49618
+ * return the last coordinate.
49619
+ *
49620
+ * @param {number} m M.
49621
+ * @param {boolean=} opt_extrapolate Extrapolate. Default is `false`.
49622
+ * @return {ol.Coordinate} Coordinate.
49623
+ * @api
49624
+ */
49625
+ _ol_geom_LineString_.prototype.getCoordinateAtM = function(m, opt_extrapolate) {
49626
+ if (this.layout != _ol_geom_GeometryLayout_.XYM &&
49627
+ this.layout != _ol_geom_GeometryLayout_.XYZM) {
49628
+ return null;
49629
+ }
49630
+ var extrapolate = opt_extrapolate !== undefined ? opt_extrapolate : false;
49631
+ return _ol_geom_flat_interpolate_.lineStringCoordinateAtM(this.flatCoordinates, 0,
49632
+ this.flatCoordinates.length, this.stride, m, extrapolate);
49633
+ };
49634
+
49635
+
49636
+ /**
49637
+ * Return the coordinates of the linestring.
49638
+ * @return {Array.<ol.Coordinate>} Coordinates.
49639
+ * @override
49640
+ * @api
49641
+ */
49642
+ _ol_geom_LineString_.prototype.getCoordinates = function() {
49643
+ return _ol_geom_flat_inflate_.coordinates(
49644
+ this.flatCoordinates, 0, this.flatCoordinates.length, this.stride);
49645
+ };
49646
+
49647
+
49648
+ /**
49649
+ * Return the coordinate at the provided fraction along the linestring.
49650
+ * The `fraction` is a number between 0 and 1, where 0 is the start of the
49651
+ * linestring and 1 is the end.
49652
+ * @param {number} fraction Fraction.
49653
+ * @param {ol.Coordinate=} opt_dest Optional coordinate whose values will
49654
+ * be modified. If not provided, a new coordinate will be returned.
49655
+ * @return {ol.Coordinate} Coordinate of the interpolated point.
49656
+ * @api
49657
+ */
49658
+ _ol_geom_LineString_.prototype.getCoordinateAt = function(fraction, opt_dest) {
49659
+ return _ol_geom_flat_interpolate_.lineString(
49660
+ this.flatCoordinates, 0, this.flatCoordinates.length, this.stride,
49661
+ fraction, opt_dest);
49662
+ };
49663
+
49664
+
49665
+ /**
49666
+ * Return the length of the linestring on projected plane.
49667
+ * @return {number} Length (on projected plane).
49668
+ * @api
49669
+ */
49670
+ _ol_geom_LineString_.prototype.getLength = function() {
49671
+ return _ol_geom_flat_length_.lineString(
49672
+ this.flatCoordinates, 0, this.flatCoordinates.length, this.stride);
49673
+ };
49674
+
49675
+
49676
+ /**
49677
+ * @return {Array.<number>} Flat midpoint.
49678
+ */
49679
+ _ol_geom_LineString_.prototype.getFlatMidpoint = function() {
49680
+ if (this.flatMidpointRevision_ != this.getRevision()) {
49681
+ this.flatMidpoint_ = this.getCoordinateAt(0.5, this.flatMidpoint_);
49682
+ this.flatMidpointRevision_ = this.getRevision();
49683
+ }
49684
+ return this.flatMidpoint_;
49685
+ };
49686
+
49687
+
49688
+ /**
49689
+ * @inheritDoc
49690
+ */
49691
+ _ol_geom_LineString_.prototype.getSimplifiedGeometryInternal = function(squaredTolerance) {
49692
+ var simplifiedFlatCoordinates = [];
49693
+ simplifiedFlatCoordinates.length = _ol_geom_flat_simplify_.douglasPeucker(
49694
+ this.flatCoordinates, 0, this.flatCoordinates.length, this.stride,
49695
+ squaredTolerance, simplifiedFlatCoordinates, 0);
49696
+ var simplifiedLineString = new _ol_geom_LineString_(null);
49697
+ simplifiedLineString.setFlatCoordinates(
49698
+ _ol_geom_GeometryLayout_.XY, simplifiedFlatCoordinates);
49699
+ return simplifiedLineString;
49700
+ };
49701
+
49702
+
49703
+ /**
49704
+ * @inheritDoc
49705
+ * @api
49706
+ */
49707
+ _ol_geom_LineString_.prototype.getType = function() {
49708
+ return _ol_geom_GeometryType_.LINE_STRING;
49709
+ };
49710
+
49711
+
49712
+ /**
49713
+ * @inheritDoc
49714
+ * @api
49715
+ */
49716
+ _ol_geom_LineString_.prototype.intersectsExtent = function(extent) {
49717
+ return _ol_geom_flat_intersectsextent_.lineString(
49718
+ this.flatCoordinates, 0, this.flatCoordinates.length, this.stride,
49719
+ extent);
49720
+ };
49721
+
49722
+
49723
+ /**
49724
+ * Set the coordinates of the linestring.
49725
+ * @param {Array.<ol.Coordinate>} coordinates Coordinates.
49726
+ * @param {ol.geom.GeometryLayout=} opt_layout Layout.
49727
+ * @override
49728
+ * @api
49729
+ */
49730
+ _ol_geom_LineString_.prototype.setCoordinates = function(coordinates, opt_layout) {
49731
+ if (!coordinates) {
49732
+ this.setFlatCoordinates(_ol_geom_GeometryLayout_.XY, null);
49733
+ } else {
49734
+ this.setLayout(opt_layout, coordinates, 1);
49735
+ if (!this.flatCoordinates) {
49736
+ this.flatCoordinates = [];
49737
+ }
49738
+ this.flatCoordinates.length = _ol_geom_flat_deflate_.coordinates(
49739
+ this.flatCoordinates, 0, coordinates, this.stride);
49740
+ this.changed();
49741
+ }
49742
+ };
49743
+
49744
+
49745
+ /**
49746
+ * @param {ol.geom.GeometryLayout} layout Layout.
49747
+ * @param {Array.<number>} flatCoordinates Flat coordinates.
49748
+ */
49749
+ _ol_geom_LineString_.prototype.setFlatCoordinates = function(layout, flatCoordinates) {
49750
+ this.setFlatCoordinatesInternal(layout, flatCoordinates);
49751
+ this.changed();
49752
+ };
49753
+
49323
49754
  /**
49324
49755
  * @enum {string}
49325
49756
  */
@@ -50570,7 +51001,7 @@ const Compass = `<svg width="16" height="24" viewBox="0 0 16 24" fill="none" xml
50570
51001
  </svg>
50571
51002
  `;
50572
51003
 
50573
- const stzhOlmapCss = ":host{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}stzh-olmap{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block;position:relative;width:100%;height:18.75rem}stzh-olmap[hidden]{display:none}stzh-olmap *,stzh-olmap *::before,stzh-olmap *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}@media screen and (min-width: 800px){stzh-olmap{height:25rem}}.stzh-olmap{}.stzh-olmap__map{position:absolute;width:100%;height:100%;top:0;left:0}.stzh-olmap__map--print{margin-top:var(--stzh-space-xxlarge);max-width:100%;height:auto}.stzh-olmap__print-image{display:block;max-width:100%}.stzh-olmap .ol-print,.stzh-olmap .ol-location,.stzh-olmap .ol-zoom-in,.stzh-olmap .ol-zoom-out,.stzh-olmap .ol-rotate-reset{font-family:var(--stzh-font-family-light);font-weight:var(--stzh-font-weight-light);font-style:normal;font-size:var(--stzh-font-deca-font-size);line-height:var(--stzh-font-deca-text-line-height);letter-spacing:var(--stzh-font-deca-text-letter-spacing);position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:none;border-radius:0;color:var(--stzh-color-primary, var(--stzh-color-zueriblue));-webkit-transition:all var(--stzh-base-transition-animation-speed) ease;transition:all var(--stzh-base-transition-animation-speed) ease;background-color:var(--stzh-color-white);width:var(--stzh-form-input-small-height);height:var(--stzh-form-input-small-height);cursor:pointer}.stzh-olmap .ol-print stzh-icon,.stzh-olmap .ol-location stzh-icon,.stzh-olmap .ol-zoom-in stzh-icon,.stzh-olmap .ol-zoom-out stzh-icon,.stzh-olmap .ol-rotate-reset stzh-icon{--size:var(--stzh-icon-size-small)}.stzh-olmap .ol-print:hover,.stzh-olmap .ol-location:hover,.stzh-olmap .ol-zoom-in:hover,.stzh-olmap .ol-zoom-out:hover,.stzh-olmap .ol-rotate-reset:hover{color:var(--stzh-color-white);background:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));border-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-olmap .ol-layer,.stzh-olmap .ol-print,.stzh-olmap .ol-location,.stzh-olmap .ol-zoom,.stzh-olmap .ol-rotate-reset{position:absolute;right:var(--stzh-space-xsmall);bottom:var(--stzh-space-xsmall);-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover);border-radius:var(--stzh-form-input-border-radius)}@media screen and (min-width: 800px){.stzh-olmap .ol-layer,.stzh-olmap .ol-print,.stzh-olmap .ol-location,.stzh-olmap .ol-zoom,.stzh-olmap .ol-rotate-reset{right:var(--stzh-space-large);bottom:var(--stzh-space-large)}}.stzh-olmap .ol-layer{left:var(--stzh-space-xsmall);right:auto;padding:var(--stzh-space-xxxsmall);border:none;cursor:pointer}@media screen and (min-width: 800px){.stzh-olmap .ol-layer{left:var(--stzh-space-large)}}.stzh-olmap .ol-layer__thumbnail{width:4.75rem;height:4.75rem;display:block}.stzh-olmap .ol-layer__text{font-family:var(--stzh-font-family-light);font-weight:var(--stzh-font-weight-light);font-style:normal;font-size:var(--stzh-font-pico-font-size);line-height:var(--stzh-font-pico-text-line-height);position:absolute;bottom:0;left:0;right:0;text-align:left;background-color:var(--stzh-color-white);color:var(--stzh-color-primary, var(--stzh-color-zueriblue));padding-left:calc(var(--stzh-space-xxxsmall) + 0.0625rem);padding-right:calc(var(--stzh-space-xxxsmall) + 0.0625rem)}.stzh-olmap .ol-layer:hover .ol-layer__text{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-olmap .ol-location{margin-bottom:calc(var(--stzh-form-input-small-height) * 3 + var(--stzh-space-xsmall) * 2)}.stzh-olmap .ol-location.active{background:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));border-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));color:var(--stzh-color-white)}.stzh-olmap .ol-zoom{margin-bottom:calc(var(--stzh-form-input-small-height) + var(--stzh-space-xsmall));background-color:var(--stzh-color-grey13)}.stzh-olmap .ol-zoom-in{margin-bottom:0.0625rem}.stzh-olmap .ol-rotate-reset{width:var(--stzh-space-xxlarge);height:var(--stzh-space-xxlarge);border-radius:50%;-webkit-box-shadow:none;box-shadow:none;border:0.0625rem solid var(--stzh-color-grey13);margin-right:calc((var(--stzh-form-input-small-height) - var(--stzh-space-xxlarge)) / 2);margin-bottom:calc(var(--stzh-form-input-small-height) * 3 + var(--stzh-space-xsmall) * 2)}.stzh-olmap .ol-rotate-reset span{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-olmap .ol-rotate-reset svg{width:0.99rem;height:1.32188rem}.stzh-olmap .ol-hidden .ol-rotate-reset{opacity:0}.stzh-olmap .ol-compass{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.stzh-olmap .ol-scale-line{position:absolute;bottom:var(--stzh-space-xsmall);margin-left:calc(4.75rem + var(--stzh-space-xxxsmall) + var(--stzh-space-xsmall));left:var(--stzh-space-xsmall)}@media screen and (min-width: 800px){.stzh-olmap .ol-scale-line{bottom:var(--stzh-space-large);left:var(--stzh-space-large)}}.stzh-olmap .ol-scale-line-inner{font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height);position:relative;color:var(--stzh-color-black);text-align:center;-webkit-filter:drop-shadow(-0.0625rem 0px 0px white) drop-shadow(0.0625rem 0px 0px white) drop-shadow(0px -0.0625rem 0px white) drop-shadow(0px 0.0625rem 0px white);filter:drop-shadow(-0.0625rem 0px 0px white) drop-shadow(0.0625rem 0px 0px white) drop-shadow(0px -0.0625rem 0px white) drop-shadow(0px 0.0625rem 0px white)}.stzh-olmap .ol-scale-line-inner::after{content:\"\";position:absolute;bottom:0;left:0;width:100%;height:0.28125rem;border:0.0625rem solid var(--stzh-color-black);border-top:0}.stzh-olmap .ol-attribution{display:none}.stzh-olmap--has-no-layer-control .ol-scale-line{margin-left:0}.stzh-olmap--has-no-print-control .ol-zoom{margin-bottom:0}.stzh-olmap--has-no-print-control .ol-rotate-reset{margin-bottom:calc(var(--stzh-form-input-small-height) * 2 + var(--stzh-space-xsmall))}.stzh-olmap--has-location-control .ol-rotate-reset{margin-bottom:calc(var(--stzh-form-input-small-height) * 4 + var(--stzh-space-xsmall) * 3)}.stzh-olmap--has-location-control.stzh-olmap--has-no-print-control .ol-location{margin-bottom:calc(var(--stzh-form-input-small-height) * 2 + var(--stzh-space-xsmall))}.stzh-olmap--has-location-control.stzh-olmap--has-no-print-control .ol-rotate-reset{margin-bottom:calc(var(--stzh-form-input-small-height) * 3 + var(--stzh-space-xsmall) * 2)}";
51004
+ const stzhOlmapCss = ":host{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}stzh-olmap{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block;position:relative;width:100%;height:18.75rem}stzh-olmap[hidden]{display:none}stzh-olmap *,stzh-olmap *::before,stzh-olmap *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}@media screen and (min-width: 800px){stzh-olmap{height:25rem}}.stzh-olmap{}.stzh-olmap__map{position:absolute;width:100%;height:100%;top:0;left:0}.stzh-olmap__map--print{margin-top:var(--stzh-space-xxlarge);max-width:100%;height:auto}.stzh-olmap__print-image{display:block;max-width:100%}.stzh-olmap .ol-print,.stzh-olmap .ol-location,.stzh-olmap .ol-zoom-in,.stzh-olmap .ol-zoom-out,.stzh-olmap .ol-rotate-reset{font-family:var(--stzh-font-family-light);font-weight:var(--stzh-font-weight-light);font-style:normal;font-size:var(--stzh-font-deca-font-size);line-height:var(--stzh-font-deca-text-line-height);letter-spacing:var(--stzh-font-deca-text-letter-spacing);position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:none;border-radius:0;color:var(--stzh-color-primary, var(--stzh-color-zueriblue));-webkit-transition:all var(--stzh-base-transition-animation-speed) ease;transition:all var(--stzh-base-transition-animation-speed) ease;background-color:var(--stzh-color-white);width:var(--stzh-form-input-small-height);height:var(--stzh-form-input-small-height);cursor:pointer}.stzh-olmap .ol-print stzh-icon,.stzh-olmap .ol-location stzh-icon,.stzh-olmap .ol-zoom-in stzh-icon,.stzh-olmap .ol-zoom-out stzh-icon,.stzh-olmap .ol-rotate-reset stzh-icon{--size:var(--stzh-icon-size-small)}.stzh-olmap .ol-print:hover,.stzh-olmap .ol-location:hover,.stzh-olmap .ol-zoom-in:hover,.stzh-olmap .ol-zoom-out:hover,.stzh-olmap .ol-rotate-reset:hover{color:var(--stzh-color-white);background:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));border-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-olmap .ol-layer,.stzh-olmap .ol-print,.stzh-olmap .ol-location,.stzh-olmap .ol-zoom,.stzh-olmap .ol-rotate-reset{position:absolute;right:var(--stzh-space-xsmall);bottom:var(--stzh-space-xsmall);-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover);border-radius:var(--stzh-form-input-border-radius)}@media screen and (min-width: 800px){.stzh-olmap .ol-layer,.stzh-olmap .ol-print,.stzh-olmap .ol-location,.stzh-olmap .ol-zoom,.stzh-olmap .ol-rotate-reset{right:var(--stzh-space-large);bottom:var(--stzh-space-large)}}.stzh-olmap .ol-layer{left:var(--stzh-space-xsmall);right:auto;padding:var(--stzh-space-xxxsmall);border:none;cursor:pointer}@media screen and (min-width: 800px){.stzh-olmap .ol-layer{left:var(--stzh-space-large)}}.stzh-olmap .ol-layer__thumbnail{width:4.75rem;height:4.75rem;display:block}.stzh-olmap .ol-layer__text{font-family:var(--stzh-font-family-light);font-weight:var(--stzh-font-weight-light);font-style:normal;font-size:var(--stzh-font-pico-font-size);line-height:var(--stzh-font-pico-text-line-height);position:absolute;bottom:0;left:0;right:0;text-align:left;background-color:var(--stzh-color-white);color:var(--stzh-color-primary, var(--stzh-color-zueriblue));padding-left:calc(var(--stzh-space-xxxsmall) + 0.0625rem);padding-right:calc(var(--stzh-space-xxxsmall) + 0.0625rem)}.stzh-olmap .ol-layer:hover .ol-layer__text{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-olmap .ol-location{margin-bottom:calc(var(--stzh-form-input-small-height) * 3 + var(--stzh-space-xsmall) * 2)}.stzh-olmap .ol-location:hover{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));background:var(--stzh-color-white);border-color:var(--stzh-color-white)}.stzh-olmap .ol-location.active{background:var(--stzh-color-primary, var(--stzh-color-zueriblue));border-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));color:var(--stzh-color-white)}.stzh-olmap .ol-zoom{margin-bottom:calc(var(--stzh-form-input-small-height) + var(--stzh-space-xsmall));background-color:var(--stzh-color-grey13)}.stzh-olmap .ol-zoom-in{margin-bottom:0.0625rem}.stzh-olmap .ol-rotate-reset{width:var(--stzh-space-xxlarge);height:var(--stzh-space-xxlarge);border-radius:50%;-webkit-box-shadow:none;box-shadow:none;border:0.0625rem solid var(--stzh-color-grey13);margin-right:calc((var(--stzh-form-input-small-height) - var(--stzh-space-xxlarge)) / 2);margin-bottom:calc(var(--stzh-form-input-small-height) * 3 + var(--stzh-space-xsmall) * 2)}.stzh-olmap .ol-rotate-reset span{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-olmap .ol-rotate-reset svg{width:0.99rem;height:1.32188rem}.stzh-olmap .ol-hidden .ol-rotate-reset{opacity:0}.stzh-olmap .ol-compass{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.stzh-olmap .ol-scale-line{position:absolute;bottom:var(--stzh-space-xsmall);margin-left:calc(4.75rem + var(--stzh-space-xxxsmall) + var(--stzh-space-xsmall));left:var(--stzh-space-xsmall)}@media screen and (min-width: 800px){.stzh-olmap .ol-scale-line{bottom:var(--stzh-space-large);left:var(--stzh-space-large)}}.stzh-olmap .ol-scale-line-inner{font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height);position:relative;color:var(--stzh-color-black);text-align:center;-webkit-filter:drop-shadow(-0.0625rem 0px 0px white) drop-shadow(0.0625rem 0px 0px white) drop-shadow(0px -0.0625rem 0px white) drop-shadow(0px 0.0625rem 0px white);filter:drop-shadow(-0.0625rem 0px 0px white) drop-shadow(0.0625rem 0px 0px white) drop-shadow(0px -0.0625rem 0px white) drop-shadow(0px 0.0625rem 0px white)}.stzh-olmap .ol-scale-line-inner::after{content:\"\";position:absolute;bottom:0;left:0;width:100%;height:0.28125rem;border:0.0625rem solid var(--stzh-color-black);border-top:0}.stzh-olmap .ol-attribution{display:none}.stzh-olmap--has-no-layer-control .ol-scale-line{margin-left:0}.stzh-olmap--has-no-print-control .ol-zoom{margin-bottom:0}.stzh-olmap--has-no-print-control .ol-rotate-reset{margin-bottom:calc(var(--stzh-form-input-small-height) * 2 + var(--stzh-space-xsmall))}.stzh-olmap--has-location-control .ol-rotate-reset{margin-bottom:calc(var(--stzh-form-input-small-height) * 4 + var(--stzh-space-xsmall) * 3)}.stzh-olmap--has-location-control.stzh-olmap--has-no-print-control .ol-location{margin-bottom:calc(var(--stzh-form-input-small-height) * 2 + var(--stzh-space-xsmall))}.stzh-olmap--has-location-control.stzh-olmap--has-no-print-control .ol-rotate-reset{margin-bottom:calc(var(--stzh-form-input-small-height) * 3 + var(--stzh-space-xsmall) * 2)}";
50574
51005
 
50575
51006
  window.proj4 = proj4;
50576
51007
  window.proj4.defs("EPSG:2056", "+proj=somerc +lat_0=46.95240555555556 +lon_0=7.439583333333333 +k_0=1 +x_0=2600000 +y_0=1200000 +ellps=bessel +towgs84=674.374,15.056,405.346,0,0,0,0 +units=m +no_defs");
@@ -50965,6 +51396,16 @@ const StzhOlmap$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1
50965
51396
  this.geolocation.setTracking(false);
50966
51397
  }
50967
51398
  }
51399
+ /** Get distance between two points in meters */
51400
+ async getDistance(startCoords, endCoords) {
51401
+ const line = new _ol_geom_LineString_([
51402
+ startCoords, endCoords
51403
+ ]);
51404
+ const length = _ol_Sphere_.getLength(line, {
51405
+ projection: this.map.getView().getProjection()
51406
+ });
51407
+ return length;
51408
+ }
50968
51409
  handleLoad() {
50969
51410
  if (this.map) {
50970
51411
  requestAnimationFrame(() => {
@@ -51188,7 +51629,8 @@ const StzhOlmap$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement$1
51188
51629
  "setIconMarkerActive": [64],
51189
51630
  "setIconMarkerInactive": [64],
51190
51631
  "enableLocationTracking": [64],
51191
- "disableLocationTracking": [64]
51632
+ "disableLocationTracking": [64],
51633
+ "getDistance": [64]
51192
51634
  }, [[8, "load", "handleLoad"], [8, "deviceorientation", "handleLoad"], [8, "pageshow", "handleLoad"]]]);
51193
51635
  function defineCustomElement$1() {
51194
51636
  if (typeof customElements === "undefined") {
@@ -832,7 +832,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
832
832
  })();
833
833
 
834
834
  const name = "@oiz/stzh-components";
835
- const version = "2.5.0-alpha";
835
+ const version = "2.5.0";
836
836
 
837
837
  const packageName = name.substring(name.indexOf('/')+1);
838
838