wave-ui 3.4.2 → 3.4.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.css +1 -1
- package/dist/wave-ui.es.js +89 -91
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +3 -2
- package/src/wave-ui/components/w-card.vue +7 -2
- package/src/wave-ui/components/w-tree.vue +50 -34
package/dist/wave-ui.es.js
CHANGED
|
@@ -9,7 +9,7 @@ var X = (e, t, l) => (ne(e, t, "read from private field"), l ? l.call(e) : t.get
|
|
|
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
11
|
}, te = (e, t, l, a) => (ne(e, t, "write to private field"), a ? a.call(e, l) : t.set(e, l), l);
|
|
12
|
-
import { reactive as Q, resolveComponent as $, openBlock as s, createBlock as m, Teleport as _e, createVNode as I, TransitionGroup as ae, normalizeClass as f, withCtx as g, createElementBlock as u, Fragment as k, renderList as L, mergeProps as C, createElementVNode as w, createCommentVNode as c, createApp as Ce, defineComponent as Se, inject as Be, withKeys as E, withModifiers as M, renderSlot as p, toHandlers as W, createTextVNode as S, toDisplayString as _, Transition as O, normalizeStyle as
|
|
12
|
+
import { reactive as Q, resolveComponent as $, openBlock as s, createBlock as m, Teleport as _e, createVNode as I, TransitionGroup as ae, normalizeClass as f, withCtx as g, createElementBlock as u, Fragment as k, renderList as L, mergeProps as C, createElementVNode as w, createCommentVNode as c, createApp as Ce, defineComponent as Se, inject as Be, withKeys as E, withModifiers as M, renderSlot as p, toHandlers as W, createTextVNode as S, toDisplayString as _, Transition as O, normalizeStyle as T, resolveDynamicComponent as V, normalizeProps as ie, resolveDirective as me, withDirectives as N, createSlots as Z, vShow as oe, vModelText as be, vModelDynamic as $e, KeepAlive as Ve } from "vue";
|
|
13
13
|
const Ie = Q({
|
|
14
14
|
on: "#app",
|
|
15
15
|
breakpoints: {
|
|
@@ -60,8 +60,8 @@ const Ie = Q({
|
|
|
60
60
|
typeof a == "object" ? ye(e[l], t[l]) : t[l] = a;
|
|
61
61
|
}
|
|
62
62
|
return t;
|
|
63
|
-
},
|
|
64
|
-
function
|
|
63
|
+
}, Re = ["innerHTML"];
|
|
64
|
+
function Te(e, t, l, a, r, i) {
|
|
65
65
|
const o = $("w-alert");
|
|
66
66
|
return s(), m(_e, { to: ".w-app" }, [
|
|
67
67
|
I(ae, {
|
|
@@ -82,7 +82,7 @@ function Re(e, t, l, a, r, i) {
|
|
|
82
82
|
default: g(() => [
|
|
83
83
|
w("div", {
|
|
84
84
|
innerHTML: n.message
|
|
85
|
-
}, null, 8,
|
|
85
|
+
}, null, 8, Re)
|
|
86
86
|
]),
|
|
87
87
|
_: 2
|
|
88
88
|
}, 1040, ["modelValue", "onUpdate:modelValue", "onClose"])) : c("", !0)
|
|
@@ -117,7 +117,7 @@ const v = (e, t) => {
|
|
|
117
117
|
return i.dismiss && (i.dismiss = !0), i;
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
}, xe = /* @__PURE__ */ v(Le, [["render",
|
|
120
|
+
}, xe = /* @__PURE__ */ v(Le, [["render", Te]]);
|
|
121
121
|
var H;
|
|
122
122
|
const F = class {
|
|
123
123
|
constructor() {
|
|
@@ -558,8 +558,8 @@ const ze = (e) => {
|
|
|
558
558
|
for (const b in y)
|
|
559
559
|
l[b] = y[b];
|
|
560
560
|
let B = "";
|
|
561
|
-
return Object.entries(l).forEach(([b,
|
|
562
|
-
B += `--w-${b}-color: ${
|
|
561
|
+
return Object.entries(l).forEach(([b, R]) => {
|
|
562
|
+
B += `--w-${b}-color: ${R};`;
|
|
563
563
|
}), `:root{${B}}${t}`;
|
|
564
564
|
}, Me = (e, t) => {
|
|
565
565
|
let l = "";
|
|
@@ -1056,7 +1056,7 @@ function st(e, t, l, a, r, i) {
|
|
|
1056
1056
|
l.modelValue ? (s(), u("div", {
|
|
1057
1057
|
key: 0,
|
|
1058
1058
|
class: f(["w-badge", i.classes]),
|
|
1059
|
-
style:
|
|
1059
|
+
style: T(i.styles),
|
|
1060
1060
|
"aria-atomic": "true",
|
|
1061
1061
|
"aria-label": "Badge",
|
|
1062
1062
|
"aria-live": "polite",
|
|
@@ -1554,7 +1554,7 @@ const _t = {
|
|
|
1554
1554
|
/* @__PURE__ */ w("polyline", { points: "1 5 4 8 10 2" })
|
|
1555
1555
|
], -1), It = [
|
|
1556
1556
|
Vt
|
|
1557
|
-
],
|
|
1557
|
+
], Rt = ["for"], Tt = ["for", "innerHTML"];
|
|
1558
1558
|
function Lt(e, t, l, a, r, i) {
|
|
1559
1559
|
return s(), m(V(e.formRegister && !i.wCheckboxes ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: r.isChecked, disabled: e.isDisabled }, {
|
|
1560
1560
|
valid: e.valid,
|
|
@@ -1612,12 +1612,12 @@ function Lt(e, t, l, a, r, i) {
|
|
|
1612
1612
|
p(e.$slots, "default", {}, () => [
|
|
1613
1613
|
S(_(l.label), 1)
|
|
1614
1614
|
])
|
|
1615
|
-
], 10,
|
|
1615
|
+
], 10, Rt)) : l.label ? (s(), u("label", {
|
|
1616
1616
|
key: 1,
|
|
1617
1617
|
class: f(["w-checkbox__label w-form-el-shakable pl2", e.labelClasses]),
|
|
1618
1618
|
for: `w-checkbox--${e._.uid}`,
|
|
1619
1619
|
innerHTML: l.label
|
|
1620
|
-
}, null, 10,
|
|
1620
|
+
}, null, 10, Tt)) : c("", !0)
|
|
1621
1621
|
], 64)) : c("", !0)
|
|
1622
1622
|
]),
|
|
1623
1623
|
_: 3
|
|
@@ -1939,7 +1939,7 @@ const At = {
|
|
|
1939
1939
|
function Kt(e, t, l, a, r, i) {
|
|
1940
1940
|
return s(), u("div", {
|
|
1941
1941
|
class: f(["w-date-picker", i.classes]),
|
|
1942
|
-
style:
|
|
1942
|
+
style: T(i.styles)
|
|
1943
1943
|
}, [
|
|
1944
1944
|
p(e.$slots, "default")
|
|
1945
1945
|
], 6);
|
|
@@ -1991,7 +1991,7 @@ function Ft(e, t, l, a, r, i) {
|
|
|
1991
1991
|
"title-class": l.titleClass,
|
|
1992
1992
|
"content-class": l.contentClass,
|
|
1993
1993
|
title: l.title || void 0,
|
|
1994
|
-
style:
|
|
1994
|
+
style: T(i.contentStyles)
|
|
1995
1995
|
}, Z({
|
|
1996
1996
|
default: g(() => [
|
|
1997
1997
|
p(e.$slots, "default")
|
|
@@ -2129,7 +2129,7 @@ function Qt(e, t, l, a, r, i) {
|
|
|
2129
2129
|
l.pushContent ? (s(), u("div", {
|
|
2130
2130
|
key: 0,
|
|
2131
2131
|
class: "w-drawer-wrap__track",
|
|
2132
|
-
style:
|
|
2132
|
+
style: T(i.trackStyles)
|
|
2133
2133
|
}, [
|
|
2134
2134
|
w("div", Jt, [
|
|
2135
2135
|
l.noOverlay ? c("", !0) : (s(), m(o, {
|
|
@@ -2154,7 +2154,7 @@ function Qt(e, t, l, a, r, i) {
|
|
|
2154
2154
|
key: 0,
|
|
2155
2155
|
class: f(["w-drawer", i.drawerClasses]),
|
|
2156
2156
|
ref: "drawer",
|
|
2157
|
-
style:
|
|
2157
|
+
style: T(i.styles)
|
|
2158
2158
|
}, {
|
|
2159
2159
|
default: g(() => [
|
|
2160
2160
|
p(e.$slots, "default")
|
|
@@ -2186,7 +2186,7 @@ function Qt(e, t, l, a, r, i) {
|
|
|
2186
2186
|
key: 0,
|
|
2187
2187
|
class: f(["w-drawer", i.drawerClasses]),
|
|
2188
2188
|
ref: "drawer",
|
|
2189
|
-
style:
|
|
2189
|
+
style: T(i.styles)
|
|
2190
2190
|
}, {
|
|
2191
2191
|
default: g(() => [
|
|
2192
2192
|
p(e.$slots, "default")
|
|
@@ -2710,7 +2710,7 @@ function wl(e, t, l, a, r, i) {
|
|
|
2710
2710
|
const o = $("w-progress");
|
|
2711
2711
|
return s(), m(V(i.wrapperTag), {
|
|
2712
2712
|
class: f(["w-image-wrap", i.wrapperClasses]),
|
|
2713
|
-
style:
|
|
2713
|
+
style: T(i.wrapperStyles)
|
|
2714
2714
|
}, {
|
|
2715
2715
|
default: g(() => [
|
|
2716
2716
|
I(O, {
|
|
@@ -2721,7 +2721,7 @@ function wl(e, t, l, a, r, i) {
|
|
|
2721
2721
|
r.loaded ? (s(), m(V(l.tag), {
|
|
2722
2722
|
key: 0,
|
|
2723
2723
|
class: f(["w-image", i.imageClasses]),
|
|
2724
|
-
style:
|
|
2724
|
+
style: T(i.imageStyles),
|
|
2725
2725
|
src: l.tag === "img" ? r.imgSrc : null
|
|
2726
2726
|
}, null, 8, ["class", "style", "src"])) : c("", !0)
|
|
2727
2727
|
]),
|
|
@@ -2846,7 +2846,7 @@ const vl = {
|
|
|
2846
2846
|
}, kl = /* @__PURE__ */ v(vl, [["render", wl]]), _l = ["name"], Cl = ["for"], Sl = ["id", "type", "name", "placeholder", "step", "min", "max", "minlength", "maxlength", "readonly", "aria-readonly", "disabled", "required", "tabindex"], Bl = ["id", "name", "multiple", "data-progress"], $l = {
|
|
2847
2847
|
class: "w-input__no-file",
|
|
2848
2848
|
key: "no-file"
|
|
2849
|
-
}, Vl = ["for"], Il = ["for"],
|
|
2849
|
+
}, Vl = ["for"], Il = ["for"], Rl = ["src"], Tl = ["for"];
|
|
2850
2850
|
function Ll(e, t, l, a, r, i) {
|
|
2851
2851
|
const o = $("w-icon"), n = $("w-progress");
|
|
2852
2852
|
return s(), m(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: r.inputValue, disabled: e.isDisabled, readonly: e.isReadonly, isFocused: r.isFocused }, {
|
|
@@ -3004,7 +3004,7 @@ function Ll(e, t, l, a, r, i) {
|
|
|
3004
3004
|
key: `${h}b`,
|
|
3005
3005
|
src: d.preview,
|
|
3006
3006
|
alt: ""
|
|
3007
|
-
}, null, 8,
|
|
3007
|
+
}, null, 8, Rl)) : (s(), u("i", {
|
|
3008
3008
|
class: f(["w-icon w-input__file-preview primary size--md", l.preview && typeof l.preview == "string" ? l.preview : "wi-file"]),
|
|
3009
3009
|
key: `${h}c`
|
|
3010
3010
|
}, null, 2))
|
|
@@ -3019,7 +3019,7 @@ function Ll(e, t, l, a, r, i) {
|
|
|
3019
3019
|
p(e.$slots, "default", {}, () => [
|
|
3020
3020
|
S(_(l.label), 1)
|
|
3021
3021
|
])
|
|
3022
|
-
], 10,
|
|
3022
|
+
], 10, Tl)) : c("", !0)
|
|
3023
3023
|
], 64)) : c("", !0)
|
|
3024
3024
|
], 64))
|
|
3025
3025
|
]),
|
|
@@ -3799,7 +3799,7 @@ function Nl(e, t, l, a, r, i) {
|
|
|
3799
3799
|
r.show ? (s(), u("div", {
|
|
3800
3800
|
key: 0,
|
|
3801
3801
|
class: f(["w-notification", i.classes]),
|
|
3802
|
-
style:
|
|
3802
|
+
style: T(i.styles)
|
|
3803
3803
|
}, [
|
|
3804
3804
|
I(o, C(i.alertProps, {
|
|
3805
3805
|
class: i.alertClasses,
|
|
@@ -3950,7 +3950,7 @@ function Dl(e, t, l, a, r, i) {
|
|
|
3950
3950
|
key: 0,
|
|
3951
3951
|
class: f(["w-overlay", i.classes]),
|
|
3952
3952
|
ref: "overlay",
|
|
3953
|
-
style:
|
|
3953
|
+
style: T(l.modelValue && i.styles || null),
|
|
3954
3954
|
onKeydown: t[0] || (t[0] = E(M((...n) => i.onClick && i.onClick(...n), ["stop"]), ["escape"])),
|
|
3955
3955
|
onClick: t[1] || (t[1] = (...n) => i.onClick && i.onClick(...n)),
|
|
3956
3956
|
tabindex: "0"
|
|
@@ -4031,7 +4031,7 @@ const Xl = {
|
|
|
4031
4031
|
function Zl(e, t, l, a, r, i) {
|
|
4032
4032
|
return s(), u("div", {
|
|
4033
4033
|
class: f(["w-progress", i.classes]),
|
|
4034
|
-
style:
|
|
4034
|
+
style: T(i.styles)
|
|
4035
4035
|
}, [
|
|
4036
4036
|
l.circle ? (s(), u("svg", {
|
|
4037
4037
|
key: 1,
|
|
@@ -4056,12 +4056,12 @@ function Zl(e, t, l, a, r, i) {
|
|
|
4056
4056
|
"stroke-width": l.stroke,
|
|
4057
4057
|
"stroke-linecap": l.roundCap && "round",
|
|
4058
4058
|
"stroke-dasharray": e.circleCircumference,
|
|
4059
|
-
style:
|
|
4059
|
+
style: T(`stroke-dashoffset: ${(1 - i.progressValue / 100) * e.circleCircumference}`)
|
|
4060
4060
|
}, null, 12, Ql)
|
|
4061
4061
|
], 8, Gl)) : (s(), u("div", {
|
|
4062
4062
|
key: 0,
|
|
4063
4063
|
class: f(["w-progress__progress", { full: i.progressValue === 100 }]),
|
|
4064
|
-
style:
|
|
4064
|
+
style: T(`width: ${i.progressValue}%`)
|
|
4065
4065
|
}, null, 6)),
|
|
4066
4066
|
l.label || e.$slots.default ? (s(), u("div", {
|
|
4067
4067
|
key: 2,
|
|
@@ -4393,7 +4393,7 @@ function yi(e, t, l, a, r, i) {
|
|
|
4393
4393
|
class: f(["w-icon", `${l.icon} ${l.color}`]),
|
|
4394
4394
|
role: "icon",
|
|
4395
4395
|
"aria-hidden": "true",
|
|
4396
|
-
style:
|
|
4396
|
+
style: T(i.halfStarStyle)
|
|
4397
4397
|
}, null, 6)) : c("", !0)
|
|
4398
4398
|
], 42, bi)
|
|
4399
4399
|
], 64))), 128))
|
|
@@ -4511,7 +4511,7 @@ function ki(e, t, l, a, r, i) {
|
|
|
4511
4511
|
w("div", {
|
|
4512
4512
|
class: "w-scrollbar__thumb",
|
|
4513
4513
|
ref: "thumb",
|
|
4514
|
-
style:
|
|
4514
|
+
style: T(i.thumbStyles)
|
|
4515
4515
|
}, null, 4)
|
|
4516
4516
|
], 34)
|
|
4517
4517
|
], 64);
|
|
@@ -4634,7 +4634,7 @@ const _i = {
|
|
|
4634
4634
|
}, Si = /* @__PURE__ */ v(Ci, [["render", ki]]), Bi = ["for"], $i = ["aria-expanded", "aria-owns", "aria-activedescendant"], Vi = {
|
|
4635
4635
|
key: 1,
|
|
4636
4636
|
class: "w-select__selection-slot"
|
|
4637
|
-
}, Ii = ["contenteditable", "id", "disabled", "tabindex", "innerHTML"],
|
|
4637
|
+
}, Ii = ["contenteditable", "id", "disabled", "tabindex", "innerHTML"], Ri = ["value", "name"], Ti = ["for"], Li = ["for"];
|
|
4638
4638
|
function xi(e, t, l, a, r, i) {
|
|
4639
4639
|
const o = $("w-icon"), n = $("w-list"), d = $("w-menu");
|
|
4640
4640
|
return s(), m(V(e.formRegister ? "w-form-element" : "div"), C({ ref: "formEl" }, e.formRegister && { validators: e.validators, inputValue: i.selectionString, disabled: e.isDisabled, readonly: e.isReadonly }, {
|
|
@@ -4711,7 +4711,7 @@ function xi(e, t, l, a, r, i) {
|
|
|
4711
4711
|
type: "hidden",
|
|
4712
4712
|
value: y.value === void 0 ? "" : y.value.toString(),
|
|
4713
4713
|
name: e.inputName + (l.multiple ? "[]" : "")
|
|
4714
|
-
}, null, 8,
|
|
4714
|
+
}, null, 8, Ri))), 128)),
|
|
4715
4715
|
l.labelPosition === "inside" && i.showLabelInside ? (s(), u(k, { key: 2 }, [
|
|
4716
4716
|
e.$slots.default || l.label ? (s(), u("label", {
|
|
4717
4717
|
key: 0,
|
|
@@ -4721,7 +4721,7 @@ function xi(e, t, l, a, r, i) {
|
|
|
4721
4721
|
p(e.$slots, "default", {}, () => [
|
|
4722
4722
|
S(_(l.label), 1)
|
|
4723
4723
|
])
|
|
4724
|
-
], 10,
|
|
4724
|
+
], 10, Ti)) : c("", !0)
|
|
4725
4725
|
], 64)) : c("", !0),
|
|
4726
4726
|
l.innerIconRight ? (s(), m(o, {
|
|
4727
4727
|
key: 3,
|
|
@@ -5004,11 +5004,11 @@ function Ui(e, t, l, a, r, i) {
|
|
|
5004
5004
|
}, [
|
|
5005
5005
|
w("div", {
|
|
5006
5006
|
class: f(["w-slider__range", i.rangeClasses]),
|
|
5007
|
-
style:
|
|
5007
|
+
style: T(i.rangeStyles)
|
|
5008
5008
|
}, null, 6),
|
|
5009
5009
|
w("div", {
|
|
5010
5010
|
class: "w-slider__thumb",
|
|
5011
|
-
style:
|
|
5011
|
+
style: T(i.thumbStyles)
|
|
5012
5012
|
}, [
|
|
5013
5013
|
w("button", {
|
|
5014
5014
|
class: f(["w-slider__thumb-button", [l.color]]),
|
|
@@ -5055,7 +5055,7 @@ function Ui(e, t, l, a, r, i) {
|
|
|
5055
5055
|
class: "w-slider__step-label",
|
|
5056
5056
|
key: o,
|
|
5057
5057
|
onClick: (n) => i.onStepLabelClick(o * (100 / i.numberOfSteps)),
|
|
5058
|
-
style:
|
|
5058
|
+
style: T(`left: ${o * (100 / i.numberOfSteps)}%`)
|
|
5059
5059
|
}, _(i.percentToScaled(o * (100 / i.numberOfSteps))), 13, Di))), 128)),
|
|
5060
5060
|
~~i.numberOfSteps !== i.numberOfSteps ? (s(), u("div", {
|
|
5061
5061
|
key: 0,
|
|
@@ -5220,7 +5220,7 @@ function Gi(e, t, l, a, r, i) {
|
|
|
5220
5220
|
return l.modelValue || l.modelValue === void 0 ? (s(), u("div", {
|
|
5221
5221
|
key: 0,
|
|
5222
5222
|
class: f(["w-spinner", i.classes]),
|
|
5223
|
-
style:
|
|
5223
|
+
style: T(i.styles)
|
|
5224
5224
|
}, [
|
|
5225
5225
|
i.isThreeDots ? (s(), u("span", Yi)) : c("", !0)
|
|
5226
5226
|
], 6)) : c("", !0);
|
|
@@ -5484,7 +5484,7 @@ function vs(e, t, l, a, r, i) {
|
|
|
5484
5484
|
!l.noSlider && !l.card ? (s(), u("div", {
|
|
5485
5485
|
key: 1,
|
|
5486
5486
|
class: f(["w-tabs__slider", l.sliderColor]),
|
|
5487
|
-
style:
|
|
5487
|
+
style: T(i.sliderStyles)
|
|
5488
5488
|
}, null, 6)) : c("", !0)
|
|
5489
5489
|
], 2),
|
|
5490
5490
|
e.tabs.length ? (s(), u("div", bs, [
|
|
@@ -5744,7 +5744,7 @@ const ks = {
|
|
|
5744
5744
|
}, _s = /* @__PURE__ */ v(ks, [["render", vs]]), Cs = { ref: "colgroup" }, Ss = ["width"], Bs = { key: 0 }, $s = ["onClick"], Vs = ["innerHTML"], Is = {
|
|
5745
5745
|
key: 0,
|
|
5746
5746
|
class: "w-table__progress-bar"
|
|
5747
|
-
},
|
|
5747
|
+
}, Rs = ["colspan"], Ts = {
|
|
5748
5748
|
key: 0,
|
|
5749
5749
|
class: "w-table__progress-bar"
|
|
5750
5750
|
}, Ls = ["colspan"], xs = { class: "w-table__loading-text" }, Os = {
|
|
@@ -5778,17 +5778,17 @@ function Js(e, t, l, a, r, i) {
|
|
|
5778
5778
|
onMouseout: t[7] || (t[7] = (...b) => i.onMouseOut && i.onMouseOut(...b))
|
|
5779
5779
|
}, [
|
|
5780
5780
|
w("colgroup", Cs, [
|
|
5781
|
-
(s(!0), u(k, null, L(l.headers, (b,
|
|
5782
|
-
class: f(["w-table__col", i.colClasses[
|
|
5783
|
-
key:
|
|
5781
|
+
(s(!0), u(k, null, L(l.headers, (b, R) => (s(), u("col", {
|
|
5782
|
+
class: f(["w-table__col", i.colClasses[R]]),
|
|
5783
|
+
key: R,
|
|
5784
5784
|
width: b.width || null
|
|
5785
5785
|
}, null, 10, Ss))), 128))
|
|
5786
5786
|
], 512),
|
|
5787
5787
|
l.noHeaders ? c("", !0) : (s(), u("thead", Bs, [
|
|
5788
5788
|
w("tr", null, [
|
|
5789
|
-
(s(!0), u(k, null, L(l.headers, (b,
|
|
5789
|
+
(s(!0), u(k, null, L(l.headers, (b, R) => (s(), u("th", {
|
|
5790
5790
|
class: f(["w-table__header", i.headerClasses(b)]),
|
|
5791
|
-
key:
|
|
5791
|
+
key: R,
|
|
5792
5792
|
onClick: (x) => !e.colResizing.dragging && b.sortable !== !1 && i.sortTable(b)
|
|
5793
5793
|
}, [
|
|
5794
5794
|
b.sortable !== !1 && b.align === "right" ? (s(), m(o, {
|
|
@@ -5805,7 +5805,7 @@ function Js(e, t, l, a, r, i) {
|
|
|
5805
5805
|
key: 0,
|
|
5806
5806
|
header: b,
|
|
5807
5807
|
label: b.label,
|
|
5808
|
-
index:
|
|
5808
|
+
index: R + 1
|
|
5809
5809
|
}, () => [
|
|
5810
5810
|
S(_(b.label || ""), 1)
|
|
5811
5811
|
]) : (s(), u("span", {
|
|
@@ -5822,9 +5822,9 @@ function Js(e, t, l, a, r, i) {
|
|
|
5822
5822
|
]),
|
|
5823
5823
|
_: 2
|
|
5824
5824
|
}, 1032, ["class"])) : c("", !0),
|
|
5825
|
-
|
|
5825
|
+
R < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
|
|
5826
5826
|
key: 3,
|
|
5827
|
-
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
5827
|
+
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === R, "w-table__col-resizer--active": e.colResizing.columnIndex === R }]),
|
|
5828
5828
|
onClick: t[0] || (t[0] = M(() => {
|
|
5829
5829
|
}, ["stop"]))
|
|
5830
5830
|
}, null, 2)) : c("", !0)
|
|
@@ -5837,14 +5837,14 @@ function Js(e, t, l, a, r, i) {
|
|
|
5837
5837
|
colspan: l.headers.length
|
|
5838
5838
|
}, [
|
|
5839
5839
|
I(n, { tile: "" })
|
|
5840
|
-
], 8,
|
|
5840
|
+
], 8, Rs)
|
|
5841
5841
|
])) : c("", !0)
|
|
5842
5842
|
]),
|
|
5843
5843
|
_: 1
|
|
5844
5844
|
})
|
|
5845
5845
|
])),
|
|
5846
5846
|
w("tbody", null, [
|
|
5847
|
-
l.loading === !0 ? (s(), u("tr",
|
|
5847
|
+
l.loading === !0 ? (s(), u("tr", Ts, [
|
|
5848
5848
|
w("td", {
|
|
5849
5849
|
colspan: l.headers.length
|
|
5850
5850
|
}, [
|
|
@@ -5865,17 +5865,17 @@ function Js(e, t, l, a, r, i) {
|
|
|
5865
5865
|
])
|
|
5866
5866
|
], 8, Ps)
|
|
5867
5867
|
])),
|
|
5868
|
-
i.tableItems.length && l.loading !== !0 ? (s(!0), u(k, { key: 2 }, L(i.paginatedItems, (b,
|
|
5868
|
+
i.tableItems.length && l.loading !== !0 ? (s(!0), u(k, { key: 2 }, L(i.paginatedItems, (b, R) => (s(), u(k, { key: R }, [
|
|
5869
5869
|
e.$slots.item ? p(e.$slots, "item", {
|
|
5870
5870
|
key: 0,
|
|
5871
5871
|
item: b,
|
|
5872
|
-
index:
|
|
5873
|
-
select: () => i.doSelectRow(b,
|
|
5872
|
+
index: R + 1,
|
|
5873
|
+
select: () => i.doSelectRow(b, R),
|
|
5874
5874
|
classes: { "w-table__row": !0, "w-table__row--selected": i.selectedRowsByUid[b._uid] !== void 0, "w-table__row--expanded": i.expandedRowsByUid[b._uid] !== void 0 }
|
|
5875
5875
|
}) : (s(), u("tr", {
|
|
5876
5876
|
key: 1,
|
|
5877
5877
|
class: f(["w-table__row", { "w-table__row--selected": i.selectedRowsByUid[b._uid] !== void 0, "w-table__row--expanded": i.expandedRowsByUid[b._uid] !== void 0 }]),
|
|
5878
|
-
onClick: (x) => i.doSelectRow(b,
|
|
5878
|
+
onClick: (x) => i.doSelectRow(b, R)
|
|
5879
5879
|
}, [
|
|
5880
5880
|
(s(!0), u(k, null, L(l.headers, (x, P) => (s(), u(k, null, [
|
|
5881
5881
|
e.$slots[`item-cell.${x.key}`] || e.$slots[`item-cell.${P + 1}`] || e.$slots["item-cell"] ? (s(), u("td", {
|
|
@@ -5888,19 +5888,19 @@ function Js(e, t, l, a, r, i) {
|
|
|
5888
5888
|
header: x,
|
|
5889
5889
|
item: b,
|
|
5890
5890
|
label: b[x.key] || "",
|
|
5891
|
-
index:
|
|
5891
|
+
index: R + 1
|
|
5892
5892
|
}) : e.$slots[`item-cell.${P + 1}`] ? p(e.$slots, `item-cell.${P + 1}`, {
|
|
5893
5893
|
key: 1,
|
|
5894
5894
|
header: x,
|
|
5895
5895
|
item: b,
|
|
5896
5896
|
label: b[x.key] || "",
|
|
5897
|
-
index:
|
|
5897
|
+
index: R + 1
|
|
5898
5898
|
}) : e.$slots["item-cell"] ? p(e.$slots, "item-cell", {
|
|
5899
5899
|
key: 2,
|
|
5900
5900
|
header: x,
|
|
5901
5901
|
item: b,
|
|
5902
5902
|
label: b[x.key] || "",
|
|
5903
|
-
index:
|
|
5903
|
+
index: R + 1
|
|
5904
5904
|
}) : c("", !0),
|
|
5905
5905
|
P < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
|
|
5906
5906
|
key: 3,
|
|
@@ -5931,12 +5931,12 @@ function Js(e, t, l, a, r, i) {
|
|
|
5931
5931
|
i.expandedRowsByUid[b._uid] ? (s(), u("div", Ks, [
|
|
5932
5932
|
p(e.$slots, "row-expansion", {
|
|
5933
5933
|
item: b,
|
|
5934
|
-
index:
|
|
5934
|
+
index: R + 1
|
|
5935
5935
|
})
|
|
5936
5936
|
])) : c("", !0),
|
|
5937
|
-
|
|
5937
|
+
R < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
|
|
5938
5938
|
key: 1,
|
|
5939
|
-
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover ===
|
|
5939
|
+
class: f(["w-table__col-resizer", { "w-table__col-resizer--hover": e.colResizing.hover === R, "w-table__col-resizer--active": e.colResizing.columnIndex === e.j }])
|
|
5940
5940
|
}, null, 2)) : c("", !0)
|
|
5941
5941
|
]),
|
|
5942
5942
|
_: 2
|
|
@@ -5990,7 +5990,7 @@ function Js(e, t, l, a, r, i) {
|
|
|
5990
5990
|
(s(!0), u(k, null, L(e.paginationConfig.pagesCount, (b) => (s(), m(B, {
|
|
5991
5991
|
class: f(["w-pagination__page", { "w-pagination__page--active": b === e.paginationConfig.page }]),
|
|
5992
5992
|
key: b,
|
|
5993
|
-
onClick: (
|
|
5993
|
+
onClick: (R) => b !== e.paginationConfig.page && i.goToPage(b),
|
|
5994
5994
|
round: "",
|
|
5995
5995
|
lg: ""
|
|
5996
5996
|
}, {
|
|
@@ -6649,7 +6649,7 @@ const fa = {
|
|
|
6649
6649
|
function ma(e, t, l, a, r, i) {
|
|
6650
6650
|
return s(), u("div", {
|
|
6651
6651
|
class: f(["w-toolbar", i.classes]),
|
|
6652
|
-
style:
|
|
6652
|
+
style: T(i.styles)
|
|
6653
6653
|
}, [
|
|
6654
6654
|
p(e.$slots, "default")
|
|
6655
6655
|
], 6);
|
|
@@ -6716,7 +6716,7 @@ function wa(e, t, l, a, r, i) {
|
|
|
6716
6716
|
class: f(["w-tooltip", i.classes]),
|
|
6717
6717
|
ref: "detachable",
|
|
6718
6718
|
key: e._.uid,
|
|
6719
|
-
style:
|
|
6719
|
+
style: T(i.styles)
|
|
6720
6720
|
}, [
|
|
6721
6721
|
p(e.$slots, "default")
|
|
6722
6722
|
], 6)) : c("", !0)
|
|
@@ -6947,13 +6947,13 @@ function Ia(e, t, l, a, r, i) {
|
|
|
6947
6947
|
_: 3
|
|
6948
6948
|
}, 16);
|
|
6949
6949
|
}
|
|
6950
|
-
const
|
|
6950
|
+
const Ra = {
|
|
6951
6951
|
name: "w-transition-fade",
|
|
6952
6952
|
props: {
|
|
6953
6953
|
appear: { type: Boolean },
|
|
6954
6954
|
duration: { type: [Number, String] }
|
|
6955
6955
|
}
|
|
6956
|
-
},
|
|
6956
|
+
}, Ta = /* @__PURE__ */ v(Ra, [["render", Ia]]);
|
|
6957
6957
|
function La(e, t, l, a, r, i) {
|
|
6958
6958
|
return s(), m(O, C({ name: "scale" }, e.$props), {
|
|
6959
6959
|
default: g(() => [
|
|
@@ -7112,8 +7112,8 @@ function Xa(e, t, l, a, r, i) {
|
|
|
7112
7112
|
}, 1040, ["onClick", "onKeydown", "tabindex"])),
|
|
7113
7113
|
(s(), m(V(l.noTransition ? "div" : "w-transition-expand"), {
|
|
7114
7114
|
y: !l.noTransition || null,
|
|
7115
|
-
onAfterEnter: (B) => e.$emit("open",
|
|
7116
|
-
onAfterLeave: (B) => e.$emit("close",
|
|
7115
|
+
onAfterEnter: (B) => e.$emit("open", i.emitPayload(h)),
|
|
7116
|
+
onAfterLeave: (B) => e.$emit("close", i.emitPayload(h))
|
|
7117
7117
|
}, {
|
|
7118
7118
|
default: g(() => [
|
|
7119
7119
|
h.children && h.open ? (s(), m(d, C({ key: 0 }, e.$props, {
|
|
@@ -7128,11 +7128,11 @@ function Xa(e, t, l, a, r, i) {
|
|
|
7128
7128
|
onSelect: t[5] || (t[5] = (B) => e.$emit("select", B)),
|
|
7129
7129
|
"onUpdate:modelValue": t[6] || (t[6] = (B) => e.$emit("update:model-value", B))
|
|
7130
7130
|
}), {
|
|
7131
|
-
item: g(({ item: B, depth: b, path:
|
|
7131
|
+
item: g(({ item: B, depth: b, path: R, open: x }) => [
|
|
7132
7132
|
p(e.$slots, "item", {
|
|
7133
7133
|
item: B,
|
|
7134
7134
|
depth: b,
|
|
7135
|
-
path:
|
|
7135
|
+
path: R,
|
|
7136
7136
|
open: x
|
|
7137
7137
|
})
|
|
7138
7138
|
]),
|
|
@@ -7183,6 +7183,7 @@ const Ya = {
|
|
|
7183
7183
|
return {
|
|
7184
7184
|
[`w-tree--depth${this.depth}`]: !0,
|
|
7185
7185
|
"w-tree--expand-icon": this.expandIcon && !this.depth,
|
|
7186
|
+
"w-tree--selectable": this.selectable,
|
|
7186
7187
|
"w-tree--disabled": this.disabled && !this.depth,
|
|
7187
7188
|
"w-tree--no-expand-button": !this.expandIcon
|
|
7188
7189
|
};
|
|
@@ -7193,7 +7194,7 @@ const Ya = {
|
|
|
7193
7194
|
if (this.currentDepthItems = [], !Array.isArray(e) && typeof e != "object")
|
|
7194
7195
|
return G(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`);
|
|
7195
7196
|
Array.isArray(e) || (e = [e]), e.forEach((l, a) => {
|
|
7196
|
-
var i;
|
|
7197
|
+
var i, o;
|
|
7197
7198
|
const r = {
|
|
7198
7199
|
originalItem: l,
|
|
7199
7200
|
_uid: this.depth.toString() + (a + 1),
|
|
@@ -7202,8 +7203,9 @@ const Ya = {
|
|
|
7202
7203
|
branch: l.branch,
|
|
7203
7204
|
route: l[this.itemRouteKey],
|
|
7204
7205
|
disabled: l[this.itemDisabledKey],
|
|
7206
|
+
selected: ((i = t[a]) == null ? void 0 : i.selected) || !1,
|
|
7205
7207
|
depth: this.depth,
|
|
7206
|
-
open: !!(((
|
|
7208
|
+
open: !!(((o = t[a]) == null ? void 0 : o.open) || this.expandAll || l[this.itemOpenKey]),
|
|
7207
7209
|
parent: this.parent || null,
|
|
7208
7210
|
path: []
|
|
7209
7211
|
};
|
|
@@ -7228,37 +7230,32 @@ const Ya = {
|
|
|
7228
7230
|
},
|
|
7229
7231
|
expandDepth(e, t) {
|
|
7230
7232
|
typeof t == "boolean" ? e.open = t : e.open = !e.open;
|
|
7231
|
-
const l =
|
|
7232
|
-
item: e.originalItem,
|
|
7233
|
-
open: e.open,
|
|
7234
|
-
depth: this.depth,
|
|
7235
|
-
path: this.getTreeItemPathForOutput(e)
|
|
7236
|
-
};
|
|
7233
|
+
const l = this.emitPayload(e);
|
|
7237
7234
|
return this.$emit(e.open ? "before-open" : "before-close", l), !this.unexpandableEmpty && !e.children && this.$emit(e.open ? "open" : "close", l), !0;
|
|
7238
7235
|
},
|
|
7239
7236
|
onLabelClick(e, t) {
|
|
7240
|
-
e[this.itemRouteKey] && this.$router && !this.hasExternalLink(e) && t.preventDefault(), this
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
path: this.getTreeItemPathForOutput(e),
|
|
7244
|
-
e: t
|
|
7245
|
-
}), (e.children || e.branch && !this.unexpandableEmpty) && this.expandDepth(e), this.selectable && this.emitItemSelection(e, t);
|
|
7246
|
-
},
|
|
7247
|
-
emitItemSelection(e, t) {
|
|
7248
|
-
const l = {
|
|
7249
|
-
item: e.originalItem,
|
|
7250
|
-
depth: this.depth,
|
|
7251
|
-
path: this.getTreeItemPathForOutput(e),
|
|
7252
|
-
e: t
|
|
7253
|
-
};
|
|
7254
|
-
(e.children || e.branch && !this.unexpandableEmpty) && (l.open = e.open), this.$emit("update:model-value", l), this.$emit("select", l);
|
|
7237
|
+
e[this.itemRouteKey] && this.$router && !this.hasExternalLink(e) && t.preventDefault(), (e.children || e.branch && !this.unexpandableEmpty) && this.expandDepth(e), this.selectable && (e.selected = !e.selected);
|
|
7238
|
+
const a = this.emitPayload(e, t);
|
|
7239
|
+
this.$emit("click", a), this.emitItemSelection(e, t);
|
|
7255
7240
|
},
|
|
7256
7241
|
onLabelKeydown(e, t) {
|
|
7257
7242
|
if (!(t.metaKey || t.ctrlKey || t.altKey || t.shiftKey) && [13, 32, 37, 38, 39, 40].includes(t.which) && ((e.children || e.branch) && ([13, 32].includes(t.which) ? this.expandDepth(e) && t.preventDefault() : t.which === 37 ? this.expandDepth(e, !1) && t.preventDefault() : t.which === 39 && this.expandDepth(e, !0) && t.preventDefault()), [38, 40].includes(t.which))) {
|
|
7258
7243
|
const a = this.$el.closest(".w-tree--depth0").querySelectorAll('.w-tree__item-label[tabindex="0"]'), r = t.target.closest(".w-tree__item-label"), i = t.which === 38 ? -1 : 1;
|
|
7259
7244
|
[...a].some((o, n) => o.isSameNode(r) ? (a[n + i] && a[n + i].focus(), !0) : !1);
|
|
7260
7245
|
}
|
|
7261
|
-
this.selectable && this.emitItemSelection(e, t);
|
|
7246
|
+
t.which === 13 && (this.selectable && (e.selected = !e.selected), this.emitItemSelection(e, t));
|
|
7247
|
+
},
|
|
7248
|
+
emitItemSelection(e, t) {
|
|
7249
|
+
const l = this.emitPayload(e, t);
|
|
7250
|
+
this.$emit("update:model-value", l), this.selectable && this.$emit("select", l);
|
|
7251
|
+
},
|
|
7252
|
+
emitPayload(e, t) {
|
|
7253
|
+
const l = {
|
|
7254
|
+
item: e.originalItem,
|
|
7255
|
+
depth: this.depth,
|
|
7256
|
+
path: this.getTreeItemPathForOutput(e)
|
|
7257
|
+
};
|
|
7258
|
+
return t && (l.e = t), (e.children || e.branch && !this.unexpandableEmpty) && (l.open = e.open), this.selectable && (l.selected = e.selected), l;
|
|
7262
7259
|
},
|
|
7263
7260
|
getPreviousSibling(e, t) {
|
|
7264
7261
|
for (; t && (e = e.previousElementSibling); )
|
|
@@ -7285,6 +7282,7 @@ const Ya = {
|
|
|
7285
7282
|
return {
|
|
7286
7283
|
[e.children || e.branch ? "w-tree__item--branch" : "w-tree__item--leaf"]: !0,
|
|
7287
7284
|
"w-tree__item--disabled": e[this.itemDisabledKey],
|
|
7285
|
+
"w-tree__item--selected": e.selected,
|
|
7288
7286
|
"w-tree__item--empty": e.branch && !e.children,
|
|
7289
7287
|
"w-tree__item--unexpandable": e.branch && !e.children && this.unexpandableEmpty
|
|
7290
7288
|
};
|
|
@@ -7347,7 +7345,7 @@ const Ya = {
|
|
|
7347
7345
|
WTooltip: ka,
|
|
7348
7346
|
WTransitionBounce: Sa,
|
|
7349
7347
|
WTransitionExpand: Va,
|
|
7350
|
-
WTransitionFade:
|
|
7348
|
+
WTransitionFade: Ta,
|
|
7351
7349
|
WTransitionScale: Oa,
|
|
7352
7350
|
WTransitionScaleFade: Ma,
|
|
7353
7351
|
WTransitionSlide: Aa,
|