survey-vue3-ui 1.9.124 → 1.9.126
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,7 +873,7 @@ 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
878
|
tabindex: "0",
|
|
874
879
|
class: l(e.question.cssClasses.canvas),
|
|
@@ -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", "aria-required", "aria-label", "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,7 +2291,7 @@ 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,
|
|
@@ -2295,12 +2300,12 @@ const Un = /* @__PURE__ */ h({
|
|
|
2295
2300
|
"aria-label": t.question.ariaLabel,
|
|
2296
2301
|
"aria-invalid": t.question.ariaInvalid,
|
|
2297
2302
|
"aria-describedby": t.question.ariaDescribedBy
|
|
2298
|
-
}, null, 42,
|
|
2299
|
-
[
|
|
2303
|
+
}, null, 42, Un), [
|
|
2304
|
+
[oe, t.question.booleanValue]
|
|
2300
2305
|
]),
|
|
2301
2306
|
c("div", {
|
|
2302
2307
|
class: l(t.question.cssClasses.sliderGhost),
|
|
2303
|
-
onClick: a[1] || (a[1] = (
|
|
2308
|
+
onClick: a[1] || (a[1] = (q) => e(q, !1))
|
|
2304
2309
|
}, [
|
|
2305
2310
|
c("span", {
|
|
2306
2311
|
class: l(t.question.getLabelCss(!1))
|
|
@@ -2312,7 +2317,7 @@ const Un = /* @__PURE__ */ h({
|
|
|
2312
2317
|
], 2),
|
|
2313
2318
|
c("div", {
|
|
2314
2319
|
class: l(t.question.cssClasses.switch),
|
|
2315
|
-
onClick: a[2] || (a[2] = (
|
|
2320
|
+
onClick: a[2] || (a[2] = (q) => n(q))
|
|
2316
2321
|
}, [
|
|
2317
2322
|
c("span", {
|
|
2318
2323
|
class: l(t.question.cssClasses.slider)
|
|
@@ -2329,7 +2334,7 @@ const Un = /* @__PURE__ */ h({
|
|
|
2329
2334
|
], 2),
|
|
2330
2335
|
c("div", {
|
|
2331
2336
|
class: l(t.question.cssClasses.sliderGhost),
|
|
2332
|
-
onClick: a[3] || (a[3] = (
|
|
2337
|
+
onClick: a[3] || (a[3] = (q) => e(q, !0))
|
|
2333
2338
|
}, [
|
|
2334
2339
|
c("span", {
|
|
2335
2340
|
class: l(t.question.getLabelCss(!0))
|
|
@@ -2344,12 +2349,12 @@ const Un = /* @__PURE__ */ h({
|
|
|
2344
2349
|
};
|
|
2345
2350
|
}
|
|
2346
2351
|
});
|
|
2347
|
-
|
|
2352
|
+
ee.Instance.registerRenderer(
|
|
2348
2353
|
"boolean",
|
|
2349
2354
|
"radio",
|
|
2350
2355
|
"sv-boolean-radio"
|
|
2351
2356
|
);
|
|
2352
|
-
const
|
|
2357
|
+
const jn = /* @__PURE__ */ h({
|
|
2353
2358
|
inheritAttrs: !1,
|
|
2354
2359
|
__name: "BooleanRadio",
|
|
2355
2360
|
props: {
|
|
@@ -2368,13 +2373,13 @@ const Qn = /* @__PURE__ */ h({
|
|
|
2368
2373
|
role: "presentation",
|
|
2369
2374
|
class: l(e.question.cssClasses.radioFieldset)
|
|
2370
2375
|
}, [
|
|
2371
|
-
(i(),
|
|
2376
|
+
(i(), g(t, {
|
|
2372
2377
|
key: !1,
|
|
2373
2378
|
question: e.question,
|
|
2374
2379
|
locText: e.question.locLabelFalse,
|
|
2375
2380
|
value: !1
|
|
2376
2381
|
}, null, 8, ["question", "locText"])),
|
|
2377
|
-
(i(),
|
|
2382
|
+
(i(), g(t, {
|
|
2378
2383
|
key: !0,
|
|
2379
2384
|
question: e.question,
|
|
2380
2385
|
locText: e.question.locLabelTrue,
|
|
@@ -2384,7 +2389,7 @@ const Qn = /* @__PURE__ */ h({
|
|
|
2384
2389
|
], 2);
|
|
2385
2390
|
};
|
|
2386
2391
|
}
|
|
2387
|
-
}),
|
|
2392
|
+
}), Qn = ["name", "value", "checked", "aria-describedby", "disabled"], Gn = ["xlink:href"], Jn = /* @__PURE__ */ h({
|
|
2388
2393
|
__name: "BooleanRadioItem",
|
|
2389
2394
|
props: {
|
|
2390
2395
|
question: {},
|
|
@@ -2414,7 +2419,7 @@ const Qn = /* @__PURE__ */ h({
|
|
|
2414
2419
|
disabled: e.question.isInputReadOnly,
|
|
2415
2420
|
class: l(e.question.cssClasses.itemRadioControl),
|
|
2416
2421
|
onChange: o
|
|
2417
|
-
}, null, 42,
|
|
2422
|
+
}, null, 42, Qn),
|
|
2418
2423
|
e.question.cssClasses.materialRadioDecorator ? (i(), u("span", {
|
|
2419
2424
|
key: 0,
|
|
2420
2425
|
class: l(e.question.cssClasses.materialRadioDecorator)
|
|
@@ -2425,7 +2430,7 @@ const Qn = /* @__PURE__ */ h({
|
|
|
2425
2430
|
}, [
|
|
2426
2431
|
c("use", {
|
|
2427
2432
|
"xlink:href": e.question.itemSvgIcon
|
|
2428
|
-
}, null, 8,
|
|
2433
|
+
}, null, 8, Gn)
|
|
2429
2434
|
], 2)) : d("", !0)
|
|
2430
2435
|
], 2)) : d("", !0),
|
|
2431
2436
|
c("span", {
|
|
@@ -2437,13 +2442,13 @@ const Qn = /* @__PURE__ */ h({
|
|
|
2437
2442
|
], 2);
|
|
2438
2443
|
};
|
|
2439
2444
|
}
|
|
2440
|
-
}),
|
|
2441
|
-
|
|
2445
|
+
}), 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"];
|
|
2446
|
+
ee.Instance.registerRenderer(
|
|
2442
2447
|
"boolean",
|
|
2443
2448
|
"checkbox",
|
|
2444
2449
|
"sv-boolean-checkbox"
|
|
2445
2450
|
);
|
|
2446
|
-
const
|
|
2451
|
+
const eo = /* @__PURE__ */ h({
|
|
2447
2452
|
inheritAttrs: !1,
|
|
2448
2453
|
__name: "BooleanCheckbox",
|
|
2449
2454
|
props: {
|
|
@@ -2470,7 +2475,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2470
2475
|
type: "checkbox",
|
|
2471
2476
|
name: e.question.name,
|
|
2472
2477
|
value: (m = e.question.booleanValue) != null ? m : "",
|
|
2473
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
2478
|
+
"onUpdate:modelValue": n[0] || (n[0] = (q) => e.question.booleanValue = q),
|
|
2474
2479
|
class: l(e.question.cssClasses.controlCheckbox),
|
|
2475
2480
|
id: e.question.inputId,
|
|
2476
2481
|
".indeterminate": e.question.isIndeterminate,
|
|
@@ -2479,8 +2484,8 @@ const so = /* @__PURE__ */ h({
|
|
|
2479
2484
|
"aria-label": e.question.ariaLabel,
|
|
2480
2485
|
"aria-invalid": e.question.ariaInvalid,
|
|
2481
2486
|
"aria-describedby": e.question.ariaDescribedBy
|
|
2482
|
-
}, null, 42,
|
|
2483
|
-
[
|
|
2487
|
+
}, null, 42, Xn), [
|
|
2488
|
+
[oe, e.question.booleanValue]
|
|
2484
2489
|
]),
|
|
2485
2490
|
c("span", {
|
|
2486
2491
|
class: l(e.question.cssClasses.checkboxMaterialDecorator)
|
|
@@ -2491,26 +2496,26 @@ const so = /* @__PURE__ */ h({
|
|
|
2491
2496
|
}, [
|
|
2492
2497
|
c("use", {
|
|
2493
2498
|
"xlink:href": e.question.svgIcon
|
|
2494
|
-
}, null, 8,
|
|
2499
|
+
}, null, 8, Yn)
|
|
2495
2500
|
], 2)) : d("", !0),
|
|
2496
|
-
|
|
2501
|
+
Zn
|
|
2497
2502
|
], 2),
|
|
2498
2503
|
e.question.isLabelRendered ? (i(), u("span", {
|
|
2499
2504
|
key: 0,
|
|
2500
2505
|
id: e.question.labelRenderedAriaID,
|
|
2501
2506
|
class: l(e.question.cssClasses.checkboxControlLabel)
|
|
2502
2507
|
}, [
|
|
2503
|
-
e.question.hasTitleActions ? d("", !0) : (i(),
|
|
2508
|
+
e.question.hasTitleActions ? d("", !0) : (i(), g(t, {
|
|
2504
2509
|
key: 0,
|
|
2505
2510
|
element: e.question,
|
|
2506
2511
|
css: e.css
|
|
2507
2512
|
}, null, 8, ["element", "css"])),
|
|
2508
|
-
e.question.hasTitleActions ? (i(),
|
|
2513
|
+
e.question.hasTitleActions ? (i(), g(a, {
|
|
2509
2514
|
key: 1,
|
|
2510
2515
|
element: e.question,
|
|
2511
2516
|
css: e.css
|
|
2512
2517
|
}, null, 8, ["element", "css"])) : d("", !0)
|
|
2513
|
-
], 10,
|
|
2518
|
+
], 10, xn)) : d("", !0)
|
|
2514
2519
|
], 2),
|
|
2515
2520
|
e.question.canRenderLabelDescription ? (i(), u("div", {
|
|
2516
2521
|
key: 0,
|
|
@@ -2524,7 +2529,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2524
2529
|
], 2);
|
|
2525
2530
|
};
|
|
2526
2531
|
}
|
|
2527
|
-
}),
|
|
2532
|
+
}), so = /* @__PURE__ */ h({
|
|
2528
2533
|
inheritAttrs: !1,
|
|
2529
2534
|
__name: "Multipletext",
|
|
2530
2535
|
props: {
|
|
@@ -2547,13 +2552,13 @@ const so = /* @__PURE__ */ h({
|
|
|
2547
2552
|
key: 0,
|
|
2548
2553
|
class: l(n.question.cssClasses.row)
|
|
2549
2554
|
}, [
|
|
2550
|
-
(i(!0), u($, null, B(y.cells, (
|
|
2551
|
-
key: "item" +
|
|
2552
|
-
class: l(
|
|
2555
|
+
(i(!0), u($, null, B(y.cells, (q) => (i(), u("td", {
|
|
2556
|
+
key: "item" + q.item.editor.id,
|
|
2557
|
+
class: l(q.className)
|
|
2553
2558
|
}, [
|
|
2554
2559
|
C(a, {
|
|
2555
2560
|
question: n.question,
|
|
2556
|
-
cell:
|
|
2561
|
+
cell: q
|
|
2557
2562
|
}, null, 8, ["question", "cell"])
|
|
2558
2563
|
], 2))), 128))
|
|
2559
2564
|
], 2)) : d("", !0)
|
|
@@ -2562,7 +2567,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2562
2567
|
], 2);
|
|
2563
2568
|
};
|
|
2564
2569
|
}
|
|
2565
|
-
}),
|
|
2570
|
+
}), no = { key: 1 }, oo = /* @__PURE__ */ h({
|
|
2566
2571
|
__name: "MultipletextItem",
|
|
2567
2572
|
props: {
|
|
2568
2573
|
question: {},
|
|
@@ -2574,7 +2579,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2574
2579
|
const e = w(() => s.cell.item);
|
|
2575
2580
|
return (n, t) => {
|
|
2576
2581
|
const a = p("survey-string"), y = p("survey-errors");
|
|
2577
|
-
return n.cell.isErrorsCell ? (i(),
|
|
2582
|
+
return n.cell.isErrorsCell ? (i(), g(y, {
|
|
2578
2583
|
key: 1,
|
|
2579
2584
|
element: e.value.editor
|
|
2580
2585
|
}, null, 8, ["element"])) : (i(), u("label", {
|
|
@@ -2588,30 +2593,30 @@ const so = /* @__PURE__ */ h({
|
|
|
2588
2593
|
e.value.editor.isRequireTextBeforeTitle || e.value.editor.isRequireTextOnStart ? (i(), u("span", {
|
|
2589
2594
|
key: 0,
|
|
2590
2595
|
class: l(n.question.cssClasses.requiredText)
|
|
2591
|
-
},
|
|
2596
|
+
}, T(e.value.editor.requiredText), 3)) : d("", !0),
|
|
2592
2597
|
C(a, {
|
|
2593
2598
|
locString: e.value.locTitle
|
|
2594
2599
|
}, null, 8, ["locString"]),
|
|
2595
|
-
e.value.editor.isRequireTextAfterTitle ? (i(), u("span",
|
|
2600
|
+
e.value.editor.isRequireTextAfterTitle ? (i(), u("span", no, "\xA0")) : d("", !0),
|
|
2596
2601
|
e.value.editor.isRequireTextAfterTitle ? (i(), u("span", {
|
|
2597
2602
|
key: 2,
|
|
2598
2603
|
"aria-hidden": "true",
|
|
2599
2604
|
class: l(n.question.cssClasses.requiredText)
|
|
2600
|
-
},
|
|
2605
|
+
}, T(e.value.editor.requiredText), 3)) : d("", !0)
|
|
2601
2606
|
], 6),
|
|
2602
2607
|
(i(), u("div", {
|
|
2603
2608
|
key: e.value.editor.id,
|
|
2604
2609
|
class: l(n.question.getItemCss()),
|
|
2605
2610
|
onFocusin: t[0] || (t[0] = (m) => e.value.focusIn())
|
|
2606
2611
|
}, [
|
|
2607
|
-
(i(),
|
|
2612
|
+
(i(), g(R(o(e.value.editor)), {
|
|
2608
2613
|
question: e.value.editor
|
|
2609
2614
|
}, null, 8, ["question"]))
|
|
2610
2615
|
], 34))
|
|
2611
2616
|
], 2));
|
|
2612
2617
|
};
|
|
2613
2618
|
}
|
|
2614
|
-
}),
|
|
2619
|
+
}), to = { class: "sv-hidden" }, io = { key: 0 }, ro = { key: 0 }, lo = ["onClick"], ao = ["data-responsive-title", "onClick"], uo = /* @__PURE__ */ h({
|
|
2615
2620
|
inheritAttrs: !1,
|
|
2616
2621
|
__name: "Matrix",
|
|
2617
2622
|
props: {
|
|
@@ -2633,7 +2638,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2633
2638
|
}
|
|
2634
2639
|
);
|
|
2635
2640
|
const n = (t, a) => {
|
|
2636
|
-
|
|
2641
|
+
t.value = a.value;
|
|
2637
2642
|
};
|
|
2638
2643
|
return (t, a) => {
|
|
2639
2644
|
const y = p("survey-string");
|
|
@@ -2643,25 +2648,25 @@ const so = /* @__PURE__ */ h({
|
|
|
2643
2648
|
ref: o
|
|
2644
2649
|
}, [
|
|
2645
2650
|
c("fieldset", null, [
|
|
2646
|
-
c("legend",
|
|
2651
|
+
c("legend", to, T(t.question.locTitle.renderedHtml), 1),
|
|
2647
2652
|
c("table", {
|
|
2648
2653
|
class: l(t.question.getTableCss())
|
|
2649
2654
|
}, [
|
|
2650
|
-
t.question.showHeader ? (i(), u("thead",
|
|
2655
|
+
t.question.showHeader ? (i(), u("thead", io, [
|
|
2651
2656
|
c("tr", null, [
|
|
2652
|
-
t.question.hasRows ? (i(), u("td",
|
|
2653
|
-
(i(!0), u($, null, B(t.question.visibleColumns, (m,
|
|
2654
|
-
key:
|
|
2657
|
+
t.question.hasRows ? (i(), u("td", ro)) : d("", !0),
|
|
2658
|
+
(i(!0), u($, null, B(t.question.visibleColumns, (m, q) => (i(), u("th", {
|
|
2659
|
+
key: q,
|
|
2655
2660
|
class: l(t.question.cssClasses.headerCell),
|
|
2656
2661
|
style: S({
|
|
2657
2662
|
minWidth: t.question.columnMinWidth,
|
|
2658
2663
|
width: t.question.columnMinWidth
|
|
2659
2664
|
})
|
|
2660
2665
|
}, [
|
|
2661
|
-
(i(),
|
|
2666
|
+
(i(), g(R(t.question.getColumnHeaderWrapperComponentName(m)), {
|
|
2662
2667
|
componentData: t.question.getColumnHeaderWrapperComponentData(m)
|
|
2663
2668
|
}, {
|
|
2664
|
-
default:
|
|
2669
|
+
default: F(() => [
|
|
2665
2670
|
C(y, {
|
|
2666
2671
|
locString: m.locText
|
|
2667
2672
|
}, null, 8, ["locString"])
|
|
@@ -2672,21 +2677,21 @@ const so = /* @__PURE__ */ h({
|
|
|
2672
2677
|
])
|
|
2673
2678
|
])) : d("", !0),
|
|
2674
2679
|
c("tbody", null, [
|
|
2675
|
-
(i(!0), u($, null, B(e.value, (m,
|
|
2676
|
-
key: "row_" + m.name + "_" +
|
|
2680
|
+
(i(!0), u($, null, B(e.value, (m, q) => (i(), u("tr", {
|
|
2681
|
+
key: "row_" + m.name + "_" + q,
|
|
2677
2682
|
class: l(m.rowClasses || void 0)
|
|
2678
2683
|
}, [
|
|
2679
2684
|
P(c("td", {
|
|
2680
|
-
class: l(
|
|
2685
|
+
class: l(m.rowTextClasses),
|
|
2681
2686
|
style: S({
|
|
2682
2687
|
minWidth: t.question.rowTitleWidth,
|
|
2683
2688
|
width: t.question.rowTitleWidth
|
|
2684
2689
|
})
|
|
2685
2690
|
}, [
|
|
2686
|
-
(i(),
|
|
2691
|
+
(i(), g(R(t.question.getRowHeaderWrapperComponentName(m)), {
|
|
2687
2692
|
componentData: t.question.getRowHeaderWrapperComponentData(m)
|
|
2688
2693
|
}, {
|
|
2689
|
-
default:
|
|
2694
|
+
default: F(() => [
|
|
2690
2695
|
C(y, {
|
|
2691
2696
|
locString: m.locText
|
|
2692
2697
|
}, null, 8, ["locString"])
|
|
@@ -2696,28 +2701,28 @@ const so = /* @__PURE__ */ h({
|
|
|
2696
2701
|
], 6), [
|
|
2697
2702
|
[M, t.question.hasRows]
|
|
2698
2703
|
]),
|
|
2699
|
-
t.question.hasCellText ? (i(!0), u($, { key: 0 }, B(t.question.visibleColumns, (
|
|
2704
|
+
t.question.hasCellText ? (i(!0), u($, { key: 0 }, B(t.question.visibleColumns, (v, I) => (i(), u("td", {
|
|
2700
2705
|
key: I,
|
|
2701
|
-
class: l(t.question.getItemClass(m,
|
|
2702
|
-
onClick: (b) => n(m,
|
|
2706
|
+
class: l(t.question.getItemClass(m, v)),
|
|
2707
|
+
onClick: (b) => n(m, v)
|
|
2703
2708
|
}, [
|
|
2704
2709
|
C(y, {
|
|
2705
|
-
locString: t.question.getCellDisplayLocText(m.name,
|
|
2710
|
+
locString: t.question.getCellDisplayLocText(m.name, v)
|
|
2706
2711
|
}, null, 8, ["locString"])
|
|
2707
|
-
], 10,
|
|
2708
|
-
t.question.hasCellText ? d("", !0) : (i(!0), u($, { key: 1 }, B(t.question.visibleColumns, (
|
|
2712
|
+
], 10, lo))), 128)) : d("", !0),
|
|
2713
|
+
t.question.hasCellText ? d("", !0) : (i(!0), u($, { key: 1 }, B(t.question.visibleColumns, (v, I) => (i(), u("td", {
|
|
2709
2714
|
key: I,
|
|
2710
|
-
"data-responsive-title":
|
|
2715
|
+
"data-responsive-title": v.locText.renderedHtml,
|
|
2711
2716
|
class: l(t.question.cssClasses.cell),
|
|
2712
|
-
onClick: (b) => n(m,
|
|
2717
|
+
onClick: (b) => n(m, v)
|
|
2713
2718
|
}, [
|
|
2714
|
-
(i(),
|
|
2719
|
+
(i(), g(R(t.question.cellComponent), {
|
|
2715
2720
|
question: t.question,
|
|
2716
2721
|
row: m,
|
|
2717
|
-
column:
|
|
2722
|
+
column: v,
|
|
2718
2723
|
columnIndex: I
|
|
2719
2724
|
}, null, 8, ["question", "row", "column", "columnIndex"]))
|
|
2720
|
-
], 10,
|
|
2725
|
+
], 10, ao))), 128))
|
|
2721
2726
|
], 2))), 128))
|
|
2722
2727
|
])
|
|
2723
2728
|
], 2)
|
|
@@ -2725,7 +2730,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2725
2730
|
], 2);
|
|
2726
2731
|
};
|
|
2727
2732
|
}
|
|
2728
|
-
}),
|
|
2733
|
+
}), mo = ["name", "value", "disabled", "id", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], co = ["xlink:href"], po = /* @__PURE__ */ h({
|
|
2729
2734
|
inheritAttrs: !1,
|
|
2730
2735
|
__name: "MatrixCell",
|
|
2731
2736
|
props: {
|
|
@@ -2747,7 +2752,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2747
2752
|
name: s.row.fullName,
|
|
2748
2753
|
"onUpdate:modelValue": o[0] || (o[0] = (n) => s.row.value = n),
|
|
2749
2754
|
value: s.column.value,
|
|
2750
|
-
disabled: s.
|
|
2755
|
+
disabled: s.row.isReadOnly,
|
|
2751
2756
|
id: s.question.inputId + "_" + s.row.name + "_" + s.columnIndex,
|
|
2752
2757
|
"aria-required": s.question.a11y_input_ariaRequired,
|
|
2753
2758
|
"aria-label": s.question.getCellAriaLabel(
|
|
@@ -2756,8 +2761,8 @@ const so = /* @__PURE__ */ h({
|
|
|
2756
2761
|
),
|
|
2757
2762
|
"aria-invalid": s.question.a11y_input_ariaInvalid,
|
|
2758
2763
|
"aria-describedby": s.question.a11y_input_ariaDescribedBy
|
|
2759
|
-
}, null, 10,
|
|
2760
|
-
[
|
|
2764
|
+
}, null, 10, mo), [
|
|
2765
|
+
[x, s.row.value]
|
|
2761
2766
|
]),
|
|
2762
2767
|
c("span", {
|
|
2763
2768
|
class: l(s.question.cssClasses.materialDecorator)
|
|
@@ -2768,7 +2773,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2768
2773
|
}, [
|
|
2769
2774
|
c("use", {
|
|
2770
2775
|
"xlink:href": s.question.itemSvgIcon
|
|
2771
|
-
}, null, 8,
|
|
2776
|
+
}, null, 8, co)
|
|
2772
2777
|
], 2)) : d("", !0)
|
|
2773
2778
|
], 2),
|
|
2774
2779
|
s.question.isMobile ? (i(), u("span", {
|
|
@@ -2782,7 +2787,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2782
2787
|
], 34);
|
|
2783
2788
|
};
|
|
2784
2789
|
}
|
|
2785
|
-
}),
|
|
2790
|
+
}), vo = /* @__PURE__ */ h({
|
|
2786
2791
|
inheritAttrs: !1,
|
|
2787
2792
|
__name: "MatrixDropdown",
|
|
2788
2793
|
props: {
|
|
@@ -2792,14 +2797,14 @@ const so = /* @__PURE__ */ h({
|
|
|
2792
2797
|
const s = r, o = _(null);
|
|
2793
2798
|
return A(s, o), (e, n) => {
|
|
2794
2799
|
const t = p("survey-matrixtable");
|
|
2795
|
-
return i(),
|
|
2800
|
+
return i(), g(t, {
|
|
2796
2801
|
question: e.question,
|
|
2797
2802
|
ref_key: "root",
|
|
2798
2803
|
ref: o
|
|
2799
2804
|
}, null, 8, ["question"]);
|
|
2800
2805
|
};
|
|
2801
2806
|
}
|
|
2802
|
-
}),
|
|
2807
|
+
}), yo = { key: 0 }, qo = ["data-sv-drop-target-matrix-row", "onPointerdown"], go = { key: 1 }, ho = /* @__PURE__ */ h({
|
|
2803
2808
|
__name: "MatrixTable",
|
|
2804
2809
|
props: {
|
|
2805
2810
|
question: {}
|
|
@@ -2828,7 +2833,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2828
2833
|
c("table", {
|
|
2829
2834
|
class: l(e.question.getTableCss())
|
|
2830
2835
|
}, [
|
|
2831
|
-
o.value.showHeader ? (i(), u("thead",
|
|
2836
|
+
o.value.showHeader ? (i(), u("thead", yo, [
|
|
2832
2837
|
c("tr", null, [
|
|
2833
2838
|
(i(!0), u($, null, B(o.value.headerRow.cells, (m) => (i(), u($, null, [
|
|
2834
2839
|
m.hasTitle ? (i(), u("th", {
|
|
@@ -2836,14 +2841,14 @@ const so = /* @__PURE__ */ h({
|
|
|
2836
2841
|
class: l(m.className),
|
|
2837
2842
|
style: S({ minWidth: m.minWidth, width: m.width })
|
|
2838
2843
|
}, [
|
|
2839
|
-
(i(),
|
|
2844
|
+
(i(), g(R(e.question.getColumnHeaderWrapperComponentName(m)), {
|
|
2840
2845
|
componentData: e.question.getColumnHeaderWrapperComponentData(m)
|
|
2841
2846
|
}, {
|
|
2842
|
-
default:
|
|
2847
|
+
default: F(() => [
|
|
2843
2848
|
C(t, {
|
|
2844
2849
|
locString: m.locTitle
|
|
2845
2850
|
}, null, 8, ["locString"]),
|
|
2846
|
-
m.column ? (i(),
|
|
2851
|
+
m.column ? (i(), g(a, {
|
|
2847
2852
|
key: 0,
|
|
2848
2853
|
column: m.column,
|
|
2849
2854
|
question: e.question
|
|
@@ -2867,23 +2872,23 @@ const so = /* @__PURE__ */ h({
|
|
|
2867
2872
|
m.visible ? (i(), u("tr", {
|
|
2868
2873
|
key: 0,
|
|
2869
2874
|
"data-sv-drop-target-matrix-row": m.row && m.row.id,
|
|
2870
|
-
onPointerdown: (
|
|
2875
|
+
onPointerdown: (q) => e.question.onPointerDown(q, m.row),
|
|
2871
2876
|
class: l(m.className)
|
|
2872
2877
|
}, [
|
|
2873
|
-
(i(!0), u($, null, B(m.cells, (
|
|
2874
|
-
cell:
|
|
2878
|
+
(i(!0), u($, null, B(m.cells, (q, v) => (i(), g(y, {
|
|
2879
|
+
cell: q,
|
|
2875
2880
|
question: e.question,
|
|
2876
|
-
key: m.id + "_" +
|
|
2881
|
+
key: m.id + "_" + v
|
|
2877
2882
|
}, null, 8, ["cell", "question"]))), 128))
|
|
2878
|
-
], 42,
|
|
2883
|
+
], 42, qo)) : d("", !0)
|
|
2879
2884
|
], 64))), 128))
|
|
2880
2885
|
]),
|
|
2881
|
-
o.value.showFooter ? (i(), u("tfoot",
|
|
2886
|
+
o.value.showFooter ? (i(), u("tfoot", go, [
|
|
2882
2887
|
c("tr", null, [
|
|
2883
|
-
(i(!0), u($, null, B(o.value.footerRow.cells, (m,
|
|
2888
|
+
(i(!0), u($, null, B(o.value.footerRow.cells, (m, q) => (i(), g(y, {
|
|
2884
2889
|
cell: m,
|
|
2885
2890
|
question: e.question,
|
|
2886
|
-
key: "footer_" +
|
|
2891
|
+
key: "footer_" + q
|
|
2887
2892
|
}, null, 8, ["cell", "question"]))), 128))
|
|
2888
2893
|
])
|
|
2889
2894
|
])) : d("", !0)
|
|
@@ -2891,7 +2896,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2891
2896
|
], 6);
|
|
2892
2897
|
};
|
|
2893
2898
|
}
|
|
2894
|
-
}),
|
|
2899
|
+
}), Co = /* @__PURE__ */ c("span", null, "\xA0", -1), bo = /* @__PURE__ */ h({
|
|
2895
2900
|
__name: "MatrixHeaderRequired",
|
|
2896
2901
|
props: {
|
|
2897
2902
|
question: {},
|
|
@@ -2900,40 +2905,40 @@ const so = /* @__PURE__ */ h({
|
|
|
2900
2905
|
setup(r) {
|
|
2901
2906
|
const s = r;
|
|
2902
2907
|
return L(() => s.column), (o, e) => o.column.isRenderedRequired ? (i(), u($, { key: 0 }, [
|
|
2903
|
-
|
|
2908
|
+
Co,
|
|
2904
2909
|
o.column.isRenderedRequired ? (i(), u("span", {
|
|
2905
2910
|
key: 0,
|
|
2906
2911
|
class: l(o.question.cssClasses.cellRequiredText)
|
|
2907
|
-
},
|
|
2912
|
+
}, T(o.column.requiredText), 3)) : d("", !0)
|
|
2908
2913
|
], 64)) : d("", !0);
|
|
2909
2914
|
}
|
|
2910
|
-
}),
|
|
2915
|
+
}), ko = ["data-responsive-title", "title", "colspan"], fo = /* @__PURE__ */ h({
|
|
2911
2916
|
__name: "MatrixDropdownCellComp",
|
|
2912
2917
|
props: {
|
|
2913
2918
|
question: {},
|
|
2914
2919
|
cell: {}
|
|
2915
2920
|
},
|
|
2916
2921
|
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 = (
|
|
2922
|
+
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
2923
|
H(() => {
|
|
2919
2924
|
if (!s.cell.hasQuestion || !s.question || !s.question.survey)
|
|
2920
2925
|
return;
|
|
2921
2926
|
a(), s.cell.question.registerPropertyChangedHandlers(["isVisible"], () => {
|
|
2922
2927
|
a();
|
|
2923
2928
|
});
|
|
2924
|
-
const
|
|
2929
|
+
const v = e.value, I = s.cell.question, b = {
|
|
2925
2930
|
cell: s.cell.cell,
|
|
2926
2931
|
cellQuestion: I,
|
|
2927
|
-
htmlElement:
|
|
2932
|
+
htmlElement: v,
|
|
2928
2933
|
row: s.cell.row,
|
|
2929
2934
|
column: s.cell.cell.column
|
|
2930
2935
|
};
|
|
2931
|
-
s.question.survey.matrixAfterCellRender(s.question, b), I && I.afterRenderCore(
|
|
2936
|
+
s.question.survey.matrixAfterCellRender(s.question, b), I && I.afterRenderCore(v);
|
|
2932
2937
|
});
|
|
2933
2938
|
const m = w(() => {
|
|
2934
|
-
const
|
|
2935
|
-
if (
|
|
2936
|
-
const I =
|
|
2939
|
+
const v = s.cell;
|
|
2940
|
+
if (v.hasPanel) {
|
|
2941
|
+
const I = v.panel, b = I.survey;
|
|
2937
2942
|
if (b) {
|
|
2938
2943
|
const N = b.getElementWrapperComponentName(I);
|
|
2939
2944
|
if (N)
|
|
@@ -2941,7 +2946,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2941
2946
|
}
|
|
2942
2947
|
return "survey-panel";
|
|
2943
2948
|
}
|
|
2944
|
-
}),
|
|
2949
|
+
}), q = w(() => {
|
|
2945
2950
|
if (s.cell.hasPanel) {
|
|
2946
2951
|
const I = s.cell.panel, b = I.survey;
|
|
2947
2952
|
let N;
|
|
@@ -2955,98 +2960,98 @@ const so = /* @__PURE__ */ h({
|
|
|
2955
2960
|
};
|
|
2956
2961
|
}
|
|
2957
2962
|
});
|
|
2958
|
-
return (
|
|
2963
|
+
return (v, I) => {
|
|
2959
2964
|
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
2965
|
return i(), u("td", {
|
|
2961
|
-
class: l(
|
|
2966
|
+
class: l(v.cell.className),
|
|
2962
2967
|
"data-responsive-title": n(),
|
|
2963
|
-
title:
|
|
2968
|
+
title: v.cell.getTitle(),
|
|
2964
2969
|
style: S(t()),
|
|
2965
|
-
colspan:
|
|
2966
|
-
onFocusin: I[0] || (I[0] = (ue) =>
|
|
2970
|
+
colspan: v.cell.colSpans,
|
|
2971
|
+
onFocusin: I[0] || (I[0] = (ue) => v.cell.focusIn()),
|
|
2967
2972
|
ref_key: "root",
|
|
2968
2973
|
ref: e
|
|
2969
2974
|
}, [
|
|
2970
|
-
|
|
2975
|
+
v.cell.isErrorsCell ? (i(), g(b, {
|
|
2971
2976
|
key: 0,
|
|
2972
|
-
element:
|
|
2977
|
+
element: v.cell.question
|
|
2973
2978
|
}, null, 8, ["element"])) : d("", !0),
|
|
2974
|
-
|
|
2979
|
+
v.cell.isDragHandlerCell ? (i(), g(N, {
|
|
2975
2980
|
key: 1,
|
|
2976
|
-
item: { data: { row:
|
|
2981
|
+
item: { data: { row: v.cell.row, question: v.question } }
|
|
2977
2982
|
}, null, 8, ["item"])) : d("", !0),
|
|
2978
|
-
|
|
2983
|
+
v.cell.isActionsCell ? (i(), g(k, {
|
|
2979
2984
|
key: 2,
|
|
2980
|
-
model:
|
|
2985
|
+
model: v.cell.item.getData(),
|
|
2981
2986
|
handleClick: !1
|
|
2982
2987
|
}, null, 8, ["model"])) : d("", !0),
|
|
2983
|
-
|
|
2984
|
-
|
|
2988
|
+
v.cell.hasPanel ? (i(), g(R(m.value), O(W({ key: 3 }, q.value)), null, 16)) : d("", !0),
|
|
2989
|
+
v.cell.hasQuestion ? P((i(), u("div", {
|
|
2985
2990
|
key: 4,
|
|
2986
|
-
class: l(
|
|
2991
|
+
class: l(v.question.cssClasses.cellQuestionWrapper)
|
|
2987
2992
|
}, [
|
|
2988
|
-
!
|
|
2993
|
+
!v.cell.isChoice && v.cell.question.isDefaultRendering() ? (i(), g(R(v.question.getCellWrapperComponentName(v.cell.cell)), {
|
|
2989
2994
|
key: 0,
|
|
2990
|
-
componentData:
|
|
2995
|
+
componentData: v.question.getCellWrapperComponentData(v.cell.cell)
|
|
2991
2996
|
}, {
|
|
2992
|
-
default:
|
|
2993
|
-
(i(),
|
|
2994
|
-
question:
|
|
2997
|
+
default: F(() => [
|
|
2998
|
+
(i(), g(R(y(v.cell.question)), {
|
|
2999
|
+
question: v.cell.question
|
|
2995
3000
|
}, null, 8, ["question"]))
|
|
2996
3001
|
]),
|
|
2997
3002
|
_: 1
|
|
2998
3003
|
}, 8, ["componentData"])) : d("", !0),
|
|
2999
|
-
!
|
|
3004
|
+
!v.cell.isChoice && !v.cell.question.isDefaultRendering() ? (i(), g(R(v.cell.question.getComponentName()), {
|
|
3000
3005
|
key: 1,
|
|
3001
|
-
question:
|
|
3006
|
+
question: v.cell.question
|
|
3002
3007
|
}, null, 8, ["question"])) : d("", !0),
|
|
3003
|
-
|
|
3008
|
+
v.cell.isItemChoice ? (i(), g(R(v.question.getCellWrapperComponentName(v.cell.cell)), {
|
|
3004
3009
|
key: 2,
|
|
3005
|
-
componentData:
|
|
3010
|
+
componentData: v.question.getCellWrapperComponentData(v.cell.cell)
|
|
3006
3011
|
}, {
|
|
3007
|
-
default:
|
|
3008
|
-
|
|
3009
|
-
key:
|
|
3010
|
-
question:
|
|
3011
|
-
item:
|
|
3012
|
+
default: F(() => [
|
|
3013
|
+
v.cell.isRadio ? (i(), g(D, {
|
|
3014
|
+
key: v.cell.item.value,
|
|
3015
|
+
question: v.cell.question,
|
|
3016
|
+
item: v.cell.item,
|
|
3012
3017
|
hideLabel: !0
|
|
3013
3018
|
}, null, 8, ["question", "item"])) : d("", !0),
|
|
3014
|
-
|
|
3015
|
-
key:
|
|
3016
|
-
question:
|
|
3017
|
-
item:
|
|
3019
|
+
v.cell.isCheckbox ? (i(), g(E, {
|
|
3020
|
+
key: v.cell.item.value,
|
|
3021
|
+
question: v.cell.question,
|
|
3022
|
+
item: v.cell.item,
|
|
3018
3023
|
hideLabel: !0
|
|
3019
3024
|
}, null, 8, ["question", "item"])) : d("", !0)
|
|
3020
3025
|
]),
|
|
3021
3026
|
_: 1
|
|
3022
3027
|
}, 8, ["componentData"])) : d("", !0),
|
|
3023
|
-
|
|
3028
|
+
v.cell.isOtherChoice ? (i(), g(V, {
|
|
3024
3029
|
key: 3,
|
|
3025
|
-
question:
|
|
3030
|
+
question: v.cell.question
|
|
3026
3031
|
}, null, 8, ["question"])) : d("", !0)
|
|
3027
3032
|
], 2)), [
|
|
3028
3033
|
[M, o.value]
|
|
3029
3034
|
]) : d("", !0),
|
|
3030
|
-
|
|
3035
|
+
v.cell.hasTitle ? (i(), g(R(v.question.getCellWrapperComponentName(v.cell)), {
|
|
3031
3036
|
key: 5,
|
|
3032
|
-
componentData:
|
|
3037
|
+
componentData: v.question.getCellWrapperComponentData(v.cell)
|
|
3033
3038
|
}, {
|
|
3034
|
-
default:
|
|
3035
|
-
|
|
3039
|
+
default: F(() => [
|
|
3040
|
+
v.cell.hasTitle ? (i(), g(K, {
|
|
3036
3041
|
key: 0,
|
|
3037
|
-
locString:
|
|
3042
|
+
locString: v.cell.locTitle
|
|
3038
3043
|
}, null, 8, ["locString"])) : d("", !0),
|
|
3039
|
-
|
|
3044
|
+
v.cell.requiredText ? (i(), u("span", {
|
|
3040
3045
|
key: 1,
|
|
3041
|
-
class: l(
|
|
3042
|
-
},
|
|
3046
|
+
class: l(v.question.cssClasses.cellRequiredText)
|
|
3047
|
+
}, T(v.cell.requiredText), 3)) : d("", !0)
|
|
3043
3048
|
]),
|
|
3044
3049
|
_: 1
|
|
3045
3050
|
}, 8, ["componentData"])) : d("", !0)
|
|
3046
|
-
], 46,
|
|
3051
|
+
], 46, ko);
|
|
3047
3052
|
};
|
|
3048
3053
|
}
|
|
3049
|
-
}),
|
|
3054
|
+
}), Io = /* @__PURE__ */ h({
|
|
3050
3055
|
inheritAttrs: !1,
|
|
3051
3056
|
__name: "MatrixDynamic",
|
|
3052
3057
|
props: {
|
|
@@ -3081,7 +3086,7 @@ const so = /* @__PURE__ */ h({
|
|
|
3081
3086
|
}, null, 2)
|
|
3082
3087
|
], 2)
|
|
3083
3088
|
], 2)) : d("", !0),
|
|
3084
|
-
n.question.renderedTable.showTable ? (i(),
|
|
3089
|
+
n.question.renderedTable.showTable ? (i(), g(y, {
|
|
3085
3090
|
key: 1,
|
|
3086
3091
|
question: n.question
|
|
3087
3092
|
}, null, 8, ["question"])) : d("", !0),
|
|
@@ -3137,7 +3142,7 @@ function ae(r, s = !0) {
|
|
|
3137
3142
|
row: s ? w(() => r.item.data.row) : void 0
|
|
3138
3143
|
};
|
|
3139
3144
|
}
|
|
3140
|
-
const
|
|
3145
|
+
const wo = ["disabled"], So = /* @__PURE__ */ h({
|
|
3141
3146
|
__name: "RemoveButton",
|
|
3142
3147
|
props: {
|
|
3143
3148
|
item: {}
|
|
@@ -3158,10 +3163,10 @@ const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
|
3158
3163
|
c("span", {
|
|
3159
3164
|
class: l(f(o).cssClasses.iconRemove)
|
|
3160
3165
|
}, null, 2)
|
|
3161
|
-
], 10,
|
|
3166
|
+
], 10, wo);
|
|
3162
3167
|
};
|
|
3163
3168
|
}
|
|
3164
|
-
}),
|
|
3169
|
+
}), Ro = ["xlink:href"], To = /* @__PURE__ */ h({
|
|
3165
3170
|
__name: "DragDropIcon",
|
|
3166
3171
|
props: {
|
|
3167
3172
|
item: {}
|
|
@@ -3174,13 +3179,13 @@ const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
|
3174
3179
|
}, [
|
|
3175
3180
|
c("use", {
|
|
3176
3181
|
"xlink:href": f(o).iconDragElement
|
|
3177
|
-
}, null, 8,
|
|
3182
|
+
}, null, 8, Ro)
|
|
3178
3183
|
], 2)) : (i(), u("span", {
|
|
3179
3184
|
key: 1,
|
|
3180
3185
|
class: l(f(o).cssClasses.iconDrag)
|
|
3181
3186
|
}, null, 2));
|
|
3182
3187
|
}
|
|
3183
|
-
}),
|
|
3188
|
+
}), $o = ["aria-expanded", "aria-controls"], _o = /* @__PURE__ */ h({
|
|
3184
3189
|
__name: "DetailButton",
|
|
3185
3190
|
props: {
|
|
3186
3191
|
item: {}
|
|
@@ -3201,10 +3206,10 @@ const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
|
3201
3206
|
iconName: f(o).getDetailPanelIconId(f(e)),
|
|
3202
3207
|
size: "auto"
|
|
3203
3208
|
}, null, 8, ["class", "iconName"])
|
|
3204
|
-
], 10,
|
|
3209
|
+
], 10, $o);
|
|
3205
3210
|
};
|
|
3206
3211
|
}
|
|
3207
|
-
}),
|
|
3212
|
+
}), Do = /* @__PURE__ */ h({
|
|
3208
3213
|
inheritAttrs: !1,
|
|
3209
3214
|
__name: "PanelDynamic",
|
|
3210
3215
|
props: {
|
|
@@ -3218,14 +3223,14 @@ const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
|
3218
3223
|
o,
|
|
3219
3224
|
(m) => {
|
|
3220
3225
|
m.panelCountChangedCallback = () => {
|
|
3221
|
-
var
|
|
3222
|
-
(
|
|
3226
|
+
var q;
|
|
3227
|
+
(q = e == null ? void 0 : e.proxy) == null || q.$forceUpdate();
|
|
3223
3228
|
}, m.currentIndexChangedCallback = () => {
|
|
3224
|
-
var
|
|
3225
|
-
(
|
|
3229
|
+
var q;
|
|
3230
|
+
(q = e == null ? void 0 : e.proxy) == null || q.$forceUpdate();
|
|
3226
3231
|
}, m.renderModeChangedCallback = () => {
|
|
3227
|
-
var
|
|
3228
|
-
(
|
|
3232
|
+
var q;
|
|
3233
|
+
(q = e == null ? void 0 : e.proxy) == null || q.$forceUpdate();
|
|
3229
3234
|
};
|
|
3230
3235
|
},
|
|
3231
3236
|
(m) => {
|
|
@@ -3241,26 +3246,26 @@ const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
|
3241
3246
|
const m = [];
|
|
3242
3247
|
return s.question.currentPanel && m.push(s.question.currentPanel), m;
|
|
3243
3248
|
}), t = () => s.question.showLegacyNavigation, a = (m) => {
|
|
3244
|
-
const
|
|
3245
|
-
if (
|
|
3246
|
-
const
|
|
3247
|
-
if (
|
|
3248
|
-
return
|
|
3249
|
+
const q = s.question.getSurvey();
|
|
3250
|
+
if (q) {
|
|
3251
|
+
const v = q.getElementWrapperComponentName(m);
|
|
3252
|
+
if (v)
|
|
3253
|
+
return v;
|
|
3249
3254
|
}
|
|
3250
3255
|
return "panel";
|
|
3251
3256
|
}, y = (m) => {
|
|
3252
|
-
const
|
|
3253
|
-
let
|
|
3254
|
-
return
|
|
3257
|
+
const q = s.question.getSurvey();
|
|
3258
|
+
let v;
|
|
3259
|
+
return q && (v = q.getElementWrapperComponentData(m)), {
|
|
3255
3260
|
componentName: "survey-panel",
|
|
3256
3261
|
componentData: {
|
|
3257
3262
|
element: m,
|
|
3258
|
-
data:
|
|
3263
|
+
data: v
|
|
3259
3264
|
}
|
|
3260
3265
|
};
|
|
3261
3266
|
};
|
|
3262
|
-
return (m,
|
|
3263
|
-
const
|
|
3267
|
+
return (m, q) => {
|
|
3268
|
+
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
3269
|
return i(), u("div", {
|
|
3265
3270
|
class: l(m.question.cssClasses.root),
|
|
3266
3271
|
ref_key: "root",
|
|
@@ -3271,7 +3276,7 @@ const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
|
3271
3276
|
class: l(m.question.cssClasses.noEntriesPlaceholder)
|
|
3272
3277
|
}, [
|
|
3273
3278
|
c("span", null, [
|
|
3274
|
-
C(
|
|
3279
|
+
C(v, {
|
|
3275
3280
|
locString: m.question.locNoEntriesText
|
|
3276
3281
|
}, null, 8, ["locString"])
|
|
3277
3282
|
]),
|
|
@@ -3289,7 +3294,7 @@ const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
|
3289
3294
|
role: "progressbar"
|
|
3290
3295
|
}, null, 6)
|
|
3291
3296
|
], 2)) : d("", !0),
|
|
3292
|
-
t() && m.question.isProgressTopShowing ? (i(),
|
|
3297
|
+
t() && m.question.isProgressTopShowing ? (i(), g(b, {
|
|
3293
3298
|
key: 2,
|
|
3294
3299
|
question: m.question
|
|
3295
3300
|
}, null, 8, ["question"])) : d("", !0),
|
|
@@ -3299,8 +3304,8 @@ const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
|
3299
3304
|
c("div", {
|
|
3300
3305
|
class: l(m.question.getPanelWrapperCss())
|
|
3301
3306
|
}, [
|
|
3302
|
-
(i(),
|
|
3303
|
-
m.question.panelRemoveButtonLocation === "right" && m.question.canRemovePanel && D.state !== "collapsed" ? (i(),
|
|
3307
|
+
(i(), g(R(a(D)), O(ne(y(D))), null, 16)),
|
|
3308
|
+
m.question.panelRemoveButtonLocation === "right" && m.question.canRemovePanel && D.state !== "collapsed" ? (i(), g(N, {
|
|
3304
3309
|
key: 0,
|
|
3305
3310
|
data: { question: m.question, panel: D }
|
|
3306
3311
|
}, null, 8, ["data"])) : d("", !0)
|
|
@@ -3310,22 +3315,22 @@ const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
|
3310
3315
|
key: "separator" + D.id
|
|
3311
3316
|
}, null, 2)) : d("", !0)
|
|
3312
3317
|
], 64))), 128)),
|
|
3313
|
-
t() && m.question.isProgressBottomShowing ? (i(),
|
|
3318
|
+
t() && m.question.isProgressBottomShowing ? (i(), g(b, {
|
|
3314
3319
|
key: 3,
|
|
3315
3320
|
question: m.question
|
|
3316
3321
|
}, null, 8, ["question"])) : d("", !0),
|
|
3317
|
-
t() && m.question.isRenderModeList ? (i(),
|
|
3322
|
+
t() && m.question.isRenderModeList ? (i(), g(I, {
|
|
3318
3323
|
key: 4,
|
|
3319
3324
|
data: { question: m.question }
|
|
3320
3325
|
}, null, 8, ["data"])) : d("", !0),
|
|
3321
|
-
m.question.showNavigation ? (i(),
|
|
3326
|
+
m.question.showNavigation ? (i(), g(k, {
|
|
3322
3327
|
key: 5,
|
|
3323
3328
|
question: m.question
|
|
3324
3329
|
}, null, 8, ["question"])) : d("", !0)
|
|
3325
3330
|
], 2);
|
|
3326
3331
|
};
|
|
3327
3332
|
}
|
|
3328
|
-
}),
|
|
3333
|
+
}), Bo = /* @__PURE__ */ h({
|
|
3329
3334
|
__name: "PanelDynamicProgress",
|
|
3330
3335
|
props: {
|
|
3331
3336
|
question: {}
|
|
@@ -3371,7 +3376,7 @@ const So = ["disabled"], Ro = /* @__PURE__ */ h({
|
|
|
3371
3376
|
], 2);
|
|
3372
3377
|
};
|
|
3373
3378
|
}
|
|
3374
|
-
}),
|
|
3379
|
+
}), Lo = /* @__PURE__ */ h({
|
|
3375
3380
|
__name: "PanelDynamicProgressV2",
|
|
3376
3381
|
props: {
|
|
3377
3382
|
question: {}
|
|
@@ -3413,7 +3418,7 @@ function Y(r) {
|
|
|
3413
3418
|
() => r.item && r.item.data.question || r.data.question
|
|
3414
3419
|
);
|
|
3415
3420
|
}
|
|
3416
|
-
const
|
|
3421
|
+
const No = /* @__PURE__ */ h({
|
|
3417
3422
|
__name: "PaneldynamicAddBtn",
|
|
3418
3423
|
props: {
|
|
3419
3424
|
item: {},
|
|
@@ -3423,18 +3428,25 @@ const Po = /* @__PURE__ */ h({
|
|
|
3423
3428
|
const o = Y(r), e = () => {
|
|
3424
3429
|
o.value.addPanelUI();
|
|
3425
3430
|
};
|
|
3426
|
-
return (n, t) =>
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3431
|
+
return (n, t) => {
|
|
3432
|
+
const a = p("survey-string");
|
|
3433
|
+
return f(o).canAddPanel ? (i(), u("button", {
|
|
3434
|
+
key: 0,
|
|
3435
|
+
type: "button",
|
|
3436
|
+
class: l(f(o).getAddButtonCss()),
|
|
3437
|
+
onClick: e
|
|
3438
|
+
}, [
|
|
3439
|
+
c("span", {
|
|
3440
|
+
class: l(f(o).cssClasses.buttonAddText)
|
|
3441
|
+
}, [
|
|
3442
|
+
C(a, {
|
|
3443
|
+
locString: f(o).locPanelAddText
|
|
3444
|
+
}, null, 8, ["locString"])
|
|
3445
|
+
], 2)
|
|
3446
|
+
], 2)) : d("", !0);
|
|
3447
|
+
};
|
|
3436
3448
|
}
|
|
3437
|
-
}),
|
|
3449
|
+
}), Po = ["title"], Ao = /* @__PURE__ */ h({
|
|
3438
3450
|
__name: "PaneldynamicNextBtn",
|
|
3439
3451
|
props: {
|
|
3440
3452
|
item: {},
|
|
@@ -3455,10 +3467,10 @@ const Po = /* @__PURE__ */ h({
|
|
|
3455
3467
|
iconName: f(o).cssClasses.progressBtnIcon,
|
|
3456
3468
|
size: "auto"
|
|
3457
3469
|
}, null, 8, ["iconName"])
|
|
3458
|
-
], 10,
|
|
3470
|
+
], 10, Po);
|
|
3459
3471
|
};
|
|
3460
3472
|
}
|
|
3461
|
-
}),
|
|
3473
|
+
}), Mo = ["title"], Ho = /* @__PURE__ */ h({
|
|
3462
3474
|
__name: "PaneldynamicPrevBtn",
|
|
3463
3475
|
props: {
|
|
3464
3476
|
item: {},
|
|
@@ -3479,10 +3491,10 @@ const Po = /* @__PURE__ */ h({
|
|
|
3479
3491
|
iconName: f(o).cssClasses.progressBtnIcon,
|
|
3480
3492
|
size: "auto"
|
|
3481
3493
|
}, null, 8, ["iconName"])
|
|
3482
|
-
], 10,
|
|
3494
|
+
], 10, Mo);
|
|
3483
3495
|
};
|
|
3484
3496
|
}
|
|
3485
|
-
}),
|
|
3497
|
+
}), Wo = /* @__PURE__ */ h({
|
|
3486
3498
|
__name: "PaneldynamicRemoveBtn",
|
|
3487
3499
|
props: {
|
|
3488
3500
|
item: {},
|
|
@@ -3494,20 +3506,27 @@ const Po = /* @__PURE__ */ h({
|
|
|
3494
3506
|
), n = (t) => {
|
|
3495
3507
|
o.value.isInputReadOnly || o.value.removePanelUI(t);
|
|
3496
3508
|
};
|
|
3497
|
-
return (t, a) =>
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
+
return (t, a) => {
|
|
3510
|
+
const y = p("survey-string");
|
|
3511
|
+
return i(), u("button", {
|
|
3512
|
+
type: "button",
|
|
3513
|
+
class: l(f(o).getPanelRemoveButtonCss()),
|
|
3514
|
+
onClick: a[0] || (a[0] = (m) => n(e.value))
|
|
3515
|
+
}, [
|
|
3516
|
+
c("span", {
|
|
3517
|
+
class: l(f(o).cssClasses.buttonRemoveText)
|
|
3518
|
+
}, [
|
|
3519
|
+
C(y, {
|
|
3520
|
+
locString: f(o).locPanelRemoveText
|
|
3521
|
+
}, null, 8, ["locString"])
|
|
3522
|
+
], 2),
|
|
3523
|
+
c("span", {
|
|
3524
|
+
class: l(f(o).cssClasses.iconRemove)
|
|
3525
|
+
}, null, 2)
|
|
3526
|
+
], 2);
|
|
3527
|
+
};
|
|
3509
3528
|
}
|
|
3510
|
-
}),
|
|
3529
|
+
}), Eo = /* @__PURE__ */ h({
|
|
3511
3530
|
__name: "PaneldynamicProgressText",
|
|
3512
3531
|
props: {
|
|
3513
3532
|
item: {},
|
|
@@ -3517,9 +3536,9 @@ const Po = /* @__PURE__ */ h({
|
|
|
3517
3536
|
const o = Y(r);
|
|
3518
3537
|
return (e, n) => (i(), u("div", {
|
|
3519
3538
|
class: l(f(o).cssClasses.progressText)
|
|
3520
|
-
},
|
|
3539
|
+
}, T(f(o).progressText), 3));
|
|
3521
3540
|
}
|
|
3522
|
-
}),
|
|
3541
|
+
}), Vo = ["id"], Fo = /* @__PURE__ */ h({
|
|
3523
3542
|
__name: "Errors",
|
|
3524
3543
|
props: {
|
|
3525
3544
|
element: {},
|
|
@@ -3557,16 +3576,16 @@ const Po = /* @__PURE__ */ h({
|
|
|
3557
3576
|
}, null, 8, ["locString"])
|
|
3558
3577
|
], 2)
|
|
3559
3578
|
]))), 128))
|
|
3560
|
-
], 10,
|
|
3579
|
+
], 10, Vo)) : d("", !0);
|
|
3561
3580
|
};
|
|
3562
3581
|
}
|
|
3563
|
-
}),
|
|
3582
|
+
}), Oo = { key: 0 }, zo = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], Uo = /* @__PURE__ */ h({
|
|
3564
3583
|
__name: "QuestionComment",
|
|
3565
3584
|
props: {
|
|
3566
3585
|
question: {}
|
|
3567
3586
|
},
|
|
3568
3587
|
setup(r) {
|
|
3569
|
-
return (s, o) => s.question.isReadOnlyRenderDiv() ? (i(), u("div",
|
|
3588
|
+
return (s, o) => s.question.isReadOnlyRenderDiv() ? (i(), u("div", Oo, T(s.question.comment), 1)) : (i(), u("textarea", {
|
|
3570
3589
|
key: 1,
|
|
3571
3590
|
id: s.question.commentId,
|
|
3572
3591
|
readonly: s.question.isInputReadOnly,
|
|
@@ -3584,9 +3603,9 @@ const Po = /* @__PURE__ */ h({
|
|
|
3584
3603
|
onInput: o[1] || (o[1] = (e) => {
|
|
3585
3604
|
s.question.onCommentInput(e);
|
|
3586
3605
|
})
|
|
3587
|
-
}, null, 46,
|
|
3606
|
+
}, null, 46, zo));
|
|
3588
3607
|
}
|
|
3589
|
-
}),
|
|
3608
|
+
}), Ko = /* @__PURE__ */ h({
|
|
3590
3609
|
__name: "TitleElement",
|
|
3591
3610
|
props: {
|
|
3592
3611
|
element: {},
|
|
@@ -3598,7 +3617,7 @@ const Po = /* @__PURE__ */ h({
|
|
|
3598
3617
|
};
|
|
3599
3618
|
return (o, e) => {
|
|
3600
3619
|
const n = p("survey-element-title-content"), t = p("sv-title-actions");
|
|
3601
|
-
return o.element.hasTitle ? (i(),
|
|
3620
|
+
return o.element.hasTitle ? (i(), g(R(o.element.titleTagName), {
|
|
3602
3621
|
key: 0,
|
|
3603
3622
|
class: l(o.element.cssTitle),
|
|
3604
3623
|
"aria-label": o.element.titleAriaLabel,
|
|
@@ -3610,13 +3629,13 @@ const Po = /* @__PURE__ */ h({
|
|
|
3610
3629
|
s(a);
|
|
3611
3630
|
})
|
|
3612
3631
|
}, {
|
|
3613
|
-
default:
|
|
3614
|
-
o.element.hasTitleActions ? d("", !0) : (i(),
|
|
3632
|
+
default: F(() => [
|
|
3633
|
+
o.element.hasTitleActions ? d("", !0) : (i(), g(n, {
|
|
3615
3634
|
key: 0,
|
|
3616
3635
|
element: o.element,
|
|
3617
3636
|
css: o.css
|
|
3618
3637
|
}, null, 8, ["element", "css"])),
|
|
3619
|
-
o.element.hasTitleActions ? (i(),
|
|
3638
|
+
o.element.hasTitleActions ? (i(), g(t, {
|
|
3620
3639
|
key: 1,
|
|
3621
3640
|
element: o.element,
|
|
3622
3641
|
css: o.css
|
|
@@ -3626,7 +3645,7 @@ const Po = /* @__PURE__ */ h({
|
|
|
3626
3645
|
}, 40, ["class", "aria-label", "id", "tabindex", "aria-expanded", "role"])) : d("", !0);
|
|
3627
3646
|
};
|
|
3628
3647
|
}
|
|
3629
|
-
}),
|
|
3648
|
+
}), jo = { key: 3 }, Qo = { key: 5 }, Go = { key: 7 }, Jo = /* @__PURE__ */ h({
|
|
3630
3649
|
inheritAttrs: !1,
|
|
3631
3650
|
__name: "TitleContent",
|
|
3632
3651
|
props: {
|
|
@@ -3637,7 +3656,7 @@ const Po = /* @__PURE__ */ h({
|
|
|
3637
3656
|
return (s, o) => {
|
|
3638
3657
|
const e = p("survey-string");
|
|
3639
3658
|
return i(), u($, null, [
|
|
3640
|
-
s.element.isTitleRenderedAsString ? (i(),
|
|
3659
|
+
s.element.isTitleRenderedAsString ? (i(), g(e, {
|
|
3641
3660
|
key: 0,
|
|
3642
3661
|
locString: s.element.locTitle
|
|
3643
3662
|
}, null, 8, ["locString"])) : d("", !0),
|
|
@@ -3645,34 +3664,34 @@ const Po = /* @__PURE__ */ h({
|
|
|
3645
3664
|
key: 1,
|
|
3646
3665
|
class: l(s.element.cssClasses.requiredText),
|
|
3647
3666
|
"aria-hidden": !0
|
|
3648
|
-
},
|
|
3667
|
+
}, T(s.element.requiredText), 3)) : d("", !0),
|
|
3649
3668
|
!s.element.isTitleRenderedAsString && s.element.no ? (i(), u("span", {
|
|
3650
3669
|
key: 2,
|
|
3651
3670
|
style: { position: "static" },
|
|
3652
3671
|
class: l(s.element.cssTitleNumber),
|
|
3653
3672
|
"aria-hidden": !0
|
|
3654
|
-
},
|
|
3655
|
-
!s.element.isTitleRenderedAsString && s.element.no ? (i(), u("span",
|
|
3673
|
+
}, T(s.element.no), 3)) : d("", !0),
|
|
3674
|
+
!s.element.isTitleRenderedAsString && s.element.no ? (i(), u("span", jo, "\xA0")) : d("", !0),
|
|
3656
3675
|
!s.element.isTitleRenderedAsString && s.element.isRequireTextBeforeTitle ? (i(), u("span", {
|
|
3657
3676
|
key: 4,
|
|
3658
3677
|
class: l(s.element.cssClasses.requiredText),
|
|
3659
3678
|
"aria-hidden": !0
|
|
3660
|
-
},
|
|
3661
|
-
!s.element.isTitleRenderedAsString && s.element.isRequireTextBeforeTitle ? (i(), u("span",
|
|
3662
|
-
s.element.isTitleRenderedAsString ? d("", !0) : (i(),
|
|
3679
|
+
}, T(s.element.requiredText), 3)) : d("", !0),
|
|
3680
|
+
!s.element.isTitleRenderedAsString && s.element.isRequireTextBeforeTitle ? (i(), u("span", Qo, "\xA0")) : d("", !0),
|
|
3681
|
+
s.element.isTitleRenderedAsString ? d("", !0) : (i(), g(e, {
|
|
3663
3682
|
key: 6,
|
|
3664
3683
|
locString: s.element.locTitle
|
|
3665
3684
|
}, null, 8, ["locString"])),
|
|
3666
|
-
!s.element.isTitleRenderedAsString && s.element.isRequireTextAfterTitle ? (i(), u("span",
|
|
3685
|
+
!s.element.isTitleRenderedAsString && s.element.isRequireTextAfterTitle ? (i(), u("span", Go, "\xA0")) : d("", !0),
|
|
3667
3686
|
!s.element.isTitleRenderedAsString && s.element.isRequireTextAfterTitle ? (i(), u("span", {
|
|
3668
3687
|
key: 8,
|
|
3669
3688
|
class: l(s.element.cssClasses.requiredText),
|
|
3670
3689
|
"aria-hidden": !0
|
|
3671
|
-
},
|
|
3690
|
+
}, T(s.element.requiredText), 3)) : d("", !0)
|
|
3672
3691
|
], 64);
|
|
3673
3692
|
};
|
|
3674
3693
|
}
|
|
3675
|
-
}),
|
|
3694
|
+
}), Xo = { class: "sv-title-actions" }, Yo = { class: "sv-title-actions__title" }, Zo = /* @__PURE__ */ h({
|
|
3676
3695
|
__name: "TitleActions",
|
|
3677
3696
|
props: {
|
|
3678
3697
|
element: {},
|
|
@@ -3682,13 +3701,13 @@ const Po = /* @__PURE__ */ h({
|
|
|
3682
3701
|
const s = r, o = w(() => s.element.getTitleToolbar());
|
|
3683
3702
|
return (e, n) => {
|
|
3684
3703
|
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(),
|
|
3704
|
+
return i(), u("div", Xo, [
|
|
3705
|
+
c("span", Yo, [
|
|
3706
|
+
e.element.isPage ? (i(), g(t, {
|
|
3688
3707
|
key: 0,
|
|
3689
3708
|
locString: e.element.locTitle
|
|
3690
3709
|
}, null, 8, ["locString"])) : d("", !0),
|
|
3691
|
-
e.element.isPage ? d("", !0) : (i(),
|
|
3710
|
+
e.element.isPage ? d("", !0) : (i(), g(a, {
|
|
3692
3711
|
key: 1,
|
|
3693
3712
|
element: e.element,
|
|
3694
3713
|
css: e.css
|
|
@@ -3703,15 +3722,15 @@ const Po = /* @__PURE__ */ h({
|
|
|
3703
3722
|
for (const [e, n] of s)
|
|
3704
3723
|
o[e] = n;
|
|
3705
3724
|
return o;
|
|
3706
|
-
},
|
|
3707
|
-
|
|
3725
|
+
}, 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 = [
|
|
3726
|
+
st
|
|
3708
3727
|
];
|
|
3709
|
-
function
|
|
3710
|
-
return i(), u("div",
|
|
3728
|
+
function ot(r, s) {
|
|
3729
|
+
return i(), u("div", et, nt);
|
|
3711
3730
|
}
|
|
3712
|
-
const
|
|
3713
|
-
|
|
3714
|
-
],
|
|
3731
|
+
const tt = /* @__PURE__ */ Ce(xo, [["render", ot]]), it = /* @__PURE__ */ c("use", null, null, -1), rt = [
|
|
3732
|
+
it
|
|
3733
|
+
], lt = /* @__PURE__ */ h({
|
|
3715
3734
|
__name: "SvgIcon",
|
|
3716
3735
|
props: {
|
|
3717
3736
|
size: {},
|
|
@@ -3731,7 +3750,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
3731
3750
|
s.title
|
|
3732
3751
|
);
|
|
3733
3752
|
};
|
|
3734
|
-
return
|
|
3753
|
+
return te(() => {
|
|
3735
3754
|
e();
|
|
3736
3755
|
}), H(() => {
|
|
3737
3756
|
e();
|
|
@@ -3740,9 +3759,9 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
3740
3759
|
ref: o,
|
|
3741
3760
|
class: "sv-svg-icon",
|
|
3742
3761
|
role: "img"
|
|
3743
|
-
},
|
|
3762
|
+
}, rt, 512));
|
|
3744
3763
|
}
|
|
3745
|
-
}),
|
|
3764
|
+
}), at = /* @__PURE__ */ h({
|
|
3746
3765
|
__name: "ActionBar",
|
|
3747
3766
|
props: {
|
|
3748
3767
|
model: {},
|
|
@@ -3768,14 +3787,14 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
3768
3787
|
class: l(t.model.getRootCss()),
|
|
3769
3788
|
onClick: e
|
|
3770
3789
|
}, [
|
|
3771
|
-
(i(!0), u($, null, B(f(n), (m) => (i(),
|
|
3790
|
+
(i(!0), u($, null, B(f(n), (m) => (i(), g(y, {
|
|
3772
3791
|
key: m.id,
|
|
3773
3792
|
item: m
|
|
3774
3793
|
}, null, 8, ["item"]))), 128))
|
|
3775
3794
|
], 2)) : d("", !0);
|
|
3776
3795
|
};
|
|
3777
3796
|
}
|
|
3778
|
-
}),
|
|
3797
|
+
}), ut = ["id"], dt = { class: "sv-action__content" }, mt = /* @__PURE__ */ h({
|
|
3779
3798
|
__name: "Action",
|
|
3780
3799
|
props: {
|
|
3781
3800
|
item: {}
|
|
@@ -3790,17 +3809,17 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
3790
3809
|
class: l(e.item.getActionRootCss()),
|
|
3791
3810
|
id: e.item.id
|
|
3792
3811
|
}, [
|
|
3793
|
-
c("div",
|
|
3794
|
-
e.item.needSeparator ? (i(),
|
|
3795
|
-
(i(),
|
|
3812
|
+
c("div", dt, [
|
|
3813
|
+
e.item.needSeparator ? (i(), g(t, { key: 0 })) : d("", !0),
|
|
3814
|
+
(i(), g(R(o.value), { item: e.item }, null, 8, ["item"]))
|
|
3796
3815
|
])
|
|
3797
|
-
], 10,
|
|
3816
|
+
], 10, ut);
|
|
3798
3817
|
};
|
|
3799
3818
|
}
|
|
3800
|
-
}),
|
|
3819
|
+
}), ct = ["disabled", "title", "aria-checked", "aria-expanded", "role"], pt = {
|
|
3801
3820
|
inheritAttrs: !1
|
|
3802
|
-
},
|
|
3803
|
-
...
|
|
3821
|
+
}, vt = /* @__PURE__ */ h({
|
|
3822
|
+
...pt,
|
|
3804
3823
|
__name: "ActionBarItem",
|
|
3805
3824
|
props: {
|
|
3806
3825
|
item: {}
|
|
@@ -3824,7 +3843,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
3824
3843
|
"aria-expanded": o.item.ariaExpanded,
|
|
3825
3844
|
role: o.item.ariaRole
|
|
3826
3845
|
}, [
|
|
3827
|
-
o.item.iconName ? (i(),
|
|
3846
|
+
o.item.iconName ? (i(), g(n, {
|
|
3828
3847
|
key: 0,
|
|
3829
3848
|
class: l(o.item.cssClasses.itemIcon),
|
|
3830
3849
|
iconName: o.item.iconName,
|
|
@@ -3834,16 +3853,16 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
3834
3853
|
o.item.hasTitle ? (i(), u("span", {
|
|
3835
3854
|
key: 1,
|
|
3836
3855
|
class: l(o.item.getActionBarItemTitleCss())
|
|
3837
|
-
},
|
|
3838
|
-
], 42,
|
|
3856
|
+
}, T(o.item.title), 3)) : d("", !0)
|
|
3857
|
+
], 42, ct)), [
|
|
3839
3858
|
[t, { processEsc: !1, disableTabStop: o.item.disableTabStop }]
|
|
3840
3859
|
]);
|
|
3841
3860
|
};
|
|
3842
3861
|
}
|
|
3843
|
-
}),
|
|
3862
|
+
}), yt = ["disabled", "title", "role"], qt = {
|
|
3844
3863
|
inheritAttrs: !1
|
|
3845
|
-
},
|
|
3846
|
-
...
|
|
3864
|
+
}, gt = /* @__PURE__ */ h({
|
|
3865
|
+
...qt,
|
|
3847
3866
|
__name: "ActionBarItemDropdown",
|
|
3848
3867
|
props: {
|
|
3849
3868
|
item: {}
|
|
@@ -3865,17 +3884,17 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
3865
3884
|
P((i(), u("button", {
|
|
3866
3885
|
type: "button",
|
|
3867
3886
|
class: l(n.item.getActionBarItemCss()),
|
|
3868
|
-
onClick: t[0] || (t[0] = (
|
|
3869
|
-
n.item.action(n.item, !!
|
|
3887
|
+
onClick: t[0] || (t[0] = (q) => {
|
|
3888
|
+
n.item.action(n.item, !!q.pointerType);
|
|
3870
3889
|
}),
|
|
3871
|
-
onKeyup: t[1] || (t[1] = (
|
|
3872
|
-
|
|
3890
|
+
onKeyup: t[1] || (t[1] = (q) => {
|
|
3891
|
+
q.stopPropagation();
|
|
3873
3892
|
}),
|
|
3874
3893
|
disabled: n.item.disabled,
|
|
3875
3894
|
title: n.item.tooltip || n.item.title,
|
|
3876
3895
|
role: n.item.ariaRole
|
|
3877
3896
|
}, [
|
|
3878
|
-
n.item.iconName ? (i(),
|
|
3897
|
+
n.item.iconName ? (i(), g(a, {
|
|
3879
3898
|
key: 0,
|
|
3880
3899
|
class: l(n.item.cssClasses.itemIcon),
|
|
3881
3900
|
iconName: n.item.iconName,
|
|
@@ -3885,8 +3904,8 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
3885
3904
|
n.item.hasTitle ? (i(), u("span", {
|
|
3886
3905
|
key: 1,
|
|
3887
3906
|
class: l(n.item.getActionBarItemTitleCss())
|
|
3888
|
-
},
|
|
3889
|
-
], 42,
|
|
3907
|
+
}, T(n.item.title), 3)) : d("", !0)
|
|
3908
|
+
], 42, yt)), [
|
|
3890
3909
|
[m, { processEsc: !1, disableTabStop: n.item.disableTabStop }]
|
|
3891
3910
|
]),
|
|
3892
3911
|
C(y, {
|
|
@@ -3896,7 +3915,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
3896
3915
|
], 64);
|
|
3897
3916
|
};
|
|
3898
3917
|
}
|
|
3899
|
-
}),
|
|
3918
|
+
}), ht = /* @__PURE__ */ h({
|
|
3900
3919
|
__name: "ActionBarSeparator",
|
|
3901
3920
|
props: {
|
|
3902
3921
|
item: {}
|
|
@@ -3907,7 +3926,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
3907
3926
|
class: l(["sv-action-bar-separator", o.value])
|
|
3908
3927
|
}, null, 2));
|
|
3909
3928
|
}
|
|
3910
|
-
}),
|
|
3929
|
+
}), Ct = ["aria-label", "placeholder", "value"], bt = ["aria-label"], kt = ["id"], ft = /* @__PURE__ */ h({
|
|
3911
3930
|
__name: "List",
|
|
3912
3931
|
props: {
|
|
3913
3932
|
model: {}
|
|
@@ -3925,7 +3944,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
3925
3944
|
return L(() => s.model), H(() => {
|
|
3926
3945
|
s.model.initListContainerHtmlElement(o.value);
|
|
3927
3946
|
}), (a, y) => {
|
|
3928
|
-
const m = p("sv-svg-icon"),
|
|
3947
|
+
const m = p("sv-svg-icon"), q = p("sv-list-item");
|
|
3929
3948
|
return i(), u("div", {
|
|
3930
3949
|
class: l(a.model.cssClasses.root),
|
|
3931
3950
|
ref_key: "listContainerElement",
|
|
@@ -3951,11 +3970,11 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
3951
3970
|
value: a.model.filterString,
|
|
3952
3971
|
onChange: e,
|
|
3953
3972
|
onKeyup: n
|
|
3954
|
-
}, null, 42,
|
|
3973
|
+
}, null, 42, Ct),
|
|
3955
3974
|
a.model.showSearchClearButton && !!a.model.filterString ? (i(), u("button", {
|
|
3956
3975
|
key: 0,
|
|
3957
|
-
onClick: y[0] || (y[0] = (
|
|
3958
|
-
a.model.onClickSearchClearButton(
|
|
3976
|
+
onClick: y[0] || (y[0] = (v) => {
|
|
3977
|
+
a.model.onClickSearchClearButton(v);
|
|
3959
3978
|
}),
|
|
3960
3979
|
class: l(a.model.cssClasses.searchClearButtonIcon)
|
|
3961
3980
|
}, [
|
|
@@ -3971,7 +3990,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
3971
3990
|
c("div", {
|
|
3972
3991
|
class: l(a.model.cssClasses.emptyText),
|
|
3973
3992
|
"aria-label": a.model.emptyMessage
|
|
3974
|
-
},
|
|
3993
|
+
}, T(a.model.emptyMessage), 11, bt)
|
|
3975
3994
|
], 2), [
|
|
3976
3995
|
[M, a.model.isEmpty]
|
|
3977
3996
|
]),
|
|
@@ -3980,26 +3999,26 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
3980
3999
|
class: l(a.model.getListClass()),
|
|
3981
4000
|
role: "listbox",
|
|
3982
4001
|
id: a.model.elementId,
|
|
3983
|
-
onMousedown: y[1] || (y[1] = (
|
|
3984
|
-
|
|
4002
|
+
onMousedown: y[1] || (y[1] = (v) => {
|
|
4003
|
+
v.preventDefault();
|
|
3985
4004
|
}),
|
|
3986
4005
|
onMousemove: t,
|
|
3987
|
-
onKeydown: y[2] || (y[2] = (
|
|
3988
|
-
a.model.onKeyDown(
|
|
4006
|
+
onKeydown: y[2] || (y[2] = (v) => {
|
|
4007
|
+
a.model.onKeyDown(v);
|
|
3989
4008
|
})
|
|
3990
4009
|
}, [
|
|
3991
|
-
(i(!0), u($, null, B(a.model.renderedActions, (
|
|
3992
|
-
item:
|
|
4010
|
+
(i(!0), u($, null, B(a.model.renderedActions, (v) => (i(), g(q, {
|
|
4011
|
+
item: v,
|
|
3993
4012
|
model: a.model,
|
|
3994
|
-
key:
|
|
4013
|
+
key: v.id
|
|
3995
4014
|
}, null, 8, ["item", "model"]))), 128))
|
|
3996
|
-
], 42,
|
|
4015
|
+
], 42, kt)), [
|
|
3997
4016
|
[M, !a.model.isEmpty]
|
|
3998
4017
|
]) : d("", !0)
|
|
3999
4018
|
], 2);
|
|
4000
4019
|
};
|
|
4001
4020
|
}
|
|
4002
|
-
}),
|
|
4021
|
+
}), It = ["aria-selected", "id"], wt = ["title"], St = /* @__PURE__ */ h({
|
|
4003
4022
|
__name: "ListItem",
|
|
4004
4023
|
props: {
|
|
4005
4024
|
model: {},
|
|
@@ -4021,7 +4040,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4021
4040
|
"aria-selected": n.model.isItemSelected(n.item),
|
|
4022
4041
|
key: n.item.id,
|
|
4023
4042
|
id: o.value,
|
|
4024
|
-
onPointerdown: t[0] || (t[0] = (
|
|
4043
|
+
onPointerdown: t[0] || (t[0] = (q) => n.model.onPointerDown(q, n.item)),
|
|
4025
4044
|
class: l(n.model.getItemClass(n.item)),
|
|
4026
4045
|
onClick: e
|
|
4027
4046
|
}, [
|
|
@@ -4034,28 +4053,28 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4034
4053
|
class: l(n.model.cssClasses.itemBody),
|
|
4035
4054
|
title: n.item.locTitle.calculatedText
|
|
4036
4055
|
}, [
|
|
4037
|
-
n.item.iconName && !n.item.component ? (i(),
|
|
4056
|
+
n.item.iconName && !n.item.component ? (i(), g(a, {
|
|
4038
4057
|
key: 0,
|
|
4039
4058
|
class: l(n.model.cssClasses.itemIcon),
|
|
4040
4059
|
iconName: n.item.iconName,
|
|
4041
4060
|
size: n.item.iconSize
|
|
4042
4061
|
}, null, 8, ["class", "iconName", "size"])) : d("", !0),
|
|
4043
|
-
n.item.component ? d("", !0) : (i(),
|
|
4062
|
+
n.item.component ? d("", !0) : (i(), g(y, {
|
|
4044
4063
|
key: 1,
|
|
4045
4064
|
locString: n.item.locTitle
|
|
4046
4065
|
}, null, 8, ["locString"])),
|
|
4047
|
-
n.item.component ? (i(),
|
|
4066
|
+
n.item.component ? (i(), g(R(n.item.component), {
|
|
4048
4067
|
key: 2,
|
|
4049
4068
|
item: n.item
|
|
4050
4069
|
}, null, 8, ["item"])) : d("", !0)
|
|
4051
|
-
], 14,
|
|
4052
|
-
], 42,
|
|
4070
|
+
], 14, wt)
|
|
4071
|
+
], 42, It)), [
|
|
4053
4072
|
[M, n.model.isItemVisible(n.item)],
|
|
4054
4073
|
[m]
|
|
4055
4074
|
]);
|
|
4056
4075
|
};
|
|
4057
4076
|
}
|
|
4058
|
-
}),
|
|
4077
|
+
}), Rt = /* @__PURE__ */ h({
|
|
4059
4078
|
__name: "Popup",
|
|
4060
4079
|
props: {
|
|
4061
4080
|
getTarget: { type: Function },
|
|
@@ -4089,13 +4108,13 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4089
4108
|
], 512);
|
|
4090
4109
|
};
|
|
4091
4110
|
}
|
|
4092
|
-
}),
|
|
4111
|
+
}), Tt = { class: "sv-popup__shadow" }, $t = { class: "sv-popup__body-content" }, _t = {
|
|
4093
4112
|
key: 0,
|
|
4094
4113
|
class: "sv-popup__body-header"
|
|
4095
|
-
},
|
|
4114
|
+
}, Dt = { class: "sv-popup__scrolling-content" }, Bt = { class: "sv-popup__content" }, Lt = {
|
|
4096
4115
|
key: 1,
|
|
4097
4116
|
class: "sv-popup__body-footer"
|
|
4098
|
-
},
|
|
4117
|
+
}, Nt = /* @__PURE__ */ h({
|
|
4099
4118
|
__name: "PopupContainer",
|
|
4100
4119
|
props: {
|
|
4101
4120
|
model: {}
|
|
@@ -4106,7 +4125,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4106
4125
|
const e = (n) => {
|
|
4107
4126
|
n.stopPropagation();
|
|
4108
4127
|
};
|
|
4109
|
-
return L(() => s.model),
|
|
4128
|
+
return L(() => s.model), te(() => {
|
|
4110
4129
|
const n = s.model;
|
|
4111
4130
|
!o && n.isVisible && s.model.updateOnShowing(), o = n.isVisible;
|
|
4112
4131
|
}), H(() => {
|
|
@@ -4134,19 +4153,19 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4134
4153
|
}),
|
|
4135
4154
|
onClick: e
|
|
4136
4155
|
}, [
|
|
4137
|
-
c("div",
|
|
4138
|
-
n.model.showHeader ? (i(),
|
|
4156
|
+
c("div", Tt, [
|
|
4157
|
+
n.model.showHeader ? (i(), g(R(n.model.popupHeaderTemplate), {
|
|
4139
4158
|
key: 0,
|
|
4140
4159
|
model: n.model
|
|
4141
4160
|
}, null, 8, ["model"])) : d("", !0),
|
|
4142
|
-
c("div",
|
|
4143
|
-
n.model.title ? (i(), u("div",
|
|
4144
|
-
c("div",
|
|
4145
|
-
c("div",
|
|
4146
|
-
(i(),
|
|
4161
|
+
c("div", $t, [
|
|
4162
|
+
n.model.title ? (i(), u("div", _t, T(n.model.title), 1)) : d("", !0),
|
|
4163
|
+
c("div", Dt, [
|
|
4164
|
+
c("div", Bt, [
|
|
4165
|
+
(i(), g(R(n.model.contentComponentName), O(ne(n.model.contentComponentData)), null, 16))
|
|
4147
4166
|
])
|
|
4148
4167
|
]),
|
|
4149
|
-
n.model.showFooter ? (i(), u("div",
|
|
4168
|
+
n.model.showFooter ? (i(), u("div", Lt, [
|
|
4150
4169
|
C(a, {
|
|
4151
4170
|
model: n.model.footerToolbar
|
|
4152
4171
|
}, null, 8, ["model"])
|
|
@@ -4159,7 +4178,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4159
4178
|
]);
|
|
4160
4179
|
};
|
|
4161
4180
|
}
|
|
4162
|
-
}),
|
|
4181
|
+
}), Pt = /* @__PURE__ */ h({
|
|
4163
4182
|
__name: "PopupPointer",
|
|
4164
4183
|
props: {
|
|
4165
4184
|
model: {}
|
|
@@ -4173,10 +4192,10 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4173
4192
|
})
|
|
4174
4193
|
}, null, 4));
|
|
4175
4194
|
}
|
|
4176
|
-
}),
|
|
4195
|
+
}), At = {
|
|
4177
4196
|
key: 0,
|
|
4178
4197
|
class: "sv-components-column"
|
|
4179
|
-
},
|
|
4198
|
+
}, Mt = /* @__PURE__ */ h({
|
|
4180
4199
|
__name: "Container",
|
|
4181
4200
|
props: {
|
|
4182
4201
|
survey: {},
|
|
@@ -4188,13 +4207,13 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4188
4207
|
() => s.survey.getContainerContent(s.container)
|
|
4189
4208
|
);
|
|
4190
4209
|
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(),
|
|
4210
|
+
e.needRenderWrapper ? (i(), u("div", At, [
|
|
4211
|
+
(i(!0), u($, null, B(o.value, (t, a) => (i(), g(R(t.component), {
|
|
4193
4212
|
survey: e.survey,
|
|
4194
4213
|
container: e.container,
|
|
4195
4214
|
model: t.data
|
|
4196
4215
|
}, null, 8, ["survey", "container", "model"]))), 256))
|
|
4197
|
-
])) : (i(!0), u($, { key: 1 }, B(o.value, (t, a) => (i(),
|
|
4216
|
+
])) : (i(!0), u($, { key: 1 }, B(o.value, (t, a) => (i(), g(R(t.component), {
|
|
4198
4217
|
survey: e.survey,
|
|
4199
4218
|
model: t.data
|
|
4200
4219
|
}, null, 8, ["survey", "model"]))), 256))
|
|
@@ -4222,14 +4241,14 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4222
4241
|
}, [
|
|
4223
4242
|
c("span", {
|
|
4224
4243
|
class: l(e(t.survey.css))
|
|
4225
|
-
},
|
|
4244
|
+
}, T(t.survey.progressText), 3)
|
|
4226
4245
|
], 6),
|
|
4227
4246
|
c("span", {
|
|
4228
4247
|
class: l(n(t.survey.css))
|
|
4229
|
-
},
|
|
4248
|
+
}, T(t.survey.progressText), 3)
|
|
4230
4249
|
], 2));
|
|
4231
4250
|
}
|
|
4232
|
-
}),
|
|
4251
|
+
}), Ht = ["onClick"], Wt = ["title"], Et = ["title"], Vt = /* @__PURE__ */ h({
|
|
4233
4252
|
__name: "ProgressButtons",
|
|
4234
4253
|
props: {
|
|
4235
4254
|
survey: {}
|
|
@@ -4237,9 +4256,9 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4237
4256
|
setup(r) {
|
|
4238
4257
|
const s = r, o = new He(s.survey), e = _(!1), n = _(), t = w(() => s.survey.css);
|
|
4239
4258
|
let a;
|
|
4240
|
-
const y = (b) => o.isListElementClickable(b), m = (b) => o.getListElementCss(b),
|
|
4259
|
+
const y = (b) => o.isListElementClickable(b), m = (b) => o.getListElementCss(b), q = (b) => {
|
|
4241
4260
|
o.clickListElement(b);
|
|
4242
|
-
},
|
|
4261
|
+
}, v = (b, N) => o.getScrollButtonCss(b, N), I = (b) => {
|
|
4243
4262
|
let N = n.value;
|
|
4244
4263
|
N.scrollLeft += (b ? -1 : 1) * 70;
|
|
4245
4264
|
};
|
|
@@ -4257,7 +4276,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4257
4276
|
class: l(t.value.progressButtonsContainer)
|
|
4258
4277
|
}, [
|
|
4259
4278
|
c("div", {
|
|
4260
|
-
class: l(
|
|
4279
|
+
class: l(v(e.value, !0)),
|
|
4261
4280
|
onClick: N[0] || (N[0] = (k) => I(!0)),
|
|
4262
4281
|
role: "button"
|
|
4263
4282
|
}, null, 2),
|
|
@@ -4272,21 +4291,21 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4272
4291
|
(i(!0), u($, null, B(b.survey.visiblePages, (k, D) => (i(), u("li", {
|
|
4273
4292
|
key: "listelement" + D,
|
|
4274
4293
|
class: l(m(D)),
|
|
4275
|
-
onClick: (E) => y(D) ?
|
|
4294
|
+
onClick: (E) => y(D) ? q(D) : null
|
|
4276
4295
|
}, [
|
|
4277
4296
|
c("div", {
|
|
4278
4297
|
class: l(t.value.progressButtonsPageTitle),
|
|
4279
4298
|
title: k.renderedNavigationTitle
|
|
4280
|
-
},
|
|
4299
|
+
}, T(k.renderedNavigationTitle), 11, Wt),
|
|
4281
4300
|
c("div", {
|
|
4282
4301
|
class: l(t.value.progressButtonsPageDescription),
|
|
4283
4302
|
title: k.locNavigationDescription.renderedHtml
|
|
4284
|
-
},
|
|
4285
|
-
], 10,
|
|
4303
|
+
}, T(k.locNavigationDescription.renderedHtml), 11, Et)
|
|
4304
|
+
], 10, Ht))), 128))
|
|
4286
4305
|
], 2)
|
|
4287
4306
|
], 2),
|
|
4288
4307
|
c("div", {
|
|
4289
|
-
class: l(
|
|
4308
|
+
class: l(v(e.value, !1)),
|
|
4290
4309
|
onClick: N[1] || (N[1] = (k) => I(!1)),
|
|
4291
4310
|
role: "button"
|
|
4292
4311
|
}, null, 2)
|
|
@@ -4296,39 +4315,39 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4296
4315
|
}), Ft = /* @__PURE__ */ h({
|
|
4297
4316
|
__name: "ProgressToc",
|
|
4298
4317
|
props: {
|
|
4299
|
-
survey: {}
|
|
4318
|
+
survey: {},
|
|
4319
|
+
model: {}
|
|
4300
4320
|
},
|
|
4301
4321
|
setup(r) {
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
const t = p("sv-svg-icon"), a = p("sv-popup"), y = p("sv-list"), m = X("key2click");
|
|
4322
|
+
return (s, o) => {
|
|
4323
|
+
const e = p("sv-svg-icon"), n = p("sv-popup"), t = p("sv-list"), a = X("key2click");
|
|
4305
4324
|
return i(), u("div", {
|
|
4306
|
-
class: l(
|
|
4325
|
+
class: l(s.model.containerCss)
|
|
4307
4326
|
}, [
|
|
4308
|
-
|
|
4327
|
+
s.model.isMobile ? P((i(), u("div", {
|
|
4309
4328
|
key: 0,
|
|
4310
|
-
onClick:
|
|
4329
|
+
onClick: o[0] || (o[0] = (...y) => s.model.togglePopup && s.model.togglePopup(...y))
|
|
4311
4330
|
}, [
|
|
4312
|
-
C(
|
|
4313
|
-
iconName:
|
|
4331
|
+
C(e, {
|
|
4332
|
+
iconName: s.model.icon,
|
|
4314
4333
|
size: 24
|
|
4315
4334
|
}, null, 8, ["iconName"]),
|
|
4316
|
-
C(
|
|
4317
|
-
model:
|
|
4335
|
+
C(n, {
|
|
4336
|
+
model: s.model.popupModel
|
|
4318
4337
|
}, null, 8, ["model"])
|
|
4319
4338
|
])), [
|
|
4320
|
-
[
|
|
4321
|
-
]) : (i(),
|
|
4339
|
+
[a]
|
|
4340
|
+
]) : (i(), g(t, {
|
|
4322
4341
|
key: 1,
|
|
4323
|
-
model:
|
|
4342
|
+
model: s.model.listModel
|
|
4324
4343
|
}, null, 8, ["model"]))
|
|
4325
4344
|
], 2);
|
|
4326
4345
|
};
|
|
4327
4346
|
}
|
|
4328
|
-
}),
|
|
4347
|
+
}), Ot = { onsubmit: "return false;" }, zt = {
|
|
4329
4348
|
key: 0,
|
|
4330
4349
|
class: "sv_custom_header"
|
|
4331
|
-
},
|
|
4350
|
+
}, Ut = { class: "sv-components-column sv-components-column--expandable" }, Kt = ["id"], jt = { key: 2 }, Qt = ["innerHTML"], Gt = ["innerHTML"], Jt = ["innerHTML"], ve = /* @__PURE__ */ h({
|
|
4332
4351
|
__name: "Survey",
|
|
4333
4352
|
props: {
|
|
4334
4353
|
model: {},
|
|
@@ -4343,7 +4362,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4343
4362
|
return !!t.value && b + n.value.toString();
|
|
4344
4363
|
}, m = w(
|
|
4345
4364
|
() => t.value.showCompletedPage && t.value.state === "completed"
|
|
4346
|
-
),
|
|
4365
|
+
), q = w(() => t.value.css), v = w(() => "page" + y()), I = () => m.value ? (e.value || (e.value = t.value.processedCompletedHtml), e.value) : "";
|
|
4347
4366
|
return L(() => t.value), H(() => {
|
|
4348
4367
|
if (!!t.value) {
|
|
4349
4368
|
var b = o.value;
|
|
@@ -4362,26 +4381,26 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4362
4381
|
ref_key: "root",
|
|
4363
4382
|
ref: o
|
|
4364
4383
|
}, [
|
|
4365
|
-
t.value.needRenderIcons ? (i(),
|
|
4384
|
+
t.value.needRenderIcons ? (i(), g(k, { key: 0 })) : d("", !0),
|
|
4366
4385
|
c("div", {
|
|
4367
4386
|
class: l(t.value.wrapperFormCss)
|
|
4368
4387
|
}, [
|
|
4369
4388
|
C(D),
|
|
4370
4389
|
t.value.renderBackgroundImage ? (i(), u("div", {
|
|
4371
4390
|
key: 0,
|
|
4372
|
-
class: l(
|
|
4391
|
+
class: l(q.value.rootBackgroundImage),
|
|
4373
4392
|
style: S(t.value.backgroundImageStyle)
|
|
4374
4393
|
}, null, 6)) : d("", !0),
|
|
4375
|
-
c("form",
|
|
4376
|
-
t.value.hasLogo ? d("", !0) : (i(), u("div",
|
|
4394
|
+
c("form", Ot, [
|
|
4395
|
+
t.value.hasLogo ? d("", !0) : (i(), u("div", zt)),
|
|
4377
4396
|
c("div", {
|
|
4378
|
-
class: l(
|
|
4397
|
+
class: l(q.value.container)
|
|
4379
4398
|
}, [
|
|
4380
|
-
t.value.headerView === "basic" ? (i(),
|
|
4399
|
+
t.value.headerView === "basic" ? (i(), g(E, {
|
|
4381
4400
|
key: 0,
|
|
4382
4401
|
survey: t.value
|
|
4383
4402
|
}, null, 8, ["survey"])) : d("", !0),
|
|
4384
|
-
(i(),
|
|
4403
|
+
(i(), g(R("sv-components-container"), {
|
|
4385
4404
|
survey: t.value,
|
|
4386
4405
|
container: "header",
|
|
4387
4406
|
needRenderWrapper: !1
|
|
@@ -4390,13 +4409,13 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4390
4409
|
key: 1,
|
|
4391
4410
|
class: l(t.value.bodyContainerCss)
|
|
4392
4411
|
}, [
|
|
4393
|
-
(i(),
|
|
4412
|
+
(i(), g(R("sv-components-container"), {
|
|
4394
4413
|
survey: t.value,
|
|
4395
4414
|
container: "left",
|
|
4396
4415
|
needRenderWrapper: !0
|
|
4397
4416
|
}, null, 8, ["survey"])),
|
|
4398
|
-
c("div",
|
|
4399
|
-
(i(),
|
|
4417
|
+
c("div", Ut, [
|
|
4418
|
+
(i(), g(R("sv-components-container"), {
|
|
4400
4419
|
survey: t.value,
|
|
4401
4420
|
container: "center",
|
|
4402
4421
|
needRenderWrapper: !0
|
|
@@ -4406,41 +4425,41 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4406
4425
|
style: S({ maxWidth: t.value.renderedWidth }),
|
|
4407
4426
|
id: a.value
|
|
4408
4427
|
}, [
|
|
4409
|
-
(i(),
|
|
4428
|
+
(i(), g(R("sv-components-container"), {
|
|
4410
4429
|
survey: t.value,
|
|
4411
4430
|
container: "contentTop",
|
|
4412
4431
|
needRenderWrapper: !0
|
|
4413
4432
|
}, null, 8, ["survey"])),
|
|
4414
|
-
(i(),
|
|
4415
|
-
key:
|
|
4433
|
+
(i(), g(V, {
|
|
4434
|
+
key: v.value,
|
|
4416
4435
|
survey: t.value,
|
|
4417
4436
|
page: t.value.activePage,
|
|
4418
|
-
css:
|
|
4437
|
+
css: q.value
|
|
4419
4438
|
}, null, 8, ["survey", "page", "css"])),
|
|
4420
|
-
(i(),
|
|
4439
|
+
(i(), g(R("sv-components-container"), {
|
|
4421
4440
|
survey: t.value,
|
|
4422
4441
|
container: "contentBottom",
|
|
4423
4442
|
needRenderWrapper: !0
|
|
4424
4443
|
}, null, 8, ["survey"]))
|
|
4425
|
-
], 14,
|
|
4444
|
+
], 14, Kt)
|
|
4426
4445
|
]),
|
|
4427
|
-
(i(),
|
|
4446
|
+
(i(), g(R("sv-components-container"), {
|
|
4428
4447
|
survey: t.value,
|
|
4429
4448
|
container: "right",
|
|
4430
4449
|
needRenderWrapper: !0
|
|
4431
4450
|
}, null, 8, ["survey"]))
|
|
4432
4451
|
], 2)) : d("", !0),
|
|
4433
|
-
(i(),
|
|
4452
|
+
(i(), g(R("sv-components-container"), {
|
|
4434
4453
|
survey: t.value,
|
|
4435
4454
|
container: "footer",
|
|
4436
4455
|
needRenderWrapper: !1
|
|
4437
4456
|
}, null, 8, ["survey"])),
|
|
4438
|
-
m.value ? (i(), u("div",
|
|
4457
|
+
m.value ? (i(), u("div", jt, [
|
|
4439
4458
|
c("div", {
|
|
4440
4459
|
innerHTML: I(),
|
|
4441
4460
|
class: l(t.value.completedCss)
|
|
4442
|
-
}, null, 10,
|
|
4443
|
-
(i(),
|
|
4461
|
+
}, null, 10, Qt),
|
|
4462
|
+
(i(), g(R("sv-components-container"), {
|
|
4444
4463
|
survey: t.value,
|
|
4445
4464
|
container: "completePage",
|
|
4446
4465
|
needRenderWrapper: !0
|
|
@@ -4450,19 +4469,19 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4450
4469
|
key: 3,
|
|
4451
4470
|
class: l(t.value.completedBeforeCss),
|
|
4452
4471
|
innerHTML: t.value.processedCompletedBeforeHtml
|
|
4453
|
-
}, null, 10,
|
|
4472
|
+
}, null, 10, Gt)) : d("", !0),
|
|
4454
4473
|
t.value.state === "loading" ? (i(), u("div", {
|
|
4455
4474
|
key: 4,
|
|
4456
4475
|
class: l(t.value.loadingBodyCss),
|
|
4457
4476
|
innerHTML: t.value.processedLoadingHtml
|
|
4458
|
-
}, null, 10,
|
|
4477
|
+
}, null, 10, Jt)) : d("", !0),
|
|
4459
4478
|
t.value.state === "empty" ? (i(), u("div", {
|
|
4460
4479
|
key: 5,
|
|
4461
|
-
class: l(
|
|
4462
|
-
},
|
|
4480
|
+
class: l(q.value.bodyEmpty)
|
|
4481
|
+
}, T(t.value.emptySurveyText), 3)) : d("", !0)
|
|
4463
4482
|
], 2)
|
|
4464
4483
|
]),
|
|
4465
|
-
t.value.showBrandInfo ? (i(),
|
|
4484
|
+
t.value.showBrandInfo ? (i(), g(K, { key: 1 })) : d("", !0),
|
|
4466
4485
|
C(ue, {
|
|
4467
4486
|
model: t.value.notifier
|
|
4468
4487
|
}, null, 8, ["model"])
|
|
@@ -4470,7 +4489,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4470
4489
|
], 6);
|
|
4471
4490
|
};
|
|
4472
4491
|
}
|
|
4473
|
-
}),
|
|
4492
|
+
}), Xt = /* @__PURE__ */ h({
|
|
4474
4493
|
__name: "Notifier",
|
|
4475
4494
|
props: {
|
|
4476
4495
|
model: {}
|
|
@@ -4485,7 +4504,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4485
4504
|
role: "alert",
|
|
4486
4505
|
"aria-live": "polite"
|
|
4487
4506
|
}, [
|
|
4488
|
-
c("span", null,
|
|
4507
|
+
c("span", null, T(o.model.message), 1),
|
|
4489
4508
|
C(n, {
|
|
4490
4509
|
model: o.model.actionBar
|
|
4491
4510
|
}, null, 8, ["model"])
|
|
@@ -4494,7 +4513,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4494
4513
|
]);
|
|
4495
4514
|
};
|
|
4496
4515
|
}
|
|
4497
|
-
}),
|
|
4516
|
+
}), Yt = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], Zt = { key: 1 }, xt = /* @__PURE__ */ h({
|
|
4498
4517
|
__name: "QuestionOther",
|
|
4499
4518
|
props: {
|
|
4500
4519
|
question: {},
|
|
@@ -4522,11 +4541,11 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4522
4541
|
onInput: o[1] || (o[1] = (e) => {
|
|
4523
4542
|
s.question.onOtherValueInput(e);
|
|
4524
4543
|
})
|
|
4525
|
-
}, null, 46,
|
|
4526
|
-
s.question.isReadOnlyRenderDiv() ? (i(), u("div",
|
|
4544
|
+
}, null, 46, Yt)),
|
|
4545
|
+
s.question.isReadOnlyRenderDiv() ? (i(), u("div", Zt, T(s.question.otherValue), 1)) : d("", !0)
|
|
4527
4546
|
], 2));
|
|
4528
4547
|
}
|
|
4529
|
-
}),
|
|
4548
|
+
}), ei = ["disabled", "value", "title"], si = /* @__PURE__ */ h({
|
|
4530
4549
|
__name: "SurveyNavigationButton",
|
|
4531
4550
|
props: {
|
|
4532
4551
|
item: {}
|
|
@@ -4542,106 +4561,106 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4542
4561
|
title: e.item.getTooltip(),
|
|
4543
4562
|
onMousedown: o,
|
|
4544
4563
|
onClick: n[0] || (n[0] = (...t) => e.item.action && e.item.action(...t))
|
|
4545
|
-
}, null, 42,
|
|
4564
|
+
}, null, 42, ei)) : d("", !0);
|
|
4546
4565
|
}
|
|
4547
4566
|
}), ye = /* @__PURE__ */ h({
|
|
4548
4567
|
__name: "PopupSurvey",
|
|
4549
4568
|
props: {
|
|
4550
4569
|
survey: {},
|
|
4551
4570
|
isExpanded: { type: Boolean },
|
|
4571
|
+
allowClose: { type: Boolean },
|
|
4552
4572
|
closeOnCompleteTimeout: {}
|
|
4553
4573
|
},
|
|
4554
4574
|
setup(r) {
|
|
4555
|
-
const s = r, o = z(), e = w(() => s.survey ? s.survey.getCss() : {})
|
|
4556
|
-
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4575
|
+
const s = r, o = z(), e = w(() => s.survey ? s.survey.getCss() : {});
|
|
4576
|
+
w(() => {
|
|
4577
|
+
var v;
|
|
4578
|
+
return (v = o.value) != null && v.isExpanded ? e.value.window.header.buttonCollapsed : e.value.window.header.buttonExpanded;
|
|
4579
|
+
}), w(() => {
|
|
4580
|
+
var v;
|
|
4581
|
+
return (v = o.value) == null ? void 0 : v.isExpanded;
|
|
4582
|
+
});
|
|
4583
|
+
const n = () => {
|
|
4562
4584
|
o.value.changeExpandCollapse();
|
|
4563
|
-
},
|
|
4585
|
+
}, t = () => {
|
|
4564
4586
|
o.value.hide();
|
|
4565
|
-
},
|
|
4587
|
+
}, a = () => "SurveyComponent", y = () => {
|
|
4566
4588
|
o.value.onScroll();
|
|
4589
|
+
}, m = () => {
|
|
4590
|
+
let v = o.value.cssHeaderRoot;
|
|
4591
|
+
return o.value.isCollapsed && (v += " " + o.value.cssRootCollapsedMod), v;
|
|
4567
4592
|
};
|
|
4568
4593
|
L(() => o.value);
|
|
4569
|
-
const
|
|
4594
|
+
const q = J(
|
|
4570
4595
|
() => s.survey,
|
|
4571
|
-
(
|
|
4572
|
-
const
|
|
4573
|
-
s.isExpanded !== void 0 && (
|
|
4596
|
+
(v) => {
|
|
4597
|
+
const I = new We(null, v);
|
|
4598
|
+
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
4599
|
},
|
|
4575
4600
|
{
|
|
4576
4601
|
immediate: !0
|
|
4577
4602
|
}
|
|
4578
4603
|
);
|
|
4579
4604
|
return U(() => {
|
|
4580
|
-
|
|
4581
|
-
}), (
|
|
4582
|
-
const
|
|
4605
|
+
q();
|
|
4606
|
+
}), (v, I) => {
|
|
4607
|
+
const b = p("sv-svg-icon");
|
|
4583
4608
|
return o.value.isShowing ? (i(), u("div", {
|
|
4584
4609
|
key: 0,
|
|
4585
|
-
style: S(
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
}]),
|
|
4589
|
-
class: l(o.value.cssRoot)
|
|
4610
|
+
style: S({ maxWidth: o.value.renderedWidth, width: o.value.renderedWidth }),
|
|
4611
|
+
class: l(o.value.cssRoot),
|
|
4612
|
+
onScroll: y
|
|
4590
4613
|
}, [
|
|
4591
4614
|
c("div", {
|
|
4592
|
-
class: l(o.value.
|
|
4615
|
+
class: l(o.value.cssRootContent)
|
|
4593
4616
|
}, [
|
|
4594
|
-
c("
|
|
4595
|
-
|
|
4596
|
-
style: { width: "100%", cursor: "pointer", "user-select": "none" }
|
|
4617
|
+
c("div", {
|
|
4618
|
+
class: l(m())
|
|
4597
4619
|
}, [
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
class: l(o.value.
|
|
4620
|
+
o.value.isCollapsed && !!o.value.locTitle ? (i(), u("div", {
|
|
4621
|
+
key: 0,
|
|
4622
|
+
class: l(o.value.cssHeaderTitleCollapsed)
|
|
4623
|
+
}, T(o.value.locTitle.renderedHtml), 3)) : d("", !0),
|
|
4624
|
+
c("div", {
|
|
4625
|
+
class: l(o.value.cssHeaderButtonsContainer)
|
|
4601
4626
|
}, [
|
|
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
|
-
|
|
4627
|
+
c("div", {
|
|
4628
|
+
class: l(o.value.cssHeaderCollapseButton),
|
|
4629
|
+
onClick: n
|
|
4630
|
+
}, [
|
|
4631
|
+
o.value.isExpanded ? (i(), g(b, {
|
|
4632
|
+
key: 0,
|
|
4633
|
+
iconName: "icon-minimize_16x16",
|
|
4634
|
+
size: 16
|
|
4635
|
+
})) : d("", !0),
|
|
4636
|
+
o.value.isCollapsed ? (i(), g(b, {
|
|
4637
|
+
key: 1,
|
|
4638
|
+
iconName: "icon-restore_16x16",
|
|
4639
|
+
size: 16
|
|
4640
|
+
})) : d("", !0)
|
|
4641
|
+
], 2),
|
|
4642
|
+
o.value.allowClose ? (i(), u("div", {
|
|
4643
|
+
key: 0,
|
|
4644
|
+
class: l(o.value.cssHeaderCloseButton),
|
|
4645
|
+
onClick: t
|
|
4646
|
+
}, [
|
|
4647
|
+
C(b, {
|
|
4648
|
+
iconName: "icon-close_16x16",
|
|
4649
|
+
size: 16
|
|
4650
|
+
})
|
|
4651
|
+
], 2)) : d("", !0)
|
|
4652
|
+
], 2)
|
|
4653
|
+
], 2),
|
|
4654
|
+
c("div", {
|
|
4655
|
+
class: l(o.value.cssBody)
|
|
4627
4656
|
}, [
|
|
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);
|
|
4657
|
+
(i(), g(R(a()), { survey: v.survey }, null, 8, ["survey"]))
|
|
4658
|
+
], 2)
|
|
4659
|
+
], 2)
|
|
4660
|
+
], 38)) : d("", !0);
|
|
4642
4661
|
};
|
|
4643
4662
|
}
|
|
4644
|
-
}),
|
|
4663
|
+
}), ni = ["innerHTML"], oi = /* @__PURE__ */ h({
|
|
4645
4664
|
__name: "CustomWidget",
|
|
4646
4665
|
props: {
|
|
4647
4666
|
question: {},
|
|
@@ -4664,20 +4683,20 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4664
4683
|
n.value ? (i(), u("div", {
|
|
4665
4684
|
key: 0,
|
|
4666
4685
|
innerHTML: t.value
|
|
4667
|
-
}, null, 8,
|
|
4668
|
-
e.value ? (i(),
|
|
4686
|
+
}, null, 8, ni)) : d("", !0),
|
|
4687
|
+
e.value ? (i(), g(R(a.value), {
|
|
4669
4688
|
key: 1,
|
|
4670
4689
|
question: y.question,
|
|
4671
4690
|
css: y.css
|
|
4672
4691
|
}, null, 8, ["question", "css"])) : d("", !0)
|
|
4673
4692
|
], 512));
|
|
4674
4693
|
}
|
|
4675
|
-
}),
|
|
4694
|
+
}), ti = /* @__PURE__ */ h({
|
|
4676
4695
|
__name: "PopupModal",
|
|
4677
4696
|
setup(r) {
|
|
4678
4697
|
const s = z();
|
|
4679
|
-
function o(n, t, a, y, m,
|
|
4680
|
-
const I =
|
|
4698
|
+
function o(n, t, a, y, m, q, v = "popup") {
|
|
4699
|
+
const I = Ee(
|
|
4681
4700
|
n,
|
|
4682
4701
|
t,
|
|
4683
4702
|
a,
|
|
@@ -4685,8 +4704,8 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4685
4704
|
void 0,
|
|
4686
4705
|
void 0,
|
|
4687
4706
|
m,
|
|
4688
|
-
|
|
4689
|
-
|
|
4707
|
+
q,
|
|
4708
|
+
v
|
|
4690
4709
|
);
|
|
4691
4710
|
return e(I);
|
|
4692
4711
|
}
|
|
@@ -4694,7 +4713,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4694
4713
|
n.onHide = () => {
|
|
4695
4714
|
s.value = void 0, a.dispose();
|
|
4696
4715
|
};
|
|
4697
|
-
const a =
|
|
4716
|
+
const a = Ve(
|
|
4698
4717
|
n,
|
|
4699
4718
|
t
|
|
4700
4719
|
);
|
|
@@ -4706,7 +4725,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4706
4725
|
j.showDialog = void 0;
|
|
4707
4726
|
})), (n, t) => {
|
|
4708
4727
|
const a = p("sv-popup-container");
|
|
4709
|
-
return s.value ? (i(),
|
|
4728
|
+
return s.value ? (i(), g(Te, {
|
|
4710
4729
|
key: 0,
|
|
4711
4730
|
to: s.value.container
|
|
4712
4731
|
}, [
|
|
@@ -4714,7 +4733,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4714
4733
|
], 8, ["to"])) : d("", !0);
|
|
4715
4734
|
};
|
|
4716
4735
|
}
|
|
4717
|
-
}),
|
|
4736
|
+
}), ii = /* @__PURE__ */ h({
|
|
4718
4737
|
__name: "CharacterCounter",
|
|
4719
4738
|
props: {
|
|
4720
4739
|
counter: {},
|
|
@@ -4724,9 +4743,9 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4724
4743
|
const s = r;
|
|
4725
4744
|
return L(() => s.counter), (o, e) => (i(), u("div", {
|
|
4726
4745
|
class: l(o.remainingCharacterCounter)
|
|
4727
|
-
},
|
|
4746
|
+
}, T(o.counter.remainingCharacterCounter), 3));
|
|
4728
4747
|
}
|
|
4729
|
-
}),
|
|
4748
|
+
}), ri = /* @__PURE__ */ h({
|
|
4730
4749
|
inheritAttrs: !1,
|
|
4731
4750
|
__name: "Composite",
|
|
4732
4751
|
props: {
|
|
@@ -4739,7 +4758,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4739
4758
|
const e = w(() => s.question.contentPanel);
|
|
4740
4759
|
return (n, t) => {
|
|
4741
4760
|
const a = p("survey-panel");
|
|
4742
|
-
return i(),
|
|
4761
|
+
return i(), g(a, {
|
|
4743
4762
|
ref_key: "root",
|
|
4744
4763
|
ref: o,
|
|
4745
4764
|
element: e.value,
|
|
@@ -4747,7 +4766,7 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4747
4766
|
}, null, 8, ["element", "css"]);
|
|
4748
4767
|
};
|
|
4749
4768
|
}
|
|
4750
|
-
}),
|
|
4769
|
+
}), li = /* @__PURE__ */ h({
|
|
4751
4770
|
inheritAttrs: !1,
|
|
4752
4771
|
__name: "Custom",
|
|
4753
4772
|
props: {
|
|
@@ -4758,15 +4777,15 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4758
4777
|
const s = r, o = _(null);
|
|
4759
4778
|
A(s, o);
|
|
4760
4779
|
const e = w(() => s.question.contentQuestion), n = (t) => re(t);
|
|
4761
|
-
return (t, a) => (i(),
|
|
4780
|
+
return (t, a) => (i(), g(R(n(e.value)), {
|
|
4762
4781
|
ref: o.value,
|
|
4763
4782
|
question: e.value,
|
|
4764
4783
|
css: t.css
|
|
4765
4784
|
}, null, 8, ["question", "css"]));
|
|
4766
4785
|
}
|
|
4767
|
-
}),
|
|
4768
|
-
|
|
4769
|
-
], qe = 440,
|
|
4786
|
+
}), ai = /* @__PURE__ */ c("use", { "xlink:href": "#icon-timercircle" }, null, -1), ui = [
|
|
4787
|
+
ai
|
|
4788
|
+
], qe = 440, di = /* @__PURE__ */ h({
|
|
4770
4789
|
__name: "TimerPanel",
|
|
4771
4790
|
props: {
|
|
4772
4791
|
model: {},
|
|
@@ -4782,36 +4801,36 @@ const it = /* @__PURE__ */ Ce(et, [["render", tt]]), rt = /* @__PURE__ */ c("use
|
|
|
4782
4801
|
key: 0,
|
|
4783
4802
|
class: l(n.model.getProgressCss()),
|
|
4784
4803
|
style: S({ strokeDasharray: qe, strokeDashoffset: o.value })
|
|
4785
|
-
},
|
|
4804
|
+
}, ui, 6)) : d("", !0),
|
|
4786
4805
|
c("div", {
|
|
4787
4806
|
class: l(n.model.textContainerCss)
|
|
4788
4807
|
}, [
|
|
4789
4808
|
c("span", {
|
|
4790
4809
|
class: l(n.model.majorTextCss)
|
|
4791
|
-
},
|
|
4810
|
+
}, T(n.model.clockMajorText), 3),
|
|
4792
4811
|
n.model.clockMinorText ? (i(), u("span", {
|
|
4793
4812
|
key: 0,
|
|
4794
4813
|
class: l(n.model.minorTextCss)
|
|
4795
|
-
},
|
|
4814
|
+
}, T(n.model.clockMinorText), 3)) : d("", !0)
|
|
4796
4815
|
], 2)
|
|
4797
4816
|
], 2)) : P((i(), u("div", {
|
|
4798
4817
|
key: 1,
|
|
4799
4818
|
class: l(n.model.survey.getCss().timerRoot)
|
|
4800
|
-
},
|
|
4819
|
+
}, T(e.value), 3)), [
|
|
4801
4820
|
[M, n.model.isRunning && !n.model.showTimerAsClock]
|
|
4802
4821
|
]);
|
|
4803
4822
|
}
|
|
4804
|
-
}),
|
|
4805
|
-
function
|
|
4823
|
+
}), mi = {}, ci = { class: "sd-loading-indicator" };
|
|
4824
|
+
function pi(r, s) {
|
|
4806
4825
|
const o = p("sv-svg-icon");
|
|
4807
|
-
return i(), u("div",
|
|
4826
|
+
return i(), u("div", ci, [
|
|
4808
4827
|
C(o, {
|
|
4809
4828
|
iconName: "icon-loading",
|
|
4810
4829
|
size: "'auto'"
|
|
4811
4830
|
})
|
|
4812
4831
|
]);
|
|
4813
4832
|
}
|
|
4814
|
-
const
|
|
4833
|
+
const vi = /* @__PURE__ */ Ce(mi, [["render", pi]]), yi = { key: 2 }, qi = /* @__PURE__ */ h({
|
|
4815
4834
|
__name: "Header",
|
|
4816
4835
|
props: {
|
|
4817
4836
|
model: {},
|
|
@@ -4838,21 +4857,21 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
4838
4857
|
class: l(o.model.contentClasses),
|
|
4839
4858
|
style: S({ maxWidth: o.model.maxWidth })
|
|
4840
4859
|
}, [
|
|
4841
|
-
(i(!0), u($, null, B(o.model.cells, (a, y) => (i(),
|
|
4860
|
+
(i(!0), u($, null, B(o.model.cells, (a, y) => (i(), g(n, {
|
|
4842
4861
|
model: a,
|
|
4843
4862
|
key: y
|
|
4844
4863
|
}, null, 8, ["model"]))), 128))
|
|
4845
4864
|
], 6)),
|
|
4846
|
-
o.survey.isMobile ? (i(), u("div",
|
|
4865
|
+
o.survey.isMobile ? (i(), u("div", yi, [
|
|
4847
4866
|
C(t, { model: o.model }, null, 8, ["model"])
|
|
4848
4867
|
])) : d("", !0)
|
|
4849
4868
|
], 6);
|
|
4850
4869
|
};
|
|
4851
4870
|
}
|
|
4852
|
-
}),
|
|
4871
|
+
}), gi = {
|
|
4853
4872
|
key: 0,
|
|
4854
4873
|
class: "sv-header__logo"
|
|
4855
|
-
},
|
|
4874
|
+
}, hi = ["src", "width", "height", "alt"], Ci = /* @__PURE__ */ h({
|
|
4856
4875
|
__name: "HeaderCell",
|
|
4857
4876
|
props: {
|
|
4858
4877
|
model: {}
|
|
@@ -4868,7 +4887,7 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
4868
4887
|
class: "sv-header__cell-content",
|
|
4869
4888
|
style: S(s.model.contentStyle)
|
|
4870
4889
|
}, [
|
|
4871
|
-
s.model.showLogo ? (i(), u("div",
|
|
4890
|
+
s.model.showLogo ? (i(), u("div", gi, [
|
|
4872
4891
|
c("div", {
|
|
4873
4892
|
class: l(s.model.survey.logoClassNames)
|
|
4874
4893
|
}, [
|
|
@@ -4879,7 +4898,7 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
4879
4898
|
height: s.model.survey.renderedLogoHeight,
|
|
4880
4899
|
alt: s.model.survey.locTitle.renderedHtml,
|
|
4881
4900
|
style: S({ objectFit: s.model.survey.logoFit, width: s.model.survey.renderedStyleLogoWidth, height: s.model.survey.renderedStyleLogoHeight })
|
|
4882
|
-
}, null, 14,
|
|
4901
|
+
}, null, 14, hi)
|
|
4883
4902
|
], 2)
|
|
4884
4903
|
])) : d("", !0),
|
|
4885
4904
|
s.model.showTitle ? (i(), u("div", {
|
|
@@ -4910,10 +4929,10 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
4910
4929
|
], 6);
|
|
4911
4930
|
};
|
|
4912
4931
|
}
|
|
4913
|
-
}),
|
|
4932
|
+
}), bi = { class: "sv-header--mobile" }, ki = {
|
|
4914
4933
|
key: 0,
|
|
4915
4934
|
class: "sv-header__logo"
|
|
4916
|
-
},
|
|
4935
|
+
}, fi = ["src", "width", "height", "alt"], Ii = /* @__PURE__ */ h({
|
|
4917
4936
|
__name: "HeaderMobile",
|
|
4918
4937
|
props: {
|
|
4919
4938
|
model: {}
|
|
@@ -4921,8 +4940,8 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
4921
4940
|
setup(r) {
|
|
4922
4941
|
return (s, o) => {
|
|
4923
4942
|
const e = p("survey-element-title"), n = p("survey-string");
|
|
4924
|
-
return i(), u("div",
|
|
4925
|
-
s.model.survey.hasLogo ? (i(), u("div",
|
|
4943
|
+
return i(), u("div", bi, [
|
|
4944
|
+
s.model.survey.hasLogo ? (i(), u("div", ki, [
|
|
4926
4945
|
c("div", {
|
|
4927
4946
|
class: l(s.model.survey.logoClassNames)
|
|
4928
4947
|
}, [
|
|
@@ -4933,7 +4952,7 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
4933
4952
|
height: s.model.survey.renderedLogoHeight,
|
|
4934
4953
|
alt: s.model.survey.locTitle.renderedHtml,
|
|
4935
4954
|
style: S({ objectFit: s.model.survey.logoFit, width: s.model.survey.renderedStyleLogoWidth, height: s.model.survey.renderedStyleLogoHeight })
|
|
4936
|
-
}, null, 14,
|
|
4955
|
+
}, null, 14, fi)
|
|
4937
4956
|
], 2)
|
|
4938
4957
|
])) : d("", !0),
|
|
4939
4958
|
s.model.survey.hasTitle ? (i(), u("div", {
|
|
@@ -4963,7 +4982,7 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
4963
4982
|
]);
|
|
4964
4983
|
};
|
|
4965
4984
|
}
|
|
4966
|
-
}),
|
|
4985
|
+
}), wi = /* @__PURE__ */ h({
|
|
4967
4986
|
__name: "Element",
|
|
4968
4987
|
props: {
|
|
4969
4988
|
element: {},
|
|
@@ -4997,14 +5016,14 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
4997
5016
|
style: S(n(a.element)),
|
|
4998
5017
|
class: l(a.element.cssClasses.questionWrapper)
|
|
4999
5018
|
}, [
|
|
5000
|
-
a.row.isNeedRender ? (i(),
|
|
5019
|
+
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
5020
|
key: 1,
|
|
5002
5021
|
element: a.element,
|
|
5003
5022
|
css: a.css
|
|
5004
5023
|
}, null, 8, ["element", "css"])) : d("", !0)
|
|
5005
5024
|
], 6));
|
|
5006
5025
|
}
|
|
5007
|
-
}),
|
|
5026
|
+
}), Si = /* @__PURE__ */ h({
|
|
5008
5027
|
__name: "TemplateRenderer",
|
|
5009
5028
|
props: {
|
|
5010
5029
|
componentName: {},
|
|
@@ -5012,9 +5031,9 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5012
5031
|
},
|
|
5013
5032
|
setup(r) {
|
|
5014
5033
|
const s = $e(), o = w(() => !!s.default);
|
|
5015
|
-
return (e, n) => o.value && !e.componentName ? _e(e.$slots, "default", { key: 0 }) : (i(),
|
|
5034
|
+
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
5035
|
}
|
|
5017
|
-
}),
|
|
5036
|
+
}), Ri = /* @__PURE__ */ h({
|
|
5018
5037
|
__name: "FileCleanButton",
|
|
5019
5038
|
props: {
|
|
5020
5039
|
question: {},
|
|
@@ -5028,8 +5047,8 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5028
5047
|
class: l(s.css),
|
|
5029
5048
|
onClick: o[0] || (o[0] = (...n) => s.question.doClean && s.question.doClean(...n))
|
|
5030
5049
|
}, [
|
|
5031
|
-
c("span", null,
|
|
5032
|
-
s.question.cssClasses.removeButtonIconId ? (i(),
|
|
5050
|
+
c("span", null, T(s.question.clearButtonCaption), 1),
|
|
5051
|
+
s.question.cssClasses.removeButtonIconId ? (i(), g(e, {
|
|
5033
5052
|
key: 0,
|
|
5034
5053
|
iconName: s.question.cssClasses.removeButtonIconId,
|
|
5035
5054
|
size: "auto",
|
|
@@ -5038,7 +5057,7 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5038
5057
|
], 2);
|
|
5039
5058
|
};
|
|
5040
5059
|
}
|
|
5041
|
-
}),
|
|
5060
|
+
}), Ti = ["id"], $i = /* @__PURE__ */ h({
|
|
5042
5061
|
__name: "FileVideo",
|
|
5043
5062
|
props: {
|
|
5044
5063
|
question: {}
|
|
@@ -5060,14 +5079,14 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5060
5079
|
playsinline: "",
|
|
5061
5080
|
id: s.question.videoId,
|
|
5062
5081
|
class: l(s.question.cssClasses.video)
|
|
5063
|
-
}, null, 10,
|
|
5082
|
+
}, null, 10, Ti),
|
|
5064
5083
|
C(e, {
|
|
5065
5084
|
item: s.question.takePictureAction
|
|
5066
5085
|
}, null, 8, ["item"])
|
|
5067
5086
|
], 2);
|
|
5068
5087
|
};
|
|
5069
5088
|
}
|
|
5070
|
-
}),
|
|
5089
|
+
}), _i = ["for", "aria-label"], Di = /* @__PURE__ */ h({
|
|
5071
5090
|
__name: "FileChooseButton",
|
|
5072
5091
|
props: {
|
|
5073
5092
|
data: {},
|
|
@@ -5088,19 +5107,19 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5088
5107
|
for: o.value.inputId,
|
|
5089
5108
|
"aria-label": o.value.chooseButtonText
|
|
5090
5109
|
}, [
|
|
5091
|
-
o.value.cssClasses.chooseFileIconId ? (i(),
|
|
5110
|
+
o.value.cssClasses.chooseFileIconId ? (i(), g(t, {
|
|
5092
5111
|
key: 0,
|
|
5093
5112
|
title: o.value.chooseButtonText,
|
|
5094
5113
|
iconName: o.value.cssClasses.chooseFileIconId,
|
|
5095
5114
|
size: "auto"
|
|
5096
5115
|
}, null, 8, ["title", "iconName"])) : d("", !0),
|
|
5097
|
-
c("span", null,
|
|
5098
|
-
], 10,
|
|
5116
|
+
c("span", null, T(o.value.chooseButtonText), 1)
|
|
5117
|
+
], 10, _i)), [
|
|
5099
5118
|
[a]
|
|
5100
5119
|
]);
|
|
5101
5120
|
};
|
|
5102
5121
|
}
|
|
5103
|
-
}),
|
|
5122
|
+
}), Bi = ["onClick", "href", "title", "download"], Li = ["src"], Ni = ["onClick"], Pi = ["onClick", "href", "title", "download"], Ai = /* @__PURE__ */ h({
|
|
5104
5123
|
__name: "FilePreview",
|
|
5105
5124
|
props: {
|
|
5106
5125
|
question: {}
|
|
@@ -5126,7 +5145,7 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5126
5145
|
title: n.name,
|
|
5127
5146
|
download: n.name,
|
|
5128
5147
|
style: S({ width: s.question.imageWidth })
|
|
5129
|
-
},
|
|
5148
|
+
}, T(n.name), 13, Bi)
|
|
5130
5149
|
], 2)) : d("", !0),
|
|
5131
5150
|
c("div", {
|
|
5132
5151
|
class: l(s.question.getImageWrapperCss(n))
|
|
@@ -5139,8 +5158,8 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5139
5158
|
width: s.question.imageWidth
|
|
5140
5159
|
}),
|
|
5141
5160
|
alt: "File preview"
|
|
5142
|
-
}, null, 12,
|
|
5143
|
-
s.question.defaultImage(n) ? (i(),
|
|
5161
|
+
}, null, 12, Li)) : d("", !0),
|
|
5162
|
+
s.question.defaultImage(n) ? (i(), g(e, {
|
|
5144
5163
|
key: 1,
|
|
5145
5164
|
iconName: s.question.cssClasses.defaultImageIconId,
|
|
5146
5165
|
class: l(s.question.cssClasses.defaultImage),
|
|
@@ -5153,15 +5172,15 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5153
5172
|
}, [
|
|
5154
5173
|
c("span", {
|
|
5155
5174
|
class: l(s.question.cssClasses.removeFile)
|
|
5156
|
-
},
|
|
5157
|
-
s.question.cssClasses.removeFileSvgIconId ? (i(),
|
|
5175
|
+
}, T(s.question.removeFileCaption), 3),
|
|
5176
|
+
s.question.cssClasses.removeFileSvgIconId ? (i(), g(e, {
|
|
5158
5177
|
key: 0,
|
|
5159
5178
|
title: s.question.removeFileCaption,
|
|
5160
5179
|
class: l(s.question.cssClasses.removeFileSvg),
|
|
5161
5180
|
iconName: s.question.cssClasses.removeFileSvgIconId,
|
|
5162
5181
|
size: "auto"
|
|
5163
5182
|
}, null, 8, ["title", "class", "iconName"])) : d("", !0)
|
|
5164
|
-
], 10,
|
|
5183
|
+
], 10, Ni)) : d("", !0)
|
|
5165
5184
|
], 2),
|
|
5166
5185
|
n.name && s.question.cssClasses.fileSignBottom ? (i(), u("div", {
|
|
5167
5186
|
key: 1,
|
|
@@ -5173,7 +5192,7 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5173
5192
|
title: n.name,
|
|
5174
5193
|
download: n.name,
|
|
5175
5194
|
style: S({ width: s.question.imageWidth })
|
|
5176
|
-
},
|
|
5195
|
+
}, T(n.name), 13, Pi)
|
|
5177
5196
|
], 2)) : d("", !0)
|
|
5178
5197
|
], 2)), [
|
|
5179
5198
|
[M, n && s.question.isPreviewVisible(t)]
|
|
@@ -5181,7 +5200,7 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5181
5200
|
], 2)) : d("", !0);
|
|
5182
5201
|
};
|
|
5183
5202
|
}
|
|
5184
|
-
}),
|
|
5203
|
+
}), Mi = /* @__PURE__ */ h({
|
|
5185
5204
|
__name: "ButtonGroup",
|
|
5186
5205
|
props: {
|
|
5187
5206
|
question: {}
|
|
@@ -5196,7 +5215,7 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5196
5215
|
ref_key: "root",
|
|
5197
5216
|
ref: o
|
|
5198
5217
|
}, [
|
|
5199
|
-
(i(!0), u($, null, B(e.question.visibleChoices, (a, y) => (i(),
|
|
5218
|
+
(i(!0), u($, null, B(e.question.visibleChoices, (a, y) => (i(), g(t, {
|
|
5200
5219
|
question: e.question,
|
|
5201
5220
|
key: y,
|
|
5202
5221
|
item: a,
|
|
@@ -5205,7 +5224,7 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5205
5224
|
], 2);
|
|
5206
5225
|
};
|
|
5207
5226
|
}
|
|
5208
|
-
}),
|
|
5227
|
+
}), Hi = ["title"], Wi = ["name", "id", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "disabled", "value"], Ei = ["title"], Vi = /* @__PURE__ */ h({
|
|
5209
5228
|
__name: "ButtonGroupItem",
|
|
5210
5229
|
props: {
|
|
5211
5230
|
item: {},
|
|
@@ -5242,13 +5261,13 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5242
5261
|
class: l(o.value.css.control),
|
|
5243
5262
|
"onUpdate:modelValue": t[0] || (t[0] = (m) => e.value = m),
|
|
5244
5263
|
value: o.value.value
|
|
5245
|
-
}, null, 10,
|
|
5246
|
-
[
|
|
5264
|
+
}, null, 10, Wi), [
|
|
5265
|
+
[x, e.value]
|
|
5247
5266
|
]),
|
|
5248
5267
|
c("div", {
|
|
5249
5268
|
class: l(o.value.css.decorator)
|
|
5250
5269
|
}, [
|
|
5251
|
-
o.value.iconName ? (i(),
|
|
5270
|
+
o.value.iconName ? (i(), g(a, {
|
|
5252
5271
|
key: 0,
|
|
5253
5272
|
iconName: o.value.iconName,
|
|
5254
5273
|
size: o.value.iconSize,
|
|
@@ -5262,12 +5281,12 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5262
5281
|
C(y, {
|
|
5263
5282
|
locString: o.value.caption
|
|
5264
5283
|
}, null, 8, ["locString"])
|
|
5265
|
-
], 10,
|
|
5284
|
+
], 10, Ei)) : d("", !0)
|
|
5266
5285
|
], 2)
|
|
5267
|
-
], 10,
|
|
5286
|
+
], 10, Hi);
|
|
5268
5287
|
};
|
|
5269
5288
|
}
|
|
5270
|
-
}), Fi = ["src", "width", "height", "alt"],
|
|
5289
|
+
}), Fi = ["src", "width", "height", "alt"], Oi = /* @__PURE__ */ h({
|
|
5271
5290
|
inheritAttrs: !1,
|
|
5272
5291
|
__name: "Logo",
|
|
5273
5292
|
props: {
|
|
@@ -5292,12 +5311,12 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5292
5311
|
}, null, 14, Fi)
|
|
5293
5312
|
], 2));
|
|
5294
5313
|
}
|
|
5295
|
-
}),
|
|
5314
|
+
}), zi = /* @__PURE__ */ h({
|
|
5296
5315
|
__name: "SvgBundle",
|
|
5297
5316
|
setup(r) {
|
|
5298
5317
|
const s = _();
|
|
5299
5318
|
return H(() => {
|
|
5300
|
-
s.value.innerHTML =
|
|
5319
|
+
s.value.innerHTML = Oe.iconsRenderedHtml();
|
|
5301
5320
|
}), (o, e) => P((i(), u("svg", {
|
|
5302
5321
|
id: "sv-icon-holder-global-container",
|
|
5303
5322
|
ref_key: "root",
|
|
@@ -5307,9 +5326,9 @@ const yi = /* @__PURE__ */ Ce(ci, [["render", vi]]), qi = { key: 2 }, gi = /* @_
|
|
|
5307
5326
|
]);
|
|
5308
5327
|
}
|
|
5309
5328
|
});
|
|
5310
|
-
|
|
5311
|
-
function
|
|
5312
|
-
r.component("SurveyComponent", ve), r.component("sv-svg-bundle",
|
|
5329
|
+
ze.platform = "vue3";
|
|
5330
|
+
function Ui(r) {
|
|
5331
|
+
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
5332
|
mounted: function(s, o) {
|
|
5314
5333
|
const e = { ...o.value };
|
|
5315
5334
|
if (e.disableTabStop) {
|
|
@@ -5317,20 +5336,20 @@ function Ki(r) {
|
|
|
5317
5336
|
return;
|
|
5318
5337
|
}
|
|
5319
5338
|
e.disableTabStop || (s.tabIndex = 0), s.addEventListener("keyup", (n) => (n.preventDefault(), n.stopPropagation(), ge(n, e), !1)), s.addEventListener("keydown", (n) => {
|
|
5320
|
-
|
|
5339
|
+
Ue(n, e);
|
|
5321
5340
|
}), s.addEventListener("blur", (n) => {
|
|
5322
|
-
|
|
5341
|
+
Ke(n);
|
|
5323
5342
|
});
|
|
5324
5343
|
}
|
|
5325
5344
|
});
|
|
5326
5345
|
}
|
|
5327
|
-
const
|
|
5346
|
+
const Qi = {
|
|
5328
5347
|
install(r) {
|
|
5329
|
-
|
|
5348
|
+
Ui(r);
|
|
5330
5349
|
}
|
|
5331
5350
|
};
|
|
5332
5351
|
export {
|
|
5333
|
-
|
|
5352
|
+
Qi as surveyPlugin,
|
|
5334
5353
|
L as useBase,
|
|
5335
5354
|
le as useComputedArray,
|
|
5336
5355
|
G as useLocString,
|