vlite3 1.5.25 → 1.5.27
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 +2 -2
- package/components/CommandPalette/CommandPaletteContent2.vue.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem2.vue.js → CommandPaletteItem.vue.js} +1 -1
- package/components/Dropdown/DropdownMenu.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 +2 -2
- package/components/Splitter/Splitter.vue.d.ts +9 -16
- package/components/Splitter/Splitter.vue.js +72 -41
- package/docs-manifest.json +2 -2
- package/package.json +1 -1
- /package/components/Dropdown/{DropdownMenu2.vue.js → DropdownMenu3.vue.js} +0 -0
- /package/components/RichTextEditor/{RichTextLinkPopover.vue.js → RichTextLinkPopover2.vue.js} +0 -0
- /package/components/RichTextEditor/{RichTextToolbar.vue.js → RichTextToolbar2.vue.js} +0 -0
|
@@ -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",
|
|
@@ -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({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties } from 'vue';
|
|
2
|
-
interface Props {
|
|
2
|
+
export interface Props {
|
|
3
3
|
layout?: 'horizontal' | 'vertical';
|
|
4
4
|
modelValue?: number;
|
|
5
5
|
min?: number;
|
|
@@ -9,20 +9,10 @@ interface Props {
|
|
|
9
9
|
lineClass?: string;
|
|
10
10
|
/** Inline styles for the splitter line (resize handle). */
|
|
11
11
|
lineStyle?: CSSProperties;
|
|
12
|
+
/** If true, the end pane and splitter handle are hidden, and the start pane occupies 100%. */
|
|
13
|
+
hideEndPane?: boolean;
|
|
12
14
|
}
|
|
13
|
-
declare
|
|
14
|
-
attrs: Partial<{}>;
|
|
15
|
-
slots: {
|
|
16
|
-
start?(_: {}): any;
|
|
17
|
-
end?(_: {}): any;
|
|
18
|
-
};
|
|
19
|
-
refs: {
|
|
20
|
-
containerRef: HTMLDivElement;
|
|
21
|
-
};
|
|
22
|
-
rootEl: HTMLDivElement;
|
|
23
|
-
};
|
|
24
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
25
|
-
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
26
16
|
"update:modelValue": (val: number) => any;
|
|
27
17
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
28
18
|
"onUpdate:modelValue"?: (val: number) => any;
|
|
@@ -34,10 +24,13 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
34
24
|
max: number;
|
|
35
25
|
lineStyle: CSSProperties;
|
|
36
26
|
lineClass: string;
|
|
27
|
+
hideEndPane: boolean;
|
|
37
28
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
38
29
|
containerRef: HTMLDivElement;
|
|
39
|
-
}, HTMLDivElement
|
|
40
|
-
|
|
30
|
+
}, HTMLDivElement>, {
|
|
31
|
+
start?(_: {}): any;
|
|
32
|
+
end?(_: {}): any;
|
|
33
|
+
}>;
|
|
41
34
|
export default _default;
|
|
42
35
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
43
36
|
new (): {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as B, ref as x, computed as d, watch as z, onUnmounted as I, openBlock as R, createElementBlock as F, normalizeClass as v, createElementVNode as h, normalizeStyle as E, renderSlot as S, withDirectives as M, vShow as L } from "vue";
|
|
2
|
+
const T = ["aria-orientation", "aria-valuenow", "aria-valuemin", "aria-valuemax"];
|
|
3
|
+
let m = 0, _ = "", k = "";
|
|
4
|
+
const X = /* @__PURE__ */ B({
|
|
3
5
|
__name: "Splitter",
|
|
4
6
|
props: {
|
|
5
7
|
layout: { default: "horizontal" },
|
|
@@ -8,61 +10,90 @@ const k = /* @__PURE__ */ L({
|
|
|
8
10
|
max: { default: 90 },
|
|
9
11
|
class: { default: "" },
|
|
10
12
|
lineClass: { default: "" },
|
|
11
|
-
lineStyle: { default: void 0 }
|
|
13
|
+
lineStyle: { default: void 0 },
|
|
14
|
+
hideEndPane: { type: Boolean, default: !1 }
|
|
12
15
|
},
|
|
13
16
|
emits: ["update:modelValue"],
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
16
|
-
let
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
setup(D, { emit: P }) {
|
|
18
|
+
const t = D, f = P, w = x(null), i = x(!1), y = d(() => Math.max(0, Math.min(100, Math.min(t.min, t.max)))), p = d(() => Math.max(0, Math.min(100, Math.max(t.min, t.max)))), s = (e) => Math.max(y.value, Math.min(p.value, e)), l = x(s(t.modelValue));
|
|
19
|
+
let r = null;
|
|
20
|
+
z(
|
|
21
|
+
() => [t.modelValue, y.value, p.value],
|
|
22
|
+
([e]) => {
|
|
23
|
+
const n = s(e);
|
|
24
|
+
l.value = n, n !== e && f("update:modelValue", n);
|
|
25
|
+
},
|
|
26
|
+
{ immediate: !0 }
|
|
27
|
+
), z(() => t.hideEndPane, (e) => {
|
|
28
|
+
e && i.value && a();
|
|
29
|
+
});
|
|
30
|
+
const A = d(() => t.hideEndPane ? t.layout === "horizontal" ? { width: "100%" } : { height: "100%" } : t.layout === "horizontal" ? { width: `${l.value}%` } : { height: `${l.value}%` }), V = d(() => t.layout === "horizontal" ? { width: `${100 - l.value}%` } : { height: `${100 - l.value}%` }), b = (e) => {
|
|
31
|
+
e instanceof MouseEvent && e.button !== 0 || i.value || (e.cancelable && e.type !== "touchstart" && e.preventDefault(), i.value = !0, m === 0 && (_ = document.body.style.cursor, k = document.body.style.userSelect), m++, document.body.style.cursor = t.layout === "horizontal" ? "col-resize" : "row-resize", document.body.style.userSelect = "none", window.addEventListener("mousemove", c, { passive: !1 }), window.addEventListener("mouseup", a), window.addEventListener("touchmove", c, { passive: !1 }), window.addEventListener("touchend", a), window.addEventListener("touchcancel", a));
|
|
32
|
+
}, c = (e) => {
|
|
33
|
+
!i.value || !w.value || (e.cancelable && e.preventDefault(), r && cancelAnimationFrame(r), r = requestAnimationFrame(() => {
|
|
34
|
+
const n = w.value.getBoundingClientRect();
|
|
35
|
+
let o, g;
|
|
36
|
+
window.TouchEvent && e instanceof TouchEvent ? (o = e.touches[0].clientX, g = e.touches[0].clientY) : (o = e.clientX, g = e.clientY);
|
|
37
|
+
let u = 0;
|
|
38
|
+
t.layout === "horizontal" ? u = (o - n.left) / n.width * 100 : u = (g - n.top) / n.height * 100, u = s(u), l.value = u, f("update:modelValue", u);
|
|
26
39
|
}));
|
|
27
40
|
}, a = () => {
|
|
28
|
-
|
|
41
|
+
i.value && (i.value = !1, m--, m === 0 && (document.body.style.cursor = _, document.body.style.userSelect = k), r && (cancelAnimationFrame(r), r = null), window.removeEventListener("mousemove", c), window.removeEventListener("mouseup", a), window.removeEventListener("touchmove", c), window.removeEventListener("touchend", a), window.removeEventListener("touchcancel", a));
|
|
42
|
+
}, C = (e) => {
|
|
43
|
+
let n = 0;
|
|
44
|
+
if (t.layout === "horizontal" ? e.key === "ArrowLeft" ? n = -5 : e.key === "ArrowRight" && (n = 5) : e.key === "ArrowUp" ? n = -5 : e.key === "ArrowDown" && (n = 5), n !== 0) {
|
|
45
|
+
e.preventDefault();
|
|
46
|
+
let o = l.value + n;
|
|
47
|
+
o = s(o), l.value = o, f("update:modelValue", o);
|
|
48
|
+
}
|
|
29
49
|
};
|
|
30
|
-
return
|
|
50
|
+
return I(() => {
|
|
31
51
|
a();
|
|
32
|
-
}), (
|
|
52
|
+
}), (e, n) => (R(), F("div", {
|
|
33
53
|
ref_key: "containerRef",
|
|
34
|
-
ref:
|
|
35
|
-
class: v(["flex w-full h-full overflow-hidden", [
|
|
54
|
+
ref: w,
|
|
55
|
+
class: v(["flex w-full h-full overflow-hidden", [t.layout === "vertical" ? "flex-col" : "flex-row", t.class]])
|
|
36
56
|
}, [
|
|
37
|
-
|
|
38
|
-
class: "relative overflow-hidden",
|
|
39
|
-
style:
|
|
57
|
+
h("div", {
|
|
58
|
+
class: v(["relative overflow-hidden", { "flex-1": t.hideEndPane }]),
|
|
59
|
+
style: E([{ "will-change": "transform", contain: "layout style" }, A.value])
|
|
40
60
|
}, [
|
|
41
|
-
|
|
42
|
-
],
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
61
|
+
S(e.$slots, "start")
|
|
62
|
+
], 6),
|
|
63
|
+
M(h("div", {
|
|
64
|
+
role: "separator",
|
|
65
|
+
tabindex: "0",
|
|
66
|
+
"aria-orientation": t.layout === "horizontal" ? "vertical" : "horizontal",
|
|
67
|
+
"aria-valuenow": Math.round(l.value),
|
|
68
|
+
"aria-valuemin": y.value,
|
|
69
|
+
"aria-valuemax": p.value,
|
|
70
|
+
class: v(["vl-splitter__line flex items-center justify-center bg-border/40 hover:bg-gray-150 focus:bg-gray-200 focus:outline-none transition-colors z-10 shrink-0 touch-none", [
|
|
71
|
+
t.layout === "horizontal" ? "w-1.5 cursor-col-resize h-full mx-px" : "h-1.5 cursor-row-resize w-full my-px",
|
|
72
|
+
i.value ? "bg-gray-200" : "",
|
|
73
|
+
t.lineClass
|
|
48
74
|
]]),
|
|
49
|
-
style:
|
|
50
|
-
onMousedown:
|
|
51
|
-
onTouchstart:
|
|
75
|
+
style: E(t.lineStyle),
|
|
76
|
+
onMousedown: b,
|
|
77
|
+
onTouchstart: b,
|
|
78
|
+
onKeydown: C
|
|
52
79
|
}, [
|
|
53
|
-
|
|
54
|
-
class: v(["bg-gray-300 rounded-full",
|
|
80
|
+
h("div", {
|
|
81
|
+
class: v(["bg-gray-300 rounded-full", t.layout === "horizontal" ? "h-8 w-0.5" : "w-8 h-0.5"])
|
|
55
82
|
}, null, 2)
|
|
56
|
-
],
|
|
57
|
-
|
|
83
|
+
], 46, T), [
|
|
84
|
+
[L, !t.hideEndPane]
|
|
85
|
+
]),
|
|
86
|
+
M(h("div", {
|
|
58
87
|
class: "relative overflow-hidden flex-1",
|
|
59
|
-
style:
|
|
88
|
+
style: E([{ "will-change": "transform", contain: "layout style" }, V.value])
|
|
60
89
|
}, [
|
|
61
|
-
|
|
62
|
-
], 4)
|
|
90
|
+
S(e.$slots, "end")
|
|
91
|
+
], 4), [
|
|
92
|
+
[L, !t.hideEndPane]
|
|
93
|
+
])
|
|
63
94
|
], 2));
|
|
64
95
|
}
|
|
65
96
|
});
|
|
66
97
|
export {
|
|
67
|
-
|
|
98
|
+
X as default
|
|
68
99
|
};
|
package/docs-manifest.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"managedBy": "vlite3",
|
|
3
3
|
"manifestVersion": 1,
|
|
4
4
|
"packageName": "vlite3",
|
|
5
|
-
"packageVersion": "1.5.
|
|
6
|
-
"generatedAt": "2026-08-
|
|
5
|
+
"packageVersion": "1.5.27",
|
|
6
|
+
"generatedAt": "2026-08-18T02:04:14.181Z",
|
|
7
7
|
"files": {
|
|
8
8
|
"component-index.md": {
|
|
9
9
|
"sha256": "e49e0418bda4262d9181fcd9a79cce02513027b34aab865663da7e2d93e7c702"
|
package/package.json
CHANGED
|
File without changes
|
/package/components/RichTextEditor/{RichTextLinkPopover.vue.js → RichTextLinkPopover2.vue.js}
RENAMED
|
File without changes
|
|
File without changes
|