survey-vue3-ui 1.11.1 → 1.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/survey-vue3-ui.es.js +979 -968
- package/survey-vue3-ui.umd.js +1 -1
package/survey-vue3-ui.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { shallowReactive as be, watch as K, onUpdated as x, onBeforeUnmount as
|
|
2
|
-
import { Base as De, RendererFactory as se, Helpers as Be, DropdownMultiSelectListModel as Le, doKey2ClickUp as
|
|
1
|
+
import { shallowReactive as be, watch as K, onUpdated as x, onBeforeUnmount as j, onMounted as M, ref as $, shallowRef as U, watchEffect as ke, triggerRef as ne, unref as w, isRef as fe, defineComponent as g, computed as S, resolveComponent as y, openBlock as i, createElementBlock as u, normalizeClass as a, createVNode as C, createCommentVNode as m, Fragment as _, renderList as L, createBlock as q, resolveDynamicComponent as R, normalizeProps as z, mergeProps as E, withCtx as V, normalizeStyle as I, createElementVNode as p, onUnmounted as O, guardReactiveProps as oe, withDirectives as N, vShow as H, toDisplayString as T, vModelRadio as ee, vModelCheckbox as te, vModelSelect as we, vModelText as Ie, getCurrentInstance as ve, 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 se, Helpers as Be, DropdownMultiSelectListModel as Le, doKey2ClickUp as ye, createSvg as Ae, ActionDropdownViewModel as Ne, getActionDropdownButtonTarget as Pe, createPopupViewModel as Me, SurveyProgressModel as ae, ProgressButtonsResponsivityManager as Ee, PopupSurveyModel as He, settings as Q, createDialogOptions as We, createPopupModalViewModel as Fe, ButtonGroupItemModel as Ve, SvgRegistry as Oe, SurveyModel as ze, doKey2ClickDown as Ue, doKey2ClickBlur as Ke } from "survey-core";
|
|
3
3
|
De.createPropertiesHash = () => be({});
|
|
4
4
|
function Qe(r) {
|
|
5
5
|
var s;
|
|
@@ -19,7 +19,7 @@ function Qe(r) {
|
|
|
19
19
|
fe(n[e]) ? n[e].value = t : n[e] = t;
|
|
20
20
|
}), r.enableOnElementRenderedEvent(), r.__vueImplemented++);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function ue(r) {
|
|
23
23
|
var s;
|
|
24
24
|
!r || (r.__vueImplemented = (s = r.__vueImplemented) != null ? s : 0, r.__vueImplemented--, r.__vueImplemented <= 0 && (r.iteratePropertiesHash((n, e) => {
|
|
25
25
|
n[e] = w(n[e]), Array.isArray(n[e]) && (n[e].onArrayChanged = void 0);
|
|
@@ -29,7 +29,7 @@ function B(r, s, n) {
|
|
|
29
29
|
const e = K(
|
|
30
30
|
r,
|
|
31
31
|
(t, o) => {
|
|
32
|
-
t && s && s(t, o), o && (
|
|
32
|
+
t && s && s(t, o), o && (ue(o), n && n(o)), Qe(t);
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
immediate: !0
|
|
@@ -37,19 +37,19 @@ function B(r, s, n) {
|
|
|
37
37
|
);
|
|
38
38
|
x(() => {
|
|
39
39
|
r().afterRerender();
|
|
40
|
-
}),
|
|
40
|
+
}), j(() => {
|
|
41
41
|
const t = r();
|
|
42
|
-
t && (
|
|
42
|
+
t && (ue(t), n && n(t), e());
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
function P(r, s, n, e) {
|
|
46
46
|
B(() => r.question, n, e), M(() => {
|
|
47
47
|
r.question && r.question.afterRenderQuestionElement(s.value);
|
|
48
|
-
}),
|
|
48
|
+
}), j(() => {
|
|
49
49
|
r.question.beforeDestroyQuestionElement(s.value);
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function G(r) {
|
|
53
53
|
const s = $(), n = (t) => {
|
|
54
54
|
s.value = t.renderedHtml, t.onChanged = () => {
|
|
55
55
|
s.value = t.renderedHtml;
|
|
@@ -62,7 +62,7 @@ function J(r) {
|
|
|
62
62
|
},
|
|
63
63
|
{ immediate: !0 }
|
|
64
64
|
);
|
|
65
|
-
return
|
|
65
|
+
return j(() => {
|
|
66
66
|
e();
|
|
67
67
|
}), s;
|
|
68
68
|
}
|
|
@@ -73,11 +73,11 @@ function re(r) {
|
|
|
73
73
|
const s = U(), n = ke(() => {
|
|
74
74
|
s.value = r(), ne(s);
|
|
75
75
|
});
|
|
76
|
-
return
|
|
76
|
+
return j(() => {
|
|
77
77
|
n();
|
|
78
78
|
}), s;
|
|
79
79
|
}
|
|
80
|
-
const je = /* @__PURE__ */
|
|
80
|
+
const je = /* @__PURE__ */ g({
|
|
81
81
|
__name: "Page",
|
|
82
82
|
props: {
|
|
83
83
|
survey: {},
|
|
@@ -96,13 +96,13 @@ const je = /* @__PURE__ */ h({
|
|
|
96
96
|
), M(() => {
|
|
97
97
|
e();
|
|
98
98
|
}), (o, l) => {
|
|
99
|
-
const
|
|
99
|
+
const c = y("survey-element-title"), v = y("survey-string"), d = y("survey-errors"), h = y("survey-row");
|
|
100
100
|
return i(), u("div", {
|
|
101
101
|
class: a(o.page.cssRoot),
|
|
102
102
|
ref_key: "root",
|
|
103
103
|
ref: n
|
|
104
104
|
}, [
|
|
105
|
-
C(
|
|
105
|
+
C(c, {
|
|
106
106
|
element: o.page,
|
|
107
107
|
css: o.css
|
|
108
108
|
}, null, 8, ["element", "css"]),
|
|
@@ -113,15 +113,15 @@ const je = /* @__PURE__ */ h({
|
|
|
113
113
|
C(v, {
|
|
114
114
|
locString: o.page.locDescription
|
|
115
115
|
}, null, 8, ["locString"])
|
|
116
|
-
], 2)) :
|
|
117
|
-
C(
|
|
118
|
-
(i(!0), u(
|
|
116
|
+
], 2)) : m("", !0),
|
|
117
|
+
C(d, { element: o.page }, null, 8, ["element"]),
|
|
118
|
+
(i(!0), u(_, null, L(o.page.visibleRows, (f) => (i(), q(R(o.page.getSurvey().getRowWrapperComponentName(f)), z(E({
|
|
119
119
|
key: f.id
|
|
120
120
|
}, {
|
|
121
121
|
componentData: o.page.getSurvey().getRowWrapperComponentData(f)
|
|
122
122
|
})), {
|
|
123
123
|
default: V(() => [
|
|
124
|
-
C(
|
|
124
|
+
C(h, {
|
|
125
125
|
row: f,
|
|
126
126
|
survey: o.survey,
|
|
127
127
|
css: o.css
|
|
@@ -132,7 +132,7 @@ const je = /* @__PURE__ */ h({
|
|
|
132
132
|
], 2);
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
|
-
}), Ge = /* @__PURE__ */
|
|
135
|
+
}), Ge = /* @__PURE__ */ g({
|
|
136
136
|
__name: "Header",
|
|
137
137
|
props: {
|
|
138
138
|
survey: {}
|
|
@@ -150,10 +150,10 @@ const je = /* @__PURE__ */ h({
|
|
|
150
150
|
ref_key: "root",
|
|
151
151
|
ref: n
|
|
152
152
|
}, [
|
|
153
|
-
e.survey.isLogoBefore ? (i(),
|
|
153
|
+
e.survey.isLogoBefore ? (i(), q(R(e.survey.getElementWrapperComponentName(e.survey, "logo-image")), {
|
|
154
154
|
key: 0,
|
|
155
155
|
data: e.survey.getElementWrapperComponentData(e.survey, "logo-image")
|
|
156
|
-
}, null, 8, ["data"])) :
|
|
156
|
+
}, null, 8, ["data"])) : m("", !0),
|
|
157
157
|
e.survey.renderedHasTitle ? (i(), u("div", {
|
|
158
158
|
key: 1,
|
|
159
159
|
class: a(e.survey.css.headerText),
|
|
@@ -170,19 +170,19 @@ const je = /* @__PURE__ */ h({
|
|
|
170
170
|
C(l, {
|
|
171
171
|
locString: e.survey.locDescription
|
|
172
172
|
}, null, 8, ["locString"])
|
|
173
|
-
], 2)) :
|
|
174
|
-
], 6)) :
|
|
175
|
-
e.survey.isLogoAfter ? (i(),
|
|
173
|
+
], 2)) : m("", !0)
|
|
174
|
+
], 6)) : m("", !0),
|
|
175
|
+
e.survey.isLogoAfter ? (i(), q(R(e.survey.getElementWrapperComponentName(e.survey, "logo-image")), {
|
|
176
176
|
key: 2,
|
|
177
177
|
data: e.survey.getElementWrapperComponentData(e.survey, "logo-image")
|
|
178
|
-
}, null, 8, ["data"])) :
|
|
178
|
+
}, null, 8, ["data"])) : m("", !0),
|
|
179
179
|
p("div", {
|
|
180
180
|
class: a(e.survey.css.headerClose)
|
|
181
181
|
}, null, 2)
|
|
182
|
-
], 2)) :
|
|
182
|
+
], 2)) : m("", !0);
|
|
183
183
|
};
|
|
184
184
|
}
|
|
185
|
-
}), Je = /* @__PURE__ */
|
|
185
|
+
}), Je = /* @__PURE__ */ g({
|
|
186
186
|
__name: "Row",
|
|
187
187
|
props: {
|
|
188
188
|
row: {},
|
|
@@ -213,7 +213,7 @@ const je = /* @__PURE__ */ h({
|
|
|
213
213
|
ref_key: "root",
|
|
214
214
|
ref: n
|
|
215
215
|
}, [
|
|
216
|
-
(i(!0), u(
|
|
216
|
+
(i(!0), u(_, null, L(e.row.visibleElements, (l) => (i(), q(o, {
|
|
217
217
|
row: e.row,
|
|
218
218
|
css: e.css,
|
|
219
219
|
element: l,
|
|
@@ -224,7 +224,7 @@ const je = /* @__PURE__ */ h({
|
|
|
224
224
|
}
|
|
225
225
|
}), Xe = ["id", "role", "aria-required", "aria-invalid", "aria-labelledby", "aria-describedby", "aria-expanded", "data-name"], Ye = ["id"], Ze = {
|
|
226
226
|
inheritAttrs: !1
|
|
227
|
-
}, xe = /* @__PURE__ */
|
|
227
|
+
}, xe = /* @__PURE__ */ g({
|
|
228
228
|
...Ze,
|
|
229
229
|
__name: "Question",
|
|
230
230
|
props: {
|
|
@@ -235,14 +235,14 @@ const je = /* @__PURE__ */ h({
|
|
|
235
235
|
setup(r) {
|
|
236
236
|
const s = r, n = $(null), e = S(() => s.element.showErrorOnTop), t = S(() => s.element.showErrorOnBottom), o = (k) => k.cssContent, l = () => s.element.getRootStyle();
|
|
237
237
|
B(() => s.element);
|
|
238
|
-
const
|
|
238
|
+
const c = () => {
|
|
239
239
|
n.value && s.element.afterRender(n.value);
|
|
240
240
|
}, v = K(
|
|
241
241
|
() => n.value,
|
|
242
242
|
() => {
|
|
243
|
-
|
|
243
|
+
c();
|
|
244
244
|
}
|
|
245
|
-
),
|
|
245
|
+
), d = S(() => s.element.customWidget ? "survey-customwidget" : s.element.isDefaultRendering() ? "survey-" + s.element.getTemplate() : s.element.getComponentName()), h = S(() => s.element.survey.getQuestionContentWrapperComponentName(s.element)), f = S(() => ({
|
|
246
246
|
componentData: {
|
|
247
247
|
question: s.element,
|
|
248
248
|
data: s.element.survey.getElementWrapperComponentData(s.element)
|
|
@@ -250,14 +250,14 @@ const je = /* @__PURE__ */ h({
|
|
|
250
250
|
}));
|
|
251
251
|
return O(() => {
|
|
252
252
|
v();
|
|
253
|
-
}), (k,
|
|
253
|
+
}), (k, D) => {
|
|
254
254
|
const b = y("survey-errors"), A = y("survey-element-header"), W = y("survey-string"), F = y("survey-question-comment");
|
|
255
255
|
return i(), u("div", {
|
|
256
256
|
class: a(k.element.getRootCss()),
|
|
257
257
|
style: I(l()),
|
|
258
258
|
ref_key: "root",
|
|
259
259
|
ref: n,
|
|
260
|
-
onFocusin:
|
|
260
|
+
onFocusin: D[0] || (D[0] = (J) => k.element.focusIn()),
|
|
261
261
|
id: k.element.id,
|
|
262
262
|
role: k.element.ariaRole,
|
|
263
263
|
"aria-required": k.element.ariaRequired,
|
|
@@ -267,29 +267,29 @@ const je = /* @__PURE__ */ h({
|
|
|
267
267
|
"aria-expanded": k.element.ariaExpanded === null ? void 0 : k.element.ariaExpanded === "true",
|
|
268
268
|
"data-name": k.element.name
|
|
269
269
|
}, [
|
|
270
|
-
k.element.showErrorsAboveQuestion ? (i(),
|
|
270
|
+
k.element.showErrorsAboveQuestion ? (i(), q(b, {
|
|
271
271
|
key: 0,
|
|
272
272
|
element: k.element,
|
|
273
273
|
location: "top"
|
|
274
|
-
}, null, 8, ["element"])) :
|
|
275
|
-
k.element.hasTitleOnLeftTop ? (i(),
|
|
274
|
+
}, null, 8, ["element"])) : m("", !0),
|
|
275
|
+
k.element.hasTitleOnLeftTop ? (i(), q(A, {
|
|
276
276
|
key: 1,
|
|
277
277
|
element: k.element,
|
|
278
278
|
css: k.css
|
|
279
|
-
}, null, 8, ["element", "css"])) :
|
|
280
|
-
(i(),
|
|
279
|
+
}, null, 8, ["element", "css"])) : m("", !0),
|
|
280
|
+
(i(), q(R(h.value), z(oe(f.value)), {
|
|
281
281
|
default: V(() => [
|
|
282
282
|
p("div", {
|
|
283
283
|
class: a(o(k.element) || void 0),
|
|
284
284
|
style: I({ display: k.element.renderedIsExpanded ? void 0 : "none" }),
|
|
285
285
|
role: "presentation"
|
|
286
286
|
}, [
|
|
287
|
-
e.value ? (i(),
|
|
287
|
+
e.value ? (i(), q(b, {
|
|
288
288
|
key: 0,
|
|
289
289
|
element: k.element,
|
|
290
290
|
location: "top"
|
|
291
|
-
}, null, 8, ["element"])) :
|
|
292
|
-
(i(),
|
|
291
|
+
}, null, 8, ["element"])) : m("", !0),
|
|
292
|
+
(i(), q(R(d.value), { question: k.element }, null, 8, ["question"])),
|
|
293
293
|
k.element.hasComment ? (i(), u("div", {
|
|
294
294
|
key: 1,
|
|
295
295
|
class: a(k.element.getCommentAreaCss())
|
|
@@ -300,12 +300,12 @@ const je = /* @__PURE__ */ h({
|
|
|
300
300
|
}, null, 8, ["locString"])
|
|
301
301
|
]),
|
|
302
302
|
C(F, { question: k.element }, null, 8, ["question"])
|
|
303
|
-
], 2)) :
|
|
304
|
-
t.value ? (i(),
|
|
303
|
+
], 2)) : m("", !0),
|
|
304
|
+
t.value ? (i(), q(b, {
|
|
305
305
|
key: 2,
|
|
306
306
|
element: k.element,
|
|
307
307
|
location: "bottom"
|
|
308
|
-
}, null, 8, ["element"])) :
|
|
308
|
+
}, null, 8, ["element"])) : m("", !0),
|
|
309
309
|
k.element.hasDescriptionUnderInput ? (i(), u("div", {
|
|
310
310
|
key: 3,
|
|
311
311
|
class: a(k.element.cssClasses.descriptionUnderInput),
|
|
@@ -314,27 +314,27 @@ const je = /* @__PURE__ */ h({
|
|
|
314
314
|
C(W, {
|
|
315
315
|
locString: k.element.locDescription
|
|
316
316
|
}, null, 8, ["locString"])
|
|
317
|
-
], 10, Ye)) :
|
|
317
|
+
], 10, Ye)) : m("", !0)
|
|
318
318
|
], 6)
|
|
319
319
|
]),
|
|
320
320
|
_: 1
|
|
321
321
|
}, 16)),
|
|
322
|
-
k.element.hasTitleOnBottom ? (i(),
|
|
322
|
+
k.element.hasTitleOnBottom ? (i(), q(A, {
|
|
323
323
|
key: 2,
|
|
324
324
|
element: k.element,
|
|
325
325
|
css: k.css
|
|
326
|
-
}, null, 8, ["element", "css"])) :
|
|
327
|
-
k.element.showErrorsBelowQuestion ? (i(),
|
|
326
|
+
}, null, 8, ["element", "css"])) : m("", !0),
|
|
327
|
+
k.element.showErrorsBelowQuestion ? (i(), q(b, {
|
|
328
328
|
key: 3,
|
|
329
329
|
element: k.element,
|
|
330
330
|
location: "bottom"
|
|
331
|
-
}, null, 8, ["element"])) :
|
|
331
|
+
}, null, 8, ["element"])) : m("", !0)
|
|
332
332
|
], 46, Xe);
|
|
333
333
|
};
|
|
334
334
|
}
|
|
335
335
|
}), es = ["id"], ss = ["id"], ns = {
|
|
336
336
|
inheritAttrs: !1
|
|
337
|
-
}, os = /* @__PURE__ */
|
|
337
|
+
}, os = /* @__PURE__ */ g({
|
|
338
338
|
...ns,
|
|
339
339
|
inheritAttrs: !1,
|
|
340
340
|
__name: "Panel",
|
|
@@ -348,25 +348,25 @@ const je = /* @__PURE__ */ h({
|
|
|
348
348
|
return B(() => s.element), M(() => {
|
|
349
349
|
s.element.survey && s.element.survey.afterRenderPanel(s.element, n.value);
|
|
350
350
|
}), (t, o) => {
|
|
351
|
-
const l = y("survey-errors"),
|
|
351
|
+
const l = y("survey-errors"), c = y("survey-element-header"), v = y("survey-row"), d = y("sv-action-bar");
|
|
352
352
|
return t.element.getIsContentVisible() ? (i(), u("div", {
|
|
353
353
|
key: 0,
|
|
354
354
|
class: a(t.element.getContainerCss()),
|
|
355
355
|
id: t.element.id,
|
|
356
|
-
onFocusin: o[0] || (o[0] = (
|
|
356
|
+
onFocusin: o[0] || (o[0] = (h) => t.element.focusIn()),
|
|
357
357
|
ref_key: "root",
|
|
358
358
|
ref: n
|
|
359
359
|
}, [
|
|
360
|
-
t.element.showErrorsAbovePanel ? (i(),
|
|
360
|
+
t.element.showErrorsAbovePanel ? (i(), q(l, {
|
|
361
361
|
key: 0,
|
|
362
362
|
element: t.element
|
|
363
|
-
}, null, 8, ["element"])) :
|
|
364
|
-
t.element.hasTitle || t.element.hasDescription ? (i(),
|
|
363
|
+
}, null, 8, ["element"])) : m("", !0),
|
|
364
|
+
t.element.hasTitle || t.element.hasDescription ? (i(), q(c, {
|
|
365
365
|
key: 1,
|
|
366
366
|
element: t.element,
|
|
367
367
|
css: t.css
|
|
368
|
-
}, null, 8, ["element", "css"])) :
|
|
369
|
-
t.element.showErrorsAbovePanel ?
|
|
368
|
+
}, null, 8, ["element", "css"])) : m("", !0),
|
|
369
|
+
t.element.showErrorsAbovePanel ? m("", !0) : (i(), q(l, {
|
|
370
370
|
key: 2,
|
|
371
371
|
element: t.element
|
|
372
372
|
}, null, 8, ["element"])),
|
|
@@ -376,82 +376,86 @@ const je = /* @__PURE__ */ h({
|
|
|
376
376
|
style: I({ paddingLeft: t.element.innerPaddingLeft }),
|
|
377
377
|
class: a(t.element.cssClasses.panel.content)
|
|
378
378
|
}, [
|
|
379
|
-
(i(!0), u(
|
|
380
|
-
key:
|
|
379
|
+
(i(!0), u(_, null, L(t.element.visibleRows, (h) => (i(), q(R(t.element.getSurvey().getRowWrapperComponentName(h)), z(E({
|
|
380
|
+
key: h.id
|
|
381
381
|
}, {
|
|
382
|
-
componentData: t.element.getSurvey().getRowWrapperComponentData(
|
|
382
|
+
componentData: t.element.getSurvey().getRowWrapperComponentData(h)
|
|
383
383
|
})), {
|
|
384
384
|
default: V(() => [
|
|
385
385
|
C(v, {
|
|
386
|
-
row:
|
|
386
|
+
row: h,
|
|
387
387
|
survey: e.value,
|
|
388
388
|
css: t.css
|
|
389
389
|
}, null, 8, ["row", "survey", "css"])
|
|
390
390
|
]),
|
|
391
391
|
_: 2
|
|
392
392
|
}, 1040))), 128)),
|
|
393
|
-
C(
|
|
393
|
+
C(d, {
|
|
394
394
|
model: t.element.getFooterToolbar()
|
|
395
395
|
}, null, 8, ["model"])
|
|
396
|
-
], 14, ss)) :
|
|
397
|
-
], 42, es)) :
|
|
396
|
+
], 14, ss)) : m("", !0)
|
|
397
|
+
], 42, es)) : m("", !0);
|
|
398
398
|
};
|
|
399
399
|
}
|
|
400
|
-
}), ts = ["id"], is = /* @__PURE__ */
|
|
400
|
+
}), ts = ["id"], is = /* @__PURE__ */ g({
|
|
401
401
|
__name: "ElementHeader",
|
|
402
402
|
props: {
|
|
403
403
|
element: {},
|
|
404
404
|
css: {}
|
|
405
405
|
},
|
|
406
406
|
setup(r) {
|
|
407
|
-
const s = r, n = (
|
|
408
|
-
typeof s.element.clickTitleFunction == "function" && s.element.clickTitleFunction(
|
|
407
|
+
const s = r, n = (t) => {
|
|
408
|
+
typeof s.element.clickTitleFunction == "function" && s.element.clickTitleFunction(t);
|
|
409
|
+
}, e = () => {
|
|
410
|
+
const t = { width: void 0 };
|
|
411
|
+
return "titleWidth" in s.element && (t.width = s.element.titleWidth), t;
|
|
409
412
|
};
|
|
410
|
-
return (
|
|
411
|
-
const
|
|
413
|
+
return (t, o) => {
|
|
414
|
+
const l = y("survey-element-title"), c = y("survey-string"), v = y("sv-action-bar");
|
|
412
415
|
return i(), u("div", {
|
|
413
|
-
class: a(
|
|
414
|
-
onClick: n
|
|
416
|
+
class: a(t.element.cssHeader),
|
|
417
|
+
onClick: n,
|
|
418
|
+
style: I(e())
|
|
415
419
|
}, [
|
|
416
|
-
C(
|
|
417
|
-
element:
|
|
418
|
-
css:
|
|
420
|
+
C(l, {
|
|
421
|
+
element: t.element,
|
|
422
|
+
css: t.css
|
|
419
423
|
}, null, 8, ["element", "css"]),
|
|
420
|
-
|
|
424
|
+
t.element.hasDescriptionUnderTitle ? N((i(), u("div", {
|
|
421
425
|
key: 0,
|
|
422
|
-
class: a(
|
|
423
|
-
id:
|
|
426
|
+
class: a(t.element.cssDescription),
|
|
427
|
+
id: t.element.ariaDescriptionId
|
|
424
428
|
}, [
|
|
425
|
-
C(
|
|
426
|
-
locString:
|
|
429
|
+
C(c, {
|
|
430
|
+
locString: t.element.locDescription
|
|
427
431
|
}, null, 8, ["locString"])
|
|
428
432
|
], 10, ts)), [
|
|
429
|
-
[H,
|
|
430
|
-
]) :
|
|
431
|
-
|
|
433
|
+
[H, t.element.hasDescription]
|
|
434
|
+
]) : m("", !0),
|
|
435
|
+
t.element.hasAdditionalTitleToolbar ? (i(), q(v, {
|
|
432
436
|
key: 1,
|
|
433
|
-
model:
|
|
434
|
-
}, null, 8, ["model"])) :
|
|
435
|
-
],
|
|
437
|
+
model: t.element.additionalTitleToolbar
|
|
438
|
+
}, null, 8, ["model"])) : m("", !0)
|
|
439
|
+
], 6);
|
|
436
440
|
};
|
|
437
441
|
}
|
|
438
|
-
}), rs = /* @__PURE__ */
|
|
442
|
+
}), rs = /* @__PURE__ */ g({
|
|
439
443
|
__name: "String",
|
|
440
444
|
props: {
|
|
441
445
|
locString: {}
|
|
442
446
|
},
|
|
443
447
|
setup(r) {
|
|
444
|
-
return (s, n) => (i(),
|
|
448
|
+
return (s, n) => (i(), q(R(s.locString.renderAs), {
|
|
445
449
|
locString: s.locString.renderAsData
|
|
446
450
|
}, null, 8, ["locString"]));
|
|
447
451
|
}
|
|
448
|
-
}), ls = ["innerHTML"], as = /* @__PURE__ */
|
|
452
|
+
}), ls = ["innerHTML"], as = /* @__PURE__ */ g({
|
|
449
453
|
__name: "StringViewer",
|
|
450
454
|
props: {
|
|
451
455
|
locString: {}
|
|
452
456
|
},
|
|
453
457
|
setup(r) {
|
|
454
|
-
const s = r, n =
|
|
458
|
+
const s = r, n = G(() => s.locString), e = s.locString.allowLineBreaks ? "sv-string-viewer sv-string-viewer--multiline" : "sv-string-viewer";
|
|
455
459
|
return (t, o) => t.locString.hasHtml ? (i(), u("span", {
|
|
456
460
|
key: 0,
|
|
457
461
|
class: a(w(e)),
|
|
@@ -461,7 +465,7 @@ const je = /* @__PURE__ */ h({
|
|
|
461
465
|
class: a(w(e))
|
|
462
466
|
}, T(w(n)), 3));
|
|
463
467
|
}
|
|
464
|
-
}), us = ["innerHTML"], ds = /* @__PURE__ */
|
|
468
|
+
}), us = ["innerHTML"], ds = /* @__PURE__ */ g({
|
|
465
469
|
__name: "StringEditor",
|
|
466
470
|
props: {
|
|
467
471
|
locString: {}
|
|
@@ -488,7 +492,7 @@ const je = /* @__PURE__ */ h({
|
|
|
488
492
|
onClick: e
|
|
489
493
|
}, T(t.locString.renderedHtml), 33));
|
|
490
494
|
}
|
|
491
|
-
}), ms = ["id"], cs = /* @__PURE__ */
|
|
495
|
+
}), ms = ["id"], cs = /* @__PURE__ */ g({
|
|
492
496
|
__name: "Skeleton",
|
|
493
497
|
props: {
|
|
494
498
|
element: {}
|
|
@@ -500,7 +504,7 @@ const je = /* @__PURE__ */ h({
|
|
|
500
504
|
id: n.element.id
|
|
501
505
|
}, null, 8, ms));
|
|
502
506
|
}
|
|
503
|
-
}), ps = ["id"], vs = ["value"], ys = /* @__PURE__ */
|
|
507
|
+
}), ps = ["id"], vs = ["value"], ys = /* @__PURE__ */ g({
|
|
504
508
|
inheritAttrs: !1,
|
|
505
509
|
__name: "Text",
|
|
506
510
|
props: {
|
|
@@ -523,9 +527,9 @@ const je = /* @__PURE__ */ h({
|
|
|
523
527
|
p("datalist", {
|
|
524
528
|
id: e.question.dataListId
|
|
525
529
|
}, [
|
|
526
|
-
(i(!0), u(
|
|
530
|
+
(i(!0), u(_, null, L(e.question.dataList, (l) => (i(), u("option", { value: l }, null, 8, vs))), 256))
|
|
527
531
|
], 8, ps)
|
|
528
|
-
], 512)) : (i(),
|
|
532
|
+
], 512)) : (i(), q(o, {
|
|
529
533
|
key: 2,
|
|
530
534
|
question: e.question,
|
|
531
535
|
"get-ref": (l) => {
|
|
@@ -534,7 +538,7 @@ const je = /* @__PURE__ */ h({
|
|
|
534
538
|
}, null, 8, ["question", "get-ref"]));
|
|
535
539
|
};
|
|
536
540
|
}
|
|
537
|
-
}), qs = ["disabled", "readonly", "type", "maxlength", "min", "max", "step", "size", "id", "list", "placeholder", "autocomplete", "value", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], gs = ["disabled", "readonly", "type", "maxlength", "min", "max", "step", "size", "id", "list", "placeholder", "autocomplete", "value", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], hs = /* @__PURE__ */
|
|
541
|
+
}), qs = ["disabled", "readonly", "type", "maxlength", "min", "max", "step", "size", "id", "list", "placeholder", "autocomplete", "value", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], gs = ["disabled", "readonly", "type", "maxlength", "min", "max", "step", "size", "id", "list", "placeholder", "autocomplete", "value", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], hs = /* @__PURE__ */ g({
|
|
538
542
|
__name: "TextInput",
|
|
539
543
|
props: {
|
|
540
544
|
question: {},
|
|
@@ -546,11 +550,11 @@ const je = /* @__PURE__ */ h({
|
|
|
546
550
|
}, t = $(null);
|
|
547
551
|
s({ root: t }), B(() => n.question);
|
|
548
552
|
const o = S(() => n.question.inputStyle);
|
|
549
|
-
return (l,
|
|
553
|
+
return (l, c) => {
|
|
550
554
|
const v = y("sv-character-counter");
|
|
551
555
|
return l.question.getMaxLength() ? (i(), u("div", {
|
|
552
556
|
key: 1,
|
|
553
|
-
ref: (
|
|
557
|
+
ref: (d) => e(d)
|
|
554
558
|
}, [
|
|
555
559
|
p("input", {
|
|
556
560
|
disabled: l.question.isDisabledAttr,
|
|
@@ -568,12 +572,12 @@ const je = /* @__PURE__ */ h({
|
|
|
568
572
|
placeholder: l.question.renderedPlaceholder,
|
|
569
573
|
autocomplete: l.question.autocomplete,
|
|
570
574
|
value: l.question.inputValue,
|
|
571
|
-
onChange:
|
|
572
|
-
onKeyup:
|
|
573
|
-
onKeydown:
|
|
574
|
-
onCompositionUpdate:
|
|
575
|
-
onBlur:
|
|
576
|
-
onFocus:
|
|
575
|
+
onChange: c[6] || (c[6] = (...d) => l.question.onChange && l.question.onChange(...d)),
|
|
576
|
+
onKeyup: c[7] || (c[7] = (...d) => l.question.onKeyUp && l.question.onKeyUp(...d)),
|
|
577
|
+
onKeydown: c[8] || (c[8] = (...d) => l.question.onKeyDown && l.question.onKeyDown(...d)),
|
|
578
|
+
onCompositionUpdate: c[9] || (c[9] = (...d) => l.question.onCompositionUpdate && l.question.onCompositionUpdate(...d)),
|
|
579
|
+
onBlur: c[10] || (c[10] = (...d) => l.question.onBlur && l.question.onBlur(...d)),
|
|
580
|
+
onFocus: c[11] || (c[11] = (...d) => l.question.onFocus && l.question.onFocus(...d)),
|
|
577
581
|
"aria-required": l.question.a11y_input_ariaRequired,
|
|
578
582
|
"aria-label": l.question.a11y_input_ariaLabel,
|
|
579
583
|
"aria-labelledby": l.question.a11y_input_ariaLabelledBy,
|
|
@@ -587,7 +591,7 @@ const je = /* @__PURE__ */ h({
|
|
|
587
591
|
}, null, 8, ["counter", "remainingCharacterCounter"])
|
|
588
592
|
], 512)) : (i(), u("input", {
|
|
589
593
|
key: 0,
|
|
590
|
-
ref: (
|
|
594
|
+
ref: (d) => e(d),
|
|
591
595
|
disabled: l.question.isDisabledAttr,
|
|
592
596
|
readonly: l.question.isReadOnlyAttr,
|
|
593
597
|
class: a(l.question.getControlClass()),
|
|
@@ -603,12 +607,12 @@ const je = /* @__PURE__ */ h({
|
|
|
603
607
|
placeholder: l.question.renderedPlaceholder,
|
|
604
608
|
autocomplete: l.question.autocomplete,
|
|
605
609
|
value: l.question.inputValue,
|
|
606
|
-
onChange:
|
|
607
|
-
onKeyup:
|
|
608
|
-
onKeydown:
|
|
609
|
-
onCompositionUpdate:
|
|
610
|
-
onBlur:
|
|
611
|
-
onFocus:
|
|
610
|
+
onChange: c[0] || (c[0] = (...d) => l.question.onChange && l.question.onChange(...d)),
|
|
611
|
+
onKeyup: c[1] || (c[1] = (...d) => l.question.onKeyUp && l.question.onKeyUp(...d)),
|
|
612
|
+
onKeydown: c[2] || (c[2] = (...d) => l.question.onKeyDown && l.question.onKeyDown(...d)),
|
|
613
|
+
onCompositionUpdate: c[3] || (c[3] = (...d) => l.question.onCompositionUpdate && l.question.onCompositionUpdate(...d)),
|
|
614
|
+
onBlur: c[4] || (c[4] = (...d) => l.question.onBlur && l.question.onBlur(...d)),
|
|
615
|
+
onFocus: c[5] || (c[5] = (...d) => l.question.onFocus && l.question.onFocus(...d)),
|
|
612
616
|
"aria-required": l.question.a11y_input_ariaRequired,
|
|
613
617
|
"aria-label": l.question.a11y_input_ariaLabel,
|
|
614
618
|
"aria-labelledby": l.question.a11y_input_ariaLabelledBy,
|
|
@@ -621,7 +625,7 @@ const je = /* @__PURE__ */ h({
|
|
|
621
625
|
}), Cs = ["role", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], bs = {
|
|
622
626
|
key: 0,
|
|
623
627
|
class: "sv-hidden"
|
|
624
|
-
}, ks = { key: 7 }, fs = ["value"],
|
|
628
|
+
}, ks = { key: 7 }, fs = ["value"], qe = /* @__PURE__ */ g({
|
|
625
629
|
inheritAttrs: !1,
|
|
626
630
|
__name: "SelectBase",
|
|
627
631
|
props: {
|
|
@@ -640,7 +644,7 @@ const je = /* @__PURE__ */ h({
|
|
|
640
644
|
}
|
|
641
645
|
});
|
|
642
646
|
return (o, l) => {
|
|
643
|
-
const
|
|
647
|
+
const c = y("survey-other-choice");
|
|
644
648
|
return i(), u("fieldset", {
|
|
645
649
|
class: a(o.question.getSelectBaseRootCss()),
|
|
646
650
|
ref_key: "root",
|
|
@@ -653,42 +657,42 @@ const je = /* @__PURE__ */ h({
|
|
|
653
657
|
"aria-invalid": o.question.a11y_input_ariaInvalid,
|
|
654
658
|
"aria-errormessage": o.question.a11y_input_ariaErrormessage
|
|
655
659
|
}, [
|
|
656
|
-
o.showLegend ? (i(), u("legend", bs, T(o.question.locTitle.renderedHtml), 1)) :
|
|
657
|
-
o.question.hasHeadItems ? (i(!0), u(
|
|
660
|
+
o.showLegend ? (i(), u("legend", bs, T(o.question.locTitle.renderedHtml), 1)) : m("", !0),
|
|
661
|
+
o.question.hasHeadItems ? (i(!0), u(_, { key: 1 }, L(o.question.headItems, (v) => (i(), q(R(e(v)), E({
|
|
658
662
|
key: v.value
|
|
659
|
-
}, t(v)), null, 16))), 128)) :
|
|
660
|
-
!o.question.hasColumns && !o.question.blockedRow ? (i(!0), u(
|
|
663
|
+
}, t(v)), null, 16))), 128)) : m("", !0),
|
|
664
|
+
!o.question.hasColumns && !o.question.blockedRow ? (i(!0), u(_, { key: 2 }, L(o.question.bodyItems, (v) => (i(), q(R(e(v)), E({
|
|
661
665
|
key: v.value
|
|
662
|
-
}, t(v)), null, 16))), 128)) :
|
|
666
|
+
}, t(v)), null, 16))), 128)) : m("", !0),
|
|
663
667
|
o.question.blockedRow ? (i(), u("div", {
|
|
664
668
|
key: 3,
|
|
665
669
|
class: a(o.question.cssClasses.rootRow)
|
|
666
670
|
}, [
|
|
667
|
-
!o.question.hasColumns && o.question.blockedRow ? (i(!0), u(
|
|
671
|
+
!o.question.hasColumns && o.question.blockedRow ? (i(!0), u(_, { key: 0 }, L(o.question.dataChoices, (v) => (i(), q(R(e(v)), E({
|
|
668
672
|
key: v.value
|
|
669
|
-
}, t(v)), null, 16))), 128)) :
|
|
670
|
-
], 2)) :
|
|
673
|
+
}, t(v)), null, 16))), 128)) : m("", !0)
|
|
674
|
+
], 2)) : m("", !0),
|
|
671
675
|
o.question.hasColumns ? (i(), u("div", {
|
|
672
676
|
key: 4,
|
|
673
677
|
class: a(o.question.cssClasses.rootMultiColumn)
|
|
674
678
|
}, [
|
|
675
|
-
o.question.hasColumns ? (i(!0), u(
|
|
676
|
-
key:
|
|
679
|
+
o.question.hasColumns ? (i(!0), u(_, { key: 0 }, L(o.question.columns, (v, d) => (i(), u("div", {
|
|
680
|
+
key: d,
|
|
677
681
|
class: a(o.question.getColumnClass()),
|
|
678
682
|
role: "presentation"
|
|
679
683
|
}, [
|
|
680
|
-
(i(!0), u(
|
|
681
|
-
key:
|
|
682
|
-
}, t(
|
|
683
|
-
], 2))), 128)) :
|
|
684
|
-
], 2)) :
|
|
685
|
-
o.question.hasFootItems ? (i(!0), u(
|
|
684
|
+
(i(!0), u(_, null, L(v, (h) => (i(), q(R(e(h)), E({
|
|
685
|
+
key: h.value
|
|
686
|
+
}, t(h)), null, 16))), 128))
|
|
687
|
+
], 2))), 128)) : m("", !0)
|
|
688
|
+
], 2)) : m("", !0),
|
|
689
|
+
o.question.hasFootItems ? (i(!0), u(_, { key: 5 }, L(o.question.footItems, (v) => (i(), q(R(e(v)), E({
|
|
686
690
|
key: v.value
|
|
687
|
-
}, t(v)), null, 16))), 128)) :
|
|
688
|
-
o.question.renderedValue && o.question.isOtherSelected ? (i(),
|
|
691
|
+
}, t(v)), null, 16))), 128)) : m("", !0),
|
|
692
|
+
o.question.renderedValue && o.question.isOtherSelected ? (i(), q(c, {
|
|
689
693
|
key: 6,
|
|
690
694
|
question: o.question
|
|
691
|
-
}, null, 8, ["question"])) :
|
|
695
|
+
}, null, 8, ["question"])) : m("", !0),
|
|
692
696
|
o.question.showClearButtonInContent ? (i(), u("div", ks, [
|
|
693
697
|
p("input", {
|
|
694
698
|
type: "button",
|
|
@@ -698,23 +702,23 @@ const je = /* @__PURE__ */ h({
|
|
|
698
702
|
}),
|
|
699
703
|
value: o.question.clearButtonCaption
|
|
700
704
|
}, null, 10, fs)
|
|
701
|
-
])) :
|
|
705
|
+
])) : m("", !0)
|
|
702
706
|
], 10, Cs);
|
|
703
707
|
};
|
|
704
708
|
}
|
|
705
|
-
}), ws = /* @__PURE__ */
|
|
709
|
+
}), ws = /* @__PURE__ */ g({
|
|
706
710
|
inheritAttrs: !1,
|
|
707
711
|
__name: "Checkbox",
|
|
708
712
|
props: {
|
|
709
713
|
question: {}
|
|
710
714
|
},
|
|
711
715
|
setup(r) {
|
|
712
|
-
return (s, n) => (i(),
|
|
716
|
+
return (s, n) => (i(), q(qe, {
|
|
713
717
|
question: s.question,
|
|
714
718
|
"show-legend": !0
|
|
715
719
|
}, null, 8, ["question"]));
|
|
716
720
|
}
|
|
717
|
-
}), Is = ["name", "checked", "value", "id", "disabled", "readonly"], Ss = ["xlink:href"], Rs = /* @__PURE__ */
|
|
721
|
+
}), Is = ["name", "checked", "value", "id", "disabled", "readonly"], Ss = ["xlink:href"], Rs = /* @__PURE__ */ g({
|
|
718
722
|
inheritAttrs: !1,
|
|
719
723
|
__name: "CheckboxItem",
|
|
720
724
|
props: {
|
|
@@ -762,9 +766,9 @@ const je = /* @__PURE__ */ h({
|
|
|
762
766
|
p("use", {
|
|
763
767
|
"xlink:href": e.question.itemSvgIcon
|
|
764
768
|
}, null, 8, Ss)
|
|
765
|
-
], 2)) :
|
|
766
|
-
], 2)) :
|
|
767
|
-
e.hideLabel ?
|
|
769
|
+
], 2)) : m("", !0)
|
|
770
|
+
], 2)) : m("", !0),
|
|
771
|
+
e.hideLabel ? m("", !0) : (i(), u("span", {
|
|
768
772
|
key: 1,
|
|
769
773
|
class: a(e.question.cssClasses.controlLabel)
|
|
770
774
|
}, [
|
|
@@ -776,16 +780,16 @@ const je = /* @__PURE__ */ h({
|
|
|
776
780
|
], 2);
|
|
777
781
|
};
|
|
778
782
|
}
|
|
779
|
-
}), Ts = /* @__PURE__ */
|
|
783
|
+
}), Ts = /* @__PURE__ */ g({
|
|
780
784
|
inheritAttrs: !1,
|
|
781
785
|
__name: "Radiogroup",
|
|
782
786
|
props: {
|
|
783
787
|
question: {}
|
|
784
788
|
},
|
|
785
789
|
setup(r) {
|
|
786
|
-
return (s, n) => (i(),
|
|
790
|
+
return (s, n) => (i(), q(qe, { question: s.question }, null, 8, ["question"]));
|
|
787
791
|
}
|
|
788
|
-
}), $s = ["name", "value", "id", "aria-errormessage", "disabled", "readonly"], _s = ["xlink:href"], Ds = /* @__PURE__ */
|
|
792
|
+
}), $s = ["name", "value", "id", "aria-errormessage", "disabled", "readonly"], _s = ["xlink:href"], Ds = /* @__PURE__ */ g({
|
|
789
793
|
inheritAttrs: !1,
|
|
790
794
|
__name: "RadiogroupItem",
|
|
791
795
|
props: {
|
|
@@ -802,7 +806,7 @@ const je = /* @__PURE__ */ h({
|
|
|
802
806
|
}
|
|
803
807
|
});
|
|
804
808
|
return B(() => s.item), (o, l) => {
|
|
805
|
-
const
|
|
809
|
+
const c = y("survey-string");
|
|
806
810
|
return i(), u("div", {
|
|
807
811
|
role: "presentation",
|
|
808
812
|
class: a(o.question.getItemClass(o.item))
|
|
@@ -835,13 +839,13 @@ const je = /* @__PURE__ */ h({
|
|
|
835
839
|
p("use", {
|
|
836
840
|
"xlink:href": o.question.itemSvgIcon
|
|
837
841
|
}, null, 8, _s)
|
|
838
|
-
], 2)) :
|
|
839
|
-
], 2)) :
|
|
840
|
-
o.hideLabel ?
|
|
842
|
+
], 2)) : m("", !0)
|
|
843
|
+
], 2)) : m("", !0),
|
|
844
|
+
o.hideLabel ? m("", !0) : (i(), u("span", {
|
|
841
845
|
key: 1,
|
|
842
846
|
class: a(e(o.item))
|
|
843
847
|
}, [
|
|
844
|
-
C(
|
|
848
|
+
C(c, {
|
|
845
849
|
locString: o.item.locText
|
|
846
850
|
}, null, 8, ["locString"])
|
|
847
851
|
], 2))
|
|
@@ -849,7 +853,7 @@ const je = /* @__PURE__ */ h({
|
|
|
849
853
|
], 2);
|
|
850
854
|
};
|
|
851
855
|
}
|
|
852
|
-
}), Bs = ["src"], Ls = ["title"], As = { key: 0 }, Ns = /* @__PURE__ */
|
|
856
|
+
}), Bs = ["src"], Ls = ["title"], As = { key: 0 }, Ns = /* @__PURE__ */ g({
|
|
853
857
|
inheritAttrs: !1,
|
|
854
858
|
__name: "Signaturepad",
|
|
855
859
|
props: {
|
|
@@ -858,7 +862,7 @@ const je = /* @__PURE__ */ h({
|
|
|
858
862
|
setup(r) {
|
|
859
863
|
const s = r, n = $(null);
|
|
860
864
|
return P(s, n), (e, t) => {
|
|
861
|
-
const o = y("survey-string"), l = y("sv-svg-icon"),
|
|
865
|
+
const o = y("survey-string"), l = y("sv-svg-icon"), c = y("sv-loading-indicator");
|
|
862
866
|
return i(), u("div", {
|
|
863
867
|
class: a(e.question.cssClasses.root),
|
|
864
868
|
ref_key: "root",
|
|
@@ -884,7 +888,7 @@ const je = /* @__PURE__ */ h({
|
|
|
884
888
|
style: I({
|
|
885
889
|
width: e.question.renderedCanvasWidth
|
|
886
890
|
})
|
|
887
|
-
}, null, 14, Bs)) :
|
|
891
|
+
}, null, 14, Bs)) : m("", !0),
|
|
888
892
|
p("canvas", {
|
|
889
893
|
tabindex: "-1",
|
|
890
894
|
class: a(e.question.cssClasses.canvas),
|
|
@@ -903,24 +907,24 @@ const je = /* @__PURE__ */ h({
|
|
|
903
907
|
e.question.clearValue(!0);
|
|
904
908
|
})
|
|
905
909
|
}, [
|
|
906
|
-
e.question.cssClasses.clearButtonIconId ?
|
|
907
|
-
e.question.cssClasses.clearButtonIconId ? (i(),
|
|
910
|
+
e.question.cssClasses.clearButtonIconId ? m("", !0) : (i(), u("span", As, "\u2716")),
|
|
911
|
+
e.question.cssClasses.clearButtonIconId ? (i(), q(l, {
|
|
908
912
|
key: 1,
|
|
909
913
|
iconName: e.question.cssClasses.clearButtonIconId,
|
|
910
914
|
size: "auto"
|
|
911
|
-
}, null, 8, ["iconName"])) :
|
|
915
|
+
}, null, 8, ["iconName"])) : m("", !0)
|
|
912
916
|
], 10, Ls)
|
|
913
|
-
], 2)) :
|
|
917
|
+
], 2)) : m("", !0),
|
|
914
918
|
e.question.showLoadingIndicator ? (i(), u("div", {
|
|
915
919
|
key: 1,
|
|
916
920
|
class: a(e.question.cssClasses.loadingIndicator)
|
|
917
921
|
}, [
|
|
918
|
-
C(
|
|
919
|
-
], 2)) :
|
|
922
|
+
C(c)
|
|
923
|
+
], 2)) : m("", !0)
|
|
920
924
|
], 6);
|
|
921
925
|
};
|
|
922
926
|
}
|
|
923
|
-
}), Ps = ["innerHTML"], Ms = /* @__PURE__ */
|
|
927
|
+
}), Ps = ["innerHTML"], Ms = /* @__PURE__ */ g({
|
|
924
928
|
inheritAttrs: !1,
|
|
925
929
|
__name: "Html",
|
|
926
930
|
props: {
|
|
@@ -929,7 +933,7 @@ const je = /* @__PURE__ */ h({
|
|
|
929
933
|
setup(r) {
|
|
930
934
|
const s = r, n = $(null);
|
|
931
935
|
P(s, n);
|
|
932
|
-
const e =
|
|
936
|
+
const e = G(() => s.question.locHtml);
|
|
933
937
|
return (t, o) => (i(), u("div", {
|
|
934
938
|
ref_key: "root",
|
|
935
939
|
ref: n,
|
|
@@ -937,7 +941,7 @@ const je = /* @__PURE__ */ h({
|
|
|
937
941
|
innerHTML: w(e)
|
|
938
942
|
}, null, 10, Ps));
|
|
939
943
|
}
|
|
940
|
-
}), Es = ["src", "alt", "width", "height"], Hs = ["src", "width", "height"], Ws = ["src", "width", "height"], Fs = /* @__PURE__ */
|
|
944
|
+
}), Es = ["src", "alt", "width", "height"], Hs = ["src", "width", "height"], Ws = ["src", "width", "height"], Fs = /* @__PURE__ */ g({
|
|
941
945
|
inheritAttrs: !1,
|
|
942
946
|
__name: "Image",
|
|
943
947
|
props: {
|
|
@@ -946,7 +950,7 @@ const je = /* @__PURE__ */ h({
|
|
|
946
950
|
setup(r) {
|
|
947
951
|
const s = r, n = $(null);
|
|
948
952
|
P(s, n);
|
|
949
|
-
const e =
|
|
953
|
+
const e = G(() => s.question.locImageLink);
|
|
950
954
|
return (t, o) => {
|
|
951
955
|
const l = y("sv-svg-icon");
|
|
952
956
|
return i(), u("div", {
|
|
@@ -966,15 +970,15 @@ const je = /* @__PURE__ */ h({
|
|
|
966
970
|
width: t.question.renderedStyleWidth,
|
|
967
971
|
height: t.question.renderedStyleHeight
|
|
968
972
|
}),
|
|
969
|
-
onLoad: o[0] || (o[0] = (
|
|
973
|
+
onLoad: o[0] || (o[0] = (c) => {
|
|
970
974
|
t.question.onLoadHandler();
|
|
971
975
|
}),
|
|
972
|
-
onError: o[1] || (o[1] = (
|
|
976
|
+
onError: o[1] || (o[1] = (c) => {
|
|
973
977
|
t.question.onErrorHandler();
|
|
974
978
|
})
|
|
975
979
|
}, null, 46, Es)), [
|
|
976
980
|
[H, w(e) && !t.question.contentNotLoaded]
|
|
977
|
-
]) :
|
|
981
|
+
]) : m("", !0),
|
|
978
982
|
t.question.renderedMode === "video" ? N((i(), u("video", {
|
|
979
983
|
key: 1,
|
|
980
984
|
controls: "",
|
|
@@ -987,15 +991,15 @@ const je = /* @__PURE__ */ h({
|
|
|
987
991
|
width: t.question.renderedStyleWidth,
|
|
988
992
|
height: t.question.renderedStyleHeight
|
|
989
993
|
}),
|
|
990
|
-
onLoadedmetadata: o[2] || (o[2] = (
|
|
994
|
+
onLoadedmetadata: o[2] || (o[2] = (c) => {
|
|
991
995
|
t.question.onLoadHandler();
|
|
992
996
|
}),
|
|
993
|
-
onError: o[3] || (o[3] = (
|
|
997
|
+
onError: o[3] || (o[3] = (c) => {
|
|
994
998
|
t.question.onErrorHandler();
|
|
995
999
|
})
|
|
996
1000
|
}, null, 46, Hs)), [
|
|
997
1001
|
[H, w(e) && !t.question.contentNotLoaded]
|
|
998
|
-
]) :
|
|
1002
|
+
]) : m("", !0),
|
|
999
1003
|
t.question.renderedMode === "youtube" ? (i(), u("iframe", {
|
|
1000
1004
|
key: 2,
|
|
1001
1005
|
class: a(t.question.getImageCss()),
|
|
@@ -1007,7 +1011,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1007
1011
|
width: t.question.renderedStyleWidth,
|
|
1008
1012
|
height: t.question.renderedStyleHeight
|
|
1009
1013
|
})
|
|
1010
|
-
}, null, 14, Ws)) :
|
|
1014
|
+
}, null, 14, Ws)) : m("", !0),
|
|
1011
1015
|
!w(e) || t.question.contentNotLoaded ? (i(), u("div", {
|
|
1012
1016
|
key: 3,
|
|
1013
1017
|
class: a(t.question.cssClasses.noImage)
|
|
@@ -1016,11 +1020,11 @@ const je = /* @__PURE__ */ h({
|
|
|
1016
1020
|
iconName: t.question.cssClasses.noImageSvgIconId,
|
|
1017
1021
|
size: 48
|
|
1018
1022
|
}, null, 8, ["iconName"])
|
|
1019
|
-
], 2)) :
|
|
1023
|
+
], 2)) : m("", !0)
|
|
1020
1024
|
], 2);
|
|
1021
1025
|
};
|
|
1022
1026
|
}
|
|
1023
|
-
}), Vs = /* @__PURE__ */
|
|
1027
|
+
}), Vs = /* @__PURE__ */ g({
|
|
1024
1028
|
inheritAttrs: !1,
|
|
1025
1029
|
__name: "Expression",
|
|
1026
1030
|
props: {
|
|
@@ -1034,7 +1038,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1034
1038
|
ref: n
|
|
1035
1039
|
}, T(e.question.formatedValue), 3));
|
|
1036
1040
|
}
|
|
1037
|
-
}), Os = ["id", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "multiple", "title", "accept", "capture"], zs = ["id", "multiple", "placeholder"], Us = ["id", "multiple", "placeholder"], Ks = /* @__PURE__ */
|
|
1041
|
+
}), Os = ["id", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "multiple", "title", "accept", "capture"], zs = ["id", "multiple", "placeholder"], Us = ["id", "multiple", "placeholder"], Ks = /* @__PURE__ */ g({
|
|
1038
1042
|
inheritAttrs: !1,
|
|
1039
1043
|
__name: "File",
|
|
1040
1044
|
props: {
|
|
@@ -1043,7 +1047,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1043
1047
|
setup(r) {
|
|
1044
1048
|
const s = r, n = $(null);
|
|
1045
1049
|
return P(s, n), (e, t) => {
|
|
1046
|
-
const o = y("survey-string"), l = y("sv-file-choose-btn"),
|
|
1050
|
+
const o = y("survey-string"), l = y("sv-file-choose-btn"), c = y("sv-action-bar"), v = y("sv-file-clean-btn"), d = y("sv-loading-indicator"), h = y("sv-file-video"), f = y("sv-file-preview");
|
|
1047
1051
|
return i(), u("div", {
|
|
1048
1052
|
class: a(e.question.fileRootCss),
|
|
1049
1053
|
ref_key: "root",
|
|
@@ -1063,7 +1067,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1063
1067
|
title: e.question.inputTitle,
|
|
1064
1068
|
accept: e.question.acceptedTypes,
|
|
1065
1069
|
capture: e.question.renderCapture
|
|
1066
|
-
}, null, 10, Os)) :
|
|
1070
|
+
}, null, 10, Os)) : m("", !0),
|
|
1067
1071
|
e.question.isReadOnlyAttr ? (i(), u("input", {
|
|
1068
1072
|
key: 1,
|
|
1069
1073
|
type: "file",
|
|
@@ -1073,7 +1077,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1073
1077
|
multiple: e.question.allowMultiple,
|
|
1074
1078
|
placeholder: e.question.title,
|
|
1075
1079
|
style: { color: "transparent" }
|
|
1076
|
-
}, null, 10, zs)) :
|
|
1080
|
+
}, null, 10, zs)) : m("", !0),
|
|
1077
1081
|
e.question.isDisabledAttr ? (i(), u("input", {
|
|
1078
1082
|
key: 2,
|
|
1079
1083
|
type: "file",
|
|
@@ -1083,7 +1087,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1083
1087
|
multiple: e.question.allowMultiple,
|
|
1084
1088
|
placeholder: e.question.title,
|
|
1085
1089
|
style: { color: "transparent" }
|
|
1086
|
-
}, null, 10, Us)) :
|
|
1090
|
+
}, null, 10, Us)) : m("", !0),
|
|
1087
1091
|
p("div", {
|
|
1088
1092
|
class: a(e.question.cssClasses.dragArea),
|
|
1089
1093
|
onDrop: t[0] || (t[0] = (...k) => e.question.onDrop && e.question.onDrop(...k)),
|
|
@@ -1105,53 +1109,53 @@ const je = /* @__PURE__ */ h({
|
|
|
1105
1109
|
p("div", {
|
|
1106
1110
|
class: a(e.question.cssClasses.wrapper)
|
|
1107
1111
|
}, [
|
|
1108
|
-
e.question.showChooseButton ? (i(),
|
|
1112
|
+
e.question.showChooseButton ? (i(), q(l, {
|
|
1109
1113
|
key: 0,
|
|
1110
1114
|
data: { question: e.question }
|
|
1111
|
-
}, null, 8, ["data"])) :
|
|
1112
|
-
e.question.actionsContainerVisible ? (i(),
|
|
1115
|
+
}, null, 8, ["data"])) : m("", !0),
|
|
1116
|
+
e.question.actionsContainerVisible ? (i(), q(c, {
|
|
1113
1117
|
key: 1,
|
|
1114
1118
|
model: e.question.actionsContainer
|
|
1115
|
-
}, null, 8, ["model"])) :
|
|
1119
|
+
}, null, 8, ["model"])) : m("", !0),
|
|
1116
1120
|
e.question.isEmpty() ? (i(), u("span", {
|
|
1117
1121
|
key: 2,
|
|
1118
1122
|
class: a(e.question.cssClasses.noFileChosen)
|
|
1119
|
-
}, T(e.question.noFileChosenCaption), 3)) :
|
|
1123
|
+
}, T(e.question.noFileChosenCaption), 3)) : m("", !0)
|
|
1120
1124
|
], 2)
|
|
1121
|
-
], 2)) :
|
|
1122
|
-
e.question.showRemoveButton ? (i(),
|
|
1125
|
+
], 2)) : m("", !0),
|
|
1126
|
+
e.question.showRemoveButton ? (i(), q(v, {
|
|
1123
1127
|
key: 1,
|
|
1124
1128
|
question: e.question,
|
|
1125
1129
|
css: e.question.showRemoveButton
|
|
1126
|
-
}, null, 8, ["question", "css"])) :
|
|
1130
|
+
}, null, 8, ["question", "css"])) : m("", !0),
|
|
1127
1131
|
e.question.showLoadingIndicator ? (i(), u("div", {
|
|
1128
1132
|
key: 2,
|
|
1129
1133
|
class: a(e.question.cssClasses.loadingIndicator)
|
|
1130
1134
|
}, [
|
|
1131
|
-
C(
|
|
1132
|
-
], 2)) :
|
|
1133
|
-
e.question.isPlayingVideo ? (i(),
|
|
1135
|
+
C(d)
|
|
1136
|
+
], 2)) : m("", !0),
|
|
1137
|
+
e.question.isPlayingVideo ? (i(), q(h, {
|
|
1134
1138
|
key: 3,
|
|
1135
1139
|
question: e.question
|
|
1136
|
-
}, null, 8, ["question"])) :
|
|
1137
|
-
e.question.allowShowPreview ? (i(),
|
|
1140
|
+
}, null, 8, ["question"])) : m("", !0),
|
|
1141
|
+
e.question.allowShowPreview ? (i(), q(f, {
|
|
1138
1142
|
key: 4,
|
|
1139
1143
|
question: e.question
|
|
1140
|
-
}, null, 8, ["question"])) :
|
|
1141
|
-
e.question.showRemoveButtonBottom ? (i(),
|
|
1144
|
+
}, null, 8, ["question"])) : m("", !0),
|
|
1145
|
+
e.question.showRemoveButtonBottom ? (i(), q(v, {
|
|
1142
1146
|
key: 5,
|
|
1143
1147
|
question: e.question,
|
|
1144
1148
|
css: e.question.showRemoveButtonBottom
|
|
1145
|
-
}, null, 8, ["question", "css"])) :
|
|
1146
|
-
e.question.fileNavigatorVisible ? (i(),
|
|
1149
|
+
}, null, 8, ["question", "css"])) : m("", !0),
|
|
1150
|
+
e.question.fileNavigatorVisible ? (i(), q(c, {
|
|
1147
1151
|
key: 6,
|
|
1148
1152
|
model: e.question.fileNavigator
|
|
1149
|
-
}, null, 8, ["model"])) :
|
|
1153
|
+
}, null, 8, ["model"])) : m("", !0)
|
|
1150
1154
|
], 34)
|
|
1151
1155
|
], 2);
|
|
1152
1156
|
};
|
|
1153
1157
|
}
|
|
1154
|
-
}), Qs = { class: "sv-hidden" },
|
|
1158
|
+
}), Qs = { class: "sv-hidden" }, de = "survey-imagepicker-item", js = /* @__PURE__ */ g({
|
|
1155
1159
|
inheritAttrs: !1,
|
|
1156
1160
|
__name: "Imagepicker",
|
|
1157
1161
|
props: {
|
|
@@ -1160,8 +1164,8 @@ const je = /* @__PURE__ */ h({
|
|
|
1160
1164
|
setup(r) {
|
|
1161
1165
|
const s = r, n = $(null);
|
|
1162
1166
|
P(s, n);
|
|
1163
|
-
const e = (o) => s.question.getItemValueWrapperComponentName(o) ||
|
|
1164
|
-
componentName:
|
|
1167
|
+
const e = (o) => s.question.getItemValueWrapperComponentName(o) || de, t = (o) => ({
|
|
1168
|
+
componentName: de,
|
|
1165
1169
|
componentData: {
|
|
1166
1170
|
question: s.question,
|
|
1167
1171
|
item: o,
|
|
@@ -1174,21 +1178,21 @@ const je = /* @__PURE__ */ h({
|
|
|
1174
1178
|
ref: n
|
|
1175
1179
|
}, [
|
|
1176
1180
|
p("legend", Qs, T(o.question.locTitle.renderedHtml), 1),
|
|
1177
|
-
o.question.hasColumns ?
|
|
1178
|
-
key:
|
|
1179
|
-
}, t(
|
|
1180
|
-
o.question.hasColumns ? (i(!0), u(
|
|
1181
|
+
o.question.hasColumns ? m("", !0) : (i(!0), u(_, { key: 0 }, L(o.question.visibleChoices, (c) => (i(), q(R(e(c)), E({
|
|
1182
|
+
key: c.value
|
|
1183
|
+
}, t(c)), null, 16))), 128)),
|
|
1184
|
+
o.question.hasColumns ? (i(!0), u(_, { key: 1 }, L(o.question.columns, (c, v) => (i(), u("div", {
|
|
1181
1185
|
class: a(o.question.getColumnClass()),
|
|
1182
1186
|
key: v,
|
|
1183
1187
|
role: "presentation"
|
|
1184
1188
|
}, [
|
|
1185
|
-
(i(!0), u(
|
|
1186
|
-
key:
|
|
1187
|
-
}, t(
|
|
1188
|
-
], 2))), 128)) :
|
|
1189
|
+
(i(!0), u(_, null, L(c, (d) => (i(), q(R(e(d)), E({
|
|
1190
|
+
key: d.value
|
|
1191
|
+
}, t(d)), null, 16))), 128))
|
|
1192
|
+
], 2))), 128)) : m("", !0)
|
|
1189
1193
|
], 2));
|
|
1190
1194
|
}
|
|
1191
|
-
}), Gs = ["name", "value", "id", "disabled", "readonly", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], Js = ["name", "value", "id", "disabled", "readonly", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], Xs = ["src", "width", "height", "alt"], Ys = ["src", "width", "height"], Zs = /* @__PURE__ */
|
|
1195
|
+
}), Gs = ["name", "value", "id", "disabled", "readonly", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], Js = ["name", "value", "id", "disabled", "readonly", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], Xs = ["src", "width", "height", "alt"], Ys = ["src", "width", "height"], Zs = /* @__PURE__ */ g({
|
|
1192
1196
|
inheritAttrs: !1,
|
|
1193
1197
|
__name: "ImagepickerItem",
|
|
1194
1198
|
props: {
|
|
@@ -1206,9 +1210,9 @@ const je = /* @__PURE__ */ h({
|
|
|
1206
1210
|
}
|
|
1207
1211
|
});
|
|
1208
1212
|
B(() => s.item);
|
|
1209
|
-
const t =
|
|
1213
|
+
const t = G(() => s.item.locImageLink);
|
|
1210
1214
|
return (o, l) => {
|
|
1211
|
-
const
|
|
1215
|
+
const c = y("sv-svg-icon"), v = y("survey-string");
|
|
1212
1216
|
return i(), u("div", {
|
|
1213
1217
|
class: a(n(o.item))
|
|
1214
1218
|
}, [
|
|
@@ -1221,7 +1225,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1221
1225
|
name: o.question.questionName,
|
|
1222
1226
|
value: o.item.value,
|
|
1223
1227
|
id: o.question.getItemId(o.item),
|
|
1224
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
1228
|
+
"onUpdate:modelValue": l[0] || (l[0] = (d) => e.value = d),
|
|
1225
1229
|
disabled: !o.question.getItemEnabled(o.item),
|
|
1226
1230
|
readonly: o.question.isReadOnlyAttr,
|
|
1227
1231
|
"aria-required": o.question.ariaRequired,
|
|
@@ -1237,7 +1241,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1237
1241
|
name: o.question.questionName,
|
|
1238
1242
|
value: o.item.value,
|
|
1239
1243
|
id: o.question.getItemId(o.item),
|
|
1240
|
-
"onUpdate:modelValue": l[1] || (l[1] = (
|
|
1244
|
+
"onUpdate:modelValue": l[1] || (l[1] = (d) => e.value = d),
|
|
1241
1245
|
disabled: !o.question.getItemEnabled(o.item),
|
|
1242
1246
|
readonly: o.question.isReadOnlyAttr,
|
|
1243
1247
|
"aria-required": o.question.ariaRequired,
|
|
@@ -1258,13 +1262,13 @@ const je = /* @__PURE__ */ h({
|
|
|
1258
1262
|
key: 0,
|
|
1259
1263
|
class: a(o.question.cssClasses.checkedItemDecorator)
|
|
1260
1264
|
}, [
|
|
1261
|
-
o.question.cssClasses.checkedItemSvgIconId ? (i(),
|
|
1265
|
+
o.question.cssClasses.checkedItemSvgIconId ? (i(), q(c, {
|
|
1262
1266
|
key: 0,
|
|
1263
1267
|
class: a(o.question.cssClasses.checkedItemSvgIcon),
|
|
1264
1268
|
size: "auto",
|
|
1265
1269
|
iconName: o.question.cssClasses.checkedItemSvgIconId
|
|
1266
|
-
}, null, 8, ["class", "iconName"])) :
|
|
1267
|
-
], 2)) :
|
|
1270
|
+
}, null, 8, ["class", "iconName"])) : m("", !0)
|
|
1271
|
+
], 2)) : m("", !0),
|
|
1268
1272
|
w(t) && !o.item.contentNotLoaded && o.question.contentMode === "image" ? (i(), u("img", {
|
|
1269
1273
|
key: 1,
|
|
1270
1274
|
class: a(o.question.cssClasses.image),
|
|
@@ -1273,13 +1277,13 @@ const je = /* @__PURE__ */ h({
|
|
|
1273
1277
|
height: o.question.renderedImageHeight,
|
|
1274
1278
|
style: I({ objectFit: o.question.imageFit }),
|
|
1275
1279
|
alt: o.item.locText.renderedHtml,
|
|
1276
|
-
onLoad: l[2] || (l[2] = (
|
|
1277
|
-
o.question.onContentLoaded(o.item,
|
|
1280
|
+
onLoad: l[2] || (l[2] = (d) => {
|
|
1281
|
+
o.question.onContentLoaded(o.item, d);
|
|
1278
1282
|
}),
|
|
1279
|
-
onError: l[3] || (l[3] = (
|
|
1283
|
+
onError: l[3] || (l[3] = (d) => {
|
|
1280
1284
|
o.item.onErrorHandler();
|
|
1281
1285
|
})
|
|
1282
|
-
}, null, 46, Xs)) :
|
|
1286
|
+
}, null, 46, Xs)) : m("", !0),
|
|
1283
1287
|
w(t) && !o.item.contentNotLoaded && o.question.contentMode === "video" ? (i(), u("video", {
|
|
1284
1288
|
key: 2,
|
|
1285
1289
|
controls: "",
|
|
@@ -1288,13 +1292,13 @@ const je = /* @__PURE__ */ h({
|
|
|
1288
1292
|
width: o.question.renderedImageWidth,
|
|
1289
1293
|
height: o.question.renderedImageHeight,
|
|
1290
1294
|
style: I({ objectFit: o.question.imageFit }),
|
|
1291
|
-
onLoadedmetadata: l[4] || (l[4] = (
|
|
1292
|
-
o.question.onContentLoaded(o.item,
|
|
1295
|
+
onLoadedmetadata: l[4] || (l[4] = (d) => {
|
|
1296
|
+
o.question.onContentLoaded(o.item, d);
|
|
1293
1297
|
}),
|
|
1294
|
-
onError: l[5] || (l[5] = (
|
|
1298
|
+
onError: l[5] || (l[5] = (d) => {
|
|
1295
1299
|
o.item.onErrorHandler();
|
|
1296
1300
|
})
|
|
1297
|
-
}, null, 46, Ys)) :
|
|
1301
|
+
}, null, 46, Ys)) : m("", !0),
|
|
1298
1302
|
!w(t) || o.item.contentNotLoaded ? (i(), u("div", {
|
|
1299
1303
|
key: 3,
|
|
1300
1304
|
class: a(o.question.cssClasses.itemNoImage),
|
|
@@ -1304,12 +1308,12 @@ const je = /* @__PURE__ */ h({
|
|
|
1304
1308
|
objectFit: o.question.imageFit
|
|
1305
1309
|
})
|
|
1306
1310
|
}, [
|
|
1307
|
-
C(
|
|
1311
|
+
C(c, {
|
|
1308
1312
|
class: a(o.question.cssClasses.itemNoImageSvgIcon),
|
|
1309
1313
|
iconName: o.question.cssClasses.itemNoImageSvgIconId,
|
|
1310
1314
|
size: 48
|
|
1311
1315
|
}, null, 8, ["class", "iconName"])
|
|
1312
|
-
], 6)) :
|
|
1316
|
+
], 6)) : m("", !0)
|
|
1313
1317
|
], 2),
|
|
1314
1318
|
o.question.showLabel ? (i(), u("span", {
|
|
1315
1319
|
key: 0,
|
|
@@ -1318,13 +1322,13 @@ const je = /* @__PURE__ */ h({
|
|
|
1318
1322
|
C(v, {
|
|
1319
1323
|
locString: o.item.locText
|
|
1320
1324
|
}, null, 8, ["locString"])
|
|
1321
|
-
], 2)) :
|
|
1325
|
+
], 2)) : m("", !0)
|
|
1322
1326
|
], 2)
|
|
1323
1327
|
], 2)
|
|
1324
1328
|
], 2);
|
|
1325
1329
|
};
|
|
1326
1330
|
}
|
|
1327
|
-
}), xs = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], en = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], sn = /* @__PURE__ */
|
|
1331
|
+
}), xs = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], en = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], sn = /* @__PURE__ */ g({
|
|
1328
1332
|
inheritAttrs: !1,
|
|
1329
1333
|
__name: "Comment",
|
|
1330
1334
|
props: {
|
|
@@ -1354,11 +1358,11 @@ const je = /* @__PURE__ */ h({
|
|
|
1354
1358
|
placeholder: t.question.renderedPlaceholder,
|
|
1355
1359
|
class: a(t.question.className),
|
|
1356
1360
|
onChange: e,
|
|
1357
|
-
onInput: o[0] || (o[0] = (
|
|
1358
|
-
t.question.onInput(
|
|
1361
|
+
onInput: o[0] || (o[0] = (c) => {
|
|
1362
|
+
t.question.onInput(c);
|
|
1359
1363
|
}),
|
|
1360
|
-
onKeydown: o[1] || (o[1] = (
|
|
1361
|
-
t.question.onKeyDown(
|
|
1364
|
+
onKeydown: o[1] || (o[1] = (c) => {
|
|
1365
|
+
t.question.onKeyDown(c);
|
|
1362
1366
|
}),
|
|
1363
1367
|
"aria-required": t.question.a11y_input_ariaRequired,
|
|
1364
1368
|
"aria-label": t.question.a11y_input_ariaLabel,
|
|
@@ -1383,11 +1387,11 @@ const je = /* @__PURE__ */ h({
|
|
|
1383
1387
|
placeholder: t.question.renderedPlaceholder,
|
|
1384
1388
|
class: a(t.question.className),
|
|
1385
1389
|
onChange: e,
|
|
1386
|
-
onInput: o[2] || (o[2] = (
|
|
1387
|
-
t.question.onInput(
|
|
1390
|
+
onInput: o[2] || (o[2] = (c) => {
|
|
1391
|
+
t.question.onInput(c);
|
|
1388
1392
|
}),
|
|
1389
|
-
onKeydown: o[3] || (o[3] = (
|
|
1390
|
-
t.question.onKeyDown(
|
|
1393
|
+
onKeydown: o[3] || (o[3] = (c) => {
|
|
1394
|
+
t.question.onKeyDown(c);
|
|
1391
1395
|
}),
|
|
1392
1396
|
"aria-required": t.question.a11y_input_ariaRequired,
|
|
1393
1397
|
"aria-label": t.question.a11y_input_ariaLabel,
|
|
@@ -1408,7 +1412,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1408
1412
|
}, T(t.question.value), 513));
|
|
1409
1413
|
};
|
|
1410
1414
|
}
|
|
1411
|
-
}), nn = /* @__PURE__ */
|
|
1415
|
+
}), nn = /* @__PURE__ */ g({
|
|
1412
1416
|
inheritAttrs: !1,
|
|
1413
1417
|
__name: "Dropdown",
|
|
1414
1418
|
props: {
|
|
@@ -1424,10 +1428,10 @@ const je = /* @__PURE__ */ h({
|
|
|
1424
1428
|
ref: n
|
|
1425
1429
|
}, [
|
|
1426
1430
|
C(o, { question: e.question }, null, 8, ["question"]),
|
|
1427
|
-
e.question.isOtherSelected ? (i(),
|
|
1431
|
+
e.question.isOtherSelected ? (i(), q(l, {
|
|
1428
1432
|
key: 0,
|
|
1429
1433
|
question: e.question
|
|
1430
|
-
}, null, 8, ["question"])) :
|
|
1434
|
+
}, null, 8, ["question"])) : m("", !0)
|
|
1431
1435
|
], 2);
|
|
1432
1436
|
};
|
|
1433
1437
|
}
|
|
@@ -1440,7 +1444,7 @@ se.Instance.registerRenderer(
|
|
|
1440
1444
|
"select",
|
|
1441
1445
|
"sv-dropdown-select"
|
|
1442
1446
|
);
|
|
1443
|
-
const ln = /* @__PURE__ */
|
|
1447
|
+
const ln = /* @__PURE__ */ g({
|
|
1444
1448
|
inheritAttrs: !1,
|
|
1445
1449
|
__name: "DropdownSelect",
|
|
1446
1450
|
props: {
|
|
@@ -1459,12 +1463,12 @@ const ln = /* @__PURE__ */ h({
|
|
|
1459
1463
|
return (l = s.question.value) != null ? l : "";
|
|
1460
1464
|
},
|
|
1461
1465
|
set(l) {
|
|
1462
|
-
const
|
|
1463
|
-
l === "" ?
|
|
1466
|
+
const c = s.question;
|
|
1467
|
+
l === "" ? c.renderedValue = void 0 : c.renderedValue = l;
|
|
1464
1468
|
}
|
|
1465
1469
|
});
|
|
1466
|
-
return (l,
|
|
1467
|
-
const v = y("sv-dropdown-option-item"),
|
|
1470
|
+
return (l, c) => {
|
|
1471
|
+
const v = y("sv-dropdown-option-item"), d = y("sv-svg-icon"), h = y("survey-other-choice");
|
|
1468
1472
|
return i(), u("div", {
|
|
1469
1473
|
class: a(l.question.renderCssRoot),
|
|
1470
1474
|
ref_key: "root",
|
|
@@ -1481,7 +1485,7 @@ const ln = /* @__PURE__ */ h({
|
|
|
1481
1485
|
}, T(l.question.readOnlyText), 11, rn)) : N((i(), u("select", {
|
|
1482
1486
|
key: 0,
|
|
1483
1487
|
id: l.question.inputId,
|
|
1484
|
-
"onUpdate:modelValue":
|
|
1488
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => o.value = f),
|
|
1485
1489
|
onClick: e,
|
|
1486
1490
|
onKeyup: t,
|
|
1487
1491
|
autocomplete: l.question.autocomplete,
|
|
@@ -1492,8 +1496,8 @@ const ln = /* @__PURE__ */ h({
|
|
|
1492
1496
|
"aria-errormessage": l.question.ariaErrormessage,
|
|
1493
1497
|
required: l.question.isRequired
|
|
1494
1498
|
}, [
|
|
1495
|
-
l.question.allowClear ? (i(), u("option", tn, T(l.question.placeholder), 1)) :
|
|
1496
|
-
(i(!0), u(
|
|
1499
|
+
l.question.allowClear ? (i(), u("option", tn, T(l.question.placeholder), 1)) : m("", !0),
|
|
1500
|
+
(i(!0), u(_, null, L(l.question.visibleChoices, (f) => (i(), q(v, {
|
|
1497
1501
|
item: f,
|
|
1498
1502
|
key: f.id
|
|
1499
1503
|
}, null, 8, ["item"]))), 128))
|
|
@@ -1504,33 +1508,33 @@ const ln = /* @__PURE__ */ h({
|
|
|
1504
1508
|
key: 2,
|
|
1505
1509
|
class: a(l.question.cssClasses.chevronButton)
|
|
1506
1510
|
}, [
|
|
1507
|
-
C(
|
|
1511
|
+
C(d, {
|
|
1508
1512
|
class: a(l.question.cssClasses.chevronButtonSvg),
|
|
1509
1513
|
iconName: l.question.cssClasses.chevronButtonIconId,
|
|
1510
1514
|
size: "auto"
|
|
1511
1515
|
}, null, 8, ["class", "iconName"])
|
|
1512
|
-
], 2)) :
|
|
1516
|
+
], 2)) : m("", !0)
|
|
1513
1517
|
], 2),
|
|
1514
|
-
l.question.isOtherSelected ? (i(),
|
|
1518
|
+
l.question.isOtherSelected ? (i(), q(h, {
|
|
1515
1519
|
key: 0,
|
|
1516
1520
|
question: l.question
|
|
1517
|
-
}, null, 8, ["question"])) :
|
|
1521
|
+
}, null, 8, ["question"])) : m("", !0)
|
|
1518
1522
|
], 2);
|
|
1519
1523
|
};
|
|
1520
1524
|
}
|
|
1521
|
-
}), an = ["value", "disabled"], un = /* @__PURE__ */
|
|
1525
|
+
}), an = ["value", "disabled"], un = /* @__PURE__ */ g({
|
|
1522
1526
|
__name: "OptionItem",
|
|
1523
1527
|
props: {
|
|
1524
1528
|
item: {}
|
|
1525
1529
|
},
|
|
1526
1530
|
setup(r) {
|
|
1527
|
-
const s = r, n =
|
|
1531
|
+
const s = r, n = G(() => s.item.locText);
|
|
1528
1532
|
return B(() => s.item), (e, t) => (i(), u("option", {
|
|
1529
1533
|
value: e.item.value,
|
|
1530
1534
|
disabled: !e.item.isEnabled
|
|
1531
1535
|
}, T(w(n)), 9, an));
|
|
1532
1536
|
}
|
|
1533
|
-
}), dn = ["id", "disabled", "tabindex", "role", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], mn = { style: { visibility: "hidden" } }, cn = ["disabled", "inputmode", "role", "id", "tabindex", "readonly", "aria-expanded", "aria-controls", "aria-label", "aria-labelledby", "aria-describedby", "aria-activedescendant", "placeholder"], pn = ["id", "aria-label", "aria-labelledby", "aria-describedby", "tabindex"], vn = /* @__PURE__ */
|
|
1537
|
+
}), dn = ["id", "disabled", "tabindex", "role", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], mn = { style: { visibility: "hidden" } }, cn = ["disabled", "inputmode", "role", "id", "tabindex", "readonly", "aria-expanded", "aria-controls", "aria-label", "aria-labelledby", "aria-describedby", "aria-activedescendant", "placeholder"], pn = ["id", "aria-label", "aria-labelledby", "aria-describedby", "tabindex"], vn = /* @__PURE__ */ g({
|
|
1534
1538
|
__name: "Dropdown",
|
|
1535
1539
|
props: {
|
|
1536
1540
|
question: {}
|
|
@@ -1545,7 +1549,7 @@ const ln = /* @__PURE__ */ h({
|
|
|
1545
1549
|
}, l = (b) => {
|
|
1546
1550
|
var A;
|
|
1547
1551
|
(A = e.value) == null || A.onClear(b);
|
|
1548
|
-
},
|
|
1552
|
+
}, c = (b) => {
|
|
1549
1553
|
var A;
|
|
1550
1554
|
(A = e.value) == null || A.keyHandler(b);
|
|
1551
1555
|
}, v = () => {
|
|
@@ -1553,30 +1557,30 @@ const ln = /* @__PURE__ */ h({
|
|
|
1553
1557
|
const b = n.value, A = e.value.inputStringRendered;
|
|
1554
1558
|
Be.isTwoValueEquals(A, b.value, !1, !0, !1) || (b.value = e.value.inputStringRendered);
|
|
1555
1559
|
}
|
|
1556
|
-
},
|
|
1560
|
+
}, d = (b) => {
|
|
1557
1561
|
var A;
|
|
1558
1562
|
(A = e.value) == null || A.onBlur(b), v();
|
|
1559
|
-
},
|
|
1563
|
+
}, h = (b) => {
|
|
1560
1564
|
var A;
|
|
1561
1565
|
(A = e.value) == null || A.onFocus(b);
|
|
1562
1566
|
}, f = (b) => {
|
|
1563
1567
|
e.value.inputStringRendered = b.target.value;
|
|
1564
1568
|
}, k = S(
|
|
1565
1569
|
() => s.question.showSelectedItemLocText
|
|
1566
|
-
),
|
|
1570
|
+
), D = S(() => s.question.selectedItemLocText);
|
|
1567
1571
|
return B(() => e.value), x(v), M(v), (b, A) => {
|
|
1568
|
-
const W = y("survey-string"), F = y("sv-svg-icon"),
|
|
1572
|
+
const W = y("survey-string"), F = y("sv-svg-icon"), J = y("sv-popup");
|
|
1569
1573
|
return i(), u("div", {
|
|
1570
1574
|
class: a(b.question.cssClasses.selectWrapper),
|
|
1571
1575
|
onClick: t
|
|
1572
1576
|
}, [
|
|
1573
|
-
b.question.isReadOnly ?
|
|
1577
|
+
b.question.isReadOnly ? m("", !0) : (i(), u("div", {
|
|
1574
1578
|
key: 0,
|
|
1575
1579
|
id: b.question.inputId,
|
|
1576
1580
|
disabled: b.question.isDisabledAttr ? !0 : null,
|
|
1577
1581
|
tabindex: e.value.noTabIndex ? void 0 : 0,
|
|
1578
|
-
onKeydown:
|
|
1579
|
-
onBlur:
|
|
1582
|
+
onKeydown: c,
|
|
1583
|
+
onBlur: d,
|
|
1580
1584
|
class: a(b.question.getControlClass()),
|
|
1581
1585
|
role: b.question.ariaRole,
|
|
1582
1586
|
"aria-required": b.question.ariaRequired,
|
|
@@ -1593,26 +1597,26 @@ const ln = /* @__PURE__ */ h({
|
|
|
1593
1597
|
class: a(b.question.cssClasses.hintPrefix)
|
|
1594
1598
|
}, [
|
|
1595
1599
|
p("span", null, T(e.value.hintStringPrefix), 1)
|
|
1596
|
-
], 2)) :
|
|
1600
|
+
], 2)) : m("", !0),
|
|
1597
1601
|
p("div", {
|
|
1598
1602
|
class: a(b.question.cssClasses.controlValue)
|
|
1599
1603
|
}, [
|
|
1600
|
-
k.value ? (i(),
|
|
1604
|
+
k.value ? (i(), q(W, {
|
|
1601
1605
|
key: 0,
|
|
1602
|
-
locString:
|
|
1603
|
-
}, null, 8, ["locString"])) :
|
|
1606
|
+
locString: D.value
|
|
1607
|
+
}, null, 8, ["locString"])) : m("", !0),
|
|
1604
1608
|
e.value.showHintString ? (i(), u("div", {
|
|
1605
1609
|
key: 1,
|
|
1606
1610
|
class: a(b.question.cssClasses.hintSuffix)
|
|
1607
1611
|
}, [
|
|
1608
1612
|
p("span", mn, T(e.value.inputStringRendered), 1),
|
|
1609
1613
|
p("span", null, T(e.value.hintStringSuffix), 1)
|
|
1610
|
-
], 2)) :
|
|
1611
|
-
b.question.showInputFieldComponent ? (i(),
|
|
1614
|
+
], 2)) : m("", !0),
|
|
1615
|
+
b.question.showInputFieldComponent ? (i(), q(R(b.question.inputFieldComponentName), {
|
|
1612
1616
|
key: 2,
|
|
1613
1617
|
item: e.value.getSelectedAction(),
|
|
1614
1618
|
question: b.question
|
|
1615
|
-
}, null, 8, ["item", "question"])) :
|
|
1619
|
+
}, null, 8, ["item", "question"])) : m("", !0),
|
|
1616
1620
|
p("input", {
|
|
1617
1621
|
type: "text",
|
|
1618
1622
|
ref_key: "inputElement",
|
|
@@ -1633,8 +1637,8 @@ const ln = /* @__PURE__ */ h({
|
|
|
1633
1637
|
"aria-activedescendant": e.value.ariaActivedescendant,
|
|
1634
1638
|
placeholder: e.value.placeholderRendered,
|
|
1635
1639
|
onInput: f,
|
|
1636
|
-
onBlur:
|
|
1637
|
-
onFocus:
|
|
1640
|
+
onBlur: d,
|
|
1641
|
+
onFocus: h
|
|
1638
1642
|
}, null, 42, cn)
|
|
1639
1643
|
], 2),
|
|
1640
1644
|
b.question.allowClear && b.question.cssClasses.cleanButtonIconId ? N((i(), u("div", {
|
|
@@ -1651,7 +1655,7 @@ const ln = /* @__PURE__ */ h({
|
|
|
1651
1655
|
}, null, 8, ["class", "iconName", "title"])
|
|
1652
1656
|
], 2)), [
|
|
1653
1657
|
[H, b.question.showClearButton]
|
|
1654
|
-
]) :
|
|
1658
|
+
]) : m("", !0)
|
|
1655
1659
|
], 42, dn)),
|
|
1656
1660
|
b.question.isReadOnly ? (i(), u("div", {
|
|
1657
1661
|
key: 2,
|
|
@@ -1662,12 +1666,12 @@ const ln = /* @__PURE__ */ h({
|
|
|
1662
1666
|
tabindex: b.question.isDisabledAttr ? void 0 : 0,
|
|
1663
1667
|
class: a(b.question.getControlClass())
|
|
1664
1668
|
}, [
|
|
1665
|
-
b.question.selectedItemLocText ? (i(),
|
|
1669
|
+
b.question.selectedItemLocText ? (i(), q(W, {
|
|
1666
1670
|
key: 0,
|
|
1667
1671
|
locString: b.question.selectedItemLocText
|
|
1668
|
-
}, null, 8, ["locString"])) :
|
|
1672
|
+
}, null, 8, ["locString"])) : m("", !0),
|
|
1669
1673
|
p("div", null, T(b.question.readOnlyText), 1)
|
|
1670
|
-
], 10, pn)) : (i(),
|
|
1674
|
+
], 10, pn)) : (i(), q(J, {
|
|
1671
1675
|
key: 1,
|
|
1672
1676
|
model: b.question.dropdownListModel.popupModel
|
|
1673
1677
|
}, null, 8, ["model"])),
|
|
@@ -1682,11 +1686,11 @@ const ln = /* @__PURE__ */ h({
|
|
|
1682
1686
|
iconName: b.question.cssClasses.chevronButtonIconId,
|
|
1683
1687
|
size: "auto"
|
|
1684
1688
|
}, null, 8, ["class", "iconName"])
|
|
1685
|
-
], 34)) :
|
|
1689
|
+
], 34)) : m("", !0)
|
|
1686
1690
|
], 2);
|
|
1687
1691
|
};
|
|
1688
1692
|
}
|
|
1689
|
-
}), yn = /* @__PURE__ */
|
|
1693
|
+
}), yn = /* @__PURE__ */ g({
|
|
1690
1694
|
inheritAttrs: !1,
|
|
1691
1695
|
__name: "Tagbox",
|
|
1692
1696
|
props: {
|
|
@@ -1702,124 +1706,124 @@ const ln = /* @__PURE__ */ h({
|
|
|
1702
1706
|
ref: n
|
|
1703
1707
|
}, [
|
|
1704
1708
|
C(o, { question: e.question }, null, 8, ["question"]),
|
|
1705
|
-
e.question.isOtherSelected ? (i(),
|
|
1709
|
+
e.question.isOtherSelected ? (i(), q(l, {
|
|
1706
1710
|
key: 0,
|
|
1707
1711
|
question: e.question
|
|
1708
|
-
}, null, 8, ["question"])) :
|
|
1712
|
+
}, null, 8, ["question"])) : m("", !0)
|
|
1709
1713
|
], 2);
|
|
1710
1714
|
};
|
|
1711
1715
|
}
|
|
1712
|
-
}), qn = ["id", "tabindex", "disabled", "role", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], gn = ["id", "aria-label", "aria-labelledby", "aria-describedby", "tabindex"], hn = /* @__PURE__ */
|
|
1716
|
+
}), qn = ["id", "tabindex", "disabled", "role", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], gn = ["id", "aria-label", "aria-labelledby", "aria-describedby", "tabindex"], hn = /* @__PURE__ */ g({
|
|
1713
1717
|
__name: "Tagbox",
|
|
1714
1718
|
props: {
|
|
1715
1719
|
question: {}
|
|
1716
1720
|
},
|
|
1717
1721
|
setup(r) {
|
|
1718
1722
|
const s = r, n = S(() => {
|
|
1719
|
-
const
|
|
1720
|
-
return
|
|
1721
|
-
}), e = (
|
|
1722
|
-
var
|
|
1723
|
-
(
|
|
1724
|
-
}, t = (
|
|
1725
|
-
var
|
|
1726
|
-
(
|
|
1727
|
-
}, o = (
|
|
1728
|
-
var
|
|
1729
|
-
(
|
|
1730
|
-
}, l = (
|
|
1731
|
-
var
|
|
1732
|
-
(
|
|
1733
|
-
},
|
|
1734
|
-
var
|
|
1735
|
-
(
|
|
1723
|
+
const d = s.question;
|
|
1724
|
+
return d.dropdownListModel || (d.dropdownListModel = new Le(d)), s.question.dropdownListModel;
|
|
1725
|
+
}), e = (d) => {
|
|
1726
|
+
var h;
|
|
1727
|
+
(h = n.value) == null || h.onClick(d);
|
|
1728
|
+
}, t = (d) => {
|
|
1729
|
+
var h;
|
|
1730
|
+
(h = n.value) == null || h.chevronPointerDown(d);
|
|
1731
|
+
}, o = (d) => {
|
|
1732
|
+
var h;
|
|
1733
|
+
(h = n.value) == null || h.onClear(d);
|
|
1734
|
+
}, l = (d) => {
|
|
1735
|
+
var h;
|
|
1736
|
+
(h = n.value) == null || h.keyHandler(d);
|
|
1737
|
+
}, c = (d) => {
|
|
1738
|
+
var h;
|
|
1739
|
+
(h = n.value) == null || h.onBlur(d);
|
|
1736
1740
|
}, v = re(() => s.question.selectedChoices);
|
|
1737
|
-
return B(() => n.value), (
|
|
1738
|
-
const f = y("sv-tagbox-item"), k = y("sv-tagbox-filter"),
|
|
1741
|
+
return B(() => n.value), (d, h) => {
|
|
1742
|
+
const f = y("sv-tagbox-item"), k = y("sv-tagbox-filter"), D = y("sv-svg-icon"), b = y("sv-popup"), A = y("survey-string");
|
|
1739
1743
|
return i(), u("div", {
|
|
1740
|
-
class: a(
|
|
1744
|
+
class: a(d.question.cssClasses.selectWrapper),
|
|
1741
1745
|
onClick: e
|
|
1742
1746
|
}, [
|
|
1743
|
-
|
|
1747
|
+
d.question.isReadOnly ? m("", !0) : (i(), u("div", {
|
|
1744
1748
|
key: 0,
|
|
1745
|
-
id:
|
|
1749
|
+
id: d.question.inputId,
|
|
1746
1750
|
tabindex: n.value.noTabIndex ? void 0 : 0,
|
|
1747
|
-
disabled:
|
|
1751
|
+
disabled: d.question.isDisabledAttr ? !0 : null,
|
|
1748
1752
|
onKeydown: l,
|
|
1749
|
-
onBlur:
|
|
1750
|
-
class: a(
|
|
1751
|
-
role:
|
|
1752
|
-
"aria-required":
|
|
1753
|
-
"aria-label":
|
|
1754
|
-
"aria-invalid":
|
|
1755
|
-
"aria-errormessage":
|
|
1756
|
-
"aria-expanded":
|
|
1753
|
+
onBlur: c,
|
|
1754
|
+
class: a(d.question.getControlClass()),
|
|
1755
|
+
role: d.question.ariaRole,
|
|
1756
|
+
"aria-required": d.question.ariaRequired,
|
|
1757
|
+
"aria-label": d.question.ariaLabel,
|
|
1758
|
+
"aria-invalid": d.question.ariaInvalid,
|
|
1759
|
+
"aria-errormessage": d.question.ariaErrormessage,
|
|
1760
|
+
"aria-expanded": d.question.ariaExpanded === null ? void 0 : d.question.ariaExpanded === "true",
|
|
1757
1761
|
"aria-controls": n.value.listElementId,
|
|
1758
1762
|
"aria-activedescendant": n.value.ariaActivedescendant,
|
|
1759
|
-
required:
|
|
1763
|
+
required: d.question.isRequired ? !0 : null
|
|
1760
1764
|
}, [
|
|
1761
1765
|
p("div", {
|
|
1762
|
-
class: a(
|
|
1766
|
+
class: a(d.question.cssClasses.controlValue)
|
|
1763
1767
|
}, [
|
|
1764
|
-
(i(!0), u(
|
|
1768
|
+
(i(!0), u(_, null, L(w(v), (W, F) => (i(), q(f, {
|
|
1765
1769
|
item: W,
|
|
1766
|
-
question:
|
|
1770
|
+
question: d.question,
|
|
1767
1771
|
key: "item" + F
|
|
1768
1772
|
}, null, 8, ["item", "question"]))), 128)),
|
|
1769
1773
|
C(k, {
|
|
1770
1774
|
model: n.value,
|
|
1771
|
-
question:
|
|
1775
|
+
question: d.question
|
|
1772
1776
|
}, null, 8, ["model", "question"])
|
|
1773
1777
|
], 2),
|
|
1774
|
-
|
|
1778
|
+
d.question.allowClear && d.question.cssClasses.cleanButtonIconId ? N((i(), u("div", {
|
|
1775
1779
|
key: 0,
|
|
1776
|
-
class: a(
|
|
1780
|
+
class: a(d.question.cssClasses.cleanButton),
|
|
1777
1781
|
onClick: o,
|
|
1778
1782
|
"aria-hidden": "true"
|
|
1779
1783
|
}, [
|
|
1780
|
-
C(
|
|
1781
|
-
class: a(
|
|
1782
|
-
iconName:
|
|
1783
|
-
title:
|
|
1784
|
+
C(D, {
|
|
1785
|
+
class: a(d.question.cssClasses.cleanButtonSvg),
|
|
1786
|
+
iconName: d.question.cssClasses.cleanButtonIconId,
|
|
1787
|
+
title: d.question.clearCaption,
|
|
1784
1788
|
size: "auto"
|
|
1785
1789
|
}, null, 8, ["class", "iconName", "title"])
|
|
1786
1790
|
], 2)), [
|
|
1787
|
-
[H,
|
|
1788
|
-
]) :
|
|
1791
|
+
[H, d.question.showClearButton]
|
|
1792
|
+
]) : m("", !0)
|
|
1789
1793
|
], 42, qn)),
|
|
1790
|
-
|
|
1794
|
+
d.question.isReadOnly ? (i(), u("div", {
|
|
1791
1795
|
key: 2,
|
|
1792
|
-
id:
|
|
1793
|
-
"aria-label":
|
|
1794
|
-
"aria-labelledby":
|
|
1795
|
-
"aria-describedby":
|
|
1796
|
-
tabindex:
|
|
1797
|
-
class: a(
|
|
1796
|
+
id: d.question.inputId,
|
|
1797
|
+
"aria-label": d.question.a11y_input_ariaLabel,
|
|
1798
|
+
"aria-labelledby": d.question.a11y_input_ariaLabelledBy,
|
|
1799
|
+
"aria-describedby": d.question.a11y_input_ariaDescribedBy,
|
|
1800
|
+
tabindex: d.question.isDisabledAttr ? void 0 : 0,
|
|
1801
|
+
class: a(d.question.getControlClass())
|
|
1798
1802
|
}, [
|
|
1799
|
-
|
|
1803
|
+
d.question.locReadOnlyText ? (i(), q(A, {
|
|
1800
1804
|
key: 0,
|
|
1801
|
-
locString:
|
|
1802
|
-
}, null, 8, ["locString"])) :
|
|
1803
|
-
], 10, gn)) : (i(),
|
|
1805
|
+
locString: d.question.locReadOnlyText
|
|
1806
|
+
}, null, 8, ["locString"])) : m("", !0)
|
|
1807
|
+
], 10, gn)) : (i(), q(b, {
|
|
1804
1808
|
key: 1,
|
|
1805
1809
|
model: n.value.popupModel
|
|
1806
1810
|
}, null, 8, ["model"])),
|
|
1807
|
-
|
|
1811
|
+
d.question.cssClasses.chevronButtonIconId ? (i(), u("div", {
|
|
1808
1812
|
key: 3,
|
|
1809
|
-
class: a(
|
|
1813
|
+
class: a(d.question.cssClasses.chevronButton),
|
|
1810
1814
|
onPointerdown: t,
|
|
1811
1815
|
"aria-hidden": "true"
|
|
1812
1816
|
}, [
|
|
1813
|
-
C(
|
|
1814
|
-
class: a(
|
|
1815
|
-
iconName:
|
|
1817
|
+
C(D, {
|
|
1818
|
+
class: a(d.question.cssClasses.chevronButtonSvg),
|
|
1819
|
+
iconName: d.question.cssClasses.chevronButtonIconId,
|
|
1816
1820
|
size: "auto"
|
|
1817
1821
|
}, null, 8, ["class", "iconName"])
|
|
1818
|
-
], 34)) :
|
|
1822
|
+
], 34)) : m("", !0)
|
|
1819
1823
|
], 2);
|
|
1820
1824
|
};
|
|
1821
1825
|
}
|
|
1822
|
-
}), Cn = { style: { visibility: "hidden" } }, bn = ["placeholder", "disabled", "inputmode", "role", "aria-expanded", "aria-controls", "aria-label", "aria-labelledby", "aria-describedby", "aria-activedescendant", "id", "readonly", "size"], kn = /* @__PURE__ */
|
|
1826
|
+
}), Cn = { style: { visibility: "hidden" } }, bn = ["placeholder", "disabled", "inputmode", "role", "aria-expanded", "aria-controls", "aria-label", "aria-labelledby", "aria-describedby", "aria-activedescendant", "id", "readonly", "size"], kn = /* @__PURE__ */ g({
|
|
1823
1827
|
__name: "TagboxFilter",
|
|
1824
1828
|
props: {
|
|
1825
1829
|
question: {},
|
|
@@ -1827,8 +1831,8 @@ const ln = /* @__PURE__ */ h({
|
|
|
1827
1831
|
},
|
|
1828
1832
|
setup(r) {
|
|
1829
1833
|
const s = r, n = (l) => {
|
|
1830
|
-
const
|
|
1831
|
-
|
|
1834
|
+
const c = s.model;
|
|
1835
|
+
c.inputStringRendered = l.target.value;
|
|
1832
1836
|
}, e = (l) => {
|
|
1833
1837
|
s.model.inputKeyHandler(l);
|
|
1834
1838
|
}, t = (l) => {
|
|
@@ -1836,7 +1840,7 @@ const ln = /* @__PURE__ */ h({
|
|
|
1836
1840
|
}, o = (l) => {
|
|
1837
1841
|
s.model.onFocus(l);
|
|
1838
1842
|
};
|
|
1839
|
-
return B(() => s.model), (l,
|
|
1843
|
+
return B(() => s.model), (l, c) => {
|
|
1840
1844
|
const v = y("survey-string");
|
|
1841
1845
|
return i(), u("div", {
|
|
1842
1846
|
class: a(l.question.cssClasses.hint)
|
|
@@ -1846,25 +1850,25 @@ const ln = /* @__PURE__ */ h({
|
|
|
1846
1850
|
class: a(l.question.cssClasses.hintPrefix)
|
|
1847
1851
|
}, [
|
|
1848
1852
|
p("span", null, T(l.model.hintStringPrefix), 1)
|
|
1849
|
-
], 2)) :
|
|
1853
|
+
], 2)) : m("", !0),
|
|
1850
1854
|
p("div", {
|
|
1851
1855
|
class: a(l.question.cssClasses.hintSuffixWrapper)
|
|
1852
1856
|
}, [
|
|
1853
|
-
l.question.showSelectedItemLocText ? (i(),
|
|
1857
|
+
l.question.showSelectedItemLocText ? (i(), q(v, {
|
|
1854
1858
|
key: 0,
|
|
1855
1859
|
locString: l.question.selectedItemLocText
|
|
1856
|
-
}, null, 8, ["locString"])) :
|
|
1860
|
+
}, null, 8, ["locString"])) : m("", !0),
|
|
1857
1861
|
l.model.showHintString ? (i(), u("div", {
|
|
1858
1862
|
key: 1,
|
|
1859
1863
|
class: a(l.question.cssClasses.hintSuffix)
|
|
1860
1864
|
}, [
|
|
1861
1865
|
p("span", Cn, T(l.model.inputStringRendered), 1),
|
|
1862
1866
|
p("span", null, T(l.model.hintStringSuffix), 1)
|
|
1863
|
-
], 2)) :
|
|
1867
|
+
], 2)) : m("", !0),
|
|
1864
1868
|
N(p("input", {
|
|
1865
1869
|
type: "text",
|
|
1866
1870
|
autocomplete: "off",
|
|
1867
|
-
"onUpdate:modelValue":
|
|
1871
|
+
"onUpdate:modelValue": c[0] || (c[0] = (d) => l.model.inputStringRendered = d),
|
|
1868
1872
|
class: a(l.question.cssClasses.filterStringInput),
|
|
1869
1873
|
placeholder: l.model.filterStringPlaceholder,
|
|
1870
1874
|
disabled: l.question.isDisabledAttr,
|
|
@@ -1890,7 +1894,7 @@ const ln = /* @__PURE__ */ h({
|
|
|
1890
1894
|
], 2);
|
|
1891
1895
|
};
|
|
1892
1896
|
}
|
|
1893
|
-
}), fn = { class: "sv-tagbox__item-text" }, wn = /* @__PURE__ */
|
|
1897
|
+
}), fn = { class: "sv-tagbox__item-text" }, wn = /* @__PURE__ */ g({
|
|
1894
1898
|
__name: "TagboxItem",
|
|
1895
1899
|
props: {
|
|
1896
1900
|
question: {},
|
|
@@ -1924,7 +1928,7 @@ const ln = /* @__PURE__ */ h({
|
|
|
1924
1928
|
]);
|
|
1925
1929
|
};
|
|
1926
1930
|
}
|
|
1927
|
-
}), In = /* @__PURE__ */
|
|
1931
|
+
}), In = /* @__PURE__ */ g({
|
|
1928
1932
|
inheritAttrs: !1,
|
|
1929
1933
|
__name: "Ranking",
|
|
1930
1934
|
props: {
|
|
@@ -1933,7 +1937,7 @@ const ln = /* @__PURE__ */ h({
|
|
|
1933
1937
|
setup(r) {
|
|
1934
1938
|
const s = r, n = $(null);
|
|
1935
1939
|
P(s, n);
|
|
1936
|
-
const e = (o) => s.question.getItemValueWrapperComponentName(o) || "survey-ranking-item", t = (o, l,
|
|
1940
|
+
const e = (o) => s.question.getItemValueWrapperComponentName(o) || "survey-ranking-item", t = (o, l, c) => ({
|
|
1937
1941
|
componentName: s.question.getPropertyByName("itemComponent").isDefaultValue(
|
|
1938
1942
|
s.question.itemComponent
|
|
1939
1943
|
) ? "survey-ranking-item" : s.question.itemComponent,
|
|
@@ -1941,65 +1945,65 @@ const ln = /* @__PURE__ */ h({
|
|
|
1941
1945
|
question: s.question,
|
|
1942
1946
|
item: o,
|
|
1943
1947
|
index: l,
|
|
1944
|
-
unrankedItem:
|
|
1948
|
+
unrankedItem: c,
|
|
1945
1949
|
data: s.question.getItemValueWrapperComponentData(o)
|
|
1946
1950
|
}
|
|
1947
1951
|
});
|
|
1948
1952
|
return (o, l) => {
|
|
1949
|
-
const
|
|
1953
|
+
const c = y("survey-string");
|
|
1950
1954
|
return i(), u("div", {
|
|
1951
1955
|
class: a(o.question.rootClass),
|
|
1952
1956
|
ref_key: "root",
|
|
1953
1957
|
ref: n
|
|
1954
1958
|
}, [
|
|
1955
|
-
o.question.selectToRankEnabled ?
|
|
1956
|
-
key: v.value + "-" +
|
|
1957
|
-
}, t(v,
|
|
1959
|
+
o.question.selectToRankEnabled ? m("", !0) : (i(!0), u(_, { key: 0 }, L(o.question.renderedRankingChoices, (v, d) => (i(), q(R(e(v)), E({
|
|
1960
|
+
key: v.value + "-" + d + "-item"
|
|
1961
|
+
}, t(v, d)), null, 16))), 128)),
|
|
1958
1962
|
o.question.selectToRankEnabled ? (i(), u("div", {
|
|
1959
1963
|
key: 1,
|
|
1960
1964
|
class: a(o.question.getContainerClasses("from")),
|
|
1961
1965
|
"data-ranking": "from-container"
|
|
1962
1966
|
}, [
|
|
1963
|
-
(i(!0), u(
|
|
1964
|
-
key: v.value + "-" +
|
|
1965
|
-
}, t(v,
|
|
1967
|
+
(i(!0), u(_, null, L(o.question.renderedUnRankingChoices, (v, d) => (i(), q(R(e(v)), E({
|
|
1968
|
+
key: v.value + "-" + d + "-item"
|
|
1969
|
+
}, t(v, d, !0)), null, 16))), 128)),
|
|
1966
1970
|
o.question.renderedUnRankingChoices.length === 0 ? (i(), u("div", {
|
|
1967
1971
|
key: 0,
|
|
1968
1972
|
class: a(o.question.cssClasses.containerPlaceholder)
|
|
1969
1973
|
}, [
|
|
1970
|
-
C(
|
|
1974
|
+
C(c, {
|
|
1971
1975
|
locString: o.question.locSelectToRankEmptyRankedAreaText
|
|
1972
1976
|
}, null, 8, ["locString"])
|
|
1973
|
-
], 2)) :
|
|
1974
|
-
], 2)) :
|
|
1977
|
+
], 2)) : m("", !0)
|
|
1978
|
+
], 2)) : m("", !0),
|
|
1975
1979
|
o.question.selectToRankEnabled ? (i(), u("div", {
|
|
1976
1980
|
key: 2,
|
|
1977
1981
|
class: a(o.question.cssClasses.containersDivider)
|
|
1978
|
-
}, null, 2)) :
|
|
1982
|
+
}, null, 2)) : m("", !0),
|
|
1979
1983
|
o.question.selectToRankEnabled ? (i(), u("div", {
|
|
1980
1984
|
key: 3,
|
|
1981
1985
|
class: a(o.question.getContainerClasses("to")),
|
|
1982
1986
|
"data-ranking": "to-container"
|
|
1983
1987
|
}, [
|
|
1984
|
-
(i(!0), u(
|
|
1985
|
-
key: v.value + "-" +
|
|
1986
|
-
}, t(v,
|
|
1988
|
+
(i(!0), u(_, null, L(o.question.renderedRankingChoices, (v, d) => (i(), q(R(e(v)), E({
|
|
1989
|
+
key: v.value + "-" + d + "-item"
|
|
1990
|
+
}, t(v, d)), null, 16))), 128)),
|
|
1987
1991
|
o.question.renderedRankingChoices.length === 0 ? (i(), u("div", {
|
|
1988
1992
|
key: 0,
|
|
1989
1993
|
class: a(o.question.cssClasses.containerPlaceholder)
|
|
1990
1994
|
}, [
|
|
1991
|
-
C(
|
|
1995
|
+
C(c, {
|
|
1992
1996
|
locString: o.question.locSelectToRankEmptyUnrankedAreaText
|
|
1993
1997
|
}, null, 8, ["locString"])
|
|
1994
|
-
], 2)) :
|
|
1995
|
-
], 2)) :
|
|
1998
|
+
], 2)) : m("", !0)
|
|
1999
|
+
], 2)) : m("", !0)
|
|
1996
2000
|
], 2);
|
|
1997
2001
|
};
|
|
1998
2002
|
}
|
|
1999
2003
|
}), Sn = ["tabindex", "data-sv-drop-target-ranking-item"], Rn = {
|
|
2000
2004
|
tabindex: "-1",
|
|
2001
2005
|
style: { outline: "none" }
|
|
2002
|
-
}, Tn = ["xlink:href"], $n = ["xlink:href"], _n = ["xlink:href"], Dn = /* @__PURE__ */
|
|
2006
|
+
}, Tn = ["xlink:href"], $n = ["xlink:href"], _n = ["xlink:href"], Dn = /* @__PURE__ */ g({
|
|
2003
2007
|
inheritAttrs: !1,
|
|
2004
2008
|
__name: "RankingItem",
|
|
2005
2009
|
props: {
|
|
@@ -2072,7 +2076,7 @@ const ln = /* @__PURE__ */ h({
|
|
|
2072
2076
|
}, null, 8, _n)
|
|
2073
2077
|
]))
|
|
2074
2078
|
], 2)),
|
|
2075
|
-
(i(),
|
|
2079
|
+
(i(), q(R(e.question.itemContentComponent), {
|
|
2076
2080
|
item: e.item,
|
|
2077
2081
|
cssClasses: e.question.cssClasses
|
|
2078
2082
|
}, null, 8, ["item", "cssClasses"]))
|
|
@@ -2080,7 +2084,7 @@ const ln = /* @__PURE__ */ h({
|
|
|
2080
2084
|
])
|
|
2081
2085
|
], 42, Sn));
|
|
2082
2086
|
}
|
|
2083
|
-
}), Bn = /* @__PURE__ */
|
|
2087
|
+
}), Bn = /* @__PURE__ */ g({
|
|
2084
2088
|
inheritAttrs: !1,
|
|
2085
2089
|
__name: "RankingItemContent",
|
|
2086
2090
|
props: {
|
|
@@ -2102,7 +2106,7 @@ const ln = /* @__PURE__ */ h({
|
|
|
2102
2106
|
}), Ln = { role: "radiogroup" }, An = /* @__PURE__ */ p("legend", {
|
|
2103
2107
|
role: "presentation",
|
|
2104
2108
|
class: "sv-hidden"
|
|
2105
|
-
}, null, -1), Nn = /* @__PURE__ */
|
|
2109
|
+
}, null, -1), Nn = /* @__PURE__ */ g({
|
|
2106
2110
|
inheritAttrs: !1,
|
|
2107
2111
|
__name: "Rating",
|
|
2108
2112
|
props: {
|
|
@@ -2128,10 +2132,10 @@ const ln = /* @__PURE__ */ h({
|
|
|
2128
2132
|
C(l, {
|
|
2129
2133
|
locString: t.question.locMinRateDescription
|
|
2130
2134
|
}, null, 8, ["locString"])
|
|
2131
|
-
], 2)) :
|
|
2132
|
-
(i(!0), u(
|
|
2135
|
+
], 2)) : m("", !0),
|
|
2136
|
+
(i(!0), u(_, null, L(t.question.renderedRateItems, (c, v) => (i(), q(R(t.question.itemComponent), {
|
|
2133
2137
|
key: e(v),
|
|
2134
|
-
item:
|
|
2138
|
+
item: c,
|
|
2135
2139
|
index: v,
|
|
2136
2140
|
question: t.question
|
|
2137
2141
|
}, null, 8, ["item", "index", "question"]))), 128)),
|
|
@@ -2142,12 +2146,12 @@ const ln = /* @__PURE__ */ h({
|
|
|
2142
2146
|
C(l, {
|
|
2143
2147
|
locString: t.question.locMaxRateDescription
|
|
2144
2148
|
}, null, 8, ["locString"])
|
|
2145
|
-
], 2)) :
|
|
2149
|
+
], 2)) : m("", !0)
|
|
2146
2150
|
])
|
|
2147
2151
|
], 2);
|
|
2148
2152
|
};
|
|
2149
2153
|
}
|
|
2150
|
-
}), Pn = ["name", "id", "value", "disabled", "readonly", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], Mn = /* @__PURE__ */
|
|
2154
|
+
}), Pn = ["name", "id", "value", "disabled", "readonly", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], Mn = /* @__PURE__ */ g({
|
|
2151
2155
|
__name: "RatingItem",
|
|
2152
2156
|
props: {
|
|
2153
2157
|
question: {},
|
|
@@ -2187,7 +2191,7 @@ const ln = /* @__PURE__ */ h({
|
|
|
2187
2191
|
], 34);
|
|
2188
2192
|
};
|
|
2189
2193
|
}
|
|
2190
|
-
}), En = ["name", "id", "value", "disabled", "readonly", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], Hn = /* @__PURE__ */
|
|
2194
|
+
}), En = ["name", "id", "value", "disabled", "readonly", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], Hn = /* @__PURE__ */ g({
|
|
2191
2195
|
__name: "RatingItemSmiley",
|
|
2192
2196
|
props: {
|
|
2193
2197
|
question: {},
|
|
@@ -2228,7 +2232,7 @@ const ln = /* @__PURE__ */ h({
|
|
|
2228
2232
|
], 38);
|
|
2229
2233
|
};
|
|
2230
2234
|
}
|
|
2231
|
-
}), Wn = ["name", "id", "value", "disabled", "readonly", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], Fn = /* @__PURE__ */
|
|
2235
|
+
}), Wn = ["name", "id", "value", "disabled", "readonly", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], Fn = /* @__PURE__ */ g({
|
|
2232
2236
|
__name: "RatingItemStar",
|
|
2233
2237
|
props: {
|
|
2234
2238
|
question: {},
|
|
@@ -2278,7 +2282,7 @@ const ln = /* @__PURE__ */ h({
|
|
|
2278
2282
|
}), Vn = { class: "sd-rating-dropdown-item" }, On = { class: "sd-rating-dropdown-item_text" }, zn = {
|
|
2279
2283
|
key: 0,
|
|
2280
2284
|
class: "sd-rating-dropdown-item_description"
|
|
2281
|
-
}, Un = /* @__PURE__ */
|
|
2285
|
+
}, Un = /* @__PURE__ */ g({
|
|
2282
2286
|
__name: "RatingDropdownItem",
|
|
2283
2287
|
props: {
|
|
2284
2288
|
item: {}
|
|
@@ -2293,7 +2297,7 @@ const ln = /* @__PURE__ */ h({
|
|
|
2293
2297
|
C(t, {
|
|
2294
2298
|
locString: n.item.description
|
|
2295
2299
|
}, null, 8, ["locString"])
|
|
2296
|
-
])) :
|
|
2300
|
+
])) : m("", !0)
|
|
2297
2301
|
]);
|
|
2298
2302
|
};
|
|
2299
2303
|
}
|
|
@@ -2303,7 +2307,7 @@ se.Instance.registerRenderer(
|
|
|
2303
2307
|
"dropdown",
|
|
2304
2308
|
"sv-rating-dropdown"
|
|
2305
2309
|
);
|
|
2306
|
-
const Kn = /* @__PURE__ */
|
|
2310
|
+
const Kn = /* @__PURE__ */ g({
|
|
2307
2311
|
inheritAttrs: !1,
|
|
2308
2312
|
__name: "RatingDropdown",
|
|
2309
2313
|
props: {
|
|
@@ -2322,7 +2326,7 @@ const Kn = /* @__PURE__ */ h({
|
|
|
2322
2326
|
], 2);
|
|
2323
2327
|
};
|
|
2324
2328
|
}
|
|
2325
|
-
}), Qn = ["name", "value", "id", ".indeterminate", "disabled", "readonly", "role", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], jn = /* @__PURE__ */
|
|
2329
|
+
}), Qn = ["name", "value", "id", ".indeterminate", "disabled", "readonly", "role", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], jn = /* @__PURE__ */ g({
|
|
2326
2330
|
inheritAttrs: !1,
|
|
2327
2331
|
__name: "BooleanSwitch",
|
|
2328
2332
|
props: {
|
|
@@ -2338,12 +2342,12 @@ const Kn = /* @__PURE__ */ h({
|
|
|
2338
2342
|
};
|
|
2339
2343
|
return (o, l) => {
|
|
2340
2344
|
var v;
|
|
2341
|
-
const
|
|
2345
|
+
const c = y("survey-string");
|
|
2342
2346
|
return i(), u("div", {
|
|
2343
2347
|
class: a(o.question.cssClasses.root),
|
|
2344
2348
|
ref_key: "root",
|
|
2345
2349
|
ref: n,
|
|
2346
|
-
onKeydown: l[4] || (l[4] = (
|
|
2350
|
+
onKeydown: l[4] || (l[4] = (d) => o.question.onKeyDownCore(d))
|
|
2347
2351
|
}, [
|
|
2348
2352
|
p("label", {
|
|
2349
2353
|
class: a(o.question.getItemCss())
|
|
@@ -2352,7 +2356,7 @@ const Kn = /* @__PURE__ */ h({
|
|
|
2352
2356
|
type: "checkbox",
|
|
2353
2357
|
name: o.question.name,
|
|
2354
2358
|
value: (v = o.question.booleanValue) != null ? v : "",
|
|
2355
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
2359
|
+
"onUpdate:modelValue": l[0] || (l[0] = (d) => o.question.booleanValue = d),
|
|
2356
2360
|
class: a(o.question.cssClasses.control),
|
|
2357
2361
|
id: o.question.inputId,
|
|
2358
2362
|
".indeterminate": o.question.isIndeterminate,
|
|
@@ -2370,19 +2374,19 @@ const Kn = /* @__PURE__ */ h({
|
|
|
2370
2374
|
]),
|
|
2371
2375
|
p("div", {
|
|
2372
2376
|
class: a(o.question.cssClasses.sliderGhost),
|
|
2373
|
-
onClick: l[1] || (l[1] = (
|
|
2377
|
+
onClick: l[1] || (l[1] = (d) => e(d, o.question.swapOrder))
|
|
2374
2378
|
}, [
|
|
2375
2379
|
p("span", {
|
|
2376
2380
|
class: a(o.question.getLabelCss(o.question.swapOrder))
|
|
2377
2381
|
}, [
|
|
2378
|
-
C(
|
|
2382
|
+
C(c, {
|
|
2379
2383
|
locString: o.question.locLabelLeft
|
|
2380
2384
|
}, null, 8, ["locString"])
|
|
2381
2385
|
], 2)
|
|
2382
2386
|
], 2),
|
|
2383
2387
|
p("div", {
|
|
2384
2388
|
class: a(o.question.cssClasses.switch),
|
|
2385
|
-
onClick: l[2] || (l[2] = (
|
|
2389
|
+
onClick: l[2] || (l[2] = (d) => t(d))
|
|
2386
2390
|
}, [
|
|
2387
2391
|
p("span", {
|
|
2388
2392
|
class: a(o.question.cssClasses.slider),
|
|
@@ -2392,20 +2396,20 @@ const Kn = /* @__PURE__ */ h({
|
|
|
2392
2396
|
key: 0,
|
|
2393
2397
|
class: a(o.question.cssClasses.sliderText)
|
|
2394
2398
|
}, [
|
|
2395
|
-
C(
|
|
2399
|
+
C(c, {
|
|
2396
2400
|
locString: o.question.getCheckedLabel()
|
|
2397
2401
|
}, null, 8, ["locString"])
|
|
2398
|
-
], 2)) :
|
|
2402
|
+
], 2)) : m("", !0)
|
|
2399
2403
|
], 6)
|
|
2400
2404
|
], 2),
|
|
2401
2405
|
p("div", {
|
|
2402
2406
|
class: a(o.question.cssClasses.sliderGhost),
|
|
2403
|
-
onClick: l[3] || (l[3] = (
|
|
2407
|
+
onClick: l[3] || (l[3] = (d) => e(d, !o.question.swapOrder))
|
|
2404
2408
|
}, [
|
|
2405
2409
|
p("span", {
|
|
2406
2410
|
class: a(o.question.getLabelCss(!o.question.swapOrder))
|
|
2407
2411
|
}, [
|
|
2408
|
-
C(
|
|
2412
|
+
C(c, {
|
|
2409
2413
|
locString: o.question.locLabelRight
|
|
2410
2414
|
}, null, 8, ["locString"])
|
|
2411
2415
|
], 2)
|
|
@@ -2420,7 +2424,7 @@ se.Instance.registerRenderer(
|
|
|
2420
2424
|
"radio",
|
|
2421
2425
|
"sv-boolean-radio"
|
|
2422
2426
|
);
|
|
2423
|
-
const Gn = /* @__PURE__ */
|
|
2427
|
+
const Gn = /* @__PURE__ */ g({
|
|
2424
2428
|
inheritAttrs: !1,
|
|
2425
2429
|
__name: "BooleanRadio",
|
|
2426
2430
|
props: {
|
|
@@ -2439,19 +2443,19 @@ const Gn = /* @__PURE__ */ h({
|
|
|
2439
2443
|
role: "presentation",
|
|
2440
2444
|
class: a(e.question.cssClasses.radioFieldset)
|
|
2441
2445
|
}, [
|
|
2442
|
-
e.question.swapOrder ? (i(),
|
|
2446
|
+
e.question.swapOrder ? (i(), q(o, {
|
|
2443
2447
|
key: !0,
|
|
2444
2448
|
question: e.question,
|
|
2445
2449
|
locText: e.question.locLabelTrue,
|
|
2446
2450
|
value: !0
|
|
2447
|
-
}, null, 8, ["question", "locText"])) :
|
|
2448
|
-
(i(),
|
|
2451
|
+
}, null, 8, ["question", "locText"])) : m("", !0),
|
|
2452
|
+
(i(), q(o, {
|
|
2449
2453
|
key: !1,
|
|
2450
2454
|
question: e.question,
|
|
2451
2455
|
locText: e.question.locLabelFalse,
|
|
2452
2456
|
value: !1
|
|
2453
2457
|
}, null, 8, ["question", "locText"])),
|
|
2454
|
-
e.question.swapOrder ?
|
|
2458
|
+
e.question.swapOrder ? m("", !0) : (i(), q(o, {
|
|
2455
2459
|
key: !0,
|
|
2456
2460
|
question: e.question,
|
|
2457
2461
|
locText: e.question.locLabelTrue,
|
|
@@ -2461,7 +2465,7 @@ const Gn = /* @__PURE__ */ h({
|
|
|
2461
2465
|
], 2);
|
|
2462
2466
|
};
|
|
2463
2467
|
}
|
|
2464
|
-
}), Jn = ["name", "value", "checked", "aria-errormessage", "disabled", "readonly"], Xn = ["xlink:href"], Yn = /* @__PURE__ */
|
|
2468
|
+
}), Jn = ["name", "value", "checked", "aria-errormessage", "disabled", "readonly"], Xn = ["xlink:href"], Yn = /* @__PURE__ */ g({
|
|
2465
2469
|
__name: "BooleanRadioItem",
|
|
2466
2470
|
props: {
|
|
2467
2471
|
question: {},
|
|
@@ -2504,8 +2508,8 @@ const Gn = /* @__PURE__ */ h({
|
|
|
2504
2508
|
p("use", {
|
|
2505
2509
|
"xlink:href": e.question.itemSvgIcon
|
|
2506
2510
|
}, null, 8, Xn)
|
|
2507
|
-
], 2)) :
|
|
2508
|
-
], 2)) :
|
|
2511
|
+
], 2)) : m("", !0)
|
|
2512
|
+
], 2)) : m("", !0),
|
|
2509
2513
|
p("span", {
|
|
2510
2514
|
class: a(e.question.cssClasses.radioControlLabel)
|
|
2511
2515
|
}, [
|
|
@@ -2521,7 +2525,7 @@ se.Instance.registerRenderer(
|
|
|
2521
2525
|
"checkbox",
|
|
2522
2526
|
"sv-boolean-checkbox"
|
|
2523
2527
|
);
|
|
2524
|
-
const oo = /* @__PURE__ */
|
|
2528
|
+
const oo = /* @__PURE__ */ g({
|
|
2525
2529
|
inheritAttrs: !1,
|
|
2526
2530
|
__name: "BooleanCheckbox",
|
|
2527
2531
|
props: {
|
|
@@ -2532,7 +2536,7 @@ const oo = /* @__PURE__ */ h({
|
|
|
2532
2536
|
const s = r, n = $(null);
|
|
2533
2537
|
return P(s, n), (e, t) => {
|
|
2534
2538
|
var v;
|
|
2535
|
-
const o = y("survey-element-title-content"), l = y("sv-title-actions"),
|
|
2539
|
+
const o = y("survey-element-title-content"), l = y("sv-title-actions"), c = y("survey-string");
|
|
2536
2540
|
return i(), u("div", {
|
|
2537
2541
|
class: a(e.question.cssClasses.rootCheckbox),
|
|
2538
2542
|
ref_key: "root",
|
|
@@ -2548,7 +2552,7 @@ const oo = /* @__PURE__ */ h({
|
|
|
2548
2552
|
type: "checkbox",
|
|
2549
2553
|
name: e.question.name,
|
|
2550
2554
|
value: (v = e.question.booleanValue) != null ? v : "",
|
|
2551
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
2555
|
+
"onUpdate:modelValue": t[0] || (t[0] = (d) => e.question.booleanValue = d),
|
|
2552
2556
|
class: a(e.question.cssClasses.controlCheckbox),
|
|
2553
2557
|
id: e.question.inputId,
|
|
2554
2558
|
".indeterminate": e.question.isIndeterminate,
|
|
@@ -2571,7 +2575,7 @@ const oo = /* @__PURE__ */ h({
|
|
|
2571
2575
|
p("use", {
|
|
2572
2576
|
"xlink:href": e.question.svgIcon
|
|
2573
2577
|
}, null, 8, xn)
|
|
2574
|
-
], 2)) :
|
|
2578
|
+
], 2)) : m("", !0),
|
|
2575
2579
|
eo
|
|
2576
2580
|
], 2),
|
|
2577
2581
|
e.question.isLabelRendered ? (i(), u("span", {
|
|
@@ -2579,32 +2583,32 @@ const oo = /* @__PURE__ */ h({
|
|
|
2579
2583
|
id: e.question.labelRenderedAriaID,
|
|
2580
2584
|
class: a(e.question.cssClasses.checkboxControlLabel)
|
|
2581
2585
|
}, [
|
|
2582
|
-
e.question.hasTitleActions ?
|
|
2586
|
+
e.question.hasTitleActions ? m("", !0) : (i(), q(o, {
|
|
2583
2587
|
key: 0,
|
|
2584
2588
|
element: e.question,
|
|
2585
2589
|
css: e.css
|
|
2586
2590
|
}, null, 8, ["element", "css"])),
|
|
2587
|
-
e.question.hasTitleActions ? (i(),
|
|
2591
|
+
e.question.hasTitleActions ? (i(), q(l, {
|
|
2588
2592
|
key: 1,
|
|
2589
2593
|
element: e.question,
|
|
2590
2594
|
css: e.css
|
|
2591
|
-
}, null, 8, ["element", "css"])) :
|
|
2592
|
-
], 10, so)) :
|
|
2595
|
+
}, null, 8, ["element", "css"])) : m("", !0)
|
|
2596
|
+
], 10, so)) : m("", !0)
|
|
2593
2597
|
], 2),
|
|
2594
2598
|
e.question.canRenderLabelDescription ? (i(), u("div", {
|
|
2595
2599
|
key: 0,
|
|
2596
2600
|
class: a(e.question.cssDescription),
|
|
2597
2601
|
id: e.question.ariaDescriptionId
|
|
2598
2602
|
}, [
|
|
2599
|
-
C(
|
|
2603
|
+
C(c, {
|
|
2600
2604
|
locString: e.question.locDescription
|
|
2601
2605
|
}, null, 8, ["locString"])
|
|
2602
|
-
], 10, no)) :
|
|
2606
|
+
], 10, no)) : m("", !0)
|
|
2603
2607
|
], 2)
|
|
2604
2608
|
], 2);
|
|
2605
2609
|
};
|
|
2606
2610
|
}
|
|
2607
|
-
}), to = /* @__PURE__ */
|
|
2611
|
+
}), to = /* @__PURE__ */ g({
|
|
2608
2612
|
inheritAttrs: !1,
|
|
2609
2613
|
__name: "Multipletext",
|
|
2610
2614
|
props: {
|
|
@@ -2620,29 +2624,29 @@ const oo = /* @__PURE__ */ h({
|
|
|
2620
2624
|
ref: n
|
|
2621
2625
|
}, [
|
|
2622
2626
|
p("tbody", null, [
|
|
2623
|
-
(i(!0), u(
|
|
2627
|
+
(i(!0), u(_, null, L(w(e), (c, v) => (i(), u(_, {
|
|
2624
2628
|
key: t.question.inputId + "rowkey" + v
|
|
2625
2629
|
}, [
|
|
2626
|
-
|
|
2630
|
+
c.isVisible ? (i(), u("tr", {
|
|
2627
2631
|
key: 0,
|
|
2628
2632
|
class: a(t.question.cssClasses.row)
|
|
2629
2633
|
}, [
|
|
2630
|
-
(i(!0), u(
|
|
2631
|
-
key: "item" +
|
|
2632
|
-
class: a(
|
|
2634
|
+
(i(!0), u(_, null, L(c.cells, (d) => (i(), u("td", {
|
|
2635
|
+
key: "item" + d.item.editor.id,
|
|
2636
|
+
class: a(d.className)
|
|
2633
2637
|
}, [
|
|
2634
2638
|
C(l, {
|
|
2635
2639
|
question: t.question,
|
|
2636
|
-
cell:
|
|
2640
|
+
cell: d
|
|
2637
2641
|
}, null, 8, ["question", "cell"])
|
|
2638
2642
|
], 2))), 128))
|
|
2639
|
-
], 2)) :
|
|
2643
|
+
], 2)) : m("", !0)
|
|
2640
2644
|
], 64))), 128))
|
|
2641
2645
|
])
|
|
2642
2646
|
], 2);
|
|
2643
2647
|
};
|
|
2644
2648
|
}
|
|
2645
|
-
}), io = { key: 1 }, ro = /* @__PURE__ */
|
|
2649
|
+
}), io = { key: 1 }, ro = /* @__PURE__ */ g({
|
|
2646
2650
|
__name: "MultipletextItem",
|
|
2647
2651
|
props: {
|
|
2648
2652
|
question: {},
|
|
@@ -2653,8 +2657,8 @@ const oo = /* @__PURE__ */ h({
|
|
|
2653
2657
|
B(() => s.cell.item.editor);
|
|
2654
2658
|
const e = S(() => s.cell.item);
|
|
2655
2659
|
return (t, o) => {
|
|
2656
|
-
const l = y("survey-string"),
|
|
2657
|
-
return t.cell.isErrorsCell ? (i(),
|
|
2660
|
+
const l = y("survey-string"), c = y("survey-errors");
|
|
2661
|
+
return t.cell.isErrorsCell ? (i(), q(c, {
|
|
2658
2662
|
key: 1,
|
|
2659
2663
|
element: e.value.editor
|
|
2660
2664
|
}, null, 8, ["element"])) : (i(), u("label", {
|
|
@@ -2668,30 +2672,30 @@ const oo = /* @__PURE__ */ h({
|
|
|
2668
2672
|
e.value.editor.isRequireTextBeforeTitle || e.value.editor.isRequireTextOnStart ? (i(), u("span", {
|
|
2669
2673
|
key: 0,
|
|
2670
2674
|
class: a(t.question.cssClasses.requiredText)
|
|
2671
|
-
}, T(e.value.editor.requiredText), 3)) :
|
|
2675
|
+
}, T(e.value.editor.requiredText), 3)) : m("", !0),
|
|
2672
2676
|
C(l, {
|
|
2673
2677
|
locString: e.value.locTitle
|
|
2674
2678
|
}, null, 8, ["locString"]),
|
|
2675
|
-
e.value.editor.isRequireTextAfterTitle ? (i(), u("span", io, "\xA0")) :
|
|
2679
|
+
e.value.editor.isRequireTextAfterTitle ? (i(), u("span", io, "\xA0")) : m("", !0),
|
|
2676
2680
|
e.value.editor.isRequireTextAfterTitle ? (i(), u("span", {
|
|
2677
2681
|
key: 2,
|
|
2678
2682
|
"aria-hidden": "true",
|
|
2679
2683
|
class: a(t.question.cssClasses.requiredText)
|
|
2680
|
-
}, T(e.value.editor.requiredText), 3)) :
|
|
2684
|
+
}, T(e.value.editor.requiredText), 3)) : m("", !0)
|
|
2681
2685
|
], 6),
|
|
2682
2686
|
(i(), u("div", {
|
|
2683
2687
|
key: e.value.editor.id,
|
|
2684
2688
|
class: a(t.question.getItemCss()),
|
|
2685
2689
|
onFocusin: o[0] || (o[0] = (v) => e.value.focusIn())
|
|
2686
2690
|
}, [
|
|
2687
|
-
(i(),
|
|
2691
|
+
(i(), q(R(n(e.value.editor)), {
|
|
2688
2692
|
question: e.value.editor
|
|
2689
2693
|
}, null, 8, ["question"]))
|
|
2690
2694
|
], 34))
|
|
2691
2695
|
], 2));
|
|
2692
2696
|
};
|
|
2693
2697
|
}
|
|
2694
|
-
}), lo = { class: "sv-hidden" }, ao = { key: 0 }, uo = { key: 0 }, mo = ["onClick"], co = ["data-responsive-title", "onClick"], po = /* @__PURE__ */
|
|
2698
|
+
}), lo = { class: "sv-hidden" }, ao = { key: 0 }, uo = { key: 0 }, mo = ["onClick"], co = ["data-responsive-title", "onClick"], po = /* @__PURE__ */ g({
|
|
2695
2699
|
inheritAttrs: !1,
|
|
2696
2700
|
__name: "Matrix",
|
|
2697
2701
|
props: {
|
|
@@ -2716,7 +2720,7 @@ const oo = /* @__PURE__ */ h({
|
|
|
2716
2720
|
o.value = l.value;
|
|
2717
2721
|
};
|
|
2718
2722
|
return (o, l) => {
|
|
2719
|
-
const
|
|
2723
|
+
const c = y("survey-string");
|
|
2720
2724
|
return i(), u("div", {
|
|
2721
2725
|
class: a(o.question.cssClasses.tableWrapper),
|
|
2722
2726
|
ref_key: "root",
|
|
@@ -2729,20 +2733,20 @@ const oo = /* @__PURE__ */ h({
|
|
|
2729
2733
|
}, [
|
|
2730
2734
|
o.question.showHeader ? (i(), u("thead", ao, [
|
|
2731
2735
|
p("tr", null, [
|
|
2732
|
-
o.question.hasRows ? (i(), u("td", uo)) :
|
|
2733
|
-
(i(!0), u(
|
|
2734
|
-
key:
|
|
2736
|
+
o.question.hasRows ? (i(), u("td", uo)) : m("", !0),
|
|
2737
|
+
(i(!0), u(_, null, L(o.question.visibleColumns, (v, d) => (i(), u("th", {
|
|
2738
|
+
key: d,
|
|
2735
2739
|
class: a(o.question.cssClasses.headerCell),
|
|
2736
2740
|
style: I({
|
|
2737
2741
|
minWidth: o.question.columnMinWidth,
|
|
2738
2742
|
width: o.question.columnMinWidth
|
|
2739
2743
|
})
|
|
2740
2744
|
}, [
|
|
2741
|
-
(i(),
|
|
2745
|
+
(i(), q(R(o.question.getColumnHeaderWrapperComponentName(v)), {
|
|
2742
2746
|
componentData: o.question.getColumnHeaderWrapperComponentData(v)
|
|
2743
2747
|
}, {
|
|
2744
2748
|
default: V(() => [
|
|
2745
|
-
C(
|
|
2749
|
+
C(c, {
|
|
2746
2750
|
locString: v.locText
|
|
2747
2751
|
}, null, 8, ["locString"])
|
|
2748
2752
|
]),
|
|
@@ -2750,10 +2754,10 @@ const oo = /* @__PURE__ */ h({
|
|
|
2750
2754
|
}, 1032, ["componentData"]))
|
|
2751
2755
|
], 6))), 128))
|
|
2752
2756
|
])
|
|
2753
|
-
])) :
|
|
2757
|
+
])) : m("", !0),
|
|
2754
2758
|
p("tbody", null, [
|
|
2755
|
-
(i(!0), u(
|
|
2756
|
-
key: "row_" + v.name + "_" +
|
|
2759
|
+
(i(!0), u(_, null, L(e.value, (v, d) => (i(), u("tr", {
|
|
2760
|
+
key: "row_" + v.name + "_" + d,
|
|
2757
2761
|
class: a(v.rowClasses || void 0)
|
|
2758
2762
|
}, [
|
|
2759
2763
|
N(p("td", {
|
|
@@ -2763,11 +2767,11 @@ const oo = /* @__PURE__ */ h({
|
|
|
2763
2767
|
width: o.question.rowTitleWidth
|
|
2764
2768
|
})
|
|
2765
2769
|
}, [
|
|
2766
|
-
(i(),
|
|
2770
|
+
(i(), q(R(o.question.getRowHeaderWrapperComponentName(v)), {
|
|
2767
2771
|
componentData: o.question.getRowHeaderWrapperComponentData(v)
|
|
2768
2772
|
}, {
|
|
2769
2773
|
default: V(() => [
|
|
2770
|
-
C(
|
|
2774
|
+
C(c, {
|
|
2771
2775
|
locString: v.locText
|
|
2772
2776
|
}, null, 8, ["locString"])
|
|
2773
2777
|
]),
|
|
@@ -2776,25 +2780,25 @@ const oo = /* @__PURE__ */ h({
|
|
|
2776
2780
|
], 6), [
|
|
2777
2781
|
[H, o.question.hasRows]
|
|
2778
2782
|
]),
|
|
2779
|
-
o.question.hasCellText ? (i(!0), u(
|
|
2783
|
+
o.question.hasCellText ? (i(!0), u(_, { key: 0 }, L(o.question.visibleColumns, (h, f) => (i(), u("td", {
|
|
2780
2784
|
key: f,
|
|
2781
|
-
class: a(o.question.getItemClass(v,
|
|
2782
|
-
onClick: (k) => t(v,
|
|
2785
|
+
class: a(o.question.getItemClass(v, h)),
|
|
2786
|
+
onClick: (k) => t(v, h)
|
|
2783
2787
|
}, [
|
|
2784
|
-
C(
|
|
2785
|
-
locString: o.question.getCellDisplayLocText(v.name,
|
|
2788
|
+
C(c, {
|
|
2789
|
+
locString: o.question.getCellDisplayLocText(v.name, h)
|
|
2786
2790
|
}, null, 8, ["locString"])
|
|
2787
|
-
], 10, mo))), 128)) :
|
|
2788
|
-
o.question.hasCellText ?
|
|
2791
|
+
], 10, mo))), 128)) : m("", !0),
|
|
2792
|
+
o.question.hasCellText ? m("", !0) : (i(!0), u(_, { key: 1 }, L(o.question.visibleColumns, (h, f) => (i(), u("td", {
|
|
2789
2793
|
key: f,
|
|
2790
|
-
"data-responsive-title":
|
|
2794
|
+
"data-responsive-title": h.locText.renderedHtml,
|
|
2791
2795
|
class: a(o.question.cssClasses.cell),
|
|
2792
|
-
onClick: (k) => t(v,
|
|
2796
|
+
onClick: (k) => t(v, h)
|
|
2793
2797
|
}, [
|
|
2794
|
-
(i(),
|
|
2798
|
+
(i(), q(R(o.question.cellComponent), {
|
|
2795
2799
|
question: o.question,
|
|
2796
2800
|
row: v,
|
|
2797
|
-
column:
|
|
2801
|
+
column: h,
|
|
2798
2802
|
columnIndex: f
|
|
2799
2803
|
}, null, 8, ["question", "row", "column", "columnIndex"]))
|
|
2800
2804
|
], 10, co))), 128))
|
|
@@ -2805,7 +2809,7 @@ const oo = /* @__PURE__ */ h({
|
|
|
2805
2809
|
], 2);
|
|
2806
2810
|
};
|
|
2807
2811
|
}
|
|
2808
|
-
}), vo = ["data-sv-drop-target-matrix-row"], yo = /* @__PURE__ */
|
|
2812
|
+
}), vo = ["data-sv-drop-target-matrix-row"], yo = /* @__PURE__ */ g({
|
|
2809
2813
|
__name: "MatrixRow",
|
|
2810
2814
|
props: {
|
|
2811
2815
|
question: {},
|
|
@@ -2829,20 +2833,20 @@ const oo = /* @__PURE__ */ h({
|
|
|
2829
2833
|
return t.row.visible ? (i(), u("tr", {
|
|
2830
2834
|
key: 0,
|
|
2831
2835
|
"data-sv-drop-target-matrix-row": t.row.row && t.row.row.id,
|
|
2832
|
-
onPointerdown: o[0] || (o[0] = (
|
|
2836
|
+
onPointerdown: o[0] || (o[0] = (c) => t.question.onPointerDown(c, t.row.row)),
|
|
2833
2837
|
class: a(t.row.className),
|
|
2834
2838
|
ref_key: "root",
|
|
2835
2839
|
ref: n
|
|
2836
2840
|
}, [
|
|
2837
|
-
(i(!0), u(
|
|
2838
|
-
cell:
|
|
2841
|
+
(i(!0), u(_, null, L(t.row.cells, (c, v) => (i(), q(l, {
|
|
2842
|
+
cell: c,
|
|
2839
2843
|
question: t.question,
|
|
2840
2844
|
key: t.row.id + "_" + v
|
|
2841
2845
|
}, null, 8, ["cell", "question"]))), 128))
|
|
2842
|
-
], 42, vo)) :
|
|
2846
|
+
], 42, vo)) : m("", !0);
|
|
2843
2847
|
};
|
|
2844
2848
|
}
|
|
2845
|
-
}), qo = ["name", "value", "readonly", "disabled", "id", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], go = ["xlink:href"], ho = /* @__PURE__ */
|
|
2849
|
+
}), qo = ["name", "value", "readonly", "disabled", "id", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], go = ["xlink:href"], ho = /* @__PURE__ */ g({
|
|
2846
2850
|
inheritAttrs: !1,
|
|
2847
2851
|
__name: "MatrixCell",
|
|
2848
2852
|
props: {
|
|
@@ -2887,7 +2891,7 @@ const oo = /* @__PURE__ */ h({
|
|
|
2887
2891
|
p("use", {
|
|
2888
2892
|
"xlink:href": s.question.itemSvgIcon
|
|
2889
2893
|
}, null, 8, go)
|
|
2890
|
-
], 2)) :
|
|
2894
|
+
], 2)) : m("", !0)
|
|
2891
2895
|
], 2),
|
|
2892
2896
|
s.question.isMobile ? (i(), u("span", {
|
|
2893
2897
|
key: 0,
|
|
@@ -2896,11 +2900,11 @@ const oo = /* @__PURE__ */ h({
|
|
|
2896
2900
|
C(e, {
|
|
2897
2901
|
locString: s.column.locText
|
|
2898
2902
|
}, null, 8, ["locString"])
|
|
2899
|
-
], 2)) :
|
|
2903
|
+
], 2)) : m("", !0)
|
|
2900
2904
|
], 34);
|
|
2901
2905
|
};
|
|
2902
2906
|
}
|
|
2903
|
-
}), Co = /* @__PURE__ */
|
|
2907
|
+
}), Co = /* @__PURE__ */ g({
|
|
2904
2908
|
inheritAttrs: !1,
|
|
2905
2909
|
__name: "MatrixDropdown",
|
|
2906
2910
|
props: {
|
|
@@ -2910,14 +2914,14 @@ const oo = /* @__PURE__ */ h({
|
|
|
2910
2914
|
const s = r, n = $(null);
|
|
2911
2915
|
return P(s, n), (e, t) => {
|
|
2912
2916
|
const o = y("survey-matrixtable");
|
|
2913
|
-
return i(),
|
|
2917
|
+
return i(), q(o, {
|
|
2914
2918
|
question: e.question,
|
|
2915
2919
|
ref_key: "root",
|
|
2916
2920
|
ref: n
|
|
2917
2921
|
}, null, 8, ["question"]);
|
|
2918
2922
|
};
|
|
2919
2923
|
}
|
|
2920
|
-
}), bo = { key: 0 }, ko = { key: 1 }, fo = /* @__PURE__ */
|
|
2924
|
+
}), bo = { key: 0 }, ko = { key: 1 }, fo = /* @__PURE__ */ g({
|
|
2921
2925
|
__name: "MatrixTable",
|
|
2922
2926
|
props: {
|
|
2923
2927
|
question: {}
|
|
@@ -2925,7 +2929,7 @@ const oo = /* @__PURE__ */ h({
|
|
|
2925
2929
|
setup(r) {
|
|
2926
2930
|
const s = r, n = S(() => s.question.renderedTable);
|
|
2927
2931
|
return B(() => n.value), (e, t) => {
|
|
2928
|
-
const o = y("survey-string"), l = y("survey-matrixheaderrequired"),
|
|
2932
|
+
const o = y("survey-string"), l = y("survey-matrixheaderrequired"), c = y("survey-matrix-row"), v = y("survey-matrixdropdown-cell");
|
|
2929
2933
|
return i(), u("div", {
|
|
2930
2934
|
style: I({ overflowX: e.question.showHorizontalScroll ? "scroll" : "" }),
|
|
2931
2935
|
class: a(e.question.cssClasses.tableWrapper)
|
|
@@ -2935,57 +2939,57 @@ const oo = /* @__PURE__ */ h({
|
|
|
2935
2939
|
}, [
|
|
2936
2940
|
n.value.showHeader ? (i(), u("thead", bo, [
|
|
2937
2941
|
p("tr", null, [
|
|
2938
|
-
(i(!0), u(
|
|
2939
|
-
|
|
2940
|
-
key: "header_" +
|
|
2941
|
-
class: a(
|
|
2942
|
-
style: I({ minWidth:
|
|
2942
|
+
(i(!0), u(_, null, L(n.value.headerRow.cells, (d) => (i(), u(_, null, [
|
|
2943
|
+
d.hasTitle ? (i(), u("th", {
|
|
2944
|
+
key: "header_" + d.id,
|
|
2945
|
+
class: a(d.className),
|
|
2946
|
+
style: I({ minWidth: d.minWidth, width: d.width })
|
|
2943
2947
|
}, [
|
|
2944
|
-
(i(),
|
|
2945
|
-
componentData: e.question.getColumnHeaderWrapperComponentData(
|
|
2948
|
+
(i(), q(R(e.question.getColumnHeaderWrapperComponentName(d)), {
|
|
2949
|
+
componentData: e.question.getColumnHeaderWrapperComponentData(d)
|
|
2946
2950
|
}, {
|
|
2947
2951
|
default: V(() => [
|
|
2948
2952
|
C(o, {
|
|
2949
|
-
locString:
|
|
2953
|
+
locString: d.locTitle
|
|
2950
2954
|
}, null, 8, ["locString"]),
|
|
2951
|
-
|
|
2955
|
+
d.column ? (i(), q(l, {
|
|
2952
2956
|
key: 0,
|
|
2953
|
-
column:
|
|
2957
|
+
column: d.column,
|
|
2954
2958
|
question: e.question
|
|
2955
|
-
}, null, 8, ["column", "question"])) :
|
|
2959
|
+
}, null, 8, ["column", "question"])) : m("", !0)
|
|
2956
2960
|
]),
|
|
2957
2961
|
_: 2
|
|
2958
2962
|
}, 1032, ["componentData"]))
|
|
2959
|
-
], 6)) :
|
|
2960
|
-
|
|
2961
|
-
class: a(
|
|
2962
|
-
key: "header_" +
|
|
2963
|
-
style: I({ minWidth:
|
|
2963
|
+
], 6)) : m("", !0),
|
|
2964
|
+
d.hasTitle ? m("", !0) : (i(), u("td", {
|
|
2965
|
+
class: a(d.className),
|
|
2966
|
+
key: "header_" + d.id,
|
|
2967
|
+
style: I({ minWidth: d.minWidth, width: d.width })
|
|
2964
2968
|
}, null, 6))
|
|
2965
2969
|
], 64))), 256))
|
|
2966
2970
|
])
|
|
2967
|
-
])) :
|
|
2971
|
+
])) : m("", !0),
|
|
2968
2972
|
p("tbody", null, [
|
|
2969
|
-
(i(!0), u(
|
|
2970
|
-
key: e.question.inputId + "_" +
|
|
2971
|
-
row:
|
|
2973
|
+
(i(!0), u(_, null, L(n.value.renderedRows, (d) => (i(), q(c, {
|
|
2974
|
+
key: e.question.inputId + "_" + d.id,
|
|
2975
|
+
row: d,
|
|
2972
2976
|
question: e.question
|
|
2973
2977
|
}, null, 8, ["row", "question"]))), 128))
|
|
2974
2978
|
]),
|
|
2975
2979
|
n.value.showFooter ? (i(), u("tfoot", ko, [
|
|
2976
2980
|
p("tr", null, [
|
|
2977
|
-
(i(!0), u(
|
|
2978
|
-
cell:
|
|
2981
|
+
(i(!0), u(_, null, L(n.value.footerRow.cells, (d, h) => (i(), q(v, {
|
|
2982
|
+
cell: d,
|
|
2979
2983
|
question: e.question,
|
|
2980
|
-
key: "footer_" +
|
|
2984
|
+
key: "footer_" + h
|
|
2981
2985
|
}, null, 8, ["cell", "question"]))), 128))
|
|
2982
2986
|
])
|
|
2983
|
-
])) :
|
|
2987
|
+
])) : m("", !0)
|
|
2984
2988
|
], 2)
|
|
2985
2989
|
], 6);
|
|
2986
2990
|
};
|
|
2987
2991
|
}
|
|
2988
|
-
}), wo = /* @__PURE__ */ p("span", null, "\xA0", -1), Io = /* @__PURE__ */
|
|
2992
|
+
}), wo = /* @__PURE__ */ p("span", null, "\xA0", -1), Io = /* @__PURE__ */ g({
|
|
2989
2993
|
__name: "MatrixHeaderRequired",
|
|
2990
2994
|
props: {
|
|
2991
2995
|
question: {},
|
|
@@ -2993,156 +2997,163 @@ const oo = /* @__PURE__ */ h({
|
|
|
2993
2997
|
},
|
|
2994
2998
|
setup(r) {
|
|
2995
2999
|
const s = r;
|
|
2996
|
-
return B(() => s.column), (n, e) => n.column.isRenderedRequired ? (i(), u(
|
|
3000
|
+
return B(() => s.column), (n, e) => n.column.isRenderedRequired ? (i(), u(_, { key: 0 }, [
|
|
2997
3001
|
wo,
|
|
2998
3002
|
n.column.isRenderedRequired ? (i(), u("span", {
|
|
2999
3003
|
key: 0,
|
|
3000
3004
|
class: a(n.question.cssClasses.cellRequiredText)
|
|
3001
|
-
}, T(n.column.requiredText), 3)) :
|
|
3002
|
-
], 64)) :
|
|
3005
|
+
}, T(n.column.requiredText), 3)) : m("", !0)
|
|
3006
|
+
], 64)) : m("", !0);
|
|
3003
3007
|
}
|
|
3004
|
-
}), So = ["
|
|
3008
|
+
}), So = ["title", "colspan"], Ro = /* @__PURE__ */ g({
|
|
3005
3009
|
__name: "MatrixDropdownCellComp",
|
|
3006
3010
|
props: {
|
|
3007
3011
|
question: {},
|
|
3008
3012
|
cell: {}
|
|
3009
3013
|
},
|
|
3010
3014
|
setup(r) {
|
|
3011
|
-
const s = r, n = $(!1), e = $(), t = () =>
|
|
3015
|
+
const s = r, n = $(!1), e = $(), t = () => !!s.cell.width || !!s.cell.minWidth ? { width: s.cell.width, minWidth: s.cell.minWidth } : null, o = () => {
|
|
3012
3016
|
!s.cell.hasQuestion || !s.question || !s.question.survey || (n.value = s.cell.question.isVisible);
|
|
3013
|
-
},
|
|
3014
|
-
|
|
3017
|
+
}, l = (d) => ie(d);
|
|
3018
|
+
o(), M(() => {
|
|
3015
3019
|
if (!s.cell.hasQuestion || !s.question || !s.question.survey)
|
|
3016
3020
|
return;
|
|
3017
3021
|
s.cell.question.registerPropertyChangedHandlers(["isVisible"], () => {
|
|
3018
|
-
|
|
3022
|
+
o();
|
|
3019
3023
|
});
|
|
3020
|
-
const
|
|
3024
|
+
const d = e.value, h = s.cell.question, f = {
|
|
3021
3025
|
cell: s.cell.cell,
|
|
3022
|
-
cellQuestion:
|
|
3023
|
-
htmlElement:
|
|
3026
|
+
cellQuestion: h,
|
|
3027
|
+
htmlElement: d,
|
|
3024
3028
|
row: s.cell.row,
|
|
3025
3029
|
column: s.cell.cell.column
|
|
3026
3030
|
};
|
|
3027
|
-
s.question.survey.matrixAfterCellRender(s.question,
|
|
3031
|
+
s.question.survey.matrixAfterCellRender(s.question, f), h && h.afterRenderCore(d);
|
|
3028
3032
|
});
|
|
3029
|
-
const
|
|
3030
|
-
const
|
|
3031
|
-
if (
|
|
3032
|
-
const
|
|
3033
|
-
if (
|
|
3034
|
-
const
|
|
3035
|
-
if (
|
|
3036
|
-
return
|
|
3033
|
+
const c = S(() => {
|
|
3034
|
+
const d = s.cell;
|
|
3035
|
+
if (d.hasPanel) {
|
|
3036
|
+
const h = d.panel, f = h.survey;
|
|
3037
|
+
if (f) {
|
|
3038
|
+
const k = f.getElementWrapperComponentName(h);
|
|
3039
|
+
if (k)
|
|
3040
|
+
return k;
|
|
3037
3041
|
}
|
|
3038
3042
|
return "survey-panel";
|
|
3039
3043
|
}
|
|
3040
|
-
}),
|
|
3044
|
+
}), v = S(() => {
|
|
3041
3045
|
if (s.cell.hasPanel) {
|
|
3042
|
-
const
|
|
3043
|
-
let
|
|
3044
|
-
return
|
|
3046
|
+
const h = s.cell.panel, f = h.survey;
|
|
3047
|
+
let k;
|
|
3048
|
+
return f && (k = f.getElementWrapperComponentData(h)), {
|
|
3045
3049
|
componentName: "survey-panel",
|
|
3046
3050
|
componentData: {
|
|
3047
|
-
element:
|
|
3048
|
-
data:
|
|
3051
|
+
element: h,
|
|
3052
|
+
data: k,
|
|
3049
3053
|
css: s.question.cssClasses
|
|
3050
3054
|
}
|
|
3051
3055
|
};
|
|
3052
3056
|
}
|
|
3053
3057
|
});
|
|
3054
|
-
return (
|
|
3055
|
-
const
|
|
3058
|
+
return (d, h) => {
|
|
3059
|
+
const f = y("survey-errors"), k = y("sv-matrix-drag-drop-icon"), D = y("sv-action-bar"), b = y("survey-string"), A = y("survey-radiogroup-item"), W = y("survey-checkbox-item"), F = y("survey-other-choice");
|
|
3056
3060
|
return i(), u("td", {
|
|
3057
|
-
class: a(
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
onFocusin: f[0] || (f[0] = (ae) => q.cell.focusIn()),
|
|
3061
|
+
class: a(d.cell.className),
|
|
3062
|
+
title: d.cell.getTitle(),
|
|
3063
|
+
style: I(t()),
|
|
3064
|
+
colspan: d.cell.colSpans,
|
|
3065
|
+
onFocusin: h[0] || (h[0] = (J) => d.cell.focusIn()),
|
|
3063
3066
|
ref_key: "root",
|
|
3064
3067
|
ref: e
|
|
3065
3068
|
}, [
|
|
3066
|
-
|
|
3069
|
+
d.cell.isErrorsCell ? (i(), q(f, {
|
|
3067
3070
|
key: 0,
|
|
3068
|
-
element:
|
|
3069
|
-
}, null, 8, ["element"])) :
|
|
3070
|
-
|
|
3071
|
+
element: d.cell.question
|
|
3072
|
+
}, null, 8, ["element"])) : m("", !0),
|
|
3073
|
+
d.cell.isDragHandlerCell ? (i(), q(k, {
|
|
3071
3074
|
key: 1,
|
|
3072
|
-
item: { data: { row:
|
|
3073
|
-
}, null, 8, ["item"])) :
|
|
3074
|
-
|
|
3075
|
+
item: { data: { row: d.cell.row, question: d.question } }
|
|
3076
|
+
}, null, 8, ["item"])) : m("", !0),
|
|
3077
|
+
d.cell.isActionsCell ? (i(), q(D, {
|
|
3075
3078
|
key: 2,
|
|
3076
|
-
model:
|
|
3079
|
+
model: d.cell.item.getData(),
|
|
3077
3080
|
handleClick: !1
|
|
3078
|
-
}, null, 8, ["model"])) :
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
+
}, null, 8, ["model"])) : m("", !0),
|
|
3082
|
+
d.cell.hasPanel ? (i(), q(R(c.value), z(E({ key: 3 }, v.value)), null, 16)) : m("", !0),
|
|
3083
|
+
d.cell.showResponsiveTitle ? (i(), u("span", {
|
|
3081
3084
|
key: 4,
|
|
3082
|
-
class: a(
|
|
3085
|
+
class: a(d.cell.responsiveTitleCss)
|
|
3083
3086
|
}, [
|
|
3084
|
-
|
|
3087
|
+
C(b, {
|
|
3088
|
+
locString: d.cell.responsiveLocTitle
|
|
3089
|
+
}, null, 8, ["locString"])
|
|
3090
|
+
], 2)) : m("", !0),
|
|
3091
|
+
d.cell.hasQuestion ? N((i(), u("div", {
|
|
3092
|
+
key: 5,
|
|
3093
|
+
class: a(d.cell.cellQuestionWrapperClassName)
|
|
3094
|
+
}, [
|
|
3095
|
+
!d.cell.isChoice && d.cell.question.isDefaultRendering() ? (i(), q(R(d.question.getCellWrapperComponentName(d.cell.cell)), {
|
|
3085
3096
|
key: 0,
|
|
3086
|
-
componentData:
|
|
3097
|
+
componentData: d.question.getCellWrapperComponentData(d.cell.cell)
|
|
3087
3098
|
}, {
|
|
3088
3099
|
default: V(() => [
|
|
3089
|
-
(i(),
|
|
3090
|
-
question:
|
|
3100
|
+
(i(), q(R(l(d.cell.question)), {
|
|
3101
|
+
question: d.cell.question
|
|
3091
3102
|
}, null, 8, ["question"]))
|
|
3092
3103
|
]),
|
|
3093
3104
|
_: 1
|
|
3094
|
-
}, 8, ["componentData"])) :
|
|
3095
|
-
!
|
|
3105
|
+
}, 8, ["componentData"])) : m("", !0),
|
|
3106
|
+
!d.cell.isChoice && !d.cell.question.isDefaultRendering() ? (i(), q(R(d.cell.question.getComponentName()), {
|
|
3096
3107
|
key: 1,
|
|
3097
|
-
question:
|
|
3098
|
-
}, null, 8, ["question"])) :
|
|
3099
|
-
|
|
3108
|
+
question: d.cell.question
|
|
3109
|
+
}, null, 8, ["question"])) : m("", !0),
|
|
3110
|
+
d.cell.isItemChoice ? (i(), q(R(d.question.getCellWrapperComponentName(d.cell.cell)), {
|
|
3100
3111
|
key: 2,
|
|
3101
|
-
componentData:
|
|
3112
|
+
componentData: d.question.getCellWrapperComponentData(d.cell.cell)
|
|
3102
3113
|
}, {
|
|
3103
3114
|
default: V(() => [
|
|
3104
|
-
|
|
3105
|
-
key:
|
|
3106
|
-
question:
|
|
3107
|
-
item:
|
|
3115
|
+
d.cell.isRadio ? (i(), q(A, {
|
|
3116
|
+
key: d.cell.item.value,
|
|
3117
|
+
question: d.cell.question,
|
|
3118
|
+
item: d.cell.item,
|
|
3108
3119
|
hideLabel: !0
|
|
3109
|
-
}, null, 8, ["question", "item"])) :
|
|
3110
|
-
|
|
3111
|
-
key:
|
|
3112
|
-
question:
|
|
3113
|
-
item:
|
|
3120
|
+
}, null, 8, ["question", "item"])) : m("", !0),
|
|
3121
|
+
d.cell.isCheckbox ? (i(), q(W, {
|
|
3122
|
+
key: d.cell.item.value,
|
|
3123
|
+
question: d.cell.question,
|
|
3124
|
+
item: d.cell.item,
|
|
3114
3125
|
hideLabel: !0
|
|
3115
|
-
}, null, 8, ["question", "item"])) :
|
|
3126
|
+
}, null, 8, ["question", "item"])) : m("", !0)
|
|
3116
3127
|
]),
|
|
3117
3128
|
_: 1
|
|
3118
|
-
}, 8, ["componentData"])) :
|
|
3119
|
-
|
|
3129
|
+
}, 8, ["componentData"])) : m("", !0),
|
|
3130
|
+
d.cell.isOtherChoice ? (i(), q(F, {
|
|
3120
3131
|
key: 3,
|
|
3121
|
-
question:
|
|
3122
|
-
}, null, 8, ["question"])) :
|
|
3132
|
+
question: d.cell.question
|
|
3133
|
+
}, null, 8, ["question"])) : m("", !0)
|
|
3123
3134
|
], 2)), [
|
|
3124
3135
|
[H, n.value]
|
|
3125
|
-
]) :
|
|
3126
|
-
|
|
3127
|
-
key:
|
|
3128
|
-
componentData:
|
|
3136
|
+
]) : m("", !0),
|
|
3137
|
+
d.cell.hasTitle ? (i(), q(R(d.question.getCellWrapperComponentName(d.cell)), {
|
|
3138
|
+
key: 6,
|
|
3139
|
+
componentData: d.question.getCellWrapperComponentData(d.cell)
|
|
3129
3140
|
}, {
|
|
3130
3141
|
default: V(() => [
|
|
3131
|
-
|
|
3142
|
+
d.cell.hasTitle ? (i(), q(b, {
|
|
3132
3143
|
key: 0,
|
|
3133
|
-
locString:
|
|
3134
|
-
}, null, 8, ["locString"])) :
|
|
3135
|
-
|
|
3144
|
+
locString: d.cell.locTitle
|
|
3145
|
+
}, null, 8, ["locString"])) : m("", !0),
|
|
3146
|
+
d.cell.requiredText ? (i(), u("span", {
|
|
3136
3147
|
key: 1,
|
|
3137
|
-
class: a(
|
|
3138
|
-
}, T(
|
|
3148
|
+
class: a(d.question.cssClasses.cellRequiredText)
|
|
3149
|
+
}, T(d.cell.requiredText), 3)) : m("", !0)
|
|
3139
3150
|
]),
|
|
3140
3151
|
_: 1
|
|
3141
|
-
}, 8, ["componentData"])) :
|
|
3152
|
+
}, 8, ["componentData"])) : m("", !0)
|
|
3142
3153
|
], 46, So);
|
|
3143
3154
|
};
|
|
3144
3155
|
}
|
|
3145
|
-
}), To = /* @__PURE__ */
|
|
3156
|
+
}), To = /* @__PURE__ */ g({
|
|
3146
3157
|
inheritAttrs: !1,
|
|
3147
3158
|
__name: "MatrixDynamic",
|
|
3148
3159
|
props: {
|
|
@@ -3155,7 +3166,7 @@ const oo = /* @__PURE__ */ h({
|
|
|
3155
3166
|
s.question.addRowUI();
|
|
3156
3167
|
};
|
|
3157
3168
|
return (t, o) => {
|
|
3158
|
-
const l = y("survey-string"),
|
|
3169
|
+
const l = y("survey-string"), c = y("survey-matrixtable");
|
|
3159
3170
|
return i(), u("div", {
|
|
3160
3171
|
ref_key: "root",
|
|
3161
3172
|
ref: n
|
|
@@ -3176,12 +3187,12 @@ const oo = /* @__PURE__ */ h({
|
|
|
3176
3187
|
class: a(t.question.cssClasses.iconAdd)
|
|
3177
3188
|
}, null, 2)
|
|
3178
3189
|
], 2)
|
|
3179
|
-
], 2)) :
|
|
3180
|
-
t.question.renderedTable.showTable ? (i(),
|
|
3190
|
+
], 2)) : m("", !0),
|
|
3191
|
+
t.question.renderedTable.showTable ? (i(), q(c, {
|
|
3181
3192
|
key: 1,
|
|
3182
3193
|
question: t.question
|
|
3183
|
-
}, null, 8, ["question"])) :
|
|
3184
|
-
t.question.renderedTable.showTable ?
|
|
3194
|
+
}, null, 8, ["question"])) : m("", !0),
|
|
3195
|
+
t.question.renderedTable.showTable ? m("", !0) : (i(), u("div", {
|
|
3185
3196
|
key: 2,
|
|
3186
3197
|
class: a(t.question.cssClasses.emptyRowsSection)
|
|
3187
3198
|
}, [
|
|
@@ -3204,7 +3215,7 @@ const oo = /* @__PURE__ */ h({
|
|
|
3204
3215
|
p("span", {
|
|
3205
3216
|
class: a(t.question.cssClasses.iconAdd)
|
|
3206
3217
|
}, null, 2)
|
|
3207
|
-
], 2)) :
|
|
3218
|
+
], 2)) : m("", !0)
|
|
3208
3219
|
], 2)),
|
|
3209
3220
|
t.question.renderedTable.showAddRowOnBottom ? (i(), u("div", {
|
|
3210
3221
|
key: 3,
|
|
@@ -3222,7 +3233,7 @@ const oo = /* @__PURE__ */ h({
|
|
|
3222
3233
|
class: a(t.question.cssClasses.iconAdd)
|
|
3223
3234
|
}, null, 2)
|
|
3224
3235
|
], 2)
|
|
3225
|
-
], 2)) :
|
|
3236
|
+
], 2)) : m("", !0)
|
|
3226
3237
|
], 512);
|
|
3227
3238
|
};
|
|
3228
3239
|
}
|
|
@@ -3233,7 +3244,7 @@ function le(r, s = !0) {
|
|
|
3233
3244
|
row: s ? S(() => r.item.data.row) : void 0
|
|
3234
3245
|
};
|
|
3235
3246
|
}
|
|
3236
|
-
const $o = ["disabled"], _o = /* @__PURE__ */
|
|
3247
|
+
const $o = ["disabled"], _o = /* @__PURE__ */ g({
|
|
3237
3248
|
__name: "RemoveButton",
|
|
3238
3249
|
props: {
|
|
3239
3250
|
item: {}
|
|
@@ -3257,7 +3268,7 @@ const $o = ["disabled"], _o = /* @__PURE__ */ h({
|
|
|
3257
3268
|
], 10, $o);
|
|
3258
3269
|
};
|
|
3259
3270
|
}
|
|
3260
|
-
}), Do = ["xlink:href"], Bo = /* @__PURE__ */
|
|
3271
|
+
}), Do = ["xlink:href"], Bo = /* @__PURE__ */ g({
|
|
3261
3272
|
__name: "DragDropIcon",
|
|
3262
3273
|
props: {
|
|
3263
3274
|
item: {}
|
|
@@ -3276,7 +3287,7 @@ const $o = ["disabled"], _o = /* @__PURE__ */ h({
|
|
|
3276
3287
|
class: a(w(n).cssClasses.iconDrag)
|
|
3277
3288
|
}, null, 2));
|
|
3278
3289
|
}
|
|
3279
|
-
}), Lo = ["aria-expanded", "aria-controls"], Ao = /* @__PURE__ */
|
|
3290
|
+
}), Lo = ["aria-expanded", "aria-controls"], Ao = /* @__PURE__ */ g({
|
|
3280
3291
|
__name: "DetailButton",
|
|
3281
3292
|
props: {
|
|
3282
3293
|
item: {}
|
|
@@ -3300,7 +3311,7 @@ const $o = ["disabled"], _o = /* @__PURE__ */ h({
|
|
|
3300
3311
|
], 10, Lo);
|
|
3301
3312
|
};
|
|
3302
3313
|
}
|
|
3303
|
-
}), No = /* @__PURE__ */
|
|
3314
|
+
}), No = /* @__PURE__ */ g({
|
|
3304
3315
|
inheritAttrs: !1,
|
|
3305
3316
|
__name: "PanelDynamic",
|
|
3306
3317
|
props: {
|
|
@@ -3308,119 +3319,119 @@ const $o = ["disabled"], _o = /* @__PURE__ */ h({
|
|
|
3308
3319
|
css: {}
|
|
3309
3320
|
},
|
|
3310
3321
|
setup(r) {
|
|
3311
|
-
const s = r, n = $(null), e =
|
|
3322
|
+
const s = r, n = $(null), e = ve();
|
|
3312
3323
|
P(
|
|
3313
3324
|
s,
|
|
3314
3325
|
n,
|
|
3315
|
-
(
|
|
3316
|
-
|
|
3326
|
+
(c) => {
|
|
3327
|
+
c.panelCountChangedCallback = () => {
|
|
3317
3328
|
var v;
|
|
3318
3329
|
(v = e == null ? void 0 : e.proxy) == null || v.$forceUpdate();
|
|
3319
|
-
},
|
|
3330
|
+
}, c.currentIndexChangedCallback = () => {
|
|
3320
3331
|
var v;
|
|
3321
3332
|
(v = e == null ? void 0 : e.proxy) == null || v.$forceUpdate();
|
|
3322
|
-
},
|
|
3333
|
+
}, c.renderModeChangedCallback = () => {
|
|
3323
3334
|
var v;
|
|
3324
3335
|
(v = e == null ? void 0 : e.proxy) == null || v.$forceUpdate();
|
|
3325
3336
|
};
|
|
3326
3337
|
},
|
|
3327
|
-
(
|
|
3328
|
-
|
|
3329
|
-
},
|
|
3330
|
-
},
|
|
3338
|
+
(c) => {
|
|
3339
|
+
c.panelCountChangedCallback = () => {
|
|
3340
|
+
}, c.currentIndexChangedCallback = () => {
|
|
3341
|
+
}, c.renderModeChangedCallback = () => {
|
|
3331
3342
|
};
|
|
3332
3343
|
}
|
|
3333
3344
|
);
|
|
3334
|
-
const t = () => s.question.showLegacyNavigation, o = (
|
|
3345
|
+
const t = () => s.question.showLegacyNavigation, o = (c) => {
|
|
3335
3346
|
const v = s.question.getSurvey();
|
|
3336
3347
|
if (v) {
|
|
3337
|
-
const
|
|
3338
|
-
if (
|
|
3339
|
-
return
|
|
3348
|
+
const d = v.getElementWrapperComponentName(c);
|
|
3349
|
+
if (d)
|
|
3350
|
+
return d;
|
|
3340
3351
|
}
|
|
3341
3352
|
return "panel";
|
|
3342
|
-
}, l = (
|
|
3353
|
+
}, l = (c) => {
|
|
3343
3354
|
const v = s.question.getSurvey();
|
|
3344
|
-
let
|
|
3345
|
-
return v && (
|
|
3355
|
+
let d;
|
|
3356
|
+
return v && (d = v.getElementWrapperComponentData(c)), {
|
|
3346
3357
|
componentName: "survey-panel",
|
|
3347
3358
|
componentData: {
|
|
3348
|
-
element:
|
|
3349
|
-
data:
|
|
3359
|
+
element: c,
|
|
3360
|
+
data: d
|
|
3350
3361
|
}
|
|
3351
3362
|
};
|
|
3352
3363
|
};
|
|
3353
|
-
return (
|
|
3354
|
-
const
|
|
3364
|
+
return (c, v) => {
|
|
3365
|
+
const d = y("survey-string"), h = y("sv-paneldynamic-add-btn"), f = y("survey-paneldynamicprogress"), k = y("sv-paneldynamic-remove-btn"), D = y("survey-paneldynamicprogress-v2");
|
|
3355
3366
|
return i(), u("div", {
|
|
3356
|
-
class: a(
|
|
3367
|
+
class: a(c.question.cssClasses.root),
|
|
3357
3368
|
ref_key: "root",
|
|
3358
3369
|
ref: n
|
|
3359
3370
|
}, [
|
|
3360
|
-
|
|
3371
|
+
c.question.getShowNoEntriesPlaceholder() ? (i(), u("div", {
|
|
3361
3372
|
key: 0,
|
|
3362
|
-
class: a(
|
|
3373
|
+
class: a(c.question.cssClasses.noEntriesPlaceholder)
|
|
3363
3374
|
}, [
|
|
3364
3375
|
p("span", null, [
|
|
3365
|
-
C(
|
|
3366
|
-
locString:
|
|
3376
|
+
C(d, {
|
|
3377
|
+
locString: c.question.locNoEntriesText
|
|
3367
3378
|
}, null, 8, ["locString"])
|
|
3368
3379
|
]),
|
|
3369
|
-
C(
|
|
3370
|
-
data: { question:
|
|
3380
|
+
C(h, {
|
|
3381
|
+
data: { question: c.question }
|
|
3371
3382
|
}, null, 8, ["data"])
|
|
3372
|
-
], 2)) :
|
|
3373
|
-
!t() &&
|
|
3383
|
+
], 2)) : m("", !0),
|
|
3384
|
+
!t() && c.question.isProgressTopShowing && c.question.isRangeShowing ? (i(), u("div", {
|
|
3374
3385
|
key: 1,
|
|
3375
|
-
class: a(
|
|
3386
|
+
class: a(c.question.cssClasses.progress)
|
|
3376
3387
|
}, [
|
|
3377
3388
|
p("div", {
|
|
3378
|
-
class: a(
|
|
3379
|
-
style: I({ width:
|
|
3389
|
+
class: a(c.question.cssClasses.progressBar),
|
|
3390
|
+
style: I({ width: c.question.progress }),
|
|
3380
3391
|
role: "progressbar"
|
|
3381
3392
|
}, null, 6)
|
|
3382
|
-
], 2)) :
|
|
3383
|
-
t() &&
|
|
3393
|
+
], 2)) : m("", !0),
|
|
3394
|
+
t() && c.question.isProgressTopShowing ? (i(), q(f, {
|
|
3384
3395
|
key: 2,
|
|
3385
|
-
question:
|
|
3386
|
-
}, null, 8, ["question"])) :
|
|
3396
|
+
question: c.question
|
|
3397
|
+
}, null, 8, ["question"])) : m("", !0),
|
|
3387
3398
|
p("div", {
|
|
3388
|
-
class: a(
|
|
3399
|
+
class: a(c.question.cssClasses.panelsContainer)
|
|
3389
3400
|
}, [
|
|
3390
|
-
(i(!0), u(
|
|
3401
|
+
(i(!0), u(_, null, L(c.question.renderedPanels, (b, A) => (i(), u(_, {
|
|
3391
3402
|
key: b.id
|
|
3392
3403
|
}, [
|
|
3393
3404
|
p("div", {
|
|
3394
|
-
class: a(
|
|
3405
|
+
class: a(c.question.getPanelWrapperCss(b))
|
|
3395
3406
|
}, [
|
|
3396
|
-
(i(),
|
|
3397
|
-
|
|
3407
|
+
(i(), q(R(o(b)), z(oe(l(b))), null, 16)),
|
|
3408
|
+
c.question.panelRemoveButtonLocation === "right" && c.question.canRemovePanel && b.state !== "collapsed" ? (i(), q(k, {
|
|
3398
3409
|
key: 0,
|
|
3399
|
-
data: { question:
|
|
3400
|
-
}, null, 8, ["data"])) :
|
|
3410
|
+
data: { question: c.question, panel: b }
|
|
3411
|
+
}, null, 8, ["data"])) : m("", !0)
|
|
3401
3412
|
], 2),
|
|
3402
|
-
|
|
3403
|
-
class: a(
|
|
3413
|
+
c.question.isRenderModeList && A < c.question.visiblePanelCount - 1 ? (i(), u("hr", {
|
|
3414
|
+
class: a(c.question.cssClasses.separator),
|
|
3404
3415
|
key: "separator" + b.id
|
|
3405
|
-
}, null, 2)) :
|
|
3416
|
+
}, null, 2)) : m("", !0)
|
|
3406
3417
|
], 64))), 128))
|
|
3407
3418
|
], 2),
|
|
3408
|
-
t() &&
|
|
3419
|
+
t() && c.question.isProgressBottomShowing ? (i(), q(f, {
|
|
3409
3420
|
key: 3,
|
|
3410
|
-
question:
|
|
3411
|
-
}, null, 8, ["question"])) :
|
|
3412
|
-
t() &&
|
|
3421
|
+
question: c.question
|
|
3422
|
+
}, null, 8, ["question"])) : m("", !0),
|
|
3423
|
+
t() && c.question.isRenderModeList ? (i(), q(h, {
|
|
3413
3424
|
key: 4,
|
|
3414
|
-
data: { question:
|
|
3415
|
-
}, null, 8, ["data"])) :
|
|
3416
|
-
|
|
3425
|
+
data: { question: c.question }
|
|
3426
|
+
}, null, 8, ["data"])) : m("", !0),
|
|
3427
|
+
c.question.showNavigation ? (i(), q(D, {
|
|
3417
3428
|
key: 5,
|
|
3418
|
-
question:
|
|
3419
|
-
}, null, 8, ["question"])) :
|
|
3429
|
+
question: c.question
|
|
3430
|
+
}, null, 8, ["question"])) : m("", !0)
|
|
3420
3431
|
], 2);
|
|
3421
3432
|
};
|
|
3422
3433
|
}
|
|
3423
|
-
}), Po = /* @__PURE__ */
|
|
3434
|
+
}), Po = /* @__PURE__ */ g({
|
|
3424
3435
|
__name: "PanelDynamicProgress",
|
|
3425
3436
|
props: {
|
|
3426
3437
|
question: {}
|
|
@@ -3428,7 +3439,7 @@ const $o = ["disabled"], _o = /* @__PURE__ */ h({
|
|
|
3428
3439
|
setup(r) {
|
|
3429
3440
|
const s = r, n = () => s.question.isProgressTopShowing ? s.question.cssClasses.progressTop : s.question.cssClasses.progressBottom;
|
|
3430
3441
|
return (e, t) => {
|
|
3431
|
-
const o = y("sv-paneldynamic-prev-btn"), l = y("sv-paneldynamic-next-btn"),
|
|
3442
|
+
const o = y("sv-paneldynamic-prev-btn"), l = y("sv-paneldynamic-next-btn"), c = y("sv-paneldynamic-add-btn"), v = y("sv-paneldynamic-progress-text");
|
|
3432
3443
|
return i(), u("div", {
|
|
3433
3444
|
class: a(n())
|
|
3434
3445
|
}, [
|
|
@@ -3451,12 +3462,12 @@ const $o = ["disabled"], _o = /* @__PURE__ */ h({
|
|
|
3451
3462
|
style: I({ width: e.question.progress }),
|
|
3452
3463
|
role: "progressbar"
|
|
3453
3464
|
}, null, 6)
|
|
3454
|
-
], 2)) :
|
|
3465
|
+
], 2)) : m("", !0),
|
|
3455
3466
|
C(l, {
|
|
3456
3467
|
data: { question: e.question }
|
|
3457
3468
|
}, null, 8, ["data"])
|
|
3458
3469
|
], 2),
|
|
3459
|
-
C(
|
|
3470
|
+
C(c, {
|
|
3460
3471
|
data: { question: e.question }
|
|
3461
3472
|
}, null, 8, ["data"]),
|
|
3462
3473
|
C(v, {
|
|
@@ -3466,7 +3477,7 @@ const $o = ["disabled"], _o = /* @__PURE__ */ h({
|
|
|
3466
3477
|
], 2);
|
|
3467
3478
|
};
|
|
3468
3479
|
}
|
|
3469
|
-
}), Mo = /* @__PURE__ */
|
|
3480
|
+
}), Mo = /* @__PURE__ */ g({
|
|
3470
3481
|
__name: "PanelDynamicProgressV2",
|
|
3471
3482
|
props: {
|
|
3472
3483
|
question: {}
|
|
@@ -3490,7 +3501,7 @@ const $o = ["disabled"], _o = /* @__PURE__ */ h({
|
|
|
3490
3501
|
style: I({ width: s.question.progress }),
|
|
3491
3502
|
role: "progressbar"
|
|
3492
3503
|
}, null, 6)
|
|
3493
|
-
], 2)) :
|
|
3504
|
+
], 2)) : m("", !0),
|
|
3494
3505
|
s.question.footerToolbar.visibleActions.length ? (i(), u("div", {
|
|
3495
3506
|
key: 1,
|
|
3496
3507
|
class: a(s.question.cssClasses.footerButtonsContainer)
|
|
@@ -3498,8 +3509,8 @@ const $o = ["disabled"], _o = /* @__PURE__ */ h({
|
|
|
3498
3509
|
C(e, {
|
|
3499
3510
|
model: s.question.footerToolbar
|
|
3500
3511
|
}, null, 8, ["model"])
|
|
3501
|
-
], 2)) :
|
|
3502
|
-
], 2)) :
|
|
3512
|
+
], 2)) : m("", !0)
|
|
3513
|
+
], 2)) : m("", !0);
|
|
3503
3514
|
};
|
|
3504
3515
|
}
|
|
3505
3516
|
});
|
|
@@ -3508,7 +3519,7 @@ function Y(r) {
|
|
|
3508
3519
|
() => r.item && r.item.data.question || r.data.question
|
|
3509
3520
|
);
|
|
3510
3521
|
}
|
|
3511
|
-
const Eo = /* @__PURE__ */
|
|
3522
|
+
const Eo = /* @__PURE__ */ g({
|
|
3512
3523
|
__name: "PaneldynamicAddBtn",
|
|
3513
3524
|
props: {
|
|
3514
3525
|
item: {},
|
|
@@ -3533,10 +3544,10 @@ const Eo = /* @__PURE__ */ h({
|
|
|
3533
3544
|
locString: w(n).locPanelAddText
|
|
3534
3545
|
}, null, 8, ["locString"])
|
|
3535
3546
|
], 2)
|
|
3536
|
-
], 2)) :
|
|
3547
|
+
], 2)) : m("", !0);
|
|
3537
3548
|
};
|
|
3538
3549
|
}
|
|
3539
|
-
}), Ho = ["title"], Wo = /* @__PURE__ */
|
|
3550
|
+
}), Ho = ["title"], Wo = /* @__PURE__ */ g({
|
|
3540
3551
|
__name: "PaneldynamicNextBtn",
|
|
3541
3552
|
props: {
|
|
3542
3553
|
item: {},
|
|
@@ -3560,7 +3571,7 @@ const Eo = /* @__PURE__ */ h({
|
|
|
3560
3571
|
], 10, Ho);
|
|
3561
3572
|
};
|
|
3562
3573
|
}
|
|
3563
|
-
}), Fo = ["title"], Vo = /* @__PURE__ */
|
|
3574
|
+
}), Fo = ["title"], Vo = /* @__PURE__ */ g({
|
|
3564
3575
|
__name: "PaneldynamicPrevBtn",
|
|
3565
3576
|
props: {
|
|
3566
3577
|
item: {},
|
|
@@ -3584,7 +3595,7 @@ const Eo = /* @__PURE__ */ h({
|
|
|
3584
3595
|
], 10, Fo);
|
|
3585
3596
|
};
|
|
3586
3597
|
}
|
|
3587
|
-
}), Oo = /* @__PURE__ */
|
|
3598
|
+
}), Oo = /* @__PURE__ */ g({
|
|
3588
3599
|
__name: "PaneldynamicRemoveBtn",
|
|
3589
3600
|
props: {
|
|
3590
3601
|
item: {},
|
|
@@ -3597,7 +3608,7 @@ const Eo = /* @__PURE__ */ h({
|
|
|
3597
3608
|
n.value.isInputReadOnly || n.value.removePanelUI(o);
|
|
3598
3609
|
};
|
|
3599
3610
|
return (o, l) => {
|
|
3600
|
-
const
|
|
3611
|
+
const c = y("survey-string");
|
|
3601
3612
|
return i(), u("button", {
|
|
3602
3613
|
type: "button",
|
|
3603
3614
|
class: a(w(n).getPanelRemoveButtonCss()),
|
|
@@ -3606,7 +3617,7 @@ const Eo = /* @__PURE__ */ h({
|
|
|
3606
3617
|
p("span", {
|
|
3607
3618
|
class: a(w(n).cssClasses.buttonRemoveText)
|
|
3608
3619
|
}, [
|
|
3609
|
-
C(
|
|
3620
|
+
C(c, {
|
|
3610
3621
|
locString: w(n).locPanelRemoveText
|
|
3611
3622
|
}, null, 8, ["locString"])
|
|
3612
3623
|
], 2),
|
|
@@ -3616,7 +3627,7 @@ const Eo = /* @__PURE__ */ h({
|
|
|
3616
3627
|
], 2);
|
|
3617
3628
|
};
|
|
3618
3629
|
}
|
|
3619
|
-
}), zo = /* @__PURE__ */
|
|
3630
|
+
}), zo = /* @__PURE__ */ g({
|
|
3620
3631
|
__name: "PaneldynamicProgressText",
|
|
3621
3632
|
props: {
|
|
3622
3633
|
item: {},
|
|
@@ -3628,7 +3639,7 @@ const Eo = /* @__PURE__ */ h({
|
|
|
3628
3639
|
class: a(w(n).cssClasses.progressText)
|
|
3629
3640
|
}, T(w(n).progressText), 3));
|
|
3630
3641
|
}
|
|
3631
|
-
}), Uo = ["id"], Ko = /* @__PURE__ */
|
|
3642
|
+
}), Uo = ["id"], Ko = /* @__PURE__ */ g({
|
|
3632
3643
|
__name: "Errors",
|
|
3633
3644
|
props: {
|
|
3634
3645
|
element: {},
|
|
@@ -3645,16 +3656,16 @@ const Eo = /* @__PURE__ */ h({
|
|
|
3645
3656
|
ref_key: "root",
|
|
3646
3657
|
ref: s
|
|
3647
3658
|
}, [
|
|
3648
|
-
(i(!0), u(
|
|
3659
|
+
(i(!0), u(_, null, L(n.element.errors, (t, o) => (i(), q(R(n.element.survey.questionErrorComponent), {
|
|
3649
3660
|
element: n.element,
|
|
3650
3661
|
key: "error_" + o,
|
|
3651
3662
|
errorKey: "error_" + o,
|
|
3652
3663
|
error: t,
|
|
3653
3664
|
cssClasses: n.element.cssClasses
|
|
3654
3665
|
}, null, 8, ["element", "errorKey", "error", "cssClasses"]))), 128))
|
|
3655
|
-
], 10, Uo)) :
|
|
3666
|
+
], 10, Uo)) : m("", !0);
|
|
3656
3667
|
}
|
|
3657
|
-
}), Qo = { key: 0 }, jo = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], Go = /* @__PURE__ */
|
|
3668
|
+
}), Qo = { key: 0 }, jo = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], Go = /* @__PURE__ */ g({
|
|
3658
3669
|
__name: "QuestionComment",
|
|
3659
3670
|
props: {
|
|
3660
3671
|
question: {}
|
|
@@ -3680,7 +3691,7 @@ const Eo = /* @__PURE__ */ h({
|
|
|
3680
3691
|
})
|
|
3681
3692
|
}, null, 46, jo));
|
|
3682
3693
|
}
|
|
3683
|
-
}), Jo = /* @__PURE__ */
|
|
3694
|
+
}), Jo = /* @__PURE__ */ g({
|
|
3684
3695
|
__name: "TitleElement",
|
|
3685
3696
|
props: {
|
|
3686
3697
|
element: {},
|
|
@@ -3688,11 +3699,11 @@ const Eo = /* @__PURE__ */ h({
|
|
|
3688
3699
|
},
|
|
3689
3700
|
setup(r) {
|
|
3690
3701
|
const s = (n) => {
|
|
3691
|
-
|
|
3702
|
+
ye(n);
|
|
3692
3703
|
};
|
|
3693
3704
|
return (n, e) => {
|
|
3694
3705
|
const t = y("survey-element-title-content"), o = y("sv-title-actions");
|
|
3695
|
-
return n.element.hasTitle ? (i(),
|
|
3706
|
+
return n.element.hasTitle ? (i(), q(R(n.element.titleTagName), {
|
|
3696
3707
|
key: 0,
|
|
3697
3708
|
class: a(n.element.cssTitle),
|
|
3698
3709
|
"aria-label": n.element.titleAriaLabel,
|
|
@@ -3705,22 +3716,22 @@ const Eo = /* @__PURE__ */ h({
|
|
|
3705
3716
|
})
|
|
3706
3717
|
}, {
|
|
3707
3718
|
default: V(() => [
|
|
3708
|
-
n.element.hasTitleActions ?
|
|
3719
|
+
n.element.hasTitleActions ? m("", !0) : (i(), q(t, {
|
|
3709
3720
|
key: 0,
|
|
3710
3721
|
element: n.element,
|
|
3711
3722
|
css: n.css
|
|
3712
3723
|
}, null, 8, ["element", "css"])),
|
|
3713
|
-
n.element.hasTitleActions ? (i(),
|
|
3724
|
+
n.element.hasTitleActions ? (i(), q(o, {
|
|
3714
3725
|
key: 1,
|
|
3715
3726
|
element: n.element,
|
|
3716
3727
|
css: n.css
|
|
3717
|
-
}, null, 8, ["element", "css"])) :
|
|
3728
|
+
}, null, 8, ["element", "css"])) : m("", !0)
|
|
3718
3729
|
]),
|
|
3719
3730
|
_: 1
|
|
3720
|
-
}, 40, ["class", "aria-label", "id", "tabindex", "aria-expanded", "role"])) :
|
|
3731
|
+
}, 40, ["class", "aria-label", "id", "tabindex", "aria-expanded", "role"])) : m("", !0);
|
|
3721
3732
|
};
|
|
3722
3733
|
}
|
|
3723
|
-
}), Xo = { key: 3 }, Yo = { key: 5 }, Zo = { key: 7 }, xo = /* @__PURE__ */
|
|
3734
|
+
}), Xo = { key: 3 }, Yo = { key: 5 }, Zo = { key: 7 }, xo = /* @__PURE__ */ g({
|
|
3724
3735
|
inheritAttrs: !1,
|
|
3725
3736
|
__name: "TitleContent",
|
|
3726
3737
|
props: {
|
|
@@ -3733,43 +3744,43 @@ const Eo = /* @__PURE__ */ h({
|
|
|
3733
3744
|
);
|
|
3734
3745
|
return (e, t) => {
|
|
3735
3746
|
const o = y("survey-string");
|
|
3736
|
-
return i(), u(
|
|
3737
|
-
e.element.isTitleRenderedAsString ? (i(),
|
|
3747
|
+
return i(), u(_, null, [
|
|
3748
|
+
e.element.isTitleRenderedAsString ? (i(), q(o, {
|
|
3738
3749
|
key: 0,
|
|
3739
3750
|
locString: e.element.locTitle
|
|
3740
|
-
}, null, 8, ["locString"])) :
|
|
3751
|
+
}, null, 8, ["locString"])) : m("", !0),
|
|
3741
3752
|
!e.element.isTitleRenderedAsString && e.element.isRequireTextOnStart ? (i(), u("span", {
|
|
3742
3753
|
key: 1,
|
|
3743
3754
|
class: a(n.value.requiredText),
|
|
3744
3755
|
"aria-hidden": !0
|
|
3745
|
-
}, T(e.element.requiredText), 3)) :
|
|
3756
|
+
}, T(e.element.requiredText), 3)) : m("", !0),
|
|
3746
3757
|
!e.element.isTitleRenderedAsString && e.element.no ? (i(), u("span", {
|
|
3747
3758
|
key: 2,
|
|
3748
3759
|
style: { position: "static" },
|
|
3749
3760
|
class: a(e.element.cssTitleNumber),
|
|
3750
3761
|
"aria-hidden": !0
|
|
3751
|
-
}, T(e.element.no), 3)) :
|
|
3752
|
-
!e.element.isTitleRenderedAsString && e.element.no ? (i(), u("span", Xo, "\xA0")) :
|
|
3762
|
+
}, T(e.element.no), 3)) : m("", !0),
|
|
3763
|
+
!e.element.isTitleRenderedAsString && e.element.no ? (i(), u("span", Xo, "\xA0")) : m("", !0),
|
|
3753
3764
|
!e.element.isTitleRenderedAsString && e.element.isRequireTextBeforeTitle ? (i(), u("span", {
|
|
3754
3765
|
key: 4,
|
|
3755
3766
|
class: a(n.value.requiredText),
|
|
3756
3767
|
"aria-hidden": !0
|
|
3757
|
-
}, T(e.element.requiredText), 3)) :
|
|
3758
|
-
!e.element.isTitleRenderedAsString && e.element.isRequireTextBeforeTitle ? (i(), u("span", Yo, "\xA0")) :
|
|
3759
|
-
e.element.isTitleRenderedAsString ?
|
|
3768
|
+
}, T(e.element.requiredText), 3)) : m("", !0),
|
|
3769
|
+
!e.element.isTitleRenderedAsString && e.element.isRequireTextBeforeTitle ? (i(), u("span", Yo, "\xA0")) : m("", !0),
|
|
3770
|
+
e.element.isTitleRenderedAsString ? m("", !0) : (i(), q(o, {
|
|
3760
3771
|
key: 6,
|
|
3761
3772
|
locString: e.element.locTitle
|
|
3762
3773
|
}, null, 8, ["locString"])),
|
|
3763
|
-
!e.element.isTitleRenderedAsString && e.element.isRequireTextAfterTitle ? (i(), u("span", Zo, "\xA0")) :
|
|
3774
|
+
!e.element.isTitleRenderedAsString && e.element.isRequireTextAfterTitle ? (i(), u("span", Zo, "\xA0")) : m("", !0),
|
|
3764
3775
|
!e.element.isTitleRenderedAsString && e.element.isRequireTextAfterTitle ? (i(), u("span", {
|
|
3765
3776
|
key: 8,
|
|
3766
3777
|
class: a(n.value.requiredText),
|
|
3767
3778
|
"aria-hidden": !0
|
|
3768
|
-
}, T(e.element.requiredText), 3)) :
|
|
3779
|
+
}, T(e.element.requiredText), 3)) : m("", !0)
|
|
3769
3780
|
], 64);
|
|
3770
3781
|
};
|
|
3771
3782
|
}
|
|
3772
|
-
}), et = { class: "sv-title-actions" }, st = { class: "sv-title-actions__title" }, nt = /* @__PURE__ */
|
|
3783
|
+
}), et = { class: "sv-title-actions" }, st = { class: "sv-title-actions__title" }, nt = /* @__PURE__ */ g({
|
|
3773
3784
|
__name: "TitleActions",
|
|
3774
3785
|
props: {
|
|
3775
3786
|
element: {},
|
|
@@ -3778,24 +3789,24 @@ const Eo = /* @__PURE__ */ h({
|
|
|
3778
3789
|
setup(r) {
|
|
3779
3790
|
const s = r, n = S(() => s.element.getTitleToolbar());
|
|
3780
3791
|
return (e, t) => {
|
|
3781
|
-
const o = y("survey-string"), l = y("survey-element-title-content"),
|
|
3792
|
+
const o = y("survey-string"), l = y("survey-element-title-content"), c = y("sv-action-bar");
|
|
3782
3793
|
return i(), u("div", et, [
|
|
3783
3794
|
p("span", st, [
|
|
3784
|
-
e.element.isPage ? (i(),
|
|
3795
|
+
e.element.isPage ? (i(), q(o, {
|
|
3785
3796
|
key: 0,
|
|
3786
3797
|
locString: e.element.locTitle
|
|
3787
|
-
}, null, 8, ["locString"])) :
|
|
3788
|
-
e.element.isPage ?
|
|
3798
|
+
}, null, 8, ["locString"])) : m("", !0),
|
|
3799
|
+
e.element.isPage ? m("", !0) : (i(), q(l, {
|
|
3789
3800
|
key: 1,
|
|
3790
3801
|
element: e.element,
|
|
3791
3802
|
css: e.css
|
|
3792
3803
|
}, null, 8, ["element", "css"]))
|
|
3793
3804
|
]),
|
|
3794
|
-
C(
|
|
3805
|
+
C(c, { model: n.value }, null, 8, ["model"])
|
|
3795
3806
|
]);
|
|
3796
3807
|
};
|
|
3797
3808
|
}
|
|
3798
|
-
}),
|
|
3809
|
+
}), ge = (r, s) => {
|
|
3799
3810
|
const n = r.__vccOpts || r;
|
|
3800
3811
|
for (const [e, t] of s)
|
|
3801
3812
|
n[e] = t;
|
|
@@ -3806,9 +3817,9 @@ const Eo = /* @__PURE__ */ h({
|
|
|
3806
3817
|
function lt(r, s) {
|
|
3807
3818
|
return i(), u("div", tt, rt);
|
|
3808
3819
|
}
|
|
3809
|
-
const at = /* @__PURE__ */
|
|
3820
|
+
const at = /* @__PURE__ */ ge(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use", null, null, -1), dt = [
|
|
3810
3821
|
ut
|
|
3811
|
-
], mt = /* @__PURE__ */
|
|
3822
|
+
], mt = /* @__PURE__ */ g({
|
|
3812
3823
|
__name: "SvgIcon",
|
|
3813
3824
|
props: {
|
|
3814
3825
|
size: {},
|
|
@@ -3839,7 +3850,7 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
3839
3850
|
role: "img"
|
|
3840
3851
|
}, dt, 512));
|
|
3841
3852
|
}
|
|
3842
|
-
}), ct = /* @__PURE__ */
|
|
3853
|
+
}), ct = /* @__PURE__ */ g({
|
|
3843
3854
|
__name: "QuestionError",
|
|
3844
3855
|
props: {
|
|
3845
3856
|
errorKey: {},
|
|
@@ -3869,7 +3880,7 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
3869
3880
|
]);
|
|
3870
3881
|
};
|
|
3871
3882
|
}
|
|
3872
|
-
}), pt = /* @__PURE__ */
|
|
3883
|
+
}), pt = /* @__PURE__ */ g({
|
|
3873
3884
|
__name: "ActionBar",
|
|
3874
3885
|
props: {
|
|
3875
3886
|
model: {},
|
|
@@ -3887,7 +3898,7 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
3887
3898
|
}), O(() => {
|
|
3888
3899
|
s.model.resetResponsivityManager();
|
|
3889
3900
|
}), (o, l) => {
|
|
3890
|
-
const
|
|
3901
|
+
const c = y("sv-action");
|
|
3891
3902
|
return o.model.hasActions ? (i(), u("div", {
|
|
3892
3903
|
key: 0,
|
|
3893
3904
|
ref_key: "root",
|
|
@@ -3895,14 +3906,14 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
3895
3906
|
class: a(o.model.getRootCss()),
|
|
3896
3907
|
onClick: e
|
|
3897
3908
|
}, [
|
|
3898
|
-
(i(!0), u(
|
|
3909
|
+
(i(!0), u(_, null, L(w(t), (v) => (i(), q(c, {
|
|
3899
3910
|
key: v.id,
|
|
3900
3911
|
item: v
|
|
3901
3912
|
}, null, 8, ["item"]))), 128))
|
|
3902
|
-
], 2)) :
|
|
3913
|
+
], 2)) : m("", !0);
|
|
3903
3914
|
};
|
|
3904
3915
|
}
|
|
3905
|
-
}), vt = ["id"], yt = { class: "sv-action__content" }, qt = /* @__PURE__ */
|
|
3916
|
+
}), vt = ["id"], yt = { class: "sv-action__content" }, qt = /* @__PURE__ */ g({
|
|
3906
3917
|
__name: "Action",
|
|
3907
3918
|
props: {
|
|
3908
3919
|
item: {}
|
|
@@ -3918,15 +3929,15 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
3918
3929
|
id: e.item.id
|
|
3919
3930
|
}, [
|
|
3920
3931
|
p("div", yt, [
|
|
3921
|
-
e.item.needSeparator ? (i(),
|
|
3922
|
-
(i(),
|
|
3932
|
+
e.item.needSeparator ? (i(), q(o, { key: 0 })) : m("", !0),
|
|
3933
|
+
(i(), q(R(n.value), { item: e.item }, null, 8, ["item"]))
|
|
3923
3934
|
])
|
|
3924
3935
|
], 10, vt);
|
|
3925
3936
|
};
|
|
3926
3937
|
}
|
|
3927
3938
|
}), gt = ["disabled", "title", "aria-checked", "aria-expanded", "role"], ht = {
|
|
3928
3939
|
inheritAttrs: !1
|
|
3929
|
-
}, Ct = /* @__PURE__ */
|
|
3940
|
+
}, Ct = /* @__PURE__ */ g({
|
|
3930
3941
|
...ht,
|
|
3931
3942
|
__name: "ActionBarItem",
|
|
3932
3943
|
props: {
|
|
@@ -3951,17 +3962,17 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
3951
3962
|
"aria-expanded": n.item.ariaExpanded,
|
|
3952
3963
|
role: n.item.ariaRole
|
|
3953
3964
|
}, [
|
|
3954
|
-
n.item.iconName ? (i(),
|
|
3965
|
+
n.item.iconName ? (i(), q(t, {
|
|
3955
3966
|
key: 0,
|
|
3956
3967
|
class: a(n.item.cssClasses.itemIcon),
|
|
3957
3968
|
iconName: n.item.iconName,
|
|
3958
3969
|
size: n.item.iconSize,
|
|
3959
3970
|
title: n.item.tooltip || n.item.title
|
|
3960
|
-
}, null, 8, ["class", "iconName", "size", "title"])) :
|
|
3971
|
+
}, null, 8, ["class", "iconName", "size", "title"])) : m("", !0),
|
|
3961
3972
|
n.item.hasTitle ? (i(), u("span", {
|
|
3962
3973
|
key: 1,
|
|
3963
3974
|
class: a(n.item.getActionBarItemTitleCss())
|
|
3964
|
-
}, T(n.item.title), 3)) :
|
|
3975
|
+
}, T(n.item.title), 3)) : m("", !0)
|
|
3965
3976
|
], 42, gt)), [
|
|
3966
3977
|
[o, { processEsc: !1, disableTabStop: n.item.disableTabStop }]
|
|
3967
3978
|
]);
|
|
@@ -3969,7 +3980,7 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
3969
3980
|
}
|
|
3970
3981
|
}), bt = ["disabled", "title", "role"], kt = {
|
|
3971
3982
|
inheritAttrs: !1
|
|
3972
|
-
}, ft = /* @__PURE__ */
|
|
3983
|
+
}, ft = /* @__PURE__ */ g({
|
|
3973
3984
|
...kt,
|
|
3974
3985
|
__name: "ActionBarItemDropdown",
|
|
3975
3986
|
props: {
|
|
@@ -3987,43 +3998,43 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
3987
3998
|
e.dispose();
|
|
3988
3999
|
}
|
|
3989
4000
|
), (t, o) => {
|
|
3990
|
-
const l = y("sv-svg-icon"),
|
|
3991
|
-
return i(), u(
|
|
4001
|
+
const l = y("sv-svg-icon"), c = y("sv-popup"), v = X("key2click");
|
|
4002
|
+
return i(), u(_, null, [
|
|
3992
4003
|
N((i(), u("button", {
|
|
3993
4004
|
type: "button",
|
|
3994
4005
|
class: a(t.item.getActionBarItemCss()),
|
|
3995
|
-
onClick: o[0] || (o[0] = (
|
|
3996
|
-
t.item.action(t.item, !!
|
|
4006
|
+
onClick: o[0] || (o[0] = (d) => {
|
|
4007
|
+
t.item.action(t.item, !!d.pointerType);
|
|
3997
4008
|
}),
|
|
3998
|
-
onKeyup: o[1] || (o[1] = (
|
|
3999
|
-
|
|
4009
|
+
onKeyup: o[1] || (o[1] = (d) => {
|
|
4010
|
+
d.stopPropagation();
|
|
4000
4011
|
}),
|
|
4001
4012
|
disabled: t.item.disabled,
|
|
4002
4013
|
title: t.item.tooltip || t.item.title,
|
|
4003
4014
|
role: t.item.ariaRole
|
|
4004
4015
|
}, [
|
|
4005
|
-
t.item.iconName ? (i(),
|
|
4016
|
+
t.item.iconName ? (i(), q(l, {
|
|
4006
4017
|
key: 0,
|
|
4007
4018
|
class: a(t.item.cssClasses.itemIcon),
|
|
4008
4019
|
iconName: t.item.iconName,
|
|
4009
4020
|
size: t.item.iconSize,
|
|
4010
4021
|
title: t.item.tooltip || t.item.title
|
|
4011
|
-
}, null, 8, ["class", "iconName", "size", "title"])) :
|
|
4022
|
+
}, null, 8, ["class", "iconName", "size", "title"])) : m("", !0),
|
|
4012
4023
|
t.item.hasTitle ? (i(), u("span", {
|
|
4013
4024
|
key: 1,
|
|
4014
4025
|
class: a(t.item.getActionBarItemTitleCss())
|
|
4015
|
-
}, T(t.item.title), 3)) :
|
|
4026
|
+
}, T(t.item.title), 3)) : m("", !0)
|
|
4016
4027
|
], 42, bt)), [
|
|
4017
4028
|
[v, { processEsc: !1, disableTabStop: t.item.disableTabStop }]
|
|
4018
4029
|
]),
|
|
4019
|
-
C(
|
|
4030
|
+
C(c, {
|
|
4020
4031
|
model: t.item.popupModel,
|
|
4021
4032
|
getTarget: w(n)
|
|
4022
4033
|
}, null, 8, ["model", "getTarget"])
|
|
4023
4034
|
], 64);
|
|
4024
4035
|
};
|
|
4025
4036
|
}
|
|
4026
|
-
}), wt = /* @__PURE__ */
|
|
4037
|
+
}), wt = /* @__PURE__ */ g({
|
|
4027
4038
|
__name: "ActionBarSeparator",
|
|
4028
4039
|
props: {
|
|
4029
4040
|
item: {}
|
|
@@ -4034,25 +4045,25 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4034
4045
|
class: a(["sv-action-bar-separator", n.value])
|
|
4035
4046
|
}, null, 2));
|
|
4036
4047
|
}
|
|
4037
|
-
}), It = ["aria-label", "placeholder", "value"], St = ["aria-label"], Rt = ["id"], Tt = /* @__PURE__ */
|
|
4048
|
+
}), It = ["aria-label", "placeholder", "value"], St = ["aria-label"], Rt = ["id"], Tt = /* @__PURE__ */ g({
|
|
4038
4049
|
__name: "List",
|
|
4039
4050
|
props: {
|
|
4040
4051
|
model: {}
|
|
4041
4052
|
},
|
|
4042
4053
|
setup(r) {
|
|
4043
4054
|
const s = r, n = $(null), e = (l) => {
|
|
4044
|
-
const
|
|
4045
|
-
|
|
4055
|
+
const c = s.model;
|
|
4056
|
+
c.filterString = l.target.value;
|
|
4046
4057
|
}, t = (l) => {
|
|
4047
|
-
const
|
|
4048
|
-
|
|
4058
|
+
const c = s.model;
|
|
4059
|
+
c.filterString = l.target.value, s.model.goToItems(l);
|
|
4049
4060
|
}, o = (l) => {
|
|
4050
4061
|
s.model.onMouseMove(l);
|
|
4051
4062
|
};
|
|
4052
4063
|
return B(() => s.model), M(() => {
|
|
4053
4064
|
s.model.initListContainerHtmlElement(n.value);
|
|
4054
|
-
}), (l,
|
|
4055
|
-
const v = y("sv-svg-icon"),
|
|
4065
|
+
}), (l, c) => {
|
|
4066
|
+
const v = y("sv-svg-icon"), d = y("sv-list-item");
|
|
4056
4067
|
return i(), u("div", {
|
|
4057
4068
|
class: a(l.model.cssClasses.root),
|
|
4058
4069
|
ref_key: "listContainerElement",
|
|
@@ -4081,8 +4092,8 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4081
4092
|
}, null, 42, It),
|
|
4082
4093
|
l.model.showSearchClearButton && !!l.model.filterString ? (i(), u("button", {
|
|
4083
4094
|
key: 0,
|
|
4084
|
-
onClick:
|
|
4085
|
-
l.model.onClickSearchClearButton(
|
|
4095
|
+
onClick: c[0] || (c[0] = (h) => {
|
|
4096
|
+
l.model.onClickSearchClearButton(h);
|
|
4086
4097
|
}),
|
|
4087
4098
|
class: a(l.model.cssClasses.searchClearButtonIcon)
|
|
4088
4099
|
}, [
|
|
@@ -4090,8 +4101,8 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4090
4101
|
iconName: "icon-searchclear",
|
|
4091
4102
|
size: "auto"
|
|
4092
4103
|
})
|
|
4093
|
-
], 2)) :
|
|
4094
|
-
], 2)) :
|
|
4104
|
+
], 2)) : m("", !0)
|
|
4105
|
+
], 2)) : m("", !0),
|
|
4095
4106
|
N(p("div", {
|
|
4096
4107
|
class: a(l.model.cssClasses.emptyContainer)
|
|
4097
4108
|
}, [
|
|
@@ -4107,26 +4118,26 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4107
4118
|
class: a(l.model.getListClass()),
|
|
4108
4119
|
role: "listbox",
|
|
4109
4120
|
id: l.model.elementId,
|
|
4110
|
-
onMousedown:
|
|
4111
|
-
|
|
4121
|
+
onMousedown: c[1] || (c[1] = (h) => {
|
|
4122
|
+
h.preventDefault();
|
|
4112
4123
|
}),
|
|
4113
4124
|
onMousemove: o,
|
|
4114
|
-
onKeydown:
|
|
4115
|
-
l.model.onKeyDown(
|
|
4125
|
+
onKeydown: c[2] || (c[2] = (h) => {
|
|
4126
|
+
l.model.onKeyDown(h);
|
|
4116
4127
|
})
|
|
4117
4128
|
}, [
|
|
4118
|
-
(i(!0), u(
|
|
4119
|
-
item:
|
|
4129
|
+
(i(!0), u(_, null, L(l.model.renderedActions, (h) => (i(), q(d, {
|
|
4130
|
+
item: h,
|
|
4120
4131
|
model: l.model,
|
|
4121
|
-
key:
|
|
4132
|
+
key: h.id
|
|
4122
4133
|
}, null, 8, ["item", "model"]))), 128))
|
|
4123
4134
|
], 42, Rt)), [
|
|
4124
4135
|
[H, !l.model.isEmpty]
|
|
4125
|
-
]) :
|
|
4136
|
+
]) : m("", !0)
|
|
4126
4137
|
], 2);
|
|
4127
4138
|
};
|
|
4128
4139
|
}
|
|
4129
|
-
}), $t = ["aria-selected", "id", "tabindex"], _t = ["title"], Dt = /* @__PURE__ */
|
|
4140
|
+
}), $t = ["aria-selected", "id", "tabindex"], _t = ["title"], Dt = /* @__PURE__ */ g({
|
|
4130
4141
|
__name: "ListItem",
|
|
4131
4142
|
props: {
|
|
4132
4143
|
model: {},
|
|
@@ -4147,7 +4158,7 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4147
4158
|
"aria-selected": t.model.isItemSelected(t.item),
|
|
4148
4159
|
key: t.item.id,
|
|
4149
4160
|
id: n.value,
|
|
4150
|
-
onPointerdown: o[2] || (o[2] = (
|
|
4161
|
+
onPointerdown: o[2] || (o[2] = (c) => t.model.onPointerDown(c, t.item)),
|
|
4151
4162
|
class: a(t.model.getItemClass(t.item)),
|
|
4152
4163
|
onClick: e,
|
|
4153
4164
|
tabindex: t.item.disableTabStop ? -1 : 0
|
|
@@ -4155,15 +4166,15 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4155
4166
|
t.item.needSeparator ? (i(), u("div", {
|
|
4156
4167
|
key: 0,
|
|
4157
4168
|
class: a(t.model.cssClasses.itemSeparator)
|
|
4158
|
-
}, null, 2)) :
|
|
4169
|
+
}, null, 2)) : m("", !0),
|
|
4159
4170
|
p("div", {
|
|
4160
4171
|
style: I({ paddingInlineStart: t.model.getItemIndent(t.item) }),
|
|
4161
4172
|
class: a(t.model.cssClasses.itemBody),
|
|
4162
4173
|
title: t.item.locTitle.calculatedText,
|
|
4163
|
-
onMouseover: o[0] || (o[0] = (
|
|
4164
|
-
onMouseleave: o[1] || (o[1] = (
|
|
4174
|
+
onMouseover: o[0] || (o[0] = (c) => t.model.onItemHover(t.item)),
|
|
4175
|
+
onMouseleave: o[1] || (o[1] = (c) => t.model.onItemLeave(t.item))
|
|
4165
4176
|
}, [
|
|
4166
|
-
(i(),
|
|
4177
|
+
(i(), q(R(t.item.component || "sv-list-item-content"), {
|
|
4167
4178
|
item: t.item,
|
|
4168
4179
|
model: t.model
|
|
4169
4180
|
}, null, 8, ["item", "model"]))
|
|
@@ -4174,7 +4185,7 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4174
4185
|
]);
|
|
4175
4186
|
};
|
|
4176
4187
|
}
|
|
4177
|
-
}), Bt = /* @__PURE__ */
|
|
4188
|
+
}), Bt = /* @__PURE__ */ g({
|
|
4178
4189
|
__name: "ListItemContent",
|
|
4179
4190
|
props: {
|
|
4180
4191
|
model: {},
|
|
@@ -4184,26 +4195,26 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4184
4195
|
const s = r;
|
|
4185
4196
|
return B(() => s.item), (n, e) => {
|
|
4186
4197
|
const t = y("sv-svg-icon"), o = y("survey-string");
|
|
4187
|
-
return i(), u(
|
|
4188
|
-
n.item.iconName ? (i(),
|
|
4198
|
+
return i(), u(_, null, [
|
|
4199
|
+
n.item.iconName ? (i(), q(t, {
|
|
4189
4200
|
key: 0,
|
|
4190
4201
|
class: a(n.model.cssClasses.itemIcon),
|
|
4191
4202
|
iconName: n.item.iconName,
|
|
4192
4203
|
size: n.item.iconSize
|
|
4193
|
-
}, null, 8, ["class", "iconName", "size"])) :
|
|
4204
|
+
}, null, 8, ["class", "iconName", "size"])) : m("", !0),
|
|
4194
4205
|
C(o, {
|
|
4195
4206
|
locString: n.item.locTitle
|
|
4196
4207
|
}, null, 8, ["locString"]),
|
|
4197
|
-
n.item.markerIconName ? (i(),
|
|
4208
|
+
n.item.markerIconName ? (i(), q(t, {
|
|
4198
4209
|
key: 1,
|
|
4199
4210
|
class: a(n.item.cssClasses.itemMarkerIcon),
|
|
4200
4211
|
iconName: n.item.markerIconName,
|
|
4201
4212
|
size: n.item.markerIconSize
|
|
4202
|
-
}, null, 8, ["class", "iconName", "size"])) :
|
|
4213
|
+
}, null, 8, ["class", "iconName", "size"])) : m("", !0)
|
|
4203
4214
|
], 64);
|
|
4204
4215
|
};
|
|
4205
4216
|
}
|
|
4206
|
-
}), Lt = /* @__PURE__ */
|
|
4217
|
+
}), Lt = /* @__PURE__ */ g({
|
|
4207
4218
|
__name: "ListItemGroup",
|
|
4208
4219
|
props: {
|
|
4209
4220
|
model: {},
|
|
@@ -4213,7 +4224,7 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4213
4224
|
const s = r;
|
|
4214
4225
|
return B(() => s.item), (n, e) => {
|
|
4215
4226
|
const t = y("sv-list-item-content"), o = y("sv-popup");
|
|
4216
|
-
return i(), u(
|
|
4227
|
+
return i(), u(_, null, [
|
|
4217
4228
|
C(t, {
|
|
4218
4229
|
item: n.item,
|
|
4219
4230
|
model: n.model
|
|
@@ -4224,7 +4235,7 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4224
4235
|
], 64);
|
|
4225
4236
|
};
|
|
4226
4237
|
}
|
|
4227
|
-
}), At = /* @__PURE__ */
|
|
4238
|
+
}), At = /* @__PURE__ */ g({
|
|
4228
4239
|
__name: "Popup",
|
|
4229
4240
|
props: {
|
|
4230
4241
|
getTarget: { type: Function },
|
|
@@ -4264,7 +4275,7 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4264
4275
|
}, Et = { class: "sv-popup__scrolling-content" }, Ht = { class: "sv-popup__content" }, Wt = {
|
|
4265
4276
|
key: 1,
|
|
4266
4277
|
class: "sv-popup__body-footer"
|
|
4267
|
-
}, Ft = /* @__PURE__ */
|
|
4278
|
+
}, Ft = /* @__PURE__ */ g({
|
|
4268
4279
|
__name: "PopupContainer",
|
|
4269
4280
|
props: {
|
|
4270
4281
|
model: {}
|
|
@@ -4302,22 +4313,22 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4302
4313
|
onClick: n
|
|
4303
4314
|
}, [
|
|
4304
4315
|
p("div", Nt, [
|
|
4305
|
-
e.model.showHeader ? (i(),
|
|
4316
|
+
e.model.showHeader ? (i(), q(R(e.model.popupHeaderTemplate), {
|
|
4306
4317
|
key: 0,
|
|
4307
4318
|
model: e.model
|
|
4308
|
-
}, null, 8, ["model"])) :
|
|
4319
|
+
}, null, 8, ["model"])) : m("", !0),
|
|
4309
4320
|
p("div", Pt, [
|
|
4310
|
-
e.model.title ? (i(), u("div", Mt, T(e.model.title), 1)) :
|
|
4321
|
+
e.model.title ? (i(), u("div", Mt, T(e.model.title), 1)) : m("", !0),
|
|
4311
4322
|
p("div", Et, [
|
|
4312
4323
|
p("div", Ht, [
|
|
4313
|
-
(i(),
|
|
4324
|
+
(i(), q(R(e.model.contentComponentName), z(oe(e.model.contentComponentData)), null, 16))
|
|
4314
4325
|
])
|
|
4315
4326
|
]),
|
|
4316
4327
|
e.model.showFooter ? (i(), u("div", Wt, [
|
|
4317
4328
|
C(o, {
|
|
4318
4329
|
model: e.model.footerToolbar
|
|
4319
4330
|
}, null, 8, ["model"])
|
|
4320
|
-
])) :
|
|
4331
|
+
])) : m("", !0)
|
|
4321
4332
|
])
|
|
4322
4333
|
])
|
|
4323
4334
|
], 4)
|
|
@@ -4326,7 +4337,7 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4326
4337
|
]);
|
|
4327
4338
|
};
|
|
4328
4339
|
}
|
|
4329
|
-
}), Vt = /* @__PURE__ */
|
|
4340
|
+
}), Vt = /* @__PURE__ */ g({
|
|
4330
4341
|
__name: "PopupPointer",
|
|
4331
4342
|
props: {
|
|
4332
4343
|
model: {}
|
|
@@ -4343,7 +4354,7 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4343
4354
|
}), Ot = {
|
|
4344
4355
|
key: 0,
|
|
4345
4356
|
class: "sv-components-column"
|
|
4346
|
-
}, zt = /* @__PURE__ */
|
|
4357
|
+
}, zt = /* @__PURE__ */ g({
|
|
4347
4358
|
__name: "Container",
|
|
4348
4359
|
props: {
|
|
4349
4360
|
survey: {},
|
|
@@ -4354,21 +4365,21 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4354
4365
|
const s = r, n = S(
|
|
4355
4366
|
() => s.survey.getContainerContent(s.container)
|
|
4356
4367
|
);
|
|
4357
|
-
return (e, t) => n.value.length > 0 ? (i(), u(
|
|
4368
|
+
return (e, t) => n.value.length > 0 ? (i(), u(_, { key: 0 }, [
|
|
4358
4369
|
e.needRenderWrapper ? (i(), u("div", Ot, [
|
|
4359
|
-
(i(!0), u(
|
|
4370
|
+
(i(!0), u(_, null, L(n.value, (o, l) => (i(), q(R(o.component), {
|
|
4360
4371
|
survey: e.survey,
|
|
4361
4372
|
container: e.container,
|
|
4362
4373
|
model: o.data
|
|
4363
4374
|
}, null, 8, ["survey", "container", "model"]))), 256))
|
|
4364
|
-
])) : (i(!0), u(
|
|
4375
|
+
])) : (i(!0), u(_, { key: 1 }, L(n.value, (o, l) => (i(), q(R(o.component), {
|
|
4365
4376
|
survey: e.survey,
|
|
4366
4377
|
container: e.container,
|
|
4367
4378
|
model: o.data
|
|
4368
4379
|
}, null, 8, ["survey", "container", "model"]))), 256))
|
|
4369
|
-
], 64)) :
|
|
4380
|
+
], 64)) : m("", !0);
|
|
4370
4381
|
}
|
|
4371
|
-
}), Z = /* @__PURE__ */
|
|
4382
|
+
}), Z = /* @__PURE__ */ g({
|
|
4372
4383
|
__name: "Progress",
|
|
4373
4384
|
props: {
|
|
4374
4385
|
survey: {},
|
|
@@ -4376,7 +4387,7 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4376
4387
|
css: {}
|
|
4377
4388
|
},
|
|
4378
4389
|
setup(r) {
|
|
4379
|
-
const s = r, n = S(() => s.survey.progressValue + "%"), e = (o) =>
|
|
4390
|
+
const s = r, n = S(() => s.survey.progressValue + "%"), e = (o) => ae.getProgressTextInBarCss(o), t = (o) => ae.getProgressTextUnderBarCss(o);
|
|
4380
4391
|
return (o, l) => (i(), u("div", {
|
|
4381
4392
|
class: a(o.survey.getProgressCssClasses(o.container))
|
|
4382
4393
|
}, [
|
|
@@ -4397,7 +4408,7 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4397
4408
|
}, T(o.survey.progressText), 3)
|
|
4398
4409
|
], 2));
|
|
4399
4410
|
}
|
|
4400
|
-
}), Ut = ["title"], Kt = ["onClick", "data-page-number"], Qt = ["title"], jt = ["title"], Gt = ["title"], Jt = /* @__PURE__ */
|
|
4411
|
+
}), Ut = ["title"], Kt = ["onClick", "data-page-number"], Qt = ["title"], jt = ["title"], Gt = ["title"], Jt = /* @__PURE__ */ g({
|
|
4401
4412
|
__name: "ProgressButtons",
|
|
4402
4413
|
props: {
|
|
4403
4414
|
survey: {},
|
|
@@ -4405,15 +4416,15 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4405
4416
|
container: {}
|
|
4406
4417
|
},
|
|
4407
4418
|
setup(r) {
|
|
4408
|
-
const s = r, n = $(!1), e = $(!1), t = $(!1), o = $(!0), l = $(),
|
|
4419
|
+
const s = r, n = $(!1), e = $(!1), t = $(!1), o = $(!0), l = $(), c = S(() => s.survey.css);
|
|
4409
4420
|
let v = null;
|
|
4410
|
-
const
|
|
4421
|
+
const d = (h) => {
|
|
4411
4422
|
let f = l.value;
|
|
4412
|
-
f.scrollLeft += (
|
|
4423
|
+
f.scrollLeft += (h ? -1 : 1) * 70;
|
|
4413
4424
|
};
|
|
4414
4425
|
return M(() => {
|
|
4415
|
-
const
|
|
4416
|
-
v = new Ee(s.model,
|
|
4426
|
+
const h = l.value;
|
|
4427
|
+
v = new Ee(s.model, h, {
|
|
4417
4428
|
onResize: (f) => {
|
|
4418
4429
|
o.value = f, e.value = !f;
|
|
4419
4430
|
},
|
|
@@ -4425,13 +4436,13 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4425
4436
|
},
|
|
4426
4437
|
container: S(() => s.container)
|
|
4427
4438
|
});
|
|
4428
|
-
}),
|
|
4439
|
+
}), j(() => {
|
|
4429
4440
|
v.dispose();
|
|
4430
|
-
}), (
|
|
4441
|
+
}), (h, f) => {
|
|
4431
4442
|
const k = y("survey-string");
|
|
4432
4443
|
return i(), u("div", {
|
|
4433
|
-
class: a(
|
|
4434
|
-
style: I({ maxWidth:
|
|
4444
|
+
class: a(h.model.getRootCss(h.container)),
|
|
4445
|
+
style: I({ maxWidth: h.model.progressWidth }),
|
|
4435
4446
|
role: "progressbar",
|
|
4436
4447
|
"aria-valuemin": "0",
|
|
4437
4448
|
"aria-valuemax": "100",
|
|
@@ -4439,85 +4450,85 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4439
4450
|
}, [
|
|
4440
4451
|
e.value ? (i(), u("div", {
|
|
4441
4452
|
key: 0,
|
|
4442
|
-
class: a(
|
|
4453
|
+
class: a(h.survey.css.progressButtonsHeader)
|
|
4443
4454
|
}, [
|
|
4444
4455
|
p("div", {
|
|
4445
|
-
class: a(
|
|
4446
|
-
title:
|
|
4447
|
-
}, T(
|
|
4448
|
-
], 2)) :
|
|
4456
|
+
class: a(h.survey.css.progressButtonsPageTitle),
|
|
4457
|
+
title: h.model.headerText
|
|
4458
|
+
}, T(h.model.headerText), 11, Ut)
|
|
4459
|
+
], 2)) : m("", !0),
|
|
4449
4460
|
p("div", {
|
|
4450
|
-
class: a(
|
|
4461
|
+
class: a(c.value.progressButtonsContainer)
|
|
4451
4462
|
}, [
|
|
4452
4463
|
p("div", {
|
|
4453
|
-
class: a(
|
|
4454
|
-
onClick: f[0] || (f[0] = (
|
|
4464
|
+
class: a(h.model.getScrollButtonCss(n.value, !0)),
|
|
4465
|
+
onClick: f[0] || (f[0] = (D) => d(!0)),
|
|
4455
4466
|
role: "button"
|
|
4456
4467
|
}, null, 2),
|
|
4457
4468
|
p("div", {
|
|
4458
|
-
class: a(
|
|
4469
|
+
class: a(c.value.progressButtonsListContainer),
|
|
4459
4470
|
ref_key: "progressButtonsListContainer",
|
|
4460
4471
|
ref: l
|
|
4461
4472
|
}, [
|
|
4462
4473
|
p("ul", {
|
|
4463
|
-
class: a(
|
|
4474
|
+
class: a(c.value.progressButtonsList)
|
|
4464
4475
|
}, [
|
|
4465
|
-
(i(!0), u(
|
|
4476
|
+
(i(!0), u(_, null, L(h.survey.visiblePages, (D, b) => (i(), u("li", {
|
|
4466
4477
|
key: "listelement" + b,
|
|
4467
|
-
class: a(
|
|
4468
|
-
onClick: (A) =>
|
|
4469
|
-
"data-page-number":
|
|
4478
|
+
class: a(h.model.getListElementCss(b)),
|
|
4479
|
+
onClick: (A) => h.model.isListElementClickable(b) ? h.model.clickListElement(D) : null,
|
|
4480
|
+
"data-page-number": h.model.getItemNumber(D)
|
|
4470
4481
|
}, [
|
|
4471
4482
|
p("div", {
|
|
4472
|
-
class: a(
|
|
4483
|
+
class: a(c.value.progressButtonsConnector)
|
|
4473
4484
|
}, null, 2),
|
|
4474
4485
|
o.value ? (i(), u("div", {
|
|
4475
4486
|
key: 0,
|
|
4476
|
-
class: a(
|
|
4477
|
-
title:
|
|
4487
|
+
class: a(c.value.progressButtonsPageTitle),
|
|
4488
|
+
title: D.renderedNavigationTitle
|
|
4478
4489
|
}, [
|
|
4479
4490
|
C(k, {
|
|
4480
|
-
locString:
|
|
4491
|
+
locString: D.locNavigationTitle
|
|
4481
4492
|
}, null, 8, ["locString"])
|
|
4482
|
-
], 10, Qt)) :
|
|
4493
|
+
], 10, Qt)) : m("", !0),
|
|
4483
4494
|
o.value ? (i(), u("div", {
|
|
4484
4495
|
key: 1,
|
|
4485
|
-
class: a(
|
|
4486
|
-
title:
|
|
4487
|
-
}, T(
|
|
4496
|
+
class: a(c.value.progressButtonsPageDescription),
|
|
4497
|
+
title: D.locNavigationDescription.renderedHtml
|
|
4498
|
+
}, T(D.locNavigationDescription.renderedHtml), 11, jt)) : m("", !0),
|
|
4488
4499
|
p("div", {
|
|
4489
|
-
class: a(
|
|
4500
|
+
class: a(c.value.progressButtonsButton)
|
|
4490
4501
|
}, [
|
|
4491
4502
|
p("div", {
|
|
4492
|
-
class: a(
|
|
4503
|
+
class: a(c.value.progressButtonsButtonBackground)
|
|
4493
4504
|
}, null, 2),
|
|
4494
4505
|
p("div", {
|
|
4495
|
-
class: a(
|
|
4506
|
+
class: a(c.value.progressButtonsButtonContent)
|
|
4496
4507
|
}, null, 2),
|
|
4497
|
-
p("span", null, T(
|
|
4508
|
+
p("span", null, T(h.model.getItemNumber(D)), 1)
|
|
4498
4509
|
], 2)
|
|
4499
4510
|
], 10, Kt))), 128))
|
|
4500
4511
|
], 2)
|
|
4501
4512
|
], 2),
|
|
4502
4513
|
p("div", {
|
|
4503
|
-
class: a(
|
|
4504
|
-
onClick: f[1] || (f[1] = (
|
|
4514
|
+
class: a(h.model.getScrollButtonCss(n.value, !1)),
|
|
4515
|
+
onClick: f[1] || (f[1] = (D) => d(!1)),
|
|
4505
4516
|
role: "button"
|
|
4506
4517
|
}, null, 2)
|
|
4507
4518
|
], 2),
|
|
4508
4519
|
t.value ? (i(), u("div", {
|
|
4509
4520
|
key: 1,
|
|
4510
|
-
class: a(
|
|
4521
|
+
class: a(h.survey.css.progressButtonsFooter)
|
|
4511
4522
|
}, [
|
|
4512
4523
|
p("div", {
|
|
4513
|
-
class: a(
|
|
4514
|
-
title:
|
|
4515
|
-
}, T(
|
|
4516
|
-
], 2)) :
|
|
4524
|
+
class: a(h.survey.css.progressButtonsPageTitle),
|
|
4525
|
+
title: h.model.footerText
|
|
4526
|
+
}, T(h.model.footerText), 11, Gt)
|
|
4527
|
+
], 2)) : m("", !0)
|
|
4517
4528
|
], 6);
|
|
4518
4529
|
};
|
|
4519
4530
|
}
|
|
4520
|
-
}), Xt = /* @__PURE__ */
|
|
4531
|
+
}), Xt = /* @__PURE__ */ g({
|
|
4521
4532
|
__name: "ProgressToc",
|
|
4522
4533
|
props: {
|
|
4523
4534
|
survey: {},
|
|
@@ -4531,7 +4542,7 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4531
4542
|
}, [
|
|
4532
4543
|
s.model.isMobile ? N((i(), u("div", {
|
|
4533
4544
|
key: 0,
|
|
4534
|
-
onClick: n[0] || (n[0] = (...
|
|
4545
|
+
onClick: n[0] || (n[0] = (...c) => s.model.togglePopup && s.model.togglePopup(...c))
|
|
4535
4546
|
}, [
|
|
4536
4547
|
C(e, {
|
|
4537
4548
|
iconName: s.model.icon,
|
|
@@ -4542,7 +4553,7 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4542
4553
|
}, null, 8, ["model"])
|
|
4543
4554
|
])), [
|
|
4544
4555
|
[l]
|
|
4545
|
-
]) : (i(),
|
|
4556
|
+
]) : (i(), q(o, {
|
|
4546
4557
|
key: 1,
|
|
4547
4558
|
model: s.model.listModel
|
|
4548
4559
|
}, null, 8, ["model"]))
|
|
@@ -4552,7 +4563,7 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4552
4563
|
}), Yt = { onsubmit: "return false;" }, Zt = {
|
|
4553
4564
|
key: 0,
|
|
4554
4565
|
class: "sv_custom_header"
|
|
4555
|
-
}, xt = { class: "sv-components-column sv-components-column--expandable" }, ei = ["id"], si = { key: 2 }, ni = ["innerHTML"], oi = ["innerHTML"], ti = ["innerHTML"],
|
|
4566
|
+
}, xt = { class: "sv-components-column sv-components-column--expandable" }, ei = ["id"], si = { key: 2 }, ni = ["innerHTML"], oi = ["innerHTML"], ti = ["innerHTML"], me = /* @__PURE__ */ g({
|
|
4556
4567
|
__name: "Survey",
|
|
4557
4568
|
props: {
|
|
4558
4569
|
model: {},
|
|
@@ -4560,62 +4571,62 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4560
4571
|
},
|
|
4561
4572
|
setup(r) {
|
|
4562
4573
|
const s = r, n = $(), e = $(""), t = $(1), o = S(() => {
|
|
4563
|
-
const
|
|
4564
|
-
return Re(
|
|
4565
|
-
}), l = S(() => o.value.activePage ? o.value.activePage.id : ""),
|
|
4566
|
-
const
|
|
4567
|
-
return !!o.value &&
|
|
4574
|
+
const D = s.survey ? s.survey : s.model;
|
|
4575
|
+
return Re(D);
|
|
4576
|
+
}), l = S(() => o.value.activePage ? o.value.activePage.id : ""), c = () => {
|
|
4577
|
+
const D = l.value;
|
|
4578
|
+
return !!o.value && D + t.value.toString();
|
|
4568
4579
|
}, v = S(
|
|
4569
4580
|
() => o.value.showCompletedPage && o.value.state === "completed"
|
|
4570
|
-
),
|
|
4571
|
-
if (!!
|
|
4581
|
+
), d = S(() => o.value.css), h = S(() => "page" + c()), f = () => v.value ? (e.value || (e.value = o.value.processedCompletedHtml), e.value) : "", k = (D) => {
|
|
4582
|
+
if (!!D) {
|
|
4572
4583
|
var b = n.value;
|
|
4573
|
-
b &&
|
|
4584
|
+
b && D.afterRenderSurvey(b), D.renderCallback = () => {
|
|
4574
4585
|
var A, W;
|
|
4575
|
-
t.value++, (W = (A =
|
|
4576
|
-
},
|
|
4586
|
+
t.value++, (W = (A = ve()) == null ? void 0 : A.proxy) == null || W.$forceUpdate();
|
|
4587
|
+
}, D.startTimerFromUI();
|
|
4577
4588
|
}
|
|
4578
4589
|
};
|
|
4579
4590
|
return B(
|
|
4580
4591
|
() => o.value,
|
|
4581
|
-
(
|
|
4582
|
-
|
|
4592
|
+
(D, b) => {
|
|
4593
|
+
D && b && k(D);
|
|
4583
4594
|
},
|
|
4584
|
-
(
|
|
4585
|
-
|
|
4595
|
+
(D) => {
|
|
4596
|
+
D.stopTimer(), D.renderCallback = void 0;
|
|
4586
4597
|
}
|
|
4587
4598
|
), M(() => {
|
|
4588
4599
|
k(o.value);
|
|
4589
4600
|
}), O(() => {
|
|
4590
4601
|
o.value.stopTimer(), o.value.renderCallback = void 0;
|
|
4591
|
-
}), (
|
|
4592
|
-
const A = y("sv-svg-bundle"), W = y("survey-popup-modal"), F = y("survey-header"),
|
|
4602
|
+
}), (D, b) => {
|
|
4603
|
+
const A = y("sv-svg-bundle"), W = y("survey-popup-modal"), F = y("survey-header"), J = y("survey-page"), he = y("sv-brand-info"), Ce = y("sv-notifier");
|
|
4593
4604
|
return i(), u("div", {
|
|
4594
4605
|
class: a(o.value.getRootCss()),
|
|
4595
4606
|
style: I(o.value.themeVariables),
|
|
4596
4607
|
ref_key: "root",
|
|
4597
4608
|
ref: n
|
|
4598
4609
|
}, [
|
|
4599
|
-
o.value.needRenderIcons ? (i(),
|
|
4610
|
+
o.value.needRenderIcons ? (i(), q(A, { key: 0 })) : m("", !0),
|
|
4600
4611
|
p("div", {
|
|
4601
4612
|
class: a(o.value.wrapperFormCss)
|
|
4602
4613
|
}, [
|
|
4603
4614
|
C(W),
|
|
4604
4615
|
o.value.renderBackgroundImage ? (i(), u("div", {
|
|
4605
4616
|
key: 0,
|
|
4606
|
-
class: a(
|
|
4617
|
+
class: a(d.value.rootBackgroundImage),
|
|
4607
4618
|
style: I(o.value.backgroundImageStyle)
|
|
4608
|
-
}, null, 6)) :
|
|
4619
|
+
}, null, 6)) : m("", !0),
|
|
4609
4620
|
p("form", Yt, [
|
|
4610
|
-
o.value.hasLogo ?
|
|
4621
|
+
o.value.hasLogo ? m("", !0) : (i(), u("div", Zt)),
|
|
4611
4622
|
p("div", {
|
|
4612
|
-
class: a(
|
|
4623
|
+
class: a(d.value.container)
|
|
4613
4624
|
}, [
|
|
4614
|
-
o.value.headerView === "basic" ? (i(),
|
|
4625
|
+
o.value.headerView === "basic" ? (i(), q(F, {
|
|
4615
4626
|
key: 0,
|
|
4616
4627
|
survey: o.value
|
|
4617
|
-
}, null, 8, ["survey"])) :
|
|
4618
|
-
(i(),
|
|
4628
|
+
}, null, 8, ["survey"])) : m("", !0),
|
|
4629
|
+
(i(), q(R("sv-components-container"), {
|
|
4619
4630
|
survey: o.value,
|
|
4620
4631
|
container: "header",
|
|
4621
4632
|
needRenderWrapper: !1
|
|
@@ -4624,13 +4635,13 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4624
4635
|
key: 1,
|
|
4625
4636
|
class: a(o.value.bodyContainerCss)
|
|
4626
4637
|
}, [
|
|
4627
|
-
(i(),
|
|
4638
|
+
(i(), q(R("sv-components-container"), {
|
|
4628
4639
|
survey: o.value,
|
|
4629
4640
|
container: "left",
|
|
4630
4641
|
needRenderWrapper: !0
|
|
4631
4642
|
}, null, 8, ["survey"])),
|
|
4632
4643
|
p("div", xt, [
|
|
4633
|
-
(i(),
|
|
4644
|
+
(i(), q(R("sv-components-container"), {
|
|
4634
4645
|
survey: o.value,
|
|
4635
4646
|
container: "center",
|
|
4636
4647
|
needRenderWrapper: !0
|
|
@@ -4640,31 +4651,31 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4640
4651
|
style: I({ maxWidth: o.value.renderedWidth }),
|
|
4641
4652
|
id: l.value
|
|
4642
4653
|
}, [
|
|
4643
|
-
(i(),
|
|
4654
|
+
(i(), q(R("sv-components-container"), {
|
|
4644
4655
|
survey: o.value,
|
|
4645
4656
|
container: "contentTop",
|
|
4646
4657
|
needRenderWrapper: !0
|
|
4647
4658
|
}, null, 8, ["survey"])),
|
|
4648
|
-
(i(),
|
|
4649
|
-
key:
|
|
4659
|
+
(i(), q(J, {
|
|
4660
|
+
key: h.value,
|
|
4650
4661
|
survey: o.value,
|
|
4651
4662
|
page: o.value.activePage,
|
|
4652
|
-
css:
|
|
4663
|
+
css: d.value
|
|
4653
4664
|
}, null, 8, ["survey", "page", "css"])),
|
|
4654
|
-
(i(),
|
|
4665
|
+
(i(), q(R("sv-components-container"), {
|
|
4655
4666
|
survey: o.value,
|
|
4656
4667
|
container: "contentBottom",
|
|
4657
4668
|
needRenderWrapper: !0
|
|
4658
4669
|
}, null, 8, ["survey"]))
|
|
4659
4670
|
], 14, ei)
|
|
4660
4671
|
]),
|
|
4661
|
-
(i(),
|
|
4672
|
+
(i(), q(R("sv-components-container"), {
|
|
4662
4673
|
survey: o.value,
|
|
4663
4674
|
container: "right",
|
|
4664
4675
|
needRenderWrapper: !0
|
|
4665
4676
|
}, null, 8, ["survey"]))
|
|
4666
|
-
], 2)) :
|
|
4667
|
-
(i(),
|
|
4677
|
+
], 2)) : m("", !0),
|
|
4678
|
+
(i(), q(R("sv-components-container"), {
|
|
4668
4679
|
survey: o.value,
|
|
4669
4680
|
container: "footer",
|
|
4670
4681
|
needRenderWrapper: !1
|
|
@@ -4674,29 +4685,29 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4674
4685
|
innerHTML: f(),
|
|
4675
4686
|
class: a(o.value.completedCss)
|
|
4676
4687
|
}, null, 10, ni),
|
|
4677
|
-
(i(),
|
|
4688
|
+
(i(), q(R("sv-components-container"), {
|
|
4678
4689
|
survey: o.value,
|
|
4679
4690
|
container: "completePage",
|
|
4680
4691
|
needRenderWrapper: !0
|
|
4681
4692
|
}, null, 8, ["survey"]))
|
|
4682
|
-
])) :
|
|
4693
|
+
])) : m("", !0),
|
|
4683
4694
|
o.value.state === "completedbefore" ? (i(), u("div", {
|
|
4684
4695
|
key: 3,
|
|
4685
4696
|
class: a(o.value.completedBeforeCss),
|
|
4686
4697
|
innerHTML: o.value.processedCompletedBeforeHtml
|
|
4687
|
-
}, null, 10, oi)) :
|
|
4698
|
+
}, null, 10, oi)) : m("", !0),
|
|
4688
4699
|
o.value.state === "loading" ? (i(), u("div", {
|
|
4689
4700
|
key: 4,
|
|
4690
4701
|
class: a(o.value.loadingBodyCss),
|
|
4691
4702
|
innerHTML: o.value.processedLoadingHtml
|
|
4692
|
-
}, null, 10, ti)) :
|
|
4703
|
+
}, null, 10, ti)) : m("", !0),
|
|
4693
4704
|
o.value.state === "empty" ? (i(), u("div", {
|
|
4694
4705
|
key: 5,
|
|
4695
|
-
class: a(
|
|
4696
|
-
}, T(o.value.emptySurveyText), 3)) :
|
|
4706
|
+
class: a(d.value.bodyEmpty)
|
|
4707
|
+
}, T(o.value.emptySurveyText), 3)) : m("", !0)
|
|
4697
4708
|
], 2)
|
|
4698
4709
|
]),
|
|
4699
|
-
o.value.showBrandInfo ? (i(),
|
|
4710
|
+
o.value.showBrandInfo ? (i(), q(he, { key: 1 })) : m("", !0),
|
|
4700
4711
|
C(Ce, {
|
|
4701
4712
|
model: o.value.notifier
|
|
4702
4713
|
}, null, 8, ["model"])
|
|
@@ -4704,7 +4715,7 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4704
4715
|
], 6);
|
|
4705
4716
|
};
|
|
4706
4717
|
}
|
|
4707
|
-
}), ii = /* @__PURE__ */
|
|
4718
|
+
}), ii = /* @__PURE__ */ g({
|
|
4708
4719
|
__name: "Notifier",
|
|
4709
4720
|
props: {
|
|
4710
4721
|
model: {}
|
|
@@ -4724,10 +4735,10 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4724
4735
|
C(t, {
|
|
4725
4736
|
model: n.model.actionBar
|
|
4726
4737
|
}, null, 8, ["model"])
|
|
4727
|
-
], 6)) :
|
|
4738
|
+
], 6)) : m("", !0);
|
|
4728
4739
|
};
|
|
4729
4740
|
}
|
|
4730
|
-
}), ri = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], li = { key: 1 }, ai = /* @__PURE__ */
|
|
4741
|
+
}), ri = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], li = { key: 1 }, ai = /* @__PURE__ */ g({
|
|
4731
4742
|
__name: "QuestionOther",
|
|
4732
4743
|
props: {
|
|
4733
4744
|
question: {},
|
|
@@ -4737,7 +4748,7 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4737
4748
|
return (s, n) => (i(), u("div", {
|
|
4738
4749
|
class: a(s.question.getCommentAreaCss(!0))
|
|
4739
4750
|
}, [
|
|
4740
|
-
s.question.isReadOnlyRenderDiv() ?
|
|
4751
|
+
s.question.isReadOnlyRenderDiv() ? m("", !0) : (i(), u("textarea", {
|
|
4741
4752
|
key: 0,
|
|
4742
4753
|
id: s.question.otherId,
|
|
4743
4754
|
readonly: s.question.isInputReadOnly,
|
|
@@ -4756,10 +4767,10 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4756
4767
|
s.question.onOtherValueInput(e);
|
|
4757
4768
|
})
|
|
4758
4769
|
}, null, 46, ri)),
|
|
4759
|
-
s.question.isReadOnlyRenderDiv() ? (i(), u("div", li, T(s.question.otherValue), 1)) :
|
|
4770
|
+
s.question.isReadOnlyRenderDiv() ? (i(), u("div", li, T(s.question.otherValue), 1)) : m("", !0)
|
|
4760
4771
|
], 2));
|
|
4761
4772
|
}
|
|
4762
|
-
}), ui = ["disabled", "value", "title"], di = /* @__PURE__ */
|
|
4773
|
+
}), ui = ["disabled", "value", "title"], di = /* @__PURE__ */ g({
|
|
4763
4774
|
__name: "SurveyNavigationButton",
|
|
4764
4775
|
props: {
|
|
4765
4776
|
item: {}
|
|
@@ -4775,9 +4786,9 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4775
4786
|
title: e.item.getTooltip(),
|
|
4776
4787
|
onMousedown: n,
|
|
4777
4788
|
onClick: t[0] || (t[0] = (...o) => e.item.action && e.item.action(...o))
|
|
4778
|
-
}, null, 42, ui)) :
|
|
4789
|
+
}, null, 42, ui)) : m("", !0);
|
|
4779
4790
|
}
|
|
4780
|
-
}),
|
|
4791
|
+
}), ce = /* @__PURE__ */ g({
|
|
4781
4792
|
__name: "PopupSurvey",
|
|
4782
4793
|
props: {
|
|
4783
4794
|
survey: {},
|
|
@@ -4801,14 +4812,14 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4801
4812
|
n.value.hide();
|
|
4802
4813
|
}, l = () => {
|
|
4803
4814
|
n.value.toggleFullScreen();
|
|
4804
|
-
},
|
|
4815
|
+
}, c = () => "SurveyComponent", v = () => {
|
|
4805
4816
|
n.value.onScroll();
|
|
4806
|
-
},
|
|
4817
|
+
}, d = () => {
|
|
4807
4818
|
let f = n.value.cssHeaderRoot;
|
|
4808
4819
|
return n.value.isCollapsed && (f += " " + n.value.cssRootCollapsedMod), f;
|
|
4809
4820
|
};
|
|
4810
4821
|
B(() => n.value);
|
|
4811
|
-
const
|
|
4822
|
+
const h = K(
|
|
4812
4823
|
() => s.survey,
|
|
4813
4824
|
(f) => {
|
|
4814
4825
|
const k = new He(null, f);
|
|
@@ -4819,9 +4830,9 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4819
4830
|
}
|
|
4820
4831
|
);
|
|
4821
4832
|
return O(() => {
|
|
4822
|
-
|
|
4833
|
+
h();
|
|
4823
4834
|
}), (f, k) => {
|
|
4824
|
-
const
|
|
4835
|
+
const D = y("sv-svg-icon");
|
|
4825
4836
|
return n.value.isShowing ? (i(), u("div", {
|
|
4826
4837
|
key: 0,
|
|
4827
4838
|
style: I({ maxWidth: n.value.renderedWidth, width: n.value.renderedWidth }),
|
|
@@ -4832,12 +4843,12 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4832
4843
|
class: a(n.value.cssRootContent)
|
|
4833
4844
|
}, [
|
|
4834
4845
|
p("div", {
|
|
4835
|
-
class: a(
|
|
4846
|
+
class: a(d())
|
|
4836
4847
|
}, [
|
|
4837
4848
|
n.value.isCollapsed && !!n.value.locTitle ? (i(), u("div", {
|
|
4838
4849
|
key: 0,
|
|
4839
4850
|
class: a(n.value.cssHeaderTitleCollapsed)
|
|
4840
|
-
}, T(n.value.locTitle.renderedHtml), 3)) :
|
|
4851
|
+
}, T(n.value.locTitle.renderedHtml), 3)) : m("", !0),
|
|
4841
4852
|
p("div", {
|
|
4842
4853
|
class: a(n.value.cssHeaderButtonsContainer)
|
|
4843
4854
|
}, [
|
|
@@ -4846,54 +4857,54 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4846
4857
|
class: a(n.value.cssHeaderFullScreenButton),
|
|
4847
4858
|
onClick: l
|
|
4848
4859
|
}, [
|
|
4849
|
-
n.value.isFullScreen ? (i(),
|
|
4860
|
+
n.value.isFullScreen ? (i(), q(D, {
|
|
4850
4861
|
key: 0,
|
|
4851
4862
|
iconName: "icon-back-to-panel_16x16",
|
|
4852
4863
|
size: 16
|
|
4853
|
-
})) :
|
|
4854
|
-
n.value.isFullScreen ?
|
|
4864
|
+
})) : m("", !0),
|
|
4865
|
+
n.value.isFullScreen ? m("", !0) : (i(), q(D, {
|
|
4855
4866
|
key: 1,
|
|
4856
4867
|
iconName: "icon-full-screen_16x16",
|
|
4857
4868
|
size: 16
|
|
4858
4869
|
}))
|
|
4859
|
-
], 2)) :
|
|
4870
|
+
], 2)) : m("", !0),
|
|
4860
4871
|
p("div", {
|
|
4861
4872
|
class: a(n.value.cssHeaderCollapseButton),
|
|
4862
4873
|
onClick: t
|
|
4863
4874
|
}, [
|
|
4864
|
-
n.value.isExpanded ? (i(),
|
|
4875
|
+
n.value.isExpanded ? (i(), q(D, {
|
|
4865
4876
|
key: 0,
|
|
4866
4877
|
iconName: "icon-minimize_16x16",
|
|
4867
4878
|
size: 16
|
|
4868
|
-
})) :
|
|
4869
|
-
n.value.isCollapsed ? (i(),
|
|
4879
|
+
})) : m("", !0),
|
|
4880
|
+
n.value.isCollapsed ? (i(), q(D, {
|
|
4870
4881
|
key: 1,
|
|
4871
4882
|
iconName: "icon-restore_16x16",
|
|
4872
4883
|
size: 16
|
|
4873
|
-
})) :
|
|
4884
|
+
})) : m("", !0)
|
|
4874
4885
|
], 2),
|
|
4875
4886
|
n.value.allowClose ? (i(), u("div", {
|
|
4876
4887
|
key: 1,
|
|
4877
4888
|
class: a(n.value.cssHeaderCloseButton),
|
|
4878
4889
|
onClick: o
|
|
4879
4890
|
}, [
|
|
4880
|
-
C(
|
|
4891
|
+
C(D, {
|
|
4881
4892
|
iconName: "icon-close_16x16",
|
|
4882
4893
|
size: 16
|
|
4883
4894
|
})
|
|
4884
|
-
], 2)) :
|
|
4895
|
+
], 2)) : m("", !0)
|
|
4885
4896
|
], 2)
|
|
4886
4897
|
], 2),
|
|
4887
4898
|
p("div", {
|
|
4888
4899
|
class: a(n.value.cssBody)
|
|
4889
4900
|
}, [
|
|
4890
|
-
(i(),
|
|
4901
|
+
(i(), q(R(c()), { survey: f.survey }, null, 8, ["survey"]))
|
|
4891
4902
|
], 2)
|
|
4892
4903
|
], 2)
|
|
4893
|
-
], 38)) :
|
|
4904
|
+
], 38)) : m("", !0);
|
|
4894
4905
|
};
|
|
4895
4906
|
}
|
|
4896
|
-
}), mi = ["innerHTML"], ci = /* @__PURE__ */
|
|
4907
|
+
}), mi = ["innerHTML"], ci = /* @__PURE__ */ g({
|
|
4897
4908
|
__name: "CustomWidget",
|
|
4898
4909
|
props: {
|
|
4899
4910
|
question: {},
|
|
@@ -4907,38 +4918,38 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4907
4918
|
), o = S(() => s.question.customWidget.htmlTemplate), l = S(() => "survey-" + s.question.getTemplate());
|
|
4908
4919
|
return M(() => {
|
|
4909
4920
|
s.question.customWidget.afterRender(s.question, n.value);
|
|
4910
|
-
}),
|
|
4921
|
+
}), j(() => {
|
|
4911
4922
|
s.question.customWidget.willUnmount(s.question, n.value);
|
|
4912
|
-
}), (
|
|
4923
|
+
}), (c, v) => (i(), u("div", {
|
|
4913
4924
|
ref_key: "root",
|
|
4914
4925
|
ref: n
|
|
4915
4926
|
}, [
|
|
4916
4927
|
t.value ? (i(), u("div", {
|
|
4917
4928
|
key: 0,
|
|
4918
4929
|
innerHTML: o.value
|
|
4919
|
-
}, null, 8, mi)) :
|
|
4920
|
-
e.value ? (i(),
|
|
4930
|
+
}, null, 8, mi)) : m("", !0),
|
|
4931
|
+
e.value ? (i(), q(R(l.value), {
|
|
4921
4932
|
key: 1,
|
|
4922
|
-
question:
|
|
4923
|
-
css:
|
|
4924
|
-
}, null, 8, ["question", "css"])) :
|
|
4933
|
+
question: c.question,
|
|
4934
|
+
css: c.css
|
|
4935
|
+
}, null, 8, ["question", "css"])) : m("", !0)
|
|
4925
4936
|
], 512));
|
|
4926
4937
|
}
|
|
4927
|
-
}), pi = /* @__PURE__ */
|
|
4938
|
+
}), pi = /* @__PURE__ */ g({
|
|
4928
4939
|
__name: "PopupModal",
|
|
4929
4940
|
setup(r) {
|
|
4930
4941
|
const s = U();
|
|
4931
|
-
function n(t, o, l,
|
|
4942
|
+
function n(t, o, l, c, v, d, h = "popup") {
|
|
4932
4943
|
const f = We(
|
|
4933
4944
|
t,
|
|
4934
4945
|
o,
|
|
4935
4946
|
l,
|
|
4936
|
-
|
|
4947
|
+
c,
|
|
4937
4948
|
void 0,
|
|
4938
4949
|
void 0,
|
|
4939
4950
|
v,
|
|
4940
|
-
|
|
4941
|
-
|
|
4951
|
+
d,
|
|
4952
|
+
h
|
|
4942
4953
|
);
|
|
4943
4954
|
return e(f);
|
|
4944
4955
|
}
|
|
@@ -4946,26 +4957,26 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4946
4957
|
const l = Fe(
|
|
4947
4958
|
t,
|
|
4948
4959
|
o
|
|
4949
|
-
),
|
|
4950
|
-
|
|
4960
|
+
), c = (v, d) => {
|
|
4961
|
+
d.isVisible || (s.value = void 0, l.dispose(), l.onVisibilityChanged.remove(c));
|
|
4951
4962
|
};
|
|
4952
|
-
return l.onVisibilityChanged.add(
|
|
4963
|
+
return l.onVisibilityChanged.add(c), l.model.isVisible = !0, s.value = l, l;
|
|
4953
4964
|
}
|
|
4954
|
-
return
|
|
4955
|
-
|
|
4956
|
-
})),
|
|
4957
|
-
|
|
4965
|
+
return Q.showModal || (Q.showModal = n, O(() => {
|
|
4966
|
+
Q.showModal = void 0;
|
|
4967
|
+
})), Q.showDialog || (Q.showDialog = e, O(() => {
|
|
4968
|
+
Q.showDialog = void 0;
|
|
4958
4969
|
})), (t, o) => {
|
|
4959
4970
|
const l = y("sv-popup-container");
|
|
4960
|
-
return s.value ? (i(),
|
|
4971
|
+
return s.value ? (i(), q(Te, {
|
|
4961
4972
|
key: 0,
|
|
4962
4973
|
to: s.value.container
|
|
4963
4974
|
}, [
|
|
4964
4975
|
C(l, { model: s.value }, null, 8, ["model"])
|
|
4965
|
-
], 8, ["to"])) :
|
|
4976
|
+
], 8, ["to"])) : m("", !0);
|
|
4966
4977
|
};
|
|
4967
4978
|
}
|
|
4968
|
-
}), vi = /* @__PURE__ */
|
|
4979
|
+
}), vi = /* @__PURE__ */ g({
|
|
4969
4980
|
__name: "CharacterCounter",
|
|
4970
4981
|
props: {
|
|
4971
4982
|
counter: {},
|
|
@@ -4977,7 +4988,7 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4977
4988
|
class: a(n.remainingCharacterCounter)
|
|
4978
4989
|
}, T(n.counter.remainingCharacterCounter), 3));
|
|
4979
4990
|
}
|
|
4980
|
-
}), yi = /* @__PURE__ */
|
|
4991
|
+
}), yi = /* @__PURE__ */ g({
|
|
4981
4992
|
inheritAttrs: !1,
|
|
4982
4993
|
__name: "Composite",
|
|
4983
4994
|
props: {
|
|
@@ -4990,7 +5001,7 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4990
5001
|
const e = S(() => s.question.contentPanel);
|
|
4991
5002
|
return (t, o) => {
|
|
4992
5003
|
const l = y("survey-panel");
|
|
4993
|
-
return i(),
|
|
5004
|
+
return i(), q(l, {
|
|
4994
5005
|
ref_key: "root",
|
|
4995
5006
|
ref: n,
|
|
4996
5007
|
element: e.value,
|
|
@@ -4998,7 +5009,7 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
4998
5009
|
}, null, 8, ["element", "css"]);
|
|
4999
5010
|
};
|
|
5000
5011
|
}
|
|
5001
|
-
}), qi = /* @__PURE__ */
|
|
5012
|
+
}), qi = /* @__PURE__ */ g({
|
|
5002
5013
|
inheritAttrs: !1,
|
|
5003
5014
|
__name: "Custom",
|
|
5004
5015
|
props: {
|
|
@@ -5009,7 +5020,7 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
5009
5020
|
const s = r, n = $(null);
|
|
5010
5021
|
P(s, n);
|
|
5011
5022
|
const e = S(() => s.question.contentQuestion), t = (o) => ie(o);
|
|
5012
|
-
return (o, l) => (i(),
|
|
5023
|
+
return (o, l) => (i(), q(R(t(e.value)), {
|
|
5013
5024
|
ref: n.value,
|
|
5014
5025
|
question: e.value,
|
|
5015
5026
|
css: o.css
|
|
@@ -5017,14 +5028,14 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
5017
5028
|
}
|
|
5018
5029
|
}), gi = /* @__PURE__ */ p("use", { "xlink:href": "#icon-timercircle" }, null, -1), hi = [
|
|
5019
5030
|
gi
|
|
5020
|
-
],
|
|
5031
|
+
], pe = 440, Ci = /* @__PURE__ */ g({
|
|
5021
5032
|
__name: "TimerPanel",
|
|
5022
5033
|
props: {
|
|
5023
5034
|
model: {},
|
|
5024
5035
|
css: {}
|
|
5025
5036
|
},
|
|
5026
5037
|
setup(r) {
|
|
5027
|
-
const s = r, n = S(() =>
|
|
5038
|
+
const s = r, n = S(() => pe * s.model.progress), e = S(() => s.model.text);
|
|
5028
5039
|
return B(() => s.model), (t, o) => t.model.isRunning && t.model.showTimerAsClock ? (i(), u("div", {
|
|
5029
5040
|
key: 0,
|
|
5030
5041
|
class: a(t.model.rootCss)
|
|
@@ -5032,8 +5043,8 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
5032
5043
|
t.model.showProgress ? (i(), u("svg", {
|
|
5033
5044
|
key: 0,
|
|
5034
5045
|
class: a(t.model.getProgressCss()),
|
|
5035
|
-
style: I({ strokeDasharray:
|
|
5036
|
-
}, hi, 6)) :
|
|
5046
|
+
style: I({ strokeDasharray: pe, strokeDashoffset: n.value })
|
|
5047
|
+
}, hi, 6)) : m("", !0),
|
|
5037
5048
|
p("div", {
|
|
5038
5049
|
class: a(t.model.textContainerCss)
|
|
5039
5050
|
}, [
|
|
@@ -5043,7 +5054,7 @@ const at = /* @__PURE__ */ he(ot, [["render", lt]]), ut = /* @__PURE__ */ p("use
|
|
|
5043
5054
|
t.model.clockMinorText ? (i(), u("span", {
|
|
5044
5055
|
key: 0,
|
|
5045
5056
|
class: a(t.model.minorTextCss)
|
|
5046
|
-
}, T(t.model.clockMinorText), 3)) :
|
|
5057
|
+
}, T(t.model.clockMinorText), 3)) : m("", !0)
|
|
5047
5058
|
], 2)
|
|
5048
5059
|
], 2)) : N((i(), u("div", {
|
|
5049
5060
|
key: 1,
|
|
@@ -5062,7 +5073,7 @@ function fi(r, s) {
|
|
|
5062
5073
|
})
|
|
5063
5074
|
]);
|
|
5064
5075
|
}
|
|
5065
|
-
const wi = /* @__PURE__ */
|
|
5076
|
+
const wi = /* @__PURE__ */ ge(bi, [["render", fi]]), Ii = { key: 2 }, Si = /* @__PURE__ */ g({
|
|
5066
5077
|
__name: "Header",
|
|
5067
5078
|
props: {
|
|
5068
5079
|
model: {},
|
|
@@ -5084,27 +5095,27 @@ const wi = /* @__PURE__ */ he(bi, [["render", fi]]), Ii = { key: 2 }, Si = /* @_
|
|
|
5084
5095
|
key: 0,
|
|
5085
5096
|
class: a(n.model.backgroundImageClasses),
|
|
5086
5097
|
style: I(n.model.backgroundImageStyle)
|
|
5087
|
-
}, null, 6)) :
|
|
5088
|
-
n.survey.isMobile ?
|
|
5098
|
+
}, null, 6)) : m("", !0),
|
|
5099
|
+
n.survey.isMobile ? m("", !0) : (i(), u("div", {
|
|
5089
5100
|
key: 1,
|
|
5090
5101
|
class: a(n.model.contentClasses),
|
|
5091
5102
|
style: I({ maxWidth: n.model.maxWidth })
|
|
5092
5103
|
}, [
|
|
5093
|
-
(i(!0), u(
|
|
5104
|
+
(i(!0), u(_, null, L(n.model.cells, (l, c) => (i(), q(t, {
|
|
5094
5105
|
model: l,
|
|
5095
|
-
key:
|
|
5106
|
+
key: c
|
|
5096
5107
|
}, null, 8, ["model"]))), 128))
|
|
5097
5108
|
], 6)),
|
|
5098
5109
|
n.survey.isMobile ? (i(), u("div", Ii, [
|
|
5099
5110
|
C(o, { model: n.model }, null, 8, ["model"])
|
|
5100
|
-
])) :
|
|
5101
|
-
], 6)) :
|
|
5111
|
+
])) : m("", !0)
|
|
5112
|
+
], 6)) : m("", !0);
|
|
5102
5113
|
};
|
|
5103
5114
|
}
|
|
5104
5115
|
}), Ri = {
|
|
5105
5116
|
key: 0,
|
|
5106
5117
|
class: "sv-header__logo"
|
|
5107
|
-
}, Ti = ["src", "width", "height", "alt"], $i = /* @__PURE__ */
|
|
5118
|
+
}, Ti = ["src", "width", "height", "alt"], $i = /* @__PURE__ */ g({
|
|
5108
5119
|
__name: "HeaderCell",
|
|
5109
5120
|
props: {
|
|
5110
5121
|
model: {}
|
|
@@ -5133,7 +5144,7 @@ const wi = /* @__PURE__ */ he(bi, [["render", fi]]), Ii = { key: 2 }, Si = /* @_
|
|
|
5133
5144
|
style: I({ objectFit: s.model.survey.logoFit, width: s.model.survey.renderedStyleLogoWidth, height: s.model.survey.renderedStyleLogoHeight })
|
|
5134
5145
|
}, null, 14, Ti)
|
|
5135
5146
|
], 2)
|
|
5136
|
-
])) :
|
|
5147
|
+
])) : m("", !0),
|
|
5137
5148
|
s.model.showTitle ? (i(), u("div", {
|
|
5138
5149
|
key: 1,
|
|
5139
5150
|
class: "sv-header__title",
|
|
@@ -5143,7 +5154,7 @@ const wi = /* @__PURE__ */ he(bi, [["render", fi]]), Ii = { key: 2 }, Si = /* @_
|
|
|
5143
5154
|
element: s.model.survey,
|
|
5144
5155
|
css: s.model.survey.css
|
|
5145
5156
|
}, null, 8, ["element", "css"])
|
|
5146
|
-
], 4)) :
|
|
5157
|
+
], 4)) : m("", !0),
|
|
5147
5158
|
s.model.showDescription ? (i(), u("div", {
|
|
5148
5159
|
key: 2,
|
|
5149
5160
|
class: "sv-header__description",
|
|
@@ -5156,8 +5167,8 @@ const wi = /* @__PURE__ */ he(bi, [["render", fi]]), Ii = { key: 2 }, Si = /* @_
|
|
|
5156
5167
|
C(t, {
|
|
5157
5168
|
locString: s.model.survey.locDescription
|
|
5158
5169
|
}, null, 8, ["locString"])
|
|
5159
|
-
], 2)) :
|
|
5160
|
-
], 4)) :
|
|
5170
|
+
], 2)) : m("", !0)
|
|
5171
|
+
], 4)) : m("", !0)
|
|
5161
5172
|
], 4)
|
|
5162
5173
|
], 6);
|
|
5163
5174
|
};
|
|
@@ -5165,7 +5176,7 @@ const wi = /* @__PURE__ */ he(bi, [["render", fi]]), Ii = { key: 2 }, Si = /* @_
|
|
|
5165
5176
|
}), _i = { class: "sv-header--mobile" }, Di = {
|
|
5166
5177
|
key: 0,
|
|
5167
5178
|
class: "sv-header__logo"
|
|
5168
|
-
}, Bi = ["src", "width", "height", "alt"], Li = /* @__PURE__ */
|
|
5179
|
+
}, Bi = ["src", "width", "height", "alt"], Li = /* @__PURE__ */ g({
|
|
5169
5180
|
__name: "HeaderMobile",
|
|
5170
5181
|
props: {
|
|
5171
5182
|
model: {}
|
|
@@ -5187,7 +5198,7 @@ const wi = /* @__PURE__ */ he(bi, [["render", fi]]), Ii = { key: 2 }, Si = /* @_
|
|
|
5187
5198
|
style: I({ objectFit: s.model.survey.logoFit, width: s.model.survey.renderedStyleLogoWidth, height: s.model.survey.renderedStyleLogoHeight })
|
|
5188
5199
|
}, null, 14, Bi)
|
|
5189
5200
|
], 2)
|
|
5190
|
-
])) :
|
|
5201
|
+
])) : m("", !0),
|
|
5191
5202
|
s.model.survey.hasTitle ? (i(), u("div", {
|
|
5192
5203
|
key: 1,
|
|
5193
5204
|
class: "sv-header__title",
|
|
@@ -5197,7 +5208,7 @@ const wi = /* @__PURE__ */ he(bi, [["render", fi]]), Ii = { key: 2 }, Si = /* @_
|
|
|
5197
5208
|
element: s.model.survey,
|
|
5198
5209
|
css: s.model.survey.css
|
|
5199
5210
|
}, null, 8, ["element", "css"])
|
|
5200
|
-
], 4)) :
|
|
5211
|
+
], 4)) : m("", !0),
|
|
5201
5212
|
s.model.survey.renderedHasDescription ? (i(), u("div", {
|
|
5202
5213
|
key: 2,
|
|
5203
5214
|
class: "sv-header__description",
|
|
@@ -5210,12 +5221,12 @@ const wi = /* @__PURE__ */ he(bi, [["render", fi]]), Ii = { key: 2 }, Si = /* @_
|
|
|
5210
5221
|
C(t, {
|
|
5211
5222
|
locString: s.model.survey.locDescription
|
|
5212
5223
|
}, null, 8, ["locString"])
|
|
5213
|
-
], 2)) :
|
|
5214
|
-
], 4)) :
|
|
5224
|
+
], 2)) : m("", !0)
|
|
5225
|
+
], 4)) : m("", !0)
|
|
5215
5226
|
]);
|
|
5216
5227
|
};
|
|
5217
5228
|
}
|
|
5218
|
-
}), Ai = /* @__PURE__ */
|
|
5229
|
+
}), Ai = /* @__PURE__ */ g({
|
|
5219
5230
|
__name: "Element",
|
|
5220
5231
|
props: {
|
|
5221
5232
|
element: {},
|
|
@@ -5226,48 +5237,48 @@ const wi = /* @__PURE__ */ he(bi, [["render", fi]]), Ii = { key: 2 }, Si = /* @_
|
|
|
5226
5237
|
const s = r, n = $(), e = (v) => v.isPanel ? "survey-panel" : "survey-question", t = S(() => {
|
|
5227
5238
|
const v = s.element.survey;
|
|
5228
5239
|
if (v) {
|
|
5229
|
-
const
|
|
5230
|
-
if (
|
|
5231
|
-
return
|
|
5240
|
+
const d = v.getElementWrapperComponentName(s.element);
|
|
5241
|
+
if (d)
|
|
5242
|
+
return d;
|
|
5232
5243
|
}
|
|
5233
5244
|
return e(s.element);
|
|
5234
5245
|
}), o = (v) => v.cssClasses ? v.rootStyle : {}, l = S(() => {
|
|
5235
|
-
const v = s.element,
|
|
5236
|
-
let
|
|
5237
|
-
return
|
|
5246
|
+
const v = s.element, d = v.survey;
|
|
5247
|
+
let h;
|
|
5248
|
+
return d && (h = d.getElementWrapperComponentData(v)), {
|
|
5238
5249
|
componentName: e(v),
|
|
5239
5250
|
componentData: {
|
|
5240
5251
|
element: v,
|
|
5241
|
-
survey:
|
|
5252
|
+
survey: d,
|
|
5242
5253
|
row: s.row,
|
|
5243
5254
|
css: s.css,
|
|
5244
|
-
data:
|
|
5255
|
+
data: h
|
|
5245
5256
|
}
|
|
5246
5257
|
};
|
|
5247
|
-
}),
|
|
5258
|
+
}), c = K(
|
|
5248
5259
|
() => s.element,
|
|
5249
|
-
(v,
|
|
5250
|
-
|
|
5260
|
+
(v, d) => {
|
|
5261
|
+
d && d.setWrapperElement(void 0), v.setWrapperElement(n.value);
|
|
5251
5262
|
}
|
|
5252
5263
|
);
|
|
5253
5264
|
return M(() => {
|
|
5254
5265
|
s.element.setWrapperElement(n.value);
|
|
5255
5266
|
}), O(() => {
|
|
5256
|
-
s.element.setWrapperElement(void 0),
|
|
5257
|
-
}), (v,
|
|
5267
|
+
s.element.setWrapperElement(void 0), c();
|
|
5268
|
+
}), (v, d) => (i(), u("div", {
|
|
5258
5269
|
ref_key: "root",
|
|
5259
5270
|
ref: n,
|
|
5260
5271
|
style: I(o(v.element)),
|
|
5261
5272
|
class: a(v.element.cssClasses.questionWrapper)
|
|
5262
5273
|
}, [
|
|
5263
|
-
v.row.isNeedRender ? (i(),
|
|
5274
|
+
v.row.isNeedRender ? (i(), q(R(t.value), z(E({ key: 0 }, l.value)), null, 16)) : v.element.skeletonComponentName ? (i(), q(R(v.element.skeletonComponentName), {
|
|
5264
5275
|
key: 1,
|
|
5265
5276
|
element: v.element,
|
|
5266
5277
|
css: v.css
|
|
5267
|
-
}, null, 8, ["element", "css"])) :
|
|
5278
|
+
}, null, 8, ["element", "css"])) : m("", !0)
|
|
5268
5279
|
], 6));
|
|
5269
5280
|
}
|
|
5270
|
-
}), Ni = /* @__PURE__ */
|
|
5281
|
+
}), Ni = /* @__PURE__ */ g({
|
|
5271
5282
|
__name: "TemplateRenderer",
|
|
5272
5283
|
props: {
|
|
5273
5284
|
componentName: {},
|
|
@@ -5275,9 +5286,9 @@ const wi = /* @__PURE__ */ he(bi, [["render", fi]]), Ii = { key: 2 }, Si = /* @_
|
|
|
5275
5286
|
},
|
|
5276
5287
|
setup(r) {
|
|
5277
5288
|
const s = $e(), n = S(() => !!s.default);
|
|
5278
|
-
return (e, t) => n.value && !e.componentName ? _e(e.$slots, "default", { key: 0 }) : (i(),
|
|
5289
|
+
return (e, t) => n.value && !e.componentName ? _e(e.$slots, "default", { key: 0 }) : (i(), q(R(e.componentName), z(E({ key: 1 }, e.componentData)), null, 16));
|
|
5279
5290
|
}
|
|
5280
|
-
}), Pi = /* @__PURE__ */
|
|
5291
|
+
}), Pi = /* @__PURE__ */ g({
|
|
5281
5292
|
__name: "FileCleanButton",
|
|
5282
5293
|
props: {
|
|
5283
5294
|
question: {},
|
|
@@ -5292,16 +5303,16 @@ const wi = /* @__PURE__ */ he(bi, [["render", fi]]), Ii = { key: 2 }, Si = /* @_
|
|
|
5292
5303
|
onClick: n[0] || (n[0] = (...t) => s.question.doClean && s.question.doClean(...t))
|
|
5293
5304
|
}, [
|
|
5294
5305
|
p("span", null, T(s.question.clearButtonCaption), 1),
|
|
5295
|
-
s.question.cssClasses.removeButtonIconId ? (i(),
|
|
5306
|
+
s.question.cssClasses.removeButtonIconId ? (i(), q(e, {
|
|
5296
5307
|
key: 0,
|
|
5297
5308
|
iconName: s.question.cssClasses.removeButtonIconId,
|
|
5298
5309
|
size: "auto",
|
|
5299
5310
|
title: s.question.clearButtonCaption
|
|
5300
|
-
}, null, 8, ["iconName", "title"])) :
|
|
5311
|
+
}, null, 8, ["iconName", "title"])) : m("", !0)
|
|
5301
5312
|
], 2);
|
|
5302
5313
|
};
|
|
5303
5314
|
}
|
|
5304
|
-
}), Mi = ["id"], Ei = /* @__PURE__ */
|
|
5315
|
+
}), Mi = ["id"], Ei = /* @__PURE__ */ g({
|
|
5305
5316
|
__name: "FileVideo",
|
|
5306
5317
|
props: {
|
|
5307
5318
|
question: {}
|
|
@@ -5330,7 +5341,7 @@ const wi = /* @__PURE__ */ he(bi, [["render", fi]]), Ii = { key: 2 }, Si = /* @_
|
|
|
5330
5341
|
], 2);
|
|
5331
5342
|
};
|
|
5332
5343
|
}
|
|
5333
|
-
}), Hi = ["for", "aria-label"], Wi = /* @__PURE__ */
|
|
5344
|
+
}), Hi = ["for", "aria-label"], Wi = /* @__PURE__ */ g({
|
|
5334
5345
|
__name: "FileChooseButton",
|
|
5335
5346
|
props: {
|
|
5336
5347
|
data: {},
|
|
@@ -5350,21 +5361,21 @@ const wi = /* @__PURE__ */ he(bi, [["render", fi]]), Ii = { key: 2 }, Si = /* @_
|
|
|
5350
5361
|
class: a(n.value.getChooseFileCss()),
|
|
5351
5362
|
for: n.value.inputId,
|
|
5352
5363
|
"aria-label": n.value.chooseButtonText,
|
|
5353
|
-
onClick: t[0] || (t[0] = (
|
|
5364
|
+
onClick: t[0] || (t[0] = (c) => n.value.chooseFile(c))
|
|
5354
5365
|
}, [
|
|
5355
|
-
n.value.cssClasses.chooseFileIconId ? (i(),
|
|
5366
|
+
n.value.cssClasses.chooseFileIconId ? (i(), q(o, {
|
|
5356
5367
|
key: 0,
|
|
5357
5368
|
title: n.value.chooseButtonText,
|
|
5358
5369
|
iconName: n.value.cssClasses.chooseFileIconId,
|
|
5359
5370
|
size: "auto"
|
|
5360
|
-
}, null, 8, ["title", "iconName"])) :
|
|
5371
|
+
}, null, 8, ["title", "iconName"])) : m("", !0),
|
|
5361
5372
|
p("span", null, T(n.value.chooseButtonText), 1)
|
|
5362
5373
|
], 10, Hi)), [
|
|
5363
5374
|
[l]
|
|
5364
5375
|
]);
|
|
5365
5376
|
};
|
|
5366
5377
|
}
|
|
5367
|
-
}), Fi = ["onClick", "href", "title", "download"], Vi = ["src"], Oi = ["onClick"], zi = ["onClick", "href", "title", "download"], Ui = /* @__PURE__ */
|
|
5378
|
+
}), Fi = ["onClick", "href", "title", "download"], Vi = ["src"], Oi = ["onClick"], zi = ["onClick", "href", "title", "download"], Ui = /* @__PURE__ */ g({
|
|
5368
5379
|
__name: "FilePreview",
|
|
5369
5380
|
props: {
|
|
5370
5381
|
question: {}
|
|
@@ -5376,7 +5387,7 @@ const wi = /* @__PURE__ */ he(bi, [["render", fi]]), Ii = { key: 2 }, Si = /* @_
|
|
|
5376
5387
|
key: 0,
|
|
5377
5388
|
class: a(s.question.cssClasses.fileList || void 0)
|
|
5378
5389
|
}, [
|
|
5379
|
-
(i(!0), u(
|
|
5390
|
+
(i(!0), u(_, null, L(s.question.previewValue, (t, o) => N((i(), u("span", {
|
|
5380
5391
|
key: s.question.inputId + "_" + o,
|
|
5381
5392
|
class: a(s.question.cssClasses.previewItem),
|
|
5382
5393
|
onClick: n[0] || (n[0] = (l) => s.question.doDownloadFileFromContainer(l))
|
|
@@ -5392,7 +5403,7 @@ const wi = /* @__PURE__ */ he(bi, [["render", fi]]), Ii = { key: 2 }, Si = /* @_
|
|
|
5392
5403
|
download: t.name,
|
|
5393
5404
|
style: I({ width: s.question.imageWidth })
|
|
5394
5405
|
}, T(t.name), 13, Fi)
|
|
5395
|
-
], 2)) :
|
|
5406
|
+
], 2)) : m("", !0),
|
|
5396
5407
|
p("div", {
|
|
5397
5408
|
class: a(s.question.getImageWrapperCss(t))
|
|
5398
5409
|
}, [
|
|
@@ -5404,13 +5415,13 @@ const wi = /* @__PURE__ */ he(bi, [["render", fi]]), Ii = { key: 2 }, Si = /* @_
|
|
|
5404
5415
|
width: s.question.imageWidth
|
|
5405
5416
|
}),
|
|
5406
5417
|
alt: "File preview"
|
|
5407
|
-
}, null, 12, Vi)) :
|
|
5408
|
-
s.question.defaultImage(t) ? (i(),
|
|
5418
|
+
}, null, 12, Vi)) : m("", !0),
|
|
5419
|
+
s.question.defaultImage(t) ? (i(), q(e, {
|
|
5409
5420
|
key: 1,
|
|
5410
5421
|
iconName: s.question.cssClasses.defaultImageIconId,
|
|
5411
5422
|
class: a(s.question.cssClasses.defaultImage),
|
|
5412
5423
|
size: "auto"
|
|
5413
|
-
}, null, 8, ["iconName", "class"])) :
|
|
5424
|
+
}, null, 8, ["iconName", "class"])) : m("", !0),
|
|
5414
5425
|
t.name && !s.question.isReadOnly ? (i(), u("div", {
|
|
5415
5426
|
key: 2,
|
|
5416
5427
|
class: a(s.question.getRemoveButtonCss()),
|
|
@@ -5419,14 +5430,14 @@ const wi = /* @__PURE__ */ he(bi, [["render", fi]]), Ii = { key: 2 }, Si = /* @_
|
|
|
5419
5430
|
p("span", {
|
|
5420
5431
|
class: a(s.question.cssClasses.removeFile)
|
|
5421
5432
|
}, T(s.question.removeFileCaption), 3),
|
|
5422
|
-
s.question.cssClasses.removeFileSvgIconId ? (i(),
|
|
5433
|
+
s.question.cssClasses.removeFileSvgIconId ? (i(), q(e, {
|
|
5423
5434
|
key: 0,
|
|
5424
5435
|
title: s.question.removeFileCaption,
|
|
5425
5436
|
class: a(s.question.cssClasses.removeFileSvg),
|
|
5426
5437
|
iconName: s.question.cssClasses.removeFileSvgIconId,
|
|
5427
5438
|
size: "auto"
|
|
5428
|
-
}, null, 8, ["title", "class", "iconName"])) :
|
|
5429
|
-
], 10, Oi)) :
|
|
5439
|
+
}, null, 8, ["title", "class", "iconName"])) : m("", !0)
|
|
5440
|
+
], 10, Oi)) : m("", !0)
|
|
5430
5441
|
], 2),
|
|
5431
5442
|
t.name && s.question.cssClasses.fileSignBottom ? (i(), u("div", {
|
|
5432
5443
|
key: 1,
|
|
@@ -5439,14 +5450,14 @@ const wi = /* @__PURE__ */ he(bi, [["render", fi]]), Ii = { key: 2 }, Si = /* @_
|
|
|
5439
5450
|
download: t.name,
|
|
5440
5451
|
style: I({ width: s.question.imageWidth })
|
|
5441
5452
|
}, T(t.name), 13, zi)
|
|
5442
|
-
], 2)) :
|
|
5453
|
+
], 2)) : m("", !0)
|
|
5443
5454
|
], 2)), [
|
|
5444
5455
|
[H, t && s.question.isPreviewVisible(o)]
|
|
5445
5456
|
])), 128))
|
|
5446
|
-
], 2)) :
|
|
5457
|
+
], 2)) : m("", !0);
|
|
5447
5458
|
};
|
|
5448
5459
|
}
|
|
5449
|
-
}), Ki = /* @__PURE__ */
|
|
5460
|
+
}), Ki = /* @__PURE__ */ g({
|
|
5450
5461
|
__name: "ButtonGroup",
|
|
5451
5462
|
props: {
|
|
5452
5463
|
question: {}
|
|
@@ -5461,16 +5472,16 @@ const wi = /* @__PURE__ */ he(bi, [["render", fi]]), Ii = { key: 2 }, Si = /* @_
|
|
|
5461
5472
|
ref_key: "root",
|
|
5462
5473
|
ref: n
|
|
5463
5474
|
}, [
|
|
5464
|
-
(i(!0), u(
|
|
5475
|
+
(i(!0), u(_, null, L(e.question.visibleChoices, (l, c) => (i(), q(o, {
|
|
5465
5476
|
question: e.question,
|
|
5466
|
-
key:
|
|
5477
|
+
key: c,
|
|
5467
5478
|
item: l,
|
|
5468
|
-
index:
|
|
5479
|
+
index: c
|
|
5469
5480
|
}, null, 8, ["question", "item", "index"]))), 128))
|
|
5470
5481
|
], 2);
|
|
5471
5482
|
};
|
|
5472
5483
|
}
|
|
5473
|
-
}), Qi = ["title"], ji = ["name", "id", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "disabled", "value"], Gi = ["title"], Ji = /* @__PURE__ */
|
|
5484
|
+
}), Qi = ["title"], ji = ["name", "id", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "disabled", "value"], Gi = ["title"], Ji = /* @__PURE__ */ g({
|
|
5474
5485
|
__name: "ButtonGroupItem",
|
|
5475
5486
|
props: {
|
|
5476
5487
|
item: {},
|
|
@@ -5488,7 +5499,7 @@ const wi = /* @__PURE__ */ he(bi, [["render", fi]]), Ii = { key: 2 }, Si = /* @_
|
|
|
5488
5499
|
}
|
|
5489
5500
|
});
|
|
5490
5501
|
return (t, o) => {
|
|
5491
|
-
const l = y("sv-svg-icon"),
|
|
5502
|
+
const l = y("sv-svg-icon"), c = y("survey-string");
|
|
5492
5503
|
return i(), u("label", {
|
|
5493
5504
|
role: "radio",
|
|
5494
5505
|
class: a(n.value.css.label),
|
|
@@ -5513,33 +5524,33 @@ const wi = /* @__PURE__ */ he(bi, [["render", fi]]), Ii = { key: 2 }, Si = /* @_
|
|
|
5513
5524
|
p("div", {
|
|
5514
5525
|
class: a(n.value.css.decorator)
|
|
5515
5526
|
}, [
|
|
5516
|
-
n.value.iconName ? (i(),
|
|
5527
|
+
n.value.iconName ? (i(), q(l, {
|
|
5517
5528
|
key: 0,
|
|
5518
5529
|
iconName: n.value.iconName,
|
|
5519
5530
|
size: n.value.iconSize,
|
|
5520
5531
|
class: a(n.value.css.icon)
|
|
5521
|
-
}, null, 8, ["iconName", "size", "class"])) :
|
|
5532
|
+
}, null, 8, ["iconName", "size", "class"])) : m("", !0),
|
|
5522
5533
|
n.value.showCaption ? (i(), u("span", {
|
|
5523
5534
|
key: 1,
|
|
5524
5535
|
class: a(n.value.css.caption),
|
|
5525
5536
|
title: n.value.caption.renderedHtml
|
|
5526
5537
|
}, [
|
|
5527
|
-
C(
|
|
5538
|
+
C(c, {
|
|
5528
5539
|
locString: n.value.caption
|
|
5529
5540
|
}, null, 8, ["locString"])
|
|
5530
|
-
], 10, Gi)) :
|
|
5541
|
+
], 10, Gi)) : m("", !0)
|
|
5531
5542
|
], 2)
|
|
5532
5543
|
], 10, Qi);
|
|
5533
5544
|
};
|
|
5534
5545
|
}
|
|
5535
|
-
}), Xi = ["src", "width", "height", "alt"], Yi = /* @__PURE__ */
|
|
5546
|
+
}), Xi = ["src", "width", "height", "alt"], Yi = /* @__PURE__ */ g({
|
|
5536
5547
|
inheritAttrs: !1,
|
|
5537
5548
|
__name: "Logo",
|
|
5538
5549
|
props: {
|
|
5539
5550
|
data: {}
|
|
5540
5551
|
},
|
|
5541
5552
|
setup(r) {
|
|
5542
|
-
const s = r, n = S(() => s.data), e =
|
|
5553
|
+
const s = r, n = S(() => s.data), e = G(() => n.value.locLogo);
|
|
5543
5554
|
return (t, o) => (i(), u("div", {
|
|
5544
5555
|
class: a(n.value.logoClassNames)
|
|
5545
5556
|
}, [
|
|
@@ -5557,7 +5568,7 @@ const wi = /* @__PURE__ */ he(bi, [["render", fi]]), Ii = { key: 2 }, Si = /* @_
|
|
|
5557
5568
|
}, null, 14, Xi)
|
|
5558
5569
|
], 2));
|
|
5559
5570
|
}
|
|
5560
|
-
}), Zi = /* @__PURE__ */
|
|
5571
|
+
}), Zi = /* @__PURE__ */ g({
|
|
5561
5572
|
__name: "SvgBundle",
|
|
5562
5573
|
setup(r) {
|
|
5563
5574
|
const s = $();
|
|
@@ -5574,14 +5585,14 @@ const wi = /* @__PURE__ */ he(bi, [["render", fi]]), Ii = { key: 2 }, Si = /* @_
|
|
|
5574
5585
|
});
|
|
5575
5586
|
ze.platform = "vue3";
|
|
5576
5587
|
function xi(r) {
|
|
5577
|
-
r.component("SurveyComponent",
|
|
5588
|
+
r.component("SurveyComponent", me), r.component("sv-svg-bundle", Zi), r.component("PopupSurveyComponent", ce), r.component("survey", me), r.component("popup-survey", ce), r.component("survey-header", Ge), r.component("sv-logo-image", Yi), r.component("survey-page", je), r.component("survey-row", Je), r.component("survey-question", xe), r.component("survey-panel", os), r.component("survey-element-header", is), r.component("survey-string", rs), r.component("sv-string-viewer", as), r.component("sv-string-editor", ds), r.component("sv-skeleton", cs), r.component("survey-text", ys), r.component("survey-text-input", hs), r.component("survey-checkbox", ws), r.component("survey-checkbox-item", Rs), r.component("survey-radiogroup", Ts), r.component("survey-radiogroup-item", Ds), r.component("survey-signaturepad", Ns), r.component("survey-html", Ms), r.component("survey-image", Fs), r.component("survey-expression", Vs), r.component("survey-file", Ks), r.component("sv-file-choose-btn", Wi), r.component("sv-file-clean-btn", Pi), r.component("sv-file-preview", Ui), r.component("sv-file-video", Ei), r.component("survey-imagepicker", js), r.component("survey-imagepicker-item", Zs), r.component("survey-comment", sn), r.component("survey-dropdown", nn), r.component("sv-dropdown-select", ln), r.component("sv-dropdown-option-item", un), r.component("sv-dropdown", vn), r.component("survey-tagbox", yn), r.component("sv-tagbox", hn), r.component("sv-tagbox-item", wn), r.component("sv-tagbox-filter", kn), r.component("survey-ranking", In), r.component("survey-ranking-item", Dn), r.component("sv-ranking-item-content", Bn), r.component("survey-rating", Nn), r.component("sv-rating-item", Mn), r.component("sv-rating-item-smiley", Hn), r.component("sv-rating-item-star", Fn), r.component("sv-rating-dropdown", Kn), r.component("sv-rating-dropdown-item", Un), r.component("survey-boolean", jn), r.component("sv-boolean-radio", Gn), r.component("sv-boolean-radio-item", Yn), r.component("sv-boolean-checkbox", oo), r.component("survey-multipletext", to), r.component("survey-multipletext-item", ro), r.component("survey-matrix", po), r.component("survey-matrix-row", yo), r.component("survey-matrix-cell", ho), r.component("survey-matrixdropdown", Co), r.component("survey-matrixtable", fo), r.component("survey-matrixheaderrequired", Io), r.component("survey-matrixdropdown-cell", Ro), r.component("survey-matrixdynamic", To), r.component("sv-matrix-remove-button", _o), r.component("sv-matrix-drag-drop-icon", Bo), r.component("sv-matrix-detail-button", Ao), r.component("survey-paneldynamic", No), r.component("survey-paneldynamicprogress", Po), r.component("survey-paneldynamicprogress-v2", Mo), r.component("sv-paneldynamic-add-btn", Eo), r.component("sv-paneldynamic-next-btn", Wo), r.component("sv-paneldynamic-prev-btn", Vo), r.component("sv-paneldynamic-remove-btn", Oo), r.component("sv-paneldynamic-progress-text", zo), r.component("sv-components-container", zt), r.component("sv-progress-buttons", Jt), r.component("sv-navigation-toc", Xt), 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", Ko), r.component("survey-question-comment", Go), r.component("survey-element-title", Jo), r.component("survey-element-title-content", xo), r.component("sv-title-actions", nt), r.component("sv-brand-info", at), r.component("sv-question-error", ct), r.component("sv-svg-icon", mt), r.component("sv-action-bar", pt), r.component("sv-action", qt), r.component("sv-action-bar-item", Ct), r.component("sv-action-bar-item-dropdown", ft), r.component("sv-action-bar-separator", wt), r.component("sv-list", Tt), r.component("sv-list-item-content", Bt), r.component("sv-list-item-group", Lt), r.component("sv-list-item", Dt), r.component("sv-popup", At), r.component("sv-popup-container", Ft), r.component("popup-pointer", Vt), r.component("sv-notifier", ii), r.component("survey-other-choice", ai), r.component("sv-nav-btn", di), r.component("survey-customwidget", ci), r.component("survey-popup-modal", pi), r.component("sv-character-counter", vi), r.component("survey-composite", yi), r.component("survey-custom", qi), r.component("sv-timerpanel", Ci), r.component("sv-loading-indicator", wi), r.component("sv-header", Si), r.component("sv-header-cell", $i), r.component("sv-header-mobile", Li), r.component("sv-template-renderer", Ni), r.component("survey-element", Ai), r.component("survey-buttongroup", Ki), r.component("sv-button-group-item", Ji), r.directive("key2click", {
|
|
5578
5589
|
mounted: function(s, n) {
|
|
5579
5590
|
const e = { ...n.value };
|
|
5580
5591
|
if (e.disableTabStop) {
|
|
5581
5592
|
s.tabIndex = -1;
|
|
5582
5593
|
return;
|
|
5583
5594
|
}
|
|
5584
|
-
e.disableTabStop || (s.tabIndex = 0), s.addEventListener("keyup", (t) => (t.preventDefault(), t.stopPropagation(),
|
|
5595
|
+
e.disableTabStop || (s.tabIndex = 0), s.addEventListener("keyup", (t) => (t.preventDefault(), t.stopPropagation(), ye(t, e), !1)), s.addEventListener("keydown", (t) => {
|
|
5585
5596
|
Ue(t, e);
|
|
5586
5597
|
}), s.addEventListener("blur", (t) => {
|
|
5587
5598
|
Ke(t);
|
|
@@ -5598,6 +5609,6 @@ export {
|
|
|
5598
5609
|
nr as surveyPlugin,
|
|
5599
5610
|
B as useBase,
|
|
5600
5611
|
re as useComputedArray,
|
|
5601
|
-
|
|
5612
|
+
G as useLocString,
|
|
5602
5613
|
P as useQuestion
|
|
5603
5614
|
};
|