survey-vue3-ui 1.12.53 → 1.12.54
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 +2 -2
- package/survey-vue3-ui.es.js +803 -803
- package/survey-vue3-ui.umd.js +4 -4
package/survey-vue3-ui.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var G = (u, o, e) => (
|
|
4
|
-
import { defineComponent as h, computed as L, openBlock as r, createBlock as C, resolveDynamicComponent as
|
|
5
|
-
import { Base as
|
|
1
|
+
var Me = Object.defineProperty;
|
|
2
|
+
var He = (u, o, e) => o in u ? Me(u, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[o] = e;
|
|
3
|
+
var G = (u, o, e) => (He(u, typeof o != "symbol" ? o + "" : o, e), e);
|
|
4
|
+
import { defineComponent as h, computed as L, openBlock as r, createBlock as C, resolveDynamicComponent as me, normalizeProps as le, guardReactiveProps as ue, createSlots as Ie, renderList as B, withCtx as E, renderSlot as ge, shallowReactive as Se, watch as O, onBeforeUnmount as U, onMounted as Z, ref as M, shallowRef as W, watchEffect as Be, triggerRef as se, unref as w, isRef as Ve, nextTick as Re, createElementBlock as l, normalizeClass as a, createVNode as y, createCommentVNode as c, Fragment as I, mergeProps as $, normalizeStyle as b, createElementVNode as g, onUnmounted as P, withDirectives as R, vShow as D, toDisplayString as H, vModelRadio as Y, vModelCheckbox as oe, vModelSelect as Te, onUpdated as x, vModelText as Ze, getCurrentInstance as Ce, createStaticVNode as $e, toRaw as De, Teleport as Ae, useSlots as Pe } from "vue";
|
|
5
|
+
import { Base as Ne, RendererFactory as _, Helpers as Ee, DropdownMultiSelectListModel as We, doKey2ClickUp as ye, createSvg as Oe, doKey2ClickDown as Fe, doKey2ClickBlur as ze, ActionDropdownViewModel as Ue, createPopupViewModel as Ke, SurveyProgressModel as de, ProgressButtonsResponsivityManager as je, addIconsToThemeSet as he, SvgRegistry as X, PopupSurveyModel as Qe, settings as F, createDialogOptions as Ge, createPopupModalViewModel as Je, ButtonGroupItemModel as Xe, SurveyModel as Ye } from "survey-core";
|
|
6
6
|
const ae = class {
|
|
7
7
|
constructor() {
|
|
8
8
|
G(this, "creatorHash", {});
|
|
@@ -35,37 +35,37 @@ const v = /* @__PURE__ */ h({
|
|
|
35
35
|
const o = u, e = L(
|
|
36
36
|
() => z.Instance.getComponent(o.is)
|
|
37
37
|
);
|
|
38
|
-
return (s, n) => (r(), C(
|
|
39
|
-
|
|
38
|
+
return (s, n) => (r(), C(me(e.value), le(ue(s.$attrs)), Ie({ _: 2 }, [
|
|
39
|
+
B(s.$slots, (t, i) => ({
|
|
40
40
|
name: i,
|
|
41
41
|
fn: E((d) => [
|
|
42
|
-
|
|
42
|
+
ge(s.$slots, i, le(ue(d)))
|
|
43
43
|
])
|
|
44
44
|
}))
|
|
45
45
|
]), 1040));
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
-
|
|
49
|
-
class
|
|
48
|
+
Ne.createPropertiesHash = () => Se({});
|
|
49
|
+
class xe {
|
|
50
50
|
constructor(o) {
|
|
51
51
|
G(this, "currentNextTickPromise");
|
|
52
52
|
this.element = o;
|
|
53
53
|
}
|
|
54
54
|
async add() {
|
|
55
|
-
const o =
|
|
55
|
+
const o = Re();
|
|
56
56
|
this.currentNextTickPromise !== o && (this.currentNextTickPromise = o, await o, o == this.currentNextTickPromise && this.element.afterRerender());
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function _e(u) {
|
|
60
60
|
var o;
|
|
61
61
|
if (!!u) {
|
|
62
62
|
if (u.__vueImplemented = (o = u.__vueImplemented) != null ? o : 0, u.__vueImplemented <= 0) {
|
|
63
|
-
const e = new
|
|
63
|
+
const e = new xe(u);
|
|
64
64
|
u.createArrayCoreHandler = (s, n) => {
|
|
65
65
|
const t = [], i = W(t);
|
|
66
66
|
return t.onArrayChanged = () => {
|
|
67
67
|
se(i), e.add();
|
|
68
|
-
}, s[n] = i,
|
|
68
|
+
}, s[n] = i, w(s[n]);
|
|
69
69
|
}, u.iteratePropertiesHash((s, n) => {
|
|
70
70
|
if (Array.isArray(s[n])) {
|
|
71
71
|
const t = W(s[n]);
|
|
@@ -73,27 +73,27 @@ function es(u) {
|
|
|
73
73
|
se(t), e.add();
|
|
74
74
|
}, s[n] = t;
|
|
75
75
|
}
|
|
76
|
-
}), u.getPropertyValueCoreHandler = (s, n) =>
|
|
77
|
-
|
|
76
|
+
}), u.getPropertyValueCoreHandler = (s, n) => w(s[n]), u.setPropertyValueCoreHandler = (s, n, t) => {
|
|
77
|
+
Ve(s[n]) ? s[n].value = t : s[n] = t, e.add();
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
u.enableOnElementRerenderedEvent(), u.__vueImplemented++;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function es(u) {
|
|
84
84
|
return !!u.__vueImplemented;
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function ve(u) {
|
|
87
87
|
var o;
|
|
88
88
|
!u || (u.__vueImplemented = (o = u.__vueImplemented) != null ? o : 0, u.__vueImplemented--, u.__vueImplemented <= 0 && (u.iteratePropertiesHash((e, s) => {
|
|
89
|
-
e[s] =
|
|
89
|
+
e[s] = w(e[s]), Array.isArray(e[s]) && (e[s].onArrayChanged = void 0);
|
|
90
90
|
}), delete u.__vueImplemented, u.disableOnElementRerenderedEvent(), u.createArrayCoreHandler = void 0, u.getPropertyValueCoreHandler = void 0, u.setPropertyValueCoreHandler = void 0));
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function V(u, o, e) {
|
|
93
93
|
const s = O(
|
|
94
94
|
u,
|
|
95
95
|
(t, i) => {
|
|
96
|
-
t && o && o(t, i), i && (
|
|
96
|
+
t && o && o(t, i), i && (ve(i), e && e(i)), _e(t);
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
immediate: !0
|
|
@@ -103,19 +103,19 @@ function B(u, o, e) {
|
|
|
103
103
|
U(() => {
|
|
104
104
|
if (!n) {
|
|
105
105
|
const t = u();
|
|
106
|
-
t && (
|
|
106
|
+
t && (ve(t), s(), e && e(t)), n = !0;
|
|
107
107
|
}
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
110
|
function T(u, o, e, s) {
|
|
111
|
-
|
|
111
|
+
V(() => u.question, e, s), Z(() => {
|
|
112
112
|
u.question && u.question.afterRenderQuestionElement(o.value);
|
|
113
113
|
}), U(() => {
|
|
114
114
|
u.question.beforeDestroyQuestionElement(o.value);
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
function K(u) {
|
|
118
|
-
const o =
|
|
118
|
+
const o = M(), e = (t) => {
|
|
119
119
|
o.value = t.renderedHtml;
|
|
120
120
|
}, s = (t) => {
|
|
121
121
|
o.value = t.renderedHtml, t.onStringChanged.add(e);
|
|
@@ -135,14 +135,14 @@ function te(u) {
|
|
|
135
135
|
return u.customWidget ? "survey-customwidget" : u.isDefaultRendering && u.isDefaultRendering() || u.isPanel ? "survey-" + u.getTemplate() : u.getComponentName();
|
|
136
136
|
}
|
|
137
137
|
function ee(u) {
|
|
138
|
-
const o = W(), e =
|
|
138
|
+
const o = W(), e = Be(() => {
|
|
139
139
|
o.value = u(), se(o);
|
|
140
140
|
});
|
|
141
141
|
return U(() => {
|
|
142
142
|
e();
|
|
143
143
|
}), o;
|
|
144
144
|
}
|
|
145
|
-
const
|
|
145
|
+
const ss = /* @__PURE__ */ h({
|
|
146
146
|
__name: "Page",
|
|
147
147
|
props: {
|
|
148
148
|
survey: {},
|
|
@@ -150,15 +150,15 @@ const os = /* @__PURE__ */ h({
|
|
|
150
150
|
css: {}
|
|
151
151
|
},
|
|
152
152
|
setup(u) {
|
|
153
|
-
const o = u, e =
|
|
153
|
+
const o = u, e = M(null), s = () => {
|
|
154
154
|
o.survey && e.value && o.survey.afterRenderPage(e.value);
|
|
155
155
|
}, n = L(() => o.page._showDescription);
|
|
156
|
-
return
|
|
156
|
+
return V(
|
|
157
157
|
() => o.page,
|
|
158
158
|
() => {
|
|
159
159
|
s();
|
|
160
160
|
}
|
|
161
|
-
),
|
|
161
|
+
), Z(() => {
|
|
162
162
|
s();
|
|
163
163
|
}), (t, i) => (r(), l("div", {
|
|
164
164
|
class: a(t.page.cssRoot),
|
|
@@ -183,7 +183,7 @@ const os = /* @__PURE__ */ h({
|
|
|
183
183
|
is: "survey-errors",
|
|
184
184
|
element: t.page
|
|
185
185
|
}, null, 8, ["element"]),
|
|
186
|
-
(r(!0), l(I, null,
|
|
186
|
+
(r(!0), l(I, null, B(t.page.visibleRows, (d) => (r(), C(v, $({
|
|
187
187
|
key: d.id,
|
|
188
188
|
is: t.page.getSurvey().getRowWrapperComponentName(d)
|
|
189
189
|
}, {
|
|
@@ -201,14 +201,14 @@ const os = /* @__PURE__ */ h({
|
|
|
201
201
|
}, 1040, ["is"]))), 128))
|
|
202
202
|
], 2));
|
|
203
203
|
}
|
|
204
|
-
}),
|
|
204
|
+
}), os = /* @__PURE__ */ h({
|
|
205
205
|
__name: "Header",
|
|
206
206
|
props: {
|
|
207
207
|
survey: {}
|
|
208
208
|
},
|
|
209
209
|
setup(u) {
|
|
210
|
-
const o = u, e =
|
|
211
|
-
return
|
|
210
|
+
const o = u, e = M();
|
|
211
|
+
return Z(() => {
|
|
212
212
|
var s = e.value;
|
|
213
213
|
s && o.survey && o.survey.afterRenderHeader(s);
|
|
214
214
|
}), (s, n) => s.survey.renderedHasHeader ? (r(), l("div", {
|
|
@@ -225,7 +225,7 @@ const os = /* @__PURE__ */ h({
|
|
|
225
225
|
s.survey.renderedHasTitle ? (r(), l("div", {
|
|
226
226
|
key: 1,
|
|
227
227
|
class: a(s.survey.css.headerText),
|
|
228
|
-
style:
|
|
228
|
+
style: b({ maxWidth: s.survey.titleMaxWidth })
|
|
229
229
|
}, [
|
|
230
230
|
y(v, {
|
|
231
231
|
is: "survey-element-title",
|
|
@@ -252,7 +252,7 @@ const os = /* @__PURE__ */ h({
|
|
|
252
252
|
}, null, 2)
|
|
253
253
|
], 2)) : c("", !0);
|
|
254
254
|
}
|
|
255
|
-
}),
|
|
255
|
+
}), ts = /* @__PURE__ */ h({
|
|
256
256
|
__name: "Row",
|
|
257
257
|
props: {
|
|
258
258
|
row: {},
|
|
@@ -260,17 +260,17 @@ const os = /* @__PURE__ */ h({
|
|
|
260
260
|
survey: {}
|
|
261
261
|
},
|
|
262
262
|
setup(u) {
|
|
263
|
-
const o = u, e =
|
|
263
|
+
const o = u, e = M();
|
|
264
264
|
let s;
|
|
265
|
-
return
|
|
265
|
+
return V(
|
|
266
266
|
() => o.row,
|
|
267
267
|
(n, t) => {
|
|
268
268
|
n.setRootElement(e.value), t && (n.isNeedRender = t.isNeedRender);
|
|
269
269
|
},
|
|
270
270
|
(n) => {
|
|
271
|
-
|
|
271
|
+
es(n) || (clearTimeout(s), n.setRootElement(void 0), n.stopLazyRendering(), n.isNeedRender = !n.isLazyRendering());
|
|
272
272
|
}
|
|
273
|
-
),
|
|
273
|
+
), Z(() => {
|
|
274
274
|
if (o.row && (o.row.setRootElement(e.value), !o.row.isNeedRender)) {
|
|
275
275
|
const n = e.value;
|
|
276
276
|
setTimeout(() => {
|
|
@@ -282,7 +282,7 @@ const os = /* @__PURE__ */ h({
|
|
|
282
282
|
ref_key: "root",
|
|
283
283
|
ref: e
|
|
284
284
|
}, [
|
|
285
|
-
(r(!0), l(I, null,
|
|
285
|
+
(r(!0), l(I, null, B(n.row.visibleElements, (i) => (r(), C(v, {
|
|
286
286
|
is: "survey-element",
|
|
287
287
|
row: n.row,
|
|
288
288
|
css: n.css,
|
|
@@ -291,10 +291,10 @@ const os = /* @__PURE__ */ h({
|
|
|
291
291
|
}, null, 8, ["row", "css", "element"]))), 128))
|
|
292
292
|
], 2));
|
|
293
293
|
}
|
|
294
|
-
}),
|
|
294
|
+
}), ns = ["id", "role", "aria-required", "aria-invalid", "aria-labelledby", "aria-describedby", "aria-expanded", "data-name"], rs = ["id"], is = {
|
|
295
295
|
inheritAttrs: !1
|
|
296
|
-
},
|
|
297
|
-
...
|
|
296
|
+
}, as = /* @__PURE__ */ h({
|
|
297
|
+
...is,
|
|
298
298
|
__name: "Question",
|
|
299
299
|
props: {
|
|
300
300
|
survey: {},
|
|
@@ -302,8 +302,8 @@ const os = /* @__PURE__ */ h({
|
|
|
302
302
|
css: {}
|
|
303
303
|
},
|
|
304
304
|
setup(u) {
|
|
305
|
-
const o = u, e =
|
|
306
|
-
|
|
305
|
+
const o = u, e = M(null), s = L(() => o.element.showErrorOnTop), n = L(() => o.element.showErrorOnBottom), t = (f) => f.cssContent, i = () => o.element.getRootStyle();
|
|
306
|
+
V(() => o.element);
|
|
307
307
|
const d = () => {
|
|
308
308
|
e.value && o.element.afterRender(e.value);
|
|
309
309
|
}, m = O(
|
|
@@ -311,20 +311,20 @@ const os = /* @__PURE__ */ h({
|
|
|
311
311
|
() => {
|
|
312
312
|
d();
|
|
313
313
|
}
|
|
314
|
-
), p = L(() => o.element.customWidget ? "survey-customwidget" : o.element.isDefaultRendering() ? "survey-" + o.element.getTemplate() : o.element.getComponentName()), q = L(() => o.element.survey.getQuestionContentWrapperComponentName(o.element)),
|
|
314
|
+
), p = L(() => o.element.customWidget ? "survey-customwidget" : o.element.isDefaultRendering() ? "survey-" + o.element.getTemplate() : o.element.getComponentName()), q = L(() => o.element.survey.getQuestionContentWrapperComponentName(o.element)), S = L(() => ({
|
|
315
315
|
componentData: {
|
|
316
316
|
question: o.element,
|
|
317
317
|
data: o.element.survey.getElementWrapperComponentData(o.element)
|
|
318
318
|
}
|
|
319
319
|
}));
|
|
320
|
-
return
|
|
320
|
+
return P(() => {
|
|
321
321
|
m();
|
|
322
|
-
}), (f,
|
|
322
|
+
}), (f, N) => (r(), l("div", {
|
|
323
323
|
class: a(f.element.getRootCss()),
|
|
324
|
-
style:
|
|
324
|
+
style: b(i()),
|
|
325
325
|
ref_key: "root",
|
|
326
326
|
ref: e,
|
|
327
|
-
onFocusin:
|
|
327
|
+
onFocusin: N[0] || (N[0] = (k) => f.element.focusIn()),
|
|
328
328
|
id: f.element.id,
|
|
329
329
|
role: f.element.ariaRole,
|
|
330
330
|
"aria-required": f.element.ariaRequired,
|
|
@@ -346,11 +346,11 @@ const os = /* @__PURE__ */ h({
|
|
|
346
346
|
element: f.element,
|
|
347
347
|
css: f.css
|
|
348
348
|
}, null, 8, ["element", "css"])) : c("", !0),
|
|
349
|
-
y(v,
|
|
349
|
+
y(v, $({ is: q.value }, S.value), {
|
|
350
350
|
default: E(() => [
|
|
351
351
|
g("div", {
|
|
352
352
|
class: a(t(f.element) || void 0),
|
|
353
|
-
style:
|
|
353
|
+
style: b({ display: f.element.renderedIsExpanded ? void 0 : "none" }),
|
|
354
354
|
role: "presentation"
|
|
355
355
|
}, [
|
|
356
356
|
s.value ? (r(), C(v, {
|
|
@@ -393,7 +393,7 @@ const os = /* @__PURE__ */ h({
|
|
|
393
393
|
is: "survey-string",
|
|
394
394
|
locString: f.element.locDescription
|
|
395
395
|
}, null, 8, ["locString"])
|
|
396
|
-
], 10,
|
|
396
|
+
], 10, rs)) : c("", !0)
|
|
397
397
|
], 6)
|
|
398
398
|
]),
|
|
399
399
|
_: 1
|
|
@@ -410,12 +410,12 @@ const os = /* @__PURE__ */ h({
|
|
|
410
410
|
element: f.element,
|
|
411
411
|
location: "bottom"
|
|
412
412
|
}, null, 8, ["element"])) : c("", !0)
|
|
413
|
-
], 46,
|
|
413
|
+
], 46, ns));
|
|
414
414
|
}
|
|
415
|
-
}),
|
|
415
|
+
}), ls = ["id"], us = ["id"], ds = {
|
|
416
416
|
inheritAttrs: !1
|
|
417
|
-
},
|
|
418
|
-
...
|
|
417
|
+
}, vs = /* @__PURE__ */ h({
|
|
418
|
+
...ds,
|
|
419
419
|
inheritAttrs: !1,
|
|
420
420
|
__name: "Panel",
|
|
421
421
|
props: {
|
|
@@ -424,8 +424,8 @@ const os = /* @__PURE__ */ h({
|
|
|
424
424
|
css: {}
|
|
425
425
|
},
|
|
426
426
|
setup(u) {
|
|
427
|
-
const o = u, e =
|
|
428
|
-
return
|
|
427
|
+
const o = u, e = M(null), s = L(() => o.element.survey);
|
|
428
|
+
return V(() => o.element), Z(() => {
|
|
429
429
|
o.element.survey && o.element.afterRender(e.value);
|
|
430
430
|
}), (n, t) => n.element.getIsContentVisible() ? (r(), l("div", {
|
|
431
431
|
key: 0,
|
|
@@ -454,10 +454,10 @@ const os = /* @__PURE__ */ h({
|
|
|
454
454
|
n.element.renderedIsExpanded ? (r(), l("div", {
|
|
455
455
|
key: 3,
|
|
456
456
|
id: n.element.contentId,
|
|
457
|
-
style:
|
|
457
|
+
style: b({ paddingLeft: n.element.innerPaddingLeft }),
|
|
458
458
|
class: a(n.element.cssClasses.panel.content)
|
|
459
459
|
}, [
|
|
460
|
-
(r(!0), l(I, null,
|
|
460
|
+
(r(!0), l(I, null, B(n.element.visibleRows, (i) => (r(), C(v, $({
|
|
461
461
|
key: i.id,
|
|
462
462
|
is: n.element.getSurvey().getRowWrapperComponentName(i)
|
|
463
463
|
}, {
|
|
@@ -477,10 +477,10 @@ const os = /* @__PURE__ */ h({
|
|
|
477
477
|
is: "sv-action-bar",
|
|
478
478
|
model: n.element.getFooterToolbar()
|
|
479
479
|
}, null, 8, ["model"])
|
|
480
|
-
], 14,
|
|
481
|
-
], 42,
|
|
480
|
+
], 14, us)) : c("", !0)
|
|
481
|
+
], 42, ls)) : c("", !0);
|
|
482
482
|
}
|
|
483
|
-
}),
|
|
483
|
+
}), cs = ["id"], ps = /* @__PURE__ */ h({
|
|
484
484
|
__name: "ElementHeader",
|
|
485
485
|
props: {
|
|
486
486
|
element: {},
|
|
@@ -496,7 +496,7 @@ const os = /* @__PURE__ */ h({
|
|
|
496
496
|
return (n, t) => (r(), l("div", {
|
|
497
497
|
class: a(n.element.cssHeader),
|
|
498
498
|
onClick: e,
|
|
499
|
-
style:
|
|
499
|
+
style: b(s())
|
|
500
500
|
}, [
|
|
501
501
|
y(v, {
|
|
502
502
|
is: "survey-element-title",
|
|
@@ -512,8 +512,8 @@ const os = /* @__PURE__ */ h({
|
|
|
512
512
|
is: "survey-string",
|
|
513
513
|
locString: n.element.locDescription
|
|
514
514
|
}, null, 8, ["locString"])
|
|
515
|
-
], 10,
|
|
516
|
-
[
|
|
515
|
+
], 10, cs)), [
|
|
516
|
+
[D, n.element.hasDescription]
|
|
517
517
|
]) : c("", !0),
|
|
518
518
|
n.element.hasAdditionalTitleToolbar ? (r(), C(v, {
|
|
519
519
|
key: 1,
|
|
@@ -522,7 +522,7 @@ const os = /* @__PURE__ */ h({
|
|
|
522
522
|
}, null, 8, ["model"])) : c("", !0)
|
|
523
523
|
], 6));
|
|
524
524
|
}
|
|
525
|
-
}),
|
|
525
|
+
}), ms = /* @__PURE__ */ h({
|
|
526
526
|
__name: "String",
|
|
527
527
|
props: {
|
|
528
528
|
locString: {}
|
|
@@ -533,7 +533,7 @@ const os = /* @__PURE__ */ h({
|
|
|
533
533
|
locString: o.locString.renderAsData
|
|
534
534
|
}, null, 8, ["is", "locString"]));
|
|
535
535
|
}
|
|
536
|
-
}),
|
|
536
|
+
}), gs = ["innerHTML"], Cs = /* @__PURE__ */ h({
|
|
537
537
|
__name: "StringViewer",
|
|
538
538
|
props: {
|
|
539
539
|
locString: {}
|
|
@@ -542,14 +542,14 @@ const os = /* @__PURE__ */ h({
|
|
|
542
542
|
const o = u, e = K(() => o.locString), s = o.locString.allowLineBreaks ? "sv-string-viewer sv-string-viewer--multiline" : "sv-string-viewer";
|
|
543
543
|
return (n, t) => n.locString.hasHtml ? (r(), l("span", {
|
|
544
544
|
key: 0,
|
|
545
|
-
class: a(
|
|
546
|
-
innerHTML:
|
|
547
|
-
}, null, 10,
|
|
545
|
+
class: a(w(s)),
|
|
546
|
+
innerHTML: w(e)
|
|
547
|
+
}, null, 10, gs)) : (r(), l("span", {
|
|
548
548
|
key: 1,
|
|
549
|
-
class: a(
|
|
550
|
-
}, H(
|
|
549
|
+
class: a(w(s))
|
|
550
|
+
}, H(w(e)), 3));
|
|
551
551
|
}
|
|
552
|
-
}),
|
|
552
|
+
}), ys = ["innerHTML"], hs = /* @__PURE__ */ h({
|
|
553
553
|
__name: "StringEditor",
|
|
554
554
|
props: {
|
|
555
555
|
locString: {}
|
|
@@ -568,7 +568,7 @@ const os = /* @__PURE__ */ h({
|
|
|
568
568
|
innerHTML: n.locString.renderedHtml,
|
|
569
569
|
onBlur: e,
|
|
570
570
|
onClick: s
|
|
571
|
-
}, null, 40,
|
|
571
|
+
}, null, 40, ys)) : (r(), l("span", {
|
|
572
572
|
key: 1,
|
|
573
573
|
class: "sv-string-editor",
|
|
574
574
|
contenteditable: "true",
|
|
@@ -576,27 +576,27 @@ const os = /* @__PURE__ */ h({
|
|
|
576
576
|
onClick: s
|
|
577
577
|
}, H(n.locString.renderedHtml), 33));
|
|
578
578
|
}
|
|
579
|
-
}),
|
|
579
|
+
}), qs = ["id"], ws = /* @__PURE__ */ h({
|
|
580
580
|
__name: "Skeleton",
|
|
581
581
|
props: {
|
|
582
582
|
element: {}
|
|
583
583
|
},
|
|
584
584
|
setup(u) {
|
|
585
585
|
const o = u;
|
|
586
|
-
return
|
|
586
|
+
return V(() => o.element), (e, s) => (r(), l("div", {
|
|
587
587
|
class: "sv-skeleton-element",
|
|
588
588
|
id: e.element.id,
|
|
589
|
-
style:
|
|
590
|
-
}, null, 12,
|
|
589
|
+
style: b({ height: e.element.skeletonHeight })
|
|
590
|
+
}, null, 12, qs));
|
|
591
591
|
}
|
|
592
|
-
}),
|
|
592
|
+
}), ks = ["id"], fs = ["value"], Ls = /* @__PURE__ */ h({
|
|
593
593
|
inheritAttrs: !1,
|
|
594
594
|
__name: "Text",
|
|
595
595
|
props: {
|
|
596
596
|
question: {}
|
|
597
597
|
},
|
|
598
598
|
setup(u) {
|
|
599
|
-
const o = u, e =
|
|
599
|
+
const o = u, e = M(null);
|
|
600
600
|
return T(o, e), (s, n) => s.question.isReadOnlyRenderDiv() ? (r(), l("div", {
|
|
601
601
|
key: 0,
|
|
602
602
|
ref_key: "root",
|
|
@@ -613,11 +613,11 @@ const os = /* @__PURE__ */ h({
|
|
|
613
613
|
g("datalist", {
|
|
614
614
|
id: s.question.dataListId
|
|
615
615
|
}, [
|
|
616
|
-
(r(!0), l(I, null,
|
|
616
|
+
(r(!0), l(I, null, B(s.question.dataList, (t, i) => (r(), l("option", {
|
|
617
617
|
key: i,
|
|
618
618
|
value: t
|
|
619
|
-
}, null, 8,
|
|
620
|
-
], 8,
|
|
619
|
+
}, null, 8, fs))), 128))
|
|
620
|
+
], 8, ks)
|
|
621
621
|
], 512)) : (r(), C(v, {
|
|
622
622
|
key: 2,
|
|
623
623
|
is: "survey-text-input",
|
|
@@ -627,7 +627,7 @@ const os = /* @__PURE__ */ h({
|
|
|
627
627
|
}
|
|
628
628
|
}, null, 8, ["question", "get-ref"]));
|
|
629
629
|
}
|
|
630
|
-
}),
|
|
630
|
+
}), bs = ["disabled", "readonly", "type", "maxlength", "min", "max", "step", "size", "id", "list", "placeholder", "autocomplete", "value", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], Ms = ["disabled", "readonly", "type", "maxlength", "min", "max", "step", "size", "id", "list", "placeholder", "autocomplete", "value", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], Hs = /* @__PURE__ */ h({
|
|
631
631
|
__name: "TextInput",
|
|
632
632
|
props: {
|
|
633
633
|
question: {},
|
|
@@ -636,8 +636,8 @@ const os = /* @__PURE__ */ h({
|
|
|
636
636
|
setup(u, { expose: o }) {
|
|
637
637
|
const e = u, s = function(i) {
|
|
638
638
|
e.getRef && e.getRef(i);
|
|
639
|
-
}, n =
|
|
640
|
-
o({ root: n }),
|
|
639
|
+
}, n = M(null);
|
|
640
|
+
o({ root: n }), V(() => e.question);
|
|
641
641
|
const t = L(() => e.question.inputStyle);
|
|
642
642
|
return (i, d) => i.question.getMaxLength() ? (r(), l("div", {
|
|
643
643
|
key: 1,
|
|
@@ -653,7 +653,7 @@ const os = /* @__PURE__ */ h({
|
|
|
653
653
|
max: i.question.renderedMax,
|
|
654
654
|
step: i.question.renderedStep,
|
|
655
655
|
size: i.question.renderedInputSize,
|
|
656
|
-
style:
|
|
656
|
+
style: b(t.value),
|
|
657
657
|
id: i.question.inputId,
|
|
658
658
|
list: i.question.dataListId,
|
|
659
659
|
placeholder: i.question.renderedPlaceholder,
|
|
@@ -673,7 +673,7 @@ const os = /* @__PURE__ */ h({
|
|
|
673
673
|
"aria-describedby": i.question.a11y_input_ariaDescribedBy,
|
|
674
674
|
"aria-invalid": i.question.a11y_input_ariaInvalid,
|
|
675
675
|
"aria-errormessage": i.question.a11y_input_ariaErrormessage
|
|
676
|
-
}, null, 46,
|
|
676
|
+
}, null, 46, Ms),
|
|
677
677
|
y(v, {
|
|
678
678
|
is: "sv-character-counter",
|
|
679
679
|
counter: i.question.characterCounter,
|
|
@@ -691,7 +691,7 @@ const os = /* @__PURE__ */ h({
|
|
|
691
691
|
max: i.question.renderedMax,
|
|
692
692
|
step: i.question.renderedStep,
|
|
693
693
|
size: i.question.renderedInputSize,
|
|
694
|
-
style:
|
|
694
|
+
style: b(t.value),
|
|
695
695
|
id: i.question.inputId,
|
|
696
696
|
list: i.question.dataListId,
|
|
697
697
|
placeholder: i.question.renderedPlaceholder,
|
|
@@ -711,12 +711,12 @@ const os = /* @__PURE__ */ h({
|
|
|
711
711
|
"aria-describedby": i.question.a11y_input_ariaDescribedBy,
|
|
712
712
|
"aria-invalid": i.question.a11y_input_ariaInvalid,
|
|
713
713
|
"aria-errormessage": i.question.a11y_input_ariaErrormessage
|
|
714
|
-
}, null, 46,
|
|
714
|
+
}, null, 46, bs));
|
|
715
715
|
}
|
|
716
|
-
}),
|
|
716
|
+
}), Is = ["role", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], Ss = {
|
|
717
717
|
key: 0,
|
|
718
718
|
class: "sv-hidden"
|
|
719
|
-
},
|
|
719
|
+
}, Bs = { key: 7 }, Vs = ["value"], qe = /* @__PURE__ */ h({
|
|
720
720
|
inheritAttrs: !1,
|
|
721
721
|
__name: "SelectBase",
|
|
722
722
|
props: {
|
|
@@ -724,7 +724,7 @@ const os = /* @__PURE__ */ h({
|
|
|
724
724
|
showLegend: { type: Boolean }
|
|
725
725
|
},
|
|
726
726
|
setup(u) {
|
|
727
|
-
const o = u, e =
|
|
727
|
+
const o = u, e = M(null);
|
|
728
728
|
T(o, e);
|
|
729
729
|
const s = (t) => o.question.getItemValueWrapperComponentName(t) || o.question.itemComponent, n = (t) => ({
|
|
730
730
|
componentName: o.question.itemComponent,
|
|
@@ -746,12 +746,12 @@ const os = /* @__PURE__ */ h({
|
|
|
746
746
|
"aria-invalid": t.question.a11y_input_ariaInvalid,
|
|
747
747
|
"aria-errormessage": t.question.a11y_input_ariaErrormessage
|
|
748
748
|
}, [
|
|
749
|
-
t.showLegend ? (r(), l("legend",
|
|
750
|
-
t.question.hasHeadItems ? (r(!0), l(I, { key: 1 },
|
|
749
|
+
t.showLegend ? (r(), l("legend", Ss, H(t.question.locTitle.renderedHtml), 1)) : c("", !0),
|
|
750
|
+
t.question.hasHeadItems ? (r(!0), l(I, { key: 1 }, B(t.question.headItems, (d) => (r(), C(v, $({
|
|
751
751
|
key: d.value,
|
|
752
752
|
is: s(d)
|
|
753
753
|
}, n(d)), null, 16, ["is"]))), 128)) : c("", !0),
|
|
754
|
-
!t.question.hasColumns && !t.question.blockedRow ? (r(!0), l(I, { key: 2 },
|
|
754
|
+
!t.question.hasColumns && !t.question.blockedRow ? (r(!0), l(I, { key: 2 }, B(t.question.bodyItems, (d) => (r(), C(v, $({
|
|
755
755
|
key: d.value,
|
|
756
756
|
is: s(d)
|
|
757
757
|
}, n(d)), null, 16, ["is"]))), 128)) : c("", !0),
|
|
@@ -759,7 +759,7 @@ const os = /* @__PURE__ */ h({
|
|
|
759
759
|
key: 3,
|
|
760
760
|
class: a(t.question.cssClasses.rootRow)
|
|
761
761
|
}, [
|
|
762
|
-
!t.question.hasColumns && t.question.blockedRow ? (r(!0), l(I, { key: 0 },
|
|
762
|
+
!t.question.hasColumns && t.question.blockedRow ? (r(!0), l(I, { key: 0 }, B(t.question.dataChoices, (d) => (r(), C(v, $({
|
|
763
763
|
key: d.value,
|
|
764
764
|
is: s(d)
|
|
765
765
|
}, n(d)), null, 16, ["is"]))), 128)) : c("", !0)
|
|
@@ -768,18 +768,18 @@ const os = /* @__PURE__ */ h({
|
|
|
768
768
|
key: 4,
|
|
769
769
|
class: a(t.question.cssClasses.rootMultiColumn)
|
|
770
770
|
}, [
|
|
771
|
-
t.question.hasColumns ? (r(!0), l(I, { key: 0 },
|
|
771
|
+
t.question.hasColumns ? (r(!0), l(I, { key: 0 }, B(t.question.columns, (d, m) => (r(), l("div", {
|
|
772
772
|
key: m,
|
|
773
773
|
class: a(t.question.getColumnClass()),
|
|
774
774
|
role: "presentation"
|
|
775
775
|
}, [
|
|
776
|
-
(r(!0), l(I, null,
|
|
776
|
+
(r(!0), l(I, null, B(d, (p) => (r(), C(v, $({
|
|
777
777
|
key: p.value,
|
|
778
778
|
is: s(p)
|
|
779
779
|
}, n(p)), null, 16, ["is"]))), 128))
|
|
780
780
|
], 2))), 128)) : c("", !0)
|
|
781
781
|
], 2)) : c("", !0),
|
|
782
|
-
t.question.hasFootItems ? (r(!0), l(I, { key: 5 },
|
|
782
|
+
t.question.hasFootItems ? (r(!0), l(I, { key: 5 }, B(t.question.footItems, (d) => (r(), C(v, $({
|
|
783
783
|
key: d.value,
|
|
784
784
|
is: s(d)
|
|
785
785
|
}, n(d)), null, 16, ["is"]))), 128)) : c("", !0),
|
|
@@ -788,7 +788,7 @@ const os = /* @__PURE__ */ h({
|
|
|
788
788
|
is: "survey-other-choice",
|
|
789
789
|
question: t.question
|
|
790
790
|
}, null, 8, ["question"])) : c("", !0),
|
|
791
|
-
t.question.showClearButtonInContent ? (r(), l("div",
|
|
791
|
+
t.question.showClearButtonInContent ? (r(), l("div", Bs, [
|
|
792
792
|
g("input", {
|
|
793
793
|
type: "button",
|
|
794
794
|
class: a(t.question.cssClasses.clearButton),
|
|
@@ -796,33 +796,33 @@ const os = /* @__PURE__ */ h({
|
|
|
796
796
|
t.question.clearValue(!0);
|
|
797
797
|
}),
|
|
798
798
|
value: t.question.clearButtonCaption
|
|
799
|
-
}, null, 10,
|
|
799
|
+
}, null, 10, Vs)
|
|
800
800
|
])) : c("", !0)
|
|
801
|
-
], 10,
|
|
801
|
+
], 10, Is));
|
|
802
802
|
}
|
|
803
|
-
}),
|
|
803
|
+
}), Rs = /* @__PURE__ */ h({
|
|
804
804
|
inheritAttrs: !1,
|
|
805
805
|
__name: "Checkbox",
|
|
806
806
|
props: {
|
|
807
807
|
question: {}
|
|
808
808
|
},
|
|
809
809
|
setup(u) {
|
|
810
|
-
return (o, e) => (r(), C(
|
|
810
|
+
return (o, e) => (r(), C(qe, {
|
|
811
811
|
question: o.question,
|
|
812
812
|
"show-legend": !0
|
|
813
813
|
}, null, 8, ["question"]));
|
|
814
814
|
}
|
|
815
815
|
});
|
|
816
|
-
function
|
|
817
|
-
|
|
816
|
+
function we(u, o, e) {
|
|
817
|
+
Z(() => {
|
|
818
818
|
e.value && (o().isDesignMode || u().setRootElement(e.value));
|
|
819
|
-
}),
|
|
819
|
+
}), P(() => {
|
|
820
820
|
o().isDesignMode || u().setRootElement(void 0);
|
|
821
|
-
}),
|
|
821
|
+
}), V(u, (s, n) => {
|
|
822
822
|
o().isDesignMode || (s && e.value && s.setRootElement(e.value), n && n.setRootElement(void 0));
|
|
823
823
|
});
|
|
824
824
|
}
|
|
825
|
-
const
|
|
825
|
+
const Ts = ["name", "checked", "value", "id", "disabled", "readonly", "required"], Zs = ["xlink:href"], $s = /* @__PURE__ */ h({
|
|
826
826
|
inheritAttrs: !1,
|
|
827
827
|
__name: "CheckboxItem",
|
|
828
828
|
props: {
|
|
@@ -831,8 +831,8 @@ const Zs = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
831
831
|
hideLabel: { type: Boolean }
|
|
832
832
|
},
|
|
833
833
|
setup(u) {
|
|
834
|
-
const o =
|
|
835
|
-
|
|
834
|
+
const o = M(), e = u;
|
|
835
|
+
we(
|
|
836
836
|
() => e.item,
|
|
837
837
|
() => e.question,
|
|
838
838
|
o
|
|
@@ -862,7 +862,7 @@ const Zs = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
862
862
|
readonly: n.question.isReadOnlyAttr,
|
|
863
863
|
class: a(n.question.cssClasses.itemControl),
|
|
864
864
|
required: n.question.hasRequiredError()
|
|
865
|
-
}, null, 42,
|
|
865
|
+
}, null, 42, Ts),
|
|
866
866
|
n.question.cssClasses.materialDecorator ? (r(), l("span", {
|
|
867
867
|
key: 0,
|
|
868
868
|
class: a(n.question.cssClasses.materialDecorator)
|
|
@@ -873,7 +873,7 @@ const Zs = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
873
873
|
}, [
|
|
874
874
|
g("use", {
|
|
875
875
|
"xlink:href": n.question.itemSvgIcon
|
|
876
|
-
}, null, 8,
|
|
876
|
+
}, null, 8, Zs)
|
|
877
877
|
], 2)) : c("", !0)
|
|
878
878
|
], 2)) : c("", !0),
|
|
879
879
|
n.hideLabel ? c("", !0) : (r(), l("span", {
|
|
@@ -888,16 +888,16 @@ const Zs = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
888
888
|
], 2)
|
|
889
889
|
], 2));
|
|
890
890
|
}
|
|
891
|
-
}),
|
|
891
|
+
}), Ds = /* @__PURE__ */ h({
|
|
892
892
|
inheritAttrs: !1,
|
|
893
893
|
__name: "Radiogroup",
|
|
894
894
|
props: {
|
|
895
895
|
question: {}
|
|
896
896
|
},
|
|
897
897
|
setup(u) {
|
|
898
|
-
return (o, e) => (r(), C(
|
|
898
|
+
return (o, e) => (r(), C(qe, { question: o.question }, null, 8, ["question"]));
|
|
899
899
|
}
|
|
900
|
-
}),
|
|
900
|
+
}), As = ["name", "value", "id", "aria-errormessage", "disabled", "readonly"], Ps = ["xlink:href"], Ns = /* @__PURE__ */ h({
|
|
901
901
|
inheritAttrs: !1,
|
|
902
902
|
__name: "RadiogroupItem",
|
|
903
903
|
props: {
|
|
@@ -906,14 +906,14 @@ const Zs = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
906
906
|
hideLabel: { type: Boolean }
|
|
907
907
|
},
|
|
908
908
|
setup(u) {
|
|
909
|
-
const o =
|
|
909
|
+
const o = M(), e = u, s = (i) => e.question.getLabelClass(i), n = (i) => e.question.getControlLabelClass(i), t = L({
|
|
910
910
|
get: () => e.question.renderedValue,
|
|
911
911
|
set: (i) => {
|
|
912
912
|
const d = e.question;
|
|
913
913
|
d.renderedValue = i;
|
|
914
914
|
}
|
|
915
915
|
});
|
|
916
|
-
return
|
|
916
|
+
return we(
|
|
917
917
|
() => e.item,
|
|
918
918
|
() => e.question,
|
|
919
919
|
o
|
|
@@ -937,7 +937,7 @@ const Zs = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
937
937
|
disabled: !i.question.getItemEnabled(i.item),
|
|
938
938
|
readonly: i.question.isReadOnlyAttr,
|
|
939
939
|
class: a(i.question.cssClasses.itemControl)
|
|
940
|
-
}, null, 10,
|
|
940
|
+
}, null, 10, As), [
|
|
941
941
|
[Y, t.value]
|
|
942
942
|
]),
|
|
943
943
|
i.question.cssClasses.materialDecorator ? (r(), l("span", {
|
|
@@ -950,7 +950,7 @@ const Zs = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
950
950
|
}, [
|
|
951
951
|
g("use", {
|
|
952
952
|
"xlink:href": i.question.itemSvgIcon
|
|
953
|
-
}, null, 8,
|
|
953
|
+
}, null, 8, Ps)
|
|
954
954
|
], 2)) : c("", !0)
|
|
955
955
|
], 2)) : c("", !0),
|
|
956
956
|
i.hideLabel ? c("", !0) : (r(), l("span", {
|
|
@@ -965,19 +965,19 @@ const Zs = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
965
965
|
], 34)
|
|
966
966
|
], 2));
|
|
967
967
|
}
|
|
968
|
-
}),
|
|
968
|
+
}), Es = ["src"], Ws = ["title"], Os = { key: 0 }, Fs = /* @__PURE__ */ h({
|
|
969
969
|
inheritAttrs: !1,
|
|
970
970
|
__name: "Signaturepad",
|
|
971
971
|
props: {
|
|
972
972
|
question: {}
|
|
973
973
|
},
|
|
974
974
|
setup(u) {
|
|
975
|
-
const o = u, e =
|
|
975
|
+
const o = u, e = M(null);
|
|
976
976
|
return T(o, e), (s, n) => (r(), l("div", {
|
|
977
977
|
class: a(s.question.cssClasses.root),
|
|
978
978
|
ref_key: "root",
|
|
979
979
|
ref: e,
|
|
980
|
-
style:
|
|
980
|
+
style: b({
|
|
981
981
|
width: s.question.renderedCanvasWidth
|
|
982
982
|
})
|
|
983
983
|
}, [
|
|
@@ -989,17 +989,17 @@ const Zs = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
989
989
|
locString: s.question.locRenderedPlaceholder
|
|
990
990
|
}, null, 8, ["locString"])
|
|
991
991
|
], 2), [
|
|
992
|
-
[
|
|
992
|
+
[D, s.question.needShowPlaceholder()]
|
|
993
993
|
]),
|
|
994
994
|
g("div", null, [
|
|
995
995
|
s.question.backgroundImage ? (r(), l("img", {
|
|
996
996
|
key: 0,
|
|
997
997
|
class: a(s.question.cssClasses.backgroundImage),
|
|
998
998
|
src: s.question.backgroundImage,
|
|
999
|
-
style:
|
|
999
|
+
style: b({
|
|
1000
1000
|
width: s.question.renderedCanvasWidth
|
|
1001
1001
|
})
|
|
1002
|
-
}, null, 14,
|
|
1002
|
+
}, null, 14, Es)) : c("", !0),
|
|
1003
1003
|
g("canvas", {
|
|
1004
1004
|
tabindex: "-1",
|
|
1005
1005
|
class: a(s.question.cssClasses.canvas),
|
|
@@ -1018,14 +1018,14 @@ const Zs = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1018
1018
|
s.question.clearValue(!0);
|
|
1019
1019
|
})
|
|
1020
1020
|
}, [
|
|
1021
|
-
s.question.cssClasses.clearButtonIconId ? c("", !0) : (r(), l("span",
|
|
1021
|
+
s.question.cssClasses.clearButtonIconId ? c("", !0) : (r(), l("span", Os, "\u2716")),
|
|
1022
1022
|
s.question.cssClasses.clearButtonIconId ? (r(), C(v, {
|
|
1023
1023
|
key: 1,
|
|
1024
1024
|
is: "sv-svg-icon",
|
|
1025
1025
|
iconName: s.question.cssClasses.clearButtonIconId,
|
|
1026
1026
|
size: "auto"
|
|
1027
1027
|
}, null, 8, ["iconName"])) : c("", !0)
|
|
1028
|
-
], 10,
|
|
1028
|
+
], 10, Ws)
|
|
1029
1029
|
], 2)) : c("", !0),
|
|
1030
1030
|
s.question.showLoadingIndicator ? (r(), l("div", {
|
|
1031
1031
|
key: 1,
|
|
@@ -1035,31 +1035,31 @@ const Zs = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1035
1035
|
], 2)) : c("", !0)
|
|
1036
1036
|
], 6));
|
|
1037
1037
|
}
|
|
1038
|
-
}),
|
|
1038
|
+
}), zs = ["innerHTML"], Us = /* @__PURE__ */ h({
|
|
1039
1039
|
inheritAttrs: !1,
|
|
1040
1040
|
__name: "Html",
|
|
1041
1041
|
props: {
|
|
1042
1042
|
question: {}
|
|
1043
1043
|
},
|
|
1044
1044
|
setup(u) {
|
|
1045
|
-
const o = u, e =
|
|
1045
|
+
const o = u, e = M(null);
|
|
1046
1046
|
T(o, e);
|
|
1047
1047
|
const s = K(() => o.question.locHtml);
|
|
1048
1048
|
return (n, t) => (r(), l("div", {
|
|
1049
1049
|
ref_key: "root",
|
|
1050
1050
|
ref: e,
|
|
1051
1051
|
class: a(n.question.renderCssRoot),
|
|
1052
|
-
innerHTML:
|
|
1053
|
-
}, null, 10,
|
|
1052
|
+
innerHTML: w(s)
|
|
1053
|
+
}, null, 10, zs));
|
|
1054
1054
|
}
|
|
1055
|
-
}),
|
|
1055
|
+
}), Ks = ["src", "alt", "width", "height"], js = ["src", "width", "height"], Qs = ["src", "width", "height"], Gs = /* @__PURE__ */ h({
|
|
1056
1056
|
inheritAttrs: !1,
|
|
1057
1057
|
__name: "Image",
|
|
1058
1058
|
props: {
|
|
1059
1059
|
question: {}
|
|
1060
1060
|
},
|
|
1061
1061
|
setup(u) {
|
|
1062
|
-
const o = u, e =
|
|
1062
|
+
const o = u, e = M(null);
|
|
1063
1063
|
T(o, e);
|
|
1064
1064
|
const s = K(() => o.question.locImageLink);
|
|
1065
1065
|
return (n, t) => (r(), l("div", {
|
|
@@ -1070,11 +1070,11 @@ const Zs = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1070
1070
|
n.question.renderedMode === "image" ? R((r(), l("img", {
|
|
1071
1071
|
key: 0,
|
|
1072
1072
|
class: a(n.question.getImageCss()),
|
|
1073
|
-
src:
|
|
1073
|
+
src: w(s),
|
|
1074
1074
|
alt: n.question.altText || n.question.title,
|
|
1075
1075
|
width: n.question.renderedWidth,
|
|
1076
1076
|
height: n.question.renderedHeight,
|
|
1077
|
-
style:
|
|
1077
|
+
style: b({
|
|
1078
1078
|
objectFit: n.question.imageFit,
|
|
1079
1079
|
width: n.question.renderedStyleWidth,
|
|
1080
1080
|
height: n.question.renderedStyleHeight
|
|
@@ -1085,17 +1085,17 @@ const Zs = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1085
1085
|
onError: t[1] || (t[1] = (i) => {
|
|
1086
1086
|
n.question.onErrorHandler();
|
|
1087
1087
|
})
|
|
1088
|
-
}, null, 46,
|
|
1089
|
-
[
|
|
1088
|
+
}, null, 46, Ks)), [
|
|
1089
|
+
[D, w(s) && !n.question.contentNotLoaded]
|
|
1090
1090
|
]) : c("", !0),
|
|
1091
1091
|
n.question.renderedMode === "video" ? R((r(), l("video", {
|
|
1092
1092
|
key: 1,
|
|
1093
1093
|
controls: "",
|
|
1094
1094
|
class: a(n.question.getImageCss()),
|
|
1095
|
-
src:
|
|
1095
|
+
src: w(s),
|
|
1096
1096
|
width: n.question.renderedWidth,
|
|
1097
1097
|
height: n.question.renderedHeight,
|
|
1098
|
-
style:
|
|
1098
|
+
style: b({
|
|
1099
1099
|
objectFit: n.question.imageFit,
|
|
1100
1100
|
width: n.question.renderedStyleWidth,
|
|
1101
1101
|
height: n.question.renderedStyleHeight
|
|
@@ -1106,22 +1106,22 @@ const Zs = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1106
1106
|
onError: t[3] || (t[3] = (i) => {
|
|
1107
1107
|
n.question.onErrorHandler();
|
|
1108
1108
|
})
|
|
1109
|
-
}, null, 46,
|
|
1110
|
-
[
|
|
1109
|
+
}, null, 46, js)), [
|
|
1110
|
+
[D, w(s) && !n.question.contentNotLoaded]
|
|
1111
1111
|
]) : c("", !0),
|
|
1112
1112
|
n.question.renderedMode === "youtube" ? (r(), l("iframe", {
|
|
1113
1113
|
key: 2,
|
|
1114
1114
|
class: a(n.question.getImageCss()),
|
|
1115
|
-
src:
|
|
1115
|
+
src: w(s),
|
|
1116
1116
|
width: n.question.renderedWidth,
|
|
1117
1117
|
height: n.question.renderedHeight,
|
|
1118
|
-
style:
|
|
1118
|
+
style: b({
|
|
1119
1119
|
objectFit: n.question.imageFit,
|
|
1120
1120
|
width: n.question.renderedStyleWidth,
|
|
1121
1121
|
height: n.question.renderedStyleHeight
|
|
1122
1122
|
})
|
|
1123
|
-
}, null, 14,
|
|
1124
|
-
!
|
|
1123
|
+
}, null, 14, Qs)) : c("", !0),
|
|
1124
|
+
!w(s) || n.question.contentNotLoaded ? (r(), l("div", {
|
|
1125
1125
|
key: 3,
|
|
1126
1126
|
class: a(n.question.cssClasses.noImage)
|
|
1127
1127
|
}, [
|
|
@@ -1133,28 +1133,28 @@ const Zs = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1133
1133
|
], 2)) : c("", !0)
|
|
1134
1134
|
], 2));
|
|
1135
1135
|
}
|
|
1136
|
-
}),
|
|
1136
|
+
}), Js = /* @__PURE__ */ h({
|
|
1137
1137
|
inheritAttrs: !1,
|
|
1138
1138
|
__name: "Expression",
|
|
1139
1139
|
props: {
|
|
1140
1140
|
question: {}
|
|
1141
1141
|
},
|
|
1142
1142
|
setup(u) {
|
|
1143
|
-
const o = u, e =
|
|
1143
|
+
const o = u, e = M(null);
|
|
1144
1144
|
return T(o, e), (s, n) => (r(), l("div", {
|
|
1145
1145
|
class: a(s.question.cssClasses.root),
|
|
1146
1146
|
ref_key: "root",
|
|
1147
1147
|
ref: e
|
|
1148
1148
|
}, H(s.question.formatedValue), 3));
|
|
1149
1149
|
}
|
|
1150
|
-
}),
|
|
1150
|
+
}), Xs = ["id", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "multiple", "title", "accept", "capture"], Ys = ["id", "multiple", "placeholder"], xs = ["id", "multiple", "placeholder"], _s = /* @__PURE__ */ h({
|
|
1151
1151
|
inheritAttrs: !1,
|
|
1152
1152
|
__name: "File",
|
|
1153
1153
|
props: {
|
|
1154
1154
|
question: {}
|
|
1155
1155
|
},
|
|
1156
1156
|
setup(u) {
|
|
1157
|
-
const o = u, e =
|
|
1157
|
+
const o = u, e = M(null);
|
|
1158
1158
|
return T(o, e), (s, n) => (r(), l("div", {
|
|
1159
1159
|
class: a(s.question.fileRootCss),
|
|
1160
1160
|
ref_key: "root",
|
|
@@ -1174,7 +1174,7 @@ const Zs = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1174
1174
|
title: s.question.inputTitle,
|
|
1175
1175
|
accept: s.question.acceptedTypes,
|
|
1176
1176
|
capture: s.question.renderCapture
|
|
1177
|
-
}, null, 10,
|
|
1177
|
+
}, null, 10, Xs)) : c("", !0),
|
|
1178
1178
|
s.question.isReadOnlyAttr ? (r(), l("input", {
|
|
1179
1179
|
key: 1,
|
|
1180
1180
|
type: "file",
|
|
@@ -1184,7 +1184,7 @@ const Zs = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1184
1184
|
multiple: s.question.allowMultiple,
|
|
1185
1185
|
placeholder: s.question.title,
|
|
1186
1186
|
style: { color: "transparent" }
|
|
1187
|
-
}, null, 10,
|
|
1187
|
+
}, null, 10, Ys)) : c("", !0),
|
|
1188
1188
|
s.question.isDisabledAttr ? (r(), l("input", {
|
|
1189
1189
|
key: 2,
|
|
1190
1190
|
type: "file",
|
|
@@ -1194,7 +1194,7 @@ const Zs = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1194
1194
|
multiple: s.question.allowMultiple,
|
|
1195
1195
|
placeholder: s.question.title,
|
|
1196
1196
|
style: { color: "transparent" }
|
|
1197
|
-
}, null, 10,
|
|
1197
|
+
}, null, 10, xs)) : c("", !0),
|
|
1198
1198
|
g("div", {
|
|
1199
1199
|
class: a(s.question.cssClasses.dragArea),
|
|
1200
1200
|
onDrop: n[0] || (n[0] = (...t) => s.question.onDrop && s.question.onDrop(...t)),
|
|
@@ -1270,17 +1270,17 @@ const Zs = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1270
1270
|
], 34)
|
|
1271
1271
|
], 2));
|
|
1272
1272
|
}
|
|
1273
|
-
}),
|
|
1273
|
+
}), e1 = { class: "sv-hidden" }, ce = "survey-imagepicker-item", s1 = /* @__PURE__ */ h({
|
|
1274
1274
|
inheritAttrs: !1,
|
|
1275
1275
|
__name: "Imagepicker",
|
|
1276
1276
|
props: {
|
|
1277
1277
|
question: {}
|
|
1278
1278
|
},
|
|
1279
1279
|
setup(u) {
|
|
1280
|
-
const o = u, e =
|
|
1280
|
+
const o = u, e = M(null);
|
|
1281
1281
|
T(o, e);
|
|
1282
|
-
const s = (t) => o.question.getItemValueWrapperComponentName(t) ||
|
|
1283
|
-
componentName:
|
|
1282
|
+
const s = (t) => o.question.getItemValueWrapperComponentName(t) || ce, n = (t) => ({
|
|
1283
|
+
componentName: ce,
|
|
1284
1284
|
componentData: {
|
|
1285
1285
|
question: o.question,
|
|
1286
1286
|
item: t,
|
|
@@ -1289,28 +1289,28 @@ const Zs = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1289
1289
|
});
|
|
1290
1290
|
return (t, i) => (r(), l("fieldset", {
|
|
1291
1291
|
class: a(t.question.getSelectBaseRootCss()),
|
|
1292
|
-
style:
|
|
1292
|
+
style: b(t.question.getContainerStyle()),
|
|
1293
1293
|
ref_key: "root",
|
|
1294
1294
|
ref: e
|
|
1295
1295
|
}, [
|
|
1296
|
-
g("legend",
|
|
1297
|
-
t.question.hasColumns ? c("", !0) : (r(!0), l(I, { key: 0 },
|
|
1296
|
+
g("legend", e1, H(t.question.locTitle.renderedHtml), 1),
|
|
1297
|
+
t.question.hasColumns ? c("", !0) : (r(!0), l(I, { key: 0 }, B(t.question.visibleChoices, (d) => (r(), C(v, $({
|
|
1298
1298
|
key: d.value,
|
|
1299
1299
|
is: s(d)
|
|
1300
1300
|
}, n(d)), null, 16, ["is"]))), 128)),
|
|
1301
|
-
t.question.hasColumns ? (r(!0), l(I, { key: 1 },
|
|
1301
|
+
t.question.hasColumns ? (r(!0), l(I, { key: 1 }, B(t.question.columns, (d, m) => (r(), l("div", {
|
|
1302
1302
|
class: a(t.question.getColumnClass()),
|
|
1303
1303
|
key: m,
|
|
1304
1304
|
role: "presentation"
|
|
1305
1305
|
}, [
|
|
1306
|
-
(r(!0), l(I, null,
|
|
1306
|
+
(r(!0), l(I, null, B(d, (p) => (r(), C(v, $({
|
|
1307
1307
|
key: p.value,
|
|
1308
1308
|
is: s(p)
|
|
1309
1309
|
}, n(p)), null, 16, ["is"]))), 128))
|
|
1310
1310
|
], 2))), 128)) : c("", !0)
|
|
1311
1311
|
], 6));
|
|
1312
1312
|
}
|
|
1313
|
-
}),
|
|
1313
|
+
}), o1 = ["name", "value", "id", "disabled", "readonly", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], t1 = ["name", "value", "id", "disabled", "readonly", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], n1 = ["src", "width", "height", "alt"], r1 = ["src", "width", "height"], i1 = /* @__PURE__ */ h({
|
|
1314
1314
|
inheritAttrs: !1,
|
|
1315
1315
|
__name: "ImagepickerItem",
|
|
1316
1316
|
props: {
|
|
@@ -1327,7 +1327,7 @@ const Zs = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1327
1327
|
i.isReadOnlyAttr || (i.value = t);
|
|
1328
1328
|
}
|
|
1329
1329
|
});
|
|
1330
|
-
|
|
1330
|
+
V(() => o.item);
|
|
1331
1331
|
const n = K(() => o.item.locImageLink);
|
|
1332
1332
|
return (t, i) => (r(), l("div", {
|
|
1333
1333
|
class: a(e(t.item))
|
|
@@ -1349,7 +1349,7 @@ const Zs = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1349
1349
|
"aria-invalid": t.question.ariaInvalid,
|
|
1350
1350
|
"aria-errormessage": t.question.ariaErrormessage,
|
|
1351
1351
|
class: a(t.question.cssClasses.itemControl)
|
|
1352
|
-
}, null, 10,
|
|
1352
|
+
}, null, 10, o1)), [
|
|
1353
1353
|
[oe, s.value]
|
|
1354
1354
|
]) : R((r(), l("input", {
|
|
1355
1355
|
key: 1,
|
|
@@ -1365,7 +1365,7 @@ const Zs = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1365
1365
|
"aria-invalid": t.question.ariaInvalid,
|
|
1366
1366
|
"aria-errormessage": t.question.ariaErrormessage,
|
|
1367
1367
|
class: a(t.question.cssClasses.itemControl)
|
|
1368
|
-
}, null, 10,
|
|
1368
|
+
}, null, 10, t1)), [
|
|
1369
1369
|
[Y, s.value]
|
|
1370
1370
|
]),
|
|
1371
1371
|
g("div", {
|
|
@@ -1387,13 +1387,13 @@ const Zs = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1387
1387
|
iconName: t.question.cssClasses.checkedItemSvgIconId
|
|
1388
1388
|
}, null, 8, ["class", "iconName"])) : c("", !0)
|
|
1389
1389
|
], 2)) : c("", !0),
|
|
1390
|
-
|
|
1390
|
+
w(n) && !t.item.contentNotLoaded && t.question.contentMode === "image" ? (r(), l("img", {
|
|
1391
1391
|
key: 1,
|
|
1392
1392
|
class: a(t.question.cssClasses.image),
|
|
1393
|
-
src:
|
|
1393
|
+
src: w(n),
|
|
1394
1394
|
width: t.question.renderedImageWidth,
|
|
1395
1395
|
height: t.question.renderedImageHeight,
|
|
1396
|
-
style:
|
|
1396
|
+
style: b({ objectFit: t.question.imageFit }),
|
|
1397
1397
|
alt: t.item.locText.renderedHtml,
|
|
1398
1398
|
onLoad: i[2] || (i[2] = (d) => {
|
|
1399
1399
|
t.question.onContentLoaded(t.item, d);
|
|
@@ -1401,26 +1401,26 @@ const Zs = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1401
1401
|
onError: i[3] || (i[3] = (d) => {
|
|
1402
1402
|
t.item.onErrorHandler();
|
|
1403
1403
|
})
|
|
1404
|
-
}, null, 46,
|
|
1405
|
-
|
|
1404
|
+
}, null, 46, n1)) : c("", !0),
|
|
1405
|
+
w(n) && !t.item.contentNotLoaded && t.question.contentMode === "video" ? (r(), l("video", {
|
|
1406
1406
|
key: 2,
|
|
1407
1407
|
controls: "",
|
|
1408
1408
|
class: a(t.question.cssClasses.image),
|
|
1409
|
-
src:
|
|
1409
|
+
src: w(n),
|
|
1410
1410
|
width: t.question.renderedImageWidth,
|
|
1411
1411
|
height: t.question.renderedImageHeight,
|
|
1412
|
-
style:
|
|
1412
|
+
style: b({ objectFit: t.question.imageFit }),
|
|
1413
1413
|
onLoadedmetadata: i[4] || (i[4] = (d) => {
|
|
1414
1414
|
t.question.onContentLoaded(t.item, d);
|
|
1415
1415
|
}),
|
|
1416
1416
|
onError: i[5] || (i[5] = (d) => {
|
|
1417
1417
|
t.item.onErrorHandler();
|
|
1418
1418
|
})
|
|
1419
|
-
}, null, 46,
|
|
1420
|
-
!
|
|
1419
|
+
}, null, 46, r1)) : c("", !0),
|
|
1420
|
+
!w(n) || t.item.contentNotLoaded ? (r(), l("div", {
|
|
1421
1421
|
key: 3,
|
|
1422
1422
|
class: a(t.question.cssClasses.itemNoImage),
|
|
1423
|
-
style:
|
|
1423
|
+
style: b({
|
|
1424
1424
|
width: t.question.renderedImageWidth + "px",
|
|
1425
1425
|
height: t.question.renderedImageHeight + "px",
|
|
1426
1426
|
objectFit: t.question.imageFit
|
|
@@ -1447,14 +1447,14 @@ const Zs = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1447
1447
|
], 2)
|
|
1448
1448
|
], 2));
|
|
1449
1449
|
}
|
|
1450
|
-
}),
|
|
1450
|
+
}), a1 = /* @__PURE__ */ h({
|
|
1451
1451
|
inheritAttrs: !1,
|
|
1452
1452
|
__name: "Comment",
|
|
1453
1453
|
props: {
|
|
1454
1454
|
question: {}
|
|
1455
1455
|
},
|
|
1456
1456
|
setup(u) {
|
|
1457
|
-
const o = u, e =
|
|
1457
|
+
const o = u, e = M(null);
|
|
1458
1458
|
return T(o, e), (s, n) => !s.question.isReadOnlyRenderDiv() && s.question.getMaxLength() ? (r(), l("div", {
|
|
1459
1459
|
key: 0,
|
|
1460
1460
|
ref_key: "root",
|
|
@@ -1481,14 +1481,14 @@ const Zs = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1481
1481
|
ref: e
|
|
1482
1482
|
}, H(s.question.value), 513));
|
|
1483
1483
|
}
|
|
1484
|
-
}),
|
|
1484
|
+
}), l1 = /* @__PURE__ */ h({
|
|
1485
1485
|
inheritAttrs: !1,
|
|
1486
1486
|
__name: "Dropdown",
|
|
1487
1487
|
props: {
|
|
1488
1488
|
question: {}
|
|
1489
1489
|
},
|
|
1490
1490
|
setup(u) {
|
|
1491
|
-
const o = u, e =
|
|
1491
|
+
const o = u, e = M(null);
|
|
1492
1492
|
return T(o, e), (s, n) => (r(), l("div", {
|
|
1493
1493
|
class: a(s.question.renderCssRoot),
|
|
1494
1494
|
ref_key: "root",
|
|
@@ -1505,23 +1505,23 @@ const Zs = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1505
1505
|
}, null, 8, ["question"])) : c("", !0)
|
|
1506
1506
|
], 2));
|
|
1507
1507
|
}
|
|
1508
|
-
}),
|
|
1508
|
+
}), u1 = ["id", "autocomplete", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "required"], d1 = {
|
|
1509
1509
|
key: 0,
|
|
1510
1510
|
value: ""
|
|
1511
|
-
},
|
|
1511
|
+
}, v1 = ["id"];
|
|
1512
1512
|
_.Instance.registerRenderer(
|
|
1513
1513
|
"dropdown",
|
|
1514
1514
|
"select",
|
|
1515
1515
|
"sv-dropdown-select"
|
|
1516
1516
|
);
|
|
1517
|
-
const
|
|
1517
|
+
const c1 = /* @__PURE__ */ h({
|
|
1518
1518
|
inheritAttrs: !1,
|
|
1519
1519
|
__name: "DropdownSelect",
|
|
1520
1520
|
props: {
|
|
1521
1521
|
question: {}
|
|
1522
1522
|
},
|
|
1523
1523
|
setup(u) {
|
|
1524
|
-
const o = u, e =
|
|
1524
|
+
const o = u, e = M(null);
|
|
1525
1525
|
T(o, e);
|
|
1526
1526
|
const s = (i) => {
|
|
1527
1527
|
o.question.onClick(i);
|
|
@@ -1550,7 +1550,7 @@ const p1 = /* @__PURE__ */ h({
|
|
|
1550
1550
|
disabled: "",
|
|
1551
1551
|
id: i.question.inputId,
|
|
1552
1552
|
class: a(i.question.getControlClass())
|
|
1553
|
-
}, H(i.question.readOnlyText), 11,
|
|
1553
|
+
}, H(i.question.readOnlyText), 11, v1)) : R((r(), l("select", {
|
|
1554
1554
|
key: 0,
|
|
1555
1555
|
id: i.question.inputId,
|
|
1556
1556
|
"onUpdate:modelValue": d[0] || (d[0] = (m) => t.value = m),
|
|
@@ -1564,14 +1564,14 @@ const p1 = /* @__PURE__ */ h({
|
|
|
1564
1564
|
"aria-errormessage": i.question.ariaErrormessage,
|
|
1565
1565
|
required: i.question.isRequired
|
|
1566
1566
|
}, [
|
|
1567
|
-
i.question.allowClear ? (r(), l("option",
|
|
1568
|
-
(r(!0), l(I, null,
|
|
1567
|
+
i.question.allowClear ? (r(), l("option", d1, H(i.question.placeholder), 1)) : c("", !0),
|
|
1568
|
+
(r(!0), l(I, null, B(i.question.visibleChoices, (m) => (r(), C(v, {
|
|
1569
1569
|
is: "sv-dropdown-option-item",
|
|
1570
1570
|
item: m,
|
|
1571
1571
|
key: m.id
|
|
1572
1572
|
}, null, 8, ["item"]))), 128))
|
|
1573
|
-
], 42,
|
|
1574
|
-
[
|
|
1573
|
+
], 42, u1)), [
|
|
1574
|
+
[Te, t.value]
|
|
1575
1575
|
]),
|
|
1576
1576
|
i.question.cssClasses.chevronButtonIconId ? (r(), l("div", {
|
|
1577
1577
|
key: 2,
|
|
@@ -1592,182 +1592,182 @@ const p1 = /* @__PURE__ */ h({
|
|
|
1592
1592
|
}, null, 8, ["question"])) : c("", !0)
|
|
1593
1593
|
], 2));
|
|
1594
1594
|
}
|
|
1595
|
-
}),
|
|
1595
|
+
}), p1 = ["value", "disabled"], m1 = /* @__PURE__ */ h({
|
|
1596
1596
|
__name: "OptionItem",
|
|
1597
1597
|
props: {
|
|
1598
1598
|
item: {}
|
|
1599
1599
|
},
|
|
1600
1600
|
setup(u) {
|
|
1601
1601
|
const o = u, e = K(() => o.item.locText);
|
|
1602
|
-
return
|
|
1602
|
+
return V(() => o.item), (s, n) => (r(), l("option", {
|
|
1603
1603
|
value: s.item.value,
|
|
1604
1604
|
disabled: !s.item.isEnabled
|
|
1605
|
-
}, H(
|
|
1605
|
+
}, H(w(e)), 9, p1));
|
|
1606
1606
|
}
|
|
1607
|
-
}),
|
|
1607
|
+
}), g1 = ["id", "disabled", "tabindex", "role", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], C1 = { style: { visibility: "hidden" } }, y1 = ["disabled", "inputmode", "role", "id", "tabindex", "readonly", "aria-expanded", "aria-controls", "aria-label", "aria-labelledby", "aria-describedby", "aria-activedescendant", "placeholder"], h1 = ["id", "aria-label", "aria-labelledby", "aria-describedby", "tabindex"], q1 = /* @__PURE__ */ h({
|
|
1608
1608
|
__name: "Dropdown",
|
|
1609
1609
|
props: {
|
|
1610
1610
|
question: {}
|
|
1611
1611
|
},
|
|
1612
1612
|
setup(u) {
|
|
1613
|
-
const o = u, e =
|
|
1613
|
+
const o = u, e = M(null), s = L(() => o.question.dropdownListModel), n = (k) => {
|
|
1614
1614
|
var A;
|
|
1615
|
-
(A = s.value) == null || A.onClick(
|
|
1616
|
-
}, t = (
|
|
1615
|
+
(A = s.value) == null || A.onClick(k);
|
|
1616
|
+
}, t = (k) => {
|
|
1617
1617
|
var A;
|
|
1618
|
-
(A = s.value) == null || A.chevronPointerDown(
|
|
1619
|
-
}, i = (
|
|
1618
|
+
(A = s.value) == null || A.chevronPointerDown(k);
|
|
1619
|
+
}, i = (k) => {
|
|
1620
1620
|
var A;
|
|
1621
|
-
(A = s.value) == null || A.onClear(
|
|
1622
|
-
}, d = (
|
|
1621
|
+
(A = s.value) == null || A.onClear(k);
|
|
1622
|
+
}, d = (k) => {
|
|
1623
1623
|
var A;
|
|
1624
|
-
(A = s.value) == null || A.keyHandler(
|
|
1624
|
+
(A = s.value) == null || A.keyHandler(k);
|
|
1625
1625
|
}, m = () => {
|
|
1626
1626
|
if (e.value) {
|
|
1627
|
-
const
|
|
1628
|
-
|
|
1627
|
+
const k = e.value, A = s.value.inputStringRendered;
|
|
1628
|
+
Ee.isTwoValueEquals(A, k.value, !1, !0, !1) || (k.value = s.value.inputStringRendered);
|
|
1629
1629
|
}
|
|
1630
|
-
}, p = (
|
|
1631
|
-
o.question.onBlur(
|
|
1632
|
-
}, q = (
|
|
1633
|
-
o.question.onFocus(
|
|
1634
|
-
},
|
|
1635
|
-
s.value.inputStringRendered =
|
|
1630
|
+
}, p = (k) => {
|
|
1631
|
+
o.question.onBlur(k), m();
|
|
1632
|
+
}, q = (k) => {
|
|
1633
|
+
o.question.onFocus(k);
|
|
1634
|
+
}, S = (k) => {
|
|
1635
|
+
s.value.inputStringRendered = k.target.value;
|
|
1636
1636
|
}, f = L(
|
|
1637
1637
|
() => o.question.showSelectedItemLocText
|
|
1638
|
-
),
|
|
1639
|
-
return
|
|
1640
|
-
class: a(
|
|
1638
|
+
), N = L(() => o.question.selectedItemLocText);
|
|
1639
|
+
return V(() => s.value), x(m), Z(m), (k, A) => (r(), l("div", {
|
|
1640
|
+
class: a(k.question.cssClasses.selectWrapper),
|
|
1641
1641
|
onClick: n
|
|
1642
1642
|
}, [
|
|
1643
|
-
|
|
1643
|
+
k.question.isReadOnly ? c("", !0) : (r(), l("div", {
|
|
1644
1644
|
key: 0,
|
|
1645
|
-
id:
|
|
1646
|
-
disabled:
|
|
1645
|
+
id: k.question.inputId,
|
|
1646
|
+
disabled: k.question.isDisabledAttr ? !0 : null,
|
|
1647
1647
|
tabindex: s.value.noTabIndex ? void 0 : 0,
|
|
1648
1648
|
onKeydown: d,
|
|
1649
1649
|
onBlur: p,
|
|
1650
|
-
class: a(
|
|
1651
|
-
role:
|
|
1652
|
-
"aria-required":
|
|
1653
|
-
"aria-label":
|
|
1654
|
-
"aria-invalid":
|
|
1655
|
-
"aria-errormessage":
|
|
1656
|
-
"aria-expanded":
|
|
1650
|
+
class: a(k.question.getControlClass()),
|
|
1651
|
+
role: k.question.ariaRole,
|
|
1652
|
+
"aria-required": k.question.ariaRequired,
|
|
1653
|
+
"aria-label": k.question.ariaLabel,
|
|
1654
|
+
"aria-invalid": k.question.ariaInvalid,
|
|
1655
|
+
"aria-errormessage": k.question.ariaErrormessage,
|
|
1656
|
+
"aria-expanded": k.question.ariaExpanded,
|
|
1657
1657
|
"aria-controls": s.value.listElementId,
|
|
1658
1658
|
"aria-activedescendant": s.value.ariaActivedescendant,
|
|
1659
|
-
required:
|
|
1659
|
+
required: k.question.isRequired ? !0 : null
|
|
1660
1660
|
}, [
|
|
1661
1661
|
s.value.showHintPrefix ? (r(), l("div", {
|
|
1662
1662
|
key: 0,
|
|
1663
|
-
class: a(
|
|
1663
|
+
class: a(k.question.cssClasses.hintPrefix)
|
|
1664
1664
|
}, [
|
|
1665
1665
|
g("span", null, H(s.value.hintStringPrefix), 1)
|
|
1666
1666
|
], 2)) : c("", !0),
|
|
1667
1667
|
g("div", {
|
|
1668
|
-
class: a(
|
|
1668
|
+
class: a(k.question.cssClasses.controlValue)
|
|
1669
1669
|
}, [
|
|
1670
1670
|
f.value ? (r(), C(v, {
|
|
1671
1671
|
key: 0,
|
|
1672
1672
|
is: "survey-string",
|
|
1673
|
-
locString:
|
|
1673
|
+
locString: N.value
|
|
1674
1674
|
}, null, 8, ["locString"])) : c("", !0),
|
|
1675
1675
|
s.value.showHintString ? (r(), l("div", {
|
|
1676
1676
|
key: 1,
|
|
1677
|
-
class: a(
|
|
1677
|
+
class: a(k.question.cssClasses.hintSuffix)
|
|
1678
1678
|
}, [
|
|
1679
|
-
g("span",
|
|
1679
|
+
g("span", C1, H(s.value.inputStringRendered), 1),
|
|
1680
1680
|
g("span", null, H(s.value.hintStringSuffix), 1)
|
|
1681
1681
|
], 2)) : c("", !0),
|
|
1682
|
-
|
|
1682
|
+
k.question.showInputFieldComponent ? (r(), C(v, {
|
|
1683
1683
|
key: 2,
|
|
1684
|
-
is:
|
|
1684
|
+
is: k.question.inputFieldComponentName,
|
|
1685
1685
|
item: s.value.getSelectedAction(),
|
|
1686
|
-
question:
|
|
1686
|
+
question: k.question
|
|
1687
1687
|
}, null, 8, ["is", "item", "question"])) : c("", !0),
|
|
1688
1688
|
g("input", {
|
|
1689
1689
|
type: "text",
|
|
1690
1690
|
ref_key: "inputElement",
|
|
1691
1691
|
ref: e,
|
|
1692
|
-
class: a(
|
|
1693
|
-
disabled:
|
|
1692
|
+
class: a(k.question.cssClasses.filterStringInput),
|
|
1693
|
+
disabled: k.question.isDisabledAttr,
|
|
1694
1694
|
autocomplete: "off",
|
|
1695
1695
|
inputmode: s.value.inputMode,
|
|
1696
|
-
role: s.value.filterStringEnabled ?
|
|
1697
|
-
id:
|
|
1696
|
+
role: s.value.filterStringEnabled ? k.question.ariaRole : void 0,
|
|
1697
|
+
id: k.question.getInputId(),
|
|
1698
1698
|
tabindex: s.value.noTabIndex ? void 0 : -1,
|
|
1699
1699
|
readonly: s.value.filterReadOnly ? !0 : void 0,
|
|
1700
|
-
"aria-expanded":
|
|
1700
|
+
"aria-expanded": k.question.ariaExpanded,
|
|
1701
1701
|
"aria-controls": s.value.listElementId,
|
|
1702
|
-
"aria-label":
|
|
1703
|
-
"aria-labelledby":
|
|
1704
|
-
"aria-describedby":
|
|
1702
|
+
"aria-label": k.question.a11y_input_ariaLabel,
|
|
1703
|
+
"aria-labelledby": k.question.a11y_input_ariaLabelledBy,
|
|
1704
|
+
"aria-describedby": k.question.a11y_input_ariaDescribedBy,
|
|
1705
1705
|
"aria-activedescendant": s.value.ariaActivedescendant,
|
|
1706
1706
|
placeholder: s.value.placeholderRendered,
|
|
1707
|
-
onInput:
|
|
1707
|
+
onInput: S,
|
|
1708
1708
|
onBlur: p,
|
|
1709
1709
|
onFocus: q
|
|
1710
|
-
}, null, 42,
|
|
1710
|
+
}, null, 42, y1)
|
|
1711
1711
|
], 2),
|
|
1712
|
-
|
|
1712
|
+
k.question.allowClear && k.question.cssClasses.cleanButtonIconId ? R((r(), l("div", {
|
|
1713
1713
|
key: 1,
|
|
1714
|
-
class: a(
|
|
1714
|
+
class: a(k.question.cssClasses.cleanButton),
|
|
1715
1715
|
onClick: i,
|
|
1716
1716
|
"aria-hidden": "true"
|
|
1717
1717
|
}, [
|
|
1718
1718
|
y(v, {
|
|
1719
1719
|
is: "sv-svg-icon",
|
|
1720
|
-
class: a(
|
|
1721
|
-
iconName:
|
|
1722
|
-
title:
|
|
1720
|
+
class: a(k.question.cssClasses.cleanButtonSvg),
|
|
1721
|
+
iconName: k.question.cssClasses.cleanButtonIconId,
|
|
1722
|
+
title: k.question.clearCaption,
|
|
1723
1723
|
size: "auto"
|
|
1724
1724
|
}, null, 8, ["class", "iconName", "title"])
|
|
1725
1725
|
], 2)), [
|
|
1726
|
-
[
|
|
1726
|
+
[D, k.question.showClearButton]
|
|
1727
1727
|
]) : c("", !0)
|
|
1728
|
-
], 42,
|
|
1729
|
-
|
|
1728
|
+
], 42, g1)),
|
|
1729
|
+
k.question.isReadOnly ? (r(), l("div", {
|
|
1730
1730
|
key: 2,
|
|
1731
|
-
id:
|
|
1732
|
-
"aria-label":
|
|
1733
|
-
"aria-labelledby":
|
|
1734
|
-
"aria-describedby":
|
|
1735
|
-
tabindex:
|
|
1736
|
-
class: a(
|
|
1731
|
+
id: k.question.inputId,
|
|
1732
|
+
"aria-label": k.question.a11y_input_ariaLabel,
|
|
1733
|
+
"aria-labelledby": k.question.a11y_input_ariaLabelledBy,
|
|
1734
|
+
"aria-describedby": k.question.a11y_input_ariaDescribedBy,
|
|
1735
|
+
tabindex: k.question.isDisabledAttr ? void 0 : 0,
|
|
1736
|
+
class: a(k.question.getControlClass())
|
|
1737
1737
|
}, [
|
|
1738
|
-
|
|
1738
|
+
k.question.locReadOnlyText ? (r(), C(v, {
|
|
1739
1739
|
key: 0,
|
|
1740
1740
|
is: "survey-string",
|
|
1741
|
-
locString:
|
|
1741
|
+
locString: k.question.locReadOnlyText
|
|
1742
1742
|
}, null, 8, ["locString"])) : c("", !0)
|
|
1743
|
-
], 10,
|
|
1743
|
+
], 10, h1)) : (r(), C(v, {
|
|
1744
1744
|
key: 1,
|
|
1745
1745
|
is: "sv-popup",
|
|
1746
1746
|
model: s.value.popupModel
|
|
1747
1747
|
}, null, 8, ["model"])),
|
|
1748
|
-
|
|
1748
|
+
k.question.cssClasses.chevronButtonIconId ? (r(), l("div", {
|
|
1749
1749
|
key: 3,
|
|
1750
|
-
class: a(
|
|
1750
|
+
class: a(k.question.cssClasses.chevronButton),
|
|
1751
1751
|
onPointerdown: t,
|
|
1752
1752
|
"aria-hidden": "true"
|
|
1753
1753
|
}, [
|
|
1754
1754
|
y(v, {
|
|
1755
1755
|
is: "sv-svg-icon",
|
|
1756
|
-
class: a(
|
|
1757
|
-
iconName:
|
|
1756
|
+
class: a(k.question.cssClasses.chevronButtonSvg),
|
|
1757
|
+
iconName: k.question.cssClasses.chevronButtonIconId,
|
|
1758
1758
|
size: "auto"
|
|
1759
1759
|
}, null, 8, ["class", "iconName"])
|
|
1760
1760
|
], 34)) : c("", !0)
|
|
1761
1761
|
], 2));
|
|
1762
1762
|
}
|
|
1763
|
-
}),
|
|
1763
|
+
}), w1 = /* @__PURE__ */ h({
|
|
1764
1764
|
inheritAttrs: !1,
|
|
1765
1765
|
__name: "Tagbox",
|
|
1766
1766
|
props: {
|
|
1767
1767
|
question: {}
|
|
1768
1768
|
},
|
|
1769
1769
|
setup(u) {
|
|
1770
|
-
const o = u, e =
|
|
1770
|
+
const o = u, e = M(null);
|
|
1771
1771
|
return T(o, e), (s, n) => (r(), l("div", {
|
|
1772
1772
|
class: a(s.question.renderCssRoot),
|
|
1773
1773
|
ref_key: "root",
|
|
@@ -1784,7 +1784,7 @@ const p1 = /* @__PURE__ */ h({
|
|
|
1784
1784
|
}, null, 8, ["question"])) : c("", !0)
|
|
1785
1785
|
], 2));
|
|
1786
1786
|
}
|
|
1787
|
-
}),
|
|
1787
|
+
}), k1 = ["id", "tabindex", "disabled", "role", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], f1 = ["id", "aria-label", "aria-labelledby", "aria-describedby", "tabindex"], L1 = /* @__PURE__ */ h({
|
|
1788
1788
|
__name: "Tagbox",
|
|
1789
1789
|
props: {
|
|
1790
1790
|
question: {}
|
|
@@ -1792,7 +1792,7 @@ const p1 = /* @__PURE__ */ h({
|
|
|
1792
1792
|
setup(u) {
|
|
1793
1793
|
const o = u, e = L(() => {
|
|
1794
1794
|
const p = o.question;
|
|
1795
|
-
return p.dropdownListModel || (p.dropdownListModel = new
|
|
1795
|
+
return p.dropdownListModel || (p.dropdownListModel = new We(p)), o.question.dropdownListModel;
|
|
1796
1796
|
}), s = (p) => {
|
|
1797
1797
|
var q;
|
|
1798
1798
|
(q = e.value) == null || q.onClick(p);
|
|
@@ -1809,7 +1809,7 @@ const p1 = /* @__PURE__ */ h({
|
|
|
1809
1809
|
var q;
|
|
1810
1810
|
(q = e.value) == null || q.onBlur(p);
|
|
1811
1811
|
}, m = ee(() => o.question.selectedChoices);
|
|
1812
|
-
return
|
|
1812
|
+
return V(() => e.value), (p, q) => (r(), l("div", {
|
|
1813
1813
|
class: a(p.question.cssClasses.selectWrapper),
|
|
1814
1814
|
onClick: s
|
|
1815
1815
|
}, [
|
|
@@ -1834,9 +1834,9 @@ const p1 = /* @__PURE__ */ h({
|
|
|
1834
1834
|
g("div", {
|
|
1835
1835
|
class: a(p.question.cssClasses.controlValue)
|
|
1836
1836
|
}, [
|
|
1837
|
-
(r(!0), l(I, null,
|
|
1837
|
+
(r(!0), l(I, null, B(w(m), (S, f) => (r(), C(v, {
|
|
1838
1838
|
is: "sv-tagbox-item",
|
|
1839
|
-
item:
|
|
1839
|
+
item: S,
|
|
1840
1840
|
question: p.question,
|
|
1841
1841
|
key: "item" + f
|
|
1842
1842
|
}, null, 8, ["item", "question"]))), 128)),
|
|
@@ -1860,9 +1860,9 @@ const p1 = /* @__PURE__ */ h({
|
|
|
1860
1860
|
size: "auto"
|
|
1861
1861
|
}, null, 8, ["class", "iconName", "title"])
|
|
1862
1862
|
], 2)), [
|
|
1863
|
-
[
|
|
1863
|
+
[D, p.question.showClearButton]
|
|
1864
1864
|
]) : c("", !0)
|
|
1865
|
-
], 42,
|
|
1865
|
+
], 42, k1)),
|
|
1866
1866
|
p.question.isReadOnly ? (r(), l("div", {
|
|
1867
1867
|
key: 2,
|
|
1868
1868
|
id: p.question.inputId,
|
|
@@ -1877,7 +1877,7 @@ const p1 = /* @__PURE__ */ h({
|
|
|
1877
1877
|
is: "survey-string",
|
|
1878
1878
|
locString: p.question.locReadOnlyText
|
|
1879
1879
|
}, null, 8, ["locString"])) : c("", !0)
|
|
1880
|
-
], 10,
|
|
1880
|
+
], 10, f1)) : (r(), C(v, {
|
|
1881
1881
|
key: 1,
|
|
1882
1882
|
is: "sv-popup",
|
|
1883
1883
|
model: e.value.popupModel
|
|
@@ -1897,7 +1897,7 @@ const p1 = /* @__PURE__ */ h({
|
|
|
1897
1897
|
], 34)) : c("", !0)
|
|
1898
1898
|
], 2));
|
|
1899
1899
|
}
|
|
1900
|
-
}),
|
|
1900
|
+
}), b1 = { style: { visibility: "hidden" } }, M1 = ["placeholder", "disabled", "inputmode", "role", "aria-expanded", "aria-controls", "aria-label", "aria-labelledby", "aria-describedby", "aria-activedescendant", "id", "readonly", "size"], H1 = /* @__PURE__ */ h({
|
|
1901
1901
|
__name: "TagboxFilter",
|
|
1902
1902
|
props: {
|
|
1903
1903
|
question: {},
|
|
@@ -1914,7 +1914,7 @@ const p1 = /* @__PURE__ */ h({
|
|
|
1914
1914
|
}, t = (i) => {
|
|
1915
1915
|
o.question.onFocus(i);
|
|
1916
1916
|
};
|
|
1917
|
-
return
|
|
1917
|
+
return V(() => o.model), (i, d) => (r(), l("div", {
|
|
1918
1918
|
class: a(i.question.cssClasses.hint)
|
|
1919
1919
|
}, [
|
|
1920
1920
|
i.model.showHintPrefix ? (r(), l("div", {
|
|
@@ -1935,7 +1935,7 @@ const p1 = /* @__PURE__ */ h({
|
|
|
1935
1935
|
key: 1,
|
|
1936
1936
|
class: a(i.question.cssClasses.hintSuffix)
|
|
1937
1937
|
}, [
|
|
1938
|
-
g("span",
|
|
1938
|
+
g("span", b1, H(i.model.inputStringRendered), 1),
|
|
1939
1939
|
g("span", null, H(i.model.hintStringSuffix), 1)
|
|
1940
1940
|
], 2)) : c("", !0),
|
|
1941
1941
|
R(g("input", {
|
|
@@ -1960,13 +1960,13 @@ const p1 = /* @__PURE__ */ h({
|
|
|
1960
1960
|
onKeydown: s,
|
|
1961
1961
|
onBlur: n,
|
|
1962
1962
|
onFocus: t
|
|
1963
|
-
}, null, 42,
|
|
1964
|
-
[
|
|
1963
|
+
}, null, 42, M1), [
|
|
1964
|
+
[Ze, i.model.inputStringRendered]
|
|
1965
1965
|
])
|
|
1966
1966
|
], 2)
|
|
1967
1967
|
], 2));
|
|
1968
1968
|
}
|
|
1969
|
-
}),
|
|
1969
|
+
}), I1 = { class: "sv-tagbox__item-text" }, S1 = /* @__PURE__ */ h({
|
|
1970
1970
|
__name: "TagboxItem",
|
|
1971
1971
|
props: {
|
|
1972
1972
|
question: {},
|
|
@@ -1976,11 +1976,11 @@ const p1 = /* @__PURE__ */ h({
|
|
|
1976
1976
|
const o = u, e = (s) => {
|
|
1977
1977
|
o.question.dropdownListModel.deselectItem(o.item.value), s.stopPropagation();
|
|
1978
1978
|
};
|
|
1979
|
-
return
|
|
1979
|
+
return V(() => o.item), (s, n) => (r(), l("div", {
|
|
1980
1980
|
class: "sv-tagbox__item",
|
|
1981
1981
|
key: s.item.key
|
|
1982
1982
|
}, [
|
|
1983
|
-
g("div",
|
|
1983
|
+
g("div", I1, [
|
|
1984
1984
|
y(v, {
|
|
1985
1985
|
is: "survey-string",
|
|
1986
1986
|
locString: s.item.locText
|
|
@@ -1999,14 +1999,14 @@ const p1 = /* @__PURE__ */ h({
|
|
|
1999
1999
|
], 2)
|
|
2000
2000
|
]));
|
|
2001
2001
|
}
|
|
2002
|
-
}),
|
|
2002
|
+
}), B1 = /* @__PURE__ */ h({
|
|
2003
2003
|
inheritAttrs: !1,
|
|
2004
2004
|
__name: "Ranking",
|
|
2005
2005
|
props: {
|
|
2006
2006
|
question: {}
|
|
2007
2007
|
},
|
|
2008
2008
|
setup(u) {
|
|
2009
|
-
const o = u, e =
|
|
2009
|
+
const o = u, e = M(null);
|
|
2010
2010
|
T(o, e);
|
|
2011
2011
|
const s = (t) => o.question.getItemValueWrapperComponentName(t) || "survey-ranking-item", n = (t, i, d) => ({
|
|
2012
2012
|
componentName: "survey-ranking-item",
|
|
@@ -2023,7 +2023,7 @@ const p1 = /* @__PURE__ */ h({
|
|
|
2023
2023
|
ref_key: "root",
|
|
2024
2024
|
ref: e
|
|
2025
2025
|
}, [
|
|
2026
|
-
t.question.selectToRankEnabled ? c("", !0) : (r(!0), l(I, { key: 0 },
|
|
2026
|
+
t.question.selectToRankEnabled ? c("", !0) : (r(!0), l(I, { key: 0 }, B(t.question.renderedRankingChoices, (d, m) => (r(), C(v, $({
|
|
2027
2027
|
key: d.value + "-" + m + "-item",
|
|
2028
2028
|
is: s(d)
|
|
2029
2029
|
}, n(d, m)), null, 16, ["is"]))), 128)),
|
|
@@ -2032,7 +2032,7 @@ const p1 = /* @__PURE__ */ h({
|
|
|
2032
2032
|
class: a(t.question.getContainerClasses("from")),
|
|
2033
2033
|
"data-ranking": "from-container"
|
|
2034
2034
|
}, [
|
|
2035
|
-
(r(!0), l(I, null,
|
|
2035
|
+
(r(!0), l(I, null, B(t.question.renderedUnRankingChoices, (d, m) => (r(), C(v, $({
|
|
2036
2036
|
key: d.value + "-" + m + "-item",
|
|
2037
2037
|
is: s(d)
|
|
2038
2038
|
}, n(d, m, !0)), null, 16, ["is"]))), 128)),
|
|
@@ -2055,7 +2055,7 @@ const p1 = /* @__PURE__ */ h({
|
|
|
2055
2055
|
class: a(t.question.getContainerClasses("to")),
|
|
2056
2056
|
"data-ranking": "to-container"
|
|
2057
2057
|
}, [
|
|
2058
|
-
(r(!0), l(I, null,
|
|
2058
|
+
(r(!0), l(I, null, B(t.question.renderedRankingChoices, (d, m) => (r(), C(v, $({
|
|
2059
2059
|
key: d.value + "-" + m + "-item",
|
|
2060
2060
|
is: s(d)
|
|
2061
2061
|
}, n(d, m)), null, 16, ["is"]))), 128)),
|
|
@@ -2071,10 +2071,10 @@ const p1 = /* @__PURE__ */ h({
|
|
|
2071
2071
|
], 2)) : c("", !0)
|
|
2072
2072
|
], 2));
|
|
2073
2073
|
}
|
|
2074
|
-
}),
|
|
2074
|
+
}), V1 = ["id", "tabindex", "data-sv-drop-target-ranking-item"], R1 = {
|
|
2075
2075
|
tabindex: "-1",
|
|
2076
2076
|
style: { outline: "none" }
|
|
2077
|
-
},
|
|
2077
|
+
}, T1 = ["xlink:href"], Z1 = ["xlink:href"], $1 = ["xlink:href"], D1 = /* @__PURE__ */ h({
|
|
2078
2078
|
inheritAttrs: !1,
|
|
2079
2079
|
__name: "RankingItem",
|
|
2080
2080
|
props: {
|
|
@@ -2085,7 +2085,7 @@ const p1 = /* @__PURE__ */ h({
|
|
|
2085
2085
|
},
|
|
2086
2086
|
setup(u) {
|
|
2087
2087
|
const o = u, e = L(() => o.question.getNumberByIndex(o.index));
|
|
2088
|
-
return
|
|
2088
|
+
return V(() => o.item), (s, n) => (r(), l("div", {
|
|
2089
2089
|
id: s.question.getItemId(s.item),
|
|
2090
2090
|
tabindex: s.question.getItemTabIndex(s.item),
|
|
2091
2091
|
"data-sv-drop-target-ranking-item": s.index,
|
|
@@ -2110,7 +2110,7 @@ const p1 = /* @__PURE__ */ h({
|
|
|
2110
2110
|
);
|
|
2111
2111
|
})
|
|
2112
2112
|
}, [
|
|
2113
|
-
g("div",
|
|
2113
|
+
g("div", R1, [
|
|
2114
2114
|
g("div", {
|
|
2115
2115
|
class: a(s.question.cssClasses.itemGhostNode)
|
|
2116
2116
|
}, null, 2),
|
|
@@ -2125,14 +2125,14 @@ const p1 = /* @__PURE__ */ h({
|
|
|
2125
2125
|
}, [
|
|
2126
2126
|
g("use", {
|
|
2127
2127
|
"xlink:href": s.question.dragDropSvgIcon
|
|
2128
|
-
}, null, 8,
|
|
2128
|
+
}, null, 8, T1)
|
|
2129
2129
|
], 2)),
|
|
2130
2130
|
(r(), l("svg", {
|
|
2131
2131
|
class: a(s.question.getIconFocusCss())
|
|
2132
2132
|
}, [
|
|
2133
2133
|
g("use", {
|
|
2134
2134
|
"xlink:href": s.question.arrowsSvgIcon
|
|
2135
|
-
}, null, 8,
|
|
2135
|
+
}, null, 8, Z1)
|
|
2136
2136
|
], 2))
|
|
2137
2137
|
], 2),
|
|
2138
2138
|
!s.unrankedItem && e.value ? (r(), l("div", {
|
|
@@ -2145,7 +2145,7 @@ const p1 = /* @__PURE__ */ h({
|
|
|
2145
2145
|
(r(), l("svg", null, [
|
|
2146
2146
|
g("use", {
|
|
2147
2147
|
"xlink:href": s.question.dashSvgIcon
|
|
2148
|
-
}, null, 8,
|
|
2148
|
+
}, null, 8, $1)
|
|
2149
2149
|
]))
|
|
2150
2150
|
], 2)),
|
|
2151
2151
|
y(v, {
|
|
@@ -2155,9 +2155,9 @@ const p1 = /* @__PURE__ */ h({
|
|
|
2155
2155
|
}, null, 8, ["is", "item", "cssClasses"])
|
|
2156
2156
|
], 2)
|
|
2157
2157
|
])
|
|
2158
|
-
], 42,
|
|
2158
|
+
], 42, V1));
|
|
2159
2159
|
}
|
|
2160
|
-
}),
|
|
2160
|
+
}), A1 = /* @__PURE__ */ h({
|
|
2161
2161
|
inheritAttrs: !1,
|
|
2162
2162
|
__name: "RankingItemContent",
|
|
2163
2163
|
props: {
|
|
@@ -2174,17 +2174,17 @@ const p1 = /* @__PURE__ */ h({
|
|
|
2174
2174
|
}, null, 8, ["locString"])
|
|
2175
2175
|
], 2));
|
|
2176
2176
|
}
|
|
2177
|
-
}),
|
|
2177
|
+
}), P1 = { role: "radiogroup" }, N1 = /* @__PURE__ */ g("legend", {
|
|
2178
2178
|
role: "presentation",
|
|
2179
2179
|
class: "sv-hidden"
|
|
2180
|
-
}, null, -1),
|
|
2180
|
+
}, null, -1), E1 = /* @__PURE__ */ h({
|
|
2181
2181
|
inheritAttrs: !1,
|
|
2182
2182
|
__name: "Rating",
|
|
2183
2183
|
props: {
|
|
2184
2184
|
question: {}
|
|
2185
2185
|
},
|
|
2186
2186
|
setup(u) {
|
|
2187
|
-
const o = u, e =
|
|
2187
|
+
const o = u, e = M(null);
|
|
2188
2188
|
T(o, e);
|
|
2189
2189
|
const s = (n) => o.question.getInputId(n);
|
|
2190
2190
|
return (n, t) => (r(), l("div", {
|
|
@@ -2192,8 +2192,8 @@ const p1 = /* @__PURE__ */ h({
|
|
|
2192
2192
|
ref_key: "root",
|
|
2193
2193
|
ref: e
|
|
2194
2194
|
}, [
|
|
2195
|
-
g("fieldset",
|
|
2196
|
-
|
|
2195
|
+
g("fieldset", P1, [
|
|
2196
|
+
N1,
|
|
2197
2197
|
n.question.hasMinLabel ? (r(), l("span", {
|
|
2198
2198
|
key: 0,
|
|
2199
2199
|
class: a(n.question.cssClasses.minText)
|
|
@@ -2203,7 +2203,7 @@ const p1 = /* @__PURE__ */ h({
|
|
|
2203
2203
|
locString: n.question.locMinRateDescription
|
|
2204
2204
|
}, null, 8, ["locString"])
|
|
2205
2205
|
], 2)) : c("", !0),
|
|
2206
|
-
(r(!0), l(I, null,
|
|
2206
|
+
(r(!0), l(I, null, B(n.question.renderedRateItems, (i, d) => (r(), C(v, {
|
|
2207
2207
|
key: s(d),
|
|
2208
2208
|
is: n.question.itemComponent,
|
|
2209
2209
|
item: i,
|
|
@@ -2222,7 +2222,7 @@ const p1 = /* @__PURE__ */ h({
|
|
|
2222
2222
|
])
|
|
2223
2223
|
], 2));
|
|
2224
2224
|
}
|
|
2225
|
-
}),
|
|
2225
|
+
}), W1 = ["name", "id", "value", "disabled", "readonly", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], O1 = ["data-text"], F1 = /* @__PURE__ */ h({
|
|
2226
2226
|
__name: "RatingItem",
|
|
2227
2227
|
props: {
|
|
2228
2228
|
question: {},
|
|
@@ -2231,7 +2231,7 @@ const p1 = /* @__PURE__ */ h({
|
|
|
2231
2231
|
},
|
|
2232
2232
|
setup(u) {
|
|
2233
2233
|
const o = u;
|
|
2234
|
-
return
|
|
2234
|
+
return V(() => o.item), (e, s) => (r(), l("label", {
|
|
2235
2235
|
key: e.item.value,
|
|
2236
2236
|
onMousedown: s[1] || (s[1] = (n) => e.question.onMouseDown()),
|
|
2237
2237
|
class: a(e.question.getItemClassByText(e.item.itemValue, e.item.text))
|
|
@@ -2249,7 +2249,7 @@ const p1 = /* @__PURE__ */ h({
|
|
|
2249
2249
|
"aria-label": e.question.ariaLabel,
|
|
2250
2250
|
"aria-invalid": e.question.ariaInvalid,
|
|
2251
2251
|
"aria-errormessage": e.question.ariaErrormessage
|
|
2252
|
-
}, null, 8,
|
|
2252
|
+
}, null, 8, W1),
|
|
2253
2253
|
g("span", {
|
|
2254
2254
|
class: a(e.question.cssClasses.itemText),
|
|
2255
2255
|
"data-text": e.item.text
|
|
@@ -2258,10 +2258,10 @@ const p1 = /* @__PURE__ */ h({
|
|
|
2258
2258
|
is: "survey-string",
|
|
2259
2259
|
locString: e.item.locText
|
|
2260
2260
|
}, null, 8, ["locString"])
|
|
2261
|
-
], 10,
|
|
2261
|
+
], 10, O1)
|
|
2262
2262
|
], 34));
|
|
2263
2263
|
}
|
|
2264
|
-
}),
|
|
2264
|
+
}), z1 = ["name", "id", "value", "disabled", "readonly", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], U1 = /* @__PURE__ */ h({
|
|
2265
2265
|
__name: "RatingItemSmiley",
|
|
2266
2266
|
props: {
|
|
2267
2267
|
question: {},
|
|
@@ -2270,10 +2270,10 @@ const p1 = /* @__PURE__ */ h({
|
|
|
2270
2270
|
},
|
|
2271
2271
|
setup(u) {
|
|
2272
2272
|
const o = u;
|
|
2273
|
-
return
|
|
2273
|
+
return V(() => o.item), (e, s) => (r(), l("label", {
|
|
2274
2274
|
key: e.item.value,
|
|
2275
2275
|
onMousedown: s[1] || (s[1] = (n) => e.question.onMouseDown()),
|
|
2276
|
-
style:
|
|
2276
|
+
style: b(e.question.getItemStyle(e.item.itemValue, e.item.highlight)),
|
|
2277
2277
|
class: a(e.question.getItemClass(e.item.itemValue, e.item.highlight)),
|
|
2278
2278
|
onMouseover: s[2] || (s[2] = (n) => e.question.onItemMouseIn(e.item)),
|
|
2279
2279
|
onMouseleave: s[3] || (s[3] = (n) => e.question.onItemMouseOut(e.item))
|
|
@@ -2291,7 +2291,7 @@ const p1 = /* @__PURE__ */ h({
|
|
|
2291
2291
|
"aria-label": e.question.ariaLabel,
|
|
2292
2292
|
"aria-invalid": e.question.ariaInvalid,
|
|
2293
2293
|
"aria-errormessage": e.question.ariaErrormessage
|
|
2294
|
-
}, null, 8,
|
|
2294
|
+
}, null, 8, z1),
|
|
2295
2295
|
y(v, {
|
|
2296
2296
|
is: "sv-svg-icon",
|
|
2297
2297
|
iconName: e.question.getItemSmileyIconName(e.item.itemValue),
|
|
@@ -2300,7 +2300,7 @@ const p1 = /* @__PURE__ */ h({
|
|
|
2300
2300
|
}, null, 8, ["iconName", "title"])
|
|
2301
2301
|
], 38));
|
|
2302
2302
|
}
|
|
2303
|
-
}),
|
|
2303
|
+
}), K1 = ["name", "id", "value", "disabled", "readonly", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], j1 = /* @__PURE__ */ h({
|
|
2304
2304
|
__name: "RatingItemStar",
|
|
2305
2305
|
props: {
|
|
2306
2306
|
question: {},
|
|
@@ -2309,7 +2309,7 @@ const p1 = /* @__PURE__ */ h({
|
|
|
2309
2309
|
},
|
|
2310
2310
|
setup(u) {
|
|
2311
2311
|
const o = u;
|
|
2312
|
-
return
|
|
2312
|
+
return V(() => o.item), (e, s) => (r(), l("label", {
|
|
2313
2313
|
key: e.item.value,
|
|
2314
2314
|
onMousedown: s[1] || (s[1] = (n) => e.question.onMouseDown()),
|
|
2315
2315
|
class: a(e.question.getItemClass(e.item.itemValue)),
|
|
@@ -2329,7 +2329,7 @@ const p1 = /* @__PURE__ */ h({
|
|
|
2329
2329
|
"aria-label": e.question.ariaLabel,
|
|
2330
2330
|
"aria-invalid": e.question.ariaInvalid,
|
|
2331
2331
|
"aria-errormessage": e.question.ariaErrormessage
|
|
2332
|
-
}, null, 8,
|
|
2332
|
+
}, null, 8, K1),
|
|
2333
2333
|
y(v, {
|
|
2334
2334
|
is: "sv-svg-icon",
|
|
2335
2335
|
class: a("sv-star"),
|
|
@@ -2346,10 +2346,10 @@ const p1 = /* @__PURE__ */ h({
|
|
|
2346
2346
|
}, null, 8, ["iconName", "title"])
|
|
2347
2347
|
], 34));
|
|
2348
2348
|
}
|
|
2349
|
-
}),
|
|
2349
|
+
}), Q1 = { class: "sd-rating-dropdown-item" }, G1 = { class: "sd-rating-dropdown-item_text" }, J1 = {
|
|
2350
2350
|
key: 0,
|
|
2351
2351
|
class: "sd-rating-dropdown-item_description"
|
|
2352
|
-
},
|
|
2352
|
+
}, X1 = /* @__PURE__ */ h({
|
|
2353
2353
|
__name: "RatingDropdownItem",
|
|
2354
2354
|
props: {
|
|
2355
2355
|
item: {},
|
|
@@ -2357,9 +2357,9 @@ const p1 = /* @__PURE__ */ h({
|
|
|
2357
2357
|
},
|
|
2358
2358
|
setup(u) {
|
|
2359
2359
|
const o = u;
|
|
2360
|
-
return
|
|
2361
|
-
g("span",
|
|
2362
|
-
e.item.description ? (r(), l("div",
|
|
2360
|
+
return V(() => o.item), (e, s) => (r(), l("div", Q1, [
|
|
2361
|
+
g("span", G1, H(e.item.title), 1),
|
|
2362
|
+
e.item.description ? (r(), l("div", J1, [
|
|
2363
2363
|
y(v, {
|
|
2364
2364
|
is: "survey-string",
|
|
2365
2365
|
locString: e.item.description
|
|
@@ -2373,14 +2373,14 @@ _.Instance.registerRenderer(
|
|
|
2373
2373
|
"dropdown",
|
|
2374
2374
|
"sv-rating-dropdown"
|
|
2375
2375
|
);
|
|
2376
|
-
const
|
|
2376
|
+
const Y1 = /* @__PURE__ */ h({
|
|
2377
2377
|
inheritAttrs: !1,
|
|
2378
2378
|
__name: "RatingDropdown",
|
|
2379
2379
|
props: {
|
|
2380
2380
|
question: {}
|
|
2381
2381
|
},
|
|
2382
2382
|
setup(u) {
|
|
2383
|
-
const o = u, e =
|
|
2383
|
+
const o = u, e = M(null);
|
|
2384
2384
|
return T(o, e), (s, n) => (r(), l("div", {
|
|
2385
2385
|
class: a(s.question.cssClasses.rootDropdown),
|
|
2386
2386
|
ref_key: "root",
|
|
@@ -2392,14 +2392,14 @@ const x1 = /* @__PURE__ */ h({
|
|
|
2392
2392
|
}, null, 8, ["question"])
|
|
2393
2393
|
], 2));
|
|
2394
2394
|
}
|
|
2395
|
-
}),
|
|
2395
|
+
}), x1 = ["name", "value", "id", ".indeterminate", "disabled", "readonly", "role", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], _1 = /* @__PURE__ */ h({
|
|
2396
2396
|
inheritAttrs: !1,
|
|
2397
2397
|
__name: "BooleanSwitch",
|
|
2398
2398
|
props: {
|
|
2399
2399
|
question: {}
|
|
2400
2400
|
},
|
|
2401
2401
|
setup(u) {
|
|
2402
|
-
const o = u, e =
|
|
2402
|
+
const o = u, e = M(null);
|
|
2403
2403
|
T(o, e);
|
|
2404
2404
|
const s = (t, i) => {
|
|
2405
2405
|
o.question.onLabelClick(t, i);
|
|
@@ -2434,7 +2434,7 @@ const x1 = /* @__PURE__ */ h({
|
|
|
2434
2434
|
"aria-describedby": t.question.a11y_input_ariaDescribedBy,
|
|
2435
2435
|
"aria-invalid": t.question.a11y_input_ariaInvalid,
|
|
2436
2436
|
"aria-errormessage": t.question.a11y_input_ariaErrormessage
|
|
2437
|
-
}, null, 42,
|
|
2437
|
+
}, null, 42, x1), [
|
|
2438
2438
|
[oe, t.question.booleanValue]
|
|
2439
2439
|
]),
|
|
2440
2440
|
g("div", {
|
|
@@ -2491,14 +2491,14 @@ _.Instance.registerRenderer(
|
|
|
2491
2491
|
"radio",
|
|
2492
2492
|
"sv-boolean-radio"
|
|
2493
2493
|
);
|
|
2494
|
-
const
|
|
2494
|
+
const eo = /* @__PURE__ */ h({
|
|
2495
2495
|
inheritAttrs: !1,
|
|
2496
2496
|
__name: "BooleanRadio",
|
|
2497
2497
|
props: {
|
|
2498
2498
|
question: {}
|
|
2499
2499
|
},
|
|
2500
2500
|
setup(u) {
|
|
2501
|
-
const o =
|
|
2501
|
+
const o = M(null);
|
|
2502
2502
|
return T(u, o), (s, n) => (r(), l("div", {
|
|
2503
2503
|
class: a(s.question.cssClasses.rootRadio),
|
|
2504
2504
|
ref_key: "root",
|
|
@@ -2532,7 +2532,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2532
2532
|
], 2)
|
|
2533
2533
|
], 2));
|
|
2534
2534
|
}
|
|
2535
|
-
}),
|
|
2535
|
+
}), so = ["name", "value", "checked", "aria-errormessage", "disabled", "readonly"], oo = ["xlink:href"], to = /* @__PURE__ */ h({
|
|
2536
2536
|
__name: "BooleanRadioItem",
|
|
2537
2537
|
props: {
|
|
2538
2538
|
question: {},
|
|
@@ -2561,7 +2561,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2561
2561
|
readonly: s.question.isReadOnlyAttr,
|
|
2562
2562
|
class: a(s.question.cssClasses.itemRadioControl),
|
|
2563
2563
|
onChange: e
|
|
2564
|
-
}, null, 42,
|
|
2564
|
+
}, null, 42, so),
|
|
2565
2565
|
s.question.cssClasses.materialRadioDecorator ? (r(), l("span", {
|
|
2566
2566
|
key: 0,
|
|
2567
2567
|
class: a(s.question.cssClasses.materialRadioDecorator)
|
|
@@ -2572,7 +2572,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2572
2572
|
}, [
|
|
2573
2573
|
g("use", {
|
|
2574
2574
|
"xlink:href": s.question.itemSvgIcon
|
|
2575
|
-
}, null, 8,
|
|
2575
|
+
}, null, 8, oo)
|
|
2576
2576
|
], 2)) : c("", !0)
|
|
2577
2577
|
], 2)) : c("", !0),
|
|
2578
2578
|
g("span", {
|
|
@@ -2586,13 +2586,13 @@ const so = /* @__PURE__ */ h({
|
|
|
2586
2586
|
], 2)
|
|
2587
2587
|
], 2));
|
|
2588
2588
|
}
|
|
2589
|
-
}),
|
|
2589
|
+
}), no = ["name", "value", "id", ".indeterminate", "disabled", "readonly", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], ro = ["xlink:href"], io = /* @__PURE__ */ g("span", { class: "check" }, null, -1), ao = ["id"], lo = ["id"];
|
|
2590
2590
|
_.Instance.registerRenderer(
|
|
2591
2591
|
"boolean",
|
|
2592
2592
|
"checkbox",
|
|
2593
2593
|
"sv-boolean-checkbox"
|
|
2594
2594
|
);
|
|
2595
|
-
const
|
|
2595
|
+
const uo = /* @__PURE__ */ h({
|
|
2596
2596
|
inheritAttrs: !1,
|
|
2597
2597
|
__name: "BooleanCheckbox",
|
|
2598
2598
|
props: {
|
|
@@ -2600,7 +2600,7 @@ const vo = /* @__PURE__ */ h({
|
|
|
2600
2600
|
css: {}
|
|
2601
2601
|
},
|
|
2602
2602
|
setup(u) {
|
|
2603
|
-
const o = u, e =
|
|
2603
|
+
const o = u, e = M(null);
|
|
2604
2604
|
return T(o, e), (s, n) => {
|
|
2605
2605
|
var t;
|
|
2606
2606
|
return r(), l("div", {
|
|
@@ -2628,7 +2628,7 @@ const vo = /* @__PURE__ */ h({
|
|
|
2628
2628
|
"aria-label": s.question.ariaLabel,
|
|
2629
2629
|
"aria-invalid": s.question.ariaInvalid,
|
|
2630
2630
|
"aria-errormessage": s.question.ariaErrormessage
|
|
2631
|
-
}, null, 42,
|
|
2631
|
+
}, null, 42, no), [
|
|
2632
2632
|
[oe, s.question.booleanValue]
|
|
2633
2633
|
]),
|
|
2634
2634
|
g("span", {
|
|
@@ -2640,9 +2640,9 @@ const vo = /* @__PURE__ */ h({
|
|
|
2640
2640
|
}, [
|
|
2641
2641
|
g("use", {
|
|
2642
2642
|
"xlink:href": s.question.svgIcon
|
|
2643
|
-
}, null, 8,
|
|
2643
|
+
}, null, 8, ro)
|
|
2644
2644
|
], 2)) : c("", !0),
|
|
2645
|
-
|
|
2645
|
+
io
|
|
2646
2646
|
], 2),
|
|
2647
2647
|
s.question.isLabelRendered ? (r(), l("span", {
|
|
2648
2648
|
key: 0,
|
|
@@ -2661,7 +2661,7 @@ const vo = /* @__PURE__ */ h({
|
|
|
2661
2661
|
element: s.question,
|
|
2662
2662
|
css: s.css
|
|
2663
2663
|
}, null, 8, ["element", "css"])) : c("", !0)
|
|
2664
|
-
], 10,
|
|
2664
|
+
], 10, ao)) : c("", !0)
|
|
2665
2665
|
], 2),
|
|
2666
2666
|
s.question.canRenderLabelDescription ? (r(), l("div", {
|
|
2667
2667
|
key: 0,
|
|
@@ -2672,33 +2672,33 @@ const vo = /* @__PURE__ */ h({
|
|
|
2672
2672
|
is: "survey-string",
|
|
2673
2673
|
locString: s.question.locDescription
|
|
2674
2674
|
}, null, 8, ["locString"])
|
|
2675
|
-
], 10,
|
|
2675
|
+
], 10, lo)) : c("", !0)
|
|
2676
2676
|
], 2)
|
|
2677
2677
|
], 2);
|
|
2678
2678
|
};
|
|
2679
2679
|
}
|
|
2680
|
-
}),
|
|
2680
|
+
}), vo = /* @__PURE__ */ h({
|
|
2681
2681
|
inheritAttrs: !1,
|
|
2682
2682
|
__name: "Multipletext",
|
|
2683
2683
|
props: {
|
|
2684
2684
|
question: {}
|
|
2685
2685
|
},
|
|
2686
2686
|
setup(u) {
|
|
2687
|
-
const o = u, e =
|
|
2687
|
+
const o = u, e = M(null), s = ee(() => o.question.getRows());
|
|
2688
2688
|
return T(o, e), (n, t) => (r(), l("table", {
|
|
2689
2689
|
class: a(n.question.getQuestionRootCss()),
|
|
2690
2690
|
ref_key: "root",
|
|
2691
2691
|
ref: e
|
|
2692
2692
|
}, [
|
|
2693
2693
|
g("tbody", null, [
|
|
2694
|
-
(r(!0), l(I, null,
|
|
2694
|
+
(r(!0), l(I, null, B(w(s), (i, d) => (r(), l(I, {
|
|
2695
2695
|
key: n.question.inputId + "rowkey" + d
|
|
2696
2696
|
}, [
|
|
2697
2697
|
i.isVisible ? (r(), l("tr", {
|
|
2698
2698
|
key: 0,
|
|
2699
2699
|
class: a(n.question.cssClasses.row)
|
|
2700
2700
|
}, [
|
|
2701
|
-
(r(!0), l(I, null,
|
|
2701
|
+
(r(!0), l(I, null, B(i.cells, (m) => (r(), l("td", {
|
|
2702
2702
|
key: "item" + m.item.editor.id,
|
|
2703
2703
|
class: a(m.className)
|
|
2704
2704
|
}, [
|
|
@@ -2713,7 +2713,7 @@ const vo = /* @__PURE__ */ h({
|
|
|
2713
2713
|
])
|
|
2714
2714
|
], 2));
|
|
2715
2715
|
}
|
|
2716
|
-
}),
|
|
2716
|
+
}), co = { key: 1 }, po = /* @__PURE__ */ h({
|
|
2717
2717
|
__name: "MultipletextItem",
|
|
2718
2718
|
props: {
|
|
2719
2719
|
question: {},
|
|
@@ -2721,7 +2721,7 @@ const vo = /* @__PURE__ */ h({
|
|
|
2721
2721
|
},
|
|
2722
2722
|
setup(u) {
|
|
2723
2723
|
const o = u, e = (n) => te(n);
|
|
2724
|
-
|
|
2724
|
+
V(() => o.cell.item.editor);
|
|
2725
2725
|
const s = L(() => o.cell.item);
|
|
2726
2726
|
return (n, t) => n.cell.isErrorsCell ? (r(), C(v, {
|
|
2727
2727
|
key: 1,
|
|
@@ -2733,7 +2733,7 @@ const vo = /* @__PURE__ */ h({
|
|
|
2733
2733
|
}, [
|
|
2734
2734
|
g("span", {
|
|
2735
2735
|
class: a(n.question.getItemTitleCss()),
|
|
2736
|
-
style:
|
|
2736
|
+
style: b({
|
|
2737
2737
|
minWidth: n.question.itemTitleWidth,
|
|
2738
2738
|
width: n.question.itemTitleWidth
|
|
2739
2739
|
})
|
|
@@ -2746,7 +2746,7 @@ const vo = /* @__PURE__ */ h({
|
|
|
2746
2746
|
is: "survey-string",
|
|
2747
2747
|
locString: s.value.locTitle
|
|
2748
2748
|
}, null, 8, ["locString"]),
|
|
2749
|
-
s.value.editor.isRequireTextAfterTitle ? (r(), l("span",
|
|
2749
|
+
s.value.editor.isRequireTextAfterTitle ? (r(), l("span", co, "\xA0")) : c("", !0),
|
|
2750
2750
|
s.value.editor.isRequireTextAfterTitle ? (r(), l("span", {
|
|
2751
2751
|
key: 2,
|
|
2752
2752
|
"aria-hidden": "true",
|
|
@@ -2765,14 +2765,14 @@ const vo = /* @__PURE__ */ h({
|
|
|
2765
2765
|
], 34))
|
|
2766
2766
|
], 2));
|
|
2767
2767
|
}
|
|
2768
|
-
}),
|
|
2768
|
+
}), mo = { class: "sv-hidden" }, go = { key: 0 }, Co = { key: 0 }, yo = ["onClick"], ho = ["data-responsive-title", "onClick"], qo = /* @__PURE__ */ h({
|
|
2769
2769
|
inheritAttrs: !1,
|
|
2770
2770
|
__name: "Matrix",
|
|
2771
2771
|
props: {
|
|
2772
2772
|
question: {}
|
|
2773
2773
|
},
|
|
2774
2774
|
setup(u) {
|
|
2775
|
-
const o = u, e =
|
|
2775
|
+
const o = u, e = M(null), s = W();
|
|
2776
2776
|
T(
|
|
2777
2777
|
o,
|
|
2778
2778
|
e,
|
|
@@ -2795,17 +2795,17 @@ const vo = /* @__PURE__ */ h({
|
|
|
2795
2795
|
ref: e
|
|
2796
2796
|
}, [
|
|
2797
2797
|
g("fieldset", null, [
|
|
2798
|
-
g("legend",
|
|
2798
|
+
g("legend", mo, H(t.question.locTitle.renderedHtml), 1),
|
|
2799
2799
|
g("table", {
|
|
2800
2800
|
class: a(t.question.getTableCss())
|
|
2801
2801
|
}, [
|
|
2802
|
-
t.question.showHeader ? (r(), l("thead",
|
|
2802
|
+
t.question.showHeader ? (r(), l("thead", go, [
|
|
2803
2803
|
g("tr", null, [
|
|
2804
|
-
t.question.hasRows ? (r(), l("td",
|
|
2805
|
-
(r(!0), l(I, null,
|
|
2804
|
+
t.question.hasRows ? (r(), l("td", Co)) : c("", !0),
|
|
2805
|
+
(r(!0), l(I, null, B(t.question.visibleColumns, (d, m) => (r(), l("th", {
|
|
2806
2806
|
key: m,
|
|
2807
2807
|
class: a(t.question.cssClasses.headerCell),
|
|
2808
|
-
style:
|
|
2808
|
+
style: b({
|
|
2809
2809
|
minWidth: t.question.columnMinWidth,
|
|
2810
2810
|
width: t.question.columnMinWidth
|
|
2811
2811
|
})
|
|
@@ -2826,13 +2826,13 @@ const vo = /* @__PURE__ */ h({
|
|
|
2826
2826
|
])
|
|
2827
2827
|
])) : c("", !0),
|
|
2828
2828
|
g("tbody", null, [
|
|
2829
|
-
(r(!0), l(I, null,
|
|
2829
|
+
(r(!0), l(I, null, B(s.value, (d, m) => (r(), l("tr", {
|
|
2830
2830
|
key: "row_" + d.name + "_" + m,
|
|
2831
2831
|
class: a(d.rowClasses || void 0)
|
|
2832
2832
|
}, [
|
|
2833
2833
|
R(g("td", {
|
|
2834
2834
|
class: a(d.rowTextClasses),
|
|
2835
|
-
style:
|
|
2835
|
+
style: b({
|
|
2836
2836
|
minWidth: t.question.rowTitleWidth,
|
|
2837
2837
|
width: t.question.rowTitleWidth
|
|
2838
2838
|
})
|
|
@@ -2850,23 +2850,23 @@ const vo = /* @__PURE__ */ h({
|
|
|
2850
2850
|
_: 2
|
|
2851
2851
|
}, 1032, ["is", "componentData"])
|
|
2852
2852
|
], 6), [
|
|
2853
|
-
[
|
|
2853
|
+
[D, t.question.hasRows]
|
|
2854
2854
|
]),
|
|
2855
|
-
t.question.hasCellText ? (r(!0), l(I, { key: 0 },
|
|
2855
|
+
t.question.hasCellText ? (r(!0), l(I, { key: 0 }, B(t.question.visibleColumns, (p, q) => (r(), l("td", {
|
|
2856
2856
|
key: q,
|
|
2857
2857
|
class: a(t.question.getItemClass(d, p)),
|
|
2858
|
-
onClick: (
|
|
2858
|
+
onClick: (S) => n(d, p)
|
|
2859
2859
|
}, [
|
|
2860
2860
|
y(v, {
|
|
2861
2861
|
is: "survey-string",
|
|
2862
2862
|
locString: t.question.getCellDisplayLocText(d.name, p)
|
|
2863
2863
|
}, null, 8, ["locString"])
|
|
2864
|
-
], 10,
|
|
2865
|
-
t.question.hasCellText ? c("", !0) : (r(!0), l(I, { key: 1 },
|
|
2864
|
+
], 10, yo))), 128)) : c("", !0),
|
|
2865
|
+
t.question.hasCellText ? c("", !0) : (r(!0), l(I, { key: 1 }, B(t.question.visibleColumns, (p, q) => (r(), l("td", {
|
|
2866
2866
|
key: q,
|
|
2867
2867
|
"data-responsive-title": p.locText.renderedHtml,
|
|
2868
2868
|
class: a(t.question.cssClasses.cell),
|
|
2869
|
-
onClick: (
|
|
2869
|
+
onClick: (S) => n(d, p)
|
|
2870
2870
|
}, [
|
|
2871
2871
|
y(v, {
|
|
2872
2872
|
is: t.question.cellComponent,
|
|
@@ -2875,31 +2875,31 @@ const vo = /* @__PURE__ */ h({
|
|
|
2875
2875
|
column: p,
|
|
2876
2876
|
columnIndex: q
|
|
2877
2877
|
}, null, 8, ["is", "question", "row", "column", "columnIndex"])
|
|
2878
|
-
], 10,
|
|
2878
|
+
], 10, ho))), 128))
|
|
2879
2879
|
], 2))), 128))
|
|
2880
2880
|
])
|
|
2881
2881
|
], 2)
|
|
2882
2882
|
])
|
|
2883
2883
|
], 2));
|
|
2884
2884
|
}
|
|
2885
|
-
}),
|
|
2885
|
+
}), wo = ["data-sv-drop-target-matrix-row"], ko = /* @__PURE__ */ h({
|
|
2886
2886
|
__name: "MatrixRow",
|
|
2887
2887
|
props: {
|
|
2888
2888
|
question: {},
|
|
2889
2889
|
row: {}
|
|
2890
2890
|
},
|
|
2891
2891
|
setup(u) {
|
|
2892
|
-
const o = u, e =
|
|
2893
|
-
|
|
2892
|
+
const o = u, e = M();
|
|
2893
|
+
V(() => o.row);
|
|
2894
2894
|
const s = O(
|
|
2895
2895
|
() => o.row,
|
|
2896
2896
|
(n, t) => {
|
|
2897
2897
|
t && t.setRootElement(void 0), n.setRootElement(e.value);
|
|
2898
2898
|
}
|
|
2899
2899
|
);
|
|
2900
|
-
return
|
|
2900
|
+
return Z(() => {
|
|
2901
2901
|
o.row.setRootElement(e.value);
|
|
2902
|
-
}),
|
|
2902
|
+
}), P(() => {
|
|
2903
2903
|
o.row.setRootElement(void 0), s();
|
|
2904
2904
|
}), (n, t) => n.row.visible ? (r(), l("tr", {
|
|
2905
2905
|
key: 0,
|
|
@@ -2909,15 +2909,15 @@ const vo = /* @__PURE__ */ h({
|
|
|
2909
2909
|
ref_key: "root",
|
|
2910
2910
|
ref: e
|
|
2911
2911
|
}, [
|
|
2912
|
-
(r(!0), l(I, null,
|
|
2912
|
+
(r(!0), l(I, null, B(n.row.cells, (i) => (r(), C(v, {
|
|
2913
2913
|
is: "survey-matrixdropdown-cell",
|
|
2914
2914
|
cell: i,
|
|
2915
2915
|
question: n.question,
|
|
2916
2916
|
key: n.row.id + "_" + i.id
|
|
2917
2917
|
}, null, 8, ["cell", "question"]))), 128))
|
|
2918
|
-
], 42,
|
|
2918
|
+
], 42, wo)) : c("", !0);
|
|
2919
2919
|
}
|
|
2920
|
-
}),
|
|
2920
|
+
}), fo = ["name", "value", "readonly", "disabled", "id", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], Lo = ["xlink:href"], bo = /* @__PURE__ */ h({
|
|
2921
2921
|
inheritAttrs: !1,
|
|
2922
2922
|
__name: "MatrixCell",
|
|
2923
2923
|
props: {
|
|
@@ -2947,7 +2947,7 @@ const vo = /* @__PURE__ */ h({
|
|
|
2947
2947
|
),
|
|
2948
2948
|
"aria-invalid": o.question.a11y_input_ariaInvalid,
|
|
2949
2949
|
"aria-errormessage": o.question.a11y_input_ariaErrormessage
|
|
2950
|
-
}, null, 10,
|
|
2950
|
+
}, null, 10, fo), [
|
|
2951
2951
|
[Y, o.row.value]
|
|
2952
2952
|
]),
|
|
2953
2953
|
g("span", {
|
|
@@ -2959,7 +2959,7 @@ const vo = /* @__PURE__ */ h({
|
|
|
2959
2959
|
}, [
|
|
2960
2960
|
g("use", {
|
|
2961
2961
|
"xlink:href": o.question.itemSvgIcon
|
|
2962
|
-
}, null, 8,
|
|
2962
|
+
}, null, 8, Lo)
|
|
2963
2963
|
], 2)) : c("", !0)
|
|
2964
2964
|
], 2),
|
|
2965
2965
|
o.question.isMobile ? (r(), l("span", {
|
|
@@ -2973,14 +2973,14 @@ const vo = /* @__PURE__ */ h({
|
|
|
2973
2973
|
], 2)) : c("", !0)
|
|
2974
2974
|
], 34));
|
|
2975
2975
|
}
|
|
2976
|
-
}),
|
|
2976
|
+
}), Mo = /* @__PURE__ */ h({
|
|
2977
2977
|
inheritAttrs: !1,
|
|
2978
2978
|
__name: "MatrixDropdown",
|
|
2979
2979
|
props: {
|
|
2980
2980
|
question: {}
|
|
2981
2981
|
},
|
|
2982
2982
|
setup(u) {
|
|
2983
|
-
const o = u, e =
|
|
2983
|
+
const o = u, e = M(null);
|
|
2984
2984
|
return T(o, e), (s, n) => (r(), C(v, {
|
|
2985
2985
|
is: "survey-matrixtable",
|
|
2986
2986
|
question: s.question,
|
|
@@ -2988,27 +2988,27 @@ const vo = /* @__PURE__ */ h({
|
|
|
2988
2988
|
ref: e
|
|
2989
2989
|
}, null, 8, ["question"]));
|
|
2990
2990
|
}
|
|
2991
|
-
}),
|
|
2991
|
+
}), Ho = { key: 0 }, Io = { key: 1 }, So = /* @__PURE__ */ h({
|
|
2992
2992
|
__name: "MatrixTable",
|
|
2993
2993
|
props: {
|
|
2994
2994
|
question: {}
|
|
2995
2995
|
},
|
|
2996
2996
|
setup(u) {
|
|
2997
2997
|
const o = u, e = L(() => o.question.renderedTable);
|
|
2998
|
-
return
|
|
2999
|
-
style:
|
|
2998
|
+
return V(() => e.value), (s, n) => (r(), l("div", {
|
|
2999
|
+
style: b({ overflowX: s.question.showHorizontalScroll ? "scroll" : "" }),
|
|
3000
3000
|
class: a(s.question.cssClasses.tableWrapper)
|
|
3001
3001
|
}, [
|
|
3002
3002
|
g("table", {
|
|
3003
3003
|
class: a(s.question.getTableCss())
|
|
3004
3004
|
}, [
|
|
3005
|
-
e.value.showHeader ? (r(), l("thead",
|
|
3005
|
+
e.value.showHeader ? (r(), l("thead", Ho, [
|
|
3006
3006
|
g("tr", null, [
|
|
3007
|
-
(r(!0), l(I, null,
|
|
3007
|
+
(r(!0), l(I, null, B(e.value.headerRow.cells, (t) => (r(), l(I, null, [
|
|
3008
3008
|
t.hasTitle ? (r(), l("th", {
|
|
3009
3009
|
key: "header_" + t.id,
|
|
3010
3010
|
class: a(t.className),
|
|
3011
|
-
style:
|
|
3011
|
+
style: b({ minWidth: t.minWidth, width: t.width })
|
|
3012
3012
|
}, [
|
|
3013
3013
|
y(v, {
|
|
3014
3014
|
is: s.question.getColumnHeaderWrapperComponentName(t),
|
|
@@ -3032,22 +3032,22 @@ const vo = /* @__PURE__ */ h({
|
|
|
3032
3032
|
t.hasTitle ? c("", !0) : (r(), l("td", {
|
|
3033
3033
|
class: a(t.className),
|
|
3034
3034
|
key: "header_" + t.id,
|
|
3035
|
-
style:
|
|
3035
|
+
style: b({ minWidth: t.minWidth, width: t.width })
|
|
3036
3036
|
}, null, 6))
|
|
3037
3037
|
], 64))), 256))
|
|
3038
3038
|
])
|
|
3039
3039
|
])) : c("", !0),
|
|
3040
3040
|
g("tbody", null, [
|
|
3041
|
-
(r(!0), l(I, null,
|
|
3041
|
+
(r(!0), l(I, null, B(e.value.renderedRows, (t) => (r(), C(v, {
|
|
3042
3042
|
key: s.question.inputId + "_" + t.id,
|
|
3043
3043
|
is: "survey-matrix-row",
|
|
3044
3044
|
row: t,
|
|
3045
3045
|
question: s.question
|
|
3046
3046
|
}, null, 8, ["row", "question"]))), 128))
|
|
3047
3047
|
]),
|
|
3048
|
-
e.value.showFooter ? (r(), l("tfoot",
|
|
3048
|
+
e.value.showFooter ? (r(), l("tfoot", Io, [
|
|
3049
3049
|
g("tr", null, [
|
|
3050
|
-
(r(!0), l(I, null,
|
|
3050
|
+
(r(!0), l(I, null, B(e.value.footerRow.cells, (t, i) => (r(), C(v, {
|
|
3051
3051
|
is: "survey-matrixdropdown-cell",
|
|
3052
3052
|
cell: t,
|
|
3053
3053
|
question: s.question,
|
|
@@ -3058,7 +3058,7 @@ const vo = /* @__PURE__ */ h({
|
|
|
3058
3058
|
], 2)
|
|
3059
3059
|
], 6));
|
|
3060
3060
|
}
|
|
3061
|
-
}),
|
|
3061
|
+
}), Bo = /* @__PURE__ */ g("span", null, "\xA0", -1), Vo = /* @__PURE__ */ h({
|
|
3062
3062
|
__name: "MatrixHeaderRequired",
|
|
3063
3063
|
props: {
|
|
3064
3064
|
question: {},
|
|
@@ -3066,45 +3066,45 @@ const vo = /* @__PURE__ */ h({
|
|
|
3066
3066
|
},
|
|
3067
3067
|
setup(u) {
|
|
3068
3068
|
const o = u;
|
|
3069
|
-
return
|
|
3070
|
-
|
|
3069
|
+
return V(() => o.column), (e, s) => e.column.isRenderedRequired ? (r(), l(I, { key: 0 }, [
|
|
3070
|
+
Bo,
|
|
3071
3071
|
e.column.isRenderedRequired ? (r(), l("span", {
|
|
3072
3072
|
key: 0,
|
|
3073
3073
|
class: a(e.question.cssClasses.cellRequiredText)
|
|
3074
3074
|
}, H(e.column.requiredText), 3)) : c("", !0)
|
|
3075
3075
|
], 64)) : c("", !0);
|
|
3076
3076
|
}
|
|
3077
|
-
}),
|
|
3077
|
+
}), Ro = ["title", "colspan"], To = /* @__PURE__ */ h({
|
|
3078
3078
|
__name: "MatrixDropdownCellComp",
|
|
3079
3079
|
props: {
|
|
3080
3080
|
question: {},
|
|
3081
3081
|
cell: {}
|
|
3082
3082
|
},
|
|
3083
3083
|
setup(u) {
|
|
3084
|
-
const o = u, e =
|
|
3084
|
+
const o = u, e = M(!1), s = M(), n = () => !!o.cell.width || !!o.cell.minWidth ? { width: o.cell.width, minWidth: o.cell.minWidth } : null, t = () => {
|
|
3085
3085
|
!o.cell.hasQuestion || !o.question || !o.question.survey || (e.value = o.cell.question.isVisible);
|
|
3086
3086
|
}, i = (p) => te(p);
|
|
3087
|
-
t(),
|
|
3087
|
+
t(), Z(() => {
|
|
3088
3088
|
if (!o.cell.hasQuestion || !o.question || !o.question.survey)
|
|
3089
3089
|
return;
|
|
3090
3090
|
o.cell.question.registerPropertyChangedHandlers(["isVisible"], () => {
|
|
3091
3091
|
t();
|
|
3092
3092
|
});
|
|
3093
|
-
const p = s.value, q = o.cell.question,
|
|
3093
|
+
const p = s.value, q = o.cell.question, S = {
|
|
3094
3094
|
cell: o.cell.cell,
|
|
3095
3095
|
cellQuestion: q,
|
|
3096
3096
|
htmlElement: p,
|
|
3097
3097
|
row: o.cell.row,
|
|
3098
3098
|
column: o.cell.cell.column
|
|
3099
3099
|
};
|
|
3100
|
-
o.question.survey.matrixAfterCellRender(o.question,
|
|
3100
|
+
o.question.survey.matrixAfterCellRender(o.question, S), q && q.afterRenderCore(p);
|
|
3101
3101
|
});
|
|
3102
3102
|
const d = L(() => {
|
|
3103
3103
|
const p = o.cell;
|
|
3104
3104
|
if (p.hasPanel) {
|
|
3105
|
-
const q = p.panel,
|
|
3106
|
-
if (
|
|
3107
|
-
const f =
|
|
3105
|
+
const q = p.panel, S = q.survey;
|
|
3106
|
+
if (S) {
|
|
3107
|
+
const f = S.getElementWrapperComponentName(q);
|
|
3108
3108
|
if (f)
|
|
3109
3109
|
return f;
|
|
3110
3110
|
}
|
|
@@ -3112,9 +3112,9 @@ const vo = /* @__PURE__ */ h({
|
|
|
3112
3112
|
}
|
|
3113
3113
|
}), m = L(() => {
|
|
3114
3114
|
if (o.cell.hasPanel) {
|
|
3115
|
-
const q = o.cell.panel,
|
|
3115
|
+
const q = o.cell.panel, S = q.survey;
|
|
3116
3116
|
let f;
|
|
3117
|
-
return
|
|
3117
|
+
return S && (f = S.getElementWrapperComponentData(q)), {
|
|
3118
3118
|
componentName: "survey-panel",
|
|
3119
3119
|
componentData: {
|
|
3120
3120
|
element: q,
|
|
@@ -3128,9 +3128,9 @@ const vo = /* @__PURE__ */ h({
|
|
|
3128
3128
|
key: 0,
|
|
3129
3129
|
class: a(p.cell.className),
|
|
3130
3130
|
title: p.cell.getTitle(),
|
|
3131
|
-
style:
|
|
3131
|
+
style: b(n()),
|
|
3132
3132
|
colspan: p.cell.colSpans,
|
|
3133
|
-
onFocusin: q[0] || (q[0] = (
|
|
3133
|
+
onFocusin: q[0] || (q[0] = (S) => p.cell.focusIn()),
|
|
3134
3134
|
ref_key: "root",
|
|
3135
3135
|
ref: s
|
|
3136
3136
|
}, [
|
|
@@ -3150,7 +3150,7 @@ const vo = /* @__PURE__ */ h({
|
|
|
3150
3150
|
model: p.cell.item.getData(),
|
|
3151
3151
|
handleClick: !1
|
|
3152
3152
|
}, null, 8, ["model"])) : c("", !0),
|
|
3153
|
-
p.cell.hasPanel ? (r(), C(v,
|
|
3153
|
+
p.cell.hasPanel ? (r(), C(v, $({
|
|
3154
3154
|
key: 3,
|
|
3155
3155
|
is: d.value
|
|
3156
3156
|
}, m.value), null, 16, ["is"])) : c("", !0),
|
|
@@ -3219,7 +3219,7 @@ const vo = /* @__PURE__ */ h({
|
|
|
3219
3219
|
question: p.cell.question
|
|
3220
3220
|
}, null, 8, ["question"])) : c("", !0)
|
|
3221
3221
|
], 2)), [
|
|
3222
|
-
[
|
|
3222
|
+
[D, e.value]
|
|
3223
3223
|
]) : c("", !0),
|
|
3224
3224
|
p.cell.hasTitle ? (r(), C(v, {
|
|
3225
3225
|
key: 6,
|
|
@@ -3239,16 +3239,16 @@ const vo = /* @__PURE__ */ h({
|
|
|
3239
3239
|
]),
|
|
3240
3240
|
_: 1
|
|
3241
3241
|
}, 8, ["is", "componentData"])) : c("", !0)
|
|
3242
|
-
], 46,
|
|
3242
|
+
], 46, Ro)) : c("", !0);
|
|
3243
3243
|
}
|
|
3244
|
-
}),
|
|
3244
|
+
}), Zo = /* @__PURE__ */ h({
|
|
3245
3245
|
inheritAttrs: !1,
|
|
3246
3246
|
__name: "MatrixDynamic",
|
|
3247
3247
|
props: {
|
|
3248
3248
|
question: {}
|
|
3249
3249
|
},
|
|
3250
3250
|
setup(u) {
|
|
3251
|
-
const o = u, e =
|
|
3251
|
+
const o = u, e = M(null);
|
|
3252
3252
|
T(o, e);
|
|
3253
3253
|
const s = () => {
|
|
3254
3254
|
o.question.addRowUI();
|
|
@@ -3334,7 +3334,7 @@ function ne(u, o = !0) {
|
|
|
3334
3334
|
row: o ? L(() => u.item.data.row) : void 0
|
|
3335
3335
|
};
|
|
3336
3336
|
}
|
|
3337
|
-
const
|
|
3337
|
+
const $o = ["disabled"], Do = /* @__PURE__ */ h({
|
|
3338
3338
|
__name: "RemoveButton",
|
|
3339
3339
|
props: {
|
|
3340
3340
|
item: {}
|
|
@@ -3343,20 +3343,20 @@ const Do = ["disabled"], Ao = /* @__PURE__ */ h({
|
|
|
3343
3343
|
const o = u, { question: e, row: s } = ne(o);
|
|
3344
3344
|
return (n, t) => (r(), l("button", {
|
|
3345
3345
|
type: "button",
|
|
3346
|
-
class: a(
|
|
3347
|
-
disabled:
|
|
3348
|
-
onClick: t[0] || (t[0] = () =>
|
|
3346
|
+
class: a(w(e).getRemoveRowButtonCss()),
|
|
3347
|
+
disabled: w(e).isInputReadOnly,
|
|
3348
|
+
onClick: t[0] || (t[0] = () => w(e).removeRowUI(w(s)))
|
|
3349
3349
|
}, [
|
|
3350
3350
|
y(v, {
|
|
3351
3351
|
is: "survey-string",
|
|
3352
|
-
locString:
|
|
3352
|
+
locString: w(e).locRemoveRowText
|
|
3353
3353
|
}, null, 8, ["locString"]),
|
|
3354
3354
|
g("span", {
|
|
3355
|
-
class: a(
|
|
3355
|
+
class: a(w(e).cssClasses.iconRemove)
|
|
3356
3356
|
}, null, 2)
|
|
3357
|
-
], 10,
|
|
3357
|
+
], 10, $o));
|
|
3358
3358
|
}
|
|
3359
|
-
}),
|
|
3359
|
+
}), Ao = ["xlink:href"], Po = /* @__PURE__ */ h({
|
|
3360
3360
|
__name: "DragDropIcon",
|
|
3361
3361
|
props: {
|
|
3362
3362
|
item: {}
|
|
@@ -3364,20 +3364,20 @@ const Do = ["disabled"], Ao = /* @__PURE__ */ h({
|
|
|
3364
3364
|
setup(u) {
|
|
3365
3365
|
const o = u, { question: e } = ne(o, !1);
|
|
3366
3366
|
return (s, n) => (r(), l("div", null, [
|
|
3367
|
-
|
|
3367
|
+
w(e).iconDragElement ? (r(), l("svg", {
|
|
3368
3368
|
key: 0,
|
|
3369
|
-
class: a(
|
|
3369
|
+
class: a(w(e).cssClasses.dragElementDecorator)
|
|
3370
3370
|
}, [
|
|
3371
3371
|
g("use", {
|
|
3372
|
-
"xlink:href":
|
|
3373
|
-
}, null, 8,
|
|
3372
|
+
"xlink:href": w(e).iconDragElement
|
|
3373
|
+
}, null, 8, Ao)
|
|
3374
3374
|
], 2)) : (r(), l("span", {
|
|
3375
3375
|
key: 1,
|
|
3376
|
-
class: a(
|
|
3376
|
+
class: a(w(e).cssClasses.iconDrag)
|
|
3377
3377
|
}, null, 2))
|
|
3378
3378
|
]));
|
|
3379
3379
|
}
|
|
3380
|
-
}),
|
|
3380
|
+
}), No = ["aria-expanded", "aria-controls"], Eo = /* @__PURE__ */ h({
|
|
3381
3381
|
__name: "DetailButton",
|
|
3382
3382
|
props: {
|
|
3383
3383
|
item: {}
|
|
@@ -3386,20 +3386,20 @@ const Do = ["disabled"], Ao = /* @__PURE__ */ h({
|
|
|
3386
3386
|
const o = u, { question: e, row: s } = ne(o);
|
|
3387
3387
|
return (n, t) => (r(), l("button", {
|
|
3388
3388
|
type: "button",
|
|
3389
|
-
class: a(
|
|
3390
|
-
onClick: t[0] || (t[0] = () =>
|
|
3391
|
-
"aria-expanded":
|
|
3392
|
-
"aria-controls":
|
|
3389
|
+
class: a(w(e).getDetailPanelButtonCss(w(s))),
|
|
3390
|
+
onClick: t[0] || (t[0] = () => w(s).showHideDetailPanelClick()),
|
|
3391
|
+
"aria-expanded": w(e).getIsDetailPanelShowing(w(s)) ? "true" : "false",
|
|
3392
|
+
"aria-controls": w(e).getIsDetailPanelShowing(w(s)) ? w(s).detailPanelId : null
|
|
3393
3393
|
}, [
|
|
3394
3394
|
y(v, {
|
|
3395
3395
|
is: "sv-svg-icon",
|
|
3396
|
-
class: a(
|
|
3397
|
-
iconName:
|
|
3396
|
+
class: a(w(e).getDetailPanelIconCss(w(s))),
|
|
3397
|
+
iconName: w(e).getDetailPanelIconId(w(s)),
|
|
3398
3398
|
size: "auto"
|
|
3399
3399
|
}, null, 8, ["class", "iconName"])
|
|
3400
|
-
], 10,
|
|
3400
|
+
], 10, No));
|
|
3401
3401
|
}
|
|
3402
|
-
}),
|
|
3402
|
+
}), Wo = /* @__PURE__ */ h({
|
|
3403
3403
|
inheritAttrs: !1,
|
|
3404
3404
|
__name: "PanelDynamic",
|
|
3405
3405
|
props: {
|
|
@@ -3407,7 +3407,7 @@ const Do = ["disabled"], Ao = /* @__PURE__ */ h({
|
|
|
3407
3407
|
css: {}
|
|
3408
3408
|
},
|
|
3409
3409
|
setup(u) {
|
|
3410
|
-
const o = u, e =
|
|
3410
|
+
const o = u, e = M(null), s = Ce();
|
|
3411
3411
|
T(
|
|
3412
3412
|
o,
|
|
3413
3413
|
e,
|
|
@@ -3481,7 +3481,7 @@ const Do = ["disabled"], Ao = /* @__PURE__ */ h({
|
|
|
3481
3481
|
}, [
|
|
3482
3482
|
g("div", {
|
|
3483
3483
|
class: a(d.question.cssClasses.progressBar),
|
|
3484
|
-
style:
|
|
3484
|
+
style: b({ width: d.question.progress }),
|
|
3485
3485
|
role: "progressbar"
|
|
3486
3486
|
}, null, 6)
|
|
3487
3487
|
], 2)) : c("", !0),
|
|
@@ -3493,13 +3493,13 @@ const Do = ["disabled"], Ao = /* @__PURE__ */ h({
|
|
|
3493
3493
|
g("div", {
|
|
3494
3494
|
class: a(d.question.cssClasses.panelsContainer)
|
|
3495
3495
|
}, [
|
|
3496
|
-
(r(!0), l(I, null,
|
|
3496
|
+
(r(!0), l(I, null, B(d.question.renderedPanels, (p, q) => (r(), l(I, {
|
|
3497
3497
|
key: p.id
|
|
3498
3498
|
}, [
|
|
3499
3499
|
g("div", {
|
|
3500
3500
|
class: a(d.question.getPanelWrapperCss(p))
|
|
3501
3501
|
}, [
|
|
3502
|
-
y(v,
|
|
3502
|
+
y(v, $({
|
|
3503
3503
|
is: t(p)
|
|
3504
3504
|
}, i(p)), null, 16, ["is"]),
|
|
3505
3505
|
d.question.panelRemoveButtonLocation === "right" && d.question.canRemovePanel && p.state !== "collapsed" ? (r(), C(v, {
|
|
@@ -3531,7 +3531,7 @@ const Do = ["disabled"], Ao = /* @__PURE__ */ h({
|
|
|
3531
3531
|
}, null, 8, ["question"])) : c("", !0)
|
|
3532
3532
|
], 2));
|
|
3533
3533
|
}
|
|
3534
|
-
}),
|
|
3534
|
+
}), Oo = /* @__PURE__ */ h({
|
|
3535
3535
|
__name: "PanelDynamicProgress",
|
|
3536
3536
|
props: {
|
|
3537
3537
|
question: {}
|
|
@@ -3558,7 +3558,7 @@ const Do = ["disabled"], Ao = /* @__PURE__ */ h({
|
|
|
3558
3558
|
}, [
|
|
3559
3559
|
g("div", {
|
|
3560
3560
|
class: a(s.question.cssClasses.progressBar),
|
|
3561
|
-
style:
|
|
3561
|
+
style: b({ width: s.question.progress }),
|
|
3562
3562
|
role: "progressbar"
|
|
3563
3563
|
}, null, 6)
|
|
3564
3564
|
], 2)) : c("", !0),
|
|
@@ -3578,7 +3578,7 @@ const Do = ["disabled"], Ao = /* @__PURE__ */ h({
|
|
|
3578
3578
|
], 2)
|
|
3579
3579
|
], 2));
|
|
3580
3580
|
}
|
|
3581
|
-
}),
|
|
3581
|
+
}), Fo = /* @__PURE__ */ h({
|
|
3582
3582
|
__name: "PanelDynamicProgressV2",
|
|
3583
3583
|
props: {
|
|
3584
3584
|
question: {}
|
|
@@ -3597,7 +3597,7 @@ const Do = ["disabled"], Ao = /* @__PURE__ */ h({
|
|
|
3597
3597
|
}, [
|
|
3598
3598
|
g("div", {
|
|
3599
3599
|
class: a(o.question.cssClasses.progressBar),
|
|
3600
|
-
style:
|
|
3600
|
+
style: b({ width: o.question.progress }),
|
|
3601
3601
|
role: "progressbar"
|
|
3602
3602
|
}, null, 6)
|
|
3603
3603
|
], 2)) : c("", !0),
|
|
@@ -3618,7 +3618,7 @@ function Q(u) {
|
|
|
3618
3618
|
() => u.item && u.item.data.question || u.data.question
|
|
3619
3619
|
);
|
|
3620
3620
|
}
|
|
3621
|
-
const
|
|
3621
|
+
const zo = ["id"], Uo = /* @__PURE__ */ h({
|
|
3622
3622
|
__name: "PaneldynamicAddBtn",
|
|
3623
3623
|
props: {
|
|
3624
3624
|
item: {},
|
|
@@ -3628,24 +3628,24 @@ const Uo = ["id"], Ko = /* @__PURE__ */ h({
|
|
|
3628
3628
|
const e = Q(u), s = () => {
|
|
3629
3629
|
e.value.addPanelUI();
|
|
3630
3630
|
};
|
|
3631
|
-
return (n, t) =>
|
|
3631
|
+
return (n, t) => w(e).canAddPanel ? (r(), l("button", {
|
|
3632
3632
|
key: 0,
|
|
3633
3633
|
type: "button",
|
|
3634
|
-
id:
|
|
3635
|
-
class: a(
|
|
3634
|
+
id: w(e).addButtonId,
|
|
3635
|
+
class: a(w(e).getAddButtonCss()),
|
|
3636
3636
|
onClick: s
|
|
3637
3637
|
}, [
|
|
3638
3638
|
g("span", {
|
|
3639
|
-
class: a(
|
|
3639
|
+
class: a(w(e).cssClasses.buttonAddText)
|
|
3640
3640
|
}, [
|
|
3641
3641
|
y(v, {
|
|
3642
3642
|
is: "survey-string",
|
|
3643
|
-
locString:
|
|
3643
|
+
locString: w(e).locPanelAddText
|
|
3644
3644
|
}, null, 8, ["locString"])
|
|
3645
3645
|
], 2)
|
|
3646
|
-
], 10,
|
|
3646
|
+
], 10, zo)) : c("", !0);
|
|
3647
3647
|
}
|
|
3648
|
-
}),
|
|
3648
|
+
}), Ko = ["title"], jo = /* @__PURE__ */ h({
|
|
3649
3649
|
__name: "PaneldynamicNextBtn",
|
|
3650
3650
|
props: {
|
|
3651
3651
|
item: {},
|
|
@@ -3656,18 +3656,18 @@ const Uo = ["id"], Ko = /* @__PURE__ */ h({
|
|
|
3656
3656
|
e.value.goToNextPanel();
|
|
3657
3657
|
};
|
|
3658
3658
|
return (n, t) => (r(), l("div", {
|
|
3659
|
-
title:
|
|
3659
|
+
title: w(e).panelNextText,
|
|
3660
3660
|
onClick: s,
|
|
3661
|
-
class: a(
|
|
3661
|
+
class: a(w(e).getNextButtonCss())
|
|
3662
3662
|
}, [
|
|
3663
3663
|
y(v, {
|
|
3664
3664
|
is: "sv-svg-icon",
|
|
3665
|
-
iconName:
|
|
3665
|
+
iconName: w(e).cssClasses.progressBtnIcon,
|
|
3666
3666
|
size: "auto"
|
|
3667
3667
|
}, null, 8, ["iconName"])
|
|
3668
|
-
], 10,
|
|
3668
|
+
], 10, Ko));
|
|
3669
3669
|
}
|
|
3670
|
-
}),
|
|
3670
|
+
}), Qo = ["title"], Go = /* @__PURE__ */ h({
|
|
3671
3671
|
__name: "PaneldynamicPrevBtn",
|
|
3672
3672
|
props: {
|
|
3673
3673
|
item: {},
|
|
@@ -3678,18 +3678,18 @@ const Uo = ["id"], Ko = /* @__PURE__ */ h({
|
|
|
3678
3678
|
e.value.goToPrevPanel();
|
|
3679
3679
|
};
|
|
3680
3680
|
return (n, t) => (r(), l("div", {
|
|
3681
|
-
title:
|
|
3681
|
+
title: w(e).panelPrevText,
|
|
3682
3682
|
onClick: s,
|
|
3683
|
-
class: a(
|
|
3683
|
+
class: a(w(e).getPrevButtonCss())
|
|
3684
3684
|
}, [
|
|
3685
3685
|
y(v, {
|
|
3686
3686
|
is: "sv-svg-icon",
|
|
3687
|
-
iconName:
|
|
3687
|
+
iconName: w(e).cssClasses.progressBtnIcon,
|
|
3688
3688
|
size: "auto"
|
|
3689
3689
|
}, null, 8, ["iconName"])
|
|
3690
|
-
], 10,
|
|
3690
|
+
], 10, Qo));
|
|
3691
3691
|
}
|
|
3692
|
-
}),
|
|
3692
|
+
}), Jo = ["id"], Xo = /* @__PURE__ */ h({
|
|
3693
3693
|
__name: "PaneldynamicRemoveBtn",
|
|
3694
3694
|
props: {
|
|
3695
3695
|
item: {},
|
|
@@ -3704,23 +3704,23 @@ const Uo = ["id"], Ko = /* @__PURE__ */ h({
|
|
|
3704
3704
|
return (i, d) => (r(), l("button", {
|
|
3705
3705
|
type: "button",
|
|
3706
3706
|
id: n(s.value),
|
|
3707
|
-
class: a(
|
|
3707
|
+
class: a(w(e).getPanelRemoveButtonCss()),
|
|
3708
3708
|
onClick: d[0] || (d[0] = (m) => t(s.value))
|
|
3709
3709
|
}, [
|
|
3710
3710
|
g("span", {
|
|
3711
|
-
class: a(
|
|
3711
|
+
class: a(w(e).cssClasses.buttonRemoveText)
|
|
3712
3712
|
}, [
|
|
3713
3713
|
y(v, {
|
|
3714
3714
|
is: "survey-string",
|
|
3715
|
-
locString:
|
|
3715
|
+
locString: w(e).locPanelRemoveText
|
|
3716
3716
|
}, null, 8, ["locString"])
|
|
3717
3717
|
], 2),
|
|
3718
3718
|
g("span", {
|
|
3719
|
-
class: a(
|
|
3719
|
+
class: a(w(e).cssClasses.iconRemove)
|
|
3720
3720
|
}, null, 2)
|
|
3721
|
-
], 10,
|
|
3721
|
+
], 10, Jo));
|
|
3722
3722
|
}
|
|
3723
|
-
}),
|
|
3723
|
+
}), Yo = /* @__PURE__ */ h({
|
|
3724
3724
|
__name: "PaneldynamicProgressText",
|
|
3725
3725
|
props: {
|
|
3726
3726
|
item: {},
|
|
@@ -3729,17 +3729,17 @@ const Uo = ["id"], Ko = /* @__PURE__ */ h({
|
|
|
3729
3729
|
setup(u) {
|
|
3730
3730
|
const e = Q(u);
|
|
3731
3731
|
return (s, n) => (r(), l("div", {
|
|
3732
|
-
class: a(
|
|
3733
|
-
}, H(
|
|
3732
|
+
class: a(w(e).cssClasses.progressText)
|
|
3733
|
+
}, H(w(e).progressText), 3));
|
|
3734
3734
|
}
|
|
3735
|
-
}),
|
|
3735
|
+
}), xo = ["id"], _o = /* @__PURE__ */ h({
|
|
3736
3736
|
__name: "Errors",
|
|
3737
3737
|
props: {
|
|
3738
3738
|
element: {},
|
|
3739
3739
|
location: {}
|
|
3740
3740
|
},
|
|
3741
3741
|
setup(u) {
|
|
3742
|
-
const o =
|
|
3742
|
+
const o = M();
|
|
3743
3743
|
return (e, s) => e.element.hasVisibleErrors ? (r(), l("div", {
|
|
3744
3744
|
key: 0,
|
|
3745
3745
|
role: "alert",
|
|
@@ -3749,7 +3749,7 @@ const Uo = ["id"], Ko = /* @__PURE__ */ h({
|
|
|
3749
3749
|
ref_key: "root",
|
|
3750
3750
|
ref: o
|
|
3751
3751
|
}, [
|
|
3752
|
-
(r(!0), l(I, null,
|
|
3752
|
+
(r(!0), l(I, null, B(e.element.errors, (n, t) => (r(), C(v, {
|
|
3753
3753
|
is: e.element.survey.questionErrorComponent,
|
|
3754
3754
|
element: e.element,
|
|
3755
3755
|
key: "error_" + t,
|
|
@@ -3757,21 +3757,21 @@ const Uo = ["id"], Ko = /* @__PURE__ */ h({
|
|
|
3757
3757
|
error: n,
|
|
3758
3758
|
cssClasses: e.element.cssClasses
|
|
3759
3759
|
}, null, 8, ["is", "element", "errorKey", "error", "cssClasses"]))), 128))
|
|
3760
|
-
], 10,
|
|
3760
|
+
], 10, xo)) : c("", !0);
|
|
3761
3761
|
}
|
|
3762
|
-
}),
|
|
3762
|
+
}), et = { key: 0 }, st = /* @__PURE__ */ h({
|
|
3763
3763
|
__name: "QuestionComment",
|
|
3764
3764
|
props: {
|
|
3765
3765
|
question: {}
|
|
3766
3766
|
},
|
|
3767
3767
|
setup(u) {
|
|
3768
|
-
return (o, e) => o.question.isReadOnlyRenderDiv() ? (r(), l("div",
|
|
3768
|
+
return (o, e) => o.question.isReadOnlyRenderDiv() ? (r(), l("div", et, H(o.question.comment), 1)) : (r(), C(v, {
|
|
3769
3769
|
key: 1,
|
|
3770
3770
|
is: "sv-text-area",
|
|
3771
3771
|
model: o.question.commentTextAreaModel
|
|
3772
3772
|
}, null, 8, ["model"]));
|
|
3773
3773
|
}
|
|
3774
|
-
}),
|
|
3774
|
+
}), ot = /* @__PURE__ */ h({
|
|
3775
3775
|
__name: "TitleElement",
|
|
3776
3776
|
props: {
|
|
3777
3777
|
element: {},
|
|
@@ -3779,9 +3779,9 @@ const Uo = ["id"], Ko = /* @__PURE__ */ h({
|
|
|
3779
3779
|
},
|
|
3780
3780
|
setup(u) {
|
|
3781
3781
|
const o = (e) => {
|
|
3782
|
-
|
|
3782
|
+
ye(e);
|
|
3783
3783
|
};
|
|
3784
|
-
return (e, s) => e.element.hasTitle ? (r(), C(
|
|
3784
|
+
return (e, s) => e.element.hasTitle ? (r(), C(me(e.element.titleTagName), {
|
|
3785
3785
|
key: 0,
|
|
3786
3786
|
class: a(e.element.cssTitle),
|
|
3787
3787
|
"aria-label": e.element.titleAriaLabel,
|
|
@@ -3824,7 +3824,7 @@ const Uo = ["id"], Ko = /* @__PURE__ */ h({
|
|
|
3824
3824
|
_: 1
|
|
3825
3825
|
}, 40, ["class", "aria-label", "id", "tabindex", "aria-expanded", "role"])) : c("", !0);
|
|
3826
3826
|
}
|
|
3827
|
-
}),
|
|
3827
|
+
}), tt = { key: 3 }, nt = { key: 5 }, rt = { key: 7 }, it = /* @__PURE__ */ h({
|
|
3828
3828
|
inheritAttrs: !1,
|
|
3829
3829
|
__name: "TitleContent",
|
|
3830
3830
|
props: {
|
|
@@ -3852,19 +3852,19 @@ const Uo = ["id"], Ko = /* @__PURE__ */ h({
|
|
|
3852
3852
|
class: a(e.element.cssTitleNumber),
|
|
3853
3853
|
"aria-hidden": !0
|
|
3854
3854
|
}, H(e.element.no), 3)) : c("", !0),
|
|
3855
|
-
!e.element.isTitleRenderedAsString && e.element.no ? (r(), l("span",
|
|
3855
|
+
!e.element.isTitleRenderedAsString && e.element.no ? (r(), l("span", tt, "\xA0")) : c("", !0),
|
|
3856
3856
|
!e.element.isTitleRenderedAsString && e.element.isRequireTextBeforeTitle ? (r(), l("span", {
|
|
3857
3857
|
key: 4,
|
|
3858
3858
|
class: a(e.element.cssRequiredText),
|
|
3859
3859
|
"aria-hidden": !0
|
|
3860
3860
|
}, H(e.element.requiredText), 3)) : c("", !0),
|
|
3861
|
-
!e.element.isTitleRenderedAsString && e.element.isRequireTextBeforeTitle ? (r(), l("span",
|
|
3861
|
+
!e.element.isTitleRenderedAsString && e.element.isRequireTextBeforeTitle ? (r(), l("span", nt, "\xA0")) : c("", !0),
|
|
3862
3862
|
e.element.isTitleRenderedAsString ? c("", !0) : (r(), C(v, {
|
|
3863
3863
|
key: 6,
|
|
3864
3864
|
is: "survey-string",
|
|
3865
3865
|
locString: e.element.locTitle
|
|
3866
3866
|
}, null, 8, ["locString"])),
|
|
3867
|
-
!e.element.isTitleRenderedAsString && e.element.isRequireTextAfterTitle ? (r(), l("span",
|
|
3867
|
+
!e.element.isTitleRenderedAsString && e.element.isRequireTextAfterTitle ? (r(), l("span", rt, "\xA0")) : c("", !0),
|
|
3868
3868
|
!e.element.isTitleRenderedAsString && e.element.isRequireTextAfterTitle ? (r(), l("span", {
|
|
3869
3869
|
key: 8,
|
|
3870
3870
|
class: a(e.element.cssRequiredText),
|
|
@@ -3872,7 +3872,7 @@ const Uo = ["id"], Ko = /* @__PURE__ */ h({
|
|
|
3872
3872
|
}, H(e.element.requiredText), 3)) : c("", !0)
|
|
3873
3873
|
], 64));
|
|
3874
3874
|
}
|
|
3875
|
-
}),
|
|
3875
|
+
}), at = { class: "sv-title-actions" }, lt = { class: "sv-title-actions__title" }, ut = /* @__PURE__ */ h({
|
|
3876
3876
|
__name: "TitleActions",
|
|
3877
3877
|
props: {
|
|
3878
3878
|
element: {},
|
|
@@ -3880,8 +3880,8 @@ const Uo = ["id"], Ko = /* @__PURE__ */ h({
|
|
|
3880
3880
|
},
|
|
3881
3881
|
setup(u) {
|
|
3882
3882
|
const o = u, e = L(() => o.element.getTitleToolbar());
|
|
3883
|
-
return (s, n) => (r(), l("div",
|
|
3884
|
-
g("span",
|
|
3883
|
+
return (s, n) => (r(), l("div", at, [
|
|
3884
|
+
g("span", lt, [
|
|
3885
3885
|
s.element.isPage ? (r(), C(v, {
|
|
3886
3886
|
key: 0,
|
|
3887
3887
|
is: "survey-string",
|
|
@@ -3900,20 +3900,20 @@ const Uo = ["id"], Ko = /* @__PURE__ */ h({
|
|
|
3900
3900
|
}, null, 8, ["model"])
|
|
3901
3901
|
]));
|
|
3902
3902
|
}
|
|
3903
|
-
}),
|
|
3903
|
+
}), dt = (u, o) => {
|
|
3904
3904
|
const e = u.__vccOpts || u;
|
|
3905
3905
|
for (const [s, n] of o)
|
|
3906
3906
|
e[s] = n;
|
|
3907
3907
|
return e;
|
|
3908
|
-
},
|
|
3909
|
-
|
|
3908
|
+
}, vt = {}, ct = { class: "sv-brand-info" }, pt = /* @__PURE__ */ $e('<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), mt = [
|
|
3909
|
+
pt
|
|
3910
3910
|
];
|
|
3911
|
-
function
|
|
3912
|
-
return r(), l("div",
|
|
3911
|
+
function gt(u, o) {
|
|
3912
|
+
return r(), l("div", ct, mt);
|
|
3913
3913
|
}
|
|
3914
|
-
const
|
|
3915
|
-
|
|
3916
|
-
],
|
|
3914
|
+
const Ct = /* @__PURE__ */ dt(vt, [["render", gt]]), yt = /* @__PURE__ */ g("use", null, null, -1), ht = [
|
|
3915
|
+
yt
|
|
3916
|
+
], qt = /* @__PURE__ */ h({
|
|
3917
3917
|
__name: "SvgIcon",
|
|
3918
3918
|
props: {
|
|
3919
3919
|
size: {},
|
|
@@ -3923,8 +3923,8 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
3923
3923
|
title: {}
|
|
3924
3924
|
},
|
|
3925
3925
|
setup(u) {
|
|
3926
|
-
const o = u, e =
|
|
3927
|
-
|
|
3926
|
+
const o = u, e = M(), s = () => {
|
|
3927
|
+
Oe(
|
|
3928
3928
|
o.size,
|
|
3929
3929
|
o.width,
|
|
3930
3930
|
o.height,
|
|
@@ -3935,16 +3935,16 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
3935
3935
|
};
|
|
3936
3936
|
return x(() => {
|
|
3937
3937
|
s();
|
|
3938
|
-
}),
|
|
3938
|
+
}), Z(() => {
|
|
3939
3939
|
s();
|
|
3940
3940
|
}), (n, t) => (r(), l("svg", {
|
|
3941
3941
|
ref_key: "svgIconElement",
|
|
3942
3942
|
ref: e,
|
|
3943
3943
|
class: "sv-svg-icon",
|
|
3944
3944
|
role: "img"
|
|
3945
|
-
},
|
|
3945
|
+
}, ht, 512));
|
|
3946
3946
|
}
|
|
3947
|
-
}),
|
|
3947
|
+
}), wt = /* @__PURE__ */ h({
|
|
3948
3948
|
__name: "QuestionError",
|
|
3949
3949
|
props: {
|
|
3950
3950
|
errorKey: {},
|
|
@@ -3972,7 +3972,7 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
3972
3972
|
], 2)
|
|
3973
3973
|
]));
|
|
3974
3974
|
}
|
|
3975
|
-
}),
|
|
3975
|
+
}), kt = /* @__PURE__ */ h({
|
|
3976
3976
|
__name: "ActionBar",
|
|
3977
3977
|
props: {
|
|
3978
3978
|
model: {},
|
|
@@ -3980,14 +3980,14 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
3980
3980
|
handleClick: { type: Boolean, default: !0 }
|
|
3981
3981
|
},
|
|
3982
3982
|
setup(u) {
|
|
3983
|
-
const o = u, e =
|
|
3983
|
+
const o = u, e = M(null), s = (t) => {
|
|
3984
3984
|
o.handleClick && t.stopPropagation();
|
|
3985
3985
|
};
|
|
3986
|
-
|
|
3986
|
+
V(() => o.model);
|
|
3987
3987
|
const n = ee(() => o.model.renderedActions);
|
|
3988
|
-
return
|
|
3988
|
+
return Z(() => {
|
|
3989
3989
|
!o.model.hasActions || o.model.initResponsivityManager(e.value);
|
|
3990
|
-
}),
|
|
3990
|
+
}), P(() => {
|
|
3991
3991
|
o.model.resetResponsivityManager();
|
|
3992
3992
|
}), (t, i) => t.model.hasActions ? (r(), l("div", {
|
|
3993
3993
|
key: 0,
|
|
@@ -3996,14 +3996,14 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
3996
3996
|
class: a(t.model.getRootCss()),
|
|
3997
3997
|
onClick: s
|
|
3998
3998
|
}, [
|
|
3999
|
-
(r(!0), l(I, null,
|
|
3999
|
+
(r(!0), l(I, null, B(w(n), (d) => (r(), C(v, {
|
|
4000
4000
|
is: "sv-action",
|
|
4001
4001
|
key: d.id,
|
|
4002
4002
|
item: d
|
|
4003
4003
|
}, null, 8, ["item"]))), 128))
|
|
4004
4004
|
], 2)) : c("", !0);
|
|
4005
4005
|
}
|
|
4006
|
-
}),
|
|
4006
|
+
}), ft = ["id"], Lt = { class: "sv-action__content" }, bt = /* @__PURE__ */ h({
|
|
4007
4007
|
__name: "Action",
|
|
4008
4008
|
props: {
|
|
4009
4009
|
item: {}
|
|
@@ -4012,11 +4012,11 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4012
4012
|
const o = u, e = L(
|
|
4013
4013
|
() => o.item.component || "sv-action-bar-item"
|
|
4014
4014
|
);
|
|
4015
|
-
return
|
|
4015
|
+
return V(() => o.item), (s, n) => (r(), l("div", {
|
|
4016
4016
|
class: a(s.item.getActionRootCss()),
|
|
4017
4017
|
id: s.item.id
|
|
4018
4018
|
}, [
|
|
4019
|
-
g("div",
|
|
4019
|
+
g("div", Lt, [
|
|
4020
4020
|
s.item.needSeparator ? (r(), C(v, {
|
|
4021
4021
|
key: 0,
|
|
4022
4022
|
is: "sv-action-bar-separator"
|
|
@@ -4026,7 +4026,7 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4026
4026
|
item: s.item
|
|
4027
4027
|
}, null, 8, ["is", "item"])
|
|
4028
4028
|
])
|
|
4029
|
-
], 10,
|
|
4029
|
+
], 10, ft));
|
|
4030
4030
|
}
|
|
4031
4031
|
}), j = {
|
|
4032
4032
|
mounted: function(u, o) {
|
|
@@ -4035,23 +4035,23 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4035
4035
|
u.tabIndex = -1;
|
|
4036
4036
|
return;
|
|
4037
4037
|
}
|
|
4038
|
-
e.disableTabStop || (u.tabIndex = 0), u.addEventListener("keyup", (s) => (s.preventDefault(), s.stopPropagation(),
|
|
4039
|
-
|
|
4038
|
+
e.disableTabStop || (u.tabIndex = 0), u.addEventListener("keyup", (s) => (s.preventDefault(), s.stopPropagation(), ye(s, e), !1)), u.addEventListener("keydown", (s) => {
|
|
4039
|
+
Fe(s, e);
|
|
4040
4040
|
}), u.addEventListener("blur", (s) => {
|
|
4041
|
-
|
|
4041
|
+
ze(s);
|
|
4042
4042
|
});
|
|
4043
4043
|
}
|
|
4044
|
-
},
|
|
4044
|
+
}, Mt = ["disabled", "title", "aria-checked", "aria-expanded", "role"], Ht = {
|
|
4045
4045
|
inheritAttrs: !1
|
|
4046
|
-
},
|
|
4047
|
-
...
|
|
4046
|
+
}, It = /* @__PURE__ */ h({
|
|
4047
|
+
...Ht,
|
|
4048
4048
|
__name: "ActionBarItem",
|
|
4049
4049
|
props: {
|
|
4050
4050
|
item: {}
|
|
4051
4051
|
},
|
|
4052
4052
|
setup(u) {
|
|
4053
4053
|
const o = u;
|
|
4054
|
-
return
|
|
4054
|
+
return V(() => o.item), (e, s) => R((r(), l("button", {
|
|
4055
4055
|
class: a(e.item.getActionBarItemCss()),
|
|
4056
4056
|
type: "button",
|
|
4057
4057
|
onClick: s[0] || (s[0] = (n) => {
|
|
@@ -4084,14 +4084,14 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4084
4084
|
key: 1,
|
|
4085
4085
|
class: a(e.item.getActionBarItemTitleCss())
|
|
4086
4086
|
}, H(e.item.title), 3)) : c("", !0)
|
|
4087
|
-
], 42,
|
|
4088
|
-
[
|
|
4087
|
+
], 42, Mt)), [
|
|
4088
|
+
[w(j), { processEsc: !1, disableTabStop: e.item.disableTabStop }]
|
|
4089
4089
|
]);
|
|
4090
4090
|
}
|
|
4091
|
-
}),
|
|
4091
|
+
}), St = ["disabled", "title", "role"], Bt = {
|
|
4092
4092
|
inheritAttrs: !1
|
|
4093
|
-
},
|
|
4094
|
-
...
|
|
4093
|
+
}, Vt = /* @__PURE__ */ h({
|
|
4094
|
+
...Bt,
|
|
4095
4095
|
__name: "ActionBarItemDropdown",
|
|
4096
4096
|
props: {
|
|
4097
4097
|
item: {}
|
|
@@ -4099,10 +4099,10 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4099
4099
|
setup(u) {
|
|
4100
4100
|
const o = u;
|
|
4101
4101
|
let e;
|
|
4102
|
-
return
|
|
4102
|
+
return V(
|
|
4103
4103
|
() => o.item,
|
|
4104
4104
|
(s) => {
|
|
4105
|
-
e = new
|
|
4105
|
+
e = new Ue(s);
|
|
4106
4106
|
},
|
|
4107
4107
|
() => {
|
|
4108
4108
|
e.dispose();
|
|
@@ -4133,8 +4133,8 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4133
4133
|
key: 1,
|
|
4134
4134
|
class: a(s.item.getActionBarItemTitleCss())
|
|
4135
4135
|
}, H(s.item.title), 3)) : c("", !0)
|
|
4136
|
-
], 42,
|
|
4137
|
-
[
|
|
4136
|
+
], 42, St)), [
|
|
4137
|
+
[w(j), { processEsc: !1, disableTabStop: s.item.disableTabStop }]
|
|
4138
4138
|
]),
|
|
4139
4139
|
y(v, {
|
|
4140
4140
|
is: "sv-popup",
|
|
@@ -4142,7 +4142,7 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4142
4142
|
}, null, 8, ["model"])
|
|
4143
4143
|
], 64));
|
|
4144
4144
|
}
|
|
4145
|
-
}),
|
|
4145
|
+
}), Rt = /* @__PURE__ */ h({
|
|
4146
4146
|
__name: "ActionBarSeparator",
|
|
4147
4147
|
props: {
|
|
4148
4148
|
item: {}
|
|
@@ -4153,13 +4153,13 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4153
4153
|
class: a(["sv-action-bar-separator", e.value])
|
|
4154
4154
|
}, null, 2));
|
|
4155
4155
|
}
|
|
4156
|
-
}),
|
|
4156
|
+
}), Tt = ["aria-label", "placeholder", "value"], Zt = ["aria-label"], $t = ["id"], Dt = /* @__PURE__ */ h({
|
|
4157
4157
|
__name: "List",
|
|
4158
4158
|
props: {
|
|
4159
4159
|
model: {}
|
|
4160
4160
|
},
|
|
4161
4161
|
setup(u) {
|
|
4162
|
-
const o = u, e =
|
|
4162
|
+
const o = u, e = M(null), s = (d) => {
|
|
4163
4163
|
const m = o.model;
|
|
4164
4164
|
m.filterString = d.target.value;
|
|
4165
4165
|
}, n = (d) => {
|
|
@@ -4168,9 +4168,9 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4168
4168
|
}, t = (d) => {
|
|
4169
4169
|
o.model.onMouseMove(d);
|
|
4170
4170
|
}, i = ee(() => o.model.renderedActions);
|
|
4171
|
-
return
|
|
4171
|
+
return V(() => o.model), Z(() => {
|
|
4172
4172
|
o.model.initListContainerHtmlElement(e.value);
|
|
4173
|
-
}),
|
|
4173
|
+
}), P(() => {
|
|
4174
4174
|
o.model && (o.model.removeScrollEventListener(), o.model.initListContainerHtmlElement(void 0));
|
|
4175
4175
|
}), (d, m) => (r(), l("div", {
|
|
4176
4176
|
class: a(d.model.cssClasses.root),
|
|
@@ -4198,7 +4198,7 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4198
4198
|
value: d.model.filterString,
|
|
4199
4199
|
onChange: s,
|
|
4200
4200
|
onKeyup: n
|
|
4201
|
-
}, null, 42,
|
|
4201
|
+
}, null, 42, Tt),
|
|
4202
4202
|
d.model.showSearchClearButton && !!d.model.filterString ? (r(), l("button", {
|
|
4203
4203
|
key: 0,
|
|
4204
4204
|
onClick: m[0] || (m[0] = (p) => {
|
|
@@ -4219,9 +4219,9 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4219
4219
|
g("div", {
|
|
4220
4220
|
class: a(d.model.cssClasses.emptyText),
|
|
4221
4221
|
"aria-label": d.model.emptyMessage
|
|
4222
|
-
}, H(d.model.emptyMessage), 11,
|
|
4222
|
+
}, H(d.model.emptyMessage), 11, Zt)
|
|
4223
4223
|
], 2), [
|
|
4224
|
-
[
|
|
4224
|
+
[D, d.model.isEmpty]
|
|
4225
4225
|
]),
|
|
4226
4226
|
d.model.renderElements ? R((r(), l("ul", {
|
|
4227
4227
|
key: 1,
|
|
@@ -4236,18 +4236,18 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4236
4236
|
d.model.onKeyDown(p);
|
|
4237
4237
|
})
|
|
4238
4238
|
}, [
|
|
4239
|
-
(r(!0), l(I, null,
|
|
4239
|
+
(r(!0), l(I, null, B(w(i), (p) => (r(), C(v, {
|
|
4240
4240
|
is: "sv-list-item",
|
|
4241
4241
|
item: p,
|
|
4242
4242
|
model: d.model,
|
|
4243
4243
|
key: p.id
|
|
4244
4244
|
}, null, 8, ["item", "model"]))), 128))
|
|
4245
|
-
], 42,
|
|
4246
|
-
[
|
|
4245
|
+
], 42, $t)), [
|
|
4246
|
+
[D, !d.model.isEmpty]
|
|
4247
4247
|
]) : c("", !0)
|
|
4248
4248
|
], 2));
|
|
4249
4249
|
}
|
|
4250
|
-
}),
|
|
4250
|
+
}), At = ["aria-selected", "id", "tabindex"], Pt = ["title"], Nt = /* @__PURE__ */ h({
|
|
4251
4251
|
__name: "ListItem",
|
|
4252
4252
|
props: {
|
|
4253
4253
|
model: {},
|
|
@@ -4257,11 +4257,11 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4257
4257
|
const o = u, e = L(() => o.item.elementId), s = (t) => {
|
|
4258
4258
|
o.model.onItemClick(o.item), t.stopPropagation();
|
|
4259
4259
|
};
|
|
4260
|
-
|
|
4260
|
+
V(() => o.item);
|
|
4261
4261
|
const n = L(
|
|
4262
4262
|
() => o.item.component || o.model.itemComponent
|
|
4263
4263
|
);
|
|
4264
|
-
return
|
|
4264
|
+
return Z(() => {
|
|
4265
4265
|
setTimeout(() => {
|
|
4266
4266
|
o.model.onLastItemRended(o.item);
|
|
4267
4267
|
});
|
|
@@ -4280,7 +4280,7 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4280
4280
|
class: a(t.model.cssClasses.itemSeparator)
|
|
4281
4281
|
}, null, 2)) : c("", !0),
|
|
4282
4282
|
g("div", {
|
|
4283
|
-
style:
|
|
4283
|
+
style: b(t.model.getItemStyle(t.item)),
|
|
4284
4284
|
class: a(t.model.cssClasses.itemBody),
|
|
4285
4285
|
title: t.item.getTooltip(),
|
|
4286
4286
|
onMouseover: i[0] || (i[0] = (d) => t.model.onItemHover(t.item)),
|
|
@@ -4291,13 +4291,13 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4291
4291
|
item: t.item,
|
|
4292
4292
|
model: t.model
|
|
4293
4293
|
}, null, 8, ["is", "item", "model"])
|
|
4294
|
-
], 46,
|
|
4295
|
-
], 42,
|
|
4296
|
-
[
|
|
4297
|
-
[
|
|
4294
|
+
], 46, Pt)
|
|
4295
|
+
], 42, At)), [
|
|
4296
|
+
[D, t.model.isItemVisible(t.item)],
|
|
4297
|
+
[w(j), { processEsc: !1, disableTabStop: t.item.disableTabStop }]
|
|
4298
4298
|
]);
|
|
4299
4299
|
}
|
|
4300
|
-
}),
|
|
4300
|
+
}), Et = /* @__PURE__ */ h({
|
|
4301
4301
|
__name: "ListItemContent",
|
|
4302
4302
|
props: {
|
|
4303
4303
|
model: {},
|
|
@@ -4305,7 +4305,7 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4305
4305
|
},
|
|
4306
4306
|
setup(u) {
|
|
4307
4307
|
const o = u;
|
|
4308
|
-
return
|
|
4308
|
+
return V(() => o.item), (e, s) => (r(), l(I, null, [
|
|
4309
4309
|
e.item.iconName ? (r(), C(v, {
|
|
4310
4310
|
key: 0,
|
|
4311
4311
|
is: "sv-svg-icon",
|
|
@@ -4326,7 +4326,7 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4326
4326
|
}, null, 8, ["class", "iconName"])) : c("", !0)
|
|
4327
4327
|
], 64));
|
|
4328
4328
|
}
|
|
4329
|
-
}),
|
|
4329
|
+
}), Wt = /* @__PURE__ */ h({
|
|
4330
4330
|
__name: "ListItemGroup",
|
|
4331
4331
|
props: {
|
|
4332
4332
|
model: {},
|
|
@@ -4334,7 +4334,7 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4334
4334
|
},
|
|
4335
4335
|
setup(u) {
|
|
4336
4336
|
const o = u;
|
|
4337
|
-
return
|
|
4337
|
+
return V(() => o.item), (e, s) => (r(), l(I, null, [
|
|
4338
4338
|
y(v, {
|
|
4339
4339
|
is: "sv-list-item-content",
|
|
4340
4340
|
item: e.item,
|
|
@@ -4346,25 +4346,25 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4346
4346
|
}, null, 8, ["model"])
|
|
4347
4347
|
], 64));
|
|
4348
4348
|
}
|
|
4349
|
-
}),
|
|
4349
|
+
}), Ot = /* @__PURE__ */ h({
|
|
4350
4350
|
__name: "Popup",
|
|
4351
4351
|
props: {
|
|
4352
4352
|
model: {}
|
|
4353
4353
|
},
|
|
4354
4354
|
setup(u) {
|
|
4355
|
-
const o = u, e = W(), s =
|
|
4355
|
+
const o = u, e = W(), s = M(null), n = () => {
|
|
4356
4356
|
const t = s.value;
|
|
4357
4357
|
t && e.value.setComponentElement(t);
|
|
4358
4358
|
};
|
|
4359
4359
|
return O(
|
|
4360
4360
|
() => o.model,
|
|
4361
4361
|
(t) => {
|
|
4362
|
-
e.value && e.value.dispose(), e.value =
|
|
4362
|
+
e.value && e.value.dispose(), e.value = Ke(t), n();
|
|
4363
4363
|
},
|
|
4364
4364
|
{ immediate: !0 }
|
|
4365
|
-
),
|
|
4365
|
+
), V(() => e.value), Z(() => {
|
|
4366
4366
|
n();
|
|
4367
|
-
}),
|
|
4367
|
+
}), P(() => {
|
|
4368
4368
|
e.value.dispose();
|
|
4369
4369
|
}), (t, i) => (r(), l("div", {
|
|
4370
4370
|
ref_key: "root",
|
|
@@ -4376,13 +4376,13 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4376
4376
|
}, null, 8, ["model"])
|
|
4377
4377
|
], 512));
|
|
4378
4378
|
}
|
|
4379
|
-
}),
|
|
4379
|
+
}), Ft = { class: "sv-popup__body-content" }, zt = {
|
|
4380
4380
|
key: 0,
|
|
4381
4381
|
class: "sv-popup__body-header"
|
|
4382
|
-
},
|
|
4382
|
+
}, Ut = { class: "sv-popup__scrolling-content" }, Kt = { class: "sv-popup__content" }, jt = {
|
|
4383
4383
|
key: 1,
|
|
4384
4384
|
class: "sv-popup__body-footer"
|
|
4385
|
-
},
|
|
4385
|
+
}, Qt = /* @__PURE__ */ h({
|
|
4386
4386
|
__name: "PopupContainer",
|
|
4387
4387
|
props: {
|
|
4388
4388
|
model: {}
|
|
@@ -4391,10 +4391,10 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4391
4391
|
const o = u, e = (s) => {
|
|
4392
4392
|
s.stopPropagation();
|
|
4393
4393
|
};
|
|
4394
|
-
return
|
|
4394
|
+
return V(() => o.model), x(() => {
|
|
4395
4395
|
const s = o.model;
|
|
4396
4396
|
s.isVisible && !s.isPositionSet && o.model.updateOnShowing();
|
|
4397
|
-
}),
|
|
4397
|
+
}), Z(() => {
|
|
4398
4398
|
o.model.isVisible && o.model.updateOnShowing();
|
|
4399
4399
|
}), (s, n) => R((r(), l("div", {
|
|
4400
4400
|
tabindex: "-1",
|
|
@@ -4408,7 +4408,7 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4408
4408
|
}, [
|
|
4409
4409
|
g("div", {
|
|
4410
4410
|
class: "sv-popup__container",
|
|
4411
|
-
style:
|
|
4411
|
+
style: b({
|
|
4412
4412
|
left: s.model.left,
|
|
4413
4413
|
top: s.model.top,
|
|
4414
4414
|
height: s.model.height,
|
|
@@ -4422,16 +4422,16 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4422
4422
|
is: s.model.popupHeaderTemplate,
|
|
4423
4423
|
model: s.model
|
|
4424
4424
|
}, null, 8, ["is", "model"])) : c("", !0),
|
|
4425
|
-
g("div",
|
|
4426
|
-
s.model.title ? (r(), l("div",
|
|
4427
|
-
g("div",
|
|
4428
|
-
g("div",
|
|
4429
|
-
y(v,
|
|
4425
|
+
g("div", Ft, [
|
|
4426
|
+
s.model.title ? (r(), l("div", zt, H(s.model.title), 1)) : c("", !0),
|
|
4427
|
+
g("div", Ut, [
|
|
4428
|
+
g("div", Kt, [
|
|
4429
|
+
y(v, $({
|
|
4430
4430
|
is: s.model.contentComponentName
|
|
4431
4431
|
}, s.model.contentComponentData), null, 16, ["is"])
|
|
4432
4432
|
])
|
|
4433
4433
|
]),
|
|
4434
|
-
s.model.showFooter ? (r(), l("div",
|
|
4434
|
+
s.model.showFooter ? (r(), l("div", jt, [
|
|
4435
4435
|
y(v, {
|
|
4436
4436
|
is: "sv-action-bar",
|
|
4437
4437
|
model: s.model.footerToolbar
|
|
@@ -4440,10 +4440,10 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4440
4440
|
])
|
|
4441
4441
|
], 4)
|
|
4442
4442
|
], 34)), [
|
|
4443
|
-
[
|
|
4443
|
+
[D, s.model.isVisible]
|
|
4444
4444
|
]);
|
|
4445
4445
|
}
|
|
4446
|
-
}),
|
|
4446
|
+
}), Gt = /* @__PURE__ */ h({
|
|
4447
4447
|
__name: "PopupPointer",
|
|
4448
4448
|
props: {
|
|
4449
4449
|
model: {}
|
|
@@ -4451,13 +4451,13 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4451
4451
|
setup(u) {
|
|
4452
4452
|
return (o, e) => (r(), l("span", {
|
|
4453
4453
|
class: "sv-popup__pointer",
|
|
4454
|
-
style:
|
|
4454
|
+
style: b({
|
|
4455
4455
|
left: o.model.pointerTarget.left,
|
|
4456
4456
|
top: o.model.pointerTarget.top
|
|
4457
4457
|
})
|
|
4458
4458
|
}, null, 4));
|
|
4459
4459
|
}
|
|
4460
|
-
}),
|
|
4460
|
+
}), Jt = /* @__PURE__ */ h({
|
|
4461
4461
|
__name: "Container",
|
|
4462
4462
|
props: {
|
|
4463
4463
|
survey: {},
|
|
@@ -4473,14 +4473,14 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4473
4473
|
key: 0,
|
|
4474
4474
|
class: a(["sv-components-column", "sv-components-container-" + s.container])
|
|
4475
4475
|
}, [
|
|
4476
|
-
(r(!0), l(I, null,
|
|
4476
|
+
(r(!0), l(I, null, B(e.value, (t) => (r(), C(v, {
|
|
4477
4477
|
key: t.id,
|
|
4478
4478
|
is: t.component,
|
|
4479
4479
|
survey: s.survey,
|
|
4480
4480
|
container: s.container,
|
|
4481
4481
|
model: t.data
|
|
4482
4482
|
}, null, 8, ["is", "survey", "container", "model"]))), 128))
|
|
4483
|
-
], 2)) : (r(!0), l(I, { key: 1 },
|
|
4483
|
+
], 2)) : (r(!0), l(I, { key: 1 }, B(e.value, (t) => (r(), C(v, {
|
|
4484
4484
|
key: t.id,
|
|
4485
4485
|
is: t.component,
|
|
4486
4486
|
survey: s.survey,
|
|
@@ -4497,13 +4497,13 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4497
4497
|
css: {}
|
|
4498
4498
|
},
|
|
4499
4499
|
setup(u) {
|
|
4500
|
-
const o = u, e = L(() => o.survey.progressValue + "%"), s = (t) =>
|
|
4500
|
+
const o = u, e = L(() => o.survey.progressValue + "%"), s = (t) => de.getProgressTextInBarCss(t), n = (t) => de.getProgressTextUnderBarCss(t);
|
|
4501
4501
|
return (t, i) => (r(), l("div", {
|
|
4502
4502
|
class: a(t.survey.getProgressCssClasses(t.container))
|
|
4503
4503
|
}, [
|
|
4504
4504
|
g("div", {
|
|
4505
4505
|
class: a(t.survey.css.progressBar),
|
|
4506
|
-
style:
|
|
4506
|
+
style: b({ width: e.value }),
|
|
4507
4507
|
role: "progressbar",
|
|
4508
4508
|
"aria-valuemin": "0",
|
|
4509
4509
|
"aria-valuemax": "100",
|
|
@@ -4518,7 +4518,7 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4518
4518
|
}, H(t.survey.progressText), 3)
|
|
4519
4519
|
], 2));
|
|
4520
4520
|
}
|
|
4521
|
-
}),
|
|
4521
|
+
}), Xt = ["title"], Yt = ["onClick", "data-page-number"], xt = ["title"], _t = ["title"], en = ["title"], sn = /* @__PURE__ */ h({
|
|
4522
4522
|
__name: "ProgressButtons",
|
|
4523
4523
|
props: {
|
|
4524
4524
|
survey: {},
|
|
@@ -4526,20 +4526,20 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4526
4526
|
container: {}
|
|
4527
4527
|
},
|
|
4528
4528
|
setup(u) {
|
|
4529
|
-
const o = u, e =
|
|
4529
|
+
const o = u, e = M(!1), s = M(!1), n = M(!1), t = M(!0), i = M(), d = L(() => o.survey.css);
|
|
4530
4530
|
let m = null;
|
|
4531
4531
|
const p = (q) => {
|
|
4532
|
-
let
|
|
4533
|
-
|
|
4532
|
+
let S = i.value;
|
|
4533
|
+
S.scrollLeft += (q ? -1 : 1) * 70;
|
|
4534
4534
|
};
|
|
4535
|
-
return
|
|
4535
|
+
return Z(() => {
|
|
4536
4536
|
const q = i.value;
|
|
4537
|
-
m = new
|
|
4538
|
-
onResize: (
|
|
4539
|
-
t.value =
|
|
4537
|
+
m = new je(o.model, q, {
|
|
4538
|
+
onResize: (S) => {
|
|
4539
|
+
t.value = S, s.value = !S;
|
|
4540
4540
|
},
|
|
4541
|
-
onUpdateScroller: (
|
|
4542
|
-
e.value =
|
|
4541
|
+
onUpdateScroller: (S) => {
|
|
4542
|
+
e.value = S;
|
|
4543
4543
|
},
|
|
4544
4544
|
onUpdateSettings: () => {
|
|
4545
4545
|
t.value = o.model.showItemTitles, n.value = !o.model.showItemTitles;
|
|
@@ -4548,9 +4548,9 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4548
4548
|
});
|
|
4549
4549
|
}), U(() => {
|
|
4550
4550
|
m.dispose();
|
|
4551
|
-
}), (q,
|
|
4551
|
+
}), (q, S) => (r(), l("div", {
|
|
4552
4552
|
class: a(q.model.getRootCss(q.container)),
|
|
4553
|
-
style:
|
|
4553
|
+
style: b({ maxWidth: q.model.progressWidth }),
|
|
4554
4554
|
role: "progressbar",
|
|
4555
4555
|
"aria-valuemin": "0",
|
|
4556
4556
|
"aria-valuemax": "100",
|
|
@@ -4563,14 +4563,14 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4563
4563
|
g("div", {
|
|
4564
4564
|
class: a(q.survey.css.progressButtonsPageTitle),
|
|
4565
4565
|
title: q.model.headerText
|
|
4566
|
-
}, H(q.model.headerText), 11,
|
|
4566
|
+
}, H(q.model.headerText), 11, Xt)
|
|
4567
4567
|
], 2)) : c("", !0),
|
|
4568
4568
|
g("div", {
|
|
4569
4569
|
class: a(d.value.progressButtonsContainer)
|
|
4570
4570
|
}, [
|
|
4571
4571
|
g("div", {
|
|
4572
4572
|
class: a(q.model.getScrollButtonCss(e.value, !0)),
|
|
4573
|
-
onClick:
|
|
4573
|
+
onClick: S[0] || (S[0] = (f) => p(!0)),
|
|
4574
4574
|
role: "button"
|
|
4575
4575
|
}, null, 2),
|
|
4576
4576
|
g("div", {
|
|
@@ -4581,10 +4581,10 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4581
4581
|
g("ul", {
|
|
4582
4582
|
class: a(d.value.progressButtonsList)
|
|
4583
4583
|
}, [
|
|
4584
|
-
(r(!0), l(I, null,
|
|
4585
|
-
key: "listelement" +
|
|
4586
|
-
class: a(q.model.getListElementCss(
|
|
4587
|
-
onClick: (
|
|
4584
|
+
(r(!0), l(I, null, B(q.survey.visiblePages, (f, N) => (r(), l("li", {
|
|
4585
|
+
key: "listelement" + N,
|
|
4586
|
+
class: a(q.model.getListElementCss(N)),
|
|
4587
|
+
onClick: (k) => q.model.isListElementClickable(N) ? q.model.clickListElement(f) : null,
|
|
4588
4588
|
"data-page-number": q.model.getItemNumber(f)
|
|
4589
4589
|
}, [
|
|
4590
4590
|
g("div", {
|
|
@@ -4599,12 +4599,12 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4599
4599
|
is: "survey-string",
|
|
4600
4600
|
locString: f.locNavigationTitle
|
|
4601
4601
|
}, null, 8, ["locString"])
|
|
4602
|
-
], 10,
|
|
4602
|
+
], 10, xt)) : c("", !0),
|
|
4603
4603
|
t.value ? (r(), l("div", {
|
|
4604
4604
|
key: 1,
|
|
4605
4605
|
class: a(d.value.progressButtonsPageDescription),
|
|
4606
4606
|
title: f.locNavigationDescription.renderedHtml
|
|
4607
|
-
}, H(f.locNavigationDescription.renderedHtml), 11,
|
|
4607
|
+
}, H(f.locNavigationDescription.renderedHtml), 11, _t)) : c("", !0),
|
|
4608
4608
|
g("div", {
|
|
4609
4609
|
class: a(d.value.progressButtonsButton)
|
|
4610
4610
|
}, [
|
|
@@ -4616,12 +4616,12 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4616
4616
|
}, null, 2),
|
|
4617
4617
|
g("span", null, H(q.model.getItemNumber(f)), 1)
|
|
4618
4618
|
], 2)
|
|
4619
|
-
], 10,
|
|
4619
|
+
], 10, Yt))), 128))
|
|
4620
4620
|
], 2)
|
|
4621
4621
|
], 2),
|
|
4622
4622
|
g("div", {
|
|
4623
4623
|
class: a(q.model.getScrollButtonCss(e.value, !1)),
|
|
4624
|
-
onClick:
|
|
4624
|
+
onClick: S[1] || (S[1] = (f) => p(!1)),
|
|
4625
4625
|
role: "button"
|
|
4626
4626
|
}, null, 2)
|
|
4627
4627
|
], 2),
|
|
@@ -4632,11 +4632,11 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4632
4632
|
g("div", {
|
|
4633
4633
|
class: a(q.survey.css.progressButtonsPageTitle),
|
|
4634
4634
|
title: q.model.footerText
|
|
4635
|
-
}, H(q.model.footerText), 11,
|
|
4635
|
+
}, H(q.model.footerText), 11, en)
|
|
4636
4636
|
], 2)) : c("", !0)
|
|
4637
4637
|
], 6));
|
|
4638
4638
|
}
|
|
4639
|
-
}),
|
|
4639
|
+
}), on = /* @__PURE__ */ h({
|
|
4640
4640
|
__name: "ProgressToc",
|
|
4641
4641
|
props: {
|
|
4642
4642
|
survey: {},
|
|
@@ -4660,7 +4660,7 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4660
4660
|
model: o.model.popupModel
|
|
4661
4661
|
}, null, 8, ["model"])
|
|
4662
4662
|
])), [
|
|
4663
|
-
[
|
|
4663
|
+
[w(j)]
|
|
4664
4664
|
]) : (r(), C(v, {
|
|
4665
4665
|
key: 1,
|
|
4666
4666
|
is: "sv-list",
|
|
@@ -4669,16 +4669,16 @@ const yt = /* @__PURE__ */ vt(ct, [["render", Ct]]), ht = /* @__PURE__ */ g("use
|
|
|
4669
4669
|
], 2));
|
|
4670
4670
|
}
|
|
4671
4671
|
});
|
|
4672
|
-
var
|
|
4672
|
+
var ke = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, re = { exports: {} };
|
|
4673
4673
|
/*!
|
|
4674
|
-
* surveyjs - Survey JavaScript library v1.12.
|
|
4674
|
+
* surveyjs - Survey JavaScript library v1.12.53
|
|
4675
4675
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4676
4676
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
4677
4677
|
*/
|
|
4678
4678
|
(function(u, o) {
|
|
4679
4679
|
(function(s, n) {
|
|
4680
4680
|
u.exports = n();
|
|
4681
|
-
})(
|
|
4681
|
+
})(ke, function() {
|
|
4682
4682
|
return function(e) {
|
|
4683
4683
|
var s = {};
|
|
4684
4684
|
function n(t) {
|
|
@@ -4982,16 +4982,16 @@ var fe = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
4982
4982
|
});
|
|
4983
4983
|
});
|
|
4984
4984
|
})(re);
|
|
4985
|
-
var
|
|
4985
|
+
var fe = { exports: {} };
|
|
4986
4986
|
/*!
|
|
4987
|
-
* surveyjs - Survey JavaScript library v1.12.
|
|
4987
|
+
* surveyjs - Survey JavaScript library v1.12.53
|
|
4988
4988
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4989
4989
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
4990
4990
|
*/
|
|
4991
4991
|
(function(u, o) {
|
|
4992
4992
|
(function(s, n) {
|
|
4993
4993
|
u.exports = n();
|
|
4994
|
-
})(
|
|
4994
|
+
})(ke, function() {
|
|
4995
4995
|
return function(e) {
|
|
4996
4996
|
var s = {};
|
|
4997
4997
|
function n(t) {
|
|
@@ -5294,13 +5294,13 @@ var Le = { exports: {} };
|
|
|
5294
5294
|
}
|
|
5295
5295
|
});
|
|
5296
5296
|
});
|
|
5297
|
-
})(
|
|
5298
|
-
const
|
|
5297
|
+
})(fe);
|
|
5298
|
+
const tn = ["lang", "dir"], nn = { onsubmit: "return false;" }, rn = {
|
|
5299
5299
|
key: 0,
|
|
5300
5300
|
class: "sv_custom_header"
|
|
5301
|
-
},
|
|
5302
|
-
|
|
5303
|
-
|
|
5301
|
+
}, an = { class: "sv-components-column sv-components-column--expandable" }, ln = ["id"], un = { key: 2 }, dn = ["innerHTML"], vn = ["innerHTML"], cn = ["innerHTML"];
|
|
5302
|
+
he("v1", re.exports.icons);
|
|
5303
|
+
he("v2", fe.exports.icons);
|
|
5304
5304
|
X.registerIcons(re.exports.icons);
|
|
5305
5305
|
const ie = /* @__PURE__ */ h({
|
|
5306
5306
|
__name: "Survey",
|
|
@@ -5309,178 +5309,178 @@ const ie = /* @__PURE__ */ h({
|
|
|
5309
5309
|
survey: {}
|
|
5310
5310
|
},
|
|
5311
5311
|
setup(u) {
|
|
5312
|
-
const o = u, e =
|
|
5313
|
-
const
|
|
5314
|
-
return
|
|
5315
|
-
}),
|
|
5316
|
-
const
|
|
5317
|
-
return !!
|
|
5318
|
-
},
|
|
5319
|
-
() =>
|
|
5320
|
-
),
|
|
5321
|
-
if (!!
|
|
5322
|
-
var
|
|
5323
|
-
|
|
5324
|
-
var
|
|
5325
|
-
|
|
5326
|
-
},
|
|
5312
|
+
const o = u, e = M(), s = M(1), n = L(() => {
|
|
5313
|
+
const S = o.survey ? o.survey : o.model;
|
|
5314
|
+
return De(S);
|
|
5315
|
+
}), t = L(() => n.value.activePage ? n.value.activePage.id : ""), i = () => {
|
|
5316
|
+
const S = t.value;
|
|
5317
|
+
return !!n.value && S + s.value.toString();
|
|
5318
|
+
}, d = L(
|
|
5319
|
+
() => n.value.showCompletedPage && n.value.state === "completed"
|
|
5320
|
+
), m = L(() => n.value.css), p = L(() => "page" + i()), q = (S) => {
|
|
5321
|
+
if (!!S) {
|
|
5322
|
+
var f = e.value;
|
|
5323
|
+
f && S.afterRenderSurvey(f), S.renderCallback = () => {
|
|
5324
|
+
var N, k;
|
|
5325
|
+
s.value++, (k = (N = Ce()) == null ? void 0 : N.proxy) == null || k.$forceUpdate();
|
|
5326
|
+
}, S.startTimerFromUI();
|
|
5327
5327
|
}
|
|
5328
5328
|
};
|
|
5329
|
-
return
|
|
5330
|
-
() =>
|
|
5331
|
-
(
|
|
5332
|
-
|
|
5329
|
+
return V(
|
|
5330
|
+
() => n.value,
|
|
5331
|
+
(S, f) => {
|
|
5332
|
+
S && f && q(S);
|
|
5333
5333
|
},
|
|
5334
|
-
(
|
|
5335
|
-
|
|
5334
|
+
(S) => {
|
|
5335
|
+
S.stopTimer(), S.renderCallback = void 0;
|
|
5336
5336
|
}
|
|
5337
|
-
),
|
|
5338
|
-
|
|
5339
|
-
}),
|
|
5340
|
-
|
|
5341
|
-
}), (
|
|
5342
|
-
class: a(
|
|
5343
|
-
style:
|
|
5344
|
-
lang:
|
|
5345
|
-
dir:
|
|
5337
|
+
), Z(() => {
|
|
5338
|
+
q(n.value);
|
|
5339
|
+
}), P(() => {
|
|
5340
|
+
n.value.stopTimer(), n.value.beforeDestroySurveyElement(), n.value.renderCallback = void 0;
|
|
5341
|
+
}), (S, f) => (r(), l("div", {
|
|
5342
|
+
class: a(n.value.getRootCss()),
|
|
5343
|
+
style: b(n.value.themeVariables),
|
|
5344
|
+
lang: n.value.locale || "en",
|
|
5345
|
+
dir: n.value.localeDir,
|
|
5346
5346
|
ref_key: "root",
|
|
5347
5347
|
ref: e
|
|
5348
5348
|
}, [
|
|
5349
|
-
|
|
5349
|
+
n.value.needRenderIcons ? (r(), C(v, {
|
|
5350
5350
|
key: 0,
|
|
5351
5351
|
is: "sv-svg-bundle"
|
|
5352
5352
|
})) : c("", !0),
|
|
5353
5353
|
g("div", {
|
|
5354
|
-
class: a(
|
|
5354
|
+
class: a(n.value.wrapperFormCss)
|
|
5355
5355
|
}, [
|
|
5356
5356
|
y(v, { is: "survey-popup-modal" }),
|
|
5357
|
-
|
|
5357
|
+
n.value.renderBackgroundImage ? (r(), l("div", {
|
|
5358
5358
|
key: 0,
|
|
5359
|
-
class: a(
|
|
5360
|
-
style:
|
|
5359
|
+
class: a(m.value.rootBackgroundImage),
|
|
5360
|
+
style: b(n.value.backgroundImageStyle)
|
|
5361
5361
|
}, null, 6)) : c("", !0),
|
|
5362
|
-
g("form",
|
|
5363
|
-
|
|
5362
|
+
g("form", nn, [
|
|
5363
|
+
n.value.hasLogo ? c("", !0) : (r(), l("div", rn)),
|
|
5364
5364
|
g("div", {
|
|
5365
|
-
class: a(
|
|
5365
|
+
class: a(m.value.container)
|
|
5366
5366
|
}, [
|
|
5367
|
-
|
|
5367
|
+
n.value.headerView === "basic" ? (r(), C(v, {
|
|
5368
5368
|
key: 0,
|
|
5369
5369
|
is: "survey-header",
|
|
5370
|
-
survey:
|
|
5370
|
+
survey: n.value
|
|
5371
5371
|
}, null, 8, ["survey"])) : c("", !0),
|
|
5372
5372
|
y(v, {
|
|
5373
5373
|
is: "sv-components-container",
|
|
5374
|
-
survey:
|
|
5374
|
+
survey: n.value,
|
|
5375
5375
|
container: "header",
|
|
5376
5376
|
needRenderWrapper: !1
|
|
5377
5377
|
}, null, 8, ["survey"]),
|
|
5378
|
-
|
|
5378
|
+
n.value.isShowingPage ? (r(), l("div", {
|
|
5379
5379
|
key: 1,
|
|
5380
|
-
class: a(
|
|
5380
|
+
class: a(n.value.bodyContainerCss)
|
|
5381
5381
|
}, [
|
|
5382
5382
|
y(v, {
|
|
5383
5383
|
is: "sv-components-container",
|
|
5384
|
-
survey:
|
|
5384
|
+
survey: n.value,
|
|
5385
5385
|
container: "left",
|
|
5386
5386
|
needRenderWrapper: !0
|
|
5387
5387
|
}, null, 8, ["survey"]),
|
|
5388
|
-
g("div",
|
|
5388
|
+
g("div", an, [
|
|
5389
5389
|
y(v, {
|
|
5390
5390
|
is: "sv-components-container",
|
|
5391
|
-
survey:
|
|
5391
|
+
survey: n.value,
|
|
5392
5392
|
container: "center",
|
|
5393
5393
|
needRenderWrapper: !0
|
|
5394
5394
|
}, null, 8, ["survey"]),
|
|
5395
5395
|
g("div", {
|
|
5396
|
-
class: a(
|
|
5397
|
-
style:
|
|
5398
|
-
id:
|
|
5396
|
+
class: a(n.value.bodyCss),
|
|
5397
|
+
style: b({ maxWidth: n.value.renderedWidth }),
|
|
5398
|
+
id: t.value
|
|
5399
5399
|
}, [
|
|
5400
5400
|
y(v, {
|
|
5401
5401
|
is: "sv-components-container",
|
|
5402
|
-
survey:
|
|
5402
|
+
survey: n.value,
|
|
5403
5403
|
container: "contentTop",
|
|
5404
5404
|
needRenderWrapper: !0
|
|
5405
5405
|
}, null, 8, ["survey"]),
|
|
5406
5406
|
(r(), C(v, {
|
|
5407
5407
|
is: "survey-page",
|
|
5408
|
-
key:
|
|
5409
|
-
survey:
|
|
5410
|
-
page:
|
|
5411
|
-
css:
|
|
5408
|
+
key: p.value,
|
|
5409
|
+
survey: n.value,
|
|
5410
|
+
page: n.value.activePage,
|
|
5411
|
+
css: m.value
|
|
5412
5412
|
}, null, 8, ["survey", "page", "css"])),
|
|
5413
5413
|
y(v, {
|
|
5414
5414
|
is: "sv-components-container",
|
|
5415
|
-
survey:
|
|
5415
|
+
survey: n.value,
|
|
5416
5416
|
container: "contentBottom",
|
|
5417
5417
|
needRenderWrapper: !0
|
|
5418
5418
|
}, null, 8, ["survey"]),
|
|
5419
|
-
|
|
5419
|
+
n.value.showBrandInfo ? (r(), C(v, {
|
|
5420
5420
|
key: 0,
|
|
5421
5421
|
is: "sv-brand-info"
|
|
5422
5422
|
})) : c("", !0)
|
|
5423
|
-
], 14,
|
|
5423
|
+
], 14, ln)
|
|
5424
5424
|
]),
|
|
5425
5425
|
y(v, {
|
|
5426
5426
|
is: "sv-components-container",
|
|
5427
|
-
survey:
|
|
5427
|
+
survey: n.value,
|
|
5428
5428
|
container: "right",
|
|
5429
5429
|
needRenderWrapper: !0
|
|
5430
5430
|
}, null, 8, ["survey"])
|
|
5431
5431
|
], 2)) : c("", !0),
|
|
5432
5432
|
y(v, {
|
|
5433
5433
|
is: "sv-components-container",
|
|
5434
|
-
survey:
|
|
5434
|
+
survey: n.value,
|
|
5435
5435
|
container: "footer",
|
|
5436
5436
|
needRenderWrapper: !1
|
|
5437
5437
|
}, null, 8, ["survey"]),
|
|
5438
|
-
|
|
5438
|
+
d.value ? (r(), l("div", un, [
|
|
5439
5439
|
g("div", {
|
|
5440
|
-
innerHTML:
|
|
5441
|
-
class: a(
|
|
5442
|
-
}, null, 10,
|
|
5440
|
+
innerHTML: n.value.processedCompletedHtml,
|
|
5441
|
+
class: a(n.value.completedCss)
|
|
5442
|
+
}, null, 10, dn),
|
|
5443
5443
|
y(v, {
|
|
5444
5444
|
is: "sv-components-container",
|
|
5445
|
-
survey:
|
|
5445
|
+
survey: n.value,
|
|
5446
5446
|
container: "completePage",
|
|
5447
5447
|
needRenderWrapper: !0
|
|
5448
5448
|
}, null, 8, ["survey"])
|
|
5449
5449
|
])) : c("", !0),
|
|
5450
|
-
|
|
5450
|
+
n.value.state === "completedbefore" ? (r(), l("div", {
|
|
5451
5451
|
key: 3,
|
|
5452
|
-
class: a(
|
|
5453
|
-
innerHTML:
|
|
5454
|
-
}, null, 10,
|
|
5455
|
-
|
|
5452
|
+
class: a(n.value.completedBeforeCss),
|
|
5453
|
+
innerHTML: n.value.processedCompletedBeforeHtml
|
|
5454
|
+
}, null, 10, vn)) : c("", !0),
|
|
5455
|
+
n.value.state === "loading" ? (r(), l("div", {
|
|
5456
5456
|
key: 4,
|
|
5457
|
-
class: a(
|
|
5458
|
-
innerHTML:
|
|
5459
|
-
}, null, 10,
|
|
5460
|
-
|
|
5457
|
+
class: a(n.value.loadingBodyCss),
|
|
5458
|
+
innerHTML: n.value.processedLoadingHtml
|
|
5459
|
+
}, null, 10, cn)) : c("", !0),
|
|
5460
|
+
n.value.state === "empty" ? (r(), l("div", {
|
|
5461
5461
|
key: 5,
|
|
5462
|
-
class: a(
|
|
5463
|
-
}, H(
|
|
5462
|
+
class: a(m.value.bodyEmpty)
|
|
5463
|
+
}, H(n.value.emptySurveyText), 3)) : c("", !0)
|
|
5464
5464
|
], 2)
|
|
5465
5465
|
]),
|
|
5466
5466
|
y(v, {
|
|
5467
5467
|
is: "sv-notifier",
|
|
5468
|
-
model:
|
|
5468
|
+
model: n.value.notifier
|
|
5469
5469
|
}, null, 8, ["model"])
|
|
5470
5470
|
], 2)
|
|
5471
|
-
], 14,
|
|
5471
|
+
], 14, tn));
|
|
5472
5472
|
}
|
|
5473
|
-
}),
|
|
5473
|
+
}), pn = /* @__PURE__ */ h({
|
|
5474
5474
|
__name: "Notifier",
|
|
5475
5475
|
props: {
|
|
5476
5476
|
model: {}
|
|
5477
5477
|
},
|
|
5478
5478
|
setup(u) {
|
|
5479
5479
|
const o = u;
|
|
5480
|
-
return
|
|
5480
|
+
return V(() => o.model), (e, s) => e.model.isDisplayed ? (r(), l("div", {
|
|
5481
5481
|
key: 0,
|
|
5482
5482
|
class: a(e.model.css),
|
|
5483
|
-
style:
|
|
5483
|
+
style: b({ visibility: e.model.active ? "visible" : "hidden" }),
|
|
5484
5484
|
role: "alert",
|
|
5485
5485
|
"aria-live": "polite"
|
|
5486
5486
|
}, [
|
|
@@ -5491,7 +5491,7 @@ const ie = /* @__PURE__ */ h({
|
|
|
5491
5491
|
}, null, 8, ["model"])
|
|
5492
5492
|
], 6)) : c("", !0);
|
|
5493
5493
|
}
|
|
5494
|
-
}),
|
|
5494
|
+
}), mn = { key: 0 }, gn = /* @__PURE__ */ h({
|
|
5495
5495
|
__name: "QuestionOther",
|
|
5496
5496
|
props: {
|
|
5497
5497
|
question: {}
|
|
@@ -5500,21 +5500,21 @@ const ie = /* @__PURE__ */ h({
|
|
|
5500
5500
|
return (o, e) => (r(), l("div", {
|
|
5501
5501
|
class: a(o.question.getCommentAreaCss(!0))
|
|
5502
5502
|
}, [
|
|
5503
|
-
o.question.isReadOnlyRenderDiv() ? (r(), l("div",
|
|
5503
|
+
o.question.isReadOnlyRenderDiv() ? (r(), l("div", mn, H(o.question.otherValue), 1)) : (r(), C(v, {
|
|
5504
5504
|
key: 1,
|
|
5505
5505
|
is: "sv-text-area",
|
|
5506
5506
|
model: o.question.otherTextAreaModel
|
|
5507
5507
|
}, null, 8, ["model"]))
|
|
5508
5508
|
], 2));
|
|
5509
5509
|
}
|
|
5510
|
-
}),
|
|
5510
|
+
}), Cn = ["disabled", "value", "title"], yn = /* @__PURE__ */ h({
|
|
5511
5511
|
__name: "SurveyNavigationButton",
|
|
5512
5512
|
props: {
|
|
5513
5513
|
item: {}
|
|
5514
5514
|
},
|
|
5515
5515
|
setup(u) {
|
|
5516
5516
|
const o = u, e = () => o.item.data && o.item.data.mouseDown();
|
|
5517
|
-
return
|
|
5517
|
+
return V(() => o.item), (s, n) => s.item.visible ? (r(), l("input", {
|
|
5518
5518
|
key: 0,
|
|
5519
5519
|
type: "button",
|
|
5520
5520
|
disabled: s.item.disabled,
|
|
@@ -5523,9 +5523,9 @@ const ie = /* @__PURE__ */ h({
|
|
|
5523
5523
|
title: s.item.getTooltip(),
|
|
5524
5524
|
onMousedown: e,
|
|
5525
5525
|
onClick: n[0] || (n[0] = (...t) => s.item.action && s.item.action(...t))
|
|
5526
|
-
}, null, 42,
|
|
5526
|
+
}, null, 42, Cn)) : c("", !0);
|
|
5527
5527
|
}
|
|
5528
|
-
}),
|
|
5528
|
+
}), Le = /* @__PURE__ */ h({
|
|
5529
5529
|
__name: "PopupSurvey",
|
|
5530
5530
|
props: {
|
|
5531
5531
|
survey: {},
|
|
@@ -5548,22 +5548,22 @@ const ie = /* @__PURE__ */ h({
|
|
|
5548
5548
|
let p = e.value.cssHeaderRoot;
|
|
5549
5549
|
return e.value.isCollapsed && (p += " " + e.value.cssRootCollapsedMod), p;
|
|
5550
5550
|
};
|
|
5551
|
-
|
|
5551
|
+
V(() => e.value);
|
|
5552
5552
|
const m = O(
|
|
5553
5553
|
() => o.survey,
|
|
5554
5554
|
(p) => {
|
|
5555
|
-
const q = new
|
|
5555
|
+
const q = new Qe(null, p);
|
|
5556
5556
|
o.isExpanded !== void 0 && (q.isExpanded = o.isExpanded), o.closeOnCompleteTimeout !== void 0 && (q.closeOnCompleteTimeout = o.closeOnCompleteTimeout), o.allowClose !== void 0 && (q.allowClose = o.allowClose), o.allowFullScreen !== void 0 && (q.allowFullScreen = o.allowFullScreen), q.isShowing = !0, e.value = q;
|
|
5557
5557
|
},
|
|
5558
5558
|
{
|
|
5559
5559
|
immediate: !0
|
|
5560
5560
|
}
|
|
5561
5561
|
);
|
|
5562
|
-
return
|
|
5562
|
+
return P(() => {
|
|
5563
5563
|
m();
|
|
5564
5564
|
}), (p, q) => e.value.isShowing ? (r(), l("div", {
|
|
5565
5565
|
key: 0,
|
|
5566
|
-
style:
|
|
5566
|
+
style: b({
|
|
5567
5567
|
maxWidth: e.value.renderedWidth,
|
|
5568
5568
|
width: e.value.renderedWidth
|
|
5569
5569
|
}),
|
|
@@ -5639,19 +5639,19 @@ const ie = /* @__PURE__ */ h({
|
|
|
5639
5639
|
], 2)
|
|
5640
5640
|
], 38)) : c("", !0);
|
|
5641
5641
|
}
|
|
5642
|
-
}),
|
|
5642
|
+
}), hn = ["innerHTML"], qn = /* @__PURE__ */ h({
|
|
5643
5643
|
__name: "CustomWidget",
|
|
5644
5644
|
props: {
|
|
5645
5645
|
question: {},
|
|
5646
5646
|
css: {}
|
|
5647
5647
|
},
|
|
5648
5648
|
setup(u) {
|
|
5649
|
-
const o = u, e =
|
|
5649
|
+
const o = u, e = M(), s = L(
|
|
5650
5650
|
() => o.question.customWidget.isDefaultRender
|
|
5651
5651
|
), n = L(
|
|
5652
5652
|
() => !!o.question.customWidget.htmlTemplate
|
|
5653
5653
|
), t = L(() => o.question.customWidget.htmlTemplate), i = L(() => "survey-" + o.question.getTemplate());
|
|
5654
|
-
return
|
|
5654
|
+
return Z(() => {
|
|
5655
5655
|
o.question.customWidget.afterRender(o.question, e.value);
|
|
5656
5656
|
}), U(() => {
|
|
5657
5657
|
o.question.customWidget.willUnmount(o.question, e.value);
|
|
@@ -5662,7 +5662,7 @@ const ie = /* @__PURE__ */ h({
|
|
|
5662
5662
|
n.value ? (r(), l("div", {
|
|
5663
5663
|
key: 0,
|
|
5664
5664
|
innerHTML: t.value
|
|
5665
|
-
}, null, 8,
|
|
5665
|
+
}, null, 8, hn)) : c("", !0),
|
|
5666
5666
|
s.value ? (r(), C(v, {
|
|
5667
5667
|
key: 1,
|
|
5668
5668
|
is: i.value,
|
|
@@ -5671,12 +5671,12 @@ const ie = /* @__PURE__ */ h({
|
|
|
5671
5671
|
}, null, 8, ["is", "question", "css"])) : c("", !0)
|
|
5672
5672
|
], 512));
|
|
5673
5673
|
}
|
|
5674
|
-
}),
|
|
5674
|
+
}), wn = /* @__PURE__ */ h({
|
|
5675
5675
|
__name: "PopupModal",
|
|
5676
5676
|
setup(u) {
|
|
5677
5677
|
const o = W();
|
|
5678
5678
|
function e(n, t, i, d, m, p, q = "popup") {
|
|
5679
|
-
const
|
|
5679
|
+
const S = Ge(
|
|
5680
5680
|
n,
|
|
5681
5681
|
t,
|
|
5682
5682
|
i,
|
|
@@ -5687,10 +5687,10 @@ const ie = /* @__PURE__ */ h({
|
|
|
5687
5687
|
p,
|
|
5688
5688
|
q
|
|
5689
5689
|
);
|
|
5690
|
-
return s(
|
|
5690
|
+
return s(S);
|
|
5691
5691
|
}
|
|
5692
5692
|
function s(n, t) {
|
|
5693
|
-
const i =
|
|
5693
|
+
const i = Je(
|
|
5694
5694
|
n,
|
|
5695
5695
|
t
|
|
5696
5696
|
), d = (m, p) => {
|
|
@@ -5698,11 +5698,11 @@ const ie = /* @__PURE__ */ h({
|
|
|
5698
5698
|
};
|
|
5699
5699
|
return i.onVisibilityChanged.add(d), i.model.isVisible = !0, o.value = i, i;
|
|
5700
5700
|
}
|
|
5701
|
-
return F.showModal || (F.showModal = e,
|
|
5701
|
+
return F.showModal || (F.showModal = e, P(() => {
|
|
5702
5702
|
F.showModal = void 0;
|
|
5703
|
-
})), F.showDialog || (F.showDialog = s,
|
|
5703
|
+
})), F.showDialog || (F.showDialog = s, P(() => {
|
|
5704
5704
|
F.showDialog = void 0;
|
|
5705
|
-
})), (n, t) => o.value ? (r(), C(
|
|
5705
|
+
})), (n, t) => o.value ? (r(), C(Ae, {
|
|
5706
5706
|
key: 0,
|
|
5707
5707
|
to: o.value.container
|
|
5708
5708
|
}, [
|
|
@@ -5712,20 +5712,20 @@ const ie = /* @__PURE__ */ h({
|
|
|
5712
5712
|
}, null, 8, ["model"])
|
|
5713
5713
|
], 8, ["to"])) : c("", !0);
|
|
5714
5714
|
}
|
|
5715
|
-
}),
|
|
5715
|
+
}), kn = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], fn = /* @__PURE__ */ h({
|
|
5716
5716
|
__name: "TextArea",
|
|
5717
5717
|
props: {
|
|
5718
5718
|
model: {}
|
|
5719
5719
|
},
|
|
5720
5720
|
setup(u) {
|
|
5721
|
-
const o = u, e =
|
|
5721
|
+
const o = u, e = M(
|
|
5722
5722
|
null
|
|
5723
5723
|
), s = L(() => o.model.getTextValue() || "");
|
|
5724
|
-
return
|
|
5724
|
+
return Z(() => {
|
|
5725
5725
|
o.model.setElement(e.value);
|
|
5726
5726
|
}), x(() => {
|
|
5727
5727
|
o.model.setElement(e.value);
|
|
5728
|
-
}),
|
|
5728
|
+
}), P(() => {
|
|
5729
5729
|
o.model.resetElement();
|
|
5730
5730
|
}), (n, t) => (r(), l("textarea", {
|
|
5731
5731
|
ref_key: "contentElement",
|
|
@@ -5760,10 +5760,10 @@ const ie = /* @__PURE__ */ h({
|
|
|
5760
5760
|
"aria-describedby": n.model.ariaDescribedBy,
|
|
5761
5761
|
"aria-invalid": n.model.ariaInvalid,
|
|
5762
5762
|
"aria-errormessage": n.model.ariaErrormessage,
|
|
5763
|
-
style:
|
|
5764
|
-
}, null, 46,
|
|
5763
|
+
style: b({ resize: n.model.question.resizeStyle })
|
|
5764
|
+
}, null, 46, kn));
|
|
5765
5765
|
}
|
|
5766
|
-
}),
|
|
5766
|
+
}), Ln = /* @__PURE__ */ h({
|
|
5767
5767
|
__name: "CharacterCounter",
|
|
5768
5768
|
props: {
|
|
5769
5769
|
counter: {},
|
|
@@ -5771,11 +5771,11 @@ const ie = /* @__PURE__ */ h({
|
|
|
5771
5771
|
},
|
|
5772
5772
|
setup(u) {
|
|
5773
5773
|
const o = u;
|
|
5774
|
-
return
|
|
5774
|
+
return V(() => o.counter), (e, s) => (r(), l("div", {
|
|
5775
5775
|
class: a(e.remainingCharacterCounter)
|
|
5776
5776
|
}, H(e.counter.remainingCharacterCounter), 3));
|
|
5777
5777
|
}
|
|
5778
|
-
}),
|
|
5778
|
+
}), bn = /* @__PURE__ */ h({
|
|
5779
5779
|
inheritAttrs: !1,
|
|
5780
5780
|
__name: "Composite",
|
|
5781
5781
|
props: {
|
|
@@ -5783,7 +5783,7 @@ const ie = /* @__PURE__ */ h({
|
|
|
5783
5783
|
css: {}
|
|
5784
5784
|
},
|
|
5785
5785
|
setup(u) {
|
|
5786
|
-
const o = u, e =
|
|
5786
|
+
const o = u, e = M(null);
|
|
5787
5787
|
T(o, e);
|
|
5788
5788
|
const s = L(() => o.question.contentPanel);
|
|
5789
5789
|
return (n, t) => (r(), C(v, {
|
|
@@ -5794,7 +5794,7 @@ const ie = /* @__PURE__ */ h({
|
|
|
5794
5794
|
css: n.css
|
|
5795
5795
|
}, null, 8, ["element", "css"]));
|
|
5796
5796
|
}
|
|
5797
|
-
}),
|
|
5797
|
+
}), Mn = /* @__PURE__ */ h({
|
|
5798
5798
|
inheritAttrs: !1,
|
|
5799
5799
|
__name: "Custom",
|
|
5800
5800
|
props: {
|
|
@@ -5802,7 +5802,7 @@ const ie = /* @__PURE__ */ h({
|
|
|
5802
5802
|
css: {}
|
|
5803
5803
|
},
|
|
5804
5804
|
setup(u) {
|
|
5805
|
-
const o = u, e =
|
|
5805
|
+
const o = u, e = M(null);
|
|
5806
5806
|
T(o, e);
|
|
5807
5807
|
const s = L(() => o.question.contentQuestion), n = (t) => te(t);
|
|
5808
5808
|
return (t, i) => (r(), C(v, {
|
|
@@ -5812,25 +5812,25 @@ const ie = /* @__PURE__ */ h({
|
|
|
5812
5812
|
css: t.css
|
|
5813
5813
|
}, null, 8, ["is", "question", "css"]));
|
|
5814
5814
|
}
|
|
5815
|
-
}),
|
|
5816
|
-
|
|
5817
|
-
],
|
|
5815
|
+
}), Hn = /* @__PURE__ */ g("use", { "xlink:href": "#icon-timercircle" }, null, -1), In = [
|
|
5816
|
+
Hn
|
|
5817
|
+
], pe = 440, Sn = /* @__PURE__ */ h({
|
|
5818
5818
|
__name: "TimerPanel",
|
|
5819
5819
|
props: {
|
|
5820
5820
|
model: {},
|
|
5821
5821
|
css: {}
|
|
5822
5822
|
},
|
|
5823
5823
|
setup(u) {
|
|
5824
|
-
const o = u, e = L(() =>
|
|
5825
|
-
return
|
|
5824
|
+
const o = u, e = L(() => pe * o.model.progress), s = L(() => o.model.text);
|
|
5825
|
+
return V(() => o.model), (n, t) => n.model.isRunning && n.model.showTimerAsClock ? (r(), l("div", {
|
|
5826
5826
|
key: 0,
|
|
5827
5827
|
class: a(n.model.rootCss)
|
|
5828
5828
|
}, [
|
|
5829
5829
|
n.model.showProgress ? (r(), l("svg", {
|
|
5830
5830
|
key: 0,
|
|
5831
5831
|
class: a(n.model.getProgressCss()),
|
|
5832
|
-
style:
|
|
5833
|
-
},
|
|
5832
|
+
style: b({ strokeDasharray: pe, strokeDashoffset: e.value })
|
|
5833
|
+
}, In, 6)) : c("", !0),
|
|
5834
5834
|
g("div", {
|
|
5835
5835
|
class: a(n.model.textContainerCss)
|
|
5836
5836
|
}, [
|
|
@@ -5846,13 +5846,13 @@ const ie = /* @__PURE__ */ h({
|
|
|
5846
5846
|
key: 1,
|
|
5847
5847
|
class: a(n.model.survey.getCss().timerRoot)
|
|
5848
5848
|
}, H(s.value), 3)), [
|
|
5849
|
-
[
|
|
5849
|
+
[D, n.model.isRunning && !n.model.showTimerAsClock]
|
|
5850
5850
|
]);
|
|
5851
5851
|
}
|
|
5852
|
-
}),
|
|
5852
|
+
}), Bn = { class: "sd-loading-indicator" }, Vn = /* @__PURE__ */ h({
|
|
5853
5853
|
__name: "LoadingIndicator",
|
|
5854
5854
|
setup(u) {
|
|
5855
|
-
return (o, e) => (r(), l("div",
|
|
5855
|
+
return (o, e) => (r(), l("div", Bn, [
|
|
5856
5856
|
y(v, {
|
|
5857
5857
|
is: "sv-svg-icon",
|
|
5858
5858
|
iconName: "icon-loading",
|
|
@@ -5860,7 +5860,7 @@ const ie = /* @__PURE__ */ h({
|
|
|
5860
5860
|
})
|
|
5861
5861
|
]));
|
|
5862
5862
|
}
|
|
5863
|
-
}),
|
|
5863
|
+
}), Rn = { key: 2 }, Tn = /* @__PURE__ */ h({
|
|
5864
5864
|
__name: "Header",
|
|
5865
5865
|
props: {
|
|
5866
5866
|
model: {},
|
|
@@ -5868,31 +5868,31 @@ const ie = /* @__PURE__ */ h({
|
|
|
5868
5868
|
},
|
|
5869
5869
|
setup(u) {
|
|
5870
5870
|
const o = u;
|
|
5871
|
-
return
|
|
5871
|
+
return V(() => {
|
|
5872
5872
|
const e = o.model;
|
|
5873
5873
|
return e.survey = o.survey, o.model;
|
|
5874
5874
|
}), (e, s) => e.survey.headerView === "advanced" ? (r(), l("div", {
|
|
5875
5875
|
key: 0,
|
|
5876
5876
|
class: a(e.model.headerClasses),
|
|
5877
|
-
style:
|
|
5877
|
+
style: b({ height: e.model.renderedHeight })
|
|
5878
5878
|
}, [
|
|
5879
5879
|
e.model.backgroundImage ? (r(), l("div", {
|
|
5880
5880
|
key: 0,
|
|
5881
5881
|
class: a(e.model.backgroundImageClasses),
|
|
5882
|
-
style:
|
|
5882
|
+
style: b(e.model.backgroundImageStyle)
|
|
5883
5883
|
}, null, 6)) : c("", !0),
|
|
5884
5884
|
e.survey.isMobile ? c("", !0) : (r(), l("div", {
|
|
5885
5885
|
key: 1,
|
|
5886
5886
|
class: a(e.model.contentClasses),
|
|
5887
|
-
style:
|
|
5887
|
+
style: b({ maxWidth: e.model.maxWidth })
|
|
5888
5888
|
}, [
|
|
5889
|
-
(r(!0), l(I, null,
|
|
5889
|
+
(r(!0), l(I, null, B(e.model.cells, (n, t) => (r(), C(v, {
|
|
5890
5890
|
is: "sv-header-cell",
|
|
5891
5891
|
model: n,
|
|
5892
5892
|
key: t
|
|
5893
5893
|
}, null, 8, ["model"]))), 128))
|
|
5894
5894
|
], 6)),
|
|
5895
|
-
e.survey.isMobile ? (r(), l("div",
|
|
5895
|
+
e.survey.isMobile ? (r(), l("div", Rn, [
|
|
5896
5896
|
y(v, {
|
|
5897
5897
|
is: "sv-header-mobile",
|
|
5898
5898
|
model: e.model
|
|
@@ -5900,10 +5900,10 @@ const ie = /* @__PURE__ */ h({
|
|
|
5900
5900
|
])) : c("", !0)
|
|
5901
5901
|
], 6)) : c("", !0);
|
|
5902
5902
|
}
|
|
5903
|
-
}),
|
|
5903
|
+
}), Zn = {
|
|
5904
5904
|
key: 0,
|
|
5905
5905
|
class: "sv-header__logo"
|
|
5906
|
-
},
|
|
5906
|
+
}, $n = ["src", "width", "height", "alt"], Dn = /* @__PURE__ */ h({
|
|
5907
5907
|
__name: "HeaderCell",
|
|
5908
5908
|
props: {
|
|
5909
5909
|
model: {}
|
|
@@ -5911,13 +5911,13 @@ const ie = /* @__PURE__ */ h({
|
|
|
5911
5911
|
setup(u) {
|
|
5912
5912
|
return (o, e) => (r(), l("div", {
|
|
5913
5913
|
class: a(o.model.css),
|
|
5914
|
-
style:
|
|
5914
|
+
style: b(o.model.style)
|
|
5915
5915
|
}, [
|
|
5916
5916
|
g("div", {
|
|
5917
5917
|
class: "sv-header__cell-content",
|
|
5918
|
-
style:
|
|
5918
|
+
style: b(o.model.contentStyle)
|
|
5919
5919
|
}, [
|
|
5920
|
-
o.model.showLogo ? (r(), l("div",
|
|
5920
|
+
o.model.showLogo ? (r(), l("div", Zn, [
|
|
5921
5921
|
g("div", {
|
|
5922
5922
|
class: a(o.model.survey.logoClassNames)
|
|
5923
5923
|
}, [
|
|
@@ -5927,14 +5927,14 @@ const ie = /* @__PURE__ */ h({
|
|
|
5927
5927
|
width: o.model.survey.renderedLogoWidth,
|
|
5928
5928
|
height: o.model.survey.renderedLogoHeight,
|
|
5929
5929
|
alt: o.model.survey.locTitle.renderedHtml,
|
|
5930
|
-
style:
|
|
5931
|
-
}, null, 14,
|
|
5930
|
+
style: b({ objectFit: o.model.survey.logoFit, width: o.model.survey.renderedStyleLogoWidth, height: o.model.survey.renderedStyleLogoHeight })
|
|
5931
|
+
}, null, 14, $n)
|
|
5932
5932
|
], 2)
|
|
5933
5933
|
])) : c("", !0),
|
|
5934
5934
|
o.model.showTitle ? (r(), l("div", {
|
|
5935
5935
|
key: 1,
|
|
5936
5936
|
class: "sv-header__title",
|
|
5937
|
-
style:
|
|
5937
|
+
style: b({ maxWidth: o.model.textAreaWidth })
|
|
5938
5938
|
}, [
|
|
5939
5939
|
y(v, {
|
|
5940
5940
|
is: "survey-element-title",
|
|
@@ -5945,7 +5945,7 @@ const ie = /* @__PURE__ */ h({
|
|
|
5945
5945
|
o.model.showDescription ? (r(), l("div", {
|
|
5946
5946
|
key: 2,
|
|
5947
5947
|
class: "sv-header__description",
|
|
5948
|
-
style:
|
|
5948
|
+
style: b({ maxWidth: o.model.textAreaWidth })
|
|
5949
5949
|
}, [
|
|
5950
5950
|
o.model.survey.renderedHasDescription ? (r(), l("div", {
|
|
5951
5951
|
key: 0,
|
|
@@ -5960,17 +5960,17 @@ const ie = /* @__PURE__ */ h({
|
|
|
5960
5960
|
], 4)
|
|
5961
5961
|
], 6));
|
|
5962
5962
|
}
|
|
5963
|
-
}),
|
|
5963
|
+
}), An = { class: "sv-header--mobile" }, Pn = {
|
|
5964
5964
|
key: 0,
|
|
5965
5965
|
class: "sv-header__logo"
|
|
5966
|
-
},
|
|
5966
|
+
}, Nn = ["src", "width", "height", "alt"], En = /* @__PURE__ */ h({
|
|
5967
5967
|
__name: "HeaderMobile",
|
|
5968
5968
|
props: {
|
|
5969
5969
|
model: {}
|
|
5970
5970
|
},
|
|
5971
5971
|
setup(u) {
|
|
5972
|
-
return (o, e) => (r(), l("div",
|
|
5973
|
-
o.model.survey.hasLogo ? (r(), l("div",
|
|
5972
|
+
return (o, e) => (r(), l("div", An, [
|
|
5973
|
+
o.model.survey.hasLogo ? (r(), l("div", Pn, [
|
|
5974
5974
|
g("div", {
|
|
5975
5975
|
class: a(o.model.survey.logoClassNames)
|
|
5976
5976
|
}, [
|
|
@@ -5980,14 +5980,14 @@ const ie = /* @__PURE__ */ h({
|
|
|
5980
5980
|
width: o.model.survey.renderedLogoWidth,
|
|
5981
5981
|
height: o.model.survey.renderedLogoHeight,
|
|
5982
5982
|
alt: o.model.survey.locTitle.renderedHtml,
|
|
5983
|
-
style:
|
|
5984
|
-
}, null, 14,
|
|
5983
|
+
style: b({ objectFit: o.model.survey.logoFit, width: o.model.survey.renderedStyleLogoWidth, height: o.model.survey.renderedStyleLogoHeight })
|
|
5984
|
+
}, null, 14, Nn)
|
|
5985
5985
|
], 2)
|
|
5986
5986
|
])) : c("", !0),
|
|
5987
5987
|
o.model.survey.hasTitle ? (r(), l("div", {
|
|
5988
5988
|
key: 1,
|
|
5989
5989
|
class: "sv-header__title",
|
|
5990
|
-
style:
|
|
5990
|
+
style: b({ maxWidth: o.model.renderedtextAreaWidth })
|
|
5991
5991
|
}, [
|
|
5992
5992
|
y(v, {
|
|
5993
5993
|
is: "survey-element-title",
|
|
@@ -5998,7 +5998,7 @@ const ie = /* @__PURE__ */ h({
|
|
|
5998
5998
|
o.model.survey.renderedHasDescription ? (r(), l("div", {
|
|
5999
5999
|
key: 2,
|
|
6000
6000
|
class: "sv-header__description",
|
|
6001
|
-
style:
|
|
6001
|
+
style: b({ maxWidth: o.model.renderedtextAreaWidth })
|
|
6002
6002
|
}, [
|
|
6003
6003
|
o.model.survey.renderedHasDescription ? (r(), l("div", {
|
|
6004
6004
|
key: 0,
|
|
@@ -6012,7 +6012,7 @@ const ie = /* @__PURE__ */ h({
|
|
|
6012
6012
|
], 4)) : c("", !0)
|
|
6013
6013
|
]));
|
|
6014
6014
|
}
|
|
6015
|
-
}),
|
|
6015
|
+
}), Wn = /* @__PURE__ */ h({
|
|
6016
6016
|
__name: "Element",
|
|
6017
6017
|
props: {
|
|
6018
6018
|
element: {},
|
|
@@ -6020,7 +6020,7 @@ const ie = /* @__PURE__ */ h({
|
|
|
6020
6020
|
css: {}
|
|
6021
6021
|
},
|
|
6022
6022
|
setup(u) {
|
|
6023
|
-
const o = u, e =
|
|
6023
|
+
const o = u, e = M(), s = (m) => m.isPanel ? "survey-panel" : "survey-question", n = L(() => {
|
|
6024
6024
|
const m = o.element.survey;
|
|
6025
6025
|
if (m) {
|
|
6026
6026
|
const p = m.getElementWrapperComponentName(o.element);
|
|
@@ -6047,17 +6047,17 @@ const ie = /* @__PURE__ */ h({
|
|
|
6047
6047
|
p && p.setWrapperElement(void 0), m.setWrapperElement(e.value);
|
|
6048
6048
|
}
|
|
6049
6049
|
);
|
|
6050
|
-
return
|
|
6050
|
+
return Z(() => {
|
|
6051
6051
|
o.element.setWrapperElement(e.value);
|
|
6052
|
-
}),
|
|
6052
|
+
}), P(() => {
|
|
6053
6053
|
o.element.setWrapperElement(void 0), d();
|
|
6054
6054
|
}), (m, p) => (r(), l("div", {
|
|
6055
6055
|
ref_key: "root",
|
|
6056
6056
|
ref: e,
|
|
6057
|
-
style:
|
|
6057
|
+
style: b(t(m.element)),
|
|
6058
6058
|
class: a(m.element.cssClasses.questionWrapper)
|
|
6059
6059
|
}, [
|
|
6060
|
-
m.row.isNeedRender ? (r(), C(v,
|
|
6060
|
+
m.row.isNeedRender ? (r(), C(v, $({
|
|
6061
6061
|
key: 0,
|
|
6062
6062
|
is: n.value
|
|
6063
6063
|
}, i.value), null, 16, ["is"])) : m.element.skeletonComponentName ? (r(), C(v, {
|
|
@@ -6068,20 +6068,20 @@ const ie = /* @__PURE__ */ h({
|
|
|
6068
6068
|
}, null, 8, ["is", "element", "css"])) : c("", !0)
|
|
6069
6069
|
], 6));
|
|
6070
6070
|
}
|
|
6071
|
-
}),
|
|
6071
|
+
}), On = /* @__PURE__ */ h({
|
|
6072
6072
|
__name: "TemplateRenderer",
|
|
6073
6073
|
props: {
|
|
6074
6074
|
componentName: {},
|
|
6075
6075
|
componentData: {}
|
|
6076
6076
|
},
|
|
6077
6077
|
setup(u) {
|
|
6078
|
-
const o =
|
|
6079
|
-
return (s, n) => e.value && !s.componentName ?
|
|
6078
|
+
const o = Pe(), e = L(() => !!o.default);
|
|
6079
|
+
return (s, n) => e.value && !s.componentName ? ge(s.$slots, "default", { key: 0 }) : (r(), C(v, $({
|
|
6080
6080
|
key: 1,
|
|
6081
6081
|
is: s.componentName
|
|
6082
6082
|
}, s.componentData), null, 16, ["is"]));
|
|
6083
6083
|
}
|
|
6084
|
-
}),
|
|
6084
|
+
}), Fn = /* @__PURE__ */ h({
|
|
6085
6085
|
__name: "FileCleanButton",
|
|
6086
6086
|
props: {
|
|
6087
6087
|
question: {},
|
|
@@ -6103,7 +6103,7 @@ const ie = /* @__PURE__ */ h({
|
|
|
6103
6103
|
}, null, 8, ["iconName", "title"])) : c("", !0)
|
|
6104
6104
|
], 2));
|
|
6105
6105
|
}
|
|
6106
|
-
}),
|
|
6106
|
+
}), zn = ["id"], Un = /* @__PURE__ */ h({
|
|
6107
6107
|
__name: "FileVideo",
|
|
6108
6108
|
props: {
|
|
6109
6109
|
question: {}
|
|
@@ -6125,14 +6125,14 @@ const ie = /* @__PURE__ */ h({
|
|
|
6125
6125
|
playsinline: "",
|
|
6126
6126
|
id: o.question.videoId,
|
|
6127
6127
|
class: a(o.question.cssClasses.video)
|
|
6128
|
-
}, null, 10,
|
|
6128
|
+
}, null, 10, zn),
|
|
6129
6129
|
y(v, {
|
|
6130
6130
|
is: "sv-action",
|
|
6131
6131
|
item: o.question.takePictureAction
|
|
6132
6132
|
}, null, 8, ["item"])
|
|
6133
6133
|
], 2));
|
|
6134
6134
|
}
|
|
6135
|
-
}),
|
|
6135
|
+
}), Kn = ["for", "aria-label"], jn = /* @__PURE__ */ h({
|
|
6136
6136
|
__name: "FileChooseButton",
|
|
6137
6137
|
props: {
|
|
6138
6138
|
data: {},
|
|
@@ -6160,11 +6160,11 @@ const ie = /* @__PURE__ */ h({
|
|
|
6160
6160
|
size: "auto"
|
|
6161
6161
|
}, null, 8, ["title", "iconName"])) : c("", !0),
|
|
6162
6162
|
g("span", null, H(e.value.chooseButtonText), 1)
|
|
6163
|
-
], 10,
|
|
6164
|
-
[
|
|
6163
|
+
], 10, Kn)), [
|
|
6164
|
+
[w(j)]
|
|
6165
6165
|
]);
|
|
6166
6166
|
}
|
|
6167
|
-
}),
|
|
6167
|
+
}), Qn = /* @__PURE__ */ h({
|
|
6168
6168
|
__name: "FilePreview",
|
|
6169
6169
|
props: {
|
|
6170
6170
|
question: {}
|
|
@@ -6174,13 +6174,13 @@ const ie = /* @__PURE__ */ h({
|
|
|
6174
6174
|
key: 0,
|
|
6175
6175
|
class: a(o.question.cssClasses.fileList || void 0)
|
|
6176
6176
|
}, [
|
|
6177
|
-
o.question.supportFileNavigator ? (r(!0), l(I, { key: 0 },
|
|
6177
|
+
o.question.supportFileNavigator ? (r(!0), l(I, { key: 0 }, B(o.question.renderedPages, (s) => (r(), C(v, {
|
|
6178
6178
|
is: "sv-file-page",
|
|
6179
6179
|
key: s.id,
|
|
6180
6180
|
page: s,
|
|
6181
6181
|
question: o.question
|
|
6182
6182
|
}, null, 8, ["page", "question"]))), 128)) : c("", !0),
|
|
6183
|
-
o.question.supportFileNavigator ? c("", !0) : (r(!0), l(I, { key: 1 },
|
|
6183
|
+
o.question.supportFileNavigator ? c("", !0) : (r(!0), l(I, { key: 1 }, B(o.question.previewValue, (s) => (r(), C(v, {
|
|
6184
6184
|
is: "sv-file-item",
|
|
6185
6185
|
key: s,
|
|
6186
6186
|
item: s,
|
|
@@ -6188,20 +6188,20 @@ const ie = /* @__PURE__ */ h({
|
|
|
6188
6188
|
}, null, 8, ["item", "question"]))), 128))
|
|
6189
6189
|
], 2)) : c("", !0);
|
|
6190
6190
|
}
|
|
6191
|
-
}),
|
|
6191
|
+
}), Gn = /* @__PURE__ */ h({
|
|
6192
6192
|
__name: "ButtonGroup",
|
|
6193
6193
|
props: {
|
|
6194
6194
|
question: {}
|
|
6195
6195
|
},
|
|
6196
6196
|
setup(u) {
|
|
6197
|
-
const o = u, e =
|
|
6197
|
+
const o = u, e = M();
|
|
6198
6198
|
return T(o, e), (s, n) => (r(), l("div", {
|
|
6199
6199
|
role: "group",
|
|
6200
6200
|
class: a(s.question.cssClasses.root),
|
|
6201
6201
|
ref_key: "root",
|
|
6202
6202
|
ref: e
|
|
6203
6203
|
}, [
|
|
6204
|
-
(r(!0), l(I, null,
|
|
6204
|
+
(r(!0), l(I, null, B(s.question.visibleChoices, (t, i) => (r(), C(v, {
|
|
6205
6205
|
is: "sv-button-group-item",
|
|
6206
6206
|
question: s.question,
|
|
6207
6207
|
key: i,
|
|
@@ -6210,7 +6210,7 @@ const ie = /* @__PURE__ */ h({
|
|
|
6210
6210
|
}, null, 8, ["question", "item", "index"]))), 128))
|
|
6211
6211
|
], 2));
|
|
6212
6212
|
}
|
|
6213
|
-
}),
|
|
6213
|
+
}), Jn = ["title"], Xn = ["name", "id", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "disabled", "value"], Yn = ["title"], xn = /* @__PURE__ */ h({
|
|
6214
6214
|
__name: "ButtonGroupItem",
|
|
6215
6215
|
props: {
|
|
6216
6216
|
item: {},
|
|
@@ -6219,7 +6219,7 @@ const ie = /* @__PURE__ */ h({
|
|
|
6219
6219
|
},
|
|
6220
6220
|
setup(u) {
|
|
6221
6221
|
const o = u, e = L(
|
|
6222
|
-
() => new
|
|
6222
|
+
() => new Xe(o.question, o.item, o.index)
|
|
6223
6223
|
), s = L({
|
|
6224
6224
|
get: () => o.question.renderedValue,
|
|
6225
6225
|
set: (n) => {
|
|
@@ -6245,7 +6245,7 @@ const ie = /* @__PURE__ */ h({
|
|
|
6245
6245
|
class: a(e.value.css.control),
|
|
6246
6246
|
"onUpdate:modelValue": t[0] || (t[0] = (i) => s.value = i),
|
|
6247
6247
|
value: e.value.value
|
|
6248
|
-
}, null, 10,
|
|
6248
|
+
}, null, 10, Xn), [
|
|
6249
6249
|
[Y, s.value]
|
|
6250
6250
|
]),
|
|
6251
6251
|
g("div", {
|
|
@@ -6267,11 +6267,11 @@ const ie = /* @__PURE__ */ h({
|
|
|
6267
6267
|
is: "survey-string",
|
|
6268
6268
|
locString: e.value.caption
|
|
6269
6269
|
}, null, 8, ["locString"])
|
|
6270
|
-
], 10,
|
|
6270
|
+
], 10, Yn)) : c("", !0)
|
|
6271
6271
|
], 2)
|
|
6272
|
-
], 10,
|
|
6272
|
+
], 10, Jn));
|
|
6273
6273
|
}
|
|
6274
|
-
}),
|
|
6274
|
+
}), _n = ["src", "width", "height", "alt"], er = /* @__PURE__ */ h({
|
|
6275
6275
|
inheritAttrs: !1,
|
|
6276
6276
|
__name: "Logo",
|
|
6277
6277
|
props: {
|
|
@@ -6284,37 +6284,37 @@ const ie = /* @__PURE__ */ h({
|
|
|
6284
6284
|
}, [
|
|
6285
6285
|
g("img", {
|
|
6286
6286
|
class: a(e.value.css.logoImage),
|
|
6287
|
-
src:
|
|
6287
|
+
src: w(s),
|
|
6288
6288
|
width: e.value.renderedLogoWidth,
|
|
6289
6289
|
height: e.value.renderedLogoHeight,
|
|
6290
6290
|
alt: e.value.locTitle.renderedHtml,
|
|
6291
|
-
style:
|
|
6291
|
+
style: b({
|
|
6292
6292
|
objectFit: e.value.logoFit,
|
|
6293
6293
|
width: e.value.renderedStyleLogoWidth,
|
|
6294
6294
|
height: e.value.renderedStyleLogoHeight
|
|
6295
6295
|
})
|
|
6296
|
-
}, null, 14,
|
|
6296
|
+
}, null, 14, _n)
|
|
6297
6297
|
], 2));
|
|
6298
6298
|
}
|
|
6299
|
-
}),
|
|
6299
|
+
}), sr = /* @__PURE__ */ h({
|
|
6300
6300
|
__name: "SvgBundle",
|
|
6301
6301
|
setup(u) {
|
|
6302
|
-
const o =
|
|
6302
|
+
const o = M(), e = () => {
|
|
6303
6303
|
o.value && (o.value.innerHTML = X.iconsRenderedHtml());
|
|
6304
6304
|
};
|
|
6305
|
-
return
|
|
6305
|
+
return Z(() => {
|
|
6306
6306
|
e(), X.onIconsChanged.add(e);
|
|
6307
|
-
}),
|
|
6307
|
+
}), P(() => {
|
|
6308
6308
|
X.onIconsChanged.remove(e);
|
|
6309
6309
|
}), (s, n) => R((r(), l("svg", {
|
|
6310
6310
|
id: "sv-icon-holder-global-container",
|
|
6311
6311
|
ref_key: "root",
|
|
6312
6312
|
ref: o
|
|
6313
6313
|
}, null, 512)), [
|
|
6314
|
-
[
|
|
6314
|
+
[D, !1]
|
|
6315
6315
|
]);
|
|
6316
6316
|
}
|
|
6317
|
-
}),
|
|
6317
|
+
}), or = ["id"], tr = /* @__PURE__ */ h({
|
|
6318
6318
|
__name: "FilePage",
|
|
6319
6319
|
props: {
|
|
6320
6320
|
page: {},
|
|
@@ -6322,19 +6322,19 @@ const ie = /* @__PURE__ */ h({
|
|
|
6322
6322
|
},
|
|
6323
6323
|
setup(u) {
|
|
6324
6324
|
const o = u;
|
|
6325
|
-
return
|
|
6325
|
+
return V(() => o.page), (e, s) => (r(), l("div", {
|
|
6326
6326
|
class: a(e.page.css),
|
|
6327
6327
|
id: e.page.id
|
|
6328
6328
|
}, [
|
|
6329
|
-
(r(!0), l(I, null,
|
|
6329
|
+
(r(!0), l(I, null, B(e.page.items, (n) => (r(), C(v, {
|
|
6330
6330
|
is: "sv-file-item",
|
|
6331
6331
|
key: n,
|
|
6332
6332
|
item: n,
|
|
6333
6333
|
question: e.question
|
|
6334
6334
|
}, null, 8, ["item", "question"]))), 128))
|
|
6335
|
-
], 10,
|
|
6335
|
+
], 10, or));
|
|
6336
6336
|
}
|
|
6337
|
-
}),
|
|
6337
|
+
}), nr = ["href", "title", "download"], rr = ["src"], ir = ["href", "title", "download"], ar = /* @__PURE__ */ h({
|
|
6338
6338
|
__name: "FileItem",
|
|
6339
6339
|
props: {
|
|
6340
6340
|
item: {},
|
|
@@ -6354,8 +6354,8 @@ const ie = /* @__PURE__ */ h({
|
|
|
6354
6354
|
href: o.item.content,
|
|
6355
6355
|
title: o.item.name,
|
|
6356
6356
|
download: o.item.name,
|
|
6357
|
-
style:
|
|
6358
|
-
}, H(o.item.name), 13,
|
|
6357
|
+
style: b({ width: o.question.imageWidth })
|
|
6358
|
+
}, H(o.item.name), 13, nr)
|
|
6359
6359
|
], 2)) : c("", !0),
|
|
6360
6360
|
g("div", {
|
|
6361
6361
|
class: a(o.question.getImageWrapperCss(o.item))
|
|
@@ -6363,12 +6363,12 @@ const ie = /* @__PURE__ */ h({
|
|
|
6363
6363
|
o.question.canPreviewImage(o.item) ? (r(), l("img", {
|
|
6364
6364
|
key: 0,
|
|
6365
6365
|
src: o.item.content,
|
|
6366
|
-
style:
|
|
6366
|
+
style: b({
|
|
6367
6367
|
height: o.question.imageHeight,
|
|
6368
6368
|
width: o.question.imageWidth
|
|
6369
6369
|
}),
|
|
6370
6370
|
alt: "File preview"
|
|
6371
|
-
}, null, 12,
|
|
6371
|
+
}, null, 12, rr)) : c("", !0),
|
|
6372
6372
|
o.question.defaultImage(o.item) ? (r(), C(v, {
|
|
6373
6373
|
key: 1,
|
|
6374
6374
|
is: "sv-svg-icon",
|
|
@@ -6403,43 +6403,43 @@ const ie = /* @__PURE__ */ h({
|
|
|
6403
6403
|
href: o.item.content,
|
|
6404
6404
|
title: o.item.name,
|
|
6405
6405
|
download: o.item.name,
|
|
6406
|
-
style:
|
|
6407
|
-
}, H(o.item.name), 13,
|
|
6406
|
+
style: b({ width: o.question.imageWidth })
|
|
6407
|
+
}, H(o.item.name), 13, ir)
|
|
6408
6408
|
], 2)) : c("", !0)
|
|
6409
6409
|
], 2)), [
|
|
6410
|
-
[
|
|
6410
|
+
[D, o.item]
|
|
6411
6411
|
]);
|
|
6412
6412
|
}
|
|
6413
6413
|
});
|
|
6414
|
-
|
|
6415
|
-
function
|
|
6414
|
+
Ye.platform = "vue3";
|
|
6415
|
+
function lr(u, o, e) {
|
|
6416
6416
|
u(o, e);
|
|
6417
6417
|
}
|
|
6418
|
-
function
|
|
6419
|
-
const o =
|
|
6418
|
+
function be(u) {
|
|
6419
|
+
const o = lr.bind(
|
|
6420
6420
|
void 0,
|
|
6421
6421
|
u
|
|
6422
6422
|
);
|
|
6423
|
-
o("sv-svg-bundle",
|
|
6423
|
+
o("sv-svg-bundle", sr), o("popup-survey", Le), o("survey-header", os), o("sv-logo-image", er), o("survey-page", ss), o("survey-row", ts), o("survey-question", as), o("survey-panel", vs), o("survey-element-header", ps), o("survey-string", ms), o("sv-string-viewer", Cs), o("sv-string-editor", hs), o("sv-skeleton", ws), o("survey-text", Ls), o("survey-text-input", Hs), o("survey-checkbox", Rs), o("survey-checkbox-item", $s), o("survey-radiogroup", Ds), o("survey-radiogroup-item", Ns), o("survey-signaturepad", Fs), o("survey-html", Us), o("survey-image", Gs), o("survey-expression", Js), o("survey-file", _s), o("sv-file-choose-btn", jn), o("sv-file-clean-btn", Fn), o("sv-file-preview", Qn), o("sv-file-page", tr), o("sv-file-item", ar), o("sv-file-video", Un), o("survey-imagepicker", s1), o("survey-imagepicker-item", i1), o("survey-comment", a1), o("survey-dropdown", l1), o("sv-dropdown-select", c1), o("sv-dropdown-option-item", m1), o("sv-dropdown", q1), o("survey-tagbox", w1), o("sv-tagbox", L1), o("sv-tagbox-item", S1), o("sv-tagbox-filter", H1), o("survey-ranking", B1), o("survey-ranking-item", D1), o("sv-ranking-item", A1), o("survey-rating", E1), o("sv-rating-item", F1), o("sv-rating-item-smiley", U1), o("sv-rating-item-star", j1), o("sv-rating-dropdown", Y1), o("sv-rating-dropdown-item", X1), o("survey-boolean", _1), o("sv-boolean-radio", eo), o("sv-boolean-radio-item", to), o("sv-boolean-checkbox", uo), o("survey-multipletext", vo), o("survey-multipletext-item", po), o("survey-matrix", qo), o("survey-matrix-row", ko), o("survey-matrix-cell", bo), o("survey-matrixdropdown", Mo), o("survey-matrixtable", So), o("survey-matrixheaderrequired", Vo), o("survey-matrixdropdown-cell", To), o("survey-matrixdynamic", Zo), o("sv-matrix-remove-button", Do), o("sv-matrix-drag-drop-icon", Po), o("sv-matrix-detail-button", Eo), o("survey-paneldynamic", Wo), o("survey-paneldynamicprogress", Oo), o("survey-paneldynamicprogress-v2", Fo), o("sv-paneldynamic-add-btn", Uo), o("sv-paneldynamic-next-btn", jo), o("sv-paneldynamic-prev-btn", Go), o("sv-paneldynamic-remove-btn", Xo), o("sv-paneldynamic-progress-text", Yo), o("sv-components-container", Jt), o("sv-progress-buttons", sn), o("sv-navigation-toc", on), o("sv-progress-pages", J), o("sv-progress-questions", J), o("sv-progress-correctquestions", J), o("sv-progress-requiredquestions", J), o("survey-errors", _o), o("survey-question-comment", st), o("survey-element-title", ot), o("survey-element-title-content", it), o("sv-title-actions", ut), o("sv-brand-info", Ct), o("sv-question-error", wt), o("sv-svg-icon", qt), o("sv-action-bar", kt), o("sv-action", bt), o("sv-action-bar-item", It), o("sv-action-bar-item-dropdown", Vt), o("sv-action-bar-separator", Rt), o("sv-list", Dt), o("sv-list-item-content", Et), o("sv-list-item-group", Wt), o("sv-list-item", Nt), o("sv-popup", Ot), o("sv-popup-container", Qt), o("popup-pointer", Gt), o("sv-notifier", pn), o("survey-other-choice", gn), o("sv-nav-btn", yn), o("survey-customwidget", qn), o("survey-popup-modal", wn), o("survey-composite", bn), o("survey-custom", Mn), o("sv-timerpanel", Sn), o("sv-loading-indicator", Vn), o("sv-header", Tn), o("sv-header-cell", Dn), o("sv-header-mobile", En), o("sv-template-renderer", On), o("sv-character-counter", Ln), o("sv-text-area", fn), o("survey-element", Wn), o("survey-buttongroup", Gn), o("sv-button-group-item", xn), o("survey", ie);
|
|
6424
6424
|
}
|
|
6425
|
-
|
|
6425
|
+
be(
|
|
6426
6426
|
(u, o) => z.Instance.registerComponent(u, o)
|
|
6427
6427
|
);
|
|
6428
|
-
const
|
|
6428
|
+
const cr = {
|
|
6429
6429
|
install(u) {
|
|
6430
|
-
u.component("SurveyComponent", ie), u.component("PopupSurveyComponent",
|
|
6430
|
+
u.component("SurveyComponent", ie), u.component("PopupSurveyComponent", Le), u.directive("key2click", j), be((o, e) => {
|
|
6431
6431
|
u.component(o, e), z.Instance.registerComponent(o, o);
|
|
6432
6432
|
});
|
|
6433
6433
|
}
|
|
6434
6434
|
};
|
|
6435
6435
|
export {
|
|
6436
6436
|
z as ComponentFactory,
|
|
6437
|
-
|
|
6437
|
+
Le as PopupSurveyComponent,
|
|
6438
6438
|
ie as SurveyComponent,
|
|
6439
6439
|
v as SvComponent,
|
|
6440
6440
|
j as key2ClickDirective,
|
|
6441
|
-
|
|
6442
|
-
|
|
6441
|
+
cr as surveyPlugin,
|
|
6442
|
+
V as useBase,
|
|
6443
6443
|
ee as useComputedArray,
|
|
6444
6444
|
K as useLocString,
|
|
6445
6445
|
T as useQuestion
|