vlite3 0.7.15 → 0.8.2

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