survey-vue3-ui 1.9.106 → 1.9.108
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 Q, 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 R, 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 T, createBlock as q, createElementVNode as p, normalizeStyle as $, onUnmounted as V, withDirectives as L, 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 Re, ActionDropdownViewModel as Te, 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 = Q(
|
|
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 = Q(
|
|
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: {},
|
|
@@ -76,19 +76,19 @@ const Ee = /* @__PURE__ */ C({
|
|
|
76
76
|
setup(r) {
|
|
77
77
|
const o = r, n = S(null);
|
|
78
78
|
B(() => o.page);
|
|
79
|
-
const s =
|
|
79
|
+
const s = R(() => o.page._showDescription), e = R(() => 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,
|
|
104
|
-
|
|
103
|
+
(t(!0), u(w, null, T(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: {},
|
|
@@ -195,7 +195,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
195
195
|
survey: {}
|
|
196
196
|
},
|
|
197
197
|
setup(r) {
|
|
198
|
-
const o = r, n =
|
|
198
|
+
const o = r, n = R(
|
|
199
199
|
() => o.row.visibleElements
|
|
200
200
|
), s = S();
|
|
201
201
|
return B(() => o.row), A(() => {
|
|
@@ -209,16 +209,16 @@ 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",
|
|
216
216
|
ref: s
|
|
217
217
|
}, [
|
|
218
|
-
(t(!0), u(w, null,
|
|
218
|
+
(t(!0), u(w, null, T(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"], _e = /* @__PURE__ */ C({
|
|
239
239
|
__name: "Element",
|
|
240
240
|
props: {
|
|
241
241
|
survey: {},
|
|
@@ -244,11 +244,11 @@ const Ee = /* @__PURE__ */ C({
|
|
|
244
244
|
css: {}
|
|
245
245
|
},
|
|
246
246
|
setup(r) {
|
|
247
|
-
const o = r, n = S(null), s =
|
|
247
|
+
const o = r, n = S(null), s = R(() => !o.element.isPanel && o.element.showErrorOnTop), e = R(() => !o.element.isPanel && o.element.showErrorOnBottom), i = (d) => d.customWidget ? "survey-customwidget" : d.getType() === "panel" || d.isDefaultRendering() ? "survey-" + d.getTemplate() : d.getComponentName(), a = (d) => d.cssContent;
|
|
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,26 +262,26 @@ 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
|
|
274
274
|
}, null, 8, ["element", "css"])) : m("", !0),
|
|
275
|
-
|
|
275
|
+
L(p("div", {
|
|
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
|
+
}), je = ["id"], Qe = ["id"], Ze = /* @__PURE__ */ C({
|
|
336
336
|
__name: "Panel",
|
|
337
337
|
props: {
|
|
338
338
|
question: {},
|
|
@@ -340,7 +340,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
340
340
|
css: {}
|
|
341
341
|
},
|
|
342
342
|
setup(r) {
|
|
343
|
-
const o = r, n = S(!1), s = S(null), e =
|
|
343
|
+
const o = r, n = S(!1), s = S(null), e = R(() => o.question.rows), i = R(() => o.question.survey), a = R(() => n.value);
|
|
344
344
|
return B(() => o.question), A(() => {
|
|
345
345
|
o.question.survey && o.question.survey.afterRenderPanel(o.question, s.value), n.value = o.question.isCollapsed;
|
|
346
346
|
const d = o.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"])),
|
|
@@ -378,22 +378,22 @@ const Ee = /* @__PURE__ */ C({
|
|
|
378
378
|
style: $({ paddingLeft: d.question.innerPaddingLeft }),
|
|
379
379
|
class: l(d.question.cssClasses.panel.content)
|
|
380
380
|
}, [
|
|
381
|
-
(t(!0), u(w, null,
|
|
382
|
-
P.visible ? (t(),
|
|
383
|
-
key: d.question.id + "_" +
|
|
381
|
+
(t(!0), u(w, null, T(e.value, (P, D) => (t(), u(w, null, [
|
|
382
|
+
P.visible ? (t(), q(g, {
|
|
383
|
+
key: d.question.id + "_" + D,
|
|
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, Qe))
|
|
393
|
+
], 10, je)) : m("", !0);
|
|
394
394
|
};
|
|
395
395
|
}
|
|
396
|
-
}),
|
|
396
|
+
}), Ge = /* @__PURE__ */ C({
|
|
397
397
|
__name: "ElementHeader",
|
|
398
398
|
props: {
|
|
399
399
|
element: {},
|
|
@@ -404,46 +404,46 @@ 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"]),
|
|
416
|
-
s.element.hasDescriptionUnderTitle ?
|
|
416
|
+
s.element.hasDescriptionUnderTitle ? L((t(), u("div", {
|
|
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,
|
|
521
|
-
], 8,
|
|
522
|
-
], 512)) : (t(),
|
|
520
|
+
(t(!0), u(w, null, T(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: {}
|
|
@@ -535,10 +535,10 @@ const Ee = /* @__PURE__ */ C({
|
|
|
535
535
|
setup(r) {
|
|
536
536
|
const o = r;
|
|
537
537
|
B(() => o.question);
|
|
538
|
-
const n =
|
|
538
|
+
const n = R(() => 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 = ["role", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], cs = /* @__PURE__ */ p("legend", {
|
|
603
603
|
role: "presentation",
|
|
604
604
|
class: "sv-hidden"
|
|
605
|
-
}, null, -1),
|
|
605
|
+
}, null, -1), ps = /* @__PURE__ */ C({
|
|
606
606
|
__name: "Checkbox",
|
|
607
607
|
props: {
|
|
608
608
|
question: {}
|
|
@@ -610,20 +610,25 @@ 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
|
-
role:
|
|
616
|
+
role: s.question.a11y_input_ariaRole,
|
|
617
|
+
"aria-required": s.question.a11y_input_ariaRequired,
|
|
618
|
+
"aria-label": s.question.a11y_input_ariaLabel,
|
|
619
|
+
"aria-labelledby": s.question.a11y_input_ariaLabelledBy,
|
|
620
|
+
"aria-invalid": s.question.a11y_input_ariaInvalid,
|
|
621
|
+
"aria-describedby": s.question.a11y_input_ariaDescribedBy
|
|
617
622
|
}, [
|
|
618
|
-
|
|
619
|
-
s.question.hasHeadItems ? (t(!0), u(w, { key: 0 },
|
|
623
|
+
cs,
|
|
624
|
+
s.question.hasHeadItems ? (t(!0), u(w, { key: 0 }, T(s.question.headItems, (d, c) => (t(), q(i, {
|
|
620
625
|
key: d.value,
|
|
621
626
|
class: l(s.question.getItemClass(d)),
|
|
622
627
|
question: s.question,
|
|
623
628
|
item: d,
|
|
624
629
|
index: "" + c
|
|
625
630
|
}, null, 8, ["class", "question", "item", "index"]))), 128)) : m("", !0),
|
|
626
|
-
!s.question.hasColumns && !s.question.blockedRow ? (t(!0), u(w, { key: 1 },
|
|
631
|
+
!s.question.hasColumns && !s.question.blockedRow ? (t(!0), u(w, { key: 1 }, T(s.question.bodyItems, (d, c) => (t(), q(i, {
|
|
627
632
|
key: d.value,
|
|
628
633
|
class: l(s.question.getItemClass(d)),
|
|
629
634
|
question: s.question,
|
|
@@ -634,7 +639,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
634
639
|
key: 2,
|
|
635
640
|
class: l(s.question.cssClasses.rootRow)
|
|
636
641
|
}, [
|
|
637
|
-
!s.question.hasColumns && s.question.blockedRow ? (t(!0), u(w, { key: 0 },
|
|
642
|
+
!s.question.hasColumns && s.question.blockedRow ? (t(!0), u(w, { key: 0 }, T(s.question.dataChoices, (d, c) => (t(), q(i, {
|
|
638
643
|
key: d.value,
|
|
639
644
|
class: l(s.question.getItemClass(d)),
|
|
640
645
|
question: s.question,
|
|
@@ -646,35 +651,35 @@ const Ee = /* @__PURE__ */ C({
|
|
|
646
651
|
key: 3,
|
|
647
652
|
class: l(s.question.cssClasses.rootMultiColumn)
|
|
648
653
|
}, [
|
|
649
|
-
(t(!0), u(w, null,
|
|
654
|
+
(t(!0), u(w, null, T(s.question.columns, (d, c) => (t(), u("div", {
|
|
650
655
|
key: c,
|
|
651
656
|
class: l(s.question.getColumnClass()),
|
|
652
657
|
role: "presentation"
|
|
653
658
|
}, [
|
|
654
|
-
(t(!0), u(w, null,
|
|
655
|
-
key:
|
|
656
|
-
class: l(s.question.getItemClass(
|
|
659
|
+
(t(!0), u(w, null, T(d, (y, h) => (t(), q(i, {
|
|
660
|
+
key: y.value,
|
|
661
|
+
class: l(s.question.getItemClass(y)),
|
|
657
662
|
question: s.question,
|
|
658
|
-
item:
|
|
659
|
-
index: "" + c +
|
|
663
|
+
item: y,
|
|
664
|
+
index: "" + c + h
|
|
660
665
|
}, null, 8, ["class", "question", "item", "index"]))), 128))
|
|
661
666
|
], 2))), 128))
|
|
662
667
|
], 2)) : m("", !0),
|
|
663
|
-
s.question.hasFootItems ? (t(!0), u(w, { key: 4 },
|
|
668
|
+
s.question.hasFootItems ? (t(!0), u(w, { key: 4 }, T(s.question.footItems, (d, c) => (t(), q(i, {
|
|
664
669
|
key: d.value,
|
|
665
670
|
class: l(s.question.getItemClass(d)),
|
|
666
671
|
question: s.question,
|
|
667
672
|
item: d,
|
|
668
673
|
index: "" + c
|
|
669
674
|
}, null, 8, ["class", "question", "item", "index"]))), 128)) : m("", !0),
|
|
670
|
-
s.question.renderedValue && s.question.isOtherSelected ? (t(),
|
|
675
|
+
s.question.renderedValue && s.question.isOtherSelected ? (t(), q(a, {
|
|
671
676
|
key: 5,
|
|
672
677
|
question: s.question
|
|
673
678
|
}, null, 8, ["question"])) : m("", !0)
|
|
674
|
-
],
|
|
679
|
+
], 10, ms);
|
|
675
680
|
};
|
|
676
681
|
}
|
|
677
|
-
}),
|
|
682
|
+
}), vs = { role: "presentation" }, qs = ["name", "value", "id", "disabled"], ys = ["name", "value", "id", "disabled"], gs = ["xlink:href"], Cs = /* @__PURE__ */ C({
|
|
678
683
|
__name: "CheckboxItem",
|
|
679
684
|
props: {
|
|
680
685
|
question: {},
|
|
@@ -683,7 +688,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
683
688
|
hideLabel: { type: Boolean }
|
|
684
689
|
},
|
|
685
690
|
setup(r) {
|
|
686
|
-
const o = r, n =
|
|
691
|
+
const o = r, n = R({
|
|
687
692
|
get() {
|
|
688
693
|
return o.question.isAllSelected || "";
|
|
689
694
|
},
|
|
@@ -693,38 +698,33 @@ const Ee = /* @__PURE__ */ C({
|
|
|
693
698
|
}
|
|
694
699
|
});
|
|
695
700
|
return B(() => o.item), (s, e) => {
|
|
696
|
-
const i =
|
|
697
|
-
return t(), u("div",
|
|
701
|
+
const i = v("survey-string");
|
|
702
|
+
return t(), u("div", vs, [
|
|
698
703
|
p("label", {
|
|
699
|
-
class: l(s.question.getLabelClass(s.item))
|
|
700
|
-
"aria-label": s.question.getAriaItemLabel(s.item)
|
|
704
|
+
class: l(s.question.getLabelClass(s.item))
|
|
701
705
|
}, [
|
|
702
|
-
s.item == s.question.selectAllItem ?
|
|
706
|
+
s.item == s.question.selectAllItem ? L((t(), u("input", {
|
|
703
707
|
key: 0,
|
|
704
|
-
role: "option",
|
|
705
708
|
type: "checkbox",
|
|
706
709
|
name: s.question.name,
|
|
707
710
|
value: n.value,
|
|
708
711
|
"onUpdate:modelValue": e[0] || (e[0] = (a) => n.value = a),
|
|
709
712
|
id: s.question.getItemId(s.item),
|
|
710
713
|
disabled: !s.question.getItemEnabled(s.item),
|
|
711
|
-
"aria-describedby": s.question.ariaDescribedBy,
|
|
712
714
|
class: l(s.question.cssClasses.itemControl)
|
|
713
|
-
}, null, 10,
|
|
715
|
+
}, null, 10, qs)), [
|
|
714
716
|
[z, n.value]
|
|
715
717
|
]) : m("", !0),
|
|
716
|
-
s.item != s.question.selectAllItem ?
|
|
718
|
+
s.item != s.question.selectAllItem ? L((t(), u("input", {
|
|
717
719
|
key: 1,
|
|
718
|
-
role: "option",
|
|
719
720
|
type: "checkbox",
|
|
720
721
|
name: s.question.name,
|
|
721
722
|
value: s.item.value,
|
|
722
723
|
"onUpdate:modelValue": e[1] || (e[1] = (a) => s.question.renderedValue = a),
|
|
723
724
|
id: s.question.getItemId(s.item),
|
|
724
725
|
disabled: !s.question.getItemEnabled(s.item),
|
|
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
|
-
],
|
|
751
|
+
], 2)
|
|
752
752
|
]);
|
|
753
753
|
};
|
|
754
754
|
}
|
|
755
|
-
}),
|
|
755
|
+
}), hs = ["role", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], bs = { key: 5 }, ks = ["value"], fs = /* @__PURE__ */ C({
|
|
756
756
|
__name: "Radiogroup",
|
|
757
757
|
props: {
|
|
758
758
|
question: {}
|
|
@@ -760,14 +760,19 @@ 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
|
-
role: "presentation",
|
|
766
765
|
class: l(s.question.getSelectBaseRootCss()),
|
|
767
766
|
ref_key: "root",
|
|
768
|
-
ref: n
|
|
767
|
+
ref: n,
|
|
768
|
+
role: s.question.a11y_input_ariaRole,
|
|
769
|
+
"aria-required": s.question.a11y_input_ariaRequired,
|
|
770
|
+
"aria-label": s.question.a11y_input_ariaLabel,
|
|
771
|
+
"aria-labelledby": s.question.a11y_input_ariaLabelledBy,
|
|
772
|
+
"aria-invalid": s.question.a11y_input_ariaInvalid,
|
|
773
|
+
"aria-describedby": s.question.a11y_input_ariaDescribedBy
|
|
769
774
|
}, [
|
|
770
|
-
!s.question.hasColumns && !s.question.blockedRow ? (t(!0), u(w, { key: 0 },
|
|
775
|
+
!s.question.hasColumns && !s.question.blockedRow ? (t(!0), u(w, { key: 0 }, T(s.question.visibleChoices, (d, c) => (t(), q(i, {
|
|
771
776
|
key: d.value,
|
|
772
777
|
class: l(s.question.getItemClass(d)),
|
|
773
778
|
question: s.question,
|
|
@@ -778,7 +783,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
778
783
|
key: 1,
|
|
779
784
|
class: l(s.question.cssClasses.rootRow)
|
|
780
785
|
}, [
|
|
781
|
-
!s.question.hasColumns && s.question.blockedRow ? (t(!0), u(w, { key: 0 },
|
|
786
|
+
!s.question.hasColumns && s.question.blockedRow ? (t(!0), u(w, { key: 0 }, T(s.question.dataChoices, (d, c) => (t(), q(i, {
|
|
782
787
|
key: d.value,
|
|
783
788
|
class: l(s.question.getItemClass(d)),
|
|
784
789
|
question: s.question,
|
|
@@ -790,31 +795,31 @@ const Ee = /* @__PURE__ */ C({
|
|
|
790
795
|
key: 2,
|
|
791
796
|
class: l(s.question.cssClasses.rootMultiColumn)
|
|
792
797
|
}, [
|
|
793
|
-
s.question.hasColumns ? (t(!0), u(w, { key: 0 },
|
|
798
|
+
s.question.hasColumns ? (t(!0), u(w, { key: 0 }, T(s.question.columns, (d, c) => (t(), u("div", {
|
|
794
799
|
class: l(s.question.getColumnClass()),
|
|
795
800
|
role: "presentation"
|
|
796
801
|
}, [
|
|
797
|
-
(t(!0), u(w, null,
|
|
798
|
-
key:
|
|
799
|
-
class: l(s.question.getItemClass(
|
|
802
|
+
(t(!0), u(w, null, T(d, (y, h) => (t(), q(i, {
|
|
803
|
+
key: y.value,
|
|
804
|
+
class: l(s.question.getItemClass(y)),
|
|
800
805
|
question: s.question,
|
|
801
|
-
item:
|
|
802
|
-
index: "" + c +
|
|
806
|
+
item: y,
|
|
807
|
+
index: "" + c + h
|
|
803
808
|
}, null, 8, ["class", "question", "item", "index"]))), 128))
|
|
804
809
|
], 2))), 256)) : m("", !0)
|
|
805
810
|
], 2)) : m("", !0),
|
|
806
|
-
s.question.hasFootItems ? (t(!0), u(w, { key: 3 },
|
|
811
|
+
s.question.hasFootItems ? (t(!0), u(w, { key: 3 }, T(s.question.footItems, (d, c) => (t(), q(i, {
|
|
807
812
|
key: d.value,
|
|
808
813
|
class: l(s.question.getItemClass(d)),
|
|
809
814
|
question: s.question,
|
|
810
815
|
item: d,
|
|
811
816
|
index: "" + c
|
|
812
817
|
}, null, 8, ["class", "question", "item", "index"]))), 128)) : m("", !0),
|
|
813
|
-
s.question.renderedValue && s.question.isOtherSelected ? (t(),
|
|
818
|
+
s.question.renderedValue && s.question.isOtherSelected ? (t(), q(a, {
|
|
814
819
|
key: 4,
|
|
815
820
|
question: s.question
|
|
816
821
|
}, null, 8, ["question"])) : m("", !0),
|
|
817
|
-
s.question.showClearButtonInContent ? (t(), u("div",
|
|
822
|
+
s.question.showClearButtonInContent ? (t(), u("div", bs, [
|
|
818
823
|
p("input", {
|
|
819
824
|
type: "button",
|
|
820
825
|
class: l(s.question.cssClasses.clearButton),
|
|
@@ -822,12 +827,12 @@ const Ee = /* @__PURE__ */ C({
|
|
|
822
827
|
s.question.clearValue();
|
|
823
828
|
}),
|
|
824
829
|
value: s.question.clearButtonCaption
|
|
825
|
-
}, null, 10,
|
|
830
|
+
}, null, 10, ks)
|
|
826
831
|
])) : m("", !0)
|
|
827
|
-
],
|
|
832
|
+
], 10, hs);
|
|
828
833
|
};
|
|
829
834
|
}
|
|
830
|
-
}),
|
|
835
|
+
}), Is = { role: "presentation" }, ws = ["name", "value", "id", "aria-describedby", "disabled"], Ss = ["xlink:href"], Rs = /* @__PURE__ */ C({
|
|
831
836
|
__name: "RadiogroupItem",
|
|
832
837
|
props: {
|
|
833
838
|
question: {},
|
|
@@ -838,14 +843,13 @@ const Ee = /* @__PURE__ */ C({
|
|
|
838
843
|
setup(r) {
|
|
839
844
|
const o = r, n = (e) => o.question.getLabelClass(e), s = (e) => o.question.getControlLabelClass(e);
|
|
840
845
|
return B(() => o.item), (e, i) => {
|
|
841
|
-
const a =
|
|
842
|
-
return t(), u("div",
|
|
846
|
+
const a = v("survey-string");
|
|
847
|
+
return t(), u("div", Is, [
|
|
843
848
|
p("label", {
|
|
844
849
|
onMousedown: i[1] || (i[1] = (d) => e.question.onMouseDown()),
|
|
845
|
-
class: l(n(e.item))
|
|
846
|
-
"aria-label": e.question.getAriaItemLabel(e.item)
|
|
850
|
+
class: l(n(e.item))
|
|
847
851
|
}, [
|
|
848
|
-
|
|
852
|
+
L(p("input", {
|
|
849
853
|
type: "radio",
|
|
850
854
|
name: e.question.questionName,
|
|
851
855
|
value: e.item.value,
|
|
@@ -854,8 +858,8 @@ const Ee = /* @__PURE__ */ C({
|
|
|
854
858
|
"onUpdate:modelValue": i[0] || (i[0] = (d) => e.question.renderedValue = d),
|
|
855
859
|
disabled: !e.question.getItemEnabled(e.item),
|
|
856
860
|
class: l(e.question.cssClasses.itemControl)
|
|
857
|
-
}, null, 10,
|
|
858
|
-
[
|
|
861
|
+
}, null, 10, ws), [
|
|
862
|
+
[J, e.question.renderedValue]
|
|
859
863
|
]),
|
|
860
864
|
e.question.cssClasses.materialDecorator ? (t(), u("span", {
|
|
861
865
|
key: 0,
|
|
@@ -867,22 +871,22 @@ const Ee = /* @__PURE__ */ C({
|
|
|
867
871
|
}, [
|
|
868
872
|
p("use", {
|
|
869
873
|
"xlink:href": e.question.itemSvgIcon
|
|
870
|
-
}, null, 8,
|
|
874
|
+
}, null, 8, Ss)
|
|
871
875
|
], 2)) : m("", !0)
|
|
872
876
|
], 2)) : m("", !0),
|
|
873
877
|
e.hideLabel ? m("", !0) : (t(), u("span", {
|
|
874
878
|
key: 1,
|
|
875
879
|
class: l(s(e.item))
|
|
876
880
|
}, [
|
|
877
|
-
|
|
881
|
+
b(a, {
|
|
878
882
|
locString: e.item.locText
|
|
879
883
|
}, null, 8, ["locString"])
|
|
880
884
|
], 2))
|
|
881
|
-
],
|
|
885
|
+
], 34)
|
|
882
886
|
]);
|
|
883
887
|
};
|
|
884
888
|
}
|
|
885
|
-
}),
|
|
889
|
+
}), Ts = ["src", "width", "height"], $s = ["title"], Bs = { key: 0 }, Ls = /* @__PURE__ */ C({
|
|
886
890
|
__name: "Signaturepad",
|
|
887
891
|
props: {
|
|
888
892
|
question: {}
|
|
@@ -890,7 +894,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
890
894
|
setup(r) {
|
|
891
895
|
const o = r, n = S(null);
|
|
892
896
|
return M(o, n), (s, e) => {
|
|
893
|
-
const i =
|
|
897
|
+
const i = v("sv-svg-icon");
|
|
894
898
|
return t(), u("div", {
|
|
895
899
|
class: l(s.question.cssClasses.root),
|
|
896
900
|
ref_key: "root",
|
|
@@ -900,7 +904,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
900
904
|
width: s.question.signatureWidth + "px"
|
|
901
905
|
})
|
|
902
906
|
}, [
|
|
903
|
-
|
|
907
|
+
L(p("div", {
|
|
904
908
|
class: l(s.question.cssClasses.placeholder)
|
|
905
909
|
}, I(s.question.placeHolderText), 3), [
|
|
906
910
|
[H, s.question.needShowPlaceholder()]
|
|
@@ -912,7 +916,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
912
916
|
src: s.question.backgroundImage,
|
|
913
917
|
width: s.question.signatureWidth,
|
|
914
918
|
height: s.question.signatureHeight
|
|
915
|
-
}, null, 10,
|
|
919
|
+
}, null, 10, Ts)) : m("", !0),
|
|
916
920
|
p("canvas", {
|
|
917
921
|
tabindex: "0",
|
|
918
922
|
class: l(s.question.cssClasses.canvas)
|
|
@@ -930,18 +934,18 @@ const Ee = /* @__PURE__ */ C({
|
|
|
930
934
|
s.question.clearValue();
|
|
931
935
|
})
|
|
932
936
|
}, [
|
|
933
|
-
s.question.cssClasses.clearButtonIconId ? m("", !0) : (t(), u("span",
|
|
934
|
-
s.question.cssClasses.clearButtonIconId ? (t(),
|
|
937
|
+
s.question.cssClasses.clearButtonIconId ? m("", !0) : (t(), u("span", Bs, "\u2716")),
|
|
938
|
+
s.question.cssClasses.clearButtonIconId ? (t(), q(i, {
|
|
935
939
|
key: 1,
|
|
936
940
|
iconName: s.question.cssClasses.clearButtonIconId,
|
|
937
941
|
size: "auto"
|
|
938
942
|
}, null, 8, ["iconName"])) : m("", !0)
|
|
939
|
-
], 10,
|
|
943
|
+
], 10, $s)
|
|
940
944
|
], 2)) : m("", !0)
|
|
941
945
|
], 6);
|
|
942
946
|
};
|
|
943
947
|
}
|
|
944
|
-
}),
|
|
948
|
+
}), Ds = ["innerHTML"], Ps = /* @__PURE__ */ C({
|
|
945
949
|
__name: "Html",
|
|
946
950
|
props: {
|
|
947
951
|
question: {}
|
|
@@ -954,10 +958,10 @@ const Ee = /* @__PURE__ */ C({
|
|
|
954
958
|
ref_key: "root",
|
|
955
959
|
ref: n,
|
|
956
960
|
class: l(e.question.renderCssRoot),
|
|
957
|
-
innerHTML:
|
|
958
|
-
}, null, 10,
|
|
961
|
+
innerHTML: f(s)
|
|
962
|
+
}, null, 10, Ds));
|
|
959
963
|
}
|
|
960
|
-
}),
|
|
964
|
+
}), Ms = ["src", "alt", "width", "height"], Ns = ["src", "width", "height"], Hs = ["src", "width", "height"], As = /* @__PURE__ */ C({
|
|
961
965
|
__name: "Image",
|
|
962
966
|
props: {
|
|
963
967
|
question: {}
|
|
@@ -967,16 +971,16 @@ const Ee = /* @__PURE__ */ C({
|
|
|
967
971
|
M(o, n);
|
|
968
972
|
const s = W(() => o.question.locImageLink);
|
|
969
973
|
return (e, i) => {
|
|
970
|
-
const a =
|
|
974
|
+
const a = v("sv-svg-icon");
|
|
971
975
|
return t(), u("div", {
|
|
972
976
|
class: l(e.question.cssClasses.root),
|
|
973
977
|
ref_key: "root",
|
|
974
978
|
ref: n
|
|
975
979
|
}, [
|
|
976
|
-
e.question.renderedMode === "image" ?
|
|
980
|
+
e.question.renderedMode === "image" ? L((t(), u("img", {
|
|
977
981
|
key: 0,
|
|
978
982
|
class: l(e.question.getImageCss()),
|
|
979
|
-
src:
|
|
983
|
+
src: f(s),
|
|
980
984
|
alt: e.question.altText || e.question.title,
|
|
981
985
|
width: e.question.renderedWidth,
|
|
982
986
|
height: e.question.renderedHeight,
|
|
@@ -991,14 +995,14 @@ const Ee = /* @__PURE__ */ C({
|
|
|
991
995
|
onError: i[1] || (i[1] = (d) => {
|
|
992
996
|
e.question.onErrorHandler();
|
|
993
997
|
})
|
|
994
|
-
}, null, 46,
|
|
995
|
-
[H,
|
|
998
|
+
}, null, 46, Ms)), [
|
|
999
|
+
[H, f(s) && !e.question.contentNotLoaded]
|
|
996
1000
|
]) : m("", !0),
|
|
997
|
-
e.question.renderedMode === "video" ?
|
|
1001
|
+
e.question.renderedMode === "video" ? L((t(), u("video", {
|
|
998
1002
|
key: 1,
|
|
999
1003
|
controls: "",
|
|
1000
1004
|
class: l(e.question.getImageCss()),
|
|
1001
|
-
src:
|
|
1005
|
+
src: f(s),
|
|
1002
1006
|
width: e.question.renderedWidth,
|
|
1003
1007
|
height: e.question.renderedHeight,
|
|
1004
1008
|
style: $({
|
|
@@ -1012,13 +1016,13 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1012
1016
|
onError: i[3] || (i[3] = (d) => {
|
|
1013
1017
|
e.question.onErrorHandler();
|
|
1014
1018
|
})
|
|
1015
|
-
}, null, 46,
|
|
1016
|
-
[H,
|
|
1019
|
+
}, null, 46, Ns)), [
|
|
1020
|
+
[H, f(s) && !e.question.contentNotLoaded]
|
|
1017
1021
|
]) : m("", !0),
|
|
1018
1022
|
e.question.renderedMode === "youtube" ? (t(), u("iframe", {
|
|
1019
1023
|
key: 2,
|
|
1020
1024
|
class: l(e.question.getImageCss()),
|
|
1021
|
-
src:
|
|
1025
|
+
src: f(s),
|
|
1022
1026
|
width: e.question.renderedWidth,
|
|
1023
1027
|
height: e.question.renderedHeight,
|
|
1024
1028
|
style: $({
|
|
@@ -1026,12 +1030,12 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1026
1030
|
width: e.question.renderedStyleWidth,
|
|
1027
1031
|
height: e.question.renderedStyleHeight
|
|
1028
1032
|
})
|
|
1029
|
-
}, null, 14,
|
|
1030
|
-
!
|
|
1033
|
+
}, null, 14, Hs)) : m("", !0),
|
|
1034
|
+
!f(s) || e.question.contentNotLoaded ? (t(), u("div", {
|
|
1031
1035
|
key: 3,
|
|
1032
1036
|
class: l(e.question.cssClasses.noImage)
|
|
1033
1037
|
}, [
|
|
1034
|
-
|
|
1038
|
+
b(a, {
|
|
1035
1039
|
iconName: e.question.cssClasses.noImageSvgIconId,
|
|
1036
1040
|
size: 48
|
|
1037
1041
|
}, null, 8, ["iconName"])
|
|
@@ -1039,7 +1043,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1039
1043
|
], 2);
|
|
1040
1044
|
};
|
|
1041
1045
|
}
|
|
1042
|
-
}),
|
|
1046
|
+
}), Es = /* @__PURE__ */ C({
|
|
1043
1047
|
__name: "Expression",
|
|
1044
1048
|
props: {
|
|
1045
1049
|
question: {}
|
|
@@ -1052,7 +1056,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1052
1056
|
ref: n
|
|
1053
1057
|
}, I(s.question.formatedValue), 3));
|
|
1054
1058
|
}
|
|
1055
|
-
}),
|
|
1059
|
+
}), 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"], _s = /* @__PURE__ */ C({
|
|
1056
1060
|
__name: "File",
|
|
1057
1061
|
props: {
|
|
1058
1062
|
question: {}
|
|
@@ -1062,7 +1066,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1062
1066
|
M(o, n);
|
|
1063
1067
|
const s = (e) => o.question.isPreviewVisible(e);
|
|
1064
1068
|
return (e, i) => {
|
|
1065
|
-
const a =
|
|
1069
|
+
const a = v("sv-loading-indicator"), d = v("sv-svg-icon"), c = v("sv-action-bar"), y = Y("key2click");
|
|
1066
1070
|
return t(), u("div", {
|
|
1067
1071
|
class: l(e.question.fileRootCss)
|
|
1068
1072
|
}, [
|
|
@@ -1072,7 +1076,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1072
1076
|
tabindex: "-1",
|
|
1073
1077
|
type: "file",
|
|
1074
1078
|
id: e.question.inputId,
|
|
1075
|
-
onChange: i[0] || (i[0] = (...
|
|
1079
|
+
onChange: i[0] || (i[0] = (...h) => e.question.doChange && e.question.doChange(...h)),
|
|
1076
1080
|
"aria-required": e.question.ariaRequired,
|
|
1077
1081
|
"aria-label": e.question.ariaLabel,
|
|
1078
1082
|
"aria-invalid": e.question.ariaInvalid,
|
|
@@ -1081,7 +1085,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1081
1085
|
title: e.question.inputTitle,
|
|
1082
1086
|
accept: e.question.acceptedTypes,
|
|
1083
1087
|
capture: e.question.renderCapture
|
|
1084
|
-
}, null, 42,
|
|
1088
|
+
}, null, 42, Vs)),
|
|
1085
1089
|
e.question.isReadOnly ? (t(), u("input", {
|
|
1086
1090
|
key: 1,
|
|
1087
1091
|
type: "file",
|
|
@@ -1091,155 +1095,158 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1091
1095
|
multiple: e.question.allowMultiple,
|
|
1092
1096
|
placeholder: e.question.title,
|
|
1093
1097
|
style: { color: "transparent" }
|
|
1094
|
-
}, null, 10,
|
|
1098
|
+
}, null, 10, Os)) : m("", !0),
|
|
1095
1099
|
p("div", {
|
|
1096
1100
|
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] = (...
|
|
1101
|
+
onDrop: i[3] || (i[3] = (...h) => e.question.onDrop && e.question.onDrop(...h)),
|
|
1102
|
+
onDragover: i[4] || (i[4] = (...h) => e.question.onDragOver && e.question.onDragOver(...h)),
|
|
1103
|
+
onDragleave: i[5] || (i[5] = (...h) => e.question.onDragLeave && e.question.onDragLeave(...h)),
|
|
1104
|
+
onDragenter: i[6] || (i[6] = (...h) => e.question.onDragEnter && e.question.onDragEnter(...h))
|
|
1101
1105
|
}, [
|
|
1102
1106
|
p("div", {
|
|
1103
1107
|
class: l(e.question.getFileDecoratorCss())
|
|
1104
1108
|
}, [
|
|
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
|
|
1109
|
+
e.question.showLoadingIndicator ? (t(), q(a, { key: 0 })) : m("", !0),
|
|
1110
|
+
e.question.showChooseButton ? (t(), u(w, { key: 1 }, [
|
|
1111
|
+
p("span", {
|
|
1112
|
+
class: l(e.question.cssClasses.dragAreaPlaceholder)
|
|
1113
|
+
}, I(e.question.renderedPlaceholder), 3),
|
|
1114
|
+
p("div", {
|
|
1115
|
+
class: l(e.question.cssClasses.wrapper)
|
|
1118
1116
|
}, [
|
|
1119
|
-
|
|
1120
|
-
e.question.cssClasses.chooseFileIconId ? (t(), y(a, {
|
|
1117
|
+
e.question.isReadOnly ? m("", !0) : L((t(), u("label", {
|
|
1121
1118
|
key: 0,
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
[
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1119
|
+
role: "button",
|
|
1120
|
+
tabindex: "0",
|
|
1121
|
+
class: l(e.question.getChooseFileCss()),
|
|
1122
|
+
for: e.question.inputId,
|
|
1123
|
+
"aria-label": e.question.chooseButtonText
|
|
1124
|
+
}, [
|
|
1125
|
+
p("span", null, I(e.question.chooseButtonText), 1),
|
|
1126
|
+
e.question.cssClasses.chooseFileIconId ? (t(), q(d, {
|
|
1127
|
+
key: 0,
|
|
1128
|
+
title: e.question.chooseButtonText,
|
|
1129
|
+
iconName: e.question.cssClasses.chooseFileIconId,
|
|
1130
|
+
size: "auto"
|
|
1131
|
+
}, null, 8, ["title", "iconName"])) : m("", !0)
|
|
1132
|
+
], 10, Fs)), [
|
|
1133
|
+
[y]
|
|
1134
|
+
]),
|
|
1135
|
+
e.question.isEmpty() ? (t(), u("span", {
|
|
1136
|
+
key: 1,
|
|
1137
|
+
class: l(e.question.cssClasses.noFileChosen)
|
|
1138
|
+
}, I(e.question.noFileChosenCaption), 3)) : m("", !0)
|
|
1139
|
+
], 2)
|
|
1140
|
+
], 64)) : m("", !0)
|
|
1134
1141
|
], 2),
|
|
1135
1142
|
e.question.showRemoveButton ? (t(), u("button", {
|
|
1136
1143
|
key: 0,
|
|
1137
1144
|
type: "button",
|
|
1138
1145
|
class: l(e.question.cssClasses.removeButton),
|
|
1139
|
-
onClick: i[1] || (i[1] = (...
|
|
1146
|
+
onClick: i[1] || (i[1] = (...h) => e.question.doClean && e.question.doClean(...h))
|
|
1140
1147
|
}, [
|
|
1141
1148
|
p("span", null, I(e.question.clearButtonCaption), 1),
|
|
1142
|
-
e.question.cssClasses.removeButtonIconId ? (t(),
|
|
1149
|
+
e.question.cssClasses.removeButtonIconId ? (t(), q(d, {
|
|
1143
1150
|
key: 0,
|
|
1144
1151
|
iconName: e.question.cssClasses.removeButtonIconId,
|
|
1145
1152
|
size: "auto",
|
|
1146
1153
|
title: e.question.clearButtonCaption
|
|
1147
1154
|
}, null, 8, ["iconName", "title"])) : m("", !0)
|
|
1148
1155
|
], 2)) : m("", !0),
|
|
1149
|
-
e.question.
|
|
1156
|
+
e.question.allowShowPreview ? (t(), u("div", {
|
|
1150
1157
|
key: 1,
|
|
1151
1158
|
class: l(e.question.cssClasses.fileList || void 0)
|
|
1152
1159
|
}, [
|
|
1153
|
-
(t(!0), u(w, null,
|
|
1154
|
-
key: e.question.inputId + "_" +
|
|
1160
|
+
(t(!0), u(w, null, T(e.question.previewValue, (h, g) => L((t(), u("span", {
|
|
1161
|
+
key: e.question.inputId + "_" + g,
|
|
1155
1162
|
class: l(e.question.cssClasses.preview)
|
|
1156
1163
|
}, [
|
|
1157
|
-
|
|
1164
|
+
h.name && e.question.cssClasses.fileSign ? (t(), u("div", {
|
|
1158
1165
|
key: 0,
|
|
1159
1166
|
class: l(e.question.cssClasses.fileSign)
|
|
1160
1167
|
}, [
|
|
1161
1168
|
p("a", {
|
|
1162
|
-
onClick: (
|
|
1163
|
-
href:
|
|
1164
|
-
title:
|
|
1165
|
-
download:
|
|
1169
|
+
onClick: (k) => e.question.doDownloadFile(k, h),
|
|
1170
|
+
href: h.content,
|
|
1171
|
+
title: h.name,
|
|
1172
|
+
download: h.name,
|
|
1166
1173
|
style: $({ width: e.question.imageWidth })
|
|
1167
|
-
}, I(
|
|
1174
|
+
}, I(h.name), 13, Ws)
|
|
1168
1175
|
], 2)) : m("", !0),
|
|
1169
1176
|
p("div", {
|
|
1170
1177
|
class: l(e.question.cssClasses.imageWrapper)
|
|
1171
1178
|
}, [
|
|
1172
|
-
e.question.canPreviewImage(
|
|
1179
|
+
e.question.canPreviewImage(h) ? (t(), u("img", {
|
|
1173
1180
|
key: 0,
|
|
1174
|
-
src:
|
|
1181
|
+
src: h.content,
|
|
1175
1182
|
style: $({
|
|
1176
1183
|
height: e.question.imageHeight,
|
|
1177
1184
|
width: e.question.imageWidth
|
|
1178
1185
|
}),
|
|
1179
1186
|
alt: "File preview"
|
|
1180
|
-
}, null, 12,
|
|
1181
|
-
e.question.defaultImage(
|
|
1187
|
+
}, null, 12, zs)) : m("", !0),
|
|
1188
|
+
e.question.defaultImage(h) ? (t(), q(d, {
|
|
1182
1189
|
key: 1,
|
|
1183
1190
|
iconName: e.question.cssClasses.defaultImageIconId,
|
|
1184
1191
|
class: l(e.question.cssClasses.defaultImage),
|
|
1185
1192
|
size: "auto"
|
|
1186
1193
|
}, null, 8, ["iconName", "class"])) : m("", !0),
|
|
1187
|
-
|
|
1194
|
+
h.name && !e.question.isReadOnly ? (t(), u("div", {
|
|
1188
1195
|
key: 2,
|
|
1189
1196
|
class: l(e.question.cssClasses.removeFileButton),
|
|
1190
|
-
onClick: (
|
|
1197
|
+
onClick: (k) => e.question.doRemoveFile(h)
|
|
1191
1198
|
}, [
|
|
1192
1199
|
p("span", {
|
|
1193
1200
|
class: l(e.question.cssClasses.removeFile)
|
|
1194
1201
|
}, I(e.question.removeFileCaption), 3),
|
|
1195
|
-
e.question.cssClasses.removeFileSvgIconId ? (t(),
|
|
1202
|
+
e.question.cssClasses.removeFileSvgIconId ? (t(), q(d, {
|
|
1196
1203
|
key: 0,
|
|
1197
1204
|
title: e.question.removeFileCaption,
|
|
1198
1205
|
class: l(e.question.cssClasses.removeFileSvg),
|
|
1199
1206
|
iconName: e.question.cssClasses.removeFileSvgIconId,
|
|
1200
1207
|
size: "auto"
|
|
1201
1208
|
}, null, 8, ["title", "class", "iconName"])) : m("", !0)
|
|
1202
|
-
], 10,
|
|
1209
|
+
], 10, Us)) : m("", !0)
|
|
1203
1210
|
], 2),
|
|
1204
|
-
|
|
1211
|
+
h.name && e.question.cssClasses.fileSignBottom ? (t(), u("div", {
|
|
1205
1212
|
key: 1,
|
|
1206
1213
|
class: l(e.question.cssClasses.fileSignBottom)
|
|
1207
1214
|
}, [
|
|
1208
1215
|
p("a", {
|
|
1209
|
-
onClick: (
|
|
1210
|
-
href:
|
|
1211
|
-
title:
|
|
1212
|
-
download:
|
|
1216
|
+
onClick: (k) => e.question.doDownloadFile(k, h),
|
|
1217
|
+
href: h.content,
|
|
1218
|
+
title: h.name,
|
|
1219
|
+
download: h.name,
|
|
1213
1220
|
style: $({ width: e.question.imageWidth })
|
|
1214
|
-
}, I(
|
|
1221
|
+
}, I(h.name), 13, Ks)
|
|
1215
1222
|
], 2)) : m("", !0)
|
|
1216
1223
|
], 2)), [
|
|
1217
|
-
[H,
|
|
1224
|
+
[H, h && s(g)]
|
|
1218
1225
|
])), 128))
|
|
1219
|
-
], 2)),
|
|
1226
|
+
], 2)) : m("", !0),
|
|
1220
1227
|
e.question.showRemoveButtonBottom ? (t(), u("button", {
|
|
1221
1228
|
key: 2,
|
|
1222
1229
|
type: "button",
|
|
1223
1230
|
class: l(e.question.showRemoveButtonBottom),
|
|
1224
|
-
onClick: i[2] || (i[2] = (...
|
|
1231
|
+
onClick: i[2] || (i[2] = (...h) => e.question.doClean && e.question.doClean(...h))
|
|
1225
1232
|
}, [
|
|
1226
1233
|
p("span", null, I(e.question.clearButtonCaption), 1),
|
|
1227
|
-
e.question.cssClasses.removeButtonIconId ? (t(),
|
|
1234
|
+
e.question.cssClasses.removeButtonIconId ? (t(), q(d, {
|
|
1228
1235
|
key: 0,
|
|
1229
1236
|
iconName: e.question.cssClasses.removeButtonIconId,
|
|
1230
1237
|
size: "auto",
|
|
1231
1238
|
title: e.question.clearButtonCaption
|
|
1232
1239
|
}, null, 8, ["iconName", "title"])) : m("", !0)
|
|
1233
1240
|
], 2)) : m("", !0),
|
|
1234
|
-
e.question.
|
|
1241
|
+
e.question.fileNavigatorVisible ? (t(), q(c, {
|
|
1235
1242
|
key: 3,
|
|
1236
|
-
model: e.question.
|
|
1243
|
+
model: e.question.fileNavigator
|
|
1237
1244
|
}, null, 8, ["model"])) : m("", !0)
|
|
1238
1245
|
], 34)
|
|
1239
1246
|
], 2);
|
|
1240
1247
|
};
|
|
1241
1248
|
}
|
|
1242
|
-
}),
|
|
1249
|
+
}), js = ["aria-label"], Qs = /* @__PURE__ */ C({
|
|
1243
1250
|
__name: "Imagepicker",
|
|
1244
1251
|
props: {
|
|
1245
1252
|
question: {}
|
|
@@ -1247,7 +1254,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1247
1254
|
setup(r) {
|
|
1248
1255
|
const o = r, n = S(null);
|
|
1249
1256
|
return M(o, n), (s, e) => {
|
|
1250
|
-
const i =
|
|
1257
|
+
const i = v("survey-imagepicker-item");
|
|
1251
1258
|
return t(), u("fieldset", {
|
|
1252
1259
|
class: l(s.question.getSelectBaseRootCss()),
|
|
1253
1260
|
ref_key: "root",
|
|
@@ -1256,18 +1263,18 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1256
1263
|
p("legend", {
|
|
1257
1264
|
role: "radio",
|
|
1258
1265
|
"aria-label": s.question.locTitle.renderedHtml
|
|
1259
|
-
}, null, 8,
|
|
1260
|
-
s.question.hasColumns ? m("", !0) : (t(!0), u(w, { key: 0 },
|
|
1266
|
+
}, null, 8, js),
|
|
1267
|
+
s.question.hasColumns ? m("", !0) : (t(!0), u(w, { key: 0 }, T(s.question.visibleChoices, (a) => (t(), q(i, {
|
|
1261
1268
|
key: a.value,
|
|
1262
1269
|
question: s.question,
|
|
1263
1270
|
item: a
|
|
1264
1271
|
}, null, 8, ["question", "item"]))), 128)),
|
|
1265
|
-
s.question.hasColumns ? (t(!0), u(w, { key: 1 },
|
|
1272
|
+
s.question.hasColumns ? (t(!0), u(w, { key: 1 }, T(s.question.columns, (a, d) => (t(), u("div", {
|
|
1266
1273
|
class: l(s.question.getColumnClass()),
|
|
1267
1274
|
key: d,
|
|
1268
1275
|
role: "presentation"
|
|
1269
1276
|
}, [
|
|
1270
|
-
(t(!0), u(w, null,
|
|
1277
|
+
(t(!0), u(w, null, T(a, (c) => (t(), q(i, {
|
|
1271
1278
|
key: c.value,
|
|
1272
1279
|
question: s.question,
|
|
1273
1280
|
item: c
|
|
@@ -1276,7 +1283,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1276
1283
|
], 2);
|
|
1277
1284
|
};
|
|
1278
1285
|
}
|
|
1279
|
-
}),
|
|
1286
|
+
}), 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
1287
|
__name: "ImagepickerItem",
|
|
1281
1288
|
props: {
|
|
1282
1289
|
question: {},
|
|
@@ -1287,14 +1294,14 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1287
1294
|
B(() => o.item);
|
|
1288
1295
|
const s = W(() => o.item.locImageLink);
|
|
1289
1296
|
return (e, i) => {
|
|
1290
|
-
const a =
|
|
1297
|
+
const a = v("sv-svg-icon"), d = v("survey-string");
|
|
1291
1298
|
return t(), u("div", {
|
|
1292
1299
|
class: l(n(e.item))
|
|
1293
1300
|
}, [
|
|
1294
1301
|
p("label", {
|
|
1295
1302
|
class: l(e.question.cssClasses.label)
|
|
1296
1303
|
}, [
|
|
1297
|
-
e.question.multiSelect ?
|
|
1304
|
+
e.question.multiSelect ? L((t(), u("input", {
|
|
1298
1305
|
key: 0,
|
|
1299
1306
|
type: "checkbox",
|
|
1300
1307
|
name: e.question.questionName,
|
|
@@ -1307,9 +1314,9 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1307
1314
|
"aria-invalid": e.question.ariaInvalid,
|
|
1308
1315
|
"aria-describedby": e.question.ariaDescribedBy,
|
|
1309
1316
|
class: l(e.question.cssClasses.itemControl)
|
|
1310
|
-
}, null, 10,
|
|
1317
|
+
}, null, 10, Zs)), [
|
|
1311
1318
|
[z, e.question.value]
|
|
1312
|
-
]) :
|
|
1319
|
+
]) : L((t(), u("input", {
|
|
1313
1320
|
key: 1,
|
|
1314
1321
|
type: "radio",
|
|
1315
1322
|
name: e.question.questionName,
|
|
@@ -1322,8 +1329,8 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1322
1329
|
"aria-invalid": e.question.ariaInvalid,
|
|
1323
1330
|
"aria-describedby": e.question.ariaDescribedBy,
|
|
1324
1331
|
class: l(e.question.cssClasses.itemControl)
|
|
1325
|
-
}, null, 10,
|
|
1326
|
-
[
|
|
1332
|
+
}, null, 10, Gs)), [
|
|
1333
|
+
[J, e.question.value]
|
|
1327
1334
|
]),
|
|
1328
1335
|
p("div", {
|
|
1329
1336
|
class: l(e.question.cssClasses.itemDecorator)
|
|
@@ -1335,17 +1342,17 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1335
1342
|
key: 0,
|
|
1336
1343
|
class: l(e.question.cssClasses.checkedItemDecorator)
|
|
1337
1344
|
}, [
|
|
1338
|
-
e.question.cssClasses.checkedItemSvgIconId ? (t(),
|
|
1345
|
+
e.question.cssClasses.checkedItemSvgIconId ? (t(), q(a, {
|
|
1339
1346
|
key: 0,
|
|
1340
1347
|
class: l(e.question.cssClasses.checkedItemSvgIcon),
|
|
1341
1348
|
size: "auto",
|
|
1342
1349
|
iconName: e.question.cssClasses.checkedItemSvgIconId
|
|
1343
1350
|
}, null, 8, ["class", "iconName"])) : m("", !0)
|
|
1344
1351
|
], 2)) : m("", !0),
|
|
1345
|
-
|
|
1352
|
+
f(s) && !e.item.contentNotLoaded && e.question.contentMode === "image" ? (t(), u("img", {
|
|
1346
1353
|
key: 1,
|
|
1347
1354
|
class: l(e.question.cssClasses.image),
|
|
1348
|
-
src:
|
|
1355
|
+
src: f(s),
|
|
1349
1356
|
width: e.question.renderedImageWidth,
|
|
1350
1357
|
height: e.question.renderedImageHeight,
|
|
1351
1358
|
style: $({ objectFit: e.question.imageFit }),
|
|
@@ -1356,12 +1363,12 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1356
1363
|
onError: i[3] || (i[3] = (c) => {
|
|
1357
1364
|
e.item.onErrorHandler();
|
|
1358
1365
|
})
|
|
1359
|
-
}, null, 46,
|
|
1360
|
-
|
|
1366
|
+
}, null, 46, Xs)) : m("", !0),
|
|
1367
|
+
f(s) && !e.item.contentNotLoaded && e.question.contentMode === "video" ? (t(), u("video", {
|
|
1361
1368
|
key: 2,
|
|
1362
1369
|
controls: "",
|
|
1363
1370
|
class: l(e.question.cssClasses.image),
|
|
1364
|
-
src:
|
|
1371
|
+
src: f(s),
|
|
1365
1372
|
width: e.question.renderedImageWidth,
|
|
1366
1373
|
height: e.question.renderedImageHeight,
|
|
1367
1374
|
style: $({ objectFit: e.question.imageFit }),
|
|
@@ -1371,8 +1378,8 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1371
1378
|
onError: i[5] || (i[5] = (c) => {
|
|
1372
1379
|
e.item.onErrorHandler();
|
|
1373
1380
|
})
|
|
1374
|
-
}, null, 46,
|
|
1375
|
-
!
|
|
1381
|
+
}, null, 46, Js)) : m("", !0),
|
|
1382
|
+
!f(s) || e.item.contentNotLoaded ? (t(), u("div", {
|
|
1376
1383
|
key: 3,
|
|
1377
1384
|
class: l(e.question.cssClasses.itemNoImage),
|
|
1378
1385
|
style: $({
|
|
@@ -1381,7 +1388,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1381
1388
|
objectFit: e.question.imageFit
|
|
1382
1389
|
})
|
|
1383
1390
|
}, [
|
|
1384
|
-
|
|
1391
|
+
b(a, {
|
|
1385
1392
|
class: l(e.question.cssClasses.itemNoImageSvgIcon),
|
|
1386
1393
|
iconName: e.question.cssClasses.itemNoImageSvgIconId,
|
|
1387
1394
|
size: 48
|
|
@@ -1392,7 +1399,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1392
1399
|
key: 0,
|
|
1393
1400
|
class: l(e.question.cssClasses.itemText)
|
|
1394
1401
|
}, [
|
|
1395
|
-
|
|
1402
|
+
b(d, {
|
|
1396
1403
|
locString: e.item.locText
|
|
1397
1404
|
}, null, 8, ["locString"])
|
|
1398
1405
|
], 2)) : m("", !0)
|
|
@@ -1401,7 +1408,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1401
1408
|
], 2);
|
|
1402
1409
|
};
|
|
1403
1410
|
}
|
|
1404
|
-
}),
|
|
1411
|
+
}), 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
1412
|
__name: "Comment",
|
|
1406
1413
|
props: {
|
|
1407
1414
|
question: {},
|
|
@@ -1415,7 +1422,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1415
1422
|
i.value = e.target.value;
|
|
1416
1423
|
};
|
|
1417
1424
|
return (e, i) => {
|
|
1418
|
-
const a =
|
|
1425
|
+
const a = v("sv-character-counter");
|
|
1419
1426
|
return !e.question.isReadOnlyRenderDiv() && !e.question.getMaxLength() ? (t(), u("textarea", {
|
|
1420
1427
|
key: 0,
|
|
1421
1428
|
ref_key: "root",
|
|
@@ -1442,7 +1449,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1442
1449
|
"aria-invalid": e.question.a11y_input_ariaInvalid,
|
|
1443
1450
|
"aria-describedby": e.question.a11y_input_ariaDescribedBy,
|
|
1444
1451
|
style: $({ resize: e.question.resizeStyle })
|
|
1445
|
-
}, null, 46,
|
|
1452
|
+
}, null, 46, xs)) : !e.question.isReadOnlyRenderDiv() && e.question.getMaxLength() ? (t(), u("div", {
|
|
1446
1453
|
key: 1,
|
|
1447
1454
|
ref_key: "root",
|
|
1448
1455
|
ref: n
|
|
@@ -1470,8 +1477,8 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1470
1477
|
"aria-invalid": e.question.a11y_input_ariaInvalid,
|
|
1471
1478
|
"aria-describedby": e.question.a11y_input_ariaDescribedBy,
|
|
1472
1479
|
style: $({ resize: e.question.resizeStyle })
|
|
1473
|
-
}, null, 46,
|
|
1474
|
-
|
|
1480
|
+
}, null, 46, en),
|
|
1481
|
+
b(a, {
|
|
1475
1482
|
counter: e.question.characterCounter,
|
|
1476
1483
|
remainingCharacterCounter: e.question.cssClasses.remainingCharacterCounter
|
|
1477
1484
|
}, null, 8, ["counter", "remainingCharacterCounter"])
|
|
@@ -1482,7 +1489,7 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1482
1489
|
}, I(e.question.value), 513));
|
|
1483
1490
|
};
|
|
1484
1491
|
}
|
|
1485
|
-
}),
|
|
1492
|
+
}), nn = /* @__PURE__ */ C({
|
|
1486
1493
|
__name: "Dropdown",
|
|
1487
1494
|
props: {
|
|
1488
1495
|
question: {}
|
|
@@ -1490,30 +1497,30 @@ const Ee = /* @__PURE__ */ C({
|
|
|
1490
1497
|
setup(r) {
|
|
1491
1498
|
const o = r, n = S(null);
|
|
1492
1499
|
return M(o, n), (s, e) => {
|
|
1493
|
-
const i =
|
|
1500
|
+
const i = v("sv-dropdown"), a = v("survey-other-choice");
|
|
1494
1501
|
return t(), u("div", {
|
|
1495
1502
|
class: l(s.question.renderCssRoot),
|
|
1496
1503
|
ref_key: "root",
|
|
1497
1504
|
ref: n
|
|
1498
1505
|
}, [
|
|
1499
|
-
|
|
1500
|
-
s.question.isOtherSelected ? (t(),
|
|
1506
|
+
b(i, { question: s.question }, null, 8, ["question"]),
|
|
1507
|
+
s.question.isOtherSelected ? (t(), q(a, {
|
|
1501
1508
|
key: 0,
|
|
1502
1509
|
question: s.question
|
|
1503
1510
|
}, null, 8, ["question"])) : m("", !0)
|
|
1504
1511
|
], 2);
|
|
1505
1512
|
};
|
|
1506
1513
|
}
|
|
1507
|
-
}),
|
|
1514
|
+
}), on = ["id", "autocomplete", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "required"], tn = {
|
|
1508
1515
|
key: 0,
|
|
1509
1516
|
value: ""
|
|
1510
|
-
},
|
|
1511
|
-
|
|
1517
|
+
}, ln = ["id"];
|
|
1518
|
+
G.Instance.registerRenderer(
|
|
1512
1519
|
"dropdown",
|
|
1513
1520
|
"select",
|
|
1514
1521
|
"sv-dropdown-select"
|
|
1515
1522
|
);
|
|
1516
|
-
const
|
|
1523
|
+
const rn = /* @__PURE__ */ C({
|
|
1517
1524
|
__name: "DropdownSelect",
|
|
1518
1525
|
props: {
|
|
1519
1526
|
question: {}
|
|
@@ -1525,7 +1532,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1525
1532
|
o.question.onClick(a);
|
|
1526
1533
|
}, e = (a) => {
|
|
1527
1534
|
o.question.onKeyUp(a);
|
|
1528
|
-
}, i =
|
|
1535
|
+
}, i = R({
|
|
1529
1536
|
get() {
|
|
1530
1537
|
var a;
|
|
1531
1538
|
return (a = o.question.value) != null ? a : "";
|
|
@@ -1536,7 +1543,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1536
1543
|
}
|
|
1537
1544
|
});
|
|
1538
1545
|
return (a, d) => {
|
|
1539
|
-
const c =
|
|
1546
|
+
const c = v("sv-dropdown-option-item"), y = v("sv-svg-icon"), h = v("survey-other-choice");
|
|
1540
1547
|
return t(), u("div", {
|
|
1541
1548
|
class: l(a.question.renderCssRoot)
|
|
1542
1549
|
}, [
|
|
@@ -1548,7 +1555,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1548
1555
|
disabled: "",
|
|
1549
1556
|
id: a.question.inputId,
|
|
1550
1557
|
class: l(a.question.getControlClass())
|
|
1551
|
-
}, I(a.question.readOnlyText), 11,
|
|
1558
|
+
}, I(a.question.readOnlyText), 11, ln)) : L((t(), u("select", {
|
|
1552
1559
|
key: 0,
|
|
1553
1560
|
id: a.question.inputId,
|
|
1554
1561
|
"onUpdate:modelValue": d[0] || (d[0] = (g) => i.value = g),
|
|
@@ -1562,33 +1569,33 @@ const tn = /* @__PURE__ */ C({
|
|
|
1562
1569
|
"aria-describedby": a.question.ariaDescribedBy,
|
|
1563
1570
|
required: a.question.isRequired
|
|
1564
1571
|
}, [
|
|
1565
|
-
a.question.allowClear ? (t(), u("option",
|
|
1566
|
-
(t(!0), u(w, null,
|
|
1572
|
+
a.question.allowClear ? (t(), u("option", tn, I(a.question.placeholder), 1)) : m("", !0),
|
|
1573
|
+
(t(!0), u(w, null, T(a.question.visibleChoices, (g) => (t(), q(c, {
|
|
1567
1574
|
item: g,
|
|
1568
1575
|
key: g.id
|
|
1569
1576
|
}, null, 8, ["item"]))), 128))
|
|
1570
|
-
], 42,
|
|
1571
|
-
[
|
|
1577
|
+
], 42, on)), [
|
|
1578
|
+
[ve, i.value]
|
|
1572
1579
|
]),
|
|
1573
1580
|
a.question.cssClasses.chevronButtonIconId ? (t(), u("div", {
|
|
1574
1581
|
key: 2,
|
|
1575
1582
|
class: l(a.question.cssClasses.chevronButton)
|
|
1576
1583
|
}, [
|
|
1577
|
-
|
|
1584
|
+
b(y, {
|
|
1578
1585
|
class: l(a.question.cssClasses.chevronButtonSvg),
|
|
1579
1586
|
iconName: a.question.cssClasses.chevronButtonIconId,
|
|
1580
1587
|
size: "auto"
|
|
1581
1588
|
}, null, 8, ["class", "iconName"])
|
|
1582
1589
|
], 2)) : m("", !0)
|
|
1583
1590
|
], 2),
|
|
1584
|
-
a.question.isOtherSelected ? (t(),
|
|
1591
|
+
a.question.isOtherSelected ? (t(), q(h, {
|
|
1585
1592
|
key: 0,
|
|
1586
1593
|
question: a.question
|
|
1587
1594
|
}, null, 8, ["question"])) : m("", !0)
|
|
1588
1595
|
], 2);
|
|
1589
1596
|
};
|
|
1590
1597
|
}
|
|
1591
|
-
}),
|
|
1598
|
+
}), an = ["value", "disabled"], un = /* @__PURE__ */ C({
|
|
1592
1599
|
__name: "OptionItem",
|
|
1593
1600
|
props: {
|
|
1594
1601
|
item: {}
|
|
@@ -1598,17 +1605,17 @@ const tn = /* @__PURE__ */ C({
|
|
|
1598
1605
|
return B(() => o.item), (s, e) => (t(), u("option", {
|
|
1599
1606
|
value: s.item.value,
|
|
1600
1607
|
disabled: !s.item.isEnabled
|
|
1601
|
-
}, I(
|
|
1608
|
+
}, I(f(n)), 9, an));
|
|
1602
1609
|
}
|
|
1603
|
-
}),
|
|
1610
|
+
}), 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
1611
|
__name: "Dropdown",
|
|
1605
1612
|
props: {
|
|
1606
1613
|
question: {}
|
|
1607
1614
|
},
|
|
1608
1615
|
setup(r) {
|
|
1609
|
-
const o = r, n = S(null), s =
|
|
1616
|
+
const o = r, n = S(null), s = R(() => {
|
|
1610
1617
|
const g = o.question;
|
|
1611
|
-
return g.dropdownListModel || (g.dropdownListModel = new
|
|
1618
|
+
return g.dropdownListModel || (g.dropdownListModel = new Ie(g)), o.question.dropdownListModel;
|
|
1612
1619
|
}), e = (g) => {
|
|
1613
1620
|
var k;
|
|
1614
1621
|
(k = s.value) == null || k.onClick(g);
|
|
@@ -1621,19 +1628,19 @@ const tn = /* @__PURE__ */ C({
|
|
|
1621
1628
|
}, d = () => {
|
|
1622
1629
|
if (n.value) {
|
|
1623
1630
|
const g = n.value, k = s.value.inputStringRendered;
|
|
1624
|
-
|
|
1631
|
+
we.isTwoValueEquals(k, g.value, !1, !0, !1) || (g.value = s.value.inputStringRendered);
|
|
1625
1632
|
}
|
|
1626
1633
|
}, c = (g) => {
|
|
1627
1634
|
var k;
|
|
1628
1635
|
(k = s.value) == null || k.onBlur(g), d();
|
|
1629
|
-
},
|
|
1636
|
+
}, y = (g) => {
|
|
1630
1637
|
var k;
|
|
1631
1638
|
(k = s.value) == null || k.onFocus(g);
|
|
1632
|
-
},
|
|
1639
|
+
}, h = (g) => {
|
|
1633
1640
|
s.value.inputStringRendered = g.target.value;
|
|
1634
1641
|
};
|
|
1635
|
-
return B(() => s.value),
|
|
1636
|
-
const P =
|
|
1642
|
+
return B(() => s.value), Z(d), A(d), (g, k) => {
|
|
1643
|
+
const P = v("survey-string"), D = v("sv-svg-icon"), E = v("sv-popup");
|
|
1637
1644
|
return t(), u("div", {
|
|
1638
1645
|
class: l(g.question.cssClasses.selectWrapper),
|
|
1639
1646
|
onClick: e
|
|
@@ -1665,7 +1672,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1665
1672
|
p("div", {
|
|
1666
1673
|
class: l(g.question.cssClasses.controlValue)
|
|
1667
1674
|
}, [
|
|
1668
|
-
g.question.showSelectedItemLocText ? (t(),
|
|
1675
|
+
g.question.showSelectedItemLocText ? (t(), q(P, {
|
|
1669
1676
|
key: 0,
|
|
1670
1677
|
locString: g.question.selectedItemLocText
|
|
1671
1678
|
}, null, 8, ["locString"])) : m("", !0),
|
|
@@ -1673,10 +1680,10 @@ const tn = /* @__PURE__ */ C({
|
|
|
1673
1680
|
key: 1,
|
|
1674
1681
|
class: l(g.question.cssClasses.hintSuffix)
|
|
1675
1682
|
}, [
|
|
1676
|
-
p("span",
|
|
1683
|
+
p("span", mn, I(s.value.inputStringRendered), 1),
|
|
1677
1684
|
p("span", null, I(s.value.hintStringSuffix), 1)
|
|
1678
1685
|
], 2)) : m("", !0),
|
|
1679
|
-
g.question.showInputFieldComponent ? (t(),
|
|
1686
|
+
g.question.showInputFieldComponent ? (t(), q(N(g.question.inputFieldComponentName), {
|
|
1680
1687
|
key: 2,
|
|
1681
1688
|
item: s.value.getSelectedAction(),
|
|
1682
1689
|
question: g.question
|
|
@@ -1698,17 +1705,17 @@ const tn = /* @__PURE__ */ C({
|
|
|
1698
1705
|
"aria-controls": s.value.listElementId,
|
|
1699
1706
|
"aria-activedescendant": s.value.ariaActivedescendant,
|
|
1700
1707
|
placeholder: s.value.placeholderRendered,
|
|
1701
|
-
onInput:
|
|
1708
|
+
onInput: h,
|
|
1702
1709
|
onBlur: c,
|
|
1703
|
-
onFocus:
|
|
1704
|
-
}, null, 42,
|
|
1710
|
+
onFocus: y
|
|
1711
|
+
}, null, 42, cn)
|
|
1705
1712
|
], 2),
|
|
1706
|
-
g.question.allowClear && g.question.cssClasses.cleanButtonIconId ?
|
|
1713
|
+
g.question.allowClear && g.question.cssClasses.cleanButtonIconId ? L((t(), u("div", {
|
|
1707
1714
|
key: 1,
|
|
1708
1715
|
class: l(g.question.cssClasses.cleanButton),
|
|
1709
1716
|
onClick: i
|
|
1710
1717
|
}, [
|
|
1711
|
-
|
|
1718
|
+
b(D, {
|
|
1712
1719
|
class: l(g.question.cssClasses.cleanButtonSvg),
|
|
1713
1720
|
iconName: g.question.cssClasses.cleanButtonIconId,
|
|
1714
1721
|
title: g.question.clearCaption,
|
|
@@ -1717,19 +1724,19 @@ const tn = /* @__PURE__ */ C({
|
|
|
1717
1724
|
], 2)), [
|
|
1718
1725
|
[H, !g.question.isEmpty()]
|
|
1719
1726
|
]) : m("", !0)
|
|
1720
|
-
], 42,
|
|
1727
|
+
], 42, dn)),
|
|
1721
1728
|
g.question.isReadOnly ? (t(), u("div", {
|
|
1722
1729
|
key: 2,
|
|
1723
1730
|
disabled: "",
|
|
1724
1731
|
id: g.question.inputId,
|
|
1725
1732
|
class: l(g.question.getControlClass())
|
|
1726
1733
|
}, [
|
|
1727
|
-
g.question.selectedItemLocText ? (t(),
|
|
1734
|
+
g.question.selectedItemLocText ? (t(), q(P, {
|
|
1728
1735
|
key: 0,
|
|
1729
1736
|
locString: g.question.selectedItemLocText
|
|
1730
1737
|
}, null, 8, ["locString"])) : m("", !0),
|
|
1731
1738
|
p("div", null, I(g.question.readOnlyText), 1)
|
|
1732
|
-
], 10,
|
|
1739
|
+
], 10, pn)) : (t(), q(E, {
|
|
1733
1740
|
key: 1,
|
|
1734
1741
|
model: g.question.dropdownListModel.popupModel
|
|
1735
1742
|
}, null, 8, ["model"])),
|
|
@@ -1737,7 +1744,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1737
1744
|
key: 3,
|
|
1738
1745
|
class: l(g.question.cssClasses.chevronButton)
|
|
1739
1746
|
}, [
|
|
1740
|
-
|
|
1747
|
+
b(D, {
|
|
1741
1748
|
class: l(g.question.cssClasses.chevronButtonSvg),
|
|
1742
1749
|
iconName: g.question.cssClasses.chevronButtonIconId,
|
|
1743
1750
|
size: "auto"
|
|
@@ -1746,7 +1753,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1746
1753
|
], 2);
|
|
1747
1754
|
};
|
|
1748
1755
|
}
|
|
1749
|
-
}),
|
|
1756
|
+
}), qn = /* @__PURE__ */ C({
|
|
1750
1757
|
__name: "Tagbox",
|
|
1751
1758
|
props: {
|
|
1752
1759
|
question: {}
|
|
@@ -1754,29 +1761,29 @@ const tn = /* @__PURE__ */ C({
|
|
|
1754
1761
|
setup(r) {
|
|
1755
1762
|
const o = r, n = S(null);
|
|
1756
1763
|
return M(o, n), (s, e) => {
|
|
1757
|
-
const i =
|
|
1764
|
+
const i = v("sv-tagbox"), a = v("survey-other-choice");
|
|
1758
1765
|
return t(), u("div", {
|
|
1759
1766
|
class: l(s.question.renderCssRoot),
|
|
1760
1767
|
ref_key: "root",
|
|
1761
1768
|
ref: n
|
|
1762
1769
|
}, [
|
|
1763
|
-
|
|
1764
|
-
s.question.isOtherSelected ? (t(),
|
|
1770
|
+
b(i, { question: s.question }, null, 8, ["question"]),
|
|
1771
|
+
s.question.isOtherSelected ? (t(), q(a, {
|
|
1765
1772
|
key: 0,
|
|
1766
1773
|
question: s.question
|
|
1767
1774
|
}, null, 8, ["question"])) : m("", !0)
|
|
1768
1775
|
], 2);
|
|
1769
1776
|
};
|
|
1770
1777
|
}
|
|
1771
|
-
}),
|
|
1778
|
+
}), 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
1779
|
__name: "Tagbox",
|
|
1773
1780
|
props: {
|
|
1774
1781
|
question: {}
|
|
1775
1782
|
},
|
|
1776
1783
|
setup(r) {
|
|
1777
|
-
const o = r, n =
|
|
1784
|
+
const o = r, n = R(() => {
|
|
1778
1785
|
const d = o.question;
|
|
1779
|
-
return d.dropdownListModel || (d.dropdownListModel = new
|
|
1786
|
+
return d.dropdownListModel || (d.dropdownListModel = new Se(d)), o.question.dropdownListModel;
|
|
1780
1787
|
}), s = (d) => {
|
|
1781
1788
|
var c;
|
|
1782
1789
|
(c = n.value) == null || c.onClick(d);
|
|
@@ -1791,7 +1798,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1791
1798
|
(c = n.value) == null || c.onBlur(d);
|
|
1792
1799
|
};
|
|
1793
1800
|
return B(() => n.value), (d, c) => {
|
|
1794
|
-
const
|
|
1801
|
+
const y = v("sv-tagbox-item"), h = v("sv-tagbox-filter"), g = v("sv-svg-icon"), k = v("sv-popup");
|
|
1795
1802
|
return t(), u("div", {
|
|
1796
1803
|
class: l(d.question.cssClasses.selectWrapper),
|
|
1797
1804
|
onClick: s
|
|
@@ -1817,22 +1824,22 @@ const tn = /* @__PURE__ */ C({
|
|
|
1817
1824
|
p("div", {
|
|
1818
1825
|
class: l(d.question.cssClasses.controlValue)
|
|
1819
1826
|
}, [
|
|
1820
|
-
(t(!0), u(w, null,
|
|
1827
|
+
(t(!0), u(w, null, T(d.question.selectedChoices, (P, D) => (t(), q(y, {
|
|
1821
1828
|
item: P,
|
|
1822
1829
|
question: d.question,
|
|
1823
|
-
key: "item" +
|
|
1830
|
+
key: "item" + D
|
|
1824
1831
|
}, null, 8, ["item", "question"]))), 128)),
|
|
1825
|
-
h
|
|
1832
|
+
b(h, {
|
|
1826
1833
|
model: n.value,
|
|
1827
1834
|
question: d.question
|
|
1828
1835
|
}, null, 8, ["model", "question"])
|
|
1829
1836
|
], 2),
|
|
1830
|
-
d.question.allowClear && d.question.cssClasses.cleanButtonIconId ?
|
|
1837
|
+
d.question.allowClear && d.question.cssClasses.cleanButtonIconId ? L((t(), u("div", {
|
|
1831
1838
|
key: 0,
|
|
1832
1839
|
class: l(d.question.cssClasses.cleanButton),
|
|
1833
1840
|
onClick: e
|
|
1834
1841
|
}, [
|
|
1835
|
-
|
|
1842
|
+
b(g, {
|
|
1836
1843
|
class: l(d.question.cssClasses.cleanButtonSvg),
|
|
1837
1844
|
iconName: d.question.cssClasses.cleanButtonIconId,
|
|
1838
1845
|
title: d.question.clearCaption,
|
|
@@ -1841,7 +1848,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1841
1848
|
], 2)), [
|
|
1842
1849
|
[H, !d.question.isEmpty()]
|
|
1843
1850
|
]) : m("", !0)
|
|
1844
|
-
], 42,
|
|
1851
|
+
], 42, yn)),
|
|
1845
1852
|
d.question.isReadOnly ? (t(), u("div", {
|
|
1846
1853
|
key: 2,
|
|
1847
1854
|
disabled: "",
|
|
@@ -1849,7 +1856,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1849
1856
|
class: l(d.question.getControlClass())
|
|
1850
1857
|
}, [
|
|
1851
1858
|
p("div", null, I(d.question.readOnlyText), 1)
|
|
1852
|
-
], 10,
|
|
1859
|
+
], 10, gn)) : (t(), q(k, {
|
|
1853
1860
|
key: 1,
|
|
1854
1861
|
model: n.value.popupModel
|
|
1855
1862
|
}, null, 8, ["model"])),
|
|
@@ -1857,7 +1864,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1857
1864
|
key: 3,
|
|
1858
1865
|
class: l(d.question.cssClasses.chevronButton)
|
|
1859
1866
|
}, [
|
|
1860
|
-
|
|
1867
|
+
b(g, {
|
|
1861
1868
|
class: l(d.question.cssClasses.chevronButtonSvg),
|
|
1862
1869
|
iconName: d.question.cssClasses.chevronButtonIconId,
|
|
1863
1870
|
size: "auto"
|
|
@@ -1866,7 +1873,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1866
1873
|
], 2);
|
|
1867
1874
|
};
|
|
1868
1875
|
}
|
|
1869
|
-
}),
|
|
1876
|
+
}), hn = { style: { visibility: "hidden" } }, bn = ["placeholder", "disabled", "inputmode", "role", "aria-label", "aria-expanded", "aria-controls", "aria-activedescendant", "id", "readonly", "size"], kn = /* @__PURE__ */ C({
|
|
1870
1877
|
__name: "TagboxFilter",
|
|
1871
1878
|
props: {
|
|
1872
1879
|
question: {},
|
|
@@ -1884,7 +1891,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1884
1891
|
o.model.onFocus(a);
|
|
1885
1892
|
};
|
|
1886
1893
|
return B(() => o.model), (a, d) => {
|
|
1887
|
-
const c =
|
|
1894
|
+
const c = v("survey-string");
|
|
1888
1895
|
return t(), u("div", {
|
|
1889
1896
|
class: l(a.question.cssClasses.hint)
|
|
1890
1897
|
}, [
|
|
@@ -1897,7 +1904,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1897
1904
|
p("div", {
|
|
1898
1905
|
class: l(a.question.cssClasses.hintSuffixWrapper)
|
|
1899
1906
|
}, [
|
|
1900
|
-
a.question.showSelectedItemLocText ? (t(),
|
|
1907
|
+
a.question.showSelectedItemLocText ? (t(), q(c, {
|
|
1901
1908
|
key: 0,
|
|
1902
1909
|
locString: a.question.selectedItemLocText
|
|
1903
1910
|
}, null, 8, ["locString"])) : m("", !0),
|
|
@@ -1905,13 +1912,13 @@ const tn = /* @__PURE__ */ C({
|
|
|
1905
1912
|
key: 1,
|
|
1906
1913
|
class: l(a.question.cssClasses.hintSuffix)
|
|
1907
1914
|
}, [
|
|
1908
|
-
p("span",
|
|
1915
|
+
p("span", hn, I(a.model.inputStringRendered), 1),
|
|
1909
1916
|
p("span", null, I(a.model.hintStringSuffix), 1)
|
|
1910
1917
|
], 2)) : m("", !0),
|
|
1911
|
-
|
|
1918
|
+
L(p("input", {
|
|
1912
1919
|
type: "text",
|
|
1913
1920
|
autocomplete: "off",
|
|
1914
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
1921
|
+
"onUpdate:modelValue": d[0] || (d[0] = (y) => a.model.inputStringRendered = y),
|
|
1915
1922
|
class: l(a.question.cssClasses.filterStringInput),
|
|
1916
1923
|
placeholder: a.model.filterStringPlaceholder,
|
|
1917
1924
|
disabled: a.question.isInputReadOnly,
|
|
@@ -1928,14 +1935,14 @@ const tn = /* @__PURE__ */ C({
|
|
|
1928
1935
|
onKeydown: s,
|
|
1929
1936
|
onBlur: e,
|
|
1930
1937
|
onFocus: i
|
|
1931
|
-
}, null, 42,
|
|
1932
|
-
[
|
|
1938
|
+
}, null, 42, bn), [
|
|
1939
|
+
[qe, a.model.inputStringRendered]
|
|
1933
1940
|
])
|
|
1934
1941
|
], 2)
|
|
1935
1942
|
], 2);
|
|
1936
1943
|
};
|
|
1937
1944
|
}
|
|
1938
|
-
}),
|
|
1945
|
+
}), fn = { class: "sv-tagbox__item-text" }, In = /* @__PURE__ */ C({
|
|
1939
1946
|
__name: "TagboxItem",
|
|
1940
1947
|
props: {
|
|
1941
1948
|
question: {},
|
|
@@ -1946,13 +1953,13 @@ const tn = /* @__PURE__ */ C({
|
|
|
1946
1953
|
o.question.dropdownListModel.deselectItem(o.item.value), s.stopPropagation();
|
|
1947
1954
|
};
|
|
1948
1955
|
return B(() => o.item), (s, e) => {
|
|
1949
|
-
const i =
|
|
1956
|
+
const i = v("survey-string"), a = v("sv-svg-icon");
|
|
1950
1957
|
return t(), u("div", {
|
|
1951
1958
|
class: "sv-tagbox__item",
|
|
1952
1959
|
key: s.item.key
|
|
1953
1960
|
}, [
|
|
1954
|
-
p("div",
|
|
1955
|
-
|
|
1961
|
+
p("div", fn, [
|
|
1962
|
+
b(i, {
|
|
1956
1963
|
locString: s.item.locText
|
|
1957
1964
|
}, null, 8, ["locString"])
|
|
1958
1965
|
]),
|
|
@@ -1960,7 +1967,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1960
1967
|
class: l(s.question.cssClasses.cleanItemButton),
|
|
1961
1968
|
onClick: n
|
|
1962
1969
|
}, [
|
|
1963
|
-
|
|
1970
|
+
b(a, {
|
|
1964
1971
|
class: l(s.question.cssClasses.cleanItemButtonSvg),
|
|
1965
1972
|
iconName: s.question.cssClasses.cleanItemButtonIconId,
|
|
1966
1973
|
size: "auto"
|
|
@@ -1969,7 +1976,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
1969
1976
|
]);
|
|
1970
1977
|
};
|
|
1971
1978
|
}
|
|
1972
|
-
}),
|
|
1979
|
+
}), wn = /* @__PURE__ */ C({
|
|
1973
1980
|
__name: "Ranking",
|
|
1974
1981
|
props: {
|
|
1975
1982
|
question: {}
|
|
@@ -1979,13 +1986,13 @@ const tn = /* @__PURE__ */ C({
|
|
|
1979
1986
|
M(o, n);
|
|
1980
1987
|
const s = (e) => o.question.getNumberByIndex(e);
|
|
1981
1988
|
return (e, i) => {
|
|
1982
|
-
const a =
|
|
1989
|
+
const a = v("survey-ranking-item");
|
|
1983
1990
|
return t(), u("div", {
|
|
1984
1991
|
class: l(e.question.rootClass),
|
|
1985
1992
|
ref_key: "root",
|
|
1986
1993
|
ref: n
|
|
1987
1994
|
}, [
|
|
1988
|
-
e.question.selectToRankEnabled ? m("", !0) : (t(!0), u(w, { key: 0 },
|
|
1995
|
+
e.question.selectToRankEnabled ? m("", !0) : (t(!0), u(w, { key: 0 }, T(e.question.rankingChoices, (d, c) => (t(), q(a, {
|
|
1989
1996
|
key: d.value + "-" + c + "-item",
|
|
1990
1997
|
class: l(e.question.getItemClass(d)),
|
|
1991
1998
|
text: d.locText,
|
|
@@ -2000,7 +2007,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2000
2007
|
class: l(e.question.getContainerClasses("from")),
|
|
2001
2008
|
"data-ranking": "from-container"
|
|
2002
2009
|
}, [
|
|
2003
|
-
(t(!0), u(w, null,
|
|
2010
|
+
(t(!0), u(w, null, T(e.question.unRankingChoices, (d, c) => (t(), q(a, {
|
|
2004
2011
|
key: d.value + "-" + c + "-item",
|
|
2005
2012
|
class: l(e.question.getItemClass(d)),
|
|
2006
2013
|
text: d.locText,
|
|
@@ -2025,7 +2032,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2025
2032
|
class: l(e.question.getContainerClasses("to")),
|
|
2026
2033
|
"data-ranking": "to-container"
|
|
2027
2034
|
}, [
|
|
2028
|
-
(t(!0), u(w, null,
|
|
2035
|
+
(t(!0), u(w, null, T(e.question.rankingChoices, (d, c) => (t(), q(a, {
|
|
2029
2036
|
key: d.value + "-" + c + "-item",
|
|
2030
2037
|
class: l(e.question.getItemClass(d)),
|
|
2031
2038
|
text: d.locText,
|
|
@@ -2043,15 +2050,15 @@ const tn = /* @__PURE__ */ C({
|
|
|
2043
2050
|
], 2);
|
|
2044
2051
|
};
|
|
2045
2052
|
}
|
|
2046
|
-
}),
|
|
2053
|
+
}), Sn = ["tabindex", "data-sv-drop-target-ranking-item"], Rn = {
|
|
2047
2054
|
tabindex: "-1",
|
|
2048
2055
|
style: { outline: "none" }
|
|
2049
|
-
},
|
|
2050
|
-
|
|
2051
|
-
],
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
],
|
|
2056
|
+
}, Tn = /* @__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 = [
|
|
2057
|
+
Tn
|
|
2058
|
+
], Bn = /* @__PURE__ */ p("path", { d: "M10 5L5 0L0 5H4V9H6V5H10Z" }, null, -1), Ln = /* @__PURE__ */ p("path", { d: "M6 19V15H4V19H0L5 24L10 19H6Z" }, null, -1), Dn = [
|
|
2059
|
+
Bn,
|
|
2060
|
+
Ln
|
|
2061
|
+
], Pn = /* @__PURE__ */ C({
|
|
2055
2062
|
__name: "RankingItem",
|
|
2056
2063
|
props: {
|
|
2057
2064
|
index: {},
|
|
@@ -2066,7 +2073,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2066
2073
|
setup(r) {
|
|
2067
2074
|
const o = r;
|
|
2068
2075
|
return B(() => o.item), (n, s) => {
|
|
2069
|
-
const e =
|
|
2076
|
+
const e = v("survey-string");
|
|
2070
2077
|
return t(), u("div", {
|
|
2071
2078
|
tabindex: n.question.getItemTabIndex(n.item),
|
|
2072
2079
|
"data-sv-drop-target-ranking-item": n.index,
|
|
@@ -2083,7 +2090,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2083
2090
|
);
|
|
2084
2091
|
})
|
|
2085
2092
|
}, [
|
|
2086
|
-
p("div",
|
|
2093
|
+
p("div", Rn, [
|
|
2087
2094
|
p("div", {
|
|
2088
2095
|
class: l(n.cssClasses.itemGhostNode)
|
|
2089
2096
|
}, null, 2),
|
|
@@ -2099,14 +2106,14 @@ const tn = /* @__PURE__ */ C({
|
|
|
2099
2106
|
viewBox: "0 0 10 16",
|
|
2100
2107
|
class: l(n.question.getIconHoverCss()),
|
|
2101
2108
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2102
|
-
},
|
|
2109
|
+
}, $n, 2)),
|
|
2103
2110
|
(t(), u("svg", {
|
|
2104
2111
|
width: "10",
|
|
2105
2112
|
height: "24",
|
|
2106
2113
|
viewBox: "0 0 10 24",
|
|
2107
2114
|
class: l(n.question.getIconFocusCss()),
|
|
2108
2115
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2109
|
-
},
|
|
2116
|
+
}, Dn, 2))
|
|
2110
2117
|
], 2),
|
|
2111
2118
|
p("div", {
|
|
2112
2119
|
class: l(n.question.getItemIndexClasses(n.item))
|
|
@@ -2114,17 +2121,17 @@ const tn = /* @__PURE__ */ C({
|
|
|
2114
2121
|
p("div", {
|
|
2115
2122
|
class: l(n.cssClasses.controlLabel)
|
|
2116
2123
|
}, [
|
|
2117
|
-
|
|
2124
|
+
b(e, { locString: n.text }, null, 8, ["locString"])
|
|
2118
2125
|
], 2)
|
|
2119
2126
|
], 2)
|
|
2120
2127
|
])
|
|
2121
|
-
], 42,
|
|
2128
|
+
], 42, Sn);
|
|
2122
2129
|
};
|
|
2123
2130
|
}
|
|
2124
|
-
}),
|
|
2131
|
+
}), Mn = { role: "radiogroup" }, Nn = /* @__PURE__ */ p("legend", {
|
|
2125
2132
|
role: "presentation",
|
|
2126
2133
|
class: "sv-hidden"
|
|
2127
|
-
}, null, -1),
|
|
2134
|
+
}, null, -1), Hn = /* @__PURE__ */ C({
|
|
2128
2135
|
__name: "Rating",
|
|
2129
2136
|
props: {
|
|
2130
2137
|
question: {}
|
|
@@ -2134,23 +2141,23 @@ const tn = /* @__PURE__ */ C({
|
|
|
2134
2141
|
M(o, n);
|
|
2135
2142
|
const s = (e) => o.question.getInputId(e);
|
|
2136
2143
|
return (e, i) => {
|
|
2137
|
-
const a =
|
|
2144
|
+
const a = v("survey-string");
|
|
2138
2145
|
return t(), u("div", {
|
|
2139
2146
|
class: l(e.question.ratingRootCss),
|
|
2140
2147
|
ref_key: "root",
|
|
2141
2148
|
ref: n
|
|
2142
2149
|
}, [
|
|
2143
|
-
p("fieldset",
|
|
2144
|
-
|
|
2150
|
+
p("fieldset", Mn, [
|
|
2151
|
+
Nn,
|
|
2145
2152
|
e.question.hasMinLabel ? (t(), u("span", {
|
|
2146
2153
|
key: 0,
|
|
2147
2154
|
class: l(e.question.cssClasses.minText)
|
|
2148
2155
|
}, [
|
|
2149
|
-
|
|
2156
|
+
b(a, {
|
|
2150
2157
|
locString: e.question.locMinRateDescription
|
|
2151
2158
|
}, null, 8, ["locString"])
|
|
2152
2159
|
], 2)) : m("", !0),
|
|
2153
|
-
(t(!0), u(w, null,
|
|
2160
|
+
(t(!0), u(w, null, T(e.question.renderedRateItems, (d, c) => (t(), q(N(e.question.itemComponentName), {
|
|
2154
2161
|
key: s(c),
|
|
2155
2162
|
item: d,
|
|
2156
2163
|
index: c,
|
|
@@ -2160,7 +2167,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2160
2167
|
key: 1,
|
|
2161
2168
|
class: l(e.question.cssClasses.maxText)
|
|
2162
2169
|
}, [
|
|
2163
|
-
|
|
2170
|
+
b(a, {
|
|
2164
2171
|
locString: e.question.locMaxRateDescription
|
|
2165
2172
|
}, null, 8, ["locString"])
|
|
2166
2173
|
], 2)) : m("", !0)
|
|
@@ -2168,7 +2175,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2168
2175
|
], 2);
|
|
2169
2176
|
};
|
|
2170
2177
|
}
|
|
2171
|
-
}),
|
|
2178
|
+
}), An = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], En = /* @__PURE__ */ C({
|
|
2172
2179
|
__name: "RatingItem",
|
|
2173
2180
|
props: {
|
|
2174
2181
|
question: {},
|
|
@@ -2178,7 +2185,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2178
2185
|
setup(r) {
|
|
2179
2186
|
const o = r;
|
|
2180
2187
|
return B(() => o.item), (n, s) => {
|
|
2181
|
-
const e =
|
|
2188
|
+
const e = v("survey-string");
|
|
2182
2189
|
return t(), u("label", {
|
|
2183
2190
|
key: n.item.value,
|
|
2184
2191
|
onMousedown: s[1] || (s[1] = (i) => n.question.onMouseDown()),
|
|
@@ -2196,18 +2203,18 @@ const tn = /* @__PURE__ */ C({
|
|
|
2196
2203
|
"aria-label": n.question.ariaLabel,
|
|
2197
2204
|
"aria-invalid": n.question.ariaInvalid,
|
|
2198
2205
|
"aria-describedby": n.question.ariaDescribedBy
|
|
2199
|
-
}, null, 8,
|
|
2206
|
+
}, null, 8, An),
|
|
2200
2207
|
p("span", {
|
|
2201
2208
|
class: l(n.question.cssClasses.itemText)
|
|
2202
2209
|
}, [
|
|
2203
|
-
|
|
2210
|
+
b(e, {
|
|
2204
2211
|
locString: n.item.locText
|
|
2205
2212
|
}, null, 8, ["locString"])
|
|
2206
2213
|
], 2)
|
|
2207
2214
|
], 34);
|
|
2208
2215
|
};
|
|
2209
2216
|
}
|
|
2210
|
-
}),
|
|
2217
|
+
}), Vn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], On = /* @__PURE__ */ C({
|
|
2211
2218
|
__name: "RatingItemSmiley",
|
|
2212
2219
|
props: {
|
|
2213
2220
|
question: {},
|
|
@@ -2217,7 +2224,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2217
2224
|
setup(r) {
|
|
2218
2225
|
const o = r;
|
|
2219
2226
|
return B(() => o.item), (n, s) => {
|
|
2220
|
-
const e =
|
|
2227
|
+
const e = v("sv-svg-icon");
|
|
2221
2228
|
return t(), u("label", {
|
|
2222
2229
|
key: n.item.value,
|
|
2223
2230
|
onMousedown: s[1] || (s[1] = (i) => n.question.onMouseDown()),
|
|
@@ -2238,8 +2245,8 @@ const tn = /* @__PURE__ */ C({
|
|
|
2238
2245
|
"aria-label": n.question.ariaLabel,
|
|
2239
2246
|
"aria-invalid": n.question.ariaInvalid,
|
|
2240
2247
|
"aria-describedby": n.question.ariaDescribedBy
|
|
2241
|
-
}, null, 8,
|
|
2242
|
-
|
|
2248
|
+
}, null, 8, Vn),
|
|
2249
|
+
b(e, {
|
|
2243
2250
|
iconName: n.question.getItemSmileyIconName(n.item.itemValue),
|
|
2244
2251
|
size: "auto",
|
|
2245
2252
|
title: n.item.text
|
|
@@ -2247,7 +2254,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2247
2254
|
], 38);
|
|
2248
2255
|
};
|
|
2249
2256
|
}
|
|
2250
|
-
}),
|
|
2257
|
+
}), Fn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Wn = /* @__PURE__ */ C({
|
|
2251
2258
|
__name: "RatingItemStar",
|
|
2252
2259
|
props: {
|
|
2253
2260
|
question: {},
|
|
@@ -2257,7 +2264,7 @@ const tn = /* @__PURE__ */ C({
|
|
|
2257
2264
|
setup(r) {
|
|
2258
2265
|
const o = r;
|
|
2259
2266
|
return B(() => o.item), (n, s) => {
|
|
2260
|
-
const e =
|
|
2267
|
+
const e = v("sv-svg-icon");
|
|
2261
2268
|
return t(), u("label", {
|
|
2262
2269
|
key: n.item.value,
|
|
2263
2270
|
onMousedown: s[1] || (s[1] = (i) => n.question.onMouseDown()),
|
|
@@ -2277,14 +2284,14 @@ const tn = /* @__PURE__ */ C({
|
|
|
2277
2284
|
"aria-label": n.question.ariaLabel,
|
|
2278
2285
|
"aria-invalid": n.question.ariaInvalid,
|
|
2279
2286
|
"aria-describedby": n.question.ariaDescribedBy
|
|
2280
|
-
}, null, 8,
|
|
2281
|
-
|
|
2287
|
+
}, null, 8, Fn),
|
|
2288
|
+
b(e, {
|
|
2282
2289
|
class: l("sv-star"),
|
|
2283
2290
|
iconName: n.question.itemStarIcon,
|
|
2284
2291
|
size: "auto",
|
|
2285
2292
|
title: n.item.text
|
|
2286
2293
|
}, null, 8, ["iconName", "title"]),
|
|
2287
|
-
|
|
2294
|
+
b(e, {
|
|
2288
2295
|
class: l("sv-star-2"),
|
|
2289
2296
|
iconName: n.question.itemStarIconAlt,
|
|
2290
2297
|
size: "auto",
|
|
@@ -2294,12 +2301,12 @@ const tn = /* @__PURE__ */ C({
|
|
|
2294
2301
|
};
|
|
2295
2302
|
}
|
|
2296
2303
|
});
|
|
2297
|
-
|
|
2304
|
+
G.Instance.registerRenderer(
|
|
2298
2305
|
"rating",
|
|
2299
2306
|
"dropdown",
|
|
2300
2307
|
"sv-rating-dropdown"
|
|
2301
2308
|
);
|
|
2302
|
-
const
|
|
2309
|
+
const zn = /* @__PURE__ */ C({
|
|
2303
2310
|
__name: "RatingDropdown",
|
|
2304
2311
|
props: {
|
|
2305
2312
|
question: {}
|
|
@@ -2307,17 +2314,17 @@ const Fn = /* @__PURE__ */ C({
|
|
|
2307
2314
|
setup(r) {
|
|
2308
2315
|
const o = r, n = S(null);
|
|
2309
2316
|
return M(o, n), (s, e) => {
|
|
2310
|
-
const i =
|
|
2317
|
+
const i = v("sv-dropdown");
|
|
2311
2318
|
return t(), u("div", {
|
|
2312
2319
|
class: l(s.question.cssClasses.rootDropdown),
|
|
2313
2320
|
ref_key: "root",
|
|
2314
2321
|
ref: n
|
|
2315
2322
|
}, [
|
|
2316
|
-
|
|
2323
|
+
b(i, { question: s.question }, null, 8, ["question"])
|
|
2317
2324
|
], 2);
|
|
2318
2325
|
};
|
|
2319
2326
|
}
|
|
2320
|
-
}),
|
|
2327
|
+
}), Un = ["name", "value", "id", ".indeterminate", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Kn = /* @__PURE__ */ C({
|
|
2321
2328
|
__name: "BooleanSwitch",
|
|
2322
2329
|
props: {
|
|
2323
2330
|
question: {}
|
|
@@ -2332,19 +2339,19 @@ const Fn = /* @__PURE__ */ C({
|
|
|
2332
2339
|
};
|
|
2333
2340
|
return (i, a) => {
|
|
2334
2341
|
var c;
|
|
2335
|
-
const d =
|
|
2342
|
+
const d = v("survey-string");
|
|
2336
2343
|
return t(), u("div", {
|
|
2337
2344
|
class: l(i.question.cssClasses.root),
|
|
2338
|
-
onKeydown: a[4] || (a[4] = (
|
|
2345
|
+
onKeydown: a[4] || (a[4] = (y) => i.question.onKeyDownCore(y))
|
|
2339
2346
|
}, [
|
|
2340
2347
|
p("label", {
|
|
2341
2348
|
class: l(i.question.getItemCss())
|
|
2342
2349
|
}, [
|
|
2343
|
-
|
|
2350
|
+
L(p("input", {
|
|
2344
2351
|
type: "checkbox",
|
|
2345
2352
|
name: i.question.name,
|
|
2346
2353
|
value: (c = i.question.booleanValue) != null ? c : "",
|
|
2347
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
2354
|
+
"onUpdate:modelValue": a[0] || (a[0] = (y) => i.question.booleanValue = y),
|
|
2348
2355
|
class: l(i.question.cssClasses.control),
|
|
2349
2356
|
id: i.question.inputId,
|
|
2350
2357
|
".indeterminate": i.question.isIndeterminate,
|
|
@@ -2353,24 +2360,24 @@ const Fn = /* @__PURE__ */ C({
|
|
|
2353
2360
|
"aria-label": i.question.ariaLabel,
|
|
2354
2361
|
"aria-invalid": i.question.ariaInvalid,
|
|
2355
2362
|
"aria-describedby": i.question.ariaDescribedBy
|
|
2356
|
-
}, null, 10,
|
|
2363
|
+
}, null, 10, Un), [
|
|
2357
2364
|
[z, i.question.booleanValue]
|
|
2358
2365
|
]),
|
|
2359
2366
|
p("div", {
|
|
2360
2367
|
class: l(i.question.cssClasses.sliderGhost),
|
|
2361
|
-
onClick: a[1] || (a[1] = (
|
|
2368
|
+
onClick: a[1] || (a[1] = (y) => s(y, !1))
|
|
2362
2369
|
}, [
|
|
2363
2370
|
p("span", {
|
|
2364
2371
|
class: l(i.question.getLabelCss(!1))
|
|
2365
2372
|
}, [
|
|
2366
|
-
|
|
2373
|
+
b(d, {
|
|
2367
2374
|
locString: i.question.locLabelFalse
|
|
2368
2375
|
}, null, 8, ["locString"])
|
|
2369
2376
|
], 2)
|
|
2370
2377
|
], 2),
|
|
2371
2378
|
p("div", {
|
|
2372
2379
|
class: l(i.question.cssClasses.switch),
|
|
2373
|
-
onClick: a[2] || (a[2] = (
|
|
2380
|
+
onClick: a[2] || (a[2] = (y) => e(y))
|
|
2374
2381
|
}, [
|
|
2375
2382
|
p("span", {
|
|
2376
2383
|
class: l(i.question.cssClasses.slider)
|
|
@@ -2379,7 +2386,7 @@ const Fn = /* @__PURE__ */ C({
|
|
|
2379
2386
|
key: 0,
|
|
2380
2387
|
class: l(i.question.cssClasses.sliderText)
|
|
2381
2388
|
}, [
|
|
2382
|
-
|
|
2389
|
+
b(d, {
|
|
2383
2390
|
locString: i.question.getCheckedLabel()
|
|
2384
2391
|
}, null, 8, ["locString"])
|
|
2385
2392
|
], 2)) : m("", !0)
|
|
@@ -2387,12 +2394,12 @@ const Fn = /* @__PURE__ */ C({
|
|
|
2387
2394
|
], 2),
|
|
2388
2395
|
p("div", {
|
|
2389
2396
|
class: l(i.question.cssClasses.sliderGhost),
|
|
2390
|
-
onClick: a[3] || (a[3] = (
|
|
2397
|
+
onClick: a[3] || (a[3] = (y) => s(y, !0))
|
|
2391
2398
|
}, [
|
|
2392
2399
|
p("span", {
|
|
2393
2400
|
class: l(i.question.getLabelCss(!0))
|
|
2394
2401
|
}, [
|
|
2395
|
-
|
|
2402
|
+
b(d, {
|
|
2396
2403
|
locString: i.question.locLabelTrue
|
|
2397
2404
|
}, null, 8, ["locString"])
|
|
2398
2405
|
], 2)
|
|
@@ -2402,12 +2409,12 @@ const Fn = /* @__PURE__ */ C({
|
|
|
2402
2409
|
};
|
|
2403
2410
|
}
|
|
2404
2411
|
});
|
|
2405
|
-
|
|
2412
|
+
G.Instance.registerRenderer(
|
|
2406
2413
|
"boolean",
|
|
2407
2414
|
"radio",
|
|
2408
2415
|
"sv-boolean-radio"
|
|
2409
2416
|
);
|
|
2410
|
-
const
|
|
2417
|
+
const _n = /* @__PURE__ */ C({
|
|
2411
2418
|
__name: "BooleanRadio",
|
|
2412
2419
|
props: {
|
|
2413
2420
|
question: {}
|
|
@@ -2415,7 +2422,7 @@ const Un = /* @__PURE__ */ C({
|
|
|
2415
2422
|
setup(r) {
|
|
2416
2423
|
const o = r, n = S(null);
|
|
2417
2424
|
return M(o, n), (s, e) => {
|
|
2418
|
-
const i =
|
|
2425
|
+
const i = v("sv-boolean-radio-item");
|
|
2419
2426
|
return t(), u("div", {
|
|
2420
2427
|
class: l(s.question.cssClasses.rootRadio),
|
|
2421
2428
|
ref_key: "root",
|
|
@@ -2425,13 +2432,13 @@ const Un = /* @__PURE__ */ C({
|
|
|
2425
2432
|
role: "presentation",
|
|
2426
2433
|
class: l(s.question.cssClasses.radioFieldset)
|
|
2427
2434
|
}, [
|
|
2428
|
-
(t(),
|
|
2435
|
+
(t(), q(i, {
|
|
2429
2436
|
key: !1,
|
|
2430
2437
|
question: s.question,
|
|
2431
2438
|
locText: s.question.locLabelFalse,
|
|
2432
2439
|
value: !1
|
|
2433
2440
|
}, null, 8, ["question", "locText"])),
|
|
2434
|
-
(t(),
|
|
2441
|
+
(t(), q(i, {
|
|
2435
2442
|
key: !0,
|
|
2436
2443
|
question: s.question,
|
|
2437
2444
|
locText: s.question.locLabelTrue,
|
|
@@ -2441,7 +2448,7 @@ const Un = /* @__PURE__ */ C({
|
|
|
2441
2448
|
], 2);
|
|
2442
2449
|
};
|
|
2443
2450
|
}
|
|
2444
|
-
}),
|
|
2451
|
+
}), jn = ["name", "value", "checked", "aria-describedby", "disabled"], Qn = ["xlink:href"], Zn = /* @__PURE__ */ C({
|
|
2445
2452
|
__name: "BooleanRadioItem",
|
|
2446
2453
|
props: {
|
|
2447
2454
|
question: {},
|
|
@@ -2454,7 +2461,7 @@ const Un = /* @__PURE__ */ C({
|
|
|
2454
2461
|
e.booleanValue = s.target.value == "true";
|
|
2455
2462
|
};
|
|
2456
2463
|
return (s, e) => {
|
|
2457
|
-
const i =
|
|
2464
|
+
const i = v("survey-string");
|
|
2458
2465
|
return t(), u("div", {
|
|
2459
2466
|
role: "presentation",
|
|
2460
2467
|
class: l(s.question.getRadioItemClass(s.question.cssClasses, s.value))
|
|
@@ -2471,7 +2478,7 @@ const Un = /* @__PURE__ */ C({
|
|
|
2471
2478
|
disabled: s.question.isInputReadOnly,
|
|
2472
2479
|
class: l(s.question.cssClasses.itemRadioControl),
|
|
2473
2480
|
onChange: n
|
|
2474
|
-
}, null, 42,
|
|
2481
|
+
}, null, 42, jn),
|
|
2475
2482
|
s.question.cssClasses.materialRadioDecorator ? (t(), u("span", {
|
|
2476
2483
|
key: 0,
|
|
2477
2484
|
class: l(s.question.cssClasses.materialRadioDecorator)
|
|
@@ -2482,25 +2489,25 @@ const Un = /* @__PURE__ */ C({
|
|
|
2482
2489
|
}, [
|
|
2483
2490
|
p("use", {
|
|
2484
2491
|
"xlink:href": s.question.itemSvgIcon
|
|
2485
|
-
}, null, 8,
|
|
2492
|
+
}, null, 8, Qn)
|
|
2486
2493
|
], 2)) : m("", !0)
|
|
2487
2494
|
], 2)) : m("", !0),
|
|
2488
2495
|
p("span", {
|
|
2489
2496
|
class: l(s.question.cssClasses.radioControlLabel)
|
|
2490
2497
|
}, [
|
|
2491
|
-
|
|
2498
|
+
b(i, { locString: s.locText }, null, 8, ["locString"])
|
|
2492
2499
|
], 2)
|
|
2493
2500
|
], 2)
|
|
2494
2501
|
], 2);
|
|
2495
2502
|
};
|
|
2496
2503
|
}
|
|
2497
|
-
}),
|
|
2498
|
-
|
|
2504
|
+
}), 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"];
|
|
2505
|
+
G.Instance.registerRenderer(
|
|
2499
2506
|
"boolean",
|
|
2500
2507
|
"checkbox",
|
|
2501
2508
|
"sv-boolean-checkbox"
|
|
2502
2509
|
);
|
|
2503
|
-
const
|
|
2510
|
+
const xn = /* @__PURE__ */ C({
|
|
2504
2511
|
__name: "BooleanCheckbox",
|
|
2505
2512
|
props: {
|
|
2506
2513
|
question: {},
|
|
@@ -2510,7 +2517,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2510
2517
|
const o = r, n = S(null);
|
|
2511
2518
|
return M(o, n), (s, e) => {
|
|
2512
2519
|
var c;
|
|
2513
|
-
const i =
|
|
2520
|
+
const i = v("survey-element-title-content"), a = v("sv-title-actions"), d = v("survey-string");
|
|
2514
2521
|
return t(), u("div", {
|
|
2515
2522
|
class: l(s.question.cssClasses.rootCheckbox),
|
|
2516
2523
|
ref_key: "root",
|
|
@@ -2522,11 +2529,11 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2522
2529
|
p("label", {
|
|
2523
2530
|
class: l(s.question.cssClasses.checkboxLabel)
|
|
2524
2531
|
}, [
|
|
2525
|
-
|
|
2532
|
+
L(p("input", {
|
|
2526
2533
|
type: "checkbox",
|
|
2527
2534
|
name: s.question.name,
|
|
2528
2535
|
value: (c = s.question.booleanValue) != null ? c : "",
|
|
2529
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
2536
|
+
"onUpdate:modelValue": e[0] || (e[0] = (y) => s.question.booleanValue = y),
|
|
2530
2537
|
class: l(s.question.cssClasses.controlCheckbox),
|
|
2531
2538
|
id: s.question.inputId,
|
|
2532
2539
|
".indeterminate": s.question.isIndeterminate,
|
|
@@ -2535,7 +2542,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2535
2542
|
"aria-label": s.question.ariaLabel,
|
|
2536
2543
|
"aria-invalid": s.question.ariaInvalid,
|
|
2537
2544
|
"aria-describedby": s.question.ariaDescribedBy
|
|
2538
|
-
}, null, 10,
|
|
2545
|
+
}, null, 10, Gn), [
|
|
2539
2546
|
[z, s.question.booleanValue]
|
|
2540
2547
|
]),
|
|
2541
2548
|
p("span", {
|
|
@@ -2547,32 +2554,32 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2547
2554
|
}, [
|
|
2548
2555
|
p("use", {
|
|
2549
2556
|
"xlink:href": s.question.svgIcon
|
|
2550
|
-
}, null, 8,
|
|
2557
|
+
}, null, 8, Xn)
|
|
2551
2558
|
], 2)) : m("", !0),
|
|
2552
|
-
|
|
2559
|
+
Jn
|
|
2553
2560
|
], 2),
|
|
2554
2561
|
s.question.isLabelRendered ? (t(), u("span", {
|
|
2555
2562
|
key: 0,
|
|
2556
2563
|
id: s.question.labelRenderedAriaID,
|
|
2557
2564
|
class: l(s.question.cssClasses.checkboxControlLabel)
|
|
2558
2565
|
}, [
|
|
2559
|
-
s.question.hasTitleActions ? m("", !0) : (t(),
|
|
2566
|
+
s.question.hasTitleActions ? m("", !0) : (t(), q(i, {
|
|
2560
2567
|
key: 0,
|
|
2561
2568
|
element: s.question,
|
|
2562
2569
|
css: s.css
|
|
2563
2570
|
}, null, 8, ["element", "css"])),
|
|
2564
|
-
s.question.hasTitleActions ? (t(),
|
|
2571
|
+
s.question.hasTitleActions ? (t(), q(a, {
|
|
2565
2572
|
key: 1,
|
|
2566
2573
|
element: s.question,
|
|
2567
2574
|
css: s.css
|
|
2568
2575
|
}, null, 8, ["element", "css"])) : m("", !0)
|
|
2569
|
-
], 10,
|
|
2576
|
+
], 10, Yn)) : m("", !0)
|
|
2570
2577
|
], 2),
|
|
2571
2578
|
s.question.canRenderLabelDescription ? (t(), u("div", {
|
|
2572
2579
|
key: 0,
|
|
2573
2580
|
class: l(s.question.cssDescription)
|
|
2574
2581
|
}, [
|
|
2575
|
-
|
|
2582
|
+
b(d, {
|
|
2576
2583
|
locString: s.question.locDescription
|
|
2577
2584
|
}, null, 8, ["locString"])
|
|
2578
2585
|
], 2)) : m("", !0)
|
|
@@ -2580,7 +2587,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2580
2587
|
], 2);
|
|
2581
2588
|
};
|
|
2582
2589
|
}
|
|
2583
|
-
}),
|
|
2590
|
+
}), eo = /* @__PURE__ */ C({
|
|
2584
2591
|
__name: "Multipletext",
|
|
2585
2592
|
props: {
|
|
2586
2593
|
question: {}
|
|
@@ -2588,25 +2595,25 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2588
2595
|
setup(r) {
|
|
2589
2596
|
const o = r, n = S(null);
|
|
2590
2597
|
return M(o, n), (s, e) => {
|
|
2591
|
-
const i =
|
|
2598
|
+
const i = v("survey-multipletext-item");
|
|
2592
2599
|
return t(), u("table", {
|
|
2593
|
-
class: l(s.question.
|
|
2600
|
+
class: l(s.question.getQuestionRootCss()),
|
|
2594
2601
|
ref_key: "root",
|
|
2595
2602
|
ref: n
|
|
2596
2603
|
}, [
|
|
2597
2604
|
p("tbody", null, [
|
|
2598
|
-
(t(!0), u(w, null,
|
|
2605
|
+
(t(!0), u(w, null, T(s.question.getRows(), (a, d) => (t(), u(w, {
|
|
2599
2606
|
key: s.question.inputId + "rowkey" + d
|
|
2600
2607
|
}, [
|
|
2601
2608
|
a.isVisible ? (t(), u("tr", {
|
|
2602
2609
|
key: 0,
|
|
2603
2610
|
class: l(s.question.cssClasses.row)
|
|
2604
2611
|
}, [
|
|
2605
|
-
(t(!0), u(w, null,
|
|
2612
|
+
(t(!0), u(w, null, T(a.cells, (c) => (t(), u("td", {
|
|
2606
2613
|
key: "item" + c.item.editor.id,
|
|
2607
2614
|
class: l(c.className)
|
|
2608
2615
|
}, [
|
|
2609
|
-
|
|
2616
|
+
b(i, {
|
|
2610
2617
|
question: s.question,
|
|
2611
2618
|
cell: c
|
|
2612
2619
|
}, null, 8, ["question", "cell"])
|
|
@@ -2617,7 +2624,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2617
2624
|
], 2);
|
|
2618
2625
|
};
|
|
2619
2626
|
}
|
|
2620
|
-
}),
|
|
2627
|
+
}), so = { key: 1 }, no = /* @__PURE__ */ C({
|
|
2621
2628
|
__name: "MultipletextItem",
|
|
2622
2629
|
props: {
|
|
2623
2630
|
question: {},
|
|
@@ -2626,10 +2633,10 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2626
2633
|
setup(r) {
|
|
2627
2634
|
const o = r, n = (e) => ee(e);
|
|
2628
2635
|
B(() => o.cell.item.editor);
|
|
2629
|
-
const s =
|
|
2636
|
+
const s = R(() => o.cell.item);
|
|
2630
2637
|
return (e, i) => {
|
|
2631
|
-
const a =
|
|
2632
|
-
return e.cell.isErrorsCell ? (t(),
|
|
2638
|
+
const a = v("survey-string"), d = v("survey-errors");
|
|
2639
|
+
return e.cell.isErrorsCell ? (t(), q(d, {
|
|
2633
2640
|
key: 1,
|
|
2634
2641
|
element: s.value.editor
|
|
2635
2642
|
}, null, 8, ["element"])) : (t(), u("label", {
|
|
@@ -2643,10 +2650,10 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2643
2650
|
key: 0,
|
|
2644
2651
|
class: l(e.question.cssClasses.requiredText)
|
|
2645
2652
|
}, I(s.value.editor.requiredText), 3)) : m("", !0),
|
|
2646
|
-
|
|
2653
|
+
b(a, {
|
|
2647
2654
|
locString: s.value.locTitle
|
|
2648
2655
|
}, null, 8, ["locString"]),
|
|
2649
|
-
s.value.editor.isRequireTextAfterTitle ? (t(), u("span",
|
|
2656
|
+
s.value.editor.isRequireTextAfterTitle ? (t(), u("span", so, "\xA0")) : m("", !0),
|
|
2650
2657
|
s.value.editor.isRequireTextAfterTitle ? (t(), u("span", {
|
|
2651
2658
|
key: 2,
|
|
2652
2659
|
"aria-hidden": "true",
|
|
@@ -2658,14 +2665,14 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2658
2665
|
class: l(e.question.getItemCss()),
|
|
2659
2666
|
onFocusin: i[0] || (i[0] = (c) => s.value.focusIn())
|
|
2660
2667
|
}, [
|
|
2661
|
-
(t(),
|
|
2668
|
+
(t(), q(N(n(s.value.editor)), {
|
|
2662
2669
|
question: s.value.editor
|
|
2663
2670
|
}, null, 8, ["question"]))
|
|
2664
2671
|
], 34))
|
|
2665
2672
|
], 2));
|
|
2666
2673
|
};
|
|
2667
2674
|
}
|
|
2668
|
-
}),
|
|
2675
|
+
}), 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
2676
|
__name: "Matrix",
|
|
2670
2677
|
props: {
|
|
2671
2678
|
question: {}
|
|
@@ -2689,7 +2696,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2689
2696
|
o.question.isInputReadOnly || (i.value = a.value);
|
|
2690
2697
|
};
|
|
2691
2698
|
return (i, a) => {
|
|
2692
|
-
const d =
|
|
2699
|
+
const d = v("survey-string");
|
|
2693
2700
|
return t(), u("div", {
|
|
2694
2701
|
class: l(i.question.cssClasses.tableWrapper),
|
|
2695
2702
|
ref_key: "root",
|
|
@@ -2698,78 +2705,78 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2698
2705
|
p("fieldset", null, [
|
|
2699
2706
|
p("legend", {
|
|
2700
2707
|
"aria-label": i.question.locTitle.renderedHtml
|
|
2701
|
-
}, null, 8,
|
|
2708
|
+
}, null, 8, oo),
|
|
2702
2709
|
p("table", {
|
|
2703
2710
|
class: l(i.question.getTableCss())
|
|
2704
2711
|
}, [
|
|
2705
|
-
i.question.showHeader ? (t(), u("thead",
|
|
2712
|
+
i.question.showHeader ? (t(), u("thead", to, [
|
|
2706
2713
|
p("tr", null, [
|
|
2707
|
-
i.question.hasRows ? (t(), u("td",
|
|
2708
|
-
(t(!0), u(w, null,
|
|
2709
|
-
key:
|
|
2714
|
+
i.question.hasRows ? (t(), u("td", io)) : m("", !0),
|
|
2715
|
+
(t(!0), u(w, null, T(i.question.visibleColumns, (c, y) => (t(), u("th", {
|
|
2716
|
+
key: y,
|
|
2710
2717
|
class: l(i.question.cssClasses.headerCell),
|
|
2711
2718
|
style: $({
|
|
2712
2719
|
minWidth: i.question.columnMinWidth,
|
|
2713
2720
|
width: i.question.columnMinWidth
|
|
2714
2721
|
})
|
|
2715
2722
|
}, [
|
|
2716
|
-
|
|
2723
|
+
b(d, {
|
|
2717
2724
|
locString: c.locText
|
|
2718
2725
|
}, null, 8, ["locString"])
|
|
2719
2726
|
], 6))), 128))
|
|
2720
2727
|
])
|
|
2721
2728
|
])) : m("", !0),
|
|
2722
2729
|
p("tbody", null, [
|
|
2723
|
-
(t(!0), u(w, null,
|
|
2724
|
-
key: "row_" + c.name + "_" +
|
|
2730
|
+
(t(!0), u(w, null, T(s.value, (c, y) => (t(), u("tr", {
|
|
2731
|
+
key: "row_" + c.name + "_" + y,
|
|
2725
2732
|
class: l(c.rowClasses || void 0)
|
|
2726
2733
|
}, [
|
|
2727
|
-
|
|
2734
|
+
L(p("td", {
|
|
2728
2735
|
class: l(i.question.cssClasses.rowTextCell),
|
|
2729
2736
|
style: $({
|
|
2730
2737
|
minWidth: i.question.rowTitleWidth,
|
|
2731
2738
|
width: i.question.rowTitleWidth
|
|
2732
2739
|
})
|
|
2733
2740
|
}, [
|
|
2734
|
-
|
|
2741
|
+
b(d, {
|
|
2735
2742
|
locString: c.locText
|
|
2736
2743
|
}, null, 8, ["locString"])
|
|
2737
2744
|
], 6), [
|
|
2738
2745
|
[H, i.question.hasRows]
|
|
2739
2746
|
]),
|
|
2740
|
-
i.question.hasCellText ? (t(!0), u(w, { key: 0 },
|
|
2747
|
+
i.question.hasCellText ? (t(!0), u(w, { key: 0 }, T(i.question.visibleColumns, (h, g) => (t(), u("td", {
|
|
2741
2748
|
key: g,
|
|
2742
|
-
class: l(i.question.getItemClass(c,
|
|
2743
|
-
onClick: (k) => e(c,
|
|
2749
|
+
class: l(i.question.getItemClass(c, h)),
|
|
2750
|
+
onClick: (k) => e(c, h)
|
|
2744
2751
|
}, [
|
|
2745
|
-
|
|
2746
|
-
locString: i.question.getCellDisplayLocText(c.name,
|
|
2752
|
+
b(d, {
|
|
2753
|
+
locString: i.question.getCellDisplayLocText(c.name, h)
|
|
2747
2754
|
}, null, 8, ["locString"])
|
|
2748
|
-
], 10,
|
|
2749
|
-
i.question.hasCellText ? m("", !0) : (t(!0), u(w, { key: 1 },
|
|
2755
|
+
], 10, lo))), 128)) : m("", !0),
|
|
2756
|
+
i.question.hasCellText ? m("", !0) : (t(!0), u(w, { key: 1 }, T(i.question.visibleColumns, (h, g) => (t(), u("td", {
|
|
2750
2757
|
key: g,
|
|
2751
|
-
"data-responsive-title":
|
|
2758
|
+
"data-responsive-title": h.locText.renderedHtml,
|
|
2752
2759
|
class: l(i.question.cssClasses.cell),
|
|
2753
|
-
onClick: (k) => e(c,
|
|
2760
|
+
onClick: (k) => e(c, h)
|
|
2754
2761
|
}, [
|
|
2755
2762
|
p("label", {
|
|
2756
2763
|
onMousedown: a[0] || (a[0] = (k) => i.question.onMouseDown()),
|
|
2757
|
-
class: l(i.question.getItemClass(c,
|
|
2764
|
+
class: l(i.question.getItemClass(c, h))
|
|
2758
2765
|
}, [
|
|
2759
|
-
|
|
2766
|
+
L(p("input", {
|
|
2760
2767
|
type: "radio",
|
|
2761
2768
|
class: l(i.question.cssClasses.itemValue),
|
|
2762
2769
|
name: c.fullName,
|
|
2763
2770
|
"onUpdate:modelValue": (k) => c.value = k,
|
|
2764
|
-
value:
|
|
2771
|
+
value: h.value,
|
|
2765
2772
|
disabled: i.question.isInputReadOnly,
|
|
2766
2773
|
id: i.question.inputId + "_" + c.name + "_" + g,
|
|
2767
2774
|
"aria-required": i.question.ariaRequired,
|
|
2768
|
-
"aria-label":
|
|
2775
|
+
"aria-label": h.locText.renderedHtml,
|
|
2769
2776
|
"aria-invalid": i.question.ariaInvalid,
|
|
2770
2777
|
"aria-describedby": i.question.ariaDescribedBy
|
|
2771
|
-
}, null, 10,
|
|
2772
|
-
[
|
|
2778
|
+
}, null, 10, ao), [
|
|
2779
|
+
[J, c.value]
|
|
2773
2780
|
]),
|
|
2774
2781
|
p("span", {
|
|
2775
2782
|
class: l(i.question.cssClasses.materialDecorator)
|
|
@@ -2780,20 +2787,20 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2780
2787
|
}, [
|
|
2781
2788
|
p("use", {
|
|
2782
2789
|
"xlink:href": i.question.itemSvgIcon
|
|
2783
|
-
}, null, 8,
|
|
2790
|
+
}, null, 8, uo)
|
|
2784
2791
|
], 2)) : m("", !0)
|
|
2785
2792
|
], 2),
|
|
2786
|
-
|
|
2793
|
+
L(p("span", {
|
|
2787
2794
|
class: l(i.question.cssClasses.cellResponsiveTitle)
|
|
2788
2795
|
}, [
|
|
2789
|
-
|
|
2790
|
-
locString:
|
|
2796
|
+
b(d, {
|
|
2797
|
+
locString: h.locText
|
|
2791
2798
|
}, null, 8, ["locString"])
|
|
2792
2799
|
], 2), [
|
|
2793
2800
|
[H, i.question.isMobile]
|
|
2794
2801
|
])
|
|
2795
2802
|
], 34)
|
|
2796
|
-
], 10,
|
|
2803
|
+
], 10, ro))), 128))
|
|
2797
2804
|
], 2))), 128))
|
|
2798
2805
|
])
|
|
2799
2806
|
], 2)
|
|
@@ -2801,7 +2808,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2801
2808
|
], 2);
|
|
2802
2809
|
};
|
|
2803
2810
|
}
|
|
2804
|
-
}),
|
|
2811
|
+
}), co = /* @__PURE__ */ C({
|
|
2805
2812
|
__name: "MatrixDropdown",
|
|
2806
2813
|
props: {
|
|
2807
2814
|
question: {}
|
|
@@ -2809,21 +2816,21 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2809
2816
|
setup(r) {
|
|
2810
2817
|
const o = r, n = S(null);
|
|
2811
2818
|
return M(o, n), (s, e) => {
|
|
2812
|
-
const i =
|
|
2813
|
-
return t(),
|
|
2819
|
+
const i = v("survey-matrixtable");
|
|
2820
|
+
return t(), q(i, {
|
|
2814
2821
|
question: s.question,
|
|
2815
2822
|
ref_key: "root",
|
|
2816
2823
|
ref: n
|
|
2817
2824
|
}, null, 8, ["question"]);
|
|
2818
2825
|
};
|
|
2819
2826
|
}
|
|
2820
|
-
}),
|
|
2827
|
+
}), po = { key: 0 }, vo = ["data-sv-drop-target-matrix-row"], qo = { key: 1 }, yo = /* @__PURE__ */ C({
|
|
2821
2828
|
__name: "MatrixTable",
|
|
2822
2829
|
props: {
|
|
2823
2830
|
question: {}
|
|
2824
2831
|
},
|
|
2825
2832
|
setup(r) {
|
|
2826
|
-
const o = r, n =
|
|
2833
|
+
const o = r, n = R(() => o.question.renderedTable);
|
|
2827
2834
|
return B(
|
|
2828
2835
|
() => n.value,
|
|
2829
2836
|
(s) => {
|
|
@@ -2838,7 +2845,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2838
2845
|
};
|
|
2839
2846
|
}
|
|
2840
2847
|
), (s, e) => {
|
|
2841
|
-
const i =
|
|
2848
|
+
const i = v("survey-string"), a = v("survey-matrixheaderrequired"), d = v("survey-matrixcell");
|
|
2842
2849
|
return t(), u("div", {
|
|
2843
2850
|
style: $({ overflowX: s.question.showHorizontalScroll ? "scroll" : "" }),
|
|
2844
2851
|
class: l(s.question.cssClasses.tableWrapper)
|
|
@@ -2846,18 +2853,18 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2846
2853
|
p("table", {
|
|
2847
2854
|
class: l(s.question.getTableCss())
|
|
2848
2855
|
}, [
|
|
2849
|
-
n.value.showHeader ? (t(), u("thead",
|
|
2856
|
+
n.value.showHeader ? (t(), u("thead", po, [
|
|
2850
2857
|
p("tr", null, [
|
|
2851
|
-
(t(!0), u(w, null,
|
|
2858
|
+
(t(!0), u(w, null, T(n.value.headerRow.cells, (c) => (t(), u(w, null, [
|
|
2852
2859
|
c.hasTitle ? (t(), u("th", {
|
|
2853
2860
|
class: l(c.className),
|
|
2854
2861
|
key: "header_" + c.id,
|
|
2855
2862
|
style: $({ minWidth: c.minWidth, width: c.width })
|
|
2856
2863
|
}, [
|
|
2857
|
-
|
|
2864
|
+
b(i, {
|
|
2858
2865
|
locString: c.locTitle
|
|
2859
2866
|
}, null, 8, ["locString"]),
|
|
2860
|
-
c.column ? (t(),
|
|
2867
|
+
c.column ? (t(), q(a, {
|
|
2861
2868
|
key: 0,
|
|
2862
2869
|
column: c.column,
|
|
2863
2870
|
question: s.question
|
|
@@ -2872,7 +2879,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2872
2879
|
])
|
|
2873
2880
|
])) : m("", !0),
|
|
2874
2881
|
p("tbody", null, [
|
|
2875
|
-
(t(!0), u(w, null,
|
|
2882
|
+
(t(!0), u(w, null, T(n.value.rows, (c) => (t(), u(w, {
|
|
2876
2883
|
key: s.question.inputId + "_" + c.id
|
|
2877
2884
|
}, [
|
|
2878
2885
|
c.visible ? (t(), u("tr", {
|
|
@@ -2880,20 +2887,20 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2880
2887
|
"data-sv-drop-target-matrix-row": c.row && c.row.id,
|
|
2881
2888
|
class: l(c.className)
|
|
2882
2889
|
}, [
|
|
2883
|
-
(t(!0), u(w, null,
|
|
2884
|
-
cell:
|
|
2890
|
+
(t(!0), u(w, null, T(c.cells, (y, h) => (t(), q(d, {
|
|
2891
|
+
cell: y,
|
|
2885
2892
|
question: s.question,
|
|
2886
|
-
key: c.id + "_" +
|
|
2893
|
+
key: c.id + "_" + h
|
|
2887
2894
|
}, null, 8, ["cell", "question"]))), 128))
|
|
2888
|
-
], 10,
|
|
2895
|
+
], 10, vo)) : m("", !0)
|
|
2889
2896
|
], 64))), 128))
|
|
2890
2897
|
]),
|
|
2891
|
-
n.value.showFooter ? (t(), u("tfoot",
|
|
2898
|
+
n.value.showFooter ? (t(), u("tfoot", qo, [
|
|
2892
2899
|
p("tr", null, [
|
|
2893
|
-
(t(!0), u(w, null,
|
|
2900
|
+
(t(!0), u(w, null, T(n.value.footerRow.cells, (c, y) => (t(), q(d, {
|
|
2894
2901
|
cell: c,
|
|
2895
2902
|
question: s.question,
|
|
2896
|
-
key: "footer_" +
|
|
2903
|
+
key: "footer_" + y
|
|
2897
2904
|
}, null, 8, ["cell", "question"]))), 128))
|
|
2898
2905
|
])
|
|
2899
2906
|
])) : m("", !0)
|
|
@@ -2901,7 +2908,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2901
2908
|
], 6);
|
|
2902
2909
|
};
|
|
2903
2910
|
}
|
|
2904
|
-
}),
|
|
2911
|
+
}), go = /* @__PURE__ */ p("span", null, "\xA0", -1), Co = /* @__PURE__ */ C({
|
|
2905
2912
|
__name: "MatrixHeaderRequired",
|
|
2906
2913
|
props: {
|
|
2907
2914
|
question: {},
|
|
@@ -2910,114 +2917,114 @@ const Yn = /* @__PURE__ */ C({
|
|
|
2910
2917
|
setup(r) {
|
|
2911
2918
|
const o = r;
|
|
2912
2919
|
return B(() => o.column), (n, s) => n.column.isRenderedRequired ? (t(), u(w, { key: 0 }, [
|
|
2913
|
-
|
|
2920
|
+
go,
|
|
2914
2921
|
n.column.isRenderedRequired ? (t(), u("span", {
|
|
2915
2922
|
key: 0,
|
|
2916
2923
|
class: l(n.question.cssClasses.cellRequiredText)
|
|
2917
2924
|
}, I(n.column.requiredText), 3)) : m("", !0)
|
|
2918
2925
|
], 64)) : m("", !0);
|
|
2919
2926
|
}
|
|
2920
|
-
}),
|
|
2927
|
+
}), ho = ["data-responsive-title", "title", "colspan"], bo = /* @__PURE__ */ C({
|
|
2921
2928
|
__name: "MatrixCell",
|
|
2922
2929
|
props: {
|
|
2923
2930
|
question: {},
|
|
2924
2931
|
cell: {}
|
|
2925
2932
|
},
|
|
2926
2933
|
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 = (
|
|
2934
|
+
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
2935
|
return A(() => {
|
|
2929
2936
|
if (!(!o.cell.hasQuestion || !o.question || !o.question.survey)) {
|
|
2930
2937
|
d(), o.cell.question.registerPropertyChangedHandlers(["isVisible"], () => {
|
|
2931
2938
|
d();
|
|
2932
2939
|
});
|
|
2933
|
-
var
|
|
2940
|
+
var y = {
|
|
2934
2941
|
cell: o.cell.cell,
|
|
2935
2942
|
cellQuestion: o.cell.question,
|
|
2936
2943
|
htmlElement: s.value,
|
|
2937
2944
|
row: o.cell.row,
|
|
2938
2945
|
column: o.cell.cell.column
|
|
2939
2946
|
};
|
|
2940
|
-
o.question.survey.matrixAfterCellRender(o.question,
|
|
2947
|
+
o.question.survey.matrixAfterCellRender(o.question, y);
|
|
2941
2948
|
}
|
|
2942
|
-
}), (
|
|
2943
|
-
const g =
|
|
2949
|
+
}), (y, h) => {
|
|
2950
|
+
const g = v("survey-errors"), k = v("sv-matrix-drag-drop-icon"), P = v("sv-action-bar"), D = v("survey-radiogroup-item"), E = v("survey-checkbox-item"), _ = v("survey-other-choice"), X = v("survey-string");
|
|
2944
2951
|
return t(), u("td", {
|
|
2945
|
-
class: l(
|
|
2952
|
+
class: l(y.cell.className),
|
|
2946
2953
|
"data-responsive-title": e(),
|
|
2947
|
-
title:
|
|
2954
|
+
title: y.cell.getTitle(),
|
|
2948
2955
|
style: $(i()),
|
|
2949
|
-
colspan:
|
|
2950
|
-
onFocusin:
|
|
2956
|
+
colspan: y.cell.colSpans,
|
|
2957
|
+
onFocusin: h[0] || (h[0] = (ne) => y.cell.focusIn()),
|
|
2951
2958
|
ref_key: "root",
|
|
2952
2959
|
ref: s
|
|
2953
2960
|
}, [
|
|
2954
|
-
|
|
2961
|
+
y.cell.isErrorsCell ? (t(), q(g, {
|
|
2955
2962
|
key: 0,
|
|
2956
|
-
element:
|
|
2963
|
+
element: y.cell.question
|
|
2957
2964
|
}, null, 8, ["element"])) : m("", !0),
|
|
2958
|
-
|
|
2965
|
+
y.cell.isDragHandlerCell ? (t(), q(k, {
|
|
2959
2966
|
key: 1,
|
|
2960
|
-
item: { data: { row:
|
|
2967
|
+
item: { data: { row: y.cell.row, question: y.question } }
|
|
2961
2968
|
}, null, 8, ["item"])) : m("", !0),
|
|
2962
|
-
|
|
2969
|
+
y.cell.isActionsCell ? (t(), q(P, {
|
|
2963
2970
|
key: 2,
|
|
2964
|
-
model:
|
|
2971
|
+
model: y.cell.item.getData(),
|
|
2965
2972
|
handleClick: !1
|
|
2966
2973
|
}, null, 8, ["model"])) : m("", !0),
|
|
2967
|
-
|
|
2974
|
+
y.cell.hasPanel ? (t(), q(N(c(y.cell.panel)), {
|
|
2968
2975
|
key: 3,
|
|
2969
|
-
question:
|
|
2970
|
-
css:
|
|
2976
|
+
question: y.cell.panel,
|
|
2977
|
+
css: y.question.cssClasses
|
|
2971
2978
|
}, null, 8, ["question", "css"])) : m("", !0),
|
|
2972
|
-
|
|
2979
|
+
y.cell.hasQuestion ? (t(), u("div", {
|
|
2973
2980
|
key: 4,
|
|
2974
|
-
class: l(
|
|
2981
|
+
class: l(y.question.cssClasses.cellQuestionWrapper)
|
|
2975
2982
|
}, [
|
|
2976
|
-
!
|
|
2983
|
+
!y.cell.isChoice && y.cell.question.isDefaultRendering() ? L((t(), q(N(c(y.cell.question)), {
|
|
2977
2984
|
key: 0,
|
|
2978
|
-
question:
|
|
2985
|
+
question: y.cell.question
|
|
2979
2986
|
}, null, 8, ["question"])), [
|
|
2980
2987
|
[H, n.value]
|
|
2981
2988
|
]) : m("", !0),
|
|
2982
|
-
!
|
|
2989
|
+
!y.cell.isChoice && !y.cell.question.isDefaultRendering() ? L((t(), q(N(y.cell.question.getComponentName()), {
|
|
2983
2990
|
key: 1,
|
|
2984
|
-
question:
|
|
2991
|
+
question: y.cell.question
|
|
2985
2992
|
}, null, 8, ["question"])), [
|
|
2986
2993
|
[H, n.value]
|
|
2987
2994
|
]) : m("", !0),
|
|
2988
|
-
|
|
2989
|
-
key:
|
|
2990
|
-
class: l(
|
|
2991
|
-
question:
|
|
2992
|
-
item:
|
|
2995
|
+
y.cell.isRadio ? (t(), q(D, {
|
|
2996
|
+
key: y.cell.item.value,
|
|
2997
|
+
class: l(y.cell.question.getItemClass(y.cell.item)),
|
|
2998
|
+
question: y.cell.question,
|
|
2999
|
+
item: y.cell.item,
|
|
2993
3000
|
index: a(),
|
|
2994
3001
|
hideLabel: !0
|
|
2995
3002
|
}, null, 8, ["class", "question", "item", "index"])) : m("", !0),
|
|
2996
|
-
|
|
2997
|
-
key:
|
|
2998
|
-
class: l(
|
|
2999
|
-
question:
|
|
3000
|
-
item:
|
|
3003
|
+
y.cell.isCheckbox ? (t(), q(E, {
|
|
3004
|
+
key: y.cell.item.value,
|
|
3005
|
+
class: l(y.cell.question.getItemClass(y.cell.item)),
|
|
3006
|
+
question: y.cell.question,
|
|
3007
|
+
item: y.cell.item,
|
|
3001
3008
|
index: a(),
|
|
3002
3009
|
hideLabel: !0
|
|
3003
3010
|
}, null, 8, ["class", "question", "item", "index"])) : m("", !0),
|
|
3004
|
-
|
|
3011
|
+
y.cell.isOtherChoice ? (t(), q(_, {
|
|
3005
3012
|
key: 4,
|
|
3006
|
-
question:
|
|
3013
|
+
question: y.cell.question
|
|
3007
3014
|
}, null, 8, ["question"])) : m("", !0)
|
|
3008
3015
|
], 2)) : m("", !0),
|
|
3009
|
-
|
|
3016
|
+
y.cell.hasTitle ? (t(), q(X, {
|
|
3010
3017
|
key: 5,
|
|
3011
|
-
locString:
|
|
3018
|
+
locString: y.cell.locTitle
|
|
3012
3019
|
}, null, 8, ["locString"])) : m("", !0),
|
|
3013
|
-
|
|
3020
|
+
y.cell.requiredText ? (t(), u("span", {
|
|
3014
3021
|
key: 6,
|
|
3015
|
-
class: l(
|
|
3016
|
-
}, I(
|
|
3017
|
-
], 46,
|
|
3022
|
+
class: l(y.question.cssClasses.cellRequiredText)
|
|
3023
|
+
}, I(y.cell.requiredText), 3)) : m("", !0)
|
|
3024
|
+
], 46, ho);
|
|
3018
3025
|
};
|
|
3019
3026
|
}
|
|
3020
|
-
}),
|
|
3027
|
+
}), ko = /* @__PURE__ */ C({
|
|
3021
3028
|
__name: "MatrixDynamic",
|
|
3022
3029
|
props: {
|
|
3023
3030
|
question: {}
|
|
@@ -3029,7 +3036,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
3029
3036
|
o.question.addRowUI();
|
|
3030
3037
|
};
|
|
3031
3038
|
return (e, i) => {
|
|
3032
|
-
const a =
|
|
3039
|
+
const a = v("survey-string"), d = v("survey-matrixtable");
|
|
3033
3040
|
return t(), u("div", {
|
|
3034
3041
|
ref_key: "root",
|
|
3035
3042
|
ref: n
|
|
@@ -3043,7 +3050,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
3043
3050
|
class: l(e.question.getAddRowButtonCss()),
|
|
3044
3051
|
onClick: s
|
|
3045
3052
|
}, [
|
|
3046
|
-
|
|
3053
|
+
b(a, {
|
|
3047
3054
|
locString: e.question.locAddRowText
|
|
3048
3055
|
}, null, 8, ["locString"]),
|
|
3049
3056
|
p("span", {
|
|
@@ -3051,7 +3058,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
3051
3058
|
}, null, 2)
|
|
3052
3059
|
], 2)
|
|
3053
3060
|
], 2)) : m("", !0),
|
|
3054
|
-
e.question.renderedTable.showTable ? (t(),
|
|
3061
|
+
e.question.renderedTable.showTable ? (t(), q(d, {
|
|
3055
3062
|
key: 1,
|
|
3056
3063
|
question: e.question
|
|
3057
3064
|
}, null, 8, ["question"])) : m("", !0),
|
|
@@ -3062,7 +3069,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
3062
3069
|
p("div", {
|
|
3063
3070
|
class: l(e.question.cssClasses.emptyRowsText)
|
|
3064
3071
|
}, [
|
|
3065
|
-
|
|
3072
|
+
b(a, {
|
|
3066
3073
|
locString: e.question.locEmptyRowsText
|
|
3067
3074
|
}, null, 8, ["locString"])
|
|
3068
3075
|
], 2),
|
|
@@ -3071,7 +3078,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
3071
3078
|
class: l(e.question.getAddRowButtonCss(!0)),
|
|
3072
3079
|
onClick: s
|
|
3073
3080
|
}, [
|
|
3074
|
-
|
|
3081
|
+
b(a, {
|
|
3075
3082
|
locString: e.question.locAddRowText
|
|
3076
3083
|
}, null, 8, ["locString"]),
|
|
3077
3084
|
p("span", {
|
|
@@ -3088,7 +3095,7 @@ const Yn = /* @__PURE__ */ C({
|
|
|
3088
3095
|
class: l(e.question.getAddRowButtonCss()),
|
|
3089
3096
|
onClick: s
|
|
3090
3097
|
}, [
|
|
3091
|
-
|
|
3098
|
+
b(a, {
|
|
3092
3099
|
locString: e.question.locAddRowText
|
|
3093
3100
|
}, null, 8, ["locString"]),
|
|
3094
3101
|
p("span", {
|
|
@@ -3102,11 +3109,11 @@ const Yn = /* @__PURE__ */ C({
|
|
|
3102
3109
|
});
|
|
3103
3110
|
function se(r, o = !0) {
|
|
3104
3111
|
return {
|
|
3105
|
-
question:
|
|
3106
|
-
row: o ?
|
|
3112
|
+
question: R(() => r.item.data.question),
|
|
3113
|
+
row: o ? R(() => r.item.data.row) : void 0
|
|
3107
3114
|
};
|
|
3108
3115
|
}
|
|
3109
|
-
const
|
|
3116
|
+
const fo = ["disabled"], Io = /* @__PURE__ */ C({
|
|
3110
3117
|
__name: "RemoveButton",
|
|
3111
3118
|
props: {
|
|
3112
3119
|
item: {}
|
|
@@ -3114,42 +3121,42 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3114
3121
|
setup(r) {
|
|
3115
3122
|
const o = r, { question: n, row: s } = se(o);
|
|
3116
3123
|
return (e, i) => {
|
|
3117
|
-
const a =
|
|
3124
|
+
const a = v("survey-string");
|
|
3118
3125
|
return t(), u("button", {
|
|
3119
3126
|
type: "button",
|
|
3120
|
-
class: l(
|
|
3121
|
-
disabled:
|
|
3122
|
-
onClick: i[0] || (i[0] = () =>
|
|
3127
|
+
class: l(f(n).getRemoveRowButtonCss()),
|
|
3128
|
+
disabled: f(n).isInputReadOnly,
|
|
3129
|
+
onClick: i[0] || (i[0] = () => f(n).removeRowUI(f(s)))
|
|
3123
3130
|
}, [
|
|
3124
|
-
|
|
3125
|
-
locString:
|
|
3131
|
+
b(a, {
|
|
3132
|
+
locString: f(n).locRemoveRowText
|
|
3126
3133
|
}, null, 8, ["locString"]),
|
|
3127
3134
|
p("span", {
|
|
3128
|
-
class: l(
|
|
3135
|
+
class: l(f(n).cssClasses.iconRemove)
|
|
3129
3136
|
}, null, 2)
|
|
3130
|
-
], 10,
|
|
3137
|
+
], 10, fo);
|
|
3131
3138
|
};
|
|
3132
3139
|
}
|
|
3133
|
-
}),
|
|
3140
|
+
}), wo = ["xlink:href"], So = /* @__PURE__ */ C({
|
|
3134
3141
|
__name: "DragDropIcon",
|
|
3135
3142
|
props: {
|
|
3136
3143
|
item: {}
|
|
3137
3144
|
},
|
|
3138
3145
|
setup(r) {
|
|
3139
3146
|
const o = r, { question: n } = se(o, !1);
|
|
3140
|
-
return (s, e) =>
|
|
3147
|
+
return (s, e) => f(n).iconDragElement ? (t(), u("svg", {
|
|
3141
3148
|
key: 0,
|
|
3142
|
-
class: l(
|
|
3149
|
+
class: l(f(n).cssClasses.dragElementDecorator)
|
|
3143
3150
|
}, [
|
|
3144
3151
|
p("use", {
|
|
3145
|
-
"xlink:href":
|
|
3146
|
-
}, null, 8,
|
|
3152
|
+
"xlink:href": f(n).iconDragElement
|
|
3153
|
+
}, null, 8, wo)
|
|
3147
3154
|
], 2)) : (t(), u("span", {
|
|
3148
3155
|
key: 1,
|
|
3149
|
-
class: l(
|
|
3156
|
+
class: l(f(n).cssClasses.iconDrag)
|
|
3150
3157
|
}, null, 2));
|
|
3151
3158
|
}
|
|
3152
|
-
}),
|
|
3159
|
+
}), Ro = ["aria-expanded", "aria-controls"], To = /* @__PURE__ */ C({
|
|
3153
3160
|
__name: "DetailButton",
|
|
3154
3161
|
props: {
|
|
3155
3162
|
item: {}
|
|
@@ -3157,23 +3164,23 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3157
3164
|
setup(r) {
|
|
3158
3165
|
const o = r, { question: n, row: s } = se(o);
|
|
3159
3166
|
return (e, i) => {
|
|
3160
|
-
const a =
|
|
3167
|
+
const a = v("sv-svg-icon");
|
|
3161
3168
|
return t(), u("button", {
|
|
3162
3169
|
type: "button",
|
|
3163
|
-
class: l(
|
|
3164
|
-
onClick: i[0] || (i[0] = () =>
|
|
3165
|
-
"aria-expanded":
|
|
3166
|
-
"aria-controls":
|
|
3170
|
+
class: l(f(n).getDetailPanelButtonCss(f(s))),
|
|
3171
|
+
onClick: i[0] || (i[0] = () => f(s).showHideDetailPanelClick()),
|
|
3172
|
+
"aria-expanded": f(n).getIsDetailPanelShowing(f(s)) ? "true" : "false",
|
|
3173
|
+
"aria-controls": f(n).getIsDetailPanelShowing(f(s)) ? f(s).detailPanelId : null
|
|
3167
3174
|
}, [
|
|
3168
|
-
|
|
3169
|
-
class: l(
|
|
3170
|
-
iconName:
|
|
3175
|
+
b(a, {
|
|
3176
|
+
class: l(f(n).getDetailPanelIconCss(f(s))),
|
|
3177
|
+
iconName: f(n).getDetailPanelIconId(f(s)),
|
|
3171
3178
|
size: "auto"
|
|
3172
3179
|
}, null, 8, ["class", "iconName"])
|
|
3173
|
-
], 10,
|
|
3180
|
+
], 10, Ro);
|
|
3174
3181
|
};
|
|
3175
3182
|
}
|
|
3176
|
-
}),
|
|
3183
|
+
}), $o = /* @__PURE__ */ C({
|
|
3177
3184
|
__name: "PanelDynamic",
|
|
3178
3185
|
props: {
|
|
3179
3186
|
question: {},
|
|
@@ -3203,14 +3210,14 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3203
3210
|
};
|
|
3204
3211
|
}
|
|
3205
3212
|
);
|
|
3206
|
-
const e =
|
|
3213
|
+
const e = R(() => {
|
|
3207
3214
|
if (o.question.isRenderModeList)
|
|
3208
3215
|
return o.question.panels;
|
|
3209
3216
|
const a = [];
|
|
3210
3217
|
return o.question.currentPanel && a.push(o.question.currentPanel), a;
|
|
3211
3218
|
}), i = () => o.question.showLegacyNavigation;
|
|
3212
3219
|
return (a, d) => {
|
|
3213
|
-
const c =
|
|
3220
|
+
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
3221
|
return t(), u("div", {
|
|
3215
3222
|
class: l(a.question.cssClasses.root),
|
|
3216
3223
|
ref_key: "root",
|
|
@@ -3221,11 +3228,11 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3221
3228
|
class: l(a.question.cssClasses.noEntriesPlaceholder)
|
|
3222
3229
|
}, [
|
|
3223
3230
|
p("span", null, [
|
|
3224
|
-
|
|
3231
|
+
b(c, {
|
|
3225
3232
|
locString: a.question.locNoEntriesText
|
|
3226
3233
|
}, null, 8, ["locString"])
|
|
3227
3234
|
]),
|
|
3228
|
-
|
|
3235
|
+
b(y, {
|
|
3229
3236
|
data: { question: a.question }
|
|
3230
3237
|
}, null, 8, ["data"])
|
|
3231
3238
|
], 2)) : m("", !0),
|
|
@@ -3239,46 +3246,46 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3239
3246
|
role: "progressbar"
|
|
3240
3247
|
}, null, 6)
|
|
3241
3248
|
], 2)) : m("", !0),
|
|
3242
|
-
i() && a.question.isProgressTopShowing ? (t(),
|
|
3249
|
+
i() && a.question.isProgressTopShowing ? (t(), q(h, {
|
|
3243
3250
|
key: 2,
|
|
3244
3251
|
question: a.question
|
|
3245
3252
|
}, null, 8, ["question"])) : m("", !0),
|
|
3246
|
-
(t(!0), u(w, null,
|
|
3247
|
-
key:
|
|
3253
|
+
(t(!0), u(w, null, T(e.value, (D, E) => (t(), u(w, {
|
|
3254
|
+
key: D.id
|
|
3248
3255
|
}, [
|
|
3249
3256
|
p("div", {
|
|
3250
3257
|
class: l(a.question.getPanelWrapperCss())
|
|
3251
3258
|
}, [
|
|
3252
|
-
|
|
3253
|
-
question:
|
|
3259
|
+
b(g, {
|
|
3260
|
+
question: D,
|
|
3254
3261
|
css: a.css
|
|
3255
3262
|
}, null, 8, ["question", "css"]),
|
|
3256
|
-
a.question.panelRemoveButtonLocation === "right" && a.question.canRemovePanel &&
|
|
3263
|
+
a.question.panelRemoveButtonLocation === "right" && a.question.canRemovePanel && D.state !== "collapsed" ? (t(), q(k, {
|
|
3257
3264
|
key: 0,
|
|
3258
|
-
data: { question: a.question, panel:
|
|
3265
|
+
data: { question: a.question, panel: D }
|
|
3259
3266
|
}, null, 8, ["data"])) : m("", !0)
|
|
3260
3267
|
], 2),
|
|
3261
3268
|
a.question.isRenderModeList && E < a.question.visiblePanelCount - 1 ? (t(), u("hr", {
|
|
3262
3269
|
class: l(a.question.cssClasses.separator),
|
|
3263
|
-
key: "separator" +
|
|
3270
|
+
key: "separator" + D.id
|
|
3264
3271
|
}, null, 2)) : m("", !0)
|
|
3265
3272
|
], 64))), 128)),
|
|
3266
|
-
i() && a.question.isProgressBottomShowing ? (t(),
|
|
3273
|
+
i() && a.question.isProgressBottomShowing ? (t(), q(h, {
|
|
3267
3274
|
key: 3,
|
|
3268
3275
|
question: a.question
|
|
3269
3276
|
}, null, 8, ["question"])) : m("", !0),
|
|
3270
|
-
i() && a.question.isRenderModeList ? (t(), y
|
|
3277
|
+
i() && a.question.isRenderModeList ? (t(), q(y, {
|
|
3271
3278
|
key: 4,
|
|
3272
3279
|
data: { question: a.question }
|
|
3273
3280
|
}, null, 8, ["data"])) : m("", !0),
|
|
3274
|
-
a.question.showNavigation ? (t(),
|
|
3281
|
+
a.question.showNavigation ? (t(), q(P, {
|
|
3275
3282
|
key: 5,
|
|
3276
3283
|
question: a.question
|
|
3277
3284
|
}, null, 8, ["question"])) : m("", !0)
|
|
3278
3285
|
], 2);
|
|
3279
3286
|
};
|
|
3280
3287
|
}
|
|
3281
|
-
}),
|
|
3288
|
+
}), Bo = /* @__PURE__ */ C({
|
|
3282
3289
|
__name: "PanelDynamicProgress",
|
|
3283
3290
|
props: {
|
|
3284
3291
|
question: {}
|
|
@@ -3286,7 +3293,7 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3286
3293
|
setup(r) {
|
|
3287
3294
|
const o = r, n = () => o.question.isProgressTopShowing ? o.question.cssClasses.progressTop : o.question.cssClasses.progressBottom;
|
|
3288
3295
|
return (s, e) => {
|
|
3289
|
-
const i =
|
|
3296
|
+
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
3297
|
return t(), u("div", {
|
|
3291
3298
|
class: l(n())
|
|
3292
3299
|
}, [
|
|
@@ -3297,7 +3304,7 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3297
3304
|
p("div", {
|
|
3298
3305
|
class: l(s.question.cssClasses.progressContainer)
|
|
3299
3306
|
}, [
|
|
3300
|
-
|
|
3307
|
+
b(i, {
|
|
3301
3308
|
data: { question: s.question }
|
|
3302
3309
|
}, null, 8, ["data"]),
|
|
3303
3310
|
s.question.isRangeShowing ? (t(), u("div", {
|
|
@@ -3310,28 +3317,28 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3310
3317
|
role: "progressbar"
|
|
3311
3318
|
}, null, 6)
|
|
3312
3319
|
], 2)) : m("", !0),
|
|
3313
|
-
|
|
3320
|
+
b(a, {
|
|
3314
3321
|
data: { question: s.question }
|
|
3315
3322
|
}, null, 8, ["data"])
|
|
3316
3323
|
], 2),
|
|
3317
|
-
|
|
3324
|
+
b(d, {
|
|
3318
3325
|
data: { question: s.question }
|
|
3319
3326
|
}, null, 8, ["data"]),
|
|
3320
|
-
|
|
3327
|
+
b(c, {
|
|
3321
3328
|
data: { question: s.question }
|
|
3322
3329
|
}, null, 8, ["data"])
|
|
3323
3330
|
], 2)
|
|
3324
3331
|
], 2);
|
|
3325
3332
|
};
|
|
3326
3333
|
}
|
|
3327
|
-
}),
|
|
3334
|
+
}), Lo = /* @__PURE__ */ C({
|
|
3328
3335
|
__name: "PanelDynamicProgressV2",
|
|
3329
3336
|
props: {
|
|
3330
3337
|
question: {}
|
|
3331
3338
|
},
|
|
3332
3339
|
setup(r) {
|
|
3333
3340
|
return (o, n) => {
|
|
3334
|
-
const s =
|
|
3341
|
+
const s = v("sv-action-bar");
|
|
3335
3342
|
return o.question.cssClasses.footer ? (t(), u("div", {
|
|
3336
3343
|
key: 0,
|
|
3337
3344
|
class: l(o.question.cssClasses.footer)
|
|
@@ -3353,7 +3360,7 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3353
3360
|
key: 1,
|
|
3354
3361
|
class: l(o.question.cssClasses.footerButtonsContainer)
|
|
3355
3362
|
}, [
|
|
3356
|
-
|
|
3363
|
+
b(s, {
|
|
3357
3364
|
model: o.question.footerToolbar
|
|
3358
3365
|
}, null, 8, ["model"])
|
|
3359
3366
|
], 2)) : m("", !0)
|
|
@@ -3362,11 +3369,11 @@ const bo = ["disabled"], ko = /* @__PURE__ */ C({
|
|
|
3362
3369
|
}
|
|
3363
3370
|
});
|
|
3364
3371
|
function K(r) {
|
|
3365
|
-
return
|
|
3372
|
+
return R(
|
|
3366
3373
|
() => r.item && r.item.data.question || r.data.question
|
|
3367
3374
|
);
|
|
3368
3375
|
}
|
|
3369
|
-
const
|
|
3376
|
+
const Do = /* @__PURE__ */ C({
|
|
3370
3377
|
__name: "PaneldynamicAddBtn",
|
|
3371
3378
|
props: {
|
|
3372
3379
|
item: {},
|
|
@@ -3376,18 +3383,18 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3376
3383
|
const n = K(r), s = () => {
|
|
3377
3384
|
n.value.addPanelUI();
|
|
3378
3385
|
};
|
|
3379
|
-
return (e, i) =>
|
|
3386
|
+
return (e, i) => f(n).canAddPanel ? (t(), u("button", {
|
|
3380
3387
|
key: 0,
|
|
3381
3388
|
type: "button",
|
|
3382
|
-
class: l(
|
|
3389
|
+
class: l(f(n).getAddButtonCss()),
|
|
3383
3390
|
onClick: s
|
|
3384
3391
|
}, [
|
|
3385
3392
|
p("span", {
|
|
3386
|
-
class: l(
|
|
3387
|
-
}, I(
|
|
3393
|
+
class: l(f(n).cssClasses.buttonAddText)
|
|
3394
|
+
}, I(f(n).panelAddText), 3)
|
|
3388
3395
|
], 2)) : m("", !0);
|
|
3389
3396
|
}
|
|
3390
|
-
}),
|
|
3397
|
+
}), Po = ["title"], Mo = /* @__PURE__ */ C({
|
|
3391
3398
|
__name: "PaneldynamicNextBtn",
|
|
3392
3399
|
props: {
|
|
3393
3400
|
item: {},
|
|
@@ -3398,20 +3405,20 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3398
3405
|
n.value.goToNextPanel();
|
|
3399
3406
|
};
|
|
3400
3407
|
return (e, i) => {
|
|
3401
|
-
const a =
|
|
3408
|
+
const a = v("sv-svg-icon");
|
|
3402
3409
|
return t(), u("div", {
|
|
3403
|
-
title:
|
|
3410
|
+
title: f(n).panelNextText,
|
|
3404
3411
|
onClick: s,
|
|
3405
|
-
class: l(
|
|
3412
|
+
class: l(f(n).getNextButtonCss())
|
|
3406
3413
|
}, [
|
|
3407
|
-
|
|
3408
|
-
iconName:
|
|
3414
|
+
b(a, {
|
|
3415
|
+
iconName: f(n).cssClasses.progressBtnIcon,
|
|
3409
3416
|
size: "auto"
|
|
3410
3417
|
}, null, 8, ["iconName"])
|
|
3411
|
-
], 10,
|
|
3418
|
+
], 10, Po);
|
|
3412
3419
|
};
|
|
3413
3420
|
}
|
|
3414
|
-
}),
|
|
3421
|
+
}), No = ["title"], Ho = /* @__PURE__ */ C({
|
|
3415
3422
|
__name: "PaneldynamicPrevBtn",
|
|
3416
3423
|
props: {
|
|
3417
3424
|
item: {},
|
|
@@ -3422,45 +3429,45 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3422
3429
|
n.value.goToPrevPanel();
|
|
3423
3430
|
};
|
|
3424
3431
|
return (e, i) => {
|
|
3425
|
-
const a =
|
|
3432
|
+
const a = v("sv-svg-icon");
|
|
3426
3433
|
return t(), u("div", {
|
|
3427
|
-
title:
|
|
3434
|
+
title: f(n).panelPrevText,
|
|
3428
3435
|
onClick: s,
|
|
3429
|
-
class: l(
|
|
3436
|
+
class: l(f(n).getPrevButtonCss())
|
|
3430
3437
|
}, [
|
|
3431
|
-
|
|
3432
|
-
iconName:
|
|
3438
|
+
b(a, {
|
|
3439
|
+
iconName: f(n).cssClasses.progressBtnIcon,
|
|
3433
3440
|
size: "auto"
|
|
3434
3441
|
}, null, 8, ["iconName"])
|
|
3435
|
-
], 10,
|
|
3442
|
+
], 10, No);
|
|
3436
3443
|
};
|
|
3437
3444
|
}
|
|
3438
|
-
}),
|
|
3445
|
+
}), Ao = /* @__PURE__ */ C({
|
|
3439
3446
|
__name: "PaneldynamicRemoveBtn",
|
|
3440
3447
|
props: {
|
|
3441
3448
|
item: {},
|
|
3442
3449
|
data: {}
|
|
3443
3450
|
},
|
|
3444
3451
|
setup(r) {
|
|
3445
|
-
const o = r, n = K(o), s =
|
|
3452
|
+
const o = r, n = K(o), s = R(
|
|
3446
3453
|
() => o.item && o.item.data.panel || o.data.panel
|
|
3447
3454
|
), e = (i) => {
|
|
3448
3455
|
n.value.isInputReadOnly || n.value.removePanelUI(i);
|
|
3449
3456
|
};
|
|
3450
3457
|
return (i, a) => (t(), u("button", {
|
|
3451
3458
|
type: "button",
|
|
3452
|
-
class: l(
|
|
3459
|
+
class: l(f(n).getPanelRemoveButtonCss()),
|
|
3453
3460
|
onClick: a[0] || (a[0] = (d) => e(s.value))
|
|
3454
3461
|
}, [
|
|
3455
3462
|
p("span", {
|
|
3456
|
-
class: l(
|
|
3457
|
-
}, I(
|
|
3463
|
+
class: l(f(n).cssClasses.buttonRemoveText)
|
|
3464
|
+
}, I(f(n).panelRemoveText), 3),
|
|
3458
3465
|
p("span", {
|
|
3459
|
-
class: l(
|
|
3466
|
+
class: l(f(n).cssClasses.iconRemove)
|
|
3460
3467
|
}, null, 2)
|
|
3461
3468
|
], 2));
|
|
3462
3469
|
}
|
|
3463
|
-
}),
|
|
3470
|
+
}), Eo = /* @__PURE__ */ C({
|
|
3464
3471
|
__name: "PaneldynamicProgressText",
|
|
3465
3472
|
props: {
|
|
3466
3473
|
item: {},
|
|
@@ -3469,10 +3476,10 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3469
3476
|
setup(r) {
|
|
3470
3477
|
const n = K(r);
|
|
3471
3478
|
return (s, e) => (t(), u("div", {
|
|
3472
|
-
class: l(
|
|
3473
|
-
}, I(
|
|
3479
|
+
class: l(f(n).cssClasses.progressText)
|
|
3480
|
+
}, I(f(n).progressText), 3));
|
|
3474
3481
|
}
|
|
3475
|
-
}),
|
|
3482
|
+
}), Vo = ["id"], Oo = /* @__PURE__ */ C({
|
|
3476
3483
|
__name: "Errors",
|
|
3477
3484
|
props: {
|
|
3478
3485
|
element: {},
|
|
@@ -3481,7 +3488,7 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3481
3488
|
setup(r) {
|
|
3482
3489
|
const o = S();
|
|
3483
3490
|
return (n, s) => {
|
|
3484
|
-
const e =
|
|
3491
|
+
const e = v("survey-string");
|
|
3485
3492
|
return n.element.hasVisibleErrors ? (t(), u("div", {
|
|
3486
3493
|
key: 0,
|
|
3487
3494
|
role: "alert",
|
|
@@ -3491,7 +3498,7 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3491
3498
|
ref_key: "root",
|
|
3492
3499
|
ref: o
|
|
3493
3500
|
}, [
|
|
3494
|
-
(t(!0), u(w, null,
|
|
3501
|
+
(t(!0), u(w, null, T(n.element.errors, (i, a) => (t(), u("div", {
|
|
3495
3502
|
key: "error_" + a
|
|
3496
3503
|
}, [
|
|
3497
3504
|
p("span", {
|
|
@@ -3505,22 +3512,22 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3505
3512
|
n.element.cssClasses ? n.element.cssClasses.error.item || void 0 : "panel-error-item"
|
|
3506
3513
|
)
|
|
3507
3514
|
}, [
|
|
3508
|
-
|
|
3515
|
+
b(e, {
|
|
3509
3516
|
locString: i.locText
|
|
3510
3517
|
}, null, 8, ["locString"])
|
|
3511
3518
|
], 2)
|
|
3512
3519
|
]))), 128))
|
|
3513
|
-
], 10,
|
|
3520
|
+
], 10, Vo)) : m("", !0);
|
|
3514
3521
|
};
|
|
3515
3522
|
}
|
|
3516
|
-
}),
|
|
3523
|
+
}), Fo = { key: 0 }, Wo = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], zo = /* @__PURE__ */ C({
|
|
3517
3524
|
__name: "QuestionComment",
|
|
3518
3525
|
props: {
|
|
3519
3526
|
question: {},
|
|
3520
3527
|
commentClass: {}
|
|
3521
3528
|
},
|
|
3522
3529
|
setup(r) {
|
|
3523
|
-
return (o, n) => o.question.isReadOnlyRenderDiv() ? (t(), u("div",
|
|
3530
|
+
return (o, n) => o.question.isReadOnlyRenderDiv() ? (t(), u("div", Fo, I(o.question.comment), 1)) : (t(), u("textarea", {
|
|
3524
3531
|
key: 1,
|
|
3525
3532
|
id: o.question.commentId,
|
|
3526
3533
|
readonly: o.question.isInputReadOnly,
|
|
@@ -3529,8 +3536,8 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3529
3536
|
value: o.question.comment,
|
|
3530
3537
|
maxlength: o.question.getOthersMaxLength(),
|
|
3531
3538
|
placeholder: o.question.renderedCommentPlaceholder,
|
|
3532
|
-
"aria-label": o.question.ariaLabel,
|
|
3533
|
-
"aria-required": o.question.ariaRequired,
|
|
3539
|
+
"aria-label": o.question.ariaLabel || o.question.a11y_input_ariaLabel,
|
|
3540
|
+
"aria-required": o.question.ariaRequired || o.question.a11y_input_ariaRequired,
|
|
3534
3541
|
style: $({ resize: o.question.resizeStyle }),
|
|
3535
3542
|
onChange: n[0] || (n[0] = (s) => {
|
|
3536
3543
|
o.question.onCommentChange(s);
|
|
@@ -3538,9 +3545,9 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3538
3545
|
onInput: n[1] || (n[1] = (s) => {
|
|
3539
3546
|
o.question.onCommentInput(s);
|
|
3540
3547
|
})
|
|
3541
|
-
}, null, 46,
|
|
3548
|
+
}, null, 46, Wo));
|
|
3542
3549
|
}
|
|
3543
|
-
}),
|
|
3550
|
+
}), Uo = /* @__PURE__ */ C({
|
|
3544
3551
|
__name: "TitleElement",
|
|
3545
3552
|
props: {
|
|
3546
3553
|
element: {},
|
|
@@ -3551,8 +3558,8 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3551
3558
|
de(n);
|
|
3552
3559
|
};
|
|
3553
3560
|
return (n, s) => {
|
|
3554
|
-
const e =
|
|
3555
|
-
return n.element.hasTitle ? (t(),
|
|
3561
|
+
const e = v("survey-element-title-content"), i = v("sv-title-actions");
|
|
3562
|
+
return n.element.hasTitle ? (t(), q(N(n.element.titleTagName), {
|
|
3556
3563
|
key: 0,
|
|
3557
3564
|
class: l(n.element.cssTitle),
|
|
3558
3565
|
"aria-label": n.element.titleAriaLabel,
|
|
@@ -3564,13 +3571,13 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3564
3571
|
o(a);
|
|
3565
3572
|
})
|
|
3566
3573
|
}, {
|
|
3567
|
-
default:
|
|
3568
|
-
n.element.hasTitleActions ? m("", !0) : (t(),
|
|
3574
|
+
default: ye(() => [
|
|
3575
|
+
n.element.hasTitleActions ? m("", !0) : (t(), q(e, {
|
|
3569
3576
|
key: 0,
|
|
3570
3577
|
element: n.element,
|
|
3571
3578
|
css: n.css
|
|
3572
3579
|
}, null, 8, ["element", "css"])),
|
|
3573
|
-
n.element.hasTitleActions ? (t(),
|
|
3580
|
+
n.element.hasTitleActions ? (t(), q(i, {
|
|
3574
3581
|
key: 1,
|
|
3575
3582
|
element: n.element,
|
|
3576
3583
|
css: n.css
|
|
@@ -3580,7 +3587,7 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3580
3587
|
}, 40, ["class", "aria-label", "id", "tabindex", "aria-expanded", "role"])) : m("", !0);
|
|
3581
3588
|
};
|
|
3582
3589
|
}
|
|
3583
|
-
}),
|
|
3590
|
+
}), Ko = { class: "sv-vue-title-additional-div" }, _o = { key: 3 }, jo = { key: 5 }, Qo = { key: 7 }, Zo = /* @__PURE__ */ C({
|
|
3584
3591
|
__name: "TitleContent",
|
|
3585
3592
|
props: {
|
|
3586
3593
|
element: {},
|
|
@@ -3588,9 +3595,9 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3588
3595
|
},
|
|
3589
3596
|
setup(r) {
|
|
3590
3597
|
return (o, n) => {
|
|
3591
|
-
const s =
|
|
3592
|
-
return t(), u("div",
|
|
3593
|
-
o.element.isTitleRenderedAsString ? (t(),
|
|
3598
|
+
const s = v("survey-string");
|
|
3599
|
+
return t(), u("div", Ko, [
|
|
3600
|
+
o.element.isTitleRenderedAsString ? (t(), q(s, {
|
|
3594
3601
|
key: 0,
|
|
3595
3602
|
locString: o.element.locTitle
|
|
3596
3603
|
}, null, 8, ["locString"])) : m("", !0),
|
|
@@ -3605,18 +3612,18 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3605
3612
|
class: l(o.element.cssTitleNumber),
|
|
3606
3613
|
"aria-hidden": !0
|
|
3607
3614
|
}, I(o.element.no), 3)) : m("", !0),
|
|
3608
|
-
!o.element.isTitleRenderedAsString && o.element.no ? (t(), u("span",
|
|
3615
|
+
!o.element.isTitleRenderedAsString && o.element.no ? (t(), u("span", _o, "\xA0")) : m("", !0),
|
|
3609
3616
|
!o.element.isTitleRenderedAsString && o.element.isRequireTextBeforeTitle ? (t(), u("span", {
|
|
3610
3617
|
key: 4,
|
|
3611
3618
|
class: l(o.element.cssClasses.requiredText),
|
|
3612
3619
|
"aria-hidden": !0
|
|
3613
3620
|
}, I(o.element.requiredText), 3)) : m("", !0),
|
|
3614
|
-
!o.element.isTitleRenderedAsString && o.element.isRequireTextBeforeTitle ? (t(), u("span",
|
|
3615
|
-
o.element.isTitleRenderedAsString ? m("", !0) : (t(),
|
|
3621
|
+
!o.element.isTitleRenderedAsString && o.element.isRequireTextBeforeTitle ? (t(), u("span", jo, "\xA0")) : m("", !0),
|
|
3622
|
+
o.element.isTitleRenderedAsString ? m("", !0) : (t(), q(s, {
|
|
3616
3623
|
key: 6,
|
|
3617
3624
|
locString: o.element.locTitle
|
|
3618
3625
|
}, null, 8, ["locString"])),
|
|
3619
|
-
!o.element.isTitleRenderedAsString && o.element.isRequireTextAfterTitle ? (t(), u("span",
|
|
3626
|
+
!o.element.isTitleRenderedAsString && o.element.isRequireTextAfterTitle ? (t(), u("span", Qo, "\xA0")) : m("", !0),
|
|
3620
3627
|
!o.element.isTitleRenderedAsString && o.element.isRequireTextAfterTitle ? (t(), u("span", {
|
|
3621
3628
|
key: 8,
|
|
3622
3629
|
class: l(o.element.cssClasses.requiredText),
|
|
@@ -3625,46 +3632,46 @@ const Bo = /* @__PURE__ */ C({
|
|
|
3625
3632
|
]);
|
|
3626
3633
|
};
|
|
3627
3634
|
}
|
|
3628
|
-
}),
|
|
3635
|
+
}), Go = { class: "sv-title-actions" }, Xo = { class: "sv-title-actions__title" }, Jo = /* @__PURE__ */ C({
|
|
3629
3636
|
__name: "TitleActions",
|
|
3630
3637
|
props: {
|
|
3631
3638
|
element: {},
|
|
3632
3639
|
css: {}
|
|
3633
3640
|
},
|
|
3634
3641
|
setup(r) {
|
|
3635
|
-
const o = r, n =
|
|
3642
|
+
const o = r, n = R(() => o.element.getTitleToolbar());
|
|
3636
3643
|
return (s, e) => {
|
|
3637
|
-
const i =
|
|
3638
|
-
return t(), u("div",
|
|
3639
|
-
p("span",
|
|
3640
|
-
s.element.isPage ? (t(),
|
|
3644
|
+
const i = v("survey-string"), a = v("survey-element-title-content"), d = v("sv-action-bar");
|
|
3645
|
+
return t(), u("div", Go, [
|
|
3646
|
+
p("span", Xo, [
|
|
3647
|
+
s.element.isPage ? (t(), q(i, {
|
|
3641
3648
|
key: 0,
|
|
3642
3649
|
locString: s.element.locTitle
|
|
3643
3650
|
}, null, 8, ["locString"])) : m("", !0),
|
|
3644
|
-
s.element.isPage ? m("", !0) : (t(),
|
|
3651
|
+
s.element.isPage ? m("", !0) : (t(), q(a, {
|
|
3645
3652
|
key: 1,
|
|
3646
3653
|
element: s.element,
|
|
3647
3654
|
css: s.css
|
|
3648
3655
|
}, null, 8, ["element", "css"]))
|
|
3649
3656
|
]),
|
|
3650
|
-
|
|
3657
|
+
b(d, { model: n.value }, null, 8, ["model"])
|
|
3651
3658
|
]);
|
|
3652
3659
|
};
|
|
3653
3660
|
}
|
|
3654
|
-
}),
|
|
3661
|
+
}), me = (r, o) => {
|
|
3655
3662
|
const n = r.__vccOpts || r;
|
|
3656
3663
|
for (const [s, e] of o)
|
|
3657
3664
|
n[s] = e;
|
|
3658
3665
|
return n;
|
|
3659
|
-
}, Yo = {},
|
|
3660
|
-
|
|
3666
|
+
}, 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 = [
|
|
3667
|
+
et
|
|
3661
3668
|
];
|
|
3662
|
-
function
|
|
3663
|
-
return t(), u("div",
|
|
3669
|
+
function nt(r, o) {
|
|
3670
|
+
return t(), u("div", xo, st);
|
|
3664
3671
|
}
|
|
3665
|
-
const
|
|
3666
|
-
|
|
3667
|
-
],
|
|
3672
|
+
const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /* @__PURE__ */ p("use", null, null, -1), lt = [
|
|
3673
|
+
it
|
|
3674
|
+
], rt = /* @__PURE__ */ C({
|
|
3668
3675
|
__name: "SvgIcon",
|
|
3669
3676
|
props: {
|
|
3670
3677
|
size: {},
|
|
@@ -3675,7 +3682,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3675
3682
|
},
|
|
3676
3683
|
setup(r) {
|
|
3677
3684
|
const o = r, n = S(), s = () => {
|
|
3678
|
-
|
|
3685
|
+
Re(
|
|
3679
3686
|
o.size,
|
|
3680
3687
|
o.width,
|
|
3681
3688
|
o.height,
|
|
@@ -3684,7 +3691,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3684
3691
|
o.title
|
|
3685
3692
|
);
|
|
3686
3693
|
};
|
|
3687
|
-
return
|
|
3694
|
+
return Z(() => {
|
|
3688
3695
|
s();
|
|
3689
3696
|
}), A(() => {
|
|
3690
3697
|
s();
|
|
@@ -3694,9 +3701,9 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3694
3701
|
class: "sv-svg-icon",
|
|
3695
3702
|
role: "img",
|
|
3696
3703
|
"aria-label": e.title
|
|
3697
|
-
},
|
|
3704
|
+
}, lt, 8, tt));
|
|
3698
3705
|
}
|
|
3699
|
-
}),
|
|
3706
|
+
}), at = /* @__PURE__ */ C({
|
|
3700
3707
|
__name: "ActionBar",
|
|
3701
3708
|
props: {
|
|
3702
3709
|
model: {},
|
|
@@ -3710,7 +3717,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3710
3717
|
}), V(() => {
|
|
3711
3718
|
o.model.resetResponsivityManager();
|
|
3712
3719
|
}), (s, e) => {
|
|
3713
|
-
const i =
|
|
3720
|
+
const i = v("sv-action");
|
|
3714
3721
|
return s.model.hasActions ? (t(), u("div", {
|
|
3715
3722
|
key: 0,
|
|
3716
3723
|
ref_key: "root",
|
|
@@ -3720,36 +3727,36 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3720
3727
|
a.stopPropagation();
|
|
3721
3728
|
})
|
|
3722
3729
|
}, [
|
|
3723
|
-
(t(!0), u(w, null,
|
|
3730
|
+
(t(!0), u(w, null, T(s.model.renderedActions, (a) => (t(), q(i, {
|
|
3724
3731
|
key: a.id,
|
|
3725
3732
|
item: a
|
|
3726
3733
|
}, null, 8, ["item"]))), 128))
|
|
3727
3734
|
], 2)) : m("", !0);
|
|
3728
3735
|
};
|
|
3729
3736
|
}
|
|
3730
|
-
}),
|
|
3737
|
+
}), ut = ["id"], dt = { class: "sv-action__content" }, mt = /* @__PURE__ */ C({
|
|
3731
3738
|
__name: "Action",
|
|
3732
3739
|
props: {
|
|
3733
3740
|
item: {}
|
|
3734
3741
|
},
|
|
3735
3742
|
setup(r) {
|
|
3736
|
-
const o = r, n =
|
|
3743
|
+
const o = r, n = R(
|
|
3737
3744
|
() => o.item.component || "sv-action-bar-item"
|
|
3738
3745
|
);
|
|
3739
3746
|
return B(() => o.item), (s, e) => {
|
|
3740
|
-
const i =
|
|
3747
|
+
const i = v("sv-action-bar-separator");
|
|
3741
3748
|
return t(), u("div", {
|
|
3742
3749
|
class: l(s.item.getActionRootCss()),
|
|
3743
3750
|
id: s.item.id
|
|
3744
3751
|
}, [
|
|
3745
|
-
p("div",
|
|
3746
|
-
s.item.needSeparator ? (t(),
|
|
3747
|
-
(t(),
|
|
3752
|
+
p("div", dt, [
|
|
3753
|
+
s.item.needSeparator ? (t(), q(i, { key: 0 })) : m("", !0),
|
|
3754
|
+
(t(), q(N(n.value), { item: s.item }, null, 8, ["item"]))
|
|
3748
3755
|
])
|
|
3749
|
-
], 10,
|
|
3756
|
+
], 10, ut);
|
|
3750
3757
|
};
|
|
3751
3758
|
}
|
|
3752
|
-
}),
|
|
3759
|
+
}), ct = ["disabled", "title", "aria-checked", "aria-expanded", "role", "tabindex"], pt = /* @__PURE__ */ C({
|
|
3753
3760
|
__name: "ActionBarItem",
|
|
3754
3761
|
props: {
|
|
3755
3762
|
item: {}
|
|
@@ -3757,7 +3764,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3757
3764
|
setup(r) {
|
|
3758
3765
|
const o = r;
|
|
3759
3766
|
return B(() => o.item), (n, s) => {
|
|
3760
|
-
const e =
|
|
3767
|
+
const e = v("sv-svg-icon");
|
|
3761
3768
|
return t(), u("button", {
|
|
3762
3769
|
class: l(n.item.getActionBarItemCss()),
|
|
3763
3770
|
type: "button",
|
|
@@ -3774,7 +3781,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3774
3781
|
role: n.item.ariaRole,
|
|
3775
3782
|
tabindex: n.item.disableTabStop ? -1 : 0
|
|
3776
3783
|
}, [
|
|
3777
|
-
n.item.iconName ? (t(),
|
|
3784
|
+
n.item.iconName ? (t(), q(e, {
|
|
3778
3785
|
key: 0,
|
|
3779
3786
|
class: l(n.item.cssClasses.itemIcon),
|
|
3780
3787
|
iconName: n.item.iconName,
|
|
@@ -3785,16 +3792,16 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3785
3792
|
key: 1,
|
|
3786
3793
|
class: l(n.item.getActionBarItemTitleCss())
|
|
3787
3794
|
}, I(n.item.title), 3)) : m("", !0)
|
|
3788
|
-
], 42,
|
|
3795
|
+
], 42, ct);
|
|
3789
3796
|
};
|
|
3790
3797
|
}
|
|
3791
|
-
}),
|
|
3798
|
+
}), vt = ["disabled", "title", "role", "tabindex"], qt = /* @__PURE__ */ C({
|
|
3792
3799
|
__name: "ActionBarItemDropdown",
|
|
3793
3800
|
props: {
|
|
3794
3801
|
item: {}
|
|
3795
3802
|
},
|
|
3796
3803
|
setup(r) {
|
|
3797
|
-
const o = r, n =
|
|
3804
|
+
const o = r, n = $e;
|
|
3798
3805
|
let s;
|
|
3799
3806
|
return B(
|
|
3800
3807
|
() => o.item,
|
|
@@ -3805,7 +3812,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3805
3812
|
s.dispose();
|
|
3806
3813
|
}
|
|
3807
3814
|
), (e, i) => {
|
|
3808
|
-
const a =
|
|
3815
|
+
const a = v("sv-svg-icon"), d = v("sv-popup");
|
|
3809
3816
|
return t(), u(w, null, [
|
|
3810
3817
|
p("button", {
|
|
3811
3818
|
type: "button",
|
|
@@ -3821,7 +3828,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3821
3828
|
role: e.item.ariaRole,
|
|
3822
3829
|
tabindex: e.item.disableTabStop ? -1 : 0
|
|
3823
3830
|
}, [
|
|
3824
|
-
e.item.iconName ? (t(),
|
|
3831
|
+
e.item.iconName ? (t(), q(a, {
|
|
3825
3832
|
key: 0,
|
|
3826
3833
|
class: l(e.item.cssClasses.itemIcon),
|
|
3827
3834
|
iconName: e.item.iconName,
|
|
@@ -3832,26 +3839,26 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3832
3839
|
key: 1,
|
|
3833
3840
|
class: l(e.item.getActionBarItemTitleCss())
|
|
3834
3841
|
}, I(e.item.title), 3)) : m("", !0)
|
|
3835
|
-
], 42,
|
|
3836
|
-
|
|
3842
|
+
], 42, vt),
|
|
3843
|
+
b(d, {
|
|
3837
3844
|
model: e.item.popupModel,
|
|
3838
|
-
getTarget:
|
|
3845
|
+
getTarget: f(n)
|
|
3839
3846
|
}, null, 8, ["model", "getTarget"])
|
|
3840
3847
|
], 64);
|
|
3841
3848
|
};
|
|
3842
3849
|
}
|
|
3843
|
-
}),
|
|
3850
|
+
}), yt = /* @__PURE__ */ C({
|
|
3844
3851
|
__name: "ActionBarSeparator",
|
|
3845
3852
|
props: {
|
|
3846
3853
|
item: {}
|
|
3847
3854
|
},
|
|
3848
3855
|
setup(r) {
|
|
3849
|
-
const o = r, n =
|
|
3856
|
+
const o = r, n = R(() => o.item && o.item.innerCss);
|
|
3850
3857
|
return (s, e) => (t(), u("div", {
|
|
3851
3858
|
class: l(["sv-action-bar-separator", n.value])
|
|
3852
3859
|
}, null, 2));
|
|
3853
3860
|
}
|
|
3854
|
-
}),
|
|
3861
|
+
}), gt = ["aria-label", "placeholder", "value"], Ct = ["aria-label"], ht = ["id"], bt = /* @__PURE__ */ C({
|
|
3855
3862
|
__name: "List",
|
|
3856
3863
|
props: {
|
|
3857
3864
|
model: {}
|
|
@@ -3869,7 +3876,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3869
3876
|
return B(() => o.model), A(() => {
|
|
3870
3877
|
o.model.initListContainerHtmlElement(n.value);
|
|
3871
3878
|
}), (a, d) => {
|
|
3872
|
-
const c =
|
|
3879
|
+
const c = v("sv-svg-icon"), y = v("sv-list-item");
|
|
3873
3880
|
return t(), u("div", {
|
|
3874
3881
|
class: l(a.model.cssClasses.root),
|
|
3875
3882
|
ref_key: "listContainerElement",
|
|
@@ -3882,7 +3889,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3882
3889
|
p("div", {
|
|
3883
3890
|
class: l(a.model.cssClasses.filterIcon)
|
|
3884
3891
|
}, [
|
|
3885
|
-
|
|
3892
|
+
b(c, {
|
|
3886
3893
|
iconName: "icon-search",
|
|
3887
3894
|
size: "auto"
|
|
3888
3895
|
})
|
|
@@ -3895,62 +3902,62 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3895
3902
|
value: a.model.filterString,
|
|
3896
3903
|
onChange: s,
|
|
3897
3904
|
onKeyup: e
|
|
3898
|
-
}, null, 42,
|
|
3905
|
+
}, null, 42, gt),
|
|
3899
3906
|
a.model.showSearchClearButton && !!a.model.filterString ? (t(), u("button", {
|
|
3900
3907
|
key: 0,
|
|
3901
|
-
onClick: d[0] || (d[0] = (
|
|
3902
|
-
a.model.onClickSearchClearButton(
|
|
3908
|
+
onClick: d[0] || (d[0] = (h) => {
|
|
3909
|
+
a.model.onClickSearchClearButton(h);
|
|
3903
3910
|
}),
|
|
3904
3911
|
class: l(a.model.cssClasses.searchClearButtonIcon)
|
|
3905
3912
|
}, [
|
|
3906
|
-
|
|
3913
|
+
b(c, {
|
|
3907
3914
|
iconName: "icon-searchclear",
|
|
3908
3915
|
size: "auto"
|
|
3909
3916
|
})
|
|
3910
3917
|
], 2)) : m("", !0)
|
|
3911
3918
|
], 2)) : m("", !0),
|
|
3912
|
-
|
|
3919
|
+
L(p("div", {
|
|
3913
3920
|
class: l(a.model.cssClasses.emptyContainer)
|
|
3914
3921
|
}, [
|
|
3915
3922
|
p("div", {
|
|
3916
3923
|
class: l(a.model.cssClasses.emptyText),
|
|
3917
3924
|
"aria-label": a.model.emptyMessage
|
|
3918
|
-
}, I(a.model.emptyMessage), 11,
|
|
3925
|
+
}, I(a.model.emptyMessage), 11, Ct)
|
|
3919
3926
|
], 2), [
|
|
3920
3927
|
[H, a.model.isEmpty]
|
|
3921
3928
|
]),
|
|
3922
|
-
a.model.renderElements ?
|
|
3929
|
+
a.model.renderElements ? L((t(), u("ul", {
|
|
3923
3930
|
key: 1,
|
|
3924
3931
|
class: l(a.model.getListClass()),
|
|
3925
3932
|
role: "listbox",
|
|
3926
3933
|
id: a.model.elementId,
|
|
3927
|
-
onMousedown: d[1] || (d[1] = (
|
|
3928
|
-
|
|
3934
|
+
onMousedown: d[1] || (d[1] = (h) => {
|
|
3935
|
+
h.preventDefault();
|
|
3929
3936
|
}),
|
|
3930
3937
|
onMousemove: i,
|
|
3931
|
-
onKeydown: d[2] || (d[2] = (
|
|
3932
|
-
a.model.onKeyDown(
|
|
3938
|
+
onKeydown: d[2] || (d[2] = (h) => {
|
|
3939
|
+
a.model.onKeyDown(h);
|
|
3933
3940
|
})
|
|
3934
3941
|
}, [
|
|
3935
|
-
(t(!0), u(w, null,
|
|
3936
|
-
item:
|
|
3942
|
+
(t(!0), u(w, null, T(a.model.renderedActions, (h) => (t(), q(y, {
|
|
3943
|
+
item: h,
|
|
3937
3944
|
model: a.model,
|
|
3938
|
-
key:
|
|
3945
|
+
key: h.id
|
|
3939
3946
|
}, null, 8, ["item", "model"]))), 128))
|
|
3940
|
-
], 42,
|
|
3947
|
+
], 42, ht)), [
|
|
3941
3948
|
[H, !a.model.isEmpty]
|
|
3942
3949
|
]) : m("", !0)
|
|
3943
3950
|
], 2);
|
|
3944
3951
|
};
|
|
3945
3952
|
}
|
|
3946
|
-
}),
|
|
3953
|
+
}), kt = ["aria-selected", "id"], ft = /* @__PURE__ */ C({
|
|
3947
3954
|
__name: "ListItem",
|
|
3948
3955
|
props: {
|
|
3949
3956
|
model: {},
|
|
3950
3957
|
item: {}
|
|
3951
3958
|
},
|
|
3952
3959
|
setup(r) {
|
|
3953
|
-
const o = r, n =
|
|
3960
|
+
const o = r, n = R(() => o.item.elementId), s = (e) => {
|
|
3954
3961
|
o.model.onItemClick(o.item), e.stopPropagation();
|
|
3955
3962
|
};
|
|
3956
3963
|
return B(() => o.item), A(() => {
|
|
@@ -3958,8 +3965,8 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3958
3965
|
o.model.onLastItemRended(o.item);
|
|
3959
3966
|
});
|
|
3960
3967
|
}), (e, i) => {
|
|
3961
|
-
const a =
|
|
3962
|
-
return
|
|
3968
|
+
const a = v("sv-svg-icon"), d = v("survey-string"), c = Y("key2click");
|
|
3969
|
+
return L((t(), u("li", {
|
|
3963
3970
|
tabindex: "0",
|
|
3964
3971
|
role: "option",
|
|
3965
3972
|
"aria-selected": e.model.isItemSelected(e.item),
|
|
@@ -3976,28 +3983,28 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
3976
3983
|
style: $({ paddingInlineStart: e.model.getItemIndent(e.item) }),
|
|
3977
3984
|
class: l(e.model.cssClasses.itemBody)
|
|
3978
3985
|
}, [
|
|
3979
|
-
e.item.iconName && !e.item.component ? (t(),
|
|
3986
|
+
e.item.iconName && !e.item.component ? (t(), q(a, {
|
|
3980
3987
|
key: 0,
|
|
3981
3988
|
class: l(e.model.cssClasses.itemIcon),
|
|
3982
3989
|
iconName: e.item.iconName,
|
|
3983
3990
|
size: e.item.iconSize
|
|
3984
3991
|
}, null, 8, ["class", "iconName", "size"])) : m("", !0),
|
|
3985
|
-
e.item.component ? m("", !0) : (t(),
|
|
3992
|
+
e.item.component ? m("", !0) : (t(), q(d, {
|
|
3986
3993
|
key: 1,
|
|
3987
3994
|
locString: e.item.locTitle
|
|
3988
3995
|
}, null, 8, ["locString"])),
|
|
3989
|
-
e.item.component ? (t(),
|
|
3996
|
+
e.item.component ? (t(), q(N(e.item.component), {
|
|
3990
3997
|
key: 2,
|
|
3991
3998
|
item: e.item
|
|
3992
3999
|
}, null, 8, ["item"])) : m("", !0)
|
|
3993
4000
|
], 6)
|
|
3994
|
-
], 10,
|
|
4001
|
+
], 10, kt)), [
|
|
3995
4002
|
[H, e.model.isItemVisible(e.item)],
|
|
3996
4003
|
[c]
|
|
3997
4004
|
]);
|
|
3998
4005
|
};
|
|
3999
4006
|
}
|
|
4000
|
-
}),
|
|
4007
|
+
}), It = /* @__PURE__ */ C({
|
|
4001
4008
|
__name: "Popup",
|
|
4002
4009
|
props: {
|
|
4003
4010
|
getTarget: { type: Function },
|
|
@@ -4007,7 +4014,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4007
4014
|
const o = r, n = F(
|
|
4008
4015
|
te(o.model, void 0)
|
|
4009
4016
|
), s = S(null);
|
|
4010
|
-
return
|
|
4017
|
+
return Q(
|
|
4011
4018
|
() => o.model,
|
|
4012
4019
|
(e) => {
|
|
4013
4020
|
n.value.dispose(), n.value = te(e, void 0);
|
|
@@ -4022,22 +4029,22 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4022
4029
|
}), V(() => {
|
|
4023
4030
|
n.value.dispose();
|
|
4024
4031
|
}), (e, i) => {
|
|
4025
|
-
const a =
|
|
4032
|
+
const a = v("sv-popup-container");
|
|
4026
4033
|
return t(), u("div", {
|
|
4027
4034
|
ref_key: "root",
|
|
4028
4035
|
ref: s
|
|
4029
4036
|
}, [
|
|
4030
|
-
|
|
4037
|
+
b(a, { model: n.value }, null, 8, ["model"])
|
|
4031
4038
|
], 512);
|
|
4032
4039
|
};
|
|
4033
4040
|
}
|
|
4034
|
-
}),
|
|
4041
|
+
}), wt = { class: "sv-popup__shadow" }, St = { class: "sv-popup__body-content" }, Rt = {
|
|
4035
4042
|
key: 0,
|
|
4036
4043
|
class: "sv-popup__body-header"
|
|
4037
|
-
}, Tt = { class: "sv-popup__scrolling-content" },
|
|
4044
|
+
}, Tt = { class: "sv-popup__scrolling-content" }, $t = { class: "sv-popup__content" }, Bt = {
|
|
4038
4045
|
key: 1,
|
|
4039
4046
|
class: "sv-popup__body-footer"
|
|
4040
|
-
},
|
|
4047
|
+
}, Lt = /* @__PURE__ */ C({
|
|
4041
4048
|
__name: "PopupContainer",
|
|
4042
4049
|
props: {
|
|
4043
4050
|
model: {}
|
|
@@ -4048,12 +4055,12 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4048
4055
|
const s = (e) => {
|
|
4049
4056
|
e.stopPropagation();
|
|
4050
4057
|
};
|
|
4051
|
-
return B(() => o.model),
|
|
4058
|
+
return B(() => o.model), Z(() => {
|
|
4052
4059
|
const e = o.model;
|
|
4053
4060
|
!n && e.isVisible && o.model.updateOnShowing(), n = e.isVisible;
|
|
4054
4061
|
}), (e, i) => {
|
|
4055
|
-
const a =
|
|
4056
|
-
return
|
|
4062
|
+
const a = v("sv-action-bar");
|
|
4063
|
+
return L((t(), u("div", {
|
|
4057
4064
|
tabindex: "-1",
|
|
4058
4065
|
class: l(["sv-popup", e.model.styleClass]),
|
|
4059
4066
|
onKeydown: i[0] || (i[0] = (d) => {
|
|
@@ -4074,20 +4081,20 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4074
4081
|
}),
|
|
4075
4082
|
onClick: s
|
|
4076
4083
|
}, [
|
|
4077
|
-
p("div",
|
|
4078
|
-
e.model.showHeader ? (t(),
|
|
4084
|
+
p("div", wt, [
|
|
4085
|
+
e.model.showHeader ? (t(), q(N(e.model.popupHeaderTemplate), {
|
|
4079
4086
|
key: 0,
|
|
4080
4087
|
model: e.model
|
|
4081
4088
|
}, null, 8, ["model"])) : m("", !0),
|
|
4082
|
-
p("div",
|
|
4083
|
-
e.model.title ? (t(), u("div",
|
|
4089
|
+
p("div", St, [
|
|
4090
|
+
e.model.title ? (t(), u("div", Rt, I(e.model.title), 1)) : m("", !0),
|
|
4084
4091
|
p("div", Tt, [
|
|
4085
|
-
p("div",
|
|
4086
|
-
(t(),
|
|
4092
|
+
p("div", $t, [
|
|
4093
|
+
(t(), q(N(e.model.contentComponentName), Ce(he(e.model.contentComponentData)), null, 16))
|
|
4087
4094
|
])
|
|
4088
4095
|
]),
|
|
4089
|
-
e.model.showFooter ? (t(), u("div",
|
|
4090
|
-
|
|
4096
|
+
e.model.showFooter ? (t(), u("div", Bt, [
|
|
4097
|
+
b(a, {
|
|
4091
4098
|
model: e.model.footerToolbar
|
|
4092
4099
|
}, null, 8, ["model"])
|
|
4093
4100
|
])) : m("", !0)
|
|
@@ -4099,7 +4106,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4099
4106
|
]);
|
|
4100
4107
|
};
|
|
4101
4108
|
}
|
|
4102
|
-
}),
|
|
4109
|
+
}), Dt = /* @__PURE__ */ C({
|
|
4103
4110
|
__name: "PopupPointer",
|
|
4104
4111
|
props: {
|
|
4105
4112
|
model: {}
|
|
@@ -4113,10 +4120,10 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4113
4120
|
})
|
|
4114
4121
|
}, null, 4));
|
|
4115
4122
|
}
|
|
4116
|
-
}),
|
|
4123
|
+
}), Pt = {
|
|
4117
4124
|
key: 0,
|
|
4118
4125
|
class: "sv-components-column"
|
|
4119
|
-
},
|
|
4126
|
+
}, Mt = /* @__PURE__ */ C({
|
|
4120
4127
|
__name: "Container",
|
|
4121
4128
|
props: {
|
|
4122
4129
|
survey: {},
|
|
@@ -4124,23 +4131,23 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4124
4131
|
needRenderWrapper: {}
|
|
4125
4132
|
},
|
|
4126
4133
|
setup(r) {
|
|
4127
|
-
const o = r, n =
|
|
4134
|
+
const o = r, n = R(
|
|
4128
4135
|
() => o.survey.getContainerContent(o.container)
|
|
4129
4136
|
);
|
|
4130
4137
|
return (s, e) => n.value.length > 0 ? (t(), u(w, { key: 0 }, [
|
|
4131
|
-
s.needRenderWrapper ? (t(), u("div",
|
|
4132
|
-
(t(!0), u(w, null,
|
|
4138
|
+
s.needRenderWrapper ? (t(), u("div", Pt, [
|
|
4139
|
+
(t(!0), u(w, null, T(n.value, (i, a) => (t(), q(N(i.component), {
|
|
4133
4140
|
survey: s.survey,
|
|
4134
4141
|
container: s.container,
|
|
4135
4142
|
model: i.data
|
|
4136
4143
|
}, null, 8, ["survey", "container", "model"]))), 256))
|
|
4137
|
-
])) : (t(!0), u(w, { key: 1 },
|
|
4144
|
+
])) : (t(!0), u(w, { key: 1 }, T(n.value, (i, a) => (t(), q(N(i.component), {
|
|
4138
4145
|
survey: s.survey,
|
|
4139
4146
|
model: i.data
|
|
4140
4147
|
}, null, 8, ["survey", "model"]))), 256))
|
|
4141
4148
|
], 64)) : m("", !0);
|
|
4142
4149
|
}
|
|
4143
|
-
}),
|
|
4150
|
+
}), j = /* @__PURE__ */ C({
|
|
4144
4151
|
__name: "Progress",
|
|
4145
4152
|
props: {
|
|
4146
4153
|
survey: {},
|
|
@@ -4148,7 +4155,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4148
4155
|
css: {}
|
|
4149
4156
|
},
|
|
4150
4157
|
setup(r) {
|
|
4151
|
-
const o = r, n =
|
|
4158
|
+
const o = r, n = R(() => o.survey.progressValue + "%"), s = (i) => ie.getProgressTextInBarCss(i), e = (i) => ie.getProgressTextUnderBarCss(i);
|
|
4152
4159
|
return (i, a) => (t(), u("div", {
|
|
4153
4160
|
class: l(i.survey.getProgressCssClasses(i.container))
|
|
4154
4161
|
}, [
|
|
@@ -4168,17 +4175,17 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4168
4175
|
}, I(i.survey.progressText), 3)
|
|
4169
4176
|
], 2));
|
|
4170
4177
|
}
|
|
4171
|
-
}),
|
|
4178
|
+
}), Nt = ["onClick"], Ht = ["title"], At = ["title"], Et = /* @__PURE__ */ C({
|
|
4172
4179
|
__name: "ProgressButtons",
|
|
4173
4180
|
props: {
|
|
4174
4181
|
survey: {}
|
|
4175
4182
|
},
|
|
4176
4183
|
setup(r) {
|
|
4177
|
-
const o = r, n = new
|
|
4184
|
+
const o = r, n = new Be(o.survey), s = S(!1), e = S(), i = R(() => o.survey.css);
|
|
4178
4185
|
let a;
|
|
4179
|
-
const d = (k) => n.isListElementClickable(k), c = (k) => n.getListElementCss(k),
|
|
4186
|
+
const d = (k) => n.isListElementClickable(k), c = (k) => n.getListElementCss(k), y = (k) => {
|
|
4180
4187
|
n.clickListElement(k);
|
|
4181
|
-
},
|
|
4188
|
+
}, h = (k, P) => n.getScrollButtonCss(k, P), g = (k) => {
|
|
4182
4189
|
let P = e.value;
|
|
4183
4190
|
P.scrollLeft += (k ? -1 : 1) * 70;
|
|
4184
4191
|
};
|
|
@@ -4196,8 +4203,8 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4196
4203
|
class: l(i.value.progressButtonsContainer)
|
|
4197
4204
|
}, [
|
|
4198
4205
|
p("div", {
|
|
4199
|
-
class: l(
|
|
4200
|
-
onClick: P[0] || (P[0] = (
|
|
4206
|
+
class: l(h(s.value, !0)),
|
|
4207
|
+
onClick: P[0] || (P[0] = (D) => g(!0)),
|
|
4201
4208
|
role: "button"
|
|
4202
4209
|
}, null, 2),
|
|
4203
4210
|
p("div", {
|
|
@@ -4208,113 +4215,113 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4208
4215
|
p("ul", {
|
|
4209
4216
|
class: l(i.value.progressButtonsList)
|
|
4210
4217
|
}, [
|
|
4211
|
-
(t(!0), u(w, null,
|
|
4218
|
+
(t(!0), u(w, null, T(k.survey.visiblePages, (D, E) => (t(), u("li", {
|
|
4212
4219
|
key: "listelement" + E,
|
|
4213
4220
|
class: l(c(E)),
|
|
4214
|
-
onClick: (
|
|
4221
|
+
onClick: (_) => d(E) ? y(E) : null
|
|
4215
4222
|
}, [
|
|
4216
4223
|
p("div", {
|
|
4217
4224
|
class: l(i.value.progressButtonsPageTitle),
|
|
4218
|
-
title:
|
|
4219
|
-
}, I(
|
|
4225
|
+
title: D.renderedNavigationTitle
|
|
4226
|
+
}, I(D.renderedNavigationTitle), 11, Ht),
|
|
4220
4227
|
p("div", {
|
|
4221
4228
|
class: l(i.value.progressButtonsPageDescription),
|
|
4222
|
-
title:
|
|
4223
|
-
}, I(
|
|
4224
|
-
], 10,
|
|
4229
|
+
title: D.locNavigationDescription.renderedHtml
|
|
4230
|
+
}, I(D.locNavigationDescription.renderedHtml), 11, At)
|
|
4231
|
+
], 10, Nt))), 128))
|
|
4225
4232
|
], 2)
|
|
4226
4233
|
], 2),
|
|
4227
4234
|
p("div", {
|
|
4228
|
-
class: l(
|
|
4229
|
-
onClick: P[1] || (P[1] = (
|
|
4235
|
+
class: l(h(s.value, !1)),
|
|
4236
|
+
onClick: P[1] || (P[1] = (D) => g(!1)),
|
|
4230
4237
|
role: "button"
|
|
4231
4238
|
}, null, 2)
|
|
4232
4239
|
], 2)
|
|
4233
4240
|
], 2));
|
|
4234
4241
|
}
|
|
4235
|
-
}),
|
|
4242
|
+
}), Vt = /* @__PURE__ */ C({
|
|
4236
4243
|
__name: "ProgressToc",
|
|
4237
4244
|
props: {
|
|
4238
4245
|
survey: {}
|
|
4239
4246
|
},
|
|
4240
4247
|
setup(r) {
|
|
4241
|
-
const o = r, n = new
|
|
4248
|
+
const o = r, n = new Le(o.survey);
|
|
4242
4249
|
return (s, e) => {
|
|
4243
|
-
const i =
|
|
4250
|
+
const i = v("sv-svg-icon"), a = v("sv-popup"), d = v("sv-list"), c = Y("key2click");
|
|
4244
4251
|
return t(), u("div", {
|
|
4245
|
-
class: l(
|
|
4252
|
+
class: l(f(n).containerCss)
|
|
4246
4253
|
}, [
|
|
4247
|
-
|
|
4254
|
+
f(n).isMobile ? L((t(), u("div", {
|
|
4248
4255
|
key: 0,
|
|
4249
|
-
onClick: e[0] || (e[0] = (...
|
|
4256
|
+
onClick: e[0] || (e[0] = (...y) => f(n).togglePopup && f(n).togglePopup(...y))
|
|
4250
4257
|
}, [
|
|
4251
|
-
|
|
4252
|
-
iconName:
|
|
4258
|
+
b(i, {
|
|
4259
|
+
iconName: f(n).icon,
|
|
4253
4260
|
size: 24
|
|
4254
4261
|
}, null, 8, ["iconName"]),
|
|
4255
|
-
|
|
4256
|
-
model:
|
|
4262
|
+
b(a, {
|
|
4263
|
+
model: f(n).popupModel
|
|
4257
4264
|
}, null, 8, ["model"])
|
|
4258
4265
|
])), [
|
|
4259
4266
|
[c]
|
|
4260
|
-
]) : (t(),
|
|
4267
|
+
]) : (t(), q(d, {
|
|
4261
4268
|
key: 1,
|
|
4262
|
-
model:
|
|
4269
|
+
model: f(n).listModel
|
|
4263
4270
|
}, null, 8, ["model"]))
|
|
4264
4271
|
], 2);
|
|
4265
4272
|
};
|
|
4266
4273
|
}
|
|
4267
|
-
}),
|
|
4274
|
+
}), Ot = { onsubmit: "return false;" }, Ft = {
|
|
4268
4275
|
key: 0,
|
|
4269
4276
|
class: "sv_custom_header"
|
|
4270
|
-
},
|
|
4277
|
+
}, Wt = ["id"], zt = { key: 1 }, Ut = ["innerHTML"], Kt = ["innerHTML"], _t = ["innerHTML"], re = /* @__PURE__ */ C({
|
|
4271
4278
|
__name: "Survey",
|
|
4272
4279
|
props: {
|
|
4273
4280
|
model: {},
|
|
4274
4281
|
survey: {}
|
|
4275
4282
|
},
|
|
4276
4283
|
setup(r) {
|
|
4277
|
-
const o = r, n = S(), s = S(""), e = S(1), i =
|
|
4284
|
+
const o = r, n = S(), s = S(""), e = S(1), i = R(() => {
|
|
4278
4285
|
const k = o.survey ? o.survey : o.model;
|
|
4279
|
-
return
|
|
4280
|
-
}), a =
|
|
4286
|
+
return be(k);
|
|
4287
|
+
}), a = R(() => i.value.activePage ? i.value.activePage.id : ""), d = () => {
|
|
4281
4288
|
const k = a.value;
|
|
4282
4289
|
return !!i.value && k + e.value.toString();
|
|
4283
|
-
}, c =
|
|
4290
|
+
}, c = R(
|
|
4284
4291
|
() => i.value.showCompletedPage && i.value.state === "completed"
|
|
4285
|
-
),
|
|
4292
|
+
), y = R(() => i.value.css), h = R(() => "page" + d()), g = () => c.value ? (s.value || (s.value = i.value.processedCompletedHtml), s.value) : "";
|
|
4286
4293
|
return B(() => i.value), A(() => {
|
|
4287
4294
|
if (!!i.value) {
|
|
4288
|
-
i.value.needRenderIcons &&
|
|
4295
|
+
i.value.needRenderIcons && De.renderIcons();
|
|
4289
4296
|
var k = n.value;
|
|
4290
4297
|
k && i.value.afterRenderSurvey(k), i.value.renderCallback = () => {
|
|
4291
|
-
var P,
|
|
4292
|
-
e.value++, (
|
|
4298
|
+
var P, D;
|
|
4299
|
+
e.value++, (D = (P = x()) == null ? void 0 : P.proxy) == null || D.$forceUpdate();
|
|
4293
4300
|
}, i.value.startTimerFromUI();
|
|
4294
4301
|
}
|
|
4295
4302
|
}), V(() => {
|
|
4296
4303
|
i.value.stopTimer(), i.value.renderCallback = void 0;
|
|
4297
4304
|
}), (k, P) => {
|
|
4298
|
-
const
|
|
4305
|
+
const D = v("survey-popup-modal"), E = v("survey-header"), _ = v("survey-page"), X = v("sv-brand-info"), ne = v("sv-notifier");
|
|
4299
4306
|
return t(), u("div", {
|
|
4300
4307
|
class: l(i.value.getRootCss()),
|
|
4301
4308
|
style: $(i.value.themeVariables),
|
|
4302
4309
|
ref_key: "root",
|
|
4303
4310
|
ref: n
|
|
4304
4311
|
}, [
|
|
4305
|
-
|
|
4312
|
+
b(D),
|
|
4306
4313
|
i.value.renderBackgroundImage ? (t(), u("div", {
|
|
4307
4314
|
key: 0,
|
|
4308
|
-
class: l(
|
|
4315
|
+
class: l(y.value.rootBackgroundImage),
|
|
4309
4316
|
style: $(i.value.backgroundImageStyle)
|
|
4310
4317
|
}, null, 6)) : m("", !0),
|
|
4311
|
-
p("form",
|
|
4312
|
-
i.value.hasLogo ? m("", !0) : (t(), u("div",
|
|
4318
|
+
p("form", Ot, [
|
|
4319
|
+
i.value.hasLogo ? m("", !0) : (t(), u("div", Ft)),
|
|
4313
4320
|
p("div", {
|
|
4314
|
-
class: l(
|
|
4321
|
+
class: l(y.value.container)
|
|
4315
4322
|
}, [
|
|
4316
|
-
|
|
4317
|
-
(t(),
|
|
4323
|
+
b(E, { survey: i.value }, null, 8, ["survey"]),
|
|
4324
|
+
(t(), q(N("sv-components-container"), {
|
|
4318
4325
|
survey: i.value,
|
|
4319
4326
|
container: "header",
|
|
4320
4327
|
needRenderWrapper: !1
|
|
@@ -4323,7 +4330,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4323
4330
|
key: 0,
|
|
4324
4331
|
class: l(i.value.bodyContainerCss)
|
|
4325
4332
|
}, [
|
|
4326
|
-
(t(),
|
|
4333
|
+
(t(), q(N("sv-components-container"), {
|
|
4327
4334
|
survey: i.value,
|
|
4328
4335
|
container: "left",
|
|
4329
4336
|
needRenderWrapper: !0
|
|
@@ -4333,58 +4340,58 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4333
4340
|
style: $({ maxWidth: i.value.renderedWidth }),
|
|
4334
4341
|
id: a.value
|
|
4335
4342
|
}, [
|
|
4336
|
-
(t(),
|
|
4343
|
+
(t(), q(N("sv-components-container"), {
|
|
4337
4344
|
survey: i.value,
|
|
4338
4345
|
container: "contentTop",
|
|
4339
4346
|
needRenderWrapper: !0
|
|
4340
4347
|
}, null, 8, ["survey"])),
|
|
4341
|
-
(t(),
|
|
4342
|
-
key:
|
|
4348
|
+
(t(), q(_, {
|
|
4349
|
+
key: h.value,
|
|
4343
4350
|
survey: i.value,
|
|
4344
4351
|
page: i.value.activePage,
|
|
4345
|
-
css:
|
|
4352
|
+
css: y.value
|
|
4346
4353
|
}, null, 8, ["survey", "page", "css"])),
|
|
4347
|
-
(t(),
|
|
4354
|
+
(t(), q(N("sv-components-container"), {
|
|
4348
4355
|
survey: i.value,
|
|
4349
4356
|
container: "contentBottom",
|
|
4350
4357
|
needRenderWrapper: !0
|
|
4351
4358
|
}, null, 8, ["survey"]))
|
|
4352
|
-
], 14,
|
|
4353
|
-
(t(),
|
|
4359
|
+
], 14, Wt),
|
|
4360
|
+
(t(), q(N("sv-components-container"), {
|
|
4354
4361
|
survey: i.value,
|
|
4355
4362
|
container: "right",
|
|
4356
4363
|
needRenderWrapper: !0
|
|
4357
4364
|
}, null, 8, ["survey"]))
|
|
4358
4365
|
], 2)) : m("", !0),
|
|
4359
|
-
(t(),
|
|
4366
|
+
(t(), q(N("sv-components-container"), {
|
|
4360
4367
|
survey: i.value,
|
|
4361
4368
|
container: "footer",
|
|
4362
4369
|
needRenderWrapper: !1
|
|
4363
4370
|
}, null, 8, ["survey"])),
|
|
4364
|
-
c.value ? (t(), u("div",
|
|
4371
|
+
c.value ? (t(), u("div", zt, [
|
|
4365
4372
|
p("div", {
|
|
4366
4373
|
innerHTML: g(),
|
|
4367
4374
|
class: l(i.value.completedCss)
|
|
4368
|
-
}, null, 10,
|
|
4375
|
+
}, null, 10, Ut)
|
|
4369
4376
|
])) : m("", !0),
|
|
4370
4377
|
i.value.state === "completedbefore" ? (t(), u("div", {
|
|
4371
4378
|
key: 2,
|
|
4372
4379
|
class: l(i.value.completedBeforeCss),
|
|
4373
4380
|
innerHTML: i.value.processedCompletedBeforeHtml
|
|
4374
|
-
}, null, 10,
|
|
4381
|
+
}, null, 10, Kt)) : m("", !0),
|
|
4375
4382
|
i.value.state === "loading" ? (t(), u("div", {
|
|
4376
4383
|
key: 3,
|
|
4377
4384
|
class: l(i.value.loadingBodyCss),
|
|
4378
4385
|
innerHTML: i.value.processedLoadingHtml
|
|
4379
|
-
}, null, 10,
|
|
4386
|
+
}, null, 10, _t)) : m("", !0),
|
|
4380
4387
|
i.value.state === "empty" ? (t(), u("div", {
|
|
4381
4388
|
key: 4,
|
|
4382
|
-
class: l(
|
|
4389
|
+
class: l(y.value.bodyEmpty)
|
|
4383
4390
|
}, I(i.value.emptySurveyText), 3)) : m("", !0)
|
|
4384
4391
|
], 2)
|
|
4385
4392
|
]),
|
|
4386
|
-
i.value.showBrandInfo ? (t(),
|
|
4387
|
-
|
|
4393
|
+
i.value.showBrandInfo ? (t(), q(X, { key: 1 })) : m("", !0),
|
|
4394
|
+
b(ne, {
|
|
4388
4395
|
model: i.value.notifier
|
|
4389
4396
|
}, null, 8, ["model"])
|
|
4390
4397
|
], 6);
|
|
@@ -4398,15 +4405,15 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4398
4405
|
setup(r) {
|
|
4399
4406
|
const o = r;
|
|
4400
4407
|
return B(() => o.model), (n, s) => {
|
|
4401
|
-
const e =
|
|
4402
|
-
return
|
|
4408
|
+
const e = v("sv-action-bar");
|
|
4409
|
+
return L((t(), u("div", {
|
|
4403
4410
|
class: l(n.model.css),
|
|
4404
4411
|
style: $({ visibility: n.model.active ? "visible" : "hidden" }),
|
|
4405
4412
|
role: "alert",
|
|
4406
4413
|
"aria-live": "polite"
|
|
4407
4414
|
}, [
|
|
4408
4415
|
p("span", null, I(n.model.message), 1),
|
|
4409
|
-
|
|
4416
|
+
b(e, {
|
|
4410
4417
|
model: n.model.actionBar
|
|
4411
4418
|
}, null, 8, ["model"])
|
|
4412
4419
|
], 6)), [
|
|
@@ -4433,8 +4440,8 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4433
4440
|
value: o.question.otherValue,
|
|
4434
4441
|
maxlength: o.question.getOthersMaxLength(),
|
|
4435
4442
|
placeholder: o.question.otherPlaceholder,
|
|
4436
|
-
"aria-label": o.question.ariaLabel,
|
|
4437
|
-
"aria-required": o.question.ariaRequired,
|
|
4443
|
+
"aria-label": o.question.ariaLabel || o.question.a11y_input_ariaLabel,
|
|
4444
|
+
"aria-required": o.question.ariaRequired || o.question.a11y_input_ariaRequired,
|
|
4438
4445
|
style: $({ resize: o.question.resizeStyle }),
|
|
4439
4446
|
onChange: n[0] || (n[0] = (s) => {
|
|
4440
4447
|
o.question.onOtherValueChange(s);
|
|
@@ -4472,24 +4479,24 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4472
4479
|
closeOnCompleteTimeout: {}
|
|
4473
4480
|
},
|
|
4474
4481
|
setup(r) {
|
|
4475
|
-
const o = r, n = F(), s =
|
|
4482
|
+
const o = r, n = F(), s = R(() => o.survey ? o.survey.getCss() : {}), e = R(() => {
|
|
4476
4483
|
var g;
|
|
4477
4484
|
return (g = n.value) != null && g.isExpanded ? s.value.window.header.buttonCollapsed : s.value.window.header.buttonExpanded;
|
|
4478
|
-
}), i =
|
|
4485
|
+
}), i = R(() => {
|
|
4479
4486
|
var g;
|
|
4480
4487
|
return (g = n.value) == null ? void 0 : g.isExpanded;
|
|
4481
4488
|
}), a = () => {
|
|
4482
4489
|
n.value.changeExpandCollapse();
|
|
4483
4490
|
}, d = () => {
|
|
4484
4491
|
n.value.hide();
|
|
4485
|
-
}, c = () => "SurveyComponent",
|
|
4492
|
+
}, c = () => "SurveyComponent", y = () => {
|
|
4486
4493
|
n.value.onScroll();
|
|
4487
4494
|
};
|
|
4488
4495
|
B(() => n.value);
|
|
4489
|
-
const
|
|
4496
|
+
const h = Q(
|
|
4490
4497
|
() => o.survey,
|
|
4491
4498
|
(g) => {
|
|
4492
|
-
const k = new
|
|
4499
|
+
const k = new Pe(null, g);
|
|
4493
4500
|
o.isExpanded !== void 0 && (k.isExpanded = o.isExpanded), o.closeOnCompleteTimeout !== void 0 && (k.closeOnCompleteTimeout = o.closeOnCompleteTimeout), k.isShowing = !0, n.value = k;
|
|
4494
4501
|
},
|
|
4495
4502
|
{
|
|
@@ -4497,9 +4504,9 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4497
4504
|
}
|
|
4498
4505
|
);
|
|
4499
4506
|
return V(() => {
|
|
4500
|
-
|
|
4507
|
+
h();
|
|
4501
4508
|
}), (g, k) => {
|
|
4502
|
-
const P =
|
|
4509
|
+
const P = v("survey-string"), D = v("sv-svg-icon");
|
|
4503
4510
|
return n.value.isShowing ? (t(), u("div", {
|
|
4504
4511
|
key: 0,
|
|
4505
4512
|
style: $([{ position: "fixed", bottom: "3px", right: "10px" }, {
|
|
@@ -4519,7 +4526,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4519
4526
|
style: { "padding-right": "10px" },
|
|
4520
4527
|
class: l(n.value.cssHeaderTitle)
|
|
4521
4528
|
}, [
|
|
4522
|
-
|
|
4529
|
+
b(P, {
|
|
4523
4530
|
locString: g.survey.locTitle
|
|
4524
4531
|
}, null, 8, ["locString"])
|
|
4525
4532
|
], 2),
|
|
@@ -4534,7 +4541,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4534
4541
|
onClick: d,
|
|
4535
4542
|
style: { transform: "rotate(45deg)", float: "right", cursor: "pointer", "user-select": "none", width: "24px", height: "24px" }
|
|
4536
4543
|
}, [
|
|
4537
|
-
|
|
4544
|
+
b(D, {
|
|
4538
4545
|
iconName: "icon-expanddetail",
|
|
4539
4546
|
size: 16
|
|
4540
4547
|
})
|
|
@@ -4545,7 +4552,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4545
4552
|
onClick: a,
|
|
4546
4553
|
style: { float: "right", cursor: "pointer", "user-select": "none", width: "24px", height: "24px" }
|
|
4547
4554
|
}, [
|
|
4548
|
-
|
|
4555
|
+
b(D, {
|
|
4549
4556
|
iconName: "icon-collapsedetail",
|
|
4550
4557
|
size: 16
|
|
4551
4558
|
})
|
|
@@ -4554,25 +4561,25 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4554
4561
|
i.value ? (t(), u("div", {
|
|
4555
4562
|
key: 0,
|
|
4556
4563
|
class: l(n.value.cssBody),
|
|
4557
|
-
onScroll:
|
|
4564
|
+
onScroll: y
|
|
4558
4565
|
}, [
|
|
4559
|
-
(t(),
|
|
4566
|
+
(t(), q(N(c()), { survey: g.survey }, null, 8, ["survey"]))
|
|
4560
4567
|
], 34)) : m("", !0)
|
|
4561
4568
|
], 6)) : m("", !0);
|
|
4562
4569
|
};
|
|
4563
4570
|
}
|
|
4564
|
-
}), Yt = ["innerHTML"],
|
|
4571
|
+
}), Yt = ["innerHTML"], xt = /* @__PURE__ */ C({
|
|
4565
4572
|
__name: "CustomWidget",
|
|
4566
4573
|
props: {
|
|
4567
4574
|
question: {},
|
|
4568
4575
|
css: {}
|
|
4569
4576
|
},
|
|
4570
4577
|
setup(r) {
|
|
4571
|
-
const o = r, n = S(), s =
|
|
4578
|
+
const o = r, n = S(), s = R(
|
|
4572
4579
|
() => o.question.customWidget.isDefaultRender
|
|
4573
|
-
), e =
|
|
4580
|
+
), e = R(
|
|
4574
4581
|
() => !!o.question.customWidget.htmlTemplate
|
|
4575
|
-
), i =
|
|
4582
|
+
), i = R(() => o.question.customWidget.htmlTemplate), a = R(() => "survey-" + o.question.getTemplate());
|
|
4576
4583
|
return A(() => {
|
|
4577
4584
|
o.question.customWidget.afterRender(o.question, n.value);
|
|
4578
4585
|
}), U(() => {
|
|
@@ -4585,19 +4592,19 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4585
4592
|
key: 0,
|
|
4586
4593
|
innerHTML: i.value
|
|
4587
4594
|
}, null, 8, Yt)) : m("", !0),
|
|
4588
|
-
s.value ? (t(),
|
|
4595
|
+
s.value ? (t(), q(N(a.value), {
|
|
4589
4596
|
key: 1,
|
|
4590
4597
|
question: d.question,
|
|
4591
4598
|
css: d.css
|
|
4592
4599
|
}, null, 8, ["question", "css"])) : m("", !0)
|
|
4593
4600
|
], 512));
|
|
4594
4601
|
}
|
|
4595
|
-
}),
|
|
4602
|
+
}), ei = /* @__PURE__ */ C({
|
|
4596
4603
|
__name: "PopupModal",
|
|
4597
4604
|
setup(r) {
|
|
4598
4605
|
const o = F();
|
|
4599
|
-
function n(e, i, a, d, c,
|
|
4600
|
-
const g =
|
|
4606
|
+
function n(e, i, a, d, c, y, h = "popup") {
|
|
4607
|
+
const g = Me(
|
|
4601
4608
|
e,
|
|
4602
4609
|
i,
|
|
4603
4610
|
a,
|
|
@@ -4605,8 +4612,8 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4605
4612
|
void 0,
|
|
4606
4613
|
void 0,
|
|
4607
4614
|
c,
|
|
4608
|
-
|
|
4609
|
-
|
|
4615
|
+
y,
|
|
4616
|
+
h
|
|
4610
4617
|
);
|
|
4611
4618
|
return s(g);
|
|
4612
4619
|
}
|
|
@@ -4614,7 +4621,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4614
4621
|
e.onHide = () => {
|
|
4615
4622
|
o.value = void 0, a.dispose();
|
|
4616
4623
|
};
|
|
4617
|
-
const a =
|
|
4624
|
+
const a = Ne(
|
|
4618
4625
|
e,
|
|
4619
4626
|
i
|
|
4620
4627
|
);
|
|
@@ -4625,16 +4632,16 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4625
4632
|
})), O.showDialog || (O.showDialog = s, V(() => {
|
|
4626
4633
|
O.showDialog = void 0;
|
|
4627
4634
|
})), (e, i) => {
|
|
4628
|
-
const a =
|
|
4629
|
-
return o.value ? (t(),
|
|
4635
|
+
const a = v("sv-popup-container");
|
|
4636
|
+
return o.value ? (t(), q(ke, {
|
|
4630
4637
|
key: 0,
|
|
4631
4638
|
to: o.value.container
|
|
4632
4639
|
}, [
|
|
4633
|
-
|
|
4640
|
+
b(a, { model: o.value }, null, 8, ["model"])
|
|
4634
4641
|
], 8, ["to"])) : m("", !0);
|
|
4635
4642
|
};
|
|
4636
4643
|
}
|
|
4637
|
-
}),
|
|
4644
|
+
}), si = /* @__PURE__ */ C({
|
|
4638
4645
|
__name: "CharacterCounter",
|
|
4639
4646
|
props: {
|
|
4640
4647
|
counter: {},
|
|
@@ -4646,7 +4653,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4646
4653
|
class: l(n.remainingCharacterCounter)
|
|
4647
4654
|
}, I(n.counter.remainingCharacterCounter), 3));
|
|
4648
4655
|
}
|
|
4649
|
-
}),
|
|
4656
|
+
}), ni = /* @__PURE__ */ C({
|
|
4650
4657
|
__name: "Composite",
|
|
4651
4658
|
props: {
|
|
4652
4659
|
question: {},
|
|
@@ -4655,10 +4662,10 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4655
4662
|
setup(r) {
|
|
4656
4663
|
const o = r, n = S(null);
|
|
4657
4664
|
M(o, n);
|
|
4658
|
-
const s =
|
|
4665
|
+
const s = R(() => o.question.contentPanel);
|
|
4659
4666
|
return (e, i) => {
|
|
4660
|
-
const a =
|
|
4661
|
-
return t(),
|
|
4667
|
+
const a = v("survey-panel");
|
|
4668
|
+
return t(), q(a, {
|
|
4662
4669
|
ref_key: "root",
|
|
4663
4670
|
ref: n,
|
|
4664
4671
|
question: s.value,
|
|
@@ -4666,7 +4673,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4666
4673
|
}, null, 8, ["question", "css"]);
|
|
4667
4674
|
};
|
|
4668
4675
|
}
|
|
4669
|
-
}),
|
|
4676
|
+
}), oi = /* @__PURE__ */ C({
|
|
4670
4677
|
__name: "Custom",
|
|
4671
4678
|
props: {
|
|
4672
4679
|
question: {},
|
|
@@ -4675,23 +4682,23 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4675
4682
|
setup(r) {
|
|
4676
4683
|
const o = r, n = S(null);
|
|
4677
4684
|
M(o, n);
|
|
4678
|
-
const s =
|
|
4679
|
-
return (i, a) => (t(),
|
|
4685
|
+
const s = R(() => o.question.contentQuestion), e = (i) => ee(i);
|
|
4686
|
+
return (i, a) => (t(), q(N(e(s.value)), {
|
|
4680
4687
|
ref: n.value,
|
|
4681
4688
|
question: s.value,
|
|
4682
4689
|
css: i.css
|
|
4683
4690
|
}, null, 8, ["question", "css"]));
|
|
4684
4691
|
}
|
|
4685
|
-
}),
|
|
4686
|
-
|
|
4687
|
-
], ue = 440,
|
|
4692
|
+
}), ti = /* @__PURE__ */ p("use", { "xlink:href": "#icon-timercircle" }, null, -1), ii = [
|
|
4693
|
+
ti
|
|
4694
|
+
], ue = 440, li = /* @__PURE__ */ C({
|
|
4688
4695
|
__name: "TimerPanel",
|
|
4689
4696
|
props: {
|
|
4690
4697
|
model: {},
|
|
4691
4698
|
css: {}
|
|
4692
4699
|
},
|
|
4693
4700
|
setup(r) {
|
|
4694
|
-
const o = r, n =
|
|
4701
|
+
const o = r, n = R(() => ue * o.model.progress), s = R(() => o.model.text);
|
|
4695
4702
|
return B(() => o.model), (e, i) => e.model.isRunning && e.model.showTimerAsClock ? (t(), u("div", {
|
|
4696
4703
|
key: 0,
|
|
4697
4704
|
class: l(e.model.rootCss)
|
|
@@ -4700,7 +4707,7 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4700
4707
|
key: 0,
|
|
4701
4708
|
class: l(e.model.getProgressCss()),
|
|
4702
4709
|
style: $({ strokeDasharray: ue, strokeDashoffset: n.value })
|
|
4703
|
-
},
|
|
4710
|
+
}, ii, 6)) : m("", !0),
|
|
4704
4711
|
p("div", {
|
|
4705
4712
|
class: l(e.model.textContainerCss)
|
|
4706
4713
|
}, [
|
|
@@ -4712,33 +4719,44 @@ const nt = /* @__PURE__ */ Jo(Yo, [["render", st]]), ot = ["aria-label"], tt = /
|
|
|
4712
4719
|
class: l(e.model.minorTextCss)
|
|
4713
4720
|
}, I(e.model.clockMinorText), 3)) : m("", !0)
|
|
4714
4721
|
], 2)
|
|
4715
|
-
], 2)) :
|
|
4722
|
+
], 2)) : L((t(), u("div", {
|
|
4716
4723
|
key: 1,
|
|
4717
4724
|
class: l(e.model.survey.getCss().timerRoot)
|
|
4718
4725
|
}, I(s.value), 3)), [
|
|
4719
4726
|
[H, e.model.isRunning && !e.model.showTimerAsClock]
|
|
4720
4727
|
]);
|
|
4721
4728
|
}
|
|
4722
|
-
});
|
|
4723
|
-
function
|
|
4724
|
-
|
|
4729
|
+
}), ri = {}, ai = { class: "sd-loading-indicator" };
|
|
4730
|
+
function ui(r, o) {
|
|
4731
|
+
const n = v("sv-svg-icon");
|
|
4732
|
+
return t(), u("div", ai, [
|
|
4733
|
+
b(n, {
|
|
4734
|
+
iconName: "icon-loading",
|
|
4735
|
+
size: "'auto'"
|
|
4736
|
+
})
|
|
4737
|
+
]);
|
|
4738
|
+
}
|
|
4739
|
+
const di = /* @__PURE__ */ me(ri, [["render", ui]]);
|
|
4740
|
+
He.platform = "vue3";
|
|
4741
|
+
function mi(r) {
|
|
4742
|
+
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", _e), 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", ps), r.component("survey-checkbox-item", Cs), r.component("survey-radiogroup", fs), r.component("survey-radiogroup-item", Rs), r.component("survey-signaturepad", Ls), r.component("survey-html", Ps), r.component("survey-image", As), r.component("survey-expression", Es), r.component("survey-file", _s), r.component("survey-imagepicker", Qs), 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", _n), 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", To), 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", j), r.component("sv-progress-questions", j), r.component("sv-progress-correctquestions", j), r.component("sv-progress-requiredquestions", j), 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", jt), 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
4743
|
mounted: function(o, n) {
|
|
4726
4744
|
const s = { ...n.value };
|
|
4727
4745
|
s.disableTabStop || (o.tabIndex = 0), o.addEventListener("keyup", (e) => (e.preventDefault(), e.stopPropagation(), de(e, s), !1)), o.addEventListener("keydown", (e) => {
|
|
4728
|
-
|
|
4746
|
+
Ae(e, s);
|
|
4729
4747
|
}), o.addEventListener("blur", (e) => {
|
|
4730
|
-
|
|
4748
|
+
Ee(e);
|
|
4731
4749
|
});
|
|
4732
4750
|
}
|
|
4733
4751
|
});
|
|
4734
4752
|
}
|
|
4735
|
-
const
|
|
4753
|
+
const vi = {
|
|
4736
4754
|
install(r) {
|
|
4737
|
-
|
|
4755
|
+
mi(r);
|
|
4738
4756
|
}
|
|
4739
4757
|
};
|
|
4740
4758
|
export {
|
|
4741
|
-
|
|
4759
|
+
vi as surveyPlugin,
|
|
4742
4760
|
B as useBase,
|
|
4743
4761
|
W as useLocString,
|
|
4744
4762
|
M as useQuestion
|