bt-core-app 2.2.6 → 2.2.7

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.
@@ -1,30 +1,31 @@
1
- import { defineComponent as ze, ref as A, computed as O, watch as te, onMounted as Le, resolveComponent as E, unref as e, openBlock as i, createElementBlock as d, createVNode as o, withCtx as a, normalizeStyle as j, createElementVNode as V, toDisplayString as h, createCommentVNode as p, withModifiers as y, createBlock as c, Fragment as P, renderList as _, renderSlot as J, mergeProps as $, createTextVNode as x, createSlots as qe, normalizeProps as re, guardReactiveProps as ae } from "vue";
2
- import { isNullOrEmpty as K, isLengthyArray as Re } from "../composables/helpers.mjs";
3
- import De from "./BT-Form-Field.vue.mjs";
4
- import Ge from "./BT-Form.vue.mjs";
5
- import { useForms as Me, useFormTemplates as Ne, Fields as He, useFormSource as Ie } from "../composables/forms.mjs";
6
- import Ae from "./BT-Image-Select.vue.mjs";
7
- import { VToolbarItems as ne } from "../bt-core/core/node_modules/vuetify/lib/components/VToolbar/VToolbarItems.mjs";
8
- import { VDialog as Oe } from "../bt-core/core/node_modules/vuetify/lib/components/VDialog/VDialog.mjs";
1
+ import { defineComponent as Ee, ref as M, computed as N, watch as Z, onMounted as Pe, resolveComponent as ee, unref as e, openBlock as i, createElementBlock as d, createVNode as o, withCtx as a, normalizeStyle as H, createElementVNode as V, toDisplayString as $, createCommentVNode as p, withModifiers as y, createBlock as f, Fragment as F, renderList as _, renderSlot as I, mergeProps as U, createTextVNode as B, createSlots as ze, normalizeProps as le, guardReactiveProps as oe } from "vue";
2
+ import { isNullOrEmpty as A, isLengthyArray as Le } from "../composables/helpers.mjs";
3
+ import Re from "./BT-Form-Field.vue.mjs";
4
+ import qe from "./BT-Form.vue.mjs";
5
+ import { useForms as De, useFormTemplates as Ge, Fields as Me, useFormSource as Ne } from "../composables/forms.mjs";
6
+ import He from "./BT-Image-Select.vue.mjs";
7
+ import { VToolbarItems as te } from "../bt-core/core/node_modules/vuetify/lib/components/VToolbar/VToolbarItems.mjs";
8
+ import { VDialog as Ie } from "../bt-core/core/node_modules/vuetify/lib/components/VDialog/VDialog.mjs";
9
9
  import { VCard as S } from "../bt-core/core/node_modules/vuetify/lib/components/VCard/VCard.mjs";
10
- import { VContainer as ie } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VContainer.mjs";
11
- import { VToolbar as Q } from "../bt-core/core/node_modules/vuetify/lib/components/VToolbar/VToolbar.mjs";
12
- import { VBtn as v } from "../bt-core/core/node_modules/vuetify/lib/components/VBtn/VBtn.mjs";
13
- import { VSpacer as N } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VSpacer.mjs";
14
- import { VList as W } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VList.mjs";
15
- import { VHover as je } from "../bt-core/core/node_modules/vuetify/lib/components/VHover/VHover.mjs";
16
- import { VCardTitle as Je } from "../bt-core/core/node_modules/vuetify/lib/components/VCard/VCardTitle.mjs";
17
- import { VMenu as z } from "../bt-core/core/node_modules/vuetify/lib/components/VMenu/VMenu.mjs";
18
- import { VRow as Ke } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VRow.mjs";
19
- import { VCol as Qe } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VCol.mjs";
20
- import { VIcon as We } from "../bt-core/core/node_modules/vuetify/lib/components/VIcon/VIcon.mjs";
21
- import { VTextField as U } from "../bt-core/core/node_modules/vuetify/lib/components/VTextField/VTextField.mjs";
22
- import { VTextarea as Xe } from "../bt-core/core/node_modules/vuetify/lib/components/VTextarea/VTextarea.mjs";
23
- import { VSwitch as L } from "../bt-core/core/node_modules/vuetify/lib/components/VSwitch/VSwitch.mjs";
10
+ import { VContainer as re } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VContainer.mjs";
11
+ import { VToolbar as O } from "../bt-core/core/node_modules/vuetify/lib/components/VToolbar/VToolbar.mjs";
12
+ import { VBtn as g } from "../bt-core/core/node_modules/vuetify/lib/components/VBtn/VBtn.mjs";
13
+ import { VSpacer as q } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VSpacer.mjs";
14
+ import { VList as X } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VList.mjs";
15
+ import { VSlideYTransition as Ae, VSlideXTransition as ae, VSlideXReverseTransition as Oe } from "../bt-core/core/node_modules/vuetify/lib/components/transitions/index.mjs";
16
+ import { VHover as Xe } from "../bt-core/core/node_modules/vuetify/lib/components/VHover/VHover.mjs";
17
+ import { VCardTitle as Ye } from "../bt-core/core/node_modules/vuetify/lib/components/VCard/VCardTitle.mjs";
18
+ import { VMenu as E } from "../bt-core/core/node_modules/vuetify/lib/components/VMenu/VMenu.mjs";
19
+ import { VRow as je } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VRow.mjs";
20
+ import { VCol as Je } from "../bt-core/core/node_modules/vuetify/lib/components/VGrid/VCol.mjs";
21
+ import { VIcon as Ke } from "../bt-core/core/node_modules/vuetify/lib/components/VIcon/VIcon.mjs";
22
+ import { VTextField as x } from "../bt-core/core/node_modules/vuetify/lib/components/VTextField/VTextField.mjs";
23
+ import { VTextarea as Qe } from "../bt-core/core/node_modules/vuetify/lib/components/VTextarea/VTextarea.mjs";
24
+ import { VSwitch as P } from "../bt-core/core/node_modules/vuetify/lib/components/VSwitch/VSwitch.mjs";
24
25
  import { VListSubheader as w } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VListSubheader.mjs";
25
- import { VColorPicker as H } from "../bt-core/core/node_modules/vuetify/lib/components/VColorPicker/VColorPicker.mjs";
26
- import { VListItem as I } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VListItem.mjs";
27
- const Ye = { key: 0 }, Ze = { key: 0 }, el = { class: "text-h6" }, ll = {
26
+ import { VColorPicker as D } from "../bt-core/core/node_modules/vuetify/lib/components/VColorPicker/VColorPicker.mjs";
27
+ import { VListItem as G } from "../bt-core/core/node_modules/vuetify/lib/components/VList/VListItem.mjs";
28
+ const We = { key: 0 }, Ze = { key: 0 }, el = { class: "text-h6" }, ll = {
28
29
  key: 0,
29
30
  class: "text-caption"
30
31
  }, ol = { class: "text-h6 ml-3" }, tl = { class: "mr-6" }, rl = ["onClick"], al = { class: "d-flex align-center" }, nl = {
@@ -39,10 +40,10 @@ const Ye = { key: 0 }, Ze = { key: 0 }, el = { class: "text-h6" }, ll = {
39
40
  }, dl = {
40
41
  key: 1,
41
42
  class: "d-flex flex-align"
42
- }, ml = { class: "text-center ma-2" }, pl = { class: "text-h6" }, cl = { key: 0 }, fl = { key: 1 }, vl = { key: 2 }, gl = { class: "text-caption" }, Vl = { key: 0 }, yl = { key: 1 }, kl = { key: 2 }, bl = { class: "ml-1" }, Sl = { key: 1 }, Cl = { key: 2 }, hl = { key: 3 }, _l = {
43
+ }, ml = { class: "text-center ma-2" }, pl = { class: "text-h6" }, cl = { key: 0 }, fl = { key: 1 }, vl = { key: 2 }, gl = { class: "text-caption" }, Vl = { key: 0 }, yl = { key: 1 }, kl = { key: 2 }, bl = { class: "ml-1" }, Sl = { key: 1 }, Cl = { key: 2 }, hl = { key: 3 }, $l = {
43
44
  key: 0,
44
45
  class: "text-center"
45
- }, $l = { class: "d-flex align-center py-1 mx-2" }, Yl = /* @__PURE__ */ ze({
46
+ }, _l = { class: "d-flex align-center py-1 mx-2" }, Zl = /* @__PURE__ */ Ee({
46
47
  __name: "BT-Form-Builder",
47
48
  props: {
48
49
  actualUsedHeight: {},
@@ -64,51 +65,51 @@ const Ye = { key: 0 }, Ze = { key: 0 }, el = { class: "text-h6" }, ll = {
64
65
  useTemplates: { type: Boolean }
65
66
  },
66
67
  emits: ["update:modelValue"],
67
- setup(se, { emit: ue }) {
68
- const de = ue, k = se, B = A(!1), me = A({}), {
69
- addFieldToSlide: pe,
70
- addSlide: ce,
71
- applyTemplate: fe,
72
- clearCurrent: X,
68
+ setup(ne, { emit: ie }) {
69
+ const se = ie, k = ne, T = M(!1), ue = M({}), {
70
+ addFieldToSlide: de,
71
+ addSlide: me,
72
+ applyTemplate: pe,
73
+ clearCurrent: Y,
73
74
  currentField: u,
74
- currentSlide: f,
75
- duplicateField: ve,
76
- duplicateSlide: ge,
77
- fieldPropRules: Ve,
78
- isLabelType: ye,
79
- isPlaceholderType: ke,
80
- isPropType: be,
81
- isRequiredType: Se,
82
- loadSchema: Y,
83
- moveSlideDown: Ce,
84
- moveSlideUp: he,
85
- removeCurrent: _e,
86
- removeSlide: $e,
75
+ currentSlide: v,
76
+ duplicateField: ce,
77
+ duplicateSlide: fe,
78
+ fieldPropRules: ve,
79
+ isLabelType: ge,
80
+ isPlaceholderType: Ve,
81
+ isPropType: ye,
82
+ isRequiredType: ke,
83
+ loadSchema: j,
84
+ moveSlideDown: be,
85
+ moveSlideUp: Se,
86
+ removeCurrent: Ce,
87
+ removeSlide: he,
87
88
  schema: t,
88
- schemaString: xe,
89
- selectField: Ue,
90
- selectSlide: Be
91
- } = Me({
89
+ schemaString: $e,
90
+ selectField: _e,
91
+ selectSlide: Ue
92
+ } = De({
92
93
  onGetSchema: k.onGetSchema
93
- }), Te = Ie(), Z = O(() => {
94
+ }), Be = Ne(), J = N(() => {
94
95
  var b;
95
96
  var s = k.requiredProps ?? [];
96
97
  if (k.requirementGroup != null) {
97
- var l = Te.requirementSets.find((C) => C.group == k.requirementGroup);
98
+ var l = Be.requirementSets.find((C) => C.group == k.requirementGroup);
98
99
  (l == null ? void 0 : l.props) != null && s.push(...l.props);
99
100
  }
100
101
  return (b = t.value) == null || b.slides.forEach((C) => {
101
- C.fields.forEach((F) => {
102
- var R = s.findIndex((D) => D == F.prop);
103
- R >= 0 && s.splice(R, 1);
102
+ C.fields.forEach((r) => {
103
+ var c = s.findIndex((h) => h == r.prop);
104
+ c >= 0 && s.splice(c, 1);
104
105
  });
105
106
  }), s;
106
- }), ee = A(k.useTemplates ? Ne(k.templateGroup) : void 0), we = O(() => {
107
+ }), K = M(k.useTemplates ? Ge(k.templateGroup) : void 0), xe = N(() => {
107
108
  var l, b;
108
109
  let s = (l = t.value) == null ? void 0 : l.bgSrc;
109
110
  if (((b = t.value) == null ? void 0 : b.useBgSrc) == !0 && s != null)
110
111
  return `background: url("${s}") no-repeat top center fixed; -webkit-background-size: cover; -moz-background-size: cover; background-size: cover; -o-background-size: cover; min-height: 100%;`;
111
- }), Fe = O(() => {
112
+ }), Te = N(() => {
112
113
  if (t.value != null) {
113
114
  if (t.value.variant == "basic" || t.value.variant == "single-page")
114
115
  return "text";
@@ -116,64 +117,64 @@ const Ye = { key: 0 }, Ze = { key: 0 }, el = { class: "text-h6" }, ll = {
116
117
  return "tonal";
117
118
  }
118
119
  });
119
- function le(s, l, b) {
120
+ function Q(s, l, b) {
120
121
  if (!(l < 0 || l > b.fields.length - 1)) {
121
- var C = b.fields.findIndex((F) => F === s);
122
+ var C = b.fields.findIndex((r) => r === s);
122
123
  b.fields.splice(C, 1), b.fields.splice(l, 0, s);
123
124
  }
124
125
  }
125
- function Ee(s) {
126
- fe(s), q();
126
+ function we(s) {
127
+ pe(s), z();
127
128
  }
128
- async function q() {
129
- de("update:modelValue", xe.value), B.value = !1;
129
+ async function z() {
130
+ se("update:modelValue", $e.value), T.value = !1;
130
131
  }
131
- function Pe() {
132
- B.value = !0;
132
+ function Fe() {
133
+ T.value = !0;
133
134
  }
134
- function oe(s) {
135
- s != null && (K(s.logoSrc) && k.getLogoUrl != null && (s.logoSrc = k.getLogoUrl()), K(s.bgSrc) && k.getBackgroundUrl != null && (s.bgSrc = k.getBackgroundUrl()));
135
+ function W(s) {
136
+ s != null && (A(s.logoSrc) && k.getLogoUrl != null && (s.logoSrc = k.getLogoUrl()), A(s.bgSrc) && k.getBackgroundUrl != null && (s.bgSrc = k.getBackgroundUrl()));
136
137
  }
137
- return te(() => k.openToggle, () => {
138
- B.value = !0;
139
- }), te(() => k.modelValue, (s) => {
140
- Y(s), oe(t.value);
141
- }), Le(() => {
142
- Y(k.modelValue), oe(t.value);
138
+ return Z(() => k.openToggle, () => {
139
+ T.value = !0;
140
+ }), Z(() => k.modelValue, (s) => {
141
+ j(s), W(t.value);
142
+ }), Pe(() => {
143
+ j(k.modelValue), W(t.value);
143
144
  }), (s, l) => {
144
- const b = E("bt-avatar"), C = E("v-slide-x-transition"), F = E("v-slide-x-reverse-transition"), R = E("v-slide-y-transition"), D = E("v-select");
145
- return e(t) != null ? (i(), d("div", Ye, [
146
- o(e(Oe), {
145
+ const b = ee("bt-avatar"), C = ee("v-select");
146
+ return e(t) != null ? (i(), d("div", We, [
147
+ o(e(Ie), {
147
148
  fullscreen: "",
148
149
  "retain-focus": !1,
149
150
  transition: "dialog-bottom-transition",
150
- modelValue: B.value,
151
- "onUpdate:modelValue": l[18] || (l[18] = (r) => B.value = r)
151
+ modelValue: T.value,
152
+ "onUpdate:modelValue": l[18] || (l[18] = (r) => T.value = r)
152
153
  }, {
153
154
  default: a(() => [
154
155
  o(e(S), null, {
155
156
  default: a(() => [
156
- o(e(ie), {
157
+ o(e(re), {
157
158
  class: "pa-0",
158
159
  fluid: "",
159
- style: j(we.value)
160
+ style: H(xe.value)
160
161
  }, {
161
162
  default: a(() => [
162
- o(e(Q), { color: "primary" }, {
163
+ o(e(O), { color: "primary" }, {
163
164
  default: a(() => [
164
- o(e(v), {
165
+ o(e(g), {
165
166
  icon: "$close",
166
- onClick: l[0] || (l[0] = (r) => B.value = !1)
167
+ onClick: l[0] || (l[0] = (r) => T.value = !1)
167
168
  }),
168
169
  s.title != null ? (i(), d("div", Ze, [
169
- V("div", el, h(s.title), 1),
170
- e(t).title != null ? (i(), d("div", ll, h(e(t).title), 1)) : p("", !0)
170
+ V("div", el, $(s.title), 1),
171
+ e(t).title != null ? (i(), d("div", ll, $(e(t).title), 1)) : p("", !0)
171
172
  ])) : p("", !0),
172
- o(e(N)),
173
- o(e(ne), null, {
173
+ o(e(q)),
174
+ o(e(te), null, {
174
175
  default: a(() => [
175
- o(e(v), {
176
- onClick: q,
176
+ o(e(g), {
177
+ onClick: z,
177
178
  text: "Done"
178
179
  })
179
180
  ]),
@@ -187,19 +188,19 @@ const Ye = { key: 0 }, Ze = { key: 0 }, el = { class: "text-h6" }, ll = {
187
188
  theme: e(t).theme
188
189
  }, {
189
190
  default: a(() => [
190
- o(e(ie), {
191
- onClick: y(e(X), ["stop"]),
192
- style: j([{ height: "calc(100vh - 64px)" }, `background-color: ${e(t).bgColor}`]),
191
+ o(e(re), {
192
+ onClick: y(e(Y), ["stop"]),
193
+ style: H([{ height: "calc(100vh - 64px)" }, `background-color: ${e(t).bgColor}`]),
193
194
  class: "overflow-y-auto pa-0"
194
195
  }, {
195
196
  default: a(() => [
196
- e(t).useLogoSrc && !e(K)(e(t).logoSrc) ? (i(), c(e(Q), {
197
+ e(t).useLogoSrc && !e(A)(e(t).logoSrc) ? (i(), f(e(O), {
197
198
  key: 0,
198
- style: j(`background-color: ${e(t).bgColor}`)
199
+ style: H(`background-color: ${e(t).bgColor}`)
199
200
  }, {
200
201
  default: a(() => [
201
- V("div", ol, h(e(t).title), 1),
202
- o(e(N)),
202
+ V("div", ol, $(e(t).title), 1),
203
+ o(e(q)),
203
204
  V("div", tl, [
204
205
  o(b, {
205
206
  src: e(t).logoSrc
@@ -208,54 +209,54 @@ const Ye = { key: 0 }, Ze = { key: 0 }, el = { class: "text-h6" }, ll = {
208
209
  ]),
209
210
  _: 1
210
211
  }, 8, ["style"])) : p("", !0),
211
- o(e(W), { "bg-color": "transparent" }, {
212
+ o(e(X), { "bg-color": "transparent" }, {
212
213
  default: a(() => [
213
- o(R, {
214
+ o(e(Ae), {
214
215
  group: "",
215
216
  "hide-on-leave": ""
216
217
  }, {
217
218
  default: a(() => [
218
- (i(!0), d(P, null, _(e(t).slides, (r, g) => J(s.$slots, `${r.name}-builder`, {
219
- key: g,
219
+ (i(!0), d(F, null, _(e(t).slides, (r, c) => I(s.$slots, `${r.name}-builder`, {
220
+ key: c,
220
221
  slide: r
221
222
  }, () => [
222
223
  V("div", {
223
- onClick: y((T) => e(Be)(r), ["stop"])
224
+ onClick: y((h) => e(Ue)(r), ["stop"])
224
225
  }, [
225
- o(e(je), null, {
226
- default: a(({ isHovering: T, props: G }) => [
227
- o(e(S), $({
228
- class: ["mx-1 my-6 pt-2 pb-5", e(f) === r ? "text-primary" : void 0],
226
+ o(e(Xe), null, {
227
+ default: a(({ isHovering: h, props: L }) => [
228
+ o(e(S), U({
229
+ class: ["mx-1 my-6 pt-2 pb-5", e(v) === r ? "text-primary" : void 0],
229
230
  ripple: !1,
230
231
  variant: "outlined",
231
232
  ref_for: !0
232
- }, G), {
233
+ }, L), {
233
234
  default: a(() => [
234
235
  V("div", al, [
235
236
  V("div", nl, [
236
- o(C, null, {
237
+ o(e(ae), null, {
237
238
  default: a(() => [
238
- T ? (i(), d("div", il, [
239
+ h ? (i(), d("div", il, [
239
240
  V("div", sl, [
240
- o(e(v), {
241
- onClick: y((m) => e(he)(g), ["stop"]),
241
+ o(e(g), {
242
+ onClick: y((m) => e(Se)(c), ["stop"]),
242
243
  class: "ma-0 pa-0",
243
- disabled: g == 0 || !s.isEditing,
244
+ disabled: c == 0 || !s.isEditing,
244
245
  icon: "$menu-up",
245
246
  size: "x-small",
246
247
  variant: "text"
247
248
  }, null, 8, ["onClick", "disabled"]),
248
- o(e(v), {
249
- onClick: y((m) => e(Ce)(g), ["stop"]),
249
+ o(e(g), {
250
+ onClick: y((m) => e(be)(c), ["stop"]),
250
251
  class: "ma-0 pa-0",
251
- disabled: g >= e(t).slides.length - 1 || !s.isEditing,
252
+ disabled: c >= e(t).slides.length - 1 || !s.isEditing,
252
253
  icon: "$menu-down",
253
254
  size: "x-small",
254
255
  variant: "text"
255
256
  }, null, 8, ["onClick", "disabled"])
256
257
  ]),
257
- o(e(v), {
258
- onClick: y((m) => e(t).slides.splice(g + 1, 0, e(ge)(r)), ["stop"]),
258
+ o(e(g), {
259
+ onClick: y((m) => e(t).slides.splice(c + 1, 0, e(fe)(r)), ["stop"]),
259
260
  class: "ma-0 pa-0",
260
261
  icon: "$content-duplicate",
261
262
  size: "x-small",
@@ -267,19 +268,19 @@ const Ye = { key: 0 }, Ze = { key: 0 }, el = { class: "text-h6" }, ll = {
267
268
  _: 2
268
269
  }, 1024)
269
270
  ]),
270
- o(e(Je), null, {
271
+ o(e(Ye), null, {
271
272
  default: a(() => [
272
- x(h(r.name), 1)
273
+ B($(r.name), 1)
273
274
  ]),
274
275
  _: 2
275
276
  }, 1024),
276
- o(e(N)),
277
- o(F, null, {
277
+ o(e(q)),
278
+ o(e(Oe), null, {
278
279
  default: a(() => [
279
- (r == null ? void 0 : r.canDelete) !== !1 && T ? (i(), c(e(v), {
280
+ (r == null ? void 0 : r.canDelete) !== !1 && h ? (i(), f(e(g), {
280
281
  key: 0,
281
282
  class: "ma-0 mr-2 pa-0 text-error",
282
- onClick: y((m) => e($e)(r.name), ["stop"]),
283
+ onClick: y((m) => e(he)(r.name), ["stop"]),
283
284
  icon: "$delete",
284
285
  variant: "text"
285
286
  }, null, 8, ["onClick"])) : p("", !0)
@@ -287,25 +288,25 @@ const Ye = { key: 0 }, Ze = { key: 0 }, el = { class: "text-h6" }, ll = {
287
288
  _: 2
288
289
  }, 1024)
289
290
  ]),
290
- e(Re)(r.fields) ? (i(), d("div", ul, [
291
- (i(!0), d(P, null, _(r.fields, (m, n) => (i(), d("div", null, [
292
- (i(), c(De, {
291
+ e(Le)(r.fields) ? (i(), d("div", ul, [
292
+ (i(!0), d(F, null, _(r.fields, (m, n) => (i(), d("div", null, [
293
+ (i(), f(Re, {
293
294
  key: `${n}${m.prop ?? ""}${m.type ?? ""}`,
294
- onDuplicate: (M) => r.fields.splice(n + 1, 0, e(ve)(m)),
295
- onMovedown: (M) => le(m, n + 1, r),
296
- onMoveup: (M) => le(m, n - 1, r),
297
- onSelect: (M) => e(Ue)(r, m),
295
+ onDuplicate: (R) => r.fields.splice(n + 1, 0, e(ce)(m)),
296
+ onMovedown: (R) => Q(m, n + 1, r),
297
+ onMoveup: (R) => Q(m, n - 1, r),
298
+ onSelect: (R) => e(_e)(r, m),
298
299
  field: m,
299
300
  isBuilding: "",
300
301
  isSelected: e(u) === m,
301
- variant: Fe.value
302
+ variant: Te.value
302
303
  }, null, 8, ["onDuplicate", "onMovedown", "onMoveup", "onSelect", "field", "isSelected", "variant"]))
303
304
  ]))), 256))
304
305
  ])) : p("", !0),
305
306
  r.canEdit !== !1 ? (i(), d("div", dl, [
306
- o(e(z), { "z-index": "2500" }, {
307
+ o(e(E), { "z-index": "2500" }, {
307
308
  activator: a(({ props: m }) => [
308
- o(e(v), $({
309
+ o(e(g), U({
309
310
  class: "mx-auto",
310
311
  color: e(t).ctlColor,
311
312
  "prepend-icon": "$plus",
@@ -316,16 +317,16 @@ const Ye = { key: 0 }, Ze = { key: 0 }, el = { class: "text-h6" }, ll = {
316
317
  default: a(() => [
317
318
  o(e(S), { "max-width": "550" }, {
318
319
  default: a(() => [
319
- o(e(Ke), { "no-gutters": "" }, {
320
+ o(e(je), { "no-gutters": "" }, {
320
321
  default: a(() => [
321
- (i(!0), d(P, null, _(e(He), (m, n) => (i(), c(e(Qe), {
322
+ (i(!0), d(F, null, _(e(Me), (m, n) => (i(), f(e(Je), {
322
323
  key: n,
323
324
  cols: "6"
324
325
  }, {
325
326
  default: a(() => [
326
327
  o(e(S), {
327
328
  class: "ma-1",
328
- onClick: y((M) => e(pe)(m, r), ["stop"]),
329
+ onClick: y((R) => e(de)(m, r), ["stop"]),
329
330
  color: e(t).ctlColor,
330
331
  "prepend-icon": m.icon,
331
332
  subtitle: m.description,
@@ -359,8 +360,8 @@ const Ye = { key: 0 }, Ze = { key: 0 }, el = { class: "text-h6" }, ll = {
359
360
  _: 3
360
361
  }),
361
362
  V("div", ml, [
362
- o(e(v), {
363
- onClick: y(e(ce), ["stop"]),
363
+ o(e(g), {
364
+ onClick: y(e(me), ["stop"]),
364
365
  color: e(t).ctlColor,
365
366
  "prepend-icon": "$card-plus-outline",
366
367
  text: "Add Slide"
@@ -376,37 +377,37 @@ const Ye = { key: 0 }, Ze = { key: 0 }, el = { class: "text-h6" }, ll = {
376
377
  tile: ""
377
378
  }, {
378
379
  default: a(() => {
379
- var r, g, T, G, m;
380
+ var r, c, h, L, m;
380
381
  return [
381
- o(e(Q), null, {
382
+ o(e(O), null, {
382
383
  default: a(() => [
383
- e(f) != null || e(u) != null ? (i(), c(e(v), {
384
+ e(v) != null || e(u) != null ? (i(), f(e(g), {
384
385
  key: 0,
385
386
  icon: "$close",
386
- onClick: y(e(X), ["stop"])
387
- }, null, 8, ["onClick"])) : (i(), c(e(We), {
387
+ onClick: y(e(Y), ["stop"])
388
+ }, null, 8, ["onClick"])) : (i(), f(e(Ke), {
388
389
  key: 1,
389
390
  class: "mx-3",
390
391
  icon: "$cog"
391
392
  })),
392
393
  V("div", null, [
393
394
  V("div", pl, [
394
- e(u) != null ? (i(), d("span", cl, "Field")) : e(f) != null ? (i(), d("span", fl, "Slide")) : (i(), d("span", vl, "Form"))
395
+ e(u) != null ? (i(), d("span", cl, "Field")) : e(v) != null ? (i(), d("span", fl, "Slide")) : (i(), d("span", vl, "Form"))
395
396
  ]),
396
397
  V("div", gl, [
397
- e(u) != null ? (i(), d("span", Vl, h(e(u).type), 1)) : e(f) != null ? (i(), d("span", yl, h(e(f).name), 1)) : (i(), d("span", kl, "Properties"))
398
+ e(u) != null ? (i(), d("span", Vl, $(e(u).type), 1)) : e(v) != null ? (i(), d("span", yl, $(e(v).name), 1)) : (i(), d("span", kl, "Properties"))
398
399
  ])
399
400
  ]),
400
- o(e(N)),
401
- o(e(ne), null, {
401
+ o(e(q)),
402
+ o(e(te), null, {
402
403
  default: a(() => {
403
404
  var n;
404
405
  return [
405
- e(u) != null || e(f) != null ? (i(), c(e(v), {
406
+ e(u) != null || e(v) != null ? (i(), f(e(g), {
406
407
  key: 0,
407
- disabled: ((n = e(f)) == null ? void 0 : n.canDelete) == !1,
408
+ disabled: ((n = e(v)) == null ? void 0 : n.canDelete) == !1,
408
409
  class: "text-error",
409
- onClick: y(e(_e), ["stop"]),
410
+ onClick: y(e(Ce), ["stop"]),
410
411
  icon: "$delete"
411
412
  }, null, 8, ["disabled", "onClick"])) : p("", !0)
412
413
  ];
@@ -416,27 +417,27 @@ const Ye = { key: 0 }, Ze = { key: 0 }, el = { class: "text-h6" }, ll = {
416
417
  ]),
417
418
  _: 1
418
419
  }),
419
- Z.value.length > 0 ? (i(), c(e(S), {
420
+ J.value.length > 0 ? (i(), f(e(S), {
420
421
  key: 0,
421
422
  subtitle: "This form requires fields with these properties:"
422
423
  }, {
423
424
  text: a(() => [
424
- (i(!0), d(P, null, _(Z.value, (n) => (i(), d("div", null, [
425
+ (i(!0), d(F, null, _(J.value, (n) => (i(), d("div", null, [
425
426
  l[25] || (l[25] = V("span", null, "Prop:", -1)),
426
- V("span", bl, h(n), 1)
427
+ V("span", bl, $(n), 1)
427
428
  ]))), 256))
428
429
  ]),
429
430
  _: 1
430
431
  })) : p("", !0),
431
432
  e(u) != null ? (i(), d("div", Sl, [
432
- e(ye) ? (i(), c(e(U), {
433
+ e(ge) ? (i(), f(e(x), {
433
434
  key: 0,
434
435
  "hide-details": "",
435
436
  label: "Label",
436
437
  modelValue: e(u).label,
437
438
  "onUpdate:modelValue": l[1] || (l[1] = (n) => e(u).label = n)
438
439
  }, null, 8, ["modelValue"])) : p("", !0),
439
- o(e(Xe), {
440
+ o(e(Qe), {
440
441
  "auto-grow": "",
441
442
  "hide-details": "",
442
443
  label: "Description",
@@ -444,90 +445,90 @@ const Ye = { key: 0 }, Ze = { key: 0 }, el = { class: "text-h6" }, ll = {
444
445
  modelValue: e(u).description,
445
446
  "onUpdate:modelValue": l[2] || (l[2] = (n) => e(u).description = n)
446
447
  }, null, 8, ["modelValue"]),
447
- e(ke) ? (i(), c(e(U), {
448
+ e(Ve) ? (i(), f(e(x), {
448
449
  key: 1,
449
450
  "hide-details": "",
450
451
  label: "Placeholder",
451
452
  modelValue: e(u).placeholder,
452
453
  "onUpdate:modelValue": l[3] || (l[3] = (n) => e(u).placeholder = n)
453
454
  }, null, 8, ["modelValue"])) : p("", !0),
454
- e(be) ? (i(), c(e(U), {
455
+ e(ye) ? (i(), f(e(x), {
455
456
  key: 2,
456
- readonly: ((r = e(f)) == null ? void 0 : r.canEdit) == !1,
457
+ readonly: ((r = e(v)) == null ? void 0 : r.canEdit) == !1,
457
458
  label: "Field Property",
458
- rules: e(Ve),
459
+ rules: e(ve),
459
460
  modelValue: e(u).prop,
460
461
  "onUpdate:modelValue": l[4] || (l[4] = (n) => e(u).prop = n)
461
462
  }, null, 8, ["readonly", "rules", "modelValue"])) : p("", !0),
462
- e(u).type == "button" ? (i(), c(e(U), {
463
+ e(u).type == "button" ? (i(), f(e(x), {
463
464
  key: 3,
464
465
  label: "URL to navigate to",
465
466
  modelValue: e(u).url,
466
467
  "onUpdate:modelValue": l[5] || (l[5] = (n) => e(u).url = n)
467
468
  }, null, 8, ["modelValue"])) : p("", !0),
468
- e(Se) ? (i(), c(e(L), {
469
+ e(ke) ? (i(), f(e(P), {
469
470
  key: 4,
470
471
  color: e(u).isRequired ? "primary" : void 0,
471
472
  inset: "",
472
473
  label: e(u).isRequired ? "Required" : "Not Required",
473
- readonly: ((g = e(f)) == null ? void 0 : g.canEdit) === !1,
474
+ readonly: ((c = e(v)) == null ? void 0 : c.canEdit) === !1,
474
475
  modelValue: e(u).isRequired,
475
476
  "onUpdate:modelValue": l[6] || (l[6] = (n) => e(u).isRequired = n)
476
477
  }, null, 8, ["color", "label", "readonly", "modelValue"])) : p("", !0),
477
- o(e(L), {
478
+ o(e(P), {
478
479
  color: e(u).remember ? "primary" : void 0,
479
480
  inset: "",
480
481
  label: e(u).remember ? "Remember On Reset" : "Forget On Reset",
481
- readonly: ((T = e(f)) == null ? void 0 : T.canEdit) === !1,
482
+ readonly: ((h = e(v)) == null ? void 0 : h.canEdit) === !1,
482
483
  modelValue: e(u).remember,
483
484
  "onUpdate:modelValue": l[7] || (l[7] = (n) => e(u).remember = n)
484
485
  }, null, 8, ["color", "label", "readonly", "modelValue"]),
485
- e(u).type == "button" ? (i(), c(e(L), {
486
+ e(u).type == "button" ? (i(), f(e(P), {
486
487
  key: 5,
487
488
  color: e(u).isSubmitButton ? "primary" : void 0,
488
489
  inset: "",
489
490
  label: "Submit On Click",
490
- readonly: ((G = e(f)) == null ? void 0 : G.canEdit) === !1,
491
+ readonly: ((L = e(v)) == null ? void 0 : L.canEdit) === !1,
491
492
  modelValue: e(u).isSubmitButton,
492
493
  "onUpdate:modelValue": l[8] || (l[8] = (n) => e(u).isSubmitButton = n)
493
494
  }, null, 8, ["color", "readonly", "modelValue"])) : p("", !0)
494
- ])) : e(f) != null ? (i(), d("div", Cl, [
495
- o(e(U), {
496
- canEdit: e(f).canEdit !== !1,
495
+ ])) : e(v) != null ? (i(), d("div", Cl, [
496
+ o(e(x), {
497
+ canEdit: e(v).canEdit !== !1,
497
498
  label: "Slide Name",
498
- readonly: ((m = e(f)) == null ? void 0 : m.canEdit) === !1,
499
- modelValue: e(f).name,
500
- "onUpdate:modelValue": l[9] || (l[9] = (n) => e(f).name = n)
499
+ readonly: ((m = e(v)) == null ? void 0 : m.canEdit) === !1,
500
+ modelValue: e(v).name,
501
+ "onUpdate:modelValue": l[9] || (l[9] = (n) => e(v).name = n)
501
502
  }, null, 8, ["canEdit", "readonly", "modelValue"])
502
503
  ])) : (i(), d("div", hl, [
503
- o(e(U), {
504
+ o(e(x), {
504
505
  disabled: "",
505
506
  "hide-details": "",
506
507
  label: "Version",
507
508
  modelValue: e(t).version,
508
509
  "onUpdate:modelValue": l[10] || (l[10] = (n) => e(t).version = n)
509
510
  }, null, 8, ["modelValue"]),
510
- o(e(U), {
511
+ o(e(x), {
511
512
  "hide-details": "",
512
513
  label: "Form Title",
513
514
  modelValue: e(t).title,
514
515
  "onUpdate:modelValue": l[11] || (l[11] = (n) => e(t).title = n)
515
516
  }, null, 8, ["modelValue"]),
516
- o(D, {
517
+ o(C, {
517
518
  "hide-details": "",
518
519
  label: "Form Variant",
519
520
  items: ["basic", "half-and-half", "single-page"],
520
521
  modelValue: e(t).variant,
521
522
  "onUpdate:modelValue": l[12] || (l[12] = (n) => e(t).variant = n)
522
523
  }, null, 8, ["modelValue"]),
523
- o(D, {
524
+ o(C, {
524
525
  "hide-details": "",
525
526
  label: "Theme",
526
527
  items: ["light", "dark"],
527
528
  modelValue: e(t).theme,
528
529
  "onUpdate:modelValue": l[13] || (l[13] = (n) => e(t).theme = n)
529
530
  }, null, 8, ["modelValue"]),
530
- o(e(L), {
531
+ o(e(P), {
531
532
  color: e(t).useLogoSrc ? "primary" : void 0,
532
533
  "hide-details": "",
533
534
  inset: "",
@@ -535,7 +536,7 @@ const Ye = { key: 0 }, Ze = { key: 0 }, el = { class: "text-h6" }, ll = {
535
536
  modelValue: e(t).useLogoSrc,
536
537
  "onUpdate:modelValue": l[14] || (l[14] = (n) => e(t).useLogoSrc = n)
537
538
  }, null, 8, ["color", "modelValue"]),
538
- o(e(L), {
539
+ o(e(P), {
539
540
  color: e(t).useBgSrc ? "primary" : void 0,
540
541
  "hide-details": "",
541
542
  inset: "",
@@ -543,19 +544,19 @@ const Ye = { key: 0 }, Ze = { key: 0 }, el = { class: "text-h6" }, ll = {
543
544
  modelValue: e(t).useBgSrc,
544
545
  "onUpdate:modelValue": l[15] || (l[15] = (n) => e(t).useBgSrc = n)
545
546
  }, null, 8, ["color", "modelValue"]),
546
- e(t).useBgSrc && s.imgProps != null ? (i(), c(e(w), {
547
+ e(t).useBgSrc && s.imgProps != null ? (i(), f(e(w), {
547
548
  key: 0,
548
549
  class: "ml-2"
549
550
  }, {
550
551
  default: a(() => l[26] || (l[26] = [
551
- x("Background Image")
552
+ B("Background Image")
552
553
  ])),
553
554
  _: 1
554
555
  })) : p("", !0),
555
- o(C, { "hide-on-leave": "" }, {
556
+ o(e(ae), { "hide-on-leave": "" }, {
556
557
  default: a(() => [
557
- e(t).useBgSrc && s.imgProps != null ? (i(), d("div", _l, [
558
- o(Ae, $(s.imgProps, {
558
+ e(t).useBgSrc && s.imgProps != null ? (i(), d("div", $l, [
559
+ o(He, U(s.imgProps, {
559
560
  src: e(t).bgSrc
560
561
  }), null, 16, ["src"])
561
562
  ])) : p("", !0)
@@ -564,22 +565,22 @@ const Ye = { key: 0 }, Ze = { key: 0 }, el = { class: "text-h6" }, ll = {
564
565
  }),
565
566
  o(e(w), { class: "ml-2" }, {
566
567
  default: a(() => l[27] || (l[27] = [
567
- x("Background Color")
568
+ B("Background Color")
568
569
  ])),
569
570
  _: 1
570
571
  }),
571
- o(e(H), {
572
+ o(e(D), {
572
573
  width: "100%",
573
574
  modelValue: e(t).bgColor,
574
575
  "onUpdate:modelValue": l[16] || (l[16] = (n) => e(t).bgColor = n)
575
576
  }, null, 8, ["modelValue"]),
576
577
  o(e(w), { class: "ml-2" }, {
577
578
  default: a(() => l[28] || (l[28] = [
578
- x("Button Color")
579
+ B("Button Color")
579
580
  ])),
580
581
  _: 1
581
582
  }),
582
- o(e(H), {
583
+ o(e(D), {
583
584
  width: "100%",
584
585
  modelValue: e(t).ctlColor,
585
586
  "onUpdate:modelValue": l[17] || (l[17] = (n) => e(t).ctlColor = n)
@@ -601,31 +602,31 @@ const Ye = { key: 0 }, Ze = { key: 0 }, el = { class: "text-h6" }, ll = {
601
602
  ]),
602
603
  _: 3
603
604
  }, 8, ["modelValue"]),
604
- o(Ge, {
605
+ o(qe, {
605
606
  actualUsedHeight: s.actualUsedHeight,
606
607
  canSubmit: !1,
607
- data: me.value,
608
+ data: ue.value,
608
609
  isEditing: "",
609
610
  onGetSchema: s.onGetSchema,
610
611
  overrideSchema: s.overrideSchema,
611
612
  schema: e(t),
612
613
  useSchemaStyles: s.useSchemaStyles
613
- }, qe({
614
+ }, ze({
614
615
  "form-toolbar-right": a(() => [
615
- V("div", $l, [
616
- ee.value != null ? (i(), c(e(z), { key: 0 }, {
616
+ V("div", _l, [
617
+ K.value != null ? (i(), f(e(E), { key: 0 }, {
617
618
  activator: a(({ props: r }) => [
618
- o(e(v), $({
619
+ o(e(g), U({
619
620
  color: e(t).ctlColor,
620
621
  size: "x-small",
621
622
  text: "Use Template"
622
623
  }, r), null, 16, ["color"])
623
624
  ]),
624
625
  default: a(() => [
625
- o(e(W), { "min-width": "300" }, {
626
+ o(e(X), { "min-width": "300" }, {
626
627
  default: a(() => [
627
- (i(!0), d(P, null, _(ee.value, (r) => (i(), c(e(I), {
628
- onClick: y((g) => Ee(r), ["stop"]),
628
+ (i(!0), d(F, null, _(K.value, (r) => (i(), f(e(G), {
629
+ onClick: y((c) => we(r), ["stop"]),
629
630
  subtitle: r.description,
630
631
  title: r.templateName
631
632
  }, null, 8, ["onClick", "subtitle", "title"]))), 256))
@@ -635,9 +636,9 @@ const Ye = { key: 0 }, Ze = { key: 0 }, el = { class: "text-h6" }, ll = {
635
636
  ]),
636
637
  _: 1
637
638
  })) : p("", !0),
638
- o(e(z), null, {
639
+ o(e(E), null, {
639
640
  activator: a(({ props: r }) => [
640
- o(e(v), $({
641
+ o(e(g), U({
641
642
  color: e(t).ctlColor,
642
643
  icon: "$view-carousel",
643
644
  size: "x-small",
@@ -645,25 +646,25 @@ const Ye = { key: 0 }, Ze = { key: 0 }, el = { class: "text-h6" }, ll = {
645
646
  }, r), null, 16, ["color"])
646
647
  ]),
647
648
  default: a(() => [
648
- o(e(W), null, {
649
+ o(e(X), null, {
649
650
  default: a(() => [
650
651
  o(e(w), null, {
651
652
  default: a(() => l[29] || (l[29] = [
652
- x("Form Variant")
653
+ B("Form Variant")
653
654
  ])),
654
655
  _: 1
655
656
  }),
656
- o(e(I), {
657
+ o(e(G), {
657
658
  onClick: l[19] || (l[19] = y((r) => e(t).variant = "basic", ["stop"])),
658
659
  active: e(t).variant == "basic",
659
660
  title: "Basic"
660
661
  }, null, 8, ["active"]),
661
- o(e(I), {
662
+ o(e(G), {
662
663
  onClick: l[20] || (l[20] = y((r) => e(t).variant = "single-page", ["stop"])),
663
664
  active: e(t).variant == "single-page",
664
665
  title: "Single Page"
665
666
  }, null, 8, ["active"]),
666
- o(e(I), {
667
+ o(e(G), {
667
668
  onClick: l[21] || (l[21] = y((r) => e(t).variant = "half-and-half", ["stop"])),
668
669
  active: e(t).variant == "half-and-half",
669
670
  title: "Half And Half"
@@ -674,9 +675,9 @@ const Ye = { key: 0 }, Ze = { key: 0 }, el = { class: "text-h6" }, ll = {
674
675
  ]),
675
676
  _: 1
676
677
  }),
677
- o(e(z), { "close-on-content-click": !1 }, {
678
+ o(e(E), { "close-on-content-click": !1 }, {
678
679
  activator: a(({ props: r }) => [
679
- o(e(v), $({
680
+ o(e(g), U({
680
681
  class: "ml-1",
681
682
  color: e(t).ctlColor,
682
683
  icon: "$format-color-fill",
@@ -689,13 +690,13 @@ const Ye = { key: 0 }, Ze = { key: 0 }, el = { class: "text-h6" }, ll = {
689
690
  default: a(() => [
690
691
  o(e(w), { class: "ml-2" }, {
691
692
  default: a(() => l[30] || (l[30] = [
692
- x("Background Color")
693
+ B("Background Color")
693
694
  ])),
694
695
  _: 1
695
696
  }),
696
- o(e(H), {
697
+ o(e(D), {
697
698
  "onUpdate:modelValue": [
698
- q,
699
+ z,
699
700
  l[22] || (l[22] = (r) => e(t).bgColor = r)
700
701
  ],
701
702
  width: "250",
@@ -707,9 +708,9 @@ const Ye = { key: 0 }, Ze = { key: 0 }, el = { class: "text-h6" }, ll = {
707
708
  ]),
708
709
  _: 1
709
710
  }),
710
- o(e(z), { "close-on-content-click": !1 }, {
711
+ o(e(E), { "close-on-content-click": !1 }, {
711
712
  activator: a(({ props: r }) => [
712
- o(e(v), $({
713
+ o(e(g), U({
713
714
  class: "ml-1",
714
715
  color: e(t).ctlColor,
715
716
  icon: "$palette",
@@ -722,13 +723,13 @@ const Ye = { key: 0 }, Ze = { key: 0 }, el = { class: "text-h6" }, ll = {
722
723
  default: a(() => [
723
724
  o(e(w), { class: "ml-2" }, {
724
725
  default: a(() => l[31] || (l[31] = [
725
- x("Button Color")
726
+ B("Button Color")
726
727
  ])),
727
728
  _: 1
728
729
  }),
729
- o(e(H), {
730
+ o(e(D), {
730
731
  "onUpdate:modelValue": [
731
- q,
732
+ z,
732
733
  l[23] || (l[23] = (r) => e(t).ctlColor = r)
733
734
  ],
734
735
  width: "250",
@@ -740,15 +741,15 @@ const Ye = { key: 0 }, Ze = { key: 0 }, el = { class: "text-h6" }, ll = {
740
741
  ]),
741
742
  _: 1
742
743
  }),
743
- o(e(v), {
744
+ o(e(g), {
744
745
  onClick: l[24] || (l[24] = (r) => e(t).theme = e(t).theme == "light" ? "dark" : "light"),
745
746
  class: "ml-1",
746
747
  color: e(t).ctlColor,
747
748
  icon: "$theme-light-dark",
748
749
  size: "small"
749
750
  }, null, 8, ["color"]),
750
- o(e(v), {
751
- onClick: Pe,
751
+ o(e(g), {
752
+ onClick: Fe,
752
753
  class: "ml-1",
753
754
  color: e(t).ctlColor,
754
755
  "prepend-icon": "$pencil",
@@ -762,14 +763,14 @@ const Ye = { key: 0 }, Ze = { key: 0 }, el = { class: "text-h6" }, ll = {
762
763
  }, [
763
764
  _(e(t).slides.flatMap((r) => r.fields), (r) => ({
764
765
  name: `${r.prop}`,
765
- fn: a((g) => [
766
- J(s.$slots, r.prop, re(ae(g)))
766
+ fn: a((c) => [
767
+ I(s.$slots, r.prop, le(oe(c)))
767
768
  ])
768
769
  })),
769
770
  _(e(t).slides, (r) => ({
770
771
  name: `${r.name}`,
771
- fn: a((g) => [
772
- J(s.$slots, r.name, re(ae(g)))
772
+ fn: a((c) => [
773
+ I(s.$slots, r.name, le(oe(c)))
773
774
  ])
774
775
  }))
775
776
  ]), 1032, ["actualUsedHeight", "data", "onGetSchema", "overrideSchema", "schema", "useSchemaStyles"])
@@ -778,5 +779,5 @@ const Ye = { key: 0 }, Ze = { key: 0 }, el = { class: "text-h6" }, ll = {
778
779
  }
779
780
  });
780
781
  export {
781
- Yl as default
782
+ Zl as default
782
783
  };