survey-vue3-ui 1.9.104 → 1.9.106
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 +1 -1
- package/survey-vue3-ui.es.js +413 -411
- package/survey-vue3-ui.umd.js +1 -1
- package/types/Errors.vue.d.ts +1 -1
- package/types/MultipletextItem.vue.d.ts +5 -5
- package/types/components/action-bar/ActionBar.vue.d.ts +6 -0
- package/types/components/progress/Progress.vue.d.ts +6 -0
package/survey-vue3-ui.es.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { shallowReactive as me, watch as
|
|
2
|
-
import { Base as ke, RendererFactory as X, DropdownListModel as fe, Helpers as Ie, DropdownMultiSelectListModel as we,
|
|
1
|
+
import { shallowReactive as me, watch as Z, onBeforeUnmount as U, onMounted as A, ref as S, shallowRef as F, triggerRef as oe, unref as b, isRef as ce, defineComponent as C, computed as T, onUpdated as G, resolveComponent as q, openBlock as t, createElementBlock as u, normalizeClass as l, createVNode as h, createCommentVNode as m, Fragment as w, renderList as R, createBlock as y, createElementVNode as p, normalizeStyle as $, onUnmounted as V, withDirectives as D, resolveDynamicComponent as N, vShow as H, toDisplayString as I, vModelCheckbox as z, vModelRadio as Y, resolveDirective as _, vModelSelect as pe, vModelText as ve, getCurrentInstance as x, withCtx as qe, createStaticVNode as ye, normalizeProps as ge, guardReactiveProps as Ce, toRaw as he, Teleport as be } from "vue";
|
|
2
|
+
import { Base as ke, RendererFactory as X, DropdownListModel as fe, Helpers as Ie, DropdownMultiSelectListModel as we, doKey2ClickUp as de, createSvg as Se, ActionDropdownViewModel as Te, getActionDropdownButtonTarget as Re, createPopupViewModel as te, SurveyProgressModel as ie, SurveyProgressButtonsModel as $e, TOCModel as Be, SvgRegistry as Le, PopupSurveyModel as De, settings as O, createDialogOptions as Pe, createPopupModalViewModel as Me, doKey2ClickDown as Ne, doKey2ClickBlur as He } from "survey-core";
|
|
3
3
|
ke.createPropertiesHash = () => me({});
|
|
4
4
|
function Ae(r) {
|
|
5
5
|
return !r || r.__vueImplemented ? !1 : (r.createArrayCoreHandler = (o, n) => {
|
|
6
|
-
const s = F(
|
|
7
|
-
return
|
|
8
|
-
|
|
9
|
-
}, o[n] =
|
|
6
|
+
const s = [], e = F(s);
|
|
7
|
+
return s.onArrayChanged = () => {
|
|
8
|
+
oe(e);
|
|
9
|
+
}, o[n] = e, b(o[n]);
|
|
10
10
|
}, r.iteratePropertiesHash((o, n) => {
|
|
11
11
|
if (Array.isArray(o[n])) {
|
|
12
12
|
const s = F(o[n]);
|
|
13
13
|
o[n].onArrayChanged = () => {
|
|
14
|
-
|
|
14
|
+
oe(s);
|
|
15
15
|
}, o[n] = s;
|
|
16
16
|
}
|
|
17
17
|
}), r.getPropertyValueCoreHandler = (o, n) => b(o[n]), r.setPropertyValueCoreHandler = (o, n, s) => {
|
|
18
18
|
ce(o[n]) ? o[n].value = s : o[n] = s;
|
|
19
19
|
}, r.__vueImplemented = !0, !0);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function le(r, o) {
|
|
22
22
|
!r || !o || (r.iteratePropertiesHash((n, s) => {
|
|
23
23
|
n[s] = b(n[s]), Array.isArray(n[s]) && (n[s].onArrayChanged = void 0);
|
|
24
24
|
}), delete r.__vueImplemented, r.createArrayCoreHandler = void 0, r.getPropertyValueCoreHandler = void 0, r.setPropertyValueCoreHandler = void 0);
|
|
25
25
|
}
|
|
26
26
|
function B(r, o, n) {
|
|
27
27
|
let s = !1;
|
|
28
|
-
const e =
|
|
28
|
+
const e = Z(
|
|
29
29
|
r,
|
|
30
30
|
(i, a) => {
|
|
31
|
-
o && o(i), a && (
|
|
31
|
+
o && o(i), a && (le(a, s), n && n(a)), s = Ae(i);
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
immediate: !0
|
|
@@ -36,22 +36,22 @@ function B(r, o, n) {
|
|
|
36
36
|
);
|
|
37
37
|
U(() => {
|
|
38
38
|
const i = r();
|
|
39
|
-
i && (n && n(r()),
|
|
39
|
+
i && (n && n(r()), le(i, s), e());
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
function M(r, o, n, s) {
|
|
43
|
-
B(() => r.question, n, s),
|
|
43
|
+
B(() => r.question, n, s), A(() => {
|
|
44
44
|
r.question && r.question.afterRenderQuestionElement(o.value);
|
|
45
45
|
}), U(() => {
|
|
46
46
|
r.question.beforeDestroyQuestionElement(o.value);
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
function W(r) {
|
|
50
|
-
const o =
|
|
50
|
+
const o = S(), n = (e) => {
|
|
51
51
|
o.value = e.renderedHtml, e.onChanged = () => {
|
|
52
52
|
o.value = e.renderedHtml;
|
|
53
53
|
};
|
|
54
|
-
}, s =
|
|
54
|
+
}, s = Z(
|
|
55
55
|
r,
|
|
56
56
|
(e, i) => {
|
|
57
57
|
i && (i.onChanged = () => {
|
|
@@ -66,7 +66,7 @@ function W(r) {
|
|
|
66
66
|
function ee(r) {
|
|
67
67
|
return r.customWidget ? "survey-customwidget" : r.isDefaultRendering && r.isDefaultRendering() || r.isPanel ? "survey-" + r.getTemplate() : r.getComponentName();
|
|
68
68
|
}
|
|
69
|
-
const
|
|
69
|
+
const Ee = /* @__PURE__ */ C({
|
|
70
70
|
__name: "Page",
|
|
71
71
|
props: {
|
|
72
72
|
survey: {},
|
|
@@ -74,12 +74,12 @@ const Oe = /* @__PURE__ */ C({
|
|
|
74
74
|
css: {}
|
|
75
75
|
},
|
|
76
76
|
setup(r) {
|
|
77
|
-
const o = r, n =
|
|
77
|
+
const o = r, n = S(null);
|
|
78
78
|
B(() => o.page);
|
|
79
|
-
const s =
|
|
80
|
-
return
|
|
79
|
+
const s = T(() => o.page._showDescription), e = T(() => o.page.rows);
|
|
80
|
+
return A(() => {
|
|
81
81
|
o.survey && o.survey.afterRenderPage(n.value);
|
|
82
|
-
}),
|
|
82
|
+
}), G(() => {
|
|
83
83
|
o.survey.afterRenderPage(n.value);
|
|
84
84
|
}), (i, a) => {
|
|
85
85
|
const d = q("survey-element-title"), c = q("survey-string"), v = q("survey-row");
|
|
@@ -100,7 +100,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
100
100
|
locString: i.page.locDescription
|
|
101
101
|
}, null, 8, ["locString"])
|
|
102
102
|
], 2)) : m("", !0),
|
|
103
|
-
(t(!0), u(w, null,
|
|
103
|
+
(t(!0), u(w, null, R(e.value, (f, g) => (t(), u(w, null, [
|
|
104
104
|
f.visible ? (t(), y(v, {
|
|
105
105
|
key: i.page.id + "_" + g,
|
|
106
106
|
row: f,
|
|
@@ -111,14 +111,14 @@ const Oe = /* @__PURE__ */ C({
|
|
|
111
111
|
], 2);
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
|
-
}), Ve = ["src", "width", "height", "alt"],
|
|
114
|
+
}), Ve = ["src", "width", "height", "alt"], Oe = ["src", "width", "height", "alt"], Fe = /* @__PURE__ */ C({
|
|
115
115
|
__name: "Header",
|
|
116
116
|
props: {
|
|
117
117
|
survey: {}
|
|
118
118
|
},
|
|
119
119
|
setup(r) {
|
|
120
|
-
const o = r, n =
|
|
121
|
-
return
|
|
120
|
+
const o = r, n = S(), s = W(() => o.survey.locLogo);
|
|
121
|
+
return A(() => {
|
|
122
122
|
var e = n.value;
|
|
123
123
|
e && o.survey && o.survey.afterRenderHeader(e);
|
|
124
124
|
}), (e, i) => {
|
|
@@ -179,7 +179,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
179
179
|
width: e.survey.renderedStyleLogoWidth,
|
|
180
180
|
height: e.survey.renderedStyleLogoHeight
|
|
181
181
|
})
|
|
182
|
-
}, null, 14,
|
|
182
|
+
}, null, 14, Oe)
|
|
183
183
|
], 2)) : m("", !0),
|
|
184
184
|
p("div", {
|
|
185
185
|
class: l(e.survey.css.headerClose)
|
|
@@ -187,7 +187,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
187
187
|
], 2)) : m("", !0);
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
|
-
}),
|
|
190
|
+
}), We = /* @__PURE__ */ C({
|
|
191
191
|
__name: "Row",
|
|
192
192
|
props: {
|
|
193
193
|
row: {},
|
|
@@ -195,17 +195,17 @@ const Oe = /* @__PURE__ */ C({
|
|
|
195
195
|
survey: {}
|
|
196
196
|
},
|
|
197
197
|
setup(r) {
|
|
198
|
-
const o = r, n =
|
|
198
|
+
const o = r, n = T(
|
|
199
199
|
() => o.row.visibleElements
|
|
200
|
-
), s =
|
|
201
|
-
return B(() => o.row),
|
|
200
|
+
), s = S();
|
|
201
|
+
return B(() => o.row), A(() => {
|
|
202
202
|
if (o.row && !o.row.isNeedRender) {
|
|
203
203
|
const e = s.value;
|
|
204
204
|
setTimeout(() => {
|
|
205
205
|
o.row.startLazyRendering(e);
|
|
206
206
|
}, 10);
|
|
207
207
|
}
|
|
208
|
-
}),
|
|
208
|
+
}), V(() => {
|
|
209
209
|
const e = o.row;
|
|
210
210
|
e && (e.isNeedRender = !o.row.isLazyRendering());
|
|
211
211
|
}), (e, i) => {
|
|
@@ -215,7 +215,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
215
215
|
ref_key: "root",
|
|
216
216
|
ref: s
|
|
217
217
|
}, [
|
|
218
|
-
(t(!0), u(w, null,
|
|
218
|
+
(t(!0), u(w, null, R(n.value, (c) => (t(), u("div", {
|
|
219
219
|
style: $(c.rootStyle)
|
|
220
220
|
}, [
|
|
221
221
|
c.isPanel ? m("", !0) : (t(), y(a, {
|
|
@@ -235,7 +235,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
235
235
|
], 2);
|
|
236
236
|
};
|
|
237
237
|
}
|
|
238
|
-
}),
|
|
238
|
+
}), ze = ["id", "role", "aria-required", "aria-invalid", "aria-labelledby", "data-name"], Ue = /* @__PURE__ */ C({
|
|
239
239
|
__name: "Element",
|
|
240
240
|
props: {
|
|
241
241
|
survey: {},
|
|
@@ -244,8 +244,8 @@ const Oe = /* @__PURE__ */ C({
|
|
|
244
244
|
css: {}
|
|
245
245
|
},
|
|
246
246
|
setup(r) {
|
|
247
|
-
const o = r, n =
|
|
248
|
-
return B(() => o.element),
|
|
247
|
+
const o = r, n = S(null), s = T(() => !o.element.isPanel && o.element.showErrorOnTop), e = T(() => !o.element.isPanel && o.element.showErrorOnBottom), i = (d) => d.customWidget ? "survey-customwidget" : d.getType() === "panel" || d.isDefaultRendering() ? "survey-" + d.getTemplate() : d.getComponentName(), a = (d) => d.cssContent;
|
|
248
|
+
return B(() => o.element), A(() => {
|
|
249
249
|
o.element.isPanel || o.element.afterRender(n.value);
|
|
250
250
|
}), (d, c) => {
|
|
251
251
|
const v = q("survey-errors"), f = q("survey-element-header"), g = q("survey-string"), k = q("survey-question-comment");
|
|
@@ -304,13 +304,8 @@ const Oe = /* @__PURE__ */ C({
|
|
|
304
304
|
element: d.element,
|
|
305
305
|
location: "bottom"
|
|
306
306
|
}, null, 8, ["element"])) : m("", !0),
|
|
307
|
-
!d.element.isPanel && d.element.isErrorsModeTooltip ? (t(), y(v, {
|
|
308
|
-
key: 4,
|
|
309
|
-
element: d.element,
|
|
310
|
-
location: "tooltip"
|
|
311
|
-
}, null, 8, ["element"])) : m("", !0),
|
|
312
307
|
!d.element.isPanel && d.element.hasDescriptionUnderInput ? (t(), u("div", {
|
|
313
|
-
key:
|
|
308
|
+
key: 4,
|
|
314
309
|
class: l(d.element.cssClasses.descriptionUnderInput)
|
|
315
310
|
}, [
|
|
316
311
|
h(g, {
|
|
@@ -330,14 +325,14 @@ const Oe = /* @__PURE__ */ C({
|
|
|
330
325
|
element: d.element,
|
|
331
326
|
location: "bottom"
|
|
332
327
|
}, null, 8, ["element"])) : m("", !0)
|
|
333
|
-
], 42,
|
|
328
|
+
], 42, ze)) : d.element.skeletonComponentName ? (t(), y(N(d.element.skeletonComponentName), {
|
|
334
329
|
key: 1,
|
|
335
330
|
element: d.element,
|
|
336
331
|
css: d.css
|
|
337
332
|
}, null, 8, ["element", "css"])) : m("", !0);
|
|
338
333
|
};
|
|
339
334
|
}
|
|
340
|
-
}),
|
|
335
|
+
}), Ke = ["id"], je = ["id"], Qe = /* @__PURE__ */ C({
|
|
341
336
|
__name: "Panel",
|
|
342
337
|
props: {
|
|
343
338
|
question: {},
|
|
@@ -345,14 +340,14 @@ const Oe = /* @__PURE__ */ C({
|
|
|
345
340
|
css: {}
|
|
346
341
|
},
|
|
347
342
|
setup(r) {
|
|
348
|
-
const o = r, n =
|
|
349
|
-
return B(() => o.question),
|
|
343
|
+
const o = r, n = S(!1), s = S(null), e = T(() => o.question.rows), i = T(() => o.question.survey), a = T(() => n.value);
|
|
344
|
+
return B(() => o.question), A(() => {
|
|
350
345
|
o.question.survey && o.question.survey.afterRenderPanel(o.question, s.value), n.value = o.question.isCollapsed;
|
|
351
346
|
const d = o.question;
|
|
352
347
|
d.stateChangedCallback = () => {
|
|
353
348
|
n.value = o.question.isCollapsed;
|
|
354
349
|
};
|
|
355
|
-
}),
|
|
350
|
+
}), V(() => {
|
|
356
351
|
const d = o.question;
|
|
357
352
|
d.stateChangedCallback = null;
|
|
358
353
|
}), (d, c) => {
|
|
@@ -383,7 +378,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
383
378
|
style: $({ paddingLeft: d.question.innerPaddingLeft }),
|
|
384
379
|
class: l(d.question.cssClasses.panel.content)
|
|
385
380
|
}, [
|
|
386
|
-
(t(!0), u(w, null,
|
|
381
|
+
(t(!0), u(w, null, R(e.value, (P, L) => (t(), u(w, null, [
|
|
387
382
|
P.visible ? (t(), y(g, {
|
|
388
383
|
key: d.question.id + "_" + L,
|
|
389
384
|
row: P,
|
|
@@ -394,11 +389,11 @@ const Oe = /* @__PURE__ */ C({
|
|
|
394
389
|
h(k, {
|
|
395
390
|
model: d.question.getFooterToolbar()
|
|
396
391
|
}, null, 8, ["model"])
|
|
397
|
-
], 14,
|
|
398
|
-
], 10,
|
|
392
|
+
], 14, je))
|
|
393
|
+
], 10, Ke)) : m("", !0);
|
|
399
394
|
};
|
|
400
395
|
}
|
|
401
|
-
}),
|
|
396
|
+
}), Ze = /* @__PURE__ */ C({
|
|
402
397
|
__name: "ElementHeader",
|
|
403
398
|
props: {
|
|
404
399
|
element: {},
|
|
@@ -435,7 +430,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
435
430
|
], 2);
|
|
436
431
|
};
|
|
437
432
|
}
|
|
438
|
-
}),
|
|
433
|
+
}), Ge = /* @__PURE__ */ C({
|
|
439
434
|
__name: "String",
|
|
440
435
|
props: {
|
|
441
436
|
locString: {}
|
|
@@ -445,10 +440,10 @@ const Oe = /* @__PURE__ */ C({
|
|
|
445
440
|
locString: o.locString.renderAsData
|
|
446
441
|
}, null, 8, ["locString"]));
|
|
447
442
|
}
|
|
448
|
-
}),
|
|
443
|
+
}), Xe = ["innerHTML"], Je = {
|
|
449
444
|
key: 1,
|
|
450
445
|
class: "sv-string-viewer"
|
|
451
|
-
},
|
|
446
|
+
}, Ye = /* @__PURE__ */ C({
|
|
452
447
|
__name: "StringViewer",
|
|
453
448
|
props: {
|
|
454
449
|
locString: {}
|
|
@@ -459,9 +454,9 @@ const Oe = /* @__PURE__ */ C({
|
|
|
459
454
|
key: 0,
|
|
460
455
|
class: "sv-string-viewer",
|
|
461
456
|
innerHTML: b(n)
|
|
462
|
-
}, null, 8,
|
|
457
|
+
}, null, 8, Xe)) : (t(), u("span", Je, I(b(n)), 1));
|
|
463
458
|
}
|
|
464
|
-
}),
|
|
459
|
+
}), _e = ["innerHTML"], xe = /* @__PURE__ */ C({
|
|
465
460
|
__name: "StringEditor",
|
|
466
461
|
props: {
|
|
467
462
|
locString: {}
|
|
@@ -480,7 +475,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
480
475
|
innerHTML: e.locString.renderedHtml,
|
|
481
476
|
onBlur: n,
|
|
482
477
|
onClick: s
|
|
483
|
-
}, null, 40,
|
|
478
|
+
}, null, 40, _e)) : (t(), u("span", {
|
|
484
479
|
key: 1,
|
|
485
480
|
class: "sv-string-editor",
|
|
486
481
|
contenteditable: "true",
|
|
@@ -488,7 +483,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
488
483
|
onClick: s
|
|
489
484
|
}, I(e.locString.renderedHtml), 33));
|
|
490
485
|
}
|
|
491
|
-
}),
|
|
486
|
+
}), es = ["id"], ss = /* @__PURE__ */ C({
|
|
492
487
|
__name: "Skeleton",
|
|
493
488
|
props: {
|
|
494
489
|
element: {}
|
|
@@ -498,15 +493,15 @@ const Oe = /* @__PURE__ */ C({
|
|
|
498
493
|
return B(() => o.element), (n, s) => (t(), u("div", {
|
|
499
494
|
class: "sv-skeleton-element",
|
|
500
495
|
id: n.element.id
|
|
501
|
-
}, null, 8,
|
|
496
|
+
}, null, 8, es));
|
|
502
497
|
}
|
|
503
|
-
}),
|
|
498
|
+
}), ns = ["id"], os = ["value"], ts = /* @__PURE__ */ C({
|
|
504
499
|
__name: "Text",
|
|
505
500
|
props: {
|
|
506
501
|
question: {}
|
|
507
502
|
},
|
|
508
503
|
setup(r) {
|
|
509
|
-
const o = r, n =
|
|
504
|
+
const o = r, n = S(null);
|
|
510
505
|
return M(o, n), (s, e) => {
|
|
511
506
|
const i = q("survey-text-input");
|
|
512
507
|
return s.question.isReadOnlyRenderDiv() ? (t(), u("div", {
|
|
@@ -522,8 +517,8 @@ const Oe = /* @__PURE__ */ C({
|
|
|
522
517
|
p("datalist", {
|
|
523
518
|
id: s.question.dataListId
|
|
524
519
|
}, [
|
|
525
|
-
(t(!0), u(w, null,
|
|
526
|
-
], 8,
|
|
520
|
+
(t(!0), u(w, null, R(s.question.dataList, (a) => (t(), u("option", { value: a }, null, 8, os))), 256))
|
|
521
|
+
], 8, ns)
|
|
527
522
|
], 512)) : (t(), y(i, {
|
|
528
523
|
key: 2,
|
|
529
524
|
question: s.question,
|
|
@@ -532,7 +527,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
532
527
|
}, null, 8, ["question"]));
|
|
533
528
|
};
|
|
534
529
|
}
|
|
535
|
-
}),
|
|
530
|
+
}), is = ["disabled", "type", "maxlength", "min", "max", "step", "size", "id", "list", "placeholder", "autocomplete", "value", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], ls = { key: 1 }, rs = ["disabled", "type", "maxlength", "min", "max", "step", "size", "id", "list", "placeholder", "autocomplete", "value", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], as = /* @__PURE__ */ C({
|
|
536
531
|
__name: "TextInput",
|
|
537
532
|
props: {
|
|
538
533
|
question: {}
|
|
@@ -540,10 +535,10 @@ const Oe = /* @__PURE__ */ C({
|
|
|
540
535
|
setup(r) {
|
|
541
536
|
const o = r;
|
|
542
537
|
B(() => o.question);
|
|
543
|
-
const n =
|
|
538
|
+
const n = T(() => o.question.inputStyle);
|
|
544
539
|
return (s, e) => {
|
|
545
540
|
const i = q("sv-character-counter");
|
|
546
|
-
return s.question.getMaxLength() ? (t(), u("div",
|
|
541
|
+
return s.question.getMaxLength() ? (t(), u("div", ls, [
|
|
547
542
|
p("input", {
|
|
548
543
|
disabled: s.question.isInputReadOnly,
|
|
549
544
|
class: l(s.question.getControlClass()),
|
|
@@ -569,7 +564,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
569
564
|
"aria-label": s.question.a11y_input_ariaLabel,
|
|
570
565
|
"aria-invalid": s.question.a11y_input_ariaInvalid,
|
|
571
566
|
"aria-describedby": s.question.a11y_input_ariaDescribedBy
|
|
572
|
-
}, null, 46,
|
|
567
|
+
}, null, 46, rs),
|
|
573
568
|
h(i, {
|
|
574
569
|
counter: s.question.characterCounter,
|
|
575
570
|
remainingCharacterCounter: s.question.cssClasses.remainingCharacterCounter
|
|
@@ -601,34 +596,34 @@ const Oe = /* @__PURE__ */ C({
|
|
|
601
596
|
"aria-labelledby": s.question.a11y_input_ariaLabelledBy,
|
|
602
597
|
"aria-invalid": s.question.a11y_input_ariaInvalid,
|
|
603
598
|
"aria-describedby": s.question.a11y_input_ariaDescribedBy
|
|
604
|
-
}, null, 46,
|
|
599
|
+
}, null, 46, is));
|
|
605
600
|
};
|
|
606
601
|
}
|
|
607
|
-
}),
|
|
602
|
+
}), us = /* @__PURE__ */ p("legend", {
|
|
608
603
|
role: "presentation",
|
|
609
604
|
class: "sv-hidden"
|
|
610
|
-
}, null, -1),
|
|
605
|
+
}, null, -1), ds = /* @__PURE__ */ C({
|
|
611
606
|
__name: "Checkbox",
|
|
612
607
|
props: {
|
|
613
608
|
question: {}
|
|
614
609
|
},
|
|
615
610
|
setup(r) {
|
|
616
|
-
const o = r, n =
|
|
611
|
+
const o = r, n = S(null);
|
|
617
612
|
return M(o, n), (s, e) => {
|
|
618
613
|
const i = q("survey-checkbox-item"), a = q("survey-other-choice");
|
|
619
614
|
return t(), u("fieldset", {
|
|
620
615
|
class: l(s.question.getSelectBaseRootCss()),
|
|
621
616
|
role: "presentation"
|
|
622
617
|
}, [
|
|
623
|
-
|
|
624
|
-
s.question.hasHeadItems ? (t(!0), u(w, { key: 0 },
|
|
618
|
+
us,
|
|
619
|
+
s.question.hasHeadItems ? (t(!0), u(w, { key: 0 }, R(s.question.headItems, (d, c) => (t(), y(i, {
|
|
625
620
|
key: d.value,
|
|
626
621
|
class: l(s.question.getItemClass(d)),
|
|
627
622
|
question: s.question,
|
|
628
623
|
item: d,
|
|
629
624
|
index: "" + c
|
|
630
625
|
}, null, 8, ["class", "question", "item", "index"]))), 128)) : m("", !0),
|
|
631
|
-
!s.question.hasColumns && !s.question.blockedRow ? (t(!0), u(w, { key: 1 },
|
|
626
|
+
!s.question.hasColumns && !s.question.blockedRow ? (t(!0), u(w, { key: 1 }, R(s.question.bodyItems, (d, c) => (t(), y(i, {
|
|
632
627
|
key: d.value,
|
|
633
628
|
class: l(s.question.getItemClass(d)),
|
|
634
629
|
question: s.question,
|
|
@@ -639,7 +634,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
639
634
|
key: 2,
|
|
640
635
|
class: l(s.question.cssClasses.rootRow)
|
|
641
636
|
}, [
|
|
642
|
-
!s.question.hasColumns && s.question.blockedRow ? (t(!0), u(w, { key: 0 },
|
|
637
|
+
!s.question.hasColumns && s.question.blockedRow ? (t(!0), u(w, { key: 0 }, R(s.question.dataChoices, (d, c) => (t(), y(i, {
|
|
643
638
|
key: d.value,
|
|
644
639
|
class: l(s.question.getItemClass(d)),
|
|
645
640
|
question: s.question,
|
|
@@ -651,12 +646,12 @@ const Oe = /* @__PURE__ */ C({
|
|
|
651
646
|
key: 3,
|
|
652
647
|
class: l(s.question.cssClasses.rootMultiColumn)
|
|
653
648
|
}, [
|
|
654
|
-
(t(!0), u(w, null,
|
|
649
|
+
(t(!0), u(w, null, R(s.question.columns, (d, c) => (t(), u("div", {
|
|
655
650
|
key: c,
|
|
656
651
|
class: l(s.question.getColumnClass()),
|
|
657
652
|
role: "presentation"
|
|
658
653
|
}, [
|
|
659
|
-
(t(!0), u(w, null,
|
|
654
|
+
(t(!0), u(w, null, R(d, (v, f) => (t(), y(i, {
|
|
660
655
|
key: v.value,
|
|
661
656
|
class: l(s.question.getItemClass(v)),
|
|
662
657
|
question: s.question,
|
|
@@ -665,7 +660,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
665
660
|
}, null, 8, ["class", "question", "item", "index"]))), 128))
|
|
666
661
|
], 2))), 128))
|
|
667
662
|
], 2)) : m("", !0),
|
|
668
|
-
s.question.hasFootItems ? (t(!0), u(w, { key: 4 },
|
|
663
|
+
s.question.hasFootItems ? (t(!0), u(w, { key: 4 }, R(s.question.footItems, (d, c) => (t(), y(i, {
|
|
669
664
|
key: d.value,
|
|
670
665
|
class: l(s.question.getItemClass(d)),
|
|
671
666
|
question: s.question,
|
|
@@ -679,7 +674,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
679
674
|
], 2);
|
|
680
675
|
};
|
|
681
676
|
}
|
|
682
|
-
}),
|
|
677
|
+
}), ms = { role: "presentation" }, cs = ["aria-label"], ps = ["name", "value", "id", "disabled", "aria-describedby"], vs = ["name", "value", "id", "disabled", "aria-describedby"], qs = ["xlink:href"], ys = /* @__PURE__ */ C({
|
|
683
678
|
__name: "CheckboxItem",
|
|
684
679
|
props: {
|
|
685
680
|
question: {},
|
|
@@ -688,7 +683,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
688
683
|
hideLabel: { type: Boolean }
|
|
689
684
|
},
|
|
690
685
|
setup(r) {
|
|
691
|
-
const o = r, n =
|
|
686
|
+
const o = r, n = T({
|
|
692
687
|
get() {
|
|
693
688
|
return o.question.isAllSelected || "";
|
|
694
689
|
},
|
|
@@ -699,7 +694,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
699
694
|
});
|
|
700
695
|
return B(() => o.item), (s, e) => {
|
|
701
696
|
const i = q("survey-string");
|
|
702
|
-
return t(), u("div",
|
|
697
|
+
return t(), u("div", ms, [
|
|
703
698
|
p("label", {
|
|
704
699
|
class: l(s.question.getLabelClass(s.item)),
|
|
705
700
|
"aria-label": s.question.getAriaItemLabel(s.item)
|
|
@@ -715,7 +710,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
715
710
|
disabled: !s.question.getItemEnabled(s.item),
|
|
716
711
|
"aria-describedby": s.question.ariaDescribedBy,
|
|
717
712
|
class: l(s.question.cssClasses.itemControl)
|
|
718
|
-
}, null, 10,
|
|
713
|
+
}, null, 10, ps)), [
|
|
719
714
|
[z, n.value]
|
|
720
715
|
]) : m("", !0),
|
|
721
716
|
s.item != s.question.selectAllItem ? D((t(), u("input", {
|
|
@@ -729,7 +724,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
729
724
|
disabled: !s.question.getItemEnabled(s.item),
|
|
730
725
|
"aria-describedby": s.question.ariaDescribedBy,
|
|
731
726
|
class: l(s.question.cssClasses.itemControl)
|
|
732
|
-
}, null, 10,
|
|
727
|
+
}, null, 10, vs)), [
|
|
733
728
|
[z, s.question.renderedValue]
|
|
734
729
|
]) : m("", !0),
|
|
735
730
|
s.question.cssClasses.materialDecorator ? (t(), u("span", {
|
|
@@ -742,7 +737,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
742
737
|
}, [
|
|
743
738
|
p("use", {
|
|
744
739
|
"xlink:href": s.question.itemSvgIcon
|
|
745
|
-
}, null, 8,
|
|
740
|
+
}, null, 8, qs)
|
|
746
741
|
], 2)) : m("", !0)
|
|
747
742
|
], 2)) : m("", !0),
|
|
748
743
|
s.hideLabel ? m("", !0) : (t(), u("span", {
|
|
@@ -753,17 +748,17 @@ const Oe = /* @__PURE__ */ C({
|
|
|
753
748
|
locString: s.item.locText
|
|
754
749
|
}, null, 8, ["locString"])
|
|
755
750
|
], 2))
|
|
756
|
-
], 10,
|
|
751
|
+
], 10, cs)
|
|
757
752
|
]);
|
|
758
753
|
};
|
|
759
754
|
}
|
|
760
|
-
}),
|
|
755
|
+
}), gs = { key: 5 }, Cs = ["value"], hs = /* @__PURE__ */ C({
|
|
761
756
|
__name: "Radiogroup",
|
|
762
757
|
props: {
|
|
763
758
|
question: {}
|
|
764
759
|
},
|
|
765
760
|
setup(r) {
|
|
766
|
-
const o = r, n =
|
|
761
|
+
const o = r, n = S(null);
|
|
767
762
|
return M(o, n), (s, e) => {
|
|
768
763
|
const i = q("survey-radiogroup-item"), a = q("survey-other-choice");
|
|
769
764
|
return t(), u("fieldset", {
|
|
@@ -772,7 +767,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
772
767
|
ref_key: "root",
|
|
773
768
|
ref: n
|
|
774
769
|
}, [
|
|
775
|
-
!s.question.hasColumns && !s.question.blockedRow ? (t(!0), u(w, { key: 0 },
|
|
770
|
+
!s.question.hasColumns && !s.question.blockedRow ? (t(!0), u(w, { key: 0 }, R(s.question.visibleChoices, (d, c) => (t(), y(i, {
|
|
776
771
|
key: d.value,
|
|
777
772
|
class: l(s.question.getItemClass(d)),
|
|
778
773
|
question: s.question,
|
|
@@ -783,7 +778,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
783
778
|
key: 1,
|
|
784
779
|
class: l(s.question.cssClasses.rootRow)
|
|
785
780
|
}, [
|
|
786
|
-
!s.question.hasColumns && s.question.blockedRow ? (t(!0), u(w, { key: 0 },
|
|
781
|
+
!s.question.hasColumns && s.question.blockedRow ? (t(!0), u(w, { key: 0 }, R(s.question.dataChoices, (d, c) => (t(), y(i, {
|
|
787
782
|
key: d.value,
|
|
788
783
|
class: l(s.question.getItemClass(d)),
|
|
789
784
|
question: s.question,
|
|
@@ -795,11 +790,11 @@ const Oe = /* @__PURE__ */ C({
|
|
|
795
790
|
key: 2,
|
|
796
791
|
class: l(s.question.cssClasses.rootMultiColumn)
|
|
797
792
|
}, [
|
|
798
|
-
s.question.hasColumns ? (t(!0), u(w, { key: 0 },
|
|
793
|
+
s.question.hasColumns ? (t(!0), u(w, { key: 0 }, R(s.question.columns, (d, c) => (t(), u("div", {
|
|
799
794
|
class: l(s.question.getColumnClass()),
|
|
800
795
|
role: "presentation"
|
|
801
796
|
}, [
|
|
802
|
-
(t(!0), u(w, null,
|
|
797
|
+
(t(!0), u(w, null, R(d, (v, f) => (t(), y(i, {
|
|
803
798
|
key: v.value,
|
|
804
799
|
class: l(s.question.getItemClass(v)),
|
|
805
800
|
question: s.question,
|
|
@@ -808,7 +803,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
808
803
|
}, null, 8, ["class", "question", "item", "index"]))), 128))
|
|
809
804
|
], 2))), 256)) : m("", !0)
|
|
810
805
|
], 2)) : m("", !0),
|
|
811
|
-
s.question.hasFootItems ? (t(!0), u(w, { key: 3 },
|
|
806
|
+
s.question.hasFootItems ? (t(!0), u(w, { key: 3 }, R(s.question.footItems, (d, c) => (t(), y(i, {
|
|
812
807
|
key: d.value,
|
|
813
808
|
class: l(s.question.getItemClass(d)),
|
|
814
809
|
question: s.question,
|
|
@@ -819,7 +814,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
819
814
|
key: 4,
|
|
820
815
|
question: s.question
|
|
821
816
|
}, null, 8, ["question"])) : m("", !0),
|
|
822
|
-
s.question.showClearButtonInContent ? (t(), u("div",
|
|
817
|
+
s.question.showClearButtonInContent ? (t(), u("div", gs, [
|
|
823
818
|
p("input", {
|
|
824
819
|
type: "button",
|
|
825
820
|
class: l(s.question.cssClasses.clearButton),
|
|
@@ -827,12 +822,12 @@ const Oe = /* @__PURE__ */ C({
|
|
|
827
822
|
s.question.clearValue();
|
|
828
823
|
}),
|
|
829
824
|
value: s.question.clearButtonCaption
|
|
830
|
-
}, null, 10,
|
|
825
|
+
}, null, 10, Cs)
|
|
831
826
|
])) : m("", !0)
|
|
832
827
|
], 2);
|
|
833
828
|
};
|
|
834
829
|
}
|
|
835
|
-
}),
|
|
830
|
+
}), bs = { role: "presentation" }, ks = ["aria-label"], fs = ["name", "value", "id", "aria-describedby", "disabled"], Is = ["xlink:href"], ws = /* @__PURE__ */ C({
|
|
836
831
|
__name: "RadiogroupItem",
|
|
837
832
|
props: {
|
|
838
833
|
question: {},
|
|
@@ -844,7 +839,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
844
839
|
const o = r, n = (e) => o.question.getLabelClass(e), s = (e) => o.question.getControlLabelClass(e);
|
|
845
840
|
return B(() => o.item), (e, i) => {
|
|
846
841
|
const a = q("survey-string");
|
|
847
|
-
return t(), u("div",
|
|
842
|
+
return t(), u("div", bs, [
|
|
848
843
|
p("label", {
|
|
849
844
|
onMousedown: i[1] || (i[1] = (d) => e.question.onMouseDown()),
|
|
850
845
|
class: l(n(e.item)),
|
|
@@ -859,7 +854,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
859
854
|
"onUpdate:modelValue": i[0] || (i[0] = (d) => e.question.renderedValue = d),
|
|
860
855
|
disabled: !e.question.getItemEnabled(e.item),
|
|
861
856
|
class: l(e.question.cssClasses.itemControl)
|
|
862
|
-
}, null, 10,
|
|
857
|
+
}, null, 10, fs), [
|
|
863
858
|
[Y, e.question.renderedValue]
|
|
864
859
|
]),
|
|
865
860
|
e.question.cssClasses.materialDecorator ? (t(), u("span", {
|
|
@@ -872,7 +867,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
872
867
|
}, [
|
|
873
868
|
p("use", {
|
|
874
869
|
"xlink:href": e.question.itemSvgIcon
|
|
875
|
-
}, null, 8,
|
|
870
|
+
}, null, 8, Is)
|
|
876
871
|
], 2)) : m("", !0)
|
|
877
872
|
], 2)) : m("", !0),
|
|
878
873
|
e.hideLabel ? m("", !0) : (t(), u("span", {
|
|
@@ -883,19 +878,17 @@ const Oe = /* @__PURE__ */ C({
|
|
|
883
878
|
locString: e.item.locText
|
|
884
879
|
}, null, 8, ["locString"])
|
|
885
880
|
], 2))
|
|
886
|
-
], 42,
|
|
881
|
+
], 42, ks)
|
|
887
882
|
]);
|
|
888
883
|
};
|
|
889
884
|
}
|
|
890
|
-
}), Ss =
|
|
891
|
-
/* @__PURE__ */ p("canvas", { tabindex: "0" })
|
|
892
|
-
], -1), Rs = ["title"], $s = { key: 0 }, Bs = /* @__PURE__ */ C({
|
|
885
|
+
}), Ss = ["src", "width", "height"], Ts = ["title"], Rs = { key: 0 }, $s = /* @__PURE__ */ C({
|
|
893
886
|
__name: "Signaturepad",
|
|
894
887
|
props: {
|
|
895
888
|
question: {}
|
|
896
889
|
},
|
|
897
890
|
setup(r) {
|
|
898
|
-
const o = r, n =
|
|
891
|
+
const o = r, n = S(null);
|
|
899
892
|
return M(o, n), (s, e) => {
|
|
900
893
|
const i = q("sv-svg-icon");
|
|
901
894
|
return t(), u("div", {
|
|
@@ -912,7 +905,19 @@ const Oe = /* @__PURE__ */ C({
|
|
|
912
905
|
}, I(s.question.placeHolderText), 3), [
|
|
913
906
|
[H, s.question.needShowPlaceholder()]
|
|
914
907
|
]),
|
|
915
|
-
|
|
908
|
+
p("div", null, [
|
|
909
|
+
s.question.backgroundImage ? (t(), u("img", {
|
|
910
|
+
key: 0,
|
|
911
|
+
class: l(s.question.cssClasses.backgroundImage),
|
|
912
|
+
src: s.question.backgroundImage,
|
|
913
|
+
width: s.question.signatureWidth,
|
|
914
|
+
height: s.question.signatureHeight
|
|
915
|
+
}, null, 10, Ss)) : m("", !0),
|
|
916
|
+
p("canvas", {
|
|
917
|
+
tabindex: "0",
|
|
918
|
+
class: l(s.question.cssClasses.canvas)
|
|
919
|
+
}, null, 2)
|
|
920
|
+
]),
|
|
916
921
|
s.question.canShowClearButton ? (t(), u("div", {
|
|
917
922
|
key: 0,
|
|
918
923
|
class: l(s.question.cssClasses.controls)
|
|
@@ -925,24 +930,24 @@ const Oe = /* @__PURE__ */ C({
|
|
|
925
930
|
s.question.clearValue();
|
|
926
931
|
})
|
|
927
932
|
}, [
|
|
928
|
-
s.question.cssClasses.clearButtonIconId ? m("", !0) : (t(), u("span",
|
|
933
|
+
s.question.cssClasses.clearButtonIconId ? m("", !0) : (t(), u("span", Rs, "\u2716")),
|
|
929
934
|
s.question.cssClasses.clearButtonIconId ? (t(), y(i, {
|
|
930
935
|
key: 1,
|
|
931
936
|
iconName: s.question.cssClasses.clearButtonIconId,
|
|
932
937
|
size: "auto"
|
|
933
938
|
}, null, 8, ["iconName"])) : m("", !0)
|
|
934
|
-
], 10,
|
|
939
|
+
], 10, Ts)
|
|
935
940
|
], 2)) : m("", !0)
|
|
936
941
|
], 6);
|
|
937
942
|
};
|
|
938
943
|
}
|
|
939
|
-
}),
|
|
944
|
+
}), Bs = ["innerHTML"], Ls = /* @__PURE__ */ C({
|
|
940
945
|
__name: "Html",
|
|
941
946
|
props: {
|
|
942
947
|
question: {}
|
|
943
948
|
},
|
|
944
949
|
setup(r) {
|
|
945
|
-
const o = r, n =
|
|
950
|
+
const o = r, n = S(null);
|
|
946
951
|
M(o, n);
|
|
947
952
|
const s = W(() => o.question.locHtml);
|
|
948
953
|
return (e, i) => (t(), u("div", {
|
|
@@ -950,15 +955,15 @@ const Oe = /* @__PURE__ */ C({
|
|
|
950
955
|
ref: n,
|
|
951
956
|
class: l(e.question.renderCssRoot),
|
|
952
957
|
innerHTML: b(s)
|
|
953
|
-
}, null, 10,
|
|
958
|
+
}, null, 10, Bs));
|
|
954
959
|
}
|
|
955
|
-
}),
|
|
960
|
+
}), Ds = ["src", "alt", "width", "height"], Ps = ["src", "width", "height"], Ms = ["src", "width", "height"], Ns = /* @__PURE__ */ C({
|
|
956
961
|
__name: "Image",
|
|
957
962
|
props: {
|
|
958
963
|
question: {}
|
|
959
964
|
},
|
|
960
965
|
setup(r) {
|
|
961
|
-
const o = r, n =
|
|
966
|
+
const o = r, n = S(null);
|
|
962
967
|
M(o, n);
|
|
963
968
|
const s = W(() => o.question.locImageLink);
|
|
964
969
|
return (e, i) => {
|
|
@@ -986,7 +991,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
986
991
|
onError: i[1] || (i[1] = (d) => {
|
|
987
992
|
e.question.onErrorHandler();
|
|
988
993
|
})
|
|
989
|
-
}, null, 46,
|
|
994
|
+
}, null, 46, Ds)), [
|
|
990
995
|
[H, b(s) && !e.question.contentNotLoaded]
|
|
991
996
|
]) : m("", !0),
|
|
992
997
|
e.question.renderedMode === "video" ? D((t(), u("video", {
|
|
@@ -1007,7 +1012,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1007
1012
|
onError: i[3] || (i[3] = (d) => {
|
|
1008
1013
|
e.question.onErrorHandler();
|
|
1009
1014
|
})
|
|
1010
|
-
}, null, 46,
|
|
1015
|
+
}, null, 46, Ps)), [
|
|
1011
1016
|
[H, b(s) && !e.question.contentNotLoaded]
|
|
1012
1017
|
]) : m("", !0),
|
|
1013
1018
|
e.question.renderedMode === "youtube" ? (t(), u("iframe", {
|
|
@@ -1021,7 +1026,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1021
1026
|
width: e.question.renderedStyleWidth,
|
|
1022
1027
|
height: e.question.renderedStyleHeight
|
|
1023
1028
|
})
|
|
1024
|
-
}, null, 14,
|
|
1029
|
+
}, null, 14, Ms)) : m("", !0),
|
|
1025
1030
|
!b(s) || e.question.contentNotLoaded ? (t(), u("div", {
|
|
1026
1031
|
key: 3,
|
|
1027
1032
|
class: l(e.question.cssClasses.noImage)
|
|
@@ -1034,26 +1039,26 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1034
1039
|
], 2);
|
|
1035
1040
|
};
|
|
1036
1041
|
}
|
|
1037
|
-
}),
|
|
1042
|
+
}), Hs = /* @__PURE__ */ C({
|
|
1038
1043
|
__name: "Expression",
|
|
1039
1044
|
props: {
|
|
1040
1045
|
question: {}
|
|
1041
1046
|
},
|
|
1042
1047
|
setup(r) {
|
|
1043
|
-
const o = r, n =
|
|
1048
|
+
const o = r, n = S(null);
|
|
1044
1049
|
return M(o, n), (s, e) => (t(), u("div", {
|
|
1045
1050
|
class: l(s.question.cssClasses.text),
|
|
1046
1051
|
ref_key: "root",
|
|
1047
1052
|
ref: n
|
|
1048
1053
|
}, I(s.question.formatedValue), 3));
|
|
1049
1054
|
}
|
|
1050
|
-
}), As = ["id", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "multiple", "title", "accept", "capture"],
|
|
1055
|
+
}), As = ["id", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "multiple", "title", "accept", "capture"], Es = ["id", "multiple", "placeholder"], Vs = ["for", "aria-label"], Os = ["onClick", "href", "title", "download"], Fs = ["src"], Ws = ["onClick"], zs = ["onClick", "href", "title", "download"], Us = /* @__PURE__ */ C({
|
|
1051
1056
|
__name: "File",
|
|
1052
1057
|
props: {
|
|
1053
1058
|
question: {}
|
|
1054
1059
|
},
|
|
1055
1060
|
setup(r) {
|
|
1056
|
-
const o = r, n =
|
|
1061
|
+
const o = r, n = S(null);
|
|
1057
1062
|
M(o, n);
|
|
1058
1063
|
const s = (e) => o.question.isPreviewVisible(e);
|
|
1059
1064
|
return (e, i) => {
|
|
@@ -1086,7 +1091,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1086
1091
|
multiple: e.question.allowMultiple,
|
|
1087
1092
|
placeholder: e.question.title,
|
|
1088
1093
|
style: { color: "transparent" }
|
|
1089
|
-
}, null, 10,
|
|
1094
|
+
}, null, 10, Es)) : m("", !0),
|
|
1090
1095
|
p("div", {
|
|
1091
1096
|
class: l(e.question.cssClasses.dragArea),
|
|
1092
1097
|
onDrop: i[3] || (i[3] = (...v) => e.question.onDrop && e.question.onDrop(...v)),
|
|
@@ -1099,7 +1104,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1099
1104
|
}, [
|
|
1100
1105
|
p("span", {
|
|
1101
1106
|
class: l(e.question.cssClasses.dragAreaPlaceholder)
|
|
1102
|
-
}, I(e.question.
|
|
1107
|
+
}, I(e.question.renderedPlaceholder), 3),
|
|
1103
1108
|
p("div", {
|
|
1104
1109
|
class: l(e.question.cssClasses.wrapper)
|
|
1105
1110
|
}, [
|
|
@@ -1145,7 +1150,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1145
1150
|
key: 1,
|
|
1146
1151
|
class: l(e.question.cssClasses.fileList || void 0)
|
|
1147
1152
|
}, [
|
|
1148
|
-
(t(!0), u(w, null,
|
|
1153
|
+
(t(!0), u(w, null, R(e.question.previewValue, (v, f) => D((t(), u("span", {
|
|
1149
1154
|
key: e.question.inputId + "_" + f,
|
|
1150
1155
|
class: l(e.question.cssClasses.preview)
|
|
1151
1156
|
}, [
|
|
@@ -1159,7 +1164,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1159
1164
|
title: v.name,
|
|
1160
1165
|
download: v.name,
|
|
1161
1166
|
style: $({ width: e.question.imageWidth })
|
|
1162
|
-
}, I(v.name), 13,
|
|
1167
|
+
}, I(v.name), 13, Os)
|
|
1163
1168
|
], 2)) : m("", !0),
|
|
1164
1169
|
p("div", {
|
|
1165
1170
|
class: l(e.question.cssClasses.imageWrapper)
|
|
@@ -1172,7 +1177,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1172
1177
|
width: e.question.imageWidth
|
|
1173
1178
|
}),
|
|
1174
1179
|
alt: "File preview"
|
|
1175
|
-
}, null, 12,
|
|
1180
|
+
}, null, 12, Fs)) : m("", !0),
|
|
1176
1181
|
e.question.defaultImage(v) ? (t(), y(a, {
|
|
1177
1182
|
key: 1,
|
|
1178
1183
|
iconName: e.question.cssClasses.defaultImageIconId,
|
|
@@ -1194,7 +1199,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1194
1199
|
iconName: e.question.cssClasses.removeFileSvgIconId,
|
|
1195
1200
|
size: "auto"
|
|
1196
1201
|
}, null, 8, ["title", "class", "iconName"])) : m("", !0)
|
|
1197
|
-
], 10,
|
|
1202
|
+
], 10, Ws)) : m("", !0)
|
|
1198
1203
|
], 2),
|
|
1199
1204
|
v.name && e.question.cssClasses.fileSignBottom ? (t(), u("div", {
|
|
1200
1205
|
key: 1,
|
|
@@ -1206,7 +1211,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1206
1211
|
title: v.name,
|
|
1207
1212
|
download: v.name,
|
|
1208
1213
|
style: $({ width: e.question.imageWidth })
|
|
1209
|
-
}, I(v.name), 13,
|
|
1214
|
+
}, I(v.name), 13, zs)
|
|
1210
1215
|
], 2)) : m("", !0)
|
|
1211
1216
|
], 2)), [
|
|
1212
1217
|
[H, v && s(f)]
|
|
@@ -1234,13 +1239,13 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1234
1239
|
], 2);
|
|
1235
1240
|
};
|
|
1236
1241
|
}
|
|
1237
|
-
}),
|
|
1242
|
+
}), Ks = ["aria-label"], js = /* @__PURE__ */ C({
|
|
1238
1243
|
__name: "Imagepicker",
|
|
1239
1244
|
props: {
|
|
1240
1245
|
question: {}
|
|
1241
1246
|
},
|
|
1242
1247
|
setup(r) {
|
|
1243
|
-
const o = r, n =
|
|
1248
|
+
const o = r, n = S(null);
|
|
1244
1249
|
return M(o, n), (s, e) => {
|
|
1245
1250
|
const i = q("survey-imagepicker-item");
|
|
1246
1251
|
return t(), u("fieldset", {
|
|
@@ -1251,18 +1256,18 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1251
1256
|
p("legend", {
|
|
1252
1257
|
role: "radio",
|
|
1253
1258
|
"aria-label": s.question.locTitle.renderedHtml
|
|
1254
|
-
}, null, 8,
|
|
1255
|
-
s.question.hasColumns ? m("", !0) : (t(!0), u(w, { key: 0 },
|
|
1259
|
+
}, null, 8, Ks),
|
|
1260
|
+
s.question.hasColumns ? m("", !0) : (t(!0), u(w, { key: 0 }, R(s.question.visibleChoices, (a) => (t(), y(i, {
|
|
1256
1261
|
key: a.value,
|
|
1257
1262
|
question: s.question,
|
|
1258
1263
|
item: a
|
|
1259
1264
|
}, null, 8, ["question", "item"]))), 128)),
|
|
1260
|
-
s.question.hasColumns ? (t(!0), u(w, { key: 1 },
|
|
1265
|
+
s.question.hasColumns ? (t(!0), u(w, { key: 1 }, R(s.question.columns, (a, d) => (t(), u("div", {
|
|
1261
1266
|
class: l(s.question.getColumnClass()),
|
|
1262
1267
|
key: d,
|
|
1263
1268
|
role: "presentation"
|
|
1264
1269
|
}, [
|
|
1265
|
-
(t(!0), u(w, null,
|
|
1270
|
+
(t(!0), u(w, null, R(a, (c) => (t(), y(i, {
|
|
1266
1271
|
key: c.value,
|
|
1267
1272
|
question: s.question,
|
|
1268
1273
|
item: c
|
|
@@ -1271,7 +1276,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1271
1276
|
], 2);
|
|
1272
1277
|
};
|
|
1273
1278
|
}
|
|
1274
|
-
}),
|
|
1279
|
+
}), Qs = ["name", "value", "id", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Zs = ["name", "value", "id", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Gs = ["src", "width", "height", "alt"], Xs = ["src", "width", "height"], Js = /* @__PURE__ */ C({
|
|
1275
1280
|
__name: "ImagepickerItem",
|
|
1276
1281
|
props: {
|
|
1277
1282
|
question: {},
|
|
@@ -1302,7 +1307,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1302
1307
|
"aria-invalid": e.question.ariaInvalid,
|
|
1303
1308
|
"aria-describedby": e.question.ariaDescribedBy,
|
|
1304
1309
|
class: l(e.question.cssClasses.itemControl)
|
|
1305
|
-
}, null, 10,
|
|
1310
|
+
}, null, 10, Qs)), [
|
|
1306
1311
|
[z, e.question.value]
|
|
1307
1312
|
]) : D((t(), u("input", {
|
|
1308
1313
|
key: 1,
|
|
@@ -1317,7 +1322,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1317
1322
|
"aria-invalid": e.question.ariaInvalid,
|
|
1318
1323
|
"aria-describedby": e.question.ariaDescribedBy,
|
|
1319
1324
|
class: l(e.question.cssClasses.itemControl)
|
|
1320
|
-
}, null, 10,
|
|
1325
|
+
}, null, 10, Zs)), [
|
|
1321
1326
|
[Y, e.question.value]
|
|
1322
1327
|
]),
|
|
1323
1328
|
p("div", {
|
|
@@ -1351,7 +1356,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1351
1356
|
onError: i[3] || (i[3] = (c) => {
|
|
1352
1357
|
e.item.onErrorHandler();
|
|
1353
1358
|
})
|
|
1354
|
-
}, null, 46,
|
|
1359
|
+
}, null, 46, Gs)) : m("", !0),
|
|
1355
1360
|
b(s) && !e.item.contentNotLoaded && e.question.contentMode === "video" ? (t(), u("video", {
|
|
1356
1361
|
key: 2,
|
|
1357
1362
|
controls: "",
|
|
@@ -1366,7 +1371,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1366
1371
|
onError: i[5] || (i[5] = (c) => {
|
|
1367
1372
|
e.item.onErrorHandler();
|
|
1368
1373
|
})
|
|
1369
|
-
}, null, 46,
|
|
1374
|
+
}, null, 46, Xs)) : m("", !0),
|
|
1370
1375
|
!b(s) || e.item.contentNotLoaded ? (t(), u("div", {
|
|
1371
1376
|
key: 3,
|
|
1372
1377
|
class: l(e.question.cssClasses.itemNoImage),
|
|
@@ -1396,14 +1401,14 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1396
1401
|
], 2);
|
|
1397
1402
|
};
|
|
1398
1403
|
}
|
|
1399
|
-
}),
|
|
1404
|
+
}), Ys = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], _s = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], xs = /* @__PURE__ */ C({
|
|
1400
1405
|
__name: "Comment",
|
|
1401
1406
|
props: {
|
|
1402
1407
|
question: {},
|
|
1403
1408
|
css: {}
|
|
1404
1409
|
},
|
|
1405
1410
|
setup(r) {
|
|
1406
|
-
const o = r, n =
|
|
1411
|
+
const o = r, n = S(null);
|
|
1407
1412
|
M(o, n);
|
|
1408
1413
|
const s = (e) => {
|
|
1409
1414
|
const i = o.question;
|
|
@@ -1437,7 +1442,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1437
1442
|
"aria-invalid": e.question.a11y_input_ariaInvalid,
|
|
1438
1443
|
"aria-describedby": e.question.a11y_input_ariaDescribedBy,
|
|
1439
1444
|
style: $({ resize: e.question.resizeStyle })
|
|
1440
|
-
}, null, 46,
|
|
1445
|
+
}, null, 46, Ys)) : !e.question.isReadOnlyRenderDiv() && e.question.getMaxLength() ? (t(), u("div", {
|
|
1441
1446
|
key: 1,
|
|
1442
1447
|
ref_key: "root",
|
|
1443
1448
|
ref: n
|
|
@@ -1465,7 +1470,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1465
1470
|
"aria-invalid": e.question.a11y_input_ariaInvalid,
|
|
1466
1471
|
"aria-describedby": e.question.a11y_input_ariaDescribedBy,
|
|
1467
1472
|
style: $({ resize: e.question.resizeStyle })
|
|
1468
|
-
}, null, 46,
|
|
1473
|
+
}, null, 46, _s),
|
|
1469
1474
|
h(a, {
|
|
1470
1475
|
counter: e.question.characterCounter,
|
|
1471
1476
|
remainingCharacterCounter: e.question.cssClasses.remainingCharacterCounter
|
|
@@ -1477,13 +1482,13 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1477
1482
|
}, I(e.question.value), 513));
|
|
1478
1483
|
};
|
|
1479
1484
|
}
|
|
1480
|
-
}),
|
|
1485
|
+
}), en = /* @__PURE__ */ C({
|
|
1481
1486
|
__name: "Dropdown",
|
|
1482
1487
|
props: {
|
|
1483
1488
|
question: {}
|
|
1484
1489
|
},
|
|
1485
1490
|
setup(r) {
|
|
1486
|
-
const o = r, n =
|
|
1491
|
+
const o = r, n = S(null);
|
|
1487
1492
|
return M(o, n), (s, e) => {
|
|
1488
1493
|
const i = q("sv-dropdown"), a = q("survey-other-choice");
|
|
1489
1494
|
return t(), u("div", {
|
|
@@ -1499,28 +1504,28 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1499
1504
|
], 2);
|
|
1500
1505
|
};
|
|
1501
1506
|
}
|
|
1502
|
-
}),
|
|
1507
|
+
}), sn = ["id", "autocomplete", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "required"], nn = {
|
|
1503
1508
|
key: 0,
|
|
1504
1509
|
value: ""
|
|
1505
|
-
},
|
|
1510
|
+
}, on = ["id"];
|
|
1506
1511
|
X.Instance.registerRenderer(
|
|
1507
1512
|
"dropdown",
|
|
1508
1513
|
"select",
|
|
1509
1514
|
"sv-dropdown-select"
|
|
1510
1515
|
);
|
|
1511
|
-
const
|
|
1516
|
+
const tn = /* @__PURE__ */ C({
|
|
1512
1517
|
__name: "DropdownSelect",
|
|
1513
1518
|
props: {
|
|
1514
1519
|
question: {}
|
|
1515
1520
|
},
|
|
1516
1521
|
setup(r) {
|
|
1517
|
-
const o = r, n =
|
|
1522
|
+
const o = r, n = S(null);
|
|
1518
1523
|
M(o, n);
|
|
1519
1524
|
const s = (a) => {
|
|
1520
1525
|
o.question.onClick(a);
|
|
1521
1526
|
}, e = (a) => {
|
|
1522
1527
|
o.question.onKeyUp(a);
|
|
1523
|
-
}, i =
|
|
1528
|
+
}, i = T({
|
|
1524
1529
|
get() {
|
|
1525
1530
|
var a;
|
|
1526
1531
|
return (a = o.question.value) != null ? a : "";
|
|
@@ -1543,7 +1548,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
1543
1548
|
disabled: "",
|
|
1544
1549
|
id: a.question.inputId,
|
|
1545
1550
|
class: l(a.question.getControlClass())
|
|
1546
|
-
}, I(a.question.readOnlyText), 11,
|
|
1551
|
+
}, I(a.question.readOnlyText), 11, on)) : D((t(), u("select", {
|
|
1547
1552
|
key: 0,
|
|
1548
1553
|
id: a.question.inputId,
|
|
1549
1554
|
"onUpdate:modelValue": d[0] || (d[0] = (g) => i.value = g),
|
|
@@ -1557,12 +1562,12 @@ const ln = /* @__PURE__ */ C({
|
|
|
1557
1562
|
"aria-describedby": a.question.ariaDescribedBy,
|
|
1558
1563
|
required: a.question.isRequired
|
|
1559
1564
|
}, [
|
|
1560
|
-
a.question.allowClear ? (t(), u("option",
|
|
1561
|
-
(t(!0), u(w, null,
|
|
1565
|
+
a.question.allowClear ? (t(), u("option", nn, I(a.question.placeholder), 1)) : m("", !0),
|
|
1566
|
+
(t(!0), u(w, null, R(a.question.visibleChoices, (g) => (t(), y(c, {
|
|
1562
1567
|
item: g,
|
|
1563
1568
|
key: g.id
|
|
1564
1569
|
}, null, 8, ["item"]))), 128))
|
|
1565
|
-
], 42,
|
|
1570
|
+
], 42, sn)), [
|
|
1566
1571
|
[pe, i.value]
|
|
1567
1572
|
]),
|
|
1568
1573
|
a.question.cssClasses.chevronButtonIconId ? (t(), u("div", {
|
|
@@ -1583,7 +1588,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
1583
1588
|
], 2);
|
|
1584
1589
|
};
|
|
1585
1590
|
}
|
|
1586
|
-
}),
|
|
1591
|
+
}), ln = ["value", "disabled"], rn = /* @__PURE__ */ C({
|
|
1587
1592
|
__name: "OptionItem",
|
|
1588
1593
|
props: {
|
|
1589
1594
|
item: {}
|
|
@@ -1593,15 +1598,15 @@ const ln = /* @__PURE__ */ C({
|
|
|
1593
1598
|
return B(() => o.item), (s, e) => (t(), u("option", {
|
|
1594
1599
|
value: s.item.value,
|
|
1595
1600
|
disabled: !s.item.isEnabled
|
|
1596
|
-
}, I(b(n)), 9,
|
|
1601
|
+
}, I(b(n)), 9, ln));
|
|
1597
1602
|
}
|
|
1598
|
-
}),
|
|
1603
|
+
}), an = ["id", "disabled", "tabindex", "role", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], un = { style: { visibility: "hidden" } }, dn = ["disabled", "inputmode", "role", "id", "tabindex", "readonly", "aria-label", "aria-expanded", "aria-controls", "aria-activedescendant", "placeholder"], mn = ["id"], cn = /* @__PURE__ */ C({
|
|
1599
1604
|
__name: "Dropdown",
|
|
1600
1605
|
props: {
|
|
1601
1606
|
question: {}
|
|
1602
1607
|
},
|
|
1603
1608
|
setup(r) {
|
|
1604
|
-
const o = r, n =
|
|
1609
|
+
const o = r, n = S(null), s = T(() => {
|
|
1605
1610
|
const g = o.question;
|
|
1606
1611
|
return g.dropdownListModel || (g.dropdownListModel = new fe(g)), o.question.dropdownListModel;
|
|
1607
1612
|
}), e = (g) => {
|
|
@@ -1627,8 +1632,8 @@ const ln = /* @__PURE__ */ C({
|
|
|
1627
1632
|
}, f = (g) => {
|
|
1628
1633
|
s.value.inputStringRendered = g.target.value;
|
|
1629
1634
|
};
|
|
1630
|
-
return B(() => s.value),
|
|
1631
|
-
const P = q("survey-string"), L = q("sv-svg-icon"),
|
|
1635
|
+
return B(() => s.value), G(d), A(d), (g, k) => {
|
|
1636
|
+
const P = q("survey-string"), L = q("sv-svg-icon"), E = q("sv-popup");
|
|
1632
1637
|
return t(), u("div", {
|
|
1633
1638
|
class: l(g.question.cssClasses.selectWrapper),
|
|
1634
1639
|
onClick: e
|
|
@@ -1668,7 +1673,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
1668
1673
|
key: 1,
|
|
1669
1674
|
class: l(g.question.cssClasses.hintSuffix)
|
|
1670
1675
|
}, [
|
|
1671
|
-
p("span",
|
|
1676
|
+
p("span", un, I(s.value.inputStringRendered), 1),
|
|
1672
1677
|
p("span", null, I(s.value.hintStringSuffix), 1)
|
|
1673
1678
|
], 2)) : m("", !0),
|
|
1674
1679
|
g.question.showInputFieldComponent ? (t(), y(N(g.question.inputFieldComponentName), {
|
|
@@ -1696,7 +1701,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
1696
1701
|
onInput: f,
|
|
1697
1702
|
onBlur: c,
|
|
1698
1703
|
onFocus: v
|
|
1699
|
-
}, null, 42,
|
|
1704
|
+
}, null, 42, dn)
|
|
1700
1705
|
], 2),
|
|
1701
1706
|
g.question.allowClear && g.question.cssClasses.cleanButtonIconId ? D((t(), u("div", {
|
|
1702
1707
|
key: 1,
|
|
@@ -1712,7 +1717,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
1712
1717
|
], 2)), [
|
|
1713
1718
|
[H, !g.question.isEmpty()]
|
|
1714
1719
|
]) : m("", !0)
|
|
1715
|
-
], 42,
|
|
1720
|
+
], 42, an)),
|
|
1716
1721
|
g.question.isReadOnly ? (t(), u("div", {
|
|
1717
1722
|
key: 2,
|
|
1718
1723
|
disabled: "",
|
|
@@ -1724,7 +1729,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
1724
1729
|
locString: g.question.selectedItemLocText
|
|
1725
1730
|
}, null, 8, ["locString"])) : m("", !0),
|
|
1726
1731
|
p("div", null, I(g.question.readOnlyText), 1)
|
|
1727
|
-
], 10,
|
|
1732
|
+
], 10, mn)) : (t(), y(E, {
|
|
1728
1733
|
key: 1,
|
|
1729
1734
|
model: g.question.dropdownListModel.popupModel
|
|
1730
1735
|
}, null, 8, ["model"])),
|
|
@@ -1741,13 +1746,13 @@ const ln = /* @__PURE__ */ C({
|
|
|
1741
1746
|
], 2);
|
|
1742
1747
|
};
|
|
1743
1748
|
}
|
|
1744
|
-
}),
|
|
1749
|
+
}), pn = /* @__PURE__ */ C({
|
|
1745
1750
|
__name: "Tagbox",
|
|
1746
1751
|
props: {
|
|
1747
1752
|
question: {}
|
|
1748
1753
|
},
|
|
1749
1754
|
setup(r) {
|
|
1750
|
-
const o = r, n =
|
|
1755
|
+
const o = r, n = S(null);
|
|
1751
1756
|
return M(o, n), (s, e) => {
|
|
1752
1757
|
const i = q("sv-tagbox"), a = q("survey-other-choice");
|
|
1753
1758
|
return t(), u("div", {
|
|
@@ -1763,13 +1768,13 @@ const ln = /* @__PURE__ */ C({
|
|
|
1763
1768
|
], 2);
|
|
1764
1769
|
};
|
|
1765
1770
|
}
|
|
1766
|
-
}),
|
|
1771
|
+
}), vn = ["id", "tabindex", "disabled", "role", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], qn = ["id"], yn = /* @__PURE__ */ C({
|
|
1767
1772
|
__name: "Tagbox",
|
|
1768
1773
|
props: {
|
|
1769
1774
|
question: {}
|
|
1770
1775
|
},
|
|
1771
1776
|
setup(r) {
|
|
1772
|
-
const o = r, n =
|
|
1777
|
+
const o = r, n = T(() => {
|
|
1773
1778
|
const d = o.question;
|
|
1774
1779
|
return d.dropdownListModel || (d.dropdownListModel = new we(d)), o.question.dropdownListModel;
|
|
1775
1780
|
}), s = (d) => {
|
|
@@ -1812,7 +1817,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
1812
1817
|
p("div", {
|
|
1813
1818
|
class: l(d.question.cssClasses.controlValue)
|
|
1814
1819
|
}, [
|
|
1815
|
-
(t(!0), u(w, null,
|
|
1820
|
+
(t(!0), u(w, null, R(d.question.selectedChoices, (P, L) => (t(), y(v, {
|
|
1816
1821
|
item: P,
|
|
1817
1822
|
question: d.question,
|
|
1818
1823
|
key: "item" + L
|
|
@@ -1836,7 +1841,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
1836
1841
|
], 2)), [
|
|
1837
1842
|
[H, !d.question.isEmpty()]
|
|
1838
1843
|
]) : m("", !0)
|
|
1839
|
-
], 42,
|
|
1844
|
+
], 42, vn)),
|
|
1840
1845
|
d.question.isReadOnly ? (t(), u("div", {
|
|
1841
1846
|
key: 2,
|
|
1842
1847
|
disabled: "",
|
|
@@ -1844,7 +1849,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
1844
1849
|
class: l(d.question.getControlClass())
|
|
1845
1850
|
}, [
|
|
1846
1851
|
p("div", null, I(d.question.readOnlyText), 1)
|
|
1847
|
-
], 10,
|
|
1852
|
+
], 10, qn)) : (t(), y(k, {
|
|
1848
1853
|
key: 1,
|
|
1849
1854
|
model: n.value.popupModel
|
|
1850
1855
|
}, null, 8, ["model"])),
|
|
@@ -1861,7 +1866,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
1861
1866
|
], 2);
|
|
1862
1867
|
};
|
|
1863
1868
|
}
|
|
1864
|
-
}),
|
|
1869
|
+
}), gn = { style: { visibility: "hidden" } }, Cn = ["placeholder", "disabled", "inputmode", "role", "aria-label", "aria-expanded", "aria-controls", "aria-activedescendant", "id", "readonly", "size"], hn = /* @__PURE__ */ C({
|
|
1865
1870
|
__name: "TagboxFilter",
|
|
1866
1871
|
props: {
|
|
1867
1872
|
question: {},
|
|
@@ -1900,7 +1905,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
1900
1905
|
key: 1,
|
|
1901
1906
|
class: l(a.question.cssClasses.hintSuffix)
|
|
1902
1907
|
}, [
|
|
1903
|
-
p("span",
|
|
1908
|
+
p("span", gn, I(a.model.inputStringRendered), 1),
|
|
1904
1909
|
p("span", null, I(a.model.hintStringSuffix), 1)
|
|
1905
1910
|
], 2)) : m("", !0),
|
|
1906
1911
|
D(p("input", {
|
|
@@ -1923,14 +1928,14 @@ const ln = /* @__PURE__ */ C({
|
|
|
1923
1928
|
onKeydown: s,
|
|
1924
1929
|
onBlur: e,
|
|
1925
1930
|
onFocus: i
|
|
1926
|
-
}, null, 42,
|
|
1931
|
+
}, null, 42, Cn), [
|
|
1927
1932
|
[ve, a.model.inputStringRendered]
|
|
1928
1933
|
])
|
|
1929
1934
|
], 2)
|
|
1930
1935
|
], 2);
|
|
1931
1936
|
};
|
|
1932
1937
|
}
|
|
1933
|
-
}),
|
|
1938
|
+
}), bn = { class: "sv-tagbox__item-text" }, kn = /* @__PURE__ */ C({
|
|
1934
1939
|
__name: "TagboxItem",
|
|
1935
1940
|
props: {
|
|
1936
1941
|
question: {},
|
|
@@ -1946,7 +1951,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
1946
1951
|
class: "sv-tagbox__item",
|
|
1947
1952
|
key: s.item.key
|
|
1948
1953
|
}, [
|
|
1949
|
-
p("div",
|
|
1954
|
+
p("div", bn, [
|
|
1950
1955
|
h(i, {
|
|
1951
1956
|
locString: s.item.locText
|
|
1952
1957
|
}, null, 8, ["locString"])
|
|
@@ -1964,13 +1969,13 @@ const ln = /* @__PURE__ */ C({
|
|
|
1964
1969
|
]);
|
|
1965
1970
|
};
|
|
1966
1971
|
}
|
|
1967
|
-
}),
|
|
1972
|
+
}), fn = /* @__PURE__ */ C({
|
|
1968
1973
|
__name: "Ranking",
|
|
1969
1974
|
props: {
|
|
1970
1975
|
question: {}
|
|
1971
1976
|
},
|
|
1972
1977
|
setup(r) {
|
|
1973
|
-
const o = r, n =
|
|
1978
|
+
const o = r, n = S(null);
|
|
1974
1979
|
M(o, n);
|
|
1975
1980
|
const s = (e) => o.question.getNumberByIndex(e);
|
|
1976
1981
|
return (e, i) => {
|
|
@@ -1980,7 +1985,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
1980
1985
|
ref_key: "root",
|
|
1981
1986
|
ref: n
|
|
1982
1987
|
}, [
|
|
1983
|
-
e.question.selectToRankEnabled ? m("", !0) : (t(!0), u(w, { key: 0 },
|
|
1988
|
+
e.question.selectToRankEnabled ? m("", !0) : (t(!0), u(w, { key: 0 }, R(e.question.rankingChoices, (d, c) => (t(), y(a, {
|
|
1984
1989
|
key: d.value + "-" + c + "-item",
|
|
1985
1990
|
class: l(e.question.getItemClass(d)),
|
|
1986
1991
|
text: d.locText,
|
|
@@ -1995,7 +2000,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
1995
2000
|
class: l(e.question.getContainerClasses("from")),
|
|
1996
2001
|
"data-ranking": "from-container"
|
|
1997
2002
|
}, [
|
|
1998
|
-
(t(!0), u(w, null,
|
|
2003
|
+
(t(!0), u(w, null, R(e.question.unRankingChoices, (d, c) => (t(), y(a, {
|
|
1999
2004
|
key: d.value + "-" + c + "-item",
|
|
2000
2005
|
class: l(e.question.getItemClass(d)),
|
|
2001
2006
|
text: d.locText,
|
|
@@ -2020,7 +2025,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
2020
2025
|
class: l(e.question.getContainerClasses("to")),
|
|
2021
2026
|
"data-ranking": "to-container"
|
|
2022
2027
|
}, [
|
|
2023
|
-
(t(!0), u(w, null,
|
|
2028
|
+
(t(!0), u(w, null, R(e.question.rankingChoices, (d, c) => (t(), y(a, {
|
|
2024
2029
|
key: d.value + "-" + c + "-item",
|
|
2025
2030
|
class: l(e.question.getItemClass(d)),
|
|
2026
2031
|
text: d.locText,
|
|
@@ -2038,15 +2043,15 @@ const ln = /* @__PURE__ */ C({
|
|
|
2038
2043
|
], 2);
|
|
2039
2044
|
};
|
|
2040
2045
|
}
|
|
2041
|
-
}),
|
|
2046
|
+
}), In = ["tabindex", "data-sv-drop-target-ranking-item"], wn = {
|
|
2042
2047
|
tabindex: "-1",
|
|
2043
2048
|
style: { outline: "none" }
|
|
2044
|
-
}, Sn = /* @__PURE__ */ p("path", { d: "M6 2C6 0.9 6.9 0 8 0C9.1 0 10 0.9 10 2C10 3.1 9.1 4 8 4C6.9 4 6 3.1 6 2ZM2 0C0.9 0 0 0.9 0 2C0 3.1 0.9 4 2 4C3.1 4 4 3.1 4 2C4 0.9 3.1 0 2 0ZM8 6C6.9 6 6 6.9 6 8C6 9.1 6.9 10 8 10C9.1 10 10 9.1 10 8C10 6.9 9.1 6 8 6ZM2 6C0.9 6 0 6.9 0 8C0 9.1 0.9 10 2 10C3.1 10 4 9.1 4 8C4 6.9 3.1 6 2 6ZM8 12C6.9 12 6 12.9 6 14C6 15.1 6.9 16 8 16C9.1 16 10 15.1 10 14C10 12.9 9.1 12 8 12ZM2 12C0.9 12 0 12.9 0 14C0 15.1 0.9 16 2 16C3.1 16 4 15.1 4 14C4 12.9 3.1 12 2 12Z" }, null, -1),
|
|
2049
|
+
}, Sn = /* @__PURE__ */ p("path", { d: "M6 2C6 0.9 6.9 0 8 0C9.1 0 10 0.9 10 2C10 3.1 9.1 4 8 4C6.9 4 6 3.1 6 2ZM2 0C0.9 0 0 0.9 0 2C0 3.1 0.9 4 2 4C3.1 4 4 3.1 4 2C4 0.9 3.1 0 2 0ZM8 6C6.9 6 6 6.9 6 8C6 9.1 6.9 10 8 10C9.1 10 10 9.1 10 8C10 6.9 9.1 6 8 6ZM2 6C0.9 6 0 6.9 0 8C0 9.1 0.9 10 2 10C3.1 10 4 9.1 4 8C4 6.9 3.1 6 2 6ZM8 12C6.9 12 6 12.9 6 14C6 15.1 6.9 16 8 16C9.1 16 10 15.1 10 14C10 12.9 9.1 12 8 12ZM2 12C0.9 12 0 12.9 0 14C0 15.1 0.9 16 2 16C3.1 16 4 15.1 4 14C4 12.9 3.1 12 2 12Z" }, null, -1), Tn = [
|
|
2045
2050
|
Sn
|
|
2046
|
-
],
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
],
|
|
2051
|
+
], Rn = /* @__PURE__ */ p("path", { d: "M10 5L5 0L0 5H4V9H6V5H10Z" }, null, -1), $n = /* @__PURE__ */ p("path", { d: "M6 19V15H4V19H0L5 24L10 19H6Z" }, null, -1), Bn = [
|
|
2052
|
+
Rn,
|
|
2053
|
+
$n
|
|
2054
|
+
], Ln = /* @__PURE__ */ C({
|
|
2050
2055
|
__name: "RankingItem",
|
|
2051
2056
|
props: {
|
|
2052
2057
|
index: {},
|
|
@@ -2078,7 +2083,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
2078
2083
|
);
|
|
2079
2084
|
})
|
|
2080
2085
|
}, [
|
|
2081
|
-
p("div",
|
|
2086
|
+
p("div", wn, [
|
|
2082
2087
|
p("div", {
|
|
2083
2088
|
class: l(n.cssClasses.itemGhostNode)
|
|
2084
2089
|
}, null, 2),
|
|
@@ -2094,14 +2099,14 @@ const ln = /* @__PURE__ */ C({
|
|
|
2094
2099
|
viewBox: "0 0 10 16",
|
|
2095
2100
|
class: l(n.question.getIconHoverCss()),
|
|
2096
2101
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2097
|
-
},
|
|
2102
|
+
}, Tn, 2)),
|
|
2098
2103
|
(t(), u("svg", {
|
|
2099
2104
|
width: "10",
|
|
2100
2105
|
height: "24",
|
|
2101
2106
|
viewBox: "0 0 10 24",
|
|
2102
2107
|
class: l(n.question.getIconFocusCss()),
|
|
2103
2108
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2104
|
-
},
|
|
2109
|
+
}, Bn, 2))
|
|
2105
2110
|
], 2),
|
|
2106
2111
|
p("div", {
|
|
2107
2112
|
class: l(n.question.getItemIndexClasses(n.item))
|
|
@@ -2113,19 +2118,19 @@ const ln = /* @__PURE__ */ C({
|
|
|
2113
2118
|
], 2)
|
|
2114
2119
|
], 2)
|
|
2115
2120
|
])
|
|
2116
|
-
], 42,
|
|
2121
|
+
], 42, In);
|
|
2117
2122
|
};
|
|
2118
2123
|
}
|
|
2119
|
-
}),
|
|
2124
|
+
}), Dn = { role: "radiogroup" }, Pn = /* @__PURE__ */ p("legend", {
|
|
2120
2125
|
role: "presentation",
|
|
2121
2126
|
class: "sv-hidden"
|
|
2122
|
-
}, null, -1),
|
|
2127
|
+
}, null, -1), Mn = /* @__PURE__ */ C({
|
|
2123
2128
|
__name: "Rating",
|
|
2124
2129
|
props: {
|
|
2125
2130
|
question: {}
|
|
2126
2131
|
},
|
|
2127
2132
|
setup(r) {
|
|
2128
|
-
const o = r, n =
|
|
2133
|
+
const o = r, n = S(null);
|
|
2129
2134
|
M(o, n);
|
|
2130
2135
|
const s = (e) => o.question.getInputId(e);
|
|
2131
2136
|
return (e, i) => {
|
|
@@ -2135,8 +2140,8 @@ const ln = /* @__PURE__ */ C({
|
|
|
2135
2140
|
ref_key: "root",
|
|
2136
2141
|
ref: n
|
|
2137
2142
|
}, [
|
|
2138
|
-
p("fieldset",
|
|
2139
|
-
|
|
2143
|
+
p("fieldset", Dn, [
|
|
2144
|
+
Pn,
|
|
2140
2145
|
e.question.hasMinLabel ? (t(), u("span", {
|
|
2141
2146
|
key: 0,
|
|
2142
2147
|
class: l(e.question.cssClasses.minText)
|
|
@@ -2145,7 +2150,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
2145
2150
|
locString: e.question.locMinRateDescription
|
|
2146
2151
|
}, null, 8, ["locString"])
|
|
2147
2152
|
], 2)) : m("", !0),
|
|
2148
|
-
(t(!0), u(w, null,
|
|
2153
|
+
(t(!0), u(w, null, R(e.question.renderedRateItems, (d, c) => (t(), y(N(e.question.itemComponentName), {
|
|
2149
2154
|
key: s(c),
|
|
2150
2155
|
item: d,
|
|
2151
2156
|
index: c,
|
|
@@ -2163,7 +2168,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
2163
2168
|
], 2);
|
|
2164
2169
|
};
|
|
2165
2170
|
}
|
|
2166
|
-
}),
|
|
2171
|
+
}), Nn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Hn = /* @__PURE__ */ C({
|
|
2167
2172
|
__name: "RatingItem",
|
|
2168
2173
|
props: {
|
|
2169
2174
|
question: {},
|
|
@@ -2191,7 +2196,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
2191
2196
|
"aria-label": n.question.ariaLabel,
|
|
2192
2197
|
"aria-invalid": n.question.ariaInvalid,
|
|
2193
2198
|
"aria-describedby": n.question.ariaDescribedBy
|
|
2194
|
-
}, null, 8,
|
|
2199
|
+
}, null, 8, Nn),
|
|
2195
2200
|
p("span", {
|
|
2196
2201
|
class: l(n.question.cssClasses.itemText)
|
|
2197
2202
|
}, [
|
|
@@ -2202,7 +2207,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
2202
2207
|
], 34);
|
|
2203
2208
|
};
|
|
2204
2209
|
}
|
|
2205
|
-
}), An = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"],
|
|
2210
|
+
}), An = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], En = /* @__PURE__ */ C({
|
|
2206
2211
|
__name: "RatingItemSmiley",
|
|
2207
2212
|
props: {
|
|
2208
2213
|
question: {},
|
|
@@ -2242,7 +2247,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
2242
2247
|
], 38);
|
|
2243
2248
|
};
|
|
2244
2249
|
}
|
|
2245
|
-
}), Vn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"],
|
|
2250
|
+
}), Vn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], On = /* @__PURE__ */ C({
|
|
2246
2251
|
__name: "RatingItemStar",
|
|
2247
2252
|
props: {
|
|
2248
2253
|
question: {},
|
|
@@ -2294,13 +2299,13 @@ X.Instance.registerRenderer(
|
|
|
2294
2299
|
"dropdown",
|
|
2295
2300
|
"sv-rating-dropdown"
|
|
2296
2301
|
);
|
|
2297
|
-
const
|
|
2302
|
+
const Fn = /* @__PURE__ */ C({
|
|
2298
2303
|
__name: "RatingDropdown",
|
|
2299
2304
|
props: {
|
|
2300
2305
|
question: {}
|
|
2301
2306
|
},
|
|
2302
2307
|
setup(r) {
|
|
2303
|
-
const o = r, n =
|
|
2308
|
+
const o = r, n = S(null);
|
|
2304
2309
|
return M(o, n), (s, e) => {
|
|
2305
2310
|
const i = q("sv-dropdown");
|
|
2306
2311
|
return t(), u("div", {
|
|
@@ -2312,13 +2317,13 @@ const Wn = /* @__PURE__ */ C({
|
|
|
2312
2317
|
], 2);
|
|
2313
2318
|
};
|
|
2314
2319
|
}
|
|
2315
|
-
}),
|
|
2320
|
+
}), Wn = ["name", "value", "id", ".indeterminate", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], zn = /* @__PURE__ */ C({
|
|
2316
2321
|
__name: "BooleanSwitch",
|
|
2317
2322
|
props: {
|
|
2318
2323
|
question: {}
|
|
2319
2324
|
},
|
|
2320
2325
|
setup(r) {
|
|
2321
|
-
const o = r, n =
|
|
2326
|
+
const o = r, n = S(null);
|
|
2322
2327
|
M(o, n);
|
|
2323
2328
|
const s = (i, a) => {
|
|
2324
2329
|
o.question.onLabelClick(i, a);
|
|
@@ -2348,7 +2353,7 @@ const Wn = /* @__PURE__ */ C({
|
|
|
2348
2353
|
"aria-label": i.question.ariaLabel,
|
|
2349
2354
|
"aria-invalid": i.question.ariaInvalid,
|
|
2350
2355
|
"aria-describedby": i.question.ariaDescribedBy
|
|
2351
|
-
}, null, 10,
|
|
2356
|
+
}, null, 10, Wn), [
|
|
2352
2357
|
[z, i.question.booleanValue]
|
|
2353
2358
|
]),
|
|
2354
2359
|
p("div", {
|
|
@@ -2402,13 +2407,13 @@ X.Instance.registerRenderer(
|
|
|
2402
2407
|
"radio",
|
|
2403
2408
|
"sv-boolean-radio"
|
|
2404
2409
|
);
|
|
2405
|
-
const
|
|
2410
|
+
const Un = /* @__PURE__ */ C({
|
|
2406
2411
|
__name: "BooleanRadio",
|
|
2407
2412
|
props: {
|
|
2408
2413
|
question: {}
|
|
2409
2414
|
},
|
|
2410
2415
|
setup(r) {
|
|
2411
|
-
const o = r, n =
|
|
2416
|
+
const o = r, n = S(null);
|
|
2412
2417
|
return M(o, n), (s, e) => {
|
|
2413
2418
|
const i = q("sv-boolean-radio-item");
|
|
2414
2419
|
return t(), u("div", {
|
|
@@ -2436,7 +2441,7 @@ const Kn = /* @__PURE__ */ C({
|
|
|
2436
2441
|
], 2);
|
|
2437
2442
|
};
|
|
2438
2443
|
}
|
|
2439
|
-
}),
|
|
2444
|
+
}), Kn = ["name", "value", "checked", "aria-describedby", "disabled"], jn = ["xlink:href"], Qn = /* @__PURE__ */ C({
|
|
2440
2445
|
__name: "BooleanRadioItem",
|
|
2441
2446
|
props: {
|
|
2442
2447
|
question: {},
|
|
@@ -2466,7 +2471,7 @@ const Kn = /* @__PURE__ */ C({
|
|
|
2466
2471
|
disabled: s.question.isInputReadOnly,
|
|
2467
2472
|
class: l(s.question.cssClasses.itemRadioControl),
|
|
2468
2473
|
onChange: n
|
|
2469
|
-
}, null, 42,
|
|
2474
|
+
}, null, 42, Kn),
|
|
2470
2475
|
s.question.cssClasses.materialRadioDecorator ? (t(), u("span", {
|
|
2471
2476
|
key: 0,
|
|
2472
2477
|
class: l(s.question.cssClasses.materialRadioDecorator)
|
|
@@ -2477,7 +2482,7 @@ const Kn = /* @__PURE__ */ C({
|
|
|
2477
2482
|
}, [
|
|
2478
2483
|
p("use", {
|
|
2479
2484
|
"xlink:href": s.question.itemSvgIcon
|
|
2480
|
-
}, null, 8,
|
|
2485
|
+
}, null, 8, jn)
|
|
2481
2486
|
], 2)) : m("", !0)
|
|
2482
2487
|
], 2)) : m("", !0),
|
|
2483
2488
|
p("span", {
|
|
@@ -2489,20 +2494,20 @@ const Kn = /* @__PURE__ */ C({
|
|
|
2489
2494
|
], 2);
|
|
2490
2495
|
};
|
|
2491
2496
|
}
|
|
2492
|
-
}),
|
|
2497
|
+
}), Zn = ["name", "value", "id", ".indeterminate", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Gn = ["xlink:href"], Xn = /* @__PURE__ */ p("span", { class: "check" }, null, -1), Jn = ["id"];
|
|
2493
2498
|
X.Instance.registerRenderer(
|
|
2494
2499
|
"boolean",
|
|
2495
2500
|
"checkbox",
|
|
2496
2501
|
"sv-boolean-checkbox"
|
|
2497
2502
|
);
|
|
2498
|
-
const
|
|
2503
|
+
const Yn = /* @__PURE__ */ C({
|
|
2499
2504
|
__name: "BooleanCheckbox",
|
|
2500
2505
|
props: {
|
|
2501
2506
|
question: {},
|
|
2502
2507
|
css: {}
|
|
2503
2508
|
},
|
|
2504
2509
|
setup(r) {
|
|
2505
|
-
const o = r, n =
|
|
2510
|
+
const o = r, n = S(null);
|
|
2506
2511
|
return M(o, n), (s, e) => {
|
|
2507
2512
|
var c;
|
|
2508
2513
|
const i = q("survey-element-title-content"), a = q("sv-title-actions"), d = q("survey-string");
|
|
@@ -2530,7 +2535,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
2530
2535
|
"aria-label": s.question.ariaLabel,
|
|
2531
2536
|
"aria-invalid": s.question.ariaInvalid,
|
|
2532
2537
|
"aria-describedby": s.question.ariaDescribedBy
|
|
2533
|
-
}, null, 10,
|
|
2538
|
+
}, null, 10, Zn), [
|
|
2534
2539
|
[z, s.question.booleanValue]
|
|
2535
2540
|
]),
|
|
2536
2541
|
p("span", {
|
|
@@ -2542,9 +2547,9 @@ const _n = /* @__PURE__ */ C({
|
|
|
2542
2547
|
}, [
|
|
2543
2548
|
p("use", {
|
|
2544
2549
|
"xlink:href": s.question.svgIcon
|
|
2545
|
-
}, null, 8,
|
|
2550
|
+
}, null, 8, Gn)
|
|
2546
2551
|
], 2)) : m("", !0),
|
|
2547
|
-
|
|
2552
|
+
Xn
|
|
2548
2553
|
], 2),
|
|
2549
2554
|
s.question.isLabelRendered ? (t(), u("span", {
|
|
2550
2555
|
key: 0,
|
|
@@ -2561,7 +2566,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
2561
2566
|
element: s.question,
|
|
2562
2567
|
css: s.css
|
|
2563
2568
|
}, null, 8, ["element", "css"])) : m("", !0)
|
|
2564
|
-
], 10,
|
|
2569
|
+
], 10, Jn)) : m("", !0)
|
|
2565
2570
|
], 2),
|
|
2566
2571
|
s.question.canRenderLabelDescription ? (t(), u("div", {
|
|
2567
2572
|
key: 0,
|
|
@@ -2575,13 +2580,13 @@ const _n = /* @__PURE__ */ C({
|
|
|
2575
2580
|
], 2);
|
|
2576
2581
|
};
|
|
2577
2582
|
}
|
|
2578
|
-
}),
|
|
2583
|
+
}), _n = /* @__PURE__ */ C({
|
|
2579
2584
|
__name: "Multipletext",
|
|
2580
2585
|
props: {
|
|
2581
2586
|
question: {}
|
|
2582
2587
|
},
|
|
2583
2588
|
setup(r) {
|
|
2584
|
-
const o = r, n =
|
|
2589
|
+
const o = r, n = S(null);
|
|
2585
2590
|
return M(o, n), (s, e) => {
|
|
2586
2591
|
const i = q("survey-multipletext-item");
|
|
2587
2592
|
return t(), u("table", {
|
|
@@ -2590,76 +2595,74 @@ const _n = /* @__PURE__ */ C({
|
|
|
2590
2595
|
ref: n
|
|
2591
2596
|
}, [
|
|
2592
2597
|
p("tbody", null, [
|
|
2593
|
-
(t(!0), u(w, null,
|
|
2594
|
-
key: s.question.inputId + "rowkey" + d
|
|
2595
|
-
class: l(s.question.cssClasses.row)
|
|
2598
|
+
(t(!0), u(w, null, R(s.question.getRows(), (a, d) => (t(), u(w, {
|
|
2599
|
+
key: s.question.inputId + "rowkey" + d
|
|
2596
2600
|
}, [
|
|
2597
|
-
|
|
2598
|
-
key:
|
|
2599
|
-
class: l(s.question.cssClasses.
|
|
2601
|
+
a.isVisible ? (t(), u("tr", {
|
|
2602
|
+
key: 0,
|
|
2603
|
+
class: l(s.question.cssClasses.row)
|
|
2600
2604
|
}, [
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
},
|
|
2605
|
-
|
|
2606
|
-
|
|
2605
|
+
(t(!0), u(w, null, R(a.cells, (c) => (t(), u("td", {
|
|
2606
|
+
key: "item" + c.item.editor.id,
|
|
2607
|
+
class: l(c.className)
|
|
2608
|
+
}, [
|
|
2609
|
+
h(i, {
|
|
2610
|
+
question: s.question,
|
|
2611
|
+
cell: c
|
|
2612
|
+
}, null, 8, ["question", "cell"])
|
|
2613
|
+
], 2))), 128))
|
|
2614
|
+
], 2)) : m("", !0)
|
|
2615
|
+
], 64))), 128))
|
|
2607
2616
|
])
|
|
2608
2617
|
], 2);
|
|
2609
2618
|
};
|
|
2610
2619
|
}
|
|
2611
|
-
}), eo = /* @__PURE__ */ C({
|
|
2620
|
+
}), xn = { key: 1 }, eo = /* @__PURE__ */ C({
|
|
2612
2621
|
__name: "MultipletextItem",
|
|
2613
2622
|
props: {
|
|
2614
2623
|
question: {},
|
|
2615
|
-
|
|
2624
|
+
cell: {}
|
|
2616
2625
|
},
|
|
2617
2626
|
setup(r) {
|
|
2618
|
-
const o = r, n = (
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2627
|
+
const o = r, n = (e) => ee(e);
|
|
2628
|
+
B(() => o.cell.item.editor);
|
|
2629
|
+
const s = T(() => o.cell.item);
|
|
2630
|
+
return (e, i) => {
|
|
2631
|
+
const a = q("survey-string"), d = q("survey-errors");
|
|
2632
|
+
return e.cell.isErrorsCell ? (t(), y(d, {
|
|
2633
|
+
key: 1,
|
|
2634
|
+
element: s.value.editor
|
|
2635
|
+
}, null, 8, ["element"])) : (t(), u("label", {
|
|
2636
|
+
key: 0,
|
|
2637
|
+
class: l(e.question.getItemLabelCss(s.value))
|
|
2623
2638
|
}, [
|
|
2624
2639
|
p("span", {
|
|
2625
|
-
class: l(
|
|
2640
|
+
class: l(e.question.getItemTitleCss())
|
|
2626
2641
|
}, [
|
|
2627
|
-
s.
|
|
2642
|
+
s.value.editor.isRequireTextBeforeTitle || s.value.editor.isRequireTextOnStart ? (t(), u("span", {
|
|
2628
2643
|
key: 0,
|
|
2629
|
-
class: l(
|
|
2630
|
-
}, I(s.
|
|
2631
|
-
h(
|
|
2632
|
-
locString: s.
|
|
2644
|
+
class: l(e.question.cssClasses.requiredText)
|
|
2645
|
+
}, I(s.value.editor.requiredText), 3)) : m("", !0),
|
|
2646
|
+
h(a, {
|
|
2647
|
+
locString: s.value.locTitle
|
|
2633
2648
|
}, null, 8, ["locString"]),
|
|
2634
|
-
s.
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2649
|
+
s.value.editor.isRequireTextAfterTitle ? (t(), u("span", xn, "\xA0")) : m("", !0),
|
|
2650
|
+
s.value.editor.isRequireTextAfterTitle ? (t(), u("span", {
|
|
2651
|
+
key: 2,
|
|
2652
|
+
"aria-hidden": "true",
|
|
2653
|
+
class: l(e.question.cssClasses.requiredText)
|
|
2654
|
+
}, I(s.value.editor.requiredText), 3)) : m("", !0)
|
|
2638
2655
|
], 2),
|
|
2639
2656
|
(t(), u("div", {
|
|
2640
|
-
key: s.
|
|
2641
|
-
class: l(
|
|
2657
|
+
key: s.value.editor.id,
|
|
2658
|
+
class: l(e.question.getItemCss()),
|
|
2659
|
+
onFocusin: i[0] || (i[0] = (c) => s.value.focusIn())
|
|
2642
2660
|
}, [
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
(t(), y(N(n(s.item.editor)), {
|
|
2649
|
-
question: s.item.editor
|
|
2650
|
-
}, null, 8, ["question"])),
|
|
2651
|
-
s.item.editor.showErrorOnBottom ? (t(), y(a, {
|
|
2652
|
-
key: 1,
|
|
2653
|
-
element: s.item.editor,
|
|
2654
|
-
location: "bottom"
|
|
2655
|
-
}, null, 8, ["element"])) : m("", !0)
|
|
2656
|
-
], 2)),
|
|
2657
|
-
s.item.editor.isErrorsModeTooltip ? (t(), y(a, {
|
|
2658
|
-
key: 0,
|
|
2659
|
-
element: s.item.editor,
|
|
2660
|
-
location: "tooltip"
|
|
2661
|
-
}, null, 8, ["element"])) : m("", !0)
|
|
2662
|
-
], 2);
|
|
2661
|
+
(t(), y(N(n(s.value.editor)), {
|
|
2662
|
+
question: s.value.editor
|
|
2663
|
+
}, null, 8, ["question"]))
|
|
2664
|
+
], 34))
|
|
2665
|
+
], 2));
|
|
2663
2666
|
};
|
|
2664
2667
|
}
|
|
2665
2668
|
}), so = ["aria-label"], no = { key: 0 }, oo = { key: 0 }, to = ["onClick"], io = ["data-responsive-title", "onClick"], lo = ["name", "onUpdate:modelValue", "value", "disabled", "id", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], ro = ["xlink:href"], ao = /* @__PURE__ */ C({
|
|
@@ -2668,7 +2671,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
2668
2671
|
question: {}
|
|
2669
2672
|
},
|
|
2670
2673
|
setup(r) {
|
|
2671
|
-
const o = r, n =
|
|
2674
|
+
const o = r, n = S(null), s = F();
|
|
2672
2675
|
M(
|
|
2673
2676
|
o,
|
|
2674
2677
|
n,
|
|
@@ -2702,7 +2705,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
2702
2705
|
i.question.showHeader ? (t(), u("thead", no, [
|
|
2703
2706
|
p("tr", null, [
|
|
2704
2707
|
i.question.hasRows ? (t(), u("td", oo)) : m("", !0),
|
|
2705
|
-
(t(!0), u(w, null,
|
|
2708
|
+
(t(!0), u(w, null, R(i.question.visibleColumns, (c, v) => (t(), u("th", {
|
|
2706
2709
|
key: v,
|
|
2707
2710
|
class: l(i.question.cssClasses.headerCell),
|
|
2708
2711
|
style: $({
|
|
@@ -2717,7 +2720,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
2717
2720
|
])
|
|
2718
2721
|
])) : m("", !0),
|
|
2719
2722
|
p("tbody", null, [
|
|
2720
|
-
(t(!0), u(w, null,
|
|
2723
|
+
(t(!0), u(w, null, R(s.value, (c, v) => (t(), u("tr", {
|
|
2721
2724
|
key: "row_" + c.name + "_" + v,
|
|
2722
2725
|
class: l(c.rowClasses || void 0)
|
|
2723
2726
|
}, [
|
|
@@ -2734,7 +2737,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
2734
2737
|
], 6), [
|
|
2735
2738
|
[H, i.question.hasRows]
|
|
2736
2739
|
]),
|
|
2737
|
-
i.question.hasCellText ? (t(!0), u(w, { key: 0 },
|
|
2740
|
+
i.question.hasCellText ? (t(!0), u(w, { key: 0 }, R(i.question.visibleColumns, (f, g) => (t(), u("td", {
|
|
2738
2741
|
key: g,
|
|
2739
2742
|
class: l(i.question.getItemClass(c, f)),
|
|
2740
2743
|
onClick: (k) => e(c, f)
|
|
@@ -2743,7 +2746,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
2743
2746
|
locString: i.question.getCellDisplayLocText(c.name, f)
|
|
2744
2747
|
}, null, 8, ["locString"])
|
|
2745
2748
|
], 10, to))), 128)) : m("", !0),
|
|
2746
|
-
i.question.hasCellText ? m("", !0) : (t(!0), u(w, { key: 1 },
|
|
2749
|
+
i.question.hasCellText ? m("", !0) : (t(!0), u(w, { key: 1 }, R(i.question.visibleColumns, (f, g) => (t(), u("td", {
|
|
2747
2750
|
key: g,
|
|
2748
2751
|
"data-responsive-title": f.locText.renderedHtml,
|
|
2749
2752
|
class: l(i.question.cssClasses.cell),
|
|
@@ -2804,7 +2807,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
2804
2807
|
question: {}
|
|
2805
2808
|
},
|
|
2806
2809
|
setup(r) {
|
|
2807
|
-
const o = r, n =
|
|
2810
|
+
const o = r, n = S(null);
|
|
2808
2811
|
return M(o, n), (s, e) => {
|
|
2809
2812
|
const i = q("survey-matrixtable");
|
|
2810
2813
|
return t(), y(i, {
|
|
@@ -2820,7 +2823,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
2820
2823
|
question: {}
|
|
2821
2824
|
},
|
|
2822
2825
|
setup(r) {
|
|
2823
|
-
const o = r, n =
|
|
2826
|
+
const o = r, n = T(() => o.question.renderedTable);
|
|
2824
2827
|
return B(
|
|
2825
2828
|
() => n.value,
|
|
2826
2829
|
(s) => {
|
|
@@ -2845,7 +2848,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
2845
2848
|
}, [
|
|
2846
2849
|
n.value.showHeader ? (t(), u("thead", mo, [
|
|
2847
2850
|
p("tr", null, [
|
|
2848
|
-
(t(!0), u(w, null,
|
|
2851
|
+
(t(!0), u(w, null, R(n.value.headerRow.cells, (c) => (t(), u(w, null, [
|
|
2849
2852
|
c.hasTitle ? (t(), u("th", {
|
|
2850
2853
|
class: l(c.className),
|
|
2851
2854
|
key: "header_" + c.id,
|
|
@@ -2869,7 +2872,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
2869
2872
|
])
|
|
2870
2873
|
])) : m("", !0),
|
|
2871
2874
|
p("tbody", null, [
|
|
2872
|
-
(t(!0), u(w, null,
|
|
2875
|
+
(t(!0), u(w, null, R(n.value.rows, (c) => (t(), u(w, {
|
|
2873
2876
|
key: s.question.inputId + "_" + c.id
|
|
2874
2877
|
}, [
|
|
2875
2878
|
c.visible ? (t(), u("tr", {
|
|
@@ -2877,7 +2880,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
2877
2880
|
"data-sv-drop-target-matrix-row": c.row && c.row.id,
|
|
2878
2881
|
class: l(c.className)
|
|
2879
2882
|
}, [
|
|
2880
|
-
(t(!0), u(w, null,
|
|
2883
|
+
(t(!0), u(w, null, R(c.cells, (v, f) => (t(), y(d, {
|
|
2881
2884
|
cell: v,
|
|
2882
2885
|
question: s.question,
|
|
2883
2886
|
key: c.id + "_" + f
|
|
@@ -2887,7 +2890,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
2887
2890
|
]),
|
|
2888
2891
|
n.value.showFooter ? (t(), u("tfoot", po, [
|
|
2889
2892
|
p("tr", null, [
|
|
2890
|
-
(t(!0), u(w, null,
|
|
2893
|
+
(t(!0), u(w, null, R(n.value.footerRow.cells, (c, v) => (t(), y(d, {
|
|
2891
2894
|
cell: c,
|
|
2892
2895
|
question: s.question,
|
|
2893
2896
|
key: "footer_" + v
|
|
@@ -2921,8 +2924,8 @@ const _n = /* @__PURE__ */ C({
|
|
|
2921
2924
|
cell: {}
|
|
2922
2925
|
},
|
|
2923
2926
|
setup(r) {
|
|
2924
|
-
const o = r, n =
|
|
2925
|
-
return
|
|
2927
|
+
const o = r, n = S(!1), s = S(), e = () => o.cell.headers, i = () => !!o.cell.width || !!o.cell.minWidth ? { width: o.cell.width, minWidth: o.cell.minWidth } : null, a = () => o.cell.index || "", d = () => n.value = o.cell.question.isVisible, c = (v) => ee(v);
|
|
2928
|
+
return A(() => {
|
|
2926
2929
|
if (!(!o.cell.hasQuestion || !o.question || !o.question.survey)) {
|
|
2927
2930
|
d(), o.cell.question.registerPropertyChangedHandlers(["isVisible"], () => {
|
|
2928
2931
|
d();
|
|
@@ -2937,13 +2940,14 @@ const _n = /* @__PURE__ */ C({
|
|
|
2937
2940
|
o.question.survey.matrixAfterCellRender(o.question, v);
|
|
2938
2941
|
}
|
|
2939
2942
|
}), (v, f) => {
|
|
2940
|
-
const g = q("survey-errors"), k = q("sv-matrix-drag-drop-icon"), P = q("sv-action-bar"), L = q("survey-radiogroup-item"),
|
|
2943
|
+
const g = q("survey-errors"), k = q("sv-matrix-drag-drop-icon"), P = q("sv-action-bar"), L = q("survey-radiogroup-item"), E = q("survey-checkbox-item"), j = q("survey-other-choice"), J = q("survey-string");
|
|
2941
2944
|
return t(), u("td", {
|
|
2942
2945
|
class: l(v.cell.className),
|
|
2943
2946
|
"data-responsive-title": e(),
|
|
2944
2947
|
title: v.cell.getTitle(),
|
|
2945
2948
|
style: $(i()),
|
|
2946
2949
|
colspan: v.cell.colSpans,
|
|
2950
|
+
onFocusin: f[0] || (f[0] = (ne) => v.cell.focusIn()),
|
|
2947
2951
|
ref_key: "root",
|
|
2948
2952
|
ref: s
|
|
2949
2953
|
}, [
|
|
@@ -2989,7 +2993,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
2989
2993
|
index: a(),
|
|
2990
2994
|
hideLabel: !0
|
|
2991
2995
|
}, null, 8, ["class", "question", "item", "index"])) : m("", !0),
|
|
2992
|
-
v.cell.isCheckbox ? (t(), y(
|
|
2996
|
+
v.cell.isCheckbox ? (t(), y(E, {
|
|
2993
2997
|
key: v.cell.item.value,
|
|
2994
2998
|
class: l(v.cell.question.getItemClass(v.cell.item)),
|
|
2995
2999
|
question: v.cell.question,
|
|
@@ -2997,7 +3001,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
2997
3001
|
index: a(),
|
|
2998
3002
|
hideLabel: !0
|
|
2999
3003
|
}, null, 8, ["class", "question", "item", "index"])) : m("", !0),
|
|
3000
|
-
v.cell.isOtherChoice ? (t(), y(
|
|
3004
|
+
v.cell.isOtherChoice ? (t(), y(j, {
|
|
3001
3005
|
key: 4,
|
|
3002
3006
|
question: v.cell.question
|
|
3003
3007
|
}, null, 8, ["question"])) : m("", !0)
|
|
@@ -3010,7 +3014,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
3010
3014
|
key: 6,
|
|
3011
3015
|
class: l(v.question.cssClasses.cellRequiredText)
|
|
3012
3016
|
}, I(v.cell.requiredText), 3)) : m("", !0)
|
|
3013
|
-
],
|
|
3017
|
+
], 46, go);
|
|
3014
3018
|
};
|
|
3015
3019
|
}
|
|
3016
3020
|
}), ho = /* @__PURE__ */ C({
|
|
@@ -3019,7 +3023,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
3019
3023
|
question: {}
|
|
3020
3024
|
},
|
|
3021
3025
|
setup(r) {
|
|
3022
|
-
const o = r, n =
|
|
3026
|
+
const o = r, n = S(null);
|
|
3023
3027
|
M(o, n);
|
|
3024
3028
|
const s = () => {
|
|
3025
3029
|
o.question.addRowUI();
|
|
@@ -3098,8 +3102,8 @@ const _n = /* @__PURE__ */ C({
|
|
|
3098
3102
|
});
|
|
3099
3103
|
function se(r, o = !0) {
|
|
3100
3104
|
return {
|
|
3101
|
-
question:
|
|
3102
|
-
row: o ?
|
|
3105
|
+
question: T(() => r.item.data.question),
|
|
3106
|
+
row: o ? T(() => r.item.data.row) : void 0
|
|
3103
3107
|
};
|
|
3104
3108
|
}
|
|
3105
3109
|
const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
@@ -3145,7 +3149,7 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3145
3149
|
class: l(b(n).cssClasses.iconDrag)
|
|
3146
3150
|
}, null, 2));
|
|
3147
3151
|
}
|
|
3148
|
-
}), wo = ["aria-expanded", "aria-controls"],
|
|
3152
|
+
}), wo = ["aria-expanded", "aria-controls"], So = /* @__PURE__ */ C({
|
|
3149
3153
|
__name: "DetailButton",
|
|
3150
3154
|
props: {
|
|
3151
3155
|
item: {}
|
|
@@ -3169,14 +3173,14 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3169
3173
|
], 10, wo);
|
|
3170
3174
|
};
|
|
3171
3175
|
}
|
|
3172
|
-
}),
|
|
3176
|
+
}), To = /* @__PURE__ */ C({
|
|
3173
3177
|
__name: "PanelDynamic",
|
|
3174
3178
|
props: {
|
|
3175
3179
|
question: {},
|
|
3176
3180
|
css: {}
|
|
3177
3181
|
},
|
|
3178
3182
|
setup(r) {
|
|
3179
|
-
const o = r, n =
|
|
3183
|
+
const o = r, n = S(null), s = x();
|
|
3180
3184
|
M(
|
|
3181
3185
|
o,
|
|
3182
3186
|
n,
|
|
@@ -3199,7 +3203,7 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3199
3203
|
};
|
|
3200
3204
|
}
|
|
3201
3205
|
);
|
|
3202
|
-
const e =
|
|
3206
|
+
const e = T(() => {
|
|
3203
3207
|
if (o.question.isRenderModeList)
|
|
3204
3208
|
return o.question.panels;
|
|
3205
3209
|
const a = [];
|
|
@@ -3239,7 +3243,7 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3239
3243
|
key: 2,
|
|
3240
3244
|
question: a.question
|
|
3241
3245
|
}, null, 8, ["question"])) : m("", !0),
|
|
3242
|
-
(t(!0), u(w, null,
|
|
3246
|
+
(t(!0), u(w, null, R(e.value, (L, E) => (t(), u(w, {
|
|
3243
3247
|
key: L.id
|
|
3244
3248
|
}, [
|
|
3245
3249
|
p("div", {
|
|
@@ -3254,7 +3258,7 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3254
3258
|
data: { question: a.question, panel: L }
|
|
3255
3259
|
}, null, 8, ["data"])) : m("", !0)
|
|
3256
3260
|
], 2),
|
|
3257
|
-
a.question.isRenderModeList &&
|
|
3261
|
+
a.question.isRenderModeList && E < a.question.visiblePanelCount - 1 ? (t(), u("hr", {
|
|
3258
3262
|
class: l(a.question.cssClasses.separator),
|
|
3259
3263
|
key: "separator" + L.id
|
|
3260
3264
|
}, null, 2)) : m("", !0)
|
|
@@ -3357,8 +3361,8 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3357
3361
|
};
|
|
3358
3362
|
}
|
|
3359
3363
|
});
|
|
3360
|
-
function
|
|
3361
|
-
return
|
|
3364
|
+
function K(r) {
|
|
3365
|
+
return T(
|
|
3362
3366
|
() => r.item && r.item.data.question || r.data.question
|
|
3363
3367
|
);
|
|
3364
3368
|
}
|
|
@@ -3369,7 +3373,7 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3369
3373
|
data: {}
|
|
3370
3374
|
},
|
|
3371
3375
|
setup(r) {
|
|
3372
|
-
const n =
|
|
3376
|
+
const n = K(r), s = () => {
|
|
3373
3377
|
n.value.addPanelUI();
|
|
3374
3378
|
};
|
|
3375
3379
|
return (e, i) => b(n).canAddPanel ? (t(), u("button", {
|
|
@@ -3390,7 +3394,7 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3390
3394
|
data: {}
|
|
3391
3395
|
},
|
|
3392
3396
|
setup(r) {
|
|
3393
|
-
const n =
|
|
3397
|
+
const n = K(r), s = () => {
|
|
3394
3398
|
n.value.goToNextPanel();
|
|
3395
3399
|
};
|
|
3396
3400
|
return (e, i) => {
|
|
@@ -3414,7 +3418,7 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3414
3418
|
data: {}
|
|
3415
3419
|
},
|
|
3416
3420
|
setup(r) {
|
|
3417
|
-
const n =
|
|
3421
|
+
const n = K(r), s = () => {
|
|
3418
3422
|
n.value.goToPrevPanel();
|
|
3419
3423
|
};
|
|
3420
3424
|
return (e, i) => {
|
|
@@ -3438,7 +3442,7 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3438
3442
|
data: {}
|
|
3439
3443
|
},
|
|
3440
3444
|
setup(r) {
|
|
3441
|
-
const o = r, n =
|
|
3445
|
+
const o = r, n = K(o), s = T(
|
|
3442
3446
|
() => o.item && o.item.data.panel || o.data.panel
|
|
3443
3447
|
), e = (i) => {
|
|
3444
3448
|
n.value.isInputReadOnly || n.value.removePanelUI(i);
|
|
@@ -3463,65 +3467,60 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3463
3467
|
data: {}
|
|
3464
3468
|
},
|
|
3465
3469
|
setup(r) {
|
|
3466
|
-
const n =
|
|
3470
|
+
const n = K(r);
|
|
3467
3471
|
return (s, e) => (t(), u("div", {
|
|
3468
3472
|
class: l(b(n).cssClasses.progressText)
|
|
3469
3473
|
}, I(b(n).progressText), 3));
|
|
3470
3474
|
}
|
|
3471
|
-
}),
|
|
3475
|
+
}), Ao = ["id"], Eo = /* @__PURE__ */ C({
|
|
3472
3476
|
__name: "Errors",
|
|
3473
3477
|
props: {
|
|
3474
3478
|
element: {},
|
|
3475
3479
|
location: {}
|
|
3476
3480
|
},
|
|
3477
3481
|
setup(r) {
|
|
3478
|
-
const o =
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
}), O(() => {
|
|
3483
|
-
s && s.dispose();
|
|
3484
|
-
}), (e, i) => {
|
|
3485
|
-
const a = q("survey-string");
|
|
3486
|
-
return e.element.hasVisibleErrors ? (t(), u("div", {
|
|
3482
|
+
const o = S();
|
|
3483
|
+
return (n, s) => {
|
|
3484
|
+
const e = q("survey-string");
|
|
3485
|
+
return n.element.hasVisibleErrors ? (t(), u("div", {
|
|
3487
3486
|
key: 0,
|
|
3488
3487
|
role: "alert",
|
|
3489
3488
|
"aria-live": "polite",
|
|
3490
|
-
class: l(
|
|
3491
|
-
id:
|
|
3489
|
+
class: l(n.element.cssError),
|
|
3490
|
+
id: n.element.id + "_errors",
|
|
3492
3491
|
ref_key: "root",
|
|
3493
|
-
ref:
|
|
3492
|
+
ref: o
|
|
3494
3493
|
}, [
|
|
3495
|
-
(t(!0), u(w, null,
|
|
3496
|
-
key: "error_" +
|
|
3494
|
+
(t(!0), u(w, null, R(n.element.errors, (i, a) => (t(), u("div", {
|
|
3495
|
+
key: "error_" + a
|
|
3497
3496
|
}, [
|
|
3498
3497
|
p("span", {
|
|
3499
3498
|
class: l(
|
|
3500
|
-
|
|
3499
|
+
n.element.cssClasses ? n.element.cssClasses.error.icon || void 0 : "panel-error-icon"
|
|
3501
3500
|
),
|
|
3502
3501
|
"aria-hidden": "true"
|
|
3503
3502
|
}, null, 2),
|
|
3504
3503
|
p("span", {
|
|
3505
3504
|
class: l(
|
|
3506
|
-
|
|
3505
|
+
n.element.cssClasses ? n.element.cssClasses.error.item || void 0 : "panel-error-item"
|
|
3507
3506
|
)
|
|
3508
3507
|
}, [
|
|
3509
|
-
h(
|
|
3510
|
-
locString:
|
|
3508
|
+
h(e, {
|
|
3509
|
+
locString: i.locText
|
|
3511
3510
|
}, null, 8, ["locString"])
|
|
3512
3511
|
], 2)
|
|
3513
3512
|
]))), 128))
|
|
3514
|
-
], 10,
|
|
3513
|
+
], 10, Ao)) : m("", !0);
|
|
3515
3514
|
};
|
|
3516
3515
|
}
|
|
3517
|
-
}),
|
|
3516
|
+
}), Vo = { key: 0 }, Oo = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], Fo = /* @__PURE__ */ C({
|
|
3518
3517
|
__name: "QuestionComment",
|
|
3519
3518
|
props: {
|
|
3520
3519
|
question: {},
|
|
3521
3520
|
commentClass: {}
|
|
3522
3521
|
},
|
|
3523
3522
|
setup(r) {
|
|
3524
|
-
return (o, n) => o.question.isReadOnlyRenderDiv() ? (t(), u("div",
|
|
3523
|
+
return (o, n) => o.question.isReadOnlyRenderDiv() ? (t(), u("div", Vo, I(o.question.comment), 1)) : (t(), u("textarea", {
|
|
3525
3524
|
key: 1,
|
|
3526
3525
|
id: o.question.commentId,
|
|
3527
3526
|
readonly: o.question.isInputReadOnly,
|
|
@@ -3529,7 +3528,7 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3529
3528
|
class: l(o.question.cssClasses.other || o.commentClass),
|
|
3530
3529
|
value: o.question.comment,
|
|
3531
3530
|
maxlength: o.question.getOthersMaxLength(),
|
|
3532
|
-
placeholder: o.question.
|
|
3531
|
+
placeholder: o.question.renderedCommentPlaceholder,
|
|
3533
3532
|
"aria-label": o.question.ariaLabel,
|
|
3534
3533
|
"aria-required": o.question.ariaRequired,
|
|
3535
3534
|
style: $({ resize: o.question.resizeStyle }),
|
|
@@ -3539,7 +3538,7 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3539
3538
|
onInput: n[1] || (n[1] = (s) => {
|
|
3540
3539
|
o.question.onCommentInput(s);
|
|
3541
3540
|
})
|
|
3542
|
-
}, null, 46,
|
|
3541
|
+
}, null, 46, Oo));
|
|
3543
3542
|
}
|
|
3544
3543
|
}), Wo = /* @__PURE__ */ C({
|
|
3545
3544
|
__name: "TitleElement",
|
|
@@ -3549,7 +3548,7 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3549
3548
|
},
|
|
3550
3549
|
setup(r) {
|
|
3551
3550
|
const o = (n) => {
|
|
3552
|
-
|
|
3551
|
+
de(n);
|
|
3553
3552
|
};
|
|
3554
3553
|
return (n, s) => {
|
|
3555
3554
|
const e = q("survey-element-title-content"), i = q("sv-title-actions");
|
|
@@ -3633,7 +3632,7 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3633
3632
|
css: {}
|
|
3634
3633
|
},
|
|
3635
3634
|
setup(r) {
|
|
3636
|
-
const o = r, n =
|
|
3635
|
+
const o = r, n = T(() => o.element.getTitleToolbar());
|
|
3637
3636
|
return (s, e) => {
|
|
3638
3637
|
const i = q("survey-string"), a = q("survey-element-title-content"), d = q("sv-action-bar");
|
|
3639
3638
|
return t(), u("div", Zo, [
|
|
@@ -3675,7 +3674,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3675
3674
|
title: {}
|
|
3676
3675
|
},
|
|
3677
3676
|
setup(r) {
|
|
3678
|
-
const o = r, n =
|
|
3677
|
+
const o = r, n = S(), s = () => {
|
|
3679
3678
|
Se(
|
|
3680
3679
|
o.size,
|
|
3681
3680
|
o.width,
|
|
@@ -3685,9 +3684,9 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3685
3684
|
o.title
|
|
3686
3685
|
);
|
|
3687
3686
|
};
|
|
3688
|
-
return
|
|
3687
|
+
return G(() => {
|
|
3689
3688
|
s();
|
|
3690
|
-
}),
|
|
3689
|
+
}), A(() => {
|
|
3691
3690
|
s();
|
|
3692
3691
|
}), (e, i) => (t(), u("svg", {
|
|
3693
3692
|
ref_key: "svgIconElement",
|
|
@@ -3701,13 +3700,14 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3701
3700
|
__name: "ActionBar",
|
|
3702
3701
|
props: {
|
|
3703
3702
|
model: {},
|
|
3703
|
+
container: {},
|
|
3704
3704
|
handleClick: { type: Boolean }
|
|
3705
3705
|
},
|
|
3706
3706
|
setup(r) {
|
|
3707
|
-
const o = r, n =
|
|
3708
|
-
return B(() => o.model),
|
|
3707
|
+
const o = r, n = S(null);
|
|
3708
|
+
return B(() => o.model), A(() => {
|
|
3709
3709
|
!o.model.hasActions || o.model.initResponsivityManager(n.value);
|
|
3710
|
-
}),
|
|
3710
|
+
}), V(() => {
|
|
3711
3711
|
o.model.resetResponsivityManager();
|
|
3712
3712
|
}), (s, e) => {
|
|
3713
3713
|
const i = q("sv-action");
|
|
@@ -3720,7 +3720,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3720
3720
|
a.stopPropagation();
|
|
3721
3721
|
})
|
|
3722
3722
|
}, [
|
|
3723
|
-
(t(!0), u(w, null,
|
|
3723
|
+
(t(!0), u(w, null, R(s.model.renderedActions, (a) => (t(), y(i, {
|
|
3724
3724
|
key: a.id,
|
|
3725
3725
|
item: a
|
|
3726
3726
|
}, null, 8, ["item"]))), 128))
|
|
@@ -3733,7 +3733,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3733
3733
|
item: {}
|
|
3734
3734
|
},
|
|
3735
3735
|
setup(r) {
|
|
3736
|
-
const o = r, n =
|
|
3736
|
+
const o = r, n = T(
|
|
3737
3737
|
() => o.item.component || "sv-action-bar-item"
|
|
3738
3738
|
);
|
|
3739
3739
|
return B(() => o.item), (s, e) => {
|
|
@@ -3794,12 +3794,12 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3794
3794
|
item: {}
|
|
3795
3795
|
},
|
|
3796
3796
|
setup(r) {
|
|
3797
|
-
const o = r, n =
|
|
3797
|
+
const o = r, n = Re;
|
|
3798
3798
|
let s;
|
|
3799
3799
|
return B(
|
|
3800
3800
|
() => o.item,
|
|
3801
3801
|
(e) => {
|
|
3802
|
-
s = new
|
|
3802
|
+
s = new Te(e);
|
|
3803
3803
|
},
|
|
3804
3804
|
() => {
|
|
3805
3805
|
s.dispose();
|
|
@@ -3846,7 +3846,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3846
3846
|
item: {}
|
|
3847
3847
|
},
|
|
3848
3848
|
setup(r) {
|
|
3849
|
-
const o = r, n =
|
|
3849
|
+
const o = r, n = T(() => o.item && o.item.innerCss);
|
|
3850
3850
|
return (s, e) => (t(), u("div", {
|
|
3851
3851
|
class: l(["sv-action-bar-separator", n.value])
|
|
3852
3852
|
}, null, 2));
|
|
@@ -3857,7 +3857,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3857
3857
|
model: {}
|
|
3858
3858
|
},
|
|
3859
3859
|
setup(r) {
|
|
3860
|
-
const o = r, n =
|
|
3860
|
+
const o = r, n = S(null), s = (a) => {
|
|
3861
3861
|
const d = o.model;
|
|
3862
3862
|
d.filterString = a.target.value;
|
|
3863
3863
|
}, e = (a) => {
|
|
@@ -3866,7 +3866,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3866
3866
|
}, i = (a) => {
|
|
3867
3867
|
o.model.onMouseMove(a);
|
|
3868
3868
|
};
|
|
3869
|
-
return B(() => o.model),
|
|
3869
|
+
return B(() => o.model), A(() => {
|
|
3870
3870
|
o.model.initListContainerHtmlElement(n.value);
|
|
3871
3871
|
}), (a, d) => {
|
|
3872
3872
|
const c = q("sv-svg-icon"), v = q("sv-list-item");
|
|
@@ -3932,7 +3932,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3932
3932
|
a.model.onKeyDown(f);
|
|
3933
3933
|
})
|
|
3934
3934
|
}, [
|
|
3935
|
-
(t(!0), u(w, null,
|
|
3935
|
+
(t(!0), u(w, null, R(a.model.renderedActions, (f) => (t(), y(v, {
|
|
3936
3936
|
item: f,
|
|
3937
3937
|
model: a.model,
|
|
3938
3938
|
key: f.id
|
|
@@ -3950,10 +3950,10 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3950
3950
|
item: {}
|
|
3951
3951
|
},
|
|
3952
3952
|
setup(r) {
|
|
3953
|
-
const o = r, n =
|
|
3953
|
+
const o = r, n = T(() => o.item.elementId), s = (e) => {
|
|
3954
3954
|
o.model.onItemClick(o.item), e.stopPropagation();
|
|
3955
3955
|
};
|
|
3956
|
-
return B(() => o.item),
|
|
3956
|
+
return B(() => o.item), A(() => {
|
|
3957
3957
|
setTimeout(() => {
|
|
3958
3958
|
o.model.onLastItemRended(o.item);
|
|
3959
3959
|
});
|
|
@@ -4005,21 +4005,21 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4005
4005
|
},
|
|
4006
4006
|
setup(r) {
|
|
4007
4007
|
const o = r, n = F(
|
|
4008
|
-
|
|
4009
|
-
), s =
|
|
4010
|
-
return
|
|
4008
|
+
te(o.model, void 0)
|
|
4009
|
+
), s = S(null);
|
|
4010
|
+
return Z(
|
|
4011
4011
|
() => o.model,
|
|
4012
4012
|
(e) => {
|
|
4013
|
-
n.value.dispose(), n.value =
|
|
4013
|
+
n.value.dispose(), n.value = te(e, void 0);
|
|
4014
4014
|
},
|
|
4015
4015
|
{ immediate: !0 }
|
|
4016
|
-
), B(() => n.value),
|
|
4016
|
+
), B(() => n.value), A(() => {
|
|
4017
4017
|
const e = s.value;
|
|
4018
4018
|
n.value.setComponentElement(
|
|
4019
4019
|
e,
|
|
4020
4020
|
o.getTarget ? o.getTarget(e) : void 0
|
|
4021
4021
|
);
|
|
4022
|
-
}),
|
|
4022
|
+
}), V(() => {
|
|
4023
4023
|
n.value.dispose();
|
|
4024
4024
|
}), (e, i) => {
|
|
4025
4025
|
const a = q("sv-popup-container");
|
|
@@ -4031,10 +4031,10 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4031
4031
|
], 512);
|
|
4032
4032
|
};
|
|
4033
4033
|
}
|
|
4034
|
-
}), It = { class: "sv-popup__shadow" }, wt = { class: "sv-popup__body-content" },
|
|
4034
|
+
}), It = { class: "sv-popup__shadow" }, wt = { class: "sv-popup__body-content" }, St = {
|
|
4035
4035
|
key: 0,
|
|
4036
4036
|
class: "sv-popup__body-header"
|
|
4037
|
-
},
|
|
4037
|
+
}, Tt = { class: "sv-popup__scrolling-content" }, Rt = { class: "sv-popup__content" }, $t = {
|
|
4038
4038
|
key: 1,
|
|
4039
4039
|
class: "sv-popup__body-footer"
|
|
4040
4040
|
}, Bt = /* @__PURE__ */ C({
|
|
@@ -4048,7 +4048,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4048
4048
|
const s = (e) => {
|
|
4049
4049
|
e.stopPropagation();
|
|
4050
4050
|
};
|
|
4051
|
-
return B(() => o.model),
|
|
4051
|
+
return B(() => o.model), G(() => {
|
|
4052
4052
|
const e = o.model;
|
|
4053
4053
|
!n && e.isVisible && o.model.updateOnShowing(), n = e.isVisible;
|
|
4054
4054
|
}), (e, i) => {
|
|
@@ -4080,8 +4080,8 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4080
4080
|
model: e.model
|
|
4081
4081
|
}, null, 8, ["model"])) : m("", !0),
|
|
4082
4082
|
p("div", wt, [
|
|
4083
|
-
e.model.title ? (t(), u("div",
|
|
4084
|
-
p("div",
|
|
4083
|
+
e.model.title ? (t(), u("div", St, I(e.model.title), 1)) : m("", !0),
|
|
4084
|
+
p("div", Tt, [
|
|
4085
4085
|
p("div", Rt, [
|
|
4086
4086
|
(t(), y(N(e.model.contentComponentName), ge(Ce(e.model.contentComponentData)), null, 16))
|
|
4087
4087
|
])
|
|
@@ -4124,31 +4124,33 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4124
4124
|
needRenderWrapper: {}
|
|
4125
4125
|
},
|
|
4126
4126
|
setup(r) {
|
|
4127
|
-
const o = r, n =
|
|
4127
|
+
const o = r, n = T(
|
|
4128
4128
|
() => o.survey.getContainerContent(o.container)
|
|
4129
4129
|
);
|
|
4130
4130
|
return (s, e) => n.value.length > 0 ? (t(), u(w, { key: 0 }, [
|
|
4131
4131
|
s.needRenderWrapper ? (t(), u("div", Dt, [
|
|
4132
|
-
(t(!0), u(w, null,
|
|
4132
|
+
(t(!0), u(w, null, R(n.value, (i, a) => (t(), y(N(i.component), {
|
|
4133
4133
|
survey: s.survey,
|
|
4134
|
+
container: s.container,
|
|
4134
4135
|
model: i.data
|
|
4135
|
-
}, null, 8, ["survey", "model"]))), 256))
|
|
4136
|
-
])) : (t(!0), u(w, { key: 1 },
|
|
4136
|
+
}, null, 8, ["survey", "container", "model"]))), 256))
|
|
4137
|
+
])) : (t(!0), u(w, { key: 1 }, R(n.value, (i, a) => (t(), y(N(i.component), {
|
|
4137
4138
|
survey: s.survey,
|
|
4138
4139
|
model: i.data
|
|
4139
4140
|
}, null, 8, ["survey", "model"]))), 256))
|
|
4140
4141
|
], 64)) : m("", !0);
|
|
4141
4142
|
}
|
|
4142
|
-
}),
|
|
4143
|
+
}), Q = /* @__PURE__ */ C({
|
|
4143
4144
|
__name: "Progress",
|
|
4144
4145
|
props: {
|
|
4145
4146
|
survey: {},
|
|
4147
|
+
container: {},
|
|
4146
4148
|
css: {}
|
|
4147
4149
|
},
|
|
4148
4150
|
setup(r) {
|
|
4149
|
-
const o = r, n =
|
|
4151
|
+
const o = r, n = T(() => o.survey.progressValue + "%"), s = (i) => ie.getProgressTextInBarCss(i), e = (i) => ie.getProgressTextUnderBarCss(i);
|
|
4150
4152
|
return (i, a) => (t(), u("div", {
|
|
4151
|
-
class: l(i.survey.getProgressCssClasses())
|
|
4153
|
+
class: l(i.survey.getProgressCssClasses(i.container))
|
|
4152
4154
|
}, [
|
|
4153
4155
|
p("div", {
|
|
4154
4156
|
class: l(i.survey.css.progressBar),
|
|
@@ -4166,13 +4168,13 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4166
4168
|
}, I(i.survey.progressText), 3)
|
|
4167
4169
|
], 2));
|
|
4168
4170
|
}
|
|
4169
|
-
}), Mt = ["onClick"], Nt = ["title"], Ht = ["title"],
|
|
4171
|
+
}), Mt = ["onClick"], Nt = ["title"], Ht = ["title"], At = /* @__PURE__ */ C({
|
|
4170
4172
|
__name: "ProgressButtons",
|
|
4171
4173
|
props: {
|
|
4172
4174
|
survey: {}
|
|
4173
4175
|
},
|
|
4174
4176
|
setup(r) {
|
|
4175
|
-
const o = r, n = new
|
|
4177
|
+
const o = r, n = new $e(o.survey), s = S(!1), e = S(), i = T(() => o.survey.css);
|
|
4176
4178
|
let a;
|
|
4177
4179
|
const d = (k) => n.isListElementClickable(k), c = (k) => n.getListElementCss(k), v = (k) => {
|
|
4178
4180
|
n.clickListElement(k);
|
|
@@ -4180,7 +4182,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4180
4182
|
let P = e.value;
|
|
4181
4183
|
P.scrollLeft += (k ? -1 : 1) * 70;
|
|
4182
4184
|
};
|
|
4183
|
-
return
|
|
4185
|
+
return A(() => {
|
|
4184
4186
|
const k = e.value;
|
|
4185
4187
|
a = setInterval(() => {
|
|
4186
4188
|
s.value = k.scrollWidth > k.offsetWidth;
|
|
@@ -4206,10 +4208,10 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4206
4208
|
p("ul", {
|
|
4207
4209
|
class: l(i.value.progressButtonsList)
|
|
4208
4210
|
}, [
|
|
4209
|
-
(t(!0), u(w, null,
|
|
4210
|
-
key: "listelement" +
|
|
4211
|
-
class: l(c(
|
|
4212
|
-
onClick: (
|
|
4211
|
+
(t(!0), u(w, null, R(k.survey.visiblePages, (L, E) => (t(), u("li", {
|
|
4212
|
+
key: "listelement" + E,
|
|
4213
|
+
class: l(c(E)),
|
|
4214
|
+
onClick: (j) => d(E) ? v(E) : null
|
|
4213
4215
|
}, [
|
|
4214
4216
|
p("div", {
|
|
4215
4217
|
class: l(i.value.progressButtonsPageTitle),
|
|
@@ -4230,13 +4232,13 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4230
4232
|
], 2)
|
|
4231
4233
|
], 2));
|
|
4232
4234
|
}
|
|
4233
|
-
}),
|
|
4235
|
+
}), Et = /* @__PURE__ */ C({
|
|
4234
4236
|
__name: "ProgressToc",
|
|
4235
4237
|
props: {
|
|
4236
4238
|
survey: {}
|
|
4237
4239
|
},
|
|
4238
4240
|
setup(r) {
|
|
4239
|
-
const o = r, n = new
|
|
4241
|
+
const o = r, n = new Be(o.survey);
|
|
4240
4242
|
return (s, e) => {
|
|
4241
4243
|
const i = q("sv-svg-icon"), a = q("sv-popup"), d = q("sv-list"), c = _("key2click");
|
|
4242
4244
|
return t(), u("div", {
|
|
@@ -4262,38 +4264,38 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4262
4264
|
], 2);
|
|
4263
4265
|
};
|
|
4264
4266
|
}
|
|
4265
|
-
}),
|
|
4267
|
+
}), Vt = { onsubmit: "return false;" }, Ot = {
|
|
4266
4268
|
key: 0,
|
|
4267
4269
|
class: "sv_custom_header"
|
|
4268
|
-
}, Ft = ["id"], Wt = { key: 1 }, zt = ["innerHTML"], Ut = ["innerHTML"], Kt = ["innerHTML"],
|
|
4270
|
+
}, Ft = ["id"], Wt = { key: 1 }, zt = ["innerHTML"], Ut = ["innerHTML"], Kt = ["innerHTML"], re = /* @__PURE__ */ C({
|
|
4269
4271
|
__name: "Survey",
|
|
4270
4272
|
props: {
|
|
4271
4273
|
model: {},
|
|
4272
4274
|
survey: {}
|
|
4273
4275
|
},
|
|
4274
4276
|
setup(r) {
|
|
4275
|
-
const o = r, n =
|
|
4277
|
+
const o = r, n = S(), s = S(""), e = S(1), i = T(() => {
|
|
4276
4278
|
const k = o.survey ? o.survey : o.model;
|
|
4277
4279
|
return he(k);
|
|
4278
|
-
}), a =
|
|
4280
|
+
}), a = T(() => i.value.activePage ? i.value.activePage.id : ""), d = () => {
|
|
4279
4281
|
const k = a.value;
|
|
4280
4282
|
return !!i.value && k + e.value.toString();
|
|
4281
|
-
}, c =
|
|
4283
|
+
}, c = T(
|
|
4282
4284
|
() => i.value.showCompletedPage && i.value.state === "completed"
|
|
4283
|
-
), v =
|
|
4284
|
-
return B(() => i.value),
|
|
4285
|
+
), v = T(() => i.value.css), f = T(() => "page" + d()), g = () => c.value ? (s.value || (s.value = i.value.processedCompletedHtml), s.value) : "";
|
|
4286
|
+
return B(() => i.value), A(() => {
|
|
4285
4287
|
if (!!i.value) {
|
|
4286
|
-
i.value.needRenderIcons &&
|
|
4288
|
+
i.value.needRenderIcons && Le.renderIcons();
|
|
4287
4289
|
var k = n.value;
|
|
4288
4290
|
k && i.value.afterRenderSurvey(k), i.value.renderCallback = () => {
|
|
4289
4291
|
var P, L;
|
|
4290
4292
|
e.value++, (L = (P = x()) == null ? void 0 : P.proxy) == null || L.$forceUpdate();
|
|
4291
4293
|
}, i.value.startTimerFromUI();
|
|
4292
4294
|
}
|
|
4293
|
-
}),
|
|
4295
|
+
}), V(() => {
|
|
4294
4296
|
i.value.stopTimer(), i.value.renderCallback = void 0;
|
|
4295
4297
|
}), (k, P) => {
|
|
4296
|
-
const L = q("survey-popup-modal"),
|
|
4298
|
+
const L = q("survey-popup-modal"), E = q("survey-header"), j = q("survey-page"), J = q("sv-brand-info"), ne = q("sv-notifier");
|
|
4297
4299
|
return t(), u("div", {
|
|
4298
4300
|
class: l(i.value.getRootCss()),
|
|
4299
4301
|
style: $(i.value.themeVariables),
|
|
@@ -4306,12 +4308,12 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4306
4308
|
class: l(v.value.rootBackgroundImage),
|
|
4307
4309
|
style: $(i.value.backgroundImageStyle)
|
|
4308
4310
|
}, null, 6)) : m("", !0),
|
|
4309
|
-
p("form",
|
|
4310
|
-
i.value.hasLogo ? m("", !0) : (t(), u("div",
|
|
4311
|
+
p("form", Vt, [
|
|
4312
|
+
i.value.hasLogo ? m("", !0) : (t(), u("div", Ot)),
|
|
4311
4313
|
p("div", {
|
|
4312
4314
|
class: l(v.value.container)
|
|
4313
4315
|
}, [
|
|
4314
|
-
h(
|
|
4316
|
+
h(E, { survey: i.value }, null, 8, ["survey"]),
|
|
4315
4317
|
(t(), y(N("sv-components-container"), {
|
|
4316
4318
|
survey: i.value,
|
|
4317
4319
|
container: "header",
|
|
@@ -4336,7 +4338,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4336
4338
|
container: "contentTop",
|
|
4337
4339
|
needRenderWrapper: !0
|
|
4338
4340
|
}, null, 8, ["survey"])),
|
|
4339
|
-
(t(), y(
|
|
4341
|
+
(t(), y(j, {
|
|
4340
4342
|
key: f.value,
|
|
4341
4343
|
survey: i.value,
|
|
4342
4344
|
page: i.value.activePage,
|
|
@@ -4367,12 +4369,12 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4367
4369
|
])) : m("", !0),
|
|
4368
4370
|
i.value.state === "completedbefore" ? (t(), u("div", {
|
|
4369
4371
|
key: 2,
|
|
4370
|
-
class: l(
|
|
4372
|
+
class: l(i.value.completedBeforeCss),
|
|
4371
4373
|
innerHTML: i.value.processedCompletedBeforeHtml
|
|
4372
4374
|
}, null, 10, Ut)) : m("", !0),
|
|
4373
4375
|
i.value.state === "loading" ? (t(), u("div", {
|
|
4374
4376
|
key: 3,
|
|
4375
|
-
class: l(
|
|
4377
|
+
class: l(i.value.loadingBodyCss),
|
|
4376
4378
|
innerHTML: i.value.processedLoadingHtml
|
|
4377
4379
|
}, null, 10, Kt)) : m("", !0),
|
|
4378
4380
|
i.value.state === "empty" ? (t(), u("div", {
|
|
@@ -4382,7 +4384,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4382
4384
|
], 2)
|
|
4383
4385
|
]),
|
|
4384
4386
|
i.value.showBrandInfo ? (t(), y(J, { key: 1 })) : m("", !0),
|
|
4385
|
-
h(
|
|
4387
|
+
h(ne, {
|
|
4386
4388
|
model: i.value.notifier
|
|
4387
4389
|
}, null, 8, ["model"])
|
|
4388
4390
|
], 6);
|
|
@@ -4462,7 +4464,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4462
4464
|
onClick: e[0] || (e[0] = (...i) => s.item.action && s.item.action(...i))
|
|
4463
4465
|
}, null, 42, Xt)) : m("", !0);
|
|
4464
4466
|
}
|
|
4465
|
-
}),
|
|
4467
|
+
}), ae = /* @__PURE__ */ C({
|
|
4466
4468
|
__name: "PopupSurvey",
|
|
4467
4469
|
props: {
|
|
4468
4470
|
survey: {},
|
|
@@ -4470,10 +4472,10 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4470
4472
|
closeOnCompleteTimeout: {}
|
|
4471
4473
|
},
|
|
4472
4474
|
setup(r) {
|
|
4473
|
-
const o = r, n = F(), s =
|
|
4475
|
+
const o = r, n = F(), s = T(() => o.survey ? o.survey.getCss() : {}), e = T(() => {
|
|
4474
4476
|
var g;
|
|
4475
4477
|
return (g = n.value) != null && g.isExpanded ? s.value.window.header.buttonCollapsed : s.value.window.header.buttonExpanded;
|
|
4476
|
-
}), i =
|
|
4478
|
+
}), i = T(() => {
|
|
4477
4479
|
var g;
|
|
4478
4480
|
return (g = n.value) == null ? void 0 : g.isExpanded;
|
|
4479
4481
|
}), a = () => {
|
|
@@ -4484,17 +4486,17 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4484
4486
|
n.value.onScroll();
|
|
4485
4487
|
};
|
|
4486
4488
|
B(() => n.value);
|
|
4487
|
-
const f =
|
|
4489
|
+
const f = Z(
|
|
4488
4490
|
() => o.survey,
|
|
4489
4491
|
(g) => {
|
|
4490
|
-
const k = new
|
|
4492
|
+
const k = new De(null, g);
|
|
4491
4493
|
o.isExpanded !== void 0 && (k.isExpanded = o.isExpanded), o.closeOnCompleteTimeout !== void 0 && (k.closeOnCompleteTimeout = o.closeOnCompleteTimeout), k.isShowing = !0, n.value = k;
|
|
4492
4494
|
},
|
|
4493
4495
|
{
|
|
4494
4496
|
immediate: !0
|
|
4495
4497
|
}
|
|
4496
4498
|
);
|
|
4497
|
-
return
|
|
4499
|
+
return V(() => {
|
|
4498
4500
|
f();
|
|
4499
4501
|
}), (g, k) => {
|
|
4500
4502
|
const P = q("survey-string"), L = q("sv-svg-icon");
|
|
@@ -4566,12 +4568,12 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4566
4568
|
css: {}
|
|
4567
4569
|
},
|
|
4568
4570
|
setup(r) {
|
|
4569
|
-
const o = r, n =
|
|
4571
|
+
const o = r, n = S(), s = T(
|
|
4570
4572
|
() => o.question.customWidget.isDefaultRender
|
|
4571
|
-
), e =
|
|
4573
|
+
), e = T(
|
|
4572
4574
|
() => !!o.question.customWidget.htmlTemplate
|
|
4573
|
-
), i =
|
|
4574
|
-
return
|
|
4575
|
+
), i = T(() => o.question.customWidget.htmlTemplate), a = T(() => "survey-" + o.question.getTemplate());
|
|
4576
|
+
return A(() => {
|
|
4575
4577
|
o.question.customWidget.afterRender(o.question, n.value);
|
|
4576
4578
|
}), U(() => {
|
|
4577
4579
|
o.question.customWidget.willUnmount(o.question, n.value);
|
|
@@ -4595,7 +4597,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4595
4597
|
setup(r) {
|
|
4596
4598
|
const o = F();
|
|
4597
4599
|
function n(e, i, a, d, c, v, f = "popup") {
|
|
4598
|
-
const g =
|
|
4600
|
+
const g = Pe(
|
|
4599
4601
|
e,
|
|
4600
4602
|
i,
|
|
4601
4603
|
a,
|
|
@@ -4612,16 +4614,16 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4612
4614
|
e.onHide = () => {
|
|
4613
4615
|
o.value = void 0, a.dispose();
|
|
4614
4616
|
};
|
|
4615
|
-
const a =
|
|
4617
|
+
const a = Me(
|
|
4616
4618
|
e,
|
|
4617
4619
|
i
|
|
4618
4620
|
);
|
|
4619
4621
|
return a.model.isVisible = !0, o.value = a, a;
|
|
4620
4622
|
}
|
|
4621
|
-
return
|
|
4622
|
-
|
|
4623
|
-
})),
|
|
4624
|
-
|
|
4623
|
+
return O.showModal || (O.showModal = n, V(() => {
|
|
4624
|
+
O.showModal = void 0;
|
|
4625
|
+
})), O.showDialog || (O.showDialog = s, V(() => {
|
|
4626
|
+
O.showDialog = void 0;
|
|
4625
4627
|
})), (e, i) => {
|
|
4626
4628
|
const a = q("sv-popup-container");
|
|
4627
4629
|
return o.value ? (t(), y(be, {
|
|
@@ -4651,9 +4653,9 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4651
4653
|
css: {}
|
|
4652
4654
|
},
|
|
4653
4655
|
setup(r) {
|
|
4654
|
-
const o = r, n =
|
|
4656
|
+
const o = r, n = S(null);
|
|
4655
4657
|
M(o, n);
|
|
4656
|
-
const s =
|
|
4658
|
+
const s = T(() => o.question.contentPanel);
|
|
4657
4659
|
return (e, i) => {
|
|
4658
4660
|
const a = q("survey-panel");
|
|
4659
4661
|
return t(), y(a, {
|
|
@@ -4671,9 +4673,9 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4671
4673
|
css: {}
|
|
4672
4674
|
},
|
|
4673
4675
|
setup(r) {
|
|
4674
|
-
const o = r, n =
|
|
4676
|
+
const o = r, n = S(null);
|
|
4675
4677
|
M(o, n);
|
|
4676
|
-
const s =
|
|
4678
|
+
const s = T(() => o.question.contentQuestion), e = (i) => ee(i);
|
|
4677
4679
|
return (i, a) => (t(), y(N(e(s.value)), {
|
|
4678
4680
|
ref: n.value,
|
|
4679
4681
|
question: s.value,
|
|
@@ -4682,14 +4684,14 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4682
4684
|
}
|
|
4683
4685
|
}), oi = /* @__PURE__ */ p("use", { "xlink:href": "#icon-timercircle" }, null, -1), ti = [
|
|
4684
4686
|
oi
|
|
4685
|
-
],
|
|
4687
|
+
], ue = 440, ii = /* @__PURE__ */ C({
|
|
4686
4688
|
__name: "TimerPanel",
|
|
4687
4689
|
props: {
|
|
4688
4690
|
model: {},
|
|
4689
4691
|
css: {}
|
|
4690
4692
|
},
|
|
4691
4693
|
setup(r) {
|
|
4692
|
-
const o = r, n =
|
|
4694
|
+
const o = r, n = T(() => ue * o.model.progress), s = T(() => o.model.text);
|
|
4693
4695
|
return B(() => o.model), (e, i) => e.model.isRunning && e.model.showTimerAsClock ? (t(), u("div", {
|
|
4694
4696
|
key: 0,
|
|
4695
4697
|
class: l(e.model.rootCss)
|
|
@@ -4697,7 +4699,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4697
4699
|
e.model.showProgress ? (t(), u("svg", {
|
|
4698
4700
|
key: 0,
|
|
4699
4701
|
class: l(e.model.getProgressCss()),
|
|
4700
|
-
style: $({ strokeDasharray:
|
|
4702
|
+
style: $({ strokeDasharray: ue, strokeDashoffset: n.value })
|
|
4701
4703
|
}, ti, 6)) : m("", !0),
|
|
4702
4704
|
p("div", {
|
|
4703
4705
|
class: l(e.model.textContainerCss)
|
|
@@ -4719,13 +4721,13 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4719
4721
|
}
|
|
4720
4722
|
});
|
|
4721
4723
|
function li(r) {
|
|
4722
|
-
r.component("SurveyComponent",
|
|
4724
|
+
r.component("SurveyComponent", re), r.component("PopupSurveyComponent", ae), r.component("survey", re), r.component("popup-survey", ae), r.component("survey-header", Fe), r.component("survey-page", Ee), r.component("survey-row", We), r.component("survey-element", Ue), r.component("survey-panel", Qe), r.component("survey-element-header", Ze), r.component("survey-string", Ge), r.component("sv-string-viewer", Ye), r.component("sv-string-editor", xe), r.component("sv-skeleton", ss), r.component("survey-text", ts), r.component("survey-text-input", as), r.component("survey-checkbox", ds), r.component("survey-checkbox-item", ys), r.component("survey-radiogroup", hs), r.component("survey-radiogroup-item", ws), r.component("survey-signaturepad", $s), r.component("survey-html", Ls), r.component("survey-image", Ns), r.component("survey-expression", Hs), r.component("survey-file", Us), r.component("survey-imagepicker", js), r.component("survey-imagepicker-item", Js), r.component("survey-comment", xs), r.component("survey-dropdown", en), r.component("sv-dropdown-select", tn), r.component("sv-dropdown-option-item", rn), r.component("sv-dropdown", cn), r.component("survey-tagbox", pn), r.component("sv-tagbox", yn), r.component("sv-tagbox-item", kn), r.component("sv-tagbox-filter", hn), r.component("survey-ranking", fn), r.component("survey-ranking-item", Ln), r.component("survey-rating", Mn), r.component("sv-rating-item", Hn), r.component("sv-rating-item-smiley", En), r.component("sv-rating-item-star", On), r.component("sv-rating-dropdown", Fn), r.component("survey-boolean", zn), r.component("sv-boolean-radio", Un), r.component("sv-boolean-radio-item", Qn), r.component("sv-boolean-checkbox", Yn), r.component("survey-multipletext", _n), r.component("survey-multipletext-item", eo), r.component("survey-matrix", ao), r.component("survey-matrixdropdown", uo), r.component("survey-matrixtable", vo), r.component("survey-matrixheaderrequired", yo), r.component("survey-matrixcell", Co), r.component("survey-matrixdynamic", ho), r.component("sv-matrix-remove-button", ko), r.component("sv-matrix-drag-drop-icon", Io), r.component("sv-matrix-detail-button", So), r.component("survey-paneldynamic", To), r.component("survey-paneldynamicprogress", Ro), r.component("survey-paneldynamicprogress-v2", $o), r.component("sv-paneldynamic-add-btn", Bo), r.component("sv-paneldynamic-next-btn", Do), r.component("sv-paneldynamic-prev-btn", Mo), r.component("sv-paneldynamic-remove-btn", No), r.component("sv-paneldynamic-progress-text", Ho), r.component("sv-components-container", Pt), r.component("sv-progress-buttons", At), r.component("sv-progress-toc", Et), r.component("sv-progress-pages", Q), r.component("sv-progress-questions", Q), r.component("sv-progress-correctquestions", Q), r.component("sv-progress-requiredquestions", Q), r.component("survey-errors", Eo), r.component("survey-question-comment", Fo), r.component("survey-element-title", Wo), r.component("survey-element-title-content", Qo), r.component("sv-title-actions", Xo), r.component("sv-brand-info", nt), r.component("sv-svg-icon", lt), r.component("sv-action-bar", rt), r.component("sv-action", dt), r.component("sv-action-bar-item", ct), r.component("sv-action-bar-item-dropdown", vt), r.component("sv-action-bar-separator", qt), r.component("sv-list", ht), r.component("sv-list-item", kt), r.component("sv-popup", ft), r.component("sv-popup-container", Bt), r.component("popup-pointer", Lt), r.component("sv-notifier", jt), r.component("survey-other-choice", Gt), r.component("sv-nav-btn", Jt), r.component("survey-customwidget", _t), r.component("survey-popup-modal", xt), r.component("sv-character-counter", ei), r.component("survey-composite", si), r.component("survey-custom", ni), r.component("sv-timerpanel", ii), r.directive("key2click", {
|
|
4723
4725
|
mounted: function(o, n) {
|
|
4724
4726
|
const s = { ...n.value };
|
|
4725
|
-
s.disableTabStop || (o.tabIndex = 0), o.addEventListener("keyup", (e) => (e.preventDefault(), e.stopPropagation(),
|
|
4726
|
-
|
|
4727
|
+
s.disableTabStop || (o.tabIndex = 0), o.addEventListener("keyup", (e) => (e.preventDefault(), e.stopPropagation(), de(e, s), !1)), o.addEventListener("keydown", (e) => {
|
|
4728
|
+
Ne(e, s);
|
|
4727
4729
|
}), o.addEventListener("blur", (e) => {
|
|
4728
|
-
|
|
4730
|
+
He(e);
|
|
4729
4731
|
});
|
|
4730
4732
|
}
|
|
4731
4733
|
});
|