@idmwx/idmui-gl4 1.5.0 → 1.5.2
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
|
@@ -10858,10 +10858,10 @@ const Xc = {
|
|
|
10858
10858
|
mounted() {
|
|
10859
10859
|
this.timer = setInterval(() => {
|
|
10860
10860
|
this.currentRealTime = `${D.tz(D().unix() * 1e3, this.timeZoneName).clone().format("HH:mm")}`;
|
|
10861
|
-
}, 100);
|
|
10861
|
+
}, 100), document.addEventListener("click", this.handleClickOutside);
|
|
10862
10862
|
},
|
|
10863
10863
|
unmounted() {
|
|
10864
|
-
clearInterval(this.timer), this.handleCancelDate();
|
|
10864
|
+
clearInterval(this.timer), this.handleCancelDate(), document.removeEventListener("click", this.handleClickOutside);
|
|
10865
10865
|
},
|
|
10866
10866
|
methods: {
|
|
10867
10867
|
handleReset() {
|
|
@@ -10876,7 +10876,7 @@ const Xc = {
|
|
|
10876
10876
|
},
|
|
10877
10877
|
handleResetDateRange() {
|
|
10878
10878
|
var a, r, s;
|
|
10879
|
-
if (
|
|
10879
|
+
if (!this.dayAbout.h || !this.dayAbout.f)
|
|
10880
10880
|
return;
|
|
10881
10881
|
const t = D().utc().date(), e = Math.ceil(D().utc().hour() / 3) * 3, o = ((a = D()) == null ? void 0 : a.utc().set({ date: t, hour: e, minute: 0, second: 0, millisecond: 0 }).unix()) * 1e3, i = D.tz(o, this.timeZoneName).clone();
|
|
10882
10882
|
this.dateRange = [
|
|
@@ -10905,9 +10905,16 @@ const Xc = {
|
|
|
10905
10905
|
this.showDatePicker = !1;
|
|
10906
10906
|
const t = D.tz(this.currentTimestamp, this.timeZoneName).clone();
|
|
10907
10907
|
this.currentDate = t.clone().format("YYYY-MM-DD"), this.currentTime = t.clone().format("HH:00");
|
|
10908
|
+
},
|
|
10909
|
+
handleClickOutside(t) {
|
|
10910
|
+
const e = this.$refs.idmGl4Timepicker;
|
|
10911
|
+
e && !e.contains(t.target) && (this.showDatePicker = !1);
|
|
10908
10912
|
}
|
|
10909
10913
|
}
|
|
10910
|
-
}, Kc = {
|
|
10914
|
+
}, Kc = {
|
|
10915
|
+
class: "idm-gl4-timepicker",
|
|
10916
|
+
ref: "idmGl4Timepicker"
|
|
10917
|
+
}, $c = {
|
|
10911
10918
|
class: "pa-0",
|
|
10912
10919
|
style: { width: "250px" }
|
|
10913
10920
|
}, Qc = {
|
|
@@ -11000,7 +11007,7 @@ function em(t, e, o, i, a, r) {
|
|
|
11000
11007
|
h(s, {
|
|
11001
11008
|
size: "small",
|
|
11002
11009
|
variant: "tonal",
|
|
11003
|
-
class: "text-none",
|
|
11010
|
+
class: "text-none text-body-2",
|
|
11004
11011
|
onClick: r.handleCancelDate
|
|
11005
11012
|
}, {
|
|
11006
11013
|
default: u(() => e[1] || (e[1] = [
|
|
@@ -11013,7 +11020,7 @@ function em(t, e, o, i, a, r) {
|
|
|
11013
11020
|
size: "small",
|
|
11014
11021
|
variant: "tonal",
|
|
11015
11022
|
color: "primary",
|
|
11016
|
-
class: "text-none",
|
|
11023
|
+
class: "text-none text-body-2",
|
|
11017
11024
|
onClick: r.handleConfirmDate
|
|
11018
11025
|
}, {
|
|
11019
11026
|
default: u(() => e[2] || (e[2] = [
|
|
@@ -11028,7 +11035,7 @@ function em(t, e, o, i, a, r) {
|
|
|
11028
11035
|
]),
|
|
11029
11036
|
_: 1
|
|
11030
11037
|
}, 8, ["class"])) : I("", !0)
|
|
11031
|
-
]);
|
|
11038
|
+
], 512);
|
|
11032
11039
|
}
|
|
11033
11040
|
const no = /* @__PURE__ */ X(Xc, [["render", em]]);
|
|
11034
11041
|
const tm = {
|
|
@@ -13082,7 +13089,7 @@ class Um {
|
|
|
13082
13089
|
},
|
|
13083
13090
|
i4: this.i4.source
|
|
13084
13091
|
},
|
|
13085
|
-
sprite: "mapbox://sprites/neatchenheng/cmd894dwn036m01rf7anc0k0d/
|
|
13092
|
+
sprite: "mapbox://sprites/neatchenheng/cmd894dwn036m01rf7anc0k0d/bph0p8ithotzwly53az7lwdmv",
|
|
13086
13093
|
glyphs: "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
|
|
13087
13094
|
projection: {
|
|
13088
13095
|
name: "equirectangular"
|
|
@@ -19906,7 +19913,7 @@ class Um {
|
|
|
19906
19913
|
type: "vector"
|
|
19907
19914
|
}
|
|
19908
19915
|
},
|
|
19909
|
-
sprite: "mapbox://sprites/neatchenheng/cmdiadnej03n101r485bs2m6a/
|
|
19916
|
+
sprite: "mapbox://sprites/neatchenheng/cmdiadnej03n101r485bs2m6a/3ypt5l12v7es7ihchvsclc3i2",
|
|
19910
19917
|
glyphs: "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
|
|
19911
19918
|
projection: {
|
|
19912
19919
|
name: "equirectangular"
|