wave-ui 3.16.0 → 3.16.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/wave-ui.es.js
CHANGED
|
@@ -5,7 +5,7 @@ var de = (e) => {
|
|
|
5
5
|
var $e = (e, t, i) => t in e ? _e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[t] = i;
|
|
6
6
|
var H = (e, t, i) => $e(e, typeof t != "symbol" ? t + "" : t, i), ue = (e, t, i) => t.has(e) || de("Cannot " + i);
|
|
7
7
|
var Y = (e, t, i) => (ue(e, t, "read from private field"), i ? i.call(e) : t.get(e)), te = (e, t, i) => t.has(e) ? de("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, i), ie = (e, t, i, s) => (ue(e, t, "write to private field"), s ? s.call(e, i) : t.set(e, i), i);
|
|
8
|
-
import { reactive as Z, resolveComponent as $, openBlock as o, createBlock as b, Teleport as Ie, createVNode as T, TransitionGroup as ae, normalizeClass as f, withCtx as m, createElementBlock as u, Fragment as k, renderList as x, mergeProps as _, createElementVNode as w, createCommentVNode as p, createApp as Ve, defineComponent as Te, inject as Le, withKeys as
|
|
8
|
+
import { reactive as Z, resolveComponent as $, openBlock as o, createBlock as b, Teleport as Ie, createVNode as T, TransitionGroup as ae, normalizeClass as f, withCtx as m, createElementBlock as u, Fragment as k, renderList as x, mergeProps as _, createElementVNode as w, createCommentVNode as p, createApp as Ve, defineComponent as Te, inject as Le, withKeys as A, withModifiers as z, renderSlot as c, createTextVNode as B, toDisplayString as C, normalizeStyle as R, toHandlers as ne, Transition as P, resolveDynamicComponent as L, normalizeProps as le, resolveDirective as ke, withDirectives as W, createSlots as ee, vShow as re, vModelText as ve, vModelDynamic as Re, KeepAlive as xe } from "vue";
|
|
9
9
|
const Pe = Z({
|
|
10
10
|
on: "#app",
|
|
11
11
|
// Sets the Wave UI root node. If not found, will default to `body`.
|
|
@@ -74,7 +74,7 @@ const Pe = Z({
|
|
|
74
74
|
typeof s == "object" && typeof t[i] == "object" ? Ce(e[i], t[i]) : t[i] = s;
|
|
75
75
|
}
|
|
76
76
|
return t;
|
|
77
|
-
}, j = (e) => console.warn(`Wave UI: ${e}`), F = (e) => console.error(`Wave UI: ${e}`),
|
|
77
|
+
}, j = (e) => console.warn(`Wave UI: ${e}`), F = (e) => console.error(`Wave UI: ${e}`), Oe = (e) => {
|
|
78
78
|
["light", "dark"].forEach((t) => {
|
|
79
79
|
var s, n, l;
|
|
80
80
|
const i = e.colors[t];
|
|
@@ -108,7 +108,7 @@ function J(e) {
|
|
|
108
108
|
const t = e.toString(16);
|
|
109
109
|
return t.length === 1 && `0${t}` || t.length === 2 && t || F(`expected value from 0~255, got: ${e}`) || "";
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function ze(e) {
|
|
112
112
|
return /^#[0-9a-f]{6}([0-9a-f]{2})?$/i.test(e);
|
|
113
113
|
}
|
|
114
114
|
function Me(e) {
|
|
@@ -118,7 +118,7 @@ function Ee(e) {
|
|
|
118
118
|
return `#${e.substring(1).split("").map((t) => `${t}${t}`).join("")}`;
|
|
119
119
|
}
|
|
120
120
|
function Ae(e) {
|
|
121
|
-
return
|
|
121
|
+
return ze(e) && e || Me(e) && Ee(e) || F(`expected color hex string, got '${e}'`) || "";
|
|
122
122
|
}
|
|
123
123
|
function ce(e) {
|
|
124
124
|
const t = Ae(e), i = parseInt(t.substring(1, 3), 16), s = parseInt(t.substring(3, 5), 16), n = parseInt(t.substring(5, 7), 16), l = t.length === 9 ? parseInt(t.substring(7, 9), 16) / 255 : 1;
|
|
@@ -508,8 +508,8 @@ const Ne = (e, t) => {
|
|
|
508
508
|
if (t)
|
|
509
509
|
for (const I in d) s[I] = d[I];
|
|
510
510
|
let g = "";
|
|
511
|
-
return Object.entries(s).forEach(([I,
|
|
512
|
-
g += `--w-${I}-color: ${
|
|
511
|
+
return Object.entries(s).forEach(([I, O]) => {
|
|
512
|
+
g += `--w-${I}-color: ${O};`;
|
|
513
513
|
}), `:root{${g}}${i}`;
|
|
514
514
|
}, De = (e, t) => {
|
|
515
515
|
let i = "";
|
|
@@ -790,7 +790,7 @@ const N = class N {
|
|
|
790
790
|
i.colors.light || (i.colors.light = a), i.colors.dark || (i.colors.dark = a), i.colors = { light: i.colors.light, dark: i.colors.dark };
|
|
791
791
|
}
|
|
792
792
|
let { components: s, ...n } = i;
|
|
793
|
-
n = this.$waveui.config = Ce(n), n.css.colorShades &&
|
|
793
|
+
n = this.$waveui.config = Ce(n), n.css.colorShades && Oe(n);
|
|
794
794
|
const l = Z(this.$waveui);
|
|
795
795
|
t.config.globalProperties.$waveui = l, t.provide("$waveui", l), n.theme !== "auto" && (this.$waveui.colors = he(n.colors[n.theme], fe));
|
|
796
796
|
}
|
|
@@ -841,7 +841,7 @@ function st(e, t, i, s, n, l) {
|
|
|
841
841
|
class: f(["w-accordion__item-title", i.titleClass]),
|
|
842
842
|
onClick: (y) => !d._disabled && l.toggleItem(d, y),
|
|
843
843
|
onFocus: (y) => e.$emit("focus", l.getOriginalItem(d)),
|
|
844
|
-
onKeypress:
|
|
844
|
+
onKeypress: A((y) => !d._disabled && l.toggleItem(d, y), ["enter"]),
|
|
845
845
|
tabindex: !d._disabled && 0
|
|
846
846
|
}, [
|
|
847
847
|
i.expandIcon && !i.expandIconRight ? (o(), b(a, {
|
|
@@ -852,9 +852,9 @@ function st(e, t, i, s, n, l) {
|
|
|
852
852
|
disabled: d._disabled || null,
|
|
853
853
|
tabindex: -1,
|
|
854
854
|
text: "",
|
|
855
|
-
onKeypress: t[0] || (t[0] =
|
|
855
|
+
onKeypress: t[0] || (t[0] = z(() => {
|
|
856
856
|
}, ["stop"])),
|
|
857
|
-
onClick:
|
|
857
|
+
onClick: z((y) => !d._disabled && l.toggleItem(d, y), ["stop"])
|
|
858
858
|
}, null, 8, ["icon", "icon-props", "disabled", "onClick", "class"])) : p("", !0),
|
|
859
859
|
e.$slots[`item-title.${d.id || h + 1}`] ? c(e.$slots, `item-title.${d.id || h + 1}`, {
|
|
860
860
|
key: 1,
|
|
@@ -877,9 +877,9 @@ function st(e, t, i, s, n, l) {
|
|
|
877
877
|
class: f(["w-accordion__expand-icon", { "w-accordion__expand-icon--expanded": d._expanded, "w-accordion__expand-icon--rotate90": i.expandIconRotate90 }]),
|
|
878
878
|
icon: d._expanded && i.collapseIcon || i.expandIcon,
|
|
879
879
|
text: "",
|
|
880
|
-
onKeypress: t[1] || (t[1] =
|
|
880
|
+
onKeypress: t[1] || (t[1] = z(() => {
|
|
881
881
|
}, ["stop"])),
|
|
882
|
-
onClick:
|
|
882
|
+
onClick: z((y) => !d._disabled && l.toggleItem(d, y), ["stop"])
|
|
883
883
|
}, null, 8, ["icon", "onClick", "class"])) : p("", !0)
|
|
884
884
|
], 42, tt),
|
|
885
885
|
T(r, {
|
|
@@ -1103,10 +1103,10 @@ const dt = {
|
|
|
1103
1103
|
"w-alert--tile": this.tile,
|
|
1104
1104
|
"w-alert--round": this.round,
|
|
1105
1105
|
"w-alert--one-border": this.hasSingleBorder || this.iconOutside,
|
|
1106
|
-
"w-alert--border-left":
|
|
1107
|
-
"w-alert--border-right":
|
|
1108
|
-
"w-alert--border-top":
|
|
1109
|
-
"w-alert--border-bottom":
|
|
1106
|
+
"w-alert--border-left": this.borderLeft || this.iconOutside,
|
|
1107
|
+
"w-alert--border-right": this.borderRight,
|
|
1108
|
+
"w-alert--border-top": this.borderTop,
|
|
1109
|
+
"w-alert--border-bottom": this.borderBottom,
|
|
1110
1110
|
"w-alert--border": this.border && !this.hasSingleBorder,
|
|
1111
1111
|
"w-alert--shadow": this.shadow,
|
|
1112
1112
|
"w-alert--bold": this.bold
|
|
@@ -1135,7 +1135,7 @@ function yt(e, t, i, s, n, l) {
|
|
|
1135
1135
|
innerHTML: d[i.itemLabelKey]
|
|
1136
1136
|
}, null, 8, ct),
|
|
1137
1137
|
T(a, {
|
|
1138
|
-
onClick:
|
|
1138
|
+
onClick: z((y) => l.unselectItem(h), ["stop"]),
|
|
1139
1139
|
icon: "wi-cross",
|
|
1140
1140
|
xs: "",
|
|
1141
1141
|
text: "",
|
|
@@ -1166,7 +1166,7 @@ function yt(e, t, i, s, n, l) {
|
|
|
1166
1166
|
}, [
|
|
1167
1167
|
(o(!0), u(k, null, x(l.filteredItems, (d, h) => (o(), u("li", {
|
|
1168
1168
|
key: h,
|
|
1169
|
-
onClick:
|
|
1169
|
+
onClick: z((y) => (l.selectItem(d), e.$emit("item-click", d)), ["stop"]),
|
|
1170
1170
|
class: f({ highlighted: e.highlightedItem === d.uid })
|
|
1171
1171
|
}, [
|
|
1172
1172
|
c(e.$slots, "item", {
|
|
@@ -1586,7 +1586,7 @@ const Rt = {
|
|
|
1586
1586
|
key: 0,
|
|
1587
1587
|
class: "w-button__loader"
|
|
1588
1588
|
};
|
|
1589
|
-
function
|
|
1589
|
+
function Ot(e, t, i, s, n, l) {
|
|
1590
1590
|
const a = $("w-icon");
|
|
1591
1591
|
return o(), b(L(!i.disabled && i.route ? "a" : "button"), _({
|
|
1592
1592
|
class: ["w-button", l.classes],
|
|
@@ -1625,7 +1625,7 @@ function zt(e, t, i, s, n, l) {
|
|
|
1625
1625
|
_: 3
|
|
1626
1626
|
}, 16, ["type", "href", "class", "disabled", "style"]);
|
|
1627
1627
|
}
|
|
1628
|
-
const
|
|
1628
|
+
const zt = {
|
|
1629
1629
|
// Fully handle the attrs and listeners manually for the case of a router link that has both a
|
|
1630
1630
|
// route and onClick.
|
|
1631
1631
|
inheritAttrs: !1,
|
|
@@ -1726,7 +1726,7 @@ const Ot = {
|
|
|
1726
1726
|
};
|
|
1727
1727
|
}
|
|
1728
1728
|
}
|
|
1729
|
-
}, Mt = /* @__PURE__ */ v(
|
|
1729
|
+
}, Mt = /* @__PURE__ */ v(zt, [["render", Ot]]), Et = ["innerHTML"];
|
|
1730
1730
|
function At(e, t, i, s, n, l) {
|
|
1731
1731
|
const a = $("button-partial");
|
|
1732
1732
|
return i.tooltip ? (o(), b(L("w-tooltip"), le(_({ key: 0 }, i.tooltipProps)), {
|
|
@@ -1803,7 +1803,7 @@ const Wt = {
|
|
|
1803
1803
|
return { ...i, ...this.$attrs };
|
|
1804
1804
|
}
|
|
1805
1805
|
}
|
|
1806
|
-
}, Kt = /* @__PURE__ */ v(Wt, [["render", At]]),
|
|
1806
|
+
}, Kt = /* @__PURE__ */ v(Wt, [["render", At]]), M = (e = {}) => (typeof e == "string" ? e = { [e]: !0 } : Array.isArray(e) && (e = { [e.join(" ")]: !0 }), e), Nt = ["innerHTML"];
|
|
1807
1807
|
function Dt(e, t, i, s, n, l) {
|
|
1808
1808
|
const a = $("w-image");
|
|
1809
1809
|
return o(), u("div", {
|
|
@@ -1861,10 +1861,10 @@ const Ht = {
|
|
|
1861
1861
|
emits: [],
|
|
1862
1862
|
computed: {
|
|
1863
1863
|
titleClasses() {
|
|
1864
|
-
return
|
|
1864
|
+
return M(this.titleClass);
|
|
1865
1865
|
},
|
|
1866
1866
|
contentClasses() {
|
|
1867
|
-
return
|
|
1867
|
+
return M(this.contentClass);
|
|
1868
1868
|
},
|
|
1869
1869
|
titleHasToolbar() {
|
|
1870
1870
|
const { title: e } = this.$slots;
|
|
@@ -1893,7 +1893,7 @@ const Ht = {
|
|
|
1893
1893
|
};
|
|
1894
1894
|
}
|
|
1895
1895
|
}
|
|
1896
|
-
}, Ft = /* @__PURE__ */ v(Ht, [["render", Dt]]),
|
|
1896
|
+
}, Ft = /* @__PURE__ */ v(Ht, [["render", Dt]]), E = {
|
|
1897
1897
|
inject: {
|
|
1898
1898
|
// Used in each form component to determine whether to use the w-form-element wrap or not.
|
|
1899
1899
|
// So, if a form component is in a form, use the w-form-element wrap.
|
|
@@ -1963,7 +1963,7 @@ function Gt(e, t, i, s, n, l) {
|
|
|
1963
1963
|
onFocus: t[0] || (t[0] = (a) => e.$emit("focus", a)),
|
|
1964
1964
|
onBlur: t[1] || (t[1] = (a) => e.$emit("blur", a)),
|
|
1965
1965
|
onChange: t[2] || (t[2] = (a) => l.onInput()),
|
|
1966
|
-
onKeypress: t[3] || (t[3] =
|
|
1966
|
+
onKeypress: t[3] || (t[3] = A((...a) => l.onInput && l.onInput(...a), ["enter"])),
|
|
1967
1967
|
"aria-checked": n.isChecked || "false",
|
|
1968
1968
|
role: "checkbox"
|
|
1969
1969
|
}, null, 40, jt),
|
|
@@ -2015,7 +2015,7 @@ function Gt(e, t, i, s, n, l) {
|
|
|
2015
2015
|
}
|
|
2016
2016
|
const Jt = {
|
|
2017
2017
|
name: "w-checkbox",
|
|
2018
|
-
mixins: [
|
|
2018
|
+
mixins: [E],
|
|
2019
2019
|
inject: {
|
|
2020
2020
|
wCheckboxes: { default: null }
|
|
2021
2021
|
},
|
|
@@ -2124,7 +2124,7 @@ function ei(e, t, i, s, n, l) {
|
|
|
2124
2124
|
}
|
|
2125
2125
|
const ti = {
|
|
2126
2126
|
name: "w-checkboxes",
|
|
2127
|
-
mixins: [
|
|
2127
|
+
mixins: [E],
|
|
2128
2128
|
props: {
|
|
2129
2129
|
items: { type: Array, required: !0 },
|
|
2130
2130
|
// All the possible options.
|
|
@@ -2219,7 +2219,7 @@ function li(e, t, i, s, n, l) {
|
|
|
2219
2219
|
class: "mr2"
|
|
2220
2220
|
}, l.cancelButtonProps, {
|
|
2221
2221
|
"bg-color": (l.cancelButton || {}).bgColor || "error",
|
|
2222
|
-
onKeyup: t[0] || (t[0] =
|
|
2222
|
+
onKeyup: t[0] || (t[0] = A((y) => !i.persistent && l.onCancel(), ["escape"])),
|
|
2223
2223
|
onClick: l.onCancel
|
|
2224
2224
|
}), {
|
|
2225
2225
|
default: m(() => [
|
|
@@ -2231,7 +2231,7 @@ function li(e, t, i, s, n, l) {
|
|
|
2231
2231
|
}, 16, ["bg-color", "onClick"])) : p("", !0),
|
|
2232
2232
|
W((o(), b(a, _(l.confirmButtonProps, {
|
|
2233
2233
|
"bg-color": (l.confirmButton || {}).bgColor || "success",
|
|
2234
|
-
onKeyup: t[1] || (t[1] =
|
|
2234
|
+
onKeyup: t[1] || (t[1] = A((y) => !i.persistent && l.onCancel(), ["escape"])),
|
|
2235
2235
|
onClick: l.onConfirm
|
|
2236
2236
|
}), {
|
|
2237
2237
|
default: m(() => [
|
|
@@ -2463,9 +2463,9 @@ const ui = {
|
|
|
2463
2463
|
title: { type: String },
|
|
2464
2464
|
transition: { type: String, default: "fade" },
|
|
2465
2465
|
// @todo: validator.
|
|
2466
|
-
titleClass: { type: String },
|
|
2467
|
-
contentClass: { type: String },
|
|
2468
|
-
dialogClass: { type: String },
|
|
2466
|
+
titleClass: { type: [String, Object, Array] },
|
|
2467
|
+
contentClass: { type: [String, Object, Array] },
|
|
2468
|
+
dialogClass: { type: [String, Object, Array] },
|
|
2469
2469
|
overlayColor: { type: String },
|
|
2470
2470
|
color: { type: String },
|
|
2471
2471
|
bgColor: { type: String },
|
|
@@ -2488,9 +2488,18 @@ const ui = {
|
|
|
2488
2488
|
};
|
|
2489
2489
|
},
|
|
2490
2490
|
computed: {
|
|
2491
|
+
titleClasses() {
|
|
2492
|
+
return M(this.titleClass);
|
|
2493
|
+
},
|
|
2494
|
+
contentClasses() {
|
|
2495
|
+
return M(this.contentClass);
|
|
2496
|
+
},
|
|
2497
|
+
dialogClasses() {
|
|
2498
|
+
return M(this.dialogClass);
|
|
2499
|
+
},
|
|
2491
2500
|
maxWidth() {
|
|
2492
2501
|
let e = this.width;
|
|
2493
|
-
return e && parseInt(e)
|
|
2502
|
+
return e && parseInt(e) === +e && (e += "px"), e;
|
|
2494
2503
|
},
|
|
2495
2504
|
classes() {
|
|
2496
2505
|
return {
|
|
@@ -3080,7 +3089,7 @@ const xi = {
|
|
|
3080
3089
|
}
|
|
3081
3090
|
}
|
|
3082
3091
|
}, Pi = /* @__PURE__ */ v(xi, [["render", Ri]]);
|
|
3083
|
-
function
|
|
3092
|
+
function Oi(e, t, i, s, n, l) {
|
|
3084
3093
|
return o(), b(L(i.tag || "i"), {
|
|
3085
3094
|
class: f(["w-icon", l.classes]),
|
|
3086
3095
|
role: "icon",
|
|
@@ -3095,7 +3104,7 @@ function zi(e, t, i, s, n, l) {
|
|
|
3095
3104
|
_: 1
|
|
3096
3105
|
}, 8, ["class", "style"]);
|
|
3097
3106
|
}
|
|
3098
|
-
const
|
|
3107
|
+
const zi = {
|
|
3099
3108
|
name: "w-icon",
|
|
3100
3109
|
props: {
|
|
3101
3110
|
tag: { type: String, default: "i" },
|
|
@@ -3164,7 +3173,7 @@ const Oi = {
|
|
|
3164
3173
|
return this.fontName = t, this.icon = i, !0;
|
|
3165
3174
|
}
|
|
3166
3175
|
}
|
|
3167
|
-
}, Mi = /* @__PURE__ */ v(
|
|
3176
|
+
}, Mi = /* @__PURE__ */ v(zi, [["render", Oi]]), Ei = {
|
|
3168
3177
|
key: 0,
|
|
3169
3178
|
class: "w-image__loader"
|
|
3170
3179
|
}, Ai = ["innerHTML"];
|
|
@@ -3522,7 +3531,7 @@ function Gi(e, t, i, s, n, l) {
|
|
|
3522
3531
|
}
|
|
3523
3532
|
const Ji = {
|
|
3524
3533
|
name: "w-input",
|
|
3525
|
-
mixins: [
|
|
3534
|
+
mixins: [E],
|
|
3526
3535
|
inheritAttrs: !1,
|
|
3527
3536
|
// The attrs should only be added to the input not the wrapper.
|
|
3528
3537
|
props: {
|
|
@@ -4319,17 +4328,17 @@ const ll = {
|
|
|
4319
4328
|
return this.maxWidth === "activator" ? this.activatorWidth ? `${this.activatorWidth}px` : 0 : isNaN(this.maxWidth) ? this.maxWidth : this.maxWidth ? `${this.maxWidth}px` : 0;
|
|
4320
4329
|
},
|
|
4321
4330
|
menuClasses() {
|
|
4322
|
-
return
|
|
4331
|
+
return M(this.menuClass);
|
|
4323
4332
|
},
|
|
4324
4333
|
titleClasses() {
|
|
4325
|
-
return
|
|
4334
|
+
return M(this.titleClass);
|
|
4326
4335
|
},
|
|
4327
4336
|
contentClasses() {
|
|
4328
|
-
return
|
|
4337
|
+
return M(this.contentClass);
|
|
4329
4338
|
},
|
|
4330
4339
|
overlayClasses() {
|
|
4331
4340
|
return {
|
|
4332
|
-
...
|
|
4341
|
+
...M(this.overlayClass),
|
|
4333
4342
|
"w-overlay--no-pointer-event": this.showOnHover
|
|
4334
4343
|
};
|
|
4335
4344
|
},
|
|
@@ -4575,7 +4584,7 @@ function rl(e, t, i, s, n, l) {
|
|
|
4575
4584
|
class: f(["w-overlay", l.classes]),
|
|
4576
4585
|
ref: "overlay",
|
|
4577
4586
|
style: R(i.modelValue && l.styles || null),
|
|
4578
|
-
onKeydown: t[0] || (t[0] =
|
|
4587
|
+
onKeydown: t[0] || (t[0] = A(z((...r) => l.onClick && l.onClick(...r), ["stop"]), ["escape"])),
|
|
4579
4588
|
onClick: t[1] || (t[1] = (...r) => l.onClick && l.onClick(...r)),
|
|
4580
4589
|
tabindex: "0"
|
|
4581
4590
|
}, [
|
|
@@ -4839,7 +4848,7 @@ function Vl(e, t, i, s, n, l) {
|
|
|
4839
4848
|
}
|
|
4840
4849
|
const Tl = {
|
|
4841
4850
|
name: "w-radio",
|
|
4842
|
-
mixins: [
|
|
4851
|
+
mixins: [E],
|
|
4843
4852
|
inject: { wRadios: { default: null } },
|
|
4844
4853
|
props: {
|
|
4845
4854
|
modelValue: { default: !1 },
|
|
@@ -4948,7 +4957,7 @@ function xl(e, t, i, s, n, l) {
|
|
|
4948
4957
|
}
|
|
4949
4958
|
const Pl = {
|
|
4950
4959
|
name: "w-radios",
|
|
4951
|
-
mixins: [
|
|
4960
|
+
mixins: [E],
|
|
4952
4961
|
props: {
|
|
4953
4962
|
items: { type: Array, required: !0 },
|
|
4954
4963
|
// All the possible options.
|
|
@@ -4999,7 +5008,7 @@ const Pl = {
|
|
|
4999
5008
|
return this.items[e._index];
|
|
5000
5009
|
}
|
|
5001
5010
|
}
|
|
5002
|
-
},
|
|
5011
|
+
}, Ol = /* @__PURE__ */ v(Pl, [["render", xl]]), zl = ["id", "name", "value"], Ml = ["disabled", "onMouseenter", "onClick", "tabindex"];
|
|
5003
5012
|
function El(e, t, i, s, n, l) {
|
|
5004
5013
|
return o(), b(L(e.formRegister ? "w-form-element" : "div"), _({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: n.rating, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
5005
5014
|
valid: e.valid,
|
|
@@ -5015,7 +5024,7 @@ function El(e, t, i, s, n, l) {
|
|
|
5015
5024
|
name: e.inputName,
|
|
5016
5025
|
type: "hidden",
|
|
5017
5026
|
value: n.rating
|
|
5018
|
-
}, null, 8,
|
|
5027
|
+
}, null, 8, zl),
|
|
5019
5028
|
(o(!0), u(k, null, x(i.max, (a) => (o(), u(k, { key: a }, [
|
|
5020
5029
|
e.$slots.item ? c(e.$slots, "item", {
|
|
5021
5030
|
key: 0,
|
|
@@ -5048,7 +5057,7 @@ function El(e, t, i, s, n, l) {
|
|
|
5048
5057
|
}
|
|
5049
5058
|
const Al = {
|
|
5050
5059
|
name: "w-rating",
|
|
5051
|
-
mixins: [
|
|
5060
|
+
mixins: [E],
|
|
5052
5061
|
props: {
|
|
5053
5062
|
modelValue: {},
|
|
5054
5063
|
max: { type: [Number, String], default: 5 },
|
|
@@ -5445,7 +5454,7 @@ function Xl(e, t, i, s, n, l) {
|
|
|
5445
5454
|
}
|
|
5446
5455
|
const Yl = {
|
|
5447
5456
|
name: "w-select",
|
|
5448
|
-
mixins: [
|
|
5457
|
+
mixins: [E],
|
|
5449
5458
|
props: {
|
|
5450
5459
|
items: { type: Array, required: !0 },
|
|
5451
5460
|
modelValue: {},
|
|
@@ -5733,11 +5742,11 @@ function rs(e, t, i, s, n, l) {
|
|
|
5733
5742
|
"aria-readonly": e.isReadonly ? "true" : "false",
|
|
5734
5743
|
tabindex: e.isDisabled || e.isReadonly ? -1 : null,
|
|
5735
5744
|
onKeydown: [
|
|
5736
|
-
t[0] || (t[0] =
|
|
5737
|
-
t[1] || (t[1] =
|
|
5745
|
+
t[0] || (t[0] = A((a) => l.onKeyDown(a, -1), ["left"])),
|
|
5746
|
+
t[1] || (t[1] = A((a) => l.onKeyDown(a, 1), ["right"]))
|
|
5738
5747
|
],
|
|
5739
5748
|
onFocus: t[2] || (t[2] = (a) => e.$emit("focus", a)),
|
|
5740
|
-
onClick: t[3] || (t[3] =
|
|
5749
|
+
onClick: t[3] || (t[3] = z(() => {
|
|
5741
5750
|
}, ["prevent"]))
|
|
5742
5751
|
}, null, 42, ts),
|
|
5743
5752
|
i.thumbLabel ? (o(), u("label", {
|
|
@@ -5795,7 +5804,7 @@ function rs(e, t, i, s, n, l) {
|
|
|
5795
5804
|
}
|
|
5796
5805
|
const ds = {
|
|
5797
5806
|
name: "w-slider",
|
|
5798
|
-
mixins: [
|
|
5807
|
+
mixins: [E],
|
|
5799
5808
|
props: {
|
|
5800
5809
|
modelValue: { type: Number, default: 0 },
|
|
5801
5810
|
color: { type: String, default: "primary" },
|
|
@@ -6081,7 +6090,7 @@ function Ss(e, t, i, s, n, l) {
|
|
|
6081
6090
|
}
|
|
6082
6091
|
const Bs = {
|
|
6083
6092
|
name: "w-switch",
|
|
6084
|
-
mixins: [
|
|
6093
|
+
mixins: [E],
|
|
6085
6094
|
inheritAttrs: !1,
|
|
6086
6095
|
// The attrs should only be added to the input not the wrapper.
|
|
6087
6096
|
props: {
|
|
@@ -6171,7 +6180,7 @@ const Vs = {
|
|
|
6171
6180
|
}, Ps = {
|
|
6172
6181
|
key: 0,
|
|
6173
6182
|
class: "w-tabs__content-wrap"
|
|
6174
|
-
},
|
|
6183
|
+
}, Os = ["innerHTML"], zs = ["innerHTML"];
|
|
6175
6184
|
function Ms(e, t, i, s, n, l) {
|
|
6176
6185
|
const a = $("tab-content");
|
|
6177
6186
|
return o(), u("div", {
|
|
@@ -6187,7 +6196,7 @@ function Ms(e, t, i, s, n, l) {
|
|
|
6187
6196
|
onClick: (h) => !r._disabled && r._uid !== e.activeTabUid && l.openTab(r._uid),
|
|
6188
6197
|
onFocus: (h) => e.$emit("focus", l.getOriginalItem(r)),
|
|
6189
6198
|
tabindex: !r._disabled && 0,
|
|
6190
|
-
onKeypress:
|
|
6199
|
+
onKeypress: A((h) => !r._disabled && l.openTab(r._uid), ["enter"]),
|
|
6191
6200
|
"aria-selected": r._uid === e.activeTabUid ? "true" : "false",
|
|
6192
6201
|
role: "tab"
|
|
6193
6202
|
}, [
|
|
@@ -6242,7 +6251,7 @@ function Ms(e, t, i, s, n, l) {
|
|
|
6242
6251
|
r[i.itemContentKey] ? (o(), u("div", {
|
|
6243
6252
|
key: 0,
|
|
6244
6253
|
innerHTML: r[i.itemContentKey]
|
|
6245
|
-
}, null, 8,
|
|
6254
|
+
}, null, 8, Os)) : p("", !0)
|
|
6246
6255
|
])
|
|
6247
6256
|
]),
|
|
6248
6257
|
_: 2
|
|
@@ -6281,7 +6290,7 @@ function Ms(e, t, i, s, n, l) {
|
|
|
6281
6290
|
r[i.itemContentKey] ? (o(), u("div", {
|
|
6282
6291
|
key: 0,
|
|
6283
6292
|
innerHTML: r[i.itemContentKey]
|
|
6284
|
-
}, null, 8,
|
|
6293
|
+
}, null, 8, zs)) : p("", !0)
|
|
6285
6294
|
])
|
|
6286
6295
|
], 64)) : p("", !0)
|
|
6287
6296
|
]),
|
|
@@ -6555,7 +6564,7 @@ function po(e, t, i, s, n, l) {
|
|
|
6555
6564
|
V < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
|
|
6556
6565
|
key: 3,
|
|
6557
6566
|
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === V, "w-table__col-resizer--active": e.colResizing.columnIndex === V }]),
|
|
6558
|
-
onClick: t[0] || (t[0] =
|
|
6567
|
+
onClick: t[0] || (t[0] = z(() => {
|
|
6559
6568
|
}, ["stop"]))
|
|
6560
6569
|
}, null, 2)) : p("", !0)
|
|
6561
6570
|
], 10, Hs))), 128))
|
|
@@ -6607,10 +6616,10 @@ function po(e, t, i, s, n, l) {
|
|
|
6607
6616
|
class: f(["w-table__row", { "w-table__row--selected": l.selectedRowsByUid[g._uid] !== void 0, "w-table__row--expanded": l.expandedRowsByUid[g._uid] !== void 0 }]),
|
|
6608
6617
|
onClick: (I) => l.doSelectRow(g, V)
|
|
6609
6618
|
}, [
|
|
6610
|
-
(o(!0), u(k, null, x(i.headers, (I,
|
|
6611
|
-
e.$slots[`item-cell.${I.key}`] || e.$slots[`item-cell.${
|
|
6619
|
+
(o(!0), u(k, null, x(i.headers, (I, O) => (o(), u(k, null, [
|
|
6620
|
+
e.$slots[`item-cell.${I.key}`] || e.$slots[`item-cell.${O + 1}`] || e.$slots["item-cell"] ? (o(), u("td", {
|
|
6612
6621
|
class: f(["w-table__cell", { [`text-${I.align || "left"}`]: !0, "w-table__cell--sticky": I.sticky }]),
|
|
6613
|
-
key: `${
|
|
6622
|
+
key: `${O}-a`,
|
|
6614
6623
|
"data-label": I.label
|
|
6615
6624
|
}, [
|
|
6616
6625
|
e.$slots[`item-cell.${I.key}`] ? c(e.$slots, `item-cell.${I.key}`, {
|
|
@@ -6619,7 +6628,7 @@ function po(e, t, i, s, n, l) {
|
|
|
6619
6628
|
item: g,
|
|
6620
6629
|
label: g[I.key] || "",
|
|
6621
6630
|
index: V + 1
|
|
6622
|
-
}) : e.$slots[`item-cell.${
|
|
6631
|
+
}) : e.$slots[`item-cell.${O + 1}`] ? c(e.$slots, `item-cell.${O + 1}`, {
|
|
6623
6632
|
key: 1,
|
|
6624
6633
|
header: I,
|
|
6625
6634
|
item: g,
|
|
@@ -6632,21 +6641,21 @@ function po(e, t, i, s, n, l) {
|
|
|
6632
6641
|
label: g[I.key] || "",
|
|
6633
6642
|
index: V + 1
|
|
6634
6643
|
}) : p("", !0),
|
|
6635
|
-
|
|
6644
|
+
O < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
|
|
6636
6645
|
key: 3,
|
|
6637
|
-
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
6646
|
+
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === O, "w-table__col-resizer--active": e.colResizing.columnIndex === O }])
|
|
6638
6647
|
}, null, 2)) : p("", !0)
|
|
6639
6648
|
], 10, Zs)) : (o(), u("td", {
|
|
6640
6649
|
class: f(["w-table__cell", { [`text-${I.align || "left"}`]: !0, "w-table__cell--sticky": I.sticky }]),
|
|
6641
|
-
key: `${
|
|
6650
|
+
key: `${O}-b`,
|
|
6642
6651
|
"data-label": I.label
|
|
6643
6652
|
}, [
|
|
6644
6653
|
w("div", {
|
|
6645
6654
|
innerHTML: g[I.key] || ""
|
|
6646
6655
|
}, null, 8, to),
|
|
6647
|
-
|
|
6656
|
+
O < i.headers.length - 1 && i.resizableColumns ? (o(), u("span", {
|
|
6648
6657
|
key: 0,
|
|
6649
|
-
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
6658
|
+
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === O, "w-table__col-resizer--active": e.colResizing.columnIndex === O }])
|
|
6650
6659
|
}, null, 2)) : p("", !0)
|
|
6651
6660
|
], 10, eo))
|
|
6652
6661
|
], 64))), 256))
|
|
@@ -7104,7 +7113,7 @@ function bo(e, t, i, s, n, l) {
|
|
|
7104
7113
|
onClick: t[1] || (t[1] = (a) => {
|
|
7105
7114
|
e.$emit("update:modelValue", !i.modelValue), e.$emit("input", !i.modelValue);
|
|
7106
7115
|
}),
|
|
7107
|
-
onKeypress: t[2] || (t[2] =
|
|
7116
|
+
onKeypress: t[2] || (t[2] = A((a) => {
|
|
7108
7117
|
e.$emit("update:modelValue", !i.modelValue), e.$emit("input", !i.modelValue);
|
|
7109
7118
|
}, ["enter"])),
|
|
7110
7119
|
role: i.modelValue !== -1 && "button",
|
|
@@ -7116,7 +7125,7 @@ function bo(e, t, i, s, n, l) {
|
|
|
7116
7125
|
i.closable && i.modelValue ? (o(), u("i", {
|
|
7117
7126
|
key: 0,
|
|
7118
7127
|
class: "w-icon w-tag__closable wi-cross",
|
|
7119
|
-
onClick: t[0] || (t[0] =
|
|
7128
|
+
onClick: t[0] || (t[0] = z((a) => {
|
|
7120
7129
|
e.$emit("update:modelValue", !1), e.$emit("input", !1);
|
|
7121
7130
|
}, ["stop"])),
|
|
7122
7131
|
role: "icon",
|
|
@@ -7282,7 +7291,7 @@ function So(e, t, i, s, n, l) {
|
|
|
7282
7291
|
}
|
|
7283
7292
|
const Bo = {
|
|
7284
7293
|
name: "w-textarea",
|
|
7285
|
-
mixins: [
|
|
7294
|
+
mixins: [E],
|
|
7286
7295
|
inheritAttrs: !1,
|
|
7287
7296
|
// The attrs should only be added to the textarea not the wrapper.
|
|
7288
7297
|
props: {
|
|
@@ -7527,7 +7536,7 @@ const xo = {
|
|
|
7527
7536
|
}
|
|
7528
7537
|
}
|
|
7529
7538
|
}, Po = /* @__PURE__ */ v(xo, [["render", Ro]]);
|
|
7530
|
-
function
|
|
7539
|
+
function Oo(e, t, i, s, n, l) {
|
|
7531
7540
|
return o(), u(k, null, [
|
|
7532
7541
|
c(e.$slots, "activator", { on: l.activatorEventHandlers }),
|
|
7533
7542
|
T(P, {
|
|
@@ -7548,7 +7557,7 @@ function zo(e, t, i, s, n, l) {
|
|
|
7548
7557
|
}, 8, ["name"])
|
|
7549
7558
|
], 64);
|
|
7550
7559
|
}
|
|
7551
|
-
const
|
|
7560
|
+
const zo = {
|
|
7552
7561
|
name: "w-tooltip",
|
|
7553
7562
|
mixins: [Be],
|
|
7554
7563
|
props: {
|
|
@@ -7600,7 +7609,7 @@ const Oo = {
|
|
|
7600
7609
|
* - `alignment`
|
|
7601
7610
|
**/
|
|
7602
7611
|
tooltipClasses() {
|
|
7603
|
-
return
|
|
7612
|
+
return M(this.tooltipClass);
|
|
7604
7613
|
},
|
|
7605
7614
|
transitionName() {
|
|
7606
7615
|
const e = this.position.replace(/top|bottom/, (t) => ({ top: "up", bottom: "down" })[t]);
|
|
@@ -7684,7 +7693,7 @@ const Oo = {
|
|
|
7684
7693
|
}
|
|
7685
7694
|
}
|
|
7686
7695
|
// watch, mounted & beforeDestroy hooks are set in the detachable.js mixin.
|
|
7687
|
-
}, Mo = /* @__PURE__ */ v(
|
|
7696
|
+
}, Mo = /* @__PURE__ */ v(zo, [["render", Oo]]);
|
|
7688
7697
|
function Eo(e, t, i, s, n, l) {
|
|
7689
7698
|
return o(), b(P, _({ name: "bounce" }, e.$props), {
|
|
7690
7699
|
default: m(() => [
|
|
@@ -7950,7 +7959,7 @@ function da(e, t, i, s, n, l) {
|
|
|
7950
7959
|
(h.children || h.branch) && (i.expandOpenIcon && h.open || i.expandIcon) && !(i.unexpandableEmpty && !h.children) ? (o(), b(a, {
|
|
7951
7960
|
key: 0,
|
|
7952
7961
|
class: "w-tree__item-expand",
|
|
7953
|
-
onClick:
|
|
7962
|
+
onClick: z((S) => !i.disabled && !h.disabled && l.onLabelClick(h, S), ["stop"]),
|
|
7954
7963
|
color: "inherit",
|
|
7955
7964
|
icon: h.open && i.expandOpenIcon || i.expandIcon,
|
|
7956
7965
|
"icon-props": { rotate90a: !h.open },
|
|
@@ -8252,7 +8261,7 @@ const ua = {
|
|
|
8252
8261
|
WParallax: fl,
|
|
8253
8262
|
WProgress: Cl,
|
|
8254
8263
|
WRadio: Ll,
|
|
8255
|
-
WRadios:
|
|
8264
|
+
WRadios: Ol,
|
|
8256
8265
|
WRating: Wl,
|
|
8257
8266
|
WScrollable: Hl,
|
|
8258
8267
|
WSelect: Gl,
|