@idmwx/idmui-gl4 0.8.4 → 0.8.6

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/dist/index.js CHANGED
@@ -378,8 +378,8 @@ const Va = {
378
378
  watch: {
379
379
  zone: {
380
380
  handler() {
381
- var t, e;
382
- this.zone ? (this.handleRender(), (t = this.map) == null || t.on("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick)) : (this.handleClear(), (e = this.map) == null || e.off("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick));
381
+ var t, e, o, i, a, r;
382
+ this.zone ? (this.handleRender(), (t = this.map) == null || t.on("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick), (e = this.map) == null || e.on("mouseenter", [this.pointLayer], this.handleHover), (o = this.map) == null || o.on("mouseleave", [this.pointLayer], this.handleLeave)) : (this.handleClear(), (i = this.map) == null || i.off("click", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleClick), (a = this.map) == null || a.off("mouseenter", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleHover), (r = this.map) == null || r.off("mouseleave", [this.polygonLabelLayer, this.lineLabelLayer, this.pointLayer], this.handleLeave));
383
383
  },
384
384
  immediate: !0
385
385
  }
@@ -479,6 +479,12 @@ const Va = {
479
479
  },
480
480
  handleClear() {
481
481
  this.map.getLayer(this.polygonLayer) && this.map.removeLayer(this.polygonLayer), this.map.getLayer(this.polygonLayer + "-border") && this.map.removeLayer(this.polygonLayer + "-border"), this.map.getLayer(this.polygonLabelLayer) && this.map.removeLayer(this.polygonLabelLayer), this.map.getLayer(this.lineLayer) && this.map.removeLayer(this.lineLayer), this.map.getLayer(this.lineLabelLayer) && this.map.removeLayer(this.lineLabelLayer), this.map.getLayer(this.pointLayer) && this.map.removeLayer(this.pointLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
482
+ },
483
+ handleHover() {
484
+ this.map.getCanvas().style.cursor = "pointer";
485
+ },
486
+ handleLeave() {
487
+ this.map.getCanvas().style.cursor = "grab";
482
488
  }
483
489
  }
484
490
  }, Ya = ["innerHTML"];
@@ -496,11 +502,12 @@ function Za(t, e, o, i, a, r) {
496
502
  m(s, {
497
503
  icon: "",
498
504
  density: "compact",
505
+ variant: "plain",
499
506
  class: "close",
500
507
  onClick: e[0] || (e[0] = (p) => a.showZone = !1)
501
508
  }, {
502
509
  default: u(() => e[1] || (e[1] = [
503
- l("i", { class: "iconfont icon-close opacity-70" }, null, -1)
510
+ l("i", { class: "iconfont icon-close opacity-70 text-h4" }, null, -1)
504
511
  ])),
505
512
  _: 1,
506
513
  __: [1]
@@ -564,8 +571,8 @@ const qa = {
564
571
  watch: {
565
572
  port: {
566
573
  handler() {
567
- var t, e;
568
- this.port ? (this.handleRender(), (t = this.map) == null || t.on("click", [this.layer], this.handleClick)) : (this.handleClear(), (e = this.map) == null || e.off("click", [this.layer], this.handleClick));
574
+ var t, e, o, i, a, r;
575
+ this.port ? (this.handleRender(), (t = this.map) == null || t.on("click", [this.layer], this.handleClick), (e = this.map) == null || e.on("mouseenter", [this.layer], this.handleHover), (o = this.map) == null || o.on("mouseleave", [this.layer], this.handleLeave)) : (this.handleClear(), (i = this.map) == null || i.off("click", [this.layer], this.handleClick), (a = this.map) == null || a.off("mouseenter", [this.layer], this.handleHover), (r = this.map) == null || r.off("mouseleave", [this.layer], this.handleLeave));
569
576
  },
570
577
  immediate: !0
571
578
  }
@@ -622,6 +629,12 @@ const qa = {
622
629
  },
623
630
  handleClickMeteo(t) {
624
631
  t.forecastModel = this.forecastModel, this.$emit("meteoMore", t);
632
+ },
633
+ handleHover() {
634
+ this.map.getCanvas().style.cursor = "pointer";
635
+ },
636
+ handleLeave() {
637
+ this.map.getCanvas().style.cursor = "grab";
625
638
  }
626
639
  }
627
640
  }, Ka = { class: "port-box d-flex flex-column justify-center align-start ga-2" }, Qa = { class: "d-flex justify-start align-center" }, Ja = { class: "d-flex justify-start align-center" }, $a = { class: "d-flex justify-start align-center" }, ei = { class: "d-flex justify-start align-center" };
@@ -637,11 +650,12 @@ function ti(t, e, o, i, a, r) {
637
650
  m(s, {
638
651
  icon: "",
639
652
  density: "compact",
653
+ variant: "plain",
640
654
  class: "mr-n2 close",
641
655
  onClick: e[0] || (e[0] = (f) => a.showInfo = !1)
642
656
  }, {
643
657
  default: u(() => e[2] || (e[2] = [
644
- l("i", { class: "iconfont icon-close opacity-70" }, null, -1)
658
+ l("i", { class: "iconfont icon-close opacity-70 text-h4" }, null, -1)
645
659
  ])),
646
660
  _: 1,
647
661
  __: [2]
@@ -692,7 +706,7 @@ function ti(t, e, o, i, a, r) {
692
706
  [We, a.showInfo]
693
707
  ]);
694
708
  }
695
- const oi = /* @__PURE__ */ Z(qa, [["render", ti], ["__scopeId", "data-v-a856b640"]]), ai = {
709
+ const oi = /* @__PURE__ */ Z(qa, [["render", ti], ["__scopeId", "data-v-7bb500ee"]]), ai = {
696
710
  name: "IdmLoadLine",
697
711
  props: {
698
712
  map: {
@@ -1390,8 +1404,8 @@ const Ci = {
1390
1404
  watch: {
1391
1405
  show: {
1392
1406
  handler() {
1393
- var t, e;
1394
- this.show ? (this.handleRender(), (t = this.map) == null || t.on("click", [this.layer], this.handleClick)) : (this.handleClear(), (e = this.map) == null || e.off("click", [this.layer], this.handleClick));
1407
+ var t, e, o, i, a, r;
1408
+ this.show ? (this.handleRender(), (t = this.map) == null || t.on("click", [this.layer], this.handleClick), (e = this.map) == null || e.on("mouseenter", [this.layer], this.handleHover), (o = this.map) == null || o.on("mouseleave", [this.layer], this.handleLeave)) : (this.handleClear(), (i = this.map) == null || i.off("click", [this.layer], this.handleClick), (a = this.map) == null || a.off("mouseenter", [this.layer], this.handleHover), (r = this.map) == null || r.off("mouseleave", [this.layer], this.handleLeave));
1395
1409
  },
1396
1410
  immediate: !0
1397
1411
  },
@@ -1421,6 +1435,12 @@ const Ci = {
1421
1435
  handleClear() {
1422
1436
  var t;
1423
1437
  this.showInfo = !1, (t = this.map) != null && t.getLayer(this.layer) && this.map.setLayoutProperty(this.layer, "visibility", "none");
1438
+ },
1439
+ handleHover() {
1440
+ this.map.getCanvas().style.cursor = "pointer";
1441
+ },
1442
+ handleLeave() {
1443
+ this.map.getCanvas().style.cursor = "grab";
1424
1444
  }
1425
1445
  }
1426
1446
  }, Si = { class: "port-box d-flex flex-column justify-center align-start ga-2" }, Mi = { class: "d-flex justify-start align-center" }, Ti = { class: "d-flex justify-start align-center" }, Ii = { class: "d-flex justify-start align-center" }, Ai = { class: "d-flex justify-start align-center" };
@@ -1433,11 +1453,12 @@ function Ri(t, e, o, i, a, r) {
1433
1453
  m(s, {
1434
1454
  icon: "",
1435
1455
  density: "compact",
1456
+ variant: "plain",
1436
1457
  class: "mr-n2 close",
1437
1458
  onClick: e[0] || (e[0] = (g) => a.showInfo = !1)
1438
1459
  }, {
1439
1460
  default: u(() => e[1] || (e[1] = [
1440
- l("i", { class: "iconfont icon-close opacity-70" }, null, -1)
1461
+ l("i", { class: "iconfont icon-close opacity-70 text-h4" }, null, -1)
1441
1462
  ])),
1442
1463
  _: 1,
1443
1464
  __: [1]
@@ -1469,7 +1490,7 @@ function Ri(t, e, o, i, a, r) {
1469
1490
  [We, a.showInfo]
1470
1491
  ]);
1471
1492
  }
1472
- const Di = /* @__PURE__ */ Z(Ci, [["render", Ri], ["__scopeId", "data-v-ca81f9bd"]]), Oi = {
1493
+ const Di = /* @__PURE__ */ Z(Ci, [["render", Ri], ["__scopeId", "data-v-851cf973"]]), Oi = {
1473
1494
  name: "IdmIceAreas",
1474
1495
  props: {
1475
1496
  map: {
@@ -1968,11 +1989,12 @@ function Ji(t, e, o, i, a, r) {
1968
1989
  m(s, {
1969
1990
  icon: "",
1970
1991
  density: "compact",
1992
+ variant: "plain",
1971
1993
  class: "mr-n2",
1972
1994
  onClick: r.handleMenuToggle
1973
1995
  }, {
1974
1996
  default: u(() => e[6] || (e[6] = [
1975
- l("i", { class: "iconfont icon-close opacity-70" }, null, -1)
1997
+ l("i", { class: "iconfont icon-close opacity-70 text-h4" }, null, -1)
1976
1998
  ])),
1977
1999
  _: 1,
1978
2000
  __: [6]
@@ -5727,11 +5749,12 @@ function El(t, e, o, i, a, r) {
5727
5749
  m(s, {
5728
5750
  icon: "",
5729
5751
  density: "compact",
5752
+ variant: "plain",
5730
5753
  class: "mr-n2",
5731
5754
  onClick: r.handleMenuToggle
5732
5755
  }, {
5733
5756
  default: u(() => e[12] || (e[12] = [
5734
- l("i", { class: "iconfont icon-close opacity-70" }, null, -1)
5757
+ l("i", { class: "iconfont icon-close opacity-70 text-h4" }, null, -1)
5735
5758
  ])),
5736
5759
  _: 1,
5737
5760
  __: [12]
@@ -7643,11 +7666,12 @@ function is(t, e, o, i, a, r) {
7643
7666
  m(s, {
7644
7667
  icon: "",
7645
7668
  density: "compact",
7669
+ variant: "plain",
7646
7670
  class: "close",
7647
7671
  onClick: e[0] || (e[0] = (P) => a.showTropicalsInfo = !1)
7648
7672
  }, {
7649
7673
  default: u(() => e[5] || (e[5] = [
7650
- l("i", { class: "iconfont icon-close opacity-70" }, null, -1)
7674
+ l("i", { class: "iconfont icon-close opacity-70 text-h4" }, null, -1)
7651
7675
  ])),
7652
7676
  _: 1,
7653
7677
  __: [5]
@@ -8461,11 +8485,12 @@ function Cs(t, e, o, i, a, r) {
8461
8485
  m(s, {
8462
8486
  icon: "",
8463
8487
  density: "compact",
8488
+ variant: "plain",
8464
8489
  class: "mr-n2",
8465
8490
  onClick: r.handleCloseForm
8466
8491
  }, {
8467
8492
  default: u(() => e[9] || (e[9] = [
8468
- l("i", { class: "iconfont icon-close opacity-70" }, null, -1)
8493
+ l("i", { class: "iconfont icon-close opacity-70 text-h4" }, null, -1)
8469
8494
  ])),
8470
8495
  _: 1,
8471
8496
  __: [9]
@@ -8784,11 +8809,12 @@ function Cs(t, e, o, i, a, r) {
8784
8809
  m(s, {
8785
8810
  icon: "",
8786
8811
  density: "compact",
8812
+ variant: "plain",
8787
8813
  class: "mr-n2",
8788
8814
  onClick: r.handleCloseMeteo
8789
8815
  }, {
8790
8816
  default: u(() => e[24] || (e[24] = [
8791
- l("i", { class: "iconfont icon-close opacity-70" }, null, -1)
8817
+ l("i", { class: "iconfont icon-close opacity-70 text-h4" }, null, -1)
8792
8818
  ])),
8793
8819
  _: 1,
8794
8820
  __: [24]