@idmwx/idmui-gl4 0.5.1 → 0.5.3

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
@@ -1447,6 +1447,9 @@ const Xa = {
1447
1447
  map: {
1448
1448
  type: Object
1449
1449
  },
1450
+ theme: {
1451
+ type: String
1452
+ },
1450
1453
  token: {
1451
1454
  type: String
1452
1455
  },
@@ -1530,6 +1533,12 @@ const Xa = {
1530
1533
  },
1531
1534
  immediate: !0
1532
1535
  },
1536
+ theme: {
1537
+ handler() {
1538
+ this.mapFeather = this.theme === "light" ? "light" : "dark";
1539
+ },
1540
+ immediate: !0
1541
+ },
1533
1542
  mapFeather: {
1534
1543
  handler() {
1535
1544
  localStorage.setItem(this.cache.mapFeatherKey, this.mapFeather), this.$emit("mapFeather", this.mapFeather), this.$emit("theme", ["light", "nautical"].includes(this.mapFeather) ? "light" : "dark");
@@ -71848,7 +71857,8 @@ const Kl = {
71848
71857
  mapFeather: {
71849
71858
  handler() {
71850
71859
  this.mapFeather && this.$nextTick(() => {
71851
- this.initOnlineMap();
71860
+ var o;
71861
+ this.map ? (o = this.map) == null || o.setStyle(this.helper.mapboxStyle[this.mapFeather]) : this.initOnlineMap();
71852
71862
  });
71853
71863
  },
71854
71864
  immediate: !0
@@ -71901,7 +71911,7 @@ const Kl = {
71901
71911
  }
71902
71912
  }, Jl = { class: "mapbox-initial-gl4" }, Ql = { class: "v-btn--variant-elevated rounded" }, $l = { class: "zoom" };
71903
71913
  function es(o, e, t, i, a, r) {
71904
- const s = w("v-btn");
71914
+ const s = w("VBtn");
71905
71915
  return y(), M("div", Jl, [
71906
71916
  e[2] || (e[2] = l("div", { id: "map" }, null, -1)),
71907
71917
  l("div", {