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