survey-vue3-ui 1.9.106 → 1.9.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/survey-vue3-ui.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { shallowReactive as
|
|
2
|
-
import { Base as
|
|
3
|
-
|
|
4
|
-
function
|
|
1
|
+
import { shallowReactive as ce, watch as _, onBeforeUnmount as U, onMounted as A, ref as S, shallowRef as F, triggerRef as oe, unref as f, isRef as pe, defineComponent as C, computed as T, onUpdated as Z, resolveComponent as v, openBlock as t, createElementBlock as u, normalizeClass as l, createVNode as b, createCommentVNode as m, Fragment as w, renderList as R, createBlock as q, createElementVNode as p, normalizeStyle as $, onUnmounted as V, withDirectives as D, resolveDynamicComponent as N, vShow as H, toDisplayString as I, vModelCheckbox as z, vModelRadio as J, resolveDirective as Y, vModelSelect as ve, vModelText as qe, getCurrentInstance as x, withCtx as ye, createStaticVNode as ge, normalizeProps as Ce, guardReactiveProps as he, toRaw as be, Teleport as ke } from "vue";
|
|
2
|
+
import { Base as fe, RendererFactory as G, DropdownListModel as Ie, Helpers as we, DropdownMultiSelectListModel as Se, doKey2ClickUp as de, createSvg as Te, ActionDropdownViewModel as Re, getActionDropdownButtonTarget as $e, createPopupViewModel as te, SurveyProgressModel as ie, SurveyProgressButtonsModel as Be, TOCModel as Le, SvgRegistry as De, PopupSurveyModel as Pe, settings as O, createDialogOptions as Me, createPopupModalViewModel as Ne, SurveyModel as He, doKey2ClickDown as Ae, doKey2ClickBlur as Ee } from "survey-core";
|
|
3
|
+
fe.createPropertiesHash = () => ce({});
|
|
4
|
+
function Ve(r) {
|
|
5
5
|
return !r || r.__vueImplemented ? !1 : (r.createArrayCoreHandler = (o, n) => {
|
|
6
6
|
const s = [], e = F(s);
|
|
7
7
|
return s.onArrayChanged = () => {
|
|
8
8
|
oe(e);
|
|
9
|
-
}, o[n] = e,
|
|
9
|
+
}, o[n] = e, f(o[n]);
|
|
10
10
|
}, r.iteratePropertiesHash((o, n) => {
|
|
11
11
|
if (Array.isArray(o[n])) {
|
|
12
12
|
const s = F(o[n]);
|
|
@@ -14,21 +14,21 @@ function Ae(r) {
|
|
|
14
14
|
oe(s);
|
|
15
15
|
}, o[n] = s;
|
|
16
16
|
}
|
|
17
|
-
}), r.getPropertyValueCoreHandler = (o, n) =>
|
|
18
|
-
|
|
17
|
+
}), r.getPropertyValueCoreHandler = (o, n) => f(o[n]), r.setPropertyValueCoreHandler = (o, n, s) => {
|
|
18
|
+
pe(o[n]) ? o[n].value = s : o[n] = s;
|
|
19
19
|
}, r.__vueImplemented = !0, !0);
|
|
20
20
|
}
|
|
21
21
|
function le(r, o) {
|
|
22
22
|
!r || !o || (r.iteratePropertiesHash((n, s) => {
|
|
23
|
-
n[s] =
|
|
23
|
+
n[s] = f(n[s]), Array.isArray(n[s]) && (n[s].onArrayChanged = void 0);
|
|
24
24
|
}), delete r.__vueImplemented, r.createArrayCoreHandler = void 0, r.getPropertyValueCoreHandler = void 0, r.setPropertyValueCoreHandler = void 0);
|
|
25
25
|
}
|
|
26
26
|
function B(r, o, n) {
|
|
27
27
|
let s = !1;
|
|
28
|
-
const e =
|
|
28
|
+
const e = _(
|
|
29
29
|
r,
|
|
30
30
|
(i, a) => {
|
|
31
|
-
o && o(i), a && (le(a, s), n && n(a)), s =
|
|
31
|
+
o && o(i), a && (le(a, s), n && n(a)), s = Ve(i);
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
immediate: !0
|
|
@@ -51,7 +51,7 @@ function W(r) {
|
|
|
51
51
|
o.value = e.renderedHtml, e.onChanged = () => {
|
|
52
52
|
o.value = e.renderedHtml;
|
|
53
53
|
};
|
|
54
|
-
}, s =
|
|
54
|
+
}, s = _(
|
|
55
55
|
r,
|
|
56
56
|
(e, i) => {
|
|
57
57
|
i && (i.onChanged = () => {
|
|
@@ -66,7 +66,7 @@ function W(r) {
|
|
|
66
66
|
function ee(r) {
|
|
67
67
|
return r.customWidget ? "survey-customwidget" : r.isDefaultRendering && r.isDefaultRendering() || r.isPanel ? "survey-" + r.getTemplate() : r.getComponentName();
|
|
68
68
|
}
|
|
69
|
-
const
|
|
69
|
+
const Oe = /* @__PURE__ */ C({
|
|
70
70
|
__name: "Page",
|
|
71
71
|
props: {
|
|
72
72
|
survey: {},
|
|
@@ -79,16 +79,16 @@ const Ee = /* @__PURE__ */ C({
|
|
|
79
79
|
const s = T(() => o.page._showDescription), e = T(() => o.page.rows);
|
|
80
80
|
return A(() => {
|
|
81
81
|
o.survey && o.survey.afterRenderPage(n.value);
|
|
82
|
-
}),
|
|
82
|
+
}), Z(() => {
|
|
83
83
|
o.survey.afterRenderPage(n.value);
|
|
84
84
|
}), (i, a) => {
|
|
85
|
-
const d =
|
|
85
|
+
const d = v("survey-element-title"), c = v("survey-string"), y = v("survey-row");
|
|
86
86
|
return t(), u("div", {
|
|
87
87
|
class: l(i.page.cssRoot),
|
|
88
88
|
ref_key: "root",
|
|
89
89
|
ref: n
|
|
90
90
|
}, [
|
|
91
|
-
|
|
91
|
+
b(d, {
|
|
92
92
|
element: i.page,
|
|
93
93
|
css: i.css
|
|
94
94
|
}, null, 8, ["element", "css"]),
|
|
@@ -96,14 +96,14 @@ const Ee = /* @__PURE__ */ C({
|
|
|
96
96
|
key: 0,
|
|
97
97
|
class: l(i.page.cssClasses.page.description)
|
|
98
98
|
}, [
|
|
99
|
-
|
|
99
|
+
b(c, {
|
|
100
100
|
locString: i.page.locDescription
|
|
101
101
|
}, null, 8, ["locString"])
|
|
102
102
|
], 2)) : m("", !0),
|
|
103
|
-
(t(!0), u(w, null, R(e.value, (
|
|
104
|
-
|
|
103
|
+
(t(!0), u(w, null, R(e.value, (h, g) => (t(), u(w, null, [
|
|
104
|
+
h.visible ? (t(), q(y, {
|
|
105
105
|
key: i.page.id + "_" + g,
|
|
106
|
-
row:
|
|
106
|
+
row: h,
|
|
107
107
|
survey: i.survey,
|
|
108
108
|
css: i.css
|
|
109
109
|
}, null, 8, ["row", "survey", "css"])) : m("", !0)
|
|
@@ -111,7 +111,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
111
111
|
], 2);
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
|
-
}),
|
|
114
|
+
}), Fe = ["src", "width", "height", "alt"], We = ["src", "width", "height", "alt"], ze = /* @__PURE__ */ C({
|
|
115
115
|
__name: "Header",
|
|
116
116
|
props: {
|
|
117
117
|
survey: {}
|
|
@@ -122,7 +122,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
122
122
|
var e = n.value;
|
|
123
123
|
e && o.survey && o.survey.afterRenderHeader(e);
|
|
124
124
|
}), (e, i) => {
|
|
125
|
-
const a =
|
|
125
|
+
const a = v("survey-element-title"), d = v("survey-string");
|
|
126
126
|
return e.survey.renderedHasHeader ? (t(), u("div", {
|
|
127
127
|
key: 0,
|
|
128
128
|
class: l(e.survey.css.header),
|
|
@@ -135,7 +135,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
135
135
|
}, [
|
|
136
136
|
p("img", {
|
|
137
137
|
class: l(e.survey.css.logoImage),
|
|
138
|
-
src:
|
|
138
|
+
src: f(s),
|
|
139
139
|
width: e.survey.renderedLogoWidth,
|
|
140
140
|
height: e.survey.renderedLogoHeight,
|
|
141
141
|
alt: e.survey.locTitle.renderedHtml,
|
|
@@ -144,14 +144,14 @@ const Ee = /* @__PURE__ */ C({
|
|
|
144
144
|
width: e.survey.renderedStyleLogoWidth,
|
|
145
145
|
height: e.survey.renderedStyleLogoHeight
|
|
146
146
|
})
|
|
147
|
-
}, null, 14,
|
|
147
|
+
}, null, 14, Fe)
|
|
148
148
|
], 2)) : m("", !0),
|
|
149
149
|
e.survey.renderedHasTitle ? (t(), u("div", {
|
|
150
150
|
key: 1,
|
|
151
151
|
class: l(e.survey.css.headerText),
|
|
152
152
|
style: $({ maxWidth: e.survey.titleMaxWidth })
|
|
153
153
|
}, [
|
|
154
|
-
|
|
154
|
+
b(a, {
|
|
155
155
|
element: e.survey,
|
|
156
156
|
css: e.survey.css
|
|
157
157
|
}, null, 8, ["element", "css"]),
|
|
@@ -159,7 +159,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
159
159
|
key: 0,
|
|
160
160
|
class: l(e.survey.css.description)
|
|
161
161
|
}, [
|
|
162
|
-
|
|
162
|
+
b(d, {
|
|
163
163
|
locString: e.survey.locDescription
|
|
164
164
|
}, null, 8, ["locString"])
|
|
165
165
|
], 2)) : m("", !0)
|
|
@@ -170,7 +170,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
170
170
|
}, [
|
|
171
171
|
p("img", {
|
|
172
172
|
class: l(e.survey.css.logoImage),
|
|
173
|
-
src:
|
|
173
|
+
src: f(s),
|
|
174
174
|
width: e.survey.renderedLogoWidth,
|
|
175
175
|
height: e.survey.renderedLogoHeight,
|
|
176
176
|
alt: e.survey.locTitle.renderedHtml,
|
|
@@ -179,7 +179,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
179
179
|
width: e.survey.renderedStyleLogoWidth,
|
|
180
180
|
height: e.survey.renderedStyleLogoHeight
|
|
181
181
|
})
|
|
182
|
-
}, null, 14,
|
|
182
|
+
}, null, 14, We)
|
|
183
183
|
], 2)) : m("", !0),
|
|
184
184
|
p("div", {
|
|
185
185
|
class: l(e.survey.css.headerClose)
|
|
@@ -187,7 +187,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
187
187
|
], 2)) : m("", !0);
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
|
-
}),
|
|
190
|
+
}), Ue = /* @__PURE__ */ C({
|
|
191
191
|
__name: "Row",
|
|
192
192
|
props: {
|
|
193
193
|
row: {},
|
|
@@ -209,7 +209,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
209
209
|
const e = o.row;
|
|
210
210
|
e && (e.isNeedRender = !o.row.isLazyRendering());
|
|
211
211
|
}), (e, i) => {
|
|
212
|
-
const a =
|
|
212
|
+
const a = v("survey-element"), d = v("survey-panel");
|
|
213
213
|
return t(), u("div", {
|
|
214
214
|
class: l(e.row.getRowCss()),
|
|
215
215
|
ref_key: "root",
|
|
@@ -218,7 +218,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
218
218
|
(t(!0), u(w, null, R(n.value, (c) => (t(), u("div", {
|
|
219
219
|
style: $(c.rootStyle)
|
|
220
220
|
}, [
|
|
221
|
-
c.isPanel ? m("", !0) : (t(),
|
|
221
|
+
c.isPanel ? m("", !0) : (t(), q(a, {
|
|
222
222
|
key: c.id,
|
|
223
223
|
element: c,
|
|
224
224
|
survey: e.survey,
|
|
@@ -226,7 +226,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
226
226
|
row: e.row,
|
|
227
227
|
style: $(c.getRootStyle())
|
|
228
228
|
}, null, 8, ["element", "survey", "css", "row", "style"])),
|
|
229
|
-
c.isPanel ? (t(),
|
|
229
|
+
c.isPanel ? (t(), q(d, {
|
|
230
230
|
key: c.id,
|
|
231
231
|
question: c,
|
|
232
232
|
css: e.css
|
|
@@ -235,7 +235,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
235
235
|
], 2);
|
|
236
236
|
};
|
|
237
237
|
}
|
|
238
|
-
}),
|
|
238
|
+
}), Ke = ["id", "role", "aria-required", "aria-invalid", "aria-labelledby", "data-name"], je = /* @__PURE__ */ C({
|
|
239
239
|
__name: "Element",
|
|
240
240
|
props: {
|
|
241
241
|
survey: {},
|
|
@@ -248,7 +248,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
248
248
|
return B(() => o.element), A(() => {
|
|
249
249
|
o.element.isPanel || o.element.afterRender(n.value);
|
|
250
250
|
}), (d, c) => {
|
|
251
|
-
const
|
|
251
|
+
const y = v("survey-errors"), h = v("survey-element-header"), g = v("survey-string"), k = v("survey-question-comment");
|
|
252
252
|
return d.row.isNeedRender ? (t(), u("div", {
|
|
253
253
|
key: 0,
|
|
254
254
|
class: l(d.element.isPanel ? null : d.element.getRootCss()),
|
|
@@ -262,12 +262,12 @@ const Ee = /* @__PURE__ */ C({
|
|
|
262
262
|
"aria-labelledby": d.element.ariaLabelledBy,
|
|
263
263
|
"data-name": d.element.name
|
|
264
264
|
}, [
|
|
265
|
-
!d.element.isPanel && d.element.showErrorsAboveQuestion ? (t(), y
|
|
265
|
+
!d.element.isPanel && d.element.showErrorsAboveQuestion ? (t(), q(y, {
|
|
266
266
|
key: 0,
|
|
267
267
|
element: d.element,
|
|
268
268
|
location: "top"
|
|
269
269
|
}, null, 8, ["element"])) : m("", !0),
|
|
270
|
-
!d.element.isPanel && d.element.hasTitleOnLeftTop ? (t(),
|
|
270
|
+
!d.element.isPanel && d.element.hasTitleOnLeftTop ? (t(), q(h, {
|
|
271
271
|
key: 1,
|
|
272
272
|
element: d.element,
|
|
273
273
|
css: d.css
|
|
@@ -276,12 +276,12 @@ const Ee = /* @__PURE__ */ C({
|
|
|
276
276
|
class: l(a(d.element) || void 0),
|
|
277
277
|
role: "presentation"
|
|
278
278
|
}, [
|
|
279
|
-
s.value ? (t(), y
|
|
279
|
+
s.value ? (t(), q(y, {
|
|
280
280
|
key: 0,
|
|
281
281
|
element: d.element,
|
|
282
282
|
location: "top"
|
|
283
283
|
}, null, 8, ["element"])) : m("", !0),
|
|
284
|
-
d.element.isPanel || !d.element.isCollapsed ? (t(),
|
|
284
|
+
d.element.isPanel || !d.element.isCollapsed ? (t(), q(N(i(d.element)), {
|
|
285
285
|
key: 1,
|
|
286
286
|
question: d.element
|
|
287
287
|
}, null, 8, ["question"])) : m("", !0),
|
|
@@ -290,16 +290,16 @@ const Ee = /* @__PURE__ */ C({
|
|
|
290
290
|
class: l(d.element.getCommentAreaCss())
|
|
291
291
|
}, [
|
|
292
292
|
p("div", null, [
|
|
293
|
-
|
|
293
|
+
b(g, {
|
|
294
294
|
locString: d.element.locCommentText
|
|
295
295
|
}, null, 8, ["locString"])
|
|
296
296
|
]),
|
|
297
|
-
|
|
297
|
+
b(k, {
|
|
298
298
|
commentClass: d.css.comment,
|
|
299
299
|
question: d.element
|
|
300
300
|
}, null, 8, ["commentClass", "question"])
|
|
301
301
|
], 2)) : m("", !0),
|
|
302
|
-
e.value ? (t(), y
|
|
302
|
+
e.value ? (t(), q(y, {
|
|
303
303
|
key: 3,
|
|
304
304
|
element: d.element,
|
|
305
305
|
location: "bottom"
|
|
@@ -308,31 +308,31 @@ const Ee = /* @__PURE__ */ C({
|
|
|
308
308
|
key: 4,
|
|
309
309
|
class: l(d.element.cssClasses.descriptionUnderInput)
|
|
310
310
|
}, [
|
|
311
|
-
|
|
311
|
+
b(g, {
|
|
312
312
|
locString: d.element.locDescription
|
|
313
313
|
}, null, 8, ["locString"])
|
|
314
314
|
], 2)) : m("", !0)
|
|
315
315
|
], 2), [
|
|
316
316
|
[H, d.element.isPanel || !d.element.isCollapsed]
|
|
317
317
|
]),
|
|
318
|
-
!d.element.isPanel && d.element.hasTitleOnBottom ? (t(),
|
|
318
|
+
!d.element.isPanel && d.element.hasTitleOnBottom ? (t(), q(h, {
|
|
319
319
|
key: 2,
|
|
320
320
|
element: d.element,
|
|
321
321
|
css: d.css
|
|
322
322
|
}, null, 8, ["element", "css"])) : m("", !0),
|
|
323
|
-
!d.element.isPanel && d.element.showErrorsBelowQuestion ? (t(), y
|
|
323
|
+
!d.element.isPanel && d.element.showErrorsBelowQuestion ? (t(), q(y, {
|
|
324
324
|
key: 3,
|
|
325
325
|
element: d.element,
|
|
326
326
|
location: "bottom"
|
|
327
327
|
}, null, 8, ["element"])) : m("", !0)
|
|
328
|
-
], 42,
|
|
328
|
+
], 42, Ke)) : d.element.skeletonComponentName ? (t(), q(N(d.element.skeletonComponentName), {
|
|
329
329
|
key: 1,
|
|
330
330
|
element: d.element,
|
|
331
331
|
css: d.css
|
|
332
332
|
}, null, 8, ["element", "css"])) : m("", !0);
|
|
333
333
|
};
|
|
334
334
|
}
|
|
335
|
-
}),
|
|
335
|
+
}), Qe = ["id"], _e = ["id"], Ze = /* @__PURE__ */ C({
|
|
336
336
|
__name: "Panel",
|
|
337
337
|
props: {
|
|
338
338
|
question: {},
|
|
@@ -351,7 +351,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
351
351
|
const d = o.question;
|
|
352
352
|
d.stateChangedCallback = null;
|
|
353
353
|
}), (d, c) => {
|
|
354
|
-
const
|
|
354
|
+
const y = v("survey-errors"), h = v("survey-element-header"), g = v("survey-row"), k = v("sv-action-bar");
|
|
355
355
|
return d.question.isVisible ? (t(), u("div", {
|
|
356
356
|
key: 0,
|
|
357
357
|
class: l(d.question.getContainerCss()),
|
|
@@ -359,16 +359,16 @@ const Ee = /* @__PURE__ */ C({
|
|
|
359
359
|
ref_key: "root",
|
|
360
360
|
ref: s
|
|
361
361
|
}, [
|
|
362
|
-
d.question.showErrorsAbovePanel ? (t(), y
|
|
362
|
+
d.question.showErrorsAbovePanel ? (t(), q(y, {
|
|
363
363
|
key: 0,
|
|
364
364
|
element: d.question
|
|
365
365
|
}, null, 8, ["element"])) : m("", !0),
|
|
366
|
-
d.question.hasTitle || d.question.hasDescription ? (t(),
|
|
366
|
+
d.question.hasTitle || d.question.hasDescription ? (t(), q(h, {
|
|
367
367
|
key: 1,
|
|
368
368
|
element: d.question,
|
|
369
369
|
css: d.css
|
|
370
370
|
}, null, 8, ["element", "css"])) : m("", !0),
|
|
371
|
-
d.question.showErrorsAbovePanel ? m("", !0) : (t(), y
|
|
371
|
+
d.question.showErrorsAbovePanel ? m("", !0) : (t(), q(y, {
|
|
372
372
|
key: 2,
|
|
373
373
|
element: d.question
|
|
374
374
|
}, null, 8, ["element"])),
|
|
@@ -379,21 +379,21 @@ const Ee = /* @__PURE__ */ C({
|
|
|
379
379
|
class: l(d.question.cssClasses.panel.content)
|
|
380
380
|
}, [
|
|
381
381
|
(t(!0), u(w, null, R(e.value, (P, L) => (t(), u(w, null, [
|
|
382
|
-
P.visible ? (t(),
|
|
382
|
+
P.visible ? (t(), q(g, {
|
|
383
383
|
key: d.question.id + "_" + L,
|
|
384
384
|
row: P,
|
|
385
385
|
survey: i.value,
|
|
386
386
|
css: d.css
|
|
387
387
|
}, null, 8, ["row", "survey", "css"])) : m("", !0)
|
|
388
388
|
], 64))), 256)),
|
|
389
|
-
|
|
389
|
+
b(k, {
|
|
390
390
|
model: d.question.getFooterToolbar()
|
|
391
391
|
}, null, 8, ["model"])
|
|
392
|
-
], 14,
|
|
393
|
-
], 10,
|
|
392
|
+
], 14, _e))
|
|
393
|
+
], 10, Qe)) : m("", !0);
|
|
394
394
|
};
|
|
395
395
|
}
|
|
396
|
-
}),
|
|
396
|
+
}), Ge = /* @__PURE__ */ C({
|
|
397
397
|
__name: "ElementHeader",
|
|
398
398
|
props: {
|
|
399
399
|
element: {},
|
|
@@ -404,12 +404,12 @@ const Ee = /* @__PURE__ */ C({
|
|
|
404
404
|
typeof o.element.clickTitleFunction == "function" && o.element.clickTitleFunction();
|
|
405
405
|
};
|
|
406
406
|
return (s, e) => {
|
|
407
|
-
const i =
|
|
407
|
+
const i = v("survey-element-title"), a = v("survey-string"), d = v("sv-action-bar");
|
|
408
408
|
return t(), u("div", {
|
|
409
409
|
class: l(s.element.cssHeader),
|
|
410
410
|
onClick: n
|
|
411
411
|
}, [
|
|
412
|
-
|
|
412
|
+
b(i, {
|
|
413
413
|
element: s.element,
|
|
414
414
|
css: s.css
|
|
415
415
|
}, null, 8, ["element", "css"]),
|
|
@@ -417,33 +417,33 @@ const Ee = /* @__PURE__ */ C({
|
|
|
417
417
|
key: 0,
|
|
418
418
|
class: l(s.element.cssDescription)
|
|
419
419
|
}, [
|
|
420
|
-
|
|
420
|
+
b(a, {
|
|
421
421
|
locString: s.element.locDescription
|
|
422
422
|
}, null, 8, ["locString"])
|
|
423
423
|
], 2)), [
|
|
424
424
|
[H, s.element.hasDescription]
|
|
425
425
|
]) : m("", !0),
|
|
426
|
-
s.element.additionalTitleToolbar ? (t(),
|
|
426
|
+
s.element.additionalTitleToolbar ? (t(), q(d, {
|
|
427
427
|
key: 1,
|
|
428
428
|
model: s.element.additionalTitleToolbar
|
|
429
429
|
}, null, 8, ["model"])) : m("", !0)
|
|
430
430
|
], 2);
|
|
431
431
|
};
|
|
432
432
|
}
|
|
433
|
-
}),
|
|
433
|
+
}), Xe = /* @__PURE__ */ C({
|
|
434
434
|
__name: "String",
|
|
435
435
|
props: {
|
|
436
436
|
locString: {}
|
|
437
437
|
},
|
|
438
438
|
setup(r) {
|
|
439
|
-
return (o, n) => (t(),
|
|
439
|
+
return (o, n) => (t(), q(N(o.locString.renderAs), {
|
|
440
440
|
locString: o.locString.renderAsData
|
|
441
441
|
}, null, 8, ["locString"]));
|
|
442
442
|
}
|
|
443
|
-
}),
|
|
443
|
+
}), Je = ["innerHTML"], Ye = {
|
|
444
444
|
key: 1,
|
|
445
445
|
class: "sv-string-viewer"
|
|
446
|
-
},
|
|
446
|
+
}, xe = /* @__PURE__ */ C({
|
|
447
447
|
__name: "StringViewer",
|
|
448
448
|
props: {
|
|
449
449
|
locString: {}
|
|
@@ -453,10 +453,10 @@ const Ee = /* @__PURE__ */ C({
|
|
|
453
453
|
return (s, e) => s.locString.hasHtml ? (t(), u("span", {
|
|
454
454
|
key: 0,
|
|
455
455
|
class: "sv-string-viewer",
|
|
456
|
-
innerHTML:
|
|
457
|
-
}, null, 8,
|
|
456
|
+
innerHTML: f(n)
|
|
457
|
+
}, null, 8, Je)) : (t(), u("span", Ye, I(f(n)), 1));
|
|
458
458
|
}
|
|
459
|
-
}),
|
|
459
|
+
}), es = ["innerHTML"], ss = /* @__PURE__ */ C({
|
|
460
460
|
__name: "StringEditor",
|
|
461
461
|
props: {
|
|
462
462
|
locString: {}
|
|
@@ -475,7 +475,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
475
475
|
innerHTML: e.locString.renderedHtml,
|
|
476
476
|
onBlur: n,
|
|
477
477
|
onClick: s
|
|
478
|
-
}, null, 40,
|
|
478
|
+
}, null, 40, es)) : (t(), u("span", {
|
|
479
479
|
key: 1,
|
|
480
480
|
class: "sv-string-editor",
|
|
481
481
|
contenteditable: "true",
|
|
@@ -483,7 +483,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
483
483
|
onClick: s
|
|
484
484
|
}, I(e.locString.renderedHtml), 33));
|
|
485
485
|
}
|
|
486
|
-
}),
|
|
486
|
+
}), ns = ["id"], os = /* @__PURE__ */ C({
|
|
487
487
|
__name: "Skeleton",
|
|
488
488
|
props: {
|
|
489
489
|
element: {}
|
|
@@ -493,9 +493,9 @@ const Ee = /* @__PURE__ */ C({
|
|
|
493
493
|
return B(() => o.element), (n, s) => (t(), u("div", {
|
|
494
494
|
class: "sv-skeleton-element",
|
|
495
495
|
id: n.element.id
|
|
496
|
-
}, null, 8,
|
|
496
|
+
}, null, 8, ns));
|
|
497
497
|
}
|
|
498
|
-
}),
|
|
498
|
+
}), ts = ["id"], is = ["value"], ls = /* @__PURE__ */ C({
|
|
499
499
|
__name: "Text",
|
|
500
500
|
props: {
|
|
501
501
|
question: {}
|
|
@@ -503,7 +503,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
503
503
|
setup(r) {
|
|
504
504
|
const o = r, n = S(null);
|
|
505
505
|
return M(o, n), (s, e) => {
|
|
506
|
-
const i =
|
|
506
|
+
const i = v("survey-text-input");
|
|
507
507
|
return s.question.isReadOnlyRenderDiv() ? (t(), u("div", {
|
|
508
508
|
key: 0,
|
|
509
509
|
ref_key: "root",
|
|
@@ -513,13 +513,13 @@ const Ee = /* @__PURE__ */ C({
|
|
|
513
513
|
ref_key: "root",
|
|
514
514
|
ref: n
|
|
515
515
|
}, [
|
|
516
|
-
|
|
516
|
+
b(i, { question: s.question }, null, 8, ["question"]),
|
|
517
517
|
p("datalist", {
|
|
518
518
|
id: s.question.dataListId
|
|
519
519
|
}, [
|
|
520
|
-
(t(!0), u(w, null, R(s.question.dataList, (a) => (t(), u("option", { value: a }, null, 8,
|
|
521
|
-
], 8,
|
|
522
|
-
], 512)) : (t(),
|
|
520
|
+
(t(!0), u(w, null, R(s.question.dataList, (a) => (t(), u("option", { value: a }, null, 8, is))), 256))
|
|
521
|
+
], 8, ts)
|
|
522
|
+
], 512)) : (t(), q(i, {
|
|
523
523
|
key: 2,
|
|
524
524
|
question: s.question,
|
|
525
525
|
ref_key: "root",
|
|
@@ -527,7 +527,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
527
527
|
}, null, 8, ["question"]));
|
|
528
528
|
};
|
|
529
529
|
}
|
|
530
|
-
}),
|
|
530
|
+
}), rs = ["disabled", "type", "maxlength", "min", "max", "step", "size", "id", "list", "placeholder", "autocomplete", "value", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], as = { key: 1 }, us = ["disabled", "type", "maxlength", "min", "max", "step", "size", "id", "list", "placeholder", "autocomplete", "value", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], ds = /* @__PURE__ */ C({
|
|
531
531
|
__name: "TextInput",
|
|
532
532
|
props: {
|
|
533
533
|
question: {}
|
|
@@ -537,8 +537,8 @@ const Ee = /* @__PURE__ */ C({
|
|
|
537
537
|
B(() => o.question);
|
|
538
538
|
const n = T(() => o.question.inputStyle);
|
|
539
539
|
return (s, e) => {
|
|
540
|
-
const i =
|
|
541
|
-
return s.question.getMaxLength() ? (t(), u("div",
|
|
540
|
+
const i = v("sv-character-counter");
|
|
541
|
+
return s.question.getMaxLength() ? (t(), u("div", as, [
|
|
542
542
|
p("input", {
|
|
543
543
|
disabled: s.question.isInputReadOnly,
|
|
544
544
|
class: l(s.question.getControlClass()),
|
|
@@ -564,8 +564,8 @@ const Ee = /* @__PURE__ */ C({
|
|
|
564
564
|
"aria-label": s.question.a11y_input_ariaLabel,
|
|
565
565
|
"aria-invalid": s.question.a11y_input_ariaInvalid,
|
|
566
566
|
"aria-describedby": s.question.a11y_input_ariaDescribedBy
|
|
567
|
-
}, null, 46,
|
|
568
|
-
|
|
567
|
+
}, null, 46, us),
|
|
568
|
+
b(i, {
|
|
569
569
|
counter: s.question.characterCounter,
|
|
570
570
|
remainingCharacterCounter: s.question.cssClasses.remainingCharacterCounter
|
|
571
571
|
}, null, 8, ["counter", "remainingCharacterCounter"])
|
|
@@ -596,13 +596,13 @@ const Ee = /* @__PURE__ */ C({
|
|
|
596
596
|
"aria-labelledby": s.question.a11y_input_ariaLabelledBy,
|
|
597
597
|
"aria-invalid": s.question.a11y_input_ariaInvalid,
|
|
598
598
|
"aria-describedby": s.question.a11y_input_ariaDescribedBy
|
|
599
|
-
}, null, 46,
|
|
599
|
+
}, null, 46, rs));
|
|
600
600
|
};
|
|
601
601
|
}
|
|
602
|
-
}),
|
|
602
|
+
}), ms = /* @__PURE__ */ p("legend", {
|
|
603
603
|
role: "presentation",
|
|
604
604
|
class: "sv-hidden"
|
|
605
|
-
}, null, -1),
|
|
605
|
+
}, null, -1), cs = /* @__PURE__ */ C({
|
|
606
606
|
__name: "Checkbox",
|
|
607
607
|
props: {
|
|
608
608
|
question: {}
|
|
@@ -610,20 +610,20 @@ const Ee = /* @__PURE__ */ C({
|
|
|
610
610
|
setup(r) {
|
|
611
611
|
const o = r, n = S(null);
|
|
612
612
|
return M(o, n), (s, e) => {
|
|
613
|
-
const i =
|
|
613
|
+
const i = v("survey-checkbox-item"), a = v("survey-other-choice");
|
|
614
614
|
return t(), u("fieldset", {
|
|
615
615
|
class: l(s.question.getSelectBaseRootCss()),
|
|
616
616
|
role: "presentation"
|
|
617
617
|
}, [
|
|
618
|
-
|
|
619
|
-
s.question.hasHeadItems ? (t(!0), u(w, { key: 0 }, R(s.question.headItems, (d, c) => (t(),
|
|
618
|
+
ms,
|
|
619
|
+
s.question.hasHeadItems ? (t(!0), u(w, { key: 0 }, R(s.question.headItems, (d, c) => (t(), q(i, {
|
|
620
620
|
key: d.value,
|
|
621
621
|
class: l(s.question.getItemClass(d)),
|
|
622
622
|
question: s.question,
|
|
623
623
|
item: d,
|
|
624
624
|
index: "" + c
|
|
625
625
|
}, null, 8, ["class", "question", "item", "index"]))), 128)) : m("", !0),
|
|
626
|
-
!s.question.hasColumns && !s.question.blockedRow ? (t(!0), u(w, { key: 1 }, R(s.question.bodyItems, (d, c) => (t(),
|
|
626
|
+
!s.question.hasColumns && !s.question.blockedRow ? (t(!0), u(w, { key: 1 }, R(s.question.bodyItems, (d, c) => (t(), q(i, {
|
|
627
627
|
key: d.value,
|
|
628
628
|
class: l(s.question.getItemClass(d)),
|
|
629
629
|
question: s.question,
|
|
@@ -634,7 +634,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
634
634
|
key: 2,
|
|
635
635
|
class: l(s.question.cssClasses.rootRow)
|
|
636
636
|
}, [
|
|
637
|
-
!s.question.hasColumns && s.question.blockedRow ? (t(!0), u(w, { key: 0 }, R(s.question.dataChoices, (d, c) => (t(),
|
|
637
|
+
!s.question.hasColumns && s.question.blockedRow ? (t(!0), u(w, { key: 0 }, R(s.question.dataChoices, (d, c) => (t(), q(i, {
|
|
638
638
|
key: d.value,
|
|
639
639
|
class: l(s.question.getItemClass(d)),
|
|
640
640
|
question: s.question,
|
|
@@ -651,30 +651,30 @@ const Ee = /* @__PURE__ */ C({
|
|
|
651
651
|
class: l(s.question.getColumnClass()),
|
|
652
652
|
role: "presentation"
|
|
653
653
|
}, [
|
|
654
|
-
(t(!0), u(w, null, R(d, (
|
|
655
|
-
key:
|
|
656
|
-
class: l(s.question.getItemClass(
|
|
654
|
+
(t(!0), u(w, null, R(d, (y, h) => (t(), q(i, {
|
|
655
|
+
key: y.value,
|
|
656
|
+
class: l(s.question.getItemClass(y)),
|
|
657
657
|
question: s.question,
|
|
658
|
-
item:
|
|
659
|
-
index: "" + c +
|
|
658
|
+
item: y,
|
|
659
|
+
index: "" + c + h
|
|
660
660
|
}, null, 8, ["class", "question", "item", "index"]))), 128))
|
|
661
661
|
], 2))), 128))
|
|
662
662
|
], 2)) : m("", !0),
|
|
663
|
-
s.question.hasFootItems ? (t(!0), u(w, { key: 4 }, R(s.question.footItems, (d, c) => (t(),
|
|
663
|
+
s.question.hasFootItems ? (t(!0), u(w, { key: 4 }, R(s.question.footItems, (d, c) => (t(), q(i, {
|
|
664
664
|
key: d.value,
|
|
665
665
|
class: l(s.question.getItemClass(d)),
|
|
666
666
|
question: s.question,
|
|
667
667
|
item: d,
|
|
668
668
|
index: "" + c
|
|
669
669
|
}, null, 8, ["class", "question", "item", "index"]))), 128)) : m("", !0),
|
|
670
|
-
s.question.renderedValue && s.question.isOtherSelected ? (t(),
|
|
670
|
+
s.question.renderedValue && s.question.isOtherSelected ? (t(), q(a, {
|
|
671
671
|
key: 5,
|
|
672
672
|
question: s.question
|
|
673
673
|
}, null, 8, ["question"])) : m("", !0)
|
|
674
674
|
], 2);
|
|
675
675
|
};
|
|
676
676
|
}
|
|
677
|
-
}),
|
|
677
|
+
}), ps = { role: "presentation" }, vs = ["aria-label"], qs = ["name", "value", "id", "disabled", "aria-describedby"], ys = ["name", "value", "id", "disabled", "aria-describedby"], gs = ["xlink:href"], Cs = /* @__PURE__ */ C({
|
|
678
678
|
__name: "CheckboxItem",
|
|
679
679
|
props: {
|
|
680
680
|
question: {},
|
|
@@ -693,8 +693,8 @@ const Ee = /* @__PURE__ */ C({
|
|
|
693
693
|
}
|
|
694
694
|
});
|
|
695
695
|
return B(() => o.item), (s, e) => {
|
|
696
|
-
const i =
|
|
697
|
-
return t(), u("div",
|
|
696
|
+
const i = v("survey-string");
|
|
697
|
+
return t(), u("div", ps, [
|
|
698
698
|
p("label", {
|
|
699
699
|
class: l(s.question.getLabelClass(s.item)),
|
|
700
700
|
"aria-label": s.question.getAriaItemLabel(s.item)
|
|
@@ -710,7 +710,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
710
710
|
disabled: !s.question.getItemEnabled(s.item),
|
|
711
711
|
"aria-describedby": s.question.ariaDescribedBy,
|
|
712
712
|
class: l(s.question.cssClasses.itemControl)
|
|
713
|
-
}, null, 10,
|
|
713
|
+
}, null, 10, qs)), [
|
|
714
714
|
[z, n.value]
|
|
715
715
|
]) : m("", !0),
|
|
716
716
|
s.item != s.question.selectAllItem ? D((t(), u("input", {
|
|
@@ -724,7 +724,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
724
724
|
disabled: !s.question.getItemEnabled(s.item),
|
|
725
725
|
"aria-describedby": s.question.ariaDescribedBy,
|
|
726
726
|
class: l(s.question.cssClasses.itemControl)
|
|
727
|
-
}, null, 10,
|
|
727
|
+
}, null, 10, ys)), [
|
|
728
728
|
[z, s.question.renderedValue]
|
|
729
729
|
]) : m("", !0),
|
|
730
730
|
s.question.cssClasses.materialDecorator ? (t(), u("span", {
|
|
@@ -737,22 +737,22 @@ const Ee = /* @__PURE__ */ C({
|
|
|
737
737
|
}, [
|
|
738
738
|
p("use", {
|
|
739
739
|
"xlink:href": s.question.itemSvgIcon
|
|
740
|
-
}, null, 8,
|
|
740
|
+
}, null, 8, gs)
|
|
741
741
|
], 2)) : m("", !0)
|
|
742
742
|
], 2)) : m("", !0),
|
|
743
743
|
s.hideLabel ? m("", !0) : (t(), u("span", {
|
|
744
744
|
key: 3,
|
|
745
745
|
class: l(s.question.cssClasses.controlLabel)
|
|
746
746
|
}, [
|
|
747
|
-
|
|
747
|
+
b(i, {
|
|
748
748
|
locString: s.item.locText
|
|
749
749
|
}, null, 8, ["locString"])
|
|
750
750
|
], 2))
|
|
751
|
-
], 10,
|
|
751
|
+
], 10, vs)
|
|
752
752
|
]);
|
|
753
753
|
};
|
|
754
754
|
}
|
|
755
|
-
}),
|
|
755
|
+
}), hs = { key: 5 }, bs = ["value"], ks = /* @__PURE__ */ C({
|
|
756
756
|
__name: "Radiogroup",
|
|
757
757
|
props: {
|
|
758
758
|
question: {}
|
|
@@ -760,14 +760,14 @@ const Ee = /* @__PURE__ */ C({
|
|
|
760
760
|
setup(r) {
|
|
761
761
|
const o = r, n = S(null);
|
|
762
762
|
return M(o, n), (s, e) => {
|
|
763
|
-
const i =
|
|
763
|
+
const i = v("survey-radiogroup-item"), a = v("survey-other-choice");
|
|
764
764
|
return t(), u("fieldset", {
|
|
765
765
|
role: "presentation",
|
|
766
766
|
class: l(s.question.getSelectBaseRootCss()),
|
|
767
767
|
ref_key: "root",
|
|
768
768
|
ref: n
|
|
769
769
|
}, [
|
|
770
|
-
!s.question.hasColumns && !s.question.blockedRow ? (t(!0), u(w, { key: 0 }, R(s.question.visibleChoices, (d, c) => (t(),
|
|
770
|
+
!s.question.hasColumns && !s.question.blockedRow ? (t(!0), u(w, { key: 0 }, R(s.question.visibleChoices, (d, c) => (t(), q(i, {
|
|
771
771
|
key: d.value,
|
|
772
772
|
class: l(s.question.getItemClass(d)),
|
|
773
773
|
question: s.question,
|
|
@@ -778,7 +778,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
778
778
|
key: 1,
|
|
779
779
|
class: l(s.question.cssClasses.rootRow)
|
|
780
780
|
}, [
|
|
781
|
-
!s.question.hasColumns && s.question.blockedRow ? (t(!0), u(w, { key: 0 }, R(s.question.dataChoices, (d, c) => (t(),
|
|
781
|
+
!s.question.hasColumns && s.question.blockedRow ? (t(!0), u(w, { key: 0 }, R(s.question.dataChoices, (d, c) => (t(), q(i, {
|
|
782
782
|
key: d.value,
|
|
783
783
|
class: l(s.question.getItemClass(d)),
|
|
784
784
|
question: s.question,
|
|
@@ -794,27 +794,27 @@ const Ee = /* @__PURE__ */ C({
|
|
|
794
794
|
class: l(s.question.getColumnClass()),
|
|
795
795
|
role: "presentation"
|
|
796
796
|
}, [
|
|
797
|
-
(t(!0), u(w, null, R(d, (
|
|
798
|
-
key:
|
|
799
|
-
class: l(s.question.getItemClass(
|
|
797
|
+
(t(!0), u(w, null, R(d, (y, h) => (t(), q(i, {
|
|
798
|
+
key: y.value,
|
|
799
|
+
class: l(s.question.getItemClass(y)),
|
|
800
800
|
question: s.question,
|
|
801
|
-
item:
|
|
802
|
-
index: "" + c +
|
|
801
|
+
item: y,
|
|
802
|
+
index: "" + c + h
|
|
803
803
|
}, null, 8, ["class", "question", "item", "index"]))), 128))
|
|
804
804
|
], 2))), 256)) : m("", !0)
|
|
805
805
|
], 2)) : m("", !0),
|
|
806
|
-
s.question.hasFootItems ? (t(!0), u(w, { key: 3 }, R(s.question.footItems, (d, c) => (t(),
|
|
806
|
+
s.question.hasFootItems ? (t(!0), u(w, { key: 3 }, R(s.question.footItems, (d, c) => (t(), q(i, {
|
|
807
807
|
key: d.value,
|
|
808
808
|
class: l(s.question.getItemClass(d)),
|
|
809
809
|
question: s.question,
|
|
810
810
|
item: d,
|
|
811
811
|
index: "" + c
|
|
812
812
|
}, null, 8, ["class", "question", "item", "index"]))), 128)) : m("", !0),
|
|
813
|
-
s.question.renderedValue && s.question.isOtherSelected ? (t(),
|
|
813
|
+
s.question.renderedValue && s.question.isOtherSelected ? (t(), q(a, {
|
|
814
814
|
key: 4,
|
|
815
815
|
question: s.question
|
|
816
816
|
}, null, 8, ["question"])) : m("", !0),
|
|
817
|
-
s.question.showClearButtonInContent ? (t(), u("div",
|
|
817
|
+
s.question.showClearButtonInContent ? (t(), u("div", hs, [
|
|
818
818
|
p("input", {
|
|
819
819
|
type: "button",
|
|
820
820
|
class: l(s.question.cssClasses.clearButton),
|
|
@@ -822,12 +822,12 @@ const Ee = /* @__PURE__ */ C({
|
|
|
822
822
|
s.question.clearValue();
|
|
823
823
|
}),
|
|
824
824
|
value: s.question.clearButtonCaption
|
|
825
|
-
}, null, 10,
|
|
825
|
+
}, null, 10, bs)
|
|
826
826
|
])) : m("", !0)
|
|
827
827
|
], 2);
|
|
828
828
|
};
|
|
829
829
|
}
|
|
830
|
-
}),
|
|
830
|
+
}), fs = { role: "presentation" }, Is = ["aria-label"], ws = ["name", "value", "id", "aria-describedby", "disabled"], Ss = ["xlink:href"], Ts = /* @__PURE__ */ C({
|
|
831
831
|
__name: "RadiogroupItem",
|
|
832
832
|
props: {
|
|
833
833
|
question: {},
|
|
@@ -838,8 +838,8 @@ const Ee = /* @__PURE__ */ C({
|
|
|
838
838
|
setup(r) {
|
|
839
839
|
const o = r, n = (e) => o.question.getLabelClass(e), s = (e) => o.question.getControlLabelClass(e);
|
|
840
840
|
return B(() => o.item), (e, i) => {
|
|
841
|
-
const a =
|
|
842
|
-
return t(), u("div",
|
|
841
|
+
const a = v("survey-string");
|
|
842
|
+
return t(), u("div", fs, [
|
|
843
843
|
p("label", {
|
|
844
844
|
onMousedown: i[1] || (i[1] = (d) => e.question.onMouseDown()),
|
|
845
845
|
class: l(n(e.item)),
|
|
@@ -854,8 +854,8 @@ const Ee = /* @__PURE__ */ C({
|
|
|
854
854
|
"onUpdate:modelValue": i[0] || (i[0] = (d) => e.question.renderedValue = d),
|
|
855
855
|
disabled: !e.question.getItemEnabled(e.item),
|
|
856
856
|
class: l(e.question.cssClasses.itemControl)
|
|
857
|
-
}, null, 10,
|
|
858
|
-
[
|
|
857
|
+
}, null, 10, ws), [
|
|
858
|
+
[J, e.question.renderedValue]
|
|
859
859
|
]),
|
|
860
860
|
e.question.cssClasses.materialDecorator ? (t(), u("span", {
|
|
861
861
|
key: 0,
|
|
@@ -867,22 +867,22 @@ const Ee = /* @__PURE__ */ C({
|
|
|
867
867
|
}, [
|
|
868
868
|
p("use", {
|
|
869
869
|
"xlink:href": e.question.itemSvgIcon
|
|
870
|
-
}, null, 8,
|
|
870
|
+
}, null, 8, Ss)
|
|
871
871
|
], 2)) : m("", !0)
|
|
872
872
|
], 2)) : m("", !0),
|
|
873
873
|
e.hideLabel ? m("", !0) : (t(), u("span", {
|
|
874
874
|
key: 1,
|
|
875
875
|
class: l(s(e.item))
|
|
876
876
|
}, [
|
|
877
|
-
|
|
877
|
+
b(a, {
|
|
878
878
|
locString: e.item.locText
|
|
879
879
|
}, null, 8, ["locString"])
|
|
880
880
|
], 2))
|
|
881
|
-
], 42,
|
|
881
|
+
], 42, Is)
|
|
882
882
|
]);
|
|
883
883
|
};
|
|
884
884
|
}
|
|
885
|
-
}),
|
|
885
|
+
}), Rs = ["src", "width", "height"], $s = ["title"], Bs = { key: 0 }, Ls = /* @__PURE__ */ C({
|
|
886
886
|
__name: "Signaturepad",
|
|
887
887
|
props: {
|
|
888
888
|
question: {}
|
|
@@ -890,7 +890,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
890
890
|
setup(r) {
|
|
891
891
|
const o = r, n = S(null);
|
|
892
892
|
return M(o, n), (s, e) => {
|
|
893
|
-
const i =
|
|
893
|
+
const i = v("sv-svg-icon");
|
|
894
894
|
return t(), u("div", {
|
|
895
895
|
class: l(s.question.cssClasses.root),
|
|
896
896
|
ref_key: "root",
|
|
@@ -912,7 +912,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
912
912
|
src: s.question.backgroundImage,
|
|
913
913
|
width: s.question.signatureWidth,
|
|
914
914
|
height: s.question.signatureHeight
|
|
915
|
-
}, null, 10,
|
|
915
|
+
}, null, 10, Rs)) : m("", !0),
|
|
916
916
|
p("canvas", {
|
|
917
917
|
tabindex: "0",
|
|
918
918
|
class: l(s.question.cssClasses.canvas)
|
|
@@ -930,18 +930,18 @@ const Ee = /* @__PURE__ */ C({
|
|
|
930
930
|
s.question.clearValue();
|
|
931
931
|
})
|
|
932
932
|
}, [
|
|
933
|
-
s.question.cssClasses.clearButtonIconId ? m("", !0) : (t(), u("span",
|
|
934
|
-
s.question.cssClasses.clearButtonIconId ? (t(),
|
|
933
|
+
s.question.cssClasses.clearButtonIconId ? m("", !0) : (t(), u("span", Bs, "\u2716")),
|
|
934
|
+
s.question.cssClasses.clearButtonIconId ? (t(), q(i, {
|
|
935
935
|
key: 1,
|
|
936
936
|
iconName: s.question.cssClasses.clearButtonIconId,
|
|
937
937
|
size: "auto"
|
|
938
938
|
}, null, 8, ["iconName"])) : m("", !0)
|
|
939
|
-
], 10,
|
|
939
|
+
], 10, $s)
|
|
940
940
|
], 2)) : m("", !0)
|
|
941
941
|
], 6);
|
|
942
942
|
};
|
|
943
943
|
}
|
|
944
|
-
}),
|
|
944
|
+
}), Ds = ["innerHTML"], Ps = /* @__PURE__ */ C({
|
|
945
945
|
__name: "Html",
|
|
946
946
|
props: {
|
|
947
947
|
question: {}
|
|
@@ -954,10 +954,10 @@ const Ee = /* @__PURE__ */ C({
|
|
|
954
954
|
ref_key: "root",
|
|
955
955
|
ref: n,
|
|
956
956
|
class: l(e.question.renderCssRoot),
|
|
957
|
-
innerHTML:
|
|
958
|
-
}, null, 10,
|
|
957
|
+
innerHTML: f(s)
|
|
958
|
+
}, null, 10, Ds));
|
|
959
959
|
}
|
|
960
|
-
}),
|
|
960
|
+
}), Ms = ["src", "alt", "width", "height"], Ns = ["src", "width", "height"], Hs = ["src", "width", "height"], As = /* @__PURE__ */ C({
|
|
961
961
|
__name: "Image",
|
|
962
962
|
props: {
|
|
963
963
|
question: {}
|
|
@@ -967,7 +967,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
967
967
|
M(o, n);
|
|
968
968
|
const s = W(() => o.question.locImageLink);
|
|
969
969
|
return (e, i) => {
|
|
970
|
-
const a =
|
|
970
|
+
const a = v("sv-svg-icon");
|
|
971
971
|
return t(), u("div", {
|
|
972
972
|
class: l(e.question.cssClasses.root),
|
|
973
973
|
ref_key: "root",
|
|
@@ -976,7 +976,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
976
976
|
e.question.renderedMode === "image" ? D((t(), u("img", {
|
|
977
977
|
key: 0,
|
|
978
978
|
class: l(e.question.getImageCss()),
|
|
979
|
-
src:
|
|
979
|
+
src: f(s),
|
|
980
980
|
alt: e.question.altText || e.question.title,
|
|
981
981
|
width: e.question.renderedWidth,
|
|
982
982
|
height: e.question.renderedHeight,
|
|
@@ -991,14 +991,14 @@ const Ee = /* @__PURE__ */ C({
|
|
|
991
991
|
onError: i[1] || (i[1] = (d) => {
|
|
992
992
|
e.question.onErrorHandler();
|
|
993
993
|
})
|
|
994
|
-
}, null, 46,
|
|
995
|
-
[H,
|
|
994
|
+
}, null, 46, Ms)), [
|
|
995
|
+
[H, f(s) && !e.question.contentNotLoaded]
|
|
996
996
|
]) : m("", !0),
|
|
997
997
|
e.question.renderedMode === "video" ? D((t(), u("video", {
|
|
998
998
|
key: 1,
|
|
999
999
|
controls: "",
|
|
1000
1000
|
class: l(e.question.getImageCss()),
|
|
1001
|
-
src:
|
|
1001
|
+
src: f(s),
|
|
1002
1002
|
width: e.question.renderedWidth,
|
|
1003
1003
|
height: e.question.renderedHeight,
|
|
1004
1004
|
style: $({
|
|
@@ -1012,13 +1012,13 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1012
1012
|
onError: i[3] || (i[3] = (d) => {
|
|
1013
1013
|
e.question.onErrorHandler();
|
|
1014
1014
|
})
|
|
1015
|
-
}, null, 46,
|
|
1016
|
-
[H,
|
|
1015
|
+
}, null, 46, Ns)), [
|
|
1016
|
+
[H, f(s) && !e.question.contentNotLoaded]
|
|
1017
1017
|
]) : m("", !0),
|
|
1018
1018
|
e.question.renderedMode === "youtube" ? (t(), u("iframe", {
|
|
1019
1019
|
key: 2,
|
|
1020
1020
|
class: l(e.question.getImageCss()),
|
|
1021
|
-
src:
|
|
1021
|
+
src: f(s),
|
|
1022
1022
|
width: e.question.renderedWidth,
|
|
1023
1023
|
height: e.question.renderedHeight,
|
|
1024
1024
|
style: $({
|
|
@@ -1026,12 +1026,12 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1026
1026
|
width: e.question.renderedStyleWidth,
|
|
1027
1027
|
height: e.question.renderedStyleHeight
|
|
1028
1028
|
})
|
|
1029
|
-
}, null, 14,
|
|
1030
|
-
!
|
|
1029
|
+
}, null, 14, Hs)) : m("", !0),
|
|
1030
|
+
!f(s) || e.question.contentNotLoaded ? (t(), u("div", {
|
|
1031
1031
|
key: 3,
|
|
1032
1032
|
class: l(e.question.cssClasses.noImage)
|
|
1033
1033
|
}, [
|
|
1034
|
-
|
|
1034
|
+
b(a, {
|
|
1035
1035
|
iconName: e.question.cssClasses.noImageSvgIconId,
|
|
1036
1036
|
size: 48
|
|
1037
1037
|
}, null, 8, ["iconName"])
|
|
@@ -1039,7 +1039,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1039
1039
|
], 2);
|
|
1040
1040
|
};
|
|
1041
1041
|
}
|
|
1042
|
-
}),
|
|
1042
|
+
}), Es = /* @__PURE__ */ C({
|
|
1043
1043
|
__name: "Expression",
|
|
1044
1044
|
props: {
|
|
1045
1045
|
question: {}
|
|
@@ -1052,7 +1052,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1052
1052
|
ref: n
|
|
1053
1053
|
}, I(s.question.formatedValue), 3));
|
|
1054
1054
|
}
|
|
1055
|
-
}),
|
|
1055
|
+
}), Vs = ["id", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "multiple", "title", "accept", "capture"], Os = ["id", "multiple", "placeholder"], Fs = ["for", "aria-label"], Ws = ["onClick", "href", "title", "download"], zs = ["src"], Us = ["onClick"], Ks = ["onClick", "href", "title", "download"], js = /* @__PURE__ */ C({
|
|
1056
1056
|
__name: "File",
|
|
1057
1057
|
props: {
|
|
1058
1058
|
question: {}
|
|
@@ -1062,7 +1062,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1062
1062
|
M(o, n);
|
|
1063
1063
|
const s = (e) => o.question.isPreviewVisible(e);
|
|
1064
1064
|
return (e, i) => {
|
|
1065
|
-
const a =
|
|
1065
|
+
const a = v("sv-loading-indicator"), d = v("sv-svg-icon"), c = v("sv-action-bar"), y = Y("key2click");
|
|
1066
1066
|
return t(), u("div", {
|
|
1067
1067
|
class: l(e.question.fileRootCss)
|
|
1068
1068
|
}, [
|
|
@@ -1072,7 +1072,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1072
1072
|
tabindex: "-1",
|
|
1073
1073
|
type: "file",
|
|
1074
1074
|
id: e.question.inputId,
|
|
1075
|
-
onChange: i[0] || (i[0] = (...
|
|
1075
|
+
onChange: i[0] || (i[0] = (...h) => e.question.doChange && e.question.doChange(...h)),
|
|
1076
1076
|
"aria-required": e.question.ariaRequired,
|
|
1077
1077
|
"aria-label": e.question.ariaLabel,
|
|
1078
1078
|
"aria-invalid": e.question.ariaInvalid,
|
|
@@ -1081,7 +1081,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1081
1081
|
title: e.question.inputTitle,
|
|
1082
1082
|
accept: e.question.acceptedTypes,
|
|
1083
1083
|
capture: e.question.renderCapture
|
|
1084
|
-
}, null, 42,
|
|
1084
|
+
}, null, 42, Vs)),
|
|
1085
1085
|
e.question.isReadOnly ? (t(), u("input", {
|
|
1086
1086
|
key: 1,
|
|
1087
1087
|
type: "file",
|
|
@@ -1091,147 +1091,150 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1091
1091
|
multiple: e.question.allowMultiple,
|
|
1092
1092
|
placeholder: e.question.title,
|
|
1093
1093
|
style: { color: "transparent" }
|
|
1094
|
-
}, null, 10,
|
|
1094
|
+
}, null, 10, Os)) : m("", !0),
|
|
1095
1095
|
p("div", {
|
|
1096
1096
|
class: l(e.question.cssClasses.dragArea),
|
|
1097
|
-
onDrop: i[3] || (i[3] = (...
|
|
1098
|
-
onDragover: i[4] || (i[4] = (...
|
|
1099
|
-
onDragleave: i[5] || (i[5] = (...
|
|
1100
|
-
onDragenter: i[6] || (i[6] = (...
|
|
1097
|
+
onDrop: i[3] || (i[3] = (...h) => e.question.onDrop && e.question.onDrop(...h)),
|
|
1098
|
+
onDragover: i[4] || (i[4] = (...h) => e.question.onDragOver && e.question.onDragOver(...h)),
|
|
1099
|
+
onDragleave: i[5] || (i[5] = (...h) => e.question.onDragLeave && e.question.onDragLeave(...h)),
|
|
1100
|
+
onDragenter: i[6] || (i[6] = (...h) => e.question.onDragEnter && e.question.onDragEnter(...h))
|
|
1101
1101
|
}, [
|
|
1102
1102
|
p("div", {
|
|
1103
1103
|
class: l(e.question.getFileDecoratorCss())
|
|
1104
1104
|
}, [
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
key: 0,
|
|
1113
|
-
role: "button",
|
|
1114
|
-
tabindex: "0",
|
|
1115
|
-
class: l(e.question.getChooseFileCss()),
|
|
1116
|
-
for: e.question.inputId,
|
|
1117
|
-
"aria-label": e.question.chooseButtonText
|
|
1105
|
+
e.question.showLoadingIndicator ? (t(), q(a, { key: 0 })) : m("", !0),
|
|
1106
|
+
e.question.showChooseButton ? (t(), u(w, { key: 1 }, [
|
|
1107
|
+
p("span", {
|
|
1108
|
+
class: l(e.question.cssClasses.dragAreaPlaceholder)
|
|
1109
|
+
}, I(e.question.renderedPlaceholder), 3),
|
|
1110
|
+
p("div", {
|
|
1111
|
+
class: l(e.question.cssClasses.wrapper)
|
|
1118
1112
|
}, [
|
|
1119
|
-
|
|
1120
|
-
e.question.cssClasses.chooseFileIconId ? (t(), y(a, {
|
|
1113
|
+
e.question.isReadOnly ? m("", !0) : D((t(), u("label", {
|
|
1121
1114
|
key: 0,
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
[
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1115
|
+
role: "button",
|
|
1116
|
+
tabindex: "0",
|
|
1117
|
+
class: l(e.question.getChooseFileCss()),
|
|
1118
|
+
for: e.question.inputId,
|
|
1119
|
+
"aria-label": e.question.chooseButtonText
|
|
1120
|
+
}, [
|
|
1121
|
+
p("span", null, I(e.question.chooseButtonText), 1),
|
|
1122
|
+
e.question.cssClasses.chooseFileIconId ? (t(), q(d, {
|
|
1123
|
+
key: 0,
|
|
1124
|
+
title: e.question.chooseButtonText,
|
|
1125
|
+
iconName: e.question.cssClasses.chooseFileIconId,
|
|
1126
|
+
size: "auto"
|
|
1127
|
+
}, null, 8, ["title", "iconName"])) : m("", !0)
|
|
1128
|
+
], 10, Fs)), [
|
|
1129
|
+
[y]
|
|
1130
|
+
]),
|
|
1131
|
+
e.question.isEmpty() ? (t(), u("span", {
|
|
1132
|
+
key: 1,
|
|
1133
|
+
class: l(e.question.cssClasses.noFileChosen)
|
|
1134
|
+
}, I(e.question.noFileChosenCaption), 3)) : m("", !0)
|
|
1135
|
+
], 2)
|
|
1136
|
+
], 64)) : m("", !0)
|
|
1134
1137
|
], 2),
|
|
1135
1138
|
e.question.showRemoveButton ? (t(), u("button", {
|
|
1136
1139
|
key: 0,
|
|
1137
1140
|
type: "button",
|
|
1138
1141
|
class: l(e.question.cssClasses.removeButton),
|
|
1139
|
-
onClick: i[1] || (i[1] = (...
|
|
1142
|
+
onClick: i[1] || (i[1] = (...h) => e.question.doClean && e.question.doClean(...h))
|
|
1140
1143
|
}, [
|
|
1141
1144
|
p("span", null, I(e.question.clearButtonCaption), 1),
|
|
1142
|
-
e.question.cssClasses.removeButtonIconId ? (t(),
|
|
1145
|
+
e.question.cssClasses.removeButtonIconId ? (t(), q(d, {
|
|
1143
1146
|
key: 0,
|
|
1144
1147
|
iconName: e.question.cssClasses.removeButtonIconId,
|
|
1145
1148
|
size: "auto",
|
|
1146
1149
|
title: e.question.clearButtonCaption
|
|
1147
1150
|
}, null, 8, ["iconName", "title"])) : m("", !0)
|
|
1148
1151
|
], 2)) : m("", !0),
|
|
1149
|
-
e.question.
|
|
1152
|
+
e.question.allowShowPreview ? (t(), u("div", {
|
|
1150
1153
|
key: 1,
|
|
1151
1154
|
class: l(e.question.cssClasses.fileList || void 0)
|
|
1152
1155
|
}, [
|
|
1153
|
-
(t(!0), u(w, null, R(e.question.previewValue, (
|
|
1154
|
-
key: e.question.inputId + "_" +
|
|
1156
|
+
(t(!0), u(w, null, R(e.question.previewValue, (h, g) => D((t(), u("span", {
|
|
1157
|
+
key: e.question.inputId + "_" + g,
|
|
1155
1158
|
class: l(e.question.cssClasses.preview)
|
|
1156
1159
|
}, [
|
|
1157
|
-
|
|
1160
|
+
h.name && e.question.cssClasses.fileSign ? (t(), u("div", {
|
|
1158
1161
|
key: 0,
|
|
1159
1162
|
class: l(e.question.cssClasses.fileSign)
|
|
1160
1163
|
}, [
|
|
1161
1164
|
p("a", {
|
|
1162
|
-
onClick: (
|
|
1163
|
-
href:
|
|
1164
|
-
title:
|
|
1165
|
-
download:
|
|
1165
|
+
onClick: (k) => e.question.doDownloadFile(k, h),
|
|
1166
|
+
href: h.content,
|
|
1167
|
+
title: h.name,
|
|
1168
|
+
download: h.name,
|
|
1166
1169
|
style: $({ width: e.question.imageWidth })
|
|
1167
|
-
}, I(
|
|
1170
|
+
}, I(h.name), 13, Ws)
|
|
1168
1171
|
], 2)) : m("", !0),
|
|
1169
1172
|
p("div", {
|
|
1170
1173
|
class: l(e.question.cssClasses.imageWrapper)
|
|
1171
1174
|
}, [
|
|
1172
|
-
e.question.canPreviewImage(
|
|
1175
|
+
e.question.canPreviewImage(h) ? (t(), u("img", {
|
|
1173
1176
|
key: 0,
|
|
1174
|
-
src:
|
|
1177
|
+
src: h.content,
|
|
1175
1178
|
style: $({
|
|
1176
1179
|
height: e.question.imageHeight,
|
|
1177
1180
|
width: e.question.imageWidth
|
|
1178
1181
|
}),
|
|
1179
1182
|
alt: "File preview"
|
|
1180
|
-
}, null, 12,
|
|
1181
|
-
e.question.defaultImage(
|
|
1183
|
+
}, null, 12, zs)) : m("", !0),
|
|
1184
|
+
e.question.defaultImage(h) ? (t(), q(d, {
|
|
1182
1185
|
key: 1,
|
|
1183
1186
|
iconName: e.question.cssClasses.defaultImageIconId,
|
|
1184
1187
|
class: l(e.question.cssClasses.defaultImage),
|
|
1185
1188
|
size: "auto"
|
|
1186
1189
|
}, null, 8, ["iconName", "class"])) : m("", !0),
|
|
1187
|
-
|
|
1190
|
+
h.name && !e.question.isReadOnly ? (t(), u("div", {
|
|
1188
1191
|
key: 2,
|
|
1189
1192
|
class: l(e.question.cssClasses.removeFileButton),
|
|
1190
|
-
onClick: (
|
|
1193
|
+
onClick: (k) => e.question.doRemoveFile(h)
|
|
1191
1194
|
}, [
|
|
1192
1195
|
p("span", {
|
|
1193
1196
|
class: l(e.question.cssClasses.removeFile)
|
|
1194
1197
|
}, I(e.question.removeFileCaption), 3),
|
|
1195
|
-
e.question.cssClasses.removeFileSvgIconId ? (t(),
|
|
1198
|
+
e.question.cssClasses.removeFileSvgIconId ? (t(), q(d, {
|
|
1196
1199
|
key: 0,
|
|
1197
1200
|
title: e.question.removeFileCaption,
|
|
1198
1201
|
class: l(e.question.cssClasses.removeFileSvg),
|
|
1199
1202
|
iconName: e.question.cssClasses.removeFileSvgIconId,
|
|
1200
1203
|
size: "auto"
|
|
1201
1204
|
}, null, 8, ["title", "class", "iconName"])) : m("", !0)
|
|
1202
|
-
], 10,
|
|
1205
|
+
], 10, Us)) : m("", !0)
|
|
1203
1206
|
], 2),
|
|
1204
|
-
|
|
1207
|
+
h.name && e.question.cssClasses.fileSignBottom ? (t(), u("div", {
|
|
1205
1208
|
key: 1,
|
|
1206
1209
|
class: l(e.question.cssClasses.fileSignBottom)
|
|
1207
1210
|
}, [
|
|
1208
1211
|
p("a", {
|
|
1209
|
-
onClick: (
|
|
1210
|
-
href:
|
|
1211
|
-
title:
|
|
1212
|
-
download:
|
|
1212
|
+
onClick: (k) => e.question.doDownloadFile(k, h),
|
|
1213
|
+
href: h.content,
|
|
1214
|
+
title: h.name,
|
|
1215
|
+
download: h.name,
|
|
1213
1216
|
style: $({ width: e.question.imageWidth })
|
|
1214
|
-
}, I(
|
|
1217
|
+
}, I(h.name), 13, Ks)
|
|
1215
1218
|
], 2)) : m("", !0)
|
|
1216
1219
|
], 2)), [
|
|
1217
|
-
[H,
|
|
1220
|
+
[H, h && s(g)]
|
|
1218
1221
|
])), 128))
|
|
1219
|
-
], 2)),
|
|
1222
|
+
], 2)) : m("", !0),
|
|
1220
1223
|
e.question.showRemoveButtonBottom ? (t(), u("button", {
|
|
1221
1224
|
key: 2,
|
|
1222
1225
|
type: "button",
|
|
1223
1226
|
class: l(e.question.showRemoveButtonBottom),
|
|
1224
|
-
onClick: i[2] || (i[2] = (...
|
|
1227
|
+
onClick: i[2] || (i[2] = (...h) => e.question.doClean && e.question.doClean(...h))
|
|
1225
1228
|
}, [
|
|
1226
1229
|
p("span", null, I(e.question.clearButtonCaption), 1),
|
|
1227
|
-
e.question.cssClasses.removeButtonIconId ? (t(),
|
|
1230
|
+
e.question.cssClasses.removeButtonIconId ? (t(), q(d, {
|
|
1228
1231
|
key: 0,
|
|
1229
1232
|
iconName: e.question.cssClasses.removeButtonIconId,
|
|
1230
1233
|
size: "auto",
|
|
1231
1234
|
title: e.question.clearButtonCaption
|
|
1232
1235
|
}, null, 8, ["iconName", "title"])) : m("", !0)
|
|
1233
1236
|
], 2)) : m("", !0),
|
|
1234
|
-
e.question.mobileFileNavigatorVisible ? (t(),
|
|
1237
|
+
e.question.mobileFileNavigatorVisible ? (t(), q(c, {
|
|
1235
1238
|
key: 3,
|
|
1236
1239
|
model: e.question.mobileFileNavigator
|
|
1237
1240
|
}, null, 8, ["model"])) : m("", !0)
|
|
@@ -1239,7 +1242,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1239
1242
|
], 2);
|
|
1240
1243
|
};
|
|
1241
1244
|
}
|
|
1242
|
-
}),
|
|
1245
|
+
}), Qs = ["aria-label"], _s = /* @__PURE__ */ C({
|
|
1243
1246
|
__name: "Imagepicker",
|
|
1244
1247
|
props: {
|
|
1245
1248
|
question: {}
|
|
@@ -1247,7 +1250,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1247
1250
|
setup(r) {
|
|
1248
1251
|
const o = r, n = S(null);
|
|
1249
1252
|
return M(o, n), (s, e) => {
|
|
1250
|
-
const i =
|
|
1253
|
+
const i = v("survey-imagepicker-item");
|
|
1251
1254
|
return t(), u("fieldset", {
|
|
1252
1255
|
class: l(s.question.getSelectBaseRootCss()),
|
|
1253
1256
|
ref_key: "root",
|
|
@@ -1256,8 +1259,8 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1256
1259
|
p("legend", {
|
|
1257
1260
|
role: "radio",
|
|
1258
1261
|
"aria-label": s.question.locTitle.renderedHtml
|
|
1259
|
-
}, null, 8,
|
|
1260
|
-
s.question.hasColumns ? m("", !0) : (t(!0), u(w, { key: 0 }, R(s.question.visibleChoices, (a) => (t(),
|
|
1262
|
+
}, null, 8, Qs),
|
|
1263
|
+
s.question.hasColumns ? m("", !0) : (t(!0), u(w, { key: 0 }, R(s.question.visibleChoices, (a) => (t(), q(i, {
|
|
1261
1264
|
key: a.value,
|
|
1262
1265
|
question: s.question,
|
|
1263
1266
|
item: a
|
|
@@ -1267,7 +1270,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1267
1270
|
key: d,
|
|
1268
1271
|
role: "presentation"
|
|
1269
1272
|
}, [
|
|
1270
|
-
(t(!0), u(w, null, R(a, (c) => (t(),
|
|
1273
|
+
(t(!0), u(w, null, R(a, (c) => (t(), q(i, {
|
|
1271
1274
|
key: c.value,
|
|
1272
1275
|
question: s.question,
|
|
1273
1276
|
item: c
|
|
@@ -1276,7 +1279,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1276
1279
|
], 2);
|
|
1277
1280
|
};
|
|
1278
1281
|
}
|
|
1279
|
-
}),
|
|
1282
|
+
}), Zs = ["name", "value", "id", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Gs = ["name", "value", "id", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Xs = ["src", "width", "height", "alt"], Js = ["src", "width", "height"], Ys = /* @__PURE__ */ C({
|
|
1280
1283
|
__name: "ImagepickerItem",
|
|
1281
1284
|
props: {
|
|
1282
1285
|
question: {},
|
|
@@ -1287,7 +1290,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1287
1290
|
B(() => o.item);
|
|
1288
1291
|
const s = W(() => o.item.locImageLink);
|
|
1289
1292
|
return (e, i) => {
|
|
1290
|
-
const a =
|
|
1293
|
+
const a = v("sv-svg-icon"), d = v("survey-string");
|
|
1291
1294
|
return t(), u("div", {
|
|
1292
1295
|
class: l(n(e.item))
|
|
1293
1296
|
}, [
|
|
@@ -1307,7 +1310,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1307
1310
|
"aria-invalid": e.question.ariaInvalid,
|
|
1308
1311
|
"aria-describedby": e.question.ariaDescribedBy,
|
|
1309
1312
|
class: l(e.question.cssClasses.itemControl)
|
|
1310
|
-
}, null, 10,
|
|
1313
|
+
}, null, 10, Zs)), [
|
|
1311
1314
|
[z, e.question.value]
|
|
1312
1315
|
]) : D((t(), u("input", {
|
|
1313
1316
|
key: 1,
|
|
@@ -1322,8 +1325,8 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1322
1325
|
"aria-invalid": e.question.ariaInvalid,
|
|
1323
1326
|
"aria-describedby": e.question.ariaDescribedBy,
|
|
1324
1327
|
class: l(e.question.cssClasses.itemControl)
|
|
1325
|
-
}, null, 10,
|
|
1326
|
-
[
|
|
1328
|
+
}, null, 10, Gs)), [
|
|
1329
|
+
[J, e.question.value]
|
|
1327
1330
|
]),
|
|
1328
1331
|
p("div", {
|
|
1329
1332
|
class: l(e.question.cssClasses.itemDecorator)
|
|
@@ -1335,17 +1338,17 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1335
1338
|
key: 0,
|
|
1336
1339
|
class: l(e.question.cssClasses.checkedItemDecorator)
|
|
1337
1340
|
}, [
|
|
1338
|
-
e.question.cssClasses.checkedItemSvgIconId ? (t(),
|
|
1341
|
+
e.question.cssClasses.checkedItemSvgIconId ? (t(), q(a, {
|
|
1339
1342
|
key: 0,
|
|
1340
1343
|
class: l(e.question.cssClasses.checkedItemSvgIcon),
|
|
1341
1344
|
size: "auto",
|
|
1342
1345
|
iconName: e.question.cssClasses.checkedItemSvgIconId
|
|
1343
1346
|
}, null, 8, ["class", "iconName"])) : m("", !0)
|
|
1344
1347
|
], 2)) : m("", !0),
|
|
1345
|
-
|
|
1348
|
+
f(s) && !e.item.contentNotLoaded && e.question.contentMode === "image" ? (t(), u("img", {
|
|
1346
1349
|
key: 1,
|
|
1347
1350
|
class: l(e.question.cssClasses.image),
|
|
1348
|
-
src:
|
|
1351
|
+
src: f(s),
|
|
1349
1352
|
width: e.question.renderedImageWidth,
|
|
1350
1353
|
height: e.question.renderedImageHeight,
|
|
1351
1354
|
style: $({ objectFit: e.question.imageFit }),
|
|
@@ -1356,12 +1359,12 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1356
1359
|
onError: i[3] || (i[3] = (c) => {
|
|
1357
1360
|
e.item.onErrorHandler();
|
|
1358
1361
|
})
|
|
1359
|
-
}, null, 46,
|
|
1360
|
-
|
|
1362
|
+
}, null, 46, Xs)) : m("", !0),
|
|
1363
|
+
f(s) && !e.item.contentNotLoaded && e.question.contentMode === "video" ? (t(), u("video", {
|
|
1361
1364
|
key: 2,
|
|
1362
1365
|
controls: "",
|
|
1363
1366
|
class: l(e.question.cssClasses.image),
|
|
1364
|
-
src:
|
|
1367
|
+
src: f(s),
|
|
1365
1368
|
width: e.question.renderedImageWidth,
|
|
1366
1369
|
height: e.question.renderedImageHeight,
|
|
1367
1370
|
style: $({ objectFit: e.question.imageFit }),
|
|
@@ -1371,8 +1374,8 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1371
1374
|
onError: i[5] || (i[5] = (c) => {
|
|
1372
1375
|
e.item.onErrorHandler();
|
|
1373
1376
|
})
|
|
1374
|
-
}, null, 46,
|
|
1375
|
-
!
|
|
1377
|
+
}, null, 46, Js)) : m("", !0),
|
|
1378
|
+
!f(s) || e.item.contentNotLoaded ? (t(), u("div", {
|
|
1376
1379
|
key: 3,
|
|
1377
1380
|
class: l(e.question.cssClasses.itemNoImage),
|
|
1378
1381
|
style: $({
|
|
@@ -1381,7 +1384,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1381
1384
|
objectFit: e.question.imageFit
|
|
1382
1385
|
})
|
|
1383
1386
|
}, [
|
|
1384
|
-
|
|
1387
|
+
b(a, {
|
|
1385
1388
|
class: l(e.question.cssClasses.itemNoImageSvgIcon),
|
|
1386
1389
|
iconName: e.question.cssClasses.itemNoImageSvgIconId,
|
|
1387
1390
|
size: 48
|
|
@@ -1392,7 +1395,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1392
1395
|
key: 0,
|
|
1393
1396
|
class: l(e.question.cssClasses.itemText)
|
|
1394
1397
|
}, [
|
|
1395
|
-
|
|
1398
|
+
b(d, {
|
|
1396
1399
|
locString: e.item.locText
|
|
1397
1400
|
}, null, 8, ["locString"])
|
|
1398
1401
|
], 2)) : m("", !0)
|
|
@@ -1401,7 +1404,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1401
1404
|
], 2);
|
|
1402
1405
|
};
|
|
1403
1406
|
}
|
|
1404
|
-
}),
|
|
1407
|
+
}), xs = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], en = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], sn = /* @__PURE__ */ C({
|
|
1405
1408
|
__name: "Comment",
|
|
1406
1409
|
props: {
|
|
1407
1410
|
question: {},
|
|
@@ -1415,7 +1418,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1415
1418
|
i.value = e.target.value;
|
|
1416
1419
|
};
|
|
1417
1420
|
return (e, i) => {
|
|
1418
|
-
const a =
|
|
1421
|
+
const a = v("sv-character-counter");
|
|
1419
1422
|
return !e.question.isReadOnlyRenderDiv() && !e.question.getMaxLength() ? (t(), u("textarea", {
|
|
1420
1423
|
key: 0,
|
|
1421
1424
|
ref_key: "root",
|
|
@@ -1442,7 +1445,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1442
1445
|
"aria-invalid": e.question.a11y_input_ariaInvalid,
|
|
1443
1446
|
"aria-describedby": e.question.a11y_input_ariaDescribedBy,
|
|
1444
1447
|
style: $({ resize: e.question.resizeStyle })
|
|
1445
|
-
}, null, 46,
|
|
1448
|
+
}, null, 46, xs)) : !e.question.isReadOnlyRenderDiv() && e.question.getMaxLength() ? (t(), u("div", {
|
|
1446
1449
|
key: 1,
|
|
1447
1450
|
ref_key: "root",
|
|
1448
1451
|
ref: n
|
|
@@ -1470,8 +1473,8 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1470
1473
|
"aria-invalid": e.question.a11y_input_ariaInvalid,
|
|
1471
1474
|
"aria-describedby": e.question.a11y_input_ariaDescribedBy,
|
|
1472
1475
|
style: $({ resize: e.question.resizeStyle })
|
|
1473
|
-
}, null, 46,
|
|
1474
|
-
|
|
1476
|
+
}, null, 46, en),
|
|
1477
|
+
b(a, {
|
|
1475
1478
|
counter: e.question.characterCounter,
|
|
1476
1479
|
remainingCharacterCounter: e.question.cssClasses.remainingCharacterCounter
|
|
1477
1480
|
}, null, 8, ["counter", "remainingCharacterCounter"])
|
|
@@ -1482,7 +1485,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1482
1485
|
}, I(e.question.value), 513));
|
|
1483
1486
|
};
|
|
1484
1487
|
}
|
|
1485
|
-
}),
|
|
1488
|
+
}), nn = /* @__PURE__ */ C({
|
|
1486
1489
|
__name: "Dropdown",
|
|
1487
1490
|
props: {
|
|
1488
1491
|
question: {}
|
|
@@ -1490,30 +1493,30 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1490
1493
|
setup(r) {
|
|
1491
1494
|
const o = r, n = S(null);
|
|
1492
1495
|
return M(o, n), (s, e) => {
|
|
1493
|
-
const i =
|
|
1496
|
+
const i = v("sv-dropdown"), a = v("survey-other-choice");
|
|
1494
1497
|
return t(), u("div", {
|
|
1495
1498
|
class: l(s.question.renderCssRoot),
|
|
1496
1499
|
ref_key: "root",
|
|
1497
1500
|
ref: n
|
|
1498
1501
|
}, [
|
|
1499
|
-
|
|
1500
|
-
s.question.isOtherSelected ? (t(),
|
|
1502
|
+
b(i, { question: s.question }, null, 8, ["question"]),
|
|
1503
|
+
s.question.isOtherSelected ? (t(), q(a, {
|
|
1501
1504
|
key: 0,
|
|
1502
1505
|
question: s.question
|
|
1503
1506
|
}, null, 8, ["question"])) : m("", !0)
|
|
1504
1507
|
], 2);
|
|
1505
1508
|
};
|
|
1506
1509
|
}
|
|
1507
|
-
}),
|
|
1510
|
+
}), on = ["id", "autocomplete", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "required"], tn = {
|
|
1508
1511
|
key: 0,
|
|
1509
1512
|
value: ""
|
|
1510
|
-
},
|
|
1511
|
-
|
|
1513
|
+
}, ln = ["id"];
|
|
1514
|
+
G.Instance.registerRenderer(
|
|
1512
1515
|
"dropdown",
|
|
1513
1516
|
"select",
|
|
1514
1517
|
"sv-dropdown-select"
|
|
1515
1518
|
);
|
|
1516
|
-
const
|
|
1519
|
+
const rn = /* @__PURE__ */ C({
|
|
1517
1520
|
__name: "DropdownSelect",
|
|
1518
1521
|
props: {
|
|
1519
1522
|
question: {}
|
|
@@ -1536,7 +1539,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1536
1539
|
}
|
|
1537
1540
|
});
|
|
1538
1541
|
return (a, d) => {
|
|
1539
|
-
const c =
|
|
1542
|
+
const c = v("sv-dropdown-option-item"), y = v("sv-svg-icon"), h = v("survey-other-choice");
|
|
1540
1543
|
return t(), u("div", {
|
|
1541
1544
|
class: l(a.question.renderCssRoot)
|
|
1542
1545
|
}, [
|
|
@@ -1548,7 +1551,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1548
1551
|
disabled: "",
|
|
1549
1552
|
id: a.question.inputId,
|
|
1550
1553
|
class: l(a.question.getControlClass())
|
|
1551
|
-
}, I(a.question.readOnlyText), 11,
|
|
1554
|
+
}, I(a.question.readOnlyText), 11, ln)) : D((t(), u("select", {
|
|
1552
1555
|
key: 0,
|
|
1553
1556
|
id: a.question.inputId,
|
|
1554
1557
|
"onUpdate:modelValue": d[0] || (d[0] = (g) => i.value = g),
|
|
@@ -1562,33 +1565,33 @@ const tn = /* @__PURE__ */ C({
|
|
|
1562
1565
|
"aria-describedby": a.question.ariaDescribedBy,
|
|
1563
1566
|
required: a.question.isRequired
|
|
1564
1567
|
}, [
|
|
1565
|
-
a.question.allowClear ? (t(), u("option",
|
|
1566
|
-
(t(!0), u(w, null, R(a.question.visibleChoices, (g) => (t(),
|
|
1568
|
+
a.question.allowClear ? (t(), u("option", tn, I(a.question.placeholder), 1)) : m("", !0),
|
|
1569
|
+
(t(!0), u(w, null, R(a.question.visibleChoices, (g) => (t(), q(c, {
|
|
1567
1570
|
item: g,
|
|
1568
1571
|
key: g.id
|
|
1569
1572
|
}, null, 8, ["item"]))), 128))
|
|
1570
|
-
], 42,
|
|
1571
|
-
[
|
|
1573
|
+
], 42, on)), [
|
|
1574
|
+
[ve, i.value]
|
|
1572
1575
|
]),
|
|
1573
1576
|
a.question.cssClasses.chevronButtonIconId ? (t(), u("div", {
|
|
1574
1577
|
key: 2,
|
|
1575
1578
|
class: l(a.question.cssClasses.chevronButton)
|
|
1576
1579
|
}, [
|
|
1577
|
-
|
|
1580
|
+
b(y, {
|
|
1578
1581
|
class: l(a.question.cssClasses.chevronButtonSvg),
|
|
1579
1582
|
iconName: a.question.cssClasses.chevronButtonIconId,
|
|
1580
1583
|
size: "auto"
|
|
1581
1584
|
}, null, 8, ["class", "iconName"])
|
|
1582
1585
|
], 2)) : m("", !0)
|
|
1583
1586
|
], 2),
|
|
1584
|
-
a.question.isOtherSelected ? (t(),
|
|
1587
|
+
a.question.isOtherSelected ? (t(), q(h, {
|
|
1585
1588
|
key: 0,
|
|
1586
1589
|
question: a.question
|
|
1587
1590
|
}, null, 8, ["question"])) : m("", !0)
|
|
1588
1591
|
], 2);
|
|
1589
1592
|
};
|
|
1590
1593
|
}
|
|
1591
|
-
}),
|
|
1594
|
+
}), an = ["value", "disabled"], un = /* @__PURE__ */ C({
|
|
1592
1595
|
__name: "OptionItem",
|
|
1593
1596
|
props: {
|
|
1594
1597
|
item: {}
|
|
@@ -1598,9 +1601,9 @@ const tn = /* @__PURE__ */ C({
|
|
|
1598
1601
|
return B(() => o.item), (s, e) => (t(), u("option", {
|
|
1599
1602
|
value: s.item.value,
|
|
1600
1603
|
disabled: !s.item.isEnabled
|
|
1601
|
-
}, I(
|
|
1604
|
+
}, I(f(n)), 9, an));
|
|
1602
1605
|
}
|
|
1603
|
-
}),
|
|
1606
|
+
}), dn = ["id", "disabled", "tabindex", "role", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], mn = { style: { visibility: "hidden" } }, cn = ["disabled", "inputmode", "role", "id", "tabindex", "readonly", "aria-label", "aria-expanded", "aria-controls", "aria-activedescendant", "placeholder"], pn = ["id"], vn = /* @__PURE__ */ C({
|
|
1604
1607
|
__name: "Dropdown",
|
|
1605
1608
|
props: {
|
|
1606
1609
|
question: {}
|
|
@@ -1608,7 +1611,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1608
1611
|
setup(r) {
|
|
1609
1612
|
const o = r, n = S(null), s = T(() => {
|
|
1610
1613
|
const g = o.question;
|
|
1611
|
-
return g.dropdownListModel || (g.dropdownListModel = new
|
|
1614
|
+
return g.dropdownListModel || (g.dropdownListModel = new Ie(g)), o.question.dropdownListModel;
|
|
1612
1615
|
}), e = (g) => {
|
|
1613
1616
|
var k;
|
|
1614
1617
|
(k = s.value) == null || k.onClick(g);
|
|
@@ -1621,19 +1624,19 @@ const tn = /* @__PURE__ */ C({
|
|
|
1621
1624
|
}, d = () => {
|
|
1622
1625
|
if (n.value) {
|
|
1623
1626
|
const g = n.value, k = s.value.inputStringRendered;
|
|
1624
|
-
|
|
1627
|
+
we.isTwoValueEquals(k, g.value, !1, !0, !1) || (g.value = s.value.inputStringRendered);
|
|
1625
1628
|
}
|
|
1626
1629
|
}, c = (g) => {
|
|
1627
1630
|
var k;
|
|
1628
1631
|
(k = s.value) == null || k.onBlur(g), d();
|
|
1629
|
-
},
|
|
1632
|
+
}, y = (g) => {
|
|
1630
1633
|
var k;
|
|
1631
1634
|
(k = s.value) == null || k.onFocus(g);
|
|
1632
|
-
},
|
|
1635
|
+
}, h = (g) => {
|
|
1633
1636
|
s.value.inputStringRendered = g.target.value;
|
|
1634
1637
|
};
|
|
1635
|
-
return B(() => s.value),
|
|
1636
|
-
const P =
|
|
1638
|
+
return B(() => s.value), Z(d), A(d), (g, k) => {
|
|
1639
|
+
const P = v("survey-string"), L = v("sv-svg-icon"), E = v("sv-popup");
|
|
1637
1640
|
return t(), u("div", {
|
|
1638
1641
|
class: l(g.question.cssClasses.selectWrapper),
|
|
1639
1642
|
onClick: e
|
|
@@ -1665,7 +1668,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1665
1668
|
p("div", {
|
|
1666
1669
|
class: l(g.question.cssClasses.controlValue)
|
|
1667
1670
|
}, [
|
|
1668
|
-
g.question.showSelectedItemLocText ? (t(),
|
|
1671
|
+
g.question.showSelectedItemLocText ? (t(), q(P, {
|
|
1669
1672
|
key: 0,
|
|
1670
1673
|
locString: g.question.selectedItemLocText
|
|
1671
1674
|
}, null, 8, ["locString"])) : m("", !0),
|
|
@@ -1673,10 +1676,10 @@ const tn = /* @__PURE__ */ C({
|
|
|
1673
1676
|
key: 1,
|
|
1674
1677
|
class: l(g.question.cssClasses.hintSuffix)
|
|
1675
1678
|
}, [
|
|
1676
|
-
p("span",
|
|
1679
|
+
p("span", mn, I(s.value.inputStringRendered), 1),
|
|
1677
1680
|
p("span", null, I(s.value.hintStringSuffix), 1)
|
|
1678
1681
|
], 2)) : m("", !0),
|
|
1679
|
-
g.question.showInputFieldComponent ? (t(),
|
|
1682
|
+
g.question.showInputFieldComponent ? (t(), q(N(g.question.inputFieldComponentName), {
|
|
1680
1683
|
key: 2,
|
|
1681
1684
|
item: s.value.getSelectedAction(),
|
|
1682
1685
|
question: g.question
|
|
@@ -1698,17 +1701,17 @@ const tn = /* @__PURE__ */ C({
|
|
|
1698
1701
|
"aria-controls": s.value.listElementId,
|
|
1699
1702
|
"aria-activedescendant": s.value.ariaActivedescendant,
|
|
1700
1703
|
placeholder: s.value.placeholderRendered,
|
|
1701
|
-
onInput:
|
|
1704
|
+
onInput: h,
|
|
1702
1705
|
onBlur: c,
|
|
1703
|
-
onFocus:
|
|
1704
|
-
}, null, 42,
|
|
1706
|
+
onFocus: y
|
|
1707
|
+
}, null, 42, cn)
|
|
1705
1708
|
], 2),
|
|
1706
1709
|
g.question.allowClear && g.question.cssClasses.cleanButtonIconId ? D((t(), u("div", {
|
|
1707
1710
|
key: 1,
|
|
1708
1711
|
class: l(g.question.cssClasses.cleanButton),
|
|
1709
1712
|
onClick: i
|
|
1710
1713
|
}, [
|
|
1711
|
-
|
|
1714
|
+
b(L, {
|
|
1712
1715
|
class: l(g.question.cssClasses.cleanButtonSvg),
|
|
1713
1716
|
iconName: g.question.cssClasses.cleanButtonIconId,
|
|
1714
1717
|
title: g.question.clearCaption,
|
|
@@ -1717,19 +1720,19 @@ const tn = /* @__PURE__ */ C({
|
|
|
1717
1720
|
], 2)), [
|
|
1718
1721
|
[H, !g.question.isEmpty()]
|
|
1719
1722
|
]) : m("", !0)
|
|
1720
|
-
], 42,
|
|
1723
|
+
], 42, dn)),
|
|
1721
1724
|
g.question.isReadOnly ? (t(), u("div", {
|
|
1722
1725
|
key: 2,
|
|
1723
1726
|
disabled: "",
|
|
1724
1727
|
id: g.question.inputId,
|
|
1725
1728
|
class: l(g.question.getControlClass())
|
|
1726
1729
|
}, [
|
|
1727
|
-
g.question.selectedItemLocText ? (t(),
|
|
1730
|
+
g.question.selectedItemLocText ? (t(), q(P, {
|
|
1728
1731
|
key: 0,
|
|
1729
1732
|
locString: g.question.selectedItemLocText
|
|
1730
1733
|
}, null, 8, ["locString"])) : m("", !0),
|
|
1731
1734
|
p("div", null, I(g.question.readOnlyText), 1)
|
|
1732
|
-
], 10,
|
|
1735
|
+
], 10, pn)) : (t(), q(E, {
|
|
1733
1736
|
key: 1,
|
|
1734
1737
|
model: g.question.dropdownListModel.popupModel
|
|
1735
1738
|
}, null, 8, ["model"])),
|
|
@@ -1737,7 +1740,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1737
1740
|
key: 3,
|
|
1738
1741
|
class: l(g.question.cssClasses.chevronButton)
|
|
1739
1742
|
}, [
|
|
1740
|
-
|
|
1743
|
+
b(L, {
|
|
1741
1744
|
class: l(g.question.cssClasses.chevronButtonSvg),
|
|
1742
1745
|
iconName: g.question.cssClasses.chevronButtonIconId,
|
|
1743
1746
|
size: "auto"
|
|
@@ -1746,7 +1749,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1746
1749
|
], 2);
|
|
1747
1750
|
};
|
|
1748
1751
|
}
|
|
1749
|
-
}),
|
|
1752
|
+
}), qn = /* @__PURE__ */ C({
|
|
1750
1753
|
__name: "Tagbox",
|
|
1751
1754
|
props: {
|
|
1752
1755
|
question: {}
|
|
@@ -1754,21 +1757,21 @@ const tn = /* @__PURE__ */ C({
|
|
|
1754
1757
|
setup(r) {
|
|
1755
1758
|
const o = r, n = S(null);
|
|
1756
1759
|
return M(o, n), (s, e) => {
|
|
1757
|
-
const i =
|
|
1760
|
+
const i = v("sv-tagbox"), a = v("survey-other-choice");
|
|
1758
1761
|
return t(), u("div", {
|
|
1759
1762
|
class: l(s.question.renderCssRoot),
|
|
1760
1763
|
ref_key: "root",
|
|
1761
1764
|
ref: n
|
|
1762
1765
|
}, [
|
|
1763
|
-
|
|
1764
|
-
s.question.isOtherSelected ? (t(),
|
|
1766
|
+
b(i, { question: s.question }, null, 8, ["question"]),
|
|
1767
|
+
s.question.isOtherSelected ? (t(), q(a, {
|
|
1765
1768
|
key: 0,
|
|
1766
1769
|
question: s.question
|
|
1767
1770
|
}, null, 8, ["question"])) : m("", !0)
|
|
1768
1771
|
], 2);
|
|
1769
1772
|
};
|
|
1770
1773
|
}
|
|
1771
|
-
}),
|
|
1774
|
+
}), yn = ["id", "tabindex", "disabled", "role", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], gn = ["id"], Cn = /* @__PURE__ */ C({
|
|
1772
1775
|
__name: "Tagbox",
|
|
1773
1776
|
props: {
|
|
1774
1777
|
question: {}
|
|
@@ -1776,7 +1779,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1776
1779
|
setup(r) {
|
|
1777
1780
|
const o = r, n = T(() => {
|
|
1778
1781
|
const d = o.question;
|
|
1779
|
-
return d.dropdownListModel || (d.dropdownListModel = new
|
|
1782
|
+
return d.dropdownListModel || (d.dropdownListModel = new Se(d)), o.question.dropdownListModel;
|
|
1780
1783
|
}), s = (d) => {
|
|
1781
1784
|
var c;
|
|
1782
1785
|
(c = n.value) == null || c.onClick(d);
|
|
@@ -1791,7 +1794,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1791
1794
|
(c = n.value) == null || c.onBlur(d);
|
|
1792
1795
|
};
|
|
1793
1796
|
return B(() => n.value), (d, c) => {
|
|
1794
|
-
const
|
|
1797
|
+
const y = v("sv-tagbox-item"), h = v("sv-tagbox-filter"), g = v("sv-svg-icon"), k = v("sv-popup");
|
|
1795
1798
|
return t(), u("div", {
|
|
1796
1799
|
class: l(d.question.cssClasses.selectWrapper),
|
|
1797
1800
|
onClick: s
|
|
@@ -1817,12 +1820,12 @@ const tn = /* @__PURE__ */ C({
|
|
|
1817
1820
|
p("div", {
|
|
1818
1821
|
class: l(d.question.cssClasses.controlValue)
|
|
1819
1822
|
}, [
|
|
1820
|
-
(t(!0), u(w, null, R(d.question.selectedChoices, (P, L) => (t(), y
|
|
1823
|
+
(t(!0), u(w, null, R(d.question.selectedChoices, (P, L) => (t(), q(y, {
|
|
1821
1824
|
item: P,
|
|
1822
1825
|
question: d.question,
|
|
1823
1826
|
key: "item" + L
|
|
1824
1827
|
}, null, 8, ["item", "question"]))), 128)),
|
|
1825
|
-
h
|
|
1828
|
+
b(h, {
|
|
1826
1829
|
model: n.value,
|
|
1827
1830
|
question: d.question
|
|
1828
1831
|
}, null, 8, ["model", "question"])
|
|
@@ -1832,7 +1835,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1832
1835
|
class: l(d.question.cssClasses.cleanButton),
|
|
1833
1836
|
onClick: e
|
|
1834
1837
|
}, [
|
|
1835
|
-
|
|
1838
|
+
b(g, {
|
|
1836
1839
|
class: l(d.question.cssClasses.cleanButtonSvg),
|
|
1837
1840
|
iconName: d.question.cssClasses.cleanButtonIconId,
|
|
1838
1841
|
title: d.question.clearCaption,
|
|
@@ -1841,7 +1844,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1841
1844
|
], 2)), [
|
|
1842
1845
|
[H, !d.question.isEmpty()]
|
|
1843
1846
|
]) : m("", !0)
|
|
1844
|
-
], 42,
|
|
1847
|
+
], 42, yn)),
|
|
1845
1848
|
d.question.isReadOnly ? (t(), u("div", {
|
|
1846
1849
|
key: 2,
|
|
1847
1850
|
disabled: "",
|
|
@@ -1849,7 +1852,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1849
1852
|
class: l(d.question.getControlClass())
|
|
1850
1853
|
}, [
|
|
1851
1854
|
p("div", null, I(d.question.readOnlyText), 1)
|
|
1852
|
-
], 10,
|
|
1855
|
+
], 10, gn)) : (t(), q(k, {
|
|
1853
1856
|
key: 1,
|
|
1854
1857
|
model: n.value.popupModel
|
|
1855
1858
|
}, null, 8, ["model"])),
|
|
@@ -1857,7 +1860,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1857
1860
|
key: 3,
|
|
1858
1861
|
class: l(d.question.cssClasses.chevronButton)
|
|
1859
1862
|
}, [
|
|
1860
|
-
|
|
1863
|
+
b(g, {
|
|
1861
1864
|
class: l(d.question.cssClasses.chevronButtonSvg),
|
|
1862
1865
|
iconName: d.question.cssClasses.chevronButtonIconId,
|
|
1863
1866
|
size: "auto"
|
|
@@ -1866,7 +1869,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1866
1869
|
], 2);
|
|
1867
1870
|
};
|
|
1868
1871
|
}
|
|
1869
|
-
}),
|
|
1872
|
+
}), hn = { style: { visibility: "hidden" } }, bn = ["placeholder", "disabled", "inputmode", "role", "aria-label", "aria-expanded", "aria-controls", "aria-activedescendant", "id", "readonly", "size"], kn = /* @__PURE__ */ C({
|
|
1870
1873
|
__name: "TagboxFilter",
|
|
1871
1874
|
props: {
|
|
1872
1875
|
question: {},
|
|
@@ -1884,7 +1887,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1884
1887
|
o.model.onFocus(a);
|
|
1885
1888
|
};
|
|
1886
1889
|
return B(() => o.model), (a, d) => {
|
|
1887
|
-
const c =
|
|
1890
|
+
const c = v("survey-string");
|
|
1888
1891
|
return t(), u("div", {
|
|
1889
1892
|
class: l(a.question.cssClasses.hint)
|
|
1890
1893
|
}, [
|
|
@@ -1897,7 +1900,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1897
1900
|
p("div", {
|
|
1898
1901
|
class: l(a.question.cssClasses.hintSuffixWrapper)
|
|
1899
1902
|
}, [
|
|
1900
|
-
a.question.showSelectedItemLocText ? (t(),
|
|
1903
|
+
a.question.showSelectedItemLocText ? (t(), q(c, {
|
|
1901
1904
|
key: 0,
|
|
1902
1905
|
locString: a.question.selectedItemLocText
|
|
1903
1906
|
}, null, 8, ["locString"])) : m("", !0),
|
|
@@ -1905,13 +1908,13 @@ const tn = /* @__PURE__ */ C({
|
|
|
1905
1908
|
key: 1,
|
|
1906
1909
|
class: l(a.question.cssClasses.hintSuffix)
|
|
1907
1910
|
}, [
|
|
1908
|
-
p("span",
|
|
1911
|
+
p("span", hn, I(a.model.inputStringRendered), 1),
|
|
1909
1912
|
p("span", null, I(a.model.hintStringSuffix), 1)
|
|
1910
1913
|
], 2)) : m("", !0),
|
|
1911
1914
|
D(p("input", {
|
|
1912
1915
|
type: "text",
|
|
1913
1916
|
autocomplete: "off",
|
|
1914
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
1917
|
+
"onUpdate:modelValue": d[0] || (d[0] = (y) => a.model.inputStringRendered = y),
|
|
1915
1918
|
class: l(a.question.cssClasses.filterStringInput),
|
|
1916
1919
|
placeholder: a.model.filterStringPlaceholder,
|
|
1917
1920
|
disabled: a.question.isInputReadOnly,
|
|
@@ -1928,14 +1931,14 @@ const tn = /* @__PURE__ */ C({
|
|
|
1928
1931
|
onKeydown: s,
|
|
1929
1932
|
onBlur: e,
|
|
1930
1933
|
onFocus: i
|
|
1931
|
-
}, null, 42,
|
|
1932
|
-
[
|
|
1934
|
+
}, null, 42, bn), [
|
|
1935
|
+
[qe, a.model.inputStringRendered]
|
|
1933
1936
|
])
|
|
1934
1937
|
], 2)
|
|
1935
1938
|
], 2);
|
|
1936
1939
|
};
|
|
1937
1940
|
}
|
|
1938
|
-
}),
|
|
1941
|
+
}), fn = { class: "sv-tagbox__item-text" }, In = /* @__PURE__ */ C({
|
|
1939
1942
|
__name: "TagboxItem",
|
|
1940
1943
|
props: {
|
|
1941
1944
|
question: {},
|
|
@@ -1946,13 +1949,13 @@ const tn = /* @__PURE__ */ C({
|
|
|
1946
1949
|
o.question.dropdownListModel.deselectItem(o.item.value), s.stopPropagation();
|
|
1947
1950
|
};
|
|
1948
1951
|
return B(() => o.item), (s, e) => {
|
|
1949
|
-
const i =
|
|
1952
|
+
const i = v("survey-string"), a = v("sv-svg-icon");
|
|
1950
1953
|
return t(), u("div", {
|
|
1951
1954
|
class: "sv-tagbox__item",
|
|
1952
1955
|
key: s.item.key
|
|
1953
1956
|
}, [
|
|
1954
|
-
p("div",
|
|
1955
|
-
|
|
1957
|
+
p("div", fn, [
|
|
1958
|
+
b(i, {
|
|
1956
1959
|
locString: s.item.locText
|
|
1957
1960
|
}, null, 8, ["locString"])
|
|
1958
1961
|
]),
|
|
@@ -1960,7 +1963,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1960
1963
|
class: l(s.question.cssClasses.cleanItemButton),
|
|
1961
1964
|
onClick: n
|
|
1962
1965
|
}, [
|
|
1963
|
-
|
|
1966
|
+
b(a, {
|
|
1964
1967
|
class: l(s.question.cssClasses.cleanItemButtonSvg),
|
|
1965
1968
|
iconName: s.question.cssClasses.cleanItemButtonIconId,
|
|
1966
1969
|
size: "auto"
|
|
@@ -1969,7 +1972,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1969
1972
|
]);
|
|
1970
1973
|
};
|
|
1971
1974
|
}
|
|
1972
|
-
}),
|
|
1975
|
+
}), wn = /* @__PURE__ */ C({
|
|
1973
1976
|
__name: "Ranking",
|
|
1974
1977
|
props: {
|
|
1975
1978
|
question: {}
|
|
@@ -1979,13 +1982,13 @@ const tn = /* @__PURE__ */ C({
|
|
|
1979
1982
|
M(o, n);
|
|
1980
1983
|
const s = (e) => o.question.getNumberByIndex(e);
|
|
1981
1984
|
return (e, i) => {
|
|
1982
|
-
const a =
|
|
1985
|
+
const a = v("survey-ranking-item");
|
|
1983
1986
|
return t(), u("div", {
|
|
1984
1987
|
class: l(e.question.rootClass),
|
|
1985
1988
|
ref_key: "root",
|
|
1986
1989
|
ref: n
|
|
1987
1990
|
}, [
|
|
1988
|
-
e.question.selectToRankEnabled ? m("", !0) : (t(!0), u(w, { key: 0 }, R(e.question.rankingChoices, (d, c) => (t(),
|
|
1991
|
+
e.question.selectToRankEnabled ? m("", !0) : (t(!0), u(w, { key: 0 }, R(e.question.rankingChoices, (d, c) => (t(), q(a, {
|
|
1989
1992
|
key: d.value + "-" + c + "-item",
|
|
1990
1993
|
class: l(e.question.getItemClass(d)),
|
|
1991
1994
|
text: d.locText,
|
|
@@ -2000,7 +2003,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2000
2003
|
class: l(e.question.getContainerClasses("from")),
|
|
2001
2004
|
"data-ranking": "from-container"
|
|
2002
2005
|
}, [
|
|
2003
|
-
(t(!0), u(w, null, R(e.question.unRankingChoices, (d, c) => (t(),
|
|
2006
|
+
(t(!0), u(w, null, R(e.question.unRankingChoices, (d, c) => (t(), q(a, {
|
|
2004
2007
|
key: d.value + "-" + c + "-item",
|
|
2005
2008
|
class: l(e.question.getItemClass(d)),
|
|
2006
2009
|
text: d.locText,
|
|
@@ -2025,7 +2028,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2025
2028
|
class: l(e.question.getContainerClasses("to")),
|
|
2026
2029
|
"data-ranking": "to-container"
|
|
2027
2030
|
}, [
|
|
2028
|
-
(t(!0), u(w, null, R(e.question.rankingChoices, (d, c) => (t(),
|
|
2031
|
+
(t(!0), u(w, null, R(e.question.rankingChoices, (d, c) => (t(), q(a, {
|
|
2029
2032
|
key: d.value + "-" + c + "-item",
|
|
2030
2033
|
class: l(e.question.getItemClass(d)),
|
|
2031
2034
|
text: d.locText,
|
|
@@ -2043,15 +2046,15 @@ const tn = /* @__PURE__ */ C({
|
|
|
2043
2046
|
], 2);
|
|
2044
2047
|
};
|
|
2045
2048
|
}
|
|
2046
|
-
}),
|
|
2049
|
+
}), Sn = ["tabindex", "data-sv-drop-target-ranking-item"], Tn = {
|
|
2047
2050
|
tabindex: "-1",
|
|
2048
2051
|
style: { outline: "none" }
|
|
2049
|
-
},
|
|
2050
|
-
|
|
2051
|
-
],
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
],
|
|
2052
|
+
}, Rn = /* @__PURE__ */ p("path", { d: "M6 2C6 0.9 6.9 0 8 0C9.1 0 10 0.9 10 2C10 3.1 9.1 4 8 4C6.9 4 6 3.1 6 2ZM2 0C0.9 0 0 0.9 0 2C0 3.1 0.9 4 2 4C3.1 4 4 3.1 4 2C4 0.9 3.1 0 2 0ZM8 6C6.9 6 6 6.9 6 8C6 9.1 6.9 10 8 10C9.1 10 10 9.1 10 8C10 6.9 9.1 6 8 6ZM2 6C0.9 6 0 6.9 0 8C0 9.1 0.9 10 2 10C3.1 10 4 9.1 4 8C4 6.9 3.1 6 2 6ZM8 12C6.9 12 6 12.9 6 14C6 15.1 6.9 16 8 16C9.1 16 10 15.1 10 14C10 12.9 9.1 12 8 12ZM2 12C0.9 12 0 12.9 0 14C0 15.1 0.9 16 2 16C3.1 16 4 15.1 4 14C4 12.9 3.1 12 2 12Z" }, null, -1), $n = [
|
|
2053
|
+
Rn
|
|
2054
|
+
], Bn = /* @__PURE__ */ p("path", { d: "M10 5L5 0L0 5H4V9H6V5H10Z" }, null, -1), Ln = /* @__PURE__ */ p("path", { d: "M6 19V15H4V19H0L5 24L10 19H6Z" }, null, -1), Dn = [
|
|
2055
|
+
Bn,
|
|
2056
|
+
Ln
|
|
2057
|
+
], Pn = /* @__PURE__ */ C({
|
|
2055
2058
|
__name: "RankingItem",
|
|
2056
2059
|
props: {
|
|
2057
2060
|
index: {},
|
|
@@ -2066,7 +2069,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2066
2069
|
setup(r) {
|
|
2067
2070
|
const o = r;
|
|
2068
2071
|
return B(() => o.item), (n, s) => {
|
|
2069
|
-
const e =
|
|
2072
|
+
const e = v("survey-string");
|
|
2070
2073
|
return t(), u("div", {
|
|
2071
2074
|
tabindex: n.question.getItemTabIndex(n.item),
|
|
2072
2075
|
"data-sv-drop-target-ranking-item": n.index,
|
|
@@ -2083,7 +2086,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2083
2086
|
);
|
|
2084
2087
|
})
|
|
2085
2088
|
}, [
|
|
2086
|
-
p("div",
|
|
2089
|
+
p("div", Tn, [
|
|
2087
2090
|
p("div", {
|
|
2088
2091
|
class: l(n.cssClasses.itemGhostNode)
|
|
2089
2092
|
}, null, 2),
|
|
@@ -2099,14 +2102,14 @@ const tn = /* @__PURE__ */ C({
|
|
|
2099
2102
|
viewBox: "0 0 10 16",
|
|
2100
2103
|
class: l(n.question.getIconHoverCss()),
|
|
2101
2104
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2102
|
-
},
|
|
2105
|
+
}, $n, 2)),
|
|
2103
2106
|
(t(), u("svg", {
|
|
2104
2107
|
width: "10",
|
|
2105
2108
|
height: "24",
|
|
2106
2109
|
viewBox: "0 0 10 24",
|
|
2107
2110
|
class: l(n.question.getIconFocusCss()),
|
|
2108
2111
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2109
|
-
},
|
|
2112
|
+
}, Dn, 2))
|
|
2110
2113
|
], 2),
|
|
2111
2114
|
p("div", {
|
|
2112
2115
|
class: l(n.question.getItemIndexClasses(n.item))
|
|
@@ -2114,17 +2117,17 @@ const tn = /* @__PURE__ */ C({
|
|
|
2114
2117
|
p("div", {
|
|
2115
2118
|
class: l(n.cssClasses.controlLabel)
|
|
2116
2119
|
}, [
|
|
2117
|
-
|
|
2120
|
+
b(e, { locString: n.text }, null, 8, ["locString"])
|
|
2118
2121
|
], 2)
|
|
2119
2122
|
], 2)
|
|
2120
2123
|
])
|
|
2121
|
-
], 42,
|
|
2124
|
+
], 42, Sn);
|
|
2122
2125
|
};
|
|
2123
2126
|
}
|
|
2124
|
-
}),
|
|
2127
|
+
}), Mn = { role: "radiogroup" }, Nn = /* @__PURE__ */ p("legend", {
|
|
2125
2128
|
role: "presentation",
|
|
2126
2129
|
class: "sv-hidden"
|
|
2127
|
-
}, null, -1),
|
|
2130
|
+
}, null, -1), Hn = /* @__PURE__ */ C({
|
|
2128
2131
|
__name: "Rating",
|
|
2129
2132
|
props: {
|
|
2130
2133
|
question: {}
|
|
@@ -2134,23 +2137,23 @@ const tn = /* @__PURE__ */ C({
|
|
|
2134
2137
|
M(o, n);
|
|
2135
2138
|
const s = (e) => o.question.getInputId(e);
|
|
2136
2139
|
return (e, i) => {
|
|
2137
|
-
const a =
|
|
2140
|
+
const a = v("survey-string");
|
|
2138
2141
|
return t(), u("div", {
|
|
2139
2142
|
class: l(e.question.ratingRootCss),
|
|
2140
2143
|
ref_key: "root",
|
|
2141
2144
|
ref: n
|
|
2142
2145
|
}, [
|
|
2143
|
-
p("fieldset",
|
|
2144
|
-
|
|
2146
|
+
p("fieldset", Mn, [
|
|
2147
|
+
Nn,
|
|
2145
2148
|
e.question.hasMinLabel ? (t(), u("span", {
|
|
2146
2149
|
key: 0,
|
|
2147
2150
|
class: l(e.question.cssClasses.minText)
|
|
2148
2151
|
}, [
|
|
2149
|
-
|
|
2152
|
+
b(a, {
|
|
2150
2153
|
locString: e.question.locMinRateDescription
|
|
2151
2154
|
}, null, 8, ["locString"])
|
|
2152
2155
|
], 2)) : m("", !0),
|
|
2153
|
-
(t(!0), u(w, null, R(e.question.renderedRateItems, (d, c) => (t(),
|
|
2156
|
+
(t(!0), u(w, null, R(e.question.renderedRateItems, (d, c) => (t(), q(N(e.question.itemComponentName), {
|
|
2154
2157
|
key: s(c),
|
|
2155
2158
|
item: d,
|
|
2156
2159
|
index: c,
|
|
@@ -2160,7 +2163,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2160
2163
|
key: 1,
|
|
2161
2164
|
class: l(e.question.cssClasses.maxText)
|
|
2162
2165
|
}, [
|
|
2163
|
-
|
|
2166
|
+
b(a, {
|
|
2164
2167
|
locString: e.question.locMaxRateDescription
|
|
2165
2168
|
}, null, 8, ["locString"])
|
|
2166
2169
|
], 2)) : m("", !0)
|
|
@@ -2168,7 +2171,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2168
2171
|
], 2);
|
|
2169
2172
|
};
|
|
2170
2173
|
}
|
|
2171
|
-
}),
|
|
2174
|
+
}), An = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], En = /* @__PURE__ */ C({
|
|
2172
2175
|
__name: "RatingItem",
|
|
2173
2176
|
props: {
|
|
2174
2177
|
question: {},
|
|
@@ -2178,7 +2181,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2178
2181
|
setup(r) {
|
|
2179
2182
|
const o = r;
|
|
2180
2183
|
return B(() => o.item), (n, s) => {
|
|
2181
|
-
const e =
|
|
2184
|
+
const e = v("survey-string");
|
|
2182
2185
|
return t(), u("label", {
|
|
2183
2186
|
key: n.item.value,
|
|
2184
2187
|
onMousedown: s[1] || (s[1] = (i) => n.question.onMouseDown()),
|
|
@@ -2196,18 +2199,18 @@ const tn = /* @__PURE__ */ C({
|
|
|
2196
2199
|
"aria-label": n.question.ariaLabel,
|
|
2197
2200
|
"aria-invalid": n.question.ariaInvalid,
|
|
2198
2201
|
"aria-describedby": n.question.ariaDescribedBy
|
|
2199
|
-
}, null, 8,
|
|
2202
|
+
}, null, 8, An),
|
|
2200
2203
|
p("span", {
|
|
2201
2204
|
class: l(n.question.cssClasses.itemText)
|
|
2202
2205
|
}, [
|
|
2203
|
-
|
|
2206
|
+
b(e, {
|
|
2204
2207
|
locString: n.item.locText
|
|
2205
2208
|
}, null, 8, ["locString"])
|
|
2206
2209
|
], 2)
|
|
2207
2210
|
], 34);
|
|
2208
2211
|
};
|
|
2209
2212
|
}
|
|
2210
|
-
}),
|
|
2213
|
+
}), Vn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], On = /* @__PURE__ */ C({
|
|
2211
2214
|
__name: "RatingItemSmiley",
|
|
2212
2215
|
props: {
|
|
2213
2216
|
question: {},
|
|
@@ -2217,7 +2220,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2217
2220
|
setup(r) {
|
|
2218
2221
|
const o = r;
|
|
2219
2222
|
return B(() => o.item), (n, s) => {
|
|
2220
|
-
const e =
|
|
2223
|
+
const e = v("sv-svg-icon");
|
|
2221
2224
|
return t(), u("label", {
|
|
2222
2225
|
key: n.item.value,
|
|
2223
2226
|
onMousedown: s[1] || (s[1] = (i) => n.question.onMouseDown()),
|
|
@@ -2238,8 +2241,8 @@ const tn = /* @__PURE__ */ C({
|
|
|
2238
2241
|
"aria-label": n.question.ariaLabel,
|
|
2239
2242
|
"aria-invalid": n.question.ariaInvalid,
|
|
2240
2243
|
"aria-describedby": n.question.ariaDescribedBy
|
|
2241
|
-
}, null, 8,
|
|
2242
|
-
|
|
2244
|
+
}, null, 8, Vn),
|
|
2245
|
+
b(e, {
|
|
2243
2246
|
iconName: n.question.getItemSmileyIconName(n.item.itemValue),
|
|
2244
2247
|
size: "auto",
|
|
2245
2248
|
title: n.item.text
|
|
@@ -2247,7 +2250,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2247
2250
|
], 38);
|
|
2248
2251
|
};
|
|
2249
2252
|
}
|
|
2250
|
-
}),
|
|
2253
|
+
}), Fn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Wn = /* @__PURE__ */ C({
|
|
2251
2254
|
__name: "RatingItemStar",
|
|
2252
2255
|
props: {
|
|
2253
2256
|
question: {},
|
|
@@ -2257,7 +2260,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2257
2260
|
setup(r) {
|
|
2258
2261
|
const o = r;
|
|
2259
2262
|
return B(() => o.item), (n, s) => {
|
|
2260
|
-
const e =
|
|
2263
|
+
const e = v("sv-svg-icon");
|
|
2261
2264
|
return t(), u("label", {
|
|
2262
2265
|
key: n.item.value,
|
|
2263
2266
|
onMousedown: s[1] || (s[1] = (i) => n.question.onMouseDown()),
|
|
@@ -2277,14 +2280,14 @@ const tn = /* @__PURE__ */ C({
|
|
|
2277
2280
|
"aria-label": n.question.ariaLabel,
|
|
2278
2281
|
"aria-invalid": n.question.ariaInvalid,
|
|
2279
2282
|
"aria-describedby": n.question.ariaDescribedBy
|
|
2280
|
-
}, null, 8,
|
|
2281
|
-
|
|
2283
|
+
}, null, 8, Fn),
|
|
2284
|
+
b(e, {
|
|
2282
2285
|
class: l("sv-star"),
|
|
2283
2286
|
iconName: n.question.itemStarIcon,
|
|
2284
2287
|
size: "auto",
|
|
2285
2288
|
title: n.item.text
|
|
2286
2289
|
}, null, 8, ["iconName", "title"]),
|
|
2287
|
-
|
|
2290
|
+
b(e, {
|
|
2288
2291
|
class: l("sv-star-2"),
|
|
2289
2292
|
iconName: n.question.itemStarIconAlt,
|
|
2290
2293
|
size: "auto",
|
|
@@ -2294,12 +2297,12 @@ const tn = /* @__PURE__ */ C({
|
|
|
2294
2297
|
};
|
|
2295
2298
|
}
|
|
2296
2299
|
});
|
|
2297
|
-
|
|
2300
|
+
G.Instance.registerRenderer(
|
|
2298
2301
|
"rating",
|
|
2299
2302
|
"dropdown",
|
|
2300
2303
|
"sv-rating-dropdown"
|
|
2301
2304
|
);
|
|
2302
|
-
const
|
|
2305
|
+
const zn = /* @__PURE__ */ C({
|
|
2303
2306
|
__name: "RatingDropdown",
|
|
2304
2307
|
props: {
|
|
2305
2308
|
question: {}
|
|
@@ -2307,17 +2310,17 @@ const Fn = /* @__PURE__ */ C({
|
|
|
2307
2310
|
setup(r) {
|
|
2308
2311
|
const o = r, n = S(null);
|
|
2309
2312
|
return M(o, n), (s, e) => {
|
|
2310
|
-
const i =
|
|
2313
|
+
const i = v("sv-dropdown");
|
|
2311
2314
|
return t(), u("div", {
|
|
2312
2315
|
class: l(s.question.cssClasses.rootDropdown),
|
|
2313
2316
|
ref_key: "root",
|
|
2314
2317
|
ref: n
|
|
2315
2318
|
}, [
|
|
2316
|
-
|
|
2319
|
+
b(i, { question: s.question }, null, 8, ["question"])
|
|
2317
2320
|
], 2);
|
|
2318
2321
|
};
|
|
2319
2322
|
}
|
|
2320
|
-
}),
|
|
2323
|
+
}), Un = ["name", "value", "id", ".indeterminate", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Kn = /* @__PURE__ */ C({
|
|
2321
2324
|
__name: "BooleanSwitch",
|
|
2322
2325
|
props: {
|
|
2323
2326
|
question: {}
|
|
@@ -2332,10 +2335,10 @@ const Fn = /* @__PURE__ */ C({
|
|
|
2332
2335
|
};
|
|
2333
2336
|
return (i, a) => {
|
|
2334
2337
|
var c;
|
|
2335
|
-
const d =
|
|
2338
|
+
const d = v("survey-string");
|
|
2336
2339
|
return t(), u("div", {
|
|
2337
2340
|
class: l(i.question.cssClasses.root),
|
|
2338
|
-
onKeydown: a[4] || (a[4] = (
|
|
2341
|
+
onKeydown: a[4] || (a[4] = (y) => i.question.onKeyDownCore(y))
|
|
2339
2342
|
}, [
|
|
2340
2343
|
p("label", {
|
|
2341
2344
|
class: l(i.question.getItemCss())
|
|
@@ -2344,7 +2347,7 @@ const Fn = /* @__PURE__ */ C({
|
|
|
2344
2347
|
type: "checkbox",
|
|
2345
2348
|
name: i.question.name,
|
|
2346
2349
|
value: (c = i.question.booleanValue) != null ? c : "",
|
|
2347
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
2350
|
+
"onUpdate:modelValue": a[0] || (a[0] = (y) => i.question.booleanValue = y),
|
|
2348
2351
|
class: l(i.question.cssClasses.control),
|
|
2349
2352
|
id: i.question.inputId,
|
|
2350
2353
|
".indeterminate": i.question.isIndeterminate,
|
|
@@ -2353,24 +2356,24 @@ const Fn = /* @__PURE__ */ C({
|
|
|
2353
2356
|
"aria-label": i.question.ariaLabel,
|
|
2354
2357
|
"aria-invalid": i.question.ariaInvalid,
|
|
2355
2358
|
"aria-describedby": i.question.ariaDescribedBy
|
|
2356
|
-
}, null, 10,
|
|
2359
|
+
}, null, 10, Un), [
|
|
2357
2360
|
[z, i.question.booleanValue]
|
|
2358
2361
|
]),
|
|
2359
2362
|
p("div", {
|
|
2360
2363
|
class: l(i.question.cssClasses.sliderGhost),
|
|
2361
|
-
onClick: a[1] || (a[1] = (
|
|
2364
|
+
onClick: a[1] || (a[1] = (y) => s(y, !1))
|
|
2362
2365
|
}, [
|
|
2363
2366
|
p("span", {
|
|
2364
2367
|
class: l(i.question.getLabelCss(!1))
|
|
2365
2368
|
}, [
|
|
2366
|
-
|
|
2369
|
+
b(d, {
|
|
2367
2370
|
locString: i.question.locLabelFalse
|
|
2368
2371
|
}, null, 8, ["locString"])
|
|
2369
2372
|
], 2)
|
|
2370
2373
|
], 2),
|
|
2371
2374
|
p("div", {
|
|
2372
2375
|
class: l(i.question.cssClasses.switch),
|
|
2373
|
-
onClick: a[2] || (a[2] = (
|
|
2376
|
+
onClick: a[2] || (a[2] = (y) => e(y))
|
|
2374
2377
|
}, [
|
|
2375
2378
|
p("span", {
|
|
2376
2379
|
class: l(i.question.cssClasses.slider)
|
|
@@ -2379,7 +2382,7 @@ const Fn = /* @__PURE__ */ C({
|
|
|
2379
2382
|
key: 0,
|
|
2380
2383
|
class: l(i.question.cssClasses.sliderText)
|
|
2381
2384
|
}, [
|
|
2382
|
-
|
|
2385
|
+
b(d, {
|
|
2383
2386
|
locString: i.question.getCheckedLabel()
|
|
2384
2387
|
}, null, 8, ["locString"])
|
|
2385
2388
|
], 2)) : m("", !0)
|
|
@@ -2387,12 +2390,12 @@ const Fn = /* @__PURE__ */ C({
|
|
|
2387
2390
|
], 2),
|
|
2388
2391
|
p("div", {
|
|
2389
2392
|
class: l(i.question.cssClasses.sliderGhost),
|
|
2390
|
-
onClick: a[3] || (a[3] = (
|
|
2393
|
+
onClick: a[3] || (a[3] = (y) => s(y, !0))
|
|
2391
2394
|
}, [
|
|
2392
2395
|
p("span", {
|
|
2393
2396
|
class: l(i.question.getLabelCss(!0))
|
|
2394
2397
|
}, [
|
|
2395
|
-
|
|
2398
|
+
b(d, {
|
|
2396
2399
|
locString: i.question.locLabelTrue
|
|
2397
2400
|
}, null, 8, ["locString"])
|
|
2398
2401
|
], 2)
|
|
@@ -2402,12 +2405,12 @@ const Fn = /* @__PURE__ */ C({
|
|
|
2402
2405
|
};
|
|
2403
2406
|
}
|
|
2404
2407
|
});
|
|
2405
|
-
|
|
2408
|
+
G.Instance.registerRenderer(
|
|
2406
2409
|
"boolean",
|
|
2407
2410
|
"radio",
|
|
2408
2411
|
"sv-boolean-radio"
|
|
2409
2412
|
);
|
|
2410
|
-
const
|
|
2413
|
+
const jn = /* @__PURE__ */ C({
|
|
2411
2414
|
__name: "BooleanRadio",
|
|
2412
2415
|
props: {
|
|
2413
2416
|
question: {}
|
|
@@ -2415,7 +2418,7 @@ const Un = /* @__PURE__ */ C({
|
|
|
2415
2418
|
setup(r) {
|
|
2416
2419
|
const o = r, n = S(null);
|
|
2417
2420
|
return M(o, n), (s, e) => {
|
|
2418
|
-
const i =
|
|
2421
|
+
const i = v("sv-boolean-radio-item");
|
|
2419
2422
|
return t(), u("div", {
|
|
2420
2423
|
class: l(s.question.cssClasses.rootRadio),
|
|
2421
2424
|
ref_key: "root",
|
|
@@ -2425,13 +2428,13 @@ const Un = /* @__PURE__ */ C({
|
|
|
2425
2428
|
role: "presentation",
|
|
2426
2429
|
class: l(s.question.cssClasses.radioFieldset)
|
|
2427
2430
|
}, [
|
|
2428
|
-
(t(),
|
|
2431
|
+
(t(), q(i, {
|
|
2429
2432
|
key: !1,
|
|
2430
2433
|
question: s.question,
|
|
2431
2434
|
locText: s.question.locLabelFalse,
|
|
2432
2435
|
value: !1
|
|
2433
2436
|
}, null, 8, ["question", "locText"])),
|
|
2434
|
-
(t(),
|
|
2437
|
+
(t(), q(i, {
|
|
2435
2438
|
key: !0,
|
|
2436
2439
|
question: s.question,
|
|
2437
2440
|
locText: s.question.locLabelTrue,
|
|
@@ -2441,7 +2444,7 @@ const Un = /* @__PURE__ */ C({
|
|
|
2441
2444
|
], 2);
|
|
2442
2445
|
};
|
|
2443
2446
|
}
|
|
2444
|
-
}),
|
|
2447
|
+
}), Qn = ["name", "value", "checked", "aria-describedby", "disabled"], _n = ["xlink:href"], Zn = /* @__PURE__ */ C({
|
|
2445
2448
|
__name: "BooleanRadioItem",
|
|
2446
2449
|
props: {
|
|
2447
2450
|
question: {},
|
|
@@ -2454,7 +2457,7 @@ const Un = /* @__PURE__ */ C({
|
|
|
2454
2457
|
e.booleanValue = s.target.value == "true";
|
|
2455
2458
|
};
|
|
2456
2459
|
return (s, e) => {
|
|
2457
|
-
const i =
|
|
2460
|
+
const i = v("survey-string");
|
|
2458
2461
|
return t(), u("div", {
|
|
2459
2462
|
role: "presentation",
|
|
2460
2463
|
class: l(s.question.getRadioItemClass(s.question.cssClasses, s.value))
|
|
@@ -2471,7 +2474,7 @@ const Un = /* @__PURE__ */ C({
|
|
|
2471
2474
|
disabled: s.question.isInputReadOnly,
|
|
2472
2475
|
class: l(s.question.cssClasses.itemRadioControl),
|
|
2473
2476
|
onChange: n
|
|
2474
|
-
}, null, 42,
|
|
2477
|
+
}, null, 42, Qn),
|
|
2475
2478
|
s.question.cssClasses.materialRadioDecorator ? (t(), u("span", {
|
|
2476
2479
|
key: 0,
|
|
2477
2480
|
class: l(s.question.cssClasses.materialRadioDecorator)
|
|
@@ -2482,25 +2485,25 @@ const Un = /* @__PURE__ */ C({
|
|
|
2482
2485
|
}, [
|
|
2483
2486
|
p("use", {
|
|
2484
2487
|
"xlink:href": s.question.itemSvgIcon
|
|
2485
|
-
}, null, 8,
|
|
2488
|
+
}, null, 8, _n)
|
|
2486
2489
|
], 2)) : m("", !0)
|
|
2487
2490
|
], 2)) : m("", !0),
|
|
2488
2491
|
p("span", {
|
|
2489
2492
|
class: l(s.question.cssClasses.radioControlLabel)
|
|
2490
2493
|
}, [
|
|
2491
|
-
|
|
2494
|
+
b(i, { locString: s.locText }, null, 8, ["locString"])
|
|
2492
2495
|
], 2)
|
|
2493
2496
|
], 2)
|
|
2494
2497
|
], 2);
|
|
2495
2498
|
};
|
|
2496
2499
|
}
|
|
2497
|
-
}),
|
|
2498
|
-
|
|
2500
|
+
}), Gn = ["name", "value", "id", ".indeterminate", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Xn = ["xlink:href"], Jn = /* @__PURE__ */ p("span", { class: "check" }, null, -1), Yn = ["id"];
|
|
2501
|
+
G.Instance.registerRenderer(
|
|
2499
2502
|
"boolean",
|
|
2500
2503
|
"checkbox",
|
|
2501
2504
|
"sv-boolean-checkbox"
|
|
2502
2505
|
);
|
|
2503
|
-
const
|
|
2506
|
+
const xn = /* @__PURE__ */ C({
|
|
2504
2507
|
__name: "BooleanCheckbox",
|
|
2505
2508
|
props: {
|
|
2506
2509
|
question: {},
|
|
@@ -2510,7 +2513,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2510
2513
|
const o = r, n = S(null);
|
|
2511
2514
|
return M(o, n), (s, e) => {
|
|
2512
2515
|
var c;
|
|
2513
|
-
const i =
|
|
2516
|
+
const i = v("survey-element-title-content"), a = v("sv-title-actions"), d = v("survey-string");
|
|
2514
2517
|
return t(), u("div", {
|
|
2515
2518
|
class: l(s.question.cssClasses.rootCheckbox),
|
|
2516
2519
|
ref_key: "root",
|
|
@@ -2526,7 +2529,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2526
2529
|
type: "checkbox",
|
|
2527
2530
|
name: s.question.name,
|
|
2528
2531
|
value: (c = s.question.booleanValue) != null ? c : "",
|
|
2529
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
2532
|
+
"onUpdate:modelValue": e[0] || (e[0] = (y) => s.question.booleanValue = y),
|
|
2530
2533
|
class: l(s.question.cssClasses.controlCheckbox),
|
|
2531
2534
|
id: s.question.inputId,
|
|
2532
2535
|
".indeterminate": s.question.isIndeterminate,
|
|
@@ -2535,7 +2538,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2535
2538
|
"aria-label": s.question.ariaLabel,
|
|
2536
2539
|
"aria-invalid": s.question.ariaInvalid,
|
|
2537
2540
|
"aria-describedby": s.question.ariaDescribedBy
|
|
2538
|
-
}, null, 10,
|
|
2541
|
+
}, null, 10, Gn), [
|
|
2539
2542
|
[z, s.question.booleanValue]
|
|
2540
2543
|
]),
|
|
2541
2544
|
p("span", {
|
|
@@ -2547,32 +2550,32 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2547
2550
|
}, [
|
|
2548
2551
|
p("use", {
|
|
2549
2552
|
"xlink:href": s.question.svgIcon
|
|
2550
|
-
}, null, 8,
|
|
2553
|
+
}, null, 8, Xn)
|
|
2551
2554
|
], 2)) : m("", !0),
|
|
2552
|
-
|
|
2555
|
+
Jn
|
|
2553
2556
|
], 2),
|
|
2554
2557
|
s.question.isLabelRendered ? (t(), u("span", {
|
|
2555
2558
|
key: 0,
|
|
2556
2559
|
id: s.question.labelRenderedAriaID,
|
|
2557
2560
|
class: l(s.question.cssClasses.checkboxControlLabel)
|
|
2558
2561
|
}, [
|
|
2559
|
-
s.question.hasTitleActions ? m("", !0) : (t(),
|
|
2562
|
+
s.question.hasTitleActions ? m("", !0) : (t(), q(i, {
|
|
2560
2563
|
key: 0,
|
|
2561
2564
|
element: s.question,
|
|
2562
2565
|
css: s.css
|
|
2563
2566
|
}, null, 8, ["element", "css"])),
|
|
2564
|
-
s.question.hasTitleActions ? (t(),
|
|
2567
|
+
s.question.hasTitleActions ? (t(), q(a, {
|
|
2565
2568
|
key: 1,
|
|
2566
2569
|
element: s.question,
|
|
2567
2570
|
css: s.css
|
|
2568
2571
|
}, null, 8, ["element", "css"])) : m("", !0)
|
|
2569
|
-
], 10,
|
|
2572
|
+
], 10, Yn)) : m("", !0)
|
|
2570
2573
|
], 2),
|
|
2571
2574
|
s.question.canRenderLabelDescription ? (t(), u("div", {
|
|
2572
2575
|
key: 0,
|
|
2573
2576
|
class: l(s.question.cssDescription)
|
|
2574
2577
|
}, [
|
|
2575
|
-
|
|
2578
|
+
b(d, {
|
|
2576
2579
|
locString: s.question.locDescription
|
|
2577
2580
|
}, null, 8, ["locString"])
|
|
2578
2581
|
], 2)) : m("", !0)
|
|
@@ -2580,7 +2583,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2580
2583
|
], 2);
|
|
2581
2584
|
};
|
|
2582
2585
|
}
|
|
2583
|
-
}),
|
|
2586
|
+
}), eo = /* @__PURE__ */ C({
|
|
2584
2587
|
__name: "Multipletext",
|
|
2585
2588
|
props: {
|
|
2586
2589
|
question: {}
|
|
@@ -2588,7 +2591,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2588
2591
|
setup(r) {
|
|
2589
2592
|
const o = r, n = S(null);
|
|
2590
2593
|
return M(o, n), (s, e) => {
|
|
2591
|
-
const i =
|
|
2594
|
+
const i = v("survey-multipletext-item");
|
|
2592
2595
|
return t(), u("table", {
|
|
2593
2596
|
class: l(s.question.cssClasses.root),
|
|
2594
2597
|
ref_key: "root",
|
|
@@ -2606,7 +2609,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2606
2609
|
key: "item" + c.item.editor.id,
|
|
2607
2610
|
class: l(c.className)
|
|
2608
2611
|
}, [
|
|
2609
|
-
|
|
2612
|
+
b(i, {
|
|
2610
2613
|
question: s.question,
|
|
2611
2614
|
cell: c
|
|
2612
2615
|
}, null, 8, ["question", "cell"])
|
|
@@ -2617,7 +2620,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2617
2620
|
], 2);
|
|
2618
2621
|
};
|
|
2619
2622
|
}
|
|
2620
|
-
}),
|
|
2623
|
+
}), so = { key: 1 }, no = /* @__PURE__ */ C({
|
|
2621
2624
|
__name: "MultipletextItem",
|
|
2622
2625
|
props: {
|
|
2623
2626
|
question: {},
|
|
@@ -2628,8 +2631,8 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2628
2631
|
B(() => o.cell.item.editor);
|
|
2629
2632
|
const s = T(() => o.cell.item);
|
|
2630
2633
|
return (e, i) => {
|
|
2631
|
-
const a =
|
|
2632
|
-
return e.cell.isErrorsCell ? (t(),
|
|
2634
|
+
const a = v("survey-string"), d = v("survey-errors");
|
|
2635
|
+
return e.cell.isErrorsCell ? (t(), q(d, {
|
|
2633
2636
|
key: 1,
|
|
2634
2637
|
element: s.value.editor
|
|
2635
2638
|
}, null, 8, ["element"])) : (t(), u("label", {
|
|
@@ -2643,10 +2646,10 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2643
2646
|
key: 0,
|
|
2644
2647
|
class: l(e.question.cssClasses.requiredText)
|
|
2645
2648
|
}, I(s.value.editor.requiredText), 3)) : m("", !0),
|
|
2646
|
-
|
|
2649
|
+
b(a, {
|
|
2647
2650
|
locString: s.value.locTitle
|
|
2648
2651
|
}, null, 8, ["locString"]),
|
|
2649
|
-
s.value.editor.isRequireTextAfterTitle ? (t(), u("span",
|
|
2652
|
+
s.value.editor.isRequireTextAfterTitle ? (t(), u("span", so, "\xA0")) : m("", !0),
|
|
2650
2653
|
s.value.editor.isRequireTextAfterTitle ? (t(), u("span", {
|
|
2651
2654
|
key: 2,
|
|
2652
2655
|
"aria-hidden": "true",
|
|
@@ -2658,14 +2661,14 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2658
2661
|
class: l(e.question.getItemCss()),
|
|
2659
2662
|
onFocusin: i[0] || (i[0] = (c) => s.value.focusIn())
|
|
2660
2663
|
}, [
|
|
2661
|
-
(t(),
|
|
2664
|
+
(t(), q(N(n(s.value.editor)), {
|
|
2662
2665
|
question: s.value.editor
|
|
2663
2666
|
}, null, 8, ["question"]))
|
|
2664
2667
|
], 34))
|
|
2665
2668
|
], 2));
|
|
2666
2669
|
};
|
|
2667
2670
|
}
|
|
2668
|
-
}),
|
|
2671
|
+
}), oo = ["aria-label"], to = { key: 0 }, io = { key: 0 }, lo = ["onClick"], ro = ["data-responsive-title", "onClick"], ao = ["name", "onUpdate:modelValue", "value", "disabled", "id", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], uo = ["xlink:href"], mo = /* @__PURE__ */ C({
|
|
2669
2672
|
__name: "Matrix",
|
|
2670
2673
|
props: {
|
|
2671
2674
|
question: {}
|
|
@@ -2689,7 +2692,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2689
2692
|
o.question.isInputReadOnly || (i.value = a.value);
|
|
2690
2693
|
};
|
|
2691
2694
|
return (i, a) => {
|
|
2692
|
-
const d =
|
|
2695
|
+
const d = v("survey-string");
|
|
2693
2696
|
return t(), u("div", {
|
|
2694
2697
|
class: l(i.question.cssClasses.tableWrapper),
|
|
2695
2698
|
ref_key: "root",
|
|
@@ -2698,30 +2701,30 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2698
2701
|
p("fieldset", null, [
|
|
2699
2702
|
p("legend", {
|
|
2700
2703
|
"aria-label": i.question.locTitle.renderedHtml
|
|
2701
|
-
}, null, 8,
|
|
2704
|
+
}, null, 8, oo),
|
|
2702
2705
|
p("table", {
|
|
2703
2706
|
class: l(i.question.getTableCss())
|
|
2704
2707
|
}, [
|
|
2705
|
-
i.question.showHeader ? (t(), u("thead",
|
|
2708
|
+
i.question.showHeader ? (t(), u("thead", to, [
|
|
2706
2709
|
p("tr", null, [
|
|
2707
|
-
i.question.hasRows ? (t(), u("td",
|
|
2708
|
-
(t(!0), u(w, null, R(i.question.visibleColumns, (c,
|
|
2709
|
-
key:
|
|
2710
|
+
i.question.hasRows ? (t(), u("td", io)) : m("", !0),
|
|
2711
|
+
(t(!0), u(w, null, R(i.question.visibleColumns, (c, y) => (t(), u("th", {
|
|
2712
|
+
key: y,
|
|
2710
2713
|
class: l(i.question.cssClasses.headerCell),
|
|
2711
2714
|
style: $({
|
|
2712
2715
|
minWidth: i.question.columnMinWidth,
|
|
2713
2716
|
width: i.question.columnMinWidth
|
|
2714
2717
|
})
|
|
2715
2718
|
}, [
|
|
2716
|
-
|
|
2719
|
+
b(d, {
|
|
2717
2720
|
locString: c.locText
|
|
2718
2721
|
}, null, 8, ["locString"])
|
|
2719
2722
|
], 6))), 128))
|
|
2720
2723
|
])
|
|
2721
2724
|
])) : m("", !0),
|
|
2722
2725
|
p("tbody", null, [
|
|
2723
|
-
(t(!0), u(w, null, R(s.value, (c,
|
|
2724
|
-
key: "row_" + c.name + "_" +
|
|
2726
|
+
(t(!0), u(w, null, R(s.value, (c, y) => (t(), u("tr", {
|
|
2727
|
+
key: "row_" + c.name + "_" + y,
|
|
2725
2728
|
class: l(c.rowClasses || void 0)
|
|
2726
2729
|
}, [
|
|
2727
2730
|
D(p("td", {
|
|
@@ -2731,45 +2734,45 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2731
2734
|
width: i.question.rowTitleWidth
|
|
2732
2735
|
})
|
|
2733
2736
|
}, [
|
|
2734
|
-
|
|
2737
|
+
b(d, {
|
|
2735
2738
|
locString: c.locText
|
|
2736
2739
|
}, null, 8, ["locString"])
|
|
2737
2740
|
], 6), [
|
|
2738
2741
|
[H, i.question.hasRows]
|
|
2739
2742
|
]),
|
|
2740
|
-
i.question.hasCellText ? (t(!0), u(w, { key: 0 }, R(i.question.visibleColumns, (
|
|
2743
|
+
i.question.hasCellText ? (t(!0), u(w, { key: 0 }, R(i.question.visibleColumns, (h, g) => (t(), u("td", {
|
|
2741
2744
|
key: g,
|
|
2742
|
-
class: l(i.question.getItemClass(c,
|
|
2743
|
-
onClick: (k) => e(c,
|
|
2745
|
+
class: l(i.question.getItemClass(c, h)),
|
|
2746
|
+
onClick: (k) => e(c, h)
|
|
2744
2747
|
}, [
|
|
2745
|
-
|
|
2746
|
-
locString: i.question.getCellDisplayLocText(c.name,
|
|
2748
|
+
b(d, {
|
|
2749
|
+
locString: i.question.getCellDisplayLocText(c.name, h)
|
|
2747
2750
|
}, null, 8, ["locString"])
|
|
2748
|
-
], 10,
|
|
2749
|
-
i.question.hasCellText ? m("", !0) : (t(!0), u(w, { key: 1 }, R(i.question.visibleColumns, (
|
|
2751
|
+
], 10, lo))), 128)) : m("", !0),
|
|
2752
|
+
i.question.hasCellText ? m("", !0) : (t(!0), u(w, { key: 1 }, R(i.question.visibleColumns, (h, g) => (t(), u("td", {
|
|
2750
2753
|
key: g,
|
|
2751
|
-
"data-responsive-title":
|
|
2754
|
+
"data-responsive-title": h.locText.renderedHtml,
|
|
2752
2755
|
class: l(i.question.cssClasses.cell),
|
|
2753
|
-
onClick: (k) => e(c,
|
|
2756
|
+
onClick: (k) => e(c, h)
|
|
2754
2757
|
}, [
|
|
2755
2758
|
p("label", {
|
|
2756
2759
|
onMousedown: a[0] || (a[0] = (k) => i.question.onMouseDown()),
|
|
2757
|
-
class: l(i.question.getItemClass(c,
|
|
2760
|
+
class: l(i.question.getItemClass(c, h))
|
|
2758
2761
|
}, [
|
|
2759
2762
|
D(p("input", {
|
|
2760
2763
|
type: "radio",
|
|
2761
2764
|
class: l(i.question.cssClasses.itemValue),
|
|
2762
2765
|
name: c.fullName,
|
|
2763
2766
|
"onUpdate:modelValue": (k) => c.value = k,
|
|
2764
|
-
value:
|
|
2767
|
+
value: h.value,
|
|
2765
2768
|
disabled: i.question.isInputReadOnly,
|
|
2766
2769
|
id: i.question.inputId + "_" + c.name + "_" + g,
|
|
2767
2770
|
"aria-required": i.question.ariaRequired,
|
|
2768
|
-
"aria-label":
|
|
2771
|
+
"aria-label": h.locText.renderedHtml,
|
|
2769
2772
|
"aria-invalid": i.question.ariaInvalid,
|
|
2770
2773
|
"aria-describedby": i.question.ariaDescribedBy
|
|
2771
|
-
}, null, 10,
|
|
2772
|
-
[
|
|
2774
|
+
}, null, 10, ao), [
|
|
2775
|
+
[J, c.value]
|
|
2773
2776
|
]),
|
|
2774
2777
|
p("span", {
|
|
2775
2778
|
class: l(i.question.cssClasses.materialDecorator)
|
|
@@ -2780,20 +2783,20 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2780
2783
|
}, [
|
|
2781
2784
|
p("use", {
|
|
2782
2785
|
"xlink:href": i.question.itemSvgIcon
|
|
2783
|
-
}, null, 8,
|
|
2786
|
+
}, null, 8, uo)
|
|
2784
2787
|
], 2)) : m("", !0)
|
|
2785
2788
|
], 2),
|
|
2786
2789
|
D(p("span", {
|
|
2787
2790
|
class: l(i.question.cssClasses.cellResponsiveTitle)
|
|
2788
2791
|
}, [
|
|
2789
|
-
|
|
2790
|
-
locString:
|
|
2792
|
+
b(d, {
|
|
2793
|
+
locString: h.locText
|
|
2791
2794
|
}, null, 8, ["locString"])
|
|
2792
2795
|
], 2), [
|
|
2793
2796
|
[H, i.question.isMobile]
|
|
2794
2797
|
])
|
|
2795
2798
|
], 34)
|
|
2796
|
-
], 10,
|
|
2799
|
+
], 10, ro))), 128))
|
|
2797
2800
|
], 2))), 128))
|
|
2798
2801
|
])
|
|
2799
2802
|
], 2)
|
|
@@ -2801,7 +2804,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2801
2804
|
], 2);
|
|
2802
2805
|
};
|
|
2803
2806
|
}
|
|
2804
|
-
}),
|
|
2807
|
+
}), co = /* @__PURE__ */ C({
|
|
2805
2808
|
__name: "MatrixDropdown",
|
|
2806
2809
|
props: {
|
|
2807
2810
|
question: {}
|
|
@@ -2809,15 +2812,15 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2809
2812
|
setup(r) {
|
|
2810
2813
|
const o = r, n = S(null);
|
|
2811
2814
|
return M(o, n), (s, e) => {
|
|
2812
|
-
const i =
|
|
2813
|
-
return t(),
|
|
2815
|
+
const i = v("survey-matrixtable");
|
|
2816
|
+
return t(), q(i, {
|
|
2814
2817
|
question: s.question,
|
|
2815
2818
|
ref_key: "root",
|
|
2816
2819
|
ref: n
|
|
2817
2820
|
}, null, 8, ["question"]);
|
|
2818
2821
|
};
|
|
2819
2822
|
}
|
|
2820
|
-
}),
|
|
2823
|
+
}), po = { key: 0 }, vo = ["data-sv-drop-target-matrix-row"], qo = { key: 1 }, yo = /* @__PURE__ */ C({
|
|
2821
2824
|
__name: "MatrixTable",
|
|
2822
2825
|
props: {
|
|
2823
2826
|
question: {}
|
|
@@ -2838,7 +2841,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2838
2841
|
};
|
|
2839
2842
|
}
|
|
2840
2843
|
), (s, e) => {
|
|
2841
|
-
const i =
|
|
2844
|
+
const i = v("survey-string"), a = v("survey-matrixheaderrequired"), d = v("survey-matrixcell");
|
|
2842
2845
|
return t(), u("div", {
|
|
2843
2846
|
style: $({ overflowX: s.question.showHorizontalScroll ? "scroll" : "" }),
|
|
2844
2847
|
class: l(s.question.cssClasses.tableWrapper)
|
|
@@ -2846,7 +2849,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2846
2849
|
p("table", {
|
|
2847
2850
|
class: l(s.question.getTableCss())
|
|
2848
2851
|
}, [
|
|
2849
|
-
n.value.showHeader ? (t(), u("thead",
|
|
2852
|
+
n.value.showHeader ? (t(), u("thead", po, [
|
|
2850
2853
|
p("tr", null, [
|
|
2851
2854
|
(t(!0), u(w, null, R(n.value.headerRow.cells, (c) => (t(), u(w, null, [
|
|
2852
2855
|
c.hasTitle ? (t(), u("th", {
|
|
@@ -2854,10 +2857,10 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2854
2857
|
key: "header_" + c.id,
|
|
2855
2858
|
style: $({ minWidth: c.minWidth, width: c.width })
|
|
2856
2859
|
}, [
|
|
2857
|
-
|
|
2860
|
+
b(i, {
|
|
2858
2861
|
locString: c.locTitle
|
|
2859
2862
|
}, null, 8, ["locString"]),
|
|
2860
|
-
c.column ? (t(),
|
|
2863
|
+
c.column ? (t(), q(a, {
|
|
2861
2864
|
key: 0,
|
|
2862
2865
|
column: c.column,
|
|
2863
2866
|
question: s.question
|
|
@@ -2880,20 +2883,20 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2880
2883
|
"data-sv-drop-target-matrix-row": c.row && c.row.id,
|
|
2881
2884
|
class: l(c.className)
|
|
2882
2885
|
}, [
|
|
2883
|
-
(t(!0), u(w, null, R(c.cells, (
|
|
2884
|
-
cell:
|
|
2886
|
+
(t(!0), u(w, null, R(c.cells, (y, h) => (t(), q(d, {
|
|
2887
|
+
cell: y,
|
|
2885
2888
|
question: s.question,
|
|
2886
|
-
key: c.id + "_" +
|
|
2889
|
+
key: c.id + "_" + h
|
|
2887
2890
|
}, null, 8, ["cell", "question"]))), 128))
|
|
2888
|
-
], 10,
|
|
2891
|
+
], 10, vo)) : m("", !0)
|
|
2889
2892
|
], 64))), 128))
|
|
2890
2893
|
]),
|
|
2891
|
-
n.value.showFooter ? (t(), u("tfoot",
|
|
2894
|
+
n.value.showFooter ? (t(), u("tfoot", qo, [
|
|
2892
2895
|
p("tr", null, [
|
|
2893
|
-
(t(!0), u(w, null, R(n.value.footerRow.cells, (c,
|
|
2896
|
+
(t(!0), u(w, null, R(n.value.footerRow.cells, (c, y) => (t(), q(d, {
|
|
2894
2897
|
cell: c,
|
|
2895
2898
|
question: s.question,
|
|
2896
|
-
key: "footer_" +
|
|
2899
|
+
key: "footer_" + y
|
|
2897
2900
|
}, null, 8, ["cell", "question"]))), 128))
|
|
2898
2901
|
])
|
|
2899
2902
|
])) : m("", !0)
|
|
@@ -2901,7 +2904,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2901
2904
|
], 6);
|
|
2902
2905
|
};
|
|
2903
2906
|
}
|
|
2904
|
-
}),
|
|
2907
|
+
}), go = /* @__PURE__ */ p("span", null, "\xA0", -1), Co = /* @__PURE__ */ C({
|
|
2905
2908
|
__name: "MatrixHeaderRequired",
|
|
2906
2909
|
props: {
|
|
2907
2910
|
question: {},
|
|
@@ -2910,114 +2913,114 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2910
2913
|
setup(r) {
|
|
2911
2914
|
const o = r;
|
|
2912
2915
|
return B(() => o.column), (n, s) => n.column.isRenderedRequired ? (t(), u(w, { key: 0 }, [
|
|
2913
|
-
|
|
2916
|
+
go,
|
|
2914
2917
|
n.column.isRenderedRequired ? (t(), u("span", {
|
|
2915
2918
|
key: 0,
|
|
2916
2919
|
class: l(n.question.cssClasses.cellRequiredText)
|
|
2917
2920
|
}, I(n.column.requiredText), 3)) : m("", !0)
|
|
2918
2921
|
], 64)) : m("", !0);
|
|
2919
2922
|
}
|
|
2920
|
-
}),
|
|
2923
|
+
}), ho = ["data-responsive-title", "title", "colspan"], bo = /* @__PURE__ */ C({
|
|
2921
2924
|
__name: "MatrixCell",
|
|
2922
2925
|
props: {
|
|
2923
2926
|
question: {},
|
|
2924
2927
|
cell: {}
|
|
2925
2928
|
},
|
|
2926
2929
|
setup(r) {
|
|
2927
|
-
const o = r, n = S(!1), s = S(), e = () => o.cell.headers, i = () => !!o.cell.width || !!o.cell.minWidth ? { width: o.cell.width, minWidth: o.cell.minWidth } : null, a = () => o.cell.index || "", d = () => n.value = o.cell.question.isVisible, c = (
|
|
2930
|
+
const o = r, n = S(!1), s = S(), e = () => o.cell.headers, i = () => !!o.cell.width || !!o.cell.minWidth ? { width: o.cell.width, minWidth: o.cell.minWidth } : null, a = () => o.cell.index || "", d = () => n.value = o.cell.question.isVisible, c = (y) => ee(y);
|
|
2928
2931
|
return A(() => {
|
|
2929
2932
|
if (!(!o.cell.hasQuestion || !o.question || !o.question.survey)) {
|
|
2930
2933
|
d(), o.cell.question.registerPropertyChangedHandlers(["isVisible"], () => {
|
|
2931
2934
|
d();
|
|
2932
2935
|
});
|
|
2933
|
-
var
|
|
2936
|
+
var y = {
|
|
2934
2937
|
cell: o.cell.cell,
|
|
2935
2938
|
cellQuestion: o.cell.question,
|
|
2936
2939
|
htmlElement: s.value,
|
|
2937
2940
|
row: o.cell.row,
|
|
2938
2941
|
column: o.cell.cell.column
|
|
2939
2942
|
};
|
|
2940
|
-
o.question.survey.matrixAfterCellRender(o.question,
|
|
2943
|
+
o.question.survey.matrixAfterCellRender(o.question, y);
|
|
2941
2944
|
}
|
|
2942
|
-
}), (
|
|
2943
|
-
const g =
|
|
2945
|
+
}), (y, h) => {
|
|
2946
|
+
const g = v("survey-errors"), k = v("sv-matrix-drag-drop-icon"), P = v("sv-action-bar"), L = v("survey-radiogroup-item"), E = v("survey-checkbox-item"), j = v("survey-other-choice"), X = v("survey-string");
|
|
2944
2947
|
return t(), u("td", {
|
|
2945
|
-
class: l(
|
|
2948
|
+
class: l(y.cell.className),
|
|
2946
2949
|
"data-responsive-title": e(),
|
|
2947
|
-
title:
|
|
2950
|
+
title: y.cell.getTitle(),
|
|
2948
2951
|
style: $(i()),
|
|
2949
|
-
colspan:
|
|
2950
|
-
onFocusin:
|
|
2952
|
+
colspan: y.cell.colSpans,
|
|
2953
|
+
onFocusin: h[0] || (h[0] = (ne) => y.cell.focusIn()),
|
|
2951
2954
|
ref_key: "root",
|
|
2952
2955
|
ref: s
|
|
2953
2956
|
}, [
|
|
2954
|
-
|
|
2957
|
+
y.cell.isErrorsCell ? (t(), q(g, {
|
|
2955
2958
|
key: 0,
|
|
2956
|
-
element:
|
|
2959
|
+
element: y.cell.question
|
|
2957
2960
|
}, null, 8, ["element"])) : m("", !0),
|
|
2958
|
-
|
|
2961
|
+
y.cell.isDragHandlerCell ? (t(), q(k, {
|
|
2959
2962
|
key: 1,
|
|
2960
|
-
item: { data: { row:
|
|
2963
|
+
item: { data: { row: y.cell.row, question: y.question } }
|
|
2961
2964
|
}, null, 8, ["item"])) : m("", !0),
|
|
2962
|
-
|
|
2965
|
+
y.cell.isActionsCell ? (t(), q(P, {
|
|
2963
2966
|
key: 2,
|
|
2964
|
-
model:
|
|
2967
|
+
model: y.cell.item.getData(),
|
|
2965
2968
|
handleClick: !1
|
|
2966
2969
|
}, null, 8, ["model"])) : m("", !0),
|
|
2967
|
-
|
|
2970
|
+
y.cell.hasPanel ? (t(), q(N(c(y.cell.panel)), {
|
|
2968
2971
|
key: 3,
|
|
2969
|
-
question:
|
|
2970
|
-
css:
|
|
2972
|
+
question: y.cell.panel,
|
|
2973
|
+
css: y.question.cssClasses
|
|
2971
2974
|
}, null, 8, ["question", "css"])) : m("", !0),
|
|
2972
|
-
|
|
2975
|
+
y.cell.hasQuestion ? (t(), u("div", {
|
|
2973
2976
|
key: 4,
|
|
2974
|
-
class: l(
|
|
2977
|
+
class: l(y.question.cssClasses.cellQuestionWrapper)
|
|
2975
2978
|
}, [
|
|
2976
|
-
!
|
|
2979
|
+
!y.cell.isChoice && y.cell.question.isDefaultRendering() ? D((t(), q(N(c(y.cell.question)), {
|
|
2977
2980
|
key: 0,
|
|
2978
|
-
question:
|
|
2981
|
+
question: y.cell.question
|
|
2979
2982
|
}, null, 8, ["question"])), [
|
|
2980
2983
|
[H, n.value]
|
|
2981
2984
|
]) : m("", !0),
|
|
2982
|
-
!
|
|
2985
|
+
!y.cell.isChoice && !y.cell.question.isDefaultRendering() ? D((t(), q(N(y.cell.question.getComponentName()), {
|
|
2983
2986
|
key: 1,
|
|
2984
|
-
question:
|
|
2987
|
+
question: y.cell.question
|
|
2985
2988
|
}, null, 8, ["question"])), [
|
|
2986
2989
|
[H, n.value]
|
|
2987
2990
|
]) : m("", !0),
|
|
2988
|
-
|
|
2989
|
-
key:
|
|
2990
|
-
class: l(
|
|
2991
|
-
question:
|
|
2992
|
-
item:
|
|
2991
|
+
y.cell.isRadio ? (t(), q(L, {
|
|
2992
|
+
key: y.cell.item.value,
|
|
2993
|
+
class: l(y.cell.question.getItemClass(y.cell.item)),
|
|
2994
|
+
question: y.cell.question,
|
|
2995
|
+
item: y.cell.item,
|
|
2993
2996
|
index: a(),
|
|
2994
2997
|
hideLabel: !0
|
|
2995
2998
|
}, null, 8, ["class", "question", "item", "index"])) : m("", !0),
|
|
2996
|
-
|
|
2997
|
-
key:
|
|
2998
|
-
class: l(
|
|
2999
|
-
question:
|
|
3000
|
-
item:
|
|
2999
|
+
y.cell.isCheckbox ? (t(), q(E, {
|
|
3000
|
+
key: y.cell.item.value,
|
|
3001
|
+
class: l(y.cell.question.getItemClass(y.cell.item)),
|
|
3002
|
+
question: y.cell.question,
|
|
3003
|
+
item: y.cell.item,
|
|
3001
3004
|
index: a(),
|
|
3002
3005
|
hideLabel: !0
|
|
3003
3006
|
}, null, 8, ["class", "question", "item", "index"])) : m("", !0),
|
|
3004
|
-
|
|
3007
|
+
y.cell.isOtherChoice ? (t(), q(j, {
|
|
3005
3008
|
key: 4,
|
|
3006
|
-
question:
|
|
3009
|
+
question: y.cell.question
|
|
3007
3010
|
}, null, 8, ["question"])) : m("", !0)
|
|
3008
3011
|
], 2)) : m("", !0),
|
|
3009
|
-
|
|
3012
|
+
y.cell.hasTitle ? (t(), q(X, {
|
|
3010
3013
|
key: 5,
|
|
3011
|
-
locString:
|
|
3014
|
+
locString: y.cell.locTitle
|
|
3012
3015
|
}, null, 8, ["locString"])) : m("", !0),
|
|
3013
|
-
|
|
3016
|
+
y.cell.requiredText ? (t(), u("span", {
|
|
3014
3017
|
key: 6,
|
|
3015
|
-
class: l(
|
|
3016
|
-
}, I(
|
|
3017
|
-
], 46,
|
|
3018
|
+
class: l(y.question.cssClasses.cellRequiredText)
|
|
3019
|
+
}, I(y.cell.requiredText), 3)) : m("", !0)
|
|
3020
|
+
], 46, ho);
|
|
3018
3021
|
};
|
|
3019
3022
|
}
|
|
3020
|
-
}),
|
|
3023
|
+
}), ko = /* @__PURE__ */ C({
|
|
3021
3024
|
__name: "MatrixDynamic",
|
|
3022
3025
|
props: {
|
|
3023
3026
|
question: {}
|
|
@@ -3029,7 +3032,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
3029
3032
|
o.question.addRowUI();
|
|
3030
3033
|
};
|
|
3031
3034
|
return (e, i) => {
|
|
3032
|
-
const a =
|
|
3035
|
+
const a = v("survey-string"), d = v("survey-matrixtable");
|
|
3033
3036
|
return t(), u("div", {
|
|
3034
3037
|
ref_key: "root",
|
|
3035
3038
|
ref: n
|
|
@@ -3043,7 +3046,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
3043
3046
|
class: l(e.question.getAddRowButtonCss()),
|
|
3044
3047
|
onClick: s
|
|
3045
3048
|
}, [
|
|
3046
|
-
|
|
3049
|
+
b(a, {
|
|
3047
3050
|
locString: e.question.locAddRowText
|
|
3048
3051
|
}, null, 8, ["locString"]),
|
|
3049
3052
|
p("span", {
|
|
@@ -3051,7 +3054,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
3051
3054
|
}, null, 2)
|
|
3052
3055
|
], 2)
|
|
3053
3056
|
], 2)) : m("", !0),
|
|
3054
|
-
e.question.renderedTable.showTable ? (t(),
|
|
3057
|
+
e.question.renderedTable.showTable ? (t(), q(d, {
|
|
3055
3058
|
key: 1,
|
|
3056
3059
|
question: e.question
|
|
3057
3060
|
}, null, 8, ["question"])) : m("", !0),
|
|
@@ -3062,7 +3065,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
3062
3065
|
p("div", {
|
|
3063
3066
|
class: l(e.question.cssClasses.emptyRowsText)
|
|
3064
3067
|
}, [
|
|
3065
|
-
|
|
3068
|
+
b(a, {
|
|
3066
3069
|
locString: e.question.locEmptyRowsText
|
|
3067
3070
|
}, null, 8, ["locString"])
|
|
3068
3071
|
], 2),
|
|
@@ -3071,7 +3074,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
3071
3074
|
class: l(e.question.getAddRowButtonCss(!0)),
|
|
3072
3075
|
onClick: s
|
|
3073
3076
|
}, [
|
|
3074
|
-
|
|
3077
|
+
b(a, {
|
|
3075
3078
|
locString: e.question.locAddRowText
|
|
3076
3079
|
}, null, 8, ["locString"]),
|
|
3077
3080
|
p("span", {
|
|
@@ -3088,7 +3091,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
3088
3091
|
class: l(e.question.getAddRowButtonCss()),
|
|
3089
3092
|
onClick: s
|
|
3090
3093
|
}, [
|
|
3091
|
-
|
|
3094
|
+
b(a, {
|
|
3092
3095
|
locString: e.question.locAddRowText
|
|
3093
3096
|
}, null, 8, ["locString"]),
|
|
3094
3097
|
p("span", {
|
|
@@ -3106,7 +3109,7 @@ function se(r, o = !0) {
|
|
|
3106
3109
|
row: o ? T(() => r.item.data.row) : void 0
|
|
3107
3110
|
};
|
|
3108
3111
|
}
|
|
3109
|
-
const
|
|
3112
|
+
const fo = ["disabled"], Io = /* @__PURE__ */ C({
|
|
3110
3113
|
__name: "RemoveButton",
|
|
3111
3114
|
props: {
|
|
3112
3115
|
item: {}
|
|
@@ -3114,42 +3117,42 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3114
3117
|
setup(r) {
|
|
3115
3118
|
const o = r, { question: n, row: s } = se(o);
|
|
3116
3119
|
return (e, i) => {
|
|
3117
|
-
const a =
|
|
3120
|
+
const a = v("survey-string");
|
|
3118
3121
|
return t(), u("button", {
|
|
3119
3122
|
type: "button",
|
|
3120
|
-
class: l(
|
|
3121
|
-
disabled:
|
|
3122
|
-
onClick: i[0] || (i[0] = () =>
|
|
3123
|
+
class: l(f(n).getRemoveRowButtonCss()),
|
|
3124
|
+
disabled: f(n).isInputReadOnly,
|
|
3125
|
+
onClick: i[0] || (i[0] = () => f(n).removeRowUI(f(s)))
|
|
3123
3126
|
}, [
|
|
3124
|
-
|
|
3125
|
-
locString:
|
|
3127
|
+
b(a, {
|
|
3128
|
+
locString: f(n).locRemoveRowText
|
|
3126
3129
|
}, null, 8, ["locString"]),
|
|
3127
3130
|
p("span", {
|
|
3128
|
-
class: l(
|
|
3131
|
+
class: l(f(n).cssClasses.iconRemove)
|
|
3129
3132
|
}, null, 2)
|
|
3130
|
-
], 10,
|
|
3133
|
+
], 10, fo);
|
|
3131
3134
|
};
|
|
3132
3135
|
}
|
|
3133
|
-
}),
|
|
3136
|
+
}), wo = ["xlink:href"], So = /* @__PURE__ */ C({
|
|
3134
3137
|
__name: "DragDropIcon",
|
|
3135
3138
|
props: {
|
|
3136
3139
|
item: {}
|
|
3137
3140
|
},
|
|
3138
3141
|
setup(r) {
|
|
3139
3142
|
const o = r, { question: n } = se(o, !1);
|
|
3140
|
-
return (s, e) =>
|
|
3143
|
+
return (s, e) => f(n).iconDragElement ? (t(), u("svg", {
|
|
3141
3144
|
key: 0,
|
|
3142
|
-
class: l(
|
|
3145
|
+
class: l(f(n).cssClasses.dragElementDecorator)
|
|
3143
3146
|
}, [
|
|
3144
3147
|
p("use", {
|
|
3145
|
-
"xlink:href":
|
|
3146
|
-
}, null, 8,
|
|
3148
|
+
"xlink:href": f(n).iconDragElement
|
|
3149
|
+
}, null, 8, wo)
|
|
3147
3150
|
], 2)) : (t(), u("span", {
|
|
3148
3151
|
key: 1,
|
|
3149
|
-
class: l(
|
|
3152
|
+
class: l(f(n).cssClasses.iconDrag)
|
|
3150
3153
|
}, null, 2));
|
|
3151
3154
|
}
|
|
3152
|
-
}),
|
|
3155
|
+
}), To = ["aria-expanded", "aria-controls"], Ro = /* @__PURE__ */ C({
|
|
3153
3156
|
__name: "DetailButton",
|
|
3154
3157
|
props: {
|
|
3155
3158
|
item: {}
|
|
@@ -3157,23 +3160,23 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3157
3160
|
setup(r) {
|
|
3158
3161
|
const o = r, { question: n, row: s } = se(o);
|
|
3159
3162
|
return (e, i) => {
|
|
3160
|
-
const a =
|
|
3163
|
+
const a = v("sv-svg-icon");
|
|
3161
3164
|
return t(), u("button", {
|
|
3162
3165
|
type: "button",
|
|
3163
|
-
class: l(
|
|
3164
|
-
onClick: i[0] || (i[0] = () =>
|
|
3165
|
-
"aria-expanded":
|
|
3166
|
-
"aria-controls":
|
|
3166
|
+
class: l(f(n).getDetailPanelButtonCss(f(s))),
|
|
3167
|
+
onClick: i[0] || (i[0] = () => f(s).showHideDetailPanelClick()),
|
|
3168
|
+
"aria-expanded": f(n).getIsDetailPanelShowing(f(s)) ? "true" : "false",
|
|
3169
|
+
"aria-controls": f(n).getIsDetailPanelShowing(f(s)) ? f(s).detailPanelId : null
|
|
3167
3170
|
}, [
|
|
3168
|
-
|
|
3169
|
-
class: l(
|
|
3170
|
-
iconName:
|
|
3171
|
+
b(a, {
|
|
3172
|
+
class: l(f(n).getDetailPanelIconCss(f(s))),
|
|
3173
|
+
iconName: f(n).getDetailPanelIconId(f(s)),
|
|
3171
3174
|
size: "auto"
|
|
3172
3175
|
}, null, 8, ["class", "iconName"])
|
|
3173
|
-
], 10,
|
|
3176
|
+
], 10, To);
|
|
3174
3177
|
};
|
|
3175
3178
|
}
|
|
3176
|
-
}),
|
|
3179
|
+
}), $o = /* @__PURE__ */ C({
|
|
3177
3180
|
__name: "PanelDynamic",
|
|
3178
3181
|
props: {
|
|
3179
3182
|
question: {},
|
|
@@ -3210,7 +3213,7 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3210
3213
|
return o.question.currentPanel && a.push(o.question.currentPanel), a;
|
|
3211
3214
|
}), i = () => o.question.showLegacyNavigation;
|
|
3212
3215
|
return (a, d) => {
|
|
3213
|
-
const c =
|
|
3216
|
+
const c = v("survey-string"), y = v("sv-paneldynamic-add-btn"), h = v("survey-paneldynamicprogress"), g = v("survey-panel"), k = v("sv-paneldynamic-remove-btn"), P = v("survey-paneldynamicprogress-v2");
|
|
3214
3217
|
return t(), u("div", {
|
|
3215
3218
|
class: l(a.question.cssClasses.root),
|
|
3216
3219
|
ref_key: "root",
|
|
@@ -3221,11 +3224,11 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3221
3224
|
class: l(a.question.cssClasses.noEntriesPlaceholder)
|
|
3222
3225
|
}, [
|
|
3223
3226
|
p("span", null, [
|
|
3224
|
-
|
|
3227
|
+
b(c, {
|
|
3225
3228
|
locString: a.question.locNoEntriesText
|
|
3226
3229
|
}, null, 8, ["locString"])
|
|
3227
3230
|
]),
|
|
3228
|
-
|
|
3231
|
+
b(y, {
|
|
3229
3232
|
data: { question: a.question }
|
|
3230
3233
|
}, null, 8, ["data"])
|
|
3231
3234
|
], 2)) : m("", !0),
|
|
@@ -3239,7 +3242,7 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3239
3242
|
role: "progressbar"
|
|
3240
3243
|
}, null, 6)
|
|
3241
3244
|
], 2)) : m("", !0),
|
|
3242
|
-
i() && a.question.isProgressTopShowing ? (t(),
|
|
3245
|
+
i() && a.question.isProgressTopShowing ? (t(), q(h, {
|
|
3243
3246
|
key: 2,
|
|
3244
3247
|
question: a.question
|
|
3245
3248
|
}, null, 8, ["question"])) : m("", !0),
|
|
@@ -3249,11 +3252,11 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3249
3252
|
p("div", {
|
|
3250
3253
|
class: l(a.question.getPanelWrapperCss())
|
|
3251
3254
|
}, [
|
|
3252
|
-
|
|
3255
|
+
b(g, {
|
|
3253
3256
|
question: L,
|
|
3254
3257
|
css: a.css
|
|
3255
3258
|
}, null, 8, ["question", "css"]),
|
|
3256
|
-
a.question.panelRemoveButtonLocation === "right" && a.question.canRemovePanel && L.state !== "collapsed" ? (t(),
|
|
3259
|
+
a.question.panelRemoveButtonLocation === "right" && a.question.canRemovePanel && L.state !== "collapsed" ? (t(), q(k, {
|
|
3257
3260
|
key: 0,
|
|
3258
3261
|
data: { question: a.question, panel: L }
|
|
3259
3262
|
}, null, 8, ["data"])) : m("", !0)
|
|
@@ -3263,22 +3266,22 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3263
3266
|
key: "separator" + L.id
|
|
3264
3267
|
}, null, 2)) : m("", !0)
|
|
3265
3268
|
], 64))), 128)),
|
|
3266
|
-
i() && a.question.isProgressBottomShowing ? (t(),
|
|
3269
|
+
i() && a.question.isProgressBottomShowing ? (t(), q(h, {
|
|
3267
3270
|
key: 3,
|
|
3268
3271
|
question: a.question
|
|
3269
3272
|
}, null, 8, ["question"])) : m("", !0),
|
|
3270
|
-
i() && a.question.isRenderModeList ? (t(), y
|
|
3273
|
+
i() && a.question.isRenderModeList ? (t(), q(y, {
|
|
3271
3274
|
key: 4,
|
|
3272
3275
|
data: { question: a.question }
|
|
3273
3276
|
}, null, 8, ["data"])) : m("", !0),
|
|
3274
|
-
a.question.showNavigation ? (t(),
|
|
3277
|
+
a.question.showNavigation ? (t(), q(P, {
|
|
3275
3278
|
key: 5,
|
|
3276
3279
|
question: a.question
|
|
3277
3280
|
}, null, 8, ["question"])) : m("", !0)
|
|
3278
3281
|
], 2);
|
|
3279
3282
|
};
|
|
3280
3283
|
}
|
|
3281
|
-
}),
|
|
3284
|
+
}), Bo = /* @__PURE__ */ C({
|
|
3282
3285
|
__name: "PanelDynamicProgress",
|
|
3283
3286
|
props: {
|
|
3284
3287
|
question: {}
|
|
@@ -3286,7 +3289,7 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3286
3289
|
setup(r) {
|
|
3287
3290
|
const o = r, n = () => o.question.isProgressTopShowing ? o.question.cssClasses.progressTop : o.question.cssClasses.progressBottom;
|
|
3288
3291
|
return (s, e) => {
|
|
3289
|
-
const i =
|
|
3292
|
+
const i = v("sv-paneldynamic-prev-btn"), a = v("sv-paneldynamic-next-btn"), d = v("sv-paneldynamic-add-btn"), c = v("sv-paneldynamic-progress-text");
|
|
3290
3293
|
return t(), u("div", {
|
|
3291
3294
|
class: l(n())
|
|
3292
3295
|
}, [
|
|
@@ -3297,7 +3300,7 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3297
3300
|
p("div", {
|
|
3298
3301
|
class: l(s.question.cssClasses.progressContainer)
|
|
3299
3302
|
}, [
|
|
3300
|
-
|
|
3303
|
+
b(i, {
|
|
3301
3304
|
data: { question: s.question }
|
|
3302
3305
|
}, null, 8, ["data"]),
|
|
3303
3306
|
s.question.isRangeShowing ? (t(), u("div", {
|
|
@@ -3310,28 +3313,28 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3310
3313
|
role: "progressbar"
|
|
3311
3314
|
}, null, 6)
|
|
3312
3315
|
], 2)) : m("", !0),
|
|
3313
|
-
|
|
3316
|
+
b(a, {
|
|
3314
3317
|
data: { question: s.question }
|
|
3315
3318
|
}, null, 8, ["data"])
|
|
3316
3319
|
], 2),
|
|
3317
|
-
|
|
3320
|
+
b(d, {
|
|
3318
3321
|
data: { question: s.question }
|
|
3319
3322
|
}, null, 8, ["data"]),
|
|
3320
|
-
|
|
3323
|
+
b(c, {
|
|
3321
3324
|
data: { question: s.question }
|
|
3322
3325
|
}, null, 8, ["data"])
|
|
3323
3326
|
], 2)
|
|
3324
3327
|
], 2);
|
|
3325
3328
|
};
|
|
3326
3329
|
}
|
|
3327
|
-
}),
|
|
3330
|
+
}), Lo = /* @__PURE__ */ C({
|
|
3328
3331
|
__name: "PanelDynamicProgressV2",
|
|
3329
3332
|
props: {
|
|
3330
3333
|
question: {}
|
|
3331
3334
|
},
|
|
3332
3335
|
setup(r) {
|
|
3333
3336
|
return (o, n) => {
|
|
3334
|
-
const s =
|
|
3337
|
+
const s = v("sv-action-bar");
|
|
3335
3338
|
return o.question.cssClasses.footer ? (t(), u("div", {
|
|
3336
3339
|
key: 0,
|
|
3337
3340
|
class: l(o.question.cssClasses.footer)
|
|
@@ -3353,7 +3356,7 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3353
3356
|
key: 1,
|
|
3354
3357
|
class: l(o.question.cssClasses.footerButtonsContainer)
|
|
3355
3358
|
}, [
|
|
3356
|
-
|
|
3359
|
+
b(s, {
|
|
3357
3360
|
model: o.question.footerToolbar
|
|
3358
3361
|
}, null, 8, ["model"])
|
|
3359
3362
|
], 2)) : m("", !0)
|
|
@@ -3366,7 +3369,7 @@ function K(r) {
|
|
|
3366
3369
|
() => r.item && r.item.data.question || r.data.question
|
|
3367
3370
|
);
|
|
3368
3371
|
}
|
|
3369
|
-
const
|
|
3372
|
+
const Do = /* @__PURE__ */ C({
|
|
3370
3373
|
__name: "PaneldynamicAddBtn",
|
|
3371
3374
|
props: {
|
|
3372
3375
|
item: {},
|
|
@@ -3376,18 +3379,18 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3376
3379
|
const n = K(r), s = () => {
|
|
3377
3380
|
n.value.addPanelUI();
|
|
3378
3381
|
};
|
|
3379
|
-
return (e, i) =>
|
|
3382
|
+
return (e, i) => f(n).canAddPanel ? (t(), u("button", {
|
|
3380
3383
|
key: 0,
|
|
3381
3384
|
type: "button",
|
|
3382
|
-
class: l(
|
|
3385
|
+
class: l(f(n).getAddButtonCss()),
|
|
3383
3386
|
onClick: s
|
|
3384
3387
|
}, [
|
|
3385
3388
|
p("span", {
|
|
3386
|
-
class: l(
|
|
3387
|
-
}, I(
|
|
3389
|
+
class: l(f(n).cssClasses.buttonAddText)
|
|
3390
|
+
}, I(f(n).panelAddText), 3)
|
|
3388
3391
|
], 2)) : m("", !0);
|
|
3389
3392
|
}
|
|
3390
|
-
}),
|
|
3393
|
+
}), Po = ["title"], Mo = /* @__PURE__ */ C({
|
|
3391
3394
|
__name: "PaneldynamicNextBtn",
|
|
3392
3395
|
props: {
|
|
3393
3396
|
item: {},
|
|
@@ -3398,20 +3401,20 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3398
3401
|
n.value.goToNextPanel();
|
|
3399
3402
|
};
|
|
3400
3403
|
return (e, i) => {
|
|
3401
|
-
const a =
|
|
3404
|
+
const a = v("sv-svg-icon");
|
|
3402
3405
|
return t(), u("div", {
|
|
3403
|
-
title:
|
|
3406
|
+
title: f(n).panelNextText,
|
|
3404
3407
|
onClick: s,
|
|
3405
|
-
class: l(
|
|
3408
|
+
class: l(f(n).getNextButtonCss())
|
|
3406
3409
|
}, [
|
|
3407
|
-
|
|
3408
|
-
iconName:
|
|
3410
|
+
b(a, {
|
|
3411
|
+
iconName: f(n).cssClasses.progressBtnIcon,
|
|
3409
3412
|
size: "auto"
|
|
3410
3413
|
}, null, 8, ["iconName"])
|
|
3411
|
-
], 10,
|
|
3414
|
+
], 10, Po);
|
|
3412
3415
|
};
|
|
3413
3416
|
}
|
|
3414
|
-
}),
|
|
3417
|
+
}), No = ["title"], Ho = /* @__PURE__ */ C({
|
|
3415
3418
|
__name: "PaneldynamicPrevBtn",
|
|
3416
3419
|
props: {
|
|
3417
3420
|
item: {},
|
|
@@ -3422,20 +3425,20 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3422
3425
|
n.value.goToPrevPanel();
|
|
3423
3426
|
};
|
|
3424
3427
|
return (e, i) => {
|
|
3425
|
-
const a =
|
|
3428
|
+
const a = v("sv-svg-icon");
|
|
3426
3429
|
return t(), u("div", {
|
|
3427
|
-
title:
|
|
3430
|
+
title: f(n).panelPrevText,
|
|
3428
3431
|
onClick: s,
|
|
3429
|
-
class: l(
|
|
3432
|
+
class: l(f(n).getPrevButtonCss())
|
|
3430
3433
|
}, [
|
|
3431
|
-
|
|
3432
|
-
iconName:
|
|
3434
|
+
b(a, {
|
|
3435
|
+
iconName: f(n).cssClasses.progressBtnIcon,
|
|
3433
3436
|
size: "auto"
|
|
3434
3437
|
}, null, 8, ["iconName"])
|
|
3435
|
-
], 10,
|
|
3438
|
+
], 10, No);
|
|
3436
3439
|
};
|
|
3437
3440
|
}
|
|
3438
|
-
}),
|
|
3441
|
+
}), Ao = /* @__PURE__ */ C({
|
|
3439
3442
|
__name: "PaneldynamicRemoveBtn",
|
|
3440
3443
|
props: {
|
|
3441
3444
|
item: {},
|
|
@@ -3449,18 +3452,18 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3449
3452
|
};
|
|
3450
3453
|
return (i, a) => (t(), u("button", {
|
|
3451
3454
|
type: "button",
|
|
3452
|
-
class: l(
|
|
3455
|
+
class: l(f(n).getPanelRemoveButtonCss()),
|
|
3453
3456
|
onClick: a[0] || (a[0] = (d) => e(s.value))
|
|
3454
3457
|
}, [
|
|
3455
3458
|
p("span", {
|
|
3456
|
-
class: l(
|
|
3457
|
-
}, I(
|
|
3459
|
+
class: l(f(n).cssClasses.buttonRemoveText)
|
|
3460
|
+
}, I(f(n).panelRemoveText), 3),
|
|
3458
3461
|
p("span", {
|
|
3459
|
-
class: l(
|
|
3462
|
+
class: l(f(n).cssClasses.iconRemove)
|
|
3460
3463
|
}, null, 2)
|
|
3461
3464
|
], 2));
|
|
3462
3465
|
}
|
|
3463
|
-
}),
|
|
3466
|
+
}), Eo = /* @__PURE__ */ C({
|
|
3464
3467
|
__name: "PaneldynamicProgressText",
|
|
3465
3468
|
props: {
|
|
3466
3469
|
item: {},
|
|
@@ -3469,10 +3472,10 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3469
3472
|
setup(r) {
|
|
3470
3473
|
const n = K(r);
|
|
3471
3474
|
return (s, e) => (t(), u("div", {
|
|
3472
|
-
class: l(
|
|
3473
|
-
}, I(
|
|
3475
|
+
class: l(f(n).cssClasses.progressText)
|
|
3476
|
+
}, I(f(n).progressText), 3));
|
|
3474
3477
|
}
|
|
3475
|
-
}),
|
|
3478
|
+
}), Vo = ["id"], Oo = /* @__PURE__ */ C({
|
|
3476
3479
|
__name: "Errors",
|
|
3477
3480
|
props: {
|
|
3478
3481
|
element: {},
|
|
@@ -3481,7 +3484,7 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3481
3484
|
setup(r) {
|
|
3482
3485
|
const o = S();
|
|
3483
3486
|
return (n, s) => {
|
|
3484
|
-
const e =
|
|
3487
|
+
const e = v("survey-string");
|
|
3485
3488
|
return n.element.hasVisibleErrors ? (t(), u("div", {
|
|
3486
3489
|
key: 0,
|
|
3487
3490
|
role: "alert",
|
|
@@ -3505,22 +3508,22 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3505
3508
|
n.element.cssClasses ? n.element.cssClasses.error.item || void 0 : "panel-error-item"
|
|
3506
3509
|
)
|
|
3507
3510
|
}, [
|
|
3508
|
-
|
|
3511
|
+
b(e, {
|
|
3509
3512
|
locString: i.locText
|
|
3510
3513
|
}, null, 8, ["locString"])
|
|
3511
3514
|
], 2)
|
|
3512
3515
|
]))), 128))
|
|
3513
|
-
], 10,
|
|
3516
|
+
], 10, Vo)) : m("", !0);
|
|
3514
3517
|
};
|
|
3515
3518
|
}
|
|
3516
|
-
}),
|
|
3519
|
+
}), Fo = { key: 0 }, Wo = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], zo = /* @__PURE__ */ C({
|
|
3517
3520
|
__name: "QuestionComment",
|
|
3518
3521
|
props: {
|
|
3519
3522
|
question: {},
|
|
3520
3523
|
commentClass: {}
|
|
3521
3524
|
},
|
|
3522
3525
|
setup(r) {
|
|
3523
|
-
return (o, n) => o.question.isReadOnlyRenderDiv() ? (t(), u("div",
|
|
3526
|
+
return (o, n) => o.question.isReadOnlyRenderDiv() ? (t(), u("div", Fo, I(o.question.comment), 1)) : (t(), u("textarea", {
|
|
3524
3527
|
key: 1,
|
|
3525
3528
|
id: o.question.commentId,
|
|
3526
3529
|
readonly: o.question.isInputReadOnly,
|
|
@@ -3538,9 +3541,9 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3538
3541
|
onInput: n[1] || (n[1] = (s) => {
|
|
3539
3542
|
o.question.onCommentInput(s);
|
|
3540
3543
|
})
|
|
3541
|
-
}, null, 46,
|
|
3544
|
+
}, null, 46, Wo));
|
|
3542
3545
|
}
|
|
3543
|
-
}),
|
|
3546
|
+
}), Uo = /* @__PURE__ */ C({
|
|
3544
3547
|
__name: "TitleElement",
|
|
3545
3548
|
props: {
|
|
3546
3549
|
element: {},
|
|
@@ -3551,8 +3554,8 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3551
3554
|
de(n);
|
|
3552
3555
|
};
|
|
3553
3556
|
return (n, s) => {
|
|
3554
|
-
const e =
|
|
3555
|
-
return n.element.hasTitle ? (t(),
|
|
3557
|
+
const e = v("survey-element-title-content"), i = v("sv-title-actions");
|
|
3558
|
+
return n.element.hasTitle ? (t(), q(N(n.element.titleTagName), {
|
|
3556
3559
|
key: 0,
|
|
3557
3560
|
class: l(n.element.cssTitle),
|
|
3558
3561
|
"aria-label": n.element.titleAriaLabel,
|
|
@@ -3564,13 +3567,13 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3564
3567
|
o(a);
|
|
3565
3568
|
})
|
|
3566
3569
|
}, {
|
|
3567
|
-
default:
|
|
3568
|
-
n.element.hasTitleActions ? m("", !0) : (t(),
|
|
3570
|
+
default: ye(() => [
|
|
3571
|
+
n.element.hasTitleActions ? m("", !0) : (t(), q(e, {
|
|
3569
3572
|
key: 0,
|
|
3570
3573
|
element: n.element,
|
|
3571
3574
|
css: n.css
|
|
3572
3575
|
}, null, 8, ["element", "css"])),
|
|
3573
|
-
n.element.hasTitleActions ? (t(),
|
|
3576
|
+
n.element.hasTitleActions ? (t(), q(i, {
|
|
3574
3577
|
key: 1,
|
|
3575
3578
|
element: n.element,
|
|
3576
3579
|
css: n.css
|
|
@@ -3580,7 +3583,7 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3580
3583
|
}, 40, ["class", "aria-label", "id", "tabindex", "aria-expanded", "role"])) : m("", !0);
|
|
3581
3584
|
};
|
|
3582
3585
|
}
|
|
3583
|
-
}),
|
|
3586
|
+
}), Ko = { class: "sv-vue-title-additional-div" }, jo = { key: 3 }, Qo = { key: 5 }, _o = { key: 7 }, Zo = /* @__PURE__ */ C({
|
|
3584
3587
|
__name: "TitleContent",
|
|
3585
3588
|
props: {
|
|
3586
3589
|
element: {},
|
|
@@ -3588,9 +3591,9 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3588
3591
|
},
|
|
3589
3592
|
setup(r) {
|
|
3590
3593
|
return (o, n) => {
|
|
3591
|
-
const s =
|
|
3592
|
-
return t(), u("div",
|
|
3593
|
-
o.element.isTitleRenderedAsString ? (t(),
|
|
3594
|
+
const s = v("survey-string");
|
|
3595
|
+
return t(), u("div", Ko, [
|
|
3596
|
+
o.element.isTitleRenderedAsString ? (t(), q(s, {
|
|
3594
3597
|
key: 0,
|
|
3595
3598
|
locString: o.element.locTitle
|
|
3596
3599
|
}, null, 8, ["locString"])) : m("", !0),
|
|
@@ -3605,18 +3608,18 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3605
3608
|
class: l(o.element.cssTitleNumber),
|
|
3606
3609
|
"aria-hidden": !0
|
|
3607
3610
|
}, I(o.element.no), 3)) : m("", !0),
|
|
3608
|
-
!o.element.isTitleRenderedAsString && o.element.no ? (t(), u("span",
|
|
3611
|
+
!o.element.isTitleRenderedAsString && o.element.no ? (t(), u("span", jo, "\xA0")) : m("", !0),
|
|
3609
3612
|
!o.element.isTitleRenderedAsString && o.element.isRequireTextBeforeTitle ? (t(), u("span", {
|
|
3610
3613
|
key: 4,
|
|
3611
3614
|
class: l(o.element.cssClasses.requiredText),
|
|
3612
3615
|
"aria-hidden": !0
|
|
3613
3616
|
}, I(o.element.requiredText), 3)) : m("", !0),
|
|
3614
|
-
!o.element.isTitleRenderedAsString && o.element.isRequireTextBeforeTitle ? (t(), u("span",
|
|
3615
|
-
o.element.isTitleRenderedAsString ? m("", !0) : (t(),
|
|
3617
|
+
!o.element.isTitleRenderedAsString && o.element.isRequireTextBeforeTitle ? (t(), u("span", Qo, "\xA0")) : m("", !0),
|
|
3618
|
+
o.element.isTitleRenderedAsString ? m("", !0) : (t(), q(s, {
|
|
3616
3619
|
key: 6,
|
|
3617
3620
|
locString: o.element.locTitle
|
|
3618
3621
|
}, null, 8, ["locString"])),
|
|
3619
|
-
!o.element.isTitleRenderedAsString && o.element.isRequireTextAfterTitle ? (t(), u("span",
|
|
3622
|
+
!o.element.isTitleRenderedAsString && o.element.isRequireTextAfterTitle ? (t(), u("span", _o, "\xA0")) : m("", !0),
|
|
3620
3623
|
!o.element.isTitleRenderedAsString && o.element.isRequireTextAfterTitle ? (t(), u("span", {
|
|
3621
3624
|
key: 8,
|
|
3622
3625
|
class: l(o.element.cssClasses.requiredText),
|
|
@@ -3625,7 +3628,7 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3625
3628
|
]);
|
|
3626
3629
|
};
|
|
3627
3630
|
}
|
|
3628
|
-
}),
|
|
3631
|
+
}), Go = { class: "sv-title-actions" }, Xo = { class: "sv-title-actions__title" }, Jo = /* @__PURE__ */ C({
|
|
3629
3632
|
__name: "TitleActions",
|
|
3630
3633
|
props: {
|
|
3631
3634
|
element: {},
|
|
@@ -3634,37 +3637,37 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3634
3637
|
setup(r) {
|
|
3635
3638
|
const o = r, n = T(() => o.element.getTitleToolbar());
|
|
3636
3639
|
return (s, e) => {
|
|
3637
|
-
const i =
|
|
3638
|
-
return t(), u("div",
|
|
3639
|
-
p("span",
|
|
3640
|
-
s.element.isPage ? (t(),
|
|
3640
|
+
const i = v("survey-string"), a = v("survey-element-title-content"), d = v("sv-action-bar");
|
|
3641
|
+
return t(), u("div", Go, [
|
|
3642
|
+
p("span", Xo, [
|
|
3643
|
+
s.element.isPage ? (t(), q(i, {
|
|
3641
3644
|
key: 0,
|
|
3642
3645
|
locString: s.element.locTitle
|
|
3643
3646
|
}, null, 8, ["locString"])) : m("", !0),
|
|
3644
|
-
s.element.isPage ? m("", !0) : (t(),
|
|
3647
|
+
s.element.isPage ? m("", !0) : (t(), q(a, {
|
|
3645
3648
|
key: 1,
|
|
3646
3649
|
element: s.element,
|
|
3647
3650
|
css: s.css
|
|
3648
3651
|
}, null, 8, ["element", "css"]))
|
|
3649
3652
|
]),
|
|
3650
|
-
|
|
3653
|
+
b(d, { model: n.value }, null, 8, ["model"])
|
|
3651
3654
|
]);
|
|
3652
3655
|
};
|
|
3653
3656
|
}
|
|
3654
|
-
}),
|
|
3657
|
+
}), me = (r, o) => {
|
|
3655
3658
|
const n = r.__vccOpts || r;
|
|
3656
3659
|
for (const [s, e] of o)
|
|
3657
3660
|
n[s] = e;
|
|
3658
3661
|
return n;
|
|
3659
|
-
}, Yo = {},
|
|
3660
|
-
|
|
3662
|
+
}, Yo = {}, xo = { class: "sv-brand-info" }, et = /* @__PURE__ */ ge('<a class="sv-brand-info__logo" href="https://surveyjs.io/?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=landing_page"><img src="https://surveyjs.io/Content/Images/poweredby.svg"></a><div class="sv-brand-info__text"> Try and see how easy it is to <a href="https://surveyjs.io/create-survey?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=create_survey">create a survey</a></div><div class="sv-brand-info__terms"><a href="https://surveyjs.io/TermsOfUse">Terms of Use & Privacy Statement</a></div>', 3), st = [
|
|
3663
|
+
et
|
|
3661
3664
|
];
|
|
3662
|
-
function
|
|
3663
|
-
return t(), u("div",
|
|
3665
|
+
function nt(r, o) {
|
|
3666
|
+
return t(), u("div", xo, st);
|
|
3664
3667
|
}
|
|
3665
|
-
const
|
|
3666
|
-
|
|
3667
|
-
],
|
|
3668
|
+
const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /* @__PURE__ */ p("use", null, null, -1), lt = [
|
|
3669
|
+
it
|
|
3670
|
+
], rt = /* @__PURE__ */ C({
|
|
3668
3671
|
__name: "SvgIcon",
|
|
3669
3672
|
props: {
|
|
3670
3673
|
size: {},
|
|
@@ -3675,7 +3678,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3675
3678
|
},
|
|
3676
3679
|
setup(r) {
|
|
3677
3680
|
const o = r, n = S(), s = () => {
|
|
3678
|
-
|
|
3681
|
+
Te(
|
|
3679
3682
|
o.size,
|
|
3680
3683
|
o.width,
|
|
3681
3684
|
o.height,
|
|
@@ -3684,7 +3687,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3684
3687
|
o.title
|
|
3685
3688
|
);
|
|
3686
3689
|
};
|
|
3687
|
-
return
|
|
3690
|
+
return Z(() => {
|
|
3688
3691
|
s();
|
|
3689
3692
|
}), A(() => {
|
|
3690
3693
|
s();
|
|
@@ -3694,9 +3697,9 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3694
3697
|
class: "sv-svg-icon",
|
|
3695
3698
|
role: "img",
|
|
3696
3699
|
"aria-label": e.title
|
|
3697
|
-
},
|
|
3700
|
+
}, lt, 8, tt));
|
|
3698
3701
|
}
|
|
3699
|
-
}),
|
|
3702
|
+
}), at = /* @__PURE__ */ C({
|
|
3700
3703
|
__name: "ActionBar",
|
|
3701
3704
|
props: {
|
|
3702
3705
|
model: {},
|
|
@@ -3710,7 +3713,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3710
3713
|
}), V(() => {
|
|
3711
3714
|
o.model.resetResponsivityManager();
|
|
3712
3715
|
}), (s, e) => {
|
|
3713
|
-
const i =
|
|
3716
|
+
const i = v("sv-action");
|
|
3714
3717
|
return s.model.hasActions ? (t(), u("div", {
|
|
3715
3718
|
key: 0,
|
|
3716
3719
|
ref_key: "root",
|
|
@@ -3720,14 +3723,14 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3720
3723
|
a.stopPropagation();
|
|
3721
3724
|
})
|
|
3722
3725
|
}, [
|
|
3723
|
-
(t(!0), u(w, null, R(s.model.renderedActions, (a) => (t(),
|
|
3726
|
+
(t(!0), u(w, null, R(s.model.renderedActions, (a) => (t(), q(i, {
|
|
3724
3727
|
key: a.id,
|
|
3725
3728
|
item: a
|
|
3726
3729
|
}, null, 8, ["item"]))), 128))
|
|
3727
3730
|
], 2)) : m("", !0);
|
|
3728
3731
|
};
|
|
3729
3732
|
}
|
|
3730
|
-
}),
|
|
3733
|
+
}), ut = ["id"], dt = { class: "sv-action__content" }, mt = /* @__PURE__ */ C({
|
|
3731
3734
|
__name: "Action",
|
|
3732
3735
|
props: {
|
|
3733
3736
|
item: {}
|
|
@@ -3737,19 +3740,19 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3737
3740
|
() => o.item.component || "sv-action-bar-item"
|
|
3738
3741
|
);
|
|
3739
3742
|
return B(() => o.item), (s, e) => {
|
|
3740
|
-
const i =
|
|
3743
|
+
const i = v("sv-action-bar-separator");
|
|
3741
3744
|
return t(), u("div", {
|
|
3742
3745
|
class: l(s.item.getActionRootCss()),
|
|
3743
3746
|
id: s.item.id
|
|
3744
3747
|
}, [
|
|
3745
|
-
p("div",
|
|
3746
|
-
s.item.needSeparator ? (t(),
|
|
3747
|
-
(t(),
|
|
3748
|
+
p("div", dt, [
|
|
3749
|
+
s.item.needSeparator ? (t(), q(i, { key: 0 })) : m("", !0),
|
|
3750
|
+
(t(), q(N(n.value), { item: s.item }, null, 8, ["item"]))
|
|
3748
3751
|
])
|
|
3749
|
-
], 10,
|
|
3752
|
+
], 10, ut);
|
|
3750
3753
|
};
|
|
3751
3754
|
}
|
|
3752
|
-
}),
|
|
3755
|
+
}), ct = ["disabled", "title", "aria-checked", "aria-expanded", "role", "tabindex"], pt = /* @__PURE__ */ C({
|
|
3753
3756
|
__name: "ActionBarItem",
|
|
3754
3757
|
props: {
|
|
3755
3758
|
item: {}
|
|
@@ -3757,7 +3760,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3757
3760
|
setup(r) {
|
|
3758
3761
|
const o = r;
|
|
3759
3762
|
return B(() => o.item), (n, s) => {
|
|
3760
|
-
const e =
|
|
3763
|
+
const e = v("sv-svg-icon");
|
|
3761
3764
|
return t(), u("button", {
|
|
3762
3765
|
class: l(n.item.getActionBarItemCss()),
|
|
3763
3766
|
type: "button",
|
|
@@ -3774,7 +3777,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3774
3777
|
role: n.item.ariaRole,
|
|
3775
3778
|
tabindex: n.item.disableTabStop ? -1 : 0
|
|
3776
3779
|
}, [
|
|
3777
|
-
n.item.iconName ? (t(),
|
|
3780
|
+
n.item.iconName ? (t(), q(e, {
|
|
3778
3781
|
key: 0,
|
|
3779
3782
|
class: l(n.item.cssClasses.itemIcon),
|
|
3780
3783
|
iconName: n.item.iconName,
|
|
@@ -3785,27 +3788,27 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3785
3788
|
key: 1,
|
|
3786
3789
|
class: l(n.item.getActionBarItemTitleCss())
|
|
3787
3790
|
}, I(n.item.title), 3)) : m("", !0)
|
|
3788
|
-
], 42,
|
|
3791
|
+
], 42, ct);
|
|
3789
3792
|
};
|
|
3790
3793
|
}
|
|
3791
|
-
}),
|
|
3794
|
+
}), vt = ["disabled", "title", "role", "tabindex"], qt = /* @__PURE__ */ C({
|
|
3792
3795
|
__name: "ActionBarItemDropdown",
|
|
3793
3796
|
props: {
|
|
3794
3797
|
item: {}
|
|
3795
3798
|
},
|
|
3796
3799
|
setup(r) {
|
|
3797
|
-
const o = r, n =
|
|
3800
|
+
const o = r, n = $e;
|
|
3798
3801
|
let s;
|
|
3799
3802
|
return B(
|
|
3800
3803
|
() => o.item,
|
|
3801
3804
|
(e) => {
|
|
3802
|
-
s = new
|
|
3805
|
+
s = new Re(e);
|
|
3803
3806
|
},
|
|
3804
3807
|
() => {
|
|
3805
3808
|
s.dispose();
|
|
3806
3809
|
}
|
|
3807
3810
|
), (e, i) => {
|
|
3808
|
-
const a =
|
|
3811
|
+
const a = v("sv-svg-icon"), d = v("sv-popup");
|
|
3809
3812
|
return t(), u(w, null, [
|
|
3810
3813
|
p("button", {
|
|
3811
3814
|
type: "button",
|
|
@@ -3821,7 +3824,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3821
3824
|
role: e.item.ariaRole,
|
|
3822
3825
|
tabindex: e.item.disableTabStop ? -1 : 0
|
|
3823
3826
|
}, [
|
|
3824
|
-
e.item.iconName ? (t(),
|
|
3827
|
+
e.item.iconName ? (t(), q(a, {
|
|
3825
3828
|
key: 0,
|
|
3826
3829
|
class: l(e.item.cssClasses.itemIcon),
|
|
3827
3830
|
iconName: e.item.iconName,
|
|
@@ -3832,15 +3835,15 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3832
3835
|
key: 1,
|
|
3833
3836
|
class: l(e.item.getActionBarItemTitleCss())
|
|
3834
3837
|
}, I(e.item.title), 3)) : m("", !0)
|
|
3835
|
-
], 42,
|
|
3836
|
-
|
|
3838
|
+
], 42, vt),
|
|
3839
|
+
b(d, {
|
|
3837
3840
|
model: e.item.popupModel,
|
|
3838
|
-
getTarget:
|
|
3841
|
+
getTarget: f(n)
|
|
3839
3842
|
}, null, 8, ["model", "getTarget"])
|
|
3840
3843
|
], 64);
|
|
3841
3844
|
};
|
|
3842
3845
|
}
|
|
3843
|
-
}),
|
|
3846
|
+
}), yt = /* @__PURE__ */ C({
|
|
3844
3847
|
__name: "ActionBarSeparator",
|
|
3845
3848
|
props: {
|
|
3846
3849
|
item: {}
|
|
@@ -3851,7 +3854,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3851
3854
|
class: l(["sv-action-bar-separator", n.value])
|
|
3852
3855
|
}, null, 2));
|
|
3853
3856
|
}
|
|
3854
|
-
}),
|
|
3857
|
+
}), gt = ["aria-label", "placeholder", "value"], Ct = ["aria-label"], ht = ["id"], bt = /* @__PURE__ */ C({
|
|
3855
3858
|
__name: "List",
|
|
3856
3859
|
props: {
|
|
3857
3860
|
model: {}
|
|
@@ -3869,7 +3872,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3869
3872
|
return B(() => o.model), A(() => {
|
|
3870
3873
|
o.model.initListContainerHtmlElement(n.value);
|
|
3871
3874
|
}), (a, d) => {
|
|
3872
|
-
const c =
|
|
3875
|
+
const c = v("sv-svg-icon"), y = v("sv-list-item");
|
|
3873
3876
|
return t(), u("div", {
|
|
3874
3877
|
class: l(a.model.cssClasses.root),
|
|
3875
3878
|
ref_key: "listContainerElement",
|
|
@@ -3882,7 +3885,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3882
3885
|
p("div", {
|
|
3883
3886
|
class: l(a.model.cssClasses.filterIcon)
|
|
3884
3887
|
}, [
|
|
3885
|
-
|
|
3888
|
+
b(c, {
|
|
3886
3889
|
iconName: "icon-search",
|
|
3887
3890
|
size: "auto"
|
|
3888
3891
|
})
|
|
@@ -3895,15 +3898,15 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3895
3898
|
value: a.model.filterString,
|
|
3896
3899
|
onChange: s,
|
|
3897
3900
|
onKeyup: e
|
|
3898
|
-
}, null, 42,
|
|
3901
|
+
}, null, 42, gt),
|
|
3899
3902
|
a.model.showSearchClearButton && !!a.model.filterString ? (t(), u("button", {
|
|
3900
3903
|
key: 0,
|
|
3901
|
-
onClick: d[0] || (d[0] = (
|
|
3902
|
-
a.model.onClickSearchClearButton(
|
|
3904
|
+
onClick: d[0] || (d[0] = (h) => {
|
|
3905
|
+
a.model.onClickSearchClearButton(h);
|
|
3903
3906
|
}),
|
|
3904
3907
|
class: l(a.model.cssClasses.searchClearButtonIcon)
|
|
3905
3908
|
}, [
|
|
3906
|
-
|
|
3909
|
+
b(c, {
|
|
3907
3910
|
iconName: "icon-searchclear",
|
|
3908
3911
|
size: "auto"
|
|
3909
3912
|
})
|
|
@@ -3915,7 +3918,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3915
3918
|
p("div", {
|
|
3916
3919
|
class: l(a.model.cssClasses.emptyText),
|
|
3917
3920
|
"aria-label": a.model.emptyMessage
|
|
3918
|
-
}, I(a.model.emptyMessage), 11,
|
|
3921
|
+
}, I(a.model.emptyMessage), 11, Ct)
|
|
3919
3922
|
], 2), [
|
|
3920
3923
|
[H, a.model.isEmpty]
|
|
3921
3924
|
]),
|
|
@@ -3924,26 +3927,26 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3924
3927
|
class: l(a.model.getListClass()),
|
|
3925
3928
|
role: "listbox",
|
|
3926
3929
|
id: a.model.elementId,
|
|
3927
|
-
onMousedown: d[1] || (d[1] = (
|
|
3928
|
-
|
|
3930
|
+
onMousedown: d[1] || (d[1] = (h) => {
|
|
3931
|
+
h.preventDefault();
|
|
3929
3932
|
}),
|
|
3930
3933
|
onMousemove: i,
|
|
3931
|
-
onKeydown: d[2] || (d[2] = (
|
|
3932
|
-
a.model.onKeyDown(
|
|
3934
|
+
onKeydown: d[2] || (d[2] = (h) => {
|
|
3935
|
+
a.model.onKeyDown(h);
|
|
3933
3936
|
})
|
|
3934
3937
|
}, [
|
|
3935
|
-
(t(!0), u(w, null, R(a.model.renderedActions, (
|
|
3936
|
-
item:
|
|
3938
|
+
(t(!0), u(w, null, R(a.model.renderedActions, (h) => (t(), q(y, {
|
|
3939
|
+
item: h,
|
|
3937
3940
|
model: a.model,
|
|
3938
|
-
key:
|
|
3941
|
+
key: h.id
|
|
3939
3942
|
}, null, 8, ["item", "model"]))), 128))
|
|
3940
|
-
], 42,
|
|
3943
|
+
], 42, ht)), [
|
|
3941
3944
|
[H, !a.model.isEmpty]
|
|
3942
3945
|
]) : m("", !0)
|
|
3943
3946
|
], 2);
|
|
3944
3947
|
};
|
|
3945
3948
|
}
|
|
3946
|
-
}),
|
|
3949
|
+
}), kt = ["aria-selected", "id"], ft = /* @__PURE__ */ C({
|
|
3947
3950
|
__name: "ListItem",
|
|
3948
3951
|
props: {
|
|
3949
3952
|
model: {},
|
|
@@ -3958,7 +3961,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3958
3961
|
o.model.onLastItemRended(o.item);
|
|
3959
3962
|
});
|
|
3960
3963
|
}), (e, i) => {
|
|
3961
|
-
const a =
|
|
3964
|
+
const a = v("sv-svg-icon"), d = v("survey-string"), c = Y("key2click");
|
|
3962
3965
|
return D((t(), u("li", {
|
|
3963
3966
|
tabindex: "0",
|
|
3964
3967
|
role: "option",
|
|
@@ -3976,28 +3979,28 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3976
3979
|
style: $({ paddingInlineStart: e.model.getItemIndent(e.item) }),
|
|
3977
3980
|
class: l(e.model.cssClasses.itemBody)
|
|
3978
3981
|
}, [
|
|
3979
|
-
e.item.iconName && !e.item.component ? (t(),
|
|
3982
|
+
e.item.iconName && !e.item.component ? (t(), q(a, {
|
|
3980
3983
|
key: 0,
|
|
3981
3984
|
class: l(e.model.cssClasses.itemIcon),
|
|
3982
3985
|
iconName: e.item.iconName,
|
|
3983
3986
|
size: e.item.iconSize
|
|
3984
3987
|
}, null, 8, ["class", "iconName", "size"])) : m("", !0),
|
|
3985
|
-
e.item.component ? m("", !0) : (t(),
|
|
3988
|
+
e.item.component ? m("", !0) : (t(), q(d, {
|
|
3986
3989
|
key: 1,
|
|
3987
3990
|
locString: e.item.locTitle
|
|
3988
3991
|
}, null, 8, ["locString"])),
|
|
3989
|
-
e.item.component ? (t(),
|
|
3992
|
+
e.item.component ? (t(), q(N(e.item.component), {
|
|
3990
3993
|
key: 2,
|
|
3991
3994
|
item: e.item
|
|
3992
3995
|
}, null, 8, ["item"])) : m("", !0)
|
|
3993
3996
|
], 6)
|
|
3994
|
-
], 10,
|
|
3997
|
+
], 10, kt)), [
|
|
3995
3998
|
[H, e.model.isItemVisible(e.item)],
|
|
3996
3999
|
[c]
|
|
3997
4000
|
]);
|
|
3998
4001
|
};
|
|
3999
4002
|
}
|
|
4000
|
-
}),
|
|
4003
|
+
}), It = /* @__PURE__ */ C({
|
|
4001
4004
|
__name: "Popup",
|
|
4002
4005
|
props: {
|
|
4003
4006
|
getTarget: { type: Function },
|
|
@@ -4007,7 +4010,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4007
4010
|
const o = r, n = F(
|
|
4008
4011
|
te(o.model, void 0)
|
|
4009
4012
|
), s = S(null);
|
|
4010
|
-
return
|
|
4013
|
+
return _(
|
|
4011
4014
|
() => o.model,
|
|
4012
4015
|
(e) => {
|
|
4013
4016
|
n.value.dispose(), n.value = te(e, void 0);
|
|
@@ -4022,22 +4025,22 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4022
4025
|
}), V(() => {
|
|
4023
4026
|
n.value.dispose();
|
|
4024
4027
|
}), (e, i) => {
|
|
4025
|
-
const a =
|
|
4028
|
+
const a = v("sv-popup-container");
|
|
4026
4029
|
return t(), u("div", {
|
|
4027
4030
|
ref_key: "root",
|
|
4028
4031
|
ref: s
|
|
4029
4032
|
}, [
|
|
4030
|
-
|
|
4033
|
+
b(a, { model: n.value }, null, 8, ["model"])
|
|
4031
4034
|
], 512);
|
|
4032
4035
|
};
|
|
4033
4036
|
}
|
|
4034
|
-
}),
|
|
4037
|
+
}), wt = { class: "sv-popup__shadow" }, St = { class: "sv-popup__body-content" }, Tt = {
|
|
4035
4038
|
key: 0,
|
|
4036
4039
|
class: "sv-popup__body-header"
|
|
4037
|
-
},
|
|
4040
|
+
}, Rt = { class: "sv-popup__scrolling-content" }, $t = { class: "sv-popup__content" }, Bt = {
|
|
4038
4041
|
key: 1,
|
|
4039
4042
|
class: "sv-popup__body-footer"
|
|
4040
|
-
},
|
|
4043
|
+
}, Lt = /* @__PURE__ */ C({
|
|
4041
4044
|
__name: "PopupContainer",
|
|
4042
4045
|
props: {
|
|
4043
4046
|
model: {}
|
|
@@ -4048,11 +4051,11 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4048
4051
|
const s = (e) => {
|
|
4049
4052
|
e.stopPropagation();
|
|
4050
4053
|
};
|
|
4051
|
-
return B(() => o.model),
|
|
4054
|
+
return B(() => o.model), Z(() => {
|
|
4052
4055
|
const e = o.model;
|
|
4053
4056
|
!n && e.isVisible && o.model.updateOnShowing(), n = e.isVisible;
|
|
4054
4057
|
}), (e, i) => {
|
|
4055
|
-
const a =
|
|
4058
|
+
const a = v("sv-action-bar");
|
|
4056
4059
|
return D((t(), u("div", {
|
|
4057
4060
|
tabindex: "-1",
|
|
4058
4061
|
class: l(["sv-popup", e.model.styleClass]),
|
|
@@ -4074,20 +4077,20 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4074
4077
|
}),
|
|
4075
4078
|
onClick: s
|
|
4076
4079
|
}, [
|
|
4077
|
-
p("div",
|
|
4078
|
-
e.model.showHeader ? (t(),
|
|
4080
|
+
p("div", wt, [
|
|
4081
|
+
e.model.showHeader ? (t(), q(N(e.model.popupHeaderTemplate), {
|
|
4079
4082
|
key: 0,
|
|
4080
4083
|
model: e.model
|
|
4081
4084
|
}, null, 8, ["model"])) : m("", !0),
|
|
4082
|
-
p("div",
|
|
4083
|
-
e.model.title ? (t(), u("div",
|
|
4084
|
-
p("div",
|
|
4085
|
-
p("div",
|
|
4086
|
-
(t(),
|
|
4085
|
+
p("div", St, [
|
|
4086
|
+
e.model.title ? (t(), u("div", Tt, I(e.model.title), 1)) : m("", !0),
|
|
4087
|
+
p("div", Rt, [
|
|
4088
|
+
p("div", $t, [
|
|
4089
|
+
(t(), q(N(e.model.contentComponentName), Ce(he(e.model.contentComponentData)), null, 16))
|
|
4087
4090
|
])
|
|
4088
4091
|
]),
|
|
4089
|
-
e.model.showFooter ? (t(), u("div",
|
|
4090
|
-
|
|
4092
|
+
e.model.showFooter ? (t(), u("div", Bt, [
|
|
4093
|
+
b(a, {
|
|
4091
4094
|
model: e.model.footerToolbar
|
|
4092
4095
|
}, null, 8, ["model"])
|
|
4093
4096
|
])) : m("", !0)
|
|
@@ -4099,7 +4102,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4099
4102
|
]);
|
|
4100
4103
|
};
|
|
4101
4104
|
}
|
|
4102
|
-
}),
|
|
4105
|
+
}), Dt = /* @__PURE__ */ C({
|
|
4103
4106
|
__name: "PopupPointer",
|
|
4104
4107
|
props: {
|
|
4105
4108
|
model: {}
|
|
@@ -4113,10 +4116,10 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4113
4116
|
})
|
|
4114
4117
|
}, null, 4));
|
|
4115
4118
|
}
|
|
4116
|
-
}),
|
|
4119
|
+
}), Pt = {
|
|
4117
4120
|
key: 0,
|
|
4118
4121
|
class: "sv-components-column"
|
|
4119
|
-
},
|
|
4122
|
+
}, Mt = /* @__PURE__ */ C({
|
|
4120
4123
|
__name: "Container",
|
|
4121
4124
|
props: {
|
|
4122
4125
|
survey: {},
|
|
@@ -4128,13 +4131,13 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4128
4131
|
() => o.survey.getContainerContent(o.container)
|
|
4129
4132
|
);
|
|
4130
4133
|
return (s, e) => n.value.length > 0 ? (t(), u(w, { key: 0 }, [
|
|
4131
|
-
s.needRenderWrapper ? (t(), u("div",
|
|
4132
|
-
(t(!0), u(w, null, R(n.value, (i, a) => (t(),
|
|
4134
|
+
s.needRenderWrapper ? (t(), u("div", Pt, [
|
|
4135
|
+
(t(!0), u(w, null, R(n.value, (i, a) => (t(), q(N(i.component), {
|
|
4133
4136
|
survey: s.survey,
|
|
4134
4137
|
container: s.container,
|
|
4135
4138
|
model: i.data
|
|
4136
4139
|
}, null, 8, ["survey", "container", "model"]))), 256))
|
|
4137
|
-
])) : (t(!0), u(w, { key: 1 }, R(n.value, (i, a) => (t(),
|
|
4140
|
+
])) : (t(!0), u(w, { key: 1 }, R(n.value, (i, a) => (t(), q(N(i.component), {
|
|
4138
4141
|
survey: s.survey,
|
|
4139
4142
|
model: i.data
|
|
4140
4143
|
}, null, 8, ["survey", "model"]))), 256))
|
|
@@ -4168,17 +4171,17 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4168
4171
|
}, I(i.survey.progressText), 3)
|
|
4169
4172
|
], 2));
|
|
4170
4173
|
}
|
|
4171
|
-
}),
|
|
4174
|
+
}), Nt = ["onClick"], Ht = ["title"], At = ["title"], Et = /* @__PURE__ */ C({
|
|
4172
4175
|
__name: "ProgressButtons",
|
|
4173
4176
|
props: {
|
|
4174
4177
|
survey: {}
|
|
4175
4178
|
},
|
|
4176
4179
|
setup(r) {
|
|
4177
|
-
const o = r, n = new
|
|
4180
|
+
const o = r, n = new Be(o.survey), s = S(!1), e = S(), i = T(() => o.survey.css);
|
|
4178
4181
|
let a;
|
|
4179
|
-
const d = (k) => n.isListElementClickable(k), c = (k) => n.getListElementCss(k),
|
|
4182
|
+
const d = (k) => n.isListElementClickable(k), c = (k) => n.getListElementCss(k), y = (k) => {
|
|
4180
4183
|
n.clickListElement(k);
|
|
4181
|
-
},
|
|
4184
|
+
}, h = (k, P) => n.getScrollButtonCss(k, P), g = (k) => {
|
|
4182
4185
|
let P = e.value;
|
|
4183
4186
|
P.scrollLeft += (k ? -1 : 1) * 70;
|
|
4184
4187
|
};
|
|
@@ -4196,7 +4199,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4196
4199
|
class: l(i.value.progressButtonsContainer)
|
|
4197
4200
|
}, [
|
|
4198
4201
|
p("div", {
|
|
4199
|
-
class: l(
|
|
4202
|
+
class: l(h(s.value, !0)),
|
|
4200
4203
|
onClick: P[0] || (P[0] = (L) => g(!0)),
|
|
4201
4204
|
role: "button"
|
|
4202
4205
|
}, null, 2),
|
|
@@ -4211,63 +4214,63 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4211
4214
|
(t(!0), u(w, null, R(k.survey.visiblePages, (L, E) => (t(), u("li", {
|
|
4212
4215
|
key: "listelement" + E,
|
|
4213
4216
|
class: l(c(E)),
|
|
4214
|
-
onClick: (j) => d(E) ?
|
|
4217
|
+
onClick: (j) => d(E) ? y(E) : null
|
|
4215
4218
|
}, [
|
|
4216
4219
|
p("div", {
|
|
4217
4220
|
class: l(i.value.progressButtonsPageTitle),
|
|
4218
4221
|
title: L.locNavigationTitle.renderedHtml || L.name
|
|
4219
|
-
}, I(L.locNavigationTitle.renderedHtml || L.name), 11,
|
|
4222
|
+
}, I(L.locNavigationTitle.renderedHtml || L.name), 11, Ht),
|
|
4220
4223
|
p("div", {
|
|
4221
4224
|
class: l(i.value.progressButtonsPageDescription),
|
|
4222
4225
|
title: L.locNavigationDescription.renderedHtml
|
|
4223
|
-
}, I(L.locNavigationDescription.renderedHtml), 11,
|
|
4224
|
-
], 10,
|
|
4226
|
+
}, I(L.locNavigationDescription.renderedHtml), 11, At)
|
|
4227
|
+
], 10, Nt))), 128))
|
|
4225
4228
|
], 2)
|
|
4226
4229
|
], 2),
|
|
4227
4230
|
p("div", {
|
|
4228
|
-
class: l(
|
|
4231
|
+
class: l(h(s.value, !1)),
|
|
4229
4232
|
onClick: P[1] || (P[1] = (L) => g(!1)),
|
|
4230
4233
|
role: "button"
|
|
4231
4234
|
}, null, 2)
|
|
4232
4235
|
], 2)
|
|
4233
4236
|
], 2));
|
|
4234
4237
|
}
|
|
4235
|
-
}),
|
|
4238
|
+
}), Vt = /* @__PURE__ */ C({
|
|
4236
4239
|
__name: "ProgressToc",
|
|
4237
4240
|
props: {
|
|
4238
4241
|
survey: {}
|
|
4239
4242
|
},
|
|
4240
4243
|
setup(r) {
|
|
4241
|
-
const o = r, n = new
|
|
4244
|
+
const o = r, n = new Le(o.survey);
|
|
4242
4245
|
return (s, e) => {
|
|
4243
|
-
const i =
|
|
4246
|
+
const i = v("sv-svg-icon"), a = v("sv-popup"), d = v("sv-list"), c = Y("key2click");
|
|
4244
4247
|
return t(), u("div", {
|
|
4245
|
-
class: l(
|
|
4248
|
+
class: l(f(n).containerCss)
|
|
4246
4249
|
}, [
|
|
4247
|
-
|
|
4250
|
+
f(n).isMobile ? D((t(), u("div", {
|
|
4248
4251
|
key: 0,
|
|
4249
|
-
onClick: e[0] || (e[0] = (...
|
|
4252
|
+
onClick: e[0] || (e[0] = (...y) => f(n).togglePopup && f(n).togglePopup(...y))
|
|
4250
4253
|
}, [
|
|
4251
|
-
|
|
4252
|
-
iconName:
|
|
4254
|
+
b(i, {
|
|
4255
|
+
iconName: f(n).icon,
|
|
4253
4256
|
size: 24
|
|
4254
4257
|
}, null, 8, ["iconName"]),
|
|
4255
|
-
|
|
4256
|
-
model:
|
|
4258
|
+
b(a, {
|
|
4259
|
+
model: f(n).popupModel
|
|
4257
4260
|
}, null, 8, ["model"])
|
|
4258
4261
|
])), [
|
|
4259
4262
|
[c]
|
|
4260
|
-
]) : (t(),
|
|
4263
|
+
]) : (t(), q(d, {
|
|
4261
4264
|
key: 1,
|
|
4262
|
-
model:
|
|
4265
|
+
model: f(n).listModel
|
|
4263
4266
|
}, null, 8, ["model"]))
|
|
4264
4267
|
], 2);
|
|
4265
4268
|
};
|
|
4266
4269
|
}
|
|
4267
|
-
}),
|
|
4270
|
+
}), Ot = { onsubmit: "return false;" }, Ft = {
|
|
4268
4271
|
key: 0,
|
|
4269
4272
|
class: "sv_custom_header"
|
|
4270
|
-
},
|
|
4273
|
+
}, Wt = ["id"], zt = { key: 1 }, Ut = ["innerHTML"], Kt = ["innerHTML"], jt = ["innerHTML"], re = /* @__PURE__ */ C({
|
|
4271
4274
|
__name: "Survey",
|
|
4272
4275
|
props: {
|
|
4273
4276
|
model: {},
|
|
@@ -4276,16 +4279,16 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4276
4279
|
setup(r) {
|
|
4277
4280
|
const o = r, n = S(), s = S(""), e = S(1), i = T(() => {
|
|
4278
4281
|
const k = o.survey ? o.survey : o.model;
|
|
4279
|
-
return
|
|
4282
|
+
return be(k);
|
|
4280
4283
|
}), a = T(() => i.value.activePage ? i.value.activePage.id : ""), d = () => {
|
|
4281
4284
|
const k = a.value;
|
|
4282
4285
|
return !!i.value && k + e.value.toString();
|
|
4283
4286
|
}, c = T(
|
|
4284
4287
|
() => i.value.showCompletedPage && i.value.state === "completed"
|
|
4285
|
-
),
|
|
4288
|
+
), y = T(() => i.value.css), h = T(() => "page" + d()), g = () => c.value ? (s.value || (s.value = i.value.processedCompletedHtml), s.value) : "";
|
|
4286
4289
|
return B(() => i.value), A(() => {
|
|
4287
4290
|
if (!!i.value) {
|
|
4288
|
-
i.value.needRenderIcons &&
|
|
4291
|
+
i.value.needRenderIcons && De.renderIcons();
|
|
4289
4292
|
var k = n.value;
|
|
4290
4293
|
k && i.value.afterRenderSurvey(k), i.value.renderCallback = () => {
|
|
4291
4294
|
var P, L;
|
|
@@ -4295,26 +4298,26 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4295
4298
|
}), V(() => {
|
|
4296
4299
|
i.value.stopTimer(), i.value.renderCallback = void 0;
|
|
4297
4300
|
}), (k, P) => {
|
|
4298
|
-
const L =
|
|
4301
|
+
const L = v("survey-popup-modal"), E = v("survey-header"), j = v("survey-page"), X = v("sv-brand-info"), ne = v("sv-notifier");
|
|
4299
4302
|
return t(), u("div", {
|
|
4300
4303
|
class: l(i.value.getRootCss()),
|
|
4301
4304
|
style: $(i.value.themeVariables),
|
|
4302
4305
|
ref_key: "root",
|
|
4303
4306
|
ref: n
|
|
4304
4307
|
}, [
|
|
4305
|
-
|
|
4308
|
+
b(L),
|
|
4306
4309
|
i.value.renderBackgroundImage ? (t(), u("div", {
|
|
4307
4310
|
key: 0,
|
|
4308
|
-
class: l(
|
|
4311
|
+
class: l(y.value.rootBackgroundImage),
|
|
4309
4312
|
style: $(i.value.backgroundImageStyle)
|
|
4310
4313
|
}, null, 6)) : m("", !0),
|
|
4311
|
-
p("form",
|
|
4312
|
-
i.value.hasLogo ? m("", !0) : (t(), u("div",
|
|
4314
|
+
p("form", Ot, [
|
|
4315
|
+
i.value.hasLogo ? m("", !0) : (t(), u("div", Ft)),
|
|
4313
4316
|
p("div", {
|
|
4314
|
-
class: l(
|
|
4317
|
+
class: l(y.value.container)
|
|
4315
4318
|
}, [
|
|
4316
|
-
|
|
4317
|
-
(t(),
|
|
4319
|
+
b(E, { survey: i.value }, null, 8, ["survey"]),
|
|
4320
|
+
(t(), q(N("sv-components-container"), {
|
|
4318
4321
|
survey: i.value,
|
|
4319
4322
|
container: "header",
|
|
4320
4323
|
needRenderWrapper: !1
|
|
@@ -4323,7 +4326,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4323
4326
|
key: 0,
|
|
4324
4327
|
class: l(i.value.bodyContainerCss)
|
|
4325
4328
|
}, [
|
|
4326
|
-
(t(),
|
|
4329
|
+
(t(), q(N("sv-components-container"), {
|
|
4327
4330
|
survey: i.value,
|
|
4328
4331
|
container: "left",
|
|
4329
4332
|
needRenderWrapper: !0
|
|
@@ -4333,64 +4336,64 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4333
4336
|
style: $({ maxWidth: i.value.renderedWidth }),
|
|
4334
4337
|
id: a.value
|
|
4335
4338
|
}, [
|
|
4336
|
-
(t(),
|
|
4339
|
+
(t(), q(N("sv-components-container"), {
|
|
4337
4340
|
survey: i.value,
|
|
4338
4341
|
container: "contentTop",
|
|
4339
4342
|
needRenderWrapper: !0
|
|
4340
4343
|
}, null, 8, ["survey"])),
|
|
4341
|
-
(t(),
|
|
4342
|
-
key:
|
|
4344
|
+
(t(), q(j, {
|
|
4345
|
+
key: h.value,
|
|
4343
4346
|
survey: i.value,
|
|
4344
4347
|
page: i.value.activePage,
|
|
4345
|
-
css:
|
|
4348
|
+
css: y.value
|
|
4346
4349
|
}, null, 8, ["survey", "page", "css"])),
|
|
4347
|
-
(t(),
|
|
4350
|
+
(t(), q(N("sv-components-container"), {
|
|
4348
4351
|
survey: i.value,
|
|
4349
4352
|
container: "contentBottom",
|
|
4350
4353
|
needRenderWrapper: !0
|
|
4351
4354
|
}, null, 8, ["survey"]))
|
|
4352
|
-
], 14,
|
|
4353
|
-
(t(),
|
|
4355
|
+
], 14, Wt),
|
|
4356
|
+
(t(), q(N("sv-components-container"), {
|
|
4354
4357
|
survey: i.value,
|
|
4355
4358
|
container: "right",
|
|
4356
4359
|
needRenderWrapper: !0
|
|
4357
4360
|
}, null, 8, ["survey"]))
|
|
4358
4361
|
], 2)) : m("", !0),
|
|
4359
|
-
(t(),
|
|
4362
|
+
(t(), q(N("sv-components-container"), {
|
|
4360
4363
|
survey: i.value,
|
|
4361
4364
|
container: "footer",
|
|
4362
4365
|
needRenderWrapper: !1
|
|
4363
4366
|
}, null, 8, ["survey"])),
|
|
4364
|
-
c.value ? (t(), u("div",
|
|
4367
|
+
c.value ? (t(), u("div", zt, [
|
|
4365
4368
|
p("div", {
|
|
4366
4369
|
innerHTML: g(),
|
|
4367
4370
|
class: l(i.value.completedCss)
|
|
4368
|
-
}, null, 10,
|
|
4371
|
+
}, null, 10, Ut)
|
|
4369
4372
|
])) : m("", !0),
|
|
4370
4373
|
i.value.state === "completedbefore" ? (t(), u("div", {
|
|
4371
4374
|
key: 2,
|
|
4372
4375
|
class: l(i.value.completedBeforeCss),
|
|
4373
4376
|
innerHTML: i.value.processedCompletedBeforeHtml
|
|
4374
|
-
}, null, 10,
|
|
4377
|
+
}, null, 10, Kt)) : m("", !0),
|
|
4375
4378
|
i.value.state === "loading" ? (t(), u("div", {
|
|
4376
4379
|
key: 3,
|
|
4377
4380
|
class: l(i.value.loadingBodyCss),
|
|
4378
4381
|
innerHTML: i.value.processedLoadingHtml
|
|
4379
|
-
}, null, 10,
|
|
4382
|
+
}, null, 10, jt)) : m("", !0),
|
|
4380
4383
|
i.value.state === "empty" ? (t(), u("div", {
|
|
4381
4384
|
key: 4,
|
|
4382
|
-
class: l(
|
|
4385
|
+
class: l(y.value.bodyEmpty)
|
|
4383
4386
|
}, I(i.value.emptySurveyText), 3)) : m("", !0)
|
|
4384
4387
|
], 2)
|
|
4385
4388
|
]),
|
|
4386
|
-
i.value.showBrandInfo ? (t(),
|
|
4387
|
-
|
|
4389
|
+
i.value.showBrandInfo ? (t(), q(X, { key: 1 })) : m("", !0),
|
|
4390
|
+
b(ne, {
|
|
4388
4391
|
model: i.value.notifier
|
|
4389
4392
|
}, null, 8, ["model"])
|
|
4390
4393
|
], 6);
|
|
4391
4394
|
};
|
|
4392
4395
|
}
|
|
4393
|
-
}),
|
|
4396
|
+
}), Qt = /* @__PURE__ */ C({
|
|
4394
4397
|
__name: "Notifier",
|
|
4395
4398
|
props: {
|
|
4396
4399
|
model: {}
|
|
@@ -4398,7 +4401,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4398
4401
|
setup(r) {
|
|
4399
4402
|
const o = r;
|
|
4400
4403
|
return B(() => o.model), (n, s) => {
|
|
4401
|
-
const e =
|
|
4404
|
+
const e = v("sv-action-bar");
|
|
4402
4405
|
return D((t(), u("div", {
|
|
4403
4406
|
class: l(n.model.css),
|
|
4404
4407
|
style: $({ visibility: n.model.active ? "visible" : "hidden" }),
|
|
@@ -4406,7 +4409,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4406
4409
|
"aria-live": "polite"
|
|
4407
4410
|
}, [
|
|
4408
4411
|
p("span", null, I(n.model.message), 1),
|
|
4409
|
-
|
|
4412
|
+
b(e, {
|
|
4410
4413
|
model: n.model.actionBar
|
|
4411
4414
|
}, null, 8, ["model"])
|
|
4412
4415
|
], 6)), [
|
|
@@ -4414,7 +4417,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4414
4417
|
]);
|
|
4415
4418
|
};
|
|
4416
4419
|
}
|
|
4417
|
-
}),
|
|
4420
|
+
}), _t = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], Zt = { key: 1 }, Gt = /* @__PURE__ */ C({
|
|
4418
4421
|
__name: "QuestionOther",
|
|
4419
4422
|
props: {
|
|
4420
4423
|
question: {},
|
|
@@ -4442,7 +4445,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4442
4445
|
onInput: n[1] || (n[1] = (s) => {
|
|
4443
4446
|
o.question.onOtherValueInput(s);
|
|
4444
4447
|
})
|
|
4445
|
-
}, null, 46,
|
|
4448
|
+
}, null, 46, _t)),
|
|
4446
4449
|
o.question.isReadOnlyRenderDiv() ? (t(), u("div", Zt, I(o.question.otherValue), 1)) : m("", !0)
|
|
4447
4450
|
], 2));
|
|
4448
4451
|
}
|
|
@@ -4482,14 +4485,14 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4482
4485
|
n.value.changeExpandCollapse();
|
|
4483
4486
|
}, d = () => {
|
|
4484
4487
|
n.value.hide();
|
|
4485
|
-
}, c = () => "SurveyComponent",
|
|
4488
|
+
}, c = () => "SurveyComponent", y = () => {
|
|
4486
4489
|
n.value.onScroll();
|
|
4487
4490
|
};
|
|
4488
4491
|
B(() => n.value);
|
|
4489
|
-
const
|
|
4492
|
+
const h = _(
|
|
4490
4493
|
() => o.survey,
|
|
4491
4494
|
(g) => {
|
|
4492
|
-
const k = new
|
|
4495
|
+
const k = new Pe(null, g);
|
|
4493
4496
|
o.isExpanded !== void 0 && (k.isExpanded = o.isExpanded), o.closeOnCompleteTimeout !== void 0 && (k.closeOnCompleteTimeout = o.closeOnCompleteTimeout), k.isShowing = !0, n.value = k;
|
|
4494
4497
|
},
|
|
4495
4498
|
{
|
|
@@ -4497,9 +4500,9 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4497
4500
|
}
|
|
4498
4501
|
);
|
|
4499
4502
|
return V(() => {
|
|
4500
|
-
|
|
4503
|
+
h();
|
|
4501
4504
|
}), (g, k) => {
|
|
4502
|
-
const P =
|
|
4505
|
+
const P = v("survey-string"), L = v("sv-svg-icon");
|
|
4503
4506
|
return n.value.isShowing ? (t(), u("div", {
|
|
4504
4507
|
key: 0,
|
|
4505
4508
|
style: $([{ position: "fixed", bottom: "3px", right: "10px" }, {
|
|
@@ -4519,7 +4522,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4519
4522
|
style: { "padding-right": "10px" },
|
|
4520
4523
|
class: l(n.value.cssHeaderTitle)
|
|
4521
4524
|
}, [
|
|
4522
|
-
|
|
4525
|
+
b(P, {
|
|
4523
4526
|
locString: g.survey.locTitle
|
|
4524
4527
|
}, null, 8, ["locString"])
|
|
4525
4528
|
], 2),
|
|
@@ -4534,7 +4537,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4534
4537
|
onClick: d,
|
|
4535
4538
|
style: { transform: "rotate(45deg)", float: "right", cursor: "pointer", "user-select": "none", width: "24px", height: "24px" }
|
|
4536
4539
|
}, [
|
|
4537
|
-
|
|
4540
|
+
b(L, {
|
|
4538
4541
|
iconName: "icon-expanddetail",
|
|
4539
4542
|
size: 16
|
|
4540
4543
|
})
|
|
@@ -4545,7 +4548,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4545
4548
|
onClick: a,
|
|
4546
4549
|
style: { float: "right", cursor: "pointer", "user-select": "none", width: "24px", height: "24px" }
|
|
4547
4550
|
}, [
|
|
4548
|
-
|
|
4551
|
+
b(L, {
|
|
4549
4552
|
iconName: "icon-collapsedetail",
|
|
4550
4553
|
size: 16
|
|
4551
4554
|
})
|
|
@@ -4554,14 +4557,14 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4554
4557
|
i.value ? (t(), u("div", {
|
|
4555
4558
|
key: 0,
|
|
4556
4559
|
class: l(n.value.cssBody),
|
|
4557
|
-
onScroll:
|
|
4560
|
+
onScroll: y
|
|
4558
4561
|
}, [
|
|
4559
|
-
(t(),
|
|
4562
|
+
(t(), q(N(c()), { survey: g.survey }, null, 8, ["survey"]))
|
|
4560
4563
|
], 34)) : m("", !0)
|
|
4561
4564
|
], 6)) : m("", !0);
|
|
4562
4565
|
};
|
|
4563
4566
|
}
|
|
4564
|
-
}), Yt = ["innerHTML"],
|
|
4567
|
+
}), Yt = ["innerHTML"], xt = /* @__PURE__ */ C({
|
|
4565
4568
|
__name: "CustomWidget",
|
|
4566
4569
|
props: {
|
|
4567
4570
|
question: {},
|
|
@@ -4585,19 +4588,19 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4585
4588
|
key: 0,
|
|
4586
4589
|
innerHTML: i.value
|
|
4587
4590
|
}, null, 8, Yt)) : m("", !0),
|
|
4588
|
-
s.value ? (t(),
|
|
4591
|
+
s.value ? (t(), q(N(a.value), {
|
|
4589
4592
|
key: 1,
|
|
4590
4593
|
question: d.question,
|
|
4591
4594
|
css: d.css
|
|
4592
4595
|
}, null, 8, ["question", "css"])) : m("", !0)
|
|
4593
4596
|
], 512));
|
|
4594
4597
|
}
|
|
4595
|
-
}),
|
|
4598
|
+
}), ei = /* @__PURE__ */ C({
|
|
4596
4599
|
__name: "PopupModal",
|
|
4597
4600
|
setup(r) {
|
|
4598
4601
|
const o = F();
|
|
4599
|
-
function n(e, i, a, d, c,
|
|
4600
|
-
const g =
|
|
4602
|
+
function n(e, i, a, d, c, y, h = "popup") {
|
|
4603
|
+
const g = Me(
|
|
4601
4604
|
e,
|
|
4602
4605
|
i,
|
|
4603
4606
|
a,
|
|
@@ -4605,8 +4608,8 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4605
4608
|
void 0,
|
|
4606
4609
|
void 0,
|
|
4607
4610
|
c,
|
|
4608
|
-
|
|
4609
|
-
|
|
4611
|
+
y,
|
|
4612
|
+
h
|
|
4610
4613
|
);
|
|
4611
4614
|
return s(g);
|
|
4612
4615
|
}
|
|
@@ -4614,7 +4617,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4614
4617
|
e.onHide = () => {
|
|
4615
4618
|
o.value = void 0, a.dispose();
|
|
4616
4619
|
};
|
|
4617
|
-
const a =
|
|
4620
|
+
const a = Ne(
|
|
4618
4621
|
e,
|
|
4619
4622
|
i
|
|
4620
4623
|
);
|
|
@@ -4625,16 +4628,16 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4625
4628
|
})), O.showDialog || (O.showDialog = s, V(() => {
|
|
4626
4629
|
O.showDialog = void 0;
|
|
4627
4630
|
})), (e, i) => {
|
|
4628
|
-
const a =
|
|
4629
|
-
return o.value ? (t(),
|
|
4631
|
+
const a = v("sv-popup-container");
|
|
4632
|
+
return o.value ? (t(), q(ke, {
|
|
4630
4633
|
key: 0,
|
|
4631
4634
|
to: o.value.container
|
|
4632
4635
|
}, [
|
|
4633
|
-
|
|
4636
|
+
b(a, { model: o.value }, null, 8, ["model"])
|
|
4634
4637
|
], 8, ["to"])) : m("", !0);
|
|
4635
4638
|
};
|
|
4636
4639
|
}
|
|
4637
|
-
}),
|
|
4640
|
+
}), si = /* @__PURE__ */ C({
|
|
4638
4641
|
__name: "CharacterCounter",
|
|
4639
4642
|
props: {
|
|
4640
4643
|
counter: {},
|
|
@@ -4646,7 +4649,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4646
4649
|
class: l(n.remainingCharacterCounter)
|
|
4647
4650
|
}, I(n.counter.remainingCharacterCounter), 3));
|
|
4648
4651
|
}
|
|
4649
|
-
}),
|
|
4652
|
+
}), ni = /* @__PURE__ */ C({
|
|
4650
4653
|
__name: "Composite",
|
|
4651
4654
|
props: {
|
|
4652
4655
|
question: {},
|
|
@@ -4657,8 +4660,8 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4657
4660
|
M(o, n);
|
|
4658
4661
|
const s = T(() => o.question.contentPanel);
|
|
4659
4662
|
return (e, i) => {
|
|
4660
|
-
const a =
|
|
4661
|
-
return t(),
|
|
4663
|
+
const a = v("survey-panel");
|
|
4664
|
+
return t(), q(a, {
|
|
4662
4665
|
ref_key: "root",
|
|
4663
4666
|
ref: n,
|
|
4664
4667
|
question: s.value,
|
|
@@ -4666,7 +4669,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4666
4669
|
}, null, 8, ["question", "css"]);
|
|
4667
4670
|
};
|
|
4668
4671
|
}
|
|
4669
|
-
}),
|
|
4672
|
+
}), oi = /* @__PURE__ */ C({
|
|
4670
4673
|
__name: "Custom",
|
|
4671
4674
|
props: {
|
|
4672
4675
|
question: {},
|
|
@@ -4676,15 +4679,15 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4676
4679
|
const o = r, n = S(null);
|
|
4677
4680
|
M(o, n);
|
|
4678
4681
|
const s = T(() => o.question.contentQuestion), e = (i) => ee(i);
|
|
4679
|
-
return (i, a) => (t(),
|
|
4682
|
+
return (i, a) => (t(), q(N(e(s.value)), {
|
|
4680
4683
|
ref: n.value,
|
|
4681
4684
|
question: s.value,
|
|
4682
4685
|
css: i.css
|
|
4683
4686
|
}, null, 8, ["question", "css"]));
|
|
4684
4687
|
}
|
|
4685
|
-
}),
|
|
4686
|
-
|
|
4687
|
-
], ue = 440,
|
|
4688
|
+
}), ti = /* @__PURE__ */ p("use", { "xlink:href": "#icon-timercircle" }, null, -1), ii = [
|
|
4689
|
+
ti
|
|
4690
|
+
], ue = 440, li = /* @__PURE__ */ C({
|
|
4688
4691
|
__name: "TimerPanel",
|
|
4689
4692
|
props: {
|
|
4690
4693
|
model: {},
|
|
@@ -4700,7 +4703,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4700
4703
|
key: 0,
|
|
4701
4704
|
class: l(e.model.getProgressCss()),
|
|
4702
4705
|
style: $({ strokeDasharray: ue, strokeDashoffset: n.value })
|
|
4703
|
-
},
|
|
4706
|
+
}, ii, 6)) : m("", !0),
|
|
4704
4707
|
p("div", {
|
|
4705
4708
|
class: l(e.model.textContainerCss)
|
|
4706
4709
|
}, [
|
|
@@ -4719,26 +4722,37 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4719
4722
|
[H, e.model.isRunning && !e.model.showTimerAsClock]
|
|
4720
4723
|
]);
|
|
4721
4724
|
}
|
|
4722
|
-
});
|
|
4723
|
-
function
|
|
4724
|
-
|
|
4725
|
+
}), ri = {}, ai = { class: "sd-loading-indicator" };
|
|
4726
|
+
function ui(r, o) {
|
|
4727
|
+
const n = v("sv-svg-icon");
|
|
4728
|
+
return t(), u("div", ai, [
|
|
4729
|
+
b(n, {
|
|
4730
|
+
iconName: "icon-loading",
|
|
4731
|
+
size: "'auto'"
|
|
4732
|
+
})
|
|
4733
|
+
]);
|
|
4734
|
+
}
|
|
4735
|
+
const di = /* @__PURE__ */ me(ri, [["render", ui]]);
|
|
4736
|
+
He.platform = "vue3";
|
|
4737
|
+
function mi(r) {
|
|
4738
|
+
r.component("SurveyComponent", re), r.component("PopupSurveyComponent", ae), r.component("survey", re), r.component("popup-survey", ae), r.component("survey-header", ze), r.component("survey-page", Oe), r.component("survey-row", Ue), r.component("survey-element", je), r.component("survey-panel", Ze), r.component("survey-element-header", Ge), r.component("survey-string", Xe), r.component("sv-string-viewer", xe), r.component("sv-string-editor", ss), r.component("sv-skeleton", os), r.component("survey-text", ls), r.component("survey-text-input", ds), r.component("survey-checkbox", cs), r.component("survey-checkbox-item", Cs), r.component("survey-radiogroup", ks), r.component("survey-radiogroup-item", Ts), r.component("survey-signaturepad", Ls), r.component("survey-html", Ps), r.component("survey-image", As), r.component("survey-expression", Es), r.component("survey-file", js), r.component("survey-imagepicker", _s), r.component("survey-imagepicker-item", Ys), r.component("survey-comment", sn), r.component("survey-dropdown", nn), r.component("sv-dropdown-select", rn), r.component("sv-dropdown-option-item", un), r.component("sv-dropdown", vn), r.component("survey-tagbox", qn), r.component("sv-tagbox", Cn), r.component("sv-tagbox-item", In), r.component("sv-tagbox-filter", kn), r.component("survey-ranking", wn), r.component("survey-ranking-item", Pn), r.component("survey-rating", Hn), r.component("sv-rating-item", En), r.component("sv-rating-item-smiley", On), r.component("sv-rating-item-star", Wn), r.component("sv-rating-dropdown", zn), r.component("survey-boolean", Kn), r.component("sv-boolean-radio", jn), r.component("sv-boolean-radio-item", Zn), r.component("sv-boolean-checkbox", xn), r.component("survey-multipletext", eo), r.component("survey-multipletext-item", no), r.component("survey-matrix", mo), r.component("survey-matrixdropdown", co), r.component("survey-matrixtable", yo), r.component("survey-matrixheaderrequired", Co), r.component("survey-matrixcell", bo), r.component("survey-matrixdynamic", ko), r.component("sv-matrix-remove-button", Io), r.component("sv-matrix-drag-drop-icon", So), r.component("sv-matrix-detail-button", Ro), r.component("survey-paneldynamic", $o), r.component("survey-paneldynamicprogress", Bo), r.component("survey-paneldynamicprogress-v2", Lo), r.component("sv-paneldynamic-add-btn", Do), r.component("sv-paneldynamic-next-btn", Mo), r.component("sv-paneldynamic-prev-btn", Ho), r.component("sv-paneldynamic-remove-btn", Ao), r.component("sv-paneldynamic-progress-text", Eo), r.component("sv-components-container", Mt), r.component("sv-progress-buttons", Et), r.component("sv-progress-toc", Vt), r.component("sv-progress-pages", Q), r.component("sv-progress-questions", Q), r.component("sv-progress-correctquestions", Q), r.component("sv-progress-requiredquestions", Q), r.component("survey-errors", Oo), r.component("survey-question-comment", zo), r.component("survey-element-title", Uo), r.component("survey-element-title-content", Zo), r.component("sv-title-actions", Jo), r.component("sv-brand-info", ot), r.component("sv-svg-icon", rt), r.component("sv-action-bar", at), r.component("sv-action", mt), r.component("sv-action-bar-item", pt), r.component("sv-action-bar-item-dropdown", qt), r.component("sv-action-bar-separator", yt), r.component("sv-list", bt), r.component("sv-list-item", ft), r.component("sv-popup", It), r.component("sv-popup-container", Lt), r.component("popup-pointer", Dt), r.component("sv-notifier", Qt), r.component("survey-other-choice", Gt), r.component("sv-nav-btn", Jt), r.component("survey-customwidget", xt), r.component("survey-popup-modal", ei), r.component("sv-character-counter", si), r.component("survey-composite", ni), r.component("survey-custom", oi), r.component("sv-timerpanel", li), r.component("sv-loading-indicator", di), r.directive("key2click", {
|
|
4725
4739
|
mounted: function(o, n) {
|
|
4726
4740
|
const s = { ...n.value };
|
|
4727
4741
|
s.disableTabStop || (o.tabIndex = 0), o.addEventListener("keyup", (e) => (e.preventDefault(), e.stopPropagation(), de(e, s), !1)), o.addEventListener("keydown", (e) => {
|
|
4728
|
-
|
|
4742
|
+
Ae(e, s);
|
|
4729
4743
|
}), o.addEventListener("blur", (e) => {
|
|
4730
|
-
|
|
4744
|
+
Ee(e);
|
|
4731
4745
|
});
|
|
4732
4746
|
}
|
|
4733
4747
|
});
|
|
4734
4748
|
}
|
|
4735
|
-
const
|
|
4749
|
+
const vi = {
|
|
4736
4750
|
install(r) {
|
|
4737
|
-
|
|
4751
|
+
mi(r);
|
|
4738
4752
|
}
|
|
4739
4753
|
};
|
|
4740
4754
|
export {
|
|
4741
|
-
|
|
4755
|
+
vi as surveyPlugin,
|
|
4742
4756
|
B as useBase,
|
|
4743
4757
|
W as useLocString,
|
|
4744
4758
|
M as useQuestion
|