vlite3 1.5.18 → 1.5.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CategoryManager/CategoryManager2.vue.js +1 -1
- package/components/CommandPalette/CommandPaletteContent2.vue.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem2.vue.js → CommandPaletteItem.vue.js} +1 -1
- package/components/EditableTitle/EditableTitle.vue.js +2 -2
- package/components/EditableTitle/EditableTitle2.vue.js +187 -184
- package/components/Form/{AccordionView2.vue.js → AccordionView.vue.js} +1 -1
- package/components/Form/index2.vue.js +1 -1
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/Screen/ScreenFilter.vue.js +1 -1
- package/components/Workbook/Sheet.vue.d.ts +5 -0
- package/components/Workbook/Sheet.vue.js +81 -72
- package/components/Workbook/Workbook.vue.d.ts +1 -0
- package/components/Workbook/Workbook.vue.js +2 -2
- package/components/Workbook/Workbook2.vue.js +100 -95
- package/components/Workbook/types.d.ts +4 -0
- package/docs/components/editable-title.md +6 -6
- package/docs/components/workbook.md +7 -2
- package/docs-manifest.json +4 -4
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -4,7 +4,7 @@ import _ from "../Icon.vue.js";
|
|
|
4
4
|
import { $t as E } from "../../utils/i18n.js";
|
|
5
5
|
import { useCommandPaletteItems as Y } from "./useCommandPaletteItems.js";
|
|
6
6
|
import { useCommandPaletteNav as Z } from "./useCommandPaletteNav.js";
|
|
7
|
-
import ee from "./
|
|
7
|
+
import ee from "./CommandPaletteItem.vue.js";
|
|
8
8
|
const te = { class: "command-palette-content flex flex-col w-full h-full max-h-[70vh]" }, oe = { class: "flex items-center gap-3 px-4 py-3 border-b border-border/80 shrink-0" }, se = ["placeholder"], ne = ["aria-label"], re = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "flex flex-col items-center justify-center py-14 px-6 text-center select-none",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./EditableTitle2.vue.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-ff749f41"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { defineComponent as
|
|
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
|
|
4
|
-
import
|
|
3
|
+
import te from "../Button.vue.js";
|
|
4
|
+
import De from "../Input.vue.js";
|
|
5
5
|
/* empty css */
|
|
6
|
-
import
|
|
7
|
-
const
|
|
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
|
-
},
|
|
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
|
-
},
|
|
15
|
-
key:
|
|
14
|
+
}, $e = {
|
|
15
|
+
key: 2,
|
|
16
16
|
class: "vl-editable-title__actions flex shrink-0 items-center gap-0.5"
|
|
17
|
-
},
|
|
17
|
+
}, Fe = {
|
|
18
18
|
key: 1,
|
|
19
19
|
class: "vl-editable-title__action flex items-center justify-center"
|
|
20
|
-
},
|
|
20
|
+
}, Ne = {
|
|
21
21
|
key: 2,
|
|
22
22
|
class: "vl-editable-title__action flex items-center justify-center"
|
|
23
|
-
},
|
|
23
|
+
}, le = "lucide:file-text", Ge = /* @__PURE__ */ Be({
|
|
24
24
|
__name: "EditableTitle",
|
|
25
25
|
props: {
|
|
26
26
|
modelValue: { default: "" },
|
|
27
|
-
icon: { default:
|
|
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(
|
|
49
|
-
const
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
76
|
+
actionHit: "h-7.5 min-h-7.5"
|
|
76
77
|
}
|
|
77
|
-
},
|
|
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 =
|
|
81
|
-
let T = !1,
|
|
82
|
-
const B =
|
|
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
|
-
),
|
|
85
|
+
), b = n(
|
|
85
86
|
() => e.showIcon && e.canChangeIcon && !e.disabled && !e.readonly
|
|
86
|
-
),
|
|
87
|
+
), $ = n(
|
|
87
88
|
() => e.canDelete && !e.disabled && !e.readonly && !e.create
|
|
88
|
-
),
|
|
89
|
-
() =>
|
|
90
|
-
),
|
|
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
|
-
|
|
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
|
-
),
|
|
103
|
+
), de = n(
|
|
101
104
|
() => `${d.value.title} text-foreground text-start`
|
|
102
|
-
),
|
|
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
|
-
),
|
|
111
|
-
function
|
|
112
|
-
|
|
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
|
-
|
|
118
|
+
w != null && (clearTimeout(w), w = null);
|
|
116
119
|
}
|
|
117
|
-
function
|
|
118
|
-
T = !0,
|
|
120
|
+
function _() {
|
|
121
|
+
T = !0, h(), z();
|
|
119
122
|
}
|
|
120
123
|
function E() {
|
|
121
|
-
z(),
|
|
122
|
-
|
|
124
|
+
z(), w = setTimeout(() => {
|
|
125
|
+
w = null, T = !1;
|
|
123
126
|
}, 0);
|
|
124
127
|
}
|
|
125
|
-
function
|
|
126
|
-
!
|
|
128
|
+
function A() {
|
|
129
|
+
!b.value || y.value || (y.value = !0);
|
|
127
130
|
}
|
|
128
|
-
function
|
|
129
|
-
const
|
|
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
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
136
|
+
v(() => {
|
|
137
|
+
a() || requestAnimationFrame(() => {
|
|
138
|
+
v(() => {
|
|
139
|
+
a();
|
|
137
140
|
});
|
|
138
141
|
});
|
|
139
142
|
});
|
|
140
143
|
}
|
|
141
|
-
function
|
|
142
|
-
|
|
143
|
-
|
|
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
|
|
147
|
-
!e.create || e.disabled || e.readonly || l.value ||
|
|
149
|
+
function Z() {
|
|
150
|
+
!e.create || e.disabled || e.readonly || l.value || u || Y({ select: !1, emitEditStart: !1 });
|
|
148
151
|
}
|
|
149
|
-
function
|
|
150
|
-
!B.value || l.value ||
|
|
152
|
+
function P() {
|
|
153
|
+
!B.value || l.value || u || Y({ select: !0, emitEditStart: !0 });
|
|
151
154
|
}
|
|
152
|
-
function
|
|
153
|
-
if (!l.value ||
|
|
154
|
-
|
|
155
|
-
const
|
|
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 (!
|
|
158
|
-
t && (l.value = !1, o("cancel")),
|
|
159
|
-
|
|
160
|
+
if (!a) {
|
|
161
|
+
t && (l.value = !1, o("cancel")), v(() => {
|
|
162
|
+
u = !1;
|
|
160
163
|
});
|
|
161
164
|
return;
|
|
162
165
|
}
|
|
163
|
-
s.value =
|
|
164
|
-
|
|
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 =
|
|
169
|
-
s.value = g, g !== (e.modelValue ?? "") && o("update:modelValue", g), o("change", g), o("save", g), l.value = !1,
|
|
170
|
-
|
|
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
|
|
174
|
-
!l.value ||
|
|
175
|
-
|
|
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
|
|
181
|
+
function be() {
|
|
179
182
|
if (l.value) {
|
|
180
|
-
|
|
183
|
+
D(!1);
|
|
181
184
|
return;
|
|
182
185
|
}
|
|
183
186
|
if (e.create) {
|
|
184
|
-
|
|
187
|
+
Z();
|
|
185
188
|
return;
|
|
186
189
|
}
|
|
187
|
-
B.value &&
|
|
190
|
+
B.value && P();
|
|
188
191
|
}
|
|
189
|
-
function
|
|
190
|
-
t.preventDefault(), t.stopPropagation(),
|
|
192
|
+
function he(t) {
|
|
193
|
+
t.preventDefault(), t.stopPropagation(), P();
|
|
191
194
|
}
|
|
192
|
-
function
|
|
193
|
-
t.preventDefault(), t.stopPropagation(),
|
|
195
|
+
function pe(t) {
|
|
196
|
+
t.preventDefault(), t.stopPropagation(), V.value && (_(), o("delete"), E());
|
|
194
197
|
}
|
|
195
|
-
function
|
|
196
|
-
t.stopPropagation(),
|
|
198
|
+
function J(t) {
|
|
199
|
+
t.stopPropagation(), _();
|
|
197
200
|
}
|
|
198
|
-
function
|
|
201
|
+
function Q(t) {
|
|
199
202
|
t.stopPropagation(), E();
|
|
200
203
|
}
|
|
201
|
-
function
|
|
204
|
+
function ge(t) {
|
|
202
205
|
o("update:icon", t);
|
|
203
206
|
}
|
|
204
|
-
function
|
|
205
|
-
|
|
207
|
+
function xe() {
|
|
208
|
+
b.value && (_(), A());
|
|
206
209
|
}
|
|
207
|
-
function
|
|
208
|
-
|
|
210
|
+
function ye() {
|
|
211
|
+
b.value && (_(), A(), v(() => {
|
|
209
212
|
W.value?.click();
|
|
210
213
|
}));
|
|
211
214
|
}
|
|
212
|
-
function
|
|
213
|
-
|
|
214
|
-
l.value &&
|
|
215
|
+
function ke() {
|
|
216
|
+
v(() => {
|
|
217
|
+
l.value && D(!1), E();
|
|
215
218
|
});
|
|
216
219
|
}
|
|
217
|
-
function
|
|
220
|
+
function we(t) {
|
|
218
221
|
o("focus", t);
|
|
219
222
|
}
|
|
220
|
-
function
|
|
221
|
-
o("blur", t), !(!e.saveOnBlur || T) && (
|
|
222
|
-
|
|
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
|
|
226
|
-
l.value && (t.key === "Enter" ? (t.preventDefault(),
|
|
228
|
+
function Te(t) {
|
|
229
|
+
l.value && (t.key === "Enter" ? (t.preventDefault(), S(!1)) : t.key === "Escape" && (t.preventDefault(), G()));
|
|
227
230
|
}
|
|
228
|
-
return
|
|
231
|
+
return H(
|
|
229
232
|
() => e.modelValue,
|
|
230
233
|
(t) => {
|
|
231
234
|
l.value || (s.value = t ?? "");
|
|
232
235
|
}
|
|
233
|
-
),
|
|
236
|
+
), H(
|
|
234
237
|
() => [e.disabled, e.readonly, e.editable],
|
|
235
|
-
([t,
|
|
236
|
-
!l.value || !(t ||
|
|
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
|
-
),
|
|
239
|
-
t || (
|
|
240
|
-
}),
|
|
241
|
-
e.create && (
|
|
242
|
-
}),
|
|
243
|
-
|
|
244
|
-
}),
|
|
245
|
-
startEdit:
|
|
246
|
-
save: () =>
|
|
247
|
-
commit: () =>
|
|
248
|
-
cancel:
|
|
249
|
-
focus:
|
|
250
|
-
}), (t,
|
|
251
|
-
class: p(
|
|
252
|
-
style: Se(
|
|
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":
|
|
255
|
-
"data-variant":
|
|
256
|
-
"data-size":
|
|
257
|
+
"data-create": i.create ? "true" : void 0,
|
|
258
|
+
"data-variant": i.variant,
|
|
259
|
+
"data-size": i.size
|
|
257
260
|
}, [
|
|
258
|
-
|
|
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:
|
|
262
|
-
onFocusin:
|
|
263
|
-
onMousedown:
|
|
264
|
-
onClick:
|
|
264
|
+
onPointerenter: A,
|
|
265
|
+
onFocusin: A,
|
|
266
|
+
onMousedown: xe,
|
|
267
|
+
onClick: a[0] || (a[0] = X(() => {
|
|
265
268
|
}, ["stop"]))
|
|
266
269
|
}, [
|
|
267
|
-
|
|
270
|
+
b.value && y.value ? (r(), Ve(Pe, {
|
|
268
271
|
key: 0,
|
|
269
272
|
value: I.value,
|
|
270
|
-
position:
|
|
271
|
-
onOnSelect:
|
|
272
|
-
onOnClose:
|
|
273
|
+
position: i.iconPickerPosition,
|
|
274
|
+
onOnSelect: ge,
|
|
275
|
+
onOnClose: ke
|
|
273
276
|
}, {
|
|
274
|
-
default:
|
|
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:
|
|
284
|
+
disabled: i.disabled
|
|
282
285
|
}, [
|
|
283
|
-
|
|
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,
|
|
291
|
+
], 8, Me)
|
|
289
292
|
]),
|
|
290
293
|
_: 1
|
|
291
|
-
}, 8, ["value", "position"])) :
|
|
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:
|
|
297
|
-
onClick:
|
|
299
|
+
disabled: i.disabled,
|
|
300
|
+
onClick: ye
|
|
298
301
|
}, [
|
|
299
|
-
|
|
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,
|
|
305
|
-
|
|
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)) :
|
|
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:
|
|
316
|
+
onKeydown: Te
|
|
314
317
|
}, [
|
|
315
318
|
M("span", {
|
|
316
319
|
class: p(["vl-editable-title__label block min-w-0 truncate", [
|
|
317
|
-
|
|
318
|
-
|
|
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
|
-
},
|
|
323
|
-
l.value ? (
|
|
324
|
-
|
|
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":
|
|
331
|
+
"onUpdate:modelValue": a[1] || (a[1] = (f) => s.value = f),
|
|
329
332
|
type: "text",
|
|
330
333
|
variant: "transparent",
|
|
331
|
-
size:
|
|
332
|
-
placeholder:
|
|
333
|
-
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":
|
|
337
|
-
onFocus:
|
|
338
|
-
onBlur:
|
|
339
|
-
onClick:
|
|
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
|
-
])) :
|
|
345
|
+
])) : m("", !0)
|
|
343
346
|
], 32),
|
|
344
|
-
|
|
345
|
-
|
|
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:
|
|
349
|
-
onClick:
|
|
356
|
+
onMousedown: J,
|
|
357
|
+
onClick: Q
|
|
350
358
|
}, [
|
|
351
|
-
|
|
352
|
-
], 32)) :
|
|
353
|
-
|
|
354
|
-
|
|
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:
|
|
362
|
-
"aria-label":
|
|
363
|
-
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:
|
|
366
|
-
}, null, 8, ["size", "icon", "aria-label", "disabled"])
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
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:
|
|
380
|
-
"aria-label":
|
|
381
|
-
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:
|
|
386
|
+
onClick: pe
|
|
384
387
|
}, null, 8, ["size", "icon", "aria-label", "disabled"])
|
|
385
|
-
])) :
|
|
386
|
-
|
|
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:
|
|
390
|
-
onClick:
|
|
392
|
+
onMousedown: J,
|
|
393
|
+
onClick: Q
|
|
391
394
|
}, [
|
|
392
|
-
|
|
393
|
-
], 32)) :
|
|
394
|
-
])) :
|
|
395
|
-
], 14,
|
|
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
|
-
|
|
402
|
+
Ge as default
|
|
400
403
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as g, computed as d, openBlock as n, createElementBlock as R, createElementVNode as x, createBlock as s, withCtx as k, createTextVNode as B, toDisplayString as I, createCommentVNode as y, unref as l } from "vue";
|
|
2
2
|
import T from "./TableView.vue.js";
|
|
3
|
-
import C from "./
|
|
3
|
+
import C from "./AccordionView.vue.js";
|
|
4
4
|
import U from "../Label.vue.js";
|
|
5
5
|
import z from "../Button.vue.js";
|
|
6
6
|
import { useCustomFieldRows as N } from "./composables/useCustomFieldRows.js";
|
|
@@ -3,7 +3,7 @@ import L from "./Icon.vue.js";
|
|
|
3
3
|
import v from "./Modal.vue.js";
|
|
4
4
|
import N from "./CommandPalette/CommandPaletteContent.vue.js";
|
|
5
5
|
import { $t as U } from "../utils/i18n.js";
|
|
6
|
-
/* empty css
|
|
6
|
+
/* empty css */
|
|
7
7
|
const V = { class: "block truncate -text-fs-1.5" }, S = { class: "ms-auto inline-flex items-center gap-0.5 px-1.5 py-0.5 rounded text-[10px] font-mono font-medium border border-border/80 bg-background text-muted-foreground ms-1" }, A = /* @__PURE__ */ x({
|
|
8
8
|
__name: "NavbarCommandPalette",
|
|
9
9
|
props: {
|