survey-vue3-ui 1.9.101 → 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 +439 -442
- 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)),
|
|
@@ -1117,7 +1118,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1117
1118
|
iconName: e.question.cssClasses.chooseFileIconId,
|
|
1118
1119
|
size: "auto"
|
|
1119
1120
|
}, null, 8, ["title", "iconName"])) : m("", !0)
|
|
1120
|
-
], 10,
|
|
1121
|
+
], 10, Vs)), [
|
|
1121
1122
|
[c]
|
|
1122
1123
|
]),
|
|
1123
1124
|
e.question.isEmpty() ? (t(), u("span", {
|
|
@@ -1144,7 +1145,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1144
1145
|
key: 1,
|
|
1145
1146
|
class: l(e.question.cssClasses.fileList || void 0)
|
|
1146
1147
|
}, [
|
|
1147
|
-
(t(!0), u(w, null,
|
|
1148
|
+
(t(!0), u(w, null, T(e.question.previewValue, (v, f) => D((t(), u("span", {
|
|
1148
1149
|
key: e.question.inputId + "_" + f,
|
|
1149
1150
|
class: l(e.question.cssClasses.preview)
|
|
1150
1151
|
}, [
|
|
@@ -1158,7 +1159,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1158
1159
|
title: v.name,
|
|
1159
1160
|
download: v.name,
|
|
1160
1161
|
style: $({ width: e.question.imageWidth })
|
|
1161
|
-
}, I(v.name), 13,
|
|
1162
|
+
}, I(v.name), 13, Fs)
|
|
1162
1163
|
], 2)) : m("", !0),
|
|
1163
1164
|
p("div", {
|
|
1164
1165
|
class: l(e.question.cssClasses.imageWrapper)
|
|
@@ -1171,7 +1172,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1171
1172
|
width: e.question.imageWidth
|
|
1172
1173
|
}),
|
|
1173
1174
|
alt: "File preview"
|
|
1174
|
-
}, null, 12,
|
|
1175
|
+
}, null, 12, Ws)) : m("", !0),
|
|
1175
1176
|
e.question.defaultImage(v) ? (t(), y(a, {
|
|
1176
1177
|
key: 1,
|
|
1177
1178
|
iconName: e.question.cssClasses.defaultImageIconId,
|
|
@@ -1193,7 +1194,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1193
1194
|
iconName: e.question.cssClasses.removeFileSvgIconId,
|
|
1194
1195
|
size: "auto"
|
|
1195
1196
|
}, null, 8, ["title", "class", "iconName"])) : m("", !0)
|
|
1196
|
-
], 10,
|
|
1197
|
+
], 10, zs)) : m("", !0)
|
|
1197
1198
|
], 2),
|
|
1198
1199
|
v.name && e.question.cssClasses.fileSignBottom ? (t(), u("div", {
|
|
1199
1200
|
key: 1,
|
|
@@ -1205,7 +1206,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1205
1206
|
title: v.name,
|
|
1206
1207
|
download: v.name,
|
|
1207
1208
|
style: $({ width: e.question.imageWidth })
|
|
1208
|
-
}, I(v.name), 13,
|
|
1209
|
+
}, I(v.name), 13, Us)
|
|
1209
1210
|
], 2)) : m("", !0)
|
|
1210
1211
|
], 2)), [
|
|
1211
1212
|
[H, v && s(f)]
|
|
@@ -1233,13 +1234,13 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1233
1234
|
], 2);
|
|
1234
1235
|
};
|
|
1235
1236
|
}
|
|
1236
|
-
}),
|
|
1237
|
+
}), js = ["aria-label"], Qs = /* @__PURE__ */ C({
|
|
1237
1238
|
__name: "Imagepicker",
|
|
1238
1239
|
props: {
|
|
1239
1240
|
question: {}
|
|
1240
1241
|
},
|
|
1241
1242
|
setup(r) {
|
|
1242
|
-
const o = r, n =
|
|
1243
|
+
const o = r, n = S(null);
|
|
1243
1244
|
return M(o, n), (s, e) => {
|
|
1244
1245
|
const i = q("survey-imagepicker-item");
|
|
1245
1246
|
return t(), u("fieldset", {
|
|
@@ -1250,18 +1251,18 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1250
1251
|
p("legend", {
|
|
1251
1252
|
role: "radio",
|
|
1252
1253
|
"aria-label": s.question.locTitle.renderedHtml
|
|
1253
|
-
}, null, 8,
|
|
1254
|
-
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, {
|
|
1255
1256
|
key: a.value,
|
|
1256
1257
|
question: s.question,
|
|
1257
1258
|
item: a
|
|
1258
1259
|
}, null, 8, ["question", "item"]))), 128)),
|
|
1259
|
-
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", {
|
|
1260
1261
|
class: l(s.question.getColumnClass()),
|
|
1261
1262
|
key: d,
|
|
1262
1263
|
role: "presentation"
|
|
1263
1264
|
}, [
|
|
1264
|
-
(t(!0), u(w, null,
|
|
1265
|
+
(t(!0), u(w, null, T(a, (c) => (t(), y(i, {
|
|
1265
1266
|
key: c.value,
|
|
1266
1267
|
question: s.question,
|
|
1267
1268
|
item: c
|
|
@@ -1270,7 +1271,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1270
1271
|
], 2);
|
|
1271
1272
|
};
|
|
1272
1273
|
}
|
|
1273
|
-
}),
|
|
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({
|
|
1274
1275
|
__name: "ImagepickerItem",
|
|
1275
1276
|
props: {
|
|
1276
1277
|
question: {},
|
|
@@ -1301,7 +1302,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1301
1302
|
"aria-invalid": e.question.ariaInvalid,
|
|
1302
1303
|
"aria-describedby": e.question.ariaDescribedBy,
|
|
1303
1304
|
class: l(e.question.cssClasses.itemControl)
|
|
1304
|
-
}, null, 10,
|
|
1305
|
+
}, null, 10, Zs)), [
|
|
1305
1306
|
[z, e.question.value]
|
|
1306
1307
|
]) : D((t(), u("input", {
|
|
1307
1308
|
key: 1,
|
|
@@ -1316,7 +1317,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1316
1317
|
"aria-invalid": e.question.ariaInvalid,
|
|
1317
1318
|
"aria-describedby": e.question.ariaDescribedBy,
|
|
1318
1319
|
class: l(e.question.cssClasses.itemControl)
|
|
1319
|
-
}, null, 10,
|
|
1320
|
+
}, null, 10, Gs)), [
|
|
1320
1321
|
[Y, e.question.value]
|
|
1321
1322
|
]),
|
|
1322
1323
|
p("div", {
|
|
@@ -1350,7 +1351,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1350
1351
|
onError: i[3] || (i[3] = (c) => {
|
|
1351
1352
|
e.item.onErrorHandler();
|
|
1352
1353
|
})
|
|
1353
|
-
}, null, 46,
|
|
1354
|
+
}, null, 46, Xs)) : m("", !0),
|
|
1354
1355
|
b(s) && !e.item.contentNotLoaded && e.question.contentMode === "video" ? (t(), u("video", {
|
|
1355
1356
|
key: 2,
|
|
1356
1357
|
controls: "",
|
|
@@ -1365,7 +1366,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1365
1366
|
onError: i[5] || (i[5] = (c) => {
|
|
1366
1367
|
e.item.onErrorHandler();
|
|
1367
1368
|
})
|
|
1368
|
-
}, null, 46,
|
|
1369
|
+
}, null, 46, Js)) : m("", !0),
|
|
1369
1370
|
!b(s) || e.item.contentNotLoaded ? (t(), u("div", {
|
|
1370
1371
|
key: 3,
|
|
1371
1372
|
class: l(e.question.cssClasses.itemNoImage),
|
|
@@ -1395,14 +1396,14 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1395
1396
|
], 2);
|
|
1396
1397
|
};
|
|
1397
1398
|
}
|
|
1398
|
-
}),
|
|
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({
|
|
1399
1400
|
__name: "Comment",
|
|
1400
1401
|
props: {
|
|
1401
1402
|
question: {},
|
|
1402
1403
|
css: {}
|
|
1403
1404
|
},
|
|
1404
1405
|
setup(r) {
|
|
1405
|
-
const o = r, n =
|
|
1406
|
+
const o = r, n = S(null);
|
|
1406
1407
|
M(o, n);
|
|
1407
1408
|
const s = (e) => {
|
|
1408
1409
|
const i = o.question;
|
|
@@ -1436,7 +1437,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1436
1437
|
"aria-invalid": e.question.a11y_input_ariaInvalid,
|
|
1437
1438
|
"aria-describedby": e.question.a11y_input_ariaDescribedBy,
|
|
1438
1439
|
style: $({ resize: e.question.resizeStyle })
|
|
1439
|
-
}, null, 46,
|
|
1440
|
+
}, null, 46, _s)) : !e.question.isReadOnlyRenderDiv() && e.question.getMaxLength() ? (t(), u("div", {
|
|
1440
1441
|
key: 1,
|
|
1441
1442
|
ref_key: "root",
|
|
1442
1443
|
ref: n
|
|
@@ -1464,7 +1465,7 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1464
1465
|
"aria-invalid": e.question.a11y_input_ariaInvalid,
|
|
1465
1466
|
"aria-describedby": e.question.a11y_input_ariaDescribedBy,
|
|
1466
1467
|
style: $({ resize: e.question.resizeStyle })
|
|
1467
|
-
}, null, 46,
|
|
1468
|
+
}, null, 46, xs),
|
|
1468
1469
|
h(a, {
|
|
1469
1470
|
counter: e.question.characterCounter,
|
|
1470
1471
|
remainingCharacterCounter: e.question.cssClasses.remainingCharacterCounter
|
|
@@ -1476,13 +1477,13 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1476
1477
|
}, I(e.question.value), 513));
|
|
1477
1478
|
};
|
|
1478
1479
|
}
|
|
1479
|
-
}),
|
|
1480
|
+
}), sn = /* @__PURE__ */ C({
|
|
1480
1481
|
__name: "Dropdown",
|
|
1481
1482
|
props: {
|
|
1482
1483
|
question: {}
|
|
1483
1484
|
},
|
|
1484
1485
|
setup(r) {
|
|
1485
|
-
const o = r, n =
|
|
1486
|
+
const o = r, n = S(null);
|
|
1486
1487
|
return M(o, n), (s, e) => {
|
|
1487
1488
|
const i = q("sv-dropdown"), a = q("survey-other-choice");
|
|
1488
1489
|
return t(), u("div", {
|
|
@@ -1498,22 +1499,22 @@ const Ae = /* @__PURE__ */ C({
|
|
|
1498
1499
|
], 2);
|
|
1499
1500
|
};
|
|
1500
1501
|
}
|
|
1501
|
-
}),
|
|
1502
|
+
}), nn = ["id", "autocomplete", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "required"], on = {
|
|
1502
1503
|
key: 0,
|
|
1503
1504
|
value: ""
|
|
1504
|
-
},
|
|
1505
|
-
|
|
1505
|
+
}, tn = ["id"];
|
|
1506
|
+
X.Instance.registerRenderer(
|
|
1506
1507
|
"dropdown",
|
|
1507
1508
|
"select",
|
|
1508
1509
|
"sv-dropdown-select"
|
|
1509
1510
|
);
|
|
1510
|
-
const
|
|
1511
|
+
const ln = /* @__PURE__ */ C({
|
|
1511
1512
|
__name: "DropdownSelect",
|
|
1512
1513
|
props: {
|
|
1513
1514
|
question: {}
|
|
1514
1515
|
},
|
|
1515
1516
|
setup(r) {
|
|
1516
|
-
const o = r, n =
|
|
1517
|
+
const o = r, n = S(null);
|
|
1517
1518
|
M(o, n);
|
|
1518
1519
|
const s = (a) => {
|
|
1519
1520
|
o.question.onClick(a);
|
|
@@ -1542,7 +1543,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1542
1543
|
disabled: "",
|
|
1543
1544
|
id: a.question.inputId,
|
|
1544
1545
|
class: l(a.question.getControlClass())
|
|
1545
|
-
}, I(a.question.readOnlyText), 11,
|
|
1546
|
+
}, I(a.question.readOnlyText), 11, tn)) : D((t(), u("select", {
|
|
1546
1547
|
key: 0,
|
|
1547
1548
|
id: a.question.inputId,
|
|
1548
1549
|
"onUpdate:modelValue": d[0] || (d[0] = (g) => i.value = g),
|
|
@@ -1556,13 +1557,13 @@ const tn = /* @__PURE__ */ C({
|
|
|
1556
1557
|
"aria-describedby": a.question.ariaDescribedBy,
|
|
1557
1558
|
required: a.question.isRequired
|
|
1558
1559
|
}, [
|
|
1559
|
-
a.question.allowClear ? (t(), u("option",
|
|
1560
|
-
(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, {
|
|
1561
1562
|
item: g,
|
|
1562
1563
|
key: g.id
|
|
1563
1564
|
}, null, 8, ["item"]))), 128))
|
|
1564
|
-
], 42,
|
|
1565
|
-
[
|
|
1565
|
+
], 42, nn)), [
|
|
1566
|
+
[pe, i.value]
|
|
1566
1567
|
]),
|
|
1567
1568
|
a.question.cssClasses.chevronButtonIconId ? (t(), u("div", {
|
|
1568
1569
|
key: 2,
|
|
@@ -1582,7 +1583,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1582
1583
|
], 2);
|
|
1583
1584
|
};
|
|
1584
1585
|
}
|
|
1585
|
-
}),
|
|
1586
|
+
}), rn = ["value", "disabled"], an = /* @__PURE__ */ C({
|
|
1586
1587
|
__name: "OptionItem",
|
|
1587
1588
|
props: {
|
|
1588
1589
|
item: {}
|
|
@@ -1592,17 +1593,17 @@ const tn = /* @__PURE__ */ C({
|
|
|
1592
1593
|
return B(() => o.item), (s, e) => (t(), u("option", {
|
|
1593
1594
|
value: s.item.value,
|
|
1594
1595
|
disabled: !s.item.isEnabled
|
|
1595
|
-
}, I(b(n)), 9,
|
|
1596
|
+
}, I(b(n)), 9, rn));
|
|
1596
1597
|
}
|
|
1597
|
-
}),
|
|
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({
|
|
1598
1599
|
__name: "Dropdown",
|
|
1599
1600
|
props: {
|
|
1600
1601
|
question: {}
|
|
1601
1602
|
},
|
|
1602
1603
|
setup(r) {
|
|
1603
|
-
const o = r, n =
|
|
1604
|
+
const o = r, n = S(null), s = R(() => {
|
|
1604
1605
|
const g = o.question;
|
|
1605
|
-
return g.dropdownListModel || (g.dropdownListModel = new
|
|
1606
|
+
return g.dropdownListModel || (g.dropdownListModel = new fe(g)), o.question.dropdownListModel;
|
|
1606
1607
|
}), e = (g) => {
|
|
1607
1608
|
var k;
|
|
1608
1609
|
(k = s.value) == null || k.onClick(g);
|
|
@@ -1615,7 +1616,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1615
1616
|
}, d = () => {
|
|
1616
1617
|
if (n.value) {
|
|
1617
1618
|
const g = n.value, k = s.value.inputStringRendered;
|
|
1618
|
-
|
|
1619
|
+
Ie.isTwoValueEquals(k, g.value) || (g.value = s.value.inputStringRendered);
|
|
1619
1620
|
}
|
|
1620
1621
|
}, c = (g) => {
|
|
1621
1622
|
var k;
|
|
@@ -1626,7 +1627,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1626
1627
|
}, f = (g) => {
|
|
1627
1628
|
s.value.inputStringRendered = g.target.value;
|
|
1628
1629
|
};
|
|
1629
|
-
return B(() => s.value),
|
|
1630
|
+
return B(() => s.value), K(d), E(d), (g, k) => {
|
|
1630
1631
|
const P = q("survey-string"), L = q("sv-svg-icon"), A = q("sv-popup");
|
|
1631
1632
|
return t(), u("div", {
|
|
1632
1633
|
class: l(g.question.cssClasses.selectWrapper),
|
|
@@ -1667,7 +1668,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1667
1668
|
key: 1,
|
|
1668
1669
|
class: l(g.question.cssClasses.hintSuffix)
|
|
1669
1670
|
}, [
|
|
1670
|
-
p("span",
|
|
1671
|
+
p("span", dn, I(s.value.inputStringRendered), 1),
|
|
1671
1672
|
p("span", null, I(s.value.hintStringSuffix), 1)
|
|
1672
1673
|
], 2)) : m("", !0),
|
|
1673
1674
|
g.question.showInputFieldComponent ? (t(), y(N(g.question.inputFieldComponentName), {
|
|
@@ -1695,7 +1696,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1695
1696
|
onInput: f,
|
|
1696
1697
|
onBlur: c,
|
|
1697
1698
|
onFocus: v
|
|
1698
|
-
}, null, 42,
|
|
1699
|
+
}, null, 42, mn)
|
|
1699
1700
|
], 2),
|
|
1700
1701
|
g.question.allowClear && g.question.cssClasses.cleanButtonIconId ? D((t(), u("div", {
|
|
1701
1702
|
key: 1,
|
|
@@ -1711,7 +1712,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1711
1712
|
], 2)), [
|
|
1712
1713
|
[H, !g.question.isEmpty()]
|
|
1713
1714
|
]) : m("", !0)
|
|
1714
|
-
], 42,
|
|
1715
|
+
], 42, un)),
|
|
1715
1716
|
g.question.isReadOnly ? (t(), u("div", {
|
|
1716
1717
|
key: 2,
|
|
1717
1718
|
disabled: "",
|
|
@@ -1723,7 +1724,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1723
1724
|
locString: g.question.selectedItemLocText
|
|
1724
1725
|
}, null, 8, ["locString"])) : m("", !0),
|
|
1725
1726
|
p("div", null, I(g.question.readOnlyText), 1)
|
|
1726
|
-
], 10,
|
|
1727
|
+
], 10, cn)) : (t(), y(A, {
|
|
1727
1728
|
key: 1,
|
|
1728
1729
|
model: g.question.dropdownListModel.popupModel
|
|
1729
1730
|
}, null, 8, ["model"])),
|
|
@@ -1740,13 +1741,13 @@ const tn = /* @__PURE__ */ C({
|
|
|
1740
1741
|
], 2);
|
|
1741
1742
|
};
|
|
1742
1743
|
}
|
|
1743
|
-
}),
|
|
1744
|
+
}), vn = /* @__PURE__ */ C({
|
|
1744
1745
|
__name: "Tagbox",
|
|
1745
1746
|
props: {
|
|
1746
1747
|
question: {}
|
|
1747
1748
|
},
|
|
1748
1749
|
setup(r) {
|
|
1749
|
-
const o = r, n =
|
|
1750
|
+
const o = r, n = S(null);
|
|
1750
1751
|
return M(o, n), (s, e) => {
|
|
1751
1752
|
const i = q("sv-tagbox"), a = q("survey-other-choice");
|
|
1752
1753
|
return t(), u("div", {
|
|
@@ -1762,7 +1763,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1762
1763
|
], 2);
|
|
1763
1764
|
};
|
|
1764
1765
|
}
|
|
1765
|
-
}),
|
|
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({
|
|
1766
1767
|
__name: "Tagbox",
|
|
1767
1768
|
props: {
|
|
1768
1769
|
question: {}
|
|
@@ -1770,7 +1771,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1770
1771
|
setup(r) {
|
|
1771
1772
|
const o = r, n = R(() => {
|
|
1772
1773
|
const d = o.question;
|
|
1773
|
-
return d.dropdownListModel || (d.dropdownListModel = new
|
|
1774
|
+
return d.dropdownListModel || (d.dropdownListModel = new we(d)), o.question.dropdownListModel;
|
|
1774
1775
|
}), s = (d) => {
|
|
1775
1776
|
var c;
|
|
1776
1777
|
(c = n.value) == null || c.onClick(d);
|
|
@@ -1811,7 +1812,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1811
1812
|
p("div", {
|
|
1812
1813
|
class: l(d.question.cssClasses.controlValue)
|
|
1813
1814
|
}, [
|
|
1814
|
-
(t(!0), u(w, null,
|
|
1815
|
+
(t(!0), u(w, null, T(d.question.selectedChoices, (P, L) => (t(), y(v, {
|
|
1815
1816
|
item: P,
|
|
1816
1817
|
question: d.question,
|
|
1817
1818
|
key: "item" + L
|
|
@@ -1835,7 +1836,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1835
1836
|
], 2)), [
|
|
1836
1837
|
[H, !d.question.isEmpty()]
|
|
1837
1838
|
]) : m("", !0)
|
|
1838
|
-
], 42,
|
|
1839
|
+
], 42, qn)),
|
|
1839
1840
|
d.question.isReadOnly ? (t(), u("div", {
|
|
1840
1841
|
key: 2,
|
|
1841
1842
|
disabled: "",
|
|
@@ -1843,7 +1844,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1843
1844
|
class: l(d.question.getControlClass())
|
|
1844
1845
|
}, [
|
|
1845
1846
|
p("div", null, I(d.question.readOnlyText), 1)
|
|
1846
|
-
], 10,
|
|
1847
|
+
], 10, yn)) : (t(), y(k, {
|
|
1847
1848
|
key: 1,
|
|
1848
1849
|
model: n.value.popupModel
|
|
1849
1850
|
}, null, 8, ["model"])),
|
|
@@ -1860,7 +1861,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1860
1861
|
], 2);
|
|
1861
1862
|
};
|
|
1862
1863
|
}
|
|
1863
|
-
}),
|
|
1864
|
+
}), Cn = { style: { visibility: "hidden" } }, hn = ["placeholder", "disabled", "inputmode", "role", "aria-label", "aria-expanded", "aria-controls", "aria-activedescendant", "id", "readonly", "size"], bn = /* @__PURE__ */ C({
|
|
1864
1865
|
__name: "TagboxFilter",
|
|
1865
1866
|
props: {
|
|
1866
1867
|
question: {},
|
|
@@ -1899,7 +1900,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1899
1900
|
key: 1,
|
|
1900
1901
|
class: l(a.question.cssClasses.hintSuffix)
|
|
1901
1902
|
}, [
|
|
1902
|
-
p("span",
|
|
1903
|
+
p("span", Cn, I(a.model.inputStringRendered), 1),
|
|
1903
1904
|
p("span", null, I(a.model.hintStringSuffix), 1)
|
|
1904
1905
|
], 2)) : m("", !0),
|
|
1905
1906
|
D(p("input", {
|
|
@@ -1922,14 +1923,14 @@ const tn = /* @__PURE__ */ C({
|
|
|
1922
1923
|
onKeydown: s,
|
|
1923
1924
|
onBlur: e,
|
|
1924
1925
|
onFocus: i
|
|
1925
|
-
}, null, 42,
|
|
1926
|
-
[
|
|
1926
|
+
}, null, 42, hn), [
|
|
1927
|
+
[ve, a.model.inputStringRendered]
|
|
1927
1928
|
])
|
|
1928
1929
|
], 2)
|
|
1929
1930
|
], 2);
|
|
1930
1931
|
};
|
|
1931
1932
|
}
|
|
1932
|
-
}),
|
|
1933
|
+
}), kn = { class: "sv-tagbox__item-text" }, fn = /* @__PURE__ */ C({
|
|
1933
1934
|
__name: "TagboxItem",
|
|
1934
1935
|
props: {
|
|
1935
1936
|
question: {},
|
|
@@ -1945,7 +1946,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1945
1946
|
class: "sv-tagbox__item",
|
|
1946
1947
|
key: s.item.key
|
|
1947
1948
|
}, [
|
|
1948
|
-
p("div",
|
|
1949
|
+
p("div", kn, [
|
|
1949
1950
|
h(i, {
|
|
1950
1951
|
locString: s.item.locText
|
|
1951
1952
|
}, null, 8, ["locString"])
|
|
@@ -1963,13 +1964,13 @@ const tn = /* @__PURE__ */ C({
|
|
|
1963
1964
|
]);
|
|
1964
1965
|
};
|
|
1965
1966
|
}
|
|
1966
|
-
}),
|
|
1967
|
+
}), In = /* @__PURE__ */ C({
|
|
1967
1968
|
__name: "Ranking",
|
|
1968
1969
|
props: {
|
|
1969
1970
|
question: {}
|
|
1970
1971
|
},
|
|
1971
1972
|
setup(r) {
|
|
1972
|
-
const o = r, n =
|
|
1973
|
+
const o = r, n = S(null);
|
|
1973
1974
|
M(o, n);
|
|
1974
1975
|
const s = (e) => o.question.getNumberByIndex(e);
|
|
1975
1976
|
return (e, i) => {
|
|
@@ -1979,7 +1980,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1979
1980
|
ref_key: "root",
|
|
1980
1981
|
ref: n
|
|
1981
1982
|
}, [
|
|
1982
|
-
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, {
|
|
1983
1984
|
key: d.value + "-" + c + "-item",
|
|
1984
1985
|
class: l(e.question.getItemClass(d)),
|
|
1985
1986
|
text: d.locText,
|
|
@@ -1994,7 +1995,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1994
1995
|
class: l(e.question.getContainerClasses("from")),
|
|
1995
1996
|
"data-ranking": "from-container"
|
|
1996
1997
|
}, [
|
|
1997
|
-
(t(!0), u(w, null,
|
|
1998
|
+
(t(!0), u(w, null, T(e.question.unRankingChoices, (d, c) => (t(), y(a, {
|
|
1998
1999
|
key: d.value + "-" + c + "-item",
|
|
1999
2000
|
class: l(e.question.getItemClass(d)),
|
|
2000
2001
|
text: d.locText,
|
|
@@ -2019,7 +2020,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2019
2020
|
class: l(e.question.getContainerClasses("to")),
|
|
2020
2021
|
"data-ranking": "to-container"
|
|
2021
2022
|
}, [
|
|
2022
|
-
(t(!0), u(w, null,
|
|
2023
|
+
(t(!0), u(w, null, T(e.question.rankingChoices, (d, c) => (t(), y(a, {
|
|
2023
2024
|
key: d.value + "-" + c + "-item",
|
|
2024
2025
|
class: l(e.question.getItemClass(d)),
|
|
2025
2026
|
text: d.locText,
|
|
@@ -2037,15 +2038,15 @@ const tn = /* @__PURE__ */ C({
|
|
|
2037
2038
|
], 2);
|
|
2038
2039
|
};
|
|
2039
2040
|
}
|
|
2040
|
-
}),
|
|
2041
|
+
}), wn = ["tabindex", "data-sv-drop-target-ranking-item"], Sn = {
|
|
2041
2042
|
tabindex: "-1",
|
|
2042
2043
|
style: { outline: "none" }
|
|
2043
|
-
}, 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 = [
|
|
2044
2045
|
Tn
|
|
2045
|
-
],
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
],
|
|
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({
|
|
2049
2050
|
__name: "RankingItem",
|
|
2050
2051
|
props: {
|
|
2051
2052
|
index: {},
|
|
@@ -2077,7 +2078,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2077
2078
|
);
|
|
2078
2079
|
})
|
|
2079
2080
|
}, [
|
|
2080
|
-
p("div",
|
|
2081
|
+
p("div", Sn, [
|
|
2081
2082
|
p("div", {
|
|
2082
2083
|
class: l(n.cssClasses.itemGhostNode)
|
|
2083
2084
|
}, null, 2),
|
|
@@ -2093,14 +2094,14 @@ const tn = /* @__PURE__ */ C({
|
|
|
2093
2094
|
viewBox: "0 0 10 16",
|
|
2094
2095
|
class: l(n.question.getIconHoverCss()),
|
|
2095
2096
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2096
|
-
},
|
|
2097
|
+
}, Rn, 2)),
|
|
2097
2098
|
(t(), u("svg", {
|
|
2098
2099
|
width: "10",
|
|
2099
2100
|
height: "24",
|
|
2100
2101
|
viewBox: "0 0 10 24",
|
|
2101
2102
|
class: l(n.question.getIconFocusCss()),
|
|
2102
2103
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2103
|
-
},
|
|
2104
|
+
}, Ln, 2))
|
|
2104
2105
|
], 2),
|
|
2105
2106
|
p("div", {
|
|
2106
2107
|
class: l(n.question.getItemIndexClasses(n.item))
|
|
@@ -2112,19 +2113,19 @@ const tn = /* @__PURE__ */ C({
|
|
|
2112
2113
|
], 2)
|
|
2113
2114
|
], 2)
|
|
2114
2115
|
])
|
|
2115
|
-
], 42,
|
|
2116
|
+
], 42, wn);
|
|
2116
2117
|
};
|
|
2117
2118
|
}
|
|
2118
|
-
}),
|
|
2119
|
+
}), Pn = { role: "radiogroup" }, Mn = /* @__PURE__ */ p("legend", {
|
|
2119
2120
|
role: "presentation",
|
|
2120
2121
|
class: "sv-hidden"
|
|
2121
|
-
}, null, -1),
|
|
2122
|
+
}, null, -1), Nn = /* @__PURE__ */ C({
|
|
2122
2123
|
__name: "Rating",
|
|
2123
2124
|
props: {
|
|
2124
2125
|
question: {}
|
|
2125
2126
|
},
|
|
2126
2127
|
setup(r) {
|
|
2127
|
-
const o = r, n =
|
|
2128
|
+
const o = r, n = S(null);
|
|
2128
2129
|
M(o, n);
|
|
2129
2130
|
const s = (e) => o.question.getInputId(e);
|
|
2130
2131
|
return (e, i) => {
|
|
@@ -2134,8 +2135,8 @@ const tn = /* @__PURE__ */ C({
|
|
|
2134
2135
|
ref_key: "root",
|
|
2135
2136
|
ref: n
|
|
2136
2137
|
}, [
|
|
2137
|
-
p("fieldset",
|
|
2138
|
-
|
|
2138
|
+
p("fieldset", Pn, [
|
|
2139
|
+
Mn,
|
|
2139
2140
|
e.question.hasMinLabel ? (t(), u("span", {
|
|
2140
2141
|
key: 0,
|
|
2141
2142
|
class: l(e.question.cssClasses.minText)
|
|
@@ -2144,7 +2145,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2144
2145
|
locString: e.question.locMinRateDescription
|
|
2145
2146
|
}, null, 8, ["locString"])
|
|
2146
2147
|
], 2)) : m("", !0),
|
|
2147
|
-
(t(!0), u(w, null,
|
|
2148
|
+
(t(!0), u(w, null, T(e.question.renderedRateItems, (d, c) => (t(), y(N(e.question.itemComponentName), {
|
|
2148
2149
|
key: s(c),
|
|
2149
2150
|
item: d,
|
|
2150
2151
|
index: c,
|
|
@@ -2162,7 +2163,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2162
2163
|
], 2);
|
|
2163
2164
|
};
|
|
2164
2165
|
}
|
|
2165
|
-
}),
|
|
2166
|
+
}), Hn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], En = /* @__PURE__ */ C({
|
|
2166
2167
|
__name: "RatingItem",
|
|
2167
2168
|
props: {
|
|
2168
2169
|
question: {},
|
|
@@ -2190,7 +2191,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2190
2191
|
"aria-label": n.question.ariaLabel,
|
|
2191
2192
|
"aria-invalid": n.question.ariaInvalid,
|
|
2192
2193
|
"aria-describedby": n.question.ariaDescribedBy
|
|
2193
|
-
}, null, 8,
|
|
2194
|
+
}, null, 8, Hn),
|
|
2194
2195
|
p("span", {
|
|
2195
2196
|
class: l(n.question.cssClasses.itemText)
|
|
2196
2197
|
}, [
|
|
@@ -2201,7 +2202,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2201
2202
|
], 34);
|
|
2202
2203
|
};
|
|
2203
2204
|
}
|
|
2204
|
-
}),
|
|
2205
|
+
}), An = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], On = /* @__PURE__ */ C({
|
|
2205
2206
|
__name: "RatingItemSmiley",
|
|
2206
2207
|
props: {
|
|
2207
2208
|
question: {},
|
|
@@ -2232,7 +2233,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2232
2233
|
"aria-label": n.question.ariaLabel,
|
|
2233
2234
|
"aria-invalid": n.question.ariaInvalid,
|
|
2234
2235
|
"aria-describedby": n.question.ariaDescribedBy
|
|
2235
|
-
}, null, 8,
|
|
2236
|
+
}, null, 8, An),
|
|
2236
2237
|
h(e, {
|
|
2237
2238
|
iconName: n.question.getItemSmileyIconName(n.item.itemValue),
|
|
2238
2239
|
size: "auto",
|
|
@@ -2241,7 +2242,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2241
2242
|
], 38);
|
|
2242
2243
|
};
|
|
2243
2244
|
}
|
|
2244
|
-
}),
|
|
2245
|
+
}), Vn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Fn = /* @__PURE__ */ C({
|
|
2245
2246
|
__name: "RatingItemStar",
|
|
2246
2247
|
props: {
|
|
2247
2248
|
question: {},
|
|
@@ -2271,7 +2272,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2271
2272
|
"aria-label": n.question.ariaLabel,
|
|
2272
2273
|
"aria-invalid": n.question.ariaInvalid,
|
|
2273
2274
|
"aria-describedby": n.question.ariaDescribedBy
|
|
2274
|
-
}, null, 8,
|
|
2275
|
+
}, null, 8, Vn),
|
|
2275
2276
|
h(e, {
|
|
2276
2277
|
class: l("sv-star"),
|
|
2277
2278
|
iconName: n.question.itemStarIcon,
|
|
@@ -2288,18 +2289,18 @@ const tn = /* @__PURE__ */ C({
|
|
|
2288
2289
|
};
|
|
2289
2290
|
}
|
|
2290
2291
|
});
|
|
2291
|
-
|
|
2292
|
+
X.Instance.registerRenderer(
|
|
2292
2293
|
"rating",
|
|
2293
2294
|
"dropdown",
|
|
2294
2295
|
"sv-rating-dropdown"
|
|
2295
2296
|
);
|
|
2296
|
-
const
|
|
2297
|
+
const Wn = /* @__PURE__ */ C({
|
|
2297
2298
|
__name: "RatingDropdown",
|
|
2298
2299
|
props: {
|
|
2299
2300
|
question: {}
|
|
2300
2301
|
},
|
|
2301
2302
|
setup(r) {
|
|
2302
|
-
const o = r, n =
|
|
2303
|
+
const o = r, n = S(null);
|
|
2303
2304
|
return M(o, n), (s, e) => {
|
|
2304
2305
|
const i = q("sv-dropdown");
|
|
2305
2306
|
return t(), u("div", {
|
|
@@ -2311,13 +2312,13 @@ const Fn = /* @__PURE__ */ C({
|
|
|
2311
2312
|
], 2);
|
|
2312
2313
|
};
|
|
2313
2314
|
}
|
|
2314
|
-
}),
|
|
2315
|
+
}), zn = ["name", "value", "id", ".indeterminate", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Un = /* @__PURE__ */ C({
|
|
2315
2316
|
__name: "BooleanSwitch",
|
|
2316
2317
|
props: {
|
|
2317
2318
|
question: {}
|
|
2318
2319
|
},
|
|
2319
2320
|
setup(r) {
|
|
2320
|
-
const o = r, n =
|
|
2321
|
+
const o = r, n = S(null);
|
|
2321
2322
|
M(o, n);
|
|
2322
2323
|
const s = (i, a) => {
|
|
2323
2324
|
o.question.onLabelClick(i, a);
|
|
@@ -2347,7 +2348,7 @@ const Fn = /* @__PURE__ */ C({
|
|
|
2347
2348
|
"aria-label": i.question.ariaLabel,
|
|
2348
2349
|
"aria-invalid": i.question.ariaInvalid,
|
|
2349
2350
|
"aria-describedby": i.question.ariaDescribedBy
|
|
2350
|
-
}, null, 10,
|
|
2351
|
+
}, null, 10, zn), [
|
|
2351
2352
|
[z, i.question.booleanValue]
|
|
2352
2353
|
]),
|
|
2353
2354
|
p("div", {
|
|
@@ -2396,18 +2397,18 @@ const Fn = /* @__PURE__ */ C({
|
|
|
2396
2397
|
};
|
|
2397
2398
|
}
|
|
2398
2399
|
});
|
|
2399
|
-
|
|
2400
|
+
X.Instance.registerRenderer(
|
|
2400
2401
|
"boolean",
|
|
2401
2402
|
"radio",
|
|
2402
2403
|
"sv-boolean-radio"
|
|
2403
2404
|
);
|
|
2404
|
-
const
|
|
2405
|
+
const Kn = /* @__PURE__ */ C({
|
|
2405
2406
|
__name: "BooleanRadio",
|
|
2406
2407
|
props: {
|
|
2407
2408
|
question: {}
|
|
2408
2409
|
},
|
|
2409
2410
|
setup(r) {
|
|
2410
|
-
const o = r, n =
|
|
2411
|
+
const o = r, n = S(null);
|
|
2411
2412
|
return M(o, n), (s, e) => {
|
|
2412
2413
|
const i = q("sv-boolean-radio-item");
|
|
2413
2414
|
return t(), u("div", {
|
|
@@ -2435,7 +2436,7 @@ const Un = /* @__PURE__ */ C({
|
|
|
2435
2436
|
], 2);
|
|
2436
2437
|
};
|
|
2437
2438
|
}
|
|
2438
|
-
}),
|
|
2439
|
+
}), jn = ["name", "value", "checked", "aria-describedby", "disabled"], Qn = ["xlink:href"], Zn = /* @__PURE__ */ C({
|
|
2439
2440
|
__name: "BooleanRadioItem",
|
|
2440
2441
|
props: {
|
|
2441
2442
|
question: {},
|
|
@@ -2465,7 +2466,7 @@ const Un = /* @__PURE__ */ C({
|
|
|
2465
2466
|
disabled: s.question.isInputReadOnly,
|
|
2466
2467
|
class: l(s.question.cssClasses.itemRadioControl),
|
|
2467
2468
|
onChange: n
|
|
2468
|
-
}, null, 42,
|
|
2469
|
+
}, null, 42, jn),
|
|
2469
2470
|
s.question.cssClasses.materialRadioDecorator ? (t(), u("span", {
|
|
2470
2471
|
key: 0,
|
|
2471
2472
|
class: l(s.question.cssClasses.materialRadioDecorator)
|
|
@@ -2476,7 +2477,7 @@ const Un = /* @__PURE__ */ C({
|
|
|
2476
2477
|
}, [
|
|
2477
2478
|
p("use", {
|
|
2478
2479
|
"xlink:href": s.question.itemSvgIcon
|
|
2479
|
-
}, null, 8,
|
|
2480
|
+
}, null, 8, Qn)
|
|
2480
2481
|
], 2)) : m("", !0)
|
|
2481
2482
|
], 2)) : m("", !0),
|
|
2482
2483
|
p("span", {
|
|
@@ -2488,20 +2489,20 @@ const Un = /* @__PURE__ */ C({
|
|
|
2488
2489
|
], 2);
|
|
2489
2490
|
};
|
|
2490
2491
|
}
|
|
2491
|
-
}),
|
|
2492
|
-
|
|
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(
|
|
2493
2494
|
"boolean",
|
|
2494
2495
|
"checkbox",
|
|
2495
2496
|
"sv-boolean-checkbox"
|
|
2496
2497
|
);
|
|
2497
|
-
const
|
|
2498
|
+
const _n = /* @__PURE__ */ C({
|
|
2498
2499
|
__name: "BooleanCheckbox",
|
|
2499
2500
|
props: {
|
|
2500
2501
|
question: {},
|
|
2501
2502
|
css: {}
|
|
2502
2503
|
},
|
|
2503
2504
|
setup(r) {
|
|
2504
|
-
const o = r, n =
|
|
2505
|
+
const o = r, n = S(null);
|
|
2505
2506
|
return M(o, n), (s, e) => {
|
|
2506
2507
|
var c;
|
|
2507
2508
|
const i = q("survey-element-title-content"), a = q("sv-title-actions"), d = q("survey-string");
|
|
@@ -2529,7 +2530,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2529
2530
|
"aria-label": s.question.ariaLabel,
|
|
2530
2531
|
"aria-invalid": s.question.ariaInvalid,
|
|
2531
2532
|
"aria-describedby": s.question.ariaDescribedBy
|
|
2532
|
-
}, null, 10,
|
|
2533
|
+
}, null, 10, Gn), [
|
|
2533
2534
|
[z, s.question.booleanValue]
|
|
2534
2535
|
]),
|
|
2535
2536
|
p("span", {
|
|
@@ -2541,9 +2542,9 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2541
2542
|
}, [
|
|
2542
2543
|
p("use", {
|
|
2543
2544
|
"xlink:href": s.question.svgIcon
|
|
2544
|
-
}, null, 8,
|
|
2545
|
+
}, null, 8, Xn)
|
|
2545
2546
|
], 2)) : m("", !0),
|
|
2546
|
-
|
|
2547
|
+
Jn
|
|
2547
2548
|
], 2),
|
|
2548
2549
|
s.question.isLabelRendered ? (t(), u("span", {
|
|
2549
2550
|
key: 0,
|
|
@@ -2560,7 +2561,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2560
2561
|
element: s.question,
|
|
2561
2562
|
css: s.css
|
|
2562
2563
|
}, null, 8, ["element", "css"])) : m("", !0)
|
|
2563
|
-
], 10,
|
|
2564
|
+
], 10, Yn)) : m("", !0)
|
|
2564
2565
|
], 2),
|
|
2565
2566
|
s.question.canRenderLabelDescription ? (t(), u("div", {
|
|
2566
2567
|
key: 0,
|
|
@@ -2574,13 +2575,13 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2574
2575
|
], 2);
|
|
2575
2576
|
};
|
|
2576
2577
|
}
|
|
2577
|
-
}),
|
|
2578
|
+
}), xn = /* @__PURE__ */ C({
|
|
2578
2579
|
__name: "Multipletext",
|
|
2579
2580
|
props: {
|
|
2580
2581
|
question: {}
|
|
2581
2582
|
},
|
|
2582
2583
|
setup(r) {
|
|
2583
|
-
const o = r, n =
|
|
2584
|
+
const o = r, n = S(null);
|
|
2584
2585
|
return M(o, n), (s, e) => {
|
|
2585
2586
|
const i = q("survey-multipletext-item");
|
|
2586
2587
|
return t(), u("table", {
|
|
@@ -2589,11 +2590,11 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2589
2590
|
ref: n
|
|
2590
2591
|
}, [
|
|
2591
2592
|
p("tbody", null, [
|
|
2592
|
-
(t(!0), u(w, null,
|
|
2593
|
+
(t(!0), u(w, null, T(s.question.getRows(), (a, d) => (t(), u("tr", {
|
|
2593
2594
|
key: s.question.inputId + "rowkey" + d,
|
|
2594
2595
|
class: l(s.question.cssClasses.row)
|
|
2595
2596
|
}, [
|
|
2596
|
-
(t(!0), u(w, null,
|
|
2597
|
+
(t(!0), u(w, null, T(a, (c) => (t(), u("td", {
|
|
2597
2598
|
key: "item" + c.editor.id,
|
|
2598
2599
|
class: l(s.question.cssClasses.cell)
|
|
2599
2600
|
}, [
|
|
@@ -2607,7 +2608,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2607
2608
|
], 2);
|
|
2608
2609
|
};
|
|
2609
2610
|
}
|
|
2610
|
-
}),
|
|
2611
|
+
}), eo = /* @__PURE__ */ C({
|
|
2611
2612
|
__name: "MultipletextItem",
|
|
2612
2613
|
props: {
|
|
2613
2614
|
question: {},
|
|
@@ -2661,13 +2662,13 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2661
2662
|
], 2);
|
|
2662
2663
|
};
|
|
2663
2664
|
}
|
|
2664
|
-
}),
|
|
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({
|
|
2665
2666
|
__name: "Matrix",
|
|
2666
2667
|
props: {
|
|
2667
2668
|
question: {}
|
|
2668
2669
|
},
|
|
2669
2670
|
setup(r) {
|
|
2670
|
-
const o = r, n =
|
|
2671
|
+
const o = r, n = S(null), s = F();
|
|
2671
2672
|
M(
|
|
2672
2673
|
o,
|
|
2673
2674
|
n,
|
|
@@ -2694,14 +2695,14 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2694
2695
|
p("fieldset", null, [
|
|
2695
2696
|
p("legend", {
|
|
2696
2697
|
"aria-label": i.question.locTitle.renderedHtml
|
|
2697
|
-
}, null, 8,
|
|
2698
|
+
}, null, 8, so),
|
|
2698
2699
|
p("table", {
|
|
2699
2700
|
class: l(i.question.getTableCss())
|
|
2700
2701
|
}, [
|
|
2701
|
-
i.question.showHeader ? (t(), u("thead",
|
|
2702
|
+
i.question.showHeader ? (t(), u("thead", no, [
|
|
2702
2703
|
p("tr", null, [
|
|
2703
|
-
i.question.hasRows ? (t(), u("td",
|
|
2704
|
-
(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", {
|
|
2705
2706
|
key: v,
|
|
2706
2707
|
class: l(i.question.cssClasses.headerCell),
|
|
2707
2708
|
style: $({
|
|
@@ -2716,7 +2717,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2716
2717
|
])
|
|
2717
2718
|
])) : m("", !0),
|
|
2718
2719
|
p("tbody", null, [
|
|
2719
|
-
(t(!0), u(w, null,
|
|
2720
|
+
(t(!0), u(w, null, T(s.value, (c, v) => (t(), u("tr", {
|
|
2720
2721
|
key: "row_" + c.name + "_" + v,
|
|
2721
2722
|
class: l(c.rowClasses || void 0)
|
|
2722
2723
|
}, [
|
|
@@ -2733,7 +2734,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2733
2734
|
], 6), [
|
|
2734
2735
|
[H, i.question.hasRows]
|
|
2735
2736
|
]),
|
|
2736
|
-
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", {
|
|
2737
2738
|
key: g,
|
|
2738
2739
|
class: l(i.question.getItemClass(c, f)),
|
|
2739
2740
|
onClick: (k) => e(c, f)
|
|
@@ -2741,8 +2742,8 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2741
2742
|
h(d, {
|
|
2742
2743
|
locString: i.question.getCellDisplayLocText(c.name, f)
|
|
2743
2744
|
}, null, 8, ["locString"])
|
|
2744
|
-
], 10,
|
|
2745
|
-
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", {
|
|
2746
2747
|
key: g,
|
|
2747
2748
|
"data-responsive-title": f.locText.renderedHtml,
|
|
2748
2749
|
class: l(i.question.cssClasses.cell),
|
|
@@ -2764,7 +2765,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2764
2765
|
"aria-label": f.locText.renderedHtml,
|
|
2765
2766
|
"aria-invalid": i.question.ariaInvalid,
|
|
2766
2767
|
"aria-describedby": i.question.ariaDescribedBy
|
|
2767
|
-
}, null, 10,
|
|
2768
|
+
}, null, 10, lo), [
|
|
2768
2769
|
[Y, c.value]
|
|
2769
2770
|
]),
|
|
2770
2771
|
p("span", {
|
|
@@ -2776,7 +2777,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2776
2777
|
}, [
|
|
2777
2778
|
p("use", {
|
|
2778
2779
|
"xlink:href": i.question.itemSvgIcon
|
|
2779
|
-
}, null, 8,
|
|
2780
|
+
}, null, 8, ro)
|
|
2780
2781
|
], 2)) : m("", !0)
|
|
2781
2782
|
], 2),
|
|
2782
2783
|
D(p("span", {
|
|
@@ -2789,7 +2790,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2789
2790
|
[H, i.question.isMobile]
|
|
2790
2791
|
])
|
|
2791
2792
|
], 34)
|
|
2792
|
-
], 10,
|
|
2793
|
+
], 10, io))), 128))
|
|
2793
2794
|
], 2))), 128))
|
|
2794
2795
|
])
|
|
2795
2796
|
], 2)
|
|
@@ -2797,13 +2798,13 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2797
2798
|
], 2);
|
|
2798
2799
|
};
|
|
2799
2800
|
}
|
|
2800
|
-
}),
|
|
2801
|
+
}), uo = /* @__PURE__ */ C({
|
|
2801
2802
|
__name: "MatrixDropdown",
|
|
2802
2803
|
props: {
|
|
2803
2804
|
question: {}
|
|
2804
2805
|
},
|
|
2805
2806
|
setup(r) {
|
|
2806
|
-
const o = r, n =
|
|
2807
|
+
const o = r, n = S(null);
|
|
2807
2808
|
return M(o, n), (s, e) => {
|
|
2808
2809
|
const i = q("survey-matrixtable");
|
|
2809
2810
|
return t(), y(i, {
|
|
@@ -2813,7 +2814,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2813
2814
|
}, null, 8, ["question"]);
|
|
2814
2815
|
};
|
|
2815
2816
|
}
|
|
2816
|
-
}),
|
|
2817
|
+
}), mo = { key: 0 }, co = ["data-sv-drop-target-matrix-row"], po = { key: 1 }, vo = /* @__PURE__ */ C({
|
|
2817
2818
|
__name: "MatrixTable",
|
|
2818
2819
|
props: {
|
|
2819
2820
|
question: {}
|
|
@@ -2842,9 +2843,9 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2842
2843
|
p("table", {
|
|
2843
2844
|
class: l(s.question.getTableCss())
|
|
2844
2845
|
}, [
|
|
2845
|
-
n.value.showHeader ? (t(), u("thead",
|
|
2846
|
+
n.value.showHeader ? (t(), u("thead", mo, [
|
|
2846
2847
|
p("tr", null, [
|
|
2847
|
-
(t(!0), u(w, null,
|
|
2848
|
+
(t(!0), u(w, null, T(n.value.headerRow.cells, (c) => (t(), u(w, null, [
|
|
2848
2849
|
c.hasTitle ? (t(), u("th", {
|
|
2849
2850
|
class: l(c.className),
|
|
2850
2851
|
key: "header_" + c.id,
|
|
@@ -2868,21 +2869,25 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2868
2869
|
])
|
|
2869
2870
|
])) : m("", !0),
|
|
2870
2871
|
p("tbody", null, [
|
|
2871
|
-
(t(!0), u(w, null,
|
|
2872
|
-
"data-sv-drop-target-matrix-row": c.row && c.row.id,
|
|
2873
|
-
class: l(c.className),
|
|
2872
|
+
(t(!0), u(w, null, T(n.value.rows, (c) => (t(), u(w, {
|
|
2874
2873
|
key: s.question.inputId + "_" + c.id
|
|
2875
2874
|
}, [
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
},
|
|
2881
|
-
|
|
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))
|
|
2882
2887
|
]),
|
|
2883
|
-
n.value.showFooter ? (t(), u("tfoot",
|
|
2888
|
+
n.value.showFooter ? (t(), u("tfoot", po, [
|
|
2884
2889
|
p("tr", null, [
|
|
2885
|
-
(t(!0), u(w, null,
|
|
2890
|
+
(t(!0), u(w, null, T(n.value.footerRow.cells, (c, v) => (t(), y(d, {
|
|
2886
2891
|
cell: c,
|
|
2887
2892
|
question: s.question,
|
|
2888
2893
|
key: "footer_" + v
|
|
@@ -2893,7 +2898,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2893
2898
|
], 6);
|
|
2894
2899
|
};
|
|
2895
2900
|
}
|
|
2896
|
-
}),
|
|
2901
|
+
}), qo = /* @__PURE__ */ p("span", null, "\xA0", -1), yo = /* @__PURE__ */ C({
|
|
2897
2902
|
__name: "MatrixHeaderRequired",
|
|
2898
2903
|
props: {
|
|
2899
2904
|
question: {},
|
|
@@ -2901,19 +2906,22 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2901
2906
|
},
|
|
2902
2907
|
setup(r) {
|
|
2903
2908
|
const o = r;
|
|
2904
|
-
return B(() => o.column), (n, s) => n.column.isRenderedRequired ? (t(), u(
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
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);
|
|
2908
2916
|
}
|
|
2909
|
-
}),
|
|
2917
|
+
}), go = ["data-responsive-title", "title", "colspan"], Co = /* @__PURE__ */ C({
|
|
2910
2918
|
__name: "MatrixCell",
|
|
2911
2919
|
props: {
|
|
2912
2920
|
question: {},
|
|
2913
2921
|
cell: {}
|
|
2914
2922
|
},
|
|
2915
2923
|
setup(r) {
|
|
2916
|
-
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);
|
|
2917
2925
|
return E(() => {
|
|
2918
2926
|
if (!(!o.cell.hasQuestion || !o.question || !o.question.survey)) {
|
|
2919
2927
|
d(), o.cell.question.registerPropertyChangedHandlers(["isVisible"], () => {
|
|
@@ -2929,7 +2937,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2929
2937
|
o.question.survey.matrixAfterCellRender(o.question, v);
|
|
2930
2938
|
}
|
|
2931
2939
|
}), (v, f) => {
|
|
2932
|
-
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");
|
|
2933
2941
|
return t(), u("td", {
|
|
2934
2942
|
class: l(v.cell.className),
|
|
2935
2943
|
"data-responsive-title": e(),
|
|
@@ -2939,37 +2947,36 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2939
2947
|
ref_key: "root",
|
|
2940
2948
|
ref: s
|
|
2941
2949
|
}, [
|
|
2942
|
-
v.cell.
|
|
2950
|
+
v.cell.isErrorsCell ? (t(), y(g, {
|
|
2943
2951
|
key: 0,
|
|
2952
|
+
element: v.cell.question
|
|
2953
|
+
}, null, 8, ["element"])) : m("", !0),
|
|
2954
|
+
v.cell.isDragHandlerCell ? (t(), y(k, {
|
|
2955
|
+
key: 1,
|
|
2944
2956
|
item: { data: { row: v.cell.row, question: v.question } }
|
|
2945
2957
|
}, null, 8, ["item"])) : m("", !0),
|
|
2946
|
-
v.cell.isActionsCell ? (t(), y(
|
|
2947
|
-
key:
|
|
2958
|
+
v.cell.isActionsCell ? (t(), y(P, {
|
|
2959
|
+
key: 2,
|
|
2948
2960
|
model: v.cell.item.getData(),
|
|
2949
2961
|
handleClick: !1
|
|
2950
2962
|
}, null, 8, ["model"])) : m("", !0),
|
|
2951
2963
|
v.cell.hasPanel ? (t(), y(N(c(v.cell.panel)), {
|
|
2952
|
-
key:
|
|
2964
|
+
key: 3,
|
|
2953
2965
|
question: v.cell.panel,
|
|
2954
2966
|
css: v.question.cssClasses
|
|
2955
2967
|
}, null, 8, ["question", "css"])) : m("", !0),
|
|
2956
2968
|
v.cell.hasQuestion ? (t(), u("div", {
|
|
2957
|
-
key:
|
|
2969
|
+
key: 4,
|
|
2958
2970
|
class: l(v.question.cssClasses.cellQuestionWrapper)
|
|
2959
2971
|
}, [
|
|
2960
|
-
v.cell.showErrorOnTop ? (t(), y(P, {
|
|
2961
|
-
key: 0,
|
|
2962
|
-
element: v.cell.question,
|
|
2963
|
-
location: "top"
|
|
2964
|
-
}, null, 8, ["element"])) : m("", !0),
|
|
2965
2972
|
!v.cell.isChoice && v.cell.question.isDefaultRendering() ? D((t(), y(N(c(v.cell.question)), {
|
|
2966
|
-
key:
|
|
2973
|
+
key: 0,
|
|
2967
2974
|
question: v.cell.question
|
|
2968
2975
|
}, null, 8, ["question"])), [
|
|
2969
2976
|
[H, n.value]
|
|
2970
2977
|
]) : m("", !0),
|
|
2971
2978
|
!v.cell.isChoice && !v.cell.question.isDefaultRendering() ? D((t(), y(N(v.cell.question.getComponentName()), {
|
|
2972
|
-
key:
|
|
2979
|
+
key: 1,
|
|
2973
2980
|
question: v.cell.question
|
|
2974
2981
|
}, null, 8, ["question"])), [
|
|
2975
2982
|
[H, n.value]
|
|
@@ -2990,39 +2997,29 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2990
2997
|
index: a(),
|
|
2991
2998
|
hideLabel: !0
|
|
2992
2999
|
}, null, 8, ["class", "question", "item", "index"])) : m("", !0),
|
|
2993
|
-
v.cell.isOtherChoice ? (t(), y(
|
|
2994
|
-
key:
|
|
3000
|
+
v.cell.isOtherChoice ? (t(), y(Q, {
|
|
3001
|
+
key: 4,
|
|
2995
3002
|
question: v.cell.question
|
|
2996
|
-
}, null, 8, ["question"])) : m("", !0)
|
|
2997
|
-
v.cell.showErrorOnBottom ? (t(), y(P, {
|
|
2998
|
-
key: 6,
|
|
2999
|
-
element: v.cell.question,
|
|
3000
|
-
location: "bottom"
|
|
3001
|
-
}, null, 8, ["element"])) : m("", !0),
|
|
3002
|
-
v.cell.question.isErrorsModeTooltip ? (t(), y(P, {
|
|
3003
|
-
key: 7,
|
|
3004
|
-
element: v.cell.question,
|
|
3005
|
-
location: "tooltip"
|
|
3006
|
-
}, null, 8, ["element"])) : m("", !0)
|
|
3003
|
+
}, null, 8, ["question"])) : m("", !0)
|
|
3007
3004
|
], 2)) : m("", !0),
|
|
3008
|
-
v.cell.hasTitle ? (t(), y(
|
|
3009
|
-
key:
|
|
3005
|
+
v.cell.hasTitle ? (t(), y(J, {
|
|
3006
|
+
key: 5,
|
|
3010
3007
|
locString: v.cell.locTitle
|
|
3011
3008
|
}, null, 8, ["locString"])) : m("", !0),
|
|
3012
3009
|
v.cell.requiredText ? (t(), u("span", {
|
|
3013
|
-
key:
|
|
3010
|
+
key: 6,
|
|
3014
3011
|
class: l(v.question.cssClasses.cellRequiredText)
|
|
3015
3012
|
}, I(v.cell.requiredText), 3)) : m("", !0)
|
|
3016
|
-
], 14,
|
|
3013
|
+
], 14, go);
|
|
3017
3014
|
};
|
|
3018
3015
|
}
|
|
3019
|
-
}),
|
|
3016
|
+
}), ho = /* @__PURE__ */ C({
|
|
3020
3017
|
__name: "MatrixDynamic",
|
|
3021
3018
|
props: {
|
|
3022
3019
|
question: {}
|
|
3023
3020
|
},
|
|
3024
3021
|
setup(r) {
|
|
3025
|
-
const o = r, n =
|
|
3022
|
+
const o = r, n = S(null);
|
|
3026
3023
|
M(o, n);
|
|
3027
3024
|
const s = () => {
|
|
3028
3025
|
o.question.addRowUI();
|
|
@@ -3105,7 +3102,7 @@ function se(r, o = !0) {
|
|
|
3105
3102
|
row: o ? R(() => r.item.data.row) : void 0
|
|
3106
3103
|
};
|
|
3107
3104
|
}
|
|
3108
|
-
const
|
|
3105
|
+
const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
3109
3106
|
__name: "RemoveButton",
|
|
3110
3107
|
props: {
|
|
3111
3108
|
item: {}
|
|
@@ -3126,10 +3123,10 @@ const Co = ["disabled"], ho = /* @__PURE__ */ C({
|
|
|
3126
3123
|
p("span", {
|
|
3127
3124
|
class: l(b(n).cssClasses.iconRemove)
|
|
3128
3125
|
}, null, 2)
|
|
3129
|
-
], 10,
|
|
3126
|
+
], 10, bo);
|
|
3130
3127
|
};
|
|
3131
3128
|
}
|
|
3132
|
-
}),
|
|
3129
|
+
}), fo = ["xlink:href"], Io = /* @__PURE__ */ C({
|
|
3133
3130
|
__name: "DragDropIcon",
|
|
3134
3131
|
props: {
|
|
3135
3132
|
item: {}
|
|
@@ -3142,13 +3139,13 @@ const Co = ["disabled"], ho = /* @__PURE__ */ C({
|
|
|
3142
3139
|
}, [
|
|
3143
3140
|
p("use", {
|
|
3144
3141
|
"xlink:href": b(n).iconDragElement
|
|
3145
|
-
}, null, 8,
|
|
3142
|
+
}, null, 8, fo)
|
|
3146
3143
|
], 2)) : (t(), u("span", {
|
|
3147
3144
|
key: 1,
|
|
3148
3145
|
class: l(b(n).cssClasses.iconDrag)
|
|
3149
3146
|
}, null, 2));
|
|
3150
3147
|
}
|
|
3151
|
-
}),
|
|
3148
|
+
}), wo = ["aria-expanded", "aria-controls"], So = /* @__PURE__ */ C({
|
|
3152
3149
|
__name: "DetailButton",
|
|
3153
3150
|
props: {
|
|
3154
3151
|
item: {}
|
|
@@ -3169,17 +3166,17 @@ const Co = ["disabled"], ho = /* @__PURE__ */ C({
|
|
|
3169
3166
|
iconName: b(n).getDetailPanelIconId(b(s)),
|
|
3170
3167
|
size: "auto"
|
|
3171
3168
|
}, null, 8, ["class", "iconName"])
|
|
3172
|
-
], 10,
|
|
3169
|
+
], 10, wo);
|
|
3173
3170
|
};
|
|
3174
3171
|
}
|
|
3175
|
-
}),
|
|
3172
|
+
}), To = /* @__PURE__ */ C({
|
|
3176
3173
|
__name: "PanelDynamic",
|
|
3177
3174
|
props: {
|
|
3178
3175
|
question: {},
|
|
3179
3176
|
css: {}
|
|
3180
3177
|
},
|
|
3181
3178
|
setup(r) {
|
|
3182
|
-
const o = r, n =
|
|
3179
|
+
const o = r, n = S(null), s = x();
|
|
3183
3180
|
M(
|
|
3184
3181
|
o,
|
|
3185
3182
|
n,
|
|
@@ -3242,7 +3239,7 @@ const Co = ["disabled"], ho = /* @__PURE__ */ C({
|
|
|
3242
3239
|
key: 2,
|
|
3243
3240
|
question: a.question
|
|
3244
3241
|
}, null, 8, ["question"])) : m("", !0),
|
|
3245
|
-
(t(!0), u(w, null,
|
|
3242
|
+
(t(!0), u(w, null, T(e.value, (L, A) => (t(), u(w, {
|
|
3246
3243
|
key: L.id
|
|
3247
3244
|
}, [
|
|
3248
3245
|
p("div", {
|
|
@@ -3277,7 +3274,7 @@ const Co = ["disabled"], ho = /* @__PURE__ */ C({
|
|
|
3277
3274
|
], 2);
|
|
3278
3275
|
};
|
|
3279
3276
|
}
|
|
3280
|
-
}),
|
|
3277
|
+
}), Ro = /* @__PURE__ */ C({
|
|
3281
3278
|
__name: "PanelDynamicProgress",
|
|
3282
3279
|
props: {
|
|
3283
3280
|
question: {}
|
|
@@ -3323,7 +3320,7 @@ const Co = ["disabled"], ho = /* @__PURE__ */ C({
|
|
|
3323
3320
|
], 2);
|
|
3324
3321
|
};
|
|
3325
3322
|
}
|
|
3326
|
-
}),
|
|
3323
|
+
}), $o = /* @__PURE__ */ C({
|
|
3327
3324
|
__name: "PanelDynamicProgressV2",
|
|
3328
3325
|
props: {
|
|
3329
3326
|
question: {}
|
|
@@ -3360,19 +3357,19 @@ const Co = ["disabled"], ho = /* @__PURE__ */ C({
|
|
|
3360
3357
|
};
|
|
3361
3358
|
}
|
|
3362
3359
|
});
|
|
3363
|
-
function
|
|
3360
|
+
function j(r) {
|
|
3364
3361
|
return R(
|
|
3365
3362
|
() => r.item && r.item.data.question || r.data.question
|
|
3366
3363
|
);
|
|
3367
3364
|
}
|
|
3368
|
-
const
|
|
3365
|
+
const Bo = /* @__PURE__ */ C({
|
|
3369
3366
|
__name: "PaneldynamicAddBtn",
|
|
3370
3367
|
props: {
|
|
3371
3368
|
item: {},
|
|
3372
3369
|
data: {}
|
|
3373
3370
|
},
|
|
3374
3371
|
setup(r) {
|
|
3375
|
-
const n =
|
|
3372
|
+
const n = j(r), s = () => {
|
|
3376
3373
|
n.value.addPanelUI();
|
|
3377
3374
|
};
|
|
3378
3375
|
return (e, i) => b(n).canAddPanel ? (t(), u("button", {
|
|
@@ -3386,14 +3383,14 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3386
3383
|
}, I(b(n).panelAddText), 3)
|
|
3387
3384
|
], 2)) : m("", !0);
|
|
3388
3385
|
}
|
|
3389
|
-
}),
|
|
3386
|
+
}), Lo = ["title"], Do = /* @__PURE__ */ C({
|
|
3390
3387
|
__name: "PaneldynamicNextBtn",
|
|
3391
3388
|
props: {
|
|
3392
3389
|
item: {},
|
|
3393
3390
|
data: {}
|
|
3394
3391
|
},
|
|
3395
3392
|
setup(r) {
|
|
3396
|
-
const n =
|
|
3393
|
+
const n = j(r), s = () => {
|
|
3397
3394
|
n.value.goToNextPanel();
|
|
3398
3395
|
};
|
|
3399
3396
|
return (e, i) => {
|
|
@@ -3407,17 +3404,17 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3407
3404
|
iconName: b(n).cssClasses.progressBtnIcon,
|
|
3408
3405
|
size: "auto"
|
|
3409
3406
|
}, null, 8, ["iconName"])
|
|
3410
|
-
], 10,
|
|
3407
|
+
], 10, Lo);
|
|
3411
3408
|
};
|
|
3412
3409
|
}
|
|
3413
|
-
}),
|
|
3410
|
+
}), Po = ["title"], Mo = /* @__PURE__ */ C({
|
|
3414
3411
|
__name: "PaneldynamicPrevBtn",
|
|
3415
3412
|
props: {
|
|
3416
3413
|
item: {},
|
|
3417
3414
|
data: {}
|
|
3418
3415
|
},
|
|
3419
3416
|
setup(r) {
|
|
3420
|
-
const n =
|
|
3417
|
+
const n = j(r), s = () => {
|
|
3421
3418
|
n.value.goToPrevPanel();
|
|
3422
3419
|
};
|
|
3423
3420
|
return (e, i) => {
|
|
@@ -3431,17 +3428,17 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3431
3428
|
iconName: b(n).cssClasses.progressBtnIcon,
|
|
3432
3429
|
size: "auto"
|
|
3433
3430
|
}, null, 8, ["iconName"])
|
|
3434
|
-
], 10,
|
|
3431
|
+
], 10, Po);
|
|
3435
3432
|
};
|
|
3436
3433
|
}
|
|
3437
|
-
}),
|
|
3434
|
+
}), No = /* @__PURE__ */ C({
|
|
3438
3435
|
__name: "PaneldynamicRemoveBtn",
|
|
3439
3436
|
props: {
|
|
3440
3437
|
item: {},
|
|
3441
3438
|
data: {}
|
|
3442
3439
|
},
|
|
3443
3440
|
setup(r) {
|
|
3444
|
-
const o = r, n =
|
|
3441
|
+
const o = r, n = j(o), s = R(
|
|
3445
3442
|
() => o.item && o.item.data.panel || o.data.panel
|
|
3446
3443
|
), e = (i) => {
|
|
3447
3444
|
n.value.isInputReadOnly || n.value.removePanelUI(i);
|
|
@@ -3459,29 +3456,29 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3459
3456
|
}, null, 2)
|
|
3460
3457
|
], 2));
|
|
3461
3458
|
}
|
|
3462
|
-
}),
|
|
3459
|
+
}), Ho = /* @__PURE__ */ C({
|
|
3463
3460
|
__name: "PaneldynamicProgressText",
|
|
3464
3461
|
props: {
|
|
3465
3462
|
item: {},
|
|
3466
3463
|
data: {}
|
|
3467
3464
|
},
|
|
3468
3465
|
setup(r) {
|
|
3469
|
-
const n =
|
|
3466
|
+
const n = j(r);
|
|
3470
3467
|
return (s, e) => (t(), u("div", {
|
|
3471
3468
|
class: l(b(n).cssClasses.progressText)
|
|
3472
3469
|
}, I(b(n).progressText), 3));
|
|
3473
3470
|
}
|
|
3474
|
-
}),
|
|
3471
|
+
}), Eo = ["id"], Ao = /* @__PURE__ */ C({
|
|
3475
3472
|
__name: "Errors",
|
|
3476
3473
|
props: {
|
|
3477
3474
|
element: {},
|
|
3478
3475
|
location: {}
|
|
3479
3476
|
},
|
|
3480
3477
|
setup(r) {
|
|
3481
|
-
const o = r, n =
|
|
3478
|
+
const o = r, n = S();
|
|
3482
3479
|
let s;
|
|
3483
|
-
return
|
|
3484
|
-
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();
|
|
3485
3482
|
}), O(() => {
|
|
3486
3483
|
s && s.dispose();
|
|
3487
3484
|
}), (e, i) => {
|
|
@@ -3495,7 +3492,7 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3495
3492
|
ref_key: "root",
|
|
3496
3493
|
ref: n
|
|
3497
3494
|
}, [
|
|
3498
|
-
(t(!0), u(w, null,
|
|
3495
|
+
(t(!0), u(w, null, T(e.element.errors, (d, c) => (t(), u("div", {
|
|
3499
3496
|
key: "error_" + c
|
|
3500
3497
|
}, [
|
|
3501
3498
|
p("span", {
|
|
@@ -3514,17 +3511,17 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3514
3511
|
}, null, 8, ["locString"])
|
|
3515
3512
|
], 2)
|
|
3516
3513
|
]))), 128))
|
|
3517
|
-
], 10,
|
|
3514
|
+
], 10, Eo)) : m("", !0);
|
|
3518
3515
|
};
|
|
3519
3516
|
}
|
|
3520
|
-
}),
|
|
3517
|
+
}), Oo = { key: 0 }, Vo = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], Fo = /* @__PURE__ */ C({
|
|
3521
3518
|
__name: "QuestionComment",
|
|
3522
3519
|
props: {
|
|
3523
3520
|
question: {},
|
|
3524
3521
|
commentClass: {}
|
|
3525
3522
|
},
|
|
3526
3523
|
setup(r) {
|
|
3527
|
-
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", {
|
|
3528
3525
|
key: 1,
|
|
3529
3526
|
id: o.question.commentId,
|
|
3530
3527
|
readonly: o.question.isInputReadOnly,
|
|
@@ -3542,9 +3539,9 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3542
3539
|
onInput: n[1] || (n[1] = (s) => {
|
|
3543
3540
|
o.question.onCommentInput(s);
|
|
3544
3541
|
})
|
|
3545
|
-
}, null, 46,
|
|
3542
|
+
}, null, 46, Vo));
|
|
3546
3543
|
}
|
|
3547
|
-
}),
|
|
3544
|
+
}), Wo = /* @__PURE__ */ C({
|
|
3548
3545
|
__name: "TitleElement",
|
|
3549
3546
|
props: {
|
|
3550
3547
|
element: {},
|
|
@@ -3552,7 +3549,7 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3552
3549
|
},
|
|
3553
3550
|
setup(r) {
|
|
3554
3551
|
const o = (n) => {
|
|
3555
|
-
|
|
3552
|
+
ue(n);
|
|
3556
3553
|
};
|
|
3557
3554
|
return (n, s) => {
|
|
3558
3555
|
const e = q("survey-element-title-content"), i = q("sv-title-actions");
|
|
@@ -3568,7 +3565,7 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3568
3565
|
o(a);
|
|
3569
3566
|
})
|
|
3570
3567
|
}, {
|
|
3571
|
-
default:
|
|
3568
|
+
default: qe(() => [
|
|
3572
3569
|
n.element.hasTitleActions ? m("", !0) : (t(), y(e, {
|
|
3573
3570
|
key: 0,
|
|
3574
3571
|
element: n.element,
|
|
@@ -3584,7 +3581,7 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3584
3581
|
}, 40, ["class", "aria-label", "id", "tabindex", "aria-expanded", "role"])) : m("", !0);
|
|
3585
3582
|
};
|
|
3586
3583
|
}
|
|
3587
|
-
}),
|
|
3584
|
+
}), zo = { class: "sv-vue-title-additional-div" }, Uo = { key: 3 }, Ko = { key: 5 }, jo = { key: 7 }, Qo = /* @__PURE__ */ C({
|
|
3588
3585
|
__name: "TitleContent",
|
|
3589
3586
|
props: {
|
|
3590
3587
|
element: {},
|
|
@@ -3593,7 +3590,7 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3593
3590
|
setup(r) {
|
|
3594
3591
|
return (o, n) => {
|
|
3595
3592
|
const s = q("survey-string");
|
|
3596
|
-
return t(), u("div",
|
|
3593
|
+
return t(), u("div", zo, [
|
|
3597
3594
|
o.element.isTitleRenderedAsString ? (t(), y(s, {
|
|
3598
3595
|
key: 0,
|
|
3599
3596
|
locString: o.element.locTitle
|
|
@@ -3609,18 +3606,18 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3609
3606
|
class: l(o.element.cssTitleNumber),
|
|
3610
3607
|
"aria-hidden": !0
|
|
3611
3608
|
}, I(o.element.no), 3)) : m("", !0),
|
|
3612
|
-
!o.element.isTitleRenderedAsString && o.element.no ? (t(), u("span",
|
|
3609
|
+
!o.element.isTitleRenderedAsString && o.element.no ? (t(), u("span", Uo, "\xA0")) : m("", !0),
|
|
3613
3610
|
!o.element.isTitleRenderedAsString && o.element.isRequireTextBeforeTitle ? (t(), u("span", {
|
|
3614
3611
|
key: 4,
|
|
3615
3612
|
class: l(o.element.cssClasses.requiredText),
|
|
3616
3613
|
"aria-hidden": !0
|
|
3617
3614
|
}, I(o.element.requiredText), 3)) : m("", !0),
|
|
3618
|
-
!o.element.isTitleRenderedAsString && o.element.isRequireTextBeforeTitle ? (t(), u("span",
|
|
3615
|
+
!o.element.isTitleRenderedAsString && o.element.isRequireTextBeforeTitle ? (t(), u("span", Ko, "\xA0")) : m("", !0),
|
|
3619
3616
|
o.element.isTitleRenderedAsString ? m("", !0) : (t(), y(s, {
|
|
3620
3617
|
key: 6,
|
|
3621
3618
|
locString: o.element.locTitle
|
|
3622
3619
|
}, null, 8, ["locString"])),
|
|
3623
|
-
!o.element.isTitleRenderedAsString && o.element.isRequireTextAfterTitle ? (t(), u("span",
|
|
3620
|
+
!o.element.isTitleRenderedAsString && o.element.isRequireTextAfterTitle ? (t(), u("span", jo, "\xA0")) : m("", !0),
|
|
3624
3621
|
!o.element.isTitleRenderedAsString && o.element.isRequireTextAfterTitle ? (t(), u("span", {
|
|
3625
3622
|
key: 8,
|
|
3626
3623
|
class: l(o.element.cssClasses.requiredText),
|
|
@@ -3629,7 +3626,7 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3629
3626
|
]);
|
|
3630
3627
|
};
|
|
3631
3628
|
}
|
|
3632
|
-
}),
|
|
3629
|
+
}), Zo = { class: "sv-title-actions" }, Go = { class: "sv-title-actions__title" }, Xo = /* @__PURE__ */ C({
|
|
3633
3630
|
__name: "TitleActions",
|
|
3634
3631
|
props: {
|
|
3635
3632
|
element: {},
|
|
@@ -3639,8 +3636,8 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3639
3636
|
const o = r, n = R(() => o.element.getTitleToolbar());
|
|
3640
3637
|
return (s, e) => {
|
|
3641
3638
|
const i = q("survey-string"), a = q("survey-element-title-content"), d = q("sv-action-bar");
|
|
3642
|
-
return t(), u("div",
|
|
3643
|
-
p("span",
|
|
3639
|
+
return t(), u("div", Zo, [
|
|
3640
|
+
p("span", Go, [
|
|
3644
3641
|
s.element.isPage ? (t(), y(i, {
|
|
3645
3642
|
key: 0,
|
|
3646
3643
|
locString: s.element.locTitle
|
|
@@ -3655,20 +3652,20 @@ const Ro = /* @__PURE__ */ C({
|
|
|
3655
3652
|
]);
|
|
3656
3653
|
};
|
|
3657
3654
|
}
|
|
3658
|
-
}),
|
|
3655
|
+
}), Jo = (r, o) => {
|
|
3659
3656
|
const n = r.__vccOpts || r;
|
|
3660
3657
|
for (const [s, e] of o)
|
|
3661
3658
|
n[s] = e;
|
|
3662
3659
|
return n;
|
|
3663
|
-
},
|
|
3664
|
-
|
|
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
|
|
3665
3662
|
];
|
|
3666
|
-
function
|
|
3667
|
-
return t(), u("div",
|
|
3663
|
+
function st(r, o) {
|
|
3664
|
+
return t(), u("div", _o, et);
|
|
3668
3665
|
}
|
|
3669
|
-
const
|
|
3670
|
-
|
|
3671
|
-
],
|
|
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({
|
|
3672
3669
|
__name: "SvgIcon",
|
|
3673
3670
|
props: {
|
|
3674
3671
|
size: {},
|
|
@@ -3678,7 +3675,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
3678
3675
|
title: {}
|
|
3679
3676
|
},
|
|
3680
3677
|
setup(r) {
|
|
3681
|
-
const o = r, n =
|
|
3678
|
+
const o = r, n = S(), s = () => {
|
|
3682
3679
|
Te(
|
|
3683
3680
|
o.size,
|
|
3684
3681
|
o.width,
|
|
@@ -3688,7 +3685,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
3688
3685
|
o.title
|
|
3689
3686
|
);
|
|
3690
3687
|
};
|
|
3691
|
-
return
|
|
3688
|
+
return K(() => {
|
|
3692
3689
|
s();
|
|
3693
3690
|
}), E(() => {
|
|
3694
3691
|
s();
|
|
@@ -3698,16 +3695,16 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
3698
3695
|
class: "sv-svg-icon",
|
|
3699
3696
|
role: "img",
|
|
3700
3697
|
"aria-label": e.title
|
|
3701
|
-
},
|
|
3698
|
+
}, it, 8, ot));
|
|
3702
3699
|
}
|
|
3703
|
-
}),
|
|
3700
|
+
}), rt = /* @__PURE__ */ C({
|
|
3704
3701
|
__name: "ActionBar",
|
|
3705
3702
|
props: {
|
|
3706
3703
|
model: {},
|
|
3707
3704
|
handleClick: { type: Boolean }
|
|
3708
3705
|
},
|
|
3709
3706
|
setup(r) {
|
|
3710
|
-
const o = r, n =
|
|
3707
|
+
const o = r, n = S(null);
|
|
3711
3708
|
return B(() => o.model), E(() => {
|
|
3712
3709
|
!o.model.hasActions || o.model.initResponsivityManager(n.value);
|
|
3713
3710
|
}), O(() => {
|
|
@@ -3723,14 +3720,14 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
3723
3720
|
a.stopPropagation();
|
|
3724
3721
|
})
|
|
3725
3722
|
}, [
|
|
3726
|
-
(t(!0), u(w, null,
|
|
3723
|
+
(t(!0), u(w, null, T(s.model.renderedActions, (a) => (t(), y(i, {
|
|
3727
3724
|
key: a.id,
|
|
3728
3725
|
item: a
|
|
3729
3726
|
}, null, 8, ["item"]))), 128))
|
|
3730
3727
|
], 2)) : m("", !0);
|
|
3731
3728
|
};
|
|
3732
3729
|
}
|
|
3733
|
-
}),
|
|
3730
|
+
}), at = ["id"], ut = { class: "sv-action__content" }, dt = /* @__PURE__ */ C({
|
|
3734
3731
|
__name: "Action",
|
|
3735
3732
|
props: {
|
|
3736
3733
|
item: {}
|
|
@@ -3745,14 +3742,14 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
3745
3742
|
class: l(s.item.getActionRootCss()),
|
|
3746
3743
|
id: s.item.id
|
|
3747
3744
|
}, [
|
|
3748
|
-
p("div",
|
|
3745
|
+
p("div", ut, [
|
|
3749
3746
|
s.item.needSeparator ? (t(), y(i, { key: 0 })) : m("", !0),
|
|
3750
3747
|
(t(), y(N(n.value), { item: s.item }, null, 8, ["item"]))
|
|
3751
3748
|
])
|
|
3752
|
-
], 10,
|
|
3749
|
+
], 10, at);
|
|
3753
3750
|
};
|
|
3754
3751
|
}
|
|
3755
|
-
}),
|
|
3752
|
+
}), mt = ["disabled", "title", "aria-checked", "aria-expanded", "role", "tabindex"], ct = /* @__PURE__ */ C({
|
|
3756
3753
|
__name: "ActionBarItem",
|
|
3757
3754
|
props: {
|
|
3758
3755
|
item: {}
|
|
@@ -3788,21 +3785,21 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
3788
3785
|
key: 1,
|
|
3789
3786
|
class: l(n.item.getActionBarItemTitleCss())
|
|
3790
3787
|
}, I(n.item.title), 3)) : m("", !0)
|
|
3791
|
-
], 42,
|
|
3788
|
+
], 42, mt);
|
|
3792
3789
|
};
|
|
3793
3790
|
}
|
|
3794
|
-
}),
|
|
3791
|
+
}), pt = ["disabled", "title", "role", "tabindex"], vt = /* @__PURE__ */ C({
|
|
3795
3792
|
__name: "ActionBarItemDropdown",
|
|
3796
3793
|
props: {
|
|
3797
3794
|
item: {}
|
|
3798
3795
|
},
|
|
3799
3796
|
setup(r) {
|
|
3800
|
-
const o = r, n =
|
|
3797
|
+
const o = r, n = $e;
|
|
3801
3798
|
let s;
|
|
3802
3799
|
return B(
|
|
3803
3800
|
() => o.item,
|
|
3804
3801
|
(e) => {
|
|
3805
|
-
s = new
|
|
3802
|
+
s = new Re(e);
|
|
3806
3803
|
},
|
|
3807
3804
|
() => {
|
|
3808
3805
|
s.dispose();
|
|
@@ -3835,7 +3832,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
3835
3832
|
key: 1,
|
|
3836
3833
|
class: l(e.item.getActionBarItemTitleCss())
|
|
3837
3834
|
}, I(e.item.title), 3)) : m("", !0)
|
|
3838
|
-
], 42,
|
|
3835
|
+
], 42, pt),
|
|
3839
3836
|
h(d, {
|
|
3840
3837
|
model: e.item.popupModel,
|
|
3841
3838
|
getTarget: b(n)
|
|
@@ -3843,7 +3840,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
3843
3840
|
], 64);
|
|
3844
3841
|
};
|
|
3845
3842
|
}
|
|
3846
|
-
}),
|
|
3843
|
+
}), qt = /* @__PURE__ */ C({
|
|
3847
3844
|
__name: "ActionBarSeparator",
|
|
3848
3845
|
props: {
|
|
3849
3846
|
item: {}
|
|
@@ -3854,13 +3851,13 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
3854
3851
|
class: l(["sv-action-bar-separator", n.value])
|
|
3855
3852
|
}, null, 2));
|
|
3856
3853
|
}
|
|
3857
|
-
}),
|
|
3854
|
+
}), yt = ["aria-label", "placeholder", "value"], gt = ["aria-label"], Ct = ["id"], ht = /* @__PURE__ */ C({
|
|
3858
3855
|
__name: "List",
|
|
3859
3856
|
props: {
|
|
3860
3857
|
model: {}
|
|
3861
3858
|
},
|
|
3862
3859
|
setup(r) {
|
|
3863
|
-
const o = r, n =
|
|
3860
|
+
const o = r, n = S(null), s = (a) => {
|
|
3864
3861
|
const d = o.model;
|
|
3865
3862
|
d.filterString = a.target.value;
|
|
3866
3863
|
}, e = (a) => {
|
|
@@ -3898,7 +3895,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
3898
3895
|
value: a.model.filterString,
|
|
3899
3896
|
onChange: s,
|
|
3900
3897
|
onKeyup: e
|
|
3901
|
-
}, null, 42,
|
|
3898
|
+
}, null, 42, yt),
|
|
3902
3899
|
a.model.showSearchClearButton && !!a.model.filterString ? (t(), u("button", {
|
|
3903
3900
|
key: 0,
|
|
3904
3901
|
onClick: d[0] || (d[0] = (f) => {
|
|
@@ -3918,7 +3915,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
3918
3915
|
p("div", {
|
|
3919
3916
|
class: l(a.model.cssClasses.emptyText),
|
|
3920
3917
|
"aria-label": a.model.emptyMessage
|
|
3921
|
-
}, I(a.model.emptyMessage), 11,
|
|
3918
|
+
}, I(a.model.emptyMessage), 11, gt)
|
|
3922
3919
|
], 2), [
|
|
3923
3920
|
[H, a.model.isEmpty]
|
|
3924
3921
|
]),
|
|
@@ -3935,18 +3932,18 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
3935
3932
|
a.model.onKeyDown(f);
|
|
3936
3933
|
})
|
|
3937
3934
|
}, [
|
|
3938
|
-
(t(!0), u(w, null,
|
|
3935
|
+
(t(!0), u(w, null, T(a.model.renderedActions, (f) => (t(), y(v, {
|
|
3939
3936
|
item: f,
|
|
3940
3937
|
model: a.model,
|
|
3941
3938
|
key: f.id
|
|
3942
3939
|
}, null, 8, ["item", "model"]))), 128))
|
|
3943
|
-
], 42,
|
|
3940
|
+
], 42, Ct)), [
|
|
3944
3941
|
[H, !a.model.isEmpty]
|
|
3945
3942
|
]) : m("", !0)
|
|
3946
3943
|
], 2);
|
|
3947
3944
|
};
|
|
3948
3945
|
}
|
|
3949
|
-
}),
|
|
3946
|
+
}), bt = ["aria-selected", "id"], kt = /* @__PURE__ */ C({
|
|
3950
3947
|
__name: "ListItem",
|
|
3951
3948
|
props: {
|
|
3952
3949
|
model: {},
|
|
@@ -3994,13 +3991,13 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
3994
3991
|
item: e.item
|
|
3995
3992
|
}, null, 8, ["item"])) : m("", !0)
|
|
3996
3993
|
], 6)
|
|
3997
|
-
], 10,
|
|
3994
|
+
], 10, bt)), [
|
|
3998
3995
|
[H, e.model.isItemVisible(e.item)],
|
|
3999
3996
|
[c]
|
|
4000
3997
|
]);
|
|
4001
3998
|
};
|
|
4002
3999
|
}
|
|
4003
|
-
}),
|
|
4000
|
+
}), ft = /* @__PURE__ */ C({
|
|
4004
4001
|
__name: "Popup",
|
|
4005
4002
|
props: {
|
|
4006
4003
|
getTarget: { type: Function },
|
|
@@ -4009,8 +4006,8 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4009
4006
|
setup(r) {
|
|
4010
4007
|
const o = r, n = F(
|
|
4011
4008
|
oe(o.model, void 0)
|
|
4012
|
-
), s =
|
|
4013
|
-
return
|
|
4009
|
+
), s = S(null);
|
|
4010
|
+
return G(
|
|
4014
4011
|
() => o.model,
|
|
4015
4012
|
(e) => {
|
|
4016
4013
|
n.value.dispose(), n.value = oe(e, void 0);
|
|
@@ -4034,13 +4031,13 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4034
4031
|
], 512);
|
|
4035
4032
|
};
|
|
4036
4033
|
}
|
|
4037
|
-
}),
|
|
4034
|
+
}), It = { class: "sv-popup__shadow" }, wt = { class: "sv-popup__body-content" }, St = {
|
|
4038
4035
|
key: 0,
|
|
4039
4036
|
class: "sv-popup__body-header"
|
|
4040
|
-
},
|
|
4037
|
+
}, Tt = { class: "sv-popup__scrolling-content" }, Rt = { class: "sv-popup__content" }, $t = {
|
|
4041
4038
|
key: 1,
|
|
4042
4039
|
class: "sv-popup__body-footer"
|
|
4043
|
-
},
|
|
4040
|
+
}, Bt = /* @__PURE__ */ C({
|
|
4044
4041
|
__name: "PopupContainer",
|
|
4045
4042
|
props: {
|
|
4046
4043
|
model: {}
|
|
@@ -4051,7 +4048,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4051
4048
|
const s = (e) => {
|
|
4052
4049
|
e.stopPropagation();
|
|
4053
4050
|
};
|
|
4054
|
-
return B(() => o.model),
|
|
4051
|
+
return B(() => o.model), K(() => {
|
|
4055
4052
|
const e = o.model;
|
|
4056
4053
|
!n && e.isVisible && o.model.updateOnShowing(), n = e.isVisible;
|
|
4057
4054
|
}), (e, i) => {
|
|
@@ -4077,19 +4074,19 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4077
4074
|
}),
|
|
4078
4075
|
onClick: s
|
|
4079
4076
|
}, [
|
|
4080
|
-
p("div",
|
|
4077
|
+
p("div", It, [
|
|
4081
4078
|
e.model.showHeader ? (t(), y(N(e.model.popupHeaderTemplate), {
|
|
4082
4079
|
key: 0,
|
|
4083
4080
|
model: e.model
|
|
4084
4081
|
}, null, 8, ["model"])) : m("", !0),
|
|
4085
|
-
p("div",
|
|
4086
|
-
e.model.title ? (t(), u("div",
|
|
4087
|
-
p("div",
|
|
4088
|
-
p("div",
|
|
4089
|
-
(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))
|
|
4090
4087
|
])
|
|
4091
4088
|
]),
|
|
4092
|
-
e.model.showFooter ? (t(), u("div",
|
|
4089
|
+
e.model.showFooter ? (t(), u("div", $t, [
|
|
4093
4090
|
h(a, {
|
|
4094
4091
|
model: e.model.footerToolbar
|
|
4095
4092
|
}, null, 8, ["model"])
|
|
@@ -4102,7 +4099,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4102
4099
|
]);
|
|
4103
4100
|
};
|
|
4104
4101
|
}
|
|
4105
|
-
}),
|
|
4102
|
+
}), Lt = /* @__PURE__ */ C({
|
|
4106
4103
|
__name: "PopupPointer",
|
|
4107
4104
|
props: {
|
|
4108
4105
|
model: {}
|
|
@@ -4116,10 +4113,10 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4116
4113
|
})
|
|
4117
4114
|
}, null, 4));
|
|
4118
4115
|
}
|
|
4119
|
-
}),
|
|
4116
|
+
}), Dt = {
|
|
4120
4117
|
key: 0,
|
|
4121
4118
|
class: "sv-components-column"
|
|
4122
|
-
},
|
|
4119
|
+
}, Pt = /* @__PURE__ */ C({
|
|
4123
4120
|
__name: "Container",
|
|
4124
4121
|
props: {
|
|
4125
4122
|
survey: {},
|
|
@@ -4131,18 +4128,18 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4131
4128
|
() => o.survey.getContainerContent(o.container)
|
|
4132
4129
|
);
|
|
4133
4130
|
return (s, e) => n.value.length > 0 ? (t(), u(w, { key: 0 }, [
|
|
4134
|
-
s.needRenderWrapper ? (t(), u("div",
|
|
4135
|
-
(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), {
|
|
4136
4133
|
survey: s.survey,
|
|
4137
4134
|
model: i.data
|
|
4138
4135
|
}, null, 8, ["survey", "model"]))), 256))
|
|
4139
|
-
])) : (t(!0), u(w, { key: 1 },
|
|
4136
|
+
])) : (t(!0), u(w, { key: 1 }, T(n.value, (i, a) => (t(), y(N(i.component), {
|
|
4140
4137
|
survey: s.survey,
|
|
4141
4138
|
model: i.data
|
|
4142
4139
|
}, null, 8, ["survey", "model"]))), 256))
|
|
4143
4140
|
], 64)) : m("", !0);
|
|
4144
4141
|
}
|
|
4145
|
-
}),
|
|
4142
|
+
}), Z = /* @__PURE__ */ C({
|
|
4146
4143
|
__name: "Progress",
|
|
4147
4144
|
props: {
|
|
4148
4145
|
survey: {},
|
|
@@ -4169,13 +4166,13 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4169
4166
|
}, I(i.survey.progressText), 3)
|
|
4170
4167
|
], 2));
|
|
4171
4168
|
}
|
|
4172
|
-
}),
|
|
4169
|
+
}), Mt = ["onClick"], Nt = ["title"], Ht = ["title"], Et = /* @__PURE__ */ C({
|
|
4173
4170
|
__name: "ProgressButtons",
|
|
4174
4171
|
props: {
|
|
4175
4172
|
survey: {}
|
|
4176
4173
|
},
|
|
4177
4174
|
setup(r) {
|
|
4178
|
-
const o = r, n = new
|
|
4175
|
+
const o = r, n = new Be(o.survey), s = S(!1), e = S(), i = R(() => o.survey.css);
|
|
4179
4176
|
let a;
|
|
4180
4177
|
const d = (k) => n.isListElementClickable(k), c = (k) => n.getListElementCss(k), v = (k) => {
|
|
4181
4178
|
n.clickListElement(k);
|
|
@@ -4188,7 +4185,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4188
4185
|
a = setInterval(() => {
|
|
4189
4186
|
s.value = k.scrollWidth > k.offsetWidth;
|
|
4190
4187
|
}, 100);
|
|
4191
|
-
}),
|
|
4188
|
+
}), U(() => {
|
|
4192
4189
|
typeof a < "u" && (clearInterval(a), a = void 0);
|
|
4193
4190
|
}), (k, P) => (t(), u("div", {
|
|
4194
4191
|
class: l(i.value.progressButtonsContainerCenter)
|
|
@@ -4209,20 +4206,20 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4209
4206
|
p("ul", {
|
|
4210
4207
|
class: l(i.value.progressButtonsList)
|
|
4211
4208
|
}, [
|
|
4212
|
-
(t(!0), u(w, null,
|
|
4209
|
+
(t(!0), u(w, null, T(k.survey.visiblePages, (L, A) => (t(), u("li", {
|
|
4213
4210
|
key: "listelement" + A,
|
|
4214
4211
|
class: l(c(A)),
|
|
4215
|
-
onClick: (
|
|
4212
|
+
onClick: (Q) => d(A) ? v(A) : null
|
|
4216
4213
|
}, [
|
|
4217
4214
|
p("div", {
|
|
4218
4215
|
class: l(i.value.progressButtonsPageTitle),
|
|
4219
4216
|
title: L.locNavigationTitle.renderedHtml || L.name
|
|
4220
|
-
}, I(L.locNavigationTitle.renderedHtml || L.name), 11,
|
|
4217
|
+
}, I(L.locNavigationTitle.renderedHtml || L.name), 11, Nt),
|
|
4221
4218
|
p("div", {
|
|
4222
4219
|
class: l(i.value.progressButtonsPageDescription),
|
|
4223
4220
|
title: L.locNavigationDescription.renderedHtml
|
|
4224
|
-
}, I(L.locNavigationDescription.renderedHtml), 11,
|
|
4225
|
-
], 10,
|
|
4221
|
+
}, I(L.locNavigationDescription.renderedHtml), 11, Ht)
|
|
4222
|
+
], 10, Mt))), 128))
|
|
4226
4223
|
], 2)
|
|
4227
4224
|
], 2),
|
|
4228
4225
|
p("div", {
|
|
@@ -4233,13 +4230,13 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4233
4230
|
], 2)
|
|
4234
4231
|
], 2));
|
|
4235
4232
|
}
|
|
4236
|
-
}),
|
|
4233
|
+
}), At = /* @__PURE__ */ C({
|
|
4237
4234
|
__name: "ProgressToc",
|
|
4238
4235
|
props: {
|
|
4239
4236
|
survey: {}
|
|
4240
4237
|
},
|
|
4241
4238
|
setup(r) {
|
|
4242
|
-
const o = r, n = new
|
|
4239
|
+
const o = r, n = new Le(o.survey);
|
|
4243
4240
|
return (s, e) => {
|
|
4244
4241
|
const i = q("sv-svg-icon"), a = q("sv-popup"), d = q("sv-list"), c = _("key2click");
|
|
4245
4242
|
return t(), u("div", {
|
|
@@ -4265,19 +4262,19 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4265
4262
|
], 2);
|
|
4266
4263
|
};
|
|
4267
4264
|
}
|
|
4268
|
-
}),
|
|
4265
|
+
}), Ot = { onsubmit: "return false;" }, Vt = {
|
|
4269
4266
|
key: 0,
|
|
4270
4267
|
class: "sv_custom_header"
|
|
4271
|
-
},
|
|
4268
|
+
}, Ft = ["id"], Wt = { key: 1 }, zt = ["innerHTML"], Ut = ["innerHTML"], Kt = ["innerHTML"], le = /* @__PURE__ */ C({
|
|
4272
4269
|
__name: "Survey",
|
|
4273
4270
|
props: {
|
|
4274
4271
|
model: {},
|
|
4275
4272
|
survey: {}
|
|
4276
4273
|
},
|
|
4277
4274
|
setup(r) {
|
|
4278
|
-
const o = r, n =
|
|
4275
|
+
const o = r, n = S(), s = S(""), e = S(1), i = R(() => {
|
|
4279
4276
|
const k = o.survey ? o.survey : o.model;
|
|
4280
|
-
return
|
|
4277
|
+
return he(k);
|
|
4281
4278
|
}), a = R(() => i.value.activePage ? i.value.activePage.id : ""), d = () => {
|
|
4282
4279
|
const k = a.value;
|
|
4283
4280
|
return !!i.value && k + e.value.toString();
|
|
@@ -4286,7 +4283,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4286
4283
|
), v = R(() => i.value.css), f = R(() => "page" + d()), g = () => c.value ? (s.value || (s.value = i.value.processedCompletedHtml), s.value) : "";
|
|
4287
4284
|
return B(() => i.value), E(() => {
|
|
4288
4285
|
if (!!i.value) {
|
|
4289
|
-
i.value.needRenderIcons &&
|
|
4286
|
+
i.value.needRenderIcons && De.renderIcons();
|
|
4290
4287
|
var k = n.value;
|
|
4291
4288
|
k && i.value.afterRenderSurvey(k), i.value.renderCallback = () => {
|
|
4292
4289
|
var P, L;
|
|
@@ -4296,7 +4293,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4296
4293
|
}), O(() => {
|
|
4297
4294
|
i.value.stopTimer(), i.value.renderCallback = void 0;
|
|
4298
4295
|
}), (k, P) => {
|
|
4299
|
-
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");
|
|
4300
4297
|
return t(), u("div", {
|
|
4301
4298
|
class: l(i.value.getRootCss()),
|
|
4302
4299
|
style: $(i.value.themeVariables),
|
|
@@ -4309,8 +4306,8 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4309
4306
|
class: l(v.value.rootBackgroundImage),
|
|
4310
4307
|
style: $(i.value.backgroundImageStyle)
|
|
4311
4308
|
}, null, 6)) : m("", !0),
|
|
4312
|
-
p("form",
|
|
4313
|
-
i.value.hasLogo ? m("", !0) : (t(), u("div",
|
|
4309
|
+
p("form", Ot, [
|
|
4310
|
+
i.value.hasLogo ? m("", !0) : (t(), u("div", Vt)),
|
|
4314
4311
|
p("div", {
|
|
4315
4312
|
class: l(v.value.container)
|
|
4316
4313
|
}, [
|
|
@@ -4339,7 +4336,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4339
4336
|
container: "contentTop",
|
|
4340
4337
|
needRenderWrapper: !0
|
|
4341
4338
|
}, null, 8, ["survey"])),
|
|
4342
|
-
(t(), y(
|
|
4339
|
+
(t(), y(Q, {
|
|
4343
4340
|
key: f.value,
|
|
4344
4341
|
survey: i.value,
|
|
4345
4342
|
page: i.value.activePage,
|
|
@@ -4350,7 +4347,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4350
4347
|
container: "contentBottom",
|
|
4351
4348
|
needRenderWrapper: !0
|
|
4352
4349
|
}, null, 8, ["survey"]))
|
|
4353
|
-
], 14,
|
|
4350
|
+
], 14, Ft),
|
|
4354
4351
|
(t(), y(N("sv-components-container"), {
|
|
4355
4352
|
survey: i.value,
|
|
4356
4353
|
container: "right",
|
|
@@ -4362,36 +4359,36 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4362
4359
|
container: "footer",
|
|
4363
4360
|
needRenderWrapper: !1
|
|
4364
4361
|
}, null, 8, ["survey"])),
|
|
4365
|
-
c.value ? (t(), u("div",
|
|
4362
|
+
c.value ? (t(), u("div", Wt, [
|
|
4366
4363
|
p("div", {
|
|
4367
4364
|
innerHTML: g(),
|
|
4368
4365
|
class: l(i.value.completedCss)
|
|
4369
|
-
}, null, 10,
|
|
4366
|
+
}, null, 10, zt)
|
|
4370
4367
|
])) : m("", !0),
|
|
4371
4368
|
i.value.state === "completedbefore" ? (t(), u("div", {
|
|
4372
4369
|
key: 2,
|
|
4373
4370
|
class: l(v.value.body),
|
|
4374
4371
|
innerHTML: i.value.processedCompletedBeforeHtml
|
|
4375
|
-
}, null, 10,
|
|
4372
|
+
}, null, 10, Ut)) : m("", !0),
|
|
4376
4373
|
i.value.state === "loading" ? (t(), u("div", {
|
|
4377
4374
|
key: 3,
|
|
4378
4375
|
class: l(v.value.body),
|
|
4379
4376
|
innerHTML: i.value.processedLoadingHtml
|
|
4380
|
-
}, null, 10,
|
|
4377
|
+
}, null, 10, Kt)) : m("", !0),
|
|
4381
4378
|
i.value.state === "empty" ? (t(), u("div", {
|
|
4382
4379
|
key: 4,
|
|
4383
4380
|
class: l(v.value.bodyEmpty)
|
|
4384
4381
|
}, I(i.value.emptySurveyText), 3)) : m("", !0)
|
|
4385
4382
|
], 2)
|
|
4386
4383
|
]),
|
|
4387
|
-
i.value.showBrandInfo ? (t(), y(
|
|
4388
|
-
h(
|
|
4384
|
+
i.value.showBrandInfo ? (t(), y(J, { key: 1 })) : m("", !0),
|
|
4385
|
+
h(de, {
|
|
4389
4386
|
model: i.value.notifier
|
|
4390
4387
|
}, null, 8, ["model"])
|
|
4391
4388
|
], 6);
|
|
4392
4389
|
};
|
|
4393
4390
|
}
|
|
4394
|
-
}),
|
|
4391
|
+
}), jt = /* @__PURE__ */ C({
|
|
4395
4392
|
__name: "Notifier",
|
|
4396
4393
|
props: {
|
|
4397
4394
|
model: {}
|
|
@@ -4415,7 +4412,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4415
4412
|
]);
|
|
4416
4413
|
};
|
|
4417
4414
|
}
|
|
4418
|
-
}),
|
|
4415
|
+
}), Qt = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], Zt = { key: 1 }, Gt = /* @__PURE__ */ C({
|
|
4419
4416
|
__name: "QuestionOther",
|
|
4420
4417
|
props: {
|
|
4421
4418
|
question: {},
|
|
@@ -4443,11 +4440,11 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4443
4440
|
onInput: n[1] || (n[1] = (s) => {
|
|
4444
4441
|
o.question.onOtherValueInput(s);
|
|
4445
4442
|
})
|
|
4446
|
-
}, null, 46,
|
|
4447
|
-
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)
|
|
4448
4445
|
], 2));
|
|
4449
4446
|
}
|
|
4450
|
-
}),
|
|
4447
|
+
}), Xt = ["disabled", "value", "title"], Jt = /* @__PURE__ */ C({
|
|
4451
4448
|
__name: "SurveyNavigationButton",
|
|
4452
4449
|
props: {
|
|
4453
4450
|
item: {}
|
|
@@ -4463,9 +4460,9 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4463
4460
|
title: s.item.getTooltip(),
|
|
4464
4461
|
onMousedown: n,
|
|
4465
4462
|
onClick: e[0] || (e[0] = (...i) => s.item.action && s.item.action(...i))
|
|
4466
|
-
}, null, 42,
|
|
4463
|
+
}, null, 42, Xt)) : m("", !0);
|
|
4467
4464
|
}
|
|
4468
|
-
}),
|
|
4465
|
+
}), re = /* @__PURE__ */ C({
|
|
4469
4466
|
__name: "PopupSurvey",
|
|
4470
4467
|
props: {
|
|
4471
4468
|
survey: {},
|
|
@@ -4483,14 +4480,14 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4483
4480
|
n.value.changeExpandCollapse();
|
|
4484
4481
|
}, d = () => {
|
|
4485
4482
|
n.value.hide();
|
|
4486
|
-
}, c = () => "
|
|
4483
|
+
}, c = () => "SurveyComponent", v = () => {
|
|
4487
4484
|
n.value.onScroll();
|
|
4488
4485
|
};
|
|
4489
4486
|
B(() => n.value);
|
|
4490
|
-
const f =
|
|
4487
|
+
const f = G(
|
|
4491
4488
|
() => o.survey,
|
|
4492
4489
|
(g) => {
|
|
4493
|
-
const k = new
|
|
4490
|
+
const k = new Pe(null, g);
|
|
4494
4491
|
o.isExpanded !== void 0 && (k.isExpanded = o.isExpanded), o.closeOnCompleteTimeout !== void 0 && (k.closeOnCompleteTimeout = o.closeOnCompleteTimeout), k.isShowing = !0, n.value = k;
|
|
4495
4492
|
},
|
|
4496
4493
|
{
|
|
@@ -4562,21 +4559,21 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4562
4559
|
], 6)) : m("", !0);
|
|
4563
4560
|
};
|
|
4564
4561
|
}
|
|
4565
|
-
}),
|
|
4562
|
+
}), Yt = ["innerHTML"], _t = /* @__PURE__ */ C({
|
|
4566
4563
|
__name: "CustomWidget",
|
|
4567
4564
|
props: {
|
|
4568
4565
|
question: {},
|
|
4569
4566
|
css: {}
|
|
4570
4567
|
},
|
|
4571
4568
|
setup(r) {
|
|
4572
|
-
const o = r, n =
|
|
4569
|
+
const o = r, n = S(), s = R(
|
|
4573
4570
|
() => o.question.customWidget.isDefaultRender
|
|
4574
4571
|
), e = R(
|
|
4575
4572
|
() => !!o.question.customWidget.htmlTemplate
|
|
4576
4573
|
), i = R(() => o.question.customWidget.htmlTemplate), a = R(() => "survey-" + o.question.getTemplate());
|
|
4577
4574
|
return E(() => {
|
|
4578
4575
|
o.question.customWidget.afterRender(o.question, n.value);
|
|
4579
|
-
}),
|
|
4576
|
+
}), U(() => {
|
|
4580
4577
|
o.question.customWidget.willUnmount(o.question, n.value);
|
|
4581
4578
|
}), (d, c) => (t(), u("div", {
|
|
4582
4579
|
ref_key: "root",
|
|
@@ -4585,7 +4582,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4585
4582
|
e.value ? (t(), u("div", {
|
|
4586
4583
|
key: 0,
|
|
4587
4584
|
innerHTML: i.value
|
|
4588
|
-
}, null, 8,
|
|
4585
|
+
}, null, 8, Yt)) : m("", !0),
|
|
4589
4586
|
s.value ? (t(), y(N(a.value), {
|
|
4590
4587
|
key: 1,
|
|
4591
4588
|
question: d.question,
|
|
@@ -4593,12 +4590,12 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4593
4590
|
}, null, 8, ["question", "css"])) : m("", !0)
|
|
4594
4591
|
], 512));
|
|
4595
4592
|
}
|
|
4596
|
-
}),
|
|
4593
|
+
}), xt = /* @__PURE__ */ C({
|
|
4597
4594
|
__name: "PopupModal",
|
|
4598
4595
|
setup(r) {
|
|
4599
4596
|
const o = F();
|
|
4600
4597
|
function n(e, i, a, d, c, v, f = "popup") {
|
|
4601
|
-
const g =
|
|
4598
|
+
const g = Me(
|
|
4602
4599
|
e,
|
|
4603
4600
|
i,
|
|
4604
4601
|
a,
|
|
@@ -4615,7 +4612,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4615
4612
|
e.onHide = () => {
|
|
4616
4613
|
o.value = void 0, a.dispose();
|
|
4617
4614
|
};
|
|
4618
|
-
const a =
|
|
4615
|
+
const a = Ne(
|
|
4619
4616
|
e,
|
|
4620
4617
|
i
|
|
4621
4618
|
);
|
|
@@ -4627,7 +4624,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4627
4624
|
V.showDialog = void 0;
|
|
4628
4625
|
})), (e, i) => {
|
|
4629
4626
|
const a = q("sv-popup-container");
|
|
4630
|
-
return o.value ? (t(), y(
|
|
4627
|
+
return o.value ? (t(), y(be, {
|
|
4631
4628
|
key: 0,
|
|
4632
4629
|
to: o.value.container
|
|
4633
4630
|
}, [
|
|
@@ -4635,7 +4632,7 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4635
4632
|
], 8, ["to"])) : m("", !0);
|
|
4636
4633
|
};
|
|
4637
4634
|
}
|
|
4638
|
-
}),
|
|
4635
|
+
}), ei = /* @__PURE__ */ C({
|
|
4639
4636
|
__name: "CharacterCounter",
|
|
4640
4637
|
props: {
|
|
4641
4638
|
counter: {},
|
|
@@ -4647,14 +4644,14 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4647
4644
|
class: l(n.remainingCharacterCounter)
|
|
4648
4645
|
}, I(n.counter.remainingCharacterCounter), 3));
|
|
4649
4646
|
}
|
|
4650
|
-
}),
|
|
4647
|
+
}), si = /* @__PURE__ */ C({
|
|
4651
4648
|
__name: "Composite",
|
|
4652
4649
|
props: {
|
|
4653
4650
|
question: {},
|
|
4654
4651
|
css: {}
|
|
4655
4652
|
},
|
|
4656
4653
|
setup(r) {
|
|
4657
|
-
const o = r, n =
|
|
4654
|
+
const o = r, n = S(null);
|
|
4658
4655
|
M(o, n);
|
|
4659
4656
|
const s = R(() => o.question.contentPanel);
|
|
4660
4657
|
return (e, i) => {
|
|
@@ -4667,14 +4664,14 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4667
4664
|
}, null, 8, ["question", "css"]);
|
|
4668
4665
|
};
|
|
4669
4666
|
}
|
|
4670
|
-
}),
|
|
4667
|
+
}), ni = /* @__PURE__ */ C({
|
|
4671
4668
|
__name: "Custom",
|
|
4672
4669
|
props: {
|
|
4673
4670
|
question: {},
|
|
4674
4671
|
css: {}
|
|
4675
4672
|
},
|
|
4676
4673
|
setup(r) {
|
|
4677
|
-
const o = r, n =
|
|
4674
|
+
const o = r, n = S(null);
|
|
4678
4675
|
M(o, n);
|
|
4679
4676
|
const s = R(() => o.question.contentQuestion), e = (i) => ee(i);
|
|
4680
4677
|
return (i, a) => (t(), y(N(e(s.value)), {
|
|
@@ -4683,16 +4680,16 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4683
4680
|
css: i.css
|
|
4684
4681
|
}, null, 8, ["question", "css"]));
|
|
4685
4682
|
}
|
|
4686
|
-
}),
|
|
4687
|
-
|
|
4688
|
-
],
|
|
4683
|
+
}), oi = /* @__PURE__ */ p("use", { "xlink:href": "#icon-timercircle" }, null, -1), ti = [
|
|
4684
|
+
oi
|
|
4685
|
+
], ae = 440, ii = /* @__PURE__ */ C({
|
|
4689
4686
|
__name: "TimerPanel",
|
|
4690
4687
|
props: {
|
|
4691
4688
|
model: {},
|
|
4692
4689
|
css: {}
|
|
4693
4690
|
},
|
|
4694
4691
|
setup(r) {
|
|
4695
|
-
const o = r, n = R(() =>
|
|
4692
|
+
const o = r, n = R(() => ae * o.model.progress), s = R(() => o.model.text);
|
|
4696
4693
|
return B(() => o.model), (e, i) => e.model.isRunning && e.model.showTimerAsClock ? (t(), u("div", {
|
|
4697
4694
|
key: 0,
|
|
4698
4695
|
class: l(e.model.rootCss)
|
|
@@ -4700,8 +4697,8 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4700
4697
|
e.model.showProgress ? (t(), u("svg", {
|
|
4701
4698
|
key: 0,
|
|
4702
4699
|
class: l(e.model.getProgressCss()),
|
|
4703
|
-
style: $({ strokeDasharray:
|
|
4704
|
-
},
|
|
4700
|
+
style: $({ strokeDasharray: ae, strokeDashoffset: n.value })
|
|
4701
|
+
}, ti, 6)) : m("", !0),
|
|
4705
4702
|
p("div", {
|
|
4706
4703
|
class: l(e.model.textContainerCss)
|
|
4707
4704
|
}, [
|
|
@@ -4721,25 +4718,25 @@ const et = /* @__PURE__ */ Go(Xo, [["render", xo]]), st = ["aria-label"], nt = /
|
|
|
4721
4718
|
]);
|
|
4722
4719
|
}
|
|
4723
4720
|
});
|
|
4724
|
-
function
|
|
4725
|
-
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", {
|
|
4726
4723
|
mounted: function(o, n) {
|
|
4727
4724
|
const s = { ...n.value };
|
|
4728
|
-
s.disableTabStop || (o.tabIndex = 0), o.addEventListener("keyup", (e) => (e.preventDefault(), e.stopPropagation(),
|
|
4729
|
-
|
|
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);
|
|
4730
4727
|
}), o.addEventListener("blur", (e) => {
|
|
4731
|
-
|
|
4728
|
+
Ee(e);
|
|
4732
4729
|
});
|
|
4733
4730
|
}
|
|
4734
4731
|
});
|
|
4735
4732
|
}
|
|
4736
|
-
const
|
|
4733
|
+
const ui = {
|
|
4737
4734
|
install(r) {
|
|
4738
|
-
|
|
4735
|
+
li(r);
|
|
4739
4736
|
}
|
|
4740
4737
|
};
|
|
4741
4738
|
export {
|
|
4742
|
-
|
|
4739
|
+
ui as surveyPlugin,
|
|
4743
4740
|
B as useBase,
|
|
4744
4741
|
W as useLocString,
|
|
4745
4742
|
M as useQuestion
|