survey-vue3-ui 1.9.105 → 1.9.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/survey-vue3-ui.es.js +379 -389
- package/survey-vue3-ui.umd.js +1 -1
- package/types/Errors.vue.d.ts +1 -1
- package/types/MultipletextItem.vue.d.ts +5 -5
- package/types/components/action-bar/ActionBar.vue.d.ts +6 -0
- package/types/components/progress/Progress.vue.d.ts +6 -0
package/survey-vue3-ui.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { shallowReactive as me, watch as
|
|
2
|
-
import { Base as ke, RendererFactory as X, DropdownListModel as fe, Helpers as Ie, DropdownMultiSelectListModel as we,
|
|
1
|
+
import { shallowReactive as me, watch as Z, onBeforeUnmount as U, onMounted as A, ref as S, shallowRef as F, triggerRef as oe, unref as b, isRef as ce, defineComponent as C, computed as T, onUpdated as G, resolveComponent as q, openBlock as t, createElementBlock as u, normalizeClass as l, createVNode as h, createCommentVNode as m, Fragment as w, renderList as R, createBlock as y, createElementVNode as p, normalizeStyle as $, onUnmounted as V, withDirectives as D, resolveDynamicComponent as N, vShow as H, toDisplayString as I, vModelCheckbox as z, vModelRadio as Y, resolveDirective as _, vModelSelect as pe, vModelText as ve, getCurrentInstance as x, withCtx as qe, createStaticVNode as ye, normalizeProps as ge, guardReactiveProps as Ce, toRaw as he, Teleport as be } from "vue";
|
|
2
|
+
import { Base as ke, RendererFactory as X, DropdownListModel as fe, Helpers as Ie, DropdownMultiSelectListModel as we, doKey2ClickUp as de, createSvg as Se, ActionDropdownViewModel as Te, getActionDropdownButtonTarget as Re, createPopupViewModel as te, SurveyProgressModel as ie, SurveyProgressButtonsModel as $e, TOCModel as Be, SvgRegistry as Le, PopupSurveyModel as De, settings as O, createDialogOptions as Pe, createPopupModalViewModel as Me, doKey2ClickDown as Ne, doKey2ClickBlur as He } from "survey-core";
|
|
3
3
|
ke.createPropertiesHash = () => me({});
|
|
4
4
|
function Ae(r) {
|
|
5
5
|
return !r || r.__vueImplemented ? !1 : (r.createArrayCoreHandler = (o, n) => {
|
|
@@ -25,7 +25,7 @@ function le(r, o) {
|
|
|
25
25
|
}
|
|
26
26
|
function B(r, o, n) {
|
|
27
27
|
let s = !1;
|
|
28
|
-
const e =
|
|
28
|
+
const e = Z(
|
|
29
29
|
r,
|
|
30
30
|
(i, a) => {
|
|
31
31
|
o && o(i), a && (le(a, s), n && n(a)), s = Ae(i);
|
|
@@ -40,18 +40,18 @@ function B(r, o, n) {
|
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
function M(r, o, n, s) {
|
|
43
|
-
B(() => r.question, n, s),
|
|
43
|
+
B(() => r.question, n, s), A(() => {
|
|
44
44
|
r.question && r.question.afterRenderQuestionElement(o.value);
|
|
45
45
|
}), U(() => {
|
|
46
46
|
r.question.beforeDestroyQuestionElement(o.value);
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
function W(r) {
|
|
50
|
-
const o =
|
|
50
|
+
const o = S(), n = (e) => {
|
|
51
51
|
o.value = e.renderedHtml, e.onChanged = () => {
|
|
52
52
|
o.value = e.renderedHtml;
|
|
53
53
|
};
|
|
54
|
-
}, s =
|
|
54
|
+
}, s = Z(
|
|
55
55
|
r,
|
|
56
56
|
(e, i) => {
|
|
57
57
|
i && (i.onChanged = () => {
|
|
@@ -66,7 +66,7 @@ function W(r) {
|
|
|
66
66
|
function ee(r) {
|
|
67
67
|
return r.customWidget ? "survey-customwidget" : r.isDefaultRendering && r.isDefaultRendering() || r.isPanel ? "survey-" + r.getTemplate() : r.getComponentName();
|
|
68
68
|
}
|
|
69
|
-
const
|
|
69
|
+
const Ee = /* @__PURE__ */ C({
|
|
70
70
|
__name: "Page",
|
|
71
71
|
props: {
|
|
72
72
|
survey: {},
|
|
@@ -74,12 +74,12 @@ const Oe = /* @__PURE__ */ C({
|
|
|
74
74
|
css: {}
|
|
75
75
|
},
|
|
76
76
|
setup(r) {
|
|
77
|
-
const o = r, n =
|
|
77
|
+
const o = r, n = S(null);
|
|
78
78
|
B(() => o.page);
|
|
79
|
-
const s =
|
|
80
|
-
return
|
|
79
|
+
const s = T(() => o.page._showDescription), e = T(() => o.page.rows);
|
|
80
|
+
return A(() => {
|
|
81
81
|
o.survey && o.survey.afterRenderPage(n.value);
|
|
82
|
-
}),
|
|
82
|
+
}), G(() => {
|
|
83
83
|
o.survey.afterRenderPage(n.value);
|
|
84
84
|
}), (i, a) => {
|
|
85
85
|
const d = q("survey-element-title"), c = q("survey-string"), v = q("survey-row");
|
|
@@ -100,7 +100,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
100
100
|
locString: i.page.locDescription
|
|
101
101
|
}, null, 8, ["locString"])
|
|
102
102
|
], 2)) : m("", !0),
|
|
103
|
-
(t(!0), u(w, null,
|
|
103
|
+
(t(!0), u(w, null, R(e.value, (f, g) => (t(), u(w, null, [
|
|
104
104
|
f.visible ? (t(), y(v, {
|
|
105
105
|
key: i.page.id + "_" + g,
|
|
106
106
|
row: f,
|
|
@@ -111,14 +111,14 @@ const Oe = /* @__PURE__ */ C({
|
|
|
111
111
|
], 2);
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
|
-
}), Ve = ["src", "width", "height", "alt"],
|
|
114
|
+
}), Ve = ["src", "width", "height", "alt"], Oe = ["src", "width", "height", "alt"], Fe = /* @__PURE__ */ C({
|
|
115
115
|
__name: "Header",
|
|
116
116
|
props: {
|
|
117
117
|
survey: {}
|
|
118
118
|
},
|
|
119
119
|
setup(r) {
|
|
120
|
-
const o = r, n =
|
|
121
|
-
return
|
|
120
|
+
const o = r, n = S(), s = W(() => o.survey.locLogo);
|
|
121
|
+
return A(() => {
|
|
122
122
|
var e = n.value;
|
|
123
123
|
e && o.survey && o.survey.afterRenderHeader(e);
|
|
124
124
|
}), (e, i) => {
|
|
@@ -179,7 +179,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
179
179
|
width: e.survey.renderedStyleLogoWidth,
|
|
180
180
|
height: e.survey.renderedStyleLogoHeight
|
|
181
181
|
})
|
|
182
|
-
}, null, 14,
|
|
182
|
+
}, null, 14, Oe)
|
|
183
183
|
], 2)) : m("", !0),
|
|
184
184
|
p("div", {
|
|
185
185
|
class: l(e.survey.css.headerClose)
|
|
@@ -187,7 +187,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
187
187
|
], 2)) : m("", !0);
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
|
-
}),
|
|
190
|
+
}), We = /* @__PURE__ */ C({
|
|
191
191
|
__name: "Row",
|
|
192
192
|
props: {
|
|
193
193
|
row: {},
|
|
@@ -195,17 +195,17 @@ const Oe = /* @__PURE__ */ C({
|
|
|
195
195
|
survey: {}
|
|
196
196
|
},
|
|
197
197
|
setup(r) {
|
|
198
|
-
const o = r, n =
|
|
198
|
+
const o = r, n = T(
|
|
199
199
|
() => o.row.visibleElements
|
|
200
|
-
), s =
|
|
201
|
-
return B(() => o.row),
|
|
200
|
+
), s = S();
|
|
201
|
+
return B(() => o.row), A(() => {
|
|
202
202
|
if (o.row && !o.row.isNeedRender) {
|
|
203
203
|
const e = s.value;
|
|
204
204
|
setTimeout(() => {
|
|
205
205
|
o.row.startLazyRendering(e);
|
|
206
206
|
}, 10);
|
|
207
207
|
}
|
|
208
|
-
}),
|
|
208
|
+
}), V(() => {
|
|
209
209
|
const e = o.row;
|
|
210
210
|
e && (e.isNeedRender = !o.row.isLazyRendering());
|
|
211
211
|
}), (e, i) => {
|
|
@@ -215,7 +215,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
215
215
|
ref_key: "root",
|
|
216
216
|
ref: s
|
|
217
217
|
}, [
|
|
218
|
-
(t(!0), u(w, null,
|
|
218
|
+
(t(!0), u(w, null, R(n.value, (c) => (t(), u("div", {
|
|
219
219
|
style: $(c.rootStyle)
|
|
220
220
|
}, [
|
|
221
221
|
c.isPanel ? m("", !0) : (t(), y(a, {
|
|
@@ -235,7 +235,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
235
235
|
], 2);
|
|
236
236
|
};
|
|
237
237
|
}
|
|
238
|
-
}),
|
|
238
|
+
}), ze = ["id", "role", "aria-required", "aria-invalid", "aria-labelledby", "data-name"], Ue = /* @__PURE__ */ C({
|
|
239
239
|
__name: "Element",
|
|
240
240
|
props: {
|
|
241
241
|
survey: {},
|
|
@@ -244,8 +244,8 @@ const Oe = /* @__PURE__ */ C({
|
|
|
244
244
|
css: {}
|
|
245
245
|
},
|
|
246
246
|
setup(r) {
|
|
247
|
-
const o = r, n =
|
|
248
|
-
return B(() => o.element),
|
|
247
|
+
const o = r, n = S(null), s = T(() => !o.element.isPanel && o.element.showErrorOnTop), e = T(() => !o.element.isPanel && o.element.showErrorOnBottom), i = (d) => d.customWidget ? "survey-customwidget" : d.getType() === "panel" || d.isDefaultRendering() ? "survey-" + d.getTemplate() : d.getComponentName(), a = (d) => d.cssContent;
|
|
248
|
+
return B(() => o.element), A(() => {
|
|
249
249
|
o.element.isPanel || o.element.afterRender(n.value);
|
|
250
250
|
}), (d, c) => {
|
|
251
251
|
const v = q("survey-errors"), f = q("survey-element-header"), g = q("survey-string"), k = q("survey-question-comment");
|
|
@@ -304,13 +304,8 @@ const Oe = /* @__PURE__ */ C({
|
|
|
304
304
|
element: d.element,
|
|
305
305
|
location: "bottom"
|
|
306
306
|
}, null, 8, ["element"])) : m("", !0),
|
|
307
|
-
!d.element.isPanel && d.element.isErrorsModeTooltip ? (t(), y(v, {
|
|
308
|
-
key: 4,
|
|
309
|
-
element: d.element,
|
|
310
|
-
location: "tooltip"
|
|
311
|
-
}, null, 8, ["element"])) : m("", !0),
|
|
312
307
|
!d.element.isPanel && d.element.hasDescriptionUnderInput ? (t(), u("div", {
|
|
313
|
-
key:
|
|
308
|
+
key: 4,
|
|
314
309
|
class: l(d.element.cssClasses.descriptionUnderInput)
|
|
315
310
|
}, [
|
|
316
311
|
h(g, {
|
|
@@ -330,14 +325,14 @@ const Oe = /* @__PURE__ */ C({
|
|
|
330
325
|
element: d.element,
|
|
331
326
|
location: "bottom"
|
|
332
327
|
}, null, 8, ["element"])) : m("", !0)
|
|
333
|
-
], 42,
|
|
328
|
+
], 42, ze)) : d.element.skeletonComponentName ? (t(), y(N(d.element.skeletonComponentName), {
|
|
334
329
|
key: 1,
|
|
335
330
|
element: d.element,
|
|
336
331
|
css: d.css
|
|
337
332
|
}, null, 8, ["element", "css"])) : m("", !0);
|
|
338
333
|
};
|
|
339
334
|
}
|
|
340
|
-
}),
|
|
335
|
+
}), Ke = ["id"], je = ["id"], Qe = /* @__PURE__ */ C({
|
|
341
336
|
__name: "Panel",
|
|
342
337
|
props: {
|
|
343
338
|
question: {},
|
|
@@ -345,14 +340,14 @@ const Oe = /* @__PURE__ */ C({
|
|
|
345
340
|
css: {}
|
|
346
341
|
},
|
|
347
342
|
setup(r) {
|
|
348
|
-
const o = r, n =
|
|
349
|
-
return B(() => o.question),
|
|
343
|
+
const o = r, n = S(!1), s = S(null), e = T(() => o.question.rows), i = T(() => o.question.survey), a = T(() => n.value);
|
|
344
|
+
return B(() => o.question), A(() => {
|
|
350
345
|
o.question.survey && o.question.survey.afterRenderPanel(o.question, s.value), n.value = o.question.isCollapsed;
|
|
351
346
|
const d = o.question;
|
|
352
347
|
d.stateChangedCallback = () => {
|
|
353
348
|
n.value = o.question.isCollapsed;
|
|
354
349
|
};
|
|
355
|
-
}),
|
|
350
|
+
}), V(() => {
|
|
356
351
|
const d = o.question;
|
|
357
352
|
d.stateChangedCallback = null;
|
|
358
353
|
}), (d, c) => {
|
|
@@ -383,7 +378,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
383
378
|
style: $({ paddingLeft: d.question.innerPaddingLeft }),
|
|
384
379
|
class: l(d.question.cssClasses.panel.content)
|
|
385
380
|
}, [
|
|
386
|
-
(t(!0), u(w, null,
|
|
381
|
+
(t(!0), u(w, null, R(e.value, (P, L) => (t(), u(w, null, [
|
|
387
382
|
P.visible ? (t(), y(g, {
|
|
388
383
|
key: d.question.id + "_" + L,
|
|
389
384
|
row: P,
|
|
@@ -394,11 +389,11 @@ const Oe = /* @__PURE__ */ C({
|
|
|
394
389
|
h(k, {
|
|
395
390
|
model: d.question.getFooterToolbar()
|
|
396
391
|
}, null, 8, ["model"])
|
|
397
|
-
], 14,
|
|
398
|
-
], 10,
|
|
392
|
+
], 14, je))
|
|
393
|
+
], 10, Ke)) : m("", !0);
|
|
399
394
|
};
|
|
400
395
|
}
|
|
401
|
-
}),
|
|
396
|
+
}), Ze = /* @__PURE__ */ C({
|
|
402
397
|
__name: "ElementHeader",
|
|
403
398
|
props: {
|
|
404
399
|
element: {},
|
|
@@ -435,7 +430,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
435
430
|
], 2);
|
|
436
431
|
};
|
|
437
432
|
}
|
|
438
|
-
}),
|
|
433
|
+
}), Ge = /* @__PURE__ */ C({
|
|
439
434
|
__name: "String",
|
|
440
435
|
props: {
|
|
441
436
|
locString: {}
|
|
@@ -445,10 +440,10 @@ const Oe = /* @__PURE__ */ C({
|
|
|
445
440
|
locString: o.locString.renderAsData
|
|
446
441
|
}, null, 8, ["locString"]));
|
|
447
442
|
}
|
|
448
|
-
}),
|
|
443
|
+
}), Xe = ["innerHTML"], Je = {
|
|
449
444
|
key: 1,
|
|
450
445
|
class: "sv-string-viewer"
|
|
451
|
-
},
|
|
446
|
+
}, Ye = /* @__PURE__ */ C({
|
|
452
447
|
__name: "StringViewer",
|
|
453
448
|
props: {
|
|
454
449
|
locString: {}
|
|
@@ -459,9 +454,9 @@ const Oe = /* @__PURE__ */ C({
|
|
|
459
454
|
key: 0,
|
|
460
455
|
class: "sv-string-viewer",
|
|
461
456
|
innerHTML: b(n)
|
|
462
|
-
}, null, 8,
|
|
457
|
+
}, null, 8, Xe)) : (t(), u("span", Je, I(b(n)), 1));
|
|
463
458
|
}
|
|
464
|
-
}),
|
|
459
|
+
}), _e = ["innerHTML"], xe = /* @__PURE__ */ C({
|
|
465
460
|
__name: "StringEditor",
|
|
466
461
|
props: {
|
|
467
462
|
locString: {}
|
|
@@ -480,7 +475,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
480
475
|
innerHTML: e.locString.renderedHtml,
|
|
481
476
|
onBlur: n,
|
|
482
477
|
onClick: s
|
|
483
|
-
}, null, 40,
|
|
478
|
+
}, null, 40, _e)) : (t(), u("span", {
|
|
484
479
|
key: 1,
|
|
485
480
|
class: "sv-string-editor",
|
|
486
481
|
contenteditable: "true",
|
|
@@ -488,7 +483,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
488
483
|
onClick: s
|
|
489
484
|
}, I(e.locString.renderedHtml), 33));
|
|
490
485
|
}
|
|
491
|
-
}),
|
|
486
|
+
}), es = ["id"], ss = /* @__PURE__ */ C({
|
|
492
487
|
__name: "Skeleton",
|
|
493
488
|
props: {
|
|
494
489
|
element: {}
|
|
@@ -498,15 +493,15 @@ const Oe = /* @__PURE__ */ C({
|
|
|
498
493
|
return B(() => o.element), (n, s) => (t(), u("div", {
|
|
499
494
|
class: "sv-skeleton-element",
|
|
500
495
|
id: n.element.id
|
|
501
|
-
}, null, 8,
|
|
496
|
+
}, null, 8, es));
|
|
502
497
|
}
|
|
503
|
-
}),
|
|
498
|
+
}), ns = ["id"], os = ["value"], ts = /* @__PURE__ */ C({
|
|
504
499
|
__name: "Text",
|
|
505
500
|
props: {
|
|
506
501
|
question: {}
|
|
507
502
|
},
|
|
508
503
|
setup(r) {
|
|
509
|
-
const o = r, n =
|
|
504
|
+
const o = r, n = S(null);
|
|
510
505
|
return M(o, n), (s, e) => {
|
|
511
506
|
const i = q("survey-text-input");
|
|
512
507
|
return s.question.isReadOnlyRenderDiv() ? (t(), u("div", {
|
|
@@ -522,8 +517,8 @@ const Oe = /* @__PURE__ */ C({
|
|
|
522
517
|
p("datalist", {
|
|
523
518
|
id: s.question.dataListId
|
|
524
519
|
}, [
|
|
525
|
-
(t(!0), u(w, null,
|
|
526
|
-
], 8,
|
|
520
|
+
(t(!0), u(w, null, R(s.question.dataList, (a) => (t(), u("option", { value: a }, null, 8, os))), 256))
|
|
521
|
+
], 8, ns)
|
|
527
522
|
], 512)) : (t(), y(i, {
|
|
528
523
|
key: 2,
|
|
529
524
|
question: s.question,
|
|
@@ -532,7 +527,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
532
527
|
}, null, 8, ["question"]));
|
|
533
528
|
};
|
|
534
529
|
}
|
|
535
|
-
}),
|
|
530
|
+
}), is = ["disabled", "type", "maxlength", "min", "max", "step", "size", "id", "list", "placeholder", "autocomplete", "value", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], ls = { key: 1 }, rs = ["disabled", "type", "maxlength", "min", "max", "step", "size", "id", "list", "placeholder", "autocomplete", "value", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], as = /* @__PURE__ */ C({
|
|
536
531
|
__name: "TextInput",
|
|
537
532
|
props: {
|
|
538
533
|
question: {}
|
|
@@ -540,10 +535,10 @@ const Oe = /* @__PURE__ */ C({
|
|
|
540
535
|
setup(r) {
|
|
541
536
|
const o = r;
|
|
542
537
|
B(() => o.question);
|
|
543
|
-
const n =
|
|
538
|
+
const n = T(() => o.question.inputStyle);
|
|
544
539
|
return (s, e) => {
|
|
545
540
|
const i = q("sv-character-counter");
|
|
546
|
-
return s.question.getMaxLength() ? (t(), u("div",
|
|
541
|
+
return s.question.getMaxLength() ? (t(), u("div", ls, [
|
|
547
542
|
p("input", {
|
|
548
543
|
disabled: s.question.isInputReadOnly,
|
|
549
544
|
class: l(s.question.getControlClass()),
|
|
@@ -569,7 +564,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
569
564
|
"aria-label": s.question.a11y_input_ariaLabel,
|
|
570
565
|
"aria-invalid": s.question.a11y_input_ariaInvalid,
|
|
571
566
|
"aria-describedby": s.question.a11y_input_ariaDescribedBy
|
|
572
|
-
}, null, 46,
|
|
567
|
+
}, null, 46, rs),
|
|
573
568
|
h(i, {
|
|
574
569
|
counter: s.question.characterCounter,
|
|
575
570
|
remainingCharacterCounter: s.question.cssClasses.remainingCharacterCounter
|
|
@@ -601,34 +596,34 @@ const Oe = /* @__PURE__ */ C({
|
|
|
601
596
|
"aria-labelledby": s.question.a11y_input_ariaLabelledBy,
|
|
602
597
|
"aria-invalid": s.question.a11y_input_ariaInvalid,
|
|
603
598
|
"aria-describedby": s.question.a11y_input_ariaDescribedBy
|
|
604
|
-
}, null, 46,
|
|
599
|
+
}, null, 46, is));
|
|
605
600
|
};
|
|
606
601
|
}
|
|
607
|
-
}),
|
|
602
|
+
}), us = /* @__PURE__ */ p("legend", {
|
|
608
603
|
role: "presentation",
|
|
609
604
|
class: "sv-hidden"
|
|
610
|
-
}, null, -1),
|
|
605
|
+
}, null, -1), ds = /* @__PURE__ */ C({
|
|
611
606
|
__name: "Checkbox",
|
|
612
607
|
props: {
|
|
613
608
|
question: {}
|
|
614
609
|
},
|
|
615
610
|
setup(r) {
|
|
616
|
-
const o = r, n =
|
|
611
|
+
const o = r, n = S(null);
|
|
617
612
|
return M(o, n), (s, e) => {
|
|
618
613
|
const i = q("survey-checkbox-item"), a = q("survey-other-choice");
|
|
619
614
|
return t(), u("fieldset", {
|
|
620
615
|
class: l(s.question.getSelectBaseRootCss()),
|
|
621
616
|
role: "presentation"
|
|
622
617
|
}, [
|
|
623
|
-
|
|
624
|
-
s.question.hasHeadItems ? (t(!0), u(w, { key: 0 },
|
|
618
|
+
us,
|
|
619
|
+
s.question.hasHeadItems ? (t(!0), u(w, { key: 0 }, R(s.question.headItems, (d, c) => (t(), y(i, {
|
|
625
620
|
key: d.value,
|
|
626
621
|
class: l(s.question.getItemClass(d)),
|
|
627
622
|
question: s.question,
|
|
628
623
|
item: d,
|
|
629
624
|
index: "" + c
|
|
630
625
|
}, null, 8, ["class", "question", "item", "index"]))), 128)) : m("", !0),
|
|
631
|
-
!s.question.hasColumns && !s.question.blockedRow ? (t(!0), u(w, { key: 1 },
|
|
626
|
+
!s.question.hasColumns && !s.question.blockedRow ? (t(!0), u(w, { key: 1 }, R(s.question.bodyItems, (d, c) => (t(), y(i, {
|
|
632
627
|
key: d.value,
|
|
633
628
|
class: l(s.question.getItemClass(d)),
|
|
634
629
|
question: s.question,
|
|
@@ -639,7 +634,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
639
634
|
key: 2,
|
|
640
635
|
class: l(s.question.cssClasses.rootRow)
|
|
641
636
|
}, [
|
|
642
|
-
!s.question.hasColumns && s.question.blockedRow ? (t(!0), u(w, { key: 0 },
|
|
637
|
+
!s.question.hasColumns && s.question.blockedRow ? (t(!0), u(w, { key: 0 }, R(s.question.dataChoices, (d, c) => (t(), y(i, {
|
|
643
638
|
key: d.value,
|
|
644
639
|
class: l(s.question.getItemClass(d)),
|
|
645
640
|
question: s.question,
|
|
@@ -651,12 +646,12 @@ const Oe = /* @__PURE__ */ C({
|
|
|
651
646
|
key: 3,
|
|
652
647
|
class: l(s.question.cssClasses.rootMultiColumn)
|
|
653
648
|
}, [
|
|
654
|
-
(t(!0), u(w, null,
|
|
649
|
+
(t(!0), u(w, null, R(s.question.columns, (d, c) => (t(), u("div", {
|
|
655
650
|
key: c,
|
|
656
651
|
class: l(s.question.getColumnClass()),
|
|
657
652
|
role: "presentation"
|
|
658
653
|
}, [
|
|
659
|
-
(t(!0), u(w, null,
|
|
654
|
+
(t(!0), u(w, null, R(d, (v, f) => (t(), y(i, {
|
|
660
655
|
key: v.value,
|
|
661
656
|
class: l(s.question.getItemClass(v)),
|
|
662
657
|
question: s.question,
|
|
@@ -665,7 +660,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
665
660
|
}, null, 8, ["class", "question", "item", "index"]))), 128))
|
|
666
661
|
], 2))), 128))
|
|
667
662
|
], 2)) : m("", !0),
|
|
668
|
-
s.question.hasFootItems ? (t(!0), u(w, { key: 4 },
|
|
663
|
+
s.question.hasFootItems ? (t(!0), u(w, { key: 4 }, R(s.question.footItems, (d, c) => (t(), y(i, {
|
|
669
664
|
key: d.value,
|
|
670
665
|
class: l(s.question.getItemClass(d)),
|
|
671
666
|
question: s.question,
|
|
@@ -679,7 +674,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
679
674
|
], 2);
|
|
680
675
|
};
|
|
681
676
|
}
|
|
682
|
-
}),
|
|
677
|
+
}), ms = { role: "presentation" }, cs = ["aria-label"], ps = ["name", "value", "id", "disabled", "aria-describedby"], vs = ["name", "value", "id", "disabled", "aria-describedby"], qs = ["xlink:href"], ys = /* @__PURE__ */ C({
|
|
683
678
|
__name: "CheckboxItem",
|
|
684
679
|
props: {
|
|
685
680
|
question: {},
|
|
@@ -688,7 +683,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
688
683
|
hideLabel: { type: Boolean }
|
|
689
684
|
},
|
|
690
685
|
setup(r) {
|
|
691
|
-
const o = r, n =
|
|
686
|
+
const o = r, n = T({
|
|
692
687
|
get() {
|
|
693
688
|
return o.question.isAllSelected || "";
|
|
694
689
|
},
|
|
@@ -699,7 +694,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
699
694
|
});
|
|
700
695
|
return B(() => o.item), (s, e) => {
|
|
701
696
|
const i = q("survey-string");
|
|
702
|
-
return t(), u("div",
|
|
697
|
+
return t(), u("div", ms, [
|
|
703
698
|
p("label", {
|
|
704
699
|
class: l(s.question.getLabelClass(s.item)),
|
|
705
700
|
"aria-label": s.question.getAriaItemLabel(s.item)
|
|
@@ -715,7 +710,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
715
710
|
disabled: !s.question.getItemEnabled(s.item),
|
|
716
711
|
"aria-describedby": s.question.ariaDescribedBy,
|
|
717
712
|
class: l(s.question.cssClasses.itemControl)
|
|
718
|
-
}, null, 10,
|
|
713
|
+
}, null, 10, ps)), [
|
|
719
714
|
[z, n.value]
|
|
720
715
|
]) : m("", !0),
|
|
721
716
|
s.item != s.question.selectAllItem ? D((t(), u("input", {
|
|
@@ -729,7 +724,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
729
724
|
disabled: !s.question.getItemEnabled(s.item),
|
|
730
725
|
"aria-describedby": s.question.ariaDescribedBy,
|
|
731
726
|
class: l(s.question.cssClasses.itemControl)
|
|
732
|
-
}, null, 10,
|
|
727
|
+
}, null, 10, vs)), [
|
|
733
728
|
[z, s.question.renderedValue]
|
|
734
729
|
]) : m("", !0),
|
|
735
730
|
s.question.cssClasses.materialDecorator ? (t(), u("span", {
|
|
@@ -742,7 +737,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
742
737
|
}, [
|
|
743
738
|
p("use", {
|
|
744
739
|
"xlink:href": s.question.itemSvgIcon
|
|
745
|
-
}, null, 8,
|
|
740
|
+
}, null, 8, qs)
|
|
746
741
|
], 2)) : m("", !0)
|
|
747
742
|
], 2)) : m("", !0),
|
|
748
743
|
s.hideLabel ? m("", !0) : (t(), u("span", {
|
|
@@ -753,17 +748,17 @@ const Oe = /* @__PURE__ */ C({
|
|
|
753
748
|
locString: s.item.locText
|
|
754
749
|
}, null, 8, ["locString"])
|
|
755
750
|
], 2))
|
|
756
|
-
], 10,
|
|
751
|
+
], 10, cs)
|
|
757
752
|
]);
|
|
758
753
|
};
|
|
759
754
|
}
|
|
760
|
-
}),
|
|
755
|
+
}), gs = { key: 5 }, Cs = ["value"], hs = /* @__PURE__ */ C({
|
|
761
756
|
__name: "Radiogroup",
|
|
762
757
|
props: {
|
|
763
758
|
question: {}
|
|
764
759
|
},
|
|
765
760
|
setup(r) {
|
|
766
|
-
const o = r, n =
|
|
761
|
+
const o = r, n = S(null);
|
|
767
762
|
return M(o, n), (s, e) => {
|
|
768
763
|
const i = q("survey-radiogroup-item"), a = q("survey-other-choice");
|
|
769
764
|
return t(), u("fieldset", {
|
|
@@ -772,7 +767,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
772
767
|
ref_key: "root",
|
|
773
768
|
ref: n
|
|
774
769
|
}, [
|
|
775
|
-
!s.question.hasColumns && !s.question.blockedRow ? (t(!0), u(w, { key: 0 },
|
|
770
|
+
!s.question.hasColumns && !s.question.blockedRow ? (t(!0), u(w, { key: 0 }, R(s.question.visibleChoices, (d, c) => (t(), y(i, {
|
|
776
771
|
key: d.value,
|
|
777
772
|
class: l(s.question.getItemClass(d)),
|
|
778
773
|
question: s.question,
|
|
@@ -783,7 +778,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
783
778
|
key: 1,
|
|
784
779
|
class: l(s.question.cssClasses.rootRow)
|
|
785
780
|
}, [
|
|
786
|
-
!s.question.hasColumns && s.question.blockedRow ? (t(!0), u(w, { key: 0 },
|
|
781
|
+
!s.question.hasColumns && s.question.blockedRow ? (t(!0), u(w, { key: 0 }, R(s.question.dataChoices, (d, c) => (t(), y(i, {
|
|
787
782
|
key: d.value,
|
|
788
783
|
class: l(s.question.getItemClass(d)),
|
|
789
784
|
question: s.question,
|
|
@@ -795,11 +790,11 @@ const Oe = /* @__PURE__ */ C({
|
|
|
795
790
|
key: 2,
|
|
796
791
|
class: l(s.question.cssClasses.rootMultiColumn)
|
|
797
792
|
}, [
|
|
798
|
-
s.question.hasColumns ? (t(!0), u(w, { key: 0 },
|
|
793
|
+
s.question.hasColumns ? (t(!0), u(w, { key: 0 }, R(s.question.columns, (d, c) => (t(), u("div", {
|
|
799
794
|
class: l(s.question.getColumnClass()),
|
|
800
795
|
role: "presentation"
|
|
801
796
|
}, [
|
|
802
|
-
(t(!0), u(w, null,
|
|
797
|
+
(t(!0), u(w, null, R(d, (v, f) => (t(), y(i, {
|
|
803
798
|
key: v.value,
|
|
804
799
|
class: l(s.question.getItemClass(v)),
|
|
805
800
|
question: s.question,
|
|
@@ -808,7 +803,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
808
803
|
}, null, 8, ["class", "question", "item", "index"]))), 128))
|
|
809
804
|
], 2))), 256)) : m("", !0)
|
|
810
805
|
], 2)) : m("", !0),
|
|
811
|
-
s.question.hasFootItems ? (t(!0), u(w, { key: 3 },
|
|
806
|
+
s.question.hasFootItems ? (t(!0), u(w, { key: 3 }, R(s.question.footItems, (d, c) => (t(), y(i, {
|
|
812
807
|
key: d.value,
|
|
813
808
|
class: l(s.question.getItemClass(d)),
|
|
814
809
|
question: s.question,
|
|
@@ -819,7 +814,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
819
814
|
key: 4,
|
|
820
815
|
question: s.question
|
|
821
816
|
}, null, 8, ["question"])) : m("", !0),
|
|
822
|
-
s.question.showClearButtonInContent ? (t(), u("div",
|
|
817
|
+
s.question.showClearButtonInContent ? (t(), u("div", gs, [
|
|
823
818
|
p("input", {
|
|
824
819
|
type: "button",
|
|
825
820
|
class: l(s.question.cssClasses.clearButton),
|
|
@@ -827,12 +822,12 @@ const Oe = /* @__PURE__ */ C({
|
|
|
827
822
|
s.question.clearValue();
|
|
828
823
|
}),
|
|
829
824
|
value: s.question.clearButtonCaption
|
|
830
|
-
}, null, 10,
|
|
825
|
+
}, null, 10, Cs)
|
|
831
826
|
])) : m("", !0)
|
|
832
827
|
], 2);
|
|
833
828
|
};
|
|
834
829
|
}
|
|
835
|
-
}),
|
|
830
|
+
}), bs = { role: "presentation" }, ks = ["aria-label"], fs = ["name", "value", "id", "aria-describedby", "disabled"], Is = ["xlink:href"], ws = /* @__PURE__ */ C({
|
|
836
831
|
__name: "RadiogroupItem",
|
|
837
832
|
props: {
|
|
838
833
|
question: {},
|
|
@@ -844,7 +839,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
844
839
|
const o = r, n = (e) => o.question.getLabelClass(e), s = (e) => o.question.getControlLabelClass(e);
|
|
845
840
|
return B(() => o.item), (e, i) => {
|
|
846
841
|
const a = q("survey-string");
|
|
847
|
-
return t(), u("div",
|
|
842
|
+
return t(), u("div", bs, [
|
|
848
843
|
p("label", {
|
|
849
844
|
onMousedown: i[1] || (i[1] = (d) => e.question.onMouseDown()),
|
|
850
845
|
class: l(n(e.item)),
|
|
@@ -859,7 +854,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
859
854
|
"onUpdate:modelValue": i[0] || (i[0] = (d) => e.question.renderedValue = d),
|
|
860
855
|
disabled: !e.question.getItemEnabled(e.item),
|
|
861
856
|
class: l(e.question.cssClasses.itemControl)
|
|
862
|
-
}, null, 10,
|
|
857
|
+
}, null, 10, fs), [
|
|
863
858
|
[Y, e.question.renderedValue]
|
|
864
859
|
]),
|
|
865
860
|
e.question.cssClasses.materialDecorator ? (t(), u("span", {
|
|
@@ -872,7 +867,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
872
867
|
}, [
|
|
873
868
|
p("use", {
|
|
874
869
|
"xlink:href": e.question.itemSvgIcon
|
|
875
|
-
}, null, 8,
|
|
870
|
+
}, null, 8, Is)
|
|
876
871
|
], 2)) : m("", !0)
|
|
877
872
|
], 2)) : m("", !0),
|
|
878
873
|
e.hideLabel ? m("", !0) : (t(), u("span", {
|
|
@@ -883,17 +878,17 @@ const Oe = /* @__PURE__ */ C({
|
|
|
883
878
|
locString: e.item.locText
|
|
884
879
|
}, null, 8, ["locString"])
|
|
885
880
|
], 2))
|
|
886
|
-
], 42,
|
|
881
|
+
], 42, ks)
|
|
887
882
|
]);
|
|
888
883
|
};
|
|
889
884
|
}
|
|
890
|
-
}), Ss = ["src", "width", "height"],
|
|
885
|
+
}), Ss = ["src", "width", "height"], Ts = ["title"], Rs = { key: 0 }, $s = /* @__PURE__ */ C({
|
|
891
886
|
__name: "Signaturepad",
|
|
892
887
|
props: {
|
|
893
888
|
question: {}
|
|
894
889
|
},
|
|
895
890
|
setup(r) {
|
|
896
|
-
const o = r, n =
|
|
891
|
+
const o = r, n = S(null);
|
|
897
892
|
return M(o, n), (s, e) => {
|
|
898
893
|
const i = q("sv-svg-icon");
|
|
899
894
|
return t(), u("div", {
|
|
@@ -935,24 +930,24 @@ const Oe = /* @__PURE__ */ C({
|
|
|
935
930
|
s.question.clearValue();
|
|
936
931
|
})
|
|
937
932
|
}, [
|
|
938
|
-
s.question.cssClasses.clearButtonIconId ? m("", !0) : (t(), u("span",
|
|
933
|
+
s.question.cssClasses.clearButtonIconId ? m("", !0) : (t(), u("span", Rs, "\u2716")),
|
|
939
934
|
s.question.cssClasses.clearButtonIconId ? (t(), y(i, {
|
|
940
935
|
key: 1,
|
|
941
936
|
iconName: s.question.cssClasses.clearButtonIconId,
|
|
942
937
|
size: "auto"
|
|
943
938
|
}, null, 8, ["iconName"])) : m("", !0)
|
|
944
|
-
], 10,
|
|
939
|
+
], 10, Ts)
|
|
945
940
|
], 2)) : m("", !0)
|
|
946
941
|
], 6);
|
|
947
942
|
};
|
|
948
943
|
}
|
|
949
|
-
}),
|
|
944
|
+
}), Bs = ["innerHTML"], Ls = /* @__PURE__ */ C({
|
|
950
945
|
__name: "Html",
|
|
951
946
|
props: {
|
|
952
947
|
question: {}
|
|
953
948
|
},
|
|
954
949
|
setup(r) {
|
|
955
|
-
const o = r, n =
|
|
950
|
+
const o = r, n = S(null);
|
|
956
951
|
M(o, n);
|
|
957
952
|
const s = W(() => o.question.locHtml);
|
|
958
953
|
return (e, i) => (t(), u("div", {
|
|
@@ -960,15 +955,15 @@ const Oe = /* @__PURE__ */ C({
|
|
|
960
955
|
ref: n,
|
|
961
956
|
class: l(e.question.renderCssRoot),
|
|
962
957
|
innerHTML: b(s)
|
|
963
|
-
}, null, 10,
|
|
958
|
+
}, null, 10, Bs));
|
|
964
959
|
}
|
|
965
|
-
}),
|
|
960
|
+
}), Ds = ["src", "alt", "width", "height"], Ps = ["src", "width", "height"], Ms = ["src", "width", "height"], Ns = /* @__PURE__ */ C({
|
|
966
961
|
__name: "Image",
|
|
967
962
|
props: {
|
|
968
963
|
question: {}
|
|
969
964
|
},
|
|
970
965
|
setup(r) {
|
|
971
|
-
const o = r, n =
|
|
966
|
+
const o = r, n = S(null);
|
|
972
967
|
M(o, n);
|
|
973
968
|
const s = W(() => o.question.locImageLink);
|
|
974
969
|
return (e, i) => {
|
|
@@ -996,7 +991,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
996
991
|
onError: i[1] || (i[1] = (d) => {
|
|
997
992
|
e.question.onErrorHandler();
|
|
998
993
|
})
|
|
999
|
-
}, null, 46,
|
|
994
|
+
}, null, 46, Ds)), [
|
|
1000
995
|
[H, b(s) && !e.question.contentNotLoaded]
|
|
1001
996
|
]) : m("", !0),
|
|
1002
997
|
e.question.renderedMode === "video" ? D((t(), u("video", {
|
|
@@ -1017,7 +1012,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1017
1012
|
onError: i[3] || (i[3] = (d) => {
|
|
1018
1013
|
e.question.onErrorHandler();
|
|
1019
1014
|
})
|
|
1020
|
-
}, null, 46,
|
|
1015
|
+
}, null, 46, Ps)), [
|
|
1021
1016
|
[H, b(s) && !e.question.contentNotLoaded]
|
|
1022
1017
|
]) : m("", !0),
|
|
1023
1018
|
e.question.renderedMode === "youtube" ? (t(), u("iframe", {
|
|
@@ -1031,7 +1026,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1031
1026
|
width: e.question.renderedStyleWidth,
|
|
1032
1027
|
height: e.question.renderedStyleHeight
|
|
1033
1028
|
})
|
|
1034
|
-
}, null, 14,
|
|
1029
|
+
}, null, 14, Ms)) : m("", !0),
|
|
1035
1030
|
!b(s) || e.question.contentNotLoaded ? (t(), u("div", {
|
|
1036
1031
|
key: 3,
|
|
1037
1032
|
class: l(e.question.cssClasses.noImage)
|
|
@@ -1044,26 +1039,26 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1044
1039
|
], 2);
|
|
1045
1040
|
};
|
|
1046
1041
|
}
|
|
1047
|
-
}),
|
|
1042
|
+
}), Hs = /* @__PURE__ */ C({
|
|
1048
1043
|
__name: "Expression",
|
|
1049
1044
|
props: {
|
|
1050
1045
|
question: {}
|
|
1051
1046
|
},
|
|
1052
1047
|
setup(r) {
|
|
1053
|
-
const o = r, n =
|
|
1048
|
+
const o = r, n = S(null);
|
|
1054
1049
|
return M(o, n), (s, e) => (t(), u("div", {
|
|
1055
1050
|
class: l(s.question.cssClasses.text),
|
|
1056
1051
|
ref_key: "root",
|
|
1057
1052
|
ref: n
|
|
1058
1053
|
}, I(s.question.formatedValue), 3));
|
|
1059
1054
|
}
|
|
1060
|
-
}), As = ["id", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "multiple", "title", "accept", "capture"],
|
|
1055
|
+
}), As = ["id", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "multiple", "title", "accept", "capture"], Es = ["id", "multiple", "placeholder"], Vs = ["for", "aria-label"], Os = ["onClick", "href", "title", "download"], Fs = ["src"], Ws = ["onClick"], zs = ["onClick", "href", "title", "download"], Us = /* @__PURE__ */ C({
|
|
1061
1056
|
__name: "File",
|
|
1062
1057
|
props: {
|
|
1063
1058
|
question: {}
|
|
1064
1059
|
},
|
|
1065
1060
|
setup(r) {
|
|
1066
|
-
const o = r, n =
|
|
1061
|
+
const o = r, n = S(null);
|
|
1067
1062
|
M(o, n);
|
|
1068
1063
|
const s = (e) => o.question.isPreviewVisible(e);
|
|
1069
1064
|
return (e, i) => {
|
|
@@ -1096,7 +1091,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1096
1091
|
multiple: e.question.allowMultiple,
|
|
1097
1092
|
placeholder: e.question.title,
|
|
1098
1093
|
style: { color: "transparent" }
|
|
1099
|
-
}, null, 10,
|
|
1094
|
+
}, null, 10, Es)) : m("", !0),
|
|
1100
1095
|
p("div", {
|
|
1101
1096
|
class: l(e.question.cssClasses.dragArea),
|
|
1102
1097
|
onDrop: i[3] || (i[3] = (...v) => e.question.onDrop && e.question.onDrop(...v)),
|
|
@@ -1155,7 +1150,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1155
1150
|
key: 1,
|
|
1156
1151
|
class: l(e.question.cssClasses.fileList || void 0)
|
|
1157
1152
|
}, [
|
|
1158
|
-
(t(!0), u(w, null,
|
|
1153
|
+
(t(!0), u(w, null, R(e.question.previewValue, (v, f) => D((t(), u("span", {
|
|
1159
1154
|
key: e.question.inputId + "_" + f,
|
|
1160
1155
|
class: l(e.question.cssClasses.preview)
|
|
1161
1156
|
}, [
|
|
@@ -1169,7 +1164,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1169
1164
|
title: v.name,
|
|
1170
1165
|
download: v.name,
|
|
1171
1166
|
style: $({ width: e.question.imageWidth })
|
|
1172
|
-
}, I(v.name), 13,
|
|
1167
|
+
}, I(v.name), 13, Os)
|
|
1173
1168
|
], 2)) : m("", !0),
|
|
1174
1169
|
p("div", {
|
|
1175
1170
|
class: l(e.question.cssClasses.imageWrapper)
|
|
@@ -1182,7 +1177,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1182
1177
|
width: e.question.imageWidth
|
|
1183
1178
|
}),
|
|
1184
1179
|
alt: "File preview"
|
|
1185
|
-
}, null, 12,
|
|
1180
|
+
}, null, 12, Fs)) : m("", !0),
|
|
1186
1181
|
e.question.defaultImage(v) ? (t(), y(a, {
|
|
1187
1182
|
key: 1,
|
|
1188
1183
|
iconName: e.question.cssClasses.defaultImageIconId,
|
|
@@ -1204,7 +1199,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1204
1199
|
iconName: e.question.cssClasses.removeFileSvgIconId,
|
|
1205
1200
|
size: "auto"
|
|
1206
1201
|
}, null, 8, ["title", "class", "iconName"])) : m("", !0)
|
|
1207
|
-
], 10,
|
|
1202
|
+
], 10, Ws)) : m("", !0)
|
|
1208
1203
|
], 2),
|
|
1209
1204
|
v.name && e.question.cssClasses.fileSignBottom ? (t(), u("div", {
|
|
1210
1205
|
key: 1,
|
|
@@ -1216,7 +1211,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1216
1211
|
title: v.name,
|
|
1217
1212
|
download: v.name,
|
|
1218
1213
|
style: $({ width: e.question.imageWidth })
|
|
1219
|
-
}, I(v.name), 13,
|
|
1214
|
+
}, I(v.name), 13, zs)
|
|
1220
1215
|
], 2)) : m("", !0)
|
|
1221
1216
|
], 2)), [
|
|
1222
1217
|
[H, v && s(f)]
|
|
@@ -1244,13 +1239,13 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1244
1239
|
], 2);
|
|
1245
1240
|
};
|
|
1246
1241
|
}
|
|
1247
|
-
}),
|
|
1242
|
+
}), Ks = ["aria-label"], js = /* @__PURE__ */ C({
|
|
1248
1243
|
__name: "Imagepicker",
|
|
1249
1244
|
props: {
|
|
1250
1245
|
question: {}
|
|
1251
1246
|
},
|
|
1252
1247
|
setup(r) {
|
|
1253
|
-
const o = r, n =
|
|
1248
|
+
const o = r, n = S(null);
|
|
1254
1249
|
return M(o, n), (s, e) => {
|
|
1255
1250
|
const i = q("survey-imagepicker-item");
|
|
1256
1251
|
return t(), u("fieldset", {
|
|
@@ -1261,18 +1256,18 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1261
1256
|
p("legend", {
|
|
1262
1257
|
role: "radio",
|
|
1263
1258
|
"aria-label": s.question.locTitle.renderedHtml
|
|
1264
|
-
}, null, 8,
|
|
1265
|
-
s.question.hasColumns ? m("", !0) : (t(!0), u(w, { key: 0 },
|
|
1259
|
+
}, null, 8, Ks),
|
|
1260
|
+
s.question.hasColumns ? m("", !0) : (t(!0), u(w, { key: 0 }, R(s.question.visibleChoices, (a) => (t(), y(i, {
|
|
1266
1261
|
key: a.value,
|
|
1267
1262
|
question: s.question,
|
|
1268
1263
|
item: a
|
|
1269
1264
|
}, null, 8, ["question", "item"]))), 128)),
|
|
1270
|
-
s.question.hasColumns ? (t(!0), u(w, { key: 1 },
|
|
1265
|
+
s.question.hasColumns ? (t(!0), u(w, { key: 1 }, R(s.question.columns, (a, d) => (t(), u("div", {
|
|
1271
1266
|
class: l(s.question.getColumnClass()),
|
|
1272
1267
|
key: d,
|
|
1273
1268
|
role: "presentation"
|
|
1274
1269
|
}, [
|
|
1275
|
-
(t(!0), u(w, null,
|
|
1270
|
+
(t(!0), u(w, null, R(a, (c) => (t(), y(i, {
|
|
1276
1271
|
key: c.value,
|
|
1277
1272
|
question: s.question,
|
|
1278
1273
|
item: c
|
|
@@ -1281,7 +1276,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1281
1276
|
], 2);
|
|
1282
1277
|
};
|
|
1283
1278
|
}
|
|
1284
|
-
}),
|
|
1279
|
+
}), Qs = ["name", "value", "id", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Zs = ["name", "value", "id", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Gs = ["src", "width", "height", "alt"], Xs = ["src", "width", "height"], Js = /* @__PURE__ */ C({
|
|
1285
1280
|
__name: "ImagepickerItem",
|
|
1286
1281
|
props: {
|
|
1287
1282
|
question: {},
|
|
@@ -1312,7 +1307,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1312
1307
|
"aria-invalid": e.question.ariaInvalid,
|
|
1313
1308
|
"aria-describedby": e.question.ariaDescribedBy,
|
|
1314
1309
|
class: l(e.question.cssClasses.itemControl)
|
|
1315
|
-
}, null, 10,
|
|
1310
|
+
}, null, 10, Qs)), [
|
|
1316
1311
|
[z, e.question.value]
|
|
1317
1312
|
]) : D((t(), u("input", {
|
|
1318
1313
|
key: 1,
|
|
@@ -1327,7 +1322,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1327
1322
|
"aria-invalid": e.question.ariaInvalid,
|
|
1328
1323
|
"aria-describedby": e.question.ariaDescribedBy,
|
|
1329
1324
|
class: l(e.question.cssClasses.itemControl)
|
|
1330
|
-
}, null, 10,
|
|
1325
|
+
}, null, 10, Zs)), [
|
|
1331
1326
|
[Y, e.question.value]
|
|
1332
1327
|
]),
|
|
1333
1328
|
p("div", {
|
|
@@ -1361,7 +1356,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1361
1356
|
onError: i[3] || (i[3] = (c) => {
|
|
1362
1357
|
e.item.onErrorHandler();
|
|
1363
1358
|
})
|
|
1364
|
-
}, null, 46,
|
|
1359
|
+
}, null, 46, Gs)) : m("", !0),
|
|
1365
1360
|
b(s) && !e.item.contentNotLoaded && e.question.contentMode === "video" ? (t(), u("video", {
|
|
1366
1361
|
key: 2,
|
|
1367
1362
|
controls: "",
|
|
@@ -1376,7 +1371,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1376
1371
|
onError: i[5] || (i[5] = (c) => {
|
|
1377
1372
|
e.item.onErrorHandler();
|
|
1378
1373
|
})
|
|
1379
|
-
}, null, 46,
|
|
1374
|
+
}, null, 46, Xs)) : m("", !0),
|
|
1380
1375
|
!b(s) || e.item.contentNotLoaded ? (t(), u("div", {
|
|
1381
1376
|
key: 3,
|
|
1382
1377
|
class: l(e.question.cssClasses.itemNoImage),
|
|
@@ -1406,14 +1401,14 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1406
1401
|
], 2);
|
|
1407
1402
|
};
|
|
1408
1403
|
}
|
|
1409
|
-
}),
|
|
1404
|
+
}), Ys = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], _s = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], xs = /* @__PURE__ */ C({
|
|
1410
1405
|
__name: "Comment",
|
|
1411
1406
|
props: {
|
|
1412
1407
|
question: {},
|
|
1413
1408
|
css: {}
|
|
1414
1409
|
},
|
|
1415
1410
|
setup(r) {
|
|
1416
|
-
const o = r, n =
|
|
1411
|
+
const o = r, n = S(null);
|
|
1417
1412
|
M(o, n);
|
|
1418
1413
|
const s = (e) => {
|
|
1419
1414
|
const i = o.question;
|
|
@@ -1447,7 +1442,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1447
1442
|
"aria-invalid": e.question.a11y_input_ariaInvalid,
|
|
1448
1443
|
"aria-describedby": e.question.a11y_input_ariaDescribedBy,
|
|
1449
1444
|
style: $({ resize: e.question.resizeStyle })
|
|
1450
|
-
}, null, 46,
|
|
1445
|
+
}, null, 46, Ys)) : !e.question.isReadOnlyRenderDiv() && e.question.getMaxLength() ? (t(), u("div", {
|
|
1451
1446
|
key: 1,
|
|
1452
1447
|
ref_key: "root",
|
|
1453
1448
|
ref: n
|
|
@@ -1475,7 +1470,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1475
1470
|
"aria-invalid": e.question.a11y_input_ariaInvalid,
|
|
1476
1471
|
"aria-describedby": e.question.a11y_input_ariaDescribedBy,
|
|
1477
1472
|
style: $({ resize: e.question.resizeStyle })
|
|
1478
|
-
}, null, 46,
|
|
1473
|
+
}, null, 46, _s),
|
|
1479
1474
|
h(a, {
|
|
1480
1475
|
counter: e.question.characterCounter,
|
|
1481
1476
|
remainingCharacterCounter: e.question.cssClasses.remainingCharacterCounter
|
|
@@ -1487,13 +1482,13 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1487
1482
|
}, I(e.question.value), 513));
|
|
1488
1483
|
};
|
|
1489
1484
|
}
|
|
1490
|
-
}),
|
|
1485
|
+
}), en = /* @__PURE__ */ C({
|
|
1491
1486
|
__name: "Dropdown",
|
|
1492
1487
|
props: {
|
|
1493
1488
|
question: {}
|
|
1494
1489
|
},
|
|
1495
1490
|
setup(r) {
|
|
1496
|
-
const o = r, n =
|
|
1491
|
+
const o = r, n = S(null);
|
|
1497
1492
|
return M(o, n), (s, e) => {
|
|
1498
1493
|
const i = q("sv-dropdown"), a = q("survey-other-choice");
|
|
1499
1494
|
return t(), u("div", {
|
|
@@ -1509,28 +1504,28 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1509
1504
|
], 2);
|
|
1510
1505
|
};
|
|
1511
1506
|
}
|
|
1512
|
-
}),
|
|
1507
|
+
}), sn = ["id", "autocomplete", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "required"], nn = {
|
|
1513
1508
|
key: 0,
|
|
1514
1509
|
value: ""
|
|
1515
|
-
},
|
|
1510
|
+
}, on = ["id"];
|
|
1516
1511
|
X.Instance.registerRenderer(
|
|
1517
1512
|
"dropdown",
|
|
1518
1513
|
"select",
|
|
1519
1514
|
"sv-dropdown-select"
|
|
1520
1515
|
);
|
|
1521
|
-
const
|
|
1516
|
+
const tn = /* @__PURE__ */ C({
|
|
1522
1517
|
__name: "DropdownSelect",
|
|
1523
1518
|
props: {
|
|
1524
1519
|
question: {}
|
|
1525
1520
|
},
|
|
1526
1521
|
setup(r) {
|
|
1527
|
-
const o = r, n =
|
|
1522
|
+
const o = r, n = S(null);
|
|
1528
1523
|
M(o, n);
|
|
1529
1524
|
const s = (a) => {
|
|
1530
1525
|
o.question.onClick(a);
|
|
1531
1526
|
}, e = (a) => {
|
|
1532
1527
|
o.question.onKeyUp(a);
|
|
1533
|
-
}, i =
|
|
1528
|
+
}, i = T({
|
|
1534
1529
|
get() {
|
|
1535
1530
|
var a;
|
|
1536
1531
|
return (a = o.question.value) != null ? a : "";
|
|
@@ -1553,7 +1548,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
1553
1548
|
disabled: "",
|
|
1554
1549
|
id: a.question.inputId,
|
|
1555
1550
|
class: l(a.question.getControlClass())
|
|
1556
|
-
}, I(a.question.readOnlyText), 11,
|
|
1551
|
+
}, I(a.question.readOnlyText), 11, on)) : D((t(), u("select", {
|
|
1557
1552
|
key: 0,
|
|
1558
1553
|
id: a.question.inputId,
|
|
1559
1554
|
"onUpdate:modelValue": d[0] || (d[0] = (g) => i.value = g),
|
|
@@ -1567,12 +1562,12 @@ const ln = /* @__PURE__ */ C({
|
|
|
1567
1562
|
"aria-describedby": a.question.ariaDescribedBy,
|
|
1568
1563
|
required: a.question.isRequired
|
|
1569
1564
|
}, [
|
|
1570
|
-
a.question.allowClear ? (t(), u("option",
|
|
1571
|
-
(t(!0), u(w, null,
|
|
1565
|
+
a.question.allowClear ? (t(), u("option", nn, I(a.question.placeholder), 1)) : m("", !0),
|
|
1566
|
+
(t(!0), u(w, null, R(a.question.visibleChoices, (g) => (t(), y(c, {
|
|
1572
1567
|
item: g,
|
|
1573
1568
|
key: g.id
|
|
1574
1569
|
}, null, 8, ["item"]))), 128))
|
|
1575
|
-
], 42,
|
|
1570
|
+
], 42, sn)), [
|
|
1576
1571
|
[pe, i.value]
|
|
1577
1572
|
]),
|
|
1578
1573
|
a.question.cssClasses.chevronButtonIconId ? (t(), u("div", {
|
|
@@ -1593,7 +1588,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
1593
1588
|
], 2);
|
|
1594
1589
|
};
|
|
1595
1590
|
}
|
|
1596
|
-
}),
|
|
1591
|
+
}), ln = ["value", "disabled"], rn = /* @__PURE__ */ C({
|
|
1597
1592
|
__name: "OptionItem",
|
|
1598
1593
|
props: {
|
|
1599
1594
|
item: {}
|
|
@@ -1603,15 +1598,15 @@ const ln = /* @__PURE__ */ C({
|
|
|
1603
1598
|
return B(() => o.item), (s, e) => (t(), u("option", {
|
|
1604
1599
|
value: s.item.value,
|
|
1605
1600
|
disabled: !s.item.isEnabled
|
|
1606
|
-
}, I(b(n)), 9,
|
|
1601
|
+
}, I(b(n)), 9, ln));
|
|
1607
1602
|
}
|
|
1608
|
-
}),
|
|
1603
|
+
}), an = ["id", "disabled", "tabindex", "role", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], un = { style: { visibility: "hidden" } }, dn = ["disabled", "inputmode", "role", "id", "tabindex", "readonly", "aria-label", "aria-expanded", "aria-controls", "aria-activedescendant", "placeholder"], mn = ["id"], cn = /* @__PURE__ */ C({
|
|
1609
1604
|
__name: "Dropdown",
|
|
1610
1605
|
props: {
|
|
1611
1606
|
question: {}
|
|
1612
1607
|
},
|
|
1613
1608
|
setup(r) {
|
|
1614
|
-
const o = r, n =
|
|
1609
|
+
const o = r, n = S(null), s = T(() => {
|
|
1615
1610
|
const g = o.question;
|
|
1616
1611
|
return g.dropdownListModel || (g.dropdownListModel = new fe(g)), o.question.dropdownListModel;
|
|
1617
1612
|
}), e = (g) => {
|
|
@@ -1637,8 +1632,8 @@ const ln = /* @__PURE__ */ C({
|
|
|
1637
1632
|
}, f = (g) => {
|
|
1638
1633
|
s.value.inputStringRendered = g.target.value;
|
|
1639
1634
|
};
|
|
1640
|
-
return B(() => s.value),
|
|
1641
|
-
const P = q("survey-string"), L = q("sv-svg-icon"),
|
|
1635
|
+
return B(() => s.value), G(d), A(d), (g, k) => {
|
|
1636
|
+
const P = q("survey-string"), L = q("sv-svg-icon"), E = q("sv-popup");
|
|
1642
1637
|
return t(), u("div", {
|
|
1643
1638
|
class: l(g.question.cssClasses.selectWrapper),
|
|
1644
1639
|
onClick: e
|
|
@@ -1678,7 +1673,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
1678
1673
|
key: 1,
|
|
1679
1674
|
class: l(g.question.cssClasses.hintSuffix)
|
|
1680
1675
|
}, [
|
|
1681
|
-
p("span",
|
|
1676
|
+
p("span", un, I(s.value.inputStringRendered), 1),
|
|
1682
1677
|
p("span", null, I(s.value.hintStringSuffix), 1)
|
|
1683
1678
|
], 2)) : m("", !0),
|
|
1684
1679
|
g.question.showInputFieldComponent ? (t(), y(N(g.question.inputFieldComponentName), {
|
|
@@ -1706,7 +1701,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
1706
1701
|
onInput: f,
|
|
1707
1702
|
onBlur: c,
|
|
1708
1703
|
onFocus: v
|
|
1709
|
-
}, null, 42,
|
|
1704
|
+
}, null, 42, dn)
|
|
1710
1705
|
], 2),
|
|
1711
1706
|
g.question.allowClear && g.question.cssClasses.cleanButtonIconId ? D((t(), u("div", {
|
|
1712
1707
|
key: 1,
|
|
@@ -1722,7 +1717,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
1722
1717
|
], 2)), [
|
|
1723
1718
|
[H, !g.question.isEmpty()]
|
|
1724
1719
|
]) : m("", !0)
|
|
1725
|
-
], 42,
|
|
1720
|
+
], 42, an)),
|
|
1726
1721
|
g.question.isReadOnly ? (t(), u("div", {
|
|
1727
1722
|
key: 2,
|
|
1728
1723
|
disabled: "",
|
|
@@ -1734,7 +1729,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
1734
1729
|
locString: g.question.selectedItemLocText
|
|
1735
1730
|
}, null, 8, ["locString"])) : m("", !0),
|
|
1736
1731
|
p("div", null, I(g.question.readOnlyText), 1)
|
|
1737
|
-
], 10,
|
|
1732
|
+
], 10, mn)) : (t(), y(E, {
|
|
1738
1733
|
key: 1,
|
|
1739
1734
|
model: g.question.dropdownListModel.popupModel
|
|
1740
1735
|
}, null, 8, ["model"])),
|
|
@@ -1751,13 +1746,13 @@ const ln = /* @__PURE__ */ C({
|
|
|
1751
1746
|
], 2);
|
|
1752
1747
|
};
|
|
1753
1748
|
}
|
|
1754
|
-
}),
|
|
1749
|
+
}), pn = /* @__PURE__ */ C({
|
|
1755
1750
|
__name: "Tagbox",
|
|
1756
1751
|
props: {
|
|
1757
1752
|
question: {}
|
|
1758
1753
|
},
|
|
1759
1754
|
setup(r) {
|
|
1760
|
-
const o = r, n =
|
|
1755
|
+
const o = r, n = S(null);
|
|
1761
1756
|
return M(o, n), (s, e) => {
|
|
1762
1757
|
const i = q("sv-tagbox"), a = q("survey-other-choice");
|
|
1763
1758
|
return t(), u("div", {
|
|
@@ -1773,13 +1768,13 @@ const ln = /* @__PURE__ */ C({
|
|
|
1773
1768
|
], 2);
|
|
1774
1769
|
};
|
|
1775
1770
|
}
|
|
1776
|
-
}),
|
|
1771
|
+
}), vn = ["id", "tabindex", "disabled", "role", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], qn = ["id"], yn = /* @__PURE__ */ C({
|
|
1777
1772
|
__name: "Tagbox",
|
|
1778
1773
|
props: {
|
|
1779
1774
|
question: {}
|
|
1780
1775
|
},
|
|
1781
1776
|
setup(r) {
|
|
1782
|
-
const o = r, n =
|
|
1777
|
+
const o = r, n = T(() => {
|
|
1783
1778
|
const d = o.question;
|
|
1784
1779
|
return d.dropdownListModel || (d.dropdownListModel = new we(d)), o.question.dropdownListModel;
|
|
1785
1780
|
}), s = (d) => {
|
|
@@ -1822,7 +1817,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
1822
1817
|
p("div", {
|
|
1823
1818
|
class: l(d.question.cssClasses.controlValue)
|
|
1824
1819
|
}, [
|
|
1825
|
-
(t(!0), u(w, null,
|
|
1820
|
+
(t(!0), u(w, null, R(d.question.selectedChoices, (P, L) => (t(), y(v, {
|
|
1826
1821
|
item: P,
|
|
1827
1822
|
question: d.question,
|
|
1828
1823
|
key: "item" + L
|
|
@@ -1846,7 +1841,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
1846
1841
|
], 2)), [
|
|
1847
1842
|
[H, !d.question.isEmpty()]
|
|
1848
1843
|
]) : m("", !0)
|
|
1849
|
-
], 42,
|
|
1844
|
+
], 42, vn)),
|
|
1850
1845
|
d.question.isReadOnly ? (t(), u("div", {
|
|
1851
1846
|
key: 2,
|
|
1852
1847
|
disabled: "",
|
|
@@ -1854,7 +1849,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
1854
1849
|
class: l(d.question.getControlClass())
|
|
1855
1850
|
}, [
|
|
1856
1851
|
p("div", null, I(d.question.readOnlyText), 1)
|
|
1857
|
-
], 10,
|
|
1852
|
+
], 10, qn)) : (t(), y(k, {
|
|
1858
1853
|
key: 1,
|
|
1859
1854
|
model: n.value.popupModel
|
|
1860
1855
|
}, null, 8, ["model"])),
|
|
@@ -1871,7 +1866,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
1871
1866
|
], 2);
|
|
1872
1867
|
};
|
|
1873
1868
|
}
|
|
1874
|
-
}),
|
|
1869
|
+
}), gn = { style: { visibility: "hidden" } }, Cn = ["placeholder", "disabled", "inputmode", "role", "aria-label", "aria-expanded", "aria-controls", "aria-activedescendant", "id", "readonly", "size"], hn = /* @__PURE__ */ C({
|
|
1875
1870
|
__name: "TagboxFilter",
|
|
1876
1871
|
props: {
|
|
1877
1872
|
question: {},
|
|
@@ -1910,7 +1905,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
1910
1905
|
key: 1,
|
|
1911
1906
|
class: l(a.question.cssClasses.hintSuffix)
|
|
1912
1907
|
}, [
|
|
1913
|
-
p("span",
|
|
1908
|
+
p("span", gn, I(a.model.inputStringRendered), 1),
|
|
1914
1909
|
p("span", null, I(a.model.hintStringSuffix), 1)
|
|
1915
1910
|
], 2)) : m("", !0),
|
|
1916
1911
|
D(p("input", {
|
|
@@ -1933,14 +1928,14 @@ const ln = /* @__PURE__ */ C({
|
|
|
1933
1928
|
onKeydown: s,
|
|
1934
1929
|
onBlur: e,
|
|
1935
1930
|
onFocus: i
|
|
1936
|
-
}, null, 42,
|
|
1931
|
+
}, null, 42, Cn), [
|
|
1937
1932
|
[ve, a.model.inputStringRendered]
|
|
1938
1933
|
])
|
|
1939
1934
|
], 2)
|
|
1940
1935
|
], 2);
|
|
1941
1936
|
};
|
|
1942
1937
|
}
|
|
1943
|
-
}),
|
|
1938
|
+
}), bn = { class: "sv-tagbox__item-text" }, kn = /* @__PURE__ */ C({
|
|
1944
1939
|
__name: "TagboxItem",
|
|
1945
1940
|
props: {
|
|
1946
1941
|
question: {},
|
|
@@ -1956,7 +1951,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
1956
1951
|
class: "sv-tagbox__item",
|
|
1957
1952
|
key: s.item.key
|
|
1958
1953
|
}, [
|
|
1959
|
-
p("div",
|
|
1954
|
+
p("div", bn, [
|
|
1960
1955
|
h(i, {
|
|
1961
1956
|
locString: s.item.locText
|
|
1962
1957
|
}, null, 8, ["locString"])
|
|
@@ -1974,13 +1969,13 @@ const ln = /* @__PURE__ */ C({
|
|
|
1974
1969
|
]);
|
|
1975
1970
|
};
|
|
1976
1971
|
}
|
|
1977
|
-
}),
|
|
1972
|
+
}), fn = /* @__PURE__ */ C({
|
|
1978
1973
|
__name: "Ranking",
|
|
1979
1974
|
props: {
|
|
1980
1975
|
question: {}
|
|
1981
1976
|
},
|
|
1982
1977
|
setup(r) {
|
|
1983
|
-
const o = r, n =
|
|
1978
|
+
const o = r, n = S(null);
|
|
1984
1979
|
M(o, n);
|
|
1985
1980
|
const s = (e) => o.question.getNumberByIndex(e);
|
|
1986
1981
|
return (e, i) => {
|
|
@@ -1990,7 +1985,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
1990
1985
|
ref_key: "root",
|
|
1991
1986
|
ref: n
|
|
1992
1987
|
}, [
|
|
1993
|
-
e.question.selectToRankEnabled ? m("", !0) : (t(!0), u(w, { key: 0 },
|
|
1988
|
+
e.question.selectToRankEnabled ? m("", !0) : (t(!0), u(w, { key: 0 }, R(e.question.rankingChoices, (d, c) => (t(), y(a, {
|
|
1994
1989
|
key: d.value + "-" + c + "-item",
|
|
1995
1990
|
class: l(e.question.getItemClass(d)),
|
|
1996
1991
|
text: d.locText,
|
|
@@ -2005,7 +2000,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
2005
2000
|
class: l(e.question.getContainerClasses("from")),
|
|
2006
2001
|
"data-ranking": "from-container"
|
|
2007
2002
|
}, [
|
|
2008
|
-
(t(!0), u(w, null,
|
|
2003
|
+
(t(!0), u(w, null, R(e.question.unRankingChoices, (d, c) => (t(), y(a, {
|
|
2009
2004
|
key: d.value + "-" + c + "-item",
|
|
2010
2005
|
class: l(e.question.getItemClass(d)),
|
|
2011
2006
|
text: d.locText,
|
|
@@ -2030,7 +2025,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
2030
2025
|
class: l(e.question.getContainerClasses("to")),
|
|
2031
2026
|
"data-ranking": "to-container"
|
|
2032
2027
|
}, [
|
|
2033
|
-
(t(!0), u(w, null,
|
|
2028
|
+
(t(!0), u(w, null, R(e.question.rankingChoices, (d, c) => (t(), y(a, {
|
|
2034
2029
|
key: d.value + "-" + c + "-item",
|
|
2035
2030
|
class: l(e.question.getItemClass(d)),
|
|
2036
2031
|
text: d.locText,
|
|
@@ -2048,15 +2043,15 @@ const ln = /* @__PURE__ */ C({
|
|
|
2048
2043
|
], 2);
|
|
2049
2044
|
};
|
|
2050
2045
|
}
|
|
2051
|
-
}),
|
|
2046
|
+
}), In = ["tabindex", "data-sv-drop-target-ranking-item"], wn = {
|
|
2052
2047
|
tabindex: "-1",
|
|
2053
2048
|
style: { outline: "none" }
|
|
2054
|
-
}, Sn = /* @__PURE__ */ p("path", { d: "M6 2C6 0.9 6.9 0 8 0C9.1 0 10 0.9 10 2C10 3.1 9.1 4 8 4C6.9 4 6 3.1 6 2ZM2 0C0.9 0 0 0.9 0 2C0 3.1 0.9 4 2 4C3.1 4 4 3.1 4 2C4 0.9 3.1 0 2 0ZM8 6C6.9 6 6 6.9 6 8C6 9.1 6.9 10 8 10C9.1 10 10 9.1 10 8C10 6.9 9.1 6 8 6ZM2 6C0.9 6 0 6.9 0 8C0 9.1 0.9 10 2 10C3.1 10 4 9.1 4 8C4 6.9 3.1 6 2 6ZM8 12C6.9 12 6 12.9 6 14C6 15.1 6.9 16 8 16C9.1 16 10 15.1 10 14C10 12.9 9.1 12 8 12ZM2 12C0.9 12 0 12.9 0 14C0 15.1 0.9 16 2 16C3.1 16 4 15.1 4 14C4 12.9 3.1 12 2 12Z" }, null, -1),
|
|
2049
|
+
}, Sn = /* @__PURE__ */ p("path", { d: "M6 2C6 0.9 6.9 0 8 0C9.1 0 10 0.9 10 2C10 3.1 9.1 4 8 4C6.9 4 6 3.1 6 2ZM2 0C0.9 0 0 0.9 0 2C0 3.1 0.9 4 2 4C3.1 4 4 3.1 4 2C4 0.9 3.1 0 2 0ZM8 6C6.9 6 6 6.9 6 8C6 9.1 6.9 10 8 10C9.1 10 10 9.1 10 8C10 6.9 9.1 6 8 6ZM2 6C0.9 6 0 6.9 0 8C0 9.1 0.9 10 2 10C3.1 10 4 9.1 4 8C4 6.9 3.1 6 2 6ZM8 12C6.9 12 6 12.9 6 14C6 15.1 6.9 16 8 16C9.1 16 10 15.1 10 14C10 12.9 9.1 12 8 12ZM2 12C0.9 12 0 12.9 0 14C0 15.1 0.9 16 2 16C3.1 16 4 15.1 4 14C4 12.9 3.1 12 2 12Z" }, null, -1), Tn = [
|
|
2055
2050
|
Sn
|
|
2056
|
-
],
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
],
|
|
2051
|
+
], Rn = /* @__PURE__ */ p("path", { d: "M10 5L5 0L0 5H4V9H6V5H10Z" }, null, -1), $n = /* @__PURE__ */ p("path", { d: "M6 19V15H4V19H0L5 24L10 19H6Z" }, null, -1), Bn = [
|
|
2052
|
+
Rn,
|
|
2053
|
+
$n
|
|
2054
|
+
], Ln = /* @__PURE__ */ C({
|
|
2060
2055
|
__name: "RankingItem",
|
|
2061
2056
|
props: {
|
|
2062
2057
|
index: {},
|
|
@@ -2088,7 +2083,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
2088
2083
|
);
|
|
2089
2084
|
})
|
|
2090
2085
|
}, [
|
|
2091
|
-
p("div",
|
|
2086
|
+
p("div", wn, [
|
|
2092
2087
|
p("div", {
|
|
2093
2088
|
class: l(n.cssClasses.itemGhostNode)
|
|
2094
2089
|
}, null, 2),
|
|
@@ -2104,14 +2099,14 @@ const ln = /* @__PURE__ */ C({
|
|
|
2104
2099
|
viewBox: "0 0 10 16",
|
|
2105
2100
|
class: l(n.question.getIconHoverCss()),
|
|
2106
2101
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2107
|
-
},
|
|
2102
|
+
}, Tn, 2)),
|
|
2108
2103
|
(t(), u("svg", {
|
|
2109
2104
|
width: "10",
|
|
2110
2105
|
height: "24",
|
|
2111
2106
|
viewBox: "0 0 10 24",
|
|
2112
2107
|
class: l(n.question.getIconFocusCss()),
|
|
2113
2108
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2114
|
-
},
|
|
2109
|
+
}, Bn, 2))
|
|
2115
2110
|
], 2),
|
|
2116
2111
|
p("div", {
|
|
2117
2112
|
class: l(n.question.getItemIndexClasses(n.item))
|
|
@@ -2123,19 +2118,19 @@ const ln = /* @__PURE__ */ C({
|
|
|
2123
2118
|
], 2)
|
|
2124
2119
|
], 2)
|
|
2125
2120
|
])
|
|
2126
|
-
], 42,
|
|
2121
|
+
], 42, In);
|
|
2127
2122
|
};
|
|
2128
2123
|
}
|
|
2129
|
-
}),
|
|
2124
|
+
}), Dn = { role: "radiogroup" }, Pn = /* @__PURE__ */ p("legend", {
|
|
2130
2125
|
role: "presentation",
|
|
2131
2126
|
class: "sv-hidden"
|
|
2132
|
-
}, null, -1),
|
|
2127
|
+
}, null, -1), Mn = /* @__PURE__ */ C({
|
|
2133
2128
|
__name: "Rating",
|
|
2134
2129
|
props: {
|
|
2135
2130
|
question: {}
|
|
2136
2131
|
},
|
|
2137
2132
|
setup(r) {
|
|
2138
|
-
const o = r, n =
|
|
2133
|
+
const o = r, n = S(null);
|
|
2139
2134
|
M(o, n);
|
|
2140
2135
|
const s = (e) => o.question.getInputId(e);
|
|
2141
2136
|
return (e, i) => {
|
|
@@ -2145,8 +2140,8 @@ const ln = /* @__PURE__ */ C({
|
|
|
2145
2140
|
ref_key: "root",
|
|
2146
2141
|
ref: n
|
|
2147
2142
|
}, [
|
|
2148
|
-
p("fieldset",
|
|
2149
|
-
|
|
2143
|
+
p("fieldset", Dn, [
|
|
2144
|
+
Pn,
|
|
2150
2145
|
e.question.hasMinLabel ? (t(), u("span", {
|
|
2151
2146
|
key: 0,
|
|
2152
2147
|
class: l(e.question.cssClasses.minText)
|
|
@@ -2155,7 +2150,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
2155
2150
|
locString: e.question.locMinRateDescription
|
|
2156
2151
|
}, null, 8, ["locString"])
|
|
2157
2152
|
], 2)) : m("", !0),
|
|
2158
|
-
(t(!0), u(w, null,
|
|
2153
|
+
(t(!0), u(w, null, R(e.question.renderedRateItems, (d, c) => (t(), y(N(e.question.itemComponentName), {
|
|
2159
2154
|
key: s(c),
|
|
2160
2155
|
item: d,
|
|
2161
2156
|
index: c,
|
|
@@ -2173,7 +2168,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
2173
2168
|
], 2);
|
|
2174
2169
|
};
|
|
2175
2170
|
}
|
|
2176
|
-
}),
|
|
2171
|
+
}), Nn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Hn = /* @__PURE__ */ C({
|
|
2177
2172
|
__name: "RatingItem",
|
|
2178
2173
|
props: {
|
|
2179
2174
|
question: {},
|
|
@@ -2201,7 +2196,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
2201
2196
|
"aria-label": n.question.ariaLabel,
|
|
2202
2197
|
"aria-invalid": n.question.ariaInvalid,
|
|
2203
2198
|
"aria-describedby": n.question.ariaDescribedBy
|
|
2204
|
-
}, null, 8,
|
|
2199
|
+
}, null, 8, Nn),
|
|
2205
2200
|
p("span", {
|
|
2206
2201
|
class: l(n.question.cssClasses.itemText)
|
|
2207
2202
|
}, [
|
|
@@ -2212,7 +2207,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
2212
2207
|
], 34);
|
|
2213
2208
|
};
|
|
2214
2209
|
}
|
|
2215
|
-
}), An = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"],
|
|
2210
|
+
}), An = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], En = /* @__PURE__ */ C({
|
|
2216
2211
|
__name: "RatingItemSmiley",
|
|
2217
2212
|
props: {
|
|
2218
2213
|
question: {},
|
|
@@ -2252,7 +2247,7 @@ const ln = /* @__PURE__ */ C({
|
|
|
2252
2247
|
], 38);
|
|
2253
2248
|
};
|
|
2254
2249
|
}
|
|
2255
|
-
}), Vn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"],
|
|
2250
|
+
}), Vn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], On = /* @__PURE__ */ C({
|
|
2256
2251
|
__name: "RatingItemStar",
|
|
2257
2252
|
props: {
|
|
2258
2253
|
question: {},
|
|
@@ -2304,13 +2299,13 @@ X.Instance.registerRenderer(
|
|
|
2304
2299
|
"dropdown",
|
|
2305
2300
|
"sv-rating-dropdown"
|
|
2306
2301
|
);
|
|
2307
|
-
const
|
|
2302
|
+
const Fn = /* @__PURE__ */ C({
|
|
2308
2303
|
__name: "RatingDropdown",
|
|
2309
2304
|
props: {
|
|
2310
2305
|
question: {}
|
|
2311
2306
|
},
|
|
2312
2307
|
setup(r) {
|
|
2313
|
-
const o = r, n =
|
|
2308
|
+
const o = r, n = S(null);
|
|
2314
2309
|
return M(o, n), (s, e) => {
|
|
2315
2310
|
const i = q("sv-dropdown");
|
|
2316
2311
|
return t(), u("div", {
|
|
@@ -2322,13 +2317,13 @@ const Wn = /* @__PURE__ */ C({
|
|
|
2322
2317
|
], 2);
|
|
2323
2318
|
};
|
|
2324
2319
|
}
|
|
2325
|
-
}),
|
|
2320
|
+
}), Wn = ["name", "value", "id", ".indeterminate", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], zn = /* @__PURE__ */ C({
|
|
2326
2321
|
__name: "BooleanSwitch",
|
|
2327
2322
|
props: {
|
|
2328
2323
|
question: {}
|
|
2329
2324
|
},
|
|
2330
2325
|
setup(r) {
|
|
2331
|
-
const o = r, n =
|
|
2326
|
+
const o = r, n = S(null);
|
|
2332
2327
|
M(o, n);
|
|
2333
2328
|
const s = (i, a) => {
|
|
2334
2329
|
o.question.onLabelClick(i, a);
|
|
@@ -2358,7 +2353,7 @@ const Wn = /* @__PURE__ */ C({
|
|
|
2358
2353
|
"aria-label": i.question.ariaLabel,
|
|
2359
2354
|
"aria-invalid": i.question.ariaInvalid,
|
|
2360
2355
|
"aria-describedby": i.question.ariaDescribedBy
|
|
2361
|
-
}, null, 10,
|
|
2356
|
+
}, null, 10, Wn), [
|
|
2362
2357
|
[z, i.question.booleanValue]
|
|
2363
2358
|
]),
|
|
2364
2359
|
p("div", {
|
|
@@ -2412,13 +2407,13 @@ X.Instance.registerRenderer(
|
|
|
2412
2407
|
"radio",
|
|
2413
2408
|
"sv-boolean-radio"
|
|
2414
2409
|
);
|
|
2415
|
-
const
|
|
2410
|
+
const Un = /* @__PURE__ */ C({
|
|
2416
2411
|
__name: "BooleanRadio",
|
|
2417
2412
|
props: {
|
|
2418
2413
|
question: {}
|
|
2419
2414
|
},
|
|
2420
2415
|
setup(r) {
|
|
2421
|
-
const o = r, n =
|
|
2416
|
+
const o = r, n = S(null);
|
|
2422
2417
|
return M(o, n), (s, e) => {
|
|
2423
2418
|
const i = q("sv-boolean-radio-item");
|
|
2424
2419
|
return t(), u("div", {
|
|
@@ -2446,7 +2441,7 @@ const Kn = /* @__PURE__ */ C({
|
|
|
2446
2441
|
], 2);
|
|
2447
2442
|
};
|
|
2448
2443
|
}
|
|
2449
|
-
}),
|
|
2444
|
+
}), Kn = ["name", "value", "checked", "aria-describedby", "disabled"], jn = ["xlink:href"], Qn = /* @__PURE__ */ C({
|
|
2450
2445
|
__name: "BooleanRadioItem",
|
|
2451
2446
|
props: {
|
|
2452
2447
|
question: {},
|
|
@@ -2476,7 +2471,7 @@ const Kn = /* @__PURE__ */ C({
|
|
|
2476
2471
|
disabled: s.question.isInputReadOnly,
|
|
2477
2472
|
class: l(s.question.cssClasses.itemRadioControl),
|
|
2478
2473
|
onChange: n
|
|
2479
|
-
}, null, 42,
|
|
2474
|
+
}, null, 42, Kn),
|
|
2480
2475
|
s.question.cssClasses.materialRadioDecorator ? (t(), u("span", {
|
|
2481
2476
|
key: 0,
|
|
2482
2477
|
class: l(s.question.cssClasses.materialRadioDecorator)
|
|
@@ -2487,7 +2482,7 @@ const Kn = /* @__PURE__ */ C({
|
|
|
2487
2482
|
}, [
|
|
2488
2483
|
p("use", {
|
|
2489
2484
|
"xlink:href": s.question.itemSvgIcon
|
|
2490
|
-
}, null, 8,
|
|
2485
|
+
}, null, 8, jn)
|
|
2491
2486
|
], 2)) : m("", !0)
|
|
2492
2487
|
], 2)) : m("", !0),
|
|
2493
2488
|
p("span", {
|
|
@@ -2499,20 +2494,20 @@ const Kn = /* @__PURE__ */ C({
|
|
|
2499
2494
|
], 2);
|
|
2500
2495
|
};
|
|
2501
2496
|
}
|
|
2502
|
-
}),
|
|
2497
|
+
}), Zn = ["name", "value", "id", ".indeterminate", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Gn = ["xlink:href"], Xn = /* @__PURE__ */ p("span", { class: "check" }, null, -1), Jn = ["id"];
|
|
2503
2498
|
X.Instance.registerRenderer(
|
|
2504
2499
|
"boolean",
|
|
2505
2500
|
"checkbox",
|
|
2506
2501
|
"sv-boolean-checkbox"
|
|
2507
2502
|
);
|
|
2508
|
-
const
|
|
2503
|
+
const Yn = /* @__PURE__ */ C({
|
|
2509
2504
|
__name: "BooleanCheckbox",
|
|
2510
2505
|
props: {
|
|
2511
2506
|
question: {},
|
|
2512
2507
|
css: {}
|
|
2513
2508
|
},
|
|
2514
2509
|
setup(r) {
|
|
2515
|
-
const o = r, n =
|
|
2510
|
+
const o = r, n = S(null);
|
|
2516
2511
|
return M(o, n), (s, e) => {
|
|
2517
2512
|
var c;
|
|
2518
2513
|
const i = q("survey-element-title-content"), a = q("sv-title-actions"), d = q("survey-string");
|
|
@@ -2540,7 +2535,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
2540
2535
|
"aria-label": s.question.ariaLabel,
|
|
2541
2536
|
"aria-invalid": s.question.ariaInvalid,
|
|
2542
2537
|
"aria-describedby": s.question.ariaDescribedBy
|
|
2543
|
-
}, null, 10,
|
|
2538
|
+
}, null, 10, Zn), [
|
|
2544
2539
|
[z, s.question.booleanValue]
|
|
2545
2540
|
]),
|
|
2546
2541
|
p("span", {
|
|
@@ -2552,9 +2547,9 @@ const _n = /* @__PURE__ */ C({
|
|
|
2552
2547
|
}, [
|
|
2553
2548
|
p("use", {
|
|
2554
2549
|
"xlink:href": s.question.svgIcon
|
|
2555
|
-
}, null, 8,
|
|
2550
|
+
}, null, 8, Gn)
|
|
2556
2551
|
], 2)) : m("", !0),
|
|
2557
|
-
|
|
2552
|
+
Xn
|
|
2558
2553
|
], 2),
|
|
2559
2554
|
s.question.isLabelRendered ? (t(), u("span", {
|
|
2560
2555
|
key: 0,
|
|
@@ -2571,7 +2566,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
2571
2566
|
element: s.question,
|
|
2572
2567
|
css: s.css
|
|
2573
2568
|
}, null, 8, ["element", "css"])) : m("", !0)
|
|
2574
|
-
], 10,
|
|
2569
|
+
], 10, Jn)) : m("", !0)
|
|
2575
2570
|
], 2),
|
|
2576
2571
|
s.question.canRenderLabelDescription ? (t(), u("div", {
|
|
2577
2572
|
key: 0,
|
|
@@ -2585,13 +2580,13 @@ const _n = /* @__PURE__ */ C({
|
|
|
2585
2580
|
], 2);
|
|
2586
2581
|
};
|
|
2587
2582
|
}
|
|
2588
|
-
}),
|
|
2583
|
+
}), _n = /* @__PURE__ */ C({
|
|
2589
2584
|
__name: "Multipletext",
|
|
2590
2585
|
props: {
|
|
2591
2586
|
question: {}
|
|
2592
2587
|
},
|
|
2593
2588
|
setup(r) {
|
|
2594
|
-
const o = r, n =
|
|
2589
|
+
const o = r, n = S(null);
|
|
2595
2590
|
return M(o, n), (s, e) => {
|
|
2596
2591
|
const i = q("survey-multipletext-item");
|
|
2597
2592
|
return t(), u("table", {
|
|
@@ -2600,77 +2595,74 @@ const _n = /* @__PURE__ */ C({
|
|
|
2600
2595
|
ref: n
|
|
2601
2596
|
}, [
|
|
2602
2597
|
p("tbody", null, [
|
|
2603
|
-
(t(!0), u(w, null,
|
|
2604
|
-
key: s.question.inputId + "rowkey" + d
|
|
2605
|
-
class: l(s.question.cssClasses.row)
|
|
2598
|
+
(t(!0), u(w, null, R(s.question.getRows(), (a, d) => (t(), u(w, {
|
|
2599
|
+
key: s.question.inputId + "rowkey" + d
|
|
2606
2600
|
}, [
|
|
2607
|
-
|
|
2608
|
-
key:
|
|
2609
|
-
class: l(s.question.cssClasses.
|
|
2601
|
+
a.isVisible ? (t(), u("tr", {
|
|
2602
|
+
key: 0,
|
|
2603
|
+
class: l(s.question.cssClasses.row)
|
|
2610
2604
|
}, [
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
},
|
|
2615
|
-
|
|
2616
|
-
|
|
2605
|
+
(t(!0), u(w, null, R(a.cells, (c) => (t(), u("td", {
|
|
2606
|
+
key: "item" + c.item.editor.id,
|
|
2607
|
+
class: l(c.className)
|
|
2608
|
+
}, [
|
|
2609
|
+
h(i, {
|
|
2610
|
+
question: s.question,
|
|
2611
|
+
cell: c
|
|
2612
|
+
}, null, 8, ["question", "cell"])
|
|
2613
|
+
], 2))), 128))
|
|
2614
|
+
], 2)) : m("", !0)
|
|
2615
|
+
], 64))), 128))
|
|
2617
2616
|
])
|
|
2618
2617
|
], 2);
|
|
2619
2618
|
};
|
|
2620
2619
|
}
|
|
2621
|
-
}), eo = /* @__PURE__ */ C({
|
|
2620
|
+
}), xn = { key: 1 }, eo = /* @__PURE__ */ C({
|
|
2622
2621
|
__name: "MultipletextItem",
|
|
2623
2622
|
props: {
|
|
2624
2623
|
question: {},
|
|
2625
|
-
|
|
2624
|
+
cell: {}
|
|
2626
2625
|
},
|
|
2627
2626
|
setup(r) {
|
|
2628
|
-
const o = r, n = (
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2627
|
+
const o = r, n = (e) => ee(e);
|
|
2628
|
+
B(() => o.cell.item.editor);
|
|
2629
|
+
const s = T(() => o.cell.item);
|
|
2630
|
+
return (e, i) => {
|
|
2631
|
+
const a = q("survey-string"), d = q("survey-errors");
|
|
2632
|
+
return e.cell.isErrorsCell ? (t(), y(d, {
|
|
2633
|
+
key: 1,
|
|
2634
|
+
element: s.value.editor
|
|
2635
|
+
}, null, 8, ["element"])) : (t(), u("label", {
|
|
2636
|
+
key: 0,
|
|
2637
|
+
class: l(e.question.getItemLabelCss(s.value))
|
|
2633
2638
|
}, [
|
|
2634
2639
|
p("span", {
|
|
2635
|
-
class: l(
|
|
2640
|
+
class: l(e.question.getItemTitleCss())
|
|
2636
2641
|
}, [
|
|
2637
|
-
s.
|
|
2642
|
+
s.value.editor.isRequireTextBeforeTitle || s.value.editor.isRequireTextOnStart ? (t(), u("span", {
|
|
2638
2643
|
key: 0,
|
|
2639
|
-
class: l(
|
|
2640
|
-
}, I(s.
|
|
2641
|
-
h(
|
|
2642
|
-
locString: s.
|
|
2644
|
+
class: l(e.question.cssClasses.requiredText)
|
|
2645
|
+
}, I(s.value.editor.requiredText), 3)) : m("", !0),
|
|
2646
|
+
h(a, {
|
|
2647
|
+
locString: s.value.locTitle
|
|
2643
2648
|
}, null, 8, ["locString"]),
|
|
2644
|
-
s.
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2649
|
+
s.value.editor.isRequireTextAfterTitle ? (t(), u("span", xn, "\xA0")) : m("", !0),
|
|
2650
|
+
s.value.editor.isRequireTextAfterTitle ? (t(), u("span", {
|
|
2651
|
+
key: 2,
|
|
2652
|
+
"aria-hidden": "true",
|
|
2653
|
+
class: l(e.question.cssClasses.requiredText)
|
|
2654
|
+
}, I(s.value.editor.requiredText), 3)) : m("", !0)
|
|
2648
2655
|
], 2),
|
|
2649
2656
|
(t(), u("div", {
|
|
2650
|
-
key: s.
|
|
2651
|
-
class: l(
|
|
2652
|
-
onFocusin:
|
|
2657
|
+
key: s.value.editor.id,
|
|
2658
|
+
class: l(e.question.getItemCss()),
|
|
2659
|
+
onFocusin: i[0] || (i[0] = (c) => s.value.focusIn())
|
|
2653
2660
|
}, [
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
(t(), y(N(n(s.item.editor)), {
|
|
2660
|
-
question: s.item.editor
|
|
2661
|
-
}, null, 8, ["question"])),
|
|
2662
|
-
s.item.editor.showErrorOnBottom ? (t(), y(a, {
|
|
2663
|
-
key: 1,
|
|
2664
|
-
element: s.item.editor,
|
|
2665
|
-
location: "bottom"
|
|
2666
|
-
}, null, 8, ["element"])) : m("", !0)
|
|
2667
|
-
], 34)),
|
|
2668
|
-
s.item.editor.isErrorsModeTooltip ? (t(), y(a, {
|
|
2669
|
-
key: 0,
|
|
2670
|
-
element: s.item.editor,
|
|
2671
|
-
location: "tooltip"
|
|
2672
|
-
}, null, 8, ["element"])) : m("", !0)
|
|
2673
|
-
], 2);
|
|
2661
|
+
(t(), y(N(n(s.value.editor)), {
|
|
2662
|
+
question: s.value.editor
|
|
2663
|
+
}, null, 8, ["question"]))
|
|
2664
|
+
], 34))
|
|
2665
|
+
], 2));
|
|
2674
2666
|
};
|
|
2675
2667
|
}
|
|
2676
2668
|
}), so = ["aria-label"], no = { key: 0 }, oo = { key: 0 }, to = ["onClick"], io = ["data-responsive-title", "onClick"], lo = ["name", "onUpdate:modelValue", "value", "disabled", "id", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], ro = ["xlink:href"], ao = /* @__PURE__ */ C({
|
|
@@ -2679,7 +2671,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
2679
2671
|
question: {}
|
|
2680
2672
|
},
|
|
2681
2673
|
setup(r) {
|
|
2682
|
-
const o = r, n =
|
|
2674
|
+
const o = r, n = S(null), s = F();
|
|
2683
2675
|
M(
|
|
2684
2676
|
o,
|
|
2685
2677
|
n,
|
|
@@ -2713,7 +2705,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
2713
2705
|
i.question.showHeader ? (t(), u("thead", no, [
|
|
2714
2706
|
p("tr", null, [
|
|
2715
2707
|
i.question.hasRows ? (t(), u("td", oo)) : m("", !0),
|
|
2716
|
-
(t(!0), u(w, null,
|
|
2708
|
+
(t(!0), u(w, null, R(i.question.visibleColumns, (c, v) => (t(), u("th", {
|
|
2717
2709
|
key: v,
|
|
2718
2710
|
class: l(i.question.cssClasses.headerCell),
|
|
2719
2711
|
style: $({
|
|
@@ -2728,7 +2720,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
2728
2720
|
])
|
|
2729
2721
|
])) : m("", !0),
|
|
2730
2722
|
p("tbody", null, [
|
|
2731
|
-
(t(!0), u(w, null,
|
|
2723
|
+
(t(!0), u(w, null, R(s.value, (c, v) => (t(), u("tr", {
|
|
2732
2724
|
key: "row_" + c.name + "_" + v,
|
|
2733
2725
|
class: l(c.rowClasses || void 0)
|
|
2734
2726
|
}, [
|
|
@@ -2745,7 +2737,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
2745
2737
|
], 6), [
|
|
2746
2738
|
[H, i.question.hasRows]
|
|
2747
2739
|
]),
|
|
2748
|
-
i.question.hasCellText ? (t(!0), u(w, { key: 0 },
|
|
2740
|
+
i.question.hasCellText ? (t(!0), u(w, { key: 0 }, R(i.question.visibleColumns, (f, g) => (t(), u("td", {
|
|
2749
2741
|
key: g,
|
|
2750
2742
|
class: l(i.question.getItemClass(c, f)),
|
|
2751
2743
|
onClick: (k) => e(c, f)
|
|
@@ -2754,7 +2746,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
2754
2746
|
locString: i.question.getCellDisplayLocText(c.name, f)
|
|
2755
2747
|
}, null, 8, ["locString"])
|
|
2756
2748
|
], 10, to))), 128)) : m("", !0),
|
|
2757
|
-
i.question.hasCellText ? m("", !0) : (t(!0), u(w, { key: 1 },
|
|
2749
|
+
i.question.hasCellText ? m("", !0) : (t(!0), u(w, { key: 1 }, R(i.question.visibleColumns, (f, g) => (t(), u("td", {
|
|
2758
2750
|
key: g,
|
|
2759
2751
|
"data-responsive-title": f.locText.renderedHtml,
|
|
2760
2752
|
class: l(i.question.cssClasses.cell),
|
|
@@ -2815,7 +2807,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
2815
2807
|
question: {}
|
|
2816
2808
|
},
|
|
2817
2809
|
setup(r) {
|
|
2818
|
-
const o = r, n =
|
|
2810
|
+
const o = r, n = S(null);
|
|
2819
2811
|
return M(o, n), (s, e) => {
|
|
2820
2812
|
const i = q("survey-matrixtable");
|
|
2821
2813
|
return t(), y(i, {
|
|
@@ -2831,7 +2823,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
2831
2823
|
question: {}
|
|
2832
2824
|
},
|
|
2833
2825
|
setup(r) {
|
|
2834
|
-
const o = r, n =
|
|
2826
|
+
const o = r, n = T(() => o.question.renderedTable);
|
|
2835
2827
|
return B(
|
|
2836
2828
|
() => n.value,
|
|
2837
2829
|
(s) => {
|
|
@@ -2856,7 +2848,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
2856
2848
|
}, [
|
|
2857
2849
|
n.value.showHeader ? (t(), u("thead", mo, [
|
|
2858
2850
|
p("tr", null, [
|
|
2859
|
-
(t(!0), u(w, null,
|
|
2851
|
+
(t(!0), u(w, null, R(n.value.headerRow.cells, (c) => (t(), u(w, null, [
|
|
2860
2852
|
c.hasTitle ? (t(), u("th", {
|
|
2861
2853
|
class: l(c.className),
|
|
2862
2854
|
key: "header_" + c.id,
|
|
@@ -2880,7 +2872,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
2880
2872
|
])
|
|
2881
2873
|
])) : m("", !0),
|
|
2882
2874
|
p("tbody", null, [
|
|
2883
|
-
(t(!0), u(w, null,
|
|
2875
|
+
(t(!0), u(w, null, R(n.value.rows, (c) => (t(), u(w, {
|
|
2884
2876
|
key: s.question.inputId + "_" + c.id
|
|
2885
2877
|
}, [
|
|
2886
2878
|
c.visible ? (t(), u("tr", {
|
|
@@ -2888,7 +2880,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
2888
2880
|
"data-sv-drop-target-matrix-row": c.row && c.row.id,
|
|
2889
2881
|
class: l(c.className)
|
|
2890
2882
|
}, [
|
|
2891
|
-
(t(!0), u(w, null,
|
|
2883
|
+
(t(!0), u(w, null, R(c.cells, (v, f) => (t(), y(d, {
|
|
2892
2884
|
cell: v,
|
|
2893
2885
|
question: s.question,
|
|
2894
2886
|
key: c.id + "_" + f
|
|
@@ -2898,7 +2890,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
2898
2890
|
]),
|
|
2899
2891
|
n.value.showFooter ? (t(), u("tfoot", po, [
|
|
2900
2892
|
p("tr", null, [
|
|
2901
|
-
(t(!0), u(w, null,
|
|
2893
|
+
(t(!0), u(w, null, R(n.value.footerRow.cells, (c, v) => (t(), y(d, {
|
|
2902
2894
|
cell: c,
|
|
2903
2895
|
question: s.question,
|
|
2904
2896
|
key: "footer_" + v
|
|
@@ -2932,8 +2924,8 @@ const _n = /* @__PURE__ */ C({
|
|
|
2932
2924
|
cell: {}
|
|
2933
2925
|
},
|
|
2934
2926
|
setup(r) {
|
|
2935
|
-
const o = r, n =
|
|
2936
|
-
return
|
|
2927
|
+
const o = r, n = S(!1), s = S(), e = () => o.cell.headers, i = () => !!o.cell.width || !!o.cell.minWidth ? { width: o.cell.width, minWidth: o.cell.minWidth } : null, a = () => o.cell.index || "", d = () => n.value = o.cell.question.isVisible, c = (v) => ee(v);
|
|
2928
|
+
return A(() => {
|
|
2937
2929
|
if (!(!o.cell.hasQuestion || !o.question || !o.question.survey)) {
|
|
2938
2930
|
d(), o.cell.question.registerPropertyChangedHandlers(["isVisible"], () => {
|
|
2939
2931
|
d();
|
|
@@ -2948,7 +2940,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
2948
2940
|
o.question.survey.matrixAfterCellRender(o.question, v);
|
|
2949
2941
|
}
|
|
2950
2942
|
}), (v, f) => {
|
|
2951
|
-
const g = q("survey-errors"), k = q("sv-matrix-drag-drop-icon"), P = q("sv-action-bar"), L = q("survey-radiogroup-item"),
|
|
2943
|
+
const g = q("survey-errors"), k = q("sv-matrix-drag-drop-icon"), P = q("sv-action-bar"), L = q("survey-radiogroup-item"), E = q("survey-checkbox-item"), j = q("survey-other-choice"), J = q("survey-string");
|
|
2952
2944
|
return t(), u("td", {
|
|
2953
2945
|
class: l(v.cell.className),
|
|
2954
2946
|
"data-responsive-title": e(),
|
|
@@ -3001,7 +2993,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
3001
2993
|
index: a(),
|
|
3002
2994
|
hideLabel: !0
|
|
3003
2995
|
}, null, 8, ["class", "question", "item", "index"])) : m("", !0),
|
|
3004
|
-
v.cell.isCheckbox ? (t(), y(
|
|
2996
|
+
v.cell.isCheckbox ? (t(), y(E, {
|
|
3005
2997
|
key: v.cell.item.value,
|
|
3006
2998
|
class: l(v.cell.question.getItemClass(v.cell.item)),
|
|
3007
2999
|
question: v.cell.question,
|
|
@@ -3009,7 +3001,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
3009
3001
|
index: a(),
|
|
3010
3002
|
hideLabel: !0
|
|
3011
3003
|
}, null, 8, ["class", "question", "item", "index"])) : m("", !0),
|
|
3012
|
-
v.cell.isOtherChoice ? (t(), y(
|
|
3004
|
+
v.cell.isOtherChoice ? (t(), y(j, {
|
|
3013
3005
|
key: 4,
|
|
3014
3006
|
question: v.cell.question
|
|
3015
3007
|
}, null, 8, ["question"])) : m("", !0)
|
|
@@ -3031,7 +3023,7 @@ const _n = /* @__PURE__ */ C({
|
|
|
3031
3023
|
question: {}
|
|
3032
3024
|
},
|
|
3033
3025
|
setup(r) {
|
|
3034
|
-
const o = r, n =
|
|
3026
|
+
const o = r, n = S(null);
|
|
3035
3027
|
M(o, n);
|
|
3036
3028
|
const s = () => {
|
|
3037
3029
|
o.question.addRowUI();
|
|
@@ -3110,8 +3102,8 @@ const _n = /* @__PURE__ */ C({
|
|
|
3110
3102
|
});
|
|
3111
3103
|
function se(r, o = !0) {
|
|
3112
3104
|
return {
|
|
3113
|
-
question:
|
|
3114
|
-
row: o ?
|
|
3105
|
+
question: T(() => r.item.data.question),
|
|
3106
|
+
row: o ? T(() => r.item.data.row) : void 0
|
|
3115
3107
|
};
|
|
3116
3108
|
}
|
|
3117
3109
|
const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
@@ -3157,7 +3149,7 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3157
3149
|
class: l(b(n).cssClasses.iconDrag)
|
|
3158
3150
|
}, null, 2));
|
|
3159
3151
|
}
|
|
3160
|
-
}), wo = ["aria-expanded", "aria-controls"],
|
|
3152
|
+
}), wo = ["aria-expanded", "aria-controls"], So = /* @__PURE__ */ C({
|
|
3161
3153
|
__name: "DetailButton",
|
|
3162
3154
|
props: {
|
|
3163
3155
|
item: {}
|
|
@@ -3181,14 +3173,14 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3181
3173
|
], 10, wo);
|
|
3182
3174
|
};
|
|
3183
3175
|
}
|
|
3184
|
-
}),
|
|
3176
|
+
}), To = /* @__PURE__ */ C({
|
|
3185
3177
|
__name: "PanelDynamic",
|
|
3186
3178
|
props: {
|
|
3187
3179
|
question: {},
|
|
3188
3180
|
css: {}
|
|
3189
3181
|
},
|
|
3190
3182
|
setup(r) {
|
|
3191
|
-
const o = r, n =
|
|
3183
|
+
const o = r, n = S(null), s = x();
|
|
3192
3184
|
M(
|
|
3193
3185
|
o,
|
|
3194
3186
|
n,
|
|
@@ -3211,7 +3203,7 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3211
3203
|
};
|
|
3212
3204
|
}
|
|
3213
3205
|
);
|
|
3214
|
-
const e =
|
|
3206
|
+
const e = T(() => {
|
|
3215
3207
|
if (o.question.isRenderModeList)
|
|
3216
3208
|
return o.question.panels;
|
|
3217
3209
|
const a = [];
|
|
@@ -3251,7 +3243,7 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3251
3243
|
key: 2,
|
|
3252
3244
|
question: a.question
|
|
3253
3245
|
}, null, 8, ["question"])) : m("", !0),
|
|
3254
|
-
(t(!0), u(w, null,
|
|
3246
|
+
(t(!0), u(w, null, R(e.value, (L, E) => (t(), u(w, {
|
|
3255
3247
|
key: L.id
|
|
3256
3248
|
}, [
|
|
3257
3249
|
p("div", {
|
|
@@ -3266,7 +3258,7 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3266
3258
|
data: { question: a.question, panel: L }
|
|
3267
3259
|
}, null, 8, ["data"])) : m("", !0)
|
|
3268
3260
|
], 2),
|
|
3269
|
-
a.question.isRenderModeList &&
|
|
3261
|
+
a.question.isRenderModeList && E < a.question.visiblePanelCount - 1 ? (t(), u("hr", {
|
|
3270
3262
|
class: l(a.question.cssClasses.separator),
|
|
3271
3263
|
key: "separator" + L.id
|
|
3272
3264
|
}, null, 2)) : m("", !0)
|
|
@@ -3369,8 +3361,8 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3369
3361
|
};
|
|
3370
3362
|
}
|
|
3371
3363
|
});
|
|
3372
|
-
function
|
|
3373
|
-
return
|
|
3364
|
+
function K(r) {
|
|
3365
|
+
return T(
|
|
3374
3366
|
() => r.item && r.item.data.question || r.data.question
|
|
3375
3367
|
);
|
|
3376
3368
|
}
|
|
@@ -3381,7 +3373,7 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3381
3373
|
data: {}
|
|
3382
3374
|
},
|
|
3383
3375
|
setup(r) {
|
|
3384
|
-
const n =
|
|
3376
|
+
const n = K(r), s = () => {
|
|
3385
3377
|
n.value.addPanelUI();
|
|
3386
3378
|
};
|
|
3387
3379
|
return (e, i) => b(n).canAddPanel ? (t(), u("button", {
|
|
@@ -3402,7 +3394,7 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3402
3394
|
data: {}
|
|
3403
3395
|
},
|
|
3404
3396
|
setup(r) {
|
|
3405
|
-
const n =
|
|
3397
|
+
const n = K(r), s = () => {
|
|
3406
3398
|
n.value.goToNextPanel();
|
|
3407
3399
|
};
|
|
3408
3400
|
return (e, i) => {
|
|
@@ -3426,7 +3418,7 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3426
3418
|
data: {}
|
|
3427
3419
|
},
|
|
3428
3420
|
setup(r) {
|
|
3429
|
-
const n =
|
|
3421
|
+
const n = K(r), s = () => {
|
|
3430
3422
|
n.value.goToPrevPanel();
|
|
3431
3423
|
};
|
|
3432
3424
|
return (e, i) => {
|
|
@@ -3450,7 +3442,7 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3450
3442
|
data: {}
|
|
3451
3443
|
},
|
|
3452
3444
|
setup(r) {
|
|
3453
|
-
const o = r, n =
|
|
3445
|
+
const o = r, n = K(o), s = T(
|
|
3454
3446
|
() => o.item && o.item.data.panel || o.data.panel
|
|
3455
3447
|
), e = (i) => {
|
|
3456
3448
|
n.value.isInputReadOnly || n.value.removePanelUI(i);
|
|
@@ -3475,65 +3467,60 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3475
3467
|
data: {}
|
|
3476
3468
|
},
|
|
3477
3469
|
setup(r) {
|
|
3478
|
-
const n =
|
|
3470
|
+
const n = K(r);
|
|
3479
3471
|
return (s, e) => (t(), u("div", {
|
|
3480
3472
|
class: l(b(n).cssClasses.progressText)
|
|
3481
3473
|
}, I(b(n).progressText), 3));
|
|
3482
3474
|
}
|
|
3483
|
-
}),
|
|
3475
|
+
}), Ao = ["id"], Eo = /* @__PURE__ */ C({
|
|
3484
3476
|
__name: "Errors",
|
|
3485
3477
|
props: {
|
|
3486
3478
|
element: {},
|
|
3487
3479
|
location: {}
|
|
3488
3480
|
},
|
|
3489
3481
|
setup(r) {
|
|
3490
|
-
const o =
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
}), O(() => {
|
|
3495
|
-
s && s.dispose();
|
|
3496
|
-
}), (e, i) => {
|
|
3497
|
-
const a = q("survey-string");
|
|
3498
|
-
return e.element.hasVisibleErrors ? (t(), u("div", {
|
|
3482
|
+
const o = S();
|
|
3483
|
+
return (n, s) => {
|
|
3484
|
+
const e = q("survey-string");
|
|
3485
|
+
return n.element.hasVisibleErrors ? (t(), u("div", {
|
|
3499
3486
|
key: 0,
|
|
3500
3487
|
role: "alert",
|
|
3501
3488
|
"aria-live": "polite",
|
|
3502
|
-
class: l(
|
|
3503
|
-
id:
|
|
3489
|
+
class: l(n.element.cssError),
|
|
3490
|
+
id: n.element.id + "_errors",
|
|
3504
3491
|
ref_key: "root",
|
|
3505
|
-
ref:
|
|
3492
|
+
ref: o
|
|
3506
3493
|
}, [
|
|
3507
|
-
(t(!0), u(w, null,
|
|
3508
|
-
key: "error_" +
|
|
3494
|
+
(t(!0), u(w, null, R(n.element.errors, (i, a) => (t(), u("div", {
|
|
3495
|
+
key: "error_" + a
|
|
3509
3496
|
}, [
|
|
3510
3497
|
p("span", {
|
|
3511
3498
|
class: l(
|
|
3512
|
-
|
|
3499
|
+
n.element.cssClasses ? n.element.cssClasses.error.icon || void 0 : "panel-error-icon"
|
|
3513
3500
|
),
|
|
3514
3501
|
"aria-hidden": "true"
|
|
3515
3502
|
}, null, 2),
|
|
3516
3503
|
p("span", {
|
|
3517
3504
|
class: l(
|
|
3518
|
-
|
|
3505
|
+
n.element.cssClasses ? n.element.cssClasses.error.item || void 0 : "panel-error-item"
|
|
3519
3506
|
)
|
|
3520
3507
|
}, [
|
|
3521
|
-
h(
|
|
3522
|
-
locString:
|
|
3508
|
+
h(e, {
|
|
3509
|
+
locString: i.locText
|
|
3523
3510
|
}, null, 8, ["locString"])
|
|
3524
3511
|
], 2)
|
|
3525
3512
|
]))), 128))
|
|
3526
|
-
], 10,
|
|
3513
|
+
], 10, Ao)) : m("", !0);
|
|
3527
3514
|
};
|
|
3528
3515
|
}
|
|
3529
|
-
}),
|
|
3516
|
+
}), Vo = { key: 0 }, Oo = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], Fo = /* @__PURE__ */ C({
|
|
3530
3517
|
__name: "QuestionComment",
|
|
3531
3518
|
props: {
|
|
3532
3519
|
question: {},
|
|
3533
3520
|
commentClass: {}
|
|
3534
3521
|
},
|
|
3535
3522
|
setup(r) {
|
|
3536
|
-
return (o, n) => o.question.isReadOnlyRenderDiv() ? (t(), u("div",
|
|
3523
|
+
return (o, n) => o.question.isReadOnlyRenderDiv() ? (t(), u("div", Vo, I(o.question.comment), 1)) : (t(), u("textarea", {
|
|
3537
3524
|
key: 1,
|
|
3538
3525
|
id: o.question.commentId,
|
|
3539
3526
|
readonly: o.question.isInputReadOnly,
|
|
@@ -3551,7 +3538,7 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3551
3538
|
onInput: n[1] || (n[1] = (s) => {
|
|
3552
3539
|
o.question.onCommentInput(s);
|
|
3553
3540
|
})
|
|
3554
|
-
}, null, 46,
|
|
3541
|
+
}, null, 46, Oo));
|
|
3555
3542
|
}
|
|
3556
3543
|
}), Wo = /* @__PURE__ */ C({
|
|
3557
3544
|
__name: "TitleElement",
|
|
@@ -3645,7 +3632,7 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3645
3632
|
css: {}
|
|
3646
3633
|
},
|
|
3647
3634
|
setup(r) {
|
|
3648
|
-
const o = r, n =
|
|
3635
|
+
const o = r, n = T(() => o.element.getTitleToolbar());
|
|
3649
3636
|
return (s, e) => {
|
|
3650
3637
|
const i = q("survey-string"), a = q("survey-element-title-content"), d = q("sv-action-bar");
|
|
3651
3638
|
return t(), u("div", Zo, [
|
|
@@ -3687,7 +3674,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3687
3674
|
title: {}
|
|
3688
3675
|
},
|
|
3689
3676
|
setup(r) {
|
|
3690
|
-
const o = r, n =
|
|
3677
|
+
const o = r, n = S(), s = () => {
|
|
3691
3678
|
Se(
|
|
3692
3679
|
o.size,
|
|
3693
3680
|
o.width,
|
|
@@ -3697,9 +3684,9 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3697
3684
|
o.title
|
|
3698
3685
|
);
|
|
3699
3686
|
};
|
|
3700
|
-
return
|
|
3687
|
+
return G(() => {
|
|
3701
3688
|
s();
|
|
3702
|
-
}),
|
|
3689
|
+
}), A(() => {
|
|
3703
3690
|
s();
|
|
3704
3691
|
}), (e, i) => (t(), u("svg", {
|
|
3705
3692
|
ref_key: "svgIconElement",
|
|
@@ -3713,13 +3700,14 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3713
3700
|
__name: "ActionBar",
|
|
3714
3701
|
props: {
|
|
3715
3702
|
model: {},
|
|
3703
|
+
container: {},
|
|
3716
3704
|
handleClick: { type: Boolean }
|
|
3717
3705
|
},
|
|
3718
3706
|
setup(r) {
|
|
3719
|
-
const o = r, n =
|
|
3720
|
-
return B(() => o.model),
|
|
3707
|
+
const o = r, n = S(null);
|
|
3708
|
+
return B(() => o.model), A(() => {
|
|
3721
3709
|
!o.model.hasActions || o.model.initResponsivityManager(n.value);
|
|
3722
|
-
}),
|
|
3710
|
+
}), V(() => {
|
|
3723
3711
|
o.model.resetResponsivityManager();
|
|
3724
3712
|
}), (s, e) => {
|
|
3725
3713
|
const i = q("sv-action");
|
|
@@ -3732,7 +3720,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3732
3720
|
a.stopPropagation();
|
|
3733
3721
|
})
|
|
3734
3722
|
}, [
|
|
3735
|
-
(t(!0), u(w, null,
|
|
3723
|
+
(t(!0), u(w, null, R(s.model.renderedActions, (a) => (t(), y(i, {
|
|
3736
3724
|
key: a.id,
|
|
3737
3725
|
item: a
|
|
3738
3726
|
}, null, 8, ["item"]))), 128))
|
|
@@ -3745,7 +3733,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3745
3733
|
item: {}
|
|
3746
3734
|
},
|
|
3747
3735
|
setup(r) {
|
|
3748
|
-
const o = r, n =
|
|
3736
|
+
const o = r, n = T(
|
|
3749
3737
|
() => o.item.component || "sv-action-bar-item"
|
|
3750
3738
|
);
|
|
3751
3739
|
return B(() => o.item), (s, e) => {
|
|
@@ -3806,12 +3794,12 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3806
3794
|
item: {}
|
|
3807
3795
|
},
|
|
3808
3796
|
setup(r) {
|
|
3809
|
-
const o = r, n =
|
|
3797
|
+
const o = r, n = Re;
|
|
3810
3798
|
let s;
|
|
3811
3799
|
return B(
|
|
3812
3800
|
() => o.item,
|
|
3813
3801
|
(e) => {
|
|
3814
|
-
s = new
|
|
3802
|
+
s = new Te(e);
|
|
3815
3803
|
},
|
|
3816
3804
|
() => {
|
|
3817
3805
|
s.dispose();
|
|
@@ -3858,7 +3846,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3858
3846
|
item: {}
|
|
3859
3847
|
},
|
|
3860
3848
|
setup(r) {
|
|
3861
|
-
const o = r, n =
|
|
3849
|
+
const o = r, n = T(() => o.item && o.item.innerCss);
|
|
3862
3850
|
return (s, e) => (t(), u("div", {
|
|
3863
3851
|
class: l(["sv-action-bar-separator", n.value])
|
|
3864
3852
|
}, null, 2));
|
|
@@ -3869,7 +3857,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3869
3857
|
model: {}
|
|
3870
3858
|
},
|
|
3871
3859
|
setup(r) {
|
|
3872
|
-
const o = r, n =
|
|
3860
|
+
const o = r, n = S(null), s = (a) => {
|
|
3873
3861
|
const d = o.model;
|
|
3874
3862
|
d.filterString = a.target.value;
|
|
3875
3863
|
}, e = (a) => {
|
|
@@ -3878,7 +3866,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3878
3866
|
}, i = (a) => {
|
|
3879
3867
|
o.model.onMouseMove(a);
|
|
3880
3868
|
};
|
|
3881
|
-
return B(() => o.model),
|
|
3869
|
+
return B(() => o.model), A(() => {
|
|
3882
3870
|
o.model.initListContainerHtmlElement(n.value);
|
|
3883
3871
|
}), (a, d) => {
|
|
3884
3872
|
const c = q("sv-svg-icon"), v = q("sv-list-item");
|
|
@@ -3944,7 +3932,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3944
3932
|
a.model.onKeyDown(f);
|
|
3945
3933
|
})
|
|
3946
3934
|
}, [
|
|
3947
|
-
(t(!0), u(w, null,
|
|
3935
|
+
(t(!0), u(w, null, R(a.model.renderedActions, (f) => (t(), y(v, {
|
|
3948
3936
|
item: f,
|
|
3949
3937
|
model: a.model,
|
|
3950
3938
|
key: f.id
|
|
@@ -3962,10 +3950,10 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3962
3950
|
item: {}
|
|
3963
3951
|
},
|
|
3964
3952
|
setup(r) {
|
|
3965
|
-
const o = r, n =
|
|
3953
|
+
const o = r, n = T(() => o.item.elementId), s = (e) => {
|
|
3966
3954
|
o.model.onItemClick(o.item), e.stopPropagation();
|
|
3967
3955
|
};
|
|
3968
|
-
return B(() => o.item),
|
|
3956
|
+
return B(() => o.item), A(() => {
|
|
3969
3957
|
setTimeout(() => {
|
|
3970
3958
|
o.model.onLastItemRended(o.item);
|
|
3971
3959
|
});
|
|
@@ -4018,20 +4006,20 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4018
4006
|
setup(r) {
|
|
4019
4007
|
const o = r, n = F(
|
|
4020
4008
|
te(o.model, void 0)
|
|
4021
|
-
), s =
|
|
4022
|
-
return
|
|
4009
|
+
), s = S(null);
|
|
4010
|
+
return Z(
|
|
4023
4011
|
() => o.model,
|
|
4024
4012
|
(e) => {
|
|
4025
4013
|
n.value.dispose(), n.value = te(e, void 0);
|
|
4026
4014
|
},
|
|
4027
4015
|
{ immediate: !0 }
|
|
4028
|
-
), B(() => n.value),
|
|
4016
|
+
), B(() => n.value), A(() => {
|
|
4029
4017
|
const e = s.value;
|
|
4030
4018
|
n.value.setComponentElement(
|
|
4031
4019
|
e,
|
|
4032
4020
|
o.getTarget ? o.getTarget(e) : void 0
|
|
4033
4021
|
);
|
|
4034
|
-
}),
|
|
4022
|
+
}), V(() => {
|
|
4035
4023
|
n.value.dispose();
|
|
4036
4024
|
}), (e, i) => {
|
|
4037
4025
|
const a = q("sv-popup-container");
|
|
@@ -4043,10 +4031,10 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4043
4031
|
], 512);
|
|
4044
4032
|
};
|
|
4045
4033
|
}
|
|
4046
|
-
}), It = { class: "sv-popup__shadow" }, wt = { class: "sv-popup__body-content" },
|
|
4034
|
+
}), It = { class: "sv-popup__shadow" }, wt = { class: "sv-popup__body-content" }, St = {
|
|
4047
4035
|
key: 0,
|
|
4048
4036
|
class: "sv-popup__body-header"
|
|
4049
|
-
},
|
|
4037
|
+
}, Tt = { class: "sv-popup__scrolling-content" }, Rt = { class: "sv-popup__content" }, $t = {
|
|
4050
4038
|
key: 1,
|
|
4051
4039
|
class: "sv-popup__body-footer"
|
|
4052
4040
|
}, Bt = /* @__PURE__ */ C({
|
|
@@ -4060,7 +4048,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4060
4048
|
const s = (e) => {
|
|
4061
4049
|
e.stopPropagation();
|
|
4062
4050
|
};
|
|
4063
|
-
return B(() => o.model),
|
|
4051
|
+
return B(() => o.model), G(() => {
|
|
4064
4052
|
const e = o.model;
|
|
4065
4053
|
!n && e.isVisible && o.model.updateOnShowing(), n = e.isVisible;
|
|
4066
4054
|
}), (e, i) => {
|
|
@@ -4092,8 +4080,8 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4092
4080
|
model: e.model
|
|
4093
4081
|
}, null, 8, ["model"])) : m("", !0),
|
|
4094
4082
|
p("div", wt, [
|
|
4095
|
-
e.model.title ? (t(), u("div",
|
|
4096
|
-
p("div",
|
|
4083
|
+
e.model.title ? (t(), u("div", St, I(e.model.title), 1)) : m("", !0),
|
|
4084
|
+
p("div", Tt, [
|
|
4097
4085
|
p("div", Rt, [
|
|
4098
4086
|
(t(), y(N(e.model.contentComponentName), ge(Ce(e.model.contentComponentData)), null, 16))
|
|
4099
4087
|
])
|
|
@@ -4136,31 +4124,33 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4136
4124
|
needRenderWrapper: {}
|
|
4137
4125
|
},
|
|
4138
4126
|
setup(r) {
|
|
4139
|
-
const o = r, n =
|
|
4127
|
+
const o = r, n = T(
|
|
4140
4128
|
() => o.survey.getContainerContent(o.container)
|
|
4141
4129
|
);
|
|
4142
4130
|
return (s, e) => n.value.length > 0 ? (t(), u(w, { key: 0 }, [
|
|
4143
4131
|
s.needRenderWrapper ? (t(), u("div", Dt, [
|
|
4144
|
-
(t(!0), u(w, null,
|
|
4132
|
+
(t(!0), u(w, null, R(n.value, (i, a) => (t(), y(N(i.component), {
|
|
4145
4133
|
survey: s.survey,
|
|
4134
|
+
container: s.container,
|
|
4146
4135
|
model: i.data
|
|
4147
|
-
}, null, 8, ["survey", "model"]))), 256))
|
|
4148
|
-
])) : (t(!0), u(w, { key: 1 },
|
|
4136
|
+
}, null, 8, ["survey", "container", "model"]))), 256))
|
|
4137
|
+
])) : (t(!0), u(w, { key: 1 }, R(n.value, (i, a) => (t(), y(N(i.component), {
|
|
4149
4138
|
survey: s.survey,
|
|
4150
4139
|
model: i.data
|
|
4151
4140
|
}, null, 8, ["survey", "model"]))), 256))
|
|
4152
4141
|
], 64)) : m("", !0);
|
|
4153
4142
|
}
|
|
4154
|
-
}),
|
|
4143
|
+
}), Q = /* @__PURE__ */ C({
|
|
4155
4144
|
__name: "Progress",
|
|
4156
4145
|
props: {
|
|
4157
4146
|
survey: {},
|
|
4147
|
+
container: {},
|
|
4158
4148
|
css: {}
|
|
4159
4149
|
},
|
|
4160
4150
|
setup(r) {
|
|
4161
|
-
const o = r, n =
|
|
4151
|
+
const o = r, n = T(() => o.survey.progressValue + "%"), s = (i) => ie.getProgressTextInBarCss(i), e = (i) => ie.getProgressTextUnderBarCss(i);
|
|
4162
4152
|
return (i, a) => (t(), u("div", {
|
|
4163
|
-
class: l(i.survey.getProgressCssClasses())
|
|
4153
|
+
class: l(i.survey.getProgressCssClasses(i.container))
|
|
4164
4154
|
}, [
|
|
4165
4155
|
p("div", {
|
|
4166
4156
|
class: l(i.survey.css.progressBar),
|
|
@@ -4178,13 +4168,13 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4178
4168
|
}, I(i.survey.progressText), 3)
|
|
4179
4169
|
], 2));
|
|
4180
4170
|
}
|
|
4181
|
-
}), Mt = ["onClick"], Nt = ["title"], Ht = ["title"],
|
|
4171
|
+
}), Mt = ["onClick"], Nt = ["title"], Ht = ["title"], At = /* @__PURE__ */ C({
|
|
4182
4172
|
__name: "ProgressButtons",
|
|
4183
4173
|
props: {
|
|
4184
4174
|
survey: {}
|
|
4185
4175
|
},
|
|
4186
4176
|
setup(r) {
|
|
4187
|
-
const o = r, n = new
|
|
4177
|
+
const o = r, n = new $e(o.survey), s = S(!1), e = S(), i = T(() => o.survey.css);
|
|
4188
4178
|
let a;
|
|
4189
4179
|
const d = (k) => n.isListElementClickable(k), c = (k) => n.getListElementCss(k), v = (k) => {
|
|
4190
4180
|
n.clickListElement(k);
|
|
@@ -4192,7 +4182,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4192
4182
|
let P = e.value;
|
|
4193
4183
|
P.scrollLeft += (k ? -1 : 1) * 70;
|
|
4194
4184
|
};
|
|
4195
|
-
return
|
|
4185
|
+
return A(() => {
|
|
4196
4186
|
const k = e.value;
|
|
4197
4187
|
a = setInterval(() => {
|
|
4198
4188
|
s.value = k.scrollWidth > k.offsetWidth;
|
|
@@ -4218,10 +4208,10 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4218
4208
|
p("ul", {
|
|
4219
4209
|
class: l(i.value.progressButtonsList)
|
|
4220
4210
|
}, [
|
|
4221
|
-
(t(!0), u(w, null,
|
|
4222
|
-
key: "listelement" +
|
|
4223
|
-
class: l(c(
|
|
4224
|
-
onClick: (
|
|
4211
|
+
(t(!0), u(w, null, R(k.survey.visiblePages, (L, E) => (t(), u("li", {
|
|
4212
|
+
key: "listelement" + E,
|
|
4213
|
+
class: l(c(E)),
|
|
4214
|
+
onClick: (j) => d(E) ? v(E) : null
|
|
4225
4215
|
}, [
|
|
4226
4216
|
p("div", {
|
|
4227
4217
|
class: l(i.value.progressButtonsPageTitle),
|
|
@@ -4242,13 +4232,13 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4242
4232
|
], 2)
|
|
4243
4233
|
], 2));
|
|
4244
4234
|
}
|
|
4245
|
-
}),
|
|
4235
|
+
}), Et = /* @__PURE__ */ C({
|
|
4246
4236
|
__name: "ProgressToc",
|
|
4247
4237
|
props: {
|
|
4248
4238
|
survey: {}
|
|
4249
4239
|
},
|
|
4250
4240
|
setup(r) {
|
|
4251
|
-
const o = r, n = new
|
|
4241
|
+
const o = r, n = new Be(o.survey);
|
|
4252
4242
|
return (s, e) => {
|
|
4253
4243
|
const i = q("sv-svg-icon"), a = q("sv-popup"), d = q("sv-list"), c = _("key2click");
|
|
4254
4244
|
return t(), u("div", {
|
|
@@ -4274,7 +4264,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4274
4264
|
], 2);
|
|
4275
4265
|
};
|
|
4276
4266
|
}
|
|
4277
|
-
}),
|
|
4267
|
+
}), Vt = { onsubmit: "return false;" }, Ot = {
|
|
4278
4268
|
key: 0,
|
|
4279
4269
|
class: "sv_custom_header"
|
|
4280
4270
|
}, Ft = ["id"], Wt = { key: 1 }, zt = ["innerHTML"], Ut = ["innerHTML"], Kt = ["innerHTML"], re = /* @__PURE__ */ C({
|
|
@@ -4284,28 +4274,28 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4284
4274
|
survey: {}
|
|
4285
4275
|
},
|
|
4286
4276
|
setup(r) {
|
|
4287
|
-
const o = r, n =
|
|
4277
|
+
const o = r, n = S(), s = S(""), e = S(1), i = T(() => {
|
|
4288
4278
|
const k = o.survey ? o.survey : o.model;
|
|
4289
4279
|
return he(k);
|
|
4290
|
-
}), a =
|
|
4280
|
+
}), a = T(() => i.value.activePage ? i.value.activePage.id : ""), d = () => {
|
|
4291
4281
|
const k = a.value;
|
|
4292
4282
|
return !!i.value && k + e.value.toString();
|
|
4293
|
-
}, c =
|
|
4283
|
+
}, c = T(
|
|
4294
4284
|
() => i.value.showCompletedPage && i.value.state === "completed"
|
|
4295
|
-
), v =
|
|
4296
|
-
return B(() => i.value),
|
|
4285
|
+
), v = T(() => i.value.css), f = T(() => "page" + d()), g = () => c.value ? (s.value || (s.value = i.value.processedCompletedHtml), s.value) : "";
|
|
4286
|
+
return B(() => i.value), A(() => {
|
|
4297
4287
|
if (!!i.value) {
|
|
4298
|
-
i.value.needRenderIcons &&
|
|
4288
|
+
i.value.needRenderIcons && Le.renderIcons();
|
|
4299
4289
|
var k = n.value;
|
|
4300
4290
|
k && i.value.afterRenderSurvey(k), i.value.renderCallback = () => {
|
|
4301
4291
|
var P, L;
|
|
4302
4292
|
e.value++, (L = (P = x()) == null ? void 0 : P.proxy) == null || L.$forceUpdate();
|
|
4303
4293
|
}, i.value.startTimerFromUI();
|
|
4304
4294
|
}
|
|
4305
|
-
}),
|
|
4295
|
+
}), V(() => {
|
|
4306
4296
|
i.value.stopTimer(), i.value.renderCallback = void 0;
|
|
4307
4297
|
}), (k, P) => {
|
|
4308
|
-
const L = q("survey-popup-modal"),
|
|
4298
|
+
const L = q("survey-popup-modal"), E = q("survey-header"), j = q("survey-page"), J = q("sv-brand-info"), ne = q("sv-notifier");
|
|
4309
4299
|
return t(), u("div", {
|
|
4310
4300
|
class: l(i.value.getRootCss()),
|
|
4311
4301
|
style: $(i.value.themeVariables),
|
|
@@ -4318,12 +4308,12 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4318
4308
|
class: l(v.value.rootBackgroundImage),
|
|
4319
4309
|
style: $(i.value.backgroundImageStyle)
|
|
4320
4310
|
}, null, 6)) : m("", !0),
|
|
4321
|
-
p("form",
|
|
4322
|
-
i.value.hasLogo ? m("", !0) : (t(), u("div",
|
|
4311
|
+
p("form", Vt, [
|
|
4312
|
+
i.value.hasLogo ? m("", !0) : (t(), u("div", Ot)),
|
|
4323
4313
|
p("div", {
|
|
4324
4314
|
class: l(v.value.container)
|
|
4325
4315
|
}, [
|
|
4326
|
-
h(
|
|
4316
|
+
h(E, { survey: i.value }, null, 8, ["survey"]),
|
|
4327
4317
|
(t(), y(N("sv-components-container"), {
|
|
4328
4318
|
survey: i.value,
|
|
4329
4319
|
container: "header",
|
|
@@ -4348,7 +4338,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4348
4338
|
container: "contentTop",
|
|
4349
4339
|
needRenderWrapper: !0
|
|
4350
4340
|
}, null, 8, ["survey"])),
|
|
4351
|
-
(t(), y(
|
|
4341
|
+
(t(), y(j, {
|
|
4352
4342
|
key: f.value,
|
|
4353
4343
|
survey: i.value,
|
|
4354
4344
|
page: i.value.activePage,
|
|
@@ -4379,12 +4369,12 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4379
4369
|
])) : m("", !0),
|
|
4380
4370
|
i.value.state === "completedbefore" ? (t(), u("div", {
|
|
4381
4371
|
key: 2,
|
|
4382
|
-
class: l(
|
|
4372
|
+
class: l(i.value.completedBeforeCss),
|
|
4383
4373
|
innerHTML: i.value.processedCompletedBeforeHtml
|
|
4384
4374
|
}, null, 10, Ut)) : m("", !0),
|
|
4385
4375
|
i.value.state === "loading" ? (t(), u("div", {
|
|
4386
4376
|
key: 3,
|
|
4387
|
-
class: l(
|
|
4377
|
+
class: l(i.value.loadingBodyCss),
|
|
4388
4378
|
innerHTML: i.value.processedLoadingHtml
|
|
4389
4379
|
}, null, 10, Kt)) : m("", !0),
|
|
4390
4380
|
i.value.state === "empty" ? (t(), u("div", {
|
|
@@ -4482,10 +4472,10 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4482
4472
|
closeOnCompleteTimeout: {}
|
|
4483
4473
|
},
|
|
4484
4474
|
setup(r) {
|
|
4485
|
-
const o = r, n = F(), s =
|
|
4475
|
+
const o = r, n = F(), s = T(() => o.survey ? o.survey.getCss() : {}), e = T(() => {
|
|
4486
4476
|
var g;
|
|
4487
4477
|
return (g = n.value) != null && g.isExpanded ? s.value.window.header.buttonCollapsed : s.value.window.header.buttonExpanded;
|
|
4488
|
-
}), i =
|
|
4478
|
+
}), i = T(() => {
|
|
4489
4479
|
var g;
|
|
4490
4480
|
return (g = n.value) == null ? void 0 : g.isExpanded;
|
|
4491
4481
|
}), a = () => {
|
|
@@ -4496,17 +4486,17 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4496
4486
|
n.value.onScroll();
|
|
4497
4487
|
};
|
|
4498
4488
|
B(() => n.value);
|
|
4499
|
-
const f =
|
|
4489
|
+
const f = Z(
|
|
4500
4490
|
() => o.survey,
|
|
4501
4491
|
(g) => {
|
|
4502
|
-
const k = new
|
|
4492
|
+
const k = new De(null, g);
|
|
4503
4493
|
o.isExpanded !== void 0 && (k.isExpanded = o.isExpanded), o.closeOnCompleteTimeout !== void 0 && (k.closeOnCompleteTimeout = o.closeOnCompleteTimeout), k.isShowing = !0, n.value = k;
|
|
4504
4494
|
},
|
|
4505
4495
|
{
|
|
4506
4496
|
immediate: !0
|
|
4507
4497
|
}
|
|
4508
4498
|
);
|
|
4509
|
-
return
|
|
4499
|
+
return V(() => {
|
|
4510
4500
|
f();
|
|
4511
4501
|
}), (g, k) => {
|
|
4512
4502
|
const P = q("survey-string"), L = q("sv-svg-icon");
|
|
@@ -4578,12 +4568,12 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4578
4568
|
css: {}
|
|
4579
4569
|
},
|
|
4580
4570
|
setup(r) {
|
|
4581
|
-
const o = r, n =
|
|
4571
|
+
const o = r, n = S(), s = T(
|
|
4582
4572
|
() => o.question.customWidget.isDefaultRender
|
|
4583
|
-
), e =
|
|
4573
|
+
), e = T(
|
|
4584
4574
|
() => !!o.question.customWidget.htmlTemplate
|
|
4585
|
-
), i =
|
|
4586
|
-
return
|
|
4575
|
+
), i = T(() => o.question.customWidget.htmlTemplate), a = T(() => "survey-" + o.question.getTemplate());
|
|
4576
|
+
return A(() => {
|
|
4587
4577
|
o.question.customWidget.afterRender(o.question, n.value);
|
|
4588
4578
|
}), U(() => {
|
|
4589
4579
|
o.question.customWidget.willUnmount(o.question, n.value);
|
|
@@ -4607,7 +4597,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4607
4597
|
setup(r) {
|
|
4608
4598
|
const o = F();
|
|
4609
4599
|
function n(e, i, a, d, c, v, f = "popup") {
|
|
4610
|
-
const g =
|
|
4600
|
+
const g = Pe(
|
|
4611
4601
|
e,
|
|
4612
4602
|
i,
|
|
4613
4603
|
a,
|
|
@@ -4624,16 +4614,16 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4624
4614
|
e.onHide = () => {
|
|
4625
4615
|
o.value = void 0, a.dispose();
|
|
4626
4616
|
};
|
|
4627
|
-
const a =
|
|
4617
|
+
const a = Me(
|
|
4628
4618
|
e,
|
|
4629
4619
|
i
|
|
4630
4620
|
);
|
|
4631
4621
|
return a.model.isVisible = !0, o.value = a, a;
|
|
4632
4622
|
}
|
|
4633
|
-
return
|
|
4634
|
-
|
|
4635
|
-
})),
|
|
4636
|
-
|
|
4623
|
+
return O.showModal || (O.showModal = n, V(() => {
|
|
4624
|
+
O.showModal = void 0;
|
|
4625
|
+
})), O.showDialog || (O.showDialog = s, V(() => {
|
|
4626
|
+
O.showDialog = void 0;
|
|
4637
4627
|
})), (e, i) => {
|
|
4638
4628
|
const a = q("sv-popup-container");
|
|
4639
4629
|
return o.value ? (t(), y(be, {
|
|
@@ -4663,9 +4653,9 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4663
4653
|
css: {}
|
|
4664
4654
|
},
|
|
4665
4655
|
setup(r) {
|
|
4666
|
-
const o = r, n =
|
|
4656
|
+
const o = r, n = S(null);
|
|
4667
4657
|
M(o, n);
|
|
4668
|
-
const s =
|
|
4658
|
+
const s = T(() => o.question.contentPanel);
|
|
4669
4659
|
return (e, i) => {
|
|
4670
4660
|
const a = q("survey-panel");
|
|
4671
4661
|
return t(), y(a, {
|
|
@@ -4683,9 +4673,9 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4683
4673
|
css: {}
|
|
4684
4674
|
},
|
|
4685
4675
|
setup(r) {
|
|
4686
|
-
const o = r, n =
|
|
4676
|
+
const o = r, n = S(null);
|
|
4687
4677
|
M(o, n);
|
|
4688
|
-
const s =
|
|
4678
|
+
const s = T(() => o.question.contentQuestion), e = (i) => ee(i);
|
|
4689
4679
|
return (i, a) => (t(), y(N(e(s.value)), {
|
|
4690
4680
|
ref: n.value,
|
|
4691
4681
|
question: s.value,
|
|
@@ -4701,7 +4691,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4701
4691
|
css: {}
|
|
4702
4692
|
},
|
|
4703
4693
|
setup(r) {
|
|
4704
|
-
const o = r, n =
|
|
4694
|
+
const o = r, n = T(() => ue * o.model.progress), s = T(() => o.model.text);
|
|
4705
4695
|
return B(() => o.model), (e, i) => e.model.isRunning && e.model.showTimerAsClock ? (t(), u("div", {
|
|
4706
4696
|
key: 0,
|
|
4707
4697
|
class: l(e.model.rootCss)
|
|
@@ -4731,13 +4721,13 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4731
4721
|
}
|
|
4732
4722
|
});
|
|
4733
4723
|
function li(r) {
|
|
4734
|
-
r.component("SurveyComponent", re), r.component("PopupSurveyComponent", ae), r.component("survey", re), r.component("popup-survey", ae), r.component("survey-header",
|
|
4724
|
+
r.component("SurveyComponent", re), r.component("PopupSurveyComponent", ae), r.component("survey", re), r.component("popup-survey", ae), r.component("survey-header", Fe), r.component("survey-page", Ee), r.component("survey-row", We), r.component("survey-element", Ue), r.component("survey-panel", Qe), r.component("survey-element-header", Ze), r.component("survey-string", Ge), r.component("sv-string-viewer", Ye), r.component("sv-string-editor", xe), r.component("sv-skeleton", ss), r.component("survey-text", ts), r.component("survey-text-input", as), r.component("survey-checkbox", ds), r.component("survey-checkbox-item", ys), r.component("survey-radiogroup", hs), r.component("survey-radiogroup-item", ws), r.component("survey-signaturepad", $s), r.component("survey-html", Ls), r.component("survey-image", Ns), r.component("survey-expression", Hs), r.component("survey-file", Us), r.component("survey-imagepicker", js), r.component("survey-imagepicker-item", Js), r.component("survey-comment", xs), r.component("survey-dropdown", en), r.component("sv-dropdown-select", tn), r.component("sv-dropdown-option-item", rn), r.component("sv-dropdown", cn), r.component("survey-tagbox", pn), r.component("sv-tagbox", yn), r.component("sv-tagbox-item", kn), r.component("sv-tagbox-filter", hn), r.component("survey-ranking", fn), r.component("survey-ranking-item", Ln), r.component("survey-rating", Mn), r.component("sv-rating-item", Hn), r.component("sv-rating-item-smiley", En), r.component("sv-rating-item-star", On), r.component("sv-rating-dropdown", Fn), r.component("survey-boolean", zn), r.component("sv-boolean-radio", Un), r.component("sv-boolean-radio-item", Qn), r.component("sv-boolean-checkbox", Yn), r.component("survey-multipletext", _n), r.component("survey-multipletext-item", eo), r.component("survey-matrix", ao), r.component("survey-matrixdropdown", uo), r.component("survey-matrixtable", vo), r.component("survey-matrixheaderrequired", yo), r.component("survey-matrixcell", Co), r.component("survey-matrixdynamic", ho), r.component("sv-matrix-remove-button", ko), r.component("sv-matrix-drag-drop-icon", Io), r.component("sv-matrix-detail-button", So), r.component("survey-paneldynamic", To), r.component("survey-paneldynamicprogress", Ro), r.component("survey-paneldynamicprogress-v2", $o), r.component("sv-paneldynamic-add-btn", Bo), r.component("sv-paneldynamic-next-btn", Do), r.component("sv-paneldynamic-prev-btn", Mo), r.component("sv-paneldynamic-remove-btn", No), r.component("sv-paneldynamic-progress-text", Ho), r.component("sv-components-container", Pt), r.component("sv-progress-buttons", At), r.component("sv-progress-toc", Et), r.component("sv-progress-pages", Q), r.component("sv-progress-questions", Q), r.component("sv-progress-correctquestions", Q), r.component("sv-progress-requiredquestions", Q), r.component("survey-errors", Eo), r.component("survey-question-comment", Fo), r.component("survey-element-title", Wo), r.component("survey-element-title-content", Qo), r.component("sv-title-actions", Xo), r.component("sv-brand-info", nt), r.component("sv-svg-icon", lt), r.component("sv-action-bar", rt), r.component("sv-action", dt), r.component("sv-action-bar-item", ct), r.component("sv-action-bar-item-dropdown", vt), r.component("sv-action-bar-separator", qt), r.component("sv-list", ht), r.component("sv-list-item", kt), r.component("sv-popup", ft), r.component("sv-popup-container", Bt), r.component("popup-pointer", Lt), r.component("sv-notifier", jt), r.component("survey-other-choice", Gt), r.component("sv-nav-btn", Jt), r.component("survey-customwidget", _t), r.component("survey-popup-modal", xt), r.component("sv-character-counter", ei), r.component("survey-composite", si), r.component("survey-custom", ni), r.component("sv-timerpanel", ii), r.directive("key2click", {
|
|
4735
4725
|
mounted: function(o, n) {
|
|
4736
4726
|
const s = { ...n.value };
|
|
4737
4727
|
s.disableTabStop || (o.tabIndex = 0), o.addEventListener("keyup", (e) => (e.preventDefault(), e.stopPropagation(), de(e, s), !1)), o.addEventListener("keydown", (e) => {
|
|
4738
|
-
|
|
4728
|
+
Ne(e, s);
|
|
4739
4729
|
}), o.addEventListener("blur", (e) => {
|
|
4740
|
-
|
|
4730
|
+
He(e);
|
|
4741
4731
|
});
|
|
4742
4732
|
}
|
|
4743
4733
|
});
|