survey-vue3-ui 1.9.121 → 1.9.123
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/survey-vue3-ui.es.js +689 -709
- package/survey-vue3-ui.umd.js +1 -1
package/survey-vue3-ui.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { shallowReactive as Ce, watch as
|
|
2
|
-
import { Base as $e, RendererFactory as
|
|
1
|
+
import { shallowReactive as Ce, watch as G, onBeforeUnmount as J, onMounted as H, ref as _, shallowRef as j, triggerRef as le, unref as f, isRef as be, defineComponent as h, computed as w, onUpdated as x, resolveComponent as p, openBlock as i, createElementBlock as u, normalizeClass as l, createVNode as b, createCommentVNode as d, Fragment as $, renderList as B, createBlock as q, resolveDynamicComponent as T, normalizeProps as F, mergeProps as W, withCtx as O, normalizeStyle as S, createElementVNode as c, onUnmounted as z, withDirectives as P, vShow as M, toDisplayString as R, vModelRadio as ee, vModelCheckbox as ne, vModelSelect as ke, vModelText as fe, getCurrentInstance as oe, guardReactiveProps as ye, createStaticVNode as Ie, resolveDirective as X, toRaw as we, Teleport as Se, useSlots as Re, renderSlot as Te } from "vue";
|
|
2
|
+
import { Base as $e, RendererFactory as se, DropdownListModel as _e, Helpers as De, DropdownMultiSelectListModel as Be, doKey2ClickUp as qe, createSvg as Le, ActionDropdownViewModel as Ne, getActionDropdownButtonTarget as Pe, createPopupViewModel as ae, SurveyProgressModel as ue, SurveyProgressButtonsModel as Ae, TOCModel as Me, PopupSurveyModel as He, settings as K, createDialogOptions as We, createPopupModalViewModel as Ee, ButtonGroupItemModel as Ve, SvgRegistry as Oe, SurveyModel as Fe, doKey2ClickDown as ze, doKey2ClickBlur as Ue } from "survey-core";
|
|
3
3
|
$e.createPropertiesHash = () => Ce({});
|
|
4
4
|
function Ke(r) {
|
|
5
5
|
return !r || r.__vueImplemented ? !1 : (r.createArrayCoreHandler = (s, o) => {
|
|
@@ -25,7 +25,7 @@ function de(r, s) {
|
|
|
25
25
|
}
|
|
26
26
|
function L(r, s, o) {
|
|
27
27
|
let e = !1;
|
|
28
|
-
const n =
|
|
28
|
+
const n = G(
|
|
29
29
|
r,
|
|
30
30
|
(t, a) => {
|
|
31
31
|
t && s && s(t, a), a && (de(a, e), o && o(a)), e = Ke(t);
|
|
@@ -34,7 +34,7 @@ function L(r, s, o) {
|
|
|
34
34
|
immediate: !0
|
|
35
35
|
}
|
|
36
36
|
);
|
|
37
|
-
|
|
37
|
+
J(() => {
|
|
38
38
|
const t = r();
|
|
39
39
|
t && (de(t, e), o && o(t), n());
|
|
40
40
|
});
|
|
@@ -42,7 +42,7 @@ function L(r, s, o) {
|
|
|
42
42
|
function A(r, s, o, e) {
|
|
43
43
|
L(() => r.question, o, e), H(() => {
|
|
44
44
|
r.question && r.question.afterRenderQuestionElement(s.value);
|
|
45
|
-
}),
|
|
45
|
+
}), J(() => {
|
|
46
46
|
r.question.beforeDestroyQuestionElement(s.value);
|
|
47
47
|
});
|
|
48
48
|
}
|
|
@@ -51,7 +51,7 @@ function Q(r) {
|
|
|
51
51
|
s.value = n.renderedHtml, n.onChanged = () => {
|
|
52
52
|
s.value = n.renderedHtml;
|
|
53
53
|
};
|
|
54
|
-
}, e =
|
|
54
|
+
}, e = G(
|
|
55
55
|
r,
|
|
56
56
|
(n, t) => {
|
|
57
57
|
t && (t.onChanged = () => {
|
|
@@ -59,7 +59,7 @@ function Q(r) {
|
|
|
59
59
|
},
|
|
60
60
|
{ immediate: !0 }
|
|
61
61
|
);
|
|
62
|
-
return
|
|
62
|
+
return J(() => {
|
|
63
63
|
e();
|
|
64
64
|
}), s;
|
|
65
65
|
}
|
|
@@ -79,16 +79,16 @@ const je = /* @__PURE__ */ h({
|
|
|
79
79
|
const e = w(() => s.page._showDescription), n = w(() => s.page.rows);
|
|
80
80
|
return H(() => {
|
|
81
81
|
s.survey && s.survey.afterRenderPage(o.value);
|
|
82
|
-
}),
|
|
82
|
+
}), x(() => {
|
|
83
83
|
s.survey.afterRenderPage(o.value);
|
|
84
84
|
}), (t, a) => {
|
|
85
|
-
const
|
|
85
|
+
const y = p("survey-element-title"), m = p("survey-string"), v = p("survey-errors"), g = p("survey-row");
|
|
86
86
|
return i(), u("div", {
|
|
87
87
|
class: l(t.page.cssRoot),
|
|
88
88
|
ref_key: "root",
|
|
89
89
|
ref: o
|
|
90
90
|
}, [
|
|
91
|
-
b(
|
|
91
|
+
b(y, {
|
|
92
92
|
element: t.page,
|
|
93
93
|
css: t.css
|
|
94
94
|
}, null, 8, ["element", "css"]),
|
|
@@ -100,13 +100,13 @@ const je = /* @__PURE__ */ h({
|
|
|
100
100
|
locString: t.page.locDescription
|
|
101
101
|
}, null, 8, ["locString"])
|
|
102
102
|
], 2)) : d("", !0),
|
|
103
|
-
b(
|
|
103
|
+
b(v, { element: t.page }, null, 8, ["element"]),
|
|
104
104
|
(i(!0), u($, null, B(n.value, (I, C) => (i(), q(T(t.page.getSurvey().getRowWrapperComponentName(I)), F(W({
|
|
105
105
|
key: t.page.id + "_" + C
|
|
106
106
|
}, {
|
|
107
107
|
componentData: t.page.getSurvey().getRowWrapperComponentData(I)
|
|
108
108
|
})), {
|
|
109
|
-
default:
|
|
109
|
+
default: O(() => [
|
|
110
110
|
I.visible ? (i(), q(g, {
|
|
111
111
|
key: 0,
|
|
112
112
|
row: I,
|
|
@@ -130,7 +130,7 @@ const je = /* @__PURE__ */ h({
|
|
|
130
130
|
var e = o.value;
|
|
131
131
|
e && s.survey && s.survey.afterRenderHeader(e);
|
|
132
132
|
}), (e, n) => {
|
|
133
|
-
const t =
|
|
133
|
+
const t = p("survey-element-title"), a = p("survey-string");
|
|
134
134
|
return e.survey.renderedHasHeader ? (i(), u("div", {
|
|
135
135
|
key: 0,
|
|
136
136
|
class: l(e.survey.css.header),
|
|
@@ -196,17 +196,17 @@ const je = /* @__PURE__ */ h({
|
|
|
196
196
|
}, 10);
|
|
197
197
|
}
|
|
198
198
|
}), (n, t) => {
|
|
199
|
-
const a =
|
|
199
|
+
const a = p("survey-element");
|
|
200
200
|
return i(), u("div", {
|
|
201
201
|
class: l(n.row.getRowCss()),
|
|
202
202
|
ref_key: "root",
|
|
203
203
|
ref: e
|
|
204
204
|
}, [
|
|
205
|
-
(i(!0), u($, null, B(o.value, (
|
|
205
|
+
(i(!0), u($, null, B(o.value, (y) => (i(), q(a, {
|
|
206
206
|
row: n.row,
|
|
207
207
|
css: n.css,
|
|
208
|
-
element:
|
|
209
|
-
key:
|
|
208
|
+
element: y,
|
|
209
|
+
key: y.id
|
|
210
210
|
}, null, 8, ["row", "css", "element"]))), 128))
|
|
211
211
|
], 2);
|
|
212
212
|
};
|
|
@@ -224,15 +224,15 @@ const je = /* @__PURE__ */ h({
|
|
|
224
224
|
setup(r) {
|
|
225
225
|
const s = r, o = _(null), e = w(() => s.element.showErrorOnTop), n = w(() => s.element.showErrorOnBottom), t = (C) => C.cssContent, a = () => s.element.getRootStyle();
|
|
226
226
|
L(() => s.element);
|
|
227
|
-
const
|
|
227
|
+
const y = () => {
|
|
228
228
|
o.value && s.element.afterRender(o.value);
|
|
229
|
-
}, m =
|
|
229
|
+
}, m = G(
|
|
230
230
|
() => o.value,
|
|
231
231
|
() => {
|
|
232
|
-
|
|
232
|
+
y();
|
|
233
233
|
}
|
|
234
|
-
),
|
|
235
|
-
componentName:
|
|
234
|
+
), v = w(() => s.element.customWidget ? "survey-customwidget" : s.element.isDefaultRendering() ? "survey-" + s.element.getTemplate() : s.element.getComponentName()), g = w(() => s.element.survey.getQuestionContentWrapperComponentName(s.element) || v.value), I = w(() => ({
|
|
235
|
+
componentName: v.value,
|
|
236
236
|
componentData: {
|
|
237
237
|
question: s.element,
|
|
238
238
|
data: s.element.survey.getElementWrapperComponentData(s.element)
|
|
@@ -240,14 +240,14 @@ const je = /* @__PURE__ */ h({
|
|
|
240
240
|
}));
|
|
241
241
|
return z(() => {
|
|
242
242
|
m();
|
|
243
|
-
}), (C,
|
|
244
|
-
const k =
|
|
243
|
+
}), (C, N) => {
|
|
244
|
+
const k = p("survey-errors"), D = p("survey-element-header"), E = p("survey-string"), V = p("survey-question-comment");
|
|
245
245
|
return i(), u("div", {
|
|
246
246
|
class: l(C.element.getRootCss()),
|
|
247
247
|
style: S(a()),
|
|
248
248
|
ref_key: "root",
|
|
249
249
|
ref: o,
|
|
250
|
-
onFocusin:
|
|
250
|
+
onFocusin: N[0] || (N[0] = (U) => C.element.focusIn()),
|
|
251
251
|
id: C.element.id,
|
|
252
252
|
role: C.element.ariaRole,
|
|
253
253
|
"aria-required": C.element.ariaRequired,
|
|
@@ -266,7 +266,7 @@ const je = /* @__PURE__ */ h({
|
|
|
266
266
|
element: C.element,
|
|
267
267
|
css: C.css
|
|
268
268
|
}, null, 8, ["element", "css"])) : d("", !0),
|
|
269
|
-
|
|
269
|
+
P(c("div", {
|
|
270
270
|
class: l(t(C.element) || void 0),
|
|
271
271
|
role: "presentation"
|
|
272
272
|
}, [
|
|
@@ -285,7 +285,7 @@ const je = /* @__PURE__ */ h({
|
|
|
285
285
|
locString: C.element.locCommentText
|
|
286
286
|
}, null, 8, ["locString"])
|
|
287
287
|
]),
|
|
288
|
-
b(
|
|
288
|
+
b(V, { question: C.element }, null, 8, ["question"])
|
|
289
289
|
], 2)) : d("", !0),
|
|
290
290
|
n.value ? (i(), q(k, {
|
|
291
291
|
key: 3,
|
|
@@ -332,7 +332,7 @@ const je = /* @__PURE__ */ h({
|
|
|
332
332
|
return L(() => s.element), H(() => {
|
|
333
333
|
s.element.survey && s.element.survey.afterRenderPanel(s.element, o.value);
|
|
334
334
|
}), (t, a) => {
|
|
335
|
-
const
|
|
335
|
+
const y = p("survey-errors"), m = p("survey-element-header"), v = p("survey-row"), g = p("sv-action-bar");
|
|
336
336
|
return t.element.isVisible ? (i(), u("div", {
|
|
337
337
|
key: 0,
|
|
338
338
|
class: l(t.element.getContainerCss()),
|
|
@@ -341,7 +341,7 @@ const je = /* @__PURE__ */ h({
|
|
|
341
341
|
ref_key: "root",
|
|
342
342
|
ref: o
|
|
343
343
|
}, [
|
|
344
|
-
t.element.showErrorsAbovePanel ? (i(), q(
|
|
344
|
+
t.element.showErrorsAbovePanel ? (i(), q(y, {
|
|
345
345
|
key: 0,
|
|
346
346
|
element: t.element
|
|
347
347
|
}, null, 8, ["element"])) : d("", !0),
|
|
@@ -350,7 +350,7 @@ const je = /* @__PURE__ */ h({
|
|
|
350
350
|
element: t.element,
|
|
351
351
|
css: t.css
|
|
352
352
|
}, null, 8, ["element", "css"])) : d("", !0),
|
|
353
|
-
t.element.showErrorsAbovePanel ? d("", !0) : (i(), q(
|
|
353
|
+
t.element.showErrorsAbovePanel ? d("", !0) : (i(), q(y, {
|
|
354
354
|
key: 2,
|
|
355
355
|
element: t.element
|
|
356
356
|
}, null, 8, ["element"])),
|
|
@@ -365,8 +365,8 @@ const je = /* @__PURE__ */ h({
|
|
|
365
365
|
}, {
|
|
366
366
|
componentData: t.element.getSurvey().getRowWrapperComponentData(I)
|
|
367
367
|
})), {
|
|
368
|
-
default:
|
|
369
|
-
I.visible ? (i(), q(
|
|
368
|
+
default: O(() => [
|
|
369
|
+
I.visible ? (i(), q(v, {
|
|
370
370
|
key: 0,
|
|
371
371
|
row: I,
|
|
372
372
|
survey: n.value,
|
|
@@ -393,7 +393,7 @@ const je = /* @__PURE__ */ h({
|
|
|
393
393
|
typeof s.element.clickTitleFunction == "function" && s.element.clickTitleFunction(e);
|
|
394
394
|
};
|
|
395
395
|
return (e, n) => {
|
|
396
|
-
const t =
|
|
396
|
+
const t = p("survey-element-title"), a = p("survey-string"), y = p("sv-action-bar");
|
|
397
397
|
return i(), u("div", {
|
|
398
398
|
class: l(e.element.cssHeader),
|
|
399
399
|
onClick: o
|
|
@@ -402,7 +402,7 @@ const je = /* @__PURE__ */ h({
|
|
|
402
402
|
element: e.element,
|
|
403
403
|
css: e.css
|
|
404
404
|
}, null, 8, ["element", "css"]),
|
|
405
|
-
e.element.hasDescriptionUnderTitle ?
|
|
405
|
+
e.element.hasDescriptionUnderTitle ? P((i(), u("div", {
|
|
406
406
|
key: 0,
|
|
407
407
|
class: l(e.element.cssDescription)
|
|
408
408
|
}, [
|
|
@@ -412,7 +412,7 @@ const je = /* @__PURE__ */ h({
|
|
|
412
412
|
], 2)), [
|
|
413
413
|
[M, e.element.hasDescription]
|
|
414
414
|
]) : d("", !0),
|
|
415
|
-
e.element.additionalTitleToolbar ? (i(), q(
|
|
415
|
+
e.element.additionalTitleToolbar ? (i(), q(y, {
|
|
416
416
|
key: 1,
|
|
417
417
|
model: e.element.additionalTitleToolbar
|
|
418
418
|
}, null, 8, ["model"])) : d("", !0)
|
|
@@ -493,7 +493,7 @@ const je = /* @__PURE__ */ h({
|
|
|
493
493
|
setup(r) {
|
|
494
494
|
const s = r, o = _(null);
|
|
495
495
|
return A(s, o), (e, n) => {
|
|
496
|
-
const t =
|
|
496
|
+
const t = p("survey-text-input");
|
|
497
497
|
return e.question.isReadOnlyRenderDiv() ? (i(), u("div", {
|
|
498
498
|
key: 0,
|
|
499
499
|
ref_key: "root",
|
|
@@ -527,7 +527,7 @@ const je = /* @__PURE__ */ h({
|
|
|
527
527
|
L(() => s.question);
|
|
528
528
|
const o = w(() => s.question.inputStyle);
|
|
529
529
|
return (e, n) => {
|
|
530
|
-
const t =
|
|
530
|
+
const t = p("sv-character-counter");
|
|
531
531
|
return e.question.getMaxLength() ? (i(), u("div", ys, [
|
|
532
532
|
c("input", {
|
|
533
533
|
disabled: e.question.isInputReadOnly,
|
|
@@ -612,7 +612,7 @@ const je = /* @__PURE__ */ h({
|
|
|
612
612
|
}
|
|
613
613
|
});
|
|
614
614
|
return (t, a) => {
|
|
615
|
-
const
|
|
615
|
+
const y = p("survey-other-choice");
|
|
616
616
|
return i(), u("fieldset", {
|
|
617
617
|
class: l(t.question.getSelectBaseRootCss()),
|
|
618
618
|
ref_key: "root",
|
|
@@ -643,8 +643,8 @@ const je = /* @__PURE__ */ h({
|
|
|
643
643
|
key: 4,
|
|
644
644
|
class: l(t.question.cssClasses.rootMultiColumn)
|
|
645
645
|
}, [
|
|
646
|
-
t.question.hasColumns ? (i(!0), u($, { key: 0 }, B(t.question.columns, (m,
|
|
647
|
-
key:
|
|
646
|
+
t.question.hasColumns ? (i(!0), u($, { key: 0 }, B(t.question.columns, (m, v) => (i(), u("div", {
|
|
647
|
+
key: v,
|
|
648
648
|
class: l(t.question.getColumnClass()),
|
|
649
649
|
role: "presentation"
|
|
650
650
|
}, [
|
|
@@ -656,7 +656,7 @@ const je = /* @__PURE__ */ h({
|
|
|
656
656
|
t.question.hasFootItems ? (i(!0), u($, { key: 5 }, B(t.question.footItems, (m) => (i(), q(T(e(m)), W({
|
|
657
657
|
key: m.value
|
|
658
658
|
}, n(m)), null, 16))), 128)) : d("", !0),
|
|
659
|
-
t.question.renderedValue && t.question.isOtherSelected ? (i(), q(
|
|
659
|
+
t.question.renderedValue && t.question.isOtherSelected ? (i(), q(y, {
|
|
660
660
|
key: 6,
|
|
661
661
|
question: t.question
|
|
662
662
|
}, null, 8, ["question"])) : d("", !0),
|
|
@@ -685,7 +685,7 @@ const je = /* @__PURE__ */ h({
|
|
|
685
685
|
"show-legend": !0
|
|
686
686
|
}, null, 8, ["question"]));
|
|
687
687
|
}
|
|
688
|
-
}), Is = ["name", "
|
|
688
|
+
}), Is = ["name", "checked", "value", "id", "disabled"], ws = ["xlink:href"], Ss = /* @__PURE__ */ h({
|
|
689
689
|
inheritAttrs: !1,
|
|
690
690
|
__name: "CheckboxItem",
|
|
691
691
|
props: {
|
|
@@ -694,84 +694,59 @@ const je = /* @__PURE__ */ h({
|
|
|
694
694
|
hideLabel: { type: Boolean }
|
|
695
695
|
},
|
|
696
696
|
setup(r) {
|
|
697
|
-
const s = r
|
|
698
|
-
get() {
|
|
699
|
-
return s.question.isAllSelected || "";
|
|
700
|
-
},
|
|
701
|
-
set(n) {
|
|
702
|
-
const t = s.question;
|
|
703
|
-
t.isAllSelected = !!n;
|
|
704
|
-
}
|
|
705
|
-
});
|
|
697
|
+
const s = r;
|
|
706
698
|
L(() => s.item);
|
|
707
|
-
const
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
}
|
|
713
|
-
});
|
|
714
|
-
return L(() => s.item), (n, t) => {
|
|
715
|
-
const a = v("survey-string");
|
|
699
|
+
const o = (e) => {
|
|
700
|
+
s.question.clickItemHandler(s.item, e.target.checked);
|
|
701
|
+
};
|
|
702
|
+
return (e, n) => {
|
|
703
|
+
const t = p("survey-string");
|
|
716
704
|
return i(), u("div", {
|
|
717
705
|
role: "presentation",
|
|
718
|
-
class: l(
|
|
706
|
+
class: l(e.question.getItemClass(e.item))
|
|
719
707
|
}, [
|
|
720
708
|
c("label", {
|
|
721
|
-
class: l(
|
|
709
|
+
class: l(e.question.getLabelClass(e.item))
|
|
722
710
|
}, [
|
|
723
|
-
|
|
724
|
-
key: 0,
|
|
725
|
-
type: "checkbox",
|
|
726
|
-
role: "option",
|
|
727
|
-
name: n.question.name + n.item.value,
|
|
728
|
-
value: o.value,
|
|
729
|
-
"onUpdate:modelValue": t[0] || (t[0] = (p) => o.value = p),
|
|
730
|
-
id: n.question.getItemId(n.item),
|
|
731
|
-
disabled: !n.question.getItemEnabled(n.item),
|
|
732
|
-
class: l(n.question.cssClasses.itemControl)
|
|
733
|
-
}, null, 10, Is)), [
|
|
734
|
-
[G, o.value]
|
|
735
|
-
]) : d("", !0),
|
|
736
|
-
n.item != n.question.selectAllItem ? N((i(), u("input", {
|
|
737
|
-
key: 1,
|
|
711
|
+
c("input", {
|
|
738
712
|
type: "checkbox",
|
|
739
713
|
role: "option",
|
|
740
|
-
name:
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
714
|
+
name: e.question.name + e.item.id,
|
|
715
|
+
checked: e.question.isItemSelected(e.item),
|
|
716
|
+
onInput: n[0] || (n[0] = (a) => {
|
|
717
|
+
o(a);
|
|
718
|
+
}),
|
|
719
|
+
value: e.item.value,
|
|
720
|
+
id: e.question.getItemId(e.item),
|
|
721
|
+
disabled: !e.question.getItemEnabled(e.item),
|
|
722
|
+
class: l(e.question.cssClasses.itemControl)
|
|
723
|
+
}, null, 42, Is),
|
|
724
|
+
e.question.cssClasses.materialDecorator ? (i(), u("span", {
|
|
725
|
+
key: 0,
|
|
726
|
+
class: l(e.question.cssClasses.materialDecorator)
|
|
752
727
|
}, [
|
|
753
|
-
|
|
728
|
+
e.question.itemSvgIcon ? (i(), u("svg", {
|
|
754
729
|
key: 0,
|
|
755
|
-
class: l(
|
|
730
|
+
class: l(e.question.cssClasses.itemDecorator)
|
|
756
731
|
}, [
|
|
757
732
|
c("use", {
|
|
758
|
-
"xlink:href":
|
|
759
|
-
}, null, 8,
|
|
733
|
+
"xlink:href": e.question.itemSvgIcon
|
|
734
|
+
}, null, 8, ws)
|
|
760
735
|
], 2)) : d("", !0)
|
|
761
736
|
], 2)) : d("", !0),
|
|
762
|
-
|
|
763
|
-
key:
|
|
764
|
-
class: l(
|
|
737
|
+
e.hideLabel ? d("", !0) : (i(), u("span", {
|
|
738
|
+
key: 1,
|
|
739
|
+
class: l(e.question.cssClasses.controlLabel)
|
|
765
740
|
}, [
|
|
766
|
-
b(
|
|
767
|
-
locString:
|
|
741
|
+
b(t, {
|
|
742
|
+
locString: e.item.locText
|
|
768
743
|
}, null, 8, ["locString"])
|
|
769
744
|
], 2))
|
|
770
745
|
], 2)
|
|
771
746
|
], 2);
|
|
772
747
|
};
|
|
773
748
|
}
|
|
774
|
-
}),
|
|
749
|
+
}), Rs = /* @__PURE__ */ h({
|
|
775
750
|
inheritAttrs: !1,
|
|
776
751
|
__name: "Radiogroup",
|
|
777
752
|
props: {
|
|
@@ -780,7 +755,7 @@ const je = /* @__PURE__ */ h({
|
|
|
780
755
|
setup(r) {
|
|
781
756
|
return (s, o) => (i(), q(ge, { question: s.question }, null, 8, ["question"]));
|
|
782
757
|
}
|
|
783
|
-
}),
|
|
758
|
+
}), Ts = ["name", "value", "id", "aria-describedby", "disabled"], $s = ["xlink:href"], _s = /* @__PURE__ */ h({
|
|
784
759
|
inheritAttrs: !1,
|
|
785
760
|
__name: "RadiogroupItem",
|
|
786
761
|
props: {
|
|
@@ -797,7 +772,7 @@ const je = /* @__PURE__ */ h({
|
|
|
797
772
|
}
|
|
798
773
|
});
|
|
799
774
|
return L(() => s.item), (t, a) => {
|
|
800
|
-
const
|
|
775
|
+
const y = p("survey-string");
|
|
801
776
|
return i(), u("div", {
|
|
802
777
|
role: "presentation",
|
|
803
778
|
class: l(t.question.getItemClass(t.item))
|
|
@@ -806,7 +781,7 @@ const je = /* @__PURE__ */ h({
|
|
|
806
781
|
onMousedown: a[1] || (a[1] = (m) => t.question.onMouseDown()),
|
|
807
782
|
class: l(o(t.item))
|
|
808
783
|
}, [
|
|
809
|
-
|
|
784
|
+
P(c("input", {
|
|
810
785
|
type: "radio",
|
|
811
786
|
name: t.question.questionName,
|
|
812
787
|
value: t.item.value,
|
|
@@ -815,8 +790,8 @@ const je = /* @__PURE__ */ h({
|
|
|
815
790
|
"onUpdate:modelValue": a[0] || (a[0] = (m) => n.value = m),
|
|
816
791
|
disabled: !t.question.getItemEnabled(t.item),
|
|
817
792
|
class: l(t.question.cssClasses.itemControl)
|
|
818
|
-
}, null, 10,
|
|
819
|
-
[
|
|
793
|
+
}, null, 10, Ts), [
|
|
794
|
+
[ee, n.value]
|
|
820
795
|
]),
|
|
821
796
|
t.question.cssClasses.materialDecorator ? (i(), u("span", {
|
|
822
797
|
key: 0,
|
|
@@ -828,14 +803,14 @@ const je = /* @__PURE__ */ h({
|
|
|
828
803
|
}, [
|
|
829
804
|
c("use", {
|
|
830
805
|
"xlink:href": t.question.itemSvgIcon
|
|
831
|
-
}, null, 8,
|
|
806
|
+
}, null, 8, $s)
|
|
832
807
|
], 2)) : d("", !0)
|
|
833
808
|
], 2)) : d("", !0),
|
|
834
809
|
t.hideLabel ? d("", !0) : (i(), u("span", {
|
|
835
810
|
key: 1,
|
|
836
811
|
class: l(e(t.item))
|
|
837
812
|
}, [
|
|
838
|
-
b(
|
|
813
|
+
b(y, {
|
|
839
814
|
locString: t.item.locText
|
|
840
815
|
}, null, 8, ["locString"])
|
|
841
816
|
], 2))
|
|
@@ -843,7 +818,7 @@ const je = /* @__PURE__ */ h({
|
|
|
843
818
|
], 2);
|
|
844
819
|
};
|
|
845
820
|
}
|
|
846
|
-
}),
|
|
821
|
+
}), Ds = ["src"], Bs = ["title"], Ls = { key: 0 }, Ns = /* @__PURE__ */ h({
|
|
847
822
|
inheritAttrs: !1,
|
|
848
823
|
__name: "Signaturepad",
|
|
849
824
|
props: {
|
|
@@ -852,7 +827,7 @@ const je = /* @__PURE__ */ h({
|
|
|
852
827
|
setup(r) {
|
|
853
828
|
const s = r, o = _(null);
|
|
854
829
|
return A(s, o), (e, n) => {
|
|
855
|
-
const t =
|
|
830
|
+
const t = p("survey-string"), a = p("sv-svg-icon"), y = p("sv-loading-indicator");
|
|
856
831
|
return i(), u("div", {
|
|
857
832
|
class: l(e.question.cssClasses.root),
|
|
858
833
|
ref_key: "root",
|
|
@@ -861,7 +836,7 @@ const je = /* @__PURE__ */ h({
|
|
|
861
836
|
width: e.question.renderedCanvasWidth
|
|
862
837
|
})
|
|
863
838
|
}, [
|
|
864
|
-
|
|
839
|
+
P(c("div", {
|
|
865
840
|
class: l(e.question.cssClasses.placeholder)
|
|
866
841
|
}, [
|
|
867
842
|
b(t, {
|
|
@@ -878,7 +853,7 @@ const je = /* @__PURE__ */ h({
|
|
|
878
853
|
style: S({
|
|
879
854
|
width: e.question.renderedCanvasWidth
|
|
880
855
|
})
|
|
881
|
-
}, null, 14,
|
|
856
|
+
}, null, 14, Ds)) : d("", !0),
|
|
882
857
|
c("canvas", {
|
|
883
858
|
tabindex: "0",
|
|
884
859
|
class: l(e.question.cssClasses.canvas),
|
|
@@ -897,24 +872,24 @@ const je = /* @__PURE__ */ h({
|
|
|
897
872
|
e.question.clearValue();
|
|
898
873
|
})
|
|
899
874
|
}, [
|
|
900
|
-
e.question.cssClasses.clearButtonIconId ? d("", !0) : (i(), u("span",
|
|
875
|
+
e.question.cssClasses.clearButtonIconId ? d("", !0) : (i(), u("span", Ls, "\u2716")),
|
|
901
876
|
e.question.cssClasses.clearButtonIconId ? (i(), q(a, {
|
|
902
877
|
key: 1,
|
|
903
878
|
iconName: e.question.cssClasses.clearButtonIconId,
|
|
904
879
|
size: "auto"
|
|
905
880
|
}, null, 8, ["iconName"])) : d("", !0)
|
|
906
|
-
], 10,
|
|
881
|
+
], 10, Bs)
|
|
907
882
|
], 2)) : d("", !0),
|
|
908
883
|
e.question.showLoadingIndicator ? (i(), u("div", {
|
|
909
884
|
key: 1,
|
|
910
885
|
class: l(e.question.cssClasses.loadingIndicator)
|
|
911
886
|
}, [
|
|
912
|
-
b(
|
|
887
|
+
b(y)
|
|
913
888
|
], 2)) : d("", !0)
|
|
914
889
|
], 6);
|
|
915
890
|
};
|
|
916
891
|
}
|
|
917
|
-
}),
|
|
892
|
+
}), Ps = ["innerHTML"], As = /* @__PURE__ */ h({
|
|
918
893
|
inheritAttrs: !1,
|
|
919
894
|
__name: "Html",
|
|
920
895
|
props: {
|
|
@@ -929,9 +904,9 @@ const je = /* @__PURE__ */ h({
|
|
|
929
904
|
ref: o,
|
|
930
905
|
class: l(n.question.renderCssRoot),
|
|
931
906
|
innerHTML: f(e)
|
|
932
|
-
}, null, 10,
|
|
907
|
+
}, null, 10, Ps));
|
|
933
908
|
}
|
|
934
|
-
}),
|
|
909
|
+
}), Ms = ["src", "alt", "width", "height"], Hs = ["src", "width", "height"], Ws = ["src", "width", "height"], Es = /* @__PURE__ */ h({
|
|
935
910
|
inheritAttrs: !1,
|
|
936
911
|
__name: "Image",
|
|
937
912
|
props: {
|
|
@@ -942,13 +917,13 @@ const je = /* @__PURE__ */ h({
|
|
|
942
917
|
A(s, o);
|
|
943
918
|
const e = Q(() => s.question.locImageLink);
|
|
944
919
|
return (n, t) => {
|
|
945
|
-
const a =
|
|
920
|
+
const a = p("sv-svg-icon");
|
|
946
921
|
return i(), u("div", {
|
|
947
922
|
class: l(n.question.cssClasses.root),
|
|
948
923
|
ref_key: "root",
|
|
949
924
|
ref: o
|
|
950
925
|
}, [
|
|
951
|
-
n.question.renderedMode === "image" ?
|
|
926
|
+
n.question.renderedMode === "image" ? P((i(), u("img", {
|
|
952
927
|
key: 0,
|
|
953
928
|
class: l(n.question.getImageCss()),
|
|
954
929
|
src: f(e),
|
|
@@ -960,16 +935,16 @@ const je = /* @__PURE__ */ h({
|
|
|
960
935
|
width: n.question.renderedStyleWidth,
|
|
961
936
|
height: n.question.renderedStyleHeight
|
|
962
937
|
}),
|
|
963
|
-
onLoad: t[0] || (t[0] = (
|
|
938
|
+
onLoad: t[0] || (t[0] = (y) => {
|
|
964
939
|
n.question.onLoadHandler();
|
|
965
940
|
}),
|
|
966
|
-
onError: t[1] || (t[1] = (
|
|
941
|
+
onError: t[1] || (t[1] = (y) => {
|
|
967
942
|
n.question.onErrorHandler();
|
|
968
943
|
})
|
|
969
|
-
}, null, 46,
|
|
944
|
+
}, null, 46, Ms)), [
|
|
970
945
|
[M, f(e) && !n.question.contentNotLoaded]
|
|
971
946
|
]) : d("", !0),
|
|
972
|
-
n.question.renderedMode === "video" ?
|
|
947
|
+
n.question.renderedMode === "video" ? P((i(), u("video", {
|
|
973
948
|
key: 1,
|
|
974
949
|
controls: "",
|
|
975
950
|
class: l(n.question.getImageCss()),
|
|
@@ -981,13 +956,13 @@ const je = /* @__PURE__ */ h({
|
|
|
981
956
|
width: n.question.renderedStyleWidth,
|
|
982
957
|
height: n.question.renderedStyleHeight
|
|
983
958
|
}),
|
|
984
|
-
onLoadedmetadata: t[2] || (t[2] = (
|
|
959
|
+
onLoadedmetadata: t[2] || (t[2] = (y) => {
|
|
985
960
|
n.question.onLoadHandler();
|
|
986
961
|
}),
|
|
987
|
-
onError: t[3] || (t[3] = (
|
|
962
|
+
onError: t[3] || (t[3] = (y) => {
|
|
988
963
|
n.question.onErrorHandler();
|
|
989
964
|
})
|
|
990
|
-
}, null, 46,
|
|
965
|
+
}, null, 46, Hs)), [
|
|
991
966
|
[M, f(e) && !n.question.contentNotLoaded]
|
|
992
967
|
]) : d("", !0),
|
|
993
968
|
n.question.renderedMode === "youtube" ? (i(), u("iframe", {
|
|
@@ -1001,7 +976,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1001
976
|
width: n.question.renderedStyleWidth,
|
|
1002
977
|
height: n.question.renderedStyleHeight
|
|
1003
978
|
})
|
|
1004
|
-
}, null, 14,
|
|
979
|
+
}, null, 14, Ws)) : d("", !0),
|
|
1005
980
|
!f(e) || n.question.contentNotLoaded ? (i(), u("div", {
|
|
1006
981
|
key: 3,
|
|
1007
982
|
class: l(n.question.cssClasses.noImage)
|
|
@@ -1014,7 +989,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1014
989
|
], 2);
|
|
1015
990
|
};
|
|
1016
991
|
}
|
|
1017
|
-
}),
|
|
992
|
+
}), Vs = /* @__PURE__ */ h({
|
|
1018
993
|
inheritAttrs: !1,
|
|
1019
994
|
__name: "Expression",
|
|
1020
995
|
props: {
|
|
@@ -1028,7 +1003,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1028
1003
|
ref: o
|
|
1029
1004
|
}, R(e.question.formatedValue), 3));
|
|
1030
1005
|
}
|
|
1031
|
-
}),
|
|
1006
|
+
}), Os = ["id", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "multiple", "title", "accept", "capture"], Fs = ["id", "multiple", "placeholder"], zs = /* @__PURE__ */ h({
|
|
1032
1007
|
inheritAttrs: !1,
|
|
1033
1008
|
__name: "File",
|
|
1034
1009
|
props: {
|
|
@@ -1037,7 +1012,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1037
1012
|
setup(r) {
|
|
1038
1013
|
const s = r, o = _(null);
|
|
1039
1014
|
return A(s, o), (e, n) => {
|
|
1040
|
-
const t =
|
|
1015
|
+
const t = p("survey-string"), a = p("sv-file-choose-btn"), y = p("sv-action-bar"), m = p("sv-file-clean-btn"), v = p("sv-loading-indicator"), g = p("sv-file-video"), I = p("sv-file-preview");
|
|
1041
1016
|
return i(), u("div", {
|
|
1042
1017
|
class: l(e.question.fileRootCss),
|
|
1043
1018
|
ref_key: "root",
|
|
@@ -1058,7 +1033,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1058
1033
|
title: e.question.inputTitle,
|
|
1059
1034
|
accept: e.question.acceptedTypes,
|
|
1060
1035
|
capture: e.question.renderCapture
|
|
1061
|
-
}, null, 42,
|
|
1036
|
+
}, null, 42, Os)) : d("", !0),
|
|
1062
1037
|
e.question.isReadOnly ? (i(), u("input", {
|
|
1063
1038
|
key: 1,
|
|
1064
1039
|
type: "file",
|
|
@@ -1068,7 +1043,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1068
1043
|
multiple: e.question.allowMultiple,
|
|
1069
1044
|
placeholder: e.question.title,
|
|
1070
1045
|
style: { color: "transparent" }
|
|
1071
|
-
}, null, 10,
|
|
1046
|
+
}, null, 10, Fs)) : d("", !0),
|
|
1072
1047
|
c("div", {
|
|
1073
1048
|
class: l(e.question.cssClasses.dragArea),
|
|
1074
1049
|
onDrop: n[1] || (n[1] = (...C) => e.question.onDrop && e.question.onDrop(...C)),
|
|
@@ -1094,7 +1069,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1094
1069
|
key: 0,
|
|
1095
1070
|
data: { question: e.question }
|
|
1096
1071
|
}, null, 8, ["data"])) : d("", !0),
|
|
1097
|
-
e.question.actionsContainerVisible ? (i(), q(
|
|
1072
|
+
e.question.actionsContainerVisible ? (i(), q(y, {
|
|
1098
1073
|
key: 1,
|
|
1099
1074
|
model: e.question.actionsContainer
|
|
1100
1075
|
}, null, 8, ["model"])) : d("", !0),
|
|
@@ -1113,7 +1088,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1113
1088
|
key: 2,
|
|
1114
1089
|
class: l(e.question.cssClasses.loadingIndicator)
|
|
1115
1090
|
}, [
|
|
1116
|
-
b(
|
|
1091
|
+
b(v)
|
|
1117
1092
|
], 2)) : d("", !0),
|
|
1118
1093
|
e.question.isPlayingVideo ? (i(), q(g, {
|
|
1119
1094
|
key: 3,
|
|
@@ -1128,7 +1103,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1128
1103
|
question: e.question,
|
|
1129
1104
|
css: e.question.showRemoveButtonBottom
|
|
1130
1105
|
}, null, 8, ["question", "css"])) : d("", !0),
|
|
1131
|
-
e.question.fileNavigatorVisible ? (i(), q(
|
|
1106
|
+
e.question.fileNavigatorVisible ? (i(), q(y, {
|
|
1132
1107
|
key: 6,
|
|
1133
1108
|
model: e.question.fileNavigator
|
|
1134
1109
|
}, null, 8, ["model"])) : d("", !0)
|
|
@@ -1136,7 +1111,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1136
1111
|
], 2);
|
|
1137
1112
|
};
|
|
1138
1113
|
}
|
|
1139
|
-
}),
|
|
1114
|
+
}), Us = { class: "sv-hidden" }, me = "survey-imagepicker-item", Ks = /* @__PURE__ */ h({
|
|
1140
1115
|
inheritAttrs: !1,
|
|
1141
1116
|
__name: "Imagepicker",
|
|
1142
1117
|
props: {
|
|
@@ -1158,22 +1133,22 @@ const je = /* @__PURE__ */ h({
|
|
|
1158
1133
|
ref_key: "root",
|
|
1159
1134
|
ref: o
|
|
1160
1135
|
}, [
|
|
1161
|
-
c("legend",
|
|
1162
|
-
t.question.hasColumns ? d("", !0) : (i(!0), u($, { key: 0 }, B(t.question.visibleChoices, (
|
|
1163
|
-
key:
|
|
1164
|
-
}, n(
|
|
1165
|
-
t.question.hasColumns ? (i(!0), u($, { key: 1 }, B(t.question.columns, (
|
|
1136
|
+
c("legend", Us, R(t.question.locTitle.renderedHtml), 1),
|
|
1137
|
+
t.question.hasColumns ? d("", !0) : (i(!0), u($, { key: 0 }, B(t.question.visibleChoices, (y) => (i(), q(T(e(y)), W({
|
|
1138
|
+
key: y.value
|
|
1139
|
+
}, n(y)), null, 16))), 128)),
|
|
1140
|
+
t.question.hasColumns ? (i(!0), u($, { key: 1 }, B(t.question.columns, (y, m) => (i(), u("div", {
|
|
1166
1141
|
class: l(t.question.getColumnClass()),
|
|
1167
1142
|
key: m,
|
|
1168
1143
|
role: "presentation"
|
|
1169
1144
|
}, [
|
|
1170
|
-
(i(!0), u($, null, B(
|
|
1171
|
-
key:
|
|
1172
|
-
}, n(
|
|
1145
|
+
(i(!0), u($, null, B(y, (v) => (i(), q(T(e(v)), W({
|
|
1146
|
+
key: v.value
|
|
1147
|
+
}, n(v)), null, 16))), 128))
|
|
1173
1148
|
], 2))), 128)) : d("", !0)
|
|
1174
1149
|
], 2));
|
|
1175
1150
|
}
|
|
1176
|
-
}),
|
|
1151
|
+
}), js = ["name", "value", "id", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Qs = ["name", "value", "id", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Gs = ["src", "width", "height", "alt"], Js = ["src", "width", "height"], Xs = /* @__PURE__ */ h({
|
|
1177
1152
|
inheritAttrs: !1,
|
|
1178
1153
|
__name: "ImagepickerItem",
|
|
1179
1154
|
props: {
|
|
@@ -1185,14 +1160,14 @@ const je = /* @__PURE__ */ h({
|
|
|
1185
1160
|
L(() => s.item);
|
|
1186
1161
|
const e = Q(() => s.item.locImageLink);
|
|
1187
1162
|
return (n, t) => {
|
|
1188
|
-
const a =
|
|
1163
|
+
const a = p("sv-svg-icon"), y = p("survey-string");
|
|
1189
1164
|
return i(), u("div", {
|
|
1190
1165
|
class: l(o(n.item))
|
|
1191
1166
|
}, [
|
|
1192
1167
|
c("label", {
|
|
1193
1168
|
class: l(n.question.cssClasses.label)
|
|
1194
1169
|
}, [
|
|
1195
|
-
n.question.multiSelect ?
|
|
1170
|
+
n.question.multiSelect ? P((i(), u("input", {
|
|
1196
1171
|
key: 0,
|
|
1197
1172
|
type: "checkbox",
|
|
1198
1173
|
name: n.question.questionName,
|
|
@@ -1205,9 +1180,9 @@ const je = /* @__PURE__ */ h({
|
|
|
1205
1180
|
"aria-invalid": n.question.ariaInvalid,
|
|
1206
1181
|
"aria-describedby": n.question.ariaDescribedBy,
|
|
1207
1182
|
class: l(n.question.cssClasses.itemControl)
|
|
1208
|
-
}, null, 10,
|
|
1209
|
-
[
|
|
1210
|
-
]) :
|
|
1183
|
+
}, null, 10, js)), [
|
|
1184
|
+
[ne, n.question.value]
|
|
1185
|
+
]) : P((i(), u("input", {
|
|
1211
1186
|
key: 1,
|
|
1212
1187
|
type: "radio",
|
|
1213
1188
|
name: n.question.questionName,
|
|
@@ -1220,8 +1195,8 @@ const je = /* @__PURE__ */ h({
|
|
|
1220
1195
|
"aria-invalid": n.question.ariaInvalid,
|
|
1221
1196
|
"aria-describedby": n.question.ariaDescribedBy,
|
|
1222
1197
|
class: l(n.question.cssClasses.itemControl)
|
|
1223
|
-
}, null, 10,
|
|
1224
|
-
[
|
|
1198
|
+
}, null, 10, Qs)), [
|
|
1199
|
+
[ee, n.question.value]
|
|
1225
1200
|
]),
|
|
1226
1201
|
c("div", {
|
|
1227
1202
|
class: l(n.question.cssClasses.itemDecorator)
|
|
@@ -1254,7 +1229,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1254
1229
|
onError: t[3] || (t[3] = (m) => {
|
|
1255
1230
|
n.item.onErrorHandler();
|
|
1256
1231
|
})
|
|
1257
|
-
}, null, 46,
|
|
1232
|
+
}, null, 46, Gs)) : d("", !0),
|
|
1258
1233
|
f(e) && !n.item.contentNotLoaded && n.question.contentMode === "video" ? (i(), u("video", {
|
|
1259
1234
|
key: 2,
|
|
1260
1235
|
controls: "",
|
|
@@ -1269,7 +1244,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1269
1244
|
onError: t[5] || (t[5] = (m) => {
|
|
1270
1245
|
n.item.onErrorHandler();
|
|
1271
1246
|
})
|
|
1272
|
-
}, null, 46,
|
|
1247
|
+
}, null, 46, Js)) : d("", !0),
|
|
1273
1248
|
!f(e) || n.item.contentNotLoaded ? (i(), u("div", {
|
|
1274
1249
|
key: 3,
|
|
1275
1250
|
class: l(n.question.cssClasses.itemNoImage),
|
|
@@ -1290,7 +1265,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1290
1265
|
key: 0,
|
|
1291
1266
|
class: l(n.question.cssClasses.itemText)
|
|
1292
1267
|
}, [
|
|
1293
|
-
b(
|
|
1268
|
+
b(y, {
|
|
1294
1269
|
locString: n.item.locText
|
|
1295
1270
|
}, null, 8, ["locString"])
|
|
1296
1271
|
], 2)) : d("", !0)
|
|
@@ -1299,7 +1274,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1299
1274
|
], 2);
|
|
1300
1275
|
};
|
|
1301
1276
|
}
|
|
1302
|
-
}),
|
|
1277
|
+
}), Ys = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], Zs = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], xs = /* @__PURE__ */ h({
|
|
1303
1278
|
inheritAttrs: !1,
|
|
1304
1279
|
__name: "Comment",
|
|
1305
1280
|
props: {
|
|
@@ -1314,7 +1289,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1314
1289
|
t.value = n.target.value;
|
|
1315
1290
|
};
|
|
1316
1291
|
return (n, t) => {
|
|
1317
|
-
const a =
|
|
1292
|
+
const a = p("sv-character-counter");
|
|
1318
1293
|
return !n.question.isReadOnlyRenderDiv() && !n.question.getMaxLength() ? (i(), u("textarea", {
|
|
1319
1294
|
key: 0,
|
|
1320
1295
|
ref_key: "root",
|
|
@@ -1329,11 +1304,11 @@ const je = /* @__PURE__ */ h({
|
|
|
1329
1304
|
placeholder: n.question.renderedPlaceholder,
|
|
1330
1305
|
class: l(n.question.className),
|
|
1331
1306
|
onChange: e,
|
|
1332
|
-
onInput: t[0] || (t[0] = (
|
|
1333
|
-
n.question.onInput(
|
|
1307
|
+
onInput: t[0] || (t[0] = (y) => {
|
|
1308
|
+
n.question.onInput(y);
|
|
1334
1309
|
}),
|
|
1335
|
-
onKeydown: t[1] || (t[1] = (
|
|
1336
|
-
n.question.onKeyDown(
|
|
1310
|
+
onKeydown: t[1] || (t[1] = (y) => {
|
|
1311
|
+
n.question.onKeyDown(y);
|
|
1337
1312
|
}),
|
|
1338
1313
|
"aria-required": n.question.a11y_input_ariaRequired,
|
|
1339
1314
|
"aria-label": n.question.a11y_input_ariaLabel,
|
|
@@ -1341,7 +1316,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1341
1316
|
"aria-invalid": n.question.a11y_input_ariaInvalid,
|
|
1342
1317
|
"aria-describedby": n.question.a11y_input_ariaDescribedBy,
|
|
1343
1318
|
style: S({ resize: n.question.resizeStyle })
|
|
1344
|
-
}, null, 46,
|
|
1319
|
+
}, null, 46, Ys)) : !n.question.isReadOnlyRenderDiv() && n.question.getMaxLength() ? (i(), u("div", {
|
|
1345
1320
|
key: 1,
|
|
1346
1321
|
ref_key: "root",
|
|
1347
1322
|
ref: o
|
|
@@ -1357,11 +1332,11 @@ const je = /* @__PURE__ */ h({
|
|
|
1357
1332
|
placeholder: n.question.renderedPlaceholder,
|
|
1358
1333
|
class: l(n.question.className),
|
|
1359
1334
|
onChange: e,
|
|
1360
|
-
onInput: t[2] || (t[2] = (
|
|
1361
|
-
n.question.onInput(
|
|
1335
|
+
onInput: t[2] || (t[2] = (y) => {
|
|
1336
|
+
n.question.onInput(y);
|
|
1362
1337
|
}),
|
|
1363
|
-
onKeydown: t[3] || (t[3] = (
|
|
1364
|
-
n.question.onKeyDown(
|
|
1338
|
+
onKeydown: t[3] || (t[3] = (y) => {
|
|
1339
|
+
n.question.onKeyDown(y);
|
|
1365
1340
|
}),
|
|
1366
1341
|
"aria-required": n.question.a11y_input_ariaRequired,
|
|
1367
1342
|
"aria-label": n.question.a11y_input_ariaLabel,
|
|
@@ -1369,7 +1344,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1369
1344
|
"aria-invalid": n.question.a11y_input_ariaInvalid,
|
|
1370
1345
|
"aria-describedby": n.question.a11y_input_ariaDescribedBy,
|
|
1371
1346
|
style: S({ resize: n.question.resizeStyle })
|
|
1372
|
-
}, null, 46,
|
|
1347
|
+
}, null, 46, Zs),
|
|
1373
1348
|
b(a, {
|
|
1374
1349
|
counter: n.question.characterCounter,
|
|
1375
1350
|
remainingCharacterCounter: n.question.cssClasses.remainingCharacterCounter
|
|
@@ -1381,7 +1356,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1381
1356
|
}, R(n.question.value), 513));
|
|
1382
1357
|
};
|
|
1383
1358
|
}
|
|
1384
|
-
}),
|
|
1359
|
+
}), en = /* @__PURE__ */ h({
|
|
1385
1360
|
inheritAttrs: !1,
|
|
1386
1361
|
__name: "Dropdown",
|
|
1387
1362
|
props: {
|
|
@@ -1390,7 +1365,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1390
1365
|
setup(r) {
|
|
1391
1366
|
const s = r, o = _(null);
|
|
1392
1367
|
return A(s, o), (e, n) => {
|
|
1393
|
-
const t =
|
|
1368
|
+
const t = p("sv-dropdown"), a = p("survey-other-choice");
|
|
1394
1369
|
return i(), u("div", {
|
|
1395
1370
|
class: l(e.question.renderCssRoot),
|
|
1396
1371
|
ref_key: "root",
|
|
@@ -1404,16 +1379,16 @@ const je = /* @__PURE__ */ h({
|
|
|
1404
1379
|
], 2);
|
|
1405
1380
|
};
|
|
1406
1381
|
}
|
|
1407
|
-
}),
|
|
1382
|
+
}), sn = ["id", "autocomplete", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "required"], nn = {
|
|
1408
1383
|
key: 0,
|
|
1409
1384
|
value: ""
|
|
1410
|
-
},
|
|
1411
|
-
|
|
1385
|
+
}, on = ["id"];
|
|
1386
|
+
se.Instance.registerRenderer(
|
|
1412
1387
|
"dropdown",
|
|
1413
1388
|
"select",
|
|
1414
1389
|
"sv-dropdown-select"
|
|
1415
1390
|
);
|
|
1416
|
-
const
|
|
1391
|
+
const tn = /* @__PURE__ */ h({
|
|
1417
1392
|
inheritAttrs: !1,
|
|
1418
1393
|
__name: "DropdownSelect",
|
|
1419
1394
|
props: {
|
|
@@ -1432,12 +1407,12 @@ const rn = /* @__PURE__ */ h({
|
|
|
1432
1407
|
return (a = s.question.value) != null ? a : "";
|
|
1433
1408
|
},
|
|
1434
1409
|
set(a) {
|
|
1435
|
-
const
|
|
1436
|
-
a === "" ?
|
|
1410
|
+
const y = s.question;
|
|
1411
|
+
a === "" ? y.renderedValue = void 0 : y.renderedValue = a;
|
|
1437
1412
|
}
|
|
1438
1413
|
});
|
|
1439
|
-
return (a,
|
|
1440
|
-
const m =
|
|
1414
|
+
return (a, y) => {
|
|
1415
|
+
const m = p("sv-dropdown-option-item"), v = p("sv-svg-icon"), g = p("survey-other-choice");
|
|
1441
1416
|
return i(), u("div", {
|
|
1442
1417
|
class: l(a.question.renderCssRoot),
|
|
1443
1418
|
ref_key: "root",
|
|
@@ -1451,10 +1426,10 @@ const rn = /* @__PURE__ */ h({
|
|
|
1451
1426
|
disabled: "",
|
|
1452
1427
|
id: a.question.inputId,
|
|
1453
1428
|
class: l(a.question.getControlClass())
|
|
1454
|
-
}, R(a.question.readOnlyText), 11,
|
|
1429
|
+
}, R(a.question.readOnlyText), 11, on)) : P((i(), u("select", {
|
|
1455
1430
|
key: 0,
|
|
1456
1431
|
id: a.question.inputId,
|
|
1457
|
-
"onUpdate:modelValue":
|
|
1432
|
+
"onUpdate:modelValue": y[0] || (y[0] = (I) => t.value = I),
|
|
1458
1433
|
onClick: e,
|
|
1459
1434
|
onKeyup: n,
|
|
1460
1435
|
autocomplete: a.question.autocomplete,
|
|
@@ -1465,19 +1440,19 @@ const rn = /* @__PURE__ */ h({
|
|
|
1465
1440
|
"aria-describedby": a.question.ariaDescribedBy,
|
|
1466
1441
|
required: a.question.isRequired
|
|
1467
1442
|
}, [
|
|
1468
|
-
a.question.allowClear ? (i(), u("option",
|
|
1443
|
+
a.question.allowClear ? (i(), u("option", nn, R(a.question.placeholder), 1)) : d("", !0),
|
|
1469
1444
|
(i(!0), u($, null, B(a.question.visibleChoices, (I) => (i(), q(m, {
|
|
1470
1445
|
item: I,
|
|
1471
1446
|
key: I.id
|
|
1472
1447
|
}, null, 8, ["item"]))), 128))
|
|
1473
|
-
], 42,
|
|
1448
|
+
], 42, sn)), [
|
|
1474
1449
|
[ke, t.value]
|
|
1475
1450
|
]),
|
|
1476
1451
|
a.question.cssClasses.chevronButtonIconId ? (i(), u("div", {
|
|
1477
1452
|
key: 2,
|
|
1478
1453
|
class: l(a.question.cssClasses.chevronButton)
|
|
1479
1454
|
}, [
|
|
1480
|
-
b(
|
|
1455
|
+
b(v, {
|
|
1481
1456
|
class: l(a.question.cssClasses.chevronButtonSvg),
|
|
1482
1457
|
iconName: a.question.cssClasses.chevronButtonIconId,
|
|
1483
1458
|
size: "auto"
|
|
@@ -1491,7 +1466,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1491
1466
|
], 2);
|
|
1492
1467
|
};
|
|
1493
1468
|
}
|
|
1494
|
-
}),
|
|
1469
|
+
}), rn = ["value", "disabled"], ln = /* @__PURE__ */ h({
|
|
1495
1470
|
__name: "OptionItem",
|
|
1496
1471
|
props: {
|
|
1497
1472
|
item: {}
|
|
@@ -1501,9 +1476,9 @@ const rn = /* @__PURE__ */ h({
|
|
|
1501
1476
|
return L(() => s.item), (e, n) => (i(), u("option", {
|
|
1502
1477
|
value: e.item.value,
|
|
1503
1478
|
disabled: !e.item.isEnabled
|
|
1504
|
-
}, R(f(o)), 9,
|
|
1479
|
+
}, R(f(o)), 9, rn));
|
|
1505
1480
|
}
|
|
1506
|
-
}),
|
|
1481
|
+
}), an = ["id", "disabled", "tabindex", "role", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], un = { style: { visibility: "hidden" } }, dn = ["disabled", "inputmode", "role", "id", "tabindex", "readonly", "aria-expanded", "aria-controls", "aria-label", "aria-labelledby", "aria-activedescendant", "placeholder"], mn = ["id"], cn = /* @__PURE__ */ h({
|
|
1507
1482
|
__name: "Dropdown",
|
|
1508
1483
|
props: {
|
|
1509
1484
|
question: {}
|
|
@@ -1521,7 +1496,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1521
1496
|
}, a = (k) => {
|
|
1522
1497
|
var D;
|
|
1523
1498
|
(D = e.value) == null || D.onClear(k);
|
|
1524
|
-
},
|
|
1499
|
+
}, y = (k) => {
|
|
1525
1500
|
var D;
|
|
1526
1501
|
(D = e.value) == null || D.keyHandler(k);
|
|
1527
1502
|
}, m = () => {
|
|
@@ -1529,7 +1504,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1529
1504
|
const k = o.value, D = e.value.inputStringRendered;
|
|
1530
1505
|
De.isTwoValueEquals(D, k.value, !1, !0, !1) || (k.value = e.value.inputStringRendered);
|
|
1531
1506
|
}
|
|
1532
|
-
},
|
|
1507
|
+
}, v = (k) => {
|
|
1533
1508
|
var D;
|
|
1534
1509
|
(D = e.value) == null || D.onBlur(k), m();
|
|
1535
1510
|
}, g = (k) => {
|
|
@@ -1539,9 +1514,9 @@ const rn = /* @__PURE__ */ h({
|
|
|
1539
1514
|
e.value.inputStringRendered = k.target.value;
|
|
1540
1515
|
}, C = w(
|
|
1541
1516
|
() => s.question.showSelectedItemLocText
|
|
1542
|
-
),
|
|
1543
|
-
return L(() => e.value),
|
|
1544
|
-
const E =
|
|
1517
|
+
), N = w(() => s.question.selectedItemLocText);
|
|
1518
|
+
return L(() => e.value), x(m), H(m), (k, D) => {
|
|
1519
|
+
const E = p("survey-string"), V = p("sv-svg-icon"), U = p("sv-popup");
|
|
1545
1520
|
return i(), u("div", {
|
|
1546
1521
|
class: l(k.question.cssClasses.selectWrapper),
|
|
1547
1522
|
onClick: n
|
|
@@ -1551,8 +1526,8 @@ const rn = /* @__PURE__ */ h({
|
|
|
1551
1526
|
id: k.question.inputId,
|
|
1552
1527
|
disabled: k.question.isInputReadOnly ? !0 : null,
|
|
1553
1528
|
tabindex: e.value.noTabIndex ? void 0 : 0,
|
|
1554
|
-
onKeydown:
|
|
1555
|
-
onBlur:
|
|
1529
|
+
onKeydown: y,
|
|
1530
|
+
onBlur: v,
|
|
1556
1531
|
class: l(k.question.getControlClass()),
|
|
1557
1532
|
role: k.question.ariaRole,
|
|
1558
1533
|
"aria-required": k.question.ariaRequired,
|
|
@@ -1575,13 +1550,13 @@ const rn = /* @__PURE__ */ h({
|
|
|
1575
1550
|
}, [
|
|
1576
1551
|
C.value ? (i(), q(E, {
|
|
1577
1552
|
key: 0,
|
|
1578
|
-
locString:
|
|
1553
|
+
locString: N.value
|
|
1579
1554
|
}, null, 8, ["locString"])) : d("", !0),
|
|
1580
1555
|
e.value.showHintString ? (i(), u("div", {
|
|
1581
1556
|
key: 1,
|
|
1582
1557
|
class: l(k.question.cssClasses.hintSuffix)
|
|
1583
1558
|
}, [
|
|
1584
|
-
c("span",
|
|
1559
|
+
c("span", un, R(e.value.inputStringRendered), 1),
|
|
1585
1560
|
c("span", null, R(e.value.hintStringSuffix), 1)
|
|
1586
1561
|
], 2)) : d("", !0),
|
|
1587
1562
|
k.question.showInputFieldComponent ? (i(), q(T(k.question.inputFieldComponentName), {
|
|
@@ -1608,17 +1583,17 @@ const rn = /* @__PURE__ */ h({
|
|
|
1608
1583
|
"aria-activedescendant": e.value.ariaActivedescendant,
|
|
1609
1584
|
placeholder: e.value.placeholderRendered,
|
|
1610
1585
|
onInput: I,
|
|
1611
|
-
onBlur:
|
|
1586
|
+
onBlur: v,
|
|
1612
1587
|
onFocus: g
|
|
1613
|
-
}, null, 42,
|
|
1588
|
+
}, null, 42, dn)
|
|
1614
1589
|
], 2),
|
|
1615
|
-
k.question.allowClear && k.question.cssClasses.cleanButtonIconId ?
|
|
1590
|
+
k.question.allowClear && k.question.cssClasses.cleanButtonIconId ? P((i(), u("div", {
|
|
1616
1591
|
key: 1,
|
|
1617
1592
|
class: l(k.question.cssClasses.cleanButton),
|
|
1618
1593
|
onClick: a,
|
|
1619
1594
|
"aria-hidden": "true"
|
|
1620
1595
|
}, [
|
|
1621
|
-
b(
|
|
1596
|
+
b(V, {
|
|
1622
1597
|
class: l(k.question.cssClasses.cleanButtonSvg),
|
|
1623
1598
|
iconName: k.question.cssClasses.cleanButtonIconId,
|
|
1624
1599
|
title: k.question.clearCaption,
|
|
@@ -1627,7 +1602,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1627
1602
|
], 2)), [
|
|
1628
1603
|
[M, k.question.showClearButton]
|
|
1629
1604
|
]) : d("", !0)
|
|
1630
|
-
], 42,
|
|
1605
|
+
], 42, an)),
|
|
1631
1606
|
k.question.isReadOnly ? (i(), u("div", {
|
|
1632
1607
|
key: 2,
|
|
1633
1608
|
disabled: "",
|
|
@@ -1639,7 +1614,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1639
1614
|
locString: k.question.selectedItemLocText
|
|
1640
1615
|
}, null, 8, ["locString"])) : d("", !0),
|
|
1641
1616
|
c("div", null, R(k.question.readOnlyText), 1)
|
|
1642
|
-
], 10,
|
|
1617
|
+
], 10, mn)) : (i(), q(U, {
|
|
1643
1618
|
key: 1,
|
|
1644
1619
|
model: k.question.dropdownListModel.popupModel
|
|
1645
1620
|
}, null, 8, ["model"])),
|
|
@@ -1649,7 +1624,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1649
1624
|
onPointerdown: t,
|
|
1650
1625
|
"aria-hidden": "true"
|
|
1651
1626
|
}, [
|
|
1652
|
-
b(
|
|
1627
|
+
b(V, {
|
|
1653
1628
|
class: l(k.question.cssClasses.chevronButtonSvg),
|
|
1654
1629
|
iconName: k.question.cssClasses.chevronButtonIconId,
|
|
1655
1630
|
size: "auto"
|
|
@@ -1658,7 +1633,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1658
1633
|
], 2);
|
|
1659
1634
|
};
|
|
1660
1635
|
}
|
|
1661
|
-
}),
|
|
1636
|
+
}), pn = /* @__PURE__ */ h({
|
|
1662
1637
|
inheritAttrs: !1,
|
|
1663
1638
|
__name: "Tagbox",
|
|
1664
1639
|
props: {
|
|
@@ -1667,7 +1642,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1667
1642
|
setup(r) {
|
|
1668
1643
|
const s = r, o = _(null);
|
|
1669
1644
|
return A(s, o), (e, n) => {
|
|
1670
|
-
const t =
|
|
1645
|
+
const t = p("sv-tagbox"), a = p("survey-other-choice");
|
|
1671
1646
|
return i(), u("div", {
|
|
1672
1647
|
class: l(e.question.renderCssRoot),
|
|
1673
1648
|
ref_key: "root",
|
|
@@ -1681,111 +1656,114 @@ const rn = /* @__PURE__ */ h({
|
|
|
1681
1656
|
], 2);
|
|
1682
1657
|
};
|
|
1683
1658
|
}
|
|
1684
|
-
}),
|
|
1659
|
+
}), vn = ["id", "tabindex", "disabled", "role", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], yn = ["id"], qn = /* @__PURE__ */ h({
|
|
1685
1660
|
__name: "Tagbox",
|
|
1686
1661
|
props: {
|
|
1687
1662
|
question: {}
|
|
1688
1663
|
},
|
|
1689
1664
|
setup(r) {
|
|
1690
1665
|
const s = r, o = w(() => {
|
|
1691
|
-
const
|
|
1692
|
-
return
|
|
1693
|
-
}), e = (
|
|
1666
|
+
const v = s.question;
|
|
1667
|
+
return v.dropdownListModel || (v.dropdownListModel = new Be(v)), s.question.dropdownListModel;
|
|
1668
|
+
}), e = (v) => {
|
|
1694
1669
|
var g;
|
|
1695
|
-
(g = o.value) == null || g.onClick(
|
|
1696
|
-
}, n = (
|
|
1670
|
+
(g = o.value) == null || g.onClick(v);
|
|
1671
|
+
}, n = (v) => {
|
|
1697
1672
|
var g;
|
|
1698
|
-
(g = o.value) == null || g.chevronPointerDown(
|
|
1699
|
-
}, t = (
|
|
1673
|
+
(g = o.value) == null || g.chevronPointerDown(v);
|
|
1674
|
+
}, t = (v) => {
|
|
1700
1675
|
var g;
|
|
1701
|
-
(g = o.value) == null || g.onClear(
|
|
1702
|
-
}, a = (
|
|
1676
|
+
(g = o.value) == null || g.onClear(v);
|
|
1677
|
+
}, a = (v) => {
|
|
1703
1678
|
var g;
|
|
1704
|
-
(g = o.value) == null || g.keyHandler(
|
|
1705
|
-
},
|
|
1679
|
+
(g = o.value) == null || g.keyHandler(v);
|
|
1680
|
+
}, y = (v) => {
|
|
1706
1681
|
var g;
|
|
1707
|
-
(g = o.value) == null || g.onBlur(
|
|
1682
|
+
(g = o.value) == null || g.onBlur(v);
|
|
1708
1683
|
}, m = w(() => s.question.selectedChoices);
|
|
1709
|
-
return L(() => o.value), (
|
|
1710
|
-
const I =
|
|
1684
|
+
return L(() => o.value), (v, g) => {
|
|
1685
|
+
const I = p("sv-tagbox-item"), C = p("sv-tagbox-filter"), N = p("sv-svg-icon"), k = p("sv-popup"), D = p("survey-string");
|
|
1711
1686
|
return i(), u("div", {
|
|
1712
|
-
class: l(
|
|
1687
|
+
class: l(v.question.cssClasses.selectWrapper),
|
|
1713
1688
|
onClick: e
|
|
1714
1689
|
}, [
|
|
1715
|
-
|
|
1690
|
+
v.question.isReadOnly ? d("", !0) : (i(), u("div", {
|
|
1716
1691
|
key: 0,
|
|
1717
|
-
id:
|
|
1692
|
+
id: v.question.inputId,
|
|
1718
1693
|
tabindex: o.value.noTabIndex ? void 0 : 0,
|
|
1719
|
-
disabled:
|
|
1694
|
+
disabled: v.question.isInputReadOnly ? !0 : null,
|
|
1720
1695
|
onKeydown: a,
|
|
1721
|
-
onBlur:
|
|
1722
|
-
class: l(
|
|
1723
|
-
role:
|
|
1724
|
-
"aria-required":
|
|
1725
|
-
"aria-label":
|
|
1726
|
-
"aria-invalid":
|
|
1727
|
-
"aria-describedby":
|
|
1728
|
-
"aria-expanded":
|
|
1696
|
+
onBlur: y,
|
|
1697
|
+
class: l(v.question.getControlClass()),
|
|
1698
|
+
role: v.question.ariaRole,
|
|
1699
|
+
"aria-required": v.question.ariaRequired,
|
|
1700
|
+
"aria-label": v.question.ariaLabel,
|
|
1701
|
+
"aria-invalid": v.question.ariaInvalid,
|
|
1702
|
+
"aria-describedby": v.question.ariaDescribedBy,
|
|
1703
|
+
"aria-expanded": v.question.ariaExpanded === null ? void 0 : v.question.ariaExpanded === "true",
|
|
1729
1704
|
"aria-controls": o.value.listElementId,
|
|
1730
1705
|
"aria-activedescendant": o.value.ariaActivedescendant,
|
|
1731
|
-
required:
|
|
1706
|
+
required: v.question.isRequired ? !0 : null
|
|
1732
1707
|
}, [
|
|
1733
1708
|
c("div", {
|
|
1734
|
-
class: l(
|
|
1709
|
+
class: l(v.question.cssClasses.controlValue)
|
|
1735
1710
|
}, [
|
|
1736
|
-
(i(!0), u($, null, B(m.value, (
|
|
1737
|
-
item:
|
|
1738
|
-
question:
|
|
1739
|
-
key: "item" +
|
|
1711
|
+
(i(!0), u($, null, B(m.value, (E, V) => (i(), q(I, {
|
|
1712
|
+
item: E,
|
|
1713
|
+
question: v.question,
|
|
1714
|
+
key: "item" + V
|
|
1740
1715
|
}, null, 8, ["item", "question"]))), 128)),
|
|
1741
1716
|
b(C, {
|
|
1742
1717
|
model: o.value,
|
|
1743
|
-
question:
|
|
1718
|
+
question: v.question
|
|
1744
1719
|
}, null, 8, ["model", "question"])
|
|
1745
1720
|
], 2),
|
|
1746
|
-
|
|
1721
|
+
v.question.allowClear && v.question.cssClasses.cleanButtonIconId ? P((i(), u("div", {
|
|
1747
1722
|
key: 0,
|
|
1748
|
-
class: l(
|
|
1723
|
+
class: l(v.question.cssClasses.cleanButton),
|
|
1749
1724
|
onClick: t,
|
|
1750
1725
|
"aria-hidden": "true"
|
|
1751
1726
|
}, [
|
|
1752
|
-
b(
|
|
1753
|
-
class: l(
|
|
1754
|
-
iconName:
|
|
1755
|
-
title:
|
|
1727
|
+
b(N, {
|
|
1728
|
+
class: l(v.question.cssClasses.cleanButtonSvg),
|
|
1729
|
+
iconName: v.question.cssClasses.cleanButtonIconId,
|
|
1730
|
+
title: v.question.clearCaption,
|
|
1756
1731
|
size: "auto"
|
|
1757
1732
|
}, null, 8, ["class", "iconName", "title"])
|
|
1758
1733
|
], 2)), [
|
|
1759
|
-
[M,
|
|
1734
|
+
[M, v.question.showClearButton]
|
|
1760
1735
|
]) : d("", !0)
|
|
1761
|
-
], 42,
|
|
1762
|
-
|
|
1736
|
+
], 42, vn)),
|
|
1737
|
+
v.question.isReadOnly ? (i(), u("div", {
|
|
1763
1738
|
key: 2,
|
|
1764
1739
|
disabled: "",
|
|
1765
|
-
id:
|
|
1766
|
-
class: l(
|
|
1740
|
+
id: v.question.inputId,
|
|
1741
|
+
class: l(v.question.getControlClass())
|
|
1767
1742
|
}, [
|
|
1768
|
-
|
|
1769
|
-
|
|
1743
|
+
v.question.locReadOnlyText ? (i(), q(D, {
|
|
1744
|
+
key: 0,
|
|
1745
|
+
locString: v.question.locReadOnlyText
|
|
1746
|
+
}, null, 8, ["locString"])) : d("", !0)
|
|
1747
|
+
], 10, yn)) : (i(), q(k, {
|
|
1770
1748
|
key: 1,
|
|
1771
1749
|
model: o.value.popupModel
|
|
1772
1750
|
}, null, 8, ["model"])),
|
|
1773
|
-
|
|
1751
|
+
v.question.cssClasses.chevronButtonIconId ? (i(), u("div", {
|
|
1774
1752
|
key: 3,
|
|
1775
|
-
class: l(
|
|
1753
|
+
class: l(v.question.cssClasses.chevronButton),
|
|
1776
1754
|
onPointerdown: n,
|
|
1777
1755
|
"aria-hidden": "true"
|
|
1778
1756
|
}, [
|
|
1779
|
-
b(
|
|
1780
|
-
class: l(
|
|
1781
|
-
iconName:
|
|
1757
|
+
b(N, {
|
|
1758
|
+
class: l(v.question.cssClasses.chevronButtonSvg),
|
|
1759
|
+
iconName: v.question.cssClasses.chevronButtonIconId,
|
|
1782
1760
|
size: "auto"
|
|
1783
1761
|
}, null, 8, ["class", "iconName"])
|
|
1784
1762
|
], 34)) : d("", !0)
|
|
1785
1763
|
], 2);
|
|
1786
1764
|
};
|
|
1787
1765
|
}
|
|
1788
|
-
}),
|
|
1766
|
+
}), gn = { style: { visibility: "hidden" } }, hn = ["placeholder", "disabled", "inputmode", "role", "aria-expanded", "aria-controls", "aria-label", "aria-labelledby", "aria-activedescendant", "id", "readonly", "size"], Cn = /* @__PURE__ */ h({
|
|
1789
1767
|
__name: "TagboxFilter",
|
|
1790
1768
|
props: {
|
|
1791
1769
|
question: {},
|
|
@@ -1793,8 +1771,8 @@ const rn = /* @__PURE__ */ h({
|
|
|
1793
1771
|
},
|
|
1794
1772
|
setup(r) {
|
|
1795
1773
|
const s = r, o = (a) => {
|
|
1796
|
-
const
|
|
1797
|
-
|
|
1774
|
+
const y = s.model;
|
|
1775
|
+
y.inputStringRendered = a.target.value;
|
|
1798
1776
|
}, e = (a) => {
|
|
1799
1777
|
s.model.inputKeyHandler(a);
|
|
1800
1778
|
}, n = (a) => {
|
|
@@ -1802,8 +1780,8 @@ const rn = /* @__PURE__ */ h({
|
|
|
1802
1780
|
}, t = (a) => {
|
|
1803
1781
|
s.model.onFocus(a);
|
|
1804
1782
|
};
|
|
1805
|
-
return L(() => s.model), (a,
|
|
1806
|
-
const m =
|
|
1783
|
+
return L(() => s.model), (a, y) => {
|
|
1784
|
+
const m = p("survey-string");
|
|
1807
1785
|
return i(), u("div", {
|
|
1808
1786
|
class: l(a.question.cssClasses.hint)
|
|
1809
1787
|
}, [
|
|
@@ -1824,13 +1802,13 @@ const rn = /* @__PURE__ */ h({
|
|
|
1824
1802
|
key: 1,
|
|
1825
1803
|
class: l(a.question.cssClasses.hintSuffix)
|
|
1826
1804
|
}, [
|
|
1827
|
-
c("span",
|
|
1805
|
+
c("span", gn, R(a.model.inputStringRendered), 1),
|
|
1828
1806
|
c("span", null, R(a.model.hintStringSuffix), 1)
|
|
1829
1807
|
], 2)) : d("", !0),
|
|
1830
|
-
|
|
1808
|
+
P(c("input", {
|
|
1831
1809
|
type: "text",
|
|
1832
1810
|
autocomplete: "off",
|
|
1833
|
-
"onUpdate:modelValue":
|
|
1811
|
+
"onUpdate:modelValue": y[0] || (y[0] = (v) => a.model.inputStringRendered = v),
|
|
1834
1812
|
class: l(a.question.cssClasses.filterStringInput),
|
|
1835
1813
|
placeholder: a.model.filterStringPlaceholder,
|
|
1836
1814
|
disabled: a.question.isInputReadOnly,
|
|
@@ -1848,14 +1826,14 @@ const rn = /* @__PURE__ */ h({
|
|
|
1848
1826
|
onKeydown: e,
|
|
1849
1827
|
onBlur: n,
|
|
1850
1828
|
onFocus: t
|
|
1851
|
-
}, null, 42,
|
|
1829
|
+
}, null, 42, hn), [
|
|
1852
1830
|
[fe, a.model.inputStringRendered]
|
|
1853
1831
|
])
|
|
1854
1832
|
], 2)
|
|
1855
1833
|
], 2);
|
|
1856
1834
|
};
|
|
1857
1835
|
}
|
|
1858
|
-
}),
|
|
1836
|
+
}), bn = { class: "sv-tagbox__item-text" }, kn = /* @__PURE__ */ h({
|
|
1859
1837
|
__name: "TagboxItem",
|
|
1860
1838
|
props: {
|
|
1861
1839
|
question: {},
|
|
@@ -1866,12 +1844,12 @@ const rn = /* @__PURE__ */ h({
|
|
|
1866
1844
|
s.question.dropdownListModel.deselectItem(s.item.value), e.stopPropagation();
|
|
1867
1845
|
};
|
|
1868
1846
|
return L(() => s.item), (e, n) => {
|
|
1869
|
-
const t =
|
|
1847
|
+
const t = p("survey-string"), a = p("sv-svg-icon");
|
|
1870
1848
|
return i(), u("div", {
|
|
1871
1849
|
class: "sv-tagbox__item",
|
|
1872
1850
|
key: e.item.key
|
|
1873
1851
|
}, [
|
|
1874
|
-
c("div",
|
|
1852
|
+
c("div", bn, [
|
|
1875
1853
|
b(t, {
|
|
1876
1854
|
locString: e.item.locText
|
|
1877
1855
|
}, null, 8, ["locString"])
|
|
@@ -1889,7 +1867,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1889
1867
|
]);
|
|
1890
1868
|
};
|
|
1891
1869
|
}
|
|
1892
|
-
}),
|
|
1870
|
+
}), fn = /* @__PURE__ */ h({
|
|
1893
1871
|
inheritAttrs: !1,
|
|
1894
1872
|
__name: "Ranking",
|
|
1895
1873
|
props: {
|
|
@@ -1898,7 +1876,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1898
1876
|
setup(r) {
|
|
1899
1877
|
const s = r, o = _(null);
|
|
1900
1878
|
A(s, o);
|
|
1901
|
-
const e = (t) => s.question.getItemValueWrapperComponentName(t) || "survey-ranking-item", n = (t, a,
|
|
1879
|
+
const e = (t) => s.question.getItemValueWrapperComponentName(t) || "survey-ranking-item", n = (t, a, y) => ({
|
|
1902
1880
|
componentName: s.question.getPropertyByName("itemComponent").isDefaultValue(
|
|
1903
1881
|
s.question.itemComponent
|
|
1904
1882
|
) ? "survey-ranking-item" : s.question.itemComponent,
|
|
@@ -1906,33 +1884,33 @@ const rn = /* @__PURE__ */ h({
|
|
|
1906
1884
|
question: s.question,
|
|
1907
1885
|
item: t,
|
|
1908
1886
|
index: a,
|
|
1909
|
-
unrankedItem:
|
|
1887
|
+
unrankedItem: y,
|
|
1910
1888
|
data: s.question.getItemValueWrapperComponentData(t)
|
|
1911
1889
|
}
|
|
1912
1890
|
});
|
|
1913
1891
|
return (t, a) => {
|
|
1914
|
-
const
|
|
1892
|
+
const y = p("survey-string");
|
|
1915
1893
|
return i(), u("div", {
|
|
1916
1894
|
class: l(t.question.rootClass),
|
|
1917
1895
|
ref_key: "root",
|
|
1918
1896
|
ref: o
|
|
1919
1897
|
}, [
|
|
1920
|
-
t.question.selectToRankEnabled ? d("", !0) : (i(!0), u($, { key: 0 }, B(t.question.rankingChoices, (m,
|
|
1921
|
-
key: m.value + "-" +
|
|
1922
|
-
}, n(m,
|
|
1898
|
+
t.question.selectToRankEnabled ? d("", !0) : (i(!0), u($, { key: 0 }, B(t.question.rankingChoices, (m, v) => (i(), q(T(e(m)), W({
|
|
1899
|
+
key: m.value + "-" + v + "-item"
|
|
1900
|
+
}, n(m, v)), null, 16))), 128)),
|
|
1923
1901
|
t.question.selectToRankEnabled ? (i(), u("div", {
|
|
1924
1902
|
key: 1,
|
|
1925
1903
|
class: l(t.question.getContainerClasses("from")),
|
|
1926
1904
|
"data-ranking": "from-container"
|
|
1927
1905
|
}, [
|
|
1928
|
-
(i(!0), u($, null, B(t.question.unRankingChoices, (m,
|
|
1929
|
-
key: m.value + "-" +
|
|
1930
|
-
}, n(m,
|
|
1906
|
+
(i(!0), u($, null, B(t.question.unRankingChoices, (m, v) => (i(), q(T(e(m)), W({
|
|
1907
|
+
key: m.value + "-" + v + "-item"
|
|
1908
|
+
}, n(m, v, !0)), null, 16))), 128)),
|
|
1931
1909
|
t.question.unRankingChoices.length === 0 ? (i(), u("div", {
|
|
1932
1910
|
key: 0,
|
|
1933
1911
|
class: l(t.question.cssClasses.containerPlaceholder)
|
|
1934
1912
|
}, [
|
|
1935
|
-
b(
|
|
1913
|
+
b(y, {
|
|
1936
1914
|
locString: t.question.locSelectToRankEmptyRankedAreaText
|
|
1937
1915
|
}, null, 8, ["locString"])
|
|
1938
1916
|
], 2)) : d("", !0)
|
|
@@ -1946,14 +1924,14 @@ const rn = /* @__PURE__ */ h({
|
|
|
1946
1924
|
class: l(t.question.getContainerClasses("to")),
|
|
1947
1925
|
"data-ranking": "to-container"
|
|
1948
1926
|
}, [
|
|
1949
|
-
(i(!0), u($, null, B(t.question.rankingChoices, (m,
|
|
1950
|
-
key: m.value + "-" +
|
|
1951
|
-
}, n(m,
|
|
1927
|
+
(i(!0), u($, null, B(t.question.rankingChoices, (m, v) => (i(), q(T(e(m)), W({
|
|
1928
|
+
key: m.value + "-" + v + "-item"
|
|
1929
|
+
}, n(m, v)), null, 16))), 128)),
|
|
1952
1930
|
t.question.rankingChoices.length === 0 ? (i(), u("div", {
|
|
1953
1931
|
key: 0,
|
|
1954
1932
|
class: l(t.question.cssClasses.containerPlaceholder)
|
|
1955
1933
|
}, [
|
|
1956
|
-
b(
|
|
1934
|
+
b(y, {
|
|
1957
1935
|
locString: t.question.locSelectToRankEmptyUnrankedAreaText
|
|
1958
1936
|
}, null, 8, ["locString"])
|
|
1959
1937
|
], 2)) : d("", !0)
|
|
@@ -1961,10 +1939,10 @@ const rn = /* @__PURE__ */ h({
|
|
|
1961
1939
|
], 2);
|
|
1962
1940
|
};
|
|
1963
1941
|
}
|
|
1964
|
-
}),
|
|
1942
|
+
}), In = ["tabindex", "data-sv-drop-target-ranking-item"], wn = {
|
|
1965
1943
|
tabindex: "-1",
|
|
1966
1944
|
style: { outline: "none" }
|
|
1967
|
-
},
|
|
1945
|
+
}, Sn = ["xlink:href"], Rn = ["xlink:href"], Tn = ["xlink:href"], $n = /* @__PURE__ */ h({
|
|
1968
1946
|
inheritAttrs: !1,
|
|
1969
1947
|
__name: "RankingItem",
|
|
1970
1948
|
props: {
|
|
@@ -1976,7 +1954,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1976
1954
|
setup(r) {
|
|
1977
1955
|
const s = r, o = w(() => s.question.getNumberByIndex(s.index));
|
|
1978
1956
|
return L(() => s.item), (e, n) => {
|
|
1979
|
-
const t =
|
|
1957
|
+
const t = p("survey-string");
|
|
1980
1958
|
return i(), u("div", {
|
|
1981
1959
|
tabindex: e.question.getItemTabIndex(e.item),
|
|
1982
1960
|
"data-sv-drop-target-ranking-item": e.index,
|
|
@@ -1993,7 +1971,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1993
1971
|
);
|
|
1994
1972
|
})
|
|
1995
1973
|
}, [
|
|
1996
|
-
c("div",
|
|
1974
|
+
c("div", wn, [
|
|
1997
1975
|
c("div", {
|
|
1998
1976
|
class: l(e.question.cssClasses.itemGhostNode)
|
|
1999
1977
|
}, null, 2),
|
|
@@ -2008,14 +1986,14 @@ const rn = /* @__PURE__ */ h({
|
|
|
2008
1986
|
}, [
|
|
2009
1987
|
c("use", {
|
|
2010
1988
|
"xlink:href": e.question.dragDropSvgIcon
|
|
2011
|
-
}, null, 8,
|
|
1989
|
+
}, null, 8, Sn)
|
|
2012
1990
|
], 2)),
|
|
2013
1991
|
(i(), u("svg", {
|
|
2014
1992
|
class: l(e.question.getIconFocusCss())
|
|
2015
1993
|
}, [
|
|
2016
1994
|
c("use", {
|
|
2017
1995
|
"xlink:href": e.question.arrowsSvgIcon
|
|
2018
|
-
}, null, 8,
|
|
1996
|
+
}, null, 8, Rn)
|
|
2019
1997
|
], 2))
|
|
2020
1998
|
], 2),
|
|
2021
1999
|
!e.unrankedItem && o.value ? (i(), u("div", {
|
|
@@ -2028,7 +2006,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2028
2006
|
(i(), u("svg", null, [
|
|
2029
2007
|
c("use", {
|
|
2030
2008
|
"xlink:href": e.question.dashSvgIcon
|
|
2031
|
-
}, null, 8,
|
|
2009
|
+
}, null, 8, Tn)
|
|
2032
2010
|
]))
|
|
2033
2011
|
], 2)),
|
|
2034
2012
|
c("div", {
|
|
@@ -2040,13 +2018,13 @@ const rn = /* @__PURE__ */ h({
|
|
|
2040
2018
|
], 2)
|
|
2041
2019
|
], 2)
|
|
2042
2020
|
])
|
|
2043
|
-
], 42,
|
|
2021
|
+
], 42, In);
|
|
2044
2022
|
};
|
|
2045
2023
|
}
|
|
2046
|
-
}),
|
|
2024
|
+
}), _n = { role: "radiogroup" }, Dn = /* @__PURE__ */ c("legend", {
|
|
2047
2025
|
role: "presentation",
|
|
2048
2026
|
class: "sv-hidden"
|
|
2049
|
-
}, null, -1),
|
|
2027
|
+
}, null, -1), Bn = /* @__PURE__ */ h({
|
|
2050
2028
|
inheritAttrs: !1,
|
|
2051
2029
|
__name: "Rating",
|
|
2052
2030
|
props: {
|
|
@@ -2057,14 +2035,14 @@ const rn = /* @__PURE__ */ h({
|
|
|
2057
2035
|
A(s, o);
|
|
2058
2036
|
const e = (n) => s.question.getInputId(n);
|
|
2059
2037
|
return (n, t) => {
|
|
2060
|
-
const a =
|
|
2038
|
+
const a = p("survey-string");
|
|
2061
2039
|
return i(), u("div", {
|
|
2062
2040
|
class: l(n.question.ratingRootCss),
|
|
2063
2041
|
ref_key: "root",
|
|
2064
2042
|
ref: o
|
|
2065
2043
|
}, [
|
|
2066
|
-
c("fieldset",
|
|
2067
|
-
|
|
2044
|
+
c("fieldset", _n, [
|
|
2045
|
+
Dn,
|
|
2068
2046
|
n.question.hasMinLabel ? (i(), u("span", {
|
|
2069
2047
|
key: 0,
|
|
2070
2048
|
class: l(n.question.cssClasses.minText)
|
|
@@ -2073,9 +2051,9 @@ const rn = /* @__PURE__ */ h({
|
|
|
2073
2051
|
locString: n.question.locMinRateDescription
|
|
2074
2052
|
}, null, 8, ["locString"])
|
|
2075
2053
|
], 2)) : d("", !0),
|
|
2076
|
-
(i(!0), u($, null, B(n.question.renderedRateItems, (
|
|
2054
|
+
(i(!0), u($, null, B(n.question.renderedRateItems, (y, m) => (i(), q(T(n.question.itemComponent), {
|
|
2077
2055
|
key: e(m),
|
|
2078
|
-
item:
|
|
2056
|
+
item: y,
|
|
2079
2057
|
index: m,
|
|
2080
2058
|
question: n.question
|
|
2081
2059
|
}, null, 8, ["item", "index", "question"]))), 128)),
|
|
@@ -2091,7 +2069,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2091
2069
|
], 2);
|
|
2092
2070
|
};
|
|
2093
2071
|
}
|
|
2094
|
-
}),
|
|
2072
|
+
}), Ln = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Nn = /* @__PURE__ */ h({
|
|
2095
2073
|
__name: "RatingItem",
|
|
2096
2074
|
props: {
|
|
2097
2075
|
question: {},
|
|
@@ -2101,7 +2079,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2101
2079
|
setup(r) {
|
|
2102
2080
|
const s = r;
|
|
2103
2081
|
return L(() => s.item), (o, e) => {
|
|
2104
|
-
const n =
|
|
2082
|
+
const n = p("survey-string");
|
|
2105
2083
|
return i(), u("label", {
|
|
2106
2084
|
key: o.item.value,
|
|
2107
2085
|
onMousedown: e[1] || (e[1] = (t) => o.question.onMouseDown()),
|
|
@@ -2119,7 +2097,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2119
2097
|
"aria-label": o.question.ariaLabel,
|
|
2120
2098
|
"aria-invalid": o.question.ariaInvalid,
|
|
2121
2099
|
"aria-describedby": o.question.ariaDescribedBy
|
|
2122
|
-
}, null, 8,
|
|
2100
|
+
}, null, 8, Ln),
|
|
2123
2101
|
c("span", {
|
|
2124
2102
|
class: l(o.question.cssClasses.itemText)
|
|
2125
2103
|
}, [
|
|
@@ -2130,7 +2108,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2130
2108
|
], 34);
|
|
2131
2109
|
};
|
|
2132
2110
|
}
|
|
2133
|
-
}),
|
|
2111
|
+
}), Pn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], An = /* @__PURE__ */ h({
|
|
2134
2112
|
__name: "RatingItemSmiley",
|
|
2135
2113
|
props: {
|
|
2136
2114
|
question: {},
|
|
@@ -2140,7 +2118,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2140
2118
|
setup(r) {
|
|
2141
2119
|
const s = r;
|
|
2142
2120
|
return L(() => s.item), (o, e) => {
|
|
2143
|
-
const n =
|
|
2121
|
+
const n = p("sv-svg-icon");
|
|
2144
2122
|
return i(), u("label", {
|
|
2145
2123
|
key: o.item.value,
|
|
2146
2124
|
onMousedown: e[1] || (e[1] = (t) => o.question.onMouseDown()),
|
|
@@ -2161,7 +2139,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2161
2139
|
"aria-label": o.question.ariaLabel,
|
|
2162
2140
|
"aria-invalid": o.question.ariaInvalid,
|
|
2163
2141
|
"aria-describedby": o.question.ariaDescribedBy
|
|
2164
|
-
}, null, 8,
|
|
2142
|
+
}, null, 8, Pn),
|
|
2165
2143
|
b(n, {
|
|
2166
2144
|
iconName: o.question.getItemSmileyIconName(o.item.itemValue),
|
|
2167
2145
|
size: "auto",
|
|
@@ -2170,7 +2148,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2170
2148
|
], 38);
|
|
2171
2149
|
};
|
|
2172
2150
|
}
|
|
2173
|
-
}),
|
|
2151
|
+
}), Mn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Hn = /* @__PURE__ */ h({
|
|
2174
2152
|
__name: "RatingItemStar",
|
|
2175
2153
|
props: {
|
|
2176
2154
|
question: {},
|
|
@@ -2180,7 +2158,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2180
2158
|
setup(r) {
|
|
2181
2159
|
const s = r;
|
|
2182
2160
|
return L(() => s.item), (o, e) => {
|
|
2183
|
-
const n =
|
|
2161
|
+
const n = p("sv-svg-icon");
|
|
2184
2162
|
return i(), u("label", {
|
|
2185
2163
|
key: o.item.value,
|
|
2186
2164
|
onMousedown: e[1] || (e[1] = (t) => o.question.onMouseDown()),
|
|
@@ -2200,7 +2178,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2200
2178
|
"aria-label": o.question.ariaLabel,
|
|
2201
2179
|
"aria-invalid": o.question.ariaInvalid,
|
|
2202
2180
|
"aria-describedby": o.question.ariaDescribedBy
|
|
2203
|
-
}, null, 8,
|
|
2181
|
+
}, null, 8, Mn),
|
|
2204
2182
|
b(n, {
|
|
2205
2183
|
class: l("sv-star"),
|
|
2206
2184
|
iconName: o.question.itemStarIcon,
|
|
@@ -2216,10 +2194,10 @@ const rn = /* @__PURE__ */ h({
|
|
|
2216
2194
|
], 34);
|
|
2217
2195
|
};
|
|
2218
2196
|
}
|
|
2219
|
-
}),
|
|
2197
|
+
}), Wn = { class: "sd-rating-dropdown-item" }, En = { class: "sd-rating-dropdown-item_text" }, Vn = {
|
|
2220
2198
|
key: 0,
|
|
2221
2199
|
class: "sd-rating-dropdown-item_description"
|
|
2222
|
-
},
|
|
2200
|
+
}, On = /* @__PURE__ */ h({
|
|
2223
2201
|
__name: "RatingDropdownItem",
|
|
2224
2202
|
props: {
|
|
2225
2203
|
item: {}
|
|
@@ -2227,10 +2205,10 @@ const rn = /* @__PURE__ */ h({
|
|
|
2227
2205
|
setup(r) {
|
|
2228
2206
|
const s = r;
|
|
2229
2207
|
return L(() => s.item), (o, e) => {
|
|
2230
|
-
const n =
|
|
2231
|
-
return i(), u("div",
|
|
2232
|
-
c("span",
|
|
2233
|
-
o.item.description ? (i(), u("div",
|
|
2208
|
+
const n = p("survey-string");
|
|
2209
|
+
return i(), u("div", Wn, [
|
|
2210
|
+
c("span", En, R(o.item.title), 1),
|
|
2211
|
+
o.item.description ? (i(), u("div", Vn, [
|
|
2234
2212
|
b(n, {
|
|
2235
2213
|
locString: o.item.description
|
|
2236
2214
|
}, null, 8, ["locString"])
|
|
@@ -2239,12 +2217,12 @@ const rn = /* @__PURE__ */ h({
|
|
|
2239
2217
|
};
|
|
2240
2218
|
}
|
|
2241
2219
|
});
|
|
2242
|
-
|
|
2220
|
+
se.Instance.registerRenderer(
|
|
2243
2221
|
"rating",
|
|
2244
2222
|
"dropdown",
|
|
2245
2223
|
"sv-rating-dropdown"
|
|
2246
2224
|
);
|
|
2247
|
-
const
|
|
2225
|
+
const Fn = /* @__PURE__ */ h({
|
|
2248
2226
|
inheritAttrs: !1,
|
|
2249
2227
|
__name: "RatingDropdown",
|
|
2250
2228
|
props: {
|
|
@@ -2253,7 +2231,7 @@ const zn = /* @__PURE__ */ h({
|
|
|
2253
2231
|
setup(r) {
|
|
2254
2232
|
const s = r, o = _(null);
|
|
2255
2233
|
return A(s, o), (e, n) => {
|
|
2256
|
-
const t =
|
|
2234
|
+
const t = p("sv-dropdown");
|
|
2257
2235
|
return i(), u("div", {
|
|
2258
2236
|
class: l(e.question.cssClasses.rootDropdown),
|
|
2259
2237
|
ref_key: "root",
|
|
@@ -2263,7 +2241,7 @@ const zn = /* @__PURE__ */ h({
|
|
|
2263
2241
|
], 2);
|
|
2264
2242
|
};
|
|
2265
2243
|
}
|
|
2266
|
-
}),
|
|
2244
|
+
}), zn = ["name", "value", "id", ".indeterminate", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Un = /* @__PURE__ */ h({
|
|
2267
2245
|
inheritAttrs: !1,
|
|
2268
2246
|
__name: "BooleanSwitch",
|
|
2269
2247
|
props: {
|
|
@@ -2279,21 +2257,21 @@ const zn = /* @__PURE__ */ h({
|
|
|
2279
2257
|
};
|
|
2280
2258
|
return (t, a) => {
|
|
2281
2259
|
var m;
|
|
2282
|
-
const
|
|
2260
|
+
const y = p("survey-string");
|
|
2283
2261
|
return i(), u("div", {
|
|
2284
2262
|
class: l(t.question.cssClasses.root),
|
|
2285
2263
|
ref_key: "root",
|
|
2286
2264
|
ref: o,
|
|
2287
|
-
onKeydown: a[4] || (a[4] = (
|
|
2265
|
+
onKeydown: a[4] || (a[4] = (v) => t.question.onKeyDownCore(v))
|
|
2288
2266
|
}, [
|
|
2289
2267
|
c("label", {
|
|
2290
2268
|
class: l(t.question.getItemCss())
|
|
2291
2269
|
}, [
|
|
2292
|
-
|
|
2270
|
+
P(c("input", {
|
|
2293
2271
|
type: "checkbox",
|
|
2294
2272
|
name: t.question.name,
|
|
2295
2273
|
value: (m = t.question.booleanValue) != null ? m : "",
|
|
2296
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
2274
|
+
"onUpdate:modelValue": a[0] || (a[0] = (v) => t.question.booleanValue = v),
|
|
2297
2275
|
class: l(t.question.cssClasses.control),
|
|
2298
2276
|
id: t.question.inputId,
|
|
2299
2277
|
".indeterminate": t.question.isIndeterminate,
|
|
@@ -2302,24 +2280,24 @@ const zn = /* @__PURE__ */ h({
|
|
|
2302
2280
|
"aria-label": t.question.ariaLabel,
|
|
2303
2281
|
"aria-invalid": t.question.ariaInvalid,
|
|
2304
2282
|
"aria-describedby": t.question.ariaDescribedBy
|
|
2305
|
-
}, null, 42,
|
|
2306
|
-
[
|
|
2283
|
+
}, null, 42, zn), [
|
|
2284
|
+
[ne, t.question.booleanValue]
|
|
2307
2285
|
]),
|
|
2308
2286
|
c("div", {
|
|
2309
2287
|
class: l(t.question.cssClasses.sliderGhost),
|
|
2310
|
-
onClick: a[1] || (a[1] = (
|
|
2288
|
+
onClick: a[1] || (a[1] = (v) => e(v, !1))
|
|
2311
2289
|
}, [
|
|
2312
2290
|
c("span", {
|
|
2313
2291
|
class: l(t.question.getLabelCss(!1))
|
|
2314
2292
|
}, [
|
|
2315
|
-
b(
|
|
2293
|
+
b(y, {
|
|
2316
2294
|
locString: t.question.locLabelFalse
|
|
2317
2295
|
}, null, 8, ["locString"])
|
|
2318
2296
|
], 2)
|
|
2319
2297
|
], 2),
|
|
2320
2298
|
c("div", {
|
|
2321
2299
|
class: l(t.question.cssClasses.switch),
|
|
2322
|
-
onClick: a[2] || (a[2] = (
|
|
2300
|
+
onClick: a[2] || (a[2] = (v) => n(v))
|
|
2323
2301
|
}, [
|
|
2324
2302
|
c("span", {
|
|
2325
2303
|
class: l(t.question.cssClasses.slider)
|
|
@@ -2328,7 +2306,7 @@ const zn = /* @__PURE__ */ h({
|
|
|
2328
2306
|
key: 0,
|
|
2329
2307
|
class: l(t.question.cssClasses.sliderText)
|
|
2330
2308
|
}, [
|
|
2331
|
-
b(
|
|
2309
|
+
b(y, {
|
|
2332
2310
|
locString: t.question.getCheckedLabel()
|
|
2333
2311
|
}, null, 8, ["locString"])
|
|
2334
2312
|
], 2)) : d("", !0)
|
|
@@ -2336,12 +2314,12 @@ const zn = /* @__PURE__ */ h({
|
|
|
2336
2314
|
], 2),
|
|
2337
2315
|
c("div", {
|
|
2338
2316
|
class: l(t.question.cssClasses.sliderGhost),
|
|
2339
|
-
onClick: a[3] || (a[3] = (
|
|
2317
|
+
onClick: a[3] || (a[3] = (v) => e(v, !0))
|
|
2340
2318
|
}, [
|
|
2341
2319
|
c("span", {
|
|
2342
2320
|
class: l(t.question.getLabelCss(!0))
|
|
2343
2321
|
}, [
|
|
2344
|
-
b(
|
|
2322
|
+
b(y, {
|
|
2345
2323
|
locString: t.question.locLabelTrue
|
|
2346
2324
|
}, null, 8, ["locString"])
|
|
2347
2325
|
], 2)
|
|
@@ -2351,12 +2329,12 @@ const zn = /* @__PURE__ */ h({
|
|
|
2351
2329
|
};
|
|
2352
2330
|
}
|
|
2353
2331
|
});
|
|
2354
|
-
|
|
2332
|
+
se.Instance.registerRenderer(
|
|
2355
2333
|
"boolean",
|
|
2356
2334
|
"radio",
|
|
2357
2335
|
"sv-boolean-radio"
|
|
2358
2336
|
);
|
|
2359
|
-
const
|
|
2337
|
+
const Kn = /* @__PURE__ */ h({
|
|
2360
2338
|
inheritAttrs: !1,
|
|
2361
2339
|
__name: "BooleanRadio",
|
|
2362
2340
|
props: {
|
|
@@ -2365,7 +2343,7 @@ const jn = /* @__PURE__ */ h({
|
|
|
2365
2343
|
setup(r) {
|
|
2366
2344
|
const s = _(null);
|
|
2367
2345
|
return A(r, s), (e, n) => {
|
|
2368
|
-
const t =
|
|
2346
|
+
const t = p("sv-boolean-radio-item");
|
|
2369
2347
|
return i(), u("div", {
|
|
2370
2348
|
class: l(e.question.cssClasses.rootRadio),
|
|
2371
2349
|
ref_key: "root",
|
|
@@ -2391,7 +2369,7 @@ const jn = /* @__PURE__ */ h({
|
|
|
2391
2369
|
], 2);
|
|
2392
2370
|
};
|
|
2393
2371
|
}
|
|
2394
|
-
}),
|
|
2372
|
+
}), jn = ["name", "value", "checked", "aria-describedby", "disabled"], Qn = ["xlink:href"], Gn = /* @__PURE__ */ h({
|
|
2395
2373
|
__name: "BooleanRadioItem",
|
|
2396
2374
|
props: {
|
|
2397
2375
|
question: {},
|
|
@@ -2404,7 +2382,7 @@ const jn = /* @__PURE__ */ h({
|
|
|
2404
2382
|
n.booleanValue = e.target.value == "true";
|
|
2405
2383
|
};
|
|
2406
2384
|
return (e, n) => {
|
|
2407
|
-
const t =
|
|
2385
|
+
const t = p("survey-string");
|
|
2408
2386
|
return i(), u("div", {
|
|
2409
2387
|
role: "presentation",
|
|
2410
2388
|
class: l(e.question.getRadioItemClass(e.question.cssClasses, e.value))
|
|
@@ -2421,7 +2399,7 @@ const jn = /* @__PURE__ */ h({
|
|
|
2421
2399
|
disabled: e.question.isInputReadOnly,
|
|
2422
2400
|
class: l(e.question.cssClasses.itemRadioControl),
|
|
2423
2401
|
onChange: o
|
|
2424
|
-
}, null, 42,
|
|
2402
|
+
}, null, 42, jn),
|
|
2425
2403
|
e.question.cssClasses.materialRadioDecorator ? (i(), u("span", {
|
|
2426
2404
|
key: 0,
|
|
2427
2405
|
class: l(e.question.cssClasses.materialRadioDecorator)
|
|
@@ -2432,7 +2410,7 @@ const jn = /* @__PURE__ */ h({
|
|
|
2432
2410
|
}, [
|
|
2433
2411
|
c("use", {
|
|
2434
2412
|
"xlink:href": e.question.itemSvgIcon
|
|
2435
|
-
}, null, 8,
|
|
2413
|
+
}, null, 8, Qn)
|
|
2436
2414
|
], 2)) : d("", !0)
|
|
2437
2415
|
], 2)) : d("", !0),
|
|
2438
2416
|
c("span", {
|
|
@@ -2444,13 +2422,13 @@ const jn = /* @__PURE__ */ h({
|
|
|
2444
2422
|
], 2);
|
|
2445
2423
|
};
|
|
2446
2424
|
}
|
|
2447
|
-
}),
|
|
2448
|
-
|
|
2425
|
+
}), Jn = ["name", "value", "id", ".indeterminate", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], Xn = ["xlink:href"], Yn = /* @__PURE__ */ c("span", { class: "check" }, null, -1), Zn = ["id"];
|
|
2426
|
+
se.Instance.registerRenderer(
|
|
2449
2427
|
"boolean",
|
|
2450
2428
|
"checkbox",
|
|
2451
2429
|
"sv-boolean-checkbox"
|
|
2452
2430
|
);
|
|
2453
|
-
const
|
|
2431
|
+
const xn = /* @__PURE__ */ h({
|
|
2454
2432
|
inheritAttrs: !1,
|
|
2455
2433
|
__name: "BooleanCheckbox",
|
|
2456
2434
|
props: {
|
|
@@ -2461,7 +2439,7 @@ const eo = /* @__PURE__ */ h({
|
|
|
2461
2439
|
const s = r, o = _(null);
|
|
2462
2440
|
return A(s, o), (e, n) => {
|
|
2463
2441
|
var m;
|
|
2464
|
-
const t =
|
|
2442
|
+
const t = p("survey-element-title-content"), a = p("sv-title-actions"), y = p("survey-string");
|
|
2465
2443
|
return i(), u("div", {
|
|
2466
2444
|
class: l(e.question.cssClasses.rootCheckbox),
|
|
2467
2445
|
ref_key: "root",
|
|
@@ -2473,11 +2451,11 @@ const eo = /* @__PURE__ */ h({
|
|
|
2473
2451
|
c("label", {
|
|
2474
2452
|
class: l(e.question.cssClasses.checkboxLabel)
|
|
2475
2453
|
}, [
|
|
2476
|
-
|
|
2454
|
+
P(c("input", {
|
|
2477
2455
|
type: "checkbox",
|
|
2478
2456
|
name: e.question.name,
|
|
2479
2457
|
value: (m = e.question.booleanValue) != null ? m : "",
|
|
2480
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
2458
|
+
"onUpdate:modelValue": n[0] || (n[0] = (v) => e.question.booleanValue = v),
|
|
2481
2459
|
class: l(e.question.cssClasses.controlCheckbox),
|
|
2482
2460
|
id: e.question.inputId,
|
|
2483
2461
|
".indeterminate": e.question.isIndeterminate,
|
|
@@ -2486,8 +2464,8 @@ const eo = /* @__PURE__ */ h({
|
|
|
2486
2464
|
"aria-label": e.question.ariaLabel,
|
|
2487
2465
|
"aria-invalid": e.question.ariaInvalid,
|
|
2488
2466
|
"aria-describedby": e.question.ariaDescribedBy
|
|
2489
|
-
}, null, 42,
|
|
2490
|
-
[
|
|
2467
|
+
}, null, 42, Jn), [
|
|
2468
|
+
[ne, e.question.booleanValue]
|
|
2491
2469
|
]),
|
|
2492
2470
|
c("span", {
|
|
2493
2471
|
class: l(e.question.cssClasses.checkboxMaterialDecorator)
|
|
@@ -2498,9 +2476,9 @@ const eo = /* @__PURE__ */ h({
|
|
|
2498
2476
|
}, [
|
|
2499
2477
|
c("use", {
|
|
2500
2478
|
"xlink:href": e.question.svgIcon
|
|
2501
|
-
}, null, 8,
|
|
2479
|
+
}, null, 8, Xn)
|
|
2502
2480
|
], 2)) : d("", !0),
|
|
2503
|
-
|
|
2481
|
+
Yn
|
|
2504
2482
|
], 2),
|
|
2505
2483
|
e.question.isLabelRendered ? (i(), u("span", {
|
|
2506
2484
|
key: 0,
|
|
@@ -2517,13 +2495,13 @@ const eo = /* @__PURE__ */ h({
|
|
|
2517
2495
|
element: e.question,
|
|
2518
2496
|
css: e.css
|
|
2519
2497
|
}, null, 8, ["element", "css"])) : d("", !0)
|
|
2520
|
-
], 10,
|
|
2498
|
+
], 10, Zn)) : d("", !0)
|
|
2521
2499
|
], 2),
|
|
2522
2500
|
e.question.canRenderLabelDescription ? (i(), u("div", {
|
|
2523
2501
|
key: 0,
|
|
2524
2502
|
class: l(e.question.cssDescription)
|
|
2525
2503
|
}, [
|
|
2526
|
-
b(
|
|
2504
|
+
b(y, {
|
|
2527
2505
|
locString: e.question.locDescription
|
|
2528
2506
|
}, null, 8, ["locString"])
|
|
2529
2507
|
], 2)) : d("", !0)
|
|
@@ -2531,7 +2509,7 @@ const eo = /* @__PURE__ */ h({
|
|
|
2531
2509
|
], 2);
|
|
2532
2510
|
};
|
|
2533
2511
|
}
|
|
2534
|
-
}),
|
|
2512
|
+
}), eo = /* @__PURE__ */ h({
|
|
2535
2513
|
inheritAttrs: !1,
|
|
2536
2514
|
__name: "Multipletext",
|
|
2537
2515
|
props: {
|
|
@@ -2540,27 +2518,27 @@ const eo = /* @__PURE__ */ h({
|
|
|
2540
2518
|
setup(r) {
|
|
2541
2519
|
const s = r, o = _(null), e = w(() => s.question.getRows());
|
|
2542
2520
|
return A(s, o), (n, t) => {
|
|
2543
|
-
const a =
|
|
2521
|
+
const a = p("survey-multipletext-item");
|
|
2544
2522
|
return i(), u("table", {
|
|
2545
2523
|
class: l(n.question.getQuestionRootCss()),
|
|
2546
2524
|
ref_key: "root",
|
|
2547
2525
|
ref: o
|
|
2548
2526
|
}, [
|
|
2549
2527
|
c("tbody", null, [
|
|
2550
|
-
(i(!0), u($, null, B(e.value, (
|
|
2528
|
+
(i(!0), u($, null, B(e.value, (y, m) => (i(), u($, {
|
|
2551
2529
|
key: n.question.inputId + "rowkey" + m
|
|
2552
2530
|
}, [
|
|
2553
|
-
|
|
2531
|
+
y.isVisible ? (i(), u("tr", {
|
|
2554
2532
|
key: 0,
|
|
2555
2533
|
class: l(n.question.cssClasses.row)
|
|
2556
2534
|
}, [
|
|
2557
|
-
(i(!0), u($, null, B(
|
|
2558
|
-
key: "item" +
|
|
2559
|
-
class: l(
|
|
2535
|
+
(i(!0), u($, null, B(y.cells, (v) => (i(), u("td", {
|
|
2536
|
+
key: "item" + v.item.editor.id,
|
|
2537
|
+
class: l(v.className)
|
|
2560
2538
|
}, [
|
|
2561
2539
|
b(a, {
|
|
2562
2540
|
question: n.question,
|
|
2563
|
-
cell:
|
|
2541
|
+
cell: v
|
|
2564
2542
|
}, null, 8, ["question", "cell"])
|
|
2565
2543
|
], 2))), 128))
|
|
2566
2544
|
], 2)) : d("", !0)
|
|
@@ -2569,7 +2547,7 @@ const eo = /* @__PURE__ */ h({
|
|
|
2569
2547
|
], 2);
|
|
2570
2548
|
};
|
|
2571
2549
|
}
|
|
2572
|
-
}),
|
|
2550
|
+
}), so = { key: 1 }, no = /* @__PURE__ */ h({
|
|
2573
2551
|
__name: "MultipletextItem",
|
|
2574
2552
|
props: {
|
|
2575
2553
|
question: {},
|
|
@@ -2580,8 +2558,8 @@ const eo = /* @__PURE__ */ h({
|
|
|
2580
2558
|
L(() => s.cell.item.editor);
|
|
2581
2559
|
const e = w(() => s.cell.item);
|
|
2582
2560
|
return (n, t) => {
|
|
2583
|
-
const a =
|
|
2584
|
-
return n.cell.isErrorsCell ? (i(), q(
|
|
2561
|
+
const a = p("survey-string"), y = p("survey-errors");
|
|
2562
|
+
return n.cell.isErrorsCell ? (i(), q(y, {
|
|
2585
2563
|
key: 1,
|
|
2586
2564
|
element: e.value.editor
|
|
2587
2565
|
}, null, 8, ["element"])) : (i(), u("label", {
|
|
@@ -2599,7 +2577,7 @@ const eo = /* @__PURE__ */ h({
|
|
|
2599
2577
|
b(a, {
|
|
2600
2578
|
locString: e.value.locTitle
|
|
2601
2579
|
}, null, 8, ["locString"]),
|
|
2602
|
-
e.value.editor.isRequireTextAfterTitle ? (i(), u("span",
|
|
2580
|
+
e.value.editor.isRequireTextAfterTitle ? (i(), u("span", so, "\xA0")) : d("", !0),
|
|
2603
2581
|
e.value.editor.isRequireTextAfterTitle ? (i(), u("span", {
|
|
2604
2582
|
key: 2,
|
|
2605
2583
|
"aria-hidden": "true",
|
|
@@ -2618,7 +2596,7 @@ const eo = /* @__PURE__ */ h({
|
|
|
2618
2596
|
], 2));
|
|
2619
2597
|
};
|
|
2620
2598
|
}
|
|
2621
|
-
}),
|
|
2599
|
+
}), oo = { class: "sv-hidden" }, to = { key: 0 }, io = { key: 0 }, ro = ["onClick"], lo = ["data-responsive-title", "onClick"], ao = ["name", "onUpdate:modelValue", "value", "disabled", "id", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], uo = ["xlink:href"], mo = /* @__PURE__ */ h({
|
|
2622
2600
|
inheritAttrs: !1,
|
|
2623
2601
|
__name: "Matrix",
|
|
2624
2602
|
props: {
|
|
@@ -2643,22 +2621,22 @@ const eo = /* @__PURE__ */ h({
|
|
|
2643
2621
|
s.question.isInputReadOnly || (t.value = a.value);
|
|
2644
2622
|
};
|
|
2645
2623
|
return (t, a) => {
|
|
2646
|
-
const
|
|
2624
|
+
const y = p("survey-string");
|
|
2647
2625
|
return i(), u("div", {
|
|
2648
2626
|
class: l(t.question.cssClasses.tableWrapper),
|
|
2649
2627
|
ref_key: "root",
|
|
2650
2628
|
ref: o
|
|
2651
2629
|
}, [
|
|
2652
2630
|
c("fieldset", null, [
|
|
2653
|
-
c("legend",
|
|
2631
|
+
c("legend", oo, R(t.question.locTitle.renderedHtml), 1),
|
|
2654
2632
|
c("table", {
|
|
2655
2633
|
class: l(t.question.getTableCss())
|
|
2656
2634
|
}, [
|
|
2657
|
-
t.question.showHeader ? (i(), u("thead",
|
|
2635
|
+
t.question.showHeader ? (i(), u("thead", to, [
|
|
2658
2636
|
c("tr", null, [
|
|
2659
|
-
t.question.hasRows ? (i(), u("td",
|
|
2660
|
-
(i(!0), u($, null, B(t.question.visibleColumns, (m,
|
|
2661
|
-
key:
|
|
2637
|
+
t.question.hasRows ? (i(), u("td", io)) : d("", !0),
|
|
2638
|
+
(i(!0), u($, null, B(t.question.visibleColumns, (m, v) => (i(), u("th", {
|
|
2639
|
+
key: v,
|
|
2662
2640
|
class: l(t.question.cssClasses.headerCell),
|
|
2663
2641
|
style: S({
|
|
2664
2642
|
minWidth: t.question.columnMinWidth,
|
|
@@ -2668,8 +2646,8 @@ const eo = /* @__PURE__ */ h({
|
|
|
2668
2646
|
(i(), q(T(t.question.getColumnHeaderWrapperComponentName(m)), {
|
|
2669
2647
|
componentData: t.question.getColumnHeaderWrapperComponentData(m)
|
|
2670
2648
|
}, {
|
|
2671
|
-
default:
|
|
2672
|
-
b(
|
|
2649
|
+
default: O(() => [
|
|
2650
|
+
b(y, {
|
|
2673
2651
|
locString: m.locText
|
|
2674
2652
|
}, null, 8, ["locString"])
|
|
2675
2653
|
]),
|
|
@@ -2679,11 +2657,11 @@ const eo = /* @__PURE__ */ h({
|
|
|
2679
2657
|
])
|
|
2680
2658
|
])) : d("", !0),
|
|
2681
2659
|
c("tbody", null, [
|
|
2682
|
-
(i(!0), u($, null, B(e.value, (m,
|
|
2683
|
-
key: "row_" + m.name + "_" +
|
|
2660
|
+
(i(!0), u($, null, B(e.value, (m, v) => (i(), u("tr", {
|
|
2661
|
+
key: "row_" + m.name + "_" + v,
|
|
2684
2662
|
class: l(m.rowClasses || void 0)
|
|
2685
2663
|
}, [
|
|
2686
|
-
|
|
2664
|
+
P(c("td", {
|
|
2687
2665
|
class: l(t.question.cssClasses.rowTextCell),
|
|
2688
2666
|
style: S({
|
|
2689
2667
|
minWidth: t.question.rowTitleWidth,
|
|
@@ -2693,8 +2671,8 @@ const eo = /* @__PURE__ */ h({
|
|
|
2693
2671
|
(i(), q(T(t.question.getRowHeaderWrapperComponentName(m)), {
|
|
2694
2672
|
componentData: t.question.getRowHeaderWrapperComponentData(m)
|
|
2695
2673
|
}, {
|
|
2696
|
-
default:
|
|
2697
|
-
b(
|
|
2674
|
+
default: O(() => [
|
|
2675
|
+
b(y, {
|
|
2698
2676
|
locString: m.locText
|
|
2699
2677
|
}, null, 8, ["locString"])
|
|
2700
2678
|
]),
|
|
@@ -2708,10 +2686,10 @@ const eo = /* @__PURE__ */ h({
|
|
|
2708
2686
|
class: l(t.question.getItemClass(m, g)),
|
|
2709
2687
|
onClick: (C) => n(m, g)
|
|
2710
2688
|
}, [
|
|
2711
|
-
b(
|
|
2689
|
+
b(y, {
|
|
2712
2690
|
locString: t.question.getCellDisplayLocText(m.name, g)
|
|
2713
2691
|
}, null, 8, ["locString"])
|
|
2714
|
-
], 10,
|
|
2692
|
+
], 10, ro))), 128)) : d("", !0),
|
|
2715
2693
|
t.question.hasCellText ? d("", !0) : (i(!0), u($, { key: 1 }, B(t.question.visibleColumns, (g, I) => (i(), u("td", {
|
|
2716
2694
|
key: I,
|
|
2717
2695
|
"data-responsive-title": g.locText.renderedHtml,
|
|
@@ -2722,7 +2700,7 @@ const eo = /* @__PURE__ */ h({
|
|
|
2722
2700
|
onMousedown: a[0] || (a[0] = (C) => t.question.onMouseDown()),
|
|
2723
2701
|
class: l(t.question.getItemClass(m, g))
|
|
2724
2702
|
}, [
|
|
2725
|
-
|
|
2703
|
+
P(c("input", {
|
|
2726
2704
|
type: "radio",
|
|
2727
2705
|
class: l(t.question.cssClasses.itemValue),
|
|
2728
2706
|
name: m.fullName,
|
|
@@ -2731,11 +2709,14 @@ const eo = /* @__PURE__ */ h({
|
|
|
2731
2709
|
disabled: t.question.isInputReadOnly,
|
|
2732
2710
|
id: t.question.inputId + "_" + m.name + "_" + I,
|
|
2733
2711
|
"aria-required": t.question.a11y_input_ariaRequired,
|
|
2734
|
-
"aria-label": t.question.getCellAriaLabel(
|
|
2712
|
+
"aria-label": t.question.getCellAriaLabel(
|
|
2713
|
+
m.locText.renderedHtml,
|
|
2714
|
+
g.locText.renderedHtml
|
|
2715
|
+
),
|
|
2735
2716
|
"aria-invalid": t.question.a11y_input_ariaInvalid,
|
|
2736
2717
|
"aria-describedby": t.question.a11y_input_ariaDescribedBy
|
|
2737
|
-
}, null, 10,
|
|
2738
|
-
[
|
|
2718
|
+
}, null, 10, ao), [
|
|
2719
|
+
[ee, m.value]
|
|
2739
2720
|
]),
|
|
2740
2721
|
c("span", {
|
|
2741
2722
|
class: l(t.question.cssClasses.materialDecorator)
|
|
@@ -2746,20 +2727,19 @@ const eo = /* @__PURE__ */ h({
|
|
|
2746
2727
|
}, [
|
|
2747
2728
|
c("use", {
|
|
2748
2729
|
"xlink:href": t.question.itemSvgIcon
|
|
2749
|
-
}, null, 8,
|
|
2730
|
+
}, null, 8, uo)
|
|
2750
2731
|
], 2)) : d("", !0)
|
|
2751
2732
|
], 2),
|
|
2752
|
-
|
|
2733
|
+
t.question.isMobile ? (i(), u("span", {
|
|
2734
|
+
key: 0,
|
|
2753
2735
|
class: l(t.question.cssClasses.cellResponsiveTitle)
|
|
2754
2736
|
}, [
|
|
2755
|
-
b(
|
|
2737
|
+
b(y, {
|
|
2756
2738
|
locString: g.locText
|
|
2757
2739
|
}, null, 8, ["locString"])
|
|
2758
|
-
], 2),
|
|
2759
|
-
[M, t.question.isMobile]
|
|
2760
|
-
])
|
|
2740
|
+
], 2)) : d("", !0)
|
|
2761
2741
|
], 34)
|
|
2762
|
-
], 10,
|
|
2742
|
+
], 10, lo))), 128))
|
|
2763
2743
|
], 2))), 128))
|
|
2764
2744
|
])
|
|
2765
2745
|
], 2)
|
|
@@ -2767,7 +2747,7 @@ const eo = /* @__PURE__ */ h({
|
|
|
2767
2747
|
], 2);
|
|
2768
2748
|
};
|
|
2769
2749
|
}
|
|
2770
|
-
}),
|
|
2750
|
+
}), co = /* @__PURE__ */ h({
|
|
2771
2751
|
inheritAttrs: !1,
|
|
2772
2752
|
__name: "MatrixDropdown",
|
|
2773
2753
|
props: {
|
|
@@ -2776,7 +2756,7 @@ const eo = /* @__PURE__ */ h({
|
|
|
2776
2756
|
setup(r) {
|
|
2777
2757
|
const s = r, o = _(null);
|
|
2778
2758
|
return A(s, o), (e, n) => {
|
|
2779
|
-
const t =
|
|
2759
|
+
const t = p("survey-matrixtable");
|
|
2780
2760
|
return i(), q(t, {
|
|
2781
2761
|
question: e.question,
|
|
2782
2762
|
ref_key: "root",
|
|
@@ -2784,7 +2764,7 @@ const eo = /* @__PURE__ */ h({
|
|
|
2784
2764
|
}, null, 8, ["question"]);
|
|
2785
2765
|
};
|
|
2786
2766
|
}
|
|
2787
|
-
}),
|
|
2767
|
+
}), po = { key: 0 }, vo = ["data-sv-drop-target-matrix-row", "onPointerdown"], yo = { key: 1 }, qo = /* @__PURE__ */ h({
|
|
2788
2768
|
__name: "MatrixTable",
|
|
2789
2769
|
props: {
|
|
2790
2770
|
question: {}
|
|
@@ -2805,7 +2785,7 @@ const eo = /* @__PURE__ */ h({
|
|
|
2805
2785
|
};
|
|
2806
2786
|
}
|
|
2807
2787
|
), (e, n) => {
|
|
2808
|
-
const t =
|
|
2788
|
+
const t = p("survey-string"), a = p("survey-matrixheaderrequired"), y = p("survey-matrixcell");
|
|
2809
2789
|
return i(), u("div", {
|
|
2810
2790
|
style: S({ overflowX: e.question.showHorizontalScroll ? "scroll" : "" }),
|
|
2811
2791
|
class: l(e.question.cssClasses.tableWrapper)
|
|
@@ -2813,7 +2793,7 @@ const eo = /* @__PURE__ */ h({
|
|
|
2813
2793
|
c("table", {
|
|
2814
2794
|
class: l(e.question.getTableCss())
|
|
2815
2795
|
}, [
|
|
2816
|
-
o.value.showHeader ? (i(), u("thead",
|
|
2796
|
+
o.value.showHeader ? (i(), u("thead", po, [
|
|
2817
2797
|
c("tr", null, [
|
|
2818
2798
|
(i(!0), u($, null, B(o.value.headerRow.cells, (m) => (i(), u($, null, [
|
|
2819
2799
|
m.hasTitle ? (i(), u("th", {
|
|
@@ -2824,7 +2804,7 @@ const eo = /* @__PURE__ */ h({
|
|
|
2824
2804
|
(i(), q(T(e.question.getColumnHeaderWrapperComponentName(m)), {
|
|
2825
2805
|
componentData: e.question.getColumnHeaderWrapperComponentData(m)
|
|
2826
2806
|
}, {
|
|
2827
|
-
default:
|
|
2807
|
+
default: O(() => [
|
|
2828
2808
|
b(t, {
|
|
2829
2809
|
locString: m.locTitle
|
|
2830
2810
|
}, null, 8, ["locString"]),
|
|
@@ -2852,23 +2832,23 @@ const eo = /* @__PURE__ */ h({
|
|
|
2852
2832
|
m.visible ? (i(), u("tr", {
|
|
2853
2833
|
key: 0,
|
|
2854
2834
|
"data-sv-drop-target-matrix-row": m.row && m.row.id,
|
|
2855
|
-
onPointerdown: (
|
|
2835
|
+
onPointerdown: (v) => e.question.onPointerDown(v, m.row),
|
|
2856
2836
|
class: l(m.className)
|
|
2857
2837
|
}, [
|
|
2858
|
-
(i(!0), u($, null, B(m.cells, (
|
|
2859
|
-
cell:
|
|
2838
|
+
(i(!0), u($, null, B(m.cells, (v, g) => (i(), q(y, {
|
|
2839
|
+
cell: v,
|
|
2860
2840
|
question: e.question,
|
|
2861
2841
|
key: m.id + "_" + g
|
|
2862
2842
|
}, null, 8, ["cell", "question"]))), 128))
|
|
2863
|
-
], 42,
|
|
2843
|
+
], 42, vo)) : d("", !0)
|
|
2864
2844
|
], 64))), 128))
|
|
2865
2845
|
]),
|
|
2866
|
-
o.value.showFooter ? (i(), u("tfoot",
|
|
2846
|
+
o.value.showFooter ? (i(), u("tfoot", yo, [
|
|
2867
2847
|
c("tr", null, [
|
|
2868
|
-
(i(!0), u($, null, B(o.value.footerRow.cells, (m,
|
|
2848
|
+
(i(!0), u($, null, B(o.value.footerRow.cells, (m, v) => (i(), q(y, {
|
|
2869
2849
|
cell: m,
|
|
2870
2850
|
question: e.question,
|
|
2871
|
-
key: "footer_" +
|
|
2851
|
+
key: "footer_" + v
|
|
2872
2852
|
}, null, 8, ["cell", "question"]))), 128))
|
|
2873
2853
|
])
|
|
2874
2854
|
])) : d("", !0)
|
|
@@ -2876,7 +2856,7 @@ const eo = /* @__PURE__ */ h({
|
|
|
2876
2856
|
], 6);
|
|
2877
2857
|
};
|
|
2878
2858
|
}
|
|
2879
|
-
}),
|
|
2859
|
+
}), go = /* @__PURE__ */ c("span", null, "\xA0", -1), ho = /* @__PURE__ */ h({
|
|
2880
2860
|
__name: "MatrixHeaderRequired",
|
|
2881
2861
|
props: {
|
|
2882
2862
|
question: {},
|
|
@@ -2885,21 +2865,21 @@ const eo = /* @__PURE__ */ h({
|
|
|
2885
2865
|
setup(r) {
|
|
2886
2866
|
const s = r;
|
|
2887
2867
|
return L(() => s.column), (o, e) => o.column.isRenderedRequired ? (i(), u($, { key: 0 }, [
|
|
2888
|
-
|
|
2868
|
+
go,
|
|
2889
2869
|
o.column.isRenderedRequired ? (i(), u("span", {
|
|
2890
2870
|
key: 0,
|
|
2891
2871
|
class: l(o.question.cssClasses.cellRequiredText)
|
|
2892
2872
|
}, R(o.column.requiredText), 3)) : d("", !0)
|
|
2893
2873
|
], 64)) : d("", !0);
|
|
2894
2874
|
}
|
|
2895
|
-
}),
|
|
2875
|
+
}), Co = ["data-responsive-title", "title", "colspan"], bo = /* @__PURE__ */ h({
|
|
2896
2876
|
__name: "MatrixCell",
|
|
2897
2877
|
props: {
|
|
2898
2878
|
question: {},
|
|
2899
2879
|
cell: {}
|
|
2900
2880
|
},
|
|
2901
2881
|
setup(r) {
|
|
2902
|
-
const s = r, o = _(!1), e = _(), n = () => s.cell.headers, t = () => !!s.cell.width || !!s.cell.minWidth ? { width: s.cell.width, minWidth: s.cell.minWidth } : null, a = () => o.value = s.cell.question.isVisible,
|
|
2882
|
+
const s = r, o = _(!1), e = _(), n = () => s.cell.headers, t = () => !!s.cell.width || !!s.cell.minWidth ? { width: s.cell.width, minWidth: s.cell.minWidth } : null, a = () => o.value = s.cell.question.isVisible, y = (g) => te(g);
|
|
2903
2883
|
H(() => {
|
|
2904
2884
|
if (!s.cell.hasQuestion || !s.question || !s.question.survey)
|
|
2905
2885
|
return;
|
|
@@ -2920,28 +2900,28 @@ const eo = /* @__PURE__ */ h({
|
|
|
2920
2900
|
if (g.hasPanel) {
|
|
2921
2901
|
const I = g.panel, C = I.survey;
|
|
2922
2902
|
if (C) {
|
|
2923
|
-
const
|
|
2924
|
-
if (
|
|
2925
|
-
return
|
|
2903
|
+
const N = C.getElementWrapperComponentName(I);
|
|
2904
|
+
if (N)
|
|
2905
|
+
return N;
|
|
2926
2906
|
}
|
|
2927
2907
|
return "survey-panel";
|
|
2928
2908
|
}
|
|
2929
|
-
}),
|
|
2909
|
+
}), v = w(() => {
|
|
2930
2910
|
if (s.cell.hasPanel) {
|
|
2931
2911
|
const I = s.cell.panel, C = I.survey;
|
|
2932
|
-
let
|
|
2933
|
-
return C && (
|
|
2912
|
+
let N;
|
|
2913
|
+
return C && (N = C.getElementWrapperComponentData(I)), {
|
|
2934
2914
|
componentName: "survey-panel",
|
|
2935
2915
|
componentData: {
|
|
2936
2916
|
element: I,
|
|
2937
|
-
data:
|
|
2917
|
+
data: N,
|
|
2938
2918
|
css: s.question.cssClasses
|
|
2939
2919
|
}
|
|
2940
2920
|
};
|
|
2941
2921
|
}
|
|
2942
2922
|
});
|
|
2943
2923
|
return (g, I) => {
|
|
2944
|
-
const C =
|
|
2924
|
+
const C = p("survey-errors"), N = p("sv-matrix-drag-drop-icon"), k = p("sv-action-bar"), D = p("survey-radiogroup-item"), E = p("survey-checkbox-item"), V = p("survey-other-choice"), U = p("survey-string");
|
|
2945
2925
|
return i(), u("td", {
|
|
2946
2926
|
class: l(g.cell.className),
|
|
2947
2927
|
"data-responsive-title": n(),
|
|
@@ -2956,7 +2936,7 @@ const eo = /* @__PURE__ */ h({
|
|
|
2956
2936
|
key: 0,
|
|
2957
2937
|
element: g.cell.question
|
|
2958
2938
|
}, null, 8, ["element"])) : d("", !0),
|
|
2959
|
-
g.cell.isDragHandlerCell ? (i(), q(
|
|
2939
|
+
g.cell.isDragHandlerCell ? (i(), q(N, {
|
|
2960
2940
|
key: 1,
|
|
2961
2941
|
item: { data: { row: g.cell.row, question: g.question } }
|
|
2962
2942
|
}, null, 8, ["item"])) : d("", !0),
|
|
@@ -2965,8 +2945,8 @@ const eo = /* @__PURE__ */ h({
|
|
|
2965
2945
|
model: g.cell.item.getData(),
|
|
2966
2946
|
handleClick: !1
|
|
2967
2947
|
}, null, 8, ["model"])) : d("", !0),
|
|
2968
|
-
g.cell.hasPanel ? (i(), q(T(m.value), F(W({ key: 3 },
|
|
2969
|
-
g.cell.hasQuestion ?
|
|
2948
|
+
g.cell.hasPanel ? (i(), q(T(m.value), F(W({ key: 3 }, v.value)), null, 16)) : d("", !0),
|
|
2949
|
+
g.cell.hasQuestion ? P((i(), u("div", {
|
|
2970
2950
|
key: 4,
|
|
2971
2951
|
class: l(g.question.cssClasses.cellQuestionWrapper)
|
|
2972
2952
|
}, [
|
|
@@ -2974,8 +2954,8 @@ const eo = /* @__PURE__ */ h({
|
|
|
2974
2954
|
key: 0,
|
|
2975
2955
|
componentData: g.question.getCellWrapperComponentData(g.cell.cell)
|
|
2976
2956
|
}, {
|
|
2977
|
-
default:
|
|
2978
|
-
(i(), q(T(
|
|
2957
|
+
default: O(() => [
|
|
2958
|
+
(i(), q(T(y(g.cell.question)), {
|
|
2979
2959
|
question: g.cell.question
|
|
2980
2960
|
}, null, 8, ["question"]))
|
|
2981
2961
|
]),
|
|
@@ -2989,7 +2969,7 @@ const eo = /* @__PURE__ */ h({
|
|
|
2989
2969
|
key: 2,
|
|
2990
2970
|
componentData: g.question.getCellWrapperComponentData(g.cell.cell)
|
|
2991
2971
|
}, {
|
|
2992
|
-
default:
|
|
2972
|
+
default: O(() => [
|
|
2993
2973
|
g.cell.isRadio ? (i(), q(D, {
|
|
2994
2974
|
key: g.cell.item.value,
|
|
2995
2975
|
question: g.cell.question,
|
|
@@ -3005,7 +2985,7 @@ const eo = /* @__PURE__ */ h({
|
|
|
3005
2985
|
]),
|
|
3006
2986
|
_: 1
|
|
3007
2987
|
}, 8, ["componentData"])) : d("", !0),
|
|
3008
|
-
g.cell.isOtherChoice ? (i(), q(
|
|
2988
|
+
g.cell.isOtherChoice ? (i(), q(V, {
|
|
3009
2989
|
key: 3,
|
|
3010
2990
|
question: g.cell.question
|
|
3011
2991
|
}, null, 8, ["question"])) : d("", !0)
|
|
@@ -3016,7 +2996,7 @@ const eo = /* @__PURE__ */ h({
|
|
|
3016
2996
|
key: 5,
|
|
3017
2997
|
componentData: g.question.getCellWrapperComponentData(g.cell)
|
|
3018
2998
|
}, {
|
|
3019
|
-
default:
|
|
2999
|
+
default: O(() => [
|
|
3020
3000
|
g.cell.hasTitle ? (i(), q(U, {
|
|
3021
3001
|
key: 0,
|
|
3022
3002
|
locString: g.cell.locTitle
|
|
@@ -3028,10 +3008,10 @@ const eo = /* @__PURE__ */ h({
|
|
|
3028
3008
|
]),
|
|
3029
3009
|
_: 1
|
|
3030
3010
|
}, 8, ["componentData"])) : d("", !0)
|
|
3031
|
-
], 46,
|
|
3011
|
+
], 46, Co);
|
|
3032
3012
|
};
|
|
3033
3013
|
}
|
|
3034
|
-
}),
|
|
3014
|
+
}), ko = /* @__PURE__ */ h({
|
|
3035
3015
|
inheritAttrs: !1,
|
|
3036
3016
|
__name: "MatrixDynamic",
|
|
3037
3017
|
props: {
|
|
@@ -3044,7 +3024,7 @@ const eo = /* @__PURE__ */ h({
|
|
|
3044
3024
|
s.question.addRowUI();
|
|
3045
3025
|
};
|
|
3046
3026
|
return (n, t) => {
|
|
3047
|
-
const a =
|
|
3027
|
+
const a = p("survey-string"), y = p("survey-matrixtable");
|
|
3048
3028
|
return i(), u("div", {
|
|
3049
3029
|
ref_key: "root",
|
|
3050
3030
|
ref: o
|
|
@@ -3066,7 +3046,7 @@ const eo = /* @__PURE__ */ h({
|
|
|
3066
3046
|
}, null, 2)
|
|
3067
3047
|
], 2)
|
|
3068
3048
|
], 2)) : d("", !0),
|
|
3069
|
-
n.question.renderedTable.showTable ? (i(), q(
|
|
3049
|
+
n.question.renderedTable.showTable ? (i(), q(y, {
|
|
3070
3050
|
key: 1,
|
|
3071
3051
|
question: n.question
|
|
3072
3052
|
}, null, 8, ["question"])) : d("", !0),
|
|
@@ -3122,7 +3102,7 @@ function ie(r, s = !0) {
|
|
|
3122
3102
|
row: s ? w(() => r.item.data.row) : void 0
|
|
3123
3103
|
};
|
|
3124
3104
|
}
|
|
3125
|
-
const
|
|
3105
|
+
const fo = ["disabled"], Io = /* @__PURE__ */ h({
|
|
3126
3106
|
__name: "RemoveButton",
|
|
3127
3107
|
props: {
|
|
3128
3108
|
item: {}
|
|
@@ -3130,7 +3110,7 @@ const Io = ["disabled"], wo = /* @__PURE__ */ h({
|
|
|
3130
3110
|
setup(r) {
|
|
3131
3111
|
const s = r, { question: o, row: e } = ie(s);
|
|
3132
3112
|
return (n, t) => {
|
|
3133
|
-
const a =
|
|
3113
|
+
const a = p("survey-string");
|
|
3134
3114
|
return i(), u("button", {
|
|
3135
3115
|
type: "button",
|
|
3136
3116
|
class: l(f(o).getRemoveRowButtonCss()),
|
|
@@ -3143,10 +3123,10 @@ const Io = ["disabled"], wo = /* @__PURE__ */ h({
|
|
|
3143
3123
|
c("span", {
|
|
3144
3124
|
class: l(f(o).cssClasses.iconRemove)
|
|
3145
3125
|
}, null, 2)
|
|
3146
|
-
], 10,
|
|
3126
|
+
], 10, fo);
|
|
3147
3127
|
};
|
|
3148
3128
|
}
|
|
3149
|
-
}),
|
|
3129
|
+
}), wo = ["xlink:href"], So = /* @__PURE__ */ h({
|
|
3150
3130
|
__name: "DragDropIcon",
|
|
3151
3131
|
props: {
|
|
3152
3132
|
item: {}
|
|
@@ -3159,13 +3139,13 @@ const Io = ["disabled"], wo = /* @__PURE__ */ h({
|
|
|
3159
3139
|
}, [
|
|
3160
3140
|
c("use", {
|
|
3161
3141
|
"xlink:href": f(o).iconDragElement
|
|
3162
|
-
}, null, 8,
|
|
3142
|
+
}, null, 8, wo)
|
|
3163
3143
|
], 2)) : (i(), u("span", {
|
|
3164
3144
|
key: 1,
|
|
3165
3145
|
class: l(f(o).cssClasses.iconDrag)
|
|
3166
3146
|
}, null, 2));
|
|
3167
3147
|
}
|
|
3168
|
-
}),
|
|
3148
|
+
}), Ro = ["aria-expanded", "aria-controls"], To = /* @__PURE__ */ h({
|
|
3169
3149
|
__name: "DetailButton",
|
|
3170
3150
|
props: {
|
|
3171
3151
|
item: {}
|
|
@@ -3173,7 +3153,7 @@ const Io = ["disabled"], wo = /* @__PURE__ */ h({
|
|
|
3173
3153
|
setup(r) {
|
|
3174
3154
|
const s = r, { question: o, row: e } = ie(s);
|
|
3175
3155
|
return (n, t) => {
|
|
3176
|
-
const a =
|
|
3156
|
+
const a = p("sv-svg-icon");
|
|
3177
3157
|
return i(), u("button", {
|
|
3178
3158
|
type: "button",
|
|
3179
3159
|
class: l(f(o).getDetailPanelButtonCss(f(e))),
|
|
@@ -3186,10 +3166,10 @@ const Io = ["disabled"], wo = /* @__PURE__ */ h({
|
|
|
3186
3166
|
iconName: f(o).getDetailPanelIconId(f(e)),
|
|
3187
3167
|
size: "auto"
|
|
3188
3168
|
}, null, 8, ["class", "iconName"])
|
|
3189
|
-
], 10,
|
|
3169
|
+
], 10, Ro);
|
|
3190
3170
|
};
|
|
3191
3171
|
}
|
|
3192
|
-
}),
|
|
3172
|
+
}), $o = /* @__PURE__ */ h({
|
|
3193
3173
|
inheritAttrs: !1,
|
|
3194
3174
|
__name: "PanelDynamic",
|
|
3195
3175
|
props: {
|
|
@@ -3203,14 +3183,14 @@ const Io = ["disabled"], wo = /* @__PURE__ */ h({
|
|
|
3203
3183
|
o,
|
|
3204
3184
|
(m) => {
|
|
3205
3185
|
m.panelCountChangedCallback = () => {
|
|
3206
|
-
var
|
|
3207
|
-
(
|
|
3186
|
+
var v;
|
|
3187
|
+
(v = e == null ? void 0 : e.proxy) == null || v.$forceUpdate();
|
|
3208
3188
|
}, m.currentIndexChangedCallback = () => {
|
|
3209
|
-
var
|
|
3210
|
-
(
|
|
3189
|
+
var v;
|
|
3190
|
+
(v = e == null ? void 0 : e.proxy) == null || v.$forceUpdate();
|
|
3211
3191
|
}, m.renderModeChangedCallback = () => {
|
|
3212
|
-
var
|
|
3213
|
-
(
|
|
3192
|
+
var v;
|
|
3193
|
+
(v = e == null ? void 0 : e.proxy) == null || v.$forceUpdate();
|
|
3214
3194
|
};
|
|
3215
3195
|
},
|
|
3216
3196
|
(m) => {
|
|
@@ -3226,17 +3206,17 @@ const Io = ["disabled"], wo = /* @__PURE__ */ h({
|
|
|
3226
3206
|
const m = [];
|
|
3227
3207
|
return s.question.currentPanel && m.push(s.question.currentPanel), m;
|
|
3228
3208
|
}), t = () => s.question.showLegacyNavigation, a = (m) => {
|
|
3229
|
-
const
|
|
3230
|
-
if (
|
|
3231
|
-
const g =
|
|
3209
|
+
const v = s.question.getSurvey();
|
|
3210
|
+
if (v) {
|
|
3211
|
+
const g = v.getElementWrapperComponentName(m);
|
|
3232
3212
|
if (g)
|
|
3233
3213
|
return g;
|
|
3234
3214
|
}
|
|
3235
3215
|
return "panel";
|
|
3236
|
-
},
|
|
3237
|
-
const
|
|
3216
|
+
}, y = (m) => {
|
|
3217
|
+
const v = s.question.getSurvey();
|
|
3238
3218
|
let g;
|
|
3239
|
-
return
|
|
3219
|
+
return v && (g = v.getElementWrapperComponentData(m)), {
|
|
3240
3220
|
componentName: "survey-panel",
|
|
3241
3221
|
componentData: {
|
|
3242
3222
|
element: m,
|
|
@@ -3244,8 +3224,8 @@ const Io = ["disabled"], wo = /* @__PURE__ */ h({
|
|
|
3244
3224
|
}
|
|
3245
3225
|
};
|
|
3246
3226
|
};
|
|
3247
|
-
return (m,
|
|
3248
|
-
const g =
|
|
3227
|
+
return (m, v) => {
|
|
3228
|
+
const g = p("survey-string"), I = p("sv-paneldynamic-add-btn"), C = p("survey-paneldynamicprogress"), N = p("sv-paneldynamic-remove-btn"), k = p("survey-paneldynamicprogress-v2");
|
|
3249
3229
|
return i(), u("div", {
|
|
3250
3230
|
class: l(m.question.cssClasses.root),
|
|
3251
3231
|
ref_key: "root",
|
|
@@ -3284,8 +3264,8 @@ const Io = ["disabled"], wo = /* @__PURE__ */ h({
|
|
|
3284
3264
|
c("div", {
|
|
3285
3265
|
class: l(m.question.getPanelWrapperCss())
|
|
3286
3266
|
}, [
|
|
3287
|
-
(i(), q(T(a(D)), F(ye(
|
|
3288
|
-
m.question.panelRemoveButtonLocation === "right" && m.question.canRemovePanel && D.state !== "collapsed" ? (i(), q(
|
|
3267
|
+
(i(), q(T(a(D)), F(ye(y(D))), null, 16)),
|
|
3268
|
+
m.question.panelRemoveButtonLocation === "right" && m.question.canRemovePanel && D.state !== "collapsed" ? (i(), q(N, {
|
|
3289
3269
|
key: 0,
|
|
3290
3270
|
data: { question: m.question, panel: D }
|
|
3291
3271
|
}, null, 8, ["data"])) : d("", !0)
|
|
@@ -3310,7 +3290,7 @@ const Io = ["disabled"], wo = /* @__PURE__ */ h({
|
|
|
3310
3290
|
], 2);
|
|
3311
3291
|
};
|
|
3312
3292
|
}
|
|
3313
|
-
}),
|
|
3293
|
+
}), _o = /* @__PURE__ */ h({
|
|
3314
3294
|
__name: "PanelDynamicProgress",
|
|
3315
3295
|
props: {
|
|
3316
3296
|
question: {}
|
|
@@ -3318,7 +3298,7 @@ const Io = ["disabled"], wo = /* @__PURE__ */ h({
|
|
|
3318
3298
|
setup(r) {
|
|
3319
3299
|
const s = r, o = () => s.question.isProgressTopShowing ? s.question.cssClasses.progressTop : s.question.cssClasses.progressBottom;
|
|
3320
3300
|
return (e, n) => {
|
|
3321
|
-
const t =
|
|
3301
|
+
const t = p("sv-paneldynamic-prev-btn"), a = p("sv-paneldynamic-next-btn"), y = p("sv-paneldynamic-add-btn"), m = p("sv-paneldynamic-progress-text");
|
|
3322
3302
|
return i(), u("div", {
|
|
3323
3303
|
class: l(o())
|
|
3324
3304
|
}, [
|
|
@@ -3346,7 +3326,7 @@ const Io = ["disabled"], wo = /* @__PURE__ */ h({
|
|
|
3346
3326
|
data: { question: e.question }
|
|
3347
3327
|
}, null, 8, ["data"])
|
|
3348
3328
|
], 2),
|
|
3349
|
-
b(
|
|
3329
|
+
b(y, {
|
|
3350
3330
|
data: { question: e.question }
|
|
3351
3331
|
}, null, 8, ["data"]),
|
|
3352
3332
|
b(m, {
|
|
@@ -3356,14 +3336,14 @@ const Io = ["disabled"], wo = /* @__PURE__ */ h({
|
|
|
3356
3336
|
], 2);
|
|
3357
3337
|
};
|
|
3358
3338
|
}
|
|
3359
|
-
}),
|
|
3339
|
+
}), Do = /* @__PURE__ */ h({
|
|
3360
3340
|
__name: "PanelDynamicProgressV2",
|
|
3361
3341
|
props: {
|
|
3362
3342
|
question: {}
|
|
3363
3343
|
},
|
|
3364
3344
|
setup(r) {
|
|
3365
3345
|
return (s, o) => {
|
|
3366
|
-
const e =
|
|
3346
|
+
const e = p("sv-action-bar");
|
|
3367
3347
|
return s.question.cssClasses.footer ? (i(), u("div", {
|
|
3368
3348
|
key: 0,
|
|
3369
3349
|
class: l(s.question.cssClasses.footer)
|
|
@@ -3393,19 +3373,19 @@ const Io = ["disabled"], wo = /* @__PURE__ */ h({
|
|
|
3393
3373
|
};
|
|
3394
3374
|
}
|
|
3395
3375
|
});
|
|
3396
|
-
function
|
|
3376
|
+
function Y(r) {
|
|
3397
3377
|
return w(
|
|
3398
3378
|
() => r.item && r.item.data.question || r.data.question
|
|
3399
3379
|
);
|
|
3400
3380
|
}
|
|
3401
|
-
const
|
|
3381
|
+
const Bo = /* @__PURE__ */ h({
|
|
3402
3382
|
__name: "PaneldynamicAddBtn",
|
|
3403
3383
|
props: {
|
|
3404
3384
|
item: {},
|
|
3405
3385
|
data: {}
|
|
3406
3386
|
},
|
|
3407
3387
|
setup(r) {
|
|
3408
|
-
const o =
|
|
3388
|
+
const o = Y(r), e = () => {
|
|
3409
3389
|
o.value.addPanelUI();
|
|
3410
3390
|
};
|
|
3411
3391
|
return (n, t) => f(o).canAddPanel ? (i(), u("button", {
|
|
@@ -3419,18 +3399,18 @@ const Lo = /* @__PURE__ */ h({
|
|
|
3419
3399
|
}, R(f(o).panelAddText), 3)
|
|
3420
3400
|
], 2)) : d("", !0);
|
|
3421
3401
|
}
|
|
3422
|
-
}),
|
|
3402
|
+
}), Lo = ["title"], No = /* @__PURE__ */ h({
|
|
3423
3403
|
__name: "PaneldynamicNextBtn",
|
|
3424
3404
|
props: {
|
|
3425
3405
|
item: {},
|
|
3426
3406
|
data: {}
|
|
3427
3407
|
},
|
|
3428
3408
|
setup(r) {
|
|
3429
|
-
const o =
|
|
3409
|
+
const o = Y(r), e = () => {
|
|
3430
3410
|
o.value.goToNextPanel();
|
|
3431
3411
|
};
|
|
3432
3412
|
return (n, t) => {
|
|
3433
|
-
const a =
|
|
3413
|
+
const a = p("sv-svg-icon");
|
|
3434
3414
|
return i(), u("div", {
|
|
3435
3415
|
title: f(o).panelNextText,
|
|
3436
3416
|
onClick: e,
|
|
@@ -3440,21 +3420,21 @@ const Lo = /* @__PURE__ */ h({
|
|
|
3440
3420
|
iconName: f(o).cssClasses.progressBtnIcon,
|
|
3441
3421
|
size: "auto"
|
|
3442
3422
|
}, null, 8, ["iconName"])
|
|
3443
|
-
], 10,
|
|
3423
|
+
], 10, Lo);
|
|
3444
3424
|
};
|
|
3445
3425
|
}
|
|
3446
|
-
}),
|
|
3426
|
+
}), Po = ["title"], Ao = /* @__PURE__ */ h({
|
|
3447
3427
|
__name: "PaneldynamicPrevBtn",
|
|
3448
3428
|
props: {
|
|
3449
3429
|
item: {},
|
|
3450
3430
|
data: {}
|
|
3451
3431
|
},
|
|
3452
3432
|
setup(r) {
|
|
3453
|
-
const o =
|
|
3433
|
+
const o = Y(r), e = () => {
|
|
3454
3434
|
o.value.goToPrevPanel();
|
|
3455
3435
|
};
|
|
3456
3436
|
return (n, t) => {
|
|
3457
|
-
const a =
|
|
3437
|
+
const a = p("sv-svg-icon");
|
|
3458
3438
|
return i(), u("div", {
|
|
3459
3439
|
title: f(o).panelPrevText,
|
|
3460
3440
|
onClick: e,
|
|
@@ -3464,17 +3444,17 @@ const Lo = /* @__PURE__ */ h({
|
|
|
3464
3444
|
iconName: f(o).cssClasses.progressBtnIcon,
|
|
3465
3445
|
size: "auto"
|
|
3466
3446
|
}, null, 8, ["iconName"])
|
|
3467
|
-
], 10,
|
|
3447
|
+
], 10, Po);
|
|
3468
3448
|
};
|
|
3469
3449
|
}
|
|
3470
|
-
}),
|
|
3450
|
+
}), Mo = /* @__PURE__ */ h({
|
|
3471
3451
|
__name: "PaneldynamicRemoveBtn",
|
|
3472
3452
|
props: {
|
|
3473
3453
|
item: {},
|
|
3474
3454
|
data: {}
|
|
3475
3455
|
},
|
|
3476
3456
|
setup(r) {
|
|
3477
|
-
const s = r, o =
|
|
3457
|
+
const s = r, o = Y(s), e = w(
|
|
3478
3458
|
() => s.item && s.item.data.panel || s.data.panel
|
|
3479
3459
|
), n = (t) => {
|
|
3480
3460
|
o.value.isInputReadOnly || o.value.removePanelUI(t);
|
|
@@ -3482,7 +3462,7 @@ const Lo = /* @__PURE__ */ h({
|
|
|
3482
3462
|
return (t, a) => (i(), u("button", {
|
|
3483
3463
|
type: "button",
|
|
3484
3464
|
class: l(f(o).getPanelRemoveButtonCss()),
|
|
3485
|
-
onClick: a[0] || (a[0] = (
|
|
3465
|
+
onClick: a[0] || (a[0] = (y) => n(e.value))
|
|
3486
3466
|
}, [
|
|
3487
3467
|
c("span", {
|
|
3488
3468
|
class: l(f(o).cssClasses.buttonRemoveText)
|
|
@@ -3492,19 +3472,19 @@ const Lo = /* @__PURE__ */ h({
|
|
|
3492
3472
|
}, null, 2)
|
|
3493
3473
|
], 2));
|
|
3494
3474
|
}
|
|
3495
|
-
}),
|
|
3475
|
+
}), Ho = /* @__PURE__ */ h({
|
|
3496
3476
|
__name: "PaneldynamicProgressText",
|
|
3497
3477
|
props: {
|
|
3498
3478
|
item: {},
|
|
3499
3479
|
data: {}
|
|
3500
3480
|
},
|
|
3501
3481
|
setup(r) {
|
|
3502
|
-
const o =
|
|
3482
|
+
const o = Y(r);
|
|
3503
3483
|
return (e, n) => (i(), u("div", {
|
|
3504
3484
|
class: l(f(o).cssClasses.progressText)
|
|
3505
3485
|
}, R(f(o).progressText), 3));
|
|
3506
3486
|
}
|
|
3507
|
-
}),
|
|
3487
|
+
}), Wo = ["id"], Eo = /* @__PURE__ */ h({
|
|
3508
3488
|
__name: "Errors",
|
|
3509
3489
|
props: {
|
|
3510
3490
|
element: {},
|
|
@@ -3513,7 +3493,7 @@ const Lo = /* @__PURE__ */ h({
|
|
|
3513
3493
|
setup(r) {
|
|
3514
3494
|
const s = _();
|
|
3515
3495
|
return (o, e) => {
|
|
3516
|
-
const n =
|
|
3496
|
+
const n = p("survey-string");
|
|
3517
3497
|
return o.element.hasVisibleErrors ? (i(), u("div", {
|
|
3518
3498
|
key: 0,
|
|
3519
3499
|
role: "alert",
|
|
@@ -3542,16 +3522,16 @@ const Lo = /* @__PURE__ */ h({
|
|
|
3542
3522
|
}, null, 8, ["locString"])
|
|
3543
3523
|
], 2)
|
|
3544
3524
|
]))), 128))
|
|
3545
|
-
], 10,
|
|
3525
|
+
], 10, Wo)) : d("", !0);
|
|
3546
3526
|
};
|
|
3547
3527
|
}
|
|
3548
|
-
}),
|
|
3528
|
+
}), Vo = { key: 0 }, Oo = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], Fo = /* @__PURE__ */ h({
|
|
3549
3529
|
__name: "QuestionComment",
|
|
3550
3530
|
props: {
|
|
3551
3531
|
question: {}
|
|
3552
3532
|
},
|
|
3553
3533
|
setup(r) {
|
|
3554
|
-
return (s, o) => s.question.isReadOnlyRenderDiv() ? (i(), u("div",
|
|
3534
|
+
return (s, o) => s.question.isReadOnlyRenderDiv() ? (i(), u("div", Vo, R(s.question.comment), 1)) : (i(), u("textarea", {
|
|
3555
3535
|
key: 1,
|
|
3556
3536
|
id: s.question.commentId,
|
|
3557
3537
|
readonly: s.question.isInputReadOnly,
|
|
@@ -3569,9 +3549,9 @@ const Lo = /* @__PURE__ */ h({
|
|
|
3569
3549
|
onInput: o[1] || (o[1] = (e) => {
|
|
3570
3550
|
s.question.onCommentInput(e);
|
|
3571
3551
|
})
|
|
3572
|
-
}, null, 46,
|
|
3552
|
+
}, null, 46, Oo));
|
|
3573
3553
|
}
|
|
3574
|
-
}),
|
|
3554
|
+
}), zo = /* @__PURE__ */ h({
|
|
3575
3555
|
__name: "TitleElement",
|
|
3576
3556
|
props: {
|
|
3577
3557
|
element: {},
|
|
@@ -3582,7 +3562,7 @@ const Lo = /* @__PURE__ */ h({
|
|
|
3582
3562
|
qe(o);
|
|
3583
3563
|
};
|
|
3584
3564
|
return (o, e) => {
|
|
3585
|
-
const n =
|
|
3565
|
+
const n = p("survey-element-title-content"), t = p("sv-title-actions");
|
|
3586
3566
|
return o.element.hasTitle ? (i(), q(T(o.element.titleTagName), {
|
|
3587
3567
|
key: 0,
|
|
3588
3568
|
class: l(o.element.cssTitle),
|
|
@@ -3595,7 +3575,7 @@ const Lo = /* @__PURE__ */ h({
|
|
|
3595
3575
|
s(a);
|
|
3596
3576
|
})
|
|
3597
3577
|
}, {
|
|
3598
|
-
default:
|
|
3578
|
+
default: O(() => [
|
|
3599
3579
|
o.element.hasTitleActions ? d("", !0) : (i(), q(n, {
|
|
3600
3580
|
key: 0,
|
|
3601
3581
|
element: o.element,
|
|
@@ -3611,7 +3591,7 @@ const Lo = /* @__PURE__ */ h({
|
|
|
3611
3591
|
}, 40, ["class", "aria-label", "id", "tabindex", "aria-expanded", "role"])) : d("", !0);
|
|
3612
3592
|
};
|
|
3613
3593
|
}
|
|
3614
|
-
}),
|
|
3594
|
+
}), Uo = { key: 3 }, Ko = { key: 5 }, jo = { key: 7 }, Qo = /* @__PURE__ */ h({
|
|
3615
3595
|
inheritAttrs: !1,
|
|
3616
3596
|
__name: "TitleContent",
|
|
3617
3597
|
props: {
|
|
@@ -3620,7 +3600,7 @@ const Lo = /* @__PURE__ */ h({
|
|
|
3620
3600
|
},
|
|
3621
3601
|
setup(r) {
|
|
3622
3602
|
return (s, o) => {
|
|
3623
|
-
const e =
|
|
3603
|
+
const e = p("survey-string");
|
|
3624
3604
|
return i(), u($, null, [
|
|
3625
3605
|
s.element.isTitleRenderedAsString ? (i(), q(e, {
|
|
3626
3606
|
key: 0,
|
|
@@ -3637,18 +3617,18 @@ const Lo = /* @__PURE__ */ h({
|
|
|
3637
3617
|
class: l(s.element.cssTitleNumber),
|
|
3638
3618
|
"aria-hidden": !0
|
|
3639
3619
|
}, R(s.element.no), 3)) : d("", !0),
|
|
3640
|
-
!s.element.isTitleRenderedAsString && s.element.no ? (i(), u("span",
|
|
3620
|
+
!s.element.isTitleRenderedAsString && s.element.no ? (i(), u("span", Uo, "\xA0")) : d("", !0),
|
|
3641
3621
|
!s.element.isTitleRenderedAsString && s.element.isRequireTextBeforeTitle ? (i(), u("span", {
|
|
3642
3622
|
key: 4,
|
|
3643
3623
|
class: l(s.element.cssClasses.requiredText),
|
|
3644
3624
|
"aria-hidden": !0
|
|
3645
3625
|
}, R(s.element.requiredText), 3)) : d("", !0),
|
|
3646
|
-
!s.element.isTitleRenderedAsString && s.element.isRequireTextBeforeTitle ? (i(), u("span",
|
|
3626
|
+
!s.element.isTitleRenderedAsString && s.element.isRequireTextBeforeTitle ? (i(), u("span", Ko, "\xA0")) : d("", !0),
|
|
3647
3627
|
s.element.isTitleRenderedAsString ? d("", !0) : (i(), q(e, {
|
|
3648
3628
|
key: 6,
|
|
3649
3629
|
locString: s.element.locTitle
|
|
3650
3630
|
}, null, 8, ["locString"])),
|
|
3651
|
-
!s.element.isTitleRenderedAsString && s.element.isRequireTextAfterTitle ? (i(), u("span",
|
|
3631
|
+
!s.element.isTitleRenderedAsString && s.element.isRequireTextAfterTitle ? (i(), u("span", jo, "\xA0")) : d("", !0),
|
|
3652
3632
|
!s.element.isTitleRenderedAsString && s.element.isRequireTextAfterTitle ? (i(), u("span", {
|
|
3653
3633
|
key: 8,
|
|
3654
3634
|
class: l(s.element.cssClasses.requiredText),
|
|
@@ -3657,7 +3637,7 @@ const Lo = /* @__PURE__ */ h({
|
|
|
3657
3637
|
], 64);
|
|
3658
3638
|
};
|
|
3659
3639
|
}
|
|
3660
|
-
}),
|
|
3640
|
+
}), Go = { class: "sv-title-actions" }, Jo = { class: "sv-title-actions__title" }, Xo = /* @__PURE__ */ h({
|
|
3661
3641
|
__name: "TitleActions",
|
|
3662
3642
|
props: {
|
|
3663
3643
|
element: {},
|
|
@@ -3666,9 +3646,9 @@ const Lo = /* @__PURE__ */ h({
|
|
|
3666
3646
|
setup(r) {
|
|
3667
3647
|
const s = r, o = w(() => s.element.getTitleToolbar());
|
|
3668
3648
|
return (e, n) => {
|
|
3669
|
-
const t =
|
|
3670
|
-
return i(), u("div",
|
|
3671
|
-
c("span",
|
|
3649
|
+
const t = p("survey-string"), a = p("survey-element-title-content"), y = p("sv-action-bar");
|
|
3650
|
+
return i(), u("div", Go, [
|
|
3651
|
+
c("span", Jo, [
|
|
3672
3652
|
e.element.isPage ? (i(), q(t, {
|
|
3673
3653
|
key: 0,
|
|
3674
3654
|
locString: e.element.locTitle
|
|
@@ -3679,7 +3659,7 @@ const Lo = /* @__PURE__ */ h({
|
|
|
3679
3659
|
css: e.css
|
|
3680
3660
|
}, null, 8, ["element", "css"]))
|
|
3681
3661
|
]),
|
|
3682
|
-
b(
|
|
3662
|
+
b(y, { model: o.value }, null, 8, ["model"])
|
|
3683
3663
|
]);
|
|
3684
3664
|
};
|
|
3685
3665
|
}
|
|
@@ -3688,15 +3668,15 @@ const Lo = /* @__PURE__ */ h({
|
|
|
3688
3668
|
for (const [e, n] of s)
|
|
3689
3669
|
o[e] = n;
|
|
3690
3670
|
return o;
|
|
3691
|
-
},
|
|
3692
|
-
|
|
3671
|
+
}, Yo = {}, Zo = { class: "sv-brand-info" }, xo = /* @__PURE__ */ Ie('<a class="sv-brand-info__logo" href="https://surveyjs.io/?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=landing_page"><img src="https://surveyjs.io/Content/Images/poweredby.svg"></a><div class="sv-brand-info__text"> Try and see how easy it is to <a href="https://surveyjs.io/create-survey?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=create_survey">create a survey</a></div><div class="sv-brand-info__terms"><a href="https://surveyjs.io/TermsOfUse">Terms of Use & Privacy Statement</a></div>', 3), et = [
|
|
3672
|
+
xo
|
|
3693
3673
|
];
|
|
3694
|
-
function
|
|
3695
|
-
return i(), u("div",
|
|
3674
|
+
function st(r, s) {
|
|
3675
|
+
return i(), u("div", Zo, et);
|
|
3696
3676
|
}
|
|
3697
|
-
const
|
|
3698
|
-
|
|
3699
|
-
],
|
|
3677
|
+
const nt = /* @__PURE__ */ he(Yo, [["render", st]]), ot = /* @__PURE__ */ c("use", null, null, -1), tt = [
|
|
3678
|
+
ot
|
|
3679
|
+
], it = /* @__PURE__ */ h({
|
|
3700
3680
|
__name: "SvgIcon",
|
|
3701
3681
|
props: {
|
|
3702
3682
|
size: {},
|
|
@@ -3716,7 +3696,7 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
3716
3696
|
s.title
|
|
3717
3697
|
);
|
|
3718
3698
|
};
|
|
3719
|
-
return
|
|
3699
|
+
return x(() => {
|
|
3720
3700
|
e();
|
|
3721
3701
|
}), H(() => {
|
|
3722
3702
|
e();
|
|
@@ -3725,9 +3705,9 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
3725
3705
|
ref: o,
|
|
3726
3706
|
class: "sv-svg-icon",
|
|
3727
3707
|
role: "img"
|
|
3728
|
-
},
|
|
3708
|
+
}, tt, 512));
|
|
3729
3709
|
}
|
|
3730
|
-
}),
|
|
3710
|
+
}), rt = /* @__PURE__ */ h({
|
|
3731
3711
|
__name: "ActionBar",
|
|
3732
3712
|
props: {
|
|
3733
3713
|
model: {},
|
|
@@ -3745,7 +3725,7 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
3745
3725
|
}), z(() => {
|
|
3746
3726
|
s.model.resetResponsivityManager();
|
|
3747
3727
|
}), (t, a) => {
|
|
3748
|
-
const
|
|
3728
|
+
const y = p("sv-action");
|
|
3749
3729
|
return t.model.hasActions ? (i(), u("div", {
|
|
3750
3730
|
key: 0,
|
|
3751
3731
|
ref_key: "root",
|
|
@@ -3753,14 +3733,14 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
3753
3733
|
class: l(t.model.getRootCss()),
|
|
3754
3734
|
onClick: e
|
|
3755
3735
|
}, [
|
|
3756
|
-
(i(!0), u($, null, B(n.value, (m) => (i(), q(
|
|
3736
|
+
(i(!0), u($, null, B(n.value, (m) => (i(), q(y, {
|
|
3757
3737
|
key: m.id,
|
|
3758
3738
|
item: m
|
|
3759
3739
|
}, null, 8, ["item"]))), 128))
|
|
3760
3740
|
], 2)) : d("", !0);
|
|
3761
3741
|
};
|
|
3762
3742
|
}
|
|
3763
|
-
}),
|
|
3743
|
+
}), lt = ["id"], at = { class: "sv-action__content" }, ut = /* @__PURE__ */ h({
|
|
3764
3744
|
__name: "Action",
|
|
3765
3745
|
props: {
|
|
3766
3746
|
item: {}
|
|
@@ -3770,22 +3750,22 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
3770
3750
|
() => s.item.component || "sv-action-bar-item"
|
|
3771
3751
|
);
|
|
3772
3752
|
return L(() => s.item), (e, n) => {
|
|
3773
|
-
const t =
|
|
3753
|
+
const t = p("sv-action-bar-separator");
|
|
3774
3754
|
return i(), u("div", {
|
|
3775
3755
|
class: l(e.item.getActionRootCss()),
|
|
3776
3756
|
id: e.item.id
|
|
3777
3757
|
}, [
|
|
3778
|
-
c("div",
|
|
3758
|
+
c("div", at, [
|
|
3779
3759
|
e.item.needSeparator ? (i(), q(t, { key: 0 })) : d("", !0),
|
|
3780
3760
|
(i(), q(T(o.value), { item: e.item }, null, 8, ["item"]))
|
|
3781
3761
|
])
|
|
3782
|
-
], 10,
|
|
3762
|
+
], 10, lt);
|
|
3783
3763
|
};
|
|
3784
3764
|
}
|
|
3785
|
-
}),
|
|
3765
|
+
}), dt = ["disabled", "title", "aria-checked", "aria-expanded", "role"], mt = {
|
|
3786
3766
|
inheritAttrs: !1
|
|
3787
|
-
},
|
|
3788
|
-
...
|
|
3767
|
+
}, ct = /* @__PURE__ */ h({
|
|
3768
|
+
...mt,
|
|
3789
3769
|
__name: "ActionBarItem",
|
|
3790
3770
|
props: {
|
|
3791
3771
|
item: {}
|
|
@@ -3793,8 +3773,8 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
3793
3773
|
setup(r) {
|
|
3794
3774
|
const s = r;
|
|
3795
3775
|
return L(() => s.item), (o, e) => {
|
|
3796
|
-
const n =
|
|
3797
|
-
return
|
|
3776
|
+
const n = p("sv-svg-icon"), t = X("key2click");
|
|
3777
|
+
return P((i(), u("button", {
|
|
3798
3778
|
class: l(o.item.getActionBarItemCss()),
|
|
3799
3779
|
type: "button",
|
|
3800
3780
|
onClick: e[0] || (e[0] = (a) => {
|
|
@@ -3820,15 +3800,15 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
3820
3800
|
key: 1,
|
|
3821
3801
|
class: l(o.item.getActionBarItemTitleCss())
|
|
3822
3802
|
}, R(o.item.title), 3)) : d("", !0)
|
|
3823
|
-
], 42,
|
|
3803
|
+
], 42, dt)), [
|
|
3824
3804
|
[t, { processEsc: !1, disableTabStop: o.item.disableTabStop }]
|
|
3825
3805
|
]);
|
|
3826
3806
|
};
|
|
3827
3807
|
}
|
|
3828
|
-
}),
|
|
3808
|
+
}), pt = ["disabled", "title", "role"], vt = {
|
|
3829
3809
|
inheritAttrs: !1
|
|
3830
|
-
},
|
|
3831
|
-
...
|
|
3810
|
+
}, yt = /* @__PURE__ */ h({
|
|
3811
|
+
...vt,
|
|
3832
3812
|
__name: "ActionBarItemDropdown",
|
|
3833
3813
|
props: {
|
|
3834
3814
|
item: {}
|
|
@@ -3845,16 +3825,16 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
3845
3825
|
e.dispose();
|
|
3846
3826
|
}
|
|
3847
3827
|
), (n, t) => {
|
|
3848
|
-
const a =
|
|
3828
|
+
const a = p("sv-svg-icon"), y = p("sv-popup"), m = X("key2click");
|
|
3849
3829
|
return i(), u($, null, [
|
|
3850
|
-
|
|
3830
|
+
P((i(), u("button", {
|
|
3851
3831
|
type: "button",
|
|
3852
3832
|
class: l(n.item.getActionBarItemCss()),
|
|
3853
|
-
onClick: t[0] || (t[0] = (
|
|
3854
|
-
n.item.action(n.item, !!
|
|
3833
|
+
onClick: t[0] || (t[0] = (v) => {
|
|
3834
|
+
n.item.action(n.item, !!v.pointerType);
|
|
3855
3835
|
}),
|
|
3856
|
-
onKeyup: t[1] || (t[1] = (
|
|
3857
|
-
|
|
3836
|
+
onKeyup: t[1] || (t[1] = (v) => {
|
|
3837
|
+
v.stopPropagation();
|
|
3858
3838
|
}),
|
|
3859
3839
|
disabled: n.item.disabled,
|
|
3860
3840
|
title: n.item.tooltip || n.item.title,
|
|
@@ -3871,17 +3851,17 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
3871
3851
|
key: 1,
|
|
3872
3852
|
class: l(n.item.getActionBarItemTitleCss())
|
|
3873
3853
|
}, R(n.item.title), 3)) : d("", !0)
|
|
3874
|
-
], 42,
|
|
3854
|
+
], 42, pt)), [
|
|
3875
3855
|
[m, { processEsc: !1, disableTabStop: n.item.disableTabStop }]
|
|
3876
3856
|
]),
|
|
3877
|
-
b(
|
|
3857
|
+
b(y, {
|
|
3878
3858
|
model: n.item.popupModel,
|
|
3879
3859
|
getTarget: f(o)
|
|
3880
3860
|
}, null, 8, ["model", "getTarget"])
|
|
3881
3861
|
], 64);
|
|
3882
3862
|
};
|
|
3883
3863
|
}
|
|
3884
|
-
}),
|
|
3864
|
+
}), qt = /* @__PURE__ */ h({
|
|
3885
3865
|
__name: "ActionBarSeparator",
|
|
3886
3866
|
props: {
|
|
3887
3867
|
item: {}
|
|
@@ -3892,25 +3872,25 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
3892
3872
|
class: l(["sv-action-bar-separator", o.value])
|
|
3893
3873
|
}, null, 2));
|
|
3894
3874
|
}
|
|
3895
|
-
}),
|
|
3875
|
+
}), gt = ["aria-label", "placeholder", "value"], ht = ["aria-label"], Ct = ["id"], bt = /* @__PURE__ */ h({
|
|
3896
3876
|
__name: "List",
|
|
3897
3877
|
props: {
|
|
3898
3878
|
model: {}
|
|
3899
3879
|
},
|
|
3900
3880
|
setup(r) {
|
|
3901
3881
|
const s = r, o = _(null), e = (a) => {
|
|
3902
|
-
const
|
|
3903
|
-
|
|
3882
|
+
const y = s.model;
|
|
3883
|
+
y.filterString = a.target.value;
|
|
3904
3884
|
}, n = (a) => {
|
|
3905
|
-
const
|
|
3906
|
-
|
|
3885
|
+
const y = s.model;
|
|
3886
|
+
y.filterString = a.target.value, s.model.goToItems(a);
|
|
3907
3887
|
}, t = (a) => {
|
|
3908
3888
|
s.model.onMouseMove(a);
|
|
3909
3889
|
};
|
|
3910
3890
|
return L(() => s.model), H(() => {
|
|
3911
3891
|
s.model.initListContainerHtmlElement(o.value);
|
|
3912
|
-
}), (a,
|
|
3913
|
-
const m =
|
|
3892
|
+
}), (a, y) => {
|
|
3893
|
+
const m = p("sv-svg-icon"), v = p("sv-list-item");
|
|
3914
3894
|
return i(), u("div", {
|
|
3915
3895
|
class: l(a.model.cssClasses.root),
|
|
3916
3896
|
ref_key: "listContainerElement",
|
|
@@ -3936,10 +3916,10 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
3936
3916
|
value: a.model.filterString,
|
|
3937
3917
|
onChange: e,
|
|
3938
3918
|
onKeyup: n
|
|
3939
|
-
}, null, 42,
|
|
3919
|
+
}, null, 42, gt),
|
|
3940
3920
|
a.model.showSearchClearButton && !!a.model.filterString ? (i(), u("button", {
|
|
3941
3921
|
key: 0,
|
|
3942
|
-
onClick:
|
|
3922
|
+
onClick: y[0] || (y[0] = (g) => {
|
|
3943
3923
|
a.model.onClickSearchClearButton(g);
|
|
3944
3924
|
}),
|
|
3945
3925
|
class: l(a.model.cssClasses.searchClearButtonIcon)
|
|
@@ -3950,41 +3930,41 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
3950
3930
|
})
|
|
3951
3931
|
], 2)) : d("", !0)
|
|
3952
3932
|
], 2)) : d("", !0),
|
|
3953
|
-
|
|
3933
|
+
P(c("div", {
|
|
3954
3934
|
class: l(a.model.cssClasses.emptyContainer)
|
|
3955
3935
|
}, [
|
|
3956
3936
|
c("div", {
|
|
3957
3937
|
class: l(a.model.cssClasses.emptyText),
|
|
3958
3938
|
"aria-label": a.model.emptyMessage
|
|
3959
|
-
}, R(a.model.emptyMessage), 11,
|
|
3939
|
+
}, R(a.model.emptyMessage), 11, ht)
|
|
3960
3940
|
], 2), [
|
|
3961
3941
|
[M, a.model.isEmpty]
|
|
3962
3942
|
]),
|
|
3963
|
-
a.model.renderElements ?
|
|
3943
|
+
a.model.renderElements ? P((i(), u("ul", {
|
|
3964
3944
|
key: 1,
|
|
3965
3945
|
class: l(a.model.getListClass()),
|
|
3966
3946
|
role: "listbox",
|
|
3967
3947
|
id: a.model.elementId,
|
|
3968
|
-
onMousedown:
|
|
3948
|
+
onMousedown: y[1] || (y[1] = (g) => {
|
|
3969
3949
|
g.preventDefault();
|
|
3970
3950
|
}),
|
|
3971
3951
|
onMousemove: t,
|
|
3972
|
-
onKeydown:
|
|
3952
|
+
onKeydown: y[2] || (y[2] = (g) => {
|
|
3973
3953
|
a.model.onKeyDown(g);
|
|
3974
3954
|
})
|
|
3975
3955
|
}, [
|
|
3976
|
-
(i(!0), u($, null, B(a.model.renderedActions, (g) => (i(), q(
|
|
3956
|
+
(i(!0), u($, null, B(a.model.renderedActions, (g) => (i(), q(v, {
|
|
3977
3957
|
item: g,
|
|
3978
3958
|
model: a.model,
|
|
3979
3959
|
key: g.id
|
|
3980
3960
|
}, null, 8, ["item", "model"]))), 128))
|
|
3981
|
-
], 42,
|
|
3961
|
+
], 42, Ct)), [
|
|
3982
3962
|
[M, !a.model.isEmpty]
|
|
3983
3963
|
]) : d("", !0)
|
|
3984
3964
|
], 2);
|
|
3985
3965
|
};
|
|
3986
3966
|
}
|
|
3987
|
-
}),
|
|
3967
|
+
}), kt = ["aria-selected", "id"], ft = ["title"], It = /* @__PURE__ */ h({
|
|
3988
3968
|
__name: "ListItem",
|
|
3989
3969
|
props: {
|
|
3990
3970
|
model: {},
|
|
@@ -3999,14 +3979,14 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
3999
3979
|
s.model.onLastItemRended(s.item);
|
|
4000
3980
|
});
|
|
4001
3981
|
}), (n, t) => {
|
|
4002
|
-
const a =
|
|
4003
|
-
return
|
|
3982
|
+
const a = p("sv-svg-icon"), y = p("survey-string"), m = X("key2click");
|
|
3983
|
+
return P((i(), u("li", {
|
|
4004
3984
|
tabindex: "0",
|
|
4005
3985
|
role: "option",
|
|
4006
3986
|
"aria-selected": n.model.isItemSelected(n.item),
|
|
4007
3987
|
key: n.item.id,
|
|
4008
3988
|
id: o.value,
|
|
4009
|
-
onPointerdown: t[0] || (t[0] = (
|
|
3989
|
+
onPointerdown: t[0] || (t[0] = (v) => n.model.onPointerDown(v, n.item)),
|
|
4010
3990
|
class: l(n.model.getItemClass(n.item)),
|
|
4011
3991
|
onClick: e
|
|
4012
3992
|
}, [
|
|
@@ -4025,7 +4005,7 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4025
4005
|
iconName: n.item.iconName,
|
|
4026
4006
|
size: n.item.iconSize
|
|
4027
4007
|
}, null, 8, ["class", "iconName", "size"])) : d("", !0),
|
|
4028
|
-
n.item.component ? d("", !0) : (i(), q(
|
|
4008
|
+
n.item.component ? d("", !0) : (i(), q(y, {
|
|
4029
4009
|
key: 1,
|
|
4030
4010
|
locString: n.item.locTitle
|
|
4031
4011
|
}, null, 8, ["locString"])),
|
|
@@ -4033,14 +4013,14 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4033
4013
|
key: 2,
|
|
4034
4014
|
item: n.item
|
|
4035
4015
|
}, null, 8, ["item"])) : d("", !0)
|
|
4036
|
-
], 14,
|
|
4037
|
-
], 42,
|
|
4016
|
+
], 14, ft)
|
|
4017
|
+
], 42, kt)), [
|
|
4038
4018
|
[M, n.model.isItemVisible(n.item)],
|
|
4039
4019
|
[m]
|
|
4040
4020
|
]);
|
|
4041
4021
|
};
|
|
4042
4022
|
}
|
|
4043
|
-
}),
|
|
4023
|
+
}), wt = /* @__PURE__ */ h({
|
|
4044
4024
|
__name: "Popup",
|
|
4045
4025
|
props: {
|
|
4046
4026
|
getTarget: { type: Function },
|
|
@@ -4050,7 +4030,7 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4050
4030
|
const s = r, o = j(
|
|
4051
4031
|
ae(s.model, void 0)
|
|
4052
4032
|
), e = _(null);
|
|
4053
|
-
return
|
|
4033
|
+
return G(
|
|
4054
4034
|
() => s.model,
|
|
4055
4035
|
(n) => {
|
|
4056
4036
|
o.value.dispose(), o.value = ae(n, void 0);
|
|
@@ -4065,7 +4045,7 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4065
4045
|
}), z(() => {
|
|
4066
4046
|
o.value.dispose();
|
|
4067
4047
|
}), (n, t) => {
|
|
4068
|
-
const a =
|
|
4048
|
+
const a = p("sv-popup-container");
|
|
4069
4049
|
return i(), u("div", {
|
|
4070
4050
|
ref_key: "root",
|
|
4071
4051
|
ref: e
|
|
@@ -4074,13 +4054,13 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4074
4054
|
], 512);
|
|
4075
4055
|
};
|
|
4076
4056
|
}
|
|
4077
|
-
}),
|
|
4057
|
+
}), St = { class: "sv-popup__shadow" }, Rt = { class: "sv-popup__body-content" }, Tt = {
|
|
4078
4058
|
key: 0,
|
|
4079
4059
|
class: "sv-popup__body-header"
|
|
4080
|
-
},
|
|
4060
|
+
}, $t = { class: "sv-popup__scrolling-content" }, _t = { class: "sv-popup__content" }, Dt = {
|
|
4081
4061
|
key: 1,
|
|
4082
4062
|
class: "sv-popup__body-footer"
|
|
4083
|
-
},
|
|
4063
|
+
}, Bt = /* @__PURE__ */ h({
|
|
4084
4064
|
__name: "PopupContainer",
|
|
4085
4065
|
props: {
|
|
4086
4066
|
model: {}
|
|
@@ -4091,21 +4071,21 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4091
4071
|
const e = (n) => {
|
|
4092
4072
|
n.stopPropagation();
|
|
4093
4073
|
};
|
|
4094
|
-
return L(() => s.model),
|
|
4074
|
+
return L(() => s.model), x(() => {
|
|
4095
4075
|
const n = s.model;
|
|
4096
4076
|
!o && n.isVisible && s.model.updateOnShowing(), o = n.isVisible;
|
|
4097
4077
|
}), H(() => {
|
|
4098
4078
|
s.model.isVisible && s.model.updateOnShowing();
|
|
4099
4079
|
}), (n, t) => {
|
|
4100
|
-
const a =
|
|
4101
|
-
return
|
|
4080
|
+
const a = p("sv-action-bar");
|
|
4081
|
+
return P((i(), u("div", {
|
|
4102
4082
|
tabindex: "-1",
|
|
4103
4083
|
class: l(["sv-popup", n.model.styleClass]),
|
|
4104
|
-
onKeydown: t[0] || (t[0] = (
|
|
4105
|
-
n.model.onKeyDown(
|
|
4084
|
+
onKeydown: t[0] || (t[0] = (y) => {
|
|
4085
|
+
n.model.onKeyDown(y);
|
|
4106
4086
|
}),
|
|
4107
|
-
onClick: t[1] || (t[1] = (
|
|
4108
|
-
n.model.clickOutside(
|
|
4087
|
+
onClick: t[1] || (t[1] = (y) => {
|
|
4088
|
+
n.model.clickOutside(y);
|
|
4109
4089
|
})
|
|
4110
4090
|
}, [
|
|
4111
4091
|
c("div", {
|
|
@@ -4119,19 +4099,19 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4119
4099
|
}),
|
|
4120
4100
|
onClick: e
|
|
4121
4101
|
}, [
|
|
4122
|
-
c("div",
|
|
4102
|
+
c("div", St, [
|
|
4123
4103
|
n.model.showHeader ? (i(), q(T(n.model.popupHeaderTemplate), {
|
|
4124
4104
|
key: 0,
|
|
4125
4105
|
model: n.model
|
|
4126
4106
|
}, null, 8, ["model"])) : d("", !0),
|
|
4127
|
-
c("div",
|
|
4128
|
-
n.model.title ? (i(), u("div",
|
|
4129
|
-
c("div",
|
|
4130
|
-
c("div",
|
|
4107
|
+
c("div", Rt, [
|
|
4108
|
+
n.model.title ? (i(), u("div", Tt, R(n.model.title), 1)) : d("", !0),
|
|
4109
|
+
c("div", $t, [
|
|
4110
|
+
c("div", _t, [
|
|
4131
4111
|
(i(), q(T(n.model.contentComponentName), F(ye(n.model.contentComponentData)), null, 16))
|
|
4132
4112
|
])
|
|
4133
4113
|
]),
|
|
4134
|
-
n.model.showFooter ? (i(), u("div",
|
|
4114
|
+
n.model.showFooter ? (i(), u("div", Dt, [
|
|
4135
4115
|
b(a, {
|
|
4136
4116
|
model: n.model.footerToolbar
|
|
4137
4117
|
}, null, 8, ["model"])
|
|
@@ -4144,7 +4124,7 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4144
4124
|
]);
|
|
4145
4125
|
};
|
|
4146
4126
|
}
|
|
4147
|
-
}),
|
|
4127
|
+
}), Lt = /* @__PURE__ */ h({
|
|
4148
4128
|
__name: "PopupPointer",
|
|
4149
4129
|
props: {
|
|
4150
4130
|
model: {}
|
|
@@ -4158,10 +4138,10 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4158
4138
|
})
|
|
4159
4139
|
}, null, 4));
|
|
4160
4140
|
}
|
|
4161
|
-
}),
|
|
4141
|
+
}), Nt = {
|
|
4162
4142
|
key: 0,
|
|
4163
4143
|
class: "sv-components-column"
|
|
4164
|
-
},
|
|
4144
|
+
}, Pt = /* @__PURE__ */ h({
|
|
4165
4145
|
__name: "Container",
|
|
4166
4146
|
props: {
|
|
4167
4147
|
survey: {},
|
|
@@ -4173,7 +4153,7 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4173
4153
|
() => s.survey.getContainerContent(s.container)
|
|
4174
4154
|
);
|
|
4175
4155
|
return (e, n) => o.value.length > 0 ? (i(), u($, { key: 0 }, [
|
|
4176
|
-
e.needRenderWrapper ? (i(), u("div",
|
|
4156
|
+
e.needRenderWrapper ? (i(), u("div", Nt, [
|
|
4177
4157
|
(i(!0), u($, null, B(o.value, (t, a) => (i(), q(T(t.component), {
|
|
4178
4158
|
survey: e.survey,
|
|
4179
4159
|
container: e.container,
|
|
@@ -4185,7 +4165,7 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4185
4165
|
}, null, 8, ["survey", "model"]))), 256))
|
|
4186
4166
|
], 64)) : d("", !0);
|
|
4187
4167
|
}
|
|
4188
|
-
}),
|
|
4168
|
+
}), Z = /* @__PURE__ */ h({
|
|
4189
4169
|
__name: "Progress",
|
|
4190
4170
|
props: {
|
|
4191
4171
|
survey: {},
|
|
@@ -4214,7 +4194,7 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4214
4194
|
}, R(t.survey.progressText), 3)
|
|
4215
4195
|
], 2));
|
|
4216
4196
|
}
|
|
4217
|
-
}),
|
|
4197
|
+
}), At = ["onClick"], Mt = ["title"], Ht = ["title"], Wt = /* @__PURE__ */ h({
|
|
4218
4198
|
__name: "ProgressButtons",
|
|
4219
4199
|
props: {
|
|
4220
4200
|
survey: {}
|
|
@@ -4222,20 +4202,20 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4222
4202
|
setup(r) {
|
|
4223
4203
|
const s = r, o = new Ae(s.survey), e = _(!1), n = _(), t = w(() => s.survey.css);
|
|
4224
4204
|
let a;
|
|
4225
|
-
const
|
|
4205
|
+
const y = (C) => o.isListElementClickable(C), m = (C) => o.getListElementCss(C), v = (C) => {
|
|
4226
4206
|
o.clickListElement(C);
|
|
4227
|
-
}, g = (C,
|
|
4228
|
-
let
|
|
4229
|
-
|
|
4207
|
+
}, g = (C, N) => o.getScrollButtonCss(C, N), I = (C) => {
|
|
4208
|
+
let N = n.value;
|
|
4209
|
+
N.scrollLeft += (C ? -1 : 1) * 70;
|
|
4230
4210
|
};
|
|
4231
4211
|
return H(() => {
|
|
4232
4212
|
const C = n.value;
|
|
4233
4213
|
a = setInterval(() => {
|
|
4234
4214
|
e.value = C.scrollWidth > C.offsetWidth;
|
|
4235
4215
|
}, 100);
|
|
4236
|
-
}),
|
|
4216
|
+
}), J(() => {
|
|
4237
4217
|
typeof a < "u" && (clearInterval(a), a = void 0);
|
|
4238
|
-
}), (C,
|
|
4218
|
+
}), (C, N) => (i(), u("div", {
|
|
4239
4219
|
class: l(t.value.progressButtonsContainerCenter)
|
|
4240
4220
|
}, [
|
|
4241
4221
|
c("div", {
|
|
@@ -4243,7 +4223,7 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4243
4223
|
}, [
|
|
4244
4224
|
c("div", {
|
|
4245
4225
|
class: l(g(e.value, !0)),
|
|
4246
|
-
onClick:
|
|
4226
|
+
onClick: N[0] || (N[0] = (k) => I(!0)),
|
|
4247
4227
|
role: "button"
|
|
4248
4228
|
}, null, 2),
|
|
4249
4229
|
c("div", {
|
|
@@ -4257,28 +4237,28 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4257
4237
|
(i(!0), u($, null, B(C.survey.visiblePages, (k, D) => (i(), u("li", {
|
|
4258
4238
|
key: "listelement" + D,
|
|
4259
4239
|
class: l(m(D)),
|
|
4260
|
-
onClick: (E) =>
|
|
4240
|
+
onClick: (E) => y(D) ? v(D) : null
|
|
4261
4241
|
}, [
|
|
4262
4242
|
c("div", {
|
|
4263
4243
|
class: l(t.value.progressButtonsPageTitle),
|
|
4264
4244
|
title: k.renderedNavigationTitle
|
|
4265
|
-
}, R(k.renderedNavigationTitle), 11,
|
|
4245
|
+
}, R(k.renderedNavigationTitle), 11, Mt),
|
|
4266
4246
|
c("div", {
|
|
4267
4247
|
class: l(t.value.progressButtonsPageDescription),
|
|
4268
4248
|
title: k.locNavigationDescription.renderedHtml
|
|
4269
|
-
}, R(k.locNavigationDescription.renderedHtml), 11,
|
|
4270
|
-
], 10,
|
|
4249
|
+
}, R(k.locNavigationDescription.renderedHtml), 11, Ht)
|
|
4250
|
+
], 10, At))), 128))
|
|
4271
4251
|
], 2)
|
|
4272
4252
|
], 2),
|
|
4273
4253
|
c("div", {
|
|
4274
4254
|
class: l(g(e.value, !1)),
|
|
4275
|
-
onClick:
|
|
4255
|
+
onClick: N[1] || (N[1] = (k) => I(!1)),
|
|
4276
4256
|
role: "button"
|
|
4277
4257
|
}, null, 2)
|
|
4278
4258
|
], 2)
|
|
4279
4259
|
], 2));
|
|
4280
4260
|
}
|
|
4281
|
-
}),
|
|
4261
|
+
}), Et = /* @__PURE__ */ h({
|
|
4282
4262
|
__name: "ProgressToc",
|
|
4283
4263
|
props: {
|
|
4284
4264
|
survey: {}
|
|
@@ -4286,13 +4266,13 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4286
4266
|
setup(r) {
|
|
4287
4267
|
const s = r, o = new Me(s.survey);
|
|
4288
4268
|
return (e, n) => {
|
|
4289
|
-
const t =
|
|
4269
|
+
const t = p("sv-svg-icon"), a = p("sv-popup"), y = p("sv-list"), m = X("key2click");
|
|
4290
4270
|
return i(), u("div", {
|
|
4291
4271
|
class: l(f(o).containerCss)
|
|
4292
4272
|
}, [
|
|
4293
|
-
f(o).isMobile ?
|
|
4273
|
+
f(o).isMobile ? P((i(), u("div", {
|
|
4294
4274
|
key: 0,
|
|
4295
|
-
onClick: n[0] || (n[0] = (...
|
|
4275
|
+
onClick: n[0] || (n[0] = (...v) => f(o).togglePopup && f(o).togglePopup(...v))
|
|
4296
4276
|
}, [
|
|
4297
4277
|
b(t, {
|
|
4298
4278
|
iconName: f(o).icon,
|
|
@@ -4303,17 +4283,17 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4303
4283
|
}, null, 8, ["model"])
|
|
4304
4284
|
])), [
|
|
4305
4285
|
[m]
|
|
4306
|
-
]) : (i(), q(
|
|
4286
|
+
]) : (i(), q(y, {
|
|
4307
4287
|
key: 1,
|
|
4308
4288
|
model: f(o).listModel
|
|
4309
4289
|
}, null, 8, ["model"]))
|
|
4310
4290
|
], 2);
|
|
4311
4291
|
};
|
|
4312
4292
|
}
|
|
4313
|
-
}),
|
|
4293
|
+
}), Vt = { onsubmit: "return false;" }, Ot = {
|
|
4314
4294
|
key: 0,
|
|
4315
4295
|
class: "sv_custom_header"
|
|
4316
|
-
},
|
|
4296
|
+
}, Ft = { class: "sv-components-column sv-components-column--expandable" }, zt = ["id"], Ut = { key: 2 }, Kt = ["innerHTML"], jt = ["innerHTML"], Qt = ["innerHTML"], ce = /* @__PURE__ */ h({
|
|
4317
4297
|
__name: "Survey",
|
|
4318
4298
|
props: {
|
|
4319
4299
|
model: {},
|
|
@@ -4323,24 +4303,24 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4323
4303
|
const s = r, o = _(), e = _(""), n = _(1), t = w(() => {
|
|
4324
4304
|
const C = s.survey ? s.survey : s.model;
|
|
4325
4305
|
return we(C);
|
|
4326
|
-
}), a = w(() => t.value.activePage ? t.value.activePage.id : ""),
|
|
4306
|
+
}), a = w(() => t.value.activePage ? t.value.activePage.id : ""), y = () => {
|
|
4327
4307
|
const C = a.value;
|
|
4328
4308
|
return !!t.value && C + n.value.toString();
|
|
4329
4309
|
}, m = w(
|
|
4330
4310
|
() => t.value.showCompletedPage && t.value.state === "completed"
|
|
4331
|
-
),
|
|
4311
|
+
), v = w(() => t.value.css), g = w(() => "page" + y()), I = () => m.value ? (e.value || (e.value = t.value.processedCompletedHtml), e.value) : "";
|
|
4332
4312
|
return L(() => t.value), H(() => {
|
|
4333
4313
|
if (!!t.value) {
|
|
4334
4314
|
var C = o.value;
|
|
4335
4315
|
C && t.value.afterRenderSurvey(C), t.value.renderCallback = () => {
|
|
4336
|
-
var
|
|
4337
|
-
n.value++, (k = (
|
|
4316
|
+
var N, k;
|
|
4317
|
+
n.value++, (k = (N = oe()) == null ? void 0 : N.proxy) == null || k.$forceUpdate();
|
|
4338
4318
|
}, t.value.startTimerFromUI();
|
|
4339
4319
|
}
|
|
4340
4320
|
}), z(() => {
|
|
4341
4321
|
t.value.stopTimer(), t.value.renderCallback = void 0;
|
|
4342
|
-
}), (C,
|
|
4343
|
-
const k =
|
|
4322
|
+
}), (C, N) => {
|
|
4323
|
+
const k = p("sv-svg-bundle"), D = p("survey-popup-modal"), E = p("survey-header"), V = p("survey-page"), U = p("sv-brand-info"), re = p("sv-notifier");
|
|
4344
4324
|
return i(), u("div", {
|
|
4345
4325
|
class: l(t.value.getRootCss()),
|
|
4346
4326
|
style: S(t.value.themeVariables),
|
|
@@ -4354,13 +4334,13 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4354
4334
|
b(D),
|
|
4355
4335
|
t.value.renderBackgroundImage ? (i(), u("div", {
|
|
4356
4336
|
key: 0,
|
|
4357
|
-
class: l(
|
|
4337
|
+
class: l(v.value.rootBackgroundImage),
|
|
4358
4338
|
style: S(t.value.backgroundImageStyle)
|
|
4359
4339
|
}, null, 6)) : d("", !0),
|
|
4360
|
-
c("form",
|
|
4361
|
-
t.value.hasLogo ? d("", !0) : (i(), u("div",
|
|
4340
|
+
c("form", Vt, [
|
|
4341
|
+
t.value.hasLogo ? d("", !0) : (i(), u("div", Ot)),
|
|
4362
4342
|
c("div", {
|
|
4363
|
-
class: l(
|
|
4343
|
+
class: l(v.value.container)
|
|
4364
4344
|
}, [
|
|
4365
4345
|
t.value.headerView === "basic" ? (i(), q(E, {
|
|
4366
4346
|
key: 0,
|
|
@@ -4380,7 +4360,7 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4380
4360
|
container: "left",
|
|
4381
4361
|
needRenderWrapper: !0
|
|
4382
4362
|
}, null, 8, ["survey"])),
|
|
4383
|
-
c("div",
|
|
4363
|
+
c("div", Ft, [
|
|
4384
4364
|
(i(), q(T("sv-components-container"), {
|
|
4385
4365
|
survey: t.value,
|
|
4386
4366
|
container: "center",
|
|
@@ -4396,18 +4376,18 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4396
4376
|
container: "contentTop",
|
|
4397
4377
|
needRenderWrapper: !0
|
|
4398
4378
|
}, null, 8, ["survey"])),
|
|
4399
|
-
(i(), q(
|
|
4379
|
+
(i(), q(V, {
|
|
4400
4380
|
key: g.value,
|
|
4401
4381
|
survey: t.value,
|
|
4402
4382
|
page: t.value.activePage,
|
|
4403
|
-
css:
|
|
4383
|
+
css: v.value
|
|
4404
4384
|
}, null, 8, ["survey", "page", "css"])),
|
|
4405
4385
|
(i(), q(T("sv-components-container"), {
|
|
4406
4386
|
survey: t.value,
|
|
4407
4387
|
container: "contentBottom",
|
|
4408
4388
|
needRenderWrapper: !0
|
|
4409
4389
|
}, null, 8, ["survey"]))
|
|
4410
|
-
], 14,
|
|
4390
|
+
], 14, zt)
|
|
4411
4391
|
]),
|
|
4412
4392
|
(i(), q(T("sv-components-container"), {
|
|
4413
4393
|
survey: t.value,
|
|
@@ -4420,11 +4400,11 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4420
4400
|
container: "footer",
|
|
4421
4401
|
needRenderWrapper: !1
|
|
4422
4402
|
}, null, 8, ["survey"])),
|
|
4423
|
-
m.value ? (i(), u("div",
|
|
4403
|
+
m.value ? (i(), u("div", Ut, [
|
|
4424
4404
|
c("div", {
|
|
4425
4405
|
innerHTML: I(),
|
|
4426
4406
|
class: l(t.value.completedCss)
|
|
4427
|
-
}, null, 10,
|
|
4407
|
+
}, null, 10, Kt),
|
|
4428
4408
|
(i(), q(T("sv-components-container"), {
|
|
4429
4409
|
survey: t.value,
|
|
4430
4410
|
container: "completePage",
|
|
@@ -4435,15 +4415,15 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4435
4415
|
key: 3,
|
|
4436
4416
|
class: l(t.value.completedBeforeCss),
|
|
4437
4417
|
innerHTML: t.value.processedCompletedBeforeHtml
|
|
4438
|
-
}, null, 10,
|
|
4418
|
+
}, null, 10, jt)) : d("", !0),
|
|
4439
4419
|
t.value.state === "loading" ? (i(), u("div", {
|
|
4440
4420
|
key: 4,
|
|
4441
4421
|
class: l(t.value.loadingBodyCss),
|
|
4442
4422
|
innerHTML: t.value.processedLoadingHtml
|
|
4443
|
-
}, null, 10,
|
|
4423
|
+
}, null, 10, Qt)) : d("", !0),
|
|
4444
4424
|
t.value.state === "empty" ? (i(), u("div", {
|
|
4445
4425
|
key: 5,
|
|
4446
|
-
class: l(
|
|
4426
|
+
class: l(v.value.bodyEmpty)
|
|
4447
4427
|
}, R(t.value.emptySurveyText), 3)) : d("", !0)
|
|
4448
4428
|
], 2)
|
|
4449
4429
|
]),
|
|
@@ -4455,7 +4435,7 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4455
4435
|
], 6);
|
|
4456
4436
|
};
|
|
4457
4437
|
}
|
|
4458
|
-
}),
|
|
4438
|
+
}), Gt = /* @__PURE__ */ h({
|
|
4459
4439
|
__name: "Notifier",
|
|
4460
4440
|
props: {
|
|
4461
4441
|
model: {}
|
|
@@ -4463,8 +4443,8 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4463
4443
|
setup(r) {
|
|
4464
4444
|
const s = r;
|
|
4465
4445
|
return L(() => s.model), (o, e) => {
|
|
4466
|
-
const n =
|
|
4467
|
-
return
|
|
4446
|
+
const n = p("sv-action-bar");
|
|
4447
|
+
return P((i(), u("div", {
|
|
4468
4448
|
class: l(o.model.css),
|
|
4469
4449
|
style: S({ visibility: o.model.active ? "visible" : "hidden" }),
|
|
4470
4450
|
role: "alert",
|
|
@@ -4479,7 +4459,7 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4479
4459
|
]);
|
|
4480
4460
|
};
|
|
4481
4461
|
}
|
|
4482
|
-
}),
|
|
4462
|
+
}), Jt = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], Xt = { key: 1 }, Yt = /* @__PURE__ */ h({
|
|
4483
4463
|
__name: "QuestionOther",
|
|
4484
4464
|
props: {
|
|
4485
4465
|
question: {},
|
|
@@ -4507,11 +4487,11 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4507
4487
|
onInput: o[1] || (o[1] = (e) => {
|
|
4508
4488
|
s.question.onOtherValueInput(e);
|
|
4509
4489
|
})
|
|
4510
|
-
}, null, 46,
|
|
4511
|
-
s.question.isReadOnlyRenderDiv() ? (i(), u("div",
|
|
4490
|
+
}, null, 46, Jt)),
|
|
4491
|
+
s.question.isReadOnlyRenderDiv() ? (i(), u("div", Xt, R(s.question.otherValue), 1)) : d("", !0)
|
|
4512
4492
|
], 2));
|
|
4513
4493
|
}
|
|
4514
|
-
}),
|
|
4494
|
+
}), Zt = ["disabled", "value", "title"], xt = /* @__PURE__ */ h({
|
|
4515
4495
|
__name: "SurveyNavigationButton",
|
|
4516
4496
|
props: {
|
|
4517
4497
|
item: {}
|
|
@@ -4527,7 +4507,7 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4527
4507
|
title: e.item.getTooltip(),
|
|
4528
4508
|
onMousedown: o,
|
|
4529
4509
|
onClick: n[0] || (n[0] = (...t) => e.item.action && e.item.action(...t))
|
|
4530
|
-
}, null, 42,
|
|
4510
|
+
}, null, 42, Zt)) : d("", !0);
|
|
4531
4511
|
}
|
|
4532
4512
|
}), pe = /* @__PURE__ */ h({
|
|
4533
4513
|
__name: "PopupSurvey",
|
|
@@ -4545,13 +4525,13 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4545
4525
|
return (I = o.value) == null ? void 0 : I.isExpanded;
|
|
4546
4526
|
}), a = () => {
|
|
4547
4527
|
o.value.changeExpandCollapse();
|
|
4548
|
-
},
|
|
4528
|
+
}, y = () => {
|
|
4549
4529
|
o.value.hide();
|
|
4550
|
-
}, m = () => "SurveyComponent",
|
|
4530
|
+
}, m = () => "SurveyComponent", v = () => {
|
|
4551
4531
|
o.value.onScroll();
|
|
4552
4532
|
};
|
|
4553
4533
|
L(() => o.value);
|
|
4554
|
-
const g =
|
|
4534
|
+
const g = G(
|
|
4555
4535
|
() => s.survey,
|
|
4556
4536
|
(I) => {
|
|
4557
4537
|
const C = new He(null, I);
|
|
@@ -4564,7 +4544,7 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4564
4544
|
return z(() => {
|
|
4565
4545
|
g();
|
|
4566
4546
|
}), (I, C) => {
|
|
4567
|
-
const
|
|
4547
|
+
const N = p("survey-string"), k = p("sv-svg-icon");
|
|
4568
4548
|
return o.value.isShowing ? (i(), u("div", {
|
|
4569
4549
|
key: 0,
|
|
4570
4550
|
style: S([{ position: "fixed", bottom: "3px", right: "10px" }, {
|
|
@@ -4584,7 +4564,7 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4584
4564
|
style: { "padding-right": "10px" },
|
|
4585
4565
|
class: l(o.value.cssHeaderTitle)
|
|
4586
4566
|
}, [
|
|
4587
|
-
b(
|
|
4567
|
+
b(N, {
|
|
4588
4568
|
locString: I.survey.locTitle
|
|
4589
4569
|
}, null, 8, ["locString"])
|
|
4590
4570
|
], 2),
|
|
@@ -4596,7 +4576,7 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4596
4576
|
o.value.allowClose ? (i(), u("span", {
|
|
4597
4577
|
key: 0,
|
|
4598
4578
|
class: l(o.value.cssHeaderButton),
|
|
4599
|
-
onClick:
|
|
4579
|
+
onClick: y,
|
|
4600
4580
|
style: { transform: "rotate(45deg)", float: "right", cursor: "pointer", "user-select": "none", width: "24px", height: "24px" }
|
|
4601
4581
|
}, [
|
|
4602
4582
|
b(k, {
|
|
@@ -4619,14 +4599,14 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4619
4599
|
t.value ? (i(), u("div", {
|
|
4620
4600
|
key: 0,
|
|
4621
4601
|
class: l(o.value.cssBody),
|
|
4622
|
-
onScroll:
|
|
4602
|
+
onScroll: v
|
|
4623
4603
|
}, [
|
|
4624
4604
|
(i(), q(T(m()), { survey: I.survey }, null, 8, ["survey"]))
|
|
4625
4605
|
], 34)) : d("", !0)
|
|
4626
4606
|
], 6)) : d("", !0);
|
|
4627
4607
|
};
|
|
4628
4608
|
}
|
|
4629
|
-
}),
|
|
4609
|
+
}), ei = ["innerHTML"], si = /* @__PURE__ */ h({
|
|
4630
4610
|
__name: "CustomWidget",
|
|
4631
4611
|
props: {
|
|
4632
4612
|
question: {},
|
|
@@ -4640,37 +4620,37 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4640
4620
|
), t = w(() => s.question.customWidget.htmlTemplate), a = w(() => "survey-" + s.question.getTemplate());
|
|
4641
4621
|
return H(() => {
|
|
4642
4622
|
s.question.customWidget.afterRender(s.question, o.value);
|
|
4643
|
-
}),
|
|
4623
|
+
}), J(() => {
|
|
4644
4624
|
s.question.customWidget.willUnmount(s.question, o.value);
|
|
4645
|
-
}), (
|
|
4625
|
+
}), (y, m) => (i(), u("div", {
|
|
4646
4626
|
ref_key: "root",
|
|
4647
4627
|
ref: o
|
|
4648
4628
|
}, [
|
|
4649
4629
|
n.value ? (i(), u("div", {
|
|
4650
4630
|
key: 0,
|
|
4651
4631
|
innerHTML: t.value
|
|
4652
|
-
}, null, 8,
|
|
4632
|
+
}, null, 8, ei)) : d("", !0),
|
|
4653
4633
|
e.value ? (i(), q(T(a.value), {
|
|
4654
4634
|
key: 1,
|
|
4655
|
-
question:
|
|
4656
|
-
css:
|
|
4635
|
+
question: y.question,
|
|
4636
|
+
css: y.css
|
|
4657
4637
|
}, null, 8, ["question", "css"])) : d("", !0)
|
|
4658
4638
|
], 512));
|
|
4659
4639
|
}
|
|
4660
|
-
}),
|
|
4640
|
+
}), ni = /* @__PURE__ */ h({
|
|
4661
4641
|
__name: "PopupModal",
|
|
4662
4642
|
setup(r) {
|
|
4663
4643
|
const s = j();
|
|
4664
|
-
function o(n, t, a,
|
|
4644
|
+
function o(n, t, a, y, m, v, g = "popup") {
|
|
4665
4645
|
const I = We(
|
|
4666
4646
|
n,
|
|
4667
4647
|
t,
|
|
4668
4648
|
a,
|
|
4669
|
-
|
|
4649
|
+
y,
|
|
4670
4650
|
void 0,
|
|
4671
4651
|
void 0,
|
|
4672
4652
|
m,
|
|
4673
|
-
|
|
4653
|
+
v,
|
|
4674
4654
|
g
|
|
4675
4655
|
);
|
|
4676
4656
|
return e(I);
|
|
@@ -4690,7 +4670,7 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4690
4670
|
})), K.showDialog || (K.showDialog = e, z(() => {
|
|
4691
4671
|
K.showDialog = void 0;
|
|
4692
4672
|
})), (n, t) => {
|
|
4693
|
-
const a =
|
|
4673
|
+
const a = p("sv-popup-container");
|
|
4694
4674
|
return s.value ? (i(), q(Se, {
|
|
4695
4675
|
key: 0,
|
|
4696
4676
|
to: s.value.container
|
|
@@ -4699,7 +4679,7 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4699
4679
|
], 8, ["to"])) : d("", !0);
|
|
4700
4680
|
};
|
|
4701
4681
|
}
|
|
4702
|
-
}),
|
|
4682
|
+
}), oi = /* @__PURE__ */ h({
|
|
4703
4683
|
__name: "CharacterCounter",
|
|
4704
4684
|
props: {
|
|
4705
4685
|
counter: {},
|
|
@@ -4711,7 +4691,7 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4711
4691
|
class: l(o.remainingCharacterCounter)
|
|
4712
4692
|
}, R(o.counter.remainingCharacterCounter), 3));
|
|
4713
4693
|
}
|
|
4714
|
-
}),
|
|
4694
|
+
}), ti = /* @__PURE__ */ h({
|
|
4715
4695
|
inheritAttrs: !1,
|
|
4716
4696
|
__name: "Composite",
|
|
4717
4697
|
props: {
|
|
@@ -4723,7 +4703,7 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4723
4703
|
A(s, o);
|
|
4724
4704
|
const e = w(() => s.question.contentPanel);
|
|
4725
4705
|
return (n, t) => {
|
|
4726
|
-
const a =
|
|
4706
|
+
const a = p("survey-panel");
|
|
4727
4707
|
return i(), q(a, {
|
|
4728
4708
|
ref_key: "root",
|
|
4729
4709
|
ref: o,
|
|
@@ -4732,7 +4712,7 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4732
4712
|
}, null, 8, ["element", "css"]);
|
|
4733
4713
|
};
|
|
4734
4714
|
}
|
|
4735
|
-
}),
|
|
4715
|
+
}), ii = /* @__PURE__ */ h({
|
|
4736
4716
|
inheritAttrs: !1,
|
|
4737
4717
|
__name: "Custom",
|
|
4738
4718
|
props: {
|
|
@@ -4749,9 +4729,9 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4749
4729
|
css: t.css
|
|
4750
4730
|
}, null, 8, ["question", "css"]));
|
|
4751
4731
|
}
|
|
4752
|
-
}),
|
|
4753
|
-
|
|
4754
|
-
], ve = 440,
|
|
4732
|
+
}), ri = /* @__PURE__ */ c("use", { "xlink:href": "#icon-timercircle" }, null, -1), li = [
|
|
4733
|
+
ri
|
|
4734
|
+
], ve = 440, ai = /* @__PURE__ */ h({
|
|
4755
4735
|
__name: "TimerPanel",
|
|
4756
4736
|
props: {
|
|
4757
4737
|
model: {},
|
|
@@ -4767,7 +4747,7 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4767
4747
|
key: 0,
|
|
4768
4748
|
class: l(n.model.getProgressCss()),
|
|
4769
4749
|
style: S({ strokeDasharray: ve, strokeDashoffset: o.value })
|
|
4770
|
-
},
|
|
4750
|
+
}, li, 6)) : d("", !0),
|
|
4771
4751
|
c("div", {
|
|
4772
4752
|
class: l(n.model.textContainerCss)
|
|
4773
4753
|
}, [
|
|
@@ -4779,24 +4759,24 @@ const ot = /* @__PURE__ */ he(Zo, [["render", nt]]), tt = /* @__PURE__ */ c("use
|
|
|
4779
4759
|
class: l(n.model.minorTextCss)
|
|
4780
4760
|
}, R(n.model.clockMinorText), 3)) : d("", !0)
|
|
4781
4761
|
], 2)
|
|
4782
|
-
], 2)) :
|
|
4762
|
+
], 2)) : P((i(), u("div", {
|
|
4783
4763
|
key: 1,
|
|
4784
4764
|
class: l(n.model.survey.getCss().timerRoot)
|
|
4785
4765
|
}, R(e.value), 3)), [
|
|
4786
4766
|
[M, n.model.isRunning && !n.model.showTimerAsClock]
|
|
4787
4767
|
]);
|
|
4788
4768
|
}
|
|
4789
|
-
}),
|
|
4790
|
-
function
|
|
4791
|
-
const o =
|
|
4792
|
-
return i(), u("div",
|
|
4769
|
+
}), ui = {}, di = { class: "sd-loading-indicator" };
|
|
4770
|
+
function mi(r, s) {
|
|
4771
|
+
const o = p("sv-svg-icon");
|
|
4772
|
+
return i(), u("div", di, [
|
|
4793
4773
|
b(o, {
|
|
4794
4774
|
iconName: "icon-loading",
|
|
4795
4775
|
size: "'auto'"
|
|
4796
4776
|
})
|
|
4797
4777
|
]);
|
|
4798
4778
|
}
|
|
4799
|
-
const
|
|
4779
|
+
const ci = /* @__PURE__ */ he(ui, [["render", mi]]), pi = { key: 2 }, vi = /* @__PURE__ */ h({
|
|
4800
4780
|
__name: "Header",
|
|
4801
4781
|
props: {
|
|
4802
4782
|
model: {},
|
|
@@ -4808,7 +4788,7 @@ const pi = /* @__PURE__ */ he(di, [["render", ci]]), vi = { key: 2 }, yi = /* @_
|
|
|
4808
4788
|
const o = s.model;
|
|
4809
4789
|
return o.survey = s.survey, s.model;
|
|
4810
4790
|
}), (o, e) => {
|
|
4811
|
-
const n =
|
|
4791
|
+
const n = p("sv-header-cell"), t = p("sv-header-mobile");
|
|
4812
4792
|
return i(), u("div", {
|
|
4813
4793
|
class: l(o.model.headerClasses),
|
|
4814
4794
|
style: S({ height: o.model.renderedHeight })
|
|
@@ -4823,28 +4803,28 @@ const pi = /* @__PURE__ */ he(di, [["render", ci]]), vi = { key: 2 }, yi = /* @_
|
|
|
4823
4803
|
class: l(o.model.contentClasses),
|
|
4824
4804
|
style: S({ maxWidth: o.model.maxWidth })
|
|
4825
4805
|
}, [
|
|
4826
|
-
(i(!0), u($, null, B(o.model.cells, (a,
|
|
4806
|
+
(i(!0), u($, null, B(o.model.cells, (a, y) => (i(), q(n, {
|
|
4827
4807
|
model: a,
|
|
4828
|
-
key:
|
|
4808
|
+
key: y
|
|
4829
4809
|
}, null, 8, ["model"]))), 128))
|
|
4830
4810
|
], 6)),
|
|
4831
|
-
o.survey.isMobile ? (i(), u("div",
|
|
4811
|
+
o.survey.isMobile ? (i(), u("div", pi, [
|
|
4832
4812
|
b(t, { model: o.model }, null, 8, ["model"])
|
|
4833
4813
|
])) : d("", !0)
|
|
4834
4814
|
], 6);
|
|
4835
4815
|
};
|
|
4836
4816
|
}
|
|
4837
|
-
}),
|
|
4817
|
+
}), yi = {
|
|
4838
4818
|
key: 0,
|
|
4839
4819
|
class: "sv-header__logo"
|
|
4840
|
-
},
|
|
4820
|
+
}, qi = ["src", "width", "height", "alt"], gi = /* @__PURE__ */ h({
|
|
4841
4821
|
__name: "HeaderCell",
|
|
4842
4822
|
props: {
|
|
4843
4823
|
model: {}
|
|
4844
4824
|
},
|
|
4845
4825
|
setup(r) {
|
|
4846
4826
|
return (s, o) => {
|
|
4847
|
-
const e =
|
|
4827
|
+
const e = p("survey-element-title"), n = p("survey-string");
|
|
4848
4828
|
return i(), u("div", {
|
|
4849
4829
|
class: l(s.model.css),
|
|
4850
4830
|
style: S(s.model.style)
|
|
@@ -4853,7 +4833,7 @@ const pi = /* @__PURE__ */ he(di, [["render", ci]]), vi = { key: 2 }, yi = /* @_
|
|
|
4853
4833
|
class: "sv-header__cell-content",
|
|
4854
4834
|
style: S(s.model.contentStyle)
|
|
4855
4835
|
}, [
|
|
4856
|
-
s.model.showLogo ? (i(), u("div",
|
|
4836
|
+
s.model.showLogo ? (i(), u("div", yi, [
|
|
4857
4837
|
c("div", {
|
|
4858
4838
|
class: l(s.model.survey.logoClassNames)
|
|
4859
4839
|
}, [
|
|
@@ -4864,7 +4844,7 @@ const pi = /* @__PURE__ */ he(di, [["render", ci]]), vi = { key: 2 }, yi = /* @_
|
|
|
4864
4844
|
height: s.model.survey.renderedLogoHeight,
|
|
4865
4845
|
alt: s.model.survey.locTitle.renderedHtml,
|
|
4866
4846
|
style: S({ objectFit: s.model.survey.logoFit, width: s.model.survey.renderedStyleLogoWidth, height: s.model.survey.renderedStyleLogoHeight })
|
|
4867
|
-
}, null, 14,
|
|
4847
|
+
}, null, 14, qi)
|
|
4868
4848
|
], 2)
|
|
4869
4849
|
])) : d("", !0),
|
|
4870
4850
|
s.model.showTitle ? (i(), u("div", {
|
|
@@ -4895,19 +4875,19 @@ const pi = /* @__PURE__ */ he(di, [["render", ci]]), vi = { key: 2 }, yi = /* @_
|
|
|
4895
4875
|
], 6);
|
|
4896
4876
|
};
|
|
4897
4877
|
}
|
|
4898
|
-
}),
|
|
4878
|
+
}), hi = { class: "sv-header--mobile" }, Ci = {
|
|
4899
4879
|
key: 0,
|
|
4900
4880
|
class: "sv-header__logo"
|
|
4901
|
-
},
|
|
4881
|
+
}, bi = ["src", "width", "height", "alt"], ki = /* @__PURE__ */ h({
|
|
4902
4882
|
__name: "HeaderMobile",
|
|
4903
4883
|
props: {
|
|
4904
4884
|
model: {}
|
|
4905
4885
|
},
|
|
4906
4886
|
setup(r) {
|
|
4907
4887
|
return (s, o) => {
|
|
4908
|
-
const e =
|
|
4909
|
-
return i(), u("div",
|
|
4910
|
-
s.model.survey.hasLogo ? (i(), u("div",
|
|
4888
|
+
const e = p("survey-element-title"), n = p("survey-string");
|
|
4889
|
+
return i(), u("div", hi, [
|
|
4890
|
+
s.model.survey.hasLogo ? (i(), u("div", Ci, [
|
|
4911
4891
|
c("div", {
|
|
4912
4892
|
class: l(s.model.survey.logoClassNames)
|
|
4913
4893
|
}, [
|
|
@@ -4918,7 +4898,7 @@ const pi = /* @__PURE__ */ he(di, [["render", ci]]), vi = { key: 2 }, yi = /* @_
|
|
|
4918
4898
|
height: s.model.survey.renderedLogoHeight,
|
|
4919
4899
|
alt: s.model.survey.locTitle.renderedHtml,
|
|
4920
4900
|
style: S({ objectFit: s.model.survey.logoFit, width: s.model.survey.renderedStyleLogoWidth, height: s.model.survey.renderedStyleLogoHeight })
|
|
4921
|
-
}, null, 14,
|
|
4901
|
+
}, null, 14, bi)
|
|
4922
4902
|
], 2)
|
|
4923
4903
|
])) : d("", !0),
|
|
4924
4904
|
s.model.survey.hasTitle ? (i(), u("div", {
|
|
@@ -4948,7 +4928,7 @@ const pi = /* @__PURE__ */ he(di, [["render", ci]]), vi = { key: 2 }, yi = /* @_
|
|
|
4948
4928
|
]);
|
|
4949
4929
|
};
|
|
4950
4930
|
}
|
|
4951
|
-
}),
|
|
4931
|
+
}), fi = /* @__PURE__ */ h({
|
|
4952
4932
|
__name: "Element",
|
|
4953
4933
|
props: {
|
|
4954
4934
|
element: {},
|
|
@@ -4959,26 +4939,26 @@ const pi = /* @__PURE__ */ he(di, [["render", ci]]), vi = { key: 2 }, yi = /* @_
|
|
|
4959
4939
|
const s = r, o = (a) => a.isPanel ? "survey-panel" : "survey-question", e = w(() => {
|
|
4960
4940
|
const a = s.element.survey;
|
|
4961
4941
|
if (a) {
|
|
4962
|
-
const
|
|
4963
|
-
if (
|
|
4964
|
-
return
|
|
4942
|
+
const y = a.getElementWrapperComponentName(s.element);
|
|
4943
|
+
if (y)
|
|
4944
|
+
return y;
|
|
4965
4945
|
}
|
|
4966
4946
|
return o(s.element);
|
|
4967
4947
|
}), n = (a) => a.cssClasses ? a.rootStyle : {}, t = w(() => {
|
|
4968
|
-
const a = s.element,
|
|
4948
|
+
const a = s.element, y = a.survey;
|
|
4969
4949
|
let m;
|
|
4970
|
-
return
|
|
4950
|
+
return y && (m = y.getElementWrapperComponentData(a)), {
|
|
4971
4951
|
componentName: o(a),
|
|
4972
4952
|
componentData: {
|
|
4973
4953
|
element: a,
|
|
4974
|
-
survey:
|
|
4954
|
+
survey: y,
|
|
4975
4955
|
row: s.row,
|
|
4976
4956
|
css: s.css,
|
|
4977
4957
|
data: m
|
|
4978
4958
|
}
|
|
4979
4959
|
};
|
|
4980
4960
|
});
|
|
4981
|
-
return (a,
|
|
4961
|
+
return (a, y) => (i(), u("div", {
|
|
4982
4962
|
style: S(n(a.element)),
|
|
4983
4963
|
class: l(a.element.cssClasses.questionWrapper)
|
|
4984
4964
|
}, [
|
|
@@ -4989,7 +4969,7 @@ const pi = /* @__PURE__ */ he(di, [["render", ci]]), vi = { key: 2 }, yi = /* @_
|
|
|
4989
4969
|
}, null, 8, ["element", "css"])) : d("", !0)
|
|
4990
4970
|
], 6));
|
|
4991
4971
|
}
|
|
4992
|
-
}),
|
|
4972
|
+
}), Ii = /* @__PURE__ */ h({
|
|
4993
4973
|
__name: "TemplateRenderer",
|
|
4994
4974
|
props: {
|
|
4995
4975
|
componentName: {},
|
|
@@ -4999,7 +4979,7 @@ const pi = /* @__PURE__ */ he(di, [["render", ci]]), vi = { key: 2 }, yi = /* @_
|
|
|
4999
4979
|
const s = Re(), o = w(() => !!s.default);
|
|
5000
4980
|
return (e, n) => o.value && !e.componentName ? Te(e.$slots, "default", { key: 0 }) : (i(), q(T(e.componentName), F(W({ key: 1 }, e.componentData)), null, 16));
|
|
5001
4981
|
}
|
|
5002
|
-
}),
|
|
4982
|
+
}), wi = /* @__PURE__ */ h({
|
|
5003
4983
|
__name: "FileCleanButton",
|
|
5004
4984
|
props: {
|
|
5005
4985
|
question: {},
|
|
@@ -5007,7 +4987,7 @@ const pi = /* @__PURE__ */ he(di, [["render", ci]]), vi = { key: 2 }, yi = /* @_
|
|
|
5007
4987
|
},
|
|
5008
4988
|
setup(r) {
|
|
5009
4989
|
return (s, o) => {
|
|
5010
|
-
const e =
|
|
4990
|
+
const e = p("sv-svg-icon");
|
|
5011
4991
|
return i(), u("button", {
|
|
5012
4992
|
type: "button",
|
|
5013
4993
|
class: l(s.css),
|
|
@@ -5023,14 +5003,14 @@ const pi = /* @__PURE__ */ he(di, [["render", ci]]), vi = { key: 2 }, yi = /* @_
|
|
|
5023
5003
|
], 2);
|
|
5024
5004
|
};
|
|
5025
5005
|
}
|
|
5026
|
-
}),
|
|
5006
|
+
}), Si = ["id"], Ri = /* @__PURE__ */ h({
|
|
5027
5007
|
__name: "FileVideo",
|
|
5028
5008
|
props: {
|
|
5029
5009
|
question: {}
|
|
5030
5010
|
},
|
|
5031
5011
|
setup(r) {
|
|
5032
5012
|
return (s, o) => {
|
|
5033
|
-
const e =
|
|
5013
|
+
const e = p("sv-action");
|
|
5034
5014
|
return i(), u("div", {
|
|
5035
5015
|
class: l(s.question.cssClasses.videoContainer)
|
|
5036
5016
|
}, [
|
|
@@ -5045,14 +5025,14 @@ const pi = /* @__PURE__ */ he(di, [["render", ci]]), vi = { key: 2 }, yi = /* @_
|
|
|
5045
5025
|
playsinline: "",
|
|
5046
5026
|
id: s.question.videoId,
|
|
5047
5027
|
class: l(s.question.cssClasses.video)
|
|
5048
|
-
}, null, 10,
|
|
5028
|
+
}, null, 10, Si),
|
|
5049
5029
|
b(e, {
|
|
5050
5030
|
item: s.question.takePictureAction
|
|
5051
5031
|
}, null, 8, ["item"])
|
|
5052
5032
|
], 2);
|
|
5053
5033
|
};
|
|
5054
5034
|
}
|
|
5055
|
-
}),
|
|
5035
|
+
}), Ti = ["for", "aria-label"], $i = /* @__PURE__ */ h({
|
|
5056
5036
|
__name: "FileChooseButton",
|
|
5057
5037
|
props: {
|
|
5058
5038
|
data: {},
|
|
@@ -5066,8 +5046,8 @@ const pi = /* @__PURE__ */ he(di, [["render", ci]]), vi = { key: 2 }, yi = /* @_
|
|
|
5066
5046
|
}
|
|
5067
5047
|
);
|
|
5068
5048
|
return (e, n) => {
|
|
5069
|
-
const t =
|
|
5070
|
-
return
|
|
5049
|
+
const t = p("sv-svg-icon"), a = X("key2click");
|
|
5050
|
+
return P((i(), u("label", {
|
|
5071
5051
|
tabindex: "0",
|
|
5072
5052
|
class: l(o.value.getChooseFileCss()),
|
|
5073
5053
|
for: o.value.inputId,
|
|
@@ -5080,24 +5060,24 @@ const pi = /* @__PURE__ */ he(di, [["render", ci]]), vi = { key: 2 }, yi = /* @_
|
|
|
5080
5060
|
size: "auto"
|
|
5081
5061
|
}, null, 8, ["title", "iconName"])) : d("", !0),
|
|
5082
5062
|
c("span", null, R(o.value.chooseButtonText), 1)
|
|
5083
|
-
], 10,
|
|
5063
|
+
], 10, Ti)), [
|
|
5084
5064
|
[a]
|
|
5085
5065
|
]);
|
|
5086
5066
|
};
|
|
5087
5067
|
}
|
|
5088
|
-
}),
|
|
5068
|
+
}), _i = ["onClick", "href", "title", "download"], Di = ["src"], Bi = ["onClick"], Li = ["onClick", "href", "title", "download"], Ni = /* @__PURE__ */ h({
|
|
5089
5069
|
__name: "FilePreview",
|
|
5090
5070
|
props: {
|
|
5091
5071
|
question: {}
|
|
5092
5072
|
},
|
|
5093
5073
|
setup(r) {
|
|
5094
5074
|
return (s, o) => {
|
|
5095
|
-
const e =
|
|
5075
|
+
const e = p("sv-svg-icon");
|
|
5096
5076
|
return s.question.showPreviewContainer ? (i(), u("div", {
|
|
5097
5077
|
key: 0,
|
|
5098
5078
|
class: l(s.question.cssClasses.fileList || void 0)
|
|
5099
5079
|
}, [
|
|
5100
|
-
(i(!0), u($, null, B(s.question.previewValue, (n, t) =>
|
|
5080
|
+
(i(!0), u($, null, B(s.question.previewValue, (n, t) => P((i(), u("span", {
|
|
5101
5081
|
key: s.question.inputId + "_" + t,
|
|
5102
5082
|
class: l(s.question.cssClasses.preview)
|
|
5103
5083
|
}, [
|
|
@@ -5111,7 +5091,7 @@ const pi = /* @__PURE__ */ he(di, [["render", ci]]), vi = { key: 2 }, yi = /* @_
|
|
|
5111
5091
|
title: n.name,
|
|
5112
5092
|
download: n.name,
|
|
5113
5093
|
style: S({ width: s.question.imageWidth })
|
|
5114
|
-
}, R(n.name), 13,
|
|
5094
|
+
}, R(n.name), 13, _i)
|
|
5115
5095
|
], 2)) : d("", !0),
|
|
5116
5096
|
c("div", {
|
|
5117
5097
|
class: l(s.question.getImageWrapperCss(n))
|
|
@@ -5124,7 +5104,7 @@ const pi = /* @__PURE__ */ he(di, [["render", ci]]), vi = { key: 2 }, yi = /* @_
|
|
|
5124
5104
|
width: s.question.imageWidth
|
|
5125
5105
|
}),
|
|
5126
5106
|
alt: "File preview"
|
|
5127
|
-
}, null, 12,
|
|
5107
|
+
}, null, 12, Di)) : d("", !0),
|
|
5128
5108
|
s.question.defaultImage(n) ? (i(), q(e, {
|
|
5129
5109
|
key: 1,
|
|
5130
5110
|
iconName: s.question.cssClasses.defaultImageIconId,
|
|
@@ -5146,7 +5126,7 @@ const pi = /* @__PURE__ */ he(di, [["render", ci]]), vi = { key: 2 }, yi = /* @_
|
|
|
5146
5126
|
iconName: s.question.cssClasses.removeFileSvgIconId,
|
|
5147
5127
|
size: "auto"
|
|
5148
5128
|
}, null, 8, ["title", "class", "iconName"])) : d("", !0)
|
|
5149
|
-
], 10,
|
|
5129
|
+
], 10, Bi)) : d("", !0)
|
|
5150
5130
|
], 2),
|
|
5151
5131
|
n.name && s.question.cssClasses.fileSignBottom ? (i(), u("div", {
|
|
5152
5132
|
key: 1,
|
|
@@ -5158,7 +5138,7 @@ const pi = /* @__PURE__ */ he(di, [["render", ci]]), vi = { key: 2 }, yi = /* @_
|
|
|
5158
5138
|
title: n.name,
|
|
5159
5139
|
download: n.name,
|
|
5160
5140
|
style: S({ width: s.question.imageWidth })
|
|
5161
|
-
}, R(n.name), 13,
|
|
5141
|
+
}, R(n.name), 13, Li)
|
|
5162
5142
|
], 2)) : d("", !0)
|
|
5163
5143
|
], 2)), [
|
|
5164
5144
|
[M, n && s.question.isPreviewVisible(t)]
|
|
@@ -5166,7 +5146,7 @@ const pi = /* @__PURE__ */ he(di, [["render", ci]]), vi = { key: 2 }, yi = /* @_
|
|
|
5166
5146
|
], 2)) : d("", !0);
|
|
5167
5147
|
};
|
|
5168
5148
|
}
|
|
5169
|
-
}),
|
|
5149
|
+
}), Pi = /* @__PURE__ */ h({
|
|
5170
5150
|
__name: "ButtonGroup",
|
|
5171
5151
|
props: {
|
|
5172
5152
|
question: {}
|
|
@@ -5174,23 +5154,23 @@ const pi = /* @__PURE__ */ he(di, [["render", ci]]), vi = { key: 2 }, yi = /* @_
|
|
|
5174
5154
|
setup(r) {
|
|
5175
5155
|
const s = r, o = _();
|
|
5176
5156
|
return A(s, o), (e, n) => {
|
|
5177
|
-
const t =
|
|
5157
|
+
const t = p("sv-button-group-item");
|
|
5178
5158
|
return i(), u("div", {
|
|
5179
5159
|
role: "group",
|
|
5180
5160
|
class: l(e.question.cssClasses.root),
|
|
5181
5161
|
ref_key: "root",
|
|
5182
5162
|
ref: o
|
|
5183
5163
|
}, [
|
|
5184
|
-
(i(!0), u($, null, B(e.question.visibleChoices, (a,
|
|
5164
|
+
(i(!0), u($, null, B(e.question.visibleChoices, (a, y) => (i(), q(t, {
|
|
5185
5165
|
question: e.question,
|
|
5186
|
-
key:
|
|
5166
|
+
key: y,
|
|
5187
5167
|
item: a,
|
|
5188
|
-
index:
|
|
5168
|
+
index: y
|
|
5189
5169
|
}, null, 8, ["question", "item", "index"]))), 128))
|
|
5190
5170
|
], 2);
|
|
5191
5171
|
};
|
|
5192
5172
|
}
|
|
5193
|
-
}),
|
|
5173
|
+
}), Ai = ["title"], Mi = ["name", "id", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "disabled", "value"], Hi = ["title"], Wi = /* @__PURE__ */ h({
|
|
5194
5174
|
__name: "ButtonGroupItem",
|
|
5195
5175
|
props: {
|
|
5196
5176
|
item: {},
|
|
@@ -5208,13 +5188,13 @@ const pi = /* @__PURE__ */ he(di, [["render", ci]]), vi = { key: 2 }, yi = /* @_
|
|
|
5208
5188
|
}
|
|
5209
5189
|
});
|
|
5210
5190
|
return (n, t) => {
|
|
5211
|
-
const a =
|
|
5191
|
+
const a = p("sv-svg-icon"), y = p("survey-string");
|
|
5212
5192
|
return i(), u("label", {
|
|
5213
5193
|
role: "radio",
|
|
5214
5194
|
class: l(o.value.css.label),
|
|
5215
5195
|
title: o.value.caption.renderedHtml
|
|
5216
5196
|
}, [
|
|
5217
|
-
|
|
5197
|
+
P(c("input", {
|
|
5218
5198
|
type: "radio",
|
|
5219
5199
|
name: o.value.name,
|
|
5220
5200
|
id: o.value.id,
|
|
@@ -5227,8 +5207,8 @@ const pi = /* @__PURE__ */ he(di, [["render", ci]]), vi = { key: 2 }, yi = /* @_
|
|
|
5227
5207
|
class: l(o.value.css.control),
|
|
5228
5208
|
"onUpdate:modelValue": t[0] || (t[0] = (m) => e.value = m),
|
|
5229
5209
|
value: o.value.value
|
|
5230
|
-
}, null, 10,
|
|
5231
|
-
[
|
|
5210
|
+
}, null, 10, Mi), [
|
|
5211
|
+
[ee, e.value]
|
|
5232
5212
|
]),
|
|
5233
5213
|
c("div", {
|
|
5234
5214
|
class: l(o.value.css.decorator)
|
|
@@ -5244,15 +5224,15 @@ const pi = /* @__PURE__ */ he(di, [["render", ci]]), vi = { key: 2 }, yi = /* @_
|
|
|
5244
5224
|
class: l(o.value.css.caption),
|
|
5245
5225
|
title: o.value.caption.renderedHtml
|
|
5246
5226
|
}, [
|
|
5247
|
-
b(
|
|
5227
|
+
b(y, {
|
|
5248
5228
|
locString: o.value.caption
|
|
5249
5229
|
}, null, 8, ["locString"])
|
|
5250
|
-
], 10,
|
|
5230
|
+
], 10, Hi)) : d("", !0)
|
|
5251
5231
|
], 2)
|
|
5252
|
-
], 10,
|
|
5232
|
+
], 10, Ai);
|
|
5253
5233
|
};
|
|
5254
5234
|
}
|
|
5255
|
-
}),
|
|
5235
|
+
}), Ei = ["src", "width", "height", "alt"], Vi = /* @__PURE__ */ h({
|
|
5256
5236
|
inheritAttrs: !1,
|
|
5257
5237
|
__name: "Logo",
|
|
5258
5238
|
props: {
|
|
@@ -5274,16 +5254,16 @@ const pi = /* @__PURE__ */ he(di, [["render", ci]]), vi = { key: 2 }, yi = /* @_
|
|
|
5274
5254
|
width: o.value.renderedStyleLogoWidth,
|
|
5275
5255
|
height: o.value.renderedStyleLogoHeight
|
|
5276
5256
|
})
|
|
5277
|
-
}, null, 14,
|
|
5257
|
+
}, null, 14, Ei)
|
|
5278
5258
|
], 2));
|
|
5279
5259
|
}
|
|
5280
|
-
}),
|
|
5260
|
+
}), Oi = /* @__PURE__ */ h({
|
|
5281
5261
|
__name: "SvgBundle",
|
|
5282
5262
|
setup(r) {
|
|
5283
5263
|
const s = _();
|
|
5284
5264
|
return H(() => {
|
|
5285
5265
|
s.value.innerHTML = Oe.iconsRenderedHtml();
|
|
5286
|
-
}), (o, e) =>
|
|
5266
|
+
}), (o, e) => P((i(), u("svg", {
|
|
5287
5267
|
id: "sv-icon-holder-global-container",
|
|
5288
5268
|
ref_key: "root",
|
|
5289
5269
|
ref: s
|
|
@@ -5293,8 +5273,8 @@ const pi = /* @__PURE__ */ he(di, [["render", ci]]), vi = { key: 2 }, yi = /* @_
|
|
|
5293
5273
|
}
|
|
5294
5274
|
});
|
|
5295
5275
|
Fe.platform = "vue3";
|
|
5296
|
-
function
|
|
5297
|
-
r.component("SurveyComponent", ce), r.component("sv-svg-bundle",
|
|
5276
|
+
function Fi(r) {
|
|
5277
|
+
r.component("SurveyComponent", ce), r.component("sv-svg-bundle", Oi), r.component("PopupSurveyComponent", pe), r.component("survey", ce), r.component("popup-survey", pe), r.component("survey-header", Qe), r.component("sv-logo-image", Vi), r.component("survey-page", je), r.component("survey-row", Ge), r.component("survey-question", Ye), r.component("survey-panel", ss), r.component("survey-element-header", ns), r.component("survey-string", os), r.component("sv-string-viewer", rs), r.component("sv-string-editor", as), r.component("sv-skeleton", ds), r.component("survey-text", ps), r.component("survey-text-input", gs), r.component("survey-checkbox", fs), r.component("survey-checkbox-item", Ss), r.component("survey-radiogroup", Rs), r.component("survey-radiogroup-item", _s), r.component("survey-signaturepad", Ns), r.component("survey-html", As), r.component("survey-image", Es), r.component("survey-expression", Vs), r.component("survey-file", zs), r.component("sv-file-choose-btn", $i), r.component("sv-file-clean-btn", wi), r.component("sv-file-preview", Ni), r.component("sv-file-video", Ri), r.component("survey-imagepicker", Ks), r.component("survey-imagepicker-item", Xs), r.component("survey-comment", xs), r.component("survey-dropdown", en), r.component("sv-dropdown-select", tn), r.component("sv-dropdown-option-item", ln), r.component("sv-dropdown", cn), r.component("survey-tagbox", pn), r.component("sv-tagbox", qn), r.component("sv-tagbox-item", kn), r.component("sv-tagbox-filter", Cn), r.component("survey-ranking", fn), r.component("survey-ranking-item", $n), r.component("survey-rating", Bn), r.component("sv-rating-item", Nn), r.component("sv-rating-item-smiley", An), r.component("sv-rating-item-star", Hn), r.component("sv-rating-dropdown", Fn), r.component("sv-rating-dropdown-item", On), r.component("survey-boolean", Un), r.component("sv-boolean-radio", Kn), r.component("sv-boolean-radio-item", Gn), r.component("sv-boolean-checkbox", xn), r.component("survey-multipletext", eo), r.component("survey-multipletext-item", no), r.component("survey-matrix", mo), r.component("survey-matrixdropdown", co), r.component("survey-matrixtable", qo), r.component("survey-matrixheaderrequired", ho), r.component("survey-matrixcell", bo), r.component("survey-matrixdynamic", ko), r.component("sv-matrix-remove-button", Io), r.component("sv-matrix-drag-drop-icon", So), r.component("sv-matrix-detail-button", To), r.component("survey-paneldynamic", $o), r.component("survey-paneldynamicprogress", _o), r.component("survey-paneldynamicprogress-v2", Do), r.component("sv-paneldynamic-add-btn", Bo), r.component("sv-paneldynamic-next-btn", No), r.component("sv-paneldynamic-prev-btn", Ao), r.component("sv-paneldynamic-remove-btn", Mo), r.component("sv-paneldynamic-progress-text", Ho), r.component("sv-components-container", Pt), r.component("sv-progress-buttons", Wt), r.component("sv-progress-toc", Et), r.component("sv-progress-pages", Z), r.component("sv-progress-questions", Z), r.component("sv-progress-correctquestions", Z), r.component("sv-progress-requiredquestions", Z), r.component("survey-errors", Eo), r.component("survey-question-comment", Fo), r.component("survey-element-title", zo), r.component("survey-element-title-content", Qo), r.component("sv-title-actions", Xo), r.component("sv-brand-info", nt), r.component("sv-svg-icon", it), r.component("sv-action-bar", rt), r.component("sv-action", ut), r.component("sv-action-bar-item", ct), r.component("sv-action-bar-item-dropdown", yt), r.component("sv-action-bar-separator", qt), r.component("sv-list", bt), r.component("sv-list-item", It), r.component("sv-popup", wt), r.component("sv-popup-container", Bt), r.component("popup-pointer", Lt), r.component("sv-notifier", Gt), r.component("survey-other-choice", Yt), r.component("sv-nav-btn", xt), r.component("survey-customwidget", si), r.component("survey-popup-modal", ni), r.component("sv-character-counter", oi), r.component("survey-composite", ti), r.component("survey-custom", ii), r.component("sv-timerpanel", ai), r.component("sv-loading-indicator", ci), r.component("sv-header", vi), r.component("sv-header-cell", gi), r.component("sv-header-mobile", ki), r.component("sv-template-renderer", Ii), r.component("survey-element", fi), r.component("survey-buttongroup", Pi), r.component("sv-button-group-item", Wi), r.directive("key2click", {
|
|
5298
5278
|
mounted: function(s, o) {
|
|
5299
5279
|
const e = { ...o.value };
|
|
5300
5280
|
if (e.disableTabStop) {
|
|
@@ -5309,13 +5289,13 @@ function zi(r) {
|
|
|
5309
5289
|
}
|
|
5310
5290
|
});
|
|
5311
5291
|
}
|
|
5312
|
-
const
|
|
5292
|
+
const Ki = {
|
|
5313
5293
|
install(r) {
|
|
5314
|
-
|
|
5294
|
+
Fi(r);
|
|
5315
5295
|
}
|
|
5316
5296
|
};
|
|
5317
5297
|
export {
|
|
5318
|
-
|
|
5298
|
+
Ki as surveyPlugin,
|
|
5319
5299
|
L as useBase,
|
|
5320
5300
|
Q as useLocString,
|
|
5321
5301
|
A as useQuestion
|