vlite3 0.8.4 → 0.8.6
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/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.vue.js → CommandPaletteItem.vue2.js} +1 -1
- package/components/Empty/Empty.vue.d.ts +1 -4
- package/components/Empty/Empty.vue.js +40 -46
- package/components/Empty/variants/Variant1.vue2.js +3 -3
- package/components/Empty/variants/Variant2.vue2.js +17 -17
- package/components/Form/FormField.vue.js +142 -119
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/Screen/ScreenFilter.vue.js +1 -1
- package/package.json +1 -1
- package/style.css +4 -4
- /package/components/ColorPicker/{ColorIro.vue2.js → ColorIro.vue.js} +0 -0
|
@@ -6,8 +6,8 @@ import O from "../Input.vue.js";
|
|
|
6
6
|
import "../../core/config.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
import y from "../Button.vue.js";
|
|
9
|
-
import E from "./ColorIro.
|
|
10
|
-
/* empty css
|
|
9
|
+
import E from "./ColorIro.vue.js";
|
|
10
|
+
/* empty css */
|
|
11
11
|
import { useEyeDropper as P } from "@vueuse/core";
|
|
12
12
|
const I = {
|
|
13
13
|
key: 0,
|
|
@@ -4,7 +4,7 @@ import k 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 "./CommandPaletteItem.
|
|
7
|
+
import ee from "./CommandPaletteItem.vue2.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/60 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,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { $t as
|
|
3
|
-
import { useVLiteConfig as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as y, computed as r, markRaw as t, defineAsyncComponent as i, openBlock as c, createElementBlock as h, createBlock as C, resolveDynamicComponent as I, createSlots as _, renderList as g, withCtx as k, renderSlot as w, normalizeProps as x, guardReactiveProps as B } from "vue";
|
|
2
|
+
import { $t as o } from "../../utils/i18n.js";
|
|
3
|
+
import { useVLiteConfig as S } from "../../core/config.js";
|
|
4
|
+
const V = { class: "flex items-center justify-center min-h-[300px] w-full py-2" }, R = /* @__PURE__ */ y({
|
|
5
5
|
__name: "Empty",
|
|
6
6
|
props: {
|
|
7
7
|
title: {},
|
|
@@ -11,54 +11,48 @@ const k = { class: "flex items-center justify-center min-h-[400px] w-full py-16
|
|
|
11
11
|
icon: { default: "lucide:inbox" },
|
|
12
12
|
variant: {}
|
|
13
13
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
16
|
-
if (
|
|
17
|
-
if (
|
|
18
|
-
const
|
|
19
|
-
return
|
|
20
|
-
}), d =
|
|
21
|
-
if (
|
|
22
|
-
if (
|
|
23
|
-
const
|
|
24
|
-
return
|
|
25
|
-
}),
|
|
26
|
-
variant1: t(() => import("./variants/Variant1.vue.js")),
|
|
27
|
-
variant2: t(() => import("./variants/Variant2.vue.js")),
|
|
28
|
-
variant3: t(() => import("./variants/Variant3.vue.js")),
|
|
29
|
-
variant4: t(() => import("./variants/Variant4.vue.js")),
|
|
30
|
-
variant5: t(() => import("./variants/Variant5.vue.js")),
|
|
31
|
-
variant6: t(() => import("./variants/Variant6.vue.js")),
|
|
32
|
-
variant7: t(() => import("./variants/Variant7.vue.js")),
|
|
33
|
-
variant8: t(() => import("./variants/Variant8.vue.js")),
|
|
34
|
-
variant9: t(() => import("./variants/Variant9.vue.js")),
|
|
35
|
-
variant10: t(() => import("./variants/Variant10.vue.js")),
|
|
36
|
-
variant11: t(() => import("./variants/Variant11.vue.js"))
|
|
37
|
-
}, u =
|
|
38
|
-
() =>
|
|
14
|
+
setup(a) {
|
|
15
|
+
const e = a, l = S(), m = r(() => e.variant || l?.components?.empty?.variant || "variant1"), v = r(() => {
|
|
16
|
+
if (e.titleI18n) return o(e.titleI18n);
|
|
17
|
+
if (e.title) return e.title;
|
|
18
|
+
const n = o("vlite.empty.title");
|
|
19
|
+
return n !== "vlite.empty.title" ? n : "No data found";
|
|
20
|
+
}), d = r(() => {
|
|
21
|
+
if (e.descriptionI18n) return o(e.descriptionI18n);
|
|
22
|
+
if (e.description) return e.description;
|
|
23
|
+
const n = o("vlite.empty.description");
|
|
24
|
+
return n !== "vlite.empty.description" ? n : "There is nothing to display here right now.";
|
|
25
|
+
}), s = {
|
|
26
|
+
variant1: t(i(() => import("./variants/Variant1.vue.js"))),
|
|
27
|
+
variant2: t(i(() => import("./variants/Variant2.vue.js"))),
|
|
28
|
+
variant3: t(i(() => import("./variants/Variant3.vue.js"))),
|
|
29
|
+
variant4: t(i(() => import("./variants/Variant4.vue.js"))),
|
|
30
|
+
variant5: t(i(() => import("./variants/Variant5.vue.js"))),
|
|
31
|
+
variant6: t(i(() => import("./variants/Variant6.vue.js"))),
|
|
32
|
+
variant7: t(i(() => import("./variants/Variant7.vue.js"))),
|
|
33
|
+
variant8: t(i(() => import("./variants/Variant8.vue.js"))),
|
|
34
|
+
variant9: t(i(() => import("./variants/Variant9.vue.js"))),
|
|
35
|
+
variant10: t(i(() => import("./variants/Variant10.vue.js"))),
|
|
36
|
+
variant11: t(i(() => import("./variants/Variant11.vue.js")))
|
|
37
|
+
}, u = r(
|
|
38
|
+
() => s[m.value] || s.variant1
|
|
39
39
|
);
|
|
40
|
-
return (
|
|
41
|
-
(
|
|
40
|
+
return (n, $) => (c(), h("div", V, [
|
|
41
|
+
(c(), C(I(u.value), {
|
|
42
42
|
title: v.value,
|
|
43
43
|
description: d.value,
|
|
44
|
-
icon:
|
|
45
|
-
},
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
name: "action",
|
|
53
|
-
fn: p(() => [
|
|
54
|
-
c(e.$slots, "action")
|
|
55
|
-
]),
|
|
56
|
-
key: "0"
|
|
57
|
-
} : void 0
|
|
44
|
+
icon: a.icon
|
|
45
|
+
}, _({ _: 2 }, [
|
|
46
|
+
g(n.$slots, (D, p) => ({
|
|
47
|
+
name: p,
|
|
48
|
+
fn: k((f) => [
|
|
49
|
+
w(n.$slots, p, x(B(f || {})))
|
|
50
|
+
])
|
|
51
|
+
}))
|
|
58
52
|
]), 1032, ["title", "description", "icon"]))
|
|
59
53
|
]));
|
|
60
54
|
}
|
|
61
55
|
});
|
|
62
56
|
export {
|
|
63
|
-
|
|
57
|
+
R as default
|
|
64
58
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as i, openBlock as o, createElementBlock as n, createVNode as c, createElementVNode as s, toDisplayString as r, renderSlot as l, createCommentVNode as m } from "vue";
|
|
2
2
|
import a from "../../Icon.vue.js";
|
|
3
|
-
const d = { class: "flex w-full flex-col items-center justify-center p-10
|
|
3
|
+
const d = { class: "flex w-full flex-col items-center justify-center p-10 min-h-[450px] text-center rounded-2xl bg-card" }, u = { class: "text-fs-5 font-semibold text-foreground" }, f = ["innerHTML"], x = {
|
|
4
4
|
key: 0,
|
|
5
|
-
class: "mt-
|
|
5
|
+
class: "mt-6"
|
|
6
6
|
}, k = /* @__PURE__ */ i({
|
|
7
7
|
__name: "Variant1",
|
|
8
8
|
props: {
|
|
@@ -14,7 +14,7 @@ const d = { class: "flex w-full flex-col items-center justify-center p-10 md:p-1
|
|
|
14
14
|
return (e, p) => (o(), n("div", d, [
|
|
15
15
|
c(a, {
|
|
16
16
|
icon: t.icon,
|
|
17
|
-
class: "mb-3 h-
|
|
17
|
+
class: "mb-3 h-12 w-12 text-muted",
|
|
18
18
|
"stroke-width": "1.2"
|
|
19
19
|
}, null, 8, ["icon"]),
|
|
20
20
|
s("h3", u, r(t.title), 1),
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as i, openBlock as o, createElementBlock as n, createVNode as c, createElementVNode as s, toDisplayString as r, renderSlot as l, createCommentVNode as m } from "vue";
|
|
2
|
+
import a from "../../Icon.vue.js";
|
|
3
|
+
const d = { class: "flex w-full flex-col items-center justify-center p-10 md:p-16 text-center" }, u = { class: "text-2xl font-medium text-foreground" }, f = ["innerHTML"], x = {
|
|
4
4
|
key: 0,
|
|
5
|
-
class: "mt-
|
|
6
|
-
},
|
|
5
|
+
class: "mt-5"
|
|
6
|
+
}, k = /* @__PURE__ */ i({
|
|
7
7
|
__name: "Variant2",
|
|
8
8
|
props: {
|
|
9
9
|
title: {},
|
|
10
10
|
description: {},
|
|
11
11
|
icon: {}
|
|
12
12
|
},
|
|
13
|
-
setup(
|
|
14
|
-
return (
|
|
15
|
-
|
|
16
|
-
icon:
|
|
17
|
-
class: "mb-
|
|
13
|
+
setup(t) {
|
|
14
|
+
return (e, p) => (o(), n("div", d, [
|
|
15
|
+
c(a, {
|
|
16
|
+
icon: t.icon,
|
|
17
|
+
class: "mb-3 h-10 w-10 text-muted",
|
|
18
18
|
"stroke-width": "1.2"
|
|
19
19
|
}, null, 8, ["icon"]),
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
class: "mt-
|
|
23
|
-
innerHTML:
|
|
20
|
+
s("h3", u, r(t.title), 1),
|
|
21
|
+
s("p", {
|
|
22
|
+
class: "mt-1.5 text-sm text-muted max-w-md mx-auto",
|
|
23
|
+
innerHTML: t.description
|
|
24
24
|
}, null, 8, f),
|
|
25
|
-
|
|
26
|
-
l(
|
|
25
|
+
e.$slots.action ? (o(), n("div", x, [
|
|
26
|
+
l(e.$slots, "action")
|
|
27
27
|
])) : m("", !0)
|
|
28
28
|
]));
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
export {
|
|
32
|
-
|
|
32
|
+
k as default
|
|
33
33
|
};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { isComponent as
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as I, computed as o, markRaw as O, openBlock as s, createBlock as u, mergeProps as f, toHandlers as C, createSlots as T, unref as F, withCtx as n, createVNode as L, createTextVNode as m, toDisplayString as p, createCommentVNode as $, resolveDynamicComponent as j } from "vue";
|
|
2
|
+
import { isComponent as x, isAddonObject as v } from "./utils/form.utils.js";
|
|
3
|
+
import D from "../NumberInput.vue.js";
|
|
4
4
|
import h from "../Button.vue.js";
|
|
5
|
-
import { $t as
|
|
6
|
-
import
|
|
5
|
+
import { $t as E } from "../../utils/i18n.js";
|
|
6
|
+
import g from "../Input.vue.js";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
const
|
|
8
|
+
import H from "../Switch.vue.js";
|
|
9
|
+
import q from "../CheckBox.vue.js";
|
|
10
|
+
import G from "../FilePicker/FilePicker.vue.js";
|
|
11
|
+
import J from "../AvatarUploader/AvatarUploader.vue.js";
|
|
12
|
+
import z from "../Dropdown/Dropdown.vue.js";
|
|
13
|
+
import K from "../MultiSelect/MultiSelect.vue.js";
|
|
14
|
+
import M from "../DatePicker.vue.js";
|
|
15
|
+
import Q from "../ColorPicker/ColorPicker.vue.js";
|
|
16
|
+
import W from "../IconPicker.vue.js";
|
|
17
|
+
import X from "./CustomFields.vue.js";
|
|
18
|
+
const pe = /* @__PURE__ */ I({
|
|
19
19
|
__name: "FormField",
|
|
20
20
|
props: {
|
|
21
21
|
field: {},
|
|
@@ -33,15 +33,17 @@ const me = /* @__PURE__ */ B({
|
|
|
33
33
|
loading: { type: Boolean, default: !1 }
|
|
34
34
|
},
|
|
35
35
|
emits: ["change", "addonChange", "addonAction"],
|
|
36
|
-
setup(
|
|
37
|
-
const e =
|
|
38
|
-
c("change", { value: a, data:
|
|
39
|
-
},
|
|
36
|
+
setup(t, { emit: A }) {
|
|
37
|
+
const e = t, c = A, d = (a, l) => {
|
|
38
|
+
c("change", { value: a, data: l });
|
|
39
|
+
}, V = (a) => {
|
|
40
40
|
c("change", { value: a });
|
|
41
|
-
},
|
|
41
|
+
}, y = o(
|
|
42
|
+
() => e.field.type === "number" && e.field.isSensitiveField === !0
|
|
43
|
+
), N = o(() => {
|
|
42
44
|
const a = e.field.type;
|
|
43
|
-
if (
|
|
44
|
-
return
|
|
45
|
+
if (x(a))
|
|
46
|
+
return O(a);
|
|
45
47
|
switch (a) {
|
|
46
48
|
case "text":
|
|
47
49
|
case "email":
|
|
@@ -50,47 +52,47 @@ const me = /* @__PURE__ */ B({
|
|
|
50
52
|
case "url":
|
|
51
53
|
case "search":
|
|
52
54
|
case "textarea":
|
|
53
|
-
return
|
|
55
|
+
return g;
|
|
54
56
|
case "number":
|
|
55
|
-
return
|
|
57
|
+
return y.value ? g : D;
|
|
56
58
|
case "switch":
|
|
57
|
-
return E;
|
|
58
|
-
case "check":
|
|
59
59
|
return H;
|
|
60
|
+
case "check":
|
|
61
|
+
return q;
|
|
60
62
|
case "select":
|
|
61
|
-
return
|
|
63
|
+
return z;
|
|
62
64
|
case "multiSelect":
|
|
63
|
-
return
|
|
65
|
+
return K;
|
|
64
66
|
case "date":
|
|
65
67
|
case "time":
|
|
66
|
-
return
|
|
68
|
+
return M;
|
|
67
69
|
case "file":
|
|
68
70
|
case "fileUploader":
|
|
69
|
-
return q;
|
|
70
|
-
case "avatarUpload":
|
|
71
71
|
return G;
|
|
72
|
+
case "avatarUpload":
|
|
73
|
+
return J;
|
|
72
74
|
case "color":
|
|
73
|
-
return M;
|
|
74
|
-
case "iconPicker":
|
|
75
75
|
return Q;
|
|
76
|
-
case "
|
|
76
|
+
case "iconPicker":
|
|
77
77
|
return W;
|
|
78
|
+
case "customFields":
|
|
79
|
+
return X;
|
|
78
80
|
default:
|
|
79
|
-
return
|
|
81
|
+
return g;
|
|
80
82
|
}
|
|
81
|
-
}),
|
|
82
|
-
const a = e.field.type,
|
|
83
|
+
}), S = o(() => {
|
|
84
|
+
const a = e.field.type, l = {
|
|
83
85
|
disabled: e.disabled || e.field.disabled === !0,
|
|
84
86
|
...e?.field || {},
|
|
85
87
|
...e.field.props || {},
|
|
86
88
|
label: "",
|
|
87
89
|
labelI18n: ""
|
|
88
|
-
}, i = e.field.placeholderI18n ?
|
|
90
|
+
}, i = e.field.placeholderI18n ? E(e.field.placeholderI18n) : e.field.placeholder, b = e.variant === "floating" && e.label && !e.floatingActive, r = b ? "" : i;
|
|
89
91
|
return a === "text" || a === "email" || a === "password" || a === "tel" || a === "url" || a === "search" || a === "textarea" || !a ? {
|
|
90
|
-
...
|
|
92
|
+
...l,
|
|
91
93
|
modelValue: e.value ?? "",
|
|
92
94
|
type: a || "text",
|
|
93
|
-
placeholder:
|
|
95
|
+
placeholder: r,
|
|
94
96
|
label: e.label,
|
|
95
97
|
icon: e.field.icon,
|
|
96
98
|
iconRight: e.field.iconRight,
|
|
@@ -102,12 +104,26 @@ const me = /* @__PURE__ */ B({
|
|
|
102
104
|
rounded: e.rounded,
|
|
103
105
|
error: e.error,
|
|
104
106
|
min: e.field.min,
|
|
105
|
-
// kept for validation attributes if needed
|
|
106
107
|
max: e.field.max,
|
|
107
108
|
rows: a === "textarea" ? e.field.props?.rows || 3 : void 0,
|
|
108
109
|
class: `${e.field.className}`
|
|
110
|
+
} : a === "number" && y.value ? {
|
|
111
|
+
...l,
|
|
112
|
+
// Convert numeric value to string so Input.vue (string-based) displays it correctly
|
|
113
|
+
modelValue: e.value !== void 0 && e.value !== null ? String(e.value) : "",
|
|
114
|
+
// 'password' activates the eye-toggle inside Input.vue
|
|
115
|
+
type: "password",
|
|
116
|
+
placeholder: r,
|
|
117
|
+
label: e.label,
|
|
118
|
+
variant: e.variant,
|
|
119
|
+
size: e.size,
|
|
120
|
+
rounded: e.rounded,
|
|
121
|
+
error: e.error,
|
|
122
|
+
// Disable the browser's built-in clear button so only the eye icon shows
|
|
123
|
+
showClearButton: !1,
|
|
124
|
+
class: e.field.className ?? ""
|
|
109
125
|
} : a === "number" ? {
|
|
110
|
-
...
|
|
126
|
+
...l,
|
|
111
127
|
modelValue: e.value ?? void 0,
|
|
112
128
|
min: e.field.min,
|
|
113
129
|
max: e.field.max,
|
|
@@ -116,33 +132,33 @@ const me = /* @__PURE__ */ B({
|
|
|
116
132
|
mode: e.field.props?.mode ?? (e.variant === "transparent" ? "ghost" : "outline"),
|
|
117
133
|
size: e.size,
|
|
118
134
|
rounded: e.rounded,
|
|
119
|
-
placeholder:
|
|
135
|
+
placeholder: r,
|
|
120
136
|
class: e.field.className
|
|
121
137
|
} : a === "switch" ? {
|
|
122
|
-
...
|
|
138
|
+
...l,
|
|
123
139
|
modelValue: !!e.value,
|
|
124
140
|
size: "sm",
|
|
125
141
|
label: ""
|
|
126
142
|
// Label handled externally
|
|
127
143
|
} : a === "check" ? {
|
|
128
|
-
...
|
|
144
|
+
...l,
|
|
129
145
|
modelValue: !!e.value,
|
|
130
146
|
label: ""
|
|
131
147
|
// Label handled externally
|
|
132
148
|
} : a === "select" ? {
|
|
133
|
-
...
|
|
149
|
+
...l,
|
|
134
150
|
modelValue: e.value,
|
|
135
151
|
options: e.field.options || [],
|
|
136
|
-
placeholder:
|
|
152
|
+
placeholder: r,
|
|
137
153
|
selectable: !0,
|
|
138
154
|
closeOnSelect: !0,
|
|
139
155
|
triggerProps: {
|
|
140
156
|
variant: e.variant === "floating" ? "outline-floating" : e.variant || "outline",
|
|
141
157
|
size: e.size,
|
|
142
|
-
...
|
|
158
|
+
...b ? { text: "" } : {}
|
|
143
159
|
}
|
|
144
160
|
} : a === "multiSelect" ? {
|
|
145
|
-
...
|
|
161
|
+
...l,
|
|
146
162
|
modelValue: Array.isArray(e.value) ? e.value : [],
|
|
147
163
|
options: e.field.options || [],
|
|
148
164
|
placeholder: i,
|
|
@@ -150,44 +166,44 @@ const me = /* @__PURE__ */ B({
|
|
|
150
166
|
size: e.size,
|
|
151
167
|
rounded: e.rounded
|
|
152
168
|
} : a === "date" || a === "time" ? {
|
|
153
|
-
...
|
|
169
|
+
...l,
|
|
154
170
|
modelValue: e.value,
|
|
155
171
|
mode: a === "time" ? "time" : "date",
|
|
156
|
-
placeholder:
|
|
172
|
+
placeholder: r,
|
|
157
173
|
btnProps: {
|
|
158
174
|
variant: e.variant === "floating" ? "outline-floating" : e.variant || "outline",
|
|
159
175
|
size: e.size,
|
|
160
176
|
class: "px-3!",
|
|
161
|
-
...
|
|
177
|
+
...b ? { text: "" } : {}
|
|
162
178
|
}
|
|
163
179
|
} : a === "fileUploader" || a === "file" ? {
|
|
164
|
-
...
|
|
180
|
+
...l,
|
|
165
181
|
modelValue: e.value,
|
|
166
182
|
multiSelect: e.field.props?.multiple || !1,
|
|
167
183
|
maxFiles: e.field.maxFiles || e.field.props?.maxFiles,
|
|
168
184
|
fileTypes: e.field.props?.accept ? e.field.props.accept.split(",") : [],
|
|
169
185
|
returnFormat: "base64",
|
|
170
186
|
variant: a === "file" ? "input" : "dropzone",
|
|
171
|
-
placeholder:
|
|
187
|
+
placeholder: r,
|
|
172
188
|
size: e.size,
|
|
173
189
|
rounded: e.rounded,
|
|
174
190
|
maxSize: e.field.maxFileSize ? e.field.maxFileSize * 1024 * 1024 : void 0,
|
|
175
191
|
loading: e.loading
|
|
176
192
|
} : a === "avatarUpload" ? {
|
|
177
193
|
size: "2xl",
|
|
178
|
-
...
|
|
194
|
+
...l,
|
|
179
195
|
modelValue: e.value,
|
|
180
196
|
editable: !e.readonly,
|
|
181
197
|
maxSize: e.field.maxFileSize ? e.field.maxFileSize * 1024 * 1024 : void 0,
|
|
182
198
|
loading: e.loading
|
|
183
199
|
} : a === "color" ? {
|
|
184
|
-
...
|
|
200
|
+
...l,
|
|
185
201
|
modelValue: e.value || "#000000"
|
|
186
202
|
} : a === "iconPicker" ? {
|
|
187
|
-
...
|
|
203
|
+
...l,
|
|
188
204
|
value: e.value || "lucide:smile"
|
|
189
205
|
} : a === "customFields" ? {
|
|
190
|
-
...
|
|
206
|
+
...l,
|
|
191
207
|
label: e?.field?.label,
|
|
192
208
|
labelI18n: e?.field?.labelI18n,
|
|
193
209
|
modelValue: Array.isArray(e.value) ? e.value : [],
|
|
@@ -198,72 +214,79 @@ const me = /* @__PURE__ */ B({
|
|
|
198
214
|
size: e.size,
|
|
199
215
|
rounded: e.rounded,
|
|
200
216
|
isUpdate: e.isUpdate
|
|
201
|
-
} :
|
|
202
|
-
...
|
|
217
|
+
} : x(a) ? {
|
|
218
|
+
...l,
|
|
203
219
|
value: e.value,
|
|
204
220
|
values: e.values
|
|
205
|
-
} :
|
|
221
|
+
} : l;
|
|
206
222
|
}), k = o(() => {
|
|
207
223
|
const a = e.field.type;
|
|
208
|
-
return a === "text" || a === "email" || a === "password" || a === "tel" || a === "url" || a === "search" || a === "textarea" || a === "switch" || a === "check" ||
|
|
209
|
-
"update:modelValue":
|
|
224
|
+
return a === "text" || a === "email" || a === "password" || a === "tel" || a === "url" || a === "search" || a === "textarea" || a === "switch" || a === "check" || !a ? {
|
|
225
|
+
"update:modelValue": V
|
|
226
|
+
} : a === "number" && y.value ? {
|
|
227
|
+
"update:modelValue": (l) => {
|
|
228
|
+
const i = l === "" ? void 0 : Number(l);
|
|
229
|
+
c("change", { value: isNaN(i) ? void 0 : i });
|
|
230
|
+
}
|
|
231
|
+
} : a === "number" ? {
|
|
232
|
+
"update:modelValue": V
|
|
210
233
|
} : a === "select" ? {
|
|
211
|
-
onSelect: (
|
|
212
|
-
d(
|
|
234
|
+
onSelect: (l) => {
|
|
235
|
+
d(l.value, l.data);
|
|
213
236
|
}
|
|
214
237
|
} : a === "multiSelect" ? {
|
|
215
|
-
change: (
|
|
238
|
+
change: (l) => d(l)
|
|
216
239
|
} : a === "date" || a === "time" ? {
|
|
217
|
-
change: (
|
|
240
|
+
change: (l) => d(l)
|
|
218
241
|
} : a === "fileUploader" || a === "file" ? {
|
|
219
|
-
change: (
|
|
220
|
-
d(
|
|
242
|
+
change: (l) => {
|
|
243
|
+
d(l);
|
|
221
244
|
},
|
|
222
|
-
"update:modelValue": (
|
|
223
|
-
d(
|
|
245
|
+
"update:modelValue": (l) => {
|
|
246
|
+
d(l);
|
|
224
247
|
}
|
|
225
248
|
} : a === "avatarUpload" ? {
|
|
226
|
-
change: (
|
|
227
|
-
d(
|
|
249
|
+
change: (l) => {
|
|
250
|
+
d(l);
|
|
228
251
|
},
|
|
229
|
-
"update:modelValue": (
|
|
230
|
-
d(
|
|
252
|
+
"update:modelValue": (l) => {
|
|
253
|
+
d(l);
|
|
231
254
|
}
|
|
232
255
|
} : a === "color" ? {
|
|
233
|
-
change: (
|
|
256
|
+
change: (l) => d(l)
|
|
234
257
|
} : a === "iconPicker" ? {
|
|
235
|
-
onSelect: (
|
|
258
|
+
onSelect: (l) => d(l)
|
|
236
259
|
} : a === "customFields" ? {
|
|
237
|
-
change: (
|
|
238
|
-
} :
|
|
239
|
-
onChange: (
|
|
240
|
-
d(
|
|
260
|
+
change: (l) => d(l)
|
|
261
|
+
} : x(a) ? {
|
|
262
|
+
onChange: (l) => {
|
|
263
|
+
d(l.value, l.data);
|
|
241
264
|
}
|
|
242
265
|
} : {};
|
|
243
266
|
}), P = o(() => v(e.field.addonLeft) || v(e.field.addonRight)), U = o(() => {
|
|
244
267
|
const a = e.field.type;
|
|
245
268
|
return a === "text" || a === "email" || a === "password" || a === "tel" || a === "url" || a === "search" || !a;
|
|
246
|
-
}),
|
|
247
|
-
c("addonChange", a.name, { value:
|
|
248
|
-
},
|
|
269
|
+
}), B = o(() => P.value && U.value), R = (a, l) => {
|
|
270
|
+
c("addonChange", a.name, { value: l.value });
|
|
271
|
+
}, w = (a) => {
|
|
249
272
|
a.action && c("addonAction", a.action);
|
|
250
273
|
};
|
|
251
|
-
return (a,
|
|
252
|
-
...
|
|
253
|
-
...
|
|
254
|
-
},
|
|
255
|
-
|
|
274
|
+
return (a, l) => B.value ? (s(), u(g, f({ key: 0 }, {
|
|
275
|
+
...S.value,
|
|
276
|
+
...t.field?.props || {}
|
|
277
|
+
}, C(k.value)), T({ _: 2 }, [
|
|
278
|
+
F(v)(t.field.addonLeft) ? {
|
|
256
279
|
name: "addon-left",
|
|
257
280
|
fn: n(() => [
|
|
258
|
-
|
|
281
|
+
t.field.addonLeft.type === "select" ? (s(), u(z, f({
|
|
259
282
|
key: 0,
|
|
260
|
-
modelValue:
|
|
261
|
-
options:
|
|
262
|
-
},
|
|
263
|
-
onOnSelect:
|
|
283
|
+
modelValue: t.field.addonLeft.name ? t.values[t.field.addonLeft.name] : void 0,
|
|
284
|
+
options: t.field.addonLeft.options || []
|
|
285
|
+
}, t.field.addonLeft.props || {}, {
|
|
286
|
+
onOnSelect: l[0] || (l[0] = (i) => R(t.field.addonLeft, i))
|
|
264
287
|
}), {
|
|
265
288
|
trigger: n(({ selectedLabel: i }) => [
|
|
266
|
-
|
|
289
|
+
L(h, { variant: "outline" }, {
|
|
267
290
|
default: n(() => [
|
|
268
291
|
m(p(i), 1)
|
|
269
292
|
]),
|
|
@@ -271,32 +294,32 @@ const me = /* @__PURE__ */ B({
|
|
|
271
294
|
}, 1024)
|
|
272
295
|
]),
|
|
273
296
|
_: 1
|
|
274
|
-
}, 16, ["modelValue", "options"])) :
|
|
297
|
+
}, 16, ["modelValue", "options"])) : t.field.addonLeft.type === "button" ? (s(), u(h, f({
|
|
275
298
|
key: 1,
|
|
276
299
|
variant: "outline"
|
|
277
|
-
},
|
|
278
|
-
onClick:
|
|
300
|
+
}, t.field.addonLeft.props || {}, {
|
|
301
|
+
onClick: l[1] || (l[1] = (i) => w(t.field.addonLeft))
|
|
279
302
|
}), {
|
|
280
303
|
default: n(() => [
|
|
281
|
-
m(p(
|
|
304
|
+
m(p(t.field.addonLeft.text), 1)
|
|
282
305
|
]),
|
|
283
306
|
_: 1
|
|
284
|
-
}, 16)) :
|
|
307
|
+
}, 16)) : $("", !0)
|
|
285
308
|
]),
|
|
286
309
|
key: "0"
|
|
287
310
|
} : void 0,
|
|
288
|
-
|
|
311
|
+
F(v)(t.field.addonRight) ? {
|
|
289
312
|
name: "addon-right",
|
|
290
313
|
fn: n(() => [
|
|
291
|
-
|
|
314
|
+
t.field.addonRight.type === "select" ? (s(), u(z, f({
|
|
292
315
|
key: 0,
|
|
293
|
-
modelValue:
|
|
294
|
-
options:
|
|
295
|
-
},
|
|
296
|
-
onOnSelect:
|
|
316
|
+
modelValue: t.field.addonRight.name ? t.values[t.field.addonRight.name] : void 0,
|
|
317
|
+
options: t.field.addonRight.options || []
|
|
318
|
+
}, t.field.addonRight.props || {}, {
|
|
319
|
+
onOnSelect: l[2] || (l[2] = (i) => R(t.field.addonRight, i))
|
|
297
320
|
}), {
|
|
298
321
|
trigger: n(({ selectedLabel: i }) => [
|
|
299
|
-
|
|
322
|
+
L(h, { variant: "outline" }, {
|
|
300
323
|
default: n(() => [
|
|
301
324
|
m(p(i), 1)
|
|
302
325
|
]),
|
|
@@ -304,29 +327,29 @@ const me = /* @__PURE__ */ B({
|
|
|
304
327
|
}, 1024)
|
|
305
328
|
]),
|
|
306
329
|
_: 1
|
|
307
|
-
}, 16, ["modelValue", "options"])) :
|
|
330
|
+
}, 16, ["modelValue", "options"])) : t.field.addonRight.type === "button" ? (s(), u(h, f({
|
|
308
331
|
key: 1,
|
|
309
332
|
variant: "outline"
|
|
310
|
-
},
|
|
311
|
-
onClick:
|
|
333
|
+
}, t.field.addonRight.props || {}, {
|
|
334
|
+
onClick: l[3] || (l[3] = (i) => w(t.field.addonRight))
|
|
312
335
|
}), {
|
|
313
336
|
default: n(() => [
|
|
314
|
-
m(p(
|
|
337
|
+
m(p(t.field.addonRight.text), 1)
|
|
315
338
|
]),
|
|
316
339
|
_: 1
|
|
317
|
-
}, 16)) :
|
|
340
|
+
}, 16)) : $("", !0)
|
|
318
341
|
]),
|
|
319
342
|
key: "1"
|
|
320
343
|
} : void 0
|
|
321
|
-
]), 1040)) : (
|
|
344
|
+
]), 1040)) : (s(), u(j(N.value), f({
|
|
322
345
|
key: 1,
|
|
323
|
-
class: ["switch", "check"].includes(
|
|
346
|
+
class: ["switch", "check"].includes(t.field?.type) ? "" : "w-full"
|
|
324
347
|
}, {
|
|
325
|
-
...
|
|
326
|
-
...
|
|
327
|
-
},
|
|
348
|
+
...S.value,
|
|
349
|
+
...t.field?.props || {}
|
|
350
|
+
}, C(k.value)), null, 16, ["class"]));
|
|
328
351
|
}
|
|
329
352
|
});
|
|
330
353
|
export {
|
|
331
|
-
|
|
354
|
+
pe as default
|
|
332
355
|
};
|
|
@@ -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: {
|
package/package.json
CHANGED
package/style.css
CHANGED
|
@@ -395,15 +395,15 @@
|
|
|
395
395
|
--color-mixture-2: #ffffff !important;
|
|
396
396
|
|
|
397
397
|
--color-gray-50: color-mix(in oklab,
|
|
398
|
-
var(--color-mixture-1, #ffffff)
|
|
398
|
+
var(--color-mixture-1, #ffffff) 97.5%,
|
|
399
399
|
var(--color-mixture-2, #000000));
|
|
400
400
|
|
|
401
401
|
--color-gray-100: color-mix(in oklab,
|
|
402
|
-
var(--color-mixture-1, #ffffff)
|
|
402
|
+
var(--color-mixture-1, #ffffff) 96%,
|
|
403
403
|
var(--color-mixture-2, #000000));
|
|
404
404
|
|
|
405
405
|
--color-gray-150: color-mix(in oklab,
|
|
406
|
-
var(--color-mixture-1, #ffffff)
|
|
406
|
+
var(--color-mixture-1, #ffffff) 92%,
|
|
407
407
|
var(--color-mixture-2, #000000));
|
|
408
408
|
|
|
409
409
|
--color-gray-200: color-mix(in oklab,
|
|
@@ -424,7 +424,7 @@
|
|
|
424
424
|
|
|
425
425
|
--color-secondary: color-mix(in oklab, var(--color-mixture-1) 89%, var(--color-mixture-2));
|
|
426
426
|
--color-muted: color-mix(in oklab,
|
|
427
|
-
var(--color-mixture-1, #ffffff) 95%,
|
|
427
|
+
var(--color-mixture-1, #ffffff) 95.5%,
|
|
428
428
|
var(--color-mixture-2, #000000));
|
|
429
429
|
--color-destructive: #7f1d1d;
|
|
430
430
|
--color-destructive-foreground: #fafafa;
|
|
File without changes
|