survey-vue3-ui 1.9.134 → 1.9.135
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 +963 -960
- package/survey-vue3-ui.umd.js +1 -1
package/survey-vue3-ui.es.js
CHANGED
|
@@ -2,33 +2,33 @@ import { shallowReactive as be, watch as J, onBeforeUnmount as Q, onMounted as M
|
|
|
2
2
|
import { Base as De, RendererFactory as ee, DropdownListModel as Be, Helpers as Le, DropdownMultiSelectListModel as Ne, doKey2ClickUp as ge, createSvg as Pe, ActionDropdownViewModel as Ae, getActionDropdownButtonTarget as Me, createPopupViewModel as de, SurveyProgressModel as me, ProgressButtonsResponsivityManager as He, PopupSurveyModel as Ee, settings as j, createDialogOptions as We, createPopupModalViewModel as Ve, ButtonGroupItemModel as Fe, SvgRegistry as Oe, SurveyModel as ze, doKey2ClickDown as Ue, doKey2ClickBlur as Ke } from "survey-core";
|
|
3
3
|
De.createPropertiesHash = () => be({});
|
|
4
4
|
function je(l) {
|
|
5
|
-
return !l || l.__vueImplemented ? !1 : (l.createArrayCoreHandler = (s,
|
|
6
|
-
const e = [],
|
|
5
|
+
return !l || l.__vueImplemented ? !1 : (l.createArrayCoreHandler = (s, n) => {
|
|
6
|
+
const e = [], o = z(e);
|
|
7
7
|
return e.onArrayChanged = () => {
|
|
8
|
-
se(
|
|
9
|
-
}, s[
|
|
10
|
-
}, l.iteratePropertiesHash((s,
|
|
11
|
-
if (Array.isArray(s[
|
|
12
|
-
const e = z(s[
|
|
13
|
-
s[
|
|
8
|
+
se(o);
|
|
9
|
+
}, s[n] = o, I(s[n]);
|
|
10
|
+
}, l.iteratePropertiesHash((s, n) => {
|
|
11
|
+
if (Array.isArray(s[n])) {
|
|
12
|
+
const e = z(s[n]);
|
|
13
|
+
s[n].onArrayChanged = () => {
|
|
14
14
|
se(e);
|
|
15
|
-
}, s[
|
|
15
|
+
}, s[n] = e;
|
|
16
16
|
}
|
|
17
|
-
}), l.getPropertyValueCoreHandler = (s,
|
|
18
|
-
fe(s[
|
|
17
|
+
}), l.getPropertyValueCoreHandler = (s, n) => I(s[n]), l.setPropertyValueCoreHandler = (s, n, e) => {
|
|
18
|
+
fe(s[n]) ? s[n].value = e : s[n] = e;
|
|
19
19
|
}, l.__vueImplemented = !0, !0);
|
|
20
20
|
}
|
|
21
21
|
function ce(l, s) {
|
|
22
|
-
!l || !s || (l.iteratePropertiesHash((
|
|
23
|
-
|
|
22
|
+
!l || !s || (l.iteratePropertiesHash((n, e) => {
|
|
23
|
+
n[e] = I(n[e]), Array.isArray(n[e]) && (n[e].onArrayChanged = void 0);
|
|
24
24
|
}), delete l.__vueImplemented, l.createArrayCoreHandler = void 0, l.getPropertyValueCoreHandler = void 0, l.setPropertyValueCoreHandler = void 0);
|
|
25
25
|
}
|
|
26
|
-
function B(l, s,
|
|
26
|
+
function B(l, s, n) {
|
|
27
27
|
let e = !1;
|
|
28
|
-
const
|
|
28
|
+
const o = J(
|
|
29
29
|
l,
|
|
30
30
|
(t, r) => {
|
|
31
|
-
t && s && s(t, r), r && (ce(r, e),
|
|
31
|
+
t && s && s(t, r), r && (ce(r, e), n && n(r)), e = je(t);
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
immediate: !0
|
|
@@ -36,26 +36,26 @@ function B(l, s, o) {
|
|
|
36
36
|
);
|
|
37
37
|
Q(() => {
|
|
38
38
|
const t = l();
|
|
39
|
-
t && (ce(t, e),
|
|
39
|
+
t && (ce(t, e), n && n(t), o());
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
function A(l, s,
|
|
43
|
-
B(() => l.question,
|
|
42
|
+
function A(l, s, n, e) {
|
|
43
|
+
B(() => l.question, n, e), M(() => {
|
|
44
44
|
l.question && l.question.afterRenderQuestionElement(s.value);
|
|
45
45
|
}), Q(() => {
|
|
46
46
|
l.question.beforeDestroyQuestionElement(s.value);
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
function G(l) {
|
|
50
|
-
const s = $(),
|
|
51
|
-
s.value =
|
|
52
|
-
s.value =
|
|
50
|
+
const s = $(), n = (o) => {
|
|
51
|
+
s.value = o.renderedHtml, o.onChanged = () => {
|
|
52
|
+
s.value = o.renderedHtml;
|
|
53
53
|
};
|
|
54
54
|
}, e = J(
|
|
55
55
|
l,
|
|
56
|
-
(
|
|
56
|
+
(o, t) => {
|
|
57
57
|
t && (t.onChanged = () => {
|
|
58
|
-
}), o
|
|
58
|
+
}), n(o);
|
|
59
59
|
},
|
|
60
60
|
{ immediate: !0 }
|
|
61
61
|
);
|
|
@@ -67,11 +67,11 @@ function re(l) {
|
|
|
67
67
|
return l.customWidget ? "survey-customwidget" : l.isDefaultRendering && l.isDefaultRendering() || l.isPanel ? "survey-" + l.getTemplate() : l.getComponentName();
|
|
68
68
|
}
|
|
69
69
|
function le(l) {
|
|
70
|
-
const s = z(),
|
|
70
|
+
const s = z(), n = ke(() => {
|
|
71
71
|
s.value = l(), se(s);
|
|
72
72
|
});
|
|
73
73
|
return Q(() => {
|
|
74
|
-
|
|
74
|
+
n();
|
|
75
75
|
}), s;
|
|
76
76
|
}
|
|
77
77
|
const Qe = /* @__PURE__ */ h({
|
|
@@ -82,8 +82,8 @@ const Qe = /* @__PURE__ */ h({
|
|
|
82
82
|
css: {}
|
|
83
83
|
},
|
|
84
84
|
setup(l) {
|
|
85
|
-
const s = l,
|
|
86
|
-
s.survey &&
|
|
85
|
+
const s = l, n = $(null), e = () => {
|
|
86
|
+
s.survey && n.value && s.survey.afterRenderPage(n.value);
|
|
87
87
|
};
|
|
88
88
|
B(
|
|
89
89
|
() => s.page,
|
|
@@ -91,7 +91,7 @@ const Qe = /* @__PURE__ */ h({
|
|
|
91
91
|
e();
|
|
92
92
|
}
|
|
93
93
|
);
|
|
94
|
-
const
|
|
94
|
+
const o = w(() => s.page._showDescription);
|
|
95
95
|
return M(() => {
|
|
96
96
|
e();
|
|
97
97
|
}), (t, r) => {
|
|
@@ -99,13 +99,13 @@ const Qe = /* @__PURE__ */ h({
|
|
|
99
99
|
return i(), u("div", {
|
|
100
100
|
class: a(t.page.cssRoot),
|
|
101
101
|
ref_key: "root",
|
|
102
|
-
ref:
|
|
102
|
+
ref: n
|
|
103
103
|
}, [
|
|
104
104
|
C(c, {
|
|
105
105
|
element: t.page,
|
|
106
106
|
css: t.css
|
|
107
107
|
}, null, 8, ["element", "css"]),
|
|
108
|
-
|
|
108
|
+
o.value ? (i(), u("div", {
|
|
109
109
|
key: 0,
|
|
110
110
|
class: a(t.page.cssClasses.page.description)
|
|
111
111
|
}, [
|
|
@@ -138,17 +138,17 @@ const Qe = /* @__PURE__ */ h({
|
|
|
138
138
|
survey: {}
|
|
139
139
|
},
|
|
140
140
|
setup(l) {
|
|
141
|
-
const s = l,
|
|
141
|
+
const s = l, n = $();
|
|
142
142
|
return M(() => {
|
|
143
|
-
var e =
|
|
143
|
+
var e = n.value;
|
|
144
144
|
e && s.survey && s.survey.afterRenderHeader(e);
|
|
145
|
-
}), (e,
|
|
145
|
+
}), (e, o) => {
|
|
146
146
|
const t = q("survey-element-title"), r = q("survey-string");
|
|
147
147
|
return e.survey.renderedHasHeader ? (i(), u("div", {
|
|
148
148
|
key: 0,
|
|
149
149
|
class: a(e.survey.css.header),
|
|
150
150
|
ref_key: "root",
|
|
151
|
-
ref:
|
|
151
|
+
ref: n
|
|
152
152
|
}, [
|
|
153
153
|
e.survey.isLogoBefore ? (i(), g(T(e.survey.getElementWrapperComponentName(e.survey, "logo-image")), {
|
|
154
154
|
key: 0,
|
|
@@ -190,34 +190,34 @@ const Qe = /* @__PURE__ */ h({
|
|
|
190
190
|
survey: {}
|
|
191
191
|
},
|
|
192
192
|
setup(l) {
|
|
193
|
-
const s = l,
|
|
193
|
+
const s = l, n = w(
|
|
194
194
|
() => s.row.visibleElements
|
|
195
195
|
), e = $();
|
|
196
196
|
return B(
|
|
197
197
|
() => s.row,
|
|
198
|
-
(
|
|
199
|
-
t && (
|
|
198
|
+
(o, t) => {
|
|
199
|
+
t && (o.isNeedRender = t.isNeedRender);
|
|
200
200
|
},
|
|
201
|
-
(
|
|
202
|
-
|
|
201
|
+
(o) => {
|
|
202
|
+
o.stopLazyRendering(), o.isNeedRender = !o.isLazyRendering();
|
|
203
203
|
}
|
|
204
204
|
), M(() => {
|
|
205
205
|
if (s.row && !s.row.isNeedRender) {
|
|
206
|
-
const
|
|
206
|
+
const o = e.value;
|
|
207
207
|
setTimeout(() => {
|
|
208
|
-
s.row.startLazyRendering(
|
|
208
|
+
s.row.startLazyRendering(o);
|
|
209
209
|
}, 10);
|
|
210
210
|
}
|
|
211
|
-
}), (
|
|
211
|
+
}), (o, t) => {
|
|
212
212
|
const r = q("survey-element");
|
|
213
213
|
return i(), u("div", {
|
|
214
|
-
class: a(
|
|
214
|
+
class: a(o.row.getRowCss()),
|
|
215
215
|
ref_key: "root",
|
|
216
216
|
ref: e
|
|
217
217
|
}, [
|
|
218
|
-
(i(!0), u(_, null, D(
|
|
219
|
-
row:
|
|
220
|
-
css:
|
|
218
|
+
(i(!0), u(_, null, D(n.value, (c) => (i(), g(r, {
|
|
219
|
+
row: o.row,
|
|
220
|
+
css: o.css,
|
|
221
221
|
element: c,
|
|
222
222
|
key: c.id
|
|
223
223
|
}, null, 8, ["row", "css", "element"]))), 128))
|
|
@@ -235,12 +235,12 @@ const Qe = /* @__PURE__ */ h({
|
|
|
235
235
|
css: {}
|
|
236
236
|
},
|
|
237
237
|
setup(l) {
|
|
238
|
-
const s = l,
|
|
238
|
+
const s = l, n = $(null), e = w(() => s.element.showErrorOnTop), o = w(() => s.element.showErrorOnBottom), t = (b) => b.cssContent, r = () => s.element.getRootStyle();
|
|
239
239
|
B(() => s.element);
|
|
240
240
|
const c = () => {
|
|
241
|
-
|
|
241
|
+
n.value && s.element.afterRender(n.value);
|
|
242
242
|
}, m = J(
|
|
243
|
-
() =>
|
|
243
|
+
() => n.value,
|
|
244
244
|
() => {
|
|
245
245
|
c();
|
|
246
246
|
}
|
|
@@ -258,7 +258,7 @@ const Qe = /* @__PURE__ */ h({
|
|
|
258
258
|
class: a(b.element.getRootCss()),
|
|
259
259
|
style: S(r()),
|
|
260
260
|
ref_key: "root",
|
|
261
|
-
ref:
|
|
261
|
+
ref: n,
|
|
262
262
|
onFocusin: N[0] || (N[0] = (K) => b.element.focusIn()),
|
|
263
263
|
id: b.element.id,
|
|
264
264
|
role: b.element.ariaRole,
|
|
@@ -305,7 +305,7 @@ const Qe = /* @__PURE__ */ h({
|
|
|
305
305
|
]),
|
|
306
306
|
C(V, { question: b.element }, null, 8, ["question"])
|
|
307
307
|
], 2)) : d("", !0),
|
|
308
|
-
|
|
308
|
+
o.value ? (i(), g(k, {
|
|
309
309
|
key: 3,
|
|
310
310
|
element: b.element,
|
|
311
311
|
location: "bottom"
|
|
@@ -350,55 +350,55 @@ const Qe = /* @__PURE__ */ h({
|
|
|
350
350
|
css: {}
|
|
351
351
|
},
|
|
352
352
|
setup(l) {
|
|
353
|
-
const s = l,
|
|
353
|
+
const s = l, n = $(null), e = w(() => s.element.survey);
|
|
354
354
|
return B(() => s.element), M(() => {
|
|
355
|
-
s.element.survey && s.element.survey.afterRenderPanel(s.element,
|
|
356
|
-
}), (
|
|
355
|
+
s.element.survey && s.element.survey.afterRenderPanel(s.element, n.value);
|
|
356
|
+
}), (o, t) => {
|
|
357
357
|
const r = q("survey-errors"), c = q("survey-element-header"), m = q("survey-row"), p = q("sv-action-bar");
|
|
358
|
-
return
|
|
358
|
+
return o.element.isVisible ? (i(), u("div", {
|
|
359
359
|
key: 0,
|
|
360
|
-
class: a(
|
|
361
|
-
id:
|
|
362
|
-
onFocusin: t[0] || (t[0] = (y) =>
|
|
360
|
+
class: a(o.element.getContainerCss()),
|
|
361
|
+
id: o.element.id,
|
|
362
|
+
onFocusin: t[0] || (t[0] = (y) => o.element.focusIn()),
|
|
363
363
|
ref_key: "root",
|
|
364
|
-
ref:
|
|
364
|
+
ref: n
|
|
365
365
|
}, [
|
|
366
|
-
|
|
366
|
+
o.element.showErrorsAbovePanel ? (i(), g(r, {
|
|
367
367
|
key: 0,
|
|
368
|
-
element:
|
|
368
|
+
element: o.element
|
|
369
369
|
}, null, 8, ["element"])) : d("", !0),
|
|
370
|
-
|
|
370
|
+
o.element.hasTitle || o.element.hasDescription ? (i(), g(c, {
|
|
371
371
|
key: 1,
|
|
372
|
-
element:
|
|
373
|
-
css:
|
|
372
|
+
element: o.element,
|
|
373
|
+
css: o.css
|
|
374
374
|
}, null, 8, ["element", "css"])) : d("", !0),
|
|
375
|
-
|
|
375
|
+
o.element.showErrorsAbovePanel ? d("", !0) : (i(), g(r, {
|
|
376
376
|
key: 2,
|
|
377
|
-
element:
|
|
377
|
+
element: o.element
|
|
378
378
|
}, null, 8, ["element"])),
|
|
379
|
-
|
|
379
|
+
o.element.isCollapsed ? d("", !0) : (i(), u("div", {
|
|
380
380
|
key: 3,
|
|
381
|
-
id:
|
|
382
|
-
style: S({ paddingLeft:
|
|
383
|
-
class: a(
|
|
381
|
+
id: o.element.contentId,
|
|
382
|
+
style: S({ paddingLeft: o.element.innerPaddingLeft }),
|
|
383
|
+
class: a(o.element.cssClasses.panel.content)
|
|
384
384
|
}, [
|
|
385
|
-
(i(!0), u(_, null, D(
|
|
385
|
+
(i(!0), u(_, null, D(o.element.rows, (y) => (i(), g(T(o.element.getSurvey().getRowWrapperComponentName(y)), O(E({
|
|
386
386
|
key: y.id
|
|
387
387
|
}, {
|
|
388
|
-
componentData:
|
|
388
|
+
componentData: o.element.getSurvey().getRowWrapperComponentData(y)
|
|
389
389
|
})), {
|
|
390
390
|
default: F(() => [
|
|
391
391
|
y.visible ? (i(), g(m, {
|
|
392
392
|
key: 0,
|
|
393
393
|
row: y,
|
|
394
394
|
survey: e.value,
|
|
395
|
-
css:
|
|
395
|
+
css: o.css
|
|
396
396
|
}, null, 8, ["row", "survey", "css"])) : d("", !0)
|
|
397
397
|
]),
|
|
398
398
|
_: 2
|
|
399
399
|
}, 1040))), 128)),
|
|
400
400
|
C(p, {
|
|
401
|
-
model:
|
|
401
|
+
model: o.element.getFooterToolbar()
|
|
402
402
|
}, null, 8, ["model"])
|
|
403
403
|
], 14, ss))
|
|
404
404
|
], 42, es)) : d("", !0);
|
|
@@ -411,14 +411,14 @@ const Qe = /* @__PURE__ */ h({
|
|
|
411
411
|
css: {}
|
|
412
412
|
},
|
|
413
413
|
setup(l) {
|
|
414
|
-
const s = l,
|
|
414
|
+
const s = l, n = (e) => {
|
|
415
415
|
typeof s.element.clickTitleFunction == "function" && s.element.clickTitleFunction(e);
|
|
416
416
|
};
|
|
417
|
-
return (e,
|
|
417
|
+
return (e, o) => {
|
|
418
418
|
const t = q("survey-element-title"), r = q("survey-string"), c = q("sv-action-bar");
|
|
419
419
|
return i(), u("div", {
|
|
420
420
|
class: a(e.element.cssHeader),
|
|
421
|
-
onClick:
|
|
421
|
+
onClick: n
|
|
422
422
|
}, [
|
|
423
423
|
C(t, {
|
|
424
424
|
element: e.element,
|
|
@@ -448,7 +448,7 @@ const Qe = /* @__PURE__ */ h({
|
|
|
448
448
|
locString: {}
|
|
449
449
|
},
|
|
450
450
|
setup(l) {
|
|
451
|
-
return (s,
|
|
451
|
+
return (s, n) => (i(), g(T(s.locString.renderAs), {
|
|
452
452
|
locString: s.locString.renderAsData
|
|
453
453
|
}, null, 8, ["locString"]));
|
|
454
454
|
}
|
|
@@ -458,15 +458,15 @@ const Qe = /* @__PURE__ */ h({
|
|
|
458
458
|
locString: {}
|
|
459
459
|
},
|
|
460
460
|
setup(l) {
|
|
461
|
-
const s = l,
|
|
462
|
-
return (
|
|
461
|
+
const s = l, n = G(() => s.locString), e = s.locString.allowLineBreaks ? "sv-string-viewer sv-string-viewer--multiline" : "sv-string-viewer";
|
|
462
|
+
return (o, t) => o.locString.hasHtml ? (i(), u("span", {
|
|
463
463
|
key: 0,
|
|
464
464
|
class: a(I(e)),
|
|
465
|
-
innerHTML: I(
|
|
465
|
+
innerHTML: I(n)
|
|
466
466
|
}, null, 10, ls)) : (i(), u("span", {
|
|
467
467
|
key: 1,
|
|
468
468
|
class: a(I(e))
|
|
469
|
-
}, R(I(
|
|
469
|
+
}, R(I(n)), 3));
|
|
470
470
|
}
|
|
471
471
|
}), us = ["innerHTML"], ds = /* @__PURE__ */ h({
|
|
472
472
|
__name: "StringEditor",
|
|
@@ -474,26 +474,26 @@ const Qe = /* @__PURE__ */ h({
|
|
|
474
474
|
locString: {}
|
|
475
475
|
},
|
|
476
476
|
setup(l) {
|
|
477
|
-
const s = l,
|
|
477
|
+
const s = l, n = (o) => {
|
|
478
478
|
const t = s.locString;
|
|
479
|
-
t.text =
|
|
480
|
-
}, e = (
|
|
481
|
-
|
|
479
|
+
t.text = o.target.innerText;
|
|
480
|
+
}, e = (o) => {
|
|
481
|
+
o.preventDefault(), o.stopPropagation();
|
|
482
482
|
};
|
|
483
|
-
return (
|
|
483
|
+
return (o, t) => o.locString.hasHtml ? (i(), u("span", {
|
|
484
484
|
key: 0,
|
|
485
485
|
class: "sv-string-editor",
|
|
486
486
|
contenteditable: "true",
|
|
487
|
-
innerHTML:
|
|
488
|
-
onBlur:
|
|
487
|
+
innerHTML: o.locString.renderedHtml,
|
|
488
|
+
onBlur: n,
|
|
489
489
|
onClick: e
|
|
490
490
|
}, null, 40, us)) : (i(), u("span", {
|
|
491
491
|
key: 1,
|
|
492
492
|
class: "sv-string-editor",
|
|
493
493
|
contenteditable: "true",
|
|
494
|
-
onBlur:
|
|
494
|
+
onBlur: n,
|
|
495
495
|
onClick: e
|
|
496
|
-
}, R(
|
|
496
|
+
}, R(o.locString.renderedHtml), 33));
|
|
497
497
|
}
|
|
498
498
|
}), ms = ["id"], cs = /* @__PURE__ */ h({
|
|
499
499
|
__name: "Skeleton",
|
|
@@ -502,9 +502,9 @@ const Qe = /* @__PURE__ */ h({
|
|
|
502
502
|
},
|
|
503
503
|
setup(l) {
|
|
504
504
|
const s = l;
|
|
505
|
-
return B(() => s.element), (
|
|
505
|
+
return B(() => s.element), (n, e) => (i(), u("div", {
|
|
506
506
|
class: "sv-skeleton-element",
|
|
507
|
-
id:
|
|
507
|
+
id: n.element.id
|
|
508
508
|
}, null, 8, ms));
|
|
509
509
|
}
|
|
510
510
|
}), ps = ["id"], vs = ["value"], ys = /* @__PURE__ */ h({
|
|
@@ -514,17 +514,17 @@ const Qe = /* @__PURE__ */ h({
|
|
|
514
514
|
question: {}
|
|
515
515
|
},
|
|
516
516
|
setup(l) {
|
|
517
|
-
const s = l,
|
|
518
|
-
return A(s,
|
|
517
|
+
const s = l, n = $(null);
|
|
518
|
+
return A(s, n), (e, o) => {
|
|
519
519
|
const t = q("survey-text-input");
|
|
520
520
|
return e.question.isReadOnlyRenderDiv() ? (i(), u("div", {
|
|
521
521
|
key: 0,
|
|
522
522
|
ref_key: "root",
|
|
523
|
-
ref:
|
|
523
|
+
ref: n
|
|
524
524
|
}, R(e.question.value), 513)) : e.question.dataListId ? (i(), u("div", {
|
|
525
525
|
key: 1,
|
|
526
526
|
ref_key: "root",
|
|
527
|
-
ref:
|
|
527
|
+
ref: n
|
|
528
528
|
}, [
|
|
529
529
|
C(t, { question: e.question }, null, 8, ["question"]),
|
|
530
530
|
v("datalist", {
|
|
@@ -536,7 +536,7 @@ const Qe = /* @__PURE__ */ h({
|
|
|
536
536
|
key: 2,
|
|
537
537
|
question: e.question,
|
|
538
538
|
"get-ref": (r) => {
|
|
539
|
-
|
|
539
|
+
n.value = r;
|
|
540
540
|
}
|
|
541
541
|
}, null, 8, ["question", "get-ref"]));
|
|
542
542
|
};
|
|
@@ -548,11 +548,11 @@ const Qe = /* @__PURE__ */ h({
|
|
|
548
548
|
getRef: { type: Function }
|
|
549
549
|
},
|
|
550
550
|
setup(l, { expose: s }) {
|
|
551
|
-
const
|
|
552
|
-
|
|
553
|
-
},
|
|
554
|
-
s({ root:
|
|
555
|
-
const t = w(() =>
|
|
551
|
+
const n = l, e = function(r) {
|
|
552
|
+
n.getRef && n.getRef(r);
|
|
553
|
+
}, o = $(null);
|
|
554
|
+
s({ root: o }), B(() => n.question);
|
|
555
|
+
const t = w(() => n.question.inputStyle);
|
|
556
556
|
return (r, c) => {
|
|
557
557
|
const m = q("sv-character-counter");
|
|
558
558
|
return r.question.getMaxLength() ? (i(), u("div", {
|
|
@@ -634,9 +634,9 @@ const Qe = /* @__PURE__ */ h({
|
|
|
634
634
|
showLegend: { type: Boolean }
|
|
635
635
|
},
|
|
636
636
|
setup(l) {
|
|
637
|
-
const s = l,
|
|
638
|
-
A(s,
|
|
639
|
-
const e = (t) => s.question.getItemValueWrapperComponentName(t) || s.question.itemComponent,
|
|
637
|
+
const s = l, n = $(null);
|
|
638
|
+
A(s, n);
|
|
639
|
+
const e = (t) => s.question.getItemValueWrapperComponentName(t) || s.question.itemComponent, o = (t) => ({
|
|
640
640
|
componentName: s.question.itemComponent,
|
|
641
641
|
componentData: {
|
|
642
642
|
question: s.question,
|
|
@@ -649,7 +649,7 @@ const Qe = /* @__PURE__ */ h({
|
|
|
649
649
|
return i(), u("fieldset", {
|
|
650
650
|
class: a(t.question.getSelectBaseRootCss()),
|
|
651
651
|
ref_key: "root",
|
|
652
|
-
ref:
|
|
652
|
+
ref: n,
|
|
653
653
|
role: t.question.a11y_input_ariaRole,
|
|
654
654
|
"aria-required": t.question.a11y_input_ariaRequired,
|
|
655
655
|
"aria-label": t.question.a11y_input_ariaLabel,
|
|
@@ -661,17 +661,17 @@ const Qe = /* @__PURE__ */ h({
|
|
|
661
661
|
t.showLegend ? (i(), u("legend", bs, R(t.question.locTitle.renderedHtml), 1)) : d("", !0),
|
|
662
662
|
t.question.hasHeadItems ? (i(!0), u(_, { key: 1 }, D(t.question.headItems, (m) => (i(), g(T(e(m)), E({
|
|
663
663
|
key: m.value
|
|
664
|
-
},
|
|
664
|
+
}, o(m)), null, 16))), 128)) : d("", !0),
|
|
665
665
|
!t.question.hasColumns && !t.question.blockedRow ? (i(!0), u(_, { key: 2 }, D(t.question.bodyItems, (m) => (i(), g(T(e(m)), E({
|
|
666
666
|
key: m.value
|
|
667
|
-
},
|
|
667
|
+
}, o(m)), null, 16))), 128)) : d("", !0),
|
|
668
668
|
t.question.blockedRow ? (i(), u("div", {
|
|
669
669
|
key: 3,
|
|
670
670
|
class: a(t.question.cssClasses.rootRow)
|
|
671
671
|
}, [
|
|
672
672
|
!t.question.hasColumns && t.question.blockedRow ? (i(!0), u(_, { key: 0 }, D(t.question.dataChoices, (m) => (i(), g(T(e(m)), E({
|
|
673
673
|
key: m.value
|
|
674
|
-
},
|
|
674
|
+
}, o(m)), null, 16))), 128)) : d("", !0)
|
|
675
675
|
], 2)) : d("", !0),
|
|
676
676
|
t.question.hasColumns ? (i(), u("div", {
|
|
677
677
|
key: 4,
|
|
@@ -684,12 +684,12 @@ const Qe = /* @__PURE__ */ h({
|
|
|
684
684
|
}, [
|
|
685
685
|
(i(!0), u(_, null, D(m, (y) => (i(), g(T(e(y)), E({
|
|
686
686
|
key: y.value
|
|
687
|
-
},
|
|
687
|
+
}, o(y)), null, 16))), 128))
|
|
688
688
|
], 2))), 128)) : d("", !0)
|
|
689
689
|
], 2)) : d("", !0),
|
|
690
690
|
t.question.hasFootItems ? (i(!0), u(_, { key: 5 }, D(t.question.footItems, (m) => (i(), g(T(e(m)), E({
|
|
691
691
|
key: m.value
|
|
692
|
-
},
|
|
692
|
+
}, o(m)), null, 16))), 128)) : d("", !0),
|
|
693
693
|
t.question.renderedValue && t.question.isOtherSelected ? (i(), g(c, {
|
|
694
694
|
key: 6,
|
|
695
695
|
question: t.question
|
|
@@ -714,7 +714,7 @@ const Qe = /* @__PURE__ */ h({
|
|
|
714
714
|
question: {}
|
|
715
715
|
},
|
|
716
716
|
setup(l) {
|
|
717
|
-
return (s,
|
|
717
|
+
return (s, n) => (i(), g(he, {
|
|
718
718
|
question: s.question,
|
|
719
719
|
"show-legend": !0
|
|
720
720
|
}, null, 8, ["question"]));
|
|
@@ -730,10 +730,10 @@ const Qe = /* @__PURE__ */ h({
|
|
|
730
730
|
setup(l) {
|
|
731
731
|
const s = l;
|
|
732
732
|
B(() => s.item);
|
|
733
|
-
const
|
|
733
|
+
const n = (e) => {
|
|
734
734
|
s.question.clickItemHandler(s.item, e.target.checked);
|
|
735
735
|
};
|
|
736
|
-
return (e,
|
|
736
|
+
return (e, o) => {
|
|
737
737
|
const t = q("survey-string");
|
|
738
738
|
return i(), u("div", {
|
|
739
739
|
role: "presentation",
|
|
@@ -747,8 +747,8 @@ const Qe = /* @__PURE__ */ h({
|
|
|
747
747
|
role: "option",
|
|
748
748
|
name: e.question.name + e.item.id,
|
|
749
749
|
checked: e.question.isItemSelected(e.item),
|
|
750
|
-
onInput:
|
|
751
|
-
|
|
750
|
+
onInput: o[0] || (o[0] = (r) => {
|
|
751
|
+
n(r);
|
|
752
752
|
}),
|
|
753
753
|
value: e.item.value,
|
|
754
754
|
id: e.question.getItemId(e.item),
|
|
@@ -787,7 +787,7 @@ const Qe = /* @__PURE__ */ h({
|
|
|
787
787
|
question: {}
|
|
788
788
|
},
|
|
789
789
|
setup(l) {
|
|
790
|
-
return (s,
|
|
790
|
+
return (s, n) => (i(), g(he, { question: s.question }, null, 8, ["question"]));
|
|
791
791
|
}
|
|
792
792
|
}), $s = ["name", "value", "id", "aria-errormessage", "disabled"], _s = ["xlink:href"], Ds = /* @__PURE__ */ h({
|
|
793
793
|
inheritAttrs: !1,
|
|
@@ -798,7 +798,7 @@ const Qe = /* @__PURE__ */ h({
|
|
|
798
798
|
hideLabel: { type: Boolean }
|
|
799
799
|
},
|
|
800
800
|
setup(l) {
|
|
801
|
-
const s = l,
|
|
801
|
+
const s = l, n = (t) => s.question.getLabelClass(t), e = (t) => s.question.getControlLabelClass(t), o = w({
|
|
802
802
|
get: () => s.question.renderedValue,
|
|
803
803
|
set: (t) => {
|
|
804
804
|
const r = s.question;
|
|
@@ -813,7 +813,7 @@ const Qe = /* @__PURE__ */ h({
|
|
|
813
813
|
}, [
|
|
814
814
|
v("label", {
|
|
815
815
|
onMousedown: r[1] || (r[1] = (m) => t.question.onMouseDown()),
|
|
816
|
-
class: a(
|
|
816
|
+
class: a(n(t.item))
|
|
817
817
|
}, [
|
|
818
818
|
P(v("input", {
|
|
819
819
|
type: "radio",
|
|
@@ -821,11 +821,11 @@ const Qe = /* @__PURE__ */ h({
|
|
|
821
821
|
value: t.item.value,
|
|
822
822
|
id: t.question.getItemId(t.item),
|
|
823
823
|
"aria-errormessage": t.question.ariaErrormessage,
|
|
824
|
-
"onUpdate:modelValue": r[0] || (r[0] = (m) =>
|
|
824
|
+
"onUpdate:modelValue": r[0] || (r[0] = (m) => o.value = m),
|
|
825
825
|
disabled: !t.question.getItemEnabled(t.item),
|
|
826
826
|
class: a(t.question.cssClasses.itemControl)
|
|
827
827
|
}, null, 10, $s), [
|
|
828
|
-
[x,
|
|
828
|
+
[x, o.value]
|
|
829
829
|
]),
|
|
830
830
|
t.question.cssClasses.materialDecorator ? (i(), u("span", {
|
|
831
831
|
key: 0,
|
|
@@ -859,13 +859,13 @@ const Qe = /* @__PURE__ */ h({
|
|
|
859
859
|
question: {}
|
|
860
860
|
},
|
|
861
861
|
setup(l) {
|
|
862
|
-
const s = l,
|
|
863
|
-
return A(s,
|
|
862
|
+
const s = l, n = $(null);
|
|
863
|
+
return A(s, n), (e, o) => {
|
|
864
864
|
const t = q("survey-string"), r = q("sv-svg-icon"), c = q("sv-loading-indicator");
|
|
865
865
|
return i(), u("div", {
|
|
866
866
|
class: a(e.question.cssClasses.root),
|
|
867
867
|
ref_key: "root",
|
|
868
|
-
ref:
|
|
868
|
+
ref: n,
|
|
869
869
|
style: S({
|
|
870
870
|
width: e.question.renderedCanvasWidth
|
|
871
871
|
})
|
|
@@ -891,7 +891,7 @@ const Qe = /* @__PURE__ */ h({
|
|
|
891
891
|
v("canvas", {
|
|
892
892
|
tabindex: "-1",
|
|
893
893
|
class: a(e.question.cssClasses.canvas),
|
|
894
|
-
onBlur:
|
|
894
|
+
onBlur: o[0] || (o[0] = (...m) => e.question.onBlur && e.question.onBlur(...m))
|
|
895
895
|
}, null, 34)
|
|
896
896
|
]),
|
|
897
897
|
e.question.canShowClearButton ? (i(), u("div", {
|
|
@@ -902,7 +902,7 @@ const Qe = /* @__PURE__ */ h({
|
|
|
902
902
|
type: "button",
|
|
903
903
|
class: a(e.question.cssClasses.clearButton),
|
|
904
904
|
title: e.question.clearButtonCaption,
|
|
905
|
-
onClick:
|
|
905
|
+
onClick: o[1] || (o[1] = () => {
|
|
906
906
|
e.question.clearValue();
|
|
907
907
|
})
|
|
908
908
|
}, [
|
|
@@ -930,13 +930,13 @@ const Qe = /* @__PURE__ */ h({
|
|
|
930
930
|
question: {}
|
|
931
931
|
},
|
|
932
932
|
setup(l) {
|
|
933
|
-
const s = l,
|
|
934
|
-
A(s,
|
|
933
|
+
const s = l, n = $(null);
|
|
934
|
+
A(s, n);
|
|
935
935
|
const e = G(() => s.question.locHtml);
|
|
936
|
-
return (
|
|
936
|
+
return (o, t) => (i(), u("div", {
|
|
937
937
|
ref_key: "root",
|
|
938
|
-
ref:
|
|
939
|
-
class: a(
|
|
938
|
+
ref: n,
|
|
939
|
+
class: a(o.question.renderCssRoot),
|
|
940
940
|
innerHTML: I(e)
|
|
941
941
|
}, null, 10, As));
|
|
942
942
|
}
|
|
@@ -947,76 +947,76 @@ const Qe = /* @__PURE__ */ h({
|
|
|
947
947
|
question: {}
|
|
948
948
|
},
|
|
949
949
|
setup(l) {
|
|
950
|
-
const s = l,
|
|
951
|
-
A(s,
|
|
950
|
+
const s = l, n = $(null);
|
|
951
|
+
A(s, n);
|
|
952
952
|
const e = G(() => s.question.locImageLink);
|
|
953
|
-
return (
|
|
953
|
+
return (o, t) => {
|
|
954
954
|
const r = q("sv-svg-icon");
|
|
955
955
|
return i(), u("div", {
|
|
956
|
-
class: a(
|
|
956
|
+
class: a(o.question.cssClasses.root),
|
|
957
957
|
ref_key: "root",
|
|
958
|
-
ref:
|
|
958
|
+
ref: n
|
|
959
959
|
}, [
|
|
960
|
-
|
|
960
|
+
o.question.renderedMode === "image" ? P((i(), u("img", {
|
|
961
961
|
key: 0,
|
|
962
|
-
class: a(
|
|
962
|
+
class: a(o.question.getImageCss()),
|
|
963
963
|
src: I(e),
|
|
964
|
-
alt:
|
|
965
|
-
width:
|
|
966
|
-
height:
|
|
964
|
+
alt: o.question.altText || o.question.title,
|
|
965
|
+
width: o.question.renderedWidth,
|
|
966
|
+
height: o.question.renderedHeight,
|
|
967
967
|
style: S({
|
|
968
|
-
objectFit:
|
|
969
|
-
width:
|
|
970
|
-
height:
|
|
968
|
+
objectFit: o.question.imageFit,
|
|
969
|
+
width: o.question.renderedStyleWidth,
|
|
970
|
+
height: o.question.renderedStyleHeight
|
|
971
971
|
}),
|
|
972
972
|
onLoad: t[0] || (t[0] = (c) => {
|
|
973
|
-
|
|
973
|
+
o.question.onLoadHandler();
|
|
974
974
|
}),
|
|
975
975
|
onError: t[1] || (t[1] = (c) => {
|
|
976
|
-
|
|
976
|
+
o.question.onErrorHandler();
|
|
977
977
|
})
|
|
978
978
|
}, null, 46, Hs)), [
|
|
979
|
-
[H, I(e) && !
|
|
979
|
+
[H, I(e) && !o.question.contentNotLoaded]
|
|
980
980
|
]) : d("", !0),
|
|
981
|
-
|
|
981
|
+
o.question.renderedMode === "video" ? P((i(), u("video", {
|
|
982
982
|
key: 1,
|
|
983
983
|
controls: "",
|
|
984
|
-
class: a(
|
|
984
|
+
class: a(o.question.getImageCss()),
|
|
985
985
|
src: I(e),
|
|
986
|
-
width:
|
|
987
|
-
height:
|
|
986
|
+
width: o.question.renderedWidth,
|
|
987
|
+
height: o.question.renderedHeight,
|
|
988
988
|
style: S({
|
|
989
|
-
objectFit:
|
|
990
|
-
width:
|
|
991
|
-
height:
|
|
989
|
+
objectFit: o.question.imageFit,
|
|
990
|
+
width: o.question.renderedStyleWidth,
|
|
991
|
+
height: o.question.renderedStyleHeight
|
|
992
992
|
}),
|
|
993
993
|
onLoadedmetadata: t[2] || (t[2] = (c) => {
|
|
994
|
-
|
|
994
|
+
o.question.onLoadHandler();
|
|
995
995
|
}),
|
|
996
996
|
onError: t[3] || (t[3] = (c) => {
|
|
997
|
-
|
|
997
|
+
o.question.onErrorHandler();
|
|
998
998
|
})
|
|
999
999
|
}, null, 46, Es)), [
|
|
1000
|
-
[H, I(e) && !
|
|
1000
|
+
[H, I(e) && !o.question.contentNotLoaded]
|
|
1001
1001
|
]) : d("", !0),
|
|
1002
|
-
|
|
1002
|
+
o.question.renderedMode === "youtube" ? (i(), u("iframe", {
|
|
1003
1003
|
key: 2,
|
|
1004
|
-
class: a(
|
|
1004
|
+
class: a(o.question.getImageCss()),
|
|
1005
1005
|
src: I(e),
|
|
1006
|
-
width:
|
|
1007
|
-
height:
|
|
1006
|
+
width: o.question.renderedWidth,
|
|
1007
|
+
height: o.question.renderedHeight,
|
|
1008
1008
|
style: S({
|
|
1009
|
-
objectFit:
|
|
1010
|
-
width:
|
|
1011
|
-
height:
|
|
1009
|
+
objectFit: o.question.imageFit,
|
|
1010
|
+
width: o.question.renderedStyleWidth,
|
|
1011
|
+
height: o.question.renderedStyleHeight
|
|
1012
1012
|
})
|
|
1013
1013
|
}, null, 14, Ws)) : d("", !0),
|
|
1014
|
-
!I(e) ||
|
|
1014
|
+
!I(e) || o.question.contentNotLoaded ? (i(), u("div", {
|
|
1015
1015
|
key: 3,
|
|
1016
|
-
class: a(
|
|
1016
|
+
class: a(o.question.cssClasses.noImage)
|
|
1017
1017
|
}, [
|
|
1018
1018
|
C(r, {
|
|
1019
|
-
iconName:
|
|
1019
|
+
iconName: o.question.cssClasses.noImageSvgIconId,
|
|
1020
1020
|
size: 48
|
|
1021
1021
|
}, null, 8, ["iconName"])
|
|
1022
1022
|
], 2)) : d("", !0)
|
|
@@ -1030,11 +1030,11 @@ const Qe = /* @__PURE__ */ h({
|
|
|
1030
1030
|
question: {}
|
|
1031
1031
|
},
|
|
1032
1032
|
setup(l) {
|
|
1033
|
-
const s = l,
|
|
1034
|
-
return A(s,
|
|
1033
|
+
const s = l, n = $(null);
|
|
1034
|
+
return A(s, n), (e, o) => (i(), u("div", {
|
|
1035
1035
|
class: a(e.question.cssClasses.root),
|
|
1036
1036
|
ref_key: "root",
|
|
1037
|
-
ref:
|
|
1037
|
+
ref: n
|
|
1038
1038
|
}, R(e.question.formatedValue), 3));
|
|
1039
1039
|
}
|
|
1040
1040
|
}), Os = ["id", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "multiple", "title", "accept", "capture"], zs = ["id", "multiple", "placeholder"], Us = /* @__PURE__ */ h({
|
|
@@ -1044,13 +1044,13 @@ const Qe = /* @__PURE__ */ h({
|
|
|
1044
1044
|
question: {}
|
|
1045
1045
|
},
|
|
1046
1046
|
setup(l) {
|
|
1047
|
-
const s = l,
|
|
1048
|
-
return A(s,
|
|
1047
|
+
const s = l, n = $(null);
|
|
1048
|
+
return A(s, n), (e, o) => {
|
|
1049
1049
|
const t = q("survey-string"), r = q("sv-file-choose-btn"), c = q("sv-action-bar"), m = q("sv-file-clean-btn"), p = q("sv-loading-indicator"), y = q("sv-file-video"), f = q("sv-file-preview");
|
|
1050
1050
|
return i(), u("div", {
|
|
1051
1051
|
class: a(e.question.fileRootCss),
|
|
1052
1052
|
ref_key: "root",
|
|
1053
|
-
ref:
|
|
1053
|
+
ref: n
|
|
1054
1054
|
}, [
|
|
1055
1055
|
!e.question.isReadOnly && e.question.hasFileUI ? (i(), u("input", {
|
|
1056
1056
|
key: 0,
|
|
@@ -1079,10 +1079,10 @@ const Qe = /* @__PURE__ */ h({
|
|
|
1079
1079
|
}, null, 10, zs)) : d("", !0),
|
|
1080
1080
|
v("div", {
|
|
1081
1081
|
class: a(e.question.cssClasses.dragArea),
|
|
1082
|
-
onDrop:
|
|
1083
|
-
onDragover:
|
|
1084
|
-
onDragleave:
|
|
1085
|
-
onDragenter:
|
|
1082
|
+
onDrop: o[0] || (o[0] = (...b) => e.question.onDrop && e.question.onDrop(...b)),
|
|
1083
|
+
onDragover: o[1] || (o[1] = (...b) => e.question.onDragOver && e.question.onDragOver(...b)),
|
|
1084
|
+
onDragleave: o[2] || (o[2] = (...b) => e.question.onDragLeave && e.question.onDragLeave(...b)),
|
|
1085
|
+
onDragenter: o[3] || (o[3] = (...b) => e.question.onDragEnter && e.question.onDragEnter(...b))
|
|
1086
1086
|
}, [
|
|
1087
1087
|
e.question.showFileDecorator ? (i(), u("div", {
|
|
1088
1088
|
key: 0,
|
|
@@ -1151,9 +1151,9 @@ const Qe = /* @__PURE__ */ h({
|
|
|
1151
1151
|
question: {}
|
|
1152
1152
|
},
|
|
1153
1153
|
setup(l) {
|
|
1154
|
-
const s = l,
|
|
1155
|
-
A(s,
|
|
1156
|
-
const e = (t) => s.question.getItemValueWrapperComponentName(t) || pe,
|
|
1154
|
+
const s = l, n = $(null);
|
|
1155
|
+
A(s, n);
|
|
1156
|
+
const e = (t) => s.question.getItemValueWrapperComponentName(t) || pe, o = (t) => ({
|
|
1157
1157
|
componentName: pe,
|
|
1158
1158
|
componentData: {
|
|
1159
1159
|
question: s.question,
|
|
@@ -1164,12 +1164,12 @@ const Qe = /* @__PURE__ */ h({
|
|
|
1164
1164
|
return (t, r) => (i(), u("fieldset", {
|
|
1165
1165
|
class: a(t.question.getSelectBaseRootCss()),
|
|
1166
1166
|
ref_key: "root",
|
|
1167
|
-
ref:
|
|
1167
|
+
ref: n
|
|
1168
1168
|
}, [
|
|
1169
1169
|
v("legend", Ks, R(t.question.locTitle.renderedHtml), 1),
|
|
1170
1170
|
t.question.hasColumns ? d("", !0) : (i(!0), u(_, { key: 0 }, D(t.question.visibleChoices, (c) => (i(), g(T(e(c)), E({
|
|
1171
1171
|
key: c.value
|
|
1172
|
-
},
|
|
1172
|
+
}, o(c)), null, 16))), 128)),
|
|
1173
1173
|
t.question.hasColumns ? (i(!0), u(_, { key: 1 }, D(t.question.columns, (c, m) => (i(), u("div", {
|
|
1174
1174
|
class: a(t.question.getColumnClass()),
|
|
1175
1175
|
key: m,
|
|
@@ -1177,7 +1177,7 @@ const Qe = /* @__PURE__ */ h({
|
|
|
1177
1177
|
}, [
|
|
1178
1178
|
(i(!0), u(_, null, D(c, (p) => (i(), g(T(e(p)), E({
|
|
1179
1179
|
key: p.value
|
|
1180
|
-
},
|
|
1180
|
+
}, o(p)), null, 16))), 128))
|
|
1181
1181
|
], 2))), 128)) : d("", !0)
|
|
1182
1182
|
], 2));
|
|
1183
1183
|
}
|
|
@@ -1189,117 +1189,117 @@ const Qe = /* @__PURE__ */ h({
|
|
|
1189
1189
|
item: {}
|
|
1190
1190
|
},
|
|
1191
1191
|
setup(l) {
|
|
1192
|
-
const s = l,
|
|
1192
|
+
const s = l, n = (o) => s.question.getItemClass(o);
|
|
1193
1193
|
B(() => s.item);
|
|
1194
1194
|
const e = G(() => s.item.locImageLink);
|
|
1195
|
-
return (
|
|
1195
|
+
return (o, t) => {
|
|
1196
1196
|
const r = q("sv-svg-icon"), c = q("survey-string");
|
|
1197
1197
|
return i(), u("div", {
|
|
1198
|
-
class: a(o
|
|
1198
|
+
class: a(n(o.item))
|
|
1199
1199
|
}, [
|
|
1200
1200
|
v("label", {
|
|
1201
|
-
class: a(
|
|
1201
|
+
class: a(o.question.cssClasses.label)
|
|
1202
1202
|
}, [
|
|
1203
|
-
|
|
1203
|
+
o.question.multiSelect ? P((i(), u("input", {
|
|
1204
1204
|
key: 0,
|
|
1205
1205
|
type: "checkbox",
|
|
1206
|
-
name:
|
|
1207
|
-
value:
|
|
1208
|
-
id:
|
|
1209
|
-
"onUpdate:modelValue": t[0] || (t[0] = (m) =>
|
|
1210
|
-
disabled: !
|
|
1211
|
-
"aria-required":
|
|
1212
|
-
"aria-label":
|
|
1213
|
-
"aria-invalid":
|
|
1214
|
-
"aria-errormessage":
|
|
1215
|
-
class: a(
|
|
1206
|
+
name: o.question.questionName,
|
|
1207
|
+
value: o.item.value,
|
|
1208
|
+
id: o.question.getItemId(o.item),
|
|
1209
|
+
"onUpdate:modelValue": t[0] || (t[0] = (m) => o.question.value = m),
|
|
1210
|
+
disabled: !o.question.getItemEnabled(o.item),
|
|
1211
|
+
"aria-required": o.question.ariaRequired,
|
|
1212
|
+
"aria-label": o.question.ariaLabel,
|
|
1213
|
+
"aria-invalid": o.question.ariaInvalid,
|
|
1214
|
+
"aria-errormessage": o.question.ariaErrormessage,
|
|
1215
|
+
class: a(o.question.cssClasses.itemControl)
|
|
1216
1216
|
}, null, 10, Qs)), [
|
|
1217
|
-
[oe,
|
|
1217
|
+
[oe, o.question.value]
|
|
1218
1218
|
]) : P((i(), u("input", {
|
|
1219
1219
|
key: 1,
|
|
1220
1220
|
type: "radio",
|
|
1221
|
-
name:
|
|
1222
|
-
value:
|
|
1223
|
-
id:
|
|
1224
|
-
"onUpdate:modelValue": t[1] || (t[1] = (m) =>
|
|
1225
|
-
disabled: !
|
|
1226
|
-
"aria-required":
|
|
1227
|
-
"aria-label":
|
|
1228
|
-
"aria-invalid":
|
|
1229
|
-
"aria-errormessage":
|
|
1230
|
-
class: a(
|
|
1221
|
+
name: o.question.questionName,
|
|
1222
|
+
value: o.item.value,
|
|
1223
|
+
id: o.question.getItemId(o.item),
|
|
1224
|
+
"onUpdate:modelValue": t[1] || (t[1] = (m) => o.question.value = m),
|
|
1225
|
+
disabled: !o.question.getItemEnabled(o.item),
|
|
1226
|
+
"aria-required": o.question.ariaRequired,
|
|
1227
|
+
"aria-label": o.question.ariaLabel,
|
|
1228
|
+
"aria-invalid": o.question.ariaInvalid,
|
|
1229
|
+
"aria-errormessage": o.question.ariaErrormessage,
|
|
1230
|
+
class: a(o.question.cssClasses.itemControl)
|
|
1231
1231
|
}, null, 10, Gs)), [
|
|
1232
|
-
[x,
|
|
1232
|
+
[x, o.question.value]
|
|
1233
1233
|
]),
|
|
1234
1234
|
v("div", {
|
|
1235
|
-
class: a(
|
|
1235
|
+
class: a(o.question.cssClasses.itemDecorator)
|
|
1236
1236
|
}, [
|
|
1237
1237
|
v("div", {
|
|
1238
|
-
class: a(
|
|
1238
|
+
class: a(o.question.cssClasses.imageContainer)
|
|
1239
1239
|
}, [
|
|
1240
|
-
|
|
1240
|
+
o.question.cssClasses.checkedItemDecorator ? (i(), u("span", {
|
|
1241
1241
|
key: 0,
|
|
1242
|
-
class: a(
|
|
1242
|
+
class: a(o.question.cssClasses.checkedItemDecorator)
|
|
1243
1243
|
}, [
|
|
1244
|
-
|
|
1244
|
+
o.question.cssClasses.checkedItemSvgIconId ? (i(), g(r, {
|
|
1245
1245
|
key: 0,
|
|
1246
|
-
class: a(
|
|
1246
|
+
class: a(o.question.cssClasses.checkedItemSvgIcon),
|
|
1247
1247
|
size: "auto",
|
|
1248
|
-
iconName:
|
|
1248
|
+
iconName: o.question.cssClasses.checkedItemSvgIconId
|
|
1249
1249
|
}, null, 8, ["class", "iconName"])) : d("", !0)
|
|
1250
1250
|
], 2)) : d("", !0),
|
|
1251
|
-
I(e) && !
|
|
1251
|
+
I(e) && !o.item.contentNotLoaded && o.question.contentMode === "image" ? (i(), u("img", {
|
|
1252
1252
|
key: 1,
|
|
1253
|
-
class: a(
|
|
1253
|
+
class: a(o.question.cssClasses.image),
|
|
1254
1254
|
src: I(e),
|
|
1255
|
-
width:
|
|
1256
|
-
height:
|
|
1257
|
-
style: S({ objectFit:
|
|
1258
|
-
alt:
|
|
1255
|
+
width: o.question.renderedImageWidth,
|
|
1256
|
+
height: o.question.renderedImageHeight,
|
|
1257
|
+
style: S({ objectFit: o.question.imageFit }),
|
|
1258
|
+
alt: o.item.locText.renderedHtml,
|
|
1259
1259
|
onLoad: t[2] || (t[2] = (m) => {
|
|
1260
|
-
|
|
1260
|
+
o.question.onContentLoaded(o.item, m);
|
|
1261
1261
|
}),
|
|
1262
1262
|
onError: t[3] || (t[3] = (m) => {
|
|
1263
|
-
|
|
1263
|
+
o.item.onErrorHandler();
|
|
1264
1264
|
})
|
|
1265
1265
|
}, null, 46, Js)) : d("", !0),
|
|
1266
|
-
I(e) && !
|
|
1266
|
+
I(e) && !o.item.contentNotLoaded && o.question.contentMode === "video" ? (i(), u("video", {
|
|
1267
1267
|
key: 2,
|
|
1268
1268
|
controls: "",
|
|
1269
|
-
class: a(
|
|
1269
|
+
class: a(o.question.cssClasses.image),
|
|
1270
1270
|
src: I(e),
|
|
1271
|
-
width:
|
|
1272
|
-
height:
|
|
1273
|
-
style: S({ objectFit:
|
|
1271
|
+
width: o.question.renderedImageWidth,
|
|
1272
|
+
height: o.question.renderedImageHeight,
|
|
1273
|
+
style: S({ objectFit: o.question.imageFit }),
|
|
1274
1274
|
onLoadedmetadata: t[4] || (t[4] = (m) => {
|
|
1275
|
-
|
|
1275
|
+
o.question.onContentLoaded(o.item, m);
|
|
1276
1276
|
}),
|
|
1277
1277
|
onError: t[5] || (t[5] = (m) => {
|
|
1278
|
-
|
|
1278
|
+
o.item.onErrorHandler();
|
|
1279
1279
|
})
|
|
1280
1280
|
}, null, 46, Xs)) : d("", !0),
|
|
1281
|
-
!I(e) ||
|
|
1281
|
+
!I(e) || o.item.contentNotLoaded ? (i(), u("div", {
|
|
1282
1282
|
key: 3,
|
|
1283
|
-
class: a(
|
|
1283
|
+
class: a(o.question.cssClasses.itemNoImage),
|
|
1284
1284
|
style: S({
|
|
1285
|
-
width:
|
|
1286
|
-
height:
|
|
1287
|
-
objectFit:
|
|
1285
|
+
width: o.question.renderedImageWidth + "px",
|
|
1286
|
+
height: o.question.renderedImageHeight + "px",
|
|
1287
|
+
objectFit: o.question.imageFit
|
|
1288
1288
|
})
|
|
1289
1289
|
}, [
|
|
1290
1290
|
C(r, {
|
|
1291
|
-
class: a(
|
|
1292
|
-
iconName:
|
|
1291
|
+
class: a(o.question.cssClasses.itemNoImageSvgIcon),
|
|
1292
|
+
iconName: o.question.cssClasses.itemNoImageSvgIconId,
|
|
1293
1293
|
size: 48
|
|
1294
1294
|
}, null, 8, ["class", "iconName"])
|
|
1295
1295
|
], 6)) : d("", !0)
|
|
1296
1296
|
], 2),
|
|
1297
|
-
|
|
1297
|
+
o.question.showLabel ? (i(), u("span", {
|
|
1298
1298
|
key: 0,
|
|
1299
|
-
class: a(
|
|
1299
|
+
class: a(o.question.cssClasses.itemText)
|
|
1300
1300
|
}, [
|
|
1301
1301
|
C(c, {
|
|
1302
|
-
locString:
|
|
1302
|
+
locString: o.item.locText
|
|
1303
1303
|
}, null, 8, ["locString"])
|
|
1304
1304
|
], 2)) : d("", !0)
|
|
1305
1305
|
], 2)
|
|
@@ -1315,80 +1315,80 @@ const Qe = /* @__PURE__ */ h({
|
|
|
1315
1315
|
css: {}
|
|
1316
1316
|
},
|
|
1317
1317
|
setup(l) {
|
|
1318
|
-
const s = l,
|
|
1319
|
-
A(s,
|
|
1320
|
-
const e = (
|
|
1318
|
+
const s = l, n = $(null);
|
|
1319
|
+
A(s, n);
|
|
1320
|
+
const e = (o) => {
|
|
1321
1321
|
const t = s.question;
|
|
1322
|
-
t.value =
|
|
1322
|
+
t.value = o.target.value;
|
|
1323
1323
|
};
|
|
1324
|
-
return (
|
|
1324
|
+
return (o, t) => {
|
|
1325
1325
|
const r = q("sv-character-counter");
|
|
1326
|
-
return !
|
|
1326
|
+
return !o.question.isReadOnlyRenderDiv() && !o.question.getMaxLength() ? (i(), u("textarea", {
|
|
1327
1327
|
key: 0,
|
|
1328
1328
|
ref_key: "root",
|
|
1329
|
-
ref:
|
|
1330
|
-
readonly:
|
|
1331
|
-
disabled:
|
|
1332
|
-
value:
|
|
1333
|
-
id:
|
|
1334
|
-
maxlength:
|
|
1335
|
-
cols:
|
|
1336
|
-
rows:
|
|
1337
|
-
placeholder:
|
|
1338
|
-
class: a(
|
|
1329
|
+
ref: n,
|
|
1330
|
+
readonly: o.question.isInputReadOnly,
|
|
1331
|
+
disabled: o.question.isInputReadOnly,
|
|
1332
|
+
value: o.question.value,
|
|
1333
|
+
id: o.question.inputId,
|
|
1334
|
+
maxlength: o.question.getMaxLength(),
|
|
1335
|
+
cols: o.question.cols,
|
|
1336
|
+
rows: o.question.rows,
|
|
1337
|
+
placeholder: o.question.renderedPlaceholder,
|
|
1338
|
+
class: a(o.question.className),
|
|
1339
1339
|
onChange: e,
|
|
1340
1340
|
onInput: t[0] || (t[0] = (c) => {
|
|
1341
|
-
|
|
1341
|
+
o.question.onInput(c);
|
|
1342
1342
|
}),
|
|
1343
1343
|
onKeydown: t[1] || (t[1] = (c) => {
|
|
1344
|
-
|
|
1344
|
+
o.question.onKeyDown(c);
|
|
1345
1345
|
}),
|
|
1346
|
-
"aria-required":
|
|
1347
|
-
"aria-label":
|
|
1348
|
-
"aria-labelledby":
|
|
1349
|
-
"aria-describedby":
|
|
1350
|
-
"aria-invalid":
|
|
1351
|
-
"aria-errormessage":
|
|
1352
|
-
style: S({ resize:
|
|
1353
|
-
}, null, 46, Zs)) : !
|
|
1346
|
+
"aria-required": o.question.a11y_input_ariaRequired,
|
|
1347
|
+
"aria-label": o.question.a11y_input_ariaLabel,
|
|
1348
|
+
"aria-labelledby": o.question.a11y_input_ariaLabelledBy,
|
|
1349
|
+
"aria-describedby": o.question.a11y_input_ariaDescribedBy,
|
|
1350
|
+
"aria-invalid": o.question.a11y_input_ariaInvalid,
|
|
1351
|
+
"aria-errormessage": o.question.a11y_input_ariaErrormessage,
|
|
1352
|
+
style: S({ resize: o.question.resizeStyle })
|
|
1353
|
+
}, null, 46, Zs)) : !o.question.isReadOnlyRenderDiv() && o.question.getMaxLength() ? (i(), u("div", {
|
|
1354
1354
|
key: 1,
|
|
1355
1355
|
ref_key: "root",
|
|
1356
|
-
ref:
|
|
1356
|
+
ref: n
|
|
1357
1357
|
}, [
|
|
1358
1358
|
v("textarea", {
|
|
1359
|
-
readonly:
|
|
1360
|
-
disabled:
|
|
1361
|
-
value:
|
|
1362
|
-
id:
|
|
1363
|
-
maxlength:
|
|
1364
|
-
cols:
|
|
1365
|
-
rows:
|
|
1366
|
-
placeholder:
|
|
1367
|
-
class: a(
|
|
1359
|
+
readonly: o.question.isInputReadOnly,
|
|
1360
|
+
disabled: o.question.isInputReadOnly,
|
|
1361
|
+
value: o.question.value,
|
|
1362
|
+
id: o.question.inputId,
|
|
1363
|
+
maxlength: o.question.getMaxLength(),
|
|
1364
|
+
cols: o.question.cols,
|
|
1365
|
+
rows: o.question.rows,
|
|
1366
|
+
placeholder: o.question.renderedPlaceholder,
|
|
1367
|
+
class: a(o.question.className),
|
|
1368
1368
|
onChange: e,
|
|
1369
1369
|
onInput: t[2] || (t[2] = (c) => {
|
|
1370
|
-
|
|
1370
|
+
o.question.onInput(c);
|
|
1371
1371
|
}),
|
|
1372
1372
|
onKeydown: t[3] || (t[3] = (c) => {
|
|
1373
|
-
|
|
1373
|
+
o.question.onKeyDown(c);
|
|
1374
1374
|
}),
|
|
1375
|
-
"aria-required":
|
|
1376
|
-
"aria-label":
|
|
1377
|
-
"aria-labelledby":
|
|
1378
|
-
"aria-describedby":
|
|
1379
|
-
"aria-invalid":
|
|
1380
|
-
"aria-errormessage":
|
|
1381
|
-
style: S({ resize:
|
|
1375
|
+
"aria-required": o.question.a11y_input_ariaRequired,
|
|
1376
|
+
"aria-label": o.question.a11y_input_ariaLabel,
|
|
1377
|
+
"aria-labelledby": o.question.a11y_input_ariaLabelledBy,
|
|
1378
|
+
"aria-describedby": o.question.a11y_input_ariaDescribedBy,
|
|
1379
|
+
"aria-invalid": o.question.a11y_input_ariaInvalid,
|
|
1380
|
+
"aria-errormessage": o.question.a11y_input_ariaErrormessage,
|
|
1381
|
+
style: S({ resize: o.question.resizeStyle })
|
|
1382
1382
|
}, null, 46, xs),
|
|
1383
1383
|
C(r, {
|
|
1384
|
-
counter:
|
|
1385
|
-
remainingCharacterCounter:
|
|
1384
|
+
counter: o.question.characterCounter,
|
|
1385
|
+
remainingCharacterCounter: o.question.cssClasses.remainingCharacterCounter
|
|
1386
1386
|
}, null, 8, ["counter", "remainingCharacterCounter"])
|
|
1387
1387
|
], 512)) : (i(), u("div", {
|
|
1388
1388
|
key: 2,
|
|
1389
1389
|
ref_key: "root",
|
|
1390
|
-
ref:
|
|
1391
|
-
}, R(
|
|
1390
|
+
ref: n
|
|
1391
|
+
}, R(o.question.value), 513));
|
|
1392
1392
|
};
|
|
1393
1393
|
}
|
|
1394
1394
|
}), sn = /* @__PURE__ */ h({
|
|
@@ -1398,13 +1398,13 @@ const Qe = /* @__PURE__ */ h({
|
|
|
1398
1398
|
question: {}
|
|
1399
1399
|
},
|
|
1400
1400
|
setup(l) {
|
|
1401
|
-
const s = l,
|
|
1402
|
-
return A(s,
|
|
1401
|
+
const s = l, n = $(null);
|
|
1402
|
+
return A(s, n), (e, o) => {
|
|
1403
1403
|
const t = q("sv-dropdown"), r = q("survey-other-choice");
|
|
1404
1404
|
return i(), u("div", {
|
|
1405
1405
|
class: a(e.question.renderCssRoot),
|
|
1406
1406
|
ref_key: "root",
|
|
1407
|
-
ref:
|
|
1407
|
+
ref: n
|
|
1408
1408
|
}, [
|
|
1409
1409
|
C(t, { question: e.question }, null, 8, ["question"]),
|
|
1410
1410
|
e.question.isOtherSelected ? (i(), g(r, {
|
|
@@ -1430,11 +1430,11 @@ const rn = /* @__PURE__ */ h({
|
|
|
1430
1430
|
question: {}
|
|
1431
1431
|
},
|
|
1432
1432
|
setup(l) {
|
|
1433
|
-
const s = l,
|
|
1434
|
-
A(s,
|
|
1433
|
+
const s = l, n = $(null);
|
|
1434
|
+
A(s, n);
|
|
1435
1435
|
const e = (r) => {
|
|
1436
1436
|
s.question.onClick(r);
|
|
1437
|
-
},
|
|
1437
|
+
}, o = (r) => {
|
|
1438
1438
|
s.question.onKeyUp(r);
|
|
1439
1439
|
}, t = w({
|
|
1440
1440
|
get() {
|
|
@@ -1451,7 +1451,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1451
1451
|
return i(), u("div", {
|
|
1452
1452
|
class: a(r.question.renderCssRoot),
|
|
1453
1453
|
ref_key: "root",
|
|
1454
|
-
ref:
|
|
1454
|
+
ref: n
|
|
1455
1455
|
}, [
|
|
1456
1456
|
v("div", {
|
|
1457
1457
|
class: a(r.question.cssClasses.selectWrapper)
|
|
@@ -1466,7 +1466,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1466
1466
|
id: r.question.inputId,
|
|
1467
1467
|
"onUpdate:modelValue": c[0] || (c[0] = (f) => t.value = f),
|
|
1468
1468
|
onClick: e,
|
|
1469
|
-
onKeyup:
|
|
1469
|
+
onKeyup: o,
|
|
1470
1470
|
autocomplete: r.question.autocomplete,
|
|
1471
1471
|
class: a(r.question.getControlClass()),
|
|
1472
1472
|
"aria-required": r.question.ariaRequired,
|
|
@@ -1507,11 +1507,11 @@ const rn = /* @__PURE__ */ h({
|
|
|
1507
1507
|
item: {}
|
|
1508
1508
|
},
|
|
1509
1509
|
setup(l) {
|
|
1510
|
-
const s = l,
|
|
1511
|
-
return B(() => s.item), (e,
|
|
1510
|
+
const s = l, n = G(() => s.item.locText);
|
|
1511
|
+
return B(() => s.item), (e, o) => (i(), u("option", {
|
|
1512
1512
|
value: e.item.value,
|
|
1513
1513
|
disabled: !e.item.isEnabled
|
|
1514
|
-
}, R(I(
|
|
1514
|
+
}, R(I(n)), 9, ln));
|
|
1515
1515
|
}
|
|
1516
1516
|
}), un = ["id", "disabled", "tabindex", "role", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], dn = { style: { visibility: "hidden" } }, mn = ["disabled", "inputmode", "role", "id", "tabindex", "readonly", "aria-expanded", "aria-controls", "aria-label", "aria-labelledby", "aria-describedby", "aria-activedescendant", "placeholder"], cn = ["id"], pn = /* @__PURE__ */ h({
|
|
1517
1517
|
__name: "Dropdown",
|
|
@@ -1519,10 +1519,10 @@ const rn = /* @__PURE__ */ h({
|
|
|
1519
1519
|
question: {}
|
|
1520
1520
|
},
|
|
1521
1521
|
setup(l) {
|
|
1522
|
-
const s = l,
|
|
1522
|
+
const s = l, n = $(null), e = w(() => {
|
|
1523
1523
|
const k = s.question;
|
|
1524
1524
|
return k.dropdownListModel || (k.dropdownListModel = new Be(k)), s.question.dropdownListModel;
|
|
1525
|
-
}),
|
|
1525
|
+
}), o = (k) => {
|
|
1526
1526
|
var L;
|
|
1527
1527
|
(L = e.value) == null || L.onClick(k);
|
|
1528
1528
|
}, t = (k) => {
|
|
@@ -1535,8 +1535,8 @@ const rn = /* @__PURE__ */ h({
|
|
|
1535
1535
|
var L;
|
|
1536
1536
|
(L = e.value) == null || L.keyHandler(k);
|
|
1537
1537
|
}, m = () => {
|
|
1538
|
-
if (
|
|
1539
|
-
const k =
|
|
1538
|
+
if (n.value) {
|
|
1539
|
+
const k = n.value, L = e.value.inputStringRendered;
|
|
1540
1540
|
Le.isTwoValueEquals(L, k.value, !1, !0, !1) || (k.value = e.value.inputStringRendered);
|
|
1541
1541
|
}
|
|
1542
1542
|
}, p = (k) => {
|
|
@@ -1554,7 +1554,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1554
1554
|
const W = q("survey-string"), V = q("sv-svg-icon"), K = q("sv-popup");
|
|
1555
1555
|
return i(), u("div", {
|
|
1556
1556
|
class: a(k.question.cssClasses.selectWrapper),
|
|
1557
|
-
onClick:
|
|
1557
|
+
onClick: o
|
|
1558
1558
|
}, [
|
|
1559
1559
|
k.question.isReadOnly ? d("", !0) : (i(), u("div", {
|
|
1560
1560
|
key: 0,
|
|
@@ -1602,7 +1602,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1602
1602
|
v("input", {
|
|
1603
1603
|
type: "text",
|
|
1604
1604
|
ref_key: "inputElement",
|
|
1605
|
-
ref:
|
|
1605
|
+
ref: n,
|
|
1606
1606
|
class: a(k.question.cssClasses.filterStringInput),
|
|
1607
1607
|
disabled: k.question.isInputReadOnly,
|
|
1608
1608
|
autocomplete: "off",
|
|
@@ -1676,13 +1676,13 @@ const rn = /* @__PURE__ */ h({
|
|
|
1676
1676
|
question: {}
|
|
1677
1677
|
},
|
|
1678
1678
|
setup(l) {
|
|
1679
|
-
const s = l,
|
|
1680
|
-
return A(s,
|
|
1679
|
+
const s = l, n = $(null);
|
|
1680
|
+
return A(s, n), (e, o) => {
|
|
1681
1681
|
const t = q("sv-tagbox"), r = q("survey-other-choice");
|
|
1682
1682
|
return i(), u("div", {
|
|
1683
1683
|
class: a(e.question.renderCssRoot),
|
|
1684
1684
|
ref_key: "root",
|
|
1685
|
-
ref:
|
|
1685
|
+
ref: n
|
|
1686
1686
|
}, [
|
|
1687
1687
|
C(t, { question: e.question }, null, 8, ["question"]),
|
|
1688
1688
|
e.question.isOtherSelected ? (i(), g(r, {
|
|
@@ -1698,26 +1698,26 @@ const rn = /* @__PURE__ */ h({
|
|
|
1698
1698
|
question: {}
|
|
1699
1699
|
},
|
|
1700
1700
|
setup(l) {
|
|
1701
|
-
const s = l,
|
|
1701
|
+
const s = l, n = w(() => {
|
|
1702
1702
|
const p = s.question;
|
|
1703
1703
|
return p.dropdownListModel || (p.dropdownListModel = new Ne(p)), s.question.dropdownListModel;
|
|
1704
1704
|
}), e = (p) => {
|
|
1705
1705
|
var y;
|
|
1706
|
-
(y =
|
|
1707
|
-
},
|
|
1706
|
+
(y = n.value) == null || y.onClick(p);
|
|
1707
|
+
}, o = (p) => {
|
|
1708
1708
|
var y;
|
|
1709
|
-
(y =
|
|
1709
|
+
(y = n.value) == null || y.chevronPointerDown(p);
|
|
1710
1710
|
}, t = (p) => {
|
|
1711
1711
|
var y;
|
|
1712
|
-
(y =
|
|
1712
|
+
(y = n.value) == null || y.onClear(p);
|
|
1713
1713
|
}, r = (p) => {
|
|
1714
1714
|
var y;
|
|
1715
|
-
(y =
|
|
1715
|
+
(y = n.value) == null || y.keyHandler(p);
|
|
1716
1716
|
}, c = (p) => {
|
|
1717
1717
|
var y;
|
|
1718
|
-
(y =
|
|
1718
|
+
(y = n.value) == null || y.onBlur(p);
|
|
1719
1719
|
}, m = le(() => s.question.selectedChoices);
|
|
1720
|
-
return B(() =>
|
|
1720
|
+
return B(() => n.value), (p, y) => {
|
|
1721
1721
|
const f = q("sv-tagbox-item"), b = q("sv-tagbox-filter"), N = q("sv-svg-icon"), k = q("sv-popup"), L = q("survey-string");
|
|
1722
1722
|
return i(), u("div", {
|
|
1723
1723
|
class: a(p.question.cssClasses.selectWrapper),
|
|
@@ -1726,7 +1726,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1726
1726
|
p.question.isReadOnly ? d("", !0) : (i(), u("div", {
|
|
1727
1727
|
key: 0,
|
|
1728
1728
|
id: p.question.inputId,
|
|
1729
|
-
tabindex:
|
|
1729
|
+
tabindex: n.value.noTabIndex ? void 0 : 0,
|
|
1730
1730
|
disabled: p.question.isInputReadOnly ? !0 : null,
|
|
1731
1731
|
onKeydown: r,
|
|
1732
1732
|
onBlur: c,
|
|
@@ -1737,8 +1737,8 @@ const rn = /* @__PURE__ */ h({
|
|
|
1737
1737
|
"aria-invalid": p.question.ariaInvalid,
|
|
1738
1738
|
"aria-errormessage": p.question.ariaErrormessage,
|
|
1739
1739
|
"aria-expanded": p.question.ariaExpanded === null ? void 0 : p.question.ariaExpanded === "true",
|
|
1740
|
-
"aria-controls":
|
|
1741
|
-
"aria-activedescendant":
|
|
1740
|
+
"aria-controls": n.value.listElementId,
|
|
1741
|
+
"aria-activedescendant": n.value.ariaActivedescendant,
|
|
1742
1742
|
required: p.question.isRequired ? !0 : null
|
|
1743
1743
|
}, [
|
|
1744
1744
|
v("div", {
|
|
@@ -1750,7 +1750,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1750
1750
|
key: "item" + V
|
|
1751
1751
|
}, null, 8, ["item", "question"]))), 128)),
|
|
1752
1752
|
C(b, {
|
|
1753
|
-
model:
|
|
1753
|
+
model: n.value,
|
|
1754
1754
|
question: p.question
|
|
1755
1755
|
}, null, 8, ["model", "question"])
|
|
1756
1756
|
], 2),
|
|
@@ -1782,12 +1782,12 @@ const rn = /* @__PURE__ */ h({
|
|
|
1782
1782
|
}, null, 8, ["locString"])) : d("", !0)
|
|
1783
1783
|
], 10, qn)) : (i(), g(k, {
|
|
1784
1784
|
key: 1,
|
|
1785
|
-
model:
|
|
1785
|
+
model: n.value.popupModel
|
|
1786
1786
|
}, null, 8, ["model"])),
|
|
1787
1787
|
p.question.cssClasses.chevronButtonIconId ? (i(), u("div", {
|
|
1788
1788
|
key: 3,
|
|
1789
1789
|
class: a(p.question.cssClasses.chevronButton),
|
|
1790
|
-
onPointerdown:
|
|
1790
|
+
onPointerdown: o,
|
|
1791
1791
|
"aria-hidden": "true"
|
|
1792
1792
|
}, [
|
|
1793
1793
|
C(N, {
|
|
@@ -1806,12 +1806,12 @@ const rn = /* @__PURE__ */ h({
|
|
|
1806
1806
|
model: {}
|
|
1807
1807
|
},
|
|
1808
1808
|
setup(l) {
|
|
1809
|
-
const s = l,
|
|
1809
|
+
const s = l, n = (r) => {
|
|
1810
1810
|
const c = s.model;
|
|
1811
1811
|
c.inputStringRendered = r.target.value;
|
|
1812
1812
|
}, e = (r) => {
|
|
1813
1813
|
s.model.inputKeyHandler(r);
|
|
1814
|
-
},
|
|
1814
|
+
}, o = (r) => {
|
|
1815
1815
|
s.model.onBlur(r);
|
|
1816
1816
|
}, t = (r) => {
|
|
1817
1817
|
s.model.onFocus(r);
|
|
@@ -1859,9 +1859,9 @@ const rn = /* @__PURE__ */ h({
|
|
|
1859
1859
|
id: r.question.getInputId(),
|
|
1860
1860
|
readonly: r.model.filterReadOnly ? !0 : void 0,
|
|
1861
1861
|
size: r.model.inputStringRendered ? void 0 : 1,
|
|
1862
|
-
onChange:
|
|
1862
|
+
onChange: n,
|
|
1863
1863
|
onKeydown: e,
|
|
1864
|
-
onBlur:
|
|
1864
|
+
onBlur: o,
|
|
1865
1865
|
onFocus: t
|
|
1866
1866
|
}, null, 42, Cn), [
|
|
1867
1867
|
[we, r.model.inputStringRendered]
|
|
@@ -1877,10 +1877,10 @@ const rn = /* @__PURE__ */ h({
|
|
|
1877
1877
|
item: {}
|
|
1878
1878
|
},
|
|
1879
1879
|
setup(l) {
|
|
1880
|
-
const s = l,
|
|
1880
|
+
const s = l, n = (e) => {
|
|
1881
1881
|
s.question.dropdownListModel.deselectItem(s.item.value), e.stopPropagation();
|
|
1882
1882
|
};
|
|
1883
|
-
return B(() => s.item), (e,
|
|
1883
|
+
return B(() => s.item), (e, o) => {
|
|
1884
1884
|
const t = q("survey-string"), r = q("sv-svg-icon");
|
|
1885
1885
|
return i(), u("div", {
|
|
1886
1886
|
class: "sv-tagbox__item",
|
|
@@ -1893,7 +1893,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1893
1893
|
]),
|
|
1894
1894
|
v("div", {
|
|
1895
1895
|
class: a(e.question.cssClasses.cleanItemButton),
|
|
1896
|
-
onClick:
|
|
1896
|
+
onClick: n
|
|
1897
1897
|
}, [
|
|
1898
1898
|
C(r, {
|
|
1899
1899
|
class: a(e.question.cssClasses.cleanItemButtonSvg),
|
|
@@ -1911,9 +1911,9 @@ const rn = /* @__PURE__ */ h({
|
|
|
1911
1911
|
question: {}
|
|
1912
1912
|
},
|
|
1913
1913
|
setup(l) {
|
|
1914
|
-
const s = l,
|
|
1915
|
-
A(s,
|
|
1916
|
-
const e = (t) => s.question.getItemValueWrapperComponentName(t) || "survey-ranking-item",
|
|
1914
|
+
const s = l, n = $(null);
|
|
1915
|
+
A(s, n);
|
|
1916
|
+
const e = (t) => s.question.getItemValueWrapperComponentName(t) || "survey-ranking-item", o = (t, r, c) => ({
|
|
1917
1917
|
componentName: s.question.getPropertyByName("itemComponent").isDefaultValue(
|
|
1918
1918
|
s.question.itemComponent
|
|
1919
1919
|
) ? "survey-ranking-item" : s.question.itemComponent,
|
|
@@ -1930,11 +1930,11 @@ const rn = /* @__PURE__ */ h({
|
|
|
1930
1930
|
return i(), u("div", {
|
|
1931
1931
|
class: a(t.question.rootClass),
|
|
1932
1932
|
ref_key: "root",
|
|
1933
|
-
ref:
|
|
1933
|
+
ref: n
|
|
1934
1934
|
}, [
|
|
1935
1935
|
t.question.selectToRankEnabled ? d("", !0) : (i(!0), u(_, { key: 0 }, D(t.question.rankingChoices, (m, p) => (i(), g(T(e(m)), E({
|
|
1936
1936
|
key: m.value + "-" + p + "-item"
|
|
1937
|
-
},
|
|
1937
|
+
}, o(m, p)), null, 16))), 128)),
|
|
1938
1938
|
t.question.selectToRankEnabled ? (i(), u("div", {
|
|
1939
1939
|
key: 1,
|
|
1940
1940
|
class: a(t.question.getContainerClasses("from")),
|
|
@@ -1942,7 +1942,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1942
1942
|
}, [
|
|
1943
1943
|
(i(!0), u(_, null, D(t.question.unRankingChoices, (m, p) => (i(), g(T(e(m)), E({
|
|
1944
1944
|
key: m.value + "-" + p + "-item"
|
|
1945
|
-
},
|
|
1945
|
+
}, o(m, p, !0)), null, 16))), 128)),
|
|
1946
1946
|
t.question.unRankingChoices.length === 0 ? (i(), u("div", {
|
|
1947
1947
|
key: 0,
|
|
1948
1948
|
class: a(t.question.cssClasses.containerPlaceholder)
|
|
@@ -1963,7 +1963,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1963
1963
|
}, [
|
|
1964
1964
|
(i(!0), u(_, null, D(t.question.rankingChoices, (m, p) => (i(), g(T(e(m)), E({
|
|
1965
1965
|
key: m.value + "-" + p + "-item"
|
|
1966
|
-
},
|
|
1966
|
+
}, o(m, p)), null, 16))), 128)),
|
|
1967
1967
|
t.question.rankingChoices.length === 0 ? (i(), u("div", {
|
|
1968
1968
|
key: 0,
|
|
1969
1969
|
class: a(t.question.cssClasses.containerPlaceholder)
|
|
@@ -1989,17 +1989,17 @@ const rn = /* @__PURE__ */ h({
|
|
|
1989
1989
|
unrankedItem: { type: Boolean }
|
|
1990
1990
|
},
|
|
1991
1991
|
setup(l) {
|
|
1992
|
-
const s = l,
|
|
1993
|
-
return B(() => s.item), (e,
|
|
1992
|
+
const s = l, n = w(() => s.question.getNumberByIndex(s.index));
|
|
1993
|
+
return B(() => s.item), (e, o) => {
|
|
1994
1994
|
const t = q("survey-string");
|
|
1995
1995
|
return i(), u("div", {
|
|
1996
1996
|
tabindex: e.question.getItemTabIndex(e.item),
|
|
1997
1997
|
"data-sv-drop-target-ranking-item": e.index,
|
|
1998
1998
|
class: a(e.question.getItemClass(e.item)),
|
|
1999
|
-
onKeydown:
|
|
1999
|
+
onKeydown: o[0] || (o[0] = (r) => {
|
|
2000
2000
|
e.question.handleKeydown.call(e.question, r, e.item);
|
|
2001
2001
|
}),
|
|
2002
|
-
onPointerdown:
|
|
2002
|
+
onPointerdown: o[1] || (o[1] = (r) => {
|
|
2003
2003
|
e.question.handlePointerDown.call(
|
|
2004
2004
|
e.question,
|
|
2005
2005
|
r,
|
|
@@ -2033,10 +2033,10 @@ const rn = /* @__PURE__ */ h({
|
|
|
2033
2033
|
}, null, 8, Tn)
|
|
2034
2034
|
], 2))
|
|
2035
2035
|
], 2),
|
|
2036
|
-
!e.unrankedItem &&
|
|
2036
|
+
!e.unrankedItem && n.value ? (i(), u("div", {
|
|
2037
2037
|
key: 0,
|
|
2038
2038
|
class: a(e.question.getItemIndexClasses(e.item))
|
|
2039
|
-
}, R(
|
|
2039
|
+
}, R(n.value), 3)) : (i(), u("div", {
|
|
2040
2040
|
key: 1,
|
|
2041
2041
|
class: a(e.question.getItemIndexClasses(e.item))
|
|
2042
2042
|
}, [
|
|
@@ -2068,38 +2068,38 @@ const rn = /* @__PURE__ */ h({
|
|
|
2068
2068
|
question: {}
|
|
2069
2069
|
},
|
|
2070
2070
|
setup(l) {
|
|
2071
|
-
const s = l,
|
|
2072
|
-
A(s,
|
|
2073
|
-
const e = (
|
|
2074
|
-
return (
|
|
2071
|
+
const s = l, n = $(null);
|
|
2072
|
+
A(s, n);
|
|
2073
|
+
const e = (o) => s.question.getInputId(o);
|
|
2074
|
+
return (o, t) => {
|
|
2075
2075
|
const r = q("survey-string");
|
|
2076
2076
|
return i(), u("div", {
|
|
2077
|
-
class: a(
|
|
2077
|
+
class: a(o.question.ratingRootCss),
|
|
2078
2078
|
ref_key: "root",
|
|
2079
|
-
ref:
|
|
2079
|
+
ref: n
|
|
2080
2080
|
}, [
|
|
2081
2081
|
v("fieldset", Dn, [
|
|
2082
2082
|
Bn,
|
|
2083
|
-
|
|
2083
|
+
o.question.hasMinLabel ? (i(), u("span", {
|
|
2084
2084
|
key: 0,
|
|
2085
|
-
class: a(
|
|
2085
|
+
class: a(o.question.cssClasses.minText)
|
|
2086
2086
|
}, [
|
|
2087
2087
|
C(r, {
|
|
2088
|
-
locString:
|
|
2088
|
+
locString: o.question.locMinRateDescription
|
|
2089
2089
|
}, null, 8, ["locString"])
|
|
2090
2090
|
], 2)) : d("", !0),
|
|
2091
|
-
(i(!0), u(_, null, D(
|
|
2091
|
+
(i(!0), u(_, null, D(o.question.renderedRateItems, (c, m) => (i(), g(T(o.question.itemComponent), {
|
|
2092
2092
|
key: e(m),
|
|
2093
2093
|
item: c,
|
|
2094
2094
|
index: m,
|
|
2095
|
-
question:
|
|
2095
|
+
question: o.question
|
|
2096
2096
|
}, null, 8, ["item", "index", "question"]))), 128)),
|
|
2097
|
-
|
|
2097
|
+
o.question.hasMaxLabel ? (i(), u("span", {
|
|
2098
2098
|
key: 1,
|
|
2099
|
-
class: a(
|
|
2099
|
+
class: a(o.question.cssClasses.maxText)
|
|
2100
2100
|
}, [
|
|
2101
2101
|
C(r, {
|
|
2102
|
-
locString:
|
|
2102
|
+
locString: o.question.locMaxRateDescription
|
|
2103
2103
|
}, null, 8, ["locString"])
|
|
2104
2104
|
], 2)) : d("", !0)
|
|
2105
2105
|
])
|
|
@@ -2115,31 +2115,31 @@ const rn = /* @__PURE__ */ h({
|
|
|
2115
2115
|
},
|
|
2116
2116
|
setup(l) {
|
|
2117
2117
|
const s = l;
|
|
2118
|
-
return B(() => s.item), (
|
|
2119
|
-
const
|
|
2118
|
+
return B(() => s.item), (n, e) => {
|
|
2119
|
+
const o = q("survey-string");
|
|
2120
2120
|
return i(), u("label", {
|
|
2121
|
-
key:
|
|
2122
|
-
onMousedown: e[1] || (e[1] = (t) =>
|
|
2123
|
-
class: a(
|
|
2121
|
+
key: n.item.value,
|
|
2122
|
+
onMousedown: e[1] || (e[1] = (t) => n.question.onMouseDown()),
|
|
2123
|
+
class: a(n.question.getItemClassByText(n.item.itemValue, n.item.text))
|
|
2124
2124
|
}, [
|
|
2125
2125
|
v("input", {
|
|
2126
2126
|
type: "radio",
|
|
2127
2127
|
class: "sv-visuallyhidden",
|
|
2128
|
-
name:
|
|
2129
|
-
id:
|
|
2130
|
-
value:
|
|
2131
|
-
disabled:
|
|
2132
|
-
onClick: e[0] || (e[0] = (t) =>
|
|
2133
|
-
"aria-required":
|
|
2134
|
-
"aria-label":
|
|
2135
|
-
"aria-invalid":
|
|
2136
|
-
"aria-errormessage":
|
|
2128
|
+
name: n.question.name,
|
|
2129
|
+
id: n.question.getInputId(n.index),
|
|
2130
|
+
value: n.item.value,
|
|
2131
|
+
disabled: n.question.isInputReadOnly,
|
|
2132
|
+
onClick: e[0] || (e[0] = (t) => n.question.setValueFromClick(t.target.value)),
|
|
2133
|
+
"aria-required": n.question.ariaRequired,
|
|
2134
|
+
"aria-label": n.question.ariaLabel,
|
|
2135
|
+
"aria-invalid": n.question.ariaInvalid,
|
|
2136
|
+
"aria-errormessage": n.question.ariaErrormessage
|
|
2137
2137
|
}, null, 8, Nn),
|
|
2138
2138
|
v("span", {
|
|
2139
|
-
class: a(
|
|
2139
|
+
class: a(n.question.cssClasses.itemText)
|
|
2140
2140
|
}, [
|
|
2141
|
-
C(
|
|
2142
|
-
locString:
|
|
2141
|
+
C(o, {
|
|
2142
|
+
locString: n.item.locText
|
|
2143
2143
|
}, null, 8, ["locString"])
|
|
2144
2144
|
], 2)
|
|
2145
2145
|
], 34);
|
|
@@ -2154,33 +2154,33 @@ const rn = /* @__PURE__ */ h({
|
|
|
2154
2154
|
},
|
|
2155
2155
|
setup(l) {
|
|
2156
2156
|
const s = l;
|
|
2157
|
-
return B(() => s.item), (
|
|
2158
|
-
const
|
|
2157
|
+
return B(() => s.item), (n, e) => {
|
|
2158
|
+
const o = q("sv-svg-icon");
|
|
2159
2159
|
return i(), u("label", {
|
|
2160
|
-
key:
|
|
2161
|
-
onMousedown: e[1] || (e[1] = (t) =>
|
|
2162
|
-
style: S(
|
|
2163
|
-
class: a(
|
|
2164
|
-
onMouseover: e[2] || (e[2] = (t) =>
|
|
2165
|
-
onMouseleave: e[3] || (e[3] = (t) =>
|
|
2160
|
+
key: n.item.value,
|
|
2161
|
+
onMousedown: e[1] || (e[1] = (t) => n.question.onMouseDown()),
|
|
2162
|
+
style: S(n.question.getItemStyle(n.item.itemValue, n.item.highlight)),
|
|
2163
|
+
class: a(n.question.getItemClass(n.item.itemValue, n.item.highlight)),
|
|
2164
|
+
onMouseover: e[2] || (e[2] = (t) => n.question.onItemMouseIn(n.item)),
|
|
2165
|
+
onMouseleave: e[3] || (e[3] = (t) => n.question.onItemMouseOut(n.item))
|
|
2166
2166
|
}, [
|
|
2167
2167
|
v("input", {
|
|
2168
2168
|
type: "radio",
|
|
2169
2169
|
class: "sv-visuallyhidden",
|
|
2170
|
-
name:
|
|
2171
|
-
id:
|
|
2172
|
-
value:
|
|
2173
|
-
disabled:
|
|
2174
|
-
onClick: e[0] || (e[0] = (t) =>
|
|
2175
|
-
"aria-required":
|
|
2176
|
-
"aria-label":
|
|
2177
|
-
"aria-invalid":
|
|
2178
|
-
"aria-errormessage":
|
|
2170
|
+
name: n.question.name,
|
|
2171
|
+
id: n.question.getInputId(n.index),
|
|
2172
|
+
value: n.item.value,
|
|
2173
|
+
disabled: n.question.isInputReadOnly,
|
|
2174
|
+
onClick: e[0] || (e[0] = (t) => n.question.setValueFromClick(t.target.value)),
|
|
2175
|
+
"aria-required": n.question.ariaRequired,
|
|
2176
|
+
"aria-label": n.question.ariaLabel,
|
|
2177
|
+
"aria-invalid": n.question.ariaInvalid,
|
|
2178
|
+
"aria-errormessage": n.question.ariaErrormessage
|
|
2179
2179
|
}, null, 8, An),
|
|
2180
|
-
C(
|
|
2181
|
-
iconName:
|
|
2180
|
+
C(o, {
|
|
2181
|
+
iconName: n.question.getItemSmileyIconName(n.item.itemValue),
|
|
2182
2182
|
size: "auto",
|
|
2183
|
-
title:
|
|
2183
|
+
title: n.item.text
|
|
2184
2184
|
}, null, 8, ["iconName", "title"])
|
|
2185
2185
|
], 38);
|
|
2186
2186
|
};
|
|
@@ -2194,39 +2194,39 @@ const rn = /* @__PURE__ */ h({
|
|
|
2194
2194
|
},
|
|
2195
2195
|
setup(l) {
|
|
2196
2196
|
const s = l;
|
|
2197
|
-
return B(() => s.item), (
|
|
2198
|
-
const
|
|
2197
|
+
return B(() => s.item), (n, e) => {
|
|
2198
|
+
const o = q("sv-svg-icon");
|
|
2199
2199
|
return i(), u("label", {
|
|
2200
|
-
key:
|
|
2201
|
-
onMousedown: e[1] || (e[1] = (t) =>
|
|
2202
|
-
class: a(
|
|
2203
|
-
onMouseover: e[2] || (e[2] = (t) =>
|
|
2204
|
-
onMouseleave: e[3] || (e[3] = (t) =>
|
|
2200
|
+
key: n.item.value,
|
|
2201
|
+
onMousedown: e[1] || (e[1] = (t) => n.question.onMouseDown()),
|
|
2202
|
+
class: a(n.question.getItemClass(n.item.itemValue)),
|
|
2203
|
+
onMouseover: e[2] || (e[2] = (t) => n.question.onItemMouseIn(n.item)),
|
|
2204
|
+
onMouseleave: e[3] || (e[3] = (t) => n.question.onItemMouseOut(n.item))
|
|
2205
2205
|
}, [
|
|
2206
2206
|
v("input", {
|
|
2207
2207
|
type: "radio",
|
|
2208
2208
|
class: "sv-visuallyhidden",
|
|
2209
|
-
name:
|
|
2210
|
-
id:
|
|
2211
|
-
value:
|
|
2212
|
-
disabled:
|
|
2213
|
-
onClick: e[0] || (e[0] = (t) =>
|
|
2214
|
-
"aria-required":
|
|
2215
|
-
"aria-label":
|
|
2216
|
-
"aria-invalid":
|
|
2217
|
-
"aria-errormessage":
|
|
2209
|
+
name: n.question.name,
|
|
2210
|
+
id: n.question.getInputId(n.index),
|
|
2211
|
+
value: n.item.value,
|
|
2212
|
+
disabled: n.question.isInputReadOnly,
|
|
2213
|
+
onClick: e[0] || (e[0] = (t) => n.question.setValueFromClick((t == null ? void 0 : t.target).value)),
|
|
2214
|
+
"aria-required": n.question.ariaRequired,
|
|
2215
|
+
"aria-label": n.question.ariaLabel,
|
|
2216
|
+
"aria-invalid": n.question.ariaInvalid,
|
|
2217
|
+
"aria-errormessage": n.question.ariaErrormessage
|
|
2218
2218
|
}, null, 8, Hn),
|
|
2219
|
-
C(
|
|
2219
|
+
C(o, {
|
|
2220
2220
|
class: a("sv-star"),
|
|
2221
|
-
iconName:
|
|
2221
|
+
iconName: n.question.itemStarIcon,
|
|
2222
2222
|
size: "auto",
|
|
2223
|
-
title:
|
|
2223
|
+
title: n.item.text
|
|
2224
2224
|
}, null, 8, ["iconName", "title"]),
|
|
2225
|
-
C(
|
|
2225
|
+
C(o, {
|
|
2226
2226
|
class: a("sv-star-2"),
|
|
2227
|
-
iconName:
|
|
2227
|
+
iconName: n.question.itemStarIconAlt,
|
|
2228
2228
|
size: "auto",
|
|
2229
|
-
title:
|
|
2229
|
+
title: n.item.text
|
|
2230
2230
|
}, null, 8, ["iconName", "title"])
|
|
2231
2231
|
], 34);
|
|
2232
2232
|
};
|
|
@@ -2241,13 +2241,13 @@ const rn = /* @__PURE__ */ h({
|
|
|
2241
2241
|
},
|
|
2242
2242
|
setup(l) {
|
|
2243
2243
|
const s = l;
|
|
2244
|
-
return B(() => s.item), (
|
|
2245
|
-
const
|
|
2244
|
+
return B(() => s.item), (n, e) => {
|
|
2245
|
+
const o = q("survey-string");
|
|
2246
2246
|
return i(), u("div", Wn, [
|
|
2247
|
-
v("span", Vn, R(
|
|
2248
|
-
|
|
2249
|
-
C(
|
|
2250
|
-
locString:
|
|
2247
|
+
v("span", Vn, R(n.item.title), 1),
|
|
2248
|
+
n.item.description ? (i(), u("div", Fn, [
|
|
2249
|
+
C(o, {
|
|
2250
|
+
locString: n.item.description
|
|
2251
2251
|
}, null, 8, ["locString"])
|
|
2252
2252
|
])) : d("", !0)
|
|
2253
2253
|
]);
|
|
@@ -2266,13 +2266,13 @@ const zn = /* @__PURE__ */ h({
|
|
|
2266
2266
|
question: {}
|
|
2267
2267
|
},
|
|
2268
2268
|
setup(l) {
|
|
2269
|
-
const s = l,
|
|
2270
|
-
return A(s,
|
|
2269
|
+
const s = l, n = $(null);
|
|
2270
|
+
return A(s, n), (e, o) => {
|
|
2271
2271
|
const t = q("sv-dropdown");
|
|
2272
2272
|
return i(), u("div", {
|
|
2273
2273
|
class: a(e.question.cssClasses.rootDropdown),
|
|
2274
2274
|
ref_key: "root",
|
|
2275
|
-
ref:
|
|
2275
|
+
ref: n
|
|
2276
2276
|
}, [
|
|
2277
2277
|
C(t, { question: e.question }, null, 8, ["question"])
|
|
2278
2278
|
], 2);
|
|
@@ -2285,11 +2285,11 @@ const zn = /* @__PURE__ */ h({
|
|
|
2285
2285
|
question: {}
|
|
2286
2286
|
},
|
|
2287
2287
|
setup(l) {
|
|
2288
|
-
const s = l,
|
|
2289
|
-
A(s,
|
|
2288
|
+
const s = l, n = $(null);
|
|
2289
|
+
A(s, n);
|
|
2290
2290
|
const e = (t, r) => {
|
|
2291
2291
|
s.question.onLabelClick(t, r);
|
|
2292
|
-
},
|
|
2292
|
+
}, o = (t) => {
|
|
2293
2293
|
s.question.onSwitchClickModel(t);
|
|
2294
2294
|
};
|
|
2295
2295
|
return (t, r) => {
|
|
@@ -2298,7 +2298,7 @@ const zn = /* @__PURE__ */ h({
|
|
|
2298
2298
|
return i(), u("div", {
|
|
2299
2299
|
class: a(t.question.cssClasses.root),
|
|
2300
2300
|
ref_key: "root",
|
|
2301
|
-
ref:
|
|
2301
|
+
ref: n,
|
|
2302
2302
|
onKeydown: r[4] || (r[4] = (p) => t.question.onKeyDownCore(p))
|
|
2303
2303
|
}, [
|
|
2304
2304
|
v("label", {
|
|
@@ -2337,7 +2337,7 @@ const zn = /* @__PURE__ */ h({
|
|
|
2337
2337
|
], 2),
|
|
2338
2338
|
v("div", {
|
|
2339
2339
|
class: a(t.question.cssClasses.switch),
|
|
2340
|
-
onClick: r[2] || (r[2] = (p) =>
|
|
2340
|
+
onClick: r[2] || (r[2] = (p) => o(p))
|
|
2341
2341
|
}, [
|
|
2342
2342
|
v("span", {
|
|
2343
2343
|
class: a(t.question.cssClasses.slider)
|
|
@@ -2382,7 +2382,7 @@ const jn = /* @__PURE__ */ h({
|
|
|
2382
2382
|
},
|
|
2383
2383
|
setup(l) {
|
|
2384
2384
|
const s = $(null);
|
|
2385
|
-
return A(l, s), (e,
|
|
2385
|
+
return A(l, s), (e, o) => {
|
|
2386
2386
|
const t = q("sv-boolean-radio-item");
|
|
2387
2387
|
return i(), u("div", {
|
|
2388
2388
|
class: a(e.question.cssClasses.rootRadio),
|
|
@@ -2417,11 +2417,11 @@ const jn = /* @__PURE__ */ h({
|
|
|
2417
2417
|
value: { type: Boolean }
|
|
2418
2418
|
},
|
|
2419
2419
|
setup(l) {
|
|
2420
|
-
const s = l,
|
|
2421
|
-
const
|
|
2422
|
-
|
|
2420
|
+
const s = l, n = (e) => {
|
|
2421
|
+
const o = s.question;
|
|
2422
|
+
o.booleanValue = e.target.value == "true";
|
|
2423
2423
|
};
|
|
2424
|
-
return (e,
|
|
2424
|
+
return (e, o) => {
|
|
2425
2425
|
const t = q("survey-string");
|
|
2426
2426
|
return i(), u("div", {
|
|
2427
2427
|
role: "presentation",
|
|
@@ -2438,7 +2438,7 @@ const jn = /* @__PURE__ */ h({
|
|
|
2438
2438
|
"aria-errormessage": e.question.ariaErrormessage,
|
|
2439
2439
|
disabled: e.question.isInputReadOnly,
|
|
2440
2440
|
class: a(e.question.cssClasses.itemRadioControl),
|
|
2441
|
-
onChange:
|
|
2441
|
+
onChange: n
|
|
2442
2442
|
}, null, 42, Qn),
|
|
2443
2443
|
e.question.cssClasses.materialRadioDecorator ? (i(), u("span", {
|
|
2444
2444
|
key: 0,
|
|
@@ -2476,14 +2476,14 @@ const so = /* @__PURE__ */ h({
|
|
|
2476
2476
|
css: {}
|
|
2477
2477
|
},
|
|
2478
2478
|
setup(l) {
|
|
2479
|
-
const s = l,
|
|
2480
|
-
return A(s,
|
|
2479
|
+
const s = l, n = $(null);
|
|
2480
|
+
return A(s, n), (e, o) => {
|
|
2481
2481
|
var m;
|
|
2482
2482
|
const t = q("survey-element-title-content"), r = q("sv-title-actions"), c = q("survey-string");
|
|
2483
2483
|
return i(), u("div", {
|
|
2484
2484
|
class: a(e.question.cssClasses.rootCheckbox),
|
|
2485
2485
|
ref_key: "root",
|
|
2486
|
-
ref:
|
|
2486
|
+
ref: n
|
|
2487
2487
|
}, [
|
|
2488
2488
|
v("div", {
|
|
2489
2489
|
class: a(e.question.getCheckboxItemCss())
|
|
@@ -2495,7 +2495,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2495
2495
|
type: "checkbox",
|
|
2496
2496
|
name: e.question.name,
|
|
2497
2497
|
value: (m = e.question.booleanValue) != null ? m : "",
|
|
2498
|
-
"onUpdate:modelValue":
|
|
2498
|
+
"onUpdate:modelValue": o[0] || (o[0] = (p) => e.question.booleanValue = p),
|
|
2499
2499
|
class: a(e.question.cssClasses.controlCheckbox),
|
|
2500
2500
|
id: e.question.inputId,
|
|
2501
2501
|
".indeterminate": e.question.isIndeterminate,
|
|
@@ -2557,28 +2557,28 @@ const so = /* @__PURE__ */ h({
|
|
|
2557
2557
|
question: {}
|
|
2558
2558
|
},
|
|
2559
2559
|
setup(l) {
|
|
2560
|
-
const s = l,
|
|
2561
|
-
return A(s,
|
|
2560
|
+
const s = l, n = $(null), e = le(() => s.question.getRows());
|
|
2561
|
+
return A(s, n), (o, t) => {
|
|
2562
2562
|
const r = q("survey-multipletext-item");
|
|
2563
2563
|
return i(), u("table", {
|
|
2564
|
-
class: a(
|
|
2564
|
+
class: a(o.question.getQuestionRootCss()),
|
|
2565
2565
|
ref_key: "root",
|
|
2566
|
-
ref:
|
|
2566
|
+
ref: n
|
|
2567
2567
|
}, [
|
|
2568
2568
|
v("tbody", null, [
|
|
2569
2569
|
(i(!0), u(_, null, D(I(e), (c, m) => (i(), u(_, {
|
|
2570
|
-
key:
|
|
2570
|
+
key: o.question.inputId + "rowkey" + m
|
|
2571
2571
|
}, [
|
|
2572
2572
|
c.isVisible ? (i(), u("tr", {
|
|
2573
2573
|
key: 0,
|
|
2574
|
-
class: a(
|
|
2574
|
+
class: a(o.question.cssClasses.row)
|
|
2575
2575
|
}, [
|
|
2576
2576
|
(i(!0), u(_, null, D(c.cells, (p) => (i(), u("td", {
|
|
2577
2577
|
key: "item" + p.item.editor.id,
|
|
2578
2578
|
class: a(p.className)
|
|
2579
2579
|
}, [
|
|
2580
2580
|
C(r, {
|
|
2581
|
-
question:
|
|
2581
|
+
question: o.question,
|
|
2582
2582
|
cell: p
|
|
2583
2583
|
}, null, 8, ["question", "cell"])
|
|
2584
2584
|
], 2))), 128))
|
|
@@ -2595,25 +2595,25 @@ const so = /* @__PURE__ */ h({
|
|
|
2595
2595
|
cell: {}
|
|
2596
2596
|
},
|
|
2597
2597
|
setup(l) {
|
|
2598
|
-
const s = l,
|
|
2598
|
+
const s = l, n = (o) => re(o);
|
|
2599
2599
|
B(() => s.cell.item.editor);
|
|
2600
2600
|
const e = w(() => s.cell.item);
|
|
2601
|
-
return (
|
|
2601
|
+
return (o, t) => {
|
|
2602
2602
|
const r = q("survey-string"), c = q("survey-errors");
|
|
2603
|
-
return
|
|
2603
|
+
return o.cell.isErrorsCell ? (i(), g(c, {
|
|
2604
2604
|
key: 1,
|
|
2605
2605
|
element: e.value.editor
|
|
2606
2606
|
}, null, 8, ["element"])) : (i(), u("label", {
|
|
2607
2607
|
key: 0,
|
|
2608
|
-
class: a(
|
|
2608
|
+
class: a(o.question.getItemLabelCss(e.value))
|
|
2609
2609
|
}, [
|
|
2610
2610
|
v("span", {
|
|
2611
|
-
class: a(
|
|
2612
|
-
style: S({ minWidth:
|
|
2611
|
+
class: a(o.question.getItemTitleCss()),
|
|
2612
|
+
style: S({ minWidth: o.question.itemTitleWidth, width: o.question.itemTitleWidth })
|
|
2613
2613
|
}, [
|
|
2614
2614
|
e.value.editor.isRequireTextBeforeTitle || e.value.editor.isRequireTextOnStart ? (i(), u("span", {
|
|
2615
2615
|
key: 0,
|
|
2616
|
-
class: a(
|
|
2616
|
+
class: a(o.question.cssClasses.requiredText)
|
|
2617
2617
|
}, R(e.value.editor.requiredText), 3)) : d("", !0),
|
|
2618
2618
|
C(r, {
|
|
2619
2619
|
locString: e.value.locTitle
|
|
@@ -2622,15 +2622,15 @@ const so = /* @__PURE__ */ h({
|
|
|
2622
2622
|
e.value.editor.isRequireTextAfterTitle ? (i(), u("span", {
|
|
2623
2623
|
key: 2,
|
|
2624
2624
|
"aria-hidden": "true",
|
|
2625
|
-
class: a(
|
|
2625
|
+
class: a(o.question.cssClasses.requiredText)
|
|
2626
2626
|
}, R(e.value.editor.requiredText), 3)) : d("", !0)
|
|
2627
2627
|
], 6),
|
|
2628
2628
|
(i(), u("div", {
|
|
2629
2629
|
key: e.value.editor.id,
|
|
2630
|
-
class: a(
|
|
2630
|
+
class: a(o.question.getItemCss()),
|
|
2631
2631
|
onFocusin: t[0] || (t[0] = (m) => e.value.focusIn())
|
|
2632
2632
|
}, [
|
|
2633
|
-
(i(), g(T(
|
|
2633
|
+
(i(), g(T(n(e.value.editor)), {
|
|
2634
2634
|
question: e.value.editor
|
|
2635
2635
|
}, null, 8, ["question"]))
|
|
2636
2636
|
], 34))
|
|
@@ -2644,10 +2644,10 @@ const so = /* @__PURE__ */ h({
|
|
|
2644
2644
|
question: {}
|
|
2645
2645
|
},
|
|
2646
2646
|
setup(l) {
|
|
2647
|
-
const s = l,
|
|
2647
|
+
const s = l, n = $(null), e = z();
|
|
2648
2648
|
A(
|
|
2649
2649
|
s,
|
|
2650
|
-
|
|
2650
|
+
n,
|
|
2651
2651
|
(t) => {
|
|
2652
2652
|
e.value = t.visibleRows, t.visibleRowsChangedCallback = () => {
|
|
2653
2653
|
e.value = t.visibleRows;
|
|
@@ -2658,7 +2658,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2658
2658
|
};
|
|
2659
2659
|
}
|
|
2660
2660
|
);
|
|
2661
|
-
const
|
|
2661
|
+
const o = (t, r) => {
|
|
2662
2662
|
t.value = r.value;
|
|
2663
2663
|
};
|
|
2664
2664
|
return (t, r) => {
|
|
@@ -2666,7 +2666,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2666
2666
|
return i(), u("div", {
|
|
2667
2667
|
class: a(t.question.cssClasses.tableWrapper),
|
|
2668
2668
|
ref_key: "root",
|
|
2669
|
-
ref:
|
|
2669
|
+
ref: n
|
|
2670
2670
|
}, [
|
|
2671
2671
|
v("fieldset", null, [
|
|
2672
2672
|
v("legend", io, R(t.question.locTitle.renderedHtml), 1),
|
|
@@ -2725,7 +2725,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2725
2725
|
t.question.hasCellText ? (i(!0), u(_, { key: 0 }, D(t.question.visibleColumns, (y, f) => (i(), u("td", {
|
|
2726
2726
|
key: f,
|
|
2727
2727
|
class: a(t.question.getItemClass(m, y)),
|
|
2728
|
-
onClick: (b) =>
|
|
2728
|
+
onClick: (b) => o(m, y)
|
|
2729
2729
|
}, [
|
|
2730
2730
|
C(c, {
|
|
2731
2731
|
locString: t.question.getCellDisplayLocText(m.name, y)
|
|
@@ -2735,7 +2735,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2735
2735
|
key: f,
|
|
2736
2736
|
"data-responsive-title": y.locText.renderedHtml,
|
|
2737
2737
|
class: a(t.question.cssClasses.cell),
|
|
2738
|
-
onClick: (b) =>
|
|
2738
|
+
onClick: (b) => o(m, y)
|
|
2739
2739
|
}, [
|
|
2740
2740
|
(i(), g(T(t.question.cellComponent), {
|
|
2741
2741
|
question: t.question,
|
|
@@ -2761,17 +2761,17 @@ const so = /* @__PURE__ */ h({
|
|
|
2761
2761
|
columnIndex: {}
|
|
2762
2762
|
},
|
|
2763
2763
|
setup(l) {
|
|
2764
|
-
return (s,
|
|
2764
|
+
return (s, n) => {
|
|
2765
2765
|
const e = q("survey-string");
|
|
2766
2766
|
return i(), u("label", {
|
|
2767
|
-
onMousedown:
|
|
2767
|
+
onMousedown: n[1] || (n[1] = (o) => s.question.onMouseDown()),
|
|
2768
2768
|
class: a(s.question.getItemClass(s.row, s.column))
|
|
2769
2769
|
}, [
|
|
2770
2770
|
P(v("input", {
|
|
2771
2771
|
type: "radio",
|
|
2772
2772
|
class: a(s.question.cssClasses.itemValue),
|
|
2773
2773
|
name: s.row.fullName,
|
|
2774
|
-
"onUpdate:modelValue":
|
|
2774
|
+
"onUpdate:modelValue": n[0] || (n[0] = (o) => s.row.value = o),
|
|
2775
2775
|
value: s.column.value,
|
|
2776
2776
|
disabled: s.row.isReadOnly,
|
|
2777
2777
|
id: s.question.inputId + "_" + s.row.name + "_" + s.columnIndex,
|
|
@@ -2815,13 +2815,13 @@ const so = /* @__PURE__ */ h({
|
|
|
2815
2815
|
question: {}
|
|
2816
2816
|
},
|
|
2817
2817
|
setup(l) {
|
|
2818
|
-
const s = l,
|
|
2819
|
-
return A(s,
|
|
2818
|
+
const s = l, n = $(null);
|
|
2819
|
+
return A(s, n), (e, o) => {
|
|
2820
2820
|
const t = q("survey-matrixtable");
|
|
2821
2821
|
return i(), g(t, {
|
|
2822
2822
|
question: e.question,
|
|
2823
2823
|
ref_key: "root",
|
|
2824
|
-
ref:
|
|
2824
|
+
ref: n
|
|
2825
2825
|
}, null, 8, ["question"]);
|
|
2826
2826
|
};
|
|
2827
2827
|
}
|
|
@@ -2831,21 +2831,21 @@ const so = /* @__PURE__ */ h({
|
|
|
2831
2831
|
question: {}
|
|
2832
2832
|
},
|
|
2833
2833
|
setup(l) {
|
|
2834
|
-
const s = l,
|
|
2834
|
+
const s = l, n = w(() => s.question.renderedTable);
|
|
2835
2835
|
return B(
|
|
2836
|
-
() =>
|
|
2836
|
+
() => n.value,
|
|
2837
2837
|
(e) => {
|
|
2838
|
-
const
|
|
2838
|
+
const o = ie();
|
|
2839
2839
|
e.renderedRowsChangedCallback = () => {
|
|
2840
2840
|
var t;
|
|
2841
|
-
(t =
|
|
2841
|
+
(t = o == null ? void 0 : o.proxy) == null || t.$forceUpdate();
|
|
2842
2842
|
};
|
|
2843
2843
|
},
|
|
2844
2844
|
(e) => {
|
|
2845
2845
|
e.renderedRowsChangedCallback = () => {
|
|
2846
2846
|
};
|
|
2847
2847
|
}
|
|
2848
|
-
), (e,
|
|
2848
|
+
), (e, o) => {
|
|
2849
2849
|
const t = q("survey-string"), r = q("survey-matrixheaderrequired"), c = q("survey-matrixdropdown-cell");
|
|
2850
2850
|
return i(), u("div", {
|
|
2851
2851
|
style: S({ overflowX: e.question.showHorizontalScroll ? "scroll" : "" }),
|
|
@@ -2854,9 +2854,9 @@ const so = /* @__PURE__ */ h({
|
|
|
2854
2854
|
v("table", {
|
|
2855
2855
|
class: a(e.question.getTableCss())
|
|
2856
2856
|
}, [
|
|
2857
|
-
|
|
2857
|
+
n.value.showHeader ? (i(), u("thead", qo, [
|
|
2858
2858
|
v("tr", null, [
|
|
2859
|
-
(i(!0), u(_, null, D(
|
|
2859
|
+
(i(!0), u(_, null, D(n.value.headerRow.cells, (m) => (i(), u(_, null, [
|
|
2860
2860
|
m.hasTitle ? (i(), u("th", {
|
|
2861
2861
|
key: "header_" + m.id,
|
|
2862
2862
|
class: a(m.className),
|
|
@@ -2887,7 +2887,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2887
2887
|
])
|
|
2888
2888
|
])) : d("", !0),
|
|
2889
2889
|
v("tbody", null, [
|
|
2890
|
-
(i(!0), u(_, null, D(
|
|
2890
|
+
(i(!0), u(_, null, D(n.value.rows, (m) => (i(), u(_, {
|
|
2891
2891
|
key: e.question.inputId + "_" + m.id
|
|
2892
2892
|
}, [
|
|
2893
2893
|
m.visible ? (i(), u("tr", {
|
|
@@ -2904,9 +2904,9 @@ const so = /* @__PURE__ */ h({
|
|
|
2904
2904
|
], 42, go)) : d("", !0)
|
|
2905
2905
|
], 64))), 128))
|
|
2906
2906
|
]),
|
|
2907
|
-
|
|
2907
|
+
n.value.showFooter ? (i(), u("tfoot", ho, [
|
|
2908
2908
|
v("tr", null, [
|
|
2909
|
-
(i(!0), u(_, null, D(
|
|
2909
|
+
(i(!0), u(_, null, D(n.value.footerRow.cells, (m, p) => (i(), g(c, {
|
|
2910
2910
|
cell: m,
|
|
2911
2911
|
question: e.question,
|
|
2912
2912
|
key: "footer_" + p
|
|
@@ -2925,12 +2925,12 @@ const so = /* @__PURE__ */ h({
|
|
|
2925
2925
|
},
|
|
2926
2926
|
setup(l) {
|
|
2927
2927
|
const s = l;
|
|
2928
|
-
return B(() => s.column), (
|
|
2928
|
+
return B(() => s.column), (n, e) => n.column.isRenderedRequired ? (i(), u(_, { key: 0 }, [
|
|
2929
2929
|
bo,
|
|
2930
|
-
|
|
2930
|
+
n.column.isRenderedRequired ? (i(), u("span", {
|
|
2931
2931
|
key: 0,
|
|
2932
|
-
class: a(
|
|
2933
|
-
}, R(
|
|
2932
|
+
class: a(n.question.cssClasses.cellRequiredText)
|
|
2933
|
+
}, R(n.column.requiredText), 3)) : d("", !0)
|
|
2934
2934
|
], 64)) : d("", !0);
|
|
2935
2935
|
}
|
|
2936
2936
|
}), fo = ["data-responsive-title", "title", "colspan"], Io = /* @__PURE__ */ h({
|
|
@@ -2940,7 +2940,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2940
2940
|
cell: {}
|
|
2941
2941
|
},
|
|
2942
2942
|
setup(l) {
|
|
2943
|
-
const s = l,
|
|
2943
|
+
const s = l, n = $(!1), e = $(), o = () => s.cell.headers, t = () => !!s.cell.width || !!s.cell.minWidth ? { width: s.cell.width, minWidth: s.cell.minWidth } : null, r = () => n.value = s.cell.question.isVisible, c = (y) => re(y);
|
|
2944
2944
|
M(() => {
|
|
2945
2945
|
if (!s.cell.hasQuestion || !s.question || !s.question.survey)
|
|
2946
2946
|
return;
|
|
@@ -2985,7 +2985,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2985
2985
|
const b = q("survey-errors"), N = q("sv-matrix-drag-drop-icon"), k = q("sv-action-bar"), L = q("survey-radiogroup-item"), W = q("survey-checkbox-item"), V = q("survey-other-choice"), K = q("survey-string");
|
|
2986
2986
|
return i(), u("td", {
|
|
2987
2987
|
class: a(y.cell.className),
|
|
2988
|
-
"data-responsive-title":
|
|
2988
|
+
"data-responsive-title": o(),
|
|
2989
2989
|
title: y.cell.getTitle(),
|
|
2990
2990
|
style: S(t()),
|
|
2991
2991
|
colspan: y.cell.colSpans,
|
|
@@ -3051,7 +3051,7 @@ const so = /* @__PURE__ */ h({
|
|
|
3051
3051
|
question: y.cell.question
|
|
3052
3052
|
}, null, 8, ["question"])) : d("", !0)
|
|
3053
3053
|
], 2)), [
|
|
3054
|
-
[H,
|
|
3054
|
+
[H, n.value]
|
|
3055
3055
|
]) : d("", !0),
|
|
3056
3056
|
y.cell.hasTitle ? (i(), g(T(y.question.getCellWrapperComponentName(y.cell)), {
|
|
3057
3057
|
key: 5,
|
|
@@ -3079,77 +3079,77 @@ const so = /* @__PURE__ */ h({
|
|
|
3079
3079
|
question: {}
|
|
3080
3080
|
},
|
|
3081
3081
|
setup(l) {
|
|
3082
|
-
const s = l,
|
|
3083
|
-
A(s,
|
|
3082
|
+
const s = l, n = $(null);
|
|
3083
|
+
A(s, n);
|
|
3084
3084
|
const e = () => {
|
|
3085
3085
|
s.question.addRowUI();
|
|
3086
3086
|
};
|
|
3087
|
-
return (
|
|
3087
|
+
return (o, t) => {
|
|
3088
3088
|
const r = q("survey-string"), c = q("survey-matrixtable");
|
|
3089
3089
|
return i(), u("div", {
|
|
3090
3090
|
ref_key: "root",
|
|
3091
|
-
ref:
|
|
3091
|
+
ref: n
|
|
3092
3092
|
}, [
|
|
3093
|
-
|
|
3093
|
+
o.question.renderedTable.showAddRowOnTop ? (i(), u("div", {
|
|
3094
3094
|
key: 0,
|
|
3095
|
-
class: a(
|
|
3095
|
+
class: a(o.question.cssClasses.footer)
|
|
3096
3096
|
}, [
|
|
3097
3097
|
v("button", {
|
|
3098
3098
|
type: "button",
|
|
3099
|
-
class: a(
|
|
3099
|
+
class: a(o.question.getAddRowButtonCss()),
|
|
3100
3100
|
onClick: e
|
|
3101
3101
|
}, [
|
|
3102
3102
|
C(r, {
|
|
3103
|
-
locString:
|
|
3103
|
+
locString: o.question.locAddRowText
|
|
3104
3104
|
}, null, 8, ["locString"]),
|
|
3105
3105
|
v("span", {
|
|
3106
|
-
class: a(
|
|
3106
|
+
class: a(o.question.cssClasses.iconAdd)
|
|
3107
3107
|
}, null, 2)
|
|
3108
3108
|
], 2)
|
|
3109
3109
|
], 2)) : d("", !0),
|
|
3110
|
-
|
|
3110
|
+
o.question.renderedTable.showTable ? (i(), g(c, {
|
|
3111
3111
|
key: 1,
|
|
3112
|
-
question:
|
|
3112
|
+
question: o.question
|
|
3113
3113
|
}, null, 8, ["question"])) : d("", !0),
|
|
3114
|
-
|
|
3114
|
+
o.question.renderedTable.showTable ? d("", !0) : (i(), u("div", {
|
|
3115
3115
|
key: 2,
|
|
3116
|
-
class: a(
|
|
3116
|
+
class: a(o.question.cssClasses.emptyRowsSection)
|
|
3117
3117
|
}, [
|
|
3118
3118
|
v("div", {
|
|
3119
|
-
class: a(
|
|
3119
|
+
class: a(o.question.cssClasses.emptyRowsText)
|
|
3120
3120
|
}, [
|
|
3121
3121
|
C(r, {
|
|
3122
|
-
locString:
|
|
3122
|
+
locString: o.question.locEmptyRowsText
|
|
3123
3123
|
}, null, 8, ["locString"])
|
|
3124
3124
|
], 2),
|
|
3125
|
-
|
|
3125
|
+
o.question.renderedTable.showAddRow ? (i(), u("button", {
|
|
3126
3126
|
key: 0,
|
|
3127
3127
|
type: "button",
|
|
3128
|
-
class: a(
|
|
3128
|
+
class: a(o.question.getAddRowButtonCss(!0)),
|
|
3129
3129
|
onClick: e
|
|
3130
3130
|
}, [
|
|
3131
3131
|
C(r, {
|
|
3132
|
-
locString:
|
|
3132
|
+
locString: o.question.locAddRowText
|
|
3133
3133
|
}, null, 8, ["locString"]),
|
|
3134
3134
|
v("span", {
|
|
3135
|
-
class: a(
|
|
3135
|
+
class: a(o.question.cssClasses.iconAdd)
|
|
3136
3136
|
}, null, 2)
|
|
3137
3137
|
], 2)) : d("", !0)
|
|
3138
3138
|
], 2)),
|
|
3139
|
-
|
|
3139
|
+
o.question.renderedTable.showAddRowOnBottom ? (i(), u("div", {
|
|
3140
3140
|
key: 3,
|
|
3141
|
-
class: a(
|
|
3141
|
+
class: a(o.question.cssClasses.footer)
|
|
3142
3142
|
}, [
|
|
3143
3143
|
v("button", {
|
|
3144
3144
|
type: "button",
|
|
3145
|
-
class: a(
|
|
3145
|
+
class: a(o.question.getAddRowButtonCss()),
|
|
3146
3146
|
onClick: e
|
|
3147
3147
|
}, [
|
|
3148
3148
|
C(r, {
|
|
3149
|
-
locString:
|
|
3149
|
+
locString: o.question.locAddRowText
|
|
3150
3150
|
}, null, 8, ["locString"]),
|
|
3151
3151
|
v("span", {
|
|
3152
|
-
class: a(
|
|
3152
|
+
class: a(o.question.cssClasses.iconAdd)
|
|
3153
3153
|
}, null, 2)
|
|
3154
3154
|
], 2)
|
|
3155
3155
|
], 2)) : d("", !0)
|
|
@@ -3169,20 +3169,20 @@ const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
|
3169
3169
|
item: {}
|
|
3170
3170
|
},
|
|
3171
3171
|
setup(l) {
|
|
3172
|
-
const s = l, { question:
|
|
3173
|
-
return (
|
|
3172
|
+
const s = l, { question: n, row: e } = ae(s);
|
|
3173
|
+
return (o, t) => {
|
|
3174
3174
|
const r = q("survey-string");
|
|
3175
3175
|
return i(), u("button", {
|
|
3176
3176
|
type: "button",
|
|
3177
|
-
class: a(I(
|
|
3178
|
-
disabled: I(
|
|
3179
|
-
onClick: t[0] || (t[0] = () => I(
|
|
3177
|
+
class: a(I(n).getRemoveRowButtonCss()),
|
|
3178
|
+
disabled: I(n).isInputReadOnly,
|
|
3179
|
+
onClick: t[0] || (t[0] = () => I(n).removeRowUI(I(e)))
|
|
3180
3180
|
}, [
|
|
3181
3181
|
C(r, {
|
|
3182
|
-
locString: I(
|
|
3182
|
+
locString: I(n).locRemoveRowText
|
|
3183
3183
|
}, null, 8, ["locString"]),
|
|
3184
3184
|
v("span", {
|
|
3185
|
-
class: a(I(
|
|
3185
|
+
class: a(I(n).cssClasses.iconRemove)
|
|
3186
3186
|
}, null, 2)
|
|
3187
3187
|
], 10, So);
|
|
3188
3188
|
};
|
|
@@ -3193,17 +3193,17 @@ const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
|
3193
3193
|
item: {}
|
|
3194
3194
|
},
|
|
3195
3195
|
setup(l) {
|
|
3196
|
-
const s = l, { question:
|
|
3197
|
-
return (e,
|
|
3196
|
+
const s = l, { question: n } = ae(s, !1);
|
|
3197
|
+
return (e, o) => I(n).iconDragElement ? (i(), u("svg", {
|
|
3198
3198
|
key: 0,
|
|
3199
|
-
class: a(I(
|
|
3199
|
+
class: a(I(n).cssClasses.dragElementDecorator)
|
|
3200
3200
|
}, [
|
|
3201
3201
|
v("use", {
|
|
3202
|
-
"xlink:href": I(
|
|
3202
|
+
"xlink:href": I(n).iconDragElement
|
|
3203
3203
|
}, null, 8, To)
|
|
3204
3204
|
], 2)) : (i(), u("span", {
|
|
3205
3205
|
key: 1,
|
|
3206
|
-
class: a(I(
|
|
3206
|
+
class: a(I(n).cssClasses.iconDrag)
|
|
3207
3207
|
}, null, 2));
|
|
3208
3208
|
}
|
|
3209
3209
|
}), _o = ["aria-expanded", "aria-controls"], Do = /* @__PURE__ */ h({
|
|
@@ -3212,19 +3212,19 @@ const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
|
3212
3212
|
item: {}
|
|
3213
3213
|
},
|
|
3214
3214
|
setup(l) {
|
|
3215
|
-
const s = l, { question:
|
|
3216
|
-
return (
|
|
3215
|
+
const s = l, { question: n, row: e } = ae(s);
|
|
3216
|
+
return (o, t) => {
|
|
3217
3217
|
const r = q("sv-svg-icon");
|
|
3218
3218
|
return i(), u("button", {
|
|
3219
3219
|
type: "button",
|
|
3220
|
-
class: a(I(
|
|
3220
|
+
class: a(I(n).getDetailPanelButtonCss(I(e))),
|
|
3221
3221
|
onClick: t[0] || (t[0] = () => I(e).showHideDetailPanelClick()),
|
|
3222
|
-
"aria-expanded": I(
|
|
3223
|
-
"aria-controls": I(
|
|
3222
|
+
"aria-expanded": I(n).getIsDetailPanelShowing(I(e)) ? "true" : "false",
|
|
3223
|
+
"aria-controls": I(n).getIsDetailPanelShowing(I(e)) ? I(e).detailPanelId : null
|
|
3224
3224
|
}, [
|
|
3225
3225
|
C(r, {
|
|
3226
|
-
class: a(I(
|
|
3227
|
-
iconName: I(
|
|
3226
|
+
class: a(I(n).getDetailPanelIconCss(I(e))),
|
|
3227
|
+
iconName: I(n).getDetailPanelIconId(I(e)),
|
|
3228
3228
|
size: "auto"
|
|
3229
3229
|
}, null, 8, ["class", "iconName"])
|
|
3230
3230
|
], 10, _o);
|
|
@@ -3238,10 +3238,10 @@ const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
|
3238
3238
|
css: {}
|
|
3239
3239
|
},
|
|
3240
3240
|
setup(l) {
|
|
3241
|
-
const s = l,
|
|
3241
|
+
const s = l, n = $(null), e = ie();
|
|
3242
3242
|
A(
|
|
3243
3243
|
s,
|
|
3244
|
-
|
|
3244
|
+
n,
|
|
3245
3245
|
(m) => {
|
|
3246
3246
|
m.panelCountChangedCallback = () => {
|
|
3247
3247
|
var p;
|
|
@@ -3261,7 +3261,7 @@ const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
|
3261
3261
|
};
|
|
3262
3262
|
}
|
|
3263
3263
|
);
|
|
3264
|
-
const
|
|
3264
|
+
const o = w(() => {
|
|
3265
3265
|
if (s.question.isRenderModeList)
|
|
3266
3266
|
return s.question.panels;
|
|
3267
3267
|
const m = [];
|
|
@@ -3290,7 +3290,7 @@ const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
|
3290
3290
|
return i(), u("div", {
|
|
3291
3291
|
class: a(m.question.cssClasses.root),
|
|
3292
3292
|
ref_key: "root",
|
|
3293
|
-
ref:
|
|
3293
|
+
ref: n
|
|
3294
3294
|
}, [
|
|
3295
3295
|
m.question.getShowNoEntriesPlaceholder() ? (i(), u("div", {
|
|
3296
3296
|
key: 0,
|
|
@@ -3319,7 +3319,7 @@ const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
|
3319
3319
|
key: 2,
|
|
3320
3320
|
question: m.question
|
|
3321
3321
|
}, null, 8, ["question"])) : d("", !0),
|
|
3322
|
-
(i(!0), u(_, null, D(
|
|
3322
|
+
(i(!0), u(_, null, D(o.value, (L, W) => (i(), u(_, {
|
|
3323
3323
|
key: L.id
|
|
3324
3324
|
}, [
|
|
3325
3325
|
v("div", {
|
|
@@ -3357,15 +3357,15 @@ const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
|
3357
3357
|
question: {}
|
|
3358
3358
|
},
|
|
3359
3359
|
setup(l) {
|
|
3360
|
-
const s = l,
|
|
3361
|
-
return (e,
|
|
3360
|
+
const s = l, n = () => s.question.isProgressTopShowing ? s.question.cssClasses.progressTop : s.question.cssClasses.progressBottom;
|
|
3361
|
+
return (e, o) => {
|
|
3362
3362
|
const t = q("sv-paneldynamic-prev-btn"), r = q("sv-paneldynamic-next-btn"), c = q("sv-paneldynamic-add-btn"), m = q("sv-paneldynamic-progress-text");
|
|
3363
3363
|
return i(), u("div", {
|
|
3364
|
-
class: a(
|
|
3364
|
+
class: a(n())
|
|
3365
3365
|
}, [
|
|
3366
3366
|
v("div", {
|
|
3367
3367
|
style: { clear: "both" },
|
|
3368
|
-
class: a(
|
|
3368
|
+
class: a(n())
|
|
3369
3369
|
}, [
|
|
3370
3370
|
v("div", {
|
|
3371
3371
|
class: a(e.question.cssClasses.progressContainer)
|
|
@@ -3403,7 +3403,7 @@ const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
|
3403
3403
|
question: {}
|
|
3404
3404
|
},
|
|
3405
3405
|
setup(l) {
|
|
3406
|
-
return (s,
|
|
3406
|
+
return (s, n) => {
|
|
3407
3407
|
const e = q("sv-action-bar");
|
|
3408
3408
|
return s.question.cssClasses.footer ? (i(), u("div", {
|
|
3409
3409
|
key: 0,
|
|
@@ -3446,22 +3446,22 @@ const Po = /* @__PURE__ */ h({
|
|
|
3446
3446
|
data: {}
|
|
3447
3447
|
},
|
|
3448
3448
|
setup(l) {
|
|
3449
|
-
const
|
|
3450
|
-
|
|
3449
|
+
const n = Y(l), e = () => {
|
|
3450
|
+
n.value.addPanelUI();
|
|
3451
3451
|
};
|
|
3452
|
-
return (
|
|
3452
|
+
return (o, t) => {
|
|
3453
3453
|
const r = q("survey-string");
|
|
3454
|
-
return I(
|
|
3454
|
+
return I(n).canAddPanel ? (i(), u("button", {
|
|
3455
3455
|
key: 0,
|
|
3456
3456
|
type: "button",
|
|
3457
|
-
class: a(I(
|
|
3457
|
+
class: a(I(n).getAddButtonCss()),
|
|
3458
3458
|
onClick: e
|
|
3459
3459
|
}, [
|
|
3460
3460
|
v("span", {
|
|
3461
|
-
class: a(I(
|
|
3461
|
+
class: a(I(n).cssClasses.buttonAddText)
|
|
3462
3462
|
}, [
|
|
3463
3463
|
C(r, {
|
|
3464
|
-
locString: I(
|
|
3464
|
+
locString: I(n).locPanelAddText
|
|
3465
3465
|
}, null, 8, ["locString"])
|
|
3466
3466
|
], 2)
|
|
3467
3467
|
], 2)) : d("", !0);
|
|
@@ -3474,18 +3474,18 @@ const Po = /* @__PURE__ */ h({
|
|
|
3474
3474
|
data: {}
|
|
3475
3475
|
},
|
|
3476
3476
|
setup(l) {
|
|
3477
|
-
const
|
|
3478
|
-
|
|
3477
|
+
const n = Y(l), e = () => {
|
|
3478
|
+
n.value.goToNextPanel();
|
|
3479
3479
|
};
|
|
3480
|
-
return (
|
|
3480
|
+
return (o, t) => {
|
|
3481
3481
|
const r = q("sv-svg-icon");
|
|
3482
3482
|
return i(), u("div", {
|
|
3483
|
-
title: I(
|
|
3483
|
+
title: I(n).panelNextText,
|
|
3484
3484
|
onClick: e,
|
|
3485
|
-
class: a(I(
|
|
3485
|
+
class: a(I(n).getNextButtonCss())
|
|
3486
3486
|
}, [
|
|
3487
3487
|
C(r, {
|
|
3488
|
-
iconName: I(
|
|
3488
|
+
iconName: I(n).cssClasses.progressBtnIcon,
|
|
3489
3489
|
size: "auto"
|
|
3490
3490
|
}, null, 8, ["iconName"])
|
|
3491
3491
|
], 10, Ao);
|
|
@@ -3498,18 +3498,18 @@ const Po = /* @__PURE__ */ h({
|
|
|
3498
3498
|
data: {}
|
|
3499
3499
|
},
|
|
3500
3500
|
setup(l) {
|
|
3501
|
-
const
|
|
3502
|
-
|
|
3501
|
+
const n = Y(l), e = () => {
|
|
3502
|
+
n.value.goToPrevPanel();
|
|
3503
3503
|
};
|
|
3504
|
-
return (
|
|
3504
|
+
return (o, t) => {
|
|
3505
3505
|
const r = q("sv-svg-icon");
|
|
3506
3506
|
return i(), u("div", {
|
|
3507
|
-
title: I(
|
|
3507
|
+
title: I(n).panelPrevText,
|
|
3508
3508
|
onClick: e,
|
|
3509
|
-
class: a(I(
|
|
3509
|
+
class: a(I(n).getPrevButtonCss())
|
|
3510
3510
|
}, [
|
|
3511
3511
|
C(r, {
|
|
3512
|
-
iconName: I(
|
|
3512
|
+
iconName: I(n).cssClasses.progressBtnIcon,
|
|
3513
3513
|
size: "auto"
|
|
3514
3514
|
}, null, 8, ["iconName"])
|
|
3515
3515
|
], 10, Ho);
|
|
@@ -3522,27 +3522,27 @@ const Po = /* @__PURE__ */ h({
|
|
|
3522
3522
|
data: {}
|
|
3523
3523
|
},
|
|
3524
3524
|
setup(l) {
|
|
3525
|
-
const s = l,
|
|
3525
|
+
const s = l, n = Y(s), e = w(
|
|
3526
3526
|
() => s.item && s.item.data.panel || s.data.panel
|
|
3527
|
-
),
|
|
3528
|
-
|
|
3527
|
+
), o = (t) => {
|
|
3528
|
+
n.value.isInputReadOnly || n.value.removePanelUI(t);
|
|
3529
3529
|
};
|
|
3530
3530
|
return (t, r) => {
|
|
3531
3531
|
const c = q("survey-string");
|
|
3532
3532
|
return i(), u("button", {
|
|
3533
3533
|
type: "button",
|
|
3534
|
-
class: a(I(
|
|
3535
|
-
onClick: r[0] || (r[0] = (m) =>
|
|
3534
|
+
class: a(I(n).getPanelRemoveButtonCss()),
|
|
3535
|
+
onClick: r[0] || (r[0] = (m) => o(e.value))
|
|
3536
3536
|
}, [
|
|
3537
3537
|
v("span", {
|
|
3538
|
-
class: a(I(
|
|
3538
|
+
class: a(I(n).cssClasses.buttonRemoveText)
|
|
3539
3539
|
}, [
|
|
3540
3540
|
C(c, {
|
|
3541
|
-
locString: I(
|
|
3541
|
+
locString: I(n).locPanelRemoveText
|
|
3542
3542
|
}, null, 8, ["locString"])
|
|
3543
3543
|
], 2),
|
|
3544
3544
|
v("span", {
|
|
3545
|
-
class: a(I(
|
|
3545
|
+
class: a(I(n).cssClasses.iconRemove)
|
|
3546
3546
|
}, null, 2)
|
|
3547
3547
|
], 2);
|
|
3548
3548
|
};
|
|
@@ -3554,10 +3554,10 @@ const Po = /* @__PURE__ */ h({
|
|
|
3554
3554
|
data: {}
|
|
3555
3555
|
},
|
|
3556
3556
|
setup(l) {
|
|
3557
|
-
const
|
|
3558
|
-
return (e,
|
|
3559
|
-
class: a(I(
|
|
3560
|
-
}, R(I(
|
|
3557
|
+
const n = Y(l);
|
|
3558
|
+
return (e, o) => (i(), u("div", {
|
|
3559
|
+
class: a(I(n).cssClasses.progressText)
|
|
3560
|
+
}, R(I(n).progressText), 3));
|
|
3561
3561
|
}
|
|
3562
3562
|
}), Fo = ["id"], Oo = /* @__PURE__ */ h({
|
|
3563
3563
|
__name: "Errors",
|
|
@@ -3567,32 +3567,32 @@ const Po = /* @__PURE__ */ h({
|
|
|
3567
3567
|
},
|
|
3568
3568
|
setup(l) {
|
|
3569
3569
|
const s = $();
|
|
3570
|
-
return (
|
|
3571
|
-
const
|
|
3572
|
-
return
|
|
3570
|
+
return (n, e) => {
|
|
3571
|
+
const o = q("survey-string");
|
|
3572
|
+
return n.element.hasVisibleErrors ? (i(), u("div", {
|
|
3573
3573
|
key: 0,
|
|
3574
3574
|
role: "alert",
|
|
3575
3575
|
"aria-live": "polite",
|
|
3576
|
-
class: a(
|
|
3577
|
-
id:
|
|
3576
|
+
class: a(n.element.cssError),
|
|
3577
|
+
id: n.element.id + "_errors",
|
|
3578
3578
|
ref_key: "root",
|
|
3579
3579
|
ref: s
|
|
3580
3580
|
}, [
|
|
3581
|
-
(i(!0), u(_, null, D(
|
|
3581
|
+
(i(!0), u(_, null, D(n.element.errors, (t, r) => (i(), u("div", {
|
|
3582
3582
|
key: "error_" + r
|
|
3583
3583
|
}, [
|
|
3584
3584
|
v("span", {
|
|
3585
3585
|
class: a(
|
|
3586
|
-
|
|
3586
|
+
n.element.cssClasses ? n.element.cssClasses.error.icon || void 0 : "panel-error-icon"
|
|
3587
3587
|
),
|
|
3588
3588
|
"aria-hidden": "true"
|
|
3589
3589
|
}, null, 2),
|
|
3590
3590
|
v("span", {
|
|
3591
3591
|
class: a(
|
|
3592
|
-
|
|
3592
|
+
n.element.cssClasses ? n.element.cssClasses.error.item || void 0 : "panel-error-item"
|
|
3593
3593
|
)
|
|
3594
3594
|
}, [
|
|
3595
|
-
C(
|
|
3595
|
+
C(o, {
|
|
3596
3596
|
locString: t.locText
|
|
3597
3597
|
}, null, 8, ["locString"])
|
|
3598
3598
|
], 2)
|
|
@@ -3606,7 +3606,7 @@ const Po = /* @__PURE__ */ h({
|
|
|
3606
3606
|
question: {}
|
|
3607
3607
|
},
|
|
3608
3608
|
setup(l) {
|
|
3609
|
-
return (s,
|
|
3609
|
+
return (s, n) => s.question.isReadOnlyRenderDiv() ? (i(), u("div", zo, R(s.question.comment), 1)) : (i(), u("textarea", {
|
|
3610
3610
|
key: 1,
|
|
3611
3611
|
id: s.question.commentId,
|
|
3612
3612
|
readonly: s.question.isInputReadOnly,
|
|
@@ -3618,10 +3618,10 @@ const Po = /* @__PURE__ */ h({
|
|
|
3618
3618
|
"aria-label": s.question.ariaLabel || s.question.a11y_input_ariaLabel,
|
|
3619
3619
|
"aria-required": s.question.ariaRequired || s.question.a11y_input_ariaRequired,
|
|
3620
3620
|
style: S({ resize: s.question.resizeStyle }),
|
|
3621
|
-
onChange:
|
|
3621
|
+
onChange: n[0] || (n[0] = (e) => {
|
|
3622
3622
|
s.question.onCommentChange(e);
|
|
3623
3623
|
}),
|
|
3624
|
-
onInput:
|
|
3624
|
+
onInput: n[1] || (n[1] = (e) => {
|
|
3625
3625
|
s.question.onCommentInput(e);
|
|
3626
3626
|
})
|
|
3627
3627
|
}, null, 46, Uo));
|
|
@@ -3633,33 +3633,33 @@ const Po = /* @__PURE__ */ h({
|
|
|
3633
3633
|
css: {}
|
|
3634
3634
|
},
|
|
3635
3635
|
setup(l) {
|
|
3636
|
-
const s = (
|
|
3637
|
-
ge(
|
|
3636
|
+
const s = (n) => {
|
|
3637
|
+
ge(n);
|
|
3638
3638
|
};
|
|
3639
|
-
return (
|
|
3640
|
-
const
|
|
3641
|
-
return
|
|
3639
|
+
return (n, e) => {
|
|
3640
|
+
const o = q("survey-element-title-content"), t = q("sv-title-actions");
|
|
3641
|
+
return n.element.hasTitle ? (i(), g(T(n.element.titleTagName), {
|
|
3642
3642
|
key: 0,
|
|
3643
|
-
class: a(
|
|
3644
|
-
"aria-label":
|
|
3645
|
-
id:
|
|
3646
|
-
tabindex:
|
|
3647
|
-
"aria-expanded":
|
|
3648
|
-
role:
|
|
3643
|
+
class: a(n.element.cssTitle),
|
|
3644
|
+
"aria-label": n.element.titleAriaLabel,
|
|
3645
|
+
id: n.element.ariaTitleId,
|
|
3646
|
+
tabindex: n.element.titleTabIndex,
|
|
3647
|
+
"aria-expanded": n.element.titleAriaExpanded,
|
|
3648
|
+
role: n.element.titleAriaRole,
|
|
3649
3649
|
onKeyup: e[0] || (e[0] = (r) => {
|
|
3650
3650
|
s(r);
|
|
3651
3651
|
})
|
|
3652
3652
|
}, {
|
|
3653
3653
|
default: F(() => [
|
|
3654
|
-
|
|
3654
|
+
n.element.hasTitleActions ? d("", !0) : (i(), g(o, {
|
|
3655
3655
|
key: 0,
|
|
3656
|
-
element:
|
|
3657
|
-
css:
|
|
3656
|
+
element: n.element,
|
|
3657
|
+
css: n.css
|
|
3658
3658
|
}, null, 8, ["element", "css"])),
|
|
3659
|
-
|
|
3659
|
+
n.element.hasTitleActions ? (i(), g(t, {
|
|
3660
3660
|
key: 1,
|
|
3661
|
-
element:
|
|
3662
|
-
css:
|
|
3661
|
+
element: n.element,
|
|
3662
|
+
css: n.css
|
|
3663
3663
|
}, null, 8, ["element", "css"])) : d("", !0)
|
|
3664
3664
|
]),
|
|
3665
3665
|
_: 1
|
|
@@ -3674,41 +3674,44 @@ const Po = /* @__PURE__ */ h({
|
|
|
3674
3674
|
css: {}
|
|
3675
3675
|
},
|
|
3676
3676
|
setup(l) {
|
|
3677
|
-
|
|
3678
|
-
|
|
3677
|
+
const s = l, n = w(
|
|
3678
|
+
() => (s.element.isPanel ? s.element.cssClasses.panel : s.element.cssClasses) || {}
|
|
3679
|
+
);
|
|
3680
|
+
return (e, o) => {
|
|
3681
|
+
const t = q("survey-string");
|
|
3679
3682
|
return i(), u(_, null, [
|
|
3680
|
-
|
|
3683
|
+
e.element.isTitleRenderedAsString ? (i(), g(t, {
|
|
3681
3684
|
key: 0,
|
|
3682
|
-
locString:
|
|
3685
|
+
locString: e.element.locTitle
|
|
3683
3686
|
}, null, 8, ["locString"])) : d("", !0),
|
|
3684
|
-
!
|
|
3687
|
+
!e.element.isTitleRenderedAsString && e.element.isRequireTextOnStart ? (i(), u("span", {
|
|
3685
3688
|
key: 1,
|
|
3686
|
-
class: a(
|
|
3689
|
+
class: a(n.value.requiredText),
|
|
3687
3690
|
"aria-hidden": !0
|
|
3688
|
-
}, R(
|
|
3689
|
-
!
|
|
3691
|
+
}, R(e.element.requiredText), 3)) : d("", !0),
|
|
3692
|
+
!e.element.isTitleRenderedAsString && e.element.no ? (i(), u("span", {
|
|
3690
3693
|
key: 2,
|
|
3691
3694
|
style: { position: "static" },
|
|
3692
|
-
class: a(
|
|
3695
|
+
class: a(e.element.cssTitleNumber),
|
|
3693
3696
|
"aria-hidden": !0
|
|
3694
|
-
}, R(
|
|
3695
|
-
!
|
|
3696
|
-
!
|
|
3697
|
+
}, R(e.element.no), 3)) : d("", !0),
|
|
3698
|
+
!e.element.isTitleRenderedAsString && e.element.no ? (i(), u("span", Qo, "\xA0")) : d("", !0),
|
|
3699
|
+
!e.element.isTitleRenderedAsString && e.element.isRequireTextBeforeTitle ? (i(), u("span", {
|
|
3697
3700
|
key: 4,
|
|
3698
|
-
class: a(
|
|
3701
|
+
class: a(n.value.requiredText),
|
|
3699
3702
|
"aria-hidden": !0
|
|
3700
|
-
}, R(
|
|
3701
|
-
!
|
|
3702
|
-
|
|
3703
|
+
}, R(e.element.requiredText), 3)) : d("", !0),
|
|
3704
|
+
!e.element.isTitleRenderedAsString && e.element.isRequireTextBeforeTitle ? (i(), u("span", Go, "\xA0")) : d("", !0),
|
|
3705
|
+
e.element.isTitleRenderedAsString ? d("", !0) : (i(), g(t, {
|
|
3703
3706
|
key: 6,
|
|
3704
|
-
locString:
|
|
3707
|
+
locString: e.element.locTitle
|
|
3705
3708
|
}, null, 8, ["locString"])),
|
|
3706
|
-
!
|
|
3707
|
-
!
|
|
3709
|
+
!e.element.isTitleRenderedAsString && e.element.isRequireTextAfterTitle ? (i(), u("span", Jo, "\xA0")) : d("", !0),
|
|
3710
|
+
!e.element.isTitleRenderedAsString && e.element.isRequireTextAfterTitle ? (i(), u("span", {
|
|
3708
3711
|
key: 8,
|
|
3709
|
-
class: a(
|
|
3712
|
+
class: a(n.value.requiredText),
|
|
3710
3713
|
"aria-hidden": !0
|
|
3711
|
-
}, R(
|
|
3714
|
+
}, R(e.element.requiredText), 3)) : d("", !0)
|
|
3712
3715
|
], 64);
|
|
3713
3716
|
};
|
|
3714
3717
|
}
|
|
@@ -3719,8 +3722,8 @@ const Po = /* @__PURE__ */ h({
|
|
|
3719
3722
|
css: {}
|
|
3720
3723
|
},
|
|
3721
3724
|
setup(l) {
|
|
3722
|
-
const s = l,
|
|
3723
|
-
return (e,
|
|
3725
|
+
const s = l, n = w(() => s.element.getTitleToolbar());
|
|
3726
|
+
return (e, o) => {
|
|
3724
3727
|
const t = q("survey-string"), r = q("survey-element-title-content"), c = q("sv-action-bar");
|
|
3725
3728
|
return i(), u("div", Yo, [
|
|
3726
3729
|
v("span", Zo, [
|
|
@@ -3734,15 +3737,15 @@ const Po = /* @__PURE__ */ h({
|
|
|
3734
3737
|
css: e.css
|
|
3735
3738
|
}, null, 8, ["element", "css"]))
|
|
3736
3739
|
]),
|
|
3737
|
-
C(c, { model:
|
|
3740
|
+
C(c, { model: n.value }, null, 8, ["model"])
|
|
3738
3741
|
]);
|
|
3739
3742
|
};
|
|
3740
3743
|
}
|
|
3741
3744
|
}), Ce = (l, s) => {
|
|
3742
|
-
const
|
|
3743
|
-
for (const [e,
|
|
3744
|
-
|
|
3745
|
-
return
|
|
3745
|
+
const n = l.__vccOpts || l;
|
|
3746
|
+
for (const [e, o] of s)
|
|
3747
|
+
n[e] = o;
|
|
3748
|
+
return n;
|
|
3746
3749
|
}, et = {}, st = { class: "sv-brand-info" }, nt = /* @__PURE__ */ Se('<a class="sv-brand-info__logo" href="https://surveyjs.io/?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=landing_page"><img src="https://surveyjs.io/Content/Images/poweredby.svg"></a><div class="sv-brand-info__text"> Try and see how easy it is to <a href="https://surveyjs.io/create-survey?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=create_survey">create a survey</a></div><div class="sv-brand-info__terms"><a href="https://surveyjs.io/TermsOfUse">Terms of Use & Privacy Statement</a></div>', 3), ot = [
|
|
3747
3750
|
nt
|
|
3748
3751
|
];
|
|
@@ -3761,13 +3764,13 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
3761
3764
|
title: {}
|
|
3762
3765
|
},
|
|
3763
3766
|
setup(l) {
|
|
3764
|
-
const s = l,
|
|
3767
|
+
const s = l, n = $(), e = () => {
|
|
3765
3768
|
Pe(
|
|
3766
3769
|
s.size,
|
|
3767
3770
|
s.width,
|
|
3768
3771
|
s.height,
|
|
3769
3772
|
s.iconName,
|
|
3770
|
-
|
|
3773
|
+
n.value,
|
|
3771
3774
|
s.title
|
|
3772
3775
|
);
|
|
3773
3776
|
};
|
|
@@ -3775,9 +3778,9 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
3775
3778
|
e();
|
|
3776
3779
|
}), M(() => {
|
|
3777
3780
|
e();
|
|
3778
|
-
}), (
|
|
3781
|
+
}), (o, t) => (i(), u("svg", {
|
|
3779
3782
|
ref_key: "svgIconElement",
|
|
3780
|
-
ref:
|
|
3783
|
+
ref: n,
|
|
3781
3784
|
class: "sv-svg-icon",
|
|
3782
3785
|
role: "img"
|
|
3783
3786
|
}, lt, 512));
|
|
@@ -3790,13 +3793,13 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
3790
3793
|
handleClick: { type: Boolean, default: !0 }
|
|
3791
3794
|
},
|
|
3792
3795
|
setup(l) {
|
|
3793
|
-
const s = l,
|
|
3796
|
+
const s = l, n = $(null), e = (t) => {
|
|
3794
3797
|
s.handleClick && t.stopPropagation();
|
|
3795
3798
|
};
|
|
3796
3799
|
B(() => s.model);
|
|
3797
|
-
const
|
|
3800
|
+
const o = le(() => s.model.renderedActions);
|
|
3798
3801
|
return M(() => {
|
|
3799
|
-
!s.model.hasActions || s.model.initResponsivityManager(
|
|
3802
|
+
!s.model.hasActions || s.model.initResponsivityManager(n.value);
|
|
3800
3803
|
}), U(() => {
|
|
3801
3804
|
s.model.resetResponsivityManager();
|
|
3802
3805
|
}), (t, r) => {
|
|
@@ -3804,11 +3807,11 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
3804
3807
|
return t.model.hasActions ? (i(), u("div", {
|
|
3805
3808
|
key: 0,
|
|
3806
3809
|
ref_key: "root",
|
|
3807
|
-
ref:
|
|
3810
|
+
ref: n,
|
|
3808
3811
|
class: a(t.model.getRootCss()),
|
|
3809
3812
|
onClick: e
|
|
3810
3813
|
}, [
|
|
3811
|
-
(i(!0), u(_, null, D(I(
|
|
3814
|
+
(i(!0), u(_, null, D(I(o), (m) => (i(), g(c, {
|
|
3812
3815
|
key: m.id,
|
|
3813
3816
|
item: m
|
|
3814
3817
|
}, null, 8, ["item"]))), 128))
|
|
@@ -3821,10 +3824,10 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
3821
3824
|
item: {}
|
|
3822
3825
|
},
|
|
3823
3826
|
setup(l) {
|
|
3824
|
-
const s = l,
|
|
3827
|
+
const s = l, n = w(
|
|
3825
3828
|
() => s.item.component || "sv-action-bar-item"
|
|
3826
3829
|
);
|
|
3827
|
-
return B(() => s.item), (e,
|
|
3830
|
+
return B(() => s.item), (e, o) => {
|
|
3828
3831
|
const t = q("sv-action-bar-separator");
|
|
3829
3832
|
return i(), u("div", {
|
|
3830
3833
|
class: a(e.item.getActionRootCss()),
|
|
@@ -3832,7 +3835,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
3832
3835
|
}, [
|
|
3833
3836
|
v("div", mt, [
|
|
3834
3837
|
e.item.needSeparator ? (i(), g(t, { key: 0 })) : d("", !0),
|
|
3835
|
-
(i(), g(T(
|
|
3838
|
+
(i(), g(T(n.value), { item: e.item }, null, 8, ["item"]))
|
|
3836
3839
|
])
|
|
3837
3840
|
], 10, dt);
|
|
3838
3841
|
};
|
|
@@ -3847,36 +3850,36 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
3847
3850
|
},
|
|
3848
3851
|
setup(l) {
|
|
3849
3852
|
const s = l;
|
|
3850
|
-
return B(() => s.item), (
|
|
3851
|
-
const
|
|
3853
|
+
return B(() => s.item), (n, e) => {
|
|
3854
|
+
const o = q("sv-svg-icon"), t = X("key2click");
|
|
3852
3855
|
return P((i(), u("button", {
|
|
3853
|
-
class: a(
|
|
3856
|
+
class: a(n.item.getActionBarItemCss()),
|
|
3854
3857
|
type: "button",
|
|
3855
3858
|
onClick: e[0] || (e[0] = (r) => {
|
|
3856
|
-
|
|
3859
|
+
n.item.action(n.item, !!r.pointerType);
|
|
3857
3860
|
}),
|
|
3858
3861
|
onKeyup: e[1] || (e[1] = (r) => {
|
|
3859
3862
|
r.stopPropagation();
|
|
3860
3863
|
}),
|
|
3861
|
-
disabled:
|
|
3862
|
-
title:
|
|
3863
|
-
"aria-checked":
|
|
3864
|
-
"aria-expanded":
|
|
3865
|
-
role:
|
|
3864
|
+
disabled: n.item.disabled,
|
|
3865
|
+
title: n.item.tooltip || n.item.title,
|
|
3866
|
+
"aria-checked": n.item.ariaChecked,
|
|
3867
|
+
"aria-expanded": n.item.ariaExpanded,
|
|
3868
|
+
role: n.item.ariaRole
|
|
3866
3869
|
}, [
|
|
3867
|
-
|
|
3870
|
+
n.item.iconName ? (i(), g(o, {
|
|
3868
3871
|
key: 0,
|
|
3869
|
-
class: a(
|
|
3870
|
-
iconName:
|
|
3871
|
-
size:
|
|
3872
|
-
title:
|
|
3872
|
+
class: a(n.item.cssClasses.itemIcon),
|
|
3873
|
+
iconName: n.item.iconName,
|
|
3874
|
+
size: n.item.iconSize,
|
|
3875
|
+
title: n.item.tooltip || n.item.title
|
|
3873
3876
|
}, null, 8, ["class", "iconName", "size", "title"])) : d("", !0),
|
|
3874
|
-
|
|
3877
|
+
n.item.hasTitle ? (i(), u("span", {
|
|
3875
3878
|
key: 1,
|
|
3876
|
-
class: a(
|
|
3877
|
-
}, R(
|
|
3879
|
+
class: a(n.item.getActionBarItemTitleCss())
|
|
3880
|
+
}, R(n.item.title), 3)) : d("", !0)
|
|
3878
3881
|
], 42, pt)), [
|
|
3879
|
-
[t, { processEsc: !1, disableTabStop:
|
|
3882
|
+
[t, { processEsc: !1, disableTabStop: n.item.disableTabStop }]
|
|
3880
3883
|
]);
|
|
3881
3884
|
};
|
|
3882
3885
|
}
|
|
@@ -3889,49 +3892,49 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
3889
3892
|
item: {}
|
|
3890
3893
|
},
|
|
3891
3894
|
setup(l) {
|
|
3892
|
-
const s = l,
|
|
3895
|
+
const s = l, n = Me;
|
|
3893
3896
|
let e;
|
|
3894
3897
|
return B(
|
|
3895
3898
|
() => s.item,
|
|
3896
|
-
(
|
|
3897
|
-
e = new Ae(
|
|
3899
|
+
(o) => {
|
|
3900
|
+
e = new Ae(o);
|
|
3898
3901
|
},
|
|
3899
3902
|
() => {
|
|
3900
3903
|
e.dispose();
|
|
3901
3904
|
}
|
|
3902
|
-
), (
|
|
3905
|
+
), (o, t) => {
|
|
3903
3906
|
const r = q("sv-svg-icon"), c = q("sv-popup"), m = X("key2click");
|
|
3904
3907
|
return i(), u(_, null, [
|
|
3905
3908
|
P((i(), u("button", {
|
|
3906
3909
|
type: "button",
|
|
3907
|
-
class: a(
|
|
3910
|
+
class: a(o.item.getActionBarItemCss()),
|
|
3908
3911
|
onClick: t[0] || (t[0] = (p) => {
|
|
3909
|
-
|
|
3912
|
+
o.item.action(o.item, !!p.pointerType);
|
|
3910
3913
|
}),
|
|
3911
3914
|
onKeyup: t[1] || (t[1] = (p) => {
|
|
3912
3915
|
p.stopPropagation();
|
|
3913
3916
|
}),
|
|
3914
|
-
disabled:
|
|
3915
|
-
title:
|
|
3916
|
-
role:
|
|
3917
|
+
disabled: o.item.disabled,
|
|
3918
|
+
title: o.item.tooltip || o.item.title,
|
|
3919
|
+
role: o.item.ariaRole
|
|
3917
3920
|
}, [
|
|
3918
|
-
|
|
3921
|
+
o.item.iconName ? (i(), g(r, {
|
|
3919
3922
|
key: 0,
|
|
3920
|
-
class: a(
|
|
3921
|
-
iconName:
|
|
3922
|
-
size:
|
|
3923
|
-
title:
|
|
3923
|
+
class: a(o.item.cssClasses.itemIcon),
|
|
3924
|
+
iconName: o.item.iconName,
|
|
3925
|
+
size: o.item.iconSize,
|
|
3926
|
+
title: o.item.tooltip || o.item.title
|
|
3924
3927
|
}, null, 8, ["class", "iconName", "size", "title"])) : d("", !0),
|
|
3925
|
-
|
|
3928
|
+
o.item.hasTitle ? (i(), u("span", {
|
|
3926
3929
|
key: 1,
|
|
3927
|
-
class: a(
|
|
3928
|
-
}, R(
|
|
3930
|
+
class: a(o.item.getActionBarItemTitleCss())
|
|
3931
|
+
}, R(o.item.title), 3)) : d("", !0)
|
|
3929
3932
|
], 42, qt)), [
|
|
3930
|
-
[m, { processEsc: !1, disableTabStop:
|
|
3933
|
+
[m, { processEsc: !1, disableTabStop: o.item.disableTabStop }]
|
|
3931
3934
|
]),
|
|
3932
3935
|
C(c, {
|
|
3933
|
-
model:
|
|
3934
|
-
getTarget: I(
|
|
3936
|
+
model: o.item.popupModel,
|
|
3937
|
+
getTarget: I(n)
|
|
3935
3938
|
}, null, 8, ["model", "getTarget"])
|
|
3936
3939
|
], 64);
|
|
3937
3940
|
};
|
|
@@ -3942,9 +3945,9 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
3942
3945
|
item: {}
|
|
3943
3946
|
},
|
|
3944
3947
|
setup(l) {
|
|
3945
|
-
const s = l,
|
|
3946
|
-
return (e,
|
|
3947
|
-
class: a(["sv-action-bar-separator",
|
|
3948
|
+
const s = l, n = w(() => s.item && s.item.innerCss);
|
|
3949
|
+
return (e, o) => (i(), u("div", {
|
|
3950
|
+
class: a(["sv-action-bar-separator", n.value])
|
|
3948
3951
|
}, null, 2));
|
|
3949
3952
|
}
|
|
3950
3953
|
}), bt = ["aria-label", "placeholder", "value"], kt = ["aria-label"], ft = ["id"], It = /* @__PURE__ */ h({
|
|
@@ -3953,23 +3956,23 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
3953
3956
|
model: {}
|
|
3954
3957
|
},
|
|
3955
3958
|
setup(l) {
|
|
3956
|
-
const s = l,
|
|
3959
|
+
const s = l, n = $(null), e = (r) => {
|
|
3957
3960
|
const c = s.model;
|
|
3958
3961
|
c.filterString = r.target.value;
|
|
3959
|
-
},
|
|
3962
|
+
}, o = (r) => {
|
|
3960
3963
|
const c = s.model;
|
|
3961
3964
|
c.filterString = r.target.value, s.model.goToItems(r);
|
|
3962
3965
|
}, t = (r) => {
|
|
3963
3966
|
s.model.onMouseMove(r);
|
|
3964
3967
|
};
|
|
3965
3968
|
return B(() => s.model), M(() => {
|
|
3966
|
-
s.model.initListContainerHtmlElement(
|
|
3969
|
+
s.model.initListContainerHtmlElement(n.value);
|
|
3967
3970
|
}), (r, c) => {
|
|
3968
3971
|
const m = q("sv-svg-icon"), p = q("sv-list-item");
|
|
3969
3972
|
return i(), u("div", {
|
|
3970
3973
|
class: a(r.model.cssClasses.root),
|
|
3971
3974
|
ref_key: "listContainerElement",
|
|
3972
|
-
ref:
|
|
3975
|
+
ref: n
|
|
3973
3976
|
}, [
|
|
3974
3977
|
r.model.showFilter ? (i(), u("div", {
|
|
3975
3978
|
key: 0,
|
|
@@ -3990,7 +3993,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
3990
3993
|
placeholder: r.model.filterStringPlaceholder,
|
|
3991
3994
|
value: r.model.filterString,
|
|
3992
3995
|
onChange: e,
|
|
3993
|
-
onKeyup:
|
|
3996
|
+
onKeyup: o
|
|
3994
3997
|
}, null, 42, bt),
|
|
3995
3998
|
r.model.showSearchClearButton && !!r.model.filterString ? (i(), u("button", {
|
|
3996
3999
|
key: 0,
|
|
@@ -4046,51 +4049,51 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
4046
4049
|
item: {}
|
|
4047
4050
|
},
|
|
4048
4051
|
setup(l) {
|
|
4049
|
-
const s = l,
|
|
4050
|
-
s.model.onItemClick(s.item),
|
|
4052
|
+
const s = l, n = w(() => s.item.elementId), e = (o) => {
|
|
4053
|
+
s.model.onItemClick(s.item), o.stopPropagation();
|
|
4051
4054
|
};
|
|
4052
4055
|
return B(() => s.item), M(() => {
|
|
4053
4056
|
setTimeout(() => {
|
|
4054
4057
|
s.model.onLastItemRended(s.item);
|
|
4055
4058
|
});
|
|
4056
|
-
}), (
|
|
4059
|
+
}), (o, t) => {
|
|
4057
4060
|
const r = q("sv-svg-icon"), c = q("survey-string"), m = X("key2click");
|
|
4058
4061
|
return P((i(), u("li", {
|
|
4059
4062
|
tabindex: "0",
|
|
4060
4063
|
role: "option",
|
|
4061
|
-
"aria-selected":
|
|
4062
|
-
key:
|
|
4063
|
-
id:
|
|
4064
|
-
onPointerdown: t[0] || (t[0] = (p) =>
|
|
4065
|
-
class: a(
|
|
4064
|
+
"aria-selected": o.model.isItemSelected(o.item),
|
|
4065
|
+
key: o.item.id,
|
|
4066
|
+
id: n.value,
|
|
4067
|
+
onPointerdown: t[0] || (t[0] = (p) => o.model.onPointerDown(p, o.item)),
|
|
4068
|
+
class: a(o.model.getItemClass(o.item)),
|
|
4066
4069
|
onClick: e
|
|
4067
4070
|
}, [
|
|
4068
|
-
|
|
4071
|
+
o.item.needSeparator ? (i(), u("div", {
|
|
4069
4072
|
key: 0,
|
|
4070
|
-
class: a(
|
|
4073
|
+
class: a(o.model.cssClasses.itemSeparator)
|
|
4071
4074
|
}, null, 2)) : d("", !0),
|
|
4072
4075
|
v("div", {
|
|
4073
|
-
style: S({ paddingInlineStart:
|
|
4074
|
-
class: a(
|
|
4075
|
-
title:
|
|
4076
|
+
style: S({ paddingInlineStart: o.model.getItemIndent(o.item) }),
|
|
4077
|
+
class: a(o.model.cssClasses.itemBody),
|
|
4078
|
+
title: o.item.locTitle.calculatedText
|
|
4076
4079
|
}, [
|
|
4077
|
-
|
|
4080
|
+
o.item.iconName && !o.item.component ? (i(), g(r, {
|
|
4078
4081
|
key: 0,
|
|
4079
|
-
class: a(
|
|
4080
|
-
iconName:
|
|
4081
|
-
size:
|
|
4082
|
+
class: a(o.model.cssClasses.itemIcon),
|
|
4083
|
+
iconName: o.item.iconName,
|
|
4084
|
+
size: o.item.iconSize
|
|
4082
4085
|
}, null, 8, ["class", "iconName", "size"])) : d("", !0),
|
|
4083
|
-
|
|
4086
|
+
o.item.component ? d("", !0) : (i(), g(c, {
|
|
4084
4087
|
key: 1,
|
|
4085
|
-
locString:
|
|
4088
|
+
locString: o.item.locTitle
|
|
4086
4089
|
}, null, 8, ["locString"])),
|
|
4087
|
-
|
|
4090
|
+
o.item.component ? (i(), g(T(o.item.component), {
|
|
4088
4091
|
key: 2,
|
|
4089
|
-
item:
|
|
4092
|
+
item: o.item
|
|
4090
4093
|
}, null, 8, ["item"])) : d("", !0)
|
|
4091
4094
|
], 14, St)
|
|
4092
4095
|
], 42, wt)), [
|
|
4093
|
-
[H,
|
|
4096
|
+
[H, o.model.isItemVisible(o.item)],
|
|
4094
4097
|
[m]
|
|
4095
4098
|
]);
|
|
4096
4099
|
};
|
|
@@ -4102,30 +4105,30 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
4102
4105
|
model: {}
|
|
4103
4106
|
},
|
|
4104
4107
|
setup(l) {
|
|
4105
|
-
const s = l,
|
|
4108
|
+
const s = l, n = z(
|
|
4106
4109
|
de(s.model, void 0)
|
|
4107
4110
|
), e = $(null);
|
|
4108
4111
|
return J(
|
|
4109
4112
|
() => s.model,
|
|
4110
|
-
(
|
|
4111
|
-
|
|
4113
|
+
(o) => {
|
|
4114
|
+
n.value.dispose(), n.value = de(o, void 0);
|
|
4112
4115
|
},
|
|
4113
4116
|
{ immediate: !0 }
|
|
4114
|
-
), B(() =>
|
|
4115
|
-
const
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
s.getTarget ? s.getTarget(
|
|
4117
|
+
), B(() => n.value), M(() => {
|
|
4118
|
+
const o = e.value;
|
|
4119
|
+
n.value.setComponentElement(
|
|
4120
|
+
o,
|
|
4121
|
+
s.getTarget ? s.getTarget(o) : void 0
|
|
4119
4122
|
);
|
|
4120
4123
|
}), U(() => {
|
|
4121
|
-
|
|
4122
|
-
}), (
|
|
4124
|
+
n.value.dispose();
|
|
4125
|
+
}), (o, t) => {
|
|
4123
4126
|
const r = q("sv-popup-container");
|
|
4124
4127
|
return i(), u("div", {
|
|
4125
4128
|
ref_key: "root",
|
|
4126
4129
|
ref: e
|
|
4127
4130
|
}, [
|
|
4128
|
-
C(r, { model:
|
|
4131
|
+
C(r, { model: n.value }, null, 8, ["model"])
|
|
4129
4132
|
], 512);
|
|
4130
4133
|
};
|
|
4131
4134
|
}
|
|
@@ -4142,60 +4145,60 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
4142
4145
|
},
|
|
4143
4146
|
setup(l) {
|
|
4144
4147
|
const s = l;
|
|
4145
|
-
let
|
|
4146
|
-
const e = (
|
|
4147
|
-
|
|
4148
|
+
let n = !1;
|
|
4149
|
+
const e = (o) => {
|
|
4150
|
+
o.stopPropagation();
|
|
4148
4151
|
};
|
|
4149
4152
|
return B(() => s.model), te(() => {
|
|
4150
|
-
const
|
|
4151
|
-
!
|
|
4153
|
+
const o = s.model;
|
|
4154
|
+
!n && o.isVisible && s.model.updateOnShowing(), n = o.isVisible;
|
|
4152
4155
|
}), M(() => {
|
|
4153
4156
|
s.model.isVisible && s.model.updateOnShowing();
|
|
4154
|
-
}), (
|
|
4157
|
+
}), (o, t) => {
|
|
4155
4158
|
const r = q("sv-action-bar");
|
|
4156
4159
|
return P((i(), u("div", {
|
|
4157
4160
|
tabindex: "-1",
|
|
4158
|
-
class: a(["sv-popup",
|
|
4161
|
+
class: a(["sv-popup", o.model.styleClass]),
|
|
4159
4162
|
onKeydown: t[0] || (t[0] = (c) => {
|
|
4160
|
-
|
|
4163
|
+
o.model.onKeyDown(c);
|
|
4161
4164
|
}),
|
|
4162
4165
|
onClick: t[1] || (t[1] = (c) => {
|
|
4163
|
-
|
|
4166
|
+
o.model.clickOutside(c);
|
|
4164
4167
|
})
|
|
4165
4168
|
}, [
|
|
4166
4169
|
v("div", {
|
|
4167
4170
|
class: "sv-popup__container",
|
|
4168
4171
|
style: S({
|
|
4169
|
-
left:
|
|
4170
|
-
top:
|
|
4171
|
-
height:
|
|
4172
|
-
width:
|
|
4173
|
-
minWidth:
|
|
4172
|
+
left: o.model.left,
|
|
4173
|
+
top: o.model.top,
|
|
4174
|
+
height: o.model.height,
|
|
4175
|
+
width: o.model.width,
|
|
4176
|
+
minWidth: o.model.minWidth
|
|
4174
4177
|
}),
|
|
4175
4178
|
onClick: e
|
|
4176
4179
|
}, [
|
|
4177
4180
|
v("div", $t, [
|
|
4178
|
-
|
|
4181
|
+
o.model.showHeader ? (i(), g(T(o.model.popupHeaderTemplate), {
|
|
4179
4182
|
key: 0,
|
|
4180
|
-
model:
|
|
4183
|
+
model: o.model
|
|
4181
4184
|
}, null, 8, ["model"])) : d("", !0),
|
|
4182
4185
|
v("div", _t, [
|
|
4183
|
-
|
|
4186
|
+
o.model.title ? (i(), u("div", Dt, R(o.model.title), 1)) : d("", !0),
|
|
4184
4187
|
v("div", Bt, [
|
|
4185
4188
|
v("div", Lt, [
|
|
4186
|
-
(i(), g(T(
|
|
4189
|
+
(i(), g(T(o.model.contentComponentName), O(ne(o.model.contentComponentData)), null, 16))
|
|
4187
4190
|
])
|
|
4188
4191
|
]),
|
|
4189
|
-
|
|
4192
|
+
o.model.showFooter ? (i(), u("div", Nt, [
|
|
4190
4193
|
C(r, {
|
|
4191
|
-
model:
|
|
4194
|
+
model: o.model.footerToolbar
|
|
4192
4195
|
}, null, 8, ["model"])
|
|
4193
4196
|
])) : d("", !0)
|
|
4194
4197
|
])
|
|
4195
4198
|
])
|
|
4196
4199
|
], 4)
|
|
4197
4200
|
], 34)), [
|
|
4198
|
-
[H,
|
|
4201
|
+
[H, o.model.isVisible]
|
|
4199
4202
|
]);
|
|
4200
4203
|
};
|
|
4201
4204
|
}
|
|
@@ -4205,7 +4208,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
4205
4208
|
model: {}
|
|
4206
4209
|
},
|
|
4207
4210
|
setup(l) {
|
|
4208
|
-
return (s,
|
|
4211
|
+
return (s, n) => (i(), u("span", {
|
|
4209
4212
|
class: "sv-popup__pointer",
|
|
4210
4213
|
style: S({
|
|
4211
4214
|
left: s.model.pointerTarget.left,
|
|
@@ -4224,17 +4227,17 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
4224
4227
|
needRenderWrapper: {}
|
|
4225
4228
|
},
|
|
4226
4229
|
setup(l) {
|
|
4227
|
-
const s = l,
|
|
4230
|
+
const s = l, n = w(
|
|
4228
4231
|
() => s.survey.getContainerContent(s.container)
|
|
4229
4232
|
);
|
|
4230
|
-
return (e,
|
|
4233
|
+
return (e, o) => n.value.length > 0 ? (i(), u(_, { key: 0 }, [
|
|
4231
4234
|
e.needRenderWrapper ? (i(), u("div", Mt, [
|
|
4232
|
-
(i(!0), u(_, null, D(
|
|
4235
|
+
(i(!0), u(_, null, D(n.value, (t, r) => (i(), g(T(t.component), {
|
|
4233
4236
|
survey: e.survey,
|
|
4234
4237
|
container: e.container,
|
|
4235
4238
|
model: t.data
|
|
4236
4239
|
}, null, 8, ["survey", "container", "model"]))), 256))
|
|
4237
|
-
])) : (i(!0), u(_, { key: 1 }, D(
|
|
4240
|
+
])) : (i(!0), u(_, { key: 1 }, D(n.value, (t, r) => (i(), g(T(t.component), {
|
|
4238
4241
|
survey: e.survey,
|
|
4239
4242
|
container: e.container,
|
|
4240
4243
|
model: t.data
|
|
@@ -4249,13 +4252,13 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
4249
4252
|
css: {}
|
|
4250
4253
|
},
|
|
4251
4254
|
setup(l) {
|
|
4252
|
-
const s = l,
|
|
4255
|
+
const s = l, n = w(() => s.survey.progressValue + "%"), e = (t) => me.getProgressTextInBarCss(t), o = (t) => me.getProgressTextUnderBarCss(t);
|
|
4253
4256
|
return (t, r) => (i(), u("div", {
|
|
4254
4257
|
class: a(t.survey.getProgressCssClasses(t.container))
|
|
4255
4258
|
}, [
|
|
4256
4259
|
v("div", {
|
|
4257
4260
|
class: a(t.survey.css.progressBar),
|
|
4258
|
-
style: S({ width:
|
|
4261
|
+
style: S({ width: n.value }),
|
|
4259
4262
|
role: "progressbar",
|
|
4260
4263
|
"aria-valuemin": "0",
|
|
4261
4264
|
"aria-valuemax": "100",
|
|
@@ -4266,7 +4269,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
4266
4269
|
}, R(t.survey.progressText), 3)
|
|
4267
4270
|
], 6),
|
|
4268
4271
|
v("span", {
|
|
4269
|
-
class: a(
|
|
4272
|
+
class: a(o(t.survey.css))
|
|
4270
4273
|
}, R(t.survey.progressText), 3)
|
|
4271
4274
|
], 2));
|
|
4272
4275
|
}
|
|
@@ -4278,7 +4281,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
4278
4281
|
container: {}
|
|
4279
4282
|
},
|
|
4280
4283
|
setup(l) {
|
|
4281
|
-
const s = l,
|
|
4284
|
+
const s = l, n = $(!1), e = $(!1), o = $(!1), t = $(!0), r = $(), c = w(() => s.survey.css);
|
|
4282
4285
|
let m = null;
|
|
4283
4286
|
const p = (y) => {
|
|
4284
4287
|
let f = r.value;
|
|
@@ -4291,10 +4294,10 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
4291
4294
|
t.value = f, e.value = !f;
|
|
4292
4295
|
},
|
|
4293
4296
|
onUpdateScroller: (f) => {
|
|
4294
|
-
|
|
4297
|
+
n.value = f;
|
|
4295
4298
|
},
|
|
4296
4299
|
onUpdateSettings: () => {
|
|
4297
|
-
t.value = s.model.showItemTitles,
|
|
4300
|
+
t.value = s.model.showItemTitles, o.value = !s.model.showItemTitles;
|
|
4298
4301
|
},
|
|
4299
4302
|
container: w(() => s.container)
|
|
4300
4303
|
});
|
|
@@ -4321,7 +4324,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
4321
4324
|
class: a(c.value.progressButtonsContainer)
|
|
4322
4325
|
}, [
|
|
4323
4326
|
v("div", {
|
|
4324
|
-
class: a(y.model.getScrollButtonCss(
|
|
4327
|
+
class: a(y.model.getScrollButtonCss(n.value, !0)),
|
|
4325
4328
|
onClick: f[0] || (f[0] = (b) => p(!0)),
|
|
4326
4329
|
role: "button"
|
|
4327
4330
|
}, null, 2),
|
|
@@ -4356,12 +4359,12 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
4356
4359
|
], 2)
|
|
4357
4360
|
], 2),
|
|
4358
4361
|
v("div", {
|
|
4359
|
-
class: a(y.model.getScrollButtonCss(
|
|
4362
|
+
class: a(y.model.getScrollButtonCss(n.value, !1)),
|
|
4360
4363
|
onClick: f[1] || (f[1] = (b) => p(!1)),
|
|
4361
4364
|
role: "button"
|
|
4362
4365
|
}, null, 2)
|
|
4363
4366
|
], 2),
|
|
4364
|
-
|
|
4367
|
+
o.value ? (i(), u("div", {
|
|
4365
4368
|
key: 1,
|
|
4366
4369
|
class: a(y.survey.css.progressButtonsFooter)
|
|
4367
4370
|
}, [
|
|
@@ -4379,20 +4382,20 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
4379
4382
|
model: {}
|
|
4380
4383
|
},
|
|
4381
4384
|
setup(l) {
|
|
4382
|
-
return (s,
|
|
4383
|
-
const e = q("sv-svg-icon"),
|
|
4385
|
+
return (s, n) => {
|
|
4386
|
+
const e = q("sv-svg-icon"), o = q("sv-popup"), t = q("sv-list"), r = X("key2click");
|
|
4384
4387
|
return i(), u("div", {
|
|
4385
4388
|
class: a(s.model.containerCss)
|
|
4386
4389
|
}, [
|
|
4387
4390
|
s.model.isMobile ? P((i(), u("div", {
|
|
4388
4391
|
key: 0,
|
|
4389
|
-
onClick:
|
|
4392
|
+
onClick: n[0] || (n[0] = (...c) => s.model.togglePopup && s.model.togglePopup(...c))
|
|
4390
4393
|
}, [
|
|
4391
4394
|
C(e, {
|
|
4392
4395
|
iconName: s.model.icon,
|
|
4393
4396
|
size: 24
|
|
4394
4397
|
}, null, 8, ["iconName"]),
|
|
4395
|
-
C(
|
|
4398
|
+
C(o, {
|
|
4396
4399
|
model: s.model.popupModel
|
|
4397
4400
|
}, null, 8, ["model"])
|
|
4398
4401
|
])), [
|
|
@@ -4414,21 +4417,21 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
4414
4417
|
survey: {}
|
|
4415
4418
|
},
|
|
4416
4419
|
setup(l) {
|
|
4417
|
-
const s = l,
|
|
4420
|
+
const s = l, n = $(), e = $(""), o = $(1), t = w(() => {
|
|
4418
4421
|
const b = s.survey ? s.survey : s.model;
|
|
4419
4422
|
return Re(b);
|
|
4420
4423
|
}), r = w(() => t.value.activePage ? t.value.activePage.id : ""), c = () => {
|
|
4421
4424
|
const b = r.value;
|
|
4422
|
-
return !!t.value && b +
|
|
4425
|
+
return !!t.value && b + o.value.toString();
|
|
4423
4426
|
}, m = w(
|
|
4424
4427
|
() => t.value.showCompletedPage && t.value.state === "completed"
|
|
4425
4428
|
), p = w(() => t.value.css), y = w(() => "page" + c()), f = () => m.value ? (e.value || (e.value = t.value.processedCompletedHtml), e.value) : "";
|
|
4426
4429
|
return B(() => t.value), M(() => {
|
|
4427
4430
|
if (!!t.value) {
|
|
4428
|
-
var b =
|
|
4431
|
+
var b = n.value;
|
|
4429
4432
|
b && t.value.afterRenderSurvey(b), t.value.renderCallback = () => {
|
|
4430
4433
|
var N, k;
|
|
4431
|
-
|
|
4434
|
+
o.value++, (k = (N = ie()) == null ? void 0 : N.proxy) == null || k.$forceUpdate();
|
|
4432
4435
|
}, t.value.startTimerFromUI();
|
|
4433
4436
|
}
|
|
4434
4437
|
}), U(() => {
|
|
@@ -4439,7 +4442,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
4439
4442
|
class: a(t.value.getRootCss()),
|
|
4440
4443
|
style: S(t.value.themeVariables),
|
|
4441
4444
|
ref_key: "root",
|
|
4442
|
-
ref:
|
|
4445
|
+
ref: n
|
|
4443
4446
|
}, [
|
|
4444
4447
|
t.value.needRenderIcons ? (i(), g(k, { key: 0 })) : d("", !0),
|
|
4445
4448
|
v("div", {
|
|
@@ -4556,18 +4559,18 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
4556
4559
|
},
|
|
4557
4560
|
setup(l) {
|
|
4558
4561
|
const s = l;
|
|
4559
|
-
return B(() => s.model), (
|
|
4560
|
-
const
|
|
4561
|
-
return
|
|
4562
|
+
return B(() => s.model), (n, e) => {
|
|
4563
|
+
const o = q("sv-action-bar");
|
|
4564
|
+
return n.model.isDisplayed ? (i(), u("div", {
|
|
4562
4565
|
key: 0,
|
|
4563
|
-
class: a(
|
|
4564
|
-
style: S({ visibility:
|
|
4566
|
+
class: a(n.model.css),
|
|
4567
|
+
style: S({ visibility: n.model.active ? "visible" : "hidden" }),
|
|
4565
4568
|
role: "alert",
|
|
4566
4569
|
"aria-live": "polite"
|
|
4567
4570
|
}, [
|
|
4568
|
-
v("span", null, R(
|
|
4569
|
-
C(
|
|
4570
|
-
model:
|
|
4571
|
+
v("span", null, R(n.model.message), 1),
|
|
4572
|
+
C(o, {
|
|
4573
|
+
model: n.model.actionBar
|
|
4571
4574
|
}, null, 8, ["model"])
|
|
4572
4575
|
], 6)) : d("", !0);
|
|
4573
4576
|
};
|
|
@@ -4579,7 +4582,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
4579
4582
|
commentClass: {}
|
|
4580
4583
|
},
|
|
4581
4584
|
setup(l) {
|
|
4582
|
-
return (s,
|
|
4585
|
+
return (s, n) => (i(), u("div", {
|
|
4583
4586
|
class: a(s.question.getCommentAreaCss(!0))
|
|
4584
4587
|
}, [
|
|
4585
4588
|
s.question.isReadOnlyRenderDiv() ? d("", !0) : (i(), u("textarea", {
|
|
@@ -4594,10 +4597,10 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
4594
4597
|
"aria-label": s.question.ariaLabel || s.question.a11y_input_ariaLabel,
|
|
4595
4598
|
"aria-required": s.question.ariaRequired || s.question.a11y_input_ariaRequired,
|
|
4596
4599
|
style: S({ resize: s.question.resizeStyle }),
|
|
4597
|
-
onChange:
|
|
4600
|
+
onChange: n[0] || (n[0] = (e) => {
|
|
4598
4601
|
s.question.onOtherValueChange(e);
|
|
4599
4602
|
}),
|
|
4600
|
-
onInput:
|
|
4603
|
+
onInput: n[1] || (n[1] = (e) => {
|
|
4601
4604
|
s.question.onOtherValueInput(e);
|
|
4602
4605
|
})
|
|
4603
4606
|
}, null, 46, ei)),
|
|
@@ -4610,16 +4613,16 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
4610
4613
|
item: {}
|
|
4611
4614
|
},
|
|
4612
4615
|
setup(l) {
|
|
4613
|
-
const s = l,
|
|
4614
|
-
return B(() => s.item), (e,
|
|
4616
|
+
const s = l, n = () => s.item.data && s.item.data.mouseDown();
|
|
4617
|
+
return B(() => s.item), (e, o) => e.item.visible ? (i(), u("input", {
|
|
4615
4618
|
key: 0,
|
|
4616
4619
|
type: "button",
|
|
4617
4620
|
disabled: e.item.disabled,
|
|
4618
4621
|
value: e.item.title,
|
|
4619
4622
|
class: a(e.item.innerCss),
|
|
4620
4623
|
title: e.item.getTooltip(),
|
|
4621
|
-
onMousedown:
|
|
4622
|
-
onClick:
|
|
4624
|
+
onMousedown: n,
|
|
4625
|
+
onClick: o[0] || (o[0] = (...t) => e.item.action && e.item.action(...t))
|
|
4623
4626
|
}, null, 42, oi)) : d("", !0);
|
|
4624
4627
|
}
|
|
4625
4628
|
}), ye = /* @__PURE__ */ h({
|
|
@@ -4632,32 +4635,32 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
4632
4635
|
closeOnCompleteTimeout: {}
|
|
4633
4636
|
},
|
|
4634
4637
|
setup(l) {
|
|
4635
|
-
const s = l,
|
|
4638
|
+
const s = l, n = z(), e = w(() => s.survey ? s.survey.getCss() : {});
|
|
4636
4639
|
w(() => {
|
|
4637
4640
|
var f;
|
|
4638
|
-
return (f =
|
|
4641
|
+
return (f = n.value) != null && f.isExpanded ? e.value.window.header.buttonCollapsed : e.value.window.header.buttonExpanded;
|
|
4639
4642
|
}), w(() => {
|
|
4640
4643
|
var f;
|
|
4641
|
-
return (f =
|
|
4644
|
+
return (f = n.value) == null ? void 0 : f.isExpanded;
|
|
4642
4645
|
});
|
|
4643
|
-
const
|
|
4644
|
-
|
|
4646
|
+
const o = () => {
|
|
4647
|
+
n.value.changeExpandCollapse();
|
|
4645
4648
|
}, t = () => {
|
|
4646
|
-
|
|
4649
|
+
n.value.hide();
|
|
4647
4650
|
}, r = () => {
|
|
4648
|
-
|
|
4651
|
+
n.value.toggleFullScreen();
|
|
4649
4652
|
}, c = () => "SurveyComponent", m = () => {
|
|
4650
|
-
|
|
4653
|
+
n.value.onScroll();
|
|
4651
4654
|
}, p = () => {
|
|
4652
|
-
let f =
|
|
4653
|
-
return
|
|
4655
|
+
let f = n.value.cssHeaderRoot;
|
|
4656
|
+
return n.value.isCollapsed && (f += " " + n.value.cssRootCollapsedMod), f;
|
|
4654
4657
|
};
|
|
4655
|
-
B(() =>
|
|
4658
|
+
B(() => n.value);
|
|
4656
4659
|
const y = J(
|
|
4657
4660
|
() => s.survey,
|
|
4658
4661
|
(f) => {
|
|
4659
4662
|
const b = new Ee(null, f);
|
|
4660
|
-
s.isExpanded !== void 0 && (b.isExpanded = s.isExpanded), s.closeOnCompleteTimeout !== void 0 && (b.closeOnCompleteTimeout = s.closeOnCompleteTimeout), s.allowClose !== void 0 && (b.allowClose = s.allowClose), s.allowFullScreen !== void 0 && (b.allowFullScreen = s.allowFullScreen), b.isShowing = !0,
|
|
4663
|
+
s.isExpanded !== void 0 && (b.isExpanded = s.isExpanded), s.closeOnCompleteTimeout !== void 0 && (b.closeOnCompleteTimeout = s.closeOnCompleteTimeout), s.allowClose !== void 0 && (b.allowClose = s.allowClose), s.allowFullScreen !== void 0 && (b.allowFullScreen = s.allowFullScreen), b.isShowing = !0, n.value = b;
|
|
4661
4664
|
},
|
|
4662
4665
|
{
|
|
4663
4666
|
immediate: !0
|
|
@@ -4667,59 +4670,59 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
4667
4670
|
y();
|
|
4668
4671
|
}), (f, b) => {
|
|
4669
4672
|
const N = q("sv-svg-icon");
|
|
4670
|
-
return
|
|
4673
|
+
return n.value.isShowing ? (i(), u("div", {
|
|
4671
4674
|
key: 0,
|
|
4672
|
-
style: S({ maxWidth:
|
|
4673
|
-
class: a(
|
|
4675
|
+
style: S({ maxWidth: n.value.renderedWidth, width: n.value.renderedWidth }),
|
|
4676
|
+
class: a(n.value.cssRoot),
|
|
4674
4677
|
onScroll: m
|
|
4675
4678
|
}, [
|
|
4676
4679
|
v("div", {
|
|
4677
|
-
class: a(
|
|
4680
|
+
class: a(n.value.cssRootContent)
|
|
4678
4681
|
}, [
|
|
4679
4682
|
v("div", {
|
|
4680
4683
|
class: a(p())
|
|
4681
4684
|
}, [
|
|
4682
|
-
|
|
4685
|
+
n.value.isCollapsed && !!n.value.locTitle ? (i(), u("div", {
|
|
4683
4686
|
key: 0,
|
|
4684
|
-
class: a(
|
|
4685
|
-
}, R(
|
|
4687
|
+
class: a(n.value.cssHeaderTitleCollapsed)
|
|
4688
|
+
}, R(n.value.locTitle.renderedHtml), 3)) : d("", !0),
|
|
4686
4689
|
v("div", {
|
|
4687
|
-
class: a(
|
|
4690
|
+
class: a(n.value.cssHeaderButtonsContainer)
|
|
4688
4691
|
}, [
|
|
4689
|
-
|
|
4692
|
+
n.value.allowFullScreen ? (i(), u("div", {
|
|
4690
4693
|
key: 0,
|
|
4691
|
-
class: a(
|
|
4694
|
+
class: a(n.value.cssHeaderFullScreenButton),
|
|
4692
4695
|
onClick: r
|
|
4693
4696
|
}, [
|
|
4694
|
-
|
|
4697
|
+
n.value.isFullScreen ? (i(), g(N, {
|
|
4695
4698
|
key: 0,
|
|
4696
4699
|
iconName: "icon-back-to-panel_16x16",
|
|
4697
4700
|
size: 16
|
|
4698
4701
|
})) : d("", !0),
|
|
4699
|
-
|
|
4702
|
+
n.value.isFullScreen ? d("", !0) : (i(), g(N, {
|
|
4700
4703
|
key: 1,
|
|
4701
4704
|
iconName: "icon-full-screen_16x16",
|
|
4702
4705
|
size: 16
|
|
4703
4706
|
}))
|
|
4704
4707
|
], 2)) : d("", !0),
|
|
4705
4708
|
v("div", {
|
|
4706
|
-
class: a(
|
|
4707
|
-
onClick:
|
|
4709
|
+
class: a(n.value.cssHeaderCollapseButton),
|
|
4710
|
+
onClick: o
|
|
4708
4711
|
}, [
|
|
4709
|
-
|
|
4712
|
+
n.value.isExpanded ? (i(), g(N, {
|
|
4710
4713
|
key: 0,
|
|
4711
4714
|
iconName: "icon-minimize_16x16",
|
|
4712
4715
|
size: 16
|
|
4713
4716
|
})) : d("", !0),
|
|
4714
|
-
|
|
4717
|
+
n.value.isCollapsed ? (i(), g(N, {
|
|
4715
4718
|
key: 1,
|
|
4716
4719
|
iconName: "icon-restore_16x16",
|
|
4717
4720
|
size: 16
|
|
4718
4721
|
})) : d("", !0)
|
|
4719
4722
|
], 2),
|
|
4720
|
-
|
|
4723
|
+
n.value.allowClose ? (i(), u("div", {
|
|
4721
4724
|
key: 1,
|
|
4722
|
-
class: a(
|
|
4725
|
+
class: a(n.value.cssHeaderCloseButton),
|
|
4723
4726
|
onClick: t
|
|
4724
4727
|
}, [
|
|
4725
4728
|
C(N, {
|
|
@@ -4730,7 +4733,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
4730
4733
|
], 2)
|
|
4731
4734
|
], 2),
|
|
4732
4735
|
v("div", {
|
|
4733
|
-
class: a(
|
|
4736
|
+
class: a(n.value.cssBody)
|
|
4734
4737
|
}, [
|
|
4735
4738
|
(i(), g(T(c()), { survey: f.survey }, null, 8, ["survey"]))
|
|
4736
4739
|
], 2)
|
|
@@ -4745,20 +4748,20 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
4745
4748
|
css: {}
|
|
4746
4749
|
},
|
|
4747
4750
|
setup(l) {
|
|
4748
|
-
const s = l,
|
|
4751
|
+
const s = l, n = $(), e = w(
|
|
4749
4752
|
() => s.question.customWidget.isDefaultRender
|
|
4750
|
-
),
|
|
4753
|
+
), o = w(
|
|
4751
4754
|
() => !!s.question.customWidget.htmlTemplate
|
|
4752
4755
|
), t = w(() => s.question.customWidget.htmlTemplate), r = w(() => "survey-" + s.question.getTemplate());
|
|
4753
4756
|
return M(() => {
|
|
4754
|
-
s.question.customWidget.afterRender(s.question,
|
|
4757
|
+
s.question.customWidget.afterRender(s.question, n.value);
|
|
4755
4758
|
}), Q(() => {
|
|
4756
|
-
s.question.customWidget.willUnmount(s.question,
|
|
4759
|
+
s.question.customWidget.willUnmount(s.question, n.value);
|
|
4757
4760
|
}), (c, m) => (i(), u("div", {
|
|
4758
4761
|
ref_key: "root",
|
|
4759
|
-
ref:
|
|
4762
|
+
ref: n
|
|
4760
4763
|
}, [
|
|
4761
|
-
|
|
4764
|
+
o.value ? (i(), u("div", {
|
|
4762
4765
|
key: 0,
|
|
4763
4766
|
innerHTML: t.value
|
|
4764
4767
|
}, null, 8, ii)) : d("", !0),
|
|
@@ -4773,9 +4776,9 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
4773
4776
|
__name: "PopupModal",
|
|
4774
4777
|
setup(l) {
|
|
4775
4778
|
const s = z();
|
|
4776
|
-
function o
|
|
4779
|
+
function n(o, t, r, c, m, p, y = "popup") {
|
|
4777
4780
|
const f = We(
|
|
4778
|
-
|
|
4781
|
+
o,
|
|
4779
4782
|
t,
|
|
4780
4783
|
r,
|
|
4781
4784
|
c,
|
|
@@ -4787,21 +4790,21 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
4787
4790
|
);
|
|
4788
4791
|
return e(f);
|
|
4789
4792
|
}
|
|
4790
|
-
function e(
|
|
4791
|
-
|
|
4793
|
+
function e(o, t) {
|
|
4794
|
+
o.onHide = () => {
|
|
4792
4795
|
s.value = void 0, r.dispose();
|
|
4793
4796
|
};
|
|
4794
4797
|
const r = Ve(
|
|
4795
|
-
|
|
4798
|
+
o,
|
|
4796
4799
|
t
|
|
4797
4800
|
);
|
|
4798
4801
|
return r.model.isVisible = !0, s.value = r, r;
|
|
4799
4802
|
}
|
|
4800
|
-
return j.showModal || (j.showModal =
|
|
4803
|
+
return j.showModal || (j.showModal = n, U(() => {
|
|
4801
4804
|
j.showModal = void 0;
|
|
4802
4805
|
})), j.showDialog || (j.showDialog = e, U(() => {
|
|
4803
4806
|
j.showDialog = void 0;
|
|
4804
|
-
})), (
|
|
4807
|
+
})), (o, t) => {
|
|
4805
4808
|
const r = q("sv-popup-container");
|
|
4806
4809
|
return s.value ? (i(), g(Te, {
|
|
4807
4810
|
key: 0,
|
|
@@ -4819,9 +4822,9 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
4819
4822
|
},
|
|
4820
4823
|
setup(l) {
|
|
4821
4824
|
const s = l;
|
|
4822
|
-
return B(() => s.counter), (
|
|
4823
|
-
class: a(
|
|
4824
|
-
}, R(
|
|
4825
|
+
return B(() => s.counter), (n, e) => (i(), u("div", {
|
|
4826
|
+
class: a(n.remainingCharacterCounter)
|
|
4827
|
+
}, R(n.counter.remainingCharacterCounter), 3));
|
|
4825
4828
|
}
|
|
4826
4829
|
}), ui = /* @__PURE__ */ h({
|
|
4827
4830
|
inheritAttrs: !1,
|
|
@@ -4831,16 +4834,16 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
4831
4834
|
css: {}
|
|
4832
4835
|
},
|
|
4833
4836
|
setup(l) {
|
|
4834
|
-
const s = l,
|
|
4835
|
-
A(s,
|
|
4837
|
+
const s = l, n = $(null);
|
|
4838
|
+
A(s, n);
|
|
4836
4839
|
const e = w(() => s.question.contentPanel);
|
|
4837
|
-
return (
|
|
4840
|
+
return (o, t) => {
|
|
4838
4841
|
const r = q("survey-panel");
|
|
4839
4842
|
return i(), g(r, {
|
|
4840
4843
|
ref_key: "root",
|
|
4841
|
-
ref:
|
|
4844
|
+
ref: n,
|
|
4842
4845
|
element: e.value,
|
|
4843
|
-
css:
|
|
4846
|
+
css: o.css
|
|
4844
4847
|
}, null, 8, ["element", "css"]);
|
|
4845
4848
|
};
|
|
4846
4849
|
}
|
|
@@ -4852,11 +4855,11 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
4852
4855
|
css: {}
|
|
4853
4856
|
},
|
|
4854
4857
|
setup(l) {
|
|
4855
|
-
const s = l,
|
|
4856
|
-
A(s,
|
|
4857
|
-
const e = w(() => s.question.contentQuestion),
|
|
4858
|
-
return (t, r) => (i(), g(T(
|
|
4859
|
-
ref:
|
|
4858
|
+
const s = l, n = $(null);
|
|
4859
|
+
A(s, n);
|
|
4860
|
+
const e = w(() => s.question.contentQuestion), o = (t) => re(t);
|
|
4861
|
+
return (t, r) => (i(), g(T(o(e.value)), {
|
|
4862
|
+
ref: n.value,
|
|
4860
4863
|
question: e.value,
|
|
4861
4864
|
css: t.css
|
|
4862
4865
|
}, null, 8, ["question", "css"]));
|
|
@@ -4870,39 +4873,39 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ v("use
|
|
|
4870
4873
|
css: {}
|
|
4871
4874
|
},
|
|
4872
4875
|
setup(l) {
|
|
4873
|
-
const s = l,
|
|
4874
|
-
return B(() => s.model), (
|
|
4876
|
+
const s = l, n = w(() => qe * s.model.progress), e = w(() => s.model.text);
|
|
4877
|
+
return B(() => s.model), (o, t) => o.model.isRunning && o.model.showTimerAsClock ? (i(), u("div", {
|
|
4875
4878
|
key: 0,
|
|
4876
|
-
class: a(
|
|
4879
|
+
class: a(o.model.rootCss)
|
|
4877
4880
|
}, [
|
|
4878
|
-
|
|
4881
|
+
o.model.showProgress ? (i(), u("svg", {
|
|
4879
4882
|
key: 0,
|
|
4880
|
-
class: a(
|
|
4881
|
-
style: S({ strokeDasharray: qe, strokeDashoffset:
|
|
4883
|
+
class: a(o.model.getProgressCss()),
|
|
4884
|
+
style: S({ strokeDasharray: qe, strokeDashoffset: n.value })
|
|
4882
4885
|
}, ci, 6)) : d("", !0),
|
|
4883
4886
|
v("div", {
|
|
4884
|
-
class: a(
|
|
4887
|
+
class: a(o.model.textContainerCss)
|
|
4885
4888
|
}, [
|
|
4886
4889
|
v("span", {
|
|
4887
|
-
class: a(
|
|
4888
|
-
}, R(
|
|
4889
|
-
|
|
4890
|
+
class: a(o.model.majorTextCss)
|
|
4891
|
+
}, R(o.model.clockMajorText), 3),
|
|
4892
|
+
o.model.clockMinorText ? (i(), u("span", {
|
|
4890
4893
|
key: 0,
|
|
4891
|
-
class: a(
|
|
4892
|
-
}, R(
|
|
4894
|
+
class: a(o.model.minorTextCss)
|
|
4895
|
+
}, R(o.model.clockMinorText), 3)) : d("", !0)
|
|
4893
4896
|
], 2)
|
|
4894
4897
|
], 2)) : P((i(), u("div", {
|
|
4895
4898
|
key: 1,
|
|
4896
|
-
class: a(
|
|
4899
|
+
class: a(o.model.survey.getCss().timerRoot)
|
|
4897
4900
|
}, R(e.value), 3)), [
|
|
4898
|
-
[H,
|
|
4901
|
+
[H, o.model.isRunning && !o.model.showTimerAsClock]
|
|
4899
4902
|
]);
|
|
4900
4903
|
}
|
|
4901
4904
|
}), vi = {}, yi = { class: "sd-loading-indicator" };
|
|
4902
4905
|
function qi(l, s) {
|
|
4903
|
-
const
|
|
4906
|
+
const n = q("sv-svg-icon");
|
|
4904
4907
|
return i(), u("div", yi, [
|
|
4905
|
-
C(
|
|
4908
|
+
C(n, {
|
|
4906
4909
|
iconName: "icon-loading",
|
|
4907
4910
|
size: "'auto'"
|
|
4908
4911
|
})
|
|
@@ -4917,31 +4920,31 @@ const gi = /* @__PURE__ */ Ce(vi, [["render", qi]]), hi = { key: 2 }, Ci = /* @_
|
|
|
4917
4920
|
setup(l) {
|
|
4918
4921
|
const s = l;
|
|
4919
4922
|
return B(() => {
|
|
4920
|
-
const
|
|
4921
|
-
return
|
|
4922
|
-
}), (
|
|
4923
|
-
const
|
|
4923
|
+
const n = s.model;
|
|
4924
|
+
return n.survey = s.survey, s.model;
|
|
4925
|
+
}), (n, e) => {
|
|
4926
|
+
const o = q("sv-header-cell"), t = q("sv-header-mobile");
|
|
4924
4927
|
return i(), u("div", {
|
|
4925
|
-
class: a(
|
|
4926
|
-
style: S({ height:
|
|
4928
|
+
class: a(n.model.headerClasses),
|
|
4929
|
+
style: S({ height: n.model.renderedHeight })
|
|
4927
4930
|
}, [
|
|
4928
|
-
|
|
4931
|
+
n.model.backgroundImage ? (i(), u("div", {
|
|
4929
4932
|
key: 0,
|
|
4930
|
-
class: a(
|
|
4931
|
-
style: S(
|
|
4933
|
+
class: a(n.model.backgroundImageClasses),
|
|
4934
|
+
style: S(n.model.backgroundImageStyle)
|
|
4932
4935
|
}, null, 6)) : d("", !0),
|
|
4933
|
-
|
|
4936
|
+
n.survey.isMobile ? d("", !0) : (i(), u("div", {
|
|
4934
4937
|
key: 1,
|
|
4935
|
-
class: a(
|
|
4936
|
-
style: S({ maxWidth:
|
|
4938
|
+
class: a(n.model.contentClasses),
|
|
4939
|
+
style: S({ maxWidth: n.model.maxWidth })
|
|
4937
4940
|
}, [
|
|
4938
|
-
(i(!0), u(_, null, D(
|
|
4941
|
+
(i(!0), u(_, null, D(n.model.cells, (r, c) => (i(), g(o, {
|
|
4939
4942
|
model: r,
|
|
4940
4943
|
key: c
|
|
4941
4944
|
}, null, 8, ["model"]))), 128))
|
|
4942
4945
|
], 6)),
|
|
4943
|
-
|
|
4944
|
-
C(t, { model:
|
|
4946
|
+
n.survey.isMobile ? (i(), u("div", hi, [
|
|
4947
|
+
C(t, { model: n.model }, null, 8, ["model"])
|
|
4945
4948
|
])) : d("", !0)
|
|
4946
4949
|
], 6);
|
|
4947
4950
|
};
|
|
@@ -4955,8 +4958,8 @@ const gi = /* @__PURE__ */ Ce(vi, [["render", qi]]), hi = { key: 2 }, Ci = /* @_
|
|
|
4955
4958
|
model: {}
|
|
4956
4959
|
},
|
|
4957
4960
|
setup(l) {
|
|
4958
|
-
return (s,
|
|
4959
|
-
const e = q("survey-element-title"),
|
|
4961
|
+
return (s, n) => {
|
|
4962
|
+
const e = q("survey-element-title"), o = q("survey-string");
|
|
4960
4963
|
return i(), u("div", {
|
|
4961
4964
|
class: a(s.model.css),
|
|
4962
4965
|
style: S(s.model.style)
|
|
@@ -4998,7 +5001,7 @@ const gi = /* @__PURE__ */ Ce(vi, [["render", qi]]), hi = { key: 2 }, Ci = /* @_
|
|
|
4998
5001
|
key: 0,
|
|
4999
5002
|
class: a(s.model.survey.css.description)
|
|
5000
5003
|
}, [
|
|
5001
|
-
C(
|
|
5004
|
+
C(o, {
|
|
5002
5005
|
locString: s.model.survey.locDescription
|
|
5003
5006
|
}, null, 8, ["locString"])
|
|
5004
5007
|
], 2)) : d("", !0)
|
|
@@ -5016,8 +5019,8 @@ const gi = /* @__PURE__ */ Ce(vi, [["render", qi]]), hi = { key: 2 }, Ci = /* @_
|
|
|
5016
5019
|
model: {}
|
|
5017
5020
|
},
|
|
5018
5021
|
setup(l) {
|
|
5019
|
-
return (s,
|
|
5020
|
-
const e = q("survey-element-title"),
|
|
5022
|
+
return (s, n) => {
|
|
5023
|
+
const e = q("survey-element-title"), o = q("survey-string");
|
|
5021
5024
|
return i(), u("div", Ii, [
|
|
5022
5025
|
s.model.survey.hasLogo ? (i(), u("div", wi, [
|
|
5023
5026
|
v("div", {
|
|
@@ -5052,7 +5055,7 @@ const gi = /* @__PURE__ */ Ce(vi, [["render", qi]]), hi = { key: 2 }, Ci = /* @_
|
|
|
5052
5055
|
key: 0,
|
|
5053
5056
|
class: a(s.model.survey.css.description)
|
|
5054
5057
|
}, [
|
|
5055
|
-
C(
|
|
5058
|
+
C(o, {
|
|
5056
5059
|
locString: s.model.survey.locDescription
|
|
5057
5060
|
}, null, 8, ["locString"])
|
|
5058
5061
|
], 2)) : d("", !0)
|
|
@@ -5068,19 +5071,19 @@ const gi = /* @__PURE__ */ Ce(vi, [["render", qi]]), hi = { key: 2 }, Ci = /* @_
|
|
|
5068
5071
|
css: {}
|
|
5069
5072
|
},
|
|
5070
5073
|
setup(l) {
|
|
5071
|
-
const s = l,
|
|
5074
|
+
const s = l, n = (r) => r.isPanel ? "survey-panel" : "survey-question", e = w(() => {
|
|
5072
5075
|
const r = s.element.survey;
|
|
5073
5076
|
if (r) {
|
|
5074
5077
|
const c = r.getElementWrapperComponentName(s.element);
|
|
5075
5078
|
if (c)
|
|
5076
5079
|
return c;
|
|
5077
5080
|
}
|
|
5078
|
-
return
|
|
5079
|
-
}),
|
|
5081
|
+
return n(s.element);
|
|
5082
|
+
}), o = (r) => r.cssClasses ? r.rootStyle : {}, t = w(() => {
|
|
5080
5083
|
const r = s.element, c = r.survey;
|
|
5081
5084
|
let m;
|
|
5082
5085
|
return c && (m = c.getElementWrapperComponentData(r)), {
|
|
5083
|
-
componentName:
|
|
5086
|
+
componentName: n(r),
|
|
5084
5087
|
componentData: {
|
|
5085
5088
|
element: r,
|
|
5086
5089
|
survey: c,
|
|
@@ -5091,7 +5094,7 @@ const gi = /* @__PURE__ */ Ce(vi, [["render", qi]]), hi = { key: 2 }, Ci = /* @_
|
|
|
5091
5094
|
};
|
|
5092
5095
|
});
|
|
5093
5096
|
return (r, c) => (i(), u("div", {
|
|
5094
|
-
style: S(
|
|
5097
|
+
style: S(o(r.element)),
|
|
5095
5098
|
class: a(r.element.cssClasses.questionWrapper)
|
|
5096
5099
|
}, [
|
|
5097
5100
|
r.row.isNeedRender ? (i(), g(T(e.value), O(E({ key: 0 }, t.value)), null, 16)) : r.element.skeletonComponentName ? (i(), g(T(r.element.skeletonComponentName), {
|
|
@@ -5108,8 +5111,8 @@ const gi = /* @__PURE__ */ Ce(vi, [["render", qi]]), hi = { key: 2 }, Ci = /* @_
|
|
|
5108
5111
|
componentData: {}
|
|
5109
5112
|
},
|
|
5110
5113
|
setup(l) {
|
|
5111
|
-
const s = $e(),
|
|
5112
|
-
return (e,
|
|
5114
|
+
const s = $e(), n = w(() => !!s.default);
|
|
5115
|
+
return (e, o) => n.value && !e.componentName ? _e(e.$slots, "default", { key: 0 }) : (i(), g(T(e.componentName), O(E({ key: 1 }, e.componentData)), null, 16));
|
|
5113
5116
|
}
|
|
5114
5117
|
}), _i = /* @__PURE__ */ h({
|
|
5115
5118
|
__name: "FileCleanButton",
|
|
@@ -5118,12 +5121,12 @@ const gi = /* @__PURE__ */ Ce(vi, [["render", qi]]), hi = { key: 2 }, Ci = /* @_
|
|
|
5118
5121
|
css: {}
|
|
5119
5122
|
},
|
|
5120
5123
|
setup(l) {
|
|
5121
|
-
return (s,
|
|
5124
|
+
return (s, n) => {
|
|
5122
5125
|
const e = q("sv-svg-icon");
|
|
5123
5126
|
return i(), u("button", {
|
|
5124
5127
|
type: "button",
|
|
5125
5128
|
class: a(s.css),
|
|
5126
|
-
onClick:
|
|
5129
|
+
onClick: n[0] || (n[0] = (...o) => s.question.doClean && s.question.doClean(...o))
|
|
5127
5130
|
}, [
|
|
5128
5131
|
v("span", null, R(s.question.clearButtonCaption), 1),
|
|
5129
5132
|
s.question.cssClasses.removeButtonIconId ? (i(), g(e, {
|
|
@@ -5141,7 +5144,7 @@ const gi = /* @__PURE__ */ Ce(vi, [["render", qi]]), hi = { key: 2 }, Ci = /* @_
|
|
|
5141
5144
|
question: {}
|
|
5142
5145
|
},
|
|
5143
5146
|
setup(l) {
|
|
5144
|
-
return (s,
|
|
5147
|
+
return (s, n) => {
|
|
5145
5148
|
const e = q("sv-action");
|
|
5146
5149
|
return i(), u("div", {
|
|
5147
5150
|
class: a(s.question.cssClasses.videoContainer)
|
|
@@ -5171,28 +5174,28 @@ const gi = /* @__PURE__ */ Ce(vi, [["render", qi]]), hi = { key: 2 }, Ci = /* @_
|
|
|
5171
5174
|
item: {}
|
|
5172
5175
|
},
|
|
5173
5176
|
setup(l) {
|
|
5174
|
-
const s = l,
|
|
5177
|
+
const s = l, n = w(
|
|
5175
5178
|
() => {
|
|
5176
5179
|
var e;
|
|
5177
5180
|
return ((e = s.data) == null ? void 0 : e.question) || s.item.data.question;
|
|
5178
5181
|
}
|
|
5179
5182
|
);
|
|
5180
|
-
return (e,
|
|
5183
|
+
return (e, o) => {
|
|
5181
5184
|
const t = q("sv-svg-icon"), r = X("key2click");
|
|
5182
5185
|
return P((i(), u("label", {
|
|
5183
5186
|
tabindex: "0",
|
|
5184
|
-
class: a(
|
|
5185
|
-
for:
|
|
5186
|
-
"aria-label":
|
|
5187
|
-
onClick:
|
|
5187
|
+
class: a(n.value.getChooseFileCss()),
|
|
5188
|
+
for: n.value.inputId,
|
|
5189
|
+
"aria-label": n.value.chooseButtonText,
|
|
5190
|
+
onClick: o[0] || (o[0] = (c) => n.value.chooseFile(c))
|
|
5188
5191
|
}, [
|
|
5189
|
-
|
|
5192
|
+
n.value.cssClasses.chooseFileIconId ? (i(), g(t, {
|
|
5190
5193
|
key: 0,
|
|
5191
|
-
title:
|
|
5192
|
-
iconName:
|
|
5194
|
+
title: n.value.chooseButtonText,
|
|
5195
|
+
iconName: n.value.cssClasses.chooseFileIconId,
|
|
5193
5196
|
size: "auto"
|
|
5194
5197
|
}, null, 8, ["title", "iconName"])) : d("", !0),
|
|
5195
|
-
v("span", null, R(
|
|
5198
|
+
v("span", null, R(n.value.chooseButtonText), 1)
|
|
5196
5199
|
], 10, Li)), [
|
|
5197
5200
|
[r]
|
|
5198
5201
|
]);
|
|
@@ -5204,50 +5207,50 @@ const gi = /* @__PURE__ */ Ce(vi, [["render", qi]]), hi = { key: 2 }, Ci = /* @_
|
|
|
5204
5207
|
question: {}
|
|
5205
5208
|
},
|
|
5206
5209
|
setup(l) {
|
|
5207
|
-
return (s,
|
|
5210
|
+
return (s, n) => {
|
|
5208
5211
|
const e = q("sv-svg-icon");
|
|
5209
5212
|
return s.question.showPreviewContainer ? (i(), u("div", {
|
|
5210
5213
|
key: 0,
|
|
5211
5214
|
class: a(s.question.cssClasses.fileList || void 0)
|
|
5212
5215
|
}, [
|
|
5213
|
-
(i(!0), u(_, null, D(s.question.previewValue, (
|
|
5216
|
+
(i(!0), u(_, null, D(s.question.previewValue, (o, t) => P((i(), u("span", {
|
|
5214
5217
|
key: s.question.inputId + "_" + t,
|
|
5215
5218
|
class: a(s.question.cssClasses.preview)
|
|
5216
5219
|
}, [
|
|
5217
|
-
|
|
5220
|
+
o.name && s.question.cssClasses.fileSign ? (i(), u("div", {
|
|
5218
5221
|
key: 0,
|
|
5219
5222
|
class: a(s.question.cssClasses.fileSign)
|
|
5220
5223
|
}, [
|
|
5221
5224
|
v("a", {
|
|
5222
|
-
onClick: (r) => s.question.doDownloadFile(r,
|
|
5223
|
-
href:
|
|
5224
|
-
title:
|
|
5225
|
-
download:
|
|
5225
|
+
onClick: (r) => s.question.doDownloadFile(r, o),
|
|
5226
|
+
href: o.content,
|
|
5227
|
+
title: o.name,
|
|
5228
|
+
download: o.name,
|
|
5226
5229
|
style: S({ width: s.question.imageWidth })
|
|
5227
|
-
}, R(
|
|
5230
|
+
}, R(o.name), 13, Pi)
|
|
5228
5231
|
], 2)) : d("", !0),
|
|
5229
5232
|
v("div", {
|
|
5230
|
-
class: a(s.question.getImageWrapperCss(
|
|
5233
|
+
class: a(s.question.getImageWrapperCss(o))
|
|
5231
5234
|
}, [
|
|
5232
|
-
s.question.canPreviewImage(
|
|
5235
|
+
s.question.canPreviewImage(o) ? (i(), u("img", {
|
|
5233
5236
|
key: 0,
|
|
5234
|
-
src:
|
|
5237
|
+
src: o.content,
|
|
5235
5238
|
style: S({
|
|
5236
5239
|
height: s.question.imageHeight,
|
|
5237
5240
|
width: s.question.imageWidth
|
|
5238
5241
|
}),
|
|
5239
5242
|
alt: "File preview"
|
|
5240
5243
|
}, null, 12, Ai)) : d("", !0),
|
|
5241
|
-
s.question.defaultImage(
|
|
5244
|
+
s.question.defaultImage(o) ? (i(), g(e, {
|
|
5242
5245
|
key: 1,
|
|
5243
5246
|
iconName: s.question.cssClasses.defaultImageIconId,
|
|
5244
5247
|
class: a(s.question.cssClasses.defaultImage),
|
|
5245
5248
|
size: "auto"
|
|
5246
5249
|
}, null, 8, ["iconName", "class"])) : d("", !0),
|
|
5247
|
-
|
|
5250
|
+
o.name && !s.question.isReadOnly ? (i(), u("div", {
|
|
5248
5251
|
key: 2,
|
|
5249
5252
|
class: a(s.question.getRemoveButtonCss()),
|
|
5250
|
-
onClick: (r) => s.question.doRemoveFile(
|
|
5253
|
+
onClick: (r) => s.question.doRemoveFile(o)
|
|
5251
5254
|
}, [
|
|
5252
5255
|
v("span", {
|
|
5253
5256
|
class: a(s.question.cssClasses.removeFile)
|
|
@@ -5261,20 +5264,20 @@ const gi = /* @__PURE__ */ Ce(vi, [["render", qi]]), hi = { key: 2 }, Ci = /* @_
|
|
|
5261
5264
|
}, null, 8, ["title", "class", "iconName"])) : d("", !0)
|
|
5262
5265
|
], 10, Mi)) : d("", !0)
|
|
5263
5266
|
], 2),
|
|
5264
|
-
|
|
5267
|
+
o.name && s.question.cssClasses.fileSignBottom ? (i(), u("div", {
|
|
5265
5268
|
key: 1,
|
|
5266
5269
|
class: a(s.question.cssClasses.fileSignBottom)
|
|
5267
5270
|
}, [
|
|
5268
5271
|
v("a", {
|
|
5269
|
-
onClick: (r) => s.question.doDownloadFile(r,
|
|
5270
|
-
href:
|
|
5271
|
-
title:
|
|
5272
|
-
download:
|
|
5272
|
+
onClick: (r) => s.question.doDownloadFile(r, o),
|
|
5273
|
+
href: o.content,
|
|
5274
|
+
title: o.name,
|
|
5275
|
+
download: o.name,
|
|
5273
5276
|
style: S({ width: s.question.imageWidth })
|
|
5274
|
-
}, R(
|
|
5277
|
+
}, R(o.name), 13, Hi)
|
|
5275
5278
|
], 2)) : d("", !0)
|
|
5276
5279
|
], 2)), [
|
|
5277
|
-
[H,
|
|
5280
|
+
[H, o && s.question.isPreviewVisible(t)]
|
|
5278
5281
|
])), 128))
|
|
5279
5282
|
], 2)) : d("", !0);
|
|
5280
5283
|
};
|
|
@@ -5285,14 +5288,14 @@ const gi = /* @__PURE__ */ Ce(vi, [["render", qi]]), hi = { key: 2 }, Ci = /* @_
|
|
|
5285
5288
|
question: {}
|
|
5286
5289
|
},
|
|
5287
5290
|
setup(l) {
|
|
5288
|
-
const s = l,
|
|
5289
|
-
return A(s,
|
|
5291
|
+
const s = l, n = $();
|
|
5292
|
+
return A(s, n), (e, o) => {
|
|
5290
5293
|
const t = q("sv-button-group-item");
|
|
5291
5294
|
return i(), u("div", {
|
|
5292
5295
|
role: "group",
|
|
5293
5296
|
class: a(e.question.cssClasses.root),
|
|
5294
5297
|
ref_key: "root",
|
|
5295
|
-
ref:
|
|
5298
|
+
ref: n
|
|
5296
5299
|
}, [
|
|
5297
5300
|
(i(!0), u(_, null, D(e.question.visibleChoices, (r, c) => (i(), g(t, {
|
|
5298
5301
|
question: e.question,
|
|
@@ -5311,54 +5314,54 @@ const gi = /* @__PURE__ */ Ce(vi, [["render", qi]]), hi = { key: 2 }, Ci = /* @_
|
|
|
5311
5314
|
index: {}
|
|
5312
5315
|
},
|
|
5313
5316
|
setup(l) {
|
|
5314
|
-
const s = l,
|
|
5317
|
+
const s = l, n = w(
|
|
5315
5318
|
() => new Fe(s.question, s.item, s.index)
|
|
5316
5319
|
), e = w({
|
|
5317
5320
|
get: () => s.question.renderedValue,
|
|
5318
|
-
set: (
|
|
5321
|
+
set: (o) => {
|
|
5319
5322
|
const t = s.question;
|
|
5320
|
-
t.renderedValue =
|
|
5323
|
+
t.renderedValue = o;
|
|
5321
5324
|
}
|
|
5322
5325
|
});
|
|
5323
|
-
return (
|
|
5326
|
+
return (o, t) => {
|
|
5324
5327
|
const r = q("sv-svg-icon"), c = q("survey-string");
|
|
5325
5328
|
return i(), u("label", {
|
|
5326
5329
|
role: "radio",
|
|
5327
|
-
class: a(
|
|
5328
|
-
title:
|
|
5330
|
+
class: a(n.value.css.label),
|
|
5331
|
+
title: n.value.caption.renderedHtml
|
|
5329
5332
|
}, [
|
|
5330
5333
|
P(v("input", {
|
|
5331
5334
|
type: "radio",
|
|
5332
|
-
name:
|
|
5333
|
-
id:
|
|
5334
|
-
"aria-required":
|
|
5335
|
-
"aria-label":
|
|
5335
|
+
name: n.value.name,
|
|
5336
|
+
id: n.value.id,
|
|
5337
|
+
"aria-required": n.value.isRequired,
|
|
5338
|
+
"aria-label": n.value.caption.renderedHtml,
|
|
5336
5339
|
role: "radio",
|
|
5337
|
-
"aria-invalid":
|
|
5338
|
-
"aria-errormessage":
|
|
5339
|
-
disabled:
|
|
5340
|
-
class: a(
|
|
5340
|
+
"aria-invalid": n.value.hasErrors,
|
|
5341
|
+
"aria-errormessage": n.value.describedBy,
|
|
5342
|
+
disabled: n.value.readOnly,
|
|
5343
|
+
class: a(n.value.css.control),
|
|
5341
5344
|
"onUpdate:modelValue": t[0] || (t[0] = (m) => e.value = m),
|
|
5342
|
-
value:
|
|
5345
|
+
value: n.value.value
|
|
5343
5346
|
}, null, 10, Fi), [
|
|
5344
5347
|
[x, e.value]
|
|
5345
5348
|
]),
|
|
5346
5349
|
v("div", {
|
|
5347
|
-
class: a(
|
|
5350
|
+
class: a(n.value.css.decorator)
|
|
5348
5351
|
}, [
|
|
5349
|
-
|
|
5352
|
+
n.value.iconName ? (i(), g(r, {
|
|
5350
5353
|
key: 0,
|
|
5351
|
-
iconName:
|
|
5352
|
-
size:
|
|
5353
|
-
class: a(
|
|
5354
|
+
iconName: n.value.iconName,
|
|
5355
|
+
size: n.value.iconSize,
|
|
5356
|
+
class: a(n.value.css.icon)
|
|
5354
5357
|
}, null, 8, ["iconName", "size", "class"])) : d("", !0),
|
|
5355
|
-
|
|
5358
|
+
n.value.showCaption ? (i(), u("span", {
|
|
5356
5359
|
key: 1,
|
|
5357
|
-
class: a(
|
|
5358
|
-
title:
|
|
5360
|
+
class: a(n.value.css.caption),
|
|
5361
|
+
title: n.value.caption.renderedHtml
|
|
5359
5362
|
}, [
|
|
5360
5363
|
C(c, {
|
|
5361
|
-
locString:
|
|
5364
|
+
locString: n.value.caption
|
|
5362
5365
|
}, null, 8, ["locString"])
|
|
5363
5366
|
], 10, Oi)) : d("", !0)
|
|
5364
5367
|
], 2)
|
|
@@ -5372,20 +5375,20 @@ const gi = /* @__PURE__ */ Ce(vi, [["render", qi]]), hi = { key: 2 }, Ci = /* @_
|
|
|
5372
5375
|
data: {}
|
|
5373
5376
|
},
|
|
5374
5377
|
setup(l) {
|
|
5375
|
-
const s = l,
|
|
5376
|
-
return (
|
|
5377
|
-
class: a(
|
|
5378
|
+
const s = l, n = w(() => s.data), e = G(() => n.value.locLogo);
|
|
5379
|
+
return (o, t) => (i(), u("div", {
|
|
5380
|
+
class: a(n.value.logoClassNames)
|
|
5378
5381
|
}, [
|
|
5379
5382
|
v("img", {
|
|
5380
|
-
class: a(
|
|
5383
|
+
class: a(n.value.css.logoImage),
|
|
5381
5384
|
src: I(e),
|
|
5382
|
-
width:
|
|
5383
|
-
height:
|
|
5384
|
-
alt:
|
|
5385
|
+
width: n.value.renderedLogoWidth,
|
|
5386
|
+
height: n.value.renderedLogoHeight,
|
|
5387
|
+
alt: n.value.locTitle.renderedHtml,
|
|
5385
5388
|
style: S({
|
|
5386
|
-
objectFit:
|
|
5387
|
-
width:
|
|
5388
|
-
height:
|
|
5389
|
+
objectFit: n.value.logoFit,
|
|
5390
|
+
width: n.value.renderedStyleLogoWidth,
|
|
5391
|
+
height: n.value.renderedStyleLogoHeight
|
|
5389
5392
|
})
|
|
5390
5393
|
}, null, 14, Ui)
|
|
5391
5394
|
], 2));
|
|
@@ -5396,7 +5399,7 @@ const gi = /* @__PURE__ */ Ce(vi, [["render", qi]]), hi = { key: 2 }, Ci = /* @_
|
|
|
5396
5399
|
const s = $();
|
|
5397
5400
|
return M(() => {
|
|
5398
5401
|
s.value.innerHTML = Oe.iconsRenderedHtml();
|
|
5399
|
-
}), (
|
|
5402
|
+
}), (n, e) => P((i(), u("svg", {
|
|
5400
5403
|
id: "sv-icon-holder-global-container",
|
|
5401
5404
|
ref_key: "root",
|
|
5402
5405
|
ref: s
|
|
@@ -5408,16 +5411,16 @@ const gi = /* @__PURE__ */ Ce(vi, [["render", qi]]), hi = { key: 2 }, Ci = /* @_
|
|
|
5408
5411
|
ze.platform = "vue3";
|
|
5409
5412
|
function Qi(l) {
|
|
5410
5413
|
l.component("SurveyComponent", ve), l.component("sv-svg-bundle", ji), l.component("PopupSurveyComponent", ye), l.component("survey", ve), l.component("popup-survey", ye), l.component("survey-header", Ge), l.component("sv-logo-image", Ki), l.component("survey-page", Qe), l.component("survey-row", Je), l.component("survey-question", xe), l.component("survey-panel", os), l.component("survey-element-header", is), l.component("survey-string", rs), l.component("sv-string-viewer", as), l.component("sv-string-editor", ds), l.component("sv-skeleton", cs), l.component("survey-text", ys), l.component("survey-text-input", hs), l.component("survey-checkbox", Is), l.component("survey-checkbox-item", Rs), l.component("survey-radiogroup", Ts), l.component("survey-radiogroup-item", Ds), l.component("survey-signaturepad", Ps), l.component("survey-html", Ms), l.component("survey-image", Vs), l.component("survey-expression", Fs), l.component("survey-file", Us), l.component("sv-file-choose-btn", Ni), l.component("sv-file-clean-btn", _i), l.component("sv-file-preview", Ei), l.component("sv-file-video", Bi), l.component("survey-imagepicker", js), l.component("survey-imagepicker-item", Ys), l.component("survey-comment", en), l.component("survey-dropdown", sn), l.component("sv-dropdown-select", rn), l.component("sv-dropdown-option-item", an), l.component("sv-dropdown", pn), l.component("survey-tagbox", vn), l.component("sv-tagbox", gn), l.component("sv-tagbox-item", fn), l.component("sv-tagbox-filter", bn), l.component("survey-ranking", In), l.component("survey-ranking-item", _n), l.component("survey-rating", Ln), l.component("sv-rating-item", Pn), l.component("sv-rating-item-smiley", Mn), l.component("sv-rating-item-star", En), l.component("sv-rating-dropdown", zn), l.component("sv-rating-dropdown-item", On), l.component("survey-boolean", Kn), l.component("sv-boolean-radio", jn), l.component("sv-boolean-radio-item", Jn), l.component("sv-boolean-checkbox", so), l.component("survey-multipletext", no), l.component("survey-multipletext-item", to), l.component("survey-matrix", mo), l.component("survey-matrix-cell", vo), l.component("survey-matrixdropdown", yo), l.component("survey-matrixtable", Co), l.component("survey-matrixheaderrequired", ko), l.component("survey-matrixdropdown-cell", Io), l.component("survey-matrixdynamic", wo), l.component("sv-matrix-remove-button", Ro), l.component("sv-matrix-drag-drop-icon", $o), l.component("sv-matrix-detail-button", Do), l.component("survey-paneldynamic", Bo), l.component("survey-paneldynamicprogress", Lo), l.component("survey-paneldynamicprogress-v2", No), l.component("sv-paneldynamic-add-btn", Po), l.component("sv-paneldynamic-next-btn", Mo), l.component("sv-paneldynamic-prev-btn", Eo), l.component("sv-paneldynamic-remove-btn", Wo), l.component("sv-paneldynamic-progress-text", Vo), l.component("sv-components-container", Ht), l.component("sv-progress-buttons", zt), l.component("sv-navigation-toc", Ut), l.component("sv-progress-pages", Z), l.component("sv-progress-questions", Z), l.component("sv-progress-correctquestions", Z), l.component("sv-progress-requiredquestions", Z), l.component("survey-errors", Oo), l.component("survey-question-comment", Ko), l.component("survey-element-title", jo), l.component("survey-element-title-content", Xo), l.component("sv-title-actions", xo), l.component("sv-brand-info", it), l.component("sv-svg-icon", at), l.component("sv-action-bar", ut), l.component("sv-action", ct), l.component("sv-action-bar-item", yt), l.component("sv-action-bar-item-dropdown", ht), l.component("sv-action-bar-separator", Ct), l.component("sv-list", It), l.component("sv-list-item", Rt), l.component("sv-popup", Tt), l.component("sv-popup-container", Pt), l.component("popup-pointer", At), l.component("sv-notifier", xt), l.component("survey-other-choice", ni), l.component("sv-nav-btn", ti), l.component("survey-customwidget", ri), l.component("survey-popup-modal", li), l.component("sv-character-counter", ai), l.component("survey-composite", ui), l.component("survey-custom", di), l.component("sv-timerpanel", pi), l.component("sv-loading-indicator", gi), l.component("sv-header", Ci), l.component("sv-header-cell", fi), l.component("sv-header-mobile", Ri), l.component("sv-template-renderer", $i), l.component("survey-element", Ti), l.component("survey-buttongroup", Wi), l.component("sv-button-group-item", zi), l.directive("key2click", {
|
|
5411
|
-
mounted: function(s,
|
|
5412
|
-
const e = { ...
|
|
5414
|
+
mounted: function(s, n) {
|
|
5415
|
+
const e = { ...n.value };
|
|
5413
5416
|
if (e.disableTabStop) {
|
|
5414
5417
|
s.tabIndex = -1;
|
|
5415
5418
|
return;
|
|
5416
5419
|
}
|
|
5417
|
-
e.disableTabStop || (s.tabIndex = 0), s.addEventListener("keyup", (
|
|
5418
|
-
Ue(
|
|
5419
|
-
}), s.addEventListener("blur", (
|
|
5420
|
-
Ke(
|
|
5420
|
+
e.disableTabStop || (s.tabIndex = 0), s.addEventListener("keyup", (o) => (o.preventDefault(), o.stopPropagation(), ge(o, e), !1)), s.addEventListener("keydown", (o) => {
|
|
5421
|
+
Ue(o, e);
|
|
5422
|
+
}), s.addEventListener("blur", (o) => {
|
|
5423
|
+
Ke(o);
|
|
5421
5424
|
});
|
|
5422
5425
|
}
|
|
5423
5426
|
});
|