survey-creator-vue 2.0.9 → 2.1.0
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 +453 -446
- package/survey-creator-vue.umd.js +1 -1
package/survey-creator-vue.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useBase as T, SvComponent as
|
|
1
|
+
import { useBase as T, SvComponent as c, key2ClickDirective as N, SurveyComponent as Q, useQuestion as O, useComputedArray as _e, ComponentFactory as ie } from "survey-vue3-ui";
|
|
2
2
|
import { defineComponent as g, computed as k, toRaw as ge, ref as I, onMounted as P, onUnmounted as K, openBlock as a, createElementBlock as l, Fragment as w, createVNode as v, unref as s, createElementVNode as d, normalizeClass as _, normalizeStyle as F, createCommentVNode as p, renderList as V, createBlock as h, nextTick as re, withDirectives as C, toDisplayString as $, vShow as U, withCtx as Z, createTextVNode as be, shallowRef as ye, watch as G, onBeforeUnmount as X, vModelText as de, onUpdated as Y, mergeProps as A, renderSlot as x } from "vue";
|
|
3
3
|
import { ResponsivityManager as he, CssClassBuilder as qe, RendererFactory as ce, DropdownListModel as Ce, VerticalResponsivityManager as ke } from "survey-core";
|
|
4
4
|
import { editorLocalization as ue, SurveyResultsModel as $e, initLogicOperator as fe, StringEditorViewModelBase as we, ToolboxToolViewModel as Te, PageAdorner as De, RowViewModel as Ne, QuestionAdornerViewModel as ee, QuestionImageAdornerViewModel as Me, QuestionRatingAdornerViewModel as Se, MatrixCellWrapperViewModel as Be, ItemValueWrapperViewModel as Ie, ImageItemValueWrapperViewModel as Ee, LogoImageViewModel as Pe, PageNavigatorViewModel as Re, QuestionDropdownAdornerViewModel as Ve, editableStringRendererName as Ae } from "survey-creator-core";
|
|
@@ -16,8 +16,8 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
16
16
|
props: {
|
|
17
17
|
model: {}
|
|
18
18
|
},
|
|
19
|
-
setup(
|
|
20
|
-
const t =
|
|
19
|
+
setup(u) {
|
|
20
|
+
const t = u, e = k(() => ge(t.model)), o = I();
|
|
21
21
|
return T(
|
|
22
22
|
() => e.value,
|
|
23
23
|
(n, i) => {
|
|
@@ -28,7 +28,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
28
28
|
}), K(() => {
|
|
29
29
|
t.model.unsubscribeRootElement();
|
|
30
30
|
}), (n, i) => e.value.isCreatorDisposed ? p("", !0) : (a(), l(w, { key: 0 }, [
|
|
31
|
-
v(s(
|
|
31
|
+
v(s(c), { is: "survey-popup-modal" }),
|
|
32
32
|
d("div", {
|
|
33
33
|
class: _(e.value.getRootCss()),
|
|
34
34
|
style: F(e.value.themeVariables),
|
|
@@ -36,7 +36,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
36
36
|
ref: o
|
|
37
37
|
}, [
|
|
38
38
|
d("div", null, [
|
|
39
|
-
v(s(
|
|
39
|
+
v(s(c), { is: "sv-svg-bundle" })
|
|
40
40
|
]),
|
|
41
41
|
d("div", {
|
|
42
42
|
class: _(["svc-full-container svc-creator__area svc-flex-column", {
|
|
@@ -51,7 +51,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
51
51
|
d("div", ze, [
|
|
52
52
|
d("div", Le, [
|
|
53
53
|
e.value.showTabs ? (a(), l("div", Fe, [
|
|
54
|
-
v(s(
|
|
54
|
+
v(s(c), {
|
|
55
55
|
is: "svc-tabbed-menu",
|
|
56
56
|
model: e.value.tabbedMenu
|
|
57
57
|
}, null, 8, ["model"])
|
|
@@ -61,7 +61,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
61
61
|
class: "svc-toolbar-wrapper",
|
|
62
62
|
"v-show": e.value.showToolbar
|
|
63
63
|
}, [
|
|
64
|
-
v(s(
|
|
64
|
+
v(s(c), {
|
|
65
65
|
is: "sv-action-bar",
|
|
66
66
|
model: e.value.toolbar
|
|
67
67
|
}, null, 8, ["model"])
|
|
@@ -83,7 +83,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
83
83
|
"aria-labelledby": "tab-" + r.id,
|
|
84
84
|
id: "scrollableDiv-" + r.id
|
|
85
85
|
}, [
|
|
86
|
-
v(s(
|
|
86
|
+
v(s(c), {
|
|
87
87
|
is: r.componentContent,
|
|
88
88
|
model: r.data.model
|
|
89
89
|
}, null, 8, ["is", "model"])
|
|
@@ -96,14 +96,14 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
96
96
|
class: "svc-toolbar-wrapper",
|
|
97
97
|
"v-show": e.value.isMobileView
|
|
98
98
|
}, [
|
|
99
|
-
v(s(
|
|
99
|
+
v(s(c), {
|
|
100
100
|
is: "sv-action-bar",
|
|
101
101
|
model: e.value.footerToolbar
|
|
102
102
|
}, null, 8, ["model"])
|
|
103
103
|
], 8, Qe)
|
|
104
104
|
])) : p("", !0)
|
|
105
105
|
]),
|
|
106
|
-
e.value.sidebar ? (a(), h(s(
|
|
106
|
+
e.value.sidebar ? (a(), h(s(c), {
|
|
107
107
|
key: 0,
|
|
108
108
|
is: "svc-side-bar",
|
|
109
109
|
model: e.value.sidebar
|
|
@@ -115,7 +115,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
115
115
|
innerHTML: e.value.licenseText
|
|
116
116
|
}, null, 8, We)
|
|
117
117
|
])),
|
|
118
|
-
v(s(
|
|
118
|
+
v(s(c), {
|
|
119
119
|
is: "sv-notifier",
|
|
120
120
|
model: e.value.notifier
|
|
121
121
|
}, null, 8, ["model"])
|
|
@@ -128,8 +128,8 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
128
128
|
props: {
|
|
129
129
|
model: {}
|
|
130
130
|
},
|
|
131
|
-
setup(
|
|
132
|
-
const t =
|
|
131
|
+
setup(u) {
|
|
132
|
+
const t = u;
|
|
133
133
|
let e;
|
|
134
134
|
const o = I();
|
|
135
135
|
return T(() => t.model), P(() => {
|
|
@@ -142,7 +142,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
142
142
|
ref: o,
|
|
143
143
|
role: "tablist"
|
|
144
144
|
}, [
|
|
145
|
-
(a(!0), l(w, null, V(n.model.renderedActions, (r) => (a(), h(s(
|
|
145
|
+
(a(!0), l(w, null, V(n.model.renderedActions, (r) => (a(), h(s(c), {
|
|
146
146
|
key: r.renderedId,
|
|
147
147
|
is: "svc-tabbed-menu-item-wrapper",
|
|
148
148
|
item: r
|
|
@@ -154,8 +154,8 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
154
154
|
props: {
|
|
155
155
|
item: {}
|
|
156
156
|
},
|
|
157
|
-
setup(
|
|
158
|
-
const t = I(), e =
|
|
157
|
+
setup(u) {
|
|
158
|
+
const t = I(), e = u;
|
|
159
159
|
return T(() => e.item), P(() => {
|
|
160
160
|
const o = e.item;
|
|
161
161
|
o.updateModeCallback = (n, i) => {
|
|
@@ -170,7 +170,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
170
170
|
ref: t
|
|
171
171
|
}, [
|
|
172
172
|
d("div", Ze, [
|
|
173
|
-
v(s(
|
|
173
|
+
v(s(c), {
|
|
174
174
|
is: o.item.component || "svc-tabbed-menu-item",
|
|
175
175
|
item: o.item
|
|
176
176
|
}, null, 8, ["is", "item"])
|
|
@@ -182,8 +182,8 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
182
182
|
props: {
|
|
183
183
|
item: {}
|
|
184
184
|
},
|
|
185
|
-
setup(
|
|
186
|
-
const t =
|
|
185
|
+
setup(u) {
|
|
186
|
+
const t = u;
|
|
187
187
|
return T(() => t.item), (e, o) => C((a(), l("div", {
|
|
188
188
|
role: "tab",
|
|
189
189
|
id: "tab-" + e.item.id,
|
|
@@ -197,7 +197,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
197
197
|
key: 0,
|
|
198
198
|
class: _(e.item.getTitleCss())
|
|
199
199
|
}, $(e.item.title), 3)) : p("", !0),
|
|
200
|
-
e.item.hasIcon ? (a(), h(s(
|
|
200
|
+
e.item.hasIcon ? (a(), h(s(c), {
|
|
201
201
|
key: 1,
|
|
202
202
|
is: "sv-svg-icon",
|
|
203
203
|
iconName: e.item.iconName,
|
|
@@ -214,8 +214,8 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
214
214
|
props: {
|
|
215
215
|
model: {}
|
|
216
216
|
},
|
|
217
|
-
setup(
|
|
218
|
-
const t =
|
|
217
|
+
setup(u) {
|
|
218
|
+
const t = u, e = I();
|
|
219
219
|
return T(() => t.model), P(() => {
|
|
220
220
|
t.model.initResizeManager(e.value);
|
|
221
221
|
}), K(() => {
|
|
@@ -236,12 +236,12 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
236
236
|
ref_key: "root",
|
|
237
237
|
ref: e
|
|
238
238
|
}, [
|
|
239
|
-
v(s(
|
|
239
|
+
v(s(c), {
|
|
240
240
|
is: o.model.header.component,
|
|
241
241
|
model: o.model.header.componentModel
|
|
242
242
|
}, null, 8, ["is", "model"]),
|
|
243
243
|
d("div", so, [
|
|
244
|
-
(a(!0), l(w, null, V(o.model.pages, (i, r) => (a(), h(s(
|
|
244
|
+
(a(!0), l(w, null, V(o.model.pages, (i, r) => (a(), h(s(c), {
|
|
245
245
|
key: r,
|
|
246
246
|
is: "svc-side-bar-page",
|
|
247
247
|
model: i
|
|
@@ -251,7 +251,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
251
251
|
], 512), [
|
|
252
252
|
[U, o.model.renderContainer]
|
|
253
253
|
]),
|
|
254
|
-
o.model.sideAreaComponentName ? (a(), h(s(
|
|
254
|
+
o.model.sideAreaComponentName ? (a(), h(s(c), {
|
|
255
255
|
key: 0,
|
|
256
256
|
is: o.model.sideAreaComponentName,
|
|
257
257
|
model: o.model.sideAreaComponentData
|
|
@@ -269,11 +269,11 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
269
269
|
props: {
|
|
270
270
|
model: {}
|
|
271
271
|
},
|
|
272
|
-
setup(
|
|
273
|
-
const t =
|
|
272
|
+
setup(u) {
|
|
273
|
+
const t = u;
|
|
274
274
|
return T(() => t.model), (e, o) => (a(), l("div", no, [
|
|
275
275
|
d("div", ao, [
|
|
276
|
-
v(s(
|
|
276
|
+
v(s(c), {
|
|
277
277
|
is: "sv-action-bar",
|
|
278
278
|
model: e.model.toolbar
|
|
279
279
|
}, null, 8, ["model"])
|
|
@@ -286,9 +286,9 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
286
286
|
props: {
|
|
287
287
|
model: {}
|
|
288
288
|
},
|
|
289
|
-
setup(
|
|
290
|
-
const t =
|
|
291
|
-
return T(() => t.model), (e, o) => e.model.visible ? (a(), h(s(
|
|
289
|
+
setup(u) {
|
|
290
|
+
const t = u;
|
|
291
|
+
return T(() => t.model), (e, o) => e.model.visible ? (a(), h(s(c), {
|
|
292
292
|
key: 0,
|
|
293
293
|
is: e.model.componentName,
|
|
294
294
|
model: e.model.componentData
|
|
@@ -299,9 +299,9 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
299
299
|
props: {
|
|
300
300
|
model: {}
|
|
301
301
|
},
|
|
302
|
-
setup(
|
|
303
|
-
const t =
|
|
304
|
-
return T(() => t.model), (e, o) => e.model.isVisible ? (a(), h(s(
|
|
302
|
+
setup(u) {
|
|
303
|
+
const t = u;
|
|
304
|
+
return T(() => t.model), (e, o) => e.model.isVisible ? (a(), h(s(c), {
|
|
305
305
|
key: 0,
|
|
306
306
|
is: "sv-list",
|
|
307
307
|
model: e.model.list
|
|
@@ -312,12 +312,12 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
312
312
|
props: {
|
|
313
313
|
model: {}
|
|
314
314
|
},
|
|
315
|
-
setup(
|
|
316
|
-
const t =
|
|
315
|
+
setup(u) {
|
|
316
|
+
const t = u;
|
|
317
317
|
return T(() => t.model), (e, o) => (a(), l("div", {
|
|
318
318
|
class: _(e.model.rootCss)
|
|
319
319
|
}, [
|
|
320
|
-
v(s(
|
|
320
|
+
v(s(c), {
|
|
321
321
|
is: "svc-search",
|
|
322
322
|
model: e.model.searchManager
|
|
323
323
|
}, null, 8, ["model"]),
|
|
@@ -332,9 +332,9 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
332
332
|
props: {
|
|
333
333
|
model: {}
|
|
334
334
|
},
|
|
335
|
-
setup(
|
|
336
|
-
const t =
|
|
337
|
-
return T(() => t.model), (e, o) => (a(!0), l(w, null, V(e.model.actions, (n, i) => (a(), h(s(
|
|
335
|
+
setup(u) {
|
|
336
|
+
const t = u;
|
|
337
|
+
return T(() => t.model), (e, o) => (a(!0), l(w, null, V(e.model.actions, (n, i) => (a(), h(s(c), {
|
|
338
338
|
key: i,
|
|
339
339
|
is: "svc-tab-button",
|
|
340
340
|
model: n
|
|
@@ -347,23 +347,23 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
347
347
|
props: {
|
|
348
348
|
model: {}
|
|
349
349
|
},
|
|
350
|
-
setup(
|
|
351
|
-
const t =
|
|
350
|
+
setup(u) {
|
|
351
|
+
const t = u;
|
|
352
352
|
return T(() => t.model), (e, o) => (a(), l("div", {
|
|
353
353
|
class: _(e.model.sideBarClassName)
|
|
354
354
|
}, [
|
|
355
355
|
d("div", vo, [
|
|
356
356
|
d("div", mo, [
|
|
357
|
-
v(s(
|
|
357
|
+
v(s(c), {
|
|
358
358
|
is: "svc-tab-button",
|
|
359
359
|
model: e.model.expandCollapseAction
|
|
360
360
|
}, null, 8, ["model"])
|
|
361
361
|
]),
|
|
362
362
|
_o,
|
|
363
|
-
v(s(
|
|
363
|
+
v(s(c), { is: "sv-scroll" }, {
|
|
364
364
|
default: Z(() => [
|
|
365
365
|
d("div", go, [
|
|
366
|
-
v(s(
|
|
366
|
+
v(s(c), {
|
|
367
367
|
is: "svc-tabs",
|
|
368
368
|
model: e.model.topToolbar
|
|
369
369
|
}, null, 8, ["model"])
|
|
@@ -374,7 +374,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
374
374
|
]),
|
|
375
375
|
d("div", bo, [
|
|
376
376
|
d("div", yo, [
|
|
377
|
-
v(s(
|
|
377
|
+
v(s(c), {
|
|
378
378
|
is: "svc-tabs",
|
|
379
379
|
model: e.model.bottomToolbar
|
|
380
380
|
}, null, 8, ["model"])
|
|
@@ -390,8 +390,8 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
390
390
|
props: {
|
|
391
391
|
model: {}
|
|
392
392
|
},
|
|
393
|
-
setup(
|
|
394
|
-
const t =
|
|
393
|
+
setup(u) {
|
|
394
|
+
const t = u;
|
|
395
395
|
return T(() => t.model), (e, o) => e.model.visible ? (a(), l("div", qo, [
|
|
396
396
|
C((a(), l("div", {
|
|
397
397
|
class: _(e.model.buttonClassName),
|
|
@@ -400,7 +400,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
400
400
|
}, [
|
|
401
401
|
d("div", ko, [
|
|
402
402
|
d("div", $o, [
|
|
403
|
-
v(s(
|
|
403
|
+
v(s(c), {
|
|
404
404
|
is: "sv-svg-icon",
|
|
405
405
|
iconName: e.model.iconName,
|
|
406
406
|
size: "auto"
|
|
@@ -417,7 +417,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
417
417
|
/* @__PURE__ */ d("div", { class: "svc-property-grid-placeholder__image" })
|
|
418
418
|
], -1), So = /* @__PURE__ */ g({
|
|
419
419
|
__name: "PropertyGridPlaceholder",
|
|
420
|
-
setup(
|
|
420
|
+
setup(u) {
|
|
421
421
|
const t = ue;
|
|
422
422
|
return (e, o) => (a(), l("div", wo, [
|
|
423
423
|
d("div", To, [
|
|
@@ -438,8 +438,8 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
438
438
|
props: {
|
|
439
439
|
model: {}
|
|
440
440
|
},
|
|
441
|
-
setup(
|
|
442
|
-
const t =
|
|
441
|
+
setup(u) {
|
|
442
|
+
const t = u;
|
|
443
443
|
return T(() => t.model), (e, o) => (a(), l("div", Bo, [
|
|
444
444
|
e.model.subTitle ? p("", !0) : (a(), l("div", Io, $(e.model.title), 1)),
|
|
445
445
|
e.model.subTitle ? (a(), l("div", Eo, [
|
|
@@ -453,8 +453,8 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
453
453
|
props: {
|
|
454
454
|
model: {}
|
|
455
455
|
},
|
|
456
|
-
setup(
|
|
457
|
-
const t =
|
|
456
|
+
setup(u) {
|
|
457
|
+
const t = u;
|
|
458
458
|
return T(() => t.model), (e, o) => (a(), l("div", Ao, [
|
|
459
459
|
d("div", zo, [
|
|
460
460
|
d("div", Lo, [
|
|
@@ -469,7 +469,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
469
469
|
], 2)), [
|
|
470
470
|
[s(N), { processEsc: !1 }]
|
|
471
471
|
]),
|
|
472
|
-
v(s(
|
|
472
|
+
v(s(c), {
|
|
473
473
|
is: "sv-popup",
|
|
474
474
|
model: e.model.popupModel
|
|
475
475
|
}, null, 8, ["model"])
|
|
@@ -485,9 +485,9 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
485
485
|
cssClasses: {},
|
|
486
486
|
element: {}
|
|
487
487
|
},
|
|
488
|
-
setup(
|
|
488
|
+
setup(u) {
|
|
489
489
|
return (t, e) => (a(), l("div", { key: t.errorKey }, [
|
|
490
|
-
v(s(
|
|
490
|
+
v(s(c), {
|
|
491
491
|
is: "sv-svg-icon",
|
|
492
492
|
class: _(t.cssClasses.error.icon),
|
|
493
493
|
iconName: "icon-alert_24x24",
|
|
@@ -498,7 +498,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
498
498
|
t.cssClasses ? t.cssClasses.error.item || void 0 : "panel-error-item"
|
|
499
499
|
)
|
|
500
500
|
}, [
|
|
501
|
-
v(s(
|
|
501
|
+
v(s(c), {
|
|
502
502
|
is: "survey-string",
|
|
503
503
|
locString: t.error.locText
|
|
504
504
|
}, null, 8, ["locString"])
|
|
@@ -517,8 +517,8 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
517
517
|
click: { type: Function },
|
|
518
518
|
iconName: {}
|
|
519
519
|
},
|
|
520
|
-
setup(
|
|
521
|
-
const t =
|
|
520
|
+
setup(u) {
|
|
521
|
+
const t = u, e = (n) => {
|
|
522
522
|
t.click(), t.allowBubble || n.stopPropagation();
|
|
523
523
|
}, o = () => new qe().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();
|
|
524
524
|
return (n, i) => (a(), l(w, null, [
|
|
@@ -545,7 +545,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
545
545
|
class: _(o()),
|
|
546
546
|
title: n.title
|
|
547
547
|
}, [
|
|
548
|
-
v(s(
|
|
548
|
+
v(s(c), {
|
|
549
549
|
is: "sv-svg-icon",
|
|
550
550
|
iconName: n.iconName,
|
|
551
551
|
size: "auto"
|
|
@@ -557,7 +557,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
557
557
|
class: _(o()),
|
|
558
558
|
title: n.title
|
|
559
559
|
}, [
|
|
560
|
-
v(s(
|
|
560
|
+
v(s(c), {
|
|
561
561
|
is: "sv-svg-icon",
|
|
562
562
|
iconName: n.iconName,
|
|
563
563
|
size: "auto"
|
|
@@ -581,8 +581,8 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
581
581
|
props: {
|
|
582
582
|
item: {}
|
|
583
583
|
},
|
|
584
|
-
setup(
|
|
585
|
-
const t =
|
|
584
|
+
setup(u) {
|
|
585
|
+
const t = u;
|
|
586
586
|
return T(() => t.item), (e, o) => C((a(), l("button", {
|
|
587
587
|
class: _(e.item.getActionBarItemCss()),
|
|
588
588
|
type: "button",
|
|
@@ -614,8 +614,8 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
614
614
|
props: {
|
|
615
615
|
model: {}
|
|
616
616
|
},
|
|
617
|
-
setup(
|
|
618
|
-
const t =
|
|
617
|
+
setup(u) {
|
|
618
|
+
const t = u;
|
|
619
619
|
T(() => t.model);
|
|
620
620
|
const e = k(() => t.model.simulatorFrame), o = () => {
|
|
621
621
|
t.model.device !== "desktop" && t.model.activateZoom();
|
|
@@ -629,7 +629,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
629
629
|
onMouseout: r[2] || (r[2] = (m) => n())
|
|
630
630
|
}, [
|
|
631
631
|
i.model.hasFrame ? p("", !0) : (a(), l("div", ss, [
|
|
632
|
-
v(s(
|
|
632
|
+
v(s(c), {
|
|
633
633
|
is: "survey-widget",
|
|
634
634
|
model: i.model.survey
|
|
635
635
|
}, null, 8, ["model"])
|
|
@@ -652,7 +652,7 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
652
652
|
})
|
|
653
653
|
}, [
|
|
654
654
|
d("div", ts, [
|
|
655
|
-
v(s(
|
|
655
|
+
v(s(c), {
|
|
656
656
|
is: "survey-widget",
|
|
657
657
|
model: i.model.survey
|
|
658
658
|
}, null, 8, ["model"])
|
|
@@ -668,8 +668,8 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
668
668
|
placeholderTitleText: {},
|
|
669
669
|
placeholderDescriptionText: {}
|
|
670
670
|
},
|
|
671
|
-
setup(
|
|
672
|
-
const t =
|
|
671
|
+
setup(u) {
|
|
672
|
+
const t = u;
|
|
673
673
|
return (e, o) => (a(), l("div", as, [
|
|
674
674
|
d("div", {
|
|
675
675
|
class: _(["svc-surface-placeholder__image", "svc-surface-placeholder__image--" + e.name])
|
|
@@ -688,8 +688,8 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
688
688
|
props: {
|
|
689
689
|
model: {}
|
|
690
690
|
},
|
|
691
|
-
setup(
|
|
692
|
-
const t =
|
|
691
|
+
setup(u) {
|
|
692
|
+
const t = u;
|
|
693
693
|
return T(() => t.model), (e, o) => (a(), l("div", {
|
|
694
694
|
class: _(["svc-creator-tab__content svc-test-tab__content", {
|
|
695
695
|
"svc-creator-tab__content--with-toolbar": e.model.isPageToolbarVisible
|
|
@@ -706,18 +706,18 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
706
706
|
class: "svc-plugin-tab__content",
|
|
707
707
|
onScroll: o[0] || (o[0] = (n) => e.model.onScroll())
|
|
708
708
|
}, [
|
|
709
|
-
v(s(
|
|
709
|
+
v(s(c), {
|
|
710
710
|
is: "survey-simulator",
|
|
711
711
|
model: e.model.simulator
|
|
712
712
|
}, null, 8, ["model"]),
|
|
713
|
-
e.model.showResults ? (a(), h(s(
|
|
713
|
+
e.model.showResults ? (a(), h(s(c), {
|
|
714
714
|
key: 0,
|
|
715
715
|
is: "survey-results",
|
|
716
716
|
survey: e.model.survey
|
|
717
717
|
}, null, 8, ["survey"])) : p("", !0)
|
|
718
718
|
], 32)),
|
|
719
719
|
e.model.isPageToolbarVisible ? (a(), l("div", ds, [
|
|
720
|
-
v(s(
|
|
720
|
+
v(s(c), {
|
|
721
721
|
is: "sv-action-bar",
|
|
722
722
|
model: e.model.pages
|
|
723
723
|
}, null, 8, ["model"])
|
|
@@ -730,8 +730,8 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
730
730
|
props: {
|
|
731
731
|
model: {}
|
|
732
732
|
},
|
|
733
|
-
setup(
|
|
734
|
-
const t =
|
|
733
|
+
setup(u) {
|
|
734
|
+
const t = u, e = k(() => t.model.testAgainAction);
|
|
735
735
|
return T(() => e.value), (o, n) => C((a(), l("div", {
|
|
736
736
|
role: "button",
|
|
737
737
|
class: "svc-preview__test-again svc-btn",
|
|
@@ -743,11 +743,11 @@ const ze = { class: "svc-flex-column svc-flex-row__element svc-flex-row__element
|
|
|
743
743
|
]);
|
|
744
744
|
}
|
|
745
745
|
});
|
|
746
|
-
function z(
|
|
746
|
+
function z(u, t, e) {
|
|
747
747
|
const o = ye(), n = G(
|
|
748
748
|
t.map((i) => () => i()),
|
|
749
749
|
() => {
|
|
750
|
-
o.value =
|
|
750
|
+
o.value = u();
|
|
751
751
|
},
|
|
752
752
|
{
|
|
753
753
|
immediate: !0
|
|
@@ -765,8 +765,8 @@ const vs = {
|
|
|
765
765
|
props: {
|
|
766
766
|
survey: {}
|
|
767
767
|
},
|
|
768
|
-
setup(
|
|
769
|
-
const t =
|
|
768
|
+
setup(u) {
|
|
769
|
+
const t = u, e = z(
|
|
770
770
|
() => t.survey ? new $e(t.survey) : void 0,
|
|
771
771
|
[() => t.survey]
|
|
772
772
|
);
|
|
@@ -775,14 +775,14 @@ const vs = {
|
|
|
775
775
|
d("div", _s, [
|
|
776
776
|
d("div", gs, $(s(e).surveyResultsText), 1),
|
|
777
777
|
d("div", bs, [
|
|
778
|
-
v(s(
|
|
778
|
+
v(s(c), {
|
|
779
779
|
is: "svc-action-button",
|
|
780
780
|
text: s(e).surveyResultsTableText,
|
|
781
781
|
click: s(e).selectTableClick,
|
|
782
782
|
disabled: !1,
|
|
783
783
|
selected: s(e).isTableSelected
|
|
784
784
|
}, null, 8, ["text", "click", "selected"]),
|
|
785
|
-
v(s(
|
|
785
|
+
v(s(c), {
|
|
786
786
|
is: "svc-action-button",
|
|
787
787
|
text: s(e).surveyResultsJsonText,
|
|
788
788
|
click: s(e).selectJsonClick,
|
|
@@ -805,7 +805,7 @@ const vs = {
|
|
|
805
805
|
])
|
|
806
806
|
]),
|
|
807
807
|
d("tbody", null, [
|
|
808
|
-
(a(!0), l(w, null, V(s(e).resultData, (i, r) => (a(), h(s(
|
|
808
|
+
(a(!0), l(w, null, V(s(e).resultData, (i, r) => (a(), h(s(c), {
|
|
809
809
|
is: "survey-results-table-row",
|
|
810
810
|
model: i,
|
|
811
811
|
key: r
|
|
@@ -823,8 +823,8 @@ const vs = {
|
|
|
823
823
|
props: {
|
|
824
824
|
model: {}
|
|
825
825
|
},
|
|
826
|
-
setup(
|
|
827
|
-
const t =
|
|
826
|
+
setup(u) {
|
|
827
|
+
const t = u;
|
|
828
828
|
return T(() => t.model), (e, o) => (a(), l(w, null, [
|
|
829
829
|
C((a(), l("tr", {
|
|
830
830
|
onClick: o[0] || (o[0] = //@ts-ignore
|
|
@@ -839,13 +839,13 @@ const vs = {
|
|
|
839
839
|
class: _(["svd-test-results__marker", { "svd-test-results__marker--expanded": !e.model.collapsed }]),
|
|
840
840
|
style: F({ left: e.model.markerMargin })
|
|
841
841
|
}, [
|
|
842
|
-
v(s(
|
|
842
|
+
v(s(c), {
|
|
843
843
|
is: "sv-svg-icon",
|
|
844
844
|
iconName: "icon-expand_16x16",
|
|
845
845
|
size: 16
|
|
846
846
|
})
|
|
847
847
|
], 6)) : p("", !0),
|
|
848
|
-
e.model.question ? (a(), h(s(
|
|
848
|
+
e.model.question ? (a(), h(s(c), {
|
|
849
849
|
key: 1,
|
|
850
850
|
is: "survey-string",
|
|
851
851
|
locString: e.model.question.locTitle
|
|
@@ -860,7 +860,7 @@ const vs = {
|
|
|
860
860
|
])), [
|
|
861
861
|
[s(N)]
|
|
862
862
|
]),
|
|
863
|
-
e.model.isNode && !e.model.collapsed ? (a(!0), l(w, { key: 0 }, V(e.model.data, (n, i) => (a(), h(s(
|
|
863
|
+
e.model.isNode && !e.model.collapsed ? (a(!0), l(w, { key: 0 }, V(e.model.data, (n, i) => (a(), h(s(c), {
|
|
864
864
|
is: "survey-results-table-row",
|
|
865
865
|
model: n,
|
|
866
866
|
key: i + 1
|
|
@@ -872,8 +872,8 @@ const vs = {
|
|
|
872
872
|
props: {
|
|
873
873
|
model: {}
|
|
874
874
|
},
|
|
875
|
-
setup(
|
|
876
|
-
const t =
|
|
875
|
+
setup(u) {
|
|
876
|
+
const t = u, e = I();
|
|
877
877
|
return T(() => t.model), P(() => t.model.init(window.ace.edit(e.value))), (o, n) => (a(), l("div", Ts, [
|
|
878
878
|
d("div", Ds, [
|
|
879
879
|
d("div", {
|
|
@@ -882,7 +882,7 @@ const vs = {
|
|
|
882
882
|
ref: e
|
|
883
883
|
}, null, 512),
|
|
884
884
|
C(d("div", Ns, [
|
|
885
|
-
v(s(
|
|
885
|
+
v(s(c), {
|
|
886
886
|
is: "sv-list",
|
|
887
887
|
model: o.model.errorList
|
|
888
888
|
}, null, 8, ["model"])
|
|
@@ -897,8 +897,8 @@ const vs = {
|
|
|
897
897
|
props: {
|
|
898
898
|
model: {}
|
|
899
899
|
},
|
|
900
|
-
setup(
|
|
901
|
-
const t =
|
|
900
|
+
setup(u) {
|
|
901
|
+
const t = u, e = I(), o = t.model;
|
|
902
902
|
return o.canShowErrors = !1, T(() => t.model), P(() => {
|
|
903
903
|
const n = t.model;
|
|
904
904
|
n.textElement = e.value;
|
|
@@ -917,7 +917,7 @@ const vs = {
|
|
|
917
917
|
[de, s(o).text]
|
|
918
918
|
]),
|
|
919
919
|
C(d("div", Es, [
|
|
920
|
-
v(s(
|
|
920
|
+
v(s(c), {
|
|
921
921
|
is: "sv-list",
|
|
922
922
|
model: s(o).errorList
|
|
923
923
|
}, null, 8, ["model"])
|
|
@@ -932,14 +932,14 @@ const vs = {
|
|
|
932
932
|
props: {
|
|
933
933
|
item: {}
|
|
934
934
|
},
|
|
935
|
-
setup(
|
|
936
|
-
const t =
|
|
935
|
+
setup(u) {
|
|
936
|
+
const t = u;
|
|
937
937
|
T(() => t.item);
|
|
938
938
|
const e = (o) => {
|
|
939
939
|
o.stopPropagation(), t.item.data.fixError();
|
|
940
940
|
};
|
|
941
941
|
return (o, n) => (a(), l(w, null, [
|
|
942
|
-
v(s(
|
|
942
|
+
v(s(c), {
|
|
943
943
|
is: "sv-svg-icon",
|
|
944
944
|
iconName: o.item.iconName,
|
|
945
945
|
size: o.item.iconSize,
|
|
@@ -947,7 +947,7 @@ const vs = {
|
|
|
947
947
|
}, null, 8, ["iconName", "size"]),
|
|
948
948
|
d("div", Rs, [
|
|
949
949
|
d("div", Vs, [
|
|
950
|
-
v(s(
|
|
950
|
+
v(s(c), {
|
|
951
951
|
is: "survey-string",
|
|
952
952
|
locString: o.item.locTitle
|
|
953
953
|
}, null, 8, ["locString"])
|
|
@@ -960,7 +960,7 @@ const vs = {
|
|
|
960
960
|
"aria-label": o.item.data.fixButtonTitle,
|
|
961
961
|
class: "svc-json-error__fix-button"
|
|
962
962
|
}, [
|
|
963
|
-
v(s(
|
|
963
|
+
v(s(c), {
|
|
964
964
|
is: "sv-svg-icon",
|
|
965
965
|
iconName: o.item.data.fixButtonIcon,
|
|
966
966
|
size: "auto"
|
|
@@ -976,8 +976,8 @@ const vs = {
|
|
|
976
976
|
props: {
|
|
977
977
|
model: {}
|
|
978
978
|
},
|
|
979
|
-
setup(
|
|
980
|
-
const t =
|
|
979
|
+
setup(u) {
|
|
980
|
+
const t = u;
|
|
981
981
|
T(() => t.model);
|
|
982
982
|
const e = (o) => {
|
|
983
983
|
o.stopPropagation(), t.model.action();
|
|
@@ -1002,8 +1002,8 @@ const vs = {
|
|
|
1002
1002
|
props: {
|
|
1003
1003
|
model: {}
|
|
1004
1004
|
},
|
|
1005
|
-
setup(
|
|
1006
|
-
const t =
|
|
1005
|
+
setup(u) {
|
|
1006
|
+
const t = u;
|
|
1007
1007
|
return T(() => t.model), (e, o) => (a(), l("div", Fs, [
|
|
1008
1008
|
d("div", {
|
|
1009
1009
|
class: _(["svc-plugin-tab__content svc-logic-tab__content", { "svc-logic-tab--empty": !e.model.hasItems }])
|
|
@@ -1042,8 +1042,8 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1042
1042
|
props: {
|
|
1043
1043
|
question: {}
|
|
1044
1044
|
},
|
|
1045
|
-
setup(
|
|
1046
|
-
const t =
|
|
1045
|
+
setup(u) {
|
|
1046
|
+
const t = u, e = I(), o = k(() => t.question.dropdownListModel ?? new Ce(t.question));
|
|
1047
1047
|
O(t, e, (m) => {
|
|
1048
1048
|
fe(m);
|
|
1049
1049
|
});
|
|
@@ -1080,7 +1080,7 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1080
1080
|
d("div", {
|
|
1081
1081
|
class: _(m.question.cssClasses.controlValue)
|
|
1082
1082
|
}, [
|
|
1083
|
-
m.question.locReadOnlyText ? (a(), h(s(
|
|
1083
|
+
m.question.locReadOnlyText ? (a(), h(s(c), {
|
|
1084
1084
|
key: 0,
|
|
1085
1085
|
is: "survey-string",
|
|
1086
1086
|
locString: m.question.locReadOnlyText
|
|
@@ -1091,7 +1091,7 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1091
1091
|
class: _(m.question.cssClasses.cleanButton),
|
|
1092
1092
|
onClick: i
|
|
1093
1093
|
}, [
|
|
1094
|
-
v(s(
|
|
1094
|
+
v(s(c), {
|
|
1095
1095
|
is: "sv-svg-icon",
|
|
1096
1096
|
class: _(m.question.cssClasses.cleanButtonSvg),
|
|
1097
1097
|
iconName: m.question.cssClasses.cleanButtonIconId,
|
|
@@ -1102,7 +1102,7 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1102
1102
|
[U, !m.question.isEmpty()]
|
|
1103
1103
|
]) : p("", !0)
|
|
1104
1104
|
], 42, Hs),
|
|
1105
|
-
v(s(
|
|
1105
|
+
v(s(c), {
|
|
1106
1106
|
is: "sv-popup",
|
|
1107
1107
|
model: m.question.popupModel
|
|
1108
1108
|
}, null, 8, ["model"])
|
|
@@ -1113,7 +1113,7 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1113
1113
|
class: _(m.question.getControlClass()),
|
|
1114
1114
|
id: m.question.inputId
|
|
1115
1115
|
}, [
|
|
1116
|
-
m.question.locReadOnlyText ? (a(), h(s(
|
|
1116
|
+
m.question.locReadOnlyText ? (a(), h(s(c), {
|
|
1117
1117
|
key: 0,
|
|
1118
1118
|
is: "survey-string",
|
|
1119
1119
|
locString: m.question.locReadOnlyText
|
|
@@ -1126,11 +1126,11 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1126
1126
|
props: {
|
|
1127
1127
|
question: {}
|
|
1128
1128
|
},
|
|
1129
|
-
setup(
|
|
1130
|
-
const t =
|
|
1129
|
+
setup(u) {
|
|
1130
|
+
const t = u, e = I();
|
|
1131
1131
|
O(t, e);
|
|
1132
1132
|
const o = k(() => t.question.embeddedSurvey);
|
|
1133
|
-
return (n, i) => n.question && o.value && o.value.currentPage ? (a(), h(s(
|
|
1133
|
+
return (n, i) => n.question && o.value && o.value.currentPage ? (a(), h(s(c), {
|
|
1134
1134
|
key: 0,
|
|
1135
1135
|
is: "survey-page",
|
|
1136
1136
|
page: o.value.currentPage,
|
|
@@ -1143,10 +1143,10 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1143
1143
|
props: {
|
|
1144
1144
|
question: {}
|
|
1145
1145
|
},
|
|
1146
|
-
setup(
|
|
1147
|
-
const t =
|
|
1146
|
+
setup(u) {
|
|
1147
|
+
const t = u, e = I(), o = ue.getString("pe.clear");
|
|
1148
1148
|
return O(t, e), (n, i) => (a(), l(w, null, [
|
|
1149
|
-
v(s(
|
|
1149
|
+
v(s(c), {
|
|
1150
1150
|
is: "svc-action-button",
|
|
1151
1151
|
text: n.question.linkValueText,
|
|
1152
1152
|
click: n.question.doLinkClick.bind(n.question),
|
|
@@ -1156,7 +1156,7 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1156
1156
|
title: n.question.tooltip,
|
|
1157
1157
|
iconName: n.question.iconName
|
|
1158
1158
|
}, null, 8, ["text", "click", "selected", "disabled", "classes", "title", "iconName"]),
|
|
1159
|
-
!n.question.isReadOnly && n.question.showClear ? (a(), h(s(
|
|
1159
|
+
!n.question.isReadOnly && n.question.showClear ? (a(), h(s(c), {
|
|
1160
1160
|
key: 0,
|
|
1161
1161
|
is: "svc-action-button",
|
|
1162
1162
|
text: s(o),
|
|
@@ -1174,8 +1174,8 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1174
1174
|
props: {
|
|
1175
1175
|
model: {}
|
|
1176
1176
|
},
|
|
1177
|
-
setup(
|
|
1178
|
-
const t =
|
|
1177
|
+
setup(u) {
|
|
1178
|
+
const t = u;
|
|
1179
1179
|
return T(() => t.model), (e, o) => (a(), l("div", {
|
|
1180
1180
|
class: _(["svc-creator-tab__content svc-translation-tab", e.model.isEmpty ? "svc-translation-tab--empty" : ""])
|
|
1181
1181
|
}, [
|
|
@@ -1201,13 +1201,13 @@ const Qs = /* @__PURE__ */ g({
|
|
|
1201
1201
|
]))
|
|
1202
1202
|
], 2));
|
|
1203
1203
|
}
|
|
1204
|
-
}), xs = (
|
|
1205
|
-
const e =
|
|
1204
|
+
}), xs = (u, t) => {
|
|
1205
|
+
const e = u.__vccOpts || u;
|
|
1206
1206
|
for (const [o, n] of t)
|
|
1207
1207
|
e[o] = n;
|
|
1208
1208
|
return e;
|
|
1209
1209
|
}, et = {}, ot = { class: "sd-translation-line-skeleton" };
|
|
1210
|
-
function st(
|
|
1210
|
+
function st(u, t) {
|
|
1211
1211
|
return a(), l("div", ot);
|
|
1212
1212
|
}
|
|
1213
1213
|
const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
@@ -1215,14 +1215,14 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1215
1215
|
props: {
|
|
1216
1216
|
item: {}
|
|
1217
1217
|
},
|
|
1218
|
-
setup(
|
|
1218
|
+
setup(u) {
|
|
1219
1219
|
return (t, e) => (a(), l("div", {
|
|
1220
1220
|
class: _(t.item.data.containerCss)
|
|
1221
1221
|
}, [
|
|
1222
1222
|
d("span", {
|
|
1223
1223
|
class: _(t.item.data.additionalTitleCss)
|
|
1224
1224
|
}, $(t.item.data.additionalTitle), 3),
|
|
1225
|
-
v(s(
|
|
1225
|
+
v(s(c), {
|
|
1226
1226
|
is: "sv-action-bar-item-dropdown",
|
|
1227
1227
|
item: t.item
|
|
1228
1228
|
}, null, 8, ["item"])
|
|
@@ -1239,8 +1239,8 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1239
1239
|
props: {
|
|
1240
1240
|
model: {}
|
|
1241
1241
|
},
|
|
1242
|
-
setup(
|
|
1243
|
-
const t =
|
|
1242
|
+
setup(u) {
|
|
1243
|
+
const t = u;
|
|
1244
1244
|
return T(() => t.model), (e, o) => (a(), l("div", {
|
|
1245
1245
|
class: _(["svc-creator-tab__content svc-test-tab__content", {
|
|
1246
1246
|
"svc-creator-tab__content--with-toolbar": e.model.isPageToolbarVisible
|
|
@@ -1253,18 +1253,18 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1253
1253
|
placeholderDescriptionText: e.model.placeholderDescriptionText
|
|
1254
1254
|
}, null, 8, ["placeholderTitleText", "placeholderDescriptionText"])) : p("", !0),
|
|
1255
1255
|
e.model.survey.isEmpty ? p("", !0) : (a(), l("div", at, [
|
|
1256
|
-
v(s(
|
|
1256
|
+
v(s(c), {
|
|
1257
1257
|
is: "survey-simulator",
|
|
1258
1258
|
model: e.model.simulator
|
|
1259
1259
|
}, null, 8, ["model"]),
|
|
1260
|
-
e.model.showResults ? (a(), h(s(
|
|
1260
|
+
e.model.showResults ? (a(), h(s(c), {
|
|
1261
1261
|
key: 0,
|
|
1262
1262
|
is: "survey-results",
|
|
1263
1263
|
survey: e.model.survey
|
|
1264
1264
|
}, null, 8, ["survey"])) : p("", !0)
|
|
1265
1265
|
])),
|
|
1266
1266
|
e.model.isPageToolbarVisible ? (a(), l("div", lt, [
|
|
1267
|
-
v(s(
|
|
1267
|
+
v(s(c), {
|
|
1268
1268
|
is: "sv-action-bar",
|
|
1269
1269
|
model: e.model.pages
|
|
1270
1270
|
}, null, 8, ["model"])
|
|
@@ -1276,8 +1276,8 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1276
1276
|
props: {
|
|
1277
1277
|
question: {}
|
|
1278
1278
|
},
|
|
1279
|
-
setup(
|
|
1280
|
-
return O(
|
|
1279
|
+
setup(u) {
|
|
1280
|
+
return O(u, I()), (e, o) => (a(), l("div", {
|
|
1281
1281
|
class: _(e.question.cssClasses.root),
|
|
1282
1282
|
onKeydown: o[5] || (o[5] = //@ts-ignore
|
|
1283
1283
|
(...n) => e.question.onKeyDown && e.question.onKeyDown(...n))
|
|
@@ -1286,7 +1286,7 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1286
1286
|
class: _(e.question.getSwatchCss()),
|
|
1287
1287
|
style: F(e.question.getSwatchStyle())
|
|
1288
1288
|
}, [
|
|
1289
|
-
v(s(
|
|
1289
|
+
v(s(c), {
|
|
1290
1290
|
is: "sv-svg-icon",
|
|
1291
1291
|
iconName: e.question.cssClasses.swatchIcon,
|
|
1292
1292
|
size: "auto"
|
|
@@ -1332,12 +1332,12 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1332
1332
|
"aria-hidden": "true",
|
|
1333
1333
|
class: _(e.question.cssClasses.choicesButtonWrapper)
|
|
1334
1334
|
}, [
|
|
1335
|
-
v(s(
|
|
1335
|
+
v(s(c), {
|
|
1336
1336
|
is: "sv-action-bar-item",
|
|
1337
1337
|
item: e.question.dropdownAction
|
|
1338
1338
|
}, null, 8, ["item"])
|
|
1339
1339
|
], 2),
|
|
1340
|
-
v(s(
|
|
1340
|
+
v(s(c), {
|
|
1341
1341
|
is: "sv-popup",
|
|
1342
1342
|
model: e.question.dropdownAction.popupModel
|
|
1343
1343
|
}, null, 8, ["model"])
|
|
@@ -1350,8 +1350,8 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1350
1350
|
model: {},
|
|
1351
1351
|
item: {}
|
|
1352
1352
|
},
|
|
1353
|
-
setup(
|
|
1354
|
-
const t =
|
|
1353
|
+
setup(u) {
|
|
1354
|
+
const t = u;
|
|
1355
1355
|
T(() => t.item);
|
|
1356
1356
|
const e = () => ({ backgroundColor: t.item.value });
|
|
1357
1357
|
return (o, n) => (a(), l(w, null, [
|
|
@@ -1359,7 +1359,7 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1359
1359
|
class: "spg-color-editor__color-swatch",
|
|
1360
1360
|
style: F(e())
|
|
1361
1361
|
}, null, 4),
|
|
1362
|
-
v(s(
|
|
1362
|
+
v(s(c), {
|
|
1363
1363
|
is: "survey-string",
|
|
1364
1364
|
locString: o.item.locTitle
|
|
1365
1365
|
}, null, 8, ["locString"])
|
|
@@ -1370,9 +1370,9 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1370
1370
|
props: {
|
|
1371
1371
|
question: {}
|
|
1372
1372
|
},
|
|
1373
|
-
setup(
|
|
1373
|
+
setup(u) {
|
|
1374
1374
|
const t = I();
|
|
1375
|
-
return O(
|
|
1375
|
+
return O(u, t), (o, n) => (a(), l("div", {
|
|
1376
1376
|
class: _(o.question.cssClasses.root),
|
|
1377
1377
|
onDragenter: n[5] || (n[5] = //@ts-ignore
|
|
1378
1378
|
(...i) => o.question.onDragEnter && o.question.onDragEnter(...i)),
|
|
@@ -1424,7 +1424,7 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1424
1424
|
onClick: n[3] || (n[3] = //@ts-ignore
|
|
1425
1425
|
(...i) => o.question.doClean && o.question.doClean(...i))
|
|
1426
1426
|
}, [
|
|
1427
|
-
v(s(
|
|
1427
|
+
v(s(c), {
|
|
1428
1428
|
is: "sv-svg-icon",
|
|
1429
1429
|
iconName: o.question.cssClasses.clearButtonIcon,
|
|
1430
1430
|
size: "auto"
|
|
@@ -1439,7 +1439,7 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1439
1439
|
onClick: n[4] || (n[4] = //@ts-ignore
|
|
1440
1440
|
(...i) => o.question.chooseFiles && o.question.chooseFiles(...i))
|
|
1441
1441
|
}, [
|
|
1442
|
-
v(s(
|
|
1442
|
+
v(s(c), {
|
|
1443
1443
|
is: "sv-svg-icon",
|
|
1444
1444
|
iconName: o.question.cssClasses.chooseButtonIcon,
|
|
1445
1445
|
size: "auto",
|
|
@@ -1456,8 +1456,8 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1456
1456
|
props: {
|
|
1457
1457
|
question: {}
|
|
1458
1458
|
},
|
|
1459
|
-
setup(
|
|
1460
|
-
return O(
|
|
1459
|
+
setup(u) {
|
|
1460
|
+
return O(u, I()), (e, o) => (a(), l("div", {
|
|
1461
1461
|
class: _(e.question.cssClasses.root),
|
|
1462
1462
|
onKeydown: o[18] || (o[18] = //@ts-ignore
|
|
1463
1463
|
(...n) => e.question.onKeyDown && e.question.onKeyDown(...n))
|
|
@@ -1510,7 +1510,7 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1510
1510
|
(...n) => e.question.onFocus && e.question.onFocus(...n)),
|
|
1511
1511
|
tabindex: "-1"
|
|
1512
1512
|
}, [
|
|
1513
|
-
v(s(
|
|
1513
|
+
v(s(c), {
|
|
1514
1514
|
is: "sv-svg-icon",
|
|
1515
1515
|
iconName: e.question.cssClasses.decreaseButtonIcon,
|
|
1516
1516
|
size: "auto"
|
|
@@ -1534,7 +1534,7 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1534
1534
|
(...n) => e.question.onFocus && e.question.onFocus(...n)),
|
|
1535
1535
|
tabindex: "-1"
|
|
1536
1536
|
}, [
|
|
1537
|
-
v(s(
|
|
1537
|
+
v(s(c), {
|
|
1538
1538
|
is: "sv-svg-icon",
|
|
1539
1539
|
iconName: e.question.cssClasses.increaseButtonIcon,
|
|
1540
1540
|
size: "auto"
|
|
@@ -1548,12 +1548,12 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1548
1548
|
props: {
|
|
1549
1549
|
question: {}
|
|
1550
1550
|
},
|
|
1551
|
-
setup(
|
|
1552
|
-
const t =
|
|
1551
|
+
setup(u) {
|
|
1552
|
+
const t = u, e = () => "survey-" + t.question.wrappedQuestionTemplate;
|
|
1553
1553
|
return O(t, I()), (o, n) => (a(), l("div", {
|
|
1554
1554
|
class: _(o.question.getRootClass())
|
|
1555
1555
|
}, [
|
|
1556
|
-
v(s(
|
|
1556
|
+
v(s(c), {
|
|
1557
1557
|
is: e(),
|
|
1558
1558
|
question: o.question
|
|
1559
1559
|
}, null, 8, ["is", "question"]),
|
|
@@ -1564,7 +1564,7 @@ const tt = /* @__PURE__ */ xs(et, [["render", st]]), nt = /* @__PURE__ */ g({
|
|
|
1564
1564
|
(...i) => o.question.resetValueAdorner.resetValue && o.question.resetValueAdorner.resetValue(...i)),
|
|
1565
1565
|
title: o.question.resetValueAdorner.caption
|
|
1566
1566
|
}, [
|
|
1567
|
-
v(s(
|
|
1567
|
+
v(s(c), {
|
|
1568
1568
|
is: "sv-svg-icon",
|
|
1569
1569
|
iconName: o.question.cssClasses.resetButtonIcon,
|
|
1570
1570
|
size: "auto"
|
|
@@ -1591,8 +1591,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1591
1591
|
props: {
|
|
1592
1592
|
question: {}
|
|
1593
1593
|
},
|
|
1594
|
-
setup(
|
|
1595
|
-
const t =
|
|
1594
|
+
setup(u) {
|
|
1595
|
+
const t = u, e = I(null);
|
|
1596
1596
|
O(t, e);
|
|
1597
1597
|
const o = k({
|
|
1598
1598
|
get() {
|
|
@@ -1625,7 +1625,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1625
1625
|
class: "spg-boolean-switch__title",
|
|
1626
1626
|
id: n.question.labelRenderedAriaID
|
|
1627
1627
|
}, [
|
|
1628
|
-
v(s(
|
|
1628
|
+
v(s(c), {
|
|
1629
1629
|
is: "survey-string",
|
|
1630
1630
|
locString: n.question.locTitle
|
|
1631
1631
|
}, null, 8, ["locString"])
|
|
@@ -1641,8 +1641,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1641
1641
|
props: {
|
|
1642
1642
|
locString: {}
|
|
1643
1643
|
},
|
|
1644
|
-
setup(
|
|
1645
|
-
const t =
|
|
1644
|
+
setup(u) {
|
|
1645
|
+
const t = u, e = k(() => t.locString.locStr), o = k(() => t.locString.creator), n = I(), i = I(), r = z(
|
|
1646
1646
|
() => {
|
|
1647
1647
|
const q = new we(
|
|
1648
1648
|
e.value,
|
|
@@ -1802,7 +1802,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1802
1802
|
ref_key: "root",
|
|
1803
1803
|
ref: n
|
|
1804
1804
|
}, null, 40, Pt)) : p("", !0),
|
|
1805
|
-
R.value ? (a(), h(s(
|
|
1805
|
+
R.value ? (a(), h(s(c), {
|
|
1806
1806
|
key: 2,
|
|
1807
1807
|
is: "sv-character-counter",
|
|
1808
1808
|
counter: E.value,
|
|
@@ -1827,8 +1827,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1827
1827
|
props: {
|
|
1828
1828
|
model: {}
|
|
1829
1829
|
},
|
|
1830
|
-
setup(
|
|
1831
|
-
const t =
|
|
1830
|
+
setup(u) {
|
|
1831
|
+
const t = u, e = k(() => t.model.toolbox), o = I();
|
|
1832
1832
|
T(() => e.value);
|
|
1833
1833
|
let n;
|
|
1834
1834
|
P(() => {
|
|
@@ -1850,7 +1850,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1850
1850
|
class: "svc-toolbox__panel"
|
|
1851
1851
|
}, [
|
|
1852
1852
|
e.value.showSearch ? (a(), l("div", At, [
|
|
1853
|
-
e.value.isCompactRendered ? (a(), h(s(
|
|
1853
|
+
e.value.isCompactRendered ? (a(), h(s(c), {
|
|
1854
1854
|
is: "svc-toolbox-tool",
|
|
1855
1855
|
creator: r.model,
|
|
1856
1856
|
key: "searchitem",
|
|
@@ -1858,23 +1858,23 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1858
1858
|
parentModel: e.value,
|
|
1859
1859
|
isCompact: e.value.isCompactRendered
|
|
1860
1860
|
}, null, 8, ["creator", "item", "parentModel", "isCompact"])) : p("", !0),
|
|
1861
|
-
v(s(
|
|
1861
|
+
v(s(c), {
|
|
1862
1862
|
is: "svc-search",
|
|
1863
1863
|
model: e.value.searchManager
|
|
1864
1864
|
}, null, 8, ["model"]),
|
|
1865
1865
|
zt
|
|
1866
1866
|
])) : p("", !0),
|
|
1867
1867
|
e.value.showPlaceholder ? (a(), l("div", Lt, $(e.value.toolboxNoResultsFound), 1)) : p("", !0),
|
|
1868
|
-
v(s(
|
|
1868
|
+
v(s(c), { is: "sv-scroll" }, {
|
|
1869
1869
|
default: Z(() => [
|
|
1870
|
-
e.value.showInSingleCategory ? p("", !0) : (a(!0), l(w, { key: 0 }, V(e.value.categories, (b, y) => (a(), h(s(
|
|
1870
|
+
e.value.showInSingleCategory ? p("", !0) : (a(!0), l(w, { key: 0 }, V(e.value.categories, (b, y) => (a(), h(s(c), {
|
|
1871
1871
|
is: "svc-toolbox-category",
|
|
1872
1872
|
key: y,
|
|
1873
1873
|
category: b,
|
|
1874
1874
|
toolbox: e.value
|
|
1875
1875
|
}, null, 8, ["category", "toolbox"]))), 128)),
|
|
1876
1876
|
e.value.showInSingleCategory ? (a(), l("div", Ft, [
|
|
1877
|
-
(a(!0), l(w, null, V(i.value, (b) => (a(), h(s(
|
|
1877
|
+
(a(!0), l(w, null, V(i.value, (b) => (a(), h(s(c), {
|
|
1878
1878
|
key: b.renderedId,
|
|
1879
1879
|
is: "svc-toolbox-tool",
|
|
1880
1880
|
creator: r.model,
|
|
@@ -1900,8 +1900,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1900
1900
|
parentModel: {},
|
|
1901
1901
|
isCompact: { type: Boolean }
|
|
1902
1902
|
},
|
|
1903
|
-
setup(
|
|
1904
|
-
const t =
|
|
1903
|
+
setup(u) {
|
|
1904
|
+
const t = u, e = z(
|
|
1905
1905
|
() => new Te(
|
|
1906
1906
|
t.item,
|
|
1907
1907
|
t.creator,
|
|
@@ -1936,7 +1936,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1936
1936
|
return ((b = s(e)) == null ? void 0 : b.onPointerDown) && ((y = s(e)) == null ? void 0 : y.onPointerDown(...m));
|
|
1937
1937
|
})
|
|
1938
1938
|
}, [
|
|
1939
|
-
v(s(
|
|
1939
|
+
v(s(c), {
|
|
1940
1940
|
viewModel: s(e),
|
|
1941
1941
|
is: (r = s(e)) == null ? void 0 : r.itemComponent,
|
|
1942
1942
|
item: n.item,
|
|
@@ -1958,7 +1958,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1958
1958
|
isCompact: { type: Boolean },
|
|
1959
1959
|
viewModel: {}
|
|
1960
1960
|
},
|
|
1961
|
-
setup(
|
|
1961
|
+
setup(u) {
|
|
1962
1962
|
return (t, e) => (a(), l(w, null, [
|
|
1963
1963
|
C((a(), l("div", {
|
|
1964
1964
|
class: _(["svc-toolbox__item", t.item.renderedCss]),
|
|
@@ -1968,7 +1968,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1968
1968
|
onClick: e[0] || (e[0] = (o) => t.viewModel.click(o))
|
|
1969
1969
|
}, [
|
|
1970
1970
|
d("span", Qt, [
|
|
1971
|
-
t.item.iconName ? (a(), h(s(
|
|
1971
|
+
t.item.iconName ? (a(), h(s(c), {
|
|
1972
1972
|
key: 0,
|
|
1973
1973
|
is: "sv-svg-icon",
|
|
1974
1974
|
iconName: t.item.iconName,
|
|
@@ -1985,7 +1985,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
1985
1985
|
class: "svc-toolbox__item-banner",
|
|
1986
1986
|
onClick: e[1] || (e[1] = (o) => t.viewModel.click(o))
|
|
1987
1987
|
}, [
|
|
1988
|
-
v(s(
|
|
1988
|
+
v(s(c), {
|
|
1989
1989
|
is: "sv-svg-icon",
|
|
1990
1990
|
iconName: t.item.iconName,
|
|
1991
1991
|
size: 24,
|
|
@@ -2003,14 +2003,14 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2003
2003
|
isCompact: { type: Boolean },
|
|
2004
2004
|
viewModel: {}
|
|
2005
2005
|
},
|
|
2006
|
-
setup(
|
|
2007
|
-
const t =
|
|
2006
|
+
setup(u) {
|
|
2007
|
+
const t = u, e = (n) => {
|
|
2008
2008
|
t.viewModel.onMouseOver(t.item, n);
|
|
2009
2009
|
}, o = (n) => {
|
|
2010
2010
|
t.viewModel.onMouseLeave(t.item, n);
|
|
2011
2011
|
};
|
|
2012
2012
|
return (n, i) => (a(), l(w, null, [
|
|
2013
|
-
v(s(
|
|
2013
|
+
v(s(c), {
|
|
2014
2014
|
is: "svc-toolbox-item",
|
|
2015
2015
|
viewModel: n.viewModel,
|
|
2016
2016
|
item: n.item,
|
|
@@ -2022,12 +2022,12 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2022
2022
|
onMouseover: e,
|
|
2023
2023
|
onMouseleave: o
|
|
2024
2024
|
}, [
|
|
2025
|
-
v(s(
|
|
2025
|
+
v(s(c), {
|
|
2026
2026
|
is: "sv-svg-icon",
|
|
2027
2027
|
iconName: n.item.subitemsButtonIcon,
|
|
2028
2028
|
size: "auto"
|
|
2029
2029
|
}, null, 8, ["iconName"]),
|
|
2030
|
-
v(s(
|
|
2030
|
+
v(s(c), {
|
|
2031
2031
|
is: "sv-popup",
|
|
2032
2032
|
model: n.item.popupModel
|
|
2033
2033
|
}, null, 8, ["model"])
|
|
@@ -2043,8 +2043,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2043
2043
|
category: {},
|
|
2044
2044
|
toolbox: {}
|
|
2045
2045
|
},
|
|
2046
|
-
setup(
|
|
2047
|
-
const t =
|
|
2046
|
+
setup(u) {
|
|
2047
|
+
const t = u;
|
|
2048
2048
|
return T(() => t.category), (e, o) => (a(), l("div", {
|
|
2049
2049
|
class: _(["svc-toolbox__category", {
|
|
2050
2050
|
"svc-toolbox__category--collapsed": e.category.collapsed,
|
|
@@ -2060,7 +2060,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2060
2060
|
}, [
|
|
2061
2061
|
d("span", Zt, $(e.category.title), 1),
|
|
2062
2062
|
e.toolbox.canCollapseCategories ? (a(), l("div", Xt, [
|
|
2063
|
-
v(s(
|
|
2063
|
+
v(s(c), {
|
|
2064
2064
|
is: "sv-svg-icon",
|
|
2065
2065
|
iconName: e.category.iconName,
|
|
2066
2066
|
class: _(e.category.iconClassName),
|
|
@@ -2071,7 +2071,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2071
2071
|
[s(N)]
|
|
2072
2072
|
])
|
|
2073
2073
|
]),
|
|
2074
|
-
(a(!0), l(w, null, V(e.category.items, (n) => (a(), h(s(
|
|
2074
|
+
(a(!0), l(w, null, V(e.category.items, (n) => (a(), h(s(c), {
|
|
2075
2075
|
is: "svc-toolbox-tool",
|
|
2076
2076
|
item: n,
|
|
2077
2077
|
key: n.renderedId,
|
|
@@ -2087,12 +2087,12 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2087
2087
|
model: {},
|
|
2088
2088
|
creator: {}
|
|
2089
2089
|
},
|
|
2090
|
-
setup(
|
|
2091
|
-
const t =
|
|
2090
|
+
setup(u) {
|
|
2091
|
+
const t = u, e = _e(() => t.model.renderedActions);
|
|
2092
2092
|
return T(() => t.model), (o, n) => (a(), l("div", {
|
|
2093
2093
|
class: _(o.model.cssClasses.root)
|
|
2094
2094
|
}, [
|
|
2095
|
-
(a(!0), l(w, null, V(s(e), (i, r) => (a(), h(s(
|
|
2095
|
+
(a(!0), l(w, null, V(s(e), (i, r) => (a(), h(s(c), {
|
|
2096
2096
|
key: r,
|
|
2097
2097
|
is: "svc-toolbox-tool",
|
|
2098
2098
|
creator: o.creator,
|
|
@@ -2128,11 +2128,11 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2128
2128
|
props: {
|
|
2129
2129
|
model: {}
|
|
2130
2130
|
},
|
|
2131
|
-
setup(
|
|
2132
|
-
const t =
|
|
2131
|
+
setup(u) {
|
|
2132
|
+
const t = u, e = k(() => t.model.survey);
|
|
2133
2133
|
return T(() => t.model), T(() => e.value), (o, n) => (a(), l(w, null, [
|
|
2134
2134
|
d("div", en, [
|
|
2135
|
-
o.model.isToolboxVisible ? (a(), h(s(
|
|
2135
|
+
o.model.isToolboxVisible ? (a(), h(s(c), {
|
|
2136
2136
|
key: 0,
|
|
2137
2137
|
is: "svc-toolbox",
|
|
2138
2138
|
model: o.model.creator
|
|
@@ -2143,12 +2143,12 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2143
2143
|
onClick: n[0] || (n[0] = //@ts-ignore
|
|
2144
2144
|
(...i) => o.model.clickDesigner && o.model.clickDesigner(...i))
|
|
2145
2145
|
}, [
|
|
2146
|
-
v(s(
|
|
2146
|
+
v(s(c), { is: "sv-scroll" }, {
|
|
2147
2147
|
default: Z(() => [
|
|
2148
2148
|
d("div", on, [
|
|
2149
2149
|
o.model.showPlaceholder ? (a(), l(w, { key: 0 }, [
|
|
2150
2150
|
o.model.creator.showHeaderInEmptySurvey && o.model.creator.allowEditSurveyTitle ? (a(), l("div", sn, [
|
|
2151
|
-
v(s(
|
|
2151
|
+
v(s(c), {
|
|
2152
2152
|
is: "survey-header",
|
|
2153
2153
|
survey: o.model.creator.survey
|
|
2154
2154
|
}, null, 8, ["survey"])
|
|
@@ -2160,7 +2160,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2160
2160
|
placeholderDescriptionText: o.model.placeholderDescriptionText
|
|
2161
2161
|
}, null, 8, ["placeholderTitleText", "placeholderDescriptionText"]),
|
|
2162
2162
|
d("div", nn, [
|
|
2163
|
-
v(s(
|
|
2163
|
+
v(s(c), {
|
|
2164
2164
|
is: "svc-page",
|
|
2165
2165
|
survey: o.model.creator.survey,
|
|
2166
2166
|
creator: o.model.creator,
|
|
@@ -2179,7 +2179,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2179
2179
|
])
|
|
2180
2180
|
}, [
|
|
2181
2181
|
o.model.creator.allowEditSurveyTitle ? (a(), l("div", an, [
|
|
2182
|
-
v(s(
|
|
2182
|
+
v(s(c), {
|
|
2183
2183
|
is: "survey-header",
|
|
2184
2184
|
survey: o.model.creator.survey
|
|
2185
2185
|
}, null, 8, ["survey"])
|
|
@@ -2190,7 +2190,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2190
2190
|
"data-sv-drop-target-survey-element": i != o.model.newPage ? i.name : "newGhostPage",
|
|
2191
2191
|
"data-sv-drop-target-page": i.name
|
|
2192
2192
|
}, [
|
|
2193
|
-
v(s(
|
|
2193
|
+
v(s(c), {
|
|
2194
2194
|
is: "svc-page",
|
|
2195
2195
|
survey: o.model.creator.survey,
|
|
2196
2196
|
creator: o.model.creator,
|
|
@@ -2204,7 +2204,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2204
2204
|
"data-sv-drop-target-survey-element": o.model.displayPageDropTarget,
|
|
2205
2205
|
"data-sv-drop-target-page": o.model.pagesController.page2Display.name
|
|
2206
2206
|
}, [
|
|
2207
|
-
v(s(
|
|
2207
|
+
v(s(c), {
|
|
2208
2208
|
is: "svc-page",
|
|
2209
2209
|
page: o.model.pagesController.page2Display,
|
|
2210
2210
|
creator: o.model.creator,
|
|
@@ -2214,14 +2214,14 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2214
2214
|
], 6),
|
|
2215
2215
|
o.model.showSurfaceTools ? (a(), l("div", dn, [
|
|
2216
2216
|
o.model.creator.showPageNavigator ? (a(), l("div", cn, [
|
|
2217
|
-
v(s(
|
|
2217
|
+
v(s(c), {
|
|
2218
2218
|
is: "svc-page-navigator",
|
|
2219
2219
|
pagesController: o.model.pagesController,
|
|
2220
2220
|
pageEditMode: o.model.creator.pageEditMode
|
|
2221
2221
|
}, null, 8, ["pagesController", "pageEditMode"])
|
|
2222
2222
|
])) : p("", !0),
|
|
2223
2223
|
o.model.showSurfaceToolbar ? (a(), l("div", un, [
|
|
2224
|
-
v(s(
|
|
2224
|
+
v(s(c), {
|
|
2225
2225
|
is: "sv-action-bar",
|
|
2226
2226
|
model: o.model.surfaceToolbar
|
|
2227
2227
|
}, null, 8, ["model"])
|
|
@@ -2236,12 +2236,15 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2236
2236
|
], 64));
|
|
2237
2237
|
}
|
|
2238
2238
|
}), vn = ["id", "data-sv-drop-target-survey-page"], mn = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--top" }, null, -1), _n = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }, null, -1), gn = {
|
|
2239
|
-
key:
|
|
2240
|
-
class: "svc-
|
|
2241
|
-
}, bn = {
|
|
2239
|
+
key: 1,
|
|
2240
|
+
class: "svc-page__loading-content"
|
|
2241
|
+
}, bn = {
|
|
2242
2242
|
key: 2,
|
|
2243
|
+
class: "svc-page__placeholder_frame"
|
|
2244
|
+
}, yn = { class: "svc-panel__placeholder_frame" }, hn = { class: "svc-panel__placeholder" }, qn = { class: "svc-page__content-actions" }, Cn = {
|
|
2245
|
+
key: 4,
|
|
2243
2246
|
class: "svc-page__content-actions"
|
|
2244
|
-
},
|
|
2247
|
+
}, kn = /* @__PURE__ */ g({
|
|
2245
2248
|
__name: "Page",
|
|
2246
2249
|
props: {
|
|
2247
2250
|
creator: {},
|
|
@@ -2249,8 +2252,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2249
2252
|
page: {},
|
|
2250
2253
|
isGhost: { type: Boolean }
|
|
2251
2254
|
},
|
|
2252
|
-
setup(
|
|
2253
|
-
const t =
|
|
2255
|
+
setup(u) {
|
|
2256
|
+
const t = u, e = I(), o = z(
|
|
2254
2257
|
() => {
|
|
2255
2258
|
const i = new De(t.creator, t.page);
|
|
2256
2259
|
return i.isGhost = t.isGhost, i;
|
|
@@ -2268,7 +2271,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2268
2271
|
), Y(() => {
|
|
2269
2272
|
e.value && o.value && (o.value.rootElement = e.value);
|
|
2270
2273
|
}), P(() => {
|
|
2271
|
-
e.value && o.value &&
|
|
2274
|
+
e.value && o.value && o.value.setRootElement(e.value);
|
|
2272
2275
|
});
|
|
2273
2276
|
const n = (i) => {
|
|
2274
2277
|
o.value.hover(i, i.currentTarget);
|
|
@@ -2289,22 +2292,26 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2289
2292
|
}, [
|
|
2290
2293
|
mn,
|
|
2291
2294
|
_n,
|
|
2292
|
-
|
|
2295
|
+
s(o).needRenderContent ? (a(), h(s(c), {
|
|
2296
|
+
key: 0,
|
|
2293
2297
|
is: "survey-page",
|
|
2294
2298
|
survey: s(o).creator.survey,
|
|
2295
2299
|
page: s(o).page
|
|
2296
|
-
}, null, 8, ["survey", "page"]),
|
|
2297
|
-
s(o).
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
+
}, null, 8, ["survey", "page"])) : p("", !0),
|
|
2301
|
+
s(o).needRenderContent ? p("", !0) : (a(), l("div", gn, [
|
|
2302
|
+
v(s(c), { is: "sv-loading-indicator" })
|
|
2303
|
+
])),
|
|
2304
|
+
s(o).showPlaceholder ? (a(), l("div", bn, [
|
|
2305
|
+
d("div", yn, [
|
|
2306
|
+
d("div", hn, $(s(o).placeholderText), 1)
|
|
2300
2307
|
])
|
|
2301
2308
|
])) : p("", !0),
|
|
2302
2309
|
s(o).allowDragging && !s(o).isGhost ? (a(), l("div", {
|
|
2303
|
-
key:
|
|
2310
|
+
key: 3,
|
|
2304
2311
|
class: "svc-question__drag-area",
|
|
2305
2312
|
onPointerdown: r[0] || (r[0] = (m) => s(o).onPointerDown(m))
|
|
2306
2313
|
}, [
|
|
2307
|
-
v(s(
|
|
2314
|
+
v(s(c), A({
|
|
2308
2315
|
is: "sv-svg-icon",
|
|
2309
2316
|
class: "svc-question__drag-element"
|
|
2310
2317
|
}, {
|
|
@@ -2312,30 +2319,30 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2312
2319
|
iconName: "icon-drag-area-indicator_24x16",
|
|
2313
2320
|
size: "auto"
|
|
2314
2321
|
}), null, 16),
|
|
2315
|
-
d("div",
|
|
2316
|
-
v(s(
|
|
2322
|
+
d("div", qn, [
|
|
2323
|
+
v(s(c), {
|
|
2317
2324
|
is: "sv-action-bar",
|
|
2318
2325
|
model: s(o).actionContainer
|
|
2319
2326
|
}, null, 8, ["model"]),
|
|
2320
|
-
s(o).topActionContainer.hasActions ? (a(), h(s(
|
|
2327
|
+
s(o).topActionContainer.hasActions ? (a(), h(s(c), {
|
|
2321
2328
|
key: 0,
|
|
2322
2329
|
is: "sv-action-bar",
|
|
2323
2330
|
model: s(o).topActionContainer
|
|
2324
2331
|
}, null, 8, ["model"])) : p("", !0)
|
|
2325
2332
|
])
|
|
2326
2333
|
], 32)) : p("", !0),
|
|
2327
|
-
!s(o).allowDragging || s(o).isGhost ? (a(), l("div",
|
|
2328
|
-
v(s(
|
|
2334
|
+
!s(o).allowDragging || s(o).isGhost ? (a(), l("div", Cn, [
|
|
2335
|
+
v(s(c), {
|
|
2329
2336
|
is: "sv-action-bar",
|
|
2330
2337
|
model: s(o).actionContainer
|
|
2331
2338
|
}, null, 8, ["model"]),
|
|
2332
|
-
s(o).topActionContainer.hasActions ? (a(), h(s(
|
|
2339
|
+
s(o).topActionContainer.hasActions ? (a(), h(s(c), {
|
|
2333
2340
|
key: 0,
|
|
2334
2341
|
is: "sv-action-bar",
|
|
2335
2342
|
model: s(o).topActionContainer
|
|
2336
2343
|
}, null, 8, ["model"])) : p("", !0)
|
|
2337
2344
|
])) : p("", !0),
|
|
2338
|
-
v(s(
|
|
2345
|
+
v(s(c), {
|
|
2339
2346
|
is: "sv-action-bar",
|
|
2340
2347
|
model: s(o).footerActionsBar
|
|
2341
2348
|
}, null, 8, ["model"])
|
|
@@ -2343,15 +2350,15 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2343
2350
|
[s(N)]
|
|
2344
2351
|
]) : p("", !0);
|
|
2345
2352
|
}
|
|
2346
|
-
}),
|
|
2353
|
+
}), $n = { class: "svc-add-new-item-button__text" }, fn = /* @__PURE__ */ g({
|
|
2347
2354
|
__name: "AddQuestion",
|
|
2348
2355
|
props: {
|
|
2349
2356
|
item: {},
|
|
2350
2357
|
buttonClass: {},
|
|
2351
2358
|
renderPopup: {}
|
|
2352
2359
|
},
|
|
2353
|
-
setup(
|
|
2354
|
-
const t =
|
|
2360
|
+
setup(u) {
|
|
2361
|
+
const t = u;
|
|
2355
2362
|
T(() => t.item.data);
|
|
2356
2363
|
const e = k(
|
|
2357
2364
|
() => "svc-element__add-new-question " + (t.buttonClass || "svc-btn")
|
|
@@ -2366,14 +2373,14 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2366
2373
|
}),
|
|
2367
2374
|
onMouseover: i[1] || (i[1] = (r) => n.item.data.hoverStopper && n.item.data.hoverStopper(r, r.currentTarget))
|
|
2368
2375
|
}, [
|
|
2369
|
-
v(s(
|
|
2376
|
+
v(s(c), {
|
|
2370
2377
|
is: "sv-svg-icon",
|
|
2371
2378
|
class: "svc-panel__add-new-question-icon",
|
|
2372
2379
|
iconName: "icon-add_24x24",
|
|
2373
2380
|
size: "auto"
|
|
2374
2381
|
}),
|
|
2375
|
-
d("span",
|
|
2376
|
-
o.value ? (a(), h(s(
|
|
2382
|
+
d("span", $n, $(n.item.data.addNewQuestionText), 1),
|
|
2383
|
+
o.value ? (a(), h(s(c), {
|
|
2377
2384
|
key: 0,
|
|
2378
2385
|
is: "svc-add-question-type-selector",
|
|
2379
2386
|
questionTypeSelectorModel: n.item.data.questionTypeSelectorModel,
|
|
@@ -2382,7 +2389,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2382
2389
|
], 34)), [
|
|
2383
2390
|
[s(N)]
|
|
2384
2391
|
]),
|
|
2385
|
-
o.value ? p("", !0) : (a(), h(s(
|
|
2392
|
+
o.value ? p("", !0) : (a(), h(s(c), {
|
|
2386
2393
|
key: 0,
|
|
2387
2394
|
is: "svc-add-question-type-selector",
|
|
2388
2395
|
questionTypeSelectorModel: n.item.data.questionTypeSelectorModel,
|
|
@@ -2390,14 +2397,14 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2390
2397
|
}, null, 8, ["questionTypeSelectorModel", "renderPopup"]))
|
|
2391
2398
|
], 64));
|
|
2392
2399
|
}
|
|
2393
|
-
}),
|
|
2400
|
+
}), wn = ["title", "aria-label"], Tn = /* @__PURE__ */ g({
|
|
2394
2401
|
__name: "AddQuestionTypeSelector",
|
|
2395
2402
|
props: {
|
|
2396
2403
|
questionTypeSelectorModel: {},
|
|
2397
2404
|
renderPopup: {}
|
|
2398
2405
|
},
|
|
2399
|
-
setup(
|
|
2400
|
-
const t =
|
|
2406
|
+
setup(u) {
|
|
2407
|
+
const t = u;
|
|
2401
2408
|
return T(() => t.questionTypeSelectorModel), (e, o) => C((a(), l("button", {
|
|
2402
2409
|
type: "button",
|
|
2403
2410
|
onClick: o[0] || (o[0] = (n) => {
|
|
@@ -2407,7 +2414,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2407
2414
|
"aria-label": e.questionTypeSelectorModel.title,
|
|
2408
2415
|
class: "svc-element__question-type-selector"
|
|
2409
2416
|
}, [
|
|
2410
|
-
v(s(
|
|
2417
|
+
v(s(c), A({
|
|
2411
2418
|
is: "sv-svg-icon",
|
|
2412
2419
|
class: "svc-element__question-type-selector-icon"
|
|
2413
2420
|
}, {
|
|
@@ -2415,22 +2422,22 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2415
2422
|
size: "auto",
|
|
2416
2423
|
title: e.questionTypeSelectorModel.title
|
|
2417
2424
|
}), null, 16),
|
|
2418
|
-
e.renderPopup ? (a(), h(s(
|
|
2425
|
+
e.renderPopup ? (a(), h(s(c), {
|
|
2419
2426
|
key: 0,
|
|
2420
2427
|
is: "sv-popup",
|
|
2421
2428
|
model: e.questionTypeSelectorModel.popupModel
|
|
2422
2429
|
}, null, 8, ["model"])) : p("", !0)
|
|
2423
|
-
], 8,
|
|
2430
|
+
], 8, wn)), [
|
|
2424
2431
|
[s(N)]
|
|
2425
2432
|
]);
|
|
2426
2433
|
}
|
|
2427
|
-
}),
|
|
2434
|
+
}), Dn = /* @__PURE__ */ d("div", { class: "svc-row__drop-indicator svc-row__drop-indicator--top" }, null, -1), Nn = /* @__PURE__ */ d("div", { class: "svc-row__drop-indicator svc-row__drop-indicator--bottom" }, null, -1), Mn = /* @__PURE__ */ g({
|
|
2428
2435
|
__name: "Row",
|
|
2429
2436
|
props: {
|
|
2430
2437
|
componentData: {}
|
|
2431
2438
|
},
|
|
2432
|
-
setup(
|
|
2433
|
-
const t =
|
|
2439
|
+
setup(u) {
|
|
2440
|
+
const t = u, e = k(() => t.componentData.creator), o = k(() => t.componentData.row), n = z(
|
|
2434
2441
|
() => new Ne(e.value, o.value, void 0),
|
|
2435
2442
|
[() => e.value, () => o.value],
|
|
2436
2443
|
(i) => {
|
|
@@ -2444,15 +2451,15 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2444
2451
|
}), (i, r) => (a(), l("div", {
|
|
2445
2452
|
class: _(s(n).cssClasses)
|
|
2446
2453
|
}, [
|
|
2447
|
-
Tn,
|
|
2448
2454
|
Dn,
|
|
2455
|
+
Nn,
|
|
2449
2456
|
x(i.$slots, "default")
|
|
2450
2457
|
], 2));
|
|
2451
2458
|
}
|
|
2452
|
-
}),
|
|
2459
|
+
}), Sn = ["data-sv-drop-target-survey-element"], Bn = { class: "svc-fake-title" }, In = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--left" }, null, -1), En = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--right" }, null, -1), Pn = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--top" }, null, -1), Rn = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }, null, -1), Vn = { class: "svc-question__top-actions" }, An = {
|
|
2453
2460
|
key: 0,
|
|
2454
2461
|
class: "svc-panel__placeholder_frame-wrapper"
|
|
2455
|
-
},
|
|
2462
|
+
}, zn = { class: "svc-panel__placeholder_frame" }, Ln = {
|
|
2456
2463
|
class: "svc-panel__placeholder",
|
|
2457
2464
|
"data-bind": "text: placeholderText"
|
|
2458
2465
|
}, oe = /* @__PURE__ */ g({
|
|
@@ -2467,8 +2474,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2467
2474
|
componentName: {},
|
|
2468
2475
|
componentData: {}
|
|
2469
2476
|
},
|
|
2470
|
-
setup(
|
|
2471
|
-
const t =
|
|
2477
|
+
setup(u) {
|
|
2478
|
+
const t = u, e = I(), o = z(
|
|
2472
2479
|
() => t.createModel(),
|
|
2473
2480
|
[() => t.componentName, () => t.componentData],
|
|
2474
2481
|
(r) => {
|
|
@@ -2500,7 +2507,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2500
2507
|
key: 0,
|
|
2501
2508
|
class: _(s(o).cssCollapsedHiddenHeader)
|
|
2502
2509
|
}, [
|
|
2503
|
-
r.element.hasTitle ? (a(), h(s(
|
|
2510
|
+
r.element.hasTitle ? (a(), h(s(c), {
|
|
2504
2511
|
key: 0,
|
|
2505
2512
|
is: "survey-element-title",
|
|
2506
2513
|
element: r.element
|
|
@@ -2508,7 +2515,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2508
2515
|
key: 1,
|
|
2509
2516
|
class: _(s(o).cssCollapsedHiddenTitle)
|
|
2510
2517
|
}, [
|
|
2511
|
-
d("span",
|
|
2518
|
+
d("span", Bn, $(r.element.name), 1)
|
|
2512
2519
|
], 2))
|
|
2513
2520
|
], 2)) : p("", !0),
|
|
2514
2521
|
C((a(), l("div", {
|
|
@@ -2517,16 +2524,16 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2517
2524
|
}),
|
|
2518
2525
|
class: _(s(o).css())
|
|
2519
2526
|
}, [
|
|
2520
|
-
Bn,
|
|
2521
2527
|
In,
|
|
2522
2528
|
En,
|
|
2523
2529
|
Pn,
|
|
2530
|
+
Rn,
|
|
2524
2531
|
s(o).allowDragging ? (a(), l("div", {
|
|
2525
2532
|
key: 0,
|
|
2526
2533
|
class: "svc-question__drag-area",
|
|
2527
2534
|
onPointerdown: m[0] || (m[0] = (b) => s(o).onPointerDown(b))
|
|
2528
2535
|
}, [
|
|
2529
|
-
v(s(
|
|
2536
|
+
v(s(c), A({
|
|
2530
2537
|
is: "sv-svg-icon",
|
|
2531
2538
|
class: "svc-question__drag-element"
|
|
2532
2539
|
}, {
|
|
@@ -2534,8 +2541,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2534
2541
|
iconName: "icon-drag-area-indicator_24x16",
|
|
2535
2542
|
size: "auto"
|
|
2536
2543
|
}), null, 16),
|
|
2537
|
-
d("div",
|
|
2538
|
-
v(s(
|
|
2544
|
+
d("div", Vn, [
|
|
2545
|
+
v(s(c), {
|
|
2539
2546
|
is: "sv-action-bar",
|
|
2540
2547
|
model: s(o).topActionContainer,
|
|
2541
2548
|
handleClick: !1
|
|
@@ -2543,30 +2550,30 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2543
2550
|
])
|
|
2544
2551
|
], 32)) : p("", !0),
|
|
2545
2552
|
s(o).needToRenderContent ? (a(), l(w, { key: 1 }, [
|
|
2546
|
-
v(s(
|
|
2553
|
+
v(s(c), {
|
|
2547
2554
|
is: "sv-template-renderer",
|
|
2548
2555
|
componentName: r.componentName,
|
|
2549
2556
|
componentData: r.componentData
|
|
2550
2557
|
}, null, 8, ["componentName", "componentData"]),
|
|
2551
|
-
s(o).isEmptyElement && !r.showPlaceholderComponent ? (a(), l("div",
|
|
2552
|
-
d("div",
|
|
2553
|
-
d("div",
|
|
2558
|
+
s(o).isEmptyElement && !r.showPlaceholderComponent ? (a(), l("div", An, [
|
|
2559
|
+
d("div", zn, [
|
|
2560
|
+
d("div", Ln, $(s(o).placeholderText), 1)
|
|
2554
2561
|
])
|
|
2555
2562
|
])) : p("", !0),
|
|
2556
|
-
s(o).isEmptyElement && r.showPlaceholderComponent ? (a(), h(s(
|
|
2563
|
+
s(o).isEmptyElement && r.showPlaceholderComponent ? (a(), h(s(c), A(
|
|
2557
2564
|
{
|
|
2558
2565
|
key: 1,
|
|
2559
2566
|
is: r.placeholderComponent
|
|
2560
2567
|
},
|
|
2561
2568
|
r.getPlaceholderComponentData && r.getPlaceholderComponentData(s(o))
|
|
2562
2569
|
), null, 16, ["is"])) : p("", !0),
|
|
2563
|
-
r.adornerComponent ? (a(), h(s(
|
|
2570
|
+
r.adornerComponent ? (a(), h(s(c), {
|
|
2564
2571
|
key: 2,
|
|
2565
2572
|
is: r.adornerComponent,
|
|
2566
2573
|
model: s(o),
|
|
2567
2574
|
element: r.element
|
|
2568
2575
|
}, null, 8, ["is", "model", "element"])) : p("", !0),
|
|
2569
|
-
s(o).isBannerShowing ? (a(), h(s(
|
|
2576
|
+
s(o).isBannerShowing ? (a(), h(s(c), {
|
|
2570
2577
|
key: 3,
|
|
2571
2578
|
is: "svc-question-banner",
|
|
2572
2579
|
model: n.value
|
|
@@ -2575,7 +2582,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2575
2582
|
class: "svc-question__content-actions",
|
|
2576
2583
|
onFocusin: i
|
|
2577
2584
|
}, [
|
|
2578
|
-
v(s(
|
|
2585
|
+
v(s(c), {
|
|
2579
2586
|
is: "sv-action-bar",
|
|
2580
2587
|
model: s(o).actionContainer,
|
|
2581
2588
|
handleClick: !1
|
|
@@ -2585,7 +2592,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2585
2592
|
], 2)), [
|
|
2586
2593
|
[s(N), { disableTabStop: !0 }]
|
|
2587
2594
|
])
|
|
2588
|
-
], 42,
|
|
2595
|
+
], 42, Sn)) : p("", !0);
|
|
2589
2596
|
}
|
|
2590
2597
|
}), ae = /* @__PURE__ */ g({
|
|
2591
2598
|
__name: "Question",
|
|
@@ -2593,8 +2600,8 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2593
2600
|
componentName: {},
|
|
2594
2601
|
componentData: {}
|
|
2595
2602
|
},
|
|
2596
|
-
setup(
|
|
2597
|
-
const t =
|
|
2603
|
+
setup(u) {
|
|
2604
|
+
const t = u, e = () => new ee(
|
|
2598
2605
|
t.componentData.data,
|
|
2599
2606
|
t.componentData.element,
|
|
2600
2607
|
null
|
|
@@ -2606,14 +2613,14 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2606
2613
|
"component-data": o.componentData
|
|
2607
2614
|
}, null, 8, ["element", "component-name", "component-data"]));
|
|
2608
2615
|
}
|
|
2609
|
-
}),
|
|
2616
|
+
}), Fn = /* @__PURE__ */ g({
|
|
2610
2617
|
__name: "QuestionImage",
|
|
2611
2618
|
props: {
|
|
2612
2619
|
componentName: {},
|
|
2613
2620
|
componentData: {}
|
|
2614
2621
|
},
|
|
2615
|
-
setup(
|
|
2616
|
-
const t =
|
|
2622
|
+
setup(u) {
|
|
2623
|
+
const t = u, e = () => new Me(
|
|
2617
2624
|
t.componentData.data,
|
|
2618
2625
|
t.componentData.element,
|
|
2619
2626
|
null
|
|
@@ -2631,25 +2638,25 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2631
2638
|
"adorner-component": "svc-image-question-adorner"
|
|
2632
2639
|
}, null, 8, ["element", "component-data", "component-name"]));
|
|
2633
2640
|
}
|
|
2634
|
-
}),
|
|
2641
|
+
}), Kn = {
|
|
2635
2642
|
key: 0,
|
|
2636
2643
|
class: "svc-image-question-controls"
|
|
2637
|
-
},
|
|
2644
|
+
}, Un = ["accept"], Hn = {
|
|
2638
2645
|
class: "svc-context-button",
|
|
2639
2646
|
title: void 0,
|
|
2640
2647
|
"aria-label": void 0
|
|
2641
|
-
},
|
|
2648
|
+
}, On = {
|
|
2642
2649
|
key: 1,
|
|
2643
2650
|
class: "svc-image-question__loading-placeholder"
|
|
2644
|
-
},
|
|
2651
|
+
}, Qn = { class: "svc-image-question__loading" }, Gn = /* @__PURE__ */ g({
|
|
2645
2652
|
__name: "Image",
|
|
2646
2653
|
props: {
|
|
2647
2654
|
model: {},
|
|
2648
2655
|
element: {}
|
|
2649
2656
|
},
|
|
2650
|
-
setup(
|
|
2657
|
+
setup(u) {
|
|
2651
2658
|
return (t, e) => (a(), l(w, null, [
|
|
2652
|
-
!t.model.isUploading && !t.model.isEmptyElement ? (a(), l("div",
|
|
2659
|
+
!t.model.isUploading && !t.model.isEmptyElement ? (a(), l("div", Kn, [
|
|
2653
2660
|
t.model.allowEdit ? (a(), l(w, { key: 0 }, [
|
|
2654
2661
|
d("input", {
|
|
2655
2662
|
type: "file",
|
|
@@ -2657,9 +2664,9 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2657
2664
|
tabindex: "-1",
|
|
2658
2665
|
accept: t.model.acceptedTypes,
|
|
2659
2666
|
class: "svc-choose-file-input"
|
|
2660
|
-
}, null, 8,
|
|
2661
|
-
C((a(), l("span",
|
|
2662
|
-
v(s(
|
|
2667
|
+
}, null, 8, Un),
|
|
2668
|
+
C((a(), l("span", Hn, [
|
|
2669
|
+
v(s(c), {
|
|
2663
2670
|
is: "sv-svg-icon",
|
|
2664
2671
|
iconName: "icon-choosefile",
|
|
2665
2672
|
size: "auto",
|
|
@@ -2670,21 +2677,21 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2670
2677
|
])
|
|
2671
2678
|
], 64)) : p("", !0)
|
|
2672
2679
|
])) : p("", !0),
|
|
2673
|
-
t.model.isUploading && !t.model.isEmptyElement ? (a(), l("div",
|
|
2674
|
-
d("div",
|
|
2675
|
-
v(s(
|
|
2680
|
+
t.model.isUploading && !t.model.isEmptyElement ? (a(), l("div", On, [
|
|
2681
|
+
d("div", Qn, [
|
|
2682
|
+
v(s(c), { is: "sv-loading-indicator" })
|
|
2676
2683
|
])
|
|
2677
2684
|
])) : p("", !0)
|
|
2678
2685
|
], 64));
|
|
2679
2686
|
}
|
|
2680
|
-
}),
|
|
2687
|
+
}), Wn = { class: "svc-rating-question-content" }, jn = /* @__PURE__ */ g({
|
|
2681
2688
|
__name: "Rating",
|
|
2682
2689
|
props: {
|
|
2683
2690
|
componentData: {},
|
|
2684
2691
|
componentName: {}
|
|
2685
2692
|
},
|
|
2686
|
-
setup(
|
|
2687
|
-
const t =
|
|
2693
|
+
setup(u) {
|
|
2694
|
+
const t = u, e = z(
|
|
2688
2695
|
() => new Se(
|
|
2689
2696
|
t.componentData.data,
|
|
2690
2697
|
t.componentData.question,
|
|
@@ -2694,11 +2701,11 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2694
2701
|
);
|
|
2695
2702
|
return (o, n) => {
|
|
2696
2703
|
var i, r, m, b, y, f, E, R, L;
|
|
2697
|
-
return a(), l("div",
|
|
2704
|
+
return a(), l("div", Wn, [
|
|
2698
2705
|
d("div", {
|
|
2699
2706
|
class: _((i = s(e)) == null ? void 0 : i.controlsClassNames)
|
|
2700
2707
|
}, [
|
|
2701
|
-
(r = s(e)) != null && r.allowRemove ? C((a(), h(s(
|
|
2708
|
+
(r = s(e)) != null && r.allowRemove ? C((a(), h(s(c), {
|
|
2702
2709
|
key: 0,
|
|
2703
2710
|
is: "sv-svg-icon",
|
|
2704
2711
|
iconName: "icon-remove_16x16",
|
|
@@ -2713,7 +2720,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2713
2720
|
}, null, 8, ["class", "title", "aria-label"])), [
|
|
2714
2721
|
[s(N)]
|
|
2715
2722
|
]) : p("", !0),
|
|
2716
|
-
(f = s(e)) != null && f.allowAdd ? C((a(), h(s(
|
|
2723
|
+
(f = s(e)) != null && f.allowAdd ? C((a(), h(s(c), {
|
|
2717
2724
|
key: 1,
|
|
2718
2725
|
is: "sv-svg-icon",
|
|
2719
2726
|
iconName: "icon-add_16x16",
|
|
@@ -2733,16 +2740,16 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2733
2740
|
]);
|
|
2734
2741
|
};
|
|
2735
2742
|
}
|
|
2736
|
-
}),
|
|
2743
|
+
}), Jn = {
|
|
2737
2744
|
key: 0,
|
|
2738
2745
|
class: "svc-matrix-cell__question-controls"
|
|
2739
|
-
},
|
|
2746
|
+
}, Zn = /* @__PURE__ */ g({
|
|
2740
2747
|
__name: "MatrixCell",
|
|
2741
2748
|
props: {
|
|
2742
2749
|
componentData: {}
|
|
2743
2750
|
},
|
|
2744
|
-
setup(
|
|
2745
|
-
const t =
|
|
2751
|
+
setup(u) {
|
|
2752
|
+
const t = u, e = k(() => t.componentData.creator), o = k(() => t.componentData.row), n = k(() => t.componentData.column), i = k(() => t.componentData.element), r = k(
|
|
2746
2753
|
() => t.componentData.question
|
|
2747
2754
|
), m = z(
|
|
2748
2755
|
() => {
|
|
@@ -2784,12 +2791,12 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2784
2791
|
class: _(["svc-matrix-cell--selected", { "svc-visible": (f = s(m)) == null ? void 0 : f.isSelected }])
|
|
2785
2792
|
}, null, 2),
|
|
2786
2793
|
x(b.$slots, "default"),
|
|
2787
|
-
(E = s(m)) != null && E.isSupportCellEditor ? (a(), l("div",
|
|
2794
|
+
(E = s(m)) != null && E.isSupportCellEditor ? (a(), l("div", Jn, [
|
|
2788
2795
|
C((a(), l("span", {
|
|
2789
2796
|
class: "svc-matrix-cell__question-controls-button svc-context-button",
|
|
2790
2797
|
onClick: y[0] || (y[0] = (R) => s(m).editQuestion(s(m), R))
|
|
2791
2798
|
}, [
|
|
2792
|
-
v(s(
|
|
2799
|
+
v(s(c), {
|
|
2793
2800
|
is: "sv-svg-icon",
|
|
2794
2801
|
iconName: "icon-edit",
|
|
2795
2802
|
size: "auto"
|
|
@@ -2801,36 +2808,36 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2801
2808
|
], 32);
|
|
2802
2809
|
};
|
|
2803
2810
|
}
|
|
2804
|
-
}),
|
|
2811
|
+
}), Xn = { class: "svc-question__adorner" }, Yn = { class: "svc-question__content svc-question__content--in-popup" }, xn = /* @__PURE__ */ g({
|
|
2805
2812
|
__name: "CellQuestion",
|
|
2806
2813
|
props: {
|
|
2807
2814
|
componentName: {},
|
|
2808
2815
|
componentData: {}
|
|
2809
2816
|
},
|
|
2810
|
-
setup(
|
|
2811
|
-
const t =
|
|
2817
|
+
setup(u) {
|
|
2818
|
+
const t = u, e = k(
|
|
2812
2819
|
() => t.componentData.element
|
|
2813
2820
|
);
|
|
2814
|
-
return T(() => e.value), (o, n) => (a(), l("div",
|
|
2815
|
-
d("div",
|
|
2816
|
-
v(s(
|
|
2821
|
+
return T(() => e.value), (o, n) => (a(), l("div", Xn, [
|
|
2822
|
+
d("div", Yn, [
|
|
2823
|
+
v(s(c), A({ is: o.componentName }, o.componentData), null, 16, ["is"])
|
|
2817
2824
|
])
|
|
2818
2825
|
]));
|
|
2819
2826
|
}
|
|
2820
|
-
}),
|
|
2827
|
+
}), ea = ["data-sv-drop-target-survey-element"], oa = { class: "svc-fake-title" }, sa = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--left" }, null, -1), ta = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--right" }, null, -1), na = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--top" }, null, -1), aa = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }, null, -1), la = { class: "svc-question__top-actions" }, ia = {
|
|
2821
2828
|
key: 0,
|
|
2822
2829
|
class: "svc-panel__placeholder_frame-wrapper"
|
|
2823
|
-
},
|
|
2830
|
+
}, ra = { class: "svc-panel__placeholder_frame" }, da = { class: "svc-panel__placeholder" }, ca = { class: "svc-add-new-item-button__text" }, ua = {
|
|
2824
2831
|
key: 1,
|
|
2825
2832
|
class: "svc-panel__add-new-question-container"
|
|
2826
|
-
},
|
|
2833
|
+
}, pa = { class: "svc-panel__question-type-selector-popup" }, va = { class: "svc-panel__add-new-question-wrapper" }, ma = /* @__PURE__ */ g({
|
|
2827
2834
|
__name: "Panel",
|
|
2828
2835
|
props: {
|
|
2829
2836
|
componentName: {},
|
|
2830
2837
|
componentData: {}
|
|
2831
2838
|
},
|
|
2832
|
-
setup(
|
|
2833
|
-
const t =
|
|
2839
|
+
setup(u) {
|
|
2840
|
+
const t = u, e = z(
|
|
2834
2841
|
() => new ee(
|
|
2835
2842
|
t.componentData.data,
|
|
2836
2843
|
t.componentData.element,
|
|
@@ -2856,7 +2863,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2856
2863
|
key: 0,
|
|
2857
2864
|
class: _(s(e).cssCollapsedHiddenHeader)
|
|
2858
2865
|
}, [
|
|
2859
|
-
s(e).element.hasTitle ? (a(), h(s(
|
|
2866
|
+
s(e).element.hasTitle ? (a(), h(s(c), {
|
|
2860
2867
|
key: 0,
|
|
2861
2868
|
is: "survey-element-title",
|
|
2862
2869
|
element: s(e).element
|
|
@@ -2864,30 +2871,30 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2864
2871
|
key: 1,
|
|
2865
2872
|
class: _(s(e).cssCollapsedHiddenTitle)
|
|
2866
2873
|
}, [
|
|
2867
|
-
d("span",
|
|
2874
|
+
d("span", oa, $(s(e).element.name), 1)
|
|
2868
2875
|
], 2))
|
|
2869
2876
|
], 2)) : p("", !0),
|
|
2870
2877
|
C((a(), l("div", {
|
|
2871
2878
|
class: _(s(e).css()),
|
|
2872
2879
|
onClick: i[2] || (i[2] = (r) => s(e).element.isInteractiveDesignElement ? s(e).select(s(e), r) : null)
|
|
2873
2880
|
}, [
|
|
2874
|
-
oa,
|
|
2875
2881
|
sa,
|
|
2876
2882
|
ta,
|
|
2877
2883
|
na,
|
|
2884
|
+
aa,
|
|
2878
2885
|
s(e).allowDragging && s(e).element.isInteractiveDesignElement ? (a(), l("div", {
|
|
2879
2886
|
key: 0,
|
|
2880
2887
|
class: "svc-question__drag-area",
|
|
2881
2888
|
onPointerdown: i[0] || (i[0] = (r) => s(e).onPointerDown(r))
|
|
2882
2889
|
}, [
|
|
2883
|
-
v(s(
|
|
2890
|
+
v(s(c), {
|
|
2884
2891
|
is: "sv-svg-icon",
|
|
2885
2892
|
class: "svc-question__drag-element",
|
|
2886
2893
|
iconName: "icon-drag-area-indicator_24x16",
|
|
2887
2894
|
size: "auto"
|
|
2888
2895
|
}),
|
|
2889
|
-
d("div",
|
|
2890
|
-
v(s(
|
|
2896
|
+
d("div", la, [
|
|
2897
|
+
v(s(c), {
|
|
2891
2898
|
is: "sv-action-bar",
|
|
2892
2899
|
model: s(e).topActionContainer,
|
|
2893
2900
|
handleClick: !1
|
|
@@ -2895,36 +2902,36 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2895
2902
|
])
|
|
2896
2903
|
], 32)) : p("", !0),
|
|
2897
2904
|
s(e).needToRenderContent ? (a(), l(w, { key: 1 }, [
|
|
2898
|
-
v(s(
|
|
2899
|
-
s(e).isEmptyElement ? (a(), l("div",
|
|
2900
|
-
d("div",
|
|
2901
|
-
d("div",
|
|
2905
|
+
v(s(c), A({ is: n.componentName }, n.componentData), null, 16, ["is"]),
|
|
2906
|
+
s(e).isEmptyElement ? (a(), l("div", ia, [
|
|
2907
|
+
d("div", ra, [
|
|
2908
|
+
d("div", da, $(s(e).placeholderText), 1),
|
|
2902
2909
|
s(e).showAddQuestionButton ? C((a(), l("div", {
|
|
2903
2910
|
key: 0,
|
|
2904
2911
|
class: "svc-panel__add-new-question svc-action-button",
|
|
2905
2912
|
onClick: o
|
|
2906
2913
|
}, [
|
|
2907
|
-
v(s(
|
|
2914
|
+
v(s(c), {
|
|
2908
2915
|
is: "sv-svg-icon",
|
|
2909
2916
|
class: "svc-panel__add-new-question-icon",
|
|
2910
2917
|
iconName: "icon-add_24x24",
|
|
2911
2918
|
size: "auto"
|
|
2912
2919
|
}),
|
|
2913
|
-
d("span",
|
|
2920
|
+
d("span", ca, $(s(e).addNewQuestionText), 1)
|
|
2914
2921
|
])), [
|
|
2915
2922
|
[s(N)]
|
|
2916
2923
|
]) : p("", !0)
|
|
2917
2924
|
])
|
|
2918
2925
|
])) : p("", !0),
|
|
2919
|
-
!s(e).isEmptyElement && s(e).showAddQuestionButton ? (a(), l("div",
|
|
2920
|
-
d("div",
|
|
2921
|
-
v(s(
|
|
2926
|
+
!s(e).isEmptyElement && s(e).showAddQuestionButton ? (a(), l("div", ua, [
|
|
2927
|
+
d("div", pa, [
|
|
2928
|
+
v(s(c), {
|
|
2922
2929
|
is: "sv-popup",
|
|
2923
2930
|
model: s(e).questionTypeSelectorModel.popupModel
|
|
2924
2931
|
}, null, 8, ["model"])
|
|
2925
2932
|
]),
|
|
2926
|
-
d("div",
|
|
2927
|
-
v(s(
|
|
2933
|
+
d("div", va, [
|
|
2934
|
+
v(s(c), {
|
|
2928
2935
|
is: "svc-add-new-question-btn",
|
|
2929
2936
|
item: { data: s(e) },
|
|
2930
2937
|
buttonClass: "svc-action-button",
|
|
@@ -2937,7 +2944,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2937
2944
|
class: "svc-question__content-actions",
|
|
2938
2945
|
onFocusin: i[1] || (i[1] = (r) => s(e).select(s(e), r))
|
|
2939
2946
|
}, [
|
|
2940
|
-
v(s(
|
|
2947
|
+
v(s(c), {
|
|
2941
2948
|
is: "sv-action-bar",
|
|
2942
2949
|
model: s(e).actionContainer,
|
|
2943
2950
|
handleClick: !1
|
|
@@ -2947,19 +2954,19 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2947
2954
|
], 2)), [
|
|
2948
2955
|
[s(N), { disableTabStop: !0 }]
|
|
2949
2956
|
])
|
|
2950
|
-
], 42,
|
|
2957
|
+
], 42, ea)) : p("", !0);
|
|
2951
2958
|
}
|
|
2952
|
-
}),
|
|
2959
|
+
}), _a = ["data-sv-drop-target-item-value"], ga = /* @__PURE__ */ d("div", { class: "svc-item-value__ghost" }, null, -1), ba = { class: "svc-item-value-controls" }, ya = {
|
|
2953
2960
|
key: 0,
|
|
2954
2961
|
class: "svc-item-value-controls__button svc-item-value-controls__drag"
|
|
2955
|
-
},
|
|
2962
|
+
}, ha = /* @__PURE__ */ g({
|
|
2956
2963
|
__name: "ItemValue",
|
|
2957
2964
|
props: {
|
|
2958
2965
|
componentName: {},
|
|
2959
2966
|
componentData: {}
|
|
2960
2967
|
},
|
|
2961
|
-
setup(
|
|
2962
|
-
const t = I(), e =
|
|
2968
|
+
setup(u) {
|
|
2969
|
+
const t = I(), e = u, o = k(() => e.componentData.data.creator), n = k(() => e.componentData.question), i = k(() => e.componentData.item), r = G(
|
|
2963
2970
|
() => i.value,
|
|
2964
2971
|
(b, y) => {
|
|
2965
2972
|
b && t.value && b.setRootElement(t.value), y && y.setRootElement(void 0);
|
|
@@ -2992,10 +2999,10 @@ const Nt = /* @__PURE__ */ g({
|
|
|
2992
2999
|
ref_key: "root",
|
|
2993
3000
|
ref: t
|
|
2994
3001
|
}, [
|
|
2995
|
-
|
|
2996
|
-
d("div",
|
|
2997
|
-
s(m).isDraggable ? (a(), l("span",
|
|
2998
|
-
v(s(
|
|
3002
|
+
ga,
|
|
3003
|
+
d("div", ba, [
|
|
3004
|
+
s(m).isDraggable ? (a(), l("span", ya, [
|
|
3005
|
+
v(s(c), {
|
|
2999
3006
|
is: "sv-svg-icon",
|
|
3000
3007
|
class: "svc-item-value-controls__drag-icon",
|
|
3001
3008
|
iconName: "icon-drag-24x24",
|
|
@@ -3009,7 +3016,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3009
3016
|
onClick: y[0] || (y[0] = (f) => s(m).add(s(m))),
|
|
3010
3017
|
"aria-label": void 0
|
|
3011
3018
|
}, [
|
|
3012
|
-
v(s(
|
|
3019
|
+
v(s(c), {
|
|
3013
3020
|
is: "sv-svg-icon",
|
|
3014
3021
|
iconName: "icon-add_16x16",
|
|
3015
3022
|
size: "auto",
|
|
@@ -3025,7 +3032,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3025
3032
|
onBlur: y[2] || (y[2] = (f) => s(m).onFocusOut(f)),
|
|
3026
3033
|
"aria-label": void 0
|
|
3027
3034
|
}, [
|
|
3028
|
-
v(s(
|
|
3035
|
+
v(s(c), {
|
|
3029
3036
|
is: "sv-svg-icon",
|
|
3030
3037
|
iconName: "icon-remove_16x16",
|
|
3031
3038
|
size: "auto",
|
|
@@ -3039,30 +3046,30 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3039
3046
|
class: "svc-item-value__item",
|
|
3040
3047
|
onClick: y[3] || (y[3] = (f) => s(m).select(s(m), f))
|
|
3041
3048
|
}, [
|
|
3042
|
-
v(s(
|
|
3049
|
+
v(s(c), A({ is: b.componentName }, b.componentData), null, 16, ["is"])
|
|
3043
3050
|
])
|
|
3044
|
-
], 42,
|
|
3051
|
+
], 42, _a));
|
|
3045
3052
|
}
|
|
3046
|
-
}),
|
|
3053
|
+
}), qa = ["data-sv-drop-target-item-value"], Ca = { class: "svc-image-item-value-wrapper__content" }, ka = ["accept"], $a = {
|
|
3047
3054
|
key: 0,
|
|
3048
3055
|
class: "svc-image-item-value__item"
|
|
3049
|
-
},
|
|
3056
|
+
}, fa = {
|
|
3050
3057
|
key: 2,
|
|
3051
3058
|
class: "svc-context-container svc-image-item-value-controls"
|
|
3052
|
-
},
|
|
3059
|
+
}, wa = { class: "svc-image-item-value__item" }, Ta = { class: "sd-imagepicker__item sd-imagepicker__item--inline" }, Da = { class: "sd-imagepicker__label" }, Na = {
|
|
3053
3060
|
key: 0,
|
|
3054
3061
|
class: "svc-image-item-value__loading"
|
|
3055
|
-
},
|
|
3062
|
+
}, Ma = {
|
|
3056
3063
|
key: 0,
|
|
3057
3064
|
class: "svc-image-item-value__placeholder"
|
|
3058
|
-
},
|
|
3065
|
+
}, Sa = { key: 1 }, Ba = /* @__PURE__ */ g({
|
|
3059
3066
|
__name: "ImageItemValue",
|
|
3060
3067
|
props: {
|
|
3061
3068
|
componentName: {},
|
|
3062
3069
|
componentData: {}
|
|
3063
3070
|
},
|
|
3064
|
-
setup(
|
|
3065
|
-
const t =
|
|
3071
|
+
setup(u) {
|
|
3072
|
+
const t = u, e = k(() => t.componentData.data.creator), o = k(() => t.componentData.question), n = k(() => t.componentData.item), i = I(), r = z(
|
|
3066
3073
|
() => {
|
|
3067
3074
|
const y = new Ee(
|
|
3068
3075
|
e.value,
|
|
@@ -3104,17 +3111,17 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3104
3111
|
class: "svc-image-item-value-wrapper__ghost",
|
|
3105
3112
|
style: F(b.value)
|
|
3106
3113
|
}, null, 4),
|
|
3107
|
-
d("div",
|
|
3114
|
+
d("div", Ca, [
|
|
3108
3115
|
d("input", {
|
|
3109
3116
|
type: "file",
|
|
3110
3117
|
"aria-hidden": "true",
|
|
3111
3118
|
tabindex: "-1",
|
|
3112
3119
|
accept: s(r).acceptedTypes,
|
|
3113
3120
|
class: "svc-choose-file-input"
|
|
3114
|
-
}, null, 8,
|
|
3121
|
+
}, null, 8, ka),
|
|
3115
3122
|
!s(r).isNew && !s(r).isUploading ? (a(), l(w, { key: 0 }, [
|
|
3116
|
-
s(r).isNew ? p("", !0) : (a(), l("div",
|
|
3117
|
-
v(s(
|
|
3123
|
+
s(r).isNew ? p("", !0) : (a(), l("div", $a, [
|
|
3124
|
+
v(s(c), A({ is: y.componentName }, y.componentData), null, 16, ["is"])
|
|
3118
3125
|
])),
|
|
3119
3126
|
s(r).isDraggable && s(r).canRenderControls ? (a(), l("span", {
|
|
3120
3127
|
key: 1,
|
|
@@ -3123,20 +3130,20 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3123
3130
|
title: void 0,
|
|
3124
3131
|
"aria-label": void 0
|
|
3125
3132
|
}, [
|
|
3126
|
-
v(s(
|
|
3133
|
+
v(s(c), {
|
|
3127
3134
|
is: "sv-svg-icon",
|
|
3128
3135
|
iconName: "icon-drag-24x24",
|
|
3129
3136
|
size: "auto"
|
|
3130
3137
|
})
|
|
3131
3138
|
], 32)) : p("", !0),
|
|
3132
|
-
s(r).canRenderControls ? (a(), l("div",
|
|
3139
|
+
s(r).canRenderControls ? (a(), l("div", fa, [
|
|
3133
3140
|
C((a(), l("span", {
|
|
3134
3141
|
class: "svc-context-button",
|
|
3135
3142
|
onClick: f[1] || (f[1] = (E) => s(r).chooseFile(s(r))),
|
|
3136
3143
|
title: void 0,
|
|
3137
3144
|
"aria-label": void 0
|
|
3138
3145
|
}, [
|
|
3139
|
-
v(s(
|
|
3146
|
+
v(s(c), {
|
|
3140
3147
|
is: "sv-svg-icon",
|
|
3141
3148
|
role: "button",
|
|
3142
3149
|
iconName: "icon-choosefile",
|
|
@@ -3152,7 +3159,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3152
3159
|
title: void 0,
|
|
3153
3160
|
"aria-label": void 0
|
|
3154
3161
|
}, [
|
|
3155
|
-
v(s(
|
|
3162
|
+
v(s(c), {
|
|
3156
3163
|
is: "sv-svg-icon",
|
|
3157
3164
|
role: "button",
|
|
3158
3165
|
iconName: "icon-delete",
|
|
@@ -3164,15 +3171,15 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3164
3171
|
])
|
|
3165
3172
|
])) : p("", !0)
|
|
3166
3173
|
], 64)) : (a(), l(w, { key: 1 }, [
|
|
3167
|
-
d("div",
|
|
3168
|
-
d("div",
|
|
3169
|
-
d("label",
|
|
3174
|
+
d("div", wa, [
|
|
3175
|
+
d("div", Ta, [
|
|
3176
|
+
d("label", Da, [
|
|
3170
3177
|
d("div", {
|
|
3171
3178
|
style: F(b.value),
|
|
3172
3179
|
class: "sd-imagepicker__image"
|
|
3173
3180
|
}, [
|
|
3174
|
-
s(r).isUploading ? (a(), l("div",
|
|
3175
|
-
v(s(
|
|
3181
|
+
s(r).isUploading ? (a(), l("div", Na, [
|
|
3182
|
+
v(s(c), { is: "sv-loading-indicator" })
|
|
3176
3183
|
])) : p("", !0)
|
|
3177
3184
|
], 4)
|
|
3178
3185
|
])
|
|
@@ -3183,34 +3190,34 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3183
3190
|
class: "svc-image-item-value-controls",
|
|
3184
3191
|
onPointerdown: f[4] || (f[4] = (E) => E.stopPropagation())
|
|
3185
3192
|
}, [
|
|
3186
|
-
s(r).showPlaceholder ? (a(), l("span",
|
|
3193
|
+
s(r).showPlaceholder ? (a(), l("span", Ma, $(s(r).placeholderText), 1)) : p("", !0),
|
|
3187
3194
|
C((a(), l("span", {
|
|
3188
3195
|
class: _(s(r).addButtonCss),
|
|
3189
3196
|
onClick: f[3] || (f[3] = (E) => s(r).chooseNewFile(s(r)))
|
|
3190
3197
|
}, [
|
|
3191
|
-
s(r).showChooseButtonAsIcon ? (a(), h(s(
|
|
3198
|
+
s(r).showChooseButtonAsIcon ? (a(), h(s(c), {
|
|
3192
3199
|
key: 0,
|
|
3193
3200
|
is: "sv-svg-icon",
|
|
3194
3201
|
iconName: "icon-add-lg",
|
|
3195
3202
|
size: "auto",
|
|
3196
3203
|
title: s(r).addFileTitle
|
|
3197
|
-
}, null, 8, ["title"])) : (a(), l("span",
|
|
3204
|
+
}, null, 8, ["title"])) : (a(), l("span", Sa, $(s(r).chooseImageText), 1))
|
|
3198
3205
|
], 2)), [
|
|
3199
3206
|
[s(N)]
|
|
3200
3207
|
])
|
|
3201
3208
|
], 32)) : p("", !0)
|
|
3202
3209
|
], 64))
|
|
3203
3210
|
])
|
|
3204
|
-
], 42,
|
|
3211
|
+
], 42, qa));
|
|
3205
3212
|
}
|
|
3206
|
-
}),
|
|
3213
|
+
}), Ia = /* @__PURE__ */ g({
|
|
3207
3214
|
__name: "QuestionEditor",
|
|
3208
3215
|
props: {
|
|
3209
3216
|
survey: {},
|
|
3210
3217
|
style: {}
|
|
3211
3218
|
},
|
|
3212
|
-
setup(
|
|
3213
|
-
const t =
|
|
3219
|
+
setup(u) {
|
|
3220
|
+
const t = u, e = k(() => {
|
|
3214
3221
|
var i;
|
|
3215
3222
|
return (i = t.survey) == null ? void 0 : i.getAllQuestions()[0];
|
|
3216
3223
|
}), o = k(() => {
|
|
@@ -3235,23 +3242,23 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3235
3242
|
return (i, r) => (a(), l("div", {
|
|
3236
3243
|
style: F(t.style)
|
|
3237
3244
|
}, [
|
|
3238
|
-
v(s(
|
|
3245
|
+
v(s(c), A({ is: o.value }, n.value), null, 16, ["is"])
|
|
3239
3246
|
], 4));
|
|
3240
3247
|
}
|
|
3241
|
-
}),
|
|
3248
|
+
}), Ea = ["accept"], Pa = /* @__PURE__ */ d("svg", null, [
|
|
3242
3249
|
/* @__PURE__ */ d("use", { "xlink:href": "#icon-image-48x48" })
|
|
3243
|
-
], -1),
|
|
3244
|
-
|
|
3245
|
-
],
|
|
3250
|
+
], -1), Ra = [
|
|
3251
|
+
Pa
|
|
3252
|
+
], Va = { class: "svc-context-container svc-logo-image-controls" }, Aa = {
|
|
3246
3253
|
key: 2,
|
|
3247
3254
|
class: "svc-logo-image__loading"
|
|
3248
|
-
},
|
|
3255
|
+
}, za = /* @__PURE__ */ g({
|
|
3249
3256
|
__name: "Logo",
|
|
3250
3257
|
props: {
|
|
3251
3258
|
data: {}
|
|
3252
3259
|
},
|
|
3253
|
-
setup(
|
|
3254
|
-
const t =
|
|
3260
|
+
setup(u) {
|
|
3261
|
+
const t = u, e = k(() => t.data), o = k(() => e.value.survey), n = I(), i = z(
|
|
3255
3262
|
() => new Pe(e.value, null),
|
|
3256
3263
|
[() => e.value]
|
|
3257
3264
|
), r = I(), m = () => {
|
|
@@ -3280,13 +3287,13 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3280
3287
|
tabindex: "-1",
|
|
3281
3288
|
accept: s(i).acceptedTypes,
|
|
3282
3289
|
class: "svc-choose-file-input"
|
|
3283
|
-
}, null, 8,
|
|
3290
|
+
}, null, 8, Ea),
|
|
3284
3291
|
r.value ? p("", !0) : (a(), l(w, { key: 0 }, [
|
|
3285
3292
|
s(i).allowEdit && !s(i).isUploading ? C((a(), l("div", {
|
|
3286
3293
|
key: 0,
|
|
3287
3294
|
class: "svc-logo-image-placeholder",
|
|
3288
3295
|
onClick: y[0] || (y[0] = (f) => s(i).chooseFile(s(i)))
|
|
3289
|
-
},
|
|
3296
|
+
}, Ra)), [
|
|
3290
3297
|
[s(N)]
|
|
3291
3298
|
]) : p("", !0)
|
|
3292
3299
|
], 64)),
|
|
@@ -3294,14 +3301,14 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3294
3301
|
key: 1,
|
|
3295
3302
|
class: _(s(i).containerCss)
|
|
3296
3303
|
}, [
|
|
3297
|
-
d("div",
|
|
3304
|
+
d("div", Va, [
|
|
3298
3305
|
C((a(), l("span", {
|
|
3299
3306
|
class: "svc-context-button",
|
|
3300
3307
|
onClick: y[1] || (y[1] = (f) => s(i).chooseFile(s(i))),
|
|
3301
3308
|
title: void 0,
|
|
3302
3309
|
"aria-label": void 0
|
|
3303
3310
|
}, [
|
|
3304
|
-
v(s(
|
|
3311
|
+
v(s(c), {
|
|
3305
3312
|
is: "sv-svg-icon",
|
|
3306
3313
|
iconName: "icon-choosefile",
|
|
3307
3314
|
size: "auto"
|
|
@@ -3315,7 +3322,7 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3315
3322
|
title: void 0,
|
|
3316
3323
|
"aria-label": void 0
|
|
3317
3324
|
}, [
|
|
3318
|
-
v(s(
|
|
3325
|
+
v(s(c), {
|
|
3319
3326
|
is: "sv-svg-icon",
|
|
3320
3327
|
iconName: "icon-clear",
|
|
3321
3328
|
size: "auto"
|
|
@@ -3324,26 +3331,26 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3324
3331
|
[s(N)]
|
|
3325
3332
|
])
|
|
3326
3333
|
]),
|
|
3327
|
-
v(s(
|
|
3334
|
+
v(s(c), {
|
|
3328
3335
|
is: "sv-logo-image",
|
|
3329
3336
|
data: o.value
|
|
3330
3337
|
}, null, 8, ["data"])
|
|
3331
3338
|
], 2)) : p("", !0),
|
|
3332
|
-
s(i).isUploading ? (a(), l("div",
|
|
3333
|
-
v(s(
|
|
3339
|
+
s(i).isUploading ? (a(), l("div", Aa, [
|
|
3340
|
+
v(s(c), { is: "sv-loading-indicator" })
|
|
3334
3341
|
])) : p("", !0)
|
|
3335
3342
|
], 512));
|
|
3336
3343
|
}
|
|
3337
|
-
}),
|
|
3344
|
+
}), La = {
|
|
3338
3345
|
key: 0,
|
|
3339
3346
|
class: "svc-search"
|
|
3340
|
-
},
|
|
3347
|
+
}, Fa = { class: "svc-search__search-icon" }, Ka = ["aria-label", "placeholder"], Ua = { class: "svc-search__toolbar" }, Ha = { class: "svc-search__toolbar-counter" }, Oa = /* @__PURE__ */ g({
|
|
3341
3348
|
__name: "Search",
|
|
3342
3349
|
props: {
|
|
3343
3350
|
model: {}
|
|
3344
3351
|
},
|
|
3345
|
-
setup(
|
|
3346
|
-
const t =
|
|
3352
|
+
setup(u) {
|
|
3353
|
+
const t = u;
|
|
3347
3354
|
T(() => t.model);
|
|
3348
3355
|
const e = k({
|
|
3349
3356
|
get: () => t.model.filterString,
|
|
@@ -3352,9 +3359,9 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3352
3359
|
n.filterString = o;
|
|
3353
3360
|
}
|
|
3354
3361
|
});
|
|
3355
|
-
return (o, n) => o.model.isVisible ? (a(), l("div",
|
|
3356
|
-
d("div",
|
|
3357
|
-
v(s(
|
|
3362
|
+
return (o, n) => o.model.isVisible ? (a(), l("div", La, [
|
|
3363
|
+
d("div", Fa, [
|
|
3364
|
+
v(s(c), {
|
|
3358
3365
|
is: "sv-svg-icon",
|
|
3359
3366
|
iconName: "icon-search",
|
|
3360
3367
|
size: "auto"
|
|
@@ -3366,26 +3373,26 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3366
3373
|
"onUpdate:modelValue": n[0] || (n[0] = (i) => e.value = i),
|
|
3367
3374
|
"aria-label": o.model.filterStringPlaceholder,
|
|
3368
3375
|
placeholder: o.model.filterStringPlaceholder
|
|
3369
|
-
}, null, 8,
|
|
3376
|
+
}, null, 8, Ka), [
|
|
3370
3377
|
[de, e.value]
|
|
3371
3378
|
]),
|
|
3372
|
-
d("div",
|
|
3373
|
-
d("div",
|
|
3374
|
-
v(s(
|
|
3379
|
+
d("div", Ua, [
|
|
3380
|
+
d("div", Ha, $(o.model.matchCounterText), 1),
|
|
3381
|
+
v(s(c), {
|
|
3375
3382
|
is: "sv-action-bar",
|
|
3376
3383
|
model: o.model.searchActionBar
|
|
3377
3384
|
}, null, 8, ["model"])
|
|
3378
3385
|
])
|
|
3379
3386
|
])) : p("", !0);
|
|
3380
3387
|
}
|
|
3381
|
-
}),
|
|
3388
|
+
}), Qa = ["title"], Ga = /* @__PURE__ */ g({
|
|
3382
3389
|
__name: "PageNavigator",
|
|
3383
3390
|
props: {
|
|
3384
3391
|
pagesController: {},
|
|
3385
3392
|
pageEditMode: {}
|
|
3386
3393
|
},
|
|
3387
|
-
setup(
|
|
3388
|
-
const t =
|
|
3394
|
+
setup(u) {
|
|
3395
|
+
const t = u, e = z(
|
|
3389
3396
|
() => new Re(t.pagesController, t.pageEditMode),
|
|
3390
3397
|
[() => t.pagesController, () => t.pageEditMode]
|
|
3391
3398
|
), o = I();
|
|
@@ -3410,21 +3417,21 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3410
3417
|
onClick: i[0] || (i[0] = (r) => s(e).togglePageSelector(r)),
|
|
3411
3418
|
title: s(e).pageSelectorCaption
|
|
3412
3419
|
}, [
|
|
3413
|
-
v(s(
|
|
3420
|
+
v(s(c), {
|
|
3414
3421
|
is: "sv-svg-icon",
|
|
3415
3422
|
class: "svc-page-navigator__button-icon",
|
|
3416
3423
|
iconName: s(e).icon,
|
|
3417
3424
|
size: "auto"
|
|
3418
3425
|
}, null, 8, ["iconName"]),
|
|
3419
|
-
v(s(
|
|
3426
|
+
v(s(c), {
|
|
3420
3427
|
is: "sv-popup",
|
|
3421
3428
|
model: s(e).popupModel
|
|
3422
3429
|
}, null, 8, ["model"])
|
|
3423
|
-
], 10,
|
|
3430
|
+
], 10, Qa)), [
|
|
3424
3431
|
[s(N)]
|
|
3425
3432
|
]),
|
|
3426
3433
|
d("div", null, [
|
|
3427
|
-
(a(!0), l(w, null, V(s(e).visibleItems, (r) => (a(), h(s(
|
|
3434
|
+
(a(!0), l(w, null, V(s(e).visibleItems, (r) => (a(), h(s(c), {
|
|
3428
3435
|
is: "svc-page-navigator-item",
|
|
3429
3436
|
key: r.id,
|
|
3430
3437
|
model: r
|
|
@@ -3434,22 +3441,22 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3434
3441
|
[U, s(e).visible]
|
|
3435
3442
|
]);
|
|
3436
3443
|
}
|
|
3437
|
-
}),
|
|
3438
|
-
|
|
3439
|
-
],
|
|
3444
|
+
}), Wa = { class: "svc-page-navigator-item" }, ja = ["title"], Ja = /* @__PURE__ */ d("div", { class: "svc-page-navigator-item__dot-content" }, null, -1), Za = [
|
|
3445
|
+
Ja
|
|
3446
|
+
], Xa = { class: "svc-page-navigator-item__banner" }, Ya = { class: "svc-page-navigator-item__text" }, xa = /* @__PURE__ */ d("span", { class: "svc-page-navigator-item__dot" }, [
|
|
3440
3447
|
/* @__PURE__ */ d("span", { class: "svc-page-navigator-item__dot-content" })
|
|
3441
|
-
], -1),
|
|
3448
|
+
], -1), el = /* @__PURE__ */ g({
|
|
3442
3449
|
__name: "PageNavigatorItem",
|
|
3443
3450
|
props: {
|
|
3444
3451
|
model: {}
|
|
3445
3452
|
},
|
|
3446
|
-
setup(
|
|
3447
|
-
const t =
|
|
3453
|
+
setup(u) {
|
|
3454
|
+
const t = u;
|
|
3448
3455
|
T(() => t.model);
|
|
3449
3456
|
const e = (o) => {
|
|
3450
3457
|
t.model.action(), o.stopPropagation(), o.preventDefault();
|
|
3451
3458
|
};
|
|
3452
|
-
return (o, n) => (a(), l("div",
|
|
3459
|
+
return (o, n) => (a(), l("div", Wa, [
|
|
3453
3460
|
C((a(), l("div", {
|
|
3454
3461
|
role: "button",
|
|
3455
3462
|
class: _(["svc-page-navigator-item-content", {
|
|
@@ -3461,24 +3468,24 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3461
3468
|
d("div", {
|
|
3462
3469
|
class: "svc-page-navigator-item__dot",
|
|
3463
3470
|
title: o.model.title
|
|
3464
|
-
},
|
|
3465
|
-
d("div",
|
|
3466
|
-
d("span",
|
|
3467
|
-
|
|
3471
|
+
}, Za, 8, ja),
|
|
3472
|
+
d("div", Xa, [
|
|
3473
|
+
d("span", Ya, $(o.model.title), 1),
|
|
3474
|
+
xa
|
|
3468
3475
|
])
|
|
3469
3476
|
], 2)), [
|
|
3470
3477
|
[s(N)]
|
|
3471
3478
|
])
|
|
3472
3479
|
]));
|
|
3473
3480
|
}
|
|
3474
|
-
}),
|
|
3481
|
+
}), ol = { class: "svc-question__dropdown-choices--wrapper" }, sl = { class: "svc-question__dropdown-choices" }, tl = /* @__PURE__ */ g({
|
|
3475
3482
|
__name: "Dropdown",
|
|
3476
3483
|
props: {
|
|
3477
3484
|
model: {},
|
|
3478
3485
|
element: {}
|
|
3479
3486
|
},
|
|
3480
|
-
setup(
|
|
3481
|
-
const t =
|
|
3487
|
+
setup(u) {
|
|
3488
|
+
const t = u, e = (n) => t.element.getItemValueWrapperComponentName(n) || t.model.itemComponent, o = (n) => ({
|
|
3482
3489
|
componentName: t.model.itemComponent,
|
|
3483
3490
|
componentData: {
|
|
3484
3491
|
question: t.element,
|
|
@@ -3486,19 +3493,19 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3486
3493
|
data: t.element.getItemValueWrapperComponentData(n)
|
|
3487
3494
|
}
|
|
3488
3495
|
});
|
|
3489
|
-
return (n, i) => (a(), l("div",
|
|
3496
|
+
return (n, i) => (a(), l("div", ol, [
|
|
3490
3497
|
d("div", null, [
|
|
3491
|
-
d("div",
|
|
3498
|
+
d("div", sl, [
|
|
3492
3499
|
(a(!0), l(w, null, V(n.model.getRenderedItems(), (r) => (a(), l("div", {
|
|
3493
3500
|
key: r.value,
|
|
3494
3501
|
class: _(n.model.getChoiceCss())
|
|
3495
3502
|
}, [
|
|
3496
|
-
v(s(
|
|
3503
|
+
v(s(c), A({
|
|
3497
3504
|
is: e(r)
|
|
3498
3505
|
}, o(r)), null, 16, ["is"])
|
|
3499
3506
|
], 2))), 128))
|
|
3500
3507
|
]),
|
|
3501
|
-
n.model.needToCollapse ? (a(), h(s(
|
|
3508
|
+
n.model.needToCollapse ? (a(), h(s(c), {
|
|
3502
3509
|
key: 0,
|
|
3503
3510
|
is: "svc-action-button",
|
|
3504
3511
|
text: n.model.getButtonText(),
|
|
@@ -3508,14 +3515,14 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3508
3515
|
])
|
|
3509
3516
|
]));
|
|
3510
3517
|
}
|
|
3511
|
-
}),
|
|
3518
|
+
}), nl = /* @__PURE__ */ g({
|
|
3512
3519
|
__name: "QuestionDropdown",
|
|
3513
3520
|
props: {
|
|
3514
3521
|
componentName: {},
|
|
3515
3522
|
componentData: {}
|
|
3516
3523
|
},
|
|
3517
|
-
setup(
|
|
3518
|
-
const t =
|
|
3524
|
+
setup(u) {
|
|
3525
|
+
const t = u, e = () => new Ve(
|
|
3519
3526
|
t.componentData.data,
|
|
3520
3527
|
t.componentData.element,
|
|
3521
3528
|
null
|
|
@@ -3528,14 +3535,14 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3528
3535
|
"adorner-component": "svc-dropdown-question-adorner"
|
|
3529
3536
|
}, null, 8, ["element", "component-name", "component-data"]));
|
|
3530
3537
|
}
|
|
3531
|
-
}),
|
|
3538
|
+
}), al = { class: "svc-question__adorner" }, ll = { class: "svc-question__content svc-question__content--in-popup" }, il = { class: "svc-question__dropdown-choices" }, le = "survey-radiogroup-item", rl = /* @__PURE__ */ g({
|
|
3532
3539
|
__name: "CellQuestionDropdown",
|
|
3533
3540
|
props: {
|
|
3534
3541
|
componentName: {},
|
|
3535
3542
|
componentData: {}
|
|
3536
3543
|
},
|
|
3537
|
-
setup(
|
|
3538
|
-
const t =
|
|
3544
|
+
setup(u) {
|
|
3545
|
+
const t = u, e = k(
|
|
3539
3546
|
() => t.componentData.element
|
|
3540
3547
|
), o = (i) => e.value.getItemValueWrapperComponentName(i) || le, n = (i) => ({
|
|
3541
3548
|
componentName: le,
|
|
@@ -3545,15 +3552,15 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3545
3552
|
data: e.value.getItemValueWrapperComponentData(i)
|
|
3546
3553
|
}
|
|
3547
3554
|
});
|
|
3548
|
-
return T(() => e.value), (i, r) => (a(), l("div",
|
|
3549
|
-
d("div",
|
|
3550
|
-
v(s(
|
|
3551
|
-
d("div",
|
|
3555
|
+
return T(() => e.value), (i, r) => (a(), l("div", al, [
|
|
3556
|
+
d("div", ll, [
|
|
3557
|
+
v(s(c), A({ is: i.componentName }, i.componentData), null, 16, ["is"]),
|
|
3558
|
+
d("div", il, [
|
|
3552
3559
|
(a(!0), l(w, null, V(e.value.visibleChoices, (m) => (a(), l("div", {
|
|
3553
3560
|
key: m.value,
|
|
3554
3561
|
class: "svc-question__dropdown-choice"
|
|
3555
3562
|
}, [
|
|
3556
|
-
v(s(
|
|
3563
|
+
v(s(c), A({
|
|
3557
3564
|
is: o(m)
|
|
3558
3565
|
}, n(m)), null, 16, ["is"])
|
|
3559
3566
|
]))), 128))
|
|
@@ -3561,25 +3568,25 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3561
3568
|
])
|
|
3562
3569
|
]));
|
|
3563
3570
|
}
|
|
3564
|
-
}),
|
|
3571
|
+
}), dl = ["data-sv-drop-target-survey-element"], cl = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--left" }, null, -1), ul = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--right" }, null, -1), pl = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--top" }, null, -1), vl = /* @__PURE__ */ d("div", { class: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }, null, -1), ml = { class: "svc-widget__content" }, _l = {
|
|
3565
3572
|
key: 1,
|
|
3566
3573
|
class: "svc-panel__placeholder_frame"
|
|
3567
|
-
},
|
|
3574
|
+
}, gl = /* @__PURE__ */ d("div", {
|
|
3568
3575
|
class: "svc-panel__placeholder",
|
|
3569
3576
|
"data-bind": "text: placeholderText"
|
|
3570
|
-
}, null, -1),
|
|
3571
|
-
|
|
3572
|
-
],
|
|
3577
|
+
}, null, -1), bl = [
|
|
3578
|
+
gl
|
|
3579
|
+
], yl = { class: "svc-question__content-actions" }, hl = {
|
|
3573
3580
|
key: 0,
|
|
3574
3581
|
class: "svc-panel__placeholder_frame"
|
|
3575
|
-
},
|
|
3582
|
+
}, ql = { class: "svc-panel__placeholder" }, Cl = /* @__PURE__ */ g({
|
|
3576
3583
|
__name: "CustomWidget",
|
|
3577
3584
|
props: {
|
|
3578
3585
|
componentName: {},
|
|
3579
3586
|
componentData: {}
|
|
3580
3587
|
},
|
|
3581
|
-
setup(
|
|
3582
|
-
const t =
|
|
3588
|
+
setup(u) {
|
|
3589
|
+
const t = u, e = I(), o = z(
|
|
3583
3590
|
() => new ee(
|
|
3584
3591
|
t.componentData.data,
|
|
3585
3592
|
t.componentData.element,
|
|
@@ -3609,28 +3616,28 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3609
3616
|
onClick: i[1] || (i[1] = (r) => s(o).select(s(o), r)),
|
|
3610
3617
|
"data-bind": "clickBubble: false"
|
|
3611
3618
|
}, [
|
|
3612
|
-
dl,
|
|
3613
3619
|
cl,
|
|
3614
3620
|
ul,
|
|
3615
3621
|
pl,
|
|
3622
|
+
vl,
|
|
3616
3623
|
s(o).allowDragging ? (a(), l("div", {
|
|
3617
3624
|
key: 0,
|
|
3618
3625
|
class: "svc-question__drag-area",
|
|
3619
3626
|
onPointerdown: i[0] || (i[0] = (r) => s(o).onPointerDown(r))
|
|
3620
3627
|
}, [
|
|
3621
|
-
v(s(
|
|
3628
|
+
v(s(c), {
|
|
3622
3629
|
is: "sv-svg-icon",
|
|
3623
3630
|
class: "svc-question__drag-element",
|
|
3624
3631
|
iconName: "icon-drag-area-indicator_24x16",
|
|
3625
3632
|
size: "auto"
|
|
3626
3633
|
})
|
|
3627
3634
|
], 32)) : p("", !0),
|
|
3628
|
-
d("div",
|
|
3629
|
-
v(s(
|
|
3635
|
+
d("div", ml, [
|
|
3636
|
+
v(s(c), A({ is: n.componentName }, n.componentData), null, 16, ["is"])
|
|
3630
3637
|
]),
|
|
3631
|
-
s(o).isEmptyElement ? (a(), l("div",
|
|
3632
|
-
d("div",
|
|
3633
|
-
v(s(
|
|
3638
|
+
s(o).isEmptyElement ? (a(), l("div", _l, bl)) : p("", !0),
|
|
3639
|
+
d("div", yl, [
|
|
3640
|
+
v(s(c), {
|
|
3634
3641
|
is: "sv-action-bar",
|
|
3635
3642
|
model: s(o).actionContainer,
|
|
3636
3643
|
handleClick: !1
|
|
@@ -3640,24 +3647,24 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3640
3647
|
[s(N)]
|
|
3641
3648
|
]) : p("", !0),
|
|
3642
3649
|
s(o).element.isInteractiveDesignElement ? p("", !0) : (a(), l(w, { key: 1 }, [
|
|
3643
|
-
v(s(
|
|
3644
|
-
s(o).isEmptyElement ? (a(), l("div",
|
|
3645
|
-
d("div",
|
|
3650
|
+
v(s(c), A({ is: n.componentName }, n.componentData), null, 16, ["is"]),
|
|
3651
|
+
s(o).isEmptyElement ? (a(), l("div", hl, [
|
|
3652
|
+
d("div", ql, $(s(o).placeholderText), 1)
|
|
3646
3653
|
])) : p("", !0)
|
|
3647
3654
|
], 64))
|
|
3648
|
-
], 42,
|
|
3655
|
+
], 42, dl)) : p("", !0);
|
|
3649
3656
|
}
|
|
3650
|
-
}),
|
|
3657
|
+
}), kl = { class: "svc-carry-forward-panel-wrapper" }, $l = { class: "svc-carry-forward-panel" }, fl = { class: "svc-carry-forward-panel__link" }, wl = /* @__PURE__ */ g({
|
|
3651
3658
|
__name: "QuestionBanner",
|
|
3652
3659
|
props: {
|
|
3653
3660
|
model: {}
|
|
3654
3661
|
},
|
|
3655
|
-
setup(
|
|
3656
|
-
return (t, e) => (a(), l("div",
|
|
3657
|
-
d("div",
|
|
3662
|
+
setup(u) {
|
|
3663
|
+
return (t, e) => (a(), l("div", kl, [
|
|
3664
|
+
d("div", $l, [
|
|
3658
3665
|
d("span", null, $(t.model.text) + $(" "), 1),
|
|
3659
|
-
d("span",
|
|
3660
|
-
v(s(
|
|
3666
|
+
d("span", fl, [
|
|
3667
|
+
v(s(c), {
|
|
3661
3668
|
is: "svc-action-button",
|
|
3662
3669
|
text: t.model.actionText,
|
|
3663
3670
|
click: t.model.onClick.bind(t.model)
|
|
@@ -3667,27 +3674,27 @@ const Nt = /* @__PURE__ */ g({
|
|
|
3667
3674
|
]));
|
|
3668
3675
|
}
|
|
3669
3676
|
});
|
|
3670
|
-
function
|
|
3671
|
-
|
|
3677
|
+
function Tl(u, t, e) {
|
|
3678
|
+
u(t, e);
|
|
3672
3679
|
}
|
|
3673
|
-
function pe(
|
|
3674
|
-
const t =
|
|
3680
|
+
function pe(u) {
|
|
3681
|
+
const t = Tl.bind(
|
|
3675
3682
|
void 0,
|
|
3676
|
-
|
|
3683
|
+
u
|
|
3677
3684
|
);
|
|
3678
|
-
t("svc-tabbed-menu", Je), t("svc-tabbed-menu-item-wrapper", Xe), 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", po), t("svc-tab-control", ho), t("svc-tab-button", fo), t("svc-property-grid-placeholder", So), t("svc-side-bar-header", Vo), t("svc-side-bar-property-grid-header", Ho), t("svc-property-grid", uo), t("svc-object-selector", co), t("svc-search",
|
|
3685
|
+
t("svc-tabbed-menu", Je), t("svc-tabbed-menu-item-wrapper", Xe), 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", po), t("svc-tab-control", ho), t("svc-tab-button", fo), t("svc-property-grid-placeholder", So), t("svc-side-bar-header", Vo), t("svc-side-bar-property-grid-header", Ho), t("svc-property-grid", uo), t("svc-object-selector", co), t("svc-search", Oa), t("svc-switcher", os), t("svc-action-button", Jo), t("svc-question-error", Oo), t("survey-embeddedsurvey", Gs), t("sv-logic-operator", Qs), t("survey-linkvalue", Ws), t("survey-color", ct), t("color-item", ut), t("sv-boolean-switch", Nt), t("survey-fileedit", gt), t("survey-spinedit", qt), t("survey-textwithreset", ne), t("survey-commentwithreset", ne), t("survey-widget", Q), t("survey-simulator", ns), t("svc-tab-preview", cs), t("svc-complete-page", ps), t("survey-results", $s), t("survey-results-table-row", ws), t("json-error-item", zs), t("svc-tab-json-editor-textarea", Ps), t("svc-tab-json-editor-ace", Ms), t("svc-tab-translation", Ys), t("sd-translation-line-skeleton", tt), t("svc-translate-from-action", nt), t("svc-tab-logic", Us), t("svc-tab-theme", it), t("svc-toolbox", Kt), t("svc-toolbox-list", xt), t("svc-toolbox-category", Yt), t("svc-toolbox-tool", Ht), t("svc-toolbox-item", Wt), t("svc-toolbox-item-group", jt), t(Ae, Vt), t("svc-tab-designer", pn), t("svc-page-navigator", Ga), t("svc-page-navigator-item", el), t("svc-page", kn), t("svc-row", Mn), t("svc-add-new-question-btn", fn), t("svc-add-question-type-selector", Tn), t("svc-question", ae), t("svc-rating-question", ae), t("svc-rating-question-content", jn), t("svc-image-question", Fn), t("svc-image-question-adorner", Gn), t("svc-matrix-cell", Zn), t("svc-cell-question", xn), t("svc-cell-dropdown-question", rl), t("svc-question-editor-content", Ia), t("svc-logo-image", za), t("svc-panel", ma), t("svc-item-value", ha), t("svc-image-item-value", Ba), t("svc-dropdown-question", nl), t("svc-dropdown-question-adorner", tl), t("svc-widget-question", Cl), t("svc-question-banner", wl);
|
|
3679
3686
|
}
|
|
3680
3687
|
pe(
|
|
3681
|
-
(
|
|
3688
|
+
(u, t) => ie.Instance.registerComponent(u, t)
|
|
3682
3689
|
);
|
|
3683
|
-
const
|
|
3684
|
-
install(
|
|
3685
|
-
|
|
3686
|
-
|
|
3690
|
+
const Bl = {
|
|
3691
|
+
install(u) {
|
|
3692
|
+
u.component("SurveyCreatorComponent", je), pe((t, e) => {
|
|
3693
|
+
u.component(t, e), ie.Instance.registerComponent(t, t);
|
|
3687
3694
|
});
|
|
3688
3695
|
}
|
|
3689
3696
|
};
|
|
3690
3697
|
export {
|
|
3691
3698
|
je as SurveyCreatorComponent,
|
|
3692
|
-
|
|
3699
|
+
Bl as surveyCreatorPlugin
|
|
3693
3700
|
};
|