bt-core-app 2.2.6 → 2.2.8
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/dist/bt-core/core/node_modules/vuetify/lib/components/transitions/index.mjs +10 -11
- package/dist/components/BT-Assistant-Menu.vue.mjs +402 -404
- package/dist/components/BT-Background-Task.vue.mjs +44 -46
- package/dist/components/BT-Blade-Item.vue.mjs +64 -63
- package/dist/components/BT-Blade-Items.vue.mjs +2 -2
- package/dist/components/BT-Blade-Items.vue2.mjs +239 -238
- package/dist/components/BT-Blade-Steps.vue.mjs +2 -2
- package/dist/components/BT-Blade-Steps.vue2.mjs +457 -456
- package/dist/components/BT-Blade.vue.mjs +187 -189
- package/dist/components/BT-Camera-Overlay.vue.mjs +139 -141
- package/dist/components/BT-Cron.vue.mjs +127 -126
- package/dist/components/BT-Dialog-Select.vue.mjs +91 -90
- package/dist/components/BT-Drag-Counter.vue.mjs +2 -2
- package/dist/components/BT-Drag-Counter.vue2.mjs +87 -89
- package/dist/components/BT-Entity.vue.mjs +79 -81
- package/dist/components/BT-Error.vue.mjs +23 -25
- package/dist/components/BT-Form-Builder.vue.mjs +221 -220
- package/dist/components/BT-Form-Field.vue.mjs +67 -66
- package/dist/components/BT-Form.vue.mjs +192 -191
- package/dist/components/BT-Header-Option.vue.mjs +21 -20
- package/dist/components/BT-Numpad.vue.mjs +143 -145
- package/dist/components/BT-Select-List-Box.vue.mjs +270 -272
- package/dist/components/BT-Signature-Overlay.vue.mjs +107 -109
- package/dist/components/BT-Signature.vue.mjs +91 -93
- package/dist/components/BT-Slider.vue.mjs +91 -93
- package/dist/components/BT-Square-Check.vue.mjs +66 -68
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import { isNullOrEmpty as
|
|
1
|
+
import { defineComponent as ue, ref as j, computed as S, watch as G, onMounted as de, resolveComponent as ve, openBlock as o, createBlock as v, unref as l, normalizeStyle as b, withCtx as n, createVNode as a, renderSlot as c, createElementBlock as m, Fragment as w, renderList as N, createElementVNode as p, toDisplayString as $, withModifiers as K, createCommentVNode as i } from "vue";
|
|
2
|
+
import Q from "./BT-Form-Field.vue.mjs";
|
|
3
|
+
import { isNullOrEmpty as T, isLengthyArray as Z } from "../composables/helpers.mjs";
|
|
4
4
|
import { useResponsiveStyle as me } from "../composables/heights.mjs";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { VContainer as
|
|
8
|
-
import { VCard as
|
|
5
|
+
import x from "./BT-Loader.vue.mjs";
|
|
6
|
+
import _ from "./BT-Error.vue.mjs";
|
|
7
|
+
import { VContainer as A } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VContainer.mjs";
|
|
8
|
+
import { VCard as ee } from "../bt-core/core/node_modules/vuetify/lib/components/VCard/VCard.mjs";
|
|
9
9
|
import { VWindow as oe } from "../bt-core/core/node_modules/vuetify/lib/components/VWindow/VWindow.mjs";
|
|
10
|
-
import { VWindowItem as
|
|
11
|
-
import { VForm as
|
|
12
|
-
import { VToolbar as
|
|
10
|
+
import { VWindowItem as P } from "../bt-core/core/node_modules/vuetify/lib/components/VWindow/VWindowItem.mjs";
|
|
11
|
+
import { VForm as le } from "../bt-core/core/node_modules/vuetify/lib/components/VForm/VForm.mjs";
|
|
12
|
+
import { VToolbar as J } from "../bt-core/core/node_modules/vuetify/lib/components/VToolbar/VToolbar.mjs";
|
|
13
13
|
import { VBtn as f } from "../bt-core/core/node_modules/vuetify/lib/components/VBtn/VBtn.mjs";
|
|
14
14
|
import { VSpacer as B } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VSpacer.mjs";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
15
|
+
import { VSlideXTransition as ae, VSlideYReverseTransition as U } from "../bt-core/core/node_modules/vuetify/lib/components/transitions/index.mjs";
|
|
16
|
+
import { VDivider as se } from "../bt-core/core/node_modules/vuetify/lib/components/VDivider/VDivider.mjs";
|
|
17
|
+
import { VCol as re } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VCol.mjs";
|
|
17
18
|
const ce = { class: "text-h6 ml-3" }, fe = {
|
|
18
19
|
key: 0,
|
|
19
20
|
class: "d-flex justify-center mr-6"
|
|
@@ -38,16 +39,16 @@ const ce = { class: "text-h6 ml-3" }, fe = {
|
|
|
38
39
|
}, Me = {
|
|
39
40
|
key: 2,
|
|
40
41
|
class: "text-error"
|
|
41
|
-
}, Ee = { class: "text-h6 ml-3" },
|
|
42
|
+
}, Ee = { class: "text-h6 ml-3" }, Ve = {
|
|
42
43
|
key: 0,
|
|
43
44
|
class: "d-flex justify-center mr-6"
|
|
44
|
-
},
|
|
45
|
+
}, we = { class: "d-flex align-center" }, Ne = {
|
|
45
46
|
key: 0,
|
|
46
47
|
class: "text-error"
|
|
47
|
-
},
|
|
48
|
+
}, Te = { class: "text-h6 ml-3" }, ze = {
|
|
48
49
|
key: 0,
|
|
49
50
|
class: "d-flex justify-center mr-6"
|
|
50
|
-
},
|
|
51
|
+
}, Ke = /* @__PURE__ */ ue({
|
|
51
52
|
__name: "BT-Form",
|
|
52
53
|
props: {
|
|
53
54
|
actualUsedHeight: { default: 0 },
|
|
@@ -67,99 +68,99 @@ const ce = { class: "text-h6 ml-3" }, fe = {
|
|
|
67
68
|
useSchemaStyles: { type: Boolean, default: !0 },
|
|
68
69
|
variant: {}
|
|
69
70
|
},
|
|
70
|
-
setup(
|
|
71
|
-
const
|
|
71
|
+
setup(ne) {
|
|
72
|
+
const s = ne, z = j(), ie = S(() => JSON.stringify(s.data)), q = S(() => ie.value != z.value), { style: H } = me({
|
|
72
73
|
getUsedHeight() {
|
|
73
|
-
var e = 64 +
|
|
74
|
+
var e = 64 + s.actualUsedHeight + (R.value == "half-and-half" ? 0 : 32);
|
|
74
75
|
return e;
|
|
75
76
|
},
|
|
76
77
|
overflow: !0
|
|
77
|
-
}), R =
|
|
78
|
+
}), R = S(() => s.variant ?? s.schema.variant ?? "basic"), r = j(0), M = j(), V = j(!1), E = j(), F = S(() => s.isEditing && !V.value), g = S(() => {
|
|
78
79
|
var t;
|
|
79
|
-
if (!
|
|
80
|
+
if (!s.useSchemaStyles)
|
|
80
81
|
return;
|
|
81
|
-
let e = ((t =
|
|
82
|
-
return
|
|
83
|
-
}),
|
|
82
|
+
let e = ((t = s.overrideSchema) == null ? void 0 : t.logoSrc) ?? s.schema.logoSrc;
|
|
83
|
+
return T(e) ? void 0 : e;
|
|
84
|
+
}), L = S(() => {
|
|
84
85
|
var t;
|
|
85
|
-
if (!
|
|
86
|
+
if (!s.useSchemaStyles)
|
|
86
87
|
return;
|
|
87
|
-
let e = ((t =
|
|
88
|
-
if (!
|
|
88
|
+
let e = ((t = s.overrideSchema) == null ? void 0 : t.bgSrc) ?? s.schema.bgSrc;
|
|
89
|
+
if (!T(e))
|
|
89
90
|
return `background: url("${e}") no-repeat top center fixed; -webkit-background-size: cover; -moz-background-size: cover; background-size: cover; -o-background-size: cover; min-height: 100%;`;
|
|
90
91
|
});
|
|
91
|
-
var
|
|
92
|
+
var I = S(() => {
|
|
92
93
|
var t;
|
|
93
|
-
if (
|
|
94
|
-
var e = ((t =
|
|
95
|
-
if (!
|
|
94
|
+
if (s.useSchemaStyles) {
|
|
95
|
+
var e = ((t = s.overrideSchema) == null ? void 0 : t.bgColor) ?? s.schema.bgColor;
|
|
96
|
+
if (!T(e))
|
|
96
97
|
return `background-color: ${e};`;
|
|
97
98
|
}
|
|
98
|
-
}),
|
|
99
|
+
}), W = S(() => {
|
|
99
100
|
var t;
|
|
100
|
-
if (
|
|
101
|
-
var e = ((t =
|
|
102
|
-
return
|
|
101
|
+
if (s.useSchemaStyles) {
|
|
102
|
+
var e = ((t = s.overrideSchema) == null ? void 0 : t.theme) ?? s.schema.theme;
|
|
103
|
+
return T(e) ? void 0 : e;
|
|
103
104
|
}
|
|
104
|
-
}),
|
|
105
|
+
}), D = S(() => {
|
|
105
106
|
var t;
|
|
106
|
-
if (
|
|
107
|
-
var e = ((t =
|
|
108
|
-
return
|
|
107
|
+
if (s.useSchemaStyles) {
|
|
108
|
+
var e = ((t = s.overrideSchema) == null ? void 0 : t.ctlColor) ?? s.schema.ctlColor;
|
|
109
|
+
return T(e) ? void 0 : e;
|
|
109
110
|
}
|
|
110
111
|
});
|
|
111
|
-
async function
|
|
112
|
-
E.value = "Saving Progress", M.value =
|
|
112
|
+
async function X() {
|
|
113
|
+
E.value = "Saving Progress", M.value = s.onSaveAsync != null ? await s.onSaveAsync() : void 0, E.value = void 0, z.value = JSON.stringify(s.data);
|
|
113
114
|
}
|
|
114
|
-
async function
|
|
115
|
-
E.value = "Submitting", M.value =
|
|
115
|
+
async function Y() {
|
|
116
|
+
E.value = "Submitting", M.value = s.onSubmitAsync != null ? await s.onSubmitAsync() : void 0, E.value = void 0, M.value == null && (r.value++, V.value = !0);
|
|
116
117
|
}
|
|
117
|
-
function
|
|
118
|
-
if (
|
|
119
|
-
var t = Object.keys(
|
|
120
|
-
console.log(t), console.log(
|
|
121
|
-
|
|
118
|
+
function te(e) {
|
|
119
|
+
if (s.data != null) {
|
|
120
|
+
var t = Object.keys(s.data), C = e ? s.schema.slides.flatMap((d) => d.fields.filter((h) => !!h.remember && h.prop != null).map((h) => h.prop)) : [];
|
|
121
|
+
console.log(t), console.log(C), console.log(s.schema), t.forEach((d) => {
|
|
122
|
+
C.some((h) => h == d) || (console.log(d), s.data[d] = void 0);
|
|
122
123
|
});
|
|
123
124
|
}
|
|
124
|
-
console.log(
|
|
125
|
+
console.log(s.data), V.value = !1, r.value = 0, z.value = JSON.stringify(s.data), M.value = void 0;
|
|
125
126
|
}
|
|
126
|
-
return
|
|
127
|
-
console.log("reseting with memory"),
|
|
128
|
-
}),
|
|
129
|
-
console.log("reseting"),
|
|
130
|
-
}),
|
|
131
|
-
|
|
132
|
-
}, { deep: !1 }),
|
|
133
|
-
|
|
127
|
+
return G(() => s.resetRememberToggle, () => {
|
|
128
|
+
console.log("reseting with memory"), te(!0);
|
|
129
|
+
}), G(() => s.resetToggle, () => {
|
|
130
|
+
console.log("reseting"), te(!1);
|
|
131
|
+
}), G(() => s.data, (e) => {
|
|
132
|
+
z.value = JSON.stringify(e);
|
|
133
|
+
}, { deep: !1 }), de(() => {
|
|
134
|
+
z.value = JSON.stringify(s.data);
|
|
134
135
|
}), (e, t) => {
|
|
135
|
-
const
|
|
136
|
-
return e.schema != null && R.value == "basic" ? (
|
|
136
|
+
const C = ve("bt-avatar");
|
|
137
|
+
return e.schema != null && R.value == "basic" ? (o(), v(l(A), {
|
|
137
138
|
key: 0,
|
|
138
139
|
class: "ma-0 pa-0",
|
|
139
140
|
fluid: "",
|
|
140
|
-
style:
|
|
141
|
+
style: b(L.value)
|
|
141
142
|
}, {
|
|
142
143
|
default: n(() => [
|
|
143
|
-
a(l(
|
|
144
|
+
a(l(A), { class: "ma-0 pa-0" }, {
|
|
144
145
|
default: n(() => [
|
|
145
|
-
a(l(
|
|
146
|
+
a(l(ee), {
|
|
146
147
|
class: "mx-100",
|
|
147
148
|
"max-width": "900",
|
|
148
|
-
style:
|
|
149
|
-
theme: l(
|
|
149
|
+
style: b(l(I)),
|
|
150
|
+
theme: l(W)
|
|
150
151
|
}, {
|
|
151
152
|
default: n(() => [
|
|
152
153
|
c(e.$slots, "top"),
|
|
153
154
|
a(l(oe), {
|
|
154
155
|
modelValue: r.value,
|
|
155
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
156
|
+
"onUpdate:modelValue": t[5] || (t[5] = (d) => r.value = d)
|
|
156
157
|
}, {
|
|
157
158
|
default: n(() => [
|
|
158
|
-
(
|
|
159
|
+
(o(!0), m(w, null, N(e.schema.slides, (d, h) => (o(), v(l(P), { key: h }, {
|
|
159
160
|
default: n(() => [
|
|
160
|
-
a(l(
|
|
161
|
-
default: n(({ errors:
|
|
162
|
-
e.hideHeader !== !0 ? (
|
|
161
|
+
a(l(le), null, {
|
|
162
|
+
default: n(({ errors: y, isValid: k }) => [
|
|
163
|
+
e.hideHeader !== !0 ? (o(), v(l(J), {
|
|
163
164
|
key: 0,
|
|
164
165
|
color: "transparent"
|
|
165
166
|
}, {
|
|
@@ -175,17 +176,17 @@ const ce = { class: "text-h6 ml-3" }, fe = {
|
|
|
175
176
|
a(l(f), {
|
|
176
177
|
icon: "$chevron-right",
|
|
177
178
|
onClick: t[1] || (t[1] = (u) => r.value++),
|
|
178
|
-
disabled: !
|
|
179
|
+
disabled: !k.value || r.value >= e.schema.slides.length - 1,
|
|
179
180
|
variant: "text"
|
|
180
181
|
}, null, 8, ["disabled"]),
|
|
181
|
-
|
|
182
|
+
p("div", ce, $(e.label ?? e.schema.title), 1),
|
|
182
183
|
a(l(B)),
|
|
183
184
|
c(e.$slots, "form-toolbar-right", { schema: e.schema }),
|
|
184
|
-
a(
|
|
185
|
+
a(l(ae), null, {
|
|
185
186
|
default: n(() => [
|
|
186
|
-
|
|
187
|
+
q.value && e.canSaveProgress !== !1 ? (o(), v(l(f), {
|
|
187
188
|
key: 0,
|
|
188
|
-
onClick:
|
|
189
|
+
onClick: K(X, ["stop"]),
|
|
189
190
|
class: "mr-4",
|
|
190
191
|
"prepend-icon": "$content-save",
|
|
191
192
|
size: "small",
|
|
@@ -195,8 +196,8 @@ const ce = { class: "text-h6 ml-3" }, fe = {
|
|
|
195
196
|
]),
|
|
196
197
|
_: 1
|
|
197
198
|
}),
|
|
198
|
-
g.value != null ? (
|
|
199
|
-
g.value != null ? (
|
|
199
|
+
g.value != null ? (o(), m("div", fe, [
|
|
200
|
+
g.value != null ? (o(), v(C, {
|
|
200
201
|
key: 0,
|
|
201
202
|
src: g.value
|
|
202
203
|
}, null, 8, ["src"])) : i("", !0)
|
|
@@ -205,40 +206,40 @@ const ce = { class: "text-h6 ml-3" }, fe = {
|
|
|
205
206
|
]),
|
|
206
207
|
_: 2
|
|
207
208
|
}, 1024)) : i("", !0),
|
|
208
|
-
|
|
209
|
-
style:
|
|
209
|
+
p("div", {
|
|
210
|
+
style: b(e.useScroll ? l(H) : void 0)
|
|
210
211
|
}, [
|
|
211
|
-
a(
|
|
212
|
-
a(
|
|
213
|
-
c(e.$slots,
|
|
212
|
+
a(_, { errorMsg: M.value }, null, 8, ["errorMsg"]),
|
|
213
|
+
a(x, { loadingMsg: E.value }, null, 8, ["loadingMsg"]),
|
|
214
|
+
c(e.$slots, d.name, {
|
|
214
215
|
data: e.data,
|
|
215
|
-
slide:
|
|
216
|
+
slide: d
|
|
216
217
|
}, () => [
|
|
217
|
-
(
|
|
218
|
+
(o(!0), m(w, null, N(d.fields, (u, O) => (o(), m("div", { key: O }, [
|
|
218
219
|
c(e.$slots, u.prop, {
|
|
219
220
|
data: e.data,
|
|
220
221
|
field: u,
|
|
221
222
|
variant: "text"
|
|
222
223
|
}, () => [
|
|
223
|
-
a(
|
|
224
|
+
a(Q, {
|
|
224
225
|
data: e.data,
|
|
225
226
|
field: u,
|
|
226
|
-
isEditing:
|
|
227
|
+
isEditing: F.value,
|
|
227
228
|
variant: "text"
|
|
228
229
|
}, null, 8, ["data", "field", "isEditing"])
|
|
229
230
|
])
|
|
230
231
|
]))), 128))
|
|
231
232
|
]),
|
|
232
|
-
|
|
233
|
-
a(
|
|
233
|
+
p("div", ge, [
|
|
234
|
+
a(l(U), {
|
|
234
235
|
group: "",
|
|
235
236
|
"hide-on-leave": ""
|
|
236
237
|
}, {
|
|
237
238
|
default: n(() => [
|
|
238
|
-
r.value != 0 ? (
|
|
239
|
+
r.value != 0 ? (o(), v(l(f), {
|
|
239
240
|
onClick: t[2] || (t[2] = (u) => r.value--),
|
|
240
241
|
class: "ma-4",
|
|
241
|
-
color: l(
|
|
242
|
+
color: l(D),
|
|
242
243
|
key: "1",
|
|
243
244
|
text: "Back"
|
|
244
245
|
}, null, 8, ["color"])) : i("", !0)
|
|
@@ -246,23 +247,23 @@ const ce = { class: "text-h6 ml-3" }, fe = {
|
|
|
246
247
|
_: 1
|
|
247
248
|
}),
|
|
248
249
|
a(l(B)),
|
|
249
|
-
a(
|
|
250
|
+
a(l(U), {
|
|
250
251
|
group: "",
|
|
251
252
|
"hide-on-leave": ""
|
|
252
253
|
}, {
|
|
253
254
|
default: n(() => [
|
|
254
|
-
r.value < e.schema.slides.length - 1 ? (
|
|
255
|
+
r.value < e.schema.slides.length - 1 ? (o(), v(l(f), {
|
|
255
256
|
onClick: t[3] || (t[3] = (u) => r.value++),
|
|
256
257
|
class: "ma-4",
|
|
257
|
-
color: l(
|
|
258
|
-
disabled:
|
|
258
|
+
color: l(D),
|
|
259
|
+
disabled: d.fields.filter((u) => !!u.isRequired).length > 0 && !k.value,
|
|
259
260
|
key: "1",
|
|
260
261
|
text: "Next"
|
|
261
|
-
}, null, 8, ["color", "disabled"])) : e.isEditing && e.canSubmit && !
|
|
262
|
-
onClick:
|
|
262
|
+
}, null, 8, ["color", "disabled"])) : e.isEditing && e.canSubmit && !V.value && r.value >= e.schema.slides.length - 1 ? (o(), v(l(f), {
|
|
263
|
+
onClick: Y,
|
|
263
264
|
class: "ma-4",
|
|
264
|
-
color: l(
|
|
265
|
-
disabled:
|
|
265
|
+
color: l(D),
|
|
266
|
+
disabled: d.fields.filter((u) => !!u.isRequired).length > 0 && !k.value,
|
|
266
267
|
key: "2",
|
|
267
268
|
text: "Submit"
|
|
268
269
|
}, null, 8, ["color", "disabled"])) : i("", !0)
|
|
@@ -270,7 +271,7 @@ const ce = { class: "text-h6 ml-3" }, fe = {
|
|
|
270
271
|
_: 2
|
|
271
272
|
}, 1024)
|
|
272
273
|
]),
|
|
273
|
-
l(
|
|
274
|
+
l(Z)(y) ? (o(), m("div", he, $(y), 1)) : i("", !0)
|
|
274
275
|
], 4)
|
|
275
276
|
]),
|
|
276
277
|
_: 2
|
|
@@ -278,23 +279,23 @@ const ce = { class: "text-h6 ml-3" }, fe = {
|
|
|
278
279
|
]),
|
|
279
280
|
_: 2
|
|
280
281
|
}, 1024))), 128)),
|
|
281
|
-
a(l(
|
|
282
|
+
a(l(P), null, {
|
|
282
283
|
default: n(() => [
|
|
283
|
-
e.hideHeader !== !0 ? (
|
|
284
|
+
e.hideHeader !== !0 ? (o(), v(l(J), {
|
|
284
285
|
key: 0,
|
|
285
286
|
color: "transparent"
|
|
286
287
|
}, {
|
|
287
288
|
default: n(() => [
|
|
288
289
|
a(l(f), {
|
|
289
290
|
icon: "$chevron-left",
|
|
290
|
-
onClick: t[4] || (t[4] = (
|
|
291
|
+
onClick: t[4] || (t[4] = (d) => r.value--),
|
|
291
292
|
disabled: r.value == 0,
|
|
292
293
|
variant: "text"
|
|
293
294
|
}, null, 8, ["disabled"]),
|
|
294
|
-
|
|
295
|
+
p("div", ye, $(e.label ?? e.schema.title), 1),
|
|
295
296
|
a(l(B)),
|
|
296
|
-
g.value != null ? (
|
|
297
|
-
g.value != null ? (
|
|
297
|
+
g.value != null ? (o(), m("div", pe, [
|
|
298
|
+
g.value != null ? (o(), v(C, {
|
|
298
299
|
key: 0,
|
|
299
300
|
src: g.value
|
|
300
301
|
}, null, 8, ["src"])) : i("", !0)
|
|
@@ -302,8 +303,8 @@ const ce = { class: "text-h6 ml-3" }, fe = {
|
|
|
302
303
|
]),
|
|
303
304
|
_: 1
|
|
304
305
|
})) : i("", !0),
|
|
305
|
-
|
|
306
|
-
style:
|
|
306
|
+
p("div", {
|
|
307
|
+
style: b(e.useScroll ? l(H) : void 0),
|
|
307
308
|
class: "d-flex flex-column align-center justify-center"
|
|
308
309
|
}, " Done! Thankyou. ", 4)
|
|
309
310
|
]),
|
|
@@ -320,26 +321,26 @@ const ce = { class: "text-h6 ml-3" }, fe = {
|
|
|
320
321
|
})
|
|
321
322
|
]),
|
|
322
323
|
_: 3
|
|
323
|
-
}, 8, ["style"])) : e.schema != null && R.value == "single-page" ? (
|
|
324
|
+
}, 8, ["style"])) : e.schema != null && R.value == "single-page" ? (o(), v(l(A), {
|
|
324
325
|
key: 1,
|
|
325
326
|
class: "ma-0 pa-0",
|
|
326
327
|
fluid: "",
|
|
327
|
-
style:
|
|
328
|
+
style: b(L.value)
|
|
328
329
|
}, {
|
|
329
330
|
default: n(() => [
|
|
330
|
-
a(l(
|
|
331
|
+
a(l(A), { class: "ma-0 pa-0" }, {
|
|
331
332
|
default: n(() => [
|
|
332
|
-
a(l(
|
|
333
|
-
default: n(({ errors:
|
|
334
|
-
a(l(
|
|
333
|
+
a(l(le), null, {
|
|
334
|
+
default: n(({ errors: d, isValid: h }) => [
|
|
335
|
+
a(l(ee), {
|
|
335
336
|
class: "mx-100",
|
|
336
337
|
"max-width": "900",
|
|
337
|
-
style:
|
|
338
|
-
theme: l(
|
|
338
|
+
style: b(l(I)),
|
|
339
|
+
theme: l(W)
|
|
339
340
|
}, {
|
|
340
341
|
default: n(() => [
|
|
341
342
|
c(e.$slots, "top"),
|
|
342
|
-
e.hideHeader !== !0 ? (
|
|
343
|
+
e.hideHeader !== !0 ? (o(), v(l(J), {
|
|
343
344
|
key: 0,
|
|
344
345
|
color: "transparent"
|
|
345
346
|
}, {
|
|
@@ -348,24 +349,24 @@ const ce = { class: "text-h6 ml-3" }, fe = {
|
|
|
348
349
|
c(e.$slots, "form-toolbar-left"),
|
|
349
350
|
a(l(f), {
|
|
350
351
|
icon: "$chevron-left",
|
|
351
|
-
onClick: t[6] || (t[6] = (
|
|
352
|
+
onClick: t[6] || (t[6] = (y) => r.value--),
|
|
352
353
|
disabled: r.value == 0,
|
|
353
354
|
variant: "text"
|
|
354
355
|
}, null, 8, ["disabled"]),
|
|
355
356
|
a(l(f), {
|
|
356
357
|
icon: "$chevron-right",
|
|
357
|
-
onClick: t[7] || (t[7] = (
|
|
358
|
-
disabled: !
|
|
358
|
+
onClick: t[7] || (t[7] = (y) => r.value++),
|
|
359
|
+
disabled: !h.value || r.value >= e.schema.slides.length - 1,
|
|
359
360
|
variant: "text"
|
|
360
361
|
}, null, 8, ["disabled"]),
|
|
361
|
-
|
|
362
|
+
p("div", be, $(e.label ?? e.schema.title), 1),
|
|
362
363
|
a(l(B)),
|
|
363
364
|
c(e.$slots, "form-toolbar-right"),
|
|
364
|
-
a(
|
|
365
|
+
a(l(ae), null, {
|
|
365
366
|
default: n(() => [
|
|
366
|
-
|
|
367
|
+
q.value && e.canSaveProgress !== !1 ? (o(), v(l(f), {
|
|
367
368
|
key: 0,
|
|
368
|
-
onClick:
|
|
369
|
+
onClick: K(X, ["stop"]),
|
|
369
370
|
class: "mr-4",
|
|
370
371
|
"prepend-icon": "$content-save",
|
|
371
372
|
size: "small",
|
|
@@ -375,8 +376,8 @@ const ce = { class: "text-h6 ml-3" }, fe = {
|
|
|
375
376
|
]),
|
|
376
377
|
_: 1
|
|
377
378
|
}),
|
|
378
|
-
g.value != null ? (
|
|
379
|
-
g.value != null ? (
|
|
379
|
+
g.value != null ? (o(), m("div", ke, [
|
|
380
|
+
g.value != null ? (o(), v(C, {
|
|
380
381
|
key: 0,
|
|
381
382
|
src: g.value
|
|
382
383
|
}, null, 8, ["src"])) : i("", !0)
|
|
@@ -385,48 +386,48 @@ const ce = { class: "text-h6 ml-3" }, fe = {
|
|
|
385
386
|
]),
|
|
386
387
|
_: 2
|
|
387
388
|
}, 1024)) : i("", !0),
|
|
388
|
-
|
|
389
|
-
style:
|
|
389
|
+
p("div", {
|
|
390
|
+
style: b(e.useScroll ? l(H) : void 0)
|
|
390
391
|
}, [
|
|
391
|
-
a(
|
|
392
|
-
a(
|
|
393
|
-
(
|
|
394
|
-
l(
|
|
395
|
-
a(l(
|
|
396
|
-
|
|
397
|
-
a(l(
|
|
392
|
+
a(_, { errorMsg: M.value }, null, 8, ["errorMsg"]),
|
|
393
|
+
a(x, { loadingMsg: E.value }, null, 8, ["loadingMsg"]),
|
|
394
|
+
(o(!0), m(w, null, N(e.schema.slides, (y, k) => (o(), m("div", { key: k }, [
|
|
395
|
+
l(T)(y.name) ? i("", !0) : (o(), m("div", Se, [
|
|
396
|
+
a(l(se), { style: { "max-width": "50px" } }),
|
|
397
|
+
p("div", $e, $(y.name), 1),
|
|
398
|
+
a(l(se))
|
|
398
399
|
])),
|
|
399
|
-
c(e.$slots,
|
|
400
|
+
c(e.$slots, y.name, {
|
|
400
401
|
data: e.data,
|
|
401
|
-
slide:
|
|
402
|
+
slide: y
|
|
402
403
|
}, () => [
|
|
403
|
-
(
|
|
404
|
+
(o(!0), m(w, null, N(y.fields, (u, O) => (o(), m("div", { key: O }, [
|
|
404
405
|
c(e.$slots, u.prop, {
|
|
405
406
|
data: e.data,
|
|
406
407
|
field: u,
|
|
407
408
|
variant: "text"
|
|
408
409
|
}, () => [
|
|
409
|
-
a(
|
|
410
|
+
a(Q, {
|
|
410
411
|
data: e.data,
|
|
411
412
|
field: u,
|
|
412
|
-
isEditing:
|
|
413
|
+
isEditing: F.value,
|
|
413
414
|
variant: "text"
|
|
414
415
|
}, null, 8, ["data", "field", "isEditing"])
|
|
415
416
|
])
|
|
416
417
|
]))), 128))
|
|
417
418
|
])
|
|
418
419
|
]))), 128)),
|
|
419
|
-
e.isEditing && e.canSubmit ? (
|
|
420
|
+
e.isEditing && e.canSubmit ? (o(), m("div", Ce, [
|
|
420
421
|
a(l(B)),
|
|
421
|
-
|
|
422
|
+
V.value ? (o(), m("div", Be, " Done. Thankyou! ")) : (o(), v(l(f), {
|
|
422
423
|
key: 0,
|
|
423
|
-
onClick:
|
|
424
|
+
onClick: Y,
|
|
424
425
|
class: "ma-4",
|
|
425
|
-
color: l(
|
|
426
|
-
disabled: !
|
|
426
|
+
color: l(D),
|
|
427
|
+
disabled: !h.value,
|
|
427
428
|
text: "Submit"
|
|
428
429
|
}, null, 8, ["color", "disabled"])),
|
|
429
|
-
l(
|
|
430
|
+
l(Z)(d) ? (o(), m("div", Me, $(d), 1)) : i("", !0)
|
|
430
431
|
])) : i("", !0)
|
|
431
432
|
], 4)
|
|
432
433
|
]),
|
|
@@ -440,37 +441,37 @@ const ce = { class: "text-h6 ml-3" }, fe = {
|
|
|
440
441
|
})
|
|
441
442
|
]),
|
|
442
443
|
_: 3
|
|
443
|
-
}, 8, ["style"])) : e.schema != null && R.value == "half-and-half" ? (
|
|
444
|
+
}, 8, ["style"])) : e.schema != null && R.value == "half-and-half" ? (o(), v(l(A), {
|
|
444
445
|
key: 2,
|
|
445
446
|
class: "pa-0 ma-0",
|
|
446
447
|
fluid: "",
|
|
447
|
-
style:
|
|
448
|
+
style: b(L.value)
|
|
448
449
|
}, {
|
|
449
450
|
default: n(() => [
|
|
450
|
-
a(l(
|
|
451
|
+
a(l(re), {
|
|
451
452
|
class: "pa-0",
|
|
452
453
|
cols: "12",
|
|
453
454
|
md: "6"
|
|
454
455
|
}, {
|
|
455
456
|
default: n(() => [
|
|
456
|
-
a(l(
|
|
457
|
+
a(l(ee), {
|
|
457
458
|
class: "w-100",
|
|
458
|
-
style:
|
|
459
|
+
style: b(l(I)),
|
|
459
460
|
tile: "",
|
|
460
|
-
theme: l(
|
|
461
|
+
theme: l(W)
|
|
461
462
|
}, {
|
|
462
463
|
default: n(() => [
|
|
463
464
|
c(e.$slots, "top"),
|
|
464
465
|
a(l(oe), {
|
|
465
466
|
modelValue: r.value,
|
|
466
|
-
"onUpdate:modelValue": t[13] || (t[13] = (
|
|
467
|
+
"onUpdate:modelValue": t[13] || (t[13] = (d) => r.value = d)
|
|
467
468
|
}, {
|
|
468
469
|
default: n(() => [
|
|
469
|
-
(
|
|
470
|
+
(o(!0), m(w, null, N(e.schema.slides, (d, h) => (o(), v(l(P), { key: h }, {
|
|
470
471
|
default: n(() => [
|
|
471
|
-
a(l(
|
|
472
|
-
default: n(({ errors:
|
|
473
|
-
e.hideHeader !== !0 ? (
|
|
472
|
+
a(l(le), null, {
|
|
473
|
+
default: n(({ errors: y, isValid: k }) => [
|
|
474
|
+
e.hideHeader !== !0 ? (o(), v(l(J), {
|
|
474
475
|
key: 0,
|
|
475
476
|
color: "transparent"
|
|
476
477
|
}, {
|
|
@@ -486,17 +487,17 @@ const ce = { class: "text-h6 ml-3" }, fe = {
|
|
|
486
487
|
a(l(f), {
|
|
487
488
|
icon: "$chevron-right",
|
|
488
489
|
onClick: t[9] || (t[9] = (u) => r.value++),
|
|
489
|
-
disabled: !
|
|
490
|
+
disabled: !k.value || r.value >= e.schema.slides.length - 1,
|
|
490
491
|
variant: "text"
|
|
491
492
|
}, null, 8, ["disabled"]),
|
|
492
|
-
|
|
493
|
+
p("div", Ee, $(e.label ?? e.schema.title), 1),
|
|
493
494
|
a(l(B)),
|
|
494
495
|
c(e.$slots, "form-toolbar-right"),
|
|
495
|
-
a(
|
|
496
|
+
a(l(ae), null, {
|
|
496
497
|
default: n(() => [
|
|
497
|
-
|
|
498
|
+
q.value && e.canSaveProgress !== !1 ? (o(), v(l(f), {
|
|
498
499
|
key: 0,
|
|
499
|
-
onClick:
|
|
500
|
+
onClick: K(X, ["stop"]),
|
|
500
501
|
class: "mr-4",
|
|
501
502
|
"prepend-icon": "$content-save",
|
|
502
503
|
size: "small",
|
|
@@ -506,8 +507,8 @@ const ce = { class: "text-h6 ml-3" }, fe = {
|
|
|
506
507
|
]),
|
|
507
508
|
_: 1
|
|
508
509
|
}),
|
|
509
|
-
g.value != null ? (
|
|
510
|
-
g.value != null ? (
|
|
510
|
+
g.value != null ? (o(), m("div", Ve, [
|
|
511
|
+
g.value != null ? (o(), v(C, {
|
|
511
512
|
key: 0,
|
|
512
513
|
src: g.value
|
|
513
514
|
}, null, 8, ["src"])) : i("", !0)
|
|
@@ -516,41 +517,41 @@ const ce = { class: "text-h6 ml-3" }, fe = {
|
|
|
516
517
|
]),
|
|
517
518
|
_: 2
|
|
518
519
|
}, 1024)) : i("", !0),
|
|
519
|
-
|
|
520
|
-
style:
|
|
520
|
+
p("div", {
|
|
521
|
+
style: b(e.useScroll ? l(H) : void 0)
|
|
521
522
|
}, [
|
|
522
|
-
a(
|
|
523
|
-
a(l(
|
|
523
|
+
a(_, { errorMsg: M.value }, null, 8, ["errorMsg"]),
|
|
524
|
+
a(l(re), {
|
|
524
525
|
class: "pa-0 mx-auto",
|
|
525
526
|
cols: "12"
|
|
526
527
|
}, {
|
|
527
528
|
default: n(() => [
|
|
528
|
-
c(e.$slots,
|
|
529
|
+
c(e.$slots, d.name, {
|
|
529
530
|
data: e.data,
|
|
530
|
-
slide:
|
|
531
|
+
slide: d
|
|
531
532
|
}, () => [
|
|
532
|
-
(
|
|
533
|
+
(o(!0), m(w, null, N(d.fields, (u, O) => (o(), m("div", { key: O }, [
|
|
533
534
|
c(e.$slots, u.prop, {
|
|
534
535
|
data: e.data,
|
|
535
536
|
field: u,
|
|
536
537
|
variant: "tonal"
|
|
537
538
|
}, () => [
|
|
538
|
-
a(
|
|
539
|
+
a(Q, {
|
|
539
540
|
data: e.data,
|
|
540
541
|
field: u,
|
|
541
|
-
isEditing:
|
|
542
|
+
isEditing: F.value,
|
|
542
543
|
variant: "tonal"
|
|
543
544
|
}, null, 8, ["data", "field", "isEditing"])
|
|
544
545
|
])
|
|
545
546
|
]))), 128))
|
|
546
547
|
]),
|
|
547
|
-
|
|
548
|
-
a(
|
|
548
|
+
p("div", we, [
|
|
549
|
+
a(l(U), {
|
|
549
550
|
group: "",
|
|
550
551
|
"hide-on-leave": ""
|
|
551
552
|
}, {
|
|
552
553
|
default: n(() => [
|
|
553
|
-
r.value != 0 ? (
|
|
554
|
+
r.value != 0 ? (o(), v(l(f), {
|
|
554
555
|
onClick: t[10] || (t[10] = (u) => r.value--),
|
|
555
556
|
class: "ma-4",
|
|
556
557
|
key: "1",
|
|
@@ -560,28 +561,28 @@ const ce = { class: "text-h6 ml-3" }, fe = {
|
|
|
560
561
|
_: 1
|
|
561
562
|
}),
|
|
562
563
|
a(l(B)),
|
|
563
|
-
a(
|
|
564
|
+
a(l(U), {
|
|
564
565
|
group: "",
|
|
565
566
|
"hide-on-leave": ""
|
|
566
567
|
}, {
|
|
567
568
|
default: n(() => [
|
|
568
|
-
r.value < e.schema.slides.length - 1 ? (
|
|
569
|
+
r.value < e.schema.slides.length - 1 ? (o(), v(l(f), {
|
|
569
570
|
onClick: t[11] || (t[11] = (u) => r.value++),
|
|
570
571
|
class: "ma-4",
|
|
571
|
-
disabled:
|
|
572
|
+
disabled: d.fields.filter((u) => !!u.isRequired).length > 0 && !k.value,
|
|
572
573
|
key: "1",
|
|
573
574
|
text: "Next"
|
|
574
|
-
}, null, 8, ["disabled"])) : e.isEditing && e.canSubmit && !
|
|
575
|
-
onClick:
|
|
575
|
+
}, null, 8, ["disabled"])) : e.isEditing && e.canSubmit && !V.value && r.value >= e.schema.slides.length - 1 ? (o(), v(l(f), {
|
|
576
|
+
onClick: Y,
|
|
576
577
|
class: "ma-4",
|
|
577
|
-
disabled:
|
|
578
|
+
disabled: d.fields.filter((u) => !!u.isRequired).length > 0 && !k.value,
|
|
578
579
|
key: "2",
|
|
579
580
|
text: "Submit"
|
|
580
581
|
}, null, 8, ["disabled"])) : i("", !0)
|
|
581
582
|
]),
|
|
582
583
|
_: 2
|
|
583
584
|
}, 1024),
|
|
584
|
-
l(
|
|
585
|
+
l(Z)(y) ? (o(), m("div", Ne, $(y), 1)) : i("", !0)
|
|
585
586
|
])
|
|
586
587
|
]),
|
|
587
588
|
_: 2
|
|
@@ -593,23 +594,23 @@ const ce = { class: "text-h6 ml-3" }, fe = {
|
|
|
593
594
|
]),
|
|
594
595
|
_: 2
|
|
595
596
|
}, 1024))), 128)),
|
|
596
|
-
a(l(
|
|
597
|
+
a(l(P), null, {
|
|
597
598
|
default: n(() => [
|
|
598
|
-
e.hideHeader !== !0 ? (
|
|
599
|
+
e.hideHeader !== !0 ? (o(), v(l(J), {
|
|
599
600
|
key: 0,
|
|
600
601
|
color: "transparent"
|
|
601
602
|
}, {
|
|
602
603
|
default: n(() => [
|
|
603
604
|
a(l(f), {
|
|
604
605
|
icon: "$chevron-left",
|
|
605
|
-
onClick: t[12] || (t[12] = (
|
|
606
|
+
onClick: t[12] || (t[12] = (d) => r.value--),
|
|
606
607
|
disabled: r.value == 0,
|
|
607
608
|
variant: "text"
|
|
608
609
|
}, null, 8, ["disabled"]),
|
|
609
|
-
|
|
610
|
+
p("div", Te, $(e.label ?? e.schema.title), 1),
|
|
610
611
|
a(l(B)),
|
|
611
|
-
g.value != null ? (
|
|
612
|
-
g.value != null ? (
|
|
612
|
+
g.value != null ? (o(), m("div", ze, [
|
|
613
|
+
g.value != null ? (o(), v(C, {
|
|
613
614
|
key: 0,
|
|
614
615
|
src: g.value
|
|
615
616
|
}, null, 8, ["src"])) : i("", !0)
|
|
@@ -617,8 +618,8 @@ const ce = { class: "text-h6 ml-3" }, fe = {
|
|
|
617
618
|
]),
|
|
618
619
|
_: 1
|
|
619
620
|
})) : i("", !0),
|
|
620
|
-
|
|
621
|
-
style:
|
|
621
|
+
p("div", {
|
|
622
|
+
style: b(e.useScroll ? l(H) : void 0),
|
|
622
623
|
class: "d-flex flex-column align-center justify-center"
|
|
623
624
|
}, " Done! Thankyou. ", 4)
|
|
624
625
|
]),
|
|
@@ -633,7 +634,7 @@ const ce = { class: "text-h6 ml-3" }, fe = {
|
|
|
633
634
|
]),
|
|
634
635
|
_: 3
|
|
635
636
|
}),
|
|
636
|
-
a(
|
|
637
|
+
a(x, { loadingMsg: E.value }, null, 8, ["loadingMsg"])
|
|
637
638
|
]),
|
|
638
639
|
_: 3
|
|
639
640
|
}, 8, ["style"])) : i("", !0);
|
|
@@ -641,5 +642,5 @@ const ce = { class: "text-h6 ml-3" }, fe = {
|
|
|
641
642
|
}
|
|
642
643
|
});
|
|
643
644
|
export {
|
|
644
|
-
|
|
645
|
+
Ke as default
|
|
645
646
|
};
|