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.
- package/components/Accordion/Accordion.vue.js +35 -22
- package/components/Accordion/AccordionContent.vue.js +2 -2
- package/components/Accordion/AccordionContent.vue2.js +1 -1
- package/components/Breadcrumb/Breadcrumb.vue.js +2 -2
- package/components/Breadcrumb/Breadcrumb.vue2.js +44 -44
- package/components/Carousel/Carousel.vue.js +1 -1
- package/components/Carousel/Carousel.vue2.js +3 -3
- package/components/ColorPicker/ColorIro.vue3.js +2 -2
- package/components/ColorPicker/ColorPicker.vue.js +2 -2
- package/components/CommandPalette/CommandPaletteContent.vue.js +1 -1
- package/components/CommandPalette/CommandPaletteContent.vue2.js +2 -2
- package/components/Dropdown/DropdownTrigger.vue.js +1 -1
- package/components/FilePicker/FilePicker.vue.js +16 -16
- package/components/FileTree/FileTree.vue.js +5 -147
- package/components/FileTree/FileTree.vue2.js +164 -2
- package/components/FileTree/FileTreeNode.vue.js +89 -84
- package/components/Form/CustomFields.vue.js +2 -2
- package/components/Form/CustomFields.vue2.js +1 -1
- package/components/Form/Form.vue.js +1 -1
- package/components/Form/Form.vue2.js +133 -129
- package/components/Form/FormField.vue.d.ts +3 -0
- package/components/Form/FormField.vue.js +85 -82
- package/components/Form/FormFields.vue.d.ts +2 -0
- package/components/Form/FormFields.vue.js +2 -2
- package/components/Form/FormFields.vue2.js +55 -52
- package/components/Form/composables/useForm.d.ts +2 -0
- package/components/Form/composables/useForm.js +113 -107
- package/components/ImportData/ImportData.vue.js +157 -142
- package/components/ImportData/ImportStep1.vue.d.ts +6 -0
- package/components/ImportData/ImportStep1.vue.js +69 -61
- package/components/ImportData/ImportStep2.vue.js +5 -98
- package/components/ImportData/ImportStep2.vue2.js +105 -2
- package/components/Kanban/Kanban.vue.js +1 -1
- package/components/Kanban/Kanban.vue2.js +1 -1
- package/components/Kanban/KanbanBoard.vue.js +1 -1
- package/components/Kanban/KanbanBoard.vue2.js +92 -83
- package/components/Kanban/useKanbanBoard.d.ts +1 -1
- package/components/Kanban/useKanbanBoard.js +17 -17
- package/components/List/ListFieldRow.vue.js +4 -6
- package/components/MultiSelect/MultiSelect.vue.js +10 -4
- package/components/NavbarCommandPalette.vue.js +2 -2
- package/components/NumberInput.vue.js +2 -2
- package/components/NumberInput.vue2.js +1 -1
- package/components/PermissionMatrix/PermissionEditor.vue.d.ts +2 -0
- package/components/PermissionMatrix/PermissionEditor.vue.js +25 -23
- package/components/PermissionMatrix/PermissionEditorMatrix.vue.d.ts +4 -1
- package/components/PermissionMatrix/PermissionEditorMatrix.vue.js +2 -2
- package/components/PermissionMatrix/PermissionEditorMatrix.vue2.js +48 -45
- package/components/Screen/ScreenFilter.vue.js +1 -1
- package/components/Timeline/Timeline.vue.js +62 -57
- package/components/ToastNotification.vue.js +2 -2
- package/components/ToastNotification.vue2.js +103 -88
- package/components/Workbook/Workbook.vue.js +5 -152
- package/components/Workbook/Workbook.vue2.js +166 -2
- package/package.json +1 -1
- package/style.css +3 -3
- /package/components/ColorPicker/{ColorIro.vue2.js → ColorIro.vue.js} +0 -0
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useForm as
|
|
3
|
-
import
|
|
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
|
|
5
|
+
import xe from "../Timeline/Timeline.vue.js";
|
|
6
6
|
import "@iconify/vue";
|
|
7
|
-
import { useVLiteConfig as
|
|
8
|
-
const
|
|
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
|
-
},
|
|
11
|
+
}, Re = {
|
|
12
12
|
key: 1,
|
|
13
13
|
class: "form-groups space-y-6"
|
|
14
|
-
},
|
|
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
|
-
},
|
|
17
|
+
}, Ue = { class: "form-group-body p-4.5" }, ze = {
|
|
18
18
|
key: 2,
|
|
19
19
|
class: "form-step"
|
|
20
|
-
},
|
|
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
|
-
},
|
|
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: !
|
|
50
|
+
stickyFooter: { type: Boolean, default: !1 }
|
|
51
51
|
},
|
|
52
52
|
emits: ["onSubmit", "onCancel", "onStepChange", "onAddonAction"],
|
|
53
|
-
setup(e, { emit:
|
|
54
|
-
const a = e, v =
|
|
53
|
+
setup(e, { emit: te }) {
|
|
54
|
+
const a = e, v = te, m = be(
|
|
55
55
|
"modal-context",
|
|
56
56
|
null
|
|
57
|
-
),
|
|
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),
|
|
60
|
-
let
|
|
61
|
-
|
|
62
|
-
|
|
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
|
-
|
|
64
|
+
$.value = !t.isIntersecting;
|
|
65
65
|
},
|
|
66
66
|
{ threshold: 0 }
|
|
67
|
-
),
|
|
68
|
-
}),
|
|
69
|
-
|
|
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),
|
|
72
|
-
id: t.id?.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:
|
|
77
|
-
})) : []), y = n(() => w.value ? a.schema : [a.schema]),
|
|
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
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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:
|
|
88
|
-
} =
|
|
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
|
-
|
|
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
|
-
),
|
|
106
|
+
), Y(() => {
|
|
106
107
|
m?.setSubmitting && m.setSubmitting(!1);
|
|
107
|
-
}),
|
|
108
|
+
}), Z(
|
|
108
109
|
() => a.values,
|
|
109
110
|
(t) => {
|
|
110
111
|
},
|
|
111
112
|
{ deep: !0 }
|
|
112
113
|
);
|
|
113
|
-
const I = (t,
|
|
114
|
-
|
|
115
|
-
},
|
|
114
|
+
const I = (t, s) => {
|
|
115
|
+
le(t, s.value, s.data);
|
|
116
|
+
}, ue = () => {
|
|
116
117
|
if (!r.value) return !0;
|
|
117
|
-
const t =
|
|
118
|
-
let
|
|
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
|
-
|
|
122
|
+
oe(u) && (s = !1);
|
|
122
123
|
}
|
|
123
|
-
return
|
|
124
|
-
},
|
|
125
|
-
|
|
126
|
-
},
|
|
127
|
-
|
|
128
|
-
},
|
|
129
|
-
|
|
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
|
-
|
|
134
|
+
W();
|
|
134
135
|
return;
|
|
135
136
|
}
|
|
136
|
-
if (!
|
|
137
|
-
const
|
|
137
|
+
if (!ne()) {
|
|
138
|
+
const s = y.value.findIndex(
|
|
138
139
|
(u) => u.some((f) => !!p.value[f.name])
|
|
139
140
|
);
|
|
140
|
-
|
|
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
|
|
146
|
+
await re();
|
|
146
147
|
} catch {
|
|
147
148
|
}
|
|
148
|
-
},
|
|
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
|
-
},
|
|
153
|
+
}, X = (t) => {
|
|
153
154
|
(t.metaKey || t.ctrlKey) && t.key === "s" && (t.preventDefault(), S());
|
|
154
|
-
},
|
|
155
|
+
}, fe = () => {
|
|
155
156
|
v("onCancel"), m && m?.close?.();
|
|
156
157
|
};
|
|
157
|
-
return (t,
|
|
158
|
+
return (t, s) => (o(), d("form", {
|
|
158
159
|
class: g(["form-container ", a.class]),
|
|
159
|
-
onSubmit:
|
|
160
|
+
onSubmit: j(S, ["prevent"]),
|
|
160
161
|
onKeydown: [
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
162
|
+
me,
|
|
163
|
+
_(j(X, ["meta", "prevent"]), ["s"]),
|
|
164
|
+
_(j(X, ["ctrl", "prevent"]), ["s"])
|
|
164
165
|
]
|
|
165
166
|
}, [
|
|
166
|
-
r.value &&
|
|
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(
|
|
171
|
-
steps:
|
|
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:
|
|
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",
|
|
183
|
-
(o(!0), d(
|
|
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",
|
|
192
|
-
e.groupHeadingsDescription?.[f] ? (o(), d("p",
|
|
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",
|
|
195
|
-
z(
|
|
195
|
+
h("div", Ue, [
|
|
196
|
+
z(G, {
|
|
196
197
|
schema: u,
|
|
197
|
-
values:
|
|
198
|
-
errors:
|
|
198
|
+
values: i(A),
|
|
199
|
+
errors: i(p),
|
|
200
|
+
fieldLoading: i(M),
|
|
199
201
|
variant: P.value,
|
|
200
|
-
size:
|
|
201
|
-
rounded:
|
|
202
|
+
size: L.value,
|
|
203
|
+
rounded: q.value,
|
|
202
204
|
className: e.className,
|
|
203
205
|
isUpdate: e.isUpdate,
|
|
204
|
-
showRequiredAsterisk:
|
|
205
|
-
isFieldVisible:
|
|
206
|
-
isFieldDisabled:
|
|
207
|
-
isFieldReadonly:
|
|
206
|
+
showRequiredAsterisk: B.value,
|
|
207
|
+
isFieldVisible: i(R),
|
|
208
|
+
isFieldDisabled: i(N),
|
|
209
|
+
isFieldReadonly: i(E),
|
|
208
210
|
onChange: I,
|
|
209
|
-
onAddonAction:
|
|
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",
|
|
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",
|
|
219
|
-
e.tabs[l.value].description ? (o(), d("p",
|
|
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(
|
|
222
|
-
schema:
|
|
223
|
-
values:
|
|
224
|
-
errors:
|
|
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:
|
|
227
|
-
rounded:
|
|
229
|
+
size: L.value,
|
|
230
|
+
rounded: q.value,
|
|
228
231
|
className: e.className,
|
|
229
232
|
isUpdate: e.isUpdate,
|
|
230
|
-
showRequiredAsterisk:
|
|
231
|
-
isFieldVisible:
|
|
232
|
-
isFieldDisabled:
|
|
233
|
-
isFieldReadonly:
|
|
233
|
+
showRequiredAsterisk: B.value,
|
|
234
|
+
isFieldVisible: i(R),
|
|
235
|
+
isFieldDisabled: i(N),
|
|
236
|
+
isFieldReadonly: i(E),
|
|
234
237
|
onChange: I,
|
|
235
|
-
onAddonAction:
|
|
236
|
-
}, null, 8, ["schema", "values", "errors", "variant", "size", "rounded", "className", "isUpdate", "showRequiredAsterisk", "isFieldVisible", "isFieldDisabled", "isFieldReadonly"])
|
|
237
|
-
])) : c("", !0) : (o(), d("div",
|
|
238
|
-
z(
|
|
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:
|
|
241
|
-
errors:
|
|
243
|
+
values: i(A),
|
|
244
|
+
errors: i(p),
|
|
245
|
+
fieldLoading: i(M),
|
|
242
246
|
variant: P.value,
|
|
243
|
-
size:
|
|
244
|
-
rounded:
|
|
247
|
+
size: L.value,
|
|
248
|
+
rounded: q.value,
|
|
245
249
|
className: e.className,
|
|
246
250
|
isUpdate: e.isUpdate,
|
|
247
|
-
showRequiredAsterisk:
|
|
248
|
-
isFieldVisible:
|
|
249
|
-
isFieldDisabled:
|
|
250
|
-
isFieldReadonly:
|
|
251
|
+
showRequiredAsterisk: B.value,
|
|
252
|
+
isFieldVisible: i(R),
|
|
253
|
+
isFieldDisabled: i(N),
|
|
254
|
+
isFieldReadonly: i(E),
|
|
251
255
|
onChange: I,
|
|
252
|
-
onAddonAction:
|
|
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
|
-
|
|
256
|
-
values:
|
|
257
|
-
errors:
|
|
258
|
-
isSubmitting:
|
|
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:
|
|
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:
|
|
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
|
-
|
|
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 &&
|
|
285
|
+
b.value && $.value ? "" : b.value ? "border-t border-transparent" : "",
|
|
282
286
|
// Non-sticky inside modal keeps the original border styling
|
|
283
|
-
!b.value &&
|
|
284
|
-
!b.value && !
|
|
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",
|
|
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 ||
|
|
294
|
-
onClick:
|
|
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 ||
|
|
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 &&
|
|
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:
|
|
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:
|
|
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 ||
|
|
335
|
+
loading: e.loading || i(k)
|
|
332
336
|
}), null, 16, ["text", "loading"])) : c("", !0)
|
|
333
337
|
], 2)
|
|
334
338
|
], 2)) : c("", !0)
|
|
335
|
-
], 42,
|
|
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>;
|