survey-vue3-ui 1.9.110 → 1.9.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/survey-vue3-ui.es.js +1119 -1104
- package/survey-vue3-ui.umd.js +1 -1
- package/types/FilePreview.vue.d.ts +13 -13
- package/types/components/file/FileChooseButton.vue.d.ts +21 -0
- package/types/components/file/FilePreview.vue.d.ts +13 -0
- package/types/components/file-actions/FileChooseButton.vue.d.ts +21 -21
package/survey-vue3-ui.es.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { shallowReactive as ce, watch as
|
|
2
|
-
import { Base as fe, RendererFactory as
|
|
1
|
+
import { shallowReactive as ce, watch as G, onBeforeUnmount as K, onMounted as E, ref as T, shallowRef as W, triggerRef as oe, unref as k, isRef as pe, defineComponent as g, computed as R, onUpdated as X, resolveComponent as q, openBlock as t, createElementBlock as u, normalizeClass as r, createVNode as C, createCommentVNode as m, Fragment as w, renderList as B, createBlock as y, createElementVNode as c, normalizeStyle as S, onUnmounted as V, withDirectives as P, resolveDynamicComponent as N, vShow as A, toDisplayString as I, vModelCheckbox as U, vModelRadio as Y, vModelSelect as ve, vModelText as qe, getCurrentInstance as x, withCtx as ye, createStaticVNode as ge, resolveDirective as ee, normalizeProps as he, guardReactiveProps as Ce, toRaw as be, Teleport as ke } from "vue";
|
|
2
|
+
import { Base as fe, RendererFactory as J, 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 F, createDialogOptions as Me, createPopupModalViewModel as Ne, SurveyModel as He, doKey2ClickDown as Ae, doKey2ClickBlur as Ee } from "survey-core";
|
|
3
3
|
fe.createPropertiesHash = () => ce({});
|
|
4
4
|
function _e(l) {
|
|
5
5
|
return !l || l.__vueImplemented ? !1 : (l.createArrayCoreHandler = (n, o) => {
|
|
6
|
-
const e = [], s =
|
|
6
|
+
const e = [], s = W(e);
|
|
7
7
|
return e.onArrayChanged = () => {
|
|
8
8
|
oe(s);
|
|
9
|
-
}, n[o] = s,
|
|
9
|
+
}, n[o] = s, k(n[o]);
|
|
10
10
|
}, l.iteratePropertiesHash((n, o) => {
|
|
11
11
|
if (Array.isArray(n[o])) {
|
|
12
|
-
const e =
|
|
12
|
+
const e = W(n[o]);
|
|
13
13
|
n[o].onArrayChanged = () => {
|
|
14
14
|
oe(e);
|
|
15
15
|
}, n[o] = e;
|
|
16
16
|
}
|
|
17
|
-
}), l.getPropertyValueCoreHandler = (n, o) =>
|
|
17
|
+
}), l.getPropertyValueCoreHandler = (n, o) => k(n[o]), l.setPropertyValueCoreHandler = (n, o, e) => {
|
|
18
18
|
pe(n[o]) ? n[o].value = e : n[o] = e;
|
|
19
19
|
}, l.__vueImplemented = !0, !0);
|
|
20
20
|
}
|
|
21
21
|
function le(l, n) {
|
|
22
22
|
!l || !n || (l.iteratePropertiesHash((o, e) => {
|
|
23
|
-
o[e] =
|
|
23
|
+
o[e] = k(o[e]), Array.isArray(o[e]) && (o[e].onArrayChanged = void 0);
|
|
24
24
|
}), delete l.__vueImplemented, l.createArrayCoreHandler = void 0, l.getPropertyValueCoreHandler = void 0, l.setPropertyValueCoreHandler = void 0);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function L(l, n, o) {
|
|
27
27
|
let e = !1;
|
|
28
|
-
const s =
|
|
28
|
+
const s = G(
|
|
29
29
|
l,
|
|
30
30
|
(i, a) => {
|
|
31
31
|
n && n(i), a && (le(a, e), o && o(a)), e = _e(i);
|
|
@@ -34,24 +34,24 @@ function B(l, n, o) {
|
|
|
34
34
|
immediate: !0
|
|
35
35
|
}
|
|
36
36
|
);
|
|
37
|
-
|
|
37
|
+
K(() => {
|
|
38
38
|
const i = l();
|
|
39
39
|
i && (o && o(l()), le(i, e), s());
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
function
|
|
43
|
-
|
|
42
|
+
function H(l, n, o, e) {
|
|
43
|
+
L(() => l.question, o, e), E(() => {
|
|
44
44
|
l.question && l.question.afterRenderQuestionElement(n.value);
|
|
45
|
-
}),
|
|
45
|
+
}), K(() => {
|
|
46
46
|
l.question.beforeDestroyQuestionElement(n.value);
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
const n =
|
|
49
|
+
function z(l) {
|
|
50
|
+
const n = T(), o = (s) => {
|
|
51
51
|
n.value = s.renderedHtml, s.onChanged = () => {
|
|
52
52
|
n.value = s.renderedHtml;
|
|
53
53
|
};
|
|
54
|
-
}, e =
|
|
54
|
+
}, e = G(
|
|
55
55
|
l,
|
|
56
56
|
(s, i) => {
|
|
57
57
|
i && (i.onChanged = () => {
|
|
@@ -59,14 +59,14 @@ function F(l) {
|
|
|
59
59
|
},
|
|
60
60
|
{ immediate: !0 }
|
|
61
61
|
);
|
|
62
|
-
return
|
|
62
|
+
return K(() => {
|
|
63
63
|
e();
|
|
64
64
|
}), n;
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function se(l) {
|
|
67
67
|
return l.customWidget ? "survey-customwidget" : l.isDefaultRendering && l.isDefaultRendering() || l.isPanel ? "survey-" + l.getTemplate() : l.getComponentName();
|
|
68
68
|
}
|
|
69
|
-
const Ve = /* @__PURE__ */
|
|
69
|
+
const Ve = /* @__PURE__ */ g({
|
|
70
70
|
__name: "Page",
|
|
71
71
|
props: {
|
|
72
72
|
survey: {},
|
|
@@ -74,15 +74,15 @@ const Ve = /* @__PURE__ */ h({
|
|
|
74
74
|
css: {}
|
|
75
75
|
},
|
|
76
76
|
setup(l) {
|
|
77
|
-
const n = l, o =
|
|
78
|
-
|
|
79
|
-
const e =
|
|
80
|
-
return
|
|
77
|
+
const n = l, o = T(null);
|
|
78
|
+
L(() => n.page);
|
|
79
|
+
const e = R(() => n.page._showDescription), s = R(() => n.page.rows);
|
|
80
|
+
return E(() => {
|
|
81
81
|
n.survey && n.survey.afterRenderPage(o.value);
|
|
82
|
-
}),
|
|
82
|
+
}), X(() => {
|
|
83
83
|
n.survey.afterRenderPage(o.value);
|
|
84
84
|
}), (i, a) => {
|
|
85
|
-
const d =
|
|
85
|
+
const d = q("survey-element-title"), v = q("survey-string"), p = q("survey-row");
|
|
86
86
|
return t(), u("div", {
|
|
87
87
|
class: r(i.page.cssRoot),
|
|
88
88
|
ref_key: "root",
|
|
@@ -96,14 +96,14 @@ const Ve = /* @__PURE__ */ h({
|
|
|
96
96
|
key: 0,
|
|
97
97
|
class: r(i.page.cssClasses.page.description)
|
|
98
98
|
}, [
|
|
99
|
-
C(
|
|
99
|
+
C(v, {
|
|
100
100
|
locString: i.page.locDescription
|
|
101
101
|
}, null, 8, ["locString"])
|
|
102
102
|
], 2)) : m("", !0),
|
|
103
|
-
(t(!0), u(w, null,
|
|
104
|
-
|
|
105
|
-
key: i.page.id + "_" +
|
|
106
|
-
row:
|
|
103
|
+
(t(!0), u(w, null, B(s.value, (b, f) => (t(), u(w, null, [
|
|
104
|
+
b.visible ? (t(), y(p, {
|
|
105
|
+
key: i.page.id + "_" + f,
|
|
106
|
+
row: b,
|
|
107
107
|
survey: i.survey,
|
|
108
108
|
css: i.css
|
|
109
109
|
}, null, 8, ["row", "survey", "css"])) : m("", !0)
|
|
@@ -111,18 +111,18 @@ const Ve = /* @__PURE__ */ h({
|
|
|
111
111
|
], 2);
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
|
-
}), Oe = ["src", "width", "height", "alt"], Fe = ["src", "width", "height", "alt"], We = /* @__PURE__ */
|
|
114
|
+
}), Oe = ["src", "width", "height", "alt"], Fe = ["src", "width", "height", "alt"], We = /* @__PURE__ */ g({
|
|
115
115
|
__name: "Header",
|
|
116
116
|
props: {
|
|
117
117
|
survey: {}
|
|
118
118
|
},
|
|
119
119
|
setup(l) {
|
|
120
|
-
const n = l, o =
|
|
121
|
-
return
|
|
120
|
+
const n = l, o = T(), e = z(() => n.survey.locLogo);
|
|
121
|
+
return E(() => {
|
|
122
122
|
var s = o.value;
|
|
123
123
|
s && n.survey && n.survey.afterRenderHeader(s);
|
|
124
124
|
}), (s, i) => {
|
|
125
|
-
const a =
|
|
125
|
+
const a = q("survey-element-title"), d = q("survey-string");
|
|
126
126
|
return s.survey.renderedHasHeader ? (t(), u("div", {
|
|
127
127
|
key: 0,
|
|
128
128
|
class: r(s.survey.css.header),
|
|
@@ -135,7 +135,7 @@ const Ve = /* @__PURE__ */ h({
|
|
|
135
135
|
}, [
|
|
136
136
|
c("img", {
|
|
137
137
|
class: r(s.survey.css.logoImage),
|
|
138
|
-
src:
|
|
138
|
+
src: k(e),
|
|
139
139
|
width: s.survey.renderedLogoWidth,
|
|
140
140
|
height: s.survey.renderedLogoHeight,
|
|
141
141
|
alt: s.survey.locTitle.renderedHtml,
|
|
@@ -170,7 +170,7 @@ const Ve = /* @__PURE__ */ h({
|
|
|
170
170
|
}, [
|
|
171
171
|
c("img", {
|
|
172
172
|
class: r(s.survey.css.logoImage),
|
|
173
|
-
src:
|
|
173
|
+
src: k(e),
|
|
174
174
|
width: s.survey.renderedLogoWidth,
|
|
175
175
|
height: s.survey.renderedLogoHeight,
|
|
176
176
|
alt: s.survey.locTitle.renderedHtml,
|
|
@@ -187,7 +187,7 @@ const Ve = /* @__PURE__ */ h({
|
|
|
187
187
|
], 2)) : m("", !0);
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
|
-
}), ze = /* @__PURE__ */
|
|
190
|
+
}), ze = /* @__PURE__ */ g({
|
|
191
191
|
__name: "Row",
|
|
192
192
|
props: {
|
|
193
193
|
row: {},
|
|
@@ -195,47 +195,47 @@ const Ve = /* @__PURE__ */ h({
|
|
|
195
195
|
survey: {}
|
|
196
196
|
},
|
|
197
197
|
setup(l) {
|
|
198
|
-
const n = l, o =
|
|
198
|
+
const n = l, o = R(
|
|
199
199
|
() => n.row.visibleElements
|
|
200
|
-
), e =
|
|
201
|
-
return
|
|
200
|
+
), e = T();
|
|
201
|
+
return L(() => n.row), E(() => {
|
|
202
202
|
if (n.row && !n.row.isNeedRender) {
|
|
203
203
|
const s = e.value;
|
|
204
204
|
setTimeout(() => {
|
|
205
205
|
n.row.startLazyRendering(s);
|
|
206
206
|
}, 10);
|
|
207
207
|
}
|
|
208
|
-
}),
|
|
208
|
+
}), V(() => {
|
|
209
209
|
const s = n.row;
|
|
210
210
|
s && (s.isNeedRender = !n.row.isLazyRendering());
|
|
211
211
|
}), (s, i) => {
|
|
212
|
-
const a =
|
|
212
|
+
const a = q("survey-element"), d = q("survey-panel");
|
|
213
213
|
return t(), u("div", {
|
|
214
214
|
class: r(s.row.getRowCss()),
|
|
215
215
|
ref_key: "root",
|
|
216
216
|
ref: e
|
|
217
217
|
}, [
|
|
218
|
-
(t(!0), u(w, null,
|
|
219
|
-
style: S(
|
|
218
|
+
(t(!0), u(w, null, B(o.value, (v) => (t(), u("div", {
|
|
219
|
+
style: S(v.rootStyle)
|
|
220
220
|
}, [
|
|
221
|
-
|
|
222
|
-
key:
|
|
223
|
-
element:
|
|
221
|
+
v.isPanel ? m("", !0) : (t(), y(a, {
|
|
222
|
+
key: v.id,
|
|
223
|
+
element: v,
|
|
224
224
|
survey: s.survey,
|
|
225
225
|
css: s.css,
|
|
226
226
|
row: s.row,
|
|
227
|
-
style: S(
|
|
227
|
+
style: S(v.getRootStyle())
|
|
228
228
|
}, null, 8, ["element", "survey", "css", "row", "style"])),
|
|
229
|
-
|
|
230
|
-
key:
|
|
231
|
-
question:
|
|
229
|
+
v.isPanel ? (t(), y(d, {
|
|
230
|
+
key: v.id,
|
|
231
|
+
question: v,
|
|
232
232
|
css: s.css
|
|
233
233
|
}, null, 8, ["question", "css"])) : m("", !0)
|
|
234
234
|
], 4))), 256))
|
|
235
235
|
], 2);
|
|
236
236
|
};
|
|
237
237
|
}
|
|
238
|
-
}), Ue = ["id", "role", "aria-required", "aria-invalid", "aria-labelledby", "data-name"], Ke = /* @__PURE__ */
|
|
238
|
+
}), Ue = ["id", "role", "aria-required", "aria-invalid", "aria-labelledby", "data-name"], Ke = /* @__PURE__ */ g({
|
|
239
239
|
__name: "Element",
|
|
240
240
|
props: {
|
|
241
241
|
survey: {},
|
|
@@ -244,17 +244,17 @@ const Ve = /* @__PURE__ */ h({
|
|
|
244
244
|
css: {}
|
|
245
245
|
},
|
|
246
246
|
setup(l) {
|
|
247
|
-
const n = l, o =
|
|
248
|
-
return
|
|
247
|
+
const n = l, o = T(null), e = R(() => !n.element.isPanel && n.element.showErrorOnTop), s = R(() => !n.element.isPanel && n.element.showErrorOnBottom), i = (d) => d.customWidget ? "survey-customwidget" : d.getType() === "panel" || d.isDefaultRendering() ? "survey-" + d.getTemplate() : d.getComponentName(), a = (d) => d.cssContent;
|
|
248
|
+
return L(() => n.element), E(() => {
|
|
249
249
|
n.element.isPanel || n.element.afterRender(o.value);
|
|
250
|
-
}), (d,
|
|
251
|
-
const
|
|
250
|
+
}), (d, v) => {
|
|
251
|
+
const p = q("survey-errors"), b = q("survey-element-header"), f = q("survey-string"), $ = q("survey-question-comment");
|
|
252
252
|
return d.row.isNeedRender ? (t(), u("div", {
|
|
253
253
|
key: 0,
|
|
254
254
|
class: r(d.element.isPanel ? null : d.element.getRootCss()),
|
|
255
255
|
ref_key: "root",
|
|
256
256
|
ref: o,
|
|
257
|
-
onFocusin:
|
|
257
|
+
onFocusin: v[0] || (v[0] = (M) => d.element.focusIn()),
|
|
258
258
|
id: d.element.id,
|
|
259
259
|
role: d.element.ariaRole,
|
|
260
260
|
"aria-required": d.element.ariaRequired,
|
|
@@ -262,26 +262,26 @@ const Ve = /* @__PURE__ */ h({
|
|
|
262
262
|
"aria-labelledby": d.element.ariaLabelledBy,
|
|
263
263
|
"data-name": d.element.name
|
|
264
264
|
}, [
|
|
265
|
-
!d.element.isPanel && d.element.showErrorsAboveQuestion ? (t(),
|
|
265
|
+
!d.element.isPanel && d.element.showErrorsAboveQuestion ? (t(), y(p, {
|
|
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(), y(b, {
|
|
271
271
|
key: 1,
|
|
272
272
|
element: d.element,
|
|
273
273
|
css: d.css
|
|
274
274
|
}, null, 8, ["element", "css"])) : m("", !0),
|
|
275
|
-
|
|
275
|
+
P(c("div", {
|
|
276
276
|
class: r(a(d.element) || void 0),
|
|
277
277
|
role: "presentation"
|
|
278
278
|
}, [
|
|
279
|
-
e.value ? (t(),
|
|
279
|
+
e.value ? (t(), y(p, {
|
|
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(), y(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 Ve = /* @__PURE__ */ h({
|
|
|
290
290
|
class: r(d.element.getCommentAreaCss())
|
|
291
291
|
}, [
|
|
292
292
|
c("div", null, [
|
|
293
|
-
C(
|
|
293
|
+
C(f, {
|
|
294
294
|
locString: d.element.locCommentText
|
|
295
295
|
}, null, 8, ["locString"])
|
|
296
296
|
]),
|
|
297
|
-
C(
|
|
297
|
+
C($, {
|
|
298
298
|
commentClass: d.css.comment,
|
|
299
299
|
question: d.element
|
|
300
300
|
}, null, 8, ["commentClass", "question"])
|
|
301
301
|
], 2)) : m("", !0),
|
|
302
|
-
s.value ? (t(),
|
|
302
|
+
s.value ? (t(), y(p, {
|
|
303
303
|
key: 3,
|
|
304
304
|
element: d.element,
|
|
305
305
|
location: "bottom"
|
|
@@ -308,31 +308,31 @@ const Ve = /* @__PURE__ */ h({
|
|
|
308
308
|
key: 4,
|
|
309
309
|
class: r(d.element.cssClasses.descriptionUnderInput)
|
|
310
310
|
}, [
|
|
311
|
-
C(
|
|
311
|
+
C(f, {
|
|
312
312
|
locString: d.element.locDescription
|
|
313
313
|
}, null, 8, ["locString"])
|
|
314
314
|
], 2)) : m("", !0)
|
|
315
315
|
], 2), [
|
|
316
|
-
[
|
|
316
|
+
[A, d.element.isPanel || !d.element.isCollapsed]
|
|
317
317
|
]),
|
|
318
|
-
!d.element.isPanel && d.element.hasTitleOnBottom ? (t(),
|
|
318
|
+
!d.element.isPanel && d.element.hasTitleOnBottom ? (t(), y(b, {
|
|
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(),
|
|
323
|
+
!d.element.isPanel && d.element.showErrorsBelowQuestion ? (t(), y(p, {
|
|
324
324
|
key: 3,
|
|
325
325
|
element: d.element,
|
|
326
326
|
location: "bottom"
|
|
327
327
|
}, null, 8, ["element"])) : m("", !0)
|
|
328
|
-
], 42, Ue)) : d.element.skeletonComponentName ? (t(),
|
|
328
|
+
], 42, Ue)) : d.element.skeletonComponentName ? (t(), y(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
|
-
}), je = ["id"], Qe = ["id"], Ze = /* @__PURE__ */
|
|
335
|
+
}), je = ["id"], Qe = ["id"], Ze = /* @__PURE__ */ g({
|
|
336
336
|
__name: "Panel",
|
|
337
337
|
props: {
|
|
338
338
|
question: {},
|
|
@@ -340,18 +340,18 @@ const Ve = /* @__PURE__ */ h({
|
|
|
340
340
|
css: {}
|
|
341
341
|
},
|
|
342
342
|
setup(l) {
|
|
343
|
-
const n = l, o =
|
|
344
|
-
return
|
|
343
|
+
const n = l, o = T(!1), e = T(null), s = R(() => n.question.rows), i = R(() => n.question.survey), a = R(() => o.value);
|
|
344
|
+
return L(() => n.question), E(() => {
|
|
345
345
|
n.question.survey && n.question.survey.afterRenderPanel(n.question, e.value), o.value = n.question.isCollapsed;
|
|
346
346
|
const d = n.question;
|
|
347
347
|
d.stateChangedCallback = () => {
|
|
348
348
|
o.value = n.question.isCollapsed;
|
|
349
349
|
};
|
|
350
|
-
}),
|
|
350
|
+
}), V(() => {
|
|
351
351
|
const d = n.question;
|
|
352
352
|
d.stateChangedCallback = null;
|
|
353
|
-
}), (d,
|
|
354
|
-
const
|
|
353
|
+
}), (d, v) => {
|
|
354
|
+
const p = q("survey-errors"), b = q("survey-element-header"), f = q("survey-row"), $ = q("sv-action-bar");
|
|
355
355
|
return d.question.isVisible ? (t(), u("div", {
|
|
356
356
|
key: 0,
|
|
357
357
|
class: r(d.question.getContainerCss()),
|
|
@@ -359,16 +359,16 @@ const Ve = /* @__PURE__ */ h({
|
|
|
359
359
|
ref_key: "root",
|
|
360
360
|
ref: e
|
|
361
361
|
}, [
|
|
362
|
-
d.question.showErrorsAbovePanel ? (t(),
|
|
362
|
+
d.question.showErrorsAbovePanel ? (t(), y(p, {
|
|
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(), y(b, {
|
|
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(),
|
|
371
|
+
d.question.showErrorsAbovePanel ? m("", !0) : (t(), y(p, {
|
|
372
372
|
key: 2,
|
|
373
373
|
element: d.question
|
|
374
374
|
}, null, 8, ["element"])),
|
|
@@ -378,22 +378,22 @@ const Ve = /* @__PURE__ */ h({
|
|
|
378
378
|
style: S({ paddingLeft: d.question.innerPaddingLeft }),
|
|
379
379
|
class: r(d.question.cssClasses.panel.content)
|
|
380
380
|
}, [
|
|
381
|
-
(t(!0), u(w, null,
|
|
382
|
-
|
|
383
|
-
key: d.question.id + "_" +
|
|
384
|
-
row:
|
|
381
|
+
(t(!0), u(w, null, B(s.value, (M, h) => (t(), u(w, null, [
|
|
382
|
+
M.visible ? (t(), y(f, {
|
|
383
|
+
key: d.question.id + "_" + h,
|
|
384
|
+
row: M,
|
|
385
385
|
survey: i.value,
|
|
386
386
|
css: d.css
|
|
387
387
|
}, null, 8, ["row", "survey", "css"])) : m("", !0)
|
|
388
388
|
], 64))), 256)),
|
|
389
|
-
C(
|
|
389
|
+
C($, {
|
|
390
390
|
model: d.question.getFooterToolbar()
|
|
391
391
|
}, null, 8, ["model"])
|
|
392
392
|
], 14, Qe))
|
|
393
393
|
], 10, je)) : m("", !0);
|
|
394
394
|
};
|
|
395
395
|
}
|
|
396
|
-
}), Ge = /* @__PURE__ */
|
|
396
|
+
}), Ge = /* @__PURE__ */ g({
|
|
397
397
|
__name: "ElementHeader",
|
|
398
398
|
props: {
|
|
399
399
|
element: {},
|
|
@@ -404,7 +404,7 @@ const Ve = /* @__PURE__ */ h({
|
|
|
404
404
|
typeof n.element.clickTitleFunction == "function" && n.element.clickTitleFunction(e);
|
|
405
405
|
};
|
|
406
406
|
return (e, s) => {
|
|
407
|
-
const i =
|
|
407
|
+
const i = q("survey-element-title"), a = q("survey-string"), d = q("sv-action-bar");
|
|
408
408
|
return t(), u("div", {
|
|
409
409
|
class: r(e.element.cssHeader),
|
|
410
410
|
onClick: o
|
|
@@ -413,7 +413,7 @@ const Ve = /* @__PURE__ */ h({
|
|
|
413
413
|
element: e.element,
|
|
414
414
|
css: e.css
|
|
415
415
|
}, null, 8, ["element", "css"]),
|
|
416
|
-
e.element.hasDescriptionUnderTitle ?
|
|
416
|
+
e.element.hasDescriptionUnderTitle ? P((t(), u("div", {
|
|
417
417
|
key: 0,
|
|
418
418
|
class: r(e.element.cssDescription)
|
|
419
419
|
}, [
|
|
@@ -421,42 +421,42 @@ const Ve = /* @__PURE__ */ h({
|
|
|
421
421
|
locString: e.element.locDescription
|
|
422
422
|
}, null, 8, ["locString"])
|
|
423
423
|
], 2)), [
|
|
424
|
-
[
|
|
424
|
+
[A, e.element.hasDescription]
|
|
425
425
|
]) : m("", !0),
|
|
426
|
-
e.element.additionalTitleToolbar ? (t(),
|
|
426
|
+
e.element.additionalTitleToolbar ? (t(), y(d, {
|
|
427
427
|
key: 1,
|
|
428
428
|
model: e.element.additionalTitleToolbar
|
|
429
429
|
}, null, 8, ["model"])) : m("", !0)
|
|
430
430
|
], 2);
|
|
431
431
|
};
|
|
432
432
|
}
|
|
433
|
-
}), Xe = /* @__PURE__ */
|
|
433
|
+
}), Xe = /* @__PURE__ */ g({
|
|
434
434
|
__name: "String",
|
|
435
435
|
props: {
|
|
436
436
|
locString: {}
|
|
437
437
|
},
|
|
438
438
|
setup(l) {
|
|
439
|
-
return (n, o) => (t(),
|
|
439
|
+
return (n, o) => (t(), y(N(n.locString.renderAs), {
|
|
440
440
|
locString: n.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
|
-
}, xe = /* @__PURE__ */
|
|
446
|
+
}, xe = /* @__PURE__ */ g({
|
|
447
447
|
__name: "StringViewer",
|
|
448
448
|
props: {
|
|
449
449
|
locString: {}
|
|
450
450
|
},
|
|
451
451
|
setup(l) {
|
|
452
|
-
const n = l, o =
|
|
452
|
+
const n = l, o = z(() => n.locString);
|
|
453
453
|
return (e, s) => e.locString.hasHtml ? (t(), u("span", {
|
|
454
454
|
key: 0,
|
|
455
455
|
class: "sv-string-viewer",
|
|
456
|
-
innerHTML:
|
|
457
|
-
}, null, 8, Je)) : (t(), u("span", Ye, I(
|
|
456
|
+
innerHTML: k(o)
|
|
457
|
+
}, null, 8, Je)) : (t(), u("span", Ye, I(k(o)), 1));
|
|
458
458
|
}
|
|
459
|
-
}), es = ["innerHTML"], ss = /* @__PURE__ */
|
|
459
|
+
}), es = ["innerHTML"], ss = /* @__PURE__ */ g({
|
|
460
460
|
__name: "StringEditor",
|
|
461
461
|
props: {
|
|
462
462
|
locString: {}
|
|
@@ -483,27 +483,27 @@ const Ve = /* @__PURE__ */ h({
|
|
|
483
483
|
onClick: e
|
|
484
484
|
}, I(s.locString.renderedHtml), 33));
|
|
485
485
|
}
|
|
486
|
-
}), ns = ["id"], os = /* @__PURE__ */
|
|
486
|
+
}), ns = ["id"], os = /* @__PURE__ */ g({
|
|
487
487
|
__name: "Skeleton",
|
|
488
488
|
props: {
|
|
489
489
|
element: {}
|
|
490
490
|
},
|
|
491
491
|
setup(l) {
|
|
492
492
|
const n = l;
|
|
493
|
-
return
|
|
493
|
+
return L(() => n.element), (o, e) => (t(), u("div", {
|
|
494
494
|
class: "sv-skeleton-element",
|
|
495
495
|
id: o.element.id
|
|
496
496
|
}, null, 8, ns));
|
|
497
497
|
}
|
|
498
|
-
}), ts = ["id"], is = ["value"], ls = /* @__PURE__ */
|
|
498
|
+
}), ts = ["id"], is = ["value"], ls = /* @__PURE__ */ g({
|
|
499
499
|
__name: "Text",
|
|
500
500
|
props: {
|
|
501
501
|
question: {}
|
|
502
502
|
},
|
|
503
503
|
setup(l) {
|
|
504
|
-
const n = l, o =
|
|
505
|
-
return
|
|
506
|
-
const i =
|
|
504
|
+
const n = l, o = T(null);
|
|
505
|
+
return H(n, o), (e, s) => {
|
|
506
|
+
const i = q("survey-text-input");
|
|
507
507
|
return e.question.isReadOnlyRenderDiv() ? (t(), u("div", {
|
|
508
508
|
key: 0,
|
|
509
509
|
ref_key: "root",
|
|
@@ -517,9 +517,9 @@ const Ve = /* @__PURE__ */ h({
|
|
|
517
517
|
c("datalist", {
|
|
518
518
|
id: e.question.dataListId
|
|
519
519
|
}, [
|
|
520
|
-
(t(!0), u(w, null,
|
|
520
|
+
(t(!0), u(w, null, B(e.question.dataList, (a) => (t(), u("option", { value: a }, null, 8, is))), 256))
|
|
521
521
|
], 8, ts)
|
|
522
|
-
], 512)) : (t(),
|
|
522
|
+
], 512)) : (t(), y(i, {
|
|
523
523
|
key: 2,
|
|
524
524
|
question: e.question,
|
|
525
525
|
ref_key: "root",
|
|
@@ -527,17 +527,17 @@ const Ve = /* @__PURE__ */ h({
|
|
|
527
527
|
}, null, 8, ["question"]));
|
|
528
528
|
};
|
|
529
529
|
}
|
|
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__ */
|
|
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__ */ g({
|
|
531
531
|
__name: "TextInput",
|
|
532
532
|
props: {
|
|
533
533
|
question: {}
|
|
534
534
|
},
|
|
535
535
|
setup(l) {
|
|
536
536
|
const n = l;
|
|
537
|
-
|
|
538
|
-
const o =
|
|
537
|
+
L(() => n.question);
|
|
538
|
+
const o = R(() => n.question.inputStyle);
|
|
539
539
|
return (e, s) => {
|
|
540
|
-
const i =
|
|
540
|
+
const i = q("sv-character-counter");
|
|
541
541
|
return e.question.getMaxLength() ? (t(), u("div", as, [
|
|
542
542
|
c("input", {
|
|
543
543
|
disabled: e.question.isInputReadOnly,
|
|
@@ -602,15 +602,15 @@ const Ve = /* @__PURE__ */ h({
|
|
|
602
602
|
}), ms = ["role", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], cs = /* @__PURE__ */ c("legend", {
|
|
603
603
|
role: "presentation",
|
|
604
604
|
class: "sv-hidden"
|
|
605
|
-
}, null, -1), ps = /* @__PURE__ */
|
|
605
|
+
}, null, -1), ps = /* @__PURE__ */ g({
|
|
606
606
|
__name: "Checkbox",
|
|
607
607
|
props: {
|
|
608
608
|
question: {}
|
|
609
609
|
},
|
|
610
610
|
setup(l) {
|
|
611
|
-
const n = l, o =
|
|
612
|
-
return
|
|
613
|
-
const i =
|
|
611
|
+
const n = l, o = T(null);
|
|
612
|
+
return H(n, o), (e, s) => {
|
|
613
|
+
const i = q("survey-checkbox-item"), a = q("survey-other-choice");
|
|
614
614
|
return t(), u("fieldset", {
|
|
615
615
|
class: r(e.question.getSelectBaseRootCss()),
|
|
616
616
|
role: e.question.a11y_input_ariaRole,
|
|
@@ -621,65 +621,65 @@ const Ve = /* @__PURE__ */ h({
|
|
|
621
621
|
"aria-describedby": e.question.a11y_input_ariaDescribedBy
|
|
622
622
|
}, [
|
|
623
623
|
cs,
|
|
624
|
-
e.question.hasHeadItems ? (t(!0), u(w, { key: 0 },
|
|
624
|
+
e.question.hasHeadItems ? (t(!0), u(w, { key: 0 }, B(e.question.headItems, (d, v) => (t(), y(i, {
|
|
625
625
|
key: d.value,
|
|
626
626
|
class: r(e.question.getItemClass(d)),
|
|
627
627
|
question: e.question,
|
|
628
628
|
item: d,
|
|
629
|
-
index: "" +
|
|
629
|
+
index: "" + v
|
|
630
630
|
}, null, 8, ["class", "question", "item", "index"]))), 128)) : m("", !0),
|
|
631
|
-
!e.question.hasColumns && !e.question.blockedRow ? (t(!0), u(w, { key: 1 },
|
|
631
|
+
!e.question.hasColumns && !e.question.blockedRow ? (t(!0), u(w, { key: 1 }, B(e.question.bodyItems, (d, v) => (t(), y(i, {
|
|
632
632
|
key: d.value,
|
|
633
633
|
class: r(e.question.getItemClass(d)),
|
|
634
634
|
question: e.question,
|
|
635
635
|
item: d,
|
|
636
|
-
index:
|
|
636
|
+
index: v
|
|
637
637
|
}, null, 8, ["class", "question", "item", "index"]))), 128)) : m("", !0),
|
|
638
638
|
e.question.blockedRow ? (t(), u("div", {
|
|
639
639
|
key: 2,
|
|
640
640
|
class: r(e.question.cssClasses.rootRow)
|
|
641
641
|
}, [
|
|
642
|
-
!e.question.hasColumns && e.question.blockedRow ? (t(!0), u(w, { key: 0 },
|
|
642
|
+
!e.question.hasColumns && e.question.blockedRow ? (t(!0), u(w, { key: 0 }, B(e.question.dataChoices, (d, v) => (t(), y(i, {
|
|
643
643
|
key: d.value,
|
|
644
644
|
class: r(e.question.getItemClass(d)),
|
|
645
645
|
question: e.question,
|
|
646
646
|
item: d,
|
|
647
|
-
index:
|
|
647
|
+
index: v
|
|
648
648
|
}, null, 8, ["class", "question", "item", "index"]))), 128)) : m("", !0)
|
|
649
649
|
], 2)) : m("", !0),
|
|
650
650
|
e.question.hasColumns ? (t(), u("div", {
|
|
651
651
|
key: 3,
|
|
652
652
|
class: r(e.question.cssClasses.rootMultiColumn)
|
|
653
653
|
}, [
|
|
654
|
-
(t(!0), u(w, null,
|
|
655
|
-
key:
|
|
654
|
+
(t(!0), u(w, null, B(e.question.columns, (d, v) => (t(), u("div", {
|
|
655
|
+
key: v,
|
|
656
656
|
class: r(e.question.getColumnClass()),
|
|
657
657
|
role: "presentation"
|
|
658
658
|
}, [
|
|
659
|
-
(t(!0), u(w, null,
|
|
660
|
-
key:
|
|
661
|
-
class: r(e.question.getItemClass(
|
|
659
|
+
(t(!0), u(w, null, B(d, (p, b) => (t(), y(i, {
|
|
660
|
+
key: p.value,
|
|
661
|
+
class: r(e.question.getItemClass(p)),
|
|
662
662
|
question: e.question,
|
|
663
|
-
item:
|
|
664
|
-
index: "" +
|
|
663
|
+
item: p,
|
|
664
|
+
index: "" + v + b
|
|
665
665
|
}, null, 8, ["class", "question", "item", "index"]))), 128))
|
|
666
666
|
], 2))), 128))
|
|
667
667
|
], 2)) : m("", !0),
|
|
668
|
-
e.question.hasFootItems ? (t(!0), u(w, { key: 4 },
|
|
668
|
+
e.question.hasFootItems ? (t(!0), u(w, { key: 4 }, B(e.question.footItems, (d, v) => (t(), y(i, {
|
|
669
669
|
key: d.value,
|
|
670
670
|
class: r(e.question.getItemClass(d)),
|
|
671
671
|
question: e.question,
|
|
672
672
|
item: d,
|
|
673
|
-
index: "" +
|
|
673
|
+
index: "" + v
|
|
674
674
|
}, null, 8, ["class", "question", "item", "index"]))), 128)) : m("", !0),
|
|
675
|
-
e.question.renderedValue && e.question.isOtherSelected ? (t(),
|
|
675
|
+
e.question.renderedValue && e.question.isOtherSelected ? (t(), y(a, {
|
|
676
676
|
key: 5,
|
|
677
677
|
question: e.question
|
|
678
678
|
}, null, 8, ["question"])) : m("", !0)
|
|
679
679
|
], 10, ms);
|
|
680
680
|
};
|
|
681
681
|
}
|
|
682
|
-
}), vs = { role: "presentation" }, qs = ["name", "value", "id", "disabled"], ys = ["name", "value", "id", "disabled"], gs = ["xlink:href"], hs = /* @__PURE__ */
|
|
682
|
+
}), vs = { role: "presentation" }, qs = ["name", "value", "id", "disabled"], ys = ["name", "value", "id", "disabled"], gs = ["xlink:href"], hs = /* @__PURE__ */ g({
|
|
683
683
|
__name: "CheckboxItem",
|
|
684
684
|
props: {
|
|
685
685
|
question: {},
|
|
@@ -688,7 +688,7 @@ const Ve = /* @__PURE__ */ h({
|
|
|
688
688
|
hideLabel: { type: Boolean }
|
|
689
689
|
},
|
|
690
690
|
setup(l) {
|
|
691
|
-
const n = l, o =
|
|
691
|
+
const n = l, o = R({
|
|
692
692
|
get() {
|
|
693
693
|
return n.question.isAllSelected || "";
|
|
694
694
|
},
|
|
@@ -697,13 +697,13 @@ const Ve = /* @__PURE__ */ h({
|
|
|
697
697
|
s.isAllSelected = !!e;
|
|
698
698
|
}
|
|
699
699
|
});
|
|
700
|
-
return
|
|
701
|
-
const i =
|
|
700
|
+
return L(() => n.item), (e, s) => {
|
|
701
|
+
const i = q("survey-string");
|
|
702
702
|
return t(), u("div", vs, [
|
|
703
703
|
c("label", {
|
|
704
704
|
class: r(e.question.getLabelClass(e.item))
|
|
705
705
|
}, [
|
|
706
|
-
e.item == e.question.selectAllItem ?
|
|
706
|
+
e.item == e.question.selectAllItem ? P((t(), u("input", {
|
|
707
707
|
key: 0,
|
|
708
708
|
type: "checkbox",
|
|
709
709
|
name: e.question.name,
|
|
@@ -713,9 +713,9 @@ const Ve = /* @__PURE__ */ h({
|
|
|
713
713
|
disabled: !e.question.getItemEnabled(e.item),
|
|
714
714
|
class: r(e.question.cssClasses.itemControl)
|
|
715
715
|
}, null, 10, qs)), [
|
|
716
|
-
[
|
|
716
|
+
[U, o.value]
|
|
717
717
|
]) : m("", !0),
|
|
718
|
-
e.item != e.question.selectAllItem ?
|
|
718
|
+
e.item != e.question.selectAllItem ? P((t(), u("input", {
|
|
719
719
|
key: 1,
|
|
720
720
|
type: "checkbox",
|
|
721
721
|
name: e.question.name,
|
|
@@ -725,7 +725,7 @@ const Ve = /* @__PURE__ */ h({
|
|
|
725
725
|
disabled: !e.question.getItemEnabled(e.item),
|
|
726
726
|
class: r(e.question.cssClasses.itemControl)
|
|
727
727
|
}, null, 10, ys)), [
|
|
728
|
-
[
|
|
728
|
+
[U, e.question.renderedValue]
|
|
729
729
|
]) : m("", !0),
|
|
730
730
|
e.question.cssClasses.materialDecorator ? (t(), u("span", {
|
|
731
731
|
key: 2,
|
|
@@ -752,15 +752,15 @@ const Ve = /* @__PURE__ */ h({
|
|
|
752
752
|
]);
|
|
753
753
|
};
|
|
754
754
|
}
|
|
755
|
-
}), Cs = ["role", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], bs = { key: 5 }, ks = ["value"], fs = /* @__PURE__ */
|
|
755
|
+
}), Cs = ["role", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], bs = { key: 5 }, ks = ["value"], fs = /* @__PURE__ */ g({
|
|
756
756
|
__name: "Radiogroup",
|
|
757
757
|
props: {
|
|
758
758
|
question: {}
|
|
759
759
|
},
|
|
760
760
|
setup(l) {
|
|
761
|
-
const n = l, o =
|
|
762
|
-
return
|
|
763
|
-
const i =
|
|
761
|
+
const n = l, o = T(null);
|
|
762
|
+
return H(n, o), (e, s) => {
|
|
763
|
+
const i = q("survey-radiogroup-item"), a = q("survey-other-choice");
|
|
764
764
|
return t(), u("fieldset", {
|
|
765
765
|
class: r(e.question.getSelectBaseRootCss()),
|
|
766
766
|
ref_key: "root",
|
|
@@ -772,50 +772,50 @@ const Ve = /* @__PURE__ */ h({
|
|
|
772
772
|
"aria-invalid": e.question.a11y_input_ariaInvalid,
|
|
773
773
|
"aria-describedby": e.question.a11y_input_ariaDescribedBy
|
|
774
774
|
}, [
|
|
775
|
-
!e.question.hasColumns && !e.question.blockedRow ? (t(!0), u(w, { key: 0 },
|
|
775
|
+
!e.question.hasColumns && !e.question.blockedRow ? (t(!0), u(w, { key: 0 }, B(e.question.visibleChoices, (d, v) => (t(), y(i, {
|
|
776
776
|
key: d.value,
|
|
777
777
|
class: r(e.question.getItemClass(d)),
|
|
778
778
|
question: e.question,
|
|
779
779
|
item: d,
|
|
780
|
-
index:
|
|
780
|
+
index: v
|
|
781
781
|
}, null, 8, ["class", "question", "item", "index"]))), 128)) : m("", !0),
|
|
782
782
|
e.question.blockedRow ? (t(), u("div", {
|
|
783
783
|
key: 1,
|
|
784
784
|
class: r(e.question.cssClasses.rootRow)
|
|
785
785
|
}, [
|
|
786
|
-
!e.question.hasColumns && e.question.blockedRow ? (t(!0), u(w, { key: 0 },
|
|
786
|
+
!e.question.hasColumns && e.question.blockedRow ? (t(!0), u(w, { key: 0 }, B(e.question.dataChoices, (d, v) => (t(), y(i, {
|
|
787
787
|
key: d.value,
|
|
788
788
|
class: r(e.question.getItemClass(d)),
|
|
789
789
|
question: e.question,
|
|
790
790
|
item: d,
|
|
791
|
-
index:
|
|
791
|
+
index: v
|
|
792
792
|
}, null, 8, ["class", "question", "item", "index"]))), 128)) : m("", !0)
|
|
793
793
|
], 2)) : m("", !0),
|
|
794
794
|
e.question.hasColumns ? (t(), u("div", {
|
|
795
795
|
key: 2,
|
|
796
796
|
class: r(e.question.cssClasses.rootMultiColumn)
|
|
797
797
|
}, [
|
|
798
|
-
e.question.hasColumns ? (t(!0), u(w, { key: 0 },
|
|
798
|
+
e.question.hasColumns ? (t(!0), u(w, { key: 0 }, B(e.question.columns, (d, v) => (t(), u("div", {
|
|
799
799
|
class: r(e.question.getColumnClass()),
|
|
800
800
|
role: "presentation"
|
|
801
801
|
}, [
|
|
802
|
-
(t(!0), u(w, null,
|
|
803
|
-
key:
|
|
804
|
-
class: r(e.question.getItemClass(
|
|
802
|
+
(t(!0), u(w, null, B(d, (p, b) => (t(), y(i, {
|
|
803
|
+
key: p.value,
|
|
804
|
+
class: r(e.question.getItemClass(p)),
|
|
805
805
|
question: e.question,
|
|
806
|
-
item:
|
|
807
|
-
index: "" +
|
|
806
|
+
item: p,
|
|
807
|
+
index: "" + v + b
|
|
808
808
|
}, null, 8, ["class", "question", "item", "index"]))), 128))
|
|
809
809
|
], 2))), 256)) : m("", !0)
|
|
810
810
|
], 2)) : m("", !0),
|
|
811
|
-
e.question.hasFootItems ? (t(!0), u(w, { key: 3 },
|
|
811
|
+
e.question.hasFootItems ? (t(!0), u(w, { key: 3 }, B(e.question.footItems, (d, v) => (t(), y(i, {
|
|
812
812
|
key: d.value,
|
|
813
813
|
class: r(e.question.getItemClass(d)),
|
|
814
814
|
question: e.question,
|
|
815
815
|
item: d,
|
|
816
|
-
index: "" +
|
|
816
|
+
index: "" + v
|
|
817
817
|
}, null, 8, ["class", "question", "item", "index"]))), 128)) : m("", !0),
|
|
818
|
-
e.question.renderedValue && e.question.isOtherSelected ? (t(),
|
|
818
|
+
e.question.renderedValue && e.question.isOtherSelected ? (t(), y(a, {
|
|
819
819
|
key: 4,
|
|
820
820
|
question: e.question
|
|
821
821
|
}, null, 8, ["question"])) : m("", !0),
|
|
@@ -832,7 +832,7 @@ const Ve = /* @__PURE__ */ h({
|
|
|
832
832
|
], 10, Cs);
|
|
833
833
|
};
|
|
834
834
|
}
|
|
835
|
-
}), Is = { role: "presentation" }, ws = ["name", "value", "id", "aria-describedby", "disabled"], Ss = ["xlink:href"], Rs = /* @__PURE__ */
|
|
835
|
+
}), Is = { role: "presentation" }, ws = ["name", "value", "id", "aria-describedby", "disabled"], Ss = ["xlink:href"], Rs = /* @__PURE__ */ g({
|
|
836
836
|
__name: "RadiogroupItem",
|
|
837
837
|
props: {
|
|
838
838
|
question: {},
|
|
@@ -842,14 +842,14 @@ const Ve = /* @__PURE__ */ h({
|
|
|
842
842
|
},
|
|
843
843
|
setup(l) {
|
|
844
844
|
const n = l, o = (s) => n.question.getLabelClass(s), e = (s) => n.question.getControlLabelClass(s);
|
|
845
|
-
return
|
|
846
|
-
const a =
|
|
845
|
+
return L(() => n.item), (s, i) => {
|
|
846
|
+
const a = q("survey-string");
|
|
847
847
|
return t(), u("div", Is, [
|
|
848
848
|
c("label", {
|
|
849
849
|
onMousedown: i[1] || (i[1] = (d) => s.question.onMouseDown()),
|
|
850
850
|
class: r(o(s.item))
|
|
851
851
|
}, [
|
|
852
|
-
|
|
852
|
+
P(c("input", {
|
|
853
853
|
type: "radio",
|
|
854
854
|
name: s.question.questionName,
|
|
855
855
|
value: s.item.value,
|
|
@@ -859,7 +859,7 @@ const Ve = /* @__PURE__ */ h({
|
|
|
859
859
|
disabled: !s.question.getItemEnabled(s.item),
|
|
860
860
|
class: r(s.question.cssClasses.itemControl)
|
|
861
861
|
}, null, 10, ws), [
|
|
862
|
-
[
|
|
862
|
+
[Y, s.question.renderedValue]
|
|
863
863
|
]),
|
|
864
864
|
s.question.cssClasses.materialDecorator ? (t(), u("span", {
|
|
865
865
|
key: 0,
|
|
@@ -886,15 +886,15 @@ const Ve = /* @__PURE__ */ h({
|
|
|
886
886
|
]);
|
|
887
887
|
};
|
|
888
888
|
}
|
|
889
|
-
}), Ts = ["src", "width", "height"], $s = ["title"], Bs = { key: 0 }, Ls = /* @__PURE__ */
|
|
889
|
+
}), Ts = ["src", "width", "height"], $s = ["title"], Bs = { key: 0 }, Ls = /* @__PURE__ */ g({
|
|
890
890
|
__name: "Signaturepad",
|
|
891
891
|
props: {
|
|
892
892
|
question: {}
|
|
893
893
|
},
|
|
894
894
|
setup(l) {
|
|
895
|
-
const n = l, o =
|
|
896
|
-
return
|
|
897
|
-
const i =
|
|
895
|
+
const n = l, o = T(null);
|
|
896
|
+
return H(n, o), (e, s) => {
|
|
897
|
+
const i = q("sv-svg-icon");
|
|
898
898
|
return t(), u("div", {
|
|
899
899
|
class: r(e.question.cssClasses.root),
|
|
900
900
|
ref_key: "root",
|
|
@@ -904,10 +904,10 @@ const Ve = /* @__PURE__ */ h({
|
|
|
904
904
|
width: e.question.signatureWidth + "px"
|
|
905
905
|
})
|
|
906
906
|
}, [
|
|
907
|
-
|
|
907
|
+
P(c("div", {
|
|
908
908
|
class: r(e.question.cssClasses.placeholder)
|
|
909
909
|
}, I(e.question.placeHolderText), 3), [
|
|
910
|
-
[
|
|
910
|
+
[A, e.question.needShowPlaceholder()]
|
|
911
911
|
]),
|
|
912
912
|
c("div", null, [
|
|
913
913
|
e.question.backgroundImage ? (t(), u("img", {
|
|
@@ -935,7 +935,7 @@ const Ve = /* @__PURE__ */ h({
|
|
|
935
935
|
})
|
|
936
936
|
}, [
|
|
937
937
|
e.question.cssClasses.clearButtonIconId ? m("", !0) : (t(), u("span", Bs, "\u2716")),
|
|
938
|
-
e.question.cssClasses.clearButtonIconId ? (t(),
|
|
938
|
+
e.question.cssClasses.clearButtonIconId ? (t(), y(i, {
|
|
939
939
|
key: 1,
|
|
940
940
|
iconName: e.question.cssClasses.clearButtonIconId,
|
|
941
941
|
size: "auto"
|
|
@@ -945,42 +945,42 @@ const Ve = /* @__PURE__ */ h({
|
|
|
945
945
|
], 6);
|
|
946
946
|
};
|
|
947
947
|
}
|
|
948
|
-
}), Ds = ["innerHTML"], Ps = /* @__PURE__ */
|
|
948
|
+
}), Ds = ["innerHTML"], Ps = /* @__PURE__ */ g({
|
|
949
949
|
__name: "Html",
|
|
950
950
|
props: {
|
|
951
951
|
question: {}
|
|
952
952
|
},
|
|
953
953
|
setup(l) {
|
|
954
|
-
const n = l, o =
|
|
955
|
-
|
|
956
|
-
const e =
|
|
954
|
+
const n = l, o = T(null);
|
|
955
|
+
H(n, o);
|
|
956
|
+
const e = z(() => n.question.locHtml);
|
|
957
957
|
return (s, i) => (t(), u("div", {
|
|
958
958
|
ref_key: "root",
|
|
959
959
|
ref: o,
|
|
960
960
|
class: r(s.question.renderCssRoot),
|
|
961
|
-
innerHTML:
|
|
961
|
+
innerHTML: k(e)
|
|
962
962
|
}, null, 10, Ds));
|
|
963
963
|
}
|
|
964
|
-
}), Ms = ["src", "alt", "width", "height"], Ns = ["src", "width", "height"], Hs = ["src", "width", "height"], As = /* @__PURE__ */
|
|
964
|
+
}), Ms = ["src", "alt", "width", "height"], Ns = ["src", "width", "height"], Hs = ["src", "width", "height"], As = /* @__PURE__ */ g({
|
|
965
965
|
__name: "Image",
|
|
966
966
|
props: {
|
|
967
967
|
question: {}
|
|
968
968
|
},
|
|
969
969
|
setup(l) {
|
|
970
|
-
const n = l, o =
|
|
971
|
-
|
|
972
|
-
const e =
|
|
970
|
+
const n = l, o = T(null);
|
|
971
|
+
H(n, o);
|
|
972
|
+
const e = z(() => n.question.locImageLink);
|
|
973
973
|
return (s, i) => {
|
|
974
|
-
const a =
|
|
974
|
+
const a = q("sv-svg-icon");
|
|
975
975
|
return t(), u("div", {
|
|
976
976
|
class: r(s.question.cssClasses.root),
|
|
977
977
|
ref_key: "root",
|
|
978
978
|
ref: o
|
|
979
979
|
}, [
|
|
980
|
-
s.question.renderedMode === "image" ?
|
|
980
|
+
s.question.renderedMode === "image" ? P((t(), u("img", {
|
|
981
981
|
key: 0,
|
|
982
982
|
class: r(s.question.getImageCss()),
|
|
983
|
-
src:
|
|
983
|
+
src: k(e),
|
|
984
984
|
alt: s.question.altText || s.question.title,
|
|
985
985
|
width: s.question.renderedWidth,
|
|
986
986
|
height: s.question.renderedHeight,
|
|
@@ -996,13 +996,13 @@ const Ve = /* @__PURE__ */ h({
|
|
|
996
996
|
s.question.onErrorHandler();
|
|
997
997
|
})
|
|
998
998
|
}, null, 46, Ms)), [
|
|
999
|
-
[
|
|
999
|
+
[A, k(e) && !s.question.contentNotLoaded]
|
|
1000
1000
|
]) : m("", !0),
|
|
1001
|
-
s.question.renderedMode === "video" ?
|
|
1001
|
+
s.question.renderedMode === "video" ? P((t(), u("video", {
|
|
1002
1002
|
key: 1,
|
|
1003
1003
|
controls: "",
|
|
1004
1004
|
class: r(s.question.getImageCss()),
|
|
1005
|
-
src:
|
|
1005
|
+
src: k(e),
|
|
1006
1006
|
width: s.question.renderedWidth,
|
|
1007
1007
|
height: s.question.renderedHeight,
|
|
1008
1008
|
style: S({
|
|
@@ -1017,12 +1017,12 @@ const Ve = /* @__PURE__ */ h({
|
|
|
1017
1017
|
s.question.onErrorHandler();
|
|
1018
1018
|
})
|
|
1019
1019
|
}, null, 46, Ns)), [
|
|
1020
|
-
[
|
|
1020
|
+
[A, k(e) && !s.question.contentNotLoaded]
|
|
1021
1021
|
]) : m("", !0),
|
|
1022
1022
|
s.question.renderedMode === "youtube" ? (t(), u("iframe", {
|
|
1023
1023
|
key: 2,
|
|
1024
1024
|
class: r(s.question.getImageCss()),
|
|
1025
|
-
src:
|
|
1025
|
+
src: k(e),
|
|
1026
1026
|
width: s.question.renderedWidth,
|
|
1027
1027
|
height: s.question.renderedHeight,
|
|
1028
1028
|
style: S({
|
|
@@ -1031,7 +1031,7 @@ const Ve = /* @__PURE__ */ h({
|
|
|
1031
1031
|
height: s.question.renderedStyleHeight
|
|
1032
1032
|
})
|
|
1033
1033
|
}, null, 14, Hs)) : m("", !0),
|
|
1034
|
-
!
|
|
1034
|
+
!k(e) || s.question.contentNotLoaded ? (t(), u("div", {
|
|
1035
1035
|
key: 3,
|
|
1036
1036
|
class: r(s.question.cssClasses.noImage)
|
|
1037
1037
|
}, [
|
|
@@ -1043,28 +1043,28 @@ const Ve = /* @__PURE__ */ h({
|
|
|
1043
1043
|
], 2);
|
|
1044
1044
|
};
|
|
1045
1045
|
}
|
|
1046
|
-
}), Es = /* @__PURE__ */
|
|
1046
|
+
}), Es = /* @__PURE__ */ g({
|
|
1047
1047
|
__name: "Expression",
|
|
1048
1048
|
props: {
|
|
1049
1049
|
question: {}
|
|
1050
1050
|
},
|
|
1051
1051
|
setup(l) {
|
|
1052
|
-
const n = l, o =
|
|
1053
|
-
return
|
|
1052
|
+
const n = l, o = T(null);
|
|
1053
|
+
return H(n, o), (e, s) => (t(), u("div", {
|
|
1054
1054
|
class: r(e.question.cssClasses.text),
|
|
1055
1055
|
ref_key: "root",
|
|
1056
1056
|
ref: o
|
|
1057
1057
|
}, I(e.question.formatedValue), 3));
|
|
1058
1058
|
}
|
|
1059
|
-
}), _s = ["id", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "multiple", "title", "accept", "capture"], Vs = ["id", "multiple", "placeholder"], Os = /* @__PURE__ */
|
|
1059
|
+
}), _s = ["id", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "multiple", "title", "accept", "capture"], Vs = ["id", "multiple", "placeholder"], Os = /* @__PURE__ */ g({
|
|
1060
1060
|
__name: "File",
|
|
1061
1061
|
props: {
|
|
1062
1062
|
question: {}
|
|
1063
1063
|
},
|
|
1064
1064
|
setup(l) {
|
|
1065
|
-
const n = l, o =
|
|
1066
|
-
return
|
|
1067
|
-
const i =
|
|
1065
|
+
const n = l, o = T(null);
|
|
1066
|
+
return H(n, o), (e, s) => {
|
|
1067
|
+
const i = q("sv-file-choose-btn"), a = q("sv-action-bar"), d = q("sv-file-clean-btn"), v = q("sv-loading-indicator"), p = q("sv-file-video"), b = q("sv-file-preview");
|
|
1068
1068
|
return t(), u("div", {
|
|
1069
1069
|
class: r(e.question.fileRootCss)
|
|
1070
1070
|
}, [
|
|
@@ -1074,7 +1074,7 @@ const Ve = /* @__PURE__ */ h({
|
|
|
1074
1074
|
tabindex: "-1",
|
|
1075
1075
|
type: "file",
|
|
1076
1076
|
id: e.question.inputId,
|
|
1077
|
-
onChange: s[0] || (s[0] = (...
|
|
1077
|
+
onChange: s[0] || (s[0] = (...f) => e.question.doChange && e.question.doChange(...f)),
|
|
1078
1078
|
"aria-required": e.question.ariaRequired,
|
|
1079
1079
|
"aria-label": e.question.ariaLabel,
|
|
1080
1080
|
"aria-invalid": e.question.ariaInvalid,
|
|
@@ -1096,10 +1096,10 @@ const Ve = /* @__PURE__ */ h({
|
|
|
1096
1096
|
}, null, 10, Vs)) : m("", !0),
|
|
1097
1097
|
c("div", {
|
|
1098
1098
|
class: r(e.question.cssClasses.dragArea),
|
|
1099
|
-
onDrop: s[1] || (s[1] = (...
|
|
1100
|
-
onDragover: s[2] || (s[2] = (...
|
|
1101
|
-
onDragleave: s[3] || (s[3] = (...
|
|
1102
|
-
onDragenter: s[4] || (s[4] = (...
|
|
1099
|
+
onDrop: s[1] || (s[1] = (...f) => e.question.onDrop && e.question.onDrop(...f)),
|
|
1100
|
+
onDragover: s[2] || (s[2] = (...f) => e.question.onDragOver && e.question.onDragOver(...f)),
|
|
1101
|
+
onDragleave: s[3] || (s[3] = (...f) => e.question.onDragLeave && e.question.onDragLeave(...f)),
|
|
1102
|
+
onDragenter: s[4] || (s[4] = (...f) => e.question.onDragEnter && e.question.onDragEnter(...f))
|
|
1103
1103
|
}, [
|
|
1104
1104
|
e.question.showFileDecorator ? (t(), u("div", {
|
|
1105
1105
|
key: 0,
|
|
@@ -1111,11 +1111,11 @@ const Ve = /* @__PURE__ */ h({
|
|
|
1111
1111
|
c("div", {
|
|
1112
1112
|
class: r(e.question.cssClasses.wrapper)
|
|
1113
1113
|
}, [
|
|
1114
|
-
e.question.showChooseButton ? (t(),
|
|
1114
|
+
e.question.showChooseButton ? (t(), y(i, {
|
|
1115
1115
|
key: 0,
|
|
1116
1116
|
data: { question: e.question }
|
|
1117
1117
|
}, null, 8, ["data"])) : m("", !0),
|
|
1118
|
-
e.question.actionsContainerVisible ? (t(),
|
|
1118
|
+
e.question.actionsContainerVisible ? (t(), y(a, {
|
|
1119
1119
|
key: 1,
|
|
1120
1120
|
model: e.question.actionsContainer
|
|
1121
1121
|
}, null, 8, ["model"])) : m("", !0),
|
|
@@ -1125,7 +1125,7 @@ const Ve = /* @__PURE__ */ h({
|
|
|
1125
1125
|
}, I(e.question.noFileChosenCaption), 3)) : m("", !0)
|
|
1126
1126
|
], 2)
|
|
1127
1127
|
], 2)) : m("", !0),
|
|
1128
|
-
e.question.showRemoveButton ? (t(),
|
|
1128
|
+
e.question.showRemoveButton ? (t(), y(d, {
|
|
1129
1129
|
key: 1,
|
|
1130
1130
|
question: e.question,
|
|
1131
1131
|
css: e.question.showRemoveButton
|
|
@@ -1134,22 +1134,22 @@ const Ve = /* @__PURE__ */ h({
|
|
|
1134
1134
|
key: 2,
|
|
1135
1135
|
class: r(e.question.cssClasses.loadingIndicator)
|
|
1136
1136
|
}, [
|
|
1137
|
-
C(
|
|
1137
|
+
C(v)
|
|
1138
1138
|
], 2)) : m("", !0),
|
|
1139
|
-
e.question.isPlayingVideo ? (t(),
|
|
1139
|
+
e.question.isPlayingVideo ? (t(), y(p, {
|
|
1140
1140
|
key: 3,
|
|
1141
1141
|
question: e.question
|
|
1142
1142
|
}, null, 8, ["question"])) : m("", !0),
|
|
1143
|
-
e.question.allowShowPreview ? (t(),
|
|
1143
|
+
e.question.allowShowPreview ? (t(), y(b, {
|
|
1144
1144
|
key: 4,
|
|
1145
1145
|
question: e.question
|
|
1146
1146
|
}, null, 8, ["question"])) : m("", !0),
|
|
1147
|
-
e.question.showRemoveButtonBottom ? (t(),
|
|
1147
|
+
e.question.showRemoveButtonBottom ? (t(), y(d, {
|
|
1148
1148
|
key: 5,
|
|
1149
1149
|
question: e.question,
|
|
1150
1150
|
css: e.question.showRemoveButtonBottom
|
|
1151
1151
|
}, null, 8, ["question", "css"])) : m("", !0),
|
|
1152
|
-
e.question.fileNavigatorVisible ? (t(),
|
|
1152
|
+
e.question.fileNavigatorVisible ? (t(), y(a, {
|
|
1153
1153
|
key: 6,
|
|
1154
1154
|
model: e.question.fileNavigator
|
|
1155
1155
|
}, null, 8, ["model"])) : m("", !0)
|
|
@@ -1157,15 +1157,15 @@ const Ve = /* @__PURE__ */ h({
|
|
|
1157
1157
|
], 2);
|
|
1158
1158
|
};
|
|
1159
1159
|
}
|
|
1160
|
-
}), Fs = ["aria-label"], Ws = /* @__PURE__ */
|
|
1160
|
+
}), Fs = ["aria-label"], Ws = /* @__PURE__ */ g({
|
|
1161
1161
|
__name: "Imagepicker",
|
|
1162
1162
|
props: {
|
|
1163
1163
|
question: {}
|
|
1164
1164
|
},
|
|
1165
1165
|
setup(l) {
|
|
1166
|
-
const n = l, o =
|
|
1167
|
-
return
|
|
1168
|
-
const i =
|
|
1166
|
+
const n = l, o = T(null);
|
|
1167
|
+
return H(n, o), (e, s) => {
|
|
1168
|
+
const i = q("survey-imagepicker-item");
|
|
1169
1169
|
return t(), u("fieldset", {
|
|
1170
1170
|
class: r(e.question.getSelectBaseRootCss()),
|
|
1171
1171
|
ref_key: "root",
|
|
@@ -1175,26 +1175,26 @@ const Ve = /* @__PURE__ */ h({
|
|
|
1175
1175
|
role: "radio",
|
|
1176
1176
|
"aria-label": e.question.locTitle.renderedHtml
|
|
1177
1177
|
}, null, 8, Fs),
|
|
1178
|
-
e.question.hasColumns ? m("", !0) : (t(!0), u(w, { key: 0 },
|
|
1178
|
+
e.question.hasColumns ? m("", !0) : (t(!0), u(w, { key: 0 }, B(e.question.visibleChoices, (a) => (t(), y(i, {
|
|
1179
1179
|
key: a.value,
|
|
1180
1180
|
question: e.question,
|
|
1181
1181
|
item: a
|
|
1182
1182
|
}, null, 8, ["question", "item"]))), 128)),
|
|
1183
|
-
e.question.hasColumns ? (t(!0), u(w, { key: 1 },
|
|
1183
|
+
e.question.hasColumns ? (t(!0), u(w, { key: 1 }, B(e.question.columns, (a, d) => (t(), u("div", {
|
|
1184
1184
|
class: r(e.question.getColumnClass()),
|
|
1185
1185
|
key: d,
|
|
1186
1186
|
role: "presentation"
|
|
1187
1187
|
}, [
|
|
1188
|
-
(t(!0), u(w, null,
|
|
1189
|
-
key:
|
|
1188
|
+
(t(!0), u(w, null, B(a, (v) => (t(), y(i, {
|
|
1189
|
+
key: v.value,
|
|
1190
1190
|
question: e.question,
|
|
1191
|
-
item:
|
|
1191
|
+
item: v
|
|
1192
1192
|
}, null, 8, ["question", "item"]))), 128))
|
|
1193
1193
|
], 2))), 128)) : m("", !0)
|
|
1194
1194
|
], 2);
|
|
1195
1195
|
};
|
|
1196
1196
|
}
|
|
1197
|
-
}), zs = ["name", "value", "id", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Us = ["name", "value", "id", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Ks = ["src", "width", "height", "alt"], js = ["src", "width", "height"], Qs = /* @__PURE__ */
|
|
1197
|
+
}), zs = ["name", "value", "id", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Us = ["name", "value", "id", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Ks = ["src", "width", "height", "alt"], js = ["src", "width", "height"], Qs = /* @__PURE__ */ g({
|
|
1198
1198
|
__name: "ImagepickerItem",
|
|
1199
1199
|
props: {
|
|
1200
1200
|
question: {},
|
|
@@ -1202,23 +1202,23 @@ const Ve = /* @__PURE__ */ h({
|
|
|
1202
1202
|
},
|
|
1203
1203
|
setup(l) {
|
|
1204
1204
|
const n = l, o = (s) => n.question.getItemClass(s);
|
|
1205
|
-
|
|
1206
|
-
const e =
|
|
1205
|
+
L(() => n.item);
|
|
1206
|
+
const e = z(() => n.item.locImageLink);
|
|
1207
1207
|
return (s, i) => {
|
|
1208
|
-
const a =
|
|
1208
|
+
const a = q("sv-svg-icon"), d = q("survey-string");
|
|
1209
1209
|
return t(), u("div", {
|
|
1210
1210
|
class: r(o(s.item))
|
|
1211
1211
|
}, [
|
|
1212
1212
|
c("label", {
|
|
1213
1213
|
class: r(s.question.cssClasses.label)
|
|
1214
1214
|
}, [
|
|
1215
|
-
s.question.multiSelect ?
|
|
1215
|
+
s.question.multiSelect ? P((t(), u("input", {
|
|
1216
1216
|
key: 0,
|
|
1217
1217
|
type: "checkbox",
|
|
1218
1218
|
name: s.question.questionName,
|
|
1219
1219
|
value: s.item.value,
|
|
1220
1220
|
id: s.question.getItemId(s.item),
|
|
1221
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
1221
|
+
"onUpdate:modelValue": i[0] || (i[0] = (v) => s.question.value = v),
|
|
1222
1222
|
disabled: !s.question.getItemEnabled(s.item),
|
|
1223
1223
|
"aria-required": s.question.ariaRequired,
|
|
1224
1224
|
"aria-label": s.question.ariaLabel,
|
|
@@ -1226,14 +1226,14 @@ const Ve = /* @__PURE__ */ h({
|
|
|
1226
1226
|
"aria-describedby": s.question.ariaDescribedBy,
|
|
1227
1227
|
class: r(s.question.cssClasses.itemControl)
|
|
1228
1228
|
}, null, 10, zs)), [
|
|
1229
|
-
[
|
|
1230
|
-
]) :
|
|
1229
|
+
[U, s.question.value]
|
|
1230
|
+
]) : P((t(), u("input", {
|
|
1231
1231
|
key: 1,
|
|
1232
1232
|
type: "radio",
|
|
1233
1233
|
name: s.question.questionName,
|
|
1234
1234
|
value: s.item.value,
|
|
1235
1235
|
id: s.question.getItemId(s.item),
|
|
1236
|
-
"onUpdate:modelValue": i[1] || (i[1] = (
|
|
1236
|
+
"onUpdate:modelValue": i[1] || (i[1] = (v) => s.question.value = v),
|
|
1237
1237
|
disabled: !s.question.getItemEnabled(s.item),
|
|
1238
1238
|
"aria-required": s.question.ariaRequired,
|
|
1239
1239
|
"aria-label": s.question.ariaLabel,
|
|
@@ -1241,7 +1241,7 @@ const Ve = /* @__PURE__ */ h({
|
|
|
1241
1241
|
"aria-describedby": s.question.ariaDescribedBy,
|
|
1242
1242
|
class: r(s.question.cssClasses.itemControl)
|
|
1243
1243
|
}, null, 10, Us)), [
|
|
1244
|
-
[
|
|
1244
|
+
[Y, s.question.value]
|
|
1245
1245
|
]),
|
|
1246
1246
|
c("div", {
|
|
1247
1247
|
class: r(s.question.cssClasses.itemDecorator)
|
|
@@ -1253,44 +1253,44 @@ const Ve = /* @__PURE__ */ h({
|
|
|
1253
1253
|
key: 0,
|
|
1254
1254
|
class: r(s.question.cssClasses.checkedItemDecorator)
|
|
1255
1255
|
}, [
|
|
1256
|
-
s.question.cssClasses.checkedItemSvgIconId ? (t(),
|
|
1256
|
+
s.question.cssClasses.checkedItemSvgIconId ? (t(), y(a, {
|
|
1257
1257
|
key: 0,
|
|
1258
1258
|
class: r(s.question.cssClasses.checkedItemSvgIcon),
|
|
1259
1259
|
size: "auto",
|
|
1260
1260
|
iconName: s.question.cssClasses.checkedItemSvgIconId
|
|
1261
1261
|
}, null, 8, ["class", "iconName"])) : m("", !0)
|
|
1262
1262
|
], 2)) : m("", !0),
|
|
1263
|
-
|
|
1263
|
+
k(e) && !s.item.contentNotLoaded && s.question.contentMode === "image" ? (t(), u("img", {
|
|
1264
1264
|
key: 1,
|
|
1265
1265
|
class: r(s.question.cssClasses.image),
|
|
1266
|
-
src:
|
|
1266
|
+
src: k(e),
|
|
1267
1267
|
width: s.question.renderedImageWidth,
|
|
1268
1268
|
height: s.question.renderedImageHeight,
|
|
1269
1269
|
style: S({ objectFit: s.question.imageFit }),
|
|
1270
1270
|
alt: s.item.locText.renderedHtml,
|
|
1271
|
-
onLoad: i[2] || (i[2] = (
|
|
1272
|
-
s.question.onContentLoaded(s.item,
|
|
1271
|
+
onLoad: i[2] || (i[2] = (v) => {
|
|
1272
|
+
s.question.onContentLoaded(s.item, v);
|
|
1273
1273
|
}),
|
|
1274
|
-
onError: i[3] || (i[3] = (
|
|
1274
|
+
onError: i[3] || (i[3] = (v) => {
|
|
1275
1275
|
s.item.onErrorHandler();
|
|
1276
1276
|
})
|
|
1277
1277
|
}, null, 46, Ks)) : m("", !0),
|
|
1278
|
-
|
|
1278
|
+
k(e) && !s.item.contentNotLoaded && s.question.contentMode === "video" ? (t(), u("video", {
|
|
1279
1279
|
key: 2,
|
|
1280
1280
|
controls: "",
|
|
1281
1281
|
class: r(s.question.cssClasses.image),
|
|
1282
|
-
src:
|
|
1282
|
+
src: k(e),
|
|
1283
1283
|
width: s.question.renderedImageWidth,
|
|
1284
1284
|
height: s.question.renderedImageHeight,
|
|
1285
1285
|
style: S({ objectFit: s.question.imageFit }),
|
|
1286
|
-
onLoadedmetadata: i[4] || (i[4] = (
|
|
1287
|
-
s.question.onContentLoaded(s.item,
|
|
1286
|
+
onLoadedmetadata: i[4] || (i[4] = (v) => {
|
|
1287
|
+
s.question.onContentLoaded(s.item, v);
|
|
1288
1288
|
}),
|
|
1289
|
-
onError: i[5] || (i[5] = (
|
|
1289
|
+
onError: i[5] || (i[5] = (v) => {
|
|
1290
1290
|
s.item.onErrorHandler();
|
|
1291
1291
|
})
|
|
1292
1292
|
}, null, 46, js)) : m("", !0),
|
|
1293
|
-
!
|
|
1293
|
+
!k(e) || s.item.contentNotLoaded ? (t(), u("div", {
|
|
1294
1294
|
key: 3,
|
|
1295
1295
|
class: r(s.question.cssClasses.itemNoImage),
|
|
1296
1296
|
style: S({
|
|
@@ -1319,21 +1319,21 @@ const Ve = /* @__PURE__ */ h({
|
|
|
1319
1319
|
], 2);
|
|
1320
1320
|
};
|
|
1321
1321
|
}
|
|
1322
|
-
}), Zs = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], Gs = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], Xs = /* @__PURE__ */
|
|
1322
|
+
}), Zs = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], Gs = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], Xs = /* @__PURE__ */ g({
|
|
1323
1323
|
__name: "Comment",
|
|
1324
1324
|
props: {
|
|
1325
1325
|
question: {},
|
|
1326
1326
|
css: {}
|
|
1327
1327
|
},
|
|
1328
1328
|
setup(l) {
|
|
1329
|
-
const n = l, o =
|
|
1330
|
-
|
|
1329
|
+
const n = l, o = T(null);
|
|
1330
|
+
H(n, o);
|
|
1331
1331
|
const e = (s) => {
|
|
1332
1332
|
const i = n.question;
|
|
1333
1333
|
i.value = s.target.value;
|
|
1334
1334
|
};
|
|
1335
1335
|
return (s, i) => {
|
|
1336
|
-
const a =
|
|
1336
|
+
const a = q("sv-character-counter");
|
|
1337
1337
|
return !s.question.isReadOnlyRenderDiv() && !s.question.getMaxLength() ? (t(), u("textarea", {
|
|
1338
1338
|
key: 0,
|
|
1339
1339
|
ref_key: "root",
|
|
@@ -1400,22 +1400,22 @@ const Ve = /* @__PURE__ */ h({
|
|
|
1400
1400
|
}, I(s.question.value), 513));
|
|
1401
1401
|
};
|
|
1402
1402
|
}
|
|
1403
|
-
}), Js = /* @__PURE__ */
|
|
1403
|
+
}), Js = /* @__PURE__ */ g({
|
|
1404
1404
|
__name: "Dropdown",
|
|
1405
1405
|
props: {
|
|
1406
1406
|
question: {}
|
|
1407
1407
|
},
|
|
1408
1408
|
setup(l) {
|
|
1409
|
-
const n = l, o =
|
|
1410
|
-
return
|
|
1411
|
-
const i =
|
|
1409
|
+
const n = l, o = T(null);
|
|
1410
|
+
return H(n, o), (e, s) => {
|
|
1411
|
+
const i = q("sv-dropdown"), a = q("survey-other-choice");
|
|
1412
1412
|
return t(), u("div", {
|
|
1413
1413
|
class: r(e.question.renderCssRoot),
|
|
1414
1414
|
ref_key: "root",
|
|
1415
1415
|
ref: o
|
|
1416
1416
|
}, [
|
|
1417
1417
|
C(i, { question: e.question }, null, 8, ["question"]),
|
|
1418
|
-
e.question.isOtherSelected ? (t(),
|
|
1418
|
+
e.question.isOtherSelected ? (t(), y(a, {
|
|
1419
1419
|
key: 0,
|
|
1420
1420
|
question: e.question
|
|
1421
1421
|
}, null, 8, ["question"])) : m("", !0)
|
|
@@ -1426,24 +1426,24 @@ const Ve = /* @__PURE__ */ h({
|
|
|
1426
1426
|
key: 0,
|
|
1427
1427
|
value: ""
|
|
1428
1428
|
}, en = ["id"];
|
|
1429
|
-
|
|
1429
|
+
J.Instance.registerRenderer(
|
|
1430
1430
|
"dropdown",
|
|
1431
1431
|
"select",
|
|
1432
1432
|
"sv-dropdown-select"
|
|
1433
1433
|
);
|
|
1434
|
-
const sn = /* @__PURE__ */
|
|
1434
|
+
const sn = /* @__PURE__ */ g({
|
|
1435
1435
|
__name: "DropdownSelect",
|
|
1436
1436
|
props: {
|
|
1437
1437
|
question: {}
|
|
1438
1438
|
},
|
|
1439
1439
|
setup(l) {
|
|
1440
|
-
const n = l, o =
|
|
1441
|
-
|
|
1440
|
+
const n = l, o = T(null);
|
|
1441
|
+
H(n, o);
|
|
1442
1442
|
const e = (a) => {
|
|
1443
1443
|
n.question.onClick(a);
|
|
1444
1444
|
}, s = (a) => {
|
|
1445
1445
|
n.question.onKeyUp(a);
|
|
1446
|
-
}, i =
|
|
1446
|
+
}, i = R({
|
|
1447
1447
|
get() {
|
|
1448
1448
|
var a;
|
|
1449
1449
|
return (a = n.question.value) != null ? a : "";
|
|
@@ -1454,7 +1454,7 @@ const sn = /* @__PURE__ */ h({
|
|
|
1454
1454
|
}
|
|
1455
1455
|
});
|
|
1456
1456
|
return (a, d) => {
|
|
1457
|
-
const
|
|
1457
|
+
const v = q("sv-dropdown-option-item"), p = q("sv-svg-icon"), b = q("survey-other-choice");
|
|
1458
1458
|
return t(), u("div", {
|
|
1459
1459
|
class: r(a.question.renderCssRoot)
|
|
1460
1460
|
}, [
|
|
@@ -1466,10 +1466,10 @@ const sn = /* @__PURE__ */ h({
|
|
|
1466
1466
|
disabled: "",
|
|
1467
1467
|
id: a.question.inputId,
|
|
1468
1468
|
class: r(a.question.getControlClass())
|
|
1469
|
-
}, I(a.question.readOnlyText), 11, en)) :
|
|
1469
|
+
}, I(a.question.readOnlyText), 11, en)) : P((t(), u("select", {
|
|
1470
1470
|
key: 0,
|
|
1471
1471
|
id: a.question.inputId,
|
|
1472
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
1472
|
+
"onUpdate:modelValue": d[0] || (d[0] = (f) => i.value = f),
|
|
1473
1473
|
onClick: e,
|
|
1474
1474
|
onKeyup: s,
|
|
1475
1475
|
autocomplete: a.question.autocomplete,
|
|
@@ -1481,9 +1481,9 @@ const sn = /* @__PURE__ */ h({
|
|
|
1481
1481
|
required: a.question.isRequired
|
|
1482
1482
|
}, [
|
|
1483
1483
|
a.question.allowClear ? (t(), u("option", xs, I(a.question.placeholder), 1)) : m("", !0),
|
|
1484
|
-
(t(!0), u(w, null,
|
|
1485
|
-
item:
|
|
1486
|
-
key:
|
|
1484
|
+
(t(!0), u(w, null, B(a.question.visibleChoices, (f) => (t(), y(v, {
|
|
1485
|
+
item: f,
|
|
1486
|
+
key: f.id
|
|
1487
1487
|
}, null, 8, ["item"]))), 128))
|
|
1488
1488
|
], 42, Ys)), [
|
|
1489
1489
|
[ve, i.value]
|
|
@@ -1492,299 +1492,309 @@ const sn = /* @__PURE__ */ h({
|
|
|
1492
1492
|
key: 2,
|
|
1493
1493
|
class: r(a.question.cssClasses.chevronButton)
|
|
1494
1494
|
}, [
|
|
1495
|
-
C(
|
|
1495
|
+
C(p, {
|
|
1496
1496
|
class: r(a.question.cssClasses.chevronButtonSvg),
|
|
1497
1497
|
iconName: a.question.cssClasses.chevronButtonIconId,
|
|
1498
1498
|
size: "auto"
|
|
1499
1499
|
}, null, 8, ["class", "iconName"])
|
|
1500
1500
|
], 2)) : m("", !0)
|
|
1501
1501
|
], 2),
|
|
1502
|
-
a.question.isOtherSelected ? (t(),
|
|
1502
|
+
a.question.isOtherSelected ? (t(), y(b, {
|
|
1503
1503
|
key: 0,
|
|
1504
1504
|
question: a.question
|
|
1505
1505
|
}, null, 8, ["question"])) : m("", !0)
|
|
1506
1506
|
], 2);
|
|
1507
1507
|
};
|
|
1508
1508
|
}
|
|
1509
|
-
}), nn = ["value", "disabled"], on = /* @__PURE__ */
|
|
1509
|
+
}), nn = ["value", "disabled"], on = /* @__PURE__ */ g({
|
|
1510
1510
|
__name: "OptionItem",
|
|
1511
1511
|
props: {
|
|
1512
1512
|
item: {}
|
|
1513
1513
|
},
|
|
1514
1514
|
setup(l) {
|
|
1515
|
-
const n = l, o =
|
|
1516
|
-
return
|
|
1515
|
+
const n = l, o = z(() => n.item.locText);
|
|
1516
|
+
return L(() => n.item), (e, s) => (t(), u("option", {
|
|
1517
1517
|
value: e.item.value,
|
|
1518
1518
|
disabled: !e.item.isEnabled
|
|
1519
|
-
}, I(
|
|
1519
|
+
}, I(k(o)), 9, nn));
|
|
1520
1520
|
}
|
|
1521
|
-
}), tn = ["id", "disabled", "tabindex", "role", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], ln = { style: { visibility: "hidden" } }, rn = ["disabled", "inputmode", "role", "id", "tabindex", "readonly", "aria-label", "aria-expanded", "aria-controls", "aria-activedescendant", "placeholder"], an = ["id"], un = /* @__PURE__ */
|
|
1521
|
+
}), tn = ["id", "disabled", "tabindex", "role", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], ln = { style: { visibility: "hidden" } }, rn = ["disabled", "inputmode", "role", "id", "tabindex", "readonly", "aria-label", "aria-expanded", "aria-controls", "aria-activedescendant", "placeholder"], an = ["id"], un = /* @__PURE__ */ g({
|
|
1522
1522
|
__name: "Dropdown",
|
|
1523
1523
|
props: {
|
|
1524
1524
|
question: {}
|
|
1525
1525
|
},
|
|
1526
1526
|
setup(l) {
|
|
1527
|
-
const n = l, o =
|
|
1528
|
-
const
|
|
1529
|
-
return
|
|
1530
|
-
}), s = (
|
|
1531
|
-
var
|
|
1532
|
-
(
|
|
1533
|
-
}, i = (
|
|
1534
|
-
var
|
|
1535
|
-
(
|
|
1536
|
-
}, a = (
|
|
1537
|
-
var
|
|
1538
|
-
(
|
|
1539
|
-
}, d = () => {
|
|
1527
|
+
const n = l, o = T(null), e = R(() => {
|
|
1528
|
+
const h = n.question;
|
|
1529
|
+
return h.dropdownListModel || (h.dropdownListModel = new Ie(h)), n.question.dropdownListModel;
|
|
1530
|
+
}), s = (h) => {
|
|
1531
|
+
var D;
|
|
1532
|
+
(D = e.value) == null || D.onClick(h);
|
|
1533
|
+
}, i = (h) => {
|
|
1534
|
+
var D;
|
|
1535
|
+
(D = e.value) == null || D.chevronPointerDown(h);
|
|
1536
|
+
}, a = (h) => {
|
|
1537
|
+
var D;
|
|
1538
|
+
(D = e.value) == null || D.onClear(h);
|
|
1539
|
+
}, d = (h) => {
|
|
1540
|
+
var D;
|
|
1541
|
+
(D = e.value) == null || D.keyHandler(h);
|
|
1542
|
+
}, v = () => {
|
|
1540
1543
|
if (o.value) {
|
|
1541
|
-
const
|
|
1542
|
-
we.isTwoValueEquals(
|
|
1544
|
+
const h = o.value, D = e.value.inputStringRendered;
|
|
1545
|
+
we.isTwoValueEquals(D, h.value, !1, !0, !1) || (h.value = e.value.inputStringRendered);
|
|
1543
1546
|
}
|
|
1544
|
-
}, p = (
|
|
1545
|
-
var
|
|
1546
|
-
(
|
|
1547
|
-
},
|
|
1548
|
-
var
|
|
1549
|
-
(
|
|
1550
|
-
}, f = (
|
|
1551
|
-
e.value.inputStringRendered =
|
|
1552
|
-
}
|
|
1553
|
-
|
|
1554
|
-
|
|
1547
|
+
}, p = (h) => {
|
|
1548
|
+
var D;
|
|
1549
|
+
(D = e.value) == null || D.onBlur(h), v();
|
|
1550
|
+
}, b = (h) => {
|
|
1551
|
+
var D;
|
|
1552
|
+
(D = e.value) == null || D.onFocus(h);
|
|
1553
|
+
}, f = (h) => {
|
|
1554
|
+
e.value.inputStringRendered = h.target.value;
|
|
1555
|
+
}, $ = R(
|
|
1556
|
+
() => n.question.showSelectedItemLocText
|
|
1557
|
+
), M = R(() => n.question.selectedItemLocText);
|
|
1558
|
+
return L(() => e.value), X(v), E(v), (h, D) => {
|
|
1559
|
+
const _ = q("survey-string"), O = q("sv-svg-icon"), Q = q("sv-popup");
|
|
1555
1560
|
return t(), u("div", {
|
|
1556
|
-
class: r(
|
|
1561
|
+
class: r(h.question.cssClasses.selectWrapper),
|
|
1557
1562
|
onClick: s
|
|
1558
1563
|
}, [
|
|
1559
|
-
|
|
1564
|
+
h.question.isReadOnly ? m("", !0) : (t(), u("div", {
|
|
1560
1565
|
key: 0,
|
|
1561
|
-
id:
|
|
1562
|
-
disabled:
|
|
1566
|
+
id: h.question.inputId,
|
|
1567
|
+
disabled: h.question.isInputReadOnly ? !0 : null,
|
|
1563
1568
|
tabindex: e.value.inputReadOnly ? void 0 : 0,
|
|
1564
|
-
onKeydown:
|
|
1569
|
+
onKeydown: d,
|
|
1565
1570
|
onBlur: p,
|
|
1566
|
-
class: r(
|
|
1567
|
-
role:
|
|
1568
|
-
"aria-required":
|
|
1569
|
-
"aria-label":
|
|
1570
|
-
"aria-invalid":
|
|
1571
|
-
"aria-describedby":
|
|
1572
|
-
"aria-expanded":
|
|
1571
|
+
class: r(h.question.getControlClass()),
|
|
1572
|
+
role: h.question.ariaRole,
|
|
1573
|
+
"aria-required": h.question.ariaRequired,
|
|
1574
|
+
"aria-label": h.question.ariaLabel,
|
|
1575
|
+
"aria-invalid": h.question.ariaInvalid,
|
|
1576
|
+
"aria-describedby": h.question.ariaDescribedBy,
|
|
1577
|
+
"aria-expanded": h.question.ariaExpanded === null ? void 0 : h.question.ariaExpanded === "true",
|
|
1573
1578
|
"aria-controls": e.value.listElementId,
|
|
1574
1579
|
"aria-activedescendant": e.value.ariaActivedescendant,
|
|
1575
|
-
required:
|
|
1580
|
+
required: h.question.isRequired ? !0 : null
|
|
1576
1581
|
}, [
|
|
1577
1582
|
e.value.showHintPrefix ? (t(), u("div", {
|
|
1578
1583
|
key: 0,
|
|
1579
|
-
class: r(
|
|
1584
|
+
class: r(h.question.cssClasses.hintPrefix)
|
|
1580
1585
|
}, [
|
|
1581
1586
|
c("span", null, I(e.value.hintStringPrefix), 1)
|
|
1582
1587
|
], 2)) : m("", !0),
|
|
1583
1588
|
c("div", {
|
|
1584
|
-
class: r(
|
|
1589
|
+
class: r(h.question.cssClasses.controlValue)
|
|
1585
1590
|
}, [
|
|
1586
|
-
|
|
1591
|
+
$.value ? (t(), y(_, {
|
|
1587
1592
|
key: 0,
|
|
1588
|
-
locString:
|
|
1593
|
+
locString: M.value
|
|
1589
1594
|
}, null, 8, ["locString"])) : m("", !0),
|
|
1590
1595
|
e.value.showHintString ? (t(), u("div", {
|
|
1591
1596
|
key: 1,
|
|
1592
|
-
class: r(
|
|
1597
|
+
class: r(h.question.cssClasses.hintSuffix)
|
|
1593
1598
|
}, [
|
|
1594
1599
|
c("span", ln, I(e.value.inputStringRendered), 1),
|
|
1595
1600
|
c("span", null, I(e.value.hintStringSuffix), 1)
|
|
1596
1601
|
], 2)) : m("", !0),
|
|
1597
|
-
|
|
1602
|
+
h.question.showInputFieldComponent ? (t(), y(N(h.question.inputFieldComponentName), {
|
|
1598
1603
|
key: 2,
|
|
1599
1604
|
item: e.value.getSelectedAction(),
|
|
1600
|
-
question:
|
|
1605
|
+
question: h.question
|
|
1601
1606
|
}, null, 8, ["item", "question"])) : m("", !0),
|
|
1602
1607
|
c("input", {
|
|
1603
1608
|
type: "text",
|
|
1604
1609
|
ref_key: "inputElement",
|
|
1605
1610
|
ref: o,
|
|
1606
|
-
class: r(
|
|
1607
|
-
disabled:
|
|
1611
|
+
class: r(h.question.cssClasses.filterStringInput),
|
|
1612
|
+
disabled: h.question.isInputReadOnly,
|
|
1608
1613
|
autocomplete: "off",
|
|
1609
1614
|
inputmode: e.value.inputMode,
|
|
1610
|
-
role: e.value.filterStringEnabled ?
|
|
1611
|
-
id:
|
|
1615
|
+
role: e.value.filterStringEnabled ? h.question.ariaRole : void 0,
|
|
1616
|
+
id: h.question.getInputId(),
|
|
1612
1617
|
tabindex: e.value.inputReadOnly ? void 0 : -1,
|
|
1613
1618
|
readonly: e.value.searchEnabled ? void 0 : !0,
|
|
1614
|
-
"aria-label":
|
|
1615
|
-
"aria-expanded":
|
|
1619
|
+
"aria-label": h.question.placeholder,
|
|
1620
|
+
"aria-expanded": h.question.ariaExpanded === null ? void 0 : h.question.ariaExpanded === "true",
|
|
1616
1621
|
"aria-controls": e.value.listElementId,
|
|
1617
1622
|
"aria-activedescendant": e.value.ariaActivedescendant,
|
|
1618
1623
|
placeholder: e.value.placeholderRendered,
|
|
1619
1624
|
onInput: f,
|
|
1620
1625
|
onBlur: p,
|
|
1621
|
-
onFocus:
|
|
1626
|
+
onFocus: b
|
|
1622
1627
|
}, null, 42, rn)
|
|
1623
1628
|
], 2),
|
|
1624
|
-
|
|
1629
|
+
h.question.allowClear && h.question.cssClasses.cleanButtonIconId ? P((t(), u("div", {
|
|
1625
1630
|
key: 1,
|
|
1626
|
-
class: r(
|
|
1627
|
-
onClick:
|
|
1631
|
+
class: r(h.question.cssClasses.cleanButton),
|
|
1632
|
+
onClick: a
|
|
1628
1633
|
}, [
|
|
1629
|
-
C(
|
|
1630
|
-
class: r(
|
|
1631
|
-
iconName:
|
|
1632
|
-
title:
|
|
1634
|
+
C(O, {
|
|
1635
|
+
class: r(h.question.cssClasses.cleanButtonSvg),
|
|
1636
|
+
iconName: h.question.cssClasses.cleanButtonIconId,
|
|
1637
|
+
title: h.question.clearCaption,
|
|
1633
1638
|
size: "auto"
|
|
1634
1639
|
}, null, 8, ["class", "iconName", "title"])
|
|
1635
1640
|
], 2)), [
|
|
1636
|
-
[
|
|
1641
|
+
[A, !h.question.isEmpty()]
|
|
1637
1642
|
]) : m("", !0)
|
|
1638
1643
|
], 42, tn)),
|
|
1639
|
-
|
|
1644
|
+
h.question.isReadOnly ? (t(), u("div", {
|
|
1640
1645
|
key: 2,
|
|
1641
1646
|
disabled: "",
|
|
1642
|
-
id:
|
|
1643
|
-
class: r(
|
|
1647
|
+
id: h.question.inputId,
|
|
1648
|
+
class: r(h.question.getControlClass())
|
|
1644
1649
|
}, [
|
|
1645
|
-
|
|
1650
|
+
h.question.selectedItemLocText ? (t(), y(_, {
|
|
1646
1651
|
key: 0,
|
|
1647
|
-
locString:
|
|
1652
|
+
locString: h.question.selectedItemLocText
|
|
1648
1653
|
}, null, 8, ["locString"])) : m("", !0),
|
|
1649
|
-
c("div", null, I(
|
|
1650
|
-
], 10, an)) : (t(),
|
|
1654
|
+
c("div", null, I(h.question.readOnlyText), 1)
|
|
1655
|
+
], 10, an)) : (t(), y(Q, {
|
|
1651
1656
|
key: 1,
|
|
1652
|
-
model:
|
|
1657
|
+
model: h.question.dropdownListModel.popupModel
|
|
1653
1658
|
}, null, 8, ["model"])),
|
|
1654
|
-
|
|
1659
|
+
h.question.cssClasses.chevronButtonIconId ? (t(), u("div", {
|
|
1655
1660
|
key: 3,
|
|
1656
|
-
class: r(
|
|
1661
|
+
class: r(h.question.cssClasses.chevronButton),
|
|
1662
|
+
onPointerdown: i
|
|
1657
1663
|
}, [
|
|
1658
|
-
C(
|
|
1659
|
-
class: r(
|
|
1660
|
-
iconName:
|
|
1664
|
+
C(O, {
|
|
1665
|
+
class: r(h.question.cssClasses.chevronButtonSvg),
|
|
1666
|
+
iconName: h.question.cssClasses.chevronButtonIconId,
|
|
1661
1667
|
size: "auto"
|
|
1662
1668
|
}, null, 8, ["class", "iconName"])
|
|
1663
|
-
],
|
|
1669
|
+
], 34)) : m("", !0)
|
|
1664
1670
|
], 2);
|
|
1665
1671
|
};
|
|
1666
1672
|
}
|
|
1667
|
-
}), dn = /* @__PURE__ */
|
|
1673
|
+
}), dn = /* @__PURE__ */ g({
|
|
1668
1674
|
__name: "Tagbox",
|
|
1669
1675
|
props: {
|
|
1670
1676
|
question: {}
|
|
1671
1677
|
},
|
|
1672
1678
|
setup(l) {
|
|
1673
|
-
const n = l, o =
|
|
1674
|
-
return
|
|
1675
|
-
const i =
|
|
1679
|
+
const n = l, o = T(null);
|
|
1680
|
+
return H(n, o), (e, s) => {
|
|
1681
|
+
const i = q("sv-tagbox"), a = q("survey-other-choice");
|
|
1676
1682
|
return t(), u("div", {
|
|
1677
1683
|
class: r(e.question.renderCssRoot),
|
|
1678
1684
|
ref_key: "root",
|
|
1679
1685
|
ref: o
|
|
1680
1686
|
}, [
|
|
1681
1687
|
C(i, { question: e.question }, null, 8, ["question"]),
|
|
1682
|
-
e.question.isOtherSelected ? (t(),
|
|
1688
|
+
e.question.isOtherSelected ? (t(), y(a, {
|
|
1683
1689
|
key: 0,
|
|
1684
1690
|
question: e.question
|
|
1685
1691
|
}, null, 8, ["question"])) : m("", !0)
|
|
1686
1692
|
], 2);
|
|
1687
1693
|
};
|
|
1688
1694
|
}
|
|
1689
|
-
}), mn = ["id", "tabindex", "disabled", "role", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], cn = ["id"], pn = /* @__PURE__ */
|
|
1695
|
+
}), mn = ["id", "tabindex", "disabled", "role", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], cn = ["id"], pn = /* @__PURE__ */ g({
|
|
1690
1696
|
__name: "Tagbox",
|
|
1691
1697
|
props: {
|
|
1692
1698
|
question: {}
|
|
1693
1699
|
},
|
|
1694
1700
|
setup(l) {
|
|
1695
|
-
const n = l, o =
|
|
1696
|
-
const
|
|
1697
|
-
return
|
|
1698
|
-
}), e = (
|
|
1699
|
-
var
|
|
1700
|
-
(
|
|
1701
|
-
}, s = (
|
|
1702
|
-
var
|
|
1703
|
-
(
|
|
1704
|
-
}, i = (
|
|
1705
|
-
var
|
|
1706
|
-
(
|
|
1707
|
-
}, a = (
|
|
1708
|
-
var
|
|
1709
|
-
(
|
|
1710
|
-
}
|
|
1711
|
-
|
|
1712
|
-
|
|
1701
|
+
const n = l, o = R(() => {
|
|
1702
|
+
const p = n.question;
|
|
1703
|
+
return p.dropdownListModel || (p.dropdownListModel = new Se(p)), n.question.dropdownListModel;
|
|
1704
|
+
}), e = (p) => {
|
|
1705
|
+
var b;
|
|
1706
|
+
(b = o.value) == null || b.onClick(p);
|
|
1707
|
+
}, s = (p) => {
|
|
1708
|
+
var b;
|
|
1709
|
+
(b = o.value) == null || b.chevronPointerDown(p);
|
|
1710
|
+
}, i = (p) => {
|
|
1711
|
+
var b;
|
|
1712
|
+
(b = o.value) == null || b.onClear(p);
|
|
1713
|
+
}, a = (p) => {
|
|
1714
|
+
var b;
|
|
1715
|
+
(b = o.value) == null || b.keyHandler(p);
|
|
1716
|
+
}, d = (p) => {
|
|
1717
|
+
var b;
|
|
1718
|
+
(b = o.value) == null || b.onBlur(p);
|
|
1719
|
+
}, v = R(() => n.question.selectedChoices);
|
|
1720
|
+
return L(() => o.value), (p, b) => {
|
|
1721
|
+
const f = q("sv-tagbox-item"), $ = q("sv-tagbox-filter"), M = q("sv-svg-icon"), h = q("sv-popup");
|
|
1713
1722
|
return t(), u("div", {
|
|
1714
|
-
class: r(
|
|
1723
|
+
class: r(p.question.cssClasses.selectWrapper),
|
|
1715
1724
|
onClick: e
|
|
1716
1725
|
}, [
|
|
1717
|
-
|
|
1726
|
+
p.question.isReadOnly ? m("", !0) : (t(), u("div", {
|
|
1718
1727
|
key: 0,
|
|
1719
|
-
id:
|
|
1728
|
+
id: p.question.inputId,
|
|
1720
1729
|
tabindex: o.value.inputReadOnly ? void 0 : 0,
|
|
1721
|
-
disabled:
|
|
1722
|
-
onKeydown:
|
|
1723
|
-
onBlur:
|
|
1724
|
-
class: r(
|
|
1725
|
-
role:
|
|
1726
|
-
"aria-required":
|
|
1727
|
-
"aria-label":
|
|
1728
|
-
"aria-invalid":
|
|
1729
|
-
"aria-describedby":
|
|
1730
|
-
"aria-expanded":
|
|
1730
|
+
disabled: p.question.isInputReadOnly ? !0 : null,
|
|
1731
|
+
onKeydown: a,
|
|
1732
|
+
onBlur: d,
|
|
1733
|
+
class: r(p.question.getControlClass()),
|
|
1734
|
+
role: p.question.ariaRole,
|
|
1735
|
+
"aria-required": p.question.ariaRequired,
|
|
1736
|
+
"aria-label": p.question.ariaLabel,
|
|
1737
|
+
"aria-invalid": p.question.ariaInvalid,
|
|
1738
|
+
"aria-describedby": p.question.ariaDescribedBy,
|
|
1739
|
+
"aria-expanded": p.question.ariaExpanded === null ? void 0 : p.question.ariaExpanded === "true",
|
|
1731
1740
|
"aria-controls": o.value.listElementId,
|
|
1732
1741
|
"aria-activedescendant": o.value.ariaActivedescendant,
|
|
1733
|
-
required:
|
|
1742
|
+
required: p.question.isRequired ? !0 : null
|
|
1734
1743
|
}, [
|
|
1735
1744
|
c("div", {
|
|
1736
|
-
class: r(
|
|
1745
|
+
class: r(p.question.cssClasses.controlValue)
|
|
1737
1746
|
}, [
|
|
1738
|
-
(t(!0), u(w, null,
|
|
1739
|
-
item:
|
|
1740
|
-
question:
|
|
1741
|
-
key: "item" +
|
|
1747
|
+
(t(!0), u(w, null, B(v.value, (D, _) => (t(), y(f, {
|
|
1748
|
+
item: D,
|
|
1749
|
+
question: p.question,
|
|
1750
|
+
key: "item" + _
|
|
1742
1751
|
}, null, 8, ["item", "question"]))), 128)),
|
|
1743
|
-
C(
|
|
1752
|
+
C($, {
|
|
1744
1753
|
model: o.value,
|
|
1745
|
-
question:
|
|
1754
|
+
question: p.question
|
|
1746
1755
|
}, null, 8, ["model", "question"])
|
|
1747
1756
|
], 2),
|
|
1748
|
-
|
|
1757
|
+
p.question.allowClear && p.question.cssClasses.cleanButtonIconId ? P((t(), u("div", {
|
|
1749
1758
|
key: 0,
|
|
1750
|
-
class: r(
|
|
1751
|
-
onClick:
|
|
1759
|
+
class: r(p.question.cssClasses.cleanButton),
|
|
1760
|
+
onClick: i
|
|
1752
1761
|
}, [
|
|
1753
|
-
C(
|
|
1754
|
-
class: r(
|
|
1755
|
-
iconName:
|
|
1756
|
-
title:
|
|
1762
|
+
C(M, {
|
|
1763
|
+
class: r(p.question.cssClasses.cleanButtonSvg),
|
|
1764
|
+
iconName: p.question.cssClasses.cleanButtonIconId,
|
|
1765
|
+
title: p.question.clearCaption,
|
|
1757
1766
|
size: "auto"
|
|
1758
1767
|
}, null, 8, ["class", "iconName", "title"])
|
|
1759
1768
|
], 2)), [
|
|
1760
|
-
[
|
|
1769
|
+
[A, !p.question.isEmpty()]
|
|
1761
1770
|
]) : m("", !0)
|
|
1762
1771
|
], 42, mn)),
|
|
1763
|
-
|
|
1772
|
+
p.question.isReadOnly ? (t(), u("div", {
|
|
1764
1773
|
key: 2,
|
|
1765
1774
|
disabled: "",
|
|
1766
|
-
id:
|
|
1767
|
-
class: r(
|
|
1775
|
+
id: p.question.inputId,
|
|
1776
|
+
class: r(p.question.getControlClass())
|
|
1768
1777
|
}, [
|
|
1769
|
-
c("div", null, I(
|
|
1770
|
-
], 10, cn)) : (t(),
|
|
1778
|
+
c("div", null, I(p.question.readOnlyText), 1)
|
|
1779
|
+
], 10, cn)) : (t(), y(h, {
|
|
1771
1780
|
key: 1,
|
|
1772
1781
|
model: o.value.popupModel
|
|
1773
1782
|
}, null, 8, ["model"])),
|
|
1774
|
-
|
|
1783
|
+
p.question.cssClasses.chevronButtonIconId ? (t(), u("div", {
|
|
1775
1784
|
key: 3,
|
|
1776
|
-
class: r(
|
|
1785
|
+
class: r(p.question.cssClasses.chevronButton),
|
|
1786
|
+
onPointerdown: s
|
|
1777
1787
|
}, [
|
|
1778
|
-
C(
|
|
1779
|
-
class: r(
|
|
1780
|
-
iconName:
|
|
1788
|
+
C(M, {
|
|
1789
|
+
class: r(p.question.cssClasses.chevronButtonSvg),
|
|
1790
|
+
iconName: p.question.cssClasses.chevronButtonIconId,
|
|
1781
1791
|
size: "auto"
|
|
1782
1792
|
}, null, 8, ["class", "iconName"])
|
|
1783
|
-
],
|
|
1793
|
+
], 34)) : m("", !0)
|
|
1784
1794
|
], 2);
|
|
1785
1795
|
};
|
|
1786
1796
|
}
|
|
1787
|
-
}), vn = { style: { visibility: "hidden" } }, qn = ["placeholder", "disabled", "inputmode", "role", "aria-label", "aria-expanded", "aria-controls", "aria-activedescendant", "id", "readonly", "size"], yn = /* @__PURE__ */
|
|
1797
|
+
}), vn = { style: { visibility: "hidden" } }, qn = ["placeholder", "disabled", "inputmode", "role", "aria-label", "aria-expanded", "aria-controls", "aria-activedescendant", "id", "readonly", "size"], yn = /* @__PURE__ */ g({
|
|
1788
1798
|
__name: "TagboxFilter",
|
|
1789
1799
|
props: {
|
|
1790
1800
|
question: {},
|
|
@@ -1801,8 +1811,8 @@ const sn = /* @__PURE__ */ h({
|
|
|
1801
1811
|
}, i = (a) => {
|
|
1802
1812
|
n.model.onFocus(a);
|
|
1803
1813
|
};
|
|
1804
|
-
return
|
|
1805
|
-
const
|
|
1814
|
+
return L(() => n.model), (a, d) => {
|
|
1815
|
+
const v = q("survey-string");
|
|
1806
1816
|
return t(), u("div", {
|
|
1807
1817
|
class: r(a.question.cssClasses.hint)
|
|
1808
1818
|
}, [
|
|
@@ -1815,7 +1825,7 @@ const sn = /* @__PURE__ */ h({
|
|
|
1815
1825
|
c("div", {
|
|
1816
1826
|
class: r(a.question.cssClasses.hintSuffixWrapper)
|
|
1817
1827
|
}, [
|
|
1818
|
-
a.question.showSelectedItemLocText ? (t(),
|
|
1828
|
+
a.question.showSelectedItemLocText ? (t(), y(v, {
|
|
1819
1829
|
key: 0,
|
|
1820
1830
|
locString: a.question.selectedItemLocText
|
|
1821
1831
|
}, null, 8, ["locString"])) : m("", !0),
|
|
@@ -1826,10 +1836,10 @@ const sn = /* @__PURE__ */ h({
|
|
|
1826
1836
|
c("span", vn, I(a.model.inputStringRendered), 1),
|
|
1827
1837
|
c("span", null, I(a.model.hintStringSuffix), 1)
|
|
1828
1838
|
], 2)) : m("", !0),
|
|
1829
|
-
|
|
1839
|
+
P(c("input", {
|
|
1830
1840
|
type: "text",
|
|
1831
1841
|
autocomplete: "off",
|
|
1832
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
1842
|
+
"onUpdate:modelValue": d[0] || (d[0] = (p) => a.model.inputStringRendered = p),
|
|
1833
1843
|
class: r(a.question.cssClasses.filterStringInput),
|
|
1834
1844
|
placeholder: a.model.filterStringPlaceholder,
|
|
1835
1845
|
disabled: a.question.isInputReadOnly,
|
|
@@ -1853,7 +1863,7 @@ const sn = /* @__PURE__ */ h({
|
|
|
1853
1863
|
], 2);
|
|
1854
1864
|
};
|
|
1855
1865
|
}
|
|
1856
|
-
}), gn = { class: "sv-tagbox__item-text" }, hn = /* @__PURE__ */
|
|
1866
|
+
}), gn = { class: "sv-tagbox__item-text" }, hn = /* @__PURE__ */ g({
|
|
1857
1867
|
__name: "TagboxItem",
|
|
1858
1868
|
props: {
|
|
1859
1869
|
question: {},
|
|
@@ -1863,8 +1873,8 @@ const sn = /* @__PURE__ */ h({
|
|
|
1863
1873
|
const n = l, o = (e) => {
|
|
1864
1874
|
n.question.dropdownListModel.deselectItem(n.item.value), e.stopPropagation();
|
|
1865
1875
|
};
|
|
1866
|
-
return
|
|
1867
|
-
const i =
|
|
1876
|
+
return L(() => n.item), (e, s) => {
|
|
1877
|
+
const i = q("survey-string"), a = q("sv-svg-icon");
|
|
1868
1878
|
return t(), u("div", {
|
|
1869
1879
|
class: "sv-tagbox__item",
|
|
1870
1880
|
key: e.item.key
|
|
@@ -1887,28 +1897,28 @@ const sn = /* @__PURE__ */ h({
|
|
|
1887
1897
|
]);
|
|
1888
1898
|
};
|
|
1889
1899
|
}
|
|
1890
|
-
}), Cn = /* @__PURE__ */
|
|
1900
|
+
}), Cn = /* @__PURE__ */ g({
|
|
1891
1901
|
__name: "Ranking",
|
|
1892
1902
|
props: {
|
|
1893
1903
|
question: {}
|
|
1894
1904
|
},
|
|
1895
1905
|
setup(l) {
|
|
1896
|
-
const n = l, o =
|
|
1897
|
-
|
|
1906
|
+
const n = l, o = T(null);
|
|
1907
|
+
H(n, o);
|
|
1898
1908
|
const e = (s) => n.question.getNumberByIndex(s);
|
|
1899
1909
|
return (s, i) => {
|
|
1900
|
-
const a =
|
|
1910
|
+
const a = q("survey-ranking-item");
|
|
1901
1911
|
return t(), u("div", {
|
|
1902
1912
|
class: r(s.question.rootClass),
|
|
1903
1913
|
ref_key: "root",
|
|
1904
1914
|
ref: o
|
|
1905
1915
|
}, [
|
|
1906
|
-
s.question.selectToRankEnabled ? m("", !0) : (t(!0), u(w, { key: 0 },
|
|
1907
|
-
key: d.value + "-" +
|
|
1916
|
+
s.question.selectToRankEnabled ? m("", !0) : (t(!0), u(w, { key: 0 }, B(s.question.rankingChoices, (d, v) => (t(), y(a, {
|
|
1917
|
+
key: d.value + "-" + v + "-item",
|
|
1908
1918
|
class: r(s.question.getItemClass(d)),
|
|
1909
1919
|
text: d.locText,
|
|
1910
|
-
index:
|
|
1911
|
-
indexText: e(
|
|
1920
|
+
index: v,
|
|
1921
|
+
indexText: e(v),
|
|
1912
1922
|
cssClasses: s.question.cssClasses,
|
|
1913
1923
|
question: s.question,
|
|
1914
1924
|
item: d
|
|
@@ -1918,12 +1928,12 @@ const sn = /* @__PURE__ */ h({
|
|
|
1918
1928
|
class: r(s.question.getContainerClasses("from")),
|
|
1919
1929
|
"data-ranking": "from-container"
|
|
1920
1930
|
}, [
|
|
1921
|
-
(t(!0), u(w, null,
|
|
1922
|
-
key: d.value + "-" +
|
|
1931
|
+
(t(!0), u(w, null, B(s.question.unRankingChoices, (d, v) => (t(), y(a, {
|
|
1932
|
+
key: d.value + "-" + v + "-item",
|
|
1923
1933
|
class: r(s.question.getItemClass(d)),
|
|
1924
1934
|
text: d.locText,
|
|
1925
|
-
index:
|
|
1926
|
-
indexText: e(
|
|
1935
|
+
index: v,
|
|
1936
|
+
indexText: e(v),
|
|
1927
1937
|
cssClasses: s.question.cssClasses,
|
|
1928
1938
|
question: s.question,
|
|
1929
1939
|
item: d,
|
|
@@ -1943,12 +1953,12 @@ const sn = /* @__PURE__ */ h({
|
|
|
1943
1953
|
class: r(s.question.getContainerClasses("to")),
|
|
1944
1954
|
"data-ranking": "to-container"
|
|
1945
1955
|
}, [
|
|
1946
|
-
(t(!0), u(w, null,
|
|
1947
|
-
key: d.value + "-" +
|
|
1956
|
+
(t(!0), u(w, null, B(s.question.rankingChoices, (d, v) => (t(), y(a, {
|
|
1957
|
+
key: d.value + "-" + v + "-item",
|
|
1948
1958
|
class: r(s.question.getItemClass(d)),
|
|
1949
1959
|
text: d.locText,
|
|
1950
|
-
index:
|
|
1951
|
-
indexText: e(
|
|
1960
|
+
index: v,
|
|
1961
|
+
indexText: e(v),
|
|
1952
1962
|
cssClasses: s.question.cssClasses,
|
|
1953
1963
|
question: s.question,
|
|
1954
1964
|
item: d
|
|
@@ -1969,7 +1979,7 @@ const sn = /* @__PURE__ */ h({
|
|
|
1969
1979
|
], wn = /* @__PURE__ */ c("path", { d: "M10 5L5 0L0 5H4V9H6V5H10Z" }, null, -1), Sn = /* @__PURE__ */ c("path", { d: "M6 19V15H4V19H0L5 24L10 19H6Z" }, null, -1), Rn = [
|
|
1970
1980
|
wn,
|
|
1971
1981
|
Sn
|
|
1972
|
-
], Tn = /* @__PURE__ */
|
|
1982
|
+
], Tn = /* @__PURE__ */ g({
|
|
1973
1983
|
__name: "RankingItem",
|
|
1974
1984
|
props: {
|
|
1975
1985
|
index: {},
|
|
@@ -1983,8 +1993,8 @@ const sn = /* @__PURE__ */ h({
|
|
|
1983
1993
|
},
|
|
1984
1994
|
setup(l) {
|
|
1985
1995
|
const n = l;
|
|
1986
|
-
return
|
|
1987
|
-
const s =
|
|
1996
|
+
return L(() => n.item), (o, e) => {
|
|
1997
|
+
const s = q("survey-string");
|
|
1988
1998
|
return t(), u("div", {
|
|
1989
1999
|
tabindex: o.question.getItemTabIndex(o.item),
|
|
1990
2000
|
"data-sv-drop-target-ranking-item": o.index,
|
|
@@ -2042,17 +2052,17 @@ const sn = /* @__PURE__ */ h({
|
|
|
2042
2052
|
}), $n = { role: "radiogroup" }, Bn = /* @__PURE__ */ c("legend", {
|
|
2043
2053
|
role: "presentation",
|
|
2044
2054
|
class: "sv-hidden"
|
|
2045
|
-
}, null, -1), Ln = /* @__PURE__ */
|
|
2055
|
+
}, null, -1), Ln = /* @__PURE__ */ g({
|
|
2046
2056
|
__name: "Rating",
|
|
2047
2057
|
props: {
|
|
2048
2058
|
question: {}
|
|
2049
2059
|
},
|
|
2050
2060
|
setup(l) {
|
|
2051
|
-
const n = l, o =
|
|
2052
|
-
|
|
2061
|
+
const n = l, o = T(null);
|
|
2062
|
+
H(n, o);
|
|
2053
2063
|
const e = (s) => n.question.getInputId(s);
|
|
2054
2064
|
return (s, i) => {
|
|
2055
|
-
const a =
|
|
2065
|
+
const a = q("survey-string");
|
|
2056
2066
|
return t(), u("div", {
|
|
2057
2067
|
class: r(s.question.ratingRootCss),
|
|
2058
2068
|
ref_key: "root",
|
|
@@ -2068,10 +2078,10 @@ const sn = /* @__PURE__ */ h({
|
|
|
2068
2078
|
locString: s.question.locMinRateDescription
|
|
2069
2079
|
}, null, 8, ["locString"])
|
|
2070
2080
|
], 2)) : m("", !0),
|
|
2071
|
-
(t(!0), u(w, null,
|
|
2072
|
-
key: e(
|
|
2081
|
+
(t(!0), u(w, null, B(s.question.renderedRateItems, (d, v) => (t(), y(N(s.question.itemComponentName), {
|
|
2082
|
+
key: e(v),
|
|
2073
2083
|
item: d,
|
|
2074
|
-
index:
|
|
2084
|
+
index: v,
|
|
2075
2085
|
question: s.question
|
|
2076
2086
|
}, null, 8, ["item", "index", "question"]))), 128)),
|
|
2077
2087
|
s.question.hasMaxLabel ? (t(), u("span", {
|
|
@@ -2086,7 +2096,7 @@ const sn = /* @__PURE__ */ h({
|
|
|
2086
2096
|
], 2);
|
|
2087
2097
|
};
|
|
2088
2098
|
}
|
|
2089
|
-
}), Dn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Pn = /* @__PURE__ */
|
|
2099
|
+
}), Dn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Pn = /* @__PURE__ */ g({
|
|
2090
2100
|
__name: "RatingItem",
|
|
2091
2101
|
props: {
|
|
2092
2102
|
question: {},
|
|
@@ -2095,8 +2105,8 @@ const sn = /* @__PURE__ */ h({
|
|
|
2095
2105
|
},
|
|
2096
2106
|
setup(l) {
|
|
2097
2107
|
const n = l;
|
|
2098
|
-
return
|
|
2099
|
-
const s =
|
|
2108
|
+
return L(() => n.item), (o, e) => {
|
|
2109
|
+
const s = q("survey-string");
|
|
2100
2110
|
return t(), u("label", {
|
|
2101
2111
|
key: o.item.value,
|
|
2102
2112
|
onMousedown: e[1] || (e[1] = (i) => o.question.onMouseDown()),
|
|
@@ -2125,7 +2135,7 @@ const sn = /* @__PURE__ */ h({
|
|
|
2125
2135
|
], 34);
|
|
2126
2136
|
};
|
|
2127
2137
|
}
|
|
2128
|
-
}), Mn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Nn = /* @__PURE__ */
|
|
2138
|
+
}), Mn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Nn = /* @__PURE__ */ g({
|
|
2129
2139
|
__name: "RatingItemSmiley",
|
|
2130
2140
|
props: {
|
|
2131
2141
|
question: {},
|
|
@@ -2134,8 +2144,8 @@ const sn = /* @__PURE__ */ h({
|
|
|
2134
2144
|
},
|
|
2135
2145
|
setup(l) {
|
|
2136
2146
|
const n = l;
|
|
2137
|
-
return
|
|
2138
|
-
const s =
|
|
2147
|
+
return L(() => n.item), (o, e) => {
|
|
2148
|
+
const s = q("sv-svg-icon");
|
|
2139
2149
|
return t(), u("label", {
|
|
2140
2150
|
key: o.item.value,
|
|
2141
2151
|
onMousedown: e[1] || (e[1] = (i) => o.question.onMouseDown()),
|
|
@@ -2165,7 +2175,7 @@ const sn = /* @__PURE__ */ h({
|
|
|
2165
2175
|
], 38);
|
|
2166
2176
|
};
|
|
2167
2177
|
}
|
|
2168
|
-
}), Hn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], An = /* @__PURE__ */
|
|
2178
|
+
}), Hn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], An = /* @__PURE__ */ g({
|
|
2169
2179
|
__name: "RatingItemStar",
|
|
2170
2180
|
props: {
|
|
2171
2181
|
question: {},
|
|
@@ -2174,8 +2184,8 @@ const sn = /* @__PURE__ */ h({
|
|
|
2174
2184
|
},
|
|
2175
2185
|
setup(l) {
|
|
2176
2186
|
const n = l;
|
|
2177
|
-
return
|
|
2178
|
-
const s =
|
|
2187
|
+
return L(() => n.item), (o, e) => {
|
|
2188
|
+
const s = q("sv-svg-icon");
|
|
2179
2189
|
return t(), u("label", {
|
|
2180
2190
|
key: o.item.value,
|
|
2181
2191
|
onMousedown: e[1] || (e[1] = (i) => o.question.onMouseDown()),
|
|
@@ -2212,20 +2222,20 @@ const sn = /* @__PURE__ */ h({
|
|
|
2212
2222
|
};
|
|
2213
2223
|
}
|
|
2214
2224
|
});
|
|
2215
|
-
|
|
2225
|
+
J.Instance.registerRenderer(
|
|
2216
2226
|
"rating",
|
|
2217
2227
|
"dropdown",
|
|
2218
2228
|
"sv-rating-dropdown"
|
|
2219
2229
|
);
|
|
2220
|
-
const En = /* @__PURE__ */
|
|
2230
|
+
const En = /* @__PURE__ */ g({
|
|
2221
2231
|
__name: "RatingDropdown",
|
|
2222
2232
|
props: {
|
|
2223
2233
|
question: {}
|
|
2224
2234
|
},
|
|
2225
2235
|
setup(l) {
|
|
2226
|
-
const n = l, o =
|
|
2227
|
-
return
|
|
2228
|
-
const i =
|
|
2236
|
+
const n = l, o = T(null);
|
|
2237
|
+
return H(n, o), (e, s) => {
|
|
2238
|
+
const i = q("sv-dropdown");
|
|
2229
2239
|
return t(), u("div", {
|
|
2230
2240
|
class: r(e.question.cssClasses.rootDropdown),
|
|
2231
2241
|
ref_key: "root",
|
|
@@ -2235,34 +2245,34 @@ const En = /* @__PURE__ */ h({
|
|
|
2235
2245
|
], 2);
|
|
2236
2246
|
};
|
|
2237
2247
|
}
|
|
2238
|
-
}), _n = ["name", "value", "id", ".indeterminate", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Vn = /* @__PURE__ */
|
|
2248
|
+
}), _n = ["name", "value", "id", ".indeterminate", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Vn = /* @__PURE__ */ g({
|
|
2239
2249
|
__name: "BooleanSwitch",
|
|
2240
2250
|
props: {
|
|
2241
2251
|
question: {}
|
|
2242
2252
|
},
|
|
2243
2253
|
setup(l) {
|
|
2244
|
-
const n = l, o =
|
|
2245
|
-
|
|
2254
|
+
const n = l, o = T(null);
|
|
2255
|
+
H(n, o);
|
|
2246
2256
|
const e = (i, a) => {
|
|
2247
2257
|
n.question.onLabelClick(i, a);
|
|
2248
2258
|
}, s = (i) => {
|
|
2249
2259
|
n.question.onSwitchClickModel(i);
|
|
2250
2260
|
};
|
|
2251
2261
|
return (i, a) => {
|
|
2252
|
-
var
|
|
2253
|
-
const d =
|
|
2262
|
+
var v;
|
|
2263
|
+
const d = q("survey-string");
|
|
2254
2264
|
return t(), u("div", {
|
|
2255
2265
|
class: r(i.question.cssClasses.root),
|
|
2256
|
-
onKeydown: a[4] || (a[4] = (
|
|
2266
|
+
onKeydown: a[4] || (a[4] = (p) => i.question.onKeyDownCore(p))
|
|
2257
2267
|
}, [
|
|
2258
2268
|
c("label", {
|
|
2259
2269
|
class: r(i.question.getItemCss())
|
|
2260
2270
|
}, [
|
|
2261
|
-
|
|
2271
|
+
P(c("input", {
|
|
2262
2272
|
type: "checkbox",
|
|
2263
2273
|
name: i.question.name,
|
|
2264
|
-
value: (
|
|
2265
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
2274
|
+
value: (v = i.question.booleanValue) != null ? v : "",
|
|
2275
|
+
"onUpdate:modelValue": a[0] || (a[0] = (p) => i.question.booleanValue = p),
|
|
2266
2276
|
class: r(i.question.cssClasses.control),
|
|
2267
2277
|
id: i.question.inputId,
|
|
2268
2278
|
".indeterminate": i.question.isIndeterminate,
|
|
@@ -2272,11 +2282,11 @@ const En = /* @__PURE__ */ h({
|
|
|
2272
2282
|
"aria-invalid": i.question.ariaInvalid,
|
|
2273
2283
|
"aria-describedby": i.question.ariaDescribedBy
|
|
2274
2284
|
}, null, 10, _n), [
|
|
2275
|
-
[
|
|
2285
|
+
[U, i.question.booleanValue]
|
|
2276
2286
|
]),
|
|
2277
2287
|
c("div", {
|
|
2278
2288
|
class: r(i.question.cssClasses.sliderGhost),
|
|
2279
|
-
onClick: a[1] || (a[1] = (
|
|
2289
|
+
onClick: a[1] || (a[1] = (p) => e(p, !1))
|
|
2280
2290
|
}, [
|
|
2281
2291
|
c("span", {
|
|
2282
2292
|
class: r(i.question.getLabelCss(!1))
|
|
@@ -2288,7 +2298,7 @@ const En = /* @__PURE__ */ h({
|
|
|
2288
2298
|
], 2),
|
|
2289
2299
|
c("div", {
|
|
2290
2300
|
class: r(i.question.cssClasses.switch),
|
|
2291
|
-
onClick: a[2] || (a[2] = (
|
|
2301
|
+
onClick: a[2] || (a[2] = (p) => s(p))
|
|
2292
2302
|
}, [
|
|
2293
2303
|
c("span", {
|
|
2294
2304
|
class: r(i.question.cssClasses.slider)
|
|
@@ -2305,7 +2315,7 @@ const En = /* @__PURE__ */ h({
|
|
|
2305
2315
|
], 2),
|
|
2306
2316
|
c("div", {
|
|
2307
2317
|
class: r(i.question.cssClasses.sliderGhost),
|
|
2308
|
-
onClick: a[3] || (a[3] = (
|
|
2318
|
+
onClick: a[3] || (a[3] = (p) => e(p, !0))
|
|
2309
2319
|
}, [
|
|
2310
2320
|
c("span", {
|
|
2311
2321
|
class: r(i.question.getLabelCss(!0))
|
|
@@ -2320,20 +2330,20 @@ const En = /* @__PURE__ */ h({
|
|
|
2320
2330
|
};
|
|
2321
2331
|
}
|
|
2322
2332
|
});
|
|
2323
|
-
|
|
2333
|
+
J.Instance.registerRenderer(
|
|
2324
2334
|
"boolean",
|
|
2325
2335
|
"radio",
|
|
2326
2336
|
"sv-boolean-radio"
|
|
2327
2337
|
);
|
|
2328
|
-
const On = /* @__PURE__ */
|
|
2338
|
+
const On = /* @__PURE__ */ g({
|
|
2329
2339
|
__name: "BooleanRadio",
|
|
2330
2340
|
props: {
|
|
2331
2341
|
question: {}
|
|
2332
2342
|
},
|
|
2333
2343
|
setup(l) {
|
|
2334
|
-
const n = l, o =
|
|
2335
|
-
return
|
|
2336
|
-
const i =
|
|
2344
|
+
const n = l, o = T(null);
|
|
2345
|
+
return H(n, o), (e, s) => {
|
|
2346
|
+
const i = q("sv-boolean-radio-item");
|
|
2337
2347
|
return t(), u("div", {
|
|
2338
2348
|
class: r(e.question.cssClasses.rootRadio),
|
|
2339
2349
|
ref_key: "root",
|
|
@@ -2343,13 +2353,13 @@ const On = /* @__PURE__ */ h({
|
|
|
2343
2353
|
role: "presentation",
|
|
2344
2354
|
class: r(e.question.cssClasses.radioFieldset)
|
|
2345
2355
|
}, [
|
|
2346
|
-
(t(),
|
|
2356
|
+
(t(), y(i, {
|
|
2347
2357
|
key: !1,
|
|
2348
2358
|
question: e.question,
|
|
2349
2359
|
locText: e.question.locLabelFalse,
|
|
2350
2360
|
value: !1
|
|
2351
2361
|
}, null, 8, ["question", "locText"])),
|
|
2352
|
-
(t(),
|
|
2362
|
+
(t(), y(i, {
|
|
2353
2363
|
key: !0,
|
|
2354
2364
|
question: e.question,
|
|
2355
2365
|
locText: e.question.locLabelTrue,
|
|
@@ -2359,7 +2369,7 @@ const On = /* @__PURE__ */ h({
|
|
|
2359
2369
|
], 2);
|
|
2360
2370
|
};
|
|
2361
2371
|
}
|
|
2362
|
-
}), Fn = ["name", "value", "checked", "aria-describedby", "disabled"], Wn = ["xlink:href"], zn = /* @__PURE__ */
|
|
2372
|
+
}), Fn = ["name", "value", "checked", "aria-describedby", "disabled"], Wn = ["xlink:href"], zn = /* @__PURE__ */ g({
|
|
2363
2373
|
__name: "BooleanRadioItem",
|
|
2364
2374
|
props: {
|
|
2365
2375
|
question: {},
|
|
@@ -2372,7 +2382,7 @@ const On = /* @__PURE__ */ h({
|
|
|
2372
2382
|
s.booleanValue = e.target.value == "true";
|
|
2373
2383
|
};
|
|
2374
2384
|
return (e, s) => {
|
|
2375
|
-
const i =
|
|
2385
|
+
const i = q("survey-string");
|
|
2376
2386
|
return t(), u("div", {
|
|
2377
2387
|
role: "presentation",
|
|
2378
2388
|
class: r(e.question.getRadioItemClass(e.question.cssClasses, e.value))
|
|
@@ -2413,22 +2423,22 @@ const On = /* @__PURE__ */ h({
|
|
|
2413
2423
|
};
|
|
2414
2424
|
}
|
|
2415
2425
|
}), Un = ["name", "value", "id", ".indeterminate", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Kn = ["xlink:href"], jn = /* @__PURE__ */ c("span", { class: "check" }, null, -1), Qn = ["id"];
|
|
2416
|
-
|
|
2426
|
+
J.Instance.registerRenderer(
|
|
2417
2427
|
"boolean",
|
|
2418
2428
|
"checkbox",
|
|
2419
2429
|
"sv-boolean-checkbox"
|
|
2420
2430
|
);
|
|
2421
|
-
const Zn = /* @__PURE__ */
|
|
2431
|
+
const Zn = /* @__PURE__ */ g({
|
|
2422
2432
|
__name: "BooleanCheckbox",
|
|
2423
2433
|
props: {
|
|
2424
2434
|
question: {},
|
|
2425
2435
|
css: {}
|
|
2426
2436
|
},
|
|
2427
2437
|
setup(l) {
|
|
2428
|
-
const n = l, o =
|
|
2429
|
-
return
|
|
2430
|
-
var
|
|
2431
|
-
const i =
|
|
2438
|
+
const n = l, o = T(null);
|
|
2439
|
+
return H(n, o), (e, s) => {
|
|
2440
|
+
var v;
|
|
2441
|
+
const i = q("survey-element-title-content"), a = q("sv-title-actions"), d = q("survey-string");
|
|
2432
2442
|
return t(), u("div", {
|
|
2433
2443
|
class: r(e.question.cssClasses.rootCheckbox),
|
|
2434
2444
|
ref_key: "root",
|
|
@@ -2440,11 +2450,11 @@ const Zn = /* @__PURE__ */ h({
|
|
|
2440
2450
|
c("label", {
|
|
2441
2451
|
class: r(e.question.cssClasses.checkboxLabel)
|
|
2442
2452
|
}, [
|
|
2443
|
-
|
|
2453
|
+
P(c("input", {
|
|
2444
2454
|
type: "checkbox",
|
|
2445
2455
|
name: e.question.name,
|
|
2446
|
-
value: (
|
|
2447
|
-
"onUpdate:modelValue": s[0] || (s[0] = (
|
|
2456
|
+
value: (v = e.question.booleanValue) != null ? v : "",
|
|
2457
|
+
"onUpdate:modelValue": s[0] || (s[0] = (p) => e.question.booleanValue = p),
|
|
2448
2458
|
class: r(e.question.cssClasses.controlCheckbox),
|
|
2449
2459
|
id: e.question.inputId,
|
|
2450
2460
|
".indeterminate": e.question.isIndeterminate,
|
|
@@ -2454,7 +2464,7 @@ const Zn = /* @__PURE__ */ h({
|
|
|
2454
2464
|
"aria-invalid": e.question.ariaInvalid,
|
|
2455
2465
|
"aria-describedby": e.question.ariaDescribedBy
|
|
2456
2466
|
}, null, 10, Un), [
|
|
2457
|
-
[
|
|
2467
|
+
[U, e.question.booleanValue]
|
|
2458
2468
|
]),
|
|
2459
2469
|
c("span", {
|
|
2460
2470
|
class: r(e.question.cssClasses.checkboxMaterialDecorator)
|
|
@@ -2474,12 +2484,12 @@ const Zn = /* @__PURE__ */ h({
|
|
|
2474
2484
|
id: e.question.labelRenderedAriaID,
|
|
2475
2485
|
class: r(e.question.cssClasses.checkboxControlLabel)
|
|
2476
2486
|
}, [
|
|
2477
|
-
e.question.hasTitleActions ? m("", !0) : (t(),
|
|
2487
|
+
e.question.hasTitleActions ? m("", !0) : (t(), y(i, {
|
|
2478
2488
|
key: 0,
|
|
2479
2489
|
element: e.question,
|
|
2480
2490
|
css: e.css
|
|
2481
2491
|
}, null, 8, ["element", "css"])),
|
|
2482
|
-
e.question.hasTitleActions ? (t(),
|
|
2492
|
+
e.question.hasTitleActions ? (t(), y(a, {
|
|
2483
2493
|
key: 1,
|
|
2484
2494
|
element: e.question,
|
|
2485
2495
|
css: e.css
|
|
@@ -2498,35 +2508,35 @@ const Zn = /* @__PURE__ */ h({
|
|
|
2498
2508
|
], 2);
|
|
2499
2509
|
};
|
|
2500
2510
|
}
|
|
2501
|
-
}), Gn = /* @__PURE__ */
|
|
2511
|
+
}), Gn = /* @__PURE__ */ g({
|
|
2502
2512
|
__name: "Multipletext",
|
|
2503
2513
|
props: {
|
|
2504
2514
|
question: {}
|
|
2505
2515
|
},
|
|
2506
2516
|
setup(l) {
|
|
2507
|
-
const n = l, o =
|
|
2508
|
-
return
|
|
2509
|
-
const i =
|
|
2517
|
+
const n = l, o = T(null);
|
|
2518
|
+
return H(n, o), (e, s) => {
|
|
2519
|
+
const i = q("survey-multipletext-item");
|
|
2510
2520
|
return t(), u("table", {
|
|
2511
2521
|
class: r(e.question.getQuestionRootCss()),
|
|
2512
2522
|
ref_key: "root",
|
|
2513
2523
|
ref: o
|
|
2514
2524
|
}, [
|
|
2515
2525
|
c("tbody", null, [
|
|
2516
|
-
(t(!0), u(w, null,
|
|
2526
|
+
(t(!0), u(w, null, B(e.question.getRows(), (a, d) => (t(), u(w, {
|
|
2517
2527
|
key: e.question.inputId + "rowkey" + d
|
|
2518
2528
|
}, [
|
|
2519
2529
|
a.isVisible ? (t(), u("tr", {
|
|
2520
2530
|
key: 0,
|
|
2521
2531
|
class: r(e.question.cssClasses.row)
|
|
2522
2532
|
}, [
|
|
2523
|
-
(t(!0), u(w, null,
|
|
2524
|
-
key: "item" +
|
|
2525
|
-
class: r(
|
|
2533
|
+
(t(!0), u(w, null, B(a.cells, (v) => (t(), u("td", {
|
|
2534
|
+
key: "item" + v.item.editor.id,
|
|
2535
|
+
class: r(v.className)
|
|
2526
2536
|
}, [
|
|
2527
2537
|
C(i, {
|
|
2528
2538
|
question: e.question,
|
|
2529
|
-
cell:
|
|
2539
|
+
cell: v
|
|
2530
2540
|
}, null, 8, ["question", "cell"])
|
|
2531
2541
|
], 2))), 128))
|
|
2532
2542
|
], 2)) : m("", !0)
|
|
@@ -2535,19 +2545,19 @@ const Zn = /* @__PURE__ */ h({
|
|
|
2535
2545
|
], 2);
|
|
2536
2546
|
};
|
|
2537
2547
|
}
|
|
2538
|
-
}), Xn = { key: 1 }, Jn = /* @__PURE__ */
|
|
2548
|
+
}), Xn = { key: 1 }, Jn = /* @__PURE__ */ g({
|
|
2539
2549
|
__name: "MultipletextItem",
|
|
2540
2550
|
props: {
|
|
2541
2551
|
question: {},
|
|
2542
2552
|
cell: {}
|
|
2543
2553
|
},
|
|
2544
2554
|
setup(l) {
|
|
2545
|
-
const n = l, o = (s) =>
|
|
2546
|
-
|
|
2547
|
-
const e =
|
|
2555
|
+
const n = l, o = (s) => se(s);
|
|
2556
|
+
L(() => n.cell.item.editor);
|
|
2557
|
+
const e = R(() => n.cell.item);
|
|
2548
2558
|
return (s, i) => {
|
|
2549
|
-
const a =
|
|
2550
|
-
return s.cell.isErrorsCell ? (t(),
|
|
2559
|
+
const a = q("survey-string"), d = q("survey-errors");
|
|
2560
|
+
return s.cell.isErrorsCell ? (t(), y(d, {
|
|
2551
2561
|
key: 1,
|
|
2552
2562
|
element: e.value.editor
|
|
2553
2563
|
}, null, 8, ["element"])) : (t(), u("label", {
|
|
@@ -2574,23 +2584,23 @@ const Zn = /* @__PURE__ */ h({
|
|
|
2574
2584
|
(t(), u("div", {
|
|
2575
2585
|
key: e.value.editor.id,
|
|
2576
2586
|
class: r(s.question.getItemCss()),
|
|
2577
|
-
onFocusin: i[0] || (i[0] = (
|
|
2587
|
+
onFocusin: i[0] || (i[0] = (v) => e.value.focusIn())
|
|
2578
2588
|
}, [
|
|
2579
|
-
(t(),
|
|
2589
|
+
(t(), y(N(o(e.value.editor)), {
|
|
2580
2590
|
question: e.value.editor
|
|
2581
2591
|
}, null, 8, ["question"]))
|
|
2582
2592
|
], 34))
|
|
2583
2593
|
], 2));
|
|
2584
2594
|
};
|
|
2585
2595
|
}
|
|
2586
|
-
}), Yn = ["aria-label"], xn = { key: 0 }, eo = { key: 0 }, so = ["onClick"], no = ["data-responsive-title", "onClick"], oo = ["name", "onUpdate:modelValue", "value", "disabled", "id", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], to = ["xlink:href"], io = /* @__PURE__ */
|
|
2596
|
+
}), Yn = ["aria-label"], xn = { key: 0 }, eo = { key: 0 }, so = ["onClick"], no = ["data-responsive-title", "onClick"], oo = ["name", "onUpdate:modelValue", "value", "disabled", "id", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], to = ["xlink:href"], io = /* @__PURE__ */ g({
|
|
2587
2597
|
__name: "Matrix",
|
|
2588
2598
|
props: {
|
|
2589
2599
|
question: {}
|
|
2590
2600
|
},
|
|
2591
2601
|
setup(l) {
|
|
2592
|
-
const n = l, o =
|
|
2593
|
-
|
|
2602
|
+
const n = l, o = T(null), e = W();
|
|
2603
|
+
H(
|
|
2594
2604
|
n,
|
|
2595
2605
|
o,
|
|
2596
2606
|
(i) => {
|
|
@@ -2607,7 +2617,7 @@ const Zn = /* @__PURE__ */ h({
|
|
|
2607
2617
|
n.question.isInputReadOnly || (i.value = a.value);
|
|
2608
2618
|
};
|
|
2609
2619
|
return (i, a) => {
|
|
2610
|
-
const d =
|
|
2620
|
+
const d = q("survey-string");
|
|
2611
2621
|
return t(), u("div", {
|
|
2612
2622
|
class: r(i.question.cssClasses.tableWrapper),
|
|
2613
2623
|
ref_key: "root",
|
|
@@ -2623,8 +2633,8 @@ const Zn = /* @__PURE__ */ h({
|
|
|
2623
2633
|
i.question.showHeader ? (t(), u("thead", xn, [
|
|
2624
2634
|
c("tr", null, [
|
|
2625
2635
|
i.question.hasRows ? (t(), u("td", eo)) : m("", !0),
|
|
2626
|
-
(t(!0), u(w, null,
|
|
2627
|
-
key:
|
|
2636
|
+
(t(!0), u(w, null, B(i.question.visibleColumns, (v, p) => (t(), u("th", {
|
|
2637
|
+
key: p,
|
|
2628
2638
|
class: r(i.question.cssClasses.headerCell),
|
|
2629
2639
|
style: S({
|
|
2630
2640
|
minWidth: i.question.columnMinWidth,
|
|
@@ -2632,17 +2642,17 @@ const Zn = /* @__PURE__ */ h({
|
|
|
2632
2642
|
})
|
|
2633
2643
|
}, [
|
|
2634
2644
|
C(d, {
|
|
2635
|
-
locString:
|
|
2645
|
+
locString: v.locText
|
|
2636
2646
|
}, null, 8, ["locString"])
|
|
2637
2647
|
], 6))), 128))
|
|
2638
2648
|
])
|
|
2639
2649
|
])) : m("", !0),
|
|
2640
2650
|
c("tbody", null, [
|
|
2641
|
-
(t(!0), u(w, null,
|
|
2642
|
-
key: "row_" +
|
|
2643
|
-
class: r(
|
|
2651
|
+
(t(!0), u(w, null, B(e.value, (v, p) => (t(), u("tr", {
|
|
2652
|
+
key: "row_" + v.name + "_" + p,
|
|
2653
|
+
class: r(v.rowClasses || void 0)
|
|
2644
2654
|
}, [
|
|
2645
|
-
|
|
2655
|
+
P(c("td", {
|
|
2646
2656
|
class: r(i.question.cssClasses.rowTextCell),
|
|
2647
2657
|
style: S({
|
|
2648
2658
|
minWidth: i.question.rowTitleWidth,
|
|
@@ -2650,44 +2660,44 @@ const Zn = /* @__PURE__ */ h({
|
|
|
2650
2660
|
})
|
|
2651
2661
|
}, [
|
|
2652
2662
|
C(d, {
|
|
2653
|
-
locString:
|
|
2663
|
+
locString: v.locText
|
|
2654
2664
|
}, null, 8, ["locString"])
|
|
2655
2665
|
], 6), [
|
|
2656
|
-
[
|
|
2666
|
+
[A, i.question.hasRows]
|
|
2657
2667
|
]),
|
|
2658
|
-
i.question.hasCellText ? (t(!0), u(w, { key: 0 },
|
|
2659
|
-
key:
|
|
2660
|
-
class: r(i.question.getItemClass(
|
|
2661
|
-
onClick: (
|
|
2668
|
+
i.question.hasCellText ? (t(!0), u(w, { key: 0 }, B(i.question.visibleColumns, (b, f) => (t(), u("td", {
|
|
2669
|
+
key: f,
|
|
2670
|
+
class: r(i.question.getItemClass(v, b)),
|
|
2671
|
+
onClick: ($) => s(v, b)
|
|
2662
2672
|
}, [
|
|
2663
2673
|
C(d, {
|
|
2664
|
-
locString: i.question.getCellDisplayLocText(
|
|
2674
|
+
locString: i.question.getCellDisplayLocText(v.name, b)
|
|
2665
2675
|
}, null, 8, ["locString"])
|
|
2666
2676
|
], 10, so))), 128)) : m("", !0),
|
|
2667
|
-
i.question.hasCellText ? m("", !0) : (t(!0), u(w, { key: 1 },
|
|
2668
|
-
key:
|
|
2669
|
-
"data-responsive-title":
|
|
2677
|
+
i.question.hasCellText ? m("", !0) : (t(!0), u(w, { key: 1 }, B(i.question.visibleColumns, (b, f) => (t(), u("td", {
|
|
2678
|
+
key: f,
|
|
2679
|
+
"data-responsive-title": b.locText.renderedHtml,
|
|
2670
2680
|
class: r(i.question.cssClasses.cell),
|
|
2671
|
-
onClick: (
|
|
2681
|
+
onClick: ($) => s(v, b)
|
|
2672
2682
|
}, [
|
|
2673
2683
|
c("label", {
|
|
2674
|
-
onMousedown: a[0] || (a[0] = (
|
|
2675
|
-
class: r(i.question.getItemClass(
|
|
2684
|
+
onMousedown: a[0] || (a[0] = ($) => i.question.onMouseDown()),
|
|
2685
|
+
class: r(i.question.getItemClass(v, b))
|
|
2676
2686
|
}, [
|
|
2677
|
-
|
|
2687
|
+
P(c("input", {
|
|
2678
2688
|
type: "radio",
|
|
2679
2689
|
class: r(i.question.cssClasses.itemValue),
|
|
2680
|
-
name:
|
|
2681
|
-
"onUpdate:modelValue": (
|
|
2682
|
-
value:
|
|
2690
|
+
name: v.fullName,
|
|
2691
|
+
"onUpdate:modelValue": ($) => v.value = $,
|
|
2692
|
+
value: b.value,
|
|
2683
2693
|
disabled: i.question.isInputReadOnly,
|
|
2684
|
-
id: i.question.inputId + "_" +
|
|
2694
|
+
id: i.question.inputId + "_" + v.name + "_" + f,
|
|
2685
2695
|
"aria-required": i.question.ariaRequired,
|
|
2686
|
-
"aria-label":
|
|
2696
|
+
"aria-label": b.locText.renderedHtml,
|
|
2687
2697
|
"aria-invalid": i.question.ariaInvalid,
|
|
2688
2698
|
"aria-describedby": i.question.ariaDescribedBy
|
|
2689
2699
|
}, null, 10, oo), [
|
|
2690
|
-
[
|
|
2700
|
+
[Y, v.value]
|
|
2691
2701
|
]),
|
|
2692
2702
|
c("span", {
|
|
2693
2703
|
class: r(i.question.cssClasses.materialDecorator)
|
|
@@ -2701,14 +2711,14 @@ const Zn = /* @__PURE__ */ h({
|
|
|
2701
2711
|
}, null, 8, to)
|
|
2702
2712
|
], 2)) : m("", !0)
|
|
2703
2713
|
], 2),
|
|
2704
|
-
|
|
2714
|
+
P(c("span", {
|
|
2705
2715
|
class: r(i.question.cssClasses.cellResponsiveTitle)
|
|
2706
2716
|
}, [
|
|
2707
2717
|
C(d, {
|
|
2708
|
-
locString:
|
|
2718
|
+
locString: b.locText
|
|
2709
2719
|
}, null, 8, ["locString"])
|
|
2710
2720
|
], 2), [
|
|
2711
|
-
[
|
|
2721
|
+
[A, i.question.isMobile]
|
|
2712
2722
|
])
|
|
2713
2723
|
], 34)
|
|
2714
2724
|
], 10, no))), 128))
|
|
@@ -2719,33 +2729,33 @@ const Zn = /* @__PURE__ */ h({
|
|
|
2719
2729
|
], 2);
|
|
2720
2730
|
};
|
|
2721
2731
|
}
|
|
2722
|
-
}), lo = /* @__PURE__ */
|
|
2732
|
+
}), lo = /* @__PURE__ */ g({
|
|
2723
2733
|
__name: "MatrixDropdown",
|
|
2724
2734
|
props: {
|
|
2725
2735
|
question: {}
|
|
2726
2736
|
},
|
|
2727
2737
|
setup(l) {
|
|
2728
|
-
const n = l, o =
|
|
2729
|
-
return
|
|
2730
|
-
const i =
|
|
2731
|
-
return t(),
|
|
2738
|
+
const n = l, o = T(null);
|
|
2739
|
+
return H(n, o), (e, s) => {
|
|
2740
|
+
const i = q("survey-matrixtable");
|
|
2741
|
+
return t(), y(i, {
|
|
2732
2742
|
question: e.question,
|
|
2733
2743
|
ref_key: "root",
|
|
2734
2744
|
ref: o
|
|
2735
2745
|
}, null, 8, ["question"]);
|
|
2736
2746
|
};
|
|
2737
2747
|
}
|
|
2738
|
-
}), ro = { key: 0 }, ao = ["data-sv-drop-target-matrix-row"], uo = { key: 1 }, mo = /* @__PURE__ */
|
|
2748
|
+
}), ro = { key: 0 }, ao = ["data-sv-drop-target-matrix-row"], uo = { key: 1 }, mo = /* @__PURE__ */ g({
|
|
2739
2749
|
__name: "MatrixTable",
|
|
2740
2750
|
props: {
|
|
2741
2751
|
question: {}
|
|
2742
2752
|
},
|
|
2743
2753
|
setup(l) {
|
|
2744
|
-
const n = l, o =
|
|
2745
|
-
return
|
|
2754
|
+
const n = l, o = R(() => n.question.renderedTable);
|
|
2755
|
+
return L(
|
|
2746
2756
|
() => o.value,
|
|
2747
2757
|
(e) => {
|
|
2748
|
-
const s =
|
|
2758
|
+
const s = x();
|
|
2749
2759
|
e.renderedRowsChangedCallback = () => {
|
|
2750
2760
|
var i;
|
|
2751
2761
|
(i = s == null ? void 0 : s.proxy) == null || i.$forceUpdate();
|
|
@@ -2756,7 +2766,7 @@ const Zn = /* @__PURE__ */ h({
|
|
|
2756
2766
|
};
|
|
2757
2767
|
}
|
|
2758
2768
|
), (e, s) => {
|
|
2759
|
-
const i =
|
|
2769
|
+
const i = q("survey-string"), a = q("survey-matrixheaderrequired"), d = q("survey-matrixcell");
|
|
2760
2770
|
return t(), u("div", {
|
|
2761
2771
|
style: S({ overflowX: e.question.showHorizontalScroll ? "scroll" : "" }),
|
|
2762
2772
|
class: r(e.question.cssClasses.tableWrapper)
|
|
@@ -2766,52 +2776,52 @@ const Zn = /* @__PURE__ */ h({
|
|
|
2766
2776
|
}, [
|
|
2767
2777
|
o.value.showHeader ? (t(), u("thead", ro, [
|
|
2768
2778
|
c("tr", null, [
|
|
2769
|
-
(t(!0), u(w, null,
|
|
2770
|
-
|
|
2771
|
-
class: r(
|
|
2772
|
-
key: "header_" +
|
|
2773
|
-
style: S({ minWidth:
|
|
2779
|
+
(t(!0), u(w, null, B(o.value.headerRow.cells, (v) => (t(), u(w, null, [
|
|
2780
|
+
v.hasTitle ? (t(), u("th", {
|
|
2781
|
+
class: r(v.className),
|
|
2782
|
+
key: "header_" + v.id,
|
|
2783
|
+
style: S({ minWidth: v.minWidth, width: v.width })
|
|
2774
2784
|
}, [
|
|
2775
2785
|
C(i, {
|
|
2776
|
-
locString:
|
|
2786
|
+
locString: v.locTitle
|
|
2777
2787
|
}, null, 8, ["locString"]),
|
|
2778
|
-
|
|
2788
|
+
v.column ? (t(), y(a, {
|
|
2779
2789
|
key: 0,
|
|
2780
|
-
column:
|
|
2790
|
+
column: v.column,
|
|
2781
2791
|
question: e.question
|
|
2782
2792
|
}, null, 8, ["column", "question"])) : m("", !0)
|
|
2783
2793
|
], 6)) : m("", !0),
|
|
2784
|
-
|
|
2785
|
-
class: r(
|
|
2786
|
-
key: "header_" +
|
|
2787
|
-
style: S({ minWidth:
|
|
2794
|
+
v.hasTitle ? m("", !0) : (t(), u("td", {
|
|
2795
|
+
class: r(v.className),
|
|
2796
|
+
key: "header_" + v.id,
|
|
2797
|
+
style: S({ minWidth: v.minWidth, width: v.width })
|
|
2788
2798
|
}, null, 6))
|
|
2789
2799
|
], 64))), 256))
|
|
2790
2800
|
])
|
|
2791
2801
|
])) : m("", !0),
|
|
2792
2802
|
c("tbody", null, [
|
|
2793
|
-
(t(!0), u(w, null,
|
|
2794
|
-
key: e.question.inputId + "_" +
|
|
2803
|
+
(t(!0), u(w, null, B(o.value.rows, (v) => (t(), u(w, {
|
|
2804
|
+
key: e.question.inputId + "_" + v.id
|
|
2795
2805
|
}, [
|
|
2796
|
-
|
|
2806
|
+
v.visible ? (t(), u("tr", {
|
|
2797
2807
|
key: 0,
|
|
2798
|
-
"data-sv-drop-target-matrix-row":
|
|
2799
|
-
class: r(
|
|
2808
|
+
"data-sv-drop-target-matrix-row": v.row && v.row.id,
|
|
2809
|
+
class: r(v.className)
|
|
2800
2810
|
}, [
|
|
2801
|
-
(t(!0), u(w, null,
|
|
2802
|
-
cell:
|
|
2811
|
+
(t(!0), u(w, null, B(v.cells, (p, b) => (t(), y(d, {
|
|
2812
|
+
cell: p,
|
|
2803
2813
|
question: e.question,
|
|
2804
|
-
key:
|
|
2814
|
+
key: v.id + "_" + b
|
|
2805
2815
|
}, null, 8, ["cell", "question"]))), 128))
|
|
2806
2816
|
], 10, ao)) : m("", !0)
|
|
2807
2817
|
], 64))), 128))
|
|
2808
2818
|
]),
|
|
2809
2819
|
o.value.showFooter ? (t(), u("tfoot", uo, [
|
|
2810
2820
|
c("tr", null, [
|
|
2811
|
-
(t(!0), u(w, null,
|
|
2812
|
-
cell:
|
|
2821
|
+
(t(!0), u(w, null, B(o.value.footerRow.cells, (v, p) => (t(), y(d, {
|
|
2822
|
+
cell: v,
|
|
2813
2823
|
question: e.question,
|
|
2814
|
-
key: "footer_" +
|
|
2824
|
+
key: "footer_" + p
|
|
2815
2825
|
}, null, 8, ["cell", "question"]))), 128))
|
|
2816
2826
|
])
|
|
2817
2827
|
])) : m("", !0)
|
|
@@ -2819,7 +2829,7 @@ const Zn = /* @__PURE__ */ h({
|
|
|
2819
2829
|
], 6);
|
|
2820
2830
|
};
|
|
2821
2831
|
}
|
|
2822
|
-
}), co = /* @__PURE__ */ c("span", null, "\xA0", -1), po = /* @__PURE__ */
|
|
2832
|
+
}), co = /* @__PURE__ */ c("span", null, "\xA0", -1), po = /* @__PURE__ */ g({
|
|
2823
2833
|
__name: "MatrixHeaderRequired",
|
|
2824
2834
|
props: {
|
|
2825
2835
|
question: {},
|
|
@@ -2827,7 +2837,7 @@ const Zn = /* @__PURE__ */ h({
|
|
|
2827
2837
|
},
|
|
2828
2838
|
setup(l) {
|
|
2829
2839
|
const n = l;
|
|
2830
|
-
return
|
|
2840
|
+
return L(() => n.column), (o, e) => o.column.isRenderedRequired ? (t(), u(w, { key: 0 }, [
|
|
2831
2841
|
co,
|
|
2832
2842
|
o.column.isRenderedRequired ? (t(), u("span", {
|
|
2833
2843
|
key: 0,
|
|
@@ -2835,119 +2845,119 @@ const Zn = /* @__PURE__ */ h({
|
|
|
2835
2845
|
}, I(o.column.requiredText), 3)) : m("", !0)
|
|
2836
2846
|
], 64)) : m("", !0);
|
|
2837
2847
|
}
|
|
2838
|
-
}), vo = ["data-responsive-title", "title", "colspan"], qo = /* @__PURE__ */
|
|
2848
|
+
}), vo = ["data-responsive-title", "title", "colspan"], qo = /* @__PURE__ */ g({
|
|
2839
2849
|
__name: "MatrixCell",
|
|
2840
2850
|
props: {
|
|
2841
2851
|
question: {},
|
|
2842
2852
|
cell: {}
|
|
2843
2853
|
},
|
|
2844
2854
|
setup(l) {
|
|
2845
|
-
const n = l, o =
|
|
2846
|
-
return
|
|
2847
|
-
if (!
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
}), (
|
|
2861
|
-
const
|
|
2855
|
+
const n = l, o = T(!1), e = T(), s = () => n.cell.headers, i = () => !!n.cell.width || !!n.cell.minWidth ? { width: n.cell.width, minWidth: n.cell.minWidth } : null, a = () => n.cell.index || "", d = () => o.value = n.cell.question.isVisible, v = (p) => se(p);
|
|
2856
|
+
return E(() => {
|
|
2857
|
+
if (!n.cell.hasQuestion || !n.question || !n.question.survey)
|
|
2858
|
+
return;
|
|
2859
|
+
d(), n.cell.question.registerPropertyChangedHandlers(["isVisible"], () => {
|
|
2860
|
+
d();
|
|
2861
|
+
});
|
|
2862
|
+
const p = e.value, b = n.cell.question, f = {
|
|
2863
|
+
cell: n.cell.cell,
|
|
2864
|
+
cellQuestion: b,
|
|
2865
|
+
htmlElement: p,
|
|
2866
|
+
row: n.cell.row,
|
|
2867
|
+
column: n.cell.cell.column
|
|
2868
|
+
};
|
|
2869
|
+
n.question.survey.matrixAfterCellRender(n.question, f), b && b.afterRenderCore(p);
|
|
2870
|
+
}), (p, b) => {
|
|
2871
|
+
const f = q("survey-errors"), $ = q("sv-matrix-drag-drop-icon"), M = q("sv-action-bar"), h = q("survey-radiogroup-item"), D = q("survey-checkbox-item"), _ = q("survey-other-choice"), O = q("survey-string");
|
|
2862
2872
|
return t(), u("td", {
|
|
2863
|
-
class: r(
|
|
2873
|
+
class: r(p.cell.className),
|
|
2864
2874
|
"data-responsive-title": s(),
|
|
2865
|
-
title:
|
|
2875
|
+
title: p.cell.getTitle(),
|
|
2866
2876
|
style: S(i()),
|
|
2867
|
-
colspan:
|
|
2868
|
-
onFocusin:
|
|
2877
|
+
colspan: p.cell.colSpans,
|
|
2878
|
+
onFocusin: b[0] || (b[0] = (Q) => p.cell.focusIn()),
|
|
2869
2879
|
ref_key: "root",
|
|
2870
2880
|
ref: e
|
|
2871
2881
|
}, [
|
|
2872
|
-
|
|
2882
|
+
p.cell.isErrorsCell ? (t(), y(f, {
|
|
2873
2883
|
key: 0,
|
|
2874
|
-
element:
|
|
2884
|
+
element: p.cell.question
|
|
2875
2885
|
}, null, 8, ["element"])) : m("", !0),
|
|
2876
|
-
|
|
2886
|
+
p.cell.isDragHandlerCell ? (t(), y($, {
|
|
2877
2887
|
key: 1,
|
|
2878
|
-
item: { data: { row:
|
|
2888
|
+
item: { data: { row: p.cell.row, question: p.question } }
|
|
2879
2889
|
}, null, 8, ["item"])) : m("", !0),
|
|
2880
|
-
|
|
2890
|
+
p.cell.isActionsCell ? (t(), y(M, {
|
|
2881
2891
|
key: 2,
|
|
2882
|
-
model:
|
|
2892
|
+
model: p.cell.item.getData(),
|
|
2883
2893
|
handleClick: !1
|
|
2884
2894
|
}, null, 8, ["model"])) : m("", !0),
|
|
2885
|
-
|
|
2895
|
+
p.cell.hasPanel ? (t(), y(N(v(p.cell.panel)), {
|
|
2886
2896
|
key: 3,
|
|
2887
|
-
question:
|
|
2888
|
-
css:
|
|
2897
|
+
question: p.cell.panel,
|
|
2898
|
+
css: p.question.cssClasses
|
|
2889
2899
|
}, null, 8, ["question", "css"])) : m("", !0),
|
|
2890
|
-
|
|
2900
|
+
p.cell.hasQuestion ? (t(), u("div", {
|
|
2891
2901
|
key: 4,
|
|
2892
|
-
class: r(
|
|
2902
|
+
class: r(p.question.cssClasses.cellQuestionWrapper)
|
|
2893
2903
|
}, [
|
|
2894
|
-
!
|
|
2904
|
+
!p.cell.isChoice && p.cell.question.isDefaultRendering() ? P((t(), y(N(v(p.cell.question)), {
|
|
2895
2905
|
key: 0,
|
|
2896
|
-
question:
|
|
2906
|
+
question: p.cell.question
|
|
2897
2907
|
}, null, 8, ["question"])), [
|
|
2898
|
-
[
|
|
2908
|
+
[A, o.value]
|
|
2899
2909
|
]) : m("", !0),
|
|
2900
|
-
!
|
|
2910
|
+
!p.cell.isChoice && !p.cell.question.isDefaultRendering() ? P((t(), y(N(p.cell.question.getComponentName()), {
|
|
2901
2911
|
key: 1,
|
|
2902
|
-
question:
|
|
2912
|
+
question: p.cell.question
|
|
2903
2913
|
}, null, 8, ["question"])), [
|
|
2904
|
-
[
|
|
2914
|
+
[A, o.value]
|
|
2905
2915
|
]) : m("", !0),
|
|
2906
|
-
|
|
2907
|
-
key:
|
|
2908
|
-
class: r(
|
|
2909
|
-
question:
|
|
2910
|
-
item:
|
|
2916
|
+
p.cell.isRadio ? (t(), y(h, {
|
|
2917
|
+
key: p.cell.item.value,
|
|
2918
|
+
class: r(p.cell.question.getItemClass(p.cell.item)),
|
|
2919
|
+
question: p.cell.question,
|
|
2920
|
+
item: p.cell.item,
|
|
2911
2921
|
index: a(),
|
|
2912
2922
|
hideLabel: !0
|
|
2913
2923
|
}, null, 8, ["class", "question", "item", "index"])) : m("", !0),
|
|
2914
|
-
|
|
2915
|
-
key:
|
|
2916
|
-
class: r(
|
|
2917
|
-
question:
|
|
2918
|
-
item:
|
|
2924
|
+
p.cell.isCheckbox ? (t(), y(D, {
|
|
2925
|
+
key: p.cell.item.value,
|
|
2926
|
+
class: r(p.cell.question.getItemClass(p.cell.item)),
|
|
2927
|
+
question: p.cell.question,
|
|
2928
|
+
item: p.cell.item,
|
|
2919
2929
|
index: a(),
|
|
2920
2930
|
hideLabel: !0
|
|
2921
2931
|
}, null, 8, ["class", "question", "item", "index"])) : m("", !0),
|
|
2922
|
-
|
|
2932
|
+
p.cell.isOtherChoice ? (t(), y(_, {
|
|
2923
2933
|
key: 4,
|
|
2924
|
-
question:
|
|
2934
|
+
question: p.cell.question
|
|
2925
2935
|
}, null, 8, ["question"])) : m("", !0)
|
|
2926
2936
|
], 2)) : m("", !0),
|
|
2927
|
-
|
|
2937
|
+
p.cell.hasTitle ? (t(), y(O, {
|
|
2928
2938
|
key: 5,
|
|
2929
|
-
locString:
|
|
2939
|
+
locString: p.cell.locTitle
|
|
2930
2940
|
}, null, 8, ["locString"])) : m("", !0),
|
|
2931
|
-
|
|
2941
|
+
p.cell.requiredText ? (t(), u("span", {
|
|
2932
2942
|
key: 6,
|
|
2933
|
-
class: r(
|
|
2934
|
-
}, I(
|
|
2943
|
+
class: r(p.question.cssClasses.cellRequiredText)
|
|
2944
|
+
}, I(p.cell.requiredText), 3)) : m("", !0)
|
|
2935
2945
|
], 46, vo);
|
|
2936
2946
|
};
|
|
2937
2947
|
}
|
|
2938
|
-
}), yo = /* @__PURE__ */
|
|
2948
|
+
}), yo = /* @__PURE__ */ g({
|
|
2939
2949
|
__name: "MatrixDynamic",
|
|
2940
2950
|
props: {
|
|
2941
2951
|
question: {}
|
|
2942
2952
|
},
|
|
2943
2953
|
setup(l) {
|
|
2944
|
-
const n = l, o =
|
|
2945
|
-
|
|
2954
|
+
const n = l, o = T(null);
|
|
2955
|
+
H(n, o);
|
|
2946
2956
|
const e = () => {
|
|
2947
2957
|
n.question.addRowUI();
|
|
2948
2958
|
};
|
|
2949
2959
|
return (s, i) => {
|
|
2950
|
-
const a =
|
|
2960
|
+
const a = q("survey-string"), d = q("survey-matrixtable");
|
|
2951
2961
|
return t(), u("div", {
|
|
2952
2962
|
ref_key: "root",
|
|
2953
2963
|
ref: o
|
|
@@ -2969,7 +2979,7 @@ const Zn = /* @__PURE__ */ h({
|
|
|
2969
2979
|
}, null, 2)
|
|
2970
2980
|
], 2)
|
|
2971
2981
|
], 2)) : m("", !0),
|
|
2972
|
-
s.question.renderedTable.showTable ? (t(),
|
|
2982
|
+
s.question.renderedTable.showTable ? (t(), y(d, {
|
|
2973
2983
|
key: 1,
|
|
2974
2984
|
question: s.question
|
|
2975
2985
|
}, null, 8, ["question"])) : m("", !0),
|
|
@@ -3019,88 +3029,88 @@ const Zn = /* @__PURE__ */ h({
|
|
|
3019
3029
|
};
|
|
3020
3030
|
}
|
|
3021
3031
|
});
|
|
3022
|
-
function
|
|
3032
|
+
function ne(l, n = !0) {
|
|
3023
3033
|
return {
|
|
3024
|
-
question:
|
|
3025
|
-
row: n ?
|
|
3034
|
+
question: R(() => l.item.data.question),
|
|
3035
|
+
row: n ? R(() => l.item.data.row) : void 0
|
|
3026
3036
|
};
|
|
3027
3037
|
}
|
|
3028
|
-
const go = ["disabled"], ho = /* @__PURE__ */
|
|
3038
|
+
const go = ["disabled"], ho = /* @__PURE__ */ g({
|
|
3029
3039
|
__name: "RemoveButton",
|
|
3030
3040
|
props: {
|
|
3031
3041
|
item: {}
|
|
3032
3042
|
},
|
|
3033
3043
|
setup(l) {
|
|
3034
|
-
const n = l, { question: o, row: e } =
|
|
3044
|
+
const n = l, { question: o, row: e } = ne(n);
|
|
3035
3045
|
return (s, i) => {
|
|
3036
|
-
const a =
|
|
3046
|
+
const a = q("survey-string");
|
|
3037
3047
|
return t(), u("button", {
|
|
3038
3048
|
type: "button",
|
|
3039
|
-
class: r(
|
|
3040
|
-
disabled:
|
|
3041
|
-
onClick: i[0] || (i[0] = () =>
|
|
3049
|
+
class: r(k(o).getRemoveRowButtonCss()),
|
|
3050
|
+
disabled: k(o).isInputReadOnly,
|
|
3051
|
+
onClick: i[0] || (i[0] = () => k(o).removeRowUI(k(e)))
|
|
3042
3052
|
}, [
|
|
3043
3053
|
C(a, {
|
|
3044
|
-
locString:
|
|
3054
|
+
locString: k(o).locRemoveRowText
|
|
3045
3055
|
}, null, 8, ["locString"]),
|
|
3046
3056
|
c("span", {
|
|
3047
|
-
class: r(
|
|
3057
|
+
class: r(k(o).cssClasses.iconRemove)
|
|
3048
3058
|
}, null, 2)
|
|
3049
3059
|
], 10, go);
|
|
3050
3060
|
};
|
|
3051
3061
|
}
|
|
3052
|
-
}), Co = ["xlink:href"], bo = /* @__PURE__ */
|
|
3062
|
+
}), Co = ["xlink:href"], bo = /* @__PURE__ */ g({
|
|
3053
3063
|
__name: "DragDropIcon",
|
|
3054
3064
|
props: {
|
|
3055
3065
|
item: {}
|
|
3056
3066
|
},
|
|
3057
3067
|
setup(l) {
|
|
3058
|
-
const n = l, { question: o } =
|
|
3059
|
-
return (e, s) =>
|
|
3068
|
+
const n = l, { question: o } = ne(n, !1);
|
|
3069
|
+
return (e, s) => k(o).iconDragElement ? (t(), u("svg", {
|
|
3060
3070
|
key: 0,
|
|
3061
|
-
class: r(
|
|
3071
|
+
class: r(k(o).cssClasses.dragElementDecorator)
|
|
3062
3072
|
}, [
|
|
3063
3073
|
c("use", {
|
|
3064
|
-
"xlink:href":
|
|
3074
|
+
"xlink:href": k(o).iconDragElement
|
|
3065
3075
|
}, null, 8, Co)
|
|
3066
3076
|
], 2)) : (t(), u("span", {
|
|
3067
3077
|
key: 1,
|
|
3068
|
-
class: r(
|
|
3078
|
+
class: r(k(o).cssClasses.iconDrag)
|
|
3069
3079
|
}, null, 2));
|
|
3070
3080
|
}
|
|
3071
|
-
}), ko = ["aria-expanded", "aria-controls"], fo = /* @__PURE__ */
|
|
3081
|
+
}), ko = ["aria-expanded", "aria-controls"], fo = /* @__PURE__ */ g({
|
|
3072
3082
|
__name: "DetailButton",
|
|
3073
3083
|
props: {
|
|
3074
3084
|
item: {}
|
|
3075
3085
|
},
|
|
3076
3086
|
setup(l) {
|
|
3077
|
-
const n = l, { question: o, row: e } =
|
|
3087
|
+
const n = l, { question: o, row: e } = ne(n);
|
|
3078
3088
|
return (s, i) => {
|
|
3079
|
-
const a =
|
|
3089
|
+
const a = q("sv-svg-icon");
|
|
3080
3090
|
return t(), u("button", {
|
|
3081
3091
|
type: "button",
|
|
3082
|
-
class: r(
|
|
3083
|
-
onClick: i[0] || (i[0] = () =>
|
|
3084
|
-
"aria-expanded":
|
|
3085
|
-
"aria-controls":
|
|
3092
|
+
class: r(k(o).getDetailPanelButtonCss(k(e))),
|
|
3093
|
+
onClick: i[0] || (i[0] = () => k(e).showHideDetailPanelClick()),
|
|
3094
|
+
"aria-expanded": k(o).getIsDetailPanelShowing(k(e)) ? "true" : "false",
|
|
3095
|
+
"aria-controls": k(o).getIsDetailPanelShowing(k(e)) ? k(e).detailPanelId : null
|
|
3086
3096
|
}, [
|
|
3087
3097
|
C(a, {
|
|
3088
|
-
class: r(
|
|
3089
|
-
iconName:
|
|
3098
|
+
class: r(k(o).getDetailPanelIconCss(k(e))),
|
|
3099
|
+
iconName: k(o).getDetailPanelIconId(k(e)),
|
|
3090
3100
|
size: "auto"
|
|
3091
3101
|
}, null, 8, ["class", "iconName"])
|
|
3092
3102
|
], 10, ko);
|
|
3093
3103
|
};
|
|
3094
3104
|
}
|
|
3095
|
-
}), Io = /* @__PURE__ */
|
|
3105
|
+
}), Io = /* @__PURE__ */ g({
|
|
3096
3106
|
__name: "PanelDynamic",
|
|
3097
3107
|
props: {
|
|
3098
3108
|
question: {},
|
|
3099
3109
|
css: {}
|
|
3100
3110
|
},
|
|
3101
3111
|
setup(l) {
|
|
3102
|
-
const n = l, o =
|
|
3103
|
-
|
|
3112
|
+
const n = l, o = T(null), e = x();
|
|
3113
|
+
H(
|
|
3104
3114
|
n,
|
|
3105
3115
|
o,
|
|
3106
3116
|
(a) => {
|
|
@@ -3122,14 +3132,14 @@ const go = ["disabled"], ho = /* @__PURE__ */ h({
|
|
|
3122
3132
|
};
|
|
3123
3133
|
}
|
|
3124
3134
|
);
|
|
3125
|
-
const s =
|
|
3135
|
+
const s = R(() => {
|
|
3126
3136
|
if (n.question.isRenderModeList)
|
|
3127
3137
|
return n.question.panels;
|
|
3128
3138
|
const a = [];
|
|
3129
3139
|
return n.question.currentPanel && a.push(n.question.currentPanel), a;
|
|
3130
3140
|
}), i = () => n.question.showLegacyNavigation;
|
|
3131
3141
|
return (a, d) => {
|
|
3132
|
-
const
|
|
3142
|
+
const v = q("survey-string"), p = q("sv-paneldynamic-add-btn"), b = q("survey-paneldynamicprogress"), f = q("survey-panel"), $ = q("sv-paneldynamic-remove-btn"), M = q("survey-paneldynamicprogress-v2");
|
|
3133
3143
|
return t(), u("div", {
|
|
3134
3144
|
class: r(a.question.cssClasses.root),
|
|
3135
3145
|
ref_key: "root",
|
|
@@ -3140,11 +3150,11 @@ const go = ["disabled"], ho = /* @__PURE__ */ h({
|
|
|
3140
3150
|
class: r(a.question.cssClasses.noEntriesPlaceholder)
|
|
3141
3151
|
}, [
|
|
3142
3152
|
c("span", null, [
|
|
3143
|
-
C(
|
|
3153
|
+
C(v, {
|
|
3144
3154
|
locString: a.question.locNoEntriesText
|
|
3145
3155
|
}, null, 8, ["locString"])
|
|
3146
3156
|
]),
|
|
3147
|
-
C(
|
|
3157
|
+
C(p, {
|
|
3148
3158
|
data: { question: a.question }
|
|
3149
3159
|
}, null, 8, ["data"])
|
|
3150
3160
|
], 2)) : m("", !0),
|
|
@@ -3158,46 +3168,46 @@ const go = ["disabled"], ho = /* @__PURE__ */ h({
|
|
|
3158
3168
|
role: "progressbar"
|
|
3159
3169
|
}, null, 6)
|
|
3160
3170
|
], 2)) : m("", !0),
|
|
3161
|
-
i() && a.question.isProgressTopShowing ? (t(),
|
|
3171
|
+
i() && a.question.isProgressTopShowing ? (t(), y(b, {
|
|
3162
3172
|
key: 2,
|
|
3163
3173
|
question: a.question
|
|
3164
3174
|
}, null, 8, ["question"])) : m("", !0),
|
|
3165
|
-
(t(!0), u(w, null,
|
|
3166
|
-
key:
|
|
3175
|
+
(t(!0), u(w, null, B(s.value, (h, D) => (t(), u(w, {
|
|
3176
|
+
key: h.id
|
|
3167
3177
|
}, [
|
|
3168
3178
|
c("div", {
|
|
3169
3179
|
class: r(a.question.getPanelWrapperCss())
|
|
3170
3180
|
}, [
|
|
3171
|
-
C(
|
|
3172
|
-
question:
|
|
3181
|
+
C(f, {
|
|
3182
|
+
question: h,
|
|
3173
3183
|
css: a.css
|
|
3174
3184
|
}, null, 8, ["question", "css"]),
|
|
3175
|
-
a.question.panelRemoveButtonLocation === "right" && a.question.canRemovePanel &&
|
|
3185
|
+
a.question.panelRemoveButtonLocation === "right" && a.question.canRemovePanel && h.state !== "collapsed" ? (t(), y($, {
|
|
3176
3186
|
key: 0,
|
|
3177
|
-
data: { question: a.question, panel:
|
|
3187
|
+
data: { question: a.question, panel: h }
|
|
3178
3188
|
}, null, 8, ["data"])) : m("", !0)
|
|
3179
3189
|
], 2),
|
|
3180
|
-
a.question.isRenderModeList &&
|
|
3190
|
+
a.question.isRenderModeList && D < a.question.visiblePanelCount - 1 ? (t(), u("hr", {
|
|
3181
3191
|
class: r(a.question.cssClasses.separator),
|
|
3182
|
-
key: "separator" +
|
|
3192
|
+
key: "separator" + h.id
|
|
3183
3193
|
}, null, 2)) : m("", !0)
|
|
3184
3194
|
], 64))), 128)),
|
|
3185
|
-
i() && a.question.isProgressBottomShowing ? (t(),
|
|
3195
|
+
i() && a.question.isProgressBottomShowing ? (t(), y(b, {
|
|
3186
3196
|
key: 3,
|
|
3187
3197
|
question: a.question
|
|
3188
3198
|
}, null, 8, ["question"])) : m("", !0),
|
|
3189
|
-
i() && a.question.isRenderModeList ? (t(),
|
|
3199
|
+
i() && a.question.isRenderModeList ? (t(), y(p, {
|
|
3190
3200
|
key: 4,
|
|
3191
3201
|
data: { question: a.question }
|
|
3192
3202
|
}, null, 8, ["data"])) : m("", !0),
|
|
3193
|
-
a.question.showNavigation ? (t(),
|
|
3203
|
+
a.question.showNavigation ? (t(), y(M, {
|
|
3194
3204
|
key: 5,
|
|
3195
3205
|
question: a.question
|
|
3196
3206
|
}, null, 8, ["question"])) : m("", !0)
|
|
3197
3207
|
], 2);
|
|
3198
3208
|
};
|
|
3199
3209
|
}
|
|
3200
|
-
}), wo = /* @__PURE__ */
|
|
3210
|
+
}), wo = /* @__PURE__ */ g({
|
|
3201
3211
|
__name: "PanelDynamicProgress",
|
|
3202
3212
|
props: {
|
|
3203
3213
|
question: {}
|
|
@@ -3205,7 +3215,7 @@ const go = ["disabled"], ho = /* @__PURE__ */ h({
|
|
|
3205
3215
|
setup(l) {
|
|
3206
3216
|
const n = l, o = () => n.question.isProgressTopShowing ? n.question.cssClasses.progressTop : n.question.cssClasses.progressBottom;
|
|
3207
3217
|
return (e, s) => {
|
|
3208
|
-
const i =
|
|
3218
|
+
const i = q("sv-paneldynamic-prev-btn"), a = q("sv-paneldynamic-next-btn"), d = q("sv-paneldynamic-add-btn"), v = q("sv-paneldynamic-progress-text");
|
|
3209
3219
|
return t(), u("div", {
|
|
3210
3220
|
class: r(o())
|
|
3211
3221
|
}, [
|
|
@@ -3236,21 +3246,21 @@ const go = ["disabled"], ho = /* @__PURE__ */ h({
|
|
|
3236
3246
|
C(d, {
|
|
3237
3247
|
data: { question: e.question }
|
|
3238
3248
|
}, null, 8, ["data"]),
|
|
3239
|
-
C(
|
|
3249
|
+
C(v, {
|
|
3240
3250
|
data: { question: e.question }
|
|
3241
3251
|
}, null, 8, ["data"])
|
|
3242
3252
|
], 2)
|
|
3243
3253
|
], 2);
|
|
3244
3254
|
};
|
|
3245
3255
|
}
|
|
3246
|
-
}), So = /* @__PURE__ */
|
|
3256
|
+
}), So = /* @__PURE__ */ g({
|
|
3247
3257
|
__name: "PanelDynamicProgressV2",
|
|
3248
3258
|
props: {
|
|
3249
3259
|
question: {}
|
|
3250
3260
|
},
|
|
3251
3261
|
setup(l) {
|
|
3252
3262
|
return (n, o) => {
|
|
3253
|
-
const e =
|
|
3263
|
+
const e = q("sv-action-bar");
|
|
3254
3264
|
return n.question.cssClasses.footer ? (t(), u("div", {
|
|
3255
3265
|
key: 0,
|
|
3256
3266
|
class: r(n.question.cssClasses.footer)
|
|
@@ -3280,127 +3290,127 @@ const go = ["disabled"], ho = /* @__PURE__ */ h({
|
|
|
3280
3290
|
};
|
|
3281
3291
|
}
|
|
3282
3292
|
});
|
|
3283
|
-
function
|
|
3284
|
-
return
|
|
3293
|
+
function j(l) {
|
|
3294
|
+
return R(
|
|
3285
3295
|
() => l.item && l.item.data.question || l.data.question
|
|
3286
3296
|
);
|
|
3287
3297
|
}
|
|
3288
|
-
const Ro = /* @__PURE__ */
|
|
3298
|
+
const Ro = /* @__PURE__ */ g({
|
|
3289
3299
|
__name: "PaneldynamicAddBtn",
|
|
3290
3300
|
props: {
|
|
3291
3301
|
item: {},
|
|
3292
3302
|
data: {}
|
|
3293
3303
|
},
|
|
3294
3304
|
setup(l) {
|
|
3295
|
-
const o =
|
|
3305
|
+
const o = j(l), e = () => {
|
|
3296
3306
|
o.value.addPanelUI();
|
|
3297
3307
|
};
|
|
3298
|
-
return (s, i) =>
|
|
3308
|
+
return (s, i) => k(o).canAddPanel ? (t(), u("button", {
|
|
3299
3309
|
key: 0,
|
|
3300
3310
|
type: "button",
|
|
3301
|
-
class: r(
|
|
3311
|
+
class: r(k(o).getAddButtonCss()),
|
|
3302
3312
|
onClick: e
|
|
3303
3313
|
}, [
|
|
3304
3314
|
c("span", {
|
|
3305
|
-
class: r(
|
|
3306
|
-
}, I(
|
|
3315
|
+
class: r(k(o).cssClasses.buttonAddText)
|
|
3316
|
+
}, I(k(o).panelAddText), 3)
|
|
3307
3317
|
], 2)) : m("", !0);
|
|
3308
3318
|
}
|
|
3309
|
-
}), To = ["title"], $o = /* @__PURE__ */
|
|
3319
|
+
}), To = ["title"], $o = /* @__PURE__ */ g({
|
|
3310
3320
|
__name: "PaneldynamicNextBtn",
|
|
3311
3321
|
props: {
|
|
3312
3322
|
item: {},
|
|
3313
3323
|
data: {}
|
|
3314
3324
|
},
|
|
3315
3325
|
setup(l) {
|
|
3316
|
-
const o =
|
|
3326
|
+
const o = j(l), e = () => {
|
|
3317
3327
|
o.value.goToNextPanel();
|
|
3318
3328
|
};
|
|
3319
3329
|
return (s, i) => {
|
|
3320
|
-
const a =
|
|
3330
|
+
const a = q("sv-svg-icon");
|
|
3321
3331
|
return t(), u("div", {
|
|
3322
|
-
title:
|
|
3332
|
+
title: k(o).panelNextText,
|
|
3323
3333
|
onClick: e,
|
|
3324
|
-
class: r(
|
|
3334
|
+
class: r(k(o).getNextButtonCss())
|
|
3325
3335
|
}, [
|
|
3326
3336
|
C(a, {
|
|
3327
|
-
iconName:
|
|
3337
|
+
iconName: k(o).cssClasses.progressBtnIcon,
|
|
3328
3338
|
size: "auto"
|
|
3329
3339
|
}, null, 8, ["iconName"])
|
|
3330
3340
|
], 10, To);
|
|
3331
3341
|
};
|
|
3332
3342
|
}
|
|
3333
|
-
}), Bo = ["title"], Lo = /* @__PURE__ */
|
|
3343
|
+
}), Bo = ["title"], Lo = /* @__PURE__ */ g({
|
|
3334
3344
|
__name: "PaneldynamicPrevBtn",
|
|
3335
3345
|
props: {
|
|
3336
3346
|
item: {},
|
|
3337
3347
|
data: {}
|
|
3338
3348
|
},
|
|
3339
3349
|
setup(l) {
|
|
3340
|
-
const o =
|
|
3350
|
+
const o = j(l), e = () => {
|
|
3341
3351
|
o.value.goToPrevPanel();
|
|
3342
3352
|
};
|
|
3343
3353
|
return (s, i) => {
|
|
3344
|
-
const a =
|
|
3354
|
+
const a = q("sv-svg-icon");
|
|
3345
3355
|
return t(), u("div", {
|
|
3346
|
-
title:
|
|
3356
|
+
title: k(o).panelPrevText,
|
|
3347
3357
|
onClick: e,
|
|
3348
|
-
class: r(
|
|
3358
|
+
class: r(k(o).getPrevButtonCss())
|
|
3349
3359
|
}, [
|
|
3350
3360
|
C(a, {
|
|
3351
|
-
iconName:
|
|
3361
|
+
iconName: k(o).cssClasses.progressBtnIcon,
|
|
3352
3362
|
size: "auto"
|
|
3353
3363
|
}, null, 8, ["iconName"])
|
|
3354
3364
|
], 10, Bo);
|
|
3355
3365
|
};
|
|
3356
3366
|
}
|
|
3357
|
-
}), Do = /* @__PURE__ */
|
|
3367
|
+
}), Do = /* @__PURE__ */ g({
|
|
3358
3368
|
__name: "PaneldynamicRemoveBtn",
|
|
3359
3369
|
props: {
|
|
3360
3370
|
item: {},
|
|
3361
3371
|
data: {}
|
|
3362
3372
|
},
|
|
3363
3373
|
setup(l) {
|
|
3364
|
-
const n = l, o =
|
|
3374
|
+
const n = l, o = j(n), e = R(
|
|
3365
3375
|
() => n.item && n.item.data.panel || n.data.panel
|
|
3366
3376
|
), s = (i) => {
|
|
3367
3377
|
o.value.isInputReadOnly || o.value.removePanelUI(i);
|
|
3368
3378
|
};
|
|
3369
3379
|
return (i, a) => (t(), u("button", {
|
|
3370
3380
|
type: "button",
|
|
3371
|
-
class: r(
|
|
3381
|
+
class: r(k(o).getPanelRemoveButtonCss()),
|
|
3372
3382
|
onClick: a[0] || (a[0] = (d) => s(e.value))
|
|
3373
3383
|
}, [
|
|
3374
3384
|
c("span", {
|
|
3375
|
-
class: r(
|
|
3376
|
-
}, I(
|
|
3385
|
+
class: r(k(o).cssClasses.buttonRemoveText)
|
|
3386
|
+
}, I(k(o).panelRemoveText), 3),
|
|
3377
3387
|
c("span", {
|
|
3378
|
-
class: r(
|
|
3388
|
+
class: r(k(o).cssClasses.iconRemove)
|
|
3379
3389
|
}, null, 2)
|
|
3380
3390
|
], 2));
|
|
3381
3391
|
}
|
|
3382
|
-
}), Po = /* @__PURE__ */
|
|
3392
|
+
}), Po = /* @__PURE__ */ g({
|
|
3383
3393
|
__name: "PaneldynamicProgressText",
|
|
3384
3394
|
props: {
|
|
3385
3395
|
item: {},
|
|
3386
3396
|
data: {}
|
|
3387
3397
|
},
|
|
3388
3398
|
setup(l) {
|
|
3389
|
-
const o =
|
|
3399
|
+
const o = j(l);
|
|
3390
3400
|
return (e, s) => (t(), u("div", {
|
|
3391
|
-
class: r(
|
|
3392
|
-
}, I(
|
|
3401
|
+
class: r(k(o).cssClasses.progressText)
|
|
3402
|
+
}, I(k(o).progressText), 3));
|
|
3393
3403
|
}
|
|
3394
|
-
}), Mo = ["id"], No = /* @__PURE__ */
|
|
3404
|
+
}), Mo = ["id"], No = /* @__PURE__ */ g({
|
|
3395
3405
|
__name: "Errors",
|
|
3396
3406
|
props: {
|
|
3397
3407
|
element: {},
|
|
3398
3408
|
location: {}
|
|
3399
3409
|
},
|
|
3400
3410
|
setup(l) {
|
|
3401
|
-
const n =
|
|
3411
|
+
const n = T();
|
|
3402
3412
|
return (o, e) => {
|
|
3403
|
-
const s =
|
|
3413
|
+
const s = q("survey-string");
|
|
3404
3414
|
return o.element.hasVisibleErrors ? (t(), u("div", {
|
|
3405
3415
|
key: 0,
|
|
3406
3416
|
role: "alert",
|
|
@@ -3410,7 +3420,7 @@ const Ro = /* @__PURE__ */ h({
|
|
|
3410
3420
|
ref_key: "root",
|
|
3411
3421
|
ref: n
|
|
3412
3422
|
}, [
|
|
3413
|
-
(t(!0), u(w, null,
|
|
3423
|
+
(t(!0), u(w, null, B(o.element.errors, (i, a) => (t(), u("div", {
|
|
3414
3424
|
key: "error_" + a
|
|
3415
3425
|
}, [
|
|
3416
3426
|
c("span", {
|
|
@@ -3432,7 +3442,7 @@ const Ro = /* @__PURE__ */ h({
|
|
|
3432
3442
|
], 10, Mo)) : m("", !0);
|
|
3433
3443
|
};
|
|
3434
3444
|
}
|
|
3435
|
-
}), Ho = { key: 0 }, Ao = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], Eo = /* @__PURE__ */
|
|
3445
|
+
}), Ho = { key: 0 }, Ao = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], Eo = /* @__PURE__ */ g({
|
|
3436
3446
|
__name: "QuestionComment",
|
|
3437
3447
|
props: {
|
|
3438
3448
|
question: {},
|
|
@@ -3459,7 +3469,7 @@ const Ro = /* @__PURE__ */ h({
|
|
|
3459
3469
|
})
|
|
3460
3470
|
}, null, 46, Ao));
|
|
3461
3471
|
}
|
|
3462
|
-
}), _o = /* @__PURE__ */
|
|
3472
|
+
}), _o = /* @__PURE__ */ g({
|
|
3463
3473
|
__name: "TitleElement",
|
|
3464
3474
|
props: {
|
|
3465
3475
|
element: {},
|
|
@@ -3470,8 +3480,8 @@ const Ro = /* @__PURE__ */ h({
|
|
|
3470
3480
|
de(o);
|
|
3471
3481
|
};
|
|
3472
3482
|
return (o, e) => {
|
|
3473
|
-
const s =
|
|
3474
|
-
return o.element.hasTitle ? (t(),
|
|
3483
|
+
const s = q("survey-element-title-content"), i = q("sv-title-actions");
|
|
3484
|
+
return o.element.hasTitle ? (t(), y(N(o.element.titleTagName), {
|
|
3475
3485
|
key: 0,
|
|
3476
3486
|
class: r(o.element.cssTitle),
|
|
3477
3487
|
"aria-label": o.element.titleAriaLabel,
|
|
@@ -3484,12 +3494,12 @@ const Ro = /* @__PURE__ */ h({
|
|
|
3484
3494
|
})
|
|
3485
3495
|
}, {
|
|
3486
3496
|
default: ye(() => [
|
|
3487
|
-
o.element.hasTitleActions ? m("", !0) : (t(),
|
|
3497
|
+
o.element.hasTitleActions ? m("", !0) : (t(), y(s, {
|
|
3488
3498
|
key: 0,
|
|
3489
3499
|
element: o.element,
|
|
3490
3500
|
css: o.css
|
|
3491
3501
|
}, null, 8, ["element", "css"])),
|
|
3492
|
-
o.element.hasTitleActions ? (t(),
|
|
3502
|
+
o.element.hasTitleActions ? (t(), y(i, {
|
|
3493
3503
|
key: 1,
|
|
3494
3504
|
element: o.element,
|
|
3495
3505
|
css: o.css
|
|
@@ -3499,7 +3509,7 @@ const Ro = /* @__PURE__ */ h({
|
|
|
3499
3509
|
}, 40, ["class", "aria-label", "id", "tabindex", "aria-expanded", "role"])) : m("", !0);
|
|
3500
3510
|
};
|
|
3501
3511
|
}
|
|
3502
|
-
}), Vo = { class: "sv-vue-title-additional-div" }, Oo = { key: 3 }, Fo = { key: 5 }, Wo = { key: 7 }, zo = /* @__PURE__ */
|
|
3512
|
+
}), Vo = { class: "sv-vue-title-additional-div" }, Oo = { key: 3 }, Fo = { key: 5 }, Wo = { key: 7 }, zo = /* @__PURE__ */ g({
|
|
3503
3513
|
__name: "TitleContent",
|
|
3504
3514
|
props: {
|
|
3505
3515
|
element: {},
|
|
@@ -3507,9 +3517,9 @@ const Ro = /* @__PURE__ */ h({
|
|
|
3507
3517
|
},
|
|
3508
3518
|
setup(l) {
|
|
3509
3519
|
return (n, o) => {
|
|
3510
|
-
const e =
|
|
3520
|
+
const e = q("survey-string");
|
|
3511
3521
|
return t(), u("div", Vo, [
|
|
3512
|
-
n.element.isTitleRenderedAsString ? (t(),
|
|
3522
|
+
n.element.isTitleRenderedAsString ? (t(), y(e, {
|
|
3513
3523
|
key: 0,
|
|
3514
3524
|
locString: n.element.locTitle
|
|
3515
3525
|
}, null, 8, ["locString"])) : m("", !0),
|
|
@@ -3531,7 +3541,7 @@ const Ro = /* @__PURE__ */ h({
|
|
|
3531
3541
|
"aria-hidden": !0
|
|
3532
3542
|
}, I(n.element.requiredText), 3)) : m("", !0),
|
|
3533
3543
|
!n.element.isTitleRenderedAsString && n.element.isRequireTextBeforeTitle ? (t(), u("span", Fo, "\xA0")) : m("", !0),
|
|
3534
|
-
n.element.isTitleRenderedAsString ? m("", !0) : (t(),
|
|
3544
|
+
n.element.isTitleRenderedAsString ? m("", !0) : (t(), y(e, {
|
|
3535
3545
|
key: 6,
|
|
3536
3546
|
locString: n.element.locTitle
|
|
3537
3547
|
}, null, 8, ["locString"])),
|
|
@@ -3544,23 +3554,23 @@ const Ro = /* @__PURE__ */ h({
|
|
|
3544
3554
|
]);
|
|
3545
3555
|
};
|
|
3546
3556
|
}
|
|
3547
|
-
}), Uo = { class: "sv-title-actions" }, Ko = { class: "sv-title-actions__title" }, jo = /* @__PURE__ */
|
|
3557
|
+
}), Uo = { class: "sv-title-actions" }, Ko = { class: "sv-title-actions__title" }, jo = /* @__PURE__ */ g({
|
|
3548
3558
|
__name: "TitleActions",
|
|
3549
3559
|
props: {
|
|
3550
3560
|
element: {},
|
|
3551
3561
|
css: {}
|
|
3552
3562
|
},
|
|
3553
3563
|
setup(l) {
|
|
3554
|
-
const n = l, o =
|
|
3564
|
+
const n = l, o = R(() => n.element.getTitleToolbar());
|
|
3555
3565
|
return (e, s) => {
|
|
3556
|
-
const i =
|
|
3566
|
+
const i = q("survey-string"), a = q("survey-element-title-content"), d = q("sv-action-bar");
|
|
3557
3567
|
return t(), u("div", Uo, [
|
|
3558
3568
|
c("span", Ko, [
|
|
3559
|
-
e.element.isPage ? (t(),
|
|
3569
|
+
e.element.isPage ? (t(), y(i, {
|
|
3560
3570
|
key: 0,
|
|
3561
3571
|
locString: e.element.locTitle
|
|
3562
3572
|
}, null, 8, ["locString"])) : m("", !0),
|
|
3563
|
-
e.element.isPage ? m("", !0) : (t(),
|
|
3573
|
+
e.element.isPage ? m("", !0) : (t(), y(a, {
|
|
3564
3574
|
key: 1,
|
|
3565
3575
|
element: e.element,
|
|
3566
3576
|
css: e.css
|
|
@@ -3583,7 +3593,7 @@ function Jo(l, n) {
|
|
|
3583
3593
|
}
|
|
3584
3594
|
const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /* @__PURE__ */ c("use", null, null, -1), st = [
|
|
3585
3595
|
et
|
|
3586
|
-
], nt = /* @__PURE__ */
|
|
3596
|
+
], nt = /* @__PURE__ */ g({
|
|
3587
3597
|
__name: "SvgIcon",
|
|
3588
3598
|
props: {
|
|
3589
3599
|
size: {},
|
|
@@ -3593,7 +3603,7 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
3593
3603
|
title: {}
|
|
3594
3604
|
},
|
|
3595
3605
|
setup(l) {
|
|
3596
|
-
const n = l, o =
|
|
3606
|
+
const n = l, o = T(), e = () => {
|
|
3597
3607
|
Re(
|
|
3598
3608
|
n.size,
|
|
3599
3609
|
n.width,
|
|
@@ -3603,9 +3613,9 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
3603
3613
|
n.title
|
|
3604
3614
|
);
|
|
3605
3615
|
};
|
|
3606
|
-
return
|
|
3616
|
+
return X(() => {
|
|
3607
3617
|
e();
|
|
3608
|
-
}),
|
|
3618
|
+
}), E(() => {
|
|
3609
3619
|
e();
|
|
3610
3620
|
}), (s, i) => (t(), u("svg", {
|
|
3611
3621
|
ref_key: "svgIconElement",
|
|
@@ -3615,7 +3625,7 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
3615
3625
|
"aria-label": s.title
|
|
3616
3626
|
}, st, 8, xo));
|
|
3617
3627
|
}
|
|
3618
|
-
}), ot = /* @__PURE__ */
|
|
3628
|
+
}), ot = /* @__PURE__ */ g({
|
|
3619
3629
|
__name: "ActionBar",
|
|
3620
3630
|
props: {
|
|
3621
3631
|
model: {},
|
|
@@ -3623,13 +3633,13 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
3623
3633
|
handleClick: { type: Boolean }
|
|
3624
3634
|
},
|
|
3625
3635
|
setup(l) {
|
|
3626
|
-
const n = l, o =
|
|
3627
|
-
return
|
|
3636
|
+
const n = l, o = T(null);
|
|
3637
|
+
return L(() => n.model), E(() => {
|
|
3628
3638
|
!n.model.hasActions || n.model.initResponsivityManager(o.value);
|
|
3629
|
-
}),
|
|
3639
|
+
}), V(() => {
|
|
3630
3640
|
n.model.resetResponsivityManager();
|
|
3631
3641
|
}), (e, s) => {
|
|
3632
|
-
const i =
|
|
3642
|
+
const i = q("sv-action");
|
|
3633
3643
|
return e.model.hasActions ? (t(), u("div", {
|
|
3634
3644
|
key: 0,
|
|
3635
3645
|
ref_key: "root",
|
|
@@ -3639,44 +3649,44 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
3639
3649
|
a.stopPropagation();
|
|
3640
3650
|
})
|
|
3641
3651
|
}, [
|
|
3642
|
-
(t(!0), u(w, null,
|
|
3652
|
+
(t(!0), u(w, null, B(e.model.renderedActions, (a) => (t(), y(i, {
|
|
3643
3653
|
key: a.id,
|
|
3644
3654
|
item: a
|
|
3645
3655
|
}, null, 8, ["item"]))), 128))
|
|
3646
3656
|
], 2)) : m("", !0);
|
|
3647
3657
|
};
|
|
3648
3658
|
}
|
|
3649
|
-
}), tt = ["id"], it = { class: "sv-action__content" }, lt = /* @__PURE__ */
|
|
3659
|
+
}), tt = ["id"], it = { class: "sv-action__content" }, lt = /* @__PURE__ */ g({
|
|
3650
3660
|
__name: "Action",
|
|
3651
3661
|
props: {
|
|
3652
3662
|
item: {}
|
|
3653
3663
|
},
|
|
3654
3664
|
setup(l) {
|
|
3655
|
-
const n = l, o =
|
|
3665
|
+
const n = l, o = R(
|
|
3656
3666
|
() => n.item.component || "sv-action-bar-item"
|
|
3657
3667
|
);
|
|
3658
|
-
return
|
|
3659
|
-
const i =
|
|
3668
|
+
return L(() => n.item), (e, s) => {
|
|
3669
|
+
const i = q("sv-action-bar-separator");
|
|
3660
3670
|
return t(), u("div", {
|
|
3661
3671
|
class: r(e.item.getActionRootCss()),
|
|
3662
3672
|
id: e.item.id
|
|
3663
3673
|
}, [
|
|
3664
3674
|
c("div", it, [
|
|
3665
|
-
e.item.needSeparator ? (t(),
|
|
3666
|
-
(t(),
|
|
3675
|
+
e.item.needSeparator ? (t(), y(i, { key: 0 })) : m("", !0),
|
|
3676
|
+
(t(), y(N(o.value), { item: e.item }, null, 8, ["item"]))
|
|
3667
3677
|
])
|
|
3668
3678
|
], 10, tt);
|
|
3669
3679
|
};
|
|
3670
3680
|
}
|
|
3671
|
-
}), rt = ["disabled", "title", "aria-checked", "aria-expanded", "role", "tabindex"], at = /* @__PURE__ */
|
|
3681
|
+
}), rt = ["disabled", "title", "aria-checked", "aria-expanded", "role", "tabindex"], at = /* @__PURE__ */ g({
|
|
3672
3682
|
__name: "ActionBarItem",
|
|
3673
3683
|
props: {
|
|
3674
3684
|
item: {}
|
|
3675
3685
|
},
|
|
3676
3686
|
setup(l) {
|
|
3677
3687
|
const n = l;
|
|
3678
|
-
return
|
|
3679
|
-
const s =
|
|
3688
|
+
return L(() => n.item), (o, e) => {
|
|
3689
|
+
const s = q("sv-svg-icon");
|
|
3680
3690
|
return t(), u("button", {
|
|
3681
3691
|
class: r(o.item.getActionBarItemCss()),
|
|
3682
3692
|
type: "button",
|
|
@@ -3693,7 +3703,7 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
3693
3703
|
role: o.item.ariaRole,
|
|
3694
3704
|
tabindex: o.item.disableTabStop ? -1 : 0
|
|
3695
3705
|
}, [
|
|
3696
|
-
o.item.iconName ? (t(),
|
|
3706
|
+
o.item.iconName ? (t(), y(s, {
|
|
3697
3707
|
key: 0,
|
|
3698
3708
|
class: r(o.item.cssClasses.itemIcon),
|
|
3699
3709
|
iconName: o.item.iconName,
|
|
@@ -3707,7 +3717,7 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
3707
3717
|
], 42, rt);
|
|
3708
3718
|
};
|
|
3709
3719
|
}
|
|
3710
|
-
}), ut = ["disabled", "title", "role", "tabindex"], dt = /* @__PURE__ */
|
|
3720
|
+
}), ut = ["disabled", "title", "role", "tabindex"], dt = /* @__PURE__ */ g({
|
|
3711
3721
|
__name: "ActionBarItemDropdown",
|
|
3712
3722
|
props: {
|
|
3713
3723
|
item: {}
|
|
@@ -3715,7 +3725,7 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
3715
3725
|
setup(l) {
|
|
3716
3726
|
const n = l, o = $e;
|
|
3717
3727
|
let e;
|
|
3718
|
-
return
|
|
3728
|
+
return L(
|
|
3719
3729
|
() => n.item,
|
|
3720
3730
|
(s) => {
|
|
3721
3731
|
e = new Te(s);
|
|
@@ -3724,23 +3734,23 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
3724
3734
|
e.dispose();
|
|
3725
3735
|
}
|
|
3726
3736
|
), (s, i) => {
|
|
3727
|
-
const a =
|
|
3737
|
+
const a = q("sv-svg-icon"), d = q("sv-popup");
|
|
3728
3738
|
return t(), u(w, null, [
|
|
3729
3739
|
c("button", {
|
|
3730
3740
|
type: "button",
|
|
3731
3741
|
class: r(s.item.getActionBarItemCss()),
|
|
3732
|
-
onClick: i[0] || (i[0] = (
|
|
3733
|
-
s.item.action(s.item, !!
|
|
3742
|
+
onClick: i[0] || (i[0] = (v) => {
|
|
3743
|
+
s.item.action(s.item, !!v.pointerType);
|
|
3734
3744
|
}),
|
|
3735
|
-
onKeyup: i[1] || (i[1] = (
|
|
3736
|
-
|
|
3745
|
+
onKeyup: i[1] || (i[1] = (v) => {
|
|
3746
|
+
v.stopPropagation();
|
|
3737
3747
|
}),
|
|
3738
3748
|
disabled: s.item.enabled !== void 0 && s.item.enabled,
|
|
3739
3749
|
title: s.item.tooltip || s.item.title,
|
|
3740
3750
|
role: s.item.ariaRole,
|
|
3741
3751
|
tabindex: s.item.disableTabStop ? -1 : 0
|
|
3742
3752
|
}, [
|
|
3743
|
-
s.item.iconName ? (t(),
|
|
3753
|
+
s.item.iconName ? (t(), y(a, {
|
|
3744
3754
|
key: 0,
|
|
3745
3755
|
class: r(s.item.cssClasses.itemIcon),
|
|
3746
3756
|
iconName: s.item.iconName,
|
|
@@ -3754,29 +3764,29 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
3754
3764
|
], 42, ut),
|
|
3755
3765
|
C(d, {
|
|
3756
3766
|
model: s.item.popupModel,
|
|
3757
|
-
getTarget:
|
|
3767
|
+
getTarget: k(o)
|
|
3758
3768
|
}, null, 8, ["model", "getTarget"])
|
|
3759
3769
|
], 64);
|
|
3760
3770
|
};
|
|
3761
3771
|
}
|
|
3762
|
-
}), mt = /* @__PURE__ */
|
|
3772
|
+
}), mt = /* @__PURE__ */ g({
|
|
3763
3773
|
__name: "ActionBarSeparator",
|
|
3764
3774
|
props: {
|
|
3765
3775
|
item: {}
|
|
3766
3776
|
},
|
|
3767
3777
|
setup(l) {
|
|
3768
|
-
const n = l, o =
|
|
3778
|
+
const n = l, o = R(() => n.item && n.item.innerCss);
|
|
3769
3779
|
return (e, s) => (t(), u("div", {
|
|
3770
3780
|
class: r(["sv-action-bar-separator", o.value])
|
|
3771
3781
|
}, null, 2));
|
|
3772
3782
|
}
|
|
3773
|
-
}), ct = ["aria-label", "placeholder", "value"], pt = ["aria-label"], vt = ["id"], qt = /* @__PURE__ */
|
|
3783
|
+
}), ct = ["aria-label", "placeholder", "value"], pt = ["aria-label"], vt = ["id"], qt = /* @__PURE__ */ g({
|
|
3774
3784
|
__name: "List",
|
|
3775
3785
|
props: {
|
|
3776
3786
|
model: {}
|
|
3777
3787
|
},
|
|
3778
3788
|
setup(l) {
|
|
3779
|
-
const n = l, o =
|
|
3789
|
+
const n = l, o = T(null), e = (a) => {
|
|
3780
3790
|
const d = n.model;
|
|
3781
3791
|
d.filterString = a.target.value;
|
|
3782
3792
|
}, s = (a) => {
|
|
@@ -3785,10 +3795,10 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
3785
3795
|
}, i = (a) => {
|
|
3786
3796
|
n.model.onMouseMove(a);
|
|
3787
3797
|
};
|
|
3788
|
-
return
|
|
3798
|
+
return L(() => n.model), E(() => {
|
|
3789
3799
|
n.model.initListContainerHtmlElement(o.value);
|
|
3790
3800
|
}), (a, d) => {
|
|
3791
|
-
const
|
|
3801
|
+
const v = q("sv-svg-icon"), p = q("sv-list-item");
|
|
3792
3802
|
return t(), u("div", {
|
|
3793
3803
|
class: r(a.model.cssClasses.root),
|
|
3794
3804
|
ref_key: "listContainerElement",
|
|
@@ -3801,7 +3811,7 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
3801
3811
|
c("div", {
|
|
3802
3812
|
class: r(a.model.cssClasses.filterIcon)
|
|
3803
3813
|
}, [
|
|
3804
|
-
C(
|
|
3814
|
+
C(v, {
|
|
3805
3815
|
iconName: "icon-search",
|
|
3806
3816
|
size: "auto"
|
|
3807
3817
|
})
|
|
@@ -3817,18 +3827,18 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
3817
3827
|
}, null, 42, ct),
|
|
3818
3828
|
a.model.showSearchClearButton && !!a.model.filterString ? (t(), u("button", {
|
|
3819
3829
|
key: 0,
|
|
3820
|
-
onClick: d[0] || (d[0] = (
|
|
3821
|
-
a.model.onClickSearchClearButton(
|
|
3830
|
+
onClick: d[0] || (d[0] = (b) => {
|
|
3831
|
+
a.model.onClickSearchClearButton(b);
|
|
3822
3832
|
}),
|
|
3823
3833
|
class: r(a.model.cssClasses.searchClearButtonIcon)
|
|
3824
3834
|
}, [
|
|
3825
|
-
C(
|
|
3835
|
+
C(v, {
|
|
3826
3836
|
iconName: "icon-searchclear",
|
|
3827
3837
|
size: "auto"
|
|
3828
3838
|
})
|
|
3829
3839
|
], 2)) : m("", !0)
|
|
3830
3840
|
], 2)) : m("", !0),
|
|
3831
|
-
|
|
3841
|
+
P(c("div", {
|
|
3832
3842
|
class: r(a.model.cssClasses.emptyContainer)
|
|
3833
3843
|
}, [
|
|
3834
3844
|
c("div", {
|
|
@@ -3836,49 +3846,49 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
3836
3846
|
"aria-label": a.model.emptyMessage
|
|
3837
3847
|
}, I(a.model.emptyMessage), 11, pt)
|
|
3838
3848
|
], 2), [
|
|
3839
|
-
[
|
|
3849
|
+
[A, a.model.isEmpty]
|
|
3840
3850
|
]),
|
|
3841
|
-
a.model.renderElements ?
|
|
3851
|
+
a.model.renderElements ? P((t(), u("ul", {
|
|
3842
3852
|
key: 1,
|
|
3843
3853
|
class: r(a.model.getListClass()),
|
|
3844
3854
|
role: "listbox",
|
|
3845
3855
|
id: a.model.elementId,
|
|
3846
|
-
onMousedown: d[1] || (d[1] = (
|
|
3847
|
-
|
|
3856
|
+
onMousedown: d[1] || (d[1] = (b) => {
|
|
3857
|
+
b.preventDefault();
|
|
3848
3858
|
}),
|
|
3849
3859
|
onMousemove: i,
|
|
3850
|
-
onKeydown: d[2] || (d[2] = (
|
|
3851
|
-
a.model.onKeyDown(
|
|
3860
|
+
onKeydown: d[2] || (d[2] = (b) => {
|
|
3861
|
+
a.model.onKeyDown(b);
|
|
3852
3862
|
})
|
|
3853
3863
|
}, [
|
|
3854
|
-
(t(!0), u(w, null,
|
|
3855
|
-
item:
|
|
3864
|
+
(t(!0), u(w, null, B(a.model.renderedActions, (b) => (t(), y(p, {
|
|
3865
|
+
item: b,
|
|
3856
3866
|
model: a.model,
|
|
3857
|
-
key:
|
|
3867
|
+
key: b.id
|
|
3858
3868
|
}, null, 8, ["item", "model"]))), 128))
|
|
3859
3869
|
], 42, vt)), [
|
|
3860
|
-
[
|
|
3870
|
+
[A, !a.model.isEmpty]
|
|
3861
3871
|
]) : m("", !0)
|
|
3862
3872
|
], 2);
|
|
3863
3873
|
};
|
|
3864
3874
|
}
|
|
3865
|
-
}), yt = ["aria-selected", "id"], gt = /* @__PURE__ */
|
|
3875
|
+
}), yt = ["aria-selected", "id"], gt = /* @__PURE__ */ g({
|
|
3866
3876
|
__name: "ListItem",
|
|
3867
3877
|
props: {
|
|
3868
3878
|
model: {},
|
|
3869
3879
|
item: {}
|
|
3870
3880
|
},
|
|
3871
3881
|
setup(l) {
|
|
3872
|
-
const n = l, o =
|
|
3882
|
+
const n = l, o = R(() => n.item.elementId), e = (s) => {
|
|
3873
3883
|
n.model.onItemClick(n.item), s.stopPropagation();
|
|
3874
3884
|
};
|
|
3875
|
-
return
|
|
3885
|
+
return L(() => n.item), E(() => {
|
|
3876
3886
|
setTimeout(() => {
|
|
3877
3887
|
n.model.onLastItemRended(n.item);
|
|
3878
3888
|
});
|
|
3879
3889
|
}), (s, i) => {
|
|
3880
|
-
const a =
|
|
3881
|
-
return
|
|
3890
|
+
const a = q("sv-svg-icon"), d = q("survey-string"), v = ee("key2click");
|
|
3891
|
+
return P((t(), u("li", {
|
|
3882
3892
|
tabindex: "0",
|
|
3883
3893
|
role: "option",
|
|
3884
3894
|
"aria-selected": s.model.isItemSelected(s.item),
|
|
@@ -3895,53 +3905,53 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
3895
3905
|
style: S({ paddingInlineStart: s.model.getItemIndent(s.item) }),
|
|
3896
3906
|
class: r(s.model.cssClasses.itemBody)
|
|
3897
3907
|
}, [
|
|
3898
|
-
s.item.iconName && !s.item.component ? (t(),
|
|
3908
|
+
s.item.iconName && !s.item.component ? (t(), y(a, {
|
|
3899
3909
|
key: 0,
|
|
3900
3910
|
class: r(s.model.cssClasses.itemIcon),
|
|
3901
3911
|
iconName: s.item.iconName,
|
|
3902
3912
|
size: s.item.iconSize
|
|
3903
3913
|
}, null, 8, ["class", "iconName", "size"])) : m("", !0),
|
|
3904
|
-
s.item.component ? m("", !0) : (t(),
|
|
3914
|
+
s.item.component ? m("", !0) : (t(), y(d, {
|
|
3905
3915
|
key: 1,
|
|
3906
3916
|
locString: s.item.locTitle
|
|
3907
3917
|
}, null, 8, ["locString"])),
|
|
3908
|
-
s.item.component ? (t(),
|
|
3918
|
+
s.item.component ? (t(), y(N(s.item.component), {
|
|
3909
3919
|
key: 2,
|
|
3910
3920
|
item: s.item
|
|
3911
3921
|
}, null, 8, ["item"])) : m("", !0)
|
|
3912
3922
|
], 6)
|
|
3913
3923
|
], 10, yt)), [
|
|
3914
|
-
[
|
|
3915
|
-
[
|
|
3924
|
+
[A, s.model.isItemVisible(s.item)],
|
|
3925
|
+
[v]
|
|
3916
3926
|
]);
|
|
3917
3927
|
};
|
|
3918
3928
|
}
|
|
3919
|
-
}), ht = /* @__PURE__ */
|
|
3929
|
+
}), ht = /* @__PURE__ */ g({
|
|
3920
3930
|
__name: "Popup",
|
|
3921
3931
|
props: {
|
|
3922
3932
|
getTarget: { type: Function },
|
|
3923
3933
|
model: {}
|
|
3924
3934
|
},
|
|
3925
3935
|
setup(l) {
|
|
3926
|
-
const n = l, o =
|
|
3936
|
+
const n = l, o = W(
|
|
3927
3937
|
te(n.model, void 0)
|
|
3928
|
-
), e =
|
|
3929
|
-
return
|
|
3938
|
+
), e = T(null);
|
|
3939
|
+
return G(
|
|
3930
3940
|
() => n.model,
|
|
3931
3941
|
(s) => {
|
|
3932
3942
|
o.value.dispose(), o.value = te(s, void 0);
|
|
3933
3943
|
},
|
|
3934
3944
|
{ immediate: !0 }
|
|
3935
|
-
),
|
|
3945
|
+
), L(() => o.value), E(() => {
|
|
3936
3946
|
const s = e.value;
|
|
3937
3947
|
o.value.setComponentElement(
|
|
3938
3948
|
s,
|
|
3939
3949
|
n.getTarget ? n.getTarget(s) : void 0
|
|
3940
3950
|
);
|
|
3941
|
-
}),
|
|
3951
|
+
}), V(() => {
|
|
3942
3952
|
o.value.dispose();
|
|
3943
3953
|
}), (s, i) => {
|
|
3944
|
-
const a =
|
|
3954
|
+
const a = q("sv-popup-container");
|
|
3945
3955
|
return t(), u("div", {
|
|
3946
3956
|
ref_key: "root",
|
|
3947
3957
|
ref: e
|
|
@@ -3956,7 +3966,7 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
3956
3966
|
}, ft = { class: "sv-popup__scrolling-content" }, It = { class: "sv-popup__content" }, wt = {
|
|
3957
3967
|
key: 1,
|
|
3958
3968
|
class: "sv-popup__body-footer"
|
|
3959
|
-
}, St = /* @__PURE__ */
|
|
3969
|
+
}, St = /* @__PURE__ */ g({
|
|
3960
3970
|
__name: "PopupContainer",
|
|
3961
3971
|
props: {
|
|
3962
3972
|
model: {}
|
|
@@ -3967,12 +3977,12 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
3967
3977
|
const e = (s) => {
|
|
3968
3978
|
s.stopPropagation();
|
|
3969
3979
|
};
|
|
3970
|
-
return
|
|
3980
|
+
return L(() => n.model), X(() => {
|
|
3971
3981
|
const s = n.model;
|
|
3972
3982
|
!o && s.isVisible && n.model.updateOnShowing(), o = s.isVisible;
|
|
3973
3983
|
}), (s, i) => {
|
|
3974
|
-
const a =
|
|
3975
|
-
return
|
|
3984
|
+
const a = q("sv-action-bar");
|
|
3985
|
+
return P((t(), u("div", {
|
|
3976
3986
|
tabindex: "-1",
|
|
3977
3987
|
class: r(["sv-popup", s.model.styleClass]),
|
|
3978
3988
|
onKeydown: i[0] || (i[0] = (d) => {
|
|
@@ -3994,7 +4004,7 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
3994
4004
|
onClick: e
|
|
3995
4005
|
}, [
|
|
3996
4006
|
c("div", Ct, [
|
|
3997
|
-
s.model.showHeader ? (t(),
|
|
4007
|
+
s.model.showHeader ? (t(), y(N(s.model.popupHeaderTemplate), {
|
|
3998
4008
|
key: 0,
|
|
3999
4009
|
model: s.model
|
|
4000
4010
|
}, null, 8, ["model"])) : m("", !0),
|
|
@@ -4002,7 +4012,7 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4002
4012
|
s.model.title ? (t(), u("div", kt, I(s.model.title), 1)) : m("", !0),
|
|
4003
4013
|
c("div", ft, [
|
|
4004
4014
|
c("div", It, [
|
|
4005
|
-
(t(),
|
|
4015
|
+
(t(), y(N(s.model.contentComponentName), he(Ce(s.model.contentComponentData)), null, 16))
|
|
4006
4016
|
])
|
|
4007
4017
|
]),
|
|
4008
4018
|
s.model.showFooter ? (t(), u("div", wt, [
|
|
@@ -4014,11 +4024,11 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4014
4024
|
])
|
|
4015
4025
|
], 4)
|
|
4016
4026
|
], 34)), [
|
|
4017
|
-
[
|
|
4027
|
+
[A, s.model.isVisible]
|
|
4018
4028
|
]);
|
|
4019
4029
|
};
|
|
4020
4030
|
}
|
|
4021
|
-
}), Rt = /* @__PURE__ */
|
|
4031
|
+
}), Rt = /* @__PURE__ */ g({
|
|
4022
4032
|
__name: "PopupPointer",
|
|
4023
4033
|
props: {
|
|
4024
4034
|
model: {}
|
|
@@ -4035,7 +4045,7 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4035
4045
|
}), Tt = {
|
|
4036
4046
|
key: 0,
|
|
4037
4047
|
class: "sv-components-column"
|
|
4038
|
-
}, $t = /* @__PURE__ */
|
|
4048
|
+
}, $t = /* @__PURE__ */ g({
|
|
4039
4049
|
__name: "Container",
|
|
4040
4050
|
props: {
|
|
4041
4051
|
survey: {},
|
|
@@ -4043,23 +4053,23 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4043
4053
|
needRenderWrapper: {}
|
|
4044
4054
|
},
|
|
4045
4055
|
setup(l) {
|
|
4046
|
-
const n = l, o =
|
|
4056
|
+
const n = l, o = R(
|
|
4047
4057
|
() => n.survey.getContainerContent(n.container)
|
|
4048
4058
|
);
|
|
4049
4059
|
return (e, s) => o.value.length > 0 ? (t(), u(w, { key: 0 }, [
|
|
4050
4060
|
e.needRenderWrapper ? (t(), u("div", Tt, [
|
|
4051
|
-
(t(!0), u(w, null,
|
|
4061
|
+
(t(!0), u(w, null, B(o.value, (i, a) => (t(), y(N(i.component), {
|
|
4052
4062
|
survey: e.survey,
|
|
4053
4063
|
container: e.container,
|
|
4054
4064
|
model: i.data
|
|
4055
4065
|
}, null, 8, ["survey", "container", "model"]))), 256))
|
|
4056
|
-
])) : (t(!0), u(w, { key: 1 },
|
|
4066
|
+
])) : (t(!0), u(w, { key: 1 }, B(o.value, (i, a) => (t(), y(N(i.component), {
|
|
4057
4067
|
survey: e.survey,
|
|
4058
4068
|
model: i.data
|
|
4059
4069
|
}, null, 8, ["survey", "model"]))), 256))
|
|
4060
4070
|
], 64)) : m("", !0);
|
|
4061
4071
|
}
|
|
4062
|
-
}),
|
|
4072
|
+
}), Z = /* @__PURE__ */ g({
|
|
4063
4073
|
__name: "Progress",
|
|
4064
4074
|
props: {
|
|
4065
4075
|
survey: {},
|
|
@@ -4067,7 +4077,7 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4067
4077
|
css: {}
|
|
4068
4078
|
},
|
|
4069
4079
|
setup(l) {
|
|
4070
|
-
const n = l, o =
|
|
4080
|
+
const n = l, o = R(() => n.survey.progressValue + "%"), e = (i) => ie.getProgressTextInBarCss(i), s = (i) => ie.getProgressTextUnderBarCss(i);
|
|
4071
4081
|
return (i, a) => (t(), u("div", {
|
|
4072
4082
|
class: r(i.survey.getProgressCssClasses(i.container))
|
|
4073
4083
|
}, [
|
|
@@ -4087,36 +4097,36 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4087
4097
|
}, I(i.survey.progressText), 3)
|
|
4088
4098
|
], 2));
|
|
4089
4099
|
}
|
|
4090
|
-
}), Bt = ["onClick"], Lt = ["title"], Dt = ["title"], Pt = /* @__PURE__ */
|
|
4100
|
+
}), Bt = ["onClick"], Lt = ["title"], Dt = ["title"], Pt = /* @__PURE__ */ g({
|
|
4091
4101
|
__name: "ProgressButtons",
|
|
4092
4102
|
props: {
|
|
4093
4103
|
survey: {}
|
|
4094
4104
|
},
|
|
4095
4105
|
setup(l) {
|
|
4096
|
-
const n = l, o = new Be(n.survey), e =
|
|
4106
|
+
const n = l, o = new Be(n.survey), e = T(!1), s = T(), i = R(() => n.survey.css);
|
|
4097
4107
|
let a;
|
|
4098
|
-
const d = (
|
|
4099
|
-
o.clickListElement(
|
|
4100
|
-
},
|
|
4101
|
-
let
|
|
4102
|
-
|
|
4108
|
+
const d = ($) => o.isListElementClickable($), v = ($) => o.getListElementCss($), p = ($) => {
|
|
4109
|
+
o.clickListElement($);
|
|
4110
|
+
}, b = ($, M) => o.getScrollButtonCss($, M), f = ($) => {
|
|
4111
|
+
let M = s.value;
|
|
4112
|
+
M.scrollLeft += ($ ? -1 : 1) * 70;
|
|
4103
4113
|
};
|
|
4104
|
-
return
|
|
4105
|
-
const
|
|
4114
|
+
return E(() => {
|
|
4115
|
+
const $ = s.value;
|
|
4106
4116
|
a = setInterval(() => {
|
|
4107
|
-
e.value =
|
|
4117
|
+
e.value = $.scrollWidth > $.offsetWidth;
|
|
4108
4118
|
}, 100);
|
|
4109
|
-
}),
|
|
4119
|
+
}), K(() => {
|
|
4110
4120
|
typeof a < "u" && (clearInterval(a), a = void 0);
|
|
4111
|
-
}), (
|
|
4121
|
+
}), ($, M) => (t(), u("div", {
|
|
4112
4122
|
class: r(i.value.progressButtonsContainerCenter)
|
|
4113
4123
|
}, [
|
|
4114
4124
|
c("div", {
|
|
4115
4125
|
class: r(i.value.progressButtonsContainer)
|
|
4116
4126
|
}, [
|
|
4117
4127
|
c("div", {
|
|
4118
|
-
class: r(
|
|
4119
|
-
onClick:
|
|
4128
|
+
class: r(b(e.value, !0)),
|
|
4129
|
+
onClick: M[0] || (M[0] = (h) => f(!0)),
|
|
4120
4130
|
role: "button"
|
|
4121
4131
|
}, null, 2),
|
|
4122
4132
|
c("div", {
|
|
@@ -4127,31 +4137,31 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4127
4137
|
c("ul", {
|
|
4128
4138
|
class: r(i.value.progressButtonsList)
|
|
4129
4139
|
}, [
|
|
4130
|
-
(t(!0), u(w, null,
|
|
4131
|
-
key: "listelement" +
|
|
4132
|
-
class: r(
|
|
4133
|
-
onClick: (
|
|
4140
|
+
(t(!0), u(w, null, B($.survey.visiblePages, (h, D) => (t(), u("li", {
|
|
4141
|
+
key: "listelement" + D,
|
|
4142
|
+
class: r(v(D)),
|
|
4143
|
+
onClick: (_) => d(D) ? p(D) : null
|
|
4134
4144
|
}, [
|
|
4135
4145
|
c("div", {
|
|
4136
4146
|
class: r(i.value.progressButtonsPageTitle),
|
|
4137
|
-
title:
|
|
4138
|
-
}, I(
|
|
4147
|
+
title: h.renderedNavigationTitle
|
|
4148
|
+
}, I(h.renderedNavigationTitle), 11, Lt),
|
|
4139
4149
|
c("div", {
|
|
4140
4150
|
class: r(i.value.progressButtonsPageDescription),
|
|
4141
|
-
title:
|
|
4142
|
-
}, I(
|
|
4151
|
+
title: h.locNavigationDescription.renderedHtml
|
|
4152
|
+
}, I(h.locNavigationDescription.renderedHtml), 11, Dt)
|
|
4143
4153
|
], 10, Bt))), 128))
|
|
4144
4154
|
], 2)
|
|
4145
4155
|
], 2),
|
|
4146
4156
|
c("div", {
|
|
4147
|
-
class: r(
|
|
4148
|
-
onClick:
|
|
4157
|
+
class: r(b(e.value, !1)),
|
|
4158
|
+
onClick: M[1] || (M[1] = (h) => f(!1)),
|
|
4149
4159
|
role: "button"
|
|
4150
4160
|
}, null, 2)
|
|
4151
4161
|
], 2)
|
|
4152
4162
|
], 2));
|
|
4153
4163
|
}
|
|
4154
|
-
}), Mt = /* @__PURE__ */
|
|
4164
|
+
}), Mt = /* @__PURE__ */ g({
|
|
4155
4165
|
__name: "ProgressToc",
|
|
4156
4166
|
props: {
|
|
4157
4167
|
survey: {}
|
|
@@ -4159,26 +4169,26 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4159
4169
|
setup(l) {
|
|
4160
4170
|
const n = l, o = new Le(n.survey);
|
|
4161
4171
|
return (e, s) => {
|
|
4162
|
-
const i =
|
|
4172
|
+
const i = q("sv-svg-icon"), a = q("sv-popup"), d = q("sv-list"), v = ee("key2click");
|
|
4163
4173
|
return t(), u("div", {
|
|
4164
|
-
class: r(
|
|
4174
|
+
class: r(k(o).containerCss)
|
|
4165
4175
|
}, [
|
|
4166
|
-
|
|
4176
|
+
k(o).isMobile ? P((t(), u("div", {
|
|
4167
4177
|
key: 0,
|
|
4168
|
-
onClick: s[0] || (s[0] = (...
|
|
4178
|
+
onClick: s[0] || (s[0] = (...p) => k(o).togglePopup && k(o).togglePopup(...p))
|
|
4169
4179
|
}, [
|
|
4170
4180
|
C(i, {
|
|
4171
|
-
iconName:
|
|
4181
|
+
iconName: k(o).icon,
|
|
4172
4182
|
size: 24
|
|
4173
4183
|
}, null, 8, ["iconName"]),
|
|
4174
4184
|
C(a, {
|
|
4175
|
-
model:
|
|
4185
|
+
model: k(o).popupModel
|
|
4176
4186
|
}, null, 8, ["model"])
|
|
4177
4187
|
])), [
|
|
4178
|
-
[
|
|
4179
|
-
]) : (t(),
|
|
4188
|
+
[v]
|
|
4189
|
+
]) : (t(), y(d, {
|
|
4180
4190
|
key: 1,
|
|
4181
|
-
model:
|
|
4191
|
+
model: k(o).listModel
|
|
4182
4192
|
}, null, 8, ["model"]))
|
|
4183
4193
|
], 2);
|
|
4184
4194
|
};
|
|
@@ -4186,147 +4196,151 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4186
4196
|
}), Nt = { onsubmit: "return false;" }, Ht = {
|
|
4187
4197
|
key: 0,
|
|
4188
4198
|
class: "sv_custom_header"
|
|
4189
|
-
}, At = ["id"], Et = { key: 2 }, _t = ["innerHTML"], Vt = ["innerHTML"], Ot = ["innerHTML"], re = /* @__PURE__ */
|
|
4199
|
+
}, At = ["id"], Et = { key: 2 }, _t = ["innerHTML"], Vt = ["innerHTML"], Ot = ["innerHTML"], re = /* @__PURE__ */ g({
|
|
4190
4200
|
__name: "Survey",
|
|
4191
4201
|
props: {
|
|
4192
4202
|
model: {},
|
|
4193
4203
|
survey: {}
|
|
4194
4204
|
},
|
|
4195
4205
|
setup(l) {
|
|
4196
|
-
const n = l, o =
|
|
4197
|
-
const
|
|
4198
|
-
return be(
|
|
4199
|
-
}), a =
|
|
4200
|
-
const
|
|
4201
|
-
return !!i.value &&
|
|
4202
|
-
},
|
|
4206
|
+
const n = l, o = T(), e = T(""), s = T(1), i = R(() => {
|
|
4207
|
+
const $ = n.survey ? n.survey : n.model;
|
|
4208
|
+
return be($);
|
|
4209
|
+
}), a = R(() => i.value.activePage ? i.value.activePage.id : ""), d = () => {
|
|
4210
|
+
const $ = a.value;
|
|
4211
|
+
return !!i.value && $ + s.value.toString();
|
|
4212
|
+
}, v = R(
|
|
4203
4213
|
() => i.value.showCompletedPage && i.value.state === "completed"
|
|
4204
|
-
),
|
|
4205
|
-
return
|
|
4214
|
+
), p = R(() => i.value.css), b = R(() => "page" + d()), f = () => v.value ? (e.value || (e.value = i.value.processedCompletedHtml), e.value) : "";
|
|
4215
|
+
return L(() => i.value), E(() => {
|
|
4206
4216
|
if (!!i.value) {
|
|
4207
4217
|
i.value.needRenderIcons && De.renderIcons();
|
|
4208
|
-
var
|
|
4209
|
-
|
|
4210
|
-
var
|
|
4211
|
-
s.value++, (
|
|
4218
|
+
var $ = o.value;
|
|
4219
|
+
$ && i.value.afterRenderSurvey($), i.value.renderCallback = () => {
|
|
4220
|
+
var M, h;
|
|
4221
|
+
s.value++, (h = (M = x()) == null ? void 0 : M.proxy) == null || h.$forceUpdate();
|
|
4212
4222
|
}, i.value.startTimerFromUI();
|
|
4213
4223
|
}
|
|
4214
|
-
}),
|
|
4224
|
+
}), V(() => {
|
|
4215
4225
|
i.value.stopTimer(), i.value.renderCallback = void 0;
|
|
4216
|
-
}), (
|
|
4217
|
-
const
|
|
4226
|
+
}), ($, M) => {
|
|
4227
|
+
const h = q("survey-popup-modal"), D = q("survey-header"), _ = q("survey-page"), O = q("sv-brand-info"), Q = q("sv-notifier");
|
|
4218
4228
|
return t(), u("div", {
|
|
4219
4229
|
class: r(i.value.getRootCss()),
|
|
4220
4230
|
style: S(i.value.themeVariables),
|
|
4221
4231
|
ref_key: "root",
|
|
4222
4232
|
ref: o
|
|
4223
4233
|
}, [
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
survey: i.value
|
|
4238
|
-
}, null, 8, ["survey"])) : m("", !0),
|
|
4239
|
-
(t(), q(M("sv-components-container"), {
|
|
4240
|
-
survey: i.value,
|
|
4241
|
-
container: "header",
|
|
4242
|
-
needRenderWrapper: !1
|
|
4243
|
-
}, null, 8, ["survey"])),
|
|
4244
|
-
i.value.isShowingPage ? (t(), u("div", {
|
|
4245
|
-
key: 1,
|
|
4246
|
-
class: r(i.value.bodyContainerCss)
|
|
4234
|
+
c("div", {
|
|
4235
|
+
class: r(i.value.wrapperFormCss)
|
|
4236
|
+
}, [
|
|
4237
|
+
C(h),
|
|
4238
|
+
i.value.renderBackgroundImage ? (t(), u("div", {
|
|
4239
|
+
key: 0,
|
|
4240
|
+
class: r(p.value.rootBackgroundImage),
|
|
4241
|
+
style: S(i.value.backgroundImageStyle)
|
|
4242
|
+
}, null, 6)) : m("", !0),
|
|
4243
|
+
c("form", Nt, [
|
|
4244
|
+
i.value.hasLogo ? m("", !0) : (t(), u("div", Ht)),
|
|
4245
|
+
c("div", {
|
|
4246
|
+
class: r(p.value.container)
|
|
4247
4247
|
}, [
|
|
4248
|
-
(t(),
|
|
4248
|
+
i.value.titleView === "title" ? (t(), y(D, {
|
|
4249
|
+
key: 0,
|
|
4250
|
+
survey: i.value
|
|
4251
|
+
}, null, 8, ["survey"])) : m("", !0),
|
|
4252
|
+
(t(), y(N("sv-components-container"), {
|
|
4249
4253
|
survey: i.value,
|
|
4250
|
-
container: "
|
|
4251
|
-
needRenderWrapper: !
|
|
4254
|
+
container: "header",
|
|
4255
|
+
needRenderWrapper: !1
|
|
4252
4256
|
}, null, 8, ["survey"])),
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
id: a.value
|
|
4257
|
+
i.value.isShowingPage ? (t(), u("div", {
|
|
4258
|
+
key: 1,
|
|
4259
|
+
class: r(i.value.bodyContainerCss)
|
|
4257
4260
|
}, [
|
|
4258
|
-
(t(),
|
|
4261
|
+
(t(), y(N("sv-components-container"), {
|
|
4259
4262
|
survey: i.value,
|
|
4260
|
-
container: "
|
|
4263
|
+
container: "left",
|
|
4261
4264
|
needRenderWrapper: !0
|
|
4262
4265
|
}, null, 8, ["survey"])),
|
|
4263
|
-
(
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4266
|
+
c("div", {
|
|
4267
|
+
class: r(i.value.bodyCss),
|
|
4268
|
+
style: S({ maxWidth: i.value.renderedWidth }),
|
|
4269
|
+
id: a.value
|
|
4270
|
+
}, [
|
|
4271
|
+
(t(), y(N("sv-components-container"), {
|
|
4272
|
+
survey: i.value,
|
|
4273
|
+
container: "contentTop",
|
|
4274
|
+
needRenderWrapper: !0
|
|
4275
|
+
}, null, 8, ["survey"])),
|
|
4276
|
+
(t(), y(_, {
|
|
4277
|
+
key: b.value,
|
|
4278
|
+
survey: i.value,
|
|
4279
|
+
page: i.value.activePage,
|
|
4280
|
+
css: p.value
|
|
4281
|
+
}, null, 8, ["survey", "page", "css"])),
|
|
4282
|
+
(t(), y(N("sv-components-container"), {
|
|
4283
|
+
survey: i.value,
|
|
4284
|
+
container: "contentBottom",
|
|
4285
|
+
needRenderWrapper: !0
|
|
4286
|
+
}, null, 8, ["survey"]))
|
|
4287
|
+
], 14, At),
|
|
4288
|
+
(t(), y(N("sv-components-container"), {
|
|
4270
4289
|
survey: i.value,
|
|
4271
|
-
container: "
|
|
4290
|
+
container: "right",
|
|
4272
4291
|
needRenderWrapper: !0
|
|
4273
4292
|
}, null, 8, ["survey"]))
|
|
4274
|
-
],
|
|
4275
|
-
(t(),
|
|
4276
|
-
survey: i.value,
|
|
4277
|
-
container: "right",
|
|
4278
|
-
needRenderWrapper: !0
|
|
4279
|
-
}, null, 8, ["survey"]))
|
|
4280
|
-
], 2)) : m("", !0),
|
|
4281
|
-
(t(), q(M("sv-components-container"), {
|
|
4282
|
-
survey: i.value,
|
|
4283
|
-
container: "footer",
|
|
4284
|
-
needRenderWrapper: !1
|
|
4285
|
-
}, null, 8, ["survey"])),
|
|
4286
|
-
p.value ? (t(), u("div", Et, [
|
|
4287
|
-
c("div", {
|
|
4288
|
-
innerHTML: y(),
|
|
4289
|
-
class: r(i.value.completedCss)
|
|
4290
|
-
}, null, 10, _t),
|
|
4291
|
-
(t(), q(M("sv-components-container"), {
|
|
4293
|
+
], 2)) : m("", !0),
|
|
4294
|
+
(t(), y(N("sv-components-container"), {
|
|
4292
4295
|
survey: i.value,
|
|
4293
|
-
container: "
|
|
4294
|
-
needRenderWrapper: !
|
|
4295
|
-
}, null, 8, ["survey"]))
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4296
|
+
container: "footer",
|
|
4297
|
+
needRenderWrapper: !1
|
|
4298
|
+
}, null, 8, ["survey"])),
|
|
4299
|
+
v.value ? (t(), u("div", Et, [
|
|
4300
|
+
c("div", {
|
|
4301
|
+
innerHTML: f(),
|
|
4302
|
+
class: r(i.value.completedCss)
|
|
4303
|
+
}, null, 10, _t),
|
|
4304
|
+
(t(), y(N("sv-components-container"), {
|
|
4305
|
+
survey: i.value,
|
|
4306
|
+
container: "completePage",
|
|
4307
|
+
needRenderWrapper: !0
|
|
4308
|
+
}, null, 8, ["survey"]))
|
|
4309
|
+
])) : m("", !0),
|
|
4310
|
+
i.value.state === "completedbefore" ? (t(), u("div", {
|
|
4311
|
+
key: 3,
|
|
4312
|
+
class: r(i.value.completedBeforeCss),
|
|
4313
|
+
innerHTML: i.value.processedCompletedBeforeHtml
|
|
4314
|
+
}, null, 10, Vt)) : m("", !0),
|
|
4315
|
+
i.value.state === "loading" ? (t(), u("div", {
|
|
4316
|
+
key: 4,
|
|
4317
|
+
class: r(i.value.loadingBodyCss),
|
|
4318
|
+
innerHTML: i.value.processedLoadingHtml
|
|
4319
|
+
}, null, 10, Ot)) : m("", !0),
|
|
4320
|
+
i.value.state === "empty" ? (t(), u("div", {
|
|
4321
|
+
key: 5,
|
|
4322
|
+
class: r(p.value.bodyEmpty)
|
|
4323
|
+
}, I(i.value.emptySurveyText), 3)) : m("", !0)
|
|
4324
|
+
], 2)
|
|
4325
|
+
]),
|
|
4326
|
+
i.value.showBrandInfo ? (t(), y(O, { key: 1 })) : m("", !0),
|
|
4327
|
+
C(Q, {
|
|
4328
|
+
model: i.value.notifier
|
|
4329
|
+
}, null, 8, ["model"])
|
|
4330
|
+
], 2)
|
|
4317
4331
|
], 6);
|
|
4318
4332
|
};
|
|
4319
4333
|
}
|
|
4320
|
-
}), Ft = /* @__PURE__ */
|
|
4334
|
+
}), Ft = /* @__PURE__ */ g({
|
|
4321
4335
|
__name: "Notifier",
|
|
4322
4336
|
props: {
|
|
4323
4337
|
model: {}
|
|
4324
4338
|
},
|
|
4325
4339
|
setup(l) {
|
|
4326
4340
|
const n = l;
|
|
4327
|
-
return
|
|
4328
|
-
const s =
|
|
4329
|
-
return
|
|
4341
|
+
return L(() => n.model), (o, e) => {
|
|
4342
|
+
const s = q("sv-action-bar");
|
|
4343
|
+
return P((t(), u("div", {
|
|
4330
4344
|
class: r(o.model.css),
|
|
4331
4345
|
style: S({ visibility: o.model.active ? "visible" : "hidden" }),
|
|
4332
4346
|
role: "alert",
|
|
@@ -4337,11 +4351,11 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4337
4351
|
model: o.model.actionBar
|
|
4338
4352
|
}, null, 8, ["model"])
|
|
4339
4353
|
], 6)), [
|
|
4340
|
-
[
|
|
4354
|
+
[A, o.model.isDisplayed]
|
|
4341
4355
|
]);
|
|
4342
4356
|
};
|
|
4343
4357
|
}
|
|
4344
|
-
}), Wt = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], zt = { key: 1 }, Ut = /* @__PURE__ */
|
|
4358
|
+
}), Wt = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], zt = { key: 1 }, Ut = /* @__PURE__ */ g({
|
|
4345
4359
|
__name: "QuestionOther",
|
|
4346
4360
|
props: {
|
|
4347
4361
|
question: {},
|
|
@@ -4373,14 +4387,14 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4373
4387
|
n.question.isReadOnlyRenderDiv() ? (t(), u("div", zt, I(n.question.otherValue), 1)) : m("", !0)
|
|
4374
4388
|
], 2));
|
|
4375
4389
|
}
|
|
4376
|
-
}), Kt = ["disabled", "value", "title"], jt = /* @__PURE__ */
|
|
4390
|
+
}), Kt = ["disabled", "value", "title"], jt = /* @__PURE__ */ g({
|
|
4377
4391
|
__name: "SurveyNavigationButton",
|
|
4378
4392
|
props: {
|
|
4379
4393
|
item: {}
|
|
4380
4394
|
},
|
|
4381
4395
|
setup(l) {
|
|
4382
4396
|
const n = l, o = () => n.item.data && n.item.data.mouseDown();
|
|
4383
|
-
return
|
|
4397
|
+
return L(() => n.item), (e, s) => e.item.visible ? (t(), u("input", {
|
|
4384
4398
|
key: 0,
|
|
4385
4399
|
type: "button",
|
|
4386
4400
|
disabled: e.item.disabled,
|
|
@@ -4391,7 +4405,7 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4391
4405
|
onClick: s[0] || (s[0] = (...i) => e.item.action && e.item.action(...i))
|
|
4392
4406
|
}, null, 42, Kt)) : m("", !0);
|
|
4393
4407
|
}
|
|
4394
|
-
}), ae = /* @__PURE__ */
|
|
4408
|
+
}), ae = /* @__PURE__ */ g({
|
|
4395
4409
|
__name: "PopupSurvey",
|
|
4396
4410
|
props: {
|
|
4397
4411
|
survey: {},
|
|
@@ -4399,34 +4413,34 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4399
4413
|
closeOnCompleteTimeout: {}
|
|
4400
4414
|
},
|
|
4401
4415
|
setup(l) {
|
|
4402
|
-
const n = l, o =
|
|
4403
|
-
var
|
|
4404
|
-
return (
|
|
4405
|
-
}), i =
|
|
4406
|
-
var
|
|
4407
|
-
return (
|
|
4416
|
+
const n = l, o = W(), e = R(() => n.survey ? n.survey.getCss() : {}), s = R(() => {
|
|
4417
|
+
var f;
|
|
4418
|
+
return (f = o.value) != null && f.isExpanded ? e.value.window.header.buttonCollapsed : e.value.window.header.buttonExpanded;
|
|
4419
|
+
}), i = R(() => {
|
|
4420
|
+
var f;
|
|
4421
|
+
return (f = o.value) == null ? void 0 : f.isExpanded;
|
|
4408
4422
|
}), a = () => {
|
|
4409
4423
|
o.value.changeExpandCollapse();
|
|
4410
4424
|
}, d = () => {
|
|
4411
4425
|
o.value.hide();
|
|
4412
|
-
},
|
|
4426
|
+
}, v = () => "SurveyComponent", p = () => {
|
|
4413
4427
|
o.value.onScroll();
|
|
4414
4428
|
};
|
|
4415
|
-
|
|
4416
|
-
const
|
|
4429
|
+
L(() => o.value);
|
|
4430
|
+
const b = G(
|
|
4417
4431
|
() => n.survey,
|
|
4418
|
-
(
|
|
4419
|
-
const
|
|
4420
|
-
n.isExpanded !== void 0 && (
|
|
4432
|
+
(f) => {
|
|
4433
|
+
const $ = new Pe(null, f);
|
|
4434
|
+
n.isExpanded !== void 0 && ($.isExpanded = n.isExpanded), n.closeOnCompleteTimeout !== void 0 && ($.closeOnCompleteTimeout = n.closeOnCompleteTimeout), $.isShowing = !0, o.value = $;
|
|
4421
4435
|
},
|
|
4422
4436
|
{
|
|
4423
4437
|
immediate: !0
|
|
4424
4438
|
}
|
|
4425
4439
|
);
|
|
4426
|
-
return
|
|
4427
|
-
|
|
4428
|
-
}), (
|
|
4429
|
-
const
|
|
4440
|
+
return V(() => {
|
|
4441
|
+
b();
|
|
4442
|
+
}), (f, $) => {
|
|
4443
|
+
const M = q("survey-string"), h = q("sv-svg-icon");
|
|
4430
4444
|
return o.value.isShowing ? (t(), u("div", {
|
|
4431
4445
|
key: 0,
|
|
4432
4446
|
style: S([{ position: "fixed", bottom: "3px", right: "10px" }, {
|
|
@@ -4446,8 +4460,8 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4446
4460
|
style: { "padding-right": "10px" },
|
|
4447
4461
|
class: r(o.value.cssHeaderTitle)
|
|
4448
4462
|
}, [
|
|
4449
|
-
C(
|
|
4450
|
-
locString:
|
|
4463
|
+
C(M, {
|
|
4464
|
+
locString: f.survey.locTitle
|
|
4451
4465
|
}, null, 8, ["locString"])
|
|
4452
4466
|
], 2),
|
|
4453
4467
|
c("span", {
|
|
@@ -4461,7 +4475,7 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4461
4475
|
onClick: d,
|
|
4462
4476
|
style: { transform: "rotate(45deg)", float: "right", cursor: "pointer", "user-select": "none", width: "24px", height: "24px" }
|
|
4463
4477
|
}, [
|
|
4464
|
-
C(
|
|
4478
|
+
C(h, {
|
|
4465
4479
|
iconName: "icon-expanddetail",
|
|
4466
4480
|
size: 16
|
|
4467
4481
|
})
|
|
@@ -4472,7 +4486,7 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4472
4486
|
onClick: a,
|
|
4473
4487
|
style: { float: "right", cursor: "pointer", "user-select": "none", width: "24px", height: "24px" }
|
|
4474
4488
|
}, [
|
|
4475
|
-
C(
|
|
4489
|
+
C(h, {
|
|
4476
4490
|
iconName: "icon-collapsedetail",
|
|
4477
4491
|
size: 16
|
|
4478
4492
|
})
|
|
@@ -4481,30 +4495,30 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4481
4495
|
i.value ? (t(), u("div", {
|
|
4482
4496
|
key: 0,
|
|
4483
4497
|
class: r(o.value.cssBody),
|
|
4484
|
-
onScroll:
|
|
4498
|
+
onScroll: p
|
|
4485
4499
|
}, [
|
|
4486
|
-
(t(),
|
|
4500
|
+
(t(), y(N(v()), { survey: f.survey }, null, 8, ["survey"]))
|
|
4487
4501
|
], 34)) : m("", !0)
|
|
4488
4502
|
], 6)) : m("", !0);
|
|
4489
4503
|
};
|
|
4490
4504
|
}
|
|
4491
|
-
}), Qt = ["innerHTML"], Zt = /* @__PURE__ */
|
|
4505
|
+
}), Qt = ["innerHTML"], Zt = /* @__PURE__ */ g({
|
|
4492
4506
|
__name: "CustomWidget",
|
|
4493
4507
|
props: {
|
|
4494
4508
|
question: {},
|
|
4495
4509
|
css: {}
|
|
4496
4510
|
},
|
|
4497
4511
|
setup(l) {
|
|
4498
|
-
const n = l, o =
|
|
4512
|
+
const n = l, o = T(), e = R(
|
|
4499
4513
|
() => n.question.customWidget.isDefaultRender
|
|
4500
|
-
), s =
|
|
4514
|
+
), s = R(
|
|
4501
4515
|
() => !!n.question.customWidget.htmlTemplate
|
|
4502
|
-
), i =
|
|
4503
|
-
return
|
|
4516
|
+
), i = R(() => n.question.customWidget.htmlTemplate), a = R(() => "survey-" + n.question.getTemplate());
|
|
4517
|
+
return E(() => {
|
|
4504
4518
|
n.question.customWidget.afterRender(n.question, o.value);
|
|
4505
|
-
}),
|
|
4519
|
+
}), K(() => {
|
|
4506
4520
|
n.question.customWidget.willUnmount(n.question, o.value);
|
|
4507
|
-
}), (d,
|
|
4521
|
+
}), (d, v) => (t(), u("div", {
|
|
4508
4522
|
ref_key: "root",
|
|
4509
4523
|
ref: o
|
|
4510
4524
|
}, [
|
|
@@ -4512,30 +4526,30 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4512
4526
|
key: 0,
|
|
4513
4527
|
innerHTML: i.value
|
|
4514
4528
|
}, null, 8, Qt)) : m("", !0),
|
|
4515
|
-
e.value ? (t(),
|
|
4529
|
+
e.value ? (t(), y(N(a.value), {
|
|
4516
4530
|
key: 1,
|
|
4517
4531
|
question: d.question,
|
|
4518
4532
|
css: d.css
|
|
4519
4533
|
}, null, 8, ["question", "css"])) : m("", !0)
|
|
4520
4534
|
], 512));
|
|
4521
4535
|
}
|
|
4522
|
-
}), Gt = /* @__PURE__ */
|
|
4536
|
+
}), Gt = /* @__PURE__ */ g({
|
|
4523
4537
|
__name: "PopupModal",
|
|
4524
4538
|
setup(l) {
|
|
4525
|
-
const n =
|
|
4526
|
-
function o(s, i, a, d,
|
|
4527
|
-
const
|
|
4539
|
+
const n = W();
|
|
4540
|
+
function o(s, i, a, d, v, p, b = "popup") {
|
|
4541
|
+
const f = Me(
|
|
4528
4542
|
s,
|
|
4529
4543
|
i,
|
|
4530
4544
|
a,
|
|
4531
4545
|
d,
|
|
4532
4546
|
void 0,
|
|
4533
4547
|
void 0,
|
|
4548
|
+
v,
|
|
4534
4549
|
p,
|
|
4535
|
-
|
|
4536
|
-
f
|
|
4550
|
+
b
|
|
4537
4551
|
);
|
|
4538
|
-
return e(
|
|
4552
|
+
return e(f);
|
|
4539
4553
|
}
|
|
4540
4554
|
function e(s, i) {
|
|
4541
4555
|
s.onHide = () => {
|
|
@@ -4547,13 +4561,13 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4547
4561
|
);
|
|
4548
4562
|
return a.model.isVisible = !0, n.value = a, a;
|
|
4549
4563
|
}
|
|
4550
|
-
return
|
|
4551
|
-
|
|
4552
|
-
})),
|
|
4553
|
-
|
|
4564
|
+
return F.showModal || (F.showModal = o, V(() => {
|
|
4565
|
+
F.showModal = void 0;
|
|
4566
|
+
})), F.showDialog || (F.showDialog = e, V(() => {
|
|
4567
|
+
F.showDialog = void 0;
|
|
4554
4568
|
})), (s, i) => {
|
|
4555
|
-
const a =
|
|
4556
|
-
return n.value ? (t(),
|
|
4569
|
+
const a = q("sv-popup-container");
|
|
4570
|
+
return n.value ? (t(), y(ke, {
|
|
4557
4571
|
key: 0,
|
|
4558
4572
|
to: n.value.container
|
|
4559
4573
|
}, [
|
|
@@ -4561,7 +4575,7 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4561
4575
|
], 8, ["to"])) : m("", !0);
|
|
4562
4576
|
};
|
|
4563
4577
|
}
|
|
4564
|
-
}), Xt = /* @__PURE__ */
|
|
4578
|
+
}), Xt = /* @__PURE__ */ g({
|
|
4565
4579
|
__name: "CharacterCounter",
|
|
4566
4580
|
props: {
|
|
4567
4581
|
counter: {},
|
|
@@ -4569,23 +4583,23 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4569
4583
|
},
|
|
4570
4584
|
setup(l) {
|
|
4571
4585
|
const n = l;
|
|
4572
|
-
return
|
|
4586
|
+
return L(() => n.counter), (o, e) => (t(), u("div", {
|
|
4573
4587
|
class: r(o.remainingCharacterCounter)
|
|
4574
4588
|
}, I(o.counter.remainingCharacterCounter), 3));
|
|
4575
4589
|
}
|
|
4576
|
-
}), Jt = /* @__PURE__ */
|
|
4590
|
+
}), Jt = /* @__PURE__ */ g({
|
|
4577
4591
|
__name: "Composite",
|
|
4578
4592
|
props: {
|
|
4579
4593
|
question: {},
|
|
4580
4594
|
css: {}
|
|
4581
4595
|
},
|
|
4582
4596
|
setup(l) {
|
|
4583
|
-
const n = l, o =
|
|
4584
|
-
|
|
4585
|
-
const e =
|
|
4597
|
+
const n = l, o = T(null);
|
|
4598
|
+
H(n, o);
|
|
4599
|
+
const e = R(() => n.question.contentPanel);
|
|
4586
4600
|
return (s, i) => {
|
|
4587
|
-
const a =
|
|
4588
|
-
return t(),
|
|
4601
|
+
const a = q("survey-panel");
|
|
4602
|
+
return t(), y(a, {
|
|
4589
4603
|
ref_key: "root",
|
|
4590
4604
|
ref: o,
|
|
4591
4605
|
question: e.value,
|
|
@@ -4593,17 +4607,17 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4593
4607
|
}, null, 8, ["question", "css"]);
|
|
4594
4608
|
};
|
|
4595
4609
|
}
|
|
4596
|
-
}), Yt = /* @__PURE__ */
|
|
4610
|
+
}), Yt = /* @__PURE__ */ g({
|
|
4597
4611
|
__name: "Custom",
|
|
4598
4612
|
props: {
|
|
4599
4613
|
question: {},
|
|
4600
4614
|
css: {}
|
|
4601
4615
|
},
|
|
4602
4616
|
setup(l) {
|
|
4603
|
-
const n = l, o =
|
|
4604
|
-
|
|
4605
|
-
const e =
|
|
4606
|
-
return (i, a) => (t(),
|
|
4617
|
+
const n = l, o = T(null);
|
|
4618
|
+
H(n, o);
|
|
4619
|
+
const e = R(() => n.question.contentQuestion), s = (i) => se(i);
|
|
4620
|
+
return (i, a) => (t(), y(N(s(e.value)), {
|
|
4607
4621
|
ref: o.value,
|
|
4608
4622
|
question: e.value,
|
|
4609
4623
|
css: i.css
|
|
@@ -4611,15 +4625,15 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4611
4625
|
}
|
|
4612
4626
|
}), xt = /* @__PURE__ */ c("use", { "xlink:href": "#icon-timercircle" }, null, -1), ei = [
|
|
4613
4627
|
xt
|
|
4614
|
-
], ue = 440, si = /* @__PURE__ */
|
|
4628
|
+
], ue = 440, si = /* @__PURE__ */ g({
|
|
4615
4629
|
__name: "TimerPanel",
|
|
4616
4630
|
props: {
|
|
4617
4631
|
model: {},
|
|
4618
4632
|
css: {}
|
|
4619
4633
|
},
|
|
4620
4634
|
setup(l) {
|
|
4621
|
-
const n = l, o =
|
|
4622
|
-
return
|
|
4635
|
+
const n = l, o = R(() => ue * n.model.progress), e = R(() => n.model.text);
|
|
4636
|
+
return L(() => n.model), (s, i) => s.model.isRunning && s.model.showTimerAsClock ? (t(), u("div", {
|
|
4623
4637
|
key: 0,
|
|
4624
4638
|
class: r(s.model.rootCss)
|
|
4625
4639
|
}, [
|
|
@@ -4639,16 +4653,16 @@ const Yo = /* @__PURE__ */ me(Qo, [["render", Jo]]), xo = ["aria-label"], et = /
|
|
|
4639
4653
|
class: r(s.model.minorTextCss)
|
|
4640
4654
|
}, I(s.model.clockMinorText), 3)) : m("", !0)
|
|
4641
4655
|
], 2)
|
|
4642
|
-
], 2)) :
|
|
4656
|
+
], 2)) : P((t(), u("div", {
|
|
4643
4657
|
key: 1,
|
|
4644
4658
|
class: r(s.model.survey.getCss().timerRoot)
|
|
4645
4659
|
}, I(e.value), 3)), [
|
|
4646
|
-
[
|
|
4660
|
+
[A, s.model.isRunning && !s.model.showTimerAsClock]
|
|
4647
4661
|
]);
|
|
4648
4662
|
}
|
|
4649
4663
|
}), ni = {}, oi = { class: "sd-loading-indicator" };
|
|
4650
4664
|
function ti(l, n) {
|
|
4651
|
-
const o =
|
|
4665
|
+
const o = q("sv-svg-icon");
|
|
4652
4666
|
return t(), u("div", oi, [
|
|
4653
4667
|
C(o, {
|
|
4654
4668
|
iconName: "icon-loading",
|
|
@@ -4656,7 +4670,7 @@ function ti(l, n) {
|
|
|
4656
4670
|
})
|
|
4657
4671
|
]);
|
|
4658
4672
|
}
|
|
4659
|
-
const ii = /* @__PURE__ */ me(ni, [["render", ti]]), li = /* @__PURE__ */
|
|
4673
|
+
const ii = /* @__PURE__ */ me(ni, [["render", ti]]), li = /* @__PURE__ */ g({
|
|
4660
4674
|
__name: "Cover",
|
|
4661
4675
|
props: {
|
|
4662
4676
|
model: {},
|
|
@@ -4664,11 +4678,11 @@ const ii = /* @__PURE__ */ me(ni, [["render", ti]]), li = /* @__PURE__ */ h({
|
|
|
4664
4678
|
},
|
|
4665
4679
|
setup(l) {
|
|
4666
4680
|
const n = l;
|
|
4667
|
-
return
|
|
4668
|
-
const s =
|
|
4681
|
+
return L(() => (n.model.survey = n.survey, n.model)), (o, e) => {
|
|
4682
|
+
const s = q("sv-cover-cell");
|
|
4669
4683
|
return t(), u("div", {
|
|
4670
4684
|
class: r(o.model.coverClasses),
|
|
4671
|
-
style: S({ height: o.model.renderedHeight
|
|
4685
|
+
style: S({ height: o.model.renderedHeight })
|
|
4672
4686
|
}, [
|
|
4673
4687
|
o.model.backgroundImage ? (t(), u("div", {
|
|
4674
4688
|
key: 0,
|
|
@@ -4678,7 +4692,7 @@ const ii = /* @__PURE__ */ me(ni, [["render", ti]]), li = /* @__PURE__ */ h({
|
|
|
4678
4692
|
c("div", {
|
|
4679
4693
|
class: r(o.model.contentClasses)
|
|
4680
4694
|
}, [
|
|
4681
|
-
(t(!0), u(w, null,
|
|
4695
|
+
(t(!0), u(w, null, B(o.model.cells, (i) => (t(), y(s, { model: i }, null, 8, ["model"]))), 256))
|
|
4682
4696
|
], 2)
|
|
4683
4697
|
], 6);
|
|
4684
4698
|
};
|
|
@@ -4686,14 +4700,14 @@ const ii = /* @__PURE__ */ me(ni, [["render", ti]]), li = /* @__PURE__ */ h({
|
|
|
4686
4700
|
}), ri = {
|
|
4687
4701
|
key: 0,
|
|
4688
4702
|
class: "sv-cover__logo"
|
|
4689
|
-
}, ai = ["src", "width", "height", "alt"], ui = /* @__PURE__ */
|
|
4703
|
+
}, ai = ["src", "width", "height", "alt"], ui = /* @__PURE__ */ g({
|
|
4690
4704
|
__name: "CoverCell",
|
|
4691
4705
|
props: {
|
|
4692
4706
|
model: {}
|
|
4693
4707
|
},
|
|
4694
4708
|
setup(l) {
|
|
4695
4709
|
return (n, o) => {
|
|
4696
|
-
const e =
|
|
4710
|
+
const e = q("survey-element-title"), s = q("survey-string");
|
|
4697
4711
|
return t(), u("div", {
|
|
4698
4712
|
class: r(n.model.css),
|
|
4699
4713
|
style: S(n.model.style)
|
|
@@ -4744,7 +4758,7 @@ const ii = /* @__PURE__ */ me(ni, [["render", ti]]), li = /* @__PURE__ */ h({
|
|
|
4744
4758
|
], 6);
|
|
4745
4759
|
};
|
|
4746
4760
|
}
|
|
4747
|
-
}), di = /* @__PURE__ */
|
|
4761
|
+
}), di = /* @__PURE__ */ g({
|
|
4748
4762
|
__name: "FileCleanButton",
|
|
4749
4763
|
props: {
|
|
4750
4764
|
question: {},
|
|
@@ -4752,14 +4766,14 @@ const ii = /* @__PURE__ */ me(ni, [["render", ti]]), li = /* @__PURE__ */ h({
|
|
|
4752
4766
|
},
|
|
4753
4767
|
setup(l) {
|
|
4754
4768
|
return (n, o) => {
|
|
4755
|
-
const e =
|
|
4769
|
+
const e = q("sv-svg-icon");
|
|
4756
4770
|
return t(), u("button", {
|
|
4757
4771
|
type: "button",
|
|
4758
4772
|
class: r(n.css),
|
|
4759
4773
|
onClick: o[0] || (o[0] = (...s) => n.question.doClean && n.question.doClean(...s))
|
|
4760
4774
|
}, [
|
|
4761
4775
|
c("span", null, I(n.question.clearButtonCaption), 1),
|
|
4762
|
-
n.question.cssClasses.removeButtonIconId ? (t(),
|
|
4776
|
+
n.question.cssClasses.removeButtonIconId ? (t(), y(e, {
|
|
4763
4777
|
key: 0,
|
|
4764
4778
|
iconName: n.question.cssClasses.removeButtonIconId,
|
|
4765
4779
|
size: "auto",
|
|
@@ -4768,18 +4782,83 @@ const ii = /* @__PURE__ */ me(ni, [["render", ti]]), li = /* @__PURE__ */ h({
|
|
|
4768
4782
|
], 2);
|
|
4769
4783
|
};
|
|
4770
4784
|
}
|
|
4771
|
-
}), mi = ["
|
|
4772
|
-
__name: "
|
|
4785
|
+
}), mi = ["id"], ci = /* @__PURE__ */ g({
|
|
4786
|
+
__name: "FileVideo",
|
|
4773
4787
|
props: {
|
|
4774
4788
|
question: {}
|
|
4775
4789
|
},
|
|
4776
4790
|
setup(l) {
|
|
4777
4791
|
return (n, o) => {
|
|
4778
|
-
const e =
|
|
4792
|
+
const e = q("sv-action");
|
|
4779
4793
|
return t(), u("div", {
|
|
4794
|
+
class: r(n.question.cssClasses.videoContainer)
|
|
4795
|
+
}, [
|
|
4796
|
+
C(e, {
|
|
4797
|
+
item: n.question.changeCameraAction
|
|
4798
|
+
}, null, 8, ["item"]),
|
|
4799
|
+
C(e, {
|
|
4800
|
+
item: n.question.closeCameraAction
|
|
4801
|
+
}, null, 8, ["item"]),
|
|
4802
|
+
c("video", {
|
|
4803
|
+
autoplay: "",
|
|
4804
|
+
playsinline: "",
|
|
4805
|
+
id: n.question.videoId,
|
|
4806
|
+
class: r(n.question.cssClasses.video)
|
|
4807
|
+
}, null, 10, mi),
|
|
4808
|
+
C(e, {
|
|
4809
|
+
item: n.question.takePictureAction
|
|
4810
|
+
}, null, 8, ["item"])
|
|
4811
|
+
], 2);
|
|
4812
|
+
};
|
|
4813
|
+
}
|
|
4814
|
+
}), pi = ["for", "aria-label"], vi = /* @__PURE__ */ g({
|
|
4815
|
+
__name: "FileChooseButton",
|
|
4816
|
+
props: {
|
|
4817
|
+
data: {},
|
|
4818
|
+
item: {}
|
|
4819
|
+
},
|
|
4820
|
+
setup(l) {
|
|
4821
|
+
const n = l, o = R(
|
|
4822
|
+
() => {
|
|
4823
|
+
var e;
|
|
4824
|
+
return ((e = n.data) == null ? void 0 : e.question) || n.item.data.question;
|
|
4825
|
+
}
|
|
4826
|
+
);
|
|
4827
|
+
return (e, s) => {
|
|
4828
|
+
const i = q("sv-svg-icon"), a = ee("key2click");
|
|
4829
|
+
return o.value.isReadOnly ? m("", !0) : P((t(), u("label", {
|
|
4830
|
+
key: 0,
|
|
4831
|
+
role: "button",
|
|
4832
|
+
tabindex: "0",
|
|
4833
|
+
class: r(o.value.getChooseFileCss()),
|
|
4834
|
+
for: o.value.inputId,
|
|
4835
|
+
"aria-label": o.value.chooseButtonText
|
|
4836
|
+
}, [
|
|
4837
|
+
o.value.cssClasses.chooseFileIconId ? (t(), y(i, {
|
|
4838
|
+
key: 0,
|
|
4839
|
+
title: o.value.chooseButtonText,
|
|
4840
|
+
iconName: o.value.cssClasses.chooseFileIconId,
|
|
4841
|
+
size: "auto"
|
|
4842
|
+
}, null, 8, ["title", "iconName"])) : m("", !0),
|
|
4843
|
+
c("span", null, I(o.value.chooseButtonText), 1)
|
|
4844
|
+
], 10, pi)), [
|
|
4845
|
+
[a]
|
|
4846
|
+
]);
|
|
4847
|
+
};
|
|
4848
|
+
}
|
|
4849
|
+
}), qi = ["onClick", "href", "title", "download"], yi = ["src"], gi = ["onClick"], hi = ["onClick", "href", "title", "download"], Ci = /* @__PURE__ */ g({
|
|
4850
|
+
__name: "FilePreview",
|
|
4851
|
+
props: {
|
|
4852
|
+
question: {}
|
|
4853
|
+
},
|
|
4854
|
+
setup(l) {
|
|
4855
|
+
return (n, o) => {
|
|
4856
|
+
const e = q("sv-svg-icon");
|
|
4857
|
+
return n.question.showPreviewContainer ? (t(), u("div", {
|
|
4858
|
+
key: 0,
|
|
4780
4859
|
class: r(n.question.cssClasses.fileList || void 0)
|
|
4781
4860
|
}, [
|
|
4782
|
-
(t(!0), u(w, null,
|
|
4861
|
+
(t(!0), u(w, null, B(n.question.previewValue, (s, i) => P((t(), u("span", {
|
|
4783
4862
|
key: n.question.inputId + "_" + i,
|
|
4784
4863
|
class: r(n.question.cssClasses.preview)
|
|
4785
4864
|
}, [
|
|
@@ -4793,7 +4872,7 @@ const ii = /* @__PURE__ */ me(ni, [["render", ti]]), li = /* @__PURE__ */ h({
|
|
|
4793
4872
|
title: s.name,
|
|
4794
4873
|
download: s.name,
|
|
4795
4874
|
style: S({ width: n.question.imageWidth })
|
|
4796
|
-
}, I(s.name), 13,
|
|
4875
|
+
}, I(s.name), 13, qi)
|
|
4797
4876
|
], 2)) : m("", !0),
|
|
4798
4877
|
c("div", {
|
|
4799
4878
|
class: r(n.question.cssClasses.imageWrapper)
|
|
@@ -4806,8 +4885,8 @@ const ii = /* @__PURE__ */ me(ni, [["render", ti]]), li = /* @__PURE__ */ h({
|
|
|
4806
4885
|
width: n.question.imageWidth
|
|
4807
4886
|
}),
|
|
4808
4887
|
alt: "File preview"
|
|
4809
|
-
}, null, 12,
|
|
4810
|
-
n.question.defaultImage(s) ? (t(),
|
|
4888
|
+
}, null, 12, yi)) : m("", !0),
|
|
4889
|
+
n.question.defaultImage(s) ? (t(), y(e, {
|
|
4811
4890
|
key: 1,
|
|
4812
4891
|
iconName: n.question.cssClasses.defaultImageIconId,
|
|
4813
4892
|
class: r(n.question.cssClasses.defaultImage),
|
|
@@ -4821,14 +4900,14 @@ const ii = /* @__PURE__ */ me(ni, [["render", ti]]), li = /* @__PURE__ */ h({
|
|
|
4821
4900
|
c("span", {
|
|
4822
4901
|
class: r(n.question.cssClasses.removeFile)
|
|
4823
4902
|
}, I(n.question.removeFileCaption), 3),
|
|
4824
|
-
n.question.cssClasses.removeFileSvgIconId ? (t(),
|
|
4903
|
+
n.question.cssClasses.removeFileSvgIconId ? (t(), y(e, {
|
|
4825
4904
|
key: 0,
|
|
4826
4905
|
title: n.question.removeFileCaption,
|
|
4827
4906
|
class: r(n.question.cssClasses.removeFileSvg),
|
|
4828
4907
|
iconName: n.question.cssClasses.removeFileSvgIconId,
|
|
4829
4908
|
size: "auto"
|
|
4830
4909
|
}, null, 8, ["title", "class", "iconName"])) : m("", !0)
|
|
4831
|
-
], 10,
|
|
4910
|
+
], 10, gi)) : m("", !0)
|
|
4832
4911
|
], 2),
|
|
4833
4912
|
s.name && n.question.cssClasses.fileSignBottom ? (t(), u("div", {
|
|
4834
4913
|
key: 1,
|
|
@@ -4840,82 +4919,18 @@ const ii = /* @__PURE__ */ me(ni, [["render", ti]]), li = /* @__PURE__ */ h({
|
|
|
4840
4919
|
title: s.name,
|
|
4841
4920
|
download: s.name,
|
|
4842
4921
|
style: S({ width: n.question.imageWidth })
|
|
4843
|
-
}, I(s.name), 13,
|
|
4922
|
+
}, I(s.name), 13, hi)
|
|
4844
4923
|
], 2)) : m("", !0)
|
|
4845
4924
|
], 2)), [
|
|
4846
|
-
[
|
|
4925
|
+
[A, s && n.question.isPreviewVisible(i)]
|
|
4847
4926
|
])), 128))
|
|
4848
|
-
], 2);
|
|
4849
|
-
};
|
|
4850
|
-
}
|
|
4851
|
-
}), yi = ["id"], gi = /* @__PURE__ */ h({
|
|
4852
|
-
__name: "FileVideo",
|
|
4853
|
-
props: {
|
|
4854
|
-
question: {}
|
|
4855
|
-
},
|
|
4856
|
-
setup(l) {
|
|
4857
|
-
return (n, o) => {
|
|
4858
|
-
const e = v("sv-action");
|
|
4859
|
-
return t(), u("div", {
|
|
4860
|
-
class: r(n.question.cssClasses.videoContainer)
|
|
4861
|
-
}, [
|
|
4862
|
-
C(e, {
|
|
4863
|
-
item: n.question.changeCameraAction
|
|
4864
|
-
}, null, 8, ["item"]),
|
|
4865
|
-
C(e, {
|
|
4866
|
-
item: n.question.closeCameraAction
|
|
4867
|
-
}, null, 8, ["item"]),
|
|
4868
|
-
c("video", {
|
|
4869
|
-
autoplay: "",
|
|
4870
|
-
playsinline: "",
|
|
4871
|
-
id: n.question.videoId,
|
|
4872
|
-
class: r(n.question.cssClasses.video)
|
|
4873
|
-
}, null, 10, yi),
|
|
4874
|
-
C(e, {
|
|
4875
|
-
item: n.question.takePictureAction
|
|
4876
|
-
}, null, 8, ["item"])
|
|
4877
|
-
], 2);
|
|
4878
|
-
};
|
|
4879
|
-
}
|
|
4880
|
-
}), hi = ["for", "aria-label"], Ci = /* @__PURE__ */ h({
|
|
4881
|
-
__name: "FileChooseButton",
|
|
4882
|
-
props: {
|
|
4883
|
-
data: {},
|
|
4884
|
-
item: {}
|
|
4885
|
-
},
|
|
4886
|
-
setup(l) {
|
|
4887
|
-
const n = l, o = T(
|
|
4888
|
-
() => {
|
|
4889
|
-
var e;
|
|
4890
|
-
return ((e = n.data) == null ? void 0 : e.question) || n.item.data.question;
|
|
4891
|
-
}
|
|
4892
|
-
);
|
|
4893
|
-
return (e, s) => {
|
|
4894
|
-
const i = v("sv-svg-icon"), a = x("key2click");
|
|
4895
|
-
return o.value.isReadOnly ? m("", !0) : L((t(), u("label", {
|
|
4896
|
-
key: 0,
|
|
4897
|
-
role: "button",
|
|
4898
|
-
tabindex: "0",
|
|
4899
|
-
class: r(o.value.getChooseFileCss()),
|
|
4900
|
-
for: o.value.inputId,
|
|
4901
|
-
"aria-label": o.value.chooseButtonText
|
|
4902
|
-
}, [
|
|
4903
|
-
o.value.cssClasses.chooseFileIconId ? (t(), q(i, {
|
|
4904
|
-
key: 0,
|
|
4905
|
-
title: o.value.chooseButtonText,
|
|
4906
|
-
iconName: o.value.cssClasses.chooseFileIconId,
|
|
4907
|
-
size: "auto"
|
|
4908
|
-
}, null, 8, ["title", "iconName"])) : m("", !0),
|
|
4909
|
-
c("span", null, I(o.value.chooseButtonText), 1)
|
|
4910
|
-
], 10, hi)), [
|
|
4911
|
-
[a]
|
|
4912
|
-
]);
|
|
4927
|
+
], 2)) : m("", !0);
|
|
4913
4928
|
};
|
|
4914
4929
|
}
|
|
4915
4930
|
});
|
|
4916
4931
|
He.platform = "vue3";
|
|
4917
4932
|
function bi(l) {
|
|
4918
|
-
l.component("SurveyComponent", re), l.component("PopupSurveyComponent", ae), l.component("survey", re), l.component("popup-survey", ae), l.component("survey-header", We), l.component("survey-page", Ve), l.component("survey-row", ze), l.component("survey-element", Ke), l.component("survey-panel", Ze), l.component("survey-element-header", Ge), l.component("survey-string", Xe), l.component("sv-string-viewer", xe), l.component("sv-string-editor", ss), l.component("sv-skeleton", os), l.component("survey-text", ls), l.component("survey-text-input", ds), l.component("survey-checkbox", ps), l.component("survey-checkbox-item", hs), l.component("survey-radiogroup", fs), l.component("survey-radiogroup-item", Rs), l.component("survey-signaturepad", Ls), l.component("survey-html", Ps), l.component("survey-image", As), l.component("survey-expression", Es), l.component("survey-file", Os), l.component("sv-file-choose-btn",
|
|
4933
|
+
l.component("SurveyComponent", re), l.component("PopupSurveyComponent", ae), l.component("survey", re), l.component("popup-survey", ae), l.component("survey-header", We), l.component("survey-page", Ve), l.component("survey-row", ze), l.component("survey-element", Ke), l.component("survey-panel", Ze), l.component("survey-element-header", Ge), l.component("survey-string", Xe), l.component("sv-string-viewer", xe), l.component("sv-string-editor", ss), l.component("sv-skeleton", os), l.component("survey-text", ls), l.component("survey-text-input", ds), l.component("survey-checkbox", ps), l.component("survey-checkbox-item", hs), l.component("survey-radiogroup", fs), l.component("survey-radiogroup-item", Rs), l.component("survey-signaturepad", Ls), l.component("survey-html", Ps), l.component("survey-image", As), l.component("survey-expression", Es), l.component("survey-file", Os), l.component("sv-file-choose-btn", vi), l.component("sv-file-clean-btn", di), l.component("sv-file-preview", Ci), l.component("sv-file-video", ci), l.component("survey-imagepicker", Ws), l.component("survey-imagepicker-item", Qs), l.component("survey-comment", Xs), l.component("survey-dropdown", Js), l.component("sv-dropdown-select", sn), l.component("sv-dropdown-option-item", on), l.component("sv-dropdown", un), l.component("survey-tagbox", dn), l.component("sv-tagbox", pn), l.component("sv-tagbox-item", hn), l.component("sv-tagbox-filter", yn), l.component("survey-ranking", Cn), l.component("survey-ranking-item", Tn), l.component("survey-rating", Ln), l.component("sv-rating-item", Pn), l.component("sv-rating-item-smiley", Nn), l.component("sv-rating-item-star", An), l.component("sv-rating-dropdown", En), l.component("survey-boolean", Vn), l.component("sv-boolean-radio", On), l.component("sv-boolean-radio-item", zn), l.component("sv-boolean-checkbox", Zn), l.component("survey-multipletext", Gn), l.component("survey-multipletext-item", Jn), l.component("survey-matrix", io), l.component("survey-matrixdropdown", lo), l.component("survey-matrixtable", mo), l.component("survey-matrixheaderrequired", po), l.component("survey-matrixcell", qo), l.component("survey-matrixdynamic", yo), l.component("sv-matrix-remove-button", ho), l.component("sv-matrix-drag-drop-icon", bo), l.component("sv-matrix-detail-button", fo), l.component("survey-paneldynamic", Io), l.component("survey-paneldynamicprogress", wo), l.component("survey-paneldynamicprogress-v2", So), l.component("sv-paneldynamic-add-btn", Ro), l.component("sv-paneldynamic-next-btn", $o), l.component("sv-paneldynamic-prev-btn", Lo), l.component("sv-paneldynamic-remove-btn", Do), l.component("sv-paneldynamic-progress-text", Po), l.component("sv-components-container", $t), l.component("sv-progress-buttons", Pt), l.component("sv-progress-toc", Mt), l.component("sv-progress-pages", Z), l.component("sv-progress-questions", Z), l.component("sv-progress-correctquestions", Z), l.component("sv-progress-requiredquestions", Z), l.component("survey-errors", No), l.component("survey-question-comment", Eo), l.component("survey-element-title", _o), l.component("survey-element-title-content", zo), l.component("sv-title-actions", jo), l.component("sv-brand-info", Yo), l.component("sv-svg-icon", nt), l.component("sv-action-bar", ot), l.component("sv-action", lt), l.component("sv-action-bar-item", at), l.component("sv-action-bar-item-dropdown", dt), l.component("sv-action-bar-separator", mt), l.component("sv-list", qt), l.component("sv-list-item", gt), l.component("sv-popup", ht), l.component("sv-popup-container", St), l.component("popup-pointer", Rt), l.component("sv-notifier", Ft), l.component("survey-other-choice", Ut), l.component("sv-nav-btn", jt), l.component("survey-customwidget", Zt), l.component("survey-popup-modal", Gt), l.component("sv-character-counter", Xt), l.component("survey-composite", Jt), l.component("survey-custom", Yt), l.component("sv-timerpanel", si), l.component("sv-loading-indicator", ii), l.component("sv-cover", li), l.component("sv-cover-cell", ui), l.directive("key2click", {
|
|
4919
4934
|
mounted: function(n, o) {
|
|
4920
4935
|
const e = { ...o.value };
|
|
4921
4936
|
e.disableTabStop || (n.tabIndex = 0), n.addEventListener("keyup", (s) => (s.preventDefault(), s.stopPropagation(), de(s, e), !1)), n.addEventListener("keydown", (s) => {
|
|
@@ -4933,7 +4948,7 @@ const Ii = {
|
|
|
4933
4948
|
};
|
|
4934
4949
|
export {
|
|
4935
4950
|
Ii as surveyPlugin,
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4951
|
+
L as useBase,
|
|
4952
|
+
z as useLocString,
|
|
4953
|
+
H as useQuestion
|
|
4939
4954
|
};
|