vlite3 1.3.11 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Accordion/Accordion.vue.d.ts +2 -2
- package/components/Accordion/AccordionItem.vue.d.ts +1 -1
- package/components/Accordion/AccordionItem.vue.js +11 -7
- package/components/Accordion/AccordionTrigger.vue.d.ts +1 -1
- package/components/CategoryManager/CategoryManager.vue2.js +36 -32
- package/components/ColorPicker/ColorIro.vue3.js +2 -2
- package/components/ColorPicker/ColorPicker.vue.js +2 -2
- package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
- package/components/CommandPalette/{CommandPaletteItem.vue.js → CommandPaletteItem.vue2.js} +1 -1
- package/components/Form/Form.vue.d.ts +13 -1
- package/components/Form/Form.vue.js +2 -2
- package/components/Form/Form.vue2.js +313 -275
- package/components/Form/FormField.vue.js +108 -82
- package/components/Form/FormFields.vue.js +2 -2
- package/components/Form/FormFields.vue2.js +7 -6
- package/components/Form/composables/useForm.js +71 -67
- package/components/Form/types.d.ts +21 -1
- package/components/NavbarCommandPalette.vue.d.ts +1 -1
- package/components/NavbarCommandPalette.vue.js +1 -1
- package/components/RichTextEditor/RichTextEditor.vue.js +43 -48
- package/components/RichTextEditor/RichTextLinkPopover.vue3.js +2 -2
- package/components/RichTextEditor/RichTextToolbar.vue.d.ts +12 -3
- package/components/RichTextEditor/{RichTextToolbar.vue.js → RichTextToolbar.vue2.js} +157 -121
- package/components/RichTextEditor/RichTextToolbar.vue3.js +2 -2
- package/components/RichTextEditor/index.d.ts +2 -0
- package/components/RichTextEditor/types.d.ts +38 -0
- package/components/RichTextEditor/types.js +52 -0
- package/components/Screen/ScreenFilter.vue.js +16 -12
- package/components/SidebarMenu/SidebarMenu.vue.d.ts +2 -2
- package/components/Workbook/Sheet.vue.d.ts +1 -1
- package/index.js +298 -295
- package/package.json +1 -1
- package/style.css +2 -2
- /package/components/ColorPicker/{ColorIro.vue.js → ColorIro.vue2.js} +0 -0
- /package/components/RichTextEditor/{RichTextLinkPopover.vue.js → RichTextLinkPopover.vue2.js} +0 -0
|
@@ -29,10 +29,10 @@ declare const __VLS_component: import('vue').DefineComponent<AccordionProps, {},
|
|
|
29
29
|
variant: import('./types').AccordionVariant;
|
|
30
30
|
size: import('./types').AccordionSize;
|
|
31
31
|
disabled: boolean;
|
|
32
|
-
attached: boolean;
|
|
33
|
-
items: import('./types').AccordionItemSchema[];
|
|
34
32
|
showIndex: boolean;
|
|
35
33
|
iconVariant: import('./types').IconVariant;
|
|
34
|
+
attached: boolean;
|
|
35
|
+
items: import('./types').AccordionItemSchema[];
|
|
36
36
|
allowMultiple: boolean;
|
|
37
37
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
38
38
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -44,8 +44,8 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
44
44
|
variant: AccordionVariant;
|
|
45
45
|
size: AccordionSize;
|
|
46
46
|
disabled: boolean;
|
|
47
|
-
attached: boolean;
|
|
48
47
|
showIndex: boolean;
|
|
48
|
+
attached: boolean;
|
|
49
49
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
50
50
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
51
51
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, computed as r, openBlock as c, createElementBlock as m, normalizeClass as u, renderSlot as f, createVNode as p, withCtx as
|
|
1
|
+
import { defineComponent as B, computed as r, openBlock as c, createElementBlock as m, normalizeClass as u, renderSlot as f, createVNode as p, withCtx as x, createElementVNode as V, toDisplayString as v, createCommentVNode as $, withDirectives as O, createBlock as T, resolveDynamicComponent as A, vShow as D } from "vue";
|
|
2
2
|
import P from "./AccordionTrigger.vue.js";
|
|
3
3
|
import N from "./AccordionContent.vue.js";
|
|
4
4
|
import { $t as h } from "../../utils/i18n.js";
|
|
@@ -38,7 +38,7 @@ const S = { class: "font-medium" }, E = {
|
|
|
38
38
|
md: "px-4 py-3 text-base",
|
|
39
39
|
lg: "px-5 py-4 text-lg"
|
|
40
40
|
}[a];
|
|
41
|
-
return t === "solid" ? `${i} ${s} bg-
|
|
41
|
+
return t === "solid" ? `${i} ${s} bg-card ${o}` : t === "ghost" ? d ? `${i} ${s} bg-muted font-medium ${o}` : `${i} ${s} hover:bg-muted/20 bg-transparent ${o}` : t === "outline" || t === "separated" ? d ? `${i} ${s} bg-muted/5 border-b border-border ${o}` : `${i} ${s} hover:bg-muted/5 bg-transparent ${o}` : !n.attached && t === "default" ? `${i} ${{
|
|
42
42
|
sm: "py-2 text-base",
|
|
43
43
|
md: "py-3 text-base",
|
|
44
44
|
lg: "py-4 text-lg"
|
|
@@ -54,7 +54,11 @@ const S = { class: "font-medium" }, E = {
|
|
|
54
54
|
md: "pb-4 pt-4 text-sm",
|
|
55
55
|
lg: "pb-5 pt-5 text-base"
|
|
56
56
|
}[a]} px-0`;
|
|
57
|
-
}), k = r(
|
|
57
|
+
}), k = r(
|
|
58
|
+
() => n.item.titleI18n ? h(n.item.titleI18n) : n.item.title
|
|
59
|
+
), b = r(
|
|
60
|
+
() => n.item.descriptionI18n ? h(n.item.descriptionI18n) : n.item.description
|
|
61
|
+
);
|
|
58
62
|
return (t, a) => (c(), m("div", {
|
|
59
63
|
class: u([I.value, n.class, n.itemClass])
|
|
60
64
|
}, [
|
|
@@ -78,9 +82,9 @@ const S = { class: "font-medium" }, E = {
|
|
|
78
82
|
class: u(g.value),
|
|
79
83
|
onClick: l
|
|
80
84
|
}, {
|
|
81
|
-
default:
|
|
82
|
-
V("span", S,
|
|
83
|
-
b.value ? (c(), m("span", E,
|
|
85
|
+
default: x(() => [
|
|
86
|
+
V("span", S, v(k.value), 1),
|
|
87
|
+
b.value ? (c(), m("span", E, v(b.value), 1)) : $("", !0)
|
|
84
88
|
]),
|
|
85
89
|
_: 1
|
|
86
90
|
}, 8, ["open", "size", "disabled", "icon", "index", "show-index", "open-icon", "close-icon", "icon-variant", "active-icon-variant", "class"])
|
|
@@ -88,7 +92,7 @@ const S = { class: "font-medium" }, E = {
|
|
|
88
92
|
O(p(N, {
|
|
89
93
|
class: u(w.value)
|
|
90
94
|
}, {
|
|
91
|
-
default:
|
|
95
|
+
default: x(() => [
|
|
92
96
|
f(t.$slots, "content", {
|
|
93
97
|
item: e.item,
|
|
94
98
|
close: l
|
|
@@ -30,9 +30,9 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
|
|
|
30
30
|
}>, {
|
|
31
31
|
class: string;
|
|
32
32
|
size: AccordionSize;
|
|
33
|
-
chevron: boolean;
|
|
34
33
|
showIndex: boolean;
|
|
35
34
|
iconVariant: IconVariant;
|
|
35
|
+
chevron: boolean;
|
|
36
36
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLButtonElement>;
|
|
37
37
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
38
38
|
export default _default;
|
|
@@ -16,11 +16,15 @@ import "v-datepicker-lite";
|
|
|
16
16
|
import "v-datepicker-lite/style.css";
|
|
17
17
|
import "@jaames/iro";
|
|
18
18
|
import "@vueuse/core";
|
|
19
|
-
/* empty css
|
|
19
|
+
/* empty css */
|
|
20
20
|
import Ue from "../IconPicker.vue.js";
|
|
21
21
|
/* empty css */
|
|
22
|
-
/* empty css
|
|
22
|
+
/* empty css */
|
|
23
|
+
/* empty css */
|
|
24
|
+
/* empty css */
|
|
23
25
|
import "../../core/config.js";
|
|
26
|
+
/* empty css */
|
|
27
|
+
/* empty css */
|
|
24
28
|
import { getUniqueId as _ } from "../../utils/functions.js";
|
|
25
29
|
const ze = { class: "flex items-center justify-between mb-6" }, Oe = { class: "text-lg font-bold text-foreground" }, $e = { class: "text-sm text-muted-foreground mt-0.5" }, Fe = {
|
|
26
30
|
key: 0,
|
|
@@ -38,7 +42,7 @@ const ze = { class: "flex items-center justify-between mb-6" }, Oe = { class: "t
|
|
|
38
42
|
}, Le = {
|
|
39
43
|
key: 0,
|
|
40
44
|
class: "absolute inset-0 z-10 flex items-center justify-center rounded-xl bg-background/60 backdrop-blur-[1px] transition-opacity"
|
|
41
|
-
}, We = { class: "flex items-center gap-2 text-sm text-muted-foreground" },
|
|
45
|
+
}, We = { class: "flex items-center gap-2 text-sm text-muted-foreground" }, St = /* @__PURE__ */ Ce({
|
|
42
46
|
__name: "CategoryManager",
|
|
43
47
|
props: {
|
|
44
48
|
modelValue: { default: () => [] },
|
|
@@ -87,7 +91,7 @@ const ze = { class: "flex items-center justify-between mb-6" }, Oe = { class: "t
|
|
|
87
91
|
},
|
|
88
92
|
emits: ["update:modelValue", "onAdd", "onEdit", "onDelete", "onReorder"],
|
|
89
93
|
setup(S, { expose: L, emit: W }) {
|
|
90
|
-
const e = S, f = W, d = I([]),
|
|
94
|
+
const e = S, f = W, d = I([]), p = I(/* @__PURE__ */ new Set()), v = (o) => JSON.parse(JSON.stringify(o)), T = (o, t = null) => {
|
|
91
95
|
o.forEach((a, i) => {
|
|
92
96
|
a.parentId = t, a.position = i, a.children || (a.children = []), T(a.children, a.id);
|
|
93
97
|
});
|
|
@@ -125,7 +129,7 @@ const ze = { class: "flex items-center justify-between mb-6" }, Oe = { class: "t
|
|
|
125
129
|
(o) => {
|
|
126
130
|
if (o) {
|
|
127
131
|
if (o.length === 0) {
|
|
128
|
-
d.value = [],
|
|
132
|
+
d.value = [], p.value = /* @__PURE__ */ new Set(), f("update:modelValue", []);
|
|
129
133
|
return;
|
|
130
134
|
}
|
|
131
135
|
const t = X(o);
|
|
@@ -133,9 +137,9 @@ const ze = { class: "flex items-center justify-between mb-6" }, Oe = { class: "t
|
|
|
133
137
|
const a = JSON.stringify(t), i = JSON.stringify(d.value);
|
|
134
138
|
if (a !== i) {
|
|
135
139
|
const r = z(t), n = new Set(
|
|
136
|
-
[...
|
|
140
|
+
[...p.value].filter((g) => r.has(g))
|
|
137
141
|
);
|
|
138
|
-
|
|
142
|
+
p.value = n;
|
|
139
143
|
const u = v(t);
|
|
140
144
|
d.value = u, f("update:modelValue", u);
|
|
141
145
|
}
|
|
@@ -158,8 +162,8 @@ const ze = { class: "flex items-center justify-between mb-6" }, Oe = { class: "t
|
|
|
158
162
|
const o = v(d.value);
|
|
159
163
|
f("update:modelValue", o);
|
|
160
164
|
}, Y = (o) => {
|
|
161
|
-
const t = new Set(
|
|
162
|
-
t.has(o) ? t.delete(o) : t.add(o),
|
|
165
|
+
const t = new Set(p.value);
|
|
166
|
+
t.has(o) ? t.delete(o) : t.add(o), p.value = t;
|
|
163
167
|
}, y = I({
|
|
164
168
|
mode: null,
|
|
165
169
|
targetId: null,
|
|
@@ -171,7 +175,7 @@ const ze = { class: "flex items-center justify-between mb-6" }, Oe = { class: "t
|
|
|
171
175
|
targetId: o === "add-child" && t || null,
|
|
172
176
|
title: "",
|
|
173
177
|
icon: "lucide:folder"
|
|
174
|
-
}, o === "add-child" && t &&
|
|
178
|
+
}, o === "add-child" && t && p.value.add(t);
|
|
175
179
|
}, D = () => {
|
|
176
180
|
y.value = { mode: null, targetId: null, title: "", icon: "lucide:folder" };
|
|
177
181
|
}, V = () => {
|
|
@@ -183,8 +187,8 @@ const ze = { class: "flex items-center justify-between mb-6" }, Oe = { class: "t
|
|
|
183
187
|
n = { id: _(), title: a, icon: i, children: [] }, r.push(n);
|
|
184
188
|
else if (o === "add-child") {
|
|
185
189
|
n = { id: _(), title: a, icon: i, children: [] };
|
|
186
|
-
const u = (
|
|
187
|
-
for (const c of
|
|
190
|
+
const u = (g) => {
|
|
191
|
+
for (const c of g) {
|
|
188
192
|
if (c.id === t)
|
|
189
193
|
return c.children || (c.children = []), c.children.push(n), !0;
|
|
190
194
|
if (c.children && u(c.children)) return !0;
|
|
@@ -207,21 +211,21 @@ const ze = { class: "flex items-center justify-between mb-6" }, Oe = { class: "t
|
|
|
207
211
|
const n = { id: _(), children: [], ...t };
|
|
208
212
|
a.push(n), i = n, r = "onAdd";
|
|
209
213
|
} else if (x.value === "add-child") {
|
|
210
|
-
const n = { id: _(), children: [], ...t }, u = (
|
|
211
|
-
for (const c of
|
|
214
|
+
const n = { id: _(), children: [], ...t }, u = (g) => {
|
|
215
|
+
for (const c of g) {
|
|
212
216
|
if (c.id === O.value)
|
|
213
|
-
return c.children || (c.children = []), c.children.push(n),
|
|
217
|
+
return c.children || (c.children = []), c.children.push(n), p.value.add(c.id), !0;
|
|
214
218
|
if (c.children && u(c.children)) return !0;
|
|
215
219
|
}
|
|
216
220
|
return !1;
|
|
217
221
|
};
|
|
218
222
|
u(a), i = n, r = "onAdd";
|
|
219
223
|
} else if (x.value === "edit" && q.value) {
|
|
220
|
-
const n = q.value.id, u = (
|
|
221
|
-
const c =
|
|
224
|
+
const n = q.value.id, u = (g) => {
|
|
225
|
+
const c = g.findIndex((k) => k.id === n);
|
|
222
226
|
if (c > -1)
|
|
223
|
-
return
|
|
224
|
-
for (const k of
|
|
227
|
+
return g[c] = { ...g[c], ...t }, i = g[c], !0;
|
|
228
|
+
for (const k of g)
|
|
225
229
|
if (k.children && u(k.children)) return !0;
|
|
226
230
|
return !1;
|
|
227
231
|
};
|
|
@@ -286,7 +290,7 @@ const ze = { class: "flex items-center justify-between mb-6" }, Oe = { class: "t
|
|
|
286
290
|
if (e.headerTitle) return e.headerTitle;
|
|
287
291
|
const o = l("vlite.categoryManager.headerTitle");
|
|
288
292
|
return o !== "vlite.categoryManager.headerTitle" ? o : "Categories";
|
|
289
|
-
}),
|
|
293
|
+
}), pe = s(() => {
|
|
290
294
|
if (e.headerDescriptionI18n) {
|
|
291
295
|
const t = l(e.headerDescriptionI18n);
|
|
292
296
|
if (t !== e.headerDescriptionI18n) return t;
|
|
@@ -294,7 +298,7 @@ const ze = { class: "flex items-center justify-between mb-6" }, Oe = { class: "t
|
|
|
294
298
|
if (e.headerDescription) return e.headerDescription;
|
|
295
299
|
const o = l("vlite.categoryManager.headerDescription");
|
|
296
300
|
return o !== "vlite.categoryManager.headerDescription" ? o : "Manage your hierarchical structure.";
|
|
297
|
-
}),
|
|
301
|
+
}), ge = s(() => {
|
|
298
302
|
if (e.addCategoryTextI18n) {
|
|
299
303
|
const t = l(e.addCategoryTextI18n);
|
|
300
304
|
if (t !== e.addCategoryTextI18n) return t;
|
|
@@ -344,7 +348,7 @@ const ze = { class: "flex items-center justify-between mb-6" }, Oe = { class: "t
|
|
|
344
348
|
return o !== "vlite.categoryManager.categoryTitlePlaceholder" ? o : "Category title...";
|
|
345
349
|
}), Te = s(() => e.quickAddTooltipI18n ? l(e.quickAddTooltipI18n) : e.quickAddTooltip ? e.quickAddTooltip : l("vlite.categoryManager.quickAddTooltip") !== "vlite.categoryManager.quickAddTooltip" ? l("vlite.categoryManager.quickAddTooltip") : "Quick Add Subcategory"), Ie = s(() => e.advancedDetailsTooltipI18n ? l(e.advancedDetailsTooltipI18n) : e.advancedDetailsTooltip ? e.advancedDetailsTooltip : l("vlite.categoryManager.advancedDetailsTooltip") !== "vlite.categoryManager.advancedDetailsTooltip" ? l("vlite.categoryManager.advancedDetailsTooltip") : "Advanced Details"), xe = s(() => e.deleteTooltipI18n ? l(e.deleteTooltipI18n) : e.deleteTooltip ? e.deleteTooltip : l("vlite.categoryManager.deleteTooltip") !== "vlite.categoryManager.deleteTooltip" ? l("vlite.categoryManager.deleteTooltip") : "Delete"), F = s(() => e.saveTooltipI18n ? l(e.saveTooltipI18n) : e.saveTooltip ? e.saveTooltip : l("vlite.categoryManager.saveTooltip") !== "vlite.categoryManager.saveTooltip" ? l("vlite.categoryManager.saveTooltip") : "Save"), J = s(() => e.cancelTooltipI18n ? l(e.cancelTooltipI18n) : e.cancelTooltip ? e.cancelTooltip : l("vlite.categoryManager.cancelTooltip") !== "vlite.categoryManager.cancelTooltip" ? l("vlite.categoryManager.cancelTooltip") : "Cancel");
|
|
346
350
|
De("categoryManager", {
|
|
347
|
-
expandedIds:
|
|
351
|
+
expandedIds: p,
|
|
348
352
|
inlineState: y,
|
|
349
353
|
toggleExpand: Y,
|
|
350
354
|
startInline: N,
|
|
@@ -369,20 +373,20 @@ const ze = { class: "flex items-center justify-between mb-6" }, Oe = { class: "t
|
|
|
369
373
|
}
|
|
370
374
|
}, we = () => {
|
|
371
375
|
const o = z(d.value);
|
|
372
|
-
|
|
376
|
+
p.value = o;
|
|
373
377
|
}, Me = () => {
|
|
374
|
-
|
|
378
|
+
p.value = /* @__PURE__ */ new Set();
|
|
375
379
|
}, B = (...o) => {
|
|
376
|
-
const t = new Set(
|
|
377
|
-
o.forEach((a) => t.add(a)),
|
|
380
|
+
const t = new Set(p.value);
|
|
381
|
+
o.forEach((a) => t.add(a)), p.value = t;
|
|
378
382
|
}, Se = (...o) => {
|
|
379
|
-
const t = new Set(
|
|
380
|
-
o.forEach((a) => t.delete(a)),
|
|
383
|
+
const t = new Set(p.value);
|
|
384
|
+
o.forEach((a) => t.delete(a)), p.value = t;
|
|
381
385
|
};
|
|
382
386
|
return Ae(() => {
|
|
383
387
|
e.defaultExpanded && e.defaultExpanded.length > 0 && B(...e.defaultExpanded);
|
|
384
388
|
}), L({
|
|
385
|
-
expandedIds:
|
|
389
|
+
expandedIds: p,
|
|
386
390
|
expandAll: we,
|
|
387
391
|
collapseAll: Me,
|
|
388
392
|
expand: B,
|
|
@@ -394,7 +398,7 @@ const ze = { class: "flex items-center justify-between mb-6" }, Oe = { class: "t
|
|
|
394
398
|
Pe(o.$slots, "header", {}, () => [
|
|
395
399
|
m("div", null, [
|
|
396
400
|
m("h3", Oe, w(ue.value), 1),
|
|
397
|
-
m("p", $e, w(
|
|
401
|
+
m("p", $e, w(pe.value), 1)
|
|
398
402
|
]),
|
|
399
403
|
S.readonly ? E("", !0) : (b(), G(R, {
|
|
400
404
|
key: 0,
|
|
@@ -404,7 +408,7 @@ const ze = { class: "flex items-center justify-between mb-6" }, Oe = { class: "t
|
|
|
404
408
|
onClick: t[0] || (t[0] = (a) => N("add-root"))
|
|
405
409
|
}, {
|
|
406
410
|
default: P(() => [
|
|
407
|
-
H(w(
|
|
411
|
+
H(w(ge.value), 1)
|
|
408
412
|
]),
|
|
409
413
|
_: 1
|
|
410
414
|
}))
|
|
@@ -513,5 +517,5 @@ const ze = { class: "flex items-center justify-between mb-6" }, Oe = { class: "t
|
|
|
513
517
|
}
|
|
514
518
|
});
|
|
515
519
|
export {
|
|
516
|
-
|
|
520
|
+
St as default
|
|
517
521
|
};
|
|
@@ -6,8 +6,8 @@ import O from "../Input.vue.js";
|
|
|
6
6
|
import "../../core/config.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
import y from "../Button.vue.js";
|
|
9
|
-
import E from "./ColorIro.
|
|
10
|
-
/* empty css
|
|
9
|
+
import E from "./ColorIro.vue2.js";
|
|
10
|
+
/* empty css */
|
|
11
11
|
import { useEyeDropper as P } from "@vueuse/core";
|
|
12
12
|
const I = {
|
|
13
13
|
key: 0,
|
|
@@ -4,7 +4,7 @@ import k from "../Icon.vue.js";
|
|
|
4
4
|
import { $t as E } from "../../utils/i18n.js";
|
|
5
5
|
import { useCommandPaletteItems as Y } from "./useCommandPaletteItems.js";
|
|
6
6
|
import { useCommandPaletteNav as Z } from "./useCommandPaletteNav.js";
|
|
7
|
-
import ee from "./CommandPaletteItem.
|
|
7
|
+
import ee from "./CommandPaletteItem.vue2.js";
|
|
8
8
|
const te = { class: "command-palette-content flex flex-col w-full h-full max-h-[70vh]" }, oe = { class: "flex items-center gap-3 px-4 py-3 border-b border-border/80 shrink-0" }, se = ["placeholder"], ne = ["aria-label"], re = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "flex flex-col items-center justify-center py-14 px-6 text-center select-none",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IForm, IFormStep, IFormSubmitPayload, IFormGroupsHeadings } from './types';
|
|
1
|
+
import { IForm, IFormStep, IFormSubmitPayload, IFormGroupsHeadings, IFormGroupLayout } from './types';
|
|
2
2
|
import { InputVariant, InputSize, InputRounded, TimelineTextPosition, ButtonProps } from '../../types';
|
|
3
3
|
interface Props {
|
|
4
4
|
schema: IForm[] | IForm[][];
|
|
@@ -11,6 +11,14 @@ interface Props {
|
|
|
11
11
|
footer?: boolean;
|
|
12
12
|
groupsHeadings?: IFormGroupsHeadings;
|
|
13
13
|
groupHeadingsDescription?: IFormGroupsHeadings;
|
|
14
|
+
/**
|
|
15
|
+
* Visual layout for grouped schemas (`schema: IForm[][]`).
|
|
16
|
+
* - `'basic'` (default) — each group is a card with a header and a body
|
|
17
|
+
* - `'accordion'` — each group is an `AccordionItem` with the heading as the trigger
|
|
18
|
+
*
|
|
19
|
+
* Has no effect on flat schemas. Backward compatible.
|
|
20
|
+
*/
|
|
21
|
+
groupLayout?: IFormGroupLayout;
|
|
14
22
|
tabs?: IFormStep[];
|
|
15
23
|
submitText?: string;
|
|
16
24
|
submitProps?: ButtonProps;
|
|
@@ -72,12 +80,14 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
|
72
80
|
clearErrors: () => void;
|
|
73
81
|
setFieldValue: (name: string, value: any, data?: any) => Promise<void>;
|
|
74
82
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
83
|
+
onChange: (values: Record<string, any>) => any;
|
|
75
84
|
onSubmit: (payload: IFormSubmitPayload, close: () => void) => any;
|
|
76
85
|
onCancel: () => any;
|
|
77
86
|
onAddonAction: (action: string) => any;
|
|
78
87
|
onStepChange: (step: number) => any;
|
|
79
88
|
onBack: () => any;
|
|
80
89
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
90
|
+
onOnChange?: (values: Record<string, any>) => any;
|
|
81
91
|
onOnSubmit?: (payload: IFormSubmitPayload, close: () => void) => any;
|
|
82
92
|
onOnCancel?: () => any;
|
|
83
93
|
onOnAddonAction?: (action: string) => any;
|
|
@@ -98,6 +108,8 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
|
|
|
98
108
|
schemaLoading: boolean;
|
|
99
109
|
groupsHeadings: IFormGroupsHeadings;
|
|
100
110
|
groupHeadingsDescription: IFormGroupsHeadings;
|
|
111
|
+
groupLayout: IFormGroupLayout;
|
|
112
|
+
tabs: IFormStep[];
|
|
101
113
|
submitText: string;
|
|
102
114
|
showCancel: boolean;
|
|
103
115
|
groupClass: string;
|
|
@@ -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
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-db13df10"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|