survey-vue3-ui 1.10.2 → 1.10.4
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 +2 -4
- package/survey-vue3-ui.es.js +580 -569
- package/survey-vue3-ui.umd.js +1 -1
package/survey-vue3-ui.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { shallowReactive as
|
|
2
|
-
import { Base as
|
|
3
|
-
|
|
4
|
-
function
|
|
1
|
+
import { shallowReactive as be, watch as K, onBeforeUnmount as G, onMounted as M, ref as $, shallowRef as U, watchEffect as ke, triggerRef as se, unref as w, isRef as fe, defineComponent as h, computed as S, resolveComponent as y, openBlock as i, createElementBlock as u, normalizeClass as a, createVNode as C, createCommentVNode as d, Fragment as D, renderList as B, createBlock as g, resolveDynamicComponent as T, normalizeProps as z, mergeProps as H, withCtx as V, normalizeStyle as I, createElementVNode as p, onUnmounted as O, guardReactiveProps as ne, withDirectives as P, vShow as E, toDisplayString as R, vModelRadio as x, vModelCheckbox as oe, vModelSelect as we, onUpdated as te, vModelText as Ie, getCurrentInstance as ie, createStaticVNode as Se, resolveDirective as X, toRaw as Re, Teleport as Te, useSlots as $e, renderSlot as _e } from "vue";
|
|
2
|
+
import { Base as De, RendererFactory as ee, DropdownListModel as Be, Helpers as Le, DropdownMultiSelectListModel as Ne, doKey2ClickUp as ye, createSvg as Pe, ActionDropdownViewModel as Ae, getActionDropdownButtonTarget as Me, createPopupViewModel as Ee, SurveyProgressModel as de, ProgressButtonsResponsivityManager as He, PopupSurveyModel as We, settings as j, createDialogOptions as Fe, createPopupModalViewModel as Ve, ButtonGroupItemModel as Oe, SvgRegistry as ze, SurveyModel as Ue, doKey2ClickDown as Ke, doKey2ClickBlur as Qe } from "survey-core";
|
|
3
|
+
De.createPropertiesHash = () => be({});
|
|
4
|
+
function je(r) {
|
|
5
5
|
var s;
|
|
6
6
|
!r || (r.__vueImplemented = (s = r.__vueImplemented) != null ? s : 0, r.__vueImplemented <= 0 && (r.createArrayCoreHandler = (n, e) => {
|
|
7
7
|
const o = [], t = U(o);
|
|
@@ -16,7 +16,7 @@ function Qe(r) {
|
|
|
16
16
|
}, n[e] = o;
|
|
17
17
|
}
|
|
18
18
|
}), r.getPropertyValueCoreHandler = (n, e) => w(n[e]), r.setPropertyValueCoreHandler = (n, e, o) => {
|
|
19
|
-
|
|
19
|
+
fe(n[e]) ? n[e].value = o : n[e] = o;
|
|
20
20
|
}), r.__vueImplemented++);
|
|
21
21
|
}
|
|
22
22
|
function me(r) {
|
|
@@ -25,11 +25,11 @@ function me(r) {
|
|
|
25
25
|
n[e] = w(n[e]), Array.isArray(n[e]) && (n[e].onArrayChanged = void 0);
|
|
26
26
|
}), delete r.__vueImplemented, r.createArrayCoreHandler = void 0, r.getPropertyValueCoreHandler = void 0, r.setPropertyValueCoreHandler = void 0));
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function L(r, s, n) {
|
|
29
29
|
const e = K(
|
|
30
30
|
r,
|
|
31
31
|
(o, t) => {
|
|
32
|
-
o && s && s(o, t), t && (me(t), n && n(t)),
|
|
32
|
+
o && s && s(o, t), t && (me(t), n && n(t)), je(o);
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
immediate: !0
|
|
@@ -41,7 +41,7 @@ function B(r, s, n) {
|
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
function A(r, s, n, e) {
|
|
44
|
-
|
|
44
|
+
L(() => r.question, n, e), M(() => {
|
|
45
45
|
r.question && r.question.afterRenderQuestionElement(s.value);
|
|
46
46
|
}), G(() => {
|
|
47
47
|
r.question.beforeDestroyQuestionElement(s.value);
|
|
@@ -68,14 +68,14 @@ function re(r) {
|
|
|
68
68
|
return r.customWidget ? "survey-customwidget" : r.isDefaultRendering && r.isDefaultRendering() || r.isPanel ? "survey-" + r.getTemplate() : r.getComponentName();
|
|
69
69
|
}
|
|
70
70
|
function le(r) {
|
|
71
|
-
const s = U(), n =
|
|
71
|
+
const s = U(), n = ke(() => {
|
|
72
72
|
s.value = r(), se(s);
|
|
73
73
|
});
|
|
74
74
|
return G(() => {
|
|
75
75
|
n();
|
|
76
76
|
}), s;
|
|
77
77
|
}
|
|
78
|
-
const
|
|
78
|
+
const Ge = /* @__PURE__ */ h({
|
|
79
79
|
__name: "Page",
|
|
80
80
|
props: {
|
|
81
81
|
survey: {},
|
|
@@ -85,8 +85,8 @@ const je = /* @__PURE__ */ h({
|
|
|
85
85
|
setup(r) {
|
|
86
86
|
const s = r, n = $(null), e = () => {
|
|
87
87
|
s.survey && n.value && s.survey.afterRenderPage(n.value);
|
|
88
|
-
}, o =
|
|
89
|
-
return
|
|
88
|
+
}, o = S(() => s.page._showDescription);
|
|
89
|
+
return L(
|
|
90
90
|
() => s.page,
|
|
91
91
|
() => {
|
|
92
92
|
e();
|
|
@@ -113,12 +113,12 @@ const je = /* @__PURE__ */ h({
|
|
|
113
113
|
}, null, 8, ["locString"])
|
|
114
114
|
], 2)) : d("", !0),
|
|
115
115
|
C(c, { element: t.page }, null, 8, ["element"]),
|
|
116
|
-
(i(!0), u(
|
|
116
|
+
(i(!0), u(D, null, B(t.page.visibleRows, (f) => (i(), g(T(t.page.getSurvey().getRowWrapperComponentName(f)), z(H({
|
|
117
117
|
key: f.id
|
|
118
118
|
}, {
|
|
119
119
|
componentData: t.page.getSurvey().getRowWrapperComponentData(f)
|
|
120
120
|
})), {
|
|
121
|
-
default:
|
|
121
|
+
default: V(() => [
|
|
122
122
|
C(q, {
|
|
123
123
|
row: f,
|
|
124
124
|
survey: t.survey,
|
|
@@ -130,7 +130,7 @@ const je = /* @__PURE__ */ h({
|
|
|
130
130
|
], 2);
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
}),
|
|
133
|
+
}), Je = /* @__PURE__ */ h({
|
|
134
134
|
__name: "Header",
|
|
135
135
|
props: {
|
|
136
136
|
survey: {}
|
|
@@ -155,7 +155,7 @@ const je = /* @__PURE__ */ h({
|
|
|
155
155
|
e.survey.renderedHasTitle ? (i(), u("div", {
|
|
156
156
|
key: 1,
|
|
157
157
|
class: a(e.survey.css.headerText),
|
|
158
|
-
style:
|
|
158
|
+
style: I({ maxWidth: e.survey.titleMaxWidth })
|
|
159
159
|
}, [
|
|
160
160
|
C(t, {
|
|
161
161
|
element: e.survey,
|
|
@@ -180,7 +180,7 @@ const je = /* @__PURE__ */ h({
|
|
|
180
180
|
], 2)) : d("", !0);
|
|
181
181
|
};
|
|
182
182
|
}
|
|
183
|
-
}),
|
|
183
|
+
}), Xe = /* @__PURE__ */ h({
|
|
184
184
|
__name: "Row",
|
|
185
185
|
props: {
|
|
186
186
|
row: {},
|
|
@@ -189,7 +189,7 @@ const je = /* @__PURE__ */ h({
|
|
|
189
189
|
},
|
|
190
190
|
setup(r) {
|
|
191
191
|
const s = r, n = $();
|
|
192
|
-
return
|
|
192
|
+
return L(
|
|
193
193
|
() => s.row,
|
|
194
194
|
(e, o) => {
|
|
195
195
|
e.setRootElement(n.value), o && (e.isNeedRender = o.isNeedRender);
|
|
@@ -211,7 +211,7 @@ const je = /* @__PURE__ */ h({
|
|
|
211
211
|
ref_key: "root",
|
|
212
212
|
ref: n
|
|
213
213
|
}, [
|
|
214
|
-
(i(!0), u(
|
|
214
|
+
(i(!0), u(D, null, B(e.row.visibleElements, (l) => (i(), g(t, {
|
|
215
215
|
row: e.row,
|
|
216
216
|
css: e.css,
|
|
217
217
|
element: l,
|
|
@@ -220,10 +220,10 @@ const je = /* @__PURE__ */ h({
|
|
|
220
220
|
], 2);
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
|
-
}),
|
|
223
|
+
}), Ye = ["id", "role", "aria-required", "aria-invalid", "aria-labelledby", "aria-describedby", "aria-expanded", "data-name"], Ze = ["id"], xe = {
|
|
224
224
|
inheritAttrs: !1
|
|
225
|
-
},
|
|
226
|
-
...
|
|
225
|
+
}, es = /* @__PURE__ */ h({
|
|
226
|
+
...xe,
|
|
227
227
|
__name: "Question",
|
|
228
228
|
props: {
|
|
229
229
|
survey: {},
|
|
@@ -231,8 +231,8 @@ const je = /* @__PURE__ */ h({
|
|
|
231
231
|
css: {}
|
|
232
232
|
},
|
|
233
233
|
setup(r) {
|
|
234
|
-
const s = r, n = $(null), e =
|
|
235
|
-
|
|
234
|
+
const s = r, n = $(null), e = S(() => s.element.showErrorOnTop), o = S(() => s.element.showErrorOnBottom), t = (k) => k.cssContent, l = () => s.element.getRootStyle();
|
|
235
|
+
L(() => s.element);
|
|
236
236
|
const m = () => {
|
|
237
237
|
n.value && s.element.afterRender(n.value);
|
|
238
238
|
}, v = K(
|
|
@@ -240,7 +240,7 @@ const je = /* @__PURE__ */ h({
|
|
|
240
240
|
() => {
|
|
241
241
|
m();
|
|
242
242
|
}
|
|
243
|
-
), c =
|
|
243
|
+
), c = S(() => s.element.customWidget ? "survey-customwidget" : s.element.isDefaultRendering() ? "survey-" + s.element.getTemplate() : s.element.getComponentName()), q = S(() => s.element.survey.getQuestionContentWrapperComponentName(s.element)), f = S(() => ({
|
|
244
244
|
componentData: {
|
|
245
245
|
question: s.element,
|
|
246
246
|
data: s.element.survey.getElementWrapperComponentData(s.element)
|
|
@@ -248,14 +248,14 @@ const je = /* @__PURE__ */ h({
|
|
|
248
248
|
}));
|
|
249
249
|
return O(() => {
|
|
250
250
|
v();
|
|
251
|
-
}), (k,
|
|
252
|
-
const b = y("survey-errors"), N = y("survey-element-header"), W = y("survey-string"),
|
|
251
|
+
}), (k, _) => {
|
|
252
|
+
const b = y("survey-errors"), N = y("survey-element-header"), W = y("survey-string"), F = y("survey-question-comment");
|
|
253
253
|
return i(), u("div", {
|
|
254
254
|
class: a(k.element.getRootCss()),
|
|
255
|
-
style:
|
|
255
|
+
style: I(l()),
|
|
256
256
|
ref_key: "root",
|
|
257
257
|
ref: n,
|
|
258
|
-
onFocusin:
|
|
258
|
+
onFocusin: _[0] || (_[0] = (Q) => k.element.focusIn()),
|
|
259
259
|
id: k.element.id,
|
|
260
260
|
role: k.element.ariaRole,
|
|
261
261
|
"aria-required": k.element.ariaRequired,
|
|
@@ -276,7 +276,7 @@ const je = /* @__PURE__ */ h({
|
|
|
276
276
|
css: k.css
|
|
277
277
|
}, null, 8, ["element", "css"])) : d("", !0),
|
|
278
278
|
(i(), g(T(q.value), z(ne(f.value)), {
|
|
279
|
-
default:
|
|
279
|
+
default: V(() => [
|
|
280
280
|
P(p("div", {
|
|
281
281
|
class: a(t(k.element) || void 0),
|
|
282
282
|
role: "presentation"
|
|
@@ -296,7 +296,7 @@ const je = /* @__PURE__ */ h({
|
|
|
296
296
|
locString: k.element.locCommentText
|
|
297
297
|
}, null, 8, ["locString"])
|
|
298
298
|
]),
|
|
299
|
-
C(
|
|
299
|
+
C(F, { question: k.element }, null, 8, ["question"])
|
|
300
300
|
], 2)) : d("", !0),
|
|
301
301
|
o.value ? (i(), g(b, {
|
|
302
302
|
key: 2,
|
|
@@ -311,7 +311,7 @@ const je = /* @__PURE__ */ h({
|
|
|
311
311
|
C(W, {
|
|
312
312
|
locString: k.element.locDescription
|
|
313
313
|
}, null, 8, ["locString"])
|
|
314
|
-
], 10,
|
|
314
|
+
], 10, Ze)) : d("", !0)
|
|
315
315
|
], 2), [
|
|
316
316
|
[E, k.element.renderedIsExpanded]
|
|
317
317
|
])
|
|
@@ -328,13 +328,13 @@ const je = /* @__PURE__ */ h({
|
|
|
328
328
|
element: k.element,
|
|
329
329
|
location: "bottom"
|
|
330
330
|
}, null, 8, ["element"])) : d("", !0)
|
|
331
|
-
], 46,
|
|
331
|
+
], 46, Ye);
|
|
332
332
|
};
|
|
333
333
|
}
|
|
334
|
-
}),
|
|
334
|
+
}), ss = ["id"], ns = ["id"], os = {
|
|
335
335
|
inheritAttrs: !1
|
|
336
|
-
},
|
|
337
|
-
...
|
|
336
|
+
}, ts = /* @__PURE__ */ h({
|
|
337
|
+
...os,
|
|
338
338
|
inheritAttrs: !1,
|
|
339
339
|
__name: "Panel",
|
|
340
340
|
props: {
|
|
@@ -343,8 +343,8 @@ const je = /* @__PURE__ */ h({
|
|
|
343
343
|
css: {}
|
|
344
344
|
},
|
|
345
345
|
setup(r) {
|
|
346
|
-
const s = r, n = $(null), e =
|
|
347
|
-
return
|
|
346
|
+
const s = r, n = $(null), e = S(() => s.element.survey);
|
|
347
|
+
return L(() => s.element), M(() => {
|
|
348
348
|
s.element.survey && s.element.survey.afterRenderPanel(s.element, n.value);
|
|
349
349
|
}), (o, t) => {
|
|
350
350
|
const l = y("survey-errors"), m = y("survey-element-header"), v = y("survey-row"), c = y("sv-action-bar");
|
|
@@ -372,15 +372,15 @@ const je = /* @__PURE__ */ h({
|
|
|
372
372
|
o.element.renderedIsExpanded ? (i(), u("div", {
|
|
373
373
|
key: 3,
|
|
374
374
|
id: o.element.contentId,
|
|
375
|
-
style:
|
|
375
|
+
style: I({ paddingLeft: o.element.innerPaddingLeft }),
|
|
376
376
|
class: a(o.element.cssClasses.panel.content)
|
|
377
377
|
}, [
|
|
378
|
-
(i(!0), u(
|
|
378
|
+
(i(!0), u(D, null, B(o.element.visibleRows, (q) => (i(), g(T(o.element.getSurvey().getRowWrapperComponentName(q)), z(H({
|
|
379
379
|
key: q.id
|
|
380
380
|
}, {
|
|
381
381
|
componentData: o.element.getSurvey().getRowWrapperComponentData(q)
|
|
382
382
|
})), {
|
|
383
|
-
default:
|
|
383
|
+
default: V(() => [
|
|
384
384
|
C(v, {
|
|
385
385
|
row: q,
|
|
386
386
|
survey: e.value,
|
|
@@ -392,11 +392,11 @@ const je = /* @__PURE__ */ h({
|
|
|
392
392
|
C(c, {
|
|
393
393
|
model: o.element.getFooterToolbar()
|
|
394
394
|
}, null, 8, ["model"])
|
|
395
|
-
], 14,
|
|
396
|
-
], 42,
|
|
395
|
+
], 14, ns)) : d("", !0)
|
|
396
|
+
], 42, ss)) : d("", !0);
|
|
397
397
|
};
|
|
398
398
|
}
|
|
399
|
-
}),
|
|
399
|
+
}), is = ["id"], rs = /* @__PURE__ */ h({
|
|
400
400
|
__name: "ElementHeader",
|
|
401
401
|
props: {
|
|
402
402
|
element: {},
|
|
@@ -424,7 +424,7 @@ const je = /* @__PURE__ */ h({
|
|
|
424
424
|
C(l, {
|
|
425
425
|
locString: e.element.locDescription
|
|
426
426
|
}, null, 8, ["locString"])
|
|
427
|
-
], 10,
|
|
427
|
+
], 10, is)), [
|
|
428
428
|
[E, e.element.hasDescription]
|
|
429
429
|
]) : d("", !0),
|
|
430
430
|
e.element.hasAdditionalTitleToolbar ? (i(), g(m, {
|
|
@@ -434,7 +434,7 @@ const je = /* @__PURE__ */ h({
|
|
|
434
434
|
], 2);
|
|
435
435
|
};
|
|
436
436
|
}
|
|
437
|
-
}),
|
|
437
|
+
}), ls = /* @__PURE__ */ h({
|
|
438
438
|
__name: "String",
|
|
439
439
|
props: {
|
|
440
440
|
locString: {}
|
|
@@ -444,7 +444,7 @@ const je = /* @__PURE__ */ h({
|
|
|
444
444
|
locString: s.locString.renderAsData
|
|
445
445
|
}, null, 8, ["locString"]));
|
|
446
446
|
}
|
|
447
|
-
}),
|
|
447
|
+
}), as = ["innerHTML"], us = /* @__PURE__ */ h({
|
|
448
448
|
__name: "StringViewer",
|
|
449
449
|
props: {
|
|
450
450
|
locString: {}
|
|
@@ -455,12 +455,12 @@ const je = /* @__PURE__ */ h({
|
|
|
455
455
|
key: 0,
|
|
456
456
|
class: a(w(e)),
|
|
457
457
|
innerHTML: w(n)
|
|
458
|
-
}, null, 10,
|
|
458
|
+
}, null, 10, as)) : (i(), u("span", {
|
|
459
459
|
key: 1,
|
|
460
460
|
class: a(w(e))
|
|
461
461
|
}, R(w(n)), 3));
|
|
462
462
|
}
|
|
463
|
-
}),
|
|
463
|
+
}), ds = ["innerHTML"], ms = /* @__PURE__ */ h({
|
|
464
464
|
__name: "StringEditor",
|
|
465
465
|
props: {
|
|
466
466
|
locString: {}
|
|
@@ -479,7 +479,7 @@ const je = /* @__PURE__ */ h({
|
|
|
479
479
|
innerHTML: o.locString.renderedHtml,
|
|
480
480
|
onBlur: n,
|
|
481
481
|
onClick: e
|
|
482
|
-
}, null, 40,
|
|
482
|
+
}, null, 40, ds)) : (i(), u("span", {
|
|
483
483
|
key: 1,
|
|
484
484
|
class: "sv-string-editor",
|
|
485
485
|
contenteditable: "true",
|
|
@@ -487,19 +487,19 @@ const je = /* @__PURE__ */ h({
|
|
|
487
487
|
onClick: e
|
|
488
488
|
}, R(o.locString.renderedHtml), 33));
|
|
489
489
|
}
|
|
490
|
-
}),
|
|
490
|
+
}), cs = ["id"], ps = /* @__PURE__ */ h({
|
|
491
491
|
__name: "Skeleton",
|
|
492
492
|
props: {
|
|
493
493
|
element: {}
|
|
494
494
|
},
|
|
495
495
|
setup(r) {
|
|
496
496
|
const s = r;
|
|
497
|
-
return
|
|
497
|
+
return L(() => s.element), (n, e) => (i(), u("div", {
|
|
498
498
|
class: "sv-skeleton-element",
|
|
499
499
|
id: n.element.id
|
|
500
|
-
}, null, 8,
|
|
500
|
+
}, null, 8, cs));
|
|
501
501
|
}
|
|
502
|
-
}),
|
|
502
|
+
}), vs = ["id"], qs = ["value"], ys = /* @__PURE__ */ h({
|
|
503
503
|
inheritAttrs: !1,
|
|
504
504
|
__name: "Text",
|
|
505
505
|
props: {
|
|
@@ -522,8 +522,8 @@ const je = /* @__PURE__ */ h({
|
|
|
522
522
|
p("datalist", {
|
|
523
523
|
id: e.question.dataListId
|
|
524
524
|
}, [
|
|
525
|
-
(i(!0), u(
|
|
526
|
-
], 8,
|
|
525
|
+
(i(!0), u(D, null, B(e.question.dataList, (l) => (i(), u("option", { value: l }, null, 8, qs))), 256))
|
|
526
|
+
], 8, vs)
|
|
527
527
|
], 512)) : (i(), g(t, {
|
|
528
528
|
key: 2,
|
|
529
529
|
question: e.question,
|
|
@@ -533,7 +533,7 @@ const je = /* @__PURE__ */ h({
|
|
|
533
533
|
}, null, 8, ["question", "get-ref"]));
|
|
534
534
|
};
|
|
535
535
|
}
|
|
536
|
-
}),
|
|
536
|
+
}), gs = ["disabled", "type", "maxlength", "min", "max", "step", "size", "id", "list", "placeholder", "autocomplete", "value", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], hs = ["disabled", "type", "maxlength", "min", "max", "step", "size", "id", "list", "placeholder", "autocomplete", "value", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], Cs = /* @__PURE__ */ h({
|
|
537
537
|
__name: "TextInput",
|
|
538
538
|
props: {
|
|
539
539
|
question: {},
|
|
@@ -543,8 +543,8 @@ const je = /* @__PURE__ */ h({
|
|
|
543
543
|
const n = r, e = function(l) {
|
|
544
544
|
n.getRef && n.getRef(l);
|
|
545
545
|
}, o = $(null);
|
|
546
|
-
s({ root: o }),
|
|
547
|
-
const t =
|
|
546
|
+
s({ root: o }), L(() => n.question);
|
|
547
|
+
const t = S(() => n.question.inputStyle);
|
|
548
548
|
return (l, m) => {
|
|
549
549
|
const v = y("sv-character-counter");
|
|
550
550
|
return l.question.getMaxLength() ? (i(), u("div", {
|
|
@@ -560,7 +560,7 @@ const je = /* @__PURE__ */ h({
|
|
|
560
560
|
max: l.question.renderedMax,
|
|
561
561
|
step: l.question.renderedStep,
|
|
562
562
|
size: l.question.renderedInputSize,
|
|
563
|
-
style:
|
|
563
|
+
style: I(t.value),
|
|
564
564
|
id: l.question.inputId,
|
|
565
565
|
list: l.question.dataListId,
|
|
566
566
|
placeholder: l.question.renderedPlaceholder,
|
|
@@ -578,7 +578,7 @@ const je = /* @__PURE__ */ h({
|
|
|
578
578
|
"aria-describedby": l.question.a11y_input_ariaDescribedBy,
|
|
579
579
|
"aria-invalid": l.question.a11y_input_ariaInvalid,
|
|
580
580
|
"aria-errormessage": l.question.a11y_input_ariaErrormessage
|
|
581
|
-
}, null, 46,
|
|
581
|
+
}, null, 46, hs),
|
|
582
582
|
C(v, {
|
|
583
583
|
counter: l.question.characterCounter,
|
|
584
584
|
remainingCharacterCounter: l.question.cssClasses.remainingCharacterCounter
|
|
@@ -594,7 +594,7 @@ const je = /* @__PURE__ */ h({
|
|
|
594
594
|
max: l.question.renderedMax,
|
|
595
595
|
step: l.question.renderedStep,
|
|
596
596
|
size: l.question.renderedInputSize,
|
|
597
|
-
style:
|
|
597
|
+
style: I(t.value),
|
|
598
598
|
id: l.question.inputId,
|
|
599
599
|
list: l.question.dataListId,
|
|
600
600
|
placeholder: l.question.renderedPlaceholder,
|
|
@@ -612,13 +612,13 @@ const je = /* @__PURE__ */ h({
|
|
|
612
612
|
"aria-describedby": l.question.a11y_input_ariaDescribedBy,
|
|
613
613
|
"aria-invalid": l.question.a11y_input_ariaInvalid,
|
|
614
614
|
"aria-errormessage": l.question.a11y_input_ariaErrormessage
|
|
615
|
-
}, null, 46,
|
|
615
|
+
}, null, 46, gs));
|
|
616
616
|
};
|
|
617
617
|
}
|
|
618
|
-
}),
|
|
618
|
+
}), bs = ["role", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], ks = {
|
|
619
619
|
key: 0,
|
|
620
620
|
class: "sv-hidden"
|
|
621
|
-
},
|
|
621
|
+
}, fs = { key: 7 }, ws = ["value"], ge = /* @__PURE__ */ h({
|
|
622
622
|
inheritAttrs: !1,
|
|
623
623
|
__name: "SelectBase",
|
|
624
624
|
props: {
|
|
@@ -650,18 +650,18 @@ const je = /* @__PURE__ */ h({
|
|
|
650
650
|
"aria-invalid": t.question.a11y_input_ariaInvalid,
|
|
651
651
|
"aria-errormessage": t.question.a11y_input_ariaErrormessage
|
|
652
652
|
}, [
|
|
653
|
-
t.showLegend ? (i(), u("legend",
|
|
654
|
-
t.question.hasHeadItems ? (i(!0), u(
|
|
653
|
+
t.showLegend ? (i(), u("legend", ks, R(t.question.locTitle.renderedHtml), 1)) : d("", !0),
|
|
654
|
+
t.question.hasHeadItems ? (i(!0), u(D, { key: 1 }, B(t.question.headItems, (v) => (i(), g(T(e(v)), H({
|
|
655
655
|
key: v.value
|
|
656
656
|
}, o(v)), null, 16))), 128)) : d("", !0),
|
|
657
|
-
!t.question.hasColumns && !t.question.blockedRow ? (i(!0), u(
|
|
657
|
+
!t.question.hasColumns && !t.question.blockedRow ? (i(!0), u(D, { key: 2 }, B(t.question.bodyItems, (v) => (i(), g(T(e(v)), H({
|
|
658
658
|
key: v.value
|
|
659
659
|
}, o(v)), null, 16))), 128)) : d("", !0),
|
|
660
660
|
t.question.blockedRow ? (i(), u("div", {
|
|
661
661
|
key: 3,
|
|
662
662
|
class: a(t.question.cssClasses.rootRow)
|
|
663
663
|
}, [
|
|
664
|
-
!t.question.hasColumns && t.question.blockedRow ? (i(!0), u(
|
|
664
|
+
!t.question.hasColumns && t.question.blockedRow ? (i(!0), u(D, { key: 0 }, B(t.question.dataChoices, (v) => (i(), g(T(e(v)), H({
|
|
665
665
|
key: v.value
|
|
666
666
|
}, o(v)), null, 16))), 128)) : d("", !0)
|
|
667
667
|
], 2)) : d("", !0),
|
|
@@ -669,24 +669,24 @@ const je = /* @__PURE__ */ h({
|
|
|
669
669
|
key: 4,
|
|
670
670
|
class: a(t.question.cssClasses.rootMultiColumn)
|
|
671
671
|
}, [
|
|
672
|
-
t.question.hasColumns ? (i(!0), u(
|
|
672
|
+
t.question.hasColumns ? (i(!0), u(D, { key: 0 }, B(t.question.columns, (v, c) => (i(), u("div", {
|
|
673
673
|
key: c,
|
|
674
674
|
class: a(t.question.getColumnClass()),
|
|
675
675
|
role: "presentation"
|
|
676
676
|
}, [
|
|
677
|
-
(i(!0), u(
|
|
677
|
+
(i(!0), u(D, null, B(v, (q) => (i(), g(T(e(q)), H({
|
|
678
678
|
key: q.value
|
|
679
679
|
}, o(q)), null, 16))), 128))
|
|
680
680
|
], 2))), 128)) : d("", !0)
|
|
681
681
|
], 2)) : d("", !0),
|
|
682
|
-
t.question.hasFootItems ? (i(!0), u(
|
|
682
|
+
t.question.hasFootItems ? (i(!0), u(D, { key: 5 }, B(t.question.footItems, (v) => (i(), g(T(e(v)), H({
|
|
683
683
|
key: v.value
|
|
684
684
|
}, o(v)), null, 16))), 128)) : d("", !0),
|
|
685
685
|
t.question.renderedValue && t.question.isOtherSelected ? (i(), g(m, {
|
|
686
686
|
key: 6,
|
|
687
687
|
question: t.question
|
|
688
688
|
}, null, 8, ["question"])) : d("", !0),
|
|
689
|
-
t.question.showClearButtonInContent ? (i(), u("div",
|
|
689
|
+
t.question.showClearButtonInContent ? (i(), u("div", fs, [
|
|
690
690
|
p("input", {
|
|
691
691
|
type: "button",
|
|
692
692
|
class: a(t.question.cssClasses.clearButton),
|
|
@@ -694,12 +694,12 @@ const je = /* @__PURE__ */ h({
|
|
|
694
694
|
t.question.clearValue();
|
|
695
695
|
}),
|
|
696
696
|
value: t.question.clearButtonCaption
|
|
697
|
-
}, null, 10,
|
|
697
|
+
}, null, 10, ws)
|
|
698
698
|
])) : d("", !0)
|
|
699
|
-
], 10,
|
|
699
|
+
], 10, bs);
|
|
700
700
|
};
|
|
701
701
|
}
|
|
702
|
-
}),
|
|
702
|
+
}), Is = /* @__PURE__ */ h({
|
|
703
703
|
inheritAttrs: !1,
|
|
704
704
|
__name: "Checkbox",
|
|
705
705
|
props: {
|
|
@@ -711,7 +711,7 @@ const je = /* @__PURE__ */ h({
|
|
|
711
711
|
"show-legend": !0
|
|
712
712
|
}, null, 8, ["question"]));
|
|
713
713
|
}
|
|
714
|
-
}),
|
|
714
|
+
}), Ss = ["name", "checked", "value", "id", "disabled"], Rs = ["xlink:href"], Ts = /* @__PURE__ */ h({
|
|
715
715
|
inheritAttrs: !1,
|
|
716
716
|
__name: "CheckboxItem",
|
|
717
717
|
props: {
|
|
@@ -721,7 +721,7 @@ const je = /* @__PURE__ */ h({
|
|
|
721
721
|
},
|
|
722
722
|
setup(r) {
|
|
723
723
|
const s = r;
|
|
724
|
-
|
|
724
|
+
L(() => s.item);
|
|
725
725
|
const n = (e) => {
|
|
726
726
|
s.question.clickItemHandler(s.item, e.target.checked);
|
|
727
727
|
};
|
|
@@ -746,7 +746,7 @@ const je = /* @__PURE__ */ h({
|
|
|
746
746
|
id: e.question.getItemId(e.item),
|
|
747
747
|
disabled: !e.question.getItemEnabled(e.item),
|
|
748
748
|
class: a(e.question.cssClasses.itemControl)
|
|
749
|
-
}, null, 42,
|
|
749
|
+
}, null, 42, Ss),
|
|
750
750
|
e.question.cssClasses.materialDecorator ? (i(), u("span", {
|
|
751
751
|
key: 0,
|
|
752
752
|
class: a(e.question.cssClasses.materialDecorator)
|
|
@@ -757,7 +757,7 @@ const je = /* @__PURE__ */ h({
|
|
|
757
757
|
}, [
|
|
758
758
|
p("use", {
|
|
759
759
|
"xlink:href": e.question.itemSvgIcon
|
|
760
|
-
}, null, 8,
|
|
760
|
+
}, null, 8, Rs)
|
|
761
761
|
], 2)) : d("", !0)
|
|
762
762
|
], 2)) : d("", !0),
|
|
763
763
|
e.hideLabel ? d("", !0) : (i(), u("span", {
|
|
@@ -772,7 +772,7 @@ const je = /* @__PURE__ */ h({
|
|
|
772
772
|
], 2);
|
|
773
773
|
};
|
|
774
774
|
}
|
|
775
|
-
}),
|
|
775
|
+
}), $s = /* @__PURE__ */ h({
|
|
776
776
|
inheritAttrs: !1,
|
|
777
777
|
__name: "Radiogroup",
|
|
778
778
|
props: {
|
|
@@ -781,7 +781,7 @@ const je = /* @__PURE__ */ h({
|
|
|
781
781
|
setup(r) {
|
|
782
782
|
return (s, n) => (i(), g(ge, { question: s.question }, null, 8, ["question"]));
|
|
783
783
|
}
|
|
784
|
-
}),
|
|
784
|
+
}), _s = ["name", "value", "id", "aria-errormessage", "disabled"], Ds = ["xlink:href"], Bs = /* @__PURE__ */ h({
|
|
785
785
|
inheritAttrs: !1,
|
|
786
786
|
__name: "RadiogroupItem",
|
|
787
787
|
props: {
|
|
@@ -790,14 +790,14 @@ const je = /* @__PURE__ */ h({
|
|
|
790
790
|
hideLabel: { type: Boolean }
|
|
791
791
|
},
|
|
792
792
|
setup(r) {
|
|
793
|
-
const s = r, n = (t) => s.question.getLabelClass(t), e = (t) => s.question.getControlLabelClass(t), o =
|
|
793
|
+
const s = r, n = (t) => s.question.getLabelClass(t), e = (t) => s.question.getControlLabelClass(t), o = S({
|
|
794
794
|
get: () => s.question.renderedValue,
|
|
795
795
|
set: (t) => {
|
|
796
796
|
const l = s.question;
|
|
797
797
|
l.renderedValue = t;
|
|
798
798
|
}
|
|
799
799
|
});
|
|
800
|
-
return
|
|
800
|
+
return L(() => s.item), (t, l) => {
|
|
801
801
|
const m = y("survey-string");
|
|
802
802
|
return i(), u("div", {
|
|
803
803
|
role: "presentation",
|
|
@@ -816,7 +816,7 @@ const je = /* @__PURE__ */ h({
|
|
|
816
816
|
"onUpdate:modelValue": l[0] || (l[0] = (v) => o.value = v),
|
|
817
817
|
disabled: !t.question.getItemEnabled(t.item),
|
|
818
818
|
class: a(t.question.cssClasses.itemControl)
|
|
819
|
-
}, null, 10,
|
|
819
|
+
}, null, 10, _s), [
|
|
820
820
|
[x, o.value]
|
|
821
821
|
]),
|
|
822
822
|
t.question.cssClasses.materialDecorator ? (i(), u("span", {
|
|
@@ -829,7 +829,7 @@ const je = /* @__PURE__ */ h({
|
|
|
829
829
|
}, [
|
|
830
830
|
p("use", {
|
|
831
831
|
"xlink:href": t.question.itemSvgIcon
|
|
832
|
-
}, null, 8,
|
|
832
|
+
}, null, 8, Ds)
|
|
833
833
|
], 2)) : d("", !0)
|
|
834
834
|
], 2)) : d("", !0),
|
|
835
835
|
t.hideLabel ? d("", !0) : (i(), u("span", {
|
|
@@ -844,7 +844,7 @@ const je = /* @__PURE__ */ h({
|
|
|
844
844
|
], 2);
|
|
845
845
|
};
|
|
846
846
|
}
|
|
847
|
-
}),
|
|
847
|
+
}), Ls = ["src"], Ns = ["title"], Ps = { key: 0 }, As = /* @__PURE__ */ h({
|
|
848
848
|
inheritAttrs: !1,
|
|
849
849
|
__name: "Signaturepad",
|
|
850
850
|
props: {
|
|
@@ -858,7 +858,7 @@ const je = /* @__PURE__ */ h({
|
|
|
858
858
|
class: a(e.question.cssClasses.root),
|
|
859
859
|
ref_key: "root",
|
|
860
860
|
ref: n,
|
|
861
|
-
style:
|
|
861
|
+
style: I({
|
|
862
862
|
width: e.question.renderedCanvasWidth
|
|
863
863
|
})
|
|
864
864
|
}, [
|
|
@@ -876,10 +876,10 @@ const je = /* @__PURE__ */ h({
|
|
|
876
876
|
key: 0,
|
|
877
877
|
class: a(e.question.cssClasses.backgroundImage),
|
|
878
878
|
src: e.question.backgroundImage,
|
|
879
|
-
style:
|
|
879
|
+
style: I({
|
|
880
880
|
width: e.question.renderedCanvasWidth
|
|
881
881
|
})
|
|
882
|
-
}, null, 14,
|
|
882
|
+
}, null, 14, Ls)) : d("", !0),
|
|
883
883
|
p("canvas", {
|
|
884
884
|
tabindex: "-1",
|
|
885
885
|
class: a(e.question.cssClasses.canvas),
|
|
@@ -898,13 +898,13 @@ const je = /* @__PURE__ */ h({
|
|
|
898
898
|
e.question.clearValue();
|
|
899
899
|
})
|
|
900
900
|
}, [
|
|
901
|
-
e.question.cssClasses.clearButtonIconId ? d("", !0) : (i(), u("span",
|
|
901
|
+
e.question.cssClasses.clearButtonIconId ? d("", !0) : (i(), u("span", Ps, "\u2716")),
|
|
902
902
|
e.question.cssClasses.clearButtonIconId ? (i(), g(l, {
|
|
903
903
|
key: 1,
|
|
904
904
|
iconName: e.question.cssClasses.clearButtonIconId,
|
|
905
905
|
size: "auto"
|
|
906
906
|
}, null, 8, ["iconName"])) : d("", !0)
|
|
907
|
-
], 10,
|
|
907
|
+
], 10, Ns)
|
|
908
908
|
], 2)) : d("", !0),
|
|
909
909
|
e.question.showLoadingIndicator ? (i(), u("div", {
|
|
910
910
|
key: 1,
|
|
@@ -915,7 +915,7 @@ const je = /* @__PURE__ */ h({
|
|
|
915
915
|
], 6);
|
|
916
916
|
};
|
|
917
917
|
}
|
|
918
|
-
}),
|
|
918
|
+
}), Ms = ["innerHTML"], Es = /* @__PURE__ */ h({
|
|
919
919
|
inheritAttrs: !1,
|
|
920
920
|
__name: "Html",
|
|
921
921
|
props: {
|
|
@@ -930,9 +930,9 @@ const je = /* @__PURE__ */ h({
|
|
|
930
930
|
ref: n,
|
|
931
931
|
class: a(o.question.renderCssRoot),
|
|
932
932
|
innerHTML: w(e)
|
|
933
|
-
}, null, 10,
|
|
933
|
+
}, null, 10, Ms));
|
|
934
934
|
}
|
|
935
|
-
}),
|
|
935
|
+
}), Hs = ["src", "alt", "width", "height"], Ws = ["src", "width", "height"], Fs = ["src", "width", "height"], Vs = /* @__PURE__ */ h({
|
|
936
936
|
inheritAttrs: !1,
|
|
937
937
|
__name: "Image",
|
|
938
938
|
props: {
|
|
@@ -956,7 +956,7 @@ const je = /* @__PURE__ */ h({
|
|
|
956
956
|
alt: o.question.altText || o.question.title,
|
|
957
957
|
width: o.question.renderedWidth,
|
|
958
958
|
height: o.question.renderedHeight,
|
|
959
|
-
style:
|
|
959
|
+
style: I({
|
|
960
960
|
objectFit: o.question.imageFit,
|
|
961
961
|
width: o.question.renderedStyleWidth,
|
|
962
962
|
height: o.question.renderedStyleHeight
|
|
@@ -967,7 +967,7 @@ const je = /* @__PURE__ */ h({
|
|
|
967
967
|
onError: t[1] || (t[1] = (m) => {
|
|
968
968
|
o.question.onErrorHandler();
|
|
969
969
|
})
|
|
970
|
-
}, null, 46,
|
|
970
|
+
}, null, 46, Hs)), [
|
|
971
971
|
[E, w(e) && !o.question.contentNotLoaded]
|
|
972
972
|
]) : d("", !0),
|
|
973
973
|
o.question.renderedMode === "video" ? P((i(), u("video", {
|
|
@@ -977,7 +977,7 @@ const je = /* @__PURE__ */ h({
|
|
|
977
977
|
src: w(e),
|
|
978
978
|
width: o.question.renderedWidth,
|
|
979
979
|
height: o.question.renderedHeight,
|
|
980
|
-
style:
|
|
980
|
+
style: I({
|
|
981
981
|
objectFit: o.question.imageFit,
|
|
982
982
|
width: o.question.renderedStyleWidth,
|
|
983
983
|
height: o.question.renderedStyleHeight
|
|
@@ -988,7 +988,7 @@ const je = /* @__PURE__ */ h({
|
|
|
988
988
|
onError: t[3] || (t[3] = (m) => {
|
|
989
989
|
o.question.onErrorHandler();
|
|
990
990
|
})
|
|
991
|
-
}, null, 46,
|
|
991
|
+
}, null, 46, Ws)), [
|
|
992
992
|
[E, w(e) && !o.question.contentNotLoaded]
|
|
993
993
|
]) : d("", !0),
|
|
994
994
|
o.question.renderedMode === "youtube" ? (i(), u("iframe", {
|
|
@@ -997,12 +997,12 @@ const je = /* @__PURE__ */ h({
|
|
|
997
997
|
src: w(e),
|
|
998
998
|
width: o.question.renderedWidth,
|
|
999
999
|
height: o.question.renderedHeight,
|
|
1000
|
-
style:
|
|
1000
|
+
style: I({
|
|
1001
1001
|
objectFit: o.question.imageFit,
|
|
1002
1002
|
width: o.question.renderedStyleWidth,
|
|
1003
1003
|
height: o.question.renderedStyleHeight
|
|
1004
1004
|
})
|
|
1005
|
-
}, null, 14,
|
|
1005
|
+
}, null, 14, Fs)) : d("", !0),
|
|
1006
1006
|
!w(e) || o.question.contentNotLoaded ? (i(), u("div", {
|
|
1007
1007
|
key: 3,
|
|
1008
1008
|
class: a(o.question.cssClasses.noImage)
|
|
@@ -1015,7 +1015,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1015
1015
|
], 2);
|
|
1016
1016
|
};
|
|
1017
1017
|
}
|
|
1018
|
-
}),
|
|
1018
|
+
}), Os = /* @__PURE__ */ h({
|
|
1019
1019
|
inheritAttrs: !1,
|
|
1020
1020
|
__name: "Expression",
|
|
1021
1021
|
props: {
|
|
@@ -1029,7 +1029,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1029
1029
|
ref: n
|
|
1030
1030
|
}, R(e.question.formatedValue), 3));
|
|
1031
1031
|
}
|
|
1032
|
-
}),
|
|
1032
|
+
}), zs = ["id", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "multiple", "title", "accept", "capture"], Us = ["id", "multiple", "placeholder"], Ks = /* @__PURE__ */ h({
|
|
1033
1033
|
inheritAttrs: !1,
|
|
1034
1034
|
__name: "File",
|
|
1035
1035
|
props: {
|
|
@@ -1058,7 +1058,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1058
1058
|
title: e.question.inputTitle,
|
|
1059
1059
|
accept: e.question.acceptedTypes,
|
|
1060
1060
|
capture: e.question.renderCapture
|
|
1061
|
-
}, null, 10,
|
|
1061
|
+
}, null, 10, zs)) : d("", !0),
|
|
1062
1062
|
e.question.isReadOnly ? (i(), u("input", {
|
|
1063
1063
|
key: 1,
|
|
1064
1064
|
type: "file",
|
|
@@ -1068,7 +1068,7 @@ const je = /* @__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, Us)) : d("", !0),
|
|
1072
1072
|
p("div", {
|
|
1073
1073
|
class: a(e.question.cssClasses.dragArea),
|
|
1074
1074
|
onDrop: o[0] || (o[0] = (...k) => e.question.onDrop && e.question.onDrop(...k)),
|
|
@@ -1136,7 +1136,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1136
1136
|
], 2);
|
|
1137
1137
|
};
|
|
1138
1138
|
}
|
|
1139
|
-
}),
|
|
1139
|
+
}), Qs = { class: "sv-hidden" }, ce = "survey-imagepicker-item", js = /* @__PURE__ */ h({
|
|
1140
1140
|
inheritAttrs: !1,
|
|
1141
1141
|
__name: "Imagepicker",
|
|
1142
1142
|
props: {
|
|
@@ -1158,22 +1158,22 @@ const je = /* @__PURE__ */ h({
|
|
|
1158
1158
|
ref_key: "root",
|
|
1159
1159
|
ref: n
|
|
1160
1160
|
}, [
|
|
1161
|
-
p("legend",
|
|
1162
|
-
t.question.hasColumns ? d("", !0) : (i(!0), u(
|
|
1161
|
+
p("legend", Qs, R(t.question.locTitle.renderedHtml), 1),
|
|
1162
|
+
t.question.hasColumns ? d("", !0) : (i(!0), u(D, { key: 0 }, B(t.question.visibleChoices, (m) => (i(), g(T(e(m)), H({
|
|
1163
1163
|
key: m.value
|
|
1164
1164
|
}, o(m)), null, 16))), 128)),
|
|
1165
|
-
t.question.hasColumns ? (i(!0), u(
|
|
1165
|
+
t.question.hasColumns ? (i(!0), u(D, { key: 1 }, B(t.question.columns, (m, v) => (i(), u("div", {
|
|
1166
1166
|
class: a(t.question.getColumnClass()),
|
|
1167
1167
|
key: v,
|
|
1168
1168
|
role: "presentation"
|
|
1169
1169
|
}, [
|
|
1170
|
-
(i(!0), u(
|
|
1170
|
+
(i(!0), u(D, null, B(m, (c) => (i(), g(T(e(c)), H({
|
|
1171
1171
|
key: c.value
|
|
1172
1172
|
}, o(c)), null, 16))), 128))
|
|
1173
1173
|
], 2))), 128)) : d("", !0)
|
|
1174
1174
|
], 2));
|
|
1175
1175
|
}
|
|
1176
|
-
}),
|
|
1176
|
+
}), Gs = ["name", "value", "id", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], Js = ["name", "value", "id", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], Xs = ["src", "width", "height", "alt"], Ys = ["src", "width", "height"], Zs = /* @__PURE__ */ h({
|
|
1177
1177
|
inheritAttrs: !1,
|
|
1178
1178
|
__name: "ImagepickerItem",
|
|
1179
1179
|
props: {
|
|
@@ -1182,7 +1182,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1182
1182
|
},
|
|
1183
1183
|
setup(r) {
|
|
1184
1184
|
const s = r, n = (o) => s.question.getItemClass(o);
|
|
1185
|
-
|
|
1185
|
+
L(() => s.item);
|
|
1186
1186
|
const e = J(() => s.item.locImageLink);
|
|
1187
1187
|
return (o, t) => {
|
|
1188
1188
|
const l = y("sv-svg-icon"), m = y("survey-string");
|
|
@@ -1205,7 +1205,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1205
1205
|
"aria-invalid": o.question.ariaInvalid,
|
|
1206
1206
|
"aria-errormessage": o.question.ariaErrormessage,
|
|
1207
1207
|
class: a(o.question.cssClasses.itemControl)
|
|
1208
|
-
}, null, 10,
|
|
1208
|
+
}, null, 10, Gs)), [
|
|
1209
1209
|
[oe, o.question.value]
|
|
1210
1210
|
]) : P((i(), u("input", {
|
|
1211
1211
|
key: 1,
|
|
@@ -1220,7 +1220,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1220
1220
|
"aria-invalid": o.question.ariaInvalid,
|
|
1221
1221
|
"aria-errormessage": o.question.ariaErrormessage,
|
|
1222
1222
|
class: a(o.question.cssClasses.itemControl)
|
|
1223
|
-
}, null, 10,
|
|
1223
|
+
}, null, 10, Js)), [
|
|
1224
1224
|
[x, o.question.value]
|
|
1225
1225
|
]),
|
|
1226
1226
|
p("div", {
|
|
@@ -1246,7 +1246,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1246
1246
|
src: w(e),
|
|
1247
1247
|
width: o.question.renderedImageWidth,
|
|
1248
1248
|
height: o.question.renderedImageHeight,
|
|
1249
|
-
style:
|
|
1249
|
+
style: I({ objectFit: o.question.imageFit }),
|
|
1250
1250
|
alt: o.item.locText.renderedHtml,
|
|
1251
1251
|
onLoad: t[2] || (t[2] = (v) => {
|
|
1252
1252
|
o.question.onContentLoaded(o.item, v);
|
|
@@ -1254,7 +1254,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1254
1254
|
onError: t[3] || (t[3] = (v) => {
|
|
1255
1255
|
o.item.onErrorHandler();
|
|
1256
1256
|
})
|
|
1257
|
-
}, null, 46,
|
|
1257
|
+
}, null, 46, Xs)) : d("", !0),
|
|
1258
1258
|
w(e) && !o.item.contentNotLoaded && o.question.contentMode === "video" ? (i(), u("video", {
|
|
1259
1259
|
key: 2,
|
|
1260
1260
|
controls: "",
|
|
@@ -1262,18 +1262,18 @@ const je = /* @__PURE__ */ h({
|
|
|
1262
1262
|
src: w(e),
|
|
1263
1263
|
width: o.question.renderedImageWidth,
|
|
1264
1264
|
height: o.question.renderedImageHeight,
|
|
1265
|
-
style:
|
|
1265
|
+
style: I({ objectFit: o.question.imageFit }),
|
|
1266
1266
|
onLoadedmetadata: t[4] || (t[4] = (v) => {
|
|
1267
1267
|
o.question.onContentLoaded(o.item, v);
|
|
1268
1268
|
}),
|
|
1269
1269
|
onError: t[5] || (t[5] = (v) => {
|
|
1270
1270
|
o.item.onErrorHandler();
|
|
1271
1271
|
})
|
|
1272
|
-
}, null, 46,
|
|
1272
|
+
}, null, 46, Ys)) : d("", !0),
|
|
1273
1273
|
!w(e) || o.item.contentNotLoaded ? (i(), u("div", {
|
|
1274
1274
|
key: 3,
|
|
1275
1275
|
class: a(o.question.cssClasses.itemNoImage),
|
|
1276
|
-
style:
|
|
1276
|
+
style: I({
|
|
1277
1277
|
width: o.question.renderedImageWidth + "px",
|
|
1278
1278
|
height: o.question.renderedImageHeight + "px",
|
|
1279
1279
|
objectFit: o.question.imageFit
|
|
@@ -1299,7 +1299,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1299
1299
|
], 2);
|
|
1300
1300
|
};
|
|
1301
1301
|
}
|
|
1302
|
-
}),
|
|
1302
|
+
}), xs = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], en = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], sn = /* @__PURE__ */ h({
|
|
1303
1303
|
inheritAttrs: !1,
|
|
1304
1304
|
__name: "Comment",
|
|
1305
1305
|
props: {
|
|
@@ -1341,8 +1341,8 @@ const je = /* @__PURE__ */ h({
|
|
|
1341
1341
|
"aria-describedby": o.question.a11y_input_ariaDescribedBy,
|
|
1342
1342
|
"aria-invalid": o.question.a11y_input_ariaInvalid,
|
|
1343
1343
|
"aria-errormessage": o.question.a11y_input_ariaErrormessage,
|
|
1344
|
-
style:
|
|
1345
|
-
}, null, 46,
|
|
1344
|
+
style: I({ resize: o.question.resizeStyle })
|
|
1345
|
+
}, null, 46, xs)) : !o.question.isReadOnlyRenderDiv() && o.question.getMaxLength() ? (i(), u("div", {
|
|
1346
1346
|
key: 1,
|
|
1347
1347
|
ref_key: "root",
|
|
1348
1348
|
ref: n
|
|
@@ -1370,8 +1370,8 @@ const je = /* @__PURE__ */ h({
|
|
|
1370
1370
|
"aria-describedby": o.question.a11y_input_ariaDescribedBy,
|
|
1371
1371
|
"aria-invalid": o.question.a11y_input_ariaInvalid,
|
|
1372
1372
|
"aria-errormessage": o.question.a11y_input_ariaErrormessage,
|
|
1373
|
-
style:
|
|
1374
|
-
}, null, 46,
|
|
1373
|
+
style: I({ resize: o.question.resizeStyle })
|
|
1374
|
+
}, null, 46, en),
|
|
1375
1375
|
C(l, {
|
|
1376
1376
|
counter: o.question.characterCounter,
|
|
1377
1377
|
remainingCharacterCounter: o.question.cssClasses.remainingCharacterCounter
|
|
@@ -1383,7 +1383,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1383
1383
|
}, R(o.question.value), 513));
|
|
1384
1384
|
};
|
|
1385
1385
|
}
|
|
1386
|
-
}),
|
|
1386
|
+
}), nn = /* @__PURE__ */ h({
|
|
1387
1387
|
inheritAttrs: !1,
|
|
1388
1388
|
__name: "Dropdown",
|
|
1389
1389
|
props: {
|
|
@@ -1406,16 +1406,16 @@ const je = /* @__PURE__ */ h({
|
|
|
1406
1406
|
], 2);
|
|
1407
1407
|
};
|
|
1408
1408
|
}
|
|
1409
|
-
}),
|
|
1409
|
+
}), on = ["id", "autocomplete", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "required"], tn = {
|
|
1410
1410
|
key: 0,
|
|
1411
1411
|
value: ""
|
|
1412
|
-
},
|
|
1412
|
+
}, rn = ["id"];
|
|
1413
1413
|
ee.Instance.registerRenderer(
|
|
1414
1414
|
"dropdown",
|
|
1415
1415
|
"select",
|
|
1416
1416
|
"sv-dropdown-select"
|
|
1417
1417
|
);
|
|
1418
|
-
const
|
|
1418
|
+
const ln = /* @__PURE__ */ h({
|
|
1419
1419
|
inheritAttrs: !1,
|
|
1420
1420
|
__name: "DropdownSelect",
|
|
1421
1421
|
props: {
|
|
@@ -1428,7 +1428,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1428
1428
|
s.question.onClick(l);
|
|
1429
1429
|
}, o = (l) => {
|
|
1430
1430
|
s.question.onKeyUp(l);
|
|
1431
|
-
}, t =
|
|
1431
|
+
}, t = S({
|
|
1432
1432
|
get() {
|
|
1433
1433
|
var l;
|
|
1434
1434
|
return (l = s.question.value) != null ? l : "";
|
|
@@ -1453,7 +1453,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1453
1453
|
disabled: "",
|
|
1454
1454
|
id: l.question.inputId,
|
|
1455
1455
|
class: a(l.question.getControlClass())
|
|
1456
|
-
}, R(l.question.readOnlyText), 11,
|
|
1456
|
+
}, R(l.question.readOnlyText), 11, rn)) : P((i(), u("select", {
|
|
1457
1457
|
key: 0,
|
|
1458
1458
|
id: l.question.inputId,
|
|
1459
1459
|
"onUpdate:modelValue": m[0] || (m[0] = (f) => t.value = f),
|
|
@@ -1467,13 +1467,13 @@ const rn = /* @__PURE__ */ h({
|
|
|
1467
1467
|
"aria-errormessage": l.question.ariaErrormessage,
|
|
1468
1468
|
required: l.question.isRequired
|
|
1469
1469
|
}, [
|
|
1470
|
-
l.question.allowClear ? (i(), u("option",
|
|
1471
|
-
(i(!0), u(
|
|
1470
|
+
l.question.allowClear ? (i(), u("option", tn, R(l.question.placeholder), 1)) : d("", !0),
|
|
1471
|
+
(i(!0), u(D, null, B(l.question.visibleChoices, (f) => (i(), g(v, {
|
|
1472
1472
|
item: f,
|
|
1473
1473
|
key: f.id
|
|
1474
1474
|
}, null, 8, ["item"]))), 128))
|
|
1475
|
-
], 42,
|
|
1476
|
-
[
|
|
1475
|
+
], 42, on)), [
|
|
1476
|
+
[we, t.value]
|
|
1477
1477
|
]),
|
|
1478
1478
|
l.question.cssClasses.chevronButtonIconId ? (i(), u("div", {
|
|
1479
1479
|
key: 2,
|
|
@@ -1493,27 +1493,27 @@ const rn = /* @__PURE__ */ h({
|
|
|
1493
1493
|
], 2);
|
|
1494
1494
|
};
|
|
1495
1495
|
}
|
|
1496
|
-
}),
|
|
1496
|
+
}), an = ["value", "disabled"], un = /* @__PURE__ */ h({
|
|
1497
1497
|
__name: "OptionItem",
|
|
1498
1498
|
props: {
|
|
1499
1499
|
item: {}
|
|
1500
1500
|
},
|
|
1501
1501
|
setup(r) {
|
|
1502
1502
|
const s = r, n = J(() => s.item.locText);
|
|
1503
|
-
return
|
|
1503
|
+
return L(() => s.item), (e, o) => (i(), u("option", {
|
|
1504
1504
|
value: e.item.value,
|
|
1505
1505
|
disabled: !e.item.isEnabled
|
|
1506
|
-
}, R(w(n)), 9,
|
|
1506
|
+
}, R(w(n)), 9, an));
|
|
1507
1507
|
}
|
|
1508
|
-
}),
|
|
1508
|
+
}), dn = ["id", "disabled", "tabindex", "role", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], mn = { style: { visibility: "hidden" } }, cn = ["disabled", "inputmode", "role", "id", "tabindex", "readonly", "aria-expanded", "aria-controls", "aria-label", "aria-labelledby", "aria-describedby", "aria-activedescendant", "placeholder"], pn = ["id"], vn = /* @__PURE__ */ h({
|
|
1509
1509
|
__name: "Dropdown",
|
|
1510
1510
|
props: {
|
|
1511
1511
|
question: {}
|
|
1512
1512
|
},
|
|
1513
1513
|
setup(r) {
|
|
1514
|
-
const s = r, n = $(null), e =
|
|
1514
|
+
const s = r, n = $(null), e = S(() => {
|
|
1515
1515
|
const b = s.question;
|
|
1516
|
-
return b.dropdownListModel || (b.dropdownListModel = new
|
|
1516
|
+
return b.dropdownListModel || (b.dropdownListModel = new Be(b)), s.question.dropdownListModel;
|
|
1517
1517
|
}), o = (b) => {
|
|
1518
1518
|
var N;
|
|
1519
1519
|
(N = e.value) == null || N.onClick(b);
|
|
@@ -1529,7 +1529,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1529
1529
|
}, v = () => {
|
|
1530
1530
|
if (n.value) {
|
|
1531
1531
|
const b = n.value, N = e.value.inputStringRendered;
|
|
1532
|
-
|
|
1532
|
+
Le.isTwoValueEquals(N, b.value, !1, !0, !1) || (b.value = e.value.inputStringRendered);
|
|
1533
1533
|
}
|
|
1534
1534
|
}, c = (b) => {
|
|
1535
1535
|
var N;
|
|
@@ -1539,11 +1539,11 @@ const rn = /* @__PURE__ */ h({
|
|
|
1539
1539
|
(N = e.value) == null || N.onFocus(b);
|
|
1540
1540
|
}, f = (b) => {
|
|
1541
1541
|
e.value.inputStringRendered = b.target.value;
|
|
1542
|
-
}, k =
|
|
1542
|
+
}, k = S(
|
|
1543
1543
|
() => s.question.showSelectedItemLocText
|
|
1544
|
-
),
|
|
1545
|
-
return
|
|
1546
|
-
const W = y("survey-string"),
|
|
1544
|
+
), _ = S(() => s.question.selectedItemLocText);
|
|
1545
|
+
return L(() => e.value), te(v), M(v), (b, N) => {
|
|
1546
|
+
const W = y("survey-string"), F = y("sv-svg-icon"), Q = y("sv-popup");
|
|
1547
1547
|
return i(), u("div", {
|
|
1548
1548
|
class: a(b.question.cssClasses.selectWrapper),
|
|
1549
1549
|
onClick: o
|
|
@@ -1577,13 +1577,13 @@ const rn = /* @__PURE__ */ h({
|
|
|
1577
1577
|
}, [
|
|
1578
1578
|
k.value ? (i(), g(W, {
|
|
1579
1579
|
key: 0,
|
|
1580
|
-
locString:
|
|
1580
|
+
locString: _.value
|
|
1581
1581
|
}, null, 8, ["locString"])) : d("", !0),
|
|
1582
1582
|
e.value.showHintString ? (i(), u("div", {
|
|
1583
1583
|
key: 1,
|
|
1584
1584
|
class: a(b.question.cssClasses.hintSuffix)
|
|
1585
1585
|
}, [
|
|
1586
|
-
p("span",
|
|
1586
|
+
p("span", mn, R(e.value.inputStringRendered), 1),
|
|
1587
1587
|
p("span", null, R(e.value.hintStringSuffix), 1)
|
|
1588
1588
|
], 2)) : d("", !0),
|
|
1589
1589
|
b.question.showInputFieldComponent ? (i(), g(T(b.question.inputFieldComponentName), {
|
|
@@ -1613,7 +1613,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1613
1613
|
onInput: f,
|
|
1614
1614
|
onBlur: c,
|
|
1615
1615
|
onFocus: q
|
|
1616
|
-
}, null, 42,
|
|
1616
|
+
}, null, 42, cn)
|
|
1617
1617
|
], 2),
|
|
1618
1618
|
b.question.allowClear && b.question.cssClasses.cleanButtonIconId ? P((i(), u("div", {
|
|
1619
1619
|
key: 1,
|
|
@@ -1621,7 +1621,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1621
1621
|
onClick: l,
|
|
1622
1622
|
"aria-hidden": "true"
|
|
1623
1623
|
}, [
|
|
1624
|
-
C(
|
|
1624
|
+
C(F, {
|
|
1625
1625
|
class: a(b.question.cssClasses.cleanButtonSvg),
|
|
1626
1626
|
iconName: b.question.cssClasses.cleanButtonIconId,
|
|
1627
1627
|
title: b.question.clearCaption,
|
|
@@ -1630,7 +1630,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1630
1630
|
], 2)), [
|
|
1631
1631
|
[E, b.question.showClearButton]
|
|
1632
1632
|
]) : d("", !0)
|
|
1633
|
-
], 42,
|
|
1633
|
+
], 42, dn)),
|
|
1634
1634
|
b.question.isReadOnly ? (i(), u("div", {
|
|
1635
1635
|
key: 2,
|
|
1636
1636
|
disabled: "",
|
|
@@ -1642,7 +1642,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1642
1642
|
locString: b.question.selectedItemLocText
|
|
1643
1643
|
}, null, 8, ["locString"])) : d("", !0),
|
|
1644
1644
|
p("div", null, R(b.question.readOnlyText), 1)
|
|
1645
|
-
], 10,
|
|
1645
|
+
], 10, pn)) : (i(), g(Q, {
|
|
1646
1646
|
key: 1,
|
|
1647
1647
|
model: b.question.dropdownListModel.popupModel
|
|
1648
1648
|
}, null, 8, ["model"])),
|
|
@@ -1652,7 +1652,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1652
1652
|
onPointerdown: t,
|
|
1653
1653
|
"aria-hidden": "true"
|
|
1654
1654
|
}, [
|
|
1655
|
-
C(
|
|
1655
|
+
C(F, {
|
|
1656
1656
|
class: a(b.question.cssClasses.chevronButtonSvg),
|
|
1657
1657
|
iconName: b.question.cssClasses.chevronButtonIconId,
|
|
1658
1658
|
size: "auto"
|
|
@@ -1661,7 +1661,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1661
1661
|
], 2);
|
|
1662
1662
|
};
|
|
1663
1663
|
}
|
|
1664
|
-
}),
|
|
1664
|
+
}), qn = /* @__PURE__ */ h({
|
|
1665
1665
|
inheritAttrs: !1,
|
|
1666
1666
|
__name: "Tagbox",
|
|
1667
1667
|
props: {
|
|
@@ -1684,15 +1684,15 @@ const rn = /* @__PURE__ */ h({
|
|
|
1684
1684
|
], 2);
|
|
1685
1685
|
};
|
|
1686
1686
|
}
|
|
1687
|
-
}),
|
|
1687
|
+
}), yn = ["id", "tabindex", "disabled", "role", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], gn = ["id"], hn = /* @__PURE__ */ h({
|
|
1688
1688
|
__name: "Tagbox",
|
|
1689
1689
|
props: {
|
|
1690
1690
|
question: {}
|
|
1691
1691
|
},
|
|
1692
1692
|
setup(r) {
|
|
1693
|
-
const s = r, n =
|
|
1693
|
+
const s = r, n = S(() => {
|
|
1694
1694
|
const c = s.question;
|
|
1695
|
-
return c.dropdownListModel || (c.dropdownListModel = new
|
|
1695
|
+
return c.dropdownListModel || (c.dropdownListModel = new Ne(c)), s.question.dropdownListModel;
|
|
1696
1696
|
}), e = (c) => {
|
|
1697
1697
|
var q;
|
|
1698
1698
|
(q = n.value) == null || q.onClick(c);
|
|
@@ -1709,8 +1709,8 @@ const rn = /* @__PURE__ */ h({
|
|
|
1709
1709
|
var q;
|
|
1710
1710
|
(q = n.value) == null || q.onBlur(c);
|
|
1711
1711
|
}, v = le(() => s.question.selectedChoices);
|
|
1712
|
-
return
|
|
1713
|
-
const f = y("sv-tagbox-item"), k = y("sv-tagbox-filter"),
|
|
1712
|
+
return L(() => n.value), (c, q) => {
|
|
1713
|
+
const f = y("sv-tagbox-item"), k = y("sv-tagbox-filter"), _ = y("sv-svg-icon"), b = y("sv-popup"), N = y("survey-string");
|
|
1714
1714
|
return i(), u("div", {
|
|
1715
1715
|
class: a(c.question.cssClasses.selectWrapper),
|
|
1716
1716
|
onClick: e
|
|
@@ -1736,10 +1736,10 @@ const rn = /* @__PURE__ */ h({
|
|
|
1736
1736
|
p("div", {
|
|
1737
1737
|
class: a(c.question.cssClasses.controlValue)
|
|
1738
1738
|
}, [
|
|
1739
|
-
(i(!0), u(
|
|
1739
|
+
(i(!0), u(D, null, B(w(v), (W, F) => (i(), g(f, {
|
|
1740
1740
|
item: W,
|
|
1741
1741
|
question: c.question,
|
|
1742
|
-
key: "item" +
|
|
1742
|
+
key: "item" + F
|
|
1743
1743
|
}, null, 8, ["item", "question"]))), 128)),
|
|
1744
1744
|
C(k, {
|
|
1745
1745
|
model: n.value,
|
|
@@ -1752,7 +1752,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1752
1752
|
onClick: t,
|
|
1753
1753
|
"aria-hidden": "true"
|
|
1754
1754
|
}, [
|
|
1755
|
-
C(
|
|
1755
|
+
C(_, {
|
|
1756
1756
|
class: a(c.question.cssClasses.cleanButtonSvg),
|
|
1757
1757
|
iconName: c.question.cssClasses.cleanButtonIconId,
|
|
1758
1758
|
title: c.question.clearCaption,
|
|
@@ -1761,7 +1761,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1761
1761
|
], 2)), [
|
|
1762
1762
|
[E, c.question.showClearButton]
|
|
1763
1763
|
]) : d("", !0)
|
|
1764
|
-
], 42,
|
|
1764
|
+
], 42, yn)),
|
|
1765
1765
|
c.question.isReadOnly ? (i(), u("div", {
|
|
1766
1766
|
key: 2,
|
|
1767
1767
|
disabled: "",
|
|
@@ -1772,7 +1772,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1772
1772
|
key: 0,
|
|
1773
1773
|
locString: c.question.locReadOnlyText
|
|
1774
1774
|
}, null, 8, ["locString"])) : d("", !0)
|
|
1775
|
-
], 10,
|
|
1775
|
+
], 10, gn)) : (i(), g(b, {
|
|
1776
1776
|
key: 1,
|
|
1777
1777
|
model: n.value.popupModel
|
|
1778
1778
|
}, null, 8, ["model"])),
|
|
@@ -1782,7 +1782,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1782
1782
|
onPointerdown: o,
|
|
1783
1783
|
"aria-hidden": "true"
|
|
1784
1784
|
}, [
|
|
1785
|
-
C(
|
|
1785
|
+
C(_, {
|
|
1786
1786
|
class: a(c.question.cssClasses.chevronButtonSvg),
|
|
1787
1787
|
iconName: c.question.cssClasses.chevronButtonIconId,
|
|
1788
1788
|
size: "auto"
|
|
@@ -1791,7 +1791,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1791
1791
|
], 2);
|
|
1792
1792
|
};
|
|
1793
1793
|
}
|
|
1794
|
-
}),
|
|
1794
|
+
}), Cn = { style: { visibility: "hidden" } }, bn = ["placeholder", "disabled", "inputmode", "role", "aria-expanded", "aria-controls", "aria-label", "aria-labelledby", "aria-describedby", "aria-activedescendant", "id", "readonly", "size"], kn = /* @__PURE__ */ h({
|
|
1795
1795
|
__name: "TagboxFilter",
|
|
1796
1796
|
props: {
|
|
1797
1797
|
question: {},
|
|
@@ -1808,7 +1808,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1808
1808
|
}, t = (l) => {
|
|
1809
1809
|
s.model.onFocus(l);
|
|
1810
1810
|
};
|
|
1811
|
-
return
|
|
1811
|
+
return L(() => s.model), (l, m) => {
|
|
1812
1812
|
const v = y("survey-string");
|
|
1813
1813
|
return i(), u("div", {
|
|
1814
1814
|
class: a(l.question.cssClasses.hint)
|
|
@@ -1830,7 +1830,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1830
1830
|
key: 1,
|
|
1831
1831
|
class: a(l.question.cssClasses.hintSuffix)
|
|
1832
1832
|
}, [
|
|
1833
|
-
p("span",
|
|
1833
|
+
p("span", Cn, R(l.model.inputStringRendered), 1),
|
|
1834
1834
|
p("span", null, R(l.model.hintStringSuffix), 1)
|
|
1835
1835
|
], 2)) : d("", !0),
|
|
1836
1836
|
P(p("input", {
|
|
@@ -1855,14 +1855,14 @@ const rn = /* @__PURE__ */ h({
|
|
|
1855
1855
|
onKeydown: e,
|
|
1856
1856
|
onBlur: o,
|
|
1857
1857
|
onFocus: t
|
|
1858
|
-
}, null, 42,
|
|
1859
|
-
[
|
|
1858
|
+
}, null, 42, bn), [
|
|
1859
|
+
[Ie, l.model.inputStringRendered]
|
|
1860
1860
|
])
|
|
1861
1861
|
], 2)
|
|
1862
1862
|
], 2);
|
|
1863
1863
|
};
|
|
1864
1864
|
}
|
|
1865
|
-
}),
|
|
1865
|
+
}), fn = { class: "sv-tagbox__item-text" }, wn = /* @__PURE__ */ h({
|
|
1866
1866
|
__name: "TagboxItem",
|
|
1867
1867
|
props: {
|
|
1868
1868
|
question: {},
|
|
@@ -1872,13 +1872,13 @@ const rn = /* @__PURE__ */ h({
|
|
|
1872
1872
|
const s = r, n = (e) => {
|
|
1873
1873
|
s.question.dropdownListModel.deselectItem(s.item.value), e.stopPropagation();
|
|
1874
1874
|
};
|
|
1875
|
-
return
|
|
1875
|
+
return L(() => s.item), (e, o) => {
|
|
1876
1876
|
const t = y("survey-string"), l = y("sv-svg-icon");
|
|
1877
1877
|
return i(), u("div", {
|
|
1878
1878
|
class: "sv-tagbox__item",
|
|
1879
1879
|
key: e.item.key
|
|
1880
1880
|
}, [
|
|
1881
|
-
p("div",
|
|
1881
|
+
p("div", fn, [
|
|
1882
1882
|
C(t, {
|
|
1883
1883
|
locString: e.item.locText
|
|
1884
1884
|
}, null, 8, ["locString"])
|
|
@@ -1896,7 +1896,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1896
1896
|
]);
|
|
1897
1897
|
};
|
|
1898
1898
|
}
|
|
1899
|
-
}),
|
|
1899
|
+
}), In = /* @__PURE__ */ h({
|
|
1900
1900
|
inheritAttrs: !1,
|
|
1901
1901
|
__name: "Ranking",
|
|
1902
1902
|
props: {
|
|
@@ -1924,7 +1924,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1924
1924
|
ref_key: "root",
|
|
1925
1925
|
ref: n
|
|
1926
1926
|
}, [
|
|
1927
|
-
t.question.selectToRankEnabled ? d("", !0) : (i(!0), u(
|
|
1927
|
+
t.question.selectToRankEnabled ? d("", !0) : (i(!0), u(D, { key: 0 }, B(t.question.rankingChoices, (v, c) => (i(), g(T(e(v)), H({
|
|
1928
1928
|
key: v.value + "-" + c + "-item"
|
|
1929
1929
|
}, o(v, c)), null, 16))), 128)),
|
|
1930
1930
|
t.question.selectToRankEnabled ? (i(), u("div", {
|
|
@@ -1932,7 +1932,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1932
1932
|
class: a(t.question.getContainerClasses("from")),
|
|
1933
1933
|
"data-ranking": "from-container"
|
|
1934
1934
|
}, [
|
|
1935
|
-
(i(!0), u(
|
|
1935
|
+
(i(!0), u(D, null, B(t.question.unRankingChoices, (v, c) => (i(), g(T(e(v)), H({
|
|
1936
1936
|
key: v.value + "-" + c + "-item"
|
|
1937
1937
|
}, o(v, c, !0)), null, 16))), 128)),
|
|
1938
1938
|
t.question.unRankingChoices.length === 0 ? (i(), u("div", {
|
|
@@ -1953,7 +1953,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1953
1953
|
class: a(t.question.getContainerClasses("to")),
|
|
1954
1954
|
"data-ranking": "to-container"
|
|
1955
1955
|
}, [
|
|
1956
|
-
(i(!0), u(
|
|
1956
|
+
(i(!0), u(D, null, B(t.question.rankingChoices, (v, c) => (i(), g(T(e(v)), H({
|
|
1957
1957
|
key: v.value + "-" + c + "-item"
|
|
1958
1958
|
}, o(v, c)), null, 16))), 128)),
|
|
1959
1959
|
t.question.rankingChoices.length === 0 ? (i(), u("div", {
|
|
@@ -1968,10 +1968,10 @@ const rn = /* @__PURE__ */ h({
|
|
|
1968
1968
|
], 2);
|
|
1969
1969
|
};
|
|
1970
1970
|
}
|
|
1971
|
-
}),
|
|
1971
|
+
}), Sn = ["tabindex", "data-sv-drop-target-ranking-item"], Rn = {
|
|
1972
1972
|
tabindex: "-1",
|
|
1973
1973
|
style: { outline: "none" }
|
|
1974
|
-
},
|
|
1974
|
+
}, Tn = ["xlink:href"], $n = ["xlink:href"], _n = ["xlink:href"], Dn = /* @__PURE__ */ h({
|
|
1975
1975
|
inheritAttrs: !1,
|
|
1976
1976
|
__name: "RankingItem",
|
|
1977
1977
|
props: {
|
|
@@ -1981,8 +1981,8 @@ const rn = /* @__PURE__ */ h({
|
|
|
1981
1981
|
unrankedItem: { type: Boolean }
|
|
1982
1982
|
},
|
|
1983
1983
|
setup(r) {
|
|
1984
|
-
const s = r, n =
|
|
1985
|
-
return
|
|
1984
|
+
const s = r, n = S(() => s.question.getNumberByIndex(s.index));
|
|
1985
|
+
return L(() => s.item), (e, o) => {
|
|
1986
1986
|
const t = y("survey-string");
|
|
1987
1987
|
return i(), u("div", {
|
|
1988
1988
|
tabindex: e.question.getItemTabIndex(e.item),
|
|
@@ -2008,7 +2008,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2008
2008
|
);
|
|
2009
2009
|
})
|
|
2010
2010
|
}, [
|
|
2011
|
-
p("div",
|
|
2011
|
+
p("div", Rn, [
|
|
2012
2012
|
p("div", {
|
|
2013
2013
|
class: a(e.question.cssClasses.itemGhostNode)
|
|
2014
2014
|
}, null, 2),
|
|
@@ -2023,14 +2023,14 @@ const rn = /* @__PURE__ */ h({
|
|
|
2023
2023
|
}, [
|
|
2024
2024
|
p("use", {
|
|
2025
2025
|
"xlink:href": e.question.dragDropSvgIcon
|
|
2026
|
-
}, null, 8,
|
|
2026
|
+
}, null, 8, Tn)
|
|
2027
2027
|
], 2)),
|
|
2028
2028
|
(i(), u("svg", {
|
|
2029
2029
|
class: a(e.question.getIconFocusCss())
|
|
2030
2030
|
}, [
|
|
2031
2031
|
p("use", {
|
|
2032
2032
|
"xlink:href": e.question.arrowsSvgIcon
|
|
2033
|
-
}, null, 8,
|
|
2033
|
+
}, null, 8, $n)
|
|
2034
2034
|
], 2))
|
|
2035
2035
|
], 2),
|
|
2036
2036
|
!e.unrankedItem && n.value ? (i(), u("div", {
|
|
@@ -2043,7 +2043,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2043
2043
|
(i(), u("svg", null, [
|
|
2044
2044
|
p("use", {
|
|
2045
2045
|
"xlink:href": e.question.dashSvgIcon
|
|
2046
|
-
}, null, 8,
|
|
2046
|
+
}, null, 8, _n)
|
|
2047
2047
|
]))
|
|
2048
2048
|
], 2)),
|
|
2049
2049
|
p("div", {
|
|
@@ -2055,13 +2055,13 @@ const rn = /* @__PURE__ */ h({
|
|
|
2055
2055
|
], 2)
|
|
2056
2056
|
], 2)
|
|
2057
2057
|
])
|
|
2058
|
-
], 42,
|
|
2058
|
+
], 42, Sn);
|
|
2059
2059
|
};
|
|
2060
2060
|
}
|
|
2061
|
-
}),
|
|
2061
|
+
}), Bn = { role: "radiogroup" }, Ln = /* @__PURE__ */ p("legend", {
|
|
2062
2062
|
role: "presentation",
|
|
2063
2063
|
class: "sv-hidden"
|
|
2064
|
-
}, null, -1),
|
|
2064
|
+
}, null, -1), Nn = /* @__PURE__ */ h({
|
|
2065
2065
|
inheritAttrs: !1,
|
|
2066
2066
|
__name: "Rating",
|
|
2067
2067
|
props: {
|
|
@@ -2078,8 +2078,8 @@ const rn = /* @__PURE__ */ h({
|
|
|
2078
2078
|
ref_key: "root",
|
|
2079
2079
|
ref: n
|
|
2080
2080
|
}, [
|
|
2081
|
-
p("fieldset",
|
|
2082
|
-
|
|
2081
|
+
p("fieldset", Bn, [
|
|
2082
|
+
Ln,
|
|
2083
2083
|
o.question.hasMinLabel ? (i(), u("span", {
|
|
2084
2084
|
key: 0,
|
|
2085
2085
|
class: a(o.question.cssClasses.minText)
|
|
@@ -2088,7 +2088,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2088
2088
|
locString: o.question.locMinRateDescription
|
|
2089
2089
|
}, null, 8, ["locString"])
|
|
2090
2090
|
], 2)) : d("", !0),
|
|
2091
|
-
(i(!0), u(
|
|
2091
|
+
(i(!0), u(D, null, B(o.question.renderedRateItems, (m, v) => (i(), g(T(o.question.itemComponent), {
|
|
2092
2092
|
key: e(v),
|
|
2093
2093
|
item: m,
|
|
2094
2094
|
index: v,
|
|
@@ -2106,7 +2106,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2106
2106
|
], 2);
|
|
2107
2107
|
};
|
|
2108
2108
|
}
|
|
2109
|
-
}),
|
|
2109
|
+
}), Pn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], An = /* @__PURE__ */ h({
|
|
2110
2110
|
__name: "RatingItem",
|
|
2111
2111
|
props: {
|
|
2112
2112
|
question: {},
|
|
@@ -2115,7 +2115,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2115
2115
|
},
|
|
2116
2116
|
setup(r) {
|
|
2117
2117
|
const s = r;
|
|
2118
|
-
return
|
|
2118
|
+
return L(() => s.item), (n, e) => {
|
|
2119
2119
|
const o = y("survey-string");
|
|
2120
2120
|
return i(), u("label", {
|
|
2121
2121
|
key: n.item.value,
|
|
@@ -2134,7 +2134,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2134
2134
|
"aria-label": n.question.ariaLabel,
|
|
2135
2135
|
"aria-invalid": n.question.ariaInvalid,
|
|
2136
2136
|
"aria-errormessage": n.question.ariaErrormessage
|
|
2137
|
-
}, null, 8,
|
|
2137
|
+
}, null, 8, Pn),
|
|
2138
2138
|
p("span", {
|
|
2139
2139
|
class: a(n.question.cssClasses.itemText)
|
|
2140
2140
|
}, [
|
|
@@ -2145,7 +2145,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2145
2145
|
], 34);
|
|
2146
2146
|
};
|
|
2147
2147
|
}
|
|
2148
|
-
}),
|
|
2148
|
+
}), Mn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], En = /* @__PURE__ */ h({
|
|
2149
2149
|
__name: "RatingItemSmiley",
|
|
2150
2150
|
props: {
|
|
2151
2151
|
question: {},
|
|
@@ -2154,12 +2154,12 @@ const rn = /* @__PURE__ */ h({
|
|
|
2154
2154
|
},
|
|
2155
2155
|
setup(r) {
|
|
2156
2156
|
const s = r;
|
|
2157
|
-
return
|
|
2157
|
+
return L(() => s.item), (n, e) => {
|
|
2158
2158
|
const o = y("sv-svg-icon");
|
|
2159
2159
|
return i(), u("label", {
|
|
2160
2160
|
key: n.item.value,
|
|
2161
2161
|
onMousedown: e[1] || (e[1] = (t) => n.question.onMouseDown()),
|
|
2162
|
-
style:
|
|
2162
|
+
style: I(n.question.getItemStyle(n.item.itemValue, n.item.highlight)),
|
|
2163
2163
|
class: a(n.question.getItemClass(n.item.itemValue, n.item.highlight)),
|
|
2164
2164
|
onMouseover: e[2] || (e[2] = (t) => n.question.onItemMouseIn(n.item)),
|
|
2165
2165
|
onMouseleave: e[3] || (e[3] = (t) => n.question.onItemMouseOut(n.item))
|
|
@@ -2176,7 +2176,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2176
2176
|
"aria-label": n.question.ariaLabel,
|
|
2177
2177
|
"aria-invalid": n.question.ariaInvalid,
|
|
2178
2178
|
"aria-errormessage": n.question.ariaErrormessage
|
|
2179
|
-
}, null, 8,
|
|
2179
|
+
}, null, 8, Mn),
|
|
2180
2180
|
C(o, {
|
|
2181
2181
|
iconName: n.question.getItemSmileyIconName(n.item.itemValue),
|
|
2182
2182
|
size: "auto",
|
|
@@ -2185,7 +2185,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2185
2185
|
], 38);
|
|
2186
2186
|
};
|
|
2187
2187
|
}
|
|
2188
|
-
}),
|
|
2188
|
+
}), Hn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], Wn = /* @__PURE__ */ h({
|
|
2189
2189
|
__name: "RatingItemStar",
|
|
2190
2190
|
props: {
|
|
2191
2191
|
question: {},
|
|
@@ -2194,7 +2194,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2194
2194
|
},
|
|
2195
2195
|
setup(r) {
|
|
2196
2196
|
const s = r;
|
|
2197
|
-
return
|
|
2197
|
+
return L(() => s.item), (n, e) => {
|
|
2198
2198
|
const o = y("sv-svg-icon");
|
|
2199
2199
|
return i(), u("label", {
|
|
2200
2200
|
key: n.item.value,
|
|
@@ -2215,7 +2215,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2215
2215
|
"aria-label": n.question.ariaLabel,
|
|
2216
2216
|
"aria-invalid": n.question.ariaInvalid,
|
|
2217
2217
|
"aria-errormessage": n.question.ariaErrormessage
|
|
2218
|
-
}, null, 8,
|
|
2218
|
+
}, null, 8, Hn),
|
|
2219
2219
|
C(o, {
|
|
2220
2220
|
class: a("sv-star"),
|
|
2221
2221
|
iconName: n.question.itemStarIcon,
|
|
@@ -2231,21 +2231,21 @@ const rn = /* @__PURE__ */ h({
|
|
|
2231
2231
|
], 34);
|
|
2232
2232
|
};
|
|
2233
2233
|
}
|
|
2234
|
-
}),
|
|
2234
|
+
}), Fn = { class: "sd-rating-dropdown-item" }, Vn = { class: "sd-rating-dropdown-item_text" }, On = {
|
|
2235
2235
|
key: 0,
|
|
2236
2236
|
class: "sd-rating-dropdown-item_description"
|
|
2237
|
-
},
|
|
2237
|
+
}, zn = /* @__PURE__ */ h({
|
|
2238
2238
|
__name: "RatingDropdownItem",
|
|
2239
2239
|
props: {
|
|
2240
2240
|
item: {}
|
|
2241
2241
|
},
|
|
2242
2242
|
setup(r) {
|
|
2243
2243
|
const s = r;
|
|
2244
|
-
return
|
|
2244
|
+
return L(() => s.item), (n, e) => {
|
|
2245
2245
|
const o = y("survey-string");
|
|
2246
|
-
return i(), u("div",
|
|
2246
|
+
return i(), u("div", Fn, [
|
|
2247
2247
|
p("span", Vn, R(n.item.title), 1),
|
|
2248
|
-
n.item.description ? (i(), u("div",
|
|
2248
|
+
n.item.description ? (i(), u("div", On, [
|
|
2249
2249
|
C(o, {
|
|
2250
2250
|
locString: n.item.description
|
|
2251
2251
|
}, null, 8, ["locString"])
|
|
@@ -2259,7 +2259,7 @@ ee.Instance.registerRenderer(
|
|
|
2259
2259
|
"dropdown",
|
|
2260
2260
|
"sv-rating-dropdown"
|
|
2261
2261
|
);
|
|
2262
|
-
const
|
|
2262
|
+
const Un = /* @__PURE__ */ h({
|
|
2263
2263
|
inheritAttrs: !1,
|
|
2264
2264
|
__name: "RatingDropdown",
|
|
2265
2265
|
props: {
|
|
@@ -2278,7 +2278,7 @@ const zn = /* @__PURE__ */ h({
|
|
|
2278
2278
|
], 2);
|
|
2279
2279
|
};
|
|
2280
2280
|
}
|
|
2281
|
-
}),
|
|
2281
|
+
}), Kn = ["name", "value", "id", ".indeterminate", "disabled", "role", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], Qn = /* @__PURE__ */ h({
|
|
2282
2282
|
inheritAttrs: !1,
|
|
2283
2283
|
__name: "BooleanSwitch",
|
|
2284
2284
|
props: {
|
|
@@ -2320,7 +2320,7 @@ const zn = /* @__PURE__ */ h({
|
|
|
2320
2320
|
"aria-describedby": t.question.a11y_input_ariaDescribedBy,
|
|
2321
2321
|
"aria-invalid": t.question.a11y_input_ariaInvalid,
|
|
2322
2322
|
"aria-errormessage": t.question.a11y_input_ariaErrormessage
|
|
2323
|
-
}, null, 42,
|
|
2323
|
+
}, null, 42, Kn), [
|
|
2324
2324
|
[oe, t.question.booleanValue]
|
|
2325
2325
|
]),
|
|
2326
2326
|
p("div", {
|
|
@@ -2340,7 +2340,8 @@ const zn = /* @__PURE__ */ h({
|
|
|
2340
2340
|
onClick: l[2] || (l[2] = (c) => o(c))
|
|
2341
2341
|
}, [
|
|
2342
2342
|
p("span", {
|
|
2343
|
-
class: a(t.question.cssClasses.slider)
|
|
2343
|
+
class: a(t.question.cssClasses.slider),
|
|
2344
|
+
style: I({ marginLeft: t.question.thumbMargin })
|
|
2344
2345
|
}, [
|
|
2345
2346
|
t.question.cssClasses.sliderText && t.question.isDeterminated ? (i(), u("span", {
|
|
2346
2347
|
key: 0,
|
|
@@ -2350,7 +2351,7 @@ const zn = /* @__PURE__ */ h({
|
|
|
2350
2351
|
locString: t.question.getCheckedLabel()
|
|
2351
2352
|
}, null, 8, ["locString"])
|
|
2352
2353
|
], 2)) : d("", !0)
|
|
2353
|
-
],
|
|
2354
|
+
], 6)
|
|
2354
2355
|
], 2),
|
|
2355
2356
|
p("div", {
|
|
2356
2357
|
class: a(t.question.cssClasses.sliderGhost),
|
|
@@ -2374,7 +2375,7 @@ ee.Instance.registerRenderer(
|
|
|
2374
2375
|
"radio",
|
|
2375
2376
|
"sv-boolean-radio"
|
|
2376
2377
|
);
|
|
2377
|
-
const
|
|
2378
|
+
const jn = /* @__PURE__ */ h({
|
|
2378
2379
|
inheritAttrs: !1,
|
|
2379
2380
|
__name: "BooleanRadio",
|
|
2380
2381
|
props: {
|
|
@@ -2415,7 +2416,7 @@ const Qn = /* @__PURE__ */ h({
|
|
|
2415
2416
|
], 2);
|
|
2416
2417
|
};
|
|
2417
2418
|
}
|
|
2418
|
-
}),
|
|
2419
|
+
}), Gn = ["name", "value", "checked", "aria-errormessage", "disabled"], Jn = ["xlink:href"], Xn = /* @__PURE__ */ h({
|
|
2419
2420
|
__name: "BooleanRadioItem",
|
|
2420
2421
|
props: {
|
|
2421
2422
|
question: {},
|
|
@@ -2445,7 +2446,7 @@ const Qn = /* @__PURE__ */ h({
|
|
|
2445
2446
|
disabled: e.question.isInputReadOnly,
|
|
2446
2447
|
class: a(e.question.cssClasses.itemRadioControl),
|
|
2447
2448
|
onChange: n
|
|
2448
|
-
}, null, 42,
|
|
2449
|
+
}, null, 42, Gn),
|
|
2449
2450
|
e.question.cssClasses.materialRadioDecorator ? (i(), u("span", {
|
|
2450
2451
|
key: 0,
|
|
2451
2452
|
class: a(e.question.cssClasses.materialRadioDecorator)
|
|
@@ -2456,7 +2457,7 @@ const Qn = /* @__PURE__ */ h({
|
|
|
2456
2457
|
}, [
|
|
2457
2458
|
p("use", {
|
|
2458
2459
|
"xlink:href": e.question.itemSvgIcon
|
|
2459
|
-
}, null, 8,
|
|
2460
|
+
}, null, 8, Jn)
|
|
2460
2461
|
], 2)) : d("", !0)
|
|
2461
2462
|
], 2)) : d("", !0),
|
|
2462
2463
|
p("span", {
|
|
@@ -2468,13 +2469,13 @@ const Qn = /* @__PURE__ */ h({
|
|
|
2468
2469
|
], 2);
|
|
2469
2470
|
};
|
|
2470
2471
|
}
|
|
2471
|
-
}),
|
|
2472
|
+
}), Yn = ["name", "value", "id", ".indeterminate", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], Zn = ["xlink:href"], xn = /* @__PURE__ */ p("span", { class: "check" }, null, -1), eo = ["id"], so = ["id"];
|
|
2472
2473
|
ee.Instance.registerRenderer(
|
|
2473
2474
|
"boolean",
|
|
2474
2475
|
"checkbox",
|
|
2475
2476
|
"sv-boolean-checkbox"
|
|
2476
2477
|
);
|
|
2477
|
-
const
|
|
2478
|
+
const no = /* @__PURE__ */ h({
|
|
2478
2479
|
inheritAttrs: !1,
|
|
2479
2480
|
__name: "BooleanCheckbox",
|
|
2480
2481
|
props: {
|
|
@@ -2510,7 +2511,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2510
2511
|
"aria-label": e.question.ariaLabel,
|
|
2511
2512
|
"aria-invalid": e.question.ariaInvalid,
|
|
2512
2513
|
"aria-errormessage": e.question.ariaErrormessage
|
|
2513
|
-
}, null, 42,
|
|
2514
|
+
}, null, 42, Yn), [
|
|
2514
2515
|
[oe, e.question.booleanValue]
|
|
2515
2516
|
]),
|
|
2516
2517
|
p("span", {
|
|
@@ -2522,9 +2523,9 @@ const so = /* @__PURE__ */ h({
|
|
|
2522
2523
|
}, [
|
|
2523
2524
|
p("use", {
|
|
2524
2525
|
"xlink:href": e.question.svgIcon
|
|
2525
|
-
}, null, 8,
|
|
2526
|
+
}, null, 8, Zn)
|
|
2526
2527
|
], 2)) : d("", !0),
|
|
2527
|
-
|
|
2528
|
+
xn
|
|
2528
2529
|
], 2),
|
|
2529
2530
|
e.question.isLabelRendered ? (i(), u("span", {
|
|
2530
2531
|
key: 0,
|
|
@@ -2541,7 +2542,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2541
2542
|
element: e.question,
|
|
2542
2543
|
css: e.css
|
|
2543
2544
|
}, null, 8, ["element", "css"])) : d("", !0)
|
|
2544
|
-
], 10,
|
|
2545
|
+
], 10, eo)) : d("", !0)
|
|
2545
2546
|
], 2),
|
|
2546
2547
|
e.question.canRenderLabelDescription ? (i(), u("div", {
|
|
2547
2548
|
key: 0,
|
|
@@ -2551,12 +2552,12 @@ const so = /* @__PURE__ */ h({
|
|
|
2551
2552
|
C(m, {
|
|
2552
2553
|
locString: e.question.locDescription
|
|
2553
2554
|
}, null, 8, ["locString"])
|
|
2554
|
-
], 10,
|
|
2555
|
+
], 10, so)) : d("", !0)
|
|
2555
2556
|
], 2)
|
|
2556
2557
|
], 2);
|
|
2557
2558
|
};
|
|
2558
2559
|
}
|
|
2559
|
-
}),
|
|
2560
|
+
}), oo = /* @__PURE__ */ h({
|
|
2560
2561
|
inheritAttrs: !1,
|
|
2561
2562
|
__name: "Multipletext",
|
|
2562
2563
|
props: {
|
|
@@ -2572,14 +2573,14 @@ const so = /* @__PURE__ */ h({
|
|
|
2572
2573
|
ref: n
|
|
2573
2574
|
}, [
|
|
2574
2575
|
p("tbody", null, [
|
|
2575
|
-
(i(!0), u(
|
|
2576
|
+
(i(!0), u(D, null, B(w(e), (m, v) => (i(), u(D, {
|
|
2576
2577
|
key: o.question.inputId + "rowkey" + v
|
|
2577
2578
|
}, [
|
|
2578
2579
|
m.isVisible ? (i(), u("tr", {
|
|
2579
2580
|
key: 0,
|
|
2580
2581
|
class: a(o.question.cssClasses.row)
|
|
2581
2582
|
}, [
|
|
2582
|
-
(i(!0), u(
|
|
2583
|
+
(i(!0), u(D, null, B(m.cells, (c) => (i(), u("td", {
|
|
2583
2584
|
key: "item" + c.item.editor.id,
|
|
2584
2585
|
class: a(c.className)
|
|
2585
2586
|
}, [
|
|
@@ -2594,7 +2595,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2594
2595
|
], 2);
|
|
2595
2596
|
};
|
|
2596
2597
|
}
|
|
2597
|
-
}),
|
|
2598
|
+
}), to = { key: 1 }, io = /* @__PURE__ */ h({
|
|
2598
2599
|
__name: "MultipletextItem",
|
|
2599
2600
|
props: {
|
|
2600
2601
|
question: {},
|
|
@@ -2602,8 +2603,8 @@ const so = /* @__PURE__ */ h({
|
|
|
2602
2603
|
},
|
|
2603
2604
|
setup(r) {
|
|
2604
2605
|
const s = r, n = (o) => re(o);
|
|
2605
|
-
|
|
2606
|
-
const e =
|
|
2606
|
+
L(() => s.cell.item.editor);
|
|
2607
|
+
const e = S(() => s.cell.item);
|
|
2607
2608
|
return (o, t) => {
|
|
2608
2609
|
const l = y("survey-string"), m = y("survey-errors");
|
|
2609
2610
|
return o.cell.isErrorsCell ? (i(), g(m, {
|
|
@@ -2615,7 +2616,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2615
2616
|
}, [
|
|
2616
2617
|
p("span", {
|
|
2617
2618
|
class: a(o.question.getItemTitleCss()),
|
|
2618
|
-
style:
|
|
2619
|
+
style: I({ minWidth: o.question.itemTitleWidth, width: o.question.itemTitleWidth })
|
|
2619
2620
|
}, [
|
|
2620
2621
|
e.value.editor.isRequireTextBeforeTitle || e.value.editor.isRequireTextOnStart ? (i(), u("span", {
|
|
2621
2622
|
key: 0,
|
|
@@ -2624,7 +2625,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2624
2625
|
C(l, {
|
|
2625
2626
|
locString: e.value.locTitle
|
|
2626
2627
|
}, null, 8, ["locString"]),
|
|
2627
|
-
e.value.editor.isRequireTextAfterTitle ? (i(), u("span",
|
|
2628
|
+
e.value.editor.isRequireTextAfterTitle ? (i(), u("span", to, "\xA0")) : d("", !0),
|
|
2628
2629
|
e.value.editor.isRequireTextAfterTitle ? (i(), u("span", {
|
|
2629
2630
|
key: 2,
|
|
2630
2631
|
"aria-hidden": "true",
|
|
@@ -2643,7 +2644,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2643
2644
|
], 2));
|
|
2644
2645
|
};
|
|
2645
2646
|
}
|
|
2646
|
-
}),
|
|
2647
|
+
}), ro = { class: "sv-hidden" }, lo = { key: 0 }, ao = { key: 0 }, uo = ["onClick"], mo = ["data-responsive-title", "onClick"], co = /* @__PURE__ */ h({
|
|
2647
2648
|
inheritAttrs: !1,
|
|
2648
2649
|
__name: "Matrix",
|
|
2649
2650
|
props: {
|
|
@@ -2675,17 +2676,17 @@ const so = /* @__PURE__ */ h({
|
|
|
2675
2676
|
ref: n
|
|
2676
2677
|
}, [
|
|
2677
2678
|
p("fieldset", null, [
|
|
2678
|
-
p("legend",
|
|
2679
|
+
p("legend", ro, R(t.question.locTitle.renderedHtml), 1),
|
|
2679
2680
|
p("table", {
|
|
2680
2681
|
class: a(t.question.getTableCss())
|
|
2681
2682
|
}, [
|
|
2682
|
-
t.question.showHeader ? (i(), u("thead",
|
|
2683
|
+
t.question.showHeader ? (i(), u("thead", lo, [
|
|
2683
2684
|
p("tr", null, [
|
|
2684
|
-
t.question.hasRows ? (i(), u("td",
|
|
2685
|
-
(i(!0), u(
|
|
2685
|
+
t.question.hasRows ? (i(), u("td", ao)) : d("", !0),
|
|
2686
|
+
(i(!0), u(D, null, B(t.question.visibleColumns, (v, c) => (i(), u("th", {
|
|
2686
2687
|
key: c,
|
|
2687
2688
|
class: a(t.question.cssClasses.headerCell),
|
|
2688
|
-
style:
|
|
2689
|
+
style: I({
|
|
2689
2690
|
minWidth: t.question.columnMinWidth,
|
|
2690
2691
|
width: t.question.columnMinWidth
|
|
2691
2692
|
})
|
|
@@ -2693,7 +2694,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2693
2694
|
(i(), g(T(t.question.getColumnHeaderWrapperComponentName(v)), {
|
|
2694
2695
|
componentData: t.question.getColumnHeaderWrapperComponentData(v)
|
|
2695
2696
|
}, {
|
|
2696
|
-
default:
|
|
2697
|
+
default: V(() => [
|
|
2697
2698
|
C(m, {
|
|
2698
2699
|
locString: v.locText
|
|
2699
2700
|
}, null, 8, ["locString"])
|
|
@@ -2704,13 +2705,13 @@ const so = /* @__PURE__ */ h({
|
|
|
2704
2705
|
])
|
|
2705
2706
|
])) : d("", !0),
|
|
2706
2707
|
p("tbody", null, [
|
|
2707
|
-
(i(!0), u(
|
|
2708
|
+
(i(!0), u(D, null, B(e.value, (v, c) => (i(), u("tr", {
|
|
2708
2709
|
key: "row_" + v.name + "_" + c,
|
|
2709
2710
|
class: a(v.rowClasses || void 0)
|
|
2710
2711
|
}, [
|
|
2711
2712
|
P(p("td", {
|
|
2712
2713
|
class: a(v.rowTextClasses),
|
|
2713
|
-
style:
|
|
2714
|
+
style: I({
|
|
2714
2715
|
minWidth: t.question.rowTitleWidth,
|
|
2715
2716
|
width: t.question.rowTitleWidth
|
|
2716
2717
|
})
|
|
@@ -2718,7 +2719,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2718
2719
|
(i(), g(T(t.question.getRowHeaderWrapperComponentName(v)), {
|
|
2719
2720
|
componentData: t.question.getRowHeaderWrapperComponentData(v)
|
|
2720
2721
|
}, {
|
|
2721
|
-
default:
|
|
2722
|
+
default: V(() => [
|
|
2722
2723
|
C(m, {
|
|
2723
2724
|
locString: v.locText
|
|
2724
2725
|
}, null, 8, ["locString"])
|
|
@@ -2728,7 +2729,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2728
2729
|
], 6), [
|
|
2729
2730
|
[E, t.question.hasRows]
|
|
2730
2731
|
]),
|
|
2731
|
-
t.question.hasCellText ? (i(!0), u(
|
|
2732
|
+
t.question.hasCellText ? (i(!0), u(D, { key: 0 }, B(t.question.visibleColumns, (q, f) => (i(), u("td", {
|
|
2732
2733
|
key: f,
|
|
2733
2734
|
class: a(t.question.getItemClass(v, q)),
|
|
2734
2735
|
onClick: (k) => o(v, q)
|
|
@@ -2736,8 +2737,8 @@ const so = /* @__PURE__ */ h({
|
|
|
2736
2737
|
C(m, {
|
|
2737
2738
|
locString: t.question.getCellDisplayLocText(v.name, q)
|
|
2738
2739
|
}, null, 8, ["locString"])
|
|
2739
|
-
], 10,
|
|
2740
|
-
t.question.hasCellText ? d("", !0) : (i(!0), u(
|
|
2740
|
+
], 10, uo))), 128)) : d("", !0),
|
|
2741
|
+
t.question.hasCellText ? d("", !0) : (i(!0), u(D, { key: 1 }, B(t.question.visibleColumns, (q, f) => (i(), u("td", {
|
|
2741
2742
|
key: f,
|
|
2742
2743
|
"data-responsive-title": q.locText.renderedHtml,
|
|
2743
2744
|
class: a(t.question.cssClasses.cell),
|
|
@@ -2749,7 +2750,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2749
2750
|
column: q,
|
|
2750
2751
|
columnIndex: f
|
|
2751
2752
|
}, null, 8, ["question", "row", "column", "columnIndex"]))
|
|
2752
|
-
], 10,
|
|
2753
|
+
], 10, mo))), 128))
|
|
2753
2754
|
], 2))), 128))
|
|
2754
2755
|
])
|
|
2755
2756
|
], 2)
|
|
@@ -2757,7 +2758,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2757
2758
|
], 2);
|
|
2758
2759
|
};
|
|
2759
2760
|
}
|
|
2760
|
-
}),
|
|
2761
|
+
}), po = ["data-sv-drop-target-matrix-row"], vo = /* @__PURE__ */ h({
|
|
2761
2762
|
__name: "MatrixRow",
|
|
2762
2763
|
props: {
|
|
2763
2764
|
question: {},
|
|
@@ -2765,7 +2766,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2765
2766
|
},
|
|
2766
2767
|
setup(r) {
|
|
2767
2768
|
const s = r, n = $();
|
|
2768
|
-
|
|
2769
|
+
L(() => s.row);
|
|
2769
2770
|
const e = K(
|
|
2770
2771
|
() => s.row,
|
|
2771
2772
|
(o, t) => {
|
|
@@ -2786,15 +2787,15 @@ const so = /* @__PURE__ */ h({
|
|
|
2786
2787
|
ref_key: "root",
|
|
2787
2788
|
ref: n
|
|
2788
2789
|
}, [
|
|
2789
|
-
(i(!0), u(
|
|
2790
|
+
(i(!0), u(D, null, B(o.row.cells, (m, v) => (i(), g(l, {
|
|
2790
2791
|
cell: m,
|
|
2791
2792
|
question: o.question,
|
|
2792
2793
|
key: o.row.id + "_" + v
|
|
2793
2794
|
}, null, 8, ["cell", "question"]))), 128))
|
|
2794
|
-
], 42,
|
|
2795
|
+
], 42, po)) : d("", !0);
|
|
2795
2796
|
};
|
|
2796
2797
|
}
|
|
2797
|
-
}),
|
|
2798
|
+
}), qo = ["name", "value", "disabled", "id", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], yo = ["xlink:href"], go = /* @__PURE__ */ h({
|
|
2798
2799
|
inheritAttrs: !1,
|
|
2799
2800
|
__name: "MatrixCell",
|
|
2800
2801
|
props: {
|
|
@@ -2825,7 +2826,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2825
2826
|
),
|
|
2826
2827
|
"aria-invalid": s.question.a11y_input_ariaInvalid,
|
|
2827
2828
|
"aria-errormessage": s.question.a11y_input_ariaErrormessage
|
|
2828
|
-
}, null, 10,
|
|
2829
|
+
}, null, 10, qo), [
|
|
2829
2830
|
[x, s.row.value]
|
|
2830
2831
|
]),
|
|
2831
2832
|
p("span", {
|
|
@@ -2837,7 +2838,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2837
2838
|
}, [
|
|
2838
2839
|
p("use", {
|
|
2839
2840
|
"xlink:href": s.question.itemSvgIcon
|
|
2840
|
-
}, null, 8,
|
|
2841
|
+
}, null, 8, yo)
|
|
2841
2842
|
], 2)) : d("", !0)
|
|
2842
2843
|
], 2),
|
|
2843
2844
|
s.question.isMobile ? (i(), u("span", {
|
|
@@ -2851,7 +2852,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2851
2852
|
], 34);
|
|
2852
2853
|
};
|
|
2853
2854
|
}
|
|
2854
|
-
}),
|
|
2855
|
+
}), ho = /* @__PURE__ */ h({
|
|
2855
2856
|
inheritAttrs: !1,
|
|
2856
2857
|
__name: "MatrixDropdown",
|
|
2857
2858
|
props: {
|
|
@@ -2868,14 +2869,14 @@ const so = /* @__PURE__ */ h({
|
|
|
2868
2869
|
}, null, 8, ["question"]);
|
|
2869
2870
|
};
|
|
2870
2871
|
}
|
|
2871
|
-
}),
|
|
2872
|
+
}), Co = { key: 0 }, bo = { key: 1 }, ko = /* @__PURE__ */ h({
|
|
2872
2873
|
__name: "MatrixTable",
|
|
2873
2874
|
props: {
|
|
2874
2875
|
question: {}
|
|
2875
2876
|
},
|
|
2876
2877
|
setup(r) {
|
|
2877
|
-
const s = r, n =
|
|
2878
|
-
return
|
|
2878
|
+
const s = r, n = S(() => s.question.renderedTable);
|
|
2879
|
+
return L(
|
|
2879
2880
|
() => n.value,
|
|
2880
2881
|
(e) => {
|
|
2881
2882
|
const o = ie();
|
|
@@ -2891,24 +2892,24 @@ const so = /* @__PURE__ */ h({
|
|
|
2891
2892
|
), (e, o) => {
|
|
2892
2893
|
const t = y("survey-string"), l = y("survey-matrixheaderrequired"), m = y("survey-matrix-row"), v = y("survey-matrixdropdown-cell");
|
|
2893
2894
|
return i(), u("div", {
|
|
2894
|
-
style:
|
|
2895
|
+
style: I({ overflowX: e.question.showHorizontalScroll ? "scroll" : "" }),
|
|
2895
2896
|
class: a(e.question.cssClasses.tableWrapper)
|
|
2896
2897
|
}, [
|
|
2897
2898
|
p("table", {
|
|
2898
2899
|
class: a(e.question.getTableCss())
|
|
2899
2900
|
}, [
|
|
2900
|
-
n.value.showHeader ? (i(), u("thead",
|
|
2901
|
+
n.value.showHeader ? (i(), u("thead", Co, [
|
|
2901
2902
|
p("tr", null, [
|
|
2902
|
-
(i(!0), u(
|
|
2903
|
+
(i(!0), u(D, null, B(n.value.headerRow.cells, (c) => (i(), u(D, null, [
|
|
2903
2904
|
c.hasTitle ? (i(), u("th", {
|
|
2904
2905
|
key: "header_" + c.id,
|
|
2905
2906
|
class: a(c.className),
|
|
2906
|
-
style:
|
|
2907
|
+
style: I({ minWidth: c.minWidth, width: c.width })
|
|
2907
2908
|
}, [
|
|
2908
2909
|
(i(), g(T(e.question.getColumnHeaderWrapperComponentName(c)), {
|
|
2909
2910
|
componentData: e.question.getColumnHeaderWrapperComponentData(c)
|
|
2910
2911
|
}, {
|
|
2911
|
-
default:
|
|
2912
|
+
default: V(() => [
|
|
2912
2913
|
C(t, {
|
|
2913
2914
|
locString: c.locTitle
|
|
2914
2915
|
}, null, 8, ["locString"]),
|
|
@@ -2924,21 +2925,21 @@ const so = /* @__PURE__ */ h({
|
|
|
2924
2925
|
c.hasTitle ? d("", !0) : (i(), u("td", {
|
|
2925
2926
|
class: a(c.className),
|
|
2926
2927
|
key: "header_" + c.id,
|
|
2927
|
-
style:
|
|
2928
|
+
style: I({ minWidth: c.minWidth, width: c.width })
|
|
2928
2929
|
}, null, 6))
|
|
2929
2930
|
], 64))), 256))
|
|
2930
2931
|
])
|
|
2931
2932
|
])) : d("", !0),
|
|
2932
2933
|
p("tbody", null, [
|
|
2933
|
-
(i(!0), u(
|
|
2934
|
+
(i(!0), u(D, null, B(n.value.renderedRows, (c) => (i(), g(m, {
|
|
2934
2935
|
key: e.question.inputId + "_" + c.id,
|
|
2935
2936
|
row: c,
|
|
2936
2937
|
question: e.question
|
|
2937
2938
|
}, null, 8, ["row", "question"]))), 128))
|
|
2938
2939
|
]),
|
|
2939
|
-
n.value.showFooter ? (i(), u("tfoot",
|
|
2940
|
+
n.value.showFooter ? (i(), u("tfoot", bo, [
|
|
2940
2941
|
p("tr", null, [
|
|
2941
|
-
(i(!0), u(
|
|
2942
|
+
(i(!0), u(D, null, B(n.value.footerRow.cells, (c, q) => (i(), g(v, {
|
|
2942
2943
|
cell: c,
|
|
2943
2944
|
question: e.question,
|
|
2944
2945
|
key: "footer_" + q
|
|
@@ -2949,7 +2950,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2949
2950
|
], 6);
|
|
2950
2951
|
};
|
|
2951
2952
|
}
|
|
2952
|
-
}),
|
|
2953
|
+
}), fo = /* @__PURE__ */ p("span", null, "\xA0", -1), wo = /* @__PURE__ */ h({
|
|
2953
2954
|
__name: "MatrixHeaderRequired",
|
|
2954
2955
|
props: {
|
|
2955
2956
|
question: {},
|
|
@@ -2957,15 +2958,15 @@ const so = /* @__PURE__ */ h({
|
|
|
2957
2958
|
},
|
|
2958
2959
|
setup(r) {
|
|
2959
2960
|
const s = r;
|
|
2960
|
-
return
|
|
2961
|
-
|
|
2961
|
+
return L(() => s.column), (n, e) => n.column.isRenderedRequired ? (i(), u(D, { key: 0 }, [
|
|
2962
|
+
fo,
|
|
2962
2963
|
n.column.isRenderedRequired ? (i(), u("span", {
|
|
2963
2964
|
key: 0,
|
|
2964
2965
|
class: a(n.question.cssClasses.cellRequiredText)
|
|
2965
2966
|
}, R(n.column.requiredText), 3)) : d("", !0)
|
|
2966
2967
|
], 64)) : d("", !0);
|
|
2967
2968
|
}
|
|
2968
|
-
}),
|
|
2969
|
+
}), Io = ["data-responsive-title", "title", "colspan"], So = /* @__PURE__ */ h({
|
|
2969
2970
|
__name: "MatrixDropdownCellComp",
|
|
2970
2971
|
props: {
|
|
2971
2972
|
question: {},
|
|
@@ -2988,38 +2989,38 @@ const so = /* @__PURE__ */ h({
|
|
|
2988
2989
|
};
|
|
2989
2990
|
s.question.survey.matrixAfterCellRender(s.question, k), f && f.afterRenderCore(q);
|
|
2990
2991
|
});
|
|
2991
|
-
const v =
|
|
2992
|
+
const v = S(() => {
|
|
2992
2993
|
const q = s.cell;
|
|
2993
2994
|
if (q.hasPanel) {
|
|
2994
2995
|
const f = q.panel, k = f.survey;
|
|
2995
2996
|
if (k) {
|
|
2996
|
-
const
|
|
2997
|
-
if (
|
|
2998
|
-
return
|
|
2997
|
+
const _ = k.getElementWrapperComponentName(f);
|
|
2998
|
+
if (_)
|
|
2999
|
+
return _;
|
|
2999
3000
|
}
|
|
3000
3001
|
return "survey-panel";
|
|
3001
3002
|
}
|
|
3002
|
-
}), c =
|
|
3003
|
+
}), c = S(() => {
|
|
3003
3004
|
if (s.cell.hasPanel) {
|
|
3004
3005
|
const f = s.cell.panel, k = f.survey;
|
|
3005
|
-
let
|
|
3006
|
-
return k && (
|
|
3006
|
+
let _;
|
|
3007
|
+
return k && (_ = k.getElementWrapperComponentData(f)), {
|
|
3007
3008
|
componentName: "survey-panel",
|
|
3008
3009
|
componentData: {
|
|
3009
3010
|
element: f,
|
|
3010
|
-
data:
|
|
3011
|
+
data: _,
|
|
3011
3012
|
css: s.question.cssClasses
|
|
3012
3013
|
}
|
|
3013
3014
|
};
|
|
3014
3015
|
}
|
|
3015
3016
|
});
|
|
3016
3017
|
return (q, f) => {
|
|
3017
|
-
const k = y("survey-errors"),
|
|
3018
|
+
const k = y("survey-errors"), _ = y("sv-matrix-drag-drop-icon"), b = y("sv-action-bar"), N = y("survey-radiogroup-item"), W = y("survey-checkbox-item"), F = y("survey-other-choice"), Q = y("survey-string");
|
|
3018
3019
|
return i(), u("td", {
|
|
3019
3020
|
class: a(q.cell.className),
|
|
3020
3021
|
"data-responsive-title": o(),
|
|
3021
3022
|
title: q.cell.getTitle(),
|
|
3022
|
-
style:
|
|
3023
|
+
style: I(t()),
|
|
3023
3024
|
colspan: q.cell.colSpans,
|
|
3024
3025
|
onFocusin: f[0] || (f[0] = (ue) => q.cell.focusIn()),
|
|
3025
3026
|
ref_key: "root",
|
|
@@ -3029,7 +3030,7 @@ const so = /* @__PURE__ */ h({
|
|
|
3029
3030
|
key: 0,
|
|
3030
3031
|
element: q.cell.question
|
|
3031
3032
|
}, null, 8, ["element"])) : d("", !0),
|
|
3032
|
-
q.cell.isDragHandlerCell ? (i(), g(
|
|
3033
|
+
q.cell.isDragHandlerCell ? (i(), g(_, {
|
|
3033
3034
|
key: 1,
|
|
3034
3035
|
item: { data: { row: q.cell.row, question: q.question } }
|
|
3035
3036
|
}, null, 8, ["item"])) : d("", !0),
|
|
@@ -3047,7 +3048,7 @@ const so = /* @__PURE__ */ h({
|
|
|
3047
3048
|
key: 0,
|
|
3048
3049
|
componentData: q.question.getCellWrapperComponentData(q.cell.cell)
|
|
3049
3050
|
}, {
|
|
3050
|
-
default:
|
|
3051
|
+
default: V(() => [
|
|
3051
3052
|
(i(), g(T(m(q.cell.question)), {
|
|
3052
3053
|
question: q.cell.question
|
|
3053
3054
|
}, null, 8, ["question"]))
|
|
@@ -3062,7 +3063,7 @@ const so = /* @__PURE__ */ h({
|
|
|
3062
3063
|
key: 2,
|
|
3063
3064
|
componentData: q.question.getCellWrapperComponentData(q.cell.cell)
|
|
3064
3065
|
}, {
|
|
3065
|
-
default:
|
|
3066
|
+
default: V(() => [
|
|
3066
3067
|
q.cell.isRadio ? (i(), g(N, {
|
|
3067
3068
|
key: q.cell.item.value,
|
|
3068
3069
|
question: q.cell.question,
|
|
@@ -3078,7 +3079,7 @@ const so = /* @__PURE__ */ h({
|
|
|
3078
3079
|
]),
|
|
3079
3080
|
_: 1
|
|
3080
3081
|
}, 8, ["componentData"])) : d("", !0),
|
|
3081
|
-
q.cell.isOtherChoice ? (i(), g(
|
|
3082
|
+
q.cell.isOtherChoice ? (i(), g(F, {
|
|
3082
3083
|
key: 3,
|
|
3083
3084
|
question: q.cell.question
|
|
3084
3085
|
}, null, 8, ["question"])) : d("", !0)
|
|
@@ -3089,7 +3090,7 @@ const so = /* @__PURE__ */ h({
|
|
|
3089
3090
|
key: 5,
|
|
3090
3091
|
componentData: q.question.getCellWrapperComponentData(q.cell)
|
|
3091
3092
|
}, {
|
|
3092
|
-
default:
|
|
3093
|
+
default: V(() => [
|
|
3093
3094
|
q.cell.hasTitle ? (i(), g(Q, {
|
|
3094
3095
|
key: 0,
|
|
3095
3096
|
locString: q.cell.locTitle
|
|
@@ -3101,10 +3102,10 @@ const so = /* @__PURE__ */ h({
|
|
|
3101
3102
|
]),
|
|
3102
3103
|
_: 1
|
|
3103
3104
|
}, 8, ["componentData"])) : d("", !0)
|
|
3104
|
-
], 46,
|
|
3105
|
+
], 46, Io);
|
|
3105
3106
|
};
|
|
3106
3107
|
}
|
|
3107
|
-
}),
|
|
3108
|
+
}), Ro = /* @__PURE__ */ h({
|
|
3108
3109
|
inheritAttrs: !1,
|
|
3109
3110
|
__name: "MatrixDynamic",
|
|
3110
3111
|
props: {
|
|
@@ -3191,11 +3192,11 @@ const so = /* @__PURE__ */ h({
|
|
|
3191
3192
|
});
|
|
3192
3193
|
function ae(r, s = !0) {
|
|
3193
3194
|
return {
|
|
3194
|
-
question:
|
|
3195
|
-
row: s ?
|
|
3195
|
+
question: S(() => r.item.data.question),
|
|
3196
|
+
row: s ? S(() => r.item.data.row) : void 0
|
|
3196
3197
|
};
|
|
3197
3198
|
}
|
|
3198
|
-
const
|
|
3199
|
+
const To = ["disabled"], $o = /* @__PURE__ */ h({
|
|
3199
3200
|
__name: "RemoveButton",
|
|
3200
3201
|
props: {
|
|
3201
3202
|
item: {}
|
|
@@ -3216,10 +3217,10 @@ const Ro = ["disabled"], To = /* @__PURE__ */ h({
|
|
|
3216
3217
|
p("span", {
|
|
3217
3218
|
class: a(w(n).cssClasses.iconRemove)
|
|
3218
3219
|
}, null, 2)
|
|
3219
|
-
], 10,
|
|
3220
|
+
], 10, To);
|
|
3220
3221
|
};
|
|
3221
3222
|
}
|
|
3222
|
-
}),
|
|
3223
|
+
}), _o = ["xlink:href"], Do = /* @__PURE__ */ h({
|
|
3223
3224
|
__name: "DragDropIcon",
|
|
3224
3225
|
props: {
|
|
3225
3226
|
item: {}
|
|
@@ -3232,13 +3233,13 @@ const Ro = ["disabled"], To = /* @__PURE__ */ h({
|
|
|
3232
3233
|
}, [
|
|
3233
3234
|
p("use", {
|
|
3234
3235
|
"xlink:href": w(n).iconDragElement
|
|
3235
|
-
}, null, 8,
|
|
3236
|
+
}, null, 8, _o)
|
|
3236
3237
|
], 2)) : (i(), u("span", {
|
|
3237
3238
|
key: 1,
|
|
3238
3239
|
class: a(w(n).cssClasses.iconDrag)
|
|
3239
3240
|
}, null, 2));
|
|
3240
3241
|
}
|
|
3241
|
-
}),
|
|
3242
|
+
}), Bo = ["aria-expanded", "aria-controls"], Lo = /* @__PURE__ */ h({
|
|
3242
3243
|
__name: "DetailButton",
|
|
3243
3244
|
props: {
|
|
3244
3245
|
item: {}
|
|
@@ -3259,10 +3260,10 @@ const Ro = ["disabled"], To = /* @__PURE__ */ h({
|
|
|
3259
3260
|
iconName: w(n).getDetailPanelIconId(w(e)),
|
|
3260
3261
|
size: "auto"
|
|
3261
3262
|
}, null, 8, ["class", "iconName"])
|
|
3262
|
-
], 10,
|
|
3263
|
+
], 10, Bo);
|
|
3263
3264
|
};
|
|
3264
3265
|
}
|
|
3265
|
-
}),
|
|
3266
|
+
}), No = /* @__PURE__ */ h({
|
|
3266
3267
|
inheritAttrs: !1,
|
|
3267
3268
|
__name: "PanelDynamic",
|
|
3268
3269
|
props: {
|
|
@@ -3313,7 +3314,7 @@ const Ro = ["disabled"], To = /* @__PURE__ */ h({
|
|
|
3313
3314
|
};
|
|
3314
3315
|
};
|
|
3315
3316
|
return (m, v) => {
|
|
3316
|
-
const c = y("survey-string"), q = y("sv-paneldynamic-add-btn"), f = y("survey-paneldynamicprogress"), k = y("sv-paneldynamic-remove-btn"),
|
|
3317
|
+
const c = y("survey-string"), q = y("sv-paneldynamic-add-btn"), f = y("survey-paneldynamicprogress"), k = y("sv-paneldynamic-remove-btn"), _ = y("survey-paneldynamicprogress-v2");
|
|
3317
3318
|
return i(), u("div", {
|
|
3318
3319
|
class: a(m.question.cssClasses.root),
|
|
3319
3320
|
ref_key: "root",
|
|
@@ -3338,7 +3339,7 @@ const Ro = ["disabled"], To = /* @__PURE__ */ h({
|
|
|
3338
3339
|
}, [
|
|
3339
3340
|
p("div", {
|
|
3340
3341
|
class: a(m.question.cssClasses.progressBar),
|
|
3341
|
-
style:
|
|
3342
|
+
style: I({ width: m.question.progress }),
|
|
3342
3343
|
role: "progressbar"
|
|
3343
3344
|
}, null, 6)
|
|
3344
3345
|
], 2)) : d("", !0),
|
|
@@ -3349,7 +3350,7 @@ const Ro = ["disabled"], To = /* @__PURE__ */ h({
|
|
|
3349
3350
|
p("div", {
|
|
3350
3351
|
class: a(m.question.cssClasses.panelsContainer)
|
|
3351
3352
|
}, [
|
|
3352
|
-
(i(!0), u(
|
|
3353
|
+
(i(!0), u(D, null, B(m.question.renderedPanels, (b, N) => (i(), u(D, {
|
|
3353
3354
|
key: b.id
|
|
3354
3355
|
}, [
|
|
3355
3356
|
p("div", {
|
|
@@ -3375,14 +3376,14 @@ const Ro = ["disabled"], To = /* @__PURE__ */ h({
|
|
|
3375
3376
|
key: 4,
|
|
3376
3377
|
data: { question: m.question }
|
|
3377
3378
|
}, null, 8, ["data"])) : d("", !0),
|
|
3378
|
-
m.question.showNavigation ? (i(), g(
|
|
3379
|
+
m.question.showNavigation ? (i(), g(_, {
|
|
3379
3380
|
key: 5,
|
|
3380
3381
|
question: m.question
|
|
3381
3382
|
}, null, 8, ["question"])) : d("", !0)
|
|
3382
3383
|
], 2);
|
|
3383
3384
|
};
|
|
3384
3385
|
}
|
|
3385
|
-
}),
|
|
3386
|
+
}), Po = /* @__PURE__ */ h({
|
|
3386
3387
|
__name: "PanelDynamicProgress",
|
|
3387
3388
|
props: {
|
|
3388
3389
|
question: {}
|
|
@@ -3410,7 +3411,7 @@ const Ro = ["disabled"], To = /* @__PURE__ */ h({
|
|
|
3410
3411
|
}, [
|
|
3411
3412
|
p("div", {
|
|
3412
3413
|
class: a(e.question.cssClasses.progressBar),
|
|
3413
|
-
style:
|
|
3414
|
+
style: I({ width: e.question.progress }),
|
|
3414
3415
|
role: "progressbar"
|
|
3415
3416
|
}, null, 6)
|
|
3416
3417
|
], 2)) : d("", !0),
|
|
@@ -3428,7 +3429,7 @@ const Ro = ["disabled"], To = /* @__PURE__ */ h({
|
|
|
3428
3429
|
], 2);
|
|
3429
3430
|
};
|
|
3430
3431
|
}
|
|
3431
|
-
}),
|
|
3432
|
+
}), Ao = /* @__PURE__ */ h({
|
|
3432
3433
|
__name: "PanelDynamicProgressV2",
|
|
3433
3434
|
props: {
|
|
3434
3435
|
question: {}
|
|
@@ -3449,7 +3450,7 @@ const Ro = ["disabled"], To = /* @__PURE__ */ h({
|
|
|
3449
3450
|
}, [
|
|
3450
3451
|
p("div", {
|
|
3451
3452
|
class: a(s.question.cssClasses.progressBar),
|
|
3452
|
-
style:
|
|
3453
|
+
style: I({ width: s.question.progress }),
|
|
3453
3454
|
role: "progressbar"
|
|
3454
3455
|
}, null, 6)
|
|
3455
3456
|
], 2)) : d("", !0),
|
|
@@ -3466,11 +3467,11 @@ const Ro = ["disabled"], To = /* @__PURE__ */ h({
|
|
|
3466
3467
|
}
|
|
3467
3468
|
});
|
|
3468
3469
|
function Y(r) {
|
|
3469
|
-
return
|
|
3470
|
+
return S(
|
|
3470
3471
|
() => r.item && r.item.data.question || r.data.question
|
|
3471
3472
|
);
|
|
3472
3473
|
}
|
|
3473
|
-
const
|
|
3474
|
+
const Mo = /* @__PURE__ */ h({
|
|
3474
3475
|
__name: "PaneldynamicAddBtn",
|
|
3475
3476
|
props: {
|
|
3476
3477
|
item: {},
|
|
@@ -3498,7 +3499,7 @@ const Ao = /* @__PURE__ */ h({
|
|
|
3498
3499
|
], 2)) : d("", !0);
|
|
3499
3500
|
};
|
|
3500
3501
|
}
|
|
3501
|
-
}),
|
|
3502
|
+
}), Eo = ["title"], Ho = /* @__PURE__ */ h({
|
|
3502
3503
|
__name: "PaneldynamicNextBtn",
|
|
3503
3504
|
props: {
|
|
3504
3505
|
item: {},
|
|
@@ -3519,10 +3520,10 @@ const Ao = /* @__PURE__ */ h({
|
|
|
3519
3520
|
iconName: w(n).cssClasses.progressBtnIcon,
|
|
3520
3521
|
size: "auto"
|
|
3521
3522
|
}, null, 8, ["iconName"])
|
|
3522
|
-
], 10,
|
|
3523
|
+
], 10, Eo);
|
|
3523
3524
|
};
|
|
3524
3525
|
}
|
|
3525
|
-
}),
|
|
3526
|
+
}), Wo = ["title"], Fo = /* @__PURE__ */ h({
|
|
3526
3527
|
__name: "PaneldynamicPrevBtn",
|
|
3527
3528
|
props: {
|
|
3528
3529
|
item: {},
|
|
@@ -3543,7 +3544,7 @@ const Ao = /* @__PURE__ */ h({
|
|
|
3543
3544
|
iconName: w(n).cssClasses.progressBtnIcon,
|
|
3544
3545
|
size: "auto"
|
|
3545
3546
|
}, null, 8, ["iconName"])
|
|
3546
|
-
], 10,
|
|
3547
|
+
], 10, Wo);
|
|
3547
3548
|
};
|
|
3548
3549
|
}
|
|
3549
3550
|
}), Vo = /* @__PURE__ */ h({
|
|
@@ -3553,7 +3554,7 @@ const Ao = /* @__PURE__ */ h({
|
|
|
3553
3554
|
data: {}
|
|
3554
3555
|
},
|
|
3555
3556
|
setup(r) {
|
|
3556
|
-
const s = r, n = Y(s), e =
|
|
3557
|
+
const s = r, n = Y(s), e = S(
|
|
3557
3558
|
() => s.item && s.item.data.panel || s.data.panel
|
|
3558
3559
|
), o = (t) => {
|
|
3559
3560
|
n.value.isInputReadOnly || n.value.removePanelUI(t);
|
|
@@ -3578,7 +3579,7 @@ const Ao = /* @__PURE__ */ h({
|
|
|
3578
3579
|
], 2);
|
|
3579
3580
|
};
|
|
3580
3581
|
}
|
|
3581
|
-
}),
|
|
3582
|
+
}), Oo = /* @__PURE__ */ h({
|
|
3582
3583
|
__name: "PaneldynamicProgressText",
|
|
3583
3584
|
props: {
|
|
3584
3585
|
item: {},
|
|
@@ -3590,7 +3591,7 @@ const Ao = /* @__PURE__ */ h({
|
|
|
3590
3591
|
class: a(w(n).cssClasses.progressText)
|
|
3591
3592
|
}, R(w(n).progressText), 3));
|
|
3592
3593
|
}
|
|
3593
|
-
}),
|
|
3594
|
+
}), zo = ["id"], Uo = /* @__PURE__ */ h({
|
|
3594
3595
|
__name: "Errors",
|
|
3595
3596
|
props: {
|
|
3596
3597
|
element: {},
|
|
@@ -3607,22 +3608,22 @@ const Ao = /* @__PURE__ */ h({
|
|
|
3607
3608
|
ref_key: "root",
|
|
3608
3609
|
ref: s
|
|
3609
3610
|
}, [
|
|
3610
|
-
(i(!0), u(
|
|
3611
|
+
(i(!0), u(D, null, B(n.element.errors, (o, t) => (i(), g(T(n.element.survey.questionErrorComponent), {
|
|
3611
3612
|
element: n.element,
|
|
3612
3613
|
key: "error_" + t,
|
|
3613
3614
|
errorKey: "error_" + t,
|
|
3614
3615
|
error: o,
|
|
3615
3616
|
cssClasses: n.element.cssClasses
|
|
3616
3617
|
}, null, 8, ["element", "errorKey", "error", "cssClasses"]))), 128))
|
|
3617
|
-
], 10,
|
|
3618
|
+
], 10, zo)) : d("", !0);
|
|
3618
3619
|
}
|
|
3619
|
-
}),
|
|
3620
|
+
}), Ko = { key: 0 }, Qo = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], jo = /* @__PURE__ */ h({
|
|
3620
3621
|
__name: "QuestionComment",
|
|
3621
3622
|
props: {
|
|
3622
3623
|
question: {}
|
|
3623
3624
|
},
|
|
3624
3625
|
setup(r) {
|
|
3625
|
-
return (s, n) => s.question.isReadOnlyRenderDiv() ? (i(), u("div",
|
|
3626
|
+
return (s, n) => s.question.isReadOnlyRenderDiv() ? (i(), u("div", Ko, R(s.question.comment), 1)) : (i(), u("textarea", {
|
|
3626
3627
|
key: 1,
|
|
3627
3628
|
id: s.question.commentId,
|
|
3628
3629
|
readonly: s.question.isInputReadOnly,
|
|
@@ -3633,16 +3634,16 @@ const Ao = /* @__PURE__ */ h({
|
|
|
3633
3634
|
placeholder: s.question.renderedCommentPlaceholder,
|
|
3634
3635
|
"aria-label": s.question.ariaLabel || s.question.a11y_input_ariaLabel,
|
|
3635
3636
|
"aria-required": s.question.ariaRequired || s.question.a11y_input_ariaRequired,
|
|
3636
|
-
style:
|
|
3637
|
+
style: I({ resize: s.question.resizeStyle }),
|
|
3637
3638
|
onChange: n[0] || (n[0] = (e) => {
|
|
3638
3639
|
s.question.onCommentChange(e);
|
|
3639
3640
|
}),
|
|
3640
3641
|
onInput: n[1] || (n[1] = (e) => {
|
|
3641
3642
|
s.question.onCommentInput(e);
|
|
3642
3643
|
})
|
|
3643
|
-
}, null, 46,
|
|
3644
|
+
}, null, 46, Qo));
|
|
3644
3645
|
}
|
|
3645
|
-
}),
|
|
3646
|
+
}), Go = /* @__PURE__ */ h({
|
|
3646
3647
|
__name: "TitleElement",
|
|
3647
3648
|
props: {
|
|
3648
3649
|
element: {},
|
|
@@ -3666,7 +3667,7 @@ const Ao = /* @__PURE__ */ h({
|
|
|
3666
3667
|
s(l);
|
|
3667
3668
|
})
|
|
3668
3669
|
}, {
|
|
3669
|
-
default:
|
|
3670
|
+
default: V(() => [
|
|
3670
3671
|
n.element.hasTitleActions ? d("", !0) : (i(), g(o, {
|
|
3671
3672
|
key: 0,
|
|
3672
3673
|
element: n.element,
|
|
@@ -3682,7 +3683,7 @@ const Ao = /* @__PURE__ */ h({
|
|
|
3682
3683
|
}, 40, ["class", "aria-label", "id", "tabindex", "aria-expanded", "role"])) : d("", !0);
|
|
3683
3684
|
};
|
|
3684
3685
|
}
|
|
3685
|
-
}),
|
|
3686
|
+
}), Jo = { key: 3 }, Xo = { key: 5 }, Yo = { key: 7 }, Zo = /* @__PURE__ */ h({
|
|
3686
3687
|
inheritAttrs: !1,
|
|
3687
3688
|
__name: "TitleContent",
|
|
3688
3689
|
props: {
|
|
@@ -3690,12 +3691,12 @@ const Ao = /* @__PURE__ */ h({
|
|
|
3690
3691
|
css: {}
|
|
3691
3692
|
},
|
|
3692
3693
|
setup(r) {
|
|
3693
|
-
const s = r, n =
|
|
3694
|
+
const s = r, n = S(
|
|
3694
3695
|
() => (s.element.isPanel ? s.element.cssClasses.panel : s.element.cssClasses) || {}
|
|
3695
3696
|
);
|
|
3696
3697
|
return (e, o) => {
|
|
3697
3698
|
const t = y("survey-string");
|
|
3698
|
-
return i(), u(
|
|
3699
|
+
return i(), u(D, null, [
|
|
3699
3700
|
e.element.isTitleRenderedAsString ? (i(), g(t, {
|
|
3700
3701
|
key: 0,
|
|
3701
3702
|
locString: e.element.locTitle
|
|
@@ -3711,18 +3712,18 @@ const Ao = /* @__PURE__ */ h({
|
|
|
3711
3712
|
class: a(e.element.cssTitleNumber),
|
|
3712
3713
|
"aria-hidden": !0
|
|
3713
3714
|
}, R(e.element.no), 3)) : d("", !0),
|
|
3714
|
-
!e.element.isTitleRenderedAsString && e.element.no ? (i(), u("span",
|
|
3715
|
+
!e.element.isTitleRenderedAsString && e.element.no ? (i(), u("span", Jo, "\xA0")) : d("", !0),
|
|
3715
3716
|
!e.element.isTitleRenderedAsString && e.element.isRequireTextBeforeTitle ? (i(), u("span", {
|
|
3716
3717
|
key: 4,
|
|
3717
3718
|
class: a(n.value.requiredText),
|
|
3718
3719
|
"aria-hidden": !0
|
|
3719
3720
|
}, R(e.element.requiredText), 3)) : d("", !0),
|
|
3720
|
-
!e.element.isTitleRenderedAsString && e.element.isRequireTextBeforeTitle ? (i(), u("span",
|
|
3721
|
+
!e.element.isTitleRenderedAsString && e.element.isRequireTextBeforeTitle ? (i(), u("span", Xo, "\xA0")) : d("", !0),
|
|
3721
3722
|
e.element.isTitleRenderedAsString ? d("", !0) : (i(), g(t, {
|
|
3722
3723
|
key: 6,
|
|
3723
3724
|
locString: e.element.locTitle
|
|
3724
3725
|
}, null, 8, ["locString"])),
|
|
3725
|
-
!e.element.isTitleRenderedAsString && e.element.isRequireTextAfterTitle ? (i(), u("span",
|
|
3726
|
+
!e.element.isTitleRenderedAsString && e.element.isRequireTextAfterTitle ? (i(), u("span", Yo, "\xA0")) : d("", !0),
|
|
3726
3727
|
!e.element.isTitleRenderedAsString && e.element.isRequireTextAfterTitle ? (i(), u("span", {
|
|
3727
3728
|
key: 8,
|
|
3728
3729
|
class: a(n.value.requiredText),
|
|
@@ -3731,18 +3732,18 @@ const Ao = /* @__PURE__ */ h({
|
|
|
3731
3732
|
], 64);
|
|
3732
3733
|
};
|
|
3733
3734
|
}
|
|
3734
|
-
}),
|
|
3735
|
+
}), xo = { class: "sv-title-actions" }, et = { class: "sv-title-actions__title" }, st = /* @__PURE__ */ h({
|
|
3735
3736
|
__name: "TitleActions",
|
|
3736
3737
|
props: {
|
|
3737
3738
|
element: {},
|
|
3738
3739
|
css: {}
|
|
3739
3740
|
},
|
|
3740
3741
|
setup(r) {
|
|
3741
|
-
const s = r, n =
|
|
3742
|
+
const s = r, n = S(() => s.element.getTitleToolbar());
|
|
3742
3743
|
return (e, o) => {
|
|
3743
3744
|
const t = y("survey-string"), l = y("survey-element-title-content"), m = y("sv-action-bar");
|
|
3744
|
-
return i(), u("div",
|
|
3745
|
-
p("span",
|
|
3745
|
+
return i(), u("div", xo, [
|
|
3746
|
+
p("span", et, [
|
|
3746
3747
|
e.element.isPage ? (i(), g(t, {
|
|
3747
3748
|
key: 0,
|
|
3748
3749
|
locString: e.element.locTitle
|
|
@@ -3762,15 +3763,15 @@ const Ao = /* @__PURE__ */ h({
|
|
|
3762
3763
|
for (const [e, o] of s)
|
|
3763
3764
|
n[e] = o;
|
|
3764
3765
|
return n;
|
|
3765
|
-
},
|
|
3766
|
-
|
|
3766
|
+
}, nt = {}, ot = { class: "sv-brand-info" }, tt = /* @__PURE__ */ Se('<a class="sv-brand-info__logo" href="https://surveyjs.io/?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=landing_page"><img src="https://surveyjs.io/Content/Images/poweredby.svg"></a><div class="sv-brand-info__text"> Try and see how easy it is to <a href="https://surveyjs.io/create-survey?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=create_survey">create a survey</a></div><div class="sv-brand-info__terms"><a href="https://surveyjs.io/TermsOfUse">Terms of Use & Privacy Statement</a></div>', 3), it = [
|
|
3767
|
+
tt
|
|
3767
3768
|
];
|
|
3768
|
-
function
|
|
3769
|
-
return i(), u("div",
|
|
3769
|
+
function rt(r, s) {
|
|
3770
|
+
return i(), u("div", ot, it);
|
|
3770
3771
|
}
|
|
3771
|
-
const
|
|
3772
|
-
|
|
3773
|
-
],
|
|
3772
|
+
const lt = /* @__PURE__ */ he(nt, [["render", rt]]), at = /* @__PURE__ */ p("use", null, null, -1), ut = [
|
|
3773
|
+
at
|
|
3774
|
+
], dt = /* @__PURE__ */ h({
|
|
3774
3775
|
__name: "SvgIcon",
|
|
3775
3776
|
props: {
|
|
3776
3777
|
size: {},
|
|
@@ -3781,7 +3782,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
3781
3782
|
},
|
|
3782
3783
|
setup(r) {
|
|
3783
3784
|
const s = r, n = $(), e = () => {
|
|
3784
|
-
|
|
3785
|
+
Pe(
|
|
3785
3786
|
s.size,
|
|
3786
3787
|
s.width,
|
|
3787
3788
|
s.height,
|
|
@@ -3799,9 +3800,9 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
3799
3800
|
ref: n,
|
|
3800
3801
|
class: "sv-svg-icon",
|
|
3801
3802
|
role: "img"
|
|
3802
|
-
},
|
|
3803
|
+
}, ut, 512));
|
|
3803
3804
|
}
|
|
3804
|
-
}),
|
|
3805
|
+
}), mt = /* @__PURE__ */ h({
|
|
3805
3806
|
__name: "QuestionError",
|
|
3806
3807
|
props: {
|
|
3807
3808
|
errorKey: {},
|
|
@@ -3831,7 +3832,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
3831
3832
|
]);
|
|
3832
3833
|
};
|
|
3833
3834
|
}
|
|
3834
|
-
}),
|
|
3835
|
+
}), ct = /* @__PURE__ */ h({
|
|
3835
3836
|
__name: "ActionBar",
|
|
3836
3837
|
props: {
|
|
3837
3838
|
model: {},
|
|
@@ -3842,7 +3843,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
3842
3843
|
const s = r, n = $(null), e = (t) => {
|
|
3843
3844
|
s.handleClick && t.stopPropagation();
|
|
3844
3845
|
};
|
|
3845
|
-
|
|
3846
|
+
L(() => s.model);
|
|
3846
3847
|
const o = le(() => s.model.renderedActions);
|
|
3847
3848
|
return M(() => {
|
|
3848
3849
|
!s.model.hasActions || s.model.initResponsivityManager(n.value);
|
|
@@ -3857,46 +3858,46 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
3857
3858
|
class: a(t.model.getRootCss()),
|
|
3858
3859
|
onClick: e
|
|
3859
3860
|
}, [
|
|
3860
|
-
(i(!0), u(
|
|
3861
|
+
(i(!0), u(D, null, B(w(o), (v) => (i(), g(m, {
|
|
3861
3862
|
key: v.id,
|
|
3862
3863
|
item: v
|
|
3863
3864
|
}, null, 8, ["item"]))), 128))
|
|
3864
3865
|
], 2)) : d("", !0);
|
|
3865
3866
|
};
|
|
3866
3867
|
}
|
|
3867
|
-
}),
|
|
3868
|
+
}), pt = ["id"], vt = { class: "sv-action__content" }, qt = /* @__PURE__ */ h({
|
|
3868
3869
|
__name: "Action",
|
|
3869
3870
|
props: {
|
|
3870
3871
|
item: {}
|
|
3871
3872
|
},
|
|
3872
3873
|
setup(r) {
|
|
3873
|
-
const s = r, n =
|
|
3874
|
+
const s = r, n = S(
|
|
3874
3875
|
() => s.item.component || "sv-action-bar-item"
|
|
3875
3876
|
);
|
|
3876
|
-
return
|
|
3877
|
+
return L(() => s.item), (e, o) => {
|
|
3877
3878
|
const t = y("sv-action-bar-separator");
|
|
3878
3879
|
return i(), u("div", {
|
|
3879
3880
|
class: a(e.item.getActionRootCss()),
|
|
3880
3881
|
id: e.item.id
|
|
3881
3882
|
}, [
|
|
3882
|
-
p("div",
|
|
3883
|
+
p("div", vt, [
|
|
3883
3884
|
e.item.needSeparator ? (i(), g(t, { key: 0 })) : d("", !0),
|
|
3884
3885
|
(i(), g(T(n.value), { item: e.item }, null, 8, ["item"]))
|
|
3885
3886
|
])
|
|
3886
|
-
], 10,
|
|
3887
|
+
], 10, pt);
|
|
3887
3888
|
};
|
|
3888
3889
|
}
|
|
3889
|
-
}),
|
|
3890
|
+
}), yt = ["disabled", "title", "aria-checked", "aria-expanded", "role"], gt = {
|
|
3890
3891
|
inheritAttrs: !1
|
|
3891
|
-
},
|
|
3892
|
-
...
|
|
3892
|
+
}, ht = /* @__PURE__ */ h({
|
|
3893
|
+
...gt,
|
|
3893
3894
|
__name: "ActionBarItem",
|
|
3894
3895
|
props: {
|
|
3895
3896
|
item: {}
|
|
3896
3897
|
},
|
|
3897
3898
|
setup(r) {
|
|
3898
3899
|
const s = r;
|
|
3899
|
-
return
|
|
3900
|
+
return L(() => s.item), (n, e) => {
|
|
3900
3901
|
const o = y("sv-svg-icon"), t = X("key2click");
|
|
3901
3902
|
return P((i(), u("button", {
|
|
3902
3903
|
class: a(n.item.getActionBarItemCss()),
|
|
@@ -3924,33 +3925,33 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
3924
3925
|
key: 1,
|
|
3925
3926
|
class: a(n.item.getActionBarItemTitleCss())
|
|
3926
3927
|
}, R(n.item.title), 3)) : d("", !0)
|
|
3927
|
-
], 42,
|
|
3928
|
+
], 42, yt)), [
|
|
3928
3929
|
[t, { processEsc: !1, disableTabStop: n.item.disableTabStop }]
|
|
3929
3930
|
]);
|
|
3930
3931
|
};
|
|
3931
3932
|
}
|
|
3932
|
-
}),
|
|
3933
|
+
}), Ct = ["disabled", "title", "role"], bt = {
|
|
3933
3934
|
inheritAttrs: !1
|
|
3934
|
-
},
|
|
3935
|
-
...
|
|
3935
|
+
}, kt = /* @__PURE__ */ h({
|
|
3936
|
+
...bt,
|
|
3936
3937
|
__name: "ActionBarItemDropdown",
|
|
3937
3938
|
props: {
|
|
3938
3939
|
item: {}
|
|
3939
3940
|
},
|
|
3940
3941
|
setup(r) {
|
|
3941
|
-
const s = r, n =
|
|
3942
|
+
const s = r, n = Me;
|
|
3942
3943
|
let e;
|
|
3943
|
-
return
|
|
3944
|
+
return L(
|
|
3944
3945
|
() => s.item,
|
|
3945
3946
|
(o) => {
|
|
3946
|
-
e = new
|
|
3947
|
+
e = new Ae(o);
|
|
3947
3948
|
},
|
|
3948
3949
|
() => {
|
|
3949
3950
|
e.dispose();
|
|
3950
3951
|
}
|
|
3951
3952
|
), (o, t) => {
|
|
3952
3953
|
const l = y("sv-svg-icon"), m = y("sv-popup"), v = X("key2click");
|
|
3953
|
-
return i(), u(
|
|
3954
|
+
return i(), u(D, null, [
|
|
3954
3955
|
P((i(), u("button", {
|
|
3955
3956
|
type: "button",
|
|
3956
3957
|
class: a(o.item.getActionBarItemCss()),
|
|
@@ -3975,7 +3976,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
3975
3976
|
key: 1,
|
|
3976
3977
|
class: a(o.item.getActionBarItemTitleCss())
|
|
3977
3978
|
}, R(o.item.title), 3)) : d("", !0)
|
|
3978
|
-
], 42,
|
|
3979
|
+
], 42, Ct)), [
|
|
3979
3980
|
[v, { processEsc: !1, disableTabStop: o.item.disableTabStop }]
|
|
3980
3981
|
]),
|
|
3981
3982
|
C(m, {
|
|
@@ -3985,18 +3986,18 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
3985
3986
|
], 64);
|
|
3986
3987
|
};
|
|
3987
3988
|
}
|
|
3988
|
-
}),
|
|
3989
|
+
}), ft = /* @__PURE__ */ h({
|
|
3989
3990
|
__name: "ActionBarSeparator",
|
|
3990
3991
|
props: {
|
|
3991
3992
|
item: {}
|
|
3992
3993
|
},
|
|
3993
3994
|
setup(r) {
|
|
3994
|
-
const s = r, n =
|
|
3995
|
+
const s = r, n = S(() => s.item && s.item.innerCss);
|
|
3995
3996
|
return (e, o) => (i(), u("div", {
|
|
3996
3997
|
class: a(["sv-action-bar-separator", n.value])
|
|
3997
3998
|
}, null, 2));
|
|
3998
3999
|
}
|
|
3999
|
-
}),
|
|
4000
|
+
}), wt = ["aria-label", "placeholder", "value"], It = ["aria-label"], St = ["id"], Rt = /* @__PURE__ */ h({
|
|
4000
4001
|
__name: "List",
|
|
4001
4002
|
props: {
|
|
4002
4003
|
model: {}
|
|
@@ -4011,7 +4012,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4011
4012
|
}, t = (l) => {
|
|
4012
4013
|
s.model.onMouseMove(l);
|
|
4013
4014
|
};
|
|
4014
|
-
return
|
|
4015
|
+
return L(() => s.model), M(() => {
|
|
4015
4016
|
s.model.initListContainerHtmlElement(n.value);
|
|
4016
4017
|
}), (l, m) => {
|
|
4017
4018
|
const v = y("sv-svg-icon"), c = y("sv-list-item");
|
|
@@ -4040,7 +4041,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4040
4041
|
value: l.model.filterString,
|
|
4041
4042
|
onChange: e,
|
|
4042
4043
|
onKeyup: o
|
|
4043
|
-
}, null, 42,
|
|
4044
|
+
}, null, 42, wt),
|
|
4044
4045
|
l.model.showSearchClearButton && !!l.model.filterString ? (i(), u("button", {
|
|
4045
4046
|
key: 0,
|
|
4046
4047
|
onClick: m[0] || (m[0] = (q) => {
|
|
@@ -4060,7 +4061,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4060
4061
|
p("div", {
|
|
4061
4062
|
class: a(l.model.cssClasses.emptyText),
|
|
4062
4063
|
"aria-label": l.model.emptyMessage
|
|
4063
|
-
}, R(l.model.emptyMessage), 11,
|
|
4064
|
+
}, R(l.model.emptyMessage), 11, It)
|
|
4064
4065
|
], 2), [
|
|
4065
4066
|
[E, l.model.isEmpty]
|
|
4066
4067
|
]),
|
|
@@ -4077,28 +4078,28 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4077
4078
|
l.model.onKeyDown(q);
|
|
4078
4079
|
})
|
|
4079
4080
|
}, [
|
|
4080
|
-
(i(!0), u(
|
|
4081
|
+
(i(!0), u(D, null, B(l.model.renderedActions, (q) => (i(), g(c, {
|
|
4081
4082
|
item: q,
|
|
4082
4083
|
model: l.model,
|
|
4083
4084
|
key: q.id
|
|
4084
4085
|
}, null, 8, ["item", "model"]))), 128))
|
|
4085
|
-
], 42,
|
|
4086
|
+
], 42, St)), [
|
|
4086
4087
|
[E, !l.model.isEmpty]
|
|
4087
4088
|
]) : d("", !0)
|
|
4088
4089
|
], 2);
|
|
4089
4090
|
};
|
|
4090
4091
|
}
|
|
4091
|
-
}),
|
|
4092
|
+
}), Tt = ["aria-selected", "id", "tabindex"], $t = ["title"], _t = /* @__PURE__ */ h({
|
|
4092
4093
|
__name: "ListItem",
|
|
4093
4094
|
props: {
|
|
4094
4095
|
model: {},
|
|
4095
4096
|
item: {}
|
|
4096
4097
|
},
|
|
4097
4098
|
setup(r) {
|
|
4098
|
-
const s = r, n =
|
|
4099
|
+
const s = r, n = S(() => s.item.elementId), e = (o) => {
|
|
4099
4100
|
s.model.onItemClick(s.item), o.stopPropagation();
|
|
4100
4101
|
};
|
|
4101
|
-
return
|
|
4102
|
+
return L(() => s.item), M(() => {
|
|
4102
4103
|
setTimeout(() => {
|
|
4103
4104
|
s.model.onLastItemRended(s.item);
|
|
4104
4105
|
});
|
|
@@ -4119,7 +4120,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4119
4120
|
class: a(o.model.cssClasses.itemSeparator)
|
|
4120
4121
|
}, null, 2)) : d("", !0),
|
|
4121
4122
|
p("div", {
|
|
4122
|
-
style:
|
|
4123
|
+
style: I({ paddingInlineStart: o.model.getItemIndent(o.item) }),
|
|
4123
4124
|
class: a(o.model.cssClasses.itemBody),
|
|
4124
4125
|
title: o.item.locTitle.calculatedText
|
|
4125
4126
|
}, [
|
|
@@ -4137,14 +4138,14 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4137
4138
|
key: 2,
|
|
4138
4139
|
item: o.item
|
|
4139
4140
|
}, null, 8, ["item"])) : d("", !0)
|
|
4140
|
-
], 14,
|
|
4141
|
-
], 42,
|
|
4141
|
+
], 14, $t)
|
|
4142
|
+
], 42, Tt)), [
|
|
4142
4143
|
[E, o.model.isItemVisible(o.item)],
|
|
4143
4144
|
[v, { processEsc: !1, disableTabStop: o.item.disableTabStop }]
|
|
4144
4145
|
]);
|
|
4145
4146
|
};
|
|
4146
4147
|
}
|
|
4147
|
-
}),
|
|
4148
|
+
}), Dt = /* @__PURE__ */ h({
|
|
4148
4149
|
__name: "Popup",
|
|
4149
4150
|
props: {
|
|
4150
4151
|
getTarget: { type: Function },
|
|
@@ -4155,10 +4156,10 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4155
4156
|
return K(
|
|
4156
4157
|
() => s.model,
|
|
4157
4158
|
(o) => {
|
|
4158
|
-
n.value && n.value.dispose(), n.value =
|
|
4159
|
+
n.value && n.value.dispose(), n.value = Ee(o, void 0);
|
|
4159
4160
|
},
|
|
4160
4161
|
{ immediate: !0 }
|
|
4161
|
-
),
|
|
4162
|
+
), L(() => n.value), M(() => {
|
|
4162
4163
|
const o = e.value;
|
|
4163
4164
|
n.value.setComponentElement(
|
|
4164
4165
|
o,
|
|
@@ -4176,13 +4177,13 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4176
4177
|
], 512);
|
|
4177
4178
|
};
|
|
4178
4179
|
}
|
|
4179
|
-
}),
|
|
4180
|
+
}), Bt = { class: "sv-popup__shadow" }, Lt = { class: "sv-popup__body-content" }, Nt = {
|
|
4180
4181
|
key: 0,
|
|
4181
4182
|
class: "sv-popup__body-header"
|
|
4182
|
-
},
|
|
4183
|
+
}, Pt = { class: "sv-popup__scrolling-content" }, At = { class: "sv-popup__content" }, Mt = {
|
|
4183
4184
|
key: 1,
|
|
4184
4185
|
class: "sv-popup__body-footer"
|
|
4185
|
-
},
|
|
4186
|
+
}, Et = /* @__PURE__ */ h({
|
|
4186
4187
|
__name: "PopupContainer",
|
|
4187
4188
|
props: {
|
|
4188
4189
|
model: {}
|
|
@@ -4191,7 +4192,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4191
4192
|
const s = r, n = (e) => {
|
|
4192
4193
|
e.stopPropagation();
|
|
4193
4194
|
};
|
|
4194
|
-
return
|
|
4195
|
+
return L(() => s.model), te(() => {
|
|
4195
4196
|
const e = s.model;
|
|
4196
4197
|
e.isVisible && !e.isPositionSet && s.model.updateOnShowing();
|
|
4197
4198
|
}), M(() => {
|
|
@@ -4210,7 +4211,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4210
4211
|
}, [
|
|
4211
4212
|
p("div", {
|
|
4212
4213
|
class: "sv-popup__container",
|
|
4213
|
-
style:
|
|
4214
|
+
style: I({
|
|
4214
4215
|
left: e.model.left,
|
|
4215
4216
|
top: e.model.top,
|
|
4216
4217
|
height: e.model.height,
|
|
@@ -4219,19 +4220,19 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4219
4220
|
}),
|
|
4220
4221
|
onClick: n
|
|
4221
4222
|
}, [
|
|
4222
|
-
p("div",
|
|
4223
|
+
p("div", Bt, [
|
|
4223
4224
|
e.model.showHeader ? (i(), g(T(e.model.popupHeaderTemplate), {
|
|
4224
4225
|
key: 0,
|
|
4225
4226
|
model: e.model
|
|
4226
4227
|
}, null, 8, ["model"])) : d("", !0),
|
|
4227
|
-
p("div",
|
|
4228
|
-
e.model.title ? (i(), u("div",
|
|
4229
|
-
p("div",
|
|
4230
|
-
p("div",
|
|
4228
|
+
p("div", Lt, [
|
|
4229
|
+
e.model.title ? (i(), u("div", Nt, R(e.model.title), 1)) : d("", !0),
|
|
4230
|
+
p("div", Pt, [
|
|
4231
|
+
p("div", At, [
|
|
4231
4232
|
(i(), g(T(e.model.contentComponentName), z(ne(e.model.contentComponentData)), null, 16))
|
|
4232
4233
|
])
|
|
4233
4234
|
]),
|
|
4234
|
-
e.model.showFooter ? (i(), u("div",
|
|
4235
|
+
e.model.showFooter ? (i(), u("div", Mt, [
|
|
4235
4236
|
C(t, {
|
|
4236
4237
|
model: e.model.footerToolbar
|
|
4237
4238
|
}, null, 8, ["model"])
|
|
@@ -4244,7 +4245,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4244
4245
|
]);
|
|
4245
4246
|
};
|
|
4246
4247
|
}
|
|
4247
|
-
}),
|
|
4248
|
+
}), Ht = /* @__PURE__ */ h({
|
|
4248
4249
|
__name: "PopupPointer",
|
|
4249
4250
|
props: {
|
|
4250
4251
|
model: {}
|
|
@@ -4252,16 +4253,16 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4252
4253
|
setup(r) {
|
|
4253
4254
|
return (s, n) => (i(), u("span", {
|
|
4254
4255
|
class: "sv-popup__pointer",
|
|
4255
|
-
style:
|
|
4256
|
+
style: I({
|
|
4256
4257
|
left: s.model.pointerTarget.left,
|
|
4257
4258
|
top: s.model.pointerTarget.top
|
|
4258
4259
|
})
|
|
4259
4260
|
}, null, 4));
|
|
4260
4261
|
}
|
|
4261
|
-
}),
|
|
4262
|
+
}), Wt = {
|
|
4262
4263
|
key: 0,
|
|
4263
4264
|
class: "sv-components-column"
|
|
4264
|
-
},
|
|
4265
|
+
}, Ft = /* @__PURE__ */ h({
|
|
4265
4266
|
__name: "Container",
|
|
4266
4267
|
props: {
|
|
4267
4268
|
survey: {},
|
|
@@ -4269,17 +4270,17 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4269
4270
|
needRenderWrapper: {}
|
|
4270
4271
|
},
|
|
4271
4272
|
setup(r) {
|
|
4272
|
-
const s = r, n =
|
|
4273
|
+
const s = r, n = S(
|
|
4273
4274
|
() => s.survey.getContainerContent(s.container)
|
|
4274
4275
|
);
|
|
4275
|
-
return (e, o) => n.value.length > 0 ? (i(), u(
|
|
4276
|
-
e.needRenderWrapper ? (i(), u("div",
|
|
4277
|
-
(i(!0), u(
|
|
4276
|
+
return (e, o) => n.value.length > 0 ? (i(), u(D, { key: 0 }, [
|
|
4277
|
+
e.needRenderWrapper ? (i(), u("div", Wt, [
|
|
4278
|
+
(i(!0), u(D, null, B(n.value, (t, l) => (i(), g(T(t.component), {
|
|
4278
4279
|
survey: e.survey,
|
|
4279
4280
|
container: e.container,
|
|
4280
4281
|
model: t.data
|
|
4281
4282
|
}, null, 8, ["survey", "container", "model"]))), 256))
|
|
4282
|
-
])) : (i(!0), u(
|
|
4283
|
+
])) : (i(!0), u(D, { key: 1 }, B(n.value, (t, l) => (i(), g(T(t.component), {
|
|
4283
4284
|
survey: e.survey,
|
|
4284
4285
|
container: e.container,
|
|
4285
4286
|
model: t.data
|
|
@@ -4294,13 +4295,13 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4294
4295
|
css: {}
|
|
4295
4296
|
},
|
|
4296
4297
|
setup(r) {
|
|
4297
|
-
const s = r, n =
|
|
4298
|
+
const s = r, n = S(() => s.survey.progressValue + "%"), e = (t) => de.getProgressTextInBarCss(t), o = (t) => de.getProgressTextUnderBarCss(t);
|
|
4298
4299
|
return (t, l) => (i(), u("div", {
|
|
4299
4300
|
class: a(t.survey.getProgressCssClasses(t.container))
|
|
4300
4301
|
}, [
|
|
4301
4302
|
p("div", {
|
|
4302
4303
|
class: a(t.survey.css.progressBar),
|
|
4303
|
-
style:
|
|
4304
|
+
style: I({ width: n.value }),
|
|
4304
4305
|
role: "progressbar",
|
|
4305
4306
|
"aria-valuemin": "0",
|
|
4306
4307
|
"aria-valuemax": "100",
|
|
@@ -4315,7 +4316,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4315
4316
|
}, R(t.survey.progressText), 3)
|
|
4316
4317
|
], 2));
|
|
4317
4318
|
}
|
|
4318
|
-
}), Vt = ["title"],
|
|
4319
|
+
}), Vt = ["title"], Ot = ["onClick", "data-page-number"], zt = ["title"], Ut = ["title"], Kt = ["title"], Qt = /* @__PURE__ */ h({
|
|
4319
4320
|
__name: "ProgressButtons",
|
|
4320
4321
|
props: {
|
|
4321
4322
|
survey: {},
|
|
@@ -4323,7 +4324,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4323
4324
|
container: {}
|
|
4324
4325
|
},
|
|
4325
4326
|
setup(r) {
|
|
4326
|
-
const s = r, n = $(!1), e = $(!1), o = $(!1), t = $(!0), l = $(), m =
|
|
4327
|
+
const s = r, n = $(!1), e = $(!1), o = $(!1), t = $(!0), l = $(), m = S(() => s.survey.css);
|
|
4327
4328
|
let v = null;
|
|
4328
4329
|
const c = (q) => {
|
|
4329
4330
|
let f = l.value;
|
|
@@ -4331,7 +4332,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4331
4332
|
};
|
|
4332
4333
|
return M(() => {
|
|
4333
4334
|
const q = l.value;
|
|
4334
|
-
v = new
|
|
4335
|
+
v = new He(s.model, q, {
|
|
4335
4336
|
onResize: (f) => {
|
|
4336
4337
|
t.value = f, e.value = !f;
|
|
4337
4338
|
},
|
|
@@ -4341,7 +4342,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4341
4342
|
onUpdateSettings: () => {
|
|
4342
4343
|
t.value = s.model.showItemTitles, o.value = !s.model.showItemTitles;
|
|
4343
4344
|
},
|
|
4344
|
-
container:
|
|
4345
|
+
container: S(() => s.container)
|
|
4345
4346
|
});
|
|
4346
4347
|
}), G(() => {
|
|
4347
4348
|
v.dispose();
|
|
@@ -4349,7 +4350,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4349
4350
|
const k = y("survey-string");
|
|
4350
4351
|
return i(), u("div", {
|
|
4351
4352
|
class: a(q.model.getRootCss(q.container)),
|
|
4352
|
-
style:
|
|
4353
|
+
style: I({ maxWidth: q.model.progressWidth }),
|
|
4353
4354
|
role: "progressbar",
|
|
4354
4355
|
"aria-valuemin": "0",
|
|
4355
4356
|
"aria-valuemax": "100",
|
|
@@ -4369,7 +4370,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4369
4370
|
}, [
|
|
4370
4371
|
p("div", {
|
|
4371
4372
|
class: a(q.model.getScrollButtonCss(n.value, !0)),
|
|
4372
|
-
onClick: f[0] || (f[0] = (
|
|
4373
|
+
onClick: f[0] || (f[0] = (_) => c(!0)),
|
|
4373
4374
|
role: "button"
|
|
4374
4375
|
}, null, 2),
|
|
4375
4376
|
p("div", {
|
|
@@ -4380,11 +4381,11 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4380
4381
|
p("ul", {
|
|
4381
4382
|
class: a(m.value.progressButtonsList)
|
|
4382
4383
|
}, [
|
|
4383
|
-
(i(!0), u(
|
|
4384
|
+
(i(!0), u(D, null, B(q.survey.visiblePages, (_, b) => (i(), u("li", {
|
|
4384
4385
|
key: "listelement" + b,
|
|
4385
4386
|
class: a(q.model.getListElementCss(b)),
|
|
4386
|
-
onClick: (N) => q.model.isListElementClickable(b) ? q.model.clickListElement(
|
|
4387
|
-
"data-page-number": q.model.getItemNumber(
|
|
4387
|
+
onClick: (N) => q.model.isListElementClickable(b) ? q.model.clickListElement(_) : null,
|
|
4388
|
+
"data-page-number": q.model.getItemNumber(_)
|
|
4388
4389
|
}, [
|
|
4389
4390
|
p("div", {
|
|
4390
4391
|
class: a(m.value.progressButtonsConnector)
|
|
@@ -4392,17 +4393,17 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4392
4393
|
t.value ? (i(), u("div", {
|
|
4393
4394
|
key: 0,
|
|
4394
4395
|
class: a(m.value.progressButtonsPageTitle),
|
|
4395
|
-
title:
|
|
4396
|
+
title: _.renderedNavigationTitle
|
|
4396
4397
|
}, [
|
|
4397
4398
|
C(k, {
|
|
4398
|
-
locString:
|
|
4399
|
+
locString: _.locNavigationTitle
|
|
4399
4400
|
}, null, 8, ["locString"])
|
|
4400
|
-
], 10,
|
|
4401
|
+
], 10, zt)) : d("", !0),
|
|
4401
4402
|
t.value ? (i(), u("div", {
|
|
4402
4403
|
key: 1,
|
|
4403
4404
|
class: a(m.value.progressButtonsPageDescription),
|
|
4404
|
-
title:
|
|
4405
|
-
}, R(
|
|
4405
|
+
title: _.locNavigationDescription.renderedHtml
|
|
4406
|
+
}, R(_.locNavigationDescription.renderedHtml), 11, Ut)) : d("", !0),
|
|
4406
4407
|
p("div", {
|
|
4407
4408
|
class: a(m.value.progressButtonsButton)
|
|
4408
4409
|
}, [
|
|
@@ -4412,14 +4413,14 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4412
4413
|
p("div", {
|
|
4413
4414
|
class: a(m.value.progressButtonsButtonContent)
|
|
4414
4415
|
}, null, 2),
|
|
4415
|
-
p("span", null, R(q.model.getItemNumber(
|
|
4416
|
+
p("span", null, R(q.model.getItemNumber(_)), 1)
|
|
4416
4417
|
], 2)
|
|
4417
|
-
], 10,
|
|
4418
|
+
], 10, Ot))), 128))
|
|
4418
4419
|
], 2)
|
|
4419
4420
|
], 2),
|
|
4420
4421
|
p("div", {
|
|
4421
4422
|
class: a(q.model.getScrollButtonCss(n.value, !1)),
|
|
4422
|
-
onClick: f[1] || (f[1] = (
|
|
4423
|
+
onClick: f[1] || (f[1] = (_) => c(!1)),
|
|
4423
4424
|
role: "button"
|
|
4424
4425
|
}, null, 2)
|
|
4425
4426
|
], 2),
|
|
@@ -4430,12 +4431,12 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4430
4431
|
p("div", {
|
|
4431
4432
|
class: a(q.survey.css.progressButtonsPageTitle),
|
|
4432
4433
|
title: q.model.footerText
|
|
4433
|
-
}, R(q.model.footerText), 11,
|
|
4434
|
+
}, R(q.model.footerText), 11, Kt)
|
|
4434
4435
|
], 2)) : d("", !0)
|
|
4435
4436
|
], 6);
|
|
4436
4437
|
};
|
|
4437
4438
|
}
|
|
4438
|
-
}),
|
|
4439
|
+
}), jt = /* @__PURE__ */ h({
|
|
4439
4440
|
__name: "ProgressToc",
|
|
4440
4441
|
props: {
|
|
4441
4442
|
survey: {},
|
|
@@ -4467,59 +4468,69 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4467
4468
|
], 2);
|
|
4468
4469
|
};
|
|
4469
4470
|
}
|
|
4470
|
-
}),
|
|
4471
|
+
}), Gt = { onsubmit: "return false;" }, Jt = {
|
|
4471
4472
|
key: 0,
|
|
4472
4473
|
class: "sv_custom_header"
|
|
4473
|
-
},
|
|
4474
|
+
}, Xt = { class: "sv-components-column sv-components-column--expandable" }, Yt = ["id"], Zt = { key: 2 }, xt = ["innerHTML"], ei = ["innerHTML"], si = ["innerHTML"], pe = /* @__PURE__ */ h({
|
|
4474
4475
|
__name: "Survey",
|
|
4475
4476
|
props: {
|
|
4476
4477
|
model: {},
|
|
4477
4478
|
survey: {}
|
|
4478
4479
|
},
|
|
4479
4480
|
setup(r) {
|
|
4480
|
-
const s = r, n = $(), e = $(""), o = $(1), t =
|
|
4481
|
-
const
|
|
4482
|
-
return
|
|
4483
|
-
}), l =
|
|
4484
|
-
const
|
|
4485
|
-
return !!t.value &&
|
|
4486
|
-
}, v =
|
|
4481
|
+
const s = r, n = $(), e = $(""), o = $(1), t = S(() => {
|
|
4482
|
+
const _ = s.survey ? s.survey : s.model;
|
|
4483
|
+
return Re(_);
|
|
4484
|
+
}), l = S(() => t.value.activePage ? t.value.activePage.id : ""), m = () => {
|
|
4485
|
+
const _ = l.value;
|
|
4486
|
+
return !!t.value && _ + o.value.toString();
|
|
4487
|
+
}, v = S(
|
|
4487
4488
|
() => t.value.showCompletedPage && t.value.state === "completed"
|
|
4488
|
-
), c =
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4489
|
+
), c = S(() => t.value.css), q = S(() => "page" + m()), f = () => v.value ? (e.value || (e.value = t.value.processedCompletedHtml), e.value) : "", k = (_) => {
|
|
4490
|
+
if (!!_) {
|
|
4491
|
+
var b = n.value;
|
|
4492
|
+
b && _.afterRenderSurvey(b), _.renderCallback = () => {
|
|
4493
|
+
var N, W;
|
|
4494
|
+
o.value++, (W = (N = ie()) == null ? void 0 : N.proxy) == null || W.$forceUpdate();
|
|
4495
|
+
}, _.startTimerFromUI();
|
|
4496
|
+
}
|
|
4497
|
+
};
|
|
4498
|
+
return L(
|
|
4499
|
+
() => t.value,
|
|
4500
|
+
(_, b) => {
|
|
4501
|
+
_ && b && k(_);
|
|
4502
|
+
},
|
|
4503
|
+
(_) => {
|
|
4504
|
+
_.stopTimer(), _.renderCallback = void 0;
|
|
4496
4505
|
}
|
|
4506
|
+
), M(() => {
|
|
4507
|
+
k(t.value);
|
|
4497
4508
|
}), O(() => {
|
|
4498
4509
|
t.value.stopTimer(), t.value.renderCallback = void 0;
|
|
4499
|
-
}), (
|
|
4500
|
-
const
|
|
4510
|
+
}), (_, b) => {
|
|
4511
|
+
const N = y("sv-svg-bundle"), W = y("survey-popup-modal"), F = y("survey-header"), Q = y("survey-page"), ue = y("sv-brand-info"), Ce = y("sv-notifier");
|
|
4501
4512
|
return i(), u("div", {
|
|
4502
4513
|
class: a(t.value.getRootCss()),
|
|
4503
|
-
style:
|
|
4514
|
+
style: I(t.value.themeVariables),
|
|
4504
4515
|
ref_key: "root",
|
|
4505
4516
|
ref: n
|
|
4506
4517
|
}, [
|
|
4507
|
-
t.value.needRenderIcons ? (i(), g(
|
|
4518
|
+
t.value.needRenderIcons ? (i(), g(N, { key: 0 })) : d("", !0),
|
|
4508
4519
|
p("div", {
|
|
4509
4520
|
class: a(t.value.wrapperFormCss)
|
|
4510
4521
|
}, [
|
|
4511
|
-
C(
|
|
4522
|
+
C(W),
|
|
4512
4523
|
t.value.renderBackgroundImage ? (i(), u("div", {
|
|
4513
4524
|
key: 0,
|
|
4514
4525
|
class: a(c.value.rootBackgroundImage),
|
|
4515
|
-
style:
|
|
4526
|
+
style: I(t.value.backgroundImageStyle)
|
|
4516
4527
|
}, null, 6)) : d("", !0),
|
|
4517
|
-
p("form",
|
|
4518
|
-
t.value.hasLogo ? d("", !0) : (i(), u("div",
|
|
4528
|
+
p("form", Gt, [
|
|
4529
|
+
t.value.hasLogo ? d("", !0) : (i(), u("div", Jt)),
|
|
4519
4530
|
p("div", {
|
|
4520
4531
|
class: a(c.value.container)
|
|
4521
4532
|
}, [
|
|
4522
|
-
t.value.headerView === "basic" ? (i(), g(
|
|
4533
|
+
t.value.headerView === "basic" ? (i(), g(F, {
|
|
4523
4534
|
key: 0,
|
|
4524
4535
|
survey: t.value
|
|
4525
4536
|
}, null, 8, ["survey"])) : d("", !0),
|
|
@@ -4537,7 +4548,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4537
4548
|
container: "left",
|
|
4538
4549
|
needRenderWrapper: !0
|
|
4539
4550
|
}, null, 8, ["survey"])),
|
|
4540
|
-
p("div",
|
|
4551
|
+
p("div", Xt, [
|
|
4541
4552
|
(i(), g(T("sv-components-container"), {
|
|
4542
4553
|
survey: t.value,
|
|
4543
4554
|
container: "center",
|
|
@@ -4545,7 +4556,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4545
4556
|
}, null, 8, ["survey"])),
|
|
4546
4557
|
p("div", {
|
|
4547
4558
|
class: a(t.value.bodyCss),
|
|
4548
|
-
style:
|
|
4559
|
+
style: I({ maxWidth: t.value.renderedWidth }),
|
|
4549
4560
|
id: l.value
|
|
4550
4561
|
}, [
|
|
4551
4562
|
(i(), g(T("sv-components-container"), {
|
|
@@ -4553,7 +4564,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4553
4564
|
container: "contentTop",
|
|
4554
4565
|
needRenderWrapper: !0
|
|
4555
4566
|
}, null, 8, ["survey"])),
|
|
4556
|
-
(i(), g(
|
|
4567
|
+
(i(), g(Q, {
|
|
4557
4568
|
key: q.value,
|
|
4558
4569
|
survey: t.value,
|
|
4559
4570
|
page: t.value.activePage,
|
|
@@ -4564,7 +4575,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4564
4575
|
container: "contentBottom",
|
|
4565
4576
|
needRenderWrapper: !0
|
|
4566
4577
|
}, null, 8, ["survey"]))
|
|
4567
|
-
], 14,
|
|
4578
|
+
], 14, Yt)
|
|
4568
4579
|
]),
|
|
4569
4580
|
(i(), g(T("sv-components-container"), {
|
|
4570
4581
|
survey: t.value,
|
|
@@ -4577,11 +4588,11 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4577
4588
|
container: "footer",
|
|
4578
4589
|
needRenderWrapper: !1
|
|
4579
4590
|
}, null, 8, ["survey"])),
|
|
4580
|
-
v.value ? (i(), u("div",
|
|
4591
|
+
v.value ? (i(), u("div", Zt, [
|
|
4581
4592
|
p("div", {
|
|
4582
4593
|
innerHTML: f(),
|
|
4583
4594
|
class: a(t.value.completedCss)
|
|
4584
|
-
}, null, 10,
|
|
4595
|
+
}, null, 10, xt),
|
|
4585
4596
|
(i(), g(T("sv-components-container"), {
|
|
4586
4597
|
survey: t.value,
|
|
4587
4598
|
container: "completePage",
|
|
@@ -4592,39 +4603,39 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4592
4603
|
key: 3,
|
|
4593
4604
|
class: a(t.value.completedBeforeCss),
|
|
4594
4605
|
innerHTML: t.value.processedCompletedBeforeHtml
|
|
4595
|
-
}, null, 10,
|
|
4606
|
+
}, null, 10, ei)) : d("", !0),
|
|
4596
4607
|
t.value.state === "loading" ? (i(), u("div", {
|
|
4597
4608
|
key: 4,
|
|
4598
4609
|
class: a(t.value.loadingBodyCss),
|
|
4599
4610
|
innerHTML: t.value.processedLoadingHtml
|
|
4600
|
-
}, null, 10,
|
|
4611
|
+
}, null, 10, si)) : d("", !0),
|
|
4601
4612
|
t.value.state === "empty" ? (i(), u("div", {
|
|
4602
4613
|
key: 5,
|
|
4603
4614
|
class: a(c.value.bodyEmpty)
|
|
4604
4615
|
}, R(t.value.emptySurveyText), 3)) : d("", !0)
|
|
4605
4616
|
], 2)
|
|
4606
4617
|
]),
|
|
4607
|
-
t.value.showBrandInfo ? (i(), g(
|
|
4608
|
-
C(
|
|
4618
|
+
t.value.showBrandInfo ? (i(), g(ue, { key: 1 })) : d("", !0),
|
|
4619
|
+
C(Ce, {
|
|
4609
4620
|
model: t.value.notifier
|
|
4610
4621
|
}, null, 8, ["model"])
|
|
4611
4622
|
], 2)
|
|
4612
4623
|
], 6);
|
|
4613
4624
|
};
|
|
4614
4625
|
}
|
|
4615
|
-
}),
|
|
4626
|
+
}), ni = /* @__PURE__ */ h({
|
|
4616
4627
|
__name: "Notifier",
|
|
4617
4628
|
props: {
|
|
4618
4629
|
model: {}
|
|
4619
4630
|
},
|
|
4620
4631
|
setup(r) {
|
|
4621
4632
|
const s = r;
|
|
4622
|
-
return
|
|
4633
|
+
return L(() => s.model), (n, e) => {
|
|
4623
4634
|
const o = y("sv-action-bar");
|
|
4624
4635
|
return n.model.isDisplayed ? (i(), u("div", {
|
|
4625
4636
|
key: 0,
|
|
4626
4637
|
class: a(n.model.css),
|
|
4627
|
-
style:
|
|
4638
|
+
style: I({ visibility: n.model.active ? "visible" : "hidden" }),
|
|
4628
4639
|
role: "alert",
|
|
4629
4640
|
"aria-live": "polite"
|
|
4630
4641
|
}, [
|
|
@@ -4635,7 +4646,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4635
4646
|
], 6)) : d("", !0);
|
|
4636
4647
|
};
|
|
4637
4648
|
}
|
|
4638
|
-
}),
|
|
4649
|
+
}), oi = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], ti = { key: 1 }, ii = /* @__PURE__ */ h({
|
|
4639
4650
|
__name: "QuestionOther",
|
|
4640
4651
|
props: {
|
|
4641
4652
|
question: {},
|
|
@@ -4656,25 +4667,25 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4656
4667
|
placeholder: s.question.otherPlaceholder,
|
|
4657
4668
|
"aria-label": s.question.ariaLabel || s.question.a11y_input_ariaLabel,
|
|
4658
4669
|
"aria-required": s.question.ariaRequired || s.question.a11y_input_ariaRequired,
|
|
4659
|
-
style:
|
|
4670
|
+
style: I({ resize: s.question.resizeStyle }),
|
|
4660
4671
|
onChange: n[0] || (n[0] = (e) => {
|
|
4661
4672
|
s.question.onOtherValueChange(e);
|
|
4662
4673
|
}),
|
|
4663
4674
|
onInput: n[1] || (n[1] = (e) => {
|
|
4664
4675
|
s.question.onOtherValueInput(e);
|
|
4665
4676
|
})
|
|
4666
|
-
}, null, 46,
|
|
4667
|
-
s.question.isReadOnlyRenderDiv() ? (i(), u("div",
|
|
4677
|
+
}, null, 46, oi)),
|
|
4678
|
+
s.question.isReadOnlyRenderDiv() ? (i(), u("div", ti, R(s.question.otherValue), 1)) : d("", !0)
|
|
4668
4679
|
], 2));
|
|
4669
4680
|
}
|
|
4670
|
-
}),
|
|
4681
|
+
}), ri = ["disabled", "value", "title"], li = /* @__PURE__ */ h({
|
|
4671
4682
|
__name: "SurveyNavigationButton",
|
|
4672
4683
|
props: {
|
|
4673
4684
|
item: {}
|
|
4674
4685
|
},
|
|
4675
4686
|
setup(r) {
|
|
4676
4687
|
const s = r, n = () => s.item.data && s.item.data.mouseDown();
|
|
4677
|
-
return
|
|
4688
|
+
return L(() => s.item), (e, o) => e.item.visible ? (i(), u("input", {
|
|
4678
4689
|
key: 0,
|
|
4679
4690
|
type: "button",
|
|
4680
4691
|
disabled: e.item.disabled,
|
|
@@ -4683,7 +4694,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4683
4694
|
title: e.item.getTooltip(),
|
|
4684
4695
|
onMousedown: n,
|
|
4685
4696
|
onClick: o[0] || (o[0] = (...t) => e.item.action && e.item.action(...t))
|
|
4686
|
-
}, null, 42,
|
|
4697
|
+
}, null, 42, ri)) : d("", !0);
|
|
4687
4698
|
}
|
|
4688
4699
|
}), ve = /* @__PURE__ */ h({
|
|
4689
4700
|
__name: "PopupSurvey",
|
|
@@ -4695,11 +4706,11 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4695
4706
|
closeOnCompleteTimeout: {}
|
|
4696
4707
|
},
|
|
4697
4708
|
setup(r) {
|
|
4698
|
-
const s = r, n = U(), e =
|
|
4699
|
-
|
|
4709
|
+
const s = r, n = U(), e = S(() => s.survey ? s.survey.getCss() : {});
|
|
4710
|
+
S(() => {
|
|
4700
4711
|
var f;
|
|
4701
4712
|
return (f = n.value) != null && f.isExpanded ? e.value.window.header.buttonCollapsed : e.value.window.header.buttonExpanded;
|
|
4702
|
-
}),
|
|
4713
|
+
}), S(() => {
|
|
4703
4714
|
var f;
|
|
4704
4715
|
return (f = n.value) == null ? void 0 : f.isExpanded;
|
|
4705
4716
|
});
|
|
@@ -4715,11 +4726,11 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4715
4726
|
let f = n.value.cssHeaderRoot;
|
|
4716
4727
|
return n.value.isCollapsed && (f += " " + n.value.cssRootCollapsedMod), f;
|
|
4717
4728
|
};
|
|
4718
|
-
|
|
4729
|
+
L(() => n.value);
|
|
4719
4730
|
const q = K(
|
|
4720
4731
|
() => s.survey,
|
|
4721
4732
|
(f) => {
|
|
4722
|
-
const k = new
|
|
4733
|
+
const k = new We(null, f);
|
|
4723
4734
|
s.isExpanded !== void 0 && (k.isExpanded = s.isExpanded), s.closeOnCompleteTimeout !== void 0 && (k.closeOnCompleteTimeout = s.closeOnCompleteTimeout), s.allowClose !== void 0 && (k.allowClose = s.allowClose), s.allowFullScreen !== void 0 && (k.allowFullScreen = s.allowFullScreen), k.isShowing = !0, n.value = k;
|
|
4724
4735
|
},
|
|
4725
4736
|
{
|
|
@@ -4729,10 +4740,10 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4729
4740
|
return O(() => {
|
|
4730
4741
|
q();
|
|
4731
4742
|
}), (f, k) => {
|
|
4732
|
-
const
|
|
4743
|
+
const _ = y("sv-svg-icon");
|
|
4733
4744
|
return n.value.isShowing ? (i(), u("div", {
|
|
4734
4745
|
key: 0,
|
|
4735
|
-
style:
|
|
4746
|
+
style: I({ maxWidth: n.value.renderedWidth, width: n.value.renderedWidth }),
|
|
4736
4747
|
class: a(n.value.cssRoot),
|
|
4737
4748
|
onScroll: v
|
|
4738
4749
|
}, [
|
|
@@ -4754,12 +4765,12 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4754
4765
|
class: a(n.value.cssHeaderFullScreenButton),
|
|
4755
4766
|
onClick: l
|
|
4756
4767
|
}, [
|
|
4757
|
-
n.value.isFullScreen ? (i(), g(
|
|
4768
|
+
n.value.isFullScreen ? (i(), g(_, {
|
|
4758
4769
|
key: 0,
|
|
4759
4770
|
iconName: "icon-back-to-panel_16x16",
|
|
4760
4771
|
size: 16
|
|
4761
4772
|
})) : d("", !0),
|
|
4762
|
-
n.value.isFullScreen ? d("", !0) : (i(), g(
|
|
4773
|
+
n.value.isFullScreen ? d("", !0) : (i(), g(_, {
|
|
4763
4774
|
key: 1,
|
|
4764
4775
|
iconName: "icon-full-screen_16x16",
|
|
4765
4776
|
size: 16
|
|
@@ -4769,12 +4780,12 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4769
4780
|
class: a(n.value.cssHeaderCollapseButton),
|
|
4770
4781
|
onClick: o
|
|
4771
4782
|
}, [
|
|
4772
|
-
n.value.isExpanded ? (i(), g(
|
|
4783
|
+
n.value.isExpanded ? (i(), g(_, {
|
|
4773
4784
|
key: 0,
|
|
4774
4785
|
iconName: "icon-minimize_16x16",
|
|
4775
4786
|
size: 16
|
|
4776
4787
|
})) : d("", !0),
|
|
4777
|
-
n.value.isCollapsed ? (i(), g(
|
|
4788
|
+
n.value.isCollapsed ? (i(), g(_, {
|
|
4778
4789
|
key: 1,
|
|
4779
4790
|
iconName: "icon-restore_16x16",
|
|
4780
4791
|
size: 16
|
|
@@ -4785,7 +4796,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4785
4796
|
class: a(n.value.cssHeaderCloseButton),
|
|
4786
4797
|
onClick: t
|
|
4787
4798
|
}, [
|
|
4788
|
-
C(
|
|
4799
|
+
C(_, {
|
|
4789
4800
|
iconName: "icon-close_16x16",
|
|
4790
4801
|
size: 16
|
|
4791
4802
|
})
|
|
@@ -4801,18 +4812,18 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4801
4812
|
], 38)) : d("", !0);
|
|
4802
4813
|
};
|
|
4803
4814
|
}
|
|
4804
|
-
}),
|
|
4815
|
+
}), ai = ["innerHTML"], ui = /* @__PURE__ */ h({
|
|
4805
4816
|
__name: "CustomWidget",
|
|
4806
4817
|
props: {
|
|
4807
4818
|
question: {},
|
|
4808
4819
|
css: {}
|
|
4809
4820
|
},
|
|
4810
4821
|
setup(r) {
|
|
4811
|
-
const s = r, n = $(), e =
|
|
4822
|
+
const s = r, n = $(), e = S(
|
|
4812
4823
|
() => s.question.customWidget.isDefaultRender
|
|
4813
|
-
), o =
|
|
4824
|
+
), o = S(
|
|
4814
4825
|
() => !!s.question.customWidget.htmlTemplate
|
|
4815
|
-
), t =
|
|
4826
|
+
), t = S(() => s.question.customWidget.htmlTemplate), l = S(() => "survey-" + s.question.getTemplate());
|
|
4816
4827
|
return M(() => {
|
|
4817
4828
|
s.question.customWidget.afterRender(s.question, n.value);
|
|
4818
4829
|
}), G(() => {
|
|
@@ -4824,7 +4835,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4824
4835
|
o.value ? (i(), u("div", {
|
|
4825
4836
|
key: 0,
|
|
4826
4837
|
innerHTML: t.value
|
|
4827
|
-
}, null, 8,
|
|
4838
|
+
}, null, 8, ai)) : d("", !0),
|
|
4828
4839
|
e.value ? (i(), g(T(l.value), {
|
|
4829
4840
|
key: 1,
|
|
4830
4841
|
question: m.question,
|
|
@@ -4832,12 +4843,12 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4832
4843
|
}, null, 8, ["question", "css"])) : d("", !0)
|
|
4833
4844
|
], 512));
|
|
4834
4845
|
}
|
|
4835
|
-
}),
|
|
4846
|
+
}), di = /* @__PURE__ */ h({
|
|
4836
4847
|
__name: "PopupModal",
|
|
4837
4848
|
setup(r) {
|
|
4838
4849
|
const s = U();
|
|
4839
4850
|
function n(o, t, l, m, v, c, q = "popup") {
|
|
4840
|
-
const f =
|
|
4851
|
+
const f = Fe(
|
|
4841
4852
|
o,
|
|
4842
4853
|
t,
|
|
4843
4854
|
l,
|
|
@@ -4865,7 +4876,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4865
4876
|
j.showDialog = void 0;
|
|
4866
4877
|
})), (o, t) => {
|
|
4867
4878
|
const l = y("sv-popup-container");
|
|
4868
|
-
return s.value ? (i(), g(
|
|
4879
|
+
return s.value ? (i(), g(Te, {
|
|
4869
4880
|
key: 0,
|
|
4870
4881
|
to: s.value.container
|
|
4871
4882
|
}, [
|
|
@@ -4873,7 +4884,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4873
4884
|
], 8, ["to"])) : d("", !0);
|
|
4874
4885
|
};
|
|
4875
4886
|
}
|
|
4876
|
-
}),
|
|
4887
|
+
}), mi = /* @__PURE__ */ h({
|
|
4877
4888
|
__name: "CharacterCounter",
|
|
4878
4889
|
props: {
|
|
4879
4890
|
counter: {},
|
|
@@ -4881,11 +4892,11 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4881
4892
|
},
|
|
4882
4893
|
setup(r) {
|
|
4883
4894
|
const s = r;
|
|
4884
|
-
return
|
|
4895
|
+
return L(() => s.counter), (n, e) => (i(), u("div", {
|
|
4885
4896
|
class: a(n.remainingCharacterCounter)
|
|
4886
4897
|
}, R(n.counter.remainingCharacterCounter), 3));
|
|
4887
4898
|
}
|
|
4888
|
-
}),
|
|
4899
|
+
}), ci = /* @__PURE__ */ h({
|
|
4889
4900
|
inheritAttrs: !1,
|
|
4890
4901
|
__name: "Composite",
|
|
4891
4902
|
props: {
|
|
@@ -4895,7 +4906,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4895
4906
|
setup(r) {
|
|
4896
4907
|
const s = r, n = $(null);
|
|
4897
4908
|
A(s, n);
|
|
4898
|
-
const e =
|
|
4909
|
+
const e = S(() => s.question.contentPanel);
|
|
4899
4910
|
return (o, t) => {
|
|
4900
4911
|
const l = y("survey-panel");
|
|
4901
4912
|
return i(), g(l, {
|
|
@@ -4906,7 +4917,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4906
4917
|
}, null, 8, ["element", "css"]);
|
|
4907
4918
|
};
|
|
4908
4919
|
}
|
|
4909
|
-
}),
|
|
4920
|
+
}), pi = /* @__PURE__ */ h({
|
|
4910
4921
|
inheritAttrs: !1,
|
|
4911
4922
|
__name: "Custom",
|
|
4912
4923
|
props: {
|
|
@@ -4916,32 +4927,32 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4916
4927
|
setup(r) {
|
|
4917
4928
|
const s = r, n = $(null);
|
|
4918
4929
|
A(s, n);
|
|
4919
|
-
const e =
|
|
4930
|
+
const e = S(() => s.question.contentQuestion), o = (t) => re(t);
|
|
4920
4931
|
return (t, l) => (i(), g(T(o(e.value)), {
|
|
4921
4932
|
ref: n.value,
|
|
4922
4933
|
question: e.value,
|
|
4923
4934
|
css: t.css
|
|
4924
4935
|
}, null, 8, ["question", "css"]));
|
|
4925
4936
|
}
|
|
4926
|
-
}),
|
|
4927
|
-
|
|
4928
|
-
], qe = 440,
|
|
4937
|
+
}), vi = /* @__PURE__ */ p("use", { "xlink:href": "#icon-timercircle" }, null, -1), qi = [
|
|
4938
|
+
vi
|
|
4939
|
+
], qe = 440, yi = /* @__PURE__ */ h({
|
|
4929
4940
|
__name: "TimerPanel",
|
|
4930
4941
|
props: {
|
|
4931
4942
|
model: {},
|
|
4932
4943
|
css: {}
|
|
4933
4944
|
},
|
|
4934
4945
|
setup(r) {
|
|
4935
|
-
const s = r, n =
|
|
4936
|
-
return
|
|
4946
|
+
const s = r, n = S(() => qe * s.model.progress), e = S(() => s.model.text);
|
|
4947
|
+
return L(() => s.model), (o, t) => o.model.isRunning && o.model.showTimerAsClock ? (i(), u("div", {
|
|
4937
4948
|
key: 0,
|
|
4938
4949
|
class: a(o.model.rootCss)
|
|
4939
4950
|
}, [
|
|
4940
4951
|
o.model.showProgress ? (i(), u("svg", {
|
|
4941
4952
|
key: 0,
|
|
4942
4953
|
class: a(o.model.getProgressCss()),
|
|
4943
|
-
style:
|
|
4944
|
-
},
|
|
4954
|
+
style: I({ strokeDasharray: qe, strokeDashoffset: n.value })
|
|
4955
|
+
}, qi, 6)) : d("", !0),
|
|
4945
4956
|
p("div", {
|
|
4946
4957
|
class: a(o.model.textContainerCss)
|
|
4947
4958
|
}, [
|
|
@@ -4960,17 +4971,17 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4960
4971
|
[E, o.model.isRunning && !o.model.showTimerAsClock]
|
|
4961
4972
|
]);
|
|
4962
4973
|
}
|
|
4963
|
-
}),
|
|
4964
|
-
function
|
|
4974
|
+
}), gi = {}, hi = { class: "sd-loading-indicator" };
|
|
4975
|
+
function Ci(r, s) {
|
|
4965
4976
|
const n = y("sv-svg-icon");
|
|
4966
|
-
return i(), u("div",
|
|
4977
|
+
return i(), u("div", hi, [
|
|
4967
4978
|
C(n, {
|
|
4968
4979
|
iconName: "icon-loading",
|
|
4969
4980
|
size: "'auto'"
|
|
4970
4981
|
})
|
|
4971
4982
|
]);
|
|
4972
4983
|
}
|
|
4973
|
-
const
|
|
4984
|
+
const bi = /* @__PURE__ */ he(gi, [["render", Ci]]), ki = { key: 2 }, fi = /* @__PURE__ */ h({
|
|
4974
4985
|
__name: "Header",
|
|
4975
4986
|
props: {
|
|
4976
4987
|
model: {},
|
|
@@ -4978,40 +4989,40 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
4978
4989
|
},
|
|
4979
4990
|
setup(r) {
|
|
4980
4991
|
const s = r;
|
|
4981
|
-
return
|
|
4992
|
+
return L(() => {
|
|
4982
4993
|
const n = s.model;
|
|
4983
4994
|
return n.survey = s.survey, s.model;
|
|
4984
4995
|
}), (n, e) => {
|
|
4985
4996
|
const o = y("sv-header-cell"), t = y("sv-header-mobile");
|
|
4986
4997
|
return i(), u("div", {
|
|
4987
4998
|
class: a(n.model.headerClasses),
|
|
4988
|
-
style:
|
|
4999
|
+
style: I({ height: n.model.renderedHeight })
|
|
4989
5000
|
}, [
|
|
4990
5001
|
n.model.backgroundImage ? (i(), u("div", {
|
|
4991
5002
|
key: 0,
|
|
4992
5003
|
class: a(n.model.backgroundImageClasses),
|
|
4993
|
-
style:
|
|
5004
|
+
style: I(n.model.backgroundImageStyle)
|
|
4994
5005
|
}, null, 6)) : d("", !0),
|
|
4995
5006
|
n.survey.isMobile ? d("", !0) : (i(), u("div", {
|
|
4996
5007
|
key: 1,
|
|
4997
5008
|
class: a(n.model.contentClasses),
|
|
4998
|
-
style:
|
|
5009
|
+
style: I({ maxWidth: n.model.maxWidth })
|
|
4999
5010
|
}, [
|
|
5000
|
-
(i(!0), u(
|
|
5011
|
+
(i(!0), u(D, null, B(n.model.cells, (l, m) => (i(), g(o, {
|
|
5001
5012
|
model: l,
|
|
5002
5013
|
key: m
|
|
5003
5014
|
}, null, 8, ["model"]))), 128))
|
|
5004
5015
|
], 6)),
|
|
5005
|
-
n.survey.isMobile ? (i(), u("div",
|
|
5016
|
+
n.survey.isMobile ? (i(), u("div", ki, [
|
|
5006
5017
|
C(t, { model: n.model }, null, 8, ["model"])
|
|
5007
5018
|
])) : d("", !0)
|
|
5008
5019
|
], 6);
|
|
5009
5020
|
};
|
|
5010
5021
|
}
|
|
5011
|
-
}),
|
|
5022
|
+
}), wi = {
|
|
5012
5023
|
key: 0,
|
|
5013
5024
|
class: "sv-header__logo"
|
|
5014
|
-
},
|
|
5025
|
+
}, Ii = ["src", "width", "height", "alt"], Si = /* @__PURE__ */ h({
|
|
5015
5026
|
__name: "HeaderCell",
|
|
5016
5027
|
props: {
|
|
5017
5028
|
model: {}
|
|
@@ -5021,13 +5032,13 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5021
5032
|
const e = y("survey-element-title"), o = y("survey-string");
|
|
5022
5033
|
return i(), u("div", {
|
|
5023
5034
|
class: a(s.model.css),
|
|
5024
|
-
style:
|
|
5035
|
+
style: I(s.model.style)
|
|
5025
5036
|
}, [
|
|
5026
5037
|
p("div", {
|
|
5027
5038
|
class: "sv-header__cell-content",
|
|
5028
|
-
style:
|
|
5039
|
+
style: I(s.model.contentStyle)
|
|
5029
5040
|
}, [
|
|
5030
|
-
s.model.showLogo ? (i(), u("div",
|
|
5041
|
+
s.model.showLogo ? (i(), u("div", wi, [
|
|
5031
5042
|
p("div", {
|
|
5032
5043
|
class: a(s.model.survey.logoClassNames)
|
|
5033
5044
|
}, [
|
|
@@ -5037,14 +5048,14 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5037
5048
|
width: s.model.survey.renderedLogoWidth,
|
|
5038
5049
|
height: s.model.survey.renderedLogoHeight,
|
|
5039
5050
|
alt: s.model.survey.locTitle.renderedHtml,
|
|
5040
|
-
style:
|
|
5041
|
-
}, null, 14,
|
|
5051
|
+
style: I({ objectFit: s.model.survey.logoFit, width: s.model.survey.renderedStyleLogoWidth, height: s.model.survey.renderedStyleLogoHeight })
|
|
5052
|
+
}, null, 14, Ii)
|
|
5042
5053
|
], 2)
|
|
5043
5054
|
])) : d("", !0),
|
|
5044
5055
|
s.model.showTitle ? (i(), u("div", {
|
|
5045
5056
|
key: 1,
|
|
5046
5057
|
class: "sv-header__title",
|
|
5047
|
-
style:
|
|
5058
|
+
style: I({ maxWidth: s.model.textAreaWidth })
|
|
5048
5059
|
}, [
|
|
5049
5060
|
C(e, {
|
|
5050
5061
|
element: s.model.survey,
|
|
@@ -5054,7 +5065,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5054
5065
|
s.model.showDescription ? (i(), u("div", {
|
|
5055
5066
|
key: 2,
|
|
5056
5067
|
class: "sv-header__description",
|
|
5057
|
-
style:
|
|
5068
|
+
style: I({ maxWidth: s.model.textAreaWidth })
|
|
5058
5069
|
}, [
|
|
5059
5070
|
s.model.survey.renderedHasDescription ? (i(), u("div", {
|
|
5060
5071
|
key: 0,
|
|
@@ -5069,10 +5080,10 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5069
5080
|
], 6);
|
|
5070
5081
|
};
|
|
5071
5082
|
}
|
|
5072
|
-
}),
|
|
5083
|
+
}), Ri = { class: "sv-header--mobile" }, Ti = {
|
|
5073
5084
|
key: 0,
|
|
5074
5085
|
class: "sv-header__logo"
|
|
5075
|
-
},
|
|
5086
|
+
}, $i = ["src", "width", "height", "alt"], _i = /* @__PURE__ */ h({
|
|
5076
5087
|
__name: "HeaderMobile",
|
|
5077
5088
|
props: {
|
|
5078
5089
|
model: {}
|
|
@@ -5080,8 +5091,8 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5080
5091
|
setup(r) {
|
|
5081
5092
|
return (s, n) => {
|
|
5082
5093
|
const e = y("survey-element-title"), o = y("survey-string");
|
|
5083
|
-
return i(), u("div",
|
|
5084
|
-
s.model.survey.hasLogo ? (i(), u("div",
|
|
5094
|
+
return i(), u("div", Ri, [
|
|
5095
|
+
s.model.survey.hasLogo ? (i(), u("div", Ti, [
|
|
5085
5096
|
p("div", {
|
|
5086
5097
|
class: a(s.model.survey.logoClassNames)
|
|
5087
5098
|
}, [
|
|
@@ -5091,14 +5102,14 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5091
5102
|
width: s.model.survey.renderedLogoWidth,
|
|
5092
5103
|
height: s.model.survey.renderedLogoHeight,
|
|
5093
5104
|
alt: s.model.survey.locTitle.renderedHtml,
|
|
5094
|
-
style:
|
|
5095
|
-
}, null, 14,
|
|
5105
|
+
style: I({ objectFit: s.model.survey.logoFit, width: s.model.survey.renderedStyleLogoWidth, height: s.model.survey.renderedStyleLogoHeight })
|
|
5106
|
+
}, null, 14, $i)
|
|
5096
5107
|
], 2)
|
|
5097
5108
|
])) : d("", !0),
|
|
5098
5109
|
s.model.survey.hasTitle ? (i(), u("div", {
|
|
5099
5110
|
key: 1,
|
|
5100
5111
|
class: "sv-header__title",
|
|
5101
|
-
style:
|
|
5112
|
+
style: I({ maxWidth: s.model.renderedtextAreaWidth })
|
|
5102
5113
|
}, [
|
|
5103
5114
|
C(e, {
|
|
5104
5115
|
element: s.model.survey,
|
|
@@ -5108,7 +5119,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5108
5119
|
s.model.survey.renderedHasDescription ? (i(), u("div", {
|
|
5109
5120
|
key: 2,
|
|
5110
5121
|
class: "sv-header__description",
|
|
5111
|
-
style:
|
|
5122
|
+
style: I({ maxWidth: s.model.renderedtextAreaWidth })
|
|
5112
5123
|
}, [
|
|
5113
5124
|
s.model.survey.renderedHasDescription ? (i(), u("div", {
|
|
5114
5125
|
key: 0,
|
|
@@ -5122,7 +5133,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5122
5133
|
]);
|
|
5123
5134
|
};
|
|
5124
5135
|
}
|
|
5125
|
-
}),
|
|
5136
|
+
}), Di = /* @__PURE__ */ h({
|
|
5126
5137
|
__name: "Element",
|
|
5127
5138
|
props: {
|
|
5128
5139
|
element: {},
|
|
@@ -5130,7 +5141,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5130
5141
|
css: {}
|
|
5131
5142
|
},
|
|
5132
5143
|
setup(r) {
|
|
5133
|
-
const s = r, n = $(), e = (v) => v.isPanel ? "survey-panel" : "survey-question", o =
|
|
5144
|
+
const s = r, n = $(), e = (v) => v.isPanel ? "survey-panel" : "survey-question", o = S(() => {
|
|
5134
5145
|
const v = s.element.survey;
|
|
5135
5146
|
if (v) {
|
|
5136
5147
|
const c = v.getElementWrapperComponentName(s.element);
|
|
@@ -5138,7 +5149,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5138
5149
|
return c;
|
|
5139
5150
|
}
|
|
5140
5151
|
return e(s.element);
|
|
5141
|
-
}), t = (v) => v.cssClasses ? v.rootStyle : {}, l =
|
|
5152
|
+
}), t = (v) => v.cssClasses ? v.rootStyle : {}, l = S(() => {
|
|
5142
5153
|
const v = s.element, c = v.survey;
|
|
5143
5154
|
let q;
|
|
5144
5155
|
return c && (q = c.getElementWrapperComponentData(v)), {
|
|
@@ -5164,7 +5175,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5164
5175
|
}), (v, c) => (i(), u("div", {
|
|
5165
5176
|
ref_key: "root",
|
|
5166
5177
|
ref: n,
|
|
5167
|
-
style:
|
|
5178
|
+
style: I(t(v.element)),
|
|
5168
5179
|
class: a(v.element.cssClasses.questionWrapper)
|
|
5169
5180
|
}, [
|
|
5170
5181
|
v.row.isNeedRender ? (i(), g(T(o.value), z(H({ key: 0 }, l.value)), null, 16)) : v.element.skeletonComponentName ? (i(), g(T(v.element.skeletonComponentName), {
|
|
@@ -5174,17 +5185,17 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5174
5185
|
}, null, 8, ["element", "css"])) : d("", !0)
|
|
5175
5186
|
], 6));
|
|
5176
5187
|
}
|
|
5177
|
-
}),
|
|
5188
|
+
}), Bi = /* @__PURE__ */ h({
|
|
5178
5189
|
__name: "TemplateRenderer",
|
|
5179
5190
|
props: {
|
|
5180
5191
|
componentName: {},
|
|
5181
5192
|
componentData: {}
|
|
5182
5193
|
},
|
|
5183
5194
|
setup(r) {
|
|
5184
|
-
const s =
|
|
5185
|
-
return (e, o) => n.value && !e.componentName ?
|
|
5195
|
+
const s = $e(), n = S(() => !!s.default);
|
|
5196
|
+
return (e, o) => n.value && !e.componentName ? _e(e.$slots, "default", { key: 0 }) : (i(), g(T(e.componentName), z(H({ key: 1 }, e.componentData)), null, 16));
|
|
5186
5197
|
}
|
|
5187
|
-
}),
|
|
5198
|
+
}), Li = /* @__PURE__ */ h({
|
|
5188
5199
|
__name: "FileCleanButton",
|
|
5189
5200
|
props: {
|
|
5190
5201
|
question: {},
|
|
@@ -5208,7 +5219,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5208
5219
|
], 2);
|
|
5209
5220
|
};
|
|
5210
5221
|
}
|
|
5211
|
-
}),
|
|
5222
|
+
}), Ni = ["id"], Pi = /* @__PURE__ */ h({
|
|
5212
5223
|
__name: "FileVideo",
|
|
5213
5224
|
props: {
|
|
5214
5225
|
question: {}
|
|
@@ -5230,21 +5241,21 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5230
5241
|
playsinline: "",
|
|
5231
5242
|
id: s.question.videoId,
|
|
5232
5243
|
class: a(s.question.cssClasses.video)
|
|
5233
|
-
}, null, 10,
|
|
5244
|
+
}, null, 10, Ni),
|
|
5234
5245
|
C(e, {
|
|
5235
5246
|
item: s.question.takePictureAction
|
|
5236
5247
|
}, null, 8, ["item"])
|
|
5237
5248
|
], 2);
|
|
5238
5249
|
};
|
|
5239
5250
|
}
|
|
5240
|
-
}),
|
|
5251
|
+
}), Ai = ["for", "aria-label"], Mi = /* @__PURE__ */ h({
|
|
5241
5252
|
__name: "FileChooseButton",
|
|
5242
5253
|
props: {
|
|
5243
5254
|
data: {},
|
|
5244
5255
|
item: {}
|
|
5245
5256
|
},
|
|
5246
5257
|
setup(r) {
|
|
5247
|
-
const s = r, n =
|
|
5258
|
+
const s = r, n = S(
|
|
5248
5259
|
() => {
|
|
5249
5260
|
var e;
|
|
5250
5261
|
return ((e = s.data) == null ? void 0 : e.question) || s.item.data.question;
|
|
@@ -5266,12 +5277,12 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5266
5277
|
size: "auto"
|
|
5267
5278
|
}, null, 8, ["title", "iconName"])) : d("", !0),
|
|
5268
5279
|
p("span", null, R(n.value.chooseButtonText), 1)
|
|
5269
|
-
], 10,
|
|
5280
|
+
], 10, Ai)), [
|
|
5270
5281
|
[l]
|
|
5271
5282
|
]);
|
|
5272
5283
|
};
|
|
5273
5284
|
}
|
|
5274
|
-
}),
|
|
5285
|
+
}), Ei = ["onClick", "href", "title", "download"], Hi = ["src"], Wi = ["onClick"], Fi = ["onClick", "href", "title", "download"], Vi = /* @__PURE__ */ h({
|
|
5275
5286
|
__name: "FilePreview",
|
|
5276
5287
|
props: {
|
|
5277
5288
|
question: {}
|
|
@@ -5283,7 +5294,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5283
5294
|
key: 0,
|
|
5284
5295
|
class: a(s.question.cssClasses.fileList || void 0)
|
|
5285
5296
|
}, [
|
|
5286
|
-
(i(!0), u(
|
|
5297
|
+
(i(!0), u(D, null, B(s.question.previewValue, (o, t) => P((i(), u("span", {
|
|
5287
5298
|
key: s.question.inputId + "_" + t,
|
|
5288
5299
|
class: a(s.question.cssClasses.previewItem)
|
|
5289
5300
|
}, [
|
|
@@ -5296,8 +5307,8 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5296
5307
|
href: o.content,
|
|
5297
5308
|
title: o.name,
|
|
5298
5309
|
download: o.name,
|
|
5299
|
-
style:
|
|
5300
|
-
}, R(o.name), 13,
|
|
5310
|
+
style: I({ width: s.question.imageWidth })
|
|
5311
|
+
}, R(o.name), 13, Ei)
|
|
5301
5312
|
], 2)) : d("", !0),
|
|
5302
5313
|
p("div", {
|
|
5303
5314
|
class: a(s.question.getImageWrapperCss(o))
|
|
@@ -5305,12 +5316,12 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5305
5316
|
s.question.canPreviewImage(o) ? (i(), u("img", {
|
|
5306
5317
|
key: 0,
|
|
5307
5318
|
src: o.content,
|
|
5308
|
-
style:
|
|
5319
|
+
style: I({
|
|
5309
5320
|
height: s.question.imageHeight,
|
|
5310
5321
|
width: s.question.imageWidth
|
|
5311
5322
|
}),
|
|
5312
5323
|
alt: "File preview"
|
|
5313
|
-
}, null, 12,
|
|
5324
|
+
}, null, 12, Hi)) : d("", !0),
|
|
5314
5325
|
s.question.defaultImage(o) ? (i(), g(e, {
|
|
5315
5326
|
key: 1,
|
|
5316
5327
|
iconName: s.question.cssClasses.defaultImageIconId,
|
|
@@ -5332,7 +5343,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5332
5343
|
iconName: s.question.cssClasses.removeFileSvgIconId,
|
|
5333
5344
|
size: "auto"
|
|
5334
5345
|
}, null, 8, ["title", "class", "iconName"])) : d("", !0)
|
|
5335
|
-
], 10,
|
|
5346
|
+
], 10, Wi)) : d("", !0)
|
|
5336
5347
|
], 2),
|
|
5337
5348
|
o.name && s.question.cssClasses.fileSignBottom ? (i(), u("div", {
|
|
5338
5349
|
key: 1,
|
|
@@ -5343,8 +5354,8 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5343
5354
|
href: o.content,
|
|
5344
5355
|
title: o.name,
|
|
5345
5356
|
download: o.name,
|
|
5346
|
-
style:
|
|
5347
|
-
}, R(o.name), 13,
|
|
5357
|
+
style: I({ width: s.question.imageWidth })
|
|
5358
|
+
}, R(o.name), 13, Fi)
|
|
5348
5359
|
], 2)) : d("", !0)
|
|
5349
5360
|
], 2)), [
|
|
5350
5361
|
[E, o && s.question.isPreviewVisible(t)]
|
|
@@ -5352,7 +5363,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5352
5363
|
], 2)) : d("", !0);
|
|
5353
5364
|
};
|
|
5354
5365
|
}
|
|
5355
|
-
}),
|
|
5366
|
+
}), Oi = /* @__PURE__ */ h({
|
|
5356
5367
|
__name: "ButtonGroup",
|
|
5357
5368
|
props: {
|
|
5358
5369
|
question: {}
|
|
@@ -5367,7 +5378,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5367
5378
|
ref_key: "root",
|
|
5368
5379
|
ref: n
|
|
5369
5380
|
}, [
|
|
5370
|
-
(i(!0), u(
|
|
5381
|
+
(i(!0), u(D, null, B(e.question.visibleChoices, (l, m) => (i(), g(t, {
|
|
5371
5382
|
question: e.question,
|
|
5372
5383
|
key: m,
|
|
5373
5384
|
item: l,
|
|
@@ -5376,7 +5387,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5376
5387
|
], 2);
|
|
5377
5388
|
};
|
|
5378
5389
|
}
|
|
5379
|
-
}),
|
|
5390
|
+
}), zi = ["title"], Ui = ["name", "id", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "disabled", "value"], Ki = ["title"], Qi = /* @__PURE__ */ h({
|
|
5380
5391
|
__name: "ButtonGroupItem",
|
|
5381
5392
|
props: {
|
|
5382
5393
|
item: {},
|
|
@@ -5384,9 +5395,9 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5384
5395
|
index: {}
|
|
5385
5396
|
},
|
|
5386
5397
|
setup(r) {
|
|
5387
|
-
const s = r, n =
|
|
5388
|
-
() => new
|
|
5389
|
-
), e =
|
|
5398
|
+
const s = r, n = S(
|
|
5399
|
+
() => new Oe(s.question, s.item, s.index)
|
|
5400
|
+
), e = S({
|
|
5390
5401
|
get: () => s.question.renderedValue,
|
|
5391
5402
|
set: (o) => {
|
|
5392
5403
|
const t = s.question;
|
|
@@ -5413,7 +5424,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5413
5424
|
class: a(n.value.css.control),
|
|
5414
5425
|
"onUpdate:modelValue": t[0] || (t[0] = (v) => e.value = v),
|
|
5415
5426
|
value: n.value.value
|
|
5416
|
-
}, null, 10,
|
|
5427
|
+
}, null, 10, Ui), [
|
|
5417
5428
|
[x, e.value]
|
|
5418
5429
|
]),
|
|
5419
5430
|
p("div", {
|
|
@@ -5433,19 +5444,19 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5433
5444
|
C(m, {
|
|
5434
5445
|
locString: n.value.caption
|
|
5435
5446
|
}, null, 8, ["locString"])
|
|
5436
|
-
], 10,
|
|
5447
|
+
], 10, Ki)) : d("", !0)
|
|
5437
5448
|
], 2)
|
|
5438
|
-
], 10,
|
|
5449
|
+
], 10, zi);
|
|
5439
5450
|
};
|
|
5440
5451
|
}
|
|
5441
|
-
}),
|
|
5452
|
+
}), ji = ["src", "width", "height", "alt"], Gi = /* @__PURE__ */ h({
|
|
5442
5453
|
inheritAttrs: !1,
|
|
5443
5454
|
__name: "Logo",
|
|
5444
5455
|
props: {
|
|
5445
5456
|
data: {}
|
|
5446
5457
|
},
|
|
5447
5458
|
setup(r) {
|
|
5448
|
-
const s = r, n =
|
|
5459
|
+
const s = r, n = S(() => s.data), e = J(() => n.value.locLogo);
|
|
5449
5460
|
return (o, t) => (i(), u("div", {
|
|
5450
5461
|
class: a(n.value.logoClassNames)
|
|
5451
5462
|
}, [
|
|
@@ -5455,20 +5466,20 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5455
5466
|
width: n.value.renderedLogoWidth,
|
|
5456
5467
|
height: n.value.renderedLogoHeight,
|
|
5457
5468
|
alt: n.value.locTitle.renderedHtml,
|
|
5458
|
-
style:
|
|
5469
|
+
style: I({
|
|
5459
5470
|
objectFit: n.value.logoFit,
|
|
5460
5471
|
width: n.value.renderedStyleLogoWidth,
|
|
5461
5472
|
height: n.value.renderedStyleLogoHeight
|
|
5462
5473
|
})
|
|
5463
|
-
}, null, 14,
|
|
5474
|
+
}, null, 14, ji)
|
|
5464
5475
|
], 2));
|
|
5465
5476
|
}
|
|
5466
|
-
}),
|
|
5477
|
+
}), Ji = /* @__PURE__ */ h({
|
|
5467
5478
|
__name: "SvgBundle",
|
|
5468
5479
|
setup(r) {
|
|
5469
5480
|
const s = $();
|
|
5470
5481
|
return M(() => {
|
|
5471
|
-
s.value.innerHTML =
|
|
5482
|
+
s.value.innerHTML = ze.iconsRenderedHtml();
|
|
5472
5483
|
}), (n, e) => P((i(), u("svg", {
|
|
5473
5484
|
id: "sv-icon-holder-global-container",
|
|
5474
5485
|
ref_key: "root",
|
|
@@ -5478,9 +5489,9 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5478
5489
|
]);
|
|
5479
5490
|
}
|
|
5480
5491
|
});
|
|
5481
|
-
|
|
5482
|
-
function
|
|
5483
|
-
r.component("SurveyComponent", pe), r.component("sv-svg-bundle",
|
|
5492
|
+
Ue.platform = "vue3";
|
|
5493
|
+
function Xi(r) {
|
|
5494
|
+
r.component("SurveyComponent", pe), r.component("sv-svg-bundle", Ji), r.component("PopupSurveyComponent", ve), r.component("survey", pe), r.component("popup-survey", ve), r.component("survey-header", Je), r.component("sv-logo-image", Gi), r.component("survey-page", Ge), r.component("survey-row", Xe), r.component("survey-question", es), r.component("survey-panel", ts), r.component("survey-element-header", rs), r.component("survey-string", ls), r.component("sv-string-viewer", us), r.component("sv-string-editor", ms), r.component("sv-skeleton", ps), r.component("survey-text", ys), r.component("survey-text-input", Cs), r.component("survey-checkbox", Is), r.component("survey-checkbox-item", Ts), r.component("survey-radiogroup", $s), r.component("survey-radiogroup-item", Bs), r.component("survey-signaturepad", As), r.component("survey-html", Es), r.component("survey-image", Vs), r.component("survey-expression", Os), r.component("survey-file", Ks), r.component("sv-file-choose-btn", Mi), r.component("sv-file-clean-btn", Li), r.component("sv-file-preview", Vi), r.component("sv-file-video", Pi), r.component("survey-imagepicker", js), r.component("survey-imagepicker-item", Zs), r.component("survey-comment", sn), r.component("survey-dropdown", nn), r.component("sv-dropdown-select", ln), r.component("sv-dropdown-option-item", un), r.component("sv-dropdown", vn), r.component("survey-tagbox", qn), r.component("sv-tagbox", hn), r.component("sv-tagbox-item", wn), r.component("sv-tagbox-filter", kn), r.component("survey-ranking", In), r.component("survey-ranking-item", Dn), r.component("survey-rating", Nn), r.component("sv-rating-item", An), r.component("sv-rating-item-smiley", En), r.component("sv-rating-item-star", Wn), r.component("sv-rating-dropdown", Un), r.component("sv-rating-dropdown-item", zn), r.component("survey-boolean", Qn), r.component("sv-boolean-radio", jn), r.component("sv-boolean-radio-item", Xn), r.component("sv-boolean-checkbox", no), r.component("survey-multipletext", oo), r.component("survey-multipletext-item", io), r.component("survey-matrix", co), r.component("survey-matrix-row", vo), r.component("survey-matrix-cell", go), r.component("survey-matrixdropdown", ho), r.component("survey-matrixtable", ko), r.component("survey-matrixheaderrequired", wo), r.component("survey-matrixdropdown-cell", So), r.component("survey-matrixdynamic", Ro), r.component("sv-matrix-remove-button", $o), r.component("sv-matrix-drag-drop-icon", Do), r.component("sv-matrix-detail-button", Lo), r.component("survey-paneldynamic", No), r.component("survey-paneldynamicprogress", Po), r.component("survey-paneldynamicprogress-v2", Ao), r.component("sv-paneldynamic-add-btn", Mo), r.component("sv-paneldynamic-next-btn", Ho), r.component("sv-paneldynamic-prev-btn", Fo), r.component("sv-paneldynamic-remove-btn", Vo), r.component("sv-paneldynamic-progress-text", Oo), r.component("sv-components-container", Ft), r.component("sv-progress-buttons", Qt), r.component("sv-navigation-toc", jt), r.component("sv-progress-pages", Z), r.component("sv-progress-questions", Z), r.component("sv-progress-correctquestions", Z), r.component("sv-progress-requiredquestions", Z), r.component("survey-errors", Uo), r.component("survey-question-comment", jo), r.component("survey-element-title", Go), r.component("survey-element-title-content", Zo), r.component("sv-title-actions", st), r.component("sv-brand-info", lt), r.component("sv-question-error", mt), r.component("sv-svg-icon", dt), r.component("sv-action-bar", ct), r.component("sv-action", qt), r.component("sv-action-bar-item", ht), r.component("sv-action-bar-item-dropdown", kt), r.component("sv-action-bar-separator", ft), r.component("sv-list", Rt), r.component("sv-list-item", _t), r.component("sv-popup", Dt), r.component("sv-popup-container", Et), r.component("popup-pointer", Ht), r.component("sv-notifier", ni), r.component("survey-other-choice", ii), r.component("sv-nav-btn", li), r.component("survey-customwidget", ui), r.component("survey-popup-modal", di), r.component("sv-character-counter", mi), r.component("survey-composite", ci), r.component("survey-custom", pi), r.component("sv-timerpanel", yi), r.component("sv-loading-indicator", bi), r.component("sv-header", fi), r.component("sv-header-cell", Si), r.component("sv-header-mobile", _i), r.component("sv-template-renderer", Bi), r.component("survey-element", Di), r.component("survey-buttongroup", Oi), r.component("sv-button-group-item", Qi), r.directive("key2click", {
|
|
5484
5495
|
mounted: function(s, n) {
|
|
5485
5496
|
const e = { ...n.value };
|
|
5486
5497
|
if (e.disableTabStop) {
|
|
@@ -5488,21 +5499,21 @@ function Ji(r) {
|
|
|
5488
5499
|
return;
|
|
5489
5500
|
}
|
|
5490
5501
|
e.disableTabStop || (s.tabIndex = 0), s.addEventListener("keyup", (o) => (o.preventDefault(), o.stopPropagation(), ye(o, e), !1)), s.addEventListener("keydown", (o) => {
|
|
5491
|
-
|
|
5502
|
+
Ke(o, e);
|
|
5492
5503
|
}), s.addEventListener("blur", (o) => {
|
|
5493
|
-
|
|
5504
|
+
Qe(o);
|
|
5494
5505
|
});
|
|
5495
5506
|
}
|
|
5496
5507
|
});
|
|
5497
5508
|
}
|
|
5498
|
-
const
|
|
5509
|
+
const xi = {
|
|
5499
5510
|
install(r) {
|
|
5500
|
-
|
|
5511
|
+
Xi(r);
|
|
5501
5512
|
}
|
|
5502
5513
|
};
|
|
5503
5514
|
export {
|
|
5504
|
-
|
|
5505
|
-
|
|
5515
|
+
xi as surveyPlugin,
|
|
5516
|
+
L as useBase,
|
|
5506
5517
|
le as useComputedArray,
|
|
5507
5518
|
J as useLocString,
|
|
5508
5519
|
A as useQuestion
|