survey-creator-vue 2.0.0-rc.7 → 2.0.0-rc.9
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/package.json +4 -4
- package/survey-creator-vue.es.js +168 -164
- package/survey-creator-vue.umd.js +1 -1
package/survey-creator-vue.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { useBase as
|
|
2
|
-
import { defineComponent as g, computed as $, toRaw as ge, ref as
|
|
1
|
+
import { useBase as f, SvComponent as u, key2ClickDirective as D, SurveyComponent as Q, useQuestion as H, ComponentFactory as re } from "survey-vue3-ui";
|
|
2
|
+
import { defineComponent as g, computed as $, toRaw as ge, ref as B, onMounted as E, onUnmounted as L, openBlock as l, createElementBlock as i, Fragment as k, createVNode as v, unref as s, createElementVNode as a, normalizeClass as _, normalizeStyle as K, createCommentVNode as p, renderList as R, createBlock as h, nextTick as de, withDirectives as C, toDisplayString as w, vShow as F, renderSlot as X, withCtx as Y, createTextVNode as be, shallowRef as ye, watch as G, onBeforeUnmount as x, vModelText as ce, onUpdated as ee, mergeProps as V } from "vue";
|
|
3
3
|
import { ResponsivityManager as he, CssClassBuilder as Ce, RendererFactory as ue, DropdownListModel as qe, VerticalResponsivityManager as $e } from "survey-core";
|
|
4
|
-
import { ScrollViewModel as we, editorLocalization as pe, SurveyResultsModel as
|
|
4
|
+
import { ScrollViewModel as we, editorLocalization as pe, SurveyResultsModel as ke, initLogicOperator as fe, StringEditorViewModelBase as Te, ToolboxToolViewModel as De, PageAdorner as Ne, RowViewModel as Me, QuestionAdornerViewModel as oe, QuestionImageAdornerViewModel as Se, QuestionRatingAdornerViewModel as Ie, MatrixCellWrapperViewModel as Be, ItemValueWrapperViewModel as Ee, ImageItemValueWrapperViewModel as Pe, LogoImageViewModel as Re, PageNavigatorViewModel as Ve, QuestionDropdownAdornerViewModel as Ae, editableStringRendererName as ze } from "survey-creator-core";
|
|
5
5
|
const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element--growing" }, Fe = { class: "svc-top-bar" }, Ke = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "svc-tabbed-menu-wrapper"
|
|
@@ -17,17 +17,17 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
17
17
|
model: {}
|
|
18
18
|
},
|
|
19
19
|
setup(c) {
|
|
20
|
-
const t = c, e = $(() => ge(t.model)), o =
|
|
21
|
-
return
|
|
20
|
+
const t = c, e = $(() => ge(t.model)), o = B();
|
|
21
|
+
return f(
|
|
22
22
|
() => e.value,
|
|
23
23
|
(n, r) => {
|
|
24
24
|
r && r.unsubscribeRootElement(), n && o.value && n.setRootElement(o.value);
|
|
25
25
|
}
|
|
26
|
-
),
|
|
26
|
+
), E(() => {
|
|
27
27
|
o.value && t.model.setRootElement(o.value);
|
|
28
28
|
}), L(() => {
|
|
29
29
|
t.model.unsubscribeRootElement();
|
|
30
|
-
}), (n, r) => e.value.isCreatorDisposed ? p("", !0) : (l(), i(
|
|
30
|
+
}), (n, r) => e.value.isCreatorDisposed ? p("", !0) : (l(), i(k, { key: 0 }, [
|
|
31
31
|
v(s(u), { is: "survey-popup-modal" }),
|
|
32
32
|
a("div", {
|
|
33
33
|
class: _(e.value.getRootCss()),
|
|
@@ -73,7 +73,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
73
73
|
}])
|
|
74
74
|
}, [
|
|
75
75
|
a("div", He, [
|
|
76
|
-
(l(!0), i(
|
|
76
|
+
(l(!0), i(k, null, R(e.value.tabs, (d) => (l(), i(k, null, [
|
|
77
77
|
e.value.viewType == d.id && d.visible ? (l(), i("div", {
|
|
78
78
|
class: _(["svc-creator-tab", {
|
|
79
79
|
"svc-creator__toolbox--right": e.value.toolboxLocation == "right"
|
|
@@ -129,8 +129,8 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
129
129
|
setup(c) {
|
|
130
130
|
const t = c;
|
|
131
131
|
let e;
|
|
132
|
-
const o =
|
|
133
|
-
return
|
|
132
|
+
const o = B();
|
|
133
|
+
return f(() => t.model), E(() => {
|
|
134
134
|
e = new he(o.value, t.model);
|
|
135
135
|
}), L(() => {
|
|
136
136
|
e.dispose(), e = void 0;
|
|
@@ -139,7 +139,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
139
139
|
ref_key: "container",
|
|
140
140
|
ref: o
|
|
141
141
|
}, [
|
|
142
|
-
(l(!0), i(
|
|
142
|
+
(l(!0), i(k, null, R(n.model.renderedActions, (d) => (l(), h(s(u), {
|
|
143
143
|
key: d.renderedId,
|
|
144
144
|
is: "svc-tabbed-menu-item-wrapper",
|
|
145
145
|
item: d
|
|
@@ -152,8 +152,8 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
152
152
|
item: {}
|
|
153
153
|
},
|
|
154
154
|
setup(c) {
|
|
155
|
-
const t =
|
|
156
|
-
return
|
|
155
|
+
const t = B(), e = c;
|
|
156
|
+
return f(() => e.item), E(() => {
|
|
157
157
|
const o = e.item;
|
|
158
158
|
o.updateModeCallback = (n, r) => {
|
|
159
159
|
o.mode = n, de(() => r(n, t.value));
|
|
@@ -181,7 +181,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
181
181
|
},
|
|
182
182
|
setup(c) {
|
|
183
183
|
const t = c;
|
|
184
|
-
return
|
|
184
|
+
return f(() => t.item), (e, o) => C((l(), i("div", {
|
|
185
185
|
class: _(["svc-tabbed-menu-item", e.item.getRootCss()]),
|
|
186
186
|
onClick: o[0] || (o[0] = //@ts-ignore
|
|
187
187
|
(...n) => e.item.action && e.item.action(...n))
|
|
@@ -208,8 +208,8 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
208
208
|
model: {}
|
|
209
209
|
},
|
|
210
210
|
setup(c) {
|
|
211
|
-
const t = c, e =
|
|
212
|
-
return
|
|
211
|
+
const t = c, e = B();
|
|
212
|
+
return f(() => t.model), E(() => {
|
|
213
213
|
t.model.initResizeManager(e.value);
|
|
214
214
|
}), L(() => {
|
|
215
215
|
t.model.resetResizeManager();
|
|
@@ -234,7 +234,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
234
234
|
model: o.model.header.componentModel
|
|
235
235
|
}, null, 8, ["is", "model"]),
|
|
236
236
|
a("div", so, [
|
|
237
|
-
(l(!0), i(
|
|
237
|
+
(l(!0), i(k, null, R(o.model.pages, (r, d) => (l(), h(s(u), {
|
|
238
238
|
key: d,
|
|
239
239
|
is: "svc-side-bar-page",
|
|
240
240
|
model: r
|
|
@@ -264,7 +264,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
264
264
|
},
|
|
265
265
|
setup(c) {
|
|
266
266
|
const t = c;
|
|
267
|
-
return
|
|
267
|
+
return f(() => t.model), (e, o) => (l(), i("div", no, [
|
|
268
268
|
a("div", lo, [
|
|
269
269
|
v(s(u), {
|
|
270
270
|
is: "sv-action-bar",
|
|
@@ -281,7 +281,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
281
281
|
},
|
|
282
282
|
setup(c) {
|
|
283
283
|
const t = c;
|
|
284
|
-
return
|
|
284
|
+
return f(() => t.model), (e, o) => e.model.visible ? (l(), h(s(u), {
|
|
285
285
|
key: 0,
|
|
286
286
|
is: e.model.componentName,
|
|
287
287
|
model: e.model.componentData
|
|
@@ -294,7 +294,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
294
294
|
},
|
|
295
295
|
setup(c) {
|
|
296
296
|
const t = c;
|
|
297
|
-
return
|
|
297
|
+
return f(() => t.model), (e, o) => e.model.isVisible ? (l(), h(s(u), {
|
|
298
298
|
key: 0,
|
|
299
299
|
is: "sv-list",
|
|
300
300
|
model: e.model.list
|
|
@@ -305,8 +305,8 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
305
305
|
], W = /* @__PURE__ */ g({
|
|
306
306
|
__name: "Scroll",
|
|
307
307
|
setup(c) {
|
|
308
|
-
const t = new we(), e =
|
|
309
|
-
return
|
|
308
|
+
const t = new we(), e = B();
|
|
309
|
+
return E(() => {
|
|
310
310
|
t.setRootElement(e.value);
|
|
311
311
|
}), L(() => {
|
|
312
312
|
t.setRootElement(void 0), t.unsubscribeRootElement();
|
|
@@ -336,7 +336,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
336
336
|
},
|
|
337
337
|
setup(c) {
|
|
338
338
|
const t = c;
|
|
339
|
-
return
|
|
339
|
+
return f(() => t.model), (e, o) => (l(), i("div", {
|
|
340
340
|
class: _(e.model.rootCss)
|
|
341
341
|
}, [
|
|
342
342
|
v(s(u), {
|
|
@@ -361,7 +361,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
361
361
|
},
|
|
362
362
|
setup(c) {
|
|
363
363
|
const t = c;
|
|
364
|
-
return
|
|
364
|
+
return f(() => t.model), (e, o) => (l(!0), i(k, null, R(e.model.actions, (n, r) => (l(), h(s(u), {
|
|
365
365
|
key: r,
|
|
366
366
|
is: "svc-tab-button",
|
|
367
367
|
model: n
|
|
@@ -376,7 +376,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
376
376
|
},
|
|
377
377
|
setup(c) {
|
|
378
378
|
const t = c;
|
|
379
|
-
return
|
|
379
|
+
return f(() => t.model), (e, o) => (l(), i("div", {
|
|
380
380
|
class: _(e.model.sideBarClassName)
|
|
381
381
|
}, [
|
|
382
382
|
a("div", go, [
|
|
@@ -409,20 +409,20 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
409
409
|
])
|
|
410
410
|
], 2));
|
|
411
411
|
}
|
|
412
|
-
}), wo = { class: "svc-menu-action" },
|
|
412
|
+
}), wo = { class: "svc-menu-action" }, ko = ["title"], fo = { class: "svc-menu-action__icon" }, To = { class: "svc-menu-action__icon-container" }, Do = /* @__PURE__ */ g({
|
|
413
413
|
__name: "TabButton",
|
|
414
414
|
props: {
|
|
415
415
|
model: {}
|
|
416
416
|
},
|
|
417
417
|
setup(c) {
|
|
418
418
|
const t = c;
|
|
419
|
-
return
|
|
419
|
+
return f(() => t.model), (e, o) => (l(), i("div", wo, [
|
|
420
420
|
C((l(), i("div", {
|
|
421
421
|
class: _(e.model.buttonClassName),
|
|
422
422
|
title: e.model.tooltip,
|
|
423
423
|
onClick: o[0] || (o[0] = (n) => e.model.action())
|
|
424
424
|
}, [
|
|
425
|
-
a("div",
|
|
425
|
+
a("div", fo, [
|
|
426
426
|
a("div", To, [
|
|
427
427
|
v(s(u), {
|
|
428
428
|
is: "sv-svg-icon",
|
|
@@ -431,15 +431,15 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
431
431
|
}, null, 8, ["iconName"])
|
|
432
432
|
])
|
|
433
433
|
])
|
|
434
|
-
], 10,
|
|
434
|
+
], 10, ko)), [
|
|
435
435
|
[s(D), { processEsc: !1, disableTabStop: e.model.disableTabStop }]
|
|
436
436
|
])
|
|
437
437
|
]));
|
|
438
438
|
}
|
|
439
|
-
}), No = { class: "svc-property-grid-placeholder" }, Mo = { class: "svc-property-grid-placeholder__header" }, So = { class: "svc-property-grid-placeholder__title" }, Io = { class: "svc-property-grid-placeholder__description" },
|
|
439
|
+
}), No = { class: "svc-property-grid-placeholder" }, Mo = { class: "svc-property-grid-placeholder__header" }, So = { class: "svc-property-grid-placeholder__title" }, Io = { class: "svc-property-grid-placeholder__description" }, Bo = /* @__PURE__ */ a("div", { class: "svc-property-grid-placeholder__content" }, [
|
|
440
440
|
/* @__PURE__ */ a("div", { class: "svc-property-grid-placeholder__gap" }),
|
|
441
441
|
/* @__PURE__ */ a("div", { class: "svc-property-grid-placeholder__image" })
|
|
442
|
-
], -1),
|
|
442
|
+
], -1), Eo = /* @__PURE__ */ g({
|
|
443
443
|
__name: "PropertyGridPlaceholder",
|
|
444
444
|
setup(c) {
|
|
445
445
|
const t = pe;
|
|
@@ -448,7 +448,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
448
448
|
a("span", So, w(s(t).getString("ed.propertyGridPlaceholderTitle")), 1),
|
|
449
449
|
a("span", Io, w(s(t).getString("ed.propertyGridPlaceholderDescription")), 1)
|
|
450
450
|
]),
|
|
451
|
-
|
|
451
|
+
Bo
|
|
452
452
|
]));
|
|
453
453
|
}
|
|
454
454
|
}), Po = { class: "svc-side-bar__container-header svc-sidebar__header-container" }, Ro = {
|
|
@@ -464,7 +464,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
464
464
|
},
|
|
465
465
|
setup(c) {
|
|
466
466
|
const t = c;
|
|
467
|
-
return
|
|
467
|
+
return f(() => t.model), (e, o) => (l(), i("div", Po, [
|
|
468
468
|
e.model.subTitle ? p("", !0) : (l(), i("div", Ro, w(e.model.title), 1)),
|
|
469
469
|
e.model.subTitle ? (l(), i("div", Vo, [
|
|
470
470
|
a("span", Ao, w(e.model.title), 1),
|
|
@@ -479,7 +479,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
479
479
|
},
|
|
480
480
|
setup(c) {
|
|
481
481
|
const t = c;
|
|
482
|
-
return
|
|
482
|
+
return f(() => t.model), (e, o) => (l(), i("div", Fo, [
|
|
483
483
|
a("div", Ko, [
|
|
484
484
|
a("div", Uo, [
|
|
485
485
|
C((l(), i("div", {
|
|
@@ -545,8 +545,8 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
545
545
|
const t = c, e = (n) => {
|
|
546
546
|
t.click(), t.allowBubble || n.stopPropagation();
|
|
547
547
|
}, o = () => new Ce().append(t.classes || "").append("svc-action-button").append("svc-action-button--icon", !!t.iconName).append("svc-action-button--selected", !!t.selected).append("svc-action-button--disabled", !!t.disabled).toString();
|
|
548
|
-
return (n, r) => (l(), i(
|
|
549
|
-
n.iconName ? p("", !0) : (l(), i(
|
|
548
|
+
return (n, r) => (l(), i(k, null, [
|
|
549
|
+
n.iconName ? p("", !0) : (l(), i(k, { key: 0 }, [
|
|
550
550
|
n.disabled ? (l(), i("span", {
|
|
551
551
|
key: 0,
|
|
552
552
|
class: _(["svc-action-button svc-action-button--disabled", n.classes]),
|
|
@@ -563,7 +563,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
563
563
|
[s(D)]
|
|
564
564
|
])
|
|
565
565
|
], 64)),
|
|
566
|
-
n.iconName ? (l(), i(
|
|
566
|
+
n.iconName ? (l(), i(k, { key: 1 }, [
|
|
567
567
|
n.disabled ? (l(), i("span", {
|
|
568
568
|
key: 0,
|
|
569
569
|
class: _(o()),
|
|
@@ -607,7 +607,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
607
607
|
},
|
|
608
608
|
setup(c) {
|
|
609
609
|
const t = c;
|
|
610
|
-
return
|
|
610
|
+
return f(() => t.item), (e, o) => C((l(), i("button", {
|
|
611
611
|
class: _(e.item.getActionBarItemCss()),
|
|
612
612
|
type: "button",
|
|
613
613
|
onClick: o[0] || (o[0] = (n) => {
|
|
@@ -640,7 +640,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
640
640
|
},
|
|
641
641
|
setup(c) {
|
|
642
642
|
const t = c;
|
|
643
|
-
|
|
643
|
+
f(() => t.model);
|
|
644
644
|
const e = $(() => t.model.simulatorFrame), o = () => {
|
|
645
645
|
t.model.device !== "desktop" && t.model.activateZoom();
|
|
646
646
|
}, n = () => {
|
|
@@ -713,7 +713,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
713
713
|
},
|
|
714
714
|
setup(c) {
|
|
715
715
|
const t = c;
|
|
716
|
-
return
|
|
716
|
+
return f(() => t.model), (e, o) => (l(), i("div", {
|
|
717
717
|
class: _(["svc-creator-tab__content svc-test-tab__content", {
|
|
718
718
|
"svc-creator-tab__content--with-toolbar": e.model.isPageToolbarVisible
|
|
719
719
|
}])
|
|
@@ -755,7 +755,7 @@ const Le = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
755
755
|
},
|
|
756
756
|
setup(c) {
|
|
757
757
|
const t = c, e = $(() => t.model.testAgainAction);
|
|
758
|
-
return
|
|
758
|
+
return f(() => e.value), (o, n) => C((l(), i("div", {
|
|
759
759
|
role: "button",
|
|
760
760
|
class: "svc-preview__test-again svc-btn",
|
|
761
761
|
onClick: n[0] || (n[0] = (r) => e.value.action())
|
|
@@ -776,21 +776,21 @@ function A(c, t, e) {
|
|
|
776
776
|
immediate: !0
|
|
777
777
|
}
|
|
778
778
|
);
|
|
779
|
-
return
|
|
779
|
+
return f(() => o.value, void 0, e), x(() => {
|
|
780
780
|
n();
|
|
781
781
|
}), o;
|
|
782
782
|
}
|
|
783
783
|
const gs = {
|
|
784
784
|
key: 0,
|
|
785
785
|
class: "svd-test-results"
|
|
786
|
-
}, bs = { class: "svd-test-results__content" }, ys = { class: "svd-test-results__header" }, hs = { class: "svd-test-results__header-text" }, Cs = { class: "svd-test-results__header-types" }, qs = { class: "svd-test-results__text svd-light-bg-color" }, $s = { class: "svd-test-results__table svd-light-bg-color" }, ws = { class: "svd-light-background-color" },
|
|
786
|
+
}, bs = { class: "svd-test-results__content" }, ys = { class: "svd-test-results__header" }, hs = { class: "svd-test-results__header-text" }, Cs = { class: "svd-test-results__header-types" }, qs = { class: "svd-test-results__text svd-light-bg-color" }, $s = { class: "svd-test-results__table svd-light-bg-color" }, ws = { class: "svd-light-background-color" }, ks = { class: "svd-dark-border-color" }, fs = { class: "svd-dark-border-color" }, Ts = /* @__PURE__ */ g({
|
|
787
787
|
__name: "SurveyResults",
|
|
788
788
|
props: {
|
|
789
789
|
survey: {}
|
|
790
790
|
},
|
|
791
791
|
setup(c) {
|
|
792
792
|
const t = c, e = A(
|
|
793
|
-
() => t.survey ? new
|
|
793
|
+
() => t.survey ? new ke(t.survey) : void 0,
|
|
794
794
|
[() => t.survey]
|
|
795
795
|
);
|
|
796
796
|
return (o, n) => s(e) ? (l(), i("div", gs, [
|
|
@@ -823,12 +823,12 @@ const gs = {
|
|
|
823
823
|
a("table", null, [
|
|
824
824
|
a("thead", null, [
|
|
825
825
|
a("tr", ws, [
|
|
826
|
-
a("th",
|
|
827
|
-
a("th",
|
|
826
|
+
a("th", ks, w(s(e).resultsTitle), 1),
|
|
827
|
+
a("th", fs, w(s(e).resultsDisplayValue), 1)
|
|
828
828
|
])
|
|
829
829
|
]),
|
|
830
830
|
a("tbody", null, [
|
|
831
|
-
(l(!0), i(
|
|
831
|
+
(l(!0), i(k, null, R(s(e).resultData, (r, d) => (l(), h(s(u), {
|
|
832
832
|
is: "survey-results-table-row",
|
|
833
833
|
model: r,
|
|
834
834
|
key: d
|
|
@@ -848,7 +848,7 @@ const gs = {
|
|
|
848
848
|
},
|
|
849
849
|
setup(c) {
|
|
850
850
|
const t = c;
|
|
851
|
-
return
|
|
851
|
+
return f(() => t.model), (e, o) => (l(), i(k, null, [
|
|
852
852
|
C((l(), i("tr", {
|
|
853
853
|
onClick: o[0] || (o[0] = //@ts-ignore
|
|
854
854
|
(...n) => e.model.toggle && e.model.toggle(...n))
|
|
@@ -883,21 +883,21 @@ const gs = {
|
|
|
883
883
|
])), [
|
|
884
884
|
[s(D)]
|
|
885
885
|
]),
|
|
886
|
-
e.model.isNode && !e.model.collapsed ? (l(!0), i(
|
|
886
|
+
e.model.isNode && !e.model.collapsed ? (l(!0), i(k, { key: 0 }, R(e.model.data, (n, r) => (l(), h(s(u), {
|
|
887
887
|
is: "survey-results-table-row",
|
|
888
888
|
model: n,
|
|
889
889
|
key: r + 1
|
|
890
890
|
}, null, 8, ["model"]))), 128)) : p("", !0)
|
|
891
891
|
], 64));
|
|
892
892
|
}
|
|
893
|
-
}), Ms = { class: "svc-creator-tab__content" }, Ss = { class: "svc-json-editor-tab__content" }, Is = { class: "svc-json-editor-tab__errros_list" },
|
|
893
|
+
}), Ms = { class: "svc-creator-tab__content" }, Ss = { class: "svc-json-editor-tab__content" }, Is = { class: "svc-json-editor-tab__errros_list" }, Bs = /* @__PURE__ */ g({
|
|
894
894
|
__name: "JsonEditorAce",
|
|
895
895
|
props: {
|
|
896
896
|
model: {}
|
|
897
897
|
},
|
|
898
898
|
setup(c) {
|
|
899
|
-
const t = c, e =
|
|
900
|
-
return
|
|
899
|
+
const t = c, e = B();
|
|
900
|
+
return f(() => t.model), E(() => t.model.init(window.ace.edit(e.value))), (o, n) => (l(), i("div", Ms, [
|
|
901
901
|
a("div", Ss, [
|
|
902
902
|
a("div", {
|
|
903
903
|
class: "svc-json-editor-tab__ace-editor",
|
|
@@ -915,17 +915,17 @@ const gs = {
|
|
|
915
915
|
])
|
|
916
916
|
]));
|
|
917
917
|
}
|
|
918
|
-
}),
|
|
918
|
+
}), Es = { class: "svc-creator-tab__content" }, Ps = { class: "svc-json-editor-tab__content" }, Rs = ["aria-label", "disabled"], Vs = { class: "svc-json-editor-tab__errros_list" }, As = /* @__PURE__ */ g({
|
|
919
919
|
__name: "JsonEditorTextArea",
|
|
920
920
|
props: {
|
|
921
921
|
model: {}
|
|
922
922
|
},
|
|
923
923
|
setup(c) {
|
|
924
|
-
const t = c, e =
|
|
925
|
-
return o.canShowErrors = !1,
|
|
924
|
+
const t = c, e = B(), o = t.model;
|
|
925
|
+
return o.canShowErrors = !1, f(() => t.model), E(() => {
|
|
926
926
|
const n = t.model;
|
|
927
927
|
n.textElement = e.value;
|
|
928
|
-
}), (n, r) => (l(), i("div",
|
|
928
|
+
}), (n, r) => (l(), i("div", Es, [
|
|
929
929
|
a("div", Ps, [
|
|
930
930
|
C(a("textarea", {
|
|
931
931
|
class: "svc-json-editor-tab__content-area",
|
|
@@ -957,11 +957,11 @@ const gs = {
|
|
|
957
957
|
},
|
|
958
958
|
setup(c) {
|
|
959
959
|
const t = c;
|
|
960
|
-
|
|
960
|
+
f(() => t.item);
|
|
961
961
|
const e = (o) => {
|
|
962
962
|
o.stopPropagation(), t.item.data.fixError();
|
|
963
963
|
};
|
|
964
|
-
return (o, n) => (l(), i(
|
|
964
|
+
return (o, n) => (l(), i(k, null, [
|
|
965
965
|
v(s(u), {
|
|
966
966
|
is: "sv-svg-icon",
|
|
967
967
|
iconName: o.item.iconName,
|
|
@@ -1001,7 +1001,7 @@ const gs = {
|
|
|
1001
1001
|
},
|
|
1002
1002
|
setup(c) {
|
|
1003
1003
|
const t = c;
|
|
1004
|
-
|
|
1004
|
+
f(() => t.model);
|
|
1005
1005
|
const e = (o) => {
|
|
1006
1006
|
o.stopPropagation(), t.model.action();
|
|
1007
1007
|
};
|
|
@@ -1027,11 +1027,11 @@ const gs = {
|
|
|
1027
1027
|
},
|
|
1028
1028
|
setup(c) {
|
|
1029
1029
|
const t = c;
|
|
1030
|
-
return
|
|
1030
|
+
return f(() => t.model), (e, o) => (l(), i("div", Hs, [
|
|
1031
1031
|
a("div", {
|
|
1032
1032
|
class: _(["svc-plugin-tab__content svc-logic-tab__content", { "svc-logic-tab--empty": !e.model.hasItems }])
|
|
1033
1033
|
}, [
|
|
1034
|
-
e.model.hasItems ? (l(), i(
|
|
1034
|
+
e.model.hasItems ? (l(), i(k, { key: 0 }, [
|
|
1035
1035
|
v(s(Q), {
|
|
1036
1036
|
model: e.model.itemsSurvey
|
|
1037
1037
|
}, null, 8, ["model"]),
|
|
@@ -1066,9 +1066,9 @@ const js = /* @__PURE__ */ g({
|
|
|
1066
1066
|
question: {}
|
|
1067
1067
|
},
|
|
1068
1068
|
setup(c) {
|
|
1069
|
-
const t = c, e =
|
|
1069
|
+
const t = c, e = B(), o = $(() => t.question.dropdownListModel ?? new qe(t.question));
|
|
1070
1070
|
H(t, e, (m) => {
|
|
1071
|
-
|
|
1071
|
+
fe(m);
|
|
1072
1072
|
});
|
|
1073
1073
|
const n = (m) => {
|
|
1074
1074
|
var b;
|
|
@@ -1083,7 +1083,7 @@ const js = /* @__PURE__ */ g({
|
|
|
1083
1083
|
return (m, b) => (l(), i("div", {
|
|
1084
1084
|
class: _(m.question.cssClasses.selectWrapper)
|
|
1085
1085
|
}, [
|
|
1086
|
-
m.question.isReadOnly ? p("", !0) : (l(), i(
|
|
1086
|
+
m.question.isReadOnly ? p("", !0) : (l(), i(k, { key: 0 }, [
|
|
1087
1087
|
a("div", {
|
|
1088
1088
|
class: _(m.question.getControlClass()),
|
|
1089
1089
|
onClick: n,
|
|
@@ -1150,7 +1150,7 @@ const js = /* @__PURE__ */ g({
|
|
|
1150
1150
|
question: {}
|
|
1151
1151
|
},
|
|
1152
1152
|
setup(c) {
|
|
1153
|
-
const t = c, e =
|
|
1153
|
+
const t = c, e = B();
|
|
1154
1154
|
H(t, e);
|
|
1155
1155
|
const o = $(() => t.question.embeddedSurvey);
|
|
1156
1156
|
return (n, r) => n.question && o.value && o.value.currentPage ? (l(), h(s(u), {
|
|
@@ -1167,8 +1167,8 @@ const js = /* @__PURE__ */ g({
|
|
|
1167
1167
|
question: {}
|
|
1168
1168
|
},
|
|
1169
1169
|
setup(c) {
|
|
1170
|
-
const t = c, e =
|
|
1171
|
-
return H(t, e), (n, r) => (l(), i(
|
|
1170
|
+
const t = c, e = B(), o = pe.getString("pe.clear");
|
|
1171
|
+
return H(t, e), (n, r) => (l(), i(k, null, [
|
|
1172
1172
|
v(s(u), {
|
|
1173
1173
|
is: "svc-action-button",
|
|
1174
1174
|
text: n.question.linkValueText,
|
|
@@ -1199,7 +1199,7 @@ const js = /* @__PURE__ */ g({
|
|
|
1199
1199
|
},
|
|
1200
1200
|
setup(c) {
|
|
1201
1201
|
const t = c;
|
|
1202
|
-
return
|
|
1202
|
+
return f(() => t.model), (e, o) => (l(), i("div", {
|
|
1203
1203
|
class: _(["svc-creator-tab__content svc-translation-tab", e.model.isEmpty ? "svc-translation-tab--empty" : ""])
|
|
1204
1204
|
}, [
|
|
1205
1205
|
e.model.isEmpty ? (l(), h(j, {
|
|
@@ -1264,7 +1264,7 @@ const at = /* @__PURE__ */ st(tt, [["render", lt]]), it = /* @__PURE__ */ g({
|
|
|
1264
1264
|
},
|
|
1265
1265
|
setup(c) {
|
|
1266
1266
|
const t = c;
|
|
1267
|
-
return
|
|
1267
|
+
return f(() => t.model), (e, o) => (l(), i("div", {
|
|
1268
1268
|
class: _(["svc-creator-tab__content svc-test-tab__content", {
|
|
1269
1269
|
"svc-creator-tab__content--with-toolbar": e.model.isPageToolbarVisible
|
|
1270
1270
|
}])
|
|
@@ -1300,7 +1300,7 @@ const at = /* @__PURE__ */ st(tt, [["render", lt]]), it = /* @__PURE__ */ g({
|
|
|
1300
1300
|
question: {}
|
|
1301
1301
|
},
|
|
1302
1302
|
setup(c) {
|
|
1303
|
-
return H(c,
|
|
1303
|
+
return H(c, B()), (e, o) => (l(), i("div", {
|
|
1304
1304
|
class: _(e.question.cssClasses.root),
|
|
1305
1305
|
onKeydown: o[5] || (o[5] = //@ts-ignore
|
|
1306
1306
|
(...n) => e.question.onKeyDown && e.question.onKeyDown(...n))
|
|
@@ -1344,7 +1344,7 @@ const at = /* @__PURE__ */ st(tt, [["render", lt]]), it = /* @__PURE__ */ g({
|
|
|
1344
1344
|
value: e.question.renderedValue,
|
|
1345
1345
|
class: _(e.question.cssClasses.control)
|
|
1346
1346
|
}, null, 42, pt),
|
|
1347
|
-
e.question.showDropdownAction ? (l(), i(
|
|
1347
|
+
e.question.showDropdownAction ? (l(), i(k, { key: 0 }, [
|
|
1348
1348
|
v(s(u), {
|
|
1349
1349
|
is: "sv-action-bar-item",
|
|
1350
1350
|
item: e.question.dropdownAction
|
|
@@ -1364,9 +1364,9 @@ const at = /* @__PURE__ */ st(tt, [["render", lt]]), it = /* @__PURE__ */ g({
|
|
|
1364
1364
|
},
|
|
1365
1365
|
setup(c) {
|
|
1366
1366
|
const t = c;
|
|
1367
|
-
|
|
1367
|
+
f(() => t.item);
|
|
1368
1368
|
const e = () => ({ backgroundColor: t.item.value });
|
|
1369
|
-
return (o, n) => (l(), i(
|
|
1369
|
+
return (o, n) => (l(), i(k, null, [
|
|
1370
1370
|
a("span", {
|
|
1371
1371
|
class: "spg-color-editor__color-swatch",
|
|
1372
1372
|
style: K(e())
|
|
@@ -1383,7 +1383,7 @@ const at = /* @__PURE__ */ st(tt, [["render", lt]]), it = /* @__PURE__ */ g({
|
|
|
1383
1383
|
question: {}
|
|
1384
1384
|
},
|
|
1385
1385
|
setup(c) {
|
|
1386
|
-
const t =
|
|
1386
|
+
const t = B();
|
|
1387
1387
|
return H(c, t), (o, n) => (l(), i("div", {
|
|
1388
1388
|
class: _(o.question.cssClasses.root),
|
|
1389
1389
|
onDragenter: n[5] || (n[5] = //@ts-ignore
|
|
@@ -1471,9 +1471,9 @@ const at = /* @__PURE__ */ st(tt, [["render", lt]]), it = /* @__PURE__ */ g({
|
|
|
1471
1471
|
question: {}
|
|
1472
1472
|
},
|
|
1473
1473
|
setup(c) {
|
|
1474
|
-
return H(c,
|
|
1474
|
+
return H(c, B()), (e, o) => (l(), i("div", {
|
|
1475
1475
|
class: _(e.question.cssClasses.root),
|
|
1476
|
-
onKeydown: o[
|
|
1476
|
+
onKeydown: o[18] || (o[18] = //@ts-ignore
|
|
1477
1477
|
(...n) => e.question.onKeyDown && e.question.onKeyDown(...n))
|
|
1478
1478
|
}, [
|
|
1479
1479
|
a("input", {
|
|
@@ -1506,15 +1506,17 @@ const at = /* @__PURE__ */ st(tt, [["render", lt]]), it = /* @__PURE__ */ g({
|
|
|
1506
1506
|
a("button", {
|
|
1507
1507
|
disabled: e.question.isInputReadOnly,
|
|
1508
1508
|
class: _(e.question.cssClasses.arrowButton),
|
|
1509
|
-
|
|
1509
|
+
onClick: o[6] || (o[6] = //@ts-ignore
|
|
1510
|
+
(...n) => e.question.onDownButtonClick && e.question.onDownButtonClick(...n)),
|
|
1511
|
+
onMousedown: o[7] || (o[7] = //@ts-ignore
|
|
1510
1512
|
(...n) => e.question.onDownButtonMouseDown && e.question.onDownButtonMouseDown(...n)),
|
|
1511
|
-
onMouseup: o[
|
|
1513
|
+
onMouseup: o[8] || (o[8] = //@ts-ignore
|
|
1512
1514
|
(...n) => e.question.onButtonMouseUp && e.question.onButtonMouseUp(...n)),
|
|
1513
|
-
onMouseleave: o[
|
|
1515
|
+
onMouseleave: o[9] || (o[9] = //@ts-ignore
|
|
1514
1516
|
(...n) => e.question.onButtonMouseLeave && e.question.onButtonMouseLeave(...n)),
|
|
1515
|
-
onBlur: o[
|
|
1517
|
+
onBlur: o[10] || (o[10] = //@ts-ignore
|
|
1516
1518
|
(...n) => e.question.onBlur && e.question.onBlur(...n)),
|
|
1517
|
-
onFocus: o[
|
|
1519
|
+
onFocus: o[11] || (o[11] = //@ts-ignore
|
|
1518
1520
|
(...n) => e.question.onFocus && e.question.onFocus(...n)),
|
|
1519
1521
|
tabindex: "-1"
|
|
1520
1522
|
}, [
|
|
@@ -1527,15 +1529,17 @@ const at = /* @__PURE__ */ st(tt, [["render", lt]]), it = /* @__PURE__ */ g({
|
|
|
1527
1529
|
a("button", {
|
|
1528
1530
|
disabled: e.question.isInputReadOnly,
|
|
1529
1531
|
class: _(e.question.cssClasses.arrowButton),
|
|
1530
|
-
|
|
1532
|
+
onClick: o[12] || (o[12] = //@ts-ignore
|
|
1533
|
+
(...n) => e.question.onUpButtonClick && e.question.onUpButtonClick(...n)),
|
|
1534
|
+
onMousedown: o[13] || (o[13] = //@ts-ignore
|
|
1531
1535
|
(...n) => e.question.onUpButtonMouseDown && e.question.onUpButtonMouseDown(...n)),
|
|
1532
|
-
onMouseup: o[
|
|
1536
|
+
onMouseup: o[14] || (o[14] = //@ts-ignore
|
|
1533
1537
|
(...n) => e.question.onButtonMouseUp && e.question.onButtonMouseUp(...n)),
|
|
1534
|
-
onMouseleave: o[
|
|
1538
|
+
onMouseleave: o[15] || (o[15] = //@ts-ignore
|
|
1535
1539
|
(...n) => e.question.onButtonMouseLeave && e.question.onButtonMouseLeave(...n)),
|
|
1536
|
-
onBlur: o[
|
|
1540
|
+
onBlur: o[16] || (o[16] = //@ts-ignore
|
|
1537
1541
|
(...n) => e.question.onBlur && e.question.onBlur(...n)),
|
|
1538
|
-
onFocus: o[
|
|
1542
|
+
onFocus: o[17] || (o[17] = //@ts-ignore
|
|
1539
1543
|
(...n) => e.question.onFocus && e.question.onFocus(...n)),
|
|
1540
1544
|
tabindex: "-1"
|
|
1541
1545
|
}, [
|
|
@@ -1548,14 +1552,14 @@ const at = /* @__PURE__ */ st(tt, [["render", lt]]), it = /* @__PURE__ */ g({
|
|
|
1548
1552
|
], 2)
|
|
1549
1553
|
], 34));
|
|
1550
1554
|
}
|
|
1551
|
-
}),
|
|
1555
|
+
}), kt = ["disabled", "title"], le = /* @__PURE__ */ g({
|
|
1552
1556
|
__name: "TextWithReset",
|
|
1553
1557
|
props: {
|
|
1554
1558
|
question: {}
|
|
1555
1559
|
},
|
|
1556
1560
|
setup(c) {
|
|
1557
1561
|
const t = c, e = () => "survey-" + t.question.wrappedQuestionTemplate;
|
|
1558
|
-
return H(t,
|
|
1562
|
+
return H(t, B()), (o, n) => (l(), i("div", {
|
|
1559
1563
|
class: _(o.question.getRootClass())
|
|
1560
1564
|
}, [
|
|
1561
1565
|
v(s(u), {
|
|
@@ -1574,10 +1578,10 @@ const at = /* @__PURE__ */ st(tt, [["render", lt]]), it = /* @__PURE__ */ g({
|
|
|
1574
1578
|
iconName: o.question.cssClasses.resetButtonIcon,
|
|
1575
1579
|
size: "auto"
|
|
1576
1580
|
}, null, 8, ["iconName"])
|
|
1577
|
-
], 10,
|
|
1581
|
+
], 10, kt)
|
|
1578
1582
|
], 2));
|
|
1579
1583
|
}
|
|
1580
|
-
}),
|
|
1584
|
+
}), ft = ["aria-required", "aria-label", "aria-invalid", "aria-errormessage"], Tt = /* @__PURE__ */ a("div", { class: "spg-boolean-switch__thumb" }, [
|
|
1581
1585
|
/* @__PURE__ */ a("div", { class: "spg-boolean-switch__thumb-circle spg-boolean-switch__thumb--left" })
|
|
1582
1586
|
], -1), Dt = /* @__PURE__ */ a("div", { class: "spg-boolean-switch__thumb" }, [
|
|
1583
1587
|
/* @__PURE__ */ a("div", { class: "spg-boolean-switch__thumb-circle spg-boolean-switch__thumb--right" })
|
|
@@ -1597,7 +1601,7 @@ const It = /* @__PURE__ */ g({
|
|
|
1597
1601
|
question: {}
|
|
1598
1602
|
},
|
|
1599
1603
|
setup(c) {
|
|
1600
|
-
const t = c, e =
|
|
1604
|
+
const t = c, e = B(null);
|
|
1601
1605
|
return H(t, e), (o, n) => (l(), i("div", {
|
|
1602
1606
|
class: "spg-boolean-switch",
|
|
1603
1607
|
role: "checkbox",
|
|
@@ -1621,9 +1625,9 @@ const It = /* @__PURE__ */ g({
|
|
|
1621
1625
|
}, null, 8, ["locString"])
|
|
1622
1626
|
])
|
|
1623
1627
|
])
|
|
1624
|
-
], 8,
|
|
1628
|
+
], 8, ft));
|
|
1625
1629
|
}
|
|
1626
|
-
}),
|
|
1630
|
+
}), Bt = { class: "svc-string-editor__content" }, Et = /* @__PURE__ */ a("div", { class: "svc-string-editor__border svc-string-editor__border--hover" }, null, -1), Pt = /* @__PURE__ */ a("div", { class: "svc-string-editor__border svc-string-editor__border--focus" }, null, -1), Rt = { class: "svc-string-editor__input" }, Vt = ["textContent", "aria-placeholder", "contenteditable"], At = ["aria-placeholder", "contenteditable", "innerHTML"], zt = {
|
|
1627
1631
|
key: 0,
|
|
1628
1632
|
class: "svc-string-editor__error"
|
|
1629
1633
|
}, Lt = /* @__PURE__ */ g({
|
|
@@ -1632,7 +1636,7 @@ const It = /* @__PURE__ */ g({
|
|
|
1632
1636
|
locString: {}
|
|
1633
1637
|
},
|
|
1634
1638
|
setup(c) {
|
|
1635
|
-
const t = c, e = $(() => t.locString.locStr), o = $(() => t.locString.creator), n =
|
|
1639
|
+
const t = c, e = $(() => t.locString.locStr), o = $(() => t.locString.creator), n = B(), r = B(), d = A(
|
|
1636
1640
|
() => {
|
|
1637
1641
|
const q = new Te(
|
|
1638
1642
|
e.value,
|
|
@@ -1694,7 +1698,7 @@ const It = /* @__PURE__ */ g({
|
|
|
1694
1698
|
immediate: !0
|
|
1695
1699
|
}
|
|
1696
1700
|
);
|
|
1697
|
-
return
|
|
1701
|
+
return E(() => {
|
|
1698
1702
|
var q;
|
|
1699
1703
|
e.value.__isEditing && ((q = n.value) == null || q.focus());
|
|
1700
1704
|
}), L(() => {
|
|
@@ -1702,8 +1706,8 @@ const It = /* @__PURE__ */ g({
|
|
|
1702
1706
|
}), (q, T) => (l(), i("span", {
|
|
1703
1707
|
class: _(b.value)
|
|
1704
1708
|
}, [
|
|
1705
|
-
a("span",
|
|
1706
|
-
|
|
1709
|
+
a("span", Bt, [
|
|
1710
|
+
Et,
|
|
1707
1711
|
Pt,
|
|
1708
1712
|
a("span", Rt, [
|
|
1709
1713
|
e.value.hasHtml ? p("", !0) : (l(), i("span", {
|
|
@@ -1816,10 +1820,10 @@ const It = /* @__PURE__ */ g({
|
|
|
1816
1820
|
model: {}
|
|
1817
1821
|
},
|
|
1818
1822
|
setup(c) {
|
|
1819
|
-
const t = c, e = $(() => t.model.toolbox), o =
|
|
1820
|
-
|
|
1823
|
+
const t = c, e = $(() => t.model.toolbox), o = B();
|
|
1824
|
+
f(() => e.value);
|
|
1821
1825
|
let n;
|
|
1822
|
-
|
|
1826
|
+
E(() => {
|
|
1823
1827
|
e.value.setRootElement(o.value), n = new $e(
|
|
1824
1828
|
e.value.containerElement,
|
|
1825
1829
|
e.value
|
|
@@ -1855,14 +1859,14 @@ const It = /* @__PURE__ */ g({
|
|
|
1855
1859
|
e.value.showPlaceholder ? (l(), i("div", Ut, w(e.value.toolboxNoResultsFound), 1)) : p("", !0),
|
|
1856
1860
|
v(W, null, {
|
|
1857
1861
|
default: Y(() => [
|
|
1858
|
-
e.value.showInSingleCategory ? p("", !0) : (l(!0), i(
|
|
1862
|
+
e.value.showInSingleCategory ? p("", !0) : (l(!0), i(k, { key: 0 }, R(e.value.categories, (b, y) => (l(), h(s(u), {
|
|
1859
1863
|
is: "svc-toolbox-category",
|
|
1860
1864
|
key: y,
|
|
1861
1865
|
category: b,
|
|
1862
1866
|
toolbox: e.value
|
|
1863
1867
|
}, null, 8, ["category", "toolbox"]))), 128)),
|
|
1864
1868
|
e.value.showInSingleCategory ? (l(), i("div", Ht, [
|
|
1865
|
-
(l(!0), i(
|
|
1869
|
+
(l(!0), i(k, null, R(r.value, (b) => (l(), h(s(u), {
|
|
1866
1870
|
key: b.renderedId,
|
|
1867
1871
|
is: "svc-toolbox-tool",
|
|
1868
1872
|
creator: d.model,
|
|
@@ -1899,8 +1903,8 @@ const It = /* @__PURE__ */ g({
|
|
|
1899
1903
|
(n) => {
|
|
1900
1904
|
n.dispose();
|
|
1901
1905
|
}
|
|
1902
|
-
), o =
|
|
1903
|
-
return
|
|
1906
|
+
), o = B();
|
|
1907
|
+
return E(() => {
|
|
1904
1908
|
const n = t.item;
|
|
1905
1909
|
n.updateModeCallback = (r, d) => {
|
|
1906
1910
|
n.mode = r, de(() => d(r, o.value));
|
|
@@ -1908,7 +1912,7 @@ const It = /* @__PURE__ */ g({
|
|
|
1908
1912
|
}), L(() => {
|
|
1909
1913
|
const n = t.item;
|
|
1910
1914
|
n.updateModeCallback = void 0;
|
|
1911
|
-
}),
|
|
1915
|
+
}), f(() => t.item), (n, r) => {
|
|
1912
1916
|
var d;
|
|
1913
1917
|
return l(), i("div", {
|
|
1914
1918
|
class: _(n.item.css),
|
|
@@ -1947,7 +1951,7 @@ const It = /* @__PURE__ */ g({
|
|
|
1947
1951
|
viewModel: {}
|
|
1948
1952
|
},
|
|
1949
1953
|
setup(c) {
|
|
1950
|
-
return (t, e) => (l(), i(
|
|
1954
|
+
return (t, e) => (l(), i(k, null, [
|
|
1951
1955
|
C((l(), i("div", {
|
|
1952
1956
|
class: _(["svc-toolbox__item", t.item.renderedCss]),
|
|
1953
1957
|
role: "button",
|
|
@@ -1997,7 +2001,7 @@ const It = /* @__PURE__ */ g({
|
|
|
1997
2001
|
}, o = (n) => {
|
|
1998
2002
|
t.viewModel.onMouseLeave(t.item, n);
|
|
1999
2003
|
};
|
|
2000
|
-
return (n, r) => (l(), i(
|
|
2004
|
+
return (n, r) => (l(), i(k, null, [
|
|
2001
2005
|
v(s(u), {
|
|
2002
2006
|
is: "svc-toolbox-item",
|
|
2003
2007
|
viewModel: n.viewModel,
|
|
@@ -2033,7 +2037,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2033
2037
|
},
|
|
2034
2038
|
setup(c) {
|
|
2035
2039
|
const t = c;
|
|
2036
|
-
return
|
|
2040
|
+
return f(() => t.category), (e, o) => (l(), i("div", {
|
|
2037
2041
|
class: _(["svc-toolbox__category", {
|
|
2038
2042
|
"svc-toolbox__category--collapsed": e.category.collapsed,
|
|
2039
2043
|
"svc-toolbox__category--empty": e.category.empty
|
|
@@ -2071,7 +2075,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2071
2075
|
[s(D)]
|
|
2072
2076
|
])
|
|
2073
2077
|
]),
|
|
2074
|
-
(l(!0), i(
|
|
2078
|
+
(l(!0), i(k, null, R(e.category.items, (n) => (l(), h(s(u), {
|
|
2075
2079
|
is: "svc-toolbox-tool",
|
|
2076
2080
|
item: n,
|
|
2077
2081
|
key: n.renderedId,
|
|
@@ -2091,7 +2095,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2091
2095
|
return (t, e) => (l(), i("div", {
|
|
2092
2096
|
class: _(t.model.cssClasses.root)
|
|
2093
2097
|
}, [
|
|
2094
|
-
(l(!0), i(
|
|
2098
|
+
(l(!0), i(k, null, R(t.model.renderedActions, (o, n) => (l(), h(s(u), {
|
|
2095
2099
|
key: n,
|
|
2096
2100
|
is: "svc-toolbox-tool",
|
|
2097
2101
|
creator: t.creator,
|
|
@@ -2129,7 +2133,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2129
2133
|
},
|
|
2130
2134
|
setup(c) {
|
|
2131
2135
|
const t = c, e = $(() => t.model.survey);
|
|
2132
|
-
return
|
|
2136
|
+
return f(() => t.model), f(() => e.value), (o, n) => (l(), i(k, null, [
|
|
2133
2137
|
a("div", nn, [
|
|
2134
2138
|
o.model.isToolboxVisible ? (l(), h(s(u), {
|
|
2135
2139
|
key: 0,
|
|
@@ -2145,7 +2149,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2145
2149
|
v(W, null, {
|
|
2146
2150
|
default: Y(() => [
|
|
2147
2151
|
a("div", ln, [
|
|
2148
|
-
o.model.showPlaceholder ? (l(), i(
|
|
2152
|
+
o.model.showPlaceholder ? (l(), i(k, { key: 0 }, [
|
|
2149
2153
|
o.model.creator.showHeaderInEmptySurvey && o.model.creator.allowEditSurveyTitle ? (l(), i("div", an, [
|
|
2150
2154
|
v(s(u), {
|
|
2151
2155
|
is: "survey-header",
|
|
@@ -2169,7 +2173,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2169
2173
|
])
|
|
2170
2174
|
])
|
|
2171
2175
|
], 64)) : p("", !0),
|
|
2172
|
-
o.model.showPlaceholder ? p("", !0) : (l(), i(
|
|
2176
|
+
o.model.showPlaceholder ? p("", !0) : (l(), i(k, { key: 1 }, [
|
|
2173
2177
|
a("div", {
|
|
2174
2178
|
class: _(o.model.designerCss),
|
|
2175
2179
|
style: K([
|
|
@@ -2183,7 +2187,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2183
2187
|
survey: o.model.creator.survey
|
|
2184
2188
|
}, null, 8, ["survey"])
|
|
2185
2189
|
])) : p("", !0),
|
|
2186
|
-
o.model.creator.pageEditMode !== "bypage" ? (l(!0), i(
|
|
2190
|
+
o.model.creator.pageEditMode !== "bypage" ? (l(!0), i(k, { key: 1 }, R(o.model.pages, (r) => (l(), i("div", {
|
|
2187
2191
|
key: r.id,
|
|
2188
2192
|
class: "svc-page",
|
|
2189
2193
|
"data-sv-drop-target-survey-element": r != o.model.newPage ? r.name : "newGhostPage",
|
|
@@ -2240,7 +2244,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2240
2244
|
}, $n = {
|
|
2241
2245
|
key: 2,
|
|
2242
2246
|
class: "svc-page__placeholder_frame"
|
|
2243
|
-
}, wn = { class: "svc-panel__placeholder_frame" },
|
|
2247
|
+
}, wn = { class: "svc-panel__placeholder_frame" }, kn = { class: "svc-panel__placeholder" }, fn = /* @__PURE__ */ g({
|
|
2244
2248
|
__name: "Page",
|
|
2245
2249
|
props: {
|
|
2246
2250
|
creator: {},
|
|
@@ -2249,7 +2253,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2249
2253
|
isGhost: { type: Boolean }
|
|
2250
2254
|
},
|
|
2251
2255
|
setup(c) {
|
|
2252
|
-
const t = c, e =
|
|
2256
|
+
const t = c, e = B(), o = A(
|
|
2253
2257
|
() => {
|
|
2254
2258
|
const r = new Ne(t.creator, t.page);
|
|
2255
2259
|
return r.isGhost = t.isGhost, r;
|
|
@@ -2266,7 +2270,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2266
2270
|
}
|
|
2267
2271
|
), ee(() => {
|
|
2268
2272
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
2269
|
-
}),
|
|
2273
|
+
}), E(() => {
|
|
2270
2274
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
2271
2275
|
});
|
|
2272
2276
|
const n = (r) => {
|
|
@@ -2331,7 +2335,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2331
2335
|
}, null, 8, ["survey", "page"]),
|
|
2332
2336
|
s(o).showPlaceholder ? (l(), i("div", $n, [
|
|
2333
2337
|
a("div", wn, [
|
|
2334
|
-
a("div",
|
|
2338
|
+
a("div", kn, w(s(o).placeholderText), 1)
|
|
2335
2339
|
])
|
|
2336
2340
|
])) : p("", !0),
|
|
2337
2341
|
v(s(u), {
|
|
@@ -2351,9 +2355,9 @@ const It = /* @__PURE__ */ g({
|
|
|
2351
2355
|
},
|
|
2352
2356
|
setup(c) {
|
|
2353
2357
|
const t = c;
|
|
2354
|
-
|
|
2358
|
+
f(() => t.item.data);
|
|
2355
2359
|
const e = $(() => "svc-element__add-new-question " + (t.buttonClass || "svc-btn")), o = $(() => t.renderPopup === void 0 || t.renderPopup !== !1);
|
|
2356
|
-
return (n, r) => (l(), i(
|
|
2360
|
+
return (n, r) => (l(), i(k, null, [
|
|
2357
2361
|
C((l(), i("div", {
|
|
2358
2362
|
class: _(e.value),
|
|
2359
2363
|
onClick: r[0] || (r[0] = (d) => {
|
|
@@ -2393,7 +2397,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2393
2397
|
},
|
|
2394
2398
|
setup(c) {
|
|
2395
2399
|
const t = c;
|
|
2396
|
-
return
|
|
2400
|
+
return f(() => t.questionTypeSelectorModel), (e, o) => C((l(), i("button", {
|
|
2397
2401
|
type: "button",
|
|
2398
2402
|
onClick: o[0] || (o[0] = (n) => {
|
|
2399
2403
|
e.questionTypeSelectorModel.action(), n.stopPropagation();
|
|
@@ -2419,7 +2423,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2419
2423
|
[s(D)]
|
|
2420
2424
|
]);
|
|
2421
2425
|
}
|
|
2422
|
-
}), Sn = /* @__PURE__ */ a("div", { class: "svc-row__drop-indicator svc-row__drop-indicator--top" }, null, -1), In = /* @__PURE__ */ a("div", { class: "svc-row__drop-indicator svc-row__drop-indicator--bottom" }, null, -1),
|
|
2426
|
+
}), Sn = /* @__PURE__ */ a("div", { class: "svc-row__drop-indicator svc-row__drop-indicator--top" }, null, -1), In = /* @__PURE__ */ a("div", { class: "svc-row__drop-indicator svc-row__drop-indicator--bottom" }, null, -1), Bn = /* @__PURE__ */ g({
|
|
2423
2427
|
__name: "Row",
|
|
2424
2428
|
props: {
|
|
2425
2429
|
componentData: {}
|
|
@@ -2432,7 +2436,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2432
2436
|
r.dispose();
|
|
2433
2437
|
}
|
|
2434
2438
|
);
|
|
2435
|
-
return
|
|
2439
|
+
return E(() => {
|
|
2436
2440
|
n.value && n.value.subscribeElementChanges();
|
|
2437
2441
|
}), L(() => {
|
|
2438
2442
|
n.value && n.value.unsubscribeElementChanges();
|
|
@@ -2444,7 +2448,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2444
2448
|
X(r.$slots, "default")
|
|
2445
2449
|
], 2));
|
|
2446
2450
|
}
|
|
2447
|
-
}),
|
|
2451
|
+
}), En = ["data-sv-drop-target-survey-element"], Pn = { class: "svc-fake-title" }, Rn = /* @__PURE__ */ a("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--left" }, null, -1), Vn = /* @__PURE__ */ a("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--right" }, null, -1), An = /* @__PURE__ */ a("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--top" }, null, -1), zn = /* @__PURE__ */ a("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }, null, -1), Ln = { class: "svc-question__top-actions" }, Fn = {
|
|
2448
2452
|
key: 0,
|
|
2449
2453
|
class: "svc-panel__placeholder_frame-wrapper"
|
|
2450
2454
|
}, Kn = { class: "svc-panel__placeholder_frame" }, Un = {
|
|
@@ -2463,7 +2467,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2463
2467
|
componentData: {}
|
|
2464
2468
|
},
|
|
2465
2469
|
setup(c) {
|
|
2466
|
-
const t = c, e =
|
|
2470
|
+
const t = c, e = B(), o = A(
|
|
2467
2471
|
() => t.createModel(),
|
|
2468
2472
|
[() => t.componentName, () => t.componentData],
|
|
2469
2473
|
(d) => {
|
|
@@ -2474,7 +2478,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2474
2478
|
);
|
|
2475
2479
|
ee(() => {
|
|
2476
2480
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
2477
|
-
}),
|
|
2481
|
+
}), E(() => {
|
|
2478
2482
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
2479
2483
|
});
|
|
2480
2484
|
const r = (d) => {
|
|
@@ -2537,7 +2541,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2537
2541
|
}, null, 8, ["model"])
|
|
2538
2542
|
])
|
|
2539
2543
|
], 32)) : p("", !0),
|
|
2540
|
-
s(o).needToRenderContent ? (l(), i(
|
|
2544
|
+
s(o).needToRenderContent ? (l(), i(k, { key: 1 }, [
|
|
2541
2545
|
v(s(u), {
|
|
2542
2546
|
is: "sv-template-renderer",
|
|
2543
2547
|
componentName: d.componentName,
|
|
@@ -2580,7 +2584,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2580
2584
|
], 2)), [
|
|
2581
2585
|
[s(D), { disableTabStop: !0 }]
|
|
2582
2586
|
])
|
|
2583
|
-
], 42,
|
|
2587
|
+
], 42, En)) : p("", !0);
|
|
2584
2588
|
}
|
|
2585
2589
|
}), ae = /* @__PURE__ */ g({
|
|
2586
2590
|
__name: "Question",
|
|
@@ -2643,9 +2647,9 @@ const It = /* @__PURE__ */ g({
|
|
|
2643
2647
|
element: {}
|
|
2644
2648
|
},
|
|
2645
2649
|
setup(c) {
|
|
2646
|
-
return (t, e) => (l(), i(
|
|
2650
|
+
return (t, e) => (l(), i(k, null, [
|
|
2647
2651
|
!t.model.isUploading && !t.model.isEmptyElement ? (l(), i("div", On, [
|
|
2648
|
-
t.model.allowEdit ? (l(), i(
|
|
2652
|
+
t.model.allowEdit ? (l(), i(k, { key: 0 }, [
|
|
2649
2653
|
a("input", {
|
|
2650
2654
|
type: "file",
|
|
2651
2655
|
"aria-hidden": "true",
|
|
@@ -2742,7 +2746,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2742
2746
|
), m = A(
|
|
2743
2747
|
() => {
|
|
2744
2748
|
var b;
|
|
2745
|
-
return t.componentData ? new
|
|
2749
|
+
return t.componentData ? new Be(
|
|
2746
2750
|
e.value,
|
|
2747
2751
|
r.value,
|
|
2748
2752
|
d.value,
|
|
@@ -2806,7 +2810,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2806
2810
|
const t = c, e = $(
|
|
2807
2811
|
() => t.componentData.element
|
|
2808
2812
|
);
|
|
2809
|
-
return
|
|
2813
|
+
return f(() => e.value), (o, n) => (l(), i("div", el, [
|
|
2810
2814
|
a("div", ol, [
|
|
2811
2815
|
v(s(u), V({ is: o.componentName }, o.componentData), null, 16, ["is"])
|
|
2812
2816
|
])
|
|
@@ -2889,7 +2893,7 @@ const It = /* @__PURE__ */ g({
|
|
|
2889
2893
|
}, null, 8, ["model"])
|
|
2890
2894
|
])
|
|
2891
2895
|
], 32)) : p("", !0),
|
|
2892
|
-
s(e).needToRenderContent ? (l(), i(
|
|
2896
|
+
s(e).needToRenderContent ? (l(), i(k, { key: 1 }, [
|
|
2893
2897
|
v(s(u), V({ is: n.componentName }, n.componentData), null, 16, ["is"]),
|
|
2894
2898
|
s(e).isEmptyElement ? (l(), i("div", cl, [
|
|
2895
2899
|
a("div", ul, [
|
|
@@ -2954,19 +2958,19 @@ const It = /* @__PURE__ */ g({
|
|
|
2954
2958
|
componentData: {}
|
|
2955
2959
|
},
|
|
2956
2960
|
setup(c) {
|
|
2957
|
-
const t =
|
|
2961
|
+
const t = B(), e = c, o = $(() => e.componentData.data.creator), n = $(() => e.componentData.question), r = $(() => e.componentData.item), d = G(
|
|
2958
2962
|
() => r.value,
|
|
2959
2963
|
(b, y) => {
|
|
2960
2964
|
b && t.value && b.setRootElement(t.value), y && y.setRootElement(void 0);
|
|
2961
2965
|
}
|
|
2962
2966
|
);
|
|
2963
|
-
|
|
2967
|
+
E(() => {
|
|
2964
2968
|
t.value && r.value && r.value.setRootElement(t.value);
|
|
2965
2969
|
}), L(() => {
|
|
2966
2970
|
r.value.setRootElement(void 0);
|
|
2967
2971
|
});
|
|
2968
2972
|
const m = A(
|
|
2969
|
-
() => new
|
|
2973
|
+
() => new Ee(o.value, n.value, r.value),
|
|
2970
2974
|
[() => o.value, () => n.value, () => r.value],
|
|
2971
2975
|
(b) => {
|
|
2972
2976
|
b.dispose();
|
|
@@ -3038,7 +3042,7 @@ const It = /* @__PURE__ */ g({
|
|
|
3038
3042
|
])
|
|
3039
3043
|
], 42, yl));
|
|
3040
3044
|
}
|
|
3041
|
-
}), wl = ["data-sv-drop-target-item-value"],
|
|
3045
|
+
}), wl = ["data-sv-drop-target-item-value"], kl = { class: "svc-image-item-value-wrapper__content" }, fl = ["accept"], Tl = {
|
|
3042
3046
|
key: 0,
|
|
3043
3047
|
class: "svc-image-item-value__item"
|
|
3044
3048
|
}, Dl = {
|
|
@@ -3054,7 +3058,7 @@ const It = /* @__PURE__ */ g({
|
|
|
3054
3058
|
componentData: {}
|
|
3055
3059
|
},
|
|
3056
3060
|
setup(c) {
|
|
3057
|
-
const t = c, e = $(() => t.componentData.data.creator), o = $(() => t.componentData.question), n = $(() => t.componentData.item), r =
|
|
3061
|
+
const t = c, e = $(() => t.componentData.data.creator), o = $(() => t.componentData.question), n = $(() => t.componentData.item), r = B(), d = A(
|
|
3058
3062
|
() => {
|
|
3059
3063
|
const b = new Pe(
|
|
3060
3064
|
e.value,
|
|
@@ -3076,7 +3080,7 @@ const It = /* @__PURE__ */ g({
|
|
|
3076
3080
|
height: b ? o.value.renderedImageHeight + "px" : void 0
|
|
3077
3081
|
};
|
|
3078
3082
|
});
|
|
3079
|
-
return
|
|
3083
|
+
return E(() => {
|
|
3080
3084
|
r.value && (d.value.itemsRoot = r.value);
|
|
3081
3085
|
}), (b, y) => (l(), i("div", {
|
|
3082
3086
|
onPointerdown: y[8] || (y[8] = (N) => s(d).onPointerDown(N)),
|
|
@@ -3089,15 +3093,15 @@ const It = /* @__PURE__ */ g({
|
|
|
3089
3093
|
class: "svc-image-item-value-wrapper__ghost",
|
|
3090
3094
|
style: K(m.value)
|
|
3091
3095
|
}, null, 4),
|
|
3092
|
-
a("div",
|
|
3096
|
+
a("div", kl, [
|
|
3093
3097
|
a("input", {
|
|
3094
3098
|
type: "file",
|
|
3095
3099
|
"aria-hidden": "true",
|
|
3096
3100
|
tabindex: "-1",
|
|
3097
3101
|
accept: s(d).acceptedTypes,
|
|
3098
3102
|
class: "svc-choose-file-input"
|
|
3099
|
-
}, null, 8,
|
|
3100
|
-
!s(d).isNew && !s(d).isUploading ? (l(), i(
|
|
3103
|
+
}, null, 8, fl),
|
|
3104
|
+
!s(d).isNew && !s(d).isUploading ? (l(), i(k, { key: 0 }, [
|
|
3101
3105
|
s(d).isNew ? p("", !0) : (l(), i("div", Tl, [
|
|
3102
3106
|
v(s(u), V({ is: b.componentName }, b.componentData), null, 16, ["is"])
|
|
3103
3107
|
])),
|
|
@@ -3149,7 +3153,7 @@ const It = /* @__PURE__ */ g({
|
|
|
3149
3153
|
])
|
|
3150
3154
|
])) : p("", !0)
|
|
3151
3155
|
], 64)) : p("", !0),
|
|
3152
|
-
s(d).isNew || s(d).isUploading ? (l(), i(
|
|
3156
|
+
s(d).isNew || s(d).isUploading ? (l(), i(k, { key: 1 }, [
|
|
3153
3157
|
a("div", {
|
|
3154
3158
|
class: "svc-image-item-value__item",
|
|
3155
3159
|
onDragover: y[3] || (y[3] = (N) => s(d).onDragOver(N)),
|
|
@@ -3194,7 +3198,7 @@ const It = /* @__PURE__ */ g({
|
|
|
3194
3198
|
])
|
|
3195
3199
|
], 42, wl));
|
|
3196
3200
|
}
|
|
3197
|
-
}),
|
|
3201
|
+
}), Bl = /* @__PURE__ */ g({
|
|
3198
3202
|
__name: "QuestionEditor",
|
|
3199
3203
|
props: {
|
|
3200
3204
|
survey: {}
|
|
@@ -3224,7 +3228,7 @@ const It = /* @__PURE__ */ g({
|
|
|
3224
3228
|
});
|
|
3225
3229
|
return (r, d) => (l(), h(s(u), V({ is: o.value }, n.value), null, 16, ["is"]));
|
|
3226
3230
|
}
|
|
3227
|
-
}),
|
|
3231
|
+
}), El = ["accept"], Pl = /* @__PURE__ */ a("svg", null, [
|
|
3228
3232
|
/* @__PURE__ */ a("use", { "xlink:href": "#icon-image-48x48" })
|
|
3229
3233
|
], -1), Rl = [
|
|
3230
3234
|
Pl
|
|
@@ -3237,10 +3241,10 @@ const It = /* @__PURE__ */ g({
|
|
|
3237
3241
|
data: {}
|
|
3238
3242
|
},
|
|
3239
3243
|
setup(c) {
|
|
3240
|
-
const t = c, e = $(() => t.data), o = $(() => e.value.survey), n =
|
|
3244
|
+
const t = c, e = $(() => t.data), o = $(() => e.value.survey), n = B(), r = A(
|
|
3241
3245
|
() => new Re(e.value, null),
|
|
3242
3246
|
[() => e.value]
|
|
3243
|
-
), d =
|
|
3247
|
+
), d = B(), m = () => {
|
|
3244
3248
|
d.value = o.value.locLogo.renderedHtml;
|
|
3245
3249
|
};
|
|
3246
3250
|
return G(
|
|
@@ -3251,7 +3255,7 @@ const It = /* @__PURE__ */ g({
|
|
|
3251
3255
|
{
|
|
3252
3256
|
immediate: !0
|
|
3253
3257
|
}
|
|
3254
|
-
),
|
|
3258
|
+
), E(() => {
|
|
3255
3259
|
n.value && (r.value.root = n.value);
|
|
3256
3260
|
}), L(() => {
|
|
3257
3261
|
r.value && (r.value.root = void 0);
|
|
@@ -3266,8 +3270,8 @@ const It = /* @__PURE__ */ g({
|
|
|
3266
3270
|
tabindex: "-1",
|
|
3267
3271
|
accept: s(r).acceptedTypes,
|
|
3268
3272
|
class: "svc-choose-file-input"
|
|
3269
|
-
}, null, 8,
|
|
3270
|
-
d.value ? p("", !0) : (l(), i(
|
|
3273
|
+
}, null, 8, El),
|
|
3274
|
+
d.value ? p("", !0) : (l(), i(k, { key: 0 }, [
|
|
3271
3275
|
s(r).allowEdit && !s(r).isUploading ? C((l(), i("div", {
|
|
3272
3276
|
key: 0,
|
|
3273
3277
|
class: "svc-logo-image-placeholder",
|
|
@@ -3330,7 +3334,7 @@ const It = /* @__PURE__ */ g({
|
|
|
3330
3334
|
},
|
|
3331
3335
|
setup(c) {
|
|
3332
3336
|
const t = c;
|
|
3333
|
-
|
|
3337
|
+
f(() => t.model);
|
|
3334
3338
|
const e = $({
|
|
3335
3339
|
get: () => t.model.filterString,
|
|
3336
3340
|
set: (o) => {
|
|
@@ -3374,8 +3378,8 @@ const It = /* @__PURE__ */ g({
|
|
|
3374
3378
|
const t = c, e = A(
|
|
3375
3379
|
() => new Ve(t.pagesController, t.pageEditMode),
|
|
3376
3380
|
[() => t.pagesController, () => t.pageEditMode]
|
|
3377
|
-
), o =
|
|
3378
|
-
return
|
|
3381
|
+
), o = B();
|
|
3382
|
+
return E(() => {
|
|
3379
3383
|
if (t.pageEditMode !== "bypage") {
|
|
3380
3384
|
const n = o.value;
|
|
3381
3385
|
e.value.attachToUI(n);
|
|
@@ -3410,7 +3414,7 @@ const It = /* @__PURE__ */ g({
|
|
|
3410
3414
|
[s(D)]
|
|
3411
3415
|
]),
|
|
3412
3416
|
a("div", null, [
|
|
3413
|
-
(l(!0), i(
|
|
3417
|
+
(l(!0), i(k, null, R(s(e).visibleItems, (d) => (l(), h(s(u), {
|
|
3414
3418
|
is: "svc-page-navigator-item",
|
|
3415
3419
|
key: d.id,
|
|
3416
3420
|
model: d
|
|
@@ -3431,7 +3435,7 @@ const It = /* @__PURE__ */ g({
|
|
|
3431
3435
|
},
|
|
3432
3436
|
setup(c) {
|
|
3433
3437
|
const t = c;
|
|
3434
|
-
|
|
3438
|
+
f(() => t.model);
|
|
3435
3439
|
const e = (o) => {
|
|
3436
3440
|
t.model.action(), o.stopPropagation(), o.preventDefault();
|
|
3437
3441
|
};
|
|
@@ -3474,7 +3478,7 @@ const It = /* @__PURE__ */ g({
|
|
|
3474
3478
|
return (n, r) => (l(), i("div", oa, [
|
|
3475
3479
|
a("div", null, [
|
|
3476
3480
|
a("div", sa, [
|
|
3477
|
-
(l(!0), i(
|
|
3481
|
+
(l(!0), i(k, null, R(n.model.getRenderedItems(), (d) => (l(), i("div", {
|
|
3478
3482
|
key: d.value,
|
|
3479
3483
|
class: _(n.model.getChoiceCss())
|
|
3480
3484
|
}, [
|
|
@@ -3530,11 +3534,11 @@ const It = /* @__PURE__ */ g({
|
|
|
3530
3534
|
data: e.value.getItemValueWrapperComponentData(r)
|
|
3531
3535
|
}
|
|
3532
3536
|
});
|
|
3533
|
-
return
|
|
3537
|
+
return f(() => e.value), (r, d) => (l(), i("div", la, [
|
|
3534
3538
|
a("div", aa, [
|
|
3535
3539
|
v(s(u), V({ is: r.componentName }, r.componentData), null, 16, ["is"]),
|
|
3536
3540
|
a("div", ia, [
|
|
3537
|
-
(l(!0), i(
|
|
3541
|
+
(l(!0), i(k, null, R(e.value.visibleChoices, (m) => (l(), i("div", {
|
|
3538
3542
|
key: m.value,
|
|
3539
3543
|
class: "svc-question__dropdown-choice"
|
|
3540
3544
|
}, [
|
|
@@ -3564,7 +3568,7 @@ const It = /* @__PURE__ */ g({
|
|
|
3564
3568
|
componentData: {}
|
|
3565
3569
|
},
|
|
3566
3570
|
setup(c) {
|
|
3567
|
-
const t = c, e =
|
|
3571
|
+
const t = c, e = B(), o = A(
|
|
3568
3572
|
() => new oe(
|
|
3569
3573
|
t.componentData.data,
|
|
3570
3574
|
t.componentData.element,
|
|
@@ -3577,7 +3581,7 @@ const It = /* @__PURE__ */ g({
|
|
|
3577
3581
|
);
|
|
3578
3582
|
return ee(() => {
|
|
3579
3583
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
3580
|
-
}),
|
|
3584
|
+
}), E(() => {
|
|
3581
3585
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
3582
3586
|
}), (n, r) => s(o) ? (l(), i("div", {
|
|
3583
3587
|
key: 0,
|
|
@@ -3624,7 +3628,7 @@ const It = /* @__PURE__ */ g({
|
|
|
3624
3628
|
], 2)), [
|
|
3625
3629
|
[s(D)]
|
|
3626
3630
|
]) : p("", !0),
|
|
3627
|
-
s(o).element.isInteractiveDesignElement ? p("", !0) : (l(), i(
|
|
3631
|
+
s(o).element.isInteractiveDesignElement ? p("", !0) : (l(), i(k, { key: 1 }, [
|
|
3628
3632
|
v(s(u), V({ is: n.componentName }, n.componentData), null, 16, ["is"]),
|
|
3629
3633
|
s(o).isEmptyElement ? (l(), i("div", ha, [
|
|
3630
3634
|
a("div", Ca, w(s(o).placeholderText), 1)
|
|
@@ -3632,7 +3636,7 @@ const It = /* @__PURE__ */ g({
|
|
|
3632
3636
|
], 64))
|
|
3633
3637
|
], 42, da)) : p("", !0);
|
|
3634
3638
|
}
|
|
3635
|
-
}), $a = { class: "svc-carry-forward-panel-wrapper" }, wa = { class: "svc-carry-forward-panel" },
|
|
3639
|
+
}), $a = { class: "svc-carry-forward-panel-wrapper" }, wa = { class: "svc-carry-forward-panel" }, ka = { class: "svc-carry-forward-panel__link" }, fa = /* @__PURE__ */ g({
|
|
3636
3640
|
__name: "QuestionBanner",
|
|
3637
3641
|
props: {
|
|
3638
3642
|
model: {}
|
|
@@ -3641,7 +3645,7 @@ const It = /* @__PURE__ */ g({
|
|
|
3641
3645
|
return (t, e) => (l(), i("div", $a, [
|
|
3642
3646
|
a("div", wa, [
|
|
3643
3647
|
a("span", null, w(t.model.text) + w(" "), 1),
|
|
3644
|
-
a("span",
|
|
3648
|
+
a("span", ka, [
|
|
3645
3649
|
v(s(u), {
|
|
3646
3650
|
is: "svc-action-button",
|
|
3647
3651
|
text: t.model.actionText,
|
|
@@ -3660,7 +3664,7 @@ function ve(c) {
|
|
|
3660
3664
|
void 0,
|
|
3661
3665
|
c
|
|
3662
3666
|
);
|
|
3663
|
-
t("svc-tabbed-menu", Ze), t("svc-tabbed-menu-item-wrapper", Ye), t("svc-tabbed-menu-item", xe), t("svc-side-bar", to), t("svc-side-bar-default-header", io), t("svc-side-bar-page", ro), t("svc-tabs", _o), t("svc-tab-control", $o), t("svc-tab-button", Do), t("svc-property-grid-placeholder",
|
|
3667
|
+
t("svc-tabbed-menu", Ze), t("svc-tabbed-menu-item-wrapper", Ye), t("svc-tabbed-menu-item", xe), t("svc-side-bar", to), t("svc-side-bar-default-header", io), t("svc-side-bar-page", ro), t("svc-tabs", _o), t("svc-tab-control", $o), t("svc-tab-button", Do), t("svc-property-grid-placeholder", Eo), t("svc-side-bar-header", Lo), t("svc-side-bar-property-grid-header", Go), t("svc-property-grid", mo), t("svc-object-selector", co), t("svc-search", Ol), t("svc-scroll", W), t("svc-switcher", ns), t("svc-action-button", Yo), t("svc-question-error", Wo), t("survey-embeddedsurvey", Js), t("sv-logic-operator", js), t("survey-linkvalue", Zs), t("survey-color", vt), t("color-item", mt), t("sv-boolean-switch", It), t("survey-fileedit", ht), t("survey-spinedit", wt), t("survey-textwithreset", le), t("survey-commentwithreset", le), t("survey-widget", Q), t("survey-simulator", is), t("svc-tab-preview", vs), t("svc-complete-page", _s), t("survey-results", Ts), t("survey-results-table-row", Ns), t("json-error-item", Ks), t("svc-tab-json-editor-textarea", As), t("svc-tab-json-editor-ace", Bs), t("svc-tab-translation", ot), t("sd-translation-line-skeleton", at), t("svc-translate-from-action", it), t("svc-tab-logic", Qs), t("svc-tab-theme", ct), t("svc-toolbox", Ot), t("svc-toolbox-list", tn), t("svc-toolbox-category", sn), t("svc-toolbox-tool", Gt), t("svc-toolbox-item", Zt), t("svc-toolbox-item-group", Xt), t(ze, Lt), t("svc-tab-designer", gn), t("svc-page-navigator", Gl), t("svc-page-navigator-item", ea), t("svc-page", fn), t("svc-row", Bn), t("svc-add-new-question-btn", Dn), t("svc-add-question-type-selector", Mn), t("svc-question", ae), t("svc-rating-question", ae), t("svc-rating-question-content", Xn), t("svc-image-question", Hn), t("svc-image-question-adorner", Jn), t("svc-matrix-cell", xn), t("svc-cell-question", sl), t("svc-cell-dropdown-question", ra), t("svc-question-editor-content", Bl), t("svc-logo-image", zl), t("svc-panel", bl), t("svc-item-value", $l), t("svc-image-item-value", Il), t("svc-dropdown-question", na), t("svc-dropdown-question-adorner", ta), t("svc-widget-question", qa), t("svc-question-banner", fa);
|
|
3664
3668
|
}
|
|
3665
3669
|
ve(
|
|
3666
3670
|
(c, t) => re.Instance.registerComponent(c, t)
|