vlite3 0.7.11 → 0.7.13

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.
Files changed (34) hide show
  1. package/components/Badge.vue.d.ts +6 -2
  2. package/components/Badge.vue.js +16 -9
  3. package/components/Button.vue.js +1 -1
  4. package/components/DatePicker.vue.js +1 -1
  5. package/components/FilePicker/FilePicker.vue.js +56 -54
  6. package/components/Form/CustomFields.vue.js +1 -1
  7. package/components/Form/CustomFields.vue2.js +60 -53
  8. package/components/Form/Form.vue.d.ts +12 -2
  9. package/components/Form/Form.vue.js +1 -1
  10. package/components/Form/Form.vue2.js +228 -191
  11. package/components/Form/FormField.vue.d.ts +3 -0
  12. package/components/Form/FormField.vue.js +90 -82
  13. package/components/Form/FormFields.vue.js +2 -2
  14. package/components/Form/FormFields.vue2.js +59 -51
  15. package/components/List/ListFieldRow.vue.d.ts +4 -0
  16. package/components/List/ListFieldRow.vue.js +198 -113
  17. package/components/MultiSelect/MultiSelect.vue.d.ts +6 -0
  18. package/components/MultiSelect/MultiSelect.vue.js +116 -98
  19. package/components/NumberInput.vue.js +2 -2
  20. package/components/NumberInput.vue2.js +36 -35
  21. package/components/PermissionMatrix/PermissionEditor.vue.js +72 -129
  22. package/components/PermissionMatrix/PermissionEditorList.vue.js +1 -1
  23. package/components/PermissionMatrix/PermissionEditorList.vue2.js +101 -111
  24. package/components/PermissionMatrix/PermissionEditorMatrix.vue.js +1 -1
  25. package/components/PermissionMatrix/PermissionEditorMatrix.vue2.js +129 -133
  26. package/components/PermissionMatrix/PermissionMatrix.vue.js +1 -1
  27. package/components/PermissionMatrix/PermissionMatrix.vue2.js +171 -156
  28. package/components/PermissionMatrix/usePermissionSearch.d.ts +13 -0
  29. package/components/PermissionMatrix/usePermissionSearch.js +71 -0
  30. package/components/PermissionMatrix/usePermissionState.d.ts +22 -0
  31. package/components/PermissionMatrix/usePermissionState.js +77 -0
  32. package/components/Screen/ScreenFilter.vue.js +32 -32
  33. package/package.json +1 -1
  34. package/style.css +1 -1
@@ -1,21 +1,21 @@
1
- import { defineComponent as U, computed as o, markRaw as I, openBlock as r, createBlock as f, mergeProps as s, toHandlers as S, createSlots as N, unref as z, withCtx as n, createVNode as R, createTextVNode as c, toDisplayString as m, createCommentVNode as L, resolveDynamicComponent as B } from "vue";
2
- import { isComponent as h, isAddonObject as p } from "./utils/form.utils.js";
3
- import O from "../NumberInput.vue.js";
4
- import v from "../Button.vue.js";
5
- import { $t as T } from "../../utils/i18n.js";
6
- import g from "../Input.vue.js";
1
+ import { defineComponent as B, computed as o, markRaw as N, openBlock as r, createBlock as s, mergeProps as f, toHandlers as R, createSlots as O, unref as L, withCtx as n, createVNode as $, createTextVNode as m, toDisplayString as p, createCommentVNode as w, resolveDynamicComponent as T } from "vue";
2
+ import { isComponent as y, isAddonObject as v } from "./utils/form.utils.js";
3
+ import j from "../NumberInput.vue.js";
4
+ import h from "../Button.vue.js";
5
+ import { $t as D } from "../../utils/i18n.js";
6
+ import x from "../Input.vue.js";
7
7
  /* empty css */
8
- import j from "../Switch.vue.js";
9
- import D from "../CheckBox.vue.js";
10
- import E from "../FilePicker/FilePicker.vue.js";
11
- import H from "../AvatarUploader/AvatarUploader.vue.js";
12
- import y from "../Dropdown/Dropdown.vue.js";
13
- import q from "../MultiSelect/MultiSelect.vue.js";
14
- import G from "../DatePicker.vue.js";
15
- import J from "../ColorPicker/ColorPicker.vue.js";
16
- import K from "../IconPicker.vue.js";
17
- import M from "./CustomFields.vue.js";
18
- const ue = /* @__PURE__ */ U({
8
+ import E from "../Switch.vue.js";
9
+ import H from "../CheckBox.vue.js";
10
+ import q from "../FilePicker/FilePicker.vue.js";
11
+ import G from "../AvatarUploader/AvatarUploader.vue.js";
12
+ import b from "../Dropdown/Dropdown.vue.js";
13
+ import J from "../MultiSelect/MultiSelect.vue.js";
14
+ import K from "../DatePicker.vue.js";
15
+ import M from "../ColorPicker/ColorPicker.vue.js";
16
+ import Q from "../IconPicker.vue.js";
17
+ import W from "./CustomFields.vue.js";
18
+ const me = /* @__PURE__ */ B({
19
19
  __name: "FormField",
20
20
  props: {
21
21
  field: {},
@@ -28,18 +28,19 @@ const ue = /* @__PURE__ */ U({
28
28
  readonly: { type: Boolean, default: !1 },
29
29
  error: { default: "" },
30
30
  isUpdate: { type: Boolean, default: !1 },
31
- label: {}
31
+ label: {},
32
+ floatingActive: { type: Boolean, default: !0 }
32
33
  },
33
34
  emits: ["change", "addonChange", "addonAction"],
34
- setup(l, { emit: $ }) {
35
- const e = l, u = $, d = (t, a) => {
36
- u("change", { value: t, data: a });
37
- }, w = (t) => {
38
- u("change", { value: t });
39
- }, C = o(() => {
35
+ setup(l, { emit: A }) {
36
+ const e = l, c = A, d = (t, a) => {
37
+ c("change", { value: t, data: a });
38
+ }, C = (t) => {
39
+ c("change", { value: t });
40
+ }, F = o(() => {
40
41
  const t = e.field.type;
41
- if (h(t))
42
- return I(t);
42
+ if (y(t))
43
+ return N(t);
43
44
  switch (t) {
44
45
  case "text":
45
46
  case "email":
@@ -48,47 +49,47 @@ const ue = /* @__PURE__ */ U({
48
49
  case "url":
49
50
  case "search":
50
51
  case "textarea":
51
- return g;
52
+ return x;
52
53
  case "number":
53
- return O;
54
- case "switch":
55
54
  return j;
55
+ case "switch":
56
+ return E;
56
57
  case "check":
57
- return D;
58
+ return H;
58
59
  case "select":
59
- return y;
60
+ return b;
60
61
  case "multiSelect":
61
- return q;
62
+ return J;
62
63
  case "date":
63
64
  case "time":
64
- return G;
65
+ return K;
65
66
  case "file":
66
67
  case "fileUploader":
67
- return E;
68
+ return q;
68
69
  case "avatarUpload":
69
- return H;
70
+ return G;
70
71
  case "color":
71
- return J;
72
+ return M;
72
73
  case "iconPicker":
73
- return K;
74
+ return Q;
74
75
  case "customFields":
75
- return M;
76
+ return W;
76
77
  default:
77
- return g;
78
+ return x;
78
79
  }
79
- }), b = o(() => {
80
+ }), z = o(() => {
80
81
  const t = e.field.type, a = {
81
82
  disabled: e.disabled || e.field.disabled === !0,
82
83
  ...e?.field || {},
83
84
  ...e.field.props || {},
84
85
  label: "",
85
86
  labelI18n: ""
86
- }, i = e.field.placeholderI18n ? T(e.field.placeholderI18n) : e.field.placeholder;
87
+ }, i = e.field.placeholderI18n ? D(e.field.placeholderI18n) : e.field.placeholder, g = e.variant === "floating" && e.label && !e.floatingActive, u = g ? "" : i;
87
88
  return t === "text" || t === "email" || t === "password" || t === "tel" || t === "url" || t === "search" || t === "textarea" || !t ? {
88
89
  ...a,
89
90
  modelValue: e.value ?? "",
90
91
  type: t || "text",
91
- placeholder: i,
92
+ placeholder: u,
92
93
  label: e.label,
93
94
  icon: e.field.icon,
94
95
  iconRight: e.field.iconRight,
@@ -110,11 +111,11 @@ const ue = /* @__PURE__ */ U({
110
111
  min: e.field.min,
111
112
  max: e.field.max,
112
113
  step: e.field.props?.step ?? 1,
113
- variant: e.field.props?.variant ?? "split",
114
+ variant: e.field.props?.variant ?? "stacked",
114
115
  mode: e.field.props?.mode ?? (e.variant === "transparent" ? "ghost" : "outline"),
115
116
  size: e.size,
116
117
  rounded: e.rounded,
117
- placeholder: i,
118
+ placeholder: u,
118
119
  class: e.field.className
119
120
  } : t === "switch" ? {
120
121
  ...a,
@@ -131,25 +132,32 @@ const ue = /* @__PURE__ */ U({
131
132
  ...a,
132
133
  modelValue: e.value,
133
134
  options: e.field.options || [],
134
- placeholder: i,
135
+ placeholder: u,
135
136
  selectable: !0,
136
137
  closeOnSelect: !0,
137
138
  triggerProps: {
138
- variant: e.variant === "floating" ? "outline-floating" : e.variant || "outline"
139
+ variant: e.variant === "floating" ? "outline-floating" : e.variant || "outline",
140
+ size: e.size,
141
+ ...g ? { text: "​" } : {}
139
142
  }
140
143
  } : t === "multiSelect" ? {
141
144
  ...a,
142
145
  modelValue: Array.isArray(e.value) ? e.value : [],
143
146
  options: e.field.options || [],
144
147
  placeholder: i,
145
- variant: e.variant
148
+ variant: e.variant,
149
+ size: e.size,
150
+ rounded: e.rounded
146
151
  } : t === "date" || t === "time" ? {
147
152
  ...a,
148
153
  modelValue: e.value,
149
154
  mode: t === "time" ? "time" : "date",
150
- placeholder: i,
155
+ placeholder: u,
151
156
  btnProps: {
152
- variant: e.variant === "floating" ? "outline-floating" : e.variant || "outline"
157
+ variant: e.variant === "floating" ? "outline-floating" : e.variant || "outline",
158
+ size: e.size,
159
+ class: "px-3!",
160
+ ...g ? { text: "​" } : {}
153
161
  }
154
162
  } : t === "fileUploader" || t === "file" ? {
155
163
  ...a,
@@ -159,7 +167,7 @@ const ue = /* @__PURE__ */ U({
159
167
  fileTypes: e.field.props?.accept ? e.field.props.accept.split(",") : [],
160
168
  returnFormat: "base64",
161
169
  variant: t === "file" ? "input" : "dropzone",
162
- placeholder: i,
170
+ placeholder: u,
163
171
  size: e.size,
164
172
  rounded: e.rounded,
165
173
  maxSize: e.field.maxFileSize ? e.field.maxFileSize * 1024 * 1024 : void 0
@@ -187,15 +195,15 @@ const ue = /* @__PURE__ */ U({
187
195
  size: e.size,
188
196
  rounded: e.rounded,
189
197
  isUpdate: e.isUpdate
190
- } : h(t) ? {
198
+ } : y(t) ? {
191
199
  ...a,
192
200
  value: e.value,
193
201
  values: e.values
194
202
  } : a;
195
- }), x = o(() => {
203
+ }), k = o(() => {
196
204
  const t = e.field.type;
197
205
  return t === "text" || t === "email" || t === "password" || t === "tel" || t === "url" || t === "search" || t === "textarea" || t === "switch" || t === "check" || t === "number" || !t ? {
198
- "update:modelValue": w
206
+ "update:modelValue": C
199
207
  } : t === "select" ? {
200
208
  onSelect: (a) => {
201
209
  d(a.value, a.data);
@@ -224,27 +232,27 @@ const ue = /* @__PURE__ */ U({
224
232
  onSelect: (a) => d(a)
225
233
  } : t === "customFields" ? {
226
234
  change: (a) => d(a)
227
- } : h(t) ? {
235
+ } : y(t) ? {
228
236
  onChange: (a) => {
229
237
  d(a.value, a.data);
230
238
  }
231
239
  } : {};
232
- }), F = o(() => p(e.field.addonLeft) || p(e.field.addonRight)), A = o(() => {
240
+ }), P = o(() => v(e.field.addonLeft) || v(e.field.addonRight)), U = o(() => {
233
241
  const t = e.field.type;
234
242
  return t === "text" || t === "email" || t === "password" || t === "tel" || t === "url" || t === "search" || !t;
235
- }), P = o(() => F.value && A.value), V = (t, a) => {
236
- u("addonChange", t.name, { value: a.value });
237
- }, k = (t) => {
238
- t.action && u("addonAction", t.action);
243
+ }), I = o(() => P.value && U.value), V = (t, a) => {
244
+ c("addonChange", t.name, { value: a.value });
245
+ }, S = (t) => {
246
+ t.action && c("addonAction", t.action);
239
247
  };
240
- return (t, a) => P.value ? (r(), f(g, s({ key: 0 }, {
241
- ...b.value,
248
+ return (t, a) => I.value ? (r(), s(x, f({ key: 0 }, {
249
+ ...z.value,
242
250
  ...l.field?.props || {}
243
- }, S(x.value)), N({ _: 2 }, [
244
- z(p)(l.field.addonLeft) ? {
251
+ }, R(k.value)), O({ _: 2 }, [
252
+ L(v)(l.field.addonLeft) ? {
245
253
  name: "addon-left",
246
254
  fn: n(() => [
247
- l.field.addonLeft.type === "select" ? (r(), f(y, s({
255
+ l.field.addonLeft.type === "select" ? (r(), s(b, f({
248
256
  key: 0,
249
257
  modelValue: l.field.addonLeft.name ? l.values[l.field.addonLeft.name] : void 0,
250
258
  options: l.field.addonLeft.options || []
@@ -252,32 +260,32 @@ const ue = /* @__PURE__ */ U({
252
260
  onOnSelect: a[0] || (a[0] = (i) => V(l.field.addonLeft, i))
253
261
  }), {
254
262
  trigger: n(({ selectedLabel: i }) => [
255
- R(v, { variant: "outline" }, {
263
+ $(h, { variant: "outline" }, {
256
264
  default: n(() => [
257
- c(m(i), 1)
265
+ m(p(i), 1)
258
266
  ]),
259
267
  _: 2
260
268
  }, 1024)
261
269
  ]),
262
270
  _: 1
263
- }, 16, ["modelValue", "options"])) : l.field.addonLeft.type === "button" ? (r(), f(v, s({
271
+ }, 16, ["modelValue", "options"])) : l.field.addonLeft.type === "button" ? (r(), s(h, f({
264
272
  key: 1,
265
273
  variant: "outline"
266
274
  }, l.field.addonLeft.props || {}, {
267
- onClick: a[1] || (a[1] = (i) => k(l.field.addonLeft))
275
+ onClick: a[1] || (a[1] = (i) => S(l.field.addonLeft))
268
276
  }), {
269
277
  default: n(() => [
270
- c(m(l.field.addonLeft.text), 1)
278
+ m(p(l.field.addonLeft.text), 1)
271
279
  ]),
272
280
  _: 1
273
- }, 16)) : L("", !0)
281
+ }, 16)) : w("", !0)
274
282
  ]),
275
283
  key: "0"
276
284
  } : void 0,
277
- z(p)(l.field.addonRight) ? {
285
+ L(v)(l.field.addonRight) ? {
278
286
  name: "addon-right",
279
287
  fn: n(() => [
280
- l.field.addonRight.type === "select" ? (r(), f(y, s({
288
+ l.field.addonRight.type === "select" ? (r(), s(b, f({
281
289
  key: 0,
282
290
  modelValue: l.field.addonRight.name ? l.values[l.field.addonRight.name] : void 0,
283
291
  options: l.field.addonRight.options || []
@@ -285,37 +293,37 @@ const ue = /* @__PURE__ */ U({
285
293
  onOnSelect: a[2] || (a[2] = (i) => V(l.field.addonRight, i))
286
294
  }), {
287
295
  trigger: n(({ selectedLabel: i }) => [
288
- R(v, { variant: "outline" }, {
296
+ $(h, { variant: "outline" }, {
289
297
  default: n(() => [
290
- c(m(i), 1)
298
+ m(p(i), 1)
291
299
  ]),
292
300
  _: 2
293
301
  }, 1024)
294
302
  ]),
295
303
  _: 1
296
- }, 16, ["modelValue", "options"])) : l.field.addonRight.type === "button" ? (r(), f(v, s({
304
+ }, 16, ["modelValue", "options"])) : l.field.addonRight.type === "button" ? (r(), s(h, f({
297
305
  key: 1,
298
306
  variant: "outline"
299
307
  }, l.field.addonRight.props || {}, {
300
- onClick: a[3] || (a[3] = (i) => k(l.field.addonRight))
308
+ onClick: a[3] || (a[3] = (i) => S(l.field.addonRight))
301
309
  }), {
302
310
  default: n(() => [
303
- c(m(l.field.addonRight.text), 1)
311
+ m(p(l.field.addonRight.text), 1)
304
312
  ]),
305
313
  _: 1
306
- }, 16)) : L("", !0)
314
+ }, 16)) : w("", !0)
307
315
  ]),
308
316
  key: "1"
309
317
  } : void 0
310
- ]), 1040)) : (r(), f(B(C.value), s({
318
+ ]), 1040)) : (r(), s(T(F.value), f({
311
319
  key: 1,
312
320
  class: ["switch", "check"].includes(l.field?.type) ? "" : "w-full"
313
321
  }, {
314
- ...b.value,
322
+ ...z.value,
315
323
  ...l.field?.props || {}
316
- }, S(x.value)), null, 16, ["class"]));
324
+ }, R(k.value)), null, 16, ["class"]));
317
325
  }
318
326
  });
319
327
  export {
320
- ue as default
328
+ me as default
321
329
  };
@@ -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 a = /* @__PURE__ */ r(o, [["__scopeId", "data-v-0fe8a23f"]]);
4
+ const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a86554e2"]]);
5
5
  export {
6
- a as default
6
+ e as default
7
7
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as H, computed as O, ref as j, openBlock as s, createElementBlock as r, normalizeClass as i, Fragment as l, renderList as G, createBlock as d, withCtx as A, unref as _, resolveDynamicComponent as w, createTextVNode as b, toDisplayString as m, createCommentVNode as u, createElementVNode as J, createVNode as K } from "vue";
2
- import { isComponent as p, getNestedValue as M } from "./utils/form.utils.js";
3
- import V from "../Label.vue.js";
1
+ import { defineComponent as H, computed as O, ref as j, openBlock as a, createElementBlock as r, normalizeClass as l, Fragment as m, renderList as G, createBlock as d, withCtx as N, unref as _, resolveDynamicComponent as w, createTextVNode as b, toDisplayString as p, createCommentVNode as u, createElementVNode as J, createVNode as K } from "vue";
2
+ import { isComponent as y, getNestedValue as M } from "./utils/form.utils.js";
3
+ import f from "../Label.vue.js";
4
4
  import P from "./FormField.vue.js";
5
5
  import { $t as Q } from "../../utils/i18n.js";
6
6
  const W = {
@@ -32,112 +32,120 @@ const W = {
32
32
  isFieldReadonly: {}
33
33
  },
34
34
  emits: ["change", "addonAction"],
35
- setup(c, { emit: N }) {
36
- const a = c, h = N, L = O(() => {
37
- if (a.className) return a.className;
38
- }), k = (t) => M(a.values, t.name), y = (t) => a.errors[t.name] || "", z = (t) => a.isFieldVisible ? a.isFieldVisible(t) : !0, D = (t) => a.isFieldDisabled ? a.isFieldDisabled(t) : t.disabled === !0, R = (t) => a.isFieldReadonly ? a.isFieldReadonly(t) : t.readonly === !0, o = (t) => t.labelI18n ? Q(t.labelI18n) : t.label, x = (t) => {
35
+ setup(c, { emit: L }) {
36
+ const s = c, h = L, z = O(() => {
37
+ if (s.className) return s.className;
38
+ }), k = (t) => M(s.values, t.name), v = (t) => s.errors[t.name] || "", D = (t) => s.isFieldVisible ? s.isFieldVisible(t) : !0, R = (t) => s.isFieldDisabled ? s.isFieldDisabled(t) : t.disabled === !0, U = (t) => s.isFieldReadonly ? s.isFieldReadonly(t) : t.readonly === !0, o = (t) => t.labelI18n ? Q(t.labelI18n) : t.label, x = (t) => {
39
39
  if (t)
40
- return p(t), t;
40
+ return y(t), t;
41
41
  }, $ = (t, n) => {
42
42
  h("change", t.name, n);
43
43
  }, q = (t) => t.itemClass || "", B = (t, n) => {
44
44
  h("change", t, n);
45
45
  }, I = (t) => {
46
46
  h("addonAction", t);
47
- }, v = j({}), U = (t) => {
48
- v.value[t] = !0;
49
- }, E = (t) => {
50
- v.value[t] = !1;
51
- }, f = (t) => {
52
- const n = k(t), e = n != null && n !== "" && !(Array.isArray(n) && n.length === 0);
53
- return v.value[t.name] || e;
47
+ }, g = j({}), E = (t) => {
48
+ g.value[t] = !0;
54
49
  }, T = (t) => {
50
+ g.value[t] = !1;
51
+ }, A = (t) => {
52
+ const n = k(t), e = n != null && n !== "" && !(Array.isArray(n) && n.length === 0), i = typeof n == "number" && !isNaN(n);
53
+ return C(t) || t.type === "number" ? g.value[t.name] || e || i : e || i;
54
+ }, C = (t) => {
55
55
  const n = t.type || "text";
56
56
  return ["text", "email", "password", "tel", "url", "search", "textarea"].includes(n);
57
- }, S = (t) => t.type === "number" && t.props?.variant !== "stacked" ? "left-10" : t.type === "date" || t.type === "time" || t.type === "color" ? "left-9" : "left-3", g = (t) => {
58
- if (a.variant !== "floating") return !1;
57
+ }, S = (t) => t.type === "number" ? (t.props?.variant ?? "split") === "split" ? "left-4" : "left-3" : t.type === "date" || t.type === "time" || t.type === "color" ? "left-10" : "left-3", F = (t) => {
58
+ if (s.variant !== "floating") return !1;
59
59
  const n = t.type || "text";
60
- return !["switch", "check", "customFields", "avatarUpload", "number"].includes(n);
61
- }, C = (t) => {
60
+ return ![
61
+ "switch",
62
+ "check",
63
+ "customFields",
64
+ "avatarUpload",
65
+ "fileUploader",
66
+ "file"
67
+ ].includes(n);
68
+ }, V = (t) => {
62
69
  const n = o(t);
63
- if (!(!n || p(n)))
70
+ if (!(!n || y(n)))
64
71
  return n;
65
72
  };
66
- return (t, n) => (s(), r("div", {
67
- class: i(["grid", c.variant === "floating" ? "gap-6" : "gap-4", L.value])
73
+ return (t, n) => (a(), r("div", {
74
+ class: l(["grid", c.variant === "floating" ? "gap-5 mt-1" : "gap-4", z.value])
68
75
  }, [
69
- (s(!0), r(l, null, G(c.schema, (e) => (s(), r(l, {
76
+ (a(!0), r(m, null, G(c.schema, (e) => (a(), r(m, {
70
77
  key: e.name
71
78
  }, [
72
- z(e) ? (s(), r("div", {
79
+ D(e) ? (a(), r("div", {
73
80
  key: 0,
74
- class: i(["form-field-item", q(e)])
81
+ class: l(["form-field-item", q(e)])
75
82
  }, [
76
- o(e) && e.type !== "switch" && e.type !== "check" && e.type !== "customFields" && !g(e) ? (s(), d(V, {
83
+ o(e) && e.type !== "switch" && e.type !== "check" && e.type !== "customFields" && !F(e) ? (a(), d(f, {
77
84
  key: 0,
78
85
  for: e.name,
79
86
  class: "mb-2 block text-sm font-medium"
80
87
  }, {
81
- default: A(() => [
82
- _(p)(o(e)) ? (s(), d(w(x(o(e))), { key: 0 })) : (s(), r(l, { key: 1 }, [
83
- b(m(o(e)) + " ", 1),
84
- e.required && c.showRequiredAsterisk ? (s(), r("span", W, "*")) : u("", !0)
88
+ default: N(() => [
89
+ _(y)(o(e)) ? (a(), d(w(x(o(e))), { key: 0 })) : (a(), r(m, { key: 1 }, [
90
+ b(p(o(e)) + " ", 1),
91
+ e.required && c.showRequiredAsterisk ? (a(), r("span", W, "*")) : u("", !0)
85
92
  ], 64))
86
93
  ]),
87
94
  _: 2
88
95
  }, 1032, ["for"])) : u("", !0),
89
96
  J("div", {
90
- class: i(["relative", ["switch", "check"].includes(e.type) ? "w-auto" : "w-full"]),
91
- onFocusin: (F) => U(e.name),
92
- onFocusout: (F) => E(e.name)
97
+ class: l(["relative", ["switch", "check"].includes(e.type) ? "w-auto" : "w-full"]),
98
+ onFocusin: (i) => E(e.name),
99
+ onFocusout: (i) => T(e.name)
93
100
  }, [
94
- g(e) && C(e) && !T(e) ? (s(), r("label", {
101
+ F(e) && V(e) && !C(e) ? (a(), r("label", {
95
102
  key: 0,
96
103
  for: e.name,
97
- class: i([
104
+ class: l([
98
105
  "absolute transition-all duration-200 ease-in-out pointer-events-none z-20",
99
- f(e) ? "-top-2.5 left-3 text-xs bg-background px-1 text-black shadow-[0_4px_4px_-4px_bg-background]" : `top-2.5 text-sm text-muted-foreground/70 ${S(e)}`
106
+ A(e) ? "-top-2.5 left-3 text-xs bg-background px-1 text-black shadow-[0_4px_4px_-4px_bg-background]" : `top-1/2 -translate-y-1/2 text-sm text-muted-foreground/70 ${S(e)}`
100
107
  ])
101
108
  }, [
102
- _(p)(o(e)) ? (s(), d(w(x(o(e))), { key: 0 })) : (s(), r(l, { key: 1 }, [
103
- b(m(o(e)) + " ", 1),
104
- e.required ? (s(), r("span", Z, "*")) : u("", !0)
109
+ _(y)(o(e)) ? (a(), d(w(x(o(e))), { key: 0 })) : (a(), r(m, { key: 1 }, [
110
+ b(p(o(e)) + " ", 1),
111
+ e.required ? (a(), r("span", Z, "*")) : u("", !0)
105
112
  ], 64))
106
113
  ], 10, Y)) : u("", !0),
107
114
  K(P, {
108
- field: a.variant === "floating" ? {
115
+ field: s.variant === "floating" ? {
109
116
  ...e,
110
117
  placeholder: void 0,
111
118
  placeholderI18n: void 0,
112
119
  props: { ...e.props || {}, id: e.name }
113
120
  } : { ...e, props: { ...e.props || {}, id: e.name } },
114
121
  value: k(e),
115
- label: e.type === "customFields" ? void 0 : g(e) ? C(e) : void 0,
122
+ floatingActive: A(e),
123
+ label: e.type === "customFields" ? void 0 : F(e) ? V(e) : void 0,
116
124
  values: c.values,
117
125
  variant: c.variant,
118
126
  size: c.size,
119
127
  rounded: c.rounded,
120
- disabled: D(e),
121
- readonly: R(e),
122
- error: y(e),
128
+ disabled: R(e),
129
+ readonly: U(e),
130
+ error: v(e),
123
131
  isUpdate: c.isUpdate,
124
- onChange: (F) => $(e, F),
132
+ onChange: (i) => $(e, i),
125
133
  onAddonChange: B,
126
134
  onAddonAction: I
127
- }, null, 8, ["field", "value", "label", "values", "variant", "size", "rounded", "disabled", "readonly", "error", "isUpdate", "onChange"])
135
+ }, null, 8, ["field", "value", "floatingActive", "label", "values", "variant", "size", "rounded", "disabled", "readonly", "error", "isUpdate", "onChange"])
128
136
  ], 42, X),
129
- o(e) && (e.type === "switch" || e.type === "check") ? (s(), d(V, {
137
+ o(e) && (e.type === "switch" || e.type === "check") ? (a(), d(f, {
130
138
  key: 1,
131
139
  for: e.name,
132
140
  class: "ml-2 text-sm font-medium cursor-pointer"
133
141
  }, {
134
- default: A(() => [
135
- b(m(o(e)) + " ", 1),
136
- e.required ? (s(), r("span", ee, "*")) : u("", !0)
142
+ default: N(() => [
143
+ b(p(o(e)) + " ", 1),
144
+ e.required ? (a(), r("span", ee, "*")) : u("", !0)
137
145
  ]),
138
146
  _: 2
139
147
  }, 1032, ["for"])) : u("", !0),
140
- y(e) ? (s(), r("p", te, m(y(e)), 1)) : u("", !0)
148
+ v(e) ? (a(), r("p", te, p(v(e)), 1)) : u("", !0)
141
149
  ], 2)) : u("", !0)
142
150
  ], 64))), 128))
143
151
  ], 2));
@@ -31,6 +31,10 @@ declare function __VLS_template(): {
31
31
  value: any;
32
32
  resolved: string;
33
33
  data: Record<string, any>;
34
+ }) => any>> & Partial<Record<string, (_: {
35
+ value: any;
36
+ resolved: string;
37
+ data: Record<string, any>;
34
38
  }) => any>>;
35
39
  refs: {};
36
40
  rootEl: any;