survey-vue3-ui 1.9.100 → 1.9.102
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 +442 -444
- package/survey-vue3-ui.umd.js +1 -1
package/survey-vue3-ui.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { shallowReactive as
|
|
2
|
-
import { Base as
|
|
3
|
-
|
|
4
|
-
function
|
|
5
|
-
!r || (r.createArrayCoreHandler = (o, n) => {
|
|
1
|
+
import { shallowReactive as me, watch as G, onBeforeUnmount as U, onMounted as E, ref as S, shallowRef as F, triggerRef as ne, unref as b, isRef as ce, defineComponent as C, computed as R, onUpdated as K, resolveComponent as q, openBlock as t, createElementBlock as u, normalizeClass as l, createVNode as h, createCommentVNode as m, Fragment as w, renderList as T, createBlock as y, createElementVNode as p, normalizeStyle as $, onUnmounted as O, 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, TooltipManager as Se, doKey2ClickUp as ue, createSvg as Te, ActionDropdownViewModel as Re, getActionDropdownButtonTarget as $e, createPopupViewModel as oe, SurveyProgressModel as te, SurveyProgressButtonsModel as Be, TOCModel as Le, SvgRegistry as De, PopupSurveyModel as Pe, settings as V, createDialogOptions as Me, createPopupModalViewModel as Ne, doKey2ClickDown as He, doKey2ClickBlur as Ee } from "survey-core";
|
|
3
|
+
ke.createPropertiesHash = () => me({});
|
|
4
|
+
function Ae(r) {
|
|
5
|
+
return !r || r.__vueImplemented ? !1 : (r.createArrayCoreHandler = (o, n) => {
|
|
6
6
|
const s = F(o[n]);
|
|
7
7
|
return o[n].onArrayChanged = () => {
|
|
8
8
|
ne(s);
|
|
@@ -15,42 +15,43 @@ function Ee(r) {
|
|
|
15
15
|
}, o[n] = s;
|
|
16
16
|
}
|
|
17
17
|
}), r.getPropertyValueCoreHandler = (o, n) => b(o[n]), r.setPropertyValueCoreHandler = (o, n, s) => {
|
|
18
|
-
|
|
19
|
-
});
|
|
18
|
+
ce(o[n]) ? o[n].value = s : o[n] = s;
|
|
19
|
+
}, r.__vueImplemented = !0, !0);
|
|
20
20
|
}
|
|
21
|
-
function ie(r) {
|
|
22
|
-
!r || (r.iteratePropertiesHash((
|
|
23
|
-
|
|
24
|
-
}), r.createArrayCoreHandler = void 0, r.getPropertyValueCoreHandler = void 0, r.setPropertyValueCoreHandler = void 0);
|
|
21
|
+
function ie(r, o) {
|
|
22
|
+
!r || !o || (r.iteratePropertiesHash((n, s) => {
|
|
23
|
+
n[s] = b(n[s]), Array.isArray(n[s]) && (n[s].onArrayChanged = void 0);
|
|
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 = G(
|
|
28
29
|
r,
|
|
29
|
-
(
|
|
30
|
-
o && o(
|
|
30
|
+
(i, a) => {
|
|
31
|
+
o && o(i), a && (ie(a, s), n && n(a)), s = Ae(i);
|
|
31
32
|
},
|
|
32
33
|
{
|
|
33
34
|
immediate: !0
|
|
34
35
|
}
|
|
35
36
|
);
|
|
36
|
-
|
|
37
|
-
const
|
|
38
|
-
|
|
37
|
+
U(() => {
|
|
38
|
+
const i = r();
|
|
39
|
+
i && (n && n(r()), ie(i, s), e());
|
|
39
40
|
});
|
|
40
41
|
}
|
|
41
42
|
function M(r, o, n, s) {
|
|
42
43
|
B(() => r.question, n, s), E(() => {
|
|
43
44
|
r.question && r.question.afterRenderQuestionElement(o.value);
|
|
44
|
-
}),
|
|
45
|
+
}), U(() => {
|
|
45
46
|
r.question.beforeDestroyQuestionElement(o.value);
|
|
46
47
|
});
|
|
47
48
|
}
|
|
48
49
|
function W(r) {
|
|
49
|
-
const o =
|
|
50
|
+
const o = S(), n = (e) => {
|
|
50
51
|
o.value = e.renderedHtml, e.onChanged = () => {
|
|
51
52
|
o.value = e.renderedHtml;
|
|
52
53
|
};
|
|
53
|
-
}, s =
|
|
54
|
+
}, s = G(
|
|
54
55
|
r,
|
|
55
56
|
(e, i) => {
|
|
56
57
|
i && (i.onChanged = () => {
|
|
@@ -58,14 +59,14 @@ function W(r) {
|
|
|
58
59
|
},
|
|
59
60
|
{ immediate: !0 }
|
|
60
61
|
);
|
|
61
|
-
return
|
|
62
|
+
return U(() => {
|
|
62
63
|
s();
|
|
63
64
|
}), o;
|
|
64
65
|
}
|
|
65
66
|
function ee(r) {
|
|
66
67
|
return r.customWidget ? "survey-customwidget" : r.isDefaultRendering && r.isDefaultRendering() || r.isPanel ? "survey-" + r.getTemplate() : r.getComponentName();
|
|
67
68
|
}
|
|
68
|
-
const
|
|
69
|
+
const Oe = /* @__PURE__ */ C({
|
|
69
70
|
__name: "Page",
|
|
70
71
|
props: {
|
|
71
72
|
survey: {},
|
|
@@ -73,12 +74,12 @@ const Ae = /* @__PURE__ */ C({
|
|
|
73
74
|
css: {}
|
|
74
75
|
},
|
|
75
76
|
setup(r) {
|
|
76
|
-
const o = r, n =
|
|
77
|
+
const o = r, n = S(null);
|
|
77
78
|
B(() => o.page);
|
|
78
79
|
const s = R(() => o.page._showDescription), e = R(() => o.page.rows);
|
|
79
80
|
return E(() => {
|
|
80
81
|
o.survey && o.survey.afterRenderPage(n.value);
|
|
81
|
-
}),
|
|
82
|
+
}), K(() => {
|
|
82
83
|
o.survey.afterRenderPage(n.value);
|
|
83
84
|
}), (i, a) => {
|
|
84
85
|
const d = q("survey-element-title"), c = q("survey-string"), v = q("survey-row");
|
|
@@ -99,7 +100,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
99
100
|
locString: i.page.locDescription
|
|
100
101
|
}, null, 8, ["locString"])
|
|
101
102
|
], 2)) : m("", !0),
|
|
102
|
-
(t(!0), u(w, null,
|
|
103
|
+
(t(!0), u(w, null, T(e.value, (f, g) => (t(), u(w, null, [
|
|
103
104
|
f.visible ? (t(), y(v, {
|
|
104
105
|
key: i.page.id + "_" + g,
|
|
105
106
|
row: f,
|
|
@@ -110,13 +111,13 @@ const Ae = /* @__PURE__ */ C({
|
|
|
110
111
|
], 2);
|
|
111
112
|
};
|
|
112
113
|
}
|
|
113
|
-
}),
|
|
114
|
+
}), Ve = ["src", "width", "height", "alt"], Fe = ["src", "width", "height", "alt"], We = /* @__PURE__ */ C({
|
|
114
115
|
__name: "Header",
|
|
115
116
|
props: {
|
|
116
117
|
survey: {}
|
|
117
118
|
},
|
|
118
119
|
setup(r) {
|
|
119
|
-
const o = r, n =
|
|
120
|
+
const o = r, n = S(), s = W(() => o.survey.locLogo);
|
|
120
121
|
return E(() => {
|
|
121
122
|
var e = n.value;
|
|
122
123
|
e && o.survey && o.survey.afterRenderHeader(e);
|
|
@@ -143,7 +144,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
143
144
|
width: e.survey.renderedStyleLogoWidth,
|
|
144
145
|
height: e.survey.renderedStyleLogoHeight
|
|
145
146
|
})
|
|
146
|
-
}, null, 14,
|
|
147
|
+
}, null, 14, Ve)
|
|
147
148
|
], 2)) : m("", !0),
|
|
148
149
|
e.survey.renderedHasTitle ? (t(), u("div", {
|
|
149
150
|
key: 1,
|
|
@@ -178,7 +179,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
178
179
|
width: e.survey.renderedStyleLogoWidth,
|
|
179
180
|
height: e.survey.renderedStyleLogoHeight
|
|
180
181
|
})
|
|
181
|
-
}, null, 14,
|
|
182
|
+
}, null, 14, Fe)
|
|
182
183
|
], 2)) : m("", !0),
|
|
183
184
|
p("div", {
|
|
184
185
|
class: l(e.survey.css.headerClose)
|
|
@@ -186,7 +187,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
186
187
|
], 2)) : m("", !0);
|
|
187
188
|
};
|
|
188
189
|
}
|
|
189
|
-
}),
|
|
190
|
+
}), ze = /* @__PURE__ */ C({
|
|
190
191
|
__name: "Row",
|
|
191
192
|
props: {
|
|
192
193
|
row: {},
|
|
@@ -196,7 +197,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
196
197
|
setup(r) {
|
|
197
198
|
const o = r, n = R(
|
|
198
199
|
() => o.row.visibleElements
|
|
199
|
-
), s =
|
|
200
|
+
), s = S();
|
|
200
201
|
return B(() => o.row), E(() => {
|
|
201
202
|
if (o.row && !o.row.isNeedRender) {
|
|
202
203
|
const e = s.value;
|
|
@@ -214,7 +215,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
214
215
|
ref_key: "root",
|
|
215
216
|
ref: s
|
|
216
217
|
}, [
|
|
217
|
-
(t(!0), u(w, null,
|
|
218
|
+
(t(!0), u(w, null, T(n.value, (c) => (t(), u("div", {
|
|
218
219
|
style: $(c.rootStyle)
|
|
219
220
|
}, [
|
|
220
221
|
c.isPanel ? m("", !0) : (t(), y(a, {
|
|
@@ -234,7 +235,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
234
235
|
], 2);
|
|
235
236
|
};
|
|
236
237
|
}
|
|
237
|
-
}),
|
|
238
|
+
}), Ue = ["id", "role", "aria-required", "aria-invalid", "aria-labelledby", "data-name"], Ke = /* @__PURE__ */ C({
|
|
238
239
|
__name: "Element",
|
|
239
240
|
props: {
|
|
240
241
|
survey: {},
|
|
@@ -243,7 +244,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
243
244
|
css: {}
|
|
244
245
|
},
|
|
245
246
|
setup(r) {
|
|
246
|
-
const o = r, n =
|
|
247
|
+
const o = r, n = S(null), s = R(() => !o.element.isPanel && o.element.showErrorOnTop), e = R(() => !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;
|
|
247
248
|
return B(() => o.element), E(() => {
|
|
248
249
|
o.element.isPanel || o.element.afterRender(n.value);
|
|
249
250
|
}), (d, c) => {
|
|
@@ -329,14 +330,14 @@ const Ae = /* @__PURE__ */ C({
|
|
|
329
330
|
element: d.element,
|
|
330
331
|
location: "bottom"
|
|
331
332
|
}, null, 8, ["element"])) : m("", !0)
|
|
332
|
-
], 42,
|
|
333
|
+
], 42, Ue)) : d.element.skeletonComponentName ? (t(), y(N(d.element.skeletonComponentName), {
|
|
333
334
|
key: 1,
|
|
334
335
|
element: d.element,
|
|
335
336
|
css: d.css
|
|
336
337
|
}, null, 8, ["element", "css"])) : m("", !0);
|
|
337
338
|
};
|
|
338
339
|
}
|
|
339
|
-
}),
|
|
340
|
+
}), je = ["id"], Qe = ["id"], Ze = /* @__PURE__ */ C({
|
|
340
341
|
__name: "Panel",
|
|
341
342
|
props: {
|
|
342
343
|
question: {},
|
|
@@ -344,7 +345,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
344
345
|
css: {}
|
|
345
346
|
},
|
|
346
347
|
setup(r) {
|
|
347
|
-
const o = r, n =
|
|
348
|
+
const o = r, n = S(!1), s = S(null), e = R(() => o.question.rows), i = R(() => o.question.survey), a = R(() => n.value);
|
|
348
349
|
return B(() => o.question), E(() => {
|
|
349
350
|
o.question.survey && o.question.survey.afterRenderPanel(o.question, s.value), n.value = o.question.isCollapsed;
|
|
350
351
|
const d = o.question;
|
|
@@ -382,7 +383,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
382
383
|
style: $({ paddingLeft: d.question.innerPaddingLeft }),
|
|
383
384
|
class: l(d.question.cssClasses.panel.content)
|
|
384
385
|
}, [
|
|
385
|
-
(t(!0), u(w, null,
|
|
386
|
+
(t(!0), u(w, null, T(e.value, (P, L) => (t(), u(w, null, [
|
|
386
387
|
P.visible ? (t(), y(g, {
|
|
387
388
|
key: d.question.id + "_" + L,
|
|
388
389
|
row: P,
|
|
@@ -393,11 +394,11 @@ const Ae = /* @__PURE__ */ C({
|
|
|
393
394
|
h(k, {
|
|
394
395
|
model: d.question.getFooterToolbar()
|
|
395
396
|
}, null, 8, ["model"])
|
|
396
|
-
], 14,
|
|
397
|
-
], 10,
|
|
397
|
+
], 14, Qe))
|
|
398
|
+
], 10, je)) : m("", !0);
|
|
398
399
|
};
|
|
399
400
|
}
|
|
400
|
-
}),
|
|
401
|
+
}), Ge = /* @__PURE__ */ C({
|
|
401
402
|
__name: "ElementHeader",
|
|
402
403
|
props: {
|
|
403
404
|
element: {},
|
|
@@ -434,7 +435,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
434
435
|
], 2);
|
|
435
436
|
};
|
|
436
437
|
}
|
|
437
|
-
}),
|
|
438
|
+
}), Xe = /* @__PURE__ */ C({
|
|
438
439
|
__name: "String",
|
|
439
440
|
props: {
|
|
440
441
|
locString: {}
|
|
@@ -444,10 +445,10 @@ const Ae = /* @__PURE__ */ C({
|
|
|
444
445
|
locString: o.locString.renderAsData
|
|
445
446
|
}, null, 8, ["locString"]));
|
|
446
447
|
}
|
|
447
|
-
}),
|
|
448
|
+
}), Je = ["innerHTML"], Ye = {
|
|
448
449
|
key: 1,
|
|
449
450
|
class: "sv-string-viewer"
|
|
450
|
-
},
|
|
451
|
+
}, _e = /* @__PURE__ */ C({
|
|
451
452
|
__name: "StringViewer",
|
|
452
453
|
props: {
|
|
453
454
|
locString: {}
|
|
@@ -458,9 +459,9 @@ const Ae = /* @__PURE__ */ C({
|
|
|
458
459
|
key: 0,
|
|
459
460
|
class: "sv-string-viewer",
|
|
460
461
|
innerHTML: b(n)
|
|
461
|
-
}, null, 8,
|
|
462
|
+
}, null, 8, Je)) : (t(), u("span", Ye, I(b(n)), 1));
|
|
462
463
|
}
|
|
463
|
-
}),
|
|
464
|
+
}), xe = ["innerHTML"], es = /* @__PURE__ */ C({
|
|
464
465
|
__name: "StringEditor",
|
|
465
466
|
props: {
|
|
466
467
|
locString: {}
|
|
@@ -479,7 +480,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
479
480
|
innerHTML: e.locString.renderedHtml,
|
|
480
481
|
onBlur: n,
|
|
481
482
|
onClick: s
|
|
482
|
-
}, null, 40,
|
|
483
|
+
}, null, 40, xe)) : (t(), u("span", {
|
|
483
484
|
key: 1,
|
|
484
485
|
class: "sv-string-editor",
|
|
485
486
|
contenteditable: "true",
|
|
@@ -487,7 +488,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
487
488
|
onClick: s
|
|
488
489
|
}, I(e.locString.renderedHtml), 33));
|
|
489
490
|
}
|
|
490
|
-
}),
|
|
491
|
+
}), ss = ["id"], ns = /* @__PURE__ */ C({
|
|
491
492
|
__name: "Skeleton",
|
|
492
493
|
props: {
|
|
493
494
|
element: {}
|
|
@@ -497,15 +498,15 @@ const Ae = /* @__PURE__ */ C({
|
|
|
497
498
|
return B(() => o.element), (n, s) => (t(), u("div", {
|
|
498
499
|
class: "sv-skeleton-element",
|
|
499
500
|
id: n.element.id
|
|
500
|
-
}, null, 8,
|
|
501
|
+
}, null, 8, ss));
|
|
501
502
|
}
|
|
502
|
-
}),
|
|
503
|
+
}), os = ["id"], ts = ["value"], is = /* @__PURE__ */ C({
|
|
503
504
|
__name: "Text",
|
|
504
505
|
props: {
|
|
505
506
|
question: {}
|
|
506
507
|
},
|
|
507
508
|
setup(r) {
|
|
508
|
-
const o = r, n =
|
|
509
|
+
const o = r, n = S(null);
|
|
509
510
|
return M(o, n), (s, e) => {
|
|
510
511
|
const i = q("survey-text-input");
|
|
511
512
|
return s.question.isReadOnlyRenderDiv() ? (t(), u("div", {
|
|
@@ -521,8 +522,8 @@ const Ae = /* @__PURE__ */ C({
|
|
|
521
522
|
p("datalist", {
|
|
522
523
|
id: s.question.dataListId
|
|
523
524
|
}, [
|
|
524
|
-
(t(!0), u(w, null,
|
|
525
|
-
], 8,
|
|
525
|
+
(t(!0), u(w, null, T(s.question.dataList, (a) => (t(), u("option", { value: a }, null, 8, ts))), 256))
|
|
526
|
+
], 8, os)
|
|
526
527
|
], 512)) : (t(), y(i, {
|
|
527
528
|
key: 2,
|
|
528
529
|
question: s.question,
|
|
@@ -531,7 +532,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
531
532
|
}, null, 8, ["question"]));
|
|
532
533
|
};
|
|
533
534
|
}
|
|
534
|
-
}),
|
|
535
|
+
}), ls = ["disabled", "type", "maxlength", "min", "max", "step", "size", "id", "list", "placeholder", "autocomplete", "value", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], rs = { key: 1 }, as = ["disabled", "type", "maxlength", "min", "max", "step", "size", "id", "list", "placeholder", "autocomplete", "value", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], us = /* @__PURE__ */ C({
|
|
535
536
|
__name: "TextInput",
|
|
536
537
|
props: {
|
|
537
538
|
question: {}
|
|
@@ -542,7 +543,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
542
543
|
const n = R(() => o.question.inputStyle);
|
|
543
544
|
return (s, e) => {
|
|
544
545
|
const i = q("sv-character-counter");
|
|
545
|
-
return s.question.getMaxLength() ? (t(), u("div",
|
|
546
|
+
return s.question.getMaxLength() ? (t(), u("div", rs, [
|
|
546
547
|
p("input", {
|
|
547
548
|
disabled: s.question.isInputReadOnly,
|
|
548
549
|
class: l(s.question.getControlClass()),
|
|
@@ -568,7 +569,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
568
569
|
"aria-label": s.question.a11y_input_ariaLabel,
|
|
569
570
|
"aria-invalid": s.question.a11y_input_ariaInvalid,
|
|
570
571
|
"aria-describedby": s.question.a11y_input_ariaDescribedBy
|
|
571
|
-
}, null, 46,
|
|
572
|
+
}, null, 46, as),
|
|
572
573
|
h(i, {
|
|
573
574
|
counter: s.question.characterCounter,
|
|
574
575
|
remainingCharacterCounter: s.question.cssClasses.remainingCharacterCounter
|
|
@@ -600,34 +601,34 @@ const Ae = /* @__PURE__ */ C({
|
|
|
600
601
|
"aria-labelledby": s.question.a11y_input_ariaLabelledBy,
|
|
601
602
|
"aria-invalid": s.question.a11y_input_ariaInvalid,
|
|
602
603
|
"aria-describedby": s.question.a11y_input_ariaDescribedBy
|
|
603
|
-
}, null, 46,
|
|
604
|
+
}, null, 46, ls));
|
|
604
605
|
};
|
|
605
606
|
}
|
|
606
|
-
}),
|
|
607
|
+
}), ds = /* @__PURE__ */ p("legend", {
|
|
607
608
|
role: "presentation",
|
|
608
609
|
class: "sv-hidden"
|
|
609
|
-
}, null, -1),
|
|
610
|
+
}, null, -1), ms = /* @__PURE__ */ C({
|
|
610
611
|
__name: "Checkbox",
|
|
611
612
|
props: {
|
|
612
613
|
question: {}
|
|
613
614
|
},
|
|
614
615
|
setup(r) {
|
|
615
|
-
const o = r, n =
|
|
616
|
+
const o = r, n = S(null);
|
|
616
617
|
return M(o, n), (s, e) => {
|
|
617
618
|
const i = q("survey-checkbox-item"), a = q("survey-other-choice");
|
|
618
619
|
return t(), u("fieldset", {
|
|
619
620
|
class: l(s.question.getSelectBaseRootCss()),
|
|
620
621
|
role: "presentation"
|
|
621
622
|
}, [
|
|
622
|
-
|
|
623
|
-
s.question.hasHeadItems ? (t(!0), u(w, { key: 0 },
|
|
623
|
+
ds,
|
|
624
|
+
s.question.hasHeadItems ? (t(!0), u(w, { key: 0 }, T(s.question.headItems, (d, c) => (t(), y(i, {
|
|
624
625
|
key: d.value,
|
|
625
626
|
class: l(s.question.getItemClass(d)),
|
|
626
627
|
question: s.question,
|
|
627
628
|
item: d,
|
|
628
629
|
index: "" + c
|
|
629
630
|
}, null, 8, ["class", "question", "item", "index"]))), 128)) : m("", !0),
|
|
630
|
-
!s.question.hasColumns && !s.question.blockedRow ? (t(!0), u(w, { key: 1 },
|
|
631
|
+
!s.question.hasColumns && !s.question.blockedRow ? (t(!0), u(w, { key: 1 }, T(s.question.bodyItems, (d, c) => (t(), y(i, {
|
|
631
632
|
key: d.value,
|
|
632
633
|
class: l(s.question.getItemClass(d)),
|
|
633
634
|
question: s.question,
|
|
@@ -638,7 +639,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
638
639
|
key: 2,
|
|
639
640
|
class: l(s.question.cssClasses.rootRow)
|
|
640
641
|
}, [
|
|
641
|
-
!s.question.hasColumns && s.question.blockedRow ? (t(!0), u(w, { key: 0 },
|
|
642
|
+
!s.question.hasColumns && s.question.blockedRow ? (t(!0), u(w, { key: 0 }, T(s.question.dataChoices, (d, c) => (t(), y(i, {
|
|
642
643
|
key: d.value,
|
|
643
644
|
class: l(s.question.getItemClass(d)),
|
|
644
645
|
question: s.question,
|
|
@@ -650,12 +651,12 @@ const Ae = /* @__PURE__ */ C({
|
|
|
650
651
|
key: 3,
|
|
651
652
|
class: l(s.question.cssClasses.rootMultiColumn)
|
|
652
653
|
}, [
|
|
653
|
-
(t(!0), u(w, null,
|
|
654
|
+
(t(!0), u(w, null, T(s.question.columns, (d, c) => (t(), u("div", {
|
|
654
655
|
key: c,
|
|
655
656
|
class: l(s.question.getColumnClass()),
|
|
656
657
|
role: "presentation"
|
|
657
658
|
}, [
|
|
658
|
-
(t(!0), u(w, null,
|
|
659
|
+
(t(!0), u(w, null, T(d, (v, f) => (t(), y(i, {
|
|
659
660
|
key: v.value,
|
|
660
661
|
class: l(s.question.getItemClass(v)),
|
|
661
662
|
question: s.question,
|
|
@@ -664,7 +665,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
664
665
|
}, null, 8, ["class", "question", "item", "index"]))), 128))
|
|
665
666
|
], 2))), 128))
|
|
666
667
|
], 2)) : m("", !0),
|
|
667
|
-
s.question.hasFootItems ? (t(!0), u(w, { key: 4 },
|
|
668
|
+
s.question.hasFootItems ? (t(!0), u(w, { key: 4 }, T(s.question.footItems, (d, c) => (t(), y(i, {
|
|
668
669
|
key: d.value,
|
|
669
670
|
class: l(s.question.getItemClass(d)),
|
|
670
671
|
question: s.question,
|
|
@@ -678,7 +679,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
678
679
|
], 2);
|
|
679
680
|
};
|
|
680
681
|
}
|
|
681
|
-
}),
|
|
682
|
+
}), cs = { role: "presentation" }, ps = ["aria-label"], vs = ["name", "value", "id", "disabled", "aria-describedby"], qs = ["name", "value", "id", "disabled", "aria-describedby"], ys = ["xlink:href"], gs = /* @__PURE__ */ C({
|
|
682
683
|
__name: "CheckboxItem",
|
|
683
684
|
props: {
|
|
684
685
|
question: {},
|
|
@@ -698,7 +699,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
698
699
|
});
|
|
699
700
|
return B(() => o.item), (s, e) => {
|
|
700
701
|
const i = q("survey-string");
|
|
701
|
-
return t(), u("div",
|
|
702
|
+
return t(), u("div", cs, [
|
|
702
703
|
p("label", {
|
|
703
704
|
class: l(s.question.getLabelClass(s.item)),
|
|
704
705
|
"aria-label": s.question.getAriaItemLabel(s.item)
|
|
@@ -714,7 +715,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
714
715
|
disabled: !s.question.getItemEnabled(s.item),
|
|
715
716
|
"aria-describedby": s.question.ariaDescribedBy,
|
|
716
717
|
class: l(s.question.cssClasses.itemControl)
|
|
717
|
-
}, null, 10,
|
|
718
|
+
}, null, 10, vs)), [
|
|
718
719
|
[z, n.value]
|
|
719
720
|
]) : m("", !0),
|
|
720
721
|
s.item != s.question.selectAllItem ? D((t(), u("input", {
|
|
@@ -728,7 +729,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
728
729
|
disabled: !s.question.getItemEnabled(s.item),
|
|
729
730
|
"aria-describedby": s.question.ariaDescribedBy,
|
|
730
731
|
class: l(s.question.cssClasses.itemControl)
|
|
731
|
-
}, null, 10,
|
|
732
|
+
}, null, 10, qs)), [
|
|
732
733
|
[z, s.question.renderedValue]
|
|
733
734
|
]) : m("", !0),
|
|
734
735
|
s.question.cssClasses.materialDecorator ? (t(), u("span", {
|
|
@@ -741,7 +742,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
741
742
|
}, [
|
|
742
743
|
p("use", {
|
|
743
744
|
"xlink:href": s.question.itemSvgIcon
|
|
744
|
-
}, null, 8,
|
|
745
|
+
}, null, 8, ys)
|
|
745
746
|
], 2)) : m("", !0)
|
|
746
747
|
], 2)) : m("", !0),
|
|
747
748
|
s.hideLabel ? m("", !0) : (t(), u("span", {
|
|
@@ -752,17 +753,17 @@ const Ae = /* @__PURE__ */ C({
|
|
|
752
753
|
locString: s.item.locText
|
|
753
754
|
}, null, 8, ["locString"])
|
|
754
755
|
], 2))
|
|
755
|
-
], 10,
|
|
756
|
+
], 10, ps)
|
|
756
757
|
]);
|
|
757
758
|
};
|
|
758
759
|
}
|
|
759
|
-
}),
|
|
760
|
+
}), Cs = { key: 5 }, hs = ["value"], bs = /* @__PURE__ */ C({
|
|
760
761
|
__name: "Radiogroup",
|
|
761
762
|
props: {
|
|
762
763
|
question: {}
|
|
763
764
|
},
|
|
764
765
|
setup(r) {
|
|
765
|
-
const o = r, n =
|
|
766
|
+
const o = r, n = S(null);
|
|
766
767
|
return M(o, n), (s, e) => {
|
|
767
768
|
const i = q("survey-radiogroup-item"), a = q("survey-other-choice");
|
|
768
769
|
return t(), u("fieldset", {
|
|
@@ -771,7 +772,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
771
772
|
ref_key: "root",
|
|
772
773
|
ref: n
|
|
773
774
|
}, [
|
|
774
|
-
!s.question.hasColumns && !s.question.blockedRow ? (t(!0), u(w, { key: 0 },
|
|
775
|
+
!s.question.hasColumns && !s.question.blockedRow ? (t(!0), u(w, { key: 0 }, T(s.question.visibleChoices, (d, c) => (t(), y(i, {
|
|
775
776
|
key: d.value,
|
|
776
777
|
class: l(s.question.getItemClass(d)),
|
|
777
778
|
question: s.question,
|
|
@@ -782,7 +783,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
782
783
|
key: 1,
|
|
783
784
|
class: l(s.question.cssClasses.rootRow)
|
|
784
785
|
}, [
|
|
785
|
-
!s.question.hasColumns && s.question.blockedRow ? (t(!0), u(w, { key: 0 },
|
|
786
|
+
!s.question.hasColumns && s.question.blockedRow ? (t(!0), u(w, { key: 0 }, T(s.question.dataChoices, (d, c) => (t(), y(i, {
|
|
786
787
|
key: d.value,
|
|
787
788
|
class: l(s.question.getItemClass(d)),
|
|
788
789
|
question: s.question,
|
|
@@ -794,11 +795,11 @@ const Ae = /* @__PURE__ */ C({
|
|
|
794
795
|
key: 2,
|
|
795
796
|
class: l(s.question.cssClasses.rootMultiColumn)
|
|
796
797
|
}, [
|
|
797
|
-
s.question.hasColumns ? (t(!0), u(w, { key: 0 },
|
|
798
|
+
s.question.hasColumns ? (t(!0), u(w, { key: 0 }, T(s.question.columns, (d, c) => (t(), u("div", {
|
|
798
799
|
class: l(s.question.getColumnClass()),
|
|
799
800
|
role: "presentation"
|
|
800
801
|
}, [
|
|
801
|
-
(t(!0), u(w, null,
|
|
802
|
+
(t(!0), u(w, null, T(d, (v, f) => (t(), y(i, {
|
|
802
803
|
key: v.value,
|
|
803
804
|
class: l(s.question.getItemClass(v)),
|
|
804
805
|
question: s.question,
|
|
@@ -807,7 +808,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
807
808
|
}, null, 8, ["class", "question", "item", "index"]))), 128))
|
|
808
809
|
], 2))), 256)) : m("", !0)
|
|
809
810
|
], 2)) : m("", !0),
|
|
810
|
-
s.question.hasFootItems ? (t(!0), u(w, { key: 3 },
|
|
811
|
+
s.question.hasFootItems ? (t(!0), u(w, { key: 3 }, T(s.question.footItems, (d, c) => (t(), y(i, {
|
|
811
812
|
key: d.value,
|
|
812
813
|
class: l(s.question.getItemClass(d)),
|
|
813
814
|
question: s.question,
|
|
@@ -818,7 +819,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
818
819
|
key: 4,
|
|
819
820
|
question: s.question
|
|
820
821
|
}, null, 8, ["question"])) : m("", !0),
|
|
821
|
-
s.question.showClearButtonInContent ? (t(), u("div",
|
|
822
|
+
s.question.showClearButtonInContent ? (t(), u("div", Cs, [
|
|
822
823
|
p("input", {
|
|
823
824
|
type: "button",
|
|
824
825
|
class: l(s.question.cssClasses.clearButton),
|
|
@@ -826,12 +827,12 @@ const Ae = /* @__PURE__ */ C({
|
|
|
826
827
|
s.question.clearValue();
|
|
827
828
|
}),
|
|
828
829
|
value: s.question.clearButtonCaption
|
|
829
|
-
}, null, 10,
|
|
830
|
+
}, null, 10, hs)
|
|
830
831
|
])) : m("", !0)
|
|
831
832
|
], 2);
|
|
832
833
|
};
|
|
833
834
|
}
|
|
834
|
-
}),
|
|
835
|
+
}), ks = { role: "presentation" }, fs = ["aria-label"], Is = ["name", "value", "id", "aria-describedby", "disabled"], ws = ["xlink:href"], Ss = /* @__PURE__ */ C({
|
|
835
836
|
__name: "RadiogroupItem",
|
|
836
837
|
props: {
|
|
837
838
|
question: {},
|
|
@@ -843,7 +844,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
843
844
|
const o = r, n = (e) => o.question.getLabelClass(e), s = (e) => o.question.getControlLabelClass(e);
|
|
844
845
|
return B(() => o.item), (e, i) => {
|
|
845
846
|
const a = q("survey-string");
|
|
846
|
-
return t(), u("div",
|
|
847
|
+
return t(), u("div", ks, [
|
|
847
848
|
p("label", {
|
|
848
849
|
onMousedown: i[1] || (i[1] = (d) => e.question.onMouseDown()),
|
|
849
850
|
class: l(n(e.item)),
|
|
@@ -858,7 +859,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
858
859
|
"onUpdate:modelValue": i[0] || (i[0] = (d) => e.question.renderedValue = d),
|
|
859
860
|
disabled: !e.question.getItemEnabled(e.item),
|
|
860
861
|
class: l(e.question.cssClasses.itemControl)
|
|
861
|
-
}, null, 10,
|
|
862
|
+
}, null, 10, Is), [
|
|
862
863
|
[Y, e.question.renderedValue]
|
|
863
864
|
]),
|
|
864
865
|
e.question.cssClasses.materialDecorator ? (t(), u("span", {
|
|
@@ -871,7 +872,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
871
872
|
}, [
|
|
872
873
|
p("use", {
|
|
873
874
|
"xlink:href": e.question.itemSvgIcon
|
|
874
|
-
}, null, 8,
|
|
875
|
+
}, null, 8, ws)
|
|
875
876
|
], 2)) : m("", !0)
|
|
876
877
|
], 2)) : m("", !0),
|
|
877
878
|
e.hideLabel ? m("", !0) : (t(), u("span", {
|
|
@@ -882,19 +883,19 @@ const Ae = /* @__PURE__ */ C({
|
|
|
882
883
|
locString: e.item.locText
|
|
883
884
|
}, null, 8, ["locString"])
|
|
884
885
|
], 2))
|
|
885
|
-
], 42,
|
|
886
|
+
], 42, fs)
|
|
886
887
|
]);
|
|
887
888
|
};
|
|
888
889
|
}
|
|
889
890
|
}), Ts = /* @__PURE__ */ p("div", null, [
|
|
890
891
|
/* @__PURE__ */ p("canvas", { tabindex: "0" })
|
|
891
|
-
], -1),
|
|
892
|
+
], -1), Rs = ["title"], $s = { key: 0 }, Bs = /* @__PURE__ */ C({
|
|
892
893
|
__name: "Signaturepad",
|
|
893
894
|
props: {
|
|
894
895
|
question: {}
|
|
895
896
|
},
|
|
896
897
|
setup(r) {
|
|
897
|
-
const o = r, n =
|
|
898
|
+
const o = r, n = S(null);
|
|
898
899
|
return M(o, n), (s, e) => {
|
|
899
900
|
const i = q("sv-svg-icon");
|
|
900
901
|
return t(), u("div", {
|
|
@@ -924,24 +925,24 @@ const Ae = /* @__PURE__ */ C({
|
|
|
924
925
|
s.question.clearValue();
|
|
925
926
|
})
|
|
926
927
|
}, [
|
|
927
|
-
s.question.cssClasses.clearButtonIconId ? m("", !0) : (t(), u("span",
|
|
928
|
+
s.question.cssClasses.clearButtonIconId ? m("", !0) : (t(), u("span", $s, "\u2716")),
|
|
928
929
|
s.question.cssClasses.clearButtonIconId ? (t(), y(i, {
|
|
929
930
|
key: 1,
|
|
930
931
|
iconName: s.question.cssClasses.clearButtonIconId,
|
|
931
932
|
size: "auto"
|
|
932
933
|
}, null, 8, ["iconName"])) : m("", !0)
|
|
933
|
-
], 10,
|
|
934
|
+
], 10, Rs)
|
|
934
935
|
], 2)) : m("", !0)
|
|
935
936
|
], 6);
|
|
936
937
|
};
|
|
937
938
|
}
|
|
938
|
-
}),
|
|
939
|
+
}), Ls = ["innerHTML"], Ds = /* @__PURE__ */ C({
|
|
939
940
|
__name: "Html",
|
|
940
941
|
props: {
|
|
941
942
|
question: {}
|
|
942
943
|
},
|
|
943
944
|
setup(r) {
|
|
944
|
-
const o = r, n =
|
|
945
|
+
const o = r, n = S(null);
|
|
945
946
|
M(o, n);
|
|
946
947
|
const s = W(() => o.question.locHtml);
|
|
947
948
|
return (e, i) => (t(), u("div", {
|
|
@@ -949,15 +950,15 @@ const Ae = /* @__PURE__ */ C({
|
|
|
949
950
|
ref: n,
|
|
950
951
|
class: l(e.question.renderCssRoot),
|
|
951
952
|
innerHTML: b(s)
|
|
952
|
-
}, null, 10,
|
|
953
|
+
}, null, 10, Ls));
|
|
953
954
|
}
|
|
954
|
-
}),
|
|
955
|
+
}), Ps = ["src", "alt", "width", "height"], Ms = ["src", "width", "height"], Ns = ["src", "width", "height"], Hs = /* @__PURE__ */ C({
|
|
955
956
|
__name: "Image",
|
|
956
957
|
props: {
|
|
957
958
|
question: {}
|
|
958
959
|
},
|
|
959
960
|
setup(r) {
|
|
960
|
-
const o = r, n =
|
|
961
|
+
const o = r, n = S(null);
|
|
961
962
|
M(o, n);
|
|
962
963
|
const s = W(() => o.question.locImageLink);
|
|
963
964
|
return (e, i) => {
|
|
@@ -985,7 +986,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
985
986
|
onError: i[1] || (i[1] = (d) => {
|
|
986
987
|
e.question.onErrorHandler();
|
|
987
988
|
})
|
|
988
|
-
}, null, 46,
|
|
989
|
+
}, null, 46, Ps)), [
|
|
989
990
|
[H, b(s) && !e.question.contentNotLoaded]
|
|
990
991
|
]) : m("", !0),
|
|
991
992
|
e.question.renderedMode === "video" ? D((t(), u("video", {
|
|
@@ -1006,7 +1007,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1006
1007
|
onError: i[3] || (i[3] = (d) => {
|
|
1007
1008
|
e.question.onErrorHandler();
|
|
1008
1009
|
})
|
|
1009
|
-
}, null, 46,
|
|
1010
|
+
}, null, 46, Ms)), [
|
|
1010
1011
|
[H, b(s) && !e.question.contentNotLoaded]
|
|
1011
1012
|
]) : m("", !0),
|
|
1012
1013
|
e.question.renderedMode === "youtube" ? (t(), u("iframe", {
|
|
@@ -1020,7 +1021,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1020
1021
|
width: e.question.renderedStyleWidth,
|
|
1021
1022
|
height: e.question.renderedStyleHeight
|
|
1022
1023
|
})
|
|
1023
|
-
}, null, 14,
|
|
1024
|
+
}, null, 14, Ns)) : m("", !0),
|
|
1024
1025
|
!b(s) || e.question.contentNotLoaded ? (t(), u("div", {
|
|
1025
1026
|
key: 3,
|
|
1026
1027
|
class: l(e.question.cssClasses.noImage)
|
|
@@ -1033,26 +1034,26 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1033
1034
|
], 2);
|
|
1034
1035
|
};
|
|
1035
1036
|
}
|
|
1036
|
-
}),
|
|
1037
|
+
}), Es = /* @__PURE__ */ C({
|
|
1037
1038
|
__name: "Expression",
|
|
1038
1039
|
props: {
|
|
1039
1040
|
question: {}
|
|
1040
1041
|
},
|
|
1041
1042
|
setup(r) {
|
|
1042
|
-
const o = r, n =
|
|
1043
|
+
const o = r, n = S(null);
|
|
1043
1044
|
return M(o, n), (s, e) => (t(), u("div", {
|
|
1044
1045
|
class: l(s.question.cssClasses.text),
|
|
1045
1046
|
ref_key: "root",
|
|
1046
1047
|
ref: n
|
|
1047
1048
|
}, I(s.question.formatedValue), 3));
|
|
1048
1049
|
}
|
|
1049
|
-
}),
|
|
1050
|
+
}), As = ["id", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "multiple", "title", "accept", "capture"], Os = ["id", "multiple", "placeholder"], Vs = ["for", "aria-label"], Fs = ["onClick", "href", "title", "download"], Ws = ["src"], zs = ["onClick"], Us = ["onClick", "href", "title", "download"], Ks = /* @__PURE__ */ C({
|
|
1050
1051
|
__name: "File",
|
|
1051
1052
|
props: {
|
|
1052
1053
|
question: {}
|
|
1053
1054
|
},
|
|
1054
1055
|
setup(r) {
|
|
1055
|
-
const o = r, n =
|
|
1056
|
+
const o = r, n = S(null);
|
|
1056
1057
|
M(o, n);
|
|
1057
1058
|
const s = (e) => o.question.isPreviewVisible(e);
|
|
1058
1059
|
return (e, i) => {
|
|
@@ -1075,7 +1076,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1075
1076
|
title: e.question.inputTitle,
|
|
1076
1077
|
accept: e.question.acceptedTypes,
|
|
1077
1078
|
capture: e.question.renderCapture
|
|
1078
|
-
}, null, 42,
|
|
1079
|
+
}, null, 42, As)),
|
|
1079
1080
|
e.question.isReadOnly ? (t(), u("input", {
|
|
1080
1081
|
key: 1,
|
|
1081
1082
|
type: "file",
|
|
@@ -1085,7 +1086,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1085
1086
|
multiple: e.question.allowMultiple,
|
|
1086
1087
|
placeholder: e.question.title,
|
|
1087
1088
|
style: { color: "transparent" }
|
|
1088
|
-
}, null, 10,
|
|
1089
|
+
}, null, 10, Os)) : m("", !0),
|
|
1089
1090
|
p("div", {
|
|
1090
1091
|
class: l(e.question.cssClasses.dragArea),
|
|
1091
1092
|
onDrop: i[3] || (i[3] = (...v) => e.question.onDrop && e.question.onDrop(...v)),
|
|
@@ -1102,7 +1103,8 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1102
1103
|
p("div", {
|
|
1103
1104
|
class: l(e.question.cssClasses.wrapper)
|
|
1104
1105
|
}, [
|
|
1105
|
-
D((t(), u("label", {
|
|
1106
|
+
e.question.isReadOnly ? m("", !0) : D((t(), u("label", {
|
|
1107
|
+
key: 0,
|
|
1106
1108
|
role: "button",
|
|
1107
1109
|
tabindex: "0",
|
|
1108
1110
|
class: l(e.question.getChooseFileCss()),
|
|
@@ -1116,11 +1118,11 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1116
1118
|
iconName: e.question.cssClasses.chooseFileIconId,
|
|
1117
1119
|
size: "auto"
|
|
1118
1120
|
}, null, 8, ["title", "iconName"])) : m("", !0)
|
|
1119
|
-
], 10,
|
|
1121
|
+
], 10, Vs)), [
|
|
1120
1122
|
[c]
|
|
1121
1123
|
]),
|
|
1122
1124
|
e.question.isEmpty() ? (t(), u("span", {
|
|
1123
|
-
key:
|
|
1125
|
+
key: 1,
|
|
1124
1126
|
class: l(e.question.cssClasses.noFileChosen)
|
|
1125
1127
|
}, I(e.question.noFileChosenCaption), 3)) : m("", !0)
|
|
1126
1128
|
], 2)
|
|
@@ -1143,7 +1145,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1143
1145
|
key: 1,
|
|
1144
1146
|
class: l(e.question.cssClasses.fileList || void 0)
|
|
1145
1147
|
}, [
|
|
1146
|
-
(t(!0), u(w, null,
|
|
1148
|
+
(t(!0), u(w, null, T(e.question.previewValue, (v, f) => D((t(), u("span", {
|
|
1147
1149
|
key: e.question.inputId + "_" + f,
|
|
1148
1150
|
class: l(e.question.cssClasses.preview)
|
|
1149
1151
|
}, [
|
|
@@ -1157,7 +1159,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1157
1159
|
title: v.name,
|
|
1158
1160
|
download: v.name,
|
|
1159
1161
|
style: $({ width: e.question.imageWidth })
|
|
1160
|
-
}, I(v.name), 13,
|
|
1162
|
+
}, I(v.name), 13, Fs)
|
|
1161
1163
|
], 2)) : m("", !0),
|
|
1162
1164
|
p("div", {
|
|
1163
1165
|
class: l(e.question.cssClasses.imageWrapper)
|
|
@@ -1170,7 +1172,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1170
1172
|
width: e.question.imageWidth
|
|
1171
1173
|
}),
|
|
1172
1174
|
alt: "File preview"
|
|
1173
|
-
}, null, 12,
|
|
1175
|
+
}, null, 12, Ws)) : m("", !0),
|
|
1174
1176
|
e.question.defaultImage(v) ? (t(), y(a, {
|
|
1175
1177
|
key: 1,
|
|
1176
1178
|
iconName: e.question.cssClasses.defaultImageIconId,
|
|
@@ -1192,7 +1194,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1192
1194
|
iconName: e.question.cssClasses.removeFileSvgIconId,
|
|
1193
1195
|
size: "auto"
|
|
1194
1196
|
}, null, 8, ["title", "class", "iconName"])) : m("", !0)
|
|
1195
|
-
], 10,
|
|
1197
|
+
], 10, zs)) : m("", !0)
|
|
1196
1198
|
], 2),
|
|
1197
1199
|
v.name && e.question.cssClasses.fileSignBottom ? (t(), u("div", {
|
|
1198
1200
|
key: 1,
|
|
@@ -1204,7 +1206,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1204
1206
|
title: v.name,
|
|
1205
1207
|
download: v.name,
|
|
1206
1208
|
style: $({ width: e.question.imageWidth })
|
|
1207
|
-
}, I(v.name), 13,
|
|
1209
|
+
}, I(v.name), 13, Us)
|
|
1208
1210
|
], 2)) : m("", !0)
|
|
1209
1211
|
], 2)), [
|
|
1210
1212
|
[H, v && s(f)]
|
|
@@ -1232,13 +1234,13 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1232
1234
|
], 2);
|
|
1233
1235
|
};
|
|
1234
1236
|
}
|
|
1235
|
-
}),
|
|
1237
|
+
}), js = ["aria-label"], Qs = /* @__PURE__ */ C({
|
|
1236
1238
|
__name: "Imagepicker",
|
|
1237
1239
|
props: {
|
|
1238
1240
|
question: {}
|
|
1239
1241
|
},
|
|
1240
1242
|
setup(r) {
|
|
1241
|
-
const o = r, n =
|
|
1243
|
+
const o = r, n = S(null);
|
|
1242
1244
|
return M(o, n), (s, e) => {
|
|
1243
1245
|
const i = q("survey-imagepicker-item");
|
|
1244
1246
|
return t(), u("fieldset", {
|
|
@@ -1249,18 +1251,18 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1249
1251
|
p("legend", {
|
|
1250
1252
|
role: "radio",
|
|
1251
1253
|
"aria-label": s.question.locTitle.renderedHtml
|
|
1252
|
-
}, null, 8,
|
|
1253
|
-
s.question.hasColumns ? m("", !0) : (t(!0), u(w, { key: 0 },
|
|
1254
|
+
}, null, 8, js),
|
|
1255
|
+
s.question.hasColumns ? m("", !0) : (t(!0), u(w, { key: 0 }, T(s.question.visibleChoices, (a) => (t(), y(i, {
|
|
1254
1256
|
key: a.value,
|
|
1255
1257
|
question: s.question,
|
|
1256
1258
|
item: a
|
|
1257
1259
|
}, null, 8, ["question", "item"]))), 128)),
|
|
1258
|
-
s.question.hasColumns ? (t(!0), u(w, { key: 1 },
|
|
1260
|
+
s.question.hasColumns ? (t(!0), u(w, { key: 1 }, T(s.question.columns, (a, d) => (t(), u("div", {
|
|
1259
1261
|
class: l(s.question.getColumnClass()),
|
|
1260
1262
|
key: d,
|
|
1261
1263
|
role: "presentation"
|
|
1262
1264
|
}, [
|
|
1263
|
-
(t(!0), u(w, null,
|
|
1265
|
+
(t(!0), u(w, null, T(a, (c) => (t(), y(i, {
|
|
1264
1266
|
key: c.value,
|
|
1265
1267
|
question: s.question,
|
|
1266
1268
|
item: c
|
|
@@ -1269,7 +1271,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1269
1271
|
], 2);
|
|
1270
1272
|
};
|
|
1271
1273
|
}
|
|
1272
|
-
}),
|
|
1274
|
+
}), Zs = ["name", "value", "id", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Gs = ["name", "value", "id", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Xs = ["src", "width", "height", "alt"], Js = ["src", "width", "height"], Ys = /* @__PURE__ */ C({
|
|
1273
1275
|
__name: "ImagepickerItem",
|
|
1274
1276
|
props: {
|
|
1275
1277
|
question: {},
|
|
@@ -1300,7 +1302,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1300
1302
|
"aria-invalid": e.question.ariaInvalid,
|
|
1301
1303
|
"aria-describedby": e.question.ariaDescribedBy,
|
|
1302
1304
|
class: l(e.question.cssClasses.itemControl)
|
|
1303
|
-
}, null, 10,
|
|
1305
|
+
}, null, 10, Zs)), [
|
|
1304
1306
|
[z, e.question.value]
|
|
1305
1307
|
]) : D((t(), u("input", {
|
|
1306
1308
|
key: 1,
|
|
@@ -1315,7 +1317,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1315
1317
|
"aria-invalid": e.question.ariaInvalid,
|
|
1316
1318
|
"aria-describedby": e.question.ariaDescribedBy,
|
|
1317
1319
|
class: l(e.question.cssClasses.itemControl)
|
|
1318
|
-
}, null, 10,
|
|
1320
|
+
}, null, 10, Gs)), [
|
|
1319
1321
|
[Y, e.question.value]
|
|
1320
1322
|
]),
|
|
1321
1323
|
p("div", {
|
|
@@ -1349,7 +1351,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1349
1351
|
onError: i[3] || (i[3] = (c) => {
|
|
1350
1352
|
e.item.onErrorHandler();
|
|
1351
1353
|
})
|
|
1352
|
-
}, null, 46,
|
|
1354
|
+
}, null, 46, Xs)) : m("", !0),
|
|
1353
1355
|
b(s) && !e.item.contentNotLoaded && e.question.contentMode === "video" ? (t(), u("video", {
|
|
1354
1356
|
key: 2,
|
|
1355
1357
|
controls: "",
|
|
@@ -1364,7 +1366,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1364
1366
|
onError: i[5] || (i[5] = (c) => {
|
|
1365
1367
|
e.item.onErrorHandler();
|
|
1366
1368
|
})
|
|
1367
|
-
}, null, 46,
|
|
1369
|
+
}, null, 46, Js)) : m("", !0),
|
|
1368
1370
|
!b(s) || e.item.contentNotLoaded ? (t(), u("div", {
|
|
1369
1371
|
key: 3,
|
|
1370
1372
|
class: l(e.question.cssClasses.itemNoImage),
|
|
@@ -1394,14 +1396,14 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1394
1396
|
], 2);
|
|
1395
1397
|
};
|
|
1396
1398
|
}
|
|
1397
|
-
}),
|
|
1399
|
+
}), _s = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], xs = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], en = /* @__PURE__ */ C({
|
|
1398
1400
|
__name: "Comment",
|
|
1399
1401
|
props: {
|
|
1400
1402
|
question: {},
|
|
1401
1403
|
css: {}
|
|
1402
1404
|
},
|
|
1403
1405
|
setup(r) {
|
|
1404
|
-
const o = r, n =
|
|
1406
|
+
const o = r, n = S(null);
|
|
1405
1407
|
M(o, n);
|
|
1406
1408
|
const s = (e) => {
|
|
1407
1409
|
const i = o.question;
|
|
@@ -1435,7 +1437,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1435
1437
|
"aria-invalid": e.question.a11y_input_ariaInvalid,
|
|
1436
1438
|
"aria-describedby": e.question.a11y_input_ariaDescribedBy,
|
|
1437
1439
|
style: $({ resize: e.question.resizeStyle })
|
|
1438
|
-
}, null, 46,
|
|
1440
|
+
}, null, 46, _s)) : !e.question.isReadOnlyRenderDiv() && e.question.getMaxLength() ? (t(), u("div", {
|
|
1439
1441
|
key: 1,
|
|
1440
1442
|
ref_key: "root",
|
|
1441
1443
|
ref: n
|
|
@@ -1463,7 +1465,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1463
1465
|
"aria-invalid": e.question.a11y_input_ariaInvalid,
|
|
1464
1466
|
"aria-describedby": e.question.a11y_input_ariaDescribedBy,
|
|
1465
1467
|
style: $({ resize: e.question.resizeStyle })
|
|
1466
|
-
}, null, 46,
|
|
1468
|
+
}, null, 46, xs),
|
|
1467
1469
|
h(a, {
|
|
1468
1470
|
counter: e.question.characterCounter,
|
|
1469
1471
|
remainingCharacterCounter: e.question.cssClasses.remainingCharacterCounter
|
|
@@ -1475,13 +1477,13 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1475
1477
|
}, I(e.question.value), 513));
|
|
1476
1478
|
};
|
|
1477
1479
|
}
|
|
1478
|
-
}),
|
|
1480
|
+
}), sn = /* @__PURE__ */ C({
|
|
1479
1481
|
__name: "Dropdown",
|
|
1480
1482
|
props: {
|
|
1481
1483
|
question: {}
|
|
1482
1484
|
},
|
|
1483
1485
|
setup(r) {
|
|
1484
|
-
const o = r, n =
|
|
1486
|
+
const o = r, n = S(null);
|
|
1485
1487
|
return M(o, n), (s, e) => {
|
|
1486
1488
|
const i = q("sv-dropdown"), a = q("survey-other-choice");
|
|
1487
1489
|
return t(), u("div", {
|
|
@@ -1497,22 +1499,22 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1497
1499
|
], 2);
|
|
1498
1500
|
};
|
|
1499
1501
|
}
|
|
1500
|
-
}),
|
|
1502
|
+
}), nn = ["id", "autocomplete", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "required"], on = {
|
|
1501
1503
|
key: 0,
|
|
1502
1504
|
value: ""
|
|
1503
|
-
},
|
|
1504
|
-
|
|
1505
|
+
}, tn = ["id"];
|
|
1506
|
+
X.Instance.registerRenderer(
|
|
1505
1507
|
"dropdown",
|
|
1506
1508
|
"select",
|
|
1507
1509
|
"sv-dropdown-select"
|
|
1508
1510
|
);
|
|
1509
|
-
const
|
|
1511
|
+
const ln = /* @__PURE__ */ C({
|
|
1510
1512
|
__name: "DropdownSelect",
|
|
1511
1513
|
props: {
|
|
1512
1514
|
question: {}
|
|
1513
1515
|
},
|
|
1514
1516
|
setup(r) {
|
|
1515
|
-
const o = r, n =
|
|
1517
|
+
const o = r, n = S(null);
|
|
1516
1518
|
M(o, n);
|
|
1517
1519
|
const s = (a) => {
|
|
1518
1520
|
o.question.onClick(a);
|
|
@@ -1541,7 +1543,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1541
1543
|
disabled: "",
|
|
1542
1544
|
id: a.question.inputId,
|
|
1543
1545
|
class: l(a.question.getControlClass())
|
|
1544
|
-
}, I(a.question.readOnlyText), 11,
|
|
1546
|
+
}, I(a.question.readOnlyText), 11, tn)) : D((t(), u("select", {
|
|
1545
1547
|
key: 0,
|
|
1546
1548
|
id: a.question.inputId,
|
|
1547
1549
|
"onUpdate:modelValue": d[0] || (d[0] = (g) => i.value = g),
|
|
@@ -1555,13 +1557,13 @@ const tn = /* @__PURE__ */ C({
|
|
|
1555
1557
|
"aria-describedby": a.question.ariaDescribedBy,
|
|
1556
1558
|
required: a.question.isRequired
|
|
1557
1559
|
}, [
|
|
1558
|
-
a.question.allowClear ? (t(), u("option",
|
|
1559
|
-
(t(!0), u(w, null,
|
|
1560
|
+
a.question.allowClear ? (t(), u("option", on, I(a.question.placeholder), 1)) : m("", !0),
|
|
1561
|
+
(t(!0), u(w, null, T(a.question.visibleChoices, (g) => (t(), y(c, {
|
|
1560
1562
|
item: g,
|
|
1561
1563
|
key: g.id
|
|
1562
1564
|
}, null, 8, ["item"]))), 128))
|
|
1563
|
-
], 42,
|
|
1564
|
-
[
|
|
1565
|
+
], 42, nn)), [
|
|
1566
|
+
[pe, i.value]
|
|
1565
1567
|
]),
|
|
1566
1568
|
a.question.cssClasses.chevronButtonIconId ? (t(), u("div", {
|
|
1567
1569
|
key: 2,
|
|
@@ -1581,7 +1583,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1581
1583
|
], 2);
|
|
1582
1584
|
};
|
|
1583
1585
|
}
|
|
1584
|
-
}),
|
|
1586
|
+
}), rn = ["value", "disabled"], an = /* @__PURE__ */ C({
|
|
1585
1587
|
__name: "OptionItem",
|
|
1586
1588
|
props: {
|
|
1587
1589
|
item: {}
|
|
@@ -1591,17 +1593,17 @@ const tn = /* @__PURE__ */ C({
|
|
|
1591
1593
|
return B(() => o.item), (s, e) => (t(), u("option", {
|
|
1592
1594
|
value: s.item.value,
|
|
1593
1595
|
disabled: !s.item.isEnabled
|
|
1594
|
-
}, I(b(n)), 9,
|
|
1596
|
+
}, I(b(n)), 9, rn));
|
|
1595
1597
|
}
|
|
1596
|
-
}),
|
|
1598
|
+
}), un = ["id", "disabled", "tabindex", "role", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], dn = { style: { visibility: "hidden" } }, mn = ["disabled", "inputmode", "role", "id", "tabindex", "readonly", "aria-label", "aria-expanded", "aria-controls", "aria-activedescendant", "placeholder"], cn = ["id"], pn = /* @__PURE__ */ C({
|
|
1597
1599
|
__name: "Dropdown",
|
|
1598
1600
|
props: {
|
|
1599
1601
|
question: {}
|
|
1600
1602
|
},
|
|
1601
1603
|
setup(r) {
|
|
1602
|
-
const o = r, n =
|
|
1604
|
+
const o = r, n = S(null), s = R(() => {
|
|
1603
1605
|
const g = o.question;
|
|
1604
|
-
return g.dropdownListModel || (g.dropdownListModel = new
|
|
1606
|
+
return g.dropdownListModel || (g.dropdownListModel = new fe(g)), o.question.dropdownListModel;
|
|
1605
1607
|
}), e = (g) => {
|
|
1606
1608
|
var k;
|
|
1607
1609
|
(k = s.value) == null || k.onClick(g);
|
|
@@ -1614,7 +1616,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1614
1616
|
}, d = () => {
|
|
1615
1617
|
if (n.value) {
|
|
1616
1618
|
const g = n.value, k = s.value.inputStringRendered;
|
|
1617
|
-
|
|
1619
|
+
Ie.isTwoValueEquals(k, g.value) || (g.value = s.value.inputStringRendered);
|
|
1618
1620
|
}
|
|
1619
1621
|
}, c = (g) => {
|
|
1620
1622
|
var k;
|
|
@@ -1625,7 +1627,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1625
1627
|
}, f = (g) => {
|
|
1626
1628
|
s.value.inputStringRendered = g.target.value;
|
|
1627
1629
|
};
|
|
1628
|
-
return B(() => s.value),
|
|
1630
|
+
return B(() => s.value), K(d), E(d), (g, k) => {
|
|
1629
1631
|
const P = q("survey-string"), L = q("sv-svg-icon"), A = q("sv-popup");
|
|
1630
1632
|
return t(), u("div", {
|
|
1631
1633
|
class: l(g.question.cssClasses.selectWrapper),
|
|
@@ -1666,7 +1668,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1666
1668
|
key: 1,
|
|
1667
1669
|
class: l(g.question.cssClasses.hintSuffix)
|
|
1668
1670
|
}, [
|
|
1669
|
-
p("span",
|
|
1671
|
+
p("span", dn, I(s.value.inputStringRendered), 1),
|
|
1670
1672
|
p("span", null, I(s.value.hintStringSuffix), 1)
|
|
1671
1673
|
], 2)) : m("", !0),
|
|
1672
1674
|
g.question.showInputFieldComponent ? (t(), y(N(g.question.inputFieldComponentName), {
|
|
@@ -1694,7 +1696,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1694
1696
|
onInput: f,
|
|
1695
1697
|
onBlur: c,
|
|
1696
1698
|
onFocus: v
|
|
1697
|
-
}, null, 42,
|
|
1699
|
+
}, null, 42, mn)
|
|
1698
1700
|
], 2),
|
|
1699
1701
|
g.question.allowClear && g.question.cssClasses.cleanButtonIconId ? D((t(), u("div", {
|
|
1700
1702
|
key: 1,
|
|
@@ -1710,7 +1712,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1710
1712
|
], 2)), [
|
|
1711
1713
|
[H, !g.question.isEmpty()]
|
|
1712
1714
|
]) : m("", !0)
|
|
1713
|
-
], 42,
|
|
1715
|
+
], 42, un)),
|
|
1714
1716
|
g.question.isReadOnly ? (t(), u("div", {
|
|
1715
1717
|
key: 2,
|
|
1716
1718
|
disabled: "",
|
|
@@ -1722,7 +1724,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1722
1724
|
locString: g.question.selectedItemLocText
|
|
1723
1725
|
}, null, 8, ["locString"])) : m("", !0),
|
|
1724
1726
|
p("div", null, I(g.question.readOnlyText), 1)
|
|
1725
|
-
], 10,
|
|
1727
|
+
], 10, cn)) : (t(), y(A, {
|
|
1726
1728
|
key: 1,
|
|
1727
1729
|
model: g.question.dropdownListModel.popupModel
|
|
1728
1730
|
}, null, 8, ["model"])),
|
|
@@ -1739,13 +1741,13 @@ const tn = /* @__PURE__ */ C({
|
|
|
1739
1741
|
], 2);
|
|
1740
1742
|
};
|
|
1741
1743
|
}
|
|
1742
|
-
}),
|
|
1744
|
+
}), vn = /* @__PURE__ */ C({
|
|
1743
1745
|
__name: "Tagbox",
|
|
1744
1746
|
props: {
|
|
1745
1747
|
question: {}
|
|
1746
1748
|
},
|
|
1747
1749
|
setup(r) {
|
|
1748
|
-
const o = r, n =
|
|
1750
|
+
const o = r, n = S(null);
|
|
1749
1751
|
return M(o, n), (s, e) => {
|
|
1750
1752
|
const i = q("sv-tagbox"), a = q("survey-other-choice");
|
|
1751
1753
|
return t(), u("div", {
|
|
@@ -1761,7 +1763,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1761
1763
|
], 2);
|
|
1762
1764
|
};
|
|
1763
1765
|
}
|
|
1764
|
-
}),
|
|
1766
|
+
}), qn = ["id", "tabindex", "disabled", "role", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], yn = ["id"], gn = /* @__PURE__ */ C({
|
|
1765
1767
|
__name: "Tagbox",
|
|
1766
1768
|
props: {
|
|
1767
1769
|
question: {}
|
|
@@ -1769,7 +1771,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1769
1771
|
setup(r) {
|
|
1770
1772
|
const o = r, n = R(() => {
|
|
1771
1773
|
const d = o.question;
|
|
1772
|
-
return d.dropdownListModel || (d.dropdownListModel = new
|
|
1774
|
+
return d.dropdownListModel || (d.dropdownListModel = new we(d)), o.question.dropdownListModel;
|
|
1773
1775
|
}), s = (d) => {
|
|
1774
1776
|
var c;
|
|
1775
1777
|
(c = n.value) == null || c.onClick(d);
|
|
@@ -1810,7 +1812,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1810
1812
|
p("div", {
|
|
1811
1813
|
class: l(d.question.cssClasses.controlValue)
|
|
1812
1814
|
}, [
|
|
1813
|
-
(t(!0), u(w, null,
|
|
1815
|
+
(t(!0), u(w, null, T(d.question.selectedChoices, (P, L) => (t(), y(v, {
|
|
1814
1816
|
item: P,
|
|
1815
1817
|
question: d.question,
|
|
1816
1818
|
key: "item" + L
|
|
@@ -1834,7 +1836,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1834
1836
|
], 2)), [
|
|
1835
1837
|
[H, !d.question.isEmpty()]
|
|
1836
1838
|
]) : m("", !0)
|
|
1837
|
-
], 42,
|
|
1839
|
+
], 42, qn)),
|
|
1838
1840
|
d.question.isReadOnly ? (t(), u("div", {
|
|
1839
1841
|
key: 2,
|
|
1840
1842
|
disabled: "",
|
|
@@ -1842,7 +1844,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1842
1844
|
class: l(d.question.getControlClass())
|
|
1843
1845
|
}, [
|
|
1844
1846
|
p("div", null, I(d.question.readOnlyText), 1)
|
|
1845
|
-
], 10,
|
|
1847
|
+
], 10, yn)) : (t(), y(k, {
|
|
1846
1848
|
key: 1,
|
|
1847
1849
|
model: n.value.popupModel
|
|
1848
1850
|
}, null, 8, ["model"])),
|
|
@@ -1859,7 +1861,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1859
1861
|
], 2);
|
|
1860
1862
|
};
|
|
1861
1863
|
}
|
|
1862
|
-
}),
|
|
1864
|
+
}), Cn = { style: { visibility: "hidden" } }, hn = ["placeholder", "disabled", "inputmode", "role", "aria-label", "aria-expanded", "aria-controls", "aria-activedescendant", "id", "readonly", "size"], bn = /* @__PURE__ */ C({
|
|
1863
1865
|
__name: "TagboxFilter",
|
|
1864
1866
|
props: {
|
|
1865
1867
|
question: {},
|
|
@@ -1898,7 +1900,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1898
1900
|
key: 1,
|
|
1899
1901
|
class: l(a.question.cssClasses.hintSuffix)
|
|
1900
1902
|
}, [
|
|
1901
|
-
p("span",
|
|
1903
|
+
p("span", Cn, I(a.model.inputStringRendered), 1),
|
|
1902
1904
|
p("span", null, I(a.model.hintStringSuffix), 1)
|
|
1903
1905
|
], 2)) : m("", !0),
|
|
1904
1906
|
D(p("input", {
|
|
@@ -1921,14 +1923,14 @@ const tn = /* @__PURE__ */ C({
|
|
|
1921
1923
|
onKeydown: s,
|
|
1922
1924
|
onBlur: e,
|
|
1923
1925
|
onFocus: i
|
|
1924
|
-
}, null, 42,
|
|
1925
|
-
[
|
|
1926
|
+
}, null, 42, hn), [
|
|
1927
|
+
[ve, a.model.inputStringRendered]
|
|
1926
1928
|
])
|
|
1927
1929
|
], 2)
|
|
1928
1930
|
], 2);
|
|
1929
1931
|
};
|
|
1930
1932
|
}
|
|
1931
|
-
}),
|
|
1933
|
+
}), kn = { class: "sv-tagbox__item-text" }, fn = /* @__PURE__ */ C({
|
|
1932
1934
|
__name: "TagboxItem",
|
|
1933
1935
|
props: {
|
|
1934
1936
|
question: {},
|
|
@@ -1944,7 +1946,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1944
1946
|
class: "sv-tagbox__item",
|
|
1945
1947
|
key: s.item.key
|
|
1946
1948
|
}, [
|
|
1947
|
-
p("div",
|
|
1949
|
+
p("div", kn, [
|
|
1948
1950
|
h(i, {
|
|
1949
1951
|
locString: s.item.locText
|
|
1950
1952
|
}, null, 8, ["locString"])
|
|
@@ -1962,13 +1964,13 @@ const tn = /* @__PURE__ */ C({
|
|
|
1962
1964
|
]);
|
|
1963
1965
|
};
|
|
1964
1966
|
}
|
|
1965
|
-
}),
|
|
1967
|
+
}), In = /* @__PURE__ */ C({
|
|
1966
1968
|
__name: "Ranking",
|
|
1967
1969
|
props: {
|
|
1968
1970
|
question: {}
|
|
1969
1971
|
},
|
|
1970
1972
|
setup(r) {
|
|
1971
|
-
const o = r, n =
|
|
1973
|
+
const o = r, n = S(null);
|
|
1972
1974
|
M(o, n);
|
|
1973
1975
|
const s = (e) => o.question.getNumberByIndex(e);
|
|
1974
1976
|
return (e, i) => {
|
|
@@ -1978,7 +1980,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1978
1980
|
ref_key: "root",
|
|
1979
1981
|
ref: n
|
|
1980
1982
|
}, [
|
|
1981
|
-
e.question.selectToRankEnabled ? m("", !0) : (t(!0), u(w, { key: 0 },
|
|
1983
|
+
e.question.selectToRankEnabled ? m("", !0) : (t(!0), u(w, { key: 0 }, T(e.question.rankingChoices, (d, c) => (t(), y(a, {
|
|
1982
1984
|
key: d.value + "-" + c + "-item",
|
|
1983
1985
|
class: l(e.question.getItemClass(d)),
|
|
1984
1986
|
text: d.locText,
|
|
@@ -1993,7 +1995,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1993
1995
|
class: l(e.question.getContainerClasses("from")),
|
|
1994
1996
|
"data-ranking": "from-container"
|
|
1995
1997
|
}, [
|
|
1996
|
-
(t(!0), u(w, null,
|
|
1998
|
+
(t(!0), u(w, null, T(e.question.unRankingChoices, (d, c) => (t(), y(a, {
|
|
1997
1999
|
key: d.value + "-" + c + "-item",
|
|
1998
2000
|
class: l(e.question.getItemClass(d)),
|
|
1999
2001
|
text: d.locText,
|
|
@@ -2018,7 +2020,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2018
2020
|
class: l(e.question.getContainerClasses("to")),
|
|
2019
2021
|
"data-ranking": "to-container"
|
|
2020
2022
|
}, [
|
|
2021
|
-
(t(!0), u(w, null,
|
|
2023
|
+
(t(!0), u(w, null, T(e.question.rankingChoices, (d, c) => (t(), y(a, {
|
|
2022
2024
|
key: d.value + "-" + c + "-item",
|
|
2023
2025
|
class: l(e.question.getItemClass(d)),
|
|
2024
2026
|
text: d.locText,
|
|
@@ -2036,15 +2038,15 @@ const tn = /* @__PURE__ */ C({
|
|
|
2036
2038
|
], 2);
|
|
2037
2039
|
};
|
|
2038
2040
|
}
|
|
2039
|
-
}),
|
|
2041
|
+
}), wn = ["tabindex", "data-sv-drop-target-ranking-item"], Sn = {
|
|
2040
2042
|
tabindex: "-1",
|
|
2041
2043
|
style: { outline: "none" }
|
|
2042
|
-
}, Tn = /* @__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),
|
|
2044
|
+
}, Tn = /* @__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), Rn = [
|
|
2043
2045
|
Tn
|
|
2044
|
-
],
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
],
|
|
2046
|
+
], $n = /* @__PURE__ */ p("path", { d: "M10 5L5 0L0 5H4V9H6V5H10Z" }, null, -1), Bn = /* @__PURE__ */ p("path", { d: "M6 19V15H4V19H0L5 24L10 19H6Z" }, null, -1), Ln = [
|
|
2047
|
+
$n,
|
|
2048
|
+
Bn
|
|
2049
|
+
], Dn = /* @__PURE__ */ C({
|
|
2048
2050
|
__name: "RankingItem",
|
|
2049
2051
|
props: {
|
|
2050
2052
|
index: {},
|
|
@@ -2076,7 +2078,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2076
2078
|
);
|
|
2077
2079
|
})
|
|
2078
2080
|
}, [
|
|
2079
|
-
p("div",
|
|
2081
|
+
p("div", Sn, [
|
|
2080
2082
|
p("div", {
|
|
2081
2083
|
class: l(n.cssClasses.itemGhostNode)
|
|
2082
2084
|
}, null, 2),
|
|
@@ -2092,14 +2094,14 @@ const tn = /* @__PURE__ */ C({
|
|
|
2092
2094
|
viewBox: "0 0 10 16",
|
|
2093
2095
|
class: l(n.question.getIconHoverCss()),
|
|
2094
2096
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2095
|
-
},
|
|
2097
|
+
}, Rn, 2)),
|
|
2096
2098
|
(t(), u("svg", {
|
|
2097
2099
|
width: "10",
|
|
2098
2100
|
height: "24",
|
|
2099
2101
|
viewBox: "0 0 10 24",
|
|
2100
2102
|
class: l(n.question.getIconFocusCss()),
|
|
2101
2103
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2102
|
-
},
|
|
2104
|
+
}, Ln, 2))
|
|
2103
2105
|
], 2),
|
|
2104
2106
|
p("div", {
|
|
2105
2107
|
class: l(n.question.getItemIndexClasses(n.item))
|
|
@@ -2111,19 +2113,19 @@ const tn = /* @__PURE__ */ C({
|
|
|
2111
2113
|
], 2)
|
|
2112
2114
|
], 2)
|
|
2113
2115
|
])
|
|
2114
|
-
], 42,
|
|
2116
|
+
], 42, wn);
|
|
2115
2117
|
};
|
|
2116
2118
|
}
|
|
2117
|
-
}),
|
|
2119
|
+
}), Pn = { role: "radiogroup" }, Mn = /* @__PURE__ */ p("legend", {
|
|
2118
2120
|
role: "presentation",
|
|
2119
2121
|
class: "sv-hidden"
|
|
2120
|
-
}, null, -1),
|
|
2122
|
+
}, null, -1), Nn = /* @__PURE__ */ C({
|
|
2121
2123
|
__name: "Rating",
|
|
2122
2124
|
props: {
|
|
2123
2125
|
question: {}
|
|
2124
2126
|
},
|
|
2125
2127
|
setup(r) {
|
|
2126
|
-
const o = r, n =
|
|
2128
|
+
const o = r, n = S(null);
|
|
2127
2129
|
M(o, n);
|
|
2128
2130
|
const s = (e) => o.question.getInputId(e);
|
|
2129
2131
|
return (e, i) => {
|
|
@@ -2133,8 +2135,8 @@ const tn = /* @__PURE__ */ C({
|
|
|
2133
2135
|
ref_key: "root",
|
|
2134
2136
|
ref: n
|
|
2135
2137
|
}, [
|
|
2136
|
-
p("fieldset",
|
|
2137
|
-
|
|
2138
|
+
p("fieldset", Pn, [
|
|
2139
|
+
Mn,
|
|
2138
2140
|
e.question.hasMinLabel ? (t(), u("span", {
|
|
2139
2141
|
key: 0,
|
|
2140
2142
|
class: l(e.question.cssClasses.minText)
|
|
@@ -2143,7 +2145,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2143
2145
|
locString: e.question.locMinRateDescription
|
|
2144
2146
|
}, null, 8, ["locString"])
|
|
2145
2147
|
], 2)) : m("", !0),
|
|
2146
|
-
(t(!0), u(w, null,
|
|
2148
|
+
(t(!0), u(w, null, T(e.question.renderedRateItems, (d, c) => (t(), y(N(e.question.itemComponentName), {
|
|
2147
2149
|
key: s(c),
|
|
2148
2150
|
item: d,
|
|
2149
2151
|
index: c,
|
|
@@ -2161,7 +2163,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2161
2163
|
], 2);
|
|
2162
2164
|
};
|
|
2163
2165
|
}
|
|
2164
|
-
}),
|
|
2166
|
+
}), Hn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], En = /* @__PURE__ */ C({
|
|
2165
2167
|
__name: "RatingItem",
|
|
2166
2168
|
props: {
|
|
2167
2169
|
question: {},
|
|
@@ -2189,7 +2191,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2189
2191
|
"aria-label": n.question.ariaLabel,
|
|
2190
2192
|
"aria-invalid": n.question.ariaInvalid,
|
|
2191
2193
|
"aria-describedby": n.question.ariaDescribedBy
|
|
2192
|
-
}, null, 8,
|
|
2194
|
+
}, null, 8, Hn),
|
|
2193
2195
|
p("span", {
|
|
2194
2196
|
class: l(n.question.cssClasses.itemText)
|
|
2195
2197
|
}, [
|
|
@@ -2200,7 +2202,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2200
2202
|
], 34);
|
|
2201
2203
|
};
|
|
2202
2204
|
}
|
|
2203
|
-
}),
|
|
2205
|
+
}), An = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], On = /* @__PURE__ */ C({
|
|
2204
2206
|
__name: "RatingItemSmiley",
|
|
2205
2207
|
props: {
|
|
2206
2208
|
question: {},
|
|
@@ -2231,7 +2233,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2231
2233
|
"aria-label": n.question.ariaLabel,
|
|
2232
2234
|
"aria-invalid": n.question.ariaInvalid,
|
|
2233
2235
|
"aria-describedby": n.question.ariaDescribedBy
|
|
2234
|
-
}, null, 8,
|
|
2236
|
+
}, null, 8, An),
|
|
2235
2237
|
h(e, {
|
|
2236
2238
|
iconName: n.question.getItemSmileyIconName(n.item.itemValue),
|
|
2237
2239
|
size: "auto",
|
|
@@ -2240,7 +2242,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2240
2242
|
], 38);
|
|
2241
2243
|
};
|
|
2242
2244
|
}
|
|
2243
|
-
}),
|
|
2245
|
+
}), Vn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Fn = /* @__PURE__ */ C({
|
|
2244
2246
|
__name: "RatingItemStar",
|
|
2245
2247
|
props: {
|
|
2246
2248
|
question: {},
|
|
@@ -2270,7 +2272,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2270
2272
|
"aria-label": n.question.ariaLabel,
|
|
2271
2273
|
"aria-invalid": n.question.ariaInvalid,
|
|
2272
2274
|
"aria-describedby": n.question.ariaDescribedBy
|
|
2273
|
-
}, null, 8,
|
|
2275
|
+
}, null, 8, Vn),
|
|
2274
2276
|
h(e, {
|
|
2275
2277
|
class: l("sv-star"),
|
|
2276
2278
|
iconName: n.question.itemStarIcon,
|
|
@@ -2287,18 +2289,18 @@ const tn = /* @__PURE__ */ C({
|
|
|
2287
2289
|
};
|
|
2288
2290
|
}
|
|
2289
2291
|
});
|
|
2290
|
-
|
|
2292
|
+
X.Instance.registerRenderer(
|
|
2291
2293
|
"rating",
|
|
2292
2294
|
"dropdown",
|
|
2293
2295
|
"sv-rating-dropdown"
|
|
2294
2296
|
);
|
|
2295
|
-
const
|
|
2297
|
+
const Wn = /* @__PURE__ */ C({
|
|
2296
2298
|
__name: "RatingDropdown",
|
|
2297
2299
|
props: {
|
|
2298
2300
|
question: {}
|
|
2299
2301
|
},
|
|
2300
2302
|
setup(r) {
|
|
2301
|
-
const o = r, n =
|
|
2303
|
+
const o = r, n = S(null);
|
|
2302
2304
|
return M(o, n), (s, e) => {
|
|
2303
2305
|
const i = q("sv-dropdown");
|
|
2304
2306
|
return t(), u("div", {
|
|
@@ -2310,13 +2312,13 @@ const Fn = /* @__PURE__ */ C({
|
|
|
2310
2312
|
], 2);
|
|
2311
2313
|
};
|
|
2312
2314
|
}
|
|
2313
|
-
}),
|
|
2315
|
+
}), zn = ["name", "value", "id", ".indeterminate", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Un = /* @__PURE__ */ C({
|
|
2314
2316
|
__name: "BooleanSwitch",
|
|
2315
2317
|
props: {
|
|
2316
2318
|
question: {}
|
|
2317
2319
|
},
|
|
2318
2320
|
setup(r) {
|
|
2319
|
-
const o = r, n =
|
|
2321
|
+
const o = r, n = S(null);
|
|
2320
2322
|
M(o, n);
|
|
2321
2323
|
const s = (i, a) => {
|
|
2322
2324
|
o.question.onLabelClick(i, a);
|
|
@@ -2346,7 +2348,7 @@ const Fn = /* @__PURE__ */ C({
|
|
|
2346
2348
|
"aria-label": i.question.ariaLabel,
|
|
2347
2349
|
"aria-invalid": i.question.ariaInvalid,
|
|
2348
2350
|
"aria-describedby": i.question.ariaDescribedBy
|
|
2349
|
-
}, null, 10,
|
|
2351
|
+
}, null, 10, zn), [
|
|
2350
2352
|
[z, i.question.booleanValue]
|
|
2351
2353
|
]),
|
|
2352
2354
|
p("div", {
|
|
@@ -2395,18 +2397,18 @@ const Fn = /* @__PURE__ */ C({
|
|
|
2395
2397
|
};
|
|
2396
2398
|
}
|
|
2397
2399
|
});
|
|
2398
|
-
|
|
2400
|
+
X.Instance.registerRenderer(
|
|
2399
2401
|
"boolean",
|
|
2400
2402
|
"radio",
|
|
2401
2403
|
"sv-boolean-radio"
|
|
2402
2404
|
);
|
|
2403
|
-
const
|
|
2405
|
+
const Kn = /* @__PURE__ */ C({
|
|
2404
2406
|
__name: "BooleanRadio",
|
|
2405
2407
|
props: {
|
|
2406
2408
|
question: {}
|
|
2407
2409
|
},
|
|
2408
2410
|
setup(r) {
|
|
2409
|
-
const o = r, n =
|
|
2411
|
+
const o = r, n = S(null);
|
|
2410
2412
|
return M(o, n), (s, e) => {
|
|
2411
2413
|
const i = q("sv-boolean-radio-item");
|
|
2412
2414
|
return t(), u("div", {
|
|
@@ -2434,7 +2436,7 @@ const Un = /* @__PURE__ */ C({
|
|
|
2434
2436
|
], 2);
|
|
2435
2437
|
};
|
|
2436
2438
|
}
|
|
2437
|
-
}),
|
|
2439
|
+
}), jn = ["name", "value", "checked", "aria-describedby", "disabled"], Qn = ["xlink:href"], Zn = /* @__PURE__ */ C({
|
|
2438
2440
|
__name: "BooleanRadioItem",
|
|
2439
2441
|
props: {
|
|
2440
2442
|
question: {},
|
|
@@ -2464,7 +2466,7 @@ const Un = /* @__PURE__ */ C({
|
|
|
2464
2466
|
disabled: s.question.isInputReadOnly,
|
|
2465
2467
|
class: l(s.question.cssClasses.itemRadioControl),
|
|
2466
2468
|
onChange: n
|
|
2467
|
-
}, null, 42,
|
|
2469
|
+
}, null, 42, jn),
|
|
2468
2470
|
s.question.cssClasses.materialRadioDecorator ? (t(), u("span", {
|
|
2469
2471
|
key: 0,
|
|
2470
2472
|
class: l(s.question.cssClasses.materialRadioDecorator)
|
|
@@ -2475,7 +2477,7 @@ const Un = /* @__PURE__ */ C({
|
|
|
2475
2477
|
}, [
|
|
2476
2478
|
p("use", {
|
|
2477
2479
|
"xlink:href": s.question.itemSvgIcon
|
|
2478
|
-
}, null, 8,
|
|
2480
|
+
}, null, 8, Qn)
|
|
2479
2481
|
], 2)) : m("", !0)
|
|
2480
2482
|
], 2)) : m("", !0),
|
|
2481
2483
|
p("span", {
|
|
@@ -2487,20 +2489,20 @@ const Un = /* @__PURE__ */ C({
|
|
|
2487
2489
|
], 2);
|
|
2488
2490
|
};
|
|
2489
2491
|
}
|
|
2490
|
-
}),
|
|
2491
|
-
|
|
2492
|
+
}), Gn = ["name", "value", "id", ".indeterminate", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Xn = ["xlink:href"], Jn = /* @__PURE__ */ p("span", { class: "check" }, null, -1), Yn = ["id"];
|
|
2493
|
+
X.Instance.registerRenderer(
|
|
2492
2494
|
"boolean",
|
|
2493
2495
|
"checkbox",
|
|
2494
2496
|
"sv-boolean-checkbox"
|
|
2495
2497
|
);
|
|
2496
|
-
const
|
|
2498
|
+
const _n = /* @__PURE__ */ C({
|
|
2497
2499
|
__name: "BooleanCheckbox",
|
|
2498
2500
|
props: {
|
|
2499
2501
|
question: {},
|
|
2500
2502
|
css: {}
|
|
2501
2503
|
},
|
|
2502
2504
|
setup(r) {
|
|
2503
|
-
const o = r, n =
|
|
2505
|
+
const o = r, n = S(null);
|
|
2504
2506
|
return M(o, n), (s, e) => {
|
|
2505
2507
|
var c;
|
|
2506
2508
|
const i = q("survey-element-title-content"), a = q("sv-title-actions"), d = q("survey-string");
|
|
@@ -2528,7 +2530,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2528
2530
|
"aria-label": s.question.ariaLabel,
|
|
2529
2531
|
"aria-invalid": s.question.ariaInvalid,
|
|
2530
2532
|
"aria-describedby": s.question.ariaDescribedBy
|
|
2531
|
-
}, null, 10,
|
|
2533
|
+
}, null, 10, Gn), [
|
|
2532
2534
|
[z, s.question.booleanValue]
|
|
2533
2535
|
]),
|
|
2534
2536
|
p("span", {
|
|
@@ -2540,9 +2542,9 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2540
2542
|
}, [
|
|
2541
2543
|
p("use", {
|
|
2542
2544
|
"xlink:href": s.question.svgIcon
|
|
2543
|
-
}, null, 8,
|
|
2545
|
+
}, null, 8, Xn)
|
|
2544
2546
|
], 2)) : m("", !0),
|
|
2545
|
-
|
|
2547
|
+
Jn
|
|
2546
2548
|
], 2),
|
|
2547
2549
|
s.question.isLabelRendered ? (t(), u("span", {
|
|
2548
2550
|
key: 0,
|
|
@@ -2559,7 +2561,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2559
2561
|
element: s.question,
|
|
2560
2562
|
css: s.css
|
|
2561
2563
|
}, null, 8, ["element", "css"])) : m("", !0)
|
|
2562
|
-
], 10,
|
|
2564
|
+
], 10, Yn)) : m("", !0)
|
|
2563
2565
|
], 2),
|
|
2564
2566
|
s.question.canRenderLabelDescription ? (t(), u("div", {
|
|
2565
2567
|
key: 0,
|
|
@@ -2573,13 +2575,13 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2573
2575
|
], 2);
|
|
2574
2576
|
};
|
|
2575
2577
|
}
|
|
2576
|
-
}),
|
|
2578
|
+
}), xn = /* @__PURE__ */ C({
|
|
2577
2579
|
__name: "Multipletext",
|
|
2578
2580
|
props: {
|
|
2579
2581
|
question: {}
|
|
2580
2582
|
},
|
|
2581
2583
|
setup(r) {
|
|
2582
|
-
const o = r, n =
|
|
2584
|
+
const o = r, n = S(null);
|
|
2583
2585
|
return M(o, n), (s, e) => {
|
|
2584
2586
|
const i = q("survey-multipletext-item");
|
|
2585
2587
|
return t(), u("table", {
|
|
@@ -2588,11 +2590,11 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2588
2590
|
ref: n
|
|
2589
2591
|
}, [
|
|
2590
2592
|
p("tbody", null, [
|
|
2591
|
-
(t(!0), u(w, null,
|
|
2593
|
+
(t(!0), u(w, null, T(s.question.getRows(), (a, d) => (t(), u("tr", {
|
|
2592
2594
|
key: s.question.inputId + "rowkey" + d,
|
|
2593
2595
|
class: l(s.question.cssClasses.row)
|
|
2594
2596
|
}, [
|
|
2595
|
-
(t(!0), u(w, null,
|
|
2597
|
+
(t(!0), u(w, null, T(a, (c) => (t(), u("td", {
|
|
2596
2598
|
key: "item" + c.editor.id,
|
|
2597
2599
|
class: l(s.question.cssClasses.cell)
|
|
2598
2600
|
}, [
|
|
@@ -2606,7 +2608,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2606
2608
|
], 2);
|
|
2607
2609
|
};
|
|
2608
2610
|
}
|
|
2609
|
-
}),
|
|
2611
|
+
}), eo = /* @__PURE__ */ C({
|
|
2610
2612
|
__name: "MultipletextItem",
|
|
2611
2613
|
props: {
|
|
2612
2614
|
question: {},
|
|
@@ -2660,13 +2662,13 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2660
2662
|
], 2);
|
|
2661
2663
|
};
|
|
2662
2664
|
}
|
|
2663
|
-
}),
|
|
2665
|
+
}), 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({
|
|
2664
2666
|
__name: "Matrix",
|
|
2665
2667
|
props: {
|
|
2666
2668
|
question: {}
|
|
2667
2669
|
},
|
|
2668
2670
|
setup(r) {
|
|
2669
|
-
const o = r, n =
|
|
2671
|
+
const o = r, n = S(null), s = F();
|
|
2670
2672
|
M(
|
|
2671
2673
|
o,
|
|
2672
2674
|
n,
|
|
@@ -2693,14 +2695,14 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2693
2695
|
p("fieldset", null, [
|
|
2694
2696
|
p("legend", {
|
|
2695
2697
|
"aria-label": i.question.locTitle.renderedHtml
|
|
2696
|
-
}, null, 8,
|
|
2698
|
+
}, null, 8, so),
|
|
2697
2699
|
p("table", {
|
|
2698
2700
|
class: l(i.question.getTableCss())
|
|
2699
2701
|
}, [
|
|
2700
|
-
i.question.showHeader ? (t(), u("thead",
|
|
2702
|
+
i.question.showHeader ? (t(), u("thead", no, [
|
|
2701
2703
|
p("tr", null, [
|
|
2702
|
-
i.question.hasRows ? (t(), u("td",
|
|
2703
|
-
(t(!0), u(w, null,
|
|
2704
|
+
i.question.hasRows ? (t(), u("td", oo)) : m("", !0),
|
|
2705
|
+
(t(!0), u(w, null, T(i.question.visibleColumns, (c, v) => (t(), u("th", {
|
|
2704
2706
|
key: v,
|
|
2705
2707
|
class: l(i.question.cssClasses.headerCell),
|
|
2706
2708
|
style: $({
|
|
@@ -2715,7 +2717,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2715
2717
|
])
|
|
2716
2718
|
])) : m("", !0),
|
|
2717
2719
|
p("tbody", null, [
|
|
2718
|
-
(t(!0), u(w, null,
|
|
2720
|
+
(t(!0), u(w, null, T(s.value, (c, v) => (t(), u("tr", {
|
|
2719
2721
|
key: "row_" + c.name + "_" + v,
|
|
2720
2722
|
class: l(c.rowClasses || void 0)
|
|
2721
2723
|
}, [
|
|
@@ -2732,7 +2734,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2732
2734
|
], 6), [
|
|
2733
2735
|
[H, i.question.hasRows]
|
|
2734
2736
|
]),
|
|
2735
|
-
i.question.hasCellText ? (t(!0), u(w, { key: 0 },
|
|
2737
|
+
i.question.hasCellText ? (t(!0), u(w, { key: 0 }, T(i.question.visibleColumns, (f, g) => (t(), u("td", {
|
|
2736
2738
|
key: g,
|
|
2737
2739
|
class: l(i.question.getItemClass(c, f)),
|
|
2738
2740
|
onClick: (k) => e(c, f)
|
|
@@ -2740,8 +2742,8 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2740
2742
|
h(d, {
|
|
2741
2743
|
locString: i.question.getCellDisplayLocText(c.name, f)
|
|
2742
2744
|
}, null, 8, ["locString"])
|
|
2743
|
-
], 10,
|
|
2744
|
-
i.question.hasCellText ? m("", !0) : (t(!0), u(w, { key: 1 },
|
|
2745
|
+
], 10, to))), 128)) : m("", !0),
|
|
2746
|
+
i.question.hasCellText ? m("", !0) : (t(!0), u(w, { key: 1 }, T(i.question.visibleColumns, (f, g) => (t(), u("td", {
|
|
2745
2747
|
key: g,
|
|
2746
2748
|
"data-responsive-title": f.locText.renderedHtml,
|
|
2747
2749
|
class: l(i.question.cssClasses.cell),
|
|
@@ -2763,7 +2765,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2763
2765
|
"aria-label": f.locText.renderedHtml,
|
|
2764
2766
|
"aria-invalid": i.question.ariaInvalid,
|
|
2765
2767
|
"aria-describedby": i.question.ariaDescribedBy
|
|
2766
|
-
}, null, 10,
|
|
2768
|
+
}, null, 10, lo), [
|
|
2767
2769
|
[Y, c.value]
|
|
2768
2770
|
]),
|
|
2769
2771
|
p("span", {
|
|
@@ -2775,7 +2777,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2775
2777
|
}, [
|
|
2776
2778
|
p("use", {
|
|
2777
2779
|
"xlink:href": i.question.itemSvgIcon
|
|
2778
|
-
}, null, 8,
|
|
2780
|
+
}, null, 8, ro)
|
|
2779
2781
|
], 2)) : m("", !0)
|
|
2780
2782
|
], 2),
|
|
2781
2783
|
D(p("span", {
|
|
@@ -2788,7 +2790,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2788
2790
|
[H, i.question.isMobile]
|
|
2789
2791
|
])
|
|
2790
2792
|
], 34)
|
|
2791
|
-
], 10,
|
|
2793
|
+
], 10, io))), 128))
|
|
2792
2794
|
], 2))), 128))
|
|
2793
2795
|
])
|
|
2794
2796
|
], 2)
|
|
@@ -2796,13 +2798,13 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2796
2798
|
], 2);
|
|
2797
2799
|
};
|
|
2798
2800
|
}
|
|
2799
|
-
}),
|
|
2801
|
+
}), uo = /* @__PURE__ */ C({
|
|
2800
2802
|
__name: "MatrixDropdown",
|
|
2801
2803
|
props: {
|
|
2802
2804
|
question: {}
|
|
2803
2805
|
},
|
|
2804
2806
|
setup(r) {
|
|
2805
|
-
const o = r, n =
|
|
2807
|
+
const o = r, n = S(null);
|
|
2806
2808
|
return M(o, n), (s, e) => {
|
|
2807
2809
|
const i = q("survey-matrixtable");
|
|
2808
2810
|
return t(), y(i, {
|
|
@@ -2812,7 +2814,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2812
2814
|
}, null, 8, ["question"]);
|
|
2813
2815
|
};
|
|
2814
2816
|
}
|
|
2815
|
-
}),
|
|
2817
|
+
}), mo = { key: 0 }, co = ["data-sv-drop-target-matrix-row"], po = { key: 1 }, vo = /* @__PURE__ */ C({
|
|
2816
2818
|
__name: "MatrixTable",
|
|
2817
2819
|
props: {
|
|
2818
2820
|
question: {}
|
|
@@ -2841,9 +2843,9 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2841
2843
|
p("table", {
|
|
2842
2844
|
class: l(s.question.getTableCss())
|
|
2843
2845
|
}, [
|
|
2844
|
-
n.value.showHeader ? (t(), u("thead",
|
|
2846
|
+
n.value.showHeader ? (t(), u("thead", mo, [
|
|
2845
2847
|
p("tr", null, [
|
|
2846
|
-
(t(!0), u(w, null,
|
|
2848
|
+
(t(!0), u(w, null, T(n.value.headerRow.cells, (c) => (t(), u(w, null, [
|
|
2847
2849
|
c.hasTitle ? (t(), u("th", {
|
|
2848
2850
|
class: l(c.className),
|
|
2849
2851
|
key: "header_" + c.id,
|
|
@@ -2867,21 +2869,25 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2867
2869
|
])
|
|
2868
2870
|
])) : m("", !0),
|
|
2869
2871
|
p("tbody", null, [
|
|
2870
|
-
(t(!0), u(w, null,
|
|
2871
|
-
"data-sv-drop-target-matrix-row": c.row && c.row.id,
|
|
2872
|
-
class: l(c.className),
|
|
2872
|
+
(t(!0), u(w, null, T(n.value.rows, (c) => (t(), u(w, {
|
|
2873
2873
|
key: s.question.inputId + "_" + c.id
|
|
2874
2874
|
}, [
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
},
|
|
2880
|
-
|
|
2875
|
+
c.visible ? (t(), u("tr", {
|
|
2876
|
+
key: 0,
|
|
2877
|
+
"data-sv-drop-target-matrix-row": c.row && c.row.id,
|
|
2878
|
+
class: l(c.className)
|
|
2879
|
+
}, [
|
|
2880
|
+
(t(!0), u(w, null, T(c.cells, (v, f) => (t(), y(d, {
|
|
2881
|
+
cell: v,
|
|
2882
|
+
question: s.question,
|
|
2883
|
+
key: c.id + "_" + f
|
|
2884
|
+
}, null, 8, ["cell", "question"]))), 128))
|
|
2885
|
+
], 10, co)) : m("", !0)
|
|
2886
|
+
], 64))), 128))
|
|
2881
2887
|
]),
|
|
2882
|
-
n.value.showFooter ? (t(), u("tfoot",
|
|
2888
|
+
n.value.showFooter ? (t(), u("tfoot", po, [
|
|
2883
2889
|
p("tr", null, [
|
|
2884
|
-
(t(!0), u(w, null,
|
|
2890
|
+
(t(!0), u(w, null, T(n.value.footerRow.cells, (c, v) => (t(), y(d, {
|
|
2885
2891
|
cell: c,
|
|
2886
2892
|
question: s.question,
|
|
2887
2893
|
key: "footer_" + v
|
|
@@ -2892,7 +2898,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2892
2898
|
], 6);
|
|
2893
2899
|
};
|
|
2894
2900
|
}
|
|
2895
|
-
}),
|
|
2901
|
+
}), qo = /* @__PURE__ */ p("span", null, "\xA0", -1), yo = /* @__PURE__ */ C({
|
|
2896
2902
|
__name: "MatrixHeaderRequired",
|
|
2897
2903
|
props: {
|
|
2898
2904
|
question: {},
|
|
@@ -2900,19 +2906,22 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2900
2906
|
},
|
|
2901
2907
|
setup(r) {
|
|
2902
2908
|
const o = r;
|
|
2903
|
-
return B(() => o.column), (n, s) => n.column.isRenderedRequired ? (t(), u(
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2909
|
+
return B(() => o.column), (n, s) => n.column.isRenderedRequired ? (t(), u(w, { key: 0 }, [
|
|
2910
|
+
qo,
|
|
2911
|
+
n.column.isRenderedRequired ? (t(), u("span", {
|
|
2912
|
+
key: 0,
|
|
2913
|
+
class: l(n.question.cssClasses.cellRequiredText)
|
|
2914
|
+
}, I(n.column.requiredText), 3)) : m("", !0)
|
|
2915
|
+
], 64)) : m("", !0);
|
|
2907
2916
|
}
|
|
2908
|
-
}),
|
|
2917
|
+
}), go = ["data-responsive-title", "title", "colspan"], Co = /* @__PURE__ */ C({
|
|
2909
2918
|
__name: "MatrixCell",
|
|
2910
2919
|
props: {
|
|
2911
2920
|
question: {},
|
|
2912
2921
|
cell: {}
|
|
2913
2922
|
},
|
|
2914
2923
|
setup(r) {
|
|
2915
|
-
const o = r, n =
|
|
2924
|
+
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);
|
|
2916
2925
|
return E(() => {
|
|
2917
2926
|
if (!(!o.cell.hasQuestion || !o.question || !o.question.survey)) {
|
|
2918
2927
|
d(), o.cell.question.registerPropertyChangedHandlers(["isVisible"], () => {
|
|
@@ -2928,7 +2937,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2928
2937
|
o.question.survey.matrixAfterCellRender(o.question, v);
|
|
2929
2938
|
}
|
|
2930
2939
|
}), (v, f) => {
|
|
2931
|
-
const g = q("
|
|
2940
|
+
const g = q("survey-errors"), k = q("sv-matrix-drag-drop-icon"), P = q("sv-action-bar"), L = q("survey-radiogroup-item"), A = q("survey-checkbox-item"), Q = q("survey-other-choice"), J = q("survey-string");
|
|
2932
2941
|
return t(), u("td", {
|
|
2933
2942
|
class: l(v.cell.className),
|
|
2934
2943
|
"data-responsive-title": e(),
|
|
@@ -2938,37 +2947,36 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2938
2947
|
ref_key: "root",
|
|
2939
2948
|
ref: s
|
|
2940
2949
|
}, [
|
|
2941
|
-
v.cell.
|
|
2950
|
+
v.cell.isErrorsCell ? (t(), y(g, {
|
|
2942
2951
|
key: 0,
|
|
2952
|
+
element: v.cell.question
|
|
2953
|
+
}, null, 8, ["element"])) : m("", !0),
|
|
2954
|
+
v.cell.isDragHandlerCell ? (t(), y(k, {
|
|
2955
|
+
key: 1,
|
|
2943
2956
|
item: { data: { row: v.cell.row, question: v.question } }
|
|
2944
2957
|
}, null, 8, ["item"])) : m("", !0),
|
|
2945
|
-
v.cell.isActionsCell ? (t(), y(
|
|
2946
|
-
key:
|
|
2958
|
+
v.cell.isActionsCell ? (t(), y(P, {
|
|
2959
|
+
key: 2,
|
|
2947
2960
|
model: v.cell.item.getData(),
|
|
2948
2961
|
handleClick: !1
|
|
2949
2962
|
}, null, 8, ["model"])) : m("", !0),
|
|
2950
2963
|
v.cell.hasPanel ? (t(), y(N(c(v.cell.panel)), {
|
|
2951
|
-
key:
|
|
2964
|
+
key: 3,
|
|
2952
2965
|
question: v.cell.panel,
|
|
2953
2966
|
css: v.question.cssClasses
|
|
2954
2967
|
}, null, 8, ["question", "css"])) : m("", !0),
|
|
2955
2968
|
v.cell.hasQuestion ? (t(), u("div", {
|
|
2956
|
-
key:
|
|
2969
|
+
key: 4,
|
|
2957
2970
|
class: l(v.question.cssClasses.cellQuestionWrapper)
|
|
2958
2971
|
}, [
|
|
2959
|
-
v.cell.showErrorOnTop ? (t(), y(P, {
|
|
2960
|
-
key: 0,
|
|
2961
|
-
element: v.cell.question,
|
|
2962
|
-
location: "top"
|
|
2963
|
-
}, null, 8, ["element"])) : m("", !0),
|
|
2964
2972
|
!v.cell.isChoice && v.cell.question.isDefaultRendering() ? D((t(), y(N(c(v.cell.question)), {
|
|
2965
|
-
key:
|
|
2973
|
+
key: 0,
|
|
2966
2974
|
question: v.cell.question
|
|
2967
2975
|
}, null, 8, ["question"])), [
|
|
2968
2976
|
[H, n.value]
|
|
2969
2977
|
]) : m("", !0),
|
|
2970
2978
|
!v.cell.isChoice && !v.cell.question.isDefaultRendering() ? D((t(), y(N(v.cell.question.getComponentName()), {
|
|
2971
|
-
key:
|
|
2979
|
+
key: 1,
|
|
2972
2980
|
question: v.cell.question
|
|
2973
2981
|
}, null, 8, ["question"])), [
|
|
2974
2982
|
[H, n.value]
|
|
@@ -2989,39 +2997,29 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2989
2997
|
index: a(),
|
|
2990
2998
|
hideLabel: !0
|
|
2991
2999
|
}, null, 8, ["class", "question", "item", "index"])) : m("", !0),
|
|
2992
|
-
v.cell.isOtherChoice ? (t(), y(
|
|
2993
|
-
key:
|
|
3000
|
+
v.cell.isOtherChoice ? (t(), y(Q, {
|
|
3001
|
+
key: 4,
|
|
2994
3002
|
question: v.cell.question
|
|
2995
|
-
}, null, 8, ["question"])) : m("", !0)
|
|
2996
|
-
v.cell.showErrorOnBottom ? (t(), y(P, {
|
|
2997
|
-
key: 6,
|
|
2998
|
-
element: v.cell.question,
|
|
2999
|
-
location: "bottom"
|
|
3000
|
-
}, null, 8, ["element"])) : m("", !0),
|
|
3001
|
-
v.cell.question.isErrorsModeTooltip ? (t(), y(P, {
|
|
3002
|
-
key: 7,
|
|
3003
|
-
element: v.cell.question,
|
|
3004
|
-
location: "tooltip"
|
|
3005
|
-
}, null, 8, ["element"])) : m("", !0)
|
|
3003
|
+
}, null, 8, ["question"])) : m("", !0)
|
|
3006
3004
|
], 2)) : m("", !0),
|
|
3007
|
-
v.cell.hasTitle ? (t(), y(
|
|
3008
|
-
key:
|
|
3005
|
+
v.cell.hasTitle ? (t(), y(J, {
|
|
3006
|
+
key: 5,
|
|
3009
3007
|
locString: v.cell.locTitle
|
|
3010
3008
|
}, null, 8, ["locString"])) : m("", !0),
|
|
3011
3009
|
v.cell.requiredText ? (t(), u("span", {
|
|
3012
|
-
key:
|
|
3010
|
+
key: 6,
|
|
3013
3011
|
class: l(v.question.cssClasses.cellRequiredText)
|
|
3014
3012
|
}, I(v.cell.requiredText), 3)) : m("", !0)
|
|
3015
|
-
], 14,
|
|
3013
|
+
], 14, go);
|
|
3016
3014
|
};
|
|
3017
3015
|
}
|
|
3018
|
-
}),
|
|
3016
|
+
}), ho = /* @__PURE__ */ C({
|
|
3019
3017
|
__name: "MatrixDynamic",
|
|
3020
3018
|
props: {
|
|
3021
3019
|
question: {}
|
|
3022
3020
|
},
|
|
3023
3021
|
setup(r) {
|
|
3024
|
-
const o = r, n =
|
|
3022
|
+
const o = r, n = S(null);
|
|
3025
3023
|
M(o, n);
|
|
3026
3024
|
const s = () => {
|
|
3027
3025
|
o.question.addRowUI();
|
|
@@ -3104,7 +3102,7 @@ function se(r, o = !0) {
|
|
|
3104
3102
|
row: o ? R(() => r.item.data.row) : void 0
|
|
3105
3103
|
};
|
|
3106
3104
|
}
|
|
3107
|
-
const
|
|
3105
|
+
const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
3108
3106
|
__name: "RemoveButton",
|
|
3109
3107
|
props: {
|
|
3110
3108
|
item: {}
|
|
@@ -3125,10 +3123,10 @@ const Co = ["disabled"], ho = /* @__PURE__ */ C({
|
|
|
3125
3123
|
p("span", {
|
|
3126
3124
|
class: l(b(n).cssClasses.iconRemove)
|
|
3127
3125
|
}, null, 2)
|
|
3128
|
-
], 10,
|
|
3126
|
+
], 10, bo);
|
|
3129
3127
|
};
|
|
3130
3128
|
}
|
|
3131
|
-
}),
|
|
3129
|
+
}), fo = ["xlink:href"], Io = /* @__PURE__ */ C({
|
|
3132
3130
|
__name: "DragDropIcon",
|
|
3133
3131
|
props: {
|
|
3134
3132
|
item: {}
|
|
@@ -3141,13 +3139,13 @@ const Co = ["disabled"], ho = /* @__PURE__ */ C({
|
|
|
3141
3139
|
}, [
|
|
3142
3140
|
p("use", {
|
|
3143
3141
|
"xlink:href": b(n).iconDragElement
|
|
3144
|
-
}, null, 8,
|
|
3142
|
+
}, null, 8, fo)
|
|
3145
3143
|
], 2)) : (t(), u("span", {
|
|
3146
3144
|
key: 1,
|
|
3147
3145
|
class: l(b(n).cssClasses.iconDrag)
|
|
3148
3146
|
}, null, 2));
|
|
3149
3147
|
}
|
|
3150
|
-
}),
|
|
3148
|
+
}), wo = ["aria-expanded", "aria-controls"], So = /* @__PURE__ */ C({
|
|
3151
3149
|
__name: "DetailButton",
|
|
3152
3150
|
props: {
|
|
3153
3151
|
item: {}
|
|
@@ -3168,17 +3166,17 @@ const Co = ["disabled"], ho = /* @__PURE__ */ C({
|
|
|
3168
3166
|
iconName: b(n).getDetailPanelIconId(b(s)),
|
|
3169
3167
|
size: "auto"
|
|
3170
3168
|
}, null, 8, ["class", "iconName"])
|
|
3171
|
-
], 10,
|
|
3169
|
+
], 10, wo);
|
|
3172
3170
|
};
|
|
3173
3171
|
}
|
|
3174
|
-
}),
|
|
3172
|
+
}), To = /* @__PURE__ */ C({
|
|
3175
3173
|
__name: "PanelDynamic",
|
|
3176
3174
|
props: {
|
|
3177
3175
|
question: {},
|
|
3178
3176
|
css: {}
|
|
3179
3177
|
},
|
|
3180
3178
|
setup(r) {
|
|
3181
|
-
const o = r, n =
|
|
3179
|
+
const o = r, n = S(null), s = x();
|
|
3182
3180
|
M(
|
|
3183
3181
|
o,
|
|
3184
3182
|
n,
|
|
@@ -3241,7 +3239,7 @@ const Co = ["disabled"], ho = /* @__PURE__ */ C({
|
|
|
3241
3239
|
key: 2,
|
|
3242
3240
|
question: a.question
|
|
3243
3241
|
}, null, 8, ["question"])) : m("", !0),
|
|
3244
|
-
(t(!0), u(w, null,
|
|
3242
|
+
(t(!0), u(w, null, T(e.value, (L, A) => (t(), u(w, {
|
|
3245
3243
|
key: L.id
|
|
3246
3244
|
}, [
|
|
3247
3245
|
p("div", {
|
|
@@ -3276,7 +3274,7 @@ const Co = ["disabled"], ho = /* @__PURE__ */ C({
|
|
|
3276
3274
|
], 2);
|
|
3277
3275
|
};
|
|
3278
3276
|
}
|
|
3279
|
-
}),
|
|
3277
|
+
}), Ro = /* @__PURE__ */ C({
|
|
3280
3278
|
__name: "PanelDynamicProgress",
|
|
3281
3279
|
props: {
|
|
3282
3280
|
question: {}
|
|
@@ -3322,7 +3320,7 @@ const Co = ["disabled"], ho = /* @__PURE__ */ C({
|
|
|
3322
3320
|
], 2);
|
|
3323
3321
|
};
|
|
3324
3322
|
}
|
|
3325
|
-
}),
|
|
3323
|
+
}), $o = /* @__PURE__ */ C({
|
|
3326
3324
|
__name: "PanelDynamicProgressV2",
|
|
3327
3325
|
props: {
|
|
3328
3326
|
question: {}
|
|
@@ -3359,19 +3357,19 @@ const Co = ["disabled"], ho = /* @__PURE__ */ C({
|
|
|
3359
3357
|
};
|
|
3360
3358
|
}
|
|
3361
3359
|
});
|
|
3362
|
-
function
|
|
3360
|
+
function j(r) {
|
|
3363
3361
|
return R(
|
|
3364
3362
|
() => r.item && r.item.data.question || r.data.question
|
|
3365
3363
|
);
|
|
3366
3364
|
}
|
|
3367
|
-
const
|
|
3365
|
+
const Bo = /* @__PURE__ */ C({
|
|
3368
3366
|
__name: "PaneldynamicAddBtn",
|
|
3369
3367
|
props: {
|
|
3370
3368
|
item: {},
|
|
3371
3369
|
data: {}
|
|
3372
3370
|
},
|
|
3373
3371
|
setup(r) {
|
|
3374
|
-
const n =
|
|
3372
|
+
const n = j(r), s = () => {
|
|
3375
3373
|
n.value.addPanelUI();
|
|
3376
3374
|
};
|
|
3377
3375
|
return (e, i) => b(n).canAddPanel ? (t(), u("button", {
|
|
@@ -3385,14 +3383,14 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3385
3383
|
}, I(b(n).panelAddText), 3)
|
|
3386
3384
|
], 2)) : m("", !0);
|
|
3387
3385
|
}
|
|
3388
|
-
}),
|
|
3386
|
+
}), Lo = ["title"], Do = /* @__PURE__ */ C({
|
|
3389
3387
|
__name: "PaneldynamicNextBtn",
|
|
3390
3388
|
props: {
|
|
3391
3389
|
item: {},
|
|
3392
3390
|
data: {}
|
|
3393
3391
|
},
|
|
3394
3392
|
setup(r) {
|
|
3395
|
-
const n =
|
|
3393
|
+
const n = j(r), s = () => {
|
|
3396
3394
|
n.value.goToNextPanel();
|
|
3397
3395
|
};
|
|
3398
3396
|
return (e, i) => {
|
|
@@ -3406,17 +3404,17 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3406
3404
|
iconName: b(n).cssClasses.progressBtnIcon,
|
|
3407
3405
|
size: "auto"
|
|
3408
3406
|
}, null, 8, ["iconName"])
|
|
3409
|
-
], 10,
|
|
3407
|
+
], 10, Lo);
|
|
3410
3408
|
};
|
|
3411
3409
|
}
|
|
3412
|
-
}),
|
|
3410
|
+
}), Po = ["title"], Mo = /* @__PURE__ */ C({
|
|
3413
3411
|
__name: "PaneldynamicPrevBtn",
|
|
3414
3412
|
props: {
|
|
3415
3413
|
item: {},
|
|
3416
3414
|
data: {}
|
|
3417
3415
|
},
|
|
3418
3416
|
setup(r) {
|
|
3419
|
-
const n =
|
|
3417
|
+
const n = j(r), s = () => {
|
|
3420
3418
|
n.value.goToPrevPanel();
|
|
3421
3419
|
};
|
|
3422
3420
|
return (e, i) => {
|
|
@@ -3430,17 +3428,17 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3430
3428
|
iconName: b(n).cssClasses.progressBtnIcon,
|
|
3431
3429
|
size: "auto"
|
|
3432
3430
|
}, null, 8, ["iconName"])
|
|
3433
|
-
], 10,
|
|
3431
|
+
], 10, Po);
|
|
3434
3432
|
};
|
|
3435
3433
|
}
|
|
3436
|
-
}),
|
|
3434
|
+
}), No = /* @__PURE__ */ C({
|
|
3437
3435
|
__name: "PaneldynamicRemoveBtn",
|
|
3438
3436
|
props: {
|
|
3439
3437
|
item: {},
|
|
3440
3438
|
data: {}
|
|
3441
3439
|
},
|
|
3442
3440
|
setup(r) {
|
|
3443
|
-
const o = r, n =
|
|
3441
|
+
const o = r, n = j(o), s = R(
|
|
3444
3442
|
() => o.item && o.item.data.panel || o.data.panel
|
|
3445
3443
|
), e = (i) => {
|
|
3446
3444
|
n.value.isInputReadOnly || n.value.removePanelUI(i);
|
|
@@ -3458,29 +3456,29 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3458
3456
|
}, null, 2)
|
|
3459
3457
|
], 2));
|
|
3460
3458
|
}
|
|
3461
|
-
}),
|
|
3459
|
+
}), Ho = /* @__PURE__ */ C({
|
|
3462
3460
|
__name: "PaneldynamicProgressText",
|
|
3463
3461
|
props: {
|
|
3464
3462
|
item: {},
|
|
3465
3463
|
data: {}
|
|
3466
3464
|
},
|
|
3467
3465
|
setup(r) {
|
|
3468
|
-
const n =
|
|
3466
|
+
const n = j(r);
|
|
3469
3467
|
return (s, e) => (t(), u("div", {
|
|
3470
3468
|
class: l(b(n).cssClasses.progressText)
|
|
3471
3469
|
}, I(b(n).progressText), 3));
|
|
3472
3470
|
}
|
|
3473
|
-
}),
|
|
3471
|
+
}), Eo = ["id"], Ao = /* @__PURE__ */ C({
|
|
3474
3472
|
__name: "Errors",
|
|
3475
3473
|
props: {
|
|
3476
3474
|
element: {},
|
|
3477
3475
|
location: {}
|
|
3478
3476
|
},
|
|
3479
3477
|
setup(r) {
|
|
3480
|
-
const o = r, n =
|
|
3478
|
+
const o = r, n = S();
|
|
3481
3479
|
let s;
|
|
3482
|
-
return
|
|
3483
|
-
o.location == "tooltip" && n.value instanceof HTMLElement && (!s || n.value !== s.tooltipElement) && (s = new
|
|
3480
|
+
return K(() => {
|
|
3481
|
+
o.location == "tooltip" && n.value instanceof HTMLElement && (!s || n.value !== s.tooltipElement) && (s = new Se(n.value)), !(n.value instanceof HTMLElement) && !!s && s.dispose();
|
|
3484
3482
|
}), O(() => {
|
|
3485
3483
|
s && s.dispose();
|
|
3486
3484
|
}), (e, i) => {
|
|
@@ -3494,7 +3492,7 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3494
3492
|
ref_key: "root",
|
|
3495
3493
|
ref: n
|
|
3496
3494
|
}, [
|
|
3497
|
-
(t(!0), u(w, null,
|
|
3495
|
+
(t(!0), u(w, null, T(e.element.errors, (d, c) => (t(), u("div", {
|
|
3498
3496
|
key: "error_" + c
|
|
3499
3497
|
}, [
|
|
3500
3498
|
p("span", {
|
|
@@ -3513,17 +3511,17 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3513
3511
|
}, null, 8, ["locString"])
|
|
3514
3512
|
], 2)
|
|
3515
3513
|
]))), 128))
|
|
3516
|
-
], 10,
|
|
3514
|
+
], 10, Eo)) : m("", !0);
|
|
3517
3515
|
};
|
|
3518
3516
|
}
|
|
3519
|
-
}),
|
|
3517
|
+
}), Oo = { key: 0 }, Vo = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], Fo = /* @__PURE__ */ C({
|
|
3520
3518
|
__name: "QuestionComment",
|
|
3521
3519
|
props: {
|
|
3522
3520
|
question: {},
|
|
3523
3521
|
commentClass: {}
|
|
3524
3522
|
},
|
|
3525
3523
|
setup(r) {
|
|
3526
|
-
return (o, n) => o.question.isReadOnlyRenderDiv() ? (t(), u("div",
|
|
3524
|
+
return (o, n) => o.question.isReadOnlyRenderDiv() ? (t(), u("div", Oo, I(o.question.comment), 1)) : (t(), u("textarea", {
|
|
3527
3525
|
key: 1,
|
|
3528
3526
|
id: o.question.commentId,
|
|
3529
3527
|
readonly: o.question.isInputReadOnly,
|
|
@@ -3541,9 +3539,9 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3541
3539
|
onInput: n[1] || (n[1] = (s) => {
|
|
3542
3540
|
o.question.onCommentInput(s);
|
|
3543
3541
|
})
|
|
3544
|
-
}, null, 46,
|
|
3542
|
+
}, null, 46, Vo));
|
|
3545
3543
|
}
|
|
3546
|
-
}),
|
|
3544
|
+
}), Wo = /* @__PURE__ */ C({
|
|
3547
3545
|
__name: "TitleElement",
|
|
3548
3546
|
props: {
|
|
3549
3547
|
element: {},
|
|
@@ -3551,7 +3549,7 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3551
3549
|
},
|
|
3552
3550
|
setup(r) {
|
|
3553
3551
|
const o = (n) => {
|
|
3554
|
-
|
|
3552
|
+
ue(n);
|
|
3555
3553
|
};
|
|
3556
3554
|
return (n, s) => {
|
|
3557
3555
|
const e = q("survey-element-title-content"), i = q("sv-title-actions");
|
|
@@ -3567,7 +3565,7 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3567
3565
|
o(a);
|
|
3568
3566
|
})
|
|
3569
3567
|
}, {
|
|
3570
|
-
default:
|
|
3568
|
+
default: qe(() => [
|
|
3571
3569
|
n.element.hasTitleActions ? m("", !0) : (t(), y(e, {
|
|
3572
3570
|
key: 0,
|
|
3573
3571
|
element: n.element,
|
|
@@ -3583,7 +3581,7 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3583
3581
|
}, 40, ["class", "aria-label", "id", "tabindex", "aria-expanded", "role"])) : m("", !0);
|
|
3584
3582
|
};
|
|
3585
3583
|
}
|
|
3586
|
-
}),
|
|
3584
|
+
}), zo = { class: "sv-vue-title-additional-div" }, Uo = { key: 3 }, Ko = { key: 5 }, jo = { key: 7 }, Qo = /* @__PURE__ */ C({
|
|
3587
3585
|
__name: "TitleContent",
|
|
3588
3586
|
props: {
|
|
3589
3587
|
element: {},
|
|
@@ -3592,7 +3590,7 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3592
3590
|
setup(r) {
|
|
3593
3591
|
return (o, n) => {
|
|
3594
3592
|
const s = q("survey-string");
|
|
3595
|
-
return t(), u("div",
|
|
3593
|
+
return t(), u("div", zo, [
|
|
3596
3594
|
o.element.isTitleRenderedAsString ? (t(), y(s, {
|
|
3597
3595
|
key: 0,
|
|
3598
3596
|
locString: o.element.locTitle
|
|
@@ -3608,18 +3606,18 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3608
3606
|
class: l(o.element.cssTitleNumber),
|
|
3609
3607
|
"aria-hidden": !0
|
|
3610
3608
|
}, I(o.element.no), 3)) : m("", !0),
|
|
3611
|
-
!o.element.isTitleRenderedAsString && o.element.no ? (t(), u("span",
|
|
3609
|
+
!o.element.isTitleRenderedAsString && o.element.no ? (t(), u("span", Uo, "\xA0")) : m("", !0),
|
|
3612
3610
|
!o.element.isTitleRenderedAsString && o.element.isRequireTextBeforeTitle ? (t(), u("span", {
|
|
3613
3611
|
key: 4,
|
|
3614
3612
|
class: l(o.element.cssClasses.requiredText),
|
|
3615
3613
|
"aria-hidden": !0
|
|
3616
3614
|
}, I(o.element.requiredText), 3)) : m("", !0),
|
|
3617
|
-
!o.element.isTitleRenderedAsString && o.element.isRequireTextBeforeTitle ? (t(), u("span",
|
|
3615
|
+
!o.element.isTitleRenderedAsString && o.element.isRequireTextBeforeTitle ? (t(), u("span", Ko, "\xA0")) : m("", !0),
|
|
3618
3616
|
o.element.isTitleRenderedAsString ? m("", !0) : (t(), y(s, {
|
|
3619
3617
|
key: 6,
|
|
3620
3618
|
locString: o.element.locTitle
|
|
3621
3619
|
}, null, 8, ["locString"])),
|
|
3622
|
-
!o.element.isTitleRenderedAsString && o.element.isRequireTextAfterTitle ? (t(), u("span",
|
|
3620
|
+
!o.element.isTitleRenderedAsString && o.element.isRequireTextAfterTitle ? (t(), u("span", jo, "\xA0")) : m("", !0),
|
|
3623
3621
|
!o.element.isTitleRenderedAsString && o.element.isRequireTextAfterTitle ? (t(), u("span", {
|
|
3624
3622
|
key: 8,
|
|
3625
3623
|
class: l(o.element.cssClasses.requiredText),
|
|
@@ -3628,7 +3626,7 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3628
3626
|
]);
|
|
3629
3627
|
};
|
|
3630
3628
|
}
|
|
3631
|
-
}),
|
|
3629
|
+
}), Zo = { class: "sv-title-actions" }, Go = { class: "sv-title-actions__title" }, Xo = /* @__PURE__ */ C({
|
|
3632
3630
|
__name: "TitleActions",
|
|
3633
3631
|
props: {
|
|
3634
3632
|
element: {},
|
|
@@ -3638,8 +3636,8 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3638
3636
|
const o = r, n = R(() => o.element.getTitleToolbar());
|
|
3639
3637
|
return (s, e) => {
|
|
3640
3638
|
const i = q("survey-string"), a = q("survey-element-title-content"), d = q("sv-action-bar");
|
|
3641
|
-
return t(), u("div",
|
|
3642
|
-
p("span",
|
|
3639
|
+
return t(), u("div", Zo, [
|
|
3640
|
+
p("span", Go, [
|
|
3643
3641
|
s.element.isPage ? (t(), y(i, {
|
|
3644
3642
|
key: 0,
|
|
3645
3643
|
locString: s.element.locTitle
|
|
@@ -3654,20 +3652,20 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3654
3652
|
]);
|
|
3655
3653
|
};
|
|
3656
3654
|
}
|
|
3657
|
-
}),
|
|
3655
|
+
}), Jo = (r, o) => {
|
|
3658
3656
|
const n = r.__vccOpts || r;
|
|
3659
3657
|
for (const [s, e] of o)
|
|
3660
3658
|
n[s] = e;
|
|
3661
3659
|
return n;
|
|
3662
|
-
},
|
|
3663
|
-
|
|
3660
|
+
}, Yo = {}, _o = { class: "sv-brand-info" }, xo = /* @__PURE__ */ ye('<a class="sv-brand-info__logo" href="https://surveyjs.io/?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=landing_page"><img src="https://surveyjs.io/Content/Images/poweredby.svg"></a><div class="sv-brand-info__text"> Try and see how easy it is to <a href="https://surveyjs.io/create-survey?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=create_survey">create a survey</a></div><div class="sv-brand-info__terms"><a href="https://surveyjs.io/TermsOfUse">Terms of Use & Privacy Statement</a></div>', 3), et = [
|
|
3661
|
+
xo
|
|
3664
3662
|
];
|
|
3665
|
-
function
|
|
3666
|
-
return t(), u("div",
|
|
3663
|
+
function st(r, o) {
|
|
3664
|
+
return t(), u("div", _o, et);
|
|
3667
3665
|
}
|
|
3668
|
-
const
|
|
3669
|
-
|
|
3670
|
-
],
|
|
3666
|
+
const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /* @__PURE__ */ p("use", null, null, -1), it = [
|
|
3667
|
+
tt
|
|
3668
|
+
], lt = /* @__PURE__ */ C({
|
|
3671
3669
|
__name: "SvgIcon",
|
|
3672
3670
|
props: {
|
|
3673
3671
|
size: {},
|
|
@@ -3677,7 +3675,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
3677
3675
|
title: {}
|
|
3678
3676
|
},
|
|
3679
3677
|
setup(r) {
|
|
3680
|
-
const o = r, n =
|
|
3678
|
+
const o = r, n = S(), s = () => {
|
|
3681
3679
|
Te(
|
|
3682
3680
|
o.size,
|
|
3683
3681
|
o.width,
|
|
@@ -3687,7 +3685,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
3687
3685
|
o.title
|
|
3688
3686
|
);
|
|
3689
3687
|
};
|
|
3690
|
-
return
|
|
3688
|
+
return K(() => {
|
|
3691
3689
|
s();
|
|
3692
3690
|
}), E(() => {
|
|
3693
3691
|
s();
|
|
@@ -3697,16 +3695,16 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
3697
3695
|
class: "sv-svg-icon",
|
|
3698
3696
|
role: "img",
|
|
3699
3697
|
"aria-label": e.title
|
|
3700
|
-
},
|
|
3698
|
+
}, it, 8, ot));
|
|
3701
3699
|
}
|
|
3702
|
-
}),
|
|
3700
|
+
}), rt = /* @__PURE__ */ C({
|
|
3703
3701
|
__name: "ActionBar",
|
|
3704
3702
|
props: {
|
|
3705
3703
|
model: {},
|
|
3706
3704
|
handleClick: { type: Boolean }
|
|
3707
3705
|
},
|
|
3708
3706
|
setup(r) {
|
|
3709
|
-
const o = r, n =
|
|
3707
|
+
const o = r, n = S(null);
|
|
3710
3708
|
return B(() => o.model), E(() => {
|
|
3711
3709
|
!o.model.hasActions || o.model.initResponsivityManager(n.value);
|
|
3712
3710
|
}), O(() => {
|
|
@@ -3722,14 +3720,14 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
3722
3720
|
a.stopPropagation();
|
|
3723
3721
|
})
|
|
3724
3722
|
}, [
|
|
3725
|
-
(t(!0), u(w, null,
|
|
3723
|
+
(t(!0), u(w, null, T(s.model.renderedActions, (a) => (t(), y(i, {
|
|
3726
3724
|
key: a.id,
|
|
3727
3725
|
item: a
|
|
3728
3726
|
}, null, 8, ["item"]))), 128))
|
|
3729
3727
|
], 2)) : m("", !0);
|
|
3730
3728
|
};
|
|
3731
3729
|
}
|
|
3732
|
-
}),
|
|
3730
|
+
}), at = ["id"], ut = { class: "sv-action__content" }, dt = /* @__PURE__ */ C({
|
|
3733
3731
|
__name: "Action",
|
|
3734
3732
|
props: {
|
|
3735
3733
|
item: {}
|
|
@@ -3744,14 +3742,14 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
3744
3742
|
class: l(s.item.getActionRootCss()),
|
|
3745
3743
|
id: s.item.id
|
|
3746
3744
|
}, [
|
|
3747
|
-
p("div",
|
|
3745
|
+
p("div", ut, [
|
|
3748
3746
|
s.item.needSeparator ? (t(), y(i, { key: 0 })) : m("", !0),
|
|
3749
3747
|
(t(), y(N(n.value), { item: s.item }, null, 8, ["item"]))
|
|
3750
3748
|
])
|
|
3751
|
-
], 10,
|
|
3749
|
+
], 10, at);
|
|
3752
3750
|
};
|
|
3753
3751
|
}
|
|
3754
|
-
}),
|
|
3752
|
+
}), mt = ["disabled", "title", "aria-checked", "aria-expanded", "role", "tabindex"], ct = /* @__PURE__ */ C({
|
|
3755
3753
|
__name: "ActionBarItem",
|
|
3756
3754
|
props: {
|
|
3757
3755
|
item: {}
|
|
@@ -3787,21 +3785,21 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
3787
3785
|
key: 1,
|
|
3788
3786
|
class: l(n.item.getActionBarItemTitleCss())
|
|
3789
3787
|
}, I(n.item.title), 3)) : m("", !0)
|
|
3790
|
-
], 42,
|
|
3788
|
+
], 42, mt);
|
|
3791
3789
|
};
|
|
3792
3790
|
}
|
|
3793
|
-
}),
|
|
3791
|
+
}), pt = ["disabled", "title", "role", "tabindex"], vt = /* @__PURE__ */ C({
|
|
3794
3792
|
__name: "ActionBarItemDropdown",
|
|
3795
3793
|
props: {
|
|
3796
3794
|
item: {}
|
|
3797
3795
|
},
|
|
3798
3796
|
setup(r) {
|
|
3799
|
-
const o = r, n =
|
|
3797
|
+
const o = r, n = $e;
|
|
3800
3798
|
let s;
|
|
3801
3799
|
return B(
|
|
3802
3800
|
() => o.item,
|
|
3803
3801
|
(e) => {
|
|
3804
|
-
s = new
|
|
3802
|
+
s = new Re(e);
|
|
3805
3803
|
},
|
|
3806
3804
|
() => {
|
|
3807
3805
|
s.dispose();
|
|
@@ -3834,7 +3832,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
3834
3832
|
key: 1,
|
|
3835
3833
|
class: l(e.item.getActionBarItemTitleCss())
|
|
3836
3834
|
}, I(e.item.title), 3)) : m("", !0)
|
|
3837
|
-
], 42,
|
|
3835
|
+
], 42, pt),
|
|
3838
3836
|
h(d, {
|
|
3839
3837
|
model: e.item.popupModel,
|
|
3840
3838
|
getTarget: b(n)
|
|
@@ -3842,7 +3840,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
3842
3840
|
], 64);
|
|
3843
3841
|
};
|
|
3844
3842
|
}
|
|
3845
|
-
}),
|
|
3843
|
+
}), qt = /* @__PURE__ */ C({
|
|
3846
3844
|
__name: "ActionBarSeparator",
|
|
3847
3845
|
props: {
|
|
3848
3846
|
item: {}
|
|
@@ -3853,13 +3851,13 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
3853
3851
|
class: l(["sv-action-bar-separator", n.value])
|
|
3854
3852
|
}, null, 2));
|
|
3855
3853
|
}
|
|
3856
|
-
}),
|
|
3854
|
+
}), yt = ["aria-label", "placeholder", "value"], gt = ["aria-label"], Ct = ["id"], ht = /* @__PURE__ */ C({
|
|
3857
3855
|
__name: "List",
|
|
3858
3856
|
props: {
|
|
3859
3857
|
model: {}
|
|
3860
3858
|
},
|
|
3861
3859
|
setup(r) {
|
|
3862
|
-
const o = r, n =
|
|
3860
|
+
const o = r, n = S(null), s = (a) => {
|
|
3863
3861
|
const d = o.model;
|
|
3864
3862
|
d.filterString = a.target.value;
|
|
3865
3863
|
}, e = (a) => {
|
|
@@ -3897,7 +3895,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
3897
3895
|
value: a.model.filterString,
|
|
3898
3896
|
onChange: s,
|
|
3899
3897
|
onKeyup: e
|
|
3900
|
-
}, null, 42,
|
|
3898
|
+
}, null, 42, yt),
|
|
3901
3899
|
a.model.showSearchClearButton && !!a.model.filterString ? (t(), u("button", {
|
|
3902
3900
|
key: 0,
|
|
3903
3901
|
onClick: d[0] || (d[0] = (f) => {
|
|
@@ -3917,7 +3915,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
3917
3915
|
p("div", {
|
|
3918
3916
|
class: l(a.model.cssClasses.emptyText),
|
|
3919
3917
|
"aria-label": a.model.emptyMessage
|
|
3920
|
-
}, I(a.model.emptyMessage), 11,
|
|
3918
|
+
}, I(a.model.emptyMessage), 11, gt)
|
|
3921
3919
|
], 2), [
|
|
3922
3920
|
[H, a.model.isEmpty]
|
|
3923
3921
|
]),
|
|
@@ -3934,18 +3932,18 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
3934
3932
|
a.model.onKeyDown(f);
|
|
3935
3933
|
})
|
|
3936
3934
|
}, [
|
|
3937
|
-
(t(!0), u(w, null,
|
|
3935
|
+
(t(!0), u(w, null, T(a.model.renderedActions, (f) => (t(), y(v, {
|
|
3938
3936
|
item: f,
|
|
3939
3937
|
model: a.model,
|
|
3940
3938
|
key: f.id
|
|
3941
3939
|
}, null, 8, ["item", "model"]))), 128))
|
|
3942
|
-
], 42,
|
|
3940
|
+
], 42, Ct)), [
|
|
3943
3941
|
[H, !a.model.isEmpty]
|
|
3944
3942
|
]) : m("", !0)
|
|
3945
3943
|
], 2);
|
|
3946
3944
|
};
|
|
3947
3945
|
}
|
|
3948
|
-
}),
|
|
3946
|
+
}), bt = ["aria-selected", "id"], kt = /* @__PURE__ */ C({
|
|
3949
3947
|
__name: "ListItem",
|
|
3950
3948
|
props: {
|
|
3951
3949
|
model: {},
|
|
@@ -3993,13 +3991,13 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
3993
3991
|
item: e.item
|
|
3994
3992
|
}, null, 8, ["item"])) : m("", !0)
|
|
3995
3993
|
], 6)
|
|
3996
|
-
], 10,
|
|
3994
|
+
], 10, bt)), [
|
|
3997
3995
|
[H, e.model.isItemVisible(e.item)],
|
|
3998
3996
|
[c]
|
|
3999
3997
|
]);
|
|
4000
3998
|
};
|
|
4001
3999
|
}
|
|
4002
|
-
}),
|
|
4000
|
+
}), ft = /* @__PURE__ */ C({
|
|
4003
4001
|
__name: "Popup",
|
|
4004
4002
|
props: {
|
|
4005
4003
|
getTarget: { type: Function },
|
|
@@ -4008,8 +4006,8 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4008
4006
|
setup(r) {
|
|
4009
4007
|
const o = r, n = F(
|
|
4010
4008
|
oe(o.model, void 0)
|
|
4011
|
-
), s =
|
|
4012
|
-
return
|
|
4009
|
+
), s = S(null);
|
|
4010
|
+
return G(
|
|
4013
4011
|
() => o.model,
|
|
4014
4012
|
(e) => {
|
|
4015
4013
|
n.value.dispose(), n.value = oe(e, void 0);
|
|
@@ -4033,13 +4031,13 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4033
4031
|
], 512);
|
|
4034
4032
|
};
|
|
4035
4033
|
}
|
|
4036
|
-
}),
|
|
4034
|
+
}), It = { class: "sv-popup__shadow" }, wt = { class: "sv-popup__body-content" }, St = {
|
|
4037
4035
|
key: 0,
|
|
4038
4036
|
class: "sv-popup__body-header"
|
|
4039
|
-
},
|
|
4037
|
+
}, Tt = { class: "sv-popup__scrolling-content" }, Rt = { class: "sv-popup__content" }, $t = {
|
|
4040
4038
|
key: 1,
|
|
4041
4039
|
class: "sv-popup__body-footer"
|
|
4042
|
-
},
|
|
4040
|
+
}, Bt = /* @__PURE__ */ C({
|
|
4043
4041
|
__name: "PopupContainer",
|
|
4044
4042
|
props: {
|
|
4045
4043
|
model: {}
|
|
@@ -4050,7 +4048,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4050
4048
|
const s = (e) => {
|
|
4051
4049
|
e.stopPropagation();
|
|
4052
4050
|
};
|
|
4053
|
-
return B(() => o.model),
|
|
4051
|
+
return B(() => o.model), K(() => {
|
|
4054
4052
|
const e = o.model;
|
|
4055
4053
|
!n && e.isVisible && o.model.updateOnShowing(), n = e.isVisible;
|
|
4056
4054
|
}), (e, i) => {
|
|
@@ -4076,19 +4074,19 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4076
4074
|
}),
|
|
4077
4075
|
onClick: s
|
|
4078
4076
|
}, [
|
|
4079
|
-
p("div",
|
|
4077
|
+
p("div", It, [
|
|
4080
4078
|
e.model.showHeader ? (t(), y(N(e.model.popupHeaderTemplate), {
|
|
4081
4079
|
key: 0,
|
|
4082
4080
|
model: e.model
|
|
4083
4081
|
}, null, 8, ["model"])) : m("", !0),
|
|
4084
|
-
p("div",
|
|
4085
|
-
e.model.title ? (t(), u("div",
|
|
4086
|
-
p("div",
|
|
4087
|
-
p("div",
|
|
4088
|
-
(t(), y(N(e.model.contentComponentName),
|
|
4082
|
+
p("div", wt, [
|
|
4083
|
+
e.model.title ? (t(), u("div", St, I(e.model.title), 1)) : m("", !0),
|
|
4084
|
+
p("div", Tt, [
|
|
4085
|
+
p("div", Rt, [
|
|
4086
|
+
(t(), y(N(e.model.contentComponentName), ge(Ce(e.model.contentComponentData)), null, 16))
|
|
4089
4087
|
])
|
|
4090
4088
|
]),
|
|
4091
|
-
e.model.showFooter ? (t(), u("div",
|
|
4089
|
+
e.model.showFooter ? (t(), u("div", $t, [
|
|
4092
4090
|
h(a, {
|
|
4093
4091
|
model: e.model.footerToolbar
|
|
4094
4092
|
}, null, 8, ["model"])
|
|
@@ -4101,7 +4099,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4101
4099
|
]);
|
|
4102
4100
|
};
|
|
4103
4101
|
}
|
|
4104
|
-
}),
|
|
4102
|
+
}), Lt = /* @__PURE__ */ C({
|
|
4105
4103
|
__name: "PopupPointer",
|
|
4106
4104
|
props: {
|
|
4107
4105
|
model: {}
|
|
@@ -4115,10 +4113,10 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4115
4113
|
})
|
|
4116
4114
|
}, null, 4));
|
|
4117
4115
|
}
|
|
4118
|
-
}),
|
|
4116
|
+
}), Dt = {
|
|
4119
4117
|
key: 0,
|
|
4120
4118
|
class: "sv-components-column"
|
|
4121
|
-
},
|
|
4119
|
+
}, Pt = /* @__PURE__ */ C({
|
|
4122
4120
|
__name: "Container",
|
|
4123
4121
|
props: {
|
|
4124
4122
|
survey: {},
|
|
@@ -4130,18 +4128,18 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4130
4128
|
() => o.survey.getContainerContent(o.container)
|
|
4131
4129
|
);
|
|
4132
4130
|
return (s, e) => n.value.length > 0 ? (t(), u(w, { key: 0 }, [
|
|
4133
|
-
s.needRenderWrapper ? (t(), u("div",
|
|
4134
|
-
(t(!0), u(w, null,
|
|
4131
|
+
s.needRenderWrapper ? (t(), u("div", Dt, [
|
|
4132
|
+
(t(!0), u(w, null, T(n.value, (i, a) => (t(), y(N(i.component), {
|
|
4135
4133
|
survey: s.survey,
|
|
4136
4134
|
model: i.data
|
|
4137
4135
|
}, null, 8, ["survey", "model"]))), 256))
|
|
4138
|
-
])) : (t(!0), u(w, { key: 1 },
|
|
4136
|
+
])) : (t(!0), u(w, { key: 1 }, T(n.value, (i, a) => (t(), y(N(i.component), {
|
|
4139
4137
|
survey: s.survey,
|
|
4140
4138
|
model: i.data
|
|
4141
4139
|
}, null, 8, ["survey", "model"]))), 256))
|
|
4142
4140
|
], 64)) : m("", !0);
|
|
4143
4141
|
}
|
|
4144
|
-
}),
|
|
4142
|
+
}), Z = /* @__PURE__ */ C({
|
|
4145
4143
|
__name: "Progress",
|
|
4146
4144
|
props: {
|
|
4147
4145
|
survey: {},
|
|
@@ -4168,13 +4166,13 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4168
4166
|
}, I(i.survey.progressText), 3)
|
|
4169
4167
|
], 2));
|
|
4170
4168
|
}
|
|
4171
|
-
}),
|
|
4169
|
+
}), Mt = ["onClick"], Nt = ["title"], Ht = ["title"], Et = /* @__PURE__ */ C({
|
|
4172
4170
|
__name: "ProgressButtons",
|
|
4173
4171
|
props: {
|
|
4174
4172
|
survey: {}
|
|
4175
4173
|
},
|
|
4176
4174
|
setup(r) {
|
|
4177
|
-
const o = r, n = new
|
|
4175
|
+
const o = r, n = new Be(o.survey), s = S(!1), e = S(), i = R(() => o.survey.css);
|
|
4178
4176
|
let a;
|
|
4179
4177
|
const d = (k) => n.isListElementClickable(k), c = (k) => n.getListElementCss(k), v = (k) => {
|
|
4180
4178
|
n.clickListElement(k);
|
|
@@ -4187,7 +4185,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4187
4185
|
a = setInterval(() => {
|
|
4188
4186
|
s.value = k.scrollWidth > k.offsetWidth;
|
|
4189
4187
|
}, 100);
|
|
4190
|
-
}),
|
|
4188
|
+
}), U(() => {
|
|
4191
4189
|
typeof a < "u" && (clearInterval(a), a = void 0);
|
|
4192
4190
|
}), (k, P) => (t(), u("div", {
|
|
4193
4191
|
class: l(i.value.progressButtonsContainerCenter)
|
|
@@ -4208,20 +4206,20 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4208
4206
|
p("ul", {
|
|
4209
4207
|
class: l(i.value.progressButtonsList)
|
|
4210
4208
|
}, [
|
|
4211
|
-
(t(!0), u(w, null,
|
|
4209
|
+
(t(!0), u(w, null, T(k.survey.visiblePages, (L, A) => (t(), u("li", {
|
|
4212
4210
|
key: "listelement" + A,
|
|
4213
4211
|
class: l(c(A)),
|
|
4214
|
-
onClick: (
|
|
4212
|
+
onClick: (Q) => d(A) ? v(A) : null
|
|
4215
4213
|
}, [
|
|
4216
4214
|
p("div", {
|
|
4217
4215
|
class: l(i.value.progressButtonsPageTitle),
|
|
4218
4216
|
title: L.locNavigationTitle.renderedHtml || L.name
|
|
4219
|
-
}, I(L.locNavigationTitle.renderedHtml || L.name), 11,
|
|
4217
|
+
}, I(L.locNavigationTitle.renderedHtml || L.name), 11, Nt),
|
|
4220
4218
|
p("div", {
|
|
4221
4219
|
class: l(i.value.progressButtonsPageDescription),
|
|
4222
4220
|
title: L.locNavigationDescription.renderedHtml
|
|
4223
|
-
}, I(L.locNavigationDescription.renderedHtml), 11,
|
|
4224
|
-
], 10,
|
|
4221
|
+
}, I(L.locNavigationDescription.renderedHtml), 11, Ht)
|
|
4222
|
+
], 10, Mt))), 128))
|
|
4225
4223
|
], 2)
|
|
4226
4224
|
], 2),
|
|
4227
4225
|
p("div", {
|
|
@@ -4232,13 +4230,13 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4232
4230
|
], 2)
|
|
4233
4231
|
], 2));
|
|
4234
4232
|
}
|
|
4235
|
-
}),
|
|
4233
|
+
}), At = /* @__PURE__ */ C({
|
|
4236
4234
|
__name: "ProgressToc",
|
|
4237
4235
|
props: {
|
|
4238
4236
|
survey: {}
|
|
4239
4237
|
},
|
|
4240
4238
|
setup(r) {
|
|
4241
|
-
const o = r, n = new
|
|
4239
|
+
const o = r, n = new Le(o.survey);
|
|
4242
4240
|
return (s, e) => {
|
|
4243
4241
|
const i = q("sv-svg-icon"), a = q("sv-popup"), d = q("sv-list"), c = _("key2click");
|
|
4244
4242
|
return t(), u("div", {
|
|
@@ -4264,19 +4262,19 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4264
4262
|
], 2);
|
|
4265
4263
|
};
|
|
4266
4264
|
}
|
|
4267
|
-
}),
|
|
4265
|
+
}), Ot = { onsubmit: "return false;" }, Vt = {
|
|
4268
4266
|
key: 0,
|
|
4269
4267
|
class: "sv_custom_header"
|
|
4270
|
-
},
|
|
4268
|
+
}, Ft = ["id"], Wt = { key: 1 }, zt = ["innerHTML"], Ut = ["innerHTML"], Kt = ["innerHTML"], le = /* @__PURE__ */ C({
|
|
4271
4269
|
__name: "Survey",
|
|
4272
4270
|
props: {
|
|
4273
4271
|
model: {},
|
|
4274
4272
|
survey: {}
|
|
4275
4273
|
},
|
|
4276
4274
|
setup(r) {
|
|
4277
|
-
const o = r, n =
|
|
4275
|
+
const o = r, n = S(), s = S(""), e = S(1), i = R(() => {
|
|
4278
4276
|
const k = o.survey ? o.survey : o.model;
|
|
4279
|
-
return
|
|
4277
|
+
return he(k);
|
|
4280
4278
|
}), a = R(() => i.value.activePage ? i.value.activePage.id : ""), d = () => {
|
|
4281
4279
|
const k = a.value;
|
|
4282
4280
|
return !!i.value && k + e.value.toString();
|
|
@@ -4285,7 +4283,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4285
4283
|
), v = R(() => i.value.css), f = R(() => "page" + d()), g = () => c.value ? (s.value || (s.value = i.value.processedCompletedHtml), s.value) : "";
|
|
4286
4284
|
return B(() => i.value), E(() => {
|
|
4287
4285
|
if (!!i.value) {
|
|
4288
|
-
i.value.needRenderIcons &&
|
|
4286
|
+
i.value.needRenderIcons && De.renderIcons();
|
|
4289
4287
|
var k = n.value;
|
|
4290
4288
|
k && i.value.afterRenderSurvey(k), i.value.renderCallback = () => {
|
|
4291
4289
|
var P, L;
|
|
@@ -4295,7 +4293,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4295
4293
|
}), O(() => {
|
|
4296
4294
|
i.value.stopTimer(), i.value.renderCallback = void 0;
|
|
4297
4295
|
}), (k, P) => {
|
|
4298
|
-
const L = q("survey-popup-modal"), A = q("survey-header"),
|
|
4296
|
+
const L = q("survey-popup-modal"), A = q("survey-header"), Q = q("survey-page"), J = q("sv-brand-info"), de = q("sv-notifier");
|
|
4299
4297
|
return t(), u("div", {
|
|
4300
4298
|
class: l(i.value.getRootCss()),
|
|
4301
4299
|
style: $(i.value.themeVariables),
|
|
@@ -4308,8 +4306,8 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4308
4306
|
class: l(v.value.rootBackgroundImage),
|
|
4309
4307
|
style: $(i.value.backgroundImageStyle)
|
|
4310
4308
|
}, null, 6)) : m("", !0),
|
|
4311
|
-
p("form",
|
|
4312
|
-
i.value.hasLogo ? m("", !0) : (t(), u("div",
|
|
4309
|
+
p("form", Ot, [
|
|
4310
|
+
i.value.hasLogo ? m("", !0) : (t(), u("div", Vt)),
|
|
4313
4311
|
p("div", {
|
|
4314
4312
|
class: l(v.value.container)
|
|
4315
4313
|
}, [
|
|
@@ -4338,7 +4336,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4338
4336
|
container: "contentTop",
|
|
4339
4337
|
needRenderWrapper: !0
|
|
4340
4338
|
}, null, 8, ["survey"])),
|
|
4341
|
-
(t(), y(
|
|
4339
|
+
(t(), y(Q, {
|
|
4342
4340
|
key: f.value,
|
|
4343
4341
|
survey: i.value,
|
|
4344
4342
|
page: i.value.activePage,
|
|
@@ -4349,7 +4347,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4349
4347
|
container: "contentBottom",
|
|
4350
4348
|
needRenderWrapper: !0
|
|
4351
4349
|
}, null, 8, ["survey"]))
|
|
4352
|
-
], 14,
|
|
4350
|
+
], 14, Ft),
|
|
4353
4351
|
(t(), y(N("sv-components-container"), {
|
|
4354
4352
|
survey: i.value,
|
|
4355
4353
|
container: "right",
|
|
@@ -4361,36 +4359,36 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4361
4359
|
container: "footer",
|
|
4362
4360
|
needRenderWrapper: !1
|
|
4363
4361
|
}, null, 8, ["survey"])),
|
|
4364
|
-
c.value ? (t(), u("div",
|
|
4362
|
+
c.value ? (t(), u("div", Wt, [
|
|
4365
4363
|
p("div", {
|
|
4366
4364
|
innerHTML: g(),
|
|
4367
4365
|
class: l(i.value.completedCss)
|
|
4368
|
-
}, null, 10,
|
|
4366
|
+
}, null, 10, zt)
|
|
4369
4367
|
])) : m("", !0),
|
|
4370
4368
|
i.value.state === "completedbefore" ? (t(), u("div", {
|
|
4371
4369
|
key: 2,
|
|
4372
4370
|
class: l(v.value.body),
|
|
4373
4371
|
innerHTML: i.value.processedCompletedBeforeHtml
|
|
4374
|
-
}, null, 10,
|
|
4372
|
+
}, null, 10, Ut)) : m("", !0),
|
|
4375
4373
|
i.value.state === "loading" ? (t(), u("div", {
|
|
4376
4374
|
key: 3,
|
|
4377
4375
|
class: l(v.value.body),
|
|
4378
4376
|
innerHTML: i.value.processedLoadingHtml
|
|
4379
|
-
}, null, 10,
|
|
4377
|
+
}, null, 10, Kt)) : m("", !0),
|
|
4380
4378
|
i.value.state === "empty" ? (t(), u("div", {
|
|
4381
4379
|
key: 4,
|
|
4382
4380
|
class: l(v.value.bodyEmpty)
|
|
4383
4381
|
}, I(i.value.emptySurveyText), 3)) : m("", !0)
|
|
4384
4382
|
], 2)
|
|
4385
4383
|
]),
|
|
4386
|
-
i.value.showBrandInfo ? (t(), y(
|
|
4387
|
-
h(
|
|
4384
|
+
i.value.showBrandInfo ? (t(), y(J, { key: 1 })) : m("", !0),
|
|
4385
|
+
h(de, {
|
|
4388
4386
|
model: i.value.notifier
|
|
4389
4387
|
}, null, 8, ["model"])
|
|
4390
4388
|
], 6);
|
|
4391
4389
|
};
|
|
4392
4390
|
}
|
|
4393
|
-
}),
|
|
4391
|
+
}), jt = /* @__PURE__ */ C({
|
|
4394
4392
|
__name: "Notifier",
|
|
4395
4393
|
props: {
|
|
4396
4394
|
model: {}
|
|
@@ -4414,7 +4412,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4414
4412
|
]);
|
|
4415
4413
|
};
|
|
4416
4414
|
}
|
|
4417
|
-
}),
|
|
4415
|
+
}), Qt = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], Zt = { key: 1 }, Gt = /* @__PURE__ */ C({
|
|
4418
4416
|
__name: "QuestionOther",
|
|
4419
4417
|
props: {
|
|
4420
4418
|
question: {},
|
|
@@ -4442,11 +4440,11 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4442
4440
|
onInput: n[1] || (n[1] = (s) => {
|
|
4443
4441
|
o.question.onOtherValueInput(s);
|
|
4444
4442
|
})
|
|
4445
|
-
}, null, 46,
|
|
4446
|
-
o.question.isReadOnlyRenderDiv() ? (t(), u("div",
|
|
4443
|
+
}, null, 46, Qt)),
|
|
4444
|
+
o.question.isReadOnlyRenderDiv() ? (t(), u("div", Zt, I(o.question.otherValue), 1)) : m("", !0)
|
|
4447
4445
|
], 2));
|
|
4448
4446
|
}
|
|
4449
|
-
}),
|
|
4447
|
+
}), Xt = ["disabled", "value", "title"], Jt = /* @__PURE__ */ C({
|
|
4450
4448
|
__name: "SurveyNavigationButton",
|
|
4451
4449
|
props: {
|
|
4452
4450
|
item: {}
|
|
@@ -4462,9 +4460,9 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4462
4460
|
title: s.item.getTooltip(),
|
|
4463
4461
|
onMousedown: n,
|
|
4464
4462
|
onClick: e[0] || (e[0] = (...i) => s.item.action && s.item.action(...i))
|
|
4465
|
-
}, null, 42,
|
|
4463
|
+
}, null, 42, Xt)) : m("", !0);
|
|
4466
4464
|
}
|
|
4467
|
-
}),
|
|
4465
|
+
}), re = /* @__PURE__ */ C({
|
|
4468
4466
|
__name: "PopupSurvey",
|
|
4469
4467
|
props: {
|
|
4470
4468
|
survey: {},
|
|
@@ -4482,14 +4480,14 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4482
4480
|
n.value.changeExpandCollapse();
|
|
4483
4481
|
}, d = () => {
|
|
4484
4482
|
n.value.hide();
|
|
4485
|
-
}, c = () => "
|
|
4483
|
+
}, c = () => "SurveyComponent", v = () => {
|
|
4486
4484
|
n.value.onScroll();
|
|
4487
4485
|
};
|
|
4488
4486
|
B(() => n.value);
|
|
4489
|
-
const f =
|
|
4487
|
+
const f = G(
|
|
4490
4488
|
() => o.survey,
|
|
4491
4489
|
(g) => {
|
|
4492
|
-
const k = new
|
|
4490
|
+
const k = new Pe(null, g);
|
|
4493
4491
|
o.isExpanded !== void 0 && (k.isExpanded = o.isExpanded), o.closeOnCompleteTimeout !== void 0 && (k.closeOnCompleteTimeout = o.closeOnCompleteTimeout), k.isShowing = !0, n.value = k;
|
|
4494
4492
|
},
|
|
4495
4493
|
{
|
|
@@ -4561,21 +4559,21 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4561
4559
|
], 6)) : m("", !0);
|
|
4562
4560
|
};
|
|
4563
4561
|
}
|
|
4564
|
-
}),
|
|
4562
|
+
}), Yt = ["innerHTML"], _t = /* @__PURE__ */ C({
|
|
4565
4563
|
__name: "CustomWidget",
|
|
4566
4564
|
props: {
|
|
4567
4565
|
question: {},
|
|
4568
4566
|
css: {}
|
|
4569
4567
|
},
|
|
4570
4568
|
setup(r) {
|
|
4571
|
-
const o = r, n =
|
|
4569
|
+
const o = r, n = S(), s = R(
|
|
4572
4570
|
() => o.question.customWidget.isDefaultRender
|
|
4573
4571
|
), e = R(
|
|
4574
4572
|
() => !!o.question.customWidget.htmlTemplate
|
|
4575
4573
|
), i = R(() => o.question.customWidget.htmlTemplate), a = R(() => "survey-" + o.question.getTemplate());
|
|
4576
4574
|
return E(() => {
|
|
4577
4575
|
o.question.customWidget.afterRender(o.question, n.value);
|
|
4578
|
-
}),
|
|
4576
|
+
}), U(() => {
|
|
4579
4577
|
o.question.customWidget.willUnmount(o.question, n.value);
|
|
4580
4578
|
}), (d, c) => (t(), u("div", {
|
|
4581
4579
|
ref_key: "root",
|
|
@@ -4584,7 +4582,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4584
4582
|
e.value ? (t(), u("div", {
|
|
4585
4583
|
key: 0,
|
|
4586
4584
|
innerHTML: i.value
|
|
4587
|
-
}, null, 8,
|
|
4585
|
+
}, null, 8, Yt)) : m("", !0),
|
|
4588
4586
|
s.value ? (t(), y(N(a.value), {
|
|
4589
4587
|
key: 1,
|
|
4590
4588
|
question: d.question,
|
|
@@ -4592,12 +4590,12 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4592
4590
|
}, null, 8, ["question", "css"])) : m("", !0)
|
|
4593
4591
|
], 512));
|
|
4594
4592
|
}
|
|
4595
|
-
}),
|
|
4593
|
+
}), xt = /* @__PURE__ */ C({
|
|
4596
4594
|
__name: "PopupModal",
|
|
4597
4595
|
setup(r) {
|
|
4598
4596
|
const o = F();
|
|
4599
4597
|
function n(e, i, a, d, c, v, f = "popup") {
|
|
4600
|
-
const g =
|
|
4598
|
+
const g = Me(
|
|
4601
4599
|
e,
|
|
4602
4600
|
i,
|
|
4603
4601
|
a,
|
|
@@ -4614,7 +4612,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4614
4612
|
e.onHide = () => {
|
|
4615
4613
|
o.value = void 0, a.dispose();
|
|
4616
4614
|
};
|
|
4617
|
-
const a =
|
|
4615
|
+
const a = Ne(
|
|
4618
4616
|
e,
|
|
4619
4617
|
i
|
|
4620
4618
|
);
|
|
@@ -4626,7 +4624,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4626
4624
|
V.showDialog = void 0;
|
|
4627
4625
|
})), (e, i) => {
|
|
4628
4626
|
const a = q("sv-popup-container");
|
|
4629
|
-
return o.value ? (t(), y(
|
|
4627
|
+
return o.value ? (t(), y(be, {
|
|
4630
4628
|
key: 0,
|
|
4631
4629
|
to: o.value.container
|
|
4632
4630
|
}, [
|
|
@@ -4634,7 +4632,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4634
4632
|
], 8, ["to"])) : m("", !0);
|
|
4635
4633
|
};
|
|
4636
4634
|
}
|
|
4637
|
-
}),
|
|
4635
|
+
}), ei = /* @__PURE__ */ C({
|
|
4638
4636
|
__name: "CharacterCounter",
|
|
4639
4637
|
props: {
|
|
4640
4638
|
counter: {},
|
|
@@ -4646,14 +4644,14 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4646
4644
|
class: l(n.remainingCharacterCounter)
|
|
4647
4645
|
}, I(n.counter.remainingCharacterCounter), 3));
|
|
4648
4646
|
}
|
|
4649
|
-
}),
|
|
4647
|
+
}), si = /* @__PURE__ */ C({
|
|
4650
4648
|
__name: "Composite",
|
|
4651
4649
|
props: {
|
|
4652
4650
|
question: {},
|
|
4653
4651
|
css: {}
|
|
4654
4652
|
},
|
|
4655
4653
|
setup(r) {
|
|
4656
|
-
const o = r, n =
|
|
4654
|
+
const o = r, n = S(null);
|
|
4657
4655
|
M(o, n);
|
|
4658
4656
|
const s = R(() => o.question.contentPanel);
|
|
4659
4657
|
return (e, i) => {
|
|
@@ -4666,14 +4664,14 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4666
4664
|
}, null, 8, ["question", "css"]);
|
|
4667
4665
|
};
|
|
4668
4666
|
}
|
|
4669
|
-
}),
|
|
4667
|
+
}), ni = /* @__PURE__ */ C({
|
|
4670
4668
|
__name: "Custom",
|
|
4671
4669
|
props: {
|
|
4672
4670
|
question: {},
|
|
4673
4671
|
css: {}
|
|
4674
4672
|
},
|
|
4675
4673
|
setup(r) {
|
|
4676
|
-
const o = r, n =
|
|
4674
|
+
const o = r, n = S(null);
|
|
4677
4675
|
M(o, n);
|
|
4678
4676
|
const s = R(() => o.question.contentQuestion), e = (i) => ee(i);
|
|
4679
4677
|
return (i, a) => (t(), y(N(e(s.value)), {
|
|
@@ -4682,16 +4680,16 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4682
4680
|
css: i.css
|
|
4683
4681
|
}, null, 8, ["question", "css"]));
|
|
4684
4682
|
}
|
|
4685
|
-
}),
|
|
4686
|
-
|
|
4687
|
-
],
|
|
4683
|
+
}), oi = /* @__PURE__ */ p("use", { "xlink:href": "#icon-timercircle" }, null, -1), ti = [
|
|
4684
|
+
oi
|
|
4685
|
+
], ae = 440, ii = /* @__PURE__ */ C({
|
|
4688
4686
|
__name: "TimerPanel",
|
|
4689
4687
|
props: {
|
|
4690
4688
|
model: {},
|
|
4691
4689
|
css: {}
|
|
4692
4690
|
},
|
|
4693
4691
|
setup(r) {
|
|
4694
|
-
const o = r, n = R(() =>
|
|
4692
|
+
const o = r, n = R(() => ae * o.model.progress), s = R(() => o.model.text);
|
|
4695
4693
|
return B(() => o.model), (e, i) => e.model.isRunning && e.model.showTimerAsClock ? (t(), u("div", {
|
|
4696
4694
|
key: 0,
|
|
4697
4695
|
class: l(e.model.rootCss)
|
|
@@ -4699,8 +4697,8 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4699
4697
|
e.model.showProgress ? (t(), u("svg", {
|
|
4700
4698
|
key: 0,
|
|
4701
4699
|
class: l(e.model.getProgressCss()),
|
|
4702
|
-
style: $({ strokeDasharray:
|
|
4703
|
-
},
|
|
4700
|
+
style: $({ strokeDasharray: ae, strokeDashoffset: n.value })
|
|
4701
|
+
}, ti, 6)) : m("", !0),
|
|
4704
4702
|
p("div", {
|
|
4705
4703
|
class: l(e.model.textContainerCss)
|
|
4706
4704
|
}, [
|
|
@@ -4720,25 +4718,25 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4720
4718
|
]);
|
|
4721
4719
|
}
|
|
4722
4720
|
});
|
|
4723
|
-
function
|
|
4724
|
-
r.component("
|
|
4721
|
+
function li(r) {
|
|
4722
|
+
r.component("SurveyComponent", le), r.component("PopupSurveyComponent", re), r.component("survey", le), r.component("popup-survey", re), r.component("survey-header", We), r.component("survey-page", Oe), r.component("survey-row", ze), r.component("survey-element", Ke), r.component("survey-panel", Ze), r.component("survey-element-header", Ge), r.component("survey-string", Xe), r.component("sv-string-viewer", _e), r.component("sv-string-editor", es), r.component("sv-skeleton", ns), r.component("survey-text", is), r.component("survey-text-input", us), r.component("survey-checkbox", ms), r.component("survey-checkbox-item", gs), r.component("survey-radiogroup", bs), r.component("survey-radiogroup-item", Ss), r.component("survey-signaturepad", Bs), r.component("survey-html", Ds), r.component("survey-image", Hs), r.component("survey-expression", Es), r.component("survey-file", Ks), r.component("survey-imagepicker", Qs), r.component("survey-imagepicker-item", Ys), r.component("survey-comment", en), r.component("survey-dropdown", sn), r.component("sv-dropdown-select", ln), r.component("sv-dropdown-option-item", an), r.component("sv-dropdown", pn), r.component("survey-tagbox", vn), r.component("sv-tagbox", gn), r.component("sv-tagbox-item", fn), r.component("sv-tagbox-filter", bn), r.component("survey-ranking", In), r.component("survey-ranking-item", Dn), r.component("survey-rating", Nn), r.component("sv-rating-item", En), r.component("sv-rating-item-smiley", On), r.component("sv-rating-item-star", Fn), r.component("sv-rating-dropdown", Wn), r.component("survey-boolean", Un), r.component("sv-boolean-radio", Kn), r.component("sv-boolean-radio-item", Zn), r.component("sv-boolean-checkbox", _n), r.component("survey-multipletext", xn), 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", Et), r.component("sv-progress-toc", At), r.component("sv-progress-pages", Z), r.component("sv-progress-questions", Z), r.component("sv-progress-correctquestions", Z), r.component("sv-progress-requiredquestions", Z), r.component("survey-errors", Ao), 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", {
|
|
4725
4723
|
mounted: function(o, n) {
|
|
4726
4724
|
const s = { ...n.value };
|
|
4727
|
-
s.disableTabStop || (o.tabIndex = 0), o.addEventListener("keyup", (e) => (e.preventDefault(), e.stopPropagation(),
|
|
4728
|
-
|
|
4725
|
+
s.disableTabStop || (o.tabIndex = 0), o.addEventListener("keyup", (e) => (e.preventDefault(), e.stopPropagation(), ue(e, s), !1)), o.addEventListener("keydown", (e) => {
|
|
4726
|
+
He(e, s);
|
|
4729
4727
|
}), o.addEventListener("blur", (e) => {
|
|
4730
|
-
|
|
4728
|
+
Ee(e);
|
|
4731
4729
|
});
|
|
4732
4730
|
}
|
|
4733
4731
|
});
|
|
4734
4732
|
}
|
|
4735
|
-
const
|
|
4733
|
+
const ui = {
|
|
4736
4734
|
install(r) {
|
|
4737
|
-
|
|
4735
|
+
li(r);
|
|
4738
4736
|
}
|
|
4739
4737
|
};
|
|
4740
4738
|
export {
|
|
4741
|
-
|
|
4739
|
+
ui as surveyPlugin,
|
|
4742
4740
|
B as useBase,
|
|
4743
4741
|
W as useLocString,
|
|
4744
4742
|
M as useQuestion
|