lh-ui-next 0.1.7-beta.13 → 0.1.7-beta.14
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/README.md +2 -2
- package/lib/lh-ui-next.mjs +53 -69
- package/lib/lh-ui-next.umd.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
alpha version is use to self-test; beta version is use to public survey.for example:
|
|
5
5
|
1.0.0-alpha.1
|
|
6
6
|
1.0.0-test.2
|
|
7
|
-
## Official version : "0.1.7-beta.
|
|
8
|
-
## test version : "0.1.7-beta.
|
|
7
|
+
## Official version : "0.1.7-beta.14",
|
|
8
|
+
## test version : "0.1.7-beta.14",
|
|
9
9
|
## npmmirror
|
|
10
10
|
When cnpm sync execution is unsuccessful,you can go the website(http://www.npmmirror.com/package/lh-ui-next) and press sync button to
|
|
11
11
|
manual trigger the sync event
|
package/lib/lh-ui-next.mjs
CHANGED
|
@@ -1183,7 +1183,7 @@ const Z = /* @__PURE__ */ C(Pt, [["render", Vt]]), Nt = {
|
|
|
1183
1183
|
}, Dt = {
|
|
1184
1184
|
key: 0,
|
|
1185
1185
|
class: "lh-select-search"
|
|
1186
|
-
}, Mt = ["onClick"], Rt = ["title", "innerHTML"], Bt = ["onClick"], Ft = ["innerHTML"],
|
|
1186
|
+
}, Mt = ["onClick"], Rt = ["title", "innerHTML"], Bt = ["onClick"], Ft = ["innerHTML"], Et = ["onClick"], Wt = ["innerHTML"], Ht = {
|
|
1187
1187
|
key: 3,
|
|
1188
1188
|
class: "nullMsg"
|
|
1189
1189
|
}, Ot = ["title"], At = ["innerHTML"], Ut = {
|
|
@@ -1296,8 +1296,8 @@ function Kt(e, t, i, s, l, n) {
|
|
|
1296
1296
|
}, [
|
|
1297
1297
|
d("span", {
|
|
1298
1298
|
innerHTML: u.name
|
|
1299
|
-
}, null, 8,
|
|
1300
|
-
], 10,
|
|
1299
|
+
}, null, 8, Wt)
|
|
1300
|
+
], 10, Et)), [
|
|
1301
1301
|
[V, n.filterTextIn(u.name)]
|
|
1302
1302
|
])), 256)),
|
|
1303
1303
|
l.myoptionList.length === 0 ? (o(), c("div", Ht, "-\xA0" + g(i.nullMsg) + "\xA0-", 1)) : m("", !0)
|
|
@@ -1865,7 +1865,7 @@ const Vi = /([\:\-\_]+(.))/g, Ni = /^moz([A-Z])/, Di = Number(document.documentM
|
|
|
1865
1865
|
return l ? s.toUpperCase() : s;
|
|
1866
1866
|
}).replace(Ni, "Moz$1");
|
|
1867
1867
|
};
|
|
1868
|
-
function
|
|
1868
|
+
function Ee(e, t) {
|
|
1869
1869
|
if (!e || !t)
|
|
1870
1870
|
return !1;
|
|
1871
1871
|
if (t.indexOf(" ") !== -1)
|
|
@@ -1879,7 +1879,7 @@ function K(e, t) {
|
|
|
1879
1879
|
const s = (t || "").split(" ");
|
|
1880
1880
|
for (let l = 0, n = s.length; l < n; l++) {
|
|
1881
1881
|
const a = s[l];
|
|
1882
|
-
!a || (e.classList ? e.classList.add(a) :
|
|
1882
|
+
!a || (e.classList ? e.classList.add(a) : Ee(e, a) || (i += " " + a));
|
|
1883
1883
|
}
|
|
1884
1884
|
e.classList || e.setAttribute("class", i);
|
|
1885
1885
|
}
|
|
@@ -1890,11 +1890,11 @@ function q(e, t) {
|
|
|
1890
1890
|
let s = " " + e.className + " ";
|
|
1891
1891
|
for (let l = 0, n = i.length; l < n; l++) {
|
|
1892
1892
|
const a = i[l];
|
|
1893
|
-
!a || (e.classList ? e.classList.remove(a) :
|
|
1893
|
+
!a || (e.classList ? e.classList.remove(a) : Ee(e, a) && (s = s.replace(" " + a + " ", " ")));
|
|
1894
1894
|
}
|
|
1895
1895
|
e.classList || e.setAttribute("class", Mi(s));
|
|
1896
1896
|
}
|
|
1897
|
-
const
|
|
1897
|
+
const E = Di < 9 ? function(e, t) {
|
|
1898
1898
|
if (!e || !t)
|
|
1899
1899
|
return null;
|
|
1900
1900
|
t = Ke(t), t === "float" && (t = "styleFloat");
|
|
@@ -2019,7 +2019,7 @@ function Bi() {
|
|
|
2019
2019
|
return e.parentNode.removeChild(e), we = t - s, we;
|
|
2020
2020
|
}
|
|
2021
2021
|
let Fi = 1, Ve;
|
|
2022
|
-
const
|
|
2022
|
+
const Ei = {
|
|
2023
2023
|
props: {
|
|
2024
2024
|
visible: {
|
|
2025
2025
|
type: Boolean,
|
|
@@ -2097,8 +2097,8 @@ const Wi = {
|
|
|
2097
2097
|
this._opening = !0;
|
|
2098
2098
|
const t = this.$el, i = e.modal, s = e.zIndex;
|
|
2099
2099
|
if (s && (z.zIndex = s), i && (this._closing && (z.closeModal(this._popupId), this._closing = !1), z.openModal(this._popupId, z.nextZIndex(), this.modalAppendToBody ? void 0 : t, e.modalClass, e.modalFade), e.lockScroll)) {
|
|
2100
|
-
this.withoutHiddenClass = !
|
|
2101
|
-
const l = document.documentElement.clientHeight < document.body.scrollHeight, n =
|
|
2100
|
+
this.withoutHiddenClass = !Ee(document.body, "lh-popup-parent--hidden"), this.withoutHiddenClass && (this.bodyPaddingRight = document.body.style.paddingRight, this.computedBodyPaddingRight = parseInt(E(document.body, "paddingRight"), 10)), Ve = Bi();
|
|
2101
|
+
const l = document.documentElement.clientHeight < document.body.scrollHeight, n = E(document.body, "overflowY");
|
|
2102
2102
|
Ve > 0 && (l || n === "scroll") && this.withoutHiddenClass && (document.body.style.paddingRight = this.computedBodyPaddingRight + Ve + "px"), K(document.body, "lh-popup-parent--hidden");
|
|
2103
2103
|
}
|
|
2104
2104
|
getComputedStyle(t).position === "static" && (t.style.position = "absolute"), t.style.zIndex = z.nextZIndex(), this.opened = !0, this.onOpen && this.onOpen(), this.doAfterOpen();
|
|
@@ -2128,11 +2128,11 @@ const Wi = {
|
|
|
2128
2128
|
)), this.withoutHiddenClass = !0;
|
|
2129
2129
|
}
|
|
2130
2130
|
}
|
|
2131
|
-
},
|
|
2131
|
+
}, Wi = {
|
|
2132
2132
|
name: "lhDialog",
|
|
2133
2133
|
componentName: "lhDialog",
|
|
2134
2134
|
emits: ["open", "close", "opened", "closed", "update:visible"],
|
|
2135
|
-
mixins: [
|
|
2135
|
+
mixins: [Ei],
|
|
2136
2136
|
props: {
|
|
2137
2137
|
modal: {
|
|
2138
2138
|
type: Boolean,
|
|
@@ -2240,7 +2240,7 @@ function Oi(e, t, i, s, l, n) {
|
|
|
2240
2240
|
_: 3
|
|
2241
2241
|
}, 8, ["onAfterEnter", "onAfterLeave"]);
|
|
2242
2242
|
}
|
|
2243
|
-
const ne = /* @__PURE__ */ C(
|
|
2243
|
+
const ne = /* @__PURE__ */ C(Wi, [["render", Oi]]);
|
|
2244
2244
|
ne.install = function(e) {
|
|
2245
2245
|
e.component(ne.name, ne);
|
|
2246
2246
|
};
|
|
@@ -3115,10 +3115,10 @@ const Dl = /* @__PURE__ */ C(Tl, [["render", Nl]]), Ml = {
|
|
|
3115
3115
|
beforeUnmount() {
|
|
3116
3116
|
window.removeEventListener("resize", this.listenResize);
|
|
3117
3117
|
}
|
|
3118
|
-
}, Rl = ["innerHTML"], Bl = ["title"], Fl = ["innerHTML"],
|
|
3118
|
+
}, Rl = ["innerHTML"], Bl = ["title"], Fl = ["innerHTML"], El = {
|
|
3119
3119
|
key: 0,
|
|
3120
3120
|
class: "lh-select-node lh-select-node-close pull-left"
|
|
3121
|
-
},
|
|
3121
|
+
}, Wl = /* @__PURE__ */ d("i", { class: "dropdown-icon lh-ui-font-component icon_component_arrow_down" }, null, -1);
|
|
3122
3122
|
function Hl(e, t, i, s, l, n) {
|
|
3123
3123
|
const a = w("lh-input"), r = w("lh-tree"), h = w("lh-button"), u = w("treeResizeWapper"), p = w("lh-popover");
|
|
3124
3124
|
return o(), M(p, {
|
|
@@ -3161,9 +3161,9 @@ function Hl(e, t, i, s, l, n) {
|
|
|
3161
3161
|
})
|
|
3162
3162
|
], 8, Bl)) : m("", !0)
|
|
3163
3163
|
], 64))), 256)),
|
|
3164
|
-
l.showList.length > 1 ? (o(), c("span",
|
|
3164
|
+
l.showList.length > 1 ? (o(), c("span", El, " +" + g(l.showList.length - 1), 1)) : m("", !0)
|
|
3165
3165
|
], 64)),
|
|
3166
|
-
|
|
3166
|
+
Wl
|
|
3167
3167
|
], 2)
|
|
3168
3168
|
], 2)
|
|
3169
3169
|
]),
|
|
@@ -4854,11 +4854,11 @@ let Ne = {
|
|
|
4854
4854
|
for (l = 1; l < 13 && u > 0; l++)
|
|
4855
4855
|
B > 0 && l == B + 1 && P == !1 ? (--l, P = !0, n = this.leapDays(D)) : n = this.monthDays(D, l), P == !0 && l == B + 1 && (P = !1), u -= n;
|
|
4856
4856
|
u == 0 && B > 0 && l == B + 1 && (P ? P = !1 : (P = !0, --l)), u < 0 && (u += n, --l);
|
|
4857
|
-
var R = l,
|
|
4857
|
+
var R = l, W = u + 1, it = r - 1, lt = this.toGanZhiYear(D), He = this.getTerm(a, r * 2 - 1), nt = this.getTerm(a, r * 2), Oe = this.toGanZhi((a - 1900) * 12 + r + 11);
|
|
4858
4858
|
h >= He && (Oe = this.toGanZhi((a - 1900) * 12 + r + 12));
|
|
4859
4859
|
var Pe = !1, ze = null;
|
|
4860
4860
|
He == h && (Pe = !0, ze = this.solarTerm[r * 2 - 2]), nt == h && (Pe = !0, ze = this.solarTerm[r * 2 - 1]);
|
|
4861
|
-
var st = Date.UTC(a, it, 1, 0, 0, 0, 0) / 864e5 + 25567 + 10, at = this.toGanZhi(st + h - 1), ot = this.toAstro(r, h), rt = a + "-" + (r < 10 ? "0" + r.toString() : r) + "-" + (h < 10 ? "0" + h.toString() : h), ct = D + "-" + R + "-" +
|
|
4861
|
+
var st = Date.UTC(a, it, 1, 0, 0, 0, 0) / 864e5 + 25567 + 10, at = this.toGanZhi(st + h - 1), ot = this.toAstro(r, h), rt = a + "-" + (r < 10 ? "0" + r.toString() : r) + "-" + (h < 10 ? "0" + h.toString() : h), ct = D + "-" + R + "-" + W, Ae = this.festival, Ue = this.lfestival, je = r + "-" + h, Ye = R + "-" + W;
|
|
4862
4862
|
return {
|
|
4863
4863
|
date: rt,
|
|
4864
4864
|
lunarDate: ct,
|
|
@@ -4866,10 +4866,10 @@ let Ne = {
|
|
|
4866
4866
|
lunarFestival: Ue[Ye] ? Ue[Ye].title : null,
|
|
4867
4867
|
lYear: D,
|
|
4868
4868
|
lMonth: R,
|
|
4869
|
-
lDay:
|
|
4869
|
+
lDay: W,
|
|
4870
4870
|
Animal: this.getAnimal(D),
|
|
4871
4871
|
IMonthCn: (P ? "\u95F0" : "") + this.toChinaMonth(R),
|
|
4872
|
-
IDayCn: this.toChinaDay(
|
|
4872
|
+
IDayCn: this.toChinaDay(W),
|
|
4873
4873
|
cYear: a,
|
|
4874
4874
|
cMonth: r,
|
|
4875
4875
|
cDay: h,
|
|
@@ -4938,13 +4938,13 @@ const Qe = {
|
|
|
4938
4938
|
if (h < s - 1) {
|
|
4939
4939
|
let P = "", R = "";
|
|
4940
4940
|
t === 1 ? (P = 12, R = e - 1) : (P = t - 1, R = e);
|
|
4941
|
-
let
|
|
4942
|
-
u = h +
|
|
4941
|
+
let W = this.getDayCount4Month(R, P);
|
|
4942
|
+
u = h + W - s + 2, p = Ne.solar2lunar(R, P, u), v = this.disabledNotCurrentMonth;
|
|
4943
4943
|
} else if (h > l - 1) {
|
|
4944
4944
|
let P = "", R = "";
|
|
4945
4945
|
t === 12 ? (P = 1, R = e + 1) : (P = t + 1, R = e);
|
|
4946
|
-
let
|
|
4947
|
-
|
|
4946
|
+
let W = (h + 1) % 7;
|
|
4947
|
+
W = W === 0 ? 7 : W, u = W - (7 - (a - l)), p = Ne.solar2lunar(R, P, u), v = this.disabledNotCurrentMonth;
|
|
4948
4948
|
} else
|
|
4949
4949
|
u = h - s + 2, p = Ne.solar2lunar(e, t, u);
|
|
4950
4950
|
let S = !1;
|
|
@@ -5015,7 +5015,7 @@ const Qe = {
|
|
|
5015
5015
|
month: e.getMonth() + 1
|
|
5016
5016
|
};
|
|
5017
5017
|
}
|
|
5018
|
-
},
|
|
5018
|
+
}, En = {
|
|
5019
5019
|
name: "lhCalendar",
|
|
5020
5020
|
componentName: "lhCalendar",
|
|
5021
5021
|
mixins: [Qe],
|
|
@@ -5030,7 +5030,7 @@ const Qe = {
|
|
|
5030
5030
|
default: "table"
|
|
5031
5031
|
}
|
|
5032
5032
|
}
|
|
5033
|
-
},
|
|
5033
|
+
}, Wn = { class: "lh-calendar" }, Hn = {
|
|
5034
5034
|
key: 0,
|
|
5035
5035
|
class: "lh-calendar-table"
|
|
5036
5036
|
}, On = /* @__PURE__ */ d("thead", null, [
|
|
@@ -5054,7 +5054,7 @@ const Qe = {
|
|
|
5054
5054
|
/* @__PURE__ */ d("div", null, "\u5468\u65E5")
|
|
5055
5055
|
], -1), Kn = { class: "flex-wapper" }, Jn = { class: "flex-rows" }, qn = { class: "flex-columns" }, Xn = ["onClick"], Gn = { class: "info-content" };
|
|
5056
5056
|
function Zn(e, t, i, s, l, n) {
|
|
5057
|
-
return o(), c("div",
|
|
5057
|
+
return o(), c("div", Wn, [
|
|
5058
5058
|
i.layoutType == "table" ? (o(), c("table", Hn, [
|
|
5059
5059
|
On,
|
|
5060
5060
|
d("tbody", null, [
|
|
@@ -5097,7 +5097,7 @@ function Zn(e, t, i, s, l, n) {
|
|
|
5097
5097
|
])) : m("", !0)
|
|
5098
5098
|
]);
|
|
5099
5099
|
}
|
|
5100
|
-
const me = /* @__PURE__ */ C(
|
|
5100
|
+
const me = /* @__PURE__ */ C(En, [["render", Zn]]);
|
|
5101
5101
|
me.install = function(e) {
|
|
5102
5102
|
e.component(me.name, me);
|
|
5103
5103
|
};
|
|
@@ -5108,10 +5108,6 @@ const Qn = {
|
|
|
5108
5108
|
text: {
|
|
5109
5109
|
type: String,
|
|
5110
5110
|
default: "www.lhseer.com"
|
|
5111
|
-
},
|
|
5112
|
-
mode: {
|
|
5113
|
-
type: String,
|
|
5114
|
-
default: "1"
|
|
5115
5111
|
}
|
|
5116
5112
|
},
|
|
5117
5113
|
data() {
|
|
@@ -5133,7 +5129,7 @@ const Qn = {
|
|
|
5133
5129
|
let i = document.createElement("canvas"), s = 200, l = 200, n = 800, a = 800;
|
|
5134
5130
|
e.length <= 9 ? (a = l = 140, n = s = 80, i.width = 160, i.height = 160) : e.length >= 10 && e.length <= 14 ? (a = l = 200, n = s = 90, n = 180, i.width = 220, i.height = 180) : e.length >= 15 && e.length <= 19 ? (l = 220, s = 100, i.width = a = 2640, i.height = n = 200) : (l = 230, s = 120, i.width = a = 2760, i.height = n = 240);
|
|
5135
5131
|
let r = i.getContext("2d"), h = 15 * Math.PI / 180;
|
|
5136
|
-
r.rotate(-1 * h), r.font = "normal normal 100 14px Microsoft Yahei", r.fillStyle = "
|
|
5132
|
+
r.rotate(-1 * h), r.font = "normal normal 100 14px Microsoft Yahei", r.fillStyle = "rgba(0,0,0,0.1)", r.textAlign = "center", r.textBaseline = "Middle";
|
|
5137
5133
|
let u = l * Math.tan(h), p = -1 * s * Math.tan(h);
|
|
5138
5134
|
for (let v = 0; v <= n; v += s)
|
|
5139
5135
|
for (let S = 0; S < a; S += l) {
|
|
@@ -5154,44 +5150,32 @@ const Qn = {
|
|
|
5154
5150
|
},
|
|
5155
5151
|
addWaterMarker(e) {
|
|
5156
5152
|
if (!(e == "" || e == null || document.getElementById(this.myId) == null))
|
|
5157
|
-
if (localStorage.getItem("
|
|
5153
|
+
if (localStorage.getItem("lh4_" + e)) {
|
|
5158
5154
|
let i = document.getElementById(this.myId);
|
|
5159
|
-
i.style.backgroundImage = "URL(" + localStorage.getItem("
|
|
5155
|
+
i.style.backgroundImage = "URL(" + localStorage.getItem("lh4_" + e) + ")";
|
|
5160
5156
|
} else {
|
|
5161
5157
|
let s = this.createWaterMarkCanvas(e).toDataURL();
|
|
5162
5158
|
try {
|
|
5163
|
-
localStorage.setItem("
|
|
5159
|
+
localStorage.setItem("lh4_" + e, s);
|
|
5164
5160
|
} catch {
|
|
5165
|
-
console.log("waterMark: localstorage overSize,clear and reset it"), localStorage.clear(), localStorage.setItem("
|
|
5161
|
+
console.log("waterMark: localstorage overSize,clear and reset it"), localStorage.clear(), localStorage.setItem("lh4_" + e, s);
|
|
5166
5162
|
}
|
|
5167
5163
|
let l = document.getElementById(this.myId);
|
|
5168
5164
|
l.style.backgroundImage = "URL(" + s + ")";
|
|
5169
5165
|
}
|
|
5170
|
-
},
|
|
5171
|
-
createWaterMarkCanvas2() {
|
|
5172
|
-
const e = document.createElement("canvas"), t = 30 * 2, i = 60 * 2;
|
|
5173
|
-
e.id = "canvas", e.width = t * 2, e.height = i * 2;
|
|
5174
|
-
const s = e.getContext("2d");
|
|
5175
|
-
s.font = "normal 14px PingFangSC SourceHanSansCN", s.fillStyle = "#eee", s.translate(t, i), s.save();
|
|
5176
|
-
const l = t - 10, n = i - 25, a = -30 * (Math.PI / 180);
|
|
5177
|
-
return s.textAlign = "end", s.textBaseline = "top", s.translate(l, -n), s.rotate(a), s.fillText(this.text, 0, 0), s.restore(), s.textAlign = "start", s.textBaseline = "bottom", s.translate(-l, n), s.rotate(a), s.fillText(this.text, 0, 0), e;
|
|
5178
|
-
},
|
|
5179
|
-
addWaterMarker2(e) {
|
|
5180
|
-
let i = this.createWaterMarkCanvas2(e).toDataURL(), s = document.getElementById(this.myId);
|
|
5181
|
-
s.style.backgroundImage = "URL(" + i + ")";
|
|
5182
5166
|
}
|
|
5183
5167
|
},
|
|
5184
5168
|
watch: {
|
|
5185
5169
|
text: {
|
|
5186
5170
|
immediate: !0,
|
|
5187
5171
|
handler: function(e) {
|
|
5188
|
-
this.myId != "testWaterMark" &&
|
|
5172
|
+
this.myId != "testWaterMark" && this.addWaterMarker(e);
|
|
5189
5173
|
}
|
|
5190
5174
|
}
|
|
5191
5175
|
},
|
|
5192
5176
|
mounted() {
|
|
5193
5177
|
this.myId = this.generateUUID(), this.$nextTick(() => {
|
|
5194
|
-
this.
|
|
5178
|
+
this.addWaterMarker(this.text);
|
|
5195
5179
|
});
|
|
5196
5180
|
}
|
|
5197
5181
|
}, $n = ["id"];
|
|
@@ -5403,7 +5387,7 @@ function $e(e) {
|
|
|
5403
5387
|
i ? t = t + s + "=" + encodeURIComponent(e[s]) : t = t + "&" + s + "=" + encodeURIComponent(e[s]), i = !1;
|
|
5404
5388
|
return t;
|
|
5405
5389
|
}
|
|
5406
|
-
function
|
|
5390
|
+
function We(e, t) {
|
|
5407
5391
|
return e = e + "?timeStamp=" + new Date().getTime() + "&" + ($e(t) || ""), new Promise((s, l) => {
|
|
5408
5392
|
const n = new XMLHttpRequest();
|
|
5409
5393
|
n.withCredentials = !0, n.open("get", e), n.setRequestHeader("content-type", "application/x-www-form-urlencoded"), n.send(null), n.onreadystatechange = function() {
|
|
@@ -5598,7 +5582,7 @@ const Ts = {
|
|
|
5598
5582
|
})) : this.resultListData.push({
|
|
5599
5583
|
searchText: e,
|
|
5600
5584
|
resultList: []
|
|
5601
|
-
}), (e == "" || e == null) && !this.withDownClickSearch ? (this.searchResultList = [], this.tipShow = !1, this.$emit("isNew", !1), document.getElementById(this.myid) !== null && (this.visible = !1)) :
|
|
5585
|
+
}), (e == "" || e == null) && !this.withDownClickSearch ? (this.searchResultList = [], this.tipShow = !1, this.$emit("isNew", !1), document.getElementById(this.myid) !== null && (this.visible = !1)) : We(this.url, t).then((i) => {
|
|
5602
5586
|
if (i.code == this.successCode) {
|
|
5603
5587
|
const s = i.data || [];
|
|
5604
5588
|
s.length < 1 && this.inputValue.length > 0 && (this.tipShow = !0, this.$emit("isNew", !0));
|
|
@@ -5835,7 +5819,7 @@ const Vs = {
|
|
|
5835
5819
|
})) : this.resultListData.push({
|
|
5836
5820
|
searchText: e,
|
|
5837
5821
|
resultList: []
|
|
5838
|
-
}), (e === "" || e === null) && !this.withDownClickSearch ? this.searchResultList = [] : (this.myloading = !0,
|
|
5822
|
+
}), (e === "" || e === null) && !this.withDownClickSearch ? this.searchResultList = [] : (this.myloading = !0, We(this.url, t).then((i) => {
|
|
5839
5823
|
this.myloading = !1, i.code == this.successCode && (this.searchResultList = i.data || []);
|
|
5840
5824
|
}));
|
|
5841
5825
|
},
|
|
@@ -6030,10 +6014,10 @@ const Fs = {
|
|
|
6030
6014
|
beforeUnmount() {
|
|
6031
6015
|
document.removeEventListener("keydown", this.keydown);
|
|
6032
6016
|
}
|
|
6033
|
-
},
|
|
6017
|
+
}, Es = {
|
|
6034
6018
|
key: 0,
|
|
6035
6019
|
class: "lh-message__content"
|
|
6036
|
-
},
|
|
6020
|
+
}, Ws = ["innerHTML"];
|
|
6037
6021
|
function Hs(e, t, i, s, l, n) {
|
|
6038
6022
|
return o(), M(Ie, {
|
|
6039
6023
|
name: "lh-message-fade",
|
|
@@ -6065,7 +6049,7 @@ function Hs(e, t, i, s, l, n) {
|
|
|
6065
6049
|
key: 1,
|
|
6066
6050
|
innerHTML: l.message,
|
|
6067
6051
|
class: "lh-message__content"
|
|
6068
|
-
}, null, 8,
|
|
6052
|
+
}, null, 8, Ws)) : (o(), c("p", Es, g(l.message), 1))
|
|
6069
6053
|
]),
|
|
6070
6054
|
l.showClose ? (o(), c("i", {
|
|
6071
6055
|
key: 2,
|
|
@@ -6308,7 +6292,7 @@ const Us = {
|
|
|
6308
6292
|
};
|
|
6309
6293
|
for (let i in this.params)
|
|
6310
6294
|
t[i] = this.params[i];
|
|
6311
|
-
|
|
6295
|
+
We(this.urlDelete, t).then((i) => {
|
|
6312
6296
|
i.code == "5000" || F.error(i.message);
|
|
6313
6297
|
});
|
|
6314
6298
|
}
|
|
@@ -7224,7 +7208,7 @@ const _e = /* @__PURE__ */ C(Ma, [["render", Fa]]);
|
|
|
7224
7208
|
_e.install = function(e) {
|
|
7225
7209
|
e.component(_e.name, _e);
|
|
7226
7210
|
};
|
|
7227
|
-
const
|
|
7211
|
+
const Ea = {
|
|
7228
7212
|
data() {
|
|
7229
7213
|
return {
|
|
7230
7214
|
text: null,
|
|
@@ -7240,7 +7224,7 @@ const Wa = {
|
|
|
7240
7224
|
this.text = e;
|
|
7241
7225
|
}
|
|
7242
7226
|
}
|
|
7243
|
-
},
|
|
7227
|
+
}, Wa = { class: "lh-loading-spinner" }, Ha = {
|
|
7244
7228
|
key: 0,
|
|
7245
7229
|
class: "circular",
|
|
7246
7230
|
viewBox: "25 25 50 50"
|
|
@@ -7266,7 +7250,7 @@ function Ya(e, t, i, s, l, n) {
|
|
|
7266
7250
|
class: f(["lh-loading-mask", [l.customClass, { "is-fullscreen": l.fullscreen }]]),
|
|
7267
7251
|
style: k({ backgroundColor: l.background || "" })
|
|
7268
7252
|
}, [
|
|
7269
|
-
d("div",
|
|
7253
|
+
d("div", Wa, [
|
|
7270
7254
|
l.spinner ? (o(), c("div", Ua, [
|
|
7271
7255
|
d("i", {
|
|
7272
7256
|
class: f(l.spinner)
|
|
@@ -7281,14 +7265,14 @@ function Ya(e, t, i, s, l, n) {
|
|
|
7281
7265
|
_: 1
|
|
7282
7266
|
});
|
|
7283
7267
|
}
|
|
7284
|
-
const et = /* @__PURE__ */ C(
|
|
7268
|
+
const et = /* @__PURE__ */ C(Ea, [["render", Ya]]), De = (e, t) => {
|
|
7285
7269
|
t.value ? Te(() => {
|
|
7286
|
-
t.modifiers.fullscreen ? (e.originalPosition =
|
|
7270
|
+
t.modifiers.fullscreen ? (e.originalPosition = E(document.body, "position"), e.originalOverflow = E(document.body, "overflow"), e.maskStyle.zIndex = "3000", K(e.mask, "is-fullscreen"), Me(document.body, e, t)) : (q(e.mask, "is-fullscreen"), t.modifiers.body ? (e.originalPosition = E(document.body, "position"), ["top", "left"].forEach((i) => {
|
|
7287
7271
|
const s = i === "top" ? "scrollTop" : "scrollLeft";
|
|
7288
|
-
e.maskStyle[i] = e.getBoundingClientRect()[i] + document.body[s] + document.documentElement[s] - parseInt(
|
|
7272
|
+
e.maskStyle[i] = e.getBoundingClientRect()[i] + document.body[s] + document.documentElement[s] - parseInt(E(document.body, `margin-${i}`), 10) + "px";
|
|
7289
7273
|
}), ["height", "width"].forEach((i) => {
|
|
7290
7274
|
e.maskStyle[i] = e.getBoundingClientRect()[i] + "px";
|
|
7291
|
-
}), Me(document.body, e, t)) : (e.originalPosition =
|
|
7275
|
+
}), Me(document.body, e, t)) : (e.originalPosition = E(e, "position"), Me(e, e, t)));
|
|
7292
7276
|
}) : (setTimeout(() => {
|
|
7293
7277
|
if (!e.instance.hiding)
|
|
7294
7278
|
return;
|
|
@@ -7299,7 +7283,7 @@ const et = /* @__PURE__ */ C(Wa, [["render", Ya]]), De = (e, t) => {
|
|
|
7299
7283
|
}, 500);
|
|
7300
7284
|
}, 100), e.instance.hiding = !0);
|
|
7301
7285
|
}, Me = (e, t, i) => {
|
|
7302
|
-
!t.domVisible &&
|
|
7286
|
+
!t.domVisible && E(t, "display") !== "none" && E(t, "visibility") !== "hidden" ? (Object.keys(t.maskStyle).forEach((s) => {
|
|
7303
7287
|
t.mask.style[s] = t.maskStyle[s];
|
|
7304
7288
|
}), t.originalPosition !== "absolute" && t.originalPosition !== "fixed" && K(e, "lh-loading-parent--relative"), i.modifiers.fullscreen && i.modifiers.lock && K(e, "lh-loading-parent--hidden"), t.domVisible = !0, e.appendChild(t.mask), Te(() => {
|
|
7305
7289
|
t.instance.hiding || (t.instance.visible = !0);
|
|
@@ -7338,12 +7322,12 @@ let Se, qa = function() {
|
|
|
7338
7322
|
};
|
|
7339
7323
|
const Xa = (e, t, i) => {
|
|
7340
7324
|
let s = {};
|
|
7341
|
-
e.fullscreen ? (i.originalPosition =
|
|
7325
|
+
e.fullscreen ? (i.originalPosition = E(document.body, "position"), i.originalOverflow = E(document.body, "overflow"), s.zIndex = 3e3) : e.body ? (i.originalPosition = E(document.body, "position"), ["top", "left"].forEach((l) => {
|
|
7342
7326
|
let n = l === "top" ? "scrollTop" : "scrollLeft";
|
|
7343
7327
|
s[l] = e.target.getBoundingClientRect()[l] + document.body[n] + document.documentElement[n] + "px";
|
|
7344
7328
|
}), ["height", "width"].forEach((l) => {
|
|
7345
7329
|
s[l] = e.target.getBoundingClientRect()[l] + "px";
|
|
7346
|
-
})) : i.originalPosition =
|
|
7330
|
+
})) : i.originalPosition = E(t, "position"), Object.keys(s).forEach((l) => {
|
|
7347
7331
|
i.$el.style[l] = s[l];
|
|
7348
7332
|
});
|
|
7349
7333
|
}, Ga = (e = {}) => {
|