survey-vue3-ui 1.9.125 → 1.9.127
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/survey-vue3-ui.es.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { shallowReactive as be, watch as J, onBeforeUnmount as Q, onMounted as H, ref as _, shallowRef as z, watchEffect as ke, triggerRef as
|
|
2
|
-
import { Base as De, RendererFactory as
|
|
1
|
+
import { shallowReactive as be, watch as J, onBeforeUnmount as Q, onMounted as H, ref as _, shallowRef as z, watchEffect as ke, triggerRef as se, unref as f, isRef as fe, defineComponent as h, computed as w, resolveComponent as p, openBlock as i, createElementBlock as u, normalizeClass as l, createVNode as C, createCommentVNode as d, Fragment as $, renderList as B, createBlock as g, resolveDynamicComponent as R, normalizeProps as O, mergeProps as W, withCtx as F, normalizeStyle as S, createElementVNode as c, onUnmounted as U, guardReactiveProps as ne, withDirectives as P, vShow as M, toDisplayString as T, vModelRadio as x, vModelCheckbox as oe, vModelSelect as Ie, onUpdated as te, vModelText as we, 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 ge, createSvg as Pe, ActionDropdownViewModel as Ae, getActionDropdownButtonTarget as Me, createPopupViewModel as de, SurveyProgressModel as me, SurveyProgressButtonsModel as He, PopupSurveyModel as We, settings as j, createDialogOptions as Ee, createPopupModalViewModel as Ve, ButtonGroupItemModel as Fe, SvgRegistry as Oe, SurveyModel as ze, doKey2ClickDown as Ue, doKey2ClickBlur as Ke } from "survey-core";
|
|
3
3
|
De.createPropertiesHash = () => be({});
|
|
4
|
-
function
|
|
4
|
+
function je(r) {
|
|
5
5
|
return !r || r.__vueImplemented ? !1 : (r.createArrayCoreHandler = (s, o) => {
|
|
6
6
|
const e = [], n = z(e);
|
|
7
7
|
return e.onArrayChanged = () => {
|
|
8
|
-
|
|
8
|
+
se(n);
|
|
9
9
|
}, s[o] = n, f(s[o]);
|
|
10
10
|
}, r.iteratePropertiesHash((s, o) => {
|
|
11
11
|
if (Array.isArray(s[o])) {
|
|
12
12
|
const e = z(s[o]);
|
|
13
13
|
s[o].onArrayChanged = () => {
|
|
14
|
-
|
|
14
|
+
se(e);
|
|
15
15
|
}, s[o] = e;
|
|
16
16
|
}
|
|
17
17
|
}), r.getPropertyValueCoreHandler = (s, o) => f(s[o]), r.setPropertyValueCoreHandler = (s, o, e) => {
|
|
@@ -28,7 +28,7 @@ function L(r, s, o) {
|
|
|
28
28
|
const n = J(
|
|
29
29
|
r,
|
|
30
30
|
(t, a) => {
|
|
31
|
-
t && s && s(t, a), a && (ce(a, e), o && o(a)), e =
|
|
31
|
+
t && s && s(t, a), a && (ce(a, e), o && o(a)), e = je(t);
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
immediate: !0
|
|
@@ -68,13 +68,13 @@ function re(r) {
|
|
|
68
68
|
}
|
|
69
69
|
function le(r) {
|
|
70
70
|
const s = z(), o = ke(() => {
|
|
71
|
-
s.value = r(),
|
|
71
|
+
s.value = r(), se(s);
|
|
72
72
|
});
|
|
73
73
|
return Q(() => {
|
|
74
74
|
o();
|
|
75
75
|
}), s;
|
|
76
76
|
}
|
|
77
|
-
const
|
|
77
|
+
const Qe = /* @__PURE__ */ h({
|
|
78
78
|
__name: "Page",
|
|
79
79
|
props: {
|
|
80
80
|
survey: {},
|
|
@@ -82,44 +82,49 @@ const Ge = /* @__PURE__ */ h({
|
|
|
82
82
|
css: {}
|
|
83
83
|
},
|
|
84
84
|
setup(r) {
|
|
85
|
-
const s = r, o = _(null)
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
const s = r, o = _(null), e = () => {
|
|
86
|
+
s.survey && o.value && s.survey.afterRenderPage(o.value);
|
|
87
|
+
};
|
|
88
|
+
L(
|
|
89
|
+
() => s.page,
|
|
90
|
+
() => {
|
|
91
|
+
e();
|
|
92
|
+
}
|
|
93
|
+
);
|
|
94
|
+
const n = w(() => s.page._showDescription);
|
|
88
95
|
return H(() => {
|
|
89
|
-
|
|
90
|
-
}),
|
|
91
|
-
|
|
92
|
-
}), (n, t) => {
|
|
93
|
-
const a = p("survey-element-title"), y = p("survey-string"), m = p("survey-errors"), v = p("survey-row");
|
|
96
|
+
e();
|
|
97
|
+
}), (t, a) => {
|
|
98
|
+
const y = p("survey-element-title"), m = p("survey-string"), q = p("survey-errors"), v = p("survey-row");
|
|
94
99
|
return i(), u("div", {
|
|
95
|
-
class: l(
|
|
100
|
+
class: l(t.page.cssRoot),
|
|
96
101
|
ref_key: "root",
|
|
97
102
|
ref: o
|
|
98
103
|
}, [
|
|
99
|
-
C(
|
|
100
|
-
element:
|
|
101
|
-
css:
|
|
104
|
+
C(y, {
|
|
105
|
+
element: t.page,
|
|
106
|
+
css: t.css
|
|
102
107
|
}, null, 8, ["element", "css"]),
|
|
103
|
-
|
|
108
|
+
n.value ? (i(), u("div", {
|
|
104
109
|
key: 0,
|
|
105
|
-
class: l(
|
|
110
|
+
class: l(t.page.cssClasses.page.description)
|
|
106
111
|
}, [
|
|
107
|
-
C(
|
|
108
|
-
locString:
|
|
112
|
+
C(m, {
|
|
113
|
+
locString: t.page.locDescription
|
|
109
114
|
}, null, 8, ["locString"])
|
|
110
115
|
], 2)) : d("", !0),
|
|
111
|
-
C(
|
|
112
|
-
(i(!0), u($, null, B(
|
|
113
|
-
key:
|
|
116
|
+
C(q, { element: t.page }, null, 8, ["element"]),
|
|
117
|
+
(i(!0), u($, null, B(t.page.rows, (I, b) => (i(), g(R(t.page.getSurvey().getRowWrapperComponentName(I)), O(W({
|
|
118
|
+
key: t.page.id + "_" + b
|
|
114
119
|
}, {
|
|
115
|
-
componentData:
|
|
120
|
+
componentData: t.page.getSurvey().getRowWrapperComponentData(I)
|
|
116
121
|
})), {
|
|
117
|
-
default:
|
|
118
|
-
|
|
122
|
+
default: F(() => [
|
|
123
|
+
I.visible ? (i(), g(v, {
|
|
119
124
|
key: 0,
|
|
120
|
-
row:
|
|
121
|
-
survey:
|
|
122
|
-
css:
|
|
125
|
+
row: I,
|
|
126
|
+
survey: t.survey,
|
|
127
|
+
css: t.css
|
|
123
128
|
}, null, 8, ["row", "survey", "css"])) : d("", !0)
|
|
124
129
|
]),
|
|
125
130
|
_: 2
|
|
@@ -127,7 +132,7 @@ const Ge = /* @__PURE__ */ h({
|
|
|
127
132
|
], 2);
|
|
128
133
|
};
|
|
129
134
|
}
|
|
130
|
-
}),
|
|
135
|
+
}), Ge = /* @__PURE__ */ h({
|
|
131
136
|
__name: "Header",
|
|
132
137
|
props: {
|
|
133
138
|
survey: {}
|
|
@@ -145,7 +150,7 @@ const Ge = /* @__PURE__ */ h({
|
|
|
145
150
|
ref_key: "root",
|
|
146
151
|
ref: o
|
|
147
152
|
}, [
|
|
148
|
-
e.survey.isLogoBefore ? (i(),
|
|
153
|
+
e.survey.isLogoBefore ? (i(), g(R(e.survey.getElementWrapperComponentName(e.survey, "logo-image")), {
|
|
149
154
|
key: 0,
|
|
150
155
|
data: e.survey.getElementWrapperComponentData(e.survey, "logo-image")
|
|
151
156
|
}, null, 8, ["data"])) : d("", !0),
|
|
@@ -167,7 +172,7 @@ const Ge = /* @__PURE__ */ h({
|
|
|
167
172
|
}, null, 8, ["locString"])
|
|
168
173
|
], 2)) : d("", !0)
|
|
169
174
|
], 6)) : d("", !0),
|
|
170
|
-
e.survey.isLogoAfter ? (i(),
|
|
175
|
+
e.survey.isLogoAfter ? (i(), g(R(e.survey.getElementWrapperComponentName(e.survey, "logo-image")), {
|
|
171
176
|
key: 2,
|
|
172
177
|
data: e.survey.getElementWrapperComponentData(e.survey, "logo-image")
|
|
173
178
|
}, null, 8, ["data"])) : d("", !0),
|
|
@@ -177,7 +182,7 @@ const Ge = /* @__PURE__ */ h({
|
|
|
177
182
|
], 2)) : d("", !0);
|
|
178
183
|
};
|
|
179
184
|
}
|
|
180
|
-
}),
|
|
185
|
+
}), Je = /* @__PURE__ */ h({
|
|
181
186
|
__name: "Row",
|
|
182
187
|
props: {
|
|
183
188
|
row: {},
|
|
@@ -210,7 +215,7 @@ const Ge = /* @__PURE__ */ h({
|
|
|
210
215
|
ref_key: "root",
|
|
211
216
|
ref: e
|
|
212
217
|
}, [
|
|
213
|
-
(i(!0), u($, null, B(o.value, (y) => (i(),
|
|
218
|
+
(i(!0), u($, null, B(o.value, (y) => (i(), g(a, {
|
|
214
219
|
row: n.row,
|
|
215
220
|
css: n.css,
|
|
216
221
|
element: y,
|
|
@@ -219,10 +224,10 @@ const Ge = /* @__PURE__ */ h({
|
|
|
219
224
|
], 2);
|
|
220
225
|
};
|
|
221
226
|
}
|
|
222
|
-
}),
|
|
227
|
+
}), Xe = ["id", "role", "aria-required", "aria-invalid", "aria-labelledby", "aria-expanded", "data-name"], Ye = {
|
|
223
228
|
inheritAttrs: !1
|
|
224
|
-
},
|
|
225
|
-
...
|
|
229
|
+
}, Ze = /* @__PURE__ */ h({
|
|
230
|
+
...Ye,
|
|
226
231
|
__name: "Question",
|
|
227
232
|
props: {
|
|
228
233
|
survey: {},
|
|
@@ -239,7 +244,7 @@ const Ge = /* @__PURE__ */ h({
|
|
|
239
244
|
() => {
|
|
240
245
|
y();
|
|
241
246
|
}
|
|
242
|
-
),
|
|
247
|
+
), q = w(() => s.element.customWidget ? "survey-customwidget" : s.element.isDefaultRendering() ? "survey-" + s.element.getTemplate() : s.element.getComponentName()), v = w(() => s.element.survey.getQuestionContentWrapperComponentName(s.element)), I = w(() => ({
|
|
243
248
|
componentData: {
|
|
244
249
|
question: s.element,
|
|
245
250
|
data: s.element.survey.getElementWrapperComponentData(s.element)
|
|
@@ -263,28 +268,28 @@ const Ge = /* @__PURE__ */ h({
|
|
|
263
268
|
"aria-expanded": b.element.ariaExpanded === null ? void 0 : b.element.ariaExpanded === "true",
|
|
264
269
|
"data-name": b.element.name
|
|
265
270
|
}, [
|
|
266
|
-
b.element.showErrorsAboveQuestion ? (i(),
|
|
271
|
+
b.element.showErrorsAboveQuestion ? (i(), g(k, {
|
|
267
272
|
key: 0,
|
|
268
273
|
element: b.element,
|
|
269
274
|
location: "top"
|
|
270
275
|
}, null, 8, ["element"])) : d("", !0),
|
|
271
|
-
b.element.hasTitleOnLeftTop ? (i(),
|
|
276
|
+
b.element.hasTitleOnLeftTop ? (i(), g(D, {
|
|
272
277
|
key: 1,
|
|
273
278
|
element: b.element,
|
|
274
279
|
css: b.css
|
|
275
280
|
}, null, 8, ["element", "css"])) : d("", !0),
|
|
276
|
-
(i(),
|
|
277
|
-
default:
|
|
281
|
+
(i(), g(R(v.value), O(ne(I.value)), {
|
|
282
|
+
default: F(() => [
|
|
278
283
|
P(c("div", {
|
|
279
284
|
class: l(t(b.element) || void 0),
|
|
280
285
|
role: "presentation"
|
|
281
286
|
}, [
|
|
282
|
-
e.value ? (i(),
|
|
287
|
+
e.value ? (i(), g(k, {
|
|
283
288
|
key: 0,
|
|
284
289
|
element: b.element,
|
|
285
290
|
location: "top"
|
|
286
291
|
}, null, 8, ["element"])) : d("", !0),
|
|
287
|
-
b.element.isCollapsed ? d("", !0) : (i(),
|
|
292
|
+
b.element.isCollapsed ? d("", !0) : (i(), g(R(q.value), {
|
|
288
293
|
key: 1,
|
|
289
294
|
question: b.element
|
|
290
295
|
}, null, 8, ["question"])),
|
|
@@ -299,7 +304,7 @@ const Ge = /* @__PURE__ */ h({
|
|
|
299
304
|
]),
|
|
300
305
|
C(V, { question: b.element }, null, 8, ["question"])
|
|
301
306
|
], 2)) : d("", !0),
|
|
302
|
-
n.value ? (i(),
|
|
307
|
+
n.value ? (i(), g(k, {
|
|
303
308
|
key: 3,
|
|
304
309
|
element: b.element,
|
|
305
310
|
location: "bottom"
|
|
@@ -318,23 +323,23 @@ const Ge = /* @__PURE__ */ h({
|
|
|
318
323
|
]),
|
|
319
324
|
_: 1
|
|
320
325
|
}, 16)),
|
|
321
|
-
b.element.hasTitleOnBottom ? (i(),
|
|
326
|
+
b.element.hasTitleOnBottom ? (i(), g(D, {
|
|
322
327
|
key: 2,
|
|
323
328
|
element: b.element,
|
|
324
329
|
css: b.css
|
|
325
330
|
}, null, 8, ["element", "css"])) : d("", !0),
|
|
326
|
-
b.element.showErrorsBelowQuestion ? (i(),
|
|
331
|
+
b.element.showErrorsBelowQuestion ? (i(), g(k, {
|
|
327
332
|
key: 3,
|
|
328
333
|
element: b.element,
|
|
329
334
|
location: "bottom"
|
|
330
335
|
}, null, 8, ["element"])) : d("", !0)
|
|
331
|
-
], 46,
|
|
336
|
+
], 46, Xe);
|
|
332
337
|
};
|
|
333
338
|
}
|
|
334
|
-
}),
|
|
339
|
+
}), xe = ["id"], es = ["id"], ss = {
|
|
335
340
|
inheritAttrs: !1
|
|
336
|
-
},
|
|
337
|
-
...
|
|
341
|
+
}, ns = /* @__PURE__ */ h({
|
|
342
|
+
...ss,
|
|
338
343
|
inheritAttrs: !1,
|
|
339
344
|
__name: "Panel",
|
|
340
345
|
props: {
|
|
@@ -347,25 +352,25 @@ const Ge = /* @__PURE__ */ h({
|
|
|
347
352
|
return L(() => s.element), H(() => {
|
|
348
353
|
s.element.survey && s.element.survey.afterRenderPanel(s.element, o.value);
|
|
349
354
|
}), (n, t) => {
|
|
350
|
-
const a = p("survey-errors"), y = p("survey-element-header"), m = p("survey-row"),
|
|
355
|
+
const a = p("survey-errors"), y = p("survey-element-header"), m = p("survey-row"), q = p("sv-action-bar");
|
|
351
356
|
return n.element.isVisible ? (i(), u("div", {
|
|
352
357
|
key: 0,
|
|
353
358
|
class: l(n.element.getContainerCss()),
|
|
354
359
|
id: n.element.id,
|
|
355
|
-
onFocusin: t[0] || (t[0] = (
|
|
360
|
+
onFocusin: t[0] || (t[0] = (v) => n.element.focusIn()),
|
|
356
361
|
ref_key: "root",
|
|
357
362
|
ref: o
|
|
358
363
|
}, [
|
|
359
|
-
n.element.showErrorsAbovePanel ? (i(),
|
|
364
|
+
n.element.showErrorsAbovePanel ? (i(), g(a, {
|
|
360
365
|
key: 0,
|
|
361
366
|
element: n.element
|
|
362
367
|
}, null, 8, ["element"])) : d("", !0),
|
|
363
|
-
n.element.hasTitle || n.element.hasDescription ? (i(),
|
|
368
|
+
n.element.hasTitle || n.element.hasDescription ? (i(), g(y, {
|
|
364
369
|
key: 1,
|
|
365
370
|
element: n.element,
|
|
366
371
|
css: n.css
|
|
367
372
|
}, null, 8, ["element", "css"])) : d("", !0),
|
|
368
|
-
n.element.showErrorsAbovePanel ? d("", !0) : (i(),
|
|
373
|
+
n.element.showErrorsAbovePanel ? d("", !0) : (i(), g(a, {
|
|
369
374
|
key: 2,
|
|
370
375
|
element: n.element
|
|
371
376
|
}, null, 8, ["element"])),
|
|
@@ -375,29 +380,29 @@ const Ge = /* @__PURE__ */ h({
|
|
|
375
380
|
style: S({ paddingLeft: n.element.innerPaddingLeft }),
|
|
376
381
|
class: l(n.element.cssClasses.panel.content)
|
|
377
382
|
}, [
|
|
378
|
-
(i(!0), u($, null, B(n.element.rows, (
|
|
383
|
+
(i(!0), u($, null, B(n.element.rows, (v, I) => (i(), g(R(n.element.getSurvey().getRowWrapperComponentName(v)), O(W({
|
|
379
384
|
key: n.element.id + "_" + I
|
|
380
385
|
}, {
|
|
381
|
-
componentData: n.element.getSurvey().getRowWrapperComponentData(
|
|
386
|
+
componentData: n.element.getSurvey().getRowWrapperComponentData(v)
|
|
382
387
|
})), {
|
|
383
|
-
default:
|
|
384
|
-
|
|
388
|
+
default: F(() => [
|
|
389
|
+
v.visible ? (i(), g(m, {
|
|
385
390
|
key: 0,
|
|
386
|
-
row:
|
|
391
|
+
row: v,
|
|
387
392
|
survey: e.value,
|
|
388
393
|
css: n.css
|
|
389
394
|
}, null, 8, ["row", "survey", "css"])) : d("", !0)
|
|
390
395
|
]),
|
|
391
396
|
_: 2
|
|
392
397
|
}, 1040))), 128)),
|
|
393
|
-
C(
|
|
398
|
+
C(q, {
|
|
394
399
|
model: n.element.getFooterToolbar()
|
|
395
400
|
}, null, 8, ["model"])
|
|
396
|
-
], 14,
|
|
397
|
-
], 42,
|
|
401
|
+
], 14, es))
|
|
402
|
+
], 42, xe)) : d("", !0);
|
|
398
403
|
};
|
|
399
404
|
}
|
|
400
|
-
}),
|
|
405
|
+
}), os = /* @__PURE__ */ h({
|
|
401
406
|
__name: "ElementHeader",
|
|
402
407
|
props: {
|
|
403
408
|
element: {},
|
|
@@ -427,27 +432,27 @@ const Ge = /* @__PURE__ */ h({
|
|
|
427
432
|
], 2)), [
|
|
428
433
|
[M, e.element.hasDescription]
|
|
429
434
|
]) : d("", !0),
|
|
430
|
-
e.element.additionalTitleToolbar ? (i(),
|
|
435
|
+
e.element.additionalTitleToolbar ? (i(), g(y, {
|
|
431
436
|
key: 1,
|
|
432
437
|
model: e.element.additionalTitleToolbar
|
|
433
438
|
}, null, 8, ["model"])) : d("", !0)
|
|
434
439
|
], 2);
|
|
435
440
|
};
|
|
436
441
|
}
|
|
437
|
-
}),
|
|
442
|
+
}), ts = /* @__PURE__ */ h({
|
|
438
443
|
__name: "String",
|
|
439
444
|
props: {
|
|
440
445
|
locString: {}
|
|
441
446
|
},
|
|
442
447
|
setup(r) {
|
|
443
|
-
return (s, o) => (i(),
|
|
448
|
+
return (s, o) => (i(), g(R(s.locString.renderAs), {
|
|
444
449
|
locString: s.locString.renderAsData
|
|
445
450
|
}, null, 8, ["locString"]));
|
|
446
451
|
}
|
|
447
|
-
}),
|
|
452
|
+
}), is = ["innerHTML"], rs = {
|
|
448
453
|
key: 1,
|
|
449
454
|
class: "sv-string-viewer"
|
|
450
|
-
},
|
|
455
|
+
}, ls = /* @__PURE__ */ h({
|
|
451
456
|
__name: "StringViewer",
|
|
452
457
|
props: {
|
|
453
458
|
locString: {}
|
|
@@ -458,9 +463,9 @@ const Ge = /* @__PURE__ */ h({
|
|
|
458
463
|
key: 0,
|
|
459
464
|
class: "sv-string-viewer",
|
|
460
465
|
innerHTML: f(o)
|
|
461
|
-
}, null, 8,
|
|
466
|
+
}, null, 8, is)) : (i(), u("span", rs, T(f(o)), 1));
|
|
462
467
|
}
|
|
463
|
-
}),
|
|
468
|
+
}), as = ["innerHTML"], us = /* @__PURE__ */ h({
|
|
464
469
|
__name: "StringEditor",
|
|
465
470
|
props: {
|
|
466
471
|
locString: {}
|
|
@@ -479,15 +484,15 @@ const Ge = /* @__PURE__ */ h({
|
|
|
479
484
|
innerHTML: n.locString.renderedHtml,
|
|
480
485
|
onBlur: o,
|
|
481
486
|
onClick: e
|
|
482
|
-
}, null, 40,
|
|
487
|
+
}, null, 40, as)) : (i(), u("span", {
|
|
483
488
|
key: 1,
|
|
484
489
|
class: "sv-string-editor",
|
|
485
490
|
contenteditable: "true",
|
|
486
491
|
onBlur: o,
|
|
487
492
|
onClick: e
|
|
488
|
-
},
|
|
493
|
+
}, T(n.locString.renderedHtml), 33));
|
|
489
494
|
}
|
|
490
|
-
}),
|
|
495
|
+
}), ds = ["id"], ms = /* @__PURE__ */ h({
|
|
491
496
|
__name: "Skeleton",
|
|
492
497
|
props: {
|
|
493
498
|
element: {}
|
|
@@ -497,9 +502,9 @@ const Ge = /* @__PURE__ */ h({
|
|
|
497
502
|
return L(() => s.element), (o, e) => (i(), u("div", {
|
|
498
503
|
class: "sv-skeleton-element",
|
|
499
504
|
id: o.element.id
|
|
500
|
-
}, null, 8,
|
|
505
|
+
}, null, 8, ds));
|
|
501
506
|
}
|
|
502
|
-
}),
|
|
507
|
+
}), cs = ["id"], ps = ["value"], vs = /* @__PURE__ */ h({
|
|
503
508
|
inheritAttrs: !1,
|
|
504
509
|
__name: "Text",
|
|
505
510
|
props: {
|
|
@@ -513,7 +518,7 @@ const Ge = /* @__PURE__ */ h({
|
|
|
513
518
|
key: 0,
|
|
514
519
|
ref_key: "root",
|
|
515
520
|
ref: o
|
|
516
|
-
},
|
|
521
|
+
}, T(e.question.value), 513)) : e.question.dataListId ? (i(), u("div", {
|
|
517
522
|
key: 1,
|
|
518
523
|
ref_key: "root",
|
|
519
524
|
ref: o
|
|
@@ -522,9 +527,9 @@ const Ge = /* @__PURE__ */ h({
|
|
|
522
527
|
c("datalist", {
|
|
523
528
|
id: e.question.dataListId
|
|
524
529
|
}, [
|
|
525
|
-
(i(!0), u($, null, B(e.question.dataList, (a) => (i(), u("option", { value: a }, null, 8,
|
|
526
|
-
], 8,
|
|
527
|
-
], 512)) : (i(),
|
|
530
|
+
(i(!0), u($, null, B(e.question.dataList, (a) => (i(), u("option", { value: a }, null, 8, ps))), 256))
|
|
531
|
+
], 8, cs)
|
|
532
|
+
], 512)) : (i(), g(t, {
|
|
528
533
|
key: 2,
|
|
529
534
|
question: e.question,
|
|
530
535
|
ref_key: "root",
|
|
@@ -532,7 +537,7 @@ const Ge = /* @__PURE__ */ h({
|
|
|
532
537
|
}, null, 8, ["question"]));
|
|
533
538
|
};
|
|
534
539
|
}
|
|
535
|
-
}),
|
|
540
|
+
}), ys = ["disabled", "type", "maxlength", "min", "max", "step", "size", "id", "list", "placeholder", "autocomplete", "value", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], qs = { key: 1 }, gs = ["disabled", "type", "maxlength", "min", "max", "step", "size", "id", "list", "placeholder", "autocomplete", "value", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], hs = /* @__PURE__ */ h({
|
|
536
541
|
__name: "TextInput",
|
|
537
542
|
props: {
|
|
538
543
|
question: {}
|
|
@@ -543,7 +548,7 @@ const Ge = /* @__PURE__ */ h({
|
|
|
543
548
|
const o = w(() => s.question.inputStyle);
|
|
544
549
|
return (e, n) => {
|
|
545
550
|
const t = p("sv-character-counter");
|
|
546
|
-
return e.question.getMaxLength() ? (i(), u("div",
|
|
551
|
+
return e.question.getMaxLength() ? (i(), u("div", qs, [
|
|
547
552
|
c("input", {
|
|
548
553
|
disabled: e.question.isInputReadOnly,
|
|
549
554
|
class: l(e.question.getControlClass()),
|
|
@@ -570,7 +575,7 @@ const Ge = /* @__PURE__ */ h({
|
|
|
570
575
|
"aria-labelledby": e.question.a11y_input_ariaLabelledBy,
|
|
571
576
|
"aria-invalid": e.question.a11y_input_ariaInvalid,
|
|
572
577
|
"aria-describedby": e.question.a11y_input_ariaDescribedBy
|
|
573
|
-
}, null, 46,
|
|
578
|
+
}, null, 46, gs),
|
|
574
579
|
C(t, {
|
|
575
580
|
counter: e.question.characterCounter,
|
|
576
581
|
remainingCharacterCounter: e.question.cssClasses.remainingCharacterCounter
|
|
@@ -602,13 +607,13 @@ const Ge = /* @__PURE__ */ h({
|
|
|
602
607
|
"aria-labelledby": e.question.a11y_input_ariaLabelledBy,
|
|
603
608
|
"aria-invalid": e.question.a11y_input_ariaInvalid,
|
|
604
609
|
"aria-describedby": e.question.a11y_input_ariaDescribedBy
|
|
605
|
-
}, null, 46,
|
|
610
|
+
}, null, 46, ys));
|
|
606
611
|
};
|
|
607
612
|
}
|
|
608
|
-
}),
|
|
613
|
+
}), Cs = ["role", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], bs = {
|
|
609
614
|
key: 0,
|
|
610
615
|
class: "sv-hidden"
|
|
611
|
-
},
|
|
616
|
+
}, ks = { key: 7 }, fs = ["value"], he = /* @__PURE__ */ h({
|
|
612
617
|
inheritAttrs: !1,
|
|
613
618
|
__name: "SelectBase",
|
|
614
619
|
props: {
|
|
@@ -639,18 +644,18 @@ const Ge = /* @__PURE__ */ h({
|
|
|
639
644
|
"aria-invalid": t.question.a11y_input_ariaInvalid,
|
|
640
645
|
"aria-describedby": t.question.a11y_input_ariaDescribedBy
|
|
641
646
|
}, [
|
|
642
|
-
t.showLegend ? (i(), u("legend",
|
|
643
|
-
t.question.hasHeadItems ? (i(!0), u($, { key: 1 }, B(t.question.headItems, (m) => (i(),
|
|
647
|
+
t.showLegend ? (i(), u("legend", bs, T(t.question.locTitle.renderedHtml), 1)) : d("", !0),
|
|
648
|
+
t.question.hasHeadItems ? (i(!0), u($, { key: 1 }, B(t.question.headItems, (m) => (i(), g(R(e(m)), W({
|
|
644
649
|
key: m.value
|
|
645
650
|
}, n(m)), null, 16))), 128)) : d("", !0),
|
|
646
|
-
!t.question.hasColumns && !t.question.blockedRow ? (i(!0), u($, { key: 2 }, B(t.question.bodyItems, (m) => (i(),
|
|
651
|
+
!t.question.hasColumns && !t.question.blockedRow ? (i(!0), u($, { key: 2 }, B(t.question.bodyItems, (m) => (i(), g(R(e(m)), W({
|
|
647
652
|
key: m.value
|
|
648
653
|
}, n(m)), null, 16))), 128)) : d("", !0),
|
|
649
654
|
t.question.blockedRow ? (i(), u("div", {
|
|
650
655
|
key: 3,
|
|
651
656
|
class: l(t.question.cssClasses.rootRow)
|
|
652
657
|
}, [
|
|
653
|
-
!t.question.hasColumns && t.question.blockedRow ? (i(!0), u($, { key: 0 }, B(t.question.dataChoices, (m) => (i(),
|
|
658
|
+
!t.question.hasColumns && t.question.blockedRow ? (i(!0), u($, { key: 0 }, B(t.question.dataChoices, (m) => (i(), g(R(e(m)), W({
|
|
654
659
|
key: m.value
|
|
655
660
|
}, n(m)), null, 16))), 128)) : d("", !0)
|
|
656
661
|
], 2)) : d("", !0),
|
|
@@ -658,24 +663,24 @@ const Ge = /* @__PURE__ */ h({
|
|
|
658
663
|
key: 4,
|
|
659
664
|
class: l(t.question.cssClasses.rootMultiColumn)
|
|
660
665
|
}, [
|
|
661
|
-
t.question.hasColumns ? (i(!0), u($, { key: 0 }, B(t.question.columns, (m,
|
|
662
|
-
key:
|
|
666
|
+
t.question.hasColumns ? (i(!0), u($, { key: 0 }, B(t.question.columns, (m, q) => (i(), u("div", {
|
|
667
|
+
key: q,
|
|
663
668
|
class: l(t.question.getColumnClass()),
|
|
664
669
|
role: "presentation"
|
|
665
670
|
}, [
|
|
666
|
-
(i(!0), u($, null, B(m, (
|
|
667
|
-
key:
|
|
668
|
-
}, n(
|
|
671
|
+
(i(!0), u($, null, B(m, (v) => (i(), g(R(e(v)), W({
|
|
672
|
+
key: v.value
|
|
673
|
+
}, n(v)), null, 16))), 128))
|
|
669
674
|
], 2))), 128)) : d("", !0)
|
|
670
675
|
], 2)) : d("", !0),
|
|
671
|
-
t.question.hasFootItems ? (i(!0), u($, { key: 5 }, B(t.question.footItems, (m) => (i(),
|
|
676
|
+
t.question.hasFootItems ? (i(!0), u($, { key: 5 }, B(t.question.footItems, (m) => (i(), g(R(e(m)), W({
|
|
672
677
|
key: m.value
|
|
673
678
|
}, n(m)), null, 16))), 128)) : d("", !0),
|
|
674
|
-
t.question.renderedValue && t.question.isOtherSelected ? (i(),
|
|
679
|
+
t.question.renderedValue && t.question.isOtherSelected ? (i(), g(y, {
|
|
675
680
|
key: 6,
|
|
676
681
|
question: t.question
|
|
677
682
|
}, null, 8, ["question"])) : d("", !0),
|
|
678
|
-
t.question.showClearButtonInContent ? (i(), u("div",
|
|
683
|
+
t.question.showClearButtonInContent ? (i(), u("div", ks, [
|
|
679
684
|
c("input", {
|
|
680
685
|
type: "button",
|
|
681
686
|
class: l(t.question.cssClasses.clearButton),
|
|
@@ -683,24 +688,24 @@ const Ge = /* @__PURE__ */ h({
|
|
|
683
688
|
t.question.clearValue();
|
|
684
689
|
}),
|
|
685
690
|
value: t.question.clearButtonCaption
|
|
686
|
-
}, null, 10,
|
|
691
|
+
}, null, 10, fs)
|
|
687
692
|
])) : d("", !0)
|
|
688
|
-
], 10,
|
|
693
|
+
], 10, Cs);
|
|
689
694
|
};
|
|
690
695
|
}
|
|
691
|
-
}),
|
|
696
|
+
}), Is = /* @__PURE__ */ h({
|
|
692
697
|
inheritAttrs: !1,
|
|
693
698
|
__name: "Checkbox",
|
|
694
699
|
props: {
|
|
695
700
|
question: {}
|
|
696
701
|
},
|
|
697
702
|
setup(r) {
|
|
698
|
-
return (s, o) => (i(),
|
|
703
|
+
return (s, o) => (i(), g(he, {
|
|
699
704
|
question: s.question,
|
|
700
705
|
"show-legend": !0
|
|
701
706
|
}, null, 8, ["question"]));
|
|
702
707
|
}
|
|
703
|
-
}),
|
|
708
|
+
}), ws = ["name", "checked", "value", "id", "disabled"], Ss = ["xlink:href"], Rs = /* @__PURE__ */ h({
|
|
704
709
|
inheritAttrs: !1,
|
|
705
710
|
__name: "CheckboxItem",
|
|
706
711
|
props: {
|
|
@@ -735,7 +740,7 @@ const Ge = /* @__PURE__ */ h({
|
|
|
735
740
|
id: e.question.getItemId(e.item),
|
|
736
741
|
disabled: !e.question.getItemEnabled(e.item),
|
|
737
742
|
class: l(e.question.cssClasses.itemControl)
|
|
738
|
-
}, null, 42,
|
|
743
|
+
}, null, 42, ws),
|
|
739
744
|
e.question.cssClasses.materialDecorator ? (i(), u("span", {
|
|
740
745
|
key: 0,
|
|
741
746
|
class: l(e.question.cssClasses.materialDecorator)
|
|
@@ -746,7 +751,7 @@ const Ge = /* @__PURE__ */ h({
|
|
|
746
751
|
}, [
|
|
747
752
|
c("use", {
|
|
748
753
|
"xlink:href": e.question.itemSvgIcon
|
|
749
|
-
}, null, 8,
|
|
754
|
+
}, null, 8, Ss)
|
|
750
755
|
], 2)) : d("", !0)
|
|
751
756
|
], 2)) : d("", !0),
|
|
752
757
|
e.hideLabel ? d("", !0) : (i(), u("span", {
|
|
@@ -761,16 +766,16 @@ const Ge = /* @__PURE__ */ h({
|
|
|
761
766
|
], 2);
|
|
762
767
|
};
|
|
763
768
|
}
|
|
764
|
-
}),
|
|
769
|
+
}), Ts = /* @__PURE__ */ h({
|
|
765
770
|
inheritAttrs: !1,
|
|
766
771
|
__name: "Radiogroup",
|
|
767
772
|
props: {
|
|
768
773
|
question: {}
|
|
769
774
|
},
|
|
770
775
|
setup(r) {
|
|
771
|
-
return (s, o) => (i(),
|
|
776
|
+
return (s, o) => (i(), g(he, { question: s.question }, null, 8, ["question"]));
|
|
772
777
|
}
|
|
773
|
-
}),
|
|
778
|
+
}), $s = ["name", "value", "id", "aria-describedby", "disabled"], _s = ["xlink:href"], Ds = /* @__PURE__ */ h({
|
|
774
779
|
inheritAttrs: !1,
|
|
775
780
|
__name: "RadiogroupItem",
|
|
776
781
|
props: {
|
|
@@ -805,8 +810,8 @@ const Ge = /* @__PURE__ */ h({
|
|
|
805
810
|
"onUpdate:modelValue": a[0] || (a[0] = (m) => n.value = m),
|
|
806
811
|
disabled: !t.question.getItemEnabled(t.item),
|
|
807
812
|
class: l(t.question.cssClasses.itemControl)
|
|
808
|
-
}, null, 10,
|
|
809
|
-
[
|
|
813
|
+
}, null, 10, $s), [
|
|
814
|
+
[x, n.value]
|
|
810
815
|
]),
|
|
811
816
|
t.question.cssClasses.materialDecorator ? (i(), u("span", {
|
|
812
817
|
key: 0,
|
|
@@ -818,7 +823,7 @@ const Ge = /* @__PURE__ */ h({
|
|
|
818
823
|
}, [
|
|
819
824
|
c("use", {
|
|
820
825
|
"xlink:href": t.question.itemSvgIcon
|
|
821
|
-
}, null, 8,
|
|
826
|
+
}, null, 8, _s)
|
|
822
827
|
], 2)) : d("", !0)
|
|
823
828
|
], 2)) : d("", !0),
|
|
824
829
|
t.hideLabel ? d("", !0) : (i(), u("span", {
|
|
@@ -833,7 +838,7 @@ const Ge = /* @__PURE__ */ h({
|
|
|
833
838
|
], 2);
|
|
834
839
|
};
|
|
835
840
|
}
|
|
836
|
-
}),
|
|
841
|
+
}), Bs = ["src"], Ls = ["title"], Ns = { key: 0 }, Ps = /* @__PURE__ */ h({
|
|
837
842
|
inheritAttrs: !1,
|
|
838
843
|
__name: "Signaturepad",
|
|
839
844
|
props: {
|
|
@@ -868,9 +873,9 @@ const Ge = /* @__PURE__ */ h({
|
|
|
868
873
|
style: S({
|
|
869
874
|
width: e.question.renderedCanvasWidth
|
|
870
875
|
})
|
|
871
|
-
}, null, 14,
|
|
876
|
+
}, null, 14, Bs)) : d("", !0),
|
|
872
877
|
c("canvas", {
|
|
873
|
-
tabindex: "
|
|
878
|
+
tabindex: "-1",
|
|
874
879
|
class: l(e.question.cssClasses.canvas),
|
|
875
880
|
onBlur: n[0] || (n[0] = (...m) => e.question.onBlur && e.question.onBlur(...m))
|
|
876
881
|
}, null, 34)
|
|
@@ -887,13 +892,13 @@ const Ge = /* @__PURE__ */ h({
|
|
|
887
892
|
e.question.clearValue();
|
|
888
893
|
})
|
|
889
894
|
}, [
|
|
890
|
-
e.question.cssClasses.clearButtonIconId ? d("", !0) : (i(), u("span",
|
|
891
|
-
e.question.cssClasses.clearButtonIconId ? (i(),
|
|
895
|
+
e.question.cssClasses.clearButtonIconId ? d("", !0) : (i(), u("span", Ns, "\u2716")),
|
|
896
|
+
e.question.cssClasses.clearButtonIconId ? (i(), g(a, {
|
|
892
897
|
key: 1,
|
|
893
898
|
iconName: e.question.cssClasses.clearButtonIconId,
|
|
894
899
|
size: "auto"
|
|
895
900
|
}, null, 8, ["iconName"])) : d("", !0)
|
|
896
|
-
], 10,
|
|
901
|
+
], 10, Ls)
|
|
897
902
|
], 2)) : d("", !0),
|
|
898
903
|
e.question.showLoadingIndicator ? (i(), u("div", {
|
|
899
904
|
key: 1,
|
|
@@ -904,7 +909,7 @@ const Ge = /* @__PURE__ */ h({
|
|
|
904
909
|
], 6);
|
|
905
910
|
};
|
|
906
911
|
}
|
|
907
|
-
}),
|
|
912
|
+
}), As = ["innerHTML"], Ms = /* @__PURE__ */ h({
|
|
908
913
|
inheritAttrs: !1,
|
|
909
914
|
__name: "Html",
|
|
910
915
|
props: {
|
|
@@ -919,9 +924,9 @@ const Ge = /* @__PURE__ */ h({
|
|
|
919
924
|
ref: o,
|
|
920
925
|
class: l(n.question.renderCssRoot),
|
|
921
926
|
innerHTML: f(e)
|
|
922
|
-
}, null, 10,
|
|
927
|
+
}, null, 10, As));
|
|
923
928
|
}
|
|
924
|
-
}),
|
|
929
|
+
}), Hs = ["src", "alt", "width", "height"], Ws = ["src", "width", "height"], Es = ["src", "width", "height"], Vs = /* @__PURE__ */ h({
|
|
925
930
|
inheritAttrs: !1,
|
|
926
931
|
__name: "Image",
|
|
927
932
|
props: {
|
|
@@ -956,7 +961,7 @@ const Ge = /* @__PURE__ */ h({
|
|
|
956
961
|
onError: t[1] || (t[1] = (y) => {
|
|
957
962
|
n.question.onErrorHandler();
|
|
958
963
|
})
|
|
959
|
-
}, null, 46,
|
|
964
|
+
}, null, 46, Hs)), [
|
|
960
965
|
[M, f(e) && !n.question.contentNotLoaded]
|
|
961
966
|
]) : d("", !0),
|
|
962
967
|
n.question.renderedMode === "video" ? P((i(), u("video", {
|
|
@@ -977,7 +982,7 @@ const Ge = /* @__PURE__ */ h({
|
|
|
977
982
|
onError: t[3] || (t[3] = (y) => {
|
|
978
983
|
n.question.onErrorHandler();
|
|
979
984
|
})
|
|
980
|
-
}, null, 46,
|
|
985
|
+
}, null, 46, Ws)), [
|
|
981
986
|
[M, f(e) && !n.question.contentNotLoaded]
|
|
982
987
|
]) : d("", !0),
|
|
983
988
|
n.question.renderedMode === "youtube" ? (i(), u("iframe", {
|
|
@@ -991,7 +996,7 @@ const Ge = /* @__PURE__ */ h({
|
|
|
991
996
|
width: n.question.renderedStyleWidth,
|
|
992
997
|
height: n.question.renderedStyleHeight
|
|
993
998
|
})
|
|
994
|
-
}, null, 14,
|
|
999
|
+
}, null, 14, Es)) : d("", !0),
|
|
995
1000
|
!f(e) || n.question.contentNotLoaded ? (i(), u("div", {
|
|
996
1001
|
key: 3,
|
|
997
1002
|
class: l(n.question.cssClasses.noImage)
|
|
@@ -1016,9 +1021,9 @@ const Ge = /* @__PURE__ */ h({
|
|
|
1016
1021
|
class: l(e.question.cssClasses.root),
|
|
1017
1022
|
ref_key: "root",
|
|
1018
1023
|
ref: o
|
|
1019
|
-
},
|
|
1024
|
+
}, T(e.question.formatedValue), 3));
|
|
1020
1025
|
}
|
|
1021
|
-
}),
|
|
1026
|
+
}), Os = ["id", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "multiple", "title", "accept", "capture"], zs = ["id", "multiple", "placeholder"], Us = /* @__PURE__ */ h({
|
|
1022
1027
|
inheritAttrs: !1,
|
|
1023
1028
|
__name: "File",
|
|
1024
1029
|
props: {
|
|
@@ -1027,7 +1032,7 @@ const Ge = /* @__PURE__ */ h({
|
|
|
1027
1032
|
setup(r) {
|
|
1028
1033
|
const s = r, o = _(null);
|
|
1029
1034
|
return A(s, o), (e, n) => {
|
|
1030
|
-
const t = p("survey-string"), a = p("sv-file-choose-btn"), y = p("sv-action-bar"), m = p("sv-file-clean-btn"),
|
|
1035
|
+
const t = p("survey-string"), a = p("sv-file-choose-btn"), y = p("sv-action-bar"), m = p("sv-file-clean-btn"), q = p("sv-loading-indicator"), v = p("sv-file-video"), I = p("sv-file-preview");
|
|
1031
1036
|
return i(), u("div", {
|
|
1032
1037
|
class: l(e.question.fileRootCss),
|
|
1033
1038
|
ref_key: "root",
|
|
@@ -1048,7 +1053,7 @@ const Ge = /* @__PURE__ */ h({
|
|
|
1048
1053
|
title: e.question.inputTitle,
|
|
1049
1054
|
accept: e.question.acceptedTypes,
|
|
1050
1055
|
capture: e.question.renderCapture
|
|
1051
|
-
}, null, 42,
|
|
1056
|
+
}, null, 42, Os)) : d("", !0),
|
|
1052
1057
|
e.question.isReadOnly ? (i(), u("input", {
|
|
1053
1058
|
key: 1,
|
|
1054
1059
|
type: "file",
|
|
@@ -1058,7 +1063,7 @@ const Ge = /* @__PURE__ */ h({
|
|
|
1058
1063
|
multiple: e.question.allowMultiple,
|
|
1059
1064
|
placeholder: e.question.title,
|
|
1060
1065
|
style: { color: "transparent" }
|
|
1061
|
-
}, null, 10,
|
|
1066
|
+
}, null, 10, zs)) : d("", !0),
|
|
1062
1067
|
c("div", {
|
|
1063
1068
|
class: l(e.question.cssClasses.dragArea),
|
|
1064
1069
|
onDrop: n[1] || (n[1] = (...b) => e.question.onDrop && e.question.onDrop(...b)),
|
|
@@ -1080,21 +1085,21 @@ const Ge = /* @__PURE__ */ h({
|
|
|
1080
1085
|
c("div", {
|
|
1081
1086
|
class: l(e.question.cssClasses.wrapper)
|
|
1082
1087
|
}, [
|
|
1083
|
-
e.question.showChooseButton ? (i(),
|
|
1088
|
+
e.question.showChooseButton ? (i(), g(a, {
|
|
1084
1089
|
key: 0,
|
|
1085
1090
|
data: { question: e.question }
|
|
1086
1091
|
}, null, 8, ["data"])) : d("", !0),
|
|
1087
|
-
e.question.actionsContainerVisible ? (i(),
|
|
1092
|
+
e.question.actionsContainerVisible ? (i(), g(y, {
|
|
1088
1093
|
key: 1,
|
|
1089
1094
|
model: e.question.actionsContainer
|
|
1090
1095
|
}, null, 8, ["model"])) : d("", !0),
|
|
1091
1096
|
e.question.isEmpty() ? (i(), u("span", {
|
|
1092
1097
|
key: 2,
|
|
1093
1098
|
class: l(e.question.cssClasses.noFileChosen)
|
|
1094
|
-
},
|
|
1099
|
+
}, T(e.question.noFileChosenCaption), 3)) : d("", !0)
|
|
1095
1100
|
], 2)
|
|
1096
1101
|
], 2)) : d("", !0),
|
|
1097
|
-
e.question.showRemoveButton ? (i(),
|
|
1102
|
+
e.question.showRemoveButton ? (i(), g(m, {
|
|
1098
1103
|
key: 1,
|
|
1099
1104
|
question: e.question,
|
|
1100
1105
|
css: e.question.showRemoveButton
|
|
@@ -1103,22 +1108,22 @@ const Ge = /* @__PURE__ */ h({
|
|
|
1103
1108
|
key: 2,
|
|
1104
1109
|
class: l(e.question.cssClasses.loadingIndicator)
|
|
1105
1110
|
}, [
|
|
1106
|
-
C(
|
|
1111
|
+
C(q)
|
|
1107
1112
|
], 2)) : d("", !0),
|
|
1108
|
-
e.question.isPlayingVideo ? (i(),
|
|
1113
|
+
e.question.isPlayingVideo ? (i(), g(v, {
|
|
1109
1114
|
key: 3,
|
|
1110
1115
|
question: e.question
|
|
1111
1116
|
}, null, 8, ["question"])) : d("", !0),
|
|
1112
|
-
e.question.allowShowPreview ? (i(),
|
|
1117
|
+
e.question.allowShowPreview ? (i(), g(I, {
|
|
1113
1118
|
key: 4,
|
|
1114
1119
|
question: e.question
|
|
1115
1120
|
}, null, 8, ["question"])) : d("", !0),
|
|
1116
|
-
e.question.showRemoveButtonBottom ? (i(),
|
|
1121
|
+
e.question.showRemoveButtonBottom ? (i(), g(m, {
|
|
1117
1122
|
key: 5,
|
|
1118
1123
|
question: e.question,
|
|
1119
1124
|
css: e.question.showRemoveButtonBottom
|
|
1120
1125
|
}, null, 8, ["question", "css"])) : d("", !0),
|
|
1121
|
-
e.question.fileNavigatorVisible ? (i(),
|
|
1126
|
+
e.question.fileNavigatorVisible ? (i(), g(y, {
|
|
1122
1127
|
key: 6,
|
|
1123
1128
|
model: e.question.fileNavigator
|
|
1124
1129
|
}, null, 8, ["model"])) : d("", !0)
|
|
@@ -1126,7 +1131,7 @@ const Ge = /* @__PURE__ */ h({
|
|
|
1126
1131
|
], 2);
|
|
1127
1132
|
};
|
|
1128
1133
|
}
|
|
1129
|
-
}),
|
|
1134
|
+
}), Ks = { class: "sv-hidden" }, pe = "survey-imagepicker-item", js = /* @__PURE__ */ h({
|
|
1130
1135
|
inheritAttrs: !1,
|
|
1131
1136
|
__name: "Imagepicker",
|
|
1132
1137
|
props: {
|
|
@@ -1148,8 +1153,8 @@ const Ge = /* @__PURE__ */ h({
|
|
|
1148
1153
|
ref_key: "root",
|
|
1149
1154
|
ref: o
|
|
1150
1155
|
}, [
|
|
1151
|
-
c("legend",
|
|
1152
|
-
t.question.hasColumns ? d("", !0) : (i(!0), u($, { key: 0 }, B(t.question.visibleChoices, (y) => (i(),
|
|
1156
|
+
c("legend", Ks, T(t.question.locTitle.renderedHtml), 1),
|
|
1157
|
+
t.question.hasColumns ? d("", !0) : (i(!0), u($, { key: 0 }, B(t.question.visibleChoices, (y) => (i(), g(R(e(y)), W({
|
|
1153
1158
|
key: y.value
|
|
1154
1159
|
}, n(y)), null, 16))), 128)),
|
|
1155
1160
|
t.question.hasColumns ? (i(!0), u($, { key: 1 }, B(t.question.columns, (y, m) => (i(), u("div", {
|
|
@@ -1157,13 +1162,13 @@ const Ge = /* @__PURE__ */ h({
|
|
|
1157
1162
|
key: m,
|
|
1158
1163
|
role: "presentation"
|
|
1159
1164
|
}, [
|
|
1160
|
-
(i(!0), u($, null, B(y, (
|
|
1161
|
-
key:
|
|
1162
|
-
}, n(
|
|
1165
|
+
(i(!0), u($, null, B(y, (q) => (i(), g(R(e(q)), W({
|
|
1166
|
+
key: q.value
|
|
1167
|
+
}, n(q)), null, 16))), 128))
|
|
1163
1168
|
], 2))), 128)) : d("", !0)
|
|
1164
1169
|
], 2));
|
|
1165
1170
|
}
|
|
1166
|
-
}),
|
|
1171
|
+
}), Qs = ["name", "value", "id", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Gs = ["name", "value", "id", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Js = ["src", "width", "height", "alt"], Xs = ["src", "width", "height"], Ys = /* @__PURE__ */ h({
|
|
1167
1172
|
inheritAttrs: !1,
|
|
1168
1173
|
__name: "ImagepickerItem",
|
|
1169
1174
|
props: {
|
|
@@ -1195,8 +1200,8 @@ const Ge = /* @__PURE__ */ h({
|
|
|
1195
1200
|
"aria-invalid": n.question.ariaInvalid,
|
|
1196
1201
|
"aria-describedby": n.question.ariaDescribedBy,
|
|
1197
1202
|
class: l(n.question.cssClasses.itemControl)
|
|
1198
|
-
}, null, 10,
|
|
1199
|
-
[
|
|
1203
|
+
}, null, 10, Qs)), [
|
|
1204
|
+
[oe, n.question.value]
|
|
1200
1205
|
]) : P((i(), u("input", {
|
|
1201
1206
|
key: 1,
|
|
1202
1207
|
type: "radio",
|
|
@@ -1210,8 +1215,8 @@ const Ge = /* @__PURE__ */ h({
|
|
|
1210
1215
|
"aria-invalid": n.question.ariaInvalid,
|
|
1211
1216
|
"aria-describedby": n.question.ariaDescribedBy,
|
|
1212
1217
|
class: l(n.question.cssClasses.itemControl)
|
|
1213
|
-
}, null, 10,
|
|
1214
|
-
[
|
|
1218
|
+
}, null, 10, Gs)), [
|
|
1219
|
+
[x, n.question.value]
|
|
1215
1220
|
]),
|
|
1216
1221
|
c("div", {
|
|
1217
1222
|
class: l(n.question.cssClasses.itemDecorator)
|
|
@@ -1223,7 +1228,7 @@ const Ge = /* @__PURE__ */ h({
|
|
|
1223
1228
|
key: 0,
|
|
1224
1229
|
class: l(n.question.cssClasses.checkedItemDecorator)
|
|
1225
1230
|
}, [
|
|
1226
|
-
n.question.cssClasses.checkedItemSvgIconId ? (i(),
|
|
1231
|
+
n.question.cssClasses.checkedItemSvgIconId ? (i(), g(a, {
|
|
1227
1232
|
key: 0,
|
|
1228
1233
|
class: l(n.question.cssClasses.checkedItemSvgIcon),
|
|
1229
1234
|
size: "auto",
|
|
@@ -1244,7 +1249,7 @@ const Ge = /* @__PURE__ */ h({
|
|
|
1244
1249
|
onError: t[3] || (t[3] = (m) => {
|
|
1245
1250
|
n.item.onErrorHandler();
|
|
1246
1251
|
})
|
|
1247
|
-
}, null, 46,
|
|
1252
|
+
}, null, 46, Js)) : d("", !0),
|
|
1248
1253
|
f(e) && !n.item.contentNotLoaded && n.question.contentMode === "video" ? (i(), u("video", {
|
|
1249
1254
|
key: 2,
|
|
1250
1255
|
controls: "",
|
|
@@ -1259,7 +1264,7 @@ const Ge = /* @__PURE__ */ h({
|
|
|
1259
1264
|
onError: t[5] || (t[5] = (m) => {
|
|
1260
1265
|
n.item.onErrorHandler();
|
|
1261
1266
|
})
|
|
1262
|
-
}, null, 46,
|
|
1267
|
+
}, null, 46, Xs)) : d("", !0),
|
|
1263
1268
|
!f(e) || n.item.contentNotLoaded ? (i(), u("div", {
|
|
1264
1269
|
key: 3,
|
|
1265
1270
|
class: l(n.question.cssClasses.itemNoImage),
|
|
@@ -1289,7 +1294,7 @@ const Ge = /* @__PURE__ */ h({
|
|
|
1289
1294
|
], 2);
|
|
1290
1295
|
};
|
|
1291
1296
|
}
|
|
1292
|
-
}),
|
|
1297
|
+
}), Zs = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], xs = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], en = /* @__PURE__ */ h({
|
|
1293
1298
|
inheritAttrs: !1,
|
|
1294
1299
|
__name: "Comment",
|
|
1295
1300
|
props: {
|
|
@@ -1331,7 +1336,7 @@ const Ge = /* @__PURE__ */ h({
|
|
|
1331
1336
|
"aria-invalid": n.question.a11y_input_ariaInvalid,
|
|
1332
1337
|
"aria-describedby": n.question.a11y_input_ariaDescribedBy,
|
|
1333
1338
|
style: S({ resize: n.question.resizeStyle })
|
|
1334
|
-
}, null, 46,
|
|
1339
|
+
}, null, 46, Zs)) : !n.question.isReadOnlyRenderDiv() && n.question.getMaxLength() ? (i(), u("div", {
|
|
1335
1340
|
key: 1,
|
|
1336
1341
|
ref_key: "root",
|
|
1337
1342
|
ref: o
|
|
@@ -1359,7 +1364,7 @@ const Ge = /* @__PURE__ */ h({
|
|
|
1359
1364
|
"aria-invalid": n.question.a11y_input_ariaInvalid,
|
|
1360
1365
|
"aria-describedby": n.question.a11y_input_ariaDescribedBy,
|
|
1361
1366
|
style: S({ resize: n.question.resizeStyle })
|
|
1362
|
-
}, null, 46,
|
|
1367
|
+
}, null, 46, xs),
|
|
1363
1368
|
C(a, {
|
|
1364
1369
|
counter: n.question.characterCounter,
|
|
1365
1370
|
remainingCharacterCounter: n.question.cssClasses.remainingCharacterCounter
|
|
@@ -1368,10 +1373,10 @@ const Ge = /* @__PURE__ */ h({
|
|
|
1368
1373
|
key: 2,
|
|
1369
1374
|
ref_key: "root",
|
|
1370
1375
|
ref: o
|
|
1371
|
-
},
|
|
1376
|
+
}, T(n.question.value), 513));
|
|
1372
1377
|
};
|
|
1373
1378
|
}
|
|
1374
|
-
}),
|
|
1379
|
+
}), sn = /* @__PURE__ */ h({
|
|
1375
1380
|
inheritAttrs: !1,
|
|
1376
1381
|
__name: "Dropdown",
|
|
1377
1382
|
props: {
|
|
@@ -1387,23 +1392,23 @@ const Ge = /* @__PURE__ */ h({
|
|
|
1387
1392
|
ref: o
|
|
1388
1393
|
}, [
|
|
1389
1394
|
C(t, { question: e.question }, null, 8, ["question"]),
|
|
1390
|
-
e.question.isOtherSelected ? (i(),
|
|
1395
|
+
e.question.isOtherSelected ? (i(), g(a, {
|
|
1391
1396
|
key: 0,
|
|
1392
1397
|
question: e.question
|
|
1393
1398
|
}, null, 8, ["question"])) : d("", !0)
|
|
1394
1399
|
], 2);
|
|
1395
1400
|
};
|
|
1396
1401
|
}
|
|
1397
|
-
}),
|
|
1402
|
+
}), nn = ["id", "autocomplete", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "required"], on = {
|
|
1398
1403
|
key: 0,
|
|
1399
1404
|
value: ""
|
|
1400
|
-
},
|
|
1401
|
-
|
|
1405
|
+
}, tn = ["id"];
|
|
1406
|
+
ee.Instance.registerRenderer(
|
|
1402
1407
|
"dropdown",
|
|
1403
1408
|
"select",
|
|
1404
1409
|
"sv-dropdown-select"
|
|
1405
1410
|
);
|
|
1406
|
-
const
|
|
1411
|
+
const rn = /* @__PURE__ */ h({
|
|
1407
1412
|
inheritAttrs: !1,
|
|
1408
1413
|
__name: "DropdownSelect",
|
|
1409
1414
|
props: {
|
|
@@ -1427,7 +1432,7 @@ const ln = /* @__PURE__ */ h({
|
|
|
1427
1432
|
}
|
|
1428
1433
|
});
|
|
1429
1434
|
return (a, y) => {
|
|
1430
|
-
const m = p("sv-dropdown-option-item"),
|
|
1435
|
+
const m = p("sv-dropdown-option-item"), q = p("sv-svg-icon"), v = p("survey-other-choice");
|
|
1431
1436
|
return i(), u("div", {
|
|
1432
1437
|
class: l(a.question.renderCssRoot),
|
|
1433
1438
|
ref_key: "root",
|
|
@@ -1441,7 +1446,7 @@ const ln = /* @__PURE__ */ h({
|
|
|
1441
1446
|
disabled: "",
|
|
1442
1447
|
id: a.question.inputId,
|
|
1443
1448
|
class: l(a.question.getControlClass())
|
|
1444
|
-
},
|
|
1449
|
+
}, T(a.question.readOnlyText), 11, tn)) : P((i(), u("select", {
|
|
1445
1450
|
key: 0,
|
|
1446
1451
|
id: a.question.inputId,
|
|
1447
1452
|
"onUpdate:modelValue": y[0] || (y[0] = (I) => t.value = I),
|
|
@@ -1455,33 +1460,33 @@ const ln = /* @__PURE__ */ h({
|
|
|
1455
1460
|
"aria-describedby": a.question.ariaDescribedBy,
|
|
1456
1461
|
required: a.question.isRequired
|
|
1457
1462
|
}, [
|
|
1458
|
-
a.question.allowClear ? (i(), u("option",
|
|
1459
|
-
(i(!0), u($, null, B(a.question.visibleChoices, (I) => (i(),
|
|
1463
|
+
a.question.allowClear ? (i(), u("option", on, T(a.question.placeholder), 1)) : d("", !0),
|
|
1464
|
+
(i(!0), u($, null, B(a.question.visibleChoices, (I) => (i(), g(m, {
|
|
1460
1465
|
item: I,
|
|
1461
1466
|
key: I.id
|
|
1462
1467
|
}, null, 8, ["item"]))), 128))
|
|
1463
|
-
], 42,
|
|
1468
|
+
], 42, nn)), [
|
|
1464
1469
|
[Ie, t.value]
|
|
1465
1470
|
]),
|
|
1466
1471
|
a.question.cssClasses.chevronButtonIconId ? (i(), u("div", {
|
|
1467
1472
|
key: 2,
|
|
1468
1473
|
class: l(a.question.cssClasses.chevronButton)
|
|
1469
1474
|
}, [
|
|
1470
|
-
C(
|
|
1475
|
+
C(q, {
|
|
1471
1476
|
class: l(a.question.cssClasses.chevronButtonSvg),
|
|
1472
1477
|
iconName: a.question.cssClasses.chevronButtonIconId,
|
|
1473
1478
|
size: "auto"
|
|
1474
1479
|
}, null, 8, ["class", "iconName"])
|
|
1475
1480
|
], 2)) : d("", !0)
|
|
1476
1481
|
], 2),
|
|
1477
|
-
a.question.isOtherSelected ? (i(),
|
|
1482
|
+
a.question.isOtherSelected ? (i(), g(v, {
|
|
1478
1483
|
key: 0,
|
|
1479
1484
|
question: a.question
|
|
1480
1485
|
}, null, 8, ["question"])) : d("", !0)
|
|
1481
1486
|
], 2);
|
|
1482
1487
|
};
|
|
1483
1488
|
}
|
|
1484
|
-
}),
|
|
1489
|
+
}), ln = ["value", "disabled"], an = /* @__PURE__ */ h({
|
|
1485
1490
|
__name: "OptionItem",
|
|
1486
1491
|
props: {
|
|
1487
1492
|
item: {}
|
|
@@ -1491,9 +1496,9 @@ const ln = /* @__PURE__ */ h({
|
|
|
1491
1496
|
return L(() => s.item), (e, n) => (i(), u("option", {
|
|
1492
1497
|
value: e.item.value,
|
|
1493
1498
|
disabled: !e.item.isEnabled
|
|
1494
|
-
},
|
|
1499
|
+
}, T(f(o)), 9, ln));
|
|
1495
1500
|
}
|
|
1496
|
-
}),
|
|
1501
|
+
}), un = ["id", "disabled", "tabindex", "role", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], dn = { style: { visibility: "hidden" } }, mn = ["disabled", "inputmode", "role", "id", "tabindex", "readonly", "aria-expanded", "aria-controls", "aria-label", "aria-labelledby", "aria-activedescendant", "placeholder"], cn = ["id"], pn = /* @__PURE__ */ h({
|
|
1497
1502
|
__name: "Dropdown",
|
|
1498
1503
|
props: {
|
|
1499
1504
|
question: {}
|
|
@@ -1519,10 +1524,10 @@ const ln = /* @__PURE__ */ h({
|
|
|
1519
1524
|
const k = o.value, D = e.value.inputStringRendered;
|
|
1520
1525
|
Le.isTwoValueEquals(D, k.value, !1, !0, !1) || (k.value = e.value.inputStringRendered);
|
|
1521
1526
|
}
|
|
1522
|
-
},
|
|
1527
|
+
}, q = (k) => {
|
|
1523
1528
|
var D;
|
|
1524
1529
|
(D = e.value) == null || D.onBlur(k), m();
|
|
1525
|
-
},
|
|
1530
|
+
}, v = (k) => {
|
|
1526
1531
|
var D;
|
|
1527
1532
|
(D = e.value) == null || D.onFocus(k);
|
|
1528
1533
|
}, I = (k) => {
|
|
@@ -1530,7 +1535,7 @@ const ln = /* @__PURE__ */ h({
|
|
|
1530
1535
|
}, b = w(
|
|
1531
1536
|
() => s.question.showSelectedItemLocText
|
|
1532
1537
|
), N = w(() => s.question.selectedItemLocText);
|
|
1533
|
-
return L(() => e.value),
|
|
1538
|
+
return L(() => e.value), te(m), H(m), (k, D) => {
|
|
1534
1539
|
const E = p("survey-string"), V = p("sv-svg-icon"), K = p("sv-popup");
|
|
1535
1540
|
return i(), u("div", {
|
|
1536
1541
|
class: l(k.question.cssClasses.selectWrapper),
|
|
@@ -1542,7 +1547,7 @@ const ln = /* @__PURE__ */ h({
|
|
|
1542
1547
|
disabled: k.question.isInputReadOnly ? !0 : null,
|
|
1543
1548
|
tabindex: e.value.noTabIndex ? void 0 : 0,
|
|
1544
1549
|
onKeydown: y,
|
|
1545
|
-
onBlur:
|
|
1550
|
+
onBlur: q,
|
|
1546
1551
|
class: l(k.question.getControlClass()),
|
|
1547
1552
|
role: k.question.ariaRole,
|
|
1548
1553
|
"aria-required": k.question.ariaRequired,
|
|
@@ -1558,12 +1563,12 @@ const ln = /* @__PURE__ */ h({
|
|
|
1558
1563
|
key: 0,
|
|
1559
1564
|
class: l(k.question.cssClasses.hintPrefix)
|
|
1560
1565
|
}, [
|
|
1561
|
-
c("span", null,
|
|
1566
|
+
c("span", null, T(e.value.hintStringPrefix), 1)
|
|
1562
1567
|
], 2)) : d("", !0),
|
|
1563
1568
|
c("div", {
|
|
1564
1569
|
class: l(k.question.cssClasses.controlValue)
|
|
1565
1570
|
}, [
|
|
1566
|
-
b.value ? (i(),
|
|
1571
|
+
b.value ? (i(), g(E, {
|
|
1567
1572
|
key: 0,
|
|
1568
1573
|
locString: N.value
|
|
1569
1574
|
}, null, 8, ["locString"])) : d("", !0),
|
|
@@ -1571,10 +1576,10 @@ const ln = /* @__PURE__ */ h({
|
|
|
1571
1576
|
key: 1,
|
|
1572
1577
|
class: l(k.question.cssClasses.hintSuffix)
|
|
1573
1578
|
}, [
|
|
1574
|
-
c("span",
|
|
1575
|
-
c("span", null,
|
|
1579
|
+
c("span", dn, T(e.value.inputStringRendered), 1),
|
|
1580
|
+
c("span", null, T(e.value.hintStringSuffix), 1)
|
|
1576
1581
|
], 2)) : d("", !0),
|
|
1577
|
-
k.question.showInputFieldComponent ? (i(),
|
|
1582
|
+
k.question.showInputFieldComponent ? (i(), g(R(k.question.inputFieldComponentName), {
|
|
1578
1583
|
key: 2,
|
|
1579
1584
|
item: e.value.getSelectedAction(),
|
|
1580
1585
|
question: k.question
|
|
@@ -1598,9 +1603,9 @@ const ln = /* @__PURE__ */ h({
|
|
|
1598
1603
|
"aria-activedescendant": e.value.ariaActivedescendant,
|
|
1599
1604
|
placeholder: e.value.placeholderRendered,
|
|
1600
1605
|
onInput: I,
|
|
1601
|
-
onBlur:
|
|
1602
|
-
onFocus:
|
|
1603
|
-
}, null, 42,
|
|
1606
|
+
onBlur: q,
|
|
1607
|
+
onFocus: v
|
|
1608
|
+
}, null, 42, mn)
|
|
1604
1609
|
], 2),
|
|
1605
1610
|
k.question.allowClear && k.question.cssClasses.cleanButtonIconId ? P((i(), u("div", {
|
|
1606
1611
|
key: 1,
|
|
@@ -1617,19 +1622,19 @@ const ln = /* @__PURE__ */ h({
|
|
|
1617
1622
|
], 2)), [
|
|
1618
1623
|
[M, k.question.showClearButton]
|
|
1619
1624
|
]) : d("", !0)
|
|
1620
|
-
], 42,
|
|
1625
|
+
], 42, un)),
|
|
1621
1626
|
k.question.isReadOnly ? (i(), u("div", {
|
|
1622
1627
|
key: 2,
|
|
1623
1628
|
disabled: "",
|
|
1624
1629
|
id: k.question.inputId,
|
|
1625
1630
|
class: l(k.question.getControlClass())
|
|
1626
1631
|
}, [
|
|
1627
|
-
k.question.selectedItemLocText ? (i(),
|
|
1632
|
+
k.question.selectedItemLocText ? (i(), g(E, {
|
|
1628
1633
|
key: 0,
|
|
1629
1634
|
locString: k.question.selectedItemLocText
|
|
1630
1635
|
}, null, 8, ["locString"])) : d("", !0),
|
|
1631
|
-
c("div", null,
|
|
1632
|
-
], 10,
|
|
1636
|
+
c("div", null, T(k.question.readOnlyText), 1)
|
|
1637
|
+
], 10, cn)) : (i(), g(K, {
|
|
1633
1638
|
key: 1,
|
|
1634
1639
|
model: k.question.dropdownListModel.popupModel
|
|
1635
1640
|
}, null, 8, ["model"])),
|
|
@@ -1648,7 +1653,7 @@ const ln = /* @__PURE__ */ h({
|
|
|
1648
1653
|
], 2);
|
|
1649
1654
|
};
|
|
1650
1655
|
}
|
|
1651
|
-
}),
|
|
1656
|
+
}), vn = /* @__PURE__ */ h({
|
|
1652
1657
|
inheritAttrs: !1,
|
|
1653
1658
|
__name: "Tagbox",
|
|
1654
1659
|
props: {
|
|
@@ -1664,121 +1669,121 @@ const ln = /* @__PURE__ */ h({
|
|
|
1664
1669
|
ref: o
|
|
1665
1670
|
}, [
|
|
1666
1671
|
C(t, { question: e.question }, null, 8, ["question"]),
|
|
1667
|
-
e.question.isOtherSelected ? (i(),
|
|
1672
|
+
e.question.isOtherSelected ? (i(), g(a, {
|
|
1668
1673
|
key: 0,
|
|
1669
1674
|
question: e.question
|
|
1670
1675
|
}, null, 8, ["question"])) : d("", !0)
|
|
1671
1676
|
], 2);
|
|
1672
1677
|
};
|
|
1673
1678
|
}
|
|
1674
|
-
}),
|
|
1679
|
+
}), yn = ["id", "tabindex", "disabled", "role", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], qn = ["id"], gn = /* @__PURE__ */ h({
|
|
1675
1680
|
__name: "Tagbox",
|
|
1676
1681
|
props: {
|
|
1677
1682
|
question: {}
|
|
1678
1683
|
},
|
|
1679
1684
|
setup(r) {
|
|
1680
1685
|
const s = r, o = w(() => {
|
|
1681
|
-
const
|
|
1682
|
-
return
|
|
1683
|
-
}), e = (
|
|
1684
|
-
var
|
|
1685
|
-
(
|
|
1686
|
-
}, n = (
|
|
1687
|
-
var
|
|
1688
|
-
(
|
|
1689
|
-
}, t = (
|
|
1690
|
-
var
|
|
1691
|
-
(
|
|
1692
|
-
}, a = (
|
|
1693
|
-
var
|
|
1694
|
-
(
|
|
1695
|
-
}, y = (
|
|
1696
|
-
var
|
|
1697
|
-
(
|
|
1686
|
+
const q = s.question;
|
|
1687
|
+
return q.dropdownListModel || (q.dropdownListModel = new Ne(q)), s.question.dropdownListModel;
|
|
1688
|
+
}), e = (q) => {
|
|
1689
|
+
var v;
|
|
1690
|
+
(v = o.value) == null || v.onClick(q);
|
|
1691
|
+
}, n = (q) => {
|
|
1692
|
+
var v;
|
|
1693
|
+
(v = o.value) == null || v.chevronPointerDown(q);
|
|
1694
|
+
}, t = (q) => {
|
|
1695
|
+
var v;
|
|
1696
|
+
(v = o.value) == null || v.onClear(q);
|
|
1697
|
+
}, a = (q) => {
|
|
1698
|
+
var v;
|
|
1699
|
+
(v = o.value) == null || v.keyHandler(q);
|
|
1700
|
+
}, y = (q) => {
|
|
1701
|
+
var v;
|
|
1702
|
+
(v = o.value) == null || v.onBlur(q);
|
|
1698
1703
|
}, m = le(() => s.question.selectedChoices);
|
|
1699
|
-
return L(() => o.value), (
|
|
1704
|
+
return L(() => o.value), (q, v) => {
|
|
1700
1705
|
const I = p("sv-tagbox-item"), b = p("sv-tagbox-filter"), N = p("sv-svg-icon"), k = p("sv-popup"), D = p("survey-string");
|
|
1701
1706
|
return i(), u("div", {
|
|
1702
|
-
class: l(
|
|
1707
|
+
class: l(q.question.cssClasses.selectWrapper),
|
|
1703
1708
|
onClick: e
|
|
1704
1709
|
}, [
|
|
1705
|
-
|
|
1710
|
+
q.question.isReadOnly ? d("", !0) : (i(), u("div", {
|
|
1706
1711
|
key: 0,
|
|
1707
|
-
id:
|
|
1712
|
+
id: q.question.inputId,
|
|
1708
1713
|
tabindex: o.value.noTabIndex ? void 0 : 0,
|
|
1709
|
-
disabled:
|
|
1714
|
+
disabled: q.question.isInputReadOnly ? !0 : null,
|
|
1710
1715
|
onKeydown: a,
|
|
1711
1716
|
onBlur: y,
|
|
1712
|
-
class: l(
|
|
1713
|
-
role:
|
|
1714
|
-
"aria-required":
|
|
1715
|
-
"aria-label":
|
|
1716
|
-
"aria-invalid":
|
|
1717
|
-
"aria-describedby":
|
|
1718
|
-
"aria-expanded":
|
|
1717
|
+
class: l(q.question.getControlClass()),
|
|
1718
|
+
role: q.question.ariaRole,
|
|
1719
|
+
"aria-required": q.question.ariaRequired,
|
|
1720
|
+
"aria-label": q.question.ariaLabel,
|
|
1721
|
+
"aria-invalid": q.question.ariaInvalid,
|
|
1722
|
+
"aria-describedby": q.question.ariaDescribedBy,
|
|
1723
|
+
"aria-expanded": q.question.ariaExpanded === null ? void 0 : q.question.ariaExpanded === "true",
|
|
1719
1724
|
"aria-controls": o.value.listElementId,
|
|
1720
1725
|
"aria-activedescendant": o.value.ariaActivedescendant,
|
|
1721
|
-
required:
|
|
1726
|
+
required: q.question.isRequired ? !0 : null
|
|
1722
1727
|
}, [
|
|
1723
1728
|
c("div", {
|
|
1724
|
-
class: l(
|
|
1729
|
+
class: l(q.question.cssClasses.controlValue)
|
|
1725
1730
|
}, [
|
|
1726
|
-
(i(!0), u($, null, B(f(m), (E, V) => (i(),
|
|
1731
|
+
(i(!0), u($, null, B(f(m), (E, V) => (i(), g(I, {
|
|
1727
1732
|
item: E,
|
|
1728
|
-
question:
|
|
1733
|
+
question: q.question,
|
|
1729
1734
|
key: "item" + V
|
|
1730
1735
|
}, null, 8, ["item", "question"]))), 128)),
|
|
1731
1736
|
C(b, {
|
|
1732
1737
|
model: o.value,
|
|
1733
|
-
question:
|
|
1738
|
+
question: q.question
|
|
1734
1739
|
}, null, 8, ["model", "question"])
|
|
1735
1740
|
], 2),
|
|
1736
|
-
|
|
1741
|
+
q.question.allowClear && q.question.cssClasses.cleanButtonIconId ? P((i(), u("div", {
|
|
1737
1742
|
key: 0,
|
|
1738
|
-
class: l(
|
|
1743
|
+
class: l(q.question.cssClasses.cleanButton),
|
|
1739
1744
|
onClick: t,
|
|
1740
1745
|
"aria-hidden": "true"
|
|
1741
1746
|
}, [
|
|
1742
1747
|
C(N, {
|
|
1743
|
-
class: l(
|
|
1744
|
-
iconName:
|
|
1745
|
-
title:
|
|
1748
|
+
class: l(q.question.cssClasses.cleanButtonSvg),
|
|
1749
|
+
iconName: q.question.cssClasses.cleanButtonIconId,
|
|
1750
|
+
title: q.question.clearCaption,
|
|
1746
1751
|
size: "auto"
|
|
1747
1752
|
}, null, 8, ["class", "iconName", "title"])
|
|
1748
1753
|
], 2)), [
|
|
1749
|
-
[M,
|
|
1754
|
+
[M, q.question.showClearButton]
|
|
1750
1755
|
]) : d("", !0)
|
|
1751
|
-
], 42,
|
|
1752
|
-
|
|
1756
|
+
], 42, yn)),
|
|
1757
|
+
q.question.isReadOnly ? (i(), u("div", {
|
|
1753
1758
|
key: 2,
|
|
1754
1759
|
disabled: "",
|
|
1755
|
-
id:
|
|
1756
|
-
class: l(
|
|
1760
|
+
id: q.question.inputId,
|
|
1761
|
+
class: l(q.question.getControlClass())
|
|
1757
1762
|
}, [
|
|
1758
|
-
|
|
1763
|
+
q.question.locReadOnlyText ? (i(), g(D, {
|
|
1759
1764
|
key: 0,
|
|
1760
|
-
locString:
|
|
1765
|
+
locString: q.question.locReadOnlyText
|
|
1761
1766
|
}, null, 8, ["locString"])) : d("", !0)
|
|
1762
|
-
], 10,
|
|
1767
|
+
], 10, qn)) : (i(), g(k, {
|
|
1763
1768
|
key: 1,
|
|
1764
1769
|
model: o.value.popupModel
|
|
1765
1770
|
}, null, 8, ["model"])),
|
|
1766
|
-
|
|
1771
|
+
q.question.cssClasses.chevronButtonIconId ? (i(), u("div", {
|
|
1767
1772
|
key: 3,
|
|
1768
|
-
class: l(
|
|
1773
|
+
class: l(q.question.cssClasses.chevronButton),
|
|
1769
1774
|
onPointerdown: n,
|
|
1770
1775
|
"aria-hidden": "true"
|
|
1771
1776
|
}, [
|
|
1772
1777
|
C(N, {
|
|
1773
|
-
class: l(
|
|
1774
|
-
iconName:
|
|
1778
|
+
class: l(q.question.cssClasses.chevronButtonSvg),
|
|
1779
|
+
iconName: q.question.cssClasses.chevronButtonIconId,
|
|
1775
1780
|
size: "auto"
|
|
1776
1781
|
}, null, 8, ["class", "iconName"])
|
|
1777
1782
|
], 34)) : d("", !0)
|
|
1778
1783
|
], 2);
|
|
1779
1784
|
};
|
|
1780
1785
|
}
|
|
1781
|
-
}),
|
|
1786
|
+
}), hn = { style: { visibility: "hidden" } }, Cn = ["placeholder", "disabled", "inputmode", "role", "aria-expanded", "aria-controls", "aria-label", "aria-labelledby", "aria-activedescendant", "id", "readonly", "size"], bn = /* @__PURE__ */ h({
|
|
1782
1787
|
__name: "TagboxFilter",
|
|
1783
1788
|
props: {
|
|
1784
1789
|
question: {},
|
|
@@ -1804,12 +1809,12 @@ const ln = /* @__PURE__ */ h({
|
|
|
1804
1809
|
key: 0,
|
|
1805
1810
|
class: l(a.question.cssClasses.hintPrefix)
|
|
1806
1811
|
}, [
|
|
1807
|
-
c("span", null,
|
|
1812
|
+
c("span", null, T(a.model.hintStringPrefix), 1)
|
|
1808
1813
|
], 2)) : d("", !0),
|
|
1809
1814
|
c("div", {
|
|
1810
1815
|
class: l(a.question.cssClasses.hintSuffixWrapper)
|
|
1811
1816
|
}, [
|
|
1812
|
-
a.question.showSelectedItemLocText ? (i(),
|
|
1817
|
+
a.question.showSelectedItemLocText ? (i(), g(m, {
|
|
1813
1818
|
key: 0,
|
|
1814
1819
|
locString: a.question.selectedItemLocText
|
|
1815
1820
|
}, null, 8, ["locString"])) : d("", !0),
|
|
@@ -1817,13 +1822,13 @@ const ln = /* @__PURE__ */ h({
|
|
|
1817
1822
|
key: 1,
|
|
1818
1823
|
class: l(a.question.cssClasses.hintSuffix)
|
|
1819
1824
|
}, [
|
|
1820
|
-
c("span",
|
|
1821
|
-
c("span", null,
|
|
1825
|
+
c("span", hn, T(a.model.inputStringRendered), 1),
|
|
1826
|
+
c("span", null, T(a.model.hintStringSuffix), 1)
|
|
1822
1827
|
], 2)) : d("", !0),
|
|
1823
1828
|
P(c("input", {
|
|
1824
1829
|
type: "text",
|
|
1825
1830
|
autocomplete: "off",
|
|
1826
|
-
"onUpdate:modelValue": y[0] || (y[0] = (
|
|
1831
|
+
"onUpdate:modelValue": y[0] || (y[0] = (q) => a.model.inputStringRendered = q),
|
|
1827
1832
|
class: l(a.question.cssClasses.filterStringInput),
|
|
1828
1833
|
placeholder: a.model.filterStringPlaceholder,
|
|
1829
1834
|
disabled: a.question.isInputReadOnly,
|
|
@@ -1841,14 +1846,14 @@ const ln = /* @__PURE__ */ h({
|
|
|
1841
1846
|
onKeydown: e,
|
|
1842
1847
|
onBlur: n,
|
|
1843
1848
|
onFocus: t
|
|
1844
|
-
}, null, 42,
|
|
1849
|
+
}, null, 42, Cn), [
|
|
1845
1850
|
[we, a.model.inputStringRendered]
|
|
1846
1851
|
])
|
|
1847
1852
|
], 2)
|
|
1848
1853
|
], 2);
|
|
1849
1854
|
};
|
|
1850
1855
|
}
|
|
1851
|
-
}),
|
|
1856
|
+
}), kn = { class: "sv-tagbox__item-text" }, fn = /* @__PURE__ */ h({
|
|
1852
1857
|
__name: "TagboxItem",
|
|
1853
1858
|
props: {
|
|
1854
1859
|
question: {},
|
|
@@ -1864,7 +1869,7 @@ const ln = /* @__PURE__ */ h({
|
|
|
1864
1869
|
class: "sv-tagbox__item",
|
|
1865
1870
|
key: e.item.key
|
|
1866
1871
|
}, [
|
|
1867
|
-
c("div",
|
|
1872
|
+
c("div", kn, [
|
|
1868
1873
|
C(t, {
|
|
1869
1874
|
locString: e.item.locText
|
|
1870
1875
|
}, null, 8, ["locString"])
|
|
@@ -1882,7 +1887,7 @@ const ln = /* @__PURE__ */ h({
|
|
|
1882
1887
|
]);
|
|
1883
1888
|
};
|
|
1884
1889
|
}
|
|
1885
|
-
}),
|
|
1890
|
+
}), In = /* @__PURE__ */ h({
|
|
1886
1891
|
inheritAttrs: !1,
|
|
1887
1892
|
__name: "Ranking",
|
|
1888
1893
|
props: {
|
|
@@ -1910,17 +1915,17 @@ const ln = /* @__PURE__ */ h({
|
|
|
1910
1915
|
ref_key: "root",
|
|
1911
1916
|
ref: o
|
|
1912
1917
|
}, [
|
|
1913
|
-
t.question.selectToRankEnabled ? d("", !0) : (i(!0), u($, { key: 0 }, B(t.question.rankingChoices, (m,
|
|
1914
|
-
key: m.value + "-" +
|
|
1915
|
-
}, n(m,
|
|
1918
|
+
t.question.selectToRankEnabled ? d("", !0) : (i(!0), u($, { key: 0 }, B(t.question.rankingChoices, (m, q) => (i(), g(R(e(m)), W({
|
|
1919
|
+
key: m.value + "-" + q + "-item"
|
|
1920
|
+
}, n(m, q)), null, 16))), 128)),
|
|
1916
1921
|
t.question.selectToRankEnabled ? (i(), u("div", {
|
|
1917
1922
|
key: 1,
|
|
1918
1923
|
class: l(t.question.getContainerClasses("from")),
|
|
1919
1924
|
"data-ranking": "from-container"
|
|
1920
1925
|
}, [
|
|
1921
|
-
(i(!0), u($, null, B(t.question.unRankingChoices, (m,
|
|
1922
|
-
key: m.value + "-" +
|
|
1923
|
-
}, n(m,
|
|
1926
|
+
(i(!0), u($, null, B(t.question.unRankingChoices, (m, q) => (i(), g(R(e(m)), W({
|
|
1927
|
+
key: m.value + "-" + q + "-item"
|
|
1928
|
+
}, n(m, q, !0)), null, 16))), 128)),
|
|
1924
1929
|
t.question.unRankingChoices.length === 0 ? (i(), u("div", {
|
|
1925
1930
|
key: 0,
|
|
1926
1931
|
class: l(t.question.cssClasses.containerPlaceholder)
|
|
@@ -1939,9 +1944,9 @@ const ln = /* @__PURE__ */ h({
|
|
|
1939
1944
|
class: l(t.question.getContainerClasses("to")),
|
|
1940
1945
|
"data-ranking": "to-container"
|
|
1941
1946
|
}, [
|
|
1942
|
-
(i(!0), u($, null, B(t.question.rankingChoices, (m,
|
|
1943
|
-
key: m.value + "-" +
|
|
1944
|
-
}, n(m,
|
|
1947
|
+
(i(!0), u($, null, B(t.question.rankingChoices, (m, q) => (i(), g(R(e(m)), W({
|
|
1948
|
+
key: m.value + "-" + q + "-item"
|
|
1949
|
+
}, n(m, q)), null, 16))), 128)),
|
|
1945
1950
|
t.question.rankingChoices.length === 0 ? (i(), u("div", {
|
|
1946
1951
|
key: 0,
|
|
1947
1952
|
class: l(t.question.cssClasses.containerPlaceholder)
|
|
@@ -1954,10 +1959,10 @@ const ln = /* @__PURE__ */ h({
|
|
|
1954
1959
|
], 2);
|
|
1955
1960
|
};
|
|
1956
1961
|
}
|
|
1957
|
-
}),
|
|
1962
|
+
}), wn = ["tabindex", "data-sv-drop-target-ranking-item"], Sn = {
|
|
1958
1963
|
tabindex: "-1",
|
|
1959
1964
|
style: { outline: "none" }
|
|
1960
|
-
},
|
|
1965
|
+
}, Rn = ["xlink:href"], Tn = ["xlink:href"], $n = ["xlink:href"], _n = /* @__PURE__ */ h({
|
|
1961
1966
|
inheritAttrs: !1,
|
|
1962
1967
|
__name: "RankingItem",
|
|
1963
1968
|
props: {
|
|
@@ -1986,7 +1991,7 @@ const ln = /* @__PURE__ */ h({
|
|
|
1986
1991
|
);
|
|
1987
1992
|
})
|
|
1988
1993
|
}, [
|
|
1989
|
-
c("div",
|
|
1994
|
+
c("div", Sn, [
|
|
1990
1995
|
c("div", {
|
|
1991
1996
|
class: l(e.question.cssClasses.itemGhostNode)
|
|
1992
1997
|
}, null, 2),
|
|
@@ -2001,27 +2006,27 @@ const ln = /* @__PURE__ */ h({
|
|
|
2001
2006
|
}, [
|
|
2002
2007
|
c("use", {
|
|
2003
2008
|
"xlink:href": e.question.dragDropSvgIcon
|
|
2004
|
-
}, null, 8,
|
|
2009
|
+
}, null, 8, Rn)
|
|
2005
2010
|
], 2)),
|
|
2006
2011
|
(i(), u("svg", {
|
|
2007
2012
|
class: l(e.question.getIconFocusCss())
|
|
2008
2013
|
}, [
|
|
2009
2014
|
c("use", {
|
|
2010
2015
|
"xlink:href": e.question.arrowsSvgIcon
|
|
2011
|
-
}, null, 8,
|
|
2016
|
+
}, null, 8, Tn)
|
|
2012
2017
|
], 2))
|
|
2013
2018
|
], 2),
|
|
2014
2019
|
!e.unrankedItem && o.value ? (i(), u("div", {
|
|
2015
2020
|
key: 0,
|
|
2016
2021
|
class: l(e.question.getItemIndexClasses(e.item))
|
|
2017
|
-
},
|
|
2022
|
+
}, T(o.value), 3)) : (i(), u("div", {
|
|
2018
2023
|
key: 1,
|
|
2019
2024
|
class: l(e.question.getItemIndexClasses(e.item))
|
|
2020
2025
|
}, [
|
|
2021
2026
|
(i(), u("svg", null, [
|
|
2022
2027
|
c("use", {
|
|
2023
2028
|
"xlink:href": e.question.dashSvgIcon
|
|
2024
|
-
}, null, 8,
|
|
2029
|
+
}, null, 8, $n)
|
|
2025
2030
|
]))
|
|
2026
2031
|
], 2)),
|
|
2027
2032
|
c("div", {
|
|
@@ -2033,13 +2038,13 @@ const ln = /* @__PURE__ */ h({
|
|
|
2033
2038
|
], 2)
|
|
2034
2039
|
], 2)
|
|
2035
2040
|
])
|
|
2036
|
-
], 42,
|
|
2041
|
+
], 42, wn);
|
|
2037
2042
|
};
|
|
2038
2043
|
}
|
|
2039
|
-
}),
|
|
2044
|
+
}), Dn = { role: "radiogroup" }, Bn = /* @__PURE__ */ c("legend", {
|
|
2040
2045
|
role: "presentation",
|
|
2041
2046
|
class: "sv-hidden"
|
|
2042
|
-
}, null, -1),
|
|
2047
|
+
}, null, -1), Ln = /* @__PURE__ */ h({
|
|
2043
2048
|
inheritAttrs: !1,
|
|
2044
2049
|
__name: "Rating",
|
|
2045
2050
|
props: {
|
|
@@ -2056,8 +2061,8 @@ const ln = /* @__PURE__ */ h({
|
|
|
2056
2061
|
ref_key: "root",
|
|
2057
2062
|
ref: o
|
|
2058
2063
|
}, [
|
|
2059
|
-
c("fieldset",
|
|
2060
|
-
|
|
2064
|
+
c("fieldset", Dn, [
|
|
2065
|
+
Bn,
|
|
2061
2066
|
n.question.hasMinLabel ? (i(), u("span", {
|
|
2062
2067
|
key: 0,
|
|
2063
2068
|
class: l(n.question.cssClasses.minText)
|
|
@@ -2066,7 +2071,7 @@ const ln = /* @__PURE__ */ h({
|
|
|
2066
2071
|
locString: n.question.locMinRateDescription
|
|
2067
2072
|
}, null, 8, ["locString"])
|
|
2068
2073
|
], 2)) : d("", !0),
|
|
2069
|
-
(i(!0), u($, null, B(n.question.renderedRateItems, (y, m) => (i(),
|
|
2074
|
+
(i(!0), u($, null, B(n.question.renderedRateItems, (y, m) => (i(), g(R(n.question.itemComponent), {
|
|
2070
2075
|
key: e(m),
|
|
2071
2076
|
item: y,
|
|
2072
2077
|
index: m,
|
|
@@ -2084,7 +2089,7 @@ const ln = /* @__PURE__ */ h({
|
|
|
2084
2089
|
], 2);
|
|
2085
2090
|
};
|
|
2086
2091
|
}
|
|
2087
|
-
}),
|
|
2092
|
+
}), Nn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Pn = /* @__PURE__ */ h({
|
|
2088
2093
|
__name: "RatingItem",
|
|
2089
2094
|
props: {
|
|
2090
2095
|
question: {},
|
|
@@ -2112,7 +2117,7 @@ const ln = /* @__PURE__ */ h({
|
|
|
2112
2117
|
"aria-label": o.question.ariaLabel,
|
|
2113
2118
|
"aria-invalid": o.question.ariaInvalid,
|
|
2114
2119
|
"aria-describedby": o.question.ariaDescribedBy
|
|
2115
|
-
}, null, 8,
|
|
2120
|
+
}, null, 8, Nn),
|
|
2116
2121
|
c("span", {
|
|
2117
2122
|
class: l(o.question.cssClasses.itemText)
|
|
2118
2123
|
}, [
|
|
@@ -2123,7 +2128,7 @@ const ln = /* @__PURE__ */ h({
|
|
|
2123
2128
|
], 34);
|
|
2124
2129
|
};
|
|
2125
2130
|
}
|
|
2126
|
-
}),
|
|
2131
|
+
}), An = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Mn = /* @__PURE__ */ h({
|
|
2127
2132
|
__name: "RatingItemSmiley",
|
|
2128
2133
|
props: {
|
|
2129
2134
|
question: {},
|
|
@@ -2154,7 +2159,7 @@ const ln = /* @__PURE__ */ h({
|
|
|
2154
2159
|
"aria-label": o.question.ariaLabel,
|
|
2155
2160
|
"aria-invalid": o.question.ariaInvalid,
|
|
2156
2161
|
"aria-describedby": o.question.ariaDescribedBy
|
|
2157
|
-
}, null, 8,
|
|
2162
|
+
}, null, 8, An),
|
|
2158
2163
|
C(n, {
|
|
2159
2164
|
iconName: o.question.getItemSmileyIconName(o.item.itemValue),
|
|
2160
2165
|
size: "auto",
|
|
@@ -2163,7 +2168,7 @@ const ln = /* @__PURE__ */ h({
|
|
|
2163
2168
|
], 38);
|
|
2164
2169
|
};
|
|
2165
2170
|
}
|
|
2166
|
-
}),
|
|
2171
|
+
}), Hn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Wn = /* @__PURE__ */ h({
|
|
2167
2172
|
__name: "RatingItemStar",
|
|
2168
2173
|
props: {
|
|
2169
2174
|
question: {},
|
|
@@ -2193,7 +2198,7 @@ const ln = /* @__PURE__ */ h({
|
|
|
2193
2198
|
"aria-label": o.question.ariaLabel,
|
|
2194
2199
|
"aria-invalid": o.question.ariaInvalid,
|
|
2195
2200
|
"aria-describedby": o.question.ariaDescribedBy
|
|
2196
|
-
}, null, 8,
|
|
2201
|
+
}, null, 8, Hn),
|
|
2197
2202
|
C(n, {
|
|
2198
2203
|
class: l("sv-star"),
|
|
2199
2204
|
iconName: o.question.itemStarIcon,
|
|
@@ -2209,10 +2214,10 @@ const ln = /* @__PURE__ */ h({
|
|
|
2209
2214
|
], 34);
|
|
2210
2215
|
};
|
|
2211
2216
|
}
|
|
2212
|
-
}),
|
|
2217
|
+
}), En = { class: "sd-rating-dropdown-item" }, Vn = { class: "sd-rating-dropdown-item_text" }, Fn = {
|
|
2213
2218
|
key: 0,
|
|
2214
2219
|
class: "sd-rating-dropdown-item_description"
|
|
2215
|
-
},
|
|
2220
|
+
}, On = /* @__PURE__ */ h({
|
|
2216
2221
|
__name: "RatingDropdownItem",
|
|
2217
2222
|
props: {
|
|
2218
2223
|
item: {}
|
|
@@ -2221,8 +2226,8 @@ const ln = /* @__PURE__ */ h({
|
|
|
2221
2226
|
const s = r;
|
|
2222
2227
|
return L(() => s.item), (o, e) => {
|
|
2223
2228
|
const n = p("survey-string");
|
|
2224
|
-
return i(), u("div",
|
|
2225
|
-
c("span",
|
|
2229
|
+
return i(), u("div", En, [
|
|
2230
|
+
c("span", Vn, T(o.item.title), 1),
|
|
2226
2231
|
o.item.description ? (i(), u("div", Fn, [
|
|
2227
2232
|
C(n, {
|
|
2228
2233
|
locString: o.item.description
|
|
@@ -2232,12 +2237,12 @@ const ln = /* @__PURE__ */ h({
|
|
|
2232
2237
|
};
|
|
2233
2238
|
}
|
|
2234
2239
|
});
|
|
2235
|
-
|
|
2240
|
+
ee.Instance.registerRenderer(
|
|
2236
2241
|
"rating",
|
|
2237
2242
|
"dropdown",
|
|
2238
2243
|
"sv-rating-dropdown"
|
|
2239
2244
|
);
|
|
2240
|
-
const
|
|
2245
|
+
const zn = /* @__PURE__ */ h({
|
|
2241
2246
|
inheritAttrs: !1,
|
|
2242
2247
|
__name: "RatingDropdown",
|
|
2243
2248
|
props: {
|
|
@@ -2256,7 +2261,7 @@ const Un = /* @__PURE__ */ h({
|
|
|
2256
2261
|
], 2);
|
|
2257
2262
|
};
|
|
2258
2263
|
}
|
|
2259
|
-
}),
|
|
2264
|
+
}), Un = ["name", "value", "id", ".indeterminate", "disabled", "role", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], Kn = /* @__PURE__ */ h({
|
|
2260
2265
|
inheritAttrs: !1,
|
|
2261
2266
|
__name: "BooleanSwitch",
|
|
2262
2267
|
props: {
|
|
@@ -2277,7 +2282,7 @@ const Un = /* @__PURE__ */ h({
|
|
|
2277
2282
|
class: l(t.question.cssClasses.root),
|
|
2278
2283
|
ref_key: "root",
|
|
2279
2284
|
ref: o,
|
|
2280
|
-
onKeydown: a[4] || (a[4] = (
|
|
2285
|
+
onKeydown: a[4] || (a[4] = (q) => t.question.onKeyDownCore(q))
|
|
2281
2286
|
}, [
|
|
2282
2287
|
c("label", {
|
|
2283
2288
|
class: l(t.question.getItemCss())
|
|
@@ -2286,21 +2291,23 @@ const Un = /* @__PURE__ */ h({
|
|
|
2286
2291
|
type: "checkbox",
|
|
2287
2292
|
name: t.question.name,
|
|
2288
2293
|
value: (m = t.question.booleanValue) != null ? m : "",
|
|
2289
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
2294
|
+
"onUpdate:modelValue": a[0] || (a[0] = (q) => t.question.booleanValue = q),
|
|
2290
2295
|
class: l(t.question.cssClasses.control),
|
|
2291
2296
|
id: t.question.inputId,
|
|
2292
2297
|
".indeterminate": t.question.isIndeterminate,
|
|
2293
2298
|
disabled: t.question.isInputReadOnly,
|
|
2294
|
-
|
|
2295
|
-
"aria-
|
|
2296
|
-
"aria-
|
|
2297
|
-
"aria-
|
|
2298
|
-
|
|
2299
|
-
|
|
2299
|
+
role: t.question.a11y_input_ariaRole,
|
|
2300
|
+
"aria-required": t.question.a11y_input_ariaRequired,
|
|
2301
|
+
"aria-label": t.question.a11y_input_ariaLabel,
|
|
2302
|
+
"aria-labelledby": t.question.a11y_input_ariaLabelledBy,
|
|
2303
|
+
"aria-invalid": t.question.a11y_input_ariaInvalid,
|
|
2304
|
+
"aria-describedby": t.question.a11y_input_ariaDescribedBy
|
|
2305
|
+
}, null, 42, Un), [
|
|
2306
|
+
[oe, t.question.booleanValue]
|
|
2300
2307
|
]),
|
|
2301
2308
|
c("div", {
|
|
2302
2309
|
class: l(t.question.cssClasses.sliderGhost),
|
|
2303
|
-
onClick: a[1] || (a[1] = (
|
|
2310
|
+
onClick: a[1] || (a[1] = (q) => e(q, !1))
|
|
2304
2311
|
}, [
|
|
2305
2312
|
c("span", {
|
|
2306
2313
|
class: l(t.question.getLabelCss(!1))
|
|
@@ -2312,7 +2319,7 @@ const Un = /* @__PURE__ */ h({
|
|
|
2312
2319
|
], 2),
|
|
2313
2320
|
c("div", {
|
|
2314
2321
|
class: l(t.question.cssClasses.switch),
|
|
2315
|
-
onClick: a[2] || (a[2] = (
|
|
2322
|
+
onClick: a[2] || (a[2] = (q) => n(q))
|
|
2316
2323
|
}, [
|
|
2317
2324
|
c("span", {
|
|
2318
2325
|
class: l(t.question.cssClasses.slider)
|
|
@@ -2329,7 +2336,7 @@ const Un = /* @__PURE__ */ h({
|
|
|
2329
2336
|
], 2),
|
|
2330
2337
|
c("div", {
|
|
2331
2338
|
class: l(t.question.cssClasses.sliderGhost),
|
|
2332
|
-
onClick: a[3] || (a[3] = (
|
|
2339
|
+
onClick: a[3] || (a[3] = (q) => e(q, !0))
|
|
2333
2340
|
}, [
|
|
2334
2341
|
c("span", {
|
|
2335
2342
|
class: l(t.question.getLabelCss(!0))
|
|
@@ -2344,12 +2351,12 @@ const Un = /* @__PURE__ */ h({
|
|
|
2344
2351
|
};
|
|
2345
2352
|
}
|
|
2346
2353
|
});
|
|
2347
|
-
|
|
2354
|
+
ee.Instance.registerRenderer(
|
|
2348
2355
|
"boolean",
|
|
2349
2356
|
"radio",
|
|
2350
2357
|
"sv-boolean-radio"
|
|
2351
2358
|
);
|
|
2352
|
-
const
|
|
2359
|
+
const jn = /* @__PURE__ */ h({
|
|
2353
2360
|
inheritAttrs: !1,
|
|
2354
2361
|
__name: "BooleanRadio",
|
|
2355
2362
|
props: {
|
|
@@ -2368,13 +2375,13 @@ const Qn = /* @__PURE__ */ h({
|
|
|
2368
2375
|
role: "presentation",
|
|
2369
2376
|
class: l(e.question.cssClasses.radioFieldset)
|
|
2370
2377
|
}, [
|
|
2371
|
-
(i(),
|
|
2378
|
+
(i(), g(t, {
|
|
2372
2379
|
key: !1,
|
|
2373
2380
|
question: e.question,
|
|
2374
2381
|
locText: e.question.locLabelFalse,
|
|
2375
2382
|
value: !1
|
|
2376
2383
|
}, null, 8, ["question", "locText"])),
|
|
2377
|
-
(i(),
|
|
2384
|
+
(i(), g(t, {
|
|
2378
2385
|
key: !0,
|
|
2379
2386
|
question: e.question,
|
|
2380
2387
|
locText: e.question.locLabelTrue,
|
|
@@ -2384,7 +2391,7 @@ const Qn = /* @__PURE__ */ h({
|
|
|
2384
2391
|
], 2);
|
|
2385
2392
|
};
|
|
2386
2393
|
}
|
|
2387
|
-
}),
|
|
2394
|
+
}), Qn = ["name", "value", "checked", "aria-describedby", "disabled"], Gn = ["xlink:href"], Jn = /* @__PURE__ */ h({
|
|
2388
2395
|
__name: "BooleanRadioItem",
|
|
2389
2396
|
props: {
|
|
2390
2397
|
question: {},
|
|
@@ -2414,7 +2421,7 @@ const Qn = /* @__PURE__ */ h({
|
|
|
2414
2421
|
disabled: e.question.isInputReadOnly,
|
|
2415
2422
|
class: l(e.question.cssClasses.itemRadioControl),
|
|
2416
2423
|
onChange: o
|
|
2417
|
-
}, null, 42,
|
|
2424
|
+
}, null, 42, Qn),
|
|
2418
2425
|
e.question.cssClasses.materialRadioDecorator ? (i(), u("span", {
|
|
2419
2426
|
key: 0,
|
|
2420
2427
|
class: l(e.question.cssClasses.materialRadioDecorator)
|
|
@@ -2425,7 +2432,7 @@ const Qn = /* @__PURE__ */ h({
|
|
|
2425
2432
|
}, [
|
|
2426
2433
|
c("use", {
|
|
2427
2434
|
"xlink:href": e.question.itemSvgIcon
|
|
2428
|
-
}, null, 8,
|
|
2435
|
+
}, null, 8, Gn)
|
|
2429
2436
|
], 2)) : d("", !0)
|
|
2430
2437
|
], 2)) : d("", !0),
|
|
2431
2438
|
c("span", {
|
|
@@ -2437,13 +2444,13 @@ const Qn = /* @__PURE__ */ h({
|
|
|
2437
2444
|
], 2);
|
|
2438
2445
|
};
|
|
2439
2446
|
}
|
|
2440
|
-
}),
|
|
2441
|
-
|
|
2447
|
+
}), Xn = ["name", "value", "id", ".indeterminate", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Yn = ["xlink:href"], Zn = /* @__PURE__ */ c("span", { class: "check" }, null, -1), xn = ["id"];
|
|
2448
|
+
ee.Instance.registerRenderer(
|
|
2442
2449
|
"boolean",
|
|
2443
2450
|
"checkbox",
|
|
2444
2451
|
"sv-boolean-checkbox"
|
|
2445
2452
|
);
|
|
2446
|
-
const
|
|
2453
|
+
const eo = /* @__PURE__ */ h({
|
|
2447
2454
|
inheritAttrs: !1,
|
|
2448
2455
|
__name: "BooleanCheckbox",
|
|
2449
2456
|
props: {
|
|
@@ -2470,7 +2477,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2470
2477
|
type: "checkbox",
|
|
2471
2478
|
name: e.question.name,
|
|
2472
2479
|
value: (m = e.question.booleanValue) != null ? m : "",
|
|
2473
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
2480
|
+
"onUpdate:modelValue": n[0] || (n[0] = (q) => e.question.booleanValue = q),
|
|
2474
2481
|
class: l(e.question.cssClasses.controlCheckbox),
|
|
2475
2482
|
id: e.question.inputId,
|
|
2476
2483
|
".indeterminate": e.question.isIndeterminate,
|
|
@@ -2479,8 +2486,8 @@ const so = /* @__PURE__ */ h({
|
|
|
2479
2486
|
"aria-label": e.question.ariaLabel,
|
|
2480
2487
|
"aria-invalid": e.question.ariaInvalid,
|
|
2481
2488
|
"aria-describedby": e.question.ariaDescribedBy
|
|
2482
|
-
}, null, 42,
|
|
2483
|
-
[
|
|
2489
|
+
}, null, 42, Xn), [
|
|
2490
|
+
[oe, e.question.booleanValue]
|
|
2484
2491
|
]),
|
|
2485
2492
|
c("span", {
|
|
2486
2493
|
class: l(e.question.cssClasses.checkboxMaterialDecorator)
|
|
@@ -2491,26 +2498,26 @@ const so = /* @__PURE__ */ h({
|
|
|
2491
2498
|
}, [
|
|
2492
2499
|
c("use", {
|
|
2493
2500
|
"xlink:href": e.question.svgIcon
|
|
2494
|
-
}, null, 8,
|
|
2501
|
+
}, null, 8, Yn)
|
|
2495
2502
|
], 2)) : d("", !0),
|
|
2496
|
-
|
|
2503
|
+
Zn
|
|
2497
2504
|
], 2),
|
|
2498
2505
|
e.question.isLabelRendered ? (i(), u("span", {
|
|
2499
2506
|
key: 0,
|
|
2500
2507
|
id: e.question.labelRenderedAriaID,
|
|
2501
2508
|
class: l(e.question.cssClasses.checkboxControlLabel)
|
|
2502
2509
|
}, [
|
|
2503
|
-
e.question.hasTitleActions ? d("", !0) : (i(),
|
|
2510
|
+
e.question.hasTitleActions ? d("", !0) : (i(), g(t, {
|
|
2504
2511
|
key: 0,
|
|
2505
2512
|
element: e.question,
|
|
2506
2513
|
css: e.css
|
|
2507
2514
|
}, null, 8, ["element", "css"])),
|
|
2508
|
-
e.question.hasTitleActions ? (i(),
|
|
2515
|
+
e.question.hasTitleActions ? (i(), g(a, {
|
|
2509
2516
|
key: 1,
|
|
2510
2517
|
element: e.question,
|
|
2511
2518
|
css: e.css
|
|
2512
2519
|
}, null, 8, ["element", "css"])) : d("", !0)
|
|
2513
|
-
], 10,
|
|
2520
|
+
], 10, xn)) : d("", !0)
|
|
2514
2521
|
], 2),
|
|
2515
2522
|
e.question.canRenderLabelDescription ? (i(), u("div", {
|
|
2516
2523
|
key: 0,
|
|
@@ -2524,7 +2531,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2524
2531
|
], 2);
|
|
2525
2532
|
};
|
|
2526
2533
|
}
|
|
2527
|
-
}),
|
|
2534
|
+
}), so = /* @__PURE__ */ h({
|
|
2528
2535
|
inheritAttrs: !1,
|
|
2529
2536
|
__name: "Multipletext",
|
|
2530
2537
|
props: {
|
|
@@ -2547,13 +2554,13 @@ const so = /* @__PURE__ */ h({
|
|
|
2547
2554
|
key: 0,
|
|
2548
2555
|
class: l(n.question.cssClasses.row)
|
|
2549
2556
|
}, [
|
|
2550
|
-
(i(!0), u($, null, B(y.cells, (
|
|
2551
|
-
key: "item" +
|
|
2552
|
-
class: l(
|
|
2557
|
+
(i(!0), u($, null, B(y.cells, (q) => (i(), u("td", {
|
|
2558
|
+
key: "item" + q.item.editor.id,
|
|
2559
|
+
class: l(q.className)
|
|
2553
2560
|
}, [
|
|
2554
2561
|
C(a, {
|
|
2555
2562
|
question: n.question,
|
|
2556
|
-
cell:
|
|
2563
|
+
cell: q
|
|
2557
2564
|
}, null, 8, ["question", "cell"])
|
|
2558
2565
|
], 2))), 128))
|
|
2559
2566
|
], 2)) : d("", !0)
|
|
@@ -2562,7 +2569,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2562
2569
|
], 2);
|
|
2563
2570
|
};
|
|
2564
2571
|
}
|
|
2565
|
-
}),
|
|
2572
|
+
}), no = { key: 1 }, oo = /* @__PURE__ */ h({
|
|
2566
2573
|
__name: "MultipletextItem",
|
|
2567
2574
|
props: {
|
|
2568
2575
|
question: {},
|
|
@@ -2574,7 +2581,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2574
2581
|
const e = w(() => s.cell.item);
|
|
2575
2582
|
return (n, t) => {
|
|
2576
2583
|
const a = p("survey-string"), y = p("survey-errors");
|
|
2577
|
-
return n.cell.isErrorsCell ? (i(),
|
|
2584
|
+
return n.cell.isErrorsCell ? (i(), g(y, {
|
|
2578
2585
|
key: 1,
|
|
2579
2586
|
element: e.value.editor
|
|
2580
2587
|
}, null, 8, ["element"])) : (i(), u("label", {
|
|
@@ -2588,30 +2595,30 @@ const so = /* @__PURE__ */ h({
|
|
|
2588
2595
|
e.value.editor.isRequireTextBeforeTitle || e.value.editor.isRequireTextOnStart ? (i(), u("span", {
|
|
2589
2596
|
key: 0,
|
|
2590
2597
|
class: l(n.question.cssClasses.requiredText)
|
|
2591
|
-
},
|
|
2598
|
+
}, T(e.value.editor.requiredText), 3)) : d("", !0),
|
|
2592
2599
|
C(a, {
|
|
2593
2600
|
locString: e.value.locTitle
|
|
2594
2601
|
}, null, 8, ["locString"]),
|
|
2595
|
-
e.value.editor.isRequireTextAfterTitle ? (i(), u("span",
|
|
2602
|
+
e.value.editor.isRequireTextAfterTitle ? (i(), u("span", no, "\xA0")) : d("", !0),
|
|
2596
2603
|
e.value.editor.isRequireTextAfterTitle ? (i(), u("span", {
|
|
2597
2604
|
key: 2,
|
|
2598
2605
|
"aria-hidden": "true",
|
|
2599
2606
|
class: l(n.question.cssClasses.requiredText)
|
|
2600
|
-
},
|
|
2607
|
+
}, T(e.value.editor.requiredText), 3)) : d("", !0)
|
|
2601
2608
|
], 6),
|
|
2602
2609
|
(i(), u("div", {
|
|
2603
2610
|
key: e.value.editor.id,
|
|
2604
2611
|
class: l(n.question.getItemCss()),
|
|
2605
2612
|
onFocusin: t[0] || (t[0] = (m) => e.value.focusIn())
|
|
2606
2613
|
}, [
|
|
2607
|
-
(i(),
|
|
2614
|
+
(i(), g(R(o(e.value.editor)), {
|
|
2608
2615
|
question: e.value.editor
|
|
2609
2616
|
}, null, 8, ["question"]))
|
|
2610
2617
|
], 34))
|
|
2611
2618
|
], 2));
|
|
2612
2619
|
};
|
|
2613
2620
|
}
|
|
2614
|
-
}),
|
|
2621
|
+
}), to = { class: "sv-hidden" }, io = { key: 0 }, ro = { key: 0 }, lo = ["onClick"], ao = ["data-responsive-title", "onClick"], uo = /* @__PURE__ */ h({
|
|
2615
2622
|
inheritAttrs: !1,
|
|
2616
2623
|
__name: "Matrix",
|
|
2617
2624
|
props: {
|
|
@@ -2633,7 +2640,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2633
2640
|
}
|
|
2634
2641
|
);
|
|
2635
2642
|
const n = (t, a) => {
|
|
2636
|
-
|
|
2643
|
+
t.value = a.value;
|
|
2637
2644
|
};
|
|
2638
2645
|
return (t, a) => {
|
|
2639
2646
|
const y = p("survey-string");
|
|
@@ -2643,25 +2650,25 @@ const so = /* @__PURE__ */ h({
|
|
|
2643
2650
|
ref: o
|
|
2644
2651
|
}, [
|
|
2645
2652
|
c("fieldset", null, [
|
|
2646
|
-
c("legend",
|
|
2653
|
+
c("legend", to, T(t.question.locTitle.renderedHtml), 1),
|
|
2647
2654
|
c("table", {
|
|
2648
2655
|
class: l(t.question.getTableCss())
|
|
2649
2656
|
}, [
|
|
2650
|
-
t.question.showHeader ? (i(), u("thead",
|
|
2657
|
+
t.question.showHeader ? (i(), u("thead", io, [
|
|
2651
2658
|
c("tr", null, [
|
|
2652
|
-
t.question.hasRows ? (i(), u("td",
|
|
2653
|
-
(i(!0), u($, null, B(t.question.visibleColumns, (m,
|
|
2654
|
-
key:
|
|
2659
|
+
t.question.hasRows ? (i(), u("td", ro)) : d("", !0),
|
|
2660
|
+
(i(!0), u($, null, B(t.question.visibleColumns, (m, q) => (i(), u("th", {
|
|
2661
|
+
key: q,
|
|
2655
2662
|
class: l(t.question.cssClasses.headerCell),
|
|
2656
2663
|
style: S({
|
|
2657
2664
|
minWidth: t.question.columnMinWidth,
|
|
2658
2665
|
width: t.question.columnMinWidth
|
|
2659
2666
|
})
|
|
2660
2667
|
}, [
|
|
2661
|
-
(i(),
|
|
2668
|
+
(i(), g(R(t.question.getColumnHeaderWrapperComponentName(m)), {
|
|
2662
2669
|
componentData: t.question.getColumnHeaderWrapperComponentData(m)
|
|
2663
2670
|
}, {
|
|
2664
|
-
default:
|
|
2671
|
+
default: F(() => [
|
|
2665
2672
|
C(y, {
|
|
2666
2673
|
locString: m.locText
|
|
2667
2674
|
}, null, 8, ["locString"])
|
|
@@ -2672,21 +2679,21 @@ const so = /* @__PURE__ */ h({
|
|
|
2672
2679
|
])
|
|
2673
2680
|
])) : d("", !0),
|
|
2674
2681
|
c("tbody", null, [
|
|
2675
|
-
(i(!0), u($, null, B(e.value, (m,
|
|
2676
|
-
key: "row_" + m.name + "_" +
|
|
2682
|
+
(i(!0), u($, null, B(e.value, (m, q) => (i(), u("tr", {
|
|
2683
|
+
key: "row_" + m.name + "_" + q,
|
|
2677
2684
|
class: l(m.rowClasses || void 0)
|
|
2678
2685
|
}, [
|
|
2679
2686
|
P(c("td", {
|
|
2680
|
-
class: l(
|
|
2687
|
+
class: l(m.rowTextClasses),
|
|
2681
2688
|
style: S({
|
|
2682
2689
|
minWidth: t.question.rowTitleWidth,
|
|
2683
2690
|
width: t.question.rowTitleWidth
|
|
2684
2691
|
})
|
|
2685
2692
|
}, [
|
|
2686
|
-
(i(),
|
|
2693
|
+
(i(), g(R(t.question.getRowHeaderWrapperComponentName(m)), {
|
|
2687
2694
|
componentData: t.question.getRowHeaderWrapperComponentData(m)
|
|
2688
2695
|
}, {
|
|
2689
|
-
default:
|
|
2696
|
+
default: F(() => [
|
|
2690
2697
|
C(y, {
|
|
2691
2698
|
locString: m.locText
|
|
2692
2699
|
}, null, 8, ["locString"])
|
|
@@ -2696,28 +2703,28 @@ const so = /* @__PURE__ */ h({
|
|
|
2696
2703
|
], 6), [
|
|
2697
2704
|
[M, t.question.hasRows]
|
|
2698
2705
|
]),
|
|
2699
|
-
t.question.hasCellText ? (i(!0), u($, { key: 0 }, B(t.question.visibleColumns, (
|
|
2706
|
+
t.question.hasCellText ? (i(!0), u($, { key: 0 }, B(t.question.visibleColumns, (v, I) => (i(), u("td", {
|
|
2700
2707
|
key: I,
|
|
2701
|
-
class: l(t.question.getItemClass(m,
|
|
2702
|
-
onClick: (b) => n(m,
|
|
2708
|
+
class: l(t.question.getItemClass(m, v)),
|
|
2709
|
+
onClick: (b) => n(m, v)
|
|
2703
2710
|
}, [
|
|
2704
2711
|
C(y, {
|
|
2705
|
-
locString: t.question.getCellDisplayLocText(m.name,
|
|
2712
|
+
locString: t.question.getCellDisplayLocText(m.name, v)
|
|
2706
2713
|
}, null, 8, ["locString"])
|
|
2707
|
-
], 10,
|
|
2708
|
-
t.question.hasCellText ? d("", !0) : (i(!0), u($, { key: 1 }, B(t.question.visibleColumns, (
|
|
2714
|
+
], 10, lo))), 128)) : d("", !0),
|
|
2715
|
+
t.question.hasCellText ? d("", !0) : (i(!0), u($, { key: 1 }, B(t.question.visibleColumns, (v, I) => (i(), u("td", {
|
|
2709
2716
|
key: I,
|
|
2710
|
-
"data-responsive-title":
|
|
2717
|
+
"data-responsive-title": v.locText.renderedHtml,
|
|
2711
2718
|
class: l(t.question.cssClasses.cell),
|
|
2712
|
-
onClick: (b) => n(m,
|
|
2719
|
+
onClick: (b) => n(m, v)
|
|
2713
2720
|
}, [
|
|
2714
|
-
(i(),
|
|
2721
|
+
(i(), g(R(t.question.cellComponent), {
|
|
2715
2722
|
question: t.question,
|
|
2716
2723
|
row: m,
|
|
2717
|
-
column:
|
|
2724
|
+
column: v,
|
|
2718
2725
|
columnIndex: I
|
|
2719
2726
|
}, null, 8, ["question", "row", "column", "columnIndex"]))
|
|
2720
|
-
], 10,
|
|
2727
|
+
], 10, ao))), 128))
|
|
2721
2728
|
], 2))), 128))
|
|
2722
2729
|
])
|
|
2723
2730
|
], 2)
|
|
@@ -2725,7 +2732,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2725
2732
|
], 2);
|
|
2726
2733
|
};
|
|
2727
2734
|
}
|
|
2728
|
-
}),
|
|
2735
|
+
}), mo = ["name", "value", "disabled", "id", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], co = ["xlink:href"], po = /* @__PURE__ */ h({
|
|
2729
2736
|
inheritAttrs: !1,
|
|
2730
2737
|
__name: "MatrixCell",
|
|
2731
2738
|
props: {
|
|
@@ -2747,7 +2754,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2747
2754
|
name: s.row.fullName,
|
|
2748
2755
|
"onUpdate:modelValue": o[0] || (o[0] = (n) => s.row.value = n),
|
|
2749
2756
|
value: s.column.value,
|
|
2750
|
-
disabled: s.
|
|
2757
|
+
disabled: s.row.isReadOnly,
|
|
2751
2758
|
id: s.question.inputId + "_" + s.row.name + "_" + s.columnIndex,
|
|
2752
2759
|
"aria-required": s.question.a11y_input_ariaRequired,
|
|
2753
2760
|
"aria-label": s.question.getCellAriaLabel(
|
|
@@ -2756,8 +2763,8 @@ const so = /* @__PURE__ */ h({
|
|
|
2756
2763
|
),
|
|
2757
2764
|
"aria-invalid": s.question.a11y_input_ariaInvalid,
|
|
2758
2765
|
"aria-describedby": s.question.a11y_input_ariaDescribedBy
|
|
2759
|
-
}, null, 10,
|
|
2760
|
-
[
|
|
2766
|
+
}, null, 10, mo), [
|
|
2767
|
+
[x, s.row.value]
|
|
2761
2768
|
]),
|
|
2762
2769
|
c("span", {
|
|
2763
2770
|
class: l(s.question.cssClasses.materialDecorator)
|
|
@@ -2768,7 +2775,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2768
2775
|
}, [
|
|
2769
2776
|
c("use", {
|
|
2770
2777
|
"xlink:href": s.question.itemSvgIcon
|
|
2771
|
-
}, null, 8,
|
|
2778
|
+
}, null, 8, co)
|
|
2772
2779
|
], 2)) : d("", !0)
|
|
2773
2780
|
], 2),
|
|
2774
2781
|
s.question.isMobile ? (i(), u("span", {
|
|
@@ -2782,7 +2789,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2782
2789
|
], 34);
|
|
2783
2790
|
};
|
|
2784
2791
|
}
|
|
2785
|
-
}),
|
|
2792
|
+
}), vo = /* @__PURE__ */ h({
|
|
2786
2793
|
inheritAttrs: !1,
|
|
2787
2794
|
__name: "MatrixDropdown",
|
|
2788
2795
|
props: {
|
|
@@ -2792,14 +2799,14 @@ const so = /* @__PURE__ */ h({
|
|
|
2792
2799
|
const s = r, o = _(null);
|
|
2793
2800
|
return A(s, o), (e, n) => {
|
|
2794
2801
|
const t = p("survey-matrixtable");
|
|
2795
|
-
return i(),
|
|
2802
|
+
return i(), g(t, {
|
|
2796
2803
|
question: e.question,
|
|
2797
2804
|
ref_key: "root",
|
|
2798
2805
|
ref: o
|
|
2799
2806
|
}, null, 8, ["question"]);
|
|
2800
2807
|
};
|
|
2801
2808
|
}
|
|
2802
|
-
}),
|
|
2809
|
+
}), yo = { key: 0 }, qo = ["data-sv-drop-target-matrix-row", "onPointerdown"], go = { key: 1 }, ho = /* @__PURE__ */ h({
|
|
2803
2810
|
__name: "MatrixTable",
|
|
2804
2811
|
props: {
|
|
2805
2812
|
question: {}
|
|
@@ -2828,7 +2835,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2828
2835
|
c("table", {
|
|
2829
2836
|
class: l(e.question.getTableCss())
|
|
2830
2837
|
}, [
|
|
2831
|
-
o.value.showHeader ? (i(), u("thead",
|
|
2838
|
+
o.value.showHeader ? (i(), u("thead", yo, [
|
|
2832
2839
|
c("tr", null, [
|
|
2833
2840
|
(i(!0), u($, null, B(o.value.headerRow.cells, (m) => (i(), u($, null, [
|
|
2834
2841
|
m.hasTitle ? (i(), u("th", {
|
|
@@ -2836,14 +2843,14 @@ const so = /* @__PURE__ */ h({
|
|
|
2836
2843
|
class: l(m.className),
|
|
2837
2844
|
style: S({ minWidth: m.minWidth, width: m.width })
|
|
2838
2845
|
}, [
|
|
2839
|
-
(i(),
|
|
2846
|
+
(i(), g(R(e.question.getColumnHeaderWrapperComponentName(m)), {
|
|
2840
2847
|
componentData: e.question.getColumnHeaderWrapperComponentData(m)
|
|
2841
2848
|
}, {
|
|
2842
|
-
default:
|
|
2849
|
+
default: F(() => [
|
|
2843
2850
|
C(t, {
|
|
2844
2851
|
locString: m.locTitle
|
|
2845
2852
|
}, null, 8, ["locString"]),
|
|
2846
|
-
m.column ? (i(),
|
|
2853
|
+
m.column ? (i(), g(a, {
|
|
2847
2854
|
key: 0,
|
|
2848
2855
|
column: m.column,
|
|
2849
2856
|
question: e.question
|
|
@@ -2867,23 +2874,23 @@ const so = /* @__PURE__ */ h({
|
|
|
2867
2874
|
m.visible ? (i(), u("tr", {
|
|
2868
2875
|
key: 0,
|
|
2869
2876
|
"data-sv-drop-target-matrix-row": m.row && m.row.id,
|
|
2870
|
-
onPointerdown: (
|
|
2877
|
+
onPointerdown: (q) => e.question.onPointerDown(q, m.row),
|
|
2871
2878
|
class: l(m.className)
|
|
2872
2879
|
}, [
|
|
2873
|
-
(i(!0), u($, null, B(m.cells, (
|
|
2874
|
-
cell:
|
|
2880
|
+
(i(!0), u($, null, B(m.cells, (q, v) => (i(), g(y, {
|
|
2881
|
+
cell: q,
|
|
2875
2882
|
question: e.question,
|
|
2876
|
-
key: m.id + "_" +
|
|
2883
|
+
key: m.id + "_" + v
|
|
2877
2884
|
}, null, 8, ["cell", "question"]))), 128))
|
|
2878
|
-
], 42,
|
|
2885
|
+
], 42, qo)) : d("", !0)
|
|
2879
2886
|
], 64))), 128))
|
|
2880
2887
|
]),
|
|
2881
|
-
o.value.showFooter ? (i(), u("tfoot",
|
|
2888
|
+
o.value.showFooter ? (i(), u("tfoot", go, [
|
|
2882
2889
|
c("tr", null, [
|
|
2883
|
-
(i(!0), u($, null, B(o.value.footerRow.cells, (m,
|
|
2890
|
+
(i(!0), u($, null, B(o.value.footerRow.cells, (m, q) => (i(), g(y, {
|
|
2884
2891
|
cell: m,
|
|
2885
2892
|
question: e.question,
|
|
2886
|
-
key: "footer_" +
|
|
2893
|
+
key: "footer_" + q
|
|
2887
2894
|
}, null, 8, ["cell", "question"]))), 128))
|
|
2888
2895
|
])
|
|
2889
2896
|
])) : d("", !0)
|
|
@@ -2891,7 +2898,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2891
2898
|
], 6);
|
|
2892
2899
|
};
|
|
2893
2900
|
}
|
|
2894
|
-
}),
|
|
2901
|
+
}), Co = /* @__PURE__ */ c("span", null, "\xA0", -1), bo = /* @__PURE__ */ h({
|
|
2895
2902
|
__name: "MatrixHeaderRequired",
|
|
2896
2903
|
props: {
|
|
2897
2904
|
question: {},
|
|
@@ -2900,40 +2907,40 @@ const so = /* @__PURE__ */ h({
|
|
|
2900
2907
|
setup(r) {
|
|
2901
2908
|
const s = r;
|
|
2902
2909
|
return L(() => s.column), (o, e) => o.column.isRenderedRequired ? (i(), u($, { key: 0 }, [
|
|
2903
|
-
|
|
2910
|
+
Co,
|
|
2904
2911
|
o.column.isRenderedRequired ? (i(), u("span", {
|
|
2905
2912
|
key: 0,
|
|
2906
2913
|
class: l(o.question.cssClasses.cellRequiredText)
|
|
2907
|
-
},
|
|
2914
|
+
}, T(o.column.requiredText), 3)) : d("", !0)
|
|
2908
2915
|
], 64)) : d("", !0);
|
|
2909
2916
|
}
|
|
2910
|
-
}),
|
|
2917
|
+
}), ko = ["data-responsive-title", "title", "colspan"], fo = /* @__PURE__ */ h({
|
|
2911
2918
|
__name: "MatrixDropdownCellComp",
|
|
2912
2919
|
props: {
|
|
2913
2920
|
question: {},
|
|
2914
2921
|
cell: {}
|
|
2915
2922
|
},
|
|
2916
2923
|
setup(r) {
|
|
2917
|
-
const s = r, o = _(!1), e = _(), n = () => s.cell.headers, t = () => !!s.cell.width || !!s.cell.minWidth ? { width: s.cell.width, minWidth: s.cell.minWidth } : null, a = () => o.value = s.cell.question.isVisible, y = (
|
|
2924
|
+
const s = r, o = _(!1), e = _(), n = () => s.cell.headers, t = () => !!s.cell.width || !!s.cell.minWidth ? { width: s.cell.width, minWidth: s.cell.minWidth } : null, a = () => o.value = s.cell.question.isVisible, y = (v) => re(v);
|
|
2918
2925
|
H(() => {
|
|
2919
2926
|
if (!s.cell.hasQuestion || !s.question || !s.question.survey)
|
|
2920
2927
|
return;
|
|
2921
2928
|
a(), s.cell.question.registerPropertyChangedHandlers(["isVisible"], () => {
|
|
2922
2929
|
a();
|
|
2923
2930
|
});
|
|
2924
|
-
const
|
|
2931
|
+
const v = e.value, I = s.cell.question, b = {
|
|
2925
2932
|
cell: s.cell.cell,
|
|
2926
2933
|
cellQuestion: I,
|
|
2927
|
-
htmlElement:
|
|
2934
|
+
htmlElement: v,
|
|
2928
2935
|
row: s.cell.row,
|
|
2929
2936
|
column: s.cell.cell.column
|
|
2930
2937
|
};
|
|
2931
|
-
s.question.survey.matrixAfterCellRender(s.question, b), I && I.afterRenderCore(
|
|
2938
|
+
s.question.survey.matrixAfterCellRender(s.question, b), I && I.afterRenderCore(v);
|
|
2932
2939
|
});
|
|
2933
2940
|
const m = w(() => {
|
|
2934
|
-
const
|
|
2935
|
-
if (
|
|
2936
|
-
const I =
|
|
2941
|
+
const v = s.cell;
|
|
2942
|
+
if (v.hasPanel) {
|
|
2943
|
+
const I = v.panel, b = I.survey;
|
|
2937
2944
|
if (b) {
|
|
2938
2945
|
const N = b.getElementWrapperComponentName(I);
|
|
2939
2946
|
if (N)
|
|
@@ -2941,7 +2948,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2941
2948
|
}
|
|
2942
2949
|
return "survey-panel";
|
|
2943
2950
|
}
|
|
2944
|
-
}),
|
|
2951
|
+
}), q = w(() => {
|
|
2945
2952
|
if (s.cell.hasPanel) {
|
|
2946
2953
|
const I = s.cell.panel, b = I.survey;
|
|
2947
2954
|
let N;
|
|
@@ -2955,98 +2962,98 @@ const so = /* @__PURE__ */ h({
|
|
|
2955
2962
|
};
|
|
2956
2963
|
}
|
|
2957
2964
|
});
|
|
2958
|
-
return (
|
|
2965
|
+
return (v, I) => {
|
|
2959
2966
|
const b = p("survey-errors"), N = p("sv-matrix-drag-drop-icon"), k = p("sv-action-bar"), D = p("survey-radiogroup-item"), E = p("survey-checkbox-item"), V = p("survey-other-choice"), K = p("survey-string");
|
|
2960
2967
|
return i(), u("td", {
|
|
2961
|
-
class: l(
|
|
2968
|
+
class: l(v.cell.className),
|
|
2962
2969
|
"data-responsive-title": n(),
|
|
2963
|
-
title:
|
|
2970
|
+
title: v.cell.getTitle(),
|
|
2964
2971
|
style: S(t()),
|
|
2965
|
-
colspan:
|
|
2966
|
-
onFocusin: I[0] || (I[0] = (ue) =>
|
|
2972
|
+
colspan: v.cell.colSpans,
|
|
2973
|
+
onFocusin: I[0] || (I[0] = (ue) => v.cell.focusIn()),
|
|
2967
2974
|
ref_key: "root",
|
|
2968
2975
|
ref: e
|
|
2969
2976
|
}, [
|
|
2970
|
-
|
|
2977
|
+
v.cell.isErrorsCell ? (i(), g(b, {
|
|
2971
2978
|
key: 0,
|
|
2972
|
-
element:
|
|
2979
|
+
element: v.cell.question
|
|
2973
2980
|
}, null, 8, ["element"])) : d("", !0),
|
|
2974
|
-
|
|
2981
|
+
v.cell.isDragHandlerCell ? (i(), g(N, {
|
|
2975
2982
|
key: 1,
|
|
2976
|
-
item: { data: { row:
|
|
2983
|
+
item: { data: { row: v.cell.row, question: v.question } }
|
|
2977
2984
|
}, null, 8, ["item"])) : d("", !0),
|
|
2978
|
-
|
|
2985
|
+
v.cell.isActionsCell ? (i(), g(k, {
|
|
2979
2986
|
key: 2,
|
|
2980
|
-
model:
|
|
2987
|
+
model: v.cell.item.getData(),
|
|
2981
2988
|
handleClick: !1
|
|
2982
2989
|
}, null, 8, ["model"])) : d("", !0),
|
|
2983
|
-
|
|
2984
|
-
|
|
2990
|
+
v.cell.hasPanel ? (i(), g(R(m.value), O(W({ key: 3 }, q.value)), null, 16)) : d("", !0),
|
|
2991
|
+
v.cell.hasQuestion ? P((i(), u("div", {
|
|
2985
2992
|
key: 4,
|
|
2986
|
-
class: l(
|
|
2993
|
+
class: l(v.question.cssClasses.cellQuestionWrapper)
|
|
2987
2994
|
}, [
|
|
2988
|
-
!
|
|
2995
|
+
!v.cell.isChoice && v.cell.question.isDefaultRendering() ? (i(), g(R(v.question.getCellWrapperComponentName(v.cell.cell)), {
|
|
2989
2996
|
key: 0,
|
|
2990
|
-
componentData:
|
|
2997
|
+
componentData: v.question.getCellWrapperComponentData(v.cell.cell)
|
|
2991
2998
|
}, {
|
|
2992
|
-
default:
|
|
2993
|
-
(i(),
|
|
2994
|
-
question:
|
|
2999
|
+
default: F(() => [
|
|
3000
|
+
(i(), g(R(y(v.cell.question)), {
|
|
3001
|
+
question: v.cell.question
|
|
2995
3002
|
}, null, 8, ["question"]))
|
|
2996
3003
|
]),
|
|
2997
3004
|
_: 1
|
|
2998
3005
|
}, 8, ["componentData"])) : d("", !0),
|
|
2999
|
-
!
|
|
3006
|
+
!v.cell.isChoice && !v.cell.question.isDefaultRendering() ? (i(), g(R(v.cell.question.getComponentName()), {
|
|
3000
3007
|
key: 1,
|
|
3001
|
-
question:
|
|
3008
|
+
question: v.cell.question
|
|
3002
3009
|
}, null, 8, ["question"])) : d("", !0),
|
|
3003
|
-
|
|
3010
|
+
v.cell.isItemChoice ? (i(), g(R(v.question.getCellWrapperComponentName(v.cell.cell)), {
|
|
3004
3011
|
key: 2,
|
|
3005
|
-
componentData:
|
|
3012
|
+
componentData: v.question.getCellWrapperComponentData(v.cell.cell)
|
|
3006
3013
|
}, {
|
|
3007
|
-
default:
|
|
3008
|
-
|
|
3009
|
-
key:
|
|
3010
|
-
question:
|
|
3011
|
-
item:
|
|
3014
|
+
default: F(() => [
|
|
3015
|
+
v.cell.isRadio ? (i(), g(D, {
|
|
3016
|
+
key: v.cell.item.value,
|
|
3017
|
+
question: v.cell.question,
|
|
3018
|
+
item: v.cell.item,
|
|
3012
3019
|
hideLabel: !0
|
|
3013
3020
|
}, null, 8, ["question", "item"])) : d("", !0),
|
|
3014
|
-
|
|
3015
|
-
key:
|
|
3016
|
-
question:
|
|
3017
|
-
item:
|
|
3021
|
+
v.cell.isCheckbox ? (i(), g(E, {
|
|
3022
|
+
key: v.cell.item.value,
|
|
3023
|
+
question: v.cell.question,
|
|
3024
|
+
item: v.cell.item,
|
|
3018
3025
|
hideLabel: !0
|
|
3019
3026
|
}, null, 8, ["question", "item"])) : d("", !0)
|
|
3020
3027
|
]),
|
|
3021
3028
|
_: 1
|
|
3022
3029
|
}, 8, ["componentData"])) : d("", !0),
|
|
3023
|
-
|
|
3030
|
+
v.cell.isOtherChoice ? (i(), g(V, {
|
|
3024
3031
|
key: 3,
|
|
3025
|
-
question:
|
|
3032
|
+
question: v.cell.question
|
|
3026
3033
|
}, null, 8, ["question"])) : d("", !0)
|
|
3027
3034
|
], 2)), [
|
|
3028
3035
|
[M, o.value]
|
|
3029
3036
|
]) : d("", !0),
|
|
3030
|
-
|
|
3037
|
+
v.cell.hasTitle ? (i(), g(R(v.question.getCellWrapperComponentName(v.cell)), {
|
|
3031
3038
|
key: 5,
|
|
3032
|
-
componentData:
|
|
3039
|
+
componentData: v.question.getCellWrapperComponentData(v.cell)
|
|
3033
3040
|
}, {
|
|
3034
|
-
default:
|
|
3035
|
-
|
|
3041
|
+
default: F(() => [
|
|
3042
|
+
v.cell.hasTitle ? (i(), g(K, {
|
|
3036
3043
|
key: 0,
|
|
3037
|
-
locString:
|
|
3044
|
+
locString: v.cell.locTitle
|
|
3038
3045
|
}, null, 8, ["locString"])) : d("", !0),
|
|
3039
|
-
|
|
3046
|
+
v.cell.requiredText ? (i(), u("span", {
|
|
3040
3047
|
key: 1,
|
|
3041
|
-
class: l(
|
|
3042
|
-
},
|
|
3048
|
+
class: l(v.question.cssClasses.cellRequiredText)
|
|
3049
|
+
}, T(v.cell.requiredText), 3)) : d("", !0)
|
|
3043
3050
|
]),
|
|
3044
3051
|
_: 1
|
|
3045
3052
|
}, 8, ["componentData"])) : d("", !0)
|
|
3046
|
-
], 46,
|
|
3053
|
+
], 46, ko);
|
|
3047
3054
|
};
|
|
3048
3055
|
}
|
|
3049
|
-
}),
|
|
3056
|
+
}), Io = /* @__PURE__ */ h({
|
|
3050
3057
|
inheritAttrs: !1,
|
|
3051
3058
|
__name: "MatrixDynamic",
|
|
3052
3059
|
props: {
|
|
@@ -3081,7 +3088,7 @@ const so = /* @__PURE__ */ h({
|
|
|
3081
3088
|
}, null, 2)
|
|
3082
3089
|
], 2)
|
|
3083
3090
|
], 2)) : d("", !0),
|
|
3084
|
-
n.question.renderedTable.showTable ? (i(),
|
|
3091
|
+
n.question.renderedTable.showTable ? (i(), g(y, {
|
|
3085
3092
|
key: 1,
|
|
3086
3093
|
question: n.question
|
|
3087
3094
|
}, null, 8, ["question"])) : d("", !0),
|
|
@@ -3137,7 +3144,7 @@ function ae(r, s = !0) {
|
|
|
3137
3144
|
row: s ? w(() => r.item.data.row) : void 0
|
|
3138
3145
|
};
|
|
3139
3146
|
}
|
|
3140
|
-
const
|
|
3147
|
+
const wo = ["disabled"], So = /* @__PURE__ */ h({
|
|
3141
3148
|
__name: "RemoveButton",
|
|
3142
3149
|
props: {
|
|
3143
3150
|
item: {}
|
|
@@ -3158,10 +3165,10 @@ const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
|
3158
3165
|
c("span", {
|
|
3159
3166
|
class: l(f(o).cssClasses.iconRemove)
|
|
3160
3167
|
}, null, 2)
|
|
3161
|
-
], 10,
|
|
3168
|
+
], 10, wo);
|
|
3162
3169
|
};
|
|
3163
3170
|
}
|
|
3164
|
-
}),
|
|
3171
|
+
}), Ro = ["xlink:href"], To = /* @__PURE__ */ h({
|
|
3165
3172
|
__name: "DragDropIcon",
|
|
3166
3173
|
props: {
|
|
3167
3174
|
item: {}
|
|
@@ -3174,13 +3181,13 @@ const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
|
3174
3181
|
}, [
|
|
3175
3182
|
c("use", {
|
|
3176
3183
|
"xlink:href": f(o).iconDragElement
|
|
3177
|
-
}, null, 8,
|
|
3184
|
+
}, null, 8, Ro)
|
|
3178
3185
|
], 2)) : (i(), u("span", {
|
|
3179
3186
|
key: 1,
|
|
3180
3187
|
class: l(f(o).cssClasses.iconDrag)
|
|
3181
3188
|
}, null, 2));
|
|
3182
3189
|
}
|
|
3183
|
-
}),
|
|
3190
|
+
}), $o = ["aria-expanded", "aria-controls"], _o = /* @__PURE__ */ h({
|
|
3184
3191
|
__name: "DetailButton",
|
|
3185
3192
|
props: {
|
|
3186
3193
|
item: {}
|
|
@@ -3201,10 +3208,10 @@ const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
|
3201
3208
|
iconName: f(o).getDetailPanelIconId(f(e)),
|
|
3202
3209
|
size: "auto"
|
|
3203
3210
|
}, null, 8, ["class", "iconName"])
|
|
3204
|
-
], 10,
|
|
3211
|
+
], 10, $o);
|
|
3205
3212
|
};
|
|
3206
3213
|
}
|
|
3207
|
-
}),
|
|
3214
|
+
}), Do = /* @__PURE__ */ h({
|
|
3208
3215
|
inheritAttrs: !1,
|
|
3209
3216
|
__name: "PanelDynamic",
|
|
3210
3217
|
props: {
|
|
@@ -3218,14 +3225,14 @@ const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
|
3218
3225
|
o,
|
|
3219
3226
|
(m) => {
|
|
3220
3227
|
m.panelCountChangedCallback = () => {
|
|
3221
|
-
var
|
|
3222
|
-
(
|
|
3228
|
+
var q;
|
|
3229
|
+
(q = e == null ? void 0 : e.proxy) == null || q.$forceUpdate();
|
|
3223
3230
|
}, m.currentIndexChangedCallback = () => {
|
|
3224
|
-
var
|
|
3225
|
-
(
|
|
3231
|
+
var q;
|
|
3232
|
+
(q = e == null ? void 0 : e.proxy) == null || q.$forceUpdate();
|
|
3226
3233
|
}, m.renderModeChangedCallback = () => {
|
|
3227
|
-
var
|
|
3228
|
-
(
|
|
3234
|
+
var q;
|
|
3235
|
+
(q = e == null ? void 0 : e.proxy) == null || q.$forceUpdate();
|
|
3229
3236
|
};
|
|
3230
3237
|
},
|
|
3231
3238
|
(m) => {
|
|
@@ -3241,26 +3248,26 @@ const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
|
3241
3248
|
const m = [];
|
|
3242
3249
|
return s.question.currentPanel && m.push(s.question.currentPanel), m;
|
|
3243
3250
|
}), t = () => s.question.showLegacyNavigation, a = (m) => {
|
|
3244
|
-
const
|
|
3245
|
-
if (
|
|
3246
|
-
const
|
|
3247
|
-
if (
|
|
3248
|
-
return
|
|
3251
|
+
const q = s.question.getSurvey();
|
|
3252
|
+
if (q) {
|
|
3253
|
+
const v = q.getElementWrapperComponentName(m);
|
|
3254
|
+
if (v)
|
|
3255
|
+
return v;
|
|
3249
3256
|
}
|
|
3250
3257
|
return "panel";
|
|
3251
3258
|
}, y = (m) => {
|
|
3252
|
-
const
|
|
3253
|
-
let
|
|
3254
|
-
return
|
|
3259
|
+
const q = s.question.getSurvey();
|
|
3260
|
+
let v;
|
|
3261
|
+
return q && (v = q.getElementWrapperComponentData(m)), {
|
|
3255
3262
|
componentName: "survey-panel",
|
|
3256
3263
|
componentData: {
|
|
3257
3264
|
element: m,
|
|
3258
|
-
data:
|
|
3265
|
+
data: v
|
|
3259
3266
|
}
|
|
3260
3267
|
};
|
|
3261
3268
|
};
|
|
3262
|
-
return (m,
|
|
3263
|
-
const
|
|
3269
|
+
return (m, q) => {
|
|
3270
|
+
const v = p("survey-string"), I = p("sv-paneldynamic-add-btn"), b = p("survey-paneldynamicprogress"), N = p("sv-paneldynamic-remove-btn"), k = p("survey-paneldynamicprogress-v2");
|
|
3264
3271
|
return i(), u("div", {
|
|
3265
3272
|
class: l(m.question.cssClasses.root),
|
|
3266
3273
|
ref_key: "root",
|
|
@@ -3271,7 +3278,7 @@ const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
|
3271
3278
|
class: l(m.question.cssClasses.noEntriesPlaceholder)
|
|
3272
3279
|
}, [
|
|
3273
3280
|
c("span", null, [
|
|
3274
|
-
C(
|
|
3281
|
+
C(v, {
|
|
3275
3282
|
locString: m.question.locNoEntriesText
|
|
3276
3283
|
}, null, 8, ["locString"])
|
|
3277
3284
|
]),
|
|
@@ -3289,7 +3296,7 @@ const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
|
3289
3296
|
role: "progressbar"
|
|
3290
3297
|
}, null, 6)
|
|
3291
3298
|
], 2)) : d("", !0),
|
|
3292
|
-
t() && m.question.isProgressTopShowing ? (i(),
|
|
3299
|
+
t() && m.question.isProgressTopShowing ? (i(), g(b, {
|
|
3293
3300
|
key: 2,
|
|
3294
3301
|
question: m.question
|
|
3295
3302
|
}, null, 8, ["question"])) : d("", !0),
|
|
@@ -3299,8 +3306,8 @@ const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
|
3299
3306
|
c("div", {
|
|
3300
3307
|
class: l(m.question.getPanelWrapperCss())
|
|
3301
3308
|
}, [
|
|
3302
|
-
(i(),
|
|
3303
|
-
m.question.panelRemoveButtonLocation === "right" && m.question.canRemovePanel && D.state !== "collapsed" ? (i(),
|
|
3309
|
+
(i(), g(R(a(D)), O(ne(y(D))), null, 16)),
|
|
3310
|
+
m.question.panelRemoveButtonLocation === "right" && m.question.canRemovePanel && D.state !== "collapsed" ? (i(), g(N, {
|
|
3304
3311
|
key: 0,
|
|
3305
3312
|
data: { question: m.question, panel: D }
|
|
3306
3313
|
}, null, 8, ["data"])) : d("", !0)
|
|
@@ -3310,22 +3317,22 @@ const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
|
3310
3317
|
key: "separator" + D.id
|
|
3311
3318
|
}, null, 2)) : d("", !0)
|
|
3312
3319
|
], 64))), 128)),
|
|
3313
|
-
t() && m.question.isProgressBottomShowing ? (i(),
|
|
3320
|
+
t() && m.question.isProgressBottomShowing ? (i(), g(b, {
|
|
3314
3321
|
key: 3,
|
|
3315
3322
|
question: m.question
|
|
3316
3323
|
}, null, 8, ["question"])) : d("", !0),
|
|
3317
|
-
t() && m.question.isRenderModeList ? (i(),
|
|
3324
|
+
t() && m.question.isRenderModeList ? (i(), g(I, {
|
|
3318
3325
|
key: 4,
|
|
3319
3326
|
data: { question: m.question }
|
|
3320
3327
|
}, null, 8, ["data"])) : d("", !0),
|
|
3321
|
-
m.question.showNavigation ? (i(),
|
|
3328
|
+
m.question.showNavigation ? (i(), g(k, {
|
|
3322
3329
|
key: 5,
|
|
3323
3330
|
question: m.question
|
|
3324
3331
|
}, null, 8, ["question"])) : d("", !0)
|
|
3325
3332
|
], 2);
|
|
3326
3333
|
};
|
|
3327
3334
|
}
|
|
3328
|
-
}),
|
|
3335
|
+
}), Bo = /* @__PURE__ */ h({
|
|
3329
3336
|
__name: "PanelDynamicProgress",
|
|
3330
3337
|
props: {
|
|
3331
3338
|
question: {}
|
|
@@ -3371,7 +3378,7 @@ const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
|
3371
3378
|
], 2);
|
|
3372
3379
|
};
|
|
3373
3380
|
}
|
|
3374
|
-
}),
|
|
3381
|
+
}), Lo = /* @__PURE__ */ h({
|
|
3375
3382
|
__name: "PanelDynamicProgressV2",
|
|
3376
3383
|
props: {
|
|
3377
3384
|
question: {}
|
|
@@ -3413,7 +3420,7 @@ function Y(r) {
|
|
|
3413
3420
|
() => r.item && r.item.data.question || r.data.question
|
|
3414
3421
|
);
|
|
3415
3422
|
}
|
|
3416
|
-
const
|
|
3423
|
+
const No = /* @__PURE__ */ h({
|
|
3417
3424
|
__name: "PaneldynamicAddBtn",
|
|
3418
3425
|
props: {
|
|
3419
3426
|
item: {},
|
|
@@ -3423,18 +3430,25 @@ const Po = /* @__PURE__ */ h({
|
|
|
3423
3430
|
const o = Y(r), e = () => {
|
|
3424
3431
|
o.value.addPanelUI();
|
|
3425
3432
|
};
|
|
3426
|
-
return (n, t) =>
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3433
|
+
return (n, t) => {
|
|
3434
|
+
const a = p("survey-string");
|
|
3435
|
+
return f(o).canAddPanel ? (i(), u("button", {
|
|
3436
|
+
key: 0,
|
|
3437
|
+
type: "button",
|
|
3438
|
+
class: l(f(o).getAddButtonCss()),
|
|
3439
|
+
onClick: e
|
|
3440
|
+
}, [
|
|
3441
|
+
c("span", {
|
|
3442
|
+
class: l(f(o).cssClasses.buttonAddText)
|
|
3443
|
+
}, [
|
|
3444
|
+
C(a, {
|
|
3445
|
+
locString: f(o).locPanelAddText
|
|
3446
|
+
}, null, 8, ["locString"])
|
|
3447
|
+
], 2)
|
|
3448
|
+
], 2)) : d("", !0);
|
|
3449
|
+
};
|
|
3436
3450
|
}
|
|
3437
|
-
}),
|
|
3451
|
+
}), Po = ["title"], Ao = /* @__PURE__ */ h({
|
|
3438
3452
|
__name: "PaneldynamicNextBtn",
|
|
3439
3453
|
props: {
|
|
3440
3454
|
item: {},
|
|
@@ -3455,10 +3469,10 @@ const Po = /* @__PURE__ */ h({
|
|
|
3455
3469
|
iconName: f(o).cssClasses.progressBtnIcon,
|
|
3456
3470
|
size: "auto"
|
|
3457
3471
|
}, null, 8, ["iconName"])
|
|
3458
|
-
], 10,
|
|
3472
|
+
], 10, Po);
|
|
3459
3473
|
};
|
|
3460
3474
|
}
|
|
3461
|
-
}),
|
|
3475
|
+
}), Mo = ["title"], Ho = /* @__PURE__ */ h({
|
|
3462
3476
|
__name: "PaneldynamicPrevBtn",
|
|
3463
3477
|
props: {
|
|
3464
3478
|
item: {},
|
|
@@ -3479,10 +3493,10 @@ const Po = /* @__PURE__ */ h({
|
|
|
3479
3493
|
iconName: f(o).cssClasses.progressBtnIcon,
|
|
3480
3494
|
size: "auto"
|
|
3481
3495
|
}, null, 8, ["iconName"])
|
|
3482
|
-
], 10,
|
|
3496
|
+
], 10, Mo);
|
|
3483
3497
|
};
|
|
3484
3498
|
}
|
|
3485
|
-
}),
|
|
3499
|
+
}), Wo = /* @__PURE__ */ h({
|
|
3486
3500
|
__name: "PaneldynamicRemoveBtn",
|
|
3487
3501
|
props: {
|
|
3488
3502
|
item: {},
|
|
@@ -3494,20 +3508,27 @@ const Po = /* @__PURE__ */ h({
|
|
|
3494
3508
|
), n = (t) => {
|
|
3495
3509
|
o.value.isInputReadOnly || o.value.removePanelUI(t);
|
|
3496
3510
|
};
|
|
3497
|
-
return (t, a) =>
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3511
|
+
return (t, a) => {
|
|
3512
|
+
const y = p("survey-string");
|
|
3513
|
+
return i(), u("button", {
|
|
3514
|
+
type: "button",
|
|
3515
|
+
class: l(f(o).getPanelRemoveButtonCss()),
|
|
3516
|
+
onClick: a[0] || (a[0] = (m) => n(e.value))
|
|
3517
|
+
}, [
|
|
3518
|
+
c("span", {
|
|
3519
|
+
class: l(f(o).cssClasses.buttonRemoveText)
|
|
3520
|
+
}, [
|
|
3521
|
+
C(y, {
|
|
3522
|
+
locString: f(o).locPanelRemoveText
|
|
3523
|
+
}, null, 8, ["locString"])
|
|
3524
|
+
], 2),
|
|
3525
|
+
c("span", {
|
|
3526
|
+
class: l(f(o).cssClasses.iconRemove)
|
|
3527
|
+
}, null, 2)
|
|
3528
|
+
], 2);
|
|
3529
|
+
};
|
|
3509
3530
|
}
|
|
3510
|
-
}),
|
|
3531
|
+
}), Eo = /* @__PURE__ */ h({
|
|
3511
3532
|
__name: "PaneldynamicProgressText",
|
|
3512
3533
|
props: {
|
|
3513
3534
|
item: {},
|
|
@@ -3517,9 +3538,9 @@ const Po = /* @__PURE__ */ h({
|
|
|
3517
3538
|
const o = Y(r);
|
|
3518
3539
|
return (e, n) => (i(), u("div", {
|
|
3519
3540
|
class: l(f(o).cssClasses.progressText)
|
|
3520
|
-
},
|
|
3541
|
+
}, T(f(o).progressText), 3));
|
|
3521
3542
|
}
|
|
3522
|
-
}),
|
|
3543
|
+
}), Vo = ["id"], Fo = /* @__PURE__ */ h({
|
|
3523
3544
|
__name: "Errors",
|
|
3524
3545
|
props: {
|
|
3525
3546
|
element: {},
|
|
@@ -3557,16 +3578,16 @@ const Po = /* @__PURE__ */ h({
|
|
|
3557
3578
|
}, null, 8, ["locString"])
|
|
3558
3579
|
], 2)
|
|
3559
3580
|
]))), 128))
|
|
3560
|
-
], 10,
|
|
3581
|
+
], 10, Vo)) : d("", !0);
|
|
3561
3582
|
};
|
|
3562
3583
|
}
|
|
3563
|
-
}),
|
|
3584
|
+
}), Oo = { key: 0 }, zo = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], Uo = /* @__PURE__ */ h({
|
|
3564
3585
|
__name: "QuestionComment",
|
|
3565
3586
|
props: {
|
|
3566
3587
|
question: {}
|
|
3567
3588
|
},
|
|
3568
3589
|
setup(r) {
|
|
3569
|
-
return (s, o) => s.question.isReadOnlyRenderDiv() ? (i(), u("div",
|
|
3590
|
+
return (s, o) => s.question.isReadOnlyRenderDiv() ? (i(), u("div", Oo, T(s.question.comment), 1)) : (i(), u("textarea", {
|
|
3570
3591
|
key: 1,
|
|
3571
3592
|
id: s.question.commentId,
|
|
3572
3593
|
readonly: s.question.isInputReadOnly,
|
|
@@ -3584,9 +3605,9 @@ const Po = /* @__PURE__ */ h({
|
|
|
3584
3605
|
onInput: o[1] || (o[1] = (e) => {
|
|
3585
3606
|
s.question.onCommentInput(e);
|
|
3586
3607
|
})
|
|
3587
|
-
}, null, 46,
|
|
3608
|
+
}, null, 46, zo));
|
|
3588
3609
|
}
|
|
3589
|
-
}),
|
|
3610
|
+
}), Ko = /* @__PURE__ */ h({
|
|
3590
3611
|
__name: "TitleElement",
|
|
3591
3612
|
props: {
|
|
3592
3613
|
element: {},
|
|
@@ -3598,7 +3619,7 @@ const Po = /* @__PURE__ */ h({
|
|
|
3598
3619
|
};
|
|
3599
3620
|
return (o, e) => {
|
|
3600
3621
|
const n = p("survey-element-title-content"), t = p("sv-title-actions");
|
|
3601
|
-
return o.element.hasTitle ? (i(),
|
|
3622
|
+
return o.element.hasTitle ? (i(), g(R(o.element.titleTagName), {
|
|
3602
3623
|
key: 0,
|
|
3603
3624
|
class: l(o.element.cssTitle),
|
|
3604
3625
|
"aria-label": o.element.titleAriaLabel,
|
|
@@ -3610,13 +3631,13 @@ const Po = /* @__PURE__ */ h({
|
|
|
3610
3631
|
s(a);
|
|
3611
3632
|
})
|
|
3612
3633
|
}, {
|
|
3613
|
-
default:
|
|
3614
|
-
o.element.hasTitleActions ? d("", !0) : (i(),
|
|
3634
|
+
default: F(() => [
|
|
3635
|
+
o.element.hasTitleActions ? d("", !0) : (i(), g(n, {
|
|
3615
3636
|
key: 0,
|
|
3616
3637
|
element: o.element,
|
|
3617
3638
|
css: o.css
|
|
3618
3639
|
}, null, 8, ["element", "css"])),
|
|
3619
|
-
o.element.hasTitleActions ? (i(),
|
|
3640
|
+
o.element.hasTitleActions ? (i(), g(t, {
|
|
3620
3641
|
key: 1,
|
|
3621
3642
|
element: o.element,
|
|
3622
3643
|
css: o.css
|
|
@@ -3626,7 +3647,7 @@ const Po = /* @__PURE__ */ h({
|
|
|
3626
3647
|
}, 40, ["class", "aria-label", "id", "tabindex", "aria-expanded", "role"])) : d("", !0);
|
|
3627
3648
|
};
|
|
3628
3649
|
}
|
|
3629
|
-
}),
|
|
3650
|
+
}), jo = { key: 3 }, Qo = { key: 5 }, Go = { key: 7 }, Jo = /* @__PURE__ */ h({
|
|
3630
3651
|
inheritAttrs: !1,
|
|
3631
3652
|
__name: "TitleContent",
|
|
3632
3653
|
props: {
|
|
@@ -3637,7 +3658,7 @@ const Po = /* @__PURE__ */ h({
|
|
|
3637
3658
|
return (s, o) => {
|
|
3638
3659
|
const e = p("survey-string");
|
|
3639
3660
|
return i(), u($, null, [
|
|
3640
|
-
s.element.isTitleRenderedAsString ? (i(),
|
|
3661
|
+
s.element.isTitleRenderedAsString ? (i(), g(e, {
|
|
3641
3662
|
key: 0,
|
|
3642
3663
|
locString: s.element.locTitle
|
|
3643
3664
|
}, null, 8, ["locString"])) : d("", !0),
|
|
@@ -3645,34 +3666,34 @@ const Po = /* @__PURE__ */ h({
|
|
|
3645
3666
|
key: 1,
|
|
3646
3667
|
class: l(s.element.cssClasses.requiredText),
|
|
3647
3668
|
"aria-hidden": !0
|
|
3648
|
-
},
|
|
3669
|
+
}, T(s.element.requiredText), 3)) : d("", !0),
|
|
3649
3670
|
!s.element.isTitleRenderedAsString && s.element.no ? (i(), u("span", {
|
|
3650
3671
|
key: 2,
|
|
3651
3672
|
style: { position: "static" },
|
|
3652
3673
|
class: l(s.element.cssTitleNumber),
|
|
3653
3674
|
"aria-hidden": !0
|
|
3654
|
-
},
|
|
3655
|
-
!s.element.isTitleRenderedAsString && s.element.no ? (i(), u("span",
|
|
3675
|
+
}, T(s.element.no), 3)) : d("", !0),
|
|
3676
|
+
!s.element.isTitleRenderedAsString && s.element.no ? (i(), u("span", jo, "\xA0")) : d("", !0),
|
|
3656
3677
|
!s.element.isTitleRenderedAsString && s.element.isRequireTextBeforeTitle ? (i(), u("span", {
|
|
3657
3678
|
key: 4,
|
|
3658
3679
|
class: l(s.element.cssClasses.requiredText),
|
|
3659
3680
|
"aria-hidden": !0
|
|
3660
|
-
},
|
|
3661
|
-
!s.element.isTitleRenderedAsString && s.element.isRequireTextBeforeTitle ? (i(), u("span",
|
|
3662
|
-
s.element.isTitleRenderedAsString ? d("", !0) : (i(),
|
|
3681
|
+
}, T(s.element.requiredText), 3)) : d("", !0),
|
|
3682
|
+
!s.element.isTitleRenderedAsString && s.element.isRequireTextBeforeTitle ? (i(), u("span", Qo, "\xA0")) : d("", !0),
|
|
3683
|
+
s.element.isTitleRenderedAsString ? d("", !0) : (i(), g(e, {
|
|
3663
3684
|
key: 6,
|
|
3664
3685
|
locString: s.element.locTitle
|
|
3665
3686
|
}, null, 8, ["locString"])),
|
|
3666
|
-
!s.element.isTitleRenderedAsString && s.element.isRequireTextAfterTitle ? (i(), u("span",
|
|
3687
|
+
!s.element.isTitleRenderedAsString && s.element.isRequireTextAfterTitle ? (i(), u("span", Go, "\xA0")) : d("", !0),
|
|
3667
3688
|
!s.element.isTitleRenderedAsString && s.element.isRequireTextAfterTitle ? (i(), u("span", {
|
|
3668
3689
|
key: 8,
|
|
3669
3690
|
class: l(s.element.cssClasses.requiredText),
|
|
3670
3691
|
"aria-hidden": !0
|
|
3671
|
-
},
|
|
3692
|
+
}, T(s.element.requiredText), 3)) : d("", !0)
|
|
3672
3693
|
], 64);
|
|
3673
3694
|
};
|
|
3674
3695
|
}
|
|
3675
|
-
}),
|
|
3696
|
+
}), Xo = { class: "sv-title-actions" }, Yo = { class: "sv-title-actions__title" }, Zo = /* @__PURE__ */ h({
|
|
3676
3697
|
__name: "TitleActions",
|
|
3677
3698
|
props: {
|
|
3678
3699
|
element: {},
|
|
@@ -3682,13 +3703,13 @@ const Po = /* @__PURE__ */ h({
|
|
|
3682
3703
|
const s = r, o = w(() => s.element.getTitleToolbar());
|
|
3683
3704
|
return (e, n) => {
|
|
3684
3705
|
const t = p("survey-string"), a = p("survey-element-title-content"), y = p("sv-action-bar");
|
|
3685
|
-
return i(), u("div",
|
|
3686
|
-
c("span",
|
|
3687
|
-
e.element.isPage ? (i(),
|
|
3706
|
+
return i(), u("div", Xo, [
|
|
3707
|
+
c("span", Yo, [
|
|
3708
|
+
e.element.isPage ? (i(), g(t, {
|
|
3688
3709
|
key: 0,
|
|
3689
3710
|
locString: e.element.locTitle
|
|
3690
3711
|
}, null, 8, ["locString"])) : d("", !0),
|
|
3691
|
-
e.element.isPage ? d("", !0) : (i(),
|
|
3712
|
+
e.element.isPage ? d("", !0) : (i(), g(a, {
|
|
3692
3713
|
key: 1,
|
|
3693
3714
|
element: e.element,
|
|
3694
3715
|
css: e.css
|
|
@@ -3703,15 +3724,15 @@ const Po = /* @__PURE__ */ h({
|
|
|
3703
3724
|
for (const [e, n] of s)
|
|
3704
3725
|
o[e] = n;
|
|
3705
3726
|
return o;
|
|
3706
|
-
},
|
|
3707
|
-
|
|
3727
|
+
}, xo = {}, et = { class: "sv-brand-info" }, st = /* @__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), nt = [
|
|
3728
|
+
st
|
|
3708
3729
|
];
|
|
3709
|
-
function
|
|
3710
|
-
return i(), u("div",
|
|
3730
|
+
function ot(r, s) {
|
|
3731
|
+
return i(), u("div", et, nt);
|
|
3711
3732
|
}
|
|
3712
|
-
const
|
|
3713
|
-
|
|
3714
|
-
],
|
|
3733
|
+
const tt = /* @__PURE__ */ Ce(xo, [["render", ot]]), it = /* @__PURE__ */ c("use", null, null, -1), rt = [
|
|
3734
|
+
it
|
|
3735
|
+
], lt = /* @__PURE__ */ h({
|
|
3715
3736
|
__name: "SvgIcon",
|
|
3716
3737
|
props: {
|
|
3717
3738
|
size: {},
|
|
@@ -3731,7 +3752,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
3731
3752
|
s.title
|
|
3732
3753
|
);
|
|
3733
3754
|
};
|
|
3734
|
-
return
|
|
3755
|
+
return te(() => {
|
|
3735
3756
|
e();
|
|
3736
3757
|
}), H(() => {
|
|
3737
3758
|
e();
|
|
@@ -3740,9 +3761,9 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
3740
3761
|
ref: o,
|
|
3741
3762
|
class: "sv-svg-icon",
|
|
3742
3763
|
role: "img"
|
|
3743
|
-
},
|
|
3764
|
+
}, rt, 512));
|
|
3744
3765
|
}
|
|
3745
|
-
}),
|
|
3766
|
+
}), at = /* @__PURE__ */ h({
|
|
3746
3767
|
__name: "ActionBar",
|
|
3747
3768
|
props: {
|
|
3748
3769
|
model: {},
|
|
@@ -3768,14 +3789,14 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
3768
3789
|
class: l(t.model.getRootCss()),
|
|
3769
3790
|
onClick: e
|
|
3770
3791
|
}, [
|
|
3771
|
-
(i(!0), u($, null, B(f(n), (m) => (i(),
|
|
3792
|
+
(i(!0), u($, null, B(f(n), (m) => (i(), g(y, {
|
|
3772
3793
|
key: m.id,
|
|
3773
3794
|
item: m
|
|
3774
3795
|
}, null, 8, ["item"]))), 128))
|
|
3775
3796
|
], 2)) : d("", !0);
|
|
3776
3797
|
};
|
|
3777
3798
|
}
|
|
3778
|
-
}),
|
|
3799
|
+
}), ut = ["id"], dt = { class: "sv-action__content" }, mt = /* @__PURE__ */ h({
|
|
3779
3800
|
__name: "Action",
|
|
3780
3801
|
props: {
|
|
3781
3802
|
item: {}
|
|
@@ -3790,17 +3811,17 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
3790
3811
|
class: l(e.item.getActionRootCss()),
|
|
3791
3812
|
id: e.item.id
|
|
3792
3813
|
}, [
|
|
3793
|
-
c("div",
|
|
3794
|
-
e.item.needSeparator ? (i(),
|
|
3795
|
-
(i(),
|
|
3814
|
+
c("div", dt, [
|
|
3815
|
+
e.item.needSeparator ? (i(), g(t, { key: 0 })) : d("", !0),
|
|
3816
|
+
(i(), g(R(o.value), { item: e.item }, null, 8, ["item"]))
|
|
3796
3817
|
])
|
|
3797
|
-
], 10,
|
|
3818
|
+
], 10, ut);
|
|
3798
3819
|
};
|
|
3799
3820
|
}
|
|
3800
|
-
}),
|
|
3821
|
+
}), ct = ["disabled", "title", "aria-checked", "aria-expanded", "role"], pt = {
|
|
3801
3822
|
inheritAttrs: !1
|
|
3802
|
-
},
|
|
3803
|
-
...
|
|
3823
|
+
}, vt = /* @__PURE__ */ h({
|
|
3824
|
+
...pt,
|
|
3804
3825
|
__name: "ActionBarItem",
|
|
3805
3826
|
props: {
|
|
3806
3827
|
item: {}
|
|
@@ -3824,7 +3845,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
3824
3845
|
"aria-expanded": o.item.ariaExpanded,
|
|
3825
3846
|
role: o.item.ariaRole
|
|
3826
3847
|
}, [
|
|
3827
|
-
o.item.iconName ? (i(),
|
|
3848
|
+
o.item.iconName ? (i(), g(n, {
|
|
3828
3849
|
key: 0,
|
|
3829
3850
|
class: l(o.item.cssClasses.itemIcon),
|
|
3830
3851
|
iconName: o.item.iconName,
|
|
@@ -3834,16 +3855,16 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
3834
3855
|
o.item.hasTitle ? (i(), u("span", {
|
|
3835
3856
|
key: 1,
|
|
3836
3857
|
class: l(o.item.getActionBarItemTitleCss())
|
|
3837
|
-
},
|
|
3838
|
-
], 42,
|
|
3858
|
+
}, T(o.item.title), 3)) : d("", !0)
|
|
3859
|
+
], 42, ct)), [
|
|
3839
3860
|
[t, { processEsc: !1, disableTabStop: o.item.disableTabStop }]
|
|
3840
3861
|
]);
|
|
3841
3862
|
};
|
|
3842
3863
|
}
|
|
3843
|
-
}),
|
|
3864
|
+
}), yt = ["disabled", "title", "role"], qt = {
|
|
3844
3865
|
inheritAttrs: !1
|
|
3845
|
-
},
|
|
3846
|
-
...
|
|
3866
|
+
}, gt = /* @__PURE__ */ h({
|
|
3867
|
+
...qt,
|
|
3847
3868
|
__name: "ActionBarItemDropdown",
|
|
3848
3869
|
props: {
|
|
3849
3870
|
item: {}
|
|
@@ -3865,17 +3886,17 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
3865
3886
|
P((i(), u("button", {
|
|
3866
3887
|
type: "button",
|
|
3867
3888
|
class: l(n.item.getActionBarItemCss()),
|
|
3868
|
-
onClick: t[0] || (t[0] = (
|
|
3869
|
-
n.item.action(n.item, !!
|
|
3889
|
+
onClick: t[0] || (t[0] = (q) => {
|
|
3890
|
+
n.item.action(n.item, !!q.pointerType);
|
|
3870
3891
|
}),
|
|
3871
|
-
onKeyup: t[1] || (t[1] = (
|
|
3872
|
-
|
|
3892
|
+
onKeyup: t[1] || (t[1] = (q) => {
|
|
3893
|
+
q.stopPropagation();
|
|
3873
3894
|
}),
|
|
3874
3895
|
disabled: n.item.disabled,
|
|
3875
3896
|
title: n.item.tooltip || n.item.title,
|
|
3876
3897
|
role: n.item.ariaRole
|
|
3877
3898
|
}, [
|
|
3878
|
-
n.item.iconName ? (i(),
|
|
3899
|
+
n.item.iconName ? (i(), g(a, {
|
|
3879
3900
|
key: 0,
|
|
3880
3901
|
class: l(n.item.cssClasses.itemIcon),
|
|
3881
3902
|
iconName: n.item.iconName,
|
|
@@ -3885,8 +3906,8 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
3885
3906
|
n.item.hasTitle ? (i(), u("span", {
|
|
3886
3907
|
key: 1,
|
|
3887
3908
|
class: l(n.item.getActionBarItemTitleCss())
|
|
3888
|
-
},
|
|
3889
|
-
], 42,
|
|
3909
|
+
}, T(n.item.title), 3)) : d("", !0)
|
|
3910
|
+
], 42, yt)), [
|
|
3890
3911
|
[m, { processEsc: !1, disableTabStop: n.item.disableTabStop }]
|
|
3891
3912
|
]),
|
|
3892
3913
|
C(y, {
|
|
@@ -3896,7 +3917,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
3896
3917
|
], 64);
|
|
3897
3918
|
};
|
|
3898
3919
|
}
|
|
3899
|
-
}),
|
|
3920
|
+
}), ht = /* @__PURE__ */ h({
|
|
3900
3921
|
__name: "ActionBarSeparator",
|
|
3901
3922
|
props: {
|
|
3902
3923
|
item: {}
|
|
@@ -3907,7 +3928,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
3907
3928
|
class: l(["sv-action-bar-separator", o.value])
|
|
3908
3929
|
}, null, 2));
|
|
3909
3930
|
}
|
|
3910
|
-
}),
|
|
3931
|
+
}), Ct = ["aria-label", "placeholder", "value"], bt = ["aria-label"], kt = ["id"], ft = /* @__PURE__ */ h({
|
|
3911
3932
|
__name: "List",
|
|
3912
3933
|
props: {
|
|
3913
3934
|
model: {}
|
|
@@ -3925,7 +3946,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
3925
3946
|
return L(() => s.model), H(() => {
|
|
3926
3947
|
s.model.initListContainerHtmlElement(o.value);
|
|
3927
3948
|
}), (a, y) => {
|
|
3928
|
-
const m = p("sv-svg-icon"),
|
|
3949
|
+
const m = p("sv-svg-icon"), q = p("sv-list-item");
|
|
3929
3950
|
return i(), u("div", {
|
|
3930
3951
|
class: l(a.model.cssClasses.root),
|
|
3931
3952
|
ref_key: "listContainerElement",
|
|
@@ -3951,11 +3972,11 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
3951
3972
|
value: a.model.filterString,
|
|
3952
3973
|
onChange: e,
|
|
3953
3974
|
onKeyup: n
|
|
3954
|
-
}, null, 42,
|
|
3975
|
+
}, null, 42, Ct),
|
|
3955
3976
|
a.model.showSearchClearButton && !!a.model.filterString ? (i(), u("button", {
|
|
3956
3977
|
key: 0,
|
|
3957
|
-
onClick: y[0] || (y[0] = (
|
|
3958
|
-
a.model.onClickSearchClearButton(
|
|
3978
|
+
onClick: y[0] || (y[0] = (v) => {
|
|
3979
|
+
a.model.onClickSearchClearButton(v);
|
|
3959
3980
|
}),
|
|
3960
3981
|
class: l(a.model.cssClasses.searchClearButtonIcon)
|
|
3961
3982
|
}, [
|
|
@@ -3971,7 +3992,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
3971
3992
|
c("div", {
|
|
3972
3993
|
class: l(a.model.cssClasses.emptyText),
|
|
3973
3994
|
"aria-label": a.model.emptyMessage
|
|
3974
|
-
},
|
|
3995
|
+
}, T(a.model.emptyMessage), 11, bt)
|
|
3975
3996
|
], 2), [
|
|
3976
3997
|
[M, a.model.isEmpty]
|
|
3977
3998
|
]),
|
|
@@ -3980,26 +4001,26 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
3980
4001
|
class: l(a.model.getListClass()),
|
|
3981
4002
|
role: "listbox",
|
|
3982
4003
|
id: a.model.elementId,
|
|
3983
|
-
onMousedown: y[1] || (y[1] = (
|
|
3984
|
-
|
|
4004
|
+
onMousedown: y[1] || (y[1] = (v) => {
|
|
4005
|
+
v.preventDefault();
|
|
3985
4006
|
}),
|
|
3986
4007
|
onMousemove: t,
|
|
3987
|
-
onKeydown: y[2] || (y[2] = (
|
|
3988
|
-
a.model.onKeyDown(
|
|
4008
|
+
onKeydown: y[2] || (y[2] = (v) => {
|
|
4009
|
+
a.model.onKeyDown(v);
|
|
3989
4010
|
})
|
|
3990
4011
|
}, [
|
|
3991
|
-
(i(!0), u($, null, B(a.model.renderedActions, (
|
|
3992
|
-
item:
|
|
4012
|
+
(i(!0), u($, null, B(a.model.renderedActions, (v) => (i(), g(q, {
|
|
4013
|
+
item: v,
|
|
3993
4014
|
model: a.model,
|
|
3994
|
-
key:
|
|
4015
|
+
key: v.id
|
|
3995
4016
|
}, null, 8, ["item", "model"]))), 128))
|
|
3996
|
-
], 42,
|
|
4017
|
+
], 42, kt)), [
|
|
3997
4018
|
[M, !a.model.isEmpty]
|
|
3998
4019
|
]) : d("", !0)
|
|
3999
4020
|
], 2);
|
|
4000
4021
|
};
|
|
4001
4022
|
}
|
|
4002
|
-
}),
|
|
4023
|
+
}), It = ["aria-selected", "id"], wt = ["title"], St = /* @__PURE__ */ h({
|
|
4003
4024
|
__name: "ListItem",
|
|
4004
4025
|
props: {
|
|
4005
4026
|
model: {},
|
|
@@ -4021,7 +4042,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4021
4042
|
"aria-selected": n.model.isItemSelected(n.item),
|
|
4022
4043
|
key: n.item.id,
|
|
4023
4044
|
id: o.value,
|
|
4024
|
-
onPointerdown: t[0] || (t[0] = (
|
|
4045
|
+
onPointerdown: t[0] || (t[0] = (q) => n.model.onPointerDown(q, n.item)),
|
|
4025
4046
|
class: l(n.model.getItemClass(n.item)),
|
|
4026
4047
|
onClick: e
|
|
4027
4048
|
}, [
|
|
@@ -4034,28 +4055,28 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4034
4055
|
class: l(n.model.cssClasses.itemBody),
|
|
4035
4056
|
title: n.item.locTitle.calculatedText
|
|
4036
4057
|
}, [
|
|
4037
|
-
n.item.iconName && !n.item.component ? (i(),
|
|
4058
|
+
n.item.iconName && !n.item.component ? (i(), g(a, {
|
|
4038
4059
|
key: 0,
|
|
4039
4060
|
class: l(n.model.cssClasses.itemIcon),
|
|
4040
4061
|
iconName: n.item.iconName,
|
|
4041
4062
|
size: n.item.iconSize
|
|
4042
4063
|
}, null, 8, ["class", "iconName", "size"])) : d("", !0),
|
|
4043
|
-
n.item.component ? d("", !0) : (i(),
|
|
4064
|
+
n.item.component ? d("", !0) : (i(), g(y, {
|
|
4044
4065
|
key: 1,
|
|
4045
4066
|
locString: n.item.locTitle
|
|
4046
4067
|
}, null, 8, ["locString"])),
|
|
4047
|
-
n.item.component ? (i(),
|
|
4068
|
+
n.item.component ? (i(), g(R(n.item.component), {
|
|
4048
4069
|
key: 2,
|
|
4049
4070
|
item: n.item
|
|
4050
4071
|
}, null, 8, ["item"])) : d("", !0)
|
|
4051
|
-
], 14,
|
|
4052
|
-
], 42,
|
|
4072
|
+
], 14, wt)
|
|
4073
|
+
], 42, It)), [
|
|
4053
4074
|
[M, n.model.isItemVisible(n.item)],
|
|
4054
4075
|
[m]
|
|
4055
4076
|
]);
|
|
4056
4077
|
};
|
|
4057
4078
|
}
|
|
4058
|
-
}),
|
|
4079
|
+
}), Rt = /* @__PURE__ */ h({
|
|
4059
4080
|
__name: "Popup",
|
|
4060
4081
|
props: {
|
|
4061
4082
|
getTarget: { type: Function },
|
|
@@ -4089,13 +4110,13 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4089
4110
|
], 512);
|
|
4090
4111
|
};
|
|
4091
4112
|
}
|
|
4092
|
-
}),
|
|
4113
|
+
}), Tt = { class: "sv-popup__shadow" }, $t = { class: "sv-popup__body-content" }, _t = {
|
|
4093
4114
|
key: 0,
|
|
4094
4115
|
class: "sv-popup__body-header"
|
|
4095
|
-
},
|
|
4116
|
+
}, Dt = { class: "sv-popup__scrolling-content" }, Bt = { class: "sv-popup__content" }, Lt = {
|
|
4096
4117
|
key: 1,
|
|
4097
4118
|
class: "sv-popup__body-footer"
|
|
4098
|
-
},
|
|
4119
|
+
}, Nt = /* @__PURE__ */ h({
|
|
4099
4120
|
__name: "PopupContainer",
|
|
4100
4121
|
props: {
|
|
4101
4122
|
model: {}
|
|
@@ -4106,7 +4127,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4106
4127
|
const e = (n) => {
|
|
4107
4128
|
n.stopPropagation();
|
|
4108
4129
|
};
|
|
4109
|
-
return L(() => s.model),
|
|
4130
|
+
return L(() => s.model), te(() => {
|
|
4110
4131
|
const n = s.model;
|
|
4111
4132
|
!o && n.isVisible && s.model.updateOnShowing(), o = n.isVisible;
|
|
4112
4133
|
}), H(() => {
|
|
@@ -4134,19 +4155,19 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4134
4155
|
}),
|
|
4135
4156
|
onClick: e
|
|
4136
4157
|
}, [
|
|
4137
|
-
c("div",
|
|
4138
|
-
n.model.showHeader ? (i(),
|
|
4158
|
+
c("div", Tt, [
|
|
4159
|
+
n.model.showHeader ? (i(), g(R(n.model.popupHeaderTemplate), {
|
|
4139
4160
|
key: 0,
|
|
4140
4161
|
model: n.model
|
|
4141
4162
|
}, null, 8, ["model"])) : d("", !0),
|
|
4142
|
-
c("div",
|
|
4143
|
-
n.model.title ? (i(), u("div",
|
|
4144
|
-
c("div",
|
|
4145
|
-
c("div",
|
|
4146
|
-
(i(),
|
|
4163
|
+
c("div", $t, [
|
|
4164
|
+
n.model.title ? (i(), u("div", _t, T(n.model.title), 1)) : d("", !0),
|
|
4165
|
+
c("div", Dt, [
|
|
4166
|
+
c("div", Bt, [
|
|
4167
|
+
(i(), g(R(n.model.contentComponentName), O(ne(n.model.contentComponentData)), null, 16))
|
|
4147
4168
|
])
|
|
4148
4169
|
]),
|
|
4149
|
-
n.model.showFooter ? (i(), u("div",
|
|
4170
|
+
n.model.showFooter ? (i(), u("div", Lt, [
|
|
4150
4171
|
C(a, {
|
|
4151
4172
|
model: n.model.footerToolbar
|
|
4152
4173
|
}, null, 8, ["model"])
|
|
@@ -4159,7 +4180,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4159
4180
|
]);
|
|
4160
4181
|
};
|
|
4161
4182
|
}
|
|
4162
|
-
}),
|
|
4183
|
+
}), Pt = /* @__PURE__ */ h({
|
|
4163
4184
|
__name: "PopupPointer",
|
|
4164
4185
|
props: {
|
|
4165
4186
|
model: {}
|
|
@@ -4173,10 +4194,10 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4173
4194
|
})
|
|
4174
4195
|
}, null, 4));
|
|
4175
4196
|
}
|
|
4176
|
-
}),
|
|
4197
|
+
}), At = {
|
|
4177
4198
|
key: 0,
|
|
4178
4199
|
class: "sv-components-column"
|
|
4179
|
-
},
|
|
4200
|
+
}, Mt = /* @__PURE__ */ h({
|
|
4180
4201
|
__name: "Container",
|
|
4181
4202
|
props: {
|
|
4182
4203
|
survey: {},
|
|
@@ -4188,13 +4209,13 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4188
4209
|
() => s.survey.getContainerContent(s.container)
|
|
4189
4210
|
);
|
|
4190
4211
|
return (e, n) => o.value.length > 0 ? (i(), u($, { key: 0 }, [
|
|
4191
|
-
e.needRenderWrapper ? (i(), u("div",
|
|
4192
|
-
(i(!0), u($, null, B(o.value, (t, a) => (i(),
|
|
4212
|
+
e.needRenderWrapper ? (i(), u("div", At, [
|
|
4213
|
+
(i(!0), u($, null, B(o.value, (t, a) => (i(), g(R(t.component), {
|
|
4193
4214
|
survey: e.survey,
|
|
4194
4215
|
container: e.container,
|
|
4195
4216
|
model: t.data
|
|
4196
4217
|
}, null, 8, ["survey", "container", "model"]))), 256))
|
|
4197
|
-
])) : (i(!0), u($, { key: 1 }, B(o.value, (t, a) => (i(),
|
|
4218
|
+
])) : (i(!0), u($, { key: 1 }, B(o.value, (t, a) => (i(), g(R(t.component), {
|
|
4198
4219
|
survey: e.survey,
|
|
4199
4220
|
model: t.data
|
|
4200
4221
|
}, null, 8, ["survey", "model"]))), 256))
|
|
@@ -4222,14 +4243,14 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4222
4243
|
}, [
|
|
4223
4244
|
c("span", {
|
|
4224
4245
|
class: l(e(t.survey.css))
|
|
4225
|
-
},
|
|
4246
|
+
}, T(t.survey.progressText), 3)
|
|
4226
4247
|
], 6),
|
|
4227
4248
|
c("span", {
|
|
4228
4249
|
class: l(n(t.survey.css))
|
|
4229
|
-
},
|
|
4250
|
+
}, T(t.survey.progressText), 3)
|
|
4230
4251
|
], 2));
|
|
4231
4252
|
}
|
|
4232
|
-
}),
|
|
4253
|
+
}), Ht = ["onClick"], Wt = ["title"], Et = ["title"], Vt = /* @__PURE__ */ h({
|
|
4233
4254
|
__name: "ProgressButtons",
|
|
4234
4255
|
props: {
|
|
4235
4256
|
survey: {}
|
|
@@ -4237,9 +4258,9 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4237
4258
|
setup(r) {
|
|
4238
4259
|
const s = r, o = new He(s.survey), e = _(!1), n = _(), t = w(() => s.survey.css);
|
|
4239
4260
|
let a;
|
|
4240
|
-
const y = (b) => o.isListElementClickable(b), m = (b) => o.getListElementCss(b),
|
|
4261
|
+
const y = (b) => o.isListElementClickable(b), m = (b) => o.getListElementCss(b), q = (b) => {
|
|
4241
4262
|
o.clickListElement(b);
|
|
4242
|
-
},
|
|
4263
|
+
}, v = (b, N) => o.getScrollButtonCss(b, N), I = (b) => {
|
|
4243
4264
|
let N = n.value;
|
|
4244
4265
|
N.scrollLeft += (b ? -1 : 1) * 70;
|
|
4245
4266
|
};
|
|
@@ -4257,7 +4278,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4257
4278
|
class: l(t.value.progressButtonsContainer)
|
|
4258
4279
|
}, [
|
|
4259
4280
|
c("div", {
|
|
4260
|
-
class: l(
|
|
4281
|
+
class: l(v(e.value, !0)),
|
|
4261
4282
|
onClick: N[0] || (N[0] = (k) => I(!0)),
|
|
4262
4283
|
role: "button"
|
|
4263
4284
|
}, null, 2),
|
|
@@ -4272,21 +4293,21 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4272
4293
|
(i(!0), u($, null, B(b.survey.visiblePages, (k, D) => (i(), u("li", {
|
|
4273
4294
|
key: "listelement" + D,
|
|
4274
4295
|
class: l(m(D)),
|
|
4275
|
-
onClick: (E) => y(D) ?
|
|
4296
|
+
onClick: (E) => y(D) ? q(D) : null
|
|
4276
4297
|
}, [
|
|
4277
4298
|
c("div", {
|
|
4278
4299
|
class: l(t.value.progressButtonsPageTitle),
|
|
4279
4300
|
title: k.renderedNavigationTitle
|
|
4280
|
-
},
|
|
4301
|
+
}, T(k.renderedNavigationTitle), 11, Wt),
|
|
4281
4302
|
c("div", {
|
|
4282
4303
|
class: l(t.value.progressButtonsPageDescription),
|
|
4283
4304
|
title: k.locNavigationDescription.renderedHtml
|
|
4284
|
-
},
|
|
4285
|
-
], 10,
|
|
4305
|
+
}, T(k.locNavigationDescription.renderedHtml), 11, Et)
|
|
4306
|
+
], 10, Ht))), 128))
|
|
4286
4307
|
], 2)
|
|
4287
4308
|
], 2),
|
|
4288
4309
|
c("div", {
|
|
4289
|
-
class: l(
|
|
4310
|
+
class: l(v(e.value, !1)),
|
|
4290
4311
|
onClick: N[1] || (N[1] = (k) => I(!1)),
|
|
4291
4312
|
role: "button"
|
|
4292
4313
|
}, null, 2)
|
|
@@ -4296,39 +4317,39 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4296
4317
|
}), Ft = /* @__PURE__ */ h({
|
|
4297
4318
|
__name: "ProgressToc",
|
|
4298
4319
|
props: {
|
|
4299
|
-
survey: {}
|
|
4320
|
+
survey: {},
|
|
4321
|
+
model: {}
|
|
4300
4322
|
},
|
|
4301
4323
|
setup(r) {
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
const t = p("sv-svg-icon"), a = p("sv-popup"), y = p("sv-list"), m = X("key2click");
|
|
4324
|
+
return (s, o) => {
|
|
4325
|
+
const e = p("sv-svg-icon"), n = p("sv-popup"), t = p("sv-list"), a = X("key2click");
|
|
4305
4326
|
return i(), u("div", {
|
|
4306
|
-
class: l(
|
|
4327
|
+
class: l(s.model.containerCss)
|
|
4307
4328
|
}, [
|
|
4308
|
-
|
|
4329
|
+
s.model.isMobile ? P((i(), u("div", {
|
|
4309
4330
|
key: 0,
|
|
4310
|
-
onClick:
|
|
4331
|
+
onClick: o[0] || (o[0] = (...y) => s.model.togglePopup && s.model.togglePopup(...y))
|
|
4311
4332
|
}, [
|
|
4312
|
-
C(
|
|
4313
|
-
iconName:
|
|
4333
|
+
C(e, {
|
|
4334
|
+
iconName: s.model.icon,
|
|
4314
4335
|
size: 24
|
|
4315
4336
|
}, null, 8, ["iconName"]),
|
|
4316
|
-
C(
|
|
4317
|
-
model:
|
|
4337
|
+
C(n, {
|
|
4338
|
+
model: s.model.popupModel
|
|
4318
4339
|
}, null, 8, ["model"])
|
|
4319
4340
|
])), [
|
|
4320
|
-
[
|
|
4321
|
-
]) : (i(),
|
|
4341
|
+
[a]
|
|
4342
|
+
]) : (i(), g(t, {
|
|
4322
4343
|
key: 1,
|
|
4323
|
-
model:
|
|
4344
|
+
model: s.model.listModel
|
|
4324
4345
|
}, null, 8, ["model"]))
|
|
4325
4346
|
], 2);
|
|
4326
4347
|
};
|
|
4327
4348
|
}
|
|
4328
|
-
}),
|
|
4349
|
+
}), Ot = { onsubmit: "return false;" }, zt = {
|
|
4329
4350
|
key: 0,
|
|
4330
4351
|
class: "sv_custom_header"
|
|
4331
|
-
},
|
|
4352
|
+
}, Ut = { class: "sv-components-column sv-components-column--expandable" }, Kt = ["id"], jt = { key: 2 }, Qt = ["innerHTML"], Gt = ["innerHTML"], Jt = ["innerHTML"], ve = /* @__PURE__ */ h({
|
|
4332
4353
|
__name: "Survey",
|
|
4333
4354
|
props: {
|
|
4334
4355
|
model: {},
|
|
@@ -4343,7 +4364,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4343
4364
|
return !!t.value && b + n.value.toString();
|
|
4344
4365
|
}, m = w(
|
|
4345
4366
|
() => t.value.showCompletedPage && t.value.state === "completed"
|
|
4346
|
-
),
|
|
4367
|
+
), q = w(() => t.value.css), v = w(() => "page" + y()), I = () => m.value ? (e.value || (e.value = t.value.processedCompletedHtml), e.value) : "";
|
|
4347
4368
|
return L(() => t.value), H(() => {
|
|
4348
4369
|
if (!!t.value) {
|
|
4349
4370
|
var b = o.value;
|
|
@@ -4362,26 +4383,26 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4362
4383
|
ref_key: "root",
|
|
4363
4384
|
ref: o
|
|
4364
4385
|
}, [
|
|
4365
|
-
t.value.needRenderIcons ? (i(),
|
|
4386
|
+
t.value.needRenderIcons ? (i(), g(k, { key: 0 })) : d("", !0),
|
|
4366
4387
|
c("div", {
|
|
4367
4388
|
class: l(t.value.wrapperFormCss)
|
|
4368
4389
|
}, [
|
|
4369
4390
|
C(D),
|
|
4370
4391
|
t.value.renderBackgroundImage ? (i(), u("div", {
|
|
4371
4392
|
key: 0,
|
|
4372
|
-
class: l(
|
|
4393
|
+
class: l(q.value.rootBackgroundImage),
|
|
4373
4394
|
style: S(t.value.backgroundImageStyle)
|
|
4374
4395
|
}, null, 6)) : d("", !0),
|
|
4375
|
-
c("form",
|
|
4376
|
-
t.value.hasLogo ? d("", !0) : (i(), u("div",
|
|
4396
|
+
c("form", Ot, [
|
|
4397
|
+
t.value.hasLogo ? d("", !0) : (i(), u("div", zt)),
|
|
4377
4398
|
c("div", {
|
|
4378
|
-
class: l(
|
|
4399
|
+
class: l(q.value.container)
|
|
4379
4400
|
}, [
|
|
4380
|
-
t.value.headerView === "basic" ? (i(),
|
|
4401
|
+
t.value.headerView === "basic" ? (i(), g(E, {
|
|
4381
4402
|
key: 0,
|
|
4382
4403
|
survey: t.value
|
|
4383
4404
|
}, null, 8, ["survey"])) : d("", !0),
|
|
4384
|
-
(i(),
|
|
4405
|
+
(i(), g(R("sv-components-container"), {
|
|
4385
4406
|
survey: t.value,
|
|
4386
4407
|
container: "header",
|
|
4387
4408
|
needRenderWrapper: !1
|
|
@@ -4390,13 +4411,13 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4390
4411
|
key: 1,
|
|
4391
4412
|
class: l(t.value.bodyContainerCss)
|
|
4392
4413
|
}, [
|
|
4393
|
-
(i(),
|
|
4414
|
+
(i(), g(R("sv-components-container"), {
|
|
4394
4415
|
survey: t.value,
|
|
4395
4416
|
container: "left",
|
|
4396
4417
|
needRenderWrapper: !0
|
|
4397
4418
|
}, null, 8, ["survey"])),
|
|
4398
|
-
c("div",
|
|
4399
|
-
(i(),
|
|
4419
|
+
c("div", Ut, [
|
|
4420
|
+
(i(), g(R("sv-components-container"), {
|
|
4400
4421
|
survey: t.value,
|
|
4401
4422
|
container: "center",
|
|
4402
4423
|
needRenderWrapper: !0
|
|
@@ -4406,41 +4427,41 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4406
4427
|
style: S({ maxWidth: t.value.renderedWidth }),
|
|
4407
4428
|
id: a.value
|
|
4408
4429
|
}, [
|
|
4409
|
-
(i(),
|
|
4430
|
+
(i(), g(R("sv-components-container"), {
|
|
4410
4431
|
survey: t.value,
|
|
4411
4432
|
container: "contentTop",
|
|
4412
4433
|
needRenderWrapper: !0
|
|
4413
4434
|
}, null, 8, ["survey"])),
|
|
4414
|
-
(i(),
|
|
4415
|
-
key:
|
|
4435
|
+
(i(), g(V, {
|
|
4436
|
+
key: v.value,
|
|
4416
4437
|
survey: t.value,
|
|
4417
4438
|
page: t.value.activePage,
|
|
4418
|
-
css:
|
|
4439
|
+
css: q.value
|
|
4419
4440
|
}, null, 8, ["survey", "page", "css"])),
|
|
4420
|
-
(i(),
|
|
4441
|
+
(i(), g(R("sv-components-container"), {
|
|
4421
4442
|
survey: t.value,
|
|
4422
4443
|
container: "contentBottom",
|
|
4423
4444
|
needRenderWrapper: !0
|
|
4424
4445
|
}, null, 8, ["survey"]))
|
|
4425
|
-
], 14,
|
|
4446
|
+
], 14, Kt)
|
|
4426
4447
|
]),
|
|
4427
|
-
(i(),
|
|
4448
|
+
(i(), g(R("sv-components-container"), {
|
|
4428
4449
|
survey: t.value,
|
|
4429
4450
|
container: "right",
|
|
4430
4451
|
needRenderWrapper: !0
|
|
4431
4452
|
}, null, 8, ["survey"]))
|
|
4432
4453
|
], 2)) : d("", !0),
|
|
4433
|
-
(i(),
|
|
4454
|
+
(i(), g(R("sv-components-container"), {
|
|
4434
4455
|
survey: t.value,
|
|
4435
4456
|
container: "footer",
|
|
4436
4457
|
needRenderWrapper: !1
|
|
4437
4458
|
}, null, 8, ["survey"])),
|
|
4438
|
-
m.value ? (i(), u("div",
|
|
4459
|
+
m.value ? (i(), u("div", jt, [
|
|
4439
4460
|
c("div", {
|
|
4440
4461
|
innerHTML: I(),
|
|
4441
4462
|
class: l(t.value.completedCss)
|
|
4442
|
-
}, null, 10,
|
|
4443
|
-
(i(),
|
|
4463
|
+
}, null, 10, Qt),
|
|
4464
|
+
(i(), g(R("sv-components-container"), {
|
|
4444
4465
|
survey: t.value,
|
|
4445
4466
|
container: "completePage",
|
|
4446
4467
|
needRenderWrapper: !0
|
|
@@ -4450,19 +4471,19 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4450
4471
|
key: 3,
|
|
4451
4472
|
class: l(t.value.completedBeforeCss),
|
|
4452
4473
|
innerHTML: t.value.processedCompletedBeforeHtml
|
|
4453
|
-
}, null, 10,
|
|
4474
|
+
}, null, 10, Gt)) : d("", !0),
|
|
4454
4475
|
t.value.state === "loading" ? (i(), u("div", {
|
|
4455
4476
|
key: 4,
|
|
4456
4477
|
class: l(t.value.loadingBodyCss),
|
|
4457
4478
|
innerHTML: t.value.processedLoadingHtml
|
|
4458
|
-
}, null, 10,
|
|
4479
|
+
}, null, 10, Jt)) : d("", !0),
|
|
4459
4480
|
t.value.state === "empty" ? (i(), u("div", {
|
|
4460
4481
|
key: 5,
|
|
4461
|
-
class: l(
|
|
4462
|
-
},
|
|
4482
|
+
class: l(q.value.bodyEmpty)
|
|
4483
|
+
}, T(t.value.emptySurveyText), 3)) : d("", !0)
|
|
4463
4484
|
], 2)
|
|
4464
4485
|
]),
|
|
4465
|
-
t.value.showBrandInfo ? (i(),
|
|
4486
|
+
t.value.showBrandInfo ? (i(), g(K, { key: 1 })) : d("", !0),
|
|
4466
4487
|
C(ue, {
|
|
4467
4488
|
model: t.value.notifier
|
|
4468
4489
|
}, null, 8, ["model"])
|
|
@@ -4470,7 +4491,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4470
4491
|
], 6);
|
|
4471
4492
|
};
|
|
4472
4493
|
}
|
|
4473
|
-
}),
|
|
4494
|
+
}), Xt = /* @__PURE__ */ h({
|
|
4474
4495
|
__name: "Notifier",
|
|
4475
4496
|
props: {
|
|
4476
4497
|
model: {}
|
|
@@ -4485,7 +4506,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4485
4506
|
role: "alert",
|
|
4486
4507
|
"aria-live": "polite"
|
|
4487
4508
|
}, [
|
|
4488
|
-
c("span", null,
|
|
4509
|
+
c("span", null, T(o.model.message), 1),
|
|
4489
4510
|
C(n, {
|
|
4490
4511
|
model: o.model.actionBar
|
|
4491
4512
|
}, null, 8, ["model"])
|
|
@@ -4494,7 +4515,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4494
4515
|
]);
|
|
4495
4516
|
};
|
|
4496
4517
|
}
|
|
4497
|
-
}),
|
|
4518
|
+
}), Yt = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], Zt = { key: 1 }, xt = /* @__PURE__ */ h({
|
|
4498
4519
|
__name: "QuestionOther",
|
|
4499
4520
|
props: {
|
|
4500
4521
|
question: {},
|
|
@@ -4522,11 +4543,11 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4522
4543
|
onInput: o[1] || (o[1] = (e) => {
|
|
4523
4544
|
s.question.onOtherValueInput(e);
|
|
4524
4545
|
})
|
|
4525
|
-
}, null, 46,
|
|
4526
|
-
s.question.isReadOnlyRenderDiv() ? (i(), u("div",
|
|
4546
|
+
}, null, 46, Yt)),
|
|
4547
|
+
s.question.isReadOnlyRenderDiv() ? (i(), u("div", Zt, T(s.question.otherValue), 1)) : d("", !0)
|
|
4527
4548
|
], 2));
|
|
4528
4549
|
}
|
|
4529
|
-
}),
|
|
4550
|
+
}), ei = ["disabled", "value", "title"], si = /* @__PURE__ */ h({
|
|
4530
4551
|
__name: "SurveyNavigationButton",
|
|
4531
4552
|
props: {
|
|
4532
4553
|
item: {}
|
|
@@ -4542,106 +4563,106 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4542
4563
|
title: e.item.getTooltip(),
|
|
4543
4564
|
onMousedown: o,
|
|
4544
4565
|
onClick: n[0] || (n[0] = (...t) => e.item.action && e.item.action(...t))
|
|
4545
|
-
}, null, 42,
|
|
4566
|
+
}, null, 42, ei)) : d("", !0);
|
|
4546
4567
|
}
|
|
4547
4568
|
}), ye = /* @__PURE__ */ h({
|
|
4548
4569
|
__name: "PopupSurvey",
|
|
4549
4570
|
props: {
|
|
4550
4571
|
survey: {},
|
|
4551
4572
|
isExpanded: { type: Boolean },
|
|
4573
|
+
allowClose: { type: Boolean },
|
|
4552
4574
|
closeOnCompleteTimeout: {}
|
|
4553
4575
|
},
|
|
4554
4576
|
setup(r) {
|
|
4555
|
-
const s = r, o = z(), e = w(() => s.survey ? s.survey.getCss() : {})
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4577
|
+
const s = r, o = z(), e = w(() => s.survey ? s.survey.getCss() : {});
|
|
4578
|
+
w(() => {
|
|
4579
|
+
var v;
|
|
4580
|
+
return (v = o.value) != null && v.isExpanded ? e.value.window.header.buttonCollapsed : e.value.window.header.buttonExpanded;
|
|
4581
|
+
}), w(() => {
|
|
4582
|
+
var v;
|
|
4583
|
+
return (v = o.value) == null ? void 0 : v.isExpanded;
|
|
4584
|
+
});
|
|
4585
|
+
const n = () => {
|
|
4562
4586
|
o.value.changeExpandCollapse();
|
|
4563
|
-
},
|
|
4587
|
+
}, t = () => {
|
|
4564
4588
|
o.value.hide();
|
|
4565
|
-
},
|
|
4589
|
+
}, a = () => "SurveyComponent", y = () => {
|
|
4566
4590
|
o.value.onScroll();
|
|
4591
|
+
}, m = () => {
|
|
4592
|
+
let v = o.value.cssHeaderRoot;
|
|
4593
|
+
return o.value.isCollapsed && (v += " " + o.value.cssRootCollapsedMod), v;
|
|
4567
4594
|
};
|
|
4568
4595
|
L(() => o.value);
|
|
4569
|
-
const
|
|
4596
|
+
const q = J(
|
|
4570
4597
|
() => s.survey,
|
|
4571
|
-
(
|
|
4572
|
-
const
|
|
4573
|
-
s.isExpanded !== void 0 && (
|
|
4598
|
+
(v) => {
|
|
4599
|
+
const I = new We(null, v);
|
|
4600
|
+
s.isExpanded !== void 0 && (I.isExpanded = s.isExpanded), s.closeOnCompleteTimeout !== void 0 && (I.closeOnCompleteTimeout = s.closeOnCompleteTimeout), s.allowClose !== void 0 && (I.allowClose = s.allowClose), I.isShowing = !0, o.value = I;
|
|
4574
4601
|
},
|
|
4575
4602
|
{
|
|
4576
4603
|
immediate: !0
|
|
4577
4604
|
}
|
|
4578
4605
|
);
|
|
4579
4606
|
return U(() => {
|
|
4580
|
-
|
|
4581
|
-
}), (
|
|
4582
|
-
const
|
|
4607
|
+
q();
|
|
4608
|
+
}), (v, I) => {
|
|
4609
|
+
const b = p("sv-svg-icon");
|
|
4583
4610
|
return o.value.isShowing ? (i(), u("div", {
|
|
4584
4611
|
key: 0,
|
|
4585
|
-
style: S(
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
}]),
|
|
4589
|
-
class: l(o.value.cssRoot)
|
|
4612
|
+
style: S({ maxWidth: o.value.renderedWidth, width: o.value.renderedWidth }),
|
|
4613
|
+
class: l(o.value.cssRoot),
|
|
4614
|
+
onScroll: y
|
|
4590
4615
|
}, [
|
|
4591
4616
|
c("div", {
|
|
4592
|
-
class: l(o.value.
|
|
4617
|
+
class: l(o.value.cssRootContent)
|
|
4593
4618
|
}, [
|
|
4594
|
-
c("
|
|
4595
|
-
|
|
4596
|
-
style: { width: "100%", cursor: "pointer", "user-select": "none" }
|
|
4619
|
+
c("div", {
|
|
4620
|
+
class: l(m())
|
|
4597
4621
|
}, [
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
class: l(o.value.
|
|
4622
|
+
o.value.isCollapsed && !!o.value.locTitle ? (i(), u("div", {
|
|
4623
|
+
key: 0,
|
|
4624
|
+
class: l(o.value.cssHeaderTitleCollapsed)
|
|
4625
|
+
}, T(o.value.locTitle.renderedHtml), 3)) : d("", !0),
|
|
4626
|
+
c("div", {
|
|
4627
|
+
class: l(o.value.cssHeaderButtonsContainer)
|
|
4601
4628
|
}, [
|
|
4602
|
-
|
|
4603
|
-
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4629
|
+
c("div", {
|
|
4630
|
+
class: l(o.value.cssHeaderCollapseButton),
|
|
4631
|
+
onClick: n
|
|
4632
|
+
}, [
|
|
4633
|
+
o.value.isExpanded ? (i(), g(b, {
|
|
4634
|
+
key: 0,
|
|
4635
|
+
iconName: "icon-minimize_16x16",
|
|
4636
|
+
size: 16
|
|
4637
|
+
})) : d("", !0),
|
|
4638
|
+
o.value.isCollapsed ? (i(), g(b, {
|
|
4639
|
+
key: 1,
|
|
4640
|
+
iconName: "icon-restore_16x16",
|
|
4641
|
+
size: 16
|
|
4642
|
+
})) : d("", !0)
|
|
4643
|
+
], 2),
|
|
4644
|
+
o.value.allowClose ? (i(), u("div", {
|
|
4645
|
+
key: 0,
|
|
4646
|
+
class: l(o.value.cssHeaderCloseButton),
|
|
4647
|
+
onClick: t
|
|
4648
|
+
}, [
|
|
4649
|
+
C(b, {
|
|
4650
|
+
iconName: "icon-close_16x16",
|
|
4651
|
+
size: 16
|
|
4652
|
+
})
|
|
4653
|
+
], 2)) : d("", !0)
|
|
4654
|
+
], 2)
|
|
4655
|
+
], 2),
|
|
4656
|
+
c("div", {
|
|
4657
|
+
class: l(o.value.cssBody)
|
|
4627
4658
|
}, [
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
], 2)) : d("", !0)
|
|
4633
|
-
], 2),
|
|
4634
|
-
t.value ? (i(), u("div", {
|
|
4635
|
-
key: 0,
|
|
4636
|
-
class: l(o.value.cssBody),
|
|
4637
|
-
onScroll: v
|
|
4638
|
-
}, [
|
|
4639
|
-
(i(), q(T(m()), { survey: I.survey }, null, 8, ["survey"]))
|
|
4640
|
-
], 34)) : d("", !0)
|
|
4641
|
-
], 6)) : d("", !0);
|
|
4659
|
+
(i(), g(R(a()), { survey: v.survey }, null, 8, ["survey"]))
|
|
4660
|
+
], 2)
|
|
4661
|
+
], 2)
|
|
4662
|
+
], 38)) : d("", !0);
|
|
4642
4663
|
};
|
|
4643
4664
|
}
|
|
4644
|
-
}),
|
|
4665
|
+
}), ni = ["innerHTML"], oi = /* @__PURE__ */ h({
|
|
4645
4666
|
__name: "CustomWidget",
|
|
4646
4667
|
props: {
|
|
4647
4668
|
question: {},
|
|
@@ -4664,20 +4685,20 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4664
4685
|
n.value ? (i(), u("div", {
|
|
4665
4686
|
key: 0,
|
|
4666
4687
|
innerHTML: t.value
|
|
4667
|
-
}, null, 8,
|
|
4668
|
-
e.value ? (i(),
|
|
4688
|
+
}, null, 8, ni)) : d("", !0),
|
|
4689
|
+
e.value ? (i(), g(R(a.value), {
|
|
4669
4690
|
key: 1,
|
|
4670
4691
|
question: y.question,
|
|
4671
4692
|
css: y.css
|
|
4672
4693
|
}, null, 8, ["question", "css"])) : d("", !0)
|
|
4673
4694
|
], 512));
|
|
4674
4695
|
}
|
|
4675
|
-
}),
|
|
4696
|
+
}), ti = /* @__PURE__ */ h({
|
|
4676
4697
|
__name: "PopupModal",
|
|
4677
4698
|
setup(r) {
|
|
4678
4699
|
const s = z();
|
|
4679
|
-
function o(n, t, a, y, m,
|
|
4680
|
-
const I =
|
|
4700
|
+
function o(n, t, a, y, m, q, v = "popup") {
|
|
4701
|
+
const I = Ee(
|
|
4681
4702
|
n,
|
|
4682
4703
|
t,
|
|
4683
4704
|
a,
|
|
@@ -4685,8 +4706,8 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4685
4706
|
void 0,
|
|
4686
4707
|
void 0,
|
|
4687
4708
|
m,
|
|
4688
|
-
|
|
4689
|
-
|
|
4709
|
+
q,
|
|
4710
|
+
v
|
|
4690
4711
|
);
|
|
4691
4712
|
return e(I);
|
|
4692
4713
|
}
|
|
@@ -4694,7 +4715,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4694
4715
|
n.onHide = () => {
|
|
4695
4716
|
s.value = void 0, a.dispose();
|
|
4696
4717
|
};
|
|
4697
|
-
const a =
|
|
4718
|
+
const a = Ve(
|
|
4698
4719
|
n,
|
|
4699
4720
|
t
|
|
4700
4721
|
);
|
|
@@ -4706,7 +4727,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4706
4727
|
j.showDialog = void 0;
|
|
4707
4728
|
})), (n, t) => {
|
|
4708
4729
|
const a = p("sv-popup-container");
|
|
4709
|
-
return s.value ? (i(),
|
|
4730
|
+
return s.value ? (i(), g(Te, {
|
|
4710
4731
|
key: 0,
|
|
4711
4732
|
to: s.value.container
|
|
4712
4733
|
}, [
|
|
@@ -4714,7 +4735,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4714
4735
|
], 8, ["to"])) : d("", !0);
|
|
4715
4736
|
};
|
|
4716
4737
|
}
|
|
4717
|
-
}),
|
|
4738
|
+
}), ii = /* @__PURE__ */ h({
|
|
4718
4739
|
__name: "CharacterCounter",
|
|
4719
4740
|
props: {
|
|
4720
4741
|
counter: {},
|
|
@@ -4724,9 +4745,9 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4724
4745
|
const s = r;
|
|
4725
4746
|
return L(() => s.counter), (o, e) => (i(), u("div", {
|
|
4726
4747
|
class: l(o.remainingCharacterCounter)
|
|
4727
|
-
},
|
|
4748
|
+
}, T(o.counter.remainingCharacterCounter), 3));
|
|
4728
4749
|
}
|
|
4729
|
-
}),
|
|
4750
|
+
}), ri = /* @__PURE__ */ h({
|
|
4730
4751
|
inheritAttrs: !1,
|
|
4731
4752
|
__name: "Composite",
|
|
4732
4753
|
props: {
|
|
@@ -4739,7 +4760,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4739
4760
|
const e = w(() => s.question.contentPanel);
|
|
4740
4761
|
return (n, t) => {
|
|
4741
4762
|
const a = p("survey-panel");
|
|
4742
|
-
return i(),
|
|
4763
|
+
return i(), g(a, {
|
|
4743
4764
|
ref_key: "root",
|
|
4744
4765
|
ref: o,
|
|
4745
4766
|
element: e.value,
|
|
@@ -4747,7 +4768,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4747
4768
|
}, null, 8, ["element", "css"]);
|
|
4748
4769
|
};
|
|
4749
4770
|
}
|
|
4750
|
-
}),
|
|
4771
|
+
}), li = /* @__PURE__ */ h({
|
|
4751
4772
|
inheritAttrs: !1,
|
|
4752
4773
|
__name: "Custom",
|
|
4753
4774
|
props: {
|
|
@@ -4758,15 +4779,15 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4758
4779
|
const s = r, o = _(null);
|
|
4759
4780
|
A(s, o);
|
|
4760
4781
|
const e = w(() => s.question.contentQuestion), n = (t) => re(t);
|
|
4761
|
-
return (t, a) => (i(),
|
|
4782
|
+
return (t, a) => (i(), g(R(n(e.value)), {
|
|
4762
4783
|
ref: o.value,
|
|
4763
4784
|
question: e.value,
|
|
4764
4785
|
css: t.css
|
|
4765
4786
|
}, null, 8, ["question", "css"]));
|
|
4766
4787
|
}
|
|
4767
|
-
}),
|
|
4768
|
-
|
|
4769
|
-
], qe = 440,
|
|
4788
|
+
}), ai = /* @__PURE__ */ c("use", { "xlink:href": "#icon-timercircle" }, null, -1), ui = [
|
|
4789
|
+
ai
|
|
4790
|
+
], qe = 440, di = /* @__PURE__ */ h({
|
|
4770
4791
|
__name: "TimerPanel",
|
|
4771
4792
|
props: {
|
|
4772
4793
|
model: {},
|
|
@@ -4782,36 +4803,36 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4782
4803
|
key: 0,
|
|
4783
4804
|
class: l(n.model.getProgressCss()),
|
|
4784
4805
|
style: S({ strokeDasharray: qe, strokeDashoffset: o.value })
|
|
4785
|
-
},
|
|
4806
|
+
}, ui, 6)) : d("", !0),
|
|
4786
4807
|
c("div", {
|
|
4787
4808
|
class: l(n.model.textContainerCss)
|
|
4788
4809
|
}, [
|
|
4789
4810
|
c("span", {
|
|
4790
4811
|
class: l(n.model.majorTextCss)
|
|
4791
|
-
},
|
|
4812
|
+
}, T(n.model.clockMajorText), 3),
|
|
4792
4813
|
n.model.clockMinorText ? (i(), u("span", {
|
|
4793
4814
|
key: 0,
|
|
4794
4815
|
class: l(n.model.minorTextCss)
|
|
4795
|
-
},
|
|
4816
|
+
}, T(n.model.clockMinorText), 3)) : d("", !0)
|
|
4796
4817
|
], 2)
|
|
4797
4818
|
], 2)) : P((i(), u("div", {
|
|
4798
4819
|
key: 1,
|
|
4799
4820
|
class: l(n.model.survey.getCss().timerRoot)
|
|
4800
|
-
},
|
|
4821
|
+
}, T(e.value), 3)), [
|
|
4801
4822
|
[M, n.model.isRunning && !n.model.showTimerAsClock]
|
|
4802
4823
|
]);
|
|
4803
4824
|
}
|
|
4804
|
-
}),
|
|
4805
|
-
function
|
|
4825
|
+
}), mi = {}, ci = { class: "sd-loading-indicator" };
|
|
4826
|
+
function pi(r, s) {
|
|
4806
4827
|
const o = p("sv-svg-icon");
|
|
4807
|
-
return i(), u("div",
|
|
4828
|
+
return i(), u("div", ci, [
|
|
4808
4829
|
C(o, {
|
|
4809
4830
|
iconName: "icon-loading",
|
|
4810
4831
|
size: "'auto'"
|
|
4811
4832
|
})
|
|
4812
4833
|
]);
|
|
4813
4834
|
}
|
|
4814
|
-
const
|
|
4835
|
+
const vi = /* @__PURE__ */ Ce(mi, [["render", pi]]), yi = { key: 2 }, qi = /* @__PURE__ */ h({
|
|
4815
4836
|
__name: "Header",
|
|
4816
4837
|
props: {
|
|
4817
4838
|
model: {},
|
|
@@ -4838,21 +4859,21 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
4838
4859
|
class: l(o.model.contentClasses),
|
|
4839
4860
|
style: S({ maxWidth: o.model.maxWidth })
|
|
4840
4861
|
}, [
|
|
4841
|
-
(i(!0), u($, null, B(o.model.cells, (a, y) => (i(),
|
|
4862
|
+
(i(!0), u($, null, B(o.model.cells, (a, y) => (i(), g(n, {
|
|
4842
4863
|
model: a,
|
|
4843
4864
|
key: y
|
|
4844
4865
|
}, null, 8, ["model"]))), 128))
|
|
4845
4866
|
], 6)),
|
|
4846
|
-
o.survey.isMobile ? (i(), u("div",
|
|
4867
|
+
o.survey.isMobile ? (i(), u("div", yi, [
|
|
4847
4868
|
C(t, { model: o.model }, null, 8, ["model"])
|
|
4848
4869
|
])) : d("", !0)
|
|
4849
4870
|
], 6);
|
|
4850
4871
|
};
|
|
4851
4872
|
}
|
|
4852
|
-
}),
|
|
4873
|
+
}), gi = {
|
|
4853
4874
|
key: 0,
|
|
4854
4875
|
class: "sv-header__logo"
|
|
4855
|
-
},
|
|
4876
|
+
}, hi = ["src", "width", "height", "alt"], Ci = /* @__PURE__ */ h({
|
|
4856
4877
|
__name: "HeaderCell",
|
|
4857
4878
|
props: {
|
|
4858
4879
|
model: {}
|
|
@@ -4868,7 +4889,7 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
4868
4889
|
class: "sv-header__cell-content",
|
|
4869
4890
|
style: S(s.model.contentStyle)
|
|
4870
4891
|
}, [
|
|
4871
|
-
s.model.showLogo ? (i(), u("div",
|
|
4892
|
+
s.model.showLogo ? (i(), u("div", gi, [
|
|
4872
4893
|
c("div", {
|
|
4873
4894
|
class: l(s.model.survey.logoClassNames)
|
|
4874
4895
|
}, [
|
|
@@ -4879,7 +4900,7 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
4879
4900
|
height: s.model.survey.renderedLogoHeight,
|
|
4880
4901
|
alt: s.model.survey.locTitle.renderedHtml,
|
|
4881
4902
|
style: S({ objectFit: s.model.survey.logoFit, width: s.model.survey.renderedStyleLogoWidth, height: s.model.survey.renderedStyleLogoHeight })
|
|
4882
|
-
}, null, 14,
|
|
4903
|
+
}, null, 14, hi)
|
|
4883
4904
|
], 2)
|
|
4884
4905
|
])) : d("", !0),
|
|
4885
4906
|
s.model.showTitle ? (i(), u("div", {
|
|
@@ -4910,10 +4931,10 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
4910
4931
|
], 6);
|
|
4911
4932
|
};
|
|
4912
4933
|
}
|
|
4913
|
-
}),
|
|
4934
|
+
}), bi = { class: "sv-header--mobile" }, ki = {
|
|
4914
4935
|
key: 0,
|
|
4915
4936
|
class: "sv-header__logo"
|
|
4916
|
-
},
|
|
4937
|
+
}, fi = ["src", "width", "height", "alt"], Ii = /* @__PURE__ */ h({
|
|
4917
4938
|
__name: "HeaderMobile",
|
|
4918
4939
|
props: {
|
|
4919
4940
|
model: {}
|
|
@@ -4921,8 +4942,8 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
4921
4942
|
setup(r) {
|
|
4922
4943
|
return (s, o) => {
|
|
4923
4944
|
const e = p("survey-element-title"), n = p("survey-string");
|
|
4924
|
-
return i(), u("div",
|
|
4925
|
-
s.model.survey.hasLogo ? (i(), u("div",
|
|
4945
|
+
return i(), u("div", bi, [
|
|
4946
|
+
s.model.survey.hasLogo ? (i(), u("div", ki, [
|
|
4926
4947
|
c("div", {
|
|
4927
4948
|
class: l(s.model.survey.logoClassNames)
|
|
4928
4949
|
}, [
|
|
@@ -4933,7 +4954,7 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
4933
4954
|
height: s.model.survey.renderedLogoHeight,
|
|
4934
4955
|
alt: s.model.survey.locTitle.renderedHtml,
|
|
4935
4956
|
style: S({ objectFit: s.model.survey.logoFit, width: s.model.survey.renderedStyleLogoWidth, height: s.model.survey.renderedStyleLogoHeight })
|
|
4936
|
-
}, null, 14,
|
|
4957
|
+
}, null, 14, fi)
|
|
4937
4958
|
], 2)
|
|
4938
4959
|
])) : d("", !0),
|
|
4939
4960
|
s.model.survey.hasTitle ? (i(), u("div", {
|
|
@@ -4963,7 +4984,7 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
4963
4984
|
]);
|
|
4964
4985
|
};
|
|
4965
4986
|
}
|
|
4966
|
-
}),
|
|
4987
|
+
}), wi = /* @__PURE__ */ h({
|
|
4967
4988
|
__name: "Element",
|
|
4968
4989
|
props: {
|
|
4969
4990
|
element: {},
|
|
@@ -4997,14 +5018,14 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
4997
5018
|
style: S(n(a.element)),
|
|
4998
5019
|
class: l(a.element.cssClasses.questionWrapper)
|
|
4999
5020
|
}, [
|
|
5000
|
-
a.row.isNeedRender ? (i(),
|
|
5021
|
+
a.row.isNeedRender ? (i(), g(R(e.value), O(W({ key: 0 }, t.value)), null, 16)) : a.element.skeletonComponentName ? (i(), g(R(a.element.skeletonComponentName), {
|
|
5001
5022
|
key: 1,
|
|
5002
5023
|
element: a.element,
|
|
5003
5024
|
css: a.css
|
|
5004
5025
|
}, null, 8, ["element", "css"])) : d("", !0)
|
|
5005
5026
|
], 6));
|
|
5006
5027
|
}
|
|
5007
|
-
}),
|
|
5028
|
+
}), Si = /* @__PURE__ */ h({
|
|
5008
5029
|
__name: "TemplateRenderer",
|
|
5009
5030
|
props: {
|
|
5010
5031
|
componentName: {},
|
|
@@ -5012,9 +5033,9 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5012
5033
|
},
|
|
5013
5034
|
setup(r) {
|
|
5014
5035
|
const s = $e(), o = w(() => !!s.default);
|
|
5015
|
-
return (e, n) => o.value && !e.componentName ? _e(e.$slots, "default", { key: 0 }) : (i(),
|
|
5036
|
+
return (e, n) => o.value && !e.componentName ? _e(e.$slots, "default", { key: 0 }) : (i(), g(R(e.componentName), O(W({ key: 1 }, e.componentData)), null, 16));
|
|
5016
5037
|
}
|
|
5017
|
-
}),
|
|
5038
|
+
}), Ri = /* @__PURE__ */ h({
|
|
5018
5039
|
__name: "FileCleanButton",
|
|
5019
5040
|
props: {
|
|
5020
5041
|
question: {},
|
|
@@ -5028,8 +5049,8 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5028
5049
|
class: l(s.css),
|
|
5029
5050
|
onClick: o[0] || (o[0] = (...n) => s.question.doClean && s.question.doClean(...n))
|
|
5030
5051
|
}, [
|
|
5031
|
-
c("span", null,
|
|
5032
|
-
s.question.cssClasses.removeButtonIconId ? (i(),
|
|
5052
|
+
c("span", null, T(s.question.clearButtonCaption), 1),
|
|
5053
|
+
s.question.cssClasses.removeButtonIconId ? (i(), g(e, {
|
|
5033
5054
|
key: 0,
|
|
5034
5055
|
iconName: s.question.cssClasses.removeButtonIconId,
|
|
5035
5056
|
size: "auto",
|
|
@@ -5038,7 +5059,7 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5038
5059
|
], 2);
|
|
5039
5060
|
};
|
|
5040
5061
|
}
|
|
5041
|
-
}),
|
|
5062
|
+
}), Ti = ["id"], $i = /* @__PURE__ */ h({
|
|
5042
5063
|
__name: "FileVideo",
|
|
5043
5064
|
props: {
|
|
5044
5065
|
question: {}
|
|
@@ -5060,14 +5081,14 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5060
5081
|
playsinline: "",
|
|
5061
5082
|
id: s.question.videoId,
|
|
5062
5083
|
class: l(s.question.cssClasses.video)
|
|
5063
|
-
}, null, 10,
|
|
5084
|
+
}, null, 10, Ti),
|
|
5064
5085
|
C(e, {
|
|
5065
5086
|
item: s.question.takePictureAction
|
|
5066
5087
|
}, null, 8, ["item"])
|
|
5067
5088
|
], 2);
|
|
5068
5089
|
};
|
|
5069
5090
|
}
|
|
5070
|
-
}),
|
|
5091
|
+
}), _i = ["for", "aria-label"], Di = /* @__PURE__ */ h({
|
|
5071
5092
|
__name: "FileChooseButton",
|
|
5072
5093
|
props: {
|
|
5073
5094
|
data: {},
|
|
@@ -5088,19 +5109,19 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5088
5109
|
for: o.value.inputId,
|
|
5089
5110
|
"aria-label": o.value.chooseButtonText
|
|
5090
5111
|
}, [
|
|
5091
|
-
o.value.cssClasses.chooseFileIconId ? (i(),
|
|
5112
|
+
o.value.cssClasses.chooseFileIconId ? (i(), g(t, {
|
|
5092
5113
|
key: 0,
|
|
5093
5114
|
title: o.value.chooseButtonText,
|
|
5094
5115
|
iconName: o.value.cssClasses.chooseFileIconId,
|
|
5095
5116
|
size: "auto"
|
|
5096
5117
|
}, null, 8, ["title", "iconName"])) : d("", !0),
|
|
5097
|
-
c("span", null,
|
|
5098
|
-
], 10,
|
|
5118
|
+
c("span", null, T(o.value.chooseButtonText), 1)
|
|
5119
|
+
], 10, _i)), [
|
|
5099
5120
|
[a]
|
|
5100
5121
|
]);
|
|
5101
5122
|
};
|
|
5102
5123
|
}
|
|
5103
|
-
}),
|
|
5124
|
+
}), Bi = ["onClick", "href", "title", "download"], Li = ["src"], Ni = ["onClick"], Pi = ["onClick", "href", "title", "download"], Ai = /* @__PURE__ */ h({
|
|
5104
5125
|
__name: "FilePreview",
|
|
5105
5126
|
props: {
|
|
5106
5127
|
question: {}
|
|
@@ -5126,7 +5147,7 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5126
5147
|
title: n.name,
|
|
5127
5148
|
download: n.name,
|
|
5128
5149
|
style: S({ width: s.question.imageWidth })
|
|
5129
|
-
},
|
|
5150
|
+
}, T(n.name), 13, Bi)
|
|
5130
5151
|
], 2)) : d("", !0),
|
|
5131
5152
|
c("div", {
|
|
5132
5153
|
class: l(s.question.getImageWrapperCss(n))
|
|
@@ -5139,8 +5160,8 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5139
5160
|
width: s.question.imageWidth
|
|
5140
5161
|
}),
|
|
5141
5162
|
alt: "File preview"
|
|
5142
|
-
}, null, 12,
|
|
5143
|
-
s.question.defaultImage(n) ? (i(),
|
|
5163
|
+
}, null, 12, Li)) : d("", !0),
|
|
5164
|
+
s.question.defaultImage(n) ? (i(), g(e, {
|
|
5144
5165
|
key: 1,
|
|
5145
5166
|
iconName: s.question.cssClasses.defaultImageIconId,
|
|
5146
5167
|
class: l(s.question.cssClasses.defaultImage),
|
|
@@ -5153,15 +5174,15 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5153
5174
|
}, [
|
|
5154
5175
|
c("span", {
|
|
5155
5176
|
class: l(s.question.cssClasses.removeFile)
|
|
5156
|
-
},
|
|
5157
|
-
s.question.cssClasses.removeFileSvgIconId ? (i(),
|
|
5177
|
+
}, T(s.question.removeFileCaption), 3),
|
|
5178
|
+
s.question.cssClasses.removeFileSvgIconId ? (i(), g(e, {
|
|
5158
5179
|
key: 0,
|
|
5159
5180
|
title: s.question.removeFileCaption,
|
|
5160
5181
|
class: l(s.question.cssClasses.removeFileSvg),
|
|
5161
5182
|
iconName: s.question.cssClasses.removeFileSvgIconId,
|
|
5162
5183
|
size: "auto"
|
|
5163
5184
|
}, null, 8, ["title", "class", "iconName"])) : d("", !0)
|
|
5164
|
-
], 10,
|
|
5185
|
+
], 10, Ni)) : d("", !0)
|
|
5165
5186
|
], 2),
|
|
5166
5187
|
n.name && s.question.cssClasses.fileSignBottom ? (i(), u("div", {
|
|
5167
5188
|
key: 1,
|
|
@@ -5173,7 +5194,7 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5173
5194
|
title: n.name,
|
|
5174
5195
|
download: n.name,
|
|
5175
5196
|
style: S({ width: s.question.imageWidth })
|
|
5176
|
-
},
|
|
5197
|
+
}, T(n.name), 13, Pi)
|
|
5177
5198
|
], 2)) : d("", !0)
|
|
5178
5199
|
], 2)), [
|
|
5179
5200
|
[M, n && s.question.isPreviewVisible(t)]
|
|
@@ -5181,7 +5202,7 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5181
5202
|
], 2)) : d("", !0);
|
|
5182
5203
|
};
|
|
5183
5204
|
}
|
|
5184
|
-
}),
|
|
5205
|
+
}), Mi = /* @__PURE__ */ h({
|
|
5185
5206
|
__name: "ButtonGroup",
|
|
5186
5207
|
props: {
|
|
5187
5208
|
question: {}
|
|
@@ -5196,7 +5217,7 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5196
5217
|
ref_key: "root",
|
|
5197
5218
|
ref: o
|
|
5198
5219
|
}, [
|
|
5199
|
-
(i(!0), u($, null, B(e.question.visibleChoices, (a, y) => (i(),
|
|
5220
|
+
(i(!0), u($, null, B(e.question.visibleChoices, (a, y) => (i(), g(t, {
|
|
5200
5221
|
question: e.question,
|
|
5201
5222
|
key: y,
|
|
5202
5223
|
item: a,
|
|
@@ -5205,7 +5226,7 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5205
5226
|
], 2);
|
|
5206
5227
|
};
|
|
5207
5228
|
}
|
|
5208
|
-
}),
|
|
5229
|
+
}), Hi = ["title"], Wi = ["name", "id", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "disabled", "value"], Ei = ["title"], Vi = /* @__PURE__ */ h({
|
|
5209
5230
|
__name: "ButtonGroupItem",
|
|
5210
5231
|
props: {
|
|
5211
5232
|
item: {},
|
|
@@ -5242,13 +5263,13 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5242
5263
|
class: l(o.value.css.control),
|
|
5243
5264
|
"onUpdate:modelValue": t[0] || (t[0] = (m) => e.value = m),
|
|
5244
5265
|
value: o.value.value
|
|
5245
|
-
}, null, 10,
|
|
5246
|
-
[
|
|
5266
|
+
}, null, 10, Wi), [
|
|
5267
|
+
[x, e.value]
|
|
5247
5268
|
]),
|
|
5248
5269
|
c("div", {
|
|
5249
5270
|
class: l(o.value.css.decorator)
|
|
5250
5271
|
}, [
|
|
5251
|
-
o.value.iconName ? (i(),
|
|
5272
|
+
o.value.iconName ? (i(), g(a, {
|
|
5252
5273
|
key: 0,
|
|
5253
5274
|
iconName: o.value.iconName,
|
|
5254
5275
|
size: o.value.iconSize,
|
|
@@ -5262,12 +5283,12 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5262
5283
|
C(y, {
|
|
5263
5284
|
locString: o.value.caption
|
|
5264
5285
|
}, null, 8, ["locString"])
|
|
5265
|
-
], 10,
|
|
5286
|
+
], 10, Ei)) : d("", !0)
|
|
5266
5287
|
], 2)
|
|
5267
|
-
], 10,
|
|
5288
|
+
], 10, Hi);
|
|
5268
5289
|
};
|
|
5269
5290
|
}
|
|
5270
|
-
}), Fi = ["src", "width", "height", "alt"],
|
|
5291
|
+
}), Fi = ["src", "width", "height", "alt"], Oi = /* @__PURE__ */ h({
|
|
5271
5292
|
inheritAttrs: !1,
|
|
5272
5293
|
__name: "Logo",
|
|
5273
5294
|
props: {
|
|
@@ -5292,12 +5313,12 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5292
5313
|
}, null, 14, Fi)
|
|
5293
5314
|
], 2));
|
|
5294
5315
|
}
|
|
5295
|
-
}),
|
|
5316
|
+
}), zi = /* @__PURE__ */ h({
|
|
5296
5317
|
__name: "SvgBundle",
|
|
5297
5318
|
setup(r) {
|
|
5298
5319
|
const s = _();
|
|
5299
5320
|
return H(() => {
|
|
5300
|
-
s.value.innerHTML =
|
|
5321
|
+
s.value.innerHTML = Oe.iconsRenderedHtml();
|
|
5301
5322
|
}), (o, e) => P((i(), u("svg", {
|
|
5302
5323
|
id: "sv-icon-holder-global-container",
|
|
5303
5324
|
ref_key: "root",
|
|
@@ -5307,9 +5328,9 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5307
5328
|
]);
|
|
5308
5329
|
}
|
|
5309
5330
|
});
|
|
5310
|
-
|
|
5311
|
-
function
|
|
5312
|
-
r.component("SurveyComponent", ve), r.component("sv-svg-bundle",
|
|
5331
|
+
ze.platform = "vue3";
|
|
5332
|
+
function Ui(r) {
|
|
5333
|
+
r.component("SurveyComponent", ve), r.component("sv-svg-bundle", zi), r.component("PopupSurveyComponent", ye), r.component("survey", ve), r.component("popup-survey", ye), r.component("survey-header", Ge), r.component("sv-logo-image", Oi), r.component("survey-page", Qe), r.component("survey-row", Je), r.component("survey-question", Ze), r.component("survey-panel", ns), r.component("survey-element-header", os), r.component("survey-string", ts), r.component("sv-string-viewer", ls), r.component("sv-string-editor", us), r.component("sv-skeleton", ms), r.component("survey-text", vs), r.component("survey-text-input", hs), r.component("survey-checkbox", Is), r.component("survey-checkbox-item", Rs), r.component("survey-radiogroup", Ts), r.component("survey-radiogroup-item", Ds), r.component("survey-signaturepad", Ps), r.component("survey-html", Ms), r.component("survey-image", Vs), r.component("survey-expression", Fs), r.component("survey-file", Us), r.component("sv-file-choose-btn", Di), r.component("sv-file-clean-btn", Ri), r.component("sv-file-preview", Ai), r.component("sv-file-video", $i), r.component("survey-imagepicker", js), r.component("survey-imagepicker-item", Ys), r.component("survey-comment", en), r.component("survey-dropdown", sn), r.component("sv-dropdown-select", rn), r.component("sv-dropdown-option-item", an), r.component("sv-dropdown", pn), r.component("survey-tagbox", vn), r.component("sv-tagbox", gn), r.component("sv-tagbox-item", fn), r.component("sv-tagbox-filter", bn), r.component("survey-ranking", In), r.component("survey-ranking-item", _n), r.component("survey-rating", Ln), r.component("sv-rating-item", Pn), r.component("sv-rating-item-smiley", Mn), r.component("sv-rating-item-star", Wn), r.component("sv-rating-dropdown", zn), r.component("sv-rating-dropdown-item", On), r.component("survey-boolean", Kn), r.component("sv-boolean-radio", jn), r.component("sv-boolean-radio-item", Jn), r.component("sv-boolean-checkbox", eo), r.component("survey-multipletext", so), r.component("survey-multipletext-item", oo), r.component("survey-matrix", uo), r.component("survey-matrix-cell", po), r.component("survey-matrixdropdown", vo), r.component("survey-matrixtable", ho), r.component("survey-matrixheaderrequired", bo), r.component("survey-matrixdropdown-cell", fo), r.component("survey-matrixdynamic", Io), r.component("sv-matrix-remove-button", So), r.component("sv-matrix-drag-drop-icon", To), r.component("sv-matrix-detail-button", _o), r.component("survey-paneldynamic", Do), r.component("survey-paneldynamicprogress", Bo), r.component("survey-paneldynamicprogress-v2", Lo), r.component("sv-paneldynamic-add-btn", No), r.component("sv-paneldynamic-next-btn", Ao), r.component("sv-paneldynamic-prev-btn", Ho), r.component("sv-paneldynamic-remove-btn", Wo), r.component("sv-paneldynamic-progress-text", Eo), r.component("sv-components-container", Mt), r.component("sv-progress-buttons", Vt), r.component("sv-navigation-toc", Ft), 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", Fo), r.component("survey-question-comment", Uo), r.component("survey-element-title", Ko), r.component("survey-element-title-content", Jo), r.component("sv-title-actions", Zo), r.component("sv-brand-info", tt), r.component("sv-svg-icon", lt), r.component("sv-action-bar", at), r.component("sv-action", mt), r.component("sv-action-bar-item", vt), r.component("sv-action-bar-item-dropdown", gt), r.component("sv-action-bar-separator", ht), r.component("sv-list", ft), r.component("sv-list-item", St), r.component("sv-popup", Rt), r.component("sv-popup-container", Nt), r.component("popup-pointer", Pt), r.component("sv-notifier", Xt), r.component("survey-other-choice", xt), r.component("sv-nav-btn", si), r.component("survey-customwidget", oi), r.component("survey-popup-modal", ti), r.component("sv-character-counter", ii), r.component("survey-composite", ri), r.component("survey-custom", li), r.component("sv-timerpanel", di), r.component("sv-loading-indicator", vi), r.component("sv-header", qi), r.component("sv-header-cell", Ci), r.component("sv-header-mobile", Ii), r.component("sv-template-renderer", Si), r.component("survey-element", wi), r.component("survey-buttongroup", Mi), r.component("sv-button-group-item", Vi), r.directive("key2click", {
|
|
5313
5334
|
mounted: function(s, o) {
|
|
5314
5335
|
const e = { ...o.value };
|
|
5315
5336
|
if (e.disableTabStop) {
|
|
@@ -5317,20 +5338,20 @@ function Ki(r) {
|
|
|
5317
5338
|
return;
|
|
5318
5339
|
}
|
|
5319
5340
|
e.disableTabStop || (s.tabIndex = 0), s.addEventListener("keyup", (n) => (n.preventDefault(), n.stopPropagation(), ge(n, e), !1)), s.addEventListener("keydown", (n) => {
|
|
5320
|
-
|
|
5341
|
+
Ue(n, e);
|
|
5321
5342
|
}), s.addEventListener("blur", (n) => {
|
|
5322
|
-
|
|
5343
|
+
Ke(n);
|
|
5323
5344
|
});
|
|
5324
5345
|
}
|
|
5325
5346
|
});
|
|
5326
5347
|
}
|
|
5327
|
-
const
|
|
5348
|
+
const Qi = {
|
|
5328
5349
|
install(r) {
|
|
5329
|
-
|
|
5350
|
+
Ui(r);
|
|
5330
5351
|
}
|
|
5331
5352
|
};
|
|
5332
5353
|
export {
|
|
5333
|
-
|
|
5354
|
+
Qi as surveyPlugin,
|
|
5334
5355
|
L as useBase,
|
|
5335
5356
|
le as useComputedArray,
|
|
5336
5357
|
G as useLocString,
|