vlite3 1.5.18 → 1.5.20

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,30 +1,30 @@
1
- import { defineComponent as Ce, useSlots as Te, shallowRef as w, computed as i, watch as P, onMounted as Be, onBeforeUnmount as Ie, openBlock as u, createElementBlock as c, normalizeStyle as Se, normalizeClass as p, withModifiers as J, createBlock as Q, withCtx as Ve, createElementVNode as M, createVNode as C, createCommentVNode as h, toDisplayString as _e, renderSlot as X, nextTick as m } from "vue";
1
+ import { defineComponent as Be, useSlots as Ie, shallowRef as C, computed as n, watch as H, onMounted as _e, onBeforeUnmount as Ae, openBlock as r, createElementBlock as c, normalizeStyle as Se, normalizeClass as p, withModifiers as X, createBlock as Ve, withCtx as ze, createElementVNode as M, createVNode as x, createCommentVNode as m, toDisplayString as Ee, renderSlot as ee, nextTick as v } from "vue";
2
2
  import j from "../Icon.vue.js";
3
- import ee from "../Button.vue.js";
4
- import ze from "../Input.vue.js";
3
+ import te from "../Button.vue.js";
4
+ import De from "../Input.vue.js";
5
5
  /* empty css */
6
- import Ee from "../IconPicker.vue.js";
7
- const Ae = ["data-editing", "data-create", "data-variant", "data-size"], De = ["disabled"], Pe = ["disabled"], Me = {
6
+ import Pe from "../IconPicker.vue.js";
7
+ const He = ["data-editing", "data-create", "data-variant", "data-size"], Me = ["disabled"], je = ["disabled"], Le = {
8
8
  key: 2,
9
9
  class: "inline-flex h-full w-full items-center justify-center",
10
10
  "aria-hidden": "true"
11
- }, je = ["aria-hidden"], Le = {
11
+ }, Re = ["aria-hidden"], We = {
12
12
  key: 0,
13
13
  class: "vl-editable-title__input absolute inset-0 flex min-w-0 items-center"
14
- }, Re = {
15
- key: 1,
14
+ }, $e = {
15
+ key: 2,
16
16
  class: "vl-editable-title__actions flex shrink-0 items-center gap-0.5"
17
- }, We = {
17
+ }, Fe = {
18
18
  key: 1,
19
19
  class: "vl-editable-title__action flex items-center justify-center"
20
- }, He = {
20
+ }, Ne = {
21
21
  key: 2,
22
22
  class: "vl-editable-title__action flex items-center justify-center"
23
- }, te = "lucide:file-text", Ke = /* @__PURE__ */ Ce({
23
+ }, le = "lucide:file-text", Ge = /* @__PURE__ */ Be({
24
24
  __name: "EditableTitle",
25
25
  props: {
26
26
  modelValue: { default: "" },
27
- icon: { default: te },
27
+ icon: { default: le },
28
28
  showIcon: { type: Boolean, default: !0 },
29
29
  canChangeIcon: { type: Boolean, default: !0 },
30
30
  iconPickerPosition: { default: "bottom-start" },
@@ -45,16 +45,17 @@ const Ae = ["data-editing", "data-create", "data-variant", "data-size"], De = ["
45
45
  class: { default: "" }
46
46
  },
47
47
  emits: ["update:modelValue", "update:icon", "edit-start", "change", "save", "create", "cancel", "delete", "focus", "blur"],
48
- setup(a, { expose: le, emit: ne }) {
49
- const ae = {
48
+ setup(i, { expose: ne, emit: ae }) {
49
+ const ie = {
50
50
  sm: {
51
51
  root: "gap-1 px-2.5 py-1.5 rounded-xl",
52
52
  icon: "h-4 w-4",
53
- iconHit: "h-6 w-6 min-h-6 min-w-6",
53
+ // Match Button as-icon xs (h-6.5) so idle rows are not shorter than hovered ones.
54
+ iconHit: "h-6.5 w-6.5 min-h-6.5 min-w-6.5",
54
55
  title: "text-sm font-medium leading-5 tracking-normal",
55
56
  inputTitle: "text-sm! font-medium! leading-5! tracking-normal! placeholder:text-sm! placeholder:font-medium! placeholder:leading-5!",
56
57
  button: "xs",
57
- spacer: "h-6.5 w-6.5 min-h-6.5 min-w-6.5"
58
+ actionHit: "h-6.5 min-h-6.5"
58
59
  },
59
60
  md: {
60
61
  root: "gap-1.5 px-3.5 py-2.5 rounded-2xl",
@@ -63,7 +64,7 @@ const Ae = ["data-editing", "data-create", "data-variant", "data-size"], De = ["
63
64
  title: "text-base font-medium leading-6 tracking-normal",
64
65
  inputTitle: "text-base! font-medium! leading-6! tracking-normal! placeholder:text-base! placeholder:font-medium! placeholder:leading-6!",
65
66
  button: "xs",
66
- spacer: "h-6.5 w-6.5 min-h-6.5 min-w-6.5"
67
+ actionHit: "h-6.5 min-h-6.5"
67
68
  },
68
69
  lg: {
69
70
  root: "gap-2 px-4 py-3 rounded-2xl",
@@ -72,34 +73,36 @@ const Ae = ["data-editing", "data-create", "data-variant", "data-size"], De = ["
72
73
  title: "text-lg font-medium leading-7 tracking-normal",
73
74
  inputTitle: "text-lg! font-medium! leading-7! tracking-normal! placeholder:text-lg! placeholder:font-medium! placeholder:leading-7!",
74
75
  button: "sm",
75
- spacer: "h-7.5 w-7.5 min-h-7.5 min-w-7.5"
76
+ actionHit: "h-7.5 min-h-7.5"
76
77
  }
77
- }, ie = {
78
+ }, oe = {
78
79
  background: "bg-muted text-foreground transition-colors hover:bg-muted/80 focus-within:bg-muted/80",
79
80
  transparent: "bg-transparent text-foreground"
80
- }, e = a, o = ne, L = Te(), l = w(!1), s = w(e.modelValue ?? ""), R = w(null), x = w(!1), W = w(null);
81
- let T = !1, r = !1, y = null, k = null;
82
- const B = i(
81
+ }, e = i, o = ae, L = Ie(), l = C(!1), s = C(e.modelValue ?? ""), R = C(null), y = C(!1), W = C(null);
82
+ let T = !1, u = !1, k = null, w = null;
83
+ const B = n(
83
84
  () => e.editable && !e.disabled && !e.readonly && !e.create
84
- ), v = i(
85
+ ), b = n(
85
86
  () => e.showIcon && e.canChangeIcon && !e.disabled && !e.readonly
86
- ), H = i(
87
+ ), $ = n(
87
88
  () => e.canDelete && !e.disabled && !e.readonly && !e.create
88
- ), $ = i(() => B.value || l.value && !e.create), F = i(() => H.value), N = i(() => !!L["actions-before"]), O = i(() => !!L["actions-after"]), oe = i(
89
- () => $.value || F.value || N.value || O.value
90
- ), I = i(() => e.icon || te), d = i(() => ae[e.size]), ue = i(() => e.maxWidth === void 0 || e.maxWidth === null || e.maxWidth === "" ? void 0 : { maxWidth: typeof e.maxWidth == "number" ? `${e.maxWidth}px` : e.maxWidth }), re = i(
89
+ ), F = n(() => !!L["actions-before"]), N = n(() => !!L["actions-after"]), ue = n(
90
+ () => B.value || $.value || F.value || N.value
91
+ ), O = n(() => B.value && !l.value), V = n(() => $.value && !l.value), U = n(() => F.value && !l.value), q = n(() => N.value && !l.value), re = n(
92
+ () => O.value || V.value || U.value || q.value
93
+ ), I = n(() => e.icon || le), d = n(() => ie[e.size]), se = n(() => e.maxWidth === void 0 || e.maxWidth === null || e.maxWidth === "" ? void 0 : { maxWidth: typeof e.maxWidth == "number" ? `${e.maxWidth}px` : e.maxWidth }), ce = n(
91
94
  () => [
92
95
  "vl-editable-title group/editable-title relative flex w-full min-w-0 items-center",
93
96
  d.value.root,
94
- ie[e.variant],
97
+ oe[e.variant],
95
98
  e.disabled ? "opacity-50 cursor-not-allowed" : "",
96
99
  l.value ? "vl-editable-title--editing" : "",
97
100
  e.create ? "vl-editable-title--create" : "",
98
101
  e.class
99
102
  ].filter(Boolean).join(" ")
100
- ), se = i(
103
+ ), de = n(
101
104
  () => `${d.value.title} text-foreground text-start`
102
- ), ce = i(
105
+ ), fe = n(
103
106
  () => [
104
107
  d.value.inputTitle,
105
108
  "text-foreground! text-start! placeholder:text-muted-foreground!",
@@ -107,294 +110,294 @@ const Ae = ["data-editing", "data-create", "data-variant", "data-size"], De = ["
107
110
  "ring-0! focus-visible:ring-0! focus-visible:border-transparent!",
108
111
  "rounded-none!"
109
112
  ].join(" ")
110
- ), U = i(() => e.modelValue ?? ""), de = i(() => l.value ? s.value || e.placeholder || " " : U.value || e.placeholder || " "), fe = i(() => l.value ? !s.value && !!e.placeholder : !U.value && !!e.placeholder);
111
- function b() {
112
- y != null && (clearTimeout(y), y = null);
113
+ ), K = n(() => e.modelValue ?? ""), ve = n(() => l.value ? s.value || e.placeholder || " " : K.value || e.placeholder || " "), me = n(() => l.value ? !s.value && !!e.placeholder : !K.value && !!e.placeholder);
114
+ function h() {
115
+ k != null && (clearTimeout(k), k = null);
113
116
  }
114
117
  function z() {
115
- k != null && (clearTimeout(k), k = null);
118
+ w != null && (clearTimeout(w), w = null);
116
119
  }
117
- function S() {
118
- T = !0, b(), z();
120
+ function _() {
121
+ T = !0, h(), z();
119
122
  }
120
123
  function E() {
121
- z(), k = setTimeout(() => {
122
- k = null, T = !1;
124
+ z(), w = setTimeout(() => {
125
+ w = null, T = !1;
123
126
  }, 0);
124
127
  }
125
- function V() {
126
- !v.value || x.value || (x.value = !0);
128
+ function A() {
129
+ !b.value || y.value || (y.value = !0);
127
130
  }
128
- function A(t = !0) {
129
- const n = () => {
131
+ function D(t = !0) {
132
+ const a = () => {
130
133
  const f = R.value;
131
134
  return f ? (f.focus(), t && f.select(), !0) : !1;
132
135
  };
133
- m(() => {
134
- n() || requestAnimationFrame(() => {
135
- m(() => {
136
- n();
136
+ v(() => {
137
+ a() || requestAnimationFrame(() => {
138
+ v(() => {
139
+ a();
137
140
  });
138
141
  });
139
142
  });
140
143
  }
141
- function q(t) {
142
- b(), r = !0, s.value = e.modelValue ?? "", l.value = !0, t.emitEditStart && o("edit-start"), A(t.select), m(() => {
143
- r = !1;
144
+ function Y(t) {
145
+ h(), u = !0, s.value = e.modelValue ?? "", l.value = !0, t.emitEditStart && o("edit-start"), D(t.select), v(() => {
146
+ u = !1;
144
147
  });
145
148
  }
146
- function K() {
147
- !e.create || e.disabled || e.readonly || l.value || r || q({ select: !1, emitEditStart: !1 });
149
+ function Z() {
150
+ !e.create || e.disabled || e.readonly || l.value || u || Y({ select: !1, emitEditStart: !1 });
148
151
  }
149
- function D() {
150
- !B.value || l.value || r || q({ select: !0, emitEditStart: !0 });
152
+ function P() {
153
+ !B.value || l.value || u || Y({ select: !0, emitEditStart: !0 });
151
154
  }
152
- function _(t = !1) {
153
- if (!l.value || r) return;
154
- b(), r = !0;
155
- const n = s.value.trim();
155
+ function S(t = !1) {
156
+ if (!l.value || u) return;
157
+ h(), u = !0;
158
+ const a = s.value.trim();
156
159
  if (e.create) {
157
- if (!n) {
158
- t && (l.value = !1, o("cancel")), m(() => {
159
- r = !1;
160
+ if (!a) {
161
+ t && (l.value = !1, o("cancel")), v(() => {
162
+ u = !1;
160
163
  });
161
164
  return;
162
165
  }
163
- s.value = n, n !== (e.modelValue ?? "") && o("update:modelValue", n), o("create", n), l.value = !1, m(() => {
164
- r = !1;
166
+ s.value = a, a !== (e.modelValue ?? "") && o("update:modelValue", a), o("create", a), l.value = !1, v(() => {
167
+ u = !1;
165
168
  });
166
169
  return;
167
170
  }
168
- const f = (e.modelValue ?? "").trim(), g = n.length > 0 ? n : f;
169
- s.value = g, g !== (e.modelValue ?? "") && o("update:modelValue", g), o("change", g), o("save", g), l.value = !1, m(() => {
170
- r = !1;
171
+ const f = (e.modelValue ?? "").trim(), g = a.length > 0 ? a : f;
172
+ s.value = g, g !== (e.modelValue ?? "") && o("update:modelValue", g), o("change", g), o("save", g), l.value = !1, v(() => {
173
+ u = !1;
171
174
  });
172
175
  }
173
- function Y() {
174
- !l.value || r || (b(), r = !0, s.value = e.modelValue ?? "", l.value = !1, o("cancel"), m(() => {
175
- r = !1;
176
+ function G() {
177
+ !l.value || u || (h(), u = !0, s.value = e.modelValue ?? "", l.value = !1, o("cancel"), v(() => {
178
+ u = !1;
176
179
  }));
177
180
  }
178
- function me() {
181
+ function be() {
179
182
  if (l.value) {
180
- A(!1);
183
+ D(!1);
181
184
  return;
182
185
  }
183
186
  if (e.create) {
184
- K();
187
+ Z();
185
188
  return;
186
189
  }
187
- B.value && D();
190
+ B.value && P();
188
191
  }
189
- function ve(t) {
190
- t.preventDefault(), t.stopPropagation(), D();
192
+ function he(t) {
193
+ t.preventDefault(), t.stopPropagation(), P();
191
194
  }
192
- function be(t) {
193
- t.preventDefault(), t.stopPropagation(), H.value && (S(), o("delete"), E());
195
+ function pe(t) {
196
+ t.preventDefault(), t.stopPropagation(), V.value && (_(), o("delete"), E());
194
197
  }
195
- function Z(t) {
196
- t.stopPropagation(), S();
198
+ function J(t) {
199
+ t.stopPropagation(), _();
197
200
  }
198
- function G(t) {
201
+ function Q(t) {
199
202
  t.stopPropagation(), E();
200
203
  }
201
- function pe(t) {
204
+ function ge(t) {
202
205
  o("update:icon", t);
203
206
  }
204
- function he() {
205
- v.value && (S(), V());
207
+ function xe() {
208
+ b.value && (_(), A());
206
209
  }
207
- function ge() {
208
- v.value && (S(), V(), m(() => {
210
+ function ye() {
211
+ b.value && (_(), A(), v(() => {
209
212
  W.value?.click();
210
213
  }));
211
214
  }
212
- function xe() {
213
- m(() => {
214
- l.value && A(!1), E();
215
+ function ke() {
216
+ v(() => {
217
+ l.value && D(!1), E();
215
218
  });
216
219
  }
217
- function ye(t) {
220
+ function we(t) {
218
221
  o("focus", t);
219
222
  }
220
- function ke(t) {
221
- o("blur", t), !(!e.saveOnBlur || T) && (b(), y = setTimeout(() => {
222
- y = null, !(T || !l.value) && _(!0);
223
+ function Ce(t) {
224
+ o("blur", t), !(!e.saveOnBlur || T) && (h(), k = setTimeout(() => {
225
+ k = null, !(T || !l.value) && S(!0);
223
226
  }, 0));
224
227
  }
225
- function we(t) {
226
- l.value && (t.key === "Enter" ? (t.preventDefault(), _(!1)) : t.key === "Escape" && (t.preventDefault(), Y()));
228
+ function Te(t) {
229
+ l.value && (t.key === "Enter" ? (t.preventDefault(), S(!1)) : t.key === "Escape" && (t.preventDefault(), G()));
227
230
  }
228
- return P(
231
+ return H(
229
232
  () => e.modelValue,
230
233
  (t) => {
231
234
  l.value || (s.value = t ?? "");
232
235
  }
233
- ), P(
236
+ ), H(
234
237
  () => [e.disabled, e.readonly, e.editable],
235
- ([t, n, f]) => {
236
- !l.value || !(t || n || !e.create && !f) || (b(), s.value = e.modelValue ?? "", l.value = !1, o("cancel"));
238
+ ([t, a, f]) => {
239
+ !l.value || !(t || a || !e.create && !f) || (h(), s.value = e.modelValue ?? "", l.value = !1, o("cancel"));
237
240
  }
238
- ), P(v, (t) => {
239
- t || (x.value = !1);
240
- }), Be(() => {
241
- e.create && (v.value && (x.value = !0), K());
242
- }), Ie(() => {
243
- b(), z();
244
- }), le({
245
- startEdit: D,
246
- save: () => _(!1),
247
- commit: () => _(!1),
248
- cancel: Y,
249
- focus: me
250
- }), (t, n) => (u(), c("div", {
251
- class: p(re.value),
252
- style: Se(ue.value),
241
+ ), H(b, (t) => {
242
+ t || (y.value = !1);
243
+ }), _e(() => {
244
+ e.create && (b.value && (y.value = !0), Z());
245
+ }), Ae(() => {
246
+ h(), z();
247
+ }), ne({
248
+ startEdit: P,
249
+ save: () => S(!1),
250
+ commit: () => S(!1),
251
+ cancel: G,
252
+ focus: be
253
+ }), (t, a) => (r(), c("div", {
254
+ class: p(ce.value),
255
+ style: Se(se.value),
253
256
  "data-editing": l.value ? "true" : void 0,
254
- "data-create": a.create ? "true" : void 0,
255
- "data-variant": a.variant,
256
- "data-size": a.size
257
+ "data-create": i.create ? "true" : void 0,
258
+ "data-variant": i.variant,
259
+ "data-size": i.size
257
260
  }, [
258
- a.showIcon ? (u(), c("div", {
261
+ i.showIcon ? (r(), c("div", {
259
262
  key: 0,
260
263
  class: p(["vl-editable-title__icon flex shrink-0 items-center justify-center text-foreground", d.value.iconHit]),
261
- onPointerenter: V,
262
- onFocusin: V,
263
- onMousedown: he,
264
- onClick: n[0] || (n[0] = J(() => {
264
+ onPointerenter: A,
265
+ onFocusin: A,
266
+ onMousedown: xe,
267
+ onClick: a[0] || (a[0] = X(() => {
265
268
  }, ["stop"]))
266
269
  }, [
267
- v.value && x.value ? (u(), Q(Ee, {
270
+ b.value && y.value ? (r(), Ve(Pe, {
268
271
  key: 0,
269
272
  value: I.value,
270
- position: a.iconPickerPosition,
271
- onOnSelect: pe,
272
- onOnClose: xe
273
+ position: i.iconPickerPosition,
274
+ onOnSelect: ge,
275
+ onOnClose: ke
273
276
  }, {
274
- default: Ve(() => [
277
+ default: ze(() => [
275
278
  M("button", {
276
279
  ref_key: "iconTriggerRef",
277
280
  ref: W,
278
281
  type: "button",
279
282
  class: "vl-editable-title__icon-trigger inline-flex h-full w-full items-center justify-center rounded-md text-foreground transition-colors hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30",
280
283
  "aria-label": "Change icon",
281
- disabled: a.disabled
284
+ disabled: i.disabled
282
285
  }, [
283
- C(j, {
286
+ x(j, {
284
287
  icon: I.value,
285
288
  class: p(d.value.icon),
286
289
  "aria-hidden": "true"
287
290
  }, null, 8, ["icon", "class"])
288
- ], 8, De)
291
+ ], 8, Me)
289
292
  ]),
290
293
  _: 1
291
- }, 8, ["value", "position"])) : v.value ? (u(), c("button", {
294
+ }, 8, ["value", "position"])) : b.value ? (r(), c("button", {
292
295
  key: 1,
293
296
  type: "button",
294
297
  class: "vl-editable-title__icon-trigger inline-flex h-full w-full items-center justify-center rounded-md text-foreground transition-colors hover:bg-accent/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/30",
295
298
  "aria-label": "Change icon",
296
- disabled: a.disabled,
297
- onClick: ge
299
+ disabled: i.disabled,
300
+ onClick: ye
298
301
  }, [
299
- C(j, {
302
+ x(j, {
300
303
  icon: I.value,
301
304
  class: p(d.value.icon),
302
305
  "aria-hidden": "true"
303
306
  }, null, 8, ["icon", "class"])
304
- ], 8, Pe)) : (u(), c("span", Me, [
305
- C(j, {
307
+ ], 8, je)) : (r(), c("span", Le, [
308
+ x(j, {
306
309
  icon: I.value,
307
310
  class: p(d.value.icon)
308
311
  }, null, 8, ["icon", "class"])
309
312
  ]))
310
- ], 34)) : h("", !0),
313
+ ], 34)) : m("", !0),
311
314
  M("div", {
312
315
  class: "vl-editable-title__text relative min-w-0 flex-1 contain-inline-size",
313
- onKeydown: we
316
+ onKeydown: Te
314
317
  }, [
315
318
  M("span", {
316
319
  class: p(["vl-editable-title__label block min-w-0 truncate", [
317
- se.value,
318
- fe.value ? "text-muted-foreground" : "",
320
+ de.value,
321
+ me.value ? "text-muted-foreground" : "",
319
322
  l.value ? "invisible" : ""
320
323
  ]]),
321
324
  "aria-hidden": l.value ? "true" : void 0
322
- }, _e(de.value), 11, je),
323
- l.value ? (u(), c("div", Le, [
324
- C(ze, {
325
+ }, Ee(ve.value), 11, Re),
326
+ l.value ? (r(), c("div", We, [
327
+ x(De, {
325
328
  ref_key: "inputHostRef",
326
329
  ref: R,
327
330
  modelValue: s.value,
328
- "onUpdate:modelValue": n[1] || (n[1] = (f) => s.value = f),
331
+ "onUpdate:modelValue": a[1] || (a[1] = (f) => s.value = f),
329
332
  type: "text",
330
333
  variant: "transparent",
331
- size: a.size,
332
- placeholder: a.placeholder,
333
- disabled: a.disabled,
334
+ size: i.size,
335
+ placeholder: i.placeholder,
336
+ disabled: i.disabled,
334
337
  "show-clear-button": !1,
335
338
  class: "!m-0 !space-y-0 min-w-0 w-full h-full",
336
- "input-class": ce.value,
337
- onFocus: ye,
338
- onBlur: ke,
339
- onClick: n[2] || (n[2] = J(() => {
339
+ "input-class": fe.value,
340
+ onFocus: we,
341
+ onBlur: Ce,
342
+ onClick: a[2] || (a[2] = X(() => {
340
343
  }, ["stop"]))
341
344
  }, null, 8, ["modelValue", "size", "placeholder", "disabled", "input-class"])
342
- ])) : h("", !0)
345
+ ])) : m("", !0)
343
346
  ], 32),
344
- oe.value ? (u(), c("div", Re, [
345
- N.value ? (u(), c("div", {
347
+ ue.value ? (r(), c("div", {
348
+ key: 1,
349
+ class: p(["vl-editable-title__action-hit pointer-events-none w-0 min-w-0 shrink-0 overflow-hidden", d.value.actionHit]),
350
+ "aria-hidden": "true"
351
+ }, null, 2)) : m("", !0),
352
+ re.value ? (r(), c("div", $e, [
353
+ U.value ? (r(), c("div", {
346
354
  key: 0,
347
355
  class: "vl-editable-title__custom-actions flex shrink-0 items-center gap-0.5",
348
- onMousedown: Z,
349
- onClick: G
356
+ onMousedown: J,
357
+ onClick: Q
350
358
  }, [
351
- X(t.$slots, "actions-before", {}, void 0, !0)
352
- ], 32)) : h("", !0),
353
- $.value ? (u(), c("div", We, [
354
- !l.value && B.value ? (u(), Q(ee, {
355
- key: 0,
359
+ ee(t.$slots, "actions-before", {}, void 0, !0)
360
+ ], 32)) : m("", !0),
361
+ O.value ? (r(), c("div", Fe, [
362
+ x(te, {
356
363
  type: "button",
357
364
  "as-icon": "",
358
365
  variant: "ghost",
359
366
  size: d.value.button,
360
367
  rounded: "md",
361
- icon: a.editIcon,
362
- "aria-label": a.editLabel,
363
- disabled: a.disabled,
368
+ icon: i.editIcon,
369
+ "aria-label": i.editLabel,
370
+ disabled: i.disabled,
364
371
  class: "vl-editable-title__action-btn text-foreground",
365
- onClick: ve
366
- }, null, 8, ["size", "icon", "aria-label", "disabled"])) : (u(), c("div", {
367
- key: 1,
368
- class: p(["invisible pointer-events-none shrink-0", d.value.spacer]),
369
- "aria-hidden": "true"
370
- }, null, 2))
371
- ])) : h("", !0),
372
- F.value ? (u(), c("div", He, [
373
- C(ee, {
372
+ onClick: he
373
+ }, null, 8, ["size", "icon", "aria-label", "disabled"])
374
+ ])) : m("", !0),
375
+ V.value ? (r(), c("div", Ne, [
376
+ x(te, {
374
377
  type: "button",
375
378
  "as-icon": "",
376
379
  variant: "ghost",
377
380
  size: d.value.button,
378
381
  rounded: "md",
379
- icon: a.deleteIcon,
380
- "aria-label": a.deleteLabel,
381
- disabled: a.disabled,
382
+ icon: i.deleteIcon,
383
+ "aria-label": i.deleteLabel,
384
+ disabled: i.disabled,
382
385
  class: "vl-editable-title__action-btn text-foreground",
383
- onClick: be
386
+ onClick: pe
384
387
  }, null, 8, ["size", "icon", "aria-label", "disabled"])
385
- ])) : h("", !0),
386
- O.value ? (u(), c("div", {
388
+ ])) : m("", !0),
389
+ q.value ? (r(), c("div", {
387
390
  key: 3,
388
391
  class: "vl-editable-title__custom-actions flex shrink-0 items-center gap-0.5",
389
- onMousedown: Z,
390
- onClick: G
392
+ onMousedown: J,
393
+ onClick: Q
391
394
  }, [
392
- X(t.$slots, "actions-after", {}, void 0, !0)
393
- ], 32)) : h("", !0)
394
- ])) : h("", !0)
395
- ], 14, Ae));
395
+ ee(t.$slots, "actions-after", {}, void 0, !0)
396
+ ], 32)) : m("", !0)
397
+ ])) : m("", !0)
398
+ ], 14, He));
396
399
  }
397
400
  });
398
401
  export {
399
- Ke as default
402
+ Ge as default
400
403
  };
@@ -6,6 +6,7 @@ interface Props {
6
6
  canRename?: boolean;
7
7
  canDuplicate?: boolean;
8
8
  canDelete?: boolean;
9
+ showContextMenu?: boolean;
9
10
  customOptions?: WorkbookCustomOption[];
10
11
  confirmDelete?: boolean;
11
12
  confirmDeleteTexts?: {
@@ -16,6 +17,8 @@ interface Props {
16
17
  };
17
18
  allowIconChange?: boolean;
18
19
  canChangeIcon?: boolean;
20
+ /** Width of the sheet context-menu dropdown. */
21
+ menuWidth?: string;
19
22
  itemClass?: string;
20
23
  activeItemClass?: string;
21
24
  inactiveItemClass?: string;
@@ -57,8 +60,10 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
57
60
  canDuplicate: boolean;
58
61
  canDelete: boolean;
59
62
  canChangeIcon: boolean;
63
+ showContextMenu: boolean;
60
64
  customOptions: WorkbookCustomOption[];
61
65
  allowIconChange: boolean;
66
+ menuWidth: string;
62
67
  activeItemClass: string;
63
68
  inactiveItemClass: string;
64
69
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {