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.
@@ -25,8 +25,8 @@ import qe from "../IconPicker.vue.js";
25
25
  /* empty css */
26
26
  /* empty css */
27
27
  /* empty css */
28
- /* empty css */
29
- /* empty css */
28
+ /* empty css */
29
+ /* empty css */
30
30
  import "../../core/config.js";
31
31
  /* empty css */
32
32
  /* empty css */
@@ -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 "./CommandPaletteItem2.vue.js";
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,5 +1,5 @@
1
1
  import t from "./CommandPaletteItem3.vue.js";
2
- /* empty css */
2
+ /* empty css */
3
3
  import o from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-66b1ae06"]]);
5
5
  export {
@@ -1,4 +1,4 @@
1
- import o from "./DropdownMenu2.vue.js";
1
+ import o from "./DropdownMenu3.vue.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-b2b8e35e"]]);
@@ -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 "./RichTextToolbar.vue.js";
4
- /* empty css */
5
- import de from "./RichTextLinkPopover.vue.js";
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
- import o from "./RichTextLinkPopover.vue.js";
2
- /* empty css */
1
+ import o from "./RichTextLinkPopover2.vue.js";
2
+ /* empty css */
3
3
  export {
4
4
  o as default
5
5
  };
@@ -1,5 +1,5 @@
1
- import o from "./RichTextToolbar.vue.js";
2
- /* empty css */
1
+ import o from "./RichTextToolbar2.vue.js";
2
+ /* empty css */
3
3
  export {
4
4
  o as default
5
5
  };
@@ -26,8 +26,8 @@ import "../../icons/IconRegistry.js";
26
26
  /* empty css */
27
27
  /* empty css */
28
28
  /* empty css */
29
- /* empty css */
30
- /* empty css */
29
+ /* empty css */
30
+ /* empty css */
31
31
  import "../../core/config.js";
32
32
  /* empty css */
33
33
  /* empty css */
@@ -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 function __VLS_template(): {
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
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
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 L, ref as f, computed as w, onUnmounted as _, openBlock as $, createElementBlock as C, normalizeClass as v, createElementVNode as u, normalizeStyle as h, renderSlot as p } from "vue";
2
- const k = /* @__PURE__ */ L({
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(g, { emit: z }) {
15
- const e = g, x = z, c = f(null), r = f(!1), o = f(e.modelValue);
16
- let n = null;
17
- const E = w(() => e.layout === "horizontal" ? { width: `${o.value}%` } : { height: `${o.value}%` }), S = w(() => e.layout === "horizontal" ? { width: `${100 - o.value}%` } : { height: `${100 - o.value}%` }), y = (t) => {
18
- t.cancelable && t.type !== "touchstart" && t.preventDefault(), r.value = !0, document.body.style.cursor = e.layout === "horizontal" ? "col-resize" : "row-resize", document.body.style.userSelect = "none", window.addEventListener("mousemove", s, { passive: !1 }), window.addEventListener("mouseup", a), window.addEventListener("touchmove", s, { passive: !1 }), window.addEventListener("touchend", a);
19
- }, s = (t) => {
20
- !r.value || !c.value || (t.cancelable && t.preventDefault(), n && cancelAnimationFrame(n), n = requestAnimationFrame(() => {
21
- const i = c.value.getBoundingClientRect();
22
- let d, m;
23
- window.TouchEvent && t instanceof TouchEvent ? (d = t.touches[0].clientX, m = t.touches[0].clientY) : (d = t.clientX, m = t.clientY);
24
- let l = 0;
25
- e.layout === "horizontal" ? l = (d - i.left) / i.width * 100 : l = (m - i.top) / i.height * 100, l < e.min && (l = e.min), l > e.max && (l = e.max), o.value = l, x("update:modelValue", l);
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
- r.value = !1, document.body.style.cursor = "", document.body.style.userSelect = "", n && (cancelAnimationFrame(n), n = null), window.removeEventListener("mousemove", s), window.removeEventListener("mouseup", a), window.removeEventListener("touchmove", s), window.removeEventListener("touchend", a);
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
- }), (t, i) => ($(), C("div", {
52
+ }), (e, n) => (R(), F("div", {
33
53
  ref_key: "containerRef",
34
- ref: c,
35
- class: v(["flex w-full h-full overflow-hidden", [e.layout === "vertical" ? "flex-col" : "flex-row", e.class]])
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
- u("div", {
38
- class: "relative overflow-hidden",
39
- style: h([{ "will-change": "transform", contain: "layout style" }, E.value])
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
- p(t.$slots, "start")
42
- ], 4),
43
- u("div", {
44
- class: v(["vl-splitter__line flex items-center justify-center bg-border/40 hover:bg-gray-150 transition-colors z-10 shrink-0 touch-none", [
45
- e.layout === "horizontal" ? "w-1.5 cursor-col-resize h-full mx-px" : "h-1.5 cursor-row-resize w-full my-px",
46
- r.value ? "bg-gray-200" : "",
47
- e.lineClass
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: h(e.lineStyle),
50
- onMousedown: y,
51
- onTouchstart: y
75
+ style: E(t.lineStyle),
76
+ onMousedown: b,
77
+ onTouchstart: b,
78
+ onKeydown: C
52
79
  }, [
53
- u("div", {
54
- class: v(["bg-gray-300 rounded-full", e.layout === "horizontal" ? "h-8 w-0.5" : "w-8 h-0.5"])
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
- ], 38),
57
- u("div", {
83
+ ], 46, T), [
84
+ [L, !t.hideEndPane]
85
+ ]),
86
+ M(h("div", {
58
87
  class: "relative overflow-hidden flex-1",
59
- style: h([{ "will-change": "transform", contain: "layout style" }, S.value])
88
+ style: E([{ "will-change": "transform", contain: "layout style" }, V.value])
60
89
  }, [
61
- p(t.$slots, "end")
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
- k as default
98
+ X as default
68
99
  };
@@ -2,8 +2,8 @@
2
2
  "managedBy": "vlite3",
3
3
  "manifestVersion": 1,
4
4
  "packageName": "vlite3",
5
- "packageVersion": "1.5.25",
6
- "generatedAt": "2026-08-17T16:15:58.147Z",
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
@@ -3,7 +3,7 @@
3
3
  "private": false,
4
4
  "description": "A Vue 3 UI component library built with Tailwind CSS.",
5
5
  "license": "MIT",
6
- "version": "1.5.25",
6
+ "version": "1.5.27",
7
7
  "type": "module",
8
8
  "main": "index.js",
9
9
  "module": "index.js",