@kong-ui-public/split-pane 0.3.30 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- import { watch as q, onMounted as ee, nextTick as G, getCurrentScope as xe, onScopeDispose as Ce, getCurrentInstance as he, computed as R, toValue as A, shallowRef as Y, watchEffect as we, unref as r, ref as b, readonly as te, defineComponent as ge, useCssVars as be, resolveComponent as se, openBlock as x, createElementBlock as k, createElementVNode as w, Fragment as ye, renderList as Le, createBlock as K, withCtx as J, createVNode as le, withModifiers as ne, normalizeClass as T, resolveDynamicComponent as re, createCommentVNode as N, useSlots as We, useTemplateRef as I, renderSlot as M, withDirectives as ue, vShow as ce } from "vue";
1
+ import { watch as q, onMounted as ee, nextTick as G, getCurrentScope as xe, onScopeDispose as Ce, getCurrentInstance as he, computed as R, toValue as O, shallowRef as Y, watchEffect as we, unref as r, ref as b, readonly as te, defineComponent as ge, useCssVars as be, resolveComponent as oe, openBlock as x, createElementBlock as W, createElementVNode as C, Fragment as ye, renderList as Le, createBlock as K, withCtx as J, createVNode as le, withModifiers as ne, normalizeClass as E, resolveDynamicComponent as re, createCommentVNode as T, useSlots as We, useTemplateRef as $, renderSlot as N, withDirectives as ue, vShow as ce } from "vue";
2
2
  import { ChevronDoubleLeftIcon as _e, ChevronDoubleRightIcon as ke } from "@kong/icons";
3
3
  import { useRouter as ze } from "vue-router";
4
4
  import { createI18n as De, i18nTComponent as $e } from "@kong-ui-public/i18n";
5
- const Ie = "260px", ie = "500px", de = "50%", fe = "50%";
6
- function ae(e, n) {
5
+ const Ie = "260px", ae = "500px", de = "50%", fe = "50%";
6
+ function ie(e, n) {
7
7
  return xe() ? (Ce(e, n), !0) : !1;
8
8
  }
9
9
  const Ee = typeof window < "u" && typeof document < "u";
@@ -25,30 +25,30 @@ function Be(e, n, l) {
25
25
  immediate: !0
26
26
  });
27
27
  }
28
- const B = Ee ? window : void 0;
29
- function z(e) {
28
+ const A = Ee ? window : void 0;
29
+ function _(e) {
30
30
  var n;
31
- const l = A(e);
32
- return (n = l == null ? void 0 : l.$el) !== null && n !== void 0 ? n : l;
31
+ const l = O(e);
32
+ return (n = l?.$el) !== null && n !== void 0 ? n : l;
33
33
  }
34
34
  function j(...e) {
35
- const n = (t, i, s, a) => (t.addEventListener(i, s, a), () => t.removeEventListener(i, s, a)), l = R(() => {
36
- const t = U(A(e[0])).filter((i) => i != null);
37
- return t.every((i) => typeof i != "string") ? t : void 0;
35
+ const n = (t, a, o, i) => (t.addEventListener(a, o, i), () => t.removeEventListener(a, o, i)), l = R(() => {
36
+ const t = U(O(e[0])).filter((a) => a != null);
37
+ return t.every((a) => typeof a != "string") ? t : void 0;
38
38
  });
39
39
  return Be(() => {
40
- var t, i;
40
+ var t, a;
41
41
  return [
42
- (t = (i = l.value) === null || i === void 0 ? void 0 : i.map((s) => z(s))) !== null && t !== void 0 ? t : [B].filter((s) => s != null),
43
- U(A(l.value ? e[1] : e[0])),
42
+ (t = (a = l.value) === null || a === void 0 ? void 0 : a.map((o) => _(o))) !== null && t !== void 0 ? t : [A].filter((o) => o != null),
43
+ U(O(l.value ? e[1] : e[0])),
44
44
  U(r(l.value ? e[2] : e[1])),
45
- A(l.value ? e[3] : e[2])
45
+ O(l.value ? e[3] : e[2])
46
46
  ];
47
- }, ([t, i, s, a], u, v) => {
48
- if (!(t != null && t.length) || !(i != null && i.length) || !(s != null && s.length)) return;
49
- const p = Me(a) ? { ...a } : a, c = t.flatMap((o) => i.flatMap((f) => s.map((h) => n(o, f, h, p))));
47
+ }, ([t, a, o, i], u, v) => {
48
+ if (!t?.length || !a?.length || !o?.length) return;
49
+ const p = Me(i) ? { ...i } : i, c = t.flatMap((s) => a.flatMap((d) => o.map((h) => n(s, d, h, p))));
50
50
  v(() => {
51
- c.forEach((o) => o());
51
+ c.forEach((s) => s());
52
52
  });
53
53
  }, { flush: "post" });
54
54
  }
@@ -65,62 +65,62 @@ function me(e) {
65
65
  return R(() => (n.value, !!e()));
66
66
  }
67
67
  function Xe(e, n, l = {}) {
68
- const { window: t = B, ...i } = l;
69
- let s;
70
- const a = /* @__PURE__ */ me(() => t && "MutationObserver" in t), u = () => {
71
- s && (s.disconnect(), s = void 0);
68
+ const { window: t = A, ...a } = l;
69
+ let o;
70
+ const i = /* @__PURE__ */ me(() => t && "MutationObserver" in t), u = () => {
71
+ o && (o.disconnect(), o = void 0);
72
72
  }, v = q(R(() => {
73
- const o = U(A(e)).map(z).filter(Te);
74
- return new Set(o);
75
- }), (o) => {
76
- u(), a.value && o.size && (s = new MutationObserver(n), o.forEach((f) => s.observe(f, i)));
73
+ const s = U(O(e)).map(_).filter(Te);
74
+ return new Set(s);
75
+ }), (s) => {
76
+ u(), i.value && s.size && (o = new MutationObserver(n), s.forEach((d) => o.observe(d, a)));
77
77
  }, {
78
78
  immediate: !0,
79
79
  flush: "post"
80
- }), p = () => s == null ? void 0 : s.takeRecords(), c = () => {
80
+ }), p = () => o?.takeRecords(), c = () => {
81
81
  v(), u();
82
82
  };
83
- return ae(c), {
84
- isSupported: a,
83
+ return ie(c), {
84
+ isSupported: i,
85
85
  stop: c,
86
86
  takeRecords: p
87
87
  };
88
88
  }
89
89
  function Ve(e, n, l = {}) {
90
- const { window: t = B, document: i = t == null ? void 0 : t.document, flush: s = "sync" } = l;
91
- if (!t || !i) return Se;
92
- let a;
90
+ const { window: t = A, document: a = t?.document, flush: o = "sync" } = l;
91
+ if (!t || !a) return Se;
92
+ let i;
93
93
  const u = (c) => {
94
- a == null || a(), a = c;
94
+ i?.(), i = c;
95
95
  }, v = we(() => {
96
- const c = z(e);
96
+ const c = _(e);
97
97
  if (c) {
98
- const { stop: o } = Xe(i, (f) => {
99
- f.map((h) => [...h.removedNodes]).flat().some((h) => h === c || h.contains(c)) && n(f);
98
+ const { stop: s } = Xe(a, (d) => {
99
+ d.map((h) => [...h.removedNodes]).flat().some((h) => h === c || h.contains(c)) && n(d);
100
100
  }, {
101
101
  window: t,
102
102
  childList: !0,
103
103
  subtree: !0
104
104
  });
105
- u(o);
105
+ u(s);
106
106
  }
107
- }, { flush: s }), p = () => {
107
+ }, { flush: o }), p = () => {
108
108
  v(), u();
109
109
  };
110
- return ae(p), p;
110
+ return ie(p), p;
111
111
  }
112
112
  function Fe(e, n, l = {}) {
113
- const { window: t = B, ...i } = l;
114
- let s;
115
- const a = /* @__PURE__ */ me(() => t && "ResizeObserver" in t), u = () => {
116
- s && (s.disconnect(), s = void 0);
113
+ const { window: t = A, ...a } = l;
114
+ let o;
115
+ const i = /* @__PURE__ */ me(() => t && "ResizeObserver" in t), u = () => {
116
+ o && (o.disconnect(), o = void 0);
117
117
  }, v = q(R(() => {
118
- const c = A(e);
119
- return Array.isArray(c) ? c.map((o) => z(o)) : [z(c)];
118
+ const c = O(e);
119
+ return Array.isArray(c) ? c.map((s) => _(s)) : [_(c)];
120
120
  }), (c) => {
121
- if (u(), a.value && t) {
122
- s = new ResizeObserver(n);
123
- for (const o of c) o && s.observe(o, i);
121
+ if (u(), i.value && t) {
122
+ o = new ResizeObserver(n);
123
+ for (const s of c) s && o.observe(s, a);
124
124
  }
125
125
  }, {
126
126
  immediate: !0,
@@ -128,143 +128,135 @@ function Fe(e, n, l = {}) {
128
128
  }), p = () => {
129
129
  u(), v();
130
130
  };
131
- return ae(p), {
132
- isSupported: a,
131
+ return ie(p), {
132
+ isSupported: i,
133
133
  stop: p
134
134
  };
135
135
  }
136
136
  function ve(e, n = {}) {
137
- const { delayEnter: l = 0, delayLeave: t = 0, triggerOnRemoval: i = !1, window: s = B } = n, a = Y(!1);
137
+ const { delayEnter: l = 0, delayLeave: t = 0, triggerOnRemoval: a = !1, window: o = A } = n, i = Y(!1);
138
138
  let u;
139
139
  const v = (p) => {
140
140
  const c = p ? l : t;
141
- u && (clearTimeout(u), u = void 0), c ? u = setTimeout(() => a.value = p, c) : a.value = p;
141
+ u && (clearTimeout(u), u = void 0), c ? u = setTimeout(() => i.value = p, c) : i.value = p;
142
142
  };
143
- return s && (j(e, "mouseenter", () => v(!0), { passive: !0 }), j(e, "mouseleave", () => v(!1), { passive: !0 }), i && Ve(R(() => z(e)), () => v(!1))), a;
143
+ return o && (j(e, "mouseenter", () => v(!0), { passive: !0 }), j(e, "mouseleave", () => v(!1), { passive: !0 }), a && Ve(R(() => _(e)), () => v(!1))), i;
144
144
  }
145
145
  function Ke(e, n = {
146
146
  width: 0,
147
147
  height: 0
148
148
  }, l = {}) {
149
- const { window: t = B, box: i = "content-box" } = l, s = R(() => {
150
- var o;
151
- return (o = z(e)) === null || o === void 0 || (o = o.namespaceURI) === null || o === void 0 ? void 0 : o.includes("svg");
152
- }), a = Y(n.width), u = Y(n.height), { stop: v } = Fe(e, ([o]) => {
153
- const f = i === "border-box" ? o.borderBoxSize : i === "content-box" ? o.contentBoxSize : o.devicePixelContentBoxSize;
154
- if (t && s.value) {
155
- const h = z(e);
149
+ const { window: t = A, box: a = "content-box" } = l, o = R(() => {
150
+ var s;
151
+ return (s = _(e)) === null || s === void 0 || (s = s.namespaceURI) === null || s === void 0 ? void 0 : s.includes("svg");
152
+ }), i = Y(n.width), u = Y(n.height), { stop: v } = Fe(e, ([s]) => {
153
+ const d = a === "border-box" ? s.borderBoxSize : a === "content-box" ? s.contentBoxSize : s.devicePixelContentBoxSize;
154
+ if (t && o.value) {
155
+ const h = _(e);
156
156
  if (h) {
157
157
  const m = h.getBoundingClientRect();
158
- a.value = m.width, u.value = m.height;
158
+ i.value = m.width, u.value = m.height;
159
159
  }
160
- } else if (f) {
161
- const h = U(f);
162
- a.value = h.reduce((m, { inlineSize: _ }) => m + _, 0), u.value = h.reduce((m, { blockSize: _ }) => m + _, 0);
160
+ } else if (d) {
161
+ const h = U(d);
162
+ i.value = h.reduce((m, { inlineSize: y }) => m + y, 0), u.value = h.reduce((m, { blockSize: y }) => m + y, 0);
163
163
  } else
164
- a.value = o.contentRect.width, u.value = o.contentRect.height;
164
+ i.value = s.contentRect.width, u.value = s.contentRect.height;
165
165
  }, l);
166
166
  Ae(() => {
167
- const o = z(e);
168
- o && (a.value = "offsetWidth" in o ? o.offsetWidth : n.width, u.value = "offsetHeight" in o ? o.offsetHeight : n.height);
167
+ const s = _(e);
168
+ s && (i.value = "offsetWidth" in s ? s.offsetWidth : n.width, u.value = "offsetHeight" in s ? s.offsetHeight : n.height);
169
169
  });
170
- const p = q(() => z(e), (o) => {
171
- a.value = o ? n.width : 0, u.value = o ? n.height : 0;
170
+ const p = q(() => _(e), (s) => {
171
+ i.value = s ? n.width : 0, u.value = s ? n.height : 0;
172
172
  });
173
173
  function c() {
174
174
  v(), p();
175
175
  }
176
176
  return {
177
- width: a,
177
+ width: i,
178
178
  height: u,
179
179
  stop: c
180
180
  };
181
181
  }
182
- const pe = "20px", O = b(!1), E = b(!1), Q = b(!0), F = b(0);
182
+ const pe = "20px", S = b(!1), I = b(!1), Q = b(!0), F = b(0);
183
183
  function Pe(e) {
184
- const n = (e == null ? void 0 : e.verticalNavRef) || b(null), l = (e == null ? void 0 : e.innerPanesContainerRef) || b(null), t = (e == null ? void 0 : e.paneLeftRef) || b(null), i = (e == null ? void 0 : e.paneCenterRef) || b(null), s = (e == null ? void 0 : e.paneRightRef) || b(null), a = (d) => {
185
- var g, L, W, C, y;
186
- switch (d) {
184
+ const n = e?.verticalNavRef || b(null), l = e?.innerPanesContainerRef || b(null), t = e?.paneLeftRef || b(null), a = e?.paneCenterRef || b(null), o = e?.paneRightRef || b(null), i = (f) => {
185
+ switch (f) {
187
186
  case "verticalNav":
188
- return ((g = n.value) == null ? void 0 : g.offsetWidth) || 0;
187
+ return n.value?.offsetWidth || 0;
189
188
  case "innerPanesContainer":
190
- return ((L = l.value) == null ? void 0 : L.offsetWidth) || 0;
189
+ return l.value?.offsetWidth || 0;
191
190
  case "paneLeft":
192
- return ((W = t.value) == null ? void 0 : W.offsetWidth) || 0;
191
+ return t.value?.offsetWidth || 0;
193
192
  case "paneCenter":
194
- return ((C = i.value) == null ? void 0 : C.offsetWidth) || 0;
193
+ return a.value?.offsetWidth || 0;
195
194
  case "paneRight":
196
- return ((y = s.value) == null ? void 0 : y.offsetWidth) || 0;
195
+ return o.value?.offsetWidth || 0;
197
196
  default:
198
197
  return 0;
199
198
  }
200
- }, u = b(50), v = b(0), p = b(0), c = b(0), o = b(0), f = (d) => {
201
- if (i.value) {
202
- if (d) {
203
- i.value.style.width = `${d}%`, F.value = a("paneCenter");
199
+ }, u = b(50), v = b(0), p = b(0), c = b(0), s = b(0), d = (f) => {
200
+ if (a.value) {
201
+ if (f) {
202
+ a.value.style.width = `${f}%`, F.value = i("paneCenter");
204
203
  return;
205
204
  } else (typeof u.value != "number" || !isFinite(u.value)) && (u.value = 38);
206
- i.value.style.width = `${u.value}%`, F.value = a("paneCenter");
205
+ a.value.style.width = `${u.value}%`, F.value = i("paneCenter");
207
206
  }
208
207
  }, h = () => {
209
- var d;
210
- i.value && ((d = s.value) == null ? void 0 : d.style.display) === "none" ? (i.value.style.flex = "1", f(100)) : (i.value && (i.value.style.flex = ""), f());
208
+ a.value && o.value?.style.display === "none" ? (a.value.style.flex = "1", d(100)) : (a.value && (a.value.style.flex = ""), d());
211
209
  }, m = () => {
212
- var W;
213
- if (!l.value || !i.value) return;
214
- const d = 100, g = a("innerPanesContainer") - a("verticalNav") - a("paneLeft") - d, L = u.value / 100 * a("innerPanesContainer");
215
- if (L < d ? u.value = d / a("innerPanesContainer") * 100 : L > g && (u.value = g / a("innerPanesContainer") * 100), i.value && s.value && ((W = s.value) == null ? void 0 : W.style.display) === "none") {
216
- f(100);
210
+ if (!l.value || !a.value) return;
211
+ const f = 100, g = i("innerPanesContainer") - i("verticalNav") - i("paneLeft") - f, k = u.value / 100 * i("innerPanesContainer");
212
+ if (k < f ? u.value = f / i("innerPanesContainer") * 100 : k > g && (u.value = g / i("innerPanesContainer") * 100), a.value && o.value && o.value?.style.display === "none") {
213
+ d(100);
217
214
  return;
218
215
  }
219
- f();
220
- }, _ = (d) => {
221
- !i.value || d.button !== 0 || (E.value = !0, v.value = d.clientX, p.value = i.value.offsetWidth || 0);
222
- }, P = (d) => {
223
- if (!E.value || !l.value || !i.value) return;
224
- const g = l.value.offsetWidth, L = d.clientX - v.value, C = (p.value + L) / g * 100, y = 100 / g * 100, V = (g - 100) / g * 100;
225
- u.value = Math.min(Math.max(y, C), V), f();
216
+ d();
217
+ }, y = (f) => {
218
+ !a.value || f.button !== 0 || (I.value = !0, v.value = f.clientX, p.value = a.value.offsetWidth || 0);
219
+ }, P = (f) => {
220
+ if (!I.value || !l.value || !a.value) return;
221
+ const g = l.value.offsetWidth, k = f.clientX - v.value, w = (p.value + k) / g * 100, L = 100 / g * 100, V = (g - 100) / g * 100;
222
+ u.value = Math.min(Math.max(L, w), V), d();
223
+ }, z = () => {
224
+ I.value = !1;
225
+ }, M = (f) => {
226
+ !t.value || !Q.value || f.button !== 0 || (S.value = !0, c.value = f.clientX, s.value = t.value.offsetWidth || 0);
227
+ }, Z = (f) => {
228
+ if (!S.value || !t.value) return;
229
+ let g = s.value + (f.clientX - c.value);
230
+ const k = Number(Ie.replace(/px$/i, "")), X = Number(ae.replace(/px$/i, ""));
231
+ g < k && (g = k), g > X && (g = X), t.value.style.width = `${g}px`, c.value = f.clientX, s.value = g, F.value = i("paneCenter");
226
232
  }, D = () => {
227
- E.value = !1;
228
- }, S = (d) => {
229
- !t.value || !Q.value || d.button !== 0 || (O.value = !0, c.value = d.clientX, o.value = t.value.offsetWidth || 0);
230
- }, Z = (d) => {
231
- if (!O.value || !t.value) return;
232
- let g = o.value + (d.clientX - c.value);
233
- const L = Number(Ie.replace(/px$/i, "")), W = Number(ie.replace(/px$/i, ""));
234
- g < L && (g = L), g > W && (g = W), t.value.style.width = `${g}px`, c.value = d.clientX, o.value = g, F.value = a("paneCenter");
235
- }, $ = () => {
236
- O.value = !1;
237
- }, H = () => {
238
- E.value || m();
239
- }, X = async () => {
233
+ S.value = !1;
234
+ }, B = () => {
235
+ I.value || m();
236
+ }, H = async () => {
240
237
  Q.value = !Q.value;
241
238
  };
242
- return j(window, "resize", H), ee(async () => {
243
- await G(), i.value && (m(), await G(), f(), requestAnimationFrame(() => {
244
- F.value = a("paneCenter");
239
+ return j(window, "resize", B), ee(async () => {
240
+ await G(), a.value && (m(), await G(), d(), requestAnimationFrame(() => {
241
+ F.value = i("paneCenter");
245
242
  }));
246
- }), j(document, "mousemove", (d) => {
247
- E.value && P(d), O.value && Z(d);
243
+ }), j(document, "mousemove", (f) => {
244
+ I.value && P(f), S.value && Z(f);
248
245
  }), j(document, "mouseup", () => {
249
- E.value && D(), O.value && $();
246
+ I.value && z(), S.value && D();
250
247
  }), {
251
- isDraggingPaneLeft: te(O),
252
- isDraggingInnerPanes: te(E),
253
- startDraggingInnerPanes: _,
248
+ isDraggingPaneLeft: te(S),
249
+ isDraggingInnerPanes: te(I),
250
+ startDraggingInnerPanes: y,
254
251
  refreshInnerPaneSizes: h,
255
252
  // Toggle the left pane
256
253
  paneLeftExpanded: te(Q),
257
- togglePaneLeft: X,
258
- startDraggingPaneLeft: S,
254
+ togglePaneLeft: H,
255
+ startDraggingPaneLeft: M,
259
256
  centerPaneWidth: F
260
257
  };
261
258
  }
262
- const Ue = {
263
- return: "Return",
264
- collapse_panel: "Collapse panel",
265
- expand_panel: "Expand panel",
266
- drag_to_resize: "Click and drag to resize"
267
- }, je = {
259
+ const Ue = { return: "Return", collapse_panel: "Collapse panel", expand_panel: "Expand panel", drag_to_resize: "Click and drag to resize" }, je = {
268
260
  actions: Ue
269
261
  };
270
262
  function Re() {
@@ -283,20 +275,20 @@ const Ge = { class: "kong-ui-public-split-pane-vertical-navigation" }, qe = { cl
283
275
  items: { default: () => [] }
284
276
  },
285
277
  setup(e) {
286
- be((f) => ({
278
+ be((d) => ({
287
279
  eaa86402: c.value
288
280
  }));
289
- const { i18n: n } = Re(), l = ze(), { paneLeftExpanded: t, togglePaneLeft: i, isDraggingPaneLeft: s, isDraggingInnerPanes: a } = Pe(), u = b(!1), v = b(!1), p = R(() => u.value || s.value || a.value), c = R(() => `${e.paneLeftWidth - 8}px`), o = (f) => {
290
- t.value || i(), !f.active && f.to && l.push(f.to);
281
+ const { i18n: n } = Re(), l = ze(), { paneLeftExpanded: t, togglePaneLeft: a, isDraggingPaneLeft: o, isDraggingInnerPanes: i } = Pe(), u = b(!1), v = b(!1), p = R(() => u.value || o.value || i.value), c = R(() => `${e.paneLeftWidth - 8}px`), s = (d) => {
282
+ t.value || a(), !d.active && d.to && l.push(d.to);
291
283
  };
292
284
  return ee(async () => {
293
- await G(), await new Promise((f) => setTimeout(f, 500)), v.value = !0;
294
- }), (f, h) => {
295
- const m = se("KButton"), _ = se("KTooltip");
296
- return x(), k("div", Ge, [
297
- w("nav", qe, [
298
- w("div", Ze, [
299
- (x(!0), k(ye, null, Le(e.items, (P) => (x(), K(_, {
285
+ await G(), await new Promise((d) => setTimeout(d, 500)), v.value = !0;
286
+ }), (d, h) => {
287
+ const m = oe("KButton"), y = oe("KTooltip");
288
+ return x(), W("div", Ge, [
289
+ C("nav", qe, [
290
+ C("div", Ze, [
291
+ (x(!0), W(ye, null, Le(e.items, (P) => (x(), K(y, {
300
292
  key: P.tooltip,
301
293
  "kpop-attributes": { offset: "10px" },
302
294
  label: P.tooltip,
@@ -306,13 +298,13 @@ const Ge = { class: "kong-ui-public-split-pane-vertical-navigation" }, qe = { cl
306
298
  le(m, {
307
299
  appearance: "none",
308
300
  "aria-label": P.tooltip,
309
- class: T(["split-pane-nav-item", { active: P.active }]),
301
+ class: E(["split-pane-nav-item", { active: P.active }]),
310
302
  "data-testid": `kong-ui-public-split-pane-vertical-navigation-nav-item-${P.testid}`,
311
303
  icon: "",
312
304
  size: "large",
313
305
  style: { cursor: "pointer" },
314
306
  to: P.to,
315
- onClickCapture: ne((D) => o(P), ["prevent"])
307
+ onClickCapture: ne((z) => s(P), ["prevent"])
316
308
  }, {
317
309
  default: J(() => [
318
310
  (x(), K(re(P.icon), {
@@ -326,17 +318,17 @@ const Ge = { class: "kong-ui-public-split-pane-vertical-navigation" }, qe = { cl
326
318
  _: 2
327
319
  }, 1032, ["label"]))), 128))
328
320
  ]),
329
- w("div", Je, [
330
- e.paneLeftVisible ? (x(), k("div", {
321
+ C("div", Je, [
322
+ e.paneLeftVisible ? (x(), W("div", {
331
323
  key: 0,
332
- class: T(["toggle-left-panel-control", {
324
+ class: E(["toggle-left-panel-control", {
333
325
  expanded: r(t),
334
- "disable-animation": !v.value || r(s) || r(a)
326
+ "disable-animation": !v.value || r(o) || r(i)
335
327
  }]),
336
328
  onTransitionend: h[0] || (h[0] = ne((P) => u.value = !1, ["self"])),
337
329
  onTransitionstart: h[1] || (h[1] = ne((P) => u.value = !0, ["self"]))
338
330
  }, [
339
- (x(), K(_, {
331
+ (x(), K(y, {
340
332
  key: String(r(t)),
341
333
  "kpop-attributes": r(t) ? void 0 : { offset: "10px" },
342
334
  label: p.value ? void 0 : r(t) ? r(n).t("actions.collapse_panel") : r(n).t("actions.expand_panel"),
@@ -352,7 +344,7 @@ const Ge = { class: "kong-ui-public-split-pane-vertical-navigation" }, qe = { cl
352
344
  "data-testid": "kong-ui-public-split-pane-toggle-left-panel-button",
353
345
  icon: "",
354
346
  size: "large",
355
- onClick: r(i)
347
+ onClick: r(a)
356
348
  }, {
357
349
  default: J(() => [
358
350
  (x(), K(re(r(t) ? r(_e) : r(ke)), {
@@ -365,18 +357,18 @@ const Ge = { class: "kong-ui-public-split-pane-vertical-navigation" }, qe = { cl
365
357
  ]),
366
358
  _: 1
367
359
  }, 8, ["kpop-attributes", "label", "placement"]))
368
- ], 34)) : N("", !0)
360
+ ], 34)) : T("", !0)
369
361
  ])
370
362
  ])
371
363
  ]);
372
364
  };
373
365
  }
374
- }), oe = (e, n) => {
366
+ }), se = (e, n) => {
375
367
  const l = e.__vccOpts || e;
376
- for (const [t, i] of n)
377
- l[t] = i;
368
+ for (const [t, a] of n)
369
+ l[t] = a;
378
370
  return l;
379
- }, Ye = /* @__PURE__ */ oe(Qe, [["__scopeId", "data-v-59e8017f"]]), et = { class: "split-pane-container" }, tt = { class: "split-pane-container-inner" }, nt = { class: "panes" }, it = ["aria-hidden", "tabindex"], at = ["title"], ot = { class: "split-pane-container-inner-content" }, st = ["aria-hidden", "tabindex"], lt = ["title"], rt = ["aria-hidden", "tabindex"], ut = /* @__PURE__ */ ge({
371
+ }, Ye = /* @__PURE__ */ se(Qe, [["__scopeId", "data-v-59e8017f"]]), et = { class: "split-pane-container" }, tt = { class: "split-pane-container-inner" }, nt = { class: "panes" }, at = ["aria-hidden", "tabindex"], it = ["title"], st = { class: "split-pane-container-inner-content" }, ot = ["aria-hidden", "tabindex"], lt = ["title"], rt = ["aria-hidden", "tabindex"], ut = /* @__PURE__ */ ge({
380
372
  __name: "SplitPane",
381
373
  props: {
382
374
  resizable: { type: Boolean, default: !0 },
@@ -386,7 +378,7 @@ const Ge = { class: "kong-ui-public-split-pane-vertical-navigation" }, qe = { cl
386
378
  paneLeft: { default: () => ({
387
379
  /** Pass false to hide the panel even if it contains slot content */
388
380
  visible: !0,
389
- maxWidth: ie
381
+ maxWidth: ae
390
382
  }) },
391
383
  paneCenter: { default: () => ({
392
384
  /** Pass false to hide the panel even if it contains slot content */
@@ -400,112 +392,112 @@ const Ge = { class: "kong-ui-public-split-pane-vertical-navigation" }, qe = { cl
400
392
  }) }
401
393
  },
402
394
  setup(e) {
403
- be((C) => ({
395
+ be((w) => ({
404
396
  v1300c9c8: t.value,
405
- v183c98aa: i.value,
406
- bf8b5faa: s.value
397
+ v183c98aa: a.value,
398
+ bf8b5faa: o.value
407
399
  }));
408
- const n = We(), l = (C) => C === "left" ? e.paneLeft.maxWidth !== void 0 ? e.paneLeft.maxWidth : ie : C === "center" ? e.resizable ? "none" : e.paneCenter.maxWidth !== void 0 ? e.paneCenter.maxWidth : de : C === "right" ? e.resizable ? "none" : e.paneRight.maxWidth !== void 0 ? e.paneRight.maxWidth : fe : "none", t = R(() => l("left")), i = R(() => l("center")), s = R(() => l("right")), a = I("verticalNavRef"), u = I("innerPanesContainerRef"), v = I("paneLeftRef"), p = I("paneCenterRef"), c = I("paneRightRef"), o = I("paneLeftDivider"), f = I("innerPanesDivider"), { startDraggingInnerPanes: h, startDraggingPaneLeft: m, refreshInnerPaneSizes: _, paneLeftExpanded: P, isDraggingPaneLeft: D, isDraggingInnerPanes: S } = Pe({
409
- verticalNavRef: a,
400
+ const n = We(), l = (w) => w === "left" ? e.paneLeft.maxWidth !== void 0 ? e.paneLeft.maxWidth : ae : w === "center" ? e.resizable ? "none" : e.paneCenter.maxWidth !== void 0 ? e.paneCenter.maxWidth : de : w === "right" ? e.resizable ? "none" : e.paneRight.maxWidth !== void 0 ? e.paneRight.maxWidth : fe : "none", t = R(() => l("left")), a = R(() => l("center")), o = R(() => l("right")), i = $("verticalNavRef"), u = $("innerPanesContainerRef"), v = $("paneLeftRef"), p = $("paneCenterRef"), c = $("paneRightRef"), s = $("paneLeftDivider"), d = $("innerPanesDivider"), { startDraggingInnerPanes: h, startDraggingPaneLeft: m, refreshInnerPaneSizes: y, paneLeftExpanded: P, isDraggingPaneLeft: z, isDraggingInnerPanes: M } = Pe({
401
+ verticalNavRef: i,
410
402
  innerPanesContainerRef: u,
411
403
  paneLeftRef: v,
412
404
  paneCenterRef: p,
413
405
  paneRightRef: c
414
- }), { i18n: Z } = Re(), $ = R(() => !!n["pane-left"] && e.paneLeft.visible !== !1 && P.value), H = R(() => !!n["pane-center"] && e.paneCenter.visible !== !1), X = R(() => !!n["pane-right"] && e.paneRight.visible !== !1), d = R(() => e.resizable && e.showResizeHandle && !!n["pane-center"] && e.paneCenter.visible !== !1 && !!n["pane-right"] && e.paneRight.visible !== !1), g = ve(o), L = ve(f), { width: W } = Ke(v);
406
+ }), { i18n: Z } = Re(), D = R(() => !!n["pane-left"] && e.paneLeft.visible !== !1 && P.value), B = R(() => !!n["pane-center"] && e.paneCenter.visible !== !1), H = R(() => !!n["pane-right"] && e.paneRight.visible !== !1), f = R(() => e.resizable && e.showResizeHandle && !!n["pane-center"] && e.paneCenter.visible !== !1 && !!n["pane-right"] && e.paneRight.visible !== !1), g = ve(s), k = ve(d), { width: X } = Ke(v);
415
407
  return q(() => e.paneRight.visible, async () => {
416
- e.resizable && (await G(), _());
417
- }, { flush: "post" }), (C, y) => (x(), k("div", {
418
- class: T(["kong-ui-public-split-pane", { "has-navigation": e.showNavigation }]),
408
+ e.resizable && (await G(), y());
409
+ }, { flush: "post" }), (w, L) => (x(), W("div", {
410
+ class: E(["kong-ui-public-split-pane", { "has-navigation": e.showNavigation }]),
419
411
  "data-testid": "split-pane"
420
412
  }, [
421
- w("div", et, [
413
+ C("div", et, [
422
414
  e.showNavigation ? (x(), K(Ye, {
423
415
  key: 0,
424
416
  ref_key: "verticalNavRef",
425
- ref: a,
417
+ ref: i,
426
418
  items: e.navigationItems,
427
419
  "pane-left-visible": e.paneLeft.visible !== !1,
428
- "pane-left-width": r(W)
429
- }, null, 8, ["items", "pane-left-visible", "pane-left-width"])) : N("", !0),
430
- w("div", tt, [
431
- w("div", nt, [
432
- w("div", {
420
+ "pane-left-width": r(X)
421
+ }, null, 8, ["items", "pane-left-visible", "pane-left-width"])) : T("", !0),
422
+ C("div", tt, [
423
+ C("div", nt, [
424
+ C("div", {
433
425
  ref_key: "paneLeftRef",
434
426
  ref: v,
435
- "aria-hidden": $.value ? void 0 : "true",
436
- class: T(["split-pane-left", [{ expanded: r(P), "show-resize-border": r(g) }, { "is-dragging-pane-left": r(D) }, { "is-dragging-pane": r(D) || r(S) }]]),
427
+ "aria-hidden": D.value ? void 0 : "true",
428
+ class: E(["split-pane-left", [{ expanded: r(P), "show-resize-border": r(g) }, { "is-dragging-pane-left": r(z) }, { "is-dragging-pane": r(z) || r(M) }]]),
437
429
  "data-testid": "split-pane-left",
438
- tabindex: $.value ? 0 : -1
430
+ tabindex: D.value ? 0 : -1
439
431
  }, [
440
- M(C.$slots, "pane-left", {}, void 0, !0)
441
- ], 10, it),
442
- $.value ? (x(), k("div", {
432
+ N(w.$slots, "pane-left", {}, void 0, !0)
433
+ ], 10, at),
434
+ D.value ? (x(), W("div", {
443
435
  key: 0,
444
436
  ref_key: "paneLeftDivider",
445
- ref: o,
437
+ ref: s,
446
438
  class: "split-pane-resize-divider left",
447
439
  "data-testid": "split-pane-resize-divider-left",
448
440
  tabindex: "0",
449
441
  title: r(Z).t("actions.drag_to_resize"),
450
- onMousedown: y[0] || (y[0] = //@ts-ignore
442
+ onMousedown: L[0] || (L[0] = //@ts-ignore
451
443
  (...V) => r(m) && r(m)(...V))
452
- }, [...y[2] || (y[2] = [
453
- w("div", { class: "split-pane-drag-handle" }, null, -1)
454
- ])], 40, at)) : N("", !0),
455
- w("div", ot, [
456
- n.toolbar ? (x(), k("div", {
444
+ }, [...L[2] || (L[2] = [
445
+ C("div", { class: "split-pane-drag-handle" }, null, -1)
446
+ ])], 40, it)) : T("", !0),
447
+ C("div", st, [
448
+ n.toolbar ? (x(), W("div", {
457
449
  key: 0,
458
- class: T(["split-pane-toolbar-container", { "has-resize-divider-left": $.value }]),
450
+ class: E(["split-pane-toolbar-container", { "has-resize-divider-left": D.value }]),
459
451
  "data-testid": "split-pane-toolbar"
460
452
  }, [
461
- M(C.$slots, "toolbar", {}, void 0, !0)
462
- ], 2)) : N("", !0),
463
- w("div", {
453
+ N(w.$slots, "toolbar", {}, void 0, !0)
454
+ ], 2)) : T("", !0),
455
+ C("div", {
464
456
  ref_key: "innerPanesContainerRef",
465
457
  ref: u,
466
458
  class: "split-pane-inner-panes"
467
459
  }, [
468
- ue(w("div", {
460
+ ue(C("div", {
469
461
  ref_key: "paneCenterRef",
470
462
  ref: p,
471
- "aria-hidden": H.value ? void 0 : "true",
472
- class: T(["split-pane-center", [{ "has-resize-divider-left": $.value }, { "has-resize-divider-right": d.value }, { "is-dragging-pane": r(D) || r(S) }]]),
463
+ "aria-hidden": B.value ? void 0 : "true",
464
+ class: E(["split-pane-center", [{ "has-resize-divider-left": D.value }, { "has-resize-divider-right": f.value }, { "is-dragging-pane": r(z) || r(M) }]]),
473
465
  "data-testid": "split-pane-center",
474
- tabindex: H.value ? 0 : -1
466
+ tabindex: B.value ? 0 : -1
475
467
  }, [
476
- M(C.$slots, "pane-center", {}, void 0, !0)
477
- ], 10, st), [
478
- [ce, H.value]
468
+ N(w.$slots, "pane-center", {}, void 0, !0)
469
+ ], 10, ot), [
470
+ [ce, B.value]
479
471
  ]),
480
- d.value ? (x(), k("div", {
472
+ f.value ? (x(), W("div", {
481
473
  key: 0,
482
474
  ref_key: "innerPanesDivider",
483
- ref: f,
475
+ ref: d,
484
476
  class: "split-pane-resize-divider right",
485
477
  "data-testid": "split-pane-resize-divider-right",
486
478
  tabindex: "0",
487
479
  title: r(Z).t("actions.drag_to_resize"),
488
- onMousedown: y[1] || (y[1] = //@ts-ignore
480
+ onMousedown: L[1] || (L[1] = //@ts-ignore
489
481
  (...V) => r(h) && r(h)(...V))
490
- }, [...y[3] || (y[3] = [
491
- w("div", { class: "split-pane-drag-handle" }, null, -1)
492
- ])], 40, lt)) : N("", !0),
493
- ue(w("div", {
482
+ }, [...L[3] || (L[3] = [
483
+ C("div", { class: "split-pane-drag-handle" }, null, -1)
484
+ ])], 40, lt)) : T("", !0),
485
+ ue(C("div", {
494
486
  ref_key: "paneRightRef",
495
487
  ref: c,
496
- "aria-hidden": X.value ? void 0 : "true",
497
- class: T(["split-pane-right", [
488
+ "aria-hidden": H.value ? void 0 : "true",
489
+ class: E(["split-pane-right", [
498
490
  { "has-toolbar": !!n.toolbar },
499
- { "show-resize-border": r(L) },
500
- { "is-dragging-inner-panes": r(S) },
501
- { "is-dragging-pane": r(D) || r(S) }
491
+ { "show-resize-border": r(k) },
492
+ { "is-dragging-inner-panes": r(M) },
493
+ { "is-dragging-pane": r(z) || r(M) }
502
494
  ]]),
503
495
  "data-testid": "split-pane-right",
504
- tabindex: X.value ? 0 : -1
496
+ tabindex: H.value ? 0 : -1
505
497
  }, [
506
- M(C.$slots, "pane-right", {}, void 0, !0)
498
+ N(w.$slots, "pane-right", {}, void 0, !0)
507
499
  ], 10, rt), [
508
- [ce, X.value]
500
+ [ce, H.value]
509
501
  ])
510
502
  ], 512)
511
503
  ])
@@ -514,7 +506,7 @@ const Ge = { class: "kong-ui-public-split-pane-vertical-navigation" }, qe = { cl
514
506
  ])
515
507
  ], 2));
516
508
  }
517
- }), Rt = /* @__PURE__ */ oe(ut, [["__scopeId", "data-v-a19fbade"]]), ct = {}, dt = {
509
+ }), Rt = /* @__PURE__ */ se(ut, [["__scopeId", "data-v-a19fbade"]]), ct = {}, dt = {
518
510
  class: "kong-ui-public-split-pane-toolbar",
519
511
  "data-testid": "kong-ui-public-split-pane-toolbar"
520
512
  }, ft = {
@@ -530,19 +522,19 @@ const Ge = { class: "kong-ui-public-split-pane-vertical-navigation" }, qe = { cl
530
522
  "data-testid": "split-toolbar-right"
531
523
  };
532
524
  function ht(e, n) {
533
- return x(), k("div", dt, [
534
- w("div", ft, [
535
- M(e.$slots, "left", {}, void 0, !0)
525
+ return x(), W("div", dt, [
526
+ C("div", ft, [
527
+ N(e.$slots, "left", {}, void 0, !0)
536
528
  ]),
537
- e.$slots.center ? (x(), k("div", vt, [
538
- M(e.$slots, "center", {}, void 0, !0)
539
- ])) : N("", !0),
540
- e.$slots.right ? (x(), k("div", pt, [
541
- M(e.$slots, "right", {}, void 0, !0)
542
- ])) : N("", !0)
529
+ e.$slots.center ? (x(), W("div", vt, [
530
+ N(e.$slots, "center", {}, void 0, !0)
531
+ ])) : T("", !0),
532
+ e.$slots.right ? (x(), W("div", pt, [
533
+ N(e.$slots, "right", {}, void 0, !0)
534
+ ])) : T("", !0)
543
535
  ]);
544
536
  }
545
- const xt = /* @__PURE__ */ oe(ct, [["render", ht], ["__scopeId", "data-v-44b95676"]]);
537
+ const xt = /* @__PURE__ */ se(ct, [["render", ht], ["__scopeId", "data-v-44b95676"]]);
546
538
  export {
547
539
  Rt as SplitPane,
548
540
  xt as SplitToolbar
@@ -1 +1 @@
1
- (function(w,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@kong/icons"),require("vue-router"),require("@kong-ui-public/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@kong/icons","vue-router","@kong-ui-public/i18n"],e):(w=typeof globalThis<"u"?globalThis:w||self,e(w["kong-ui-public-split-pane"]={},w.Vue,w.KongIcons,w.VueRouter,w["kong-ui-public-i18n"]))})(this,function(w,e,X,Q,F){"use strict";const Y="260px",O="500px",j="50%",K="50%";function A(t,i){return e.getCurrentScope()?(e.onScopeDispose(t,i),!0):!1}const ee=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const te=t=>t!=null,ne=Object.prototype.toString,ie=t=>ne.call(t)==="[object Object]",ae=()=>{};function T(t){return Array.isArray(t)?t:[t]}function oe(t){return e.getCurrentInstance()}function le(t,i=!0,r){oe()?e.onMounted(t,r):i?t():e.nextTick(t)}function se(t,i,r){return e.watch(t,i,{...r,immediate:!0})}const z=ee?window:void 0;function P(t){var i;const r=e.toValue(t);return(i=r==null?void 0:r.$el)!==null&&i!==void 0?i:r}function B(...t){const i=(n,a,s,o)=>(n.addEventListener(a,s,o),()=>n.removeEventListener(a,s,o)),r=e.computed(()=>{const n=T(e.toValue(t[0])).filter(a=>a!=null);return n.every(a=>typeof a!="string")?n:void 0});return se(()=>{var n,a;return[(n=(a=r.value)===null||a===void 0?void 0:a.map(s=>P(s)))!==null&&n!==void 0?n:[z].filter(s=>s!=null),T(e.toValue(r.value?t[1]:t[0])),T(e.unref(r.value?t[2]:t[1])),e.toValue(r.value?t[3]:t[2])]},([n,a,s,o],c,p)=>{if(!(n!=null&&n.length)||!(a!=null&&a.length)||!(s!=null&&s.length))return;const h=ie(o)?{...o}:o,d=n.flatMap(l=>a.flatMap(u=>s.map(g=>i(l,u,g,h))));p(()=>{d.forEach(l=>l())})},{flush:"post"})}function re(){const t=e.shallowRef(!1),i=e.getCurrentInstance();return i&&e.onMounted(()=>{t.value=!0},i),t}function q(t){const i=re();return e.computed(()=>(i.value,!!t()))}function ce(t,i,r={}){const{window:n=z,...a}=r;let s;const o=q(()=>n&&"MutationObserver"in n),c=()=>{s&&(s.disconnect(),s=void 0)},p=e.watch(e.computed(()=>{const l=T(e.toValue(t)).map(P).filter(te);return new Set(l)}),l=>{c(),o.value&&l.size&&(s=new MutationObserver(i),l.forEach(u=>s.observe(u,a)))},{immediate:!0,flush:"post"}),h=()=>s==null?void 0:s.takeRecords(),d=()=>{p(),c()};return A(d),{isSupported:o,stop:d,takeRecords:h}}function de(t,i,r={}){const{window:n=z,document:a=n==null?void 0:n.document,flush:s="sync"}=r;if(!n||!a)return ae;let o;const c=d=>{o==null||o(),o=d},p=e.watchEffect(()=>{const d=P(t);if(d){const{stop:l}=ce(a,u=>{u.map(g=>[...g.removedNodes]).flat().some(g=>g===d||g.contains(d))&&i(u)},{window:n,childList:!0,subtree:!0});c(l)}},{flush:s}),h=()=>{p(),c()};return A(h),h}function fe(t,i,r={}){const{window:n=z,...a}=r;let s;const o=q(()=>n&&"ResizeObserver"in n),c=()=>{s&&(s.disconnect(),s=void 0)},p=e.watch(e.computed(()=>{const d=e.toValue(t);return Array.isArray(d)?d.map(l=>P(l)):[P(d)]}),d=>{if(c(),o.value&&n){s=new ResizeObserver(i);for(const l of d)l&&s.observe(l,a)}},{immediate:!0,flush:"post"}),h=()=>{c(),p()};return A(h),{isSupported:o,stop:h}}function U(t,i={}){const{delayEnter:r=0,delayLeave:n=0,triggerOnRemoval:a=!1,window:s=z}=i,o=e.shallowRef(!1);let c;const p=h=>{const d=h?r:n;c&&(clearTimeout(c),c=void 0),d?c=setTimeout(()=>o.value=h,d):o.value=h};return s&&(B(t,"mouseenter",()=>p(!0),{passive:!0}),B(t,"mouseleave",()=>p(!1),{passive:!0}),a&&de(e.computed(()=>P(t)),()=>p(!1))),o}function ue(t,i={width:0,height:0},r={}){const{window:n=z,box:a="content-box"}=r,s=e.computed(()=>{var l;return(l=P(t))===null||l===void 0||(l=l.namespaceURI)===null||l===void 0?void 0:l.includes("svg")}),o=e.shallowRef(i.width),c=e.shallowRef(i.height),{stop:p}=fe(t,([l])=>{const u=a==="border-box"?l.borderBoxSize:a==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(n&&s.value){const g=P(t);if(g){const b=g.getBoundingClientRect();o.value=b.width,c.value=b.height}}else if(u){const g=T(u);o.value=g.reduce((b,{inlineSize:y})=>b+y,0),c.value=g.reduce((b,{blockSize:y})=>b+y,0)}else o.value=l.contentRect.width,c.value=l.contentRect.height},r);le(()=>{const l=P(t);l&&(o.value="offsetWidth"in l?l.offsetWidth:i.width,c.value="offsetHeight"in l?l.offsetHeight:i.height)});const h=e.watch(()=>P(t),l=>{o.value=l?i.width:0,c.value=l?i.height:0});function d(){p(),h()}return{width:o,height:c,stop:d}}const G="20px",N=e.ref(!1),E=e.ref(!1),S=e.ref(!0),D=e.ref(0);function Z(t){const i=(t==null?void 0:t.verticalNavRef)||e.ref(null),r=(t==null?void 0:t.innerPanesContainerRef)||e.ref(null),n=(t==null?void 0:t.paneLeftRef)||e.ref(null),a=(t==null?void 0:t.paneCenterRef)||e.ref(null),s=(t==null?void 0:t.paneRightRef)||e.ref(null),o=f=>{var m,R,x,k,C;switch(f){case"verticalNav":return((m=i.value)==null?void 0:m.offsetWidth)||0;case"innerPanesContainer":return((R=r.value)==null?void 0:R.offsetWidth)||0;case"paneLeft":return((x=n.value)==null?void 0:x.offsetWidth)||0;case"paneCenter":return((k=a.value)==null?void 0:k.offsetWidth)||0;case"paneRight":return((C=s.value)==null?void 0:C.offsetWidth)||0;default:return 0}},c=e.ref(50),p=e.ref(0),h=e.ref(0),d=e.ref(0),l=e.ref(0),u=f=>{if(a.value){if(f){a.value.style.width=`${f}%`,D.value=o("paneCenter");return}else(typeof c.value!="number"||!isFinite(c.value))&&(c.value=38);a.value.style.width=`${c.value}%`,D.value=o("paneCenter")}},g=()=>{var f;a.value&&((f=s.value)==null?void 0:f.style.display)==="none"?(a.value.style.flex="1",u(100)):(a.value&&(a.value.style.flex=""),u())},b=()=>{var x;if(!r.value||!a.value)return;const f=100,m=o("innerPanesContainer")-o("verticalNav")-o("paneLeft")-f,R=c.value/100*o("innerPanesContainer");if(R<f?c.value=f/o("innerPanesContainer")*100:R>m&&(c.value=m/o("innerPanesContainer")*100),a.value&&s.value&&((x=s.value)==null?void 0:x.style.display)==="none"){u(100);return}u()},y=f=>{!a.value||f.button!==0||(E.value=!0,p.value=f.clientX,h.value=a.value.offsetWidth||0)},v=f=>{if(!E.value||!r.value||!a.value)return;const m=r.value.offsetWidth,R=f.clientX-p.value,k=(h.value+R)/m*100,C=100/m*100,I=(m-100)/m*100;c.value=Math.min(Math.max(C,k),I),u()},L=()=>{E.value=!1},_=f=>{!n.value||!S.value||f.button!==0||(N.value=!0,d.value=f.clientX,l.value=n.value.offsetWidth||0)},M=f=>{if(!N.value||!n.value)return;let m=l.value+(f.clientX-d.value);const R=Number(Y.replace(/px$/i,"")),x=Number(O.replace(/px$/i,""));m<R&&(m=R),m>x&&(m=x),n.value.style.width=`${m}px`,d.value=f.clientX,l.value=m,D.value=o("paneCenter")},W=()=>{N.value=!1},V=()=>{E.value||b()},$=async()=>{S.value=!S.value};return B(window,"resize",V),e.onMounted(async()=>{await e.nextTick(),a.value&&(b(),await e.nextTick(),u(),requestAnimationFrame(()=>{D.value=o("paneCenter")}))}),B(document,"mousemove",f=>{E.value&&v(f),N.value&&M(f)}),B(document,"mouseup",()=>{E.value&&L(),N.value&&W()}),{isDraggingPaneLeft:e.readonly(N),isDraggingInnerPanes:e.readonly(E),startDraggingInnerPanes:y,refreshInnerPaneSizes:g,paneLeftExpanded:e.readonly(S),togglePaneLeft:$,startDraggingPaneLeft:_,centerPaneWidth:D}}const pe={actions:{return:"Return",collapse_panel:"Collapse panel",expand_panel:"Expand panel",drag_to_resize:"Click and drag to resize"}};function J(){const t=F.createI18n("en-us",pe);return{i18n:t,i18nT:F.i18nTComponent(t)}}const he={class:"kong-ui-public-split-pane-vertical-navigation"},ge={class:"split-pane-nav"},me={class:"top"},be={class:"bottom"},ve=e.defineComponent({__name:"VerticalNavigation",props:{paneLeftWidth:{default:0},paneLeftVisible:{type:Boolean,default:!0},items:{default:()=>[]}},setup(t){e.useCssVars(u=>({eaa86402:d.value}));const{i18n:i}=J(),r=Q.useRouter(),{paneLeftExpanded:n,togglePaneLeft:a,isDraggingPaneLeft:s,isDraggingInnerPanes:o}=Z(),c=e.ref(!1),p=e.ref(!1),h=e.computed(()=>c.value||s.value||o.value),d=e.computed(()=>`${t.paneLeftWidth-8}px`),l=u=>{n.value||a(),!u.active&&u.to&&r.push(u.to)};return e.onMounted(async()=>{await e.nextTick(),await new Promise(u=>setTimeout(u,500)),p.value=!0}),(u,g)=>{const b=e.resolveComponent("KButton"),y=e.resolveComponent("KTooltip");return e.openBlock(),e.createElementBlock("div",he,[e.createElementVNode("nav",ge,[e.createElementVNode("div",me,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,v=>(e.openBlock(),e.createBlock(y,{key:v.tooltip,"kpop-attributes":{offset:"10px"},label:v.tooltip,placement:"right"},{default:e.withCtx(()=>[e.createVNode(b,{appearance:"none","aria-label":v.tooltip,class:e.normalizeClass(["split-pane-nav-item",{active:v.active}]),"data-testid":`kong-ui-public-split-pane-vertical-navigation-nav-item-${v.testid}`,icon:"",size:"large",style:{cursor:"pointer"},to:v.to,onClickCapture:e.withModifiers(L=>l(v),["prevent"])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(v.icon),{decorative:"",size:`var(--kui-icon-size-40, ${e.unref(G)})`},null,8,["size"]))]),_:2},1032,["aria-label","class","data-testid","to","onClickCapture"])]),_:2},1032,["label"]))),128))]),e.createElementVNode("div",be,[t.paneLeftVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["toggle-left-panel-control",{expanded:e.unref(n),"disable-animation":!p.value||e.unref(s)||e.unref(o)}]),onTransitionend:g[0]||(g[0]=e.withModifiers(v=>c.value=!1,["self"])),onTransitionstart:g[1]||(g[1]=e.withModifiers(v=>c.value=!0,["self"]))},[(e.openBlock(),e.createBlock(y,{key:String(e.unref(n)),"kpop-attributes":e.unref(n)?void 0:{offset:"10px"},label:h.value?void 0:e.unref(n)?e.unref(i).t("actions.collapse_panel"):e.unref(i).t("actions.expand_panel"),placement:e.unref(n)?"left":"right"},{default:e.withCtx(()=>[e.createVNode(b,{appearance:"none","aria-controls":"left-pane","aria-expanded":e.unref(n),"aria-label":e.unref(n)?e.unref(i).t("actions.collapse_panel"):e.unref(i).t("actions.expand_panel"),class:"split-pane-nav-item toggle-left-panel","data-testid":"kong-ui-public-split-pane-toggle-left-panel-button",icon:"",size:"large",onClick:e.unref(a)},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(n)?e.unref(X.ChevronDoubleLeftIcon):e.unref(X.ChevronDoubleRightIcon)),{decorative:"",size:`var(--kui-icon-size-40, ${e.unref(G)})`},null,8,["size"]))]),_:1},8,["aria-expanded","aria-label","onClick"])]),_:1},8,["kpop-attributes","label","placement"]))],34)):e.createCommentVNode("",!0)])])])}}}),H=(t,i)=>{const r=t.__vccOpts||t;for(const[n,a]of i)r[n]=a;return r},ke=H(ve,[["__scopeId","data-v-59e8017f"]]),Ce={class:"split-pane-container"},Re={class:"split-pane-container-inner"},we={class:"panes"},xe=["aria-hidden","tabindex"],Pe=["title"],ye={class:"split-pane-container-inner-content"},Ee=["aria-hidden","tabindex"],Le=["title"],We=["aria-hidden","tabindex"],ze=H(e.defineComponent({__name:"SplitPane",props:{resizable:{type:Boolean,default:!0},showResizeHandle:{type:Boolean,default:!0},showNavigation:{type:Boolean,default:!0},navigationItems:{default:()=>[]},paneLeft:{default:()=>({visible:!0,maxWidth:O})},paneCenter:{default:()=>({visible:!0,maxWidth:j})},paneRight:{default:()=>({visible:!0,maxWidth:K})}},setup(t){e.useCssVars(k=>({v1300c9c8:n.value,v183c98aa:a.value,bf8b5faa:s.value}));const i=e.useSlots(),r=k=>k==="left"?t.paneLeft.maxWidth!==void 0?t.paneLeft.maxWidth:O:k==="center"?t.resizable?"none":t.paneCenter.maxWidth!==void 0?t.paneCenter.maxWidth:j:k==="right"?t.resizable?"none":t.paneRight.maxWidth!==void 0?t.paneRight.maxWidth:K:"none",n=e.computed(()=>r("left")),a=e.computed(()=>r("center")),s=e.computed(()=>r("right")),o=e.useTemplateRef("verticalNavRef"),c=e.useTemplateRef("innerPanesContainerRef"),p=e.useTemplateRef("paneLeftRef"),h=e.useTemplateRef("paneCenterRef"),d=e.useTemplateRef("paneRightRef"),l=e.useTemplateRef("paneLeftDivider"),u=e.useTemplateRef("innerPanesDivider"),{startDraggingInnerPanes:g,startDraggingPaneLeft:b,refreshInnerPaneSizes:y,paneLeftExpanded:v,isDraggingPaneLeft:L,isDraggingInnerPanes:_}=Z({verticalNavRef:o,innerPanesContainerRef:c,paneLeftRef:p,paneCenterRef:h,paneRightRef:d}),{i18n:M}=J(),W=e.computed(()=>!!i["pane-left"]&&t.paneLeft.visible!==!1&&v.value),V=e.computed(()=>!!i["pane-center"]&&t.paneCenter.visible!==!1),$=e.computed(()=>!!i["pane-right"]&&t.paneRight.visible!==!1),f=e.computed(()=>t.resizable&&t.showResizeHandle&&!!i["pane-center"]&&t.paneCenter.visible!==!1&&!!i["pane-right"]&&t.paneRight.visible!==!1),m=U(l),R=U(u),{width:x}=ue(p);return e.watch(()=>t.paneRight.visible,async()=>{t.resizable&&(await e.nextTick(),y())},{flush:"post"}),(k,C)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["kong-ui-public-split-pane",{"has-navigation":t.showNavigation}]),"data-testid":"split-pane"},[e.createElementVNode("div",Ce,[t.showNavigation?(e.openBlock(),e.createBlock(ke,{key:0,ref_key:"verticalNavRef",ref:o,items:t.navigationItems,"pane-left-visible":t.paneLeft.visible!==!1,"pane-left-width":e.unref(x)},null,8,["items","pane-left-visible","pane-left-width"])):e.createCommentVNode("",!0),e.createElementVNode("div",Re,[e.createElementVNode("div",we,[e.createElementVNode("div",{ref_key:"paneLeftRef",ref:p,"aria-hidden":W.value?void 0:"true",class:e.normalizeClass(["split-pane-left",[{expanded:e.unref(v),"show-resize-border":e.unref(m)},{"is-dragging-pane-left":e.unref(L)},{"is-dragging-pane":e.unref(L)||e.unref(_)}]]),"data-testid":"split-pane-left",tabindex:W.value?0:-1},[e.renderSlot(k.$slots,"pane-left",{},void 0,!0)],10,xe),W.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"paneLeftDivider",ref:l,class:"split-pane-resize-divider left","data-testid":"split-pane-resize-divider-left",tabindex:"0",title:e.unref(M).t("actions.drag_to_resize"),onMousedown:C[0]||(C[0]=(...I)=>e.unref(b)&&e.unref(b)(...I))},[...C[2]||(C[2]=[e.createElementVNode("div",{class:"split-pane-drag-handle"},null,-1)])],40,Pe)):e.createCommentVNode("",!0),e.createElementVNode("div",ye,[i.toolbar?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["split-pane-toolbar-container",{"has-resize-divider-left":W.value}]),"data-testid":"split-pane-toolbar"},[e.renderSlot(k.$slots,"toolbar",{},void 0,!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"innerPanesContainerRef",ref:c,class:"split-pane-inner-panes"},[e.withDirectives(e.createElementVNode("div",{ref_key:"paneCenterRef",ref:h,"aria-hidden":V.value?void 0:"true",class:e.normalizeClass(["split-pane-center",[{"has-resize-divider-left":W.value},{"has-resize-divider-right":f.value},{"is-dragging-pane":e.unref(L)||e.unref(_)}]]),"data-testid":"split-pane-center",tabindex:V.value?0:-1},[e.renderSlot(k.$slots,"pane-center",{},void 0,!0)],10,Ee),[[e.vShow,V.value]]),f.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"innerPanesDivider",ref:u,class:"split-pane-resize-divider right","data-testid":"split-pane-resize-divider-right",tabindex:"0",title:e.unref(M).t("actions.drag_to_resize"),onMousedown:C[1]||(C[1]=(...I)=>e.unref(g)&&e.unref(g)(...I))},[...C[3]||(C[3]=[e.createElementVNode("div",{class:"split-pane-drag-handle"},null,-1)])],40,Le)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",{ref_key:"paneRightRef",ref:d,"aria-hidden":$.value?void 0:"true",class:e.normalizeClass(["split-pane-right",[{"has-toolbar":!!i.toolbar},{"show-resize-border":e.unref(R)},{"is-dragging-inner-panes":e.unref(_)},{"is-dragging-pane":e.unref(L)||e.unref(_)}]]),"data-testid":"split-pane-right",tabindex:$.value?0:-1},[e.renderSlot(k.$slots,"pane-right",{},void 0,!0)],10,We),[[e.vShow,$.value]])],512)])])])])],2))}}),[["__scopeId","data-v-a19fbade"]]),Ne={},_e={class:"kong-ui-public-split-pane-toolbar","data-testid":"kong-ui-public-split-pane-toolbar"},Te={class:"left","data-testid":"split-toolbar-left"},Be={key:0,class:"center","data-testid":"split-toolbar-center"},De={key:1,class:"right","data-testid":"split-toolbar-right"};function Ve(t,i){return e.openBlock(),e.createElementBlock("div",_e,[e.createElementVNode("div",Te,[e.renderSlot(t.$slots,"left",{},void 0,!0)]),t.$slots.center?(e.openBlock(),e.createElementBlock("div",Be,[e.renderSlot(t.$slots,"center",{},void 0,!0)])):e.createCommentVNode("",!0),t.$slots.right?(e.openBlock(),e.createElementBlock("div",De,[e.renderSlot(t.$slots,"right",{},void 0,!0)])):e.createCommentVNode("",!0)])}const $e=H(Ne,[["render",Ve],["__scopeId","data-v-44b95676"]]);w.SplitPane=ze,w.SplitToolbar=$e,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})});
1
+ (function(k,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@kong/icons"),require("vue-router"),require("@kong-ui-public/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@kong/icons","vue-router","@kong-ui-public/i18n"],e):(k=typeof globalThis<"u"?globalThis:k||self,e(k["kong-ui-public-split-pane"]={},k.Vue,k.KongIcons,k.VueRouter,k["kong-ui-public-i18n"]))})(this,(function(k,e,X,Z,F){"use strict";const J="260px",A="500px";function H(t,a){return e.getCurrentScope()?(e.onScopeDispose(t,a),!0):!1}const Q=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Y=t=>t!=null,ee=Object.prototype.toString,te=t=>ee.call(t)==="[object Object]",ne=()=>{};function W(t){return Array.isArray(t)?t:[t]}function ae(t){return e.getCurrentInstance()}function ie(t,a=!0,r){ae()?e.onMounted(t,r):a?t():e.nextTick(t)}function oe(t,a,r){return e.watch(t,a,{...r,immediate:!0})}const T=Q?window:void 0;function R(t){var a;const r=e.toValue(t);return(a=r?.$el)!==null&&a!==void 0?a:r}function z(...t){const a=(n,i,l,o)=>(n.addEventListener(i,l,o),()=>n.removeEventListener(i,l,o)),r=e.computed(()=>{const n=W(e.toValue(t[0])).filter(i=>i!=null);return n.every(i=>typeof i!="string")?n:void 0});return oe(()=>{var n,i;return[(n=(i=r.value)===null||i===void 0?void 0:i.map(l=>R(l)))!==null&&n!==void 0?n:[T].filter(l=>l!=null),W(e.toValue(r.value?t[1]:t[0])),W(e.unref(r.value?t[2]:t[1])),e.toValue(r.value?t[3]:t[2])]},([n,i,l,o],c,u)=>{if(!n?.length||!i?.length||!l?.length)return;const h=te(o)?{...o}:o,d=n.flatMap(s=>i.flatMap(f=>l.map(g=>a(s,f,g,h))));u(()=>{d.forEach(s=>s())})},{flush:"post"})}function se(){const t=e.shallowRef(!1),a=e.getCurrentInstance();return a&&e.onMounted(()=>{t.value=!0},a),t}function U(t){const a=se();return e.computed(()=>(a.value,!!t()))}function le(t,a,r={}){const{window:n=T,...i}=r;let l;const o=U(()=>n&&"MutationObserver"in n),c=()=>{l&&(l.disconnect(),l=void 0)},u=e.watch(e.computed(()=>{const s=W(e.toValue(t)).map(R).filter(Y);return new Set(s)}),s=>{c(),o.value&&s.size&&(l=new MutationObserver(a),s.forEach(f=>l.observe(f,i)))},{immediate:!0,flush:"post"}),h=()=>l?.takeRecords(),d=()=>{u(),c()};return H(d),{isSupported:o,stop:d,takeRecords:h}}function re(t,a,r={}){const{window:n=T,document:i=n?.document,flush:l="sync"}=r;if(!n||!i)return ne;let o;const c=d=>{o?.(),o=d},u=e.watchEffect(()=>{const d=R(t);if(d){const{stop:s}=le(i,f=>{f.map(g=>[...g.removedNodes]).flat().some(g=>g===d||g.contains(d))&&a(f)},{window:n,childList:!0,subtree:!0});c(s)}},{flush:l}),h=()=>{u(),c()};return H(h),h}function ce(t,a,r={}){const{window:n=T,...i}=r;let l;const o=U(()=>n&&"ResizeObserver"in n),c=()=>{l&&(l.disconnect(),l=void 0)},u=e.watch(e.computed(()=>{const d=e.toValue(t);return Array.isArray(d)?d.map(s=>R(s)):[R(d)]}),d=>{if(c(),o.value&&n){l=new ResizeObserver(a);for(const s of d)s&&l.observe(s,i)}},{immediate:!0,flush:"post"}),h=()=>{c(),u()};return H(h),{isSupported:o,stop:h}}function j(t,a={}){const{delayEnter:r=0,delayLeave:n=0,triggerOnRemoval:i=!1,window:l=T}=a,o=e.shallowRef(!1);let c;const u=h=>{const d=h?r:n;c&&(clearTimeout(c),c=void 0),d?c=setTimeout(()=>o.value=h,d):o.value=h};return l&&(z(t,"mouseenter",()=>u(!0),{passive:!0}),z(t,"mouseleave",()=>u(!1),{passive:!0}),i&&re(e.computed(()=>R(t)),()=>u(!1))),o}function de(t,a={width:0,height:0},r={}){const{window:n=T,box:i="content-box"}=r,l=e.computed(()=>{var s;return(s=R(t))===null||s===void 0||(s=s.namespaceURI)===null||s===void 0?void 0:s.includes("svg")}),o=e.shallowRef(a.width),c=e.shallowRef(a.height),{stop:u}=ce(t,([s])=>{const f=i==="border-box"?s.borderBoxSize:i==="content-box"?s.contentBoxSize:s.devicePixelContentBoxSize;if(n&&l.value){const g=R(t);if(g){const b=g.getBoundingClientRect();o.value=b.width,c.value=b.height}}else if(f){const g=W(f);o.value=g.reduce((b,{inlineSize:P})=>b+P,0),c.value=g.reduce((b,{blockSize:P})=>b+P,0)}else o.value=s.contentRect.width,c.value=s.contentRect.height},r);ie(()=>{const s=R(t);s&&(o.value="offsetWidth"in s?s.offsetWidth:a.width,c.value="offsetHeight"in s?s.offsetHeight:a.height)});const h=e.watch(()=>R(t),s=>{o.value=s?a.width:0,c.value=s?a.height:0});function d(){u(),h()}return{width:o,height:c,stop:d}}const G="20px",L=e.ref(!1),E=e.ref(!1),S=e.ref(!0),D=e.ref(0);function K(t){const a=t?.verticalNavRef||e.ref(null),r=t?.innerPanesContainerRef||e.ref(null),n=t?.paneLeftRef||e.ref(null),i=t?.paneCenterRef||e.ref(null),l=t?.paneRightRef||e.ref(null),o=p=>{switch(p){case"verticalNav":return a.value?.offsetWidth||0;case"innerPanesContainer":return r.value?.offsetWidth||0;case"paneLeft":return n.value?.offsetWidth||0;case"paneCenter":return i.value?.offsetWidth||0;case"paneRight":return l.value?.offsetWidth||0;default:return 0}},c=e.ref(50),u=e.ref(0),h=e.ref(0),d=e.ref(0),s=e.ref(0),f=p=>{if(i.value){if(p){i.value.style.width=`${p}%`,D.value=o("paneCenter");return}else(typeof c.value!="number"||!isFinite(c.value))&&(c.value=38);i.value.style.width=`${c.value}%`,D.value=o("paneCenter")}},g=()=>{i.value&&l.value?.style.display==="none"?(i.value.style.flex="1",f(100)):(i.value&&(i.value.style.flex=""),f())},b=()=>{if(!r.value||!i.value)return;const p=100,m=o("innerPanesContainer")-o("verticalNav")-o("paneLeft")-p,x=c.value/100*o("innerPanesContainer");if(x<p?c.value=p/o("innerPanesContainer")*100:x>m&&(c.value=m/o("innerPanesContainer")*100),i.value&&l.value&&l.value?.style.display==="none"){f(100);return}f()},P=p=>{!i.value||p.button!==0||(E.value=!0,u.value=p.clientX,h.value=i.value.offsetWidth||0)},v=p=>{if(!E.value||!r.value||!i.value)return;const m=r.value.offsetWidth,x=p.clientX-u.value,C=(h.value+x)/m*100,w=100/m*100,$=(m-100)/m*100;c.value=Math.min(Math.max(w,C),$),f()},_=()=>{E.value=!1},N=p=>{!n.value||!S.value||p.button!==0||(L.value=!0,d.value=p.clientX,s.value=n.value.offsetWidth||0)},M=p=>{if(!L.value||!n.value)return;let m=s.value+(p.clientX-d.value);const x=Number(J.replace(/px$/i,"")),V=Number(A.replace(/px$/i,""));m<x&&(m=x),m>V&&(m=V),n.value.style.width=`${m}px`,d.value=p.clientX,s.value=m,D.value=o("paneCenter")},y=()=>{L.value=!1},I=()=>{E.value||b()},B=async()=>{S.value=!S.value};return z(window,"resize",I),e.onMounted(async()=>{await e.nextTick(),i.value&&(b(),await e.nextTick(),f(),requestAnimationFrame(()=>{D.value=o("paneCenter")}))}),z(document,"mousemove",p=>{E.value&&v(p),L.value&&M(p)}),z(document,"mouseup",()=>{E.value&&_(),L.value&&y()}),{isDraggingPaneLeft:e.readonly(L),isDraggingInnerPanes:e.readonly(E),startDraggingInnerPanes:P,refreshInnerPaneSizes:g,paneLeftExpanded:e.readonly(S),togglePaneLeft:B,startDraggingPaneLeft:N,centerPaneWidth:D}}const fe={actions:{return:"Return",collapse_panel:"Collapse panel",expand_panel:"Expand panel",drag_to_resize:"Click and drag to resize"}};function q(){const t=F.createI18n("en-us",fe);return{i18n:t,i18nT:F.i18nTComponent(t)}}const pe={class:"kong-ui-public-split-pane-vertical-navigation"},ue={class:"split-pane-nav"},he={class:"top"},ge={class:"bottom"},me=e.defineComponent({__name:"VerticalNavigation",props:{paneLeftWidth:{default:0},paneLeftVisible:{type:Boolean,default:!0},items:{default:()=>[]}},setup(t){e.useCssVars(f=>({eaa86402:d.value}));const{i18n:a}=q(),r=Z.useRouter(),{paneLeftExpanded:n,togglePaneLeft:i,isDraggingPaneLeft:l,isDraggingInnerPanes:o}=K(),c=e.ref(!1),u=e.ref(!1),h=e.computed(()=>c.value||l.value||o.value),d=e.computed(()=>`${t.paneLeftWidth-8}px`),s=f=>{n.value||i(),!f.active&&f.to&&r.push(f.to)};return e.onMounted(async()=>{await e.nextTick(),await new Promise(f=>setTimeout(f,500)),u.value=!0}),(f,g)=>{const b=e.resolveComponent("KButton"),P=e.resolveComponent("KTooltip");return e.openBlock(),e.createElementBlock("div",pe,[e.createElementVNode("nav",ue,[e.createElementVNode("div",he,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,v=>(e.openBlock(),e.createBlock(P,{key:v.tooltip,"kpop-attributes":{offset:"10px"},label:v.tooltip,placement:"right"},{default:e.withCtx(()=>[e.createVNode(b,{appearance:"none","aria-label":v.tooltip,class:e.normalizeClass(["split-pane-nav-item",{active:v.active}]),"data-testid":`kong-ui-public-split-pane-vertical-navigation-nav-item-${v.testid}`,icon:"",size:"large",style:{cursor:"pointer"},to:v.to,onClickCapture:e.withModifiers(_=>s(v),["prevent"])},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(v.icon),{decorative:"",size:`var(--kui-icon-size-40, ${e.unref(G)})`},null,8,["size"]))]),_:2},1032,["aria-label","class","data-testid","to","onClickCapture"])]),_:2},1032,["label"]))),128))]),e.createElementVNode("div",ge,[t.paneLeftVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["toggle-left-panel-control",{expanded:e.unref(n),"disable-animation":!u.value||e.unref(l)||e.unref(o)}]),onTransitionend:g[0]||(g[0]=e.withModifiers(v=>c.value=!1,["self"])),onTransitionstart:g[1]||(g[1]=e.withModifiers(v=>c.value=!0,["self"]))},[(e.openBlock(),e.createBlock(P,{key:String(e.unref(n)),"kpop-attributes":e.unref(n)?void 0:{offset:"10px"},label:h.value?void 0:e.unref(n)?e.unref(a).t("actions.collapse_panel"):e.unref(a).t("actions.expand_panel"),placement:e.unref(n)?"left":"right"},{default:e.withCtx(()=>[e.createVNode(b,{appearance:"none","aria-controls":"left-pane","aria-expanded":e.unref(n),"aria-label":e.unref(n)?e.unref(a).t("actions.collapse_panel"):e.unref(a).t("actions.expand_panel"),class:"split-pane-nav-item toggle-left-panel","data-testid":"kong-ui-public-split-pane-toggle-left-panel-button",icon:"",size:"large",onClick:e.unref(i)},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(n)?e.unref(X.ChevronDoubleLeftIcon):e.unref(X.ChevronDoubleRightIcon)),{decorative:"",size:`var(--kui-icon-size-40, ${e.unref(G)})`},null,8,["size"]))]),_:1},8,["aria-expanded","aria-label","onClick"])]),_:1},8,["kpop-attributes","label","placement"]))],34)):e.createCommentVNode("",!0)])])])}}}),O=(t,a)=>{const r=t.__vccOpts||t;for(const[n,i]of a)r[n]=i;return r},be=O(me,[["__scopeId","data-v-59e8017f"]]),ve={class:"split-pane-container"},ke={class:"split-pane-container-inner"},Ce={class:"panes"},Re=["aria-hidden","tabindex"],Pe=["title"],we={class:"split-pane-container-inner-content"},xe=["aria-hidden","tabindex"],Ee=["title"],_e=["aria-hidden","tabindex"],ye=O(e.defineComponent({__name:"SplitPane",props:{resizable:{type:Boolean,default:!0},showResizeHandle:{type:Boolean,default:!0},showNavigation:{type:Boolean,default:!0},navigationItems:{default:()=>[]},paneLeft:{default:()=>({visible:!0,maxWidth:A})},paneCenter:{default:()=>({visible:!0,maxWidth:"50%"})},paneRight:{default:()=>({visible:!0,maxWidth:"50%"})}},setup(t){e.useCssVars(C=>({v1300c9c8:n.value,v183c98aa:i.value,bf8b5faa:l.value}));const a=e.useSlots(),r=C=>C==="left"?t.paneLeft.maxWidth!==void 0?t.paneLeft.maxWidth:A:C==="center"?t.resizable?"none":t.paneCenter.maxWidth!==void 0?t.paneCenter.maxWidth:"50%":C==="right"?t.resizable?"none":t.paneRight.maxWidth!==void 0?t.paneRight.maxWidth:"50%":"none",n=e.computed(()=>r("left")),i=e.computed(()=>r("center")),l=e.computed(()=>r("right")),o=e.useTemplateRef("verticalNavRef"),c=e.useTemplateRef("innerPanesContainerRef"),u=e.useTemplateRef("paneLeftRef"),h=e.useTemplateRef("paneCenterRef"),d=e.useTemplateRef("paneRightRef"),s=e.useTemplateRef("paneLeftDivider"),f=e.useTemplateRef("innerPanesDivider"),{startDraggingInnerPanes:g,startDraggingPaneLeft:b,refreshInnerPaneSizes:P,paneLeftExpanded:v,isDraggingPaneLeft:_,isDraggingInnerPanes:N}=K({verticalNavRef:o,innerPanesContainerRef:c,paneLeftRef:u,paneCenterRef:h,paneRightRef:d}),{i18n:M}=q(),y=e.computed(()=>!!a["pane-left"]&&t.paneLeft.visible!==!1&&v.value),I=e.computed(()=>!!a["pane-center"]&&t.paneCenter.visible!==!1),B=e.computed(()=>!!a["pane-right"]&&t.paneRight.visible!==!1),p=e.computed(()=>t.resizable&&t.showResizeHandle&&!!a["pane-center"]&&t.paneCenter.visible!==!1&&!!a["pane-right"]&&t.paneRight.visible!==!1),m=j(s),x=j(f),{width:V}=de(u);return e.watch(()=>t.paneRight.visible,async()=>{t.resizable&&(await e.nextTick(),P())},{flush:"post"}),(C,w)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["kong-ui-public-split-pane",{"has-navigation":t.showNavigation}]),"data-testid":"split-pane"},[e.createElementVNode("div",ve,[t.showNavigation?(e.openBlock(),e.createBlock(be,{key:0,ref_key:"verticalNavRef",ref:o,items:t.navigationItems,"pane-left-visible":t.paneLeft.visible!==!1,"pane-left-width":e.unref(V)},null,8,["items","pane-left-visible","pane-left-width"])):e.createCommentVNode("",!0),e.createElementVNode("div",ke,[e.createElementVNode("div",Ce,[e.createElementVNode("div",{ref_key:"paneLeftRef",ref:u,"aria-hidden":y.value?void 0:"true",class:e.normalizeClass(["split-pane-left",[{expanded:e.unref(v),"show-resize-border":e.unref(m)},{"is-dragging-pane-left":e.unref(_)},{"is-dragging-pane":e.unref(_)||e.unref(N)}]]),"data-testid":"split-pane-left",tabindex:y.value?0:-1},[e.renderSlot(C.$slots,"pane-left",{},void 0,!0)],10,Re),y.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"paneLeftDivider",ref:s,class:"split-pane-resize-divider left","data-testid":"split-pane-resize-divider-left",tabindex:"0",title:e.unref(M).t("actions.drag_to_resize"),onMousedown:w[0]||(w[0]=(...$)=>e.unref(b)&&e.unref(b)(...$))},[...w[2]||(w[2]=[e.createElementVNode("div",{class:"split-pane-drag-handle"},null,-1)])],40,Pe)):e.createCommentVNode("",!0),e.createElementVNode("div",we,[a.toolbar?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["split-pane-toolbar-container",{"has-resize-divider-left":y.value}]),"data-testid":"split-pane-toolbar"},[e.renderSlot(C.$slots,"toolbar",{},void 0,!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"innerPanesContainerRef",ref:c,class:"split-pane-inner-panes"},[e.withDirectives(e.createElementVNode("div",{ref_key:"paneCenterRef",ref:h,"aria-hidden":I.value?void 0:"true",class:e.normalizeClass(["split-pane-center",[{"has-resize-divider-left":y.value},{"has-resize-divider-right":p.value},{"is-dragging-pane":e.unref(_)||e.unref(N)}]]),"data-testid":"split-pane-center",tabindex:I.value?0:-1},[e.renderSlot(C.$slots,"pane-center",{},void 0,!0)],10,xe),[[e.vShow,I.value]]),p.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"innerPanesDivider",ref:f,class:"split-pane-resize-divider right","data-testid":"split-pane-resize-divider-right",tabindex:"0",title:e.unref(M).t("actions.drag_to_resize"),onMousedown:w[1]||(w[1]=(...$)=>e.unref(g)&&e.unref(g)(...$))},[...w[3]||(w[3]=[e.createElementVNode("div",{class:"split-pane-drag-handle"},null,-1)])],40,Ee)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",{ref_key:"paneRightRef",ref:d,"aria-hidden":B.value?void 0:"true",class:e.normalizeClass(["split-pane-right",[{"has-toolbar":!!a.toolbar},{"show-resize-border":e.unref(x)},{"is-dragging-inner-panes":e.unref(N)},{"is-dragging-pane":e.unref(_)||e.unref(N)}]]),"data-testid":"split-pane-right",tabindex:B.value?0:-1},[e.renderSlot(C.$slots,"pane-right",{},void 0,!0)],10,_e),[[e.vShow,B.value]])],512)])])])])],2))}}),[["__scopeId","data-v-a19fbade"]]),Te={},Le={class:"kong-ui-public-split-pane-toolbar","data-testid":"kong-ui-public-split-pane-toolbar"},Ne={class:"left","data-testid":"split-toolbar-left"},We={key:0,class:"center","data-testid":"split-toolbar-center"},ze={key:1,class:"right","data-testid":"split-toolbar-right"};function De(t,a){return e.openBlock(),e.createElementBlock("div",Le,[e.createElementVNode("div",Ne,[e.renderSlot(t.$slots,"left",{},void 0,!0)]),t.$slots.center?(e.openBlock(),e.createElementBlock("div",We,[e.renderSlot(t.$slots,"center",{},void 0,!0)])):e.createCommentVNode("",!0),t.$slots.right?(e.openBlock(),e.createElementBlock("div",ze,[e.renderSlot(t.$slots,"right",{},void 0,!0)])):e.createCommentVNode("",!0)])}const Ie=O(Te,[["render",De],["__scopeId","data-v-44b95676"]]);k.SplitPane=ye,k.SplitToolbar=Ie,Object.defineProperty(k,Symbol.toStringTag,{value:"Module"})}));
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .kong-ui-public-split-pane-vertical-navigation[data-v-59e8017f]{color:#bee2ff;color:var(--kui-navigation-color-text, #bee2ff);display:flex;height:100%;justify-content:center;padding:8px;padding:var(--kui-space-40, 8px);position:relative;width:52px;z-index:1}.kong-ui-public-split-pane-vertical-navigation .split-pane-nav[data-v-59e8017f]{align-items:center;display:flex;flex-direction:column;gap:12px;gap:var(--kui-space-50, 12px);justify-content:space-between;width:100%}.kong-ui-public-split-pane-vertical-navigation .split-pane-nav .top[data-v-59e8017f],.kong-ui-public-split-pane-vertical-navigation .split-pane-nav .bottom[data-v-59e8017f]{display:flex;flex-direction:column;flex-grow:1;gap:12px;gap:var(--kui-space-50, 12px);position:relative;width:100%}.kong-ui-public-split-pane-vertical-navigation .split-pane-nav .top[data-v-59e8017f]{align-items:center;justify-content:flex-start}.kong-ui-public-split-pane-vertical-navigation .split-pane-nav .bottom[data-v-59e8017f]{align-items:center;justify-content:flex-end}.kong-ui-public-split-pane-vertical-navigation .split-pane-nav[data-v-59e8017f] .k-popover .popover{pointer-events:none}.kong-ui-public-split-pane-vertical-navigation .split-pane-nav-item[data-v-59e8017f]{align-items:center;background-color:#000933;background-color:var(--kui-navigation-color-background, #000933);border:1px solid transparent;border:var(--kui-border-width-10, 1px) solid var(--kui-color-border-transparent, transparent);border-radius:6px;border-radius:var(--kui-border-radius-30, 6px);color:#bee2ff;color:var(--kui-navigation-color-text, #bee2ff);cursor:pointer;display:flex;justify-content:center;justify-content:space-between;text-decoration:none;transition:color .2s ease;white-space:nowrap}.kong-ui-public-split-pane-vertical-navigation .split-pane-nav-item[data-v-59e8017f]:hover,.kong-ui-public-split-pane-vertical-navigation .split-pane-nav-item[data-v-59e8017f]:focus-visible{color:#eefaff;color:var(--kui-navigation-color-text-hover, #eefaff)}.kong-ui-public-split-pane-vertical-navigation .split-pane-nav-item[data-v-59e8017f]:hover svg,.kong-ui-public-split-pane-vertical-navigation .split-pane-nav-item[data-v-59e8017f]:focus-visible svg{color:#eefaff;color:var(--kui-navigation-color-text-hover, #eefaff)}.kong-ui-public-split-pane-vertical-navigation .split-pane-nav-item[data-v-59e8017f]:focus-visible{box-shadow:0 0 0 1px #fff9 inset;box-shadow:var(--kui-navigation-shadow-focus, 0 0 0 1px rgba(255, 255, 255, .6) inset);outline:none}.kong-ui-public-split-pane-vertical-navigation .split-pane-nav-item[data-v-59e8017f] svg path{color:currentColor;fill:currentColor;transition:all .2s ease-out}.kong-ui-public-split-pane-vertical-navigation .split-pane-nav-item.active[data-v-59e8017f]{background-color:#ffffff1f;background-color:var(--kui-navigation-color-background-selected, rgba(255, 255, 255, .12));border-color:#ffffff1f;border-color:var(--kui-navigation-color-border, rgba(255, 255, 255, .12));color:#00fabe;color:var(--kui-navigation-color-text-selected, #00fabe)}.kong-ui-public-split-pane-vertical-navigation .split-pane-nav-item.active[data-v-59e8017f]:hover,.kong-ui-public-split-pane-vertical-navigation .split-pane-nav-item.active[data-v-59e8017f]:focus-visible{color:#00fabe!important;color:var(--kui-navigation-color-text-selected, #00fabe)!important}.kong-ui-public-split-pane-vertical-navigation .split-pane-nav-item.active[data-v-59e8017f]:hover svg,.kong-ui-public-split-pane-vertical-navigation .split-pane-nav-item.active[data-v-59e8017f]:focus-visible svg{color:#00fabe;color:var(--kui-navigation-color-text-selected, #00fabe)}.kong-ui-public-split-pane-vertical-navigation .split-pane-nav-item.toggle-left-panel[data-v-59e8017f]{border-color:#ffffff1f;border-color:var(--kui-navigation-color-border, rgba(255, 255, 255, .12))}.toggle-left-panel-control[data-v-59e8017f]{left:0;position:absolute;z-index:1}.toggle-left-panel-control[data-v-59e8017f]:not(.disable-animation){transition:left .2s ease-out}.toggle-left-panel-control.expanded[data-v-59e8017f]{left:var(--eaa86402)}[data-v-a19fbade],[data-v-a19fbade] *{box-sizing:border-box}.kong-ui-public-split-pane[data-v-a19fbade]{height:100%}.kong-ui-public-split-pane.has-navigation[data-v-a19fbade]{background-color:#000933;background-color:var(--kui-navigation-color-background, #000933);bottom:0;left:0;position:fixed;right:0;top:0;z-index:2000}.kong-ui-public-split-pane.has-navigation .split-pane-container-inner[data-v-a19fbade]{padding-top:6px;padding-top:var(--kui-space-30, 6px)}.kong-ui-public-split-pane .split-pane-container[data-v-a19fbade]{display:flex;flex-direction:row;height:100%;width:100%}.kong-ui-public-split-pane .split-pane-container-inner[data-v-a19fbade]{display:flex;flex-direction:column;width:100%}.kong-ui-public-split-pane .split-pane-container-inner-content[data-v-a19fbade]{display:flex;flex:1 1 auto;flex-direction:column;height:100%;max-height:calc(100vh - 6px);min-width:0;position:relative;width:100%}.kong-ui-public-split-pane .split-pane-inner-panes[data-v-a19fbade]{display:flex;height:100%;width:100%}.kong-ui-public-split-pane .panes[data-v-a19fbade]{align-items:stretch;background-color:#fff;background-color:var(--kui-color-background, #ffffff);border-top-left-radius:6px;border-top-left-radius:var(--kui-border-radius-30, 6px);display:flex;flex:1 1 auto;flex-direction:row;overflow:hidden;z-index:0}.kong-ui-public-split-pane .split-pane-left[data-v-a19fbade],.kong-ui-public-split-pane .split-pane-center[data-v-a19fbade],.kong-ui-public-split-pane .split-pane-right[data-v-a19fbade]{overflow-x:hidden;overflow-y:auto;position:relative;scrollbar-width:thin}.kong-ui-public-split-pane .split-pane-left.has-toolbar[data-v-a19fbade],.kong-ui-public-split-pane .split-pane-center.has-toolbar[data-v-a19fbade],.kong-ui-public-split-pane .split-pane-right.has-toolbar[data-v-a19fbade]{max-height:calc(100vh - 44px);z-index:1}.kong-ui-public-split-pane .split-pane-left.is-dragging-pane[data-v-a19fbade],.kong-ui-public-split-pane .split-pane-center.is-dragging-pane[data-v-a19fbade],.kong-ui-public-split-pane .split-pane-right.is-dragging-pane[data-v-a19fbade]{pointer-events:none;transition:none;-webkit-user-select:none;user-select:none}.kong-ui-public-split-pane .split-pane-left[data-v-a19fbade]{border-right:1px solid transparent;border-right:var(--kui-border-width-10, 1px) solid var(--kui-color-border-transparent, transparent);border-top-left-radius:6px;border-top-left-radius:var(--kui-border-radius-30, 6px);flex:0 0 auto;max-height:none!important;max-width:0;overflow:hidden;pointer-events:none;position:relative;transition:border-color .1s ease-in-out,max-width .1s ease-in-out;width:260px;will-change:border-color,max-width,min-width;z-index:5}.kong-ui-public-split-pane .split-pane-left.expanded[data-v-a19fbade]{border-right-color:#e0e4ea;border-right-color:var(--kui-color-border, #e0e4ea);max-width:var(--v1300c9c8);pointer-events:auto}.kong-ui-public-split-pane .split-pane-left.is-dragging-pane-left[data-v-a19fbade],.kong-ui-public-split-pane .split-pane-left.expanded.show-resize-border[data-v-a19fbade],.kong-ui-public-split-pane .split-pane-left.show-resize-border[data-v-a19fbade]{border-right-color:#0044f4;border-right-color:var(--kui-color-border-primary, #0044f4)}.kong-ui-public-split-pane .split-pane-center[data-v-a19fbade]{max-width:var(--v183c98aa);min-width:300px;width:300px}.kong-ui-public-split-pane .split-pane-center.has-resize-divider-left[data-v-a19fbade]{margin-left:-3px}.kong-ui-public-split-pane .split-pane-center.has-resize-divider-right[data-v-a19fbade]{margin-right:-3px}.kong-ui-public-split-pane .split-pane-right[data-v-a19fbade]{border-left:1px solid #e0e4ea;border-left:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);flex:1;max-width:var(--bf8b5faa);min-width:300px;transition:border-color .1s ease-in-out}.kong-ui-public-split-pane .split-pane-right.is-dragging-inner-panes[data-v-a19fbade],.kong-ui-public-split-pane .split-pane-right.show-resize-border[data-v-a19fbade]{border-left-color:#0044f4;border-left-color:var(--kui-color-border-primary, #0044f4)}.kong-ui-public-split-pane .split-pane-toolbar-container.has-resize-divider-left[data-v-a19fbade]{margin-left:-3px}.kong-ui-public-split-pane .split-pane-resize-divider[data-v-a19fbade]{align-self:flex-end;background-color:transparent;background-color:var(--kui-color-background-transparent, transparent);cursor:col-resize;height:calc(100% - 43px);position:relative;transition:all .1s ease-in-out;width:3px;z-index:4}.kong-ui-public-split-pane .split-pane-resize-divider.left[data-v-a19fbade]{margin-left:0}.kong-ui-public-split-pane .split-pane-resize-divider.right[data-v-a19fbade]{right:-3px}.kong-ui-public-split-pane-toolbar[data-v-44b95676]{align-items:center;background:#fff;background:var(--kui-color-background, #ffffff);border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);display:flex;flex:0 0 44px;justify-content:space-between;min-height:44px;overflow-x:auto;overflow-y:hidden;padding-left:8px;padding-left:var(--kui-space-40, 8px);padding-right:8px;padding-right:var(--kui-space-40, 8px);position:sticky;scrollbar-width:thin;top:0;z-index:3}.left[data-v-44b95676],.right[data-v-44b95676],.center[data-v-44b95676]{align-items:center;display:flex;gap:8px;gap:var(--kui-space-40, 8px);height:100%}.left[data-v-44b95676],.right[data-v-44b95676]{flex:1 1 0%}.right[data-v-44b95676]{justify-content:flex-end}
1
+ .kong-ui-public-split-pane-vertical-navigation[data-v-59e8017f]{color:#bee2ff;color:var(--kui-navigation-color-text, #bee2ff);display:flex;height:100%;justify-content:center;padding:8px;padding:var(--kui-space-40, 8px);position:relative;width:52px;z-index:1}.kong-ui-public-split-pane-vertical-navigation .split-pane-nav[data-v-59e8017f]{align-items:center;display:flex;flex-direction:column;gap:12px;gap:var(--kui-space-50, 12px);justify-content:space-between;width:100%}.kong-ui-public-split-pane-vertical-navigation .split-pane-nav .top[data-v-59e8017f],.kong-ui-public-split-pane-vertical-navigation .split-pane-nav .bottom[data-v-59e8017f]{display:flex;flex-direction:column;flex-grow:1;gap:12px;gap:var(--kui-space-50, 12px);position:relative;width:100%}.kong-ui-public-split-pane-vertical-navigation .split-pane-nav .top[data-v-59e8017f]{align-items:center;justify-content:flex-start}.kong-ui-public-split-pane-vertical-navigation .split-pane-nav .bottom[data-v-59e8017f]{align-items:center;justify-content:flex-end}.kong-ui-public-split-pane-vertical-navigation .split-pane-nav[data-v-59e8017f] .k-popover .popover{pointer-events:none}.kong-ui-public-split-pane-vertical-navigation .split-pane-nav-item[data-v-59e8017f]{align-items:center;background-color:#000933;background-color:var(--kui-navigation-color-background, #000933);border:1px solid transparent;border:var(--kui-border-width-10, 1px) solid var(--kui-color-border-transparent, transparent);border-radius:6px;border-radius:var(--kui-border-radius-30, 6px);color:#bee2ff;color:var(--kui-navigation-color-text, #bee2ff);cursor:pointer;display:flex;justify-content:center;justify-content:space-between;text-decoration:none;transition:color .2s ease;white-space:nowrap}.kong-ui-public-split-pane-vertical-navigation .split-pane-nav-item[data-v-59e8017f]:hover,.kong-ui-public-split-pane-vertical-navigation .split-pane-nav-item[data-v-59e8017f]:focus-visible{color:#eefaff;color:var(--kui-navigation-color-text-hover, #eefaff)}.kong-ui-public-split-pane-vertical-navigation .split-pane-nav-item[data-v-59e8017f]:hover svg,.kong-ui-public-split-pane-vertical-navigation .split-pane-nav-item[data-v-59e8017f]:focus-visible svg{color:#eefaff;color:var(--kui-navigation-color-text-hover, #eefaff)}.kong-ui-public-split-pane-vertical-navigation .split-pane-nav-item[data-v-59e8017f]:focus-visible{box-shadow:0 0 0 1px #fff9 inset;box-shadow:var(--kui-navigation-shadow-focus, 0 0 0 1px rgba(255, 255, 255, .6) inset);outline:none}.kong-ui-public-split-pane-vertical-navigation .split-pane-nav-item[data-v-59e8017f] svg path{color:currentColor;fill:currentColor;transition:all .2s ease-out}.kong-ui-public-split-pane-vertical-navigation .split-pane-nav-item.active[data-v-59e8017f]{background-color:#ffffff1f;background-color:var(--kui-navigation-color-background-selected, rgba(255, 255, 255, .12));border-color:#ffffff1f;border-color:var(--kui-navigation-color-border, rgba(255, 255, 255, .12));color:#00fabe;color:var(--kui-navigation-color-text-selected, #00fabe)}.kong-ui-public-split-pane-vertical-navigation .split-pane-nav-item.active[data-v-59e8017f]:hover,.kong-ui-public-split-pane-vertical-navigation .split-pane-nav-item.active[data-v-59e8017f]:focus-visible{color:#00fabe!important;color:var(--kui-navigation-color-text-selected, #00fabe)!important}.kong-ui-public-split-pane-vertical-navigation .split-pane-nav-item.active[data-v-59e8017f]:hover svg,.kong-ui-public-split-pane-vertical-navigation .split-pane-nav-item.active[data-v-59e8017f]:focus-visible svg{color:#00fabe;color:var(--kui-navigation-color-text-selected, #00fabe)}.kong-ui-public-split-pane-vertical-navigation .split-pane-nav-item.toggle-left-panel[data-v-59e8017f]{border-color:#ffffff1f;border-color:var(--kui-navigation-color-border, rgba(255, 255, 255, .12))}.toggle-left-panel-control[data-v-59e8017f]{left:0;position:absolute;z-index:1}.toggle-left-panel-control[data-v-59e8017f]:not(.disable-animation){transition:left .2s ease-out}.toggle-left-panel-control.expanded[data-v-59e8017f]{left:var(--eaa86402)}[data-v-a19fbade],[data-v-a19fbade] *{box-sizing:border-box}.kong-ui-public-split-pane[data-v-a19fbade]{height:100%}.kong-ui-public-split-pane.has-navigation[data-v-a19fbade]{background-color:#000933;background-color:var(--kui-navigation-color-background, #000933);inset:0;position:fixed;z-index:2000}.kong-ui-public-split-pane.has-navigation .split-pane-container-inner[data-v-a19fbade]{padding-top:6px;padding-top:var(--kui-space-30, 6px)}.kong-ui-public-split-pane .split-pane-container[data-v-a19fbade]{display:flex;flex-direction:row;height:100%;width:100%}.kong-ui-public-split-pane .split-pane-container-inner[data-v-a19fbade]{display:flex;flex-direction:column;width:100%}.kong-ui-public-split-pane .split-pane-container-inner-content[data-v-a19fbade]{display:flex;flex:1 1 auto;flex-direction:column;height:100%;max-height:calc(100vh - 6px);min-width:0;position:relative;width:100%}.kong-ui-public-split-pane .split-pane-inner-panes[data-v-a19fbade]{display:flex;height:100%;width:100%}.kong-ui-public-split-pane .panes[data-v-a19fbade]{align-items:stretch;background-color:#fff;background-color:var(--kui-color-background, #ffffff);border-top-left-radius:6px;border-top-left-radius:var(--kui-border-radius-30, 6px);display:flex;flex:1 1 auto;flex-direction:row;overflow:hidden;z-index:0}.kong-ui-public-split-pane .split-pane-left[data-v-a19fbade],.kong-ui-public-split-pane .split-pane-center[data-v-a19fbade],.kong-ui-public-split-pane .split-pane-right[data-v-a19fbade]{overflow-x:hidden;overflow-y:auto;position:relative;scrollbar-width:thin}.kong-ui-public-split-pane .split-pane-left.has-toolbar[data-v-a19fbade],.kong-ui-public-split-pane .split-pane-center.has-toolbar[data-v-a19fbade],.kong-ui-public-split-pane .split-pane-right.has-toolbar[data-v-a19fbade]{max-height:calc(100vh - 44px);z-index:1}.kong-ui-public-split-pane .split-pane-left.is-dragging-pane[data-v-a19fbade],.kong-ui-public-split-pane .split-pane-center.is-dragging-pane[data-v-a19fbade],.kong-ui-public-split-pane .split-pane-right.is-dragging-pane[data-v-a19fbade]{pointer-events:none;transition:none;-webkit-user-select:none;user-select:none}.kong-ui-public-split-pane .split-pane-left[data-v-a19fbade]{border-right:1px solid transparent;border-right:var(--kui-border-width-10, 1px) solid var(--kui-color-border-transparent, transparent);border-top-left-radius:6px;border-top-left-radius:var(--kui-border-radius-30, 6px);flex:0 0 auto;max-height:none!important;max-width:0;overflow:hidden;pointer-events:none;position:relative;transition:border-color .1s ease-in-out,max-width .1s ease-in-out;width:260px;will-change:border-color,max-width,min-width;z-index:5}.kong-ui-public-split-pane .split-pane-left.expanded[data-v-a19fbade]{border-right-color:#e0e4ea;border-right-color:var(--kui-color-border, #e0e4ea);max-width:var(--v1300c9c8);pointer-events:auto}.kong-ui-public-split-pane .split-pane-left.is-dragging-pane-left[data-v-a19fbade],.kong-ui-public-split-pane .split-pane-left.expanded.show-resize-border[data-v-a19fbade],.kong-ui-public-split-pane .split-pane-left.show-resize-border[data-v-a19fbade]{border-right-color:#0044f4;border-right-color:var(--kui-color-border-primary, #0044f4)}.kong-ui-public-split-pane .split-pane-center[data-v-a19fbade]{max-width:var(--v183c98aa);min-width:300px;width:300px}.kong-ui-public-split-pane .split-pane-center.has-resize-divider-left[data-v-a19fbade]{margin-left:-3px}.kong-ui-public-split-pane .split-pane-center.has-resize-divider-right[data-v-a19fbade]{margin-right:-3px}.kong-ui-public-split-pane .split-pane-right[data-v-a19fbade]{border-left:1px solid #e0e4ea;border-left:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);flex:1;max-width:var(--bf8b5faa);min-width:300px;transition:border-color .1s ease-in-out}.kong-ui-public-split-pane .split-pane-right.is-dragging-inner-panes[data-v-a19fbade],.kong-ui-public-split-pane .split-pane-right.show-resize-border[data-v-a19fbade]{border-left-color:#0044f4;border-left-color:var(--kui-color-border-primary, #0044f4)}.kong-ui-public-split-pane .split-pane-toolbar-container.has-resize-divider-left[data-v-a19fbade]{margin-left:-3px}.kong-ui-public-split-pane .split-pane-resize-divider[data-v-a19fbade]{align-self:flex-end;background-color:transparent;background-color:var(--kui-color-background-transparent, transparent);cursor:col-resize;height:calc(100% - 43px);position:relative;transition:all .1s ease-in-out;width:3px;z-index:4}.kong-ui-public-split-pane .split-pane-resize-divider.left[data-v-a19fbade]{margin-left:0}.kong-ui-public-split-pane .split-pane-resize-divider.right[data-v-a19fbade]{right:-3px}.kong-ui-public-split-pane-toolbar[data-v-44b95676]{align-items:center;background:#fff;background:var(--kui-color-background, #ffffff);border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);display:flex;flex:0 0 44px;justify-content:space-between;min-height:44px;overflow-x:auto;overflow-y:hidden;padding-left:8px;padding-left:var(--kui-space-40, 8px);padding-right:8px;padding-right:var(--kui-space-40, 8px);position:sticky;scrollbar-width:thin;top:0;z-index:3}.left[data-v-44b95676],.right[data-v-44b95676],.center[data-v-44b95676]{align-items:center;display:flex;gap:8px;gap:var(--kui-space-40, 8px);height:100%}.left[data-v-44b95676],.right[data-v-44b95676]{flex:1 1 0%}.right[data-v-44b95676]{justify-content:flex-end}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/split-pane",
3
- "version": "0.3.30",
3
+ "version": "0.4.0",
4
4
  "type": "module",
5
5
  "description": "A shared SplitPane layout component for Vue 3 applications.",
6
6
  "main": "./dist/split-pane.umd.js",
@@ -23,9 +23,9 @@
23
23
  },
24
24
  "devDependencies": {
25
25
  "@kong/design-tokens": "2.0.1",
26
- "@kong/kongponents": "9.60.6",
26
+ "@kong/kongponents": "9.60.7",
27
27
  "vue": "^3.5.35",
28
- "@kong-ui-public/i18n": "^2.4.6"
28
+ "@kong-ui-public/i18n": "^2.5.0"
29
29
  },
30
30
  "repository": {
31
31
  "type": "git",
@@ -48,7 +48,7 @@
48
48
  "@kong/icons": "^1.58.0",
49
49
  "@kong/kongponents": ">=9.42.0 <10.0.0",
50
50
  "vue": "^3.5.35",
51
- "@kong-ui-public/i18n": "^2.4.6"
51
+ "@kong-ui-public/i18n": "^2.5.0"
52
52
  },
53
53
  "dependencies": {
54
54
  "@vueuse/core": "^14.3.0"