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,32 +1,32 @@
1
- import { defineComponent as le, inject as oe, computed as r, ref as ne, watch as G, onUnmounted as re, openBlock as o, createElementBlock as d, withModifiers as ue, normalizeClass as g, createVNode as N, unref as s, createCommentVNode as c, Fragment as de, renderList as ce, createElementVNode as p, toDisplayString as U, renderSlot as me, createBlock as S, mergeProps as $ } from "vue";
2
- import { useForm as ve } from "./composables/useForm.js";
3
- import H from "./FormFields.vue.js";
4
- import C from "../Button.vue.js";
5
- import fe from "../Timeline/Timeline.vue.js";
1
+ import { defineComponent as ge, inject as he, computed as n, ref as U, onMounted as be, onUnmounted as X, watch as Y, openBlock as o, createElementBlock as d, withKeys as Z, withModifiers as L, normalizeClass as g, createVNode as z, unref as s, createCommentVNode as c, createElementVNode as h, Fragment as ye, renderList as pe, toDisplayString as D, renderSlot as ke, createBlock as C, mergeProps as _ } from "vue";
2
+ import { useForm as Se } from "./composables/useForm.js";
3
+ import j from "./FormFields.vue.js";
4
+ import x from "../Button.vue.js";
5
+ import Ce from "../Timeline/Timeline.vue.js";
6
6
  import "@iconify/vue";
7
- import { useVLiteConfig as ge } from "../../core/config.js";
8
- const he = {
9
- key: 1,
7
+ import { useVLiteConfig as xe } from "../../core/config.js";
8
+ const Fe = ["onKeydown"], we = {
9
+ key: 0,
10
10
  class: "form-fields-single"
11
- }, be = {
12
- key: 2,
11
+ }, Ae = {
12
+ key: 1,
13
13
  class: "form-groups space-y-6"
14
- }, ye = { class: "text-base font-semibold text-foreground" }, pe = {
14
+ }, Re = { class: "text-base font-semibold text-foreground" }, Ne = {
15
15
  key: 0,
16
16
  class: "text-sm text-muted-foreground mt-1"
17
- }, Se = { class: "form-group-body p-4.5" }, Ce = {
18
- key: 3,
17
+ }, Ve = { class: "form-group-body p-4.5" }, Ue = {
18
+ key: 2,
19
19
  class: "form-step"
20
- }, ke = { class: "text-lg font-semibold text-foreground" }, xe = {
20
+ }, ze = { class: "text-lg font-semibold text-foreground" }, De = {
21
21
  key: 0,
22
22
  class: "text-sm text-muted-foreground mt-1"
23
- }, Fe = { class: "flex items-center gap-3" }, qe = /* @__PURE__ */ le({
23
+ }, Pe = { class: "flex items-center gap-3" }, Ie = /* @__PURE__ */ ge({
24
24
  __name: "Form",
25
25
  props: {
26
26
  schema: {},
27
27
  values: { default: () => ({}) },
28
28
  variant: {},
29
- size: {},
29
+ size: { default: "lg" },
30
30
  rounded: {},
31
31
  loading: { type: Boolean, default: !1 },
32
32
  footer: { type: Boolean, default: !0 },
@@ -46,258 +46,295 @@ const he = {
46
46
  footerClass: { default: "" },
47
47
  timelineTextPosition: { default: "right" },
48
48
  emitFields: { default: () => ["__typename"] },
49
- showRequiredAsterisk: { type: Boolean }
49
+ showRequiredAsterisk: { type: Boolean },
50
+ stickyFooter: { type: Boolean, default: !0 }
50
51
  },
51
52
  emits: ["onSubmit", "onCancel", "onStepChange", "onAddonAction"],
52
- setup(e, { emit: I }) {
53
- const i = e, m = I, v = oe(
53
+ setup(e, { emit: ee }) {
54
+ const a = e, m = ee, v = he(
54
55
  "modal-context",
55
56
  null
56
- ), K = ge(), k = r(() => K?.components?.form || {}), z = r(() => i.variant ?? k.value.variant ?? "outline"), D = r(() => i.size ?? k.value.size ?? "md"), P = r(() => i.rounded ?? k.value.rounded ?? "md"), q = r(
57
- () => i.showRequiredAsterisk ?? k.value.showRequiredAsterisk ?? !0
58
- ), J = r(() => i.showCancel || !!v), O = r(() => !!v), x = r(() => !i.schema || i.schema.length === 0 ? !1 : Array.isArray(i.schema[0])), n = r(() => i.tabs && i.tabs.length > 0 && x.value), l = ne(0), M = r(() => i.tabs ? i.tabs.map((a, t) => ({
59
- id: a.id?.toString() || t.toString(),
60
- title: a.title,
61
- icon: a.icon,
62
- description: a.description,
63
- status: t < l.value ? "completed" : t === l.value ? "current" : "upcoming"
64
- })) : []), h = r(() => x.value ? i.schema : [i.schema]), E = r(() => n.value ? h.value[l.value] || [] : []), {
65
- formValues: F,
66
- errors: b,
67
- isSubmitting: y,
68
- handleFieldChange: Q,
69
- validateField: W,
70
- validateAll: X,
71
- isFieldVisible: A,
72
- isFieldDisabled: w,
73
- isFieldReadonly: T,
74
- getFieldValue: Ae,
75
- handleSubmit: Y,
76
- flatSchema: we
77
- } = ve({
78
- schema: i.schema,
79
- values: i.values,
80
- isUpdate: i.isUpdate,
81
- folderId: i.folderId,
82
- emitFields: i.emitFields,
83
- onSubmit: (a) => {
84
- m("onSubmit", a, v?.close || (() => {
57
+ ), te = xe(), F = n(() => te?.components?.form || {}), P = n(() => a.variant ?? F.value.variant ?? "outline"), q = n(() => a.size ?? F.value.size ?? "md"), B = n(() => a.rounded ?? F.value.rounded ?? "md"), T = n(
58
+ () => a.showRequiredAsterisk ?? F.value.showRequiredAsterisk ?? !0
59
+ ), ae = n(() => a.showCancel || !!v), H = n(() => !!v), b = n(() => a.stickyFooter), ie = U(null), K = U(null), G = U(!1);
60
+ let M = null;
61
+ be(() => {
62
+ K.value && (M = new IntersectionObserver(
63
+ ([t]) => {
64
+ G.value = !t.isIntersecting;
65
+ },
66
+ { threshold: 0 }
67
+ ), M.observe(K.value));
68
+ }), X(() => {
69
+ M?.disconnect();
70
+ });
71
+ const w = n(() => !a.schema || a.schema.length === 0 ? !1 : Array.isArray(a.schema[0])), r = n(() => a.tabs && a.tabs.length > 0 && w.value), l = U(0), $ = n(() => a.tabs ? a.tabs.map((t, i) => ({
72
+ id: t.id?.toString() || i.toString(),
73
+ title: t.title,
74
+ icon: t.icon,
75
+ description: t.description,
76
+ status: i < l.value ? "completed" : i === l.value ? "current" : "upcoming"
77
+ })) : []), y = n(() => w.value ? a.schema : [a.schema]), O = n(() => r.value ? y.value[l.value] || [] : []), {
78
+ formValues: A,
79
+ errors: p,
80
+ isSubmitting: k,
81
+ handleFieldChange: se,
82
+ validateField: le,
83
+ validateAll: oe,
84
+ isFieldVisible: R,
85
+ isFieldDisabled: N,
86
+ isFieldReadonly: E,
87
+ handleSubmit: ne
88
+ } = Se({
89
+ schema: a.schema,
90
+ values: a.values,
91
+ isUpdate: a.isUpdate,
92
+ folderId: a.folderId,
93
+ emitFields: a.emitFields,
94
+ onSubmit: (t) => {
95
+ m("onSubmit", t, v?.close || (() => {
85
96
  }));
86
97
  }
87
98
  });
88
- G(
89
- () => i.loading || y.value,
90
- (a) => {
91
- v?.setSubmitting && v.setSubmitting(a);
99
+ Y(
100
+ () => a.loading || k.value,
101
+ (t) => {
102
+ v?.setSubmitting && v.setSubmitting(t);
92
103
  },
93
104
  { immediate: !0 }
94
- ), re(() => {
105
+ ), X(() => {
95
106
  v?.setSubmitting && v.setSubmitting(!1);
96
- }), G(
97
- () => i.values,
98
- (a) => {
107
+ }), Y(
108
+ () => a.values,
109
+ (t) => {
99
110
  },
100
111
  { deep: !0 }
101
112
  );
102
- const B = (a, t) => {
103
- Q(a, t.value, t.data);
104
- }, Z = () => {
105
- if (!n.value) return !0;
106
- const a = E.value;
107
- let t = !0;
108
- for (const u of a) {
109
- if (!A(u) || w(u)) continue;
110
- W(u) && (t = !1);
113
+ const I = (t, i) => {
114
+ se(t, i.value, i.data);
115
+ }, re = () => {
116
+ if (!r.value) return !0;
117
+ const t = O.value;
118
+ let i = !0;
119
+ for (const u of t) {
120
+ if (!R(u) || N(u)) continue;
121
+ le(u) && (i = !1);
111
122
  }
112
- return t;
113
- }, _ = r(() => n.value ? l.value < h.value.length - 1 : !1), L = r(() => n.value ? l.value > 0 : !1), R = r(() => n.value ? l.value === h.value.length - 1 : !0), j = () => {
114
- _.value && Z() && (l.value++, m("onStepChange", l.value));
115
- }, ee = () => {
116
- L.value && (l.value--, m("onStepChange", l.value));
117
- }, te = (a, t) => {
118
- t <= l.value && (l.value = t, m("onStepChange", l.value));
119
- }, V = async () => {
120
- if (n.value) {
121
- if (!R.value && !i.isUpdate) {
122
- j();
123
+ return i;
124
+ }, ue = n(() => r.value ? l.value < y.value.length - 1 : !1), J = n(() => r.value ? l.value > 0 : !1), V = n(() => r.value ? l.value === y.value.length - 1 : !0), Q = () => {
125
+ ue.value && re() && (l.value++, m("onStepChange", l.value));
126
+ }, de = () => {
127
+ J.value && (l.value--, m("onStepChange", l.value));
128
+ }, ce = (t, i) => {
129
+ i <= l.value && (l.value = i, m("onStepChange", l.value));
130
+ }, S = async () => {
131
+ if (r.value) {
132
+ if (!V.value && !a.isUpdate) {
133
+ Q();
123
134
  return;
124
135
  }
125
- if (!X()) {
126
- const t = h.value.findIndex(
127
- (u) => u.some((f) => !!b.value[f.name])
136
+ if (!oe()) {
137
+ const i = y.value.findIndex(
138
+ (u) => u.some((f) => !!p.value[f.name])
128
139
  );
129
- t !== -1 && t !== l.value && (l.value = t, m("onStepChange", l.value));
140
+ i !== -1 && i !== l.value && (l.value = i, m("onStepChange", l.value));
130
141
  return;
131
142
  }
132
143
  }
133
144
  try {
134
- await Y();
145
+ await ne();
135
146
  } catch {
136
147
  }
137
- }, ie = (a) => {
138
- if (a.key !== "Enter") return;
139
- const u = a.target.tagName.toLowerCase();
140
- u !== "textarea" && u !== "button" && (a.preventDefault(), V());
141
- }, ae = () => {
148
+ }, me = (t) => {
149
+ if (t.key !== "Enter") return;
150
+ const u = t.target.tagName.toLowerCase();
151
+ u !== "textarea" && u !== "button" && (t.preventDefault(), S());
152
+ }, W = (t) => {
153
+ (t.metaKey || t.ctrlKey) && t.key === "s" && (t.preventDefault(), S());
154
+ }, ve = () => {
142
155
  m("onCancel"), v && v?.close?.();
143
156
  };
144
- return (a, t) => (o(), d("form", {
145
- class: g(["form-container", i.class]),
146
- onSubmit: ue(V, ["prevent"]),
147
- onKeydown: ie
157
+ return (t, i) => (o(), d("form", {
158
+ class: g(["form-container ", a.class]),
159
+ onSubmit: L(S, ["prevent"]),
160
+ onKeydown: [
161
+ me,
162
+ Z(L(W, ["meta", "prevent"]), ["s"]),
163
+ Z(L(W, ["ctrl", "prevent"]), ["s"])
164
+ ]
148
165
  }, [
149
- n.value && M.value.length > 0 ? (o(), d("div", {
166
+ r.value && $.value.length > 0 ? (o(), d("div", {
150
167
  key: 0,
151
168
  class: g(["form-timeline", e.timelineTextPosition == "right" ? "mb-6.5" : "mb-13"])
152
169
  }, [
153
- N(s(fe), {
154
- steps: M.value,
170
+ z(s(Ce), {
171
+ steps: $.value,
155
172
  activeStep: l.value,
156
173
  direction: "horizontal",
157
174
  textPosition: e.timelineTextPosition,
158
175
  clickable: !0,
159
- onStepClick: te
176
+ onStepClick: ce
160
177
  }, null, 8, ["steps", "activeStep", "textPosition"])
161
178
  ], 2)) : c("", !0),
162
- x.value ? x.value && !n.value ? (o(), d("div", be, [
163
- (o(!0), d(de, null, ce(h.value, (u, f) => (o(), d("div", {
164
- key: f,
165
- class: g(["form-group border rounded overflow-hidden", e.groupClass])
166
- }, [
167
- e.groupsHeadings?.[f] ? (o(), d("div", {
179
+ h("div", {
180
+ class: g(e.footer && b.value ? "pb-2" : "")
181
+ }, [
182
+ w.value ? w.value && !r.value ? (o(), d("div", Ae, [
183
+ (o(!0), d(ye, null, pe(y.value, (u, f) => (o(), d("div", {
184
+ key: f,
185
+ class: g(["form-group border rounded overflow-hidden bg-body", e.groupClass])
186
+ }, [
187
+ e.groupsHeadings?.[f] ? (o(), d("div", {
188
+ key: 0,
189
+ class: g(["form-group-header bg-muted/50 px-4 py-2.5 border-b", e.headerClass])
190
+ }, [
191
+ h("h3", Re, D(e.groupsHeadings[f]), 1),
192
+ e.groupHeadingsDescription?.[f] ? (o(), d("p", Ne, D(e.groupHeadingsDescription[f]), 1)) : c("", !0)
193
+ ], 2)) : c("", !0),
194
+ h("div", Ve, [
195
+ z(j, {
196
+ schema: u,
197
+ values: s(A),
198
+ errors: s(p),
199
+ variant: P.value,
200
+ size: q.value,
201
+ rounded: B.value,
202
+ className: e.className,
203
+ isUpdate: e.isUpdate,
204
+ showRequiredAsterisk: T.value,
205
+ isFieldVisible: s(R),
206
+ isFieldDisabled: s(N),
207
+ isFieldReadonly: s(E),
208
+ onChange: I,
209
+ onAddonAction: i[1] || (i[1] = (fe) => m("onAddonAction", fe))
210
+ }, null, 8, ["schema", "values", "errors", "variant", "size", "rounded", "className", "isUpdate", "showRequiredAsterisk", "isFieldVisible", "isFieldDisabled", "isFieldReadonly"])
211
+ ])
212
+ ], 2))), 128))
213
+ ])) : r.value ? (o(), d("div", Ue, [
214
+ e.tabs?.[l.value] ? (o(), d("div", {
168
215
  key: 0,
169
- class: g(["form-group-header bg-muted/50 px-4 py-2.5 border-b", e.headerClass])
216
+ class: g(["form-step-header mb-6", e.headerClass])
170
217
  }, [
171
- p("h3", ye, U(e.groupsHeadings[f]), 1),
172
- e.groupHeadingsDescription?.[f] ? (o(), d("p", pe, U(e.groupHeadingsDescription[f]), 1)) : c("", !0)
218
+ h("h2", ze, D(e.tabs[l.value].title), 1),
219
+ e.tabs[l.value].description ? (o(), d("p", De, D(e.tabs[l.value].description), 1)) : c("", !0)
173
220
  ], 2)) : c("", !0),
174
- p("div", Se, [
175
- N(H, {
176
- schema: u,
177
- values: s(F),
178
- errors: s(b),
179
- variant: z.value,
180
- size: D.value,
181
- rounded: P.value,
182
- className: e.className,
183
- isUpdate: e.isUpdate,
184
- showRequiredAsterisk: q.value,
185
- isFieldVisible: s(A),
186
- isFieldDisabled: s(w),
187
- isFieldReadonly: s(T),
188
- onChange: B,
189
- onAddonAction: t[1] || (t[1] = (se) => m("onAddonAction", se))
190
- }, null, 8, ["schema", "values", "errors", "variant", "size", "rounded", "className", "isUpdate", "showRequiredAsterisk", "isFieldVisible", "isFieldDisabled", "isFieldReadonly"])
191
- ])
192
- ], 2))), 128))
193
- ])) : n.value ? (o(), d("div", Ce, [
194
- e.tabs?.[l.value] ? (o(), d("div", {
195
- key: 0,
196
- class: g(["form-step-header mb-6", e.headerClass])
197
- }, [
198
- p("h2", ke, U(e.tabs[l.value].title), 1),
199
- e.tabs[l.value].description ? (o(), d("p", xe, U(e.tabs[l.value].description), 1)) : c("", !0)
200
- ], 2)) : c("", !0),
201
- N(H, {
202
- schema: E.value,
203
- values: s(F),
204
- errors: s(b),
205
- variant: z.value,
206
- size: D.value,
207
- rounded: P.value,
208
- className: e.className,
209
- isUpdate: e.isUpdate,
210
- showRequiredAsterisk: q.value,
211
- isFieldVisible: s(A),
212
- isFieldDisabled: s(w),
213
- isFieldReadonly: s(T),
214
- onChange: B,
215
- onAddonAction: t[2] || (t[2] = (u) => m("onAddonAction", u))
216
- }, null, 8, ["schema", "values", "errors", "variant", "size", "rounded", "className", "isUpdate", "showRequiredAsterisk", "isFieldVisible", "isFieldDisabled", "isFieldReadonly"])
217
- ])) : c("", !0) : (o(), d("div", he, [
218
- N(H, {
219
- schema: e.schema,
220
- values: s(F),
221
- errors: s(b),
222
- variant: z.value,
223
- size: D.value,
224
- rounded: P.value,
225
- className: e.className,
226
- isUpdate: e.isUpdate,
227
- showRequiredAsterisk: q.value,
228
- isFieldVisible: s(A),
229
- isFieldDisabled: s(w),
230
- isFieldReadonly: s(T),
231
- onChange: B,
232
- onAddonAction: t[0] || (t[0] = (u) => m("onAddonAction", u))
233
- }, null, 8, ["schema", "values", "errors", "variant", "size", "rounded", "className", "isUpdate", "showRequiredAsterisk", "isFieldVisible", "isFieldDisabled", "isFieldReadonly"])
234
- ])),
235
- me(a.$slots, "default", {
236
- values: s(F),
237
- errors: s(b),
238
- isSubmitting: s(y),
239
- handleSubmit: V
240
- }, void 0, !0),
221
+ z(j, {
222
+ schema: O.value,
223
+ values: s(A),
224
+ errors: s(p),
225
+ variant: P.value,
226
+ size: q.value,
227
+ rounded: B.value,
228
+ className: e.className,
229
+ isUpdate: e.isUpdate,
230
+ showRequiredAsterisk: T.value,
231
+ isFieldVisible: s(R),
232
+ isFieldDisabled: s(N),
233
+ isFieldReadonly: s(E),
234
+ onChange: I,
235
+ onAddonAction: i[2] || (i[2] = (u) => m("onAddonAction", u))
236
+ }, null, 8, ["schema", "values", "errors", "variant", "size", "rounded", "className", "isUpdate", "showRequiredAsterisk", "isFieldVisible", "isFieldDisabled", "isFieldReadonly"])
237
+ ])) : c("", !0) : (o(), d("div", we, [
238
+ z(j, {
239
+ schema: e.schema,
240
+ values: s(A),
241
+ errors: s(p),
242
+ variant: P.value,
243
+ size: q.value,
244
+ rounded: B.value,
245
+ className: e.className,
246
+ isUpdate: e.isUpdate,
247
+ showRequiredAsterisk: T.value,
248
+ isFieldVisible: s(R),
249
+ isFieldDisabled: s(N),
250
+ isFieldReadonly: s(E),
251
+ onChange: I,
252
+ onAddonAction: i[0] || (i[0] = (u) => m("onAddonAction", u))
253
+ }, null, 8, ["schema", "values", "errors", "variant", "size", "rounded", "className", "isUpdate", "showRequiredAsterisk", "isFieldVisible", "isFieldDisabled", "isFieldReadonly"])
254
+ ])),
255
+ ke(t.$slots, "default", {
256
+ values: s(A),
257
+ errors: s(p),
258
+ isSubmitting: s(k),
259
+ handleSubmit: S
260
+ }, void 0, !0),
261
+ h("div", {
262
+ ref_key: "sentinelRef",
263
+ ref: K,
264
+ class: "form-scroll-sentinel h-px w-full",
265
+ "aria-hidden": "true"
266
+ }, null, 512)
267
+ ], 2),
241
268
  e.footer ? (o(), d("div", {
242
- key: 4,
269
+ key: 1,
270
+ ref_key: "footerRef",
271
+ ref: ie,
243
272
  class: g([
244
- "form-footer flex items-center gap-3",
273
+ "form-footer flex items-center gap-3 z-20",
245
274
  e.footerClass,
246
- n.value ? "justify-between" : "justify-end",
247
- O.value ? "sticky bottom-0 z-20 bg-body pt-3.5 border-t border-border/75 -mx-4 px-4 mt-8" : "mt-6"
275
+ r.value ? "justify-between" : "justify-end",
276
+ // Sticky positioning
277
+ b.value ? "sticky bottom-0 bg-background/95 backdrop-blur-sm pt-3 pb-2 -mx-0.5 px-0.5" : "mt-6",
278
+ // Inside modal: extend to modal edges and add top border always
279
+ H.value ? "-mx-4 px-4" : "",
280
+ // Shadow only while actually stuck (sentinel has scrolled out of view)
281
+ b.value && G.value ? "" : b.value ? "border-t border-transparent" : "",
282
+ // Non-sticky inside modal keeps the original border styling
283
+ !b.value && H.value ? "border-t border-border/75 mt-8" : "",
284
+ !b.value && !H.value ? "mt-6" : ""
248
285
  ])
249
286
  }, [
250
- p("div", Fe, [
251
- J.value ? (o(), S(C, {
287
+ h("div", Pe, [
288
+ ae.value ? (o(), C(x, {
252
289
  key: 0,
253
290
  type: "button",
254
291
  variant: "outline",
255
292
  text: e.cancelText,
256
- disabled: e.loading || s(y),
257
- onClick: ae
293
+ disabled: e.loading || s(k),
294
+ onClick: ve
258
295
  }, null, 8, ["text", "disabled"])) : c("", !0),
259
- n.value && e.isUpdate && !R.value ? (o(), S(C, $({
296
+ r.value && e.isUpdate && !V.value ? (o(), C(x, _({
260
297
  key: 1,
261
298
  type: "button",
262
299
  variant: "primary",
263
300
  text: e.submitText
264
301
  }, e.submitProps, {
265
- loading: e.loading || s(y),
266
- onClick: V
302
+ loading: e.loading || s(k),
303
+ onClick: S
267
304
  }), null, 16, ["text", "loading"])) : c("", !0)
268
305
  ]),
269
- p("div", {
270
- class: g(["flex items-center gap-3", n.value && "ml-auto"])
306
+ h("div", {
307
+ class: g(["flex items-center gap-3", r.value && "ml-auto"])
271
308
  }, [
272
- n.value && L.value ? (o(), S(C, {
309
+ r.value && J.value ? (o(), C(x, {
273
310
  key: 0,
274
311
  type: "button",
275
312
  variant: "outline",
276
313
  icon: "lucide:arrow-left",
277
314
  text: "Previous",
278
- onClick: ee
315
+ onClick: de
279
316
  })) : c("", !0),
280
- n.value && !R.value ? (o(), S(C, {
317
+ r.value && !V.value ? (o(), C(x, {
281
318
  key: 1,
282
319
  type: "button",
283
320
  variant: e.isUpdate ? "outline" : "primary",
284
321
  text: "Next",
285
322
  iconRight: "lucide:arrow-right",
286
- onClick: j
323
+ onClick: Q
287
324
  }, null, 8, ["variant"])) : c("", !0),
288
- !n.value || R.value ? (o(), S(C, $({
325
+ !r.value || V.value ? (o(), C(x, _({
289
326
  key: 2,
290
327
  type: "submit",
291
328
  variant: "primary",
292
329
  text: e.submitText
293
330
  }, e.submitProps, {
294
- loading: e.loading || s(y)
331
+ loading: e.loading || s(k)
295
332
  }), null, 16, ["text", "loading"])) : c("", !0)
296
333
  ], 2)
297
334
  ], 2)) : c("", !0)
298
- ], 34));
335
+ ], 42, Fe));
299
336
  }
300
337
  });
301
338
  export {
302
- qe as default
339
+ Ie as default
303
340
  };
@@ -12,6 +12,8 @@ interface Props {
12
12
  error?: string;
13
13
  isUpdate?: boolean;
14
14
  label?: string;
15
+ /** Whether the floating label is currently in the 'active' (raised) position */
16
+ floatingActive?: boolean;
15
17
  }
16
18
  declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
17
19
  change: (payload: IFormFieldChangePayload) => any;
@@ -29,5 +31,6 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
29
31
  error: string;
30
32
  disabled: boolean;
31
33
  isUpdate: boolean;
34
+ floatingActive: boolean;
32
35
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
33
36
  export default _default;