survey-vue3-ui 1.9.120 → 1.9.121
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 +605 -590
- package/survey-vue3-ui.umd.js +1 -1
- package/types/Survey.vue.d.ts +1 -1
- package/types/SvgBundle.vue.d.ts +2 -0
package/survey-vue3-ui.es.js
CHANGED
|
@@ -1,57 +1,57 @@
|
|
|
1
|
-
import { shallowReactive as
|
|
2
|
-
import { Base as
|
|
3
|
-
|
|
4
|
-
function
|
|
1
|
+
import { shallowReactive as Ce, watch as J, onBeforeUnmount as X, onMounted as H, ref as _, shallowRef as j, triggerRef as le, unref as f, isRef as be, defineComponent as h, computed as w, onUpdated as ee, resolveComponent as v, openBlock as i, createElementBlock as u, normalizeClass as l, createVNode as b, createCommentVNode as d, Fragment as $, renderList as B, createBlock as q, resolveDynamicComponent as T, normalizeProps as F, mergeProps as W, withCtx as V, normalizeStyle as S, createElementVNode as c, onUnmounted as z, withDirectives as N, vShow as M, toDisplayString as R, vModelCheckbox as G, vModelRadio as se, vModelSelect as ke, vModelText as fe, getCurrentInstance as oe, guardReactiveProps as ye, createStaticVNode as Ie, resolveDirective as Y, toRaw as we, Teleport as Se, useSlots as Re, renderSlot as Te } from "vue";
|
|
2
|
+
import { Base as $e, RendererFactory as ne, DropdownListModel as _e, Helpers as De, DropdownMultiSelectListModel as Be, doKey2ClickUp as qe, createSvg as Le, ActionDropdownViewModel as Ne, getActionDropdownButtonTarget as Pe, createPopupViewModel as ae, SurveyProgressModel as ue, SurveyProgressButtonsModel as Ae, TOCModel as Me, PopupSurveyModel as He, settings as K, createDialogOptions as We, createPopupModalViewModel as Ee, ButtonGroupItemModel as Ve, SvgRegistry as Oe, SurveyModel as Fe, doKey2ClickDown as ze, doKey2ClickBlur as Ue } from "survey-core";
|
|
3
|
+
$e.createPropertiesHash = () => Ce({});
|
|
4
|
+
function Ke(r) {
|
|
5
5
|
return !r || r.__vueImplemented ? !1 : (r.createArrayCoreHandler = (s, o) => {
|
|
6
6
|
const e = [], n = j(e);
|
|
7
7
|
return e.onArrayChanged = () => {
|
|
8
|
-
|
|
8
|
+
le(n);
|
|
9
9
|
}, s[o] = n, f(s[o]);
|
|
10
10
|
}, r.iteratePropertiesHash((s, o) => {
|
|
11
11
|
if (Array.isArray(s[o])) {
|
|
12
12
|
const e = j(s[o]);
|
|
13
13
|
s[o].onArrayChanged = () => {
|
|
14
|
-
|
|
14
|
+
le(e);
|
|
15
15
|
}, s[o] = e;
|
|
16
16
|
}
|
|
17
17
|
}), r.getPropertyValueCoreHandler = (s, o) => f(s[o]), r.setPropertyValueCoreHandler = (s, o, e) => {
|
|
18
|
-
|
|
18
|
+
be(s[o]) ? s[o].value = e : s[o] = e;
|
|
19
19
|
}, r.__vueImplemented = !0, !0);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function de(r, s) {
|
|
22
22
|
!r || !s || (r.iteratePropertiesHash((o, e) => {
|
|
23
23
|
o[e] = f(o[e]), Array.isArray(o[e]) && (o[e].onArrayChanged = void 0);
|
|
24
24
|
}), delete r.__vueImplemented, r.createArrayCoreHandler = void 0, r.getPropertyValueCoreHandler = void 0, r.setPropertyValueCoreHandler = void 0);
|
|
25
25
|
}
|
|
26
26
|
function L(r, s, o) {
|
|
27
27
|
let e = !1;
|
|
28
|
-
const n =
|
|
28
|
+
const n = J(
|
|
29
29
|
r,
|
|
30
30
|
(t, a) => {
|
|
31
|
-
t && s && s(t, a), a && (
|
|
31
|
+
t && s && s(t, a), a && (de(a, e), o && o(a)), e = Ke(t);
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
immediate: !0
|
|
35
35
|
}
|
|
36
36
|
);
|
|
37
|
-
|
|
37
|
+
X(() => {
|
|
38
38
|
const t = r();
|
|
39
|
-
t && (
|
|
39
|
+
t && (de(t, e), o && o(t), n());
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
function A(r, s, o, e) {
|
|
43
|
-
L(() => r.question, o, e),
|
|
43
|
+
L(() => r.question, o, e), H(() => {
|
|
44
44
|
r.question && r.question.afterRenderQuestionElement(s.value);
|
|
45
|
-
}),
|
|
45
|
+
}), X(() => {
|
|
46
46
|
r.question.beforeDestroyQuestionElement(s.value);
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
function Q(r) {
|
|
50
|
-
const s =
|
|
50
|
+
const s = _(), o = (n) => {
|
|
51
51
|
s.value = n.renderedHtml, n.onChanged = () => {
|
|
52
52
|
s.value = n.renderedHtml;
|
|
53
53
|
};
|
|
54
|
-
}, e =
|
|
54
|
+
}, e = J(
|
|
55
55
|
r,
|
|
56
56
|
(n, t) => {
|
|
57
57
|
t && (t.onChanged = () => {
|
|
@@ -59,14 +59,14 @@ function Q(r) {
|
|
|
59
59
|
},
|
|
60
60
|
{ immediate: !0 }
|
|
61
61
|
);
|
|
62
|
-
return
|
|
62
|
+
return X(() => {
|
|
63
63
|
e();
|
|
64
64
|
}), s;
|
|
65
65
|
}
|
|
66
66
|
function te(r) {
|
|
67
67
|
return r.customWidget ? "survey-customwidget" : r.isDefaultRendering && r.isDefaultRendering() || r.isPanel ? "survey-" + r.getTemplate() : r.getComponentName();
|
|
68
68
|
}
|
|
69
|
-
const
|
|
69
|
+
const je = /* @__PURE__ */ h({
|
|
70
70
|
__name: "Page",
|
|
71
71
|
props: {
|
|
72
72
|
survey: {},
|
|
@@ -74,10 +74,10 @@ const Ke = /* @__PURE__ */ h({
|
|
|
74
74
|
css: {}
|
|
75
75
|
},
|
|
76
76
|
setup(r) {
|
|
77
|
-
const s = r, o =
|
|
77
|
+
const s = r, o = _(null);
|
|
78
78
|
L(() => s.page);
|
|
79
79
|
const e = w(() => s.page._showDescription), n = w(() => s.page.rows);
|
|
80
|
-
return
|
|
80
|
+
return H(() => {
|
|
81
81
|
s.survey && s.survey.afterRenderPage(o.value);
|
|
82
82
|
}), ee(() => {
|
|
83
83
|
s.survey.afterRenderPage(o.value);
|
|
@@ -101,7 +101,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
101
101
|
}, null, 8, ["locString"])
|
|
102
102
|
], 2)) : d("", !0),
|
|
103
103
|
b(y, { element: t.page }, null, 8, ["element"]),
|
|
104
|
-
(i(!0), u($, null, B(n.value, (I, C) => (i(), q(T(t.page.getSurvey().getRowWrapperComponentName(I)), F(
|
|
104
|
+
(i(!0), u($, null, B(n.value, (I, C) => (i(), q(T(t.page.getSurvey().getRowWrapperComponentName(I)), F(W({
|
|
105
105
|
key: t.page.id + "_" + C
|
|
106
106
|
}, {
|
|
107
107
|
componentData: t.page.getSurvey().getRowWrapperComponentData(I)
|
|
@@ -119,14 +119,14 @@ const Ke = /* @__PURE__ */ h({
|
|
|
119
119
|
], 2);
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
|
-
}),
|
|
122
|
+
}), Qe = /* @__PURE__ */ h({
|
|
123
123
|
__name: "Header",
|
|
124
124
|
props: {
|
|
125
125
|
survey: {}
|
|
126
126
|
},
|
|
127
127
|
setup(r) {
|
|
128
|
-
const s = r, o =
|
|
129
|
-
return
|
|
128
|
+
const s = r, o = _();
|
|
129
|
+
return H(() => {
|
|
130
130
|
var e = o.value;
|
|
131
131
|
e && s.survey && s.survey.afterRenderHeader(e);
|
|
132
132
|
}), (e, n) => {
|
|
@@ -144,13 +144,13 @@ const Ke = /* @__PURE__ */ h({
|
|
|
144
144
|
e.survey.renderedHasTitle ? (i(), u("div", {
|
|
145
145
|
key: 1,
|
|
146
146
|
class: l(e.survey.css.headerText),
|
|
147
|
-
style:
|
|
147
|
+
style: S({ maxWidth: e.survey.titleMaxWidth })
|
|
148
148
|
}, [
|
|
149
149
|
b(t, {
|
|
150
150
|
element: e.survey,
|
|
151
151
|
css: e.survey.css
|
|
152
152
|
}, null, 8, ["element", "css"]),
|
|
153
|
-
e.survey.renderedHasDescription ? (i(), u("
|
|
153
|
+
e.survey.renderedHasDescription ? (i(), u("div", {
|
|
154
154
|
key: 0,
|
|
155
155
|
class: l(e.survey.css.description)
|
|
156
156
|
}, [
|
|
@@ -169,7 +169,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
169
169
|
], 2)) : d("", !0);
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
|
-
}),
|
|
172
|
+
}), Ge = /* @__PURE__ */ h({
|
|
173
173
|
__name: "Row",
|
|
174
174
|
props: {
|
|
175
175
|
row: {},
|
|
@@ -179,7 +179,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
179
179
|
setup(r) {
|
|
180
180
|
const s = r, o = w(
|
|
181
181
|
() => s.row.visibleElements
|
|
182
|
-
), e =
|
|
182
|
+
), e = _();
|
|
183
183
|
return L(
|
|
184
184
|
() => s.row,
|
|
185
185
|
(n, t) => {
|
|
@@ -188,7 +188,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
188
188
|
(n) => {
|
|
189
189
|
n.stopLazyRendering(), n.isNeedRender = !n.isLazyRendering();
|
|
190
190
|
}
|
|
191
|
-
),
|
|
191
|
+
), H(() => {
|
|
192
192
|
if (s.row && !s.row.isNeedRender) {
|
|
193
193
|
const n = e.value;
|
|
194
194
|
setTimeout(() => {
|
|
@@ -211,9 +211,9 @@ const Ke = /* @__PURE__ */ h({
|
|
|
211
211
|
], 2);
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
|
-
}),
|
|
214
|
+
}), Je = ["id", "role", "aria-required", "aria-invalid", "aria-labelledby", "aria-expanded", "data-name"], Xe = {
|
|
215
215
|
inheritAttrs: !1
|
|
216
|
-
},
|
|
216
|
+
}, Ye = /* @__PURE__ */ h({
|
|
217
217
|
...Xe,
|
|
218
218
|
__name: "Question",
|
|
219
219
|
props: {
|
|
@@ -222,11 +222,11 @@ const Ke = /* @__PURE__ */ h({
|
|
|
222
222
|
css: {}
|
|
223
223
|
},
|
|
224
224
|
setup(r) {
|
|
225
|
-
const s = r, o =
|
|
225
|
+
const s = r, o = _(null), e = w(() => s.element.showErrorOnTop), n = w(() => s.element.showErrorOnBottom), t = (C) => C.cssContent, a = () => s.element.getRootStyle();
|
|
226
226
|
L(() => s.element);
|
|
227
227
|
const p = () => {
|
|
228
228
|
o.value && s.element.afterRender(o.value);
|
|
229
|
-
}, m =
|
|
229
|
+
}, m = J(
|
|
230
230
|
() => o.value,
|
|
231
231
|
() => {
|
|
232
232
|
p();
|
|
@@ -240,14 +240,14 @@ const Ke = /* @__PURE__ */ h({
|
|
|
240
240
|
}));
|
|
241
241
|
return z(() => {
|
|
242
242
|
m();
|
|
243
|
-
}), (C,
|
|
244
|
-
const k = v("survey-errors"),
|
|
243
|
+
}), (C, P) => {
|
|
244
|
+
const k = v("survey-errors"), D = v("survey-element-header"), E = v("survey-string"), O = v("survey-question-comment");
|
|
245
245
|
return i(), u("div", {
|
|
246
246
|
class: l(C.element.getRootCss()),
|
|
247
|
-
style:
|
|
247
|
+
style: S(a()),
|
|
248
248
|
ref_key: "root",
|
|
249
249
|
ref: o,
|
|
250
|
-
onFocusin:
|
|
250
|
+
onFocusin: P[0] || (P[0] = (U) => C.element.focusIn()),
|
|
251
251
|
id: C.element.id,
|
|
252
252
|
role: C.element.ariaRole,
|
|
253
253
|
"aria-required": C.element.ariaRequired,
|
|
@@ -261,12 +261,12 @@ const Ke = /* @__PURE__ */ h({
|
|
|
261
261
|
element: C.element,
|
|
262
262
|
location: "top"
|
|
263
263
|
}, null, 8, ["element"])) : d("", !0),
|
|
264
|
-
C.element.hasTitleOnLeftTop ? (i(), q(
|
|
264
|
+
C.element.hasTitleOnLeftTop ? (i(), q(D, {
|
|
265
265
|
key: 1,
|
|
266
266
|
element: C.element,
|
|
267
267
|
css: C.css
|
|
268
268
|
}, null, 8, ["element", "css"])) : d("", !0),
|
|
269
|
-
|
|
269
|
+
N(c("div", {
|
|
270
270
|
class: l(t(C.element) || void 0),
|
|
271
271
|
role: "presentation"
|
|
272
272
|
}, [
|
|
@@ -275,7 +275,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
275
275
|
element: C.element,
|
|
276
276
|
location: "top"
|
|
277
277
|
}, null, 8, ["element"])) : d("", !0),
|
|
278
|
-
C.element.isCollapsed ? d("", !0) : (i(), q(T(g.value), F(
|
|
278
|
+
C.element.isCollapsed ? d("", !0) : (i(), q(T(g.value), F(W({ key: 1 }, I.value)), null, 16)),
|
|
279
279
|
C.element.hasComment ? (i(), u("div", {
|
|
280
280
|
key: 2,
|
|
281
281
|
class: l(C.element.getCommentAreaCss())
|
|
@@ -303,7 +303,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
303
303
|
], 2), [
|
|
304
304
|
[M, !C.element.isCollapsed]
|
|
305
305
|
]),
|
|
306
|
-
C.element.hasTitleOnBottom ? (i(), q(
|
|
306
|
+
C.element.hasTitleOnBottom ? (i(), q(D, {
|
|
307
307
|
key: 2,
|
|
308
308
|
element: C.element,
|
|
309
309
|
css: C.css
|
|
@@ -313,13 +313,13 @@ const Ke = /* @__PURE__ */ h({
|
|
|
313
313
|
element: C.element,
|
|
314
314
|
location: "bottom"
|
|
315
315
|
}, null, 8, ["element"])) : d("", !0)
|
|
316
|
-
], 46,
|
|
316
|
+
], 46, Je);
|
|
317
317
|
};
|
|
318
318
|
}
|
|
319
|
-
}),
|
|
319
|
+
}), Ze = ["id"], xe = ["id"], es = {
|
|
320
320
|
inheritAttrs: !1
|
|
321
|
-
},
|
|
322
|
-
...
|
|
321
|
+
}, ss = /* @__PURE__ */ h({
|
|
322
|
+
...es,
|
|
323
323
|
inheritAttrs: !1,
|
|
324
324
|
__name: "Panel",
|
|
325
325
|
props: {
|
|
@@ -328,8 +328,8 @@ const Ke = /* @__PURE__ */ h({
|
|
|
328
328
|
css: {}
|
|
329
329
|
},
|
|
330
330
|
setup(r) {
|
|
331
|
-
const s = r, o =
|
|
332
|
-
return L(() => s.element),
|
|
331
|
+
const s = r, o = _(null), e = w(() => s.element.rows), n = w(() => s.element.survey);
|
|
332
|
+
return L(() => s.element), H(() => {
|
|
333
333
|
s.element.survey && s.element.survey.afterRenderPanel(s.element, o.value);
|
|
334
334
|
}), (t, a) => {
|
|
335
335
|
const p = v("survey-errors"), m = v("survey-element-header"), y = v("survey-row"), g = v("sv-action-bar");
|
|
@@ -357,10 +357,10 @@ const Ke = /* @__PURE__ */ h({
|
|
|
357
357
|
t.element.isCollapsed ? d("", !0) : (i(), u("div", {
|
|
358
358
|
key: 3,
|
|
359
359
|
id: t.element.contentId,
|
|
360
|
-
style:
|
|
360
|
+
style: S({ paddingLeft: t.element.innerPaddingLeft }),
|
|
361
361
|
class: l(t.element.cssClasses.panel.content)
|
|
362
362
|
}, [
|
|
363
|
-
(i(!0), u($, null, B(e.value, (I, C) => (i(), q(T(t.element.getSurvey().getRowWrapperComponentName(I)), F(
|
|
363
|
+
(i(!0), u($, null, B(e.value, (I, C) => (i(), q(T(t.element.getSurvey().getRowWrapperComponentName(I)), F(W({
|
|
364
364
|
key: t.element.id + "_" + C
|
|
365
365
|
}, {
|
|
366
366
|
componentData: t.element.getSurvey().getRowWrapperComponentData(I)
|
|
@@ -378,11 +378,11 @@ const Ke = /* @__PURE__ */ h({
|
|
|
378
378
|
b(g, {
|
|
379
379
|
model: t.element.getFooterToolbar()
|
|
380
380
|
}, null, 8, ["model"])
|
|
381
|
-
], 14,
|
|
382
|
-
], 42,
|
|
381
|
+
], 14, xe))
|
|
382
|
+
], 42, Ze)) : d("", !0);
|
|
383
383
|
};
|
|
384
384
|
}
|
|
385
|
-
}),
|
|
385
|
+
}), ns = /* @__PURE__ */ h({
|
|
386
386
|
__name: "ElementHeader",
|
|
387
387
|
props: {
|
|
388
388
|
element: {},
|
|
@@ -402,7 +402,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
402
402
|
element: e.element,
|
|
403
403
|
css: e.css
|
|
404
404
|
}, null, 8, ["element", "css"]),
|
|
405
|
-
e.element.hasDescriptionUnderTitle ?
|
|
405
|
+
e.element.hasDescriptionUnderTitle ? N((i(), u("div", {
|
|
406
406
|
key: 0,
|
|
407
407
|
class: l(e.element.cssDescription)
|
|
408
408
|
}, [
|
|
@@ -419,7 +419,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
419
419
|
], 2);
|
|
420
420
|
};
|
|
421
421
|
}
|
|
422
|
-
}),
|
|
422
|
+
}), os = /* @__PURE__ */ h({
|
|
423
423
|
__name: "String",
|
|
424
424
|
props: {
|
|
425
425
|
locString: {}
|
|
@@ -429,10 +429,10 @@ const Ke = /* @__PURE__ */ h({
|
|
|
429
429
|
locString: s.locString.renderAsData
|
|
430
430
|
}, null, 8, ["locString"]));
|
|
431
431
|
}
|
|
432
|
-
}),
|
|
432
|
+
}), ts = ["innerHTML"], is = {
|
|
433
433
|
key: 1,
|
|
434
434
|
class: "sv-string-viewer"
|
|
435
|
-
},
|
|
435
|
+
}, rs = /* @__PURE__ */ h({
|
|
436
436
|
__name: "StringViewer",
|
|
437
437
|
props: {
|
|
438
438
|
locString: {}
|
|
@@ -443,9 +443,9 @@ const Ke = /* @__PURE__ */ h({
|
|
|
443
443
|
key: 0,
|
|
444
444
|
class: "sv-string-viewer",
|
|
445
445
|
innerHTML: f(o)
|
|
446
|
-
}, null, 8,
|
|
446
|
+
}, null, 8, ts)) : (i(), u("span", is, R(f(o)), 1));
|
|
447
447
|
}
|
|
448
|
-
}),
|
|
448
|
+
}), ls = ["innerHTML"], as = /* @__PURE__ */ h({
|
|
449
449
|
__name: "StringEditor",
|
|
450
450
|
props: {
|
|
451
451
|
locString: {}
|
|
@@ -464,15 +464,15 @@ const Ke = /* @__PURE__ */ h({
|
|
|
464
464
|
innerHTML: n.locString.renderedHtml,
|
|
465
465
|
onBlur: o,
|
|
466
466
|
onClick: e
|
|
467
|
-
}, null, 40,
|
|
467
|
+
}, null, 40, ls)) : (i(), u("span", {
|
|
468
468
|
key: 1,
|
|
469
469
|
class: "sv-string-editor",
|
|
470
470
|
contenteditable: "true",
|
|
471
471
|
onBlur: o,
|
|
472
472
|
onClick: e
|
|
473
|
-
},
|
|
473
|
+
}, R(n.locString.renderedHtml), 33));
|
|
474
474
|
}
|
|
475
|
-
}),
|
|
475
|
+
}), us = ["id"], ds = /* @__PURE__ */ h({
|
|
476
476
|
__name: "Skeleton",
|
|
477
477
|
props: {
|
|
478
478
|
element: {}
|
|
@@ -482,23 +482,23 @@ const Ke = /* @__PURE__ */ h({
|
|
|
482
482
|
return L(() => s.element), (o, e) => (i(), u("div", {
|
|
483
483
|
class: "sv-skeleton-element",
|
|
484
484
|
id: o.element.id
|
|
485
|
-
}, null, 8,
|
|
485
|
+
}, null, 8, us));
|
|
486
486
|
}
|
|
487
|
-
}),
|
|
487
|
+
}), ms = ["id"], cs = ["value"], ps = /* @__PURE__ */ h({
|
|
488
488
|
inheritAttrs: !1,
|
|
489
489
|
__name: "Text",
|
|
490
490
|
props: {
|
|
491
491
|
question: {}
|
|
492
492
|
},
|
|
493
493
|
setup(r) {
|
|
494
|
-
const s = r, o =
|
|
494
|
+
const s = r, o = _(null);
|
|
495
495
|
return A(s, o), (e, n) => {
|
|
496
496
|
const t = v("survey-text-input");
|
|
497
497
|
return e.question.isReadOnlyRenderDiv() ? (i(), u("div", {
|
|
498
498
|
key: 0,
|
|
499
499
|
ref_key: "root",
|
|
500
500
|
ref: o
|
|
501
|
-
},
|
|
501
|
+
}, R(e.question.value), 513)) : e.question.dataListId ? (i(), u("div", {
|
|
502
502
|
key: 1,
|
|
503
503
|
ref_key: "root",
|
|
504
504
|
ref: o
|
|
@@ -507,8 +507,8 @@ const Ke = /* @__PURE__ */ h({
|
|
|
507
507
|
c("datalist", {
|
|
508
508
|
id: e.question.dataListId
|
|
509
509
|
}, [
|
|
510
|
-
(i(!0), u($, null, B(e.question.dataList, (a) => (i(), u("option", { value: a }, null, 8,
|
|
511
|
-
], 8,
|
|
510
|
+
(i(!0), u($, null, B(e.question.dataList, (a) => (i(), u("option", { value: a }, null, 8, cs))), 256))
|
|
511
|
+
], 8, ms)
|
|
512
512
|
], 512)) : (i(), q(t, {
|
|
513
513
|
key: 2,
|
|
514
514
|
question: e.question,
|
|
@@ -517,7 +517,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
517
517
|
}, null, 8, ["question"]));
|
|
518
518
|
};
|
|
519
519
|
}
|
|
520
|
-
}),
|
|
520
|
+
}), vs = ["disabled", "type", "maxlength", "min", "max", "step", "size", "id", "list", "placeholder", "autocomplete", "value", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], ys = { key: 1 }, qs = ["disabled", "type", "maxlength", "min", "max", "step", "size", "id", "list", "placeholder", "autocomplete", "value", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], gs = /* @__PURE__ */ h({
|
|
521
521
|
__name: "TextInput",
|
|
522
522
|
props: {
|
|
523
523
|
question: {}
|
|
@@ -528,7 +528,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
528
528
|
const o = w(() => s.question.inputStyle);
|
|
529
529
|
return (e, n) => {
|
|
530
530
|
const t = v("sv-character-counter");
|
|
531
|
-
return e.question.getMaxLength() ? (i(), u("div",
|
|
531
|
+
return e.question.getMaxLength() ? (i(), u("div", ys, [
|
|
532
532
|
c("input", {
|
|
533
533
|
disabled: e.question.isInputReadOnly,
|
|
534
534
|
class: l(e.question.getControlClass()),
|
|
@@ -538,7 +538,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
538
538
|
max: e.question.renderedMax,
|
|
539
539
|
step: e.question.renderedStep,
|
|
540
540
|
size: e.question.renderedInputSize,
|
|
541
|
-
style:
|
|
541
|
+
style: S(o.value),
|
|
542
542
|
id: e.question.inputId,
|
|
543
543
|
list: e.question.dataListId,
|
|
544
544
|
placeholder: e.question.renderedPlaceholder,
|
|
@@ -555,7 +555,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
555
555
|
"aria-labelledby": e.question.a11y_input_ariaLabelledBy,
|
|
556
556
|
"aria-invalid": e.question.a11y_input_ariaInvalid,
|
|
557
557
|
"aria-describedby": e.question.a11y_input_ariaDescribedBy
|
|
558
|
-
}, null, 46,
|
|
558
|
+
}, null, 46, qs),
|
|
559
559
|
b(t, {
|
|
560
560
|
counter: e.question.characterCounter,
|
|
561
561
|
remainingCharacterCounter: e.question.cssClasses.remainingCharacterCounter
|
|
@@ -570,7 +570,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
570
570
|
max: e.question.renderedMax,
|
|
571
571
|
step: e.question.renderedStep,
|
|
572
572
|
size: e.question.renderedInputSize,
|
|
573
|
-
style:
|
|
573
|
+
style: S(o.value),
|
|
574
574
|
id: e.question.inputId,
|
|
575
575
|
list: e.question.dataListId,
|
|
576
576
|
placeholder: e.question.renderedPlaceholder,
|
|
@@ -587,13 +587,13 @@ const Ke = /* @__PURE__ */ h({
|
|
|
587
587
|
"aria-labelledby": e.question.a11y_input_ariaLabelledBy,
|
|
588
588
|
"aria-invalid": e.question.a11y_input_ariaInvalid,
|
|
589
589
|
"aria-describedby": e.question.a11y_input_ariaDescribedBy
|
|
590
|
-
}, null, 46,
|
|
590
|
+
}, null, 46, vs));
|
|
591
591
|
};
|
|
592
592
|
}
|
|
593
|
-
}),
|
|
593
|
+
}), hs = ["role", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], Cs = {
|
|
594
594
|
key: 0,
|
|
595
595
|
class: "sv-hidden"
|
|
596
|
-
},
|
|
596
|
+
}, bs = { key: 7 }, ks = ["value"], ge = /* @__PURE__ */ h({
|
|
597
597
|
inheritAttrs: !1,
|
|
598
598
|
__name: "SelectBase",
|
|
599
599
|
props: {
|
|
@@ -601,7 +601,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
601
601
|
showLegend: { type: Boolean }
|
|
602
602
|
},
|
|
603
603
|
setup(r) {
|
|
604
|
-
const s = r, o =
|
|
604
|
+
const s = r, o = _(null);
|
|
605
605
|
A(s, o);
|
|
606
606
|
const e = (t) => s.question.getItemValueWrapperComponentName(t) || s.question.itemComponent, n = (t) => ({
|
|
607
607
|
componentName: s.question.itemComponent,
|
|
@@ -624,18 +624,18 @@ const Ke = /* @__PURE__ */ h({
|
|
|
624
624
|
"aria-invalid": t.question.a11y_input_ariaInvalid,
|
|
625
625
|
"aria-describedby": t.question.a11y_input_ariaDescribedBy
|
|
626
626
|
}, [
|
|
627
|
-
t.showLegend ? (i(), u("legend",
|
|
628
|
-
t.question.hasHeadItems ? (i(!0), u($, { key: 1 }, B(t.question.headItems, (m) => (i(), q(T(e(m)),
|
|
627
|
+
t.showLegend ? (i(), u("legend", Cs, R(t.question.locTitle.renderedHtml), 1)) : d("", !0),
|
|
628
|
+
t.question.hasHeadItems ? (i(!0), u($, { key: 1 }, B(t.question.headItems, (m) => (i(), q(T(e(m)), W({
|
|
629
629
|
key: m.value
|
|
630
630
|
}, n(m)), null, 16))), 128)) : d("", !0),
|
|
631
|
-
!t.question.hasColumns && !t.question.blockedRow ? (i(!0), u($, { key: 2 }, B(t.question.bodyItems, (m) => (i(), q(T(e(m)),
|
|
631
|
+
!t.question.hasColumns && !t.question.blockedRow ? (i(!0), u($, { key: 2 }, B(t.question.bodyItems, (m) => (i(), q(T(e(m)), W({
|
|
632
632
|
key: m.value
|
|
633
633
|
}, n(m)), null, 16))), 128)) : d("", !0),
|
|
634
634
|
t.question.blockedRow ? (i(), u("div", {
|
|
635
635
|
key: 3,
|
|
636
636
|
class: l(t.question.cssClasses.rootRow)
|
|
637
637
|
}, [
|
|
638
|
-
!t.question.hasColumns && t.question.blockedRow ? (i(!0), u($, { key: 0 }, B(t.question.dataChoices, (m) => (i(), q(T(e(m)),
|
|
638
|
+
!t.question.hasColumns && t.question.blockedRow ? (i(!0), u($, { key: 0 }, B(t.question.dataChoices, (m) => (i(), q(T(e(m)), W({
|
|
639
639
|
key: m.value
|
|
640
640
|
}, n(m)), null, 16))), 128)) : d("", !0)
|
|
641
641
|
], 2)) : d("", !0),
|
|
@@ -648,19 +648,19 @@ const Ke = /* @__PURE__ */ h({
|
|
|
648
648
|
class: l(t.question.getColumnClass()),
|
|
649
649
|
role: "presentation"
|
|
650
650
|
}, [
|
|
651
|
-
(i(!0), u($, null, B(m, (g) => (i(), q(T(e(g)),
|
|
651
|
+
(i(!0), u($, null, B(m, (g) => (i(), q(T(e(g)), W({
|
|
652
652
|
key: g.value
|
|
653
653
|
}, n(g)), null, 16))), 128))
|
|
654
654
|
], 2))), 128)) : d("", !0)
|
|
655
655
|
], 2)) : d("", !0),
|
|
656
|
-
t.question.hasFootItems ? (i(!0), u($, { key: 5 }, B(t.question.footItems, (m) => (i(), q(T(e(m)),
|
|
656
|
+
t.question.hasFootItems ? (i(!0), u($, { key: 5 }, B(t.question.footItems, (m) => (i(), q(T(e(m)), W({
|
|
657
657
|
key: m.value
|
|
658
658
|
}, n(m)), null, 16))), 128)) : d("", !0),
|
|
659
659
|
t.question.renderedValue && t.question.isOtherSelected ? (i(), q(p, {
|
|
660
660
|
key: 6,
|
|
661
661
|
question: t.question
|
|
662
662
|
}, null, 8, ["question"])) : d("", !0),
|
|
663
|
-
t.question.showClearButtonInContent ? (i(), u("div",
|
|
663
|
+
t.question.showClearButtonInContent ? (i(), u("div", bs, [
|
|
664
664
|
c("input", {
|
|
665
665
|
type: "button",
|
|
666
666
|
class: l(t.question.cssClasses.clearButton),
|
|
@@ -668,24 +668,24 @@ const Ke = /* @__PURE__ */ h({
|
|
|
668
668
|
t.question.clearValue();
|
|
669
669
|
}),
|
|
670
670
|
value: t.question.clearButtonCaption
|
|
671
|
-
}, null, 10,
|
|
671
|
+
}, null, 10, ks)
|
|
672
672
|
])) : d("", !0)
|
|
673
|
-
], 10,
|
|
673
|
+
], 10, hs);
|
|
674
674
|
};
|
|
675
675
|
}
|
|
676
|
-
}),
|
|
676
|
+
}), fs = /* @__PURE__ */ h({
|
|
677
677
|
inheritAttrs: !1,
|
|
678
678
|
__name: "Checkbox",
|
|
679
679
|
props: {
|
|
680
680
|
question: {}
|
|
681
681
|
},
|
|
682
682
|
setup(r) {
|
|
683
|
-
return (s, o) => (i(), q(
|
|
683
|
+
return (s, o) => (i(), q(ge, {
|
|
684
684
|
question: s.question,
|
|
685
685
|
"show-legend": !0
|
|
686
686
|
}, null, 8, ["question"]));
|
|
687
687
|
}
|
|
688
|
-
}),
|
|
688
|
+
}), Is = ["name", "value", "id", "disabled"], ws = ["name", "value", "id", "disabled"], Ss = ["xlink:href"], Rs = /* @__PURE__ */ h({
|
|
689
689
|
inheritAttrs: !1,
|
|
690
690
|
__name: "CheckboxItem",
|
|
691
691
|
props: {
|
|
@@ -720,7 +720,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
720
720
|
c("label", {
|
|
721
721
|
class: l(n.question.getLabelClass(n.item))
|
|
722
722
|
}, [
|
|
723
|
-
n.item == n.question.selectAllItem ?
|
|
723
|
+
n.item == n.question.selectAllItem ? N((i(), u("input", {
|
|
724
724
|
key: 0,
|
|
725
725
|
type: "checkbox",
|
|
726
726
|
role: "option",
|
|
@@ -730,10 +730,10 @@ const Ke = /* @__PURE__ */ h({
|
|
|
730
730
|
id: n.question.getItemId(n.item),
|
|
731
731
|
disabled: !n.question.getItemEnabled(n.item),
|
|
732
732
|
class: l(n.question.cssClasses.itemControl)
|
|
733
|
-
}, null, 10,
|
|
733
|
+
}, null, 10, Is)), [
|
|
734
734
|
[G, o.value]
|
|
735
735
|
]) : d("", !0),
|
|
736
|
-
n.item != n.question.selectAllItem ?
|
|
736
|
+
n.item != n.question.selectAllItem ? N((i(), u("input", {
|
|
737
737
|
key: 1,
|
|
738
738
|
type: "checkbox",
|
|
739
739
|
role: "option",
|
|
@@ -743,7 +743,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
743
743
|
id: n.question.getItemId(n.item),
|
|
744
744
|
disabled: !n.question.getItemEnabled(n.item),
|
|
745
745
|
class: l(n.question.cssClasses.itemControl)
|
|
746
|
-
}, null, 10,
|
|
746
|
+
}, null, 10, ws)), [
|
|
747
747
|
[G, e.value]
|
|
748
748
|
]) : d("", !0),
|
|
749
749
|
n.question.cssClasses.materialDecorator ? (i(), u("span", {
|
|
@@ -756,7 +756,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
756
756
|
}, [
|
|
757
757
|
c("use", {
|
|
758
758
|
"xlink:href": n.question.itemSvgIcon
|
|
759
|
-
}, null, 8,
|
|
759
|
+
}, null, 8, Ss)
|
|
760
760
|
], 2)) : d("", !0)
|
|
761
761
|
], 2)) : d("", !0),
|
|
762
762
|
n.hideLabel ? d("", !0) : (i(), u("span", {
|
|
@@ -771,16 +771,16 @@ const Ke = /* @__PURE__ */ h({
|
|
|
771
771
|
], 2);
|
|
772
772
|
};
|
|
773
773
|
}
|
|
774
|
-
}),
|
|
774
|
+
}), Ts = /* @__PURE__ */ h({
|
|
775
775
|
inheritAttrs: !1,
|
|
776
776
|
__name: "Radiogroup",
|
|
777
777
|
props: {
|
|
778
778
|
question: {}
|
|
779
779
|
},
|
|
780
780
|
setup(r) {
|
|
781
|
-
return (s, o) => (i(), q(
|
|
781
|
+
return (s, o) => (i(), q(ge, { question: s.question }, null, 8, ["question"]));
|
|
782
782
|
}
|
|
783
|
-
}),
|
|
783
|
+
}), $s = ["name", "value", "id", "aria-describedby", "disabled"], _s = ["xlink:href"], Ds = /* @__PURE__ */ h({
|
|
784
784
|
inheritAttrs: !1,
|
|
785
785
|
__name: "RadiogroupItem",
|
|
786
786
|
props: {
|
|
@@ -806,7 +806,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
806
806
|
onMousedown: a[1] || (a[1] = (m) => t.question.onMouseDown()),
|
|
807
807
|
class: l(o(t.item))
|
|
808
808
|
}, [
|
|
809
|
-
|
|
809
|
+
N(c("input", {
|
|
810
810
|
type: "radio",
|
|
811
811
|
name: t.question.questionName,
|
|
812
812
|
value: t.item.value,
|
|
@@ -815,7 +815,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
815
815
|
"onUpdate:modelValue": a[0] || (a[0] = (m) => n.value = m),
|
|
816
816
|
disabled: !t.question.getItemEnabled(t.item),
|
|
817
817
|
class: l(t.question.cssClasses.itemControl)
|
|
818
|
-
}, null, 10,
|
|
818
|
+
}, null, 10, $s), [
|
|
819
819
|
[se, n.value]
|
|
820
820
|
]),
|
|
821
821
|
t.question.cssClasses.materialDecorator ? (i(), u("span", {
|
|
@@ -828,7 +828,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
828
828
|
}, [
|
|
829
829
|
c("use", {
|
|
830
830
|
"xlink:href": t.question.itemSvgIcon
|
|
831
|
-
}, null, 8,
|
|
831
|
+
}, null, 8, _s)
|
|
832
832
|
], 2)) : d("", !0)
|
|
833
833
|
], 2)) : d("", !0),
|
|
834
834
|
t.hideLabel ? d("", !0) : (i(), u("span", {
|
|
@@ -843,25 +843,25 @@ const Ke = /* @__PURE__ */ h({
|
|
|
843
843
|
], 2);
|
|
844
844
|
};
|
|
845
845
|
}
|
|
846
|
-
}),
|
|
846
|
+
}), Bs = ["src"], Ls = ["title"], Ns = { key: 0 }, Ps = /* @__PURE__ */ h({
|
|
847
847
|
inheritAttrs: !1,
|
|
848
848
|
__name: "Signaturepad",
|
|
849
849
|
props: {
|
|
850
850
|
question: {}
|
|
851
851
|
},
|
|
852
852
|
setup(r) {
|
|
853
|
-
const s = r, o =
|
|
853
|
+
const s = r, o = _(null);
|
|
854
854
|
return A(s, o), (e, n) => {
|
|
855
855
|
const t = v("survey-string"), a = v("sv-svg-icon"), p = v("sv-loading-indicator");
|
|
856
856
|
return i(), u("div", {
|
|
857
857
|
class: l(e.question.cssClasses.root),
|
|
858
858
|
ref_key: "root",
|
|
859
859
|
ref: o,
|
|
860
|
-
style:
|
|
860
|
+
style: S({
|
|
861
861
|
width: e.question.renderedCanvasWidth
|
|
862
862
|
})
|
|
863
863
|
}, [
|
|
864
|
-
|
|
864
|
+
N(c("div", {
|
|
865
865
|
class: l(e.question.cssClasses.placeholder)
|
|
866
866
|
}, [
|
|
867
867
|
b(t, {
|
|
@@ -875,10 +875,10 @@ const Ke = /* @__PURE__ */ h({
|
|
|
875
875
|
key: 0,
|
|
876
876
|
class: l(e.question.cssClasses.backgroundImage),
|
|
877
877
|
src: e.question.backgroundImage,
|
|
878
|
-
style:
|
|
878
|
+
style: S({
|
|
879
879
|
width: e.question.renderedCanvasWidth
|
|
880
880
|
})
|
|
881
|
-
}, null, 14,
|
|
881
|
+
}, null, 14, Bs)) : d("", !0),
|
|
882
882
|
c("canvas", {
|
|
883
883
|
tabindex: "0",
|
|
884
884
|
class: l(e.question.cssClasses.canvas),
|
|
@@ -897,13 +897,13 @@ const Ke = /* @__PURE__ */ h({
|
|
|
897
897
|
e.question.clearValue();
|
|
898
898
|
})
|
|
899
899
|
}, [
|
|
900
|
-
e.question.cssClasses.clearButtonIconId ? d("", !0) : (i(), u("span",
|
|
900
|
+
e.question.cssClasses.clearButtonIconId ? d("", !0) : (i(), u("span", Ns, "\u2716")),
|
|
901
901
|
e.question.cssClasses.clearButtonIconId ? (i(), q(a, {
|
|
902
902
|
key: 1,
|
|
903
903
|
iconName: e.question.cssClasses.clearButtonIconId,
|
|
904
904
|
size: "auto"
|
|
905
905
|
}, null, 8, ["iconName"])) : d("", !0)
|
|
906
|
-
], 10,
|
|
906
|
+
], 10, Ls)
|
|
907
907
|
], 2)) : d("", !0),
|
|
908
908
|
e.question.showLoadingIndicator ? (i(), u("div", {
|
|
909
909
|
key: 1,
|
|
@@ -914,14 +914,14 @@ const Ke = /* @__PURE__ */ h({
|
|
|
914
914
|
], 6);
|
|
915
915
|
};
|
|
916
916
|
}
|
|
917
|
-
}),
|
|
917
|
+
}), As = ["innerHTML"], Ms = /* @__PURE__ */ h({
|
|
918
918
|
inheritAttrs: !1,
|
|
919
919
|
__name: "Html",
|
|
920
920
|
props: {
|
|
921
921
|
question: {}
|
|
922
922
|
},
|
|
923
923
|
setup(r) {
|
|
924
|
-
const s = r, o =
|
|
924
|
+
const s = r, o = _(null);
|
|
925
925
|
A(s, o);
|
|
926
926
|
const e = Q(() => s.question.locHtml);
|
|
927
927
|
return (n, t) => (i(), u("div", {
|
|
@@ -929,16 +929,16 @@ const Ke = /* @__PURE__ */ h({
|
|
|
929
929
|
ref: o,
|
|
930
930
|
class: l(n.question.renderCssRoot),
|
|
931
931
|
innerHTML: f(e)
|
|
932
|
-
}, null, 10,
|
|
932
|
+
}, null, 10, As));
|
|
933
933
|
}
|
|
934
|
-
}),
|
|
934
|
+
}), Hs = ["src", "alt", "width", "height"], Ws = ["src", "width", "height"], Es = ["src", "width", "height"], Vs = /* @__PURE__ */ h({
|
|
935
935
|
inheritAttrs: !1,
|
|
936
936
|
__name: "Image",
|
|
937
937
|
props: {
|
|
938
938
|
question: {}
|
|
939
939
|
},
|
|
940
940
|
setup(r) {
|
|
941
|
-
const s = r, o =
|
|
941
|
+
const s = r, o = _(null);
|
|
942
942
|
A(s, o);
|
|
943
943
|
const e = Q(() => s.question.locImageLink);
|
|
944
944
|
return (n, t) => {
|
|
@@ -948,14 +948,14 @@ const Ke = /* @__PURE__ */ h({
|
|
|
948
948
|
ref_key: "root",
|
|
949
949
|
ref: o
|
|
950
950
|
}, [
|
|
951
|
-
n.question.renderedMode === "image" ?
|
|
951
|
+
n.question.renderedMode === "image" ? N((i(), u("img", {
|
|
952
952
|
key: 0,
|
|
953
953
|
class: l(n.question.getImageCss()),
|
|
954
954
|
src: f(e),
|
|
955
955
|
alt: n.question.altText || n.question.title,
|
|
956
956
|
width: n.question.renderedWidth,
|
|
957
957
|
height: n.question.renderedHeight,
|
|
958
|
-
style:
|
|
958
|
+
style: S({
|
|
959
959
|
objectFit: n.question.imageFit,
|
|
960
960
|
width: n.question.renderedStyleWidth,
|
|
961
961
|
height: n.question.renderedStyleHeight
|
|
@@ -966,17 +966,17 @@ const Ke = /* @__PURE__ */ h({
|
|
|
966
966
|
onError: t[1] || (t[1] = (p) => {
|
|
967
967
|
n.question.onErrorHandler();
|
|
968
968
|
})
|
|
969
|
-
}, null, 46,
|
|
969
|
+
}, null, 46, Hs)), [
|
|
970
970
|
[M, f(e) && !n.question.contentNotLoaded]
|
|
971
971
|
]) : d("", !0),
|
|
972
|
-
n.question.renderedMode === "video" ?
|
|
972
|
+
n.question.renderedMode === "video" ? N((i(), u("video", {
|
|
973
973
|
key: 1,
|
|
974
974
|
controls: "",
|
|
975
975
|
class: l(n.question.getImageCss()),
|
|
976
976
|
src: f(e),
|
|
977
977
|
width: n.question.renderedWidth,
|
|
978
978
|
height: n.question.renderedHeight,
|
|
979
|
-
style:
|
|
979
|
+
style: S({
|
|
980
980
|
objectFit: n.question.imageFit,
|
|
981
981
|
width: n.question.renderedStyleWidth,
|
|
982
982
|
height: n.question.renderedStyleHeight
|
|
@@ -987,7 +987,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
987
987
|
onError: t[3] || (t[3] = (p) => {
|
|
988
988
|
n.question.onErrorHandler();
|
|
989
989
|
})
|
|
990
|
-
}, null, 46,
|
|
990
|
+
}, null, 46, Ws)), [
|
|
991
991
|
[M, f(e) && !n.question.contentNotLoaded]
|
|
992
992
|
]) : d("", !0),
|
|
993
993
|
n.question.renderedMode === "youtube" ? (i(), u("iframe", {
|
|
@@ -996,12 +996,12 @@ const Ke = /* @__PURE__ */ h({
|
|
|
996
996
|
src: f(e),
|
|
997
997
|
width: n.question.renderedWidth,
|
|
998
998
|
height: n.question.renderedHeight,
|
|
999
|
-
style:
|
|
999
|
+
style: S({
|
|
1000
1000
|
objectFit: n.question.imageFit,
|
|
1001
1001
|
width: n.question.renderedStyleWidth,
|
|
1002
1002
|
height: n.question.renderedStyleHeight
|
|
1003
1003
|
})
|
|
1004
|
-
}, null, 14,
|
|
1004
|
+
}, null, 14, Es)) : d("", !0),
|
|
1005
1005
|
!f(e) || n.question.contentNotLoaded ? (i(), u("div", {
|
|
1006
1006
|
key: 3,
|
|
1007
1007
|
class: l(n.question.cssClasses.noImage)
|
|
@@ -1014,28 +1014,28 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1014
1014
|
], 2);
|
|
1015
1015
|
};
|
|
1016
1016
|
}
|
|
1017
|
-
}),
|
|
1017
|
+
}), Os = /* @__PURE__ */ h({
|
|
1018
1018
|
inheritAttrs: !1,
|
|
1019
1019
|
__name: "Expression",
|
|
1020
1020
|
props: {
|
|
1021
1021
|
question: {}
|
|
1022
1022
|
},
|
|
1023
1023
|
setup(r) {
|
|
1024
|
-
const s = r, o =
|
|
1024
|
+
const s = r, o = _(null);
|
|
1025
1025
|
return A(s, o), (e, n) => (i(), u("div", {
|
|
1026
1026
|
class: l(e.question.cssClasses.root),
|
|
1027
1027
|
ref_key: "root",
|
|
1028
1028
|
ref: o
|
|
1029
|
-
},
|
|
1029
|
+
}, R(e.question.formatedValue), 3));
|
|
1030
1030
|
}
|
|
1031
|
-
}),
|
|
1031
|
+
}), Fs = ["id", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "multiple", "title", "accept", "capture"], zs = ["id", "multiple", "placeholder"], Us = /* @__PURE__ */ h({
|
|
1032
1032
|
inheritAttrs: !1,
|
|
1033
1033
|
__name: "File",
|
|
1034
1034
|
props: {
|
|
1035
1035
|
question: {}
|
|
1036
1036
|
},
|
|
1037
1037
|
setup(r) {
|
|
1038
|
-
const s = r, o =
|
|
1038
|
+
const s = r, o = _(null);
|
|
1039
1039
|
return A(s, o), (e, n) => {
|
|
1040
1040
|
const t = v("survey-string"), a = v("sv-file-choose-btn"), p = v("sv-action-bar"), m = v("sv-file-clean-btn"), y = v("sv-loading-indicator"), g = v("sv-file-video"), I = v("sv-file-preview");
|
|
1041
1041
|
return i(), u("div", {
|
|
@@ -1058,7 +1058,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1058
1058
|
title: e.question.inputTitle,
|
|
1059
1059
|
accept: e.question.acceptedTypes,
|
|
1060
1060
|
capture: e.question.renderCapture
|
|
1061
|
-
}, null, 42,
|
|
1061
|
+
}, null, 42, Fs)) : d("", !0),
|
|
1062
1062
|
e.question.isReadOnly ? (i(), u("input", {
|
|
1063
1063
|
key: 1,
|
|
1064
1064
|
type: "file",
|
|
@@ -1068,7 +1068,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1068
1068
|
multiple: e.question.allowMultiple,
|
|
1069
1069
|
placeholder: e.question.title,
|
|
1070
1070
|
style: { color: "transparent" }
|
|
1071
|
-
}, null, 10,
|
|
1071
|
+
}, null, 10, zs)) : d("", !0),
|
|
1072
1072
|
c("div", {
|
|
1073
1073
|
class: l(e.question.cssClasses.dragArea),
|
|
1074
1074
|
onDrop: n[1] || (n[1] = (...C) => e.question.onDrop && e.question.onDrop(...C)),
|
|
@@ -1101,7 +1101,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1101
1101
|
e.question.isEmpty() ? (i(), u("span", {
|
|
1102
1102
|
key: 2,
|
|
1103
1103
|
class: l(e.question.cssClasses.noFileChosen)
|
|
1104
|
-
},
|
|
1104
|
+
}, R(e.question.noFileChosenCaption), 3)) : d("", !0)
|
|
1105
1105
|
], 2)
|
|
1106
1106
|
], 2)) : d("", !0),
|
|
1107
1107
|
e.question.showRemoveButton ? (i(), q(m, {
|
|
@@ -1136,17 +1136,17 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1136
1136
|
], 2);
|
|
1137
1137
|
};
|
|
1138
1138
|
}
|
|
1139
|
-
}),
|
|
1139
|
+
}), Ks = { class: "sv-hidden" }, me = "survey-imagepicker-item", js = /* @__PURE__ */ h({
|
|
1140
1140
|
inheritAttrs: !1,
|
|
1141
1141
|
__name: "Imagepicker",
|
|
1142
1142
|
props: {
|
|
1143
1143
|
question: {}
|
|
1144
1144
|
},
|
|
1145
1145
|
setup(r) {
|
|
1146
|
-
const s = r, o =
|
|
1146
|
+
const s = r, o = _(null);
|
|
1147
1147
|
A(s, o);
|
|
1148
|
-
const e = (t) => s.question.getItemValueWrapperComponentName(t) ||
|
|
1149
|
-
componentName:
|
|
1148
|
+
const e = (t) => s.question.getItemValueWrapperComponentName(t) || me, n = (t) => ({
|
|
1149
|
+
componentName: me,
|
|
1150
1150
|
componentData: {
|
|
1151
1151
|
question: s.question,
|
|
1152
1152
|
item: t,
|
|
@@ -1158,8 +1158,8 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1158
1158
|
ref_key: "root",
|
|
1159
1159
|
ref: o
|
|
1160
1160
|
}, [
|
|
1161
|
-
c("legend",
|
|
1162
|
-
t.question.hasColumns ? d("", !0) : (i(!0), u($, { key: 0 }, B(t.question.visibleChoices, (p) => (i(), q(T(e(p)),
|
|
1161
|
+
c("legend", Ks, R(t.question.locTitle.renderedHtml), 1),
|
|
1162
|
+
t.question.hasColumns ? d("", !0) : (i(!0), u($, { key: 0 }, B(t.question.visibleChoices, (p) => (i(), q(T(e(p)), W({
|
|
1163
1163
|
key: p.value
|
|
1164
1164
|
}, n(p)), null, 16))), 128)),
|
|
1165
1165
|
t.question.hasColumns ? (i(!0), u($, { key: 1 }, B(t.question.columns, (p, m) => (i(), u("div", {
|
|
@@ -1167,13 +1167,13 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1167
1167
|
key: m,
|
|
1168
1168
|
role: "presentation"
|
|
1169
1169
|
}, [
|
|
1170
|
-
(i(!0), u($, null, B(p, (y) => (i(), q(T(e(y)),
|
|
1170
|
+
(i(!0), u($, null, B(p, (y) => (i(), q(T(e(y)), W({
|
|
1171
1171
|
key: y.value
|
|
1172
1172
|
}, n(y)), null, 16))), 128))
|
|
1173
1173
|
], 2))), 128)) : d("", !0)
|
|
1174
1174
|
], 2));
|
|
1175
1175
|
}
|
|
1176
|
-
}),
|
|
1176
|
+
}), Qs = ["name", "value", "id", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Gs = ["name", "value", "id", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Js = ["src", "width", "height", "alt"], Xs = ["src", "width", "height"], Ys = /* @__PURE__ */ h({
|
|
1177
1177
|
inheritAttrs: !1,
|
|
1178
1178
|
__name: "ImagepickerItem",
|
|
1179
1179
|
props: {
|
|
@@ -1192,7 +1192,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1192
1192
|
c("label", {
|
|
1193
1193
|
class: l(n.question.cssClasses.label)
|
|
1194
1194
|
}, [
|
|
1195
|
-
n.question.multiSelect ?
|
|
1195
|
+
n.question.multiSelect ? N((i(), u("input", {
|
|
1196
1196
|
key: 0,
|
|
1197
1197
|
type: "checkbox",
|
|
1198
1198
|
name: n.question.questionName,
|
|
@@ -1205,9 +1205,9 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1205
1205
|
"aria-invalid": n.question.ariaInvalid,
|
|
1206
1206
|
"aria-describedby": n.question.ariaDescribedBy,
|
|
1207
1207
|
class: l(n.question.cssClasses.itemControl)
|
|
1208
|
-
}, null, 10,
|
|
1208
|
+
}, null, 10, Qs)), [
|
|
1209
1209
|
[G, n.question.value]
|
|
1210
|
-
]) :
|
|
1210
|
+
]) : N((i(), u("input", {
|
|
1211
1211
|
key: 1,
|
|
1212
1212
|
type: "radio",
|
|
1213
1213
|
name: n.question.questionName,
|
|
@@ -1220,7 +1220,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1220
1220
|
"aria-invalid": n.question.ariaInvalid,
|
|
1221
1221
|
"aria-describedby": n.question.ariaDescribedBy,
|
|
1222
1222
|
class: l(n.question.cssClasses.itemControl)
|
|
1223
|
-
}, null, 10,
|
|
1223
|
+
}, null, 10, Gs)), [
|
|
1224
1224
|
[se, n.question.value]
|
|
1225
1225
|
]),
|
|
1226
1226
|
c("div", {
|
|
@@ -1246,7 +1246,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1246
1246
|
src: f(e),
|
|
1247
1247
|
width: n.question.renderedImageWidth,
|
|
1248
1248
|
height: n.question.renderedImageHeight,
|
|
1249
|
-
style:
|
|
1249
|
+
style: S({ objectFit: n.question.imageFit }),
|
|
1250
1250
|
alt: n.item.locText.renderedHtml,
|
|
1251
1251
|
onLoad: t[2] || (t[2] = (m) => {
|
|
1252
1252
|
n.question.onContentLoaded(n.item, m);
|
|
@@ -1254,7 +1254,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1254
1254
|
onError: t[3] || (t[3] = (m) => {
|
|
1255
1255
|
n.item.onErrorHandler();
|
|
1256
1256
|
})
|
|
1257
|
-
}, null, 46,
|
|
1257
|
+
}, null, 46, Js)) : d("", !0),
|
|
1258
1258
|
f(e) && !n.item.contentNotLoaded && n.question.contentMode === "video" ? (i(), u("video", {
|
|
1259
1259
|
key: 2,
|
|
1260
1260
|
controls: "",
|
|
@@ -1262,7 +1262,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1262
1262
|
src: f(e),
|
|
1263
1263
|
width: n.question.renderedImageWidth,
|
|
1264
1264
|
height: n.question.renderedImageHeight,
|
|
1265
|
-
style:
|
|
1265
|
+
style: S({ objectFit: n.question.imageFit }),
|
|
1266
1266
|
onLoadedmetadata: t[4] || (t[4] = (m) => {
|
|
1267
1267
|
n.question.onContentLoaded(n.item, m);
|
|
1268
1268
|
}),
|
|
@@ -1273,7 +1273,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1273
1273
|
!f(e) || n.item.contentNotLoaded ? (i(), u("div", {
|
|
1274
1274
|
key: 3,
|
|
1275
1275
|
class: l(n.question.cssClasses.itemNoImage),
|
|
1276
|
-
style:
|
|
1276
|
+
style: S({
|
|
1277
1277
|
width: n.question.renderedImageWidth + "px",
|
|
1278
1278
|
height: n.question.renderedImageHeight + "px",
|
|
1279
1279
|
objectFit: n.question.imageFit
|
|
@@ -1299,7 +1299,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1299
1299
|
], 2);
|
|
1300
1300
|
};
|
|
1301
1301
|
}
|
|
1302
|
-
}),
|
|
1302
|
+
}), Zs = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], xs = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], en = /* @__PURE__ */ h({
|
|
1303
1303
|
inheritAttrs: !1,
|
|
1304
1304
|
__name: "Comment",
|
|
1305
1305
|
props: {
|
|
@@ -1307,7 +1307,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1307
1307
|
css: {}
|
|
1308
1308
|
},
|
|
1309
1309
|
setup(r) {
|
|
1310
|
-
const s = r, o =
|
|
1310
|
+
const s = r, o = _(null);
|
|
1311
1311
|
A(s, o);
|
|
1312
1312
|
const e = (n) => {
|
|
1313
1313
|
const t = s.question;
|
|
@@ -1340,8 +1340,8 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1340
1340
|
"aria-labelledby": n.question.a11y_input_ariaLabelledBy,
|
|
1341
1341
|
"aria-invalid": n.question.a11y_input_ariaInvalid,
|
|
1342
1342
|
"aria-describedby": n.question.a11y_input_ariaDescribedBy,
|
|
1343
|
-
style:
|
|
1344
|
-
}, null, 46,
|
|
1343
|
+
style: S({ resize: n.question.resizeStyle })
|
|
1344
|
+
}, null, 46, Zs)) : !n.question.isReadOnlyRenderDiv() && n.question.getMaxLength() ? (i(), u("div", {
|
|
1345
1345
|
key: 1,
|
|
1346
1346
|
ref_key: "root",
|
|
1347
1347
|
ref: o
|
|
@@ -1368,8 +1368,8 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1368
1368
|
"aria-labelledby": n.question.a11y_input_ariaLabelledBy,
|
|
1369
1369
|
"aria-invalid": n.question.a11y_input_ariaInvalid,
|
|
1370
1370
|
"aria-describedby": n.question.a11y_input_ariaDescribedBy,
|
|
1371
|
-
style:
|
|
1372
|
-
}, null, 46,
|
|
1371
|
+
style: S({ resize: n.question.resizeStyle })
|
|
1372
|
+
}, null, 46, xs),
|
|
1373
1373
|
b(a, {
|
|
1374
1374
|
counter: n.question.characterCounter,
|
|
1375
1375
|
remainingCharacterCounter: n.question.cssClasses.remainingCharacterCounter
|
|
@@ -1378,17 +1378,17 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1378
1378
|
key: 2,
|
|
1379
1379
|
ref_key: "root",
|
|
1380
1380
|
ref: o
|
|
1381
|
-
},
|
|
1381
|
+
}, R(n.question.value), 513));
|
|
1382
1382
|
};
|
|
1383
1383
|
}
|
|
1384
|
-
}),
|
|
1384
|
+
}), sn = /* @__PURE__ */ h({
|
|
1385
1385
|
inheritAttrs: !1,
|
|
1386
1386
|
__name: "Dropdown",
|
|
1387
1387
|
props: {
|
|
1388
1388
|
question: {}
|
|
1389
1389
|
},
|
|
1390
1390
|
setup(r) {
|
|
1391
|
-
const s = r, o =
|
|
1391
|
+
const s = r, o = _(null);
|
|
1392
1392
|
return A(s, o), (e, n) => {
|
|
1393
1393
|
const t = v("sv-dropdown"), a = v("survey-other-choice");
|
|
1394
1394
|
return i(), u("div", {
|
|
@@ -1404,23 +1404,23 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1404
1404
|
], 2);
|
|
1405
1405
|
};
|
|
1406
1406
|
}
|
|
1407
|
-
}),
|
|
1407
|
+
}), nn = ["id", "autocomplete", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "required"], on = {
|
|
1408
1408
|
key: 0,
|
|
1409
1409
|
value: ""
|
|
1410
|
-
},
|
|
1410
|
+
}, tn = ["id"];
|
|
1411
1411
|
ne.Instance.registerRenderer(
|
|
1412
1412
|
"dropdown",
|
|
1413
1413
|
"select",
|
|
1414
1414
|
"sv-dropdown-select"
|
|
1415
1415
|
);
|
|
1416
|
-
const
|
|
1416
|
+
const rn = /* @__PURE__ */ h({
|
|
1417
1417
|
inheritAttrs: !1,
|
|
1418
1418
|
__name: "DropdownSelect",
|
|
1419
1419
|
props: {
|
|
1420
1420
|
question: {}
|
|
1421
1421
|
},
|
|
1422
1422
|
setup(r) {
|
|
1423
|
-
const s = r, o =
|
|
1423
|
+
const s = r, o = _(null);
|
|
1424
1424
|
A(s, o);
|
|
1425
1425
|
const e = (a) => {
|
|
1426
1426
|
s.question.onClick(a);
|
|
@@ -1451,7 +1451,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1451
1451
|
disabled: "",
|
|
1452
1452
|
id: a.question.inputId,
|
|
1453
1453
|
class: l(a.question.getControlClass())
|
|
1454
|
-
},
|
|
1454
|
+
}, R(a.question.readOnlyText), 11, tn)) : N((i(), u("select", {
|
|
1455
1455
|
key: 0,
|
|
1456
1456
|
id: a.question.inputId,
|
|
1457
1457
|
"onUpdate:modelValue": p[0] || (p[0] = (I) => t.value = I),
|
|
@@ -1465,13 +1465,13 @@ const tn = /* @__PURE__ */ h({
|
|
|
1465
1465
|
"aria-describedby": a.question.ariaDescribedBy,
|
|
1466
1466
|
required: a.question.isRequired
|
|
1467
1467
|
}, [
|
|
1468
|
-
a.question.allowClear ? (i(), u("option",
|
|
1468
|
+
a.question.allowClear ? (i(), u("option", on, R(a.question.placeholder), 1)) : d("", !0),
|
|
1469
1469
|
(i(!0), u($, null, B(a.question.visibleChoices, (I) => (i(), q(m, {
|
|
1470
1470
|
item: I,
|
|
1471
1471
|
key: I.id
|
|
1472
1472
|
}, null, 8, ["item"]))), 128))
|
|
1473
|
-
], 42,
|
|
1474
|
-
[
|
|
1473
|
+
], 42, nn)), [
|
|
1474
|
+
[ke, t.value]
|
|
1475
1475
|
]),
|
|
1476
1476
|
a.question.cssClasses.chevronButtonIconId ? (i(), u("div", {
|
|
1477
1477
|
key: 2,
|
|
@@ -1491,7 +1491,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1491
1491
|
], 2);
|
|
1492
1492
|
};
|
|
1493
1493
|
}
|
|
1494
|
-
}),
|
|
1494
|
+
}), ln = ["value", "disabled"], an = /* @__PURE__ */ h({
|
|
1495
1495
|
__name: "OptionItem",
|
|
1496
1496
|
props: {
|
|
1497
1497
|
item: {}
|
|
@@ -1501,46 +1501,46 @@ const tn = /* @__PURE__ */ h({
|
|
|
1501
1501
|
return L(() => s.item), (e, n) => (i(), u("option", {
|
|
1502
1502
|
value: e.item.value,
|
|
1503
1503
|
disabled: !e.item.isEnabled
|
|
1504
|
-
},
|
|
1504
|
+
}, R(f(o)), 9, ln));
|
|
1505
1505
|
}
|
|
1506
|
-
}),
|
|
1506
|
+
}), un = ["id", "disabled", "tabindex", "role", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], dn = { style: { visibility: "hidden" } }, mn = ["disabled", "inputmode", "role", "id", "tabindex", "readonly", "aria-expanded", "aria-controls", "aria-label", "aria-labelledby", "aria-activedescendant", "placeholder"], cn = ["id"], pn = /* @__PURE__ */ h({
|
|
1507
1507
|
__name: "Dropdown",
|
|
1508
1508
|
props: {
|
|
1509
1509
|
question: {}
|
|
1510
1510
|
},
|
|
1511
1511
|
setup(r) {
|
|
1512
|
-
const s = r, o =
|
|
1512
|
+
const s = r, o = _(null), e = w(() => {
|
|
1513
1513
|
const k = s.question;
|
|
1514
|
-
return k.dropdownListModel || (k.dropdownListModel = new
|
|
1514
|
+
return k.dropdownListModel || (k.dropdownListModel = new _e(k)), s.question.dropdownListModel;
|
|
1515
1515
|
}), n = (k) => {
|
|
1516
|
-
var
|
|
1517
|
-
(
|
|
1516
|
+
var D;
|
|
1517
|
+
(D = e.value) == null || D.onClick(k);
|
|
1518
1518
|
}, t = (k) => {
|
|
1519
|
-
var
|
|
1520
|
-
(
|
|
1519
|
+
var D;
|
|
1520
|
+
(D = e.value) == null || D.chevronPointerDown(k);
|
|
1521
1521
|
}, a = (k) => {
|
|
1522
|
-
var
|
|
1523
|
-
(
|
|
1522
|
+
var D;
|
|
1523
|
+
(D = e.value) == null || D.onClear(k);
|
|
1524
1524
|
}, p = (k) => {
|
|
1525
|
-
var
|
|
1526
|
-
(
|
|
1525
|
+
var D;
|
|
1526
|
+
(D = e.value) == null || D.keyHandler(k);
|
|
1527
1527
|
}, m = () => {
|
|
1528
1528
|
if (o.value) {
|
|
1529
|
-
const k = o.value,
|
|
1530
|
-
De.isTwoValueEquals(
|
|
1529
|
+
const k = o.value, D = e.value.inputStringRendered;
|
|
1530
|
+
De.isTwoValueEquals(D, k.value, !1, !0, !1) || (k.value = e.value.inputStringRendered);
|
|
1531
1531
|
}
|
|
1532
1532
|
}, y = (k) => {
|
|
1533
|
-
var
|
|
1534
|
-
(
|
|
1533
|
+
var D;
|
|
1534
|
+
(D = e.value) == null || D.onBlur(k), m();
|
|
1535
1535
|
}, g = (k) => {
|
|
1536
|
-
var
|
|
1537
|
-
(
|
|
1536
|
+
var D;
|
|
1537
|
+
(D = e.value) == null || D.onFocus(k);
|
|
1538
1538
|
}, I = (k) => {
|
|
1539
1539
|
e.value.inputStringRendered = k.target.value;
|
|
1540
1540
|
}, C = w(
|
|
1541
1541
|
() => s.question.showSelectedItemLocText
|
|
1542
|
-
),
|
|
1543
|
-
return L(() => e.value), ee(m),
|
|
1542
|
+
), P = w(() => s.question.selectedItemLocText);
|
|
1543
|
+
return L(() => e.value), ee(m), H(m), (k, D) => {
|
|
1544
1544
|
const E = v("survey-string"), O = v("sv-svg-icon"), U = v("sv-popup");
|
|
1545
1545
|
return i(), u("div", {
|
|
1546
1546
|
class: l(k.question.cssClasses.selectWrapper),
|
|
@@ -1568,21 +1568,21 @@ const tn = /* @__PURE__ */ h({
|
|
|
1568
1568
|
key: 0,
|
|
1569
1569
|
class: l(k.question.cssClasses.hintPrefix)
|
|
1570
1570
|
}, [
|
|
1571
|
-
c("span", null,
|
|
1571
|
+
c("span", null, R(e.value.hintStringPrefix), 1)
|
|
1572
1572
|
], 2)) : d("", !0),
|
|
1573
1573
|
c("div", {
|
|
1574
1574
|
class: l(k.question.cssClasses.controlValue)
|
|
1575
1575
|
}, [
|
|
1576
1576
|
C.value ? (i(), q(E, {
|
|
1577
1577
|
key: 0,
|
|
1578
|
-
locString:
|
|
1578
|
+
locString: P.value
|
|
1579
1579
|
}, null, 8, ["locString"])) : d("", !0),
|
|
1580
1580
|
e.value.showHintString ? (i(), u("div", {
|
|
1581
1581
|
key: 1,
|
|
1582
1582
|
class: l(k.question.cssClasses.hintSuffix)
|
|
1583
1583
|
}, [
|
|
1584
|
-
c("span",
|
|
1585
|
-
c("span", null,
|
|
1584
|
+
c("span", dn, R(e.value.inputStringRendered), 1),
|
|
1585
|
+
c("span", null, R(e.value.hintStringSuffix), 1)
|
|
1586
1586
|
], 2)) : d("", !0),
|
|
1587
1587
|
k.question.showInputFieldComponent ? (i(), q(T(k.question.inputFieldComponentName), {
|
|
1588
1588
|
key: 2,
|
|
@@ -1610,9 +1610,9 @@ const tn = /* @__PURE__ */ h({
|
|
|
1610
1610
|
onInput: I,
|
|
1611
1611
|
onBlur: y,
|
|
1612
1612
|
onFocus: g
|
|
1613
|
-
}, null, 42,
|
|
1613
|
+
}, null, 42, mn)
|
|
1614
1614
|
], 2),
|
|
1615
|
-
k.question.allowClear && k.question.cssClasses.cleanButtonIconId ?
|
|
1615
|
+
k.question.allowClear && k.question.cssClasses.cleanButtonIconId ? N((i(), u("div", {
|
|
1616
1616
|
key: 1,
|
|
1617
1617
|
class: l(k.question.cssClasses.cleanButton),
|
|
1618
1618
|
onClick: a,
|
|
@@ -1627,7 +1627,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1627
1627
|
], 2)), [
|
|
1628
1628
|
[M, k.question.showClearButton]
|
|
1629
1629
|
]) : d("", !0)
|
|
1630
|
-
], 42,
|
|
1630
|
+
], 42, un)),
|
|
1631
1631
|
k.question.isReadOnly ? (i(), u("div", {
|
|
1632
1632
|
key: 2,
|
|
1633
1633
|
disabled: "",
|
|
@@ -1638,8 +1638,8 @@ const tn = /* @__PURE__ */ h({
|
|
|
1638
1638
|
key: 0,
|
|
1639
1639
|
locString: k.question.selectedItemLocText
|
|
1640
1640
|
}, null, 8, ["locString"])) : d("", !0),
|
|
1641
|
-
c("div", null,
|
|
1642
|
-
], 10,
|
|
1641
|
+
c("div", null, R(k.question.readOnlyText), 1)
|
|
1642
|
+
], 10, cn)) : (i(), q(U, {
|
|
1643
1643
|
key: 1,
|
|
1644
1644
|
model: k.question.dropdownListModel.popupModel
|
|
1645
1645
|
}, null, 8, ["model"])),
|
|
@@ -1658,14 +1658,14 @@ const tn = /* @__PURE__ */ h({
|
|
|
1658
1658
|
], 2);
|
|
1659
1659
|
};
|
|
1660
1660
|
}
|
|
1661
|
-
}),
|
|
1661
|
+
}), vn = /* @__PURE__ */ h({
|
|
1662
1662
|
inheritAttrs: !1,
|
|
1663
1663
|
__name: "Tagbox",
|
|
1664
1664
|
props: {
|
|
1665
1665
|
question: {}
|
|
1666
1666
|
},
|
|
1667
1667
|
setup(r) {
|
|
1668
|
-
const s = r, o =
|
|
1668
|
+
const s = r, o = _(null);
|
|
1669
1669
|
return A(s, o), (e, n) => {
|
|
1670
1670
|
const t = v("sv-tagbox"), a = v("survey-other-choice");
|
|
1671
1671
|
return i(), u("div", {
|
|
@@ -1681,7 +1681,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1681
1681
|
], 2);
|
|
1682
1682
|
};
|
|
1683
1683
|
}
|
|
1684
|
-
}),
|
|
1684
|
+
}), yn = ["id", "tabindex", "disabled", "role", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], qn = ["id"], gn = /* @__PURE__ */ h({
|
|
1685
1685
|
__name: "Tagbox",
|
|
1686
1686
|
props: {
|
|
1687
1687
|
question: {}
|
|
@@ -1689,7 +1689,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1689
1689
|
setup(r) {
|
|
1690
1690
|
const s = r, o = w(() => {
|
|
1691
1691
|
const y = s.question;
|
|
1692
|
-
return y.dropdownListModel || (y.dropdownListModel = new
|
|
1692
|
+
return y.dropdownListModel || (y.dropdownListModel = new Be(y)), s.question.dropdownListModel;
|
|
1693
1693
|
}), e = (y) => {
|
|
1694
1694
|
var g;
|
|
1695
1695
|
(g = o.value) == null || g.onClick(y);
|
|
@@ -1707,7 +1707,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1707
1707
|
(g = o.value) == null || g.onBlur(y);
|
|
1708
1708
|
}, m = w(() => s.question.selectedChoices);
|
|
1709
1709
|
return L(() => o.value), (y, g) => {
|
|
1710
|
-
const I = v("sv-tagbox-item"), C = v("sv-tagbox-filter"),
|
|
1710
|
+
const I = v("sv-tagbox-item"), C = v("sv-tagbox-filter"), P = v("sv-svg-icon"), k = v("sv-popup");
|
|
1711
1711
|
return i(), u("div", {
|
|
1712
1712
|
class: l(y.question.cssClasses.selectWrapper),
|
|
1713
1713
|
onClick: e
|
|
@@ -1733,8 +1733,8 @@ const tn = /* @__PURE__ */ h({
|
|
|
1733
1733
|
c("div", {
|
|
1734
1734
|
class: l(y.question.cssClasses.controlValue)
|
|
1735
1735
|
}, [
|
|
1736
|
-
(i(!0), u($, null, B(m.value, (
|
|
1737
|
-
item:
|
|
1736
|
+
(i(!0), u($, null, B(m.value, (D, E) => (i(), q(I, {
|
|
1737
|
+
item: D,
|
|
1738
1738
|
question: y.question,
|
|
1739
1739
|
key: "item" + E
|
|
1740
1740
|
}, null, 8, ["item", "question"]))), 128)),
|
|
@@ -1743,13 +1743,13 @@ const tn = /* @__PURE__ */ h({
|
|
|
1743
1743
|
question: y.question
|
|
1744
1744
|
}, null, 8, ["model", "question"])
|
|
1745
1745
|
], 2),
|
|
1746
|
-
y.question.allowClear && y.question.cssClasses.cleanButtonIconId ?
|
|
1746
|
+
y.question.allowClear && y.question.cssClasses.cleanButtonIconId ? N((i(), u("div", {
|
|
1747
1747
|
key: 0,
|
|
1748
1748
|
class: l(y.question.cssClasses.cleanButton),
|
|
1749
1749
|
onClick: t,
|
|
1750
1750
|
"aria-hidden": "true"
|
|
1751
1751
|
}, [
|
|
1752
|
-
b(
|
|
1752
|
+
b(P, {
|
|
1753
1753
|
class: l(y.question.cssClasses.cleanButtonSvg),
|
|
1754
1754
|
iconName: y.question.cssClasses.cleanButtonIconId,
|
|
1755
1755
|
title: y.question.clearCaption,
|
|
@@ -1758,15 +1758,15 @@ const tn = /* @__PURE__ */ h({
|
|
|
1758
1758
|
], 2)), [
|
|
1759
1759
|
[M, y.question.showClearButton]
|
|
1760
1760
|
]) : d("", !0)
|
|
1761
|
-
], 42,
|
|
1761
|
+
], 42, yn)),
|
|
1762
1762
|
y.question.isReadOnly ? (i(), u("div", {
|
|
1763
1763
|
key: 2,
|
|
1764
1764
|
disabled: "",
|
|
1765
1765
|
id: y.question.inputId,
|
|
1766
1766
|
class: l(y.question.getControlClass())
|
|
1767
1767
|
}, [
|
|
1768
|
-
c("div", null,
|
|
1769
|
-
], 10,
|
|
1768
|
+
c("div", null, R(y.question.readOnlyText), 1)
|
|
1769
|
+
], 10, qn)) : (i(), q(k, {
|
|
1770
1770
|
key: 1,
|
|
1771
1771
|
model: o.value.popupModel
|
|
1772
1772
|
}, null, 8, ["model"])),
|
|
@@ -1776,7 +1776,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1776
1776
|
onPointerdown: n,
|
|
1777
1777
|
"aria-hidden": "true"
|
|
1778
1778
|
}, [
|
|
1779
|
-
b(
|
|
1779
|
+
b(P, {
|
|
1780
1780
|
class: l(y.question.cssClasses.chevronButtonSvg),
|
|
1781
1781
|
iconName: y.question.cssClasses.chevronButtonIconId,
|
|
1782
1782
|
size: "auto"
|
|
@@ -1785,7 +1785,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1785
1785
|
], 2);
|
|
1786
1786
|
};
|
|
1787
1787
|
}
|
|
1788
|
-
}),
|
|
1788
|
+
}), hn = { style: { visibility: "hidden" } }, Cn = ["placeholder", "disabled", "inputmode", "role", "aria-expanded", "aria-controls", "aria-label", "aria-labelledby", "aria-activedescendant", "id", "readonly", "size"], bn = /* @__PURE__ */ h({
|
|
1789
1789
|
__name: "TagboxFilter",
|
|
1790
1790
|
props: {
|
|
1791
1791
|
question: {},
|
|
@@ -1811,7 +1811,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1811
1811
|
key: 0,
|
|
1812
1812
|
class: l(a.question.cssClasses.hintPrefix)
|
|
1813
1813
|
}, [
|
|
1814
|
-
c("span", null,
|
|
1814
|
+
c("span", null, R(a.model.hintStringPrefix), 1)
|
|
1815
1815
|
], 2)) : d("", !0),
|
|
1816
1816
|
c("div", {
|
|
1817
1817
|
class: l(a.question.cssClasses.hintSuffixWrapper)
|
|
@@ -1824,10 +1824,10 @@ const tn = /* @__PURE__ */ h({
|
|
|
1824
1824
|
key: 1,
|
|
1825
1825
|
class: l(a.question.cssClasses.hintSuffix)
|
|
1826
1826
|
}, [
|
|
1827
|
-
c("span",
|
|
1828
|
-
c("span", null,
|
|
1827
|
+
c("span", hn, R(a.model.inputStringRendered), 1),
|
|
1828
|
+
c("span", null, R(a.model.hintStringSuffix), 1)
|
|
1829
1829
|
], 2)) : d("", !0),
|
|
1830
|
-
|
|
1830
|
+
N(c("input", {
|
|
1831
1831
|
type: "text",
|
|
1832
1832
|
autocomplete: "off",
|
|
1833
1833
|
"onUpdate:modelValue": p[0] || (p[0] = (y) => a.model.inputStringRendered = y),
|
|
@@ -1848,14 +1848,14 @@ const tn = /* @__PURE__ */ h({
|
|
|
1848
1848
|
onKeydown: e,
|
|
1849
1849
|
onBlur: n,
|
|
1850
1850
|
onFocus: t
|
|
1851
|
-
}, null, 42,
|
|
1852
|
-
[
|
|
1851
|
+
}, null, 42, Cn), [
|
|
1852
|
+
[fe, a.model.inputStringRendered]
|
|
1853
1853
|
])
|
|
1854
1854
|
], 2)
|
|
1855
1855
|
], 2);
|
|
1856
1856
|
};
|
|
1857
1857
|
}
|
|
1858
|
-
}),
|
|
1858
|
+
}), kn = { class: "sv-tagbox__item-text" }, fn = /* @__PURE__ */ h({
|
|
1859
1859
|
__name: "TagboxItem",
|
|
1860
1860
|
props: {
|
|
1861
1861
|
question: {},
|
|
@@ -1871,7 +1871,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1871
1871
|
class: "sv-tagbox__item",
|
|
1872
1872
|
key: e.item.key
|
|
1873
1873
|
}, [
|
|
1874
|
-
c("div",
|
|
1874
|
+
c("div", kn, [
|
|
1875
1875
|
b(t, {
|
|
1876
1876
|
locString: e.item.locText
|
|
1877
1877
|
}, null, 8, ["locString"])
|
|
@@ -1889,14 +1889,14 @@ const tn = /* @__PURE__ */ h({
|
|
|
1889
1889
|
]);
|
|
1890
1890
|
};
|
|
1891
1891
|
}
|
|
1892
|
-
}),
|
|
1892
|
+
}), In = /* @__PURE__ */ h({
|
|
1893
1893
|
inheritAttrs: !1,
|
|
1894
1894
|
__name: "Ranking",
|
|
1895
1895
|
props: {
|
|
1896
1896
|
question: {}
|
|
1897
1897
|
},
|
|
1898
1898
|
setup(r) {
|
|
1899
|
-
const s = r, o =
|
|
1899
|
+
const s = r, o = _(null);
|
|
1900
1900
|
A(s, o);
|
|
1901
1901
|
const e = (t) => s.question.getItemValueWrapperComponentName(t) || "survey-ranking-item", n = (t, a, p) => ({
|
|
1902
1902
|
componentName: s.question.getPropertyByName("itemComponent").isDefaultValue(
|
|
@@ -1917,7 +1917,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1917
1917
|
ref_key: "root",
|
|
1918
1918
|
ref: o
|
|
1919
1919
|
}, [
|
|
1920
|
-
t.question.selectToRankEnabled ? d("", !0) : (i(!0), u($, { key: 0 }, B(t.question.rankingChoices, (m, y) => (i(), q(T(e(m)),
|
|
1920
|
+
t.question.selectToRankEnabled ? d("", !0) : (i(!0), u($, { key: 0 }, B(t.question.rankingChoices, (m, y) => (i(), q(T(e(m)), W({
|
|
1921
1921
|
key: m.value + "-" + y + "-item"
|
|
1922
1922
|
}, n(m, y)), null, 16))), 128)),
|
|
1923
1923
|
t.question.selectToRankEnabled ? (i(), u("div", {
|
|
@@ -1925,7 +1925,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1925
1925
|
class: l(t.question.getContainerClasses("from")),
|
|
1926
1926
|
"data-ranking": "from-container"
|
|
1927
1927
|
}, [
|
|
1928
|
-
(i(!0), u($, null, B(t.question.unRankingChoices, (m, y) => (i(), q(T(e(m)),
|
|
1928
|
+
(i(!0), u($, null, B(t.question.unRankingChoices, (m, y) => (i(), q(T(e(m)), W({
|
|
1929
1929
|
key: m.value + "-" + y + "-item"
|
|
1930
1930
|
}, n(m, y, !0)), null, 16))), 128)),
|
|
1931
1931
|
t.question.unRankingChoices.length === 0 ? (i(), u("div", {
|
|
@@ -1946,7 +1946,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1946
1946
|
class: l(t.question.getContainerClasses("to")),
|
|
1947
1947
|
"data-ranking": "to-container"
|
|
1948
1948
|
}, [
|
|
1949
|
-
(i(!0), u($, null, B(t.question.rankingChoices, (m, y) => (i(), q(T(e(m)),
|
|
1949
|
+
(i(!0), u($, null, B(t.question.rankingChoices, (m, y) => (i(), q(T(e(m)), W({
|
|
1950
1950
|
key: m.value + "-" + y + "-item"
|
|
1951
1951
|
}, n(m, y)), null, 16))), 128)),
|
|
1952
1952
|
t.question.rankingChoices.length === 0 ? (i(), u("div", {
|
|
@@ -1961,10 +1961,10 @@ const tn = /* @__PURE__ */ h({
|
|
|
1961
1961
|
], 2);
|
|
1962
1962
|
};
|
|
1963
1963
|
}
|
|
1964
|
-
}),
|
|
1964
|
+
}), wn = ["tabindex", "data-sv-drop-target-ranking-item"], Sn = {
|
|
1965
1965
|
tabindex: "-1",
|
|
1966
1966
|
style: { outline: "none" }
|
|
1967
|
-
},
|
|
1967
|
+
}, Rn = ["xlink:href"], Tn = ["xlink:href"], $n = ["xlink:href"], _n = /* @__PURE__ */ h({
|
|
1968
1968
|
inheritAttrs: !1,
|
|
1969
1969
|
__name: "RankingItem",
|
|
1970
1970
|
props: {
|
|
@@ -1993,7 +1993,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1993
1993
|
);
|
|
1994
1994
|
})
|
|
1995
1995
|
}, [
|
|
1996
|
-
c("div",
|
|
1996
|
+
c("div", Sn, [
|
|
1997
1997
|
c("div", {
|
|
1998
1998
|
class: l(e.question.cssClasses.itemGhostNode)
|
|
1999
1999
|
}, null, 2),
|
|
@@ -2008,27 +2008,27 @@ const tn = /* @__PURE__ */ h({
|
|
|
2008
2008
|
}, [
|
|
2009
2009
|
c("use", {
|
|
2010
2010
|
"xlink:href": e.question.dragDropSvgIcon
|
|
2011
|
-
}, null, 8,
|
|
2011
|
+
}, null, 8, Rn)
|
|
2012
2012
|
], 2)),
|
|
2013
2013
|
(i(), u("svg", {
|
|
2014
2014
|
class: l(e.question.getIconFocusCss())
|
|
2015
2015
|
}, [
|
|
2016
2016
|
c("use", {
|
|
2017
2017
|
"xlink:href": e.question.arrowsSvgIcon
|
|
2018
|
-
}, null, 8,
|
|
2018
|
+
}, null, 8, Tn)
|
|
2019
2019
|
], 2))
|
|
2020
2020
|
], 2),
|
|
2021
2021
|
!e.unrankedItem && o.value ? (i(), u("div", {
|
|
2022
2022
|
key: 0,
|
|
2023
2023
|
class: l(e.question.getItemIndexClasses(e.item))
|
|
2024
|
-
},
|
|
2024
|
+
}, R(o.value), 3)) : (i(), u("div", {
|
|
2025
2025
|
key: 1,
|
|
2026
2026
|
class: l(e.question.getItemIndexClasses(e.item))
|
|
2027
2027
|
}, [
|
|
2028
2028
|
(i(), u("svg", null, [
|
|
2029
2029
|
c("use", {
|
|
2030
2030
|
"xlink:href": e.question.dashSvgIcon
|
|
2031
|
-
}, null, 8,
|
|
2031
|
+
}, null, 8, $n)
|
|
2032
2032
|
]))
|
|
2033
2033
|
], 2)),
|
|
2034
2034
|
c("div", {
|
|
@@ -2040,20 +2040,20 @@ const tn = /* @__PURE__ */ h({
|
|
|
2040
2040
|
], 2)
|
|
2041
2041
|
], 2)
|
|
2042
2042
|
])
|
|
2043
|
-
], 42,
|
|
2043
|
+
], 42, wn);
|
|
2044
2044
|
};
|
|
2045
2045
|
}
|
|
2046
|
-
}), Dn = { role: "radiogroup" },
|
|
2046
|
+
}), Dn = { role: "radiogroup" }, Bn = /* @__PURE__ */ c("legend", {
|
|
2047
2047
|
role: "presentation",
|
|
2048
2048
|
class: "sv-hidden"
|
|
2049
|
-
}, null, -1),
|
|
2049
|
+
}, null, -1), Ln = /* @__PURE__ */ h({
|
|
2050
2050
|
inheritAttrs: !1,
|
|
2051
2051
|
__name: "Rating",
|
|
2052
2052
|
props: {
|
|
2053
2053
|
question: {}
|
|
2054
2054
|
},
|
|
2055
2055
|
setup(r) {
|
|
2056
|
-
const s = r, o =
|
|
2056
|
+
const s = r, o = _(null);
|
|
2057
2057
|
A(s, o);
|
|
2058
2058
|
const e = (n) => s.question.getInputId(n);
|
|
2059
2059
|
return (n, t) => {
|
|
@@ -2064,7 +2064,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
2064
2064
|
ref: o
|
|
2065
2065
|
}, [
|
|
2066
2066
|
c("fieldset", Dn, [
|
|
2067
|
-
|
|
2067
|
+
Bn,
|
|
2068
2068
|
n.question.hasMinLabel ? (i(), u("span", {
|
|
2069
2069
|
key: 0,
|
|
2070
2070
|
class: l(n.question.cssClasses.minText)
|
|
@@ -2091,7 +2091,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
2091
2091
|
], 2);
|
|
2092
2092
|
};
|
|
2093
2093
|
}
|
|
2094
|
-
}),
|
|
2094
|
+
}), Nn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Pn = /* @__PURE__ */ h({
|
|
2095
2095
|
__name: "RatingItem",
|
|
2096
2096
|
props: {
|
|
2097
2097
|
question: {},
|
|
@@ -2119,7 +2119,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
2119
2119
|
"aria-label": o.question.ariaLabel,
|
|
2120
2120
|
"aria-invalid": o.question.ariaInvalid,
|
|
2121
2121
|
"aria-describedby": o.question.ariaDescribedBy
|
|
2122
|
-
}, null, 8,
|
|
2122
|
+
}, null, 8, Nn),
|
|
2123
2123
|
c("span", {
|
|
2124
2124
|
class: l(o.question.cssClasses.itemText)
|
|
2125
2125
|
}, [
|
|
@@ -2130,7 +2130,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
2130
2130
|
], 34);
|
|
2131
2131
|
};
|
|
2132
2132
|
}
|
|
2133
|
-
}),
|
|
2133
|
+
}), An = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Mn = /* @__PURE__ */ h({
|
|
2134
2134
|
__name: "RatingItemSmiley",
|
|
2135
2135
|
props: {
|
|
2136
2136
|
question: {},
|
|
@@ -2144,7 +2144,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
2144
2144
|
return i(), u("label", {
|
|
2145
2145
|
key: o.item.value,
|
|
2146
2146
|
onMousedown: e[1] || (e[1] = (t) => o.question.onMouseDown()),
|
|
2147
|
-
style:
|
|
2147
|
+
style: S(o.question.getItemStyle(o.item.itemValue, o.item.highlight)),
|
|
2148
2148
|
class: l(o.question.getItemClass(o.item.itemValue, o.item.highlight)),
|
|
2149
2149
|
onMouseover: e[2] || (e[2] = (t) => o.question.onItemMouseIn(o.item)),
|
|
2150
2150
|
onMouseleave: e[3] || (e[3] = (t) => o.question.onItemMouseOut(o.item))
|
|
@@ -2161,7 +2161,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
2161
2161
|
"aria-label": o.question.ariaLabel,
|
|
2162
2162
|
"aria-invalid": o.question.ariaInvalid,
|
|
2163
2163
|
"aria-describedby": o.question.ariaDescribedBy
|
|
2164
|
-
}, null, 8,
|
|
2164
|
+
}, null, 8, An),
|
|
2165
2165
|
b(n, {
|
|
2166
2166
|
iconName: o.question.getItemSmileyIconName(o.item.itemValue),
|
|
2167
2167
|
size: "auto",
|
|
@@ -2170,7 +2170,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
2170
2170
|
], 38);
|
|
2171
2171
|
};
|
|
2172
2172
|
}
|
|
2173
|
-
}),
|
|
2173
|
+
}), Hn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Wn = /* @__PURE__ */ h({
|
|
2174
2174
|
__name: "RatingItemStar",
|
|
2175
2175
|
props: {
|
|
2176
2176
|
question: {},
|
|
@@ -2200,7 +2200,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
2200
2200
|
"aria-label": o.question.ariaLabel,
|
|
2201
2201
|
"aria-invalid": o.question.ariaInvalid,
|
|
2202
2202
|
"aria-describedby": o.question.ariaDescribedBy
|
|
2203
|
-
}, null, 8,
|
|
2203
|
+
}, null, 8, Hn),
|
|
2204
2204
|
b(n, {
|
|
2205
2205
|
class: l("sv-star"),
|
|
2206
2206
|
iconName: o.question.itemStarIcon,
|
|
@@ -2216,10 +2216,10 @@ const tn = /* @__PURE__ */ h({
|
|
|
2216
2216
|
], 34);
|
|
2217
2217
|
};
|
|
2218
2218
|
}
|
|
2219
|
-
}),
|
|
2219
|
+
}), En = { class: "sd-rating-dropdown-item" }, Vn = { class: "sd-rating-dropdown-item_text" }, On = {
|
|
2220
2220
|
key: 0,
|
|
2221
2221
|
class: "sd-rating-dropdown-item_description"
|
|
2222
|
-
},
|
|
2222
|
+
}, Fn = /* @__PURE__ */ h({
|
|
2223
2223
|
__name: "RatingDropdownItem",
|
|
2224
2224
|
props: {
|
|
2225
2225
|
item: {}
|
|
@@ -2228,9 +2228,9 @@ const tn = /* @__PURE__ */ h({
|
|
|
2228
2228
|
const s = r;
|
|
2229
2229
|
return L(() => s.item), (o, e) => {
|
|
2230
2230
|
const n = v("survey-string");
|
|
2231
|
-
return i(), u("div",
|
|
2232
|
-
c("span",
|
|
2233
|
-
o.item.description ? (i(), u("div",
|
|
2231
|
+
return i(), u("div", En, [
|
|
2232
|
+
c("span", Vn, R(o.item.title), 1),
|
|
2233
|
+
o.item.description ? (i(), u("div", On, [
|
|
2234
2234
|
b(n, {
|
|
2235
2235
|
locString: o.item.description
|
|
2236
2236
|
}, null, 8, ["locString"])
|
|
@@ -2244,14 +2244,14 @@ ne.Instance.registerRenderer(
|
|
|
2244
2244
|
"dropdown",
|
|
2245
2245
|
"sv-rating-dropdown"
|
|
2246
2246
|
);
|
|
2247
|
-
const
|
|
2247
|
+
const zn = /* @__PURE__ */ h({
|
|
2248
2248
|
inheritAttrs: !1,
|
|
2249
2249
|
__name: "RatingDropdown",
|
|
2250
2250
|
props: {
|
|
2251
2251
|
question: {}
|
|
2252
2252
|
},
|
|
2253
2253
|
setup(r) {
|
|
2254
|
-
const s = r, o =
|
|
2254
|
+
const s = r, o = _(null);
|
|
2255
2255
|
return A(s, o), (e, n) => {
|
|
2256
2256
|
const t = v("sv-dropdown");
|
|
2257
2257
|
return i(), u("div", {
|
|
@@ -2263,14 +2263,14 @@ const Fn = /* @__PURE__ */ h({
|
|
|
2263
2263
|
], 2);
|
|
2264
2264
|
};
|
|
2265
2265
|
}
|
|
2266
|
-
}),
|
|
2266
|
+
}), Un = ["name", "value", "id", ".indeterminate", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Kn = /* @__PURE__ */ h({
|
|
2267
2267
|
inheritAttrs: !1,
|
|
2268
2268
|
__name: "BooleanSwitch",
|
|
2269
2269
|
props: {
|
|
2270
2270
|
question: {}
|
|
2271
2271
|
},
|
|
2272
2272
|
setup(r) {
|
|
2273
|
-
const s = r, o =
|
|
2273
|
+
const s = r, o = _(null);
|
|
2274
2274
|
A(s, o);
|
|
2275
2275
|
const e = (t, a) => {
|
|
2276
2276
|
s.question.onLabelClick(t, a);
|
|
@@ -2289,7 +2289,7 @@ const Fn = /* @__PURE__ */ h({
|
|
|
2289
2289
|
c("label", {
|
|
2290
2290
|
class: l(t.question.getItemCss())
|
|
2291
2291
|
}, [
|
|
2292
|
-
|
|
2292
|
+
N(c("input", {
|
|
2293
2293
|
type: "checkbox",
|
|
2294
2294
|
name: t.question.name,
|
|
2295
2295
|
value: (m = t.question.booleanValue) != null ? m : "",
|
|
@@ -2302,7 +2302,7 @@ const Fn = /* @__PURE__ */ h({
|
|
|
2302
2302
|
"aria-label": t.question.ariaLabel,
|
|
2303
2303
|
"aria-invalid": t.question.ariaInvalid,
|
|
2304
2304
|
"aria-describedby": t.question.ariaDescribedBy
|
|
2305
|
-
}, null, 42,
|
|
2305
|
+
}, null, 42, Un), [
|
|
2306
2306
|
[G, t.question.booleanValue]
|
|
2307
2307
|
]),
|
|
2308
2308
|
c("div", {
|
|
@@ -2356,14 +2356,14 @@ ne.Instance.registerRenderer(
|
|
|
2356
2356
|
"radio",
|
|
2357
2357
|
"sv-boolean-radio"
|
|
2358
2358
|
);
|
|
2359
|
-
const
|
|
2359
|
+
const jn = /* @__PURE__ */ h({
|
|
2360
2360
|
inheritAttrs: !1,
|
|
2361
2361
|
__name: "BooleanRadio",
|
|
2362
2362
|
props: {
|
|
2363
2363
|
question: {}
|
|
2364
2364
|
},
|
|
2365
2365
|
setup(r) {
|
|
2366
|
-
const s =
|
|
2366
|
+
const s = _(null);
|
|
2367
2367
|
return A(r, s), (e, n) => {
|
|
2368
2368
|
const t = v("sv-boolean-radio-item");
|
|
2369
2369
|
return i(), u("div", {
|
|
@@ -2391,7 +2391,7 @@ const Kn = /* @__PURE__ */ h({
|
|
|
2391
2391
|
], 2);
|
|
2392
2392
|
};
|
|
2393
2393
|
}
|
|
2394
|
-
}),
|
|
2394
|
+
}), Qn = ["name", "value", "checked", "aria-describedby", "disabled"], Gn = ["xlink:href"], Jn = /* @__PURE__ */ h({
|
|
2395
2395
|
__name: "BooleanRadioItem",
|
|
2396
2396
|
props: {
|
|
2397
2397
|
question: {},
|
|
@@ -2421,7 +2421,7 @@ const Kn = /* @__PURE__ */ h({
|
|
|
2421
2421
|
disabled: e.question.isInputReadOnly,
|
|
2422
2422
|
class: l(e.question.cssClasses.itemRadioControl),
|
|
2423
2423
|
onChange: o
|
|
2424
|
-
}, null, 42,
|
|
2424
|
+
}, null, 42, Qn),
|
|
2425
2425
|
e.question.cssClasses.materialRadioDecorator ? (i(), u("span", {
|
|
2426
2426
|
key: 0,
|
|
2427
2427
|
class: l(e.question.cssClasses.materialRadioDecorator)
|
|
@@ -2432,7 +2432,7 @@ const Kn = /* @__PURE__ */ h({
|
|
|
2432
2432
|
}, [
|
|
2433
2433
|
c("use", {
|
|
2434
2434
|
"xlink:href": e.question.itemSvgIcon
|
|
2435
|
-
}, null, 8,
|
|
2435
|
+
}, null, 8, Gn)
|
|
2436
2436
|
], 2)) : d("", !0)
|
|
2437
2437
|
], 2)) : d("", !0),
|
|
2438
2438
|
c("span", {
|
|
@@ -2444,13 +2444,13 @@ const Kn = /* @__PURE__ */ h({
|
|
|
2444
2444
|
], 2);
|
|
2445
2445
|
};
|
|
2446
2446
|
}
|
|
2447
|
-
}), Xn = ["name", "value", "id", ".indeterminate", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"],
|
|
2447
|
+
}), Xn = ["name", "value", "id", ".indeterminate", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Yn = ["xlink:href"], Zn = /* @__PURE__ */ c("span", { class: "check" }, null, -1), xn = ["id"];
|
|
2448
2448
|
ne.Instance.registerRenderer(
|
|
2449
2449
|
"boolean",
|
|
2450
2450
|
"checkbox",
|
|
2451
2451
|
"sv-boolean-checkbox"
|
|
2452
2452
|
);
|
|
2453
|
-
const
|
|
2453
|
+
const eo = /* @__PURE__ */ h({
|
|
2454
2454
|
inheritAttrs: !1,
|
|
2455
2455
|
__name: "BooleanCheckbox",
|
|
2456
2456
|
props: {
|
|
@@ -2458,7 +2458,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2458
2458
|
css: {}
|
|
2459
2459
|
},
|
|
2460
2460
|
setup(r) {
|
|
2461
|
-
const s = r, o =
|
|
2461
|
+
const s = r, o = _(null);
|
|
2462
2462
|
return A(s, o), (e, n) => {
|
|
2463
2463
|
var m;
|
|
2464
2464
|
const t = v("survey-element-title-content"), a = v("sv-title-actions"), p = v("survey-string");
|
|
@@ -2473,7 +2473,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2473
2473
|
c("label", {
|
|
2474
2474
|
class: l(e.question.cssClasses.checkboxLabel)
|
|
2475
2475
|
}, [
|
|
2476
|
-
|
|
2476
|
+
N(c("input", {
|
|
2477
2477
|
type: "checkbox",
|
|
2478
2478
|
name: e.question.name,
|
|
2479
2479
|
value: (m = e.question.booleanValue) != null ? m : "",
|
|
@@ -2498,9 +2498,9 @@ const xn = /* @__PURE__ */ h({
|
|
|
2498
2498
|
}, [
|
|
2499
2499
|
c("use", {
|
|
2500
2500
|
"xlink:href": e.question.svgIcon
|
|
2501
|
-
}, null, 8,
|
|
2501
|
+
}, null, 8, Yn)
|
|
2502
2502
|
], 2)) : d("", !0),
|
|
2503
|
-
|
|
2503
|
+
Zn
|
|
2504
2504
|
], 2),
|
|
2505
2505
|
e.question.isLabelRendered ? (i(), u("span", {
|
|
2506
2506
|
key: 0,
|
|
@@ -2517,7 +2517,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2517
2517
|
element: e.question,
|
|
2518
2518
|
css: e.css
|
|
2519
2519
|
}, null, 8, ["element", "css"])) : d("", !0)
|
|
2520
|
-
], 10,
|
|
2520
|
+
], 10, xn)) : d("", !0)
|
|
2521
2521
|
], 2),
|
|
2522
2522
|
e.question.canRenderLabelDescription ? (i(), u("div", {
|
|
2523
2523
|
key: 0,
|
|
@@ -2531,14 +2531,14 @@ const xn = /* @__PURE__ */ h({
|
|
|
2531
2531
|
], 2);
|
|
2532
2532
|
};
|
|
2533
2533
|
}
|
|
2534
|
-
}),
|
|
2534
|
+
}), so = /* @__PURE__ */ h({
|
|
2535
2535
|
inheritAttrs: !1,
|
|
2536
2536
|
__name: "Multipletext",
|
|
2537
2537
|
props: {
|
|
2538
2538
|
question: {}
|
|
2539
2539
|
},
|
|
2540
2540
|
setup(r) {
|
|
2541
|
-
const s = r, o =
|
|
2541
|
+
const s = r, o = _(null), e = w(() => s.question.getRows());
|
|
2542
2542
|
return A(s, o), (n, t) => {
|
|
2543
2543
|
const a = v("survey-multipletext-item");
|
|
2544
2544
|
return i(), u("table", {
|
|
@@ -2569,7 +2569,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2569
2569
|
], 2);
|
|
2570
2570
|
};
|
|
2571
2571
|
}
|
|
2572
|
-
}),
|
|
2572
|
+
}), no = { key: 1 }, oo = /* @__PURE__ */ h({
|
|
2573
2573
|
__name: "MultipletextItem",
|
|
2574
2574
|
props: {
|
|
2575
2575
|
question: {},
|
|
@@ -2589,22 +2589,23 @@ const xn = /* @__PURE__ */ h({
|
|
|
2589
2589
|
class: l(n.question.getItemLabelCss(e.value))
|
|
2590
2590
|
}, [
|
|
2591
2591
|
c("span", {
|
|
2592
|
-
class: l(n.question.getItemTitleCss())
|
|
2592
|
+
class: l(n.question.getItemTitleCss()),
|
|
2593
|
+
style: S({ minWidth: n.question.itemTitleWidth, width: n.question.itemTitleWidth })
|
|
2593
2594
|
}, [
|
|
2594
2595
|
e.value.editor.isRequireTextBeforeTitle || e.value.editor.isRequireTextOnStart ? (i(), u("span", {
|
|
2595
2596
|
key: 0,
|
|
2596
2597
|
class: l(n.question.cssClasses.requiredText)
|
|
2597
|
-
},
|
|
2598
|
+
}, R(e.value.editor.requiredText), 3)) : d("", !0),
|
|
2598
2599
|
b(a, {
|
|
2599
2600
|
locString: e.value.locTitle
|
|
2600
2601
|
}, null, 8, ["locString"]),
|
|
2601
|
-
e.value.editor.isRequireTextAfterTitle ? (i(), u("span",
|
|
2602
|
+
e.value.editor.isRequireTextAfterTitle ? (i(), u("span", no, "\xA0")) : d("", !0),
|
|
2602
2603
|
e.value.editor.isRequireTextAfterTitle ? (i(), u("span", {
|
|
2603
2604
|
key: 2,
|
|
2604
2605
|
"aria-hidden": "true",
|
|
2605
2606
|
class: l(n.question.cssClasses.requiredText)
|
|
2606
|
-
},
|
|
2607
|
-
],
|
|
2607
|
+
}, R(e.value.editor.requiredText), 3)) : d("", !0)
|
|
2608
|
+
], 6),
|
|
2608
2609
|
(i(), u("div", {
|
|
2609
2610
|
key: e.value.editor.id,
|
|
2610
2611
|
class: l(n.question.getItemCss()),
|
|
@@ -2617,14 +2618,14 @@ const xn = /* @__PURE__ */ h({
|
|
|
2617
2618
|
], 2));
|
|
2618
2619
|
};
|
|
2619
2620
|
}
|
|
2620
|
-
}),
|
|
2621
|
+
}), to = { class: "sv-hidden" }, io = { key: 0 }, ro = { key: 0 }, lo = ["onClick"], ao = ["data-responsive-title", "onClick"], uo = ["name", "onUpdate:modelValue", "value", "disabled", "id", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], mo = ["xlink:href"], co = /* @__PURE__ */ h({
|
|
2621
2622
|
inheritAttrs: !1,
|
|
2622
2623
|
__name: "Matrix",
|
|
2623
2624
|
props: {
|
|
2624
2625
|
question: {}
|
|
2625
2626
|
},
|
|
2626
2627
|
setup(r) {
|
|
2627
|
-
const s = r, o =
|
|
2628
|
+
const s = r, o = _(null), e = j();
|
|
2628
2629
|
A(
|
|
2629
2630
|
s,
|
|
2630
2631
|
o,
|
|
@@ -2649,17 +2650,17 @@ const xn = /* @__PURE__ */ h({
|
|
|
2649
2650
|
ref: o
|
|
2650
2651
|
}, [
|
|
2651
2652
|
c("fieldset", null, [
|
|
2652
|
-
c("legend",
|
|
2653
|
+
c("legend", to, R(t.question.locTitle.renderedHtml), 1),
|
|
2653
2654
|
c("table", {
|
|
2654
2655
|
class: l(t.question.getTableCss())
|
|
2655
2656
|
}, [
|
|
2656
|
-
t.question.showHeader ? (i(), u("thead",
|
|
2657
|
+
t.question.showHeader ? (i(), u("thead", io, [
|
|
2657
2658
|
c("tr", null, [
|
|
2658
|
-
t.question.hasRows ? (i(), u("td",
|
|
2659
|
+
t.question.hasRows ? (i(), u("td", ro)) : d("", !0),
|
|
2659
2660
|
(i(!0), u($, null, B(t.question.visibleColumns, (m, y) => (i(), u("th", {
|
|
2660
2661
|
key: y,
|
|
2661
2662
|
class: l(t.question.cssClasses.headerCell),
|
|
2662
|
-
style:
|
|
2663
|
+
style: S({
|
|
2663
2664
|
minWidth: t.question.columnMinWidth,
|
|
2664
2665
|
width: t.question.columnMinWidth
|
|
2665
2666
|
})
|
|
@@ -2682,9 +2683,9 @@ const xn = /* @__PURE__ */ h({
|
|
|
2682
2683
|
key: "row_" + m.name + "_" + y,
|
|
2683
2684
|
class: l(m.rowClasses || void 0)
|
|
2684
2685
|
}, [
|
|
2685
|
-
|
|
2686
|
+
N(c("td", {
|
|
2686
2687
|
class: l(t.question.cssClasses.rowTextCell),
|
|
2687
|
-
style:
|
|
2688
|
+
style: S({
|
|
2688
2689
|
minWidth: t.question.rowTitleWidth,
|
|
2689
2690
|
width: t.question.rowTitleWidth
|
|
2690
2691
|
})
|
|
@@ -2710,7 +2711,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2710
2711
|
b(p, {
|
|
2711
2712
|
locString: t.question.getCellDisplayLocText(m.name, g)
|
|
2712
2713
|
}, null, 8, ["locString"])
|
|
2713
|
-
], 10,
|
|
2714
|
+
], 10, lo))), 128)) : d("", !0),
|
|
2714
2715
|
t.question.hasCellText ? d("", !0) : (i(!0), u($, { key: 1 }, B(t.question.visibleColumns, (g, I) => (i(), u("td", {
|
|
2715
2716
|
key: I,
|
|
2716
2717
|
"data-responsive-title": g.locText.renderedHtml,
|
|
@@ -2721,7 +2722,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2721
2722
|
onMousedown: a[0] || (a[0] = (C) => t.question.onMouseDown()),
|
|
2722
2723
|
class: l(t.question.getItemClass(m, g))
|
|
2723
2724
|
}, [
|
|
2724
|
-
|
|
2725
|
+
N(c("input", {
|
|
2725
2726
|
type: "radio",
|
|
2726
2727
|
class: l(t.question.cssClasses.itemValue),
|
|
2727
2728
|
name: m.fullName,
|
|
@@ -2733,7 +2734,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2733
2734
|
"aria-label": t.question.getCellAriaLabel(m.locText.renderedHtml, g.locText.renderedHtml),
|
|
2734
2735
|
"aria-invalid": t.question.a11y_input_ariaInvalid,
|
|
2735
2736
|
"aria-describedby": t.question.a11y_input_ariaDescribedBy
|
|
2736
|
-
}, null, 10,
|
|
2737
|
+
}, null, 10, uo), [
|
|
2737
2738
|
[se, m.value]
|
|
2738
2739
|
]),
|
|
2739
2740
|
c("span", {
|
|
@@ -2745,10 +2746,10 @@ const xn = /* @__PURE__ */ h({
|
|
|
2745
2746
|
}, [
|
|
2746
2747
|
c("use", {
|
|
2747
2748
|
"xlink:href": t.question.itemSvgIcon
|
|
2748
|
-
}, null, 8,
|
|
2749
|
+
}, null, 8, mo)
|
|
2749
2750
|
], 2)) : d("", !0)
|
|
2750
2751
|
], 2),
|
|
2751
|
-
|
|
2752
|
+
N(c("span", {
|
|
2752
2753
|
class: l(t.question.cssClasses.cellResponsiveTitle)
|
|
2753
2754
|
}, [
|
|
2754
2755
|
b(p, {
|
|
@@ -2758,7 +2759,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2758
2759
|
[M, t.question.isMobile]
|
|
2759
2760
|
])
|
|
2760
2761
|
], 34)
|
|
2761
|
-
], 10,
|
|
2762
|
+
], 10, ao))), 128))
|
|
2762
2763
|
], 2))), 128))
|
|
2763
2764
|
])
|
|
2764
2765
|
], 2)
|
|
@@ -2766,14 +2767,14 @@ const xn = /* @__PURE__ */ h({
|
|
|
2766
2767
|
], 2);
|
|
2767
2768
|
};
|
|
2768
2769
|
}
|
|
2769
|
-
}),
|
|
2770
|
+
}), po = /* @__PURE__ */ h({
|
|
2770
2771
|
inheritAttrs: !1,
|
|
2771
2772
|
__name: "MatrixDropdown",
|
|
2772
2773
|
props: {
|
|
2773
2774
|
question: {}
|
|
2774
2775
|
},
|
|
2775
2776
|
setup(r) {
|
|
2776
|
-
const s = r, o =
|
|
2777
|
+
const s = r, o = _(null);
|
|
2777
2778
|
return A(s, o), (e, n) => {
|
|
2778
2779
|
const t = v("survey-matrixtable");
|
|
2779
2780
|
return i(), q(t, {
|
|
@@ -2783,7 +2784,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2783
2784
|
}, null, 8, ["question"]);
|
|
2784
2785
|
};
|
|
2785
2786
|
}
|
|
2786
|
-
}),
|
|
2787
|
+
}), vo = { key: 0 }, yo = ["data-sv-drop-target-matrix-row", "onPointerdown"], qo = { key: 1 }, go = /* @__PURE__ */ h({
|
|
2787
2788
|
__name: "MatrixTable",
|
|
2788
2789
|
props: {
|
|
2789
2790
|
question: {}
|
|
@@ -2806,19 +2807,19 @@ const xn = /* @__PURE__ */ h({
|
|
|
2806
2807
|
), (e, n) => {
|
|
2807
2808
|
const t = v("survey-string"), a = v("survey-matrixheaderrequired"), p = v("survey-matrixcell");
|
|
2808
2809
|
return i(), u("div", {
|
|
2809
|
-
style:
|
|
2810
|
+
style: S({ overflowX: e.question.showHorizontalScroll ? "scroll" : "" }),
|
|
2810
2811
|
class: l(e.question.cssClasses.tableWrapper)
|
|
2811
2812
|
}, [
|
|
2812
2813
|
c("table", {
|
|
2813
2814
|
class: l(e.question.getTableCss())
|
|
2814
2815
|
}, [
|
|
2815
|
-
o.value.showHeader ? (i(), u("thead",
|
|
2816
|
+
o.value.showHeader ? (i(), u("thead", vo, [
|
|
2816
2817
|
c("tr", null, [
|
|
2817
2818
|
(i(!0), u($, null, B(o.value.headerRow.cells, (m) => (i(), u($, null, [
|
|
2818
2819
|
m.hasTitle ? (i(), u("th", {
|
|
2819
2820
|
key: "header_" + m.id,
|
|
2820
2821
|
class: l(m.className),
|
|
2821
|
-
style:
|
|
2822
|
+
style: S({ minWidth: m.minWidth, width: m.width })
|
|
2822
2823
|
}, [
|
|
2823
2824
|
(i(), q(T(e.question.getColumnHeaderWrapperComponentName(m)), {
|
|
2824
2825
|
componentData: e.question.getColumnHeaderWrapperComponentData(m)
|
|
@@ -2839,7 +2840,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2839
2840
|
m.hasTitle ? d("", !0) : (i(), u("td", {
|
|
2840
2841
|
class: l(m.className),
|
|
2841
2842
|
key: "header_" + m.id,
|
|
2842
|
-
style:
|
|
2843
|
+
style: S({ minWidth: m.minWidth, width: m.width })
|
|
2843
2844
|
}, null, 6))
|
|
2844
2845
|
], 64))), 256))
|
|
2845
2846
|
])
|
|
@@ -2859,10 +2860,10 @@ const xn = /* @__PURE__ */ h({
|
|
|
2859
2860
|
question: e.question,
|
|
2860
2861
|
key: m.id + "_" + g
|
|
2861
2862
|
}, null, 8, ["cell", "question"]))), 128))
|
|
2862
|
-
], 42,
|
|
2863
|
+
], 42, yo)) : d("", !0)
|
|
2863
2864
|
], 64))), 128))
|
|
2864
2865
|
]),
|
|
2865
|
-
o.value.showFooter ? (i(), u("tfoot",
|
|
2866
|
+
o.value.showFooter ? (i(), u("tfoot", qo, [
|
|
2866
2867
|
c("tr", null, [
|
|
2867
2868
|
(i(!0), u($, null, B(o.value.footerRow.cells, (m, y) => (i(), q(p, {
|
|
2868
2869
|
cell: m,
|
|
@@ -2875,7 +2876,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2875
2876
|
], 6);
|
|
2876
2877
|
};
|
|
2877
2878
|
}
|
|
2878
|
-
}),
|
|
2879
|
+
}), ho = /* @__PURE__ */ c("span", null, "\xA0", -1), Co = /* @__PURE__ */ h({
|
|
2879
2880
|
__name: "MatrixHeaderRequired",
|
|
2880
2881
|
props: {
|
|
2881
2882
|
question: {},
|
|
@@ -2884,22 +2885,22 @@ const xn = /* @__PURE__ */ h({
|
|
|
2884
2885
|
setup(r) {
|
|
2885
2886
|
const s = r;
|
|
2886
2887
|
return L(() => s.column), (o, e) => o.column.isRenderedRequired ? (i(), u($, { key: 0 }, [
|
|
2887
|
-
|
|
2888
|
+
ho,
|
|
2888
2889
|
o.column.isRenderedRequired ? (i(), u("span", {
|
|
2889
2890
|
key: 0,
|
|
2890
2891
|
class: l(o.question.cssClasses.cellRequiredText)
|
|
2891
|
-
},
|
|
2892
|
+
}, R(o.column.requiredText), 3)) : d("", !0)
|
|
2892
2893
|
], 64)) : d("", !0);
|
|
2893
2894
|
}
|
|
2894
|
-
}),
|
|
2895
|
+
}), bo = ["data-responsive-title", "title", "colspan"], ko = /* @__PURE__ */ h({
|
|
2895
2896
|
__name: "MatrixCell",
|
|
2896
2897
|
props: {
|
|
2897
2898
|
question: {},
|
|
2898
2899
|
cell: {}
|
|
2899
2900
|
},
|
|
2900
2901
|
setup(r) {
|
|
2901
|
-
const s = r, o =
|
|
2902
|
-
|
|
2902
|
+
const s = r, o = _(!1), e = _(), n = () => s.cell.headers, t = () => !!s.cell.width || !!s.cell.minWidth ? { width: s.cell.width, minWidth: s.cell.minWidth } : null, a = () => o.value = s.cell.question.isVisible, p = (g) => te(g);
|
|
2903
|
+
H(() => {
|
|
2903
2904
|
if (!s.cell.hasQuestion || !s.question || !s.question.survey)
|
|
2904
2905
|
return;
|
|
2905
2906
|
a(), s.cell.question.registerPropertyChangedHandlers(["isVisible"], () => {
|
|
@@ -2919,35 +2920,35 @@ const xn = /* @__PURE__ */ h({
|
|
|
2919
2920
|
if (g.hasPanel) {
|
|
2920
2921
|
const I = g.panel, C = I.survey;
|
|
2921
2922
|
if (C) {
|
|
2922
|
-
const
|
|
2923
|
-
if (
|
|
2924
|
-
return
|
|
2923
|
+
const P = C.getElementWrapperComponentName(I);
|
|
2924
|
+
if (P)
|
|
2925
|
+
return P;
|
|
2925
2926
|
}
|
|
2926
2927
|
return "survey-panel";
|
|
2927
2928
|
}
|
|
2928
2929
|
}), y = w(() => {
|
|
2929
2930
|
if (s.cell.hasPanel) {
|
|
2930
2931
|
const I = s.cell.panel, C = I.survey;
|
|
2931
|
-
let
|
|
2932
|
-
return C && (
|
|
2932
|
+
let P;
|
|
2933
|
+
return C && (P = C.getElementWrapperComponentData(I)), {
|
|
2933
2934
|
componentName: "survey-panel",
|
|
2934
2935
|
componentData: {
|
|
2935
2936
|
element: I,
|
|
2936
|
-
data:
|
|
2937
|
+
data: P,
|
|
2937
2938
|
css: s.question.cssClasses
|
|
2938
2939
|
}
|
|
2939
2940
|
};
|
|
2940
2941
|
}
|
|
2941
2942
|
});
|
|
2942
2943
|
return (g, I) => {
|
|
2943
|
-
const C = v("survey-errors"),
|
|
2944
|
+
const C = v("survey-errors"), P = v("sv-matrix-drag-drop-icon"), k = v("sv-action-bar"), D = v("survey-radiogroup-item"), E = v("survey-checkbox-item"), O = v("survey-other-choice"), U = v("survey-string");
|
|
2944
2945
|
return i(), u("td", {
|
|
2945
2946
|
class: l(g.cell.className),
|
|
2946
2947
|
"data-responsive-title": n(),
|
|
2947
2948
|
title: g.cell.getTitle(),
|
|
2948
|
-
style:
|
|
2949
|
+
style: S(t()),
|
|
2949
2950
|
colspan: g.cell.colSpans,
|
|
2950
|
-
onFocusin: I[0] || (I[0] = (
|
|
2951
|
+
onFocusin: I[0] || (I[0] = (re) => g.cell.focusIn()),
|
|
2951
2952
|
ref_key: "root",
|
|
2952
2953
|
ref: e
|
|
2953
2954
|
}, [
|
|
@@ -2955,7 +2956,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2955
2956
|
key: 0,
|
|
2956
2957
|
element: g.cell.question
|
|
2957
2958
|
}, null, 8, ["element"])) : d("", !0),
|
|
2958
|
-
g.cell.isDragHandlerCell ? (i(), q(
|
|
2959
|
+
g.cell.isDragHandlerCell ? (i(), q(P, {
|
|
2959
2960
|
key: 1,
|
|
2960
2961
|
item: { data: { row: g.cell.row, question: g.question } }
|
|
2961
2962
|
}, null, 8, ["item"])) : d("", !0),
|
|
@@ -2964,8 +2965,8 @@ const xn = /* @__PURE__ */ h({
|
|
|
2964
2965
|
model: g.cell.item.getData(),
|
|
2965
2966
|
handleClick: !1
|
|
2966
2967
|
}, null, 8, ["model"])) : d("", !0),
|
|
2967
|
-
g.cell.hasPanel ? (i(), q(T(m.value), F(
|
|
2968
|
-
g.cell.hasQuestion ?
|
|
2968
|
+
g.cell.hasPanel ? (i(), q(T(m.value), F(W({ key: 3 }, y.value)), null, 16)) : d("", !0),
|
|
2969
|
+
g.cell.hasQuestion ? N((i(), u("div", {
|
|
2969
2970
|
key: 4,
|
|
2970
2971
|
class: l(g.question.cssClasses.cellQuestionWrapper)
|
|
2971
2972
|
}, [
|
|
@@ -2989,7 +2990,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2989
2990
|
componentData: g.question.getCellWrapperComponentData(g.cell.cell)
|
|
2990
2991
|
}, {
|
|
2991
2992
|
default: V(() => [
|
|
2992
|
-
g.cell.isRadio ? (i(), q(
|
|
2993
|
+
g.cell.isRadio ? (i(), q(D, {
|
|
2993
2994
|
key: g.cell.item.value,
|
|
2994
2995
|
question: g.cell.question,
|
|
2995
2996
|
item: g.cell.item,
|
|
@@ -3023,21 +3024,21 @@ const xn = /* @__PURE__ */ h({
|
|
|
3023
3024
|
g.cell.requiredText ? (i(), u("span", {
|
|
3024
3025
|
key: 1,
|
|
3025
3026
|
class: l(g.question.cssClasses.cellRequiredText)
|
|
3026
|
-
},
|
|
3027
|
+
}, R(g.cell.requiredText), 3)) : d("", !0)
|
|
3027
3028
|
]),
|
|
3028
3029
|
_: 1
|
|
3029
3030
|
}, 8, ["componentData"])) : d("", !0)
|
|
3030
|
-
], 46,
|
|
3031
|
+
], 46, bo);
|
|
3031
3032
|
};
|
|
3032
3033
|
}
|
|
3033
|
-
}),
|
|
3034
|
+
}), fo = /* @__PURE__ */ h({
|
|
3034
3035
|
inheritAttrs: !1,
|
|
3035
3036
|
__name: "MatrixDynamic",
|
|
3036
3037
|
props: {
|
|
3037
3038
|
question: {}
|
|
3038
3039
|
},
|
|
3039
3040
|
setup(r) {
|
|
3040
|
-
const s = r, o =
|
|
3041
|
+
const s = r, o = _(null);
|
|
3041
3042
|
A(s, o);
|
|
3042
3043
|
const e = () => {
|
|
3043
3044
|
s.question.addRowUI();
|
|
@@ -3121,7 +3122,7 @@ function ie(r, s = !0) {
|
|
|
3121
3122
|
row: s ? w(() => r.item.data.row) : void 0
|
|
3122
3123
|
};
|
|
3123
3124
|
}
|
|
3124
|
-
const
|
|
3125
|
+
const Io = ["disabled"], wo = /* @__PURE__ */ h({
|
|
3125
3126
|
__name: "RemoveButton",
|
|
3126
3127
|
props: {
|
|
3127
3128
|
item: {}
|
|
@@ -3142,10 +3143,10 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3142
3143
|
c("span", {
|
|
3143
3144
|
class: l(f(o).cssClasses.iconRemove)
|
|
3144
3145
|
}, null, 2)
|
|
3145
|
-
], 10,
|
|
3146
|
+
], 10, Io);
|
|
3146
3147
|
};
|
|
3147
3148
|
}
|
|
3148
|
-
}),
|
|
3149
|
+
}), So = ["xlink:href"], Ro = /* @__PURE__ */ h({
|
|
3149
3150
|
__name: "DragDropIcon",
|
|
3150
3151
|
props: {
|
|
3151
3152
|
item: {}
|
|
@@ -3158,13 +3159,13 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3158
3159
|
}, [
|
|
3159
3160
|
c("use", {
|
|
3160
3161
|
"xlink:href": f(o).iconDragElement
|
|
3161
|
-
}, null, 8,
|
|
3162
|
+
}, null, 8, So)
|
|
3162
3163
|
], 2)) : (i(), u("span", {
|
|
3163
3164
|
key: 1,
|
|
3164
3165
|
class: l(f(o).cssClasses.iconDrag)
|
|
3165
3166
|
}, null, 2));
|
|
3166
3167
|
}
|
|
3167
|
-
}),
|
|
3168
|
+
}), To = ["aria-expanded", "aria-controls"], $o = /* @__PURE__ */ h({
|
|
3168
3169
|
__name: "DetailButton",
|
|
3169
3170
|
props: {
|
|
3170
3171
|
item: {}
|
|
@@ -3185,10 +3186,10 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3185
3186
|
iconName: f(o).getDetailPanelIconId(f(e)),
|
|
3186
3187
|
size: "auto"
|
|
3187
3188
|
}, null, 8, ["class", "iconName"])
|
|
3188
|
-
], 10,
|
|
3189
|
+
], 10, To);
|
|
3189
3190
|
};
|
|
3190
3191
|
}
|
|
3191
|
-
}),
|
|
3192
|
+
}), _o = /* @__PURE__ */ h({
|
|
3192
3193
|
inheritAttrs: !1,
|
|
3193
3194
|
__name: "PanelDynamic",
|
|
3194
3195
|
props: {
|
|
@@ -3196,7 +3197,7 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3196
3197
|
css: {}
|
|
3197
3198
|
},
|
|
3198
3199
|
setup(r) {
|
|
3199
|
-
const s = r, o =
|
|
3200
|
+
const s = r, o = _(null), e = oe();
|
|
3200
3201
|
A(
|
|
3201
3202
|
s,
|
|
3202
3203
|
o,
|
|
@@ -3244,7 +3245,7 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3244
3245
|
};
|
|
3245
3246
|
};
|
|
3246
3247
|
return (m, y) => {
|
|
3247
|
-
const g = v("survey-string"), I = v("sv-paneldynamic-add-btn"), C = v("survey-paneldynamicprogress"),
|
|
3248
|
+
const g = v("survey-string"), I = v("sv-paneldynamic-add-btn"), C = v("survey-paneldynamicprogress"), P = v("sv-paneldynamic-remove-btn"), k = v("survey-paneldynamicprogress-v2");
|
|
3248
3249
|
return i(), u("div", {
|
|
3249
3250
|
class: l(m.question.cssClasses.root),
|
|
3250
3251
|
ref_key: "root",
|
|
@@ -3269,7 +3270,7 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3269
3270
|
}, [
|
|
3270
3271
|
c("div", {
|
|
3271
3272
|
class: l(m.question.cssClasses.progressBar),
|
|
3272
|
-
style:
|
|
3273
|
+
style: S({ width: m.question.progress }),
|
|
3273
3274
|
role: "progressbar"
|
|
3274
3275
|
}, null, 6)
|
|
3275
3276
|
], 2)) : d("", !0),
|
|
@@ -3277,21 +3278,21 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3277
3278
|
key: 2,
|
|
3278
3279
|
question: m.question
|
|
3279
3280
|
}, null, 8, ["question"])) : d("", !0),
|
|
3280
|
-
(i(!0), u($, null, B(n.value, (
|
|
3281
|
-
key:
|
|
3281
|
+
(i(!0), u($, null, B(n.value, (D, E) => (i(), u($, {
|
|
3282
|
+
key: D.id
|
|
3282
3283
|
}, [
|
|
3283
3284
|
c("div", {
|
|
3284
3285
|
class: l(m.question.getPanelWrapperCss())
|
|
3285
3286
|
}, [
|
|
3286
|
-
(i(), q(T(a(
|
|
3287
|
-
m.question.panelRemoveButtonLocation === "right" && m.question.canRemovePanel &&
|
|
3287
|
+
(i(), q(T(a(D)), F(ye(p(D))), null, 16)),
|
|
3288
|
+
m.question.panelRemoveButtonLocation === "right" && m.question.canRemovePanel && D.state !== "collapsed" ? (i(), q(P, {
|
|
3288
3289
|
key: 0,
|
|
3289
|
-
data: { question: m.question, panel:
|
|
3290
|
+
data: { question: m.question, panel: D }
|
|
3290
3291
|
}, null, 8, ["data"])) : d("", !0)
|
|
3291
3292
|
], 2),
|
|
3292
3293
|
m.question.isRenderModeList && E < m.question.visiblePanelCount - 1 ? (i(), u("hr", {
|
|
3293
3294
|
class: l(m.question.cssClasses.separator),
|
|
3294
|
-
key: "separator" +
|
|
3295
|
+
key: "separator" + D.id
|
|
3295
3296
|
}, null, 2)) : d("", !0)
|
|
3296
3297
|
], 64))), 128)),
|
|
3297
3298
|
t() && m.question.isProgressBottomShowing ? (i(), q(C, {
|
|
@@ -3337,7 +3338,7 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3337
3338
|
}, [
|
|
3338
3339
|
c("div", {
|
|
3339
3340
|
class: l(e.question.cssClasses.progressBar),
|
|
3340
|
-
style:
|
|
3341
|
+
style: S({ width: e.question.progress }),
|
|
3341
3342
|
role: "progressbar"
|
|
3342
3343
|
}, null, 6)
|
|
3343
3344
|
], 2)) : d("", !0),
|
|
@@ -3355,7 +3356,7 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3355
3356
|
], 2);
|
|
3356
3357
|
};
|
|
3357
3358
|
}
|
|
3358
|
-
}),
|
|
3359
|
+
}), Bo = /* @__PURE__ */ h({
|
|
3359
3360
|
__name: "PanelDynamicProgressV2",
|
|
3360
3361
|
props: {
|
|
3361
3362
|
question: {}
|
|
@@ -3376,7 +3377,7 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3376
3377
|
}, [
|
|
3377
3378
|
c("div", {
|
|
3378
3379
|
class: l(s.question.cssClasses.progressBar),
|
|
3379
|
-
style:
|
|
3380
|
+
style: S({ width: s.question.progress }),
|
|
3380
3381
|
role: "progressbar"
|
|
3381
3382
|
}, null, 6)
|
|
3382
3383
|
], 2)) : d("", !0),
|
|
@@ -3397,7 +3398,7 @@ function Z(r) {
|
|
|
3397
3398
|
() => r.item && r.item.data.question || r.data.question
|
|
3398
3399
|
);
|
|
3399
3400
|
}
|
|
3400
|
-
const
|
|
3401
|
+
const Lo = /* @__PURE__ */ h({
|
|
3401
3402
|
__name: "PaneldynamicAddBtn",
|
|
3402
3403
|
props: {
|
|
3403
3404
|
item: {},
|
|
@@ -3415,10 +3416,10 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3415
3416
|
}, [
|
|
3416
3417
|
c("span", {
|
|
3417
3418
|
class: l(f(o).cssClasses.buttonAddText)
|
|
3418
|
-
},
|
|
3419
|
+
}, R(f(o).panelAddText), 3)
|
|
3419
3420
|
], 2)) : d("", !0);
|
|
3420
3421
|
}
|
|
3421
|
-
}),
|
|
3422
|
+
}), No = ["title"], Po = /* @__PURE__ */ h({
|
|
3422
3423
|
__name: "PaneldynamicNextBtn",
|
|
3423
3424
|
props: {
|
|
3424
3425
|
item: {},
|
|
@@ -3439,10 +3440,10 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3439
3440
|
iconName: f(o).cssClasses.progressBtnIcon,
|
|
3440
3441
|
size: "auto"
|
|
3441
3442
|
}, null, 8, ["iconName"])
|
|
3442
|
-
], 10,
|
|
3443
|
+
], 10, No);
|
|
3443
3444
|
};
|
|
3444
3445
|
}
|
|
3445
|
-
}),
|
|
3446
|
+
}), Ao = ["title"], Mo = /* @__PURE__ */ h({
|
|
3446
3447
|
__name: "PaneldynamicPrevBtn",
|
|
3447
3448
|
props: {
|
|
3448
3449
|
item: {},
|
|
@@ -3463,10 +3464,10 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3463
3464
|
iconName: f(o).cssClasses.progressBtnIcon,
|
|
3464
3465
|
size: "auto"
|
|
3465
3466
|
}, null, 8, ["iconName"])
|
|
3466
|
-
], 10,
|
|
3467
|
+
], 10, Ao);
|
|
3467
3468
|
};
|
|
3468
3469
|
}
|
|
3469
|
-
}),
|
|
3470
|
+
}), Ho = /* @__PURE__ */ h({
|
|
3470
3471
|
__name: "PaneldynamicRemoveBtn",
|
|
3471
3472
|
props: {
|
|
3472
3473
|
item: {},
|
|
@@ -3485,13 +3486,13 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3485
3486
|
}, [
|
|
3486
3487
|
c("span", {
|
|
3487
3488
|
class: l(f(o).cssClasses.buttonRemoveText)
|
|
3488
|
-
},
|
|
3489
|
+
}, R(f(o).panelRemoveText), 3),
|
|
3489
3490
|
c("span", {
|
|
3490
3491
|
class: l(f(o).cssClasses.iconRemove)
|
|
3491
3492
|
}, null, 2)
|
|
3492
3493
|
], 2));
|
|
3493
3494
|
}
|
|
3494
|
-
}),
|
|
3495
|
+
}), Wo = /* @__PURE__ */ h({
|
|
3495
3496
|
__name: "PaneldynamicProgressText",
|
|
3496
3497
|
props: {
|
|
3497
3498
|
item: {},
|
|
@@ -3501,16 +3502,16 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3501
3502
|
const o = Z(r);
|
|
3502
3503
|
return (e, n) => (i(), u("div", {
|
|
3503
3504
|
class: l(f(o).cssClasses.progressText)
|
|
3504
|
-
},
|
|
3505
|
+
}, R(f(o).progressText), 3));
|
|
3505
3506
|
}
|
|
3506
|
-
}),
|
|
3507
|
+
}), Eo = ["id"], Vo = /* @__PURE__ */ h({
|
|
3507
3508
|
__name: "Errors",
|
|
3508
3509
|
props: {
|
|
3509
3510
|
element: {},
|
|
3510
3511
|
location: {}
|
|
3511
3512
|
},
|
|
3512
3513
|
setup(r) {
|
|
3513
|
-
const s =
|
|
3514
|
+
const s = _();
|
|
3514
3515
|
return (o, e) => {
|
|
3515
3516
|
const n = v("survey-string");
|
|
3516
3517
|
return o.element.hasVisibleErrors ? (i(), u("div", {
|
|
@@ -3541,16 +3542,16 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3541
3542
|
}, null, 8, ["locString"])
|
|
3542
3543
|
], 2)
|
|
3543
3544
|
]))), 128))
|
|
3544
|
-
], 10,
|
|
3545
|
+
], 10, Eo)) : d("", !0);
|
|
3545
3546
|
};
|
|
3546
3547
|
}
|
|
3547
|
-
}),
|
|
3548
|
+
}), Oo = { key: 0 }, Fo = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], zo = /* @__PURE__ */ h({
|
|
3548
3549
|
__name: "QuestionComment",
|
|
3549
3550
|
props: {
|
|
3550
3551
|
question: {}
|
|
3551
3552
|
},
|
|
3552
3553
|
setup(r) {
|
|
3553
|
-
return (s, o) => s.question.isReadOnlyRenderDiv() ? (i(), u("div",
|
|
3554
|
+
return (s, o) => s.question.isReadOnlyRenderDiv() ? (i(), u("div", Oo, R(s.question.comment), 1)) : (i(), u("textarea", {
|
|
3554
3555
|
key: 1,
|
|
3555
3556
|
id: s.question.commentId,
|
|
3556
3557
|
readonly: s.question.isInputReadOnly,
|
|
@@ -3561,16 +3562,16 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3561
3562
|
placeholder: s.question.renderedCommentPlaceholder,
|
|
3562
3563
|
"aria-label": s.question.ariaLabel || s.question.a11y_input_ariaLabel,
|
|
3563
3564
|
"aria-required": s.question.ariaRequired || s.question.a11y_input_ariaRequired,
|
|
3564
|
-
style:
|
|
3565
|
+
style: S({ resize: s.question.resizeStyle }),
|
|
3565
3566
|
onChange: o[0] || (o[0] = (e) => {
|
|
3566
3567
|
s.question.onCommentChange(e);
|
|
3567
3568
|
}),
|
|
3568
3569
|
onInput: o[1] || (o[1] = (e) => {
|
|
3569
3570
|
s.question.onCommentInput(e);
|
|
3570
3571
|
})
|
|
3571
|
-
}, null, 46,
|
|
3572
|
+
}, null, 46, Fo));
|
|
3572
3573
|
}
|
|
3573
|
-
}),
|
|
3574
|
+
}), Uo = /* @__PURE__ */ h({
|
|
3574
3575
|
__name: "TitleElement",
|
|
3575
3576
|
props: {
|
|
3576
3577
|
element: {},
|
|
@@ -3578,7 +3579,7 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3578
3579
|
},
|
|
3579
3580
|
setup(r) {
|
|
3580
3581
|
const s = (o) => {
|
|
3581
|
-
|
|
3582
|
+
qe(o);
|
|
3582
3583
|
};
|
|
3583
3584
|
return (o, e) => {
|
|
3584
3585
|
const n = v("survey-element-title-content"), t = v("sv-title-actions");
|
|
@@ -3610,7 +3611,7 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3610
3611
|
}, 40, ["class", "aria-label", "id", "tabindex", "aria-expanded", "role"])) : d("", !0);
|
|
3611
3612
|
};
|
|
3612
3613
|
}
|
|
3613
|
-
}),
|
|
3614
|
+
}), Ko = { key: 3 }, jo = { key: 5 }, Qo = { key: 7 }, Go = /* @__PURE__ */ h({
|
|
3614
3615
|
inheritAttrs: !1,
|
|
3615
3616
|
__name: "TitleContent",
|
|
3616
3617
|
props: {
|
|
@@ -3629,34 +3630,34 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3629
3630
|
key: 1,
|
|
3630
3631
|
class: l(s.element.cssClasses.requiredText),
|
|
3631
3632
|
"aria-hidden": !0
|
|
3632
|
-
},
|
|
3633
|
+
}, R(s.element.requiredText), 3)) : d("", !0),
|
|
3633
3634
|
!s.element.isTitleRenderedAsString && s.element.no ? (i(), u("span", {
|
|
3634
3635
|
key: 2,
|
|
3635
3636
|
style: { position: "static" },
|
|
3636
3637
|
class: l(s.element.cssTitleNumber),
|
|
3637
3638
|
"aria-hidden": !0
|
|
3638
|
-
},
|
|
3639
|
-
!s.element.isTitleRenderedAsString && s.element.no ? (i(), u("span",
|
|
3639
|
+
}, R(s.element.no), 3)) : d("", !0),
|
|
3640
|
+
!s.element.isTitleRenderedAsString && s.element.no ? (i(), u("span", Ko, "\xA0")) : d("", !0),
|
|
3640
3641
|
!s.element.isTitleRenderedAsString && s.element.isRequireTextBeforeTitle ? (i(), u("span", {
|
|
3641
3642
|
key: 4,
|
|
3642
3643
|
class: l(s.element.cssClasses.requiredText),
|
|
3643
3644
|
"aria-hidden": !0
|
|
3644
|
-
},
|
|
3645
|
-
!s.element.isTitleRenderedAsString && s.element.isRequireTextBeforeTitle ? (i(), u("span",
|
|
3645
|
+
}, R(s.element.requiredText), 3)) : d("", !0),
|
|
3646
|
+
!s.element.isTitleRenderedAsString && s.element.isRequireTextBeforeTitle ? (i(), u("span", jo, "\xA0")) : d("", !0),
|
|
3646
3647
|
s.element.isTitleRenderedAsString ? d("", !0) : (i(), q(e, {
|
|
3647
3648
|
key: 6,
|
|
3648
3649
|
locString: s.element.locTitle
|
|
3649
3650
|
}, null, 8, ["locString"])),
|
|
3650
|
-
!s.element.isTitleRenderedAsString && s.element.isRequireTextAfterTitle ? (i(), u("span",
|
|
3651
|
+
!s.element.isTitleRenderedAsString && s.element.isRequireTextAfterTitle ? (i(), u("span", Qo, "\xA0")) : d("", !0),
|
|
3651
3652
|
!s.element.isTitleRenderedAsString && s.element.isRequireTextAfterTitle ? (i(), u("span", {
|
|
3652
3653
|
key: 8,
|
|
3653
3654
|
class: l(s.element.cssClasses.requiredText),
|
|
3654
3655
|
"aria-hidden": !0
|
|
3655
|
-
},
|
|
3656
|
+
}, R(s.element.requiredText), 3)) : d("", !0)
|
|
3656
3657
|
], 64);
|
|
3657
3658
|
};
|
|
3658
3659
|
}
|
|
3659
|
-
}),
|
|
3660
|
+
}), Jo = { class: "sv-title-actions" }, Xo = { class: "sv-title-actions__title" }, Yo = /* @__PURE__ */ h({
|
|
3660
3661
|
__name: "TitleActions",
|
|
3661
3662
|
props: {
|
|
3662
3663
|
element: {},
|
|
@@ -3666,7 +3667,7 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3666
3667
|
const s = r, o = w(() => s.element.getTitleToolbar());
|
|
3667
3668
|
return (e, n) => {
|
|
3668
3669
|
const t = v("survey-string"), a = v("survey-element-title-content"), p = v("sv-action-bar");
|
|
3669
|
-
return i(), u("div",
|
|
3670
|
+
return i(), u("div", Jo, [
|
|
3670
3671
|
c("span", Xo, [
|
|
3671
3672
|
e.element.isPage ? (i(), q(t, {
|
|
3672
3673
|
key: 0,
|
|
@@ -3682,20 +3683,20 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3682
3683
|
]);
|
|
3683
3684
|
};
|
|
3684
3685
|
}
|
|
3685
|
-
}),
|
|
3686
|
+
}), he = (r, s) => {
|
|
3686
3687
|
const o = r.__vccOpts || r;
|
|
3687
3688
|
for (const [e, n] of s)
|
|
3688
3689
|
o[e] = n;
|
|
3689
3690
|
return o;
|
|
3690
|
-
},
|
|
3691
|
-
|
|
3691
|
+
}, Zo = {}, xo = { class: "sv-brand-info" }, et = /* @__PURE__ */ Ie('<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), st = [
|
|
3692
|
+
et
|
|
3692
3693
|
];
|
|
3693
|
-
function
|
|
3694
|
-
return i(), u("div",
|
|
3694
|
+
function nt(r, s) {
|
|
3695
|
+
return i(), u("div", xo, st);
|
|
3695
3696
|
}
|
|
3696
|
-
const
|
|
3697
|
-
|
|
3698
|
-
],
|
|
3697
|
+
const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use", null, null, -1), it = [
|
|
3698
|
+
tt
|
|
3699
|
+
], rt = /* @__PURE__ */ h({
|
|
3699
3700
|
__name: "SvgIcon",
|
|
3700
3701
|
props: {
|
|
3701
3702
|
size: {},
|
|
@@ -3705,8 +3706,8 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3705
3706
|
title: {}
|
|
3706
3707
|
},
|
|
3707
3708
|
setup(r) {
|
|
3708
|
-
const s = r, o =
|
|
3709
|
-
|
|
3709
|
+
const s = r, o = _(), e = () => {
|
|
3710
|
+
Le(
|
|
3710
3711
|
s.size,
|
|
3711
3712
|
s.width,
|
|
3712
3713
|
s.height,
|
|
@@ -3717,16 +3718,16 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3717
3718
|
};
|
|
3718
3719
|
return ee(() => {
|
|
3719
3720
|
e();
|
|
3720
|
-
}),
|
|
3721
|
+
}), H(() => {
|
|
3721
3722
|
e();
|
|
3722
3723
|
}), (n, t) => (i(), u("svg", {
|
|
3723
3724
|
ref_key: "svgIconElement",
|
|
3724
3725
|
ref: o,
|
|
3725
3726
|
class: "sv-svg-icon",
|
|
3726
3727
|
role: "img"
|
|
3727
|
-
},
|
|
3728
|
+
}, it, 512));
|
|
3728
3729
|
}
|
|
3729
|
-
}),
|
|
3730
|
+
}), lt = /* @__PURE__ */ h({
|
|
3730
3731
|
__name: "ActionBar",
|
|
3731
3732
|
props: {
|
|
3732
3733
|
model: {},
|
|
@@ -3734,12 +3735,12 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3734
3735
|
handleClick: { type: Boolean, default: !0 }
|
|
3735
3736
|
},
|
|
3736
3737
|
setup(r) {
|
|
3737
|
-
const s = r, o =
|
|
3738
|
+
const s = r, o = _(null), e = (t) => {
|
|
3738
3739
|
s.handleClick && t.stopPropagation();
|
|
3739
3740
|
};
|
|
3740
3741
|
L(() => s.model);
|
|
3741
3742
|
const n = w(() => s.model.renderedActions);
|
|
3742
|
-
return
|
|
3743
|
+
return H(() => {
|
|
3743
3744
|
!s.model.hasActions || s.model.initResponsivityManager(o.value);
|
|
3744
3745
|
}), z(() => {
|
|
3745
3746
|
s.model.resetResponsivityManager();
|
|
@@ -3759,7 +3760,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3759
3760
|
], 2)) : d("", !0);
|
|
3760
3761
|
};
|
|
3761
3762
|
}
|
|
3762
|
-
}),
|
|
3763
|
+
}), at = ["id"], ut = { class: "sv-action__content" }, dt = /* @__PURE__ */ h({
|
|
3763
3764
|
__name: "Action",
|
|
3764
3765
|
props: {
|
|
3765
3766
|
item: {}
|
|
@@ -3774,17 +3775,17 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3774
3775
|
class: l(e.item.getActionRootCss()),
|
|
3775
3776
|
id: e.item.id
|
|
3776
3777
|
}, [
|
|
3777
|
-
c("div",
|
|
3778
|
+
c("div", ut, [
|
|
3778
3779
|
e.item.needSeparator ? (i(), q(t, { key: 0 })) : d("", !0),
|
|
3779
3780
|
(i(), q(T(o.value), { item: e.item }, null, 8, ["item"]))
|
|
3780
3781
|
])
|
|
3781
|
-
], 10,
|
|
3782
|
+
], 10, at);
|
|
3782
3783
|
};
|
|
3783
3784
|
}
|
|
3784
|
-
}),
|
|
3785
|
+
}), mt = ["disabled", "title", "aria-checked", "aria-expanded", "role"], ct = {
|
|
3785
3786
|
inheritAttrs: !1
|
|
3786
|
-
},
|
|
3787
|
-
...
|
|
3787
|
+
}, pt = /* @__PURE__ */ h({
|
|
3788
|
+
...ct,
|
|
3788
3789
|
__name: "ActionBarItem",
|
|
3789
3790
|
props: {
|
|
3790
3791
|
item: {}
|
|
@@ -3793,7 +3794,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3793
3794
|
const s = r;
|
|
3794
3795
|
return L(() => s.item), (o, e) => {
|
|
3795
3796
|
const n = v("sv-svg-icon"), t = Y("key2click");
|
|
3796
|
-
return
|
|
3797
|
+
return N((i(), u("button", {
|
|
3797
3798
|
class: l(o.item.getActionBarItemCss()),
|
|
3798
3799
|
type: "button",
|
|
3799
3800
|
onClick: e[0] || (e[0] = (a) => {
|
|
@@ -3818,27 +3819,27 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3818
3819
|
o.item.hasTitle ? (i(), u("span", {
|
|
3819
3820
|
key: 1,
|
|
3820
3821
|
class: l(o.item.getActionBarItemTitleCss())
|
|
3821
|
-
},
|
|
3822
|
-
], 42,
|
|
3822
|
+
}, R(o.item.title), 3)) : d("", !0)
|
|
3823
|
+
], 42, mt)), [
|
|
3823
3824
|
[t, { processEsc: !1, disableTabStop: o.item.disableTabStop }]
|
|
3824
3825
|
]);
|
|
3825
3826
|
};
|
|
3826
3827
|
}
|
|
3827
|
-
}),
|
|
3828
|
+
}), vt = ["disabled", "title", "role"], yt = {
|
|
3828
3829
|
inheritAttrs: !1
|
|
3829
|
-
},
|
|
3830
|
-
...
|
|
3830
|
+
}, qt = /* @__PURE__ */ h({
|
|
3831
|
+
...yt,
|
|
3831
3832
|
__name: "ActionBarItemDropdown",
|
|
3832
3833
|
props: {
|
|
3833
3834
|
item: {}
|
|
3834
3835
|
},
|
|
3835
3836
|
setup(r) {
|
|
3836
|
-
const s = r, o =
|
|
3837
|
+
const s = r, o = Pe;
|
|
3837
3838
|
let e;
|
|
3838
3839
|
return L(
|
|
3839
3840
|
() => s.item,
|
|
3840
3841
|
(n) => {
|
|
3841
|
-
e = new
|
|
3842
|
+
e = new Ne(n);
|
|
3842
3843
|
},
|
|
3843
3844
|
() => {
|
|
3844
3845
|
e.dispose();
|
|
@@ -3846,7 +3847,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3846
3847
|
), (n, t) => {
|
|
3847
3848
|
const a = v("sv-svg-icon"), p = v("sv-popup"), m = Y("key2click");
|
|
3848
3849
|
return i(), u($, null, [
|
|
3849
|
-
|
|
3850
|
+
N((i(), u("button", {
|
|
3850
3851
|
type: "button",
|
|
3851
3852
|
class: l(n.item.getActionBarItemCss()),
|
|
3852
3853
|
onClick: t[0] || (t[0] = (y) => {
|
|
@@ -3869,8 +3870,8 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3869
3870
|
n.item.hasTitle ? (i(), u("span", {
|
|
3870
3871
|
key: 1,
|
|
3871
3872
|
class: l(n.item.getActionBarItemTitleCss())
|
|
3872
|
-
},
|
|
3873
|
-
], 42,
|
|
3873
|
+
}, R(n.item.title), 3)) : d("", !0)
|
|
3874
|
+
], 42, vt)), [
|
|
3874
3875
|
[m, { processEsc: !1, disableTabStop: n.item.disableTabStop }]
|
|
3875
3876
|
]),
|
|
3876
3877
|
b(p, {
|
|
@@ -3880,7 +3881,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3880
3881
|
], 64);
|
|
3881
3882
|
};
|
|
3882
3883
|
}
|
|
3883
|
-
}),
|
|
3884
|
+
}), gt = /* @__PURE__ */ h({
|
|
3884
3885
|
__name: "ActionBarSeparator",
|
|
3885
3886
|
props: {
|
|
3886
3887
|
item: {}
|
|
@@ -3891,13 +3892,13 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3891
3892
|
class: l(["sv-action-bar-separator", o.value])
|
|
3892
3893
|
}, null, 2));
|
|
3893
3894
|
}
|
|
3894
|
-
}),
|
|
3895
|
+
}), ht = ["aria-label", "placeholder", "value"], Ct = ["aria-label"], bt = ["id"], kt = /* @__PURE__ */ h({
|
|
3895
3896
|
__name: "List",
|
|
3896
3897
|
props: {
|
|
3897
3898
|
model: {}
|
|
3898
3899
|
},
|
|
3899
3900
|
setup(r) {
|
|
3900
|
-
const s = r, o =
|
|
3901
|
+
const s = r, o = _(null), e = (a) => {
|
|
3901
3902
|
const p = s.model;
|
|
3902
3903
|
p.filterString = a.target.value;
|
|
3903
3904
|
}, n = (a) => {
|
|
@@ -3906,7 +3907,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3906
3907
|
}, t = (a) => {
|
|
3907
3908
|
s.model.onMouseMove(a);
|
|
3908
3909
|
};
|
|
3909
|
-
return L(() => s.model),
|
|
3910
|
+
return L(() => s.model), H(() => {
|
|
3910
3911
|
s.model.initListContainerHtmlElement(o.value);
|
|
3911
3912
|
}), (a, p) => {
|
|
3912
3913
|
const m = v("sv-svg-icon"), y = v("sv-list-item");
|
|
@@ -3935,7 +3936,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3935
3936
|
value: a.model.filterString,
|
|
3936
3937
|
onChange: e,
|
|
3937
3938
|
onKeyup: n
|
|
3938
|
-
}, null, 42,
|
|
3939
|
+
}, null, 42, ht),
|
|
3939
3940
|
a.model.showSearchClearButton && !!a.model.filterString ? (i(), u("button", {
|
|
3940
3941
|
key: 0,
|
|
3941
3942
|
onClick: p[0] || (p[0] = (g) => {
|
|
@@ -3949,17 +3950,17 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3949
3950
|
})
|
|
3950
3951
|
], 2)) : d("", !0)
|
|
3951
3952
|
], 2)) : d("", !0),
|
|
3952
|
-
|
|
3953
|
+
N(c("div", {
|
|
3953
3954
|
class: l(a.model.cssClasses.emptyContainer)
|
|
3954
3955
|
}, [
|
|
3955
3956
|
c("div", {
|
|
3956
3957
|
class: l(a.model.cssClasses.emptyText),
|
|
3957
3958
|
"aria-label": a.model.emptyMessage
|
|
3958
|
-
},
|
|
3959
|
+
}, R(a.model.emptyMessage), 11, Ct)
|
|
3959
3960
|
], 2), [
|
|
3960
3961
|
[M, a.model.isEmpty]
|
|
3961
3962
|
]),
|
|
3962
|
-
a.model.renderElements ?
|
|
3963
|
+
a.model.renderElements ? N((i(), u("ul", {
|
|
3963
3964
|
key: 1,
|
|
3964
3965
|
class: l(a.model.getListClass()),
|
|
3965
3966
|
role: "listbox",
|
|
@@ -3977,13 +3978,13 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3977
3978
|
model: a.model,
|
|
3978
3979
|
key: g.id
|
|
3979
3980
|
}, null, 8, ["item", "model"]))), 128))
|
|
3980
|
-
], 42,
|
|
3981
|
+
], 42, bt)), [
|
|
3981
3982
|
[M, !a.model.isEmpty]
|
|
3982
3983
|
]) : d("", !0)
|
|
3983
3984
|
], 2);
|
|
3984
3985
|
};
|
|
3985
3986
|
}
|
|
3986
|
-
}),
|
|
3987
|
+
}), ft = ["aria-selected", "id"], It = ["title"], wt = /* @__PURE__ */ h({
|
|
3987
3988
|
__name: "ListItem",
|
|
3988
3989
|
props: {
|
|
3989
3990
|
model: {},
|
|
@@ -3993,13 +3994,13 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3993
3994
|
const s = r, o = w(() => s.item.elementId), e = (n) => {
|
|
3994
3995
|
s.model.onItemClick(s.item), n.stopPropagation();
|
|
3995
3996
|
};
|
|
3996
|
-
return L(() => s.item),
|
|
3997
|
+
return L(() => s.item), H(() => {
|
|
3997
3998
|
setTimeout(() => {
|
|
3998
3999
|
s.model.onLastItemRended(s.item);
|
|
3999
4000
|
});
|
|
4000
4001
|
}), (n, t) => {
|
|
4001
4002
|
const a = v("sv-svg-icon"), p = v("survey-string"), m = Y("key2click");
|
|
4002
|
-
return
|
|
4003
|
+
return N((i(), u("li", {
|
|
4003
4004
|
tabindex: "0",
|
|
4004
4005
|
role: "option",
|
|
4005
4006
|
"aria-selected": n.model.isItemSelected(n.item),
|
|
@@ -4014,7 +4015,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4014
4015
|
class: l(n.model.cssClasses.itemSeparator)
|
|
4015
4016
|
}, null, 2)) : d("", !0),
|
|
4016
4017
|
c("div", {
|
|
4017
|
-
style:
|
|
4018
|
+
style: S({ paddingInlineStart: n.model.getItemIndent(n.item) }),
|
|
4018
4019
|
class: l(n.model.cssClasses.itemBody),
|
|
4019
4020
|
title: n.item.locTitle.calculatedText
|
|
4020
4021
|
}, [
|
|
@@ -4032,14 +4033,14 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4032
4033
|
key: 2,
|
|
4033
4034
|
item: n.item
|
|
4034
4035
|
}, null, 8, ["item"])) : d("", !0)
|
|
4035
|
-
], 14,
|
|
4036
|
-
], 42,
|
|
4036
|
+
], 14, It)
|
|
4037
|
+
], 42, ft)), [
|
|
4037
4038
|
[M, n.model.isItemVisible(n.item)],
|
|
4038
4039
|
[m]
|
|
4039
4040
|
]);
|
|
4040
4041
|
};
|
|
4041
4042
|
}
|
|
4042
|
-
}),
|
|
4043
|
+
}), St = /* @__PURE__ */ h({
|
|
4043
4044
|
__name: "Popup",
|
|
4044
4045
|
props: {
|
|
4045
4046
|
getTarget: { type: Function },
|
|
@@ -4047,15 +4048,15 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4047
4048
|
},
|
|
4048
4049
|
setup(r) {
|
|
4049
4050
|
const s = r, o = j(
|
|
4050
|
-
|
|
4051
|
-
), e =
|
|
4052
|
-
return
|
|
4051
|
+
ae(s.model, void 0)
|
|
4052
|
+
), e = _(null);
|
|
4053
|
+
return J(
|
|
4053
4054
|
() => s.model,
|
|
4054
4055
|
(n) => {
|
|
4055
|
-
o.value.dispose(), o.value =
|
|
4056
|
+
o.value.dispose(), o.value = ae(n, void 0);
|
|
4056
4057
|
},
|
|
4057
4058
|
{ immediate: !0 }
|
|
4058
|
-
), L(() => o.value),
|
|
4059
|
+
), L(() => o.value), H(() => {
|
|
4059
4060
|
const n = e.value;
|
|
4060
4061
|
o.value.setComponentElement(
|
|
4061
4062
|
n,
|
|
@@ -4073,13 +4074,13 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4073
4074
|
], 512);
|
|
4074
4075
|
};
|
|
4075
4076
|
}
|
|
4076
|
-
}),
|
|
4077
|
+
}), Rt = { class: "sv-popup__shadow" }, Tt = { class: "sv-popup__body-content" }, $t = {
|
|
4077
4078
|
key: 0,
|
|
4078
4079
|
class: "sv-popup__body-header"
|
|
4079
|
-
},
|
|
4080
|
+
}, _t = { class: "sv-popup__scrolling-content" }, Dt = { class: "sv-popup__content" }, Bt = {
|
|
4080
4081
|
key: 1,
|
|
4081
4082
|
class: "sv-popup__body-footer"
|
|
4082
|
-
},
|
|
4083
|
+
}, Lt = /* @__PURE__ */ h({
|
|
4083
4084
|
__name: "PopupContainer",
|
|
4084
4085
|
props: {
|
|
4085
4086
|
model: {}
|
|
@@ -4093,11 +4094,11 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4093
4094
|
return L(() => s.model), ee(() => {
|
|
4094
4095
|
const n = s.model;
|
|
4095
4096
|
!o && n.isVisible && s.model.updateOnShowing(), o = n.isVisible;
|
|
4096
|
-
}),
|
|
4097
|
+
}), H(() => {
|
|
4097
4098
|
s.model.isVisible && s.model.updateOnShowing();
|
|
4098
4099
|
}), (n, t) => {
|
|
4099
4100
|
const a = v("sv-action-bar");
|
|
4100
|
-
return
|
|
4101
|
+
return N((i(), u("div", {
|
|
4101
4102
|
tabindex: "-1",
|
|
4102
4103
|
class: l(["sv-popup", n.model.styleClass]),
|
|
4103
4104
|
onKeydown: t[0] || (t[0] = (p) => {
|
|
@@ -4109,7 +4110,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4109
4110
|
}, [
|
|
4110
4111
|
c("div", {
|
|
4111
4112
|
class: "sv-popup__container",
|
|
4112
|
-
style:
|
|
4113
|
+
style: S({
|
|
4113
4114
|
left: n.model.left,
|
|
4114
4115
|
top: n.model.top,
|
|
4115
4116
|
height: n.model.height,
|
|
@@ -4118,19 +4119,19 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4118
4119
|
}),
|
|
4119
4120
|
onClick: e
|
|
4120
4121
|
}, [
|
|
4121
|
-
c("div",
|
|
4122
|
+
c("div", Rt, [
|
|
4122
4123
|
n.model.showHeader ? (i(), q(T(n.model.popupHeaderTemplate), {
|
|
4123
4124
|
key: 0,
|
|
4124
4125
|
model: n.model
|
|
4125
4126
|
}, null, 8, ["model"])) : d("", !0),
|
|
4126
|
-
c("div",
|
|
4127
|
-
n.model.title ? (i(), u("div",
|
|
4128
|
-
c("div",
|
|
4127
|
+
c("div", Tt, [
|
|
4128
|
+
n.model.title ? (i(), u("div", $t, R(n.model.title), 1)) : d("", !0),
|
|
4129
|
+
c("div", _t, [
|
|
4129
4130
|
c("div", Dt, [
|
|
4130
|
-
(i(), q(T(n.model.contentComponentName), F(
|
|
4131
|
+
(i(), q(T(n.model.contentComponentName), F(ye(n.model.contentComponentData)), null, 16))
|
|
4131
4132
|
])
|
|
4132
4133
|
]),
|
|
4133
|
-
n.model.showFooter ? (i(), u("div",
|
|
4134
|
+
n.model.showFooter ? (i(), u("div", Bt, [
|
|
4134
4135
|
b(a, {
|
|
4135
4136
|
model: n.model.footerToolbar
|
|
4136
4137
|
}, null, 8, ["model"])
|
|
@@ -4143,7 +4144,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4143
4144
|
]);
|
|
4144
4145
|
};
|
|
4145
4146
|
}
|
|
4146
|
-
}),
|
|
4147
|
+
}), Nt = /* @__PURE__ */ h({
|
|
4147
4148
|
__name: "PopupPointer",
|
|
4148
4149
|
props: {
|
|
4149
4150
|
model: {}
|
|
@@ -4151,16 +4152,16 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4151
4152
|
setup(r) {
|
|
4152
4153
|
return (s, o) => (i(), u("span", {
|
|
4153
4154
|
class: "sv-popup__pointer",
|
|
4154
|
-
style:
|
|
4155
|
+
style: S({
|
|
4155
4156
|
left: s.model.pointerTarget.left,
|
|
4156
4157
|
top: s.model.pointerTarget.top
|
|
4157
4158
|
})
|
|
4158
4159
|
}, null, 4));
|
|
4159
4160
|
}
|
|
4160
|
-
}),
|
|
4161
|
+
}), Pt = {
|
|
4161
4162
|
key: 0,
|
|
4162
4163
|
class: "sv-components-column"
|
|
4163
|
-
},
|
|
4164
|
+
}, At = /* @__PURE__ */ h({
|
|
4164
4165
|
__name: "Container",
|
|
4165
4166
|
props: {
|
|
4166
4167
|
survey: {},
|
|
@@ -4172,7 +4173,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4172
4173
|
() => s.survey.getContainerContent(s.container)
|
|
4173
4174
|
);
|
|
4174
4175
|
return (e, n) => o.value.length > 0 ? (i(), u($, { key: 0 }, [
|
|
4175
|
-
e.needRenderWrapper ? (i(), u("div",
|
|
4176
|
+
e.needRenderWrapper ? (i(), u("div", Pt, [
|
|
4176
4177
|
(i(!0), u($, null, B(o.value, (t, a) => (i(), q(T(t.component), {
|
|
4177
4178
|
survey: e.survey,
|
|
4178
4179
|
container: e.container,
|
|
@@ -4192,13 +4193,13 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4192
4193
|
css: {}
|
|
4193
4194
|
},
|
|
4194
4195
|
setup(r) {
|
|
4195
|
-
const s = r, o = w(() => s.survey.progressValue + "%"), e = (t) =>
|
|
4196
|
+
const s = r, o = w(() => s.survey.progressValue + "%"), e = (t) => ue.getProgressTextInBarCss(t), n = (t) => ue.getProgressTextUnderBarCss(t);
|
|
4196
4197
|
return (t, a) => (i(), u("div", {
|
|
4197
4198
|
class: l(t.survey.getProgressCssClasses(t.container))
|
|
4198
4199
|
}, [
|
|
4199
4200
|
c("div", {
|
|
4200
4201
|
class: l(t.survey.css.progressBar),
|
|
4201
|
-
style:
|
|
4202
|
+
style: S({ width: o.value }),
|
|
4202
4203
|
role: "progressbar",
|
|
4203
4204
|
"aria-valuemin": "0",
|
|
4204
4205
|
"aria-valuemax": "100",
|
|
@@ -4206,35 +4207,35 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4206
4207
|
}, [
|
|
4207
4208
|
c("span", {
|
|
4208
4209
|
class: l(e(t.survey.css))
|
|
4209
|
-
},
|
|
4210
|
+
}, R(t.survey.progressText), 3)
|
|
4210
4211
|
], 6),
|
|
4211
4212
|
c("span", {
|
|
4212
4213
|
class: l(n(t.survey.css))
|
|
4213
|
-
},
|
|
4214
|
+
}, R(t.survey.progressText), 3)
|
|
4214
4215
|
], 2));
|
|
4215
4216
|
}
|
|
4216
|
-
}),
|
|
4217
|
+
}), Mt = ["onClick"], Ht = ["title"], Wt = ["title"], Et = /* @__PURE__ */ h({
|
|
4217
4218
|
__name: "ProgressButtons",
|
|
4218
4219
|
props: {
|
|
4219
4220
|
survey: {}
|
|
4220
4221
|
},
|
|
4221
4222
|
setup(r) {
|
|
4222
|
-
const s = r, o = new
|
|
4223
|
+
const s = r, o = new Ae(s.survey), e = _(!1), n = _(), t = w(() => s.survey.css);
|
|
4223
4224
|
let a;
|
|
4224
4225
|
const p = (C) => o.isListElementClickable(C), m = (C) => o.getListElementCss(C), y = (C) => {
|
|
4225
4226
|
o.clickListElement(C);
|
|
4226
|
-
}, g = (C,
|
|
4227
|
-
let
|
|
4228
|
-
|
|
4227
|
+
}, g = (C, P) => o.getScrollButtonCss(C, P), I = (C) => {
|
|
4228
|
+
let P = n.value;
|
|
4229
|
+
P.scrollLeft += (C ? -1 : 1) * 70;
|
|
4229
4230
|
};
|
|
4230
|
-
return
|
|
4231
|
+
return H(() => {
|
|
4231
4232
|
const C = n.value;
|
|
4232
4233
|
a = setInterval(() => {
|
|
4233
4234
|
e.value = C.scrollWidth > C.offsetWidth;
|
|
4234
4235
|
}, 100);
|
|
4235
|
-
}),
|
|
4236
|
+
}), X(() => {
|
|
4236
4237
|
typeof a < "u" && (clearInterval(a), a = void 0);
|
|
4237
|
-
}), (C,
|
|
4238
|
+
}), (C, P) => (i(), u("div", {
|
|
4238
4239
|
class: l(t.value.progressButtonsContainerCenter)
|
|
4239
4240
|
}, [
|
|
4240
4241
|
c("div", {
|
|
@@ -4242,7 +4243,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4242
4243
|
}, [
|
|
4243
4244
|
c("div", {
|
|
4244
4245
|
class: l(g(e.value, !0)),
|
|
4245
|
-
onClick:
|
|
4246
|
+
onClick: P[0] || (P[0] = (k) => I(!0)),
|
|
4246
4247
|
role: "button"
|
|
4247
4248
|
}, null, 2),
|
|
4248
4249
|
c("div", {
|
|
@@ -4253,43 +4254,43 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4253
4254
|
c("ul", {
|
|
4254
4255
|
class: l(t.value.progressButtonsList)
|
|
4255
4256
|
}, [
|
|
4256
|
-
(i(!0), u($, null, B(C.survey.visiblePages, (k,
|
|
4257
|
-
key: "listelement" +
|
|
4258
|
-
class: l(m(
|
|
4259
|
-
onClick: (E) => p(
|
|
4257
|
+
(i(!0), u($, null, B(C.survey.visiblePages, (k, D) => (i(), u("li", {
|
|
4258
|
+
key: "listelement" + D,
|
|
4259
|
+
class: l(m(D)),
|
|
4260
|
+
onClick: (E) => p(D) ? y(D) : null
|
|
4260
4261
|
}, [
|
|
4261
4262
|
c("div", {
|
|
4262
4263
|
class: l(t.value.progressButtonsPageTitle),
|
|
4263
4264
|
title: k.renderedNavigationTitle
|
|
4264
|
-
},
|
|
4265
|
+
}, R(k.renderedNavigationTitle), 11, Ht),
|
|
4265
4266
|
c("div", {
|
|
4266
4267
|
class: l(t.value.progressButtonsPageDescription),
|
|
4267
4268
|
title: k.locNavigationDescription.renderedHtml
|
|
4268
|
-
},
|
|
4269
|
-
], 10,
|
|
4269
|
+
}, R(k.locNavigationDescription.renderedHtml), 11, Wt)
|
|
4270
|
+
], 10, Mt))), 128))
|
|
4270
4271
|
], 2)
|
|
4271
4272
|
], 2),
|
|
4272
4273
|
c("div", {
|
|
4273
4274
|
class: l(g(e.value, !1)),
|
|
4274
|
-
onClick:
|
|
4275
|
+
onClick: P[1] || (P[1] = (k) => I(!1)),
|
|
4275
4276
|
role: "button"
|
|
4276
4277
|
}, null, 2)
|
|
4277
4278
|
], 2)
|
|
4278
4279
|
], 2));
|
|
4279
4280
|
}
|
|
4280
|
-
}),
|
|
4281
|
+
}), Vt = /* @__PURE__ */ h({
|
|
4281
4282
|
__name: "ProgressToc",
|
|
4282
4283
|
props: {
|
|
4283
4284
|
survey: {}
|
|
4284
4285
|
},
|
|
4285
4286
|
setup(r) {
|
|
4286
|
-
const s = r, o = new
|
|
4287
|
+
const s = r, o = new Me(s.survey);
|
|
4287
4288
|
return (e, n) => {
|
|
4288
4289
|
const t = v("sv-svg-icon"), a = v("sv-popup"), p = v("sv-list"), m = Y("key2click");
|
|
4289
4290
|
return i(), u("div", {
|
|
4290
4291
|
class: l(f(o).containerCss)
|
|
4291
4292
|
}, [
|
|
4292
|
-
f(o).isMobile ?
|
|
4293
|
+
f(o).isMobile ? N((i(), u("div", {
|
|
4293
4294
|
key: 0,
|
|
4294
4295
|
onClick: n[0] || (n[0] = (...y) => f(o).togglePopup && f(o).togglePopup(...y))
|
|
4295
4296
|
}, [
|
|
@@ -4309,59 +4310,59 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4309
4310
|
], 2);
|
|
4310
4311
|
};
|
|
4311
4312
|
}
|
|
4312
|
-
}),
|
|
4313
|
+
}), Ot = { onsubmit: "return false;" }, Ft = {
|
|
4313
4314
|
key: 0,
|
|
4314
4315
|
class: "sv_custom_header"
|
|
4315
|
-
},
|
|
4316
|
+
}, zt = { class: "sv-components-column sv-components-column--expandable" }, Ut = ["id"], Kt = { key: 2 }, jt = ["innerHTML"], Qt = ["innerHTML"], Gt = ["innerHTML"], ce = /* @__PURE__ */ h({
|
|
4316
4317
|
__name: "Survey",
|
|
4317
4318
|
props: {
|
|
4318
4319
|
model: {},
|
|
4319
4320
|
survey: {}
|
|
4320
4321
|
},
|
|
4321
4322
|
setup(r) {
|
|
4322
|
-
const s = r, o =
|
|
4323
|
+
const s = r, o = _(), e = _(""), n = _(1), t = w(() => {
|
|
4323
4324
|
const C = s.survey ? s.survey : s.model;
|
|
4324
|
-
return
|
|
4325
|
+
return we(C);
|
|
4325
4326
|
}), a = w(() => t.value.activePage ? t.value.activePage.id : ""), p = () => {
|
|
4326
4327
|
const C = a.value;
|
|
4327
4328
|
return !!t.value && C + n.value.toString();
|
|
4328
4329
|
}, m = w(
|
|
4329
4330
|
() => t.value.showCompletedPage && t.value.state === "completed"
|
|
4330
4331
|
), y = w(() => t.value.css), g = w(() => "page" + p()), I = () => m.value ? (e.value || (e.value = t.value.processedCompletedHtml), e.value) : "";
|
|
4331
|
-
return L(() => t.value),
|
|
4332
|
+
return L(() => t.value), H(() => {
|
|
4332
4333
|
if (!!t.value) {
|
|
4333
|
-
t.value.needRenderIcons && Me.renderIcons();
|
|
4334
4334
|
var C = o.value;
|
|
4335
4335
|
C && t.value.afterRenderSurvey(C), t.value.renderCallback = () => {
|
|
4336
|
-
var
|
|
4337
|
-
n.value++, (k = (
|
|
4336
|
+
var P, k;
|
|
4337
|
+
n.value++, (k = (P = oe()) == null ? void 0 : P.proxy) == null || k.$forceUpdate();
|
|
4338
4338
|
}, t.value.startTimerFromUI();
|
|
4339
4339
|
}
|
|
4340
4340
|
}), z(() => {
|
|
4341
4341
|
t.value.stopTimer(), t.value.renderCallback = void 0;
|
|
4342
|
-
}), (C,
|
|
4343
|
-
const k = v("survey-popup-modal"),
|
|
4342
|
+
}), (C, P) => {
|
|
4343
|
+
const k = v("sv-svg-bundle"), D = v("survey-popup-modal"), E = v("survey-header"), O = v("survey-page"), U = v("sv-brand-info"), re = v("sv-notifier");
|
|
4344
4344
|
return i(), u("div", {
|
|
4345
4345
|
class: l(t.value.getRootCss()),
|
|
4346
|
-
style:
|
|
4346
|
+
style: S(t.value.themeVariables),
|
|
4347
4347
|
ref_key: "root",
|
|
4348
4348
|
ref: o
|
|
4349
4349
|
}, [
|
|
4350
|
+
t.value.needRenderIcons ? (i(), q(k, { key: 0 })) : d("", !0),
|
|
4350
4351
|
c("div", {
|
|
4351
4352
|
class: l(t.value.wrapperFormCss)
|
|
4352
4353
|
}, [
|
|
4353
|
-
b(
|
|
4354
|
+
b(D),
|
|
4354
4355
|
t.value.renderBackgroundImage ? (i(), u("div", {
|
|
4355
4356
|
key: 0,
|
|
4356
4357
|
class: l(y.value.rootBackgroundImage),
|
|
4357
|
-
style:
|
|
4358
|
+
style: S(t.value.backgroundImageStyle)
|
|
4358
4359
|
}, null, 6)) : d("", !0),
|
|
4359
|
-
c("form",
|
|
4360
|
-
t.value.hasLogo ? d("", !0) : (i(), u("div",
|
|
4360
|
+
c("form", Ot, [
|
|
4361
|
+
t.value.hasLogo ? d("", !0) : (i(), u("div", Ft)),
|
|
4361
4362
|
c("div", {
|
|
4362
4363
|
class: l(y.value.container)
|
|
4363
4364
|
}, [
|
|
4364
|
-
t.value.headerView === "basic" ? (i(), q(
|
|
4365
|
+
t.value.headerView === "basic" ? (i(), q(E, {
|
|
4365
4366
|
key: 0,
|
|
4366
4367
|
survey: t.value
|
|
4367
4368
|
}, null, 8, ["survey"])) : d("", !0),
|
|
@@ -4379,7 +4380,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4379
4380
|
container: "left",
|
|
4380
4381
|
needRenderWrapper: !0
|
|
4381
4382
|
}, null, 8, ["survey"])),
|
|
4382
|
-
c("div",
|
|
4383
|
+
c("div", zt, [
|
|
4383
4384
|
(i(), q(T("sv-components-container"), {
|
|
4384
4385
|
survey: t.value,
|
|
4385
4386
|
container: "center",
|
|
@@ -4387,7 +4388,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4387
4388
|
}, null, 8, ["survey"])),
|
|
4388
4389
|
c("div", {
|
|
4389
4390
|
class: l(t.value.bodyCss),
|
|
4390
|
-
style:
|
|
4391
|
+
style: S({ maxWidth: t.value.renderedWidth }),
|
|
4391
4392
|
id: a.value
|
|
4392
4393
|
}, [
|
|
4393
4394
|
(i(), q(T("sv-components-container"), {
|
|
@@ -4395,7 +4396,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4395
4396
|
container: "contentTop",
|
|
4396
4397
|
needRenderWrapper: !0
|
|
4397
4398
|
}, null, 8, ["survey"])),
|
|
4398
|
-
(i(), q(
|
|
4399
|
+
(i(), q(O, {
|
|
4399
4400
|
key: g.value,
|
|
4400
4401
|
survey: t.value,
|
|
4401
4402
|
page: t.value.activePage,
|
|
@@ -4406,7 +4407,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4406
4407
|
container: "contentBottom",
|
|
4407
4408
|
needRenderWrapper: !0
|
|
4408
4409
|
}, null, 8, ["survey"]))
|
|
4409
|
-
], 14,
|
|
4410
|
+
], 14, Ut)
|
|
4410
4411
|
]),
|
|
4411
4412
|
(i(), q(T("sv-components-container"), {
|
|
4412
4413
|
survey: t.value,
|
|
@@ -4419,11 +4420,11 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4419
4420
|
container: "footer",
|
|
4420
4421
|
needRenderWrapper: !1
|
|
4421
4422
|
}, null, 8, ["survey"])),
|
|
4422
|
-
m.value ? (i(), u("div",
|
|
4423
|
+
m.value ? (i(), u("div", Kt, [
|
|
4423
4424
|
c("div", {
|
|
4424
4425
|
innerHTML: I(),
|
|
4425
4426
|
class: l(t.value.completedCss)
|
|
4426
|
-
}, null, 10,
|
|
4427
|
+
}, null, 10, jt),
|
|
4427
4428
|
(i(), q(T("sv-components-container"), {
|
|
4428
4429
|
survey: t.value,
|
|
4429
4430
|
container: "completePage",
|
|
@@ -4434,27 +4435,27 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4434
4435
|
key: 3,
|
|
4435
4436
|
class: l(t.value.completedBeforeCss),
|
|
4436
4437
|
innerHTML: t.value.processedCompletedBeforeHtml
|
|
4437
|
-
}, null, 10,
|
|
4438
|
+
}, null, 10, Qt)) : d("", !0),
|
|
4438
4439
|
t.value.state === "loading" ? (i(), u("div", {
|
|
4439
4440
|
key: 4,
|
|
4440
4441
|
class: l(t.value.loadingBodyCss),
|
|
4441
4442
|
innerHTML: t.value.processedLoadingHtml
|
|
4442
|
-
}, null, 10,
|
|
4443
|
+
}, null, 10, Gt)) : d("", !0),
|
|
4443
4444
|
t.value.state === "empty" ? (i(), u("div", {
|
|
4444
4445
|
key: 5,
|
|
4445
4446
|
class: l(y.value.bodyEmpty)
|
|
4446
|
-
},
|
|
4447
|
+
}, R(t.value.emptySurveyText), 3)) : d("", !0)
|
|
4447
4448
|
], 2)
|
|
4448
4449
|
]),
|
|
4449
|
-
t.value.showBrandInfo ? (i(), q(
|
|
4450
|
-
b(
|
|
4450
|
+
t.value.showBrandInfo ? (i(), q(U, { key: 1 })) : d("", !0),
|
|
4451
|
+
b(re, {
|
|
4451
4452
|
model: t.value.notifier
|
|
4452
4453
|
}, null, 8, ["model"])
|
|
4453
4454
|
], 2)
|
|
4454
4455
|
], 6);
|
|
4455
4456
|
};
|
|
4456
4457
|
}
|
|
4457
|
-
}),
|
|
4458
|
+
}), Jt = /* @__PURE__ */ h({
|
|
4458
4459
|
__name: "Notifier",
|
|
4459
4460
|
props: {
|
|
4460
4461
|
model: {}
|
|
@@ -4463,13 +4464,13 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4463
4464
|
const s = r;
|
|
4464
4465
|
return L(() => s.model), (o, e) => {
|
|
4465
4466
|
const n = v("sv-action-bar");
|
|
4466
|
-
return
|
|
4467
|
+
return N((i(), u("div", {
|
|
4467
4468
|
class: l(o.model.css),
|
|
4468
|
-
style:
|
|
4469
|
+
style: S({ visibility: o.model.active ? "visible" : "hidden" }),
|
|
4469
4470
|
role: "alert",
|
|
4470
4471
|
"aria-live": "polite"
|
|
4471
4472
|
}, [
|
|
4472
|
-
c("span", null,
|
|
4473
|
+
c("span", null, R(o.model.message), 1),
|
|
4473
4474
|
b(n, {
|
|
4474
4475
|
model: o.model.actionBar
|
|
4475
4476
|
}, null, 8, ["model"])
|
|
@@ -4478,7 +4479,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4478
4479
|
]);
|
|
4479
4480
|
};
|
|
4480
4481
|
}
|
|
4481
|
-
}), Xt = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"],
|
|
4482
|
+
}), Xt = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], Yt = { key: 1 }, Zt = /* @__PURE__ */ h({
|
|
4482
4483
|
__name: "QuestionOther",
|
|
4483
4484
|
props: {
|
|
4484
4485
|
question: {},
|
|
@@ -4499,7 +4500,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4499
4500
|
placeholder: s.question.otherPlaceholder,
|
|
4500
4501
|
"aria-label": s.question.ariaLabel || s.question.a11y_input_ariaLabel,
|
|
4501
4502
|
"aria-required": s.question.ariaRequired || s.question.a11y_input_ariaRequired,
|
|
4502
|
-
style:
|
|
4503
|
+
style: S({ resize: s.question.resizeStyle }),
|
|
4503
4504
|
onChange: o[0] || (o[0] = (e) => {
|
|
4504
4505
|
s.question.onOtherValueChange(e);
|
|
4505
4506
|
}),
|
|
@@ -4507,10 +4508,10 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4507
4508
|
s.question.onOtherValueInput(e);
|
|
4508
4509
|
})
|
|
4509
4510
|
}, null, 46, Xt)),
|
|
4510
|
-
s.question.isReadOnlyRenderDiv() ? (i(), u("div",
|
|
4511
|
+
s.question.isReadOnlyRenderDiv() ? (i(), u("div", Yt, R(s.question.otherValue), 1)) : d("", !0)
|
|
4511
4512
|
], 2));
|
|
4512
4513
|
}
|
|
4513
|
-
}),
|
|
4514
|
+
}), xt = ["disabled", "value", "title"], ei = /* @__PURE__ */ h({
|
|
4514
4515
|
__name: "SurveyNavigationButton",
|
|
4515
4516
|
props: {
|
|
4516
4517
|
item: {}
|
|
@@ -4526,9 +4527,9 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4526
4527
|
title: e.item.getTooltip(),
|
|
4527
4528
|
onMousedown: o,
|
|
4528
4529
|
onClick: n[0] || (n[0] = (...t) => e.item.action && e.item.action(...t))
|
|
4529
|
-
}, null, 42,
|
|
4530
|
+
}, null, 42, xt)) : d("", !0);
|
|
4530
4531
|
}
|
|
4531
|
-
}),
|
|
4532
|
+
}), pe = /* @__PURE__ */ h({
|
|
4532
4533
|
__name: "PopupSurvey",
|
|
4533
4534
|
props: {
|
|
4534
4535
|
survey: {},
|
|
@@ -4550,7 +4551,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4550
4551
|
o.value.onScroll();
|
|
4551
4552
|
};
|
|
4552
4553
|
L(() => o.value);
|
|
4553
|
-
const g =
|
|
4554
|
+
const g = J(
|
|
4554
4555
|
() => s.survey,
|
|
4555
4556
|
(I) => {
|
|
4556
4557
|
const C = new He(null, I);
|
|
@@ -4563,10 +4564,10 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4563
4564
|
return z(() => {
|
|
4564
4565
|
g();
|
|
4565
4566
|
}), (I, C) => {
|
|
4566
|
-
const
|
|
4567
|
+
const P = v("survey-string"), k = v("sv-svg-icon");
|
|
4567
4568
|
return o.value.isShowing ? (i(), u("div", {
|
|
4568
4569
|
key: 0,
|
|
4569
|
-
style:
|
|
4570
|
+
style: S([{ position: "fixed", bottom: "3px", right: "10px" }, {
|
|
4570
4571
|
maxWidth: o.value.renderedWidth,
|
|
4571
4572
|
width: o.value.renderedWidth
|
|
4572
4573
|
}]),
|
|
@@ -4583,7 +4584,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4583
4584
|
style: { "padding-right": "10px" },
|
|
4584
4585
|
class: l(o.value.cssHeaderTitle)
|
|
4585
4586
|
}, [
|
|
4586
|
-
b(
|
|
4587
|
+
b(P, {
|
|
4587
4588
|
locString: I.survey.locTitle
|
|
4588
4589
|
}, null, 8, ["locString"])
|
|
4589
4590
|
], 2),
|
|
@@ -4625,21 +4626,21 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4625
4626
|
], 6)) : d("", !0);
|
|
4626
4627
|
};
|
|
4627
4628
|
}
|
|
4628
|
-
}),
|
|
4629
|
+
}), si = ["innerHTML"], ni = /* @__PURE__ */ h({
|
|
4629
4630
|
__name: "CustomWidget",
|
|
4630
4631
|
props: {
|
|
4631
4632
|
question: {},
|
|
4632
4633
|
css: {}
|
|
4633
4634
|
},
|
|
4634
4635
|
setup(r) {
|
|
4635
|
-
const s = r, o =
|
|
4636
|
+
const s = r, o = _(), e = w(
|
|
4636
4637
|
() => s.question.customWidget.isDefaultRender
|
|
4637
4638
|
), n = w(
|
|
4638
4639
|
() => !!s.question.customWidget.htmlTemplate
|
|
4639
4640
|
), t = w(() => s.question.customWidget.htmlTemplate), a = w(() => "survey-" + s.question.getTemplate());
|
|
4640
|
-
return
|
|
4641
|
+
return H(() => {
|
|
4641
4642
|
s.question.customWidget.afterRender(s.question, o.value);
|
|
4642
|
-
}),
|
|
4643
|
+
}), X(() => {
|
|
4643
4644
|
s.question.customWidget.willUnmount(s.question, o.value);
|
|
4644
4645
|
}), (p, m) => (i(), u("div", {
|
|
4645
4646
|
ref_key: "root",
|
|
@@ -4648,7 +4649,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4648
4649
|
n.value ? (i(), u("div", {
|
|
4649
4650
|
key: 0,
|
|
4650
4651
|
innerHTML: t.value
|
|
4651
|
-
}, null, 8,
|
|
4652
|
+
}, null, 8, si)) : d("", !0),
|
|
4652
4653
|
e.value ? (i(), q(T(a.value), {
|
|
4653
4654
|
key: 1,
|
|
4654
4655
|
question: p.question,
|
|
@@ -4656,7 +4657,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4656
4657
|
}, null, 8, ["question", "css"])) : d("", !0)
|
|
4657
4658
|
], 512));
|
|
4658
4659
|
}
|
|
4659
|
-
}),
|
|
4660
|
+
}), oi = /* @__PURE__ */ h({
|
|
4660
4661
|
__name: "PopupModal",
|
|
4661
4662
|
setup(r) {
|
|
4662
4663
|
const s = j();
|
|
@@ -4690,7 +4691,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4690
4691
|
K.showDialog = void 0;
|
|
4691
4692
|
})), (n, t) => {
|
|
4692
4693
|
const a = v("sv-popup-container");
|
|
4693
|
-
return s.value ? (i(), q(
|
|
4694
|
+
return s.value ? (i(), q(Se, {
|
|
4694
4695
|
key: 0,
|
|
4695
4696
|
to: s.value.container
|
|
4696
4697
|
}, [
|
|
@@ -4698,7 +4699,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4698
4699
|
], 8, ["to"])) : d("", !0);
|
|
4699
4700
|
};
|
|
4700
4701
|
}
|
|
4701
|
-
}),
|
|
4702
|
+
}), ti = /* @__PURE__ */ h({
|
|
4702
4703
|
__name: "CharacterCounter",
|
|
4703
4704
|
props: {
|
|
4704
4705
|
counter: {},
|
|
@@ -4708,9 +4709,9 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4708
4709
|
const s = r;
|
|
4709
4710
|
return L(() => s.counter), (o, e) => (i(), u("div", {
|
|
4710
4711
|
class: l(o.remainingCharacterCounter)
|
|
4711
|
-
},
|
|
4712
|
+
}, R(o.counter.remainingCharacterCounter), 3));
|
|
4712
4713
|
}
|
|
4713
|
-
}),
|
|
4714
|
+
}), ii = /* @__PURE__ */ h({
|
|
4714
4715
|
inheritAttrs: !1,
|
|
4715
4716
|
__name: "Composite",
|
|
4716
4717
|
props: {
|
|
@@ -4718,7 +4719,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4718
4719
|
css: {}
|
|
4719
4720
|
},
|
|
4720
4721
|
setup(r) {
|
|
4721
|
-
const s = r, o =
|
|
4722
|
+
const s = r, o = _(null);
|
|
4722
4723
|
A(s, o);
|
|
4723
4724
|
const e = w(() => s.question.contentPanel);
|
|
4724
4725
|
return (n, t) => {
|
|
@@ -4731,7 +4732,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4731
4732
|
}, null, 8, ["element", "css"]);
|
|
4732
4733
|
};
|
|
4733
4734
|
}
|
|
4734
|
-
}),
|
|
4735
|
+
}), ri = /* @__PURE__ */ h({
|
|
4735
4736
|
inheritAttrs: !1,
|
|
4736
4737
|
__name: "Custom",
|
|
4737
4738
|
props: {
|
|
@@ -4739,7 +4740,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4739
4740
|
css: {}
|
|
4740
4741
|
},
|
|
4741
4742
|
setup(r) {
|
|
4742
|
-
const s = r, o =
|
|
4743
|
+
const s = r, o = _(null);
|
|
4743
4744
|
A(s, o);
|
|
4744
4745
|
const e = w(() => s.question.contentQuestion), n = (t) => te(t);
|
|
4745
4746
|
return (t, a) => (i(), q(T(n(e.value)), {
|
|
@@ -4748,16 +4749,16 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4748
4749
|
css: t.css
|
|
4749
4750
|
}, null, 8, ["question", "css"]));
|
|
4750
4751
|
}
|
|
4751
|
-
}),
|
|
4752
|
-
|
|
4753
|
-
],
|
|
4752
|
+
}), li = /* @__PURE__ */ c("use", { "xlink:href": "#icon-timercircle" }, null, -1), ai = [
|
|
4753
|
+
li
|
|
4754
|
+
], ve = 440, ui = /* @__PURE__ */ h({
|
|
4754
4755
|
__name: "TimerPanel",
|
|
4755
4756
|
props: {
|
|
4756
4757
|
model: {},
|
|
4757
4758
|
css: {}
|
|
4758
4759
|
},
|
|
4759
4760
|
setup(r) {
|
|
4760
|
-
const s = r, o = w(() =>
|
|
4761
|
+
const s = r, o = w(() => ve * s.model.progress), e = w(() => s.model.text);
|
|
4761
4762
|
return L(() => s.model), (n, t) => n.model.isRunning && n.model.showTimerAsClock ? (i(), u("div", {
|
|
4762
4763
|
key: 0,
|
|
4763
4764
|
class: l(n.model.rootCss)
|
|
@@ -4765,37 +4766,37 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4765
4766
|
n.model.showProgress ? (i(), u("svg", {
|
|
4766
4767
|
key: 0,
|
|
4767
4768
|
class: l(n.model.getProgressCss()),
|
|
4768
|
-
style:
|
|
4769
|
-
},
|
|
4769
|
+
style: S({ strokeDasharray: ve, strokeDashoffset: o.value })
|
|
4770
|
+
}, ai, 6)) : d("", !0),
|
|
4770
4771
|
c("div", {
|
|
4771
4772
|
class: l(n.model.textContainerCss)
|
|
4772
4773
|
}, [
|
|
4773
4774
|
c("span", {
|
|
4774
4775
|
class: l(n.model.majorTextCss)
|
|
4775
|
-
},
|
|
4776
|
+
}, R(n.model.clockMajorText), 3),
|
|
4776
4777
|
n.model.clockMinorText ? (i(), u("span", {
|
|
4777
4778
|
key: 0,
|
|
4778
4779
|
class: l(n.model.minorTextCss)
|
|
4779
|
-
},
|
|
4780
|
+
}, R(n.model.clockMinorText), 3)) : d("", !0)
|
|
4780
4781
|
], 2)
|
|
4781
|
-
], 2)) :
|
|
4782
|
+
], 2)) : N((i(), u("div", {
|
|
4782
4783
|
key: 1,
|
|
4783
4784
|
class: l(n.model.survey.getCss().timerRoot)
|
|
4784
|
-
},
|
|
4785
|
+
}, R(e.value), 3)), [
|
|
4785
4786
|
[M, n.model.isRunning && !n.model.showTimerAsClock]
|
|
4786
4787
|
]);
|
|
4787
4788
|
}
|
|
4788
|
-
}),
|
|
4789
|
-
function
|
|
4789
|
+
}), di = {}, mi = { class: "sd-loading-indicator" };
|
|
4790
|
+
function ci(r, s) {
|
|
4790
4791
|
const o = v("sv-svg-icon");
|
|
4791
|
-
return i(), u("div",
|
|
4792
|
+
return i(), u("div", mi, [
|
|
4792
4793
|
b(o, {
|
|
4793
4794
|
iconName: "icon-loading",
|
|
4794
4795
|
size: "'auto'"
|
|
4795
4796
|
})
|
|
4796
4797
|
]);
|
|
4797
4798
|
}
|
|
4798
|
-
const
|
|
4799
|
+
const pi = /* @__PURE__ */ he(di, [["render", ci]]), vi = { key: 2 }, yi = /* @__PURE__ */ h({
|
|
4799
4800
|
__name: "Header",
|
|
4800
4801
|
props: {
|
|
4801
4802
|
model: {},
|
|
@@ -4810,33 +4811,33 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4810
4811
|
const n = v("sv-header-cell"), t = v("sv-header-mobile");
|
|
4811
4812
|
return i(), u("div", {
|
|
4812
4813
|
class: l(o.model.headerClasses),
|
|
4813
|
-
style:
|
|
4814
|
+
style: S({ height: o.model.renderedHeight })
|
|
4814
4815
|
}, [
|
|
4815
4816
|
o.model.backgroundImage ? (i(), u("div", {
|
|
4816
4817
|
key: 0,
|
|
4817
4818
|
class: l(o.model.backgroundImageClasses),
|
|
4818
|
-
style:
|
|
4819
|
+
style: S(o.model.backgroundImageStyle)
|
|
4819
4820
|
}, null, 6)) : d("", !0),
|
|
4820
4821
|
o.survey.isMobile ? d("", !0) : (i(), u("div", {
|
|
4821
4822
|
key: 1,
|
|
4822
4823
|
class: l(o.model.contentClasses),
|
|
4823
|
-
style:
|
|
4824
|
+
style: S({ maxWidth: o.model.maxWidth })
|
|
4824
4825
|
}, [
|
|
4825
4826
|
(i(!0), u($, null, B(o.model.cells, (a, p) => (i(), q(n, {
|
|
4826
4827
|
model: a,
|
|
4827
4828
|
key: p
|
|
4828
4829
|
}, null, 8, ["model"]))), 128))
|
|
4829
4830
|
], 6)),
|
|
4830
|
-
o.survey.isMobile ? (i(), u("div",
|
|
4831
|
+
o.survey.isMobile ? (i(), u("div", vi, [
|
|
4831
4832
|
b(t, { model: o.model }, null, 8, ["model"])
|
|
4832
4833
|
])) : d("", !0)
|
|
4833
4834
|
], 6);
|
|
4834
4835
|
};
|
|
4835
4836
|
}
|
|
4836
|
-
}),
|
|
4837
|
+
}), qi = {
|
|
4837
4838
|
key: 0,
|
|
4838
4839
|
class: "sv-header__logo"
|
|
4839
|
-
},
|
|
4840
|
+
}, gi = ["src", "width", "height", "alt"], hi = /* @__PURE__ */ h({
|
|
4840
4841
|
__name: "HeaderCell",
|
|
4841
4842
|
props: {
|
|
4842
4843
|
model: {}
|
|
@@ -4846,13 +4847,13 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4846
4847
|
const e = v("survey-element-title"), n = v("survey-string");
|
|
4847
4848
|
return i(), u("div", {
|
|
4848
4849
|
class: l(s.model.css),
|
|
4849
|
-
style:
|
|
4850
|
+
style: S(s.model.style)
|
|
4850
4851
|
}, [
|
|
4851
4852
|
c("div", {
|
|
4852
4853
|
class: "sv-header__cell-content",
|
|
4853
|
-
style:
|
|
4854
|
+
style: S(s.model.contentStyle)
|
|
4854
4855
|
}, [
|
|
4855
|
-
s.model.showLogo ? (i(), u("div",
|
|
4856
|
+
s.model.showLogo ? (i(), u("div", qi, [
|
|
4856
4857
|
c("div", {
|
|
4857
4858
|
class: l(s.model.survey.logoClassNames)
|
|
4858
4859
|
}, [
|
|
@@ -4862,14 +4863,14 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4862
4863
|
width: s.model.survey.renderedLogoWidth,
|
|
4863
4864
|
height: s.model.survey.renderedLogoHeight,
|
|
4864
4865
|
alt: s.model.survey.locTitle.renderedHtml,
|
|
4865
|
-
style:
|
|
4866
|
-
}, null, 14,
|
|
4866
|
+
style: S({ objectFit: s.model.survey.logoFit, width: s.model.survey.renderedStyleLogoWidth, height: s.model.survey.renderedStyleLogoHeight })
|
|
4867
|
+
}, null, 14, gi)
|
|
4867
4868
|
], 2)
|
|
4868
4869
|
])) : d("", !0),
|
|
4869
4870
|
s.model.showTitle ? (i(), u("div", {
|
|
4870
4871
|
key: 1,
|
|
4871
4872
|
class: "sv-header__title",
|
|
4872
|
-
style:
|
|
4873
|
+
style: S({ maxWidth: s.model.textAreaWidth })
|
|
4873
4874
|
}, [
|
|
4874
4875
|
b(e, {
|
|
4875
4876
|
element: s.model.survey,
|
|
@@ -4879,9 +4880,9 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4879
4880
|
s.model.showDescription ? (i(), u("div", {
|
|
4880
4881
|
key: 2,
|
|
4881
4882
|
class: "sv-header__description",
|
|
4882
|
-
style:
|
|
4883
|
+
style: S({ maxWidth: s.model.textAreaWidth })
|
|
4883
4884
|
}, [
|
|
4884
|
-
s.model.survey.renderedHasDescription ? (i(), u("
|
|
4885
|
+
s.model.survey.renderedHasDescription ? (i(), u("div", {
|
|
4885
4886
|
key: 0,
|
|
4886
4887
|
class: l(s.model.survey.css.description)
|
|
4887
4888
|
}, [
|
|
@@ -4894,10 +4895,10 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4894
4895
|
], 6);
|
|
4895
4896
|
};
|
|
4896
4897
|
}
|
|
4897
|
-
}),
|
|
4898
|
+
}), Ci = { class: "sv-header--mobile" }, bi = {
|
|
4898
4899
|
key: 0,
|
|
4899
4900
|
class: "sv-header__logo"
|
|
4900
|
-
},
|
|
4901
|
+
}, ki = ["src", "width", "height", "alt"], fi = /* @__PURE__ */ h({
|
|
4901
4902
|
__name: "HeaderMobile",
|
|
4902
4903
|
props: {
|
|
4903
4904
|
model: {}
|
|
@@ -4905,8 +4906,8 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4905
4906
|
setup(r) {
|
|
4906
4907
|
return (s, o) => {
|
|
4907
4908
|
const e = v("survey-element-title"), n = v("survey-string");
|
|
4908
|
-
return i(), u("div",
|
|
4909
|
-
s.model.survey.hasLogo ? (i(), u("div",
|
|
4909
|
+
return i(), u("div", Ci, [
|
|
4910
|
+
s.model.survey.hasLogo ? (i(), u("div", bi, [
|
|
4910
4911
|
c("div", {
|
|
4911
4912
|
class: l(s.model.survey.logoClassNames)
|
|
4912
4913
|
}, [
|
|
@@ -4916,14 +4917,14 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4916
4917
|
width: s.model.survey.renderedLogoWidth,
|
|
4917
4918
|
height: s.model.survey.renderedLogoHeight,
|
|
4918
4919
|
alt: s.model.survey.locTitle.renderedHtml,
|
|
4919
|
-
style:
|
|
4920
|
-
}, null, 14,
|
|
4920
|
+
style: S({ objectFit: s.model.survey.logoFit, width: s.model.survey.renderedStyleLogoWidth, height: s.model.survey.renderedStyleLogoHeight })
|
|
4921
|
+
}, null, 14, ki)
|
|
4921
4922
|
], 2)
|
|
4922
4923
|
])) : d("", !0),
|
|
4923
4924
|
s.model.survey.hasTitle ? (i(), u("div", {
|
|
4924
4925
|
key: 1,
|
|
4925
4926
|
class: "sv-header__title",
|
|
4926
|
-
style:
|
|
4927
|
+
style: S({ maxWidth: s.model.renderedtextAreaWidth })
|
|
4927
4928
|
}, [
|
|
4928
4929
|
b(e, {
|
|
4929
4930
|
element: s.model.survey,
|
|
@@ -4933,9 +4934,9 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4933
4934
|
s.model.survey.renderedHasDescription ? (i(), u("div", {
|
|
4934
4935
|
key: 2,
|
|
4935
4936
|
class: "sv-header__description",
|
|
4936
|
-
style:
|
|
4937
|
+
style: S({ maxWidth: s.model.renderedtextAreaWidth })
|
|
4937
4938
|
}, [
|
|
4938
|
-
s.model.survey.renderedHasDescription ? (i(), u("
|
|
4939
|
+
s.model.survey.renderedHasDescription ? (i(), u("div", {
|
|
4939
4940
|
key: 0,
|
|
4940
4941
|
class: l(s.model.survey.css.description)
|
|
4941
4942
|
}, [
|
|
@@ -4947,7 +4948,7 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4947
4948
|
]);
|
|
4948
4949
|
};
|
|
4949
4950
|
}
|
|
4950
|
-
}),
|
|
4951
|
+
}), Ii = /* @__PURE__ */ h({
|
|
4951
4952
|
__name: "Element",
|
|
4952
4953
|
props: {
|
|
4953
4954
|
element: {},
|
|
@@ -4978,27 +4979,27 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4978
4979
|
};
|
|
4979
4980
|
});
|
|
4980
4981
|
return (a, p) => (i(), u("div", {
|
|
4981
|
-
style:
|
|
4982
|
+
style: S(n(a.element)),
|
|
4982
4983
|
class: l(a.element.cssClasses.questionWrapper)
|
|
4983
4984
|
}, [
|
|
4984
|
-
a.row.isNeedRender ? (i(), q(T(e.value), F(
|
|
4985
|
+
a.row.isNeedRender ? (i(), q(T(e.value), F(W({ key: 0 }, t.value)), null, 16)) : a.element.skeletonComponentName ? (i(), q(T(a.element.skeletonComponentName), {
|
|
4985
4986
|
key: 1,
|
|
4986
4987
|
element: a.element,
|
|
4987
4988
|
css: a.css
|
|
4988
4989
|
}, null, 8, ["element", "css"])) : d("", !0)
|
|
4989
4990
|
], 6));
|
|
4990
4991
|
}
|
|
4991
|
-
}),
|
|
4992
|
+
}), wi = /* @__PURE__ */ h({
|
|
4992
4993
|
__name: "TemplateRenderer",
|
|
4993
4994
|
props: {
|
|
4994
4995
|
componentName: {},
|
|
4995
4996
|
componentData: {}
|
|
4996
4997
|
},
|
|
4997
4998
|
setup(r) {
|
|
4998
|
-
const s =
|
|
4999
|
-
return (e, n) => o.value && !e.componentName ?
|
|
4999
|
+
const s = Re(), o = w(() => !!s.default);
|
|
5000
|
+
return (e, n) => o.value && !e.componentName ? Te(e.$slots, "default", { key: 0 }) : (i(), q(T(e.componentName), F(W({ key: 1 }, e.componentData)), null, 16));
|
|
5000
5001
|
}
|
|
5001
|
-
}),
|
|
5002
|
+
}), Si = /* @__PURE__ */ h({
|
|
5002
5003
|
__name: "FileCleanButton",
|
|
5003
5004
|
props: {
|
|
5004
5005
|
question: {},
|
|
@@ -5012,7 +5013,7 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5012
5013
|
class: l(s.css),
|
|
5013
5014
|
onClick: o[0] || (o[0] = (...n) => s.question.doClean && s.question.doClean(...n))
|
|
5014
5015
|
}, [
|
|
5015
|
-
c("span", null,
|
|
5016
|
+
c("span", null, R(s.question.clearButtonCaption), 1),
|
|
5016
5017
|
s.question.cssClasses.removeButtonIconId ? (i(), q(e, {
|
|
5017
5018
|
key: 0,
|
|
5018
5019
|
iconName: s.question.cssClasses.removeButtonIconId,
|
|
@@ -5022,7 +5023,7 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5022
5023
|
], 2);
|
|
5023
5024
|
};
|
|
5024
5025
|
}
|
|
5025
|
-
}),
|
|
5026
|
+
}), Ri = ["id"], Ti = /* @__PURE__ */ h({
|
|
5026
5027
|
__name: "FileVideo",
|
|
5027
5028
|
props: {
|
|
5028
5029
|
question: {}
|
|
@@ -5044,14 +5045,14 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5044
5045
|
playsinline: "",
|
|
5045
5046
|
id: s.question.videoId,
|
|
5046
5047
|
class: l(s.question.cssClasses.video)
|
|
5047
|
-
}, null, 10,
|
|
5048
|
+
}, null, 10, Ri),
|
|
5048
5049
|
b(e, {
|
|
5049
5050
|
item: s.question.takePictureAction
|
|
5050
5051
|
}, null, 8, ["item"])
|
|
5051
5052
|
], 2);
|
|
5052
5053
|
};
|
|
5053
5054
|
}
|
|
5054
|
-
}),
|
|
5055
|
+
}), $i = ["for", "aria-label"], _i = /* @__PURE__ */ h({
|
|
5055
5056
|
__name: "FileChooseButton",
|
|
5056
5057
|
props: {
|
|
5057
5058
|
data: {},
|
|
@@ -5066,7 +5067,7 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5066
5067
|
);
|
|
5067
5068
|
return (e, n) => {
|
|
5068
5069
|
const t = v("sv-svg-icon"), a = Y("key2click");
|
|
5069
|
-
return
|
|
5070
|
+
return N((i(), u("label", {
|
|
5070
5071
|
tabindex: "0",
|
|
5071
5072
|
class: l(o.value.getChooseFileCss()),
|
|
5072
5073
|
for: o.value.inputId,
|
|
@@ -5078,13 +5079,13 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5078
5079
|
iconName: o.value.cssClasses.chooseFileIconId,
|
|
5079
5080
|
size: "auto"
|
|
5080
5081
|
}, null, 8, ["title", "iconName"])) : d("", !0),
|
|
5081
|
-
c("span", null,
|
|
5082
|
-
], 10,
|
|
5082
|
+
c("span", null, R(o.value.chooseButtonText), 1)
|
|
5083
|
+
], 10, $i)), [
|
|
5083
5084
|
[a]
|
|
5084
5085
|
]);
|
|
5085
5086
|
};
|
|
5086
5087
|
}
|
|
5087
|
-
}), Di = ["onClick", "href", "title", "download"],
|
|
5088
|
+
}), Di = ["onClick", "href", "title", "download"], Bi = ["src"], Li = ["onClick"], Ni = ["onClick", "href", "title", "download"], Pi = /* @__PURE__ */ h({
|
|
5088
5089
|
__name: "FilePreview",
|
|
5089
5090
|
props: {
|
|
5090
5091
|
question: {}
|
|
@@ -5096,7 +5097,7 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5096
5097
|
key: 0,
|
|
5097
5098
|
class: l(s.question.cssClasses.fileList || void 0)
|
|
5098
5099
|
}, [
|
|
5099
|
-
(i(!0), u($, null, B(s.question.previewValue, (n, t) =>
|
|
5100
|
+
(i(!0), u($, null, B(s.question.previewValue, (n, t) => N((i(), u("span", {
|
|
5100
5101
|
key: s.question.inputId + "_" + t,
|
|
5101
5102
|
class: l(s.question.cssClasses.preview)
|
|
5102
5103
|
}, [
|
|
@@ -5109,8 +5110,8 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5109
5110
|
href: n.content,
|
|
5110
5111
|
title: n.name,
|
|
5111
5112
|
download: n.name,
|
|
5112
|
-
style:
|
|
5113
|
-
},
|
|
5113
|
+
style: S({ width: s.question.imageWidth })
|
|
5114
|
+
}, R(n.name), 13, Di)
|
|
5114
5115
|
], 2)) : d("", !0),
|
|
5115
5116
|
c("div", {
|
|
5116
5117
|
class: l(s.question.getImageWrapperCss(n))
|
|
@@ -5118,12 +5119,12 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5118
5119
|
s.question.canPreviewImage(n) ? (i(), u("img", {
|
|
5119
5120
|
key: 0,
|
|
5120
5121
|
src: n.content,
|
|
5121
|
-
style:
|
|
5122
|
+
style: S({
|
|
5122
5123
|
height: s.question.imageHeight,
|
|
5123
5124
|
width: s.question.imageWidth
|
|
5124
5125
|
}),
|
|
5125
5126
|
alt: "File preview"
|
|
5126
|
-
}, null, 12,
|
|
5127
|
+
}, null, 12, Bi)) : d("", !0),
|
|
5127
5128
|
s.question.defaultImage(n) ? (i(), q(e, {
|
|
5128
5129
|
key: 1,
|
|
5129
5130
|
iconName: s.question.cssClasses.defaultImageIconId,
|
|
@@ -5137,7 +5138,7 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5137
5138
|
}, [
|
|
5138
5139
|
c("span", {
|
|
5139
5140
|
class: l(s.question.cssClasses.removeFile)
|
|
5140
|
-
},
|
|
5141
|
+
}, R(s.question.removeFileCaption), 3),
|
|
5141
5142
|
s.question.cssClasses.removeFileSvgIconId ? (i(), q(e, {
|
|
5142
5143
|
key: 0,
|
|
5143
5144
|
title: s.question.removeFileCaption,
|
|
@@ -5145,7 +5146,7 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5145
5146
|
iconName: s.question.cssClasses.removeFileSvgIconId,
|
|
5146
5147
|
size: "auto"
|
|
5147
5148
|
}, null, 8, ["title", "class", "iconName"])) : d("", !0)
|
|
5148
|
-
], 10,
|
|
5149
|
+
], 10, Li)) : d("", !0)
|
|
5149
5150
|
], 2),
|
|
5150
5151
|
n.name && s.question.cssClasses.fileSignBottom ? (i(), u("div", {
|
|
5151
5152
|
key: 1,
|
|
@@ -5156,8 +5157,8 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5156
5157
|
href: n.content,
|
|
5157
5158
|
title: n.name,
|
|
5158
5159
|
download: n.name,
|
|
5159
|
-
style:
|
|
5160
|
-
},
|
|
5160
|
+
style: S({ width: s.question.imageWidth })
|
|
5161
|
+
}, R(n.name), 13, Ni)
|
|
5161
5162
|
], 2)) : d("", !0)
|
|
5162
5163
|
], 2)), [
|
|
5163
5164
|
[M, n && s.question.isPreviewVisible(t)]
|
|
@@ -5165,13 +5166,13 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5165
5166
|
], 2)) : d("", !0);
|
|
5166
5167
|
};
|
|
5167
5168
|
}
|
|
5168
|
-
}),
|
|
5169
|
+
}), Ai = /* @__PURE__ */ h({
|
|
5169
5170
|
__name: "ButtonGroup",
|
|
5170
5171
|
props: {
|
|
5171
5172
|
question: {}
|
|
5172
5173
|
},
|
|
5173
5174
|
setup(r) {
|
|
5174
|
-
const s = r, o =
|
|
5175
|
+
const s = r, o = _();
|
|
5175
5176
|
return A(s, o), (e, n) => {
|
|
5176
5177
|
const t = v("sv-button-group-item");
|
|
5177
5178
|
return i(), u("div", {
|
|
@@ -5189,7 +5190,7 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5189
5190
|
], 2);
|
|
5190
5191
|
};
|
|
5191
5192
|
}
|
|
5192
|
-
}),
|
|
5193
|
+
}), Mi = ["title"], Hi = ["name", "id", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "disabled", "value"], Wi = ["title"], Ei = /* @__PURE__ */ h({
|
|
5193
5194
|
__name: "ButtonGroupItem",
|
|
5194
5195
|
props: {
|
|
5195
5196
|
item: {},
|
|
@@ -5213,7 +5214,7 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5213
5214
|
class: l(o.value.css.label),
|
|
5214
5215
|
title: o.value.caption.renderedHtml
|
|
5215
5216
|
}, [
|
|
5216
|
-
|
|
5217
|
+
N(c("input", {
|
|
5217
5218
|
type: "radio",
|
|
5218
5219
|
name: o.value.name,
|
|
5219
5220
|
id: o.value.id,
|
|
@@ -5226,7 +5227,7 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5226
5227
|
class: l(o.value.css.control),
|
|
5227
5228
|
"onUpdate:modelValue": t[0] || (t[0] = (m) => e.value = m),
|
|
5228
5229
|
value: o.value.value
|
|
5229
|
-
}, null, 10,
|
|
5230
|
+
}, null, 10, Hi), [
|
|
5230
5231
|
[se, e.value]
|
|
5231
5232
|
]),
|
|
5232
5233
|
c("div", {
|
|
@@ -5246,12 +5247,12 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5246
5247
|
b(p, {
|
|
5247
5248
|
locString: o.value.caption
|
|
5248
5249
|
}, null, 8, ["locString"])
|
|
5249
|
-
], 10,
|
|
5250
|
+
], 10, Wi)) : d("", !0)
|
|
5250
5251
|
], 2)
|
|
5251
|
-
], 10,
|
|
5252
|
+
], 10, Mi);
|
|
5252
5253
|
};
|
|
5253
5254
|
}
|
|
5254
|
-
}),
|
|
5255
|
+
}), Vi = ["src", "width", "height", "alt"], Oi = /* @__PURE__ */ h({
|
|
5255
5256
|
inheritAttrs: !1,
|
|
5256
5257
|
__name: "Logo",
|
|
5257
5258
|
props: {
|
|
@@ -5268,39 +5269,53 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5268
5269
|
width: o.value.renderedLogoWidth,
|
|
5269
5270
|
height: o.value.renderedLogoHeight,
|
|
5270
5271
|
alt: o.value.locTitle.renderedHtml,
|
|
5271
|
-
style:
|
|
5272
|
+
style: S({
|
|
5272
5273
|
objectFit: o.value.logoFit,
|
|
5273
5274
|
width: o.value.renderedStyleLogoWidth,
|
|
5274
5275
|
height: o.value.renderedStyleLogoHeight
|
|
5275
5276
|
})
|
|
5276
|
-
}, null, 14,
|
|
5277
|
+
}, null, 14, Vi)
|
|
5277
5278
|
], 2));
|
|
5278
5279
|
}
|
|
5280
|
+
}), Fi = /* @__PURE__ */ h({
|
|
5281
|
+
__name: "SvgBundle",
|
|
5282
|
+
setup(r) {
|
|
5283
|
+
const s = _();
|
|
5284
|
+
return H(() => {
|
|
5285
|
+
s.value.innerHTML = Oe.iconsRenderedHtml();
|
|
5286
|
+
}), (o, e) => N((i(), u("svg", {
|
|
5287
|
+
id: "sv-icon-holder-global-container",
|
|
5288
|
+
ref_key: "root",
|
|
5289
|
+
ref: s
|
|
5290
|
+
}, null, 512)), [
|
|
5291
|
+
[M, !1]
|
|
5292
|
+
]);
|
|
5293
|
+
}
|
|
5279
5294
|
});
|
|
5280
|
-
|
|
5281
|
-
function
|
|
5282
|
-
r.component("SurveyComponent",
|
|
5295
|
+
Fe.platform = "vue3";
|
|
5296
|
+
function zi(r) {
|
|
5297
|
+
r.component("SurveyComponent", ce), r.component("sv-svg-bundle", Fi), r.component("PopupSurveyComponent", pe), r.component("survey", ce), r.component("popup-survey", pe), r.component("survey-header", Qe), r.component("sv-logo-image", Oi), r.component("survey-page", je), r.component("survey-row", Ge), r.component("survey-question", Ye), r.component("survey-panel", ss), r.component("survey-element-header", ns), r.component("survey-string", os), r.component("sv-string-viewer", rs), r.component("sv-string-editor", as), r.component("sv-skeleton", ds), r.component("survey-text", ps), r.component("survey-text-input", gs), r.component("survey-checkbox", fs), r.component("survey-checkbox-item", Rs), r.component("survey-radiogroup", Ts), r.component("survey-radiogroup-item", Ds), r.component("survey-signaturepad", Ps), r.component("survey-html", Ms), r.component("survey-image", Vs), r.component("survey-expression", Os), r.component("survey-file", Us), r.component("sv-file-choose-btn", _i), r.component("sv-file-clean-btn", Si), r.component("sv-file-preview", Pi), r.component("sv-file-video", Ti), r.component("survey-imagepicker", js), r.component("survey-imagepicker-item", Ys), r.component("survey-comment", en), r.component("survey-dropdown", sn), r.component("sv-dropdown-select", rn), r.component("sv-dropdown-option-item", an), r.component("sv-dropdown", pn), r.component("survey-tagbox", vn), r.component("sv-tagbox", gn), r.component("sv-tagbox-item", fn), r.component("sv-tagbox-filter", bn), r.component("survey-ranking", In), r.component("survey-ranking-item", _n), r.component("survey-rating", Ln), r.component("sv-rating-item", Pn), r.component("sv-rating-item-smiley", Mn), r.component("sv-rating-item-star", Wn), r.component("sv-rating-dropdown", zn), r.component("sv-rating-dropdown-item", Fn), r.component("survey-boolean", Kn), r.component("sv-boolean-radio", jn), r.component("sv-boolean-radio-item", Jn), r.component("sv-boolean-checkbox", eo), r.component("survey-multipletext", so), r.component("survey-multipletext-item", oo), r.component("survey-matrix", co), r.component("survey-matrixdropdown", po), r.component("survey-matrixtable", go), r.component("survey-matrixheaderrequired", Co), r.component("survey-matrixcell", ko), r.component("survey-matrixdynamic", fo), r.component("sv-matrix-remove-button", wo), r.component("sv-matrix-drag-drop-icon", Ro), r.component("sv-matrix-detail-button", $o), r.component("survey-paneldynamic", _o), r.component("survey-paneldynamicprogress", Do), r.component("survey-paneldynamicprogress-v2", Bo), r.component("sv-paneldynamic-add-btn", Lo), r.component("sv-paneldynamic-next-btn", Po), r.component("sv-paneldynamic-prev-btn", Mo), r.component("sv-paneldynamic-remove-btn", Ho), r.component("sv-paneldynamic-progress-text", Wo), r.component("sv-components-container", At), r.component("sv-progress-buttons", Et), r.component("sv-progress-toc", Vt), r.component("sv-progress-pages", x), r.component("sv-progress-questions", x), r.component("sv-progress-correctquestions", x), r.component("sv-progress-requiredquestions", x), r.component("survey-errors", Vo), r.component("survey-question-comment", zo), r.component("survey-element-title", Uo), r.component("survey-element-title-content", Go), r.component("sv-title-actions", Yo), r.component("sv-brand-info", ot), r.component("sv-svg-icon", rt), r.component("sv-action-bar", lt), r.component("sv-action", dt), r.component("sv-action-bar-item", pt), r.component("sv-action-bar-item-dropdown", qt), r.component("sv-action-bar-separator", gt), r.component("sv-list", kt), r.component("sv-list-item", wt), r.component("sv-popup", St), r.component("sv-popup-container", Lt), r.component("popup-pointer", Nt), r.component("sv-notifier", Jt), r.component("survey-other-choice", Zt), r.component("sv-nav-btn", ei), r.component("survey-customwidget", ni), r.component("survey-popup-modal", oi), r.component("sv-character-counter", ti), r.component("survey-composite", ii), r.component("survey-custom", ri), r.component("sv-timerpanel", ui), r.component("sv-loading-indicator", pi), r.component("sv-header", yi), r.component("sv-header-cell", hi), r.component("sv-header-mobile", fi), r.component("sv-template-renderer", wi), r.component("survey-element", Ii), r.component("survey-buttongroup", Ai), r.component("sv-button-group-item", Ei), r.directive("key2click", {
|
|
5283
5298
|
mounted: function(s, o) {
|
|
5284
5299
|
const e = { ...o.value };
|
|
5285
5300
|
if (e.disableTabStop) {
|
|
5286
5301
|
s.tabIndex = -1;
|
|
5287
5302
|
return;
|
|
5288
5303
|
}
|
|
5289
|
-
e.disableTabStop || (s.tabIndex = 0), s.addEventListener("keyup", (n) => (n.preventDefault(), n.stopPropagation(),
|
|
5290
|
-
|
|
5304
|
+
e.disableTabStop || (s.tabIndex = 0), s.addEventListener("keyup", (n) => (n.preventDefault(), n.stopPropagation(), qe(n, e), !1)), s.addEventListener("keydown", (n) => {
|
|
5305
|
+
ze(n, e);
|
|
5291
5306
|
}), s.addEventListener("blur", (n) => {
|
|
5292
|
-
|
|
5307
|
+
Ue(n);
|
|
5293
5308
|
});
|
|
5294
5309
|
}
|
|
5295
5310
|
});
|
|
5296
5311
|
}
|
|
5297
|
-
const
|
|
5312
|
+
const ji = {
|
|
5298
5313
|
install(r) {
|
|
5299
|
-
|
|
5314
|
+
zi(r);
|
|
5300
5315
|
}
|
|
5301
5316
|
};
|
|
5302
5317
|
export {
|
|
5303
|
-
|
|
5318
|
+
ji as surveyPlugin,
|
|
5304
5319
|
L as useBase,
|
|
5305
5320
|
Q as useLocString,
|
|
5306
5321
|
A as useQuestion
|