@soft-stech/bootsman-ui-shadcn 1.3.9 → 1.3.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{BuiAutoForm.vue_vue_type_script_setup_true_lang-DyG1WRf2.js → BuiAutoForm.vue_vue_type_script_setup_true_lang--BfJ5eim.js} +1 -1
- package/dist/BuiAutoFormField.vue_vue_type_script_setup_true_lang-BEazRmdY.js +265 -0
- package/dist/BuiAutoFormFieldArray.vue_vue_type_script_setup_true_lang-BoFRtjoQ.js +142 -0
- package/dist/{BuiAutoFormFieldObject.vue_vue_type_script_setup_true_lang-C7URAPKt.js → BuiAutoFormFieldObject.vue_vue_type_script_setup_true_lang-CWpAoZW6.js} +1 -1
- package/dist/components/ui/auto-form/BuiAutoForm.js +1 -1
- package/dist/components/ui/auto-form/BuiAutoFormField.js +1 -1
- package/dist/components/ui/auto-form/BuiAutoFormFieldArray.js +1 -1
- package/dist/components/ui/auto-form/BuiAutoFormFieldArrayCard.js +4 -0
- package/dist/components/ui/auto-form/BuiAutoFormFieldObject.js +1 -1
- package/dist/components/ui/auto-form/BuiAutoFormFieldObjectCard.js +1 -1
- package/dist/components/ui/auto-form/constant.js +6 -5
- package/dist/components/ui/auto-form/index.d.ts +2 -0
- package/dist/components/ui/auto-form/index.js +23 -20
- package/dist/index.js +75 -72
- package/package.json +1 -1
- package/src/components/stories/BuiAutoForm.story.vue +7 -1
- package/src/components/ui/auto-form/BuiAutoFormFieldArrayCard.vue +97 -0
- package/src/components/ui/auto-form/BuiAutoFormFieldObjectCard.vue +4 -1
- package/src/components/ui/auto-form/constant.ts +3 -2
- package/src/components/ui/auto-form/index.ts +2 -0
- package/dist/BuiAutoFormField.vue_vue_type_script_setup_true_lang-D0xFhEmy.js +0 -284
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent as b, toRefs as C, computed as c, openBlock as u, createBlock as _, resolveDynamicComponent as B, mergeProps as y, withCtx as F, renderSlot as l, createElementBlock as N, Fragment as j, renderList as A, createVNode as O } from "vue";
|
2
2
|
import { toTypedSchema as $ } from "@vee-validate/zod";
|
3
3
|
import { getObjectFormSchema as D, getBaseSchema as V, getBaseType as Z, getDefaultValueInZodStack as k } from "./components/ui/auto-form/utils.js";
|
4
|
-
import { _ as E } from "./BuiAutoFormField.vue_vue_type_script_setup_true_lang-
|
4
|
+
import { _ as E } from "./BuiAutoFormField.vue_vue_type_script_setup_true_lang-BEazRmdY.js";
|
5
5
|
import { provideDependencies as I } from "./components/ui/auto-form/dependencies.js";
|
6
6
|
import { Form as P } from "vee-validate";
|
7
7
|
const z = /* @__PURE__ */ b({
|
@@ -0,0 +1,265 @@
|
|
1
|
+
import { defineComponent as b, computed as y, provide as D, openBlock as c, createElementBlock as u, renderSlot as g, normalizeProps as F, guardReactiveProps as O, createVNode as t, unref as e, withCtx as r, createTextVNode as j, toDisplayString as S, Fragment as P, renderList as E, createBlock as _, createElementVNode as G, createCommentVNode as T, resolveDynamicComponent as J, mergeProps as Q } from "vue";
|
2
|
+
import * as $ from "zod";
|
3
|
+
import { useField as q, FieldContextKey as w, FieldArray as W } from "vee-validate";
|
4
|
+
import { _ as v } from "./BuiAutoFormFieldBoolean.vue_vue_type_script_setup_true_lang-tuxavlOe.js";
|
5
|
+
import { _ as X } from "./BuiAutoFormFieldDate.vue_vue_type_script_setup_true_lang-Bzg1m-ii.js";
|
6
|
+
import { _ as Z } from "./BuiAutoFormFieldEnum.vue_vue_type_script_setup_true_lang-Bqe8Rt85.js";
|
7
|
+
import { T as Y, _ as x } from "./BuiAutoFormFieldFile.vue_vue_type_script_setup_true_lang-DrJwn66q.js";
|
8
|
+
import { _ as C } from "./BuiAutoFormFieldInput.vue_vue_type_script_setup_true_lang-DtBFfiOK.js";
|
9
|
+
import { _ as ee } from "./BuiAutoFormFieldNumber.vue_vue_type_script_setup_true_lang-ClLqHM1Y.js";
|
10
|
+
import ae from "./components/ui/auto-form/dependencies.js";
|
11
|
+
import { getBaseSchema as k, getBaseType as I, getDefaultValueInZodStack as oe, beautifyObjectName as V } from "./components/ui/auto-form/utils.js";
|
12
|
+
import { _ as z } from "./BuiCard.vue_vue_type_script_setup_true_lang-CN_UnmV6.js";
|
13
|
+
import { _ as L } from "./BuiCardHeader.vue_vue_type_script_setup_true_lang-D9miAvuh.js";
|
14
|
+
import { _ as M } from "./BuiCardTitle.vue_vue_type_script_setup_true_lang-B6T0EtFW.js";
|
15
|
+
import { _ as R } from "./BuiCardContent.vue_vue_type_script_setup_true_lang-B6clSivQ.js";
|
16
|
+
import { _ as H } from "./BuiFormItem.vue_vue_type_script_setup_true_lang-COw7Rwow.js";
|
17
|
+
import { d as se, _ as A } from "./utils-DPuEjrVV.js";
|
18
|
+
import { _ as te } from "./BuiSeparator.vue_vue_type_script_setup_true_lang-DbN8eyHh.js";
|
19
|
+
import { _ as re } from "./BuiFormMessage.vue_vue_type_script_setup_true_lang-DTdflpS8.js";
|
20
|
+
/**
|
21
|
+
* @license lucide-vue-next v0.441.0 - ISC
|
22
|
+
*
|
23
|
+
* This source code is licensed under the ISC license.
|
24
|
+
* See the LICENSE file in the root directory of this source tree.
|
25
|
+
*/
|
26
|
+
const ne = se("PlusIcon", [
|
27
|
+
["path", { d: "M5 12h14", key: "1ays0h" }],
|
28
|
+
["path", { d: "M12 5v14", key: "s699le" }]
|
29
|
+
]), ie = /* @__PURE__ */ b({
|
30
|
+
__name: "BuiAutoFormFieldObjectCard",
|
31
|
+
props: {
|
32
|
+
fieldName: {},
|
33
|
+
required: { type: Boolean },
|
34
|
+
config: {},
|
35
|
+
schema: {},
|
36
|
+
disabled: { type: Boolean }
|
37
|
+
},
|
38
|
+
setup(m) {
|
39
|
+
const s = m, f = y(() => {
|
40
|
+
const n = {};
|
41
|
+
if (!s.schema) return;
|
42
|
+
const l = k(s.schema)?.shape;
|
43
|
+
if (l)
|
44
|
+
return Object.keys(l).forEach((a) => {
|
45
|
+
const i = l[a], o = k(i);
|
46
|
+
let d = o && "values" in o._def ? o._def.values : void 0;
|
47
|
+
!Array.isArray(d) && typeof d == "object" && (d = Object.values(d)), n[a] = {
|
48
|
+
type: I(i),
|
49
|
+
default: oe(i),
|
50
|
+
options: d,
|
51
|
+
required: !["ZodOptional", "ZodNullable"].includes(i._def.typeName),
|
52
|
+
schema: i
|
53
|
+
};
|
54
|
+
}), n;
|
55
|
+
}), p = q(s.fieldName);
|
56
|
+
return D(w, p), (n, l) => (c(), u("section", null, [
|
57
|
+
g(n.$slots, "default", F(O(s)), () => [
|
58
|
+
t(e(z), {
|
59
|
+
"as-child": "",
|
60
|
+
class: "w-full border-0 shadow-none"
|
61
|
+
}, {
|
62
|
+
default: r(() => [
|
63
|
+
t(e(H), null, {
|
64
|
+
default: r(() => [
|
65
|
+
t(e(L), { class: "border-b-[1px] border-b-border/[0.16] py-1" }, {
|
66
|
+
default: r(() => [
|
67
|
+
t(e(M), { class: "py-0 text-base" }, {
|
68
|
+
default: r(() => [
|
69
|
+
j(S(n.schema?.description || e(V)(n.fieldName.split(".")[n.fieldName.split(".").length - 1])), 1)
|
70
|
+
]),
|
71
|
+
_: 1
|
72
|
+
})
|
73
|
+
]),
|
74
|
+
_: 1
|
75
|
+
}),
|
76
|
+
t(e(R), { class: "flex flex-col gap-5 pb-0 pr-0" }, {
|
77
|
+
default: r(() => [
|
78
|
+
(c(!0), u(P, null, E(f.value, (a, i) => (c(), _(U, {
|
79
|
+
key: i,
|
80
|
+
config: n.config?.[i],
|
81
|
+
"field-name": `${n.fieldName}.${i.toString()}`,
|
82
|
+
label: i.toString(),
|
83
|
+
shape: a
|
84
|
+
}, null, 8, ["config", "field-name", "label", "shape"]))), 128))
|
85
|
+
]),
|
86
|
+
_: 1
|
87
|
+
})
|
88
|
+
]),
|
89
|
+
_: 1
|
90
|
+
})
|
91
|
+
]),
|
92
|
+
_: 1
|
93
|
+
})
|
94
|
+
])
|
95
|
+
]));
|
96
|
+
}
|
97
|
+
}), le = { class: "!my-4 flex justify-end" }, de = /* @__PURE__ */ b({
|
98
|
+
__name: "BuiAutoFormFieldArrayCard",
|
99
|
+
props: {
|
100
|
+
fieldName: {},
|
101
|
+
required: { type: Boolean },
|
102
|
+
config: {},
|
103
|
+
schema: {},
|
104
|
+
disabled: { type: Boolean }
|
105
|
+
},
|
106
|
+
setup(m) {
|
107
|
+
const s = m;
|
108
|
+
function f(a) {
|
109
|
+
return a instanceof $.ZodArray;
|
110
|
+
}
|
111
|
+
function p(a) {
|
112
|
+
return a instanceof $.ZodDefault;
|
113
|
+
}
|
114
|
+
const n = y(() => {
|
115
|
+
if (!s.schema) return;
|
116
|
+
const a = f(s.schema) ? s.schema._def.type : p(s.schema) ? (
|
117
|
+
// @ts-expect-error missing schema
|
118
|
+
s.schema._def.innerType._def.type
|
119
|
+
) : null;
|
120
|
+
return {
|
121
|
+
type: I(a),
|
122
|
+
schema: a
|
123
|
+
};
|
124
|
+
}), l = q(s.fieldName);
|
125
|
+
return D(w, l), (a, i) => (c(), _(e(W), {
|
126
|
+
as: "section",
|
127
|
+
name: a.fieldName
|
128
|
+
}, {
|
129
|
+
default: r(({ fields: o, remove: d, push: K }) => [
|
130
|
+
g(a.$slots, "default", F(O(s)), () => [
|
131
|
+
t(e(z), {
|
132
|
+
"as-child": "",
|
133
|
+
class: "w-full border-0 shadow-none"
|
134
|
+
}, {
|
135
|
+
default: r(() => [
|
136
|
+
t(e(H), null, {
|
137
|
+
default: r(() => [
|
138
|
+
t(e(L), { class: "border-b-[1px] border-b-border/[0.16] py-1" }, {
|
139
|
+
default: r(() => [
|
140
|
+
t(e(M), { class: "py-0 text-base" }, {
|
141
|
+
default: r(() => [
|
142
|
+
j(S(a.schema?.description || e(V)(a.fieldName.split(".")[a.fieldName.split(".").length - 1])), 1)
|
143
|
+
]),
|
144
|
+
_: 1
|
145
|
+
})
|
146
|
+
]),
|
147
|
+
_: 1
|
148
|
+
}),
|
149
|
+
t(e(R), { class: "flex flex-col gap-5 pb-0 pr-0" }, {
|
150
|
+
default: r(() => [
|
151
|
+
(c(!0), u(P, null, E(o, (h, N) => (c(), u("div", {
|
152
|
+
key: h.key,
|
153
|
+
class: "mb-4 p-1"
|
154
|
+
}, [
|
155
|
+
t(U, {
|
156
|
+
"field-name": `${a.fieldName}[${N}]`,
|
157
|
+
label: a.fieldName,
|
158
|
+
shape: n.value,
|
159
|
+
config: a.config
|
160
|
+
}, null, 8, ["field-name", "label", "shape", "config"]),
|
161
|
+
G("div", le, [
|
162
|
+
t(e(A), {
|
163
|
+
type: "button",
|
164
|
+
size: "icon",
|
165
|
+
variant: "secondary",
|
166
|
+
onClick: (me) => d(N)
|
167
|
+
}, {
|
168
|
+
default: r(() => [
|
169
|
+
t(e(Y), { size: 16 })
|
170
|
+
]),
|
171
|
+
_: 2
|
172
|
+
}, 1032, ["onClick"])
|
173
|
+
]),
|
174
|
+
h.isLast ? T("", !0) : (c(), _(e(te), { key: 0 }))
|
175
|
+
]))), 128)),
|
176
|
+
t(e(A), {
|
177
|
+
type: "button",
|
178
|
+
variant: "secondary",
|
179
|
+
class: "mt-4 flex items-center",
|
180
|
+
onClick: (h) => K(null)
|
181
|
+
}, {
|
182
|
+
default: r(() => [
|
183
|
+
t(e(ne), {
|
184
|
+
class: "mr-2",
|
185
|
+
size: 16
|
186
|
+
})
|
187
|
+
]),
|
188
|
+
_: 2
|
189
|
+
}, 1032, ["onClick"]),
|
190
|
+
t(e(re))
|
191
|
+
]),
|
192
|
+
_: 2
|
193
|
+
}, 1024)
|
194
|
+
]),
|
195
|
+
_: 2
|
196
|
+
}, 1024)
|
197
|
+
]),
|
198
|
+
_: 2
|
199
|
+
}, 1024)
|
200
|
+
])
|
201
|
+
]),
|
202
|
+
_: 3
|
203
|
+
}, 8, ["name"]));
|
204
|
+
}
|
205
|
+
}), B = {
|
206
|
+
date: X,
|
207
|
+
select: Z,
|
208
|
+
radio: Z,
|
209
|
+
checkbox: v,
|
210
|
+
switch: v,
|
211
|
+
textarea: C,
|
212
|
+
number: ee,
|
213
|
+
string: C,
|
214
|
+
file: x,
|
215
|
+
array: de,
|
216
|
+
object: ie
|
217
|
+
}, ce = {
|
218
|
+
ZodString: "string",
|
219
|
+
ZodBoolean: "checkbox",
|
220
|
+
ZodDate: "date",
|
221
|
+
ZodEnum: "select",
|
222
|
+
ZodNativeEnum: "select",
|
223
|
+
ZodNumber: "number",
|
224
|
+
ZodArray: "array",
|
225
|
+
ZodObject: "object"
|
226
|
+
}, U = /* @__PURE__ */ b({
|
227
|
+
__name: "BuiAutoFormField",
|
228
|
+
props: {
|
229
|
+
fieldName: {},
|
230
|
+
shape: {},
|
231
|
+
config: {}
|
232
|
+
},
|
233
|
+
setup(m) {
|
234
|
+
const s = m;
|
235
|
+
function f(o) {
|
236
|
+
return !!o?.component;
|
237
|
+
}
|
238
|
+
const p = y(() => {
|
239
|
+
if (["ZodObject", "ZodArray"].includes(s.shape?.type))
|
240
|
+
return { schema: s.shape?.schema };
|
241
|
+
}), { isDisabled: n, isHidden: l, isRequired: a, overrideOptions: i } = ae(s.fieldName);
|
242
|
+
return (o, d) => e(l) ? T("", !0) : (c(), _(J(f(o.config) ? typeof o.config.component == "string" ? e(B)[o.config.component] : o.config.component : e(B)[e(ce)[o.shape.type]]), Q({
|
243
|
+
key: 0,
|
244
|
+
"field-name": o.fieldName,
|
245
|
+
label: o.shape.schema?.description,
|
246
|
+
required: e(a) || o.shape.required,
|
247
|
+
options: e(i) || o.shape.options,
|
248
|
+
disabled: e(n),
|
249
|
+
config: o.config
|
250
|
+
}, p.value), {
|
251
|
+
default: r(() => [
|
252
|
+
g(o.$slots, "default")
|
253
|
+
]),
|
254
|
+
_: 3
|
255
|
+
}, 16, ["field-name", "label", "required", "options", "disabled", "config"]));
|
256
|
+
}
|
257
|
+
});
|
258
|
+
export {
|
259
|
+
ce as D,
|
260
|
+
B as I,
|
261
|
+
ne as P,
|
262
|
+
U as _,
|
263
|
+
ie as a,
|
264
|
+
de as b
|
265
|
+
};
|
@@ -0,0 +1,142 @@
|
|
1
|
+
import { defineComponent as k, computed as C, provide as g, openBlock as s, createBlock as m, unref as a, withCtx as r, renderSlot as B, normalizeProps as A, guardReactiveProps as F, createVNode as t, createTextVNode as f, toDisplayString as z, createElementBlock as d, Fragment as T, renderList as q, createElementVNode as P, createCommentVNode as V } from "vue";
|
2
|
+
import * as c from "zod";
|
3
|
+
import { useField as Z, FieldContextKey as D, FieldArray as S } from "vee-validate";
|
4
|
+
import { getBaseType as j, beautifyObjectName as w } from "./components/ui/auto-form/utils.js";
|
5
|
+
import { _ as E, P as L } from "./BuiAutoFormField.vue_vue_type_script_setup_true_lang-BEazRmdY.js";
|
6
|
+
import { _ as K } from "./BuiAutoFormLabel.vue_vue_type_script_setup_true_lang-DzpWjTLE.js";
|
7
|
+
import { _ as O } from "./BuiAccordion.vue_vue_type_script_setup_true_lang-nxe3iIoM.js";
|
8
|
+
import { _ as R } from "./BuiAccordionContent.vue_vue_type_script_setup_true_lang-pCTYRg2Z.js";
|
9
|
+
import { _ as G } from "./BuiAccordionItem.vue_vue_type_script_setup_true_lang-Dp-3E0FN.js";
|
10
|
+
import { _ as H } from "./BuiAccordionTrigger.vue_vue_type_script_setup_true_lang-CtFZfwMC.js";
|
11
|
+
import { _ as u } from "./utils-DPuEjrVV.js";
|
12
|
+
import { _ as I } from "./BuiSeparator.vue_vue_type_script_setup_true_lang-DbN8eyHh.js";
|
13
|
+
import { _ as J } from "./BuiFormItem.vue_vue_type_script_setup_true_lang-COw7Rwow.js";
|
14
|
+
import { _ as M } from "./BuiFormMessage.vue_vue_type_script_setup_true_lang-DTdflpS8.js";
|
15
|
+
import { T as Q } from "./BuiAutoFormFieldFile.vue_vue_type_script_setup_true_lang-DrJwn66q.js";
|
16
|
+
const U = { class: "!my-4 flex justify-end" }, de = /* @__PURE__ */ k({
|
17
|
+
__name: "BuiAutoFormFieldArray",
|
18
|
+
props: {
|
19
|
+
fieldName: {},
|
20
|
+
required: { type: Boolean },
|
21
|
+
config: {},
|
22
|
+
schema: {},
|
23
|
+
disabled: { type: Boolean }
|
24
|
+
},
|
25
|
+
setup(p) {
|
26
|
+
const o = p;
|
27
|
+
function _(e) {
|
28
|
+
return e instanceof c.ZodArray;
|
29
|
+
}
|
30
|
+
function y(e) {
|
31
|
+
return e instanceof c.ZodDefault;
|
32
|
+
}
|
33
|
+
const $ = C(() => {
|
34
|
+
if (!o.schema) return;
|
35
|
+
const e = _(o.schema) ? o.schema._def.type : y(o.schema) ? (
|
36
|
+
// @ts-expect-error missing schema
|
37
|
+
o.schema._def.innerType._def.type
|
38
|
+
) : null;
|
39
|
+
return {
|
40
|
+
type: j(e),
|
41
|
+
schema: e
|
42
|
+
};
|
43
|
+
}), b = Z(o.fieldName);
|
44
|
+
return g(D, b), (e, n) => (s(), m(a(S), {
|
45
|
+
as: "section",
|
46
|
+
name: e.fieldName
|
47
|
+
}, {
|
48
|
+
default: r(({ fields: h, remove: N, push: v }) => [
|
49
|
+
B(e.$slots, "default", A(F(o)), () => [
|
50
|
+
t(a(O), {
|
51
|
+
type: "multiple",
|
52
|
+
class: "w-full",
|
53
|
+
collapsible: "",
|
54
|
+
disabled: e.disabled,
|
55
|
+
"as-child": ""
|
56
|
+
}, {
|
57
|
+
default: r(() => [
|
58
|
+
t(a(J), null, {
|
59
|
+
default: r(() => [
|
60
|
+
t(a(G), {
|
61
|
+
value: e.fieldName,
|
62
|
+
class: "border-none"
|
63
|
+
}, {
|
64
|
+
default: r(() => [
|
65
|
+
t(a(H), null, {
|
66
|
+
default: r(() => [
|
67
|
+
t(K, {
|
68
|
+
class: "text-base",
|
69
|
+
required: e.required
|
70
|
+
}, {
|
71
|
+
default: r(() => [
|
72
|
+
f(z(e.schema?.description || a(w)(e.fieldName)), 1)
|
73
|
+
]),
|
74
|
+
_: 1
|
75
|
+
}, 8, ["required"])
|
76
|
+
]),
|
77
|
+
_: 1
|
78
|
+
}),
|
79
|
+
t(a(R), null, {
|
80
|
+
default: r(() => [
|
81
|
+
(s(!0), d(T, null, q(h, (i, l) => (s(), d("div", {
|
82
|
+
key: i.key,
|
83
|
+
class: "mb-4 p-1"
|
84
|
+
}, [
|
85
|
+
t(E, {
|
86
|
+
"field-name": `${e.fieldName}[${l}]`,
|
87
|
+
label: e.fieldName,
|
88
|
+
shape: $.value,
|
89
|
+
config: e.config
|
90
|
+
}, null, 8, ["field-name", "label", "shape", "config"]),
|
91
|
+
P("div", U, [
|
92
|
+
t(a(u), {
|
93
|
+
type: "button",
|
94
|
+
size: "icon",
|
95
|
+
variant: "secondary",
|
96
|
+
onClick: (W) => N(l)
|
97
|
+
}, {
|
98
|
+
default: r(() => [
|
99
|
+
t(a(Q), { size: 16 })
|
100
|
+
]),
|
101
|
+
_: 2
|
102
|
+
}, 1032, ["onClick"])
|
103
|
+
]),
|
104
|
+
i.isLast ? V("", !0) : (s(), m(a(I), { key: 0 }))
|
105
|
+
]))), 128)),
|
106
|
+
t(a(u), {
|
107
|
+
type: "button",
|
108
|
+
variant: "secondary",
|
109
|
+
class: "mt-4 flex items-center",
|
110
|
+
onClick: (i) => v(null)
|
111
|
+
}, {
|
112
|
+
default: r(() => [
|
113
|
+
t(a(L), {
|
114
|
+
class: "mr-2",
|
115
|
+
size: 16
|
116
|
+
}),
|
117
|
+
n[0] || (n[0] = f(" Add "))
|
118
|
+
]),
|
119
|
+
_: 2
|
120
|
+
}, 1032, ["onClick"])
|
121
|
+
]),
|
122
|
+
_: 2
|
123
|
+
}, 1024),
|
124
|
+
t(a(M))
|
125
|
+
]),
|
126
|
+
_: 2
|
127
|
+
}, 1032, ["value"])
|
128
|
+
]),
|
129
|
+
_: 2
|
130
|
+
}, 1024)
|
131
|
+
]),
|
132
|
+
_: 2
|
133
|
+
}, 1032, ["disabled"])
|
134
|
+
])
|
135
|
+
]),
|
136
|
+
_: 3
|
137
|
+
}, 8, ["name"]));
|
138
|
+
}
|
139
|
+
});
|
140
|
+
export {
|
141
|
+
de as _
|
142
|
+
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as b, computed as h, provide as g, openBlock as f, createElementBlock as m, renderSlot as y, normalizeProps as v, guardReactiveProps as N, createVNode as t, unref as o, withCtx as l, createTextVNode as $, toDisplayString as B, Fragment as S, renderList as j, createBlock as q } from "vue";
|
2
2
|
import { useField as F, FieldContextKey as O } from "vee-validate";
|
3
|
-
import { _ as C } from "./BuiAutoFormField.vue_vue_type_script_setup_true_lang-
|
3
|
+
import { _ as C } from "./BuiAutoFormField.vue_vue_type_script_setup_true_lang-BEazRmdY.js";
|
4
4
|
import { getBaseSchema as c, getBaseType as A, getDefaultValueInZodStack as V, beautifyObjectName as Z } from "./components/ui/auto-form/utils.js";
|
5
5
|
import { _ as k } from "./BuiAutoFormLabel.vue_vue_type_script_setup_true_lang-DzpWjTLE.js";
|
6
6
|
import { _ as w } from "./BuiAccordion.vue_vue_type_script_setup_true_lang-nxe3iIoM.js";
|
@@ -1,13 +1,14 @@
|
|
1
|
-
import
|
1
|
+
import "vue";
|
2
|
+
import "zod";
|
3
|
+
import "vee-validate";
|
4
|
+
import { D as _, I as a } from "../../../BuiAutoFormField.vue_vue_type_script_setup_true_lang-BEazRmdY.js";
|
2
5
|
import "../../../BuiAutoFormFieldBoolean.vue_vue_type_script_setup_true_lang-tuxavlOe.js";
|
3
6
|
import "../../../BuiAutoFormFieldDate.vue_vue_type_script_setup_true_lang-Bzg1m-ii.js";
|
4
7
|
import "../../../BuiAutoFormFieldEnum.vue_vue_type_script_setup_true_lang-Bqe8Rt85.js";
|
5
8
|
import "../../../BuiAutoFormFieldFile.vue_vue_type_script_setup_true_lang-DrJwn66q.js";
|
6
9
|
import "../../../BuiAutoFormFieldInput.vue_vue_type_script_setup_true_lang-DtBFfiOK.js";
|
7
10
|
import "../../../BuiAutoFormFieldNumber.vue_vue_type_script_setup_true_lang-ClLqHM1Y.js";
|
8
|
-
import "vue";
|
9
|
-
import "vee-validate";
|
10
11
|
export {
|
11
|
-
|
12
|
-
|
12
|
+
_ as DEFAULT_ZOD_HANDLERS,
|
13
|
+
a as INPUT_COMPONENTS
|
13
14
|
};
|
@@ -11,3 +11,5 @@ export { default as BuiAutoFormFieldFile } from './BuiAutoFormFieldFile.vue';
|
|
11
11
|
export { default as BuiAutoFormFieldInput } from './BuiAutoFormFieldInput.vue';
|
12
12
|
export { default as BuiAutoFormFieldNumber } from './BuiAutoFormFieldNumber.vue';
|
13
13
|
export { default as BuiAutoFormFieldObject } from './BuiAutoFormFieldObject.vue';
|
14
|
+
export { default as BuiAutoFormFieldObjectCard } from './BuiAutoFormFieldObjectCard.vue';
|
15
|
+
export { default as BuiAutoFormFieldArrayCard } from './BuiAutoFormFieldArrayCard.vue';
|
@@ -1,26 +1,29 @@
|
|
1
1
|
import { getBaseSchema as e, getBaseType as t, getObjectFormSchema as m } from "./utils.js";
|
2
|
-
import { _ as F } from "../../../BuiAutoForm.vue_vue_type_script_setup_true_lang
|
3
|
-
import { _ as
|
4
|
-
import { _ as
|
5
|
-
import { _ as
|
6
|
-
import { _ as x } from "../../../
|
7
|
-
import { _ as
|
8
|
-
import { _ as
|
9
|
-
import { _ as n } from "../../../
|
10
|
-
import { _ as
|
11
|
-
import { _ as
|
2
|
+
import { _ as F } from "../../../BuiAutoForm.vue_vue_type_script_setup_true_lang--BfJ5eim.js";
|
3
|
+
import { _ as i, b as B, a as s } from "../../../BuiAutoFormField.vue_vue_type_script_setup_true_lang-BEazRmdY.js";
|
4
|
+
import { _ as l } from "../../../BuiAutoFormLabel.vue_vue_type_script_setup_true_lang-DzpWjTLE.js";
|
5
|
+
import { _ as d } from "../../../BuiAutoFormFieldArray.vue_vue_type_script_setup_true_lang-BoFRtjoQ.js";
|
6
|
+
import { _ as x } from "../../../BuiAutoFormFieldBoolean.vue_vue_type_script_setup_true_lang-tuxavlOe.js";
|
7
|
+
import { _ as b } from "../../../BuiAutoFormFieldDate.vue_vue_type_script_setup_true_lang-Bzg1m-ii.js";
|
8
|
+
import { _ as g } from "../../../BuiAutoFormFieldEnum.vue_vue_type_script_setup_true_lang-Bqe8Rt85.js";
|
9
|
+
import { _ as n } from "../../../BuiAutoFormFieldFile.vue_vue_type_script_setup_true_lang-DrJwn66q.js";
|
10
|
+
import { _ as O } from "../../../BuiAutoFormFieldInput.vue_vue_type_script_setup_true_lang-DtBFfiOK.js";
|
11
|
+
import { _ as C } from "../../../BuiAutoFormFieldNumber.vue_vue_type_script_setup_true_lang-ClLqHM1Y.js";
|
12
|
+
import { _ as D } from "../../../BuiAutoFormFieldObject.vue_vue_type_script_setup_true_lang-CWpAoZW6.js";
|
12
13
|
export {
|
13
14
|
F as BuiAutoForm,
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
x as
|
18
|
-
|
19
|
-
|
20
|
-
n as
|
21
|
-
|
22
|
-
|
23
|
-
|
15
|
+
i as BuiAutoFormField,
|
16
|
+
d as BuiAutoFormFieldArray,
|
17
|
+
B as BuiAutoFormFieldArrayCard,
|
18
|
+
x as BuiAutoFormFieldBoolean,
|
19
|
+
b as BuiAutoFormFieldDate,
|
20
|
+
g as BuiAutoFormFieldEnum,
|
21
|
+
n as BuiAutoFormFieldFile,
|
22
|
+
O as BuiAutoFormFieldInput,
|
23
|
+
C as BuiAutoFormFieldNumber,
|
24
|
+
D as BuiAutoFormFieldObject,
|
25
|
+
s as BuiAutoFormFieldObjectCard,
|
26
|
+
l as BuiAutoFormLabel,
|
24
27
|
e as getBaseSchema,
|
25
28
|
t as getBaseType,
|
26
29
|
m as getObjectFormSchema
|