vlite3 0.8.2 → 0.8.4
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/ColorPicker/ColorIro.vue3.js +2 -2
- package/components/ColorPicker/ColorPicker.vue.js +2 -2
- package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem.vue2.js → CommandPaletteItem.vue.js} +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 +33 -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 +22 -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 +30 -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 +18 -0
- package/components/Form/Form.vue.js +1 -1
- package/components/Form/Form.vue2.js +219 -170
- package/components/Form/types.d.ts +13 -1
- package/components/Form/utils/form.utils.d.ts +11 -0
- package/components/Form/utils/form.utils.js +115 -104
- 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/NavbarCommandPalette.vue.js +1 -1
- package/components/ProgressBar/ProgressBar.vue.d.ts +1 -1
- package/components/Screen/Screen.vue.js +249 -241
- package/components/Screen/ScreenFilter.vue.js +1 -1
- 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/ColorPicker/{ColorIro.vue.js → ColorIro.vue2.js} +0 -0
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
function
|
|
1
|
+
function g(e) {
|
|
2
2
|
return !!e && typeof e == "object";
|
|
3
3
|
}
|
|
4
|
-
function
|
|
5
|
-
if (!
|
|
6
|
-
const f =
|
|
7
|
-
let
|
|
4
|
+
function A(e, t) {
|
|
5
|
+
if (!t || !e) return;
|
|
6
|
+
const f = t.split(".");
|
|
7
|
+
let u = e;
|
|
8
8
|
for (const n of f) {
|
|
9
|
-
if (
|
|
10
|
-
|
|
9
|
+
if (u == null) return;
|
|
10
|
+
u = u[n];
|
|
11
11
|
}
|
|
12
|
-
return
|
|
12
|
+
return u;
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
if (!
|
|
16
|
-
const
|
|
14
|
+
function h(e, t, f) {
|
|
15
|
+
if (!t) return e;
|
|
16
|
+
const u = t.split("."), n = { ...e };
|
|
17
17
|
let o = n;
|
|
18
|
-
for (let
|
|
19
|
-
const c =
|
|
18
|
+
for (let s = 0; s < u.length - 1; s++) {
|
|
19
|
+
const c = u[s];
|
|
20
20
|
Array.isArray(o[c]) ? o[c] = [...o[c]] : o[c] = o[c] ? { ...o[c] } : {}, o = o[c];
|
|
21
21
|
}
|
|
22
|
-
return o[
|
|
22
|
+
return o[u[u.length - 1]] = f, n;
|
|
23
23
|
}
|
|
24
|
-
function
|
|
25
|
-
return !
|
|
24
|
+
function v(e, t) {
|
|
25
|
+
return !g(t) || !t.name ? e : A(e, t.name) === void 0 && t.value !== void 0 ? h(e, t.name, t.value) : e;
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
let f =
|
|
29
|
-
const
|
|
30
|
-
for (const n of
|
|
27
|
+
function x(e, t) {
|
|
28
|
+
let f = t ? d(t) : {};
|
|
29
|
+
const u = Array.isArray(e[0]) ? e.flat() : e;
|
|
30
|
+
for (const n of u) {
|
|
31
31
|
if (!n.name) continue;
|
|
32
32
|
const o = n.mapFrom || n.name;
|
|
33
|
-
let
|
|
34
|
-
if (
|
|
33
|
+
let s = t ? A(t, o) : void 0;
|
|
34
|
+
if (s != null) {
|
|
35
35
|
const c = n.valueKey || n.key;
|
|
36
|
-
c && (Array.isArray(
|
|
37
|
-
(
|
|
38
|
-
) : typeof
|
|
36
|
+
c && (Array.isArray(s) ? s = s.map(
|
|
37
|
+
(p) => p && typeof p == "object" ? A(p, c) : p
|
|
38
|
+
) : typeof s == "object" && (s = A(s, c))), n.format && (s = n.format(s, t || {}));
|
|
39
39
|
}
|
|
40
|
-
if (
|
|
41
|
-
if (n.mapFrom &&
|
|
42
|
-
const c =
|
|
43
|
-
c !== void 0 && (
|
|
40
|
+
if (s === void 0) {
|
|
41
|
+
if (n.mapFrom && t) {
|
|
42
|
+
const c = A(t, n.name);
|
|
43
|
+
c !== void 0 && (s = c);
|
|
44
44
|
}
|
|
45
|
-
if (
|
|
45
|
+
if (s === void 0) {
|
|
46
46
|
const c = typeof n.value == "function" ? n.value() : n.value;
|
|
47
|
-
c !== void 0 && Object.assign(f,
|
|
47
|
+
c !== void 0 && Object.assign(f, h(f, n.name, c));
|
|
48
48
|
} else
|
|
49
|
-
Object.assign(f,
|
|
49
|
+
Object.assign(f, h(f, n.name, s));
|
|
50
50
|
} else
|
|
51
|
-
Object.assign(f,
|
|
52
|
-
f =
|
|
51
|
+
Object.assign(f, h(f, n.name, s));
|
|
52
|
+
f = v(f, n.addonLeft), f = v(f, n.addonRight);
|
|
53
53
|
}
|
|
54
54
|
return f;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
57
|
-
return e === void 0 ? !1 : typeof e == "boolean" ? e : typeof e == "function" ? e(
|
|
56
|
+
function F(e, t) {
|
|
57
|
+
return e === void 0 ? !1 : typeof e == "boolean" ? e : typeof e == "function" ? e(t) : !1;
|
|
58
58
|
}
|
|
59
|
-
function
|
|
60
|
-
return Array.isArray(e) ? e.filter((f) => f ? !
|
|
59
|
+
function b(e, t) {
|
|
60
|
+
return Array.isArray(e) ? e.filter((f) => f ? !t.every((n) => {
|
|
61
61
|
const o = f[n.name];
|
|
62
62
|
return o == null || o === "";
|
|
63
63
|
}) : !1) : [];
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
const f = [],
|
|
67
|
-
for (const n of
|
|
65
|
+
function N(e, t) {
|
|
66
|
+
const f = [], u = Array.isArray(e[0]) ? e.flat() : e;
|
|
67
|
+
for (const n of u) {
|
|
68
68
|
if (!n.name) continue;
|
|
69
69
|
const o = n.type;
|
|
70
70
|
if (o === "file" || o === "avatarUpload" || o === "fileUploader") {
|
|
71
|
-
const
|
|
72
|
-
|
|
71
|
+
const s = A(t, n.name);
|
|
72
|
+
s && f.push({
|
|
73
73
|
name: n.name,
|
|
74
|
-
value:
|
|
74
|
+
value: s,
|
|
75
75
|
type: o,
|
|
76
76
|
field: n
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
79
|
if (o === "customFields" && n.props?.schema) {
|
|
80
|
-
const
|
|
81
|
-
if (Array.isArray(
|
|
82
|
-
const
|
|
83
|
-
(
|
|
80
|
+
const s = A(t, n.name);
|
|
81
|
+
if (Array.isArray(s)) {
|
|
82
|
+
const p = n.props.schema.filter(
|
|
83
|
+
(i) => i.type === "file" || i.type === "avatarUpload" || i.type === "fileUploader"
|
|
84
84
|
);
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
const l =
|
|
85
|
+
p.length > 0 && s.forEach((i, r) => {
|
|
86
|
+
p.forEach((a) => {
|
|
87
|
+
const l = i?.[a.name];
|
|
88
88
|
l && f.push({
|
|
89
|
-
name: `${n.name}.${
|
|
89
|
+
name: `${n.name}.${r}.${a.name}`,
|
|
90
90
|
value: l,
|
|
91
91
|
type: a.type,
|
|
92
92
|
field: a
|
|
@@ -98,83 +98,94 @@ function F(e, r) {
|
|
|
98
98
|
}
|
|
99
99
|
return f;
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function d(e) {
|
|
102
102
|
if (e === null || typeof e != "object") return e;
|
|
103
103
|
if (e instanceof Date) return new Date(e.getTime());
|
|
104
104
|
if (e instanceof File) return e;
|
|
105
|
-
if (Array.isArray(e)) return e.map((f) =>
|
|
106
|
-
const
|
|
105
|
+
if (Array.isArray(e)) return e.map((f) => d(f));
|
|
106
|
+
const t = {};
|
|
107
107
|
for (const f in e)
|
|
108
|
-
Object.prototype.hasOwnProperty.call(e, f) && (
|
|
109
|
-
return
|
|
108
|
+
Object.prototype.hasOwnProperty.call(e, f) && (t[f] = d(e[f]));
|
|
109
|
+
return t;
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function T(e) {
|
|
112
112
|
return e ? typeof e == "object" && (typeof e.render == "function" || typeof e.setup == "function" || e.__name !== void 0 || e.name !== void 0) : !1;
|
|
113
113
|
}
|
|
114
|
-
function
|
|
115
|
-
const
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
114
|
+
function O(e) {
|
|
115
|
+
const t = e.type;
|
|
116
|
+
return t === "multiSelect" ? [] : t === "switch" || t === "check" ? !1 : null;
|
|
117
|
+
}
|
|
118
|
+
function S(e) {
|
|
119
|
+
return !!(e == null || e === "" || Array.isArray(e) && e.length === 0);
|
|
120
|
+
}
|
|
121
|
+
function V(e, t, f, u) {
|
|
122
|
+
const n = f === void 0 && u === void 0, o = n ? d(e) : {}, s = Array.isArray(t[0]) ? t.flat() : t, c = f || [], p = u || [];
|
|
123
|
+
for (const i of s) {
|
|
124
|
+
if (!i.name) continue;
|
|
125
|
+
let r = A(e, i.name);
|
|
126
|
+
const a = i.name.split(".")[0], l = Object.prototype.hasOwnProperty.call(e, a);
|
|
127
|
+
if (S(r)) {
|
|
128
|
+
if (!l) continue;
|
|
129
|
+
r = O(i);
|
|
130
|
+
}
|
|
131
|
+
if (r = d(r), i.type === "customFields" && i.props?.schema && Array.isArray(r)) {
|
|
132
|
+
const k = i.props.schema;
|
|
133
|
+
r = r.map((E) => V(E, k, f, u));
|
|
123
134
|
}
|
|
124
|
-
let
|
|
125
|
-
|
|
126
|
-
const
|
|
127
|
-
|
|
135
|
+
let m = !1;
|
|
136
|
+
i.transform && (r = i.transform(r, e), m = !0);
|
|
137
|
+
const y = i.mapTo || i.name;
|
|
138
|
+
y !== i.name && (m = !0, n && !i.name.includes(".") && delete o[i.name]), !n || m ? Object.assign(o, h(o, y, r)) : Object.assign(o, h(o, i.name, r));
|
|
128
139
|
}
|
|
129
140
|
if (c.length > 0) {
|
|
130
|
-
const
|
|
131
|
-
if (!(!
|
|
132
|
-
if (Array.isArray(
|
|
141
|
+
const i = (r, a) => {
|
|
142
|
+
if (!(!r || typeof r != "object") && !(!a || typeof a != "object"))
|
|
143
|
+
if (Array.isArray(r) && Array.isArray(a)) {
|
|
133
144
|
for (const l of c) {
|
|
134
|
-
const
|
|
135
|
-
|
|
136
|
-
|
|
145
|
+
const m = r.find((y) => y && typeof y == "object" && y[l] !== void 0)?.[l];
|
|
146
|
+
m !== void 0 && a.forEach((y) => {
|
|
147
|
+
y && typeof y == "object" && y[l] === void 0 && (y[l] = d(m));
|
|
137
148
|
});
|
|
138
149
|
}
|
|
139
|
-
|
|
140
|
-
a[
|
|
150
|
+
r.forEach((l, m) => {
|
|
151
|
+
a[m] && i(l, a[m]);
|
|
141
152
|
});
|
|
142
153
|
} else {
|
|
143
154
|
for (const l of c)
|
|
144
|
-
|
|
155
|
+
r[l] !== void 0 && a[l] === void 0 && (a[l] = d(r[l]));
|
|
145
156
|
for (const l in a)
|
|
146
|
-
typeof a[l] == "object" && typeof
|
|
157
|
+
typeof a[l] == "object" && typeof r[l] == "object" && i(r[l], a[l]);
|
|
147
158
|
}
|
|
148
159
|
};
|
|
149
|
-
for (const
|
|
150
|
-
e[
|
|
151
|
-
|
|
160
|
+
for (const r of c)
|
|
161
|
+
e[r] !== void 0 && o[r] === void 0 && (o[r] = d(e[r]));
|
|
162
|
+
i(e, o);
|
|
152
163
|
}
|
|
153
|
-
if (
|
|
154
|
-
const
|
|
155
|
-
if (!(!
|
|
156
|
-
if (Array.isArray(
|
|
157
|
-
|
|
164
|
+
if (p.length > 0) {
|
|
165
|
+
const i = (r) => {
|
|
166
|
+
if (!(!r || typeof r != "object"))
|
|
167
|
+
if (Array.isArray(r))
|
|
168
|
+
r.forEach(i);
|
|
158
169
|
else {
|
|
159
|
-
for (const a of
|
|
160
|
-
delete
|
|
161
|
-
for (const a in
|
|
162
|
-
|
|
170
|
+
for (const a of p)
|
|
171
|
+
delete r[a];
|
|
172
|
+
for (const a in r)
|
|
173
|
+
i(r[a]);
|
|
163
174
|
}
|
|
164
175
|
};
|
|
165
|
-
|
|
176
|
+
i(o);
|
|
166
177
|
}
|
|
167
178
|
return o;
|
|
168
179
|
}
|
|
169
180
|
export {
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
181
|
+
V as cleanSubmitValues,
|
|
182
|
+
N as collectFileFields,
|
|
183
|
+
d as deepClone,
|
|
184
|
+
F as evaluateConditional,
|
|
185
|
+
b as filterNullCustomFields,
|
|
186
|
+
A as getNestedValue,
|
|
187
|
+
x as initializeFormValues,
|
|
188
|
+
g as isAddonObject,
|
|
189
|
+
T as isComponent,
|
|
190
|
+
h as setNestedValue
|
|
180
191
|
};
|
package/components/Modal.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Modal.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-7572bc5b"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
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,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 R } from "../utils/i18n.js";
|
|
6
|
-
/* empty css
|
|
6
|
+
/* empty css */
|
|
7
7
|
const U = { class: "block truncate -text-fs-1.5" }, V = { class: "ml-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 ml-1" }, q = /* @__PURE__ */ x({
|
|
8
8
|
__name: "NavbarCommandPalette",
|
|
9
9
|
props: {
|
|
@@ -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;
|