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