@idmwx/idmui-gl4 0.7.9 → 0.8.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.
package/dist/index.js
CHANGED
|
@@ -5074,12 +5074,12 @@ const al = {
|
|
|
5074
5074
|
},
|
|
5075
5075
|
checkList: {
|
|
5076
5076
|
handler(t, e) {
|
|
5077
|
-
this.handleCheckListChange(t, e), this.$emit("weatherCheckList", t), this.autoActive && this.checkList.length ? this.$parent.$refs.idmBottomBar.handleToggle(!0) : this.$parent.$refs.idmBottomBar.handleToggle(!1);
|
|
5077
|
+
this.handleCheckListChange(t, e), this.$emit("weatherCheckList", t), this.autoActive && this.checkList.length ? this.$parent.$refs.idmBottomBar.handleToggle("weather", !0) : this.$parent.$refs.idmBottomBar.handleToggle("weather", !1);
|
|
5078
5078
|
}
|
|
5079
5079
|
},
|
|
5080
5080
|
autoActive: {
|
|
5081
5081
|
handler(t) {
|
|
5082
|
-
localStorage.setItem(this.cache.autoActiveKey, this.autoActive), this.activeWeatherLayers = this.autoActive ? this.allLayers.filter((e) => this.checkList.includes(e.key)) : [], this.handleWeatherLayerChange(), this.autoActive && this.checkList.length ? this.$parent.$refs.idmBottomBar.handleToggle(!0) : this.$parent.$refs.idmBottomBar.handleToggle(!1), this.$emit("autoActive", this.autoActive);
|
|
5082
|
+
localStorage.setItem(this.cache.autoActiveKey, this.autoActive), this.activeWeatherLayers = this.autoActive ? this.allLayers.filter((e) => this.checkList.includes(e.key)) : [], this.handleWeatherLayerChange(), this.autoActive && this.checkList.length ? this.$parent.$refs.idmBottomBar.handleToggle("weather", !0) : this.$parent.$refs.idmBottomBar.handleToggle("weather", !1), this.$emit("autoActive", this.autoActive);
|
|
5083
5083
|
}
|
|
5084
5084
|
},
|
|
5085
5085
|
iceToggleValue: {
|
|
@@ -7132,7 +7132,7 @@ const Nl = {
|
|
|
7132
7132
|
},
|
|
7133
7133
|
timeZone: {
|
|
7134
7134
|
handler() {
|
|
7135
|
-
|
|
7135
|
+
this.handleRefresh();
|
|
7136
7136
|
}
|
|
7137
7137
|
}
|
|
7138
7138
|
},
|
|
@@ -7140,7 +7140,7 @@ const Nl = {
|
|
|
7140
7140
|
},
|
|
7141
7141
|
methods: {
|
|
7142
7142
|
handleMenuToggle() {
|
|
7143
|
-
this.toggle = !this.toggle, localStorage.setItem(this.tropicalCacheKey, this.toggle), this.toggle ? this.fetchTropicals() : this.handleClear();
|
|
7143
|
+
this.toggle = !this.toggle, localStorage.setItem(this.tropicalCacheKey, this.toggle), this.toggle ? this.fetchTropicals() : (this.handleClear(), this.$parent.$refs.idmBottomBar.handleToggle("tropical", !1));
|
|
7144
7144
|
},
|
|
7145
7145
|
async fetchTropicals() {
|
|
7146
7146
|
var a, r, s;
|
|
@@ -7186,7 +7186,7 @@ const Nl = {
|
|
|
7186
7186
|
}), this.handleInit();
|
|
7187
7187
|
},
|
|
7188
7188
|
handleInit() {
|
|
7189
|
-
var t;
|
|
7189
|
+
var t, e, o, i;
|
|
7190
7190
|
this.tropicals && (this.handleRender(), (t = this.map) == null || t.on(
|
|
7191
7191
|
"click",
|
|
7192
7192
|
[
|
|
@@ -7200,7 +7200,7 @@ const Nl = {
|
|
|
7200
7200
|
this.historyPointLabelLayer
|
|
7201
7201
|
],
|
|
7202
7202
|
this.handleClick
|
|
7203
|
-
));
|
|
7203
|
+
)), ((i = (o = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : o.features) == null ? void 0 : i.length) > 0 ? this.$parent.$refs.idmBottomBar.handleToggle("tropical", !0) : this.$parent.$refs.idmBottomBar.handleToggle("tropical", !1);
|
|
7204
7204
|
},
|
|
7205
7205
|
handleRender() {
|
|
7206
7206
|
var t, e, o, i, a, r, s, c, n, g;
|
|
@@ -9444,7 +9444,11 @@ const Rs = {
|
|
|
9444
9444
|
data() {
|
|
9445
9445
|
return {
|
|
9446
9446
|
right: 10,
|
|
9447
|
-
show:
|
|
9447
|
+
show: {
|
|
9448
|
+
weather: !1,
|
|
9449
|
+
tropical: !1,
|
|
9450
|
+
ship: !1
|
|
9451
|
+
},
|
|
9448
9452
|
dayAbout: { h: -7, f: 14 },
|
|
9449
9453
|
currentDateTimeZ: void 0,
|
|
9450
9454
|
currentTimestamp: void 0,
|
|
@@ -9511,8 +9515,8 @@ const Rs = {
|
|
|
9511
9515
|
handleReset() {
|
|
9512
9516
|
this.handlePause(), this.startAnimate = 0;
|
|
9513
9517
|
},
|
|
9514
|
-
handleToggle(t) {
|
|
9515
|
-
this.show =
|
|
9518
|
+
handleToggle(t, e) {
|
|
9519
|
+
this.show[t] = e, console.log();
|
|
9516
9520
|
},
|
|
9517
9521
|
handleBackward() {
|
|
9518
9522
|
this.handlePause(), this.step -= 1;
|
|
@@ -9548,7 +9552,7 @@ const Rs = {
|
|
|
9548
9552
|
function Gs(t, e, o, i, a, r) {
|
|
9549
9553
|
const s = w("DateTimePicker"), c = w("VListItemTitle"), n = w("VListItem"), g = w("VList"), p = w("VMenu"), d = w("VBtn"), f = w("VDivider"), z = w("VTooltip");
|
|
9550
9554
|
return b(), T("div", Ds, [
|
|
9551
|
-
a.show ? (b(), T("div", {
|
|
9555
|
+
Object.values(a.show).includes(!0) ? (b(), T("div", {
|
|
9552
9556
|
key: 0,
|
|
9553
9557
|
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
9554
9558
|
style: ae({ right: a.right + 146 + "px" })
|