vlite3 1.4.30 → 1.4.32
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 +19 -16
- package/components/Accordion/AccordionContent.vue.js +2 -2
- package/components/Accordion/AccordionItem.vue.js +38 -36
- package/components/CategoryManager/CategoryManager.vue2.js +3 -2
- package/components/Chart/GanttChart.vue.d.ts +13 -1
- package/components/Chart/GanttChart.vue.js +2 -2
- package/components/Chart/GanttChart.vue2.js +1185 -607
- package/components/Chart/GanttChartDateUtils.d.ts +38 -0
- package/components/Chart/GanttChartDateUtils.js +79 -0
- package/components/Chart/GanttChartDependencyUtils.d.ts +92 -0
- package/components/Chart/GanttChartDependencyUtils.js +113 -0
- package/components/Chart/GanttChartResizePreviewUtils.d.ts +52 -0
- package/components/Chart/GanttChartResizePreviewUtils.js +53 -0
- package/components/Chart/GanttChartTooltipUtils.d.ts +41 -0
- package/components/Chart/GanttChartTooltipUtils.js +63 -0
- package/components/Chart/index.d.ts +3 -1
- package/components/Chart/types.d.ts +76 -1
- package/components/Chart/types.js +8 -0
- package/components/FilePicker/FilePickerDropzone.vue.js +1 -1
- package/components/FilePicker/index.vue.js +2 -4
- package/components/Form/AccordionView.vue2.js +5 -2
- package/components/Form/AccordionView.vue3.js +250 -0
- package/components/Form/Form.vue.d.ts +0 -2
- package/components/Form/Form.vue.js +1 -1
- package/components/Form/Form.vue2.js +415 -354
- package/components/Form/FormField.vue.js +175 -196
- package/components/Form/FormFields.vue.js +1 -1
- package/components/Form/FormFields.vue2.js +60 -60
- package/components/Form/FormSkeleton.vue.js +50 -35
- package/components/Form/TableView.vue.js +59 -43
- package/components/Form/composables/useForm.js +159 -148
- package/components/Form/index.vue2.js +8 -8
- package/components/Form/utils/form.utils.d.ts +2 -0
- package/components/Form/utils/form.utils.js +17 -13
- package/components/GoogleMap.vue.d.ts +1 -1
- package/components/PanZoomViewport/PanZoomViewport.vue.d.ts +189 -0
- package/components/PanZoomViewport/PanZoomViewport.vue.js +7 -0
- package/components/PanZoomViewport/PanZoomViewport.vue2.js +536 -0
- package/components/PanZoomViewport/index.d.ts +2 -0
- package/components/PanZoomViewport/types.d.ts +121 -0
- package/components/ScaleGenerator/ScaleGenerator.vue.d.ts +3 -0
- package/components/ScaleGenerator/ScaleGenerator.vue.js +5 -108
- package/components/ScaleGenerator/ScaleGenerator.vue2.js +143 -2
- package/components/ScaleGenerator/types.d.ts +2 -0
- package/components/Screen/ScreenFilter.vue.js +18 -17
- package/components/SeoProvider/SeoProvider.vue.d.ts +4 -1
- package/components/SeoProvider/SeoProvider.vue.js +39 -33
- package/components/SeoProvider/domAdapter.d.ts +1 -4
- package/components/SeoProvider/domAdapter.js +71 -58
- package/components/SeoProvider/index.d.ts +5 -2
- package/components/SeoProvider/normalizeSeo.d.ts +10 -49
- package/components/SeoProvider/normalizeSeo.js +246 -182
- package/components/SeoProvider/plainText.d.ts +8 -0
- package/components/SeoProvider/plainText.js +117 -0
- package/components/SeoProvider/seoUrl.d.ts +13 -0
- package/components/SeoProvider/seoUrl.js +25 -0
- package/components/SeoProvider/structuredData.d.ts +100 -0
- package/components/SeoProvider/structuredData.js +33 -0
- package/components/SeoProvider/types.d.ts +47 -109
- package/components/Tabes/Tabes.vue.d.ts +10 -1
- package/components/Tabes/Tabes.vue.js +1 -1
- package/components/Tabes/Tabes.vue2.js +271 -170
- package/components/Tabes/TabesMarkerGeometry.d.ts +34 -0
- package/components/Tabes/TabesMarkerGeometry.js +21 -0
- package/components/Tabes/tabes.utils.d.ts +14 -0
- package/components/Tabes/tabes.utils.js +26 -0
- package/components/Tabes/types.d.ts +32 -0
- package/components/ThemeProvider/ThemeProvider.vue.d.ts +2 -0
- package/components/ThemeProvider/ThemeProvider.vue.js +29 -23
- package/components/ThemeProvider/index.d.ts +1 -1
- package/components/ThemeProvider/themeVars.d.ts +9 -13
- package/components/ThemeProvider/themeVars.js +173 -125
- package/components/ThemeProvider/types.d.ts +10 -0
- package/components/index.d.ts +2 -1
- package/index.d.ts +1 -0
- package/index.js +415 -387
- package/package.json +3 -2
- package/style.css +1 -1
- package/components/Form/AccordionView.vue.js +0 -222
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useForm as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import { defineComponent as Ge, computed as o, inject as He, getCurrentInstance as $e, onMounted as Me, onUnmounted as _, shallowRef as ee, watch as te, nextTick as Oe, openBlock as n, createElementBlock as c, withKeys as ye, withModifiers as ae, normalizeClass as v, createElementVNode as p, createVNode as k, mergeProps as O, toDisplayString as j, renderSlot as he, unref as l, createCommentVNode as d, createBlock as C, withCtx as be, Fragment as je, renderList as Ke, isMemoSame as Ye } from "vue";
|
|
2
|
+
import { useForm as Je } from "./composables/useForm.js";
|
|
3
|
+
import X from "./FormFields.vue.js";
|
|
4
|
+
import Qe from "./FormField.vue.js";
|
|
5
|
+
import We from "./FormSkeleton.vue.js";
|
|
6
|
+
import Xe from "../Accordion/Accordion.vue.js";
|
|
7
7
|
import S from "../Button.vue.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
8
|
+
import Ze from "../BackButton.vue.js";
|
|
9
|
+
import _e from "../Timeline/Timeline.vue.js";
|
|
10
10
|
import "@iconify/vue";
|
|
11
|
-
import { resolveI18nText as
|
|
12
|
-
import { useVLiteConfig as
|
|
13
|
-
import { resolveFieldType as
|
|
14
|
-
const
|
|
11
|
+
import { resolveI18nText as et } from "../../utils/i18n.js";
|
|
12
|
+
import { useVLiteConfig as tt } from "../../core/config.js";
|
|
13
|
+
import { resolveFieldType as at } from "./utils/form.utils.js";
|
|
14
|
+
const lt = ["onKeydown"], it = { class: "flex items-center gap-3" }, st = { class: "flex items-center gap-2 shrink-0" }, nt = {
|
|
15
15
|
key: 0,
|
|
16
16
|
class: "w-full order-first lg:order-last lg:min-w-100 lg:max-w-[380px] shrink-0"
|
|
17
|
-
},
|
|
17
|
+
}, ot = { key: 0 }, rt = {
|
|
18
18
|
key: 0,
|
|
19
19
|
class: "flex gap-3 items-end ml-auto"
|
|
20
|
-
},
|
|
20
|
+
}, ut = { class: "text-base font-semibold text-foreground" }, dt = {
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "text-sm text-muted-foreground mt-1"
|
|
23
|
-
},
|
|
23
|
+
}, ct = {
|
|
24
24
|
key: 3,
|
|
25
25
|
class: "form-step"
|
|
26
|
-
},
|
|
26
|
+
}, vt = { class: "text-lg font-semibold text-foreground" }, mt = {
|
|
27
27
|
key: 0,
|
|
28
28
|
class: "text-sm text-muted-foreground mt-1"
|
|
29
|
-
},
|
|
29
|
+
}, ft = {
|
|
30
30
|
key: 0,
|
|
31
31
|
class: "flex gap-3 items-center"
|
|
32
|
-
},
|
|
32
|
+
}, Pt = /* @__PURE__ */ Ge({
|
|
33
33
|
__name: "Form",
|
|
34
34
|
props: {
|
|
35
35
|
schema: {},
|
|
@@ -71,413 +71,468 @@ const Me = ["onKeydown"], je = { class: "flex items-center gap-3" }, Oe = { clas
|
|
|
71
71
|
layout: { default: "vertical" }
|
|
72
72
|
},
|
|
73
73
|
emits: ["onSubmit", "onCancel", "onStepChange", "onAddonAction", "onBack", "onChange"],
|
|
74
|
-
setup(e, { expose:
|
|
75
|
-
const
|
|
76
|
-
() =>
|
|
77
|
-
),
|
|
78
|
-
|
|
74
|
+
setup(e, { expose: xe, emit: pe }) {
|
|
75
|
+
const i = e, f = pe, ke = o(() => et(i.pageTitleI18n, i.pageTitle)), g = He("modal-context", null), Ce = tt(), K = o(() => Ce?.components?.form || {}), U = o(() => i.variant ?? K.value.variant ?? "outline"), I = o(() => i.size ?? K.value.size ?? "md"), z = o(() => i.rounded ?? K.value.rounded ?? "md"), D = o(
|
|
76
|
+
() => i.showRequiredAsterisk ?? K.value.showRequiredAsterisk ?? !0
|
|
77
|
+
), Y = o(() => i.showCancel || !!g), E = o(() => !!g), Se = $e(), Fe = o(() => {
|
|
78
|
+
const t = Se?.vnode.props;
|
|
79
|
+
return !!t && (Object.prototype.hasOwnProperty.call(t, "stickyFooter") || Object.prototype.hasOwnProperty.call(t, "sticky-footer")) && i.stickyFooter;
|
|
80
|
+
}), L = o(
|
|
81
|
+
() => i.layout !== "inline" && (i.stickyFooter || E.value)
|
|
79
82
|
);
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}),
|
|
83
|
-
|
|
83
|
+
Me(() => {
|
|
84
|
+
i.footer && E.value && g?.registerFormFooter?.(!0);
|
|
85
|
+
}), _(() => {
|
|
86
|
+
E.value && g?.registerFormFooter?.(!1);
|
|
84
87
|
});
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
(
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
|
|
88
|
+
const F = ee(null), q = ee(!1), le = (t) => {
|
|
89
|
+
let a = t?.parentElement ?? null;
|
|
90
|
+
for (; a && a !== document.body; ) {
|
|
91
|
+
const { overflowY: s } = getComputedStyle(a);
|
|
92
|
+
if (s === "auto" || s === "scroll" || s === "overlay")
|
|
93
|
+
return a;
|
|
94
|
+
a = a.parentElement;
|
|
95
|
+
}
|
|
96
|
+
return document.documentElement;
|
|
97
|
+
}, ie = () => {
|
|
98
|
+
if (!L.value || !F.value) {
|
|
99
|
+
q.value = !1;
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
const t = le(F.value);
|
|
103
|
+
if (!t) {
|
|
104
|
+
q.value = !1;
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
q.value = t.scrollHeight > t.clientHeight + 1;
|
|
108
|
+
}, we = o(
|
|
109
|
+
() => L.value && (E.value || Fe.value || q.value)
|
|
110
|
+
);
|
|
111
|
+
let A = null;
|
|
112
|
+
te(
|
|
113
|
+
[F, L, () => i.schemaLoading],
|
|
114
|
+
async () => {
|
|
115
|
+
if (A?.disconnect(), A = null, await Oe(), !F.value || !L.value) {
|
|
116
|
+
q.value = !1;
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
const t = le(F.value);
|
|
120
|
+
if (ie(), typeof ResizeObserver > "u" || !t) return;
|
|
121
|
+
A = new ResizeObserver(() => ie()), A.observe(t), A.observe(F.value);
|
|
122
|
+
const a = F.value.closest("form");
|
|
123
|
+
a && A.observe(a);
|
|
124
|
+
},
|
|
125
|
+
{ flush: "post", immediate: !0 }
|
|
126
|
+
), _(() => {
|
|
127
|
+
A?.disconnect();
|
|
96
128
|
});
|
|
97
|
-
const
|
|
98
|
-
id:
|
|
99
|
-
title:
|
|
100
|
-
icon:
|
|
101
|
-
description:
|
|
102
|
-
status:
|
|
103
|
-
})) : []),
|
|
104
|
-
if (!
|
|
105
|
-
if (Array.isArray(
|
|
129
|
+
const T = o(() => !i.schema || i.schema.length === 0 ? !1 : Array.isArray(i.schema[0])), u = o(() => i.tabs && i.tabs.length > 0 && T.value), r = ee(0), se = o(() => i.tabs ? i.tabs.map((t, a) => ({
|
|
130
|
+
id: t.id?.toString() || a.toString(),
|
|
131
|
+
title: t.title,
|
|
132
|
+
icon: t.icon,
|
|
133
|
+
description: t.description,
|
|
134
|
+
status: a < r.value ? "completed" : a === r.value ? "current" : "upcoming"
|
|
135
|
+
})) : []), G = o(() => T.value ? i.schema : [i.schema]), ne = o(() => u.value ? G.value[r.value] || [] : []), oe = (t) => {
|
|
136
|
+
if (!t) return [];
|
|
137
|
+
if (Array.isArray(t)) return t;
|
|
106
138
|
try {
|
|
107
|
-
const
|
|
108
|
-
values:
|
|
109
|
-
globalValues:
|
|
110
|
-
isUpdate:
|
|
139
|
+
const a = t({
|
|
140
|
+
values: m.value,
|
|
141
|
+
globalValues: m.value,
|
|
142
|
+
isUpdate: i.isUpdate
|
|
111
143
|
});
|
|
112
|
-
return Array.isArray(
|
|
113
|
-
} catch (
|
|
114
|
-
return console.error("[Form] Error evaluating dynamic group headings:",
|
|
144
|
+
return Array.isArray(a) ? a : [];
|
|
145
|
+
} catch (a) {
|
|
146
|
+
return console.error("[Form] Error evaluating dynamic group headings:", a), [];
|
|
115
147
|
}
|
|
116
|
-
},
|
|
117
|
-
() =>
|
|
118
|
-
),
|
|
119
|
-
const
|
|
120
|
-
for (let s = 0; s <
|
|
121
|
-
const
|
|
122
|
-
!Array.isArray(
|
|
148
|
+
}, J = o(() => oe(i.groupsHeadings)), Q = o(
|
|
149
|
+
() => oe(i.groupHeadingsDescription)
|
|
150
|
+
), H = o(() => {
|
|
151
|
+
const t = G.value, a = [];
|
|
152
|
+
for (let s = 0; s < t.length; s++) {
|
|
153
|
+
const x = t[s];
|
|
154
|
+
!Array.isArray(x) || x.length === 0 || x.some((me) => R(me)) && a.push({ schema: x, originalIndex: s });
|
|
123
155
|
}
|
|
124
|
-
return
|
|
125
|
-
}),
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
156
|
+
return a;
|
|
157
|
+
}), Ae = o(
|
|
158
|
+
() => H.value.map((t) => ({
|
|
159
|
+
id: `form-group-${t.originalIndex}`,
|
|
160
|
+
title: J.value?.[t.originalIndex] || "",
|
|
161
|
+
description: Q.value?.[t.originalIndex] || void 0
|
|
162
|
+
}))
|
|
163
|
+
), Te = o(() => {
|
|
164
|
+
const t = /* @__PURE__ */ new Map();
|
|
165
|
+
for (const a of H.value)
|
|
166
|
+
t.set(`form-group-${a.originalIndex}`, a.schema);
|
|
167
|
+
return t;
|
|
168
|
+
}), h = o(() => u.value ? null : (T.value ? i.schema.flat() : i.schema).find((a) => at(a, {
|
|
169
|
+
values: m.value,
|
|
170
|
+
globalValues: m.value,
|
|
171
|
+
isUpdate: i.isUpdate
|
|
172
|
+
}) === "thumbnailSelector") ?? null), P = o(() => !!h.value), {
|
|
173
|
+
formValues: m,
|
|
174
|
+
errors: b,
|
|
175
|
+
isSubmitting: y,
|
|
176
|
+
fieldLoading: V,
|
|
177
|
+
handleFieldChange: re,
|
|
178
|
+
validateField: Pe,
|
|
179
|
+
validateAll: ue,
|
|
180
|
+
isFieldVisible: R,
|
|
181
|
+
isFieldDisabled: B,
|
|
182
|
+
isFieldReadonly: $,
|
|
183
|
+
handleSubmit: Re,
|
|
184
|
+
reinitialize: Ue,
|
|
185
|
+
resetForm: Ie,
|
|
186
|
+
setFieldError: ze,
|
|
187
|
+
clearErrors: Le
|
|
188
|
+
} = Je({
|
|
189
|
+
schema: i.schema,
|
|
190
|
+
values: i.values,
|
|
191
|
+
isUpdate: i.isUpdate,
|
|
192
|
+
folderId: i.folderId,
|
|
193
|
+
emitFields: i.emitFields,
|
|
194
|
+
onSubmit: (t) => {
|
|
195
|
+
f("onSubmit", t, g?.close || (() => {
|
|
153
196
|
}));
|
|
154
197
|
}
|
|
155
198
|
});
|
|
156
|
-
|
|
157
|
-
() =>
|
|
158
|
-
(
|
|
159
|
-
|
|
199
|
+
te(
|
|
200
|
+
() => i.loading || y.value,
|
|
201
|
+
(t) => {
|
|
202
|
+
g?.setSubmitting && g.setSubmitting(t);
|
|
160
203
|
},
|
|
161
204
|
{ immediate: !0 }
|
|
162
|
-
),
|
|
163
|
-
|
|
164
|
-
}),
|
|
165
|
-
[() =>
|
|
166
|
-
([
|
|
167
|
-
s ||
|
|
205
|
+
), _(() => {
|
|
206
|
+
g?.setSubmitting && g.setSubmitting(!1);
|
|
207
|
+
}), te(
|
|
208
|
+
[() => i.schema, () => i.values, () => i.schemaLoading],
|
|
209
|
+
([t, a, s]) => {
|
|
210
|
+
s || Ue(t, a);
|
|
168
211
|
}
|
|
169
212
|
);
|
|
170
|
-
const
|
|
171
|
-
|
|
172
|
-
},
|
|
213
|
+
const M = (t, a) => {
|
|
214
|
+
re(t, a.value, a.data), f("onChange", m.value);
|
|
215
|
+
}, Ve = async () => {
|
|
173
216
|
if (!u.value) return !0;
|
|
174
|
-
const
|
|
175
|
-
let
|
|
176
|
-
for (const s of
|
|
177
|
-
if (!
|
|
178
|
-
await
|
|
217
|
+
const t = ne.value;
|
|
218
|
+
let a = !0;
|
|
219
|
+
for (const s of t) {
|
|
220
|
+
if (!R(s) || B(s)) continue;
|
|
221
|
+
await Pe(s) && (a = !1);
|
|
179
222
|
}
|
|
180
|
-
return
|
|
181
|
-
},
|
|
182
|
-
!
|
|
183
|
-
},
|
|
184
|
-
|
|
185
|
-
},
|
|
186
|
-
|
|
187
|
-
},
|
|
223
|
+
return a;
|
|
224
|
+
}, Be = o(() => u.value ? r.value < G.value.length - 1 : !1), de = o(() => u.value ? r.value > 0 : !1), N = o(() => u.value ? r.value === G.value.length - 1 : !0), ce = async () => {
|
|
225
|
+
!Be.value || !await Ve() || (r.value++, f("onStepChange", r.value));
|
|
226
|
+
}, Ne = () => {
|
|
227
|
+
de.value && (r.value--, f("onStepChange", r.value));
|
|
228
|
+
}, De = (t, a) => {
|
|
229
|
+
a <= r.value && (r.value = a, f("onStepChange", r.value));
|
|
230
|
+
}, w = async () => {
|
|
188
231
|
if (u.value) {
|
|
189
|
-
if (!
|
|
190
|
-
await
|
|
232
|
+
if (!N.value && !i.isUpdate) {
|
|
233
|
+
await ce();
|
|
191
234
|
return;
|
|
192
235
|
}
|
|
193
|
-
if (!await
|
|
194
|
-
const
|
|
195
|
-
(s) => s.some((
|
|
236
|
+
if (!await ue()) {
|
|
237
|
+
const a = G.value.findIndex(
|
|
238
|
+
(s) => s.some((x) => !!b.value[x.name])
|
|
196
239
|
);
|
|
197
|
-
|
|
240
|
+
a !== -1 && a !== r.value && (r.value = a, f("onStepChange", r.value));
|
|
198
241
|
return;
|
|
199
242
|
}
|
|
200
243
|
}
|
|
201
244
|
try {
|
|
202
|
-
await
|
|
245
|
+
await Re();
|
|
203
246
|
} catch {
|
|
204
247
|
}
|
|
205
|
-
},
|
|
206
|
-
if (
|
|
207
|
-
const
|
|
208
|
-
if (!
|
|
209
|
-
const s =
|
|
210
|
-
s !== "textarea" && s !== "button" && (
|
|
211
|
-
},
|
|
212
|
-
(
|
|
248
|
+
}, Ee = (t) => {
|
|
249
|
+
if (t.key !== "Enter" || t.defaultPrevented) return;
|
|
250
|
+
const a = t.target;
|
|
251
|
+
if (!a) return;
|
|
252
|
+
const s = a.tagName.toLowerCase();
|
|
253
|
+
s !== "textarea" && s !== "button" && (a.isContentEditable || (t.preventDefault(), w()));
|
|
254
|
+
}, ve = (t) => {
|
|
255
|
+
(t.metaKey || t.ctrlKey) && t.key === "s" && (t.preventDefault(), w());
|
|
213
256
|
};
|
|
214
|
-
|
|
215
|
-
formValues:
|
|
216
|
-
errors:
|
|
217
|
-
isSubmitting:
|
|
218
|
-
handleSubmit:
|
|
219
|
-
validateAll:
|
|
220
|
-
resetForm:
|
|
221
|
-
setFieldError:
|
|
222
|
-
clearErrors:
|
|
223
|
-
setFieldValue:
|
|
257
|
+
xe({
|
|
258
|
+
formValues: m,
|
|
259
|
+
errors: b,
|
|
260
|
+
isSubmitting: y,
|
|
261
|
+
handleSubmit: w,
|
|
262
|
+
validateAll: ue,
|
|
263
|
+
resetForm: Ie,
|
|
264
|
+
setFieldError: ze,
|
|
265
|
+
clearErrors: Le,
|
|
266
|
+
setFieldValue: re
|
|
224
267
|
});
|
|
225
|
-
const
|
|
226
|
-
|
|
268
|
+
const Z = () => {
|
|
269
|
+
f("onCancel"), g && g?.close?.();
|
|
227
270
|
};
|
|
228
|
-
return (
|
|
229
|
-
class:
|
|
230
|
-
onSubmit:
|
|
271
|
+
return (t, a) => (n(), c("form", {
|
|
272
|
+
class: v(["form-container", i.class, e.isPage && "pb-10"]),
|
|
273
|
+
onSubmit: ae(w, ["prevent"]),
|
|
231
274
|
onKeydown: [
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
275
|
+
Ee,
|
|
276
|
+
ye(ae(ve, ["meta", "prevent"]), ["s"]),
|
|
277
|
+
ye(ae(ve, ["ctrl", "prevent"]), ["s"])
|
|
235
278
|
]
|
|
236
279
|
}, [
|
|
237
|
-
e.isPage ? (n(),
|
|
280
|
+
e.isPage ? (n(), c("div", {
|
|
238
281
|
key: 0,
|
|
239
|
-
class:
|
|
282
|
+
class: v([
|
|
240
283
|
"form-page-header sticky top-0 z-30 bg-background flex items-center justify-between pb-3.5 pt-4 -mt-3.5 mb-4.5",
|
|
241
284
|
e.pageHeaderClass
|
|
242
285
|
])
|
|
243
286
|
}, [
|
|
244
|
-
|
|
245
|
-
k(
|
|
287
|
+
p("div", it, [
|
|
288
|
+
k(Ze, O(e.backButtonProps, {
|
|
246
289
|
fallback: e.backButtonPath,
|
|
247
290
|
class: "max-sm:w-8 max-sm:h-8 max-sm:min-w-8 max-sm:min-h-8 max-sm:px-0 shrink-0"
|
|
248
291
|
}), null, 16, ["fallback"]),
|
|
249
|
-
|
|
250
|
-
class:
|
|
251
|
-
},
|
|
292
|
+
p("h1", {
|
|
293
|
+
class: v(["text-foreground max-sm:text-lg text-fs-5 truncate", e.pageTitleClass])
|
|
294
|
+
}, j(ke.value), 3)
|
|
252
295
|
]),
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
values:
|
|
256
|
-
isSubmitting:
|
|
257
|
-
handleSubmit:
|
|
296
|
+
p("div", st, [
|
|
297
|
+
he(t.$slots, "header-actions", {
|
|
298
|
+
values: l(m),
|
|
299
|
+
isSubmitting: l(y),
|
|
300
|
+
handleSubmit: w
|
|
258
301
|
}, void 0, !0),
|
|
259
|
-
k(S,
|
|
302
|
+
k(S, O({
|
|
260
303
|
type: "button",
|
|
261
304
|
variant: e.isUpdate ? "outline" : "primary",
|
|
262
305
|
text: e.submitText
|
|
263
306
|
}, e.submitProps, {
|
|
264
307
|
disabled: e.schemaLoading,
|
|
265
|
-
loading: e.loading ||
|
|
266
|
-
onClick:
|
|
308
|
+
loading: e.loading || l(y),
|
|
309
|
+
onClick: w,
|
|
267
310
|
class: "max-sm:hidden"
|
|
268
311
|
}), null, 16, ["variant", "text", "disabled", "loading"])
|
|
269
312
|
])
|
|
270
|
-
], 2)) :
|
|
271
|
-
!e.schemaLoading && u.value &&
|
|
313
|
+
], 2)) : d("", !0),
|
|
314
|
+
!e.schemaLoading && u.value && se.value.length > 0 ? (n(), c("div", {
|
|
272
315
|
key: 1,
|
|
273
|
-
class:
|
|
316
|
+
class: v(["form-timeline", e.timelineTextPosition == "right" ? "mb-2" : "mb-8"])
|
|
274
317
|
}, [
|
|
275
|
-
k(
|
|
276
|
-
steps:
|
|
318
|
+
k(l(_e), {
|
|
319
|
+
steps: se.value,
|
|
277
320
|
activeStep: r.value,
|
|
278
321
|
direction: "horizontal",
|
|
279
322
|
textPosition: e.timelineTextPosition,
|
|
280
323
|
clickable: !0,
|
|
281
|
-
onStepClick:
|
|
324
|
+
onStepClick: De
|
|
282
325
|
}, null, 8, ["steps", "activeStep", "textPosition"])
|
|
283
|
-
], 2)) :
|
|
284
|
-
|
|
285
|
-
class:
|
|
326
|
+
], 2)) : d("", !0),
|
|
327
|
+
p("div", {
|
|
328
|
+
class: v(e.footer && L.value ? "pb-2" : "")
|
|
286
329
|
}, [
|
|
287
|
-
e.schemaLoading ? (n(),
|
|
330
|
+
e.schemaLoading ? (n(), C(We, {
|
|
288
331
|
key: 0,
|
|
289
|
-
isGrouped:
|
|
290
|
-
}, null, 8, ["isGrouped"])) : (n(),
|
|
332
|
+
isGrouped: T.value
|
|
333
|
+
}, null, 8, ["isGrouped"])) : (n(), c("div", {
|
|
291
334
|
key: 1,
|
|
292
|
-
class:
|
|
335
|
+
class: v(P.value ? "flex flex-col lg:flex-row gap-10 lg:gap-16" : "")
|
|
293
336
|
}, [
|
|
294
|
-
|
|
295
|
-
|
|
337
|
+
P.value ? (n(), c("div", nt, [
|
|
338
|
+
h.value && l(R)(h.value) ? (n(), C(Qe, {
|
|
296
339
|
key: 0,
|
|
297
|
-
field:
|
|
298
|
-
value:
|
|
299
|
-
values:
|
|
300
|
-
errors:
|
|
301
|
-
variant:
|
|
302
|
-
size:
|
|
303
|
-
rounded:
|
|
304
|
-
disabled:
|
|
305
|
-
readonly:
|
|
306
|
-
error:
|
|
340
|
+
field: h.value,
|
|
341
|
+
value: l(m)[h.value.name],
|
|
342
|
+
values: l(m),
|
|
343
|
+
errors: l(b),
|
|
344
|
+
variant: U.value,
|
|
345
|
+
size: I.value,
|
|
346
|
+
rounded: z.value,
|
|
347
|
+
disabled: l(B)(h.value),
|
|
348
|
+
readonly: l($)(h.value),
|
|
349
|
+
error: l(b)[h.value.name] || "",
|
|
307
350
|
isUpdate: e.isUpdate,
|
|
308
|
-
loading:
|
|
309
|
-
onChange:
|
|
310
|
-
}, null, 8, ["field", "value", "values", "errors", "variant", "size", "rounded", "disabled", "readonly", "error", "isUpdate", "loading"])) :
|
|
311
|
-
])) :
|
|
312
|
-
|
|
313
|
-
class:
|
|
351
|
+
loading: l(V)[h.value?.name],
|
|
352
|
+
onChange: a[0] || (a[0] = (s) => M(h.value.name, s))
|
|
353
|
+
}, null, 8, ["field", "value", "values", "errors", "variant", "size", "rounded", "disabled", "readonly", "error", "isUpdate", "loading"])) : d("", !0)
|
|
354
|
+
])) : d("", !0),
|
|
355
|
+
p("div", {
|
|
356
|
+
class: v(P.value ? "flex-1 min-w-0 order-last lg:order-first" : "w-full")
|
|
314
357
|
}, [
|
|
315
|
-
|
|
358
|
+
T.value ? T.value && !u.value && e.groupLayout === "basic" ? (n(), c("div", {
|
|
316
359
|
key: 1,
|
|
317
|
-
class:
|
|
360
|
+
class: v(["form-groups space-y-6", e.groupContainerClass])
|
|
318
361
|
}, [
|
|
319
|
-
(n(!0),
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
362
|
+
(n(!0), c(je, null, Ke(H.value, (s, x, me, W) => {
|
|
363
|
+
const fe = [
|
|
364
|
+
s.schema,
|
|
365
|
+
s.originalIndex,
|
|
366
|
+
l(m),
|
|
367
|
+
l(b),
|
|
368
|
+
l(V),
|
|
369
|
+
U.value,
|
|
370
|
+
I.value,
|
|
371
|
+
z.value,
|
|
372
|
+
J.value?.[s.originalIndex],
|
|
373
|
+
Q.value?.[s.originalIndex],
|
|
323
374
|
e.groupClass,
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
375
|
+
e.groupBodyClass,
|
|
376
|
+
e.headerClass,
|
|
377
|
+
e.className,
|
|
378
|
+
e.isUpdate,
|
|
379
|
+
D.value
|
|
380
|
+
];
|
|
381
|
+
if (W && W.key === s.originalIndex && Ye(W, fe)) return W;
|
|
382
|
+
const ge = (n(), c("div", {
|
|
383
|
+
key: s.originalIndex,
|
|
384
|
+
class: v([
|
|
385
|
+
"form-group overflow-hidden bg-body",
|
|
386
|
+
e.groupClass,
|
|
387
|
+
H.value.length > 1 ? "border rounded" : ""
|
|
388
|
+
])
|
|
330
389
|
}, [
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
390
|
+
J.value?.[s.originalIndex] ? (n(), c("div", {
|
|
391
|
+
key: 0,
|
|
392
|
+
class: v(["form-group-header bg-muted/50 px-4 py-2.5 border-b", e.headerClass])
|
|
393
|
+
}, [
|
|
394
|
+
p("h3", ut, j(J.value[s.originalIndex]), 1),
|
|
395
|
+
Q.value?.[s.originalIndex] ? (n(), c("p", dt, j(Q.value[s.originalIndex]), 1)) : d("", !0)
|
|
396
|
+
], 2)) : d("", !0),
|
|
397
|
+
p("div", {
|
|
398
|
+
class: v(["form-group-body", [e.groupBodyClass, H.value.length > 1 ? "p-4.5" : ""]])
|
|
399
|
+
}, [
|
|
400
|
+
k(X, {
|
|
401
|
+
schema: s.schema,
|
|
402
|
+
values: l(m),
|
|
403
|
+
errors: l(b),
|
|
404
|
+
fieldLoading: l(V),
|
|
405
|
+
variant: U.value,
|
|
406
|
+
size: I.value,
|
|
407
|
+
rounded: z.value,
|
|
408
|
+
className: e.className,
|
|
409
|
+
isUpdate: e.isUpdate,
|
|
410
|
+
showRequiredAsterisk: D.value,
|
|
411
|
+
isFieldVisible: l(R),
|
|
412
|
+
isFieldDisabled: l(B),
|
|
413
|
+
isFieldReadonly: l($),
|
|
414
|
+
excludeTypes: P.value ? ["thumbnailSelector"] : [],
|
|
415
|
+
onChange: M,
|
|
416
|
+
onAddonAction: a[2] || (a[2] = (qe) => f("onAddonAction", qe))
|
|
417
|
+
}, null, 8, ["schema", "values", "errors", "fieldLoading", "variant", "size", "rounded", "className", "isUpdate", "showRequiredAsterisk", "isFieldVisible", "isFieldDisabled", "isFieldReadonly", "excludeTypes"])
|
|
418
|
+
], 2)
|
|
419
|
+
], 2));
|
|
420
|
+
return ge.memo = fe, ge;
|
|
421
|
+
}, a, 3), 128))
|
|
422
|
+
], 2)) : T.value && !u.value && e.groupLayout === "accordion" ? (n(), c("div", {
|
|
358
423
|
key: 2,
|
|
359
|
-
class:
|
|
424
|
+
class: v(e.groupContainerClass)
|
|
360
425
|
}, [
|
|
361
|
-
k(
|
|
426
|
+
k(Xe, {
|
|
362
427
|
variant: "solid",
|
|
363
|
-
items:
|
|
364
|
-
id: `form-group-${s.originalIndex}`,
|
|
365
|
-
title: W.value?.[s.originalIndex] || "",
|
|
366
|
-
description: X.value?.[s.originalIndex] || void 0
|
|
367
|
-
})),
|
|
428
|
+
items: Ae.value,
|
|
368
429
|
"allow-multiple": "",
|
|
369
|
-
class:
|
|
430
|
+
class: v(e.groupClass)
|
|
370
431
|
}, {
|
|
371
|
-
content:
|
|
372
|
-
k(
|
|
373
|
-
schema:
|
|
374
|
-
values:
|
|
375
|
-
errors:
|
|
376
|
-
fieldLoading:
|
|
377
|
-
variant:
|
|
378
|
-
size:
|
|
379
|
-
rounded:
|
|
432
|
+
content: be(({ item: s }) => [
|
|
433
|
+
k(X, {
|
|
434
|
+
schema: Te.value.get(s.id) || [],
|
|
435
|
+
values: l(m),
|
|
436
|
+
errors: l(b),
|
|
437
|
+
fieldLoading: l(V),
|
|
438
|
+
variant: U.value,
|
|
439
|
+
size: I.value,
|
|
440
|
+
rounded: z.value,
|
|
380
441
|
className: e.className,
|
|
381
442
|
isUpdate: e.isUpdate,
|
|
382
|
-
showRequiredAsterisk:
|
|
383
|
-
isFieldVisible:
|
|
384
|
-
isFieldDisabled:
|
|
385
|
-
isFieldReadonly:
|
|
386
|
-
excludeTypes:
|
|
387
|
-
onChange:
|
|
388
|
-
onAddonAction:
|
|
443
|
+
showRequiredAsterisk: D.value,
|
|
444
|
+
isFieldVisible: l(R),
|
|
445
|
+
isFieldDisabled: l(B),
|
|
446
|
+
isFieldReadonly: l($),
|
|
447
|
+
excludeTypes: P.value ? ["thumbnailSelector"] : [],
|
|
448
|
+
onChange: M,
|
|
449
|
+
onAddonAction: a[5] || (a[5] = (x) => f("onAddonAction", x))
|
|
389
450
|
}, null, 8, ["schema", "values", "errors", "fieldLoading", "variant", "size", "rounded", "className", "isUpdate", "showRequiredAsterisk", "isFieldVisible", "isFieldDisabled", "isFieldReadonly", "excludeTypes"])
|
|
390
451
|
]),
|
|
391
452
|
_: 1
|
|
392
453
|
}, 8, ["items", "class"])
|
|
393
|
-
], 2)) : u.value ? (n(),
|
|
394
|
-
e.tabs?.[r.value] ? (n(),
|
|
454
|
+
], 2)) : u.value ? (n(), c("div", ct, [
|
|
455
|
+
e.tabs?.[r.value] ? (n(), c("div", {
|
|
395
456
|
key: 0,
|
|
396
|
-
class:
|
|
457
|
+
class: v(["form-step-header mb-6", e.headerClass])
|
|
397
458
|
}, [
|
|
398
|
-
|
|
399
|
-
e.tabs[r.value].description ? (n(),
|
|
400
|
-
], 2)) :
|
|
401
|
-
k(
|
|
402
|
-
schema:
|
|
403
|
-
values:
|
|
404
|
-
errors:
|
|
405
|
-
fieldLoading:
|
|
406
|
-
variant:
|
|
407
|
-
size:
|
|
408
|
-
rounded:
|
|
459
|
+
p("h2", vt, j(e.tabs[r.value].title), 1),
|
|
460
|
+
e.tabs[r.value].description ? (n(), c("p", mt, j(e.tabs[r.value].description), 1)) : d("", !0)
|
|
461
|
+
], 2)) : d("", !0),
|
|
462
|
+
k(X, {
|
|
463
|
+
schema: ne.value,
|
|
464
|
+
values: l(m),
|
|
465
|
+
errors: l(b),
|
|
466
|
+
fieldLoading: l(V),
|
|
467
|
+
variant: U.value,
|
|
468
|
+
size: I.value,
|
|
469
|
+
rounded: z.value,
|
|
409
470
|
className: e.className,
|
|
410
471
|
isUpdate: e.isUpdate,
|
|
411
|
-
showRequiredAsterisk:
|
|
412
|
-
isFieldVisible:
|
|
413
|
-
isFieldDisabled:
|
|
414
|
-
isFieldReadonly:
|
|
415
|
-
excludeTypes:
|
|
416
|
-
onChange:
|
|
417
|
-
onAddonAction:
|
|
472
|
+
showRequiredAsterisk: D.value,
|
|
473
|
+
isFieldVisible: l(R),
|
|
474
|
+
isFieldDisabled: l(B),
|
|
475
|
+
isFieldReadonly: l($),
|
|
476
|
+
excludeTypes: P.value ? ["thumbnailSelector"] : [],
|
|
477
|
+
onChange: M,
|
|
478
|
+
onAddonAction: a[6] || (a[6] = (s) => f("onAddonAction", s))
|
|
418
479
|
}, null, 8, ["schema", "values", "errors", "fieldLoading", "variant", "size", "rounded", "className", "isUpdate", "showRequiredAsterisk", "isFieldVisible", "isFieldDisabled", "isFieldReadonly", "excludeTypes"])
|
|
419
|
-
])) :
|
|
420
|
-
k(
|
|
480
|
+
])) : d("", !0) : (n(), c("div", ot, [
|
|
481
|
+
k(X, {
|
|
421
482
|
schema: e.schema,
|
|
422
|
-
values:
|
|
423
|
-
errors:
|
|
424
|
-
fieldLoading:
|
|
425
|
-
variant:
|
|
426
|
-
size:
|
|
427
|
-
rounded:
|
|
483
|
+
values: l(m),
|
|
484
|
+
errors: l(b),
|
|
485
|
+
fieldLoading: l(V),
|
|
486
|
+
variant: U.value,
|
|
487
|
+
size: I.value,
|
|
488
|
+
rounded: z.value,
|
|
428
489
|
className: e.className,
|
|
429
490
|
isUpdate: e.isUpdate,
|
|
430
|
-
showRequiredAsterisk:
|
|
431
|
-
isFieldVisible:
|
|
432
|
-
isFieldDisabled:
|
|
433
|
-
isFieldReadonly:
|
|
434
|
-
excludeTypes:
|
|
435
|
-
layout:
|
|
436
|
-
onChange:
|
|
437
|
-
onAddonAction:
|
|
491
|
+
showRequiredAsterisk: D.value,
|
|
492
|
+
isFieldVisible: l(R),
|
|
493
|
+
isFieldDisabled: l(B),
|
|
494
|
+
isFieldReadonly: l($),
|
|
495
|
+
excludeTypes: P.value ? ["thumbnailSelector"] : [],
|
|
496
|
+
layout: i.layout,
|
|
497
|
+
onChange: M,
|
|
498
|
+
onAddonAction: a[1] || (a[1] = (s) => f("onAddonAction", s))
|
|
438
499
|
}, {
|
|
439
|
-
default:
|
|
440
|
-
|
|
441
|
-
|
|
500
|
+
default: be(() => [
|
|
501
|
+
i.layout === "inline" && e.footer ? (n(), c("div", rt, [
|
|
502
|
+
Y.value ? (n(), C(S, {
|
|
442
503
|
key: 0,
|
|
443
504
|
type: "button",
|
|
444
505
|
variant: "outline",
|
|
445
506
|
text: e.cancelText,
|
|
446
|
-
disabled: e.loading ||
|
|
447
|
-
onClick:
|
|
448
|
-
}, null, 8, ["text", "disabled"])) :
|
|
449
|
-
k(S,
|
|
507
|
+
disabled: e.loading || l(y),
|
|
508
|
+
onClick: Z
|
|
509
|
+
}, null, 8, ["text", "disabled"])) : d("", !0),
|
|
510
|
+
k(S, O({
|
|
450
511
|
type: "submit",
|
|
451
512
|
variant: "primary",
|
|
452
513
|
text: e.submitText
|
|
453
514
|
}, e.submitProps, {
|
|
454
|
-
loading: e.loading ||
|
|
515
|
+
loading: e.loading || l(y)
|
|
455
516
|
}), null, 16, ["text", "loading"])
|
|
456
|
-
])) :
|
|
517
|
+
])) : d("", !0)
|
|
457
518
|
]),
|
|
458
519
|
_: 1
|
|
459
520
|
}, 8, ["schema", "values", "errors", "fieldLoading", "variant", "size", "rounded", "className", "isUpdate", "showRequiredAsterisk", "isFieldVisible", "isFieldDisabled", "isFieldReadonly", "excludeTypes", "layout"])
|
|
460
521
|
])),
|
|
461
|
-
|
|
462
|
-
values:
|
|
463
|
-
errors:
|
|
464
|
-
isSubmitting:
|
|
465
|
-
handleSubmit:
|
|
522
|
+
he(t.$slots, "default", {
|
|
523
|
+
values: l(m),
|
|
524
|
+
errors: l(b),
|
|
525
|
+
isSubmitting: l(y),
|
|
526
|
+
handleSubmit: w
|
|
466
527
|
}, void 0, !0)
|
|
467
528
|
], 2)
|
|
468
|
-
], 2))
|
|
469
|
-
x("div", {
|
|
470
|
-
ref_key: "sentinelRef",
|
|
471
|
-
ref: J,
|
|
472
|
-
class: "form-scroll-sentinel h-px w-full",
|
|
473
|
-
"aria-hidden": "true"
|
|
474
|
-
}, null, 512)
|
|
529
|
+
], 2))
|
|
475
530
|
], 2),
|
|
476
|
-
e.footer && !e.schemaLoading &&
|
|
531
|
+
e.footer && !e.schemaLoading && i.layout !== "inline" ? (n(), c("div", {
|
|
477
532
|
key: 2,
|
|
478
533
|
ref_key: "footerRef",
|
|
479
|
-
ref:
|
|
480
|
-
class:
|
|
534
|
+
ref: F,
|
|
535
|
+
class: v([
|
|
481
536
|
"form-footer items-center gap-3 z-20 rounded-b-md!",
|
|
482
537
|
e.isPage ? "flex sm:hidden" : "flex",
|
|
483
538
|
e.footerClass,
|
|
@@ -486,71 +541,77 @@ const Me = ["onKeydown"], je = { class: "flex items-center gap-3" }, Oe = { clas
|
|
|
486
541
|
// `sticky bottom-0` anchors the footer to the bottom of the nearest scrollable ancestor
|
|
487
542
|
// (the modal's overflow-y-auto body), keeping it visible at all times without leaving
|
|
488
543
|
// the normal document flow (unlike `fixed` which would escape the modal bounds).
|
|
489
|
-
|
|
490
|
-
// Show
|
|
491
|
-
|
|
544
|
+
L.value ? "sticky bottom-0 -mx-0.5 px-0.5 mt-4" : i.layout !== "inline" ? "mt-6" : "",
|
|
545
|
+
// Show the separator for modal/explicit sticky mode, or when the default
|
|
546
|
+
// auto-sticky footer is active because its scroll container overflows.
|
|
547
|
+
we.value ? "border-t border-border/75 bg-body pt-3 pb-3 mt-6" : "",
|
|
492
548
|
// Inside modal: extend footer flush to modal edge padding
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
!z.value && U.value && t.layout !== "inline" ? "border-t border-border/75 mt-5" : "",
|
|
496
|
-
!z.value && !U.value && t.layout !== "inline" ? "mt-6" : "",
|
|
497
|
-
t.layout === "inline" ? "mt-0 shrink-0" : ""
|
|
549
|
+
E.value && i.layout !== "inline" ? "-mx-4 px-4 pb-3! mt-7.5!" : "",
|
|
550
|
+
i.layout === "inline" ? "mt-0 shrink-0" : ""
|
|
498
551
|
])
|
|
499
552
|
}, [
|
|
500
|
-
|
|
501
|
-
|
|
553
|
+
u.value && (Y.value || e.isUpdate && !N.value) ? (n(), c("div", ft, [
|
|
554
|
+
Y.value ? (n(), C(S, {
|
|
502
555
|
key: 0,
|
|
503
556
|
type: "button",
|
|
504
557
|
variant: "outline",
|
|
505
558
|
text: e.cancelText,
|
|
506
|
-
disabled: e.loading ||
|
|
507
|
-
onClick:
|
|
508
|
-
}, null, 8, ["text", "disabled"])) :
|
|
509
|
-
|
|
559
|
+
disabled: e.loading || l(y),
|
|
560
|
+
onClick: Z
|
|
561
|
+
}, null, 8, ["text", "disabled"])) : d("", !0),
|
|
562
|
+
e.isUpdate && !N.value ? (n(), C(S, O({
|
|
510
563
|
key: 1,
|
|
511
564
|
type: "button",
|
|
512
565
|
variant: "primary",
|
|
513
566
|
text: e.submitText
|
|
514
567
|
}, e.submitProps, {
|
|
515
|
-
loading: e.loading ||
|
|
516
|
-
onClick:
|
|
517
|
-
}), null, 16, ["text", "loading"])) :
|
|
518
|
-
])) :
|
|
519
|
-
|
|
520
|
-
class:
|
|
568
|
+
loading: e.loading || l(y),
|
|
569
|
+
onClick: w
|
|
570
|
+
}), null, 16, ["text", "loading"])) : d("", !0)
|
|
571
|
+
])) : d("", !0),
|
|
572
|
+
p("div", {
|
|
573
|
+
class: v(["flex gap-3 items-center", [
|
|
521
574
|
u.value && "ml-auto",
|
|
522
|
-
!u.value ||
|
|
575
|
+
!u.value || N.value ? "w-full justify-end" : ""
|
|
523
576
|
]])
|
|
524
577
|
}, [
|
|
525
|
-
|
|
578
|
+
Y.value && !u.value ? (n(), C(S, {
|
|
526
579
|
key: 0,
|
|
527
580
|
type: "button",
|
|
528
581
|
variant: "outline",
|
|
582
|
+
text: e.cancelText,
|
|
583
|
+
disabled: e.loading || l(y),
|
|
584
|
+
onClick: Z
|
|
585
|
+
}, null, 8, ["text", "disabled"])) : d("", !0),
|
|
586
|
+
u.value && de.value ? (n(), C(S, {
|
|
587
|
+
key: 1,
|
|
588
|
+
type: "button",
|
|
589
|
+
variant: "outline",
|
|
529
590
|
icon: "lucide:arrow-left",
|
|
530
591
|
text: "Previous",
|
|
531
|
-
onClick:
|
|
532
|
-
})) :
|
|
533
|
-
u.value && !
|
|
534
|
-
key:
|
|
592
|
+
onClick: Ne
|
|
593
|
+
})) : d("", !0),
|
|
594
|
+
u.value && !N.value ? (n(), C(S, {
|
|
595
|
+
key: 2,
|
|
535
596
|
type: "button",
|
|
536
597
|
variant: e.isUpdate ? "outline" : "primary",
|
|
537
598
|
text: "Next",
|
|
538
599
|
iconRight: "lucide:arrow-right",
|
|
539
|
-
onClick:
|
|
540
|
-
}, null, 8, ["variant"])) :
|
|
541
|
-
!u.value ||
|
|
542
|
-
key:
|
|
600
|
+
onClick: ce
|
|
601
|
+
}, null, 8, ["variant"])) : d("", !0),
|
|
602
|
+
!u.value || N.value ? (n(), C(S, O({
|
|
603
|
+
key: 3,
|
|
543
604
|
type: "submit",
|
|
544
605
|
variant: "primary",
|
|
545
606
|
text: e.submitText
|
|
546
607
|
}, e.submitProps, {
|
|
547
|
-
loading: e.loading ||
|
|
548
|
-
}), null, 16, ["text", "loading"])) :
|
|
608
|
+
loading: e.loading || l(y)
|
|
609
|
+
}), null, 16, ["text", "loading"])) : d("", !0)
|
|
549
610
|
], 2)
|
|
550
|
-
], 2)) :
|
|
551
|
-
], 42,
|
|
611
|
+
], 2)) : d("", !0)
|
|
612
|
+
], 42, lt));
|
|
552
613
|
}
|
|
553
614
|
});
|
|
554
615
|
export {
|
|
555
|
-
|
|
616
|
+
Pt as default
|
|
556
617
|
};
|