wave-ui 3.4.1 → 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 +90 -95
- 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-tabs/tab-content.vue +1 -5
- 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);
|
|
@@ -5435,10 +5435,7 @@ function hs(e, t, l, a, r, i) {
|
|
|
5435
5435
|
}
|
|
5436
5436
|
const cs = {
|
|
5437
5437
|
name: "tab-content",
|
|
5438
|
-
props: { item: Object }
|
|
5439
|
-
mounted() {
|
|
5440
|
-
console.log("mounted!", this.item._uid);
|
|
5441
|
-
}
|
|
5438
|
+
props: { item: Object }
|
|
5442
5439
|
}, ps = /* @__PURE__ */ v(cs, [["render", hs]]), fs = ["onClick", "onFocus", "tabindex", "onKeypress", "aria-selected"], gs = ["innerHTML"], ms = {
|
|
5443
5440
|
key: 0,
|
|
5444
5441
|
class: "w-tabs__bar-extra"
|
|
@@ -5487,7 +5484,7 @@ function vs(e, t, l, a, r, i) {
|
|
|
5487
5484
|
!l.noSlider && !l.card ? (s(), u("div", {
|
|
5488
5485
|
key: 1,
|
|
5489
5486
|
class: f(["w-tabs__slider", l.sliderColor]),
|
|
5490
|
-
style:
|
|
5487
|
+
style: T(i.sliderStyles)
|
|
5491
5488
|
}, null, 6)) : c("", !0)
|
|
5492
5489
|
], 2),
|
|
5493
5490
|
e.tabs.length ? (s(), u("div", bs, [
|
|
@@ -5747,7 +5744,7 @@ const ks = {
|
|
|
5747
5744
|
}, _s = /* @__PURE__ */ v(ks, [["render", vs]]), Cs = { ref: "colgroup" }, Ss = ["width"], Bs = { key: 0 }, $s = ["onClick"], Vs = ["innerHTML"], Is = {
|
|
5748
5745
|
key: 0,
|
|
5749
5746
|
class: "w-table__progress-bar"
|
|
5750
|
-
},
|
|
5747
|
+
}, Rs = ["colspan"], Ts = {
|
|
5751
5748
|
key: 0,
|
|
5752
5749
|
class: "w-table__progress-bar"
|
|
5753
5750
|
}, Ls = ["colspan"], xs = { class: "w-table__loading-text" }, Os = {
|
|
@@ -5781,17 +5778,17 @@ function Js(e, t, l, a, r, i) {
|
|
|
5781
5778
|
onMouseout: t[7] || (t[7] = (...b) => i.onMouseOut && i.onMouseOut(...b))
|
|
5782
5779
|
}, [
|
|
5783
5780
|
w("colgroup", Cs, [
|
|
5784
|
-
(s(!0), u(k, null, L(l.headers, (b,
|
|
5785
|
-
class: f(["w-table__col", i.colClasses[
|
|
5786
|
-
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,
|
|
5787
5784
|
width: b.width || null
|
|
5788
5785
|
}, null, 10, Ss))), 128))
|
|
5789
5786
|
], 512),
|
|
5790
5787
|
l.noHeaders ? c("", !0) : (s(), u("thead", Bs, [
|
|
5791
5788
|
w("tr", null, [
|
|
5792
|
-
(s(!0), u(k, null, L(l.headers, (b,
|
|
5789
|
+
(s(!0), u(k, null, L(l.headers, (b, R) => (s(), u("th", {
|
|
5793
5790
|
class: f(["w-table__header", i.headerClasses(b)]),
|
|
5794
|
-
key:
|
|
5791
|
+
key: R,
|
|
5795
5792
|
onClick: (x) => !e.colResizing.dragging && b.sortable !== !1 && i.sortTable(b)
|
|
5796
5793
|
}, [
|
|
5797
5794
|
b.sortable !== !1 && b.align === "right" ? (s(), m(o, {
|
|
@@ -5808,7 +5805,7 @@ function Js(e, t, l, a, r, i) {
|
|
|
5808
5805
|
key: 0,
|
|
5809
5806
|
header: b,
|
|
5810
5807
|
label: b.label,
|
|
5811
|
-
index:
|
|
5808
|
+
index: R + 1
|
|
5812
5809
|
}, () => [
|
|
5813
5810
|
S(_(b.label || ""), 1)
|
|
5814
5811
|
]) : (s(), u("span", {
|
|
@@ -5825,9 +5822,9 @@ function Js(e, t, l, a, r, i) {
|
|
|
5825
5822
|
]),
|
|
5826
5823
|
_: 2
|
|
5827
5824
|
}, 1032, ["class"])) : c("", !0),
|
|
5828
|
-
|
|
5825
|
+
R < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
|
|
5829
5826
|
key: 3,
|
|
5830
|
-
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 }]),
|
|
5831
5828
|
onClick: t[0] || (t[0] = M(() => {
|
|
5832
5829
|
}, ["stop"]))
|
|
5833
5830
|
}, null, 2)) : c("", !0)
|
|
@@ -5840,14 +5837,14 @@ function Js(e, t, l, a, r, i) {
|
|
|
5840
5837
|
colspan: l.headers.length
|
|
5841
5838
|
}, [
|
|
5842
5839
|
I(n, { tile: "" })
|
|
5843
|
-
], 8,
|
|
5840
|
+
], 8, Rs)
|
|
5844
5841
|
])) : c("", !0)
|
|
5845
5842
|
]),
|
|
5846
5843
|
_: 1
|
|
5847
5844
|
})
|
|
5848
5845
|
])),
|
|
5849
5846
|
w("tbody", null, [
|
|
5850
|
-
l.loading === !0 ? (s(), u("tr",
|
|
5847
|
+
l.loading === !0 ? (s(), u("tr", Ts, [
|
|
5851
5848
|
w("td", {
|
|
5852
5849
|
colspan: l.headers.length
|
|
5853
5850
|
}, [
|
|
@@ -5868,17 +5865,17 @@ function Js(e, t, l, a, r, i) {
|
|
|
5868
5865
|
])
|
|
5869
5866
|
], 8, Ps)
|
|
5870
5867
|
])),
|
|
5871
|
-
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 }, [
|
|
5872
5869
|
e.$slots.item ? p(e.$slots, "item", {
|
|
5873
5870
|
key: 0,
|
|
5874
5871
|
item: b,
|
|
5875
|
-
index:
|
|
5876
|
-
select: () => i.doSelectRow(b,
|
|
5872
|
+
index: R + 1,
|
|
5873
|
+
select: () => i.doSelectRow(b, R),
|
|
5877
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 }
|
|
5878
5875
|
}) : (s(), u("tr", {
|
|
5879
5876
|
key: 1,
|
|
5880
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 }]),
|
|
5881
|
-
onClick: (x) => i.doSelectRow(b,
|
|
5878
|
+
onClick: (x) => i.doSelectRow(b, R)
|
|
5882
5879
|
}, [
|
|
5883
5880
|
(s(!0), u(k, null, L(l.headers, (x, P) => (s(), u(k, null, [
|
|
5884
5881
|
e.$slots[`item-cell.${x.key}`] || e.$slots[`item-cell.${P + 1}`] || e.$slots["item-cell"] ? (s(), u("td", {
|
|
@@ -5891,19 +5888,19 @@ function Js(e, t, l, a, r, i) {
|
|
|
5891
5888
|
header: x,
|
|
5892
5889
|
item: b,
|
|
5893
5890
|
label: b[x.key] || "",
|
|
5894
|
-
index:
|
|
5891
|
+
index: R + 1
|
|
5895
5892
|
}) : e.$slots[`item-cell.${P + 1}`] ? p(e.$slots, `item-cell.${P + 1}`, {
|
|
5896
5893
|
key: 1,
|
|
5897
5894
|
header: x,
|
|
5898
5895
|
item: b,
|
|
5899
5896
|
label: b[x.key] || "",
|
|
5900
|
-
index:
|
|
5897
|
+
index: R + 1
|
|
5901
5898
|
}) : e.$slots["item-cell"] ? p(e.$slots, "item-cell", {
|
|
5902
5899
|
key: 2,
|
|
5903
5900
|
header: x,
|
|
5904
5901
|
item: b,
|
|
5905
5902
|
label: b[x.key] || "",
|
|
5906
|
-
index:
|
|
5903
|
+
index: R + 1
|
|
5907
5904
|
}) : c("", !0),
|
|
5908
5905
|
P < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
|
|
5909
5906
|
key: 3,
|
|
@@ -5934,12 +5931,12 @@ function Js(e, t, l, a, r, i) {
|
|
|
5934
5931
|
i.expandedRowsByUid[b._uid] ? (s(), u("div", Ks, [
|
|
5935
5932
|
p(e.$slots, "row-expansion", {
|
|
5936
5933
|
item: b,
|
|
5937
|
-
index:
|
|
5934
|
+
index: R + 1
|
|
5938
5935
|
})
|
|
5939
5936
|
])) : c("", !0),
|
|
5940
|
-
|
|
5937
|
+
R < l.headers.length - 1 && l.resizableColumns ? (s(), u("span", {
|
|
5941
5938
|
key: 1,
|
|
5942
|
-
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 }])
|
|
5943
5940
|
}, null, 2)) : c("", !0)
|
|
5944
5941
|
]),
|
|
5945
5942
|
_: 2
|
|
@@ -5993,7 +5990,7 @@ function Js(e, t, l, a, r, i) {
|
|
|
5993
5990
|
(s(!0), u(k, null, L(e.paginationConfig.pagesCount, (b) => (s(), m(B, {
|
|
5994
5991
|
class: f(["w-pagination__page", { "w-pagination__page--active": b === e.paginationConfig.page }]),
|
|
5995
5992
|
key: b,
|
|
5996
|
-
onClick: (
|
|
5993
|
+
onClick: (R) => b !== e.paginationConfig.page && i.goToPage(b),
|
|
5997
5994
|
round: "",
|
|
5998
5995
|
lg: ""
|
|
5999
5996
|
}, {
|
|
@@ -6652,7 +6649,7 @@ const fa = {
|
|
|
6652
6649
|
function ma(e, t, l, a, r, i) {
|
|
6653
6650
|
return s(), u("div", {
|
|
6654
6651
|
class: f(["w-toolbar", i.classes]),
|
|
6655
|
-
style:
|
|
6652
|
+
style: T(i.styles)
|
|
6656
6653
|
}, [
|
|
6657
6654
|
p(e.$slots, "default")
|
|
6658
6655
|
], 6);
|
|
@@ -6719,7 +6716,7 @@ function wa(e, t, l, a, r, i) {
|
|
|
6719
6716
|
class: f(["w-tooltip", i.classes]),
|
|
6720
6717
|
ref: "detachable",
|
|
6721
6718
|
key: e._.uid,
|
|
6722
|
-
style:
|
|
6719
|
+
style: T(i.styles)
|
|
6723
6720
|
}, [
|
|
6724
6721
|
p(e.$slots, "default")
|
|
6725
6722
|
], 6)) : c("", !0)
|
|
@@ -6950,13 +6947,13 @@ function Ia(e, t, l, a, r, i) {
|
|
|
6950
6947
|
_: 3
|
|
6951
6948
|
}, 16);
|
|
6952
6949
|
}
|
|
6953
|
-
const
|
|
6950
|
+
const Ra = {
|
|
6954
6951
|
name: "w-transition-fade",
|
|
6955
6952
|
props: {
|
|
6956
6953
|
appear: { type: Boolean },
|
|
6957
6954
|
duration: { type: [Number, String] }
|
|
6958
6955
|
}
|
|
6959
|
-
},
|
|
6956
|
+
}, Ta = /* @__PURE__ */ v(Ra, [["render", Ia]]);
|
|
6960
6957
|
function La(e, t, l, a, r, i) {
|
|
6961
6958
|
return s(), m(O, C({ name: "scale" }, e.$props), {
|
|
6962
6959
|
default: g(() => [
|
|
@@ -7115,8 +7112,8 @@ function Xa(e, t, l, a, r, i) {
|
|
|
7115
7112
|
}, 1040, ["onClick", "onKeydown", "tabindex"])),
|
|
7116
7113
|
(s(), m(V(l.noTransition ? "div" : "w-transition-expand"), {
|
|
7117
7114
|
y: !l.noTransition || null,
|
|
7118
|
-
onAfterEnter: (B) => e.$emit("open",
|
|
7119
|
-
onAfterLeave: (B) => e.$emit("close",
|
|
7115
|
+
onAfterEnter: (B) => e.$emit("open", i.emitPayload(h)),
|
|
7116
|
+
onAfterLeave: (B) => e.$emit("close", i.emitPayload(h))
|
|
7120
7117
|
}, {
|
|
7121
7118
|
default: g(() => [
|
|
7122
7119
|
h.children && h.open ? (s(), m(d, C({ key: 0 }, e.$props, {
|
|
@@ -7131,11 +7128,11 @@ function Xa(e, t, l, a, r, i) {
|
|
|
7131
7128
|
onSelect: t[5] || (t[5] = (B) => e.$emit("select", B)),
|
|
7132
7129
|
"onUpdate:modelValue": t[6] || (t[6] = (B) => e.$emit("update:model-value", B))
|
|
7133
7130
|
}), {
|
|
7134
|
-
item: g(({ item: B, depth: b, path:
|
|
7131
|
+
item: g(({ item: B, depth: b, path: R, open: x }) => [
|
|
7135
7132
|
p(e.$slots, "item", {
|
|
7136
7133
|
item: B,
|
|
7137
7134
|
depth: b,
|
|
7138
|
-
path:
|
|
7135
|
+
path: R,
|
|
7139
7136
|
open: x
|
|
7140
7137
|
})
|
|
7141
7138
|
]),
|
|
@@ -7186,6 +7183,7 @@ const Ya = {
|
|
|
7186
7183
|
return {
|
|
7187
7184
|
[`w-tree--depth${this.depth}`]: !0,
|
|
7188
7185
|
"w-tree--expand-icon": this.expandIcon && !this.depth,
|
|
7186
|
+
"w-tree--selectable": this.selectable,
|
|
7189
7187
|
"w-tree--disabled": this.disabled && !this.depth,
|
|
7190
7188
|
"w-tree--no-expand-button": !this.expandIcon
|
|
7191
7189
|
};
|
|
@@ -7196,7 +7194,7 @@ const Ya = {
|
|
|
7196
7194
|
if (this.currentDepthItems = [], !Array.isArray(e) && typeof e != "object")
|
|
7197
7195
|
return G(`[w-tree] the tree items must be of type array or object, ${typeof e} received.`);
|
|
7198
7196
|
Array.isArray(e) || (e = [e]), e.forEach((l, a) => {
|
|
7199
|
-
var i;
|
|
7197
|
+
var i, o;
|
|
7200
7198
|
const r = {
|
|
7201
7199
|
originalItem: l,
|
|
7202
7200
|
_uid: this.depth.toString() + (a + 1),
|
|
@@ -7205,8 +7203,9 @@ const Ya = {
|
|
|
7205
7203
|
branch: l.branch,
|
|
7206
7204
|
route: l[this.itemRouteKey],
|
|
7207
7205
|
disabled: l[this.itemDisabledKey],
|
|
7206
|
+
selected: ((i = t[a]) == null ? void 0 : i.selected) || !1,
|
|
7208
7207
|
depth: this.depth,
|
|
7209
|
-
open: !!(((
|
|
7208
|
+
open: !!(((o = t[a]) == null ? void 0 : o.open) || this.expandAll || l[this.itemOpenKey]),
|
|
7210
7209
|
parent: this.parent || null,
|
|
7211
7210
|
path: []
|
|
7212
7211
|
};
|
|
@@ -7231,37 +7230,32 @@ const Ya = {
|
|
|
7231
7230
|
},
|
|
7232
7231
|
expandDepth(e, t) {
|
|
7233
7232
|
typeof t == "boolean" ? e.open = t : e.open = !e.open;
|
|
7234
|
-
const l =
|
|
7235
|
-
item: e.originalItem,
|
|
7236
|
-
open: e.open,
|
|
7237
|
-
depth: this.depth,
|
|
7238
|
-
path: this.getTreeItemPathForOutput(e)
|
|
7239
|
-
};
|
|
7233
|
+
const l = this.emitPayload(e);
|
|
7240
7234
|
return this.$emit(e.open ? "before-open" : "before-close", l), !this.unexpandableEmpty && !e.children && this.$emit(e.open ? "open" : "close", l), !0;
|
|
7241
7235
|
},
|
|
7242
7236
|
onLabelClick(e, t) {
|
|
7243
|
-
e[this.itemRouteKey] && this.$router && !this.hasExternalLink(e) && t.preventDefault(), this
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
path: this.getTreeItemPathForOutput(e),
|
|
7247
|
-
e: t
|
|
7248
|
-
}), (e.children || e.branch && !this.unexpandableEmpty) && this.expandDepth(e), this.selectable && this.emitItemSelection(e, t);
|
|
7249
|
-
},
|
|
7250
|
-
emitItemSelection(e, t) {
|
|
7251
|
-
const l = {
|
|
7252
|
-
item: e.originalItem,
|
|
7253
|
-
depth: this.depth,
|
|
7254
|
-
path: this.getTreeItemPathForOutput(e),
|
|
7255
|
-
e: t
|
|
7256
|
-
};
|
|
7257
|
-
(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);
|
|
7258
7240
|
},
|
|
7259
7241
|
onLabelKeydown(e, t) {
|
|
7260
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))) {
|
|
7261
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;
|
|
7262
7244
|
[...a].some((o, n) => o.isSameNode(r) ? (a[n + i] && a[n + i].focus(), !0) : !1);
|
|
7263
7245
|
}
|
|
7264
|
-
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;
|
|
7265
7259
|
},
|
|
7266
7260
|
getPreviousSibling(e, t) {
|
|
7267
7261
|
for (; t && (e = e.previousElementSibling); )
|
|
@@ -7288,6 +7282,7 @@ const Ya = {
|
|
|
7288
7282
|
return {
|
|
7289
7283
|
[e.children || e.branch ? "w-tree__item--branch" : "w-tree__item--leaf"]: !0,
|
|
7290
7284
|
"w-tree__item--disabled": e[this.itemDisabledKey],
|
|
7285
|
+
"w-tree__item--selected": e.selected,
|
|
7291
7286
|
"w-tree__item--empty": e.branch && !e.children,
|
|
7292
7287
|
"w-tree__item--unexpandable": e.branch && !e.children && this.unexpandableEmpty
|
|
7293
7288
|
};
|
|
@@ -7350,7 +7345,7 @@ const Ya = {
|
|
|
7350
7345
|
WTooltip: ka,
|
|
7351
7346
|
WTransitionBounce: Sa,
|
|
7352
7347
|
WTransitionExpand: Va,
|
|
7353
|
-
WTransitionFade:
|
|
7348
|
+
WTransitionFade: Ta,
|
|
7354
7349
|
WTransitionScale: Oa,
|
|
7355
7350
|
WTransitionScaleFade: Ma,
|
|
7356
7351
|
WTransitionSlide: Aa,
|