@kong/kongponents 9.31.3 → 9.31.4

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.
@@ -1,7 +1,7 @@
1
1
  var Wg = Object.defineProperty;
2
2
  var Ug = (e, t, a) => t in e ? Wg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
3
3
  var Ya = (e, t, a) => Ug(e, typeof t != "symbol" ? t + "" : t, a);
4
- import { defineComponent as se, renderSlot as Z, reactive as Dr, ref as N, computed as m, createBlock as J, openBlock as h, resolveDynamicComponent as Ye, normalizeStyle as Me, withCtx as B, createElementBlock as D, normalizeClass as de, createCommentVNode as Q, createElementVNode as K, unref as x, toDisplayString as ie, withKeys as ft, withModifiers as Ve, shallowRef as Lv, watch as fe, getCurrentScope as Bv, onScopeDispose as Rv, shallowReadonly as Un, useSlots as xt, useAttrs as Vt, onMounted as st, mergeProps as ze, toHandlers as cs, getCurrentInstance as Fv, onUnmounted as Kt, isReadonly as Vg, toRefs as zv, watchEffect as Wl, Teleport as Kg, toValue as ln, useId as $t, onBeforeUnmount as fs, createVNode as X, createTextVNode as me, Transition as ia, withDirectives as dn, vShow as pr, useCssVars as Ft, nextTick as gt, Fragment as Ee, renderList as Be, createSlots as yt, isVNode as Yv, useTemplateRef as At, normalizeProps as sr, inject as fi, toRef as ho, provide as vi, guardReactiveProps as bl, isRef as Xn, resolveComponent as _t, resolveDirective as jg, Comment as Gg, cloneVNode as Qg, onBeforeMount as Zg, TransitionGroup as Xg, render as Wu, h as Uu, warn as Jg } from "vue";
4
+ import { defineComponent as se, renderSlot as Z, reactive as Dr, ref as N, computed as m, createBlock as J, openBlock as h, resolveDynamicComponent as Ye, normalizeStyle as Me, withCtx as B, createElementBlock as D, normalizeClass as de, createCommentVNode as Q, createElementVNode as K, unref as x, toDisplayString as ie, withKeys as ft, withModifiers as Ve, shallowRef as Lv, watch as fe, getCurrentScope as Bv, onScopeDispose as Rv, shallowReadonly as Un, useSlots as Dt, useAttrs as Vt, onMounted as st, mergeProps as ze, toHandlers as cs, getCurrentInstance as Fv, onUnmounted as Kt, isReadonly as Vg, toRefs as zv, watchEffect as Wl, Teleport as Kg, toValue as ln, useId as $t, onBeforeUnmount as fs, createVNode as X, createTextVNode as me, Transition as ia, withDirectives as dn, vShow as pr, useCssVars as Ft, nextTick as gt, Fragment as Ee, renderList as Be, createSlots as yt, isVNode as Yv, useTemplateRef as At, normalizeProps as sr, inject as fi, toRef as ho, provide as vi, guardReactiveProps as bl, isRef as Xn, resolveComponent as _t, resolveDirective as jg, Comment as Gg, cloneVNode as Qg, onBeforeMount as Zg, TransitionGroup as Xg, render as Wu, h as Uu, warn as Jg } from "vue";
5
5
  async function _v(e) {
6
6
  var n, r;
7
7
  if (navigator.clipboard)
@@ -4732,7 +4732,7 @@ const tb = {
4732
4732
  fe(() => e.icon, (o) => {
4733
4733
  typeof o == "string" && console.warn("KButton: `icon` prop usage has changed. Please refer to the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#kbutton");
4734
4734
  }, { immediate: !0 });
4735
- const t = xt(), a = Vt(), n = m(() => e.to && typeof e.to == "string" ? "a" : e.to ? "router-link" : "button"), r = m(() => Object.values(tm).indexOf(e.appearance) === -1 ? ["primary", e.appearance] : e.appearance), i = m(() => e.appearance === "none" && !e.icon ? null : e.size), s = m(() => {
4735
+ const t = Dt(), a = Vt(), n = m(() => e.to && typeof e.to == "string" ? "a" : e.to ? "router-link" : "button"), r = m(() => Object.values(tm).indexOf(e.appearance) === -1 ? ["primary", e.appearance] : e.appearance), i = m(() => e.appearance === "none" && !e.icon ? null : e.size), s = m(() => {
4736
4736
  const o = Object.assign({}, a);
4737
4737
  return e.to && (typeof e.to == "string" ? o.href = e.to : o.to = e.to, e.disabled && (o.href = null)), e.disabled !== void 0 && e.disabled !== !1 || delete o.disabled, o;
4738
4738
  }), u = (o) => {
@@ -5479,7 +5479,7 @@ const Tb = ["id", "aria-labelledby", "x-placement"], xb = ["tabindex"], Ib = {
5479
5479
  },
5480
5480
  emits: ["open", "close", "popover-click"],
5481
5481
  setup(e, { expose: t, emit: a }) {
5482
- const n = a, r = xt(), { getSizeFromString: i } = It(), s = $t(), u = $t(), l = N(null), o = N(null), f = N(null), d = N(!1), c = m(() => {
5482
+ const n = a, r = Dt(), { getSizeFromString: i } = It(), s = $t(), u = $t(), l = N(null), o = N(null), f = N(null), d = N(!1), c = m(() => {
5483
5483
  var T, F;
5484
5484
  return o.value && ((T = o.value) != null && T.children[0]) ? (F = o.value) == null ? void 0 : F.children[0] : null;
5485
5485
  }), v = N(null), y = () => {
@@ -5653,7 +5653,7 @@ const Tb = ["id", "aria-labelledby", "x-placement"], xb = ["tabindex"], Ib = {
5653
5653
  disabled: { type: Boolean }
5654
5654
  },
5655
5655
  setup(e) {
5656
- const t = xt(), a = m(() => !e.disabled && (!!e.text || !!e.label || !!t.content)), n = $t();
5656
+ const t = Dt(), a = m(() => !e.disabled && (!!e.text || !!e.label || !!t.content)), n = $t();
5657
5657
  return (r, i) => a.value ? (h(), J(Tr, ze({
5658
5658
  key: 0,
5659
5659
  "hide-caret": "",
@@ -5812,7 +5812,7 @@ const Tb = ["id", "aria-labelledby", "x-placement"], xb = ["tabindex"], Ib = {
5812
5812
  titleTag: { default: "div" }
5813
5813
  },
5814
5814
  setup(e) {
5815
- const t = xt(), a = m(() => !!(t.title || e.title || t.actions));
5815
+ const t = Dt(), a = m(() => !!(t.title || e.title || t.actions));
5816
5816
  return (n, r) => (h(), D("div", zb, [
5817
5817
  a.value ? (h(), D("div", Yb, [
5818
5818
  t.title || n.title ? (h(), J(Ye(n.titleTag), {
@@ -6800,7 +6800,7 @@ const Ay = {
6800
6800
  },
6801
6801
  emits: ["card-click", "error-action-click", "empty-state-action-click", "update:catalog-preferences", "state"],
6802
6802
  setup(e, { emit: t }) {
6803
- const { useRequest: a, useDebounce: n, useSwrvState: r } = It(), i = t, s = xt(), u = $t(), l = () => {
6803
+ const { useRequest: a, useDebounce: n, useSwrvState: r } = It(), i = t, s = Dt(), u = $t(), l = () => {
6804
6804
  var _e;
6805
6805
  const oe = (_e = e.paginationPageSizes) == null ? void 0 : _e[0];
6806
6806
  return oe || Ld;
@@ -7025,7 +7025,7 @@ const Ay = {
7025
7025
  fe(() => e.help, (r) => {
7026
7026
  r && console.warn("KLabel: `help` prop is deprecated. Please use `info` prop instead. See the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#klabel");
7027
7027
  }, { immediate: !0 });
7028
- const t = xt(), a = m(() => !!(e.help || e.info || t.tooltip)), n = $t();
7028
+ const t = Dt(), a = m(() => !!(e.help || e.info || t.tooltip)), n = $t();
7029
7029
  return (r, i) => (h(), D("label", {
7030
7030
  class: de(["k-label", { required: r.required }])
7031
7031
  }, [
@@ -7066,7 +7066,7 @@ const Ay = {
7066
7066
  },
7067
7067
  emits: ["change", "input", "update:modelValue"],
7068
7068
  setup(e, { emit: t }) {
7069
- const a = t, n = xt(), r = Vt(), i = $t(), s = m(() => r.id ? String(r.id) : i), u = m(() => !!(e.label || n.default)), l = m(() => (r == null ? void 0 : r.disabled) !== void 0 && String(r == null ? void 0 : r.disabled) !== "false"), o = m(() => u.value && (!!e.description || !!n.description)), f = m(() => !!n.tooltip), d = m(() => {
7069
+ const a = t, n = Dt(), r = Vt(), i = $t(), s = m(() => r.id ? String(r.id) : i), u = m(() => !!(e.label || n.default)), l = m(() => (r == null ? void 0 : r.disabled) !== void 0 && String(r == null ? void 0 : r.disabled) !== "false"), o = m(() => u.value && (!!e.description || !!n.description)), f = m(() => !!n.tooltip), d = m(() => {
7070
7070
  const b = { ...r };
7071
7071
  return delete b.class, b.checked = e.modelValue, b.indeterminate !== void 0 && String(b.indeterminate) !== "false" && !e.modelValue ? (delete b.checked, b.indeterminate = !0) : delete b.indeterminate, b;
7072
7072
  }), c = m(() => ({
@@ -7590,7 +7590,7 @@ const W0 = ["id", "aria-describedby", "aria-invalid", "type", "value"], U0 = ["a
7590
7590
  }, { immediate: !0 }), fe(() => e.labelAttributes.help, (S) => {
7591
7591
  S && console.warn("KInput: `help` property of `labelAttributes` prop is deprecated. Please use `info` prop instead. See the migration guide for more details: https://kongponents.konghq.com/guide/migrating-to-version-9.html#klabel");
7592
7592
  });
7593
- const a = t, n = N(""), r = N(!1), i = N(0), { stripRequiredLabel: s } = It(), u = xt(), l = Vt(), o = m(() => (l == null ? void 0 : l.required) !== void 0 && String(l == null ? void 0 : l.required) !== "false"), f = $t(), d = m(() => l.id ? String(l.id) : f), c = $t(), v = m(() => s(e.label, o.value)), y = m(() => {
7593
+ const a = t, n = N(""), r = N(!1), i = N(0), { stripRequiredLabel: s } = It(), u = Dt(), l = Vt(), o = m(() => (l == null ? void 0 : l.required) !== void 0 && String(l == null ? void 0 : l.required) !== "false"), f = $t(), d = m(() => l.id ? String(l.id) : f), c = $t(), v = m(() => s(e.label, o.value)), y = m(() => {
7594
7594
  var S;
7595
7595
  return !!((S = e.labelAttributes) != null && S.info || u["label-tooltip"]);
7596
7596
  }), b = m({
@@ -7940,7 +7940,7 @@ const uw = ["id"], dw = {
7940
7940
  "KCodeBlock: `highlightedLineNumbers` prop should be either a properly formatted string (e.g. '1,3-5,7'), an array of numbers or tuples of numbers."
7941
7941
  );
7942
7942
  }, { immediate: !0 });
7943
- const i = t, s = xt(), u = N(e.query), l = N(!1), o = N(e.initialRegExpMode), f = N(e.initialFilterMode), d = N(null), c = N(e.query), v = N(0), y = N([]), b = N(null), g = At("codeBlock"), p = At("codeBlockContent"), k = At("codeBlockLineNumbers"), w = N(!1), C = N(!1), $ = m(() => new Set(y.value)), E = m(() => {
7943
+ const i = t, s = Dt(), u = N(e.query), l = N(!1), o = N(e.initialRegExpMode), f = N(e.initialFilterMode), d = N(null), c = N(e.query), v = N(0), y = N([]), b = N(null), g = At("codeBlock"), p = At("codeBlockContent"), k = At("codeBlockLineNumbers"), w = N(!1), C = N(!1), $ = m(() => new Set(y.value)), E = m(() => {
7944
7944
  var te;
7945
7945
  return Array.from({ length: (te = e.code) == null ? void 0 : te.split(`
7946
7946
  `).length }, (be, q) => q + 1);
@@ -8374,7 +8374,7 @@ const uw = ["id"], dw = {
8374
8374
  },
8375
8375
  emits: ["toggle", "update:modelValue"],
8376
8376
  setup(e, { emit: t }) {
8377
- const a = t, n = xt(), r = $t(), i = N(!0), s = N(!1), u = m(() => e.triggerAlignment === "trailing"), l = m(() => !!n["visible-content"]), o = m({
8377
+ const a = t, n = Dt(), r = $t(), i = N(!0), s = N(!1), u = m(() => e.triggerAlignment === "trailing"), l = m(() => !!n["visible-content"]), o = m({
8378
8378
  get() {
8379
8379
  return e.modelValue;
8380
8380
  },
@@ -16429,14 +16429,14 @@ function X4(e, { slots: t, emit: a }) {
16429
16429
  force: pe
16430
16430
  }), Qt = [];
16431
16431
  for (let Sa = 0; Sa < M.value; Sa++) {
16432
- const bn = ve(kt, Sa), Dt = Sa + 1, L = Math.ceil(Dt / e.columns), P = e.rows - L + 1, Y = Dt % e.columns || e.columns, ae = e.columns - Y + 1, le = Xe(Y, ae);
16432
+ const bn = ve(kt, Sa), Tt = Sa + 1, L = Math.ceil(Tt / e.columns), P = e.rows - L + 1, Y = Tt % e.columns || e.columns, ae = e.columns - Y + 1, le = Xe(Y, ae);
16433
16433
  Qt.push(
16434
16434
  p.value.getPage({
16435
16435
  ...bn,
16436
16436
  view: o.value,
16437
16437
  titlePosition: e.titlePosition,
16438
16438
  trimWeeks: e.trimWeeks,
16439
- position: Dt,
16439
+ position: Tt,
16440
16440
  row: L,
16441
16441
  rowFromEnd: P,
16442
16442
  column: Y,
@@ -17986,24 +17986,24 @@ function dP(e, { emit: t, slots: a }) {
17986
17986
  moveToValue: Sa = !1
17987
17987
  } = {}) {
17988
17988
  const bn = he(G);
17989
- let Dt = tt(
17989
+ let Tt = tt(
17990
17990
  I,
17991
17991
  bn,
17992
17992
  ne,
17993
17993
  Qt
17994
17994
  );
17995
- if (Ge(Dt)) {
17995
+ if (Ge(Tt)) {
17996
17996
  if (kt)
17997
17997
  return null;
17998
- Dt = o.value, We = !1;
17999
- } else Dt == null && e.isRequired ? Dt = o.value : (
17998
+ Tt = o.value, We = !1;
17999
+ } else Tt == null && e.isRequired ? Tt = o.value : (
18000
18000
  // Clear value if same value was passed
18001
- Dt != null && Pe(o.value, Dt) && pe && (Dt = null)
18001
+ Tt != null && Pe(o.value, Tt) && pe && (Tt = null)
18002
18002
  );
18003
- const P = kt ? f : o, Y = !Pe(P.value, Dt);
18004
- P.value = Dt, kt || (f.value = null);
18003
+ const P = kt ? f : o, Y = !Pe(P.value, Tt);
18004
+ P.value = Tt, kt || (f.value = null);
18005
18005
  const ae = Xe(
18006
- Dt,
18006
+ Tt,
18007
18007
  _.value
18008
18008
  );
18009
18009
  return Y && (g = !1, t(kt ? "drag" : "update:modelValue", ae), gt(() => g = !0)), We && !kt && He(), qe && oe(), Sa && gt(() => Lt(Qt ?? "start")), ae;
@@ -18934,7 +18934,7 @@ const MP = /* @__PURE__ */ mn(EP, [["render", AP]]), OP = { class: "k-segmented-
18934
18934
  },
18935
18935
  emits: ["file-added", "file-removed", "error"],
18936
18936
  setup(e, { emit: t }) {
18937
- const a = t, n = xt(), r = Vt(), { stripRequiredLabel: i } = It(), s = $t(), u = m(() => r.id ? String(r.id) : s), l = m(() => {
18937
+ const a = t, n = Dt(), r = Vt(), { stripRequiredLabel: i } = It(), s = $t(), u = m(() => r.id ? String(r.id) : s), l = m(() => {
18938
18938
  const z = { ...r };
18939
18939
  return delete z.id, z;
18940
18940
  }), o = N(null), f = N(null), d = m(() => {
@@ -19912,7 +19912,7 @@ const N9 = {
19912
19912
  "32a98737": o.value,
19913
19913
  "6973461e": f.value
19914
19914
  }));
19915
- const { getSizeFromString: a } = It(), n = t, r = xt(), i = Vt(), s = Db(), u = N(null), l = N(null), o = m(() => e.fullScreen && !r.content ? "95%" : a(e.maxWidth)), f = m(() => e.fullScreen && !r.content ? "95vh" : a(e.maxHeight)), d = m(() => {
19915
+ const { getSizeFromString: a } = It(), n = t, r = Dt(), i = Vt(), s = Db(), u = N(null), l = N(null), o = m(() => e.fullScreen && !r.content ? "95%" : a(e.maxWidth)), f = m(() => e.fullScreen && !r.content ? "95vh" : a(e.maxHeight)), d = m(() => {
19916
19916
  const w = Object.assign({}, i);
19917
19917
  return delete w.class, w;
19918
19918
  }), c = m(() => !!e.title || !!r.title || !e.hideCloseIcon), v = (w) => {
@@ -20553,7 +20553,7 @@ const Os = () => mN(), bN = { "data-testid": "multiselect-container" }, yN = ["i
20553
20553
  Ft((ce) => ({
20554
20554
  b75ec8f8: tt.value
20555
20555
  }));
20556
- const a = Vt(), n = xt(), { getSizeFromString: r, cloneDeep: i, stripRequiredLabel: s } = It(), u = 36, l = "Filter...", o = e, f = t, d = At("kMultiselectItems"), c = m(() => a.required !== void 0 && String(a.required) !== "false"), v = m(() => s(o.label, c.value)), y = m(() => {
20556
+ const a = Vt(), n = Dt(), { getSizeFromString: r, cloneDeep: i, stripRequiredLabel: s } = It(), u = 36, l = "Filter...", o = e, f = t, d = At("kMultiselectItems"), c = m(() => a.required !== void 0 && String(a.required) !== "false"), v = m(() => s(o.label, c.value)), y = m(() => {
20557
20557
  var ce, H;
20558
20558
  return !!((ce = o.labelAttributes) != null && ce.help || (H = o.labelAttributes) != null && H.info || n["label-tooltip"]);
20559
20559
  }), b = (ce) => Ce.value || De.value || ce != null && ce.disabled ? "neutral" : o.error ? "danger" : "info", g = {
@@ -21031,113 +21031,74 @@ const Os = () => mN(), bN = { "data-testid": "multiselect-container" }, yN = ["i
21031
21031
  inheritAttrs: !1,
21032
21032
  __name: "KPrompt",
21033
21033
  props: {
21034
- visible: {
21035
- type: Boolean,
21036
- default: !1
21037
- },
21038
- title: {
21039
- type: String,
21040
- default: ""
21041
- },
21042
- message: {
21043
- type: String,
21044
- default: ""
21045
- },
21046
- actionButtonText: {
21047
- type: String,
21048
- default: "Confirm"
21049
- },
21050
- actionButtonAppearance: {
21051
- type: String,
21052
- default: "primary"
21053
- },
21054
- actionButtonDisabled: {
21055
- type: Boolean,
21056
- default: !1
21057
- },
21058
- cancelButtonText: {
21059
- type: String,
21060
- default: "Cancel"
21061
- },
21062
- cancelButtonAppearance: {
21063
- type: String,
21064
- default: "tertiary"
21065
- },
21066
- cancelButtonDisabled: {
21067
- type: Boolean,
21068
- default: !1
21069
- },
21070
- confirmationText: {
21071
- type: String,
21072
- default: ""
21073
- },
21074
- confirmationPrompt: {
21075
- type: String,
21076
- default: "Type {confirmationText} to confirm your action."
21077
- },
21078
- modalAttributes: {
21079
- type: Object,
21080
- default: () => ({})
21081
- },
21082
- errorMessage: {
21083
- type: String,
21084
- default: "You must enter the text as indicated above to confirm."
21085
- }
21034
+ visible: { type: Boolean },
21035
+ title: { default: "" },
21036
+ message: { default: "" },
21037
+ actionButtonText: { default: "Confirm" },
21038
+ actionButtonAppearance: { default: "primary" },
21039
+ actionButtonDisabled: { type: Boolean },
21040
+ cancelButtonText: { default: "Cancel" },
21041
+ cancelButtonAppearance: { default: "tertiary" },
21042
+ cancelButtonDisabled: { type: Boolean },
21043
+ confirmationText: { default: "" },
21044
+ confirmationPrompt: { default: "Type {confirmationText} to confirm your action." },
21045
+ modalAttributes: { default: () => ({}) },
21046
+ errorMessage: { default: "You must enter the text as indicated above to confirm." }
21086
21047
  },
21087
- emits: ["cancel", "proceed"],
21048
+ emits: ["proceed", "cancel"],
21088
21049
  setup(e, { emit: t }) {
21089
- const a = e, n = Vt(), r = t, i = m(() => {
21090
- const d = Object.assign({}, n);
21050
+ const a = t, n = Dt(), r = Vt(), i = m(() => {
21051
+ const d = Object.assign({}, r);
21091
21052
  return delete d["tabbable-options"], delete d["max-width"], delete d["max-height"], delete d["close-on-backdrop-click"], delete d["input-autofocus"], delete d["hide-close-icon"], delete d["hide-cancel-button"], delete d["full-screen"], d;
21092
- }), s = N(""), u = N(!1), l = m(() => a.actionButtonDisabled ? !0 : a.confirmationText ? a.confirmationText !== s.value : !1), o = m(() => a.confirmationPrompt.split("{confirmationText}")), f = () => {
21093
- l.value ? u.value = !0 : r("proceed");
21053
+ }), s = N(""), u = N(!1), l = m(() => e.actionButtonDisabled ? !0 : e.confirmationText ? e.confirmationText !== s.value : !1), o = m(() => e.confirmationPrompt.split("{confirmationText}")), f = () => {
21054
+ l.value ? u.value = !0 : a("proceed");
21094
21055
  };
21095
- return fe(() => a.visible, (d) => {
21056
+ return fe(() => e.visible, (d) => {
21096
21057
  d || (s.value = "", u.value = !1);
21097
21058
  }), fe(s, (d) => {
21098
- d && d === a.confirmationText && (u.value = !1);
21099
- }), (d, c) => (h(), J($g, ze({ ...i.value, ...e.modalAttributes }, {
21100
- "action-button-appearance": e.actionButtonAppearance,
21059
+ d && d === e.confirmationText && (u.value = !1);
21060
+ }), (d, c) => (h(), J($g, ze({ ...i.value, ...d.modalAttributes }, {
21061
+ "action-button-appearance": d.actionButtonAppearance,
21101
21062
  "action-button-disabled": l.value,
21102
- "action-button-text": e.actionButtonText,
21103
- "cancel-button-appearance": e.cancelButtonAppearance,
21104
- "cancel-button-disabled": e.cancelButtonDisabled,
21105
- "cancel-button-text": e.cancelButtonText,
21063
+ "action-button-text": d.actionButtonText,
21064
+ "cancel-button-appearance": d.cancelButtonAppearance,
21065
+ "cancel-button-disabled": d.cancelButtonDisabled,
21066
+ "cancel-button-text": d.cancelButtonText,
21106
21067
  class: "k-prompt",
21107
- "input-autofocus": e.modalAttributes.inputAutofocus === void 0 ? !0 : e.modalAttributes.inputAutofocus,
21108
- title: e.title || "Confirm your action",
21109
- visible: e.visible,
21110
- onCancel: c[1] || (c[1] = (v) => d.$emit("cancel")),
21111
- onProceed: c[2] || (c[2] = (v) => d.$emit("proceed"))
21068
+ "input-autofocus": d.modalAttributes.inputAutofocus === void 0 ? !0 : d.modalAttributes.inputAutofocus,
21069
+ title: d.title || "Confirm your action",
21070
+ visible: d.visible,
21071
+ onCancel: c[1] || (c[1] = (v) => a("cancel")),
21072
+ onProceed: c[2] || (c[2] = (v) => a("proceed"))
21112
21073
  }), yt({
21113
21074
  default: B(() => [
21114
- d.$slots.default || e.message ? (h(), D("div", ON, [
21075
+ n.default || d.message ? (h(), D("div", ON, [
21115
21076
  Z(d.$slots, "default", {}, () => [
21116
- K("p", PN, ie(e.message), 1)
21077
+ K("p", PN, ie(d.message), 1)
21117
21078
  ], !0)
21118
21079
  ])) : Q("", !0),
21119
- e.confirmationText ? (h(), D("div", NN, [
21080
+ d.confirmationText ? (h(), D("div", NN, [
21120
21081
  K("p", LN, [
21121
21082
  me(ie(o.value[0]) + " ", 1),
21122
- K("span", BN, '"' + ie(e.confirmationText) + '"', 1),
21083
+ K("span", BN, '"' + ie(d.confirmationText) + '"', 1),
21123
21084
  me(" " + ie(o.value[1] ? o.value[1] : ""), 1)
21124
21085
  ]),
21125
21086
  X(pn, {
21126
21087
  modelValue: s.value,
21127
21088
  "onUpdate:modelValue": c[0] || (c[0] = (v) => s.value = v),
21128
- "aria-label": `${o.value[0]}'${e.confirmationText}'${o.value[1] ? o.value[1] : ""}`,
21089
+ "aria-label": `${o.value[0]}'${d.confirmationText}'${o.value[1] ? o.value[1] : ""}`,
21129
21090
  autocapitalize: "off",
21130
21091
  autocomplete: "off",
21131
21092
  "data-testid": "confirmation-input",
21132
21093
  error: u.value,
21133
- "error-message": e.errorMessage,
21094
+ "error-message": d.errorMessage,
21134
21095
  onKeydown: ft(Ve(f, ["prevent"]), ["enter"])
21135
21096
  }, null, 8, ["modelValue", "aria-label", "error", "error-message", "onKeydown"])
21136
21097
  ])) : Q("", !0)
21137
21098
  ]),
21138
21099
  _: 2
21139
21100
  }, [
21140
- d.$slots.title ? {
21101
+ n.title ? {
21141
21102
  name: "title",
21142
21103
  fn: B(() => [
21143
21104
  Z(d.$slots, "title", {}, void 0, !0)
@@ -21146,7 +21107,7 @@ const Os = () => mN(), bN = { "data-testid": "multiselect-container" }, yN = ["i
21146
21107
  } : void 0
21147
21108
  ]), 1040, ["action-button-appearance", "action-button-disabled", "action-button-text", "cancel-button-appearance", "cancel-button-disabled", "cancel-button-text", "input-autofocus", "title", "visible"]));
21148
21109
  }
21149
- }), FN = /* @__PURE__ */ Ae(RN, [["__scopeId", "data-v-8d8a17b7"]]), zN = ["id", "aria-checked", "checked", "disabled", "tabindex"], YN = {
21110
+ }), FN = /* @__PURE__ */ Ae(RN, [["__scopeId", "data-v-6fbede40"]]), zN = ["id", "aria-checked", "checked", "disabled", "tabindex"], YN = {
21150
21111
  key: 0,
21151
21112
  class: "radio-description"
21152
21113
  }, _N = ["for", "tabindex"], HN = {
@@ -21228,7 +21189,7 @@ const Os = () => mN(), bN = { "data-testid": "multiselect-container" }, yN = ["i
21228
21189
  },
21229
21190
  emits: ["change", "update:modelValue"],
21230
21191
  setup(e, { emit: t }) {
21231
- const a = e, n = xt(), r = Vt(), i = $t(), s = m(() => r.id ? String(r.id) : i), u = m(() => (r == null ? void 0 : r.disabled) !== void 0 && String(r == null ? void 0 : r.disabled) !== "false"), l = m(() => !!(a.label || n.default)), o = m(() => l.value && (!!a.description || !!n.description)), f = m(() => !!a.label && (!!a.description || !!n.description)), d = m(() => !!n.tooltip), c = m(() => a.selectedValue === a.modelValue), v = t, y = () => {
21192
+ const a = e, n = Dt(), r = Vt(), i = $t(), s = m(() => r.id ? String(r.id) : i), u = m(() => (r == null ? void 0 : r.disabled) !== void 0 && String(r == null ? void 0 : r.disabled) !== "false"), l = m(() => !!(a.label || n.default)), o = m(() => l.value && (!!a.description || !!n.description)), f = m(() => !!a.label && (!!a.description || !!n.description)), d = m(() => !!n.tooltip), c = m(() => a.selectedValue === a.modelValue), v = t, y = () => {
21232
21193
  v("change", a.selectedValue), v("update:modelValue", a.selectedValue);
21233
21194
  }, b = m(() => {
21234
21195
  const p = { ...r };
@@ -21498,7 +21459,7 @@ const Os = () => mN(), bN = { "data-testid": "multiselect-container" }, yN = ["i
21498
21459
  "6d76f205": T.value,
21499
21460
  cef4ca2c: U.value
21500
21461
  }));
21501
- const { getSizeFromString: a, stripRequiredLabel: n } = It(), r = t, i = Vt(), s = xt(), u = $t(), l = m(() => i.id ? String(i.id) : u), o = N(!1), f = N(), d = m(() => {
21462
+ const { getSizeFromString: a, stripRequiredLabel: n } = It(), r = t, i = Vt(), s = Dt(), u = $t(), l = m(() => i.id ? String(i.id) : u), o = N(!1), f = N(), d = m(() => {
21502
21463
  var q;
21503
21464
  return !!((q = e.labelAttributes) != null && q.info || s["label-tooltip"]);
21504
21465
  }), c = m(() => i.required !== void 0 && String(i.required) !== "false"), v = m(() => i.disabled !== void 0 && String(i.disabled) !== "false"), y = m(() => i.readonly !== void 0 && String(i.readonly) !== "false"), b = {
@@ -22368,7 +22329,7 @@ const Os = () => mN(), bN = { "data-testid": "multiselect-container" }, yN = ["i
22368
22329
  Ft((P) => ({
22369
22330
  "3b498190": oe.value
22370
22331
  }));
22371
- const { useDebounce: a, useRequest: n, useSwrvState: r, clientSideSorter: i, getSizeFromString: s } = It(), u = e, l = t, o = Vt(), f = xt(), d = $t(), c = {
22332
+ const { useDebounce: a, useRequest: n, useSwrvState: r, clientSideSorter: i, getSizeFromString: s } = It(), u = e, l = t, o = Vt(), f = Dt(), d = $t(), c = {
22372
22333
  pageSize: 15,
22373
22334
  page: 1,
22374
22335
  query: "",
@@ -22542,7 +22503,7 @@ const Os = () => mN(), bN = { "data-testid": "multiselect-container" }, yN = ["i
22542
22503
  O.value++, R.value = $e.value;
22543
22504
  }, Sa = () => {
22544
22505
  O.value--, R.value = we.value;
22545
- }, bn = m(() => !!(u.fetcher && !u.disablePagination && !(!u.paginationOffset && u.hidePaginationWhenOptional && z.value <= u.paginationPageSizes[0]) && !(u.paginationOffset && u.hidePaginationWhenOptional && !we.value && !$e.value && v.value.length < u.paginationPageSizes[0]))), Dt = (P) => P.toLowerCase().replace(/[^[a-z0-9]/gi, "-");
22506
+ }, bn = m(() => !!(u.fetcher && !u.disablePagination && !(!u.paginationOffset && u.hidePaginationWhenOptional && z.value <= u.paginationPageSizes[0]) && !(u.paginationOffset && u.hidePaginationWhenOptional && !we.value && !$e.value && v.value.length < u.paginationPageSizes[0]))), Tt = (P) => P.toLowerCase().replace(/[^[a-z0-9]/gi, "-");
22546
22507
  fe([_, b], (P) => {
22547
22508
  const Y = P[0], le = P[1].filter((ye) => Y[ye.key] !== !1);
22548
22509
  JSON.stringify(le) !== JSON.stringify(g.value) && (g.value = le, kt());
@@ -22608,7 +22569,7 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), q();
22608
22569
  name: "action",
22609
22570
  fn: B(() => [
22610
22571
  X(rt, {
22611
- "data-testid": Dt(e.errorStateActionMessage),
22572
+ "data-testid": Tt(e.errorStateActionMessage),
22612
22573
  to: e.errorStateActionRoute ? e.errorStateActionRoute : void 0,
22613
22574
  onClick: Y[1] || (Y[1] = (ae) => P.$emit("error-action-click"))
22614
22575
  }, {
@@ -22634,7 +22595,7 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), q();
22634
22595
  fn: B(() => [
22635
22596
  X(rt, {
22636
22597
  appearance: e.searchInput ? "tertiary" : "primary",
22637
- "data-testid": Dt(e.emptyStateActionMessage),
22598
+ "data-testid": Tt(e.emptyStateActionMessage),
22638
22599
  to: e.emptyStateActionRoute ? e.emptyStateActionRoute : void 0,
22639
22600
  onClick: Y[2] || (Y[2] = (ae) => P.$emit("empty-state-action-click"))
22640
22601
  }, {
@@ -22961,7 +22922,7 @@ Docs: https://kongponents.konghq.com/components/table-data.html`), q();
22961
22922
  Ft((E) => ({
22962
22923
  "2c7a153f": e.rows
22963
22924
  }));
22964
- const a = e, n = t, r = Vt(), i = xt(), { stripRequiredLabel: s } = It(), u = m(() => (r == null ? void 0 : r.required) !== void 0 && String(r == null ? void 0 : r.required) !== "false"), l = N(""), o = m(() => s(a.label, u.value)), f = m(() => {
22925
+ const a = e, n = t, r = Vt(), i = Dt(), { stripRequiredLabel: s } = It(), u = m(() => (r == null ? void 0 : r.required) !== void 0 && String(r == null ? void 0 : r.required) !== "false"), l = N(""), o = m(() => s(a.label, u.value)), f = m(() => {
22965
22926
  var E, M;
22966
22927
  return !!((E = a.labelAttributes) != null && E.help || (M = a.labelAttributes) != null && M.info || i["label-tooltip"]);
22967
22928
  }), d = m(() => a.error || a.hasError || p.value ? !0 : void 0), c = N(0), v = m({
@@ -24301,7 +24262,7 @@ Le.create = function(e, t) {
24301
24262
  return new Le(e, t);
24302
24263
  };
24303
24264
  Le.version = pL;
24304
- var Tt = [], Qr, Yl, _l = !1, vl, pl, ds, Zr;
24265
+ var xt = [], Qr, Yl, _l = !1, vl, pl, ds, Zr;
24305
24266
  function RL() {
24306
24267
  function e() {
24307
24268
  this.defaults = {
@@ -24327,7 +24288,7 @@ function RL() {
24327
24288
  this.sortable.nativeDraggable ? Ze(document, "dragover", this._handleAutoScroll) : (Ze(document, "pointermove", this._handleFallbackAutoScroll), Ze(document, "touchmove", this._handleFallbackAutoScroll), Ze(document, "mousemove", this._handleFallbackAutoScroll)), Ev(), Ao(), yL();
24328
24289
  },
24329
24290
  nulling: function() {
24330
- ds = Yl = Qr = _l = Zr = vl = pl = null, Tt.length = 0;
24291
+ ds = Yl = Qr = _l = Zr = vl = pl = null, xt.length = 0;
24331
24292
  },
24332
24293
  _handleFallbackAutoScroll: function(a) {
24333
24294
  this._handleAutoScroll(a, !0);
@@ -24355,9 +24316,9 @@ function RL() {
24355
24316
  });
24356
24317
  }
24357
24318
  function Ao() {
24358
- Tt.forEach(function(e) {
24319
+ xt.forEach(function(e) {
24359
24320
  clearInterval(e.pid);
24360
- }), Tt = [];
24321
+ }), xt = [];
24361
24322
  }
24362
24323
  function Ev() {
24363
24324
  clearInterval(Zr);
@@ -24371,13 +24332,13 @@ var hl = Og(function(e, t, a, n) {
24371
24332
  var v = c, y = Et(v), b = y.top, g = y.bottom, p = y.left, k = y.right, w = y.width, C = y.height, $ = void 0, E = void 0, M = v.scrollWidth, _ = v.scrollHeight, z = Ne(v), j = v.scrollLeft, O = v.scrollTop;
24372
24333
  v === l ? ($ = w < M && (z.overflowX === "auto" || z.overflowX === "scroll" || z.overflowX === "visible"), E = C < _ && (z.overflowY === "auto" || z.overflowY === "scroll" || z.overflowY === "visible")) : ($ = w < M && (z.overflowX === "auto" || z.overflowX === "scroll"), E = C < _ && (z.overflowY === "auto" || z.overflowY === "scroll"));
24373
24334
  var A = $ && (Math.abs(k - r) <= s && j + w < M) - (Math.abs(p - r) <= s && !!j), S = E && (Math.abs(g - i) <= s && O + C < _) - (Math.abs(b - i) <= s && !!O);
24374
- if (!Tt[d])
24335
+ if (!xt[d])
24375
24336
  for (var T = 0; T <= d; T++)
24376
- Tt[T] || (Tt[T] = {});
24377
- (Tt[d].vx != A || Tt[d].vy != S || Tt[d].el !== v) && (Tt[d].el = v, Tt[d].vx = A, Tt[d].vy = S, clearInterval(Tt[d].pid), (A != 0 || S != 0) && (o = !0, Tt[d].pid = setInterval((function() {
24337
+ xt[T] || (xt[T] = {});
24338
+ (xt[d].vx != A || xt[d].vy != S || xt[d].el !== v) && (xt[d].el = v, xt[d].vx = A, xt[d].vy = S, clearInterval(xt[d].pid), (A != 0 || S != 0) && (o = !0, xt[d].pid = setInterval((function() {
24378
24339
  n && this.layer === 0 && Le.active._onTouchMove(ds);
24379
- var F = Tt[this.layer].vy ? Tt[this.layer].vy * u : 0, R = Tt[this.layer].vx ? Tt[this.layer].vx * u : 0;
24380
- typeof f == "function" && f.call(Le.dragged.parentNode[ra], R, F, e, ds, Tt[this.layer].el) !== "continue" || Pg(Tt[this.layer].el, R, F);
24340
+ var F = xt[this.layer].vy ? xt[this.layer].vy * u : 0, R = xt[this.layer].vx ? xt[this.layer].vx * u : 0;
24341
+ typeof f == "function" && f.call(Le.dragged.parentNode[ra], R, F, e, ds, xt[this.layer].el) !== "continue" || Pg(xt[this.layer].el, R, F);
24381
24342
  }).bind({
24382
24343
  layer: d
24383
24344
  }), 24))), d++;
@@ -24763,7 +24724,7 @@ const GL = {
24763
24724
  emits: ["selected", "expanded"],
24764
24725
  setup(e, { expose: t, emit: a }) {
24765
24726
  var d;
24766
- const n = e, r = a, i = xt(), s = m(() => !n.hideIcons || !!i["item-icon"]), u = (c) => {
24727
+ const n = e, r = a, i = Dt(), s = m(() => !n.hideIcons || !!i["item-icon"]), u = (c) => {
24767
24728
  c.target && c.target.closest("a:not(.disabled), button:not([data-tree-item-trigger]), label, input, select") !== null || r("selected", n.item);
24768
24729
  }, l = N(!0), o = (c) => {
24769
24730
  l.value = c;
@@ -25601,14 +25562,14 @@ const dB = ["href"], cB = /* @__PURE__ */ se({
25601
25562
  },
25602
25563
  emits: ["cell-click", "row-click", "error-action-click", "empty-state-action-click", "update:table-preferences", "sort", "page-change", "page-size-change", "get-next-offset", "get-previous-offset", "row-select", "update:row-expanded", "row-actions-toggle"],
25603
25564
  setup(e, { emit: t }) {
25604
- var Dt;
25565
+ var Tt;
25605
25566
  Ft((L) => ({
25606
25567
  e2a96d24: x(Xe).expandable,
25607
25568
  "1f773479": we.value,
25608
25569
  "5f06ad11": E.value,
25609
25570
  "4a766736": U.value
25610
25571
  }));
25611
- const a = e, n = t, r = Vt(), i = xt(), s = $t(), { getSizeFromString: u } = It(), l = (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 = At("table-wrapper"), f = At("header-row"), d = N([]), c = N([]), v = N(""), y = N(""), b = N(""), g = m(() => d.value.filter((L) => L.hidable).length > 0), p = m(() => a.nested || !g.value || a.error ? !1 : i.toolbar ? !0 : !a.loading && !!a.data && !!a.data.length), k = m(() => a.loading || !(a.data && a.data.length)), w = m(() => d.value.filter((L) => L.hidable && !Re(L.key))), C = m(() => p.value ? a.tablePreferences.columnVisibility || {} : {}), $ = N(p.value ? a.tablePreferences.columnVisibility || {} : {}), E = N("100%"), M = N(!1), _ = N(!1), z = N(!1), j = N(!1), O = N(""), A = N("desc"), S = N(!1), T = m(() => !a.hideToolbar && !a.nested && (!!i.toolbar || p.value || ve.value)), F = N(!1), R = m(() => ({
25572
+ const a = e, n = t, r = Vt(), i = Dt(), s = $t(), { getSizeFromString: u } = It(), l = (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 = At("table-wrapper"), f = At("header-row"), d = N([]), c = N([]), v = N(""), y = N(""), b = N(""), g = m(() => d.value.filter((L) => L.hidable).length > 0), p = m(() => a.nested || !g.value || a.error ? !1 : i.toolbar ? !0 : !a.loading && !!a.data && !!a.data.length), k = m(() => a.loading || !(a.data && a.data.length)), w = m(() => d.value.filter((L) => L.hidable && !Re(L.key))), C = m(() => p.value ? a.tablePreferences.columnVisibility || {} : {}), $ = N(p.value ? a.tablePreferences.columnVisibility || {} : {}), E = N("100%"), M = N(!1), _ = N(!1), z = N(!1), j = N(!1), O = N(""), A = N("desc"), S = N(!1), T = m(() => !a.hideToolbar && !a.nested && (!!i.toolbar || p.value || ve.value)), F = N(!1), R = m(() => ({
25612
25573
  maxHeight: u(a.maxHeight)
25613
25574
  })), U = m(() => `${Ep()}px`), W = N([]), ee = m(() => !a.nested && !a.error && d.value.some((L) => L.key === Ke.BULK_ACTIONS) && !!(i["bulk-action-items"] || i["bulk-actions"]) && !!a.data.every((L) => l(L))), V = N([]), ve = m(() => a.nested || !ee.value || a.error ? !1 : i.toolbar ? !0 : !a.loading && !!a.data && !!a.data.length), ue = m(() => {
25614
25575
  const L = W.value.length;
@@ -25650,7 +25611,7 @@ const dB = ["href"], cB = /* @__PURE__ */ se({
25650
25611
  }
25651
25612
  }
25652
25613
  };
25653
- }), Ge = parseInt(Qv) * 2 + parseInt(Ea), tt = { expandable: Ge, bulkActions: 48, actions: 54 }, Xe = Object.keys(tt).map((L) => ({ [L]: `${tt[L]}px` })).reduce((L, P) => ({ ...L, ...P }), {}), je = N(((Dt = a.tablePreferences) == null ? void 0 : Dt.columnWidths) || tt), Qe = m(() => {
25614
+ }), Ge = parseInt(Qv) * 2 + parseInt(Ea), tt = { expandable: Ge, bulkActions: 48, actions: 54 }, Xe = Object.keys(tt).map((L) => ({ [L]: `${tt[L]}px` })).reduce((L, P) => ({ ...L, ...P }), {}), je = N(((Tt = a.tablePreferences) == null ? void 0 : Tt.columnWidths) || tt), Qe = m(() => {
25654
25615
  const L = {};
25655
25616
  for (const P in je.value) {
25656
25617
  if (!je.value[P])
@@ -26266,7 +26227,7 @@ const dB = ["href"], cB = /* @__PURE__ */ se({
26266
26227
  },
26267
26228
  emits: ["cell-click", "row-click", "error-action-click", "empty-state-action-click", "update:table-preferences", "sort", "state", "row-select", "update:row-expanded", "row-actions-toggle"],
26268
26229
  setup(e, { expose: t, emit: a }) {
26269
- const n = e, r = xt(), { useDebounce: i, useRequest: s, useSwrvState: u, clientSideSorter: l } = It(), o = a, f = $t(), d = N([]), c = m(() => n.sortable ? n.headers : n.headers.map((re) => ({ ...re, sortable: !1 }))), v = m(() => n.emptyStateButtonAppearance ? n.emptyStateButtonAppearance : n.searchInput ? "tertiary" : "primary"), y = N(0), b = N(1), g = N(Tg(n.tablePreferences, n.paginationAttributes)), p = N(n.searchInput ?? ""), k = N(""), w = N("desc"), C = N(null), $ = N([]), E = N(!0), M = N(!1), _ = {
26230
+ const n = e, r = Dt(), { useDebounce: i, useRequest: s, useSwrvState: u, clientSideSorter: l } = It(), o = a, f = $t(), d = N([]), c = m(() => n.sortable ? n.headers : n.headers.map((re) => ({ ...re, sortable: !1 }))), v = m(() => n.emptyStateButtonAppearance ? n.emptyStateButtonAppearance : n.searchInput ? "tertiary" : "primary"), y = N(0), b = N(1), g = N(Tg(n.tablePreferences, n.paginationAttributes)), p = N(n.searchInput ?? ""), k = N(""), w = N("desc"), C = N(null), $ = N([]), E = N(!0), M = N(!1), _ = {
26270
26231
  pageSize: g.value,
26271
26232
  page: b.value,
26272
26233
  query: p.value,