@kong/kongponents 9.14.7 → 9.14.8-pr.2497.3a723c8b3.0
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/kongponents.es.js +181 -181
- package/dist/kongponents.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +29 -30
package/dist/kongponents.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var uh = Object.defineProperty;
|
|
2
2
|
var ch = (e, t, a) => t in e ? uh(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
|
|
3
3
|
var Fa = (e, t, a) => ch(e, typeof t != "symbol" ? t + "" : t, a);
|
|
4
|
-
import { defineComponent as se, reactive as fr, ref as E, computed as b, openBlock as h, createBlock as Q, resolveDynamicComponent as Fe, normalizeStyle as Ne, withCtx as O, createElementBlock as $, normalizeClass as
|
|
4
|
+
import { defineComponent as se, reactive as fr, ref as E, computed as b, openBlock as h, createBlock as Q, resolveDynamicComponent as Fe, normalizeStyle as Ne, withCtx as O, createElementBlock as $, normalizeClass as de, renderSlot as q, unref as x, createCommentVNode as H, createElementVNode as z, toDisplayString as ne, withKeys as pt, withModifiers as qe, useSlots as At, useAttrs as Wt, onMounted as st, mergeProps as He, toHandlers as ho, shallowRef as dh, watch as ve, getCurrentScope as vf, onScopeDispose as pf, shallowReadonly as Yn, getCurrentInstance as fh, onUnmounted as Jt, isReadonly as vh, toRefs as hf, watchEffect as bl, useCssVars as Bt, onBeforeUnmount as go, resolveDirective as Lt, withDirectives as ct, createTextVNode as fe, createVNode as V, Transition as ra, vShow as wl, nextTick as gt, Fragment as Te, renderList as Be, resolveComponent as Ot, createSlots as mt, inject as ti, provide as ai, normalizeProps as Rr, toRef as Ci, guardReactiveProps as hs, isRef as Wn, Comment as ph, cloneVNode as hh, onBeforeMount as gh, TransitionGroup as mh, render as wu, h as ku } from "vue";
|
|
5
5
|
async function gf(e) {
|
|
6
6
|
var n, r;
|
|
7
7
|
if (navigator.clipboard)
|
|
@@ -3576,7 +3576,7 @@ const wf = {
|
|
|
3576
3576
|
}
|
|
3577
3577
|
});
|
|
3578
3578
|
return (n, r) => (h(), $("div", {
|
|
3579
|
-
class:
|
|
3579
|
+
class: de(["k-alert", [e.appearance]])
|
|
3580
3580
|
}, [
|
|
3581
3581
|
e.showIcon || n.$slots.icon ? (h(), $("div", Og, [
|
|
3582
3582
|
q(n.$slots, "icon", {}, () => [
|
|
@@ -5372,7 +5372,7 @@ const _m = ["aria-labelledby", "x-placement"], Rm = ["tabindex"], Ym = {
|
|
|
5372
5372
|
ref_key: "popoverElement",
|
|
5373
5373
|
ref: c,
|
|
5374
5374
|
"aria-labelledby": R.$slots.title || e.title ? x(l) : void 0,
|
|
5375
|
-
class:
|
|
5375
|
+
class: de(["popover", D.value]),
|
|
5376
5376
|
role: "dialog",
|
|
5377
5377
|
style: Ne(x(P)),
|
|
5378
5378
|
"x-placement": x(W)
|
|
@@ -5400,7 +5400,7 @@ const _m = ["aria-labelledby", "x-placement"], Rm = ["tabindex"], Ym = {
|
|
|
5400
5400
|
R.$slots.title || e.title ? (h(), $("div", {
|
|
5401
5401
|
key: 0,
|
|
5402
5402
|
id: x(l),
|
|
5403
|
-
class:
|
|
5403
|
+
class: de(["popover-title", { "close-icon-spacing": !e.hideCloseIcon }])
|
|
5404
5404
|
}, [
|
|
5405
5405
|
q(R.$slots, "title", {}, () => [
|
|
5406
5406
|
fe(ne(e.title), 1)
|
|
@@ -5408,7 +5408,7 @@ const _m = ["aria-labelledby", "x-placement"], Rm = ["tabindex"], Ym = {
|
|
|
5408
5408
|
], 10, Fm)) : H("", !0)
|
|
5409
5409
|
])) : H("", !0),
|
|
5410
5410
|
z("div", {
|
|
5411
|
-
class:
|
|
5411
|
+
class: de(["popover-content", { "close-icon-spacing": !e.hideCloseIcon && !(R.$slots.title || e.title) }])
|
|
5412
5412
|
}, [
|
|
5413
5413
|
q(R.$slots, "content", {}, void 0, !0)
|
|
5414
5414
|
], 2),
|
|
@@ -5557,14 +5557,14 @@ const _m = ["aria-labelledby", "x-placement"], Rm = ["tabindex"], Ym = {
|
|
|
5557
5557
|
return st(() => {
|
|
5558
5558
|
s();
|
|
5559
5559
|
}), (o, u) => (h(), $("div", {
|
|
5560
|
-
class:
|
|
5560
|
+
class: de(["k-badge", [e.appearance, { method: a.value }]])
|
|
5561
5561
|
}, [
|
|
5562
5562
|
(h(), Q(Fe(l.value ? "KTooltip" : "div"), {
|
|
5563
5563
|
text: l.value ? e.tooltip : void 0
|
|
5564
5564
|
}, {
|
|
5565
5565
|
default: O(() => [
|
|
5566
5566
|
z("div", {
|
|
5567
|
-
class:
|
|
5567
|
+
class: de(["badge-content", { "icon-after": !e.iconBefore }])
|
|
5568
5568
|
}, [
|
|
5569
5569
|
o.$slots.icon ? q(o.$slots, "icon", { key: 0 }, void 0, !0) : H("", !0),
|
|
5570
5570
|
z("div", {
|
|
@@ -5719,7 +5719,7 @@ const _m = ["aria-labelledby", "x-placement"], Rm = ["tabindex"], Ym = {
|
|
|
5719
5719
|
},
|
|
5720
5720
|
setup(e) {
|
|
5721
5721
|
return (t, a) => (h(), $("div", {
|
|
5722
|
-
class:
|
|
5722
|
+
class: de(["skeleton-box", { [`width-${e.width}`]: !0, [`height-${e.height}`]: !0 }])
|
|
5723
5723
|
}, null, 2));
|
|
5724
5724
|
}
|
|
5725
5725
|
}), ma = /* @__PURE__ */ Ie(i1, [["__scopeId", "data-v-2b6482a1"]]), o1 = { class: "skeleton-loader" }, s1 = /* @__PURE__ */ se({
|
|
@@ -5995,7 +5995,7 @@ const _m = ["aria-labelledby", "x-placement"], Rm = ["tabindex"], Ym = {
|
|
|
5995
5995
|
}, t.delayMilliseconds);
|
|
5996
5996
|
}), (n, r) => a.value ? (h(), $("div", {
|
|
5997
5997
|
key: 0,
|
|
5998
|
-
class:
|
|
5998
|
+
class: de(["k-skeleton", { "not-spinner": e.type !== "spinner" }])
|
|
5999
5999
|
}, [
|
|
6000
6000
|
e.type === "card" ? (h(), Q(p1, {
|
|
6001
6001
|
key: 0,
|
|
@@ -6100,7 +6100,7 @@ const _m = ["aria-labelledby", "x-placement"], Rm = ["tabindex"], Ym = {
|
|
|
6100
6100
|
}
|
|
6101
6101
|
});
|
|
6102
6102
|
return (r, i) => (h(), $("div", {
|
|
6103
|
-
class:
|
|
6103
|
+
class: de(["k-empty-state", [e.iconVariant]])
|
|
6104
6104
|
}, [
|
|
6105
6105
|
z("div", I1, [
|
|
6106
6106
|
z("div", O1, [
|
|
@@ -6246,7 +6246,7 @@ const _m = ["aria-labelledby", "x-placement"], Rm = ["tabindex"], Ym = {
|
|
|
6246
6246
|
}
|
|
6247
6247
|
}));
|
|
6248
6248
|
return (f, v) => (h(), $("li", {
|
|
6249
|
-
class:
|
|
6249
|
+
class: de(["k-dropdown-item", [{
|
|
6250
6250
|
"has-divider": e.hasDivider,
|
|
6251
6251
|
disabled: e.disabled,
|
|
6252
6252
|
danger: e.danger || e.isDangerous,
|
|
@@ -6360,7 +6360,7 @@ const _m = ["aria-labelledby", "x-placement"], Rm = ["tabindex"], Ym = {
|
|
|
6360
6360
|
g.length && (u.value = g[0]);
|
|
6361
6361
|
}
|
|
6362
6362
|
}), (g, w) => (h(), $("div", {
|
|
6363
|
-
class:
|
|
6363
|
+
class: de(["k-dropdown", { "selection-dropdown-menu": e.selectionMenu }])
|
|
6364
6364
|
}, [
|
|
6365
6365
|
V(x(mo), null, {
|
|
6366
6366
|
default: O(({ toggle: S, isToggled: m }) => [
|
|
@@ -6643,7 +6643,7 @@ const W1 = {
|
|
|
6643
6643
|
}), (J, _) => (h(), $("nav", {
|
|
6644
6644
|
ref_key: "kPaginationElement",
|
|
6645
6645
|
ref: i,
|
|
6646
|
-
class:
|
|
6646
|
+
class: de(["k-pagination", { "page-jump": !e.disablePageJump && !e.offset }]),
|
|
6647
6647
|
"data-testid": "k-pagination"
|
|
6648
6648
|
}, [
|
|
6649
6649
|
e.offset ? (h(), Q(q1, {
|
|
@@ -6693,7 +6693,7 @@ const W1 = {
|
|
|
6693
6693
|
z("button", {
|
|
6694
6694
|
"aria-current": le == P.value && "page" || void 0,
|
|
6695
6695
|
"aria-label": `Go to page ${le}`,
|
|
6696
|
-
class:
|
|
6696
|
+
class: de(["pagination-button", { active: le == P.value }]),
|
|
6697
6697
|
"data-testid": `page-${le}-button`,
|
|
6698
6698
|
type: "button",
|
|
6699
6699
|
onClick: (oe) => I(le)
|
|
@@ -6810,7 +6810,7 @@ const W1 = {
|
|
|
6810
6810
|
]),
|
|
6811
6811
|
default: O(() => [
|
|
6812
6812
|
z("div", {
|
|
6813
|
-
class:
|
|
6813
|
+
class: de({ "multi-line-truncate": e.truncate })
|
|
6814
6814
|
}, [
|
|
6815
6815
|
q(r.$slots, "card-body", {}, () => [
|
|
6816
6816
|
fe(ne(e.item ? e.item.description : ""), 1)
|
|
@@ -7179,7 +7179,7 @@ const W1 = {
|
|
|
7179
7179
|
], !0)
|
|
7180
7180
|
])) : ct((h(), $("div", {
|
|
7181
7181
|
key: 5,
|
|
7182
|
-
class:
|
|
7182
|
+
class: de(["catalog-page", `card-${e.cardSize}`])
|
|
7183
7183
|
}, [
|
|
7184
7184
|
q(G.$slots, "body", { data: c.value }, () => [
|
|
7185
7185
|
(h(!0), $(Te, null, Be(c.value, (De, Z) => (h(), Q(Hf, {
|
|
@@ -7259,7 +7259,7 @@ const W1 = {
|
|
|
7259
7259
|
return (i, s) => {
|
|
7260
7260
|
const l = Lt("bind-once");
|
|
7261
7261
|
return h(), $("label", {
|
|
7262
|
-
class:
|
|
7262
|
+
class: de(["k-label", { required: e.required }])
|
|
7263
7263
|
}, [
|
|
7264
7264
|
q(i.$slots, "default", {}, void 0, !0),
|
|
7265
7265
|
n.value ? (h(), Q(wa, He({ key: 0 }, e.tooltipAttributes, {
|
|
@@ -7332,10 +7332,10 @@ const W1 = {
|
|
|
7332
7332
|
return (w, S) => {
|
|
7333
7333
|
const m = Lt("bind-once");
|
|
7334
7334
|
return h(), $("div", {
|
|
7335
|
-
class:
|
|
7335
|
+
class: de(["k-checkbox", [w.$attrs.class, f.value]])
|
|
7336
7336
|
}, [
|
|
7337
7337
|
z("div", {
|
|
7338
|
-
class:
|
|
7338
|
+
class: de(["checkbox-input-wrapper", { "has-label": l.value }])
|
|
7339
7339
|
}, [
|
|
7340
7340
|
ct(z("input", He(d.value, {
|
|
7341
7341
|
"aria-checked": e.modelValue,
|
|
@@ -7500,7 +7500,7 @@ const W1 = {
|
|
|
7500
7500
|
}), (T, I) => {
|
|
7501
7501
|
const N = Lt("bind-once");
|
|
7502
7502
|
return h(), $("div", {
|
|
7503
|
-
class:
|
|
7503
|
+
class: de(["k-input", [T.$attrs.class, { "input-error": m.value || e.error || e.hasError }]])
|
|
7504
7504
|
}, [
|
|
7505
7505
|
e.label ? ct((h(), Q(vn, He({ key: 0 }, e.labelAttributes, { required: c.value }), mt({
|
|
7506
7506
|
default: O(() => [
|
|
@@ -7519,7 +7519,7 @@ const W1 = {
|
|
|
7519
7519
|
[N, { for: x(d) }]
|
|
7520
7520
|
]) : H("", !0),
|
|
7521
7521
|
z("div", {
|
|
7522
|
-
class:
|
|
7522
|
+
class: de(["input-element-wrapper", { "has-before-content": T.$slots.before, "has-after-content": T.$slots.after || e.type === "password" && e.showPasswordMaskToggle }])
|
|
7523
7523
|
}, [
|
|
7524
7524
|
T.$slots.before ? (h(), $("div", {
|
|
7525
7525
|
key: 0,
|
|
@@ -8007,7 +8007,7 @@ const Sy = {
|
|
|
8007
8007
|
id: e.id,
|
|
8008
8008
|
ref_key: "codeBlock",
|
|
8009
8009
|
ref: g,
|
|
8010
|
-
class:
|
|
8010
|
+
class: de(["k-code-block", [`theme-${e.theme}`]]),
|
|
8011
8011
|
"data-testid": "k-code-block",
|
|
8012
8012
|
tabindex: "-1"
|
|
8013
8013
|
}, [
|
|
@@ -8170,7 +8170,7 @@ const Sy = {
|
|
|
8170
8170
|
`))
|
|
8171
8171
|
])) : (h(), $("pre", {
|
|
8172
8172
|
key: 1,
|
|
8173
|
-
class:
|
|
8173
|
+
class: de(["highlighted-code-block", {
|
|
8174
8174
|
"single-line": e.singleLine,
|
|
8175
8175
|
"show-copy-button": e.showCopyButton
|
|
8176
8176
|
}]),
|
|
@@ -8182,7 +8182,7 @@ const Sy = {
|
|
|
8182
8182
|
`)),
|
|
8183
8183
|
(h(!0), $(Te, null, Be(k.value, (ge) => (h(), $("span", {
|
|
8184
8184
|
key: ge,
|
|
8185
|
-
class:
|
|
8185
|
+
class: de(["line", {
|
|
8186
8186
|
"line-is-match": m.value.includes(ge),
|
|
8187
8187
|
"line-is-highlighted-match": y.value !== null && ge === m.value[y.value]
|
|
8188
8188
|
}])
|
|
@@ -8191,7 +8191,7 @@ const Sy = {
|
|
|
8191
8191
|
`)),
|
|
8192
8192
|
z("a", {
|
|
8193
8193
|
id: `${D.value}-L${ge}`,
|
|
8194
|
-
class:
|
|
8194
|
+
class: de(["line-anchor", { "hide-links": !e.showLineNumberLinks }]),
|
|
8195
8195
|
href: e.showLineNumberLinks ? `#${D.value}-L${ge}` : void 0
|
|
8196
8196
|
}, ne(ge), 11, Ly),
|
|
8197
8197
|
ee[9] || (ee[9] = fe(`
|
|
@@ -8286,7 +8286,7 @@ const Sy = {
|
|
|
8286
8286
|
const w = Lt("bind-once");
|
|
8287
8287
|
return h(), $("div", zy, [
|
|
8288
8288
|
z("div", {
|
|
8289
|
-
class:
|
|
8289
|
+
class: de(["collapse-heading", { "has-trailing-trigger": o.value }])
|
|
8290
8290
|
}, [
|
|
8291
8291
|
e.title || v.$slots.title ? (h(), Q(Fe(e.titleTag), {
|
|
8292
8292
|
key: 0,
|
|
@@ -8315,7 +8315,7 @@ const Sy = {
|
|
|
8315
8315
|
}, [
|
|
8316
8316
|
q(v.$slots, "trigger-content", {}, () => [
|
|
8317
8317
|
V(x(Sf), {
|
|
8318
|
-
class:
|
|
8318
|
+
class: de(["collapse-trigger-icon", { "collapse-expanded": !d.value }]),
|
|
8319
8319
|
"data-testid": "collapse-trigger-icon",
|
|
8320
8320
|
decorative: "",
|
|
8321
8321
|
size: x(Qt)
|
|
@@ -16253,7 +16253,7 @@ function kO(e, { slots: t, emit: a }) {
|
|
|
16253
16253
|
be(L), ye(L);
|
|
16254
16254
|
});
|
|
16255
16255
|
});
|
|
16256
|
-
const
|
|
16256
|
+
const ce = {
|
|
16257
16257
|
emit: a,
|
|
16258
16258
|
containerRef: n,
|
|
16259
16259
|
focusedDay: r,
|
|
@@ -16308,7 +16308,7 @@ function kO(e, { slots: t, emit: a }) {
|
|
|
16308
16308
|
onDayFocusout: ea,
|
|
16309
16309
|
onWeeknumberClick: Kt
|
|
16310
16310
|
};
|
|
16311
|
-
return ai(xp,
|
|
16311
|
+
return ai(xp, ce), ce;
|
|
16312
16312
|
}
|
|
16313
16313
|
function Rn() {
|
|
16314
16314
|
const e = ti(xp);
|
|
@@ -16512,7 +16512,7 @@ const CO = se({
|
|
|
16512
16512
|
};
|
|
16513
16513
|
function SO(e, t, a, n, r, i) {
|
|
16514
16514
|
return h(), $("div", {
|
|
16515
|
-
class:
|
|
16515
|
+
class: de(["vc-popover-content-wrapper", { "is-interactive": e.isInteractive }]),
|
|
16516
16516
|
ref: "popoverRef",
|
|
16517
16517
|
onClick: t[0] || (t[0] = (...s) => e.onClick && e.onClick(...s)),
|
|
16518
16518
|
onMouseover: t[1] || (t[1] = (...s) => e.onMouseOver && e.onMouseOver(...s)),
|
|
@@ -16543,7 +16543,7 @@ function SO(e, t, a, n, r, i) {
|
|
|
16543
16543
|
fe(ne(e.data), 1)
|
|
16544
16544
|
]),
|
|
16545
16545
|
z("span", {
|
|
16546
|
-
class:
|
|
16546
|
+
class: de([
|
|
16547
16547
|
"vc-popover-caret",
|
|
16548
16548
|
`direction-${e.direction}`,
|
|
16549
16549
|
`align-${e.alignment}`
|
|
@@ -16579,7 +16579,7 @@ const fu = /* @__PURE__ */ hn(CO, [["render", SO]]), $O = { class: "vc-day-popov
|
|
|
16579
16579
|
return (n, r) => (h(), $("div", $O, [
|
|
16580
16580
|
x(a) ? (h(), $("div", DO, [
|
|
16581
16581
|
z("span", {
|
|
16582
|
-
class:
|
|
16582
|
+
class: de(x(a).class)
|
|
16583
16583
|
}, null, 2)
|
|
16584
16584
|
])) : H("", !0),
|
|
16585
16585
|
z("div", xO, [
|
|
@@ -16616,7 +16616,7 @@ const fu = /* @__PURE__ */ hn(CO, [["render", SO]]), $O = { class: "vc-day-popov
|
|
|
16616
16616
|
}
|
|
16617
16617
|
return (o, u) => (h(), Q(fu, {
|
|
16618
16618
|
id: x(t),
|
|
16619
|
-
class:
|
|
16619
|
+
class: de([`vc-${x(n)}`, `vc-${x(a)}`])
|
|
16620
16620
|
}, {
|
|
16621
16621
|
default: O(({ data: { day: c, attributes: d }, hide: f }) => [
|
|
16622
16622
|
V(la, {
|
|
@@ -16771,7 +16771,7 @@ const t8 = /* @__PURE__ */ hn(QO, [["render", e8]]), a8 = /* @__PURE__ */ Object
|
|
|
16771
16771
|
}
|
|
16772
16772
|
}).join(" ") }));
|
|
16773
16773
|
return (w, S) => (h(), $("div", {
|
|
16774
|
-
class:
|
|
16774
|
+
class: de(["vc-header", { "is-lg": e.isLg, "is-xl": e.isXl, "is-2xl": e.is2xl }]),
|
|
16775
16775
|
style: Ne(x(g))
|
|
16776
16776
|
}, [
|
|
16777
16777
|
x(v).prev ? (h(), $("button", {
|
|
@@ -17058,7 +17058,7 @@ const l8 = { class: "vc-nav-header" }, u8 = ["disabled"], c8 = ["disabled"], d8
|
|
|
17058
17058
|
type: "button",
|
|
17059
17059
|
"data-id": ye.id,
|
|
17060
17060
|
"aria-label": ye.ariaLabel,
|
|
17061
|
-
class:
|
|
17061
|
+
class: de(["vc-nav-item vc-focus", [
|
|
17062
17062
|
ye.isActive ? "is-active" : ye.isCurrent ? "is-current" : ""
|
|
17063
17063
|
]]),
|
|
17064
17064
|
disabled: ye.isDisabled,
|
|
@@ -17082,7 +17082,7 @@ const l8 = { class: "vc-nav-header" }, u8 = ["disabled"], c8 = ["disabled"], d8
|
|
|
17082
17082
|
const { navPopoverId: t, color: a, displayMode: n } = Rn();
|
|
17083
17083
|
return (r, i) => (h(), Q(fu, {
|
|
17084
17084
|
id: x(t),
|
|
17085
|
-
class:
|
|
17085
|
+
class: de(["vc-nav-popover-container", `vc-${x(a)}`, `vc-${x(n)}`])
|
|
17086
17086
|
}, {
|
|
17087
17087
|
default: O(({ data: s }) => [
|
|
17088
17088
|
V(Ep, {
|
|
@@ -17238,15 +17238,15 @@ const l8 = { class: "vc-nav-header" }, u8 = ["disabled"], c8 = ["disabled"], d8
|
|
|
17238
17238
|
function k8(e, t, a, n, r, i) {
|
|
17239
17239
|
const s = Ot("CalendarSlot"), l = Lt("popover");
|
|
17240
17240
|
return h(), $("div", {
|
|
17241
|
-
class:
|
|
17241
|
+
class: de(e.dayClasses)
|
|
17242
17242
|
}, [
|
|
17243
17243
|
e.hasHighlights ? (h(), $("div", g8, [
|
|
17244
17244
|
(h(!0), $(Te, null, Be(e.highlights, ({ key: o, wrapperClass: u, class: c, style: d }) => (h(), $("div", {
|
|
17245
17245
|
key: o,
|
|
17246
|
-
class:
|
|
17246
|
+
class: de(u)
|
|
17247
17247
|
}, [
|
|
17248
17248
|
z("div", {
|
|
17249
|
-
class:
|
|
17249
|
+
class: de(c),
|
|
17250
17250
|
style: Ne(d)
|
|
17251
17251
|
}, null, 6)
|
|
17252
17252
|
], 2))), 128))
|
|
@@ -17273,7 +17273,7 @@ function k8(e, t, a, n, r, i) {
|
|
|
17273
17273
|
z("div", y8, [
|
|
17274
17274
|
(h(!0), $(Te, null, Be(e.dots, ({ key: o, class: u, style: c }) => (h(), $("span", {
|
|
17275
17275
|
key: o,
|
|
17276
|
-
class:
|
|
17276
|
+
class: de(u),
|
|
17277
17277
|
style: Ne(c)
|
|
17278
17278
|
}, null, 6))), 128))
|
|
17279
17279
|
])
|
|
@@ -17282,7 +17282,7 @@ function k8(e, t, a, n, r, i) {
|
|
|
17282
17282
|
z("div", w8, [
|
|
17283
17283
|
(h(!0), $(Te, null, Be(e.bars, ({ key: o, class: u, style: c }) => (h(), $("span", {
|
|
17284
17284
|
key: o,
|
|
17285
|
-
class:
|
|
17285
|
+
class: de(u),
|
|
17286
17286
|
style: Ne(c)
|
|
17287
17287
|
}, null, 6))), 128))
|
|
17288
17288
|
])
|
|
@@ -17297,7 +17297,7 @@ const C8 = /* @__PURE__ */ hn(h8, [["render", k8]]), S8 = { class: "vc-weekdays"
|
|
|
17297
17297
|
setup(e) {
|
|
17298
17298
|
const { page: t } = Mp(), { onWeeknumberClick: a } = Rn();
|
|
17299
17299
|
return (n, r) => (h(), $("div", {
|
|
17300
|
-
class:
|
|
17300
|
+
class: de([
|
|
17301
17301
|
"vc-pane",
|
|
17302
17302
|
`row-${x(t).row}`,
|
|
17303
17303
|
`row-from-end-${x(t).rowFromEnd}`,
|
|
@@ -17312,14 +17312,14 @@ const C8 = /* @__PURE__ */ hn(h8, [["render", k8]]), S8 = { class: "vc-weekdays"
|
|
|
17312
17312
|
"hide-arrows": ""
|
|
17313
17313
|
}, null, 8, ["page"]),
|
|
17314
17314
|
z("div", {
|
|
17315
|
-
class:
|
|
17315
|
+
class: de(["vc-weeks", {
|
|
17316
17316
|
[`vc-show-weeknumbers-${x(t).weeknumberPosition}`]: x(t).weeknumberPosition
|
|
17317
17317
|
}])
|
|
17318
17318
|
}, [
|
|
17319
17319
|
z("div", S8, [
|
|
17320
17320
|
(h(!0), $(Te, null, Be(x(t).weekdays, ({ weekday: i, label: s }, l) => (h(), $("div", {
|
|
17321
17321
|
key: l,
|
|
17322
|
-
class:
|
|
17322
|
+
class: de(`vc-weekday vc-weekday-${i}`)
|
|
17323
17323
|
}, ne(s), 3))), 128))
|
|
17324
17324
|
]),
|
|
17325
17325
|
(h(!0), $(Te, null, Be(x(t).viewWeeks, (i) => (h(), $("div", {
|
|
@@ -17328,10 +17328,10 @@ const C8 = /* @__PURE__ */ hn(h8, [["render", k8]]), S8 = { class: "vc-weekdays"
|
|
|
17328
17328
|
}, [
|
|
17329
17329
|
x(t).weeknumberPosition ? (h(), $("div", {
|
|
17330
17330
|
key: 0,
|
|
17331
|
-
class:
|
|
17331
|
+
class: de(["vc-weeknumber", `is-${x(t).weeknumberPosition}`])
|
|
17332
17332
|
}, [
|
|
17333
17333
|
z("span", {
|
|
17334
|
-
class:
|
|
17334
|
+
class: de(["vc-weeknumber-content"]),
|
|
17335
17335
|
onClick: (s) => x(a)(i, s)
|
|
17336
17336
|
}, ne(i.weeknumberDisplay), 9, $8)
|
|
17337
17337
|
], 2)) : H("", !0),
|
|
@@ -17378,7 +17378,7 @@ function M8(e, t, a, n, r, i) {
|
|
|
17378
17378
|
ref: "containerRef"
|
|
17379
17379
|
}), [
|
|
17380
17380
|
z("div", {
|
|
17381
|
-
class:
|
|
17381
|
+
class: de(["vc-pane-container", { "in-transition": e.inTransition }])
|
|
17382
17382
|
}, [
|
|
17383
17383
|
z("div", A8, [
|
|
17384
17384
|
e.firstPage ? (h(), Q(s, {
|
|
@@ -17881,10 +17881,10 @@ function P8(e, { emit: t, slots: a }) {
|
|
|
17881
17881
|
et(u.value, { formatInput: !0 });
|
|
17882
17882
|
}
|
|
17883
17883
|
);
|
|
17884
|
-
const
|
|
17884
|
+
const ce = be(W.value);
|
|
17885
17885
|
u.value = nt(
|
|
17886
17886
|
e.modelValue ?? null,
|
|
17887
|
-
|
|
17887
|
+
ce,
|
|
17888
17888
|
"dateTime"
|
|
17889
17889
|
), st(() => {
|
|
17890
17890
|
et(e.modelValue, {
|
|
@@ -18085,7 +18085,7 @@ const _8 = ["value"], R8 = ["value", "disabled"], Y8 = {
|
|
|
18085
18085
|
return n == null ? void 0 : n.label;
|
|
18086
18086
|
});
|
|
18087
18087
|
return (n, r) => (h(), $("div", {
|
|
18088
|
-
class:
|
|
18088
|
+
class: de(["vc-base-select", {
|
|
18089
18089
|
"vc-fit-content": e.fitContent,
|
|
18090
18090
|
"vc-has-icon": e.showIcon
|
|
18091
18091
|
}])
|
|
@@ -18141,7 +18141,7 @@ const _8 = ["value"], R8 = ["value", "disabled"], Y8 = {
|
|
|
18141
18141
|
timeAccuracy: y
|
|
18142
18142
|
} = n;
|
|
18143
18143
|
return (k, C) => (h(), $("div", {
|
|
18144
|
-
class:
|
|
18144
|
+
class: de(["vc-time-picker", [{ "vc-invalid": !x(i), "vc-attached": !x(v) }]])
|
|
18145
18145
|
}, [
|
|
18146
18146
|
V(la, { name: "time-header" }, {
|
|
18147
18147
|
default: O(() => [
|
|
@@ -18226,7 +18226,7 @@ const _8 = ["value"], R8 = ["value", "disabled"], Y8 = {
|
|
|
18226
18226
|
} = vu(), d = l.value ? [0, 1] : [0];
|
|
18227
18227
|
return (f, v) => x(s) ? (h(), $("div", {
|
|
18228
18228
|
key: 0,
|
|
18229
|
-
class:
|
|
18229
|
+
class: de(`vc-container vc-bordered vc-${x(n)} vc-${x(r)}`)
|
|
18230
18230
|
}, [
|
|
18231
18231
|
(h(!0), $(Te, null, Be(x(d), (g) => (h(), Q(qd, {
|
|
18232
18232
|
key: g,
|
|
@@ -18270,7 +18270,7 @@ const _8 = ["value"], R8 = ["value", "disabled"], Y8 = {
|
|
|
18270
18270
|
return (u, c) => (h(), Q(fu, {
|
|
18271
18271
|
id: x(t),
|
|
18272
18272
|
placement: "bottom-start",
|
|
18273
|
-
class:
|
|
18273
|
+
class: de(`vc-date-picker-content vc-${x(a)} vc-${x(n)}`),
|
|
18274
18274
|
ref_key: "popoverRef",
|
|
18275
18275
|
ref: r,
|
|
18276
18276
|
onBeforeShow: x(i),
|
|
@@ -18345,7 +18345,7 @@ const e4 = /* @__PURE__ */ hn(X8, [["render", J8]]), t4 = { class: "k-segmented-
|
|
|
18345
18345
|
return (l, o) => (h(), $("div", t4, [
|
|
18346
18346
|
(h(!0), $(Te, null, Be(r.value, (u) => (h(), $("button", {
|
|
18347
18347
|
key: `${u.value}-option`,
|
|
18348
|
-
class:
|
|
18348
|
+
class: de(["segmented-control-button", [e.size, { selected: a.modelValue === u.value }]]),
|
|
18349
18349
|
"data-testid": `${u.value}-option`,
|
|
18350
18350
|
disabled: i(u),
|
|
18351
18351
|
type: "button",
|
|
@@ -18548,7 +18548,7 @@ const e4 = /* @__PURE__ */ hn(X8, [["render", J8]]), t4 = { class: "k-segmented-
|
|
|
18548
18548
|
} else
|
|
18549
18549
|
M.tabName = "custom", P(n.modelValue), ((J = n.modelValue) != null && J.start && ((_ = n.modelValue) != null && _.end) || c.value && ((le = n.modelValue) != null && le.start)) && F();
|
|
18550
18550
|
}), (X, J) => (h(), $("div", {
|
|
18551
|
-
class:
|
|
18551
|
+
class: de(["k-datetime-picker", { "set-min-width": d.value }]),
|
|
18552
18552
|
style: Ne(k.value)
|
|
18553
18553
|
}, [
|
|
18554
18554
|
V(vr, {
|
|
@@ -18646,17 +18646,17 @@ const e4 = /* @__PURE__ */ hn(X8, [["render", J8]]), t4 = { class: "k-segmented-
|
|
|
18646
18646
|
]),
|
|
18647
18647
|
default: O(() => [
|
|
18648
18648
|
z("div", {
|
|
18649
|
-
class:
|
|
18649
|
+
class: de(["datetime-picker-trigger-wrapper", { disabled: e.disabled }])
|
|
18650
18650
|
}, [
|
|
18651
18651
|
z("div", {
|
|
18652
|
-
class:
|
|
18652
|
+
class: de(["datetime-picker-trigger", { disabled: e.disabled }]),
|
|
18653
18653
|
"data-testid": "datetime-picker-trigger",
|
|
18654
18654
|
role: "button",
|
|
18655
18655
|
style: Ne(k.value),
|
|
18656
18656
|
tabindex: e.disabled ? -1 : 0
|
|
18657
18657
|
}, [
|
|
18658
18658
|
z("span", {
|
|
18659
|
-
class:
|
|
18659
|
+
class: de(["datetime-picker-display", { "has-icon": e.icon, disabled: e.disabled }]),
|
|
18660
18660
|
"data-testid": "datetime-picker-display",
|
|
18661
18661
|
innerHTML: M.abbreviatedDisplay
|
|
18662
18662
|
}, null, 10, c4)
|
|
@@ -18786,7 +18786,7 @@ const e4 = /* @__PURE__ */ hn(X8, [["render", J8]]), t4 = { class: "k-segmented-
|
|
|
18786
18786
|
z("div", y4, [
|
|
18787
18787
|
(h(), $("span", {
|
|
18788
18788
|
key: y.value,
|
|
18789
|
-
class:
|
|
18789
|
+
class: de(["file-upload-input-text", { placeholder: !k.value, "has-icon": K.$slots.icon, disabled: e.disabled }])
|
|
18790
18790
|
}, ne(k.value ? k.value : e.placeholder), 3)),
|
|
18791
18791
|
(h(), Q(dn, He(x(n).id ? { id: String(x(n).id) } : {}, {
|
|
18792
18792
|
key: y.value,
|
|
@@ -18889,7 +18889,7 @@ const e4 = /* @__PURE__ */ hn(X8, [["render", J8]]), t4 = { class: "k-segmented-
|
|
|
18889
18889
|
return (c, d) => {
|
|
18890
18890
|
const f = Ot("KLabel"), v = Lt("bind-once");
|
|
18891
18891
|
return h(), $("div", {
|
|
18892
|
-
class:
|
|
18892
|
+
class: de(["k-input-switch", [e.size, { "label-before": e.labelBefore, disabled: e.disabled }, c.$attrs.class]])
|
|
18893
18893
|
}, [
|
|
18894
18894
|
ct(z("input", He(l.value, {
|
|
18895
18895
|
ref_key: "switchInputElement",
|
|
@@ -18909,7 +18909,7 @@ const e4 = /* @__PURE__ */ hn(X8, [["render", J8]]), t4 = { class: "k-segmented-
|
|
|
18909
18909
|
default: O(() => [
|
|
18910
18910
|
ct((h(), $("span", {
|
|
18911
18911
|
"aria-checked": e.modelValue,
|
|
18912
|
-
class:
|
|
18912
|
+
class: de(["switch-control", { checked: e.modelValue, disabled: e.disabled }]),
|
|
18913
18913
|
"data-testid": "switch-control",
|
|
18914
18914
|
role: "checkbox",
|
|
18915
18915
|
tabindex: e.disabled ? -1 : 0,
|
|
@@ -19787,7 +19787,7 @@ const X4 = {
|
|
|
19787
19787
|
z("div", {
|
|
19788
19788
|
ref_key: "modalWrapperElement",
|
|
19789
19789
|
ref: o,
|
|
19790
|
-
class:
|
|
19790
|
+
class: de(["modal-backdrop", { "modal-full-screen": e.fullScreen && !k.$slots.content }]),
|
|
19791
19791
|
onClick: C[3] || (C[3] = (D) => g(!1, D))
|
|
19792
19792
|
}, [
|
|
19793
19793
|
V(x(J4), {
|
|
@@ -19799,7 +19799,7 @@ const X4 = {
|
|
|
19799
19799
|
}, {
|
|
19800
19800
|
default: O(() => [
|
|
19801
19801
|
z("div", {
|
|
19802
|
-
class:
|
|
19802
|
+
class: de(["modal-container", { "custom-content": k.$slots.content }]),
|
|
19803
19803
|
tabindex: "-1"
|
|
19804
19804
|
}, [
|
|
19805
19805
|
q(k.$slots, "content", {}, () => [
|
|
@@ -19824,7 +19824,7 @@ const X4 = {
|
|
|
19824
19824
|
]))
|
|
19825
19825
|
])) : H("", !0),
|
|
19826
19826
|
z("div", {
|
|
19827
|
-
class:
|
|
19827
|
+
class: de(["modal-content", { "no-header": !f.value }])
|
|
19828
19828
|
}, [
|
|
19829
19829
|
q(k.$slots, "default", {}, void 0, !0)
|
|
19830
19830
|
], 2),
|
|
@@ -19983,7 +19983,7 @@ Docs: https://kongponents.konghq.com/components/modal.html#fullscreen`);
|
|
|
19983
19983
|
z("div", {
|
|
19984
19984
|
ref_key: "modalBodyContent",
|
|
19985
19985
|
ref: r,
|
|
19986
|
-
class:
|
|
19986
|
+
class: de(["k-modal-fullscreen-dialog", { "has-footer": u.$slots["footer-content"] }]),
|
|
19987
19987
|
tabindex: "0"
|
|
19988
19988
|
}, [
|
|
19989
19989
|
z("div", sP, [
|
|
@@ -20089,7 +20089,7 @@ Docs: https://kongponents.konghq.com/components/modal.html#fullscreen`);
|
|
|
20089
20089
|
}, [
|
|
20090
20090
|
z("div", $P, [
|
|
20091
20091
|
z("button", {
|
|
20092
|
-
class:
|
|
20092
|
+
class: de({ selected: e.item.selected }),
|
|
20093
20093
|
disabled: e.item.disabled === !0 ? !0 : void 0,
|
|
20094
20094
|
type: "button",
|
|
20095
20095
|
value: e.item.value,
|
|
@@ -20430,28 +20430,28 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
|
|
|
20430
20430
|
},
|
|
20431
20431
|
emits: ["selected", "input", "change", "update:modelValue", "query-change", "item-added", "item-removed"],
|
|
20432
20432
|
setup(e, { emit: t }) {
|
|
20433
|
-
Bt((
|
|
20434
|
-
|
|
20433
|
+
Bt((ce) => ({
|
|
20434
|
+
dcf35ece: nt.value
|
|
20435
20435
|
}));
|
|
20436
20436
|
const a = Wt(), n = At(), { getSizeFromString: r, cloneDeep: i, stripRequiredLabel: s } = xt(), l = 36, o = "Filter...", u = e, c = t, d = E(null), f = b(() => a.required !== void 0 && String(a.required) !== "false"), v = b(() => s(u.label, f.value)), g = b(() => {
|
|
20437
|
-
var
|
|
20438
|
-
return !!((
|
|
20439
|
-
}), w = (
|
|
20437
|
+
var ce, L;
|
|
20438
|
+
return !!((ce = u.labelAttributes) != null && ce.help || (L = u.labelAttributes) != null && L.info || n["label-tooltip"]);
|
|
20439
|
+
}), w = (ce) => Ce.value || Me.value || ce != null && ce.disabled ? "neutral" : u.error ? "danger" : "info", S = {
|
|
20440
20440
|
hideCaret: !0,
|
|
20441
20441
|
placement: "bottom-start",
|
|
20442
20442
|
popoverTimeout: 0,
|
|
20443
20443
|
popoverClasses: "multiselect-popover"
|
|
20444
|
-
}, m = E(0), y = E(0), k = a.id ? String(a.id) : yt(), C = yt(), D = E(null), M = E(null), P = E(null), W = E(), K = b(() => u.selectedRowCount * l), U = E(""), R = b(() => !(!U.value || T.value.filter((
|
|
20444
|
+
}, m = E(0), y = E(0), k = a.id ? String(a.id) : yt(), C = yt(), D = E(null), M = E(null), P = E(null), W = E(), K = b(() => u.selectedRowCount * l), U = E(""), R = b(() => !(!U.value || T.value.filter((ce) => ce.label === U.value).length)), F = E(null), T = E([]), I = E([]), N = E([]), j = E([]), ae = E([]), X = /* @__PURE__ */ new Set(), J = E([]), _ = E([]), le = b(() => _.value.map((ce) => ce.label).join(", ")), oe = E(!1), be = E(!1), ye = E(!1), Ce = b(() => (a == null ? void 0 : a.disabled) !== void 0 && String(a == null ? void 0 : a.disabled) !== "false"), Me = b(() => (a == null ? void 0 : a.readonly) !== void 0 && String(a == null ? void 0 : a.readonly) !== "false"), _e = b({
|
|
20445
20445
|
get() {
|
|
20446
20446
|
return u.modelValue;
|
|
20447
20447
|
},
|
|
20448
|
-
set(
|
|
20449
|
-
const L = T.value.filter((p) =>
|
|
20450
|
-
L.length ? pe(L) :
|
|
20448
|
+
set(ce) {
|
|
20449
|
+
const L = T.value.filter((p) => ce.includes(p.value));
|
|
20450
|
+
L.length ? pe(L) : ce.length || we();
|
|
20451
20451
|
}
|
|
20452
20452
|
}), Le = b(() => {
|
|
20453
|
-
const
|
|
20454
|
-
return delete
|
|
20453
|
+
const ce = { ...a };
|
|
20454
|
+
return delete ce.class, ce;
|
|
20455
20455
|
}), We = b(() => ({
|
|
20456
20456
|
...S,
|
|
20457
20457
|
...u.kpopAttributes,
|
|
@@ -20460,8 +20460,8 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
|
|
|
20460
20460
|
maxWidth: wt.value + "px",
|
|
20461
20461
|
disabled: a.disabled !== void 0 && String(a.disabled) !== "false" || a.readonly !== void 0 && String(a.readonly) !== "false"
|
|
20462
20462
|
})), nt = b(() => r(u.dropdownMaxHeight)), Ke = b(() => ({ ...We.value })), Ge = b(() => {
|
|
20463
|
-
const
|
|
20464
|
-
return r(
|
|
20463
|
+
const ce = u.width ? u.width : "300";
|
|
20464
|
+
return r(ce);
|
|
20465
20465
|
}), et = b(() => ({
|
|
20466
20466
|
width: Ge.value
|
|
20467
20467
|
})), tt = b(() => ({
|
|
@@ -20474,12 +20474,12 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
|
|
|
20474
20474
|
return u.searchPlaceholder;
|
|
20475
20475
|
}
|
|
20476
20476
|
return N.value.length === 1 ? `${N.value.length} item selected` : `${N.value.length} items selected`;
|
|
20477
|
-
}), ee = b(() => u.autosuggest ? T.value : u.filterFunction({ items: T.value, query: U.value })), ge = (
|
|
20477
|
+
}), ee = b(() => u.autosuggest ? T.value : u.filterFunction({ items: T.value, query: U.value })), ge = (ce) => {
|
|
20478
20478
|
var L;
|
|
20479
|
-
(Ce.value || ((L =
|
|
20480
|
-
}, De = async (
|
|
20479
|
+
(Ce.value || ((L = ce == null ? void 0 : ce.target) == null ? void 0 : L.dataset.propagateClicks) === "false") && ce.stopPropagation();
|
|
20480
|
+
}, De = async (ce, L, p) => {
|
|
20481
20481
|
var A, Y;
|
|
20482
|
-
if (
|
|
20482
|
+
if (ce) {
|
|
20483
20483
|
if (!L.value) {
|
|
20484
20484
|
U.value = "", p(), te(), await gt();
|
|
20485
20485
|
const B = (Y = (A = P.value) == null ? void 0 : A.$el) == null ? void 0 : Y.querySelector("input");
|
|
@@ -20489,83 +20489,83 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
|
|
|
20489
20489
|
L.value && (U.value = "", p());
|
|
20490
20490
|
}, Z = () => {
|
|
20491
20491
|
setTimeout(() => {
|
|
20492
|
-
const
|
|
20492
|
+
const ce = W.value;
|
|
20493
20493
|
if (u.collapsedContext) {
|
|
20494
20494
|
y.value++;
|
|
20495
20495
|
return;
|
|
20496
20496
|
}
|
|
20497
|
-
if (
|
|
20498
|
-
if (
|
|
20499
|
-
const p = Array.from(
|
|
20497
|
+
if (ce) {
|
|
20498
|
+
if (ce.clientHeight > K.value) {
|
|
20499
|
+
const p = Array.from(ce.querySelectorAll(".multiselect-selection-badge")).filter((B) => B.offsetTop >= K.value), A = j.value.length - p.length, Y = j.value.splice(A, p.length);
|
|
20500
20500
|
for (const B of Y)
|
|
20501
20501
|
X.has(B.value) || (X.add(B.value), ae.value.push(B));
|
|
20502
20502
|
}
|
|
20503
20503
|
y.value++;
|
|
20504
20504
|
}
|
|
20505
20505
|
}, 0);
|
|
20506
|
-
}, pe = (
|
|
20507
|
-
|
|
20506
|
+
}, pe = (ce) => {
|
|
20507
|
+
ce.forEach((L) => {
|
|
20508
20508
|
var A;
|
|
20509
20509
|
const p = ((A = T.value.filter((Y) => Y.value === L.value)) == null ? void 0 : A[0]) || null;
|
|
20510
20510
|
p.selected = !0, N.value.filter((Y) => Y.value === p.value).length || (N.value.push(p), j.value.push(p));
|
|
20511
20511
|
}), Z();
|
|
20512
|
-
}, Oe = (
|
|
20513
|
-
const p = new Set(
|
|
20514
|
-
N.value = N.value.filter((A) => !p.has(A.value)), j.value = j.value.filter((A) => !p.has(A.value)), ae.value = ae.value.filter((A) => !p.has(A.value)),
|
|
20512
|
+
}, Oe = (ce, L = !1) => {
|
|
20513
|
+
const p = new Set(ce.map((A) => A.value));
|
|
20514
|
+
N.value = N.value.filter((A) => !p.has(A.value)), j.value = j.value.filter((A) => !p.has(A.value)), ae.value = ae.value.filter((A) => !p.has(A.value)), ce.forEach((A) => {
|
|
20515
20515
|
if (X.delete(A.value), A.selected = !1, ae.value.length) {
|
|
20516
20516
|
const Y = ae.value.pop();
|
|
20517
20517
|
Y && (j.value.push(Y), X.delete(Y.value));
|
|
20518
20518
|
}
|
|
20519
20519
|
u.enableItemCreation && A.custom && (T.value = T.value.filter((Y) => Y.value !== A.value), c("item-removed", A));
|
|
20520
20520
|
}), L && Z();
|
|
20521
|
-
}, Pe = (
|
|
20521
|
+
}, Pe = (ce, L) => {
|
|
20522
20522
|
var B, ie;
|
|
20523
|
-
let p = !1, A = L ?
|
|
20524
|
-
if (u.enableItemCreation && (A != null && A.custom) && (p = !0), A === null && (A = ((ie = N.value.filter((ue) => ue.value ===
|
|
20523
|
+
let p = !1, A = L ? ce : ((B = T.value.filter((ue) => ue.value === ce.value)) == null ? void 0 : B[0]) || null;
|
|
20524
|
+
if (u.enableItemCreation && (A != null && A.custom) && (p = !0), A === null && (A = ((ie = N.value.filter((ue) => ue.value === ce.value)) == null ? void 0 : ie[0]) || null), A === null)
|
|
20525
20525
|
return;
|
|
20526
20526
|
if (A.selected) {
|
|
20527
|
-
if (N.value = N.value.filter((ue) => ue.value !==
|
|
20527
|
+
if (N.value = N.value.filter((ue) => ue.value !== ce.value), j.value.filter((ue) => ue.value === ce.value).length ? j.value = j.value.filter((ue) => ue.value !== ce.value) : X.delete(ce.value) && (ae.value = ae.value.filter((ue) => ue.value !== ce.value)), A.selected = !1, ae.value.length) {
|
|
20528
20528
|
const ue = ae.value.pop();
|
|
20529
20529
|
ue && (j.value.push(ue), X.delete(ue.value));
|
|
20530
20530
|
}
|
|
20531
|
-
p && (T.value = T.value.filter((ue) => ue.value !==
|
|
20531
|
+
p && (T.value = T.value.filter((ue) => ue.value !== ce.value), c("item-removed", ce));
|
|
20532
20532
|
} else
|
|
20533
20533
|
A.selected = !0, N.value.push(A), j.value.push(A), L && (A.custom = !0, T.value.push(A));
|
|
20534
20534
|
Z();
|
|
20535
20535
|
const Y = N.value.map((ue) => ue.value);
|
|
20536
20536
|
c("selected", N.value), c("change", A), c("update:modelValue", Y);
|
|
20537
|
-
}, $e = () => {
|
|
20538
|
-
!ee.value.length && u.enableItemCreation && Qe();
|
|
20537
|
+
}, $e = (ce) => {
|
|
20538
|
+
!ee.value.length && u.enableItemCreation && Qe(), ce.preventDefault();
|
|
20539
20539
|
}, Qe = () => {
|
|
20540
20540
|
var p;
|
|
20541
20541
|
if (!u.enableItemCreation || !U.value || !R.value || !u.itemCreationValidator(U.value))
|
|
20542
20542
|
return;
|
|
20543
|
-
const
|
|
20543
|
+
const ce = T.value.length + 1, L = {
|
|
20544
20544
|
label: so(U.value + ""),
|
|
20545
20545
|
value: yt(),
|
|
20546
|
-
key: `${(p = so(U.value).replace(/ /gi, "-")) == null ? void 0 : p.replace(/[^a-z0-9-_]/gi, "")}-${
|
|
20546
|
+
key: `${(p = so(U.value).replace(/ /gi, "-")) == null ? void 0 : p.replace(/[^a-z0-9-_]/gi, "")}-${ce}`
|
|
20547
20547
|
};
|
|
20548
20548
|
c("item-added", L), Pe(L, !0), U.value = "";
|
|
20549
20549
|
}, te = () => {
|
|
20550
|
-
const
|
|
20550
|
+
const ce = ee.value.filter((B) => B.selected), L = ee.value.filter((B) => !B.selected), p = [...ce, ...L], A = p.filter((B) => !B.group), Y = p.filter((B) => B.group).sort((B, ie) => B.group.toLowerCase().localeCompare(ie.group.toLowerCase()));
|
|
20551
20551
|
I.value = [...A, ...Y];
|
|
20552
20552
|
}, we = () => {
|
|
20553
20553
|
T.value.forEach((L) => {
|
|
20554
20554
|
L.disabled || (L.selected = !1, L.custom && c("item-removed", L));
|
|
20555
20555
|
}), T.value = T.value.filter((L) => !(L.custom && !L.disabled)), N.value = N.value.filter((L) => L.disabled), j.value = j.value.filter((L) => L.disabled), ae.value = ae.value.filter((L) => (L.disabled || X.delete(L.value), L.disabled)), U.value = "", Z();
|
|
20556
|
-
const
|
|
20557
|
-
c("selected", N.value), c("update:modelValue",
|
|
20558
|
-
}, Se = (
|
|
20559
|
-
U.value =
|
|
20560
|
-
}, Ze = (
|
|
20556
|
+
const ce = N.value.map((L) => L.value);
|
|
20557
|
+
c("selected", N.value), c("update:modelValue", ce), c("query-change", "");
|
|
20558
|
+
}, Se = (ce) => {
|
|
20559
|
+
U.value = ce, c("query-change", ce);
|
|
20560
|
+
}, Ze = (ce, L) => {
|
|
20561
20561
|
var p;
|
|
20562
|
-
|
|
20562
|
+
ce.keyCode === 27 && (L.value = !1), (ce.code === "ArrowDown" || ce.code === "ArrowUp") && ((p = d.value) == null || p.setFocus());
|
|
20563
20563
|
}, at = () => {
|
|
20564
|
-
var
|
|
20565
|
-
(
|
|
20566
|
-
}, Mt = (
|
|
20564
|
+
var ce;
|
|
20565
|
+
(ce = F.value) == null || ce.showPopover();
|
|
20566
|
+
}, Mt = (ce) => {
|
|
20567
20567
|
var L;
|
|
20568
|
-
(
|
|
20568
|
+
(ce.code === "ArrowDown" || ce.code === "ArrowUp") && ((L = d.value) == null || L.setFocus());
|
|
20569
20569
|
}, pa = async () => {
|
|
20570
20570
|
ye.value = !0, ea();
|
|
20571
20571
|
}, ea = () => {
|
|
@@ -20573,13 +20573,13 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
|
|
|
20573
20573
|
};
|
|
20574
20574
|
ve(y, () => {
|
|
20575
20575
|
setTimeout(() => {
|
|
20576
|
-
const
|
|
20576
|
+
const ce = W.value;
|
|
20577
20577
|
if (u.collapsedContext) {
|
|
20578
20578
|
J.value = i(j.value), _.value = [], m.value++;
|
|
20579
20579
|
return;
|
|
20580
20580
|
}
|
|
20581
|
-
if (
|
|
20582
|
-
if (
|
|
20581
|
+
if (ce)
|
|
20582
|
+
if (ce.clientHeight > K.value) {
|
|
20583
20583
|
const p = j.value.pop();
|
|
20584
20584
|
p && !X.has(p.value) && (ae.value.push(p), X.add(p.value)), y.value++;
|
|
20585
20585
|
} else
|
|
@@ -20589,18 +20589,18 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
|
|
|
20589
20589
|
F.value && typeof F.value.updatePopper == "function" && (await gt(), F.value.updatePopper());
|
|
20590
20590
|
}), ve(ee, () => {
|
|
20591
20591
|
te();
|
|
20592
|
-
}), ve(_e, (
|
|
20593
|
-
if (JSON.stringify(
|
|
20594
|
-
if (!
|
|
20592
|
+
}), ve(_e, (ce, L) => {
|
|
20593
|
+
if (JSON.stringify(ce) !== JSON.stringify(L)) {
|
|
20594
|
+
if (!ce.length) {
|
|
20595
20595
|
we();
|
|
20596
20596
|
return;
|
|
20597
20597
|
}
|
|
20598
|
-
const p = new Set(L), A = new Set(
|
|
20598
|
+
const p = new Set(L), A = new Set(ce), Y = T.value.filter((ie) => A.has(ie.value)), B = N.value.filter((ie) => !A.has(ie.value) && p.has(ie.value));
|
|
20599
20599
|
B.length && Oe(B), Y.length && pe(Y);
|
|
20600
20600
|
}
|
|
20601
|
-
}), ve(() => u.items, (
|
|
20601
|
+
}), ve(() => u.items, (ce, L) => {
|
|
20602
20602
|
var p, A;
|
|
20603
|
-
if (JSON.stringify(
|
|
20603
|
+
if (JSON.stringify(ce) !== JSON.stringify(L)) {
|
|
20604
20604
|
T.value = i(u.items);
|
|
20605
20605
|
for (let Y = 0; Y < T.value.length; Y++) {
|
|
20606
20606
|
T.value[Y].selected === void 0 && (T.value[Y].selected = !1);
|
|
@@ -20616,17 +20616,17 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
|
|
|
20616
20616
|
}
|
|
20617
20617
|
}, { deep: !0, immediate: !0 });
|
|
20618
20618
|
const wt = E(300), Rt = async () => {
|
|
20619
|
-
var
|
|
20620
|
-
wt.value = 300, await gt(), wt.value = ((
|
|
20619
|
+
var ce;
|
|
20620
|
+
wt.value = 300, await gt(), wt.value = ((ce = D.value) == null ? void 0 : ce.clientWidth) || 300, Z();
|
|
20621
20621
|
}, Kt = E();
|
|
20622
20622
|
return st(() => {
|
|
20623
20623
|
qr("resize", Rt), Kt.value = Pn.create(Rt), Kt.value.observe(D.value);
|
|
20624
20624
|
}), Jt(() => {
|
|
20625
20625
|
Kt.value && D.value && Kt.value.unobserve(D.value);
|
|
20626
|
-
}), (
|
|
20626
|
+
}), (ce, L) => {
|
|
20627
20627
|
const p = Ot("KTooltip"), A = Lt("bind-once");
|
|
20628
20628
|
return h(), $("div", {
|
|
20629
|
-
class:
|
|
20629
|
+
class: de(["k-multiselect", [ce.$attrs.class, { "multiselect-error": e.error }]]),
|
|
20630
20630
|
style: Ne(et.value)
|
|
20631
20631
|
}, [
|
|
20632
20632
|
e.label ? ct((h(), Q(vn, He({ key: 0 }, e.labelAttributes, {
|
|
@@ -20641,7 +20641,7 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
|
|
|
20641
20641
|
g.value ? {
|
|
20642
20642
|
name: "tooltip",
|
|
20643
20643
|
fn: O(() => [
|
|
20644
|
-
q(
|
|
20644
|
+
q(ce.$slots, "label-tooltip", {}, void 0, !0)
|
|
20645
20645
|
]),
|
|
20646
20646
|
key: "0"
|
|
20647
20647
|
} : void 0
|
|
@@ -20698,14 +20698,14 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
|
|
|
20698
20698
|
onSelected: Pe
|
|
20699
20699
|
}, {
|
|
20700
20700
|
content: O(({ item: ie }) => [
|
|
20701
|
-
q(
|
|
20701
|
+
q(ce.$slots, "item-template", {
|
|
20702
20702
|
class: "multiselect-item",
|
|
20703
20703
|
item: ie
|
|
20704
20704
|
}, void 0, !0)
|
|
20705
20705
|
]),
|
|
20706
20706
|
_: 3
|
|
20707
20707
|
}, 8, ["items"]),
|
|
20708
|
-
e.enableItemCreation && R.value && !
|
|
20708
|
+
e.enableItemCreation && R.value && !ce.$slots.empty ? (h(), Q(oo, {
|
|
20709
20709
|
key: "multiselect-add-item",
|
|
20710
20710
|
class: "multiselect-add-item",
|
|
20711
20711
|
"data-testid": "multiselect-add-item",
|
|
@@ -20720,23 +20720,23 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
|
|
|
20720
20720
|
]),
|
|
20721
20721
|
_: 1
|
|
20722
20722
|
}, 8, ["item"])) : H("", !0),
|
|
20723
|
-
!I.value.length && !
|
|
20723
|
+
!I.value.length && !ce.$slots.empty && !e.enableItemCreation ? (h(), Q(oo, {
|
|
20724
20724
|
key: "multiselect-empty-item",
|
|
20725
20725
|
class: "multiselect-empty-item",
|
|
20726
20726
|
"data-testid": "multiselect-empty-item",
|
|
20727
20727
|
item: { label: "No results", value: "no_results", disabled: !0 }
|
|
20728
20728
|
})) : H("", !0)
|
|
20729
20729
|
]),
|
|
20730
|
-
|
|
20731
|
-
q(
|
|
20730
|
+
ce.$slots.empty && !e.loading && !I.value.length ? (h(), $("div", VP, [
|
|
20731
|
+
q(ce.$slots, "empty", {}, void 0, !0)
|
|
20732
20732
|
])) : H("", !0)
|
|
20733
20733
|
], 32),
|
|
20734
|
-
e.dropdownFooterText ||
|
|
20734
|
+
e.dropdownFooterText || ce.$slots["dropdown-footer-text"] ? (h(), $("div", {
|
|
20735
20735
|
key: 0,
|
|
20736
|
-
class:
|
|
20736
|
+
class: de(["dropdown-footer", `dropdown-footer-${e.dropdownFooterTextPosition}`]),
|
|
20737
20737
|
"data-testid": "dropdown-footer"
|
|
20738
20738
|
}, [
|
|
20739
|
-
q(
|
|
20739
|
+
q(ce.$slots, "dropdown-footer-text", {}, () => [
|
|
20740
20740
|
fe(ne(e.dropdownFooterText), 1)
|
|
20741
20741
|
], !0)
|
|
20742
20742
|
], 2)) : H("", !0)
|
|
@@ -20762,7 +20762,7 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
|
|
|
20762
20762
|
ref: M,
|
|
20763
20763
|
autocapitalize: "off",
|
|
20764
20764
|
autocomplete: "off",
|
|
20765
|
-
class:
|
|
20765
|
+
class: de(["multiselect-input", { "is-readonly": Me.value }]),
|
|
20766
20766
|
"data-testid": "multiselect-input",
|
|
20767
20767
|
disabled: Ce.value,
|
|
20768
20768
|
"model-value": U.value,
|
|
@@ -20915,7 +20915,7 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
|
|
|
20915
20915
|
], 6);
|
|
20916
20916
|
};
|
|
20917
20917
|
}
|
|
20918
|
-
}), XP = /* @__PURE__ */ Ie(ZP, [["__scopeId", "data-v-
|
|
20918
|
+
}), XP = /* @__PURE__ */ Ie(ZP, [["__scopeId", "data-v-c3146050"]]), JP = {
|
|
20919
20919
|
key: 0,
|
|
20920
20920
|
class: "prompt-content"
|
|
20921
20921
|
}, e7 = { class: "prompt-message" }, t7 = {
|
|
@@ -21125,7 +21125,7 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
|
|
|
21125
21125
|
return (S, m) => {
|
|
21126
21126
|
const y = Lt("bind-once");
|
|
21127
21127
|
return h(), $("div", {
|
|
21128
|
-
class:
|
|
21128
|
+
class: de(["k-radio", [
|
|
21129
21129
|
S.$attrs.class ? S.$attrs.class : "",
|
|
21130
21130
|
w.value
|
|
21131
21131
|
]])
|
|
@@ -21142,7 +21142,7 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
|
|
|
21142
21142
|
]),
|
|
21143
21143
|
!e.card && (e.label || S.$slots.default) ? (h(), $("div", {
|
|
21144
21144
|
key: 0,
|
|
21145
|
-
class:
|
|
21145
|
+
class: de(["radio-label-wrapper", { "has-description": o.value }])
|
|
21146
21146
|
}, [
|
|
21147
21147
|
ct((h(), Q(vn, He(e.labelAttributes, { class: "radio-label" }), mt({
|
|
21148
21148
|
default: O(() => [
|
|
@@ -21169,7 +21169,7 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
|
|
|
21169
21169
|
])) : H("", !0)
|
|
21170
21170
|
], 2)) : e.label || S.$slots.default ? (h(), $("label", {
|
|
21171
21171
|
key: 1,
|
|
21172
|
-
class:
|
|
21172
|
+
class: de(["radio-card-wrapper radio-label-wrapper", { "has-label": e.label, "has-description": u.value }]),
|
|
21173
21173
|
for: x(i),
|
|
21174
21174
|
tabindex: s.value ? -1 : 0,
|
|
21175
21175
|
onKeydown: m[0] || (m[0] = pt(qe(() => {
|
|
@@ -21217,7 +21217,7 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
|
|
|
21217
21217
|
}, [
|
|
21218
21218
|
z("div", g7, [
|
|
21219
21219
|
z("button", {
|
|
21220
|
-
class:
|
|
21220
|
+
class: de({ selected: e.item.selected }),
|
|
21221
21221
|
disabled: e.item.disabled === !0 ? !0 : void 0,
|
|
21222
21222
|
type: "button",
|
|
21223
21223
|
value: e.item.value,
|
|
@@ -21464,9 +21464,9 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
|
|
|
21464
21464
|
emits: ["selected", "input", "change", "update:modelValue", "query-change", "item-added", "item-removed"],
|
|
21465
21465
|
setup(e, { emit: t }) {
|
|
21466
21466
|
Bt((Z) => ({
|
|
21467
|
-
|
|
21468
|
-
"
|
|
21469
|
-
|
|
21467
|
+
efaef080: ae.value,
|
|
21468
|
+
"4b613c01": T.value,
|
|
21469
|
+
f0c65122: I.value
|
|
21470
21470
|
}));
|
|
21471
21471
|
const { getSizeFromString: a, stripRequiredLabel: n } = xt(), r = e, i = t, s = Wt(), l = At(), o = E(!1), u = E(), c = b(() => {
|
|
21472
21472
|
var Z;
|
|
@@ -21506,8 +21506,8 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
|
|
|
21506
21506
|
}), be = (Z) => {
|
|
21507
21507
|
if (!r.enableFiltering)
|
|
21508
21508
|
return Z.preventDefault(), !1;
|
|
21509
|
-
}, ye = () => {
|
|
21510
|
-
!oe.value.length && r.enableItemCreation && Ce();
|
|
21509
|
+
}, ye = (Z) => {
|
|
21510
|
+
!oe.value.length && r.enableItemCreation && Ce(), Z.preventDefault();
|
|
21511
21511
|
}, Ce = () => {
|
|
21512
21512
|
var Oe, Pe;
|
|
21513
21513
|
if (!r.enableItemCreation || !C.value || !D.value || !r.itemCreationValidator(C.value))
|
|
@@ -21603,7 +21603,7 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
|
|
|
21603
21603
|
}), (Z, pe) => {
|
|
21604
21604
|
const Oe = Lt("bind-once");
|
|
21605
21605
|
return h(), $("div", {
|
|
21606
|
-
class:
|
|
21606
|
+
class: de(["k-select", [Z.$attrs.class]])
|
|
21607
21607
|
}, [
|
|
21608
21608
|
e.label ? (h(), Q(vn, He({
|
|
21609
21609
|
key: 0,
|
|
@@ -21747,7 +21747,7 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
|
|
|
21747
21747
|
V(x(ua), { decorative: "" })
|
|
21748
21748
|
])) : H("", !0),
|
|
21749
21749
|
V(x(yo), {
|
|
21750
|
-
class:
|
|
21750
|
+
class: de(["chevron-down-icon", { disabled: f.value }]),
|
|
21751
21751
|
decorative: ""
|
|
21752
21752
|
}, null, 8, ["class"])
|
|
21753
21753
|
]),
|
|
@@ -21772,7 +21772,7 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
|
|
|
21772
21772
|
default: O(() => [
|
|
21773
21773
|
le.value && (!e.enableFiltering || !$e.value) ? (h(), $("div", {
|
|
21774
21774
|
key: 0,
|
|
21775
|
-
class:
|
|
21775
|
+
class: de(["custom-selected-item-wrapper", { clearable: e.clearable }])
|
|
21776
21776
|
}, [
|
|
21777
21777
|
q(Z.$slots, "selected-item-template", { item: P.value }, () => [
|
|
21778
21778
|
q(Z.$slots, "item-template", { item: P.value }, void 0, !0)
|
|
@@ -21792,12 +21792,12 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
|
|
|
21792
21792
|
}),
|
|
21793
21793
|
e.help ? (h(), $("p", {
|
|
21794
21794
|
key: 1,
|
|
21795
|
-
class:
|
|
21795
|
+
class: de(["help-text", { "select-error": e.error }])
|
|
21796
21796
|
}, ne(e.help), 3)) : H("", !0)
|
|
21797
21797
|
], 2);
|
|
21798
21798
|
};
|
|
21799
21799
|
}
|
|
21800
|
-
}), I7 = /* @__PURE__ */ Ie(E7, [["__scopeId", "data-v-
|
|
21800
|
+
}), I7 = /* @__PURE__ */ Ie(E7, [["__scopeId", "data-v-f830882d"]]), O7 = { class: "k-slideout" }, P7 = { class: "slideout-header" }, N7 = {
|
|
21801
21801
|
key: 0,
|
|
21802
21802
|
class: "slideout-title",
|
|
21803
21803
|
"data-testid": "slideout-title"
|
|
@@ -21877,7 +21877,7 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
|
|
|
21877
21877
|
default: O(() => [
|
|
21878
21878
|
e.visible ? (h(), $("div", {
|
|
21879
21879
|
key: 0,
|
|
21880
|
-
class:
|
|
21880
|
+
class: de(["slideout-backdrop", { "backdrop-transparent": !e.hasOverlay }])
|
|
21881
21881
|
}, null, 2)) : H("", !0)
|
|
21882
21882
|
]),
|
|
21883
21883
|
_: 1
|
|
@@ -21946,7 +21946,7 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
|
|
|
21946
21946
|
"data-testid": `step-${e.state}`
|
|
21947
21947
|
}, [
|
|
21948
21948
|
z("div", {
|
|
21949
|
-
class:
|
|
21949
|
+
class: de(["step-container", `${e.state}`])
|
|
21950
21950
|
}, [
|
|
21951
21951
|
z("div", Y7, [
|
|
21952
21952
|
e.state === "completed" ? (h(), Q(x(Wh), {
|
|
@@ -22569,14 +22569,14 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
|
|
|
22569
22569
|
), { state: Mt, hasData: pa, swrvState: ea } = r(we, Se, at), wt = E(!0), Rt = b(() => ({
|
|
22570
22570
|
hasData: pa.value,
|
|
22571
22571
|
state: Mt.value
|
|
22572
|
-
})), Kt = b(() => wt.value ? "loading" : Se.value ? "error" : "success"), { debouncedFn:
|
|
22572
|
+
})), Kt = b(() => wt.value ? "loading" : Se.value ? "error" : "success"), { debouncedFn: ce, generateDebouncedFn: L } = a(Ze, 500), p = L(0), A = (re) => {
|
|
22573
22573
|
const { key: me, useSortHandlerFunction: Ue } = re, ke = I.value + "";
|
|
22574
22574
|
R.value = 1, I.value ? me === I.value ? N.value === "asc" ? N.value = "desc" : N.value = "asc" : (I.value = me, N.value = "asc", ae.value = [null]) : (I.value = me, N.value = "asc", ae.value = [null]), l.clientSort ? Ue && l.sortHandlerFunction ? l.sortHandlerFunction({
|
|
22575
22575
|
key: me,
|
|
22576
22576
|
prevKey: ke,
|
|
22577
22577
|
sortColumnOrder: N.value,
|
|
22578
22578
|
data: v.value
|
|
22579
|
-
}) : i(me, ke, N.value, v.value) : l.paginationOffset ||
|
|
22579
|
+
}) : i(me, ke, N.value, v.value) : l.paginationOffset || ce(), xe();
|
|
22580
22580
|
}, Y = ({ page: re }) => {
|
|
22581
22581
|
R.value = re;
|
|
22582
22582
|
}, B = ({ pageSize: re }) => {
|
|
@@ -22627,7 +22627,7 @@ const _P = { "data-testid": "multiselect-container" }, RP = ["tabindex"], YP = {
|
|
|
22627
22627
|
const Ra = E(!1);
|
|
22628
22628
|
return ve([Pe, R, F], async (re, me) => {
|
|
22629
22629
|
const Ue = me == null ? void 0 : me[0], ke = re[0], dt = re[1];
|
|
22630
|
-
ke !== Ue && dt !== 1 && (R.value = 1, ae.value = [null], j.value = null), _.value && !ee.value && (Ra.value = !0, ke !== "" && ke !== Ue ? await
|
|
22630
|
+
ke !== Ue && dt !== 1 && (R.value = 1, ae.value = [null], j.value = null), _.value && !ee.value && (Ra.value = !0, ke !== "" && ke !== Ue ? await ce() : await p(), Ra.value = !1);
|
|
22631
22631
|
}, { deep: !0, immediate: !0 }), ve(D, (re) => {
|
|
22632
22632
|
re && (W.value = l.tablePreferences.columnVisibility || {});
|
|
22633
22633
|
}, { immediate: !0 }), st(() => {
|
|
@@ -22711,23 +22711,23 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), De();
|
|
|
22711
22711
|
onScrollPassive: ie
|
|
22712
22712
|
}, [
|
|
22713
22713
|
ct((h(), $("table", {
|
|
22714
|
-
class:
|
|
22714
|
+
class: de(["table", {
|
|
22715
22715
|
"has-hover": e.rowHover,
|
|
22716
22716
|
"is-clickable": J.value
|
|
22717
22717
|
}])
|
|
22718
22718
|
}, [
|
|
22719
22719
|
z("thead", {
|
|
22720
|
-
class:
|
|
22720
|
+
class: de({ "is-scrolled": U.value })
|
|
22721
22721
|
}, [
|
|
22722
22722
|
z("tr", {
|
|
22723
22723
|
ref_key: "headerRow",
|
|
22724
22724
|
ref: g,
|
|
22725
|
-
class:
|
|
22725
|
+
class: de({ "is-scrolled": U.value })
|
|
22726
22726
|
}, [
|
|
22727
22727
|
(h(!0), $(Te, null, Be(S.value, (ke, dt) => (h(), $("th", {
|
|
22728
22728
|
key: `table-${x(d)}-headers-${dt}`,
|
|
22729
22729
|
"aria-sort": e.sortable && ke.key === I.value ? N.value === "asc" ? "ascending" : "descending" : void 0,
|
|
22730
|
-
class:
|
|
22730
|
+
class: de(["table-headers", nt(ke, dt)]),
|
|
22731
22731
|
"data-testid": `table-header-${ke.key}`,
|
|
22732
22732
|
style: Ne(We.value[ke.key]),
|
|
22733
22733
|
onClick: () => {
|
|
@@ -22752,13 +22752,13 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), De();
|
|
|
22752
22752
|
}, null, 40, t9)) : H("", !0),
|
|
22753
22753
|
z("div", {
|
|
22754
22754
|
"aria-describedby": ke.tooltip || re.$slots[ye(ke.key)] ? `${ye(ke.key)}-${x(d)}` : void 0,
|
|
22755
|
-
class:
|
|
22755
|
+
class: de(["table-headers-container", { resized: m.value === ke.key }])
|
|
22756
22756
|
}, [
|
|
22757
22757
|
q(re.$slots, be(ke.key), {
|
|
22758
22758
|
column: Ce(ke)
|
|
22759
22759
|
}, () => [
|
|
22760
22760
|
z("span", {
|
|
22761
|
-
class:
|
|
22761
|
+
class: de(["table-header-label", {
|
|
22762
22762
|
"sr-only": ke.hideLabel
|
|
22763
22763
|
}])
|
|
22764
22764
|
}, ne(ke.label ? ke.label : ke.key), 3)
|
|
@@ -22898,12 +22898,12 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), De();
|
|
|
22898
22898
|
(h(!0), $(Te, null, Be(e.tabs, (c) => (h(), $("li", {
|
|
22899
22899
|
id: `${c.hash.replace("#", "")}-tab`,
|
|
22900
22900
|
key: c.hash,
|
|
22901
|
-
class:
|
|
22901
|
+
class: de(["tab-item", { active: r.value === c.hash }])
|
|
22902
22902
|
}, [
|
|
22903
22903
|
z("div", {
|
|
22904
22904
|
"aria-controls": e.hidePanels ? void 0 : `panel-${c.hash}`,
|
|
22905
22905
|
"aria-selected": e.hidePanels ? void 0 : r.value === c.hash ? "true" : "false",
|
|
22906
|
-
class:
|
|
22906
|
+
class: de(["tab-link", { "has-panels": !e.hidePanels, disabled: c.disabled }]),
|
|
22907
22907
|
role: "tab",
|
|
22908
22908
|
tabindex: l(c),
|
|
22909
22909
|
onClick: qe((d) => c.disabled ? void 0 : i(c.hash), ["prevent"]),
|
|
@@ -23028,7 +23028,7 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), De();
|
|
|
23028
23028
|
return (C, D) => {
|
|
23029
23029
|
const M = Lt("bind-once");
|
|
23030
23030
|
return h(), $("div", {
|
|
23031
|
-
class:
|
|
23031
|
+
class: de(["k-textarea", [C.$attrs.class, { "input-error": e.error || e.hasError || S.value }]])
|
|
23032
23032
|
}, [
|
|
23033
23033
|
e.label ? ct((h(), Q(vn, He({ key: 0 }, e.labelAttributes, { required: l.value }), mt({
|
|
23034
23034
|
default: O(() => [
|
|
@@ -23118,7 +23118,7 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), De();
|
|
|
23118
23118
|
default: O(() => [
|
|
23119
23119
|
(h(!0), $(Te, null, Be(e.toasterState, (r) => (h(), $("div", {
|
|
23120
23120
|
key: r.key,
|
|
23121
|
-
class:
|
|
23121
|
+
class: de(["toaster", `${r.appearance}`]),
|
|
23122
23122
|
role: "alert"
|
|
23123
23123
|
}, [
|
|
23124
23124
|
z("div", y9, [
|
|
@@ -24765,7 +24765,7 @@ const dN = {
|
|
|
24765
24765
|
l.target && l.target.closest("a:not(.disabled), button:not([data-tree-item-trigger]), label, input, select") !== null || n("selected", a.item);
|
|
24766
24766
|
};
|
|
24767
24767
|
return (l, o) => (h(), $("button", {
|
|
24768
|
-
class:
|
|
24768
|
+
class: de(["tree-item", {
|
|
24769
24769
|
"not-draggable": e.disabled,
|
|
24770
24770
|
selected: e.item.selected
|
|
24771
24771
|
}]),
|
|
@@ -24893,7 +24893,7 @@ const dN = {
|
|
|
24893
24893
|
default: O(() => [
|
|
24894
24894
|
(h(!0), $(Te, null, Be(i.value, (D) => (h(), $("div", {
|
|
24895
24895
|
key: D.id,
|
|
24896
|
-
class:
|
|
24896
|
+
class: de(["tree-item-container", {
|
|
24897
24897
|
"has-no-children": o(D)
|
|
24898
24898
|
}])
|
|
24899
24899
|
}, [
|
|
@@ -25171,7 +25171,7 @@ const dN = {
|
|
|
25171
25171
|
return h(), $("div", {
|
|
25172
25172
|
ref_key: "kTruncateWrapper",
|
|
25173
25173
|
ref: l,
|
|
25174
|
-
class:
|
|
25174
|
+
class: de(["k-truncate", [n.value ? "expanded" : "", `truncate-${e.truncateText ? "text" : "content"}`]]),
|
|
25175
25175
|
style: Ne(S.value)
|
|
25176
25176
|
}, [
|
|
25177
25177
|
!e.truncateText && r.value ? (h(), $("div", xN, [
|
|
@@ -25369,11 +25369,11 @@ const dN = {
|
|
|
25369
25369
|
return h(), $("div", NN, [
|
|
25370
25370
|
e.badge && e.badgeLabel ? (h(), $("span", BN, ne(e.badgeLabel), 1)) : H("", !0),
|
|
25371
25371
|
z("div", {
|
|
25372
|
-
class:
|
|
25372
|
+
class: de(["copy-container", { "copy-element": e.truncate || e.badge, "badge-styles": e.badge }])
|
|
25373
25373
|
}, [
|
|
25374
25374
|
e.format !== "hidden" ? (h(), Q(wa, {
|
|
25375
25375
|
key: 0,
|
|
25376
|
-
class:
|
|
25376
|
+
class: de([s.value]),
|
|
25377
25377
|
"data-testid": "copy-tooltip-wrapper",
|
|
25378
25378
|
"max-width": "500px",
|
|
25379
25379
|
placement: "bottom-start",
|
|
@@ -25383,7 +25383,7 @@ const dN = {
|
|
|
25383
25383
|
z("div", {
|
|
25384
25384
|
ref_key: "copyTextElement",
|
|
25385
25385
|
ref: f,
|
|
25386
|
-
class:
|
|
25386
|
+
class: de(["copy-text", { monospace: e.monospace || !e.badge }])
|
|
25387
25387
|
}, ne(l.value), 3)
|
|
25388
25388
|
]),
|
|
25389
25389
|
_: 1
|
|
@@ -25733,7 +25733,7 @@ const dN = {
|
|
|
25733
25733
|
const Rt = E(!1), Kt = b(() => {
|
|
25734
25734
|
const p = N.value.filter((A) => !A.disabled && a.data.find((Y) => o(Y) === A.rowKey));
|
|
25735
25735
|
return !!p.filter((A) => A.selected).length && !!p.filter((A) => !A.selected).length;
|
|
25736
|
-
}),
|
|
25736
|
+
}), ce = (p) => {
|
|
25737
25737
|
N.value.forEach((A) => {
|
|
25738
25738
|
a.data.find((Y) => o(Y) === A.rowKey) && !A.disabled && (A.selected = p);
|
|
25739
25739
|
});
|
|
@@ -25771,7 +25771,7 @@ const dN = {
|
|
|
25771
25771
|
}), (p, A) => {
|
|
25772
25772
|
const Y = Lt("bind-once");
|
|
25773
25773
|
return h(), $("div", {
|
|
25774
|
-
class:
|
|
25774
|
+
class: de(["k-table-view", { "hide-headers": p.hideHeaders }])
|
|
25775
25775
|
}, [
|
|
25776
25776
|
U.value ? (h(), $("div", HN, [
|
|
25777
25777
|
q(p.$slots, "toolbar", {}, void 0, !0),
|
|
@@ -25865,24 +25865,24 @@ const dN = {
|
|
|
25865
25865
|
onScrollPassive: ge
|
|
25866
25866
|
}, [
|
|
25867
25867
|
ct((h(), $("table", {
|
|
25868
|
-
class:
|
|
25868
|
+
class: de(["table", {
|
|
25869
25869
|
"has-hover": p.rowHover && !R.value,
|
|
25870
25870
|
"is-clickable": K.value
|
|
25871
25871
|
}])
|
|
25872
25872
|
}, [
|
|
25873
25873
|
p.hideHeaders ? H("", !0) : (h(), $("thead", {
|
|
25874
25874
|
key: 0,
|
|
25875
|
-
class:
|
|
25875
|
+
class: de({ "is-scrolled": D.value })
|
|
25876
25876
|
}, [
|
|
25877
25877
|
z("tr", {
|
|
25878
25878
|
ref_key: "headerRow",
|
|
25879
25879
|
ref: u,
|
|
25880
|
-
class:
|
|
25880
|
+
class: de({ "is-scrolled": D.value })
|
|
25881
25881
|
}, [
|
|
25882
25882
|
(h(!0), $(Te, null, Be(d.value, (B, ie) => (h(), $("th", {
|
|
25883
25883
|
key: `table-${x(s)}-headers-${B.key}`,
|
|
25884
25884
|
"aria-sort": B.key === P.value ? W.value === "asc" ? "ascending" : "descending" : void 0,
|
|
25885
|
-
class:
|
|
25885
|
+
class: de(["table-headers", Le(B, ie)]),
|
|
25886
25886
|
"data-key": B.key,
|
|
25887
25887
|
"data-testid": `table-header-${B.key}`,
|
|
25888
25888
|
style: Ne(_e.value[B.key]),
|
|
@@ -25901,14 +25901,14 @@ const dN = {
|
|
|
25901
25901
|
}, null, 40, jN)) : H("", !0),
|
|
25902
25902
|
z("div", {
|
|
25903
25903
|
"aria-describedby": B.tooltip || p.$slots[_(B.key)] ? `${_(B.key)}-${x(s)}` : void 0,
|
|
25904
|
-
class:
|
|
25904
|
+
class: de(["table-headers-container", { resized: f.value === B.key }])
|
|
25905
25905
|
}, [
|
|
25906
25906
|
B.key !== x(Xe).BULK_ACTIONS ? q(p.$slots, J(B.key), {
|
|
25907
25907
|
key: 0,
|
|
25908
25908
|
column: le(B)
|
|
25909
25909
|
}, () => [
|
|
25910
25910
|
z("span", {
|
|
25911
|
-
class:
|
|
25911
|
+
class: de(["table-header-label", {
|
|
25912
25912
|
"sr-only": B.hideLabel || B.key === x(Xe).ACTIONS && B.hideLabel !== !1
|
|
25913
25913
|
}])
|
|
25914
25914
|
}, ne(B.label ? B.label : B.key), 3)
|
|
@@ -25920,7 +25920,7 @@ const dN = {
|
|
|
25920
25920
|
class: "table-header-bulk-actions-checkbox",
|
|
25921
25921
|
"data-testid": "table-header-bulk-actions-checkbox",
|
|
25922
25922
|
indeterminate: Kt.value,
|
|
25923
|
-
onChange:
|
|
25923
|
+
onChange: ce
|
|
25924
25924
|
}, null, 8, ["modelValue", "indeterminate"])
|
|
25925
25925
|
])),
|
|
25926
25926
|
B.tooltip || p.$slots[_(B.key)] ? (h(), Q(wa, {
|
|
@@ -26054,7 +26054,7 @@ const dN = {
|
|
|
26054
26054
|
"aria-controls": `table-${x(s)}-row-${ie}-expandable-content`,
|
|
26055
26055
|
"aria-expanded": at.value.includes(ie),
|
|
26056
26056
|
"aria-label": "Toggle row expandable content",
|
|
26057
|
-
class:
|
|
26057
|
+
class: de(["expandable-row-control", { expanded: at.value.includes(ie) }]),
|
|
26058
26058
|
"data-testid": "expandable-row-control",
|
|
26059
26059
|
type: "button",
|
|
26060
26060
|
onClick: (rt) => Mt(ie, B)
|