vlite3 0.6.1 → 0.6.4

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.
@@ -1,4 +1,4 @@
1
- import { defineComponent as v, computed as s, openBlock as l, createElementBlock as f, createElementVNode as g, normalizeClass as d, createVNode as w, Transition as C, withCtx as h, createBlock as o, createCommentVNode as r, createTextVNode as V, toDisplayString as z } from "vue";
1
+ import { defineComponent as v, computed as s, openBlock as l, createElementBlock as f, createElementVNode as g, normalizeClass as i, createVNode as w, Transition as C, withCtx as h, createBlock as o, createCommentVNode as r, createTextVNode as V, toDisplayString as z } from "vue";
2
2
  import p from "./Icon.vue.js";
3
3
  import B from "./Label.vue.js";
4
4
  import { $t as N } from "../utils/i18n.js";
@@ -23,8 +23,8 @@ const _ = { class: "flex items-center space-x-2" }, j = ["aria-checked", "data-s
23
23
  setup(t, { emit: b }) {
24
24
  const e = t, c = b, u = s(() => e.labelI18n ? N(e.labelI18n) : e.label), m = () => {
25
25
  if (e.disabled) return;
26
- const i = !(e.modelValue || e.checked);
27
- c("update:modelValue", i), c("update:checked", i);
26
+ const d = !(e.modelValue || e.checked);
27
+ c("update:modelValue", d), c("update:checked", d);
28
28
  }, k = {
29
29
  xs: "h-3.5 w-3.5",
30
30
  sm: "h-4 w-4",
@@ -37,7 +37,7 @@ const _ = { class: "flex items-center space-x-2" }, j = ["aria-checked", "data-s
37
37
  md: "h-3.5 w-3.5",
38
38
  lg: "h-4 w-4",
39
39
  xl: "h-5 w-5"
40
- }, x = {
40
+ }, y = {
41
41
  none: "rounded-none",
42
42
  xs: "rounded-[3px]",
43
43
  sm: "rounded-[4px]",
@@ -46,29 +46,30 @@ const _ = { class: "flex items-center space-x-2" }, j = ["aria-checked", "data-s
46
46
  xl: "rounded-lg",
47
47
  "2xl": "rounded-xl",
48
48
  full: "rounded-full"
49
- }, y = s(() => [
50
- "peer shrink-0 border border-primary transition-all duration-200 ease-in-out",
49
+ }, a = s(() => e.indeterminate ? "indeterminate" : e.modelValue || e.checked ? "checked" : "unchecked"), x = s(() => [
50
+ "peer shrink-0 border transition-all duration-200 ease-in-out",
51
51
  "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",
52
52
  "disabled:cursor-not-allowed disabled:opacity-50",
53
53
  "data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
54
54
  "data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground",
55
55
  "cursor-pointer bg-transparent",
56
56
  k[e.size],
57
- x[e.rounded || e.size],
57
+ y[e.rounded || e.size],
58
+ a.value === "checked" ? "border-primary!" : "border-gray-400!",
58
59
  e.class
59
- ].join(" ")), a = s(() => e.indeterminate ? "indeterminate" : e.modelValue || e.checked ? "checked" : "unchecked");
60
+ ].join(" "));
60
61
  return s(() => [
61
62
  "transition-transform duration-200",
62
63
  a.value === "checked" || a.value === "indeterminate" ? "scale-100" : "scale-0",
63
64
  n[e.size]
64
- ].join(" ")), (i, $) => (l(), f("div", _, [
65
+ ].join(" ")), (d, $) => (l(), f("div", _, [
65
66
  g("button", {
66
67
  type: "button",
67
68
  role: "checkbox",
68
69
  "aria-checked": t.indeterminate ? "mixed" : t.modelValue,
69
70
  "data-state": a.value,
70
71
  disabled: t.disabled,
71
- class: d(y.value),
72
+ class: i(x.value),
72
73
  id: t.id,
73
74
  onClick: m
74
75
  }, [
@@ -85,11 +86,11 @@ const _ = { class: "flex items-center space-x-2" }, j = ["aria-checked", "data-s
85
86
  a.value === "checked" ? (l(), o(p, {
86
87
  key: 0,
87
88
  icon: "lucide:check",
88
- class: d(n[t.size])
89
+ class: i(n[t.size])
89
90
  }, null, 8, ["class"])) : a.value === "indeterminate" ? (l(), o(p, {
90
91
  key: 1,
91
92
  icon: "lucide:minus",
92
- class: d(n[t.size])
93
+ class: i(n[t.size])
93
94
  }, null, 8, ["class"])) : r("", !0)
94
95
  ]),
95
96
  _: 1
@@ -1,5 +1,5 @@
1
- import o from "./ColorIro.vue.js";
2
- /* empty css */
1
+ import o from "./ColorIro.vue2.js";
2
+ /* empty css */
3
3
  export {
4
4
  o as default
5
5
  };
@@ -5,8 +5,8 @@ import O from "../Input.vue.js";
5
5
  /* empty css */
6
6
  import "../../core/config.js";
7
7
  import y from "../Button.vue.js";
8
- import E from "./ColorIro.vue.js";
9
- /* empty css */
8
+ import E from "./ColorIro.vue2.js";
9
+ /* empty css */
10
10
  import { useEyeDropper as P } from "@vueuse/core";
11
11
  const I = {
12
12
  key: 0,
@@ -1,7 +1,7 @@
1
1
  import t from "./CommandPaletteContent.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-6b4a4b96"]]);
4
+ const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-e919f56b"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -255,7 +255,7 @@ const se = { class: "command-palette-content flex flex-col w-full h-full max-h-[
255
255
  "aria-disabled": e.disabled || void 0,
256
256
  "data-active": x(r, l) === a.value,
257
257
  class: T(["command-palette-item w-full flex items-center gap-3 px-3! py-2.5 mx-1 rounded-lg text-sm transition-colors duration-100 text-left cursor-pointer select-none focus-visible:outline-none", [
258
- x(r, l) === a.value ? "bg-gray-200 text-foreground" : "text-muted-foreground hover:bg-muted/70 hover:text-foreground",
258
+ x(r, l) === a.value ? "bg-gray-200/80 text-foreground" : "text-muted-foreground hover:bg-muted/70 hover:text-foreground",
259
259
  e.disabled ? "opacity-40 cursor-not-allowed" : ""
260
260
  ]]),
261
261
  style: { width: "calc(100% - 8px)" },
@@ -265,7 +265,7 @@ const se = { class: "command-palette-content flex flex-col w-full h-full max-h-[
265
265
  s("span", {
266
266
  class: T([
267
267
  "shrink-0 flex items-center justify-center w-7 h-7 rounded-md",
268
- x(r, l) === a.value ? "bg-gray-300 text-primary" : "bg-muted/80 text-muted-foreground"
268
+ x(r, l) === a.value ? "bg-gray-300/80 text-gray-900" : "bg-muted/80 text-muted-foreground"
269
269
  ])
270
270
  }, [
271
271
  w(h, {
@@ -1,12 +1,12 @@
1
- import { defineComponent as G, ref as r, computed as h, watch as $, reactive as J, toRefs as K, openBlock as x, createElementBlock as Q, normalizeStyle as W, createVNode as k, unref as b, withCtx as u, renderSlot as f, createBlock as X, normalizeClass as Y, createSlots as Z, normalizeProps as H, guardReactiveProps as M, createCommentVNode as _ } from "vue";
2
- import ee from "v-tooltip-lite";
1
+ import { defineComponent as J, ref as s, computed as h, watch as $, provide as K, reactive as Q, toRefs as W, openBlock as A, createElementBlock as X, normalizeStyle as Y, createVNode as T, unref as O, withCtx as u, renderSlot as d, createBlock as Z, normalizeClass as _, createSlots as ee, normalizeProps as M, guardReactiveProps as H, createCommentVNode as te } from "vue";
2
+ import le from "v-tooltip-lite";
3
3
  import "v-tooltip-lite/style.css";
4
- import te from "./DropdownMenu.vue.js";
5
- import ne from "./DropdownTrigger.vue.js";
6
- import le from "../ConfirmationModal.vue.js";
7
- import { useDropdownIds as oe } from "./composables/useDropdownIds.js";
8
- import { useDropdownSelection as ae } from "./composables/useDropdownSelection.js";
9
- const ve = /* @__PURE__ */ G({
4
+ import ne from "./DropdownMenu.vue.js";
5
+ import oe from "./DropdownTrigger.vue.js";
6
+ import ae from "../ConfirmationModal.vue.js";
7
+ import { useDropdownIds as ie } from "./composables/useDropdownIds.js";
8
+ import { useDropdownSelection as se } from "./composables/useDropdownSelection.js";
9
+ const pe = /* @__PURE__ */ J({
10
10
  __name: "Dropdown",
11
11
  props: {
12
12
  selected: {},
@@ -45,47 +45,56 @@ const ve = /* @__PURE__ */ G({
45
45
  isNested: { type: Boolean, default: !1 }
46
46
  },
47
47
  emits: ["onSelect", "update:modelValue", "onOpen", "onClose", "update:isOpen", "load-more", "search"],
48
- setup(l, { emit: V }) {
49
- const o = l, p = V, g = r(!1), d = r(null), s = r({
48
+ setup(n, { emit: V }) {
49
+ const o = n, p = V, g = s(!1), f = s(null), r = s({
50
50
  title: "Confirm Selection",
51
51
  description: "Are you sure you want to select this option?",
52
52
  confirmText: "Confirm",
53
53
  cancelText: "Cancel",
54
54
  variant: "primary"
55
- }), A = h(() => o.position ? o.position : o.direction === "rtl" ? "bottom-end" : "bottom-start"), E = h(() => o.nestedPosition ? o.nestedPosition : o.direction === "rtl" ? "left-start" : "right-start"), O = r(o.isOpen || !1);
55
+ }), E = h(() => o.position ? o.position : o.direction === "rtl" ? "bottom-end" : "bottom-start"), L = h(() => o.nestedPosition ? o.nestedPosition : o.direction === "rtl" ? "left-start" : "right-start"), S = s(o.isOpen || !1), b = s(0);
56
56
  $(
57
57
  () => o.isOpen,
58
58
  (e) => {
59
- e !== void 0 && (O.value = e);
59
+ e !== void 0 && (S.value = e);
60
60
  }
61
61
  );
62
62
  const B = (e) => {
63
- O.value = e, p("update:isOpen", e), p(e ? "onOpen" : "onClose");
64
- }, C = h(() => o.options ? o.options.map((e) => typeof e == "string" || typeof e == "number" ? { label: String(e), value: String(e) } : e) : []), m = r([]);
63
+ S.value = e, p("update:isOpen", e), p(e ? "onOpen" : "onClose");
64
+ }, C = () => {
65
+ B(!1);
66
+ };
67
+ K("dropdown-context", {
68
+ close: C,
69
+ onChildToggle: (e) => {
70
+ e ? b.value++ : b.value = Math.max(0, b.value - 1);
71
+ }
72
+ });
73
+ const w = h(() => o.options ? o.options.map((e) => typeof e == "string" || typeof e == "number" ? { label: String(e), value: String(e) } : e) : []), m = s([]);
65
74
  $(
66
- C,
75
+ w,
67
76
  (e) => {
68
77
  if (e)
69
78
  if (o.remote) {
70
- const n = [...m.value];
79
+ const l = [...m.value];
71
80
  e.forEach((t) => {
72
- n.some((a) => a.value !== void 0 && t.value !== void 0 ? typeof a.value == "object" && a.key && t.key ? a.key === t.key && a.value[a.key] === t.value[t.key] : a.value === t.value : a.label === t.label) || n.push(t);
73
- }), m.value = n;
81
+ l.some((a) => a.value !== void 0 && t.value !== void 0 ? typeof a.value == "object" && a.key && t.key ? a.key === t.key && a.value[a.key] === t.value[t.key] : a.value === t.value : a.label === t.label) || l.push(t);
82
+ }), m.value = l;
74
83
  } else
75
84
  m.value = e;
76
85
  },
77
86
  { immediate: !0, deep: !0 }
78
87
  );
79
- const v = r(/* @__PURE__ */ new Map()), S = r(!1), L = async (e) => {
88
+ const v = s(/* @__PURE__ */ new Map()), k = s(!1), j = async (e) => {
80
89
  if (!o.fetchSelected || e === void 0 || e === null) return;
81
- let n = [];
82
- Array.isArray(e) ? n = e : typeof e == "object" ? n = Object.values(e) : n = [e];
83
- const t = n.filter((i) => {
84
- const a = v.value.has(i), N = m.value.some((c) => (c.value ?? c.label) === i);
85
- return !a && !N;
90
+ let l = [];
91
+ Array.isArray(e) ? l = e : typeof e == "object" ? l = Object.values(e) : l = [e];
92
+ const t = l.filter((i) => {
93
+ const a = v.value.has(i), x = m.value.some((c) => (c.value ?? c.label) === i);
94
+ return !a && !x;
86
95
  });
87
96
  if (t.length) {
88
- S.value = !0;
97
+ k.value = !0;
89
98
  try {
90
99
  (await o.fetchSelected(t)).forEach((a) => {
91
100
  v.value.set(a.value ?? a.label, a);
@@ -93,49 +102,58 @@ const ve = /* @__PURE__ */ G({
93
102
  } catch (i) {
94
103
  console.error("[Dropdown] Hydration failed:", i);
95
104
  } finally {
96
- S.value = !1;
105
+ k.value = !1;
97
106
  }
98
107
  }
99
108
  }, y = h(() => {
100
- const e = [...m.value], n = new Set(e.map((t) => t.value ?? t.label));
109
+ const e = [...m.value], l = new Set(e.map((t) => t.value ?? t.label));
101
110
  return v.value.forEach((t, i) => {
102
- n.has(i) || (e.unshift(t), n.add(i));
111
+ l.has(i) || (e.unshift(t), l.add(i));
103
112
  }), e;
104
- }), { getAllRecursiveIds: j } = oe(), z = J({
105
- ...K(o),
113
+ }), { getAllRecursiveIds: z } = ie(), D = Q({
114
+ ...W(o),
106
115
  options: y
107
- }), { currentValue: T, selectedLabel: P, selectOption: D } = ae(
108
- z,
116
+ }), { currentValue: P, selectedLabel: I, selectOption: R } = se(
117
+ D,
109
118
  p
110
- );
119
+ ), F = h(() => {
120
+ const e = o.ignoreClickOutside || [], l = z(y.value);
121
+ return [
122
+ .../* @__PURE__ */ new Set([
123
+ ...e,
124
+ ...l,
125
+ ".modal-body",
126
+ ".v-modal-overlay",
127
+ ".sidepanel-body",
128
+ ".v-sidepanel-overlay"
129
+ ])
130
+ ];
131
+ });
111
132
  $(
112
- () => T.value,
133
+ () => P.value,
113
134
  (e) => {
114
- L(e);
135
+ j(e);
115
136
  },
116
137
  { immediate: !0, deep: !0 }
117
138
  );
118
- const R = h(() => {
119
- const e = o.ignoreClickOutside || [], n = j(y.value);
120
- return [.../* @__PURE__ */ new Set([...e, ...n])];
121
- }), F = (e) => {
122
- o.doubleConfirmation || !!e.confirmation ? (d.value = e, typeof e.confirmation == "object" ? s.value = {
139
+ const U = (e) => {
140
+ o.doubleConfirmation || !!e.confirmation ? (f.value = e, typeof e.confirmation == "object" ? r.value = {
123
141
  title: e.confirmation.title || "Confirm Selection",
124
142
  description: e.confirmation.description || "Are you sure you want to select this option?",
125
143
  confirmText: e.confirmation.confirmText || "Confirm",
126
144
  cancelText: e.confirmation.cancelText || "Cancel",
127
145
  variant: e.confirmation.variant || "primary"
128
- } : s.value = {
146
+ } : r.value = {
129
147
  title: "Confirm Selection",
130
148
  description: `Are you sure you want to select "${e.label}"?`,
131
149
  confirmText: "Confirm",
132
150
  cancelText: "Cancel",
133
151
  variant: "primary"
134
- }, g.value = !0, w()) : (I(e), o.closeOnSelect && w());
135
- }, I = (e) => {
136
- const n = e.value ?? e.label;
137
- v.value.has(n) || v.value.set(n, e);
138
- const t = D(e);
152
+ }, g.value = !0, C()) : (N(e), o.closeOnSelect && C());
153
+ }, N = (e) => {
154
+ const l = e.value ?? e.label;
155
+ v.value.has(l) || v.value.set(l, e);
156
+ const t = R(e);
139
157
  if (!o.isNested) {
140
158
  const i = e._originalOption || e, a = i.value ?? i.label;
141
159
  (e._path || [i]).forEach((c) => {
@@ -147,117 +165,116 @@ const ve = /* @__PURE__ */ G({
147
165
  });
148
166
  });
149
167
  }
150
- }, U = () => {
151
- d.value && (I(d.value), d.value = null, g.value = !1);
152
168
  }, q = () => {
153
- d.value = null, g.value = !1;
154
- }, w = () => {
155
- B(!1);
169
+ f.value && (N(f.value), f.value = null, g.value = !1);
170
+ }, G = () => {
171
+ f.value = null, g.value = !1;
156
172
  };
157
- return (e, n) => (x(), Q("div", {
173
+ return (e, l) => (A(), X("div", {
158
174
  class: "relative inline-block text-left",
159
- style: W({ direction: l.direction })
175
+ style: Y({ direction: n.direction })
160
176
  }, [
161
- k(b(ee), {
177
+ T(O(le), {
162
178
  content: "",
163
179
  trigger: "click",
164
180
  arrow: !1,
165
- teleport: l.teleport,
166
- offset: l.offset,
167
- placement: A.value,
168
- isOpen: O.value,
169
- menuId: l.menuId,
170
- ignoreClickOutside: R.value,
181
+ teleport: n.teleport,
182
+ offset: n.offset,
183
+ placement: E.value,
184
+ isOpen: S.value,
185
+ keepAlive: b.value > 0,
186
+ menuId: n.menuId,
187
+ ignoreClickOutside: F.value,
171
188
  class: "w-full",
172
- className: "dropdown " + (l.className || ""),
173
- onOnShow: n[2] || (n[2] = (t) => e.$emit("onOpen")),
174
- onOnHide: n[3] || (n[3] = (t) => e.$emit("onClose")),
189
+ className: "dropdown " + (n.className || ""),
190
+ onOnShow: l[2] || (l[2] = (t) => e.$emit("onOpen")),
191
+ onOnHide: l[3] || (l[3] = (t) => e.$emit("onClose")),
175
192
  "onUpdate:isOpen": B,
176
193
  triggerClass: "w-full",
177
194
  styles: { padding: "0" }
178
195
  }, {
179
196
  trigger: u(({ isOpen: t }) => [
180
- f(e.$slots, "trigger", H(M({ selectedLabel: b(P), isOpen: t })), () => [
181
- k(ne, {
182
- "selected-label": b(P),
197
+ d(e.$slots, "trigger", M(H({ selectedLabel: O(I), isOpen: t })), () => [
198
+ T(oe, {
199
+ "selected-label": O(I),
183
200
  "is-open": t,
184
- direction: l.direction,
185
- triggerProps: l.triggerProps,
201
+ direction: n.direction,
202
+ triggerProps: n.triggerProps,
186
203
  class: "w-full"
187
204
  }, null, 8, ["selected-label", "is-open", "direction", "triggerProps"])
188
205
  ])
189
206
  ]),
190
207
  default: u(() => [
191
- f(e.$slots, "default"),
192
- C.value.length || y.value.length || e.$slots.menu || e.$slots.item || l.remote || l.searchable ? (x(), X(te, {
208
+ d(e.$slots, "default"),
209
+ w.value.length || y.value.length || e.$slots.menu || e.$slots.item || n.remote || n.searchable ? (A(), Z(ne, {
193
210
  key: 0,
194
- options: C.value,
211
+ options: w.value,
195
212
  cachedOptions: y.value,
196
- class: Y(l.className),
197
- selected: b(T),
198
- selectedIndex: l.selectedIndex,
199
- maxHeight: l.maxHeight,
200
- nestedPosition: E.value,
201
- nestedOffset: l.nestedOffset,
202
- selectable: l.selectable,
203
- direction: l.direction,
204
- layout: l.layout,
205
- columns: l.columns,
206
- loading: l.loading || S.value,
207
- hasMore: l.hasMore,
208
- searchable: l.searchable,
209
- remote: l.remote,
210
- debounceTime: l.debounceTime,
211
- onSelect: F,
212
- onClose: w,
213
- onLoadMore: n[0] || (n[0] = (t) => e.$emit("load-more")),
214
- onSearch: n[1] || (n[1] = (t) => e.$emit("search", t))
215
- }, Z({ _: 2 }, [
213
+ class: _(n.className),
214
+ selected: O(P),
215
+ selectedIndex: n.selectedIndex,
216
+ maxHeight: n.maxHeight,
217
+ nestedPosition: L.value,
218
+ nestedOffset: n.nestedOffset,
219
+ selectable: n.selectable,
220
+ direction: n.direction,
221
+ layout: n.layout,
222
+ columns: n.columns,
223
+ loading: n.loading || k.value,
224
+ hasMore: n.hasMore,
225
+ searchable: n.searchable,
226
+ remote: n.remote,
227
+ debounceTime: n.debounceTime,
228
+ onSelect: U,
229
+ onClose: C,
230
+ onLoadMore: l[0] || (l[0] = (t) => e.$emit("load-more")),
231
+ onSearch: l[1] || (l[1] = (t) => e.$emit("search", t))
232
+ }, ee({ _: 2 }, [
216
233
  e.$slots.menu ? {
217
234
  name: "menu",
218
235
  fn: u(() => [
219
- f(e.$slots, "menu")
236
+ d(e.$slots, "menu")
220
237
  ]),
221
238
  key: "0"
222
239
  } : void 0,
223
240
  e.$slots.item ? {
224
241
  name: "item",
225
242
  fn: u((t) => [
226
- f(e.$slots, "item", H(M(t)))
243
+ d(e.$slots, "item", M(H(t)))
227
244
  ]),
228
245
  key: "1"
229
246
  } : void 0,
230
247
  e.$slots.header ? {
231
248
  name: "header",
232
249
  fn: u(() => [
233
- f(e.$slots, "header")
250
+ d(e.$slots, "header")
234
251
  ]),
235
252
  key: "2"
236
253
  } : void 0,
237
254
  e.$slots.footer ? {
238
255
  name: "footer",
239
256
  fn: u(() => [
240
- f(e.$slots, "footer")
257
+ d(e.$slots, "footer")
241
258
  ]),
242
259
  key: "3"
243
260
  } : void 0
244
- ]), 1032, ["options", "cachedOptions", "class", "selected", "selectedIndex", "maxHeight", "nestedPosition", "nestedOffset", "selectable", "direction", "layout", "columns", "loading", "hasMore", "searchable", "remote", "debounceTime"])) : _("", !0)
261
+ ]), 1032, ["options", "cachedOptions", "class", "selected", "selectedIndex", "maxHeight", "nestedPosition", "nestedOffset", "selectable", "direction", "layout", "columns", "loading", "hasMore", "searchable", "remote", "debounceTime"])) : te("", !0)
245
262
  ]),
246
263
  _: 3
247
- }, 8, ["teleport", "offset", "placement", "isOpen", "menuId", "ignoreClickOutside", "className"]),
248
- k(le, {
264
+ }, 8, ["teleport", "offset", "placement", "isOpen", "keepAlive", "menuId", "ignoreClickOutside", "className"]),
265
+ T(ae, {
249
266
  show: g.value,
250
- title: s.value.title,
251
- description: s.value.description,
252
- "confirm-text": s.value.confirmText,
253
- "cancel-text": s.value.cancelText,
254
- variant: s.value.variant,
255
- onConfirm: U,
256
- onCancel: q
267
+ title: r.value.title,
268
+ description: r.value.description,
269
+ "confirm-text": r.value.confirmText,
270
+ "cancel-text": r.value.cancelText,
271
+ variant: r.value.variant,
272
+ onConfirm: q,
273
+ onCancel: G
257
274
  }, null, 8, ["show", "title", "description", "confirm-text", "cancel-text", "variant"])
258
275
  ], 4));
259
276
  }
260
277
  });
261
278
  export {
262
- ve as default
279
+ pe as default
263
280
  };
@@ -1,52 +1,29 @@
1
1
  import { IForm, IFormStep, IFormSubmitPayload } from './types';
2
2
  import { InputVariant, InputSize, InputRounded, TimelineTextPosition, ButtonProps } from '../../types';
3
3
  interface Props {
4
- /** Schema - single array or grouped arrays */
5
4
  schema: IForm[] | IForm[][];
6
- /** Initial/bound values */
7
5
  values?: Record<string, any>;
8
- /** Input variant applied to all fields */
9
6
  variant?: InputVariant;
10
- /** Input size applied to all fields */
11
7
  size?: InputSize;
12
- /** Input rounded applied to all fields */
13
8
  rounded?: InputRounded;
14
- /** Loading state during submit */
15
9
  loading?: boolean;
16
- /** Show/hide default footer with submit button */
17
10
  footer?: boolean;
18
- /** Headings for grouped schemas */
19
11
  groupsHeadings?: string[];
20
- /** Descriptions for grouped schemas */
21
12
  groupHeadingsDescription?: string[];
22
- /** Timeline steps for multi-step form mode */
23
13
  tabs?: IFormStep[];
24
- /** Submit button text */
25
14
  submitText?: string;
26
15
  submitProps?: ButtonProps;
27
- /** Cancel button text */
28
16
  cancelText?: string;
29
- /** Show cancel button */
30
17
  showCancel?: boolean;
31
- /** Whether this is an update operation */
32
18
  isUpdate?: boolean;
33
- /** Folder ID for file uploads */
34
19
  folderId?: string;
35
- /** Custom class for form element */
36
20
  class?: string;
37
- /** Custom class for the grid layout (overrides columns) */
38
21
  className?: string;
39
- /** Custom class for group containers */
40
22
  groupClass?: string;
41
- /** Custom class for group/step headers */
42
23
  headerClass?: string;
43
- /** Custom class for the footer area */
44
24
  footerClass?: string;
45
- /** Timeline text position */
46
25
  timelineTextPosition?: TimelineTextPosition;
47
- /** Fields to explicitly include in the submit payload */
48
26
  emitFields?: string[];
49
- /** Show asterisk for required fields */
50
27
  showRequiredAsterisk?: boolean;
51
28
  }
52
29
  declare function __VLS_template(): {
@@ -1,7 +1,7 @@
1
1
  import o from "./Form.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-655cd96c"]]);
4
+ const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-78f87e2c"]]);
5
5
  export {
6
6
  p as default
7
7
  };