vlite3 0.4.4 → 0.4.7
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/Accordion/AccordionItem.vue.js +33 -32
- package/components/Accordion/types.d.ts +2 -0
- package/components/Alert.vue.d.ts +2 -0
- package/components/Alert.vue.js +38 -36
- package/components/AvatarUploader/AvatarUploader.vue.d.ts +1 -1
- package/components/AvatarUploader/AvatarUploader.vue.js +25 -24
- package/components/Button.vue.d.ts +1 -1
- package/components/Button.vue.js +37 -35
- package/components/CheckBox.vue.d.ts +1 -0
- package/components/CheckBox.vue.js +40 -40
- package/components/Chip/Chip.vue.js +55 -55
- package/components/Chip/types.d.ts +1 -0
- package/components/ChoiceBox/ChoiceBox.vue.d.ts +5 -0
- package/components/ChoiceBox/ChoiceBox.vue.js +61 -58
- package/components/ColorPicker/ColorPicker.vue.js +3 -2
- package/components/ConfirmationModal.vue.d.ts +4 -2
- package/components/ConfirmationModal.vue.js +48 -33
- package/components/DataList/DataList.vue.d.ts +0 -2
- package/components/DataList/DataList.vue.js +39 -35
- package/components/DataList/types.d.ts +2 -0
- package/components/DataTable/DataTable.vue.d.ts +0 -5
- package/components/DataTable/DataTable.vue.js +177 -158
- package/components/DataTable/DataTableHeader.vue.js +15 -14
- package/components/DataTable/DataTableToolbar.vue.d.ts +1 -1
- package/components/DataTable/DataTableToolbar.vue.js +30 -23
- package/components/DataTable/types.d.ts +4 -0
- package/components/DatePicker.vue.d.ts +1 -0
- package/components/DatePicker.vue.js +32 -25
- package/components/Dropdown/DropdownBooleanItem.vue.js +18 -17
- package/components/Dropdown/DropdownGroupedLayout.vue.js +28 -27
- package/components/Dropdown/DropdownItem.vue.js +24 -23
- package/components/Dropdown/DropdownMenu.vue.js +100 -91
- package/components/Dropdown/composables/useDropdownNavigation.js +24 -23
- package/components/Dropdown/composables/useDropdownSelection.js +19 -17
- package/components/Empty/Empty.vue.d.ts +2 -2
- package/components/Empty/Empty.vue.js +32 -18
- package/components/FilePicker/FilePicker.vue.d.ts +3 -1
- package/components/FilePicker/FilePicker.vue.js +140 -127
- package/components/FileTree/FileTree.vue.js +68 -58
- package/components/FileTree/FileTreeNode.vue.js +35 -34
- package/components/FileTree/types.d.ts +3 -0
- package/components/Form/CustomFields.vue.d.ts +3 -1
- package/components/Form/CustomFields.vue.js +2 -2
- package/components/Form/CustomFields.vue2.js +92 -80
- package/components/Form/Form.vue.d.ts +1 -1
- package/components/Form/FormField.vue.d.ts +1 -1
- package/components/Form/FormField.vue.js +60 -59
- package/components/Form/FormFields.vue.js +2 -2
- package/components/Form/FormFields.vue2.js +58 -57
- package/components/Form/composables/useForm.js +91 -88
- package/components/Form/types.d.ts +4 -0
- package/components/Form/utils/form.utils.js +104 -98
- package/components/GoogleLogin.vue.d.ts +1 -1
- package/components/GoogleLogin.vue.js +39 -32
- package/components/Heatmap/Heatmap.vue2.js +3 -2
- package/components/IconPicker.vue.d.ts +2 -0
- package/components/IconPicker.vue.js +37 -29
- package/components/Input.vue.d.ts +1 -1
- package/components/Input.vue.js +96 -98
- package/components/Kanban/KanbanBoard.vue.js +1 -1
- package/components/Kanban/KanbanBoard.vue2.js +55 -54
- package/components/Kanban/types.d.ts +1 -0
- package/components/Masonry/Masonry.vue2.js +3 -2
- package/components/Modal.vue.d.ts +2 -0
- package/components/Modal.vue.js +62 -57
- package/components/MultiSelect/MultiSelect.vue.d.ts +1 -1
- package/components/MultiSelect/MultiSelect.vue.js +61 -54
- package/components/Navbar/Navbar.vue.js +46 -46
- package/components/Pagination/Pagination.vue.js +116 -97
- package/components/PricingPlan/PricingPlanItem.vue.js +60 -47
- package/components/PricingPlan/types.d.ts +5 -0
- package/components/Screen/Screen.vue.d.ts +0 -4
- package/components/Screen/Screen.vue.js +231 -189
- package/components/Screen/ScreenFilter.vue.js +73 -63
- package/components/Screen/types.d.ts +5 -0
- package/components/SidePanel.vue.d.ts +2 -0
- package/components/SidePanel.vue.js +140 -5
- package/components/SidePanel.vue2.js +2 -135
- package/components/SidebarMenu/SidebarMenuItem.vue.js +131 -130
- package/components/SidebarMenu/types.d.ts +1 -0
- package/components/Slider.vue.d.ts +1 -0
- package/components/Slider.vue.js +71 -69
- package/components/Switch.vue.d.ts +1 -0
- package/components/Switch.vue.js +23 -18
- package/components/Tabes/Tabes.vue.js +20 -19
- package/components/Tabes/types.d.ts +1 -0
- package/components/Textarea.vue.d.ts +1 -0
- package/components/Textarea.vue.js +18 -16
- package/components/ThemeToggle.vue.js +24 -14
- package/components/Timeline.vue.js +68 -82
- package/components/ToastNotification.vue.js +2 -2
- package/components/Tooltip.vue.d.ts +4 -3
- package/components/Tooltip.vue.js +17 -15
- package/components/Workbook/Sheet.vue.js +80 -71
- package/components/Workbook/WorkbookAddButton.vue.js +14 -10
- package/components/Workbook/types.d.ts +1 -0
- package/core/config.d.ts +2 -0
- package/index.d.ts +1 -0
- package/index.js +28 -26
- package/package.json +1 -1
- package/style.css +1 -2
- package/types/button.d.ts +1 -0
- package/types/config.type.d.ts +10 -0
- package/types/form.type.d.ts +2 -0
- package/types/styles.d.ts +3 -0
- package/types/timeline.type.d.ts +2 -0
- package/utils/i18n.d.ts +8 -0
- package/utils/i18n.js +5 -0
- package/utils/index.d.ts +1 -0
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { defineComponent as N, computed as n, markRaw as P, openBlock as r, createBlock as f, mergeProps as u, toHandlers as S, createSlots as B, unref as R, withCtx as o, createVNode as z, createTextVNode as
|
|
1
|
+
import { defineComponent as N, computed as n, markRaw as P, openBlock as r, createBlock as f, mergeProps as u, toHandlers as S, createSlots as B, unref as R, withCtx as o, createVNode as z, createTextVNode as m, toDisplayString as c, createCommentVNode as $, resolveDynamicComponent as I } from "vue";
|
|
2
2
|
import { isComponent as h, isAddonObject as p } from "./utils/form.utils.js";
|
|
3
|
-
import
|
|
3
|
+
import O from "../NumberInput.vue.js";
|
|
4
4
|
import v from "../Button.vue.js";
|
|
5
|
+
import { $t as T } from "../../utils/i18n.js";
|
|
5
6
|
import g from "../Input.vue.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
7
|
+
import j from "../Switch.vue.js";
|
|
8
|
+
import D from "../CheckBox.vue.js";
|
|
9
|
+
import E from "../Textarea.vue.js";
|
|
10
|
+
import H from "../FilePicker/FilePicker.vue.js";
|
|
11
|
+
import q from "../AvatarUploader/AvatarUploader.vue.js";
|
|
11
12
|
import y from "../Dropdown/Dropdown.vue.js";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
const
|
|
13
|
+
import G from "../MultiSelect/MultiSelect.vue.js";
|
|
14
|
+
import J from "../DatePicker.vue.js";
|
|
15
|
+
import K from "../ColorPicker/ColorPicker.vue.js";
|
|
16
|
+
import M from "../IconPicker.vue.js";
|
|
17
|
+
import Q from "./CustomFields.vue.js";
|
|
18
|
+
const me = /* @__PURE__ */ N({
|
|
18
19
|
__name: "FormField",
|
|
19
20
|
props: {
|
|
20
21
|
field: {},
|
|
@@ -29,8 +30,8 @@ const ue = /* @__PURE__ */ N({
|
|
|
29
30
|
isUpdate: { type: Boolean, default: !1 }
|
|
30
31
|
},
|
|
31
32
|
emits: ["change", "addonChange", "addonAction"],
|
|
32
|
-
setup(l, { emit:
|
|
33
|
-
const e = l, s =
|
|
33
|
+
setup(l, { emit: L }) {
|
|
34
|
+
const e = l, s = L, d = (t, a) => {
|
|
34
35
|
s("change", { value: t, data: a });
|
|
35
36
|
}, C = (t) => {
|
|
36
37
|
s("change", { value: t });
|
|
@@ -47,31 +48,31 @@ const ue = /* @__PURE__ */ N({
|
|
|
47
48
|
case "search":
|
|
48
49
|
return g;
|
|
49
50
|
case "number":
|
|
50
|
-
return
|
|
51
|
+
return O;
|
|
51
52
|
case "textarea":
|
|
52
|
-
return
|
|
53
|
+
return E;
|
|
53
54
|
case "switch":
|
|
54
|
-
return T;
|
|
55
|
-
case "check":
|
|
56
55
|
return j;
|
|
56
|
+
case "check":
|
|
57
|
+
return D;
|
|
57
58
|
case "select":
|
|
58
59
|
return y;
|
|
59
60
|
case "multiSelect":
|
|
60
|
-
return
|
|
61
|
+
return G;
|
|
61
62
|
case "date":
|
|
62
63
|
case "time":
|
|
63
|
-
return
|
|
64
|
+
return J;
|
|
64
65
|
case "file":
|
|
65
66
|
case "fileUploader":
|
|
66
|
-
return E;
|
|
67
|
-
case "avatarUpload":
|
|
68
67
|
return H;
|
|
68
|
+
case "avatarUpload":
|
|
69
|
+
return q;
|
|
69
70
|
case "color":
|
|
70
|
-
return J;
|
|
71
|
-
case "iconPicker":
|
|
72
71
|
return K;
|
|
73
|
-
case "
|
|
72
|
+
case "iconPicker":
|
|
74
73
|
return M;
|
|
74
|
+
case "customFields":
|
|
75
|
+
return Q;
|
|
75
76
|
default:
|
|
76
77
|
return g;
|
|
77
78
|
}
|
|
@@ -79,12 +80,12 @@ const ue = /* @__PURE__ */ N({
|
|
|
79
80
|
const t = e.field.type, a = {
|
|
80
81
|
disabled: e.disabled || e.field.disabled === !0,
|
|
81
82
|
...e.field.props || {}
|
|
82
|
-
};
|
|
83
|
+
}, i = e.field.placeholderI18n ? T(e.field.placeholderI18n) : e.field.placeholder;
|
|
83
84
|
return t === "text" || t === "email" || t === "password" || t === "tel" || t === "url" || t === "search" || !t ? {
|
|
84
85
|
...a,
|
|
85
86
|
modelValue: e.value ?? "",
|
|
86
87
|
type: t || "text",
|
|
87
|
-
placeholder:
|
|
88
|
+
placeholder: i,
|
|
88
89
|
icon: e.field.icon,
|
|
89
90
|
iconRight: e.field.iconRight,
|
|
90
91
|
// Only pass addon strings; object addons are rendered via slots
|
|
@@ -108,12 +109,12 @@ const ue = /* @__PURE__ */ N({
|
|
|
108
109
|
mode: e.field.props?.mode ?? "outline",
|
|
109
110
|
size: e.size,
|
|
110
111
|
rounded: e.rounded,
|
|
111
|
-
placeholder:
|
|
112
|
+
placeholder: i,
|
|
112
113
|
class: e.field.className
|
|
113
114
|
} : t === "textarea" ? {
|
|
114
115
|
...a,
|
|
115
116
|
modelValue: e.value ?? "",
|
|
116
|
-
placeholder:
|
|
117
|
+
placeholder: i,
|
|
117
118
|
rows: e.field.props?.rows || 3,
|
|
118
119
|
class: e.field.className
|
|
119
120
|
} : t === "switch" ? {
|
|
@@ -130,19 +131,19 @@ const ue = /* @__PURE__ */ N({
|
|
|
130
131
|
...a,
|
|
131
132
|
modelValue: e.value,
|
|
132
133
|
options: e.field.options || [],
|
|
133
|
-
placeholder:
|
|
134
|
+
placeholder: i,
|
|
134
135
|
selectable: !0,
|
|
135
136
|
closeOnSelect: !0
|
|
136
137
|
} : t === "multiSelect" ? {
|
|
137
138
|
...a,
|
|
138
139
|
modelValue: Array.isArray(e.value) ? e.value : [],
|
|
139
140
|
options: e.field.options || [],
|
|
140
|
-
placeholder:
|
|
141
|
+
placeholder: i
|
|
141
142
|
} : t === "date" || t === "time" ? {
|
|
142
143
|
...a,
|
|
143
144
|
modelValue: e.value,
|
|
144
145
|
mode: t === "time" ? "time" : "date",
|
|
145
|
-
placeholder:
|
|
146
|
+
placeholder: i
|
|
146
147
|
} : t === "fileUploader" || t === "file" ? {
|
|
147
148
|
...a,
|
|
148
149
|
modelValue: e.value,
|
|
@@ -151,7 +152,7 @@ const ue = /* @__PURE__ */ N({
|
|
|
151
152
|
fileTypes: e.field.props?.accept ? e.field.props.accept.split(",") : [],
|
|
152
153
|
returnFormat: "base64",
|
|
153
154
|
variant: t === "file" ? "input" : "dropzone",
|
|
154
|
-
placeholder:
|
|
155
|
+
placeholder: i,
|
|
155
156
|
size: e.size,
|
|
156
157
|
rounded: e.rounded,
|
|
157
158
|
maxSize: e.field.maxFileSize ? e.field.maxFileSize * 1024 * 1024 : void 0
|
|
@@ -188,35 +189,35 @@ const ue = /* @__PURE__ */ N({
|
|
|
188
189
|
"update:modelValue": C
|
|
189
190
|
} : t === "select" ? {
|
|
190
191
|
onSelect: (a) => {
|
|
191
|
-
|
|
192
|
+
d(a.value, a.data);
|
|
192
193
|
}
|
|
193
194
|
} : t === "multiSelect" ? {
|
|
194
|
-
change: (a) =>
|
|
195
|
+
change: (a) => d(a)
|
|
195
196
|
} : t === "date" || t === "time" ? {
|
|
196
|
-
change: (a) =>
|
|
197
|
+
change: (a) => d(a)
|
|
197
198
|
} : t === "fileUploader" || t === "file" ? {
|
|
198
199
|
change: (a) => {
|
|
199
|
-
|
|
200
|
+
d(a);
|
|
200
201
|
},
|
|
201
202
|
"update:modelValue": (a) => {
|
|
202
|
-
|
|
203
|
+
d(a);
|
|
203
204
|
}
|
|
204
205
|
} : t === "avatarUpload" ? {
|
|
205
206
|
change: (a) => {
|
|
206
|
-
|
|
207
|
+
d(a);
|
|
207
208
|
},
|
|
208
209
|
"update:modelValue": (a) => {
|
|
209
|
-
|
|
210
|
+
d(a);
|
|
210
211
|
}
|
|
211
212
|
} : t === "color" ? {
|
|
212
|
-
change: (a) =>
|
|
213
|
+
change: (a) => d(a)
|
|
213
214
|
} : t === "iconPicker" ? {
|
|
214
|
-
onSelect: (a) =>
|
|
215
|
+
onSelect: (a) => d(a)
|
|
215
216
|
} : t === "customFields" ? {
|
|
216
|
-
change: (a) =>
|
|
217
|
+
change: (a) => d(a)
|
|
217
218
|
} : h(t) ? {
|
|
218
219
|
onChange: (a) => {
|
|
219
|
-
|
|
220
|
+
d(a.value, a.data);
|
|
220
221
|
}
|
|
221
222
|
} : {};
|
|
222
223
|
}), w = n(() => p(e.field.addonLeft) || p(e.field.addonRight)), A = n(() => {
|
|
@@ -239,12 +240,12 @@ const ue = /* @__PURE__ */ N({
|
|
|
239
240
|
modelValue: l.field.addonLeft.name ? l.values[l.field.addonLeft.name] : void 0,
|
|
240
241
|
options: l.field.addonLeft.options || []
|
|
241
242
|
}, l.field.addonLeft.props || {}, {
|
|
242
|
-
onOnSelect: a[0] || (a[0] = (
|
|
243
|
+
onOnSelect: a[0] || (a[0] = (i) => b(l.field.addonLeft, i))
|
|
243
244
|
}), {
|
|
244
|
-
trigger: o(({ selectedLabel:
|
|
245
|
+
trigger: o(({ selectedLabel: i }) => [
|
|
245
246
|
z(v, { variant: "outline" }, {
|
|
246
247
|
default: o(() => [
|
|
247
|
-
c(
|
|
248
|
+
m(c(i), 1)
|
|
248
249
|
]),
|
|
249
250
|
_: 2
|
|
250
251
|
}, 1024)
|
|
@@ -254,13 +255,13 @@ const ue = /* @__PURE__ */ N({
|
|
|
254
255
|
key: 1,
|
|
255
256
|
variant: "outline"
|
|
256
257
|
}, l.field.addonLeft.props || {}, {
|
|
257
|
-
onClick: a[1] || (a[1] = (
|
|
258
|
+
onClick: a[1] || (a[1] = (i) => k(l.field.addonLeft))
|
|
258
259
|
}), {
|
|
259
260
|
default: o(() => [
|
|
260
|
-
c(
|
|
261
|
+
m(c(l.field.addonLeft.text), 1)
|
|
261
262
|
]),
|
|
262
263
|
_: 1
|
|
263
|
-
}, 16)) :
|
|
264
|
+
}, 16)) : $("", !0)
|
|
264
265
|
]),
|
|
265
266
|
key: "0"
|
|
266
267
|
} : void 0,
|
|
@@ -272,12 +273,12 @@ const ue = /* @__PURE__ */ N({
|
|
|
272
273
|
modelValue: l.field.addonRight.name ? l.values[l.field.addonRight.name] : void 0,
|
|
273
274
|
options: l.field.addonRight.options || []
|
|
274
275
|
}, l.field.addonRight.props || {}, {
|
|
275
|
-
onOnSelect: a[2] || (a[2] = (
|
|
276
|
+
onOnSelect: a[2] || (a[2] = (i) => b(l.field.addonRight, i))
|
|
276
277
|
}), {
|
|
277
|
-
trigger: o(({ selectedLabel:
|
|
278
|
+
trigger: o(({ selectedLabel: i }) => [
|
|
278
279
|
z(v, { variant: "outline" }, {
|
|
279
280
|
default: o(() => [
|
|
280
|
-
c(
|
|
281
|
+
m(c(i), 1)
|
|
281
282
|
]),
|
|
282
283
|
_: 2
|
|
283
284
|
}, 1024)
|
|
@@ -287,22 +288,22 @@ const ue = /* @__PURE__ */ N({
|
|
|
287
288
|
key: 1,
|
|
288
289
|
variant: "outline"
|
|
289
290
|
}, l.field.addonRight.props || {}, {
|
|
290
|
-
onClick: a[3] || (a[3] = (
|
|
291
|
+
onClick: a[3] || (a[3] = (i) => k(l.field.addonRight))
|
|
291
292
|
}), {
|
|
292
293
|
default: o(() => [
|
|
293
|
-
c(
|
|
294
|
+
m(c(l.field.addonRight.text), 1)
|
|
294
295
|
]),
|
|
295
296
|
_: 1
|
|
296
|
-
}, 16)) :
|
|
297
|
+
}, 16)) : $("", !0)
|
|
297
298
|
]),
|
|
298
299
|
key: "1"
|
|
299
300
|
} : void 0
|
|
300
|
-
]), 1040)) : (r(), f(
|
|
301
|
+
]), 1040)) : (r(), f(I(F.value), u({ key: 1 }, {
|
|
301
302
|
...x.value,
|
|
302
303
|
...l.field?.props || {}
|
|
303
304
|
}, S(V.value)), null, 16));
|
|
304
305
|
}
|
|
305
306
|
});
|
|
306
307
|
export {
|
|
307
|
-
|
|
308
|
+
me as default
|
|
308
309
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./FormFields.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-f01b3b3b"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { isComponent as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import { defineComponent as U, computed as f, openBlock as n, createElementBlock as s, normalizeClass as y, Fragment as u, renderList as w, createBlock as m, withCtx as p, unref as I, resolveDynamicComponent as L, createTextVNode as F, toDisplayString as h, createCommentVNode as i, createVNode as $ } from "vue";
|
|
2
|
+
import { isComponent as v, getNestedValue as q } from "./utils/form.utils.js";
|
|
3
|
+
import k from "../Label.vue.js";
|
|
4
|
+
import E from "./FormField.vue.js";
|
|
5
|
+
import { $t as S } from "../../utils/i18n.js";
|
|
6
|
+
const T = {
|
|
6
7
|
key: 0,
|
|
7
8
|
class: "text-destructive ml-0.5"
|
|
8
|
-
},
|
|
9
|
+
}, j = {
|
|
9
10
|
key: 0,
|
|
10
11
|
class: "text-destructive ml-0.5"
|
|
11
|
-
},
|
|
12
|
+
}, G = {
|
|
12
13
|
key: 2,
|
|
13
14
|
class: "mt-1 text-sm text-destructive"
|
|
14
|
-
},
|
|
15
|
+
}, P = /* @__PURE__ */ U({
|
|
15
16
|
__name: "FormFields",
|
|
16
17
|
props: {
|
|
17
18
|
schema: {},
|
|
@@ -27,75 +28,75 @@ const I = {
|
|
|
27
28
|
isFieldReadonly: {}
|
|
28
29
|
},
|
|
29
30
|
emits: ["change", "addonAction"],
|
|
30
|
-
setup(
|
|
31
|
-
const
|
|
32
|
-
if (
|
|
33
|
-
}),
|
|
34
|
-
if (
|
|
35
|
-
return
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
},
|
|
41
|
-
|
|
31
|
+
setup(a, { emit: b }) {
|
|
32
|
+
const r = a, d = b, g = f(() => {
|
|
33
|
+
if (r.className) return r.className;
|
|
34
|
+
}), C = (e) => q(r.values, e.name), l = (e) => r.errors[e.name] || "", x = (e) => r.isFieldVisible ? r.isFieldVisible(e) : !0, V = (e) => r.isFieldDisabled ? r.isFieldDisabled(e) : e.disabled === !0, A = (e) => r.isFieldReadonly ? r.isFieldReadonly(e) : e.readonly === !0, o = (e) => e.labelI18n ? S(e.labelI18n) : e.label, N = (e) => {
|
|
35
|
+
if (e)
|
|
36
|
+
return v(e), e;
|
|
37
|
+
}, D = (e, c) => {
|
|
38
|
+
d("change", e.name, c);
|
|
39
|
+
}, _ = (e) => e.itemClass || "", z = (e, c) => {
|
|
40
|
+
d("change", e, c);
|
|
41
|
+
}, B = (e) => {
|
|
42
|
+
d("addonAction", e);
|
|
42
43
|
};
|
|
43
|
-
return (
|
|
44
|
-
class:
|
|
44
|
+
return (e, c) => (n(), s("div", {
|
|
45
|
+
class: y(["grid gap-4", g.value])
|
|
45
46
|
}, [
|
|
46
|
-
(
|
|
47
|
-
key:
|
|
47
|
+
(n(!0), s(u, null, w(a.schema, (t) => (n(), s(u, {
|
|
48
|
+
key: t.name
|
|
48
49
|
}, [
|
|
49
|
-
|
|
50
|
+
x(t) ? (n(), s("div", {
|
|
50
51
|
key: 0,
|
|
51
|
-
class:
|
|
52
|
+
class: y(["form-field-item", _(t)])
|
|
52
53
|
}, [
|
|
53
|
-
|
|
54
|
+
o(t) && t.type !== "switch" && t.type !== "check" && t.type !== "customFields" ? (n(), m(k, {
|
|
54
55
|
key: 0,
|
|
55
|
-
for:
|
|
56
|
+
for: t.name,
|
|
56
57
|
class: "mb-2 block text-sm font-medium"
|
|
57
58
|
}, {
|
|
58
|
-
default:
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
default: p(() => [
|
|
60
|
+
I(v)(o(t)) ? (n(), m(L(N(o(t))), { key: 0 })) : (n(), s(u, { key: 1 }, [
|
|
61
|
+
F(h(o(t)) + " ", 1),
|
|
62
|
+
t.required ? (n(), s("span", T, "*")) : i("", !0)
|
|
62
63
|
], 64))
|
|
63
64
|
]),
|
|
64
65
|
_: 2
|
|
65
|
-
}, 1032, ["for"])) :
|
|
66
|
-
E
|
|
67
|
-
field:
|
|
68
|
-
value:
|
|
69
|
-
label:
|
|
70
|
-
values:
|
|
71
|
-
variant:
|
|
72
|
-
size:
|
|
73
|
-
rounded:
|
|
74
|
-
disabled:
|
|
75
|
-
readonly:
|
|
76
|
-
error:
|
|
77
|
-
isUpdate:
|
|
78
|
-
onChange: (
|
|
79
|
-
onAddonChange:
|
|
80
|
-
onAddonAction:
|
|
66
|
+
}, 1032, ["for"])) : i("", !0),
|
|
67
|
+
$(E, {
|
|
68
|
+
field: t,
|
|
69
|
+
value: C(t),
|
|
70
|
+
label: t.type === "customFields" ? o(t) : void 0,
|
|
71
|
+
values: a.values,
|
|
72
|
+
variant: a.variant,
|
|
73
|
+
size: a.size,
|
|
74
|
+
rounded: a.rounded,
|
|
75
|
+
disabled: V(t),
|
|
76
|
+
readonly: A(t),
|
|
77
|
+
error: l(t),
|
|
78
|
+
isUpdate: a.isUpdate,
|
|
79
|
+
onChange: (R) => D(t, R),
|
|
80
|
+
onAddonChange: z,
|
|
81
|
+
onAddonAction: B
|
|
81
82
|
}, null, 8, ["field", "value", "label", "values", "variant", "size", "rounded", "disabled", "readonly", "error", "isUpdate", "onChange"]),
|
|
82
|
-
|
|
83
|
+
o(t) && (t.type === "switch" || t.type === "check") ? (n(), m(k, {
|
|
83
84
|
key: 1,
|
|
84
|
-
for:
|
|
85
|
+
for: t.name,
|
|
85
86
|
class: "ml-2 text-sm font-medium cursor-pointer"
|
|
86
87
|
}, {
|
|
87
|
-
default:
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
default: p(() => [
|
|
89
|
+
F(h(o(t)) + " ", 1),
|
|
90
|
+
t.required ? (n(), s("span", j, "*")) : i("", !0)
|
|
90
91
|
]),
|
|
91
92
|
_: 2
|
|
92
|
-
}, 1032, ["for"])) :
|
|
93
|
-
|
|
94
|
-
], 2)) :
|
|
93
|
+
}, 1032, ["for"])) : i("", !0),
|
|
94
|
+
l(t) ? (n(), s("p", G, h(l(t)), 1)) : i("", !0)
|
|
95
|
+
], 2)) : i("", !0)
|
|
95
96
|
], 64))), 128))
|
|
96
97
|
], 2));
|
|
97
98
|
}
|
|
98
99
|
});
|
|
99
100
|
export {
|
|
100
|
-
|
|
101
|
+
P as default
|
|
101
102
|
};
|