wave-ui 3.0.1 → 3.0.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/wave-ui.cjs.js +1 -1
- package/dist/wave-ui.es.js +68 -70
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +1 -1
- package/src/wave-ui/core.js +4 -7
package/dist/wave-ui.es.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var F = (e, t, l) => (
|
|
1
|
+
var we = Object.defineProperty;
|
|
2
|
+
var ve = (e, t, l) => t in e ? we(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
|
|
3
|
+
var F = (e, t, l) => (ve(e, typeof t != "symbol" ? t + "" : t, l), l), ae = (e, t, l) => {
|
|
4
4
|
if (!t.has(e))
|
|
5
5
|
throw TypeError("Cannot " + l);
|
|
6
6
|
};
|
|
7
|
-
var X = (e, t, l) => (
|
|
7
|
+
var X = (e, t, l) => (ae(e, t, "read from private field"), l ? l.call(e) : t.get(e)), ee = (e, t, l) => {
|
|
8
8
|
if (t.has(e))
|
|
9
9
|
throw TypeError("Cannot add the same private member more than once");
|
|
10
10
|
t instanceof WeakSet ? t.add(e) : t.set(e, l);
|
|
11
|
-
}, te = (e, t, l, a) => (
|
|
12
|
-
import { reactive as G, resolveComponent as $, openBlock as s, createBlock as g, Teleport as
|
|
13
|
-
const
|
|
11
|
+
}, te = (e, t, l, a) => (ae(e, t, "write to private field"), a ? a.call(e, l) : t.set(e, l), l);
|
|
12
|
+
import { reactive as G, resolveComponent as $, openBlock as s, createBlock as g, Teleport as ke, createVNode as V, TransitionGroup as pe, normalizeClass as f, withCtx as m, createElementBlock as u, Fragment as C, renderList as x, mergeProps as _, createElementVNode as w, createCommentVNode as c, createApp as _e, defineComponent as Ce, inject as Be, withKeys as M, withModifiers as P, renderSlot as p, toHandlers as N, createTextVNode as B, toDisplayString as k, Transition as T, normalizeStyle as L, resolveDynamicComponent as I, normalizeProps as ie, resolveDirective as fe, withDirectives as D, createSlots as Z, vShow as me, vModelText as ge, vModelDynamic as Se, KeepAlive as $e } from "vue";
|
|
13
|
+
const Ve = G({
|
|
14
14
|
on: "#app",
|
|
15
15
|
breakpoints: {
|
|
16
16
|
xs: 600,
|
|
@@ -51,20 +51,20 @@ const Ie = G({
|
|
|
51
51
|
transition: "default"
|
|
52
52
|
},
|
|
53
53
|
presets: {}
|
|
54
|
-
}),
|
|
54
|
+
}), be = (e, t = Ve) => {
|
|
55
55
|
if (!Object.keys(t).length)
|
|
56
56
|
t = Object.assign(t, e);
|
|
57
57
|
else
|
|
58
58
|
for (const l in e) {
|
|
59
59
|
const a = e[l];
|
|
60
|
-
typeof a == "object" ?
|
|
60
|
+
typeof a == "object" ? be(e[l], t[l]) : t[l] = a;
|
|
61
61
|
}
|
|
62
62
|
return t;
|
|
63
|
-
},
|
|
64
|
-
function
|
|
63
|
+
}, Ie = ["innerHTML"];
|
|
64
|
+
function Re(e, t, l, a, n, i) {
|
|
65
65
|
const o = $("w-alert");
|
|
66
|
-
return s(), g(
|
|
67
|
-
V(
|
|
66
|
+
return s(), g(ke, { to: ".w-app" }, [
|
|
67
|
+
V(pe, {
|
|
68
68
|
class: f(["w-notification-manager", { "w-notification-manager--left": i.conf.align === "left" }]),
|
|
69
69
|
tag: "div",
|
|
70
70
|
name: i.transition,
|
|
@@ -82,7 +82,7 @@ function Le(e, t, l, a, n, i) {
|
|
|
82
82
|
default: m(() => [
|
|
83
83
|
w("div", {
|
|
84
84
|
innerHTML: r.message
|
|
85
|
-
}, null, 8,
|
|
85
|
+
}, null, 8, Ie)
|
|
86
86
|
]),
|
|
87
87
|
_: 2
|
|
88
88
|
}, 1040, ["modelValue", "onUpdate:modelValue", "onClose"])) : c("", !0)
|
|
@@ -97,7 +97,7 @@ const v = (e, t) => {
|
|
|
97
97
|
for (const [a, n] of t)
|
|
98
98
|
l[a] = n;
|
|
99
99
|
return l;
|
|
100
|
-
},
|
|
100
|
+
}, Le = {
|
|
101
101
|
name: "w-notification-manager",
|
|
102
102
|
computed: {
|
|
103
103
|
conf() {
|
|
@@ -117,7 +117,7 @@ const v = (e, t) => {
|
|
|
117
117
|
return i.dismiss && (i.dismiss = !0), i;
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
},
|
|
120
|
+
}, xe = /* @__PURE__ */ v(Le, [["render", Re]]);
|
|
121
121
|
var K;
|
|
122
122
|
const H = class {
|
|
123
123
|
constructor() {
|
|
@@ -158,11 +158,11 @@ const H = class {
|
|
|
158
158
|
};
|
|
159
159
|
let Y = H;
|
|
160
160
|
K = new WeakMap(), ee(Y, K, void 0);
|
|
161
|
-
const
|
|
161
|
+
const Te = (e, t, l) => {
|
|
162
162
|
const a = document.createElement("div");
|
|
163
163
|
e.appendChild(a);
|
|
164
|
-
const n = Ce(
|
|
165
|
-
...
|
|
164
|
+
const n = _e(Ce({
|
|
165
|
+
...xe,
|
|
166
166
|
inject: ["$waveui"]
|
|
167
167
|
})).provide("$waveui", l);
|
|
168
168
|
for (const i in t) {
|
|
@@ -170,7 +170,7 @@ const Oe = (e, t, l) => {
|
|
|
170
170
|
n.component(o.name, { ...o, inject: ["$waveui"] });
|
|
171
171
|
}
|
|
172
172
|
n.mount(a), a.remove();
|
|
173
|
-
},
|
|
173
|
+
}, oe = (e, t) => "#" + e.slice(1).match(/../g).map((l) => (l = +`0x${l}` + t, (l < 0 ? 0 : l > 255 ? 255 : l).toString(16).padStart(2, 0))).join(""), Oe = (e) => {
|
|
174
174
|
["light", "dark"].forEach((t) => {
|
|
175
175
|
const l = e.colors[t];
|
|
176
176
|
l.shades = {};
|
|
@@ -181,12 +181,12 @@ const Oe = (e, t, l) => {
|
|
|
181
181
|
const n = a.color;
|
|
182
182
|
n.length === 3 && (a.color = n[0] + "" + n[0] + n[1] + n[1] + n[2] + n[2]);
|
|
183
183
|
for (let i = 1; i <= 3; i++) {
|
|
184
|
-
const o =
|
|
184
|
+
const o = oe(`#${a.color}`, i * 40), r = oe(`#${a.color}`, -i * 40);
|
|
185
185
|
l.shades[`${a.label}-light${i}`] = o, l.shades[`${a.label}-dark${i}`] = r;
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
});
|
|
189
|
-
},
|
|
189
|
+
}, ne = (e, t) => {
|
|
190
190
|
const l = {
|
|
191
191
|
...t.reduce((a, n) => {
|
|
192
192
|
a[n.label] = n.color;
|
|
@@ -195,7 +195,7 @@ const Oe = (e, t, l) => {
|
|
|
195
195
|
}, { ...e, ...e.shades })
|
|
196
196
|
};
|
|
197
197
|
return delete l.shades, l;
|
|
198
|
-
},
|
|
198
|
+
}, re = [
|
|
199
199
|
{
|
|
200
200
|
label: "pink",
|
|
201
201
|
color: "#e91e63",
|
|
@@ -546,8 +546,8 @@ const Oe = (e, t, l) => {
|
|
|
546
546
|
cssScope: ".w-app",
|
|
547
547
|
baseIncrement: 4
|
|
548
548
|
};
|
|
549
|
-
let
|
|
550
|
-
const
|
|
549
|
+
let se = { keys: [], values: [] }, de = null;
|
|
550
|
+
const ze = (e) => {
|
|
551
551
|
let t = "";
|
|
552
552
|
const l = {}, { info: a, warning: n, success: i, error: o, shades: r, ...d } = e, { cssScope: h } = U;
|
|
553
553
|
for (const b in d)
|
|
@@ -561,7 +561,7 @@ const Ee = (e) => {
|
|
|
561
561
|
return Object.entries(l).forEach(([b, R]) => {
|
|
562
562
|
S += `--w-${b}-color: ${R};`;
|
|
563
563
|
}), `:root{${S}}${t}`;
|
|
564
|
-
},
|
|
564
|
+
}, Ee = (e, t) => {
|
|
565
565
|
let l = "";
|
|
566
566
|
const { cssScope: a } = U;
|
|
567
567
|
return e.forEach(({ min: n, label: i }) => {
|
|
@@ -575,7 +575,7 @@ const Ee = (e) => {
|
|
|
575
575
|
l += "}";
|
|
576
576
|
}
|
|
577
577
|
}), l;
|
|
578
|
-
},
|
|
578
|
+
}, Pe = (e) => {
|
|
579
579
|
let t = "";
|
|
580
580
|
const { cssScope: l, baseIncrement: a } = U, n = [
|
|
581
581
|
"show{display:block}",
|
|
@@ -619,9 +619,9 @@ const Ee = (e) => {
|
|
|
619
619
|
o !== "xl" && (t += `@media (max-width:${r}px){` + n.map((d) => `${l} .${o}d-${d}`).join("") + i.map((d, h) => `.w-grid.${o}d-columns${h + 1}{grid-template-columns:repeat(${h + 1},1fr);}`).join("") + i.map((d, h) => `.w-flex.${o}d-gap${h + 1},.w-grid.${o}d-gap${h + 1}{gap:${(h + 1) * a}px;}`).join("") + `.w-flex.${o}d-gap0,.w-flex.${o}d-gap0{gap:0}}`);
|
|
620
620
|
}), t;
|
|
621
621
|
}, ue = (e) => {
|
|
622
|
-
const t = window.innerWidth, l =
|
|
622
|
+
const t = window.innerWidth, l = se.values.slice(0);
|
|
623
623
|
l.push(t), l.sort((n, i) => n - i);
|
|
624
|
-
const a =
|
|
624
|
+
const a = se.keys[l.indexOf(t)] || "xl";
|
|
625
625
|
a !== de && (de = a, e.breakpoint = {
|
|
626
626
|
name: a,
|
|
627
627
|
xs: a === "xs",
|
|
@@ -631,19 +631,19 @@ const Ee = (e) => {
|
|
|
631
631
|
xl: a === "xl",
|
|
632
632
|
width: t
|
|
633
633
|
}), e.breakpoint.width = window.innerWidth;
|
|
634
|
-
},
|
|
634
|
+
}, Me = (e) => {
|
|
635
635
|
const { config: t } = e;
|
|
636
|
-
if (
|
|
636
|
+
if (se = { keys: Object.keys(t.breakpoints), values: Object.values(t.breakpoints) }, !document.getElementById("wave-ui-styles")) {
|
|
637
637
|
const l = document.createElement("style");
|
|
638
638
|
l.id = "wave-ui-styles", l.innerHTML = We(t);
|
|
639
639
|
const a = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
|
|
640
640
|
a ? a.before(l) : document.head.appendChild(l);
|
|
641
641
|
}
|
|
642
642
|
ue(e), window.addEventListener("resize", () => ue(e));
|
|
643
|
-
},
|
|
643
|
+
}, Ne = (e) => {
|
|
644
644
|
if (!document.getElementById("wave-ui-colors")) {
|
|
645
645
|
const t = document.createElement("style");
|
|
646
|
-
t.id = "wave-ui-colors", t.innerHTML =
|
|
646
|
+
t.id = "wave-ui-colors", t.innerHTML = ze(e);
|
|
647
647
|
const l = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
|
|
648
648
|
l ? l.before(t) : document.head.appendChild(t);
|
|
649
649
|
}
|
|
@@ -654,9 +654,9 @@ const Ee = (e) => {
|
|
|
654
654
|
}), a = getComputedStyle(document.documentElement);
|
|
655
655
|
U.cssScope = a.getPropertyValue("--w-css-scope"), U.baseIncrement = parseInt(a.getPropertyValue("--w-base-increment"));
|
|
656
656
|
let n = "";
|
|
657
|
-
return n +=
|
|
657
|
+
return n += Ee(l, e.css.grid), e.css.breakpointLayoutClasses && (n += Pe(l)), n;
|
|
658
658
|
};
|
|
659
|
-
let
|
|
659
|
+
let he = !1;
|
|
660
660
|
const Ae = (e) => {
|
|
661
661
|
const t = window.matchMedia("(prefers-color-scheme: dark)");
|
|
662
662
|
e.preferredTheme = t.matches ? "dark" : "light", e.switchTheme(e.preferredTheme), t.addEventListener("change", (l) => {
|
|
@@ -687,11 +687,11 @@ const j = class {
|
|
|
687
687
|
notify(...t) {
|
|
688
688
|
this._notificationManager.notify(...t);
|
|
689
689
|
},
|
|
690
|
-
switchTheme(t) {
|
|
691
|
-
var
|
|
692
|
-
this.theme = t, document.documentElement.setAttribute("data-theme", t), (
|
|
693
|
-
const
|
|
694
|
-
|
|
690
|
+
switchTheme(t, l = !1) {
|
|
691
|
+
var n, i;
|
|
692
|
+
this.theme = t, document.documentElement.setAttribute("data-theme", t), (i = (n = document.head.querySelector("#wave-ui-colors")) == null ? void 0 : n.remove) == null || i.call(n);
|
|
693
|
+
const a = this.config.colors[this.theme];
|
|
694
|
+
Ne(a), this.colors = ne(a, re);
|
|
695
695
|
}
|
|
696
696
|
});
|
|
697
697
|
if (X(j, q)) {
|
|
@@ -703,9 +703,9 @@ const j = class {
|
|
|
703
703
|
l.colors.light || (l.colors.light = o), l.colors.dark || (l.colors.dark = o), l.colors = { light: l.colors.light, dark: l.colors.dark };
|
|
704
704
|
}
|
|
705
705
|
let { components: a, ...n } = l;
|
|
706
|
-
n = this.$waveui.config =
|
|
706
|
+
n = this.$waveui.config = be(n), n.css.colorShades && Oe(n);
|
|
707
707
|
const i = G(this.$waveui);
|
|
708
|
-
t.config.globalProperties.$waveui = i, t.provide("$waveui", i), n.theme !== "auto" && (this.$waveui.colors =
|
|
708
|
+
t.config.globalProperties.$waveui = i, t.provide("$waveui", i), n.theme !== "auto" && (this.$waveui.colors = ne(n.colors[n.theme], re));
|
|
709
709
|
}
|
|
710
710
|
static install(t, l = {}) {
|
|
711
711
|
var n;
|
|
@@ -726,12 +726,10 @@ const j = class {
|
|
|
726
726
|
}
|
|
727
727
|
t.mixin({
|
|
728
728
|
beforeMount() {
|
|
729
|
-
if (!
|
|
730
|
-
|
|
731
|
-
const i =
|
|
732
|
-
r.classList.add("w-app");
|
|
733
|
-
let d = o.colors[o.theme];
|
|
734
|
-
o.theme === "auto" && (Ae(i), d = o.colors[i.preferredTheme], i.colors = le(d, ie)), he(d), Ne(i), Oe(r, a, i), t._context.mixins.find((h) => h.mounted && delete h.mounted);
|
|
729
|
+
if (!he) {
|
|
730
|
+
he = !0;
|
|
731
|
+
const i = Be("$waveui"), { config: o } = i, r = document.querySelector(o.on) || document.body;
|
|
732
|
+
r.classList.add("w-app"), o.colors[o.theme], o.theme === "auto" ? Ae(i) : this.switchTheme(o.theme, !0), Me(i), Te(r, a, i), t._context.mixins.find((d) => d.mounted && delete d.mounted);
|
|
735
733
|
}
|
|
736
734
|
}
|
|
737
735
|
}), new j(t, l), te(j, q, !0);
|
|
@@ -1244,7 +1242,7 @@ function ct(e, t, l, a, n, i) {
|
|
|
1244
1242
|
disabled: !!l.disabled || null
|
|
1245
1243
|
}, N(i.listeners), { style: i.styles }), {
|
|
1246
1244
|
default: m(() => [
|
|
1247
|
-
l.icon ? (s(), g(o,
|
|
1245
|
+
l.icon ? (s(), g(o, ie(_({ key: 0 }, l.iconProps || {})), {
|
|
1248
1246
|
default: m(() => [
|
|
1249
1247
|
B(k(l.icon), 1)
|
|
1250
1248
|
]),
|
|
@@ -1357,7 +1355,7 @@ const pt = {
|
|
|
1357
1355
|
}, ft = /* @__PURE__ */ v(pt, [["render", ct]]), mt = ["innerHTML"];
|
|
1358
1356
|
function gt(e, t, l, a, n, i) {
|
|
1359
1357
|
const o = $("button-partial");
|
|
1360
|
-
return l.tooltip ? (s(), g(I("w-tooltip"),
|
|
1358
|
+
return l.tooltip ? (s(), g(I("w-tooltip"), ie(_({ key: 0 }, l.tooltipProps || {})), {
|
|
1361
1359
|
activator: m(({ on: r }) => [
|
|
1362
1360
|
V(o, _(i.buttonProps, N(r)), {
|
|
1363
1361
|
default: m(() => [
|
|
@@ -1370,7 +1368,7 @@ function gt(e, t, l, a, n, i) {
|
|
|
1370
1368
|
w("div", { innerHTML: l.tooltip }, null, 8, mt)
|
|
1371
1369
|
]),
|
|
1372
1370
|
_: 3
|
|
1373
|
-
}, 16)) : (s(), g(o,
|
|
1371
|
+
}, 16)) : (s(), g(o, ie(_({ key: 1 }, i.buttonProps)), {
|
|
1374
1372
|
default: m(() => [
|
|
1375
1373
|
p(e.$slots, "default")
|
|
1376
1374
|
]),
|
|
@@ -1780,7 +1778,7 @@ const Et = {
|
|
|
1780
1778
|
}
|
|
1781
1779
|
}, Pt = /* @__PURE__ */ v(Et, [["render", zt]]), Mt = { class: "w-confirm" };
|
|
1782
1780
|
function Nt(e, t, l, a, n, i) {
|
|
1783
|
-
const o = $("w-button"), r = $("w-flex"), d = $("w-menu"), h =
|
|
1781
|
+
const o = $("w-button"), r = $("w-flex"), d = $("w-menu"), h = fe("focus");
|
|
1784
1782
|
return s(), u("div", Mt, [
|
|
1785
1783
|
V(d, _({
|
|
1786
1784
|
modelValue: e.showPopup,
|
|
@@ -2016,7 +2014,7 @@ function Ht(e, t, l, a, n, i) {
|
|
|
2016
2014
|
key: "1"
|
|
2017
2015
|
} : void 0
|
|
2018
2016
|
]), 1032, ["color", "bg-color", "class", "title-class", "content-class", "title", "style"]), [
|
|
2019
|
-
[
|
|
2017
|
+
[me, n.showContent]
|
|
2020
2018
|
])
|
|
2021
2019
|
]),
|
|
2022
2020
|
_: 3
|
|
@@ -2705,7 +2703,7 @@ const gl = {
|
|
|
2705
2703
|
return this.fontName = t, this.icon = l, !0;
|
|
2706
2704
|
}
|
|
2707
2705
|
}
|
|
2708
|
-
}, bl = /* @__PURE__ */ v(gl, [["render", ml]]), J = (e) => console.warn(`Wave UI: ${e}`),
|
|
2706
|
+
}, bl = /* @__PURE__ */ v(gl, [["render", ml]]), J = (e) => console.warn(`Wave UI: ${e}`), le = (e) => console.error(`Wave UI: ${e}`), yl = {
|
|
2709
2707
|
key: 0,
|
|
2710
2708
|
class: "w-image__loader"
|
|
2711
2709
|
};
|
|
@@ -2868,7 +2866,7 @@ function xl(e, t, l, a, n, i) {
|
|
|
2868
2866
|
name: e.name || null,
|
|
2869
2867
|
"onUpdate:modelValue": t[0] || (t[0] = (d) => n.inputValue = d)
|
|
2870
2868
|
}, null, 8, _l)), [
|
|
2871
|
-
[
|
|
2869
|
+
[ge, n.inputValue]
|
|
2872
2870
|
]) : (s(), u(C, { key: 1 }, [
|
|
2873
2871
|
l.labelPosition === "left" ? (s(), u(C, { key: 0 }, [
|
|
2874
2872
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
@@ -2920,7 +2918,7 @@ function xl(e, t, l, a, n, i) {
|
|
|
2920
2918
|
required: e.required || null,
|
|
2921
2919
|
tabindex: e.tabindex || null
|
|
2922
2920
|
}, i.attrs), null, 16, Bl)), [
|
|
2923
|
-
[
|
|
2921
|
+
[Se, n.inputValue]
|
|
2924
2922
|
]) : (s(), u(C, { key: 2 }, [
|
|
2925
2923
|
w("input", _({
|
|
2926
2924
|
ref: "input",
|
|
@@ -2934,7 +2932,7 @@ function xl(e, t, l, a, n, i) {
|
|
|
2934
2932
|
}, i.attrs, {
|
|
2935
2933
|
"data-progress": i.overallFilesProgress
|
|
2936
2934
|
}), null, 16, Sl),
|
|
2937
|
-
V(
|
|
2935
|
+
V(pe, {
|
|
2938
2936
|
class: "w-input__input w-input__input--file",
|
|
2939
2937
|
tag: "label",
|
|
2940
2938
|
name: "fade",
|
|
@@ -3441,7 +3439,7 @@ const El = {
|
|
|
3441
3439
|
}
|
|
3442
3440
|
}
|
|
3443
3441
|
}
|
|
3444
|
-
}, Pl = /* @__PURE__ */ v(El, [["render", zl]]),
|
|
3442
|
+
}, Pl = /* @__PURE__ */ v(El, [["render", zl]]), ye = {
|
|
3445
3443
|
props: {
|
|
3446
3444
|
appendTo: { type: [String, Boolean, Object] },
|
|
3447
3445
|
fixed: { type: Boolean },
|
|
@@ -3667,7 +3665,7 @@ function Ml(e, t, l, a, n, i) {
|
|
|
3667
3665
|
}
|
|
3668
3666
|
const Nl = {
|
|
3669
3667
|
name: "w-menu",
|
|
3670
|
-
mixins: [
|
|
3668
|
+
mixins: [ye],
|
|
3671
3669
|
inheritAttrs: !1,
|
|
3672
3670
|
props: {
|
|
3673
3671
|
modelValue: {},
|
|
@@ -3939,7 +3937,7 @@ const Kl = {
|
|
|
3939
3937
|
}
|
|
3940
3938
|
}, Dl = /* @__PURE__ */ v(Kl, [["render", Al]]);
|
|
3941
3939
|
function Fl(e, t, l, a, n, i) {
|
|
3942
|
-
const o =
|
|
3940
|
+
const o = fe("focus");
|
|
3943
3941
|
return s(), g(T, {
|
|
3944
3942
|
name: "fade",
|
|
3945
3943
|
appear: "",
|
|
@@ -3957,7 +3955,7 @@ function Fl(e, t, l, a, n, i) {
|
|
|
3957
3955
|
}, [
|
|
3958
3956
|
p(e.$slots, "default")
|
|
3959
3957
|
], 38)), [
|
|
3960
|
-
[
|
|
3958
|
+
[me, e.showOverlay],
|
|
3961
3959
|
[o]
|
|
3962
3960
|
]) : c("", !0)
|
|
3963
3961
|
]),
|
|
@@ -5359,7 +5357,7 @@ function ws(e, t, l, a, n, i) {
|
|
|
5359
5357
|
mode: i.transitionMode
|
|
5360
5358
|
}, {
|
|
5361
5359
|
default: m(() => [
|
|
5362
|
-
(s(), g(
|
|
5360
|
+
(s(), g($e, null, [
|
|
5363
5361
|
(s(), g(o, {
|
|
5364
5362
|
key: i.activeTab._index,
|
|
5365
5363
|
item: i.activeTab,
|
|
@@ -5789,7 +5787,7 @@ function Ys(e, t, l, a, n, i) {
|
|
|
5789
5787
|
], 34)
|
|
5790
5788
|
], 2);
|
|
5791
5789
|
}
|
|
5792
|
-
const
|
|
5790
|
+
const ce = 15, Js = {
|
|
5793
5791
|
name: "w-table",
|
|
5794
5792
|
props: {
|
|
5795
5793
|
items: { type: Array, required: !0 },
|
|
@@ -5801,13 +5799,13 @@ const pe = 15, Js = {
|
|
|
5801
5799
|
loading: { type: [Boolean, String] },
|
|
5802
5800
|
sort: { type: [String, Array] },
|
|
5803
5801
|
expandableRows: {
|
|
5804
|
-
validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) ||
|
|
5802
|
+
validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) || le(
|
|
5805
5803
|
`Wrong value for the w-table's \`expandableRows\` prop. Given: "${e}", expected one of: [undefined, true, false, 1, '1', ''].`
|
|
5806
5804
|
), !0)
|
|
5807
5805
|
},
|
|
5808
5806
|
expandedRows: { type: Array },
|
|
5809
5807
|
selectableRows: {
|
|
5810
|
-
validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) ||
|
|
5808
|
+
validator: (e) => ([void 0, !0, !1, 1, "1", ""].includes(e) || le(
|
|
5811
5809
|
`Wrong value for the w-table's \`selectableRows\` prop. Given: "${e}", expected one of: [undefined, true, false, 1, '1', ''].`
|
|
5812
5810
|
), !0)
|
|
5813
5811
|
},
|
|
@@ -5823,7 +5821,7 @@ const pe = 15, Js = {
|
|
|
5823
5821
|
validator: (e) => {
|
|
5824
5822
|
if (e) {
|
|
5825
5823
|
if (typeof e == "object" && (!e.itemsPerPage || e.page && isNaN(e.page)))
|
|
5826
|
-
return
|
|
5824
|
+
return le(
|
|
5827
5825
|
"Wrong pagination config received in the w-table's `pagination` prop (received: `" + JSON.stringify(e) + "`). \nExpected object: { itemsPerPage: Integer, page: Integer } or { itemsPerPage: Integer, start: Integer }."
|
|
5828
5826
|
), !1;
|
|
5829
5827
|
} else
|
|
@@ -5969,9 +5967,9 @@ const pe = 15, Js = {
|
|
|
5969
5967
|
this.colResizing.dragging = !0;
|
|
5970
5968
|
const o = e.pageX - t, r = n + i, d = n + o, h = i - o;
|
|
5971
5969
|
l.style.width = n + o + "px", a.style.width = i - o + "px";
|
|
5972
|
-
const y = o < 0 && l.offsetWidth > d || l.offsetWidth <=
|
|
5970
|
+
const y = o < 0 && l.offsetWidth > d || l.offsetWidth <= ce, S = o > 0 && a.offsetWidth > h;
|
|
5973
5971
|
if (y) {
|
|
5974
|
-
const b = Math.max(l.offsetWidth,
|
|
5972
|
+
const b = Math.max(l.offsetWidth, ce);
|
|
5975
5973
|
l.style.width = b + "px", a.style.width = r - b + "px";
|
|
5976
5974
|
} else
|
|
5977
5975
|
S && (l.style.width = r - a.offsetWidth + "px", a.style.width = a.offsetWidth + "px");
|
|
@@ -6152,7 +6150,7 @@ function na(e, t, l, a, n, i) {
|
|
|
6152
6150
|
required: e.required || null,
|
|
6153
6151
|
tabindex: e.tabindex || null
|
|
6154
6152
|
}), null, 16, sa), [
|
|
6155
|
-
[
|
|
6153
|
+
[ge, n.inputValue]
|
|
6156
6154
|
]),
|
|
6157
6155
|
l.labelPosition === "inside" && i.showLabelInside ? (s(), u(C, { key: 1 }, [
|
|
6158
6156
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
@@ -6451,7 +6449,7 @@ function ya(e, t, l, a, n, i) {
|
|
|
6451
6449
|
}
|
|
6452
6450
|
const wa = {
|
|
6453
6451
|
name: "w-tooltip",
|
|
6454
|
-
mixins: [
|
|
6452
|
+
mixins: [ye],
|
|
6455
6453
|
props: {
|
|
6456
6454
|
modelValue: {},
|
|
6457
6455
|
showOnClick: { type: Boolean },
|