@kong/kongponents 9.29.6 → 9.29.7
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 Ug = Object.defineProperty;
|
|
2
2
|
var Vg = (e, t, a) => t in e ? Ug(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
|
|
3
3
|
var Ya = (e, t, a) => Vg(e, typeof t != "symbol" ? t + "" : t, a);
|
|
4
|
-
import { defineComponent as le, renderSlot as Q, reactive as Dr, ref as P, computed as y, createBlock as X, openBlock as h, resolveDynamicComponent as ze, normalizeStyle as Oe, withCtx as B, createElementBlock as D, normalizeClass as
|
|
4
|
+
import { defineComponent as le, renderSlot as Q, reactive as Dr, ref as P, computed as y, createBlock as X, openBlock as h, resolveDynamicComponent as ze, normalizeStyle as Oe, withCtx as B, createElementBlock as D, normalizeClass as ue, createCommentVNode as G, createElementVNode as K, unref as I, toDisplayString as ie, withKeys as ft, withModifiers as Ke, shallowRef as Lv, watch as fe, getCurrentScope as Bv, onScopeDispose as Rv, shallowReadonly as Un, useSlots as It, useAttrs as Vt, onMounted as st, mergeProps as Ue, toHandlers as cl, getCurrentInstance as Fv, onUnmounted as Kt, isReadonly as Kg, toRefs as zv, watchEffect as Ws, Teleport as jg, toValue as sn, useId as Dt, onBeforeUnmount as fl, createVNode as Z, createTextVNode as me, Transition as ia, withDirectives as dn, vShow as pr, useCssVars as Ft, nextTick as gt, Fragment as Ae, renderList as Re, createSlots as yt, isVNode as Yv, useTemplateRef as Mt, normalizeProps as lr, inject as fi, toRef as ho, provide as vi, guardReactiveProps as ys, isRef as Xn, resolveComponent as _t, resolveDirective as Gg, Comment as Qg, cloneVNode as Zg, onBeforeMount as Xg, TransitionGroup as Jg, render as Wu, h as Uu, warn as em } from "vue";
|
|
5
5
|
async function _v(e) {
|
|
6
6
|
var n, r;
|
|
7
7
|
if (navigator.clipboard)
|
|
@@ -3645,7 +3645,7 @@ const Uv = {
|
|
|
3645
3645
|
}
|
|
3646
3646
|
});
|
|
3647
3647
|
return (r, i) => (h(), D("div", {
|
|
3648
|
-
class:
|
|
3648
|
+
class: ue(["k-alert", [r.appearance]])
|
|
3649
3649
|
}, [
|
|
3650
3650
|
r.showIcon || r.$slots.icon ? (h(), D("div", v1, [
|
|
3651
3651
|
Q(r.$slots, "icon", {}, () => [
|
|
@@ -4745,7 +4745,7 @@ const iy = {
|
|
|
4745
4745
|
});
|
|
4746
4746
|
return st(() => {
|
|
4747
4747
|
t.icon && console.warn("KButton: `icon` slot is deprecated. Please slot an icon into the `default` slot instead. See the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#kbutton");
|
|
4748
|
-
}), (o, c) => (h(), X(ze(n.value),
|
|
4748
|
+
}), (o, c) => (h(), X(ze(n.value), Ue({
|
|
4749
4749
|
class: ["k-button", [i.value, r.value, { "icon-button": o.icon === !0 || !t.default && t.icon }]],
|
|
4750
4750
|
disabled: o.disabled ? o.disabled : void 0,
|
|
4751
4751
|
tabindex: o.disabled && n.value !== "button" ? "-1" : void 0,
|
|
@@ -4758,7 +4758,7 @@ const iy = {
|
|
|
4758
4758
|
_: 3
|
|
4759
4759
|
}, 16, ["class", "disabled", "tabindex", "type"]));
|
|
4760
4760
|
}
|
|
4761
|
-
}),
|
|
4761
|
+
}), it = /* @__PURE__ */ Ee(oy, [["__scopeId", "data-v-3ba3c07b"]]);
|
|
4762
4762
|
var Ll = /* @__PURE__ */ new WeakMap(), Od = 0;
|
|
4763
4763
|
function ly(e) {
|
|
4764
4764
|
if (!e.length)
|
|
@@ -5559,7 +5559,7 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
|
|
|
5559
5559
|
class: "popover-trigger-wrapper"
|
|
5560
5560
|
}, [
|
|
5561
5561
|
Q(x.$slots, "default", {}, () => [
|
|
5562
|
-
Z(
|
|
5562
|
+
Z(it, {
|
|
5563
5563
|
"aria-controls": I(l),
|
|
5564
5564
|
"data-testid": "popover-button"
|
|
5565
5565
|
}, {
|
|
@@ -5582,7 +5582,7 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
|
|
|
5582
5582
|
ref_key: "popoverElement",
|
|
5583
5583
|
ref: c,
|
|
5584
5584
|
"aria-labelledby": r.title || x.title ? I(u) : void 0,
|
|
5585
|
-
class:
|
|
5585
|
+
class: ue(["popover", E.value]),
|
|
5586
5586
|
role: "dialog",
|
|
5587
5587
|
style: Oe(q.value),
|
|
5588
5588
|
"x-placement": I(T)
|
|
@@ -5610,7 +5610,7 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
|
|
|
5610
5610
|
r.title || x.title ? (h(), D("div", {
|
|
5611
5611
|
key: 0,
|
|
5612
5612
|
id: I(u),
|
|
5613
|
-
class:
|
|
5613
|
+
class: ue(["popover-title", { "close-icon-spacing": !x.hideCloseIcon }])
|
|
5614
5614
|
}, [
|
|
5615
5615
|
Q(x.$slots, "title", {}, () => [
|
|
5616
5616
|
me(ie(x.title), 1)
|
|
@@ -5618,7 +5618,7 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
|
|
|
5618
5618
|
], 10, Py)) : G("", !0)
|
|
5619
5619
|
])) : G("", !0),
|
|
5620
5620
|
K("div", {
|
|
5621
|
-
class:
|
|
5621
|
+
class: ue(["popover-content", { "close-icon-spacing": !x.hideCloseIcon && !(r.title || x.title) }])
|
|
5622
5622
|
}, [
|
|
5623
5623
|
Q(x.$slots, "content", {}, void 0, !0)
|
|
5624
5624
|
], 2),
|
|
@@ -5653,7 +5653,7 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
|
|
|
5653
5653
|
},
|
|
5654
5654
|
setup(e) {
|
|
5655
5655
|
const t = It(), a = y(() => !!e.text || !!e.label || !!t.content), n = Dt();
|
|
5656
|
-
return (r, i) => a.value ? (h(), X(Tr,
|
|
5656
|
+
return (r, i) => a.value ? (h(), X(Tr, Ue({
|
|
5657
5657
|
key: 0,
|
|
5658
5658
|
"hide-caret": "",
|
|
5659
5659
|
"hide-close-icon": "",
|
|
@@ -5704,14 +5704,14 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
|
|
|
5704
5704
|
return st(() => {
|
|
5705
5705
|
l();
|
|
5706
5706
|
}), (s, o) => (h(), D("div", {
|
|
5707
|
-
class:
|
|
5707
|
+
class: ue(["k-badge", [s.appearance, { method: a.value }]])
|
|
5708
5708
|
}, [
|
|
5709
5709
|
Z(va, {
|
|
5710
5710
|
text: u.value ? s.tooltip : void 0
|
|
5711
5711
|
}, {
|
|
5712
5712
|
default: B(() => [
|
|
5713
5713
|
K("div", {
|
|
5714
|
-
class:
|
|
5714
|
+
class: ue(["badge-content", { "icon-after": !s.iconBefore }]),
|
|
5715
5715
|
tabindex: u.value ? 0 : void 0
|
|
5716
5716
|
}, [
|
|
5717
5717
|
s.$slots.icon ? Q(s.$slots, "icon", { key: 0 }, void 0, !0) : G("", !0),
|
|
@@ -5763,12 +5763,12 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
|
|
|
5763
5763
|
}
|
|
5764
5764
|
};
|
|
5765
5765
|
}, n = (r, i) => r.key || `breadcrumb-${i}`;
|
|
5766
|
-
return (r, i) => (h(), D("ul",
|
|
5766
|
+
return (r, i) => (h(), D("ul", Ue({ class: "k-breadcrumbs" }, r.$attrs), [
|
|
5767
5767
|
(h(!0), D(Ae, null, Re(r.items, (l, u) => (h(), D("li", {
|
|
5768
5768
|
key: n(l, u),
|
|
5769
5769
|
class: "breadcrumbs-item-container"
|
|
5770
5770
|
}, [
|
|
5771
|
-
(h(), X(ze(a(l).type),
|
|
5771
|
+
(h(), X(ze(a(l).type), Ue({ ref_for: !0 }, a(l).attrs, {
|
|
5772
5772
|
class: ["breadcrumbs-item", { link: !!l.to, active: u === r.items.length - 1 }]
|
|
5773
5773
|
}), {
|
|
5774
5774
|
default: B(() => [
|
|
@@ -5852,7 +5852,7 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
|
|
|
5852
5852
|
},
|
|
5853
5853
|
setup(e) {
|
|
5854
5854
|
return (t, a) => (h(), D("div", {
|
|
5855
|
-
class:
|
|
5855
|
+
class: ue(["skeleton-box", { [`width-${e.width}`]: !0, [`height-${e.height}`]: !0 }])
|
|
5856
5856
|
}, null, 2));
|
|
5857
5857
|
}
|
|
5858
5858
|
}), ma = /* @__PURE__ */ Ee(Gy, [["__scopeId", "data-v-cb8ccbd6"]]), Qy = { class: "skeleton-loader" }, Zy = /* @__PURE__ */ le({
|
|
@@ -6128,7 +6128,7 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
|
|
|
6128
6128
|
}, t.delayMilliseconds);
|
|
6129
6129
|
}), (n, r) => a.value ? (h(), D("div", {
|
|
6130
6130
|
key: 0,
|
|
6131
|
-
class:
|
|
6131
|
+
class: ue(["k-skeleton", { "not-spinner": e.type !== "spinner" }])
|
|
6132
6132
|
}, [
|
|
6133
6133
|
e.type === "card" ? (h(), X(rb, {
|
|
6134
6134
|
key: 0,
|
|
@@ -6215,7 +6215,7 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
|
|
|
6215
6215
|
}
|
|
6216
6216
|
});
|
|
6217
6217
|
return (i, l) => (h(), D("div", {
|
|
6218
|
-
class:
|
|
6218
|
+
class: ue(["k-empty-state", [i.iconVariant]])
|
|
6219
6219
|
}, [
|
|
6220
6220
|
K("div", kb, [
|
|
6221
6221
|
K("div", Cb, [
|
|
@@ -6240,7 +6240,7 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
|
|
|
6240
6240
|
]),
|
|
6241
6241
|
i.actionButtonVisible && i.actionButtonText || i.$slots.action ? (h(), D("div", Db, [
|
|
6242
6242
|
Q(i.$slots, "action", {}, () => [
|
|
6243
|
-
Z(
|
|
6243
|
+
Z(it, {
|
|
6244
6244
|
disabled: i.actionButtonDisabled,
|
|
6245
6245
|
type: "button",
|
|
6246
6246
|
onClick: l[0] || (l[0] = (u) => a("click-action"))
|
|
@@ -6362,7 +6362,7 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
|
|
|
6362
6362
|
}
|
|
6363
6363
|
}));
|
|
6364
6364
|
return (d, v) => (h(), D("li", {
|
|
6365
|
-
class:
|
|
6365
|
+
class: ue(["k-dropdown-item", [{
|
|
6366
6366
|
"has-divider": e.hasDivider,
|
|
6367
6367
|
disabled: e.disabled,
|
|
6368
6368
|
danger: e.danger || e.isDangerous,
|
|
@@ -6370,7 +6370,7 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
|
|
|
6370
6370
|
}, d.$attrs.class, d.$attrs.style]]),
|
|
6371
6371
|
"data-testid": "dropdown-item"
|
|
6372
6372
|
}, [
|
|
6373
|
-
(h(), X(ze(f.value[o.value].tag),
|
|
6373
|
+
(h(), X(ze(f.value[o.value].tag), Ue({ "data-testid": "dropdown-item-trigger" }, f.value[o.value].attrs, {
|
|
6374
6374
|
onClick: f.value[o.value].onClick
|
|
6375
6375
|
}), {
|
|
6376
6376
|
default: B(() => [
|
|
@@ -6470,11 +6470,11 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
|
|
|
6470
6470
|
g.length && (o.value = g[0]);
|
|
6471
6471
|
}
|
|
6472
6472
|
}), (g, m) => (h(), D("div", {
|
|
6473
|
-
class:
|
|
6473
|
+
class: ue(["k-dropdown", { "selection-dropdown-menu": e.selectionMenu }])
|
|
6474
6474
|
}, [
|
|
6475
6475
|
Z(I(vl), null, {
|
|
6476
6476
|
default: B(({ toggle: b, isToggled: p }) => [
|
|
6477
|
-
Z(Tr,
|
|
6477
|
+
Z(Tr, Ue({
|
|
6478
6478
|
ref_key: "kPop",
|
|
6479
6479
|
ref: i
|
|
6480
6480
|
}, u, {
|
|
@@ -6494,7 +6494,7 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
|
|
|
6494
6494
|
}, () => [
|
|
6495
6495
|
(h(!0), D(Ae, null, Re(e.items, (w, k) => {
|
|
6496
6496
|
var S;
|
|
6497
|
-
return h(), X(ru,
|
|
6497
|
+
return h(), X(ru, Ue({ ref_for: !0 }, w, {
|
|
6498
6498
|
key: `${w.label}-${k}`,
|
|
6499
6499
|
item: w,
|
|
6500
6500
|
selected: e.selectionMenu && ((S = o.value) == null ? void 0 : S.value) === w.value,
|
|
@@ -6517,7 +6517,7 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
|
|
|
6517
6517
|
Q(g.$slots, "default", {
|
|
6518
6518
|
isOpen: p.value
|
|
6519
6519
|
}, () => [
|
|
6520
|
-
s.value ? (h(), X(
|
|
6520
|
+
s.value ? (h(), X(it, {
|
|
6521
6521
|
key: 0,
|
|
6522
6522
|
appearance: e.appearance,
|
|
6523
6523
|
class: "dropdown-trigger-button",
|
|
@@ -6562,7 +6562,7 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
|
|
|
6562
6562
|
setup(e, { emit: t }) {
|
|
6563
6563
|
const a = t;
|
|
6564
6564
|
return (n, r) => (h(), D("div", Mb, [
|
|
6565
|
-
Z(
|
|
6565
|
+
Z(it, {
|
|
6566
6566
|
appearance: "tertiary",
|
|
6567
6567
|
"aria-label": "Go to the previous page",
|
|
6568
6568
|
class: "pagination-button",
|
|
@@ -6578,7 +6578,7 @@ const Ey = ["id", "aria-labelledby", "x-placement"], My = ["tabindex"], Oy = {
|
|
|
6578
6578
|
]),
|
|
6579
6579
|
_: 1
|
|
6580
6580
|
}, 8, ["disabled"]),
|
|
6581
|
-
Z(
|
|
6581
|
+
Z(it, {
|
|
6582
6582
|
appearance: "tertiary",
|
|
6583
6583
|
"aria-label": "Go to the next page",
|
|
6584
6584
|
class: "pagination-button",
|
|
@@ -6658,11 +6658,11 @@ const Nb = {
|
|
|
6658
6658
|
}, m = (W, J, V, ve) => {
|
|
6659
6659
|
if (e.disablePageJump)
|
|
6660
6660
|
return [];
|
|
6661
|
-
let
|
|
6661
|
+
let de = [...Array(J).keys()].map((he) => he + 1);
|
|
6662
6662
|
const $e = d.value + 2 + 2 * f.value;
|
|
6663
|
-
return
|
|
6663
|
+
return de.length <= $e || (V ? V && ve ? de = de.filter(
|
|
6664
6664
|
(he) => he > W - f.value - 1 && he < W + f.value + 1
|
|
6665
|
-
) : V && !ve && (
|
|
6665
|
+
) : V && !ve && (de = de.filter((he) => he > J - f.value * 2 - d.value)) : de = de.filter((he) => he <= f.value * 2 + d.value)), de;
|
|
6666
6666
|
}, b = P(l.value === 1), p = P(l.value === s.value), w = y(() => (l.value - 1) * u.value + 1), k = y(() => {
|
|
6667
6667
|
const W = w.value - 1 + u.value;
|
|
6668
6668
|
return W > e.totalCount ? e.totalCount : W;
|
|
@@ -6715,7 +6715,7 @@ const Nb = {
|
|
|
6715
6715
|
}), (W, J) => (h(), D("nav", {
|
|
6716
6716
|
ref_key: "kPaginationElement",
|
|
6717
6717
|
ref: r,
|
|
6718
|
-
class:
|
|
6718
|
+
class: ue(["k-pagination", { "page-jump": !W.disablePageJump && !W.offset }]),
|
|
6719
6719
|
"data-testid": "k-pagination"
|
|
6720
6720
|
}, [
|
|
6721
6721
|
W.offset ? (h(), X(Pb, {
|
|
@@ -6731,7 +6731,7 @@ const Nb = {
|
|
|
6731
6731
|
]),
|
|
6732
6732
|
K("ul", Bb, [
|
|
6733
6733
|
K("li", null, [
|
|
6734
|
-
Z(
|
|
6734
|
+
Z(it, {
|
|
6735
6735
|
appearance: "tertiary",
|
|
6736
6736
|
"aria-label": "Go to the previous page",
|
|
6737
6737
|
class: "pagination-button arrow",
|
|
@@ -6765,7 +6765,7 @@ const Nb = {
|
|
|
6765
6765
|
K("button", {
|
|
6766
6766
|
"aria-current": V == T.value && "page" || void 0,
|
|
6767
6767
|
"aria-label": `Go to page ${V}`,
|
|
6768
|
-
class:
|
|
6768
|
+
class: ue(["pagination-button", { active: V == T.value }]),
|
|
6769
6769
|
"data-testid": `page-${V}-button`,
|
|
6770
6770
|
type: "button",
|
|
6771
6771
|
onClick: (ve) => $(V)
|
|
@@ -6782,7 +6782,7 @@ const Nb = {
|
|
|
6782
6782
|
}, ie(s.value), 1)
|
|
6783
6783
|
])) : G("", !0),
|
|
6784
6784
|
K("li", null, [
|
|
6785
|
-
Z(
|
|
6785
|
+
Z(it, {
|
|
6786
6786
|
appearance: "tertiary",
|
|
6787
6787
|
"aria-label": "Go to the next page",
|
|
6788
6788
|
class: "pagination-button arrow",
|
|
@@ -6819,7 +6819,7 @@ const Nb = {
|
|
|
6819
6819
|
onChange: R
|
|
6820
6820
|
}, {
|
|
6821
6821
|
default: B(() => [
|
|
6822
|
-
Z(
|
|
6822
|
+
Z(it, {
|
|
6823
6823
|
appearance: "tertiary",
|
|
6824
6824
|
class: "page-size-dropdown-trigger",
|
|
6825
6825
|
"data-testid": "page-size-dropdown-trigger",
|
|
@@ -6876,7 +6876,7 @@ const Nb = {
|
|
|
6876
6876
|
]),
|
|
6877
6877
|
default: B(() => [
|
|
6878
6878
|
K("div", {
|
|
6879
|
-
class:
|
|
6879
|
+
class: ue({ "multi-line-truncate": r.truncate })
|
|
6880
6880
|
}, [
|
|
6881
6881
|
Q(r.$slots, "card-body", {}, () => [
|
|
6882
6882
|
me(ie(r.item ? r.item.description : ""), 1)
|
|
@@ -6932,8 +6932,8 @@ const Nb = {
|
|
|
6932
6932
|
emits: ["card-click", "error-action-click", "empty-state-action-click", "update:catalog-preferences", "state"],
|
|
6933
6933
|
setup(e, { emit: t }) {
|
|
6934
6934
|
const { useRequest: a, useDebounce: n, useSwrvState: r } = At(), i = t, l = It(), u = Dt(), s = () => {
|
|
6935
|
-
var
|
|
6936
|
-
const oe = (
|
|
6935
|
+
var Ye;
|
|
6936
|
+
const oe = (Ye = e.paginationPageSizes) == null ? void 0 : Ye[0];
|
|
6937
6937
|
return oe || Ld;
|
|
6938
6938
|
}, o = P([]), c = P(0), f = P(""), d = P(1), v = P(s()), g = P(null), m = P([]), b = y(() => m.value[d.value - 1]), p = P(null), w = P(!0), k = P(!1), S = y(() => !!l.toolbar), C = {
|
|
6939
6939
|
page: 1,
|
|
@@ -6943,7 +6943,7 @@ const Nb = {
|
|
|
6943
6943
|
}, T = y(() => (he.value || e.loading || Ze.value) && !e.error), N = y(() => !T.value && o.value && !o.value.length), _ = y(() => ({
|
|
6944
6944
|
pageSize: v.value
|
|
6945
6945
|
})), z = P(!0), q = async () => {
|
|
6946
|
-
var
|
|
6946
|
+
var Ye, ee;
|
|
6947
6947
|
const oe = await e.fetcher({
|
|
6948
6948
|
query: e.searchInput || f.value,
|
|
6949
6949
|
pageSize: v.value,
|
|
@@ -6952,7 +6952,7 @@ const Nb = {
|
|
|
6952
6952
|
});
|
|
6953
6953
|
if (oe == null)
|
|
6954
6954
|
throw new Error("KCatalog: Fetcher did not return data correctly.");
|
|
6955
|
-
return o.value = oe.data, c.value = e.paginationTotalItems || oe.total || ((
|
|
6955
|
+
return o.value = oe.data, c.value = e.paginationTotalItems || oe.total || ((Ye = oe.data) == null ? void 0 : Ye.length), e.paginationOffset && ((ee = oe.pagination) != null && ee.offset ? (p.value = oe.pagination.offset, m.value[d.value] || m.value.push(oe.pagination.offset)) : p.value = null, w.value = oe.pagination && "hasNextPage" in oe.pagination ? !!oe.pagination.hasNextPage : !0), o.value.length === 0 && d.value > 1 && (d.value = 1, m.value = [null], g.value = null), z.value = !1, oe;
|
|
6956
6956
|
}, M = () => {
|
|
6957
6957
|
const oe = {
|
|
6958
6958
|
...C,
|
|
@@ -6970,8 +6970,8 @@ const Nb = {
|
|
|
6970
6970
|
() => E.value,
|
|
6971
6971
|
() => q(),
|
|
6972
6972
|
{ revalidateOnFocus: !1, revalidateDebounce: 0 }
|
|
6973
|
-
), { state: ve, hasData:
|
|
6974
|
-
hasData:
|
|
6973
|
+
), { state: ve, hasData: de, swrvState: $e } = r(U, W, V), he = P(!0), Ce = y(() => ({
|
|
6974
|
+
hasData: de.value,
|
|
6975
6975
|
state: ve.value
|
|
6976
6976
|
})), xe = y(() => he.value ? "loading" : W.value ? "error" : "success"), Pe = ({ page: oe }) => {
|
|
6977
6977
|
d.value = oe;
|
|
@@ -6982,10 +6982,10 @@ const Nb = {
|
|
|
6982
6982
|
}, at = () => {
|
|
6983
6983
|
d.value--, g.value = b.value;
|
|
6984
6984
|
}, et = (oe) => oe.toLowerCase().replace(/[^[a-z0-9]/gi, "-"), Qe = y(() => {
|
|
6985
|
-
var
|
|
6985
|
+
var Ye;
|
|
6986
6986
|
if (!e.fetcher || e.disablePagination || !o.value || !o.value.length || e.error)
|
|
6987
6987
|
return !1;
|
|
6988
|
-
const oe = ((
|
|
6988
|
+
const oe = ((Ye = e.paginationPageSizes) == null ? void 0 : Ye[0]) ?? Ld;
|
|
6989
6989
|
return e.hidePaginationWhenOptional && d.value === 1 ? e.paginationOffset ? !!b.value || !!p.value || o.value.length >= oe : c.value > oe : !0;
|
|
6990
6990
|
});
|
|
6991
6991
|
fe(U, (oe) => {
|
|
@@ -7003,25 +7003,25 @@ const Nb = {
|
|
|
7003
7003
|
break;
|
|
7004
7004
|
}
|
|
7005
7005
|
}, { immediate: !0 }), fe([Ce, xe], (oe) => {
|
|
7006
|
-
var
|
|
7006
|
+
var Ye;
|
|
7007
7007
|
i("state", {
|
|
7008
7008
|
state: oe == null ? void 0 : oe[1],
|
|
7009
7009
|
// newData[catalogState]
|
|
7010
|
-
hasData: (
|
|
7010
|
+
hasData: (Ye = oe == null ? void 0 : oe[0]) == null ? void 0 : Ye.hasData
|
|
7011
7011
|
// newData[stateData].hasData
|
|
7012
7012
|
});
|
|
7013
7013
|
}), fe(() => e.searchInput, (oe) => {
|
|
7014
7014
|
d.value !== 1 && (d.value = 1), oe === "" ? F(oe) : x(oe);
|
|
7015
7015
|
}, { immediate: !0 });
|
|
7016
7016
|
const Ze = P(!1);
|
|
7017
|
-
return fe([$, d, v], async (oe,
|
|
7018
|
-
const ee =
|
|
7017
|
+
return fe([$, d, v], async (oe, Ye) => {
|
|
7018
|
+
const ee = Ye == null ? void 0 : Ye[0], ye = oe[0], De = oe[1];
|
|
7019
7019
|
ye !== ee && De !== 1 && (d.value = 1, m.value = [null], g.value = null), k.value && !z.value && (Ze.value = !0, await J(), Ze.value = !1);
|
|
7020
7020
|
}, { deep: !0, immediate: !0 }), fe(_, (oe) => {
|
|
7021
7021
|
i("update:catalog-preferences", oe);
|
|
7022
7022
|
}), st(() => {
|
|
7023
7023
|
M();
|
|
7024
|
-
}), (oe,
|
|
7024
|
+
}), (oe, Ye) => (h(), D("div", Kb, [
|
|
7025
7025
|
oe.title ? (h(), X(ze(oe.titleTag), {
|
|
7026
7026
|
key: 0,
|
|
7027
7027
|
class: "catalog-title",
|
|
@@ -7051,10 +7051,10 @@ const Nb = {
|
|
|
7051
7051
|
oe.errorStateActionMessage ? {
|
|
7052
7052
|
name: "action",
|
|
7053
7053
|
fn: B(() => [
|
|
7054
|
-
Z(
|
|
7054
|
+
Z(it, {
|
|
7055
7055
|
"data-testid": et(oe.errorStateActionMessage),
|
|
7056
7056
|
to: oe.errorStateActionRoute ? oe.errorStateActionRoute : void 0,
|
|
7057
|
-
onClick:
|
|
7057
|
+
onClick: Ye[0] || (Ye[0] = (ee) => i("error-action-click"))
|
|
7058
7058
|
}, {
|
|
7059
7059
|
default: B(() => [
|
|
7060
7060
|
me(ie(oe.errorStateActionMessage), 1)
|
|
@@ -7076,11 +7076,11 @@ const Nb = {
|
|
|
7076
7076
|
oe.emptyStateActionMessage ? {
|
|
7077
7077
|
name: "action",
|
|
7078
7078
|
fn: B(() => [
|
|
7079
|
-
Z(
|
|
7079
|
+
Z(it, {
|
|
7080
7080
|
appearance: oe.searchInput ? "tertiary" : "primary",
|
|
7081
7081
|
"data-testid": et(oe.emptyStateActionMessage),
|
|
7082
7082
|
to: oe.emptyStateActionRoute ? oe.emptyStateActionRoute : void 0,
|
|
7083
|
-
onClick:
|
|
7083
|
+
onClick: Ye[1] || (Ye[1] = (ee) => i("empty-state-action-click"))
|
|
7084
7084
|
}, {
|
|
7085
7085
|
default: B(() => [
|
|
7086
7086
|
Q(oe.$slots, "empty-state-action-icon", {}, void 0, !0),
|
|
@@ -7095,7 +7095,7 @@ const Nb = {
|
|
|
7095
7095
|
], !0)
|
|
7096
7096
|
])) : (h(), D("div", {
|
|
7097
7097
|
key: 5,
|
|
7098
|
-
class:
|
|
7098
|
+
class: ue(["catalog-page", `card-${oe.cardSize}`]),
|
|
7099
7099
|
"data-tableid": I(u)
|
|
7100
7100
|
}, [
|
|
7101
7101
|
Q(oe.$slots, "body", { data: o.value }, () => [
|
|
@@ -7158,10 +7158,10 @@ const Nb = {
|
|
|
7158
7158
|
}, { immediate: !0 });
|
|
7159
7159
|
const t = It(), a = y(() => !!(e.help || e.info || t.tooltip)), n = Dt();
|
|
7160
7160
|
return (r, i) => (h(), D("label", {
|
|
7161
|
-
class:
|
|
7161
|
+
class: ue(["k-label", { required: r.required }])
|
|
7162
7162
|
}, [
|
|
7163
7163
|
Q(r.$slots, "default", {}, void 0, !0),
|
|
7164
|
-
a.value ? (h(), X(va,
|
|
7164
|
+
a.value ? (h(), X(va, Ue({ key: 0 }, r.tooltipAttributes, {
|
|
7165
7165
|
class: "label-tooltip",
|
|
7166
7166
|
"tooltip-id": I(n)
|
|
7167
7167
|
}), {
|
|
@@ -7212,12 +7212,12 @@ const Nb = {
|
|
|
7212
7212
|
a("change", m.target.checked), a("input", m.target.checked), a("update:modelValue", m.target.checked);
|
|
7213
7213
|
};
|
|
7214
7214
|
return (m, b) => (h(), D("div", {
|
|
7215
|
-
class:
|
|
7215
|
+
class: ue(["k-checkbox", [m.$attrs.class, d.value]])
|
|
7216
7216
|
}, [
|
|
7217
7217
|
K("div", {
|
|
7218
|
-
class:
|
|
7218
|
+
class: ue(["checkbox-input-wrapper", { "has-label": u.value }])
|
|
7219
7219
|
}, [
|
|
7220
|
-
K("input",
|
|
7220
|
+
K("input", Ue({ id: l.value }, f.value, {
|
|
7221
7221
|
"aria-checked": m.modelValue,
|
|
7222
7222
|
class: "checkbox-input",
|
|
7223
7223
|
type: "checkbox",
|
|
@@ -7241,7 +7241,7 @@ const Nb = {
|
|
|
7241
7241
|
}, null, 8, ["size"])) : G("", !0)
|
|
7242
7242
|
], 2),
|
|
7243
7243
|
K("div", a0, [
|
|
7244
|
-
u.value ? (h(), X(Qa,
|
|
7244
|
+
u.value ? (h(), X(Qa, Ue({ key: 0 }, m.labelAttributes, {
|
|
7245
7245
|
class: "checkbox-label",
|
|
7246
7246
|
for: l.value
|
|
7247
7247
|
}), yt({
|
|
@@ -7353,7 +7353,7 @@ const Nb = {
|
|
|
7353
7353
|
W.t.forEach((Pe, Ne) => {
|
|
7354
7354
|
Pe !== En && (ve.push(Pe), Ne < J && V++);
|
|
7355
7355
|
}), W.i = -1;
|
|
7356
|
-
const
|
|
7356
|
+
const de = gp(ve), $e = de.length, he = $e / 2 | 0, Ce = $e % 2 == 0 ? (de[he - 1] + de[he]) / 2 : de[he], xe = W.o;
|
|
7357
7357
|
return ((W.o = Ce) - xe) * $a(J - V, 0);
|
|
7358
7358
|
})(k, bn(k, T()))), i = !1), F = 3, R = !0;
|
|
7359
7359
|
break;
|
|
@@ -7426,7 +7426,7 @@ const Nb = {
|
|
|
7426
7426
|
}, { flush: "post" }), () => {
|
|
7427
7427
|
var r;
|
|
7428
7428
|
const { Y: i, G: l, K: u, Z: s } = e, o = n.value, { style: c, ...f } = (r = e.ee) !== null && r !== void 0 ? r : {}, d = { position: o && u ? void 0 : "absolute", [l ? "height" : "width"]: "100%", [l ? "top" : "left"]: "0px", [l ? yp() ? "right" : "left" : "top"]: a.value + "px", visibility: !o || u ? "visible" : "hidden", ...c };
|
|
7429
|
-
return l && (d.display = "flex"), Z(s,
|
|
7429
|
+
return l && (d.display = "flex"), Z(s, Ue({ ref: t, style: d }, f), typeof (v = i) == "function" || Object.prototype.toString.call(v) === "[object Object]" && !Yv(v) ? i : { default: () => [i], _: 2 }, 16, ["style"]);
|
|
7430
7430
|
var v;
|
|
7431
7431
|
};
|
|
7432
7432
|
} }), g0 = (e, t) => {
|
|
@@ -7768,9 +7768,9 @@ const j0 = ["id", "aria-describedby", "aria-invalid", "type", "value"], G0 = ["a
|
|
|
7768
7768
|
var $, x;
|
|
7769
7769
|
await gt(), ($ = N.value) != null && $.offsetWidth && (z.value = N.value.offsetWidth + "px"), (x = _.value) != null && x.offsetWidth && (q.value = _.value.offsetWidth + "px");
|
|
7770
7770
|
}), ($, x) => (h(), D("div", {
|
|
7771
|
-
class:
|
|
7771
|
+
class: ue(["k-input", [$.$attrs.class, { "input-error": p.value || $.error || $.hasError }]])
|
|
7772
7772
|
}, [
|
|
7773
|
-
$.label ? (h(), X(Qa,
|
|
7773
|
+
$.label ? (h(), X(Qa, Ue({
|
|
7774
7774
|
key: 0,
|
|
7775
7775
|
for: f.value
|
|
7776
7776
|
}, $.labelAttributes, { required: o.value }), yt({
|
|
@@ -7788,7 +7788,7 @@ const j0 = ["id", "aria-describedby", "aria-invalid", "type", "value"], G0 = ["a
|
|
|
7788
7788
|
} : void 0
|
|
7789
7789
|
]), 1040, ["for", "required"])) : G("", !0),
|
|
7790
7790
|
K("div", {
|
|
7791
|
-
class:
|
|
7791
|
+
class: ue(["input-element-wrapper", { "has-before-content": $.$slots.before, "has-after-content": $.$slots.after || $.type === "password" && $.showPasswordMaskToggle }])
|
|
7792
7792
|
}, [
|
|
7793
7793
|
$.$slots.before ? (h(), D("div", {
|
|
7794
7794
|
key: 0,
|
|
@@ -7798,7 +7798,7 @@ const j0 = ["id", "aria-describedby", "aria-invalid", "type", "value"], G0 = ["a
|
|
|
7798
7798
|
}, [
|
|
7799
7799
|
Q($.$slots, "before", {}, void 0, !0)
|
|
7800
7800
|
], 512)) : G("", !0),
|
|
7801
|
-
K("input",
|
|
7801
|
+
K("input", Ue({
|
|
7802
7802
|
id: f.value,
|
|
7803
7803
|
"aria-describedby": k.value ? I(d) : void 0,
|
|
7804
7804
|
"aria-invalid": $.error || $.hasError || p.value ? "true" : void 0,
|
|
@@ -7997,7 +7997,7 @@ const dw = /* @__PURE__ */ le({
|
|
|
7997
7997
|
text: t.value
|
|
7998
7998
|
}, {
|
|
7999
7999
|
default: B(() => [
|
|
8000
|
-
Z(
|
|
8000
|
+
Z(it, Ue({
|
|
8001
8001
|
appearance: "tertiary",
|
|
8002
8002
|
class: ["code-block-action-button", [`theme-${r.theme}`, { "code-block-action-button-active": r.active }]]
|
|
8003
8003
|
}, I(a), {
|
|
@@ -8157,14 +8157,14 @@ const vw = ["id"], pw = {
|
|
|
8157
8157
|
function V() {
|
|
8158
8158
|
var De;
|
|
8159
8159
|
const ee = (De = b.value) == null ? void 0 : De.querySelector(".highlighted-code-block"), ye = ee == null ? void 0 : ee.querySelector("code");
|
|
8160
|
-
ee instanceof HTMLElement && ye instanceof HTMLElement && i("code-block-render",
|
|
8160
|
+
ee instanceof HTMLElement && ye instanceof HTMLElement && i("code-block-render", de(ee, ye));
|
|
8161
8161
|
}
|
|
8162
8162
|
function ve() {
|
|
8163
8163
|
var De;
|
|
8164
8164
|
const ee = (De = b.value) == null ? void 0 : De.querySelector(".highlighted-code-block"), ye = ee == null ? void 0 : ee.querySelector("code");
|
|
8165
|
-
ee instanceof HTMLElement && ye instanceof HTMLElement && i("matching-lines-change",
|
|
8165
|
+
ee instanceof HTMLElement && ye instanceof HTMLElement && i("matching-lines-change", de(ee, ye));
|
|
8166
8166
|
}
|
|
8167
|
-
function
|
|
8167
|
+
function de(ee, ye) {
|
|
8168
8168
|
return {
|
|
8169
8169
|
preElement: ee,
|
|
8170
8170
|
codeElement: ye,
|
|
@@ -8234,7 +8234,7 @@ const vw = ["id"], pw = {
|
|
|
8234
8234
|
}, 1500));
|
|
8235
8235
|
}
|
|
8236
8236
|
const oe = y(() => e.theme === "light" ? n1 : bs);
|
|
8237
|
-
function
|
|
8237
|
+
function Ye(ee) {
|
|
8238
8238
|
return {
|
|
8239
8239
|
// These props essentially renders a structure like this:
|
|
8240
8240
|
//
|
|
@@ -8246,7 +8246,7 @@ const vw = ["id"], pw = {
|
|
|
8246
8246
|
data: ee ? g.value : T.value,
|
|
8247
8247
|
item: "span",
|
|
8248
8248
|
itemProps: ({ item: ye }) => ({
|
|
8249
|
-
class:
|
|
8249
|
+
class: ue({
|
|
8250
8250
|
line: !0,
|
|
8251
8251
|
"line-is-match": ee ? !1 : C.value.has(ye),
|
|
8252
8252
|
"line-is-highlighted-match": ee ? !1 : m.value !== null && ye === g.value[m.value]
|
|
@@ -8269,7 +8269,7 @@ const vw = ["id"], pw = {
|
|
|
8269
8269
|
id: ee.id,
|
|
8270
8270
|
ref_key: "codeBlock",
|
|
8271
8271
|
ref: b,
|
|
8272
|
-
class:
|
|
8272
|
+
class: ue(["k-code-block", [`theme-${ee.theme}`]]),
|
|
8273
8273
|
"data-testid": "k-code-block",
|
|
8274
8274
|
tabindex: "-1",
|
|
8275
8275
|
onBlur: ye[1] || (ye[1] = (De) => m.value = null)
|
|
@@ -8430,13 +8430,13 @@ const vw = ["id"], pw = {
|
|
|
8430
8430
|
])) : G("", !0),
|
|
8431
8431
|
z.value || S.value ? dn((h(), X(ze("pre"), {
|
|
8432
8432
|
key: 1,
|
|
8433
|
-
class:
|
|
8433
|
+
class: ue(["filtered-code-block", {
|
|
8434
8434
|
"show-line-numbers": ee.showLineNumbers
|
|
8435
8435
|
}]),
|
|
8436
8436
|
"data-testid": "filtered-code-block"
|
|
8437
8437
|
}, {
|
|
8438
8438
|
default: B(() => [
|
|
8439
|
-
ee.showLineNumbers && !ee.singleLine ? (h(), X(I(zd), lr(
|
|
8439
|
+
ee.showLineNumbers && !ee.singleLine ? (h(), X(I(zd), lr(Ue({ key: 0 }, Ye(!0))), {
|
|
8440
8440
|
default: B(({ item: De }) => [
|
|
8441
8441
|
K("a", {
|
|
8442
8442
|
id: M(De),
|
|
@@ -8454,22 +8454,22 @@ const vw = ["id"], pw = {
|
|
|
8454
8454
|
]) : G("", !0),
|
|
8455
8455
|
!z.value || k.value ? dn((h(), X(ze("pre"), {
|
|
8456
8456
|
key: 2,
|
|
8457
|
-
class:
|
|
8457
|
+
class: ue(["highlighted-code-block", {
|
|
8458
8458
|
"show-line-numbers": ee.showLineNumbers,
|
|
8459
8459
|
"single-line": ee.singleLine
|
|
8460
8460
|
}]),
|
|
8461
8461
|
"data-testid": "highlighted-code-block"
|
|
8462
8462
|
}, {
|
|
8463
8463
|
default: B(() => [
|
|
8464
|
-
ee.showLineNumbers && !ee.singleLine ? (h(), X(I(zd),
|
|
8464
|
+
ee.showLineNumbers && !ee.singleLine ? (h(), X(I(zd), Ue({
|
|
8465
8465
|
key: 0,
|
|
8466
8466
|
ref_key: "codeBlockLineNumbers",
|
|
8467
8467
|
ref: w
|
|
8468
|
-
},
|
|
8468
|
+
}, Ye(!1)), {
|
|
8469
8469
|
default: B(({ item: De }) => [
|
|
8470
8470
|
K("a", {
|
|
8471
8471
|
id: M(De),
|
|
8472
|
-
class:
|
|
8472
|
+
class: ue(["line-anchor", { "hide-links": !ee.showLineNumberLinks }]),
|
|
8473
8473
|
href: ee.showLineNumberLinks ? `#${M(De)}` : void 0
|
|
8474
8474
|
}, ie(De), 11, Cw)
|
|
8475
8475
|
]),
|
|
@@ -8517,7 +8517,7 @@ const vw = ["id"], pw = {
|
|
|
8517
8517
|
d !== v && f(d);
|
|
8518
8518
|
}), (d, v) => (h(), D("div", Tw, [
|
|
8519
8519
|
K("div", {
|
|
8520
|
-
class:
|
|
8520
|
+
class: ue(["collapse-heading", { "has-trailing-trigger": u.value }])
|
|
8521
8521
|
}, [
|
|
8522
8522
|
d.title || d.$slots.title ? (h(), X(ze(d.titleTag), {
|
|
8523
8523
|
key: 0,
|
|
@@ -8547,7 +8547,7 @@ const vw = ["id"], pw = {
|
|
|
8547
8547
|
}, [
|
|
8548
8548
|
Q(d.$slots, "trigger-content", {}, () => [
|
|
8549
8549
|
Z(I(Vs), {
|
|
8550
|
-
class:
|
|
8550
|
+
class: ue(["collapse-trigger-icon", { "collapse-expanded": !c.value }]),
|
|
8551
8551
|
"data-testid": "collapse-trigger-icon",
|
|
8552
8552
|
decorative: "",
|
|
8553
8553
|
size: I(Ut)
|
|
@@ -11551,12 +11551,12 @@ function dk() {
|
|
|
11551
11551
|
}), t.default = k;
|
|
11552
11552
|
var n = a(/* @__PURE__ */ _2()), r = a(/* @__PURE__ */ q2()), i = a(/* @__PURE__ */ Ra()), l = a(/* @__PURE__ */ Q2()), u = a(/* @__PURE__ */ Z2()), s = a(/* @__PURE__ */ Fp()), o = /* @__PURE__ */ X2(), c = a(/* @__PURE__ */ _n()), f = a(/* @__PURE__ */ Gt()), d = /* @__PURE__ */ Sl(), v = a(/* @__PURE__ */ uk()), g = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, m = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, b = /^'([^]*?)'?$/, p = /''/g, w = /[a-zA-Z]/;
|
|
11553
11553
|
function k(C, T, N) {
|
|
11554
|
-
var _, z, q, M, E, $, x, R, F, U, W, J, V, ve,
|
|
11554
|
+
var _, z, q, M, E, $, x, R, F, U, W, J, V, ve, de, $e, he, Ce;
|
|
11555
11555
|
(0, f.default)(2, arguments);
|
|
11556
11556
|
var xe = String(T), Pe = (0, d.getDefaultOptions)(), Ne = (_ = (z = N == null ? void 0 : N.locale) !== null && z !== void 0 ? z : Pe.locale) !== null && _ !== void 0 ? _ : v.default, Ge = (0, c.default)((q = (M = (E = ($ = N == null ? void 0 : N.firstWeekContainsDate) !== null && $ !== void 0 ? $ : N == null || (x = N.locale) === null || x === void 0 || (R = x.options) === null || R === void 0 ? void 0 : R.firstWeekContainsDate) !== null && E !== void 0 ? E : Pe.firstWeekContainsDate) !== null && M !== void 0 ? M : (F = Pe.locale) === null || F === void 0 || (U = F.options) === null || U === void 0 ? void 0 : U.firstWeekContainsDate) !== null && q !== void 0 ? q : 1);
|
|
11557
11557
|
if (!(Ge >= 1 && Ge <= 7))
|
|
11558
11558
|
throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
|
|
11559
|
-
var at = (0, c.default)((W = (J = (V = (ve = N == null ? void 0 : N.weekStartsOn) !== null && ve !== void 0 ? ve : N == null || (
|
|
11559
|
+
var at = (0, c.default)((W = (J = (V = (ve = N == null ? void 0 : N.weekStartsOn) !== null && ve !== void 0 ? ve : N == null || (de = N.locale) === null || de === void 0 || ($e = de.options) === null || $e === void 0 ? void 0 : $e.weekStartsOn) !== null && V !== void 0 ? V : Pe.weekStartsOn) !== null && J !== void 0 ? J : (he = Pe.locale) === null || he === void 0 || (Ce = he.options) === null || Ce === void 0 ? void 0 : Ce.weekStartsOn) !== null && W !== void 0 ? W : 0);
|
|
11560
11560
|
if (!(at >= 0 && at <= 6))
|
|
11561
11561
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
11562
11562
|
if (!Ne.localize)
|
|
@@ -11571,7 +11571,7 @@ function dk() {
|
|
|
11571
11571
|
weekStartsOn: at,
|
|
11572
11572
|
locale: Ne,
|
|
11573
11573
|
_originalDate: et
|
|
11574
|
-
},
|
|
11574
|
+
}, Ye = xe.match(m).map(function(ee) {
|
|
11575
11575
|
var ye = ee[0];
|
|
11576
11576
|
if (ye === "p" || ye === "P") {
|
|
11577
11577
|
var De = u.default[ye];
|
|
@@ -11591,7 +11591,7 @@ function dk() {
|
|
|
11591
11591
|
throw new RangeError("Format string contains an unescaped latin alphabet character `" + ye + "`");
|
|
11592
11592
|
return ee;
|
|
11593
11593
|
}).join("");
|
|
11594
|
-
return
|
|
11594
|
+
return Ye;
|
|
11595
11595
|
}
|
|
11596
11596
|
function S(C) {
|
|
11597
11597
|
var T = C.match(b);
|
|
@@ -12665,8 +12665,8 @@ function EC(e) {
|
|
|
12665
12665
|
});
|
|
12666
12666
|
if (xe)
|
|
12667
12667
|
return z = xe, "break";
|
|
12668
|
-
},
|
|
12669
|
-
var $e = ve(
|
|
12668
|
+
}, de = V; de > 0; de--) {
|
|
12669
|
+
var $e = ve(de);
|
|
12670
12670
|
if ($e === "break") break;
|
|
12671
12671
|
}
|
|
12672
12672
|
t.placement !== z && (t.modifiersData[n]._skip = !0, t.placement = z, t.reset = !0);
|
|
@@ -12784,14 +12784,14 @@ function YC(e) {
|
|
|
12784
12784
|
};
|
|
12785
12785
|
if (T) {
|
|
12786
12786
|
if (i) {
|
|
12787
|
-
var $, x = S === "y" ? Jt : ea, R = S === "y" ? pa : ha, F = S === "y" ? "height" : "width", U = T[S], W = U + b[x], J = U - b[R], V = v ? -_[F] / 2 : 0, ve = w === yr ? N[F] : _[F],
|
|
12787
|
+
var $, x = S === "y" ? Jt : ea, R = S === "y" ? pa : ha, F = S === "y" ? "height" : "width", U = T[S], W = U + b[x], J = U - b[R], V = v ? -_[F] / 2 : 0, ve = w === yr ? N[F] : _[F], de = w === yr ? -_[F] : -N[F], $e = t.elements.arrow, he = v && $e ? cu($e) : {
|
|
12788
12788
|
width: 0,
|
|
12789
12789
|
height: 0
|
|
12790
|
-
}, Ce = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Vp(), xe = Ce[x], Pe = Ce[R], Ne = Xr(0, N[F], he[F]), Ge = k ? N[F] / 2 - V - Ne - xe - q.mainAxis : ve - Ne - xe - q.mainAxis, at = k ? -N[F] / 2 + V + Ne + Pe + q.mainAxis :
|
|
12790
|
+
}, Ce = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Vp(), xe = Ce[x], Pe = Ce[R], Ne = Xr(0, N[F], he[F]), Ge = k ? N[F] / 2 - V - Ne - xe - q.mainAxis : ve - Ne - xe - q.mainAxis, at = k ? -N[F] / 2 + V + Ne + Pe + q.mainAxis : de + Ne + Pe + q.mainAxis, et = t.elements.arrow && mi(t.elements.arrow), Qe = et ? S === "y" ? et.clientTop || 0 : et.clientLeft || 0 : 0, Ze = ($ = M == null ? void 0 : M[S]) != null ? $ : 0, oe = U + Ge - Ze - Qe, Ye = U + at - Ze, ee = Xr(v ? Wo(W, oe) : W, U, v ? Mn(J, Ye) : J);
|
|
12791
12791
|
T[S] = ee, E[S] = ee - U;
|
|
12792
12792
|
}
|
|
12793
12793
|
if (u) {
|
|
12794
|
-
var ye, De = S === "x" ? Jt : ea, ne = S === "x" ? pa : ha, we = T[C], Me = C === "y" ? "height" : "width", Te = we + b[De],
|
|
12794
|
+
var ye, De = S === "x" ? Jt : ea, ne = S === "x" ? pa : ha, we = T[C], Me = C === "y" ? "height" : "width", Te = we + b[De], _e = we - b[ne], wt = [Jt, ea].indexOf(p) !== -1, mt = (ye = M == null ? void 0 : M[C]) != null ? ye : 0, Xe = wt ? Te : we - N[Me] - _[Me] - mt + q.altAxis, $t = wt ? we + N[Me] + _[Me] - mt - q.altAxis : _e, Ot = v && wt ? dC(Xe, we, $t) : Xr(v ? Xe : Te, we, v ? $t : _e);
|
|
12795
12795
|
T[C] = Ot, E[C] = Ot - we;
|
|
12796
12796
|
}
|
|
12797
12797
|
t.modifiersData[n] = E;
|
|
@@ -14624,7 +14624,7 @@ function IO({
|
|
|
14624
14624
|
59,
|
|
14625
14625
|
59,
|
|
14626
14626
|
999
|
|
14627
|
-
), J = F, V = `${ct(_, 4)}-${ct(N, 2)}-${ct(p, 2)}`, ve = x,
|
|
14627
|
+
), J = F, V = `${ct(_, 4)}-${ct(N, 2)}-${ct(p, 2)}`, ve = x, de = Rt - x, $e = s[$ - 1], he = u[$ - 1], Ce = p === q && N === M && _ === E, xe = v && p === 1, Pe = v && p === o, Ne = $ === 1, Ge = $ === c, at = x === 1, et = x === Rt, Qe = Gh(_, N, p);
|
|
14628
14628
|
r.push({
|
|
14629
14629
|
locale: n,
|
|
14630
14630
|
id: V,
|
|
@@ -14635,7 +14635,7 @@ function IO({
|
|
|
14635
14635
|
dayFromEnd: w,
|
|
14636
14636
|
weekday: R,
|
|
14637
14637
|
weekdayPosition: ve,
|
|
14638
|
-
weekdayPositionFromEnd:
|
|
14638
|
+
weekdayPositionFromEnd: de,
|
|
14639
14639
|
weekdayOrdinal: k,
|
|
14640
14640
|
weekdayOrdinalFromEnd: S,
|
|
14641
14641
|
week: C,
|
|
@@ -16482,14 +16482,14 @@ function a7(e, { slots: t, emit: a }) {
|
|
|
16482
16482
|
disabledAttribute: C,
|
|
16483
16483
|
disabledDates: T
|
|
16484
16484
|
} = J4(e), N = y(() => e.rows * e.columns), _ = y(() => e.step || N.value), z = y(() => Oh(c.value) ?? null), q = y(() => ir(c.value) ?? null), M = y(
|
|
16485
|
-
() => e.minPage || (k.value ?
|
|
16485
|
+
() => e.minPage || (k.value ? de(k.value) : null)
|
|
16486
16486
|
), E = y(
|
|
16487
|
-
() => e.maxPage || (S.value ?
|
|
16487
|
+
() => e.maxPage || (S.value ? de(S.value) : null)
|
|
16488
16488
|
), $ = y(() => e.navVisibility), x = y(() => !!e.showWeeknumbers), R = y(() => !!e.showIsoWeeknumbers), F = y(() => o.value === "monthly"), U = y(() => o.value === "weekly"), W = y(() => o.value === "daily"), J = () => {
|
|
16489
16489
|
l.value = !0, a("transition-start");
|
|
16490
16490
|
}, V = () => {
|
|
16491
16491
|
l.value = !1, a("transition-end"), d && (d.resolve(!0), d = null);
|
|
16492
|
-
}, ve = (H, A, j = o.value) => zh(H, A, j, p.value),
|
|
16492
|
+
}, ve = (H, A, j = o.value) => zh(H, A, j, p.value), de = (H) => Fh(H, o.value, p.value), $e = (H) => {
|
|
16493
16493
|
!C.value || !Ge.value || (H.isDisabled = Ge.value.cellExists(
|
|
16494
16494
|
C.value.key,
|
|
16495
16495
|
H.dayIndex
|
|
@@ -16531,21 +16531,21 @@ function a7(e, { slots: t, emit: a }) {
|
|
|
16531
16531
|
var H, A;
|
|
16532
16532
|
if (!Ne.value)
|
|
16533
16533
|
return null;
|
|
16534
|
-
const j = Pe.value.find((
|
|
16534
|
+
const j = Pe.value.find((qe) => qe.pinPage) || Pe.value[0];
|
|
16535
16535
|
if (!j || !j.hasRanges)
|
|
16536
16536
|
return null;
|
|
16537
16537
|
const [ae] = j.ranges, pe = ((H = ae.start) == null ? void 0 : H.date) || ((A = ae.end) == null ? void 0 : A.date);
|
|
16538
|
-
return pe ?
|
|
16538
|
+
return pe ? de(pe) : null;
|
|
16539
16539
|
}, Ze = () => {
|
|
16540
16540
|
if (Ia(z.value))
|
|
16541
16541
|
return z.value;
|
|
16542
16542
|
const H = Qe();
|
|
16543
|
-
return Ia(H) ? H :
|
|
16543
|
+
return Ia(H) ? H : de(/* @__PURE__ */ new Date());
|
|
16544
16544
|
}, oe = (H, A = {}) => {
|
|
16545
|
-
const { view: j = o.value, position: ae = 1, force: pe } = A,
|
|
16546
|
-
let
|
|
16547
|
-
return pe || (Os(
|
|
16548
|
-
},
|
|
16545
|
+
const { view: j = o.value, position: ae = 1, force: pe } = A, qe = ae > 0 ? 1 - ae : -(N.value + ae);
|
|
16546
|
+
let We = ve(H, qe, j), kt = ve(We, N.value - 1, j);
|
|
16547
|
+
return pe || (Os(We, M.value) ? We = M.value : Xo(kt, E.value) && (We = ve(E.value, 1 - N.value)), kt = ve(We, N.value - 1)), { fromPage: We, toPage: kt };
|
|
16548
|
+
}, Ye = (H, A, j = "") => {
|
|
16549
16549
|
if (j === "none" || j === "fade")
|
|
16550
16550
|
return j;
|
|
16551
16551
|
if ((H == null ? void 0 : H.view) !== (A == null ? void 0 : A.view))
|
|
@@ -16553,7 +16553,7 @@ function a7(e, { slots: t, emit: a }) {
|
|
|
16553
16553
|
const ae = Xo(A, H), pe = Os(A, H);
|
|
16554
16554
|
return !ae && !pe ? "fade" : j === "slide-v" ? pe ? "slide-down" : "slide-up" : pe ? "slide-right" : "slide-left";
|
|
16555
16555
|
}, ee = (H = {}) => new Promise((A, j) => {
|
|
16556
|
-
const { position: ae = 1, force: pe = !1, transition:
|
|
16556
|
+
const { position: ae = 1, force: pe = !1, transition: qe } = H, We = Ia(H.page) ? H.page : Ze(), { fromPage: kt } = oe(We, {
|
|
16557
16557
|
position: ae,
|
|
16558
16558
|
force: pe
|
|
16559
16559
|
}), Qt = [];
|
|
@@ -16576,19 +16576,19 @@ function a7(e, { slots: t, emit: a }) {
|
|
|
16576
16576
|
})
|
|
16577
16577
|
);
|
|
16578
16578
|
}
|
|
16579
|
-
f.value =
|
|
16579
|
+
f.value = Ye(
|
|
16580
16580
|
c.value[0],
|
|
16581
16581
|
Qt[0],
|
|
16582
|
-
|
|
16582
|
+
qe
|
|
16583
16583
|
), c.value = Qt, f.value && f.value !== "none" ? d = {
|
|
16584
16584
|
resolve: A,
|
|
16585
16585
|
reject: j
|
|
16586
16586
|
} : A(!0);
|
|
16587
16587
|
}), ye = (H) => {
|
|
16588
|
-
const A = z.value ??
|
|
16588
|
+
const A = z.value ?? de(/* @__PURE__ */ new Date());
|
|
16589
16589
|
return ve(A, H);
|
|
16590
16590
|
}, De = (H, A = {}) => {
|
|
16591
|
-
const j = Ia(H) ? H :
|
|
16591
|
+
const j = Ia(H) ? H : de(H);
|
|
16592
16592
|
return Object.assign(
|
|
16593
16593
|
A,
|
|
16594
16594
|
oe(j, {
|
|
@@ -16606,23 +16606,23 @@ function a7(e, { slots: t, emit: a }) {
|
|
|
16606
16606
|
page: A.fromPage,
|
|
16607
16607
|
position: 1,
|
|
16608
16608
|
force: !0
|
|
16609
|
-
}), a("did-move", c.value)), !0),
|
|
16609
|
+
}), a("did-move", c.value)), !0), _e = (H, A = {}) => Te(ye(H), A), wt = () => _e(-_.value), mt = () => _e(_.value), Xe = (H) => {
|
|
16610
16610
|
const A = F.value ? ".in-month" : "", j = `.id-${p.value.getDayId(H)}${A}`, ae = `${j}.vc-focusable, ${j} .vc-focusable`, pe = n.value;
|
|
16611
16611
|
if (pe) {
|
|
16612
|
-
const
|
|
16613
|
-
if (
|
|
16614
|
-
return
|
|
16612
|
+
const qe = pe.querySelector(ae);
|
|
16613
|
+
if (qe)
|
|
16614
|
+
return qe.focus(), !0;
|
|
16615
16615
|
}
|
|
16616
16616
|
return !1;
|
|
16617
16617
|
}, $t = async (H, A = {}) => Xe(H) ? !0 : (await Te(H, A), Xe(H)), Ot = (H, A) => {
|
|
16618
16618
|
i.value = H.day, a("dayclick", H, A);
|
|
16619
16619
|
}, re = (H, A) => {
|
|
16620
16620
|
a("daymouseenter", H, A);
|
|
16621
|
-
},
|
|
16621
|
+
}, He = (H, A) => {
|
|
16622
16622
|
a("daymouseleave", H, A);
|
|
16623
16623
|
}, Fe = (H, A) => {
|
|
16624
16624
|
i.value = H.day, r.value = H, H.isFocused = !0, a("dayfocusin", H, A);
|
|
16625
|
-
},
|
|
16625
|
+
}, ot = (H, A) => {
|
|
16626
16626
|
r.value = null, H.isFocused = !1, a("dayfocusout", H, A);
|
|
16627
16627
|
}, nt = (H, A) => {
|
|
16628
16628
|
a("daykeydown", H, A);
|
|
@@ -16710,7 +16710,7 @@ function a7(e, { slots: t, emit: a }) {
|
|
|
16710
16710
|
$e(H), he(H);
|
|
16711
16711
|
});
|
|
16712
16712
|
});
|
|
16713
|
-
const
|
|
16713
|
+
const ce = {
|
|
16714
16714
|
emit: a,
|
|
16715
16715
|
containerRef: n,
|
|
16716
16716
|
focusedDay: r,
|
|
@@ -16745,11 +16745,11 @@ function a7(e, { slots: t, emit: a }) {
|
|
|
16745
16745
|
navVisibility: $,
|
|
16746
16746
|
showWeeknumbers: x,
|
|
16747
16747
|
showIsoWeeknumbers: R,
|
|
16748
|
-
getDateAddress:
|
|
16748
|
+
getDateAddress: de,
|
|
16749
16749
|
canMove: De,
|
|
16750
16750
|
canMoveBy: ne,
|
|
16751
16751
|
move: Te,
|
|
16752
|
-
moveBy:
|
|
16752
|
+
moveBy: _e,
|
|
16753
16753
|
movePrev: wt,
|
|
16754
16754
|
moveNext: mt,
|
|
16755
16755
|
onTransitionBeforeEnter: J,
|
|
@@ -16760,12 +16760,12 @@ function a7(e, { slots: t, emit: a }) {
|
|
|
16760
16760
|
onDayKeydown: nt,
|
|
16761
16761
|
onDayClick: Ot,
|
|
16762
16762
|
onDayMouseenter: re,
|
|
16763
|
-
onDayMouseleave:
|
|
16763
|
+
onDayMouseleave: He,
|
|
16764
16764
|
onDayFocusin: Fe,
|
|
16765
|
-
onDayFocusout:
|
|
16765
|
+
onDayFocusout: ot,
|
|
16766
16766
|
onWeeknumberClick: Lt
|
|
16767
16767
|
};
|
|
16768
|
-
return vi(dg,
|
|
16768
|
+
return vi(dg, ce), ce;
|
|
16769
16769
|
}
|
|
16770
16770
|
function Wn() {
|
|
16771
16771
|
const e = fi(dg);
|
|
@@ -16828,8 +16828,8 @@ const n7 = le({
|
|
|
16828
16828
|
const V = l.direction === "left" || l.direction === "right";
|
|
16829
16829
|
let ve = "";
|
|
16830
16830
|
if (l.placement) {
|
|
16831
|
-
const
|
|
16832
|
-
|
|
16831
|
+
const de = l.placement.split("-");
|
|
16832
|
+
de.length > 1 && (ve = de[1]);
|
|
16833
16833
|
}
|
|
16834
16834
|
return ["start", "top", "left"].includes(ve) ? V ? "top" : "left" : ["end", "bottom", "right"].includes(ve) ? V ? "bottom" : "right" : V ? "middle" : "center";
|
|
16835
16835
|
});
|
|
@@ -16877,8 +16877,8 @@ const n7 = le({
|
|
|
16877
16877
|
const ve = i.state.elements.reference;
|
|
16878
16878
|
if (!n.value || !ve)
|
|
16879
16879
|
return;
|
|
16880
|
-
const
|
|
16881
|
-
wo(n.value,
|
|
16880
|
+
const de = V.target;
|
|
16881
|
+
wo(n.value, de) || wo(ve, de) || p({ force: !0 });
|
|
16882
16882
|
}
|
|
16883
16883
|
function S(V) {
|
|
16884
16884
|
(V.key === "Esc" || V.key === "Escape") && p();
|
|
@@ -16969,7 +16969,7 @@ const n7 = le({
|
|
|
16969
16969
|
};
|
|
16970
16970
|
function r7(e, t, a, n, r, i) {
|
|
16971
16971
|
return h(), D("div", {
|
|
16972
|
-
class:
|
|
16972
|
+
class: ue(["vc-popover-content-wrapper", { "is-interactive": e.isInteractive }]),
|
|
16973
16973
|
ref: "popoverRef",
|
|
16974
16974
|
onClick: t[0] || (t[0] = (...l) => e.onClick && e.onClick(...l)),
|
|
16975
16975
|
onMouseover: t[1] || (t[1] = (...l) => e.onMouseOver && e.onMouseOver(...l)),
|
|
@@ -16986,7 +16986,7 @@ function r7(e, t, a, n, r, i) {
|
|
|
16986
16986
|
onAfterLeave: e.afterLeave
|
|
16987
16987
|
}, {
|
|
16988
16988
|
default: B(() => [
|
|
16989
|
-
e.isVisible ? (h(), D("div",
|
|
16989
|
+
e.isVisible ? (h(), D("div", Ue({
|
|
16990
16990
|
key: 0,
|
|
16991
16991
|
tabindex: "-1",
|
|
16992
16992
|
class: `vc-popover-content direction-${e.direction}`
|
|
@@ -17000,7 +17000,7 @@ function r7(e, t, a, n, r, i) {
|
|
|
17000
17000
|
me(ie(e.data), 1)
|
|
17001
17001
|
]),
|
|
17002
17002
|
K("span", {
|
|
17003
|
-
class:
|
|
17003
|
+
class: ue([
|
|
17004
17004
|
"vc-popover-caret",
|
|
17005
17005
|
`direction-${e.direction}`,
|
|
17006
17006
|
`align-${e.alignment}`
|
|
@@ -17036,7 +17036,7 @@ const Ru = /* @__PURE__ */ mn(n7, [["render", r7]]), i7 = { class: "vc-day-popov
|
|
|
17036
17036
|
return (n, r) => (h(), D("div", i7, [
|
|
17037
17037
|
I(a) ? (h(), D("div", o7, [
|
|
17038
17038
|
K("span", {
|
|
17039
|
-
class:
|
|
17039
|
+
class: ue(I(a).class)
|
|
17040
17040
|
}, null, 2)
|
|
17041
17041
|
])) : G("", !0),
|
|
17042
17042
|
K("div", l7, [
|
|
@@ -17056,7 +17056,7 @@ const Ru = /* @__PURE__ */ mn(n7, [["render", r7]]), i7 = { class: "vc-day-popov
|
|
|
17056
17056
|
},
|
|
17057
17057
|
setup(e) {
|
|
17058
17058
|
const a = ug(e.name);
|
|
17059
|
-
return (n, r) => I(a) ? (h(), X(ze(I(a)), lr(
|
|
17059
|
+
return (n, r) => I(a) ? (h(), X(ze(I(a)), lr(Ue({ key: 0 }, n.$attrs)), null, 16)) : Q(n.$slots, "default", { key: 1 });
|
|
17060
17060
|
}
|
|
17061
17061
|
}), d7 = { class: "vc-day-popover-container" }, c7 = {
|
|
17062
17062
|
key: 0,
|
|
@@ -17073,7 +17073,7 @@ const Ru = /* @__PURE__ */ mn(n7, [["render", r7]]), i7 = { class: "vc-day-popov
|
|
|
17073
17073
|
}
|
|
17074
17074
|
return (s, o) => (h(), X(Ru, {
|
|
17075
17075
|
id: I(t),
|
|
17076
|
-
class:
|
|
17076
|
+
class: ue([`vc-${I(n)}`, `vc-${I(a)}`])
|
|
17077
17077
|
}, {
|
|
17078
17078
|
default: B(({ data: { day: c, attributes: f }, hide: d }) => [
|
|
17079
17079
|
Z(ua, {
|
|
@@ -17228,7 +17228,7 @@ const B7 = /* @__PURE__ */ mn(M7, [["render", L7]]), R7 = /* @__PURE__ */ Object
|
|
|
17228
17228
|
}
|
|
17229
17229
|
}).join(" ") }));
|
|
17230
17230
|
return (m, b) => (h(), D("div", {
|
|
17231
|
-
class:
|
|
17231
|
+
class: ue(["vc-header", { "is-lg": e.isLg, "is-xl": e.isXl, "is-2xl": e.is2xl }]),
|
|
17232
17232
|
style: Oe(I(g))
|
|
17233
17233
|
}, [
|
|
17234
17234
|
I(v).prev ? (h(), D("button", {
|
|
@@ -17364,23 +17364,23 @@ const q7 = { class: "vc-nav-header" }, W7 = ["disabled"], U7 = ["disabled"], V7
|
|
|
17364
17364
|
setTimeout(() => {
|
|
17365
17365
|
if (c.value == null)
|
|
17366
17366
|
return;
|
|
17367
|
-
const
|
|
17367
|
+
const de = c.value.querySelector(
|
|
17368
17368
|
".vc-nav-item:not(:disabled)"
|
|
17369
17369
|
);
|
|
17370
|
-
|
|
17370
|
+
de && de.focus();
|
|
17371
17371
|
}, 10);
|
|
17372
17372
|
}
|
|
17373
|
-
function d(
|
|
17374
|
-
return Math.floor(
|
|
17373
|
+
function d(de) {
|
|
17374
|
+
return Math.floor(de / u);
|
|
17375
17375
|
}
|
|
17376
17376
|
function v() {
|
|
17377
17377
|
l.value = !l.value;
|
|
17378
17378
|
}
|
|
17379
|
-
function g(
|
|
17380
|
-
return
|
|
17379
|
+
function g(de) {
|
|
17380
|
+
return de * u;
|
|
17381
17381
|
}
|
|
17382
|
-
function m(
|
|
17383
|
-
return u * (
|
|
17382
|
+
function m(de) {
|
|
17383
|
+
return u * (de + 1) - 1;
|
|
17384
17384
|
}
|
|
17385
17385
|
function b() {
|
|
17386
17386
|
U.value && (l.value && w(), S());
|
|
@@ -17401,29 +17401,29 @@ const q7 = { class: "vc-nav-header" }, W7 = ["disabled"], U7 = ["disabled"], V7
|
|
|
17401
17401
|
o.value++;
|
|
17402
17402
|
}
|
|
17403
17403
|
const T = y(
|
|
17404
|
-
() => r(s.value, t.value.navMonths).map((
|
|
17405
|
-
...
|
|
17404
|
+
() => r(s.value, t.value.navMonths).map((de) => ({
|
|
17405
|
+
...de,
|
|
17406
17406
|
click: () => a(
|
|
17407
|
-
{ month:
|
|
17407
|
+
{ month: de.month, year: de.year },
|
|
17408
17408
|
{ position: n.value.position }
|
|
17409
17409
|
)
|
|
17410
17410
|
}))
|
|
17411
17411
|
), N = y(
|
|
17412
17412
|
() => r(s.value - 1, t.value.navMonths)
|
|
17413
17413
|
), _ = y(
|
|
17414
|
-
() => N.value.some((
|
|
17414
|
+
() => N.value.some((de) => !de.isDisabled)
|
|
17415
17415
|
), z = y(
|
|
17416
17416
|
() => r(s.value + 1, t.value.navMonths)
|
|
17417
17417
|
), q = y(
|
|
17418
|
-
() => z.value.some((
|
|
17418
|
+
() => z.value.some((de) => !de.isDisabled)
|
|
17419
17419
|
), M = y(
|
|
17420
17420
|
() => i(
|
|
17421
17421
|
g(o.value),
|
|
17422
17422
|
m(o.value)
|
|
17423
|
-
).map((
|
|
17424
|
-
...
|
|
17423
|
+
).map((de) => ({
|
|
17424
|
+
...de,
|
|
17425
17425
|
click: () => {
|
|
17426
|
-
s.value =
|
|
17426
|
+
s.value = de.year, l.value = !0, f();
|
|
17427
17427
|
}
|
|
17428
17428
|
}))
|
|
17429
17429
|
), E = y(
|
|
@@ -17432,27 +17432,27 @@ const q7 = { class: "vc-nav-header" }, W7 = ["disabled"], U7 = ["disabled"], V7
|
|
|
17432
17432
|
m(o.value - 1)
|
|
17433
17433
|
)
|
|
17434
17434
|
), $ = y(
|
|
17435
|
-
() => E.value.some((
|
|
17435
|
+
() => E.value.some((de) => !de.isDisabled)
|
|
17436
17436
|
), x = y(
|
|
17437
17437
|
() => i(
|
|
17438
17438
|
g(o.value + 1),
|
|
17439
17439
|
m(o.value + 1)
|
|
17440
17440
|
)
|
|
17441
17441
|
), R = y(
|
|
17442
|
-
() => x.value.some((
|
|
17442
|
+
() => x.value.some((de) => !de.isDisabled)
|
|
17443
17443
|
), F = y(
|
|
17444
17444
|
() => l.value ? T.value : M.value
|
|
17445
17445
|
), U = y(
|
|
17446
17446
|
() => l.value ? _.value : $.value
|
|
17447
17447
|
), W = y(
|
|
17448
17448
|
() => l.value ? q.value : R.value
|
|
17449
|
-
), J = y(() => Oh(M.value.map((
|
|
17449
|
+
), J = y(() => Oh(M.value.map((de) => de.year))), V = y(() => ir(M.value.map((de) => de.year))), ve = y(() => l.value ? s.value : `${J.value} - ${V.value}`);
|
|
17450
17450
|
return Ws(() => {
|
|
17451
17451
|
s.value = n.value.year, f();
|
|
17452
17452
|
}), fe(
|
|
17453
17453
|
() => s.value,
|
|
17454
|
-
(
|
|
17455
|
-
), st(() => f()), (
|
|
17454
|
+
(de) => o.value = d(de)
|
|
17455
|
+
), st(() => f()), (de, $e) => (h(), D("div", {
|
|
17456
17456
|
class: "vc-nav-container",
|
|
17457
17457
|
ref_key: "navContainer",
|
|
17458
17458
|
ref: c
|
|
@@ -17515,7 +17515,7 @@ const q7 = { class: "vc-nav-header" }, W7 = ["disabled"], U7 = ["disabled"], V7
|
|
|
17515
17515
|
type: "button",
|
|
17516
17516
|
"data-id": he.id,
|
|
17517
17517
|
"aria-label": he.ariaLabel,
|
|
17518
|
-
class:
|
|
17518
|
+
class: ue(["vc-nav-item vc-focus", [
|
|
17519
17519
|
he.isActive ? "is-active" : he.isCurrent ? "is-current" : ""
|
|
17520
17520
|
]]),
|
|
17521
17521
|
disabled: he.isDisabled,
|
|
@@ -17539,7 +17539,7 @@ const q7 = { class: "vc-nav-header" }, W7 = ["disabled"], U7 = ["disabled"], V7
|
|
|
17539
17539
|
const { navPopoverId: t, color: a, displayMode: n } = Wn();
|
|
17540
17540
|
return (r, i) => (h(), X(Ru, {
|
|
17541
17541
|
id: I(t),
|
|
17542
|
-
class:
|
|
17542
|
+
class: ue(["vc-nav-popover-container", `vc-${I(a)}`, `vc-${I(n)}`])
|
|
17543
17543
|
}, {
|
|
17544
17544
|
default: B(({ data: l }) => [
|
|
17545
17545
|
Z(pg, {
|
|
@@ -17695,15 +17695,15 @@ const q7 = { class: "vc-nav-header" }, W7 = ["disabled"], U7 = ["disabled"], V7
|
|
|
17695
17695
|
function aP(e, t, a, n, r, i) {
|
|
17696
17696
|
const l = _t("CalendarSlot"), u = Gg("popover");
|
|
17697
17697
|
return h(), D("div", {
|
|
17698
|
-
class:
|
|
17698
|
+
class: ue(e.dayClasses)
|
|
17699
17699
|
}, [
|
|
17700
17700
|
e.hasHighlights ? (h(), D("div", Z7, [
|
|
17701
17701
|
(h(!0), D(Ae, null, Re(e.highlights, ({ key: s, wrapperClass: o, class: c, style: f }) => (h(), D("div", {
|
|
17702
17702
|
key: s,
|
|
17703
|
-
class:
|
|
17703
|
+
class: ue(o)
|
|
17704
17704
|
}, [
|
|
17705
17705
|
K("div", {
|
|
17706
|
-
class:
|
|
17706
|
+
class: ue(c),
|
|
17707
17707
|
style: Oe(f)
|
|
17708
17708
|
}, null, 6)
|
|
17709
17709
|
], 2))), 128))
|
|
@@ -17718,7 +17718,7 @@ function aP(e, t, a, n, r, i) {
|
|
|
17718
17718
|
locale: e.locale
|
|
17719
17719
|
}, {
|
|
17720
17720
|
default: B(() => [
|
|
17721
|
-
dn((h(), D("div",
|
|
17721
|
+
dn((h(), D("div", Ue(e.dayContentProps, cl(e.dayContentEvents, !0)), [
|
|
17722
17722
|
me(ie(e.day.label), 1)
|
|
17723
17723
|
], 16)), [
|
|
17724
17724
|
[u, e.dayPopover]
|
|
@@ -17730,7 +17730,7 @@ function aP(e, t, a, n, r, i) {
|
|
|
17730
17730
|
K("div", J7, [
|
|
17731
17731
|
(h(!0), D(Ae, null, Re(e.dots, ({ key: s, class: o, style: c }) => (h(), D("span", {
|
|
17732
17732
|
key: s,
|
|
17733
|
-
class:
|
|
17733
|
+
class: ue(o),
|
|
17734
17734
|
style: Oe(c)
|
|
17735
17735
|
}, null, 6))), 128))
|
|
17736
17736
|
])
|
|
@@ -17739,7 +17739,7 @@ function aP(e, t, a, n, r, i) {
|
|
|
17739
17739
|
K("div", tP, [
|
|
17740
17740
|
(h(!0), D(Ae, null, Re(e.bars, ({ key: s, class: o, style: c }) => (h(), D("span", {
|
|
17741
17741
|
key: s,
|
|
17742
|
-
class:
|
|
17742
|
+
class: ue(o),
|
|
17743
17743
|
style: Oe(c)
|
|
17744
17744
|
}, null, 6))), 128))
|
|
17745
17745
|
])
|
|
@@ -17754,7 +17754,7 @@ const nP = /* @__PURE__ */ mn(Q7, [["render", aP]]), rP = { class: "vc-weekdays"
|
|
|
17754
17754
|
setup(e) {
|
|
17755
17755
|
const { page: t } = vg(), { onWeeknumberClick: a } = Wn();
|
|
17756
17756
|
return (n, r) => (h(), D("div", {
|
|
17757
|
-
class:
|
|
17757
|
+
class: ue([
|
|
17758
17758
|
"vc-pane",
|
|
17759
17759
|
`row-${I(t).row}`,
|
|
17760
17760
|
`row-from-end-${I(t).rowFromEnd}`,
|
|
@@ -17769,14 +17769,14 @@ const nP = /* @__PURE__ */ mn(Q7, [["render", aP]]), rP = { class: "vc-weekdays"
|
|
|
17769
17769
|
"hide-arrows": ""
|
|
17770
17770
|
}, null, 8, ["page"]),
|
|
17771
17771
|
K("div", {
|
|
17772
|
-
class:
|
|
17772
|
+
class: ue(["vc-weeks", {
|
|
17773
17773
|
[`vc-show-weeknumbers-${I(t).weeknumberPosition}`]: I(t).weeknumberPosition
|
|
17774
17774
|
}])
|
|
17775
17775
|
}, [
|
|
17776
17776
|
K("div", rP, [
|
|
17777
17777
|
(h(!0), D(Ae, null, Re(I(t).weekdays, ({ weekday: i, label: l }, u) => (h(), D("div", {
|
|
17778
17778
|
key: u,
|
|
17779
|
-
class:
|
|
17779
|
+
class: ue(`vc-weekday vc-weekday-${i}`)
|
|
17780
17780
|
}, ie(l), 3))), 128))
|
|
17781
17781
|
]),
|
|
17782
17782
|
(h(!0), D(Ae, null, Re(I(t).viewWeeks, (i) => (h(), D("div", {
|
|
@@ -17785,10 +17785,10 @@ const nP = /* @__PURE__ */ mn(Q7, [["render", aP]]), rP = { class: "vc-weekdays"
|
|
|
17785
17785
|
}, [
|
|
17786
17786
|
I(t).weeknumberPosition ? (h(), D("div", {
|
|
17787
17787
|
key: 0,
|
|
17788
|
-
class:
|
|
17788
|
+
class: ue(["vc-weeknumber", `is-${I(t).weeknumberPosition}`])
|
|
17789
17789
|
}, [
|
|
17790
17790
|
K("span", {
|
|
17791
|
-
class:
|
|
17791
|
+
class: ue(["vc-weeknumber-content"]),
|
|
17792
17792
|
onClick: (l) => I(a)(i, l)
|
|
17793
17793
|
}, ie(i.weeknumberDisplay), 9, iP)
|
|
17794
17794
|
], 2)) : G("", !0),
|
|
@@ -17818,7 +17818,7 @@ const nP = /* @__PURE__ */ mn(Q7, [["render", aP]]), rP = { class: "vc-weekdays"
|
|
|
17818
17818
|
function dP(e, t, a, n, r, i) {
|
|
17819
17819
|
const l = _t("CalendarHeader"), u = _t("CalendarPage"), s = _t("CalendarSlot"), o = _t("CalendarPageProvider"), c = _t("CalendarDayPopover"), f = _t("CalendarNavPopover");
|
|
17820
17820
|
return h(), D(Ae, null, [
|
|
17821
|
-
K("div",
|
|
17821
|
+
K("div", Ue({ "data-helptext": "Press the arrow keys to navigate by day, Home and End to navigate to week ends, PageUp and PageDown to navigate by month, Alt+PageUp and Alt+PageDown to navigate by year" }, e.$attrs, {
|
|
17822
17822
|
class: [
|
|
17823
17823
|
"vc-container",
|
|
17824
17824
|
`vc-${e.view}`,
|
|
@@ -17835,7 +17835,7 @@ function dP(e, t, a, n, r, i) {
|
|
|
17835
17835
|
ref: "containerRef"
|
|
17836
17836
|
}), [
|
|
17837
17837
|
K("div", {
|
|
17838
|
-
class:
|
|
17838
|
+
class: ue(["vc-pane-container", { "in-transition": e.inTransition }])
|
|
17839
17839
|
}, [
|
|
17840
17840
|
K("div", uP, [
|
|
17841
17841
|
e.firstPage ? (h(), X(l, {
|
|
@@ -17986,8 +17986,8 @@ function pP(e, { emit: t, slots: a }) {
|
|
|
17986
17986
|
...e.selectAttribute,
|
|
17987
17987
|
dates: o.value,
|
|
17988
17988
|
pinPage: !0
|
|
17989
|
-
}, { dot: j, bar: ae, highlight: pe, content:
|
|
17990
|
-
return !j && !ae && !pe && !
|
|
17989
|
+
}, { dot: j, bar: ae, highlight: pe, content: qe } = A;
|
|
17990
|
+
return !j && !ae && !pe && !qe && (A.highlight = !0), A;
|
|
17991
17991
|
}), J = y(() => {
|
|
17992
17992
|
if (!p.value || !Pe(c.value))
|
|
17993
17993
|
return null;
|
|
@@ -17995,8 +17995,8 @@ function pP(e, { emit: t, slots: a }) {
|
|
|
17995
17995
|
key: "select-drag",
|
|
17996
17996
|
...e.dragAttribute,
|
|
17997
17997
|
dates: c.value
|
|
17998
|
-
}, { dot: j, bar: ae, highlight: pe, content:
|
|
17999
|
-
return !j && !ae && !pe && !
|
|
17998
|
+
}, { dot: j, bar: ae, highlight: pe, content: qe } = A;
|
|
17999
|
+
return !j && !ae && !pe && !qe && (A.highlight = {
|
|
18000
18000
|
startEnd: {
|
|
18001
18001
|
fillMode: "outline"
|
|
18002
18002
|
}
|
|
@@ -18005,9 +18005,9 @@ function pP(e, { emit: t, slots: a }) {
|
|
|
18005
18005
|
const A = fa(e.attributes) ? [...e.attributes] : [];
|
|
18006
18006
|
return J.value ? A.unshift(J.value) : W.value && A.unshift(W.value), A;
|
|
18007
18007
|
}), ve = y(() => $e(
|
|
18008
|
-
e.rules === "auto" ?
|
|
18008
|
+
e.rules === "auto" ? de() : e.rules ?? {}
|
|
18009
18009
|
));
|
|
18010
|
-
function
|
|
18010
|
+
function de() {
|
|
18011
18011
|
const A = {
|
|
18012
18012
|
ms: [0, 999],
|
|
18013
18013
|
sec: [0, 59],
|
|
@@ -18073,16 +18073,16 @@ function pP(e, { emit: t, slots: a }) {
|
|
|
18073
18073
|
if (!Pe(A))
|
|
18074
18074
|
return null;
|
|
18075
18075
|
if (xe(A)) {
|
|
18076
|
-
const
|
|
18076
|
+
const qe = r.value.toDate(A.start, {
|
|
18077
18077
|
...j[0],
|
|
18078
18078
|
fillDate: w.value ?? void 0,
|
|
18079
18079
|
patch: ae
|
|
18080
|
-
}),
|
|
18080
|
+
}), We = r.value.toDate(A.end, {
|
|
18081
18081
|
...j[1],
|
|
18082
18082
|
fillDate: k.value ?? void 0,
|
|
18083
18083
|
patch: ae
|
|
18084
18084
|
});
|
|
18085
|
-
return
|
|
18085
|
+
return ot({ start: qe, end: We }, pe);
|
|
18086
18086
|
}
|
|
18087
18087
|
return r.value.toDateOrNull(A, {
|
|
18088
18088
|
...j[0],
|
|
@@ -18098,18 +18098,18 @@ function pP(e, { emit: t, slots: a }) {
|
|
|
18098
18098
|
}
|
|
18099
18099
|
function Qe(A, j = {}) {
|
|
18100
18100
|
return clearTimeout(g), new Promise((ae) => {
|
|
18101
|
-
const { debounce: pe = 0, ...
|
|
18101
|
+
const { debounce: pe = 0, ...qe } = j;
|
|
18102
18102
|
pe > 0 ? g = window.setTimeout(() => {
|
|
18103
|
-
ae(Ze(A,
|
|
18104
|
-
}, pe) : ae(Ze(A,
|
|
18103
|
+
ae(Ze(A, qe));
|
|
18104
|
+
}, pe) : ae(Ze(A, qe));
|
|
18105
18105
|
});
|
|
18106
18106
|
}
|
|
18107
18107
|
function Ze(A, {
|
|
18108
18108
|
config: j = _.value,
|
|
18109
18109
|
patch: ae = "dateTime",
|
|
18110
18110
|
clearIfEqual: pe = !1,
|
|
18111
|
-
formatInput:
|
|
18112
|
-
hidePopover:
|
|
18111
|
+
formatInput: qe = !0,
|
|
18112
|
+
hidePopover: We = !1,
|
|
18113
18113
|
dragging: kt = N.value,
|
|
18114
18114
|
targetPriority: Qt,
|
|
18115
18115
|
moveToValue: Sa = !1
|
|
@@ -18124,7 +18124,7 @@ function pP(e, { emit: t, slots: a }) {
|
|
|
18124
18124
|
if (Ge(Tt)) {
|
|
18125
18125
|
if (kt)
|
|
18126
18126
|
return null;
|
|
18127
|
-
Tt = o.value,
|
|
18127
|
+
Tt = o.value, We = !1;
|
|
18128
18128
|
} else Tt == null && e.isRequired ? Tt = o.value : (
|
|
18129
18129
|
// Clear value if same value was passed
|
|
18130
18130
|
Tt != null && Ne(o.value, Tt) && pe && (Tt = null)
|
|
@@ -18135,7 +18135,7 @@ function pP(e, { emit: t, slots: a }) {
|
|
|
18135
18135
|
Tt,
|
|
18136
18136
|
_.value
|
|
18137
18137
|
);
|
|
18138
|
-
return Y && (b = !1, t(kt ? "drag" : "update:modelValue", te), gt(() => b = !0)),
|
|
18138
|
+
return Y && (b = !1, t(kt ? "drag" : "update:modelValue", te), gt(() => b = !0)), We && !kt && He(), qe && oe(), Sa && gt(() => Lt(Qt ?? "start")), te;
|
|
18139
18139
|
}
|
|
18140
18140
|
function oe() {
|
|
18141
18141
|
gt(() => {
|
|
@@ -18149,18 +18149,18 @@ function pP(e, { emit: t, slots: a }) {
|
|
|
18149
18149
|
p.value ? f.value = [j && j.start, j && j.end] : f.value = [j, ""];
|
|
18150
18150
|
});
|
|
18151
18151
|
}
|
|
18152
|
-
function
|
|
18152
|
+
function Ye(A, j, ae) {
|
|
18153
18153
|
f.value.splice(j === "start" ? 0 : 1, 1, A);
|
|
18154
18154
|
const pe = p.value ? {
|
|
18155
18155
|
start: f.value[0],
|
|
18156
18156
|
end: f.value[1] || f.value[0]
|
|
18157
|
-
} : A,
|
|
18157
|
+
} : A, qe = {
|
|
18158
18158
|
type: "string",
|
|
18159
18159
|
mask: q.value
|
|
18160
18160
|
};
|
|
18161
18161
|
Qe(pe, {
|
|
18162
18162
|
...ae,
|
|
18163
|
-
config:
|
|
18163
|
+
config: qe,
|
|
18164
18164
|
patch: $.value,
|
|
18165
18165
|
targetPriority: j,
|
|
18166
18166
|
moveToValue: !0
|
|
@@ -18168,7 +18168,7 @@ function pP(e, { emit: t, slots: a }) {
|
|
|
18168
18168
|
}
|
|
18169
18169
|
function ee(A) {
|
|
18170
18170
|
return (j) => {
|
|
18171
|
-
e.updateOnInput &&
|
|
18171
|
+
e.updateOnInput && Ye(j.currentTarget.value, A, {
|
|
18172
18172
|
formatInput: !1,
|
|
18173
18173
|
hidePopover: !1,
|
|
18174
18174
|
debounce: e.inputDebounce
|
|
@@ -18177,7 +18177,7 @@ function pP(e, { emit: t, slots: a }) {
|
|
|
18177
18177
|
}
|
|
18178
18178
|
function ye(A) {
|
|
18179
18179
|
return (j) => {
|
|
18180
|
-
|
|
18180
|
+
Ye(j.currentTarget.value, A, {
|
|
18181
18181
|
formatInput: !0,
|
|
18182
18182
|
hidePopover: !1
|
|
18183
18183
|
});
|
|
@@ -18204,7 +18204,7 @@ function pP(e, { emit: t, slots: a }) {
|
|
|
18204
18204
|
function Te(A) {
|
|
18205
18205
|
t("popover-did-show", A);
|
|
18206
18206
|
}
|
|
18207
|
-
function
|
|
18207
|
+
function _e(A) {
|
|
18208
18208
|
we(), t("popover-will-hide", A);
|
|
18209
18209
|
}
|
|
18210
18210
|
function wt(A) {
|
|
@@ -18239,12 +18239,12 @@ function pP(e, { emit: t, slots: a }) {
|
|
|
18239
18239
|
break;
|
|
18240
18240
|
}
|
|
18241
18241
|
case "Escape":
|
|
18242
|
-
|
|
18242
|
+
He();
|
|
18243
18243
|
}
|
|
18244
18244
|
t("daykeydown", A, j);
|
|
18245
18245
|
}
|
|
18246
18246
|
function Ot(A, j) {
|
|
18247
|
-
!N.value || m == null || (m.end = A.date, Qe(
|
|
18247
|
+
!N.value || m == null || (m.end = A.date, Qe(ot(m), {
|
|
18248
18248
|
patch: "date",
|
|
18249
18249
|
formatInput: !0
|
|
18250
18250
|
}));
|
|
@@ -18257,7 +18257,7 @@ function pP(e, { emit: t, slots: a }) {
|
|
|
18257
18257
|
id: s.value
|
|
18258
18258
|
});
|
|
18259
18259
|
}
|
|
18260
|
-
function
|
|
18260
|
+
function He(A = {}) {
|
|
18261
18261
|
ci({
|
|
18262
18262
|
hideDelay: 10,
|
|
18263
18263
|
force: !0,
|
|
@@ -18274,7 +18274,7 @@ function pP(e, { emit: t, slots: a }) {
|
|
|
18274
18274
|
id: s.value
|
|
18275
18275
|
});
|
|
18276
18276
|
}
|
|
18277
|
-
function
|
|
18277
|
+
function ot(A, j) {
|
|
18278
18278
|
const { start: ae, end: pe } = A;
|
|
18279
18279
|
if (ae > pe)
|
|
18280
18280
|
switch (j) {
|
|
@@ -18297,8 +18297,8 @@ function pP(e, { emit: t, slots: a }) {
|
|
|
18297
18297
|
const ae = o.value;
|
|
18298
18298
|
if (v.value == null || !Pe(ae))
|
|
18299
18299
|
return !1;
|
|
18300
|
-
const pe = A !== "end",
|
|
18301
|
-
return v.value.move(kt, { position:
|
|
18300
|
+
const pe = A !== "end", qe = pe ? 1 : -1, We = xe(ae) ? pe ? ae.start : ae.end : ae, kt = Fh(We, "monthly", r.value);
|
|
18301
|
+
return v.value.move(kt, { position: qe, ...j });
|
|
18302
18302
|
}
|
|
18303
18303
|
fe(
|
|
18304
18304
|
() => e.isRange,
|
|
@@ -18338,10 +18338,10 @@ function pP(e, { emit: t, slots: a }) {
|
|
|
18338
18338
|
Ze(o.value, { formatInput: !0 });
|
|
18339
18339
|
}
|
|
18340
18340
|
);
|
|
18341
|
-
const
|
|
18341
|
+
const ce = $e(_.value);
|
|
18342
18342
|
o.value = at(
|
|
18343
18343
|
e.modelValue ?? null,
|
|
18344
|
-
|
|
18344
|
+
ce,
|
|
18345
18345
|
"dateTime"
|
|
18346
18346
|
), st(() => {
|
|
18347
18347
|
Ze(e.modelValue, {
|
|
@@ -18373,14 +18373,14 @@ function pP(e, { emit: t, slots: a }) {
|
|
|
18373
18373
|
moveToValue: Lt,
|
|
18374
18374
|
updateValue: Qe,
|
|
18375
18375
|
showPopover: re,
|
|
18376
|
-
hidePopover:
|
|
18376
|
+
hidePopover: He,
|
|
18377
18377
|
togglePopover: Fe,
|
|
18378
18378
|
onDayClick: Xe,
|
|
18379
18379
|
onDayKeydown: $t,
|
|
18380
18380
|
onDayMouseEnter: Ot,
|
|
18381
18381
|
onPopoverBeforeShow: Me,
|
|
18382
18382
|
onPopoverAfterShow: Te,
|
|
18383
|
-
onPopoverBeforeHide:
|
|
18383
|
+
onPopoverBeforeHide: _e,
|
|
18384
18384
|
onPopoverAfterHide: wt
|
|
18385
18385
|
};
|
|
18386
18386
|
return vi(hg, H), H;
|
|
@@ -18542,12 +18542,12 @@ const yP = ["value"], bP = ["value", "disabled"], wP = {
|
|
|
18542
18542
|
return n == null ? void 0 : n.label;
|
|
18543
18543
|
});
|
|
18544
18544
|
return (n, r) => (h(), D("div", {
|
|
18545
|
-
class:
|
|
18545
|
+
class: ue(["vc-base-select", {
|
|
18546
18546
|
"vc-fit-content": e.fitContent,
|
|
18547
18547
|
"vc-has-icon": e.showIcon
|
|
18548
18548
|
}])
|
|
18549
18549
|
}, [
|
|
18550
|
-
K("select",
|
|
18550
|
+
K("select", Ue(n.$attrs, {
|
|
18551
18551
|
value: e.modelValue,
|
|
18552
18552
|
class: ["vc-focus", {
|
|
18553
18553
|
"vc-align-right": e.alignRight,
|
|
@@ -18598,7 +18598,7 @@ const yP = ["value"], bP = ["value", "disabled"], wP = {
|
|
|
18598
18598
|
timeAccuracy: w
|
|
18599
18599
|
} = n;
|
|
18600
18600
|
return (k, S) => (h(), D("div", {
|
|
18601
|
-
class:
|
|
18601
|
+
class: ue(["vc-time-picker", [{ "vc-invalid": !I(i), "vc-attached": !I(v) }]])
|
|
18602
18602
|
}, [
|
|
18603
18603
|
Z(ua, { name: "time-header" }, {
|
|
18604
18604
|
default: B(() => [
|
|
@@ -18683,7 +18683,7 @@ const yP = ["value"], bP = ["value", "disabled"], wP = {
|
|
|
18683
18683
|
} = Fu(), f = u.value ? [0, 1] : [0];
|
|
18684
18684
|
return (d, v) => I(l) ? (h(), D("div", {
|
|
18685
18685
|
key: 0,
|
|
18686
|
-
class:
|
|
18686
|
+
class: ue(`vc-container vc-bordered vc-${I(n)} vc-${I(r)}`)
|
|
18687
18687
|
}, [
|
|
18688
18688
|
(h(!0), D(Ae, null, Re(I(f), (g) => (h(), X(dv, {
|
|
18689
18689
|
key: g,
|
|
@@ -18727,7 +18727,7 @@ const yP = ["value"], bP = ["value", "disabled"], wP = {
|
|
|
18727
18727
|
return (o, c) => (h(), X(Ru, {
|
|
18728
18728
|
id: I(t),
|
|
18729
18729
|
placement: "bottom-start",
|
|
18730
|
-
class:
|
|
18730
|
+
class: ue(`vc-date-picker-content vc-${I(a)} vc-${I(n)}`),
|
|
18731
18731
|
ref_key: "popoverRef",
|
|
18732
18732
|
ref: r,
|
|
18733
18733
|
onBeforeShow: I(i),
|
|
@@ -18756,7 +18756,7 @@ function NP(e, t, a, n, r, i) {
|
|
|
18756
18756
|
return e.$slots.default ? (h(), D(Ae, { key: 0 }, [
|
|
18757
18757
|
Q(e.$slots, "default", lr(ys(e.slotCtx))),
|
|
18758
18758
|
Z(l, lr(ys(e.$attrs)), null, 16)
|
|
18759
|
-
], 64)) : (h(), X(u, lr(
|
|
18759
|
+
], 64)) : (h(), X(u, lr(Ue({ key: 1 }, e.$attrs)), null, 16));
|
|
18760
18760
|
}
|
|
18761
18761
|
const LP = /* @__PURE__ */ mn(PP, [["render", NP]]), BP = { class: "k-segmented-control" }, RP = ["data-testid", "disabled", "onClick"], FP = (e) => e.every((t) => t.value !== void 0), zP = (e) => {
|
|
18762
18762
|
const t = [];
|
|
@@ -18802,7 +18802,7 @@ const LP = /* @__PURE__ */ mn(PP, [["render", NP]]), BP = { class: "k-segmented-
|
|
|
18802
18802
|
return (u, s) => (h(), D("div", BP, [
|
|
18803
18803
|
(h(!0), D(Ae, null, Re(r.value, (o) => (h(), D("button", {
|
|
18804
18804
|
key: `${o.value}-option`,
|
|
18805
|
-
class:
|
|
18805
|
+
class: ue(["segmented-control-button", [e.size, { selected: a.modelValue === o.value }]]),
|
|
18806
18806
|
"data-testid": `${o.value}-option`,
|
|
18807
18807
|
disabled: i(o),
|
|
18808
18808
|
type: "button",
|
|
@@ -18920,7 +18920,7 @@ const LP = /* @__PURE__ */ mn(PP, [["render", NP]]), BP = { class: "k-segmented-
|
|
|
18920
18920
|
} else
|
|
18921
18921
|
C.tabName = "custom", T(e.modelValue), (e.modelValue.start && e.modelValue.end || o.value && e.modelValue.start) && M();
|
|
18922
18922
|
}), (F, U) => (h(), D("div", {
|
|
18923
|
-
class:
|
|
18923
|
+
class: ue(["k-datetime-picker", { "set-min-width": c.value }]),
|
|
18924
18924
|
style: Oe(w.value)
|
|
18925
18925
|
}, [
|
|
18926
18926
|
Z(Tr, {
|
|
@@ -18971,12 +18971,12 @@ const LP = /* @__PURE__ */ mn(PP, [["render", NP]]), BP = { class: "k-segmented-
|
|
|
18971
18971
|
}, [
|
|
18972
18972
|
K("div", jP, ie(W.section), 1),
|
|
18973
18973
|
K("div", GP, [
|
|
18974
|
-
(h(!0), D(Ae, null, Re(W.values, (V, ve) => (h(), X(
|
|
18974
|
+
(h(!0), D(Ae, null, Re(W.values, (V, ve) => (h(), X(it, {
|
|
18975
18975
|
key: `time-${ve}`,
|
|
18976
18976
|
appearance: $(V),
|
|
18977
18977
|
class: "timeframe-button",
|
|
18978
18978
|
"data-testid": `select-timeframe-${V.timeframeLength()}`,
|
|
18979
|
-
onClick: (
|
|
18979
|
+
onClick: (de) => N(V, !0)
|
|
18980
18980
|
}, {
|
|
18981
18981
|
default: B(() => [
|
|
18982
18982
|
me(ie(E(V.timeframeText)), 1)
|
|
@@ -18989,7 +18989,7 @@ const LP = /* @__PURE__ */ mn(PP, [["render", NP]]), BP = { class: "k-segmented-
|
|
|
18989
18989
|
]),
|
|
18990
18990
|
footer: B(() => [
|
|
18991
18991
|
K("div", QP, [
|
|
18992
|
-
F.clearButton ? (h(), X(
|
|
18992
|
+
F.clearButton ? (h(), X(it, {
|
|
18993
18993
|
key: 0,
|
|
18994
18994
|
appearance: "tertiary",
|
|
18995
18995
|
class: "action-button",
|
|
@@ -19001,7 +19001,7 @@ const LP = /* @__PURE__ */ mn(PP, [["render", NP]]), BP = { class: "k-segmented-
|
|
|
19001
19001
|
])),
|
|
19002
19002
|
_: 1
|
|
19003
19003
|
})) : G("", !0),
|
|
19004
|
-
f.value ? (h(), X(
|
|
19004
|
+
f.value ? (h(), X(it, {
|
|
19005
19005
|
key: 1,
|
|
19006
19006
|
appearance: "tertiary",
|
|
19007
19007
|
class: "action-button",
|
|
@@ -19018,17 +19018,17 @@ const LP = /* @__PURE__ */ mn(PP, [["render", NP]]), BP = { class: "k-segmented-
|
|
|
19018
19018
|
]),
|
|
19019
19019
|
default: B(() => [
|
|
19020
19020
|
K("div", {
|
|
19021
|
-
class:
|
|
19021
|
+
class: ue(["datetime-picker-trigger-wrapper", { disabled: F.disabled }])
|
|
19022
19022
|
}, [
|
|
19023
19023
|
K("div", {
|
|
19024
|
-
class:
|
|
19024
|
+
class: ue(["datetime-picker-trigger", { disabled: F.disabled }]),
|
|
19025
19025
|
"data-testid": "datetime-picker-trigger",
|
|
19026
19026
|
role: "button",
|
|
19027
19027
|
style: Oe(w.value),
|
|
19028
19028
|
tabindex: F.disabled ? -1 : 0
|
|
19029
19029
|
}, [
|
|
19030
19030
|
K("span", {
|
|
19031
|
-
class:
|
|
19031
|
+
class: ue(["datetime-picker-display", { "has-icon": F.icon, disabled: F.disabled }]),
|
|
19032
19032
|
"data-testid": "datetime-picker-display",
|
|
19033
19033
|
innerHTML: C.abbreviatedDisplay
|
|
19034
19034
|
}, null, 10, UP)
|
|
@@ -19125,8 +19125,8 @@ const LP = /* @__PURE__ */ mn(PP, [["render", NP]]), BP = { class: "k-segmented-
|
|
|
19125
19125
|
};
|
|
19126
19126
|
return fe(() => n.id, () => {
|
|
19127
19127
|
S.value++;
|
|
19128
|
-
}, { immediate: !0 }), (q, M) => (h(), D("div",
|
|
19129
|
-
e.label ? (h(), X(Qa,
|
|
19128
|
+
}, { immediate: !0 }), (q, M) => (h(), D("div", Ue({ class: "k-file-upload" }, o.value), [
|
|
19129
|
+
e.label ? (h(), X(Qa, Ue({ key: 0 }, e.labelAttributes, {
|
|
19130
19130
|
ref_key: "labelElement",
|
|
19131
19131
|
ref: f,
|
|
19132
19132
|
for: s.value,
|
|
@@ -19148,7 +19148,7 @@ const LP = /* @__PURE__ */ mn(PP, [["render", NP]]), BP = { class: "k-segmented-
|
|
|
19148
19148
|
K("div", JP, [
|
|
19149
19149
|
(h(), D("span", {
|
|
19150
19150
|
key: S.value,
|
|
19151
|
-
class:
|
|
19151
|
+
class: ue(["file-upload-input-text", { placeholder: !C.value, "has-icon": q.$slots.icon, disabled: e.disabled }])
|
|
19152
19152
|
}, ie(C.value ? C.value : e.placeholder), 3)),
|
|
19153
19153
|
(h(), X(pn, {
|
|
19154
19154
|
id: s.value,
|
|
@@ -19167,7 +19167,7 @@ const LP = /* @__PURE__ */ mn(PP, [["render", NP]]), BP = { class: "k-segmented-
|
|
|
19167
19167
|
onChange: N
|
|
19168
19168
|
}, yt({
|
|
19169
19169
|
after: B(() => [
|
|
19170
|
-
Z(
|
|
19170
|
+
Z(it, {
|
|
19171
19171
|
appearance: "tertiary",
|
|
19172
19172
|
class: "file-upload-button",
|
|
19173
19173
|
"data-testid": "file-upload-button",
|
|
@@ -19224,9 +19224,9 @@ const LP = /* @__PURE__ */ mn(PP, [["render", NP]]), BP = { class: "k-segmented-
|
|
|
19224
19224
|
return (c, f) => {
|
|
19225
19225
|
const d = _t("KTooltip"), v = _t("KLabel");
|
|
19226
19226
|
return h(), D("div", {
|
|
19227
|
-
class:
|
|
19227
|
+
class: ue(["k-input-switch", [c.size, { "label-before": c.labelBefore, disabled: c.disabled }, c.$attrs.class]])
|
|
19228
19228
|
}, [
|
|
19229
|
-
K("input",
|
|
19229
|
+
K("input", Ue(u.value, {
|
|
19230
19230
|
id: l.value,
|
|
19231
19231
|
ref_key: "switchInputElement",
|
|
19232
19232
|
ref: r,
|
|
@@ -19236,7 +19236,7 @@ const LP = /* @__PURE__ */ mn(PP, [["render", NP]]), BP = { class: "k-segmented-
|
|
|
19236
19236
|
type: "checkbox",
|
|
19237
19237
|
onInput: o
|
|
19238
19238
|
}), null, 16, aN),
|
|
19239
|
-
Z(d,
|
|
19239
|
+
Z(d, Ue(c.disabled && c.disabledTooltipText ? c.tooltipAttributes : {}, {
|
|
19240
19240
|
class: "switch-control-wrapper",
|
|
19241
19241
|
text: c.disabled ? c.disabledTooltipText : ""
|
|
19242
19242
|
}), {
|
|
@@ -19244,7 +19244,7 @@ const LP = /* @__PURE__ */ mn(PP, [["render", NP]]), BP = { class: "k-segmented-
|
|
|
19244
19244
|
K("span", {
|
|
19245
19245
|
"aria-checked": c.modelValue,
|
|
19246
19246
|
"aria-labelledby": l.value,
|
|
19247
|
-
class:
|
|
19247
|
+
class: ue(["switch-control", { checked: c.modelValue, disabled: c.disabled }]),
|
|
19248
19248
|
"data-testid": "switch-control",
|
|
19249
19249
|
role: "checkbox",
|
|
19250
19250
|
tabindex: c.disabled ? -1 : 0,
|
|
@@ -19702,11 +19702,11 @@ var pv = {
|
|
|
19702
19702
|
* in reverse.
|
|
19703
19703
|
* @returns {HTMLElement|undefined} The next tabbable node, if any.
|
|
19704
19704
|
*/
|
|
19705
|
-
nextTabbableNode: function(
|
|
19706
|
-
var $e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, he = x.indexOf(
|
|
19707
|
-
return he < 0 ? $e ? R.slice(R.indexOf(
|
|
19705
|
+
nextTabbableNode: function(de) {
|
|
19706
|
+
var $e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, he = x.indexOf(de);
|
|
19707
|
+
return he < 0 ? $e ? R.slice(R.indexOf(de) + 1).find(function(Ce) {
|
|
19708
19708
|
return Gn(Ce);
|
|
19709
|
-
}) : R.slice(0, R.indexOf(
|
|
19709
|
+
}) : R.slice(0, R.indexOf(de)).reverse().find(function(Ce) {
|
|
19710
19710
|
return Gn(Ce);
|
|
19711
19711
|
}) : x[he + ($e ? 1 : -1)];
|
|
19712
19712
|
}
|
|
@@ -19752,7 +19752,7 @@ var pv = {
|
|
|
19752
19752
|
return x === Ne;
|
|
19753
19753
|
});
|
|
19754
19754
|
if (ve < 0 && (V.container === x || rs(x, i.tabbableOptions) && !Gn(x, i.tabbableOptions) && !V.nextTabbableNode(x, !1)) && (ve = J), ve >= 0) {
|
|
19755
|
-
var
|
|
19755
|
+
var de = ve === 0 ? l.tabbableGroups.length - 1 : ve - 1, $e = l.tabbableGroups[de];
|
|
19756
19756
|
W = Dn(x) >= 0 ? $e.lastTabbableNode : $e.lastDomTabbableNode;
|
|
19757
19757
|
} else ei(R) || (W = V.nextTabbableNode(x, !1));
|
|
19758
19758
|
} else {
|
|
@@ -19803,8 +19803,8 @@ var pv = {
|
|
|
19803
19803
|
}
|
|
19804
19804
|
} else
|
|
19805
19805
|
l.containerGroups.some(function(ve) {
|
|
19806
|
-
return ve.tabbableNodes.some(function(
|
|
19807
|
-
return Dn(
|
|
19806
|
+
return ve.tabbableNodes.some(function(de) {
|
|
19807
|
+
return Dn(de) > 0;
|
|
19808
19808
|
});
|
|
19809
19809
|
}) || (U = !1);
|
|
19810
19810
|
else
|
|
@@ -20154,7 +20154,7 @@ const FN = {
|
|
|
20154
20154
|
S && (await gt(), k());
|
|
20155
20155
|
}), fl(async () => {
|
|
20156
20156
|
await b(!1), w(!1);
|
|
20157
|
-
}), (S, C) => e.visible ? (h(), D("div",
|
|
20157
|
+
}), (S, C) => e.visible ? (h(), D("div", Ue({
|
|
20158
20158
|
key: 0,
|
|
20159
20159
|
"aria-label": e.title,
|
|
20160
20160
|
"aria-modal": "true",
|
|
@@ -20163,7 +20163,7 @@ const FN = {
|
|
|
20163
20163
|
K("div", {
|
|
20164
20164
|
ref_key: "modalWrapperElement",
|
|
20165
20165
|
ref: o,
|
|
20166
|
-
class:
|
|
20166
|
+
class: ue(["modal-backdrop", { "modal-full-screen": e.fullScreen && !S.$slots.content }]),
|
|
20167
20167
|
onClick: C[3] || (C[3] = (T) => m(!1, T))
|
|
20168
20168
|
}, [
|
|
20169
20169
|
Z(I(zN), {
|
|
@@ -20175,7 +20175,7 @@ const FN = {
|
|
|
20175
20175
|
}, {
|
|
20176
20176
|
default: B(() => [
|
|
20177
20177
|
K("div", {
|
|
20178
|
-
class:
|
|
20178
|
+
class: ue(["modal-container", { "custom-content": S.$slots.content }]),
|
|
20179
20179
|
tabindex: "-1"
|
|
20180
20180
|
}, [
|
|
20181
20181
|
Q(S.$slots, "content", {}, () => [
|
|
@@ -20200,7 +20200,7 @@ const FN = {
|
|
|
20200
20200
|
]))
|
|
20201
20201
|
])) : G("", !0),
|
|
20202
20202
|
K("div", {
|
|
20203
|
-
class:
|
|
20203
|
+
class: ue(["modal-content", { "no-header": !v.value }])
|
|
20204
20204
|
}, [
|
|
20205
20205
|
Q(S.$slots, "default", {}, void 0, !0)
|
|
20206
20206
|
], 2),
|
|
@@ -20208,7 +20208,7 @@ const FN = {
|
|
|
20208
20208
|
Q(S.$slots, "footer", {}, () => [
|
|
20209
20209
|
K("div", WN, [
|
|
20210
20210
|
Q(S.$slots, "footer-actions", {}, () => [
|
|
20211
|
-
e.hideCancelButton ? G("", !0) : (h(), X(
|
|
20211
|
+
e.hideCancelButton ? G("", !0) : (h(), X(it, {
|
|
20212
20212
|
key: 0,
|
|
20213
20213
|
appearance: e.cancelButtonAppearance,
|
|
20214
20214
|
"data-testid": "modal-cancel-button",
|
|
@@ -20220,7 +20220,7 @@ const FN = {
|
|
|
20220
20220
|
]),
|
|
20221
20221
|
_: 1
|
|
20222
20222
|
}, 8, ["appearance", "disabled"])),
|
|
20223
|
-
Z(
|
|
20223
|
+
Z(it, {
|
|
20224
20224
|
appearance: e.actionButtonAppearance,
|
|
20225
20225
|
"data-testid": "modal-action-button",
|
|
20226
20226
|
disabled: e.actionButtonDisabled,
|
|
@@ -20359,7 +20359,7 @@ Docs: https://kongponents.konghq.com/components/modal.html#fullscreen`);
|
|
|
20359
20359
|
K("div", {
|
|
20360
20360
|
ref_key: "modalBodyContent",
|
|
20361
20361
|
ref: r,
|
|
20362
|
-
class:
|
|
20362
|
+
class: ue(["k-modal-fullscreen-dialog", { "has-footer": o.$slots["footer-content"] }]),
|
|
20363
20363
|
tabindex: "0"
|
|
20364
20364
|
}, [
|
|
20365
20365
|
K("div", KN, [
|
|
@@ -20394,7 +20394,7 @@ Docs: https://kongponents.konghq.com/components/modal.html#fullscreen`);
|
|
|
20394
20394
|
K("div", a9, [
|
|
20395
20395
|
K("div", n9, [
|
|
20396
20396
|
Q(o.$slots, "action-buttons", {}, () => [
|
|
20397
|
-
Z(
|
|
20397
|
+
Z(it, {
|
|
20398
20398
|
appearance: e.cancelButtonAppearance,
|
|
20399
20399
|
class: "cancel-button",
|
|
20400
20400
|
onClick: u
|
|
@@ -20404,7 +20404,7 @@ Docs: https://kongponents.konghq.com/components/modal.html#fullscreen`);
|
|
|
20404
20404
|
]),
|
|
20405
20405
|
_: 1
|
|
20406
20406
|
}, 8, ["appearance"]),
|
|
20407
|
-
Z(
|
|
20407
|
+
Z(it, {
|
|
20408
20408
|
appearance: e.actionButtonAppearance,
|
|
20409
20409
|
class: "proceed-button",
|
|
20410
20410
|
onClick: s
|
|
@@ -20424,7 +20424,7 @@ Docs: https://kongponents.konghq.com/components/modal.html#fullscreen`);
|
|
|
20424
20424
|
K("div", i9, [
|
|
20425
20425
|
K("div", o9, [
|
|
20426
20426
|
Q(o.$slots, "action-buttons", {}, () => [
|
|
20427
|
-
Z(
|
|
20427
|
+
Z(it, {
|
|
20428
20428
|
appearance: e.actionButtonAppearance,
|
|
20429
20429
|
class: "proceed-button",
|
|
20430
20430
|
onClick: s
|
|
@@ -20465,7 +20465,7 @@ Docs: https://kongponents.konghq.com/components/modal.html#fullscreen`);
|
|
|
20465
20465
|
}, [
|
|
20466
20466
|
K("div", d9, [
|
|
20467
20467
|
K("button", {
|
|
20468
|
-
class:
|
|
20468
|
+
class: ue({ selected: e.item.selected }),
|
|
20469
20469
|
disabled: e.item.disabled === !0 ? !0 : void 0,
|
|
20470
20470
|
type: "button",
|
|
20471
20471
|
value: e.item.value,
|
|
@@ -20765,46 +20765,46 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
20765
20765
|
},
|
|
20766
20766
|
emits: ["selected", "input", "change", "update:modelValue", "query-change", "item-added", "item-removed"],
|
|
20767
20767
|
setup(e, { emit: t }) {
|
|
20768
|
-
Ft((
|
|
20768
|
+
Ft((ce) => ({
|
|
20769
20769
|
b75ec8f8: at.value
|
|
20770
20770
|
}));
|
|
20771
20771
|
const a = Vt(), n = It(), { getSizeFromString: r, cloneDeep: i, stripRequiredLabel: l } = At(), u = 36, s = "Filter...", o = e, c = t, f = Mt("kMultiselectItems"), d = y(() => a.required !== void 0 && String(a.required) !== "false"), v = y(() => l(o.label, d.value)), g = y(() => {
|
|
20772
|
-
var
|
|
20773
|
-
return !!((
|
|
20774
|
-
}), m = (
|
|
20772
|
+
var ce, H;
|
|
20773
|
+
return !!((ce = o.labelAttributes) != null && ce.help || (H = o.labelAttributes) != null && H.info || n["label-tooltip"]);
|
|
20774
|
+
}), m = (ce) => Ce.value || xe.value || ce != null && ce.disabled ? "neutral" : o.error ? "danger" : "info", b = {
|
|
20775
20775
|
hideCaret: !0,
|
|
20776
20776
|
placement: "bottom-start",
|
|
20777
20777
|
popoverTimeout: 0,
|
|
20778
20778
|
popoverClasses: "multiselect-popover"
|
|
20779
|
-
}, p = P(0), w = P(0), k = Dt(), S = y(() => a.id ? String(a.id) : k), C = Dt(), T = Mt("multiselectElement"), N = Mt("multiselectDropdownInputElement"), _ = Mt("multiselectSelectionsStagingElement"), z = y(() => o.selectedRowCount * u), q = P(""), M = y(() => !(!q.value || $.value.filter((
|
|
20779
|
+
}, p = P(0), w = P(0), k = Dt(), S = y(() => a.id ? String(a.id) : k), C = Dt(), T = Mt("multiselectElement"), N = Mt("multiselectDropdownInputElement"), _ = Mt("multiselectSelectionsStagingElement"), z = y(() => o.selectedRowCount * u), q = P(""), M = y(() => !(!q.value || $.value.filter((ce) => ce.label === q.value).length)), E = P(null), $ = P([]), x = P([]), R = P([]), F = P([]), U = P([]), W = /* @__PURE__ */ new Set(), J = P([]), V = P([]), ve = y(() => V.value.map((ce) => ce.label).join(", ")), de = P(!1), $e = P(!1), he = P(!1), Ce = y(() => (a == null ? void 0 : a.disabled) !== void 0 && String(a == null ? void 0 : a.disabled) !== "false"), xe = y(() => (a == null ? void 0 : a.readonly) !== void 0 && String(a == null ? void 0 : a.readonly) !== "false"), Pe = y({
|
|
20780
20780
|
get() {
|
|
20781
20781
|
return o.modelValue;
|
|
20782
20782
|
},
|
|
20783
|
-
set(
|
|
20784
|
-
const H = $.value.filter((A) =>
|
|
20785
|
-
H.length ? we(H) :
|
|
20783
|
+
set(ce) {
|
|
20784
|
+
const H = $.value.filter((A) => ce.includes(A.value));
|
|
20785
|
+
H.length ? we(H) : ce.length || Xe();
|
|
20786
20786
|
}
|
|
20787
20787
|
}), Ne = y(() => {
|
|
20788
|
-
const
|
|
20789
|
-
return delete
|
|
20788
|
+
const ce = { ...a };
|
|
20789
|
+
return delete ce.class, ce;
|
|
20790
20790
|
}), Ge = y(() => {
|
|
20791
|
-
var
|
|
20791
|
+
var ce;
|
|
20792
20792
|
return {
|
|
20793
20793
|
...b,
|
|
20794
20794
|
...o.kpopAttributes,
|
|
20795
|
-
popoverClasses: `${b.popoverClasses} ${((
|
|
20795
|
+
popoverClasses: `${b.popoverClasses} ${((ce = o.kpopAttributes) == null ? void 0 : ce.popoverClasses) ?? ""} ${o.dropdownFooterText || n["dropdown-footer-text"] ? "has-dropdown-footer" : ""}`,
|
|
20796
20796
|
width: nt.value + "px",
|
|
20797
20797
|
maxWidth: nt.value + "px",
|
|
20798
20798
|
disabled: a.disabled !== void 0 && String(a.disabled) !== "false" || a.readonly !== void 0 && String(a.readonly) !== "false"
|
|
20799
20799
|
};
|
|
20800
20800
|
}), at = y(() => r(o.dropdownMaxHeight)), et = y(() => ({ ...Ge.value })), Qe = y(() => {
|
|
20801
|
-
const
|
|
20802
|
-
return r(
|
|
20801
|
+
const ce = o.width ? o.width : "300";
|
|
20802
|
+
return r(ce);
|
|
20803
20803
|
}), Ze = y(() => ({
|
|
20804
20804
|
width: Qe.value
|
|
20805
20805
|
})), oe = y(() => ({
|
|
20806
20806
|
width: nt.value + "px"
|
|
20807
|
-
})),
|
|
20807
|
+
})), Ye = y(() => {
|
|
20808
20808
|
if (R.value.length === 0) {
|
|
20809
20809
|
if (!o.collapsedContext && o.placeholder)
|
|
20810
20810
|
return o.placeholder;
|
|
@@ -20812,12 +20812,12 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
20812
20812
|
return o.searchPlaceholder;
|
|
20813
20813
|
}
|
|
20814
20814
|
return R.value.length === 1 ? `${R.value.length} item selected` : `${R.value.length} items selected`;
|
|
20815
|
-
}), ee = y(() => o.autosuggest ? $.value : o.filterFunction({ items: $.value, query: q.value })), ye = (
|
|
20815
|
+
}), ee = y(() => o.autosuggest ? $.value : o.filterFunction({ items: $.value, query: q.value })), ye = (ce) => {
|
|
20816
20816
|
var H;
|
|
20817
|
-
(Ce.value || ((H =
|
|
20818
|
-
}, De = async (
|
|
20817
|
+
(Ce.value || ((H = ce == null ? void 0 : ce.target) == null ? void 0 : H.dataset.propagateClicks) === "false") && ce.stopPropagation();
|
|
20818
|
+
}, De = async (ce, H, A) => {
|
|
20819
20819
|
var j, ae;
|
|
20820
|
-
if (
|
|
20820
|
+
if (ce) {
|
|
20821
20821
|
if (!H.value) {
|
|
20822
20822
|
q.value = "", A(), mt(), await gt();
|
|
20823
20823
|
const pe = (ae = (j = N.value) == null ? void 0 : j.$el) == null ? void 0 : ae.querySelector("input");
|
|
@@ -20827,97 +20827,97 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
20827
20827
|
H.value && (q.value = "", A());
|
|
20828
20828
|
}, ne = () => {
|
|
20829
20829
|
setTimeout(() => {
|
|
20830
|
-
const
|
|
20830
|
+
const ce = _.value;
|
|
20831
20831
|
if (o.collapsedContext) {
|
|
20832
20832
|
w.value++;
|
|
20833
20833
|
return;
|
|
20834
20834
|
}
|
|
20835
|
-
if (
|
|
20836
|
-
if (
|
|
20837
|
-
const A = Array.from(
|
|
20835
|
+
if (ce) {
|
|
20836
|
+
if (ce.clientHeight > z.value) {
|
|
20837
|
+
const A = Array.from(ce.querySelectorAll(".multiselect-selection-badge")).filter((pe) => pe.offsetTop >= z.value), j = F.value.length - A.length, ae = F.value.splice(j, A.length);
|
|
20838
20838
|
for (const pe of ae)
|
|
20839
20839
|
W.has(pe.value) || (W.add(pe.value), U.value.push(pe));
|
|
20840
20840
|
}
|
|
20841
20841
|
w.value++;
|
|
20842
20842
|
}
|
|
20843
20843
|
}, 0);
|
|
20844
|
-
}, we = (
|
|
20845
|
-
|
|
20844
|
+
}, we = (ce) => {
|
|
20845
|
+
ce.forEach((H) => {
|
|
20846
20846
|
var j;
|
|
20847
20847
|
const A = ((j = $.value.filter((ae) => ae.value === H.value)) == null ? void 0 : j[0]) || null;
|
|
20848
20848
|
A.selected = !0, R.value.filter((ae) => ae.value === A.value).length || (R.value.push(A), F.value.push(A));
|
|
20849
20849
|
}), ne();
|
|
20850
|
-
}, Me = (
|
|
20851
|
-
const A = new Set(
|
|
20852
|
-
R.value = R.value.filter((j) => !A.has(j.value)), F.value = F.value.filter((j) => !A.has(j.value)), U.value = U.value.filter((j) => !A.has(j.value)),
|
|
20850
|
+
}, Me = (ce, H = !1) => {
|
|
20851
|
+
const A = new Set(ce.map((j) => j.value));
|
|
20852
|
+
R.value = R.value.filter((j) => !A.has(j.value)), F.value = F.value.filter((j) => !A.has(j.value)), U.value = U.value.filter((j) => !A.has(j.value)), ce.forEach((j) => {
|
|
20853
20853
|
if (W.delete(j.value), j.selected = !1, U.value.length) {
|
|
20854
20854
|
const ae = U.value.pop();
|
|
20855
20855
|
ae && (F.value.push(ae), W.delete(ae.value));
|
|
20856
20856
|
}
|
|
20857
20857
|
o.enableItemCreation && j.custom && ($.value = $.value.filter((ae) => ae.value !== j.value), c("item-removed", j));
|
|
20858
20858
|
}), H && ne();
|
|
20859
|
-
}, Te = (
|
|
20860
|
-
var pe,
|
|
20861
|
-
let A = !1, j = H ?
|
|
20862
|
-
if (o.enableItemCreation && (j != null && j.custom) && (A = !0), j === null && (j = ((
|
|
20859
|
+
}, Te = (ce, H) => {
|
|
20860
|
+
var pe, qe;
|
|
20861
|
+
let A = !1, j = H ? ce : ((pe = $.value.filter((We) => We.value === ce.value)) == null ? void 0 : pe[0]) || null;
|
|
20862
|
+
if (o.enableItemCreation && (j != null && j.custom) && (A = !0), j === null && (j = ((qe = R.value.filter((We) => We.value === ce.value)) == null ? void 0 : qe[0]) || null), j === null)
|
|
20863
20863
|
return;
|
|
20864
20864
|
if (j.selected) {
|
|
20865
|
-
if (R.value = R.value.filter((
|
|
20866
|
-
const
|
|
20867
|
-
|
|
20865
|
+
if (R.value = R.value.filter((We) => We.value !== ce.value), F.value.filter((We) => We.value === ce.value).length ? F.value = F.value.filter((We) => We.value !== ce.value) : W.delete(ce.value) && (U.value = U.value.filter((We) => We.value !== ce.value)), j.selected = !1, U.value.length) {
|
|
20866
|
+
const We = U.value.pop();
|
|
20867
|
+
We && (F.value.push(We), W.delete(We.value));
|
|
20868
20868
|
}
|
|
20869
|
-
A && ($.value = $.value.filter((
|
|
20869
|
+
A && ($.value = $.value.filter((We) => We.value !== ce.value), c("item-removed", ce));
|
|
20870
20870
|
} else
|
|
20871
20871
|
j.selected = !0, R.value.push(j), F.value.push(j), H && (j.custom = !0, $.value.push(j));
|
|
20872
20872
|
ne();
|
|
20873
|
-
const ae = R.value.map((
|
|
20873
|
+
const ae = R.value.map((We) => We.value);
|
|
20874
20874
|
c("selected", R.value), c("change", j), c("update:modelValue", ae);
|
|
20875
|
-
},
|
|
20876
|
-
o.enableItemCreation && wt(),
|
|
20875
|
+
}, _e = (ce) => {
|
|
20876
|
+
o.enableItemCreation && wt(), ce.preventDefault();
|
|
20877
20877
|
}, wt = () => {
|
|
20878
20878
|
var A;
|
|
20879
20879
|
if (!o.enableItemCreation || !q.value || !M.value || !o.itemCreationValidator(q.value))
|
|
20880
20880
|
return;
|
|
20881
|
-
const
|
|
20881
|
+
const ce = $.value.length + 1, H = {
|
|
20882
20882
|
label: il(q.value + ""),
|
|
20883
20883
|
value: Ol(),
|
|
20884
|
-
key: `${(A = il(q.value).replace(/ /gi, "-")) == null ? void 0 : A.replace(/[^a-z0-9-_]/gi, "")}-${
|
|
20884
|
+
key: `${(A = il(q.value).replace(/ /gi, "-")) == null ? void 0 : A.replace(/[^a-z0-9-_]/gi, "")}-${ce}`
|
|
20885
20885
|
};
|
|
20886
20886
|
c("item-added", H), Te(H, !0), q.value = "";
|
|
20887
20887
|
}, mt = () => {
|
|
20888
|
-
const
|
|
20888
|
+
const ce = ee.value.filter((pe) => pe.selected), H = ee.value.filter((pe) => !pe.selected), A = [...ce, ...H], j = A.filter((pe) => !pe.group), ae = A.filter((pe) => pe.group).sort((pe, qe) => pe.group.toLowerCase().localeCompare(qe.group.toLowerCase()));
|
|
20889
20889
|
x.value = [...j, ...ae];
|
|
20890
20890
|
}, Xe = () => {
|
|
20891
20891
|
$.value.forEach((H) => {
|
|
20892
20892
|
H.disabled || (H.selected = !1, H.custom && c("item-removed", H));
|
|
20893
20893
|
}), $.value = $.value.filter((H) => !(H.custom && !H.disabled)), R.value = R.value.filter((H) => H.disabled), F.value = F.value.filter((H) => H.disabled), U.value = U.value.filter((H) => (H.disabled || W.delete(H.value), H.disabled)), q.value = "", ne();
|
|
20894
|
-
const
|
|
20895
|
-
c("selected", R.value), c("update:modelValue",
|
|
20896
|
-
}, $t = (
|
|
20897
|
-
q.value =
|
|
20898
|
-
}, Ot = (
|
|
20894
|
+
const ce = R.value.map((H) => H.value);
|
|
20895
|
+
c("selected", R.value), c("update:modelValue", ce), c("query-change", "");
|
|
20896
|
+
}, $t = (ce) => {
|
|
20897
|
+
q.value = ce, c("query-change", ce);
|
|
20898
|
+
}, Ot = (ce, H) => {
|
|
20899
20899
|
var A;
|
|
20900
|
-
|
|
20900
|
+
ce.keyCode === 27 && (H.value = !1), (ce.key === "ArrowDown" || ce.key === "ArrowUp") && ((A = f.value) == null || A.setFocus(ce.key === "ArrowDown" ? "down" : "up"));
|
|
20901
20901
|
}, re = () => {
|
|
20902
|
-
var
|
|
20903
|
-
(
|
|
20904
|
-
},
|
|
20902
|
+
var ce;
|
|
20903
|
+
(ce = E.value) == null || ce.showPopover();
|
|
20904
|
+
}, He = (ce) => {
|
|
20905
20905
|
var H;
|
|
20906
|
-
(
|
|
20906
|
+
(ce.key === "ArrowDown" || ce.key === "ArrowUp") && ((H = f.value) == null || H.setFocus(ce.key === "ArrowDown" ? "down" : "up"));
|
|
20907
20907
|
}, Fe = async () => {
|
|
20908
|
-
he.value = !0,
|
|
20909
|
-
},
|
|
20910
|
-
|
|
20908
|
+
he.value = !0, ot();
|
|
20909
|
+
}, ot = () => {
|
|
20910
|
+
de.value || (de.value = !0, c("query-change", ""));
|
|
20911
20911
|
};
|
|
20912
20912
|
fe(w, () => {
|
|
20913
20913
|
setTimeout(() => {
|
|
20914
|
-
const
|
|
20914
|
+
const ce = _.value;
|
|
20915
20915
|
if (o.collapsedContext) {
|
|
20916
20916
|
J.value = i(F.value), V.value = [], p.value++;
|
|
20917
20917
|
return;
|
|
20918
20918
|
}
|
|
20919
|
-
if (
|
|
20920
|
-
if (
|
|
20919
|
+
if (ce)
|
|
20920
|
+
if (ce.clientHeight > z.value) {
|
|
20921
20921
|
const A = F.value.pop();
|
|
20922
20922
|
A && !W.has(A.value) && (U.value.push(A), W.add(A.value)), w.value++;
|
|
20923
20923
|
} else
|
|
@@ -20927,25 +20927,25 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
20927
20927
|
E.value && typeof E.value.updatePopper == "function" && (await gt(), E.value.updatePopper());
|
|
20928
20928
|
}), fe(ee, () => {
|
|
20929
20929
|
mt();
|
|
20930
|
-
}), fe(Pe, (
|
|
20931
|
-
if (JSON.stringify(
|
|
20932
|
-
if (!
|
|
20930
|
+
}), fe(Pe, (ce, H) => {
|
|
20931
|
+
if (JSON.stringify(ce) !== JSON.stringify(H)) {
|
|
20932
|
+
if (!ce.length) {
|
|
20933
20933
|
Xe();
|
|
20934
20934
|
return;
|
|
20935
20935
|
}
|
|
20936
|
-
const A = new Set(H), j = new Set(
|
|
20936
|
+
const A = new Set(H), j = new Set(ce), ae = $.value.filter((qe) => j.has(qe.value)), pe = R.value.filter((qe) => !j.has(qe.value) && A.has(qe.value));
|
|
20937
20937
|
pe.length && Me(pe), ae.length && we(ae);
|
|
20938
20938
|
}
|
|
20939
|
-
}), fe(() => o.items, (
|
|
20939
|
+
}), fe(() => o.items, (ce, H) => {
|
|
20940
20940
|
var A, j;
|
|
20941
|
-
if (JSON.stringify(
|
|
20941
|
+
if (JSON.stringify(ce) !== JSON.stringify(H)) {
|
|
20942
20942
|
$.value = i(o.items);
|
|
20943
20943
|
for (let ae = 0; ae < $.value.length; ae++) {
|
|
20944
20944
|
$.value[ae].selected === void 0 && ($.value[ae].selected = !1);
|
|
20945
20945
|
let pe = `${(j = (A = $.value[ae].label) == null ? void 0 : A.replace(/ /gi, "-")) == null ? void 0 : j.replace(/[^a-z0-9-_]/gi, "")}-${ae}`;
|
|
20946
20946
|
if (pe.includes("undefined") && (pe = `multiselect-item-label-${ae}`), $.value[ae].key = pe, o.modelValue.includes($.value[ae].value) || $.value[ae].selected) {
|
|
20947
|
-
const
|
|
20948
|
-
|
|
20947
|
+
const qe = $.value[ae];
|
|
20948
|
+
qe.selected = !0, R.value.filter((We) => We.value === qe.value).length || R.value.push(qe), F.value.filter((We) => We.value === qe.value).length || F.value.push(qe);
|
|
20949
20949
|
}
|
|
20950
20950
|
}
|
|
20951
20951
|
ne(), E.value && typeof E.value.updatePopper == "function" && gt(() => {
|
|
@@ -20954,20 +20954,20 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
20954
20954
|
}
|
|
20955
20955
|
}, { deep: !0, immediate: !0 });
|
|
20956
20956
|
const nt = P(300), Nt = async () => {
|
|
20957
|
-
var
|
|
20958
|
-
nt.value = 300, await gt(), nt.value = ((
|
|
20957
|
+
var ce;
|
|
20958
|
+
nt.value = 300, await gt(), nt.value = ((ce = T.value) == null ? void 0 : ce.clientWidth) || 300, ne();
|
|
20959
20959
|
}, Lt = P();
|
|
20960
20960
|
return st(() => {
|
|
20961
20961
|
na("resize", Nt), Lt.value = Yn.create(Nt), Lt.value.observe(T.value);
|
|
20962
20962
|
}), Kt(() => {
|
|
20963
20963
|
Lt.value && T.value && Lt.value.unobserve(T.value);
|
|
20964
|
-
}), (
|
|
20964
|
+
}), (ce, H) => {
|
|
20965
20965
|
const A = _t("KTooltip");
|
|
20966
20966
|
return h(), D("div", {
|
|
20967
|
-
class:
|
|
20967
|
+
class: ue(["k-multiselect", [ce.$attrs.class, { "multiselect-error": e.error }]]),
|
|
20968
20968
|
style: Oe(Ze.value)
|
|
20969
20969
|
}, [
|
|
20970
|
-
e.label ? (h(), X(Qa,
|
|
20970
|
+
e.label ? (h(), X(Qa, Ue({ key: 0 }, e.labelAttributes, {
|
|
20971
20971
|
"data-testid": e.labelAttributes["data-testid"] ? e.labelAttributes["data-testid"] : "multiselect-label",
|
|
20972
20972
|
for: S.value,
|
|
20973
20973
|
required: d.value
|
|
@@ -20980,7 +20980,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
20980
20980
|
g.value ? {
|
|
20981
20981
|
name: "tooltip",
|
|
20982
20982
|
fn: B(() => [
|
|
20983
|
-
Q(
|
|
20983
|
+
Q(ce.$slots, "label-tooltip", {}, void 0, !0)
|
|
20984
20984
|
]),
|
|
20985
20985
|
key: "0"
|
|
20986
20986
|
} : void 0
|
|
@@ -20988,7 +20988,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
20988
20988
|
K("div", C9, [
|
|
20989
20989
|
Z(I(vl), null, {
|
|
20990
20990
|
default: B(({ isToggled: j, toggle: ae }) => [
|
|
20991
|
-
Z(Tr,
|
|
20991
|
+
Z(Tr, Ue({
|
|
20992
20992
|
ref_key: "popper",
|
|
20993
20993
|
ref: E,
|
|
20994
20994
|
"hide-close-icon": ""
|
|
@@ -21018,10 +21018,10 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
21018
21018
|
type: "text",
|
|
21019
21019
|
onClick: H[5] || (H[5] = Ke(() => {
|
|
21020
21020
|
}, ["stop"])),
|
|
21021
|
-
onFocus:
|
|
21022
|
-
onKeydown: ft(
|
|
21021
|
+
onFocus: ot,
|
|
21022
|
+
onKeydown: ft(_e, ["enter"]),
|
|
21023
21023
|
onKeyup: [
|
|
21024
|
-
|
|
21024
|
+
He,
|
|
21025
21025
|
H[6] || (H[6] = ft(Ke(() => {
|
|
21026
21026
|
}, ["stop"]), ["enter"]))
|
|
21027
21027
|
],
|
|
@@ -21038,35 +21038,35 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
21038
21038
|
onSelected: Te
|
|
21039
21039
|
}, {
|
|
21040
21040
|
content: B(({ item: pe }) => [
|
|
21041
|
-
Q(
|
|
21041
|
+
Q(ce.$slots, "item-template", {
|
|
21042
21042
|
class: "multiselect-item",
|
|
21043
21043
|
item: pe
|
|
21044
21044
|
}, void 0, !0)
|
|
21045
21045
|
]),
|
|
21046
21046
|
_: 3
|
|
21047
21047
|
}, 8, ["filter-string", "item-creation-enabled", "item-creation-valid", "items"]),
|
|
21048
|
-
!x.value.length && !
|
|
21048
|
+
!x.value.length && !ce.$slots.empty && !e.enableItemCreation ? (h(), X($o, {
|
|
21049
21049
|
key: "multiselect-empty-item",
|
|
21050
21050
|
class: "multiselect-empty-item",
|
|
21051
21051
|
"data-testid": "multiselect-empty-item",
|
|
21052
21052
|
item: { label: "No results", value: "no_results", disabled: !0 }
|
|
21053
21053
|
})) : G("", !0),
|
|
21054
|
-
|
|
21055
|
-
Q(
|
|
21054
|
+
ce.$slots.empty && !e.loading && !x.value.length ? (h(), D("div", A9, [
|
|
21055
|
+
Q(ce.$slots, "empty", {}, void 0, !0)
|
|
21056
21056
|
])) : G("", !0)
|
|
21057
21057
|
], 32),
|
|
21058
|
-
e.dropdownFooterText ||
|
|
21058
|
+
e.dropdownFooterText || ce.$slots["dropdown-footer-text"] ? (h(), D("div", {
|
|
21059
21059
|
key: 0,
|
|
21060
|
-
class:
|
|
21060
|
+
class: ue(["dropdown-footer", `dropdown-footer-${e.dropdownFooterTextPosition}`]),
|
|
21061
21061
|
"data-testid": "dropdown-footer"
|
|
21062
21062
|
}, [
|
|
21063
|
-
Q(
|
|
21063
|
+
Q(ce.$slots, "dropdown-footer-text", {}, () => [
|
|
21064
21064
|
me(ie(e.dropdownFooterText), 1)
|
|
21065
21065
|
], !0)
|
|
21066
21066
|
], 2)) : G("", !0)
|
|
21067
21067
|
]),
|
|
21068
21068
|
default: B(() => [
|
|
21069
|
-
K("div",
|
|
21069
|
+
K("div", Ue({
|
|
21070
21070
|
id: S.value,
|
|
21071
21071
|
ref: "multiselectElement",
|
|
21072
21072
|
class: ["multiselect-trigger", { focused: he.value, hovered: $e.value, disabled: Ce.value, readonly: xe.value }],
|
|
@@ -21085,11 +21085,11 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
21085
21085
|
autocapitalize: "off",
|
|
21086
21086
|
autocomplete: "off",
|
|
21087
21087
|
autocorrect: "off",
|
|
21088
|
-
class:
|
|
21088
|
+
class: ue(["multiselect-input", { "is-readonly": xe.value }]),
|
|
21089
21089
|
"data-testid": "multiselect-input",
|
|
21090
21090
|
disabled: Ce.value,
|
|
21091
21091
|
"model-value": q.value,
|
|
21092
|
-
placeholder:
|
|
21092
|
+
placeholder: Ye.value,
|
|
21093
21093
|
readonly: xe.value ? !0 : void 0,
|
|
21094
21094
|
spellcheck: "false",
|
|
21095
21095
|
type: "text",
|
|
@@ -21098,7 +21098,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
21098
21098
|
j.value && pe.stopPropagation();
|
|
21099
21099
|
},
|
|
21100
21100
|
onFocus: Fe,
|
|
21101
|
-
onKeydown: ft(
|
|
21101
|
+
onKeydown: ft(_e, ["enter"]),
|
|
21102
21102
|
onKeyup: (pe) => Ot(pe, j),
|
|
21103
21103
|
onMouseenter: H[1] || (H[1] = () => $e.value = !0),
|
|
21104
21104
|
onMouseleave: H[2] || (H[2] = () => $e.value = !1),
|
|
@@ -21110,8 +21110,8 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
21110
21110
|
"data-testid": "selection-badges-container",
|
|
21111
21111
|
style: Oe(oe.value)
|
|
21112
21112
|
}, [
|
|
21113
|
-
(h(!0), D(Ae, null, Re(J.value, (pe,
|
|
21114
|
-
key: `${I(C)}-${pe.key ? pe.key :
|
|
21113
|
+
(h(!0), D(Ae, null, Re(J.value, (pe, qe) => (h(), X(Vr, {
|
|
21114
|
+
key: `${I(C)}-${pe.key ? pe.key : qe}-badge-${p.value}`,
|
|
21115
21115
|
appearance: m(pe),
|
|
21116
21116
|
class: "multiselect-selection-badge",
|
|
21117
21117
|
"icon-before": !1,
|
|
@@ -21133,7 +21133,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
21133
21133
|
class: "badge-dismiss-button",
|
|
21134
21134
|
"data-testid": "badge-dismiss-button",
|
|
21135
21135
|
type: "button",
|
|
21136
|
-
onClick: (
|
|
21136
|
+
onClick: (We) => Te(pe)
|
|
21137
21137
|
}, [
|
|
21138
21138
|
Z(I(da), { decorative: "" })
|
|
21139
21139
|
], 8, T9)
|
|
@@ -21163,7 +21163,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
21163
21163
|
]),
|
|
21164
21164
|
_: 1
|
|
21165
21165
|
}, 8, ["text"])) : G("", !0)
|
|
21166
|
-
], 4)) : (h(), D("div", D9, ie(
|
|
21166
|
+
], 4)) : (h(), D("div", D9, ie(Ye.value), 1)),
|
|
21167
21167
|
K("div", x9, [
|
|
21168
21168
|
!e.loading && R.value.length && j.value ? (h(), D("button", {
|
|
21169
21169
|
key: 0,
|
|
@@ -21311,7 +21311,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
21311
21311
|
f || (l.value = "", u.value = !1);
|
|
21312
21312
|
}), fe(l, (f) => {
|
|
21313
21313
|
f && f === a.confirmationText && (u.value = !1);
|
|
21314
|
-
}), (f, d) => (h(), X(Dg,
|
|
21314
|
+
}), (f, d) => (h(), X(Dg, Ue({ ...i.value, ...e.modalAttributes }, {
|
|
21315
21315
|
"action-button-appearance": e.actionButtonAppearance,
|
|
21316
21316
|
"action-button-disabled": s.value,
|
|
21317
21317
|
"action-button-text": e.actionButtonText,
|
|
@@ -21459,12 +21459,12 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
21459
21459
|
"card-vertical": a.card && a.cardOrientation !== "horizontal"
|
|
21460
21460
|
}));
|
|
21461
21461
|
return (p, w) => (h(), D("div", {
|
|
21462
|
-
class:
|
|
21462
|
+
class: ue(["k-radio", [
|
|
21463
21463
|
p.$attrs.class ? p.$attrs.class : "",
|
|
21464
21464
|
b.value
|
|
21465
21465
|
]])
|
|
21466
21466
|
}, [
|
|
21467
|
-
K("input",
|
|
21467
|
+
K("input", Ue({ id: l.value }, m.value, {
|
|
21468
21468
|
"aria-checked": d.value,
|
|
21469
21469
|
checked: d.value,
|
|
21470
21470
|
class: ["radio-input", { hidden: e.card && !e.cardRadioVisible }],
|
|
@@ -21475,9 +21475,9 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
21475
21475
|
}), null, 16, q9),
|
|
21476
21476
|
!e.card && (e.label || p.$slots.default) ? (h(), D("div", {
|
|
21477
21477
|
key: 0,
|
|
21478
|
-
class:
|
|
21478
|
+
class: ue(["radio-label-wrapper", { "has-description": o.value }])
|
|
21479
21479
|
}, [
|
|
21480
|
-
Z(Qa,
|
|
21480
|
+
Z(Qa, Ue(e.labelAttributes, {
|
|
21481
21481
|
class: "radio-label",
|
|
21482
21482
|
for: l.value
|
|
21483
21483
|
}), yt({
|
|
@@ -21503,7 +21503,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
21503
21503
|
])) : G("", !0)
|
|
21504
21504
|
], 2)) : e.label || p.$slots.default ? (h(), D("label", {
|
|
21505
21505
|
key: 1,
|
|
21506
|
-
class:
|
|
21506
|
+
class: ue(["radio-card-wrapper radio-label-wrapper", { "has-label": e.label, "has-description": c.value, "show-radio": e.cardRadioVisible }]),
|
|
21507
21507
|
for: l.value,
|
|
21508
21508
|
tabindex: u.value || d.value ? -1 : 0,
|
|
21509
21509
|
onKeydown: w[0] || (w[0] = ft(Ke(() => {
|
|
@@ -21552,7 +21552,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
21552
21552
|
}, [
|
|
21553
21553
|
K("div", e6, [
|
|
21554
21554
|
K("button", {
|
|
21555
|
-
class:
|
|
21555
|
+
class: ue({ selected: e.item.selected }),
|
|
21556
21556
|
disabled: e.item.disabled === !0 ? !0 : void 0,
|
|
21557
21557
|
type: "button",
|
|
21558
21558
|
value: e.item.value,
|
|
@@ -21865,10 +21865,10 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
21865
21865
|
maxWidth: String(R.value),
|
|
21866
21866
|
disabled: g.value || m.value
|
|
21867
21867
|
};
|
|
21868
|
-
}), W = y(() => a(r.dropdownMaxHeight)), J = y(() => ({ ...U.value })), V = y(() => r.placeholder || l.placeholder || "Select..."), ve = y(() => !g.value && r.clearable && !!_.value),
|
|
21868
|
+
}), W = y(() => a(r.dropdownMaxHeight)), J = y(() => ({ ...U.value })), V = y(() => r.placeholder || l.placeholder || "Select..."), ve = y(() => !g.value && r.clearable && !!_.value), de = y(() => !!(_.value && (u["selected-item-template"] || r.reuseItemTemplate && u["item-template"]))), $e = y(() => {
|
|
21869
21869
|
let ne = [];
|
|
21870
21870
|
!r.enableFiltering || r.filterFunction({ query: C.value, items: z.value }) === !0 ? ne = z.value : ne = r.filterFunction({ query: C.value, items: z.value });
|
|
21871
|
-
const we = ne.filter((Te) => !Te.group), Me = ne.filter((Te) => Te.group).sort((Te,
|
|
21871
|
+
const we = ne.filter((Te) => !Te.group), Me = ne.filter((Te) => Te.group).sort((Te, _e) => Te.group.toLowerCase().localeCompare(_e.group.toLowerCase()));
|
|
21872
21872
|
return [...we, ...Me];
|
|
21873
21873
|
}), he = (ne) => {
|
|
21874
21874
|
if (!r.enableFiltering)
|
|
@@ -21888,9 +21888,9 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
21888
21888
|
i("item-added", we), Pe(we, !0), C.value = "";
|
|
21889
21889
|
}, Pe = (ne, we) => {
|
|
21890
21890
|
var Me, Te;
|
|
21891
|
-
we && ((Me = z.value) == null || Me.push(ne)), (Te = z.value) == null || Te.forEach((
|
|
21891
|
+
we && ((Me = z.value) == null || Me.push(ne)), (Te = z.value) == null || Te.forEach((_e, wt) => {
|
|
21892
21892
|
var mt;
|
|
21893
|
-
|
|
21893
|
+
_e.key === ne.key ? (_e.selected = !0, _.value = _e) : _e.selected ? (_e.selected = !1, _e.custom && ((mt = z.value) == null || mt.splice(wt, 1), i("item-removed", _e))) : _e.selected = !1;
|
|
21894
21894
|
}), S.value = !0, C.value = ne.label;
|
|
21895
21895
|
}, Ne = () => {
|
|
21896
21896
|
var ne;
|
|
@@ -21899,13 +21899,13 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
21899
21899
|
we.selected = !1, we.custom && ((Te = z.value) == null || Te.splice(Me, 1), i("item-removed", we));
|
|
21900
21900
|
}), _.value = null, C.value = "", i("input", null), i("change", null), i("update:modelValue", null);
|
|
21901
21901
|
}, Ge = Mt("kSelectItems"), at = (ne, we) => {
|
|
21902
|
-
var Te,
|
|
21902
|
+
var Te, _e;
|
|
21903
21903
|
if (ne.keyCode === 27) {
|
|
21904
21904
|
we.value = !1;
|
|
21905
21905
|
return;
|
|
21906
21906
|
}
|
|
21907
21907
|
const Me = (Te = E.value) == null ? void 0 : Te.children[0];
|
|
21908
|
-
!we.value && Me && Me.click(), (ne.key === "ArrowDown" || ne.key === "ArrowUp") && we.value && ((
|
|
21908
|
+
!we.value && Me && Me.click(), (ne.key === "ArrowDown" || ne.key === "ArrowUp") && we.value && ((_e = Ge.value) == null || _e.setFocus(ne.key === "ArrowDown" ? "down" : "up"));
|
|
21909
21909
|
}, et = (ne) => {
|
|
21910
21910
|
C.value !== ne && (C.value = ne);
|
|
21911
21911
|
}, Qe = () => {
|
|
@@ -21915,7 +21915,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
21915
21915
|
}, oe = () => {
|
|
21916
21916
|
var ne, we, Me;
|
|
21917
21917
|
r.enableFiltering || (Me = (we = (ne = w.value) == null ? void 0 : ne.$el) == null ? void 0 : we.querySelector("input")) == null || Me.blur();
|
|
21918
|
-
},
|
|
21918
|
+
}, Ye = (ne) => {
|
|
21919
21919
|
var we;
|
|
21920
21920
|
(g.value || ((we = ne == null ? void 0 : ne.target) == null ? void 0 : we.dataset.propagateClicks) === "false") && ne.stopPropagation();
|
|
21921
21921
|
}, ee = (ne) => {
|
|
@@ -21928,16 +21928,16 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
21928
21928
|
return fe($, (ne, we) => {
|
|
21929
21929
|
var Me;
|
|
21930
21930
|
if (ne !== we) {
|
|
21931
|
-
const Te = (Me = z.value) == null ? void 0 : Me.filter((
|
|
21931
|
+
const Te = (Me = z.value) == null ? void 0 : Me.filter((_e) => _e.value === ne);
|
|
21932
21932
|
Te != null && Te.length ? Pe(Te[0]) : ne || Ne();
|
|
21933
21933
|
}
|
|
21934
21934
|
}), fe(() => r.items, (ne, we) => {
|
|
21935
|
-
var Me, Te,
|
|
21935
|
+
var Me, Te, _e, wt, mt;
|
|
21936
21936
|
if (JSON.stringify(ne) !== JSON.stringify(we)) {
|
|
21937
21937
|
z.value = JSON.parse(JSON.stringify(r.items)), (Me = z.value) != null && Me.length && (_.value = null);
|
|
21938
21938
|
for (let Xe = 0; Xe < ((Te = z.value) == null ? void 0 : Te.length); Xe++) {
|
|
21939
21939
|
z.value[Xe].selected === void 0 && (z.value[Xe].selected = !1);
|
|
21940
|
-
let $t = `${(wt = (
|
|
21940
|
+
let $t = `${(wt = (_e = z.value[Xe].label) == null ? void 0 : _e.replace(/ /gi, "-")) == null ? void 0 : wt.replace(/[^a-z0-9-_]/gi, "")}-${Xe}`;
|
|
21941
21941
|
$t.includes("undefined") && ($t = `select-item-label-${Xe}`), z.value[Xe].key = $t, (z.value[Xe].value === r.modelValue || z.value[Xe].selected) && (z.value[Xe].selected = !0, _.value = z.value[Xe], q.value || (S.value = !0, C.value = _.value.label)), ((mt = _.value) == null ? void 0 : mt.value) === z.value[Xe].value && (z.value[Xe].selected = !0);
|
|
21942
21942
|
}
|
|
21943
21943
|
M.value && typeof M.value.updatePopper == "function" && gt(() => {
|
|
@@ -21960,9 +21960,9 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
21960
21960
|
var ne;
|
|
21961
21961
|
E.value && ((ne = f.value) == null || ne.unobserve(E.value));
|
|
21962
21962
|
}), (ne, we) => (h(), D("div", {
|
|
21963
|
-
class:
|
|
21963
|
+
class: ue(["k-select", [ne.$attrs.class]])
|
|
21964
21964
|
}, [
|
|
21965
|
-
e.label ? (h(), X(Qa,
|
|
21965
|
+
e.label ? (h(), X(Qa, Ue({ key: 0 }, e.labelAttributes, {
|
|
21966
21966
|
"data-testid": "select-label",
|
|
21967
21967
|
for: o.value,
|
|
21968
21968
|
required: v.value
|
|
@@ -21982,7 +21982,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
21982
21982
|
]), 1040, ["for", "required"])) : G("", !0),
|
|
21983
21983
|
Z(I(vl), null, {
|
|
21984
21984
|
default: B(({ toggle: Me, isToggled: Te }) => [
|
|
21985
|
-
Z(Tr,
|
|
21985
|
+
Z(Tr, Ue({ ref: "popperElement" }, J.value, {
|
|
21986
21986
|
"close-on-popover-click": "",
|
|
21987
21987
|
"hide-close-icon": "",
|
|
21988
21988
|
onClose: () => ye(Me, Te.value),
|
|
@@ -22010,10 +22010,10 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
22010
22010
|
onAddItem: xe,
|
|
22011
22011
|
onSelected: Pe
|
|
22012
22012
|
}, {
|
|
22013
|
-
content: B(({ item:
|
|
22013
|
+
content: B(({ item: _e }) => [
|
|
22014
22014
|
Q(ne.$slots, "item-template", {
|
|
22015
22015
|
class: "select-item-label select-item-desc",
|
|
22016
|
-
item:
|
|
22016
|
+
item: _e
|
|
22017
22017
|
}, void 0, !0)
|
|
22018
22018
|
]),
|
|
22019
22019
|
_: 3
|
|
@@ -22045,16 +22045,16 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
22045
22045
|
class: "select-wrapper",
|
|
22046
22046
|
"data-testid": "select-wrapper",
|
|
22047
22047
|
role: "listbox",
|
|
22048
|
-
onClick:
|
|
22048
|
+
onClick: Ye
|
|
22049
22049
|
}, [
|
|
22050
|
-
(h(), X(pn,
|
|
22050
|
+
(h(), X(pn, Ue({
|
|
22051
22051
|
id: o.value,
|
|
22052
22052
|
key: p.value,
|
|
22053
22053
|
ref: "inputElement",
|
|
22054
22054
|
autocapitalize: "off",
|
|
22055
22055
|
autocomplete: "off",
|
|
22056
22056
|
autocorrect: "off",
|
|
22057
|
-
class: ["select-input", { "filtering-disabled": !e.enableFiltering, "hide-model-value":
|
|
22057
|
+
class: ["select-input", { "filtering-disabled": !e.enableFiltering, "hide-model-value": de.value && (!e.enableFiltering || !Te.value), "input-has-focus": q.value || Te.value }],
|
|
22058
22058
|
"data-testid": "select-input",
|
|
22059
22059
|
disabled: g.value,
|
|
22060
22060
|
error: e.error,
|
|
@@ -22069,7 +22069,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
22069
22069
|
onKeydown: ft(Ce, ["enter"]),
|
|
22070
22070
|
onKeypress: he,
|
|
22071
22071
|
onKeyup: [
|
|
22072
|
-
(
|
|
22072
|
+
(_e) => at(_e, Te),
|
|
22073
22073
|
we[0] || (we[0] = ft(Ke(() => {
|
|
22074
22074
|
}, ["stop"]), ["enter"]))
|
|
22075
22075
|
],
|
|
@@ -22087,7 +22087,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
22087
22087
|
Z(I(da), { decorative: "" })
|
|
22088
22088
|
])) : G("", !0),
|
|
22089
22089
|
Z(I(pl), {
|
|
22090
|
-
class:
|
|
22090
|
+
class: ue(["chevron-down-icon", { disabled: g.value }]),
|
|
22091
22091
|
decorative: ""
|
|
22092
22092
|
}, null, 8, ["class"])
|
|
22093
22093
|
]),
|
|
@@ -22110,9 +22110,9 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
22110
22110
|
]), 1040, ["id", "class", "disabled", "error", "model-value", "placeholder", "readonly", "onKeyup"])),
|
|
22111
22111
|
Z(ia, { name: "kongponents-fade-transition" }, {
|
|
22112
22112
|
default: B(() => [
|
|
22113
|
-
|
|
22113
|
+
de.value && (!e.enableFiltering || !Te.value) ? (h(), D("div", {
|
|
22114
22114
|
key: 0,
|
|
22115
|
-
class:
|
|
22115
|
+
class: ue(["custom-selected-item-wrapper", { clearable: e.clearable }])
|
|
22116
22116
|
}, [
|
|
22117
22117
|
Q(ne.$slots, "selected-item-template", { item: _.value }, () => [
|
|
22118
22118
|
Q(ne.$slots, "item-template", { item: _.value }, void 0, !0)
|
|
@@ -22130,7 +22130,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
22130
22130
|
}),
|
|
22131
22131
|
e.help ? (h(), D("p", {
|
|
22132
22132
|
key: 1,
|
|
22133
|
-
class:
|
|
22133
|
+
class: ue(["help-text", { "select-error": e.error }])
|
|
22134
22134
|
}, ie(e.help), 3)) : G("", !0)
|
|
22135
22135
|
], 2));
|
|
22136
22136
|
}
|
|
@@ -22211,7 +22211,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
22211
22211
|
default: B(() => [
|
|
22212
22212
|
e.visible ? (h(), D("div", {
|
|
22213
22213
|
key: 0,
|
|
22214
|
-
class:
|
|
22214
|
+
class: ue(["slideout-backdrop", { "backdrop-transparent": !e.hasOverlay }])
|
|
22215
22215
|
}, null, 2)) : G("", !0)
|
|
22216
22216
|
]),
|
|
22217
22217
|
_: 1
|
|
@@ -22280,7 +22280,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
22280
22280
|
"data-testid": `step-${e.state}`
|
|
22281
22281
|
}, [
|
|
22282
22282
|
K("div", {
|
|
22283
|
-
class:
|
|
22283
|
+
class: ue(["step-container", `${e.state}`])
|
|
22284
22284
|
}, [
|
|
22285
22285
|
K("div", T6, [
|
|
22286
22286
|
e.state === "completed" ? (h(), X(I(km), {
|
|
@@ -22418,7 +22418,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
22418
22418
|
s.value ? {
|
|
22419
22419
|
name: "after",
|
|
22420
22420
|
fn: B(() => [
|
|
22421
|
-
Z(
|
|
22421
|
+
Z(it, {
|
|
22422
22422
|
appearance: "tertiary",
|
|
22423
22423
|
"aria-label": "Clear search",
|
|
22424
22424
|
class: "clear-search",
|
|
@@ -22471,7 +22471,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
22471
22471
|
}, 1032, ["data-testid", "onClick"]))), 128))
|
|
22472
22472
|
], 512),
|
|
22473
22473
|
K("div", P6, [
|
|
22474
|
-
Z(
|
|
22474
|
+
Z(it, {
|
|
22475
22475
|
appearance: "tertiary",
|
|
22476
22476
|
class: "apply-button",
|
|
22477
22477
|
"data-testid": "apply-button",
|
|
@@ -22490,7 +22490,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
22490
22490
|
text: r.value ? void 0 : "Show/Hide Columns"
|
|
22491
22491
|
}, {
|
|
22492
22492
|
default: B(() => [
|
|
22493
|
-
Z(
|
|
22493
|
+
Z(it, {
|
|
22494
22494
|
appearance: "secondary",
|
|
22495
22495
|
"aria-label": "Show/Hide Columns",
|
|
22496
22496
|
class: "menu-button",
|
|
@@ -22762,7 +22762,7 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
22762
22762
|
sortColumnKey: "",
|
|
22763
22763
|
sortColumnOrder: "desc",
|
|
22764
22764
|
offset: null
|
|
22765
|
-
}, v = P([]), g = P(), m = P([]), b = P([]), p = P(""), w = P(""), k = P(""), S = y(() => m.value.filter((O) => O.hidable).length > 0), C = y(() => !!(S.value && !u.error && !nt.value && !u.loading && v.value && v.value.length)), T = y(() => m.value.filter((O) => O.hidable)), N = y(() => C.value ? u.tablePreferences.columnVisibility || {} : {}), _ = P(C.value ? u.tablePreferences.columnVisibility || {} : {}), z = P(0), q = P(!1), M = P(1), E = P(15), $ = P(""), x = P(""), R = P("desc"), F = P(null), U = P([]), W = P(!0), J = P(!1), V = P(!1), ve = y(() => !!c.toolbar || C.value),
|
|
22765
|
+
}, v = P([]), g = P(), m = P([]), b = P([]), p = P(""), w = P(""), k = P(""), S = y(() => m.value.filter((O) => O.hidable).length > 0), C = y(() => !!(S.value && !u.error && !nt.value && !u.loading && v.value && v.value.length)), T = y(() => m.value.filter((O) => O.hidable)), N = y(() => C.value ? u.tablePreferences.columnVisibility || {} : {}), _ = P(C.value ? u.tablePreferences.columnVisibility || {} : {}), z = P(0), q = P(!1), M = P(1), E = P(15), $ = P(""), x = P(""), R = P("desc"), F = P(null), U = P([]), W = P(!0), J = P(!1), V = P(!1), ve = y(() => !!c.toolbar || C.value), de = y(() => ({
|
|
22766
22766
|
maxHeight: l(u.maxHeight)
|
|
22767
22767
|
})), $e = (O) => `column-${O}`, he = (O) => `tooltip-${O}`, Ce = (O) => O, xe = (O, Y) => (te, se) => {
|
|
22768
22768
|
const be = /^on[^a-z]/, ke = {};
|
|
@@ -22770,8 +22770,8 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
22770
22770
|
be.test(tt) && Y[tt] && (ke[tt] = Y[tt]);
|
|
22771
22771
|
return Object.keys(ke).reduce((tt, ut) => {
|
|
22772
22772
|
if (ut.indexOf(O) === 0) {
|
|
22773
|
-
const
|
|
22774
|
-
tt[
|
|
22773
|
+
const lt = ut.split(O);
|
|
22774
|
+
tt[lt[1]] = (Zt) => ke[ut](Zt, te, se);
|
|
22775
22775
|
}
|
|
22776
22776
|
return tt;
|
|
22777
22777
|
}, {});
|
|
@@ -22782,14 +22782,14 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
22782
22782
|
...se,
|
|
22783
22783
|
click(ke) {
|
|
22784
22784
|
const tt = ke.target.className;
|
|
22785
|
-
let ut = be.includes(ke.target.tagName.toLowerCase()),
|
|
22786
|
-
typeof tt == "string" || Array.isArray(tt) ?
|
|
22785
|
+
let ut = be.includes(ke.target.tagName.toLowerCase()), lt = !1;
|
|
22786
|
+
typeof tt == "string" || Array.isArray(tt) ? lt = tt.includes("k-popover") : typeof tt == "object" && (lt = Object.keys(tt).includes("k-popover")), ke.target.closest(".popover-content") !== null && (lt = !0);
|
|
22787
22787
|
for (let Zt = 0; Zt < be.length; Zt++)
|
|
22788
22788
|
if (ke.target.closest(be[Zt]) !== null) {
|
|
22789
22789
|
ut = !0;
|
|
22790
22790
|
break;
|
|
22791
22791
|
}
|
|
22792
|
-
if ((!ut || ke.target.hasAttribute("disabled")) && !
|
|
22792
|
+
if ((!ut || ke.target.hasAttribute("disabled")) && !lt && (te.click || se.click))
|
|
22793
22793
|
if (se.click) {
|
|
22794
22794
|
s("cell-click", { data: O });
|
|
22795
22795
|
const Zt = se.click(ke, O, "cell");
|
|
@@ -22848,25 +22848,25 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
22848
22848
|
return `${parseInt(te.height, 10)}px`;
|
|
22849
22849
|
}
|
|
22850
22850
|
return "auto";
|
|
22851
|
-
}),
|
|
22851
|
+
}), Ye = (O, Y) => {
|
|
22852
22852
|
var ut;
|
|
22853
22853
|
if (O.button !== 0)
|
|
22854
22854
|
return;
|
|
22855
22855
|
let te = 0, se = 0;
|
|
22856
22856
|
p.value = Y;
|
|
22857
22857
|
let be = null;
|
|
22858
|
-
(ut = Ze.value) == null || ut.forEach((
|
|
22859
|
-
|
|
22858
|
+
(ut = Ze.value) == null || ut.forEach((lt) => {
|
|
22859
|
+
lt.getAttribute("data-testid") === `table-header-${Y}` && (be = document == null ? void 0 : document.querySelector(`[data-tableid="${f}"] [data-testid="table-header-${Y}"]`));
|
|
22860
22860
|
});
|
|
22861
|
-
const ke = (
|
|
22862
|
-
const Zt =
|
|
22861
|
+
const ke = (lt) => {
|
|
22862
|
+
const Zt = lt.clientX - te;
|
|
22863
22863
|
be == null || be.setAttribute("style", `width: ${se + Zt}px`), Ne.value[Y] = se + Zt;
|
|
22864
22864
|
}, tt = () => {
|
|
22865
22865
|
p.value = "", document == null || document.removeEventListener("mousemove", ke), document == null || document.removeEventListener("mouseup", tt), kt();
|
|
22866
22866
|
};
|
|
22867
22867
|
if (te = O.clientX, be) {
|
|
22868
|
-
const
|
|
22869
|
-
|
|
22868
|
+
const lt = window == null ? void 0 : window.getComputedStyle(be);
|
|
22869
|
+
lt != null && lt.width && (se = parseInt(lt.width, 10)), document == null || document.addEventListener("mousemove", ke), document == null || document.addEventListener("mouseup", tt);
|
|
22870
22870
|
}
|
|
22871
22871
|
}, ee = P(!0), ye = async () => {
|
|
22872
22872
|
var te, se;
|
|
@@ -22894,37 +22894,37 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
22894
22894
|
return "";
|
|
22895
22895
|
let O = f;
|
|
22896
22896
|
return u.cacheIdentifier && (O = u.cacheIdentifier), u.fetcherCacheKey && (O += `-${u.fetcherCacheKey}`), `k-table_${O}`;
|
|
22897
|
-
}), Te = P(""), { debouncedFn:
|
|
22897
|
+
}), Te = P(""), { debouncedFn: _e, generateDebouncedFn: wt } = a((O) => {
|
|
22898
22898
|
Te.value = O;
|
|
22899
22899
|
}, 350), mt = wt(0), { data: Xe, error: $t, revalidate: Ot, isValidating: re } = n(
|
|
22900
22900
|
() => Me.value,
|
|
22901
22901
|
() => ye(),
|
|
22902
22902
|
{ revalidateOnFocus: !1, revalidateDebounce: 0 }
|
|
22903
|
-
), { state:
|
|
22903
|
+
), { state: He, hasData: Fe, swrvState: ot } = r(Xe, $t, re), nt = P(!0), Nt = y(() => ({
|
|
22904
22904
|
hasData: Fe.value,
|
|
22905
|
-
state:
|
|
22906
|
-
})), Lt = y(() => nt.value ? "loading" : $t.value ? "error" : "success"), { debouncedFn:
|
|
22905
|
+
state: He.value
|
|
22906
|
+
})), Lt = y(() => nt.value ? "loading" : $t.value ? "error" : "success"), { debouncedFn: ce, generateDebouncedFn: H } = a(Ot, 500), A = H(0), j = (O) => {
|
|
22907
22907
|
const { key: Y, useSortHandlerFunction: te } = O, se = x.value + "";
|
|
22908
22908
|
M.value = 1, x.value ? Y === x.value ? R.value === "asc" ? R.value = "desc" : R.value = "asc" : (x.value = Y, R.value = "asc", U.value = [null]) : (x.value = Y, R.value = "asc", U.value = [null]), u.clientSort ? te && u.sortHandlerFunction ? u.sortHandlerFunction({
|
|
22909
22909
|
key: Y,
|
|
22910
22910
|
prevKey: se,
|
|
22911
22911
|
sortColumnOrder: R.value,
|
|
22912
22912
|
data: v.value
|
|
22913
|
-
}) : i(Y, se, R.value, v.value) : u.paginationOffset ||
|
|
22913
|
+
}) : i(Y, se, R.value, v.value) : u.paginationOffset || ce(), kt();
|
|
22914
22914
|
}, ae = ({ page: O }) => {
|
|
22915
22915
|
M.value = O;
|
|
22916
22916
|
}, pe = ({ pageSize: O }) => {
|
|
22917
22917
|
U.value = [null], F.value = null, E.value = O, M.value = 1, kt();
|
|
22918
|
-
},
|
|
22918
|
+
}, qe = (O) => {
|
|
22919
22919
|
O && O.target && typeof O.target.scrollTop == "number" && (O.target.scrollTop > 1 ? q.value = !0 : O.target.scrollTop === 0 && (q.value = !q.value));
|
|
22920
|
-
},
|
|
22920
|
+
}, We = y(() => ({
|
|
22921
22921
|
pageSize: E.value,
|
|
22922
22922
|
sortColumnKey: x.value,
|
|
22923
22923
|
sortColumnOrder: R.value,
|
|
22924
22924
|
...u.resizeColumns ? { columnWidths: Ne.value } : {},
|
|
22925
22925
|
...S.value ? { columnVisibility: _.value } : {}
|
|
22926
22926
|
})), kt = () => {
|
|
22927
|
-
Lt.value === "success" && s("update:table-preferences",
|
|
22927
|
+
Lt.value === "success" && s("update:table-preferences", We.value);
|
|
22928
22928
|
}, Qt = () => {
|
|
22929
22929
|
M.value++, F.value = we.value;
|
|
22930
22930
|
}, Sa = () => {
|
|
@@ -22935,12 +22935,12 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
22935
22935
|
JSON.stringify(se) !== JSON.stringify(b.value) && (b.value = se, kt());
|
|
22936
22936
|
}, { deep: !0, immediate: !0 }), fe(Xe, (O) => {
|
|
22937
22937
|
O != null && O.length && !v.value.length && (v.value = O);
|
|
22938
|
-
}, { deep: !0, immediate: !0 }), fe(
|
|
22939
|
-
switch (
|
|
22940
|
-
case
|
|
22938
|
+
}, { deep: !0, immediate: !0 }), fe(He, () => {
|
|
22939
|
+
switch (He.value) {
|
|
22940
|
+
case ot.PENDING:
|
|
22941
22941
|
nt.value = !0;
|
|
22942
22942
|
break;
|
|
22943
|
-
case
|
|
22943
|
+
case ot.VALIDATING_HAS_DATA:
|
|
22944
22944
|
nt.value = L.value;
|
|
22945
22945
|
break;
|
|
22946
22946
|
default:
|
|
@@ -22956,12 +22956,12 @@ const Ol = () => k9(), C9 = { "data-testid": "multiselect-container" }, S9 = ["i
|
|
|
22956
22956
|
// newData[stateData].hasData
|
|
22957
22957
|
});
|
|
22958
22958
|
}), fe(() => u.searchInput, (O) => {
|
|
22959
|
-
M.value !== 1 && (M.value = 1), O === "" ? mt(O) :
|
|
22959
|
+
M.value !== 1 && (M.value = 1), O === "" ? mt(O) : _e(O);
|
|
22960
22960
|
}, { immediate: !0 });
|
|
22961
22961
|
const L = P(!1);
|
|
22962
22962
|
return fe([Te, M, E], async (O, Y) => {
|
|
22963
22963
|
const te = Y == null ? void 0 : Y[0], se = O[0], be = O[1];
|
|
22964
|
-
se !== te && be !== 1 && (M.value = 1, U.value = [null], F.value = null), V.value && !ee.value && (L.value = !0, se !== "" && se !== te ? await
|
|
22964
|
+
se !== te && be !== 1 && (M.value = 1, U.value = [null], F.value = null), V.value && !ee.value && (L.value = !0, se !== "" && se !== te ? await ce() : await A(), L.value = !1);
|
|
22965
22965
|
}, { deep: !0, immediate: !0 }), fe(C, (O) => {
|
|
22966
22966
|
O && (_.value = u.tablePreferences.columnVisibility || {});
|
|
22967
22967
|
}, { immediate: !0 }), st(() => {
|
|
@@ -22994,7 +22994,7 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), De();
|
|
|
22994
22994
|
e.errorStateActionMessage ? {
|
|
22995
22995
|
name: "action",
|
|
22996
22996
|
fn: B(() => [
|
|
22997
|
-
Z(
|
|
22997
|
+
Z(it, {
|
|
22998
22998
|
"data-testid": Tt(e.errorStateActionMessage),
|
|
22999
22999
|
to: e.errorStateActionRoute ? e.errorStateActionRoute : void 0,
|
|
23000
23000
|
onClick: Y[1] || (Y[1] = (te) => O.$emit("error-action-click"))
|
|
@@ -23019,7 +23019,7 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), De();
|
|
|
23019
23019
|
e.emptyStateActionMessage ? {
|
|
23020
23020
|
name: "action",
|
|
23021
23021
|
fn: B(() => [
|
|
23022
|
-
Z(
|
|
23022
|
+
Z(it, {
|
|
23023
23023
|
appearance: e.searchInput ? "tertiary" : "primary",
|
|
23024
23024
|
"data-testid": Tt(e.emptyStateActionMessage),
|
|
23025
23025
|
to: e.emptyStateActionRoute ? e.emptyStateActionRoute : void 0,
|
|
@@ -23039,28 +23039,28 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), De();
|
|
|
23039
23039
|
])) : (h(), D("div", Y6, [
|
|
23040
23040
|
K("div", {
|
|
23041
23041
|
class: "table-wrapper",
|
|
23042
|
-
style: Oe(
|
|
23043
|
-
onScrollPassive:
|
|
23042
|
+
style: Oe(de.value),
|
|
23043
|
+
onScrollPassive: qe
|
|
23044
23044
|
}, [
|
|
23045
23045
|
K("table", {
|
|
23046
|
-
class:
|
|
23046
|
+
class: ue(["table", {
|
|
23047
23047
|
"has-hover": e.rowHover,
|
|
23048
23048
|
"is-clickable": J.value
|
|
23049
23049
|
}]),
|
|
23050
23050
|
"data-tableid": I(f)
|
|
23051
23051
|
}, [
|
|
23052
23052
|
K("thead", {
|
|
23053
|
-
class:
|
|
23053
|
+
class: ue({ "is-scrolled": q.value })
|
|
23054
23054
|
}, [
|
|
23055
23055
|
K("tr", {
|
|
23056
23056
|
ref_key: "headerRow",
|
|
23057
23057
|
ref: g,
|
|
23058
|
-
class:
|
|
23058
|
+
class: ue({ "is-scrolled": q.value })
|
|
23059
23059
|
}, [
|
|
23060
23060
|
(h(!0), D(Ae, null, Re(b.value, (te, se) => (h(), D("th", {
|
|
23061
23061
|
key: `table-${I(f)}-headers-${se}`,
|
|
23062
23062
|
"aria-sort": e.sortable && te.key === x.value ? R.value === "asc" ? "ascending" : "descending" : void 0,
|
|
23063
|
-
class:
|
|
23063
|
+
class: ue(["table-headers", at(te, se)]),
|
|
23064
23064
|
"data-testid": `table-header-${te.key}`,
|
|
23065
23065
|
style: Oe(Ge.value[te.key]),
|
|
23066
23066
|
onClick: () => {
|
|
@@ -23079,19 +23079,19 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), De();
|
|
|
23079
23079
|
class: "resize-handle previous",
|
|
23080
23080
|
onClick: Y[3] || (Y[3] = Ke(() => {
|
|
23081
23081
|
}, ["stop"])),
|
|
23082
|
-
onMousedown: (be) =>
|
|
23082
|
+
onMousedown: (be) => Ye(be, b.value[se - 1].key),
|
|
23083
23083
|
onMouseleave: Y[4] || (Y[4] = (be) => w.value = ""),
|
|
23084
23084
|
onMouseover: (be) => w.value = b.value[se - 1].key
|
|
23085
23085
|
}, null, 40, q6)) : G("", !0),
|
|
23086
23086
|
K("div", {
|
|
23087
23087
|
"aria-describedby": te.tooltip || O.$slots[he(te.key)] ? `${he(te.key)}-${I(f)}` : void 0,
|
|
23088
|
-
class:
|
|
23088
|
+
class: ue(["table-headers-container", { resized: p.value === te.key }])
|
|
23089
23089
|
}, [
|
|
23090
23090
|
Q(O.$slots, $e(te.key), {
|
|
23091
23091
|
column: Ce(te)
|
|
23092
23092
|
}, () => [
|
|
23093
23093
|
K("span", {
|
|
23094
|
-
class:
|
|
23094
|
+
class: ue(["table-header-label", {
|
|
23095
23095
|
"sr-only": te.hideLabel
|
|
23096
23096
|
}])
|
|
23097
23097
|
}, ie(te.label ? te.label : te.key), 3)
|
|
@@ -23129,7 +23129,7 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), De();
|
|
|
23129
23129
|
class: "resize-handle",
|
|
23130
23130
|
onClick: Y[5] || (Y[5] = Ke(() => {
|
|
23131
23131
|
}, ["stop"])),
|
|
23132
|
-
onMousedown: (be) =>
|
|
23132
|
+
onMousedown: (be) => Ye(be, te.key),
|
|
23133
23133
|
onMouseleave: Y[6] || (Y[6] = (be) => w.value = ""),
|
|
23134
23134
|
onMouseover: (be) => w.value = te.key
|
|
23135
23135
|
}, null, 40, U6)) : G("", !0)
|
|
@@ -23137,12 +23137,12 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), De();
|
|
|
23137
23137
|
], 2)
|
|
23138
23138
|
], 2),
|
|
23139
23139
|
K("tbody", null, [
|
|
23140
|
-
(h(!0), D(Ae, null, Re(v.value, (te, se) => (h(), D("tr",
|
|
23140
|
+
(h(!0), D(Ae, null, Re(v.value, (te, se) => (h(), D("tr", Ue({ ref_for: !0 }, e.rowAttrs(te), {
|
|
23141
23141
|
key: `table-${I(f)}-row-${se}`,
|
|
23142
23142
|
role: J.value ? "link" : null,
|
|
23143
23143
|
tabindex: J.value ? 0 : null
|
|
23144
23144
|
}), [
|
|
23145
|
-
(h(!0), D(Ae, null, Re(b.value, (be, ke) => (h(), D("td",
|
|
23145
|
+
(h(!0), D(Ae, null, Re(b.value, (be, ke) => (h(), D("td", Ue({ ref_for: !0 }, e.cellAttrs({ headerKey: be.key, row: te, rowIndex: se, colIndex: ke }), {
|
|
23146
23146
|
key: `table-${I(f)}-cell-${ke}`,
|
|
23147
23147
|
class: {
|
|
23148
23148
|
"resize-hover": e.resizeColumns && Qe.value === be.key && ke !== b.value.length - 1
|
|
@@ -23226,66 +23226,59 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), De();
|
|
|
23226
23226
|
},
|
|
23227
23227
|
emits: ["update:modelValue", "change"],
|
|
23228
23228
|
setup(e, { emit: t }) {
|
|
23229
|
-
var
|
|
23230
|
-
const a = e, n = t, r = P(a.modelValue ? a.modelValue : (
|
|
23231
|
-
(typeof a.beforeChange != "function" || await a.beforeChange(
|
|
23232
|
-
}, l = (
|
|
23233
|
-
|
|
23234
|
-
|
|
23235
|
-
|
|
23236
|
-
if (typeof c.to == "object")
|
|
23237
|
-
return { tag: "router-link", attributes: { to: c.disabled ? void 0 : c.to } };
|
|
23238
|
-
}
|
|
23239
|
-
return { tag: "div", attributes: {} };
|
|
23240
|
-
};
|
|
23241
|
-
return fe(() => a.modelValue, (c) => {
|
|
23242
|
-
r.value = c, n("change", c), n("update:modelValue", c);
|
|
23243
|
-
}), (c, f) => (h(), D("div", G6, [
|
|
23229
|
+
var s;
|
|
23230
|
+
const a = e, n = t, r = P(a.modelValue ? a.modelValue : (s = a.tabs[0]) == null ? void 0 : s.hash), i = async (o) => {
|
|
23231
|
+
(typeof a.beforeChange != "function" || await a.beforeChange(o)) && (r.value = o, n("change", o), n("update:modelValue", o));
|
|
23232
|
+
}, l = (o) => o.replace("#", ""), u = (o) => o.disabled ? "-1" : typeof a.anchorTabindex == "number" && a.anchorTabindex >= -1 && a.anchorTabindex <= 32767 ? String(a.anchorTabindex) : "0";
|
|
23233
|
+
return fe(() => a.modelValue, (o) => {
|
|
23234
|
+
r.value = o, n("change", o), n("update:modelValue", o);
|
|
23235
|
+
}), (o, c) => (h(), D("div", G6, [
|
|
23244
23236
|
K("ul", Q6, [
|
|
23245
|
-
(h(!0), D(Ae, null, Re(e.tabs, (
|
|
23246
|
-
id: `${
|
|
23247
|
-
key:
|
|
23248
|
-
class:
|
|
23249
|
-
"data-testid": `${
|
|
23237
|
+
(h(!0), D(Ae, null, Re(e.tabs, (f) => (h(), D("li", {
|
|
23238
|
+
id: `${f.hash.replace("#", "")}-tab`,
|
|
23239
|
+
key: f.hash,
|
|
23240
|
+
class: ue(["tab-item", { active: r.value === f.hash }]),
|
|
23241
|
+
"data-testid": `${f.hash.replace("#", "")}-tab`
|
|
23250
23242
|
}, [
|
|
23251
|
-
(
|
|
23252
|
-
"
|
|
23253
|
-
"aria-
|
|
23254
|
-
|
|
23243
|
+
Z(it, {
|
|
23244
|
+
appearance: "none",
|
|
23245
|
+
"aria-controls": e.hidePanels ? void 0 : `panel-${f.hash}`,
|
|
23246
|
+
"aria-selected": e.hidePanels ? void 0 : r.value === f.hash ? "true" : "false",
|
|
23247
|
+
class: ue(["tab-link", { disabled: f.disabled }]),
|
|
23248
|
+
disabled: f.disabled,
|
|
23255
23249
|
role: "tab",
|
|
23256
|
-
tabindex: u(
|
|
23257
|
-
|
|
23258
|
-
}, s(d).attributes, {
|
|
23250
|
+
tabindex: u(f),
|
|
23251
|
+
to: f.to,
|
|
23259
23252
|
onClick: [
|
|
23260
|
-
(
|
|
23261
|
-
Ke((
|
|
23253
|
+
(d) => f.disabled ? void 0 : i(f.hash),
|
|
23254
|
+
Ke((d) => f.disabled ? void 0 : i(f.hash), ["prevent"])
|
|
23262
23255
|
],
|
|
23263
23256
|
onKeydown: [
|
|
23264
|
-
ft(Ke((
|
|
23265
|
-
ft(Ke((
|
|
23257
|
+
ft(Ke((d) => f.disabled ? void 0 : i(f.hash), ["prevent"]), ["enter"]),
|
|
23258
|
+
ft(Ke((d) => f.disabled ? void 0 : i(f.hash), ["prevent"]), ["space"])
|
|
23266
23259
|
]
|
|
23267
|
-
}
|
|
23260
|
+
}, {
|
|
23268
23261
|
default: B(() => [
|
|
23269
|
-
Q(
|
|
23270
|
-
K("span", null, ie(
|
|
23262
|
+
Q(o.$slots, `${l(f.hash)}-anchor`, {}, () => [
|
|
23263
|
+
K("span", null, ie(f.title), 1)
|
|
23271
23264
|
])
|
|
23272
23265
|
]),
|
|
23273
23266
|
_: 2
|
|
23274
|
-
},
|
|
23267
|
+
}, 1032, ["aria-controls", "aria-selected", "class", "disabled", "tabindex", "to", "onClick", "onKeydown"])
|
|
23275
23268
|
], 10, Z6))), 128))
|
|
23276
23269
|
]),
|
|
23277
|
-
e.hidePanels ? G("", !0) : (h(!0), D(Ae, { key: 0 }, Re(e.tabs, (
|
|
23278
|
-
id: `panel-${
|
|
23279
|
-
key:
|
|
23280
|
-
"aria-labelledby": `${l(
|
|
23270
|
+
e.hidePanels ? G("", !0) : (h(!0), D(Ae, { key: 0 }, Re(e.tabs, (f, d) => (h(), D("div", {
|
|
23271
|
+
id: `panel-${d}`,
|
|
23272
|
+
key: f.hash,
|
|
23273
|
+
"aria-labelledby": `${l(f.hash)}-tab`,
|
|
23281
23274
|
class: "tab-container",
|
|
23282
23275
|
role: "tabpanel"
|
|
23283
23276
|
}, [
|
|
23284
|
-
r.value ===
|
|
23277
|
+
r.value === f.hash ? Q(o.$slots, l(f.hash), { key: 0 }) : G("", !0)
|
|
23285
23278
|
], 8, X6))), 128))
|
|
23286
23279
|
]));
|
|
23287
23280
|
}
|
|
23288
|
-
}), eL = /* @__PURE__ */ Ee(J6, [["__scopeId", "data-v-
|
|
23281
|
+
}), eL = /* @__PURE__ */ Ee(J6, [["__scopeId", "data-v-adc5b823"]]), tL = ["data-value"], aL = ["id", "aria-invalid", "rows", "value"], is = 2048, bv = Ap ? 0 : Ep(), wv = fw("field-sizing", "content"), nL = {
|
|
23289
23282
|
inheritAttrs: !1
|
|
23290
23283
|
}, rL = /* @__PURE__ */ le({
|
|
23291
23284
|
...nL,
|
|
@@ -23396,9 +23389,9 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), De();
|
|
|
23396
23389
|
_ > q - bv && z > M - bv && (N.style.height = "");
|
|
23397
23390
|
};
|
|
23398
23391
|
return (T, N) => (h(), D("div", {
|
|
23399
|
-
class:
|
|
23392
|
+
class: ue(["k-textarea", [T.$attrs.class, { "input-error": e.error || e.hasError || p.value }]])
|
|
23400
23393
|
}, [
|
|
23401
|
-
e.label ? (h(), X(Qa,
|
|
23394
|
+
e.label ? (h(), X(Qa, Ue({
|
|
23402
23395
|
key: 0,
|
|
23403
23396
|
for: m.value
|
|
23404
23397
|
}, e.labelAttributes, { required: u.value }), yt({
|
|
@@ -23416,14 +23409,14 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), De();
|
|
|
23416
23409
|
} : void 0
|
|
23417
23410
|
]), 1040, ["for", "required"])) : G("", !0),
|
|
23418
23411
|
K("div", {
|
|
23419
|
-
class:
|
|
23412
|
+
class: ue(["input-textarea-wrapper", {
|
|
23420
23413
|
autosize: e.autosize,
|
|
23421
23414
|
legacy: e.autosize && !I(wv)
|
|
23422
23415
|
}]),
|
|
23423
23416
|
"data-allow-mismatch": "class",
|
|
23424
23417
|
"data-value": I(wv) ? null : s.value
|
|
23425
23418
|
}, [
|
|
23426
|
-
K("textarea",
|
|
23419
|
+
K("textarea", Ue({ id: m.value }, b.value, {
|
|
23427
23420
|
"aria-invalid": f.value,
|
|
23428
23421
|
class: ["input-textarea", {
|
|
23429
23422
|
resizable: e.resizable || e.isResizable
|
|
@@ -23497,7 +23490,7 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), De();
|
|
|
23497
23490
|
default: B(() => [
|
|
23498
23491
|
(h(!0), D(Ae, null, Re(e.toasterState, (r) => (h(), D("div", {
|
|
23499
23492
|
key: r.key,
|
|
23500
|
-
class:
|
|
23493
|
+
class: ue(["toaster", `${r.appearance}`]),
|
|
23501
23494
|
role: "alert"
|
|
23502
23495
|
}, [
|
|
23503
23496
|
K("div", oL, [
|
|
@@ -24369,8 +24362,8 @@ Be.prototype = /** @lends Sortable.prototype */
|
|
|
24369
24362
|
fromSortable: d,
|
|
24370
24363
|
target: n,
|
|
24371
24364
|
completed: w,
|
|
24372
|
-
onMove: function(ve,
|
|
24373
|
-
return po(ht, a, ge, r, ve, Et(ve), t,
|
|
24365
|
+
onMove: function(ve, de) {
|
|
24366
|
+
return po(ht, a, ge, r, ve, Et(ve), t, de);
|
|
24374
24367
|
},
|
|
24375
24368
|
changed: k
|
|
24376
24369
|
}, J));
|
|
@@ -25179,7 +25172,7 @@ const JL = {
|
|
|
25179
25172
|
"aria-controls": `tree-list-draggable-${e.controlsId}`,
|
|
25180
25173
|
"aria-expanded": s.value,
|
|
25181
25174
|
"aria-label": s.value ? "Collapse" : "Expand",
|
|
25182
|
-
class:
|
|
25175
|
+
class: ue(["tree-item-expanded-button", {
|
|
25183
25176
|
collapsed: !s.value,
|
|
25184
25177
|
expanded: s.value
|
|
25185
25178
|
}]),
|
|
@@ -25189,7 +25182,7 @@ const JL = {
|
|
|
25189
25182
|
onKeyup: ft(c, ["enter"])
|
|
25190
25183
|
}, [
|
|
25191
25184
|
Z(I(Vs), {
|
|
25192
|
-
class:
|
|
25185
|
+
class: ue(["tree-item-expanded-icon", {
|
|
25193
25186
|
collapsed: !s.value,
|
|
25194
25187
|
expanded: s.value
|
|
25195
25188
|
}]),
|
|
@@ -25200,7 +25193,7 @@ const JL = {
|
|
|
25200
25193
|
}, null, 8, ["class", "size"])
|
|
25201
25194
|
], 42, aB)) : G("", !0),
|
|
25202
25195
|
K("button", {
|
|
25203
|
-
class:
|
|
25196
|
+
class: ue(["tree-item", {
|
|
25204
25197
|
"not-draggable": e.disabled,
|
|
25205
25198
|
selected: e.item.selected,
|
|
25206
25199
|
expanded: e.collapsible && s.value,
|
|
@@ -25354,7 +25347,7 @@ const JL = {
|
|
|
25354
25347
|
}), await gt(), n.collapsible && q();
|
|
25355
25348
|
}), t({ collapseAll: k, expandAll: S }), (M, E) => {
|
|
25356
25349
|
const $ = _t("KTreeDraggable", !0);
|
|
25357
|
-
return h(), X(I(eB),
|
|
25350
|
+
return h(), X(I(eB), Ue(u, {
|
|
25358
25351
|
class: "tree-draggable",
|
|
25359
25352
|
direction: "vertical",
|
|
25360
25353
|
disabled: e.disableDrag,
|
|
@@ -25371,7 +25364,7 @@ const JL = {
|
|
|
25371
25364
|
default: B(() => [
|
|
25372
25365
|
(h(!0), D(Ae, null, Re(l.value, (x) => (h(), D("div", {
|
|
25373
25366
|
key: x.id,
|
|
25374
|
-
class:
|
|
25367
|
+
class: ue(["tree-item-container", {
|
|
25375
25368
|
"has-no-children": c(x)
|
|
25376
25369
|
}])
|
|
25377
25370
|
}, [
|
|
@@ -25407,7 +25400,7 @@ const JL = {
|
|
|
25407
25400
|
dn((h(), X($, {
|
|
25408
25401
|
id: `tree-list-draggable-${x.id}`,
|
|
25409
25402
|
key: `tree-item-${x.id}-children-${i.value}`,
|
|
25410
|
-
class:
|
|
25403
|
+
class: ue({
|
|
25411
25404
|
collapsible: e.collapsible
|
|
25412
25405
|
}),
|
|
25413
25406
|
collapsible: e.collapsible,
|
|
@@ -25684,7 +25677,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
25684
25677
|
return h(), D("div", {
|
|
25685
25678
|
ref_key: "kTruncateWrapper",
|
|
25686
25679
|
ref: u,
|
|
25687
|
-
class:
|
|
25680
|
+
class: ue(["k-truncate", [n.value ? "expanded" : "", `truncate-${e.truncateText ? "text" : "content"}`]]),
|
|
25688
25681
|
style: Oe(b.value)
|
|
25689
25682
|
}, [
|
|
25690
25683
|
!e.truncateText && r.value ? (h(), D("div", mB, [
|
|
@@ -25817,11 +25810,11 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
25817
25810
|
}), (b, p) => (h(), D("div", DB, [
|
|
25818
25811
|
b.badge && b.badgeLabel ? (h(), D("span", TB, ie(b.badgeLabel), 1)) : G("", !0),
|
|
25819
25812
|
K("div", {
|
|
25820
|
-
class:
|
|
25813
|
+
class: ue(["copy-container", { "copy-element": b.truncate || b.badge, "badge-styles": b.badge }])
|
|
25821
25814
|
}, [
|
|
25822
25815
|
b.format !== "hidden" ? (h(), X(va, {
|
|
25823
25816
|
key: 0,
|
|
25824
|
-
class:
|
|
25817
|
+
class: ue([i.value]),
|
|
25825
25818
|
"data-testid": "copy-tooltip-wrapper",
|
|
25826
25819
|
"max-width": "500px",
|
|
25827
25820
|
placement: "bottom-start",
|
|
@@ -25831,7 +25824,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
25831
25824
|
K("div", {
|
|
25832
25825
|
ref_key: "copyTextElement",
|
|
25833
25826
|
ref: f,
|
|
25834
|
-
class:
|
|
25827
|
+
class: ue(["copy-text", { monospace: b.monospace || !b.badge }])
|
|
25835
25828
|
}, ie(l.value), 3)
|
|
25836
25829
|
]),
|
|
25837
25830
|
_: 1
|
|
@@ -25903,7 +25896,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
25903
25896
|
text: "Selected Row Actions"
|
|
25904
25897
|
}, {
|
|
25905
25898
|
default: B(() => [
|
|
25906
|
-
Z(
|
|
25899
|
+
Z(it, {
|
|
25907
25900
|
appearance: "secondary",
|
|
25908
25901
|
"aria-label": e.buttonLabel,
|
|
25909
25902
|
class: "bulk-actions-dropdown-trigger",
|
|
@@ -26004,7 +25997,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26004
25997
|
}));
|
|
26005
25998
|
const a = e, n = t, r = Vt(), i = It(), l = Dt(), { getSizeFromString: u } = At(), s = (L) => typeof a.rowKey == "function" && typeof a.rowKey(L) == "string" ? a.rowKey(L) : typeof a.rowKey == "string" && a.rowKey in L && typeof L[a.rowKey] == "string" ? L[a.rowKey] : "", o = Mt("table-wrapper"), c = Mt("header-row"), f = P([]), d = P([]), v = P(""), g = P(""), m = P(""), b = y(() => f.value.filter((L) => L.hidable).length > 0), p = y(() => a.nested || !b.value || a.error ? !1 : i.toolbar ? !0 : !a.loading && !!a.data && !!a.data.length), w = y(() => a.loading || !(a.data && a.data.length)), k = y(() => f.value.filter((L) => L.hidable && !Te(L.key))), S = y(() => p.value ? a.tablePreferences.columnVisibility || {} : {}), C = P(p.value ? a.tablePreferences.columnVisibility || {} : {}), T = P("100%"), N = P(!1), _ = P(!1), z = P(!1), q = P(!1), M = P(""), E = P("desc"), $ = P(!1), x = y(() => !a.hideToolbar && !a.nested && (!!i.toolbar || p.value || ve.value)), R = P(!1), F = y(() => ({
|
|
26006
25999
|
maxHeight: u(a.maxHeight)
|
|
26007
|
-
})), U = y(() => `${Ep()}px`), W = P([]), J = y(() => !a.nested && !a.error && f.value.some((L) => L.key === je.BULK_ACTIONS) && !!(i["bulk-action-items"] || i["bulk-actions"]) && !!a.data.every((L) => s(L))), V = P([]), ve = y(() => a.nested || !J.value || a.error ? !1 : i.toolbar ? !0 : !a.loading && !!a.data && !!a.data.length),
|
|
26000
|
+
})), U = y(() => `${Ep()}px`), W = P([]), J = y(() => !a.nested && !a.error && f.value.some((L) => L.key === je.BULK_ACTIONS) && !!(i["bulk-action-items"] || i["bulk-actions"]) && !!a.data.every((L) => s(L))), V = P([]), ve = y(() => a.nested || !J.value || a.error ? !1 : i.toolbar ? !0 : !a.loading && !!a.data && !!a.data.length), de = y(() => {
|
|
26008
26001
|
const L = W.value.length;
|
|
26009
26002
|
return L ? L > 100 ? "99+" : String(L) : "";
|
|
26010
26003
|
}), $e = P(/* @__PURE__ */ new WeakMap()), he = (L) => `column-${L}`, Ce = (L) => `tooltip-${L}`, xe = (L) => L, Pe = (L, O) => (Y, te) => {
|
|
@@ -26014,7 +26007,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26014
26007
|
return Object.keys(be).reduce((ke, tt) => {
|
|
26015
26008
|
if (tt.indexOf(L) === 0) {
|
|
26016
26009
|
const ut = tt.split(L);
|
|
26017
|
-
ke[ut[1]] = (
|
|
26010
|
+
ke[ut[1]] = (lt) => be[tt](lt, Y, te);
|
|
26018
26011
|
}
|
|
26019
26012
|
return ke;
|
|
26020
26013
|
}, {});
|
|
@@ -26027,20 +26020,20 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26027
26020
|
const ke = be.target.className;
|
|
26028
26021
|
let tt = se.includes(be.target.tagName.toLowerCase()), ut = !1;
|
|
26029
26022
|
typeof ke == "string" || Array.isArray(ke) ? ut = ke.includes("k-popover") : typeof ke == "object" && (ut = Object.keys(ke).includes("k-popover")), be.target.closest(".popover-content") !== null && (ut = !0);
|
|
26030
|
-
for (let
|
|
26031
|
-
if (be.target.closest(se[
|
|
26023
|
+
for (let lt = 0; lt < se.length; lt++)
|
|
26024
|
+
if (be.target.closest(se[lt]) !== null) {
|
|
26032
26025
|
tt = !0;
|
|
26033
26026
|
break;
|
|
26034
26027
|
}
|
|
26035
26028
|
if ((!tt || be.target.hasAttribute("disabled")) && !ut && (Y.click || te.click))
|
|
26036
26029
|
if (te.click) {
|
|
26037
26030
|
n("cell-click", { data: L });
|
|
26038
|
-
const
|
|
26039
|
-
typeof
|
|
26031
|
+
const lt = te.click(be, L, "cell");
|
|
26032
|
+
typeof lt == "function" && lt(be, L);
|
|
26040
26033
|
} else {
|
|
26041
26034
|
n("row-click", { data: O });
|
|
26042
|
-
const
|
|
26043
|
-
typeof
|
|
26035
|
+
const lt = Y.click(be, O, "row");
|
|
26036
|
+
typeof lt == "function" && lt(be, O);
|
|
26044
26037
|
}
|
|
26045
26038
|
}
|
|
26046
26039
|
};
|
|
@@ -26059,7 +26052,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26059
26052
|
return L;
|
|
26060
26053
|
}), oe = (L, O) => ({
|
|
26061
26054
|
// display the resize handle on the right side of the column if props.resizeColumns is enabled, hovering current column, and not the last column
|
|
26062
|
-
"resize-hover": ye.value === L.key && a.resizeColumns && !a.nested && O !== d.value.length - 1 &&
|
|
26055
|
+
"resize-hover": ye.value === L.key && a.resizeColumns && !a.nested && O !== d.value.length - 1 && _e(L),
|
|
26063
26056
|
resizable: a.resizeColumns && !a.nested,
|
|
26064
26057
|
// display sort control if column is sortable, label is visible, and sorting is not disabled
|
|
26065
26058
|
sortable: !L.hideLabel && !!L.sortable,
|
|
@@ -26071,7 +26064,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26071
26064
|
"sticky-column": (L.key === je.BULK_ACTIONS || L.key === je.EXPANDABLE) && z.value,
|
|
26072
26065
|
"second-sticky-column": L.key === je.BULK_ACTIONS && H.value,
|
|
26073
26066
|
"has-row-scroll-overlay": Me(L.key)
|
|
26074
|
-
}),
|
|
26067
|
+
}), Ye = (L) => {
|
|
26075
26068
|
if (L.sortable && L.key !== je.BULK_ACTIONS && L.key !== je.ACTIONS) {
|
|
26076
26069
|
let O = "asc";
|
|
26077
26070
|
L.key === M.value && E.value === "asc" && (O = "desc"), n("sort", {
|
|
@@ -26114,16 +26107,16 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26114
26107
|
ut.getAttribute("data-testid") === `table-header-${O}` && (se = document == null ? void 0 : document.querySelector(`[data-tableid="${l}"] [data-testid="table-header-${O}"]`));
|
|
26115
26108
|
});
|
|
26116
26109
|
const be = (ut) => {
|
|
26117
|
-
const
|
|
26118
|
-
se == null || se.setAttribute("style", `width: ${te +
|
|
26110
|
+
const lt = ut.clientX - Y;
|
|
26111
|
+
se == null || se.setAttribute("style", `width: ${te + lt}px`), Qe.value[O] = te + lt;
|
|
26119
26112
|
}, ke = () => {
|
|
26120
|
-
v.value = "", document == null || document.removeEventListener("mousemove", be), document == null || document.removeEventListener("mouseup", ke),
|
|
26113
|
+
v.value = "", document == null || document.removeEventListener("mousemove", be), document == null || document.removeEventListener("mouseup", ke), ce(), H.value && kt();
|
|
26121
26114
|
};
|
|
26122
26115
|
if (Y = L.clientX, se) {
|
|
26123
26116
|
const ut = window == null ? void 0 : window.getComputedStyle(se);
|
|
26124
26117
|
ut != null && ut.width && (te = parseInt(ut.width, 10)), document == null || document.addEventListener("mousemove", be), document == null || document.addEventListener("mouseup", ke);
|
|
26125
26118
|
}
|
|
26126
|
-
}, Me = (L) => z.value ? J.value ? L === je.BULK_ACTIONS : H.value ? L === je.EXPANDABLE : !1 : !1, Te = (L) => L === je.EXPANDABLE || L === je.BULK_ACTIONS || L === je.ACTIONS,
|
|
26119
|
+
}, Me = (L) => z.value ? J.value ? L === je.BULK_ACTIONS : H.value ? L === je.EXPANDABLE : !1 : !1, Te = (L) => L === je.EXPANDABLE || L === je.BULK_ACTIONS || L === je.ACTIONS, _e = (L, O = !1) => {
|
|
26127
26120
|
if (O) {
|
|
26128
26121
|
if (d.value.indexOf(L) === d.value.length - 1)
|
|
26129
26122
|
return !1;
|
|
@@ -26143,7 +26136,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26143
26136
|
}, { deep: !0, immediate: !0 });
|
|
26144
26137
|
const Xe = (L) => {
|
|
26145
26138
|
const { key: O } = L;
|
|
26146
|
-
M.value && O === M.value ? E.value === "asc" ? E.value = "desc" : E.value = "asc" : (M.value = O, E.value = "asc"),
|
|
26139
|
+
M.value && O === M.value ? E.value === "asc" ? E.value = "desc" : E.value = "asc" : (M.value = O, E.value = "asc"), ce();
|
|
26147
26140
|
}, $t = (L) => {
|
|
26148
26141
|
L && L.target && (typeof L.target.scrollTop == "number" || typeof L.target.scrollLeft == "number") && (L.target.scrollTop > 1 ? (N.value = !0, _.value = !0) : L.target.scrollTop === 0 && (_.value = !1), L.target.scrollLeft > 1 ? z.value = !0 : L.target.scrollLeft === 0 && (z.value = !1), L.target.scrollWidth === L.target.scrollLeft + L.target.clientWidth ? q.value = !1 : q.value = !0);
|
|
26149
26142
|
}, Ot = (L) => V.value.find((O) => O.rowKey === s(L)), re = (L) => {
|
|
@@ -26151,7 +26144,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26151
26144
|
return !1;
|
|
26152
26145
|
const O = a.rowBulkActionEnabled(L);
|
|
26153
26146
|
return typeof O == "boolean" ? O : O.enabled;
|
|
26154
|
-
},
|
|
26147
|
+
}, He = (L) => {
|
|
26155
26148
|
if (typeof a.rowBulkActionEnabled != "function")
|
|
26156
26149
|
return "";
|
|
26157
26150
|
const O = a.rowBulkActionEnabled(L);
|
|
@@ -26159,7 +26152,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26159
26152
|
}, Fe = (L, O) => {
|
|
26160
26153
|
const { to: Y } = a.rowLink(L);
|
|
26161
26154
|
return !Y || O === je.BULK_ACTIONS || O === je.ACTIONS ? "div" : typeof Y == "object" ? "router-link" : "a";
|
|
26162
|
-
},
|
|
26155
|
+
}, ot = (L, O) => {
|
|
26163
26156
|
if (O === je.BULK_ACTIONS || O === je.ACTIONS)
|
|
26164
26157
|
return {};
|
|
26165
26158
|
const { to: Y, target: te } = a.rowLink(L), se = Y && typeof Y == "object", be = Y && typeof Y == "string";
|
|
@@ -26171,14 +26164,14 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26171
26164
|
}
|
|
26172
26165
|
};
|
|
26173
26166
|
}, nt = P(xg(a.tablePreferences, a.paginationAttributes)), Nt = (L) => {
|
|
26174
|
-
nt.value = L.pageSize, n("page-size-change", L),
|
|
26167
|
+
nt.value = L.pageSize, n("page-size-change", L), ce();
|
|
26175
26168
|
}, Lt = y(() => ({
|
|
26176
26169
|
sortColumnKey: M.value,
|
|
26177
26170
|
sortColumnOrder: E.value,
|
|
26178
26171
|
...a.resizeColumns ? { columnWidths: Qe.value } : {},
|
|
26179
26172
|
...b.value ? { columnVisibility: C.value } : {},
|
|
26180
26173
|
...nt.value && !a.hidePagination && { pageSize: nt.value }
|
|
26181
|
-
})),
|
|
26174
|
+
})), ce = () => {
|
|
26182
26175
|
n("update:table-preferences", Lt.value);
|
|
26183
26176
|
}, H = y(() => !a.nested && a.data.some((L) => a.rowExpandable(L))), A = { key: je.EXPANDABLE, label: "Expandable rows controls", hideLabel: !0 }, j = () => {
|
|
26184
26177
|
const L = [];
|
|
@@ -26187,7 +26180,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26187
26180
|
}), L;
|
|
26188
26181
|
}, ae = P(j()), pe = async (L, O) => {
|
|
26189
26182
|
kt(), await gt(), ae.value.includes(L) ? (ae.value = ae.value.filter((Y) => Y !== L), n("update:row-expanded", { row: O, expanded: !1 })) : (ae.value = [...ae.value, L], n("update:row-expanded", { row: O, expanded: !0 }));
|
|
26190
|
-
},
|
|
26183
|
+
}, qe = y(() => d.value.filter((L) => L.key !== je.EXPANDABLE && L.key !== je.BULK_ACTIONS)), We = P({}), kt = () => {
|
|
26191
26184
|
const L = document == null ? void 0 : document.querySelector(`[data-tableid="${l}"]`), O = L == null ? void 0 : L.querySelectorAll("th"), Y = {};
|
|
26192
26185
|
O == null || O.forEach((te, se) => {
|
|
26193
26186
|
const be = te.getAttribute("data-key");
|
|
@@ -26195,12 +26188,12 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26195
26188
|
return;
|
|
26196
26189
|
let ke = te.getBoundingClientRect().width;
|
|
26197
26190
|
se === 1 && (ke += Ge), se === O.length - 1 && (ke -= 15), Y[be] = ke;
|
|
26198
|
-
}),
|
|
26191
|
+
}), We.value = Y;
|
|
26199
26192
|
};
|
|
26200
26193
|
fe([C, f, H], (L) => {
|
|
26201
26194
|
const [O, Y, te] = L;
|
|
26202
26195
|
let se = Y.filter((be) => be.key === je.BULK_ACTIONS ? J.value : O[be.key] !== !1);
|
|
26203
|
-
se.find((be) => be.key === je.EXPANDABLE) && (se = se.filter((be) => be.key !== je.EXPANDABLE)), te && se.unshift(A), JSON.stringify(se) !== JSON.stringify(d.value) && (d.value = se,
|
|
26196
|
+
se.find((be) => be.key === je.EXPANDABLE) && (se = se.filter((be) => be.key !== je.EXPANDABLE)), te && se.unshift(A), JSON.stringify(se) !== JSON.stringify(d.value) && (d.value = se, ce()), te && kt();
|
|
26204
26197
|
}, { deep: !0, immediate: !0 }), fe(p, (L) => {
|
|
26205
26198
|
L && (C.value = a.tablePreferences.columnVisibility || {});
|
|
26206
26199
|
}, { immediate: !0 });
|
|
@@ -26247,7 +26240,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26247
26240
|
const O = (Y = L[0]) == null ? void 0 : Y.target;
|
|
26248
26241
|
O && (q.value = O.scrollWidth > O.clientWidth, T.value = O.clientHeight + "px", N.value = O.scrollHeight > O.clientHeight);
|
|
26249
26242
|
}), (L, O) => (h(), D("div", {
|
|
26250
|
-
class:
|
|
26243
|
+
class: ue(["k-table-view", { "hide-headers": L.hideHeaders }])
|
|
26251
26244
|
}, [
|
|
26252
26245
|
x.value ? (h(), D("div", PB, [
|
|
26253
26246
|
Q(L.$slots, "toolbar", {}, void 0, !0),
|
|
@@ -26259,8 +26252,8 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26259
26252
|
L.$slots["bulk-actions"] ? G("", !0) : (h(), X(OB, {
|
|
26260
26253
|
key: 0,
|
|
26261
26254
|
"button-label": f.value.find((Y) => Y.key === I(je).BULK_ACTIONS).label,
|
|
26262
|
-
count:
|
|
26263
|
-
disabled: !
|
|
26255
|
+
count: de.value,
|
|
26256
|
+
disabled: !de.value || L.loading || !L.data.length
|
|
26264
26257
|
}, {
|
|
26265
26258
|
items: B(() => [
|
|
26266
26259
|
Q(L.$slots, "bulk-action-items", { selectedRows: W.value }, void 0, !0)
|
|
@@ -26292,7 +26285,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26292
26285
|
L.errorStateActionMessage ? {
|
|
26293
26286
|
name: "action",
|
|
26294
26287
|
fn: B(() => [
|
|
26295
|
-
Z(
|
|
26288
|
+
Z(it, {
|
|
26296
26289
|
"data-testid": "error-state-action",
|
|
26297
26290
|
to: L.errorStateActionRoute,
|
|
26298
26291
|
onClick: O[1] || (O[1] = (Y) => L.$emit("error-action-click"))
|
|
@@ -26317,7 +26310,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26317
26310
|
L.emptyStateActionMessage ? {
|
|
26318
26311
|
name: "action",
|
|
26319
26312
|
fn: B(() => [
|
|
26320
|
-
Z(
|
|
26313
|
+
Z(it, {
|
|
26321
26314
|
appearance: L.emptyStateButtonAppearance,
|
|
26322
26315
|
"data-testid": "empty-state-action",
|
|
26323
26316
|
to: L.emptyStateActionRoute,
|
|
@@ -26342,7 +26335,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26342
26335
|
onScrollPassive: $t
|
|
26343
26336
|
}, [
|
|
26344
26337
|
K("table", {
|
|
26345
|
-
class:
|
|
26338
|
+
class: ue(["table", {
|
|
26346
26339
|
"has-hover": L.rowHover && !R.value,
|
|
26347
26340
|
"is-clickable": $.value
|
|
26348
26341
|
}]),
|
|
@@ -26350,24 +26343,24 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26350
26343
|
}, [
|
|
26351
26344
|
L.hideHeaders ? G("", !0) : (h(), D("thead", {
|
|
26352
26345
|
key: 0,
|
|
26353
|
-
class:
|
|
26346
|
+
class: ue({ "is-scrolled": _.value })
|
|
26354
26347
|
}, [
|
|
26355
26348
|
K("tr", {
|
|
26356
26349
|
ref: "header-row",
|
|
26357
|
-
class:
|
|
26350
|
+
class: ue({ "is-scrolled": _.value })
|
|
26358
26351
|
}, [
|
|
26359
26352
|
(h(!0), D(Ae, null, Re(d.value, (Y, te) => (h(), D("th", {
|
|
26360
26353
|
key: `table-${I(l)}-headers-${Y.key}`,
|
|
26361
26354
|
"aria-sort": Y.key === M.value ? E.value === "asc" ? "ascending" : "descending" : void 0,
|
|
26362
|
-
class:
|
|
26355
|
+
class: ue(["table-headers", oe(Y, te)]),
|
|
26363
26356
|
"data-key": Y.key,
|
|
26364
26357
|
"data-testid": `table-header-${Y.key}`,
|
|
26365
26358
|
style: Oe(Ze.value[Y.key]),
|
|
26366
|
-
onClick: () =>
|
|
26359
|
+
onClick: () => Ye(Y),
|
|
26367
26360
|
onMouseleave: O[8] || (O[8] = (se) => m.value = ""),
|
|
26368
26361
|
onMouseover: (se) => m.value = Y.key
|
|
26369
26362
|
}, [
|
|
26370
|
-
L.resizeColumns && !L.nested && te !== 0 &&
|
|
26363
|
+
L.resizeColumns && !L.nested && te !== 0 && _e(Y, !0) ? (h(), D("div", {
|
|
26371
26364
|
key: 0,
|
|
26372
26365
|
class: "resize-handle previous",
|
|
26373
26366
|
onClick: O[3] || (O[3] = Ke(() => {
|
|
@@ -26378,14 +26371,14 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26378
26371
|
}, null, 40, YB)) : G("", !0),
|
|
26379
26372
|
K("div", {
|
|
26380
26373
|
"aria-describedby": Y.tooltip || L.$slots[Ce(Y.key)] ? `${Ce(Y.key)}-${I(l)}` : void 0,
|
|
26381
|
-
class:
|
|
26374
|
+
class: ue(["table-headers-container", { resized: v.value === Y.key }])
|
|
26382
26375
|
}, [
|
|
26383
26376
|
Y.key !== I(je).BULK_ACTIONS ? Q(L.$slots, he(Y.key), {
|
|
26384
26377
|
key: 0,
|
|
26385
26378
|
column: xe(Y)
|
|
26386
26379
|
}, () => [
|
|
26387
26380
|
K("span", {
|
|
26388
|
-
class:
|
|
26381
|
+
class: ue(["table-header-label", {
|
|
26389
26382
|
"sr-only": Y.hideLabel || Y.key === I(je).ACTIONS && Y.hideLabel !== !1
|
|
26390
26383
|
}])
|
|
26391
26384
|
}, ie(Y.label ? Y.label : Y.key), 3)
|
|
@@ -26431,7 +26424,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26431
26424
|
size: I(Aa)
|
|
26432
26425
|
}, null, 8, ["color", "size"])) : G("", !0)
|
|
26433
26426
|
], 10, _B),
|
|
26434
|
-
L.resizeColumns && !L.nested && te !== d.value.length - 1 &&
|
|
26427
|
+
L.resizeColumns && !L.nested && te !== d.value.length - 1 && _e(Y) ? (h(), D("div", {
|
|
26435
26428
|
key: 1,
|
|
26436
26429
|
class: "resize-handle",
|
|
26437
26430
|
onClick: O[6] || (O[6] = Ke(() => {
|
|
@@ -26442,7 +26435,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26442
26435
|
}, null, 40, qB)) : G("", !0),
|
|
26443
26436
|
Me(Y.key) ? (h(), D("div", {
|
|
26444
26437
|
key: 2,
|
|
26445
|
-
class:
|
|
26438
|
+
class: ue(["scroll-overlay row-overlay left", {
|
|
26446
26439
|
"overlay-visible": z.value
|
|
26447
26440
|
}])
|
|
26448
26441
|
}, null, 2)) : G("", !0)
|
|
@@ -26453,7 +26446,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26453
26446
|
(h(!0), D(Ae, null, Re(L.data, (Y, te) => (h(), D(Ae, {
|
|
26454
26447
|
key: $e.value.get(Y)
|
|
26455
26448
|
}, [
|
|
26456
|
-
K("tr",
|
|
26449
|
+
K("tr", Ue({
|
|
26457
26450
|
class: {
|
|
26458
26451
|
"last-row": te === L.data.length - 1 && !ae.value.includes(te)
|
|
26459
26452
|
},
|
|
@@ -26461,10 +26454,10 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26461
26454
|
tabindex: $.value && !L.rowLink(Y).to ? 0 : void 0,
|
|
26462
26455
|
ref_for: !0
|
|
26463
26456
|
}, L.rowAttrs(Y)), [
|
|
26464
|
-
(h(!0), D(Ae, null, Re(d.value, (se, be) => (h(), D("td",
|
|
26457
|
+
(h(!0), D(Ae, null, Re(d.value, (se, be) => (h(), D("td", Ue({
|
|
26465
26458
|
key: `${$e.value.get(Y)}-cell-${se.key}`,
|
|
26466
26459
|
class: {
|
|
26467
|
-
"resize-hover": L.resizeColumns && !L.nested && ye.value === se.key && be !== d.value.length - 1 &&
|
|
26460
|
+
"resize-hover": L.resizeColumns && !L.nested && ye.value === se.key && be !== d.value.length - 1 && _e(se),
|
|
26468
26461
|
"row-link": !!L.rowLink(Y).to,
|
|
26469
26462
|
"sticky-column": (se.key === I(je).BULK_ACTIONS || se.key === I(je).EXPANDABLE) && z.value,
|
|
26470
26463
|
"second-sticky-column": se.key === I(je).BULK_ACTIONS && H.value,
|
|
@@ -26473,11 +26466,11 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26473
26466
|
style: Ze.value[se.key],
|
|
26474
26467
|
ref_for: !0
|
|
26475
26468
|
}, L.cellAttrs({ headerKey: se.key, row: Y, rowIndex: te, colIndex: be }), cl(Ne.value(Y[se.key], Y), !0)), [
|
|
26476
|
-
se.key !== I(je).EXPANDABLE ? (h(), X(ze(Fe(Y, se.key)),
|
|
26469
|
+
se.key !== I(je).EXPANDABLE ? (h(), X(ze(Fe(Y, se.key)), Ue({
|
|
26477
26470
|
key: 0,
|
|
26478
26471
|
class: "cell-wrapper",
|
|
26479
26472
|
ref_for: !0
|
|
26480
|
-
},
|
|
26473
|
+
}, ot(Y, se.key)), {
|
|
26481
26474
|
default: B(() => [
|
|
26482
26475
|
se.key !== I(je).BULK_ACTIONS && se.key !== I(je).ACTIONS ? Q(L.$slots, se.key, {
|
|
26483
26476
|
key: 0,
|
|
@@ -26491,7 +26484,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26491
26484
|
"kpop-attributes": { target: L.tooltipTarget },
|
|
26492
26485
|
"max-width": "200",
|
|
26493
26486
|
placement: "bottom-start",
|
|
26494
|
-
text: re(Y) ? void 0 :
|
|
26487
|
+
text: re(Y) ? void 0 : He(Y)
|
|
26495
26488
|
}, {
|
|
26496
26489
|
default: B(() => [
|
|
26497
26490
|
Z(Ro, {
|
|
@@ -26517,7 +26510,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26517
26510
|
}, void 0, !0)
|
|
26518
26511
|
]),
|
|
26519
26512
|
default: B(() => [
|
|
26520
|
-
Z(
|
|
26513
|
+
Z(it, {
|
|
26521
26514
|
appearance: "tertiary",
|
|
26522
26515
|
"aria-label": se.label,
|
|
26523
26516
|
class: "actions-dropdown-trigger",
|
|
@@ -26545,7 +26538,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26545
26538
|
"aria-controls": `table-${I(l)}-row-${te}-expandable-content`,
|
|
26546
26539
|
"aria-expanded": ae.value.includes(te),
|
|
26547
26540
|
"aria-label": "Toggle row expandable content",
|
|
26548
|
-
class:
|
|
26541
|
+
class: ue(["expandable-row-control", { expanded: ae.value.includes(te) }]),
|
|
26549
26542
|
"data-testid": "expandable-row-control",
|
|
26550
26543
|
type: "button",
|
|
26551
26544
|
onClick: (ke) => pe(te, Y)
|
|
@@ -26558,7 +26551,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26558
26551
|
])) : G("", !0),
|
|
26559
26552
|
Me(se.key) ? (h(), D("div", {
|
|
26560
26553
|
key: 2,
|
|
26561
|
-
class:
|
|
26554
|
+
class: ue(["scroll-overlay row-overlay left", {
|
|
26562
26555
|
"overlay-visible": z.value
|
|
26563
26556
|
}])
|
|
26564
26557
|
}, null, 2)) : G("", !0)
|
|
@@ -26575,8 +26568,8 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26575
26568
|
}, [
|
|
26576
26569
|
K("div", GB, [
|
|
26577
26570
|
Q(L.$slots, "row-expanded", {
|
|
26578
|
-
columnWidths:
|
|
26579
|
-
nestedHeaders:
|
|
26571
|
+
columnWidths: We.value,
|
|
26572
|
+
nestedHeaders: qe.value,
|
|
26580
26573
|
row: xe(Y)
|
|
26581
26574
|
}, void 0, !0)
|
|
26582
26575
|
])
|
|
@@ -26590,17 +26583,17 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26590
26583
|
], 36),
|
|
26591
26584
|
!J.value && !H.value ? (h(), D("div", {
|
|
26592
26585
|
key: 0,
|
|
26593
|
-
class:
|
|
26586
|
+
class: ue(["scroll-overlay table-overlay left", {
|
|
26594
26587
|
"overlay-visible": z.value
|
|
26595
26588
|
}])
|
|
26596
26589
|
}, null, 2)) : G("", !0),
|
|
26597
26590
|
K("div", {
|
|
26598
|
-
class:
|
|
26591
|
+
class: ue(["scroll-overlay table-overlay right", {
|
|
26599
26592
|
"overlay-visible": q.value,
|
|
26600
26593
|
"scrollbar-offset": N.value
|
|
26601
26594
|
}])
|
|
26602
26595
|
}, null, 2),
|
|
26603
|
-
mt.value ? (h(), X(wl,
|
|
26596
|
+
mt.value ? (h(), X(wl, Ue({
|
|
26604
26597
|
key: 1,
|
|
26605
26598
|
class: "table-pagination",
|
|
26606
26599
|
"data-testid": "table-pagination"
|
|
@@ -26671,7 +26664,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26671
26664
|
initialPageSize: b.value,
|
|
26672
26665
|
currentPage: m.value,
|
|
26673
26666
|
offsetPreviousButtonDisabled: !ve.value,
|
|
26674
|
-
offsetNextButtonDisabled: !
|
|
26667
|
+
offsetNextButtonDisabled: !de.value || !T.value
|
|
26675
26668
|
}));
|
|
26676
26669
|
function q(re) {
|
|
26677
26670
|
return re.startsWith("column-");
|
|
@@ -26679,7 +26672,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26679
26672
|
function M(re) {
|
|
26680
26673
|
return re.startsWith("tooltip-");
|
|
26681
26674
|
}
|
|
26682
|
-
const E = y(() => r ? Object.keys(r).filter(q) : []), $ = y(() => r ? Object.keys(r).filter(M) : []), x = y(() => r ? Object.keys(r).filter((re) => d.value.some((
|
|
26675
|
+
const E = y(() => r ? Object.keys(r).filter(q) : []), $ = y(() => r ? Object.keys(r).filter(M) : []), x = y(() => r ? Object.keys(r).filter((re) => d.value.some((He) => He.key === re)) : []), R = y(() => ({
|
|
26683
26676
|
sortColumnKey: w.value,
|
|
26684
26677
|
sortColumnOrder: k.value
|
|
26685
26678
|
})), F = y(() => ({
|
|
@@ -26695,13 +26688,13 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26695
26688
|
const re = await n.fetcher(U.value);
|
|
26696
26689
|
return W.value = !1, re;
|
|
26697
26690
|
}, V = () => {
|
|
26698
|
-
var
|
|
26691
|
+
var He;
|
|
26699
26692
|
const re = {
|
|
26700
26693
|
..._,
|
|
26701
26694
|
...n.initialFetcherParams
|
|
26702
26695
|
};
|
|
26703
|
-
m.value = re.page ?? _.page, b.value = re.pageSize ?? _.pageSize, p.value = re.query ?? _.query, w.value = re.sortColumnKey ?? _.sortColumnKey, k.value = re.sortColumnOrder ?? _.sortColumnOrder, n.clientSort && w.value && k.value && s(w.value, "", k.value, f.value), (
|
|
26704
|
-
}, ve = y(() => C.value[m.value - 1]),
|
|
26696
|
+
m.value = re.page ?? _.page, b.value = re.pageSize ?? _.pageSize, p.value = re.query ?? _.query, w.value = re.sortColumnKey ?? _.sortColumnKey, k.value = re.sortColumnOrder ?? _.sortColumnOrder, n.clientSort && w.value && k.value && s(w.value, "", k.value, f.value), (He = n.paginationAttributes) != null && He.offset && (S.value = re.offset, C.value.push(re.offset)), N.value = !0;
|
|
26697
|
+
}, ve = y(() => C.value[m.value - 1]), de = P(null), $e = y(() => {
|
|
26705
26698
|
if (!n.fetcher || !N.value)
|
|
26706
26699
|
return "";
|
|
26707
26700
|
let re = c;
|
|
@@ -26719,68 +26712,68 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26719
26712
|
() => $e.value,
|
|
26720
26713
|
() => J(),
|
|
26721
26714
|
{ revalidateOnFocus: !1, revalidateDebounce: 0 }
|
|
26722
|
-
), { state: Ze, hasData: oe } = u(Pe, Ge, et),
|
|
26715
|
+
), { state: Ze, hasData: oe } = u(Pe, Ge, et), Ye = y(() => ({
|
|
26723
26716
|
hasData: oe.value,
|
|
26724
26717
|
state: Ze.value
|
|
26725
|
-
})), ee = y(() => Qe.value ? "loading" : Ge.value ? "error" : "success"), { debouncedFn: ye } = i(at, 500), De = ({ sortColumnKey: re, prevKey:
|
|
26718
|
+
})), ee = y(() => Qe.value ? "loading" : Ge.value ? "error" : "success"), { debouncedFn: ye } = i(at, 500), De = ({ sortColumnKey: re, prevKey: He, sortColumnOrder: Fe }) => {
|
|
26726
26719
|
var Nt;
|
|
26727
|
-
const
|
|
26720
|
+
const ot = d.value.find((Lt) => Lt.key === re), { useSortHandlerFunction: nt } = ot;
|
|
26728
26721
|
o("sort", {
|
|
26729
|
-
prevKey:
|
|
26722
|
+
prevKey: He,
|
|
26730
26723
|
sortColumnKey: re,
|
|
26731
26724
|
sortColumnOrder: Fe
|
|
26732
26725
|
}), m.value = 1, (!w.value || re !== w.value) && (C.value = [null]), w.value = re, k.value = Fe, n.clientSort ? nt && n.sortHandlerFunction ? n.sortHandlerFunction({
|
|
26733
26726
|
key: re,
|
|
26734
|
-
prevKey:
|
|
26727
|
+
prevKey: He,
|
|
26735
26728
|
sortColumnOrder: k.value,
|
|
26736
26729
|
data: f.value
|
|
26737
|
-
}) : s(re,
|
|
26730
|
+
}) : s(re, He, k.value, f.value) : (Nt = n.paginationAttributes) != null && Nt.offset || ye();
|
|
26738
26731
|
}, ne = ({ page: re }) => {
|
|
26739
26732
|
m.value = re;
|
|
26740
26733
|
}, we = ({ pageSize: re }) => {
|
|
26741
26734
|
C.value = [null], S.value = null, b.value = re, m.value = 1;
|
|
26742
|
-
}, Me = ({ columnWidths: re, columnVisibility:
|
|
26743
|
-
Te.value = re,
|
|
26744
|
-
}, Te = P({}),
|
|
26735
|
+
}, Me = ({ columnWidths: re, columnVisibility: He }) => {
|
|
26736
|
+
Te.value = re, _e.value = He, mt();
|
|
26737
|
+
}, Te = P({}), _e = P({}), wt = y(() => ({
|
|
26745
26738
|
pageSize: b.value,
|
|
26746
26739
|
sortColumnKey: w.value,
|
|
26747
26740
|
sortColumnOrder: k.value,
|
|
26748
26741
|
...Te.value ? { columnWidths: Te.value } : {},
|
|
26749
|
-
...
|
|
26742
|
+
..._e.value ? { columnVisibility: _e.value } : {}
|
|
26750
26743
|
})), mt = () => {
|
|
26751
26744
|
ee.value === "success" && o("update:table-preferences", wt.value);
|
|
26752
26745
|
}, Xe = () => {
|
|
26753
|
-
m.value++, S.value =
|
|
26746
|
+
m.value++, S.value = de.value;
|
|
26754
26747
|
}, $t = () => {
|
|
26755
26748
|
m.value--, S.value = ve.value;
|
|
26756
26749
|
}, Ot = y(() => {
|
|
26757
|
-
var
|
|
26750
|
+
var He, Fe, ot;
|
|
26758
26751
|
if (!n.fetcher || n.hidePagination)
|
|
26759
26752
|
return !1;
|
|
26760
|
-
const re = ((Fe = (
|
|
26761
|
-
return n.hidePaginationWhenOptional && m.value === 1 ? (
|
|
26753
|
+
const re = ((Fe = (He = n.paginationAttributes) == null ? void 0 : He.pageSizes) == null ? void 0 : Fe[0]) ?? Tg;
|
|
26754
|
+
return n.hidePaginationWhenOptional && m.value === 1 ? (ot = n.paginationAttributes) != null && ot.offset ? !!ve.value || !!de.value || f.value.length >= re : g.value > re : !0;
|
|
26762
26755
|
});
|
|
26763
26756
|
return fe(Ne, (re) => {
|
|
26764
|
-
var
|
|
26765
|
-
re != null && re.data && (f.value = re.data, g.value = ((
|
|
26766
|
-
}, { deep: !0, immediate: !0 }), fe([
|
|
26767
|
-
const [
|
|
26757
|
+
var He, Fe, ot, nt;
|
|
26758
|
+
re != null && re.data && (f.value = re.data, g.value = ((He = n.paginationAttributes) == null ? void 0 : He.totalCount) || re.total || ((Fe = re.data) == null ? void 0 : Fe.length) || 0, (ot = n.paginationAttributes) != null && ot.offset && ((nt = re.pagination) != null && nt.offset ? (de.value = re.pagination.offset, C.value[m.value] || C.value.push(re.pagination.offset)) : de.value = null, T.value = re.pagination && "hasNextPage" in re.pagination ? re.pagination.hasNextPage : !0), f.value.length === 0 && m.value > 1 && (m.value = 1, C.value = [null], S.value = null));
|
|
26759
|
+
}, { deep: !0, immediate: !0 }), fe([Ye, ee], (re) => {
|
|
26760
|
+
const [He, Fe] = re;
|
|
26768
26761
|
o("state", {
|
|
26769
26762
|
state: Fe,
|
|
26770
|
-
hasData:
|
|
26763
|
+
hasData: He.hasData
|
|
26771
26764
|
});
|
|
26772
26765
|
}), fe(() => n.searchInput, (re) => {
|
|
26773
26766
|
re === "" ? xe(re) : he(re);
|
|
26774
|
-
}, { immediate: !0 }), fe([p, b], async (re,
|
|
26775
|
-
const [Fe] =
|
|
26776
|
-
|
|
26767
|
+
}, { immediate: !0 }), fe([p, b], async (re, He) => {
|
|
26768
|
+
const [Fe] = He, [ot] = re;
|
|
26769
|
+
ot !== Fe && m.value !== 1 && (m.value = 1, C.value = [null], S.value = null);
|
|
26777
26770
|
}, { deep: !0, immediate: !0 }), st(() => {
|
|
26778
26771
|
V();
|
|
26779
26772
|
}), t({
|
|
26780
26773
|
revalidate: () => {
|
|
26781
26774
|
at();
|
|
26782
26775
|
}
|
|
26783
|
-
}), (re,
|
|
26776
|
+
}), (re, He) => (h(), X(Wg, {
|
|
26784
26777
|
"cell-attrs": re.cellAttrs,
|
|
26785
26778
|
class: "k-table-data",
|
|
26786
26779
|
data: f.value,
|
|
@@ -26813,22 +26806,22 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26813
26806
|
"row-key": re.rowKey,
|
|
26814
26807
|
"row-link": re.rowLink,
|
|
26815
26808
|
"table-preferences": re.tablePreferences,
|
|
26816
|
-
onEmptyStateActionClick:
|
|
26817
|
-
onErrorActionClick:
|
|
26809
|
+
onEmptyStateActionClick: He[0] || (He[0] = (Fe) => o("empty-state-action-click")),
|
|
26810
|
+
onErrorActionClick: He[1] || (He[1] = (Fe) => o("error-action-click")),
|
|
26818
26811
|
onGetNextOffset: Xe,
|
|
26819
26812
|
onGetPreviousOffset: $t,
|
|
26820
26813
|
onPageChange: ne,
|
|
26821
26814
|
onPageSizeChange: we,
|
|
26822
|
-
onRowActionsToggle:
|
|
26823
|
-
onRowSelect:
|
|
26815
|
+
onRowActionsToggle: He[2] || (He[2] = (Fe) => re.$emit("row-actions-toggle", Fe)),
|
|
26816
|
+
onRowSelect: He[3] || (He[3] = (Fe) => o("row-select", Fe)),
|
|
26824
26817
|
onSort: De,
|
|
26825
|
-
"onUpdate:rowExpanded":
|
|
26818
|
+
"onUpdate:rowExpanded": He[4] || (He[4] = (Fe) => o("update:row-expanded", Fe)),
|
|
26826
26819
|
"onUpdate:tablePreferences": Me
|
|
26827
26820
|
}, yt({ _: 2 }, [
|
|
26828
26821
|
re.$slots.toolbar && !re.hideToolbar ? {
|
|
26829
26822
|
name: "toolbar",
|
|
26830
26823
|
fn: B(() => [
|
|
26831
|
-
Q(re.$slots, "toolbar", { state:
|
|
26824
|
+
Q(re.$slots, "toolbar", { state: Ye.value })
|
|
26832
26825
|
]),
|
|
26833
26826
|
key: "0"
|
|
26834
26827
|
} : void 0,
|
|
@@ -26869,21 +26862,21 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26869
26862
|
} : void 0,
|
|
26870
26863
|
Re(E.value, (Fe) => ({
|
|
26871
26864
|
name: Fe,
|
|
26872
|
-
fn: B(({ column:
|
|
26873
|
-
Q(re.$slots, Fe, { column:
|
|
26865
|
+
fn: B(({ column: ot }) => [
|
|
26866
|
+
Q(re.$slots, Fe, { column: ot })
|
|
26874
26867
|
])
|
|
26875
26868
|
})),
|
|
26876
26869
|
Re($.value, (Fe) => ({
|
|
26877
26870
|
name: Fe,
|
|
26878
|
-
fn: B(({ column:
|
|
26879
|
-
Q(re.$slots, Fe, { column:
|
|
26871
|
+
fn: B(({ column: ot }) => [
|
|
26872
|
+
Q(re.$slots, Fe, { column: ot })
|
|
26880
26873
|
])
|
|
26881
26874
|
})),
|
|
26882
26875
|
Re(x.value, (Fe) => ({
|
|
26883
26876
|
name: Fe,
|
|
26884
|
-
fn: B(({ row:
|
|
26877
|
+
fn: B(({ row: ot, rowKey: nt, rowValue: Nt }) => [
|
|
26885
26878
|
Q(re.$slots, Fe, {
|
|
26886
|
-
row:
|
|
26879
|
+
row: ot,
|
|
26887
26880
|
rowKey: nt,
|
|
26888
26881
|
rowValue: Nt
|
|
26889
26882
|
})
|
|
@@ -26898,10 +26891,10 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26898
26891
|
} : void 0,
|
|
26899
26892
|
re.$slots["row-expanded"] ? {
|
|
26900
26893
|
name: "row-expanded",
|
|
26901
|
-
fn: B(({ columnWidths: Fe, nestedHeaders:
|
|
26894
|
+
fn: B(({ columnWidths: Fe, nestedHeaders: ot, row: nt }) => [
|
|
26902
26895
|
Q(re.$slots, "row-expanded", {
|
|
26903
26896
|
columnWidths: Fe,
|
|
26904
|
-
nestedHeaders:
|
|
26897
|
+
nestedHeaders: ot,
|
|
26905
26898
|
row: nt
|
|
26906
26899
|
})
|
|
26907
26900
|
]),
|
|
@@ -26914,7 +26907,7 @@ const pB = ["href"], hB = /* @__PURE__ */ le({
|
|
|
26914
26907
|
KAlert: y1,
|
|
26915
26908
|
KBadge: Vr,
|
|
26916
26909
|
KBreadcrumbs: Hy,
|
|
26917
|
-
KButton:
|
|
26910
|
+
KButton: it,
|
|
26918
26911
|
KCard: vp,
|
|
26919
26912
|
KCatalog: Jb,
|
|
26920
26913
|
KCatalogItem: pp,
|
|
@@ -26978,7 +26971,7 @@ export {
|
|
|
26978
26971
|
y1 as KAlert,
|
|
26979
26972
|
Vr as KBadge,
|
|
26980
26973
|
Hy as KBreadcrumbs,
|
|
26981
|
-
|
|
26974
|
+
it as KButton,
|
|
26982
26975
|
vp as KCard,
|
|
26983
26976
|
Jb as KCatalog,
|
|
26984
26977
|
pp as KCatalogItem,
|