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