@kong/kongponents 9.13.1-pr.2481.da01a8257.0 → 9.13.1
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
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 za = (e, t, a) => ch(e, typeof t != "symbol" ? t + "" : t, a);
|
|
4
|
-
import { defineComponent as ie, reactive as vr, ref as E, computed as b, openBlock as h, createBlock as G, resolveDynamicComponent as Fe, normalizeStyle as Ne, withCtx as O, createElementBlock as D, normalizeClass as ue, renderSlot as
|
|
4
|
+
import { defineComponent as ie, reactive as vr, ref as E, computed as b, openBlock as h, createBlock as G, resolveDynamicComponent as Fe, normalizeStyle as Ne, withCtx as O, createElementBlock as D, normalizeClass as ue, renderSlot as H, unref as T, createCommentVNode as F, createElementVNode as R, toDisplayString as ne, withKeys as Ct, withModifiers as qe, useSlots as Mt, useAttrs as Kt, onMounted as ot, mergeProps as He, toHandlers as go, shallowRef as dh, watch as ve, getCurrentScope as vf, onScopeDispose as pf, shallowReadonly as Fn, getCurrentInstance as fh, onUnmounted as ea, isReadonly as vh, toRefs as hf, watchEffect as kl, useCssVars as Rt, onBeforeUnmount as mo, resolveComponent as It, resolveDirective as Yt, withDirectives as ut, createTextVNode as de, Transition as ia, createVNode as K, vShow as Cl, nextTick as ht, Fragment as De, renderList as Be, createSlots as mt, inject as ai, provide as ni, normalizeProps as Yr, toRef as $i, guardReactiveProps as ms, isRef as Un, 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)
|
|
@@ -3579,7 +3579,7 @@ const wf = {
|
|
|
3579
3579
|
class: ue(["k-alert", [e.appearance]])
|
|
3580
3580
|
}, [
|
|
3581
3581
|
e.showIcon || n.$slots.icon ? (h(), D("div", Og, [
|
|
3582
|
-
|
|
3582
|
+
H(n.$slots, "icon", {}, () => [
|
|
3583
3583
|
(h(), G(Fe(a.value), {
|
|
3584
3584
|
class: "alert-icon",
|
|
3585
3585
|
decorative: "",
|
|
@@ -3590,7 +3590,7 @@ const wf = {
|
|
|
3590
3590
|
R("div", Pg, [
|
|
3591
3591
|
e.title ? (h(), D("span", Ng, ne(e.title), 1)) : F("", !0),
|
|
3592
3592
|
e.message || n.$slots.default ? (h(), D("div", Bg, [
|
|
3593
|
-
|
|
3593
|
+
H(n.$slots, "default", {}, () => [
|
|
3594
3594
|
R("p", null, ne(e.message), 1)
|
|
3595
3595
|
], !0)
|
|
3596
3596
|
])) : F("", !0)
|
|
@@ -3681,8 +3681,8 @@ const wf = {
|
|
|
3681
3681
|
type: e.type
|
|
3682
3682
|
}, l.value, go(u.value)), {
|
|
3683
3683
|
default: O(() => [
|
|
3684
|
-
|
|
3685
|
-
|
|
3684
|
+
H(c.$slots, "icon", {}, void 0, !0),
|
|
3685
|
+
H(c.$slots, "default", {}, void 0, !0)
|
|
3686
3686
|
]),
|
|
3687
3687
|
_: 3
|
|
3688
3688
|
}, 16, ["class", "disabled", "tabindex", "type"]));
|
|
@@ -3991,20 +3991,20 @@ const Qg = function(e) {
|
|
|
3991
3991
|
placement: M
|
|
3992
3992
|
}
|
|
3993
3993
|
};
|
|
3994
|
-
const P = $.map((
|
|
3995
|
-
const q = Ua(
|
|
3996
|
-
return [
|
|
3994
|
+
const P = $.map((W) => {
|
|
3995
|
+
const q = Ua(W.placement);
|
|
3996
|
+
return [W.placement, q && c ? (
|
|
3997
3997
|
// Check along the mainAxis and main crossAxis side.
|
|
3998
|
-
|
|
3998
|
+
W.overflows.slice(0, 2).reduce((B, x) => B + x, 0)
|
|
3999
3999
|
) : (
|
|
4000
4000
|
// Check only the mainAxis.
|
|
4001
|
-
|
|
4002
|
-
),
|
|
4003
|
-
}).sort((
|
|
4001
|
+
W.overflows[0]
|
|
4002
|
+
), W.overflows];
|
|
4003
|
+
}).sort((W, q) => W[1] - q[1]), V = ((r = P.filter((W) => W[2].slice(
|
|
4004
4004
|
0,
|
|
4005
4005
|
// Aligned placements should not check their opposite crossAxis
|
|
4006
4006
|
// side.
|
|
4007
|
-
Ua(
|
|
4007
|
+
Ua(W[0]) ? 2 : 3
|
|
4008
4008
|
).every((q) => q <= 0))[0]) == null ? void 0 : r[0]) || P[0][0];
|
|
4009
4009
|
return V !== l ? {
|
|
4010
4010
|
data: {
|
|
@@ -4053,7 +4053,7 @@ const Qg = function(e) {
|
|
|
4053
4053
|
placement: r,
|
|
4054
4054
|
overflows: P
|
|
4055
4055
|
}], !P.every((B) => B <= 0)) {
|
|
4056
|
-
var V,
|
|
4056
|
+
var V, W;
|
|
4057
4057
|
const B = (((V = i.flip) == null ? void 0 : V.index) || 0) + 1, x = $[B];
|
|
4058
4058
|
if (x)
|
|
4059
4059
|
return {
|
|
@@ -4065,7 +4065,7 @@ const Qg = function(e) {
|
|
|
4065
4065
|
placement: x
|
|
4066
4066
|
}
|
|
4067
4067
|
};
|
|
4068
|
-
let I = (
|
|
4068
|
+
let I = (W = Y.filter((N) => N.overflows[0] <= 0).sort((N, j) => N.overflows[1] - j.overflows[1])[0]) == null ? void 0 : W.placement;
|
|
4069
4069
|
if (!I)
|
|
4070
4070
|
switch (v) {
|
|
4071
4071
|
case "bestFit": {
|
|
@@ -4163,8 +4163,8 @@ const Qg = function(e) {
|
|
|
4163
4163
|
const S = v - o.top - o.bottom, m = f - o.left - o.right, y = un(v - o[g], S), w = un(f - o[k], m), C = !t.middlewareData.shift;
|
|
4164
4164
|
let $ = y, M = w;
|
|
4165
4165
|
if (d ? M = c || C ? un(w, m) : m : $ = c || C ? un(y, S) : S, C && !c) {
|
|
4166
|
-
const Y = na(o.left, 0), V = na(o.right, 0),
|
|
4167
|
-
d ? M = f - 2 * (Y !== 0 || V !== 0 ? Y + V : na(o.left, o.right)) : $ = v - 2 * (
|
|
4166
|
+
const Y = na(o.left, 0), V = na(o.right, 0), W = na(o.top, 0), q = na(o.bottom, 0);
|
|
4167
|
+
d ? M = f - 2 * (Y !== 0 || V !== 0 ? Y + V : na(o.left, o.right)) : $ = v - 2 * (W !== 0 || q !== 0 ? W + q : na(o.top, o.bottom));
|
|
4168
4168
|
}
|
|
4169
4169
|
await s({
|
|
4170
4170
|
...t,
|
|
@@ -5021,7 +5021,7 @@ function uc() {
|
|
|
5021
5021
|
}));
|
|
5022
5022
|
var g = function(y, w) {
|
|
5023
5023
|
return Kn(e, void 0, void 0, function() {
|
|
5024
|
-
var C, $, M, P, Y, V,
|
|
5024
|
+
var C, $, M, P, Y, V, W, q = this;
|
|
5025
5025
|
return Vn(this, function(B) {
|
|
5026
5026
|
switch (B.label) {
|
|
5027
5027
|
case 0:
|
|
@@ -5031,7 +5031,7 @@ function uc() {
|
|
|
5031
5031
|
]) : M && (V = !!(Date.now() - M.createdAt >= i.dedupingInterval || w != null && w.forceRevalidate), !V) ? (v.isValidating = !1, [
|
|
5032
5032
|
2
|
|
5033
5033
|
/*return*/
|
|
5034
|
-
]) : (
|
|
5034
|
+
]) : (W = function() {
|
|
5035
5035
|
return Kn(q, void 0, void 0, function() {
|
|
5036
5036
|
var x, I, N, j;
|
|
5037
5037
|
return Vn(this, function(ae) {
|
|
@@ -5057,7 +5057,7 @@ function uc() {
|
|
|
5057
5057
|
return Vn(this, function(x) {
|
|
5058
5058
|
switch (x.label) {
|
|
5059
5059
|
case 0:
|
|
5060
|
-
return s ? [3, 2] : [4,
|
|
5060
|
+
return s ? [3, 2] : [4, W()];
|
|
5061
5061
|
case 1:
|
|
5062
5062
|
x.sent(), x.label = 2;
|
|
5063
5063
|
case 2:
|
|
@@ -5073,7 +5073,7 @@ function uc() {
|
|
|
5073
5073
|
/*return*/
|
|
5074
5074
|
];
|
|
5075
5075
|
case 1:
|
|
5076
|
-
return [4,
|
|
5076
|
+
return [4, W()];
|
|
5077
5077
|
case 2:
|
|
5078
5078
|
B.sent(), B.label = 3;
|
|
5079
5079
|
case 3:
|
|
@@ -5336,7 +5336,7 @@ const Ym = ["aria-labelledby", "x-placement"], Fm = ["tabindex"], zm = {
|
|
|
5336
5336
|
}, S = () => {
|
|
5337
5337
|
q.value && q.value();
|
|
5338
5338
|
}, m = () => {
|
|
5339
|
-
S(), v.value && c.value && (q.value = wm(v.value, c.value,
|
|
5339
|
+
S(), v.value && c.value && (q.value = wm(v.value, c.value, W));
|
|
5340
5340
|
}, y = async () => {
|
|
5341
5341
|
n.disabled || (g.value && clearTimeout(g.value), n.placement !== "auto" && (f.value++, await ht()), m(), d.value = !0);
|
|
5342
5342
|
}, w = () => {
|
|
@@ -5351,7 +5351,7 @@ const Ym = ["aria-labelledby", "x-placement"], Fm = ["tabindex"], zm = {
|
|
|
5351
5351
|
width: i(n.width),
|
|
5352
5352
|
maxWidth: i(n.maxWidth),
|
|
5353
5353
|
maxHeight: i(n.maxHeight)
|
|
5354
|
-
})), M = b(() => [n.popoverClasses, { "hide-caret": n.hideCaret }]), P = b(() => n.placement.trim().replace(/ /g, "-").replace(/[A-Z]+(?![a-z])|[A-Z]/g, (B, x) => (x ? "-" : "") + B.toLowerCase()).replace(/--+/g, "-").replace(/-+$/g, "")), { floatingStyles: Y, placement: V, update:
|
|
5354
|
+
})), M = b(() => [n.popoverClasses, { "hide-caret": n.hideCaret }]), P = b(() => n.placement.trim().replace(/ /g, "-").replace(/[A-Z]+(?![a-z])|[A-Z]/g, (B, x) => (x ? "-" : "") + B.toLowerCase()).replace(/--+/g, "-").replace(/-+$/g, "")), { floatingStyles: Y, placement: V, update: W } = Tm(v, c, {
|
|
5355
5355
|
...P.value === "auto" && { middleware: [km()] },
|
|
5356
5356
|
// when placement is auto just use autoPlacement middleware
|
|
5357
5357
|
...P.value !== "auto" && {
|
|
@@ -5410,7 +5410,7 @@ const Ym = ["aria-labelledby", "x-placement"], Fm = ["tabindex"], zm = {
|
|
|
5410
5410
|
ref: u,
|
|
5411
5411
|
class: "popover-trigger-wrapper"
|
|
5412
5412
|
}, [
|
|
5413
|
-
|
|
5413
|
+
H(B.$slots, "default", {}, () => [
|
|
5414
5414
|
ut((h(), G(I, { "data-testid": "popover-button" }, {
|
|
5415
5415
|
default: O(() => [
|
|
5416
5416
|
de(ne(e.buttonText), 1)
|
|
@@ -5460,7 +5460,7 @@ const Ym = ["aria-labelledby", "x-placement"], Fm = ["tabindex"], zm = {
|
|
|
5460
5460
|
id: T(l),
|
|
5461
5461
|
class: ue(["popover-title", { "close-icon-spacing": !e.hideCloseIcon }])
|
|
5462
5462
|
}, [
|
|
5463
|
-
|
|
5463
|
+
H(B.$slots, "title", {}, () => [
|
|
5464
5464
|
de(ne(e.title), 1)
|
|
5465
5465
|
], !0)
|
|
5466
5466
|
], 10, Hm)) : F("", !0)
|
|
@@ -5468,10 +5468,10 @@ const Ym = ["aria-labelledby", "x-placement"], Fm = ["tabindex"], zm = {
|
|
|
5468
5468
|
R("div", {
|
|
5469
5469
|
class: ue(["popover-content", { "close-icon-spacing": !e.hideCloseIcon && !(B.$slots.title || e.title) }])
|
|
5470
5470
|
}, [
|
|
5471
|
-
|
|
5471
|
+
H(B.$slots, "content", {}, void 0, !0)
|
|
5472
5472
|
], 2),
|
|
5473
5473
|
B.$slots.footer ? (h(), D("div", qm, [
|
|
5474
|
-
|
|
5474
|
+
H(B.$slots, "footer", {}, void 0, !0)
|
|
5475
5475
|
])) : F("", !0)
|
|
5476
5476
|
], 4)
|
|
5477
5477
|
], 14, Ym)), [
|
|
@@ -5546,7 +5546,7 @@ const Ym = ["aria-labelledby", "x-placement"], Fm = ["tabindex"], zm = {
|
|
|
5546
5546
|
}), {
|
|
5547
5547
|
content: O(() => [
|
|
5548
5548
|
ut((h(), D("div", Um, [
|
|
5549
|
-
|
|
5549
|
+
H(i.$slots, "content", {
|
|
5550
5550
|
label: e.text || e.label
|
|
5551
5551
|
}, () => [
|
|
5552
5552
|
de(ne(e.text || e.label), 1)
|
|
@@ -5556,10 +5556,10 @@ const Ym = ["aria-labelledby", "x-placement"], Fm = ["tabindex"], zm = {
|
|
|
5556
5556
|
])
|
|
5557
5557
|
]),
|
|
5558
5558
|
default: O(() => [
|
|
5559
|
-
|
|
5559
|
+
H(i.$slots, "default", {}, void 0, !0)
|
|
5560
5560
|
]),
|
|
5561
5561
|
_: 3
|
|
5562
|
-
}, 16, ["max-width", "placement", "z-index"])) :
|
|
5562
|
+
}, 16, ["max-width", "placement", "z-index"])) : H(i.$slots, "default", { key: 1 }, void 0, !0);
|
|
5563
5563
|
};
|
|
5564
5564
|
}
|
|
5565
5565
|
}), ka = /* @__PURE__ */ Me(Km, [["__scopeId", "data-v-a55c9998"]]), { getSizeFromString: Vm } = xt(), jm = {
|
|
@@ -5624,13 +5624,13 @@ const Ym = ["aria-labelledby", "x-placement"], Fm = ["tabindex"], zm = {
|
|
|
5624
5624
|
R("div", {
|
|
5625
5625
|
class: ue(["badge-content", { "icon-after": !e.iconBefore }])
|
|
5626
5626
|
}, [
|
|
5627
|
-
o.$slots.icon ?
|
|
5627
|
+
o.$slots.icon ? H(o.$slots, "icon", { key: 0 }, void 0, !0) : F("", !0),
|
|
5628
5628
|
R("div", {
|
|
5629
5629
|
ref_key: "badgeTextElement",
|
|
5630
5630
|
ref: n,
|
|
5631
5631
|
class: "badge-content-wrapper"
|
|
5632
5632
|
}, [
|
|
5633
|
-
|
|
5633
|
+
H(o.$slots, "default", {}, void 0, !0)
|
|
5634
5634
|
], 512)
|
|
5635
5635
|
], 2)
|
|
5636
5636
|
]),
|
|
@@ -5691,7 +5691,7 @@ const Ym = ["aria-labelledby", "x-placement"], Fm = ["tabindex"], zm = {
|
|
|
5691
5691
|
}), {
|
|
5692
5692
|
default: O(() => [
|
|
5693
5693
|
r.$slots[`icon-${n(s, l)}`] ? (h(), D("span", Qm, [
|
|
5694
|
-
|
|
5694
|
+
H(r.$slots, `icon-${n(s, l)}`, {}, void 0, !0)
|
|
5695
5695
|
])) : F("", !0),
|
|
5696
5696
|
s.text ? (h(), D("span", {
|
|
5697
5697
|
key: 1,
|
|
@@ -5702,7 +5702,7 @@ const Ym = ["aria-labelledby", "x-placement"], Fm = ["tabindex"], zm = {
|
|
|
5702
5702
|
_: 2
|
|
5703
5703
|
}, 1040, ["class"])),
|
|
5704
5704
|
l < e.items.length - 1 ? (h(), D("span", Zm, [
|
|
5705
|
-
|
|
5705
|
+
H(r.$slots, "divider", {}, () => [
|
|
5706
5706
|
i[0] || (i[0] = de(" / "))
|
|
5707
5707
|
], !0)
|
|
5708
5708
|
])) : F("", !0)
|
|
@@ -5743,21 +5743,21 @@ const Ym = ["aria-labelledby", "x-placement"], Fm = ["tabindex"], zm = {
|
|
|
5743
5743
|
class: "card-title"
|
|
5744
5744
|
}, {
|
|
5745
5745
|
default: O(() => [
|
|
5746
|
-
|
|
5746
|
+
H(r.$slots, "title", {}, () => [
|
|
5747
5747
|
de(ne(e.title), 1)
|
|
5748
5748
|
], !0)
|
|
5749
5749
|
]),
|
|
5750
5750
|
_: 3
|
|
5751
5751
|
})) : F("", !0),
|
|
5752
5752
|
r.$slots.actions ? (h(), D("div", n1, [
|
|
5753
|
-
|
|
5753
|
+
H(r.$slots, "actions", {}, void 0, !0)
|
|
5754
5754
|
])) : F("", !0)
|
|
5755
5755
|
])) : F("", !0),
|
|
5756
5756
|
r.$slots.default ? (h(), D("div", r1, [
|
|
5757
|
-
|
|
5757
|
+
H(r.$slots, "default", {}, void 0, !0)
|
|
5758
5758
|
])) : F("", !0),
|
|
5759
5759
|
r.$slots.footer ? (h(), D("div", i1, [
|
|
5760
|
-
|
|
5760
|
+
H(r.$slots, "footer", {}, void 0, !0)
|
|
5761
5761
|
])) : F("", !0)
|
|
5762
5762
|
]));
|
|
5763
5763
|
}
|
|
@@ -5784,7 +5784,7 @@ const Ym = ["aria-labelledby", "x-placement"], Fm = ["tabindex"], zm = {
|
|
|
5784
5784
|
__name: "SkeletonBase",
|
|
5785
5785
|
setup(e) {
|
|
5786
5786
|
return (t, a) => (h(), D("div", l1, [
|
|
5787
|
-
|
|
5787
|
+
H(t.$slots, "default", {}, () => [
|
|
5788
5788
|
K(ya, {
|
|
5789
5789
|
height: "1",
|
|
5790
5790
|
width: "100"
|
|
@@ -5823,12 +5823,12 @@ const Ym = ["aria-labelledby", "x-placement"], Fm = ["tabindex"], zm = {
|
|
|
5823
5823
|
class: "skeleton-card"
|
|
5824
5824
|
}, [
|
|
5825
5825
|
R("div", f1, [
|
|
5826
|
-
|
|
5826
|
+
H(r.$slots, "card-header", {}, () => [
|
|
5827
5827
|
K(ya, { width: "50" })
|
|
5828
5828
|
], !0)
|
|
5829
5829
|
]),
|
|
5830
5830
|
R("div", v1, [
|
|
5831
|
-
|
|
5831
|
+
H(r.$slots, "card-content", {}, () => [
|
|
5832
5832
|
(h(), D(De, null, Be(3, (l) => K(ya, {
|
|
5833
5833
|
key: l,
|
|
5834
5834
|
width: "100"
|
|
@@ -5837,7 +5837,7 @@ const Ym = ["aria-labelledby", "x-placement"], Fm = ["tabindex"], zm = {
|
|
|
5837
5837
|
], !0)
|
|
5838
5838
|
]),
|
|
5839
5839
|
R("div", p1, [
|
|
5840
|
-
|
|
5840
|
+
H(r.$slots, "card-footer", {}, () => [
|
|
5841
5841
|
(h(), D(De, null, Be(2, (l) => K(ya, {
|
|
5842
5842
|
key: l,
|
|
5843
5843
|
height: "2",
|
|
@@ -5870,7 +5870,7 @@ const Ym = ["aria-labelledby", "x-placement"], Fm = ["tabindex"], zm = {
|
|
|
5870
5870
|
key: r,
|
|
5871
5871
|
class: "skeleton-table-row"
|
|
5872
5872
|
}, [
|
|
5873
|
-
|
|
5873
|
+
H(a.$slots, "default", {}, () => [
|
|
5874
5874
|
(h(!0), D(De, null, Be(e.columns, (i) => (h(), D("div", {
|
|
5875
5875
|
key: i,
|
|
5876
5876
|
class: "skeleton-cell-container"
|
|
@@ -6061,13 +6061,13 @@ const Ym = ["aria-labelledby", "x-placement"], Fm = ["tabindex"], zm = {
|
|
|
6061
6061
|
"max-width": e.cardMaxWidth
|
|
6062
6062
|
}, {
|
|
6063
6063
|
"card-header": O(() => [
|
|
6064
|
-
|
|
6064
|
+
H(n.$slots, "card-header")
|
|
6065
6065
|
]),
|
|
6066
6066
|
"card-content": O(() => [
|
|
6067
|
-
|
|
6067
|
+
H(n.$slots, "card-content")
|
|
6068
6068
|
]),
|
|
6069
6069
|
"card-footer": O(() => [
|
|
6070
|
-
|
|
6070
|
+
H(n.$slots, "card-footer")
|
|
6071
6071
|
]),
|
|
6072
6072
|
_: 3
|
|
6073
6073
|
}, 8, ["card-count", "max-width"])) : e.type === "table" ? (h(), G(b1, {
|
|
@@ -6076,7 +6076,7 @@ const Ym = ["aria-labelledby", "x-placement"], Fm = ["tabindex"], zm = {
|
|
|
6076
6076
|
rows: e.tableRows
|
|
6077
6077
|
}, {
|
|
6078
6078
|
default: O(() => [
|
|
6079
|
-
|
|
6079
|
+
H(n.$slots, "default")
|
|
6080
6080
|
]),
|
|
6081
6081
|
_: 3
|
|
6082
6082
|
}, 8, ["columns", "rows"])) : e.type === "form" ? (h(), G(C1, { key: 2 })) : e.type === "fullscreen-kong" ? (h(), G(A1, {
|
|
@@ -6162,7 +6162,7 @@ const Ym = ["aria-labelledby", "x-placement"], Fm = ["tabindex"], zm = {
|
|
|
6162
6162
|
}, [
|
|
6163
6163
|
R("div", P1, [
|
|
6164
6164
|
R("div", N1, [
|
|
6165
|
-
|
|
6165
|
+
H(r.$slots, "icon", {}, () => [
|
|
6166
6166
|
(h(), G(Fe(a.value), {
|
|
6167
6167
|
color: n.value,
|
|
6168
6168
|
decorative: "",
|
|
@@ -6171,18 +6171,18 @@ const Ym = ["aria-labelledby", "x-placement"], Fm = ["tabindex"], zm = {
|
|
|
6171
6171
|
], !0)
|
|
6172
6172
|
]),
|
|
6173
6173
|
e.title || r.$slots.title ? (h(), D("div", B1, [
|
|
6174
|
-
|
|
6174
|
+
H(r.$slots, "title", {}, () => [
|
|
6175
6175
|
de(ne(e.title), 1)
|
|
6176
6176
|
], !0)
|
|
6177
6177
|
])) : F("", !0),
|
|
6178
6178
|
e.message || r.$slots.default ? (h(), D("div", L1, [
|
|
6179
|
-
|
|
6179
|
+
H(r.$slots, "default", {}, () => [
|
|
6180
6180
|
R("p", null, ne(e.message), 1)
|
|
6181
6181
|
], !0)
|
|
6182
6182
|
])) : F("", !0)
|
|
6183
6183
|
]),
|
|
6184
6184
|
e.actionButtonVisible && e.actionButtonText || r.$slots.action ? (h(), D("div", _1, [
|
|
6185
|
-
|
|
6185
|
+
H(r.$slots, "action", {}, () => [
|
|
6186
6186
|
K(ct, {
|
|
6187
6187
|
disabled: e.actionButtonDisabled,
|
|
6188
6188
|
type: "button",
|
|
@@ -6317,7 +6317,7 @@ const Ym = ["aria-labelledby", "x-placement"], Fm = ["tabindex"], zm = {
|
|
|
6317
6317
|
}), {
|
|
6318
6318
|
default: O(() => [
|
|
6319
6319
|
R("span", Y1, [
|
|
6320
|
-
|
|
6320
|
+
H(f.$slots, "default", {}, () => [
|
|
6321
6321
|
de(ne(s.value), 1)
|
|
6322
6322
|
], !0)
|
|
6323
6323
|
])
|
|
@@ -6435,7 +6435,7 @@ const Ym = ["aria-labelledby", "x-placement"], Fm = ["tabindex"], zm = {
|
|
|
6435
6435
|
}), {
|
|
6436
6436
|
content: O(() => [
|
|
6437
6437
|
R("ul", z1, [
|
|
6438
|
-
|
|
6438
|
+
H(g.$slots, "items", {
|
|
6439
6439
|
closeDropdown: d,
|
|
6440
6440
|
handleSelection: c,
|
|
6441
6441
|
items: e.items
|
|
@@ -6462,7 +6462,7 @@ const Ym = ["aria-labelledby", "x-placement"], Fm = ["tabindex"], zm = {
|
|
|
6462
6462
|
position: e.disabledTooltip ? "bottom" : void 0
|
|
6463
6463
|
}, {
|
|
6464
6464
|
default: O(() => [
|
|
6465
|
-
|
|
6465
|
+
H(g.$slots, "default", {
|
|
6466
6466
|
isOpen: m.value
|
|
6467
6467
|
}, () => [
|
|
6468
6468
|
o.value ? (h(), G(ct, {
|
|
@@ -6640,7 +6640,7 @@ const K1 = {
|
|
|
6640
6640
|
value: ee,
|
|
6641
6641
|
selected: ee === o.value
|
|
6642
6642
|
})), d = b(() => `${o.value} ${o.value === 1 ? "item per page" : " items per page"}`), f = E(n.neighbors), v = E(3), g = async () => (await ht(), i.value ? i.value.scrollWidth > i.value.clientWidth : !1), k = async () => {
|
|
6643
|
-
await g() && (f.value > 1 || v.value > 1) && (f.value > 1 ? f.value-- : v.value > 1 && v.value--, q.value = S(l.value, u.value, V.value,
|
|
6643
|
+
await g() && (f.value > 1 || v.value > 1) && (f.value > 1 ? f.value-- : v.value > 1 && v.value--, q.value = S(l.value, u.value, V.value, W.value));
|
|
6644
6644
|
}, S = (ee, _, se, oe) => {
|
|
6645
6645
|
if (n.disablePageJump)
|
|
6646
6646
|
return [];
|
|
@@ -6652,11 +6652,11 @@ const K1 = {
|
|
|
6652
6652
|
}, m = E(l.value === 1), y = E(l.value === u.value), w = b(() => (l.value - 1) * o.value + 1), C = b(() => {
|
|
6653
6653
|
const ee = w.value - 1 + o.value;
|
|
6654
6654
|
return ee > n.totalCount ? n.totalCount : ee;
|
|
6655
|
-
}), $ = b(() => `${w.value} to ${C.value}`), M = b(() => ` of ${n.totalCount}`), P = b(() => n.currentPage ? n.currentPage : l.value), Y = b(() => 5 + 2 * f.value), V = E(P.value >= f.value + (v.value + 1) && u.value > Y.value),
|
|
6655
|
+
}), $ = b(() => `${w.value} to ${C.value}`), M = b(() => ` of ${n.totalCount}`), P = b(() => n.currentPage ? n.currentPage : l.value), Y = b(() => 5 + 2 * f.value), V = E(P.value >= f.value + (v.value + 1) && u.value > Y.value), W = E(u.value > v.value + 2 + 2 * f.value), q = E(S(
|
|
6656
6656
|
P.value,
|
|
6657
6657
|
u.value,
|
|
6658
6658
|
V.value,
|
|
6659
|
-
|
|
6659
|
+
W.value
|
|
6660
6660
|
)), B = () => {
|
|
6661
6661
|
l.value++, N();
|
|
6662
6662
|
}, x = () => {
|
|
@@ -6665,7 +6665,7 @@ const K1 = {
|
|
|
6665
6665
|
l.value = ee, N();
|
|
6666
6666
|
}, N = () => {
|
|
6667
6667
|
const ee = (l.value - 1) * o.value + o.value;
|
|
6668
|
-
y.value = ee >= n.totalCount, m.value = l.value === 1, u.value <= Y.value ? (V.value = !1,
|
|
6668
|
+
y.value = ee >= n.totalCount, m.value = l.value === 1, u.value <= Y.value ? (V.value = !1, W.value = !1) : (V.value = l.value >= f.value + (v.value + 1), W.value = l.value <= u.value - f.value - v.value), q.value = S(l.value, u.value, V.value, W.value), r("pageChange", {
|
|
6669
6669
|
page: l.value,
|
|
6670
6670
|
pageCount: u.value,
|
|
6671
6671
|
firstItem: w.value,
|
|
@@ -6685,11 +6685,11 @@ const K1 = {
|
|
|
6685
6685
|
return ve(() => n.currentPage, (ee, _) => {
|
|
6686
6686
|
ee !== _ && I(ee);
|
|
6687
6687
|
}), ve(u, (ee, _) => {
|
|
6688
|
-
ee !== _ && (y.value = l.value === ee,
|
|
6688
|
+
ee !== _ && (y.value = l.value === ee, W.value = ee > v.value + 2 + 2 * f.value, q.value = S(
|
|
6689
6689
|
P.value,
|
|
6690
6690
|
ee,
|
|
6691
6691
|
!1,
|
|
6692
|
-
|
|
6692
|
+
W.value
|
|
6693
6693
|
));
|
|
6694
6694
|
}), ve(q, () => {
|
|
6695
6695
|
!n.disablePageJump && !n.offset && k();
|
|
@@ -6757,8 +6757,8 @@ const K1 = {
|
|
|
6757
6757
|
onClick: (oe) => I(se)
|
|
6758
6758
|
}, ne(se), 11, Z1)
|
|
6759
6759
|
]))), 128)),
|
|
6760
|
-
!e.disablePageJump &&
|
|
6761
|
-
!e.disablePageJump &&
|
|
6760
|
+
!e.disablePageJump && W.value ? (h(), D("li", X1, " ... ")) : F("", !0),
|
|
6761
|
+
!e.disablePageJump && W.value ? (h(), D("li", J1, [
|
|
6762
6762
|
R("button", {
|
|
6763
6763
|
"aria-label": "Go to the last page",
|
|
6764
6764
|
class: "pagination-button",
|
|
@@ -6856,21 +6856,21 @@ const K1 = {
|
|
|
6856
6856
|
onClick: i[0] || (i[0] = (s) => n(s, e.item))
|
|
6857
6857
|
}, {
|
|
6858
6858
|
title: O(() => [
|
|
6859
|
-
|
|
6859
|
+
H(r.$slots, "card-title", {}, () => [
|
|
6860
6860
|
de(ne(e.item ? e.item.title : ""), 1)
|
|
6861
6861
|
], !0)
|
|
6862
6862
|
]),
|
|
6863
6863
|
actions: O(() => [
|
|
6864
|
-
|
|
6864
|
+
H(r.$slots, "card-actions", {}, void 0, !0)
|
|
6865
6865
|
]),
|
|
6866
6866
|
footer: O(() => [
|
|
6867
|
-
|
|
6867
|
+
H(r.$slots, "card-footer", {}, void 0, !0)
|
|
6868
6868
|
]),
|
|
6869
6869
|
default: O(() => [
|
|
6870
6870
|
R("div", {
|
|
6871
6871
|
class: ue({ "multi-line-truncate": e.truncate })
|
|
6872
6872
|
}, [
|
|
6873
|
-
|
|
6873
|
+
H(r.$slots, "card-body", {}, () => [
|
|
6874
6874
|
de(ne(e.item ? e.item.description : ""), 1)
|
|
6875
6875
|
], !0)
|
|
6876
6876
|
], 2)
|
|
@@ -7084,15 +7084,15 @@ const K1 = {
|
|
|
7084
7084
|
offset: null
|
|
7085
7085
|
}, P = b(() => (Ce.value || i.loading || et.value) && !i.error), Y = b(() => !P.value && c.value && !c.value.length), V = b(() => ({
|
|
7086
7086
|
pageSize: g.value
|
|
7087
|
-
})),
|
|
7088
|
-
var me,
|
|
7087
|
+
})), W = E(!0), q = async () => {
|
|
7088
|
+
var me, U;
|
|
7089
7089
|
const Q = i.searchInput, te = await i.fetcher({
|
|
7090
7090
|
query: Q || f.value,
|
|
7091
7091
|
pageSize: g.value,
|
|
7092
7092
|
page: v.value,
|
|
7093
7093
|
offset: k.value
|
|
7094
7094
|
});
|
|
7095
|
-
return c.value = te.data, d.value = i.paginationTotalItems || te.total || ((me = te.data) == null ? void 0 : me.length), i.paginationOffset && ((
|
|
7095
|
+
return c.value = te.data, d.value = i.paginationTotalItems || te.total || ((me = te.data) == null ? void 0 : me.length), i.paginationOffset && ((U = te.pagination) != null && U.offset ? (y.value = te.pagination.offset, S.value[v.value] || S.value.push(te.pagination.offset)) : y.value = null, w.value = te.pagination && "hasNextPage" in te.pagination ? te.pagination.hasNextPage : !0), c.value.length === 0 && v.value > 1 && (v.value = 1, S.value = [null], k.value = null), W.value = !1, te;
|
|
7096
7096
|
}, B = () => {
|
|
7097
7097
|
const Q = {
|
|
7098
7098
|
...M,
|
|
@@ -7155,8 +7155,8 @@ const K1 = {
|
|
|
7155
7155
|
}, { immediate: !0 });
|
|
7156
7156
|
const et = E(!1);
|
|
7157
7157
|
return ve([I, v, g], async (Q, te) => {
|
|
7158
|
-
const me = te == null ? void 0 : te[0],
|
|
7159
|
-
|
|
7158
|
+
const me = te == null ? void 0 : te[0], U = Q[0], fe = Q[1];
|
|
7159
|
+
U !== me && fe !== 1 && (v.value = 1, S.value = [null], k.value = null), C.value && !W.value && (et.value = !0, await _(), et.value = !1);
|
|
7160
7160
|
}, { deep: !0, immediate: !0 }), ve(V, (Q) => {
|
|
7161
7161
|
s("update:catalog-preferences", Q);
|
|
7162
7162
|
}), ot(() => {
|
|
@@ -7175,7 +7175,7 @@ const K1 = {
|
|
|
7175
7175
|
_: 1
|
|
7176
7176
|
})) : F("", !0),
|
|
7177
7177
|
$.value ? (h(), D("div", oy, [
|
|
7178
|
-
|
|
7178
|
+
H(Q.$slots, "toolbar", { state: Ee.value }, void 0, !0)
|
|
7179
7179
|
])) : F("", !0),
|
|
7180
7180
|
P.value ? (h(), G($o, {
|
|
7181
7181
|
key: 2,
|
|
@@ -7184,7 +7184,7 @@ const K1 = {
|
|
|
7184
7184
|
"data-testid": "catalog-skeleton-loader",
|
|
7185
7185
|
type: "card"
|
|
7186
7186
|
})) : e.error ? (h(), D("div", sy, [
|
|
7187
|
-
|
|
7187
|
+
H(Q.$slots, "error-state", {}, () => [
|
|
7188
7188
|
K(An, {
|
|
7189
7189
|
"icon-variant": "error",
|
|
7190
7190
|
message: e.errorStateMessage,
|
|
@@ -7196,7 +7196,7 @@ const K1 = {
|
|
|
7196
7196
|
K(ct, {
|
|
7197
7197
|
"data-testid": Qe(e.errorStateActionMessage),
|
|
7198
7198
|
to: e.errorStateActionRoute ? e.errorStateActionRoute : void 0,
|
|
7199
|
-
onClick: te[0] || (te[0] = (
|
|
7199
|
+
onClick: te[0] || (te[0] = (U) => Q.$emit("error-action-click"))
|
|
7200
7200
|
}, {
|
|
7201
7201
|
default: O(() => [
|
|
7202
7202
|
de(ne(e.errorStateActionMessage), 1)
|
|
@@ -7209,7 +7209,7 @@ const K1 = {
|
|
|
7209
7209
|
]), 1032, ["message", "title"])
|
|
7210
7210
|
], !0)
|
|
7211
7211
|
])) : Y.value ? (h(), D("div", ly, [
|
|
7212
|
-
|
|
7212
|
+
H(Q.$slots, "empty-state", {}, () => [
|
|
7213
7213
|
K(An, {
|
|
7214
7214
|
"icon-variant": e.emptyStateIconVariant,
|
|
7215
7215
|
message: e.emptyStateMessage,
|
|
@@ -7222,10 +7222,10 @@ const K1 = {
|
|
|
7222
7222
|
appearance: e.searchInput ? "tertiary" : "primary",
|
|
7223
7223
|
"data-testid": Qe(e.emptyStateActionMessage),
|
|
7224
7224
|
to: e.emptyStateActionRoute ? e.emptyStateActionRoute : void 0,
|
|
7225
|
-
onClick: te[1] || (te[1] = (
|
|
7225
|
+
onClick: te[1] || (te[1] = (U) => Q.$emit("empty-state-action-click"))
|
|
7226
7226
|
}, {
|
|
7227
7227
|
default: O(() => [
|
|
7228
|
-
|
|
7228
|
+
H(Q.$slots, "empty-state-action-icon", {}, void 0, !0),
|
|
7229
7229
|
de(" " + ne(e.emptyStateActionMessage), 1)
|
|
7230
7230
|
]),
|
|
7231
7231
|
_: 3
|
|
@@ -7239,26 +7239,26 @@ const K1 = {
|
|
|
7239
7239
|
key: 5,
|
|
7240
7240
|
class: ue(["catalog-page", `card-${e.cardSize}`])
|
|
7241
7241
|
}, [
|
|
7242
|
-
|
|
7243
|
-
(h(!0), D(De, null, Be(c.value, (
|
|
7244
|
-
key:
|
|
7242
|
+
H(Q.$slots, "body", { data: c.value }, () => [
|
|
7243
|
+
(h(!0), D(De, null, Be(c.value, (U, fe) => (h(), G(Hf, {
|
|
7244
|
+
key: U.key ? U.key : `catalog-${T(o)}-item-${fe}`,
|
|
7245
7245
|
class: "catalog-item",
|
|
7246
|
-
"data-testid":
|
|
7247
|
-
item:
|
|
7246
|
+
"data-testid": U.id ? U.id : `catalog-item-${fe}`,
|
|
7247
|
+
item: U,
|
|
7248
7248
|
truncate: e.truncateDescription,
|
|
7249
|
-
onClick: (we) => Q.$emit("card-click",
|
|
7249
|
+
onClick: (we) => Q.$emit("card-click", U)
|
|
7250
7250
|
}, {
|
|
7251
7251
|
"card-title": O(() => [
|
|
7252
|
-
|
|
7253
|
-
de(ne(
|
|
7252
|
+
H(Q.$slots, "card-title", { item: U }, () => [
|
|
7253
|
+
de(ne(U.title), 1)
|
|
7254
7254
|
], !0)
|
|
7255
7255
|
]),
|
|
7256
7256
|
"card-actions": O(() => [
|
|
7257
|
-
|
|
7257
|
+
H(Q.$slots, "card-actions", { item: U }, void 0, !0)
|
|
7258
7258
|
]),
|
|
7259
7259
|
"card-body": O(() => [
|
|
7260
|
-
|
|
7261
|
-
de(ne(
|
|
7260
|
+
H(Q.$slots, "card-body", { item: U }, () => [
|
|
7261
|
+
de(ne(U.description), 1)
|
|
7262
7262
|
], !0)
|
|
7263
7263
|
]),
|
|
7264
7264
|
_: 2
|
|
@@ -7319,13 +7319,13 @@ const K1 = {
|
|
|
7319
7319
|
return h(), D("label", {
|
|
7320
7320
|
class: ue(["k-label", { required: e.required }])
|
|
7321
7321
|
}, [
|
|
7322
|
-
|
|
7322
|
+
H(i.$slots, "default", {}, void 0, !0),
|
|
7323
7323
|
n.value ? (h(), G(ka, He({ key: 0 }, e.tooltipAttributes, {
|
|
7324
7324
|
class: "label-tooltip",
|
|
7325
7325
|
"tooltip-id": T(r)
|
|
7326
7326
|
}), {
|
|
7327
7327
|
content: O(() => [
|
|
7328
|
-
|
|
7328
|
+
H(i.$slots, "tooltip", {}, () => [
|
|
7329
7329
|
de(ne(e.info || e.help), 1)
|
|
7330
7330
|
], !0)
|
|
7331
7331
|
]),
|
|
@@ -7423,7 +7423,7 @@ const K1 = {
|
|
|
7423
7423
|
R("div", vy, [
|
|
7424
7424
|
l.value ? ut((h(), G(hn, He({ key: 0 }, e.labelAttributes, { class: "checkbox-label" }), mt({
|
|
7425
7425
|
default: O(() => [
|
|
7426
|
-
|
|
7426
|
+
H(k.$slots, "default", {}, () => [
|
|
7427
7427
|
de(ne(e.label), 1)
|
|
7428
7428
|
], !0)
|
|
7429
7429
|
]),
|
|
@@ -7432,7 +7432,7 @@ const K1 = {
|
|
|
7432
7432
|
c.value ? {
|
|
7433
7433
|
name: "tooltip",
|
|
7434
7434
|
fn: O(() => [
|
|
7435
|
-
|
|
7435
|
+
H(k.$slots, "tooltip", {}, void 0, !0)
|
|
7436
7436
|
]),
|
|
7437
7437
|
key: "0"
|
|
7438
7438
|
} : void 0
|
|
@@ -7440,7 +7440,7 @@ const K1 = {
|
|
|
7440
7440
|
[m, { for: T(s) }]
|
|
7441
7441
|
]) : F("", !0),
|
|
7442
7442
|
u.value ? (h(), D("div", py, [
|
|
7443
|
-
|
|
7443
|
+
H(k.$slots, "description", {}, () => [
|
|
7444
7444
|
R("p", null, ne(e.description), 1)
|
|
7445
7445
|
], !0)
|
|
7446
7446
|
])) : F("", !0)
|
|
@@ -7507,7 +7507,7 @@ const K1 = {
|
|
|
7507
7507
|
setup(e, { emit: t }) {
|
|
7508
7508
|
Rt((x) => ({
|
|
7509
7509
|
90849794: V.value,
|
|
7510
|
-
a9f08fd6:
|
|
7510
|
+
a9f08fd6: W.value
|
|
7511
7511
|
}));
|
|
7512
7512
|
const a = e, n = t, r = E(""), i = E(!1), s = E(0), { stripRequiredLabel: l } = xt(), o = Mt(), u = Kt(), c = b(() => (u == null ? void 0 : u.required) !== void 0 && String(u == null ? void 0 : u.required) !== "false"), d = u.id ? String(u.id) : yt(), f = yt(), v = b(() => l(a.label, c.value)), g = b(() => {
|
|
7513
7513
|
var x;
|
|
@@ -7551,10 +7551,10 @@ const K1 = {
|
|
|
7551
7551
|
ve(() => a.error, (x, I) => {
|
|
7552
7552
|
x !== I && (s.value += 1);
|
|
7553
7553
|
});
|
|
7554
|
-
const P = E(null), Y = E(null), V = E(Zt),
|
|
7554
|
+
const P = E(null), Y = E(null), V = E(Zt), W = E(Zt), q = E(!1), B = b(() => a.type === "password" && q.value ? "text" : a.type);
|
|
7555
7555
|
return ot(async () => {
|
|
7556
7556
|
var x, I;
|
|
7557
|
-
await ht(), (x = P.value) != null && x.offsetWidth && (V.value = P.value.offsetWidth + "px"), (I = Y.value) != null && I.offsetWidth && (
|
|
7557
|
+
await ht(), (x = P.value) != null && x.offsetWidth && (V.value = P.value.offsetWidth + "px"), (I = Y.value) != null && I.offsetWidth && (W.value = Y.value.offsetWidth + "px");
|
|
7558
7558
|
}), (x, I) => {
|
|
7559
7559
|
const N = Yt("bind-once");
|
|
7560
7560
|
return h(), D("div", {
|
|
@@ -7569,7 +7569,7 @@ const K1 = {
|
|
|
7569
7569
|
g.value ? {
|
|
7570
7570
|
name: "tooltip",
|
|
7571
7571
|
fn: O(() => [
|
|
7572
|
-
|
|
7572
|
+
H(x.$slots, "label-tooltip", {}, void 0, !0)
|
|
7573
7573
|
]),
|
|
7574
7574
|
key: "0"
|
|
7575
7575
|
} : void 0
|
|
@@ -7585,7 +7585,7 @@ const K1 = {
|
|
|
7585
7585
|
ref: P,
|
|
7586
7586
|
class: "before-content-wrapper"
|
|
7587
7587
|
}, [
|
|
7588
|
-
|
|
7588
|
+
H(x.$slots, "before", {}, void 0, !0)
|
|
7589
7589
|
], 512)) : F("", !0),
|
|
7590
7590
|
ut(R("input", He({
|
|
7591
7591
|
"aria-invalid": e.error || e.hasError || m.value ? "true" : void 0,
|
|
@@ -7620,7 +7620,7 @@ const K1 = {
|
|
|
7620
7620
|
key: 1,
|
|
7621
7621
|
decorative: ""
|
|
7622
7622
|
}))
|
|
7623
|
-
], 40, yy)) :
|
|
7623
|
+
], 40, yy)) : H(x.$slots, "after", { key: 1 }, void 0, !0)
|
|
7624
7624
|
], 512)) : F("", !0)
|
|
7625
7625
|
], 2),
|
|
7626
7626
|
K(ia, {
|
|
@@ -7731,7 +7731,7 @@ const Dy = {
|
|
|
7731
7731
|
onClick: r
|
|
7732
7732
|
}), {
|
|
7733
7733
|
default: O(() => [
|
|
7734
|
-
|
|
7734
|
+
H(i.$slots, "default", {}, void 0, !0)
|
|
7735
7735
|
]),
|
|
7736
7736
|
_: 3
|
|
7737
7737
|
}, 16, ["class"])
|
|
@@ -7886,19 +7886,19 @@ const Dy = {
|
|
|
7886
7886
|
`).filter((te, me) => m.value.includes(me + 1)).map((te) => {
|
|
7887
7887
|
try {
|
|
7888
7888
|
const me = new RegExp(k.value, "gi");
|
|
7889
|
-
return te.replace(me, (
|
|
7889
|
+
return te.replace(me, (U) => `<span class="matched-term">${U}</span>`);
|
|
7890
7890
|
} catch {
|
|
7891
7891
|
return te;
|
|
7892
7892
|
}
|
|
7893
7893
|
}).join(`
|
|
7894
7894
|
`);
|
|
7895
|
-
}), V = b(() => !s.singleLine && s.searchable),
|
|
7896
|
-
var te, me,
|
|
7897
|
-
return (fe = (
|
|
7895
|
+
}), V = b(() => !s.singleLine && s.searchable), W = (Q) => {
|
|
7896
|
+
var te, me, U, fe;
|
|
7897
|
+
return (fe = (U = (me = (te = Q == null ? void 0 : Q.replaceAll("&", "&")) == null ? void 0 : te.replaceAll("<", "<")) == null ? void 0 : me.replaceAll(">", ">")) == null ? void 0 : U.replaceAll('"', """)) == null ? void 0 : fe.replaceAll("'", "'");
|
|
7898
7898
|
}, q = b(() => {
|
|
7899
7899
|
var Q;
|
|
7900
|
-
return s.singleLine ? (Q =
|
|
7901
|
-
`, "") :
|
|
7900
|
+
return s.singleLine ? (Q = W(s.code)) == null ? void 0 : Q.replaceAll(`
|
|
7901
|
+
`, "") : W(s.code);
|
|
7902
7902
|
}), B = b(() => a(s.maxHeight));
|
|
7903
7903
|
ve(() => s.code, async function() {
|
|
7904
7904
|
await ht(), j(), se();
|
|
@@ -8007,27 +8007,27 @@ const Dy = {
|
|
|
8007
8007
|
function ke(Q, te) {
|
|
8008
8008
|
var fe;
|
|
8009
8009
|
const me = [];
|
|
8010
|
-
let
|
|
8011
|
-
for (;
|
|
8012
|
-
const we = Q.indexOf(te,
|
|
8010
|
+
let U = 0;
|
|
8011
|
+
for (; U < Q.length; ) {
|
|
8012
|
+
const we = Q.indexOf(te, U);
|
|
8013
8013
|
if (we === -1)
|
|
8014
8014
|
break;
|
|
8015
8015
|
const Ie = (fe = Q.substring(0, we)) == null ? void 0 : fe.split(`
|
|
8016
8016
|
`).length;
|
|
8017
|
-
me.push(Ie),
|
|
8017
|
+
me.push(Ie), U = we + 1;
|
|
8018
8018
|
}
|
|
8019
8019
|
return me;
|
|
8020
8020
|
}
|
|
8021
8021
|
function be(Q, te) {
|
|
8022
8022
|
var fe;
|
|
8023
|
-
const me = Q.matchAll(new RegExp(te, "g")),
|
|
8023
|
+
const me = Q.matchAll(new RegExp(te, "g")), U = [];
|
|
8024
8024
|
for (const we of Array.from(me))
|
|
8025
8025
|
if (we.index !== void 0) {
|
|
8026
8026
|
const Ie = (fe = Q.substring(0, we.index)) == null ? void 0 : fe.split(`
|
|
8027
8027
|
`).length;
|
|
8028
|
-
|
|
8028
|
+
U.push(Ie);
|
|
8029
8029
|
}
|
|
8030
|
-
return
|
|
8030
|
+
return U;
|
|
8031
8031
|
}
|
|
8032
8032
|
function Ce() {
|
|
8033
8033
|
k.value = "", _();
|
|
@@ -8279,7 +8279,7 @@ const Dy = {
|
|
|
8279
8279
|
]),
|
|
8280
8280
|
_: 1
|
|
8281
8281
|
}, 8, ["aria-label", "copy-tooltip", "theme"])) : F("", !0),
|
|
8282
|
-
|
|
8282
|
+
H(Q.$slots, "secondary-actions", {}, void 0, !0)
|
|
8283
8283
|
])) : F("", !0)
|
|
8284
8284
|
])
|
|
8285
8285
|
], 10, Ty));
|
|
@@ -8352,14 +8352,14 @@ const Dy = {
|
|
|
8352
8352
|
"data-testid": "collapse-title"
|
|
8353
8353
|
}, {
|
|
8354
8354
|
default: O(() => [
|
|
8355
|
-
|
|
8355
|
+
H(v.$slots, "title", {}, () => [
|
|
8356
8356
|
de(ne(e.title), 1)
|
|
8357
8357
|
], !0)
|
|
8358
8358
|
]),
|
|
8359
8359
|
_: 3
|
|
8360
8360
|
})) : F("", !0),
|
|
8361
8361
|
R("div", Wy, [
|
|
8362
|
-
|
|
8362
|
+
H(v.$slots, "trigger", {
|
|
8363
8363
|
isCollapsed: d.value,
|
|
8364
8364
|
toggle: f
|
|
8365
8365
|
}, () => [
|
|
@@ -8371,7 +8371,7 @@ const Dy = {
|
|
|
8371
8371
|
type: "button",
|
|
8372
8372
|
onClick: g[0] || (g[0] = qe((S) => f(), ["prevent", "stop"]))
|
|
8373
8373
|
}, [
|
|
8374
|
-
|
|
8374
|
+
H(v.$slots, "trigger-content", {}, () => [
|
|
8375
8375
|
K(T(Sf), {
|
|
8376
8376
|
class: ue(["collapse-trigger-icon", { "collapse-expanded": !d.value }]),
|
|
8377
8377
|
"data-testid": "collapse-trigger-icon",
|
|
@@ -8387,12 +8387,12 @@ const Dy = {
|
|
|
8387
8387
|
])
|
|
8388
8388
|
], 2),
|
|
8389
8389
|
u.value ? (h(), D("div", Vy, [
|
|
8390
|
-
|
|
8390
|
+
H(v.$slots, "visible-content", {}, void 0, !0)
|
|
8391
8391
|
])) : F("", !0),
|
|
8392
8392
|
K(ia, { name: "kongponents-fade-transition" }, {
|
|
8393
8393
|
default: O(() => [
|
|
8394
8394
|
ut((h(), D("div", jy, [
|
|
8395
|
-
|
|
8395
|
+
H(v.$slots, "default", {}, void 0, !0)
|
|
8396
8396
|
])), [
|
|
8397
8397
|
[Cl, !d.value],
|
|
8398
8398
|
[k, { id: T(r) }]
|
|
@@ -9635,7 +9635,7 @@ function Ho(e, t, a) {
|
|
|
9635
9635
|
weekStartsOn: $,
|
|
9636
9636
|
locale: w,
|
|
9637
9637
|
_originalDate: M
|
|
9638
|
-
},
|
|
9638
|
+
}, W = m.match(Xb).map(function(q) {
|
|
9639
9639
|
var B = q[0];
|
|
9640
9640
|
if (B === "p" || B === "P") {
|
|
9641
9641
|
var x = vb[B];
|
|
@@ -9655,7 +9655,7 @@ function Ho(e, t, a) {
|
|
|
9655
9655
|
throw new RangeError("Format string contains an unescaped latin alphabet character `" + B + "`");
|
|
9656
9656
|
return q;
|
|
9657
9657
|
}).join("");
|
|
9658
|
-
return
|
|
9658
|
+
return W;
|
|
9659
9659
|
}
|
|
9660
9660
|
function a0(e) {
|
|
9661
9661
|
var t = e.match(Jb);
|
|
@@ -9904,8 +9904,8 @@ var Ll = Bs.exports, Ls = { exports: {} }, _s = { exports: {} };
|
|
|
9904
9904
|
P.setUTCFullYear(C + 1, 0, M), P.setUTCHours(0, 0, 0, 0);
|
|
9905
9905
|
var Y = (0, i.default)(P, c), V = /* @__PURE__ */ new Date(0);
|
|
9906
9906
|
V.setUTCFullYear(C, 0, M), V.setUTCHours(0, 0, 0, 0);
|
|
9907
|
-
var
|
|
9908
|
-
return w.getTime() >= Y.getTime() ? C + 1 : w.getTime() >=
|
|
9907
|
+
var W = (0, i.default)(V, c);
|
|
9908
|
+
return w.getTime() >= Y.getTime() ? C + 1 : w.getTime() >= W.getTime() ? C : C - 1;
|
|
9909
9909
|
}
|
|
9910
9910
|
e.exports = t.default;
|
|
9911
9911
|
})(_s, _s.exports);
|
|
@@ -11175,9 +11175,9 @@ var P0 = Hs.exports;
|
|
|
11175
11175
|
}), t.default = w;
|
|
11176
11176
|
var n = a(r0), r = a(s0), i = a(La), s = a(g0), l = a(m0), o = a(ev), u = si, c = a(Bn), d = a(jt), f = Ln, v = a(P0), g = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, k = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, S = /^'([^]*?)'?$/, m = /''/g, y = /[a-zA-Z]/;
|
|
11177
11177
|
function w($, M, P) {
|
|
11178
|
-
var Y, V,
|
|
11178
|
+
var Y, V, W, q, B, x, I, N, j, ae, J, ee, _, se, oe, ke, be, Ce;
|
|
11179
11179
|
(0, d.default)(2, arguments);
|
|
11180
|
-
var Ee = String(M), Le = (0, f.getDefaultOptions)(), Ye = (Y = (V = P == null ? void 0 : P.locale) !== null && V !== void 0 ? V : Le.locale) !== null && Y !== void 0 ? Y : v.default, We = (0, c.default)((
|
|
11180
|
+
var Ee = String(M), Le = (0, f.getDefaultOptions)(), Ye = (Y = (V = P == null ? void 0 : P.locale) !== null && V !== void 0 ? V : Le.locale) !== null && Y !== void 0 ? Y : v.default, We = (0, c.default)((W = (q = (B = (x = P == null ? void 0 : P.firstWeekContainsDate) !== null && x !== void 0 ? x : P == null || (I = P.locale) === null || I === void 0 || (N = I.options) === null || N === void 0 ? void 0 : N.firstWeekContainsDate) !== null && B !== void 0 ? B : Le.firstWeekContainsDate) !== null && q !== void 0 ? q : (j = Le.locale) === null || j === void 0 || (ae = j.options) === null || ae === void 0 ? void 0 : ae.firstWeekContainsDate) !== null && W !== void 0 ? W : 1);
|
|
11181
11181
|
if (!(We >= 1 && We <= 7))
|
|
11182
11182
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
11183
11183
|
var at = (0, c.default)((J = (ee = (_ = (se = P == null ? void 0 : P.weekStartsOn) !== null && se !== void 0 ? se : P == null || (oe = P.locale) === null || oe === void 0 || (ke = oe.options) === null || ke === void 0 ? void 0 : ke.weekStartsOn) !== null && _ !== void 0 ? _ : Le.weekStartsOn) !== null && ee !== void 0 ? ee : (be = Le.locale) === null || be === void 0 || (Ce = be.options) === null || Ce === void 0 ? void 0 : Ce.weekStartsOn) !== null && J !== void 0 ? J : 0);
|
|
@@ -11198,8 +11198,8 @@ var P0 = Hs.exports;
|
|
|
11198
11198
|
}, Q = Ee.match(k).map(function(te) {
|
|
11199
11199
|
var me = te[0];
|
|
11200
11200
|
if (me === "p" || me === "P") {
|
|
11201
|
-
var
|
|
11202
|
-
return
|
|
11201
|
+
var U = l.default[me];
|
|
11202
|
+
return U(te, Ye.formatLong);
|
|
11203
11203
|
}
|
|
11204
11204
|
return te;
|
|
11205
11205
|
}).join("").match(g).map(function(te) {
|
|
@@ -11208,9 +11208,9 @@ var P0 = Hs.exports;
|
|
|
11208
11208
|
var me = te[0];
|
|
11209
11209
|
if (me === "'")
|
|
11210
11210
|
return C(te);
|
|
11211
|
-
var
|
|
11212
|
-
if (
|
|
11213
|
-
return !(P != null && P.useAdditionalWeekYearTokens) && (0, u.isProtectedWeekYearToken)(te) && (0, u.throwProtectedError)(te, M, String($)), !(P != null && P.useAdditionalDayOfYearTokens) && (0, u.isProtectedDayOfYearToken)(te) && (0, u.throwProtectedError)(te, M, String($)),
|
|
11211
|
+
var U = s.default[me];
|
|
11212
|
+
if (U)
|
|
11213
|
+
return !(P != null && P.useAdditionalWeekYearTokens) && (0, u.isProtectedWeekYearToken)(te) && (0, u.throwProtectedError)(te, M, String($)), !(P != null && P.useAdditionalDayOfYearTokens) && (0, u.isProtectedDayOfYearToken)(te) && (0, u.throwProtectedError)(te, M, String($)), U(Je, te, Ye.localize, et);
|
|
11214
11214
|
if (me.match(y))
|
|
11215
11215
|
throw new RangeError("Format string contains an unescaped latin alphabet character `" + me + "`");
|
|
11216
11216
|
return te;
|
|
@@ -11956,11 +11956,11 @@ function Tc(e) {
|
|
|
11956
11956
|
}
|
|
11957
11957
|
if (r === Jt || (r === Xt || r === pa) && i === Zr) {
|
|
11958
11958
|
w = ha;
|
|
11959
|
-
var
|
|
11959
|
+
var W = d && M === $ && $.visualViewport ? $.visualViewport.width : (
|
|
11960
11960
|
// $FlowFixMe[prop-missing]
|
|
11961
11961
|
M[Y]
|
|
11962
11962
|
);
|
|
11963
|
-
v -=
|
|
11963
|
+
v -= W - n.width, v *= o ? 1 : -1;
|
|
11964
11964
|
}
|
|
11965
11965
|
}
|
|
11966
11966
|
var q = Object.assign({
|
|
@@ -12181,7 +12181,7 @@ function Xr(e, t) {
|
|
|
12181
12181
|
element: w,
|
|
12182
12182
|
strategy: "absolute",
|
|
12183
12183
|
placement: r
|
|
12184
|
-
}), Y = nl(Object.assign({}, w, P)), V = f === Tr ? Y : M,
|
|
12184
|
+
}), Y = nl(Object.assign({}, w, P)), V = f === Tr ? Y : M, W = {
|
|
12185
12185
|
top: $.top - V.top + m.top,
|
|
12186
12186
|
bottom: V.bottom - $.bottom + m.bottom,
|
|
12187
12187
|
left: $.left - V.left + m.left,
|
|
@@ -12189,12 +12189,12 @@ function Xr(e, t) {
|
|
|
12189
12189
|
}, q = e.modifiersData.offset;
|
|
12190
12190
|
if (f === Tr && q) {
|
|
12191
12191
|
var B = q[r];
|
|
12192
|
-
Object.keys(
|
|
12192
|
+
Object.keys(W).forEach(function(x) {
|
|
12193
12193
|
var I = [ha, pa].indexOf(x) >= 0 ? 1 : -1, N = [Xt, pa].indexOf(x) >= 0 ? "y" : "x";
|
|
12194
|
-
|
|
12194
|
+
W[x] += B[N] * I;
|
|
12195
12195
|
});
|
|
12196
12196
|
}
|
|
12197
|
-
return
|
|
12197
|
+
return W;
|
|
12198
12198
|
}
|
|
12199
12199
|
function Vw(e, t) {
|
|
12200
12200
|
t === void 0 && (t = {});
|
|
@@ -12234,8 +12234,8 @@ function Gw(e) {
|
|
|
12234
12234
|
flipVariations: g,
|
|
12235
12235
|
allowedAutoPlacements: k
|
|
12236
12236
|
}) : Ce);
|
|
12237
|
-
}, []), $ = t.rects.reference, M = t.rects.popper, P = /* @__PURE__ */ new Map(), Y = !0, V = C[0],
|
|
12238
|
-
var q = C[
|
|
12237
|
+
}, []), $ = t.rects.reference, M = t.rects.popper, P = /* @__PURE__ */ new Map(), Y = !0, V = C[0], W = 0; W < C.length; W++) {
|
|
12238
|
+
var q = C[W], B = Ma(q), x = ur(q) === or, I = [Xt, pa].indexOf(B) >= 0, N = I ? "width" : "height", j = Xr(t, {
|
|
12239
12239
|
placement: q,
|
|
12240
12240
|
boundary: c,
|
|
12241
12241
|
rootBoundary: d,
|
|
@@ -12371,7 +12371,7 @@ function i2(e) {
|
|
|
12371
12371
|
altBoundary: c
|
|
12372
12372
|
}), m = Ma(t.placement), y = ur(t.placement), w = !y, C = zl(m), $ = r2(C), M = t.modifiersData.popperOffsets, P = t.rects.reference, Y = t.rects.popper, V = typeof k == "function" ? k(Object.assign({}, t.rects, {
|
|
12373
12373
|
placement: t.placement
|
|
12374
|
-
})) : k,
|
|
12374
|
+
})) : k, W = typeof V == "number" ? {
|
|
12375
12375
|
mainAxis: V,
|
|
12376
12376
|
altAxis: V
|
|
12377
12377
|
} : Object.assign({
|
|
@@ -12386,11 +12386,11 @@ function i2(e) {
|
|
|
12386
12386
|
var x, I = C === "y" ? Xt : Jt, N = C === "y" ? pa : ha, j = C === "y" ? "height" : "width", ae = M[C], J = ae + S[I], ee = ae - S[N], _ = v ? -Y[j] / 2 : 0, se = y === or ? P[j] : Y[j], oe = y === or ? -Y[j] : -P[j], ke = t.elements.arrow, be = v && ke ? Fl(ke) : {
|
|
12387
12387
|
width: 0,
|
|
12388
12388
|
height: 0
|
|
12389
|
-
}, Ce = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : lv(), Ee = Ce[I], Le = Ce[N], Ye = zr(0, P[j], be[j]), We = w ? P[j] / 2 - _ - Ye - Ee -
|
|
12389
|
+
}, Ce = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : lv(), Ee = Ce[I], Le = Ce[N], Ye = zr(0, P[j], be[j]), We = w ? P[j] / 2 - _ - Ye - Ee - W.mainAxis : se - Ye - Ee - W.mainAxis, at = w ? -P[j] / 2 + _ + Ye + Le + W.mainAxis : oe + Ye + Le + W.mainAxis, Ve = t.elements.arrow && ui(t.elements.arrow), Qe = Ve ? C === "y" ? Ve.clientTop || 0 : Ve.clientLeft || 0 : 0, Je = (x = q == null ? void 0 : q[C]) != null ? x : 0, et = ae + We - Je - Qe, Q = ae + at - Je, te = zr(v ? Ki(J, et) : J, ae, v ? Dn(ee, Q) : ee);
|
|
12390
12390
|
M[C] = te, B[C] = te - ae;
|
|
12391
12391
|
}
|
|
12392
12392
|
if (l) {
|
|
12393
|
-
var me,
|
|
12393
|
+
var me, U = C === "x" ? Xt : Jt, fe = C === "x" ? pa : ha, we = M[$], Ie = $ === "y" ? "height" : "width", $e = we + S[U], tt = we - S[fe], vt = [Xt, Jt].indexOf(m) !== -1, X = (me = q == null ? void 0 : q[$]) != null ? me : 0, Oe = vt ? $e : we - P[Ie] - Y[Ie] - X + W.altAxis, Pe = vt ? we + P[Ie] + Y[Ie] - X - W.altAxis : tt, je = v && vt ? Mw(Oe, we, Pe) : zr(v ? Oe : $e, we, v ? Pe : tt);
|
|
12394
12394
|
M[$] = je, B[$] = je - we;
|
|
12395
12395
|
}
|
|
12396
12396
|
t.modifiersData[n] = B;
|
|
@@ -12535,8 +12535,8 @@ function h2(e) {
|
|
|
12535
12535
|
c.rects = {
|
|
12536
12536
|
reference: c2(y, ui(w), c.options.strategy === "fixed"),
|
|
12537
12537
|
popper: Fl(w)
|
|
12538
|
-
}, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(
|
|
12539
|
-
return c.modifiersData[
|
|
12538
|
+
}, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(W) {
|
|
12539
|
+
return c.modifiersData[W.name] = Object.assign({}, W.data);
|
|
12540
12540
|
});
|
|
12541
12541
|
for (var C = 0; C < c.orderedModifiers.length; C++) {
|
|
12542
12542
|
if (c.reset === !0) {
|
|
@@ -14213,7 +14213,7 @@ function GE({
|
|
|
14213
14213
|
day: "numeric"
|
|
14214
14214
|
});
|
|
14215
14215
|
let m = t.numDays - d + 1, y = t.numDays - m + 1, w = Math.floor((m - 1) / _t + 1), C = 1, $ = t.numWeeks, M = 1, P = t.month, Y = t.year;
|
|
14216
|
-
const V = /* @__PURE__ */ new Date(),
|
|
14216
|
+
const V = /* @__PURE__ */ new Date(), W = V.getDate(), q = V.getMonth() + 1, B = V.getFullYear();
|
|
14217
14217
|
for (let x = 1; x <= zI; x++) {
|
|
14218
14218
|
for (let I = 1, N = i; I <= _t; I++, N += N === _t ? 1 - _t : 1) {
|
|
14219
14219
|
f && N === s && (m = 1, y = e.numDays, w = Math.floor((m - 1) / _t + 1), C = Math.floor((u - m) / _t + 1), $ = 1, M = c, P = e.month, Y = e.year, f = !1, v = !0);
|
|
@@ -14225,7 +14225,7 @@ function GE({
|
|
|
14225
14225
|
59,
|
|
14226
14226
|
59,
|
|
14227
14227
|
999
|
|
14228
|
-
), ee = j, _ = `${lt(Y, 4)}-${lt(P, 2)}-${lt(m, 2)}`, se = I, oe = _t - I, ke = o[x - 1], be = l[x - 1], Ce = m ===
|
|
14228
|
+
), ee = j, _ = `${lt(Y, 4)}-${lt(P, 2)}-${lt(m, 2)}`, se = I, oe = _t - I, ke = o[x - 1], be = l[x - 1], Ce = m === W && P === q && Y === B, Ee = v && m === 1, Le = v && m === u, Ye = x === 1, We = x === c, at = I === 1, Ve = I === _t, Qe = dp(Y, P, m);
|
|
14229
14229
|
r.push({
|
|
14230
14230
|
locale: n,
|
|
14231
14231
|
id: _,
|
|
@@ -16082,7 +16082,7 @@ function SO(e, { slots: t, emit: a }) {
|
|
|
16082
16082
|
maxDate: C,
|
|
16083
16083
|
disabledAttribute: $,
|
|
16084
16084
|
disabledDates: M
|
|
16085
|
-
} = wO(e), P = b(() => e.rows * e.columns), Y = b(() => e.step || P.value), V = b(() => jv(c.value) ?? null),
|
|
16085
|
+
} = wO(e), P = b(() => e.rows * e.columns), Y = b(() => e.step || P.value), V = b(() => jv(c.value) ?? null), W = b(() => Xn(c.value) ?? null), q = b(
|
|
16086
16086
|
() => e.minPage || (w.value ? oe(w.value) : null)
|
|
16087
16087
|
), B = b(
|
|
16088
16088
|
() => e.maxPage || (C.value ? oe(C.value) : null)
|
|
@@ -16099,8 +16099,8 @@ function SO(e, { slots: t, emit: a }) {
|
|
|
16099
16099
|
Z.isFocusable = Z.inMonth && Z.day === i.value;
|
|
16100
16100
|
}, Ce = (Z, p) => {
|
|
16101
16101
|
for (const A of Z)
|
|
16102
|
-
for (const
|
|
16103
|
-
if (p(
|
|
16102
|
+
for (const z of A.days)
|
|
16103
|
+
if (p(z) === !1)
|
|
16104
16104
|
return;
|
|
16105
16105
|
}, Ee = b(
|
|
16106
16106
|
() => c.value.reduce((Z, p) => (Z.push(...p.viewDays), Z), [])
|
|
@@ -16135,7 +16135,7 @@ function SO(e, { slots: t, emit: a }) {
|
|
|
16135
16135
|
const A = Le.value.find((le) => le.pinPage) || Le.value[0];
|
|
16136
16136
|
if (!A || !A.hasRanges)
|
|
16137
16137
|
return null;
|
|
16138
|
-
const [
|
|
16138
|
+
const [z] = A.ranges, L = ((Z = z.start) == null ? void 0 : Z.date) || ((p = z.end) == null ? void 0 : p.date);
|
|
16139
16139
|
return L ? oe(L) : null;
|
|
16140
16140
|
}, Je = () => {
|
|
16141
16141
|
if (Ta(V.value))
|
|
@@ -16143,7 +16143,7 @@ function SO(e, { slots: t, emit: a }) {
|
|
|
16143
16143
|
const Z = Qe();
|
|
16144
16144
|
return Ta(Z) ? Z : oe(/* @__PURE__ */ new Date());
|
|
16145
16145
|
}, et = (Z, p = {}) => {
|
|
16146
|
-
const { view: A = u.value, position:
|
|
16146
|
+
const { view: A = u.value, position: z = 1, force: L } = p, le = z > 0 ? 1 - z : -(P.value + z);
|
|
16147
16147
|
let ge = se(Z, le, A), xe = se(ge, P.value - 1, A);
|
|
16148
16148
|
return L || (cl(ge, q.value) ? ge = q.value : eo(xe, B.value) && (ge = se(B.value, 1 - P.value)), xe = se(ge, P.value - 1)), { fromPage: ge, toPage: xe };
|
|
16149
16149
|
}, Q = (Z, p, A = "") => {
|
|
@@ -16151,11 +16151,11 @@ function SO(e, { slots: t, emit: a }) {
|
|
|
16151
16151
|
return A;
|
|
16152
16152
|
if ((Z == null ? void 0 : Z.view) !== (p == null ? void 0 : p.view))
|
|
16153
16153
|
return "fade";
|
|
16154
|
-
const
|
|
16155
|
-
return !
|
|
16154
|
+
const z = eo(p, Z), L = cl(p, Z);
|
|
16155
|
+
return !z && !L ? "fade" : A === "slide-v" ? L ? "slide-down" : "slide-up" : L ? "slide-right" : "slide-left";
|
|
16156
16156
|
}, te = (Z = {}) => new Promise((p, A) => {
|
|
16157
|
-
const { position:
|
|
16158
|
-
position:
|
|
16157
|
+
const { position: z = 1, force: L = !1, transition: le } = Z, ge = Ta(Z.page) ? Z.page : Je(), { fromPage: xe } = et(ge, {
|
|
16158
|
+
position: z,
|
|
16159
16159
|
force: L
|
|
16160
16160
|
}), rt = [];
|
|
16161
16161
|
for (let st = 0; st < P.value; st++) {
|
|
@@ -16188,7 +16188,7 @@ function SO(e, { slots: t, emit: a }) {
|
|
|
16188
16188
|
}), me = (Z) => {
|
|
16189
16189
|
const p = V.value ?? oe(/* @__PURE__ */ new Date());
|
|
16190
16190
|
return se(p, Z);
|
|
16191
|
-
},
|
|
16191
|
+
}, U = (Z, p = {}) => {
|
|
16192
16192
|
const A = Ta(Z) ? Z : oe(Z);
|
|
16193
16193
|
return Object.assign(
|
|
16194
16194
|
p,
|
|
@@ -16202,15 +16202,15 @@ function SO(e, { slots: t, emit: a }) {
|
|
|
16202
16202
|
u.value,
|
|
16203
16203
|
m.value
|
|
16204
16204
|
).map((L) => JE(L, q.value, B.value)).some((L) => L);
|
|
16205
|
-
}, fe = (Z, p = {}) =>
|
|
16205
|
+
}, fe = (Z, p = {}) => U(me(Z), p), we = b(() => fe(-Y.value)), Ie = b(() => fe(Y.value)), $e = async (Z, p = {}) => !p.force && !U(Z, p) ? !1 : (p.fromPage && !eI(p.fromPage, V.value) && (ti({ id: l.value, hideDelay: 0 }), p.view && (lO("view", 10), u.value = p.view), await te({
|
|
16206
16206
|
...p,
|
|
16207
16207
|
page: p.fromPage,
|
|
16208
16208
|
position: 1,
|
|
16209
16209
|
force: !0
|
|
16210
16210
|
}), a("did-move", c.value)), !0), tt = (Z, p = {}) => $e(me(Z), p), vt = () => tt(-Y.value), X = () => tt(Y.value), Oe = (Z) => {
|
|
16211
|
-
const p = j.value ? ".in-month" : "", A = `.id-${m.value.getDayId(Z)}${p}`,
|
|
16211
|
+
const p = j.value ? ".in-month" : "", A = `.id-${m.value.getDayId(Z)}${p}`, z = `${A}.vc-focusable, ${A} .vc-focusable`, L = n.value;
|
|
16212
16212
|
if (L) {
|
|
16213
|
-
const le = L.querySelector(
|
|
16213
|
+
const le = L.querySelector(z);
|
|
16214
16214
|
if (le)
|
|
16215
16215
|
return le.focus(), !0;
|
|
16216
16216
|
}
|
|
@@ -16228,42 +16228,42 @@ function SO(e, { slots: t, emit: a }) {
|
|
|
16228
16228
|
}, Tt = (Z, p) => {
|
|
16229
16229
|
a("daykeydown", Z, p);
|
|
16230
16230
|
const A = Z.noonDate;
|
|
16231
|
-
let
|
|
16231
|
+
let z = null;
|
|
16232
16232
|
switch (p.key) {
|
|
16233
16233
|
case "ArrowLeft": {
|
|
16234
|
-
|
|
16234
|
+
z = qt(A, -1);
|
|
16235
16235
|
break;
|
|
16236
16236
|
}
|
|
16237
16237
|
case "ArrowRight": {
|
|
16238
|
-
|
|
16238
|
+
z = qt(A, 1);
|
|
16239
16239
|
break;
|
|
16240
16240
|
}
|
|
16241
16241
|
case "ArrowUp": {
|
|
16242
|
-
|
|
16242
|
+
z = qt(A, -7);
|
|
16243
16243
|
break;
|
|
16244
16244
|
}
|
|
16245
16245
|
case "ArrowDown": {
|
|
16246
|
-
|
|
16246
|
+
z = qt(A, 7);
|
|
16247
16247
|
break;
|
|
16248
16248
|
}
|
|
16249
16249
|
case "Home": {
|
|
16250
|
-
|
|
16250
|
+
z = qt(A, -Z.weekdayPosition + 1);
|
|
16251
16251
|
break;
|
|
16252
16252
|
}
|
|
16253
16253
|
case "End": {
|
|
16254
|
-
|
|
16254
|
+
z = qt(A, Z.weekdayPositionFromEnd);
|
|
16255
16255
|
break;
|
|
16256
16256
|
}
|
|
16257
16257
|
case "PageUp": {
|
|
16258
|
-
p.altKey ?
|
|
16258
|
+
p.altKey ? z = Od(A, -1) : z = Ji(A, -1);
|
|
16259
16259
|
break;
|
|
16260
16260
|
}
|
|
16261
16261
|
case "PageDown": {
|
|
16262
|
-
p.altKey ?
|
|
16262
|
+
p.altKey ? z = Od(A, 1) : z = Ji(A, 1);
|
|
16263
16263
|
break;
|
|
16264
16264
|
}
|
|
16265
16265
|
}
|
|
16266
|
-
|
|
16266
|
+
z && (p.preventDefault(), Pe(z).catch());
|
|
16267
16267
|
}, Ot = (Z) => {
|
|
16268
16268
|
const p = r.value;
|
|
16269
16269
|
p != null && Tt(p, Z);
|
|
@@ -16335,7 +16335,7 @@ function SO(e, { slots: t, emit: a }) {
|
|
|
16335
16335
|
count: P,
|
|
16336
16336
|
step: Y,
|
|
16337
16337
|
firstPage: V,
|
|
16338
|
-
lastPage:
|
|
16338
|
+
lastPage: W,
|
|
16339
16339
|
canMovePrev: we,
|
|
16340
16340
|
canMoveNext: Ie,
|
|
16341
16341
|
minPage: q,
|
|
@@ -16347,7 +16347,7 @@ function SO(e, { slots: t, emit: a }) {
|
|
|
16347
16347
|
showWeeknumbers: I,
|
|
16348
16348
|
showIsoWeeknumbers: N,
|
|
16349
16349
|
getDateAddress: oe,
|
|
16350
|
-
canMove:
|
|
16350
|
+
canMove: U,
|
|
16351
16351
|
canMoveBy: fe,
|
|
16352
16352
|
move: $e,
|
|
16353
16353
|
moveBy: tt,
|
|
@@ -16499,7 +16499,7 @@ const $O = ie({
|
|
|
16499
16499
|
function V() {
|
|
16500
16500
|
on(document, "keydown", C), on(document, "click", w), on(document, "show-popover", $), on(document, "hide-popover", M), on(document, "toggle-popover", P);
|
|
16501
16501
|
}
|
|
16502
|
-
function
|
|
16502
|
+
function W(_) {
|
|
16503
16503
|
t("before-show", _);
|
|
16504
16504
|
}
|
|
16505
16505
|
function q(_) {
|
|
@@ -16551,7 +16551,7 @@ const $O = ie({
|
|
|
16551
16551
|
alignment: c,
|
|
16552
16552
|
hide: m,
|
|
16553
16553
|
setupPopper: f,
|
|
16554
|
-
beforeEnter:
|
|
16554
|
+
beforeEnter: W,
|
|
16555
16555
|
afterEnter: q,
|
|
16556
16556
|
beforeLeave: B,
|
|
16557
16557
|
afterLeave: x,
|
|
@@ -16592,7 +16592,7 @@ function DO(e, t, a, n, r, i) {
|
|
|
16592
16592
|
tabindex: "-1",
|
|
16593
16593
|
class: `vc-popover-content direction-${e.direction}`
|
|
16594
16594
|
}, e.$attrs), [
|
|
16595
|
-
|
|
16595
|
+
H(e.$slots, "default", {
|
|
16596
16596
|
direction: e.direction,
|
|
16597
16597
|
alignment: e.alignment,
|
|
16598
16598
|
data: e.data,
|
|
@@ -16641,7 +16641,7 @@ const fu = /* @__PURE__ */ mn($O, [["render", DO]]), xO = { class: "vc-day-popov
|
|
|
16641
16641
|
}, null, 2)
|
|
16642
16642
|
])) : F("", !0),
|
|
16643
16643
|
R("div", AO, [
|
|
16644
|
-
|
|
16644
|
+
H(n.$slots, "default", {}, () => [
|
|
16645
16645
|
de(ne(e.attribute.popover ? e.attribute.popover.label : "No content provided"), 1)
|
|
16646
16646
|
])
|
|
16647
16647
|
])
|
|
@@ -16657,7 +16657,7 @@ const fu = /* @__PURE__ */ mn($O, [["render", DO]]), xO = { class: "vc-day-popov
|
|
|
16657
16657
|
},
|
|
16658
16658
|
setup(e) {
|
|
16659
16659
|
const a = Dp(e.name);
|
|
16660
|
-
return (n, r) => T(a) ? (h(), G(Fe(T(a)), Yr(He({ key: 0 }, n.$attrs)), null, 16)) :
|
|
16660
|
+
return (n, r) => T(a) ? (h(), G(Fe(T(a)), Yr(He({ key: 0 }, n.$attrs)), null, 16)) : H(n.$slots, "default", { key: 1 });
|
|
16661
16661
|
}
|
|
16662
16662
|
}), IO = { class: "vc-day-popover-container" }, OO = {
|
|
16663
16663
|
key: 0,
|
|
@@ -17015,7 +17015,7 @@ const c8 = { class: "vc-nav-header" }, d8 = ["disabled"], f8 = ["disabled"], v8
|
|
|
17015
17015
|
() => P.value.some((oe) => !oe.isDisabled)
|
|
17016
17016
|
), V = b(
|
|
17017
17017
|
() => r(o.value + 1, t.value.navMonths)
|
|
17018
|
-
),
|
|
17018
|
+
), W = b(
|
|
17019
17019
|
() => V.value.some((oe) => !oe.isDisabled)
|
|
17020
17020
|
), q = b(
|
|
17021
17021
|
() => i(
|
|
@@ -17046,7 +17046,7 @@ const c8 = { class: "vc-nav-header" }, d8 = ["disabled"], f8 = ["disabled"], v8
|
|
|
17046
17046
|
), ae = b(
|
|
17047
17047
|
() => s.value ? Y.value : x.value
|
|
17048
17048
|
), J = b(
|
|
17049
|
-
() => s.value ?
|
|
17049
|
+
() => s.value ? W.value : N.value
|
|
17050
17050
|
), ee = b(() => jv(q.value.map((oe) => oe.year))), _ = b(() => Xn(q.value.map((oe) => oe.year))), se = b(() => s.value ? o.value : `${ee.value} - ${_.value}`);
|
|
17051
17051
|
return kl(() => {
|
|
17052
17052
|
o.value = n.value.year, d();
|
|
@@ -17132,7 +17132,7 @@ const c8 = { class: "vc-nav-header" }, d8 = ["disabled"], f8 = ["disabled"], v8
|
|
|
17132
17132
|
page: null
|
|
17133
17133
|
},
|
|
17134
17134
|
setup(e) {
|
|
17135
|
-
return u8($i(e, "page")), (a, n) =>
|
|
17135
|
+
return u8($i(e, "page")), (a, n) => H(a.$slots, "default");
|
|
17136
17136
|
}
|
|
17137
17137
|
}), g8 = /* @__PURE__ */ ie({
|
|
17138
17138
|
__name: "CalendarNavPopover",
|
|
@@ -17214,10 +17214,10 @@ const c8 = { class: "vc-nav-header" }, d8 = ["disabled"], f8 = ["disabled"], v8
|
|
|
17214
17214
|
}), N;
|
|
17215
17215
|
}), m = b(() => S.value.highlights), y = b(() => !!Wa(m.value)), w = b(() => S.value.content), C = b(() => S.value.dots), $ = b(() => !!Wa(C.value)), M = b(() => S.value.bars), P = b(() => !!Wa(M.value)), Y = b(() => S.value.popovers), V = b(
|
|
17216
17216
|
() => Y.value.map((N) => N.attribute)
|
|
17217
|
-
),
|
|
17217
|
+
), W = Dp("day-content"), q = b(() => [
|
|
17218
17218
|
"vc-day",
|
|
17219
17219
|
...d.value.classes,
|
|
17220
|
-
{ "vc-day-box-center-center": !
|
|
17220
|
+
{ "vc-day-box-center-center": !W },
|
|
17221
17221
|
{ "is-not-in-month": !e.day.inMonth }
|
|
17222
17222
|
]), B = b(() => {
|
|
17223
17223
|
let N;
|
|
@@ -17545,8 +17545,8 @@ function B8(e, { emit: t, slots: a }) {
|
|
|
17545
17545
|
return ke({ type: p, mask: A });
|
|
17546
17546
|
}), V = b(
|
|
17547
17547
|
() => fe(c.value ?? u.value)
|
|
17548
|
-
),
|
|
17549
|
-
() => /[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(
|
|
17548
|
+
), W = b(() => M.value ? e.is24hr ? i.value.inputTime24hr : i.value.inputTime : $.value ? e.is24hr ? i.value.inputDateTime24hr : i.value.inputDateTime : i.value.input), q = b(() => /[Hh]/g.test(W.value)), B = b(
|
|
17549
|
+
() => /[dD]{1,2}|Do|W{1,4}|M{1,4}|YY(?:YY)?/g.test(W.value)
|
|
17550
17550
|
), x = b(() => {
|
|
17551
17551
|
if (q.value && B.value)
|
|
17552
17552
|
return "dateTime";
|
|
@@ -17572,7 +17572,7 @@ function B8(e, { emit: t, slots: a }) {
|
|
|
17572
17572
|
const p = ["start", "end"].map((A) => ({
|
|
17573
17573
|
input: te(A),
|
|
17574
17574
|
change: me(A),
|
|
17575
|
-
keyup:
|
|
17575
|
+
keyup: U,
|
|
17576
17576
|
...e.popover && N.value
|
|
17577
17577
|
}));
|
|
17578
17578
|
return m.value ? {
|
|
@@ -17587,8 +17587,8 @@ function B8(e, { emit: t, slots: a }) {
|
|
|
17587
17587
|
...e.selectAttribute,
|
|
17588
17588
|
dates: u.value,
|
|
17589
17589
|
pinPage: !0
|
|
17590
|
-
}, { dot: A, bar:
|
|
17591
|
-
return !A && !
|
|
17590
|
+
}, { dot: A, bar: z, highlight: L, content: le } = p;
|
|
17591
|
+
return !A && !z && !L && !le && (p.highlight = !0), p;
|
|
17592
17592
|
}), ee = b(() => {
|
|
17593
17593
|
if (!m.value || !Le(c.value))
|
|
17594
17594
|
return null;
|
|
@@ -17596,8 +17596,8 @@ function B8(e, { emit: t, slots: a }) {
|
|
|
17596
17596
|
key: "select-drag",
|
|
17597
17597
|
...e.dragAttribute,
|
|
17598
17598
|
dates: c.value
|
|
17599
|
-
}, { dot: A, bar:
|
|
17600
|
-
return !A && !
|
|
17599
|
+
}, { dot: A, bar: z, highlight: L, content: le } = p;
|
|
17600
|
+
return !A && !z && !L && !le && (p.highlight = {
|
|
17601
17601
|
startEnd: {
|
|
17602
17602
|
fillMode: "outline"
|
|
17603
17603
|
}
|
|
@@ -17615,27 +17615,27 @@ function B8(e, { emit: t, slots: a }) {
|
|
|
17615
17615
|
min: [0, 59],
|
|
17616
17616
|
hr: [0, 23]
|
|
17617
17617
|
}, A = C.value ? 0 : e.timeAccuracy;
|
|
17618
|
-
return [0, 1].map((
|
|
17618
|
+
return [0, 1].map((z) => {
|
|
17619
17619
|
switch (A) {
|
|
17620
17620
|
case 0:
|
|
17621
17621
|
return {
|
|
17622
|
-
hours: p.hr[
|
|
17623
|
-
minutes: p.min[
|
|
17624
|
-
seconds: p.sec[
|
|
17625
|
-
milliseconds: p.ms[
|
|
17622
|
+
hours: p.hr[z],
|
|
17623
|
+
minutes: p.min[z],
|
|
17624
|
+
seconds: p.sec[z],
|
|
17625
|
+
milliseconds: p.ms[z]
|
|
17626
17626
|
};
|
|
17627
17627
|
case 1:
|
|
17628
17628
|
return {
|
|
17629
|
-
minutes: p.min[
|
|
17630
|
-
seconds: p.sec[
|
|
17631
|
-
milliseconds: p.ms[
|
|
17629
|
+
minutes: p.min[z],
|
|
17630
|
+
seconds: p.sec[z],
|
|
17631
|
+
milliseconds: p.ms[z]
|
|
17632
17632
|
};
|
|
17633
17633
|
case 3:
|
|
17634
|
-
return { milliseconds: p.ms[
|
|
17634
|
+
return { milliseconds: p.ms[z] };
|
|
17635
17635
|
case 4:
|
|
17636
17636
|
return {};
|
|
17637
17637
|
default:
|
|
17638
|
-
return { seconds: p.sec[
|
|
17638
|
+
return { seconds: p.sec[z], milliseconds: p.ms[z] };
|
|
17639
17639
|
}
|
|
17640
17640
|
});
|
|
17641
17641
|
}
|
|
@@ -17644,9 +17644,9 @@ function B8(e, { emit: t, slots: a }) {
|
|
|
17644
17644
|
}
|
|
17645
17645
|
function be(p) {
|
|
17646
17646
|
return ke(p).map(
|
|
17647
|
-
(A,
|
|
17647
|
+
(A, z) => ({
|
|
17648
17648
|
...A,
|
|
17649
|
-
rules: se.value[
|
|
17649
|
+
rules: se.value[z]
|
|
17650
17650
|
})
|
|
17651
17651
|
);
|
|
17652
17652
|
}
|
|
@@ -17664,31 +17664,31 @@ function B8(e, { emit: t, slots: a }) {
|
|
|
17664
17664
|
return !0;
|
|
17665
17665
|
if (p == null || A == null)
|
|
17666
17666
|
return !1;
|
|
17667
|
-
const
|
|
17668
|
-
return
|
|
17667
|
+
const z = tr(p), L = tr(A);
|
|
17668
|
+
return z && L ? p.getTime() === A.getTime() : z || L ? !1 : Ye(p.start, A.start) && Ye(p.end, A.end);
|
|
17669
17669
|
}
|
|
17670
17670
|
function We(p) {
|
|
17671
17671
|
return !Le(p) || !s.value ? !1 : s.value.intersectsRange(r.value.range(p));
|
|
17672
17672
|
}
|
|
17673
|
-
function at(p, A,
|
|
17673
|
+
function at(p, A, z, L) {
|
|
17674
17674
|
if (!Le(p))
|
|
17675
17675
|
return null;
|
|
17676
17676
|
if (Ee(p)) {
|
|
17677
17677
|
const le = r.value.toDate(p.start, {
|
|
17678
17678
|
...A[0],
|
|
17679
17679
|
fillDate: y.value ?? void 0,
|
|
17680
|
-
patch:
|
|
17680
|
+
patch: z
|
|
17681
17681
|
}), ge = r.value.toDate(p.end, {
|
|
17682
17682
|
...A[1],
|
|
17683
17683
|
fillDate: w.value ?? void 0,
|
|
17684
|
-
patch:
|
|
17684
|
+
patch: z
|
|
17685
17685
|
});
|
|
17686
17686
|
return Bt({ start: le, end: ge }, L);
|
|
17687
17687
|
}
|
|
17688
17688
|
return r.value.toDateOrNull(p, {
|
|
17689
17689
|
...A[0],
|
|
17690
17690
|
fillDate: u.value,
|
|
17691
|
-
patch:
|
|
17691
|
+
patch: z
|
|
17692
17692
|
});
|
|
17693
17693
|
}
|
|
17694
17694
|
function Ve(p, A) {
|
|
@@ -17698,16 +17698,16 @@ function B8(e, { emit: t, slots: a }) {
|
|
|
17698
17698
|
} : m.value ? null : r.value.fromDate(p, A[0]);
|
|
17699
17699
|
}
|
|
17700
17700
|
function Qe(p, A = {}) {
|
|
17701
|
-
return clearTimeout(g), new Promise((
|
|
17701
|
+
return clearTimeout(g), new Promise((z) => {
|
|
17702
17702
|
const { debounce: L = 0, ...le } = A;
|
|
17703
17703
|
L > 0 ? g = window.setTimeout(() => {
|
|
17704
|
-
|
|
17705
|
-
}, L) :
|
|
17704
|
+
z(Je(p, le));
|
|
17705
|
+
}, L) : z(Je(p, le));
|
|
17706
17706
|
});
|
|
17707
17707
|
}
|
|
17708
17708
|
function Je(p, {
|
|
17709
17709
|
config: A = Y.value,
|
|
17710
|
-
patch:
|
|
17710
|
+
patch: z = "dateTime",
|
|
17711
17711
|
clearIfEqual: L = !1,
|
|
17712
17712
|
formatInput: le = !0,
|
|
17713
17713
|
hidePopover: ge = !1,
|
|
@@ -17719,7 +17719,7 @@ function B8(e, { emit: t, slots: a }) {
|
|
|
17719
17719
|
let Pt = at(
|
|
17720
17720
|
p,
|
|
17721
17721
|
St,
|
|
17722
|
-
|
|
17722
|
+
z,
|
|
17723
17723
|
rt
|
|
17724
17724
|
);
|
|
17725
17725
|
if (We(Pt)) {
|
|
@@ -17742,7 +17742,7 @@ function B8(e, { emit: t, slots: a }) {
|
|
|
17742
17742
|
ht(() => {
|
|
17743
17743
|
const p = be({
|
|
17744
17744
|
type: "string",
|
|
17745
|
-
mask:
|
|
17745
|
+
mask: W.value
|
|
17746
17746
|
}), A = Ve(
|
|
17747
17747
|
c.value ?? u.value,
|
|
17748
17748
|
p
|
|
@@ -17750,17 +17750,17 @@ function B8(e, { emit: t, slots: a }) {
|
|
|
17750
17750
|
m.value ? d.value = [A && A.start, A && A.end] : d.value = [A, ""];
|
|
17751
17751
|
});
|
|
17752
17752
|
}
|
|
17753
|
-
function Q(p, A,
|
|
17753
|
+
function Q(p, A, z) {
|
|
17754
17754
|
d.value.splice(A === "start" ? 0 : 1, 1, p);
|
|
17755
17755
|
const L = m.value ? {
|
|
17756
17756
|
start: d.value[0],
|
|
17757
17757
|
end: d.value[1] || d.value[0]
|
|
17758
17758
|
} : p, le = {
|
|
17759
17759
|
type: "string",
|
|
17760
|
-
mask:
|
|
17760
|
+
mask: W.value
|
|
17761
17761
|
};
|
|
17762
17762
|
Qe(L, {
|
|
17763
|
-
...
|
|
17763
|
+
...z,
|
|
17764
17764
|
config: le,
|
|
17765
17765
|
patch: x.value,
|
|
17766
17766
|
targetPriority: A,
|
|
@@ -17784,7 +17784,7 @@ function B8(e, { emit: t, slots: a }) {
|
|
|
17784
17784
|
});
|
|
17785
17785
|
};
|
|
17786
17786
|
}
|
|
17787
|
-
function
|
|
17787
|
+
function U(p) {
|
|
17788
17788
|
p.key === "Escape" && Qe(u.value, {
|
|
17789
17789
|
formatInput: !0,
|
|
17790
17790
|
hidePopover: !0
|
|
@@ -17818,10 +17818,10 @@ function B8(e, { emit: t, slots: a }) {
|
|
|
17818
17818
|
hidePopover: !0
|
|
17819
17819
|
};
|
|
17820
17820
|
if (m.value) {
|
|
17821
|
-
const
|
|
17822
|
-
|
|
17821
|
+
const z = !P.value;
|
|
17822
|
+
z ? k = { start: p.startDate, end: p.endDate } : k != null && (k.end = p.date), Qe(k, {
|
|
17823
17823
|
...A,
|
|
17824
|
-
dragging:
|
|
17824
|
+
dragging: z
|
|
17825
17825
|
});
|
|
17826
17826
|
} else
|
|
17827
17827
|
Qe(p.date, {
|
|
@@ -17876,17 +17876,17 @@ function B8(e, { emit: t, slots: a }) {
|
|
|
17876
17876
|
});
|
|
17877
17877
|
}
|
|
17878
17878
|
function Bt(p, A) {
|
|
17879
|
-
const { start:
|
|
17880
|
-
if (
|
|
17879
|
+
const { start: z, end: L } = p;
|
|
17880
|
+
if (z > L)
|
|
17881
17881
|
switch (A) {
|
|
17882
17882
|
case "start":
|
|
17883
|
-
return { start:
|
|
17883
|
+
return { start: z, end: z };
|
|
17884
17884
|
case "end":
|
|
17885
17885
|
return { start: L, end: L };
|
|
17886
17886
|
default:
|
|
17887
|
-
return { start: L, end:
|
|
17887
|
+
return { start: L, end: z };
|
|
17888
17888
|
}
|
|
17889
|
-
return { start:
|
|
17889
|
+
return { start: z, end: L };
|
|
17890
17890
|
}
|
|
17891
17891
|
async function Tt(p, A = {}) {
|
|
17892
17892
|
return v.value == null ? !1 : v.value.move(p, A);
|
|
@@ -17895,10 +17895,10 @@ function B8(e, { emit: t, slots: a }) {
|
|
|
17895
17895
|
return v.value == null ? !1 : v.value.moveBy(p, A);
|
|
17896
17896
|
}
|
|
17897
17897
|
async function ce(p, A = {}) {
|
|
17898
|
-
const
|
|
17899
|
-
if (v.value == null || !Le(
|
|
17898
|
+
const z = u.value;
|
|
17899
|
+
if (v.value == null || !Le(z))
|
|
17900
17900
|
return !1;
|
|
17901
|
-
const L = p !== "end", le = L ? 1 : -1, ge = Ee(
|
|
17901
|
+
const L = p !== "end", le = L ? 1 : -1, ge = Ee(z) ? L ? z.start : z.end : z, xe = ep(ge, "monthly", r.value);
|
|
17902
17902
|
return v.value.move(xe, { position: le, ...A });
|
|
17903
17903
|
}
|
|
17904
17904
|
ve(
|
|
@@ -17915,7 +17915,7 @@ function B8(e, { emit: t, slots: a }) {
|
|
|
17915
17915
|
Je(null, { formatInput: !0 });
|
|
17916
17916
|
}
|
|
17917
17917
|
), ve(
|
|
17918
|
-
() =>
|
|
17918
|
+
() => W.value,
|
|
17919
17919
|
() => et()
|
|
17920
17920
|
), ve(
|
|
17921
17921
|
() => e.modelValue,
|
|
@@ -18097,7 +18097,7 @@ function R8(e) {
|
|
|
18097
18097
|
(B) => P.value.hours.some((x) => x.value === B.value)
|
|
18098
18098
|
)), V = b(() => _8.filter(
|
|
18099
18099
|
(B) => P.value.hours.some((x) => x.value === B.value)
|
|
18100
|
-
)),
|
|
18100
|
+
)), W = b(() => l.value ? P.value.hours : M.value ? Y.value : V.value), q = b(() => {
|
|
18101
18101
|
const B = [];
|
|
18102
18102
|
return Wa(Y.value) && B.push({ value: !0, label: "AM" }), Wa(V.value) && B.push({ value: !1, label: "PM" }), B;
|
|
18103
18103
|
});
|
|
@@ -18113,7 +18113,7 @@ function R8(e) {
|
|
|
18113
18113
|
seconds: C,
|
|
18114
18114
|
milliseconds: $,
|
|
18115
18115
|
options: P,
|
|
18116
|
-
hourOptions:
|
|
18116
|
+
hourOptions: W,
|
|
18117
18117
|
isAM: M,
|
|
18118
18118
|
isAMOptions: q,
|
|
18119
18119
|
is24hr: l
|
|
@@ -18355,7 +18355,7 @@ const Y8 = ["value"], F8 = ["value", "disabled"], z8 = {
|
|
|
18355
18355
|
function t4(e, t, a, n, r, i) {
|
|
18356
18356
|
const s = It("DatePickerPopover"), l = It("DatePickerBase");
|
|
18357
18357
|
return e.$slots.default ? (h(), D(De, { key: 0 }, [
|
|
18358
|
-
|
|
18358
|
+
H(e.$slots, "default", Yr(ms(e.slotCtx))),
|
|
18359
18359
|
K(s, Yr(ms(e.$attrs)), null, 16)
|
|
18360
18360
|
], 64)) : (h(), G(l, Yr(He({ key: 1 }, e.$attrs)), null, 16));
|
|
18361
18361
|
}
|
|
@@ -18409,7 +18409,7 @@ const a4 = /* @__PURE__ */ mn(e4, [["render", t4]]), n4 = { class: "k-segmented-
|
|
|
18409
18409
|
type: "button",
|
|
18410
18410
|
onClick: (c) => s(u)
|
|
18411
18411
|
}, [
|
|
18412
|
-
|
|
18412
|
+
H(l.$slots, "option-label", { option: u }, () => [
|
|
18413
18413
|
de(ne(u.label), 1)
|
|
18414
18414
|
], !0)
|
|
18415
18415
|
], 10, r4))), 128))
|
|
@@ -18570,11 +18570,11 @@ const a4 = /* @__PURE__ */ mn(e4, [["render", t4]]), n4 = { class: "k-segmented-
|
|
|
18570
18570
|
start: new Date(_),
|
|
18571
18571
|
end: new Date(se),
|
|
18572
18572
|
timePeriodsKey: M.selectedTimeframe.key
|
|
18573
|
-
}, M.fullRangeDisplay =
|
|
18573
|
+
}, M.fullRangeDisplay = W(M.selectedRange, !1), v.value = !1, ee && q();
|
|
18574
18574
|
}, V = () => {
|
|
18575
18575
|
var J;
|
|
18576
18576
|
S.value = g, k.value = null, M.abbreviatedDisplay = n.placeholder, M.fullRangeDisplay = "", d.value && (M.selectedTimeframe = (J = n.timePeriods[0]) == null ? void 0 : J.values[0]), M.selectedRange = M.previouslySelectedRange = g, r("change", M.selectedRange), r("update:modelValue", M.selectedRange);
|
|
18577
|
-
},
|
|
18577
|
+
}, W = (J, ee) => {
|
|
18578
18578
|
const { start: _, end: se } = J;
|
|
18579
18579
|
let oe = "PP hh:mm a";
|
|
18580
18580
|
const ke = jo(_, $, "(z)");
|
|
@@ -18584,7 +18584,7 @@ const a4 = /* @__PURE__ */ mn(e4, [["render", t4]]), n4 = { class: "k-segmented-
|
|
|
18584
18584
|
c.value ? (r("change", { start: M.selectedRange.start, end: null }), r("update:modelValue", { start: M.selectedRange.start, end: null })) : (r("change", M.selectedRange), r("update:modelValue", M.selectedRange)), (J = i.value) == null || J.hidePopover(), B();
|
|
18585
18585
|
}, B = () => {
|
|
18586
18586
|
var J;
|
|
18587
|
-
f.value && ((J = M.selectedRange) != null && J.start) ? M.abbreviatedDisplay =
|
|
18587
|
+
f.value && ((J = M.selectedRange) != null && J.start) ? M.abbreviatedDisplay = W(M.selectedRange, !0) : d.value && !f.value && (M.abbreviatedDisplay = M.selectedTimeframe.display);
|
|
18588
18588
|
}, x = (J) => J.charAt(0).toUpperCase() + J.slice(1), I = (J) => M.selectedTimeframe.key === J.key ? "primary" : "secondary";
|
|
18589
18589
|
return ve(k, (J, ee) => {
|
|
18590
18590
|
J !== void 0 && J !== ee && P({ start: J, end: null, timePeriodsKey: "" });
|
|
@@ -18787,31 +18787,31 @@ const a4 = /* @__PURE__ */ mn(e4, [["render", t4]]), n4 = { class: "k-segmented-
|
|
|
18787
18787
|
return !!((V = a.labelAttributes) != null && V.info || r["label-tooltip"]);
|
|
18788
18788
|
}), d = b(() => s(a.label, f.value)), f = b(() => (n == null ? void 0 : n.required) !== void 0 && String(n == null ? void 0 : n.required) !== "false"), v = E(!1), g = b(() => {
|
|
18789
18789
|
if (v.value) {
|
|
18790
|
-
let V = "bytes",
|
|
18791
|
-
return k.value >= 1e3 && k.value < 1e6 && (
|
|
18790
|
+
let V = "bytes", W = k.value;
|
|
18791
|
+
return k.value >= 1e3 && k.value < 1e6 && (W = k.value / 1e3, V = "KB"), k.value >= 1e6 && (W = k.value / 1e6, V = "MB"), `File size must be less than ${W}${V}.`;
|
|
18792
18792
|
}
|
|
18793
18793
|
return "";
|
|
18794
18794
|
}), k = b(() => a.maxFileSize || a.maxFileSize === 0 ? a.maxFileSize : 525e4), S = E(!1), m = E([]), y = E(0), w = E(""), C = E([]), $ = (V) => {
|
|
18795
18795
|
var B, x, I, N, j, ae;
|
|
18796
18796
|
m.value = (B = V.target) == null ? void 0 : B.files, w.value = String((x = m == null ? void 0 : m.value[0]) == null ? void 0 : x.name);
|
|
18797
|
-
const
|
|
18798
|
-
S.value = Number(
|
|
18797
|
+
const W = (I = m == null ? void 0 : m.value[0]) == null ? void 0 : I.size;
|
|
18798
|
+
S.value = Number(W) > k.value, S.value && (y.value++, Number(W) > k.value && (v.value = !0), i("error", m.value));
|
|
18799
18799
|
const q = (j = (N = o.value) == null ? void 0 : N.$el) == null ? void 0 : j.querySelector("input");
|
|
18800
|
-
|
|
18800
|
+
W ? C.value.push(m.value) : q && (q.files = C.value[C.value.length - 1], m.value = q.files, q.files && (w.value = String((ae = q.files[q.files.length - 1]) == null ? void 0 : ae.name))), i("file-added", m.value);
|
|
18801
18801
|
}, M = () => {
|
|
18802
|
-
var
|
|
18802
|
+
var W, q;
|
|
18803
18803
|
if (w.value) {
|
|
18804
18804
|
P();
|
|
18805
18805
|
return;
|
|
18806
18806
|
}
|
|
18807
|
-
const V = (q = (
|
|
18807
|
+
const V = (q = (W = o.value) == null ? void 0 : W.$el) == null ? void 0 : q.querySelector("input");
|
|
18808
18808
|
V && V.click();
|
|
18809
18809
|
}, P = () => {
|
|
18810
18810
|
m.value = [], w.value = "", C.value = [], y.value++, S.value = !1, v.value = !1, i("file-removed");
|
|
18811
18811
|
}, Y = () => {
|
|
18812
|
-
var V,
|
|
18812
|
+
var V, W, q, B, x;
|
|
18813
18813
|
if (!n.id) {
|
|
18814
|
-
const I = (q = (
|
|
18814
|
+
const I = (q = (W = (V = o.value) == null ? void 0 : V.$el) == null ? void 0 : W.querySelector("input")) == null ? void 0 : q.id;
|
|
18815
18815
|
I && ((x = (B = u.value) == null ? void 0 : B.$el) == null || x.setAttribute("for", I));
|
|
18816
18816
|
}
|
|
18817
18817
|
};
|
|
@@ -18821,7 +18821,7 @@ const a4 = /* @__PURE__ */ mn(e4, [["render", t4]]), n4 = { class: "k-segmented-
|
|
|
18821
18821
|
y.value++;
|
|
18822
18822
|
}, { immediate: !0 }), ot(() => {
|
|
18823
18823
|
Y();
|
|
18824
|
-
}), (V,
|
|
18824
|
+
}), (V, W) => (h(), D("div", He({ class: "k-file-upload" }, l.value), [
|
|
18825
18825
|
e.label ? (h(), G(hn, He({ key: 0 }, e.labelAttributes, {
|
|
18826
18826
|
ref_key: "labelElement",
|
|
18827
18827
|
ref: u,
|
|
@@ -18836,7 +18836,7 @@ const a4 = /* @__PURE__ */ mn(e4, [["render", t4]]), n4 = { class: "k-segmented-
|
|
|
18836
18836
|
c.value ? {
|
|
18837
18837
|
name: "tooltip",
|
|
18838
18838
|
fn: O(() => [
|
|
18839
|
-
|
|
18839
|
+
H(V.$slots, "label-tooltip", {}, void 0, !0)
|
|
18840
18840
|
]),
|
|
18841
18841
|
key: "0"
|
|
18842
18842
|
} : void 0
|
|
@@ -18881,7 +18881,7 @@ const a4 = /* @__PURE__ */ mn(e4, [["render", t4]]), n4 = { class: "k-segmented-
|
|
|
18881
18881
|
V.$slots.icon ? {
|
|
18882
18882
|
name: "before",
|
|
18883
18883
|
fn: O(() => [
|
|
18884
|
-
|
|
18884
|
+
H(V.$slots, "icon", {}, void 0, !0)
|
|
18885
18885
|
]),
|
|
18886
18886
|
key: "0"
|
|
18887
18887
|
} : void 0
|
|
@@ -18985,7 +18985,7 @@ const a4 = /* @__PURE__ */ mn(e4, [["render", t4]]), n4 = { class: "k-segmented-
|
|
|
18985
18985
|
}, 8, ["label"])),
|
|
18986
18986
|
e.label || c.$slots.label ? ut((h(), G(f, { key: 0 }, {
|
|
18987
18987
|
default: O(() => [
|
|
18988
|
-
|
|
18988
|
+
H(c.$slots, "label", {}, () => [
|
|
18989
18989
|
de(ne(e.label), 1)
|
|
18990
18990
|
], !0)
|
|
18991
18991
|
]),
|
|
@@ -19556,9 +19556,9 @@ var Vd = {
|
|
|
19556
19556
|
});
|
|
19557
19557
|
});
|
|
19558
19558
|
I && g(d());
|
|
19559
|
-
},
|
|
19560
|
-
|
|
19561
|
-
|
|
19559
|
+
}, W = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(V) : void 0, q = function() {
|
|
19560
|
+
W && (W.disconnect(), s.active && !s.paused && s.containers.map(function(x) {
|
|
19561
|
+
W.observe(x, {
|
|
19562
19562
|
subtree: !0,
|
|
19563
19563
|
childList: !0
|
|
19564
19564
|
});
|
|
@@ -19860,10 +19860,10 @@ const eP = {
|
|
|
19860
19860
|
class: ue(["modal-container", { "custom-content": w.$slots.content }]),
|
|
19861
19861
|
tabindex: "-1"
|
|
19862
19862
|
}, [
|
|
19863
|
-
|
|
19863
|
+
H(w.$slots, "content", {}, () => [
|
|
19864
19864
|
f.value ? (h(), D("div", nP, [
|
|
19865
19865
|
e.title || w.$slots.title ? (h(), D("div", rP, [
|
|
19866
|
-
|
|
19866
|
+
H(w.$slots, "title", {}, () => [
|
|
19867
19867
|
de(ne(e.title), 1)
|
|
19868
19868
|
], !0)
|
|
19869
19869
|
])) : F("", !0),
|
|
@@ -19884,12 +19884,12 @@ const eP = {
|
|
|
19884
19884
|
R("div", {
|
|
19885
19885
|
class: ue(["modal-content", { "no-header": !f.value }])
|
|
19886
19886
|
}, [
|
|
19887
|
-
|
|
19887
|
+
H(w.$slots, "default", {}, void 0, !0)
|
|
19888
19888
|
], 2),
|
|
19889
19889
|
R("div", iP, [
|
|
19890
|
-
|
|
19890
|
+
H(w.$slots, "footer", {}, () => [
|
|
19891
19891
|
R("div", oP, [
|
|
19892
|
-
|
|
19892
|
+
H(w.$slots, "footer-actions", {}, () => [
|
|
19893
19893
|
e.hideCancelButton ? F("", !0) : (h(), G(ct, {
|
|
19894
19894
|
key: 0,
|
|
19895
19895
|
appearance: e.cancelButtonAppearance,
|
|
@@ -20046,36 +20046,36 @@ Docs: https://kongponents.konghq.com/components/modal.html#fullscreen`);
|
|
|
20046
20046
|
}, [
|
|
20047
20047
|
R("div", uP, [
|
|
20048
20048
|
u.$slots["body-header"] || e.bodyHeader ? (h(), D("div", cP, [
|
|
20049
|
-
|
|
20049
|
+
H(u.$slots, "body-header", {}, () => [
|
|
20050
20050
|
de(ne(e.bodyHeader), 1)
|
|
20051
20051
|
], !0)
|
|
20052
20052
|
])) : F("", !0),
|
|
20053
20053
|
u.$slots["body-header-description"] || e.bodyHeaderDescription ? (h(), D("div", dP, [
|
|
20054
|
-
|
|
20054
|
+
H(u.$slots, "body-header-description", {}, () => [
|
|
20055
20055
|
de(ne(e.bodyHeaderDescription), 1)
|
|
20056
20056
|
], !0)
|
|
20057
20057
|
])) : F("", !0)
|
|
20058
20058
|
]),
|
|
20059
20059
|
R("div", fP, [
|
|
20060
|
-
|
|
20060
|
+
H(u.$slots, "default", {}, void 0, !0)
|
|
20061
20061
|
]),
|
|
20062
20062
|
R("div", vP, [
|
|
20063
20063
|
R("div", pP, [
|
|
20064
20064
|
R("div", hP, [
|
|
20065
20065
|
R("span", gP, [
|
|
20066
|
-
|
|
20066
|
+
H(u.$slots, "header-icon", {}, () => [
|
|
20067
20067
|
K(T(Dl), { color: T(Cg) }, null, 8, ["color"])
|
|
20068
20068
|
], !0)
|
|
20069
20069
|
]),
|
|
20070
20070
|
R("span", mP, [
|
|
20071
|
-
|
|
20071
|
+
H(u.$slots, "header-content", {}, () => [
|
|
20072
20072
|
de(ne(e.title), 1)
|
|
20073
20073
|
], !0)
|
|
20074
20074
|
])
|
|
20075
20075
|
]),
|
|
20076
20076
|
R("div", yP, [
|
|
20077
20077
|
R("div", bP, [
|
|
20078
|
-
|
|
20078
|
+
H(u.$slots, "action-buttons", {}, () => [
|
|
20079
20079
|
K(ct, {
|
|
20080
20080
|
appearance: e.cancelButtonAppearance,
|
|
20081
20081
|
class: "cancel-button",
|
|
@@ -20102,10 +20102,10 @@ Docs: https://kongponents.konghq.com/components/modal.html#fullscreen`);
|
|
|
20102
20102
|
])
|
|
20103
20103
|
]),
|
|
20104
20104
|
u.$slots["footer-content"] ? (h(), D("div", wP, [
|
|
20105
|
-
|
|
20105
|
+
H(u.$slots, "footer-content", {}, void 0, !0),
|
|
20106
20106
|
R("div", kP, [
|
|
20107
20107
|
R("div", CP, [
|
|
20108
|
-
|
|
20108
|
+
H(u.$slots, "action-buttons", {}, () => [
|
|
20109
20109
|
K(ct, {
|
|
20110
20110
|
appearance: e.actionButtonAppearance,
|
|
20111
20111
|
class: "proceed-button",
|
|
@@ -20158,7 +20158,7 @@ Docs: https://kongponents.konghq.com/components/modal.html#fullscreen`);
|
|
|
20158
20158
|
]
|
|
20159
20159
|
}, [
|
|
20160
20160
|
R("span", AP, [
|
|
20161
|
-
|
|
20161
|
+
H(i.$slots, "content", {}, () => [
|
|
20162
20162
|
de(ne(e.item.label), 1)
|
|
20163
20163
|
], !0)
|
|
20164
20164
|
])
|
|
@@ -20213,7 +20213,7 @@ Docs: https://kongponents.konghq.com/components/modal.html#fullscreen`);
|
|
|
20213
20213
|
onSelected: s
|
|
20214
20214
|
}, {
|
|
20215
20215
|
content: O(() => [
|
|
20216
|
-
|
|
20216
|
+
H(f.$slots, "content", { item: g }, void 0, !0)
|
|
20217
20217
|
]),
|
|
20218
20218
|
_: 2
|
|
20219
20219
|
}, 1032, ["item", "onArrowDown", "onArrowUp"]))), 128)),
|
|
@@ -20233,7 +20233,7 @@ Docs: https://kongponents.konghq.com/components/modal.html#fullscreen`);
|
|
|
20233
20233
|
onSelected: s
|
|
20234
20234
|
}, {
|
|
20235
20235
|
content: O(() => [
|
|
20236
|
-
|
|
20236
|
+
H(f.$slots, "content", { item: k }, void 0, !0)
|
|
20237
20237
|
]),
|
|
20238
20238
|
_: 2
|
|
20239
20239
|
}, 1032, ["item", "onArrowDown", "onArrowUp"]))), 128))
|
|
@@ -20499,7 +20499,7 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
20499
20499
|
placement: "bottom-start",
|
|
20500
20500
|
popoverTimeout: 0,
|
|
20501
20501
|
popoverClasses: "multiselect-popover"
|
|
20502
|
-
}, m = E(0), y = E(0), w = a.id ? String(a.id) : yt(), C = yt(), $ = E(null), M = E(null), P = E(null), Y = E(), V = b(() => u.selectedRowCount * l),
|
|
20502
|
+
}, m = E(0), y = E(0), w = a.id ? String(a.id) : yt(), C = yt(), $ = E(null), M = E(null), P = E(null), Y = E(), V = b(() => u.selectedRowCount * l), W = E(""), q = b(() => !(!W.value || x.value.filter((ce) => ce.label === W.value).length)), B = E(null), x = E([]), I = E([]), N = E([]), j = E([]), ae = E([]), J = /* @__PURE__ */ new Set(), ee = E([]), _ = E([]), se = b(() => _.value.map((ce) => ce.label).join(", ")), oe = E(!1), ke = E(!1), be = E(!1), Ce = b(() => (a == null ? void 0 : a.disabled) !== void 0 && String(a == null ? void 0 : a.disabled) !== "false"), Ee = b(() => (a == null ? void 0 : a.readonly) !== void 0 && String(a == null ? void 0 : a.readonly) !== "false"), Le = b({
|
|
20503
20503
|
get() {
|
|
20504
20504
|
return u.modelValue;
|
|
20505
20505
|
},
|
|
@@ -20532,19 +20532,19 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
20532
20532
|
return u.searchPlaceholder;
|
|
20533
20533
|
}
|
|
20534
20534
|
return N.value.length === 1 ? `${N.value.length} item selected` : `${N.value.length} items selected`;
|
|
20535
|
-
}), te = b(() => u.autosuggest ? x.value : u.filterFunction({ items: x.value, query:
|
|
20535
|
+
}), te = b(() => u.autosuggest ? x.value : u.filterFunction({ items: x.value, query: W.value })), me = (ce) => {
|
|
20536
20536
|
var pe;
|
|
20537
20537
|
(Ce.value || ((pe = ce == null ? void 0 : ce.target) == null ? void 0 : pe.dataset.propagateClicks) === "false") && ce.stopPropagation();
|
|
20538
|
-
},
|
|
20538
|
+
}, U = async (ce, pe, Z) => {
|
|
20539
20539
|
var p, A;
|
|
20540
20540
|
if (ce) {
|
|
20541
20541
|
if (!pe.value) {
|
|
20542
|
-
|
|
20543
|
-
const
|
|
20544
|
-
|
|
20542
|
+
W.value = "", Z(), vt(), await ht();
|
|
20543
|
+
const z = (A = (p = P.value) == null ? void 0 : p.$el) == null ? void 0 : A.querySelector("input");
|
|
20544
|
+
z == null || z.focus({ preventScroll: !0 });
|
|
20545
20545
|
}
|
|
20546
20546
|
} else
|
|
20547
|
-
pe.value && (
|
|
20547
|
+
pe.value && (W.value = "", Z());
|
|
20548
20548
|
}, fe = () => {
|
|
20549
20549
|
setTimeout(() => {
|
|
20550
20550
|
const ce = Y.value;
|
|
@@ -20554,9 +20554,9 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
20554
20554
|
}
|
|
20555
20555
|
if (ce) {
|
|
20556
20556
|
if (ce.clientHeight > V.value) {
|
|
20557
|
-
const Z = Array.from(ce.querySelectorAll(".multiselect-selection-badge")).filter((
|
|
20558
|
-
for (const
|
|
20559
|
-
J.has(
|
|
20557
|
+
const Z = Array.from(ce.querySelectorAll(".multiselect-selection-badge")).filter((z) => z.offsetTop >= V.value), p = j.value.length - Z.length, A = j.value.splice(p, Z.length);
|
|
20558
|
+
for (const z of A)
|
|
20559
|
+
J.has(z.value) || (J.add(z.value), ae.value.push(z));
|
|
20560
20560
|
}
|
|
20561
20561
|
y.value++;
|
|
20562
20562
|
}
|
|
@@ -20577,8 +20577,8 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
20577
20577
|
u.enableItemCreation && p.custom && (x.value = x.value.filter((A) => A.value !== p.value), c("item-removed", p));
|
|
20578
20578
|
}), pe && fe();
|
|
20579
20579
|
}, $e = (ce, pe) => {
|
|
20580
|
-
var
|
|
20581
|
-
let Z = !1, p = pe ? ce : ((
|
|
20580
|
+
var z, L;
|
|
20581
|
+
let Z = !1, p = pe ? ce : ((z = x.value.filter((le) => le.value === ce.value)) == null ? void 0 : z[0]) || null;
|
|
20582
20582
|
if (u.enableItemCreation && (p != null && p.custom) && (Z = !0), p === null && (p = ((L = N.value.filter((le) => le.value === ce.value)) == null ? void 0 : L[0]) || null), p === null)
|
|
20583
20583
|
return;
|
|
20584
20584
|
if (p.selected) {
|
|
@@ -20594,25 +20594,25 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
20594
20594
|
c("selected", N.value), c("change", p), c("update:modelValue", A);
|
|
20595
20595
|
}, tt = () => {
|
|
20596
20596
|
var Z;
|
|
20597
|
-
if (!u.enableItemCreation || !
|
|
20597
|
+
if (!u.enableItemCreation || !W.value || !q.value)
|
|
20598
20598
|
return;
|
|
20599
20599
|
const ce = x.value.length + 1, pe = {
|
|
20600
|
-
label: lo(
|
|
20600
|
+
label: lo(W.value + ""),
|
|
20601
20601
|
value: yt(),
|
|
20602
|
-
key: `${(Z = lo(
|
|
20602
|
+
key: `${(Z = lo(W.value).replace(/ /gi, "-")) == null ? void 0 : Z.replace(/[^a-z0-9-_]/gi, "")}-${ce}`
|
|
20603
20603
|
};
|
|
20604
|
-
c("item-added", pe), $e(pe, !0),
|
|
20604
|
+
c("item-added", pe), $e(pe, !0), W.value = "";
|
|
20605
20605
|
}, vt = () => {
|
|
20606
|
-
const ce = te.value.filter((
|
|
20606
|
+
const ce = te.value.filter((z) => z.selected), pe = te.value.filter((z) => !z.selected), Z = [...ce, ...pe], p = Z.filter((z) => !z.group), A = Z.filter((z) => z.group).sort((z, L) => z.group.toLowerCase().localeCompare(L.group.toLowerCase()));
|
|
20607
20607
|
I.value = [...p, ...A];
|
|
20608
20608
|
}, X = () => {
|
|
20609
20609
|
x.value.forEach((pe) => {
|
|
20610
20610
|
pe.disabled || (pe.selected = !1, pe.custom && c("item-removed", pe));
|
|
20611
|
-
}), x.value = x.value.filter((pe) => !(pe.custom && !pe.disabled)), N.value = N.value.filter((pe) => pe.disabled), j.value = j.value.filter((pe) => pe.disabled), ae.value = ae.value.filter((pe) => (pe.disabled || J.delete(pe.value), pe.disabled)),
|
|
20611
|
+
}), x.value = x.value.filter((pe) => !(pe.custom && !pe.disabled)), N.value = N.value.filter((pe) => pe.disabled), j.value = j.value.filter((pe) => pe.disabled), ae.value = ae.value.filter((pe) => (pe.disabled || J.delete(pe.value), pe.disabled)), W.value = "", fe();
|
|
20612
20612
|
const ce = N.value.map((pe) => pe.value);
|
|
20613
20613
|
c("selected", N.value), c("update:modelValue", ce), c("query-change", "");
|
|
20614
20614
|
}, Oe = (ce) => {
|
|
20615
|
-
|
|
20615
|
+
W.value = ce, c("query-change", ce);
|
|
20616
20616
|
}, Pe = (ce, pe) => {
|
|
20617
20617
|
var Z;
|
|
20618
20618
|
ce.keyCode === 27 && (pe.value = !1), (ce.code === "ArrowDown" || ce.code === "ArrowUp") && ((Z = d.value) == null || Z.setFocus());
|
|
@@ -20651,8 +20651,8 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
20651
20651
|
X();
|
|
20652
20652
|
return;
|
|
20653
20653
|
}
|
|
20654
|
-
const Z = new Set(pe), p = new Set(ce), A = x.value.filter((L) => p.has(L.value)),
|
|
20655
|
-
|
|
20654
|
+
const Z = new Set(pe), p = new Set(ce), A = x.value.filter((L) => p.has(L.value)), z = N.value.filter((L) => !p.has(L.value) && Z.has(L.value));
|
|
20655
|
+
z.length && Ie(z), A.length && we(A);
|
|
20656
20656
|
}
|
|
20657
20657
|
}), ve(() => u.items, (ce, pe) => {
|
|
20658
20658
|
var Z, p;
|
|
@@ -20660,8 +20660,8 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
20660
20660
|
x.value = i(u.items);
|
|
20661
20661
|
for (let A = 0; A < x.value.length; A++) {
|
|
20662
20662
|
x.value[A].selected === void 0 && (x.value[A].selected = !1);
|
|
20663
|
-
let
|
|
20664
|
-
if (
|
|
20663
|
+
let z = `${(p = (Z = x.value[A].label) == null ? void 0 : Z.replace(/ /gi, "-")) == null ? void 0 : p.replace(/[^a-z0-9-_]/gi, "")}-${A}`;
|
|
20664
|
+
if (z.includes("undefined") && (z = `multiselect-item-label-${A}`), x.value[A].key = z, u.modelValue.includes(x.value[A].value) || x.value[A].selected) {
|
|
20665
20665
|
const L = x.value[A];
|
|
20666
20666
|
L.selected = !0, N.value.filter((le) => le.value === L.value).length || N.value.push(L), j.value.filter((le) => le.value === L.value).length || j.value.push(L);
|
|
20667
20667
|
}
|
|
@@ -20697,7 +20697,7 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
20697
20697
|
g.value ? {
|
|
20698
20698
|
name: "tooltip",
|
|
20699
20699
|
fn: O(() => [
|
|
20700
|
-
|
|
20700
|
+
H(ce.$slots, "label-tooltip", {}, void 0, !0)
|
|
20701
20701
|
]),
|
|
20702
20702
|
key: "0"
|
|
20703
20703
|
} : void 0
|
|
@@ -20706,14 +20706,14 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
20706
20706
|
]) : F("", !0),
|
|
20707
20707
|
R("div", YP, [
|
|
20708
20708
|
K(T(yo), null, {
|
|
20709
|
-
default: O(({ isToggled: A, toggle:
|
|
20709
|
+
default: O(({ isToggled: A, toggle: z }) => [
|
|
20710
20710
|
K(pr, He({
|
|
20711
20711
|
ref_key: "popper",
|
|
20712
20712
|
ref: B,
|
|
20713
20713
|
"hide-close-icon": ""
|
|
20714
20714
|
}, Ve.value, {
|
|
20715
|
-
onClose: () =>
|
|
20716
|
-
onOpen: () =>
|
|
20715
|
+
onClose: () => U(!1, A, z),
|
|
20716
|
+
onOpen: () => U(!0, A, z)
|
|
20717
20717
|
}), {
|
|
20718
20718
|
content: O(() => [
|
|
20719
20719
|
R("div", {
|
|
@@ -20731,7 +20731,7 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
20731
20731
|
autocomplete: "off",
|
|
20732
20732
|
class: "multiselect-dropdown-input",
|
|
20733
20733
|
"data-testid": "multiselect-dropdown-input",
|
|
20734
|
-
"model-value":
|
|
20734
|
+
"model-value": W.value,
|
|
20735
20735
|
placeholder: e.searchPlaceholder || o,
|
|
20736
20736
|
type: "text",
|
|
20737
20737
|
onClick: pe[5] || (pe[5] = qe(() => {
|
|
@@ -20753,7 +20753,7 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
20753
20753
|
onSelected: $e
|
|
20754
20754
|
}, {
|
|
20755
20755
|
content: O(({ item: L }) => [
|
|
20756
|
-
|
|
20756
|
+
H(ce.$slots, "item-template", {
|
|
20757
20757
|
class: "multiselect-item",
|
|
20758
20758
|
item: L
|
|
20759
20759
|
}, void 0, !0)
|
|
@@ -20764,12 +20764,12 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
20764
20764
|
key: "multiselect-add-item",
|
|
20765
20765
|
class: "multiselect-add-item",
|
|
20766
20766
|
"data-testid": "multiselect-add-item",
|
|
20767
|
-
item: { label: `${
|
|
20767
|
+
item: { label: `${W.value} (Add new value)`, value: "add_item", disabled: !e.itemCreationValidator(W.value) },
|
|
20768
20768
|
onSelected: tt
|
|
20769
20769
|
}, {
|
|
20770
20770
|
content: O(() => [
|
|
20771
20771
|
R("div", VP, [
|
|
20772
|
-
de(ne(
|
|
20772
|
+
de(ne(W.value) + " ", 1),
|
|
20773
20773
|
pe[10] || (pe[10] = R("span", { class: "select-item-new-indicator" }, "(Add new value)", -1))
|
|
20774
20774
|
])
|
|
20775
20775
|
]),
|
|
@@ -20783,7 +20783,7 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
20783
20783
|
})) : F("", !0)
|
|
20784
20784
|
]),
|
|
20785
20785
|
ce.$slots.empty && !e.loading && !I.value.length ? (h(), D("div", jP, [
|
|
20786
|
-
|
|
20786
|
+
H(ce.$slots, "empty", {}, void 0, !0)
|
|
20787
20787
|
])) : F("", !0)
|
|
20788
20788
|
], 32),
|
|
20789
20789
|
e.dropdownFooterText || ce.$slots["dropdown-footer-text"] ? (h(), D("div", {
|
|
@@ -20791,7 +20791,7 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
20791
20791
|
class: ue(["dropdown-footer", `dropdown-footer-${e.dropdownFooterTextPosition}`]),
|
|
20792
20792
|
"data-testid": "dropdown-footer"
|
|
20793
20793
|
}, [
|
|
20794
|
-
|
|
20794
|
+
H(ce.$slots, "dropdown-footer-text", {}, () => [
|
|
20795
20795
|
de(ne(e.dropdownFooterText), 1)
|
|
20796
20796
|
], !0)
|
|
20797
20797
|
], 2)) : F("", !0)
|
|
@@ -20820,7 +20820,7 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
20820
20820
|
class: ue(["multiselect-input", { "is-readonly": Ee.value }]),
|
|
20821
20821
|
"data-testid": "multiselect-input",
|
|
20822
20822
|
disabled: Ce.value,
|
|
20823
|
-
"model-value":
|
|
20823
|
+
"model-value": W.value,
|
|
20824
20824
|
placeholder: Q.value,
|
|
20825
20825
|
readonly: Ee.value ? !0 : void 0,
|
|
20826
20826
|
type: "text",
|
|
@@ -20936,8 +20936,8 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
20936
20936
|
style: Ne(et.value),
|
|
20937
20937
|
tabindex: "-1"
|
|
20938
20938
|
}, [
|
|
20939
|
-
(h(!0), D(De, null, Be(j.value, (A,
|
|
20940
|
-
key: `${T(C)}-${A.key ? A.key :
|
|
20939
|
+
(h(!0), D(De, null, Be(j.value, (A, z) => (h(), G(Or, {
|
|
20940
|
+
key: `${T(C)}-${A.key ? A.key : z}-badge`,
|
|
20941
20941
|
"aria-hidden": "true",
|
|
20942
20942
|
class: "multiselect-selection-badge",
|
|
20943
20943
|
"icon-before": !1
|
|
@@ -21060,7 +21060,7 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
21060
21060
|
}), mt({
|
|
21061
21061
|
default: O(() => [
|
|
21062
21062
|
d.$slots.default || e.message ? (h(), D("div", t7, [
|
|
21063
|
-
|
|
21063
|
+
H(d.$slots, "default", {}, () => [
|
|
21064
21064
|
R("p", a7, ne(e.message), 1)
|
|
21065
21065
|
], !0)
|
|
21066
21066
|
])) : F("", !0),
|
|
@@ -21088,7 +21088,7 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
21088
21088
|
d.$slots.title ? {
|
|
21089
21089
|
name: "title",
|
|
21090
21090
|
fn: O(() => [
|
|
21091
|
-
|
|
21091
|
+
H(d.$slots, "title", {}, void 0, !0)
|
|
21092
21092
|
]),
|
|
21093
21093
|
key: "0"
|
|
21094
21094
|
} : void 0
|
|
@@ -21200,7 +21200,7 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
21200
21200
|
}, [
|
|
21201
21201
|
ut((h(), G(hn, He(e.labelAttributes, { class: "radio-label" }), mt({
|
|
21202
21202
|
default: O(() => [
|
|
21203
|
-
|
|
21203
|
+
H(S.$slots, "default", {}, () => [
|
|
21204
21204
|
de(ne(e.label), 1)
|
|
21205
21205
|
], !0)
|
|
21206
21206
|
]),
|
|
@@ -21209,7 +21209,7 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
21209
21209
|
c.value ? {
|
|
21210
21210
|
name: "tooltip",
|
|
21211
21211
|
fn: O(() => [
|
|
21212
|
-
|
|
21212
|
+
H(S.$slots, "tooltip", {}, void 0, !0)
|
|
21213
21213
|
]),
|
|
21214
21214
|
key: "0"
|
|
21215
21215
|
} : void 0
|
|
@@ -21217,7 +21217,7 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
21217
21217
|
[y, { for: T(i) }]
|
|
21218
21218
|
]),
|
|
21219
21219
|
o.value ? (h(), D("div", u7, [
|
|
21220
|
-
|
|
21220
|
+
H(S.$slots, "description", {}, () => [
|
|
21221
21221
|
R("p", null, ne(e.description), 1)
|
|
21222
21222
|
], !0)
|
|
21223
21223
|
])) : F("", !0)
|
|
@@ -21231,11 +21231,11 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
21231
21231
|
onKeyup: Ct(v, ["space"])
|
|
21232
21232
|
}, [
|
|
21233
21233
|
S.$slots.default ? (h(), D("span", d7, [
|
|
21234
|
-
|
|
21234
|
+
H(S.$slots, "default", {}, void 0, !0)
|
|
21235
21235
|
])) : F("", !0),
|
|
21236
21236
|
e.label ? (h(), D("span", f7, ne(e.label), 1)) : F("", !0),
|
|
21237
21237
|
u.value ? (h(), D("span", v7, [
|
|
21238
|
-
|
|
21238
|
+
H(S.$slots, "description", {}, () => [
|
|
21239
21239
|
de(ne(e.description), 1)
|
|
21240
21240
|
], !0)
|
|
21241
21241
|
])) : F("", !0)
|
|
@@ -21282,7 +21282,7 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
21282
21282
|
]
|
|
21283
21283
|
}, [
|
|
21284
21284
|
R("span", w7, [
|
|
21285
|
-
|
|
21285
|
+
H(i.$slots, "content", {}, () => [
|
|
21286
21286
|
de(ne(e.item.label), 1)
|
|
21287
21287
|
], !0)
|
|
21288
21288
|
])
|
|
@@ -21338,7 +21338,7 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
21338
21338
|
onSelected: i
|
|
21339
21339
|
}, {
|
|
21340
21340
|
content: O(() => [
|
|
21341
|
-
|
|
21341
|
+
H(f.$slots, "content", { item: g }, void 0, !0)
|
|
21342
21342
|
]),
|
|
21343
21343
|
_: 2
|
|
21344
21344
|
}, 1032, ["item", "onArrowDown", "onArrowUp"]))), 128)),
|
|
@@ -21359,7 +21359,7 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
21359
21359
|
onSelected: i
|
|
21360
21360
|
}, {
|
|
21361
21361
|
content: O(() => [
|
|
21362
|
-
|
|
21362
|
+
H(f.$slots, "content", { item: k }, void 0, !0)
|
|
21363
21363
|
]),
|
|
21364
21364
|
_: 2
|
|
21365
21365
|
}, 1032, ["item", "onArrowDown", "onArrowUp"]))), 128))
|
|
@@ -21510,34 +21510,34 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
21510
21510
|
},
|
|
21511
21511
|
emits: ["selected", "input", "change", "update:modelValue", "query-change", "item-added", "item-removed"],
|
|
21512
21512
|
setup(e, { emit: t }) {
|
|
21513
|
-
Rt((
|
|
21514
|
-
|
|
21515
|
-
|
|
21516
|
-
"
|
|
21513
|
+
Rt((U) => ({
|
|
21514
|
+
"78fe71c2": ae.value,
|
|
21515
|
+
c4523bfc: x.value,
|
|
21516
|
+
"24b78ea0": I.value
|
|
21517
21517
|
}));
|
|
21518
21518
|
const { getSizeFromString: a, stripRequiredLabel: n } = xt(), r = e, i = t, s = Kt(), l = Mt(), o = E(!1), u = E(), c = b(() => {
|
|
21519
|
-
var
|
|
21520
|
-
return !!((
|
|
21519
|
+
var U;
|
|
21520
|
+
return !!((U = r.labelAttributes) != null && U.info || l["label-tooltip"]);
|
|
21521
21521
|
}), d = b(() => s.required !== void 0 && String(s.required) !== "false"), f = b(() => s.disabled !== void 0 && String(s.disabled) !== "false"), v = b(() => s.readonly !== void 0 && String(s.readonly) !== "false"), g = b(() => !!(l["dropdown-footer-text"] || r.dropdownFooterText)), k = {
|
|
21522
21522
|
popoverClasses: `select-popover ${g.value ? `has-${r.dropdownFooterTextPosition}-dropdown-footer` : ""}`,
|
|
21523
21523
|
popoverTimeout: 0,
|
|
21524
21524
|
placement: "bottom-start",
|
|
21525
21525
|
hideCaret: !0
|
|
21526
21526
|
}, S = E(0), m = E(null), y = E(null), w = b(() => n(r.label, d.value)), C = E(""), $ = b(() => {
|
|
21527
|
-
var
|
|
21528
|
-
return !(!C.value || (fe = (
|
|
21529
|
-
}), M = yt(), P = E(null), Y = E([]), V = E(!1),
|
|
21527
|
+
var U, fe;
|
|
21528
|
+
return !(!C.value || (fe = (U = Y.value) == null ? void 0 : U.filter((we) => we.label === C.value)) != null && fe.length);
|
|
21529
|
+
}), M = yt(), P = E(null), Y = E([]), V = E(!1), W = E(), q = E(), B = b({
|
|
21530
21530
|
get() {
|
|
21531
21531
|
return r.modelValue;
|
|
21532
21532
|
},
|
|
21533
|
-
set(
|
|
21533
|
+
set(U) {
|
|
21534
21534
|
var we;
|
|
21535
|
-
const fe = (we = Y.value) == null ? void 0 : we.filter((Ie) => Ie.value ===
|
|
21536
|
-
fe != null && fe.length ? Ce(fe[0]) :
|
|
21535
|
+
const fe = (we = Y.value) == null ? void 0 : we.filter((Ie) => Ie.value === U);
|
|
21536
|
+
fe != null && fe.length ? Ce(fe[0]) : U || Ee();
|
|
21537
21537
|
}
|
|
21538
21538
|
}), x = b(() => a(r.width || "100%")), I = E(""), N = b(() => {
|
|
21539
|
-
const
|
|
21540
|
-
return delete
|
|
21539
|
+
const U = { ...s };
|
|
21540
|
+
return delete U.class, U;
|
|
21541
21541
|
}), j = b(() => ({
|
|
21542
21542
|
...k,
|
|
21543
21543
|
...r.kpopAttributes,
|
|
@@ -21546,109 +21546,109 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
21546
21546
|
maxWidth: String(I.value),
|
|
21547
21547
|
disabled: f.value || v.value
|
|
21548
21548
|
})), ae = b(() => a(r.dropdownMaxHeight)), J = b(() => ({ ...j.value })), ee = b(() => r.placeholder || s.placeholder || "Select..."), _ = b(() => !f.value && r.clearable && !!P.value), se = b(() => !!(P.value && (l["selected-item-template"] || r.reuseItemTemplate && l["item-template"]))), oe = b(() => {
|
|
21549
|
-
let
|
|
21550
|
-
!r.enableFiltering || r.filterFunction({ query: C.value, items: Y.value }) === !0 ?
|
|
21551
|
-
const fe =
|
|
21549
|
+
let U = [];
|
|
21550
|
+
!r.enableFiltering || r.filterFunction({ query: C.value, items: Y.value }) === !0 ? U = Y.value : U = r.filterFunction({ query: C.value, items: Y.value });
|
|
21551
|
+
const fe = U.filter((Ie) => !Ie.group), we = U.filter((Ie) => Ie.group).sort((Ie, $e) => Ie.group.toLowerCase().localeCompare($e.group.toLowerCase()));
|
|
21552
21552
|
return [...fe, ...we];
|
|
21553
|
-
}), ke = (
|
|
21553
|
+
}), ke = (U) => {
|
|
21554
21554
|
if (!r.enableFiltering)
|
|
21555
|
-
return
|
|
21555
|
+
return U.preventDefault(), !1;
|
|
21556
21556
|
}, be = () => {
|
|
21557
21557
|
var we, Ie;
|
|
21558
21558
|
if (!r.enableItemCreation || !C.value || !$.value)
|
|
21559
21559
|
return;
|
|
21560
|
-
const
|
|
21560
|
+
const U = (((we = Y.value) == null ? void 0 : we.length) || 0) + 1, fe = {
|
|
21561
21561
|
label: lo(C.value),
|
|
21562
21562
|
value: yt(),
|
|
21563
|
-
key: `${(Ie = lo(C.value).replace(/ /gi, "-")) == null ? void 0 : Ie.replace(/[^a-z0-9-_]/gi, "")}-${
|
|
21563
|
+
key: `${(Ie = lo(C.value).replace(/ /gi, "-")) == null ? void 0 : Ie.replace(/[^a-z0-9-_]/gi, "")}-${U}`,
|
|
21564
21564
|
custom: !0
|
|
21565
21565
|
};
|
|
21566
21566
|
i("item-added", fe), Ce(fe, !0), C.value = "";
|
|
21567
|
-
}, Ce = (
|
|
21567
|
+
}, Ce = (U, fe) => {
|
|
21568
21568
|
var we, Ie;
|
|
21569
|
-
fe && ((we = Y.value) == null || we.push(
|
|
21569
|
+
fe && ((we = Y.value) == null || we.push(U)), (Ie = Y.value) == null || Ie.forEach(($e, tt) => {
|
|
21570
21570
|
var vt, X, Oe;
|
|
21571
|
-
$e.key ===
|
|
21572
|
-
}), C.value =
|
|
21571
|
+
$e.key === U.key ? ($e.selected = !0, $e.key = (vt = $e == null ? void 0 : $e.key) != null && vt.includes("-selected") ? $e.key : `${$e.key}-selected`, P.value = $e) : $e.selected ? ($e.selected = !1, $e.key = (X = $e == null ? void 0 : $e.key) == null ? void 0 : X.replace(/-selected/gi, ""), $e.custom && ((Oe = Y.value) == null || Oe.splice(tt, 1), i("item-removed", $e))) : $e.selected = !1;
|
|
21572
|
+
}), C.value = U.label;
|
|
21573
21573
|
}, Ee = () => {
|
|
21574
|
-
var
|
|
21575
|
-
(
|
|
21574
|
+
var U;
|
|
21575
|
+
(U = Y.value) == null || U.forEach((fe, we) => {
|
|
21576
21576
|
var Ie, $e;
|
|
21577
21577
|
fe.selected = !1, fe.key = (Ie = fe == null ? void 0 : fe.key) == null ? void 0 : Ie.replace(/-selected/gi, ""), fe.custom && (($e = Y.value) == null || $e.splice(we, 1), i("item-removed", fe));
|
|
21578
21578
|
}), P.value = null, C.value = "", i("input", null), i("change", null), i("update:modelValue", null);
|
|
21579
|
-
}, Le = E(null), Ye = (
|
|
21579
|
+
}, Le = E(null), Ye = (U, fe) => {
|
|
21580
21580
|
var Ie, $e;
|
|
21581
|
-
if (
|
|
21581
|
+
if (U.keyCode === 27) {
|
|
21582
21582
|
fe.value = !1;
|
|
21583
21583
|
return;
|
|
21584
21584
|
}
|
|
21585
21585
|
const we = (Ie = q.value) == null ? void 0 : Ie.children[0];
|
|
21586
|
-
!fe.value && we && we.click(), (
|
|
21587
|
-
}, We = (
|
|
21588
|
-
C.value !==
|
|
21586
|
+
!fe.value && we && we.click(), (U.code === "ArrowDown" || U.code === "ArrowUp") && fe.value && (($e = Le.value) == null || $e.setFocus());
|
|
21587
|
+
}, We = (U) => {
|
|
21588
|
+
C.value !== U && (C.value = U);
|
|
21589
21589
|
}, at = () => {
|
|
21590
21590
|
V.value = !0, i("query-change", C.value);
|
|
21591
21591
|
}, Ve = () => {
|
|
21592
21592
|
V.value = !1;
|
|
21593
21593
|
}, Qe = () => {
|
|
21594
|
-
var
|
|
21595
|
-
r.enableFiltering || (we = (fe = (
|
|
21596
|
-
}, Je = (
|
|
21594
|
+
var U, fe, we;
|
|
21595
|
+
r.enableFiltering || (we = (fe = (U = m.value) == null ? void 0 : U.$el) == null ? void 0 : fe.querySelector("input")) == null || we.blur();
|
|
21596
|
+
}, Je = (U) => {
|
|
21597
21597
|
var fe;
|
|
21598
|
-
(f.value || ((fe =
|
|
21599
|
-
}, et = (
|
|
21600
|
-
|
|
21601
|
-
}, Q = (
|
|
21602
|
-
o.value = !1, P.value && (C.value = P.value.label), fe &&
|
|
21603
|
-
}, te = (
|
|
21604
|
-
o.value = !0, r.enableFiltering && (C.value = ""),
|
|
21598
|
+
(f.value || ((fe = U == null ? void 0 : U.target) == null ? void 0 : fe.dataset.propagateClicks) === "false") && U.stopPropagation();
|
|
21599
|
+
}, et = (U) => {
|
|
21600
|
+
U();
|
|
21601
|
+
}, Q = (U, fe) => {
|
|
21602
|
+
o.value = !1, P.value && (C.value = P.value.label), fe && U();
|
|
21603
|
+
}, te = (U) => {
|
|
21604
|
+
o.value = !0, r.enableFiltering && (C.value = ""), U();
|
|
21605
21605
|
}, me = () => {
|
|
21606
|
-
var
|
|
21606
|
+
var U, fe, we, Ie, $e;
|
|
21607
21607
|
if (!s.id) {
|
|
21608
|
-
const tt = (we = (fe = (
|
|
21608
|
+
const tt = (we = (fe = (U = m.value) == null ? void 0 : U.$el) == null ? void 0 : fe.querySelector("input")) == null ? void 0 : we.id;
|
|
21609
21609
|
tt && (($e = (Ie = y.value) == null ? void 0 : Ie.$el) == null || $e.setAttribute("for", tt));
|
|
21610
21610
|
}
|
|
21611
21611
|
};
|
|
21612
|
-
return ve(B, (
|
|
21612
|
+
return ve(B, (U, fe) => {
|
|
21613
21613
|
var we;
|
|
21614
|
-
if (
|
|
21615
|
-
const Ie = (we = Y.value) == null ? void 0 : we.filter(($e) => $e.value ===
|
|
21616
|
-
Ie != null && Ie.length ? Ce(Ie[0]) :
|
|
21614
|
+
if (U !== fe) {
|
|
21615
|
+
const Ie = (we = Y.value) == null ? void 0 : we.filter(($e) => $e.value === U);
|
|
21616
|
+
Ie != null && Ie.length ? Ce(Ie[0]) : U || Ee();
|
|
21617
21617
|
}
|
|
21618
|
-
}), ve(() => r.items, (
|
|
21618
|
+
}), ve(() => r.items, (U, fe) => {
|
|
21619
21619
|
var we, Ie, $e, tt, vt;
|
|
21620
|
-
if (JSON.stringify(
|
|
21620
|
+
if (JSON.stringify(U) !== JSON.stringify(fe)) {
|
|
21621
21621
|
Y.value = JSON.parse(JSON.stringify(r.items)), (we = Y.value) != null && we.length && (P.value = null);
|
|
21622
21622
|
for (let X = 0; X < ((Ie = Y.value) == null ? void 0 : Ie.length); X++) {
|
|
21623
21623
|
Y.value[X].selected === void 0 && (Y.value[X].selected = !1);
|
|
21624
21624
|
let Oe = `${(tt = ($e = Y.value[X].label) == null ? void 0 : $e.replace(/ /gi, "-")) == null ? void 0 : tt.replace(/[^a-z0-9-_]/gi, "")}-${X}`;
|
|
21625
21625
|
Oe.includes("undefined") && (Oe = `select-item-label-${X}`), Y.value[X].key = Oe, (Y.value[X].value === r.modelValue || Y.value[X].selected) && (Y.value[X].selected = !0, P.value = Y.value[X], Y.value[X].key += "-selected", V.value || (C.value = P.value.label)), ((vt = P.value) == null ? void 0 : vt.value) === Y.value[X].value && (Y.value[X].selected = !0);
|
|
21626
21626
|
}
|
|
21627
|
-
|
|
21628
|
-
|
|
21627
|
+
W.value && typeof W.value.updatePopper == "function" && ht(() => {
|
|
21628
|
+
W.value.updatePopper();
|
|
21629
21629
|
});
|
|
21630
21630
|
}
|
|
21631
|
-
}, { deep: !0, immediate: !0 }), ve(C, (
|
|
21632
|
-
i("query-change",
|
|
21633
|
-
}), ve(P, (
|
|
21634
|
-
|
|
21631
|
+
}, { deep: !0, immediate: !0 }), ve(C, (U) => {
|
|
21632
|
+
i("query-change", U);
|
|
21633
|
+
}), ve(P, (U, fe) => {
|
|
21634
|
+
U && U !== fe && (i("selected", U), i("input", U.value), i("change", U), i("update:modelValue", U.value));
|
|
21635
21635
|
}, { deep: !0 }), ve(() => s.id, async () => {
|
|
21636
21636
|
S.value++, await ht(), me();
|
|
21637
21637
|
}, { immediate: !0 }), ot(() => {
|
|
21638
21638
|
q.value && (u.value = Nn.create(() => {
|
|
21639
|
-
var
|
|
21640
|
-
I.value = `${(
|
|
21641
|
-
}), u.value.observe(q.value)), me(), Wr(document, "keydown", (
|
|
21639
|
+
var U;
|
|
21640
|
+
I.value = `${(U = q.value) == null ? void 0 : U.offsetWidth}px`;
|
|
21641
|
+
}), u.value.observe(q.value)), me(), Wr(document, "keydown", (U) => {
|
|
21642
21642
|
var fe, we;
|
|
21643
|
-
!r.enableFiltering && ((fe = document.activeElement) == null ? void 0 : fe.tagName) === "BODY" && !V.value && o.value && (
|
|
21643
|
+
!r.enableFiltering && ((fe = document.activeElement) == null ? void 0 : fe.tagName) === "BODY" && !V.value && o.value && (U.code === "ArrowDown" || U.code === "ArrowUp") && (U.preventDefault(), (we = Le.value) == null || we.setFocus());
|
|
21644
21644
|
});
|
|
21645
21645
|
}), ea(() => {
|
|
21646
|
-
var
|
|
21647
|
-
q.value && ((
|
|
21648
|
-
}), (
|
|
21646
|
+
var U;
|
|
21647
|
+
q.value && ((U = u.value) == null || U.unobserve(q.value));
|
|
21648
|
+
}), (U, fe) => {
|
|
21649
21649
|
const we = Yt("bind-once");
|
|
21650
21650
|
return h(), D("div", {
|
|
21651
|
-
class: ue(["k-select", [
|
|
21651
|
+
class: ue(["k-select", [U.$attrs.class]])
|
|
21652
21652
|
}, [
|
|
21653
21653
|
e.label ? (h(), G(hn, He({
|
|
21654
21654
|
key: 0,
|
|
@@ -21656,7 +21656,7 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
21656
21656
|
ref: y
|
|
21657
21657
|
}, e.labelAttributes, {
|
|
21658
21658
|
"data-testid": "select-label",
|
|
21659
|
-
for:
|
|
21659
|
+
for: U.$attrs.id ? String(U.$attrs.id) : void 0,
|
|
21660
21660
|
required: d.value
|
|
21661
21661
|
}), mt({
|
|
21662
21662
|
default: O(() => [
|
|
@@ -21667,7 +21667,7 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
21667
21667
|
c.value ? {
|
|
21668
21668
|
name: "tooltip",
|
|
21669
21669
|
fn: O(() => [
|
|
21670
|
-
|
|
21670
|
+
H(U.$slots, "label-tooltip", {}, void 0, !0)
|
|
21671
21671
|
]),
|
|
21672
21672
|
key: "0"
|
|
21673
21673
|
} : void 0
|
|
@@ -21676,7 +21676,7 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
21676
21676
|
default: O(({ toggle: Ie, isToggled: $e }) => [
|
|
21677
21677
|
K(pr, He({
|
|
21678
21678
|
ref_key: "popperElement",
|
|
21679
|
-
ref:
|
|
21679
|
+
ref: W
|
|
21680
21680
|
}, J.value, {
|
|
21681
21681
|
"close-on-popover-click": "",
|
|
21682
21682
|
"hide-close-icon": "",
|
|
@@ -21689,7 +21689,7 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
21689
21689
|
"aria-live": e.enableFiltering ? "polite" : "off"
|
|
21690
21690
|
}, [
|
|
21691
21691
|
e.enableFiltering && e.loading ? (h(), D("div", x7, [
|
|
21692
|
-
|
|
21692
|
+
H(U.$slots, "loading", {}, () => [
|
|
21693
21693
|
K(T(ri), {
|
|
21694
21694
|
class: "loading-icon",
|
|
21695
21695
|
title: "Loading"
|
|
@@ -21703,18 +21703,18 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
21703
21703
|
onSelected: Ce
|
|
21704
21704
|
}, {
|
|
21705
21705
|
content: O(({ item: tt }) => [
|
|
21706
|
-
|
|
21706
|
+
H(U.$slots, "item-template", {
|
|
21707
21707
|
class: "select-item-label select-item-desc",
|
|
21708
21708
|
item: tt
|
|
21709
21709
|
}, void 0, !0)
|
|
21710
21710
|
]),
|
|
21711
21711
|
_: 3
|
|
21712
21712
|
}, 8, ["items"]),
|
|
21713
|
-
!oe.value.length && !
|
|
21713
|
+
!oe.value.length && !U.$slots.empty && !e.enableItemCreation ? (h(), G(uo, {
|
|
21714
21714
|
key: 0,
|
|
21715
21715
|
item: { label: "No results", value: "no_results", disabled: !0 }
|
|
21716
21716
|
})) : F("", !0),
|
|
21717
|
-
!oe.value.length && $.value && !
|
|
21717
|
+
!oe.value.length && $.value && !U.$slots.empty && e.enableItemCreation ? (h(), G(uo, {
|
|
21718
21718
|
key: "select-add-item",
|
|
21719
21719
|
class: "select-add-item",
|
|
21720
21720
|
"data-testid": "select-add-item",
|
|
@@ -21730,17 +21730,17 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
21730
21730
|
_: 1
|
|
21731
21731
|
}, 8, ["item"])) : F("", !0),
|
|
21732
21732
|
g.value && e.dropdownFooterTextPosition === "static" ? (h(), D("div", M7, [
|
|
21733
|
-
|
|
21733
|
+
H(U.$slots, "dropdown-footer-text", {}, () => [
|
|
21734
21734
|
de(ne(e.dropdownFooterText), 1)
|
|
21735
21735
|
], !0)
|
|
21736
21736
|
])) : F("", !0)
|
|
21737
21737
|
])),
|
|
21738
|
-
!e.loading && !oe.value.length &&
|
|
21739
|
-
|
|
21738
|
+
!e.loading && !oe.value.length && U.$slots.empty ? (h(), D("div", E7, [
|
|
21739
|
+
H(U.$slots, "empty", {}, void 0, !0)
|
|
21740
21740
|
])) : F("", !0)
|
|
21741
21741
|
], 8, D7),
|
|
21742
21742
|
g.value && e.dropdownFooterTextPosition === "sticky" ? (h(), D("div", I7, [
|
|
21743
|
-
|
|
21743
|
+
H(U.$slots, "dropdown-footer-text", {}, () => [
|
|
21744
21744
|
de(ne(e.dropdownFooterText), 1)
|
|
21745
21745
|
], !0)
|
|
21746
21746
|
])) : F("", !0)
|
|
@@ -21797,19 +21797,12 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
21797
21797
|
]),
|
|
21798
21798
|
_: 2
|
|
21799
21799
|
}, [
|
|
21800
|
-
|
|
21801
|
-
name: "before",
|
|
21802
|
-
fn: O(() => [
|
|
21803
|
-
z(W.$slots, "before", {}, void 0, !0)
|
|
21804
|
-
]),
|
|
21805
|
-
key: "0"
|
|
21806
|
-
} : void 0,
|
|
21807
|
-
W.$slots["label-tooltip"] ? {
|
|
21800
|
+
U.$slots["label-tooltip"] ? {
|
|
21808
21801
|
name: "label-tooltip",
|
|
21809
21802
|
fn: O(() => [
|
|
21810
|
-
|
|
21803
|
+
H(U.$slots, "label-tooltip", {}, void 0, !0)
|
|
21811
21804
|
]),
|
|
21812
|
-
key: "
|
|
21805
|
+
key: "0"
|
|
21813
21806
|
} : void 0
|
|
21814
21807
|
]), 1040, ["class", "disabled", "error", "model-value", "placeholder", "readonly", "onKeyup"])),
|
|
21815
21808
|
K(ia, { name: "kongponents-fade-transition" }, {
|
|
@@ -21818,8 +21811,8 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
21818
21811
|
key: 0,
|
|
21819
21812
|
class: ue(["custom-selected-item-wrapper", { clearable: e.clearable }])
|
|
21820
21813
|
}, [
|
|
21821
|
-
|
|
21822
|
-
|
|
21814
|
+
H(U.$slots, "selected-item-template", { item: P.value }, () => [
|
|
21815
|
+
H(U.$slots, "item-template", { item: P.value }, void 0, !0)
|
|
21823
21816
|
], !0)
|
|
21824
21817
|
], 2)) : F("", !0)
|
|
21825
21818
|
]),
|
|
@@ -21841,7 +21834,7 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
21841
21834
|
], 2);
|
|
21842
21835
|
};
|
|
21843
21836
|
}
|
|
21844
|
-
}), P7 = /* @__PURE__ */ Me(O7, [["__scopeId", "data-v-
|
|
21837
|
+
}), P7 = /* @__PURE__ */ Me(O7, [["__scopeId", "data-v-9bd7f8e9"]]), N7 = { class: "k-slideout" }, B7 = { class: "slideout-header" }, L7 = {
|
|
21845
21838
|
key: 0,
|
|
21846
21839
|
class: "slideout-title",
|
|
21847
21840
|
"data-testid": "slideout-title"
|
|
@@ -21937,7 +21930,7 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
21937
21930
|
}, [
|
|
21938
21931
|
R("div", B7, [
|
|
21939
21932
|
e.title || u.$slots.title ? (h(), D("div", L7, [
|
|
21940
|
-
|
|
21933
|
+
H(u.$slots, "title", {}, () => [
|
|
21941
21934
|
de(ne(e.title), 1)
|
|
21942
21935
|
], !0)
|
|
21943
21936
|
])) : F("", !0),
|
|
@@ -21955,7 +21948,7 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
21955
21948
|
])
|
|
21956
21949
|
]),
|
|
21957
21950
|
R("div", _7, [
|
|
21958
|
-
|
|
21951
|
+
H(u.$slots, "default", {}, void 0, !0)
|
|
21959
21952
|
])
|
|
21960
21953
|
], 512)) : F("", !0)
|
|
21961
21954
|
]),
|
|
@@ -22472,7 +22465,7 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
22472
22465
|
sortColumnKey: "",
|
|
22473
22466
|
sortColumnOrder: "desc",
|
|
22474
22467
|
offset: null
|
|
22475
|
-
}, v = E([]), g = E(), k = E([]), S = E([]), m = E(""), y = E(""), w = E(""), C = b(() => k.value.filter((re) => re.hidable).length > 0), $ = b(() => !!(C.value && !l.error && !Tt.value && !l.loading && v.value && v.value.length)), M = b(() => k.value.filter((re) => re.hidable)), P = b(() => $.value ? l.tablePreferences.columnVisibility || {} : {}), Y = E($.value ? l.tablePreferences.columnVisibility || {} : {}), V = E(0),
|
|
22468
|
+
}, v = E([]), g = E(), k = E([]), S = E([]), m = E(""), y = E(""), w = E(""), C = b(() => k.value.filter((re) => re.hidable).length > 0), $ = b(() => !!(C.value && !l.error && !Tt.value && !l.loading && v.value && v.value.length)), M = b(() => k.value.filter((re) => re.hidable)), P = b(() => $.value ? l.tablePreferences.columnVisibility || {} : {}), Y = E($.value ? l.tablePreferences.columnVisibility || {} : {}), V = E(0), W = E(!1), q = E(1), B = E(15), x = E(""), I = E(""), N = E("desc"), j = E(null), ae = E([]), J = E(!0), ee = E(!1), _ = E(!1), se = b(() => !!c.toolbar || $.value), oe = b(() => ({
|
|
22476
22469
|
maxHeight: s(l.maxHeight)
|
|
22477
22470
|
})), ke = (re) => `column-${re}`, be = (re) => `tooltip-${re}`, Ce = (re) => re, Ee = (re, ye) => (Ue, Se) => {
|
|
22478
22471
|
const dt = /^on[^a-z]/, Ke = {};
|
|
@@ -22533,7 +22526,7 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
22533
22526
|
// display active sorting styles if column is currently sorted
|
|
22534
22527
|
"active-sort": l.sortable && !re.hideLabel && !!re.sortable && re.key === I.value,
|
|
22535
22528
|
[N.value]: l.sortable && re.key === I.value && !re.hideLabel,
|
|
22536
|
-
"is-scrolled":
|
|
22529
|
+
"is-scrolled": W.value,
|
|
22537
22530
|
"has-tooltip": !!re.tooltip
|
|
22538
22531
|
}), Ve = b(() => m.value ? "resizing" : y.value ? "resize-hover" : w.value ? "th-hover" : ""), Qe = b(() => {
|
|
22539
22532
|
switch (Ve.value) {
|
|
@@ -22589,7 +22582,7 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
22589
22582
|
offset: j.value
|
|
22590
22583
|
});
|
|
22591
22584
|
return v.value = ye.data, V.value = l.paginationTotalItems || ye.total || ((Ue = ye.data) == null ? void 0 : Ue.length), l.paginationOffset && ((Se = ye.pagination) != null && Se.offset ? (we.value = ye.pagination.offset, ae.value[q.value] || ae.value.push(ye.pagination.offset)) : we.value = null, J.value = ye.pagination && "hasNextPage" in ye.pagination ? ye.pagination.hasNextPage : !0), v.value.length === 0 && q.value > 1 && (q.value = 1, ae.value = [null], j.value = null), te.value = !1, ye;
|
|
22592
|
-
},
|
|
22585
|
+
}, U = () => {
|
|
22593
22586
|
const re = {
|
|
22594
22587
|
...f,
|
|
22595
22588
|
...l.initialFetcherParams
|
|
@@ -22621,12 +22614,12 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
22621
22614
|
sortColumnOrder: N.value,
|
|
22622
22615
|
data: v.value
|
|
22623
22616
|
}) : i(ye, Se, N.value, v.value) : l.paginationOffset || pe(), xe();
|
|
22624
|
-
},
|
|
22617
|
+
}, z = ({ page: re }) => {
|
|
22625
22618
|
q.value = re;
|
|
22626
22619
|
}, L = ({ pageSize: re }) => {
|
|
22627
22620
|
ae.value = [null], j.value = null, B.value = re, q.value = 1, xe();
|
|
22628
22621
|
}, le = (re) => {
|
|
22629
|
-
re && re.target && typeof re.target.scrollTop == "number" && (re.target.scrollTop > 1 ?
|
|
22622
|
+
re && re.target && typeof re.target.scrollTop == "number" && (re.target.scrollTop > 1 ? W.value = !0 : re.target.scrollTop === 0 && (W.value = !W.value));
|
|
22630
22623
|
}, ge = b(() => ({
|
|
22631
22624
|
pageSize: B.value,
|
|
22632
22625
|
sortColumnKey: I.value,
|
|
@@ -22677,12 +22670,12 @@ const YP = { "data-testid": "multiselect-container" }, FP = ["tabindex"], zP = {
|
|
|
22677
22670
|
}, { immediate: !0 }), ot(() => {
|
|
22678
22671
|
console.warn(`The Kongponents 'KTable' component is deprecated and will be removed in the next major release.
|
|
22679
22672
|
We suggest using 'KTableData' component instead.
|
|
22680
|
-
Docs: https://kongponents.konghq.com/components/table-data.html`),
|
|
22673
|
+
Docs: https://kongponents.konghq.com/components/table-data.html`), U();
|
|
22681
22674
|
}), (re, ye) => {
|
|
22682
22675
|
const Ue = Yt("bind-once");
|
|
22683
22676
|
return h(), D("div", Q7, [
|
|
22684
22677
|
se.value ? (h(), D("div", Z7, [
|
|
22685
|
-
|
|
22678
|
+
H(re.$slots, "toolbar", { state: Ot.value }, void 0, !0),
|
|
22686
22679
|
$.value ? (h(), D("div", X7, [
|
|
22687
22680
|
K(Wp, {
|
|
22688
22681
|
columns: M.value,
|
|
@@ -22697,7 +22690,7 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), W();
|
|
|
22697
22690
|
"data-testid": "table-skeleton",
|
|
22698
22691
|
type: "table"
|
|
22699
22692
|
})) : e.error ? (h(), D("div", J7, [
|
|
22700
|
-
|
|
22693
|
+
H(re.$slots, "error-state", {}, () => [
|
|
22701
22694
|
K(An, {
|
|
22702
22695
|
"icon-variant": "error",
|
|
22703
22696
|
message: e.errorStateMessage,
|
|
@@ -22722,7 +22715,7 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), W();
|
|
|
22722
22715
|
]), 1032, ["message", "title"])
|
|
22723
22716
|
], !0)
|
|
22724
22717
|
])) : !e.error && !Tt.value && !e.loading && !Ya.value && v.value && !v.value.length ? (h(), D("div", e9, [
|
|
22725
|
-
|
|
22718
|
+
H(re.$slots, "empty-state", {}, () => [
|
|
22726
22719
|
K(An, {
|
|
22727
22720
|
"icon-variant": e.emptyStateIconVariant,
|
|
22728
22721
|
message: e.emptyStateMessage,
|
|
@@ -22738,7 +22731,7 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), W();
|
|
|
22738
22731
|
onClick: ye[2] || (ye[2] = (Se) => re.$emit("empty-state-action-click"))
|
|
22739
22732
|
}, {
|
|
22740
22733
|
default: O(() => [
|
|
22741
|
-
|
|
22734
|
+
H(re.$slots, "empty-state-action-icon", {}, void 0, !0),
|
|
22742
22735
|
de(" " + ne(e.emptyStateActionMessage), 1)
|
|
22743
22736
|
]),
|
|
22744
22737
|
_: 3
|
|
@@ -22761,12 +22754,12 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), W();
|
|
|
22761
22754
|
}])
|
|
22762
22755
|
}, [
|
|
22763
22756
|
R("thead", {
|
|
22764
|
-
class: ue({ "is-scrolled":
|
|
22757
|
+
class: ue({ "is-scrolled": W.value })
|
|
22765
22758
|
}, [
|
|
22766
22759
|
R("tr", {
|
|
22767
22760
|
ref_key: "headerRow",
|
|
22768
22761
|
ref: g,
|
|
22769
|
-
class: ue({ "is-scrolled":
|
|
22762
|
+
class: ue({ "is-scrolled": W.value })
|
|
22770
22763
|
}, [
|
|
22771
22764
|
(h(!0), D(De, null, Be(S.value, (Se, dt) => (h(), D("th", {
|
|
22772
22765
|
key: `table-${T(d)}-headers-${dt}`,
|
|
@@ -22798,7 +22791,7 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), W();
|
|
|
22798
22791
|
"aria-describedby": Se.tooltip || re.$slots[be(Se.key)] ? `${be(Se.key)}-${T(d)}` : void 0,
|
|
22799
22792
|
class: ue(["table-headers-container", { resized: m.value === Se.key }])
|
|
22800
22793
|
}, [
|
|
22801
|
-
|
|
22794
|
+
H(re.$slots, ke(Se.key), {
|
|
22802
22795
|
column: Ce(Se)
|
|
22803
22796
|
}, () => [
|
|
22804
22797
|
R("span", {
|
|
@@ -22813,7 +22806,7 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), W();
|
|
|
22813
22806
|
"tooltip-id": `${be(Se.key)}-${T(d)}`
|
|
22814
22807
|
}, {
|
|
22815
22808
|
content: O(() => [
|
|
22816
|
-
|
|
22809
|
+
H(re.$slots, be(Se.key), {
|
|
22817
22810
|
column: Ce(Se)
|
|
22818
22811
|
}, () => [
|
|
22819
22812
|
de(ne(Se.tooltip), 1)
|
|
@@ -22860,7 +22853,7 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), W();
|
|
|
22860
22853
|
},
|
|
22861
22854
|
style: We.value[Ke.key]
|
|
22862
22855
|
}, go(Le.value(Se[Ke.key], Se), !0)), [
|
|
22863
|
-
|
|
22856
|
+
H(re.$slots, Ke.key, {
|
|
22864
22857
|
row: Ce(Se),
|
|
22865
22858
|
rowKey: dt,
|
|
22866
22859
|
rowValue: Se[Ke.key]
|
|
@@ -22889,7 +22882,7 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), W();
|
|
|
22889
22882
|
"total-count": V.value,
|
|
22890
22883
|
onGetNextOffset: rt,
|
|
22891
22884
|
onGetPreviousOffset: st,
|
|
22892
|
-
onPageChange:
|
|
22885
|
+
onPageChange: z,
|
|
22893
22886
|
onPageSizeChange: L
|
|
22894
22887
|
}, null, 8, ["current-page", "disable-page-jump", "initial-page-size", "neighbors", "offset", "offset-next-button-disabled", "offset-previous-button-disabled", "page-sizes", "total-count"])) : F("", !0)
|
|
22895
22888
|
]))
|
|
@@ -22923,52 +22916,57 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), W();
|
|
|
22923
22916
|
hidePanels: {
|
|
22924
22917
|
type: Boolean,
|
|
22925
22918
|
default: !1
|
|
22919
|
+
},
|
|
22920
|
+
anchorTabindex: {
|
|
22921
|
+
type: Number,
|
|
22922
|
+
default: 0,
|
|
22923
|
+
validator: (e) => e >= -1 && e <= 32767
|
|
22926
22924
|
}
|
|
22927
22925
|
},
|
|
22928
22926
|
emits: ["update:modelValue", "change"],
|
|
22929
22927
|
setup(e, { emit: t }) {
|
|
22930
|
-
const a = e, n = t, r = E(a.modelValue ? a.modelValue : a.tabs[0].hash), i = (
|
|
22931
|
-
r.value =
|
|
22932
|
-
};
|
|
22933
|
-
return ve(() => a.modelValue, (
|
|
22934
|
-
r.value =
|
|
22935
|
-
}), (
|
|
22928
|
+
const a = e, n = t, r = E(a.modelValue ? a.modelValue : a.tabs[0].hash), i = (o) => {
|
|
22929
|
+
r.value = o, n("change", o), n("update:modelValue", o);
|
|
22930
|
+
}, s = (o) => o.replace("#", ""), l = (o) => o.disabled ? "-1" : typeof a.anchorTabindex == "number" && a.anchorTabindex >= -1 && a.anchorTabindex <= 32767 ? String(a.anchorTabindex) : "0";
|
|
22931
|
+
return ve(() => a.modelValue, (o) => {
|
|
22932
|
+
r.value = o, n("change", o), n("update:modelValue", o);
|
|
22933
|
+
}), (o, u) => (h(), D("div", u9, [
|
|
22936
22934
|
R("ul", c9, [
|
|
22937
|
-
(h(!0), D(De, null, Be(e.tabs, (
|
|
22938
|
-
id: `${
|
|
22939
|
-
key:
|
|
22940
|
-
class: ue(["tab-item", { active: r.value ===
|
|
22935
|
+
(h(!0), D(De, null, Be(e.tabs, (c) => (h(), D("li", {
|
|
22936
|
+
id: `${c.hash.replace("#", "")}-tab`,
|
|
22937
|
+
key: c.hash,
|
|
22938
|
+
class: ue(["tab-item", { active: r.value === c.hash }])
|
|
22941
22939
|
}, [
|
|
22942
22940
|
R("div", {
|
|
22943
|
-
"aria-controls": e.hidePanels ? void 0 : `panel-${
|
|
22944
|
-
"aria-selected": e.hidePanels ? void 0 : r.value ===
|
|
22945
|
-
class: ue(["tab-link", { "has-panels": !e.hidePanels, disabled:
|
|
22941
|
+
"aria-controls": e.hidePanels ? void 0 : `panel-${c.hash}`,
|
|
22942
|
+
"aria-selected": e.hidePanels ? void 0 : r.value === c.hash ? "true" : "false",
|
|
22943
|
+
class: ue(["tab-link", { "has-panels": !e.hidePanels, disabled: c.disabled }]),
|
|
22946
22944
|
role: "tab",
|
|
22947
|
-
tabindex:
|
|
22948
|
-
onClick: qe((
|
|
22945
|
+
tabindex: l(c),
|
|
22946
|
+
onClick: qe((d) => c.disabled ? void 0 : i(c.hash), ["prevent"]),
|
|
22949
22947
|
onKeydown: [
|
|
22950
|
-
Ct(qe((
|
|
22951
|
-
Ct(qe((
|
|
22948
|
+
Ct(qe((d) => c.disabled ? void 0 : i(c.hash), ["prevent"]), ["enter"]),
|
|
22949
|
+
Ct(qe((d) => c.disabled ? void 0 : i(c.hash), ["prevent"]), ["space"])
|
|
22952
22950
|
]
|
|
22953
22951
|
}, [
|
|
22954
|
-
|
|
22955
|
-
R("span", null, ne(
|
|
22952
|
+
H(o.$slots, `${s(c.hash)}-anchor`, {}, () => [
|
|
22953
|
+
R("span", null, ne(c.title), 1)
|
|
22956
22954
|
], !0)
|
|
22957
22955
|
], 42, f9)
|
|
22958
22956
|
], 10, d9))), 128))
|
|
22959
22957
|
]),
|
|
22960
|
-
e.hidePanels ? F("", !0) : (h(!0), D(De, { key: 0 }, Be(e.tabs, (
|
|
22961
|
-
id: `panel-${
|
|
22962
|
-
key:
|
|
22963
|
-
"aria-labelledby": `${
|
|
22958
|
+
e.hidePanels ? F("", !0) : (h(!0), D(De, { key: 0 }, Be(e.tabs, (c, d) => (h(), D("div", {
|
|
22959
|
+
id: `panel-${d}`,
|
|
22960
|
+
key: c.hash,
|
|
22961
|
+
"aria-labelledby": `${s(c.hash)}-tab`,
|
|
22964
22962
|
class: "tab-container",
|
|
22965
22963
|
role: "tabpanel"
|
|
22966
22964
|
}, [
|
|
22967
|
-
r.value ===
|
|
22965
|
+
r.value === c.hash ? H(o.$slots, s(c.hash), { key: 0 }, void 0, !0) : F("", !0)
|
|
22968
22966
|
], 8, v9))), 128))
|
|
22969
22967
|
]));
|
|
22970
22968
|
}
|
|
22971
|
-
}), h9 = /* @__PURE__ */ Me(p9, [["__scopeId", "data-v-
|
|
22969
|
+
}), h9 = /* @__PURE__ */ Me(p9, [["__scopeId", "data-v-f17c6bd2"]]), g9 = ["aria-invalid", "rows", "value"], rs = 2048, m9 = {
|
|
22972
22970
|
inheritAttrs: !1
|
|
22973
22971
|
}, y9 = /* @__PURE__ */ ie({
|
|
22974
22972
|
...m9,
|
|
@@ -23078,7 +23076,7 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), W();
|
|
|
23078
23076
|
c.value ? {
|
|
23079
23077
|
name: "tooltip",
|
|
23080
23078
|
fn: O(() => [
|
|
23081
|
-
|
|
23079
|
+
H(C.$slots, "label-tooltip", {}, void 0, !0)
|
|
23082
23080
|
]),
|
|
23083
23081
|
key: "0"
|
|
23084
23082
|
} : void 0
|
|
@@ -24076,8 +24074,8 @@ Re.prototype = /** @lends Sortable.prototype */
|
|
|
24076
24074
|
return m(), a.insertBefore(he, $), wt = a, w(), y(!0);
|
|
24077
24075
|
} else if (n.parentNode === a) {
|
|
24078
24076
|
i = At(n);
|
|
24079
|
-
var M = 0, P, Y = he.parentNode !== a, V = !W9(he.animated && he.toRect || r, n.animated && n.toRect || i, v),
|
|
24080
|
-
Wn !== n && (P = i[
|
|
24077
|
+
var M = 0, P, Y = he.parentNode !== a, V = !W9(he.animated && he.toRect || r, n.animated && n.toRect || i, v), W = v ? "top" : "left", q = ef(n, "top", "top") || ef(he, "top", "top"), B = q ? q.scrollTop : void 0;
|
|
24078
|
+
Wn !== n && (P = i[W], Gr = !1, ki = !V && l.invertSwap || Y), M = Z9(t, n, i, v, V ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, ki, Wn === n);
|
|
24081
24079
|
var x;
|
|
24082
24080
|
if (M !== 0) {
|
|
24083
24081
|
var I = ua(he);
|
|
@@ -24092,7 +24090,7 @@ Re.prototype = /** @lends Sortable.prototype */
|
|
|
24092
24090
|
j = M === 1;
|
|
24093
24091
|
var ae = Si(gt, a, he, r, n, i, t, j);
|
|
24094
24092
|
if (ae !== !1)
|
|
24095
|
-
return (ae === 1 || ae === -1) && (j = ae === 1), hl = !0, setTimeout(j9, 30), m(), j && !N ? a.appendChild(he) : n.parentNode.insertBefore(he, j ? N : n), q && Qp(q, 0, B - q.scrollTop), wt = he.parentNode, P !== void 0 && !ki && (Pi = Math.abs(P - At(n)[
|
|
24093
|
+
return (ae === 1 || ae === -1) && (j = ae === 1), hl = !0, setTimeout(j9, 30), m(), j && !N ? a.appendChild(he) : n.parentNode.insertBefore(he, j ? N : n), q && Qp(q, 0, B - q.scrollTop), wt = he.parentNode, P !== void 0 && !ki && (Pi = Math.abs(P - At(n)[W])), w(), y(!0);
|
|
24096
24094
|
}
|
|
24097
24095
|
if (a.contains(he))
|
|
24098
24096
|
return y(!1);
|
|
@@ -24422,9 +24420,9 @@ var ps = Gp(function(e, t, a, n) {
|
|
|
24422
24420
|
ml !== a && (ml = a, Bi(), _r = t.scroll, c = t.scrollFn, _r === !0 && (_r = cn(a, !0)));
|
|
24423
24421
|
var d = 0, f = _r;
|
|
24424
24422
|
do {
|
|
24425
|
-
var v = f, g = At(v), k = g.top, S = g.bottom, m = g.left, y = g.right, w = g.width, C = g.height, $ = void 0, M = void 0, P = v.scrollWidth, Y = v.scrollHeight, V = _e(v),
|
|
24423
|
+
var v = f, g = At(v), k = g.top, S = g.bottom, m = g.left, y = g.right, w = g.width, C = g.height, $ = void 0, M = void 0, P = v.scrollWidth, Y = v.scrollHeight, V = _e(v), W = v.scrollLeft, q = v.scrollTop;
|
|
24426
24424
|
v === o ? ($ = w < P && (V.overflowX === "auto" || V.overflowX === "scroll" || V.overflowX === "visible"), M = C < Y && (V.overflowY === "auto" || V.overflowY === "scroll" || V.overflowY === "visible")) : ($ = w < P && (V.overflowX === "auto" || V.overflowX === "scroll"), M = C < Y && (V.overflowY === "auto" || V.overflowY === "scroll"));
|
|
24427
|
-
var B = $ && (Math.abs(y - r) <= s &&
|
|
24425
|
+
var B = $ && (Math.abs(y - r) <= s && W + w < P) - (Math.abs(m - r) <= s && !!W), x = M && (Math.abs(S - i) <= s && q + C < Y) - (Math.abs(k - i) <= s && !!q);
|
|
24428
24426
|
if (!Dt[d])
|
|
24429
24427
|
for (var I = 0; I <= d; I++)
|
|
24430
24428
|
Dt[I] || (Dt[I] = {});
|
|
@@ -24815,12 +24813,12 @@ const vN = {
|
|
|
24815
24813
|
onClick: qe(s, ["prevent"])
|
|
24816
24814
|
}, [
|
|
24817
24815
|
i.value ? (h(), D("div", gN, [
|
|
24818
|
-
|
|
24816
|
+
H(l.$slots, "item-icon", {}, () => [
|
|
24819
24817
|
K(T(vg), { decorative: "" })
|
|
24820
24818
|
], !0)
|
|
24821
24819
|
])) : F("", !0),
|
|
24822
24820
|
R("div", mN, [
|
|
24823
|
-
|
|
24821
|
+
H(l.$slots, "item-label", {}, () => [
|
|
24824
24822
|
de(ne(e.item.name), 1)
|
|
24825
24823
|
], !0)
|
|
24826
24824
|
])
|
|
@@ -24892,10 +24890,10 @@ const vN = {
|
|
|
24892
24890
|
}, f = (y) => {
|
|
24893
24891
|
n("selected", y);
|
|
24894
24892
|
}, v = b(() => a.level > a.maxDepth - 1), g = (y) => {
|
|
24895
|
-
var P, Y, V,
|
|
24893
|
+
var P, Y, V, W;
|
|
24896
24894
|
const w = ((Y = (P = y.relatedContext) == null ? void 0 : P.component) == null ? void 0 : Y.$attrs.level) || 0, C = (V = y.draggedContext) == null ? void 0 : V.element;
|
|
24897
24895
|
let $ = 0;
|
|
24898
|
-
return (
|
|
24896
|
+
return (W = C.children) != null && W.length && ($ = bu(C)), !(w + $ > a.maxDepth - 1);
|
|
24899
24897
|
}, k = (y) => {
|
|
24900
24898
|
var $, M;
|
|
24901
24899
|
const w = ((M = ($ = y.item) == null ? void 0 : $._underlying_vm_) == null ? void 0 : M.id) || "", C = i.value.find((P) => P.id === w);
|
|
@@ -24944,7 +24942,7 @@ const vN = {
|
|
|
24944
24942
|
onSelected: f
|
|
24945
24943
|
}, mt({
|
|
24946
24944
|
"item-label": O(() => [
|
|
24947
|
-
|
|
24945
|
+
H(y.$slots, "item-label", { item: $ }, () => [
|
|
24948
24946
|
de(ne($.name), 1)
|
|
24949
24947
|
], !0)
|
|
24950
24948
|
]),
|
|
@@ -24953,7 +24951,7 @@ const vN = {
|
|
|
24953
24951
|
y.$slots["item-icon"] ? {
|
|
24954
24952
|
name: "item-icon",
|
|
24955
24953
|
fn: O(() => [
|
|
24956
|
-
|
|
24954
|
+
H(y.$slots, "item-icon", { item: $ }, void 0, !0)
|
|
24957
24955
|
]),
|
|
24958
24956
|
key: "0"
|
|
24959
24957
|
} : void 0
|
|
@@ -24971,14 +24969,14 @@ const vN = {
|
|
|
24971
24969
|
onSelected: f
|
|
24972
24970
|
}, mt({
|
|
24973
24971
|
"item-label": O(({ item: M }) => [
|
|
24974
|
-
|
|
24972
|
+
H(y.$slots, "item-label", { item: M }, void 0, !0)
|
|
24975
24973
|
]),
|
|
24976
24974
|
_: 2
|
|
24977
24975
|
}, [
|
|
24978
24976
|
y.$slots["item-icon"] ? {
|
|
24979
24977
|
name: "item-icon",
|
|
24980
24978
|
fn: O(({ item: M }) => [
|
|
24981
|
-
|
|
24979
|
+
H(y.$slots, "item-icon", { item: M }, void 0, !0)
|
|
24982
24980
|
]),
|
|
24983
24981
|
key: "0"
|
|
24984
24982
|
} : void 0
|
|
@@ -25085,14 +25083,14 @@ const vN = {
|
|
|
25085
25083
|
onSelected: o
|
|
25086
25084
|
}, mt({
|
|
25087
25085
|
"item-label": O(({ item: v }) => [
|
|
25088
|
-
|
|
25086
|
+
H(d.$slots, "item-label", { item: v })
|
|
25089
25087
|
]),
|
|
25090
25088
|
_: 2
|
|
25091
25089
|
}, [
|
|
25092
25090
|
d.$slots["item-icon"] ? {
|
|
25093
25091
|
name: "item-icon",
|
|
25094
25092
|
fn: O(({ item: v }) => [
|
|
25095
|
-
|
|
25093
|
+
H(d.$slots, "item-icon", { item: v })
|
|
25096
25094
|
]),
|
|
25097
25095
|
key: "0"
|
|
25098
25096
|
} : void 0
|
|
@@ -25127,7 +25125,7 @@ const vN = {
|
|
|
25127
25125
|
rel: "noopener",
|
|
25128
25126
|
target: "_blank"
|
|
25129
25127
|
}, [
|
|
25130
|
-
|
|
25128
|
+
H(n.$slots, "default", {}, void 0, !0),
|
|
25131
25129
|
e.hideIcon ? F("", !0) : (h(), G(T(Jh), {
|
|
25132
25130
|
key: 0,
|
|
25133
25131
|
decorative: "",
|
|
@@ -25215,7 +25213,7 @@ const vN = {
|
|
|
25215
25213
|
}, [
|
|
25216
25214
|
!e.truncateText && r.value ? (h(), D("div", AN, [
|
|
25217
25215
|
n.value ? F("", !0) : (h(), D("div", MN, [
|
|
25218
|
-
|
|
25216
|
+
H(m.$slots, "expand-trigger", {
|
|
25219
25217
|
expand: k,
|
|
25220
25218
|
truncatedCount: d.value
|
|
25221
25219
|
}, () => [
|
|
@@ -25233,9 +25231,9 @@ const vN = {
|
|
|
25233
25231
|
ref: s,
|
|
25234
25232
|
class: "truncate-container"
|
|
25235
25233
|
}, [
|
|
25236
|
-
|
|
25234
|
+
H(m.$slots, "default", {}, void 0, !0),
|
|
25237
25235
|
!e.truncateText && n.value ? (h(), D("div", IN, [
|
|
25238
|
-
|
|
25236
|
+
H(m.$slots, "collapse-trigger", { collapse: k }, () => [
|
|
25239
25237
|
R("button", {
|
|
25240
25238
|
"aria-label": "Collapse content",
|
|
25241
25239
|
class: "collapse-trigger",
|
|
@@ -25257,7 +25255,7 @@ const vN = {
|
|
|
25257
25255
|
class: "truncate-collapse-controls"
|
|
25258
25256
|
}, [
|
|
25259
25257
|
n.value ? F("", !0) : (h(), D("div", ON, [
|
|
25260
|
-
|
|
25258
|
+
H(m.$slots, "expand-trigger", { expand: k }, () => [
|
|
25261
25259
|
K(w, {
|
|
25262
25260
|
appearance: "tertiary",
|
|
25263
25261
|
size: "small",
|
|
@@ -25271,7 +25269,7 @@ const vN = {
|
|
|
25271
25269
|
], !0)
|
|
25272
25270
|
])),
|
|
25273
25271
|
n.value ? (h(), D("div", PN, [
|
|
25274
|
-
|
|
25272
|
+
H(m.$slots, "collapse-trigger", { collapse: k }, () => [
|
|
25275
25273
|
K(w, {
|
|
25276
25274
|
appearance: "tertiary",
|
|
25277
25275
|
size: "small",
|
|
@@ -25488,7 +25486,7 @@ const vN = {
|
|
|
25488
25486
|
"kpop-attributes": { placement: "bottom-end" }
|
|
25489
25487
|
}, {
|
|
25490
25488
|
items: O(() => [
|
|
25491
|
-
|
|
25489
|
+
H(t.$slots, "items", {}, void 0, !0)
|
|
25492
25490
|
]),
|
|
25493
25491
|
default: O(() => [
|
|
25494
25492
|
K(ka, {
|
|
@@ -25587,26 +25585,26 @@ const vN = {
|
|
|
25587
25585
|
Rt((p) => ({
|
|
25588
25586
|
"056ae94d": Je.value
|
|
25589
25587
|
}));
|
|
25590
|
-
const a = e, n = t, r = Kt(), i = Mt(), s = yt(), { getSizeFromString: l } = xt(), o = (p) => typeof a.rowKey == "function" && typeof a.rowKey(p) == "string" ? a.rowKey(p) : typeof a.rowKey == "string" && a.rowKey in p && typeof p[a.rowKey] == "string" ? p[a.rowKey] : "", u = E(), c = E([]), d = E([]), f = E(""), v = E(""), g = E(""), k = b(() => c.value.filter((p) => p.hidable).length > 0), S = b(() => a.nested || !k.value || a.error ? !1 : i.toolbar ? !0 : !a.loading && !!a.data && !!a.data.length), m = b(() => a.loading || !(a.data && a.data.length)), y = b(() => c.value.filter((p) => p.hidable && p.key !== Ze.EXPANDABLE && p.key !== Ze.BULK_ACTIONS)), w = b(() => S.value ? a.tablePreferences.columnVisibility || {} : {}), C = E(S.value ? a.tablePreferences.columnVisibility || {} : {}), $ = E(!1), M = E(!1), P = E(""), Y = E("desc"), V = E(!1),
|
|
25588
|
+
const a = e, n = t, r = Kt(), i = Mt(), s = yt(), { getSizeFromString: l } = xt(), o = (p) => typeof a.rowKey == "function" && typeof a.rowKey(p) == "string" ? a.rowKey(p) : typeof a.rowKey == "string" && a.rowKey in p && typeof p[a.rowKey] == "string" ? p[a.rowKey] : "", u = E(), c = E([]), d = E([]), f = E(""), v = E(""), g = E(""), k = b(() => c.value.filter((p) => p.hidable).length > 0), S = b(() => a.nested || !k.value || a.error ? !1 : i.toolbar ? !0 : !a.loading && !!a.data && !!a.data.length), m = b(() => a.loading || !(a.data && a.data.length)), y = b(() => c.value.filter((p) => p.hidable && p.key !== Ze.EXPANDABLE && p.key !== Ze.BULK_ACTIONS)), w = b(() => S.value ? a.tablePreferences.columnVisibility || {} : {}), C = E(S.value ? a.tablePreferences.columnVisibility || {} : {}), $ = E(!1), M = E(!1), P = E(""), Y = E("desc"), V = E(!1), W = b(() => !a.hideToolbar && !a.nested && (!!i.toolbar || S.value || j.value)), q = E(!1), B = b(() => ({
|
|
25591
25589
|
maxHeight: l(a.maxHeight)
|
|
25592
25590
|
})), x = E([]), I = b(() => !a.nested && !a.error && c.value.some((p) => p.key === Ze.BULK_ACTIONS) && !!(i["bulk-action-items"] || i["bulk-actions"]) && !!a.data.every((p) => o(p))), N = E([]), j = b(() => a.nested || !I.value || a.error ? !1 : i.toolbar ? !0 : !a.loading && !!a.data && !!a.data.length), ae = b(() => {
|
|
25593
25591
|
const p = x.value.length;
|
|
25594
25592
|
return p ? p > 100 ? "99+" : String(p) : "";
|
|
25595
|
-
}), J = E(/* @__PURE__ */ new WeakMap()), ee = (p) => `column-${p}`, _ = (p) => `tooltip-${p}`, se = (p) => p, oe = (p, A) => (
|
|
25593
|
+
}), J = E(/* @__PURE__ */ new WeakMap()), ee = (p) => `column-${p}`, _ = (p) => `tooltip-${p}`, se = (p) => p, oe = (p, A) => (z, L) => {
|
|
25596
25594
|
const le = /^on[^a-z]/, ge = {};
|
|
25597
25595
|
for (const xe in A)
|
|
25598
25596
|
le.test(xe) && A[xe] && (ge[xe] = A[xe]);
|
|
25599
25597
|
return Object.keys(ge).reduce((xe, rt) => {
|
|
25600
25598
|
if (rt.indexOf(p) === 0) {
|
|
25601
25599
|
const st = rt.split(p);
|
|
25602
|
-
xe[st[1]] = (St) => ge[rt](St,
|
|
25600
|
+
xe[st[1]] = (St) => ge[rt](St, z, L);
|
|
25603
25601
|
}
|
|
25604
25602
|
return xe;
|
|
25605
25603
|
}, {});
|
|
25606
25604
|
}, ke = b(() => (p, A) => {
|
|
25607
|
-
const
|
|
25608
|
-
return (
|
|
25609
|
-
...
|
|
25605
|
+
const z = oe("onRow:", r)(A, "row"), L = oe("onCell:", r)(p, "cell"), le = ["a", "button", "label", "input", "select", 'span[role="checkbox"]'];
|
|
25606
|
+
return (z.click || L.click) && (V.value = !0), {
|
|
25607
|
+
...z,
|
|
25610
25608
|
...L,
|
|
25611
25609
|
click(ge) {
|
|
25612
25610
|
const xe = ge.target.className;
|
|
@@ -25617,14 +25615,14 @@ const vN = {
|
|
|
25617
25615
|
rt = !0;
|
|
25618
25616
|
break;
|
|
25619
25617
|
}
|
|
25620
|
-
if ((!rt || ge.target.hasAttribute("disabled")) && !st && (
|
|
25618
|
+
if ((!rt || ge.target.hasAttribute("disabled")) && !st && (z.click || L.click))
|
|
25621
25619
|
if (L.click) {
|
|
25622
25620
|
n("cell-click", { data: p });
|
|
25623
25621
|
const St = L.click(ge, p, "cell");
|
|
25624
25622
|
typeof St == "function" && St(ge, p);
|
|
25625
25623
|
} else {
|
|
25626
25624
|
n("row-click", { data: A });
|
|
25627
|
-
const St =
|
|
25625
|
+
const St = z.click(ge, A, "row");
|
|
25628
25626
|
typeof St == "function" && St(ge, A);
|
|
25629
25627
|
}
|
|
25630
25628
|
}
|
|
@@ -25634,11 +25632,11 @@ const vN = {
|
|
|
25634
25632
|
for (const A in Ee.value) {
|
|
25635
25633
|
if (!Ee.value[A])
|
|
25636
25634
|
continue;
|
|
25637
|
-
const
|
|
25635
|
+
const z = Ee.value[A] + "px";
|
|
25638
25636
|
p[A] = {
|
|
25639
|
-
width:
|
|
25640
|
-
maxWidth:
|
|
25641
|
-
minWidth:
|
|
25637
|
+
width: z,
|
|
25638
|
+
maxWidth: z,
|
|
25639
|
+
minWidth: z
|
|
25642
25640
|
};
|
|
25643
25641
|
}
|
|
25644
25642
|
return p;
|
|
@@ -25679,36 +25677,36 @@ const vN = {
|
|
|
25679
25677
|
var A;
|
|
25680
25678
|
const p = (A = Qe.value) == null ? void 0 : A.item(0);
|
|
25681
25679
|
if (p) {
|
|
25682
|
-
const
|
|
25683
|
-
if (
|
|
25684
|
-
return `${parseInt(
|
|
25680
|
+
const z = window == null ? void 0 : window.getComputedStyle(p);
|
|
25681
|
+
if (z != null && z.height)
|
|
25682
|
+
return `${parseInt(z.height, 10)}px`;
|
|
25685
25683
|
}
|
|
25686
25684
|
return "auto";
|
|
25687
25685
|
}), et = (p, A) => {
|
|
25688
25686
|
var rt;
|
|
25689
25687
|
if (p.button !== 0)
|
|
25690
25688
|
return;
|
|
25691
|
-
let
|
|
25689
|
+
let z = 0, L = 0;
|
|
25692
25690
|
f.value = A;
|
|
25693
25691
|
let le = null;
|
|
25694
25692
|
(rt = Qe.value) == null || rt.forEach((st) => {
|
|
25695
25693
|
st.getAttribute("data-testid") === `table-header-${A}` && (le = document == null ? void 0 : document.querySelector(`[data-tableid="${s}"] [data-testid="table-header-${A}"]`));
|
|
25696
25694
|
});
|
|
25697
25695
|
const ge = (st) => {
|
|
25698
|
-
const St = st.clientX -
|
|
25696
|
+
const St = st.clientX - z;
|
|
25699
25697
|
le == null || le.setAttribute("style", `width: ${L + St}px`), Ee.value[A] = L + St;
|
|
25700
25698
|
}, xe = () => {
|
|
25701
25699
|
f.value = "", document == null || document.removeEventListener("mousemove", ge), document == null || document.removeEventListener("mouseup", xe), Oe(), Pe.value && Tt();
|
|
25702
25700
|
};
|
|
25703
|
-
if (
|
|
25701
|
+
if (z = p.clientX, le) {
|
|
25704
25702
|
const st = window == null ? void 0 : window.getComputedStyle(le);
|
|
25705
25703
|
st != null && st.width && (L = parseInt(st.width, 10)), document == null || document.addEventListener("mousemove", ge), document == null || document.addEventListener("mouseup", xe);
|
|
25706
25704
|
}
|
|
25707
25705
|
}, Q = b(() => !(a.hidePagination || a.nested || a.hidePaginationWhenOptional && a.data.length && a.paginationAttributes.totalCount && a.paginationAttributes.totalCount <= a.data.length));
|
|
25708
25706
|
ve(() => a.headers, (p) => {
|
|
25709
25707
|
if (p && p.length) {
|
|
25710
|
-
const A = p.filter((le) => le.key !== Ze.BULK_ACTIONS && le.key !== Ze.ACTIONS),
|
|
25711
|
-
|
|
25708
|
+
const A = p.filter((le) => le.key !== Ze.BULK_ACTIONS && le.key !== Ze.ACTIONS), z = p.find((le) => le.key === Ze.BULK_ACTIONS), L = p.find((le) => le.key === Ze.ACTIONS);
|
|
25709
|
+
z && A.unshift(z), L && A.push(L), c.value = A;
|
|
25712
25710
|
}
|
|
25713
25711
|
}, { deep: !0, immediate: !0 });
|
|
25714
25712
|
const te = (p) => {
|
|
@@ -25716,7 +25714,7 @@ const vN = {
|
|
|
25716
25714
|
P.value && A === P.value ? Y.value === "asc" ? Y.value = "desc" : Y.value = "asc" : (P.value = A, Y.value = "asc"), Oe();
|
|
25717
25715
|
}, me = (p) => {
|
|
25718
25716
|
p && p.target && (typeof p.target.scrollTop == "number" || typeof p.target.scrollLeft == "number") && (p.target.scrollTop > 1 ? $.value = !0 : p.target.scrollTop === 0 && ($.value = !1), p.target.scrollLeft > 1 ? M.value = !0 : p.target.scrollLeft === 0 && (M.value = !1));
|
|
25719
|
-
},
|
|
25717
|
+
}, U = (p) => N.value.find((A) => A.rowKey === o(p)), fe = (p) => {
|
|
25720
25718
|
if (typeof a.rowBulkActionEnabled != "function")
|
|
25721
25719
|
return !1;
|
|
25722
25720
|
const A = a.rowBulkActionEnabled(p);
|
|
@@ -25727,15 +25725,15 @@ const vN = {
|
|
|
25727
25725
|
const A = a.rowBulkActionEnabled(p);
|
|
25728
25726
|
return typeof A == "boolean" ? "" : A.disabledTooltip || "";
|
|
25729
25727
|
}, Ie = (p, A) => {
|
|
25730
|
-
const { to:
|
|
25731
|
-
return !
|
|
25728
|
+
const { to: z } = a.rowLink(p);
|
|
25729
|
+
return !z || A === Ze.BULK_ACTIONS || A === Ze.ACTIONS ? "div" : typeof z == "object" ? "router-link" : "a";
|
|
25732
25730
|
}, $e = (p, A) => {
|
|
25733
25731
|
if (A === Ze.BULK_ACTIONS || A === Ze.ACTIONS)
|
|
25734
25732
|
return {};
|
|
25735
|
-
const { to:
|
|
25733
|
+
const { to: z, target: L } = a.rowLink(p), le = z && typeof z == "object", ge = z && typeof z == "string";
|
|
25736
25734
|
return {
|
|
25737
|
-
...le && { to:
|
|
25738
|
-
...ge && { href:
|
|
25735
|
+
...le && { to: z },
|
|
25736
|
+
...ge && { href: z },
|
|
25739
25737
|
...(le || ge) && {
|
|
25740
25738
|
...L && { target: L }
|
|
25741
25739
|
}
|
|
@@ -25751,34 +25749,34 @@ const vN = {
|
|
|
25751
25749
|
})), Oe = () => {
|
|
25752
25750
|
n("update:table-preferences", X.value);
|
|
25753
25751
|
}, Pe = b(() => !a.nested && a.data.some((p) => a.rowExpandable(p))), je = { key: Ze.EXPANDABLE, label: "Expandable rows controls", hideLabel: !0 }, nt = E([]), Et = async (p, A) => {
|
|
25754
|
-
Tt(), await ht(), nt.value.includes(p) ? nt.value = nt.value.filter((
|
|
25752
|
+
Tt(), await ht(), nt.value.includes(p) ? nt.value = nt.value.filter((z) => z !== p) : (nt.value = [...nt.value, p], n("row-expand", A));
|
|
25755
25753
|
}, la = b(() => d.value.filter((p) => p.key !== Ze.EXPANDABLE && p.key !== Ze.BULK_ACTIONS)), Bt = E({}), Tt = () => {
|
|
25756
|
-
const p = document == null ? void 0 : document.querySelector(`[data-tableid="${s}"]`), A = p == null ? void 0 : p.querySelectorAll("th"),
|
|
25754
|
+
const p = document == null ? void 0 : document.querySelector(`[data-tableid="${s}"]`), A = p == null ? void 0 : p.querySelectorAll("th"), z = {};
|
|
25757
25755
|
A == null || A.forEach((L, le) => {
|
|
25758
25756
|
const ge = L.getAttribute("data-key");
|
|
25759
25757
|
if (ge === Ze.EXPANDABLE)
|
|
25760
25758
|
return;
|
|
25761
25759
|
let xe = L.getBoundingClientRect().width;
|
|
25762
|
-
le === 1 && (xe += be), le === A.length - 1 && (xe -= 15),
|
|
25763
|
-
}), Bt.value =
|
|
25760
|
+
le === 1 && (xe += be), le === A.length - 1 && (xe -= 15), z[ge] = xe;
|
|
25761
|
+
}), Bt.value = z;
|
|
25764
25762
|
};
|
|
25765
25763
|
ve([C, c, Pe], (p) => {
|
|
25766
|
-
const [A,
|
|
25767
|
-
let le =
|
|
25764
|
+
const [A, z, L] = p;
|
|
25765
|
+
let le = z.filter((ge) => ge.key === Ze.BULK_ACTIONS ? I.value : A[ge.key] !== !1);
|
|
25768
25766
|
le.find((ge) => ge.key === Ze.EXPANDABLE) && (le = le.filter((ge) => ge.key !== Ze.EXPANDABLE)), L && le.unshift(je), JSON.stringify(le) !== JSON.stringify(d.value) && (d.value = le, Oe()), L && Tt();
|
|
25769
25767
|
}, { deep: !0, immediate: !0 }), ve(S, (p) => {
|
|
25770
25768
|
p && (C.value = a.tablePreferences.columnVisibility || {});
|
|
25771
25769
|
}, { immediate: !0 });
|
|
25772
25770
|
const Ot = E(!1), ce = b(() => {
|
|
25773
|
-
const p = N.value.filter((A) => !A.disabled && a.data.find((
|
|
25771
|
+
const p = N.value.filter((A) => !A.disabled && a.data.find((z) => o(z) === A.rowKey));
|
|
25774
25772
|
return !!p.filter((A) => A.selected).length && !!p.filter((A) => !A.selected).length;
|
|
25775
25773
|
}), pe = (p) => {
|
|
25776
25774
|
N.value.forEach((A) => {
|
|
25777
|
-
a.data.find((
|
|
25775
|
+
a.data.find((z) => o(z) === A.rowKey) && !A.disabled && (A.selected = p);
|
|
25778
25776
|
});
|
|
25779
25777
|
};
|
|
25780
25778
|
return ve([() => a.data, N], (p) => {
|
|
25781
|
-
const [A,
|
|
25779
|
+
const [A, z] = p;
|
|
25782
25780
|
if (A.forEach((L) => {
|
|
25783
25781
|
if (!J.value.get(L)) {
|
|
25784
25782
|
const le = o(L) || yt();
|
|
@@ -25786,16 +25784,16 @@ const vN = {
|
|
|
25786
25784
|
}
|
|
25787
25785
|
}), I.value) {
|
|
25788
25786
|
A.forEach((xe) => {
|
|
25789
|
-
|
|
25787
|
+
U(xe) || N.value.push({
|
|
25790
25788
|
rowKey: o(xe),
|
|
25791
25789
|
selected: !1,
|
|
25792
25790
|
disabled: !fe(xe)
|
|
25793
25791
|
});
|
|
25794
25792
|
});
|
|
25795
|
-
const L =
|
|
25793
|
+
const L = z.filter((xe) => !xe.disabled && A.find((rt) => o(rt) === xe.rowKey));
|
|
25796
25794
|
L.filter((xe) => xe.selected).length === L.length ? Ot.value = !0 : (L.filter((xe) => !xe.selected).length, L.length, Ot.value = !1);
|
|
25797
25795
|
const le = A.filter((xe) => {
|
|
25798
|
-
const rt =
|
|
25796
|
+
const rt = z.find((st) => st.rowKey === o(xe));
|
|
25799
25797
|
return !!(rt && rt.selected);
|
|
25800
25798
|
}), ge = [];
|
|
25801
25799
|
x.value.forEach((xe) => {
|
|
@@ -25808,14 +25806,14 @@ const vN = {
|
|
|
25808
25806
|
}), ve(() => a.tablePreferences, (p) => {
|
|
25809
25807
|
p != null && p.columnWidths && (Ee.value = p.columnWidths);
|
|
25810
25808
|
}), (p, A) => {
|
|
25811
|
-
const
|
|
25809
|
+
const z = Yt("bind-once");
|
|
25812
25810
|
return h(), D("div", {
|
|
25813
25811
|
class: ue(["k-table-view", { "hide-headers": p.hideHeaders }])
|
|
25814
25812
|
}, [
|
|
25815
|
-
|
|
25816
|
-
|
|
25813
|
+
W.value ? (h(), D("div", WN, [
|
|
25814
|
+
H(p.$slots, "toolbar", {}, void 0, !0),
|
|
25817
25815
|
j.value || S.value ? (h(), D("div", UN, [
|
|
25818
|
-
j.value ?
|
|
25816
|
+
j.value ? H(p.$slots, "bulk-actions", {
|
|
25819
25817
|
key: 0,
|
|
25820
25818
|
selectedRows: x.value
|
|
25821
25819
|
}, () => [
|
|
@@ -25826,7 +25824,7 @@ const vN = {
|
|
|
25826
25824
|
disabled: !ae.value || p.loading || !p.data.length
|
|
25827
25825
|
}, {
|
|
25828
25826
|
items: O(() => [
|
|
25829
|
-
|
|
25827
|
+
H(p.$slots, "bulk-action-items", { selectedRows: x.value }, void 0, !0)
|
|
25830
25828
|
]),
|
|
25831
25829
|
_: 3
|
|
25832
25830
|
}, 8, ["button-label", "count", "disabled"]))
|
|
@@ -25846,7 +25844,7 @@ const vN = {
|
|
|
25846
25844
|
"data-testid": "table-skeleton",
|
|
25847
25845
|
type: "table"
|
|
25848
25846
|
})) : p.error ? (h(), D("div", KN, [
|
|
25849
|
-
|
|
25847
|
+
H(p.$slots, "error-state", {}, () => [
|
|
25850
25848
|
K(An, {
|
|
25851
25849
|
"icon-variant": "error",
|
|
25852
25850
|
message: p.errorStateMessage,
|
|
@@ -25871,7 +25869,7 @@ const vN = {
|
|
|
25871
25869
|
]), 1032, ["message", "title"])
|
|
25872
25870
|
], !0)
|
|
25873
25871
|
])) : !p.error && !p.loading && p.data && !p.data.length ? (h(), D("div", VN, [
|
|
25874
|
-
|
|
25872
|
+
H(p.$slots, "empty-state", {}, () => [
|
|
25875
25873
|
K(An, {
|
|
25876
25874
|
"icon-variant": p.emptyStateIconVariant,
|
|
25877
25875
|
message: p.emptyStateMessage,
|
|
@@ -25887,7 +25885,7 @@ const vN = {
|
|
|
25887
25885
|
onClick: A[2] || (A[2] = (L) => p.$emit("empty-state-action-click"))
|
|
25888
25886
|
}, {
|
|
25889
25887
|
default: O(() => [
|
|
25890
|
-
|
|
25888
|
+
H(p.$slots, "empty-state-action-icon", {}, void 0, !0),
|
|
25891
25889
|
de(" " + ne(p.emptyStateActionMessage), 1)
|
|
25892
25890
|
]),
|
|
25893
25891
|
_: 3
|
|
@@ -25942,7 +25940,7 @@ const vN = {
|
|
|
25942
25940
|
"aria-describedby": L.tooltip || p.$slots[_(L.key)] ? `${_(L.key)}-${T(s)}` : void 0,
|
|
25943
25941
|
class: ue(["table-headers-container", { resized: f.value === L.key }])
|
|
25944
25942
|
}, [
|
|
25945
|
-
L.key !== T(Ze).BULK_ACTIONS ?
|
|
25943
|
+
L.key !== T(Ze).BULK_ACTIONS ? H(p.$slots, ee(L.key), {
|
|
25946
25944
|
key: 0,
|
|
25947
25945
|
column: se(L)
|
|
25948
25946
|
}, () => [
|
|
@@ -25969,7 +25967,7 @@ const vN = {
|
|
|
25969
25967
|
"tooltip-id": `${_(L.key)}-${T(s)}`
|
|
25970
25968
|
}, {
|
|
25971
25969
|
content: O(() => [
|
|
25972
|
-
|
|
25970
|
+
H(p.$slots, _(L.key), {
|
|
25973
25971
|
column: se(L)
|
|
25974
25972
|
}, () => [
|
|
25975
25973
|
de(ne(L.tooltip), 1)
|
|
@@ -26029,14 +26027,14 @@ const vN = {
|
|
|
26029
26027
|
ref_for: !0
|
|
26030
26028
|
}, $e(L, ge.key)), {
|
|
26031
26029
|
default: O(() => [
|
|
26032
|
-
ge.key !== T(Ze).BULK_ACTIONS && ge.key !== T(Ze).ACTIONS ?
|
|
26030
|
+
ge.key !== T(Ze).BULK_ACTIONS && ge.key !== T(Ze).ACTIONS ? H(p.$slots, ge.key, {
|
|
26033
26031
|
key: 0,
|
|
26034
26032
|
row: se(L),
|
|
26035
26033
|
rowKey: le,
|
|
26036
26034
|
rowValue: L[ge.key]
|
|
26037
26035
|
}, () => [
|
|
26038
26036
|
de(ne(L[ge.key]), 1)
|
|
26039
|
-
], !0) : ge.key === T(Ze).BULK_ACTIONS &&
|
|
26037
|
+
], !0) : ge.key === T(Ze).BULK_ACTIONS && U(L) ? (h(), G(ka, {
|
|
26040
26038
|
key: 1,
|
|
26041
26039
|
"max-width": "200",
|
|
26042
26040
|
placement: "bottom-start",
|
|
@@ -26044,8 +26042,8 @@ const vN = {
|
|
|
26044
26042
|
}, {
|
|
26045
26043
|
default: O(() => [
|
|
26046
26044
|
K(zi, {
|
|
26047
|
-
modelValue:
|
|
26048
|
-
"onUpdate:modelValue": (rt) =>
|
|
26045
|
+
modelValue: U(L).selected,
|
|
26046
|
+
"onUpdate:modelValue": (rt) => U(L).selected = rt,
|
|
26049
26047
|
"aria-label": "Toggle row selection",
|
|
26050
26048
|
class: "bulk-actions-checkbox",
|
|
26051
26049
|
"data-testid": "bulk-actions-checkbox",
|
|
@@ -26060,7 +26058,7 @@ const vN = {
|
|
|
26060
26058
|
"kpop-attributes": { placement: "bottom-end" }
|
|
26061
26059
|
}, {
|
|
26062
26060
|
items: O(() => [
|
|
26063
|
-
|
|
26061
|
+
H(p.$slots, "action-items", {
|
|
26064
26062
|
row: se(L)
|
|
26065
26063
|
}, void 0, !0)
|
|
26066
26064
|
]),
|
|
@@ -26113,7 +26111,7 @@ const vN = {
|
|
|
26113
26111
|
colspan: d.value.length
|
|
26114
26112
|
}, [
|
|
26115
26113
|
R("div", i6, [
|
|
26116
|
-
|
|
26114
|
+
H(p.$slots, "row-expanded", {
|
|
26117
26115
|
columnWidths: Bt.value,
|
|
26118
26116
|
nestedHeaders: la.value,
|
|
26119
26117
|
row: se(L)
|
|
@@ -26126,7 +26124,7 @@ const vN = {
|
|
|
26126
26124
|
], 64))), 128))
|
|
26127
26125
|
])
|
|
26128
26126
|
], 2)), [
|
|
26129
|
-
[
|
|
26127
|
+
[z, { "data-tableid": T(s) }]
|
|
26130
26128
|
])
|
|
26131
26129
|
], 36),
|
|
26132
26130
|
Q.value ? (h(), G(Do, He({
|
|
@@ -26200,7 +26198,7 @@ const vN = {
|
|
|
26200
26198
|
currentPage: g.value,
|
|
26201
26199
|
offsetPreviousButtonDisabled: !N.value,
|
|
26202
26200
|
offsetNextButtonDisabled: !j.value || !$.value
|
|
26203
|
-
})), V = b(() => n ? Object.keys(n).filter((X) => X.startsWith("column-")) : []),
|
|
26201
|
+
})), V = b(() => n ? Object.keys(n).filter((X) => X.startsWith("column-")) : []), W = b(() => n ? Object.keys(n).filter((X) => X.startsWith("tooltip-")) : []), q = b(() => n ? Object.keys(n).filter((X) => d.value.some((Oe) => Oe.key === X)) : []), B = E(!0), x = async () => {
|
|
26204
26202
|
var Oe, Pe, je, nt;
|
|
26205
26203
|
const X = await a.fetcher({
|
|
26206
26204
|
pageSize: k.value,
|
|
@@ -26249,7 +26247,7 @@ const vN = {
|
|
|
26249
26247
|
g.value = X;
|
|
26250
26248
|
}, me = ({ pageSize: X }) => {
|
|
26251
26249
|
C.value = [null], w.value = null, k.value = X, g.value = 1, we();
|
|
26252
|
-
},
|
|
26250
|
+
}, U = E({}), fe = b(() => ({ pageSize: k.value, ...U.value })), we = () => {
|
|
26253
26251
|
Ve.value === "success" && o("update:table-preferences", fe.value);
|
|
26254
26252
|
}, Ie = () => {
|
|
26255
26253
|
g.value++, w.value = j.value;
|
|
@@ -26334,66 +26332,66 @@ const vN = {
|
|
|
26334
26332
|
onRowExpand: Oe[2] || (Oe[2] = (Pe) => o("row-expand", Pe)),
|
|
26335
26333
|
onRowSelect: Oe[3] || (Oe[3] = (Pe) => o("row-select", Pe)),
|
|
26336
26334
|
onSort: Q,
|
|
26337
|
-
"onUpdate:tablePreferences": Oe[4] || (Oe[4] = (Pe) =>
|
|
26335
|
+
"onUpdate:tablePreferences": Oe[4] || (Oe[4] = (Pe) => U.value = Pe)
|
|
26338
26336
|
}, mt({ _: 2 }, [
|
|
26339
26337
|
X.$slots.toolbar && !X.hideToolbar ? {
|
|
26340
26338
|
name: "toolbar",
|
|
26341
26339
|
fn: O(() => [
|
|
26342
|
-
|
|
26340
|
+
H(X.$slots, "toolbar", { state: at.value })
|
|
26343
26341
|
]),
|
|
26344
26342
|
key: "0"
|
|
26345
26343
|
} : void 0,
|
|
26346
26344
|
X.$slots["bulk-actions"] ? {
|
|
26347
26345
|
name: "bulk-actions",
|
|
26348
26346
|
fn: O(({ selectedRows: Pe }) => [
|
|
26349
|
-
|
|
26347
|
+
H(X.$slots, "bulk-actions", { selectedRows: Pe })
|
|
26350
26348
|
]),
|
|
26351
26349
|
key: "1"
|
|
26352
26350
|
} : void 0,
|
|
26353
26351
|
X.$slots["bulk-action-items"] ? {
|
|
26354
26352
|
name: "bulk-action-items",
|
|
26355
26353
|
fn: O(({ selectedRows: Pe }) => [
|
|
26356
|
-
|
|
26354
|
+
H(X.$slots, "bulk-action-items", { selectedRows: Pe })
|
|
26357
26355
|
]),
|
|
26358
26356
|
key: "2"
|
|
26359
26357
|
} : void 0,
|
|
26360
26358
|
X.$slots["error-state"] ? {
|
|
26361
26359
|
name: "error-state",
|
|
26362
26360
|
fn: O(() => [
|
|
26363
|
-
|
|
26361
|
+
H(X.$slots, "error-state")
|
|
26364
26362
|
]),
|
|
26365
26363
|
key: "3"
|
|
26366
26364
|
} : void 0,
|
|
26367
26365
|
X.$slots["empty-state"] ? {
|
|
26368
26366
|
name: "empty-state",
|
|
26369
26367
|
fn: O(() => [
|
|
26370
|
-
|
|
26368
|
+
H(X.$slots, "empty-state")
|
|
26371
26369
|
]),
|
|
26372
26370
|
key: "4"
|
|
26373
26371
|
} : void 0,
|
|
26374
26372
|
X.$slots["empty-state-action-icon"] ? {
|
|
26375
26373
|
name: "empty-state-action-icon",
|
|
26376
26374
|
fn: O(() => [
|
|
26377
|
-
|
|
26375
|
+
H(X.$slots, "empty-state-action-icon")
|
|
26378
26376
|
]),
|
|
26379
26377
|
key: "5"
|
|
26380
26378
|
} : void 0,
|
|
26381
26379
|
Be(V.value, (Pe) => ({
|
|
26382
26380
|
name: Pe,
|
|
26383
26381
|
fn: O(({ column: je }) => [
|
|
26384
|
-
|
|
26382
|
+
H(X.$slots, Pe, { column: je })
|
|
26385
26383
|
])
|
|
26386
26384
|
})),
|
|
26387
|
-
Be(
|
|
26385
|
+
Be(W.value, (Pe) => ({
|
|
26388
26386
|
name: Pe,
|
|
26389
26387
|
fn: O(({ column: je }) => [
|
|
26390
|
-
|
|
26388
|
+
H(X.$slots, Pe, { column: je })
|
|
26391
26389
|
])
|
|
26392
26390
|
})),
|
|
26393
26391
|
Be(q.value, (Pe) => ({
|
|
26394
26392
|
name: Pe,
|
|
26395
26393
|
fn: O(({ row: je, rowKey: nt, rowValue: Et }) => [
|
|
26396
|
-
|
|
26394
|
+
H(X.$slots, Pe, {
|
|
26397
26395
|
row: je,
|
|
26398
26396
|
rowKey: nt,
|
|
26399
26397
|
rowValue: Et
|
|
@@ -26403,14 +26401,14 @@ const vN = {
|
|
|
26403
26401
|
X.$slots["action-items"] ? {
|
|
26404
26402
|
name: "action-items",
|
|
26405
26403
|
fn: O(({ row: Pe }) => [
|
|
26406
|
-
|
|
26404
|
+
H(X.$slots, "action-items", { row: Pe })
|
|
26407
26405
|
]),
|
|
26408
26406
|
key: "6"
|
|
26409
26407
|
} : void 0,
|
|
26410
26408
|
X.$slots["row-expanded"] ? {
|
|
26411
26409
|
name: "row-expanded",
|
|
26412
26410
|
fn: O(({ columnWidths: Pe, nestedHeaders: je, row: nt }) => [
|
|
26413
|
-
|
|
26411
|
+
H(X.$slots, "row-expanded", {
|
|
26414
26412
|
columnWidths: Pe,
|
|
26415
26413
|
nestedHeaders: je,
|
|
26416
26414
|
row: nt
|