survey-vue3-ui 1.9.120 → 1.9.122
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 +678 -688
- package/survey-vue3-ui.umd.js +1 -1
- package/types/Survey.vue.d.ts +1 -1
- package/types/SvgBundle.vue.d.ts +2 -0
package/survey-vue3-ui.es.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { shallowReactive as
|
|
2
|
-
import { Base as
|
|
3
|
-
|
|
4
|
-
function
|
|
1
|
+
import { shallowReactive as Ce, watch as G, onBeforeUnmount as J, onMounted as H, ref as _, shallowRef as j, triggerRef as le, unref as f, isRef as be, defineComponent as h, computed as w, onUpdated as x, resolveComponent as p, openBlock as i, createElementBlock as u, normalizeClass as l, createVNode as b, createCommentVNode as d, Fragment as $, renderList as B, createBlock as q, resolveDynamicComponent as T, normalizeProps as F, mergeProps as W, withCtx as V, normalizeStyle as S, createElementVNode as c, onUnmounted as z, withDirectives as P, vShow as M, toDisplayString as R, vModelRadio as ee, vModelCheckbox as ne, vModelSelect as ke, vModelText as fe, getCurrentInstance as oe, guardReactiveProps as ye, createStaticVNode as Ie, resolveDirective as X, toRaw as we, Teleport as Se, useSlots as Re, renderSlot as Te } from "vue";
|
|
2
|
+
import { Base as $e, RendererFactory as se, DropdownListModel as _e, Helpers as De, DropdownMultiSelectListModel as Be, doKey2ClickUp as qe, createSvg as Le, ActionDropdownViewModel as Ne, getActionDropdownButtonTarget as Pe, createPopupViewModel as ae, SurveyProgressModel as ue, SurveyProgressButtonsModel as Ae, TOCModel as Me, PopupSurveyModel as He, settings as K, createDialogOptions as We, createPopupModalViewModel as Ee, ButtonGroupItemModel as Ve, SvgRegistry as Oe, SurveyModel as Fe, doKey2ClickDown as ze, doKey2ClickBlur as Ue } from "survey-core";
|
|
3
|
+
$e.createPropertiesHash = () => Ce({});
|
|
4
|
+
function Ke(r) {
|
|
5
5
|
return !r || r.__vueImplemented ? !1 : (r.createArrayCoreHandler = (s, o) => {
|
|
6
6
|
const e = [], n = j(e);
|
|
7
7
|
return e.onArrayChanged = () => {
|
|
8
|
-
|
|
8
|
+
le(n);
|
|
9
9
|
}, s[o] = n, f(s[o]);
|
|
10
10
|
}, r.iteratePropertiesHash((s, o) => {
|
|
11
11
|
if (Array.isArray(s[o])) {
|
|
12
12
|
const e = j(s[o]);
|
|
13
13
|
s[o].onArrayChanged = () => {
|
|
14
|
-
|
|
14
|
+
le(e);
|
|
15
15
|
}, s[o] = e;
|
|
16
16
|
}
|
|
17
17
|
}), r.getPropertyValueCoreHandler = (s, o) => f(s[o]), r.setPropertyValueCoreHandler = (s, o, e) => {
|
|
18
|
-
|
|
18
|
+
be(s[o]) ? s[o].value = e : s[o] = e;
|
|
19
19
|
}, r.__vueImplemented = !0, !0);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function de(r, s) {
|
|
22
22
|
!r || !s || (r.iteratePropertiesHash((o, e) => {
|
|
23
23
|
o[e] = f(o[e]), Array.isArray(o[e]) && (o[e].onArrayChanged = void 0);
|
|
24
24
|
}), delete r.__vueImplemented, r.createArrayCoreHandler = void 0, r.getPropertyValueCoreHandler = void 0, r.setPropertyValueCoreHandler = void 0);
|
|
25
25
|
}
|
|
26
26
|
function L(r, s, o) {
|
|
27
27
|
let e = !1;
|
|
28
|
-
const n =
|
|
28
|
+
const n = G(
|
|
29
29
|
r,
|
|
30
30
|
(t, a) => {
|
|
31
|
-
t && s && s(t, a), a && (
|
|
31
|
+
t && s && s(t, a), a && (de(a, e), o && o(a)), e = Ke(t);
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
immediate: !0
|
|
@@ -36,22 +36,22 @@ function L(r, s, o) {
|
|
|
36
36
|
);
|
|
37
37
|
J(() => {
|
|
38
38
|
const t = r();
|
|
39
|
-
t && (
|
|
39
|
+
t && (de(t, e), o && o(t), n());
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
function A(r, s, o, e) {
|
|
43
|
-
L(() => r.question, o, e),
|
|
43
|
+
L(() => r.question, o, e), H(() => {
|
|
44
44
|
r.question && r.question.afterRenderQuestionElement(s.value);
|
|
45
45
|
}), J(() => {
|
|
46
46
|
r.question.beforeDestroyQuestionElement(s.value);
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
function Q(r) {
|
|
50
|
-
const s =
|
|
50
|
+
const s = _(), o = (n) => {
|
|
51
51
|
s.value = n.renderedHtml, n.onChanged = () => {
|
|
52
52
|
s.value = n.renderedHtml;
|
|
53
53
|
};
|
|
54
|
-
}, e =
|
|
54
|
+
}, e = G(
|
|
55
55
|
r,
|
|
56
56
|
(n, t) => {
|
|
57
57
|
t && (t.onChanged = () => {
|
|
@@ -66,7 +66,7 @@ function Q(r) {
|
|
|
66
66
|
function te(r) {
|
|
67
67
|
return r.customWidget ? "survey-customwidget" : r.isDefaultRendering && r.isDefaultRendering() || r.isPanel ? "survey-" + r.getTemplate() : r.getComponentName();
|
|
68
68
|
}
|
|
69
|
-
const
|
|
69
|
+
const je = /* @__PURE__ */ h({
|
|
70
70
|
__name: "Page",
|
|
71
71
|
props: {
|
|
72
72
|
survey: {},
|
|
@@ -74,21 +74,21 @@ const Ke = /* @__PURE__ */ h({
|
|
|
74
74
|
css: {}
|
|
75
75
|
},
|
|
76
76
|
setup(r) {
|
|
77
|
-
const s = r, o =
|
|
77
|
+
const s = r, o = _(null);
|
|
78
78
|
L(() => s.page);
|
|
79
79
|
const e = w(() => s.page._showDescription), n = w(() => s.page.rows);
|
|
80
|
-
return
|
|
80
|
+
return H(() => {
|
|
81
81
|
s.survey && s.survey.afterRenderPage(o.value);
|
|
82
|
-
}),
|
|
82
|
+
}), x(() => {
|
|
83
83
|
s.survey.afterRenderPage(o.value);
|
|
84
84
|
}), (t, a) => {
|
|
85
|
-
const
|
|
85
|
+
const y = p("survey-element-title"), m = p("survey-string"), v = p("survey-errors"), g = p("survey-row");
|
|
86
86
|
return i(), u("div", {
|
|
87
87
|
class: l(t.page.cssRoot),
|
|
88
88
|
ref_key: "root",
|
|
89
89
|
ref: o
|
|
90
90
|
}, [
|
|
91
|
-
b(
|
|
91
|
+
b(y, {
|
|
92
92
|
element: t.page,
|
|
93
93
|
css: t.css
|
|
94
94
|
}, null, 8, ["element", "css"]),
|
|
@@ -100,8 +100,8 @@ const Ke = /* @__PURE__ */ h({
|
|
|
100
100
|
locString: t.page.locDescription
|
|
101
101
|
}, null, 8, ["locString"])
|
|
102
102
|
], 2)) : d("", !0),
|
|
103
|
-
b(
|
|
104
|
-
(i(!0), u($, null, B(n.value, (I, C) => (i(), q(T(t.page.getSurvey().getRowWrapperComponentName(I)), F(
|
|
103
|
+
b(v, { element: t.page }, null, 8, ["element"]),
|
|
104
|
+
(i(!0), u($, null, B(n.value, (I, C) => (i(), q(T(t.page.getSurvey().getRowWrapperComponentName(I)), F(W({
|
|
105
105
|
key: t.page.id + "_" + C
|
|
106
106
|
}, {
|
|
107
107
|
componentData: t.page.getSurvey().getRowWrapperComponentData(I)
|
|
@@ -119,18 +119,18 @@ const Ke = /* @__PURE__ */ h({
|
|
|
119
119
|
], 2);
|
|
120
120
|
};
|
|
121
121
|
}
|
|
122
|
-
}),
|
|
122
|
+
}), Qe = /* @__PURE__ */ h({
|
|
123
123
|
__name: "Header",
|
|
124
124
|
props: {
|
|
125
125
|
survey: {}
|
|
126
126
|
},
|
|
127
127
|
setup(r) {
|
|
128
|
-
const s = r, o =
|
|
129
|
-
return
|
|
128
|
+
const s = r, o = _();
|
|
129
|
+
return H(() => {
|
|
130
130
|
var e = o.value;
|
|
131
131
|
e && s.survey && s.survey.afterRenderHeader(e);
|
|
132
132
|
}), (e, n) => {
|
|
133
|
-
const t =
|
|
133
|
+
const t = p("survey-element-title"), a = p("survey-string");
|
|
134
134
|
return e.survey.renderedHasHeader ? (i(), u("div", {
|
|
135
135
|
key: 0,
|
|
136
136
|
class: l(e.survey.css.header),
|
|
@@ -144,13 +144,13 @@ const Ke = /* @__PURE__ */ h({
|
|
|
144
144
|
e.survey.renderedHasTitle ? (i(), u("div", {
|
|
145
145
|
key: 1,
|
|
146
146
|
class: l(e.survey.css.headerText),
|
|
147
|
-
style:
|
|
147
|
+
style: S({ maxWidth: e.survey.titleMaxWidth })
|
|
148
148
|
}, [
|
|
149
149
|
b(t, {
|
|
150
150
|
element: e.survey,
|
|
151
151
|
css: e.survey.css
|
|
152
152
|
}, null, 8, ["element", "css"]),
|
|
153
|
-
e.survey.renderedHasDescription ? (i(), u("
|
|
153
|
+
e.survey.renderedHasDescription ? (i(), u("div", {
|
|
154
154
|
key: 0,
|
|
155
155
|
class: l(e.survey.css.description)
|
|
156
156
|
}, [
|
|
@@ -169,7 +169,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
169
169
|
], 2)) : d("", !0);
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
|
-
}),
|
|
172
|
+
}), Ge = /* @__PURE__ */ h({
|
|
173
173
|
__name: "Row",
|
|
174
174
|
props: {
|
|
175
175
|
row: {},
|
|
@@ -179,7 +179,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
179
179
|
setup(r) {
|
|
180
180
|
const s = r, o = w(
|
|
181
181
|
() => s.row.visibleElements
|
|
182
|
-
), e =
|
|
182
|
+
), e = _();
|
|
183
183
|
return L(
|
|
184
184
|
() => s.row,
|
|
185
185
|
(n, t) => {
|
|
@@ -188,7 +188,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
188
188
|
(n) => {
|
|
189
189
|
n.stopLazyRendering(), n.isNeedRender = !n.isLazyRendering();
|
|
190
190
|
}
|
|
191
|
-
),
|
|
191
|
+
), H(() => {
|
|
192
192
|
if (s.row && !s.row.isNeedRender) {
|
|
193
193
|
const n = e.value;
|
|
194
194
|
setTimeout(() => {
|
|
@@ -196,24 +196,24 @@ const Ke = /* @__PURE__ */ h({
|
|
|
196
196
|
}, 10);
|
|
197
197
|
}
|
|
198
198
|
}), (n, t) => {
|
|
199
|
-
const a =
|
|
199
|
+
const a = p("survey-element");
|
|
200
200
|
return i(), u("div", {
|
|
201
201
|
class: l(n.row.getRowCss()),
|
|
202
202
|
ref_key: "root",
|
|
203
203
|
ref: e
|
|
204
204
|
}, [
|
|
205
|
-
(i(!0), u($, null, B(o.value, (
|
|
205
|
+
(i(!0), u($, null, B(o.value, (y) => (i(), q(a, {
|
|
206
206
|
row: n.row,
|
|
207
207
|
css: n.css,
|
|
208
|
-
element:
|
|
209
|
-
key:
|
|
208
|
+
element: y,
|
|
209
|
+
key: y.id
|
|
210
210
|
}, null, 8, ["row", "css", "element"]))), 128))
|
|
211
211
|
], 2);
|
|
212
212
|
};
|
|
213
213
|
}
|
|
214
|
-
}),
|
|
214
|
+
}), Je = ["id", "role", "aria-required", "aria-invalid", "aria-labelledby", "aria-expanded", "data-name"], Xe = {
|
|
215
215
|
inheritAttrs: !1
|
|
216
|
-
},
|
|
216
|
+
}, Ye = /* @__PURE__ */ h({
|
|
217
217
|
...Xe,
|
|
218
218
|
__name: "Question",
|
|
219
219
|
props: {
|
|
@@ -222,17 +222,17 @@ const Ke = /* @__PURE__ */ h({
|
|
|
222
222
|
css: {}
|
|
223
223
|
},
|
|
224
224
|
setup(r) {
|
|
225
|
-
const s = r, o =
|
|
225
|
+
const s = r, o = _(null), e = w(() => s.element.showErrorOnTop), n = w(() => s.element.showErrorOnBottom), t = (C) => C.cssContent, a = () => s.element.getRootStyle();
|
|
226
226
|
L(() => s.element);
|
|
227
|
-
const
|
|
227
|
+
const y = () => {
|
|
228
228
|
o.value && s.element.afterRender(o.value);
|
|
229
|
-
}, m =
|
|
229
|
+
}, m = G(
|
|
230
230
|
() => o.value,
|
|
231
231
|
() => {
|
|
232
|
-
|
|
232
|
+
y();
|
|
233
233
|
}
|
|
234
|
-
),
|
|
235
|
-
componentName:
|
|
234
|
+
), v = w(() => s.element.customWidget ? "survey-customwidget" : s.element.isDefaultRendering() ? "survey-" + s.element.getTemplate() : s.element.getComponentName()), g = w(() => s.element.survey.getQuestionContentWrapperComponentName(s.element) || v.value), I = w(() => ({
|
|
235
|
+
componentName: v.value,
|
|
236
236
|
componentData: {
|
|
237
237
|
question: s.element,
|
|
238
238
|
data: s.element.survey.getElementWrapperComponentData(s.element)
|
|
@@ -241,10 +241,10 @@ const Ke = /* @__PURE__ */ h({
|
|
|
241
241
|
return z(() => {
|
|
242
242
|
m();
|
|
243
243
|
}), (C, N) => {
|
|
244
|
-
const k =
|
|
244
|
+
const k = p("survey-errors"), D = p("survey-element-header"), E = p("survey-string"), O = p("survey-question-comment");
|
|
245
245
|
return i(), u("div", {
|
|
246
246
|
class: l(C.element.getRootCss()),
|
|
247
|
-
style:
|
|
247
|
+
style: S(a()),
|
|
248
248
|
ref_key: "root",
|
|
249
249
|
ref: o,
|
|
250
250
|
onFocusin: N[0] || (N[0] = (U) => C.element.focusIn()),
|
|
@@ -261,7 +261,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
261
261
|
element: C.element,
|
|
262
262
|
location: "top"
|
|
263
263
|
}, null, 8, ["element"])) : d("", !0),
|
|
264
|
-
C.element.hasTitleOnLeftTop ? (i(), q(
|
|
264
|
+
C.element.hasTitleOnLeftTop ? (i(), q(D, {
|
|
265
265
|
key: 1,
|
|
266
266
|
element: C.element,
|
|
267
267
|
css: C.css
|
|
@@ -275,7 +275,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
275
275
|
element: C.element,
|
|
276
276
|
location: "top"
|
|
277
277
|
}, null, 8, ["element"])) : d("", !0),
|
|
278
|
-
C.element.isCollapsed ? d("", !0) : (i(), q(T(g.value), F(
|
|
278
|
+
C.element.isCollapsed ? d("", !0) : (i(), q(T(g.value), F(W({ key: 1 }, I.value)), null, 16)),
|
|
279
279
|
C.element.hasComment ? (i(), u("div", {
|
|
280
280
|
key: 2,
|
|
281
281
|
class: l(C.element.getCommentAreaCss())
|
|
@@ -303,7 +303,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
303
303
|
], 2), [
|
|
304
304
|
[M, !C.element.isCollapsed]
|
|
305
305
|
]),
|
|
306
|
-
C.element.hasTitleOnBottom ? (i(), q(
|
|
306
|
+
C.element.hasTitleOnBottom ? (i(), q(D, {
|
|
307
307
|
key: 2,
|
|
308
308
|
element: C.element,
|
|
309
309
|
css: C.css
|
|
@@ -313,13 +313,13 @@ const Ke = /* @__PURE__ */ h({
|
|
|
313
313
|
element: C.element,
|
|
314
314
|
location: "bottom"
|
|
315
315
|
}, null, 8, ["element"])) : d("", !0)
|
|
316
|
-
], 46,
|
|
316
|
+
], 46, Je);
|
|
317
317
|
};
|
|
318
318
|
}
|
|
319
|
-
}),
|
|
319
|
+
}), Ze = ["id"], xe = ["id"], es = {
|
|
320
320
|
inheritAttrs: !1
|
|
321
|
-
},
|
|
322
|
-
...
|
|
321
|
+
}, ss = /* @__PURE__ */ h({
|
|
322
|
+
...es,
|
|
323
323
|
inheritAttrs: !1,
|
|
324
324
|
__name: "Panel",
|
|
325
325
|
props: {
|
|
@@ -328,11 +328,11 @@ const Ke = /* @__PURE__ */ h({
|
|
|
328
328
|
css: {}
|
|
329
329
|
},
|
|
330
330
|
setup(r) {
|
|
331
|
-
const s = r, o =
|
|
332
|
-
return L(() => s.element),
|
|
331
|
+
const s = r, o = _(null), e = w(() => s.element.rows), n = w(() => s.element.survey);
|
|
332
|
+
return L(() => s.element), H(() => {
|
|
333
333
|
s.element.survey && s.element.survey.afterRenderPanel(s.element, o.value);
|
|
334
334
|
}), (t, a) => {
|
|
335
|
-
const
|
|
335
|
+
const y = p("survey-errors"), m = p("survey-element-header"), v = p("survey-row"), g = p("sv-action-bar");
|
|
336
336
|
return t.element.isVisible ? (i(), u("div", {
|
|
337
337
|
key: 0,
|
|
338
338
|
class: l(t.element.getContainerCss()),
|
|
@@ -341,7 +341,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
341
341
|
ref_key: "root",
|
|
342
342
|
ref: o
|
|
343
343
|
}, [
|
|
344
|
-
t.element.showErrorsAbovePanel ? (i(), q(
|
|
344
|
+
t.element.showErrorsAbovePanel ? (i(), q(y, {
|
|
345
345
|
key: 0,
|
|
346
346
|
element: t.element
|
|
347
347
|
}, null, 8, ["element"])) : d("", !0),
|
|
@@ -350,23 +350,23 @@ const Ke = /* @__PURE__ */ h({
|
|
|
350
350
|
element: t.element,
|
|
351
351
|
css: t.css
|
|
352
352
|
}, null, 8, ["element", "css"])) : d("", !0),
|
|
353
|
-
t.element.showErrorsAbovePanel ? d("", !0) : (i(), q(
|
|
353
|
+
t.element.showErrorsAbovePanel ? d("", !0) : (i(), q(y, {
|
|
354
354
|
key: 2,
|
|
355
355
|
element: t.element
|
|
356
356
|
}, null, 8, ["element"])),
|
|
357
357
|
t.element.isCollapsed ? d("", !0) : (i(), u("div", {
|
|
358
358
|
key: 3,
|
|
359
359
|
id: t.element.contentId,
|
|
360
|
-
style:
|
|
360
|
+
style: S({ paddingLeft: t.element.innerPaddingLeft }),
|
|
361
361
|
class: l(t.element.cssClasses.panel.content)
|
|
362
362
|
}, [
|
|
363
|
-
(i(!0), u($, null, B(e.value, (I, C) => (i(), q(T(t.element.getSurvey().getRowWrapperComponentName(I)), F(
|
|
363
|
+
(i(!0), u($, null, B(e.value, (I, C) => (i(), q(T(t.element.getSurvey().getRowWrapperComponentName(I)), F(W({
|
|
364
364
|
key: t.element.id + "_" + C
|
|
365
365
|
}, {
|
|
366
366
|
componentData: t.element.getSurvey().getRowWrapperComponentData(I)
|
|
367
367
|
})), {
|
|
368
368
|
default: V(() => [
|
|
369
|
-
I.visible ? (i(), q(
|
|
369
|
+
I.visible ? (i(), q(v, {
|
|
370
370
|
key: 0,
|
|
371
371
|
row: I,
|
|
372
372
|
survey: n.value,
|
|
@@ -378,11 +378,11 @@ const Ke = /* @__PURE__ */ h({
|
|
|
378
378
|
b(g, {
|
|
379
379
|
model: t.element.getFooterToolbar()
|
|
380
380
|
}, null, 8, ["model"])
|
|
381
|
-
], 14,
|
|
382
|
-
], 42,
|
|
381
|
+
], 14, xe))
|
|
382
|
+
], 42, Ze)) : d("", !0);
|
|
383
383
|
};
|
|
384
384
|
}
|
|
385
|
-
}),
|
|
385
|
+
}), ns = /* @__PURE__ */ h({
|
|
386
386
|
__name: "ElementHeader",
|
|
387
387
|
props: {
|
|
388
388
|
element: {},
|
|
@@ -393,7 +393,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
393
393
|
typeof s.element.clickTitleFunction == "function" && s.element.clickTitleFunction(e);
|
|
394
394
|
};
|
|
395
395
|
return (e, n) => {
|
|
396
|
-
const t =
|
|
396
|
+
const t = p("survey-element-title"), a = p("survey-string"), y = p("sv-action-bar");
|
|
397
397
|
return i(), u("div", {
|
|
398
398
|
class: l(e.element.cssHeader),
|
|
399
399
|
onClick: o
|
|
@@ -412,14 +412,14 @@ const Ke = /* @__PURE__ */ h({
|
|
|
412
412
|
], 2)), [
|
|
413
413
|
[M, e.element.hasDescription]
|
|
414
414
|
]) : d("", !0),
|
|
415
|
-
e.element.additionalTitleToolbar ? (i(), q(
|
|
415
|
+
e.element.additionalTitleToolbar ? (i(), q(y, {
|
|
416
416
|
key: 1,
|
|
417
417
|
model: e.element.additionalTitleToolbar
|
|
418
418
|
}, null, 8, ["model"])) : d("", !0)
|
|
419
419
|
], 2);
|
|
420
420
|
};
|
|
421
421
|
}
|
|
422
|
-
}),
|
|
422
|
+
}), os = /* @__PURE__ */ h({
|
|
423
423
|
__name: "String",
|
|
424
424
|
props: {
|
|
425
425
|
locString: {}
|
|
@@ -429,10 +429,10 @@ const Ke = /* @__PURE__ */ h({
|
|
|
429
429
|
locString: s.locString.renderAsData
|
|
430
430
|
}, null, 8, ["locString"]));
|
|
431
431
|
}
|
|
432
|
-
}),
|
|
432
|
+
}), ts = ["innerHTML"], is = {
|
|
433
433
|
key: 1,
|
|
434
434
|
class: "sv-string-viewer"
|
|
435
|
-
},
|
|
435
|
+
}, rs = /* @__PURE__ */ h({
|
|
436
436
|
__name: "StringViewer",
|
|
437
437
|
props: {
|
|
438
438
|
locString: {}
|
|
@@ -443,9 +443,9 @@ const Ke = /* @__PURE__ */ h({
|
|
|
443
443
|
key: 0,
|
|
444
444
|
class: "sv-string-viewer",
|
|
445
445
|
innerHTML: f(o)
|
|
446
|
-
}, null, 8,
|
|
446
|
+
}, null, 8, ts)) : (i(), u("span", is, R(f(o)), 1));
|
|
447
447
|
}
|
|
448
|
-
}),
|
|
448
|
+
}), ls = ["innerHTML"], as = /* @__PURE__ */ h({
|
|
449
449
|
__name: "StringEditor",
|
|
450
450
|
props: {
|
|
451
451
|
locString: {}
|
|
@@ -464,15 +464,15 @@ const Ke = /* @__PURE__ */ h({
|
|
|
464
464
|
innerHTML: n.locString.renderedHtml,
|
|
465
465
|
onBlur: o,
|
|
466
466
|
onClick: e
|
|
467
|
-
}, null, 40,
|
|
467
|
+
}, null, 40, ls)) : (i(), u("span", {
|
|
468
468
|
key: 1,
|
|
469
469
|
class: "sv-string-editor",
|
|
470
470
|
contenteditable: "true",
|
|
471
471
|
onBlur: o,
|
|
472
472
|
onClick: e
|
|
473
|
-
},
|
|
473
|
+
}, R(n.locString.renderedHtml), 33));
|
|
474
474
|
}
|
|
475
|
-
}),
|
|
475
|
+
}), us = ["id"], ds = /* @__PURE__ */ h({
|
|
476
476
|
__name: "Skeleton",
|
|
477
477
|
props: {
|
|
478
478
|
element: {}
|
|
@@ -482,23 +482,23 @@ const Ke = /* @__PURE__ */ h({
|
|
|
482
482
|
return L(() => s.element), (o, e) => (i(), u("div", {
|
|
483
483
|
class: "sv-skeleton-element",
|
|
484
484
|
id: o.element.id
|
|
485
|
-
}, null, 8,
|
|
485
|
+
}, null, 8, us));
|
|
486
486
|
}
|
|
487
|
-
}),
|
|
487
|
+
}), ms = ["id"], cs = ["value"], ps = /* @__PURE__ */ h({
|
|
488
488
|
inheritAttrs: !1,
|
|
489
489
|
__name: "Text",
|
|
490
490
|
props: {
|
|
491
491
|
question: {}
|
|
492
492
|
},
|
|
493
493
|
setup(r) {
|
|
494
|
-
const s = r, o =
|
|
494
|
+
const s = r, o = _(null);
|
|
495
495
|
return A(s, o), (e, n) => {
|
|
496
|
-
const t =
|
|
496
|
+
const t = p("survey-text-input");
|
|
497
497
|
return e.question.isReadOnlyRenderDiv() ? (i(), u("div", {
|
|
498
498
|
key: 0,
|
|
499
499
|
ref_key: "root",
|
|
500
500
|
ref: o
|
|
501
|
-
},
|
|
501
|
+
}, R(e.question.value), 513)) : e.question.dataListId ? (i(), u("div", {
|
|
502
502
|
key: 1,
|
|
503
503
|
ref_key: "root",
|
|
504
504
|
ref: o
|
|
@@ -507,8 +507,8 @@ const Ke = /* @__PURE__ */ h({
|
|
|
507
507
|
c("datalist", {
|
|
508
508
|
id: e.question.dataListId
|
|
509
509
|
}, [
|
|
510
|
-
(i(!0), u($, null, B(e.question.dataList, (a) => (i(), u("option", { value: a }, null, 8,
|
|
511
|
-
], 8,
|
|
510
|
+
(i(!0), u($, null, B(e.question.dataList, (a) => (i(), u("option", { value: a }, null, 8, cs))), 256))
|
|
511
|
+
], 8, ms)
|
|
512
512
|
], 512)) : (i(), q(t, {
|
|
513
513
|
key: 2,
|
|
514
514
|
question: e.question,
|
|
@@ -517,7 +517,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
517
517
|
}, null, 8, ["question"]));
|
|
518
518
|
};
|
|
519
519
|
}
|
|
520
|
-
}),
|
|
520
|
+
}), vs = ["disabled", "type", "maxlength", "min", "max", "step", "size", "id", "list", "placeholder", "autocomplete", "value", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], ys = { key: 1 }, qs = ["disabled", "type", "maxlength", "min", "max", "step", "size", "id", "list", "placeholder", "autocomplete", "value", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], gs = /* @__PURE__ */ h({
|
|
521
521
|
__name: "TextInput",
|
|
522
522
|
props: {
|
|
523
523
|
question: {}
|
|
@@ -527,8 +527,8 @@ const Ke = /* @__PURE__ */ h({
|
|
|
527
527
|
L(() => s.question);
|
|
528
528
|
const o = w(() => s.question.inputStyle);
|
|
529
529
|
return (e, n) => {
|
|
530
|
-
const t =
|
|
531
|
-
return e.question.getMaxLength() ? (i(), u("div",
|
|
530
|
+
const t = p("sv-character-counter");
|
|
531
|
+
return e.question.getMaxLength() ? (i(), u("div", ys, [
|
|
532
532
|
c("input", {
|
|
533
533
|
disabled: e.question.isInputReadOnly,
|
|
534
534
|
class: l(e.question.getControlClass()),
|
|
@@ -538,7 +538,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
538
538
|
max: e.question.renderedMax,
|
|
539
539
|
step: e.question.renderedStep,
|
|
540
540
|
size: e.question.renderedInputSize,
|
|
541
|
-
style:
|
|
541
|
+
style: S(o.value),
|
|
542
542
|
id: e.question.inputId,
|
|
543
543
|
list: e.question.dataListId,
|
|
544
544
|
placeholder: e.question.renderedPlaceholder,
|
|
@@ -555,7 +555,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
555
555
|
"aria-labelledby": e.question.a11y_input_ariaLabelledBy,
|
|
556
556
|
"aria-invalid": e.question.a11y_input_ariaInvalid,
|
|
557
557
|
"aria-describedby": e.question.a11y_input_ariaDescribedBy
|
|
558
|
-
}, null, 46,
|
|
558
|
+
}, null, 46, qs),
|
|
559
559
|
b(t, {
|
|
560
560
|
counter: e.question.characterCounter,
|
|
561
561
|
remainingCharacterCounter: e.question.cssClasses.remainingCharacterCounter
|
|
@@ -570,7 +570,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
570
570
|
max: e.question.renderedMax,
|
|
571
571
|
step: e.question.renderedStep,
|
|
572
572
|
size: e.question.renderedInputSize,
|
|
573
|
-
style:
|
|
573
|
+
style: S(o.value),
|
|
574
574
|
id: e.question.inputId,
|
|
575
575
|
list: e.question.dataListId,
|
|
576
576
|
placeholder: e.question.renderedPlaceholder,
|
|
@@ -587,13 +587,13 @@ const Ke = /* @__PURE__ */ h({
|
|
|
587
587
|
"aria-labelledby": e.question.a11y_input_ariaLabelledBy,
|
|
588
588
|
"aria-invalid": e.question.a11y_input_ariaInvalid,
|
|
589
589
|
"aria-describedby": e.question.a11y_input_ariaDescribedBy
|
|
590
|
-
}, null, 46,
|
|
590
|
+
}, null, 46, vs));
|
|
591
591
|
};
|
|
592
592
|
}
|
|
593
|
-
}),
|
|
593
|
+
}), hs = ["role", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], Cs = {
|
|
594
594
|
key: 0,
|
|
595
595
|
class: "sv-hidden"
|
|
596
|
-
},
|
|
596
|
+
}, bs = { key: 7 }, ks = ["value"], ge = /* @__PURE__ */ h({
|
|
597
597
|
inheritAttrs: !1,
|
|
598
598
|
__name: "SelectBase",
|
|
599
599
|
props: {
|
|
@@ -601,7 +601,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
601
601
|
showLegend: { type: Boolean }
|
|
602
602
|
},
|
|
603
603
|
setup(r) {
|
|
604
|
-
const s = r, o =
|
|
604
|
+
const s = r, o = _(null);
|
|
605
605
|
A(s, o);
|
|
606
606
|
const e = (t) => s.question.getItemValueWrapperComponentName(t) || s.question.itemComponent, n = (t) => ({
|
|
607
607
|
componentName: s.question.itemComponent,
|
|
@@ -612,7 +612,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
612
612
|
}
|
|
613
613
|
});
|
|
614
614
|
return (t, a) => {
|
|
615
|
-
const
|
|
615
|
+
const y = p("survey-other-choice");
|
|
616
616
|
return i(), u("fieldset", {
|
|
617
617
|
class: l(t.question.getSelectBaseRootCss()),
|
|
618
618
|
ref_key: "root",
|
|
@@ -624,18 +624,18 @@ const Ke = /* @__PURE__ */ h({
|
|
|
624
624
|
"aria-invalid": t.question.a11y_input_ariaInvalid,
|
|
625
625
|
"aria-describedby": t.question.a11y_input_ariaDescribedBy
|
|
626
626
|
}, [
|
|
627
|
-
t.showLegend ? (i(), u("legend",
|
|
628
|
-
t.question.hasHeadItems ? (i(!0), u($, { key: 1 }, B(t.question.headItems, (m) => (i(), q(T(e(m)),
|
|
627
|
+
t.showLegend ? (i(), u("legend", Cs, R(t.question.locTitle.renderedHtml), 1)) : d("", !0),
|
|
628
|
+
t.question.hasHeadItems ? (i(!0), u($, { key: 1 }, B(t.question.headItems, (m) => (i(), q(T(e(m)), W({
|
|
629
629
|
key: m.value
|
|
630
630
|
}, n(m)), null, 16))), 128)) : d("", !0),
|
|
631
|
-
!t.question.hasColumns && !t.question.blockedRow ? (i(!0), u($, { key: 2 }, B(t.question.bodyItems, (m) => (i(), q(T(e(m)),
|
|
631
|
+
!t.question.hasColumns && !t.question.blockedRow ? (i(!0), u($, { key: 2 }, B(t.question.bodyItems, (m) => (i(), q(T(e(m)), W({
|
|
632
632
|
key: m.value
|
|
633
633
|
}, n(m)), null, 16))), 128)) : d("", !0),
|
|
634
634
|
t.question.blockedRow ? (i(), u("div", {
|
|
635
635
|
key: 3,
|
|
636
636
|
class: l(t.question.cssClasses.rootRow)
|
|
637
637
|
}, [
|
|
638
|
-
!t.question.hasColumns && t.question.blockedRow ? (i(!0), u($, { key: 0 }, B(t.question.dataChoices, (m) => (i(), q(T(e(m)),
|
|
638
|
+
!t.question.hasColumns && t.question.blockedRow ? (i(!0), u($, { key: 0 }, B(t.question.dataChoices, (m) => (i(), q(T(e(m)), W({
|
|
639
639
|
key: m.value
|
|
640
640
|
}, n(m)), null, 16))), 128)) : d("", !0)
|
|
641
641
|
], 2)) : d("", !0),
|
|
@@ -643,24 +643,24 @@ const Ke = /* @__PURE__ */ h({
|
|
|
643
643
|
key: 4,
|
|
644
644
|
class: l(t.question.cssClasses.rootMultiColumn)
|
|
645
645
|
}, [
|
|
646
|
-
t.question.hasColumns ? (i(!0), u($, { key: 0 }, B(t.question.columns, (m,
|
|
647
|
-
key:
|
|
646
|
+
t.question.hasColumns ? (i(!0), u($, { key: 0 }, B(t.question.columns, (m, v) => (i(), u("div", {
|
|
647
|
+
key: v,
|
|
648
648
|
class: l(t.question.getColumnClass()),
|
|
649
649
|
role: "presentation"
|
|
650
650
|
}, [
|
|
651
|
-
(i(!0), u($, null, B(m, (g) => (i(), q(T(e(g)),
|
|
651
|
+
(i(!0), u($, null, B(m, (g) => (i(), q(T(e(g)), W({
|
|
652
652
|
key: g.value
|
|
653
653
|
}, n(g)), null, 16))), 128))
|
|
654
654
|
], 2))), 128)) : d("", !0)
|
|
655
655
|
], 2)) : d("", !0),
|
|
656
|
-
t.question.hasFootItems ? (i(!0), u($, { key: 5 }, B(t.question.footItems, (m) => (i(), q(T(e(m)),
|
|
656
|
+
t.question.hasFootItems ? (i(!0), u($, { key: 5 }, B(t.question.footItems, (m) => (i(), q(T(e(m)), W({
|
|
657
657
|
key: m.value
|
|
658
658
|
}, n(m)), null, 16))), 128)) : d("", !0),
|
|
659
|
-
t.question.renderedValue && t.question.isOtherSelected ? (i(), q(
|
|
659
|
+
t.question.renderedValue && t.question.isOtherSelected ? (i(), q(y, {
|
|
660
660
|
key: 6,
|
|
661
661
|
question: t.question
|
|
662
662
|
}, null, 8, ["question"])) : d("", !0),
|
|
663
|
-
t.question.showClearButtonInContent ? (i(), u("div",
|
|
663
|
+
t.question.showClearButtonInContent ? (i(), u("div", bs, [
|
|
664
664
|
c("input", {
|
|
665
665
|
type: "button",
|
|
666
666
|
class: l(t.question.cssClasses.clearButton),
|
|
@@ -668,24 +668,24 @@ const Ke = /* @__PURE__ */ h({
|
|
|
668
668
|
t.question.clearValue();
|
|
669
669
|
}),
|
|
670
670
|
value: t.question.clearButtonCaption
|
|
671
|
-
}, null, 10,
|
|
671
|
+
}, null, 10, ks)
|
|
672
672
|
])) : d("", !0)
|
|
673
|
-
], 10,
|
|
673
|
+
], 10, hs);
|
|
674
674
|
};
|
|
675
675
|
}
|
|
676
|
-
}),
|
|
676
|
+
}), fs = /* @__PURE__ */ h({
|
|
677
677
|
inheritAttrs: !1,
|
|
678
678
|
__name: "Checkbox",
|
|
679
679
|
props: {
|
|
680
680
|
question: {}
|
|
681
681
|
},
|
|
682
682
|
setup(r) {
|
|
683
|
-
return (s, o) => (i(), q(
|
|
683
|
+
return (s, o) => (i(), q(ge, {
|
|
684
684
|
question: s.question,
|
|
685
685
|
"show-legend": !0
|
|
686
686
|
}, null, 8, ["question"]));
|
|
687
687
|
}
|
|
688
|
-
}),
|
|
688
|
+
}), Is = ["name", "checked", "value", "id", "disabled"], ws = ["xlink:href"], Ss = /* @__PURE__ */ h({
|
|
689
689
|
inheritAttrs: !1,
|
|
690
690
|
__name: "CheckboxItem",
|
|
691
691
|
props: {
|
|
@@ -694,77 +694,52 @@ const Ke = /* @__PURE__ */ h({
|
|
|
694
694
|
hideLabel: { type: Boolean }
|
|
695
695
|
},
|
|
696
696
|
setup(r) {
|
|
697
|
-
const s = r
|
|
698
|
-
get() {
|
|
699
|
-
return s.question.isAllSelected || "";
|
|
700
|
-
},
|
|
701
|
-
set(n) {
|
|
702
|
-
const t = s.question;
|
|
703
|
-
t.isAllSelected = !!n;
|
|
704
|
-
}
|
|
705
|
-
});
|
|
697
|
+
const s = r;
|
|
706
698
|
L(() => s.item);
|
|
707
|
-
const
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
}
|
|
713
|
-
});
|
|
714
|
-
return L(() => s.item), (n, t) => {
|
|
715
|
-
const a = v("survey-string");
|
|
699
|
+
const o = (e) => {
|
|
700
|
+
s.question.clickItemHandler(s.item, e.target.checked);
|
|
701
|
+
};
|
|
702
|
+
return (e, n) => {
|
|
703
|
+
const t = p("survey-string");
|
|
716
704
|
return i(), u("div", {
|
|
717
705
|
role: "presentation",
|
|
718
|
-
class: l(
|
|
706
|
+
class: l(e.question.getItemClass(e.item))
|
|
719
707
|
}, [
|
|
720
708
|
c("label", {
|
|
721
|
-
class: l(
|
|
709
|
+
class: l(e.question.getLabelClass(e.item))
|
|
722
710
|
}, [
|
|
723
|
-
|
|
724
|
-
key: 0,
|
|
725
|
-
type: "checkbox",
|
|
726
|
-
role: "option",
|
|
727
|
-
name: n.question.name + n.item.value,
|
|
728
|
-
value: o.value,
|
|
729
|
-
"onUpdate:modelValue": t[0] || (t[0] = (p) => o.value = p),
|
|
730
|
-
id: n.question.getItemId(n.item),
|
|
731
|
-
disabled: !n.question.getItemEnabled(n.item),
|
|
732
|
-
class: l(n.question.cssClasses.itemControl)
|
|
733
|
-
}, null, 10, fs)), [
|
|
734
|
-
[G, o.value]
|
|
735
|
-
]) : d("", !0),
|
|
736
|
-
n.item != n.question.selectAllItem ? P((i(), u("input", {
|
|
737
|
-
key: 1,
|
|
711
|
+
c("input", {
|
|
738
712
|
type: "checkbox",
|
|
739
713
|
role: "option",
|
|
740
|
-
name:
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
714
|
+
name: e.question.name + e.item.id,
|
|
715
|
+
checked: e.question.isItemSelected(e.item),
|
|
716
|
+
onInput: n[0] || (n[0] = (a) => {
|
|
717
|
+
o(a);
|
|
718
|
+
}),
|
|
719
|
+
value: e.item.value,
|
|
720
|
+
id: e.question.getItemId(e.item),
|
|
721
|
+
disabled: !e.question.getItemEnabled(e.item),
|
|
722
|
+
class: l(e.question.cssClasses.itemControl)
|
|
723
|
+
}, null, 42, Is),
|
|
724
|
+
e.question.cssClasses.materialDecorator ? (i(), u("span", {
|
|
725
|
+
key: 0,
|
|
726
|
+
class: l(e.question.cssClasses.materialDecorator)
|
|
752
727
|
}, [
|
|
753
|
-
|
|
728
|
+
e.question.itemSvgIcon ? (i(), u("svg", {
|
|
754
729
|
key: 0,
|
|
755
|
-
class: l(
|
|
730
|
+
class: l(e.question.cssClasses.itemDecorator)
|
|
756
731
|
}, [
|
|
757
732
|
c("use", {
|
|
758
|
-
"xlink:href":
|
|
733
|
+
"xlink:href": e.question.itemSvgIcon
|
|
759
734
|
}, null, 8, ws)
|
|
760
735
|
], 2)) : d("", !0)
|
|
761
736
|
], 2)) : d("", !0),
|
|
762
|
-
|
|
763
|
-
key:
|
|
764
|
-
class: l(
|
|
737
|
+
e.hideLabel ? d("", !0) : (i(), u("span", {
|
|
738
|
+
key: 1,
|
|
739
|
+
class: l(e.question.cssClasses.controlLabel)
|
|
765
740
|
}, [
|
|
766
|
-
b(
|
|
767
|
-
locString:
|
|
741
|
+
b(t, {
|
|
742
|
+
locString: e.item.locText
|
|
768
743
|
}, null, 8, ["locString"])
|
|
769
744
|
], 2))
|
|
770
745
|
], 2)
|
|
@@ -778,9 +753,9 @@ const Ke = /* @__PURE__ */ h({
|
|
|
778
753
|
question: {}
|
|
779
754
|
},
|
|
780
755
|
setup(r) {
|
|
781
|
-
return (s, o) => (i(), q(
|
|
756
|
+
return (s, o) => (i(), q(ge, { question: s.question }, null, 8, ["question"]));
|
|
782
757
|
}
|
|
783
|
-
}), Ts = ["name", "value", "id", "aria-describedby", "disabled"], $s = ["xlink:href"],
|
|
758
|
+
}), Ts = ["name", "value", "id", "aria-describedby", "disabled"], $s = ["xlink:href"], _s = /* @__PURE__ */ h({
|
|
784
759
|
inheritAttrs: !1,
|
|
785
760
|
__name: "RadiogroupItem",
|
|
786
761
|
props: {
|
|
@@ -797,7 +772,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
797
772
|
}
|
|
798
773
|
});
|
|
799
774
|
return L(() => s.item), (t, a) => {
|
|
800
|
-
const
|
|
775
|
+
const y = p("survey-string");
|
|
801
776
|
return i(), u("div", {
|
|
802
777
|
role: "presentation",
|
|
803
778
|
class: l(t.question.getItemClass(t.item))
|
|
@@ -816,7 +791,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
816
791
|
disabled: !t.question.getItemEnabled(t.item),
|
|
817
792
|
class: l(t.question.cssClasses.itemControl)
|
|
818
793
|
}, null, 10, Ts), [
|
|
819
|
-
[
|
|
794
|
+
[ee, n.value]
|
|
820
795
|
]),
|
|
821
796
|
t.question.cssClasses.materialDecorator ? (i(), u("span", {
|
|
822
797
|
key: 0,
|
|
@@ -835,7 +810,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
835
810
|
key: 1,
|
|
836
811
|
class: l(e(t.item))
|
|
837
812
|
}, [
|
|
838
|
-
b(
|
|
813
|
+
b(y, {
|
|
839
814
|
locString: t.item.locText
|
|
840
815
|
}, null, 8, ["locString"])
|
|
841
816
|
], 2))
|
|
@@ -843,21 +818,21 @@ const Ke = /* @__PURE__ */ h({
|
|
|
843
818
|
], 2);
|
|
844
819
|
};
|
|
845
820
|
}
|
|
846
|
-
}),
|
|
821
|
+
}), Ds = ["src"], Bs = ["title"], Ls = { key: 0 }, Ns = /* @__PURE__ */ h({
|
|
847
822
|
inheritAttrs: !1,
|
|
848
823
|
__name: "Signaturepad",
|
|
849
824
|
props: {
|
|
850
825
|
question: {}
|
|
851
826
|
},
|
|
852
827
|
setup(r) {
|
|
853
|
-
const s = r, o =
|
|
828
|
+
const s = r, o = _(null);
|
|
854
829
|
return A(s, o), (e, n) => {
|
|
855
|
-
const t =
|
|
830
|
+
const t = p("survey-string"), a = p("sv-svg-icon"), y = p("sv-loading-indicator");
|
|
856
831
|
return i(), u("div", {
|
|
857
832
|
class: l(e.question.cssClasses.root),
|
|
858
833
|
ref_key: "root",
|
|
859
834
|
ref: o,
|
|
860
|
-
style:
|
|
835
|
+
style: S({
|
|
861
836
|
width: e.question.renderedCanvasWidth
|
|
862
837
|
})
|
|
863
838
|
}, [
|
|
@@ -875,10 +850,10 @@ const Ke = /* @__PURE__ */ h({
|
|
|
875
850
|
key: 0,
|
|
876
851
|
class: l(e.question.cssClasses.backgroundImage),
|
|
877
852
|
src: e.question.backgroundImage,
|
|
878
|
-
style:
|
|
853
|
+
style: S({
|
|
879
854
|
width: e.question.renderedCanvasWidth
|
|
880
855
|
})
|
|
881
|
-
}, null, 14,
|
|
856
|
+
}, null, 14, Ds)) : d("", !0),
|
|
882
857
|
c("canvas", {
|
|
883
858
|
tabindex: "0",
|
|
884
859
|
class: l(e.question.cssClasses.canvas),
|
|
@@ -909,7 +884,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
909
884
|
key: 1,
|
|
910
885
|
class: l(e.question.cssClasses.loadingIndicator)
|
|
911
886
|
}, [
|
|
912
|
-
b(
|
|
887
|
+
b(y)
|
|
913
888
|
], 2)) : d("", !0)
|
|
914
889
|
], 6);
|
|
915
890
|
};
|
|
@@ -921,7 +896,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
921
896
|
question: {}
|
|
922
897
|
},
|
|
923
898
|
setup(r) {
|
|
924
|
-
const s = r, o =
|
|
899
|
+
const s = r, o = _(null);
|
|
925
900
|
A(s, o);
|
|
926
901
|
const e = Q(() => s.question.locHtml);
|
|
927
902
|
return (n, t) => (i(), u("div", {
|
|
@@ -938,11 +913,11 @@ const Ke = /* @__PURE__ */ h({
|
|
|
938
913
|
question: {}
|
|
939
914
|
},
|
|
940
915
|
setup(r) {
|
|
941
|
-
const s = r, o =
|
|
916
|
+
const s = r, o = _(null);
|
|
942
917
|
A(s, o);
|
|
943
918
|
const e = Q(() => s.question.locImageLink);
|
|
944
919
|
return (n, t) => {
|
|
945
|
-
const a =
|
|
920
|
+
const a = p("sv-svg-icon");
|
|
946
921
|
return i(), u("div", {
|
|
947
922
|
class: l(n.question.cssClasses.root),
|
|
948
923
|
ref_key: "root",
|
|
@@ -955,15 +930,15 @@ const Ke = /* @__PURE__ */ h({
|
|
|
955
930
|
alt: n.question.altText || n.question.title,
|
|
956
931
|
width: n.question.renderedWidth,
|
|
957
932
|
height: n.question.renderedHeight,
|
|
958
|
-
style:
|
|
933
|
+
style: S({
|
|
959
934
|
objectFit: n.question.imageFit,
|
|
960
935
|
width: n.question.renderedStyleWidth,
|
|
961
936
|
height: n.question.renderedStyleHeight
|
|
962
937
|
}),
|
|
963
|
-
onLoad: t[0] || (t[0] = (
|
|
938
|
+
onLoad: t[0] || (t[0] = (y) => {
|
|
964
939
|
n.question.onLoadHandler();
|
|
965
940
|
}),
|
|
966
|
-
onError: t[1] || (t[1] = (
|
|
941
|
+
onError: t[1] || (t[1] = (y) => {
|
|
967
942
|
n.question.onErrorHandler();
|
|
968
943
|
})
|
|
969
944
|
}, null, 46, Ms)), [
|
|
@@ -976,15 +951,15 @@ const Ke = /* @__PURE__ */ h({
|
|
|
976
951
|
src: f(e),
|
|
977
952
|
width: n.question.renderedWidth,
|
|
978
953
|
height: n.question.renderedHeight,
|
|
979
|
-
style:
|
|
954
|
+
style: S({
|
|
980
955
|
objectFit: n.question.imageFit,
|
|
981
956
|
width: n.question.renderedStyleWidth,
|
|
982
957
|
height: n.question.renderedStyleHeight
|
|
983
958
|
}),
|
|
984
|
-
onLoadedmetadata: t[2] || (t[2] = (
|
|
959
|
+
onLoadedmetadata: t[2] || (t[2] = (y) => {
|
|
985
960
|
n.question.onLoadHandler();
|
|
986
961
|
}),
|
|
987
|
-
onError: t[3] || (t[3] = (
|
|
962
|
+
onError: t[3] || (t[3] = (y) => {
|
|
988
963
|
n.question.onErrorHandler();
|
|
989
964
|
})
|
|
990
965
|
}, null, 46, Hs)), [
|
|
@@ -996,7 +971,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
996
971
|
src: f(e),
|
|
997
972
|
width: n.question.renderedWidth,
|
|
998
973
|
height: n.question.renderedHeight,
|
|
999
|
-
style:
|
|
974
|
+
style: S({
|
|
1000
975
|
objectFit: n.question.imageFit,
|
|
1001
976
|
width: n.question.renderedStyleWidth,
|
|
1002
977
|
height: n.question.renderedStyleHeight
|
|
@@ -1021,12 +996,12 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1021
996
|
question: {}
|
|
1022
997
|
},
|
|
1023
998
|
setup(r) {
|
|
1024
|
-
const s = r, o =
|
|
999
|
+
const s = r, o = _(null);
|
|
1025
1000
|
return A(s, o), (e, n) => (i(), u("div", {
|
|
1026
1001
|
class: l(e.question.cssClasses.root),
|
|
1027
1002
|
ref_key: "root",
|
|
1028
1003
|
ref: o
|
|
1029
|
-
},
|
|
1004
|
+
}, R(e.question.formatedValue), 3));
|
|
1030
1005
|
}
|
|
1031
1006
|
}), Os = ["id", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "multiple", "title", "accept", "capture"], Fs = ["id", "multiple", "placeholder"], zs = /* @__PURE__ */ h({
|
|
1032
1007
|
inheritAttrs: !1,
|
|
@@ -1035,9 +1010,9 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1035
1010
|
question: {}
|
|
1036
1011
|
},
|
|
1037
1012
|
setup(r) {
|
|
1038
|
-
const s = r, o =
|
|
1013
|
+
const s = r, o = _(null);
|
|
1039
1014
|
return A(s, o), (e, n) => {
|
|
1040
|
-
const t =
|
|
1015
|
+
const t = p("survey-string"), a = p("sv-file-choose-btn"), y = p("sv-action-bar"), m = p("sv-file-clean-btn"), v = p("sv-loading-indicator"), g = p("sv-file-video"), I = p("sv-file-preview");
|
|
1041
1016
|
return i(), u("div", {
|
|
1042
1017
|
class: l(e.question.fileRootCss),
|
|
1043
1018
|
ref_key: "root",
|
|
@@ -1094,14 +1069,14 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1094
1069
|
key: 0,
|
|
1095
1070
|
data: { question: e.question }
|
|
1096
1071
|
}, null, 8, ["data"])) : d("", !0),
|
|
1097
|
-
e.question.actionsContainerVisible ? (i(), q(
|
|
1072
|
+
e.question.actionsContainerVisible ? (i(), q(y, {
|
|
1098
1073
|
key: 1,
|
|
1099
1074
|
model: e.question.actionsContainer
|
|
1100
1075
|
}, null, 8, ["model"])) : d("", !0),
|
|
1101
1076
|
e.question.isEmpty() ? (i(), u("span", {
|
|
1102
1077
|
key: 2,
|
|
1103
1078
|
class: l(e.question.cssClasses.noFileChosen)
|
|
1104
|
-
},
|
|
1079
|
+
}, R(e.question.noFileChosenCaption), 3)) : d("", !0)
|
|
1105
1080
|
], 2)
|
|
1106
1081
|
], 2)) : d("", !0),
|
|
1107
1082
|
e.question.showRemoveButton ? (i(), q(m, {
|
|
@@ -1113,7 +1088,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1113
1088
|
key: 2,
|
|
1114
1089
|
class: l(e.question.cssClasses.loadingIndicator)
|
|
1115
1090
|
}, [
|
|
1116
|
-
b(
|
|
1091
|
+
b(v)
|
|
1117
1092
|
], 2)) : d("", !0),
|
|
1118
1093
|
e.question.isPlayingVideo ? (i(), q(g, {
|
|
1119
1094
|
key: 3,
|
|
@@ -1128,7 +1103,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1128
1103
|
question: e.question,
|
|
1129
1104
|
css: e.question.showRemoveButtonBottom
|
|
1130
1105
|
}, null, 8, ["question", "css"])) : d("", !0),
|
|
1131
|
-
e.question.fileNavigatorVisible ? (i(), q(
|
|
1106
|
+
e.question.fileNavigatorVisible ? (i(), q(y, {
|
|
1132
1107
|
key: 6,
|
|
1133
1108
|
model: e.question.fileNavigator
|
|
1134
1109
|
}, null, 8, ["model"])) : d("", !0)
|
|
@@ -1136,17 +1111,17 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1136
1111
|
], 2);
|
|
1137
1112
|
};
|
|
1138
1113
|
}
|
|
1139
|
-
}), Us = { class: "sv-hidden" },
|
|
1114
|
+
}), Us = { class: "sv-hidden" }, me = "survey-imagepicker-item", Ks = /* @__PURE__ */ h({
|
|
1140
1115
|
inheritAttrs: !1,
|
|
1141
1116
|
__name: "Imagepicker",
|
|
1142
1117
|
props: {
|
|
1143
1118
|
question: {}
|
|
1144
1119
|
},
|
|
1145
1120
|
setup(r) {
|
|
1146
|
-
const s = r, o =
|
|
1121
|
+
const s = r, o = _(null);
|
|
1147
1122
|
A(s, o);
|
|
1148
|
-
const e = (t) => s.question.getItemValueWrapperComponentName(t) ||
|
|
1149
|
-
componentName:
|
|
1123
|
+
const e = (t) => s.question.getItemValueWrapperComponentName(t) || me, n = (t) => ({
|
|
1124
|
+
componentName: me,
|
|
1150
1125
|
componentData: {
|
|
1151
1126
|
question: s.question,
|
|
1152
1127
|
item: t,
|
|
@@ -1158,22 +1133,22 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1158
1133
|
ref_key: "root",
|
|
1159
1134
|
ref: o
|
|
1160
1135
|
}, [
|
|
1161
|
-
c("legend", Us,
|
|
1162
|
-
t.question.hasColumns ? d("", !0) : (i(!0), u($, { key: 0 }, B(t.question.visibleChoices, (
|
|
1163
|
-
key:
|
|
1164
|
-
}, n(
|
|
1165
|
-
t.question.hasColumns ? (i(!0), u($, { key: 1 }, B(t.question.columns, (
|
|
1136
|
+
c("legend", Us, R(t.question.locTitle.renderedHtml), 1),
|
|
1137
|
+
t.question.hasColumns ? d("", !0) : (i(!0), u($, { key: 0 }, B(t.question.visibleChoices, (y) => (i(), q(T(e(y)), W({
|
|
1138
|
+
key: y.value
|
|
1139
|
+
}, n(y)), null, 16))), 128)),
|
|
1140
|
+
t.question.hasColumns ? (i(!0), u($, { key: 1 }, B(t.question.columns, (y, m) => (i(), u("div", {
|
|
1166
1141
|
class: l(t.question.getColumnClass()),
|
|
1167
1142
|
key: m,
|
|
1168
1143
|
role: "presentation"
|
|
1169
1144
|
}, [
|
|
1170
|
-
(i(!0), u($, null, B(
|
|
1171
|
-
key:
|
|
1172
|
-
}, n(
|
|
1145
|
+
(i(!0), u($, null, B(y, (v) => (i(), q(T(e(v)), W({
|
|
1146
|
+
key: v.value
|
|
1147
|
+
}, n(v)), null, 16))), 128))
|
|
1173
1148
|
], 2))), 128)) : d("", !0)
|
|
1174
1149
|
], 2));
|
|
1175
1150
|
}
|
|
1176
|
-
}), js = ["name", "value", "id", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Qs = ["name", "value", "id", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Gs = ["src", "width", "height", "alt"],
|
|
1151
|
+
}), js = ["name", "value", "id", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Qs = ["name", "value", "id", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Gs = ["src", "width", "height", "alt"], Js = ["src", "width", "height"], Xs = /* @__PURE__ */ h({
|
|
1177
1152
|
inheritAttrs: !1,
|
|
1178
1153
|
__name: "ImagepickerItem",
|
|
1179
1154
|
props: {
|
|
@@ -1185,7 +1160,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1185
1160
|
L(() => s.item);
|
|
1186
1161
|
const e = Q(() => s.item.locImageLink);
|
|
1187
1162
|
return (n, t) => {
|
|
1188
|
-
const a =
|
|
1163
|
+
const a = p("sv-svg-icon"), y = p("survey-string");
|
|
1189
1164
|
return i(), u("div", {
|
|
1190
1165
|
class: l(o(n.item))
|
|
1191
1166
|
}, [
|
|
@@ -1206,7 +1181,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1206
1181
|
"aria-describedby": n.question.ariaDescribedBy,
|
|
1207
1182
|
class: l(n.question.cssClasses.itemControl)
|
|
1208
1183
|
}, null, 10, js)), [
|
|
1209
|
-
[
|
|
1184
|
+
[ne, n.question.value]
|
|
1210
1185
|
]) : P((i(), u("input", {
|
|
1211
1186
|
key: 1,
|
|
1212
1187
|
type: "radio",
|
|
@@ -1221,7 +1196,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1221
1196
|
"aria-describedby": n.question.ariaDescribedBy,
|
|
1222
1197
|
class: l(n.question.cssClasses.itemControl)
|
|
1223
1198
|
}, null, 10, Qs)), [
|
|
1224
|
-
[
|
|
1199
|
+
[ee, n.question.value]
|
|
1225
1200
|
]),
|
|
1226
1201
|
c("div", {
|
|
1227
1202
|
class: l(n.question.cssClasses.itemDecorator)
|
|
@@ -1246,7 +1221,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1246
1221
|
src: f(e),
|
|
1247
1222
|
width: n.question.renderedImageWidth,
|
|
1248
1223
|
height: n.question.renderedImageHeight,
|
|
1249
|
-
style:
|
|
1224
|
+
style: S({ objectFit: n.question.imageFit }),
|
|
1250
1225
|
alt: n.item.locText.renderedHtml,
|
|
1251
1226
|
onLoad: t[2] || (t[2] = (m) => {
|
|
1252
1227
|
n.question.onContentLoaded(n.item, m);
|
|
@@ -1262,18 +1237,18 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1262
1237
|
src: f(e),
|
|
1263
1238
|
width: n.question.renderedImageWidth,
|
|
1264
1239
|
height: n.question.renderedImageHeight,
|
|
1265
|
-
style:
|
|
1240
|
+
style: S({ objectFit: n.question.imageFit }),
|
|
1266
1241
|
onLoadedmetadata: t[4] || (t[4] = (m) => {
|
|
1267
1242
|
n.question.onContentLoaded(n.item, m);
|
|
1268
1243
|
}),
|
|
1269
1244
|
onError: t[5] || (t[5] = (m) => {
|
|
1270
1245
|
n.item.onErrorHandler();
|
|
1271
1246
|
})
|
|
1272
|
-
}, null, 46,
|
|
1247
|
+
}, null, 46, Js)) : d("", !0),
|
|
1273
1248
|
!f(e) || n.item.contentNotLoaded ? (i(), u("div", {
|
|
1274
1249
|
key: 3,
|
|
1275
1250
|
class: l(n.question.cssClasses.itemNoImage),
|
|
1276
|
-
style:
|
|
1251
|
+
style: S({
|
|
1277
1252
|
width: n.question.renderedImageWidth + "px",
|
|
1278
1253
|
height: n.question.renderedImageHeight + "px",
|
|
1279
1254
|
objectFit: n.question.imageFit
|
|
@@ -1290,7 +1265,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1290
1265
|
key: 0,
|
|
1291
1266
|
class: l(n.question.cssClasses.itemText)
|
|
1292
1267
|
}, [
|
|
1293
|
-
b(
|
|
1268
|
+
b(y, {
|
|
1294
1269
|
locString: n.item.locText
|
|
1295
1270
|
}, null, 8, ["locString"])
|
|
1296
1271
|
], 2)) : d("", !0)
|
|
@@ -1307,14 +1282,14 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1307
1282
|
css: {}
|
|
1308
1283
|
},
|
|
1309
1284
|
setup(r) {
|
|
1310
|
-
const s = r, o =
|
|
1285
|
+
const s = r, o = _(null);
|
|
1311
1286
|
A(s, o);
|
|
1312
1287
|
const e = (n) => {
|
|
1313
1288
|
const t = s.question;
|
|
1314
1289
|
t.value = n.target.value;
|
|
1315
1290
|
};
|
|
1316
1291
|
return (n, t) => {
|
|
1317
|
-
const a =
|
|
1292
|
+
const a = p("sv-character-counter");
|
|
1318
1293
|
return !n.question.isReadOnlyRenderDiv() && !n.question.getMaxLength() ? (i(), u("textarea", {
|
|
1319
1294
|
key: 0,
|
|
1320
1295
|
ref_key: "root",
|
|
@@ -1329,18 +1304,18 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1329
1304
|
placeholder: n.question.renderedPlaceholder,
|
|
1330
1305
|
class: l(n.question.className),
|
|
1331
1306
|
onChange: e,
|
|
1332
|
-
onInput: t[0] || (t[0] = (
|
|
1333
|
-
n.question.onInput(
|
|
1307
|
+
onInput: t[0] || (t[0] = (y) => {
|
|
1308
|
+
n.question.onInput(y);
|
|
1334
1309
|
}),
|
|
1335
|
-
onKeydown: t[1] || (t[1] = (
|
|
1336
|
-
n.question.onKeyDown(
|
|
1310
|
+
onKeydown: t[1] || (t[1] = (y) => {
|
|
1311
|
+
n.question.onKeyDown(y);
|
|
1337
1312
|
}),
|
|
1338
1313
|
"aria-required": n.question.a11y_input_ariaRequired,
|
|
1339
1314
|
"aria-label": n.question.a11y_input_ariaLabel,
|
|
1340
1315
|
"aria-labelledby": n.question.a11y_input_ariaLabelledBy,
|
|
1341
1316
|
"aria-invalid": n.question.a11y_input_ariaInvalid,
|
|
1342
1317
|
"aria-describedby": n.question.a11y_input_ariaDescribedBy,
|
|
1343
|
-
style:
|
|
1318
|
+
style: S({ resize: n.question.resizeStyle })
|
|
1344
1319
|
}, null, 46, Ys)) : !n.question.isReadOnlyRenderDiv() && n.question.getMaxLength() ? (i(), u("div", {
|
|
1345
1320
|
key: 1,
|
|
1346
1321
|
ref_key: "root",
|
|
@@ -1357,18 +1332,18 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1357
1332
|
placeholder: n.question.renderedPlaceholder,
|
|
1358
1333
|
class: l(n.question.className),
|
|
1359
1334
|
onChange: e,
|
|
1360
|
-
onInput: t[2] || (t[2] = (
|
|
1361
|
-
n.question.onInput(
|
|
1335
|
+
onInput: t[2] || (t[2] = (y) => {
|
|
1336
|
+
n.question.onInput(y);
|
|
1362
1337
|
}),
|
|
1363
|
-
onKeydown: t[3] || (t[3] = (
|
|
1364
|
-
n.question.onKeyDown(
|
|
1338
|
+
onKeydown: t[3] || (t[3] = (y) => {
|
|
1339
|
+
n.question.onKeyDown(y);
|
|
1365
1340
|
}),
|
|
1366
1341
|
"aria-required": n.question.a11y_input_ariaRequired,
|
|
1367
1342
|
"aria-label": n.question.a11y_input_ariaLabel,
|
|
1368
1343
|
"aria-labelledby": n.question.a11y_input_ariaLabelledBy,
|
|
1369
1344
|
"aria-invalid": n.question.a11y_input_ariaInvalid,
|
|
1370
1345
|
"aria-describedby": n.question.a11y_input_ariaDescribedBy,
|
|
1371
|
-
style:
|
|
1346
|
+
style: S({ resize: n.question.resizeStyle })
|
|
1372
1347
|
}, null, 46, Zs),
|
|
1373
1348
|
b(a, {
|
|
1374
1349
|
counter: n.question.characterCounter,
|
|
@@ -1378,7 +1353,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1378
1353
|
key: 2,
|
|
1379
1354
|
ref_key: "root",
|
|
1380
1355
|
ref: o
|
|
1381
|
-
},
|
|
1356
|
+
}, R(n.question.value), 513));
|
|
1382
1357
|
};
|
|
1383
1358
|
}
|
|
1384
1359
|
}), en = /* @__PURE__ */ h({
|
|
@@ -1388,9 +1363,9 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1388
1363
|
question: {}
|
|
1389
1364
|
},
|
|
1390
1365
|
setup(r) {
|
|
1391
|
-
const s = r, o =
|
|
1366
|
+
const s = r, o = _(null);
|
|
1392
1367
|
return A(s, o), (e, n) => {
|
|
1393
|
-
const t =
|
|
1368
|
+
const t = p("sv-dropdown"), a = p("survey-other-choice");
|
|
1394
1369
|
return i(), u("div", {
|
|
1395
1370
|
class: l(e.question.renderCssRoot),
|
|
1396
1371
|
ref_key: "root",
|
|
@@ -1408,7 +1383,7 @@ const Ke = /* @__PURE__ */ h({
|
|
|
1408
1383
|
key: 0,
|
|
1409
1384
|
value: ""
|
|
1410
1385
|
}, on = ["id"];
|
|
1411
|
-
|
|
1386
|
+
se.Instance.registerRenderer(
|
|
1412
1387
|
"dropdown",
|
|
1413
1388
|
"select",
|
|
1414
1389
|
"sv-dropdown-select"
|
|
@@ -1420,7 +1395,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1420
1395
|
question: {}
|
|
1421
1396
|
},
|
|
1422
1397
|
setup(r) {
|
|
1423
|
-
const s = r, o =
|
|
1398
|
+
const s = r, o = _(null);
|
|
1424
1399
|
A(s, o);
|
|
1425
1400
|
const e = (a) => {
|
|
1426
1401
|
s.question.onClick(a);
|
|
@@ -1432,12 +1407,12 @@ const tn = /* @__PURE__ */ h({
|
|
|
1432
1407
|
return (a = s.question.value) != null ? a : "";
|
|
1433
1408
|
},
|
|
1434
1409
|
set(a) {
|
|
1435
|
-
const
|
|
1436
|
-
a === "" ?
|
|
1410
|
+
const y = s.question;
|
|
1411
|
+
a === "" ? y.renderedValue = void 0 : y.renderedValue = a;
|
|
1437
1412
|
}
|
|
1438
1413
|
});
|
|
1439
|
-
return (a,
|
|
1440
|
-
const m =
|
|
1414
|
+
return (a, y) => {
|
|
1415
|
+
const m = p("sv-dropdown-option-item"), v = p("sv-svg-icon"), g = p("survey-other-choice");
|
|
1441
1416
|
return i(), u("div", {
|
|
1442
1417
|
class: l(a.question.renderCssRoot),
|
|
1443
1418
|
ref_key: "root",
|
|
@@ -1451,10 +1426,10 @@ const tn = /* @__PURE__ */ h({
|
|
|
1451
1426
|
disabled: "",
|
|
1452
1427
|
id: a.question.inputId,
|
|
1453
1428
|
class: l(a.question.getControlClass())
|
|
1454
|
-
},
|
|
1429
|
+
}, R(a.question.readOnlyText), 11, on)) : P((i(), u("select", {
|
|
1455
1430
|
key: 0,
|
|
1456
1431
|
id: a.question.inputId,
|
|
1457
|
-
"onUpdate:modelValue":
|
|
1432
|
+
"onUpdate:modelValue": y[0] || (y[0] = (I) => t.value = I),
|
|
1458
1433
|
onClick: e,
|
|
1459
1434
|
onKeyup: n,
|
|
1460
1435
|
autocomplete: a.question.autocomplete,
|
|
@@ -1465,19 +1440,19 @@ const tn = /* @__PURE__ */ h({
|
|
|
1465
1440
|
"aria-describedby": a.question.ariaDescribedBy,
|
|
1466
1441
|
required: a.question.isRequired
|
|
1467
1442
|
}, [
|
|
1468
|
-
a.question.allowClear ? (i(), u("option", nn,
|
|
1443
|
+
a.question.allowClear ? (i(), u("option", nn, R(a.question.placeholder), 1)) : d("", !0),
|
|
1469
1444
|
(i(!0), u($, null, B(a.question.visibleChoices, (I) => (i(), q(m, {
|
|
1470
1445
|
item: I,
|
|
1471
1446
|
key: I.id
|
|
1472
1447
|
}, null, 8, ["item"]))), 128))
|
|
1473
1448
|
], 42, sn)), [
|
|
1474
|
-
[
|
|
1449
|
+
[ke, t.value]
|
|
1475
1450
|
]),
|
|
1476
1451
|
a.question.cssClasses.chevronButtonIconId ? (i(), u("div", {
|
|
1477
1452
|
key: 2,
|
|
1478
1453
|
class: l(a.question.cssClasses.chevronButton)
|
|
1479
1454
|
}, [
|
|
1480
|
-
b(
|
|
1455
|
+
b(v, {
|
|
1481
1456
|
class: l(a.question.cssClasses.chevronButtonSvg),
|
|
1482
1457
|
iconName: a.question.cssClasses.chevronButtonIconId,
|
|
1483
1458
|
size: "auto"
|
|
@@ -1501,7 +1476,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1501
1476
|
return L(() => s.item), (e, n) => (i(), u("option", {
|
|
1502
1477
|
value: e.item.value,
|
|
1503
1478
|
disabled: !e.item.isEnabled
|
|
1504
|
-
},
|
|
1479
|
+
}, R(f(o)), 9, rn));
|
|
1505
1480
|
}
|
|
1506
1481
|
}), an = ["id", "disabled", "tabindex", "role", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], un = { style: { visibility: "hidden" } }, dn = ["disabled", "inputmode", "role", "id", "tabindex", "readonly", "aria-expanded", "aria-controls", "aria-label", "aria-labelledby", "aria-activedescendant", "placeholder"], mn = ["id"], cn = /* @__PURE__ */ h({
|
|
1507
1482
|
__name: "Dropdown",
|
|
@@ -1509,39 +1484,39 @@ const tn = /* @__PURE__ */ h({
|
|
|
1509
1484
|
question: {}
|
|
1510
1485
|
},
|
|
1511
1486
|
setup(r) {
|
|
1512
|
-
const s = r, o =
|
|
1487
|
+
const s = r, o = _(null), e = w(() => {
|
|
1513
1488
|
const k = s.question;
|
|
1514
|
-
return k.dropdownListModel || (k.dropdownListModel = new
|
|
1489
|
+
return k.dropdownListModel || (k.dropdownListModel = new _e(k)), s.question.dropdownListModel;
|
|
1515
1490
|
}), n = (k) => {
|
|
1516
|
-
var
|
|
1517
|
-
(
|
|
1491
|
+
var D;
|
|
1492
|
+
(D = e.value) == null || D.onClick(k);
|
|
1518
1493
|
}, t = (k) => {
|
|
1519
|
-
var
|
|
1520
|
-
(
|
|
1494
|
+
var D;
|
|
1495
|
+
(D = e.value) == null || D.chevronPointerDown(k);
|
|
1521
1496
|
}, a = (k) => {
|
|
1522
|
-
var
|
|
1523
|
-
(
|
|
1524
|
-
},
|
|
1525
|
-
var
|
|
1526
|
-
(
|
|
1497
|
+
var D;
|
|
1498
|
+
(D = e.value) == null || D.onClear(k);
|
|
1499
|
+
}, y = (k) => {
|
|
1500
|
+
var D;
|
|
1501
|
+
(D = e.value) == null || D.keyHandler(k);
|
|
1527
1502
|
}, m = () => {
|
|
1528
1503
|
if (o.value) {
|
|
1529
|
-
const k = o.value,
|
|
1530
|
-
De.isTwoValueEquals(
|
|
1504
|
+
const k = o.value, D = e.value.inputStringRendered;
|
|
1505
|
+
De.isTwoValueEquals(D, k.value, !1, !0, !1) || (k.value = e.value.inputStringRendered);
|
|
1531
1506
|
}
|
|
1532
|
-
},
|
|
1533
|
-
var
|
|
1534
|
-
(
|
|
1507
|
+
}, v = (k) => {
|
|
1508
|
+
var D;
|
|
1509
|
+
(D = e.value) == null || D.onBlur(k), m();
|
|
1535
1510
|
}, g = (k) => {
|
|
1536
|
-
var
|
|
1537
|
-
(
|
|
1511
|
+
var D;
|
|
1512
|
+
(D = e.value) == null || D.onFocus(k);
|
|
1538
1513
|
}, I = (k) => {
|
|
1539
1514
|
e.value.inputStringRendered = k.target.value;
|
|
1540
1515
|
}, C = w(
|
|
1541
1516
|
() => s.question.showSelectedItemLocText
|
|
1542
1517
|
), N = w(() => s.question.selectedItemLocText);
|
|
1543
|
-
return L(() => e.value),
|
|
1544
|
-
const E =
|
|
1518
|
+
return L(() => e.value), x(m), H(m), (k, D) => {
|
|
1519
|
+
const E = p("survey-string"), O = p("sv-svg-icon"), U = p("sv-popup");
|
|
1545
1520
|
return i(), u("div", {
|
|
1546
1521
|
class: l(k.question.cssClasses.selectWrapper),
|
|
1547
1522
|
onClick: n
|
|
@@ -1551,8 +1526,8 @@ const tn = /* @__PURE__ */ h({
|
|
|
1551
1526
|
id: k.question.inputId,
|
|
1552
1527
|
disabled: k.question.isInputReadOnly ? !0 : null,
|
|
1553
1528
|
tabindex: e.value.noTabIndex ? void 0 : 0,
|
|
1554
|
-
onKeydown:
|
|
1555
|
-
onBlur:
|
|
1529
|
+
onKeydown: y,
|
|
1530
|
+
onBlur: v,
|
|
1556
1531
|
class: l(k.question.getControlClass()),
|
|
1557
1532
|
role: k.question.ariaRole,
|
|
1558
1533
|
"aria-required": k.question.ariaRequired,
|
|
@@ -1568,7 +1543,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1568
1543
|
key: 0,
|
|
1569
1544
|
class: l(k.question.cssClasses.hintPrefix)
|
|
1570
1545
|
}, [
|
|
1571
|
-
c("span", null,
|
|
1546
|
+
c("span", null, R(e.value.hintStringPrefix), 1)
|
|
1572
1547
|
], 2)) : d("", !0),
|
|
1573
1548
|
c("div", {
|
|
1574
1549
|
class: l(k.question.cssClasses.controlValue)
|
|
@@ -1581,8 +1556,8 @@ const tn = /* @__PURE__ */ h({
|
|
|
1581
1556
|
key: 1,
|
|
1582
1557
|
class: l(k.question.cssClasses.hintSuffix)
|
|
1583
1558
|
}, [
|
|
1584
|
-
c("span", un,
|
|
1585
|
-
c("span", null,
|
|
1559
|
+
c("span", un, R(e.value.inputStringRendered), 1),
|
|
1560
|
+
c("span", null, R(e.value.hintStringSuffix), 1)
|
|
1586
1561
|
], 2)) : d("", !0),
|
|
1587
1562
|
k.question.showInputFieldComponent ? (i(), q(T(k.question.inputFieldComponentName), {
|
|
1588
1563
|
key: 2,
|
|
@@ -1608,7 +1583,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1608
1583
|
"aria-activedescendant": e.value.ariaActivedescendant,
|
|
1609
1584
|
placeholder: e.value.placeholderRendered,
|
|
1610
1585
|
onInput: I,
|
|
1611
|
-
onBlur:
|
|
1586
|
+
onBlur: v,
|
|
1612
1587
|
onFocus: g
|
|
1613
1588
|
}, null, 42, dn)
|
|
1614
1589
|
], 2),
|
|
@@ -1638,7 +1613,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1638
1613
|
key: 0,
|
|
1639
1614
|
locString: k.question.selectedItemLocText
|
|
1640
1615
|
}, null, 8, ["locString"])) : d("", !0),
|
|
1641
|
-
c("div", null,
|
|
1616
|
+
c("div", null, R(k.question.readOnlyText), 1)
|
|
1642
1617
|
], 10, mn)) : (i(), q(U, {
|
|
1643
1618
|
key: 1,
|
|
1644
1619
|
model: k.question.dropdownListModel.popupModel
|
|
@@ -1665,9 +1640,9 @@ const tn = /* @__PURE__ */ h({
|
|
|
1665
1640
|
question: {}
|
|
1666
1641
|
},
|
|
1667
1642
|
setup(r) {
|
|
1668
|
-
const s = r, o =
|
|
1643
|
+
const s = r, o = _(null);
|
|
1669
1644
|
return A(s, o), (e, n) => {
|
|
1670
|
-
const t =
|
|
1645
|
+
const t = p("sv-tagbox"), a = p("survey-other-choice");
|
|
1671
1646
|
return i(), u("div", {
|
|
1672
1647
|
class: l(e.question.renderCssRoot),
|
|
1673
1648
|
ref_key: "root",
|
|
@@ -1688,97 +1663,97 @@ const tn = /* @__PURE__ */ h({
|
|
|
1688
1663
|
},
|
|
1689
1664
|
setup(r) {
|
|
1690
1665
|
const s = r, o = w(() => {
|
|
1691
|
-
const
|
|
1692
|
-
return
|
|
1693
|
-
}), e = (
|
|
1666
|
+
const v = s.question;
|
|
1667
|
+
return v.dropdownListModel || (v.dropdownListModel = new Be(v)), s.question.dropdownListModel;
|
|
1668
|
+
}), e = (v) => {
|
|
1694
1669
|
var g;
|
|
1695
|
-
(g = o.value) == null || g.onClick(
|
|
1696
|
-
}, n = (
|
|
1670
|
+
(g = o.value) == null || g.onClick(v);
|
|
1671
|
+
}, n = (v) => {
|
|
1697
1672
|
var g;
|
|
1698
|
-
(g = o.value) == null || g.chevronPointerDown(
|
|
1699
|
-
}, t = (
|
|
1673
|
+
(g = o.value) == null || g.chevronPointerDown(v);
|
|
1674
|
+
}, t = (v) => {
|
|
1700
1675
|
var g;
|
|
1701
|
-
(g = o.value) == null || g.onClear(
|
|
1702
|
-
}, a = (
|
|
1676
|
+
(g = o.value) == null || g.onClear(v);
|
|
1677
|
+
}, a = (v) => {
|
|
1703
1678
|
var g;
|
|
1704
|
-
(g = o.value) == null || g.keyHandler(
|
|
1705
|
-
},
|
|
1679
|
+
(g = o.value) == null || g.keyHandler(v);
|
|
1680
|
+
}, y = (v) => {
|
|
1706
1681
|
var g;
|
|
1707
|
-
(g = o.value) == null || g.onBlur(
|
|
1682
|
+
(g = o.value) == null || g.onBlur(v);
|
|
1708
1683
|
}, m = w(() => s.question.selectedChoices);
|
|
1709
|
-
return L(() => o.value), (
|
|
1710
|
-
const I =
|
|
1684
|
+
return L(() => o.value), (v, g) => {
|
|
1685
|
+
const I = p("sv-tagbox-item"), C = p("sv-tagbox-filter"), N = p("sv-svg-icon"), k = p("sv-popup");
|
|
1711
1686
|
return i(), u("div", {
|
|
1712
|
-
class: l(
|
|
1687
|
+
class: l(v.question.cssClasses.selectWrapper),
|
|
1713
1688
|
onClick: e
|
|
1714
1689
|
}, [
|
|
1715
|
-
|
|
1690
|
+
v.question.isReadOnly ? d("", !0) : (i(), u("div", {
|
|
1716
1691
|
key: 0,
|
|
1717
|
-
id:
|
|
1692
|
+
id: v.question.inputId,
|
|
1718
1693
|
tabindex: o.value.noTabIndex ? void 0 : 0,
|
|
1719
|
-
disabled:
|
|
1694
|
+
disabled: v.question.isInputReadOnly ? !0 : null,
|
|
1720
1695
|
onKeydown: a,
|
|
1721
|
-
onBlur:
|
|
1722
|
-
class: l(
|
|
1723
|
-
role:
|
|
1724
|
-
"aria-required":
|
|
1725
|
-
"aria-label":
|
|
1726
|
-
"aria-invalid":
|
|
1727
|
-
"aria-describedby":
|
|
1728
|
-
"aria-expanded":
|
|
1696
|
+
onBlur: y,
|
|
1697
|
+
class: l(v.question.getControlClass()),
|
|
1698
|
+
role: v.question.ariaRole,
|
|
1699
|
+
"aria-required": v.question.ariaRequired,
|
|
1700
|
+
"aria-label": v.question.ariaLabel,
|
|
1701
|
+
"aria-invalid": v.question.ariaInvalid,
|
|
1702
|
+
"aria-describedby": v.question.ariaDescribedBy,
|
|
1703
|
+
"aria-expanded": v.question.ariaExpanded === null ? void 0 : v.question.ariaExpanded === "true",
|
|
1729
1704
|
"aria-controls": o.value.listElementId,
|
|
1730
1705
|
"aria-activedescendant": o.value.ariaActivedescendant,
|
|
1731
|
-
required:
|
|
1706
|
+
required: v.question.isRequired ? !0 : null
|
|
1732
1707
|
}, [
|
|
1733
1708
|
c("div", {
|
|
1734
|
-
class: l(
|
|
1709
|
+
class: l(v.question.cssClasses.controlValue)
|
|
1735
1710
|
}, [
|
|
1736
|
-
(i(!0), u($, null, B(m.value, (
|
|
1737
|
-
item:
|
|
1738
|
-
question:
|
|
1711
|
+
(i(!0), u($, null, B(m.value, (D, E) => (i(), q(I, {
|
|
1712
|
+
item: D,
|
|
1713
|
+
question: v.question,
|
|
1739
1714
|
key: "item" + E
|
|
1740
1715
|
}, null, 8, ["item", "question"]))), 128)),
|
|
1741
1716
|
b(C, {
|
|
1742
1717
|
model: o.value,
|
|
1743
|
-
question:
|
|
1718
|
+
question: v.question
|
|
1744
1719
|
}, null, 8, ["model", "question"])
|
|
1745
1720
|
], 2),
|
|
1746
|
-
|
|
1721
|
+
v.question.allowClear && v.question.cssClasses.cleanButtonIconId ? P((i(), u("div", {
|
|
1747
1722
|
key: 0,
|
|
1748
|
-
class: l(
|
|
1723
|
+
class: l(v.question.cssClasses.cleanButton),
|
|
1749
1724
|
onClick: t,
|
|
1750
1725
|
"aria-hidden": "true"
|
|
1751
1726
|
}, [
|
|
1752
1727
|
b(N, {
|
|
1753
|
-
class: l(
|
|
1754
|
-
iconName:
|
|
1755
|
-
title:
|
|
1728
|
+
class: l(v.question.cssClasses.cleanButtonSvg),
|
|
1729
|
+
iconName: v.question.cssClasses.cleanButtonIconId,
|
|
1730
|
+
title: v.question.clearCaption,
|
|
1756
1731
|
size: "auto"
|
|
1757
1732
|
}, null, 8, ["class", "iconName", "title"])
|
|
1758
1733
|
], 2)), [
|
|
1759
|
-
[M,
|
|
1734
|
+
[M, v.question.showClearButton]
|
|
1760
1735
|
]) : d("", !0)
|
|
1761
1736
|
], 42, vn)),
|
|
1762
|
-
|
|
1737
|
+
v.question.isReadOnly ? (i(), u("div", {
|
|
1763
1738
|
key: 2,
|
|
1764
1739
|
disabled: "",
|
|
1765
|
-
id:
|
|
1766
|
-
class: l(
|
|
1740
|
+
id: v.question.inputId,
|
|
1741
|
+
class: l(v.question.getControlClass())
|
|
1767
1742
|
}, [
|
|
1768
|
-
c("div", null,
|
|
1743
|
+
c("div", null, R(v.question.readOnlyText), 1)
|
|
1769
1744
|
], 10, yn)) : (i(), q(k, {
|
|
1770
1745
|
key: 1,
|
|
1771
1746
|
model: o.value.popupModel
|
|
1772
1747
|
}, null, 8, ["model"])),
|
|
1773
|
-
|
|
1748
|
+
v.question.cssClasses.chevronButtonIconId ? (i(), u("div", {
|
|
1774
1749
|
key: 3,
|
|
1775
|
-
class: l(
|
|
1750
|
+
class: l(v.question.cssClasses.chevronButton),
|
|
1776
1751
|
onPointerdown: n,
|
|
1777
1752
|
"aria-hidden": "true"
|
|
1778
1753
|
}, [
|
|
1779
1754
|
b(N, {
|
|
1780
|
-
class: l(
|
|
1781
|
-
iconName:
|
|
1755
|
+
class: l(v.question.cssClasses.chevronButtonSvg),
|
|
1756
|
+
iconName: v.question.cssClasses.chevronButtonIconId,
|
|
1782
1757
|
size: "auto"
|
|
1783
1758
|
}, null, 8, ["class", "iconName"])
|
|
1784
1759
|
], 34)) : d("", !0)
|
|
@@ -1793,8 +1768,8 @@ const tn = /* @__PURE__ */ h({
|
|
|
1793
1768
|
},
|
|
1794
1769
|
setup(r) {
|
|
1795
1770
|
const s = r, o = (a) => {
|
|
1796
|
-
const
|
|
1797
|
-
|
|
1771
|
+
const y = s.model;
|
|
1772
|
+
y.inputStringRendered = a.target.value;
|
|
1798
1773
|
}, e = (a) => {
|
|
1799
1774
|
s.model.inputKeyHandler(a);
|
|
1800
1775
|
}, n = (a) => {
|
|
@@ -1802,8 +1777,8 @@ const tn = /* @__PURE__ */ h({
|
|
|
1802
1777
|
}, t = (a) => {
|
|
1803
1778
|
s.model.onFocus(a);
|
|
1804
1779
|
};
|
|
1805
|
-
return L(() => s.model), (a,
|
|
1806
|
-
const m =
|
|
1780
|
+
return L(() => s.model), (a, y) => {
|
|
1781
|
+
const m = p("survey-string");
|
|
1807
1782
|
return i(), u("div", {
|
|
1808
1783
|
class: l(a.question.cssClasses.hint)
|
|
1809
1784
|
}, [
|
|
@@ -1811,7 +1786,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1811
1786
|
key: 0,
|
|
1812
1787
|
class: l(a.question.cssClasses.hintPrefix)
|
|
1813
1788
|
}, [
|
|
1814
|
-
c("span", null,
|
|
1789
|
+
c("span", null, R(a.model.hintStringPrefix), 1)
|
|
1815
1790
|
], 2)) : d("", !0),
|
|
1816
1791
|
c("div", {
|
|
1817
1792
|
class: l(a.question.cssClasses.hintSuffixWrapper)
|
|
@@ -1824,13 +1799,13 @@ const tn = /* @__PURE__ */ h({
|
|
|
1824
1799
|
key: 1,
|
|
1825
1800
|
class: l(a.question.cssClasses.hintSuffix)
|
|
1826
1801
|
}, [
|
|
1827
|
-
c("span", gn,
|
|
1828
|
-
c("span", null,
|
|
1802
|
+
c("span", gn, R(a.model.inputStringRendered), 1),
|
|
1803
|
+
c("span", null, R(a.model.hintStringSuffix), 1)
|
|
1829
1804
|
], 2)) : d("", !0),
|
|
1830
1805
|
P(c("input", {
|
|
1831
1806
|
type: "text",
|
|
1832
1807
|
autocomplete: "off",
|
|
1833
|
-
"onUpdate:modelValue":
|
|
1808
|
+
"onUpdate:modelValue": y[0] || (y[0] = (v) => a.model.inputStringRendered = v),
|
|
1834
1809
|
class: l(a.question.cssClasses.filterStringInput),
|
|
1835
1810
|
placeholder: a.model.filterStringPlaceholder,
|
|
1836
1811
|
disabled: a.question.isInputReadOnly,
|
|
@@ -1849,7 +1824,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1849
1824
|
onBlur: n,
|
|
1850
1825
|
onFocus: t
|
|
1851
1826
|
}, null, 42, hn), [
|
|
1852
|
-
[
|
|
1827
|
+
[fe, a.model.inputStringRendered]
|
|
1853
1828
|
])
|
|
1854
1829
|
], 2)
|
|
1855
1830
|
], 2);
|
|
@@ -1866,7 +1841,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1866
1841
|
s.question.dropdownListModel.deselectItem(s.item.value), e.stopPropagation();
|
|
1867
1842
|
};
|
|
1868
1843
|
return L(() => s.item), (e, n) => {
|
|
1869
|
-
const t =
|
|
1844
|
+
const t = p("survey-string"), a = p("sv-svg-icon");
|
|
1870
1845
|
return i(), u("div", {
|
|
1871
1846
|
class: "sv-tagbox__item",
|
|
1872
1847
|
key: e.item.key
|
|
@@ -1896,9 +1871,9 @@ const tn = /* @__PURE__ */ h({
|
|
|
1896
1871
|
question: {}
|
|
1897
1872
|
},
|
|
1898
1873
|
setup(r) {
|
|
1899
|
-
const s = r, o =
|
|
1874
|
+
const s = r, o = _(null);
|
|
1900
1875
|
A(s, o);
|
|
1901
|
-
const e = (t) => s.question.getItemValueWrapperComponentName(t) || "survey-ranking-item", n = (t, a,
|
|
1876
|
+
const e = (t) => s.question.getItemValueWrapperComponentName(t) || "survey-ranking-item", n = (t, a, y) => ({
|
|
1902
1877
|
componentName: s.question.getPropertyByName("itemComponent").isDefaultValue(
|
|
1903
1878
|
s.question.itemComponent
|
|
1904
1879
|
) ? "survey-ranking-item" : s.question.itemComponent,
|
|
@@ -1906,33 +1881,33 @@ const tn = /* @__PURE__ */ h({
|
|
|
1906
1881
|
question: s.question,
|
|
1907
1882
|
item: t,
|
|
1908
1883
|
index: a,
|
|
1909
|
-
unrankedItem:
|
|
1884
|
+
unrankedItem: y,
|
|
1910
1885
|
data: s.question.getItemValueWrapperComponentData(t)
|
|
1911
1886
|
}
|
|
1912
1887
|
});
|
|
1913
1888
|
return (t, a) => {
|
|
1914
|
-
const
|
|
1889
|
+
const y = p("survey-string");
|
|
1915
1890
|
return i(), u("div", {
|
|
1916
1891
|
class: l(t.question.rootClass),
|
|
1917
1892
|
ref_key: "root",
|
|
1918
1893
|
ref: o
|
|
1919
1894
|
}, [
|
|
1920
|
-
t.question.selectToRankEnabled ? d("", !0) : (i(!0), u($, { key: 0 }, B(t.question.rankingChoices, (m,
|
|
1921
|
-
key: m.value + "-" +
|
|
1922
|
-
}, n(m,
|
|
1895
|
+
t.question.selectToRankEnabled ? d("", !0) : (i(!0), u($, { key: 0 }, B(t.question.rankingChoices, (m, v) => (i(), q(T(e(m)), W({
|
|
1896
|
+
key: m.value + "-" + v + "-item"
|
|
1897
|
+
}, n(m, v)), null, 16))), 128)),
|
|
1923
1898
|
t.question.selectToRankEnabled ? (i(), u("div", {
|
|
1924
1899
|
key: 1,
|
|
1925
1900
|
class: l(t.question.getContainerClasses("from")),
|
|
1926
1901
|
"data-ranking": "from-container"
|
|
1927
1902
|
}, [
|
|
1928
|
-
(i(!0), u($, null, B(t.question.unRankingChoices, (m,
|
|
1929
|
-
key: m.value + "-" +
|
|
1930
|
-
}, n(m,
|
|
1903
|
+
(i(!0), u($, null, B(t.question.unRankingChoices, (m, v) => (i(), q(T(e(m)), W({
|
|
1904
|
+
key: m.value + "-" + v + "-item"
|
|
1905
|
+
}, n(m, v, !0)), null, 16))), 128)),
|
|
1931
1906
|
t.question.unRankingChoices.length === 0 ? (i(), u("div", {
|
|
1932
1907
|
key: 0,
|
|
1933
1908
|
class: l(t.question.cssClasses.containerPlaceholder)
|
|
1934
1909
|
}, [
|
|
1935
|
-
b(
|
|
1910
|
+
b(y, {
|
|
1936
1911
|
locString: t.question.locSelectToRankEmptyRankedAreaText
|
|
1937
1912
|
}, null, 8, ["locString"])
|
|
1938
1913
|
], 2)) : d("", !0)
|
|
@@ -1946,14 +1921,14 @@ const tn = /* @__PURE__ */ h({
|
|
|
1946
1921
|
class: l(t.question.getContainerClasses("to")),
|
|
1947
1922
|
"data-ranking": "to-container"
|
|
1948
1923
|
}, [
|
|
1949
|
-
(i(!0), u($, null, B(t.question.rankingChoices, (m,
|
|
1950
|
-
key: m.value + "-" +
|
|
1951
|
-
}, n(m,
|
|
1924
|
+
(i(!0), u($, null, B(t.question.rankingChoices, (m, v) => (i(), q(T(e(m)), W({
|
|
1925
|
+
key: m.value + "-" + v + "-item"
|
|
1926
|
+
}, n(m, v)), null, 16))), 128)),
|
|
1952
1927
|
t.question.rankingChoices.length === 0 ? (i(), u("div", {
|
|
1953
1928
|
key: 0,
|
|
1954
1929
|
class: l(t.question.cssClasses.containerPlaceholder)
|
|
1955
1930
|
}, [
|
|
1956
|
-
b(
|
|
1931
|
+
b(y, {
|
|
1957
1932
|
locString: t.question.locSelectToRankEmptyUnrankedAreaText
|
|
1958
1933
|
}, null, 8, ["locString"])
|
|
1959
1934
|
], 2)) : d("", !0)
|
|
@@ -1976,7 +1951,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
1976
1951
|
setup(r) {
|
|
1977
1952
|
const s = r, o = w(() => s.question.getNumberByIndex(s.index));
|
|
1978
1953
|
return L(() => s.item), (e, n) => {
|
|
1979
|
-
const t =
|
|
1954
|
+
const t = p("survey-string");
|
|
1980
1955
|
return i(), u("div", {
|
|
1981
1956
|
tabindex: e.question.getItemTabIndex(e.item),
|
|
1982
1957
|
"data-sv-drop-target-ranking-item": e.index,
|
|
@@ -2021,7 +1996,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
2021
1996
|
!e.unrankedItem && o.value ? (i(), u("div", {
|
|
2022
1997
|
key: 0,
|
|
2023
1998
|
class: l(e.question.getItemIndexClasses(e.item))
|
|
2024
|
-
},
|
|
1999
|
+
}, R(o.value), 3)) : (i(), u("div", {
|
|
2025
2000
|
key: 1,
|
|
2026
2001
|
class: l(e.question.getItemIndexClasses(e.item))
|
|
2027
2002
|
}, [
|
|
@@ -2043,7 +2018,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
2043
2018
|
], 42, In);
|
|
2044
2019
|
};
|
|
2045
2020
|
}
|
|
2046
|
-
}),
|
|
2021
|
+
}), _n = { role: "radiogroup" }, Dn = /* @__PURE__ */ c("legend", {
|
|
2047
2022
|
role: "presentation",
|
|
2048
2023
|
class: "sv-hidden"
|
|
2049
2024
|
}, null, -1), Bn = /* @__PURE__ */ h({
|
|
@@ -2053,18 +2028,18 @@ const tn = /* @__PURE__ */ h({
|
|
|
2053
2028
|
question: {}
|
|
2054
2029
|
},
|
|
2055
2030
|
setup(r) {
|
|
2056
|
-
const s = r, o =
|
|
2031
|
+
const s = r, o = _(null);
|
|
2057
2032
|
A(s, o);
|
|
2058
2033
|
const e = (n) => s.question.getInputId(n);
|
|
2059
2034
|
return (n, t) => {
|
|
2060
|
-
const a =
|
|
2035
|
+
const a = p("survey-string");
|
|
2061
2036
|
return i(), u("div", {
|
|
2062
2037
|
class: l(n.question.ratingRootCss),
|
|
2063
2038
|
ref_key: "root",
|
|
2064
2039
|
ref: o
|
|
2065
2040
|
}, [
|
|
2066
|
-
c("fieldset",
|
|
2067
|
-
|
|
2041
|
+
c("fieldset", _n, [
|
|
2042
|
+
Dn,
|
|
2068
2043
|
n.question.hasMinLabel ? (i(), u("span", {
|
|
2069
2044
|
key: 0,
|
|
2070
2045
|
class: l(n.question.cssClasses.minText)
|
|
@@ -2073,9 +2048,9 @@ const tn = /* @__PURE__ */ h({
|
|
|
2073
2048
|
locString: n.question.locMinRateDescription
|
|
2074
2049
|
}, null, 8, ["locString"])
|
|
2075
2050
|
], 2)) : d("", !0),
|
|
2076
|
-
(i(!0), u($, null, B(n.question.renderedRateItems, (
|
|
2051
|
+
(i(!0), u($, null, B(n.question.renderedRateItems, (y, m) => (i(), q(T(n.question.itemComponent), {
|
|
2077
2052
|
key: e(m),
|
|
2078
|
-
item:
|
|
2053
|
+
item: y,
|
|
2079
2054
|
index: m,
|
|
2080
2055
|
question: n.question
|
|
2081
2056
|
}, null, 8, ["item", "index", "question"]))), 128)),
|
|
@@ -2101,7 +2076,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
2101
2076
|
setup(r) {
|
|
2102
2077
|
const s = r;
|
|
2103
2078
|
return L(() => s.item), (o, e) => {
|
|
2104
|
-
const n =
|
|
2079
|
+
const n = p("survey-string");
|
|
2105
2080
|
return i(), u("label", {
|
|
2106
2081
|
key: o.item.value,
|
|
2107
2082
|
onMousedown: e[1] || (e[1] = (t) => o.question.onMouseDown()),
|
|
@@ -2140,11 +2115,11 @@ const tn = /* @__PURE__ */ h({
|
|
|
2140
2115
|
setup(r) {
|
|
2141
2116
|
const s = r;
|
|
2142
2117
|
return L(() => s.item), (o, e) => {
|
|
2143
|
-
const n =
|
|
2118
|
+
const n = p("sv-svg-icon");
|
|
2144
2119
|
return i(), u("label", {
|
|
2145
2120
|
key: o.item.value,
|
|
2146
2121
|
onMousedown: e[1] || (e[1] = (t) => o.question.onMouseDown()),
|
|
2147
|
-
style:
|
|
2122
|
+
style: S(o.question.getItemStyle(o.item.itemValue, o.item.highlight)),
|
|
2148
2123
|
class: l(o.question.getItemClass(o.item.itemValue, o.item.highlight)),
|
|
2149
2124
|
onMouseover: e[2] || (e[2] = (t) => o.question.onItemMouseIn(o.item)),
|
|
2150
2125
|
onMouseleave: e[3] || (e[3] = (t) => o.question.onItemMouseOut(o.item))
|
|
@@ -2180,7 +2155,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
2180
2155
|
setup(r) {
|
|
2181
2156
|
const s = r;
|
|
2182
2157
|
return L(() => s.item), (o, e) => {
|
|
2183
|
-
const n =
|
|
2158
|
+
const n = p("sv-svg-icon");
|
|
2184
2159
|
return i(), u("label", {
|
|
2185
2160
|
key: o.item.value,
|
|
2186
2161
|
onMousedown: e[1] || (e[1] = (t) => o.question.onMouseDown()),
|
|
@@ -2227,9 +2202,9 @@ const tn = /* @__PURE__ */ h({
|
|
|
2227
2202
|
setup(r) {
|
|
2228
2203
|
const s = r;
|
|
2229
2204
|
return L(() => s.item), (o, e) => {
|
|
2230
|
-
const n =
|
|
2205
|
+
const n = p("survey-string");
|
|
2231
2206
|
return i(), u("div", Wn, [
|
|
2232
|
-
c("span", En,
|
|
2207
|
+
c("span", En, R(o.item.title), 1),
|
|
2233
2208
|
o.item.description ? (i(), u("div", Vn, [
|
|
2234
2209
|
b(n, {
|
|
2235
2210
|
locString: o.item.description
|
|
@@ -2239,7 +2214,7 @@ const tn = /* @__PURE__ */ h({
|
|
|
2239
2214
|
};
|
|
2240
2215
|
}
|
|
2241
2216
|
});
|
|
2242
|
-
|
|
2217
|
+
se.Instance.registerRenderer(
|
|
2243
2218
|
"rating",
|
|
2244
2219
|
"dropdown",
|
|
2245
2220
|
"sv-rating-dropdown"
|
|
@@ -2251,9 +2226,9 @@ const Fn = /* @__PURE__ */ h({
|
|
|
2251
2226
|
question: {}
|
|
2252
2227
|
},
|
|
2253
2228
|
setup(r) {
|
|
2254
|
-
const s = r, o =
|
|
2229
|
+
const s = r, o = _(null);
|
|
2255
2230
|
return A(s, o), (e, n) => {
|
|
2256
|
-
const t =
|
|
2231
|
+
const t = p("sv-dropdown");
|
|
2257
2232
|
return i(), u("div", {
|
|
2258
2233
|
class: l(e.question.cssClasses.rootDropdown),
|
|
2259
2234
|
ref_key: "root",
|
|
@@ -2270,7 +2245,7 @@ const Fn = /* @__PURE__ */ h({
|
|
|
2270
2245
|
question: {}
|
|
2271
2246
|
},
|
|
2272
2247
|
setup(r) {
|
|
2273
|
-
const s = r, o =
|
|
2248
|
+
const s = r, o = _(null);
|
|
2274
2249
|
A(s, o);
|
|
2275
2250
|
const e = (t, a) => {
|
|
2276
2251
|
s.question.onLabelClick(t, a);
|
|
@@ -2279,12 +2254,12 @@ const Fn = /* @__PURE__ */ h({
|
|
|
2279
2254
|
};
|
|
2280
2255
|
return (t, a) => {
|
|
2281
2256
|
var m;
|
|
2282
|
-
const
|
|
2257
|
+
const y = p("survey-string");
|
|
2283
2258
|
return i(), u("div", {
|
|
2284
2259
|
class: l(t.question.cssClasses.root),
|
|
2285
2260
|
ref_key: "root",
|
|
2286
2261
|
ref: o,
|
|
2287
|
-
onKeydown: a[4] || (a[4] = (
|
|
2262
|
+
onKeydown: a[4] || (a[4] = (v) => t.question.onKeyDownCore(v))
|
|
2288
2263
|
}, [
|
|
2289
2264
|
c("label", {
|
|
2290
2265
|
class: l(t.question.getItemCss())
|
|
@@ -2293,7 +2268,7 @@ const Fn = /* @__PURE__ */ h({
|
|
|
2293
2268
|
type: "checkbox",
|
|
2294
2269
|
name: t.question.name,
|
|
2295
2270
|
value: (m = t.question.booleanValue) != null ? m : "",
|
|
2296
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
2271
|
+
"onUpdate:modelValue": a[0] || (a[0] = (v) => t.question.booleanValue = v),
|
|
2297
2272
|
class: l(t.question.cssClasses.control),
|
|
2298
2273
|
id: t.question.inputId,
|
|
2299
2274
|
".indeterminate": t.question.isIndeterminate,
|
|
@@ -2303,23 +2278,23 @@ const Fn = /* @__PURE__ */ h({
|
|
|
2303
2278
|
"aria-invalid": t.question.ariaInvalid,
|
|
2304
2279
|
"aria-describedby": t.question.ariaDescribedBy
|
|
2305
2280
|
}, null, 42, zn), [
|
|
2306
|
-
[
|
|
2281
|
+
[ne, t.question.booleanValue]
|
|
2307
2282
|
]),
|
|
2308
2283
|
c("div", {
|
|
2309
2284
|
class: l(t.question.cssClasses.sliderGhost),
|
|
2310
|
-
onClick: a[1] || (a[1] = (
|
|
2285
|
+
onClick: a[1] || (a[1] = (v) => e(v, !1))
|
|
2311
2286
|
}, [
|
|
2312
2287
|
c("span", {
|
|
2313
2288
|
class: l(t.question.getLabelCss(!1))
|
|
2314
2289
|
}, [
|
|
2315
|
-
b(
|
|
2290
|
+
b(y, {
|
|
2316
2291
|
locString: t.question.locLabelFalse
|
|
2317
2292
|
}, null, 8, ["locString"])
|
|
2318
2293
|
], 2)
|
|
2319
2294
|
], 2),
|
|
2320
2295
|
c("div", {
|
|
2321
2296
|
class: l(t.question.cssClasses.switch),
|
|
2322
|
-
onClick: a[2] || (a[2] = (
|
|
2297
|
+
onClick: a[2] || (a[2] = (v) => n(v))
|
|
2323
2298
|
}, [
|
|
2324
2299
|
c("span", {
|
|
2325
2300
|
class: l(t.question.cssClasses.slider)
|
|
@@ -2328,7 +2303,7 @@ const Fn = /* @__PURE__ */ h({
|
|
|
2328
2303
|
key: 0,
|
|
2329
2304
|
class: l(t.question.cssClasses.sliderText)
|
|
2330
2305
|
}, [
|
|
2331
|
-
b(
|
|
2306
|
+
b(y, {
|
|
2332
2307
|
locString: t.question.getCheckedLabel()
|
|
2333
2308
|
}, null, 8, ["locString"])
|
|
2334
2309
|
], 2)) : d("", !0)
|
|
@@ -2336,12 +2311,12 @@ const Fn = /* @__PURE__ */ h({
|
|
|
2336
2311
|
], 2),
|
|
2337
2312
|
c("div", {
|
|
2338
2313
|
class: l(t.question.cssClasses.sliderGhost),
|
|
2339
|
-
onClick: a[3] || (a[3] = (
|
|
2314
|
+
onClick: a[3] || (a[3] = (v) => e(v, !0))
|
|
2340
2315
|
}, [
|
|
2341
2316
|
c("span", {
|
|
2342
2317
|
class: l(t.question.getLabelCss(!0))
|
|
2343
2318
|
}, [
|
|
2344
|
-
b(
|
|
2319
|
+
b(y, {
|
|
2345
2320
|
locString: t.question.locLabelTrue
|
|
2346
2321
|
}, null, 8, ["locString"])
|
|
2347
2322
|
], 2)
|
|
@@ -2351,7 +2326,7 @@ const Fn = /* @__PURE__ */ h({
|
|
|
2351
2326
|
};
|
|
2352
2327
|
}
|
|
2353
2328
|
});
|
|
2354
|
-
|
|
2329
|
+
se.Instance.registerRenderer(
|
|
2355
2330
|
"boolean",
|
|
2356
2331
|
"radio",
|
|
2357
2332
|
"sv-boolean-radio"
|
|
@@ -2363,9 +2338,9 @@ const Kn = /* @__PURE__ */ h({
|
|
|
2363
2338
|
question: {}
|
|
2364
2339
|
},
|
|
2365
2340
|
setup(r) {
|
|
2366
|
-
const s =
|
|
2341
|
+
const s = _(null);
|
|
2367
2342
|
return A(r, s), (e, n) => {
|
|
2368
|
-
const t =
|
|
2343
|
+
const t = p("sv-boolean-radio-item");
|
|
2369
2344
|
return i(), u("div", {
|
|
2370
2345
|
class: l(e.question.cssClasses.rootRadio),
|
|
2371
2346
|
ref_key: "root",
|
|
@@ -2404,7 +2379,7 @@ const Kn = /* @__PURE__ */ h({
|
|
|
2404
2379
|
n.booleanValue = e.target.value == "true";
|
|
2405
2380
|
};
|
|
2406
2381
|
return (e, n) => {
|
|
2407
|
-
const t =
|
|
2382
|
+
const t = p("survey-string");
|
|
2408
2383
|
return i(), u("div", {
|
|
2409
2384
|
role: "presentation",
|
|
2410
2385
|
class: l(e.question.getRadioItemClass(e.question.cssClasses, e.value))
|
|
@@ -2444,8 +2419,8 @@ const Kn = /* @__PURE__ */ h({
|
|
|
2444
2419
|
], 2);
|
|
2445
2420
|
};
|
|
2446
2421
|
}
|
|
2447
|
-
}),
|
|
2448
|
-
|
|
2422
|
+
}), Jn = ["name", "value", "id", ".indeterminate", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Xn = ["xlink:href"], Yn = /* @__PURE__ */ c("span", { class: "check" }, null, -1), Zn = ["id"];
|
|
2423
|
+
se.Instance.registerRenderer(
|
|
2449
2424
|
"boolean",
|
|
2450
2425
|
"checkbox",
|
|
2451
2426
|
"sv-boolean-checkbox"
|
|
@@ -2458,10 +2433,10 @@ const xn = /* @__PURE__ */ h({
|
|
|
2458
2433
|
css: {}
|
|
2459
2434
|
},
|
|
2460
2435
|
setup(r) {
|
|
2461
|
-
const s = r, o =
|
|
2436
|
+
const s = r, o = _(null);
|
|
2462
2437
|
return A(s, o), (e, n) => {
|
|
2463
2438
|
var m;
|
|
2464
|
-
const t =
|
|
2439
|
+
const t = p("survey-element-title-content"), a = p("sv-title-actions"), y = p("survey-string");
|
|
2465
2440
|
return i(), u("div", {
|
|
2466
2441
|
class: l(e.question.cssClasses.rootCheckbox),
|
|
2467
2442
|
ref_key: "root",
|
|
@@ -2477,7 +2452,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2477
2452
|
type: "checkbox",
|
|
2478
2453
|
name: e.question.name,
|
|
2479
2454
|
value: (m = e.question.booleanValue) != null ? m : "",
|
|
2480
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
2455
|
+
"onUpdate:modelValue": n[0] || (n[0] = (v) => e.question.booleanValue = v),
|
|
2481
2456
|
class: l(e.question.cssClasses.controlCheckbox),
|
|
2482
2457
|
id: e.question.inputId,
|
|
2483
2458
|
".indeterminate": e.question.isIndeterminate,
|
|
@@ -2486,8 +2461,8 @@ const xn = /* @__PURE__ */ h({
|
|
|
2486
2461
|
"aria-label": e.question.ariaLabel,
|
|
2487
2462
|
"aria-invalid": e.question.ariaInvalid,
|
|
2488
2463
|
"aria-describedby": e.question.ariaDescribedBy
|
|
2489
|
-
}, null, 42,
|
|
2490
|
-
[
|
|
2464
|
+
}, null, 42, Jn), [
|
|
2465
|
+
[ne, e.question.booleanValue]
|
|
2491
2466
|
]),
|
|
2492
2467
|
c("span", {
|
|
2493
2468
|
class: l(e.question.cssClasses.checkboxMaterialDecorator)
|
|
@@ -2498,7 +2473,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2498
2473
|
}, [
|
|
2499
2474
|
c("use", {
|
|
2500
2475
|
"xlink:href": e.question.svgIcon
|
|
2501
|
-
}, null, 8,
|
|
2476
|
+
}, null, 8, Xn)
|
|
2502
2477
|
], 2)) : d("", !0),
|
|
2503
2478
|
Yn
|
|
2504
2479
|
], 2),
|
|
@@ -2523,7 +2498,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2523
2498
|
key: 0,
|
|
2524
2499
|
class: l(e.question.cssDescription)
|
|
2525
2500
|
}, [
|
|
2526
|
-
b(
|
|
2501
|
+
b(y, {
|
|
2527
2502
|
locString: e.question.locDescription
|
|
2528
2503
|
}, null, 8, ["locString"])
|
|
2529
2504
|
], 2)) : d("", !0)
|
|
@@ -2538,29 +2513,29 @@ const xn = /* @__PURE__ */ h({
|
|
|
2538
2513
|
question: {}
|
|
2539
2514
|
},
|
|
2540
2515
|
setup(r) {
|
|
2541
|
-
const s = r, o =
|
|
2516
|
+
const s = r, o = _(null), e = w(() => s.question.getRows());
|
|
2542
2517
|
return A(s, o), (n, t) => {
|
|
2543
|
-
const a =
|
|
2518
|
+
const a = p("survey-multipletext-item");
|
|
2544
2519
|
return i(), u("table", {
|
|
2545
2520
|
class: l(n.question.getQuestionRootCss()),
|
|
2546
2521
|
ref_key: "root",
|
|
2547
2522
|
ref: o
|
|
2548
2523
|
}, [
|
|
2549
2524
|
c("tbody", null, [
|
|
2550
|
-
(i(!0), u($, null, B(e.value, (
|
|
2525
|
+
(i(!0), u($, null, B(e.value, (y, m) => (i(), u($, {
|
|
2551
2526
|
key: n.question.inputId + "rowkey" + m
|
|
2552
2527
|
}, [
|
|
2553
|
-
|
|
2528
|
+
y.isVisible ? (i(), u("tr", {
|
|
2554
2529
|
key: 0,
|
|
2555
2530
|
class: l(n.question.cssClasses.row)
|
|
2556
2531
|
}, [
|
|
2557
|
-
(i(!0), u($, null, B(
|
|
2558
|
-
key: "item" +
|
|
2559
|
-
class: l(
|
|
2532
|
+
(i(!0), u($, null, B(y.cells, (v) => (i(), u("td", {
|
|
2533
|
+
key: "item" + v.item.editor.id,
|
|
2534
|
+
class: l(v.className)
|
|
2560
2535
|
}, [
|
|
2561
2536
|
b(a, {
|
|
2562
2537
|
question: n.question,
|
|
2563
|
-
cell:
|
|
2538
|
+
cell: v
|
|
2564
2539
|
}, null, 8, ["question", "cell"])
|
|
2565
2540
|
], 2))), 128))
|
|
2566
2541
|
], 2)) : d("", !0)
|
|
@@ -2580,8 +2555,8 @@ const xn = /* @__PURE__ */ h({
|
|
|
2580
2555
|
L(() => s.cell.item.editor);
|
|
2581
2556
|
const e = w(() => s.cell.item);
|
|
2582
2557
|
return (n, t) => {
|
|
2583
|
-
const a =
|
|
2584
|
-
return n.cell.isErrorsCell ? (i(), q(
|
|
2558
|
+
const a = p("survey-string"), y = p("survey-errors");
|
|
2559
|
+
return n.cell.isErrorsCell ? (i(), q(y, {
|
|
2585
2560
|
key: 1,
|
|
2586
2561
|
element: e.value.editor
|
|
2587
2562
|
}, null, 8, ["element"])) : (i(), u("label", {
|
|
@@ -2589,12 +2564,13 @@ const xn = /* @__PURE__ */ h({
|
|
|
2589
2564
|
class: l(n.question.getItemLabelCss(e.value))
|
|
2590
2565
|
}, [
|
|
2591
2566
|
c("span", {
|
|
2592
|
-
class: l(n.question.getItemTitleCss())
|
|
2567
|
+
class: l(n.question.getItemTitleCss()),
|
|
2568
|
+
style: S({ minWidth: n.question.itemTitleWidth, width: n.question.itemTitleWidth })
|
|
2593
2569
|
}, [
|
|
2594
2570
|
e.value.editor.isRequireTextBeforeTitle || e.value.editor.isRequireTextOnStart ? (i(), u("span", {
|
|
2595
2571
|
key: 0,
|
|
2596
2572
|
class: l(n.question.cssClasses.requiredText)
|
|
2597
|
-
},
|
|
2573
|
+
}, R(e.value.editor.requiredText), 3)) : d("", !0),
|
|
2598
2574
|
b(a, {
|
|
2599
2575
|
locString: e.value.locTitle
|
|
2600
2576
|
}, null, 8, ["locString"]),
|
|
@@ -2603,8 +2579,8 @@ const xn = /* @__PURE__ */ h({
|
|
|
2603
2579
|
key: 2,
|
|
2604
2580
|
"aria-hidden": "true",
|
|
2605
2581
|
class: l(n.question.cssClasses.requiredText)
|
|
2606
|
-
},
|
|
2607
|
-
],
|
|
2582
|
+
}, R(e.value.editor.requiredText), 3)) : d("", !0)
|
|
2583
|
+
], 6),
|
|
2608
2584
|
(i(), u("div", {
|
|
2609
2585
|
key: e.value.editor.id,
|
|
2610
2586
|
class: l(n.question.getItemCss()),
|
|
@@ -2624,7 +2600,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2624
2600
|
question: {}
|
|
2625
2601
|
},
|
|
2626
2602
|
setup(r) {
|
|
2627
|
-
const s = r, o =
|
|
2603
|
+
const s = r, o = _(null), e = j();
|
|
2628
2604
|
A(
|
|
2629
2605
|
s,
|
|
2630
2606
|
o,
|
|
@@ -2642,24 +2618,24 @@ const xn = /* @__PURE__ */ h({
|
|
|
2642
2618
|
s.question.isInputReadOnly || (t.value = a.value);
|
|
2643
2619
|
};
|
|
2644
2620
|
return (t, a) => {
|
|
2645
|
-
const
|
|
2621
|
+
const y = p("survey-string");
|
|
2646
2622
|
return i(), u("div", {
|
|
2647
2623
|
class: l(t.question.cssClasses.tableWrapper),
|
|
2648
2624
|
ref_key: "root",
|
|
2649
2625
|
ref: o
|
|
2650
2626
|
}, [
|
|
2651
2627
|
c("fieldset", null, [
|
|
2652
|
-
c("legend", oo,
|
|
2628
|
+
c("legend", oo, R(t.question.locTitle.renderedHtml), 1),
|
|
2653
2629
|
c("table", {
|
|
2654
2630
|
class: l(t.question.getTableCss())
|
|
2655
2631
|
}, [
|
|
2656
2632
|
t.question.showHeader ? (i(), u("thead", to, [
|
|
2657
2633
|
c("tr", null, [
|
|
2658
2634
|
t.question.hasRows ? (i(), u("td", io)) : d("", !0),
|
|
2659
|
-
(i(!0), u($, null, B(t.question.visibleColumns, (m,
|
|
2660
|
-
key:
|
|
2635
|
+
(i(!0), u($, null, B(t.question.visibleColumns, (m, v) => (i(), u("th", {
|
|
2636
|
+
key: v,
|
|
2661
2637
|
class: l(t.question.cssClasses.headerCell),
|
|
2662
|
-
style:
|
|
2638
|
+
style: S({
|
|
2663
2639
|
minWidth: t.question.columnMinWidth,
|
|
2664
2640
|
width: t.question.columnMinWidth
|
|
2665
2641
|
})
|
|
@@ -2668,7 +2644,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2668
2644
|
componentData: t.question.getColumnHeaderWrapperComponentData(m)
|
|
2669
2645
|
}, {
|
|
2670
2646
|
default: V(() => [
|
|
2671
|
-
b(
|
|
2647
|
+
b(y, {
|
|
2672
2648
|
locString: m.locText
|
|
2673
2649
|
}, null, 8, ["locString"])
|
|
2674
2650
|
]),
|
|
@@ -2678,13 +2654,13 @@ const xn = /* @__PURE__ */ h({
|
|
|
2678
2654
|
])
|
|
2679
2655
|
])) : d("", !0),
|
|
2680
2656
|
c("tbody", null, [
|
|
2681
|
-
(i(!0), u($, null, B(e.value, (m,
|
|
2682
|
-
key: "row_" + m.name + "_" +
|
|
2657
|
+
(i(!0), u($, null, B(e.value, (m, v) => (i(), u("tr", {
|
|
2658
|
+
key: "row_" + m.name + "_" + v,
|
|
2683
2659
|
class: l(m.rowClasses || void 0)
|
|
2684
2660
|
}, [
|
|
2685
2661
|
P(c("td", {
|
|
2686
2662
|
class: l(t.question.cssClasses.rowTextCell),
|
|
2687
|
-
style:
|
|
2663
|
+
style: S({
|
|
2688
2664
|
minWidth: t.question.rowTitleWidth,
|
|
2689
2665
|
width: t.question.rowTitleWidth
|
|
2690
2666
|
})
|
|
@@ -2693,7 +2669,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2693
2669
|
componentData: t.question.getRowHeaderWrapperComponentData(m)
|
|
2694
2670
|
}, {
|
|
2695
2671
|
default: V(() => [
|
|
2696
|
-
b(
|
|
2672
|
+
b(y, {
|
|
2697
2673
|
locString: m.locText
|
|
2698
2674
|
}, null, 8, ["locString"])
|
|
2699
2675
|
]),
|
|
@@ -2707,7 +2683,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2707
2683
|
class: l(t.question.getItemClass(m, g)),
|
|
2708
2684
|
onClick: (C) => n(m, g)
|
|
2709
2685
|
}, [
|
|
2710
|
-
b(
|
|
2686
|
+
b(y, {
|
|
2711
2687
|
locString: t.question.getCellDisplayLocText(m.name, g)
|
|
2712
2688
|
}, null, 8, ["locString"])
|
|
2713
2689
|
], 10, ro))), 128)) : d("", !0),
|
|
@@ -2734,7 +2710,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2734
2710
|
"aria-invalid": t.question.a11y_input_ariaInvalid,
|
|
2735
2711
|
"aria-describedby": t.question.a11y_input_ariaDescribedBy
|
|
2736
2712
|
}, null, 10, ao), [
|
|
2737
|
-
[
|
|
2713
|
+
[ee, m.value]
|
|
2738
2714
|
]),
|
|
2739
2715
|
c("span", {
|
|
2740
2716
|
class: l(t.question.cssClasses.materialDecorator)
|
|
@@ -2751,7 +2727,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2751
2727
|
P(c("span", {
|
|
2752
2728
|
class: l(t.question.cssClasses.cellResponsiveTitle)
|
|
2753
2729
|
}, [
|
|
2754
|
-
b(
|
|
2730
|
+
b(y, {
|
|
2755
2731
|
locString: g.locText
|
|
2756
2732
|
}, null, 8, ["locString"])
|
|
2757
2733
|
], 2), [
|
|
@@ -2773,9 +2749,9 @@ const xn = /* @__PURE__ */ h({
|
|
|
2773
2749
|
question: {}
|
|
2774
2750
|
},
|
|
2775
2751
|
setup(r) {
|
|
2776
|
-
const s = r, o =
|
|
2752
|
+
const s = r, o = _(null);
|
|
2777
2753
|
return A(s, o), (e, n) => {
|
|
2778
|
-
const t =
|
|
2754
|
+
const t = p("survey-matrixtable");
|
|
2779
2755
|
return i(), q(t, {
|
|
2780
2756
|
question: e.question,
|
|
2781
2757
|
ref_key: "root",
|
|
@@ -2804,9 +2780,9 @@ const xn = /* @__PURE__ */ h({
|
|
|
2804
2780
|
};
|
|
2805
2781
|
}
|
|
2806
2782
|
), (e, n) => {
|
|
2807
|
-
const t =
|
|
2783
|
+
const t = p("survey-string"), a = p("survey-matrixheaderrequired"), y = p("survey-matrixcell");
|
|
2808
2784
|
return i(), u("div", {
|
|
2809
|
-
style:
|
|
2785
|
+
style: S({ overflowX: e.question.showHorizontalScroll ? "scroll" : "" }),
|
|
2810
2786
|
class: l(e.question.cssClasses.tableWrapper)
|
|
2811
2787
|
}, [
|
|
2812
2788
|
c("table", {
|
|
@@ -2818,7 +2794,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2818
2794
|
m.hasTitle ? (i(), u("th", {
|
|
2819
2795
|
key: "header_" + m.id,
|
|
2820
2796
|
class: l(m.className),
|
|
2821
|
-
style:
|
|
2797
|
+
style: S({ minWidth: m.minWidth, width: m.width })
|
|
2822
2798
|
}, [
|
|
2823
2799
|
(i(), q(T(e.question.getColumnHeaderWrapperComponentName(m)), {
|
|
2824
2800
|
componentData: e.question.getColumnHeaderWrapperComponentData(m)
|
|
@@ -2839,7 +2815,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2839
2815
|
m.hasTitle ? d("", !0) : (i(), u("td", {
|
|
2840
2816
|
class: l(m.className),
|
|
2841
2817
|
key: "header_" + m.id,
|
|
2842
|
-
style:
|
|
2818
|
+
style: S({ minWidth: m.minWidth, width: m.width })
|
|
2843
2819
|
}, null, 6))
|
|
2844
2820
|
], 64))), 256))
|
|
2845
2821
|
])
|
|
@@ -2851,11 +2827,11 @@ const xn = /* @__PURE__ */ h({
|
|
|
2851
2827
|
m.visible ? (i(), u("tr", {
|
|
2852
2828
|
key: 0,
|
|
2853
2829
|
"data-sv-drop-target-matrix-row": m.row && m.row.id,
|
|
2854
|
-
onPointerdown: (
|
|
2830
|
+
onPointerdown: (v) => e.question.onPointerDown(v, m.row),
|
|
2855
2831
|
class: l(m.className)
|
|
2856
2832
|
}, [
|
|
2857
|
-
(i(!0), u($, null, B(m.cells, (
|
|
2858
|
-
cell:
|
|
2833
|
+
(i(!0), u($, null, B(m.cells, (v, g) => (i(), q(y, {
|
|
2834
|
+
cell: v,
|
|
2859
2835
|
question: e.question,
|
|
2860
2836
|
key: m.id + "_" + g
|
|
2861
2837
|
}, null, 8, ["cell", "question"]))), 128))
|
|
@@ -2864,10 +2840,10 @@ const xn = /* @__PURE__ */ h({
|
|
|
2864
2840
|
]),
|
|
2865
2841
|
o.value.showFooter ? (i(), u("tfoot", yo, [
|
|
2866
2842
|
c("tr", null, [
|
|
2867
|
-
(i(!0), u($, null, B(o.value.footerRow.cells, (m,
|
|
2843
|
+
(i(!0), u($, null, B(o.value.footerRow.cells, (m, v) => (i(), q(y, {
|
|
2868
2844
|
cell: m,
|
|
2869
2845
|
question: e.question,
|
|
2870
|
-
key: "footer_" +
|
|
2846
|
+
key: "footer_" + v
|
|
2871
2847
|
}, null, 8, ["cell", "question"]))), 128))
|
|
2872
2848
|
])
|
|
2873
2849
|
])) : d("", !0)
|
|
@@ -2888,7 +2864,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2888
2864
|
o.column.isRenderedRequired ? (i(), u("span", {
|
|
2889
2865
|
key: 0,
|
|
2890
2866
|
class: l(o.question.cssClasses.cellRequiredText)
|
|
2891
|
-
},
|
|
2867
|
+
}, R(o.column.requiredText), 3)) : d("", !0)
|
|
2892
2868
|
], 64)) : d("", !0);
|
|
2893
2869
|
}
|
|
2894
2870
|
}), Co = ["data-responsive-title", "title", "colspan"], bo = /* @__PURE__ */ h({
|
|
@@ -2898,8 +2874,8 @@ const xn = /* @__PURE__ */ h({
|
|
|
2898
2874
|
cell: {}
|
|
2899
2875
|
},
|
|
2900
2876
|
setup(r) {
|
|
2901
|
-
const s = r, o =
|
|
2902
|
-
|
|
2877
|
+
const s = r, o = _(!1), e = _(), n = () => s.cell.headers, t = () => !!s.cell.width || !!s.cell.minWidth ? { width: s.cell.width, minWidth: s.cell.minWidth } : null, a = () => o.value = s.cell.question.isVisible, y = (g) => te(g);
|
|
2878
|
+
H(() => {
|
|
2903
2879
|
if (!s.cell.hasQuestion || !s.question || !s.question.survey)
|
|
2904
2880
|
return;
|
|
2905
2881
|
a(), s.cell.question.registerPropertyChangedHandlers(["isVisible"], () => {
|
|
@@ -2925,7 +2901,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2925
2901
|
}
|
|
2926
2902
|
return "survey-panel";
|
|
2927
2903
|
}
|
|
2928
|
-
}),
|
|
2904
|
+
}), v = w(() => {
|
|
2929
2905
|
if (s.cell.hasPanel) {
|
|
2930
2906
|
const I = s.cell.panel, C = I.survey;
|
|
2931
2907
|
let N;
|
|
@@ -2940,14 +2916,14 @@ const xn = /* @__PURE__ */ h({
|
|
|
2940
2916
|
}
|
|
2941
2917
|
});
|
|
2942
2918
|
return (g, I) => {
|
|
2943
|
-
const C =
|
|
2919
|
+
const C = p("survey-errors"), N = p("sv-matrix-drag-drop-icon"), k = p("sv-action-bar"), D = p("survey-radiogroup-item"), E = p("survey-checkbox-item"), O = p("survey-other-choice"), U = p("survey-string");
|
|
2944
2920
|
return i(), u("td", {
|
|
2945
2921
|
class: l(g.cell.className),
|
|
2946
2922
|
"data-responsive-title": n(),
|
|
2947
2923
|
title: g.cell.getTitle(),
|
|
2948
|
-
style:
|
|
2924
|
+
style: S(t()),
|
|
2949
2925
|
colspan: g.cell.colSpans,
|
|
2950
|
-
onFocusin: I[0] || (I[0] = (
|
|
2926
|
+
onFocusin: I[0] || (I[0] = (re) => g.cell.focusIn()),
|
|
2951
2927
|
ref_key: "root",
|
|
2952
2928
|
ref: e
|
|
2953
2929
|
}, [
|
|
@@ -2964,7 +2940,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2964
2940
|
model: g.cell.item.getData(),
|
|
2965
2941
|
handleClick: !1
|
|
2966
2942
|
}, null, 8, ["model"])) : d("", !0),
|
|
2967
|
-
g.cell.hasPanel ? (i(), q(T(m.value), F(
|
|
2943
|
+
g.cell.hasPanel ? (i(), q(T(m.value), F(W({ key: 3 }, v.value)), null, 16)) : d("", !0),
|
|
2968
2944
|
g.cell.hasQuestion ? P((i(), u("div", {
|
|
2969
2945
|
key: 4,
|
|
2970
2946
|
class: l(g.question.cssClasses.cellQuestionWrapper)
|
|
@@ -2974,7 +2950,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2974
2950
|
componentData: g.question.getCellWrapperComponentData(g.cell.cell)
|
|
2975
2951
|
}, {
|
|
2976
2952
|
default: V(() => [
|
|
2977
|
-
(i(), q(T(
|
|
2953
|
+
(i(), q(T(y(g.cell.question)), {
|
|
2978
2954
|
question: g.cell.question
|
|
2979
2955
|
}, null, 8, ["question"]))
|
|
2980
2956
|
]),
|
|
@@ -2989,7 +2965,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
2989
2965
|
componentData: g.question.getCellWrapperComponentData(g.cell.cell)
|
|
2990
2966
|
}, {
|
|
2991
2967
|
default: V(() => [
|
|
2992
|
-
g.cell.isRadio ? (i(), q(
|
|
2968
|
+
g.cell.isRadio ? (i(), q(D, {
|
|
2993
2969
|
key: g.cell.item.value,
|
|
2994
2970
|
question: g.cell.question,
|
|
2995
2971
|
item: g.cell.item,
|
|
@@ -3023,7 +2999,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
3023
2999
|
g.cell.requiredText ? (i(), u("span", {
|
|
3024
3000
|
key: 1,
|
|
3025
3001
|
class: l(g.question.cssClasses.cellRequiredText)
|
|
3026
|
-
},
|
|
3002
|
+
}, R(g.cell.requiredText), 3)) : d("", !0)
|
|
3027
3003
|
]),
|
|
3028
3004
|
_: 1
|
|
3029
3005
|
}, 8, ["componentData"])) : d("", !0)
|
|
@@ -3037,13 +3013,13 @@ const xn = /* @__PURE__ */ h({
|
|
|
3037
3013
|
question: {}
|
|
3038
3014
|
},
|
|
3039
3015
|
setup(r) {
|
|
3040
|
-
const s = r, o =
|
|
3016
|
+
const s = r, o = _(null);
|
|
3041
3017
|
A(s, o);
|
|
3042
3018
|
const e = () => {
|
|
3043
3019
|
s.question.addRowUI();
|
|
3044
3020
|
};
|
|
3045
3021
|
return (n, t) => {
|
|
3046
|
-
const a =
|
|
3022
|
+
const a = p("survey-string"), y = p("survey-matrixtable");
|
|
3047
3023
|
return i(), u("div", {
|
|
3048
3024
|
ref_key: "root",
|
|
3049
3025
|
ref: o
|
|
@@ -3065,7 +3041,7 @@ const xn = /* @__PURE__ */ h({
|
|
|
3065
3041
|
}, null, 2)
|
|
3066
3042
|
], 2)
|
|
3067
3043
|
], 2)) : d("", !0),
|
|
3068
|
-
n.question.renderedTable.showTable ? (i(), q(
|
|
3044
|
+
n.question.renderedTable.showTable ? (i(), q(y, {
|
|
3069
3045
|
key: 1,
|
|
3070
3046
|
question: n.question
|
|
3071
3047
|
}, null, 8, ["question"])) : d("", !0),
|
|
@@ -3129,7 +3105,7 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3129
3105
|
setup(r) {
|
|
3130
3106
|
const s = r, { question: o, row: e } = ie(s);
|
|
3131
3107
|
return (n, t) => {
|
|
3132
|
-
const a =
|
|
3108
|
+
const a = p("survey-string");
|
|
3133
3109
|
return i(), u("button", {
|
|
3134
3110
|
type: "button",
|
|
3135
3111
|
class: l(f(o).getRemoveRowButtonCss()),
|
|
@@ -3172,7 +3148,7 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3172
3148
|
setup(r) {
|
|
3173
3149
|
const s = r, { question: o, row: e } = ie(s);
|
|
3174
3150
|
return (n, t) => {
|
|
3175
|
-
const a =
|
|
3151
|
+
const a = p("sv-svg-icon");
|
|
3176
3152
|
return i(), u("button", {
|
|
3177
3153
|
type: "button",
|
|
3178
3154
|
class: l(f(o).getDetailPanelButtonCss(f(e))),
|
|
@@ -3196,20 +3172,20 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3196
3172
|
css: {}
|
|
3197
3173
|
},
|
|
3198
3174
|
setup(r) {
|
|
3199
|
-
const s = r, o =
|
|
3175
|
+
const s = r, o = _(null), e = oe();
|
|
3200
3176
|
A(
|
|
3201
3177
|
s,
|
|
3202
3178
|
o,
|
|
3203
3179
|
(m) => {
|
|
3204
3180
|
m.panelCountChangedCallback = () => {
|
|
3205
|
-
var
|
|
3206
|
-
(
|
|
3181
|
+
var v;
|
|
3182
|
+
(v = e == null ? void 0 : e.proxy) == null || v.$forceUpdate();
|
|
3207
3183
|
}, m.currentIndexChangedCallback = () => {
|
|
3208
|
-
var
|
|
3209
|
-
(
|
|
3184
|
+
var v;
|
|
3185
|
+
(v = e == null ? void 0 : e.proxy) == null || v.$forceUpdate();
|
|
3210
3186
|
}, m.renderModeChangedCallback = () => {
|
|
3211
|
-
var
|
|
3212
|
-
(
|
|
3187
|
+
var v;
|
|
3188
|
+
(v = e == null ? void 0 : e.proxy) == null || v.$forceUpdate();
|
|
3213
3189
|
};
|
|
3214
3190
|
},
|
|
3215
3191
|
(m) => {
|
|
@@ -3225,17 +3201,17 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3225
3201
|
const m = [];
|
|
3226
3202
|
return s.question.currentPanel && m.push(s.question.currentPanel), m;
|
|
3227
3203
|
}), t = () => s.question.showLegacyNavigation, a = (m) => {
|
|
3228
|
-
const
|
|
3229
|
-
if (
|
|
3230
|
-
const g =
|
|
3204
|
+
const v = s.question.getSurvey();
|
|
3205
|
+
if (v) {
|
|
3206
|
+
const g = v.getElementWrapperComponentName(m);
|
|
3231
3207
|
if (g)
|
|
3232
3208
|
return g;
|
|
3233
3209
|
}
|
|
3234
3210
|
return "panel";
|
|
3235
|
-
},
|
|
3236
|
-
const
|
|
3211
|
+
}, y = (m) => {
|
|
3212
|
+
const v = s.question.getSurvey();
|
|
3237
3213
|
let g;
|
|
3238
|
-
return
|
|
3214
|
+
return v && (g = v.getElementWrapperComponentData(m)), {
|
|
3239
3215
|
componentName: "survey-panel",
|
|
3240
3216
|
componentData: {
|
|
3241
3217
|
element: m,
|
|
@@ -3243,8 +3219,8 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3243
3219
|
}
|
|
3244
3220
|
};
|
|
3245
3221
|
};
|
|
3246
|
-
return (m,
|
|
3247
|
-
const g =
|
|
3222
|
+
return (m, v) => {
|
|
3223
|
+
const g = p("survey-string"), I = p("sv-paneldynamic-add-btn"), C = p("survey-paneldynamicprogress"), N = p("sv-paneldynamic-remove-btn"), k = p("survey-paneldynamicprogress-v2");
|
|
3248
3224
|
return i(), u("div", {
|
|
3249
3225
|
class: l(m.question.cssClasses.root),
|
|
3250
3226
|
ref_key: "root",
|
|
@@ -3269,7 +3245,7 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3269
3245
|
}, [
|
|
3270
3246
|
c("div", {
|
|
3271
3247
|
class: l(m.question.cssClasses.progressBar),
|
|
3272
|
-
style:
|
|
3248
|
+
style: S({ width: m.question.progress }),
|
|
3273
3249
|
role: "progressbar"
|
|
3274
3250
|
}, null, 6)
|
|
3275
3251
|
], 2)) : d("", !0),
|
|
@@ -3277,21 +3253,21 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3277
3253
|
key: 2,
|
|
3278
3254
|
question: m.question
|
|
3279
3255
|
}, null, 8, ["question"])) : d("", !0),
|
|
3280
|
-
(i(!0), u($, null, B(n.value, (
|
|
3281
|
-
key:
|
|
3256
|
+
(i(!0), u($, null, B(n.value, (D, E) => (i(), u($, {
|
|
3257
|
+
key: D.id
|
|
3282
3258
|
}, [
|
|
3283
3259
|
c("div", {
|
|
3284
3260
|
class: l(m.question.getPanelWrapperCss())
|
|
3285
3261
|
}, [
|
|
3286
|
-
(i(), q(T(a(
|
|
3287
|
-
m.question.panelRemoveButtonLocation === "right" && m.question.canRemovePanel &&
|
|
3262
|
+
(i(), q(T(a(D)), F(ye(y(D))), null, 16)),
|
|
3263
|
+
m.question.panelRemoveButtonLocation === "right" && m.question.canRemovePanel && D.state !== "collapsed" ? (i(), q(N, {
|
|
3288
3264
|
key: 0,
|
|
3289
|
-
data: { question: m.question, panel:
|
|
3265
|
+
data: { question: m.question, panel: D }
|
|
3290
3266
|
}, null, 8, ["data"])) : d("", !0)
|
|
3291
3267
|
], 2),
|
|
3292
3268
|
m.question.isRenderModeList && E < m.question.visiblePanelCount - 1 ? (i(), u("hr", {
|
|
3293
3269
|
class: l(m.question.cssClasses.separator),
|
|
3294
|
-
key: "separator" +
|
|
3270
|
+
key: "separator" + D.id
|
|
3295
3271
|
}, null, 2)) : d("", !0)
|
|
3296
3272
|
], 64))), 128)),
|
|
3297
3273
|
t() && m.question.isProgressBottomShowing ? (i(), q(C, {
|
|
@@ -3309,7 +3285,7 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3309
3285
|
], 2);
|
|
3310
3286
|
};
|
|
3311
3287
|
}
|
|
3312
|
-
}),
|
|
3288
|
+
}), _o = /* @__PURE__ */ h({
|
|
3313
3289
|
__name: "PanelDynamicProgress",
|
|
3314
3290
|
props: {
|
|
3315
3291
|
question: {}
|
|
@@ -3317,7 +3293,7 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3317
3293
|
setup(r) {
|
|
3318
3294
|
const s = r, o = () => s.question.isProgressTopShowing ? s.question.cssClasses.progressTop : s.question.cssClasses.progressBottom;
|
|
3319
3295
|
return (e, n) => {
|
|
3320
|
-
const t =
|
|
3296
|
+
const t = p("sv-paneldynamic-prev-btn"), a = p("sv-paneldynamic-next-btn"), y = p("sv-paneldynamic-add-btn"), m = p("sv-paneldynamic-progress-text");
|
|
3321
3297
|
return i(), u("div", {
|
|
3322
3298
|
class: l(o())
|
|
3323
3299
|
}, [
|
|
@@ -3337,7 +3313,7 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3337
3313
|
}, [
|
|
3338
3314
|
c("div", {
|
|
3339
3315
|
class: l(e.question.cssClasses.progressBar),
|
|
3340
|
-
style:
|
|
3316
|
+
style: S({ width: e.question.progress }),
|
|
3341
3317
|
role: "progressbar"
|
|
3342
3318
|
}, null, 6)
|
|
3343
3319
|
], 2)) : d("", !0),
|
|
@@ -3345,7 +3321,7 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3345
3321
|
data: { question: e.question }
|
|
3346
3322
|
}, null, 8, ["data"])
|
|
3347
3323
|
], 2),
|
|
3348
|
-
b(
|
|
3324
|
+
b(y, {
|
|
3349
3325
|
data: { question: e.question }
|
|
3350
3326
|
}, null, 8, ["data"]),
|
|
3351
3327
|
b(m, {
|
|
@@ -3355,14 +3331,14 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3355
3331
|
], 2);
|
|
3356
3332
|
};
|
|
3357
3333
|
}
|
|
3358
|
-
}),
|
|
3334
|
+
}), Do = /* @__PURE__ */ h({
|
|
3359
3335
|
__name: "PanelDynamicProgressV2",
|
|
3360
3336
|
props: {
|
|
3361
3337
|
question: {}
|
|
3362
3338
|
},
|
|
3363
3339
|
setup(r) {
|
|
3364
3340
|
return (s, o) => {
|
|
3365
|
-
const e =
|
|
3341
|
+
const e = p("sv-action-bar");
|
|
3366
3342
|
return s.question.cssClasses.footer ? (i(), u("div", {
|
|
3367
3343
|
key: 0,
|
|
3368
3344
|
class: l(s.question.cssClasses.footer)
|
|
@@ -3376,7 +3352,7 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3376
3352
|
}, [
|
|
3377
3353
|
c("div", {
|
|
3378
3354
|
class: l(s.question.cssClasses.progressBar),
|
|
3379
|
-
style:
|
|
3355
|
+
style: S({ width: s.question.progress }),
|
|
3380
3356
|
role: "progressbar"
|
|
3381
3357
|
}, null, 6)
|
|
3382
3358
|
], 2)) : d("", !0),
|
|
@@ -3392,7 +3368,7 @@ const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
|
3392
3368
|
};
|
|
3393
3369
|
}
|
|
3394
3370
|
});
|
|
3395
|
-
function
|
|
3371
|
+
function Y(r) {
|
|
3396
3372
|
return w(
|
|
3397
3373
|
() => r.item && r.item.data.question || r.data.question
|
|
3398
3374
|
);
|
|
@@ -3404,7 +3380,7 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3404
3380
|
data: {}
|
|
3405
3381
|
},
|
|
3406
3382
|
setup(r) {
|
|
3407
|
-
const o =
|
|
3383
|
+
const o = Y(r), e = () => {
|
|
3408
3384
|
o.value.addPanelUI();
|
|
3409
3385
|
};
|
|
3410
3386
|
return (n, t) => f(o).canAddPanel ? (i(), u("button", {
|
|
@@ -3415,7 +3391,7 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3415
3391
|
}, [
|
|
3416
3392
|
c("span", {
|
|
3417
3393
|
class: l(f(o).cssClasses.buttonAddText)
|
|
3418
|
-
},
|
|
3394
|
+
}, R(f(o).panelAddText), 3)
|
|
3419
3395
|
], 2)) : d("", !0);
|
|
3420
3396
|
}
|
|
3421
3397
|
}), Lo = ["title"], No = /* @__PURE__ */ h({
|
|
@@ -3425,11 +3401,11 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3425
3401
|
data: {}
|
|
3426
3402
|
},
|
|
3427
3403
|
setup(r) {
|
|
3428
|
-
const o =
|
|
3404
|
+
const o = Y(r), e = () => {
|
|
3429
3405
|
o.value.goToNextPanel();
|
|
3430
3406
|
};
|
|
3431
3407
|
return (n, t) => {
|
|
3432
|
-
const a =
|
|
3408
|
+
const a = p("sv-svg-icon");
|
|
3433
3409
|
return i(), u("div", {
|
|
3434
3410
|
title: f(o).panelNextText,
|
|
3435
3411
|
onClick: e,
|
|
@@ -3449,11 +3425,11 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3449
3425
|
data: {}
|
|
3450
3426
|
},
|
|
3451
3427
|
setup(r) {
|
|
3452
|
-
const o =
|
|
3428
|
+
const o = Y(r), e = () => {
|
|
3453
3429
|
o.value.goToPrevPanel();
|
|
3454
3430
|
};
|
|
3455
3431
|
return (n, t) => {
|
|
3456
|
-
const a =
|
|
3432
|
+
const a = p("sv-svg-icon");
|
|
3457
3433
|
return i(), u("div", {
|
|
3458
3434
|
title: f(o).panelPrevText,
|
|
3459
3435
|
onClick: e,
|
|
@@ -3473,7 +3449,7 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3473
3449
|
data: {}
|
|
3474
3450
|
},
|
|
3475
3451
|
setup(r) {
|
|
3476
|
-
const s = r, o =
|
|
3452
|
+
const s = r, o = Y(s), e = w(
|
|
3477
3453
|
() => s.item && s.item.data.panel || s.data.panel
|
|
3478
3454
|
), n = (t) => {
|
|
3479
3455
|
o.value.isInputReadOnly || o.value.removePanelUI(t);
|
|
@@ -3481,11 +3457,11 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3481
3457
|
return (t, a) => (i(), u("button", {
|
|
3482
3458
|
type: "button",
|
|
3483
3459
|
class: l(f(o).getPanelRemoveButtonCss()),
|
|
3484
|
-
onClick: a[0] || (a[0] = (
|
|
3460
|
+
onClick: a[0] || (a[0] = (y) => n(e.value))
|
|
3485
3461
|
}, [
|
|
3486
3462
|
c("span", {
|
|
3487
3463
|
class: l(f(o).cssClasses.buttonRemoveText)
|
|
3488
|
-
},
|
|
3464
|
+
}, R(f(o).panelRemoveText), 3),
|
|
3489
3465
|
c("span", {
|
|
3490
3466
|
class: l(f(o).cssClasses.iconRemove)
|
|
3491
3467
|
}, null, 2)
|
|
@@ -3498,10 +3474,10 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3498
3474
|
data: {}
|
|
3499
3475
|
},
|
|
3500
3476
|
setup(r) {
|
|
3501
|
-
const o =
|
|
3477
|
+
const o = Y(r);
|
|
3502
3478
|
return (e, n) => (i(), u("div", {
|
|
3503
3479
|
class: l(f(o).cssClasses.progressText)
|
|
3504
|
-
},
|
|
3480
|
+
}, R(f(o).progressText), 3));
|
|
3505
3481
|
}
|
|
3506
3482
|
}), Wo = ["id"], Eo = /* @__PURE__ */ h({
|
|
3507
3483
|
__name: "Errors",
|
|
@@ -3510,9 +3486,9 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3510
3486
|
location: {}
|
|
3511
3487
|
},
|
|
3512
3488
|
setup(r) {
|
|
3513
|
-
const s =
|
|
3489
|
+
const s = _();
|
|
3514
3490
|
return (o, e) => {
|
|
3515
|
-
const n =
|
|
3491
|
+
const n = p("survey-string");
|
|
3516
3492
|
return o.element.hasVisibleErrors ? (i(), u("div", {
|
|
3517
3493
|
key: 0,
|
|
3518
3494
|
role: "alert",
|
|
@@ -3550,7 +3526,7 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3550
3526
|
question: {}
|
|
3551
3527
|
},
|
|
3552
3528
|
setup(r) {
|
|
3553
|
-
return (s, o) => s.question.isReadOnlyRenderDiv() ? (i(), u("div", Vo,
|
|
3529
|
+
return (s, o) => s.question.isReadOnlyRenderDiv() ? (i(), u("div", Vo, R(s.question.comment), 1)) : (i(), u("textarea", {
|
|
3554
3530
|
key: 1,
|
|
3555
3531
|
id: s.question.commentId,
|
|
3556
3532
|
readonly: s.question.isInputReadOnly,
|
|
@@ -3561,7 +3537,7 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3561
3537
|
placeholder: s.question.renderedCommentPlaceholder,
|
|
3562
3538
|
"aria-label": s.question.ariaLabel || s.question.a11y_input_ariaLabel,
|
|
3563
3539
|
"aria-required": s.question.ariaRequired || s.question.a11y_input_ariaRequired,
|
|
3564
|
-
style:
|
|
3540
|
+
style: S({ resize: s.question.resizeStyle }),
|
|
3565
3541
|
onChange: o[0] || (o[0] = (e) => {
|
|
3566
3542
|
s.question.onCommentChange(e);
|
|
3567
3543
|
}),
|
|
@@ -3578,10 +3554,10 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3578
3554
|
},
|
|
3579
3555
|
setup(r) {
|
|
3580
3556
|
const s = (o) => {
|
|
3581
|
-
|
|
3557
|
+
qe(o);
|
|
3582
3558
|
};
|
|
3583
3559
|
return (o, e) => {
|
|
3584
|
-
const n =
|
|
3560
|
+
const n = p("survey-element-title-content"), t = p("sv-title-actions");
|
|
3585
3561
|
return o.element.hasTitle ? (i(), q(T(o.element.titleTagName), {
|
|
3586
3562
|
key: 0,
|
|
3587
3563
|
class: l(o.element.cssTitle),
|
|
@@ -3619,7 +3595,7 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3619
3595
|
},
|
|
3620
3596
|
setup(r) {
|
|
3621
3597
|
return (s, o) => {
|
|
3622
|
-
const e =
|
|
3598
|
+
const e = p("survey-string");
|
|
3623
3599
|
return i(), u($, null, [
|
|
3624
3600
|
s.element.isTitleRenderedAsString ? (i(), q(e, {
|
|
3625
3601
|
key: 0,
|
|
@@ -3629,19 +3605,19 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3629
3605
|
key: 1,
|
|
3630
3606
|
class: l(s.element.cssClasses.requiredText),
|
|
3631
3607
|
"aria-hidden": !0
|
|
3632
|
-
},
|
|
3608
|
+
}, R(s.element.requiredText), 3)) : d("", !0),
|
|
3633
3609
|
!s.element.isTitleRenderedAsString && s.element.no ? (i(), u("span", {
|
|
3634
3610
|
key: 2,
|
|
3635
3611
|
style: { position: "static" },
|
|
3636
3612
|
class: l(s.element.cssTitleNumber),
|
|
3637
3613
|
"aria-hidden": !0
|
|
3638
|
-
},
|
|
3614
|
+
}, R(s.element.no), 3)) : d("", !0),
|
|
3639
3615
|
!s.element.isTitleRenderedAsString && s.element.no ? (i(), u("span", Uo, "\xA0")) : d("", !0),
|
|
3640
3616
|
!s.element.isTitleRenderedAsString && s.element.isRequireTextBeforeTitle ? (i(), u("span", {
|
|
3641
3617
|
key: 4,
|
|
3642
3618
|
class: l(s.element.cssClasses.requiredText),
|
|
3643
3619
|
"aria-hidden": !0
|
|
3644
|
-
},
|
|
3620
|
+
}, R(s.element.requiredText), 3)) : d("", !0),
|
|
3645
3621
|
!s.element.isTitleRenderedAsString && s.element.isRequireTextBeforeTitle ? (i(), u("span", Ko, "\xA0")) : d("", !0),
|
|
3646
3622
|
s.element.isTitleRenderedAsString ? d("", !0) : (i(), q(e, {
|
|
3647
3623
|
key: 6,
|
|
@@ -3652,11 +3628,11 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3652
3628
|
key: 8,
|
|
3653
3629
|
class: l(s.element.cssClasses.requiredText),
|
|
3654
3630
|
"aria-hidden": !0
|
|
3655
|
-
},
|
|
3631
|
+
}, R(s.element.requiredText), 3)) : d("", !0)
|
|
3656
3632
|
], 64);
|
|
3657
3633
|
};
|
|
3658
3634
|
}
|
|
3659
|
-
}), Go = { class: "sv-title-actions" },
|
|
3635
|
+
}), Go = { class: "sv-title-actions" }, Jo = { class: "sv-title-actions__title" }, Xo = /* @__PURE__ */ h({
|
|
3660
3636
|
__name: "TitleActions",
|
|
3661
3637
|
props: {
|
|
3662
3638
|
element: {},
|
|
@@ -3665,9 +3641,9 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3665
3641
|
setup(r) {
|
|
3666
3642
|
const s = r, o = w(() => s.element.getTitleToolbar());
|
|
3667
3643
|
return (e, n) => {
|
|
3668
|
-
const t =
|
|
3644
|
+
const t = p("survey-string"), a = p("survey-element-title-content"), y = p("sv-action-bar");
|
|
3669
3645
|
return i(), u("div", Go, [
|
|
3670
|
-
c("span",
|
|
3646
|
+
c("span", Jo, [
|
|
3671
3647
|
e.element.isPage ? (i(), q(t, {
|
|
3672
3648
|
key: 0,
|
|
3673
3649
|
locString: e.element.locTitle
|
|
@@ -3678,22 +3654,22 @@ const Bo = /* @__PURE__ */ h({
|
|
|
3678
3654
|
css: e.css
|
|
3679
3655
|
}, null, 8, ["element", "css"]))
|
|
3680
3656
|
]),
|
|
3681
|
-
b(
|
|
3657
|
+
b(y, { model: o.value }, null, 8, ["model"])
|
|
3682
3658
|
]);
|
|
3683
3659
|
};
|
|
3684
3660
|
}
|
|
3685
|
-
}),
|
|
3661
|
+
}), he = (r, s) => {
|
|
3686
3662
|
const o = r.__vccOpts || r;
|
|
3687
3663
|
for (const [e, n] of s)
|
|
3688
3664
|
o[e] = n;
|
|
3689
3665
|
return o;
|
|
3690
|
-
}, Yo = {}, Zo = { class: "sv-brand-info" }, xo = /* @__PURE__ */
|
|
3666
|
+
}, Yo = {}, Zo = { class: "sv-brand-info" }, xo = /* @__PURE__ */ Ie('<a class="sv-brand-info__logo" href="https://surveyjs.io/?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=landing_page"><img src="https://surveyjs.io/Content/Images/poweredby.svg"></a><div class="sv-brand-info__text"> Try and see how easy it is to <a href="https://surveyjs.io/create-survey?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=create_survey">create a survey</a></div><div class="sv-brand-info__terms"><a href="https://surveyjs.io/TermsOfUse">Terms of Use & Privacy Statement</a></div>', 3), et = [
|
|
3691
3667
|
xo
|
|
3692
3668
|
];
|
|
3693
3669
|
function st(r, s) {
|
|
3694
3670
|
return i(), u("div", Zo, et);
|
|
3695
3671
|
}
|
|
3696
|
-
const nt = /* @__PURE__ */
|
|
3672
|
+
const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use", null, null, -1), tt = [
|
|
3697
3673
|
ot
|
|
3698
3674
|
], it = /* @__PURE__ */ h({
|
|
3699
3675
|
__name: "SvgIcon",
|
|
@@ -3705,8 +3681,8 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3705
3681
|
title: {}
|
|
3706
3682
|
},
|
|
3707
3683
|
setup(r) {
|
|
3708
|
-
const s = r, o =
|
|
3709
|
-
|
|
3684
|
+
const s = r, o = _(), e = () => {
|
|
3685
|
+
Le(
|
|
3710
3686
|
s.size,
|
|
3711
3687
|
s.width,
|
|
3712
3688
|
s.height,
|
|
@@ -3715,9 +3691,9 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3715
3691
|
s.title
|
|
3716
3692
|
);
|
|
3717
3693
|
};
|
|
3718
|
-
return
|
|
3694
|
+
return x(() => {
|
|
3719
3695
|
e();
|
|
3720
|
-
}),
|
|
3696
|
+
}), H(() => {
|
|
3721
3697
|
e();
|
|
3722
3698
|
}), (n, t) => (i(), u("svg", {
|
|
3723
3699
|
ref_key: "svgIconElement",
|
|
@@ -3734,17 +3710,17 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3734
3710
|
handleClick: { type: Boolean, default: !0 }
|
|
3735
3711
|
},
|
|
3736
3712
|
setup(r) {
|
|
3737
|
-
const s = r, o =
|
|
3713
|
+
const s = r, o = _(null), e = (t) => {
|
|
3738
3714
|
s.handleClick && t.stopPropagation();
|
|
3739
3715
|
};
|
|
3740
3716
|
L(() => s.model);
|
|
3741
3717
|
const n = w(() => s.model.renderedActions);
|
|
3742
|
-
return
|
|
3718
|
+
return H(() => {
|
|
3743
3719
|
!s.model.hasActions || s.model.initResponsivityManager(o.value);
|
|
3744
3720
|
}), z(() => {
|
|
3745
3721
|
s.model.resetResponsivityManager();
|
|
3746
3722
|
}), (t, a) => {
|
|
3747
|
-
const
|
|
3723
|
+
const y = p("sv-action");
|
|
3748
3724
|
return t.model.hasActions ? (i(), u("div", {
|
|
3749
3725
|
key: 0,
|
|
3750
3726
|
ref_key: "root",
|
|
@@ -3752,7 +3728,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3752
3728
|
class: l(t.model.getRootCss()),
|
|
3753
3729
|
onClick: e
|
|
3754
3730
|
}, [
|
|
3755
|
-
(i(!0), u($, null, B(n.value, (m) => (i(), q(
|
|
3731
|
+
(i(!0), u($, null, B(n.value, (m) => (i(), q(y, {
|
|
3756
3732
|
key: m.id,
|
|
3757
3733
|
item: m
|
|
3758
3734
|
}, null, 8, ["item"]))), 128))
|
|
@@ -3769,7 +3745,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3769
3745
|
() => s.item.component || "sv-action-bar-item"
|
|
3770
3746
|
);
|
|
3771
3747
|
return L(() => s.item), (e, n) => {
|
|
3772
|
-
const t =
|
|
3748
|
+
const t = p("sv-action-bar-separator");
|
|
3773
3749
|
return i(), u("div", {
|
|
3774
3750
|
class: l(e.item.getActionRootCss()),
|
|
3775
3751
|
id: e.item.id
|
|
@@ -3792,7 +3768,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3792
3768
|
setup(r) {
|
|
3793
3769
|
const s = r;
|
|
3794
3770
|
return L(() => s.item), (o, e) => {
|
|
3795
|
-
const n =
|
|
3771
|
+
const n = p("sv-svg-icon"), t = X("key2click");
|
|
3796
3772
|
return P((i(), u("button", {
|
|
3797
3773
|
class: l(o.item.getActionBarItemCss()),
|
|
3798
3774
|
type: "button",
|
|
@@ -3818,7 +3794,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3818
3794
|
o.item.hasTitle ? (i(), u("span", {
|
|
3819
3795
|
key: 1,
|
|
3820
3796
|
class: l(o.item.getActionBarItemTitleCss())
|
|
3821
|
-
},
|
|
3797
|
+
}, R(o.item.title), 3)) : d("", !0)
|
|
3822
3798
|
], 42, dt)), [
|
|
3823
3799
|
[t, { processEsc: !1, disableTabStop: o.item.disableTabStop }]
|
|
3824
3800
|
]);
|
|
@@ -3833,27 +3809,27 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3833
3809
|
item: {}
|
|
3834
3810
|
},
|
|
3835
3811
|
setup(r) {
|
|
3836
|
-
const s = r, o =
|
|
3812
|
+
const s = r, o = Pe;
|
|
3837
3813
|
let e;
|
|
3838
3814
|
return L(
|
|
3839
3815
|
() => s.item,
|
|
3840
3816
|
(n) => {
|
|
3841
|
-
e = new
|
|
3817
|
+
e = new Ne(n);
|
|
3842
3818
|
},
|
|
3843
3819
|
() => {
|
|
3844
3820
|
e.dispose();
|
|
3845
3821
|
}
|
|
3846
3822
|
), (n, t) => {
|
|
3847
|
-
const a =
|
|
3823
|
+
const a = p("sv-svg-icon"), y = p("sv-popup"), m = X("key2click");
|
|
3848
3824
|
return i(), u($, null, [
|
|
3849
3825
|
P((i(), u("button", {
|
|
3850
3826
|
type: "button",
|
|
3851
3827
|
class: l(n.item.getActionBarItemCss()),
|
|
3852
|
-
onClick: t[0] || (t[0] = (
|
|
3853
|
-
n.item.action(n.item, !!
|
|
3828
|
+
onClick: t[0] || (t[0] = (v) => {
|
|
3829
|
+
n.item.action(n.item, !!v.pointerType);
|
|
3854
3830
|
}),
|
|
3855
|
-
onKeyup: t[1] || (t[1] = (
|
|
3856
|
-
|
|
3831
|
+
onKeyup: t[1] || (t[1] = (v) => {
|
|
3832
|
+
v.stopPropagation();
|
|
3857
3833
|
}),
|
|
3858
3834
|
disabled: n.item.disabled,
|
|
3859
3835
|
title: n.item.tooltip || n.item.title,
|
|
@@ -3869,11 +3845,11 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3869
3845
|
n.item.hasTitle ? (i(), u("span", {
|
|
3870
3846
|
key: 1,
|
|
3871
3847
|
class: l(n.item.getActionBarItemTitleCss())
|
|
3872
|
-
},
|
|
3848
|
+
}, R(n.item.title), 3)) : d("", !0)
|
|
3873
3849
|
], 42, pt)), [
|
|
3874
3850
|
[m, { processEsc: !1, disableTabStop: n.item.disableTabStop }]
|
|
3875
3851
|
]),
|
|
3876
|
-
b(
|
|
3852
|
+
b(y, {
|
|
3877
3853
|
model: n.item.popupModel,
|
|
3878
3854
|
getTarget: f(o)
|
|
3879
3855
|
}, null, 8, ["model", "getTarget"])
|
|
@@ -3897,19 +3873,19 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3897
3873
|
model: {}
|
|
3898
3874
|
},
|
|
3899
3875
|
setup(r) {
|
|
3900
|
-
const s = r, o =
|
|
3901
|
-
const
|
|
3902
|
-
|
|
3876
|
+
const s = r, o = _(null), e = (a) => {
|
|
3877
|
+
const y = s.model;
|
|
3878
|
+
y.filterString = a.target.value;
|
|
3903
3879
|
}, n = (a) => {
|
|
3904
|
-
const
|
|
3905
|
-
|
|
3880
|
+
const y = s.model;
|
|
3881
|
+
y.filterString = a.target.value, s.model.goToItems(a);
|
|
3906
3882
|
}, t = (a) => {
|
|
3907
3883
|
s.model.onMouseMove(a);
|
|
3908
3884
|
};
|
|
3909
|
-
return L(() => s.model),
|
|
3885
|
+
return L(() => s.model), H(() => {
|
|
3910
3886
|
s.model.initListContainerHtmlElement(o.value);
|
|
3911
|
-
}), (a,
|
|
3912
|
-
const m =
|
|
3887
|
+
}), (a, y) => {
|
|
3888
|
+
const m = p("sv-svg-icon"), v = p("sv-list-item");
|
|
3913
3889
|
return i(), u("div", {
|
|
3914
3890
|
class: l(a.model.cssClasses.root),
|
|
3915
3891
|
ref_key: "listContainerElement",
|
|
@@ -3938,7 +3914,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3938
3914
|
}, null, 42, gt),
|
|
3939
3915
|
a.model.showSearchClearButton && !!a.model.filterString ? (i(), u("button", {
|
|
3940
3916
|
key: 0,
|
|
3941
|
-
onClick:
|
|
3917
|
+
onClick: y[0] || (y[0] = (g) => {
|
|
3942
3918
|
a.model.onClickSearchClearButton(g);
|
|
3943
3919
|
}),
|
|
3944
3920
|
class: l(a.model.cssClasses.searchClearButtonIcon)
|
|
@@ -3955,7 +3931,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3955
3931
|
c("div", {
|
|
3956
3932
|
class: l(a.model.cssClasses.emptyText),
|
|
3957
3933
|
"aria-label": a.model.emptyMessage
|
|
3958
|
-
},
|
|
3934
|
+
}, R(a.model.emptyMessage), 11, ht)
|
|
3959
3935
|
], 2), [
|
|
3960
3936
|
[M, a.model.isEmpty]
|
|
3961
3937
|
]),
|
|
@@ -3964,15 +3940,15 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3964
3940
|
class: l(a.model.getListClass()),
|
|
3965
3941
|
role: "listbox",
|
|
3966
3942
|
id: a.model.elementId,
|
|
3967
|
-
onMousedown:
|
|
3943
|
+
onMousedown: y[1] || (y[1] = (g) => {
|
|
3968
3944
|
g.preventDefault();
|
|
3969
3945
|
}),
|
|
3970
3946
|
onMousemove: t,
|
|
3971
|
-
onKeydown:
|
|
3947
|
+
onKeydown: y[2] || (y[2] = (g) => {
|
|
3972
3948
|
a.model.onKeyDown(g);
|
|
3973
3949
|
})
|
|
3974
3950
|
}, [
|
|
3975
|
-
(i(!0), u($, null, B(a.model.renderedActions, (g) => (i(), q(
|
|
3951
|
+
(i(!0), u($, null, B(a.model.renderedActions, (g) => (i(), q(v, {
|
|
3976
3952
|
item: g,
|
|
3977
3953
|
model: a.model,
|
|
3978
3954
|
key: g.id
|
|
@@ -3993,19 +3969,19 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
3993
3969
|
const s = r, o = w(() => s.item.elementId), e = (n) => {
|
|
3994
3970
|
s.model.onItemClick(s.item), n.stopPropagation();
|
|
3995
3971
|
};
|
|
3996
|
-
return L(() => s.item),
|
|
3972
|
+
return L(() => s.item), H(() => {
|
|
3997
3973
|
setTimeout(() => {
|
|
3998
3974
|
s.model.onLastItemRended(s.item);
|
|
3999
3975
|
});
|
|
4000
3976
|
}), (n, t) => {
|
|
4001
|
-
const a =
|
|
3977
|
+
const a = p("sv-svg-icon"), y = p("survey-string"), m = X("key2click");
|
|
4002
3978
|
return P((i(), u("li", {
|
|
4003
3979
|
tabindex: "0",
|
|
4004
3980
|
role: "option",
|
|
4005
3981
|
"aria-selected": n.model.isItemSelected(n.item),
|
|
4006
3982
|
key: n.item.id,
|
|
4007
3983
|
id: o.value,
|
|
4008
|
-
onPointerdown: t[0] || (t[0] = (
|
|
3984
|
+
onPointerdown: t[0] || (t[0] = (v) => n.model.onPointerDown(v, n.item)),
|
|
4009
3985
|
class: l(n.model.getItemClass(n.item)),
|
|
4010
3986
|
onClick: e
|
|
4011
3987
|
}, [
|
|
@@ -4014,7 +3990,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4014
3990
|
class: l(n.model.cssClasses.itemSeparator)
|
|
4015
3991
|
}, null, 2)) : d("", !0),
|
|
4016
3992
|
c("div", {
|
|
4017
|
-
style:
|
|
3993
|
+
style: S({ paddingInlineStart: n.model.getItemIndent(n.item) }),
|
|
4018
3994
|
class: l(n.model.cssClasses.itemBody),
|
|
4019
3995
|
title: n.item.locTitle.calculatedText
|
|
4020
3996
|
}, [
|
|
@@ -4024,7 +4000,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4024
4000
|
iconName: n.item.iconName,
|
|
4025
4001
|
size: n.item.iconSize
|
|
4026
4002
|
}, null, 8, ["class", "iconName", "size"])) : d("", !0),
|
|
4027
|
-
n.item.component ? d("", !0) : (i(), q(
|
|
4003
|
+
n.item.component ? d("", !0) : (i(), q(y, {
|
|
4028
4004
|
key: 1,
|
|
4029
4005
|
locString: n.item.locTitle
|
|
4030
4006
|
}, null, 8, ["locString"])),
|
|
@@ -4047,15 +4023,15 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4047
4023
|
},
|
|
4048
4024
|
setup(r) {
|
|
4049
4025
|
const s = r, o = j(
|
|
4050
|
-
|
|
4051
|
-
), e =
|
|
4052
|
-
return
|
|
4026
|
+
ae(s.model, void 0)
|
|
4027
|
+
), e = _(null);
|
|
4028
|
+
return G(
|
|
4053
4029
|
() => s.model,
|
|
4054
4030
|
(n) => {
|
|
4055
|
-
o.value.dispose(), o.value =
|
|
4031
|
+
o.value.dispose(), o.value = ae(n, void 0);
|
|
4056
4032
|
},
|
|
4057
4033
|
{ immediate: !0 }
|
|
4058
|
-
), L(() => o.value),
|
|
4034
|
+
), L(() => o.value), H(() => {
|
|
4059
4035
|
const n = e.value;
|
|
4060
4036
|
o.value.setComponentElement(
|
|
4061
4037
|
n,
|
|
@@ -4064,7 +4040,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4064
4040
|
}), z(() => {
|
|
4065
4041
|
o.value.dispose();
|
|
4066
4042
|
}), (n, t) => {
|
|
4067
|
-
const a =
|
|
4043
|
+
const a = p("sv-popup-container");
|
|
4068
4044
|
return i(), u("div", {
|
|
4069
4045
|
ref_key: "root",
|
|
4070
4046
|
ref: e
|
|
@@ -4076,7 +4052,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4076
4052
|
}), St = { class: "sv-popup__shadow" }, Rt = { class: "sv-popup__body-content" }, Tt = {
|
|
4077
4053
|
key: 0,
|
|
4078
4054
|
class: "sv-popup__body-header"
|
|
4079
|
-
}, $t = { class: "sv-popup__scrolling-content" },
|
|
4055
|
+
}, $t = { class: "sv-popup__scrolling-content" }, _t = { class: "sv-popup__content" }, Dt = {
|
|
4080
4056
|
key: 1,
|
|
4081
4057
|
class: "sv-popup__body-footer"
|
|
4082
4058
|
}, Bt = /* @__PURE__ */ h({
|
|
@@ -4090,26 +4066,26 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4090
4066
|
const e = (n) => {
|
|
4091
4067
|
n.stopPropagation();
|
|
4092
4068
|
};
|
|
4093
|
-
return L(() => s.model),
|
|
4069
|
+
return L(() => s.model), x(() => {
|
|
4094
4070
|
const n = s.model;
|
|
4095
4071
|
!o && n.isVisible && s.model.updateOnShowing(), o = n.isVisible;
|
|
4096
|
-
}),
|
|
4072
|
+
}), H(() => {
|
|
4097
4073
|
s.model.isVisible && s.model.updateOnShowing();
|
|
4098
4074
|
}), (n, t) => {
|
|
4099
|
-
const a =
|
|
4075
|
+
const a = p("sv-action-bar");
|
|
4100
4076
|
return P((i(), u("div", {
|
|
4101
4077
|
tabindex: "-1",
|
|
4102
4078
|
class: l(["sv-popup", n.model.styleClass]),
|
|
4103
|
-
onKeydown: t[0] || (t[0] = (
|
|
4104
|
-
n.model.onKeyDown(
|
|
4079
|
+
onKeydown: t[0] || (t[0] = (y) => {
|
|
4080
|
+
n.model.onKeyDown(y);
|
|
4105
4081
|
}),
|
|
4106
|
-
onClick: t[1] || (t[1] = (
|
|
4107
|
-
n.model.clickOutside(
|
|
4082
|
+
onClick: t[1] || (t[1] = (y) => {
|
|
4083
|
+
n.model.clickOutside(y);
|
|
4108
4084
|
})
|
|
4109
4085
|
}, [
|
|
4110
4086
|
c("div", {
|
|
4111
4087
|
class: "sv-popup__container",
|
|
4112
|
-
style:
|
|
4088
|
+
style: S({
|
|
4113
4089
|
left: n.model.left,
|
|
4114
4090
|
top: n.model.top,
|
|
4115
4091
|
height: n.model.height,
|
|
@@ -4124,13 +4100,13 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4124
4100
|
model: n.model
|
|
4125
4101
|
}, null, 8, ["model"])) : d("", !0),
|
|
4126
4102
|
c("div", Rt, [
|
|
4127
|
-
n.model.title ? (i(), u("div", Tt,
|
|
4103
|
+
n.model.title ? (i(), u("div", Tt, R(n.model.title), 1)) : d("", !0),
|
|
4128
4104
|
c("div", $t, [
|
|
4129
|
-
c("div",
|
|
4130
|
-
(i(), q(T(n.model.contentComponentName), F(
|
|
4105
|
+
c("div", _t, [
|
|
4106
|
+
(i(), q(T(n.model.contentComponentName), F(ye(n.model.contentComponentData)), null, 16))
|
|
4131
4107
|
])
|
|
4132
4108
|
]),
|
|
4133
|
-
n.model.showFooter ? (i(), u("div",
|
|
4109
|
+
n.model.showFooter ? (i(), u("div", Dt, [
|
|
4134
4110
|
b(a, {
|
|
4135
4111
|
model: n.model.footerToolbar
|
|
4136
4112
|
}, null, 8, ["model"])
|
|
@@ -4151,7 +4127,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4151
4127
|
setup(r) {
|
|
4152
4128
|
return (s, o) => (i(), u("span", {
|
|
4153
4129
|
class: "sv-popup__pointer",
|
|
4154
|
-
style:
|
|
4130
|
+
style: S({
|
|
4155
4131
|
left: s.model.pointerTarget.left,
|
|
4156
4132
|
top: s.model.pointerTarget.top
|
|
4157
4133
|
})
|
|
@@ -4184,7 +4160,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4184
4160
|
}, null, 8, ["survey", "model"]))), 256))
|
|
4185
4161
|
], 64)) : d("", !0);
|
|
4186
4162
|
}
|
|
4187
|
-
}),
|
|
4163
|
+
}), Z = /* @__PURE__ */ h({
|
|
4188
4164
|
__name: "Progress",
|
|
4189
4165
|
props: {
|
|
4190
4166
|
survey: {},
|
|
@@ -4192,13 +4168,13 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4192
4168
|
css: {}
|
|
4193
4169
|
},
|
|
4194
4170
|
setup(r) {
|
|
4195
|
-
const s = r, o = w(() => s.survey.progressValue + "%"), e = (t) =>
|
|
4171
|
+
const s = r, o = w(() => s.survey.progressValue + "%"), e = (t) => ue.getProgressTextInBarCss(t), n = (t) => ue.getProgressTextUnderBarCss(t);
|
|
4196
4172
|
return (t, a) => (i(), u("div", {
|
|
4197
4173
|
class: l(t.survey.getProgressCssClasses(t.container))
|
|
4198
4174
|
}, [
|
|
4199
4175
|
c("div", {
|
|
4200
4176
|
class: l(t.survey.css.progressBar),
|
|
4201
|
-
style:
|
|
4177
|
+
style: S({ width: o.value }),
|
|
4202
4178
|
role: "progressbar",
|
|
4203
4179
|
"aria-valuemin": "0",
|
|
4204
4180
|
"aria-valuemax": "100",
|
|
@@ -4206,11 +4182,11 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4206
4182
|
}, [
|
|
4207
4183
|
c("span", {
|
|
4208
4184
|
class: l(e(t.survey.css))
|
|
4209
|
-
},
|
|
4185
|
+
}, R(t.survey.progressText), 3)
|
|
4210
4186
|
], 6),
|
|
4211
4187
|
c("span", {
|
|
4212
4188
|
class: l(n(t.survey.css))
|
|
4213
|
-
},
|
|
4189
|
+
}, R(t.survey.progressText), 3)
|
|
4214
4190
|
], 2));
|
|
4215
4191
|
}
|
|
4216
4192
|
}), At = ["onClick"], Mt = ["title"], Ht = ["title"], Wt = /* @__PURE__ */ h({
|
|
@@ -4219,15 +4195,15 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4219
4195
|
survey: {}
|
|
4220
4196
|
},
|
|
4221
4197
|
setup(r) {
|
|
4222
|
-
const s = r, o = new
|
|
4198
|
+
const s = r, o = new Ae(s.survey), e = _(!1), n = _(), t = w(() => s.survey.css);
|
|
4223
4199
|
let a;
|
|
4224
|
-
const
|
|
4200
|
+
const y = (C) => o.isListElementClickable(C), m = (C) => o.getListElementCss(C), v = (C) => {
|
|
4225
4201
|
o.clickListElement(C);
|
|
4226
4202
|
}, g = (C, N) => o.getScrollButtonCss(C, N), I = (C) => {
|
|
4227
4203
|
let N = n.value;
|
|
4228
4204
|
N.scrollLeft += (C ? -1 : 1) * 70;
|
|
4229
4205
|
};
|
|
4230
|
-
return
|
|
4206
|
+
return H(() => {
|
|
4231
4207
|
const C = n.value;
|
|
4232
4208
|
a = setInterval(() => {
|
|
4233
4209
|
e.value = C.scrollWidth > C.offsetWidth;
|
|
@@ -4253,19 +4229,19 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4253
4229
|
c("ul", {
|
|
4254
4230
|
class: l(t.value.progressButtonsList)
|
|
4255
4231
|
}, [
|
|
4256
|
-
(i(!0), u($, null, B(C.survey.visiblePages, (k,
|
|
4257
|
-
key: "listelement" +
|
|
4258
|
-
class: l(m(
|
|
4259
|
-
onClick: (E) =>
|
|
4232
|
+
(i(!0), u($, null, B(C.survey.visiblePages, (k, D) => (i(), u("li", {
|
|
4233
|
+
key: "listelement" + D,
|
|
4234
|
+
class: l(m(D)),
|
|
4235
|
+
onClick: (E) => y(D) ? v(D) : null
|
|
4260
4236
|
}, [
|
|
4261
4237
|
c("div", {
|
|
4262
4238
|
class: l(t.value.progressButtonsPageTitle),
|
|
4263
4239
|
title: k.renderedNavigationTitle
|
|
4264
|
-
},
|
|
4240
|
+
}, R(k.renderedNavigationTitle), 11, Mt),
|
|
4265
4241
|
c("div", {
|
|
4266
4242
|
class: l(t.value.progressButtonsPageDescription),
|
|
4267
4243
|
title: k.locNavigationDescription.renderedHtml
|
|
4268
|
-
},
|
|
4244
|
+
}, R(k.locNavigationDescription.renderedHtml), 11, Ht)
|
|
4269
4245
|
], 10, At))), 128))
|
|
4270
4246
|
], 2)
|
|
4271
4247
|
], 2),
|
|
@@ -4283,15 +4259,15 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4283
4259
|
survey: {}
|
|
4284
4260
|
},
|
|
4285
4261
|
setup(r) {
|
|
4286
|
-
const s = r, o = new
|
|
4262
|
+
const s = r, o = new Me(s.survey);
|
|
4287
4263
|
return (e, n) => {
|
|
4288
|
-
const t =
|
|
4264
|
+
const t = p("sv-svg-icon"), a = p("sv-popup"), y = p("sv-list"), m = X("key2click");
|
|
4289
4265
|
return i(), u("div", {
|
|
4290
4266
|
class: l(f(o).containerCss)
|
|
4291
4267
|
}, [
|
|
4292
4268
|
f(o).isMobile ? P((i(), u("div", {
|
|
4293
4269
|
key: 0,
|
|
4294
|
-
onClick: n[0] || (n[0] = (...
|
|
4270
|
+
onClick: n[0] || (n[0] = (...v) => f(o).togglePopup && f(o).togglePopup(...v))
|
|
4295
4271
|
}, [
|
|
4296
4272
|
b(t, {
|
|
4297
4273
|
iconName: f(o).icon,
|
|
@@ -4302,7 +4278,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4302
4278
|
}, null, 8, ["model"])
|
|
4303
4279
|
])), [
|
|
4304
4280
|
[m]
|
|
4305
|
-
]) : (i(), q(
|
|
4281
|
+
]) : (i(), q(y, {
|
|
4306
4282
|
key: 1,
|
|
4307
4283
|
model: f(o).listModel
|
|
4308
4284
|
}, null, 8, ["model"]))
|
|
@@ -4312,25 +4288,24 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4312
4288
|
}), Vt = { onsubmit: "return false;" }, Ot = {
|
|
4313
4289
|
key: 0,
|
|
4314
4290
|
class: "sv_custom_header"
|
|
4315
|
-
}, Ft = { class: "sv-components-column sv-components-column--expandable" }, zt = ["id"], Ut = { key: 2 }, Kt = ["innerHTML"], jt = ["innerHTML"], Qt = ["innerHTML"],
|
|
4291
|
+
}, Ft = { class: "sv-components-column sv-components-column--expandable" }, zt = ["id"], Ut = { key: 2 }, Kt = ["innerHTML"], jt = ["innerHTML"], Qt = ["innerHTML"], ce = /* @__PURE__ */ h({
|
|
4316
4292
|
__name: "Survey",
|
|
4317
4293
|
props: {
|
|
4318
4294
|
model: {},
|
|
4319
4295
|
survey: {}
|
|
4320
4296
|
},
|
|
4321
4297
|
setup(r) {
|
|
4322
|
-
const s = r, o =
|
|
4298
|
+
const s = r, o = _(), e = _(""), n = _(1), t = w(() => {
|
|
4323
4299
|
const C = s.survey ? s.survey : s.model;
|
|
4324
|
-
return
|
|
4325
|
-
}), a = w(() => t.value.activePage ? t.value.activePage.id : ""),
|
|
4300
|
+
return we(C);
|
|
4301
|
+
}), a = w(() => t.value.activePage ? t.value.activePage.id : ""), y = () => {
|
|
4326
4302
|
const C = a.value;
|
|
4327
4303
|
return !!t.value && C + n.value.toString();
|
|
4328
4304
|
}, m = w(
|
|
4329
4305
|
() => t.value.showCompletedPage && t.value.state === "completed"
|
|
4330
|
-
),
|
|
4331
|
-
return L(() => t.value),
|
|
4306
|
+
), v = w(() => t.value.css), g = w(() => "page" + y()), I = () => m.value ? (e.value || (e.value = t.value.processedCompletedHtml), e.value) : "";
|
|
4307
|
+
return L(() => t.value), H(() => {
|
|
4332
4308
|
if (!!t.value) {
|
|
4333
|
-
t.value.needRenderIcons && Me.renderIcons();
|
|
4334
4309
|
var C = o.value;
|
|
4335
4310
|
C && t.value.afterRenderSurvey(C), t.value.renderCallback = () => {
|
|
4336
4311
|
var N, k;
|
|
@@ -4340,28 +4315,29 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4340
4315
|
}), z(() => {
|
|
4341
4316
|
t.value.stopTimer(), t.value.renderCallback = void 0;
|
|
4342
4317
|
}), (C, N) => {
|
|
4343
|
-
const k =
|
|
4318
|
+
const k = p("sv-svg-bundle"), D = p("survey-popup-modal"), E = p("survey-header"), O = p("survey-page"), U = p("sv-brand-info"), re = p("sv-notifier");
|
|
4344
4319
|
return i(), u("div", {
|
|
4345
4320
|
class: l(t.value.getRootCss()),
|
|
4346
|
-
style:
|
|
4321
|
+
style: S(t.value.themeVariables),
|
|
4347
4322
|
ref_key: "root",
|
|
4348
4323
|
ref: o
|
|
4349
4324
|
}, [
|
|
4325
|
+
t.value.needRenderIcons ? (i(), q(k, { key: 0 })) : d("", !0),
|
|
4350
4326
|
c("div", {
|
|
4351
4327
|
class: l(t.value.wrapperFormCss)
|
|
4352
4328
|
}, [
|
|
4353
|
-
b(
|
|
4329
|
+
b(D),
|
|
4354
4330
|
t.value.renderBackgroundImage ? (i(), u("div", {
|
|
4355
4331
|
key: 0,
|
|
4356
|
-
class: l(
|
|
4357
|
-
style:
|
|
4332
|
+
class: l(v.value.rootBackgroundImage),
|
|
4333
|
+
style: S(t.value.backgroundImageStyle)
|
|
4358
4334
|
}, null, 6)) : d("", !0),
|
|
4359
4335
|
c("form", Vt, [
|
|
4360
4336
|
t.value.hasLogo ? d("", !0) : (i(), u("div", Ot)),
|
|
4361
4337
|
c("div", {
|
|
4362
|
-
class: l(
|
|
4338
|
+
class: l(v.value.container)
|
|
4363
4339
|
}, [
|
|
4364
|
-
t.value.headerView === "basic" ? (i(), q(
|
|
4340
|
+
t.value.headerView === "basic" ? (i(), q(E, {
|
|
4365
4341
|
key: 0,
|
|
4366
4342
|
survey: t.value
|
|
4367
4343
|
}, null, 8, ["survey"])) : d("", !0),
|
|
@@ -4387,7 +4363,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4387
4363
|
}, null, 8, ["survey"])),
|
|
4388
4364
|
c("div", {
|
|
4389
4365
|
class: l(t.value.bodyCss),
|
|
4390
|
-
style:
|
|
4366
|
+
style: S({ maxWidth: t.value.renderedWidth }),
|
|
4391
4367
|
id: a.value
|
|
4392
4368
|
}, [
|
|
4393
4369
|
(i(), q(T("sv-components-container"), {
|
|
@@ -4395,11 +4371,11 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4395
4371
|
container: "contentTop",
|
|
4396
4372
|
needRenderWrapper: !0
|
|
4397
4373
|
}, null, 8, ["survey"])),
|
|
4398
|
-
(i(), q(
|
|
4374
|
+
(i(), q(O, {
|
|
4399
4375
|
key: g.value,
|
|
4400
4376
|
survey: t.value,
|
|
4401
4377
|
page: t.value.activePage,
|
|
4402
|
-
css:
|
|
4378
|
+
css: v.value
|
|
4403
4379
|
}, null, 8, ["survey", "page", "css"])),
|
|
4404
4380
|
(i(), q(T("sv-components-container"), {
|
|
4405
4381
|
survey: t.value,
|
|
@@ -4442,12 +4418,12 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4442
4418
|
}, null, 10, Qt)) : d("", !0),
|
|
4443
4419
|
t.value.state === "empty" ? (i(), u("div", {
|
|
4444
4420
|
key: 5,
|
|
4445
|
-
class: l(
|
|
4446
|
-
},
|
|
4421
|
+
class: l(v.value.bodyEmpty)
|
|
4422
|
+
}, R(t.value.emptySurveyText), 3)) : d("", !0)
|
|
4447
4423
|
], 2)
|
|
4448
4424
|
]),
|
|
4449
|
-
t.value.showBrandInfo ? (i(), q(
|
|
4450
|
-
b(
|
|
4425
|
+
t.value.showBrandInfo ? (i(), q(U, { key: 1 })) : d("", !0),
|
|
4426
|
+
b(re, {
|
|
4451
4427
|
model: t.value.notifier
|
|
4452
4428
|
}, null, 8, ["model"])
|
|
4453
4429
|
], 2)
|
|
@@ -4462,14 +4438,14 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4462
4438
|
setup(r) {
|
|
4463
4439
|
const s = r;
|
|
4464
4440
|
return L(() => s.model), (o, e) => {
|
|
4465
|
-
const n =
|
|
4441
|
+
const n = p("sv-action-bar");
|
|
4466
4442
|
return P((i(), u("div", {
|
|
4467
4443
|
class: l(o.model.css),
|
|
4468
|
-
style:
|
|
4444
|
+
style: S({ visibility: o.model.active ? "visible" : "hidden" }),
|
|
4469
4445
|
role: "alert",
|
|
4470
4446
|
"aria-live": "polite"
|
|
4471
4447
|
}, [
|
|
4472
|
-
c("span", null,
|
|
4448
|
+
c("span", null, R(o.model.message), 1),
|
|
4473
4449
|
b(n, {
|
|
4474
4450
|
model: o.model.actionBar
|
|
4475
4451
|
}, null, 8, ["model"])
|
|
@@ -4478,7 +4454,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4478
4454
|
]);
|
|
4479
4455
|
};
|
|
4480
4456
|
}
|
|
4481
|
-
}),
|
|
4457
|
+
}), Jt = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], Xt = { key: 1 }, Yt = /* @__PURE__ */ h({
|
|
4482
4458
|
__name: "QuestionOther",
|
|
4483
4459
|
props: {
|
|
4484
4460
|
question: {},
|
|
@@ -4499,15 +4475,15 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4499
4475
|
placeholder: s.question.otherPlaceholder,
|
|
4500
4476
|
"aria-label": s.question.ariaLabel || s.question.a11y_input_ariaLabel,
|
|
4501
4477
|
"aria-required": s.question.ariaRequired || s.question.a11y_input_ariaRequired,
|
|
4502
|
-
style:
|
|
4478
|
+
style: S({ resize: s.question.resizeStyle }),
|
|
4503
4479
|
onChange: o[0] || (o[0] = (e) => {
|
|
4504
4480
|
s.question.onOtherValueChange(e);
|
|
4505
4481
|
}),
|
|
4506
4482
|
onInput: o[1] || (o[1] = (e) => {
|
|
4507
4483
|
s.question.onOtherValueInput(e);
|
|
4508
4484
|
})
|
|
4509
|
-
}, null, 46,
|
|
4510
|
-
s.question.isReadOnlyRenderDiv() ? (i(), u("div",
|
|
4485
|
+
}, null, 46, Jt)),
|
|
4486
|
+
s.question.isReadOnlyRenderDiv() ? (i(), u("div", Xt, R(s.question.otherValue), 1)) : d("", !0)
|
|
4511
4487
|
], 2));
|
|
4512
4488
|
}
|
|
4513
4489
|
}), Zt = ["disabled", "value", "title"], xt = /* @__PURE__ */ h({
|
|
@@ -4528,7 +4504,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4528
4504
|
onClick: n[0] || (n[0] = (...t) => e.item.action && e.item.action(...t))
|
|
4529
4505
|
}, null, 42, Zt)) : d("", !0);
|
|
4530
4506
|
}
|
|
4531
|
-
}),
|
|
4507
|
+
}), pe = /* @__PURE__ */ h({
|
|
4532
4508
|
__name: "PopupSurvey",
|
|
4533
4509
|
props: {
|
|
4534
4510
|
survey: {},
|
|
@@ -4544,13 +4520,13 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4544
4520
|
return (I = o.value) == null ? void 0 : I.isExpanded;
|
|
4545
4521
|
}), a = () => {
|
|
4546
4522
|
o.value.changeExpandCollapse();
|
|
4547
|
-
},
|
|
4523
|
+
}, y = () => {
|
|
4548
4524
|
o.value.hide();
|
|
4549
|
-
}, m = () => "SurveyComponent",
|
|
4525
|
+
}, m = () => "SurveyComponent", v = () => {
|
|
4550
4526
|
o.value.onScroll();
|
|
4551
4527
|
};
|
|
4552
4528
|
L(() => o.value);
|
|
4553
|
-
const g =
|
|
4529
|
+
const g = G(
|
|
4554
4530
|
() => s.survey,
|
|
4555
4531
|
(I) => {
|
|
4556
4532
|
const C = new He(null, I);
|
|
@@ -4563,10 +4539,10 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4563
4539
|
return z(() => {
|
|
4564
4540
|
g();
|
|
4565
4541
|
}), (I, C) => {
|
|
4566
|
-
const N =
|
|
4542
|
+
const N = p("survey-string"), k = p("sv-svg-icon");
|
|
4567
4543
|
return o.value.isShowing ? (i(), u("div", {
|
|
4568
4544
|
key: 0,
|
|
4569
|
-
style:
|
|
4545
|
+
style: S([{ position: "fixed", bottom: "3px", right: "10px" }, {
|
|
4570
4546
|
maxWidth: o.value.renderedWidth,
|
|
4571
4547
|
width: o.value.renderedWidth
|
|
4572
4548
|
}]),
|
|
@@ -4595,7 +4571,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4595
4571
|
o.value.allowClose ? (i(), u("span", {
|
|
4596
4572
|
key: 0,
|
|
4597
4573
|
class: l(o.value.cssHeaderButton),
|
|
4598
|
-
onClick:
|
|
4574
|
+
onClick: y,
|
|
4599
4575
|
style: { transform: "rotate(45deg)", float: "right", cursor: "pointer", "user-select": "none", width: "24px", height: "24px" }
|
|
4600
4576
|
}, [
|
|
4601
4577
|
b(k, {
|
|
@@ -4618,7 +4594,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4618
4594
|
t.value ? (i(), u("div", {
|
|
4619
4595
|
key: 0,
|
|
4620
4596
|
class: l(o.value.cssBody),
|
|
4621
|
-
onScroll:
|
|
4597
|
+
onScroll: v
|
|
4622
4598
|
}, [
|
|
4623
4599
|
(i(), q(T(m()), { survey: I.survey }, null, 8, ["survey"]))
|
|
4624
4600
|
], 34)) : d("", !0)
|
|
@@ -4632,16 +4608,16 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4632
4608
|
css: {}
|
|
4633
4609
|
},
|
|
4634
4610
|
setup(r) {
|
|
4635
|
-
const s = r, o =
|
|
4611
|
+
const s = r, o = _(), e = w(
|
|
4636
4612
|
() => s.question.customWidget.isDefaultRender
|
|
4637
4613
|
), n = w(
|
|
4638
4614
|
() => !!s.question.customWidget.htmlTemplate
|
|
4639
4615
|
), t = w(() => s.question.customWidget.htmlTemplate), a = w(() => "survey-" + s.question.getTemplate());
|
|
4640
|
-
return
|
|
4616
|
+
return H(() => {
|
|
4641
4617
|
s.question.customWidget.afterRender(s.question, o.value);
|
|
4642
4618
|
}), J(() => {
|
|
4643
4619
|
s.question.customWidget.willUnmount(s.question, o.value);
|
|
4644
|
-
}), (
|
|
4620
|
+
}), (y, m) => (i(), u("div", {
|
|
4645
4621
|
ref_key: "root",
|
|
4646
4622
|
ref: o
|
|
4647
4623
|
}, [
|
|
@@ -4651,8 +4627,8 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4651
4627
|
}, null, 8, ei)) : d("", !0),
|
|
4652
4628
|
e.value ? (i(), q(T(a.value), {
|
|
4653
4629
|
key: 1,
|
|
4654
|
-
question:
|
|
4655
|
-
css:
|
|
4630
|
+
question: y.question,
|
|
4631
|
+
css: y.css
|
|
4656
4632
|
}, null, 8, ["question", "css"])) : d("", !0)
|
|
4657
4633
|
], 512));
|
|
4658
4634
|
}
|
|
@@ -4660,16 +4636,16 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4660
4636
|
__name: "PopupModal",
|
|
4661
4637
|
setup(r) {
|
|
4662
4638
|
const s = j();
|
|
4663
|
-
function o(n, t, a,
|
|
4639
|
+
function o(n, t, a, y, m, v, g = "popup") {
|
|
4664
4640
|
const I = We(
|
|
4665
4641
|
n,
|
|
4666
4642
|
t,
|
|
4667
4643
|
a,
|
|
4668
|
-
|
|
4644
|
+
y,
|
|
4669
4645
|
void 0,
|
|
4670
4646
|
void 0,
|
|
4671
4647
|
m,
|
|
4672
|
-
|
|
4648
|
+
v,
|
|
4673
4649
|
g
|
|
4674
4650
|
);
|
|
4675
4651
|
return e(I);
|
|
@@ -4689,8 +4665,8 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4689
4665
|
})), K.showDialog || (K.showDialog = e, z(() => {
|
|
4690
4666
|
K.showDialog = void 0;
|
|
4691
4667
|
})), (n, t) => {
|
|
4692
|
-
const a =
|
|
4693
|
-
return s.value ? (i(), q(
|
|
4668
|
+
const a = p("sv-popup-container");
|
|
4669
|
+
return s.value ? (i(), q(Se, {
|
|
4694
4670
|
key: 0,
|
|
4695
4671
|
to: s.value.container
|
|
4696
4672
|
}, [
|
|
@@ -4708,7 +4684,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4708
4684
|
const s = r;
|
|
4709
4685
|
return L(() => s.counter), (o, e) => (i(), u("div", {
|
|
4710
4686
|
class: l(o.remainingCharacterCounter)
|
|
4711
|
-
},
|
|
4687
|
+
}, R(o.counter.remainingCharacterCounter), 3));
|
|
4712
4688
|
}
|
|
4713
4689
|
}), ti = /* @__PURE__ */ h({
|
|
4714
4690
|
inheritAttrs: !1,
|
|
@@ -4718,11 +4694,11 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4718
4694
|
css: {}
|
|
4719
4695
|
},
|
|
4720
4696
|
setup(r) {
|
|
4721
|
-
const s = r, o =
|
|
4697
|
+
const s = r, o = _(null);
|
|
4722
4698
|
A(s, o);
|
|
4723
4699
|
const e = w(() => s.question.contentPanel);
|
|
4724
4700
|
return (n, t) => {
|
|
4725
|
-
const a =
|
|
4701
|
+
const a = p("survey-panel");
|
|
4726
4702
|
return i(), q(a, {
|
|
4727
4703
|
ref_key: "root",
|
|
4728
4704
|
ref: o,
|
|
@@ -4739,7 +4715,7 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4739
4715
|
css: {}
|
|
4740
4716
|
},
|
|
4741
4717
|
setup(r) {
|
|
4742
|
-
const s = r, o =
|
|
4718
|
+
const s = r, o = _(null);
|
|
4743
4719
|
A(s, o);
|
|
4744
4720
|
const e = w(() => s.question.contentQuestion), n = (t) => te(t);
|
|
4745
4721
|
return (t, a) => (i(), q(T(n(e.value)), {
|
|
@@ -4750,14 +4726,14 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4750
4726
|
}
|
|
4751
4727
|
}), ri = /* @__PURE__ */ c("use", { "xlink:href": "#icon-timercircle" }, null, -1), li = [
|
|
4752
4728
|
ri
|
|
4753
|
-
],
|
|
4729
|
+
], ve = 440, ai = /* @__PURE__ */ h({
|
|
4754
4730
|
__name: "TimerPanel",
|
|
4755
4731
|
props: {
|
|
4756
4732
|
model: {},
|
|
4757
4733
|
css: {}
|
|
4758
4734
|
},
|
|
4759
4735
|
setup(r) {
|
|
4760
|
-
const s = r, o = w(() =>
|
|
4736
|
+
const s = r, o = w(() => ve * s.model.progress), e = w(() => s.model.text);
|
|
4761
4737
|
return L(() => s.model), (n, t) => n.model.isRunning && n.model.showTimerAsClock ? (i(), u("div", {
|
|
4762
4738
|
key: 0,
|
|
4763
4739
|
class: l(n.model.rootCss)
|
|
@@ -4765,29 +4741,29 @@ const nt = /* @__PURE__ */ ge(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use
|
|
|
4765
4741
|
n.model.showProgress ? (i(), u("svg", {
|
|
4766
4742
|
key: 0,
|
|
4767
4743
|
class: l(n.model.getProgressCss()),
|
|
4768
|
-
style:
|
|
4744
|
+
style: S({ strokeDasharray: ve, strokeDashoffset: o.value })
|
|
4769
4745
|
}, li, 6)) : d("", !0),
|
|
4770
4746
|
c("div", {
|
|
4771
4747
|
class: l(n.model.textContainerCss)
|
|
4772
4748
|
}, [
|
|
4773
4749
|
c("span", {
|
|
4774
4750
|
class: l(n.model.majorTextCss)
|
|
4775
|
-
},
|
|
4751
|
+
}, R(n.model.clockMajorText), 3),
|
|
4776
4752
|
n.model.clockMinorText ? (i(), u("span", {
|
|
4777
4753
|
key: 0,
|
|
4778
4754
|
class: l(n.model.minorTextCss)
|
|
4779
|
-
},
|
|
4755
|
+
}, R(n.model.clockMinorText), 3)) : d("", !0)
|
|
4780
4756
|
], 2)
|
|
4781
4757
|
], 2)) : P((i(), u("div", {
|
|
4782
4758
|
key: 1,
|
|
4783
4759
|
class: l(n.model.survey.getCss().timerRoot)
|
|
4784
|
-
},
|
|
4760
|
+
}, R(e.value), 3)), [
|
|
4785
4761
|
[M, n.model.isRunning && !n.model.showTimerAsClock]
|
|
4786
4762
|
]);
|
|
4787
4763
|
}
|
|
4788
4764
|
}), ui = {}, di = { class: "sd-loading-indicator" };
|
|
4789
4765
|
function mi(r, s) {
|
|
4790
|
-
const o =
|
|
4766
|
+
const o = p("sv-svg-icon");
|
|
4791
4767
|
return i(), u("div", di, [
|
|
4792
4768
|
b(o, {
|
|
4793
4769
|
iconName: "icon-loading",
|
|
@@ -4795,7 +4771,7 @@ function mi(r, s) {
|
|
|
4795
4771
|
})
|
|
4796
4772
|
]);
|
|
4797
4773
|
}
|
|
4798
|
-
const ci = /* @__PURE__ */
|
|
4774
|
+
const ci = /* @__PURE__ */ he(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @__PURE__ */ h({
|
|
4799
4775
|
__name: "Header",
|
|
4800
4776
|
props: {
|
|
4801
4777
|
model: {},
|
|
@@ -4807,24 +4783,24 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4807
4783
|
const o = s.model;
|
|
4808
4784
|
return o.survey = s.survey, s.model;
|
|
4809
4785
|
}), (o, e) => {
|
|
4810
|
-
const n =
|
|
4786
|
+
const n = p("sv-header-cell"), t = p("sv-header-mobile");
|
|
4811
4787
|
return i(), u("div", {
|
|
4812
4788
|
class: l(o.model.headerClasses),
|
|
4813
|
-
style:
|
|
4789
|
+
style: S({ height: o.model.renderedHeight })
|
|
4814
4790
|
}, [
|
|
4815
4791
|
o.model.backgroundImage ? (i(), u("div", {
|
|
4816
4792
|
key: 0,
|
|
4817
4793
|
class: l(o.model.backgroundImageClasses),
|
|
4818
|
-
style:
|
|
4794
|
+
style: S(o.model.backgroundImageStyle)
|
|
4819
4795
|
}, null, 6)) : d("", !0),
|
|
4820
4796
|
o.survey.isMobile ? d("", !0) : (i(), u("div", {
|
|
4821
4797
|
key: 1,
|
|
4822
4798
|
class: l(o.model.contentClasses),
|
|
4823
|
-
style:
|
|
4799
|
+
style: S({ maxWidth: o.model.maxWidth })
|
|
4824
4800
|
}, [
|
|
4825
|
-
(i(!0), u($, null, B(o.model.cells, (a,
|
|
4801
|
+
(i(!0), u($, null, B(o.model.cells, (a, y) => (i(), q(n, {
|
|
4826
4802
|
model: a,
|
|
4827
|
-
key:
|
|
4803
|
+
key: y
|
|
4828
4804
|
}, null, 8, ["model"]))), 128))
|
|
4829
4805
|
], 6)),
|
|
4830
4806
|
o.survey.isMobile ? (i(), u("div", pi, [
|
|
@@ -4843,14 +4819,14 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4843
4819
|
},
|
|
4844
4820
|
setup(r) {
|
|
4845
4821
|
return (s, o) => {
|
|
4846
|
-
const e =
|
|
4822
|
+
const e = p("survey-element-title"), n = p("survey-string");
|
|
4847
4823
|
return i(), u("div", {
|
|
4848
4824
|
class: l(s.model.css),
|
|
4849
|
-
style:
|
|
4825
|
+
style: S(s.model.style)
|
|
4850
4826
|
}, [
|
|
4851
4827
|
c("div", {
|
|
4852
4828
|
class: "sv-header__cell-content",
|
|
4853
|
-
style:
|
|
4829
|
+
style: S(s.model.contentStyle)
|
|
4854
4830
|
}, [
|
|
4855
4831
|
s.model.showLogo ? (i(), u("div", yi, [
|
|
4856
4832
|
c("div", {
|
|
@@ -4862,14 +4838,14 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4862
4838
|
width: s.model.survey.renderedLogoWidth,
|
|
4863
4839
|
height: s.model.survey.renderedLogoHeight,
|
|
4864
4840
|
alt: s.model.survey.locTitle.renderedHtml,
|
|
4865
|
-
style:
|
|
4841
|
+
style: S({ objectFit: s.model.survey.logoFit, width: s.model.survey.renderedStyleLogoWidth, height: s.model.survey.renderedStyleLogoHeight })
|
|
4866
4842
|
}, null, 14, qi)
|
|
4867
4843
|
], 2)
|
|
4868
4844
|
])) : d("", !0),
|
|
4869
4845
|
s.model.showTitle ? (i(), u("div", {
|
|
4870
4846
|
key: 1,
|
|
4871
4847
|
class: "sv-header__title",
|
|
4872
|
-
style:
|
|
4848
|
+
style: S({ maxWidth: s.model.textAreaWidth })
|
|
4873
4849
|
}, [
|
|
4874
4850
|
b(e, {
|
|
4875
4851
|
element: s.model.survey,
|
|
@@ -4879,9 +4855,9 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4879
4855
|
s.model.showDescription ? (i(), u("div", {
|
|
4880
4856
|
key: 2,
|
|
4881
4857
|
class: "sv-header__description",
|
|
4882
|
-
style:
|
|
4858
|
+
style: S({ maxWidth: s.model.textAreaWidth })
|
|
4883
4859
|
}, [
|
|
4884
|
-
s.model.survey.renderedHasDescription ? (i(), u("
|
|
4860
|
+
s.model.survey.renderedHasDescription ? (i(), u("div", {
|
|
4885
4861
|
key: 0,
|
|
4886
4862
|
class: l(s.model.survey.css.description)
|
|
4887
4863
|
}, [
|
|
@@ -4904,7 +4880,7 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4904
4880
|
},
|
|
4905
4881
|
setup(r) {
|
|
4906
4882
|
return (s, o) => {
|
|
4907
|
-
const e =
|
|
4883
|
+
const e = p("survey-element-title"), n = p("survey-string");
|
|
4908
4884
|
return i(), u("div", hi, [
|
|
4909
4885
|
s.model.survey.hasLogo ? (i(), u("div", Ci, [
|
|
4910
4886
|
c("div", {
|
|
@@ -4916,14 +4892,14 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4916
4892
|
width: s.model.survey.renderedLogoWidth,
|
|
4917
4893
|
height: s.model.survey.renderedLogoHeight,
|
|
4918
4894
|
alt: s.model.survey.locTitle.renderedHtml,
|
|
4919
|
-
style:
|
|
4895
|
+
style: S({ objectFit: s.model.survey.logoFit, width: s.model.survey.renderedStyleLogoWidth, height: s.model.survey.renderedStyleLogoHeight })
|
|
4920
4896
|
}, null, 14, bi)
|
|
4921
4897
|
], 2)
|
|
4922
4898
|
])) : d("", !0),
|
|
4923
4899
|
s.model.survey.hasTitle ? (i(), u("div", {
|
|
4924
4900
|
key: 1,
|
|
4925
4901
|
class: "sv-header__title",
|
|
4926
|
-
style:
|
|
4902
|
+
style: S({ maxWidth: s.model.renderedtextAreaWidth })
|
|
4927
4903
|
}, [
|
|
4928
4904
|
b(e, {
|
|
4929
4905
|
element: s.model.survey,
|
|
@@ -4933,9 +4909,9 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4933
4909
|
s.model.survey.renderedHasDescription ? (i(), u("div", {
|
|
4934
4910
|
key: 2,
|
|
4935
4911
|
class: "sv-header__description",
|
|
4936
|
-
style:
|
|
4912
|
+
style: S({ maxWidth: s.model.renderedtextAreaWidth })
|
|
4937
4913
|
}, [
|
|
4938
|
-
s.model.survey.renderedHasDescription ? (i(), u("
|
|
4914
|
+
s.model.survey.renderedHasDescription ? (i(), u("div", {
|
|
4939
4915
|
key: 0,
|
|
4940
4916
|
class: l(s.model.survey.css.description)
|
|
4941
4917
|
}, [
|
|
@@ -4958,30 +4934,30 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4958
4934
|
const s = r, o = (a) => a.isPanel ? "survey-panel" : "survey-question", e = w(() => {
|
|
4959
4935
|
const a = s.element.survey;
|
|
4960
4936
|
if (a) {
|
|
4961
|
-
const
|
|
4962
|
-
if (
|
|
4963
|
-
return
|
|
4937
|
+
const y = a.getElementWrapperComponentName(s.element);
|
|
4938
|
+
if (y)
|
|
4939
|
+
return y;
|
|
4964
4940
|
}
|
|
4965
4941
|
return o(s.element);
|
|
4966
4942
|
}), n = (a) => a.cssClasses ? a.rootStyle : {}, t = w(() => {
|
|
4967
|
-
const a = s.element,
|
|
4943
|
+
const a = s.element, y = a.survey;
|
|
4968
4944
|
let m;
|
|
4969
|
-
return
|
|
4945
|
+
return y && (m = y.getElementWrapperComponentData(a)), {
|
|
4970
4946
|
componentName: o(a),
|
|
4971
4947
|
componentData: {
|
|
4972
4948
|
element: a,
|
|
4973
|
-
survey:
|
|
4949
|
+
survey: y,
|
|
4974
4950
|
row: s.row,
|
|
4975
4951
|
css: s.css,
|
|
4976
4952
|
data: m
|
|
4977
4953
|
}
|
|
4978
4954
|
};
|
|
4979
4955
|
});
|
|
4980
|
-
return (a,
|
|
4981
|
-
style:
|
|
4956
|
+
return (a, y) => (i(), u("div", {
|
|
4957
|
+
style: S(n(a.element)),
|
|
4982
4958
|
class: l(a.element.cssClasses.questionWrapper)
|
|
4983
4959
|
}, [
|
|
4984
|
-
a.row.isNeedRender ? (i(), q(T(e.value), F(
|
|
4960
|
+
a.row.isNeedRender ? (i(), q(T(e.value), F(W({ key: 0 }, t.value)), null, 16)) : a.element.skeletonComponentName ? (i(), q(T(a.element.skeletonComponentName), {
|
|
4985
4961
|
key: 1,
|
|
4986
4962
|
element: a.element,
|
|
4987
4963
|
css: a.css
|
|
@@ -4995,8 +4971,8 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
4995
4971
|
componentData: {}
|
|
4996
4972
|
},
|
|
4997
4973
|
setup(r) {
|
|
4998
|
-
const s =
|
|
4999
|
-
return (e, n) => o.value && !e.componentName ?
|
|
4974
|
+
const s = Re(), o = w(() => !!s.default);
|
|
4975
|
+
return (e, n) => o.value && !e.componentName ? Te(e.$slots, "default", { key: 0 }) : (i(), q(T(e.componentName), F(W({ key: 1 }, e.componentData)), null, 16));
|
|
5000
4976
|
}
|
|
5001
4977
|
}), wi = /* @__PURE__ */ h({
|
|
5002
4978
|
__name: "FileCleanButton",
|
|
@@ -5006,13 +4982,13 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5006
4982
|
},
|
|
5007
4983
|
setup(r) {
|
|
5008
4984
|
return (s, o) => {
|
|
5009
|
-
const e =
|
|
4985
|
+
const e = p("sv-svg-icon");
|
|
5010
4986
|
return i(), u("button", {
|
|
5011
4987
|
type: "button",
|
|
5012
4988
|
class: l(s.css),
|
|
5013
4989
|
onClick: o[0] || (o[0] = (...n) => s.question.doClean && s.question.doClean(...n))
|
|
5014
4990
|
}, [
|
|
5015
|
-
c("span", null,
|
|
4991
|
+
c("span", null, R(s.question.clearButtonCaption), 1),
|
|
5016
4992
|
s.question.cssClasses.removeButtonIconId ? (i(), q(e, {
|
|
5017
4993
|
key: 0,
|
|
5018
4994
|
iconName: s.question.cssClasses.removeButtonIconId,
|
|
@@ -5029,7 +5005,7 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5029
5005
|
},
|
|
5030
5006
|
setup(r) {
|
|
5031
5007
|
return (s, o) => {
|
|
5032
|
-
const e =
|
|
5008
|
+
const e = p("sv-action");
|
|
5033
5009
|
return i(), u("div", {
|
|
5034
5010
|
class: l(s.question.cssClasses.videoContainer)
|
|
5035
5011
|
}, [
|
|
@@ -5065,7 +5041,7 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5065
5041
|
}
|
|
5066
5042
|
);
|
|
5067
5043
|
return (e, n) => {
|
|
5068
|
-
const t =
|
|
5044
|
+
const t = p("sv-svg-icon"), a = X("key2click");
|
|
5069
5045
|
return P((i(), u("label", {
|
|
5070
5046
|
tabindex: "0",
|
|
5071
5047
|
class: l(o.value.getChooseFileCss()),
|
|
@@ -5078,20 +5054,20 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5078
5054
|
iconName: o.value.cssClasses.chooseFileIconId,
|
|
5079
5055
|
size: "auto"
|
|
5080
5056
|
}, null, 8, ["title", "iconName"])) : d("", !0),
|
|
5081
|
-
c("span", null,
|
|
5057
|
+
c("span", null, R(o.value.chooseButtonText), 1)
|
|
5082
5058
|
], 10, Ti)), [
|
|
5083
5059
|
[a]
|
|
5084
5060
|
]);
|
|
5085
5061
|
};
|
|
5086
5062
|
}
|
|
5087
|
-
}),
|
|
5063
|
+
}), _i = ["onClick", "href", "title", "download"], Di = ["src"], Bi = ["onClick"], Li = ["onClick", "href", "title", "download"], Ni = /* @__PURE__ */ h({
|
|
5088
5064
|
__name: "FilePreview",
|
|
5089
5065
|
props: {
|
|
5090
5066
|
question: {}
|
|
5091
5067
|
},
|
|
5092
5068
|
setup(r) {
|
|
5093
5069
|
return (s, o) => {
|
|
5094
|
-
const e =
|
|
5070
|
+
const e = p("sv-svg-icon");
|
|
5095
5071
|
return s.question.showPreviewContainer ? (i(), u("div", {
|
|
5096
5072
|
key: 0,
|
|
5097
5073
|
class: l(s.question.cssClasses.fileList || void 0)
|
|
@@ -5109,8 +5085,8 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5109
5085
|
href: n.content,
|
|
5110
5086
|
title: n.name,
|
|
5111
5087
|
download: n.name,
|
|
5112
|
-
style:
|
|
5113
|
-
},
|
|
5088
|
+
style: S({ width: s.question.imageWidth })
|
|
5089
|
+
}, R(n.name), 13, _i)
|
|
5114
5090
|
], 2)) : d("", !0),
|
|
5115
5091
|
c("div", {
|
|
5116
5092
|
class: l(s.question.getImageWrapperCss(n))
|
|
@@ -5118,12 +5094,12 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5118
5094
|
s.question.canPreviewImage(n) ? (i(), u("img", {
|
|
5119
5095
|
key: 0,
|
|
5120
5096
|
src: n.content,
|
|
5121
|
-
style:
|
|
5097
|
+
style: S({
|
|
5122
5098
|
height: s.question.imageHeight,
|
|
5123
5099
|
width: s.question.imageWidth
|
|
5124
5100
|
}),
|
|
5125
5101
|
alt: "File preview"
|
|
5126
|
-
}, null, 12,
|
|
5102
|
+
}, null, 12, Di)) : d("", !0),
|
|
5127
5103
|
s.question.defaultImage(n) ? (i(), q(e, {
|
|
5128
5104
|
key: 1,
|
|
5129
5105
|
iconName: s.question.cssClasses.defaultImageIconId,
|
|
@@ -5137,7 +5113,7 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5137
5113
|
}, [
|
|
5138
5114
|
c("span", {
|
|
5139
5115
|
class: l(s.question.cssClasses.removeFile)
|
|
5140
|
-
},
|
|
5116
|
+
}, R(s.question.removeFileCaption), 3),
|
|
5141
5117
|
s.question.cssClasses.removeFileSvgIconId ? (i(), q(e, {
|
|
5142
5118
|
key: 0,
|
|
5143
5119
|
title: s.question.removeFileCaption,
|
|
@@ -5156,8 +5132,8 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5156
5132
|
href: n.content,
|
|
5157
5133
|
title: n.name,
|
|
5158
5134
|
download: n.name,
|
|
5159
|
-
style:
|
|
5160
|
-
},
|
|
5135
|
+
style: S({ width: s.question.imageWidth })
|
|
5136
|
+
}, R(n.name), 13, Li)
|
|
5161
5137
|
], 2)) : d("", !0)
|
|
5162
5138
|
], 2)), [
|
|
5163
5139
|
[M, n && s.question.isPreviewVisible(t)]
|
|
@@ -5171,20 +5147,20 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5171
5147
|
question: {}
|
|
5172
5148
|
},
|
|
5173
5149
|
setup(r) {
|
|
5174
|
-
const s = r, o =
|
|
5150
|
+
const s = r, o = _();
|
|
5175
5151
|
return A(s, o), (e, n) => {
|
|
5176
|
-
const t =
|
|
5152
|
+
const t = p("sv-button-group-item");
|
|
5177
5153
|
return i(), u("div", {
|
|
5178
5154
|
role: "group",
|
|
5179
5155
|
class: l(e.question.cssClasses.root),
|
|
5180
5156
|
ref_key: "root",
|
|
5181
5157
|
ref: o
|
|
5182
5158
|
}, [
|
|
5183
|
-
(i(!0), u($, null, B(e.question.visibleChoices, (a,
|
|
5159
|
+
(i(!0), u($, null, B(e.question.visibleChoices, (a, y) => (i(), q(t, {
|
|
5184
5160
|
question: e.question,
|
|
5185
|
-
key:
|
|
5161
|
+
key: y,
|
|
5186
5162
|
item: a,
|
|
5187
|
-
index:
|
|
5163
|
+
index: y
|
|
5188
5164
|
}, null, 8, ["question", "item", "index"]))), 128))
|
|
5189
5165
|
], 2);
|
|
5190
5166
|
};
|
|
@@ -5207,7 +5183,7 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5207
5183
|
}
|
|
5208
5184
|
});
|
|
5209
5185
|
return (n, t) => {
|
|
5210
|
-
const a =
|
|
5186
|
+
const a = p("sv-svg-icon"), y = p("survey-string");
|
|
5211
5187
|
return i(), u("label", {
|
|
5212
5188
|
role: "radio",
|
|
5213
5189
|
class: l(o.value.css.label),
|
|
@@ -5227,7 +5203,7 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5227
5203
|
"onUpdate:modelValue": t[0] || (t[0] = (m) => e.value = m),
|
|
5228
5204
|
value: o.value.value
|
|
5229
5205
|
}, null, 10, Mi), [
|
|
5230
|
-
[
|
|
5206
|
+
[ee, e.value]
|
|
5231
5207
|
]),
|
|
5232
5208
|
c("div", {
|
|
5233
5209
|
class: l(o.value.css.decorator)
|
|
@@ -5243,7 +5219,7 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5243
5219
|
class: l(o.value.css.caption),
|
|
5244
5220
|
title: o.value.caption.renderedHtml
|
|
5245
5221
|
}, [
|
|
5246
|
-
b(
|
|
5222
|
+
b(y, {
|
|
5247
5223
|
locString: o.value.caption
|
|
5248
5224
|
}, null, 8, ["locString"])
|
|
5249
5225
|
], 10, Hi)) : d("", !0)
|
|
@@ -5268,7 +5244,7 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5268
5244
|
width: o.value.renderedLogoWidth,
|
|
5269
5245
|
height: o.value.renderedLogoHeight,
|
|
5270
5246
|
alt: o.value.locTitle.renderedHtml,
|
|
5271
|
-
style:
|
|
5247
|
+
style: S({
|
|
5272
5248
|
objectFit: o.value.logoFit,
|
|
5273
5249
|
width: o.value.renderedStyleLogoWidth,
|
|
5274
5250
|
height: o.value.renderedStyleLogoHeight
|
|
@@ -5276,27 +5252,41 @@ const ci = /* @__PURE__ */ ge(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @_
|
|
|
5276
5252
|
}, null, 14, Ei)
|
|
5277
5253
|
], 2));
|
|
5278
5254
|
}
|
|
5255
|
+
}), Oi = /* @__PURE__ */ h({
|
|
5256
|
+
__name: "SvgBundle",
|
|
5257
|
+
setup(r) {
|
|
5258
|
+
const s = _();
|
|
5259
|
+
return H(() => {
|
|
5260
|
+
s.value.innerHTML = Oe.iconsRenderedHtml();
|
|
5261
|
+
}), (o, e) => P((i(), u("svg", {
|
|
5262
|
+
id: "sv-icon-holder-global-container",
|
|
5263
|
+
ref_key: "root",
|
|
5264
|
+
ref: s
|
|
5265
|
+
}, null, 512)), [
|
|
5266
|
+
[M, !1]
|
|
5267
|
+
]);
|
|
5268
|
+
}
|
|
5279
5269
|
});
|
|
5280
|
-
|
|
5281
|
-
function
|
|
5282
|
-
r.component("SurveyComponent",
|
|
5270
|
+
Fe.platform = "vue3";
|
|
5271
|
+
function Fi(r) {
|
|
5272
|
+
r.component("SurveyComponent", ce), r.component("sv-svg-bundle", Oi), r.component("PopupSurveyComponent", pe), r.component("survey", ce), r.component("popup-survey", pe), r.component("survey-header", Qe), r.component("sv-logo-image", Vi), r.component("survey-page", je), r.component("survey-row", Ge), r.component("survey-question", Ye), r.component("survey-panel", ss), r.component("survey-element-header", ns), r.component("survey-string", os), r.component("sv-string-viewer", rs), r.component("sv-string-editor", as), r.component("sv-skeleton", ds), r.component("survey-text", ps), r.component("survey-text-input", gs), r.component("survey-checkbox", fs), r.component("survey-checkbox-item", Ss), r.component("survey-radiogroup", Rs), r.component("survey-radiogroup-item", _s), r.component("survey-signaturepad", Ns), r.component("survey-html", As), r.component("survey-image", Es), r.component("survey-expression", Vs), r.component("survey-file", zs), r.component("sv-file-choose-btn", $i), r.component("sv-file-clean-btn", wi), r.component("sv-file-preview", Ni), r.component("sv-file-video", Ri), r.component("survey-imagepicker", Ks), r.component("survey-imagepicker-item", Xs), r.component("survey-comment", xs), r.component("survey-dropdown", en), r.component("sv-dropdown-select", tn), r.component("sv-dropdown-option-item", ln), r.component("sv-dropdown", cn), r.component("survey-tagbox", pn), r.component("sv-tagbox", qn), r.component("sv-tagbox-item", kn), r.component("sv-tagbox-filter", Cn), r.component("survey-ranking", fn), r.component("survey-ranking-item", $n), r.component("survey-rating", Bn), r.component("sv-rating-item", Nn), r.component("sv-rating-item-smiley", An), r.component("sv-rating-item-star", Hn), r.component("sv-rating-dropdown", Fn), r.component("sv-rating-dropdown-item", On), r.component("survey-boolean", Un), r.component("sv-boolean-radio", Kn), r.component("sv-boolean-radio-item", Gn), r.component("sv-boolean-checkbox", xn), r.component("survey-multipletext", eo), r.component("survey-multipletext-item", no), r.component("survey-matrix", mo), r.component("survey-matrixdropdown", co), r.component("survey-matrixtable", qo), r.component("survey-matrixheaderrequired", ho), r.component("survey-matrixcell", bo), r.component("survey-matrixdynamic", ko), r.component("sv-matrix-remove-button", Io), r.component("sv-matrix-drag-drop-icon", So), r.component("sv-matrix-detail-button", To), r.component("survey-paneldynamic", $o), r.component("survey-paneldynamicprogress", _o), r.component("survey-paneldynamicprogress-v2", Do), r.component("sv-paneldynamic-add-btn", Bo), r.component("sv-paneldynamic-next-btn", No), r.component("sv-paneldynamic-prev-btn", Ao), r.component("sv-paneldynamic-remove-btn", Mo), r.component("sv-paneldynamic-progress-text", Ho), r.component("sv-components-container", Pt), r.component("sv-progress-buttons", Wt), r.component("sv-progress-toc", Et), r.component("sv-progress-pages", Z), r.component("sv-progress-questions", Z), r.component("sv-progress-correctquestions", Z), r.component("sv-progress-requiredquestions", Z), r.component("survey-errors", Eo), r.component("survey-question-comment", Fo), r.component("survey-element-title", zo), r.component("survey-element-title-content", Qo), r.component("sv-title-actions", Xo), r.component("sv-brand-info", nt), r.component("sv-svg-icon", it), r.component("sv-action-bar", rt), r.component("sv-action", ut), r.component("sv-action-bar-item", ct), r.component("sv-action-bar-item-dropdown", yt), r.component("sv-action-bar-separator", qt), r.component("sv-list", bt), r.component("sv-list-item", It), r.component("sv-popup", wt), r.component("sv-popup-container", Bt), r.component("popup-pointer", Lt), r.component("sv-notifier", Gt), r.component("survey-other-choice", Yt), r.component("sv-nav-btn", xt), r.component("survey-customwidget", si), r.component("survey-popup-modal", ni), r.component("sv-character-counter", oi), r.component("survey-composite", ti), r.component("survey-custom", ii), r.component("sv-timerpanel", ai), r.component("sv-loading-indicator", ci), r.component("sv-header", vi), r.component("sv-header-cell", gi), r.component("sv-header-mobile", ki), r.component("sv-template-renderer", Ii), r.component("survey-element", fi), r.component("survey-buttongroup", Pi), r.component("sv-button-group-item", Wi), r.directive("key2click", {
|
|
5283
5273
|
mounted: function(s, o) {
|
|
5284
5274
|
const e = { ...o.value };
|
|
5285
5275
|
if (e.disableTabStop) {
|
|
5286
5276
|
s.tabIndex = -1;
|
|
5287
5277
|
return;
|
|
5288
5278
|
}
|
|
5289
|
-
e.disableTabStop || (s.tabIndex = 0), s.addEventListener("keyup", (n) => (n.preventDefault(), n.stopPropagation(),
|
|
5290
|
-
|
|
5279
|
+
e.disableTabStop || (s.tabIndex = 0), s.addEventListener("keyup", (n) => (n.preventDefault(), n.stopPropagation(), qe(n, e), !1)), s.addEventListener("keydown", (n) => {
|
|
5280
|
+
ze(n, e);
|
|
5291
5281
|
}), s.addEventListener("blur", (n) => {
|
|
5292
|
-
|
|
5282
|
+
Ue(n);
|
|
5293
5283
|
});
|
|
5294
5284
|
}
|
|
5295
5285
|
});
|
|
5296
5286
|
}
|
|
5297
5287
|
const Ki = {
|
|
5298
5288
|
install(r) {
|
|
5299
|
-
|
|
5289
|
+
Fi(r);
|
|
5300
5290
|
}
|
|
5301
5291
|
};
|
|
5302
5292
|
export {
|