vlite3 0.8.2 → 0.8.3
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/BackButton.vue.js +10 -11
- package/components/Breadcrumb/Breadcrumb.vue.js +2 -2
- package/components/Chip/Chip.vue.d.ts +2 -2
- package/components/ChoiceBox/ChoiceBox.vue.d.ts +1 -1
- package/components/DataTable/DataTable.vue.d.ts +2 -2
- package/components/Empty/Empty.vue.d.ts +2 -0
- package/components/Empty/Empty.vue.js +50 -33
- package/components/Empty/index.d.ts +1 -0
- package/components/Empty/variants/Variant1.vue.d.ts +22 -0
- package/components/Empty/variants/Variant1.vue.js +4 -0
- package/components/Empty/variants/Variant1.vue2.js +30 -0
- package/components/Empty/variants/Variant10.vue.d.ts +22 -0
- package/components/Empty/variants/Variant10.vue.js +4 -0
- package/components/Empty/variants/Variant10.vue2.js +37 -0
- package/components/Empty/variants/Variant11.vue.d.ts +22 -0
- package/components/Empty/variants/Variant11.vue.js +4 -0
- package/components/Empty/variants/Variant11.vue2.js +29 -0
- package/components/Empty/variants/Variant2.vue.d.ts +22 -0
- package/components/Empty/variants/Variant2.vue.js +4 -0
- package/components/Empty/variants/Variant2.vue2.js +33 -0
- package/components/Empty/variants/Variant3.vue.d.ts +22 -0
- package/components/Empty/variants/Variant3.vue.js +4 -0
- package/components/Empty/variants/Variant3.vue2.js +25 -0
- package/components/Empty/variants/Variant4.vue.d.ts +22 -0
- package/components/Empty/variants/Variant4.vue.js +4 -0
- package/components/Empty/variants/Variant4.vue2.js +33 -0
- package/components/Empty/variants/Variant5.vue.d.ts +22 -0
- package/components/Empty/variants/Variant5.vue.js +4 -0
- package/components/Empty/variants/Variant5.vue2.js +33 -0
- package/components/Empty/variants/Variant6.vue.d.ts +22 -0
- package/components/Empty/variants/Variant6.vue.js +4 -0
- package/components/Empty/variants/Variant6.vue2.js +33 -0
- package/components/Empty/variants/Variant7.vue.d.ts +22 -0
- package/components/Empty/variants/Variant7.vue.js +4 -0
- package/components/Empty/variants/Variant7.vue2.js +35 -0
- package/components/Empty/variants/Variant8.vue.d.ts +22 -0
- package/components/Empty/variants/Variant8.vue.js +4 -0
- package/components/Empty/variants/Variant8.vue2.js +33 -0
- package/components/Empty/variants/Variant9.vue.d.ts +22 -0
- package/components/Empty/variants/Variant9.vue.js +4 -0
- package/components/Empty/variants/Variant9.vue2.js +33 -0
- package/components/Form/Form.vue.d.ts +17 -0
- package/components/Form/Form.vue.js +1 -1
- package/components/Form/Form.vue2.js +239 -183
- package/components/Form/types.d.ts +13 -1
- package/components/Modal.vue.js +2 -2
- package/components/Modal.vue2.js +45 -43
- package/components/Navbar/Navbar.vue.d.ts +2 -2
- package/components/ProgressBar/ProgressBar.vue.d.ts +1 -1
- package/components/Screen/Screen.vue.js +249 -241
- package/components/SidebarMenu/SidebarMenuItem.vue.js +5 -7
- package/components/Workbook/Workbook.vue.d.ts +2 -2
- package/core/config.d.ts +6 -0
- package/core/config.js +14 -8
- package/core/index.js +12 -7
- package/index.d.ts +1 -0
- package/index.js +120 -117
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/config.type.d.ts +9 -0
package/components/Modal.vue2.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { useKeyStroke as
|
|
1
|
+
import { defineComponent as P, ref as c, inject as R, computed as h, markRaw as V, watch as T, provide as W, nextTick as K, onMounted as A, onUnmounted as U, openBlock as s, createElementBlock as a, Fragment as q, mergeProps as B, withModifiers as I, renderSlot as m, createCommentVNode as r, createBlock as S, Teleport as G, normalizeClass as d, createElementVNode as v, toDisplayString as F, createVNode as H, resolveDynamicComponent as J } from "vue";
|
|
2
|
+
import L from "./Button.vue.js";
|
|
3
|
+
import { useKeyStroke as Q } from "../composables/useKeyStroke.js";
|
|
4
4
|
import { $t as O } from "../utils/i18n.js";
|
|
5
|
-
const
|
|
5
|
+
const X = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "flex-none flex flex-col space-y-1.5 pb-0 border-b border-border/90"
|
|
8
|
-
},
|
|
8
|
+
}, Y = { class: "text-lg font-semibold leading-none tracking-tight" }, Z = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "text-sm text-muted-foreground mb-3.5"
|
|
11
|
-
},
|
|
11
|
+
}, le = /* @__PURE__ */ P({
|
|
12
12
|
inheritAttrs: !1,
|
|
13
13
|
__name: "Modal",
|
|
14
14
|
props: {
|
|
@@ -29,10 +29,10 @@ const L = {
|
|
|
29
29
|
},
|
|
30
30
|
emits: ["close", "update:show", "onOpen"],
|
|
31
31
|
setup(t, { emit: j }) {
|
|
32
|
-
const o = t, i = j, l =
|
|
32
|
+
const o = t, i = j, l = c(o.show), g = c(!1), y = c(!1), k = c(null);
|
|
33
33
|
let u = null;
|
|
34
|
-
const n =
|
|
35
|
-
|
|
34
|
+
const b = c(!1), n = R("dropdown-context", null), C = h(() => o.body ? V(o.body) : void 0);
|
|
35
|
+
T(
|
|
36
36
|
() => o.show,
|
|
37
37
|
(e) => {
|
|
38
38
|
l.value = e, e && (i("onOpen"), n?.close());
|
|
@@ -42,84 +42,86 @@ const L = {
|
|
|
42
42
|
l.value = !0, n?.close();
|
|
43
43
|
}, D = (e) => {
|
|
44
44
|
g.value = e;
|
|
45
|
-
},
|
|
45
|
+
}, E = (e) => {
|
|
46
|
+
b.value = e;
|
|
47
|
+
}, f = () => {
|
|
46
48
|
if (g.value) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
y.value = !0, u && clearTimeout(u), u = setTimeout(() => {
|
|
50
|
+
y.value = !1;
|
|
49
51
|
}, 1e3);
|
|
50
52
|
return;
|
|
51
53
|
}
|
|
52
54
|
l.value = !1, i("update:show", !1), i("close");
|
|
53
|
-
},
|
|
55
|
+
}, p = () => {
|
|
54
56
|
l.value = !1, i("update:show", !1), i("close");
|
|
55
57
|
};
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
-
o.closeOutside &&
|
|
59
|
-
}, { onKeyStroke:
|
|
60
|
-
|
|
61
|
-
e ? (n?.onChildToggle?.(!0), document.body.style.overflow = "hidden", await K(),
|
|
62
|
-
}), W(() => {
|
|
63
|
-
l.value && n?.onChildToggle?.(!0);
|
|
58
|
+
W("modal-context", { close: f, setSubmitting: D, registerFormFooter: E });
|
|
59
|
+
const M = () => {
|
|
60
|
+
o.closeOutside && f();
|
|
61
|
+
}, { onKeyStroke: N } = Q();
|
|
62
|
+
N("Escape", f), T(l, async (e) => {
|
|
63
|
+
e ? (n?.onChildToggle?.(!0), document.body.style.overflow = "hidden", await K(), k.value?.focus()) : (document.body.style.overflow = "", n?.onChildToggle?.(!1), b.value = !1);
|
|
64
64
|
}), A(() => {
|
|
65
|
+
l.value && n?.onChildToggle?.(!0);
|
|
66
|
+
}), U(() => {
|
|
65
67
|
l.value && n?.onChildToggle?.(!1), document.body.style.overflow = "", u && clearTimeout(u);
|
|
66
68
|
});
|
|
67
|
-
const
|
|
69
|
+
const x = h(() => o.titleI18n ? O(o.titleI18n) : o.title), w = h(
|
|
68
70
|
() => o.descriptionI18n ? O(o.descriptionI18n) : o.description
|
|
69
71
|
);
|
|
70
|
-
return (e,
|
|
71
|
-
e.$slots?.trigger || e.$slots?.default ? (s(), a("span",
|
|
72
|
+
return (e, $) => (s(), a(q, null, [
|
|
73
|
+
e.$slots?.trigger || e.$slots?.default ? (s(), a("span", B({
|
|
72
74
|
key: 0,
|
|
73
|
-
onClick:
|
|
75
|
+
onClick: I(z, ["stop"]),
|
|
74
76
|
class: `${t.triggerClass}`
|
|
75
77
|
}, e.$attrs), [
|
|
76
78
|
m(e.$slots, "trigger", {}, () => [
|
|
77
79
|
t.body ? m(e.$slots, "default", { key: 0 }, void 0, !0) : r("", !0)
|
|
78
80
|
], !0)
|
|
79
81
|
], 16)) : r("", !0),
|
|
80
|
-
(s(),
|
|
82
|
+
(s(), S(G, { to: "body" }, [
|
|
81
83
|
l.value ? (s(), a("div", {
|
|
82
84
|
key: 0,
|
|
83
85
|
class: d(["fixed inset-0 z-50 flex items-center justify-center p-4 v-modal-overlay", t.backdrop ? "v-modal-backdrop" : ""]),
|
|
84
|
-
onClick:
|
|
86
|
+
onClick: M
|
|
85
87
|
}, [
|
|
86
|
-
|
|
88
|
+
v("div", {
|
|
87
89
|
ref_key: "modalRef",
|
|
88
|
-
ref:
|
|
90
|
+
ref: k,
|
|
89
91
|
tabindex: "-1",
|
|
90
92
|
class: d(["modal-body relative w-full rounded border border-border/60 bg-body shadow-lg text-foreground flex flex-col max-h-[85vh] sm:max-h-[90vh] focus:outline-none", [t.maxWidth]]),
|
|
91
|
-
onClick:
|
|
93
|
+
onClick: $[0] || ($[0] = I(() => {
|
|
92
94
|
}, ["stop"]))
|
|
93
95
|
}, [
|
|
94
|
-
|
|
95
|
-
|
|
96
|
+
x.value ? (s(), a("div", X, [
|
|
97
|
+
v("div", {
|
|
96
98
|
class: d(["flex items-center justify-between py-2 px-4 rounded-t-md", t.headerClass])
|
|
97
99
|
}, [
|
|
98
|
-
|
|
99
|
-
|
|
100
|
+
v("h3", Y, F(x.value), 1),
|
|
101
|
+
H(L, {
|
|
100
102
|
rounded: "full",
|
|
101
103
|
size: "sm",
|
|
102
104
|
icon: "lucide:x",
|
|
103
105
|
variant: "ghost",
|
|
104
|
-
class: d(["hover:bg-gray-250/25!", { "blink-bg":
|
|
105
|
-
onClick:
|
|
106
|
+
class: d(["hover:bg-gray-250/25!", { "blink-bg": y.value }]),
|
|
107
|
+
onClick: f
|
|
106
108
|
}, null, 8, ["class"])
|
|
107
109
|
], 2)
|
|
108
110
|
])) : r("", !0),
|
|
109
|
-
|
|
110
|
-
class: d(["flex-1 overflow-y-auto px-4 pt-4
|
|
111
|
+
v("div", {
|
|
112
|
+
class: d(["flex-1 overflow-y-auto px-4 pt-4 min-h-0", [b.value ? "pb-0" : "pb-3.5", t.bodyClass]])
|
|
111
113
|
}, [
|
|
112
|
-
|
|
113
|
-
|
|
114
|
+
w.value ? (s(), a("p", Z, F(w.value), 1)) : r("", !0),
|
|
115
|
+
C.value ? (s(), S(J(C.value), B({ key: 1 }, { ...t.bodyProps, ...e.$attrs }, { close: p }), null, 16)) : m(e.$slots, "default", {
|
|
114
116
|
key: 2,
|
|
115
|
-
close:
|
|
117
|
+
close: p
|
|
116
118
|
}, void 0, !0)
|
|
117
119
|
], 2),
|
|
118
120
|
e.$slots.footer ? (s(), a("div", {
|
|
119
121
|
key: 1,
|
|
120
122
|
class: d([t.footerClass, "flex-none flex items-center px-4 py-3 border-t border-border/75 rounded-b-xl bg-body"])
|
|
121
123
|
}, [
|
|
122
|
-
m(e.$slots, "footer", { close:
|
|
124
|
+
m(e.$slots, "footer", { close: p }, void 0, !0)
|
|
123
125
|
], 2)) : r("", !0)
|
|
124
126
|
], 2)
|
|
125
127
|
], 2)) : r("", !0)
|
|
@@ -128,5 +130,5 @@ const L = {
|
|
|
128
130
|
}
|
|
129
131
|
});
|
|
130
132
|
export {
|
|
131
|
-
|
|
133
|
+
le as default
|
|
132
134
|
};
|
|
@@ -82,12 +82,12 @@ declare const __VLS_component: import('vue').DefineComponent<NavbarProps, {}, {}
|
|
|
82
82
|
}, string, import('vue').PublicProps, Readonly<NavbarProps> & Readonly<{
|
|
83
83
|
"onToggle-mobile"?: () => any;
|
|
84
84
|
}>, {
|
|
85
|
-
floating: boolean;
|
|
86
85
|
variant: import('../../types/navbar.type').NavbarVariant;
|
|
87
|
-
|
|
86
|
+
floating: boolean;
|
|
88
87
|
class: string;
|
|
89
88
|
height: string;
|
|
90
89
|
border: boolean;
|
|
90
|
+
compact: boolean;
|
|
91
91
|
position: import('../../types/navbar.type').NavbarPosition;
|
|
92
92
|
contentClass: string;
|
|
93
93
|
breadcrumb: boolean;
|
|
@@ -3,8 +3,8 @@ declare const _default: import('vue').DefineComponent<ProgressBarProps, {}, {},
|
|
|
3
3
|
variant: ProgressBarVariant;
|
|
4
4
|
size: ProgressBarSize;
|
|
5
5
|
rounded: string;
|
|
6
|
-
striped: boolean;
|
|
7
6
|
type: import('../../types/progressbar').ProgressBarType;
|
|
7
|
+
striped: boolean;
|
|
8
8
|
indeterminate: boolean;
|
|
9
9
|
showValue: boolean;
|
|
10
10
|
animated: boolean;
|