survey-vue3-ui 1.9.107 → 1.9.108
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 +212 -208
- 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 fe, RendererFactory as G, DropdownListModel as Ie, Helpers as we, DropdownMultiSelectListModel as Se, doKey2ClickUp as de, createSvg as
|
|
1
|
+
import { shallowReactive as ce, watch as Q, onBeforeUnmount as U, onMounted as A, ref as S, shallowRef as F, triggerRef as oe, unref as f, isRef as pe, defineComponent as C, computed as R, onUpdated as Z, resolveComponent as v, openBlock as t, createElementBlock as u, normalizeClass as l, createVNode as b, createCommentVNode as m, Fragment as w, renderList as T, createBlock as q, createElementVNode as p, normalizeStyle as $, onUnmounted as V, withDirectives as L, resolveDynamicComponent as N, vShow as H, toDisplayString as I, vModelCheckbox as z, vModelRadio as J, resolveDirective as Y, vModelSelect as ve, vModelText as qe, getCurrentInstance as x, withCtx as ye, createStaticVNode as ge, normalizeProps as Ce, guardReactiveProps as he, toRaw as be, Teleport as ke } from "vue";
|
|
2
|
+
import { Base as fe, RendererFactory as G, DropdownListModel as Ie, Helpers as we, DropdownMultiSelectListModel as Se, doKey2ClickUp as de, createSvg as Re, ActionDropdownViewModel as Te, getActionDropdownButtonTarget as $e, createPopupViewModel as te, SurveyProgressModel as ie, SurveyProgressButtonsModel as Be, TOCModel as Le, SvgRegistry as De, PopupSurveyModel as Pe, settings as O, createDialogOptions as Me, createPopupModalViewModel as Ne, SurveyModel as He, doKey2ClickDown as Ae, doKey2ClickBlur as Ee } from "survey-core";
|
|
3
3
|
fe.createPropertiesHash = () => ce({});
|
|
4
4
|
function Ve(r) {
|
|
5
5
|
return !r || r.__vueImplemented ? !1 : (r.createArrayCoreHandler = (o, n) => {
|
|
@@ -25,7 +25,7 @@ function le(r, o) {
|
|
|
25
25
|
}
|
|
26
26
|
function B(r, o, n) {
|
|
27
27
|
let s = !1;
|
|
28
|
-
const e =
|
|
28
|
+
const e = Q(
|
|
29
29
|
r,
|
|
30
30
|
(i, a) => {
|
|
31
31
|
o && o(i), a && (le(a, s), n && n(a)), s = Ve(i);
|
|
@@ -51,7 +51,7 @@ function W(r) {
|
|
|
51
51
|
o.value = e.renderedHtml, e.onChanged = () => {
|
|
52
52
|
o.value = e.renderedHtml;
|
|
53
53
|
};
|
|
54
|
-
}, s =
|
|
54
|
+
}, s = Q(
|
|
55
55
|
r,
|
|
56
56
|
(e, i) => {
|
|
57
57
|
i && (i.onChanged = () => {
|
|
@@ -76,7 +76,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
76
76
|
setup(r) {
|
|
77
77
|
const o = r, n = S(null);
|
|
78
78
|
B(() => o.page);
|
|
79
|
-
const s =
|
|
79
|
+
const s = R(() => o.page._showDescription), e = R(() => o.page.rows);
|
|
80
80
|
return A(() => {
|
|
81
81
|
o.survey && o.survey.afterRenderPage(n.value);
|
|
82
82
|
}), Z(() => {
|
|
@@ -100,7 +100,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
100
100
|
locString: i.page.locDescription
|
|
101
101
|
}, null, 8, ["locString"])
|
|
102
102
|
], 2)) : m("", !0),
|
|
103
|
-
(t(!0), u(w, null,
|
|
103
|
+
(t(!0), u(w, null, T(e.value, (h, g) => (t(), u(w, null, [
|
|
104
104
|
h.visible ? (t(), q(y, {
|
|
105
105
|
key: i.page.id + "_" + g,
|
|
106
106
|
row: h,
|
|
@@ -195,7 +195,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
195
195
|
survey: {}
|
|
196
196
|
},
|
|
197
197
|
setup(r) {
|
|
198
|
-
const o = r, n =
|
|
198
|
+
const o = r, n = R(
|
|
199
199
|
() => o.row.visibleElements
|
|
200
200
|
), s = S();
|
|
201
201
|
return B(() => o.row), A(() => {
|
|
@@ -215,7 +215,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
215
215
|
ref_key: "root",
|
|
216
216
|
ref: s
|
|
217
217
|
}, [
|
|
218
|
-
(t(!0), u(w, null,
|
|
218
|
+
(t(!0), u(w, null, T(n.value, (c) => (t(), u("div", {
|
|
219
219
|
style: $(c.rootStyle)
|
|
220
220
|
}, [
|
|
221
221
|
c.isPanel ? m("", !0) : (t(), q(a, {
|
|
@@ -235,7 +235,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
235
235
|
], 2);
|
|
236
236
|
};
|
|
237
237
|
}
|
|
238
|
-
}), Ke = ["id", "role", "aria-required", "aria-invalid", "aria-labelledby", "data-name"],
|
|
238
|
+
}), Ke = ["id", "role", "aria-required", "aria-invalid", "aria-labelledby", "data-name"], _e = /* @__PURE__ */ C({
|
|
239
239
|
__name: "Element",
|
|
240
240
|
props: {
|
|
241
241
|
survey: {},
|
|
@@ -244,7 +244,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
244
244
|
css: {}
|
|
245
245
|
},
|
|
246
246
|
setup(r) {
|
|
247
|
-
const o = r, n = S(null), s =
|
|
247
|
+
const o = r, n = S(null), s = R(() => !o.element.isPanel && o.element.showErrorOnTop), e = R(() => !o.element.isPanel && o.element.showErrorOnBottom), i = (d) => d.customWidget ? "survey-customwidget" : d.getType() === "panel" || d.isDefaultRendering() ? "survey-" + d.getTemplate() : d.getComponentName(), a = (d) => d.cssContent;
|
|
248
248
|
return B(() => o.element), A(() => {
|
|
249
249
|
o.element.isPanel || o.element.afterRender(n.value);
|
|
250
250
|
}), (d, c) => {
|
|
@@ -272,7 +272,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
272
272
|
element: d.element,
|
|
273
273
|
css: d.css
|
|
274
274
|
}, null, 8, ["element", "css"])) : m("", !0),
|
|
275
|
-
|
|
275
|
+
L(p("div", {
|
|
276
276
|
class: l(a(d.element) || void 0),
|
|
277
277
|
role: "presentation"
|
|
278
278
|
}, [
|
|
@@ -332,7 +332,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
332
332
|
}, null, 8, ["element", "css"])) : m("", !0);
|
|
333
333
|
};
|
|
334
334
|
}
|
|
335
|
-
}),
|
|
335
|
+
}), je = ["id"], Qe = ["id"], Ze = /* @__PURE__ */ C({
|
|
336
336
|
__name: "Panel",
|
|
337
337
|
props: {
|
|
338
338
|
question: {},
|
|
@@ -340,7 +340,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
340
340
|
css: {}
|
|
341
341
|
},
|
|
342
342
|
setup(r) {
|
|
343
|
-
const o = r, n = S(!1), s = S(null), e =
|
|
343
|
+
const o = r, n = S(!1), s = S(null), e = R(() => o.question.rows), i = R(() => o.question.survey), a = R(() => n.value);
|
|
344
344
|
return B(() => o.question), A(() => {
|
|
345
345
|
o.question.survey && o.question.survey.afterRenderPanel(o.question, s.value), n.value = o.question.isCollapsed;
|
|
346
346
|
const d = o.question;
|
|
@@ -378,9 +378,9 @@ const Oe = /* @__PURE__ */ C({
|
|
|
378
378
|
style: $({ paddingLeft: d.question.innerPaddingLeft }),
|
|
379
379
|
class: l(d.question.cssClasses.panel.content)
|
|
380
380
|
}, [
|
|
381
|
-
(t(!0), u(w, null,
|
|
381
|
+
(t(!0), u(w, null, T(e.value, (P, D) => (t(), u(w, null, [
|
|
382
382
|
P.visible ? (t(), q(g, {
|
|
383
|
-
key: d.question.id + "_" +
|
|
383
|
+
key: d.question.id + "_" + D,
|
|
384
384
|
row: P,
|
|
385
385
|
survey: i.value,
|
|
386
386
|
css: d.css
|
|
@@ -389,8 +389,8 @@ const Oe = /* @__PURE__ */ C({
|
|
|
389
389
|
b(k, {
|
|
390
390
|
model: d.question.getFooterToolbar()
|
|
391
391
|
}, null, 8, ["model"])
|
|
392
|
-
], 14,
|
|
393
|
-
], 10,
|
|
392
|
+
], 14, Qe))
|
|
393
|
+
], 10, je)) : m("", !0);
|
|
394
394
|
};
|
|
395
395
|
}
|
|
396
396
|
}), Ge = /* @__PURE__ */ C({
|
|
@@ -413,7 +413,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
413
413
|
element: s.element,
|
|
414
414
|
css: s.css
|
|
415
415
|
}, null, 8, ["element", "css"]),
|
|
416
|
-
s.element.hasDescriptionUnderTitle ?
|
|
416
|
+
s.element.hasDescriptionUnderTitle ? L((t(), u("div", {
|
|
417
417
|
key: 0,
|
|
418
418
|
class: l(s.element.cssDescription)
|
|
419
419
|
}, [
|
|
@@ -517,7 +517,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
517
517
|
p("datalist", {
|
|
518
518
|
id: s.question.dataListId
|
|
519
519
|
}, [
|
|
520
|
-
(t(!0), u(w, null,
|
|
520
|
+
(t(!0), u(w, null, T(s.question.dataList, (a) => (t(), u("option", { value: a }, null, 8, is))), 256))
|
|
521
521
|
], 8, ts)
|
|
522
522
|
], 512)) : (t(), q(i, {
|
|
523
523
|
key: 2,
|
|
@@ -535,7 +535,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
535
535
|
setup(r) {
|
|
536
536
|
const o = r;
|
|
537
537
|
B(() => o.question);
|
|
538
|
-
const n =
|
|
538
|
+
const n = R(() => o.question.inputStyle);
|
|
539
539
|
return (s, e) => {
|
|
540
540
|
const i = v("sv-character-counter");
|
|
541
541
|
return s.question.getMaxLength() ? (t(), u("div", as, [
|
|
@@ -599,10 +599,10 @@ const Oe = /* @__PURE__ */ C({
|
|
|
599
599
|
}, null, 46, rs));
|
|
600
600
|
};
|
|
601
601
|
}
|
|
602
|
-
}), ms = /* @__PURE__ */ p("legend", {
|
|
602
|
+
}), ms = ["role", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], cs = /* @__PURE__ */ p("legend", {
|
|
603
603
|
role: "presentation",
|
|
604
604
|
class: "sv-hidden"
|
|
605
|
-
}, null, -1),
|
|
605
|
+
}, null, -1), ps = /* @__PURE__ */ C({
|
|
606
606
|
__name: "Checkbox",
|
|
607
607
|
props: {
|
|
608
608
|
question: {}
|
|
@@ -613,17 +613,22 @@ const Oe = /* @__PURE__ */ C({
|
|
|
613
613
|
const i = v("survey-checkbox-item"), a = v("survey-other-choice");
|
|
614
614
|
return t(), u("fieldset", {
|
|
615
615
|
class: l(s.question.getSelectBaseRootCss()),
|
|
616
|
-
role:
|
|
616
|
+
role: s.question.a11y_input_ariaRole,
|
|
617
|
+
"aria-required": s.question.a11y_input_ariaRequired,
|
|
618
|
+
"aria-label": s.question.a11y_input_ariaLabel,
|
|
619
|
+
"aria-labelledby": s.question.a11y_input_ariaLabelledBy,
|
|
620
|
+
"aria-invalid": s.question.a11y_input_ariaInvalid,
|
|
621
|
+
"aria-describedby": s.question.a11y_input_ariaDescribedBy
|
|
617
622
|
}, [
|
|
618
|
-
|
|
619
|
-
s.question.hasHeadItems ? (t(!0), u(w, { key: 0 },
|
|
623
|
+
cs,
|
|
624
|
+
s.question.hasHeadItems ? (t(!0), u(w, { key: 0 }, T(s.question.headItems, (d, c) => (t(), q(i, {
|
|
620
625
|
key: d.value,
|
|
621
626
|
class: l(s.question.getItemClass(d)),
|
|
622
627
|
question: s.question,
|
|
623
628
|
item: d,
|
|
624
629
|
index: "" + c
|
|
625
630
|
}, null, 8, ["class", "question", "item", "index"]))), 128)) : m("", !0),
|
|
626
|
-
!s.question.hasColumns && !s.question.blockedRow ? (t(!0), u(w, { key: 1 },
|
|
631
|
+
!s.question.hasColumns && !s.question.blockedRow ? (t(!0), u(w, { key: 1 }, T(s.question.bodyItems, (d, c) => (t(), q(i, {
|
|
627
632
|
key: d.value,
|
|
628
633
|
class: l(s.question.getItemClass(d)),
|
|
629
634
|
question: s.question,
|
|
@@ -634,7 +639,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
634
639
|
key: 2,
|
|
635
640
|
class: l(s.question.cssClasses.rootRow)
|
|
636
641
|
}, [
|
|
637
|
-
!s.question.hasColumns && s.question.blockedRow ? (t(!0), u(w, { key: 0 },
|
|
642
|
+
!s.question.hasColumns && s.question.blockedRow ? (t(!0), u(w, { key: 0 }, T(s.question.dataChoices, (d, c) => (t(), q(i, {
|
|
638
643
|
key: d.value,
|
|
639
644
|
class: l(s.question.getItemClass(d)),
|
|
640
645
|
question: s.question,
|
|
@@ -646,12 +651,12 @@ const Oe = /* @__PURE__ */ C({
|
|
|
646
651
|
key: 3,
|
|
647
652
|
class: l(s.question.cssClasses.rootMultiColumn)
|
|
648
653
|
}, [
|
|
649
|
-
(t(!0), u(w, null,
|
|
654
|
+
(t(!0), u(w, null, T(s.question.columns, (d, c) => (t(), u("div", {
|
|
650
655
|
key: c,
|
|
651
656
|
class: l(s.question.getColumnClass()),
|
|
652
657
|
role: "presentation"
|
|
653
658
|
}, [
|
|
654
|
-
(t(!0), u(w, null,
|
|
659
|
+
(t(!0), u(w, null, T(d, (y, h) => (t(), q(i, {
|
|
655
660
|
key: y.value,
|
|
656
661
|
class: l(s.question.getItemClass(y)),
|
|
657
662
|
question: s.question,
|
|
@@ -660,7 +665,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
660
665
|
}, null, 8, ["class", "question", "item", "index"]))), 128))
|
|
661
666
|
], 2))), 128))
|
|
662
667
|
], 2)) : m("", !0),
|
|
663
|
-
s.question.hasFootItems ? (t(!0), u(w, { key: 4 },
|
|
668
|
+
s.question.hasFootItems ? (t(!0), u(w, { key: 4 }, T(s.question.footItems, (d, c) => (t(), q(i, {
|
|
664
669
|
key: d.value,
|
|
665
670
|
class: l(s.question.getItemClass(d)),
|
|
666
671
|
question: s.question,
|
|
@@ -671,10 +676,10 @@ const Oe = /* @__PURE__ */ C({
|
|
|
671
676
|
key: 5,
|
|
672
677
|
question: s.question
|
|
673
678
|
}, null, 8, ["question"])) : m("", !0)
|
|
674
|
-
],
|
|
679
|
+
], 10, ms);
|
|
675
680
|
};
|
|
676
681
|
}
|
|
677
|
-
}),
|
|
682
|
+
}), vs = { role: "presentation" }, qs = ["name", "value", "id", "disabled"], ys = ["name", "value", "id", "disabled"], gs = ["xlink:href"], Cs = /* @__PURE__ */ C({
|
|
678
683
|
__name: "CheckboxItem",
|
|
679
684
|
props: {
|
|
680
685
|
question: {},
|
|
@@ -683,7 +688,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
683
688
|
hideLabel: { type: Boolean }
|
|
684
689
|
},
|
|
685
690
|
setup(r) {
|
|
686
|
-
const o = r, n =
|
|
691
|
+
const o = r, n = R({
|
|
687
692
|
get() {
|
|
688
693
|
return o.question.isAllSelected || "";
|
|
689
694
|
},
|
|
@@ -694,35 +699,30 @@ const Oe = /* @__PURE__ */ C({
|
|
|
694
699
|
});
|
|
695
700
|
return B(() => o.item), (s, e) => {
|
|
696
701
|
const i = v("survey-string");
|
|
697
|
-
return t(), u("div",
|
|
702
|
+
return t(), u("div", vs, [
|
|
698
703
|
p("label", {
|
|
699
|
-
class: l(s.question.getLabelClass(s.item))
|
|
700
|
-
"aria-label": s.question.getAriaItemLabel(s.item)
|
|
704
|
+
class: l(s.question.getLabelClass(s.item))
|
|
701
705
|
}, [
|
|
702
|
-
s.item == s.question.selectAllItem ?
|
|
706
|
+
s.item == s.question.selectAllItem ? L((t(), u("input", {
|
|
703
707
|
key: 0,
|
|
704
|
-
role: "option",
|
|
705
708
|
type: "checkbox",
|
|
706
709
|
name: s.question.name,
|
|
707
710
|
value: n.value,
|
|
708
711
|
"onUpdate:modelValue": e[0] || (e[0] = (a) => n.value = a),
|
|
709
712
|
id: s.question.getItemId(s.item),
|
|
710
713
|
disabled: !s.question.getItemEnabled(s.item),
|
|
711
|
-
"aria-describedby": s.question.ariaDescribedBy,
|
|
712
714
|
class: l(s.question.cssClasses.itemControl)
|
|
713
715
|
}, null, 10, qs)), [
|
|
714
716
|
[z, n.value]
|
|
715
717
|
]) : m("", !0),
|
|
716
|
-
s.item != s.question.selectAllItem ?
|
|
718
|
+
s.item != s.question.selectAllItem ? L((t(), u("input", {
|
|
717
719
|
key: 1,
|
|
718
|
-
role: "option",
|
|
719
720
|
type: "checkbox",
|
|
720
721
|
name: s.question.name,
|
|
721
722
|
value: s.item.value,
|
|
722
723
|
"onUpdate:modelValue": e[1] || (e[1] = (a) => s.question.renderedValue = a),
|
|
723
724
|
id: s.question.getItemId(s.item),
|
|
724
725
|
disabled: !s.question.getItemEnabled(s.item),
|
|
725
|
-
"aria-describedby": s.question.ariaDescribedBy,
|
|
726
726
|
class: l(s.question.cssClasses.itemControl)
|
|
727
727
|
}, null, 10, ys)), [
|
|
728
728
|
[z, s.question.renderedValue]
|
|
@@ -748,11 +748,11 @@ const Oe = /* @__PURE__ */ C({
|
|
|
748
748
|
locString: s.item.locText
|
|
749
749
|
}, null, 8, ["locString"])
|
|
750
750
|
], 2))
|
|
751
|
-
],
|
|
751
|
+
], 2)
|
|
752
752
|
]);
|
|
753
753
|
};
|
|
754
754
|
}
|
|
755
|
-
}), hs = { key: 5 },
|
|
755
|
+
}), hs = ["role", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], bs = { key: 5 }, ks = ["value"], fs = /* @__PURE__ */ C({
|
|
756
756
|
__name: "Radiogroup",
|
|
757
757
|
props: {
|
|
758
758
|
question: {}
|
|
@@ -762,12 +762,17 @@ const Oe = /* @__PURE__ */ C({
|
|
|
762
762
|
return M(o, n), (s, e) => {
|
|
763
763
|
const i = v("survey-radiogroup-item"), a = v("survey-other-choice");
|
|
764
764
|
return t(), u("fieldset", {
|
|
765
|
-
role: "presentation",
|
|
766
765
|
class: l(s.question.getSelectBaseRootCss()),
|
|
767
766
|
ref_key: "root",
|
|
768
|
-
ref: n
|
|
767
|
+
ref: n,
|
|
768
|
+
role: s.question.a11y_input_ariaRole,
|
|
769
|
+
"aria-required": s.question.a11y_input_ariaRequired,
|
|
770
|
+
"aria-label": s.question.a11y_input_ariaLabel,
|
|
771
|
+
"aria-labelledby": s.question.a11y_input_ariaLabelledBy,
|
|
772
|
+
"aria-invalid": s.question.a11y_input_ariaInvalid,
|
|
773
|
+
"aria-describedby": s.question.a11y_input_ariaDescribedBy
|
|
769
774
|
}, [
|
|
770
|
-
!s.question.hasColumns && !s.question.blockedRow ? (t(!0), u(w, { key: 0 },
|
|
775
|
+
!s.question.hasColumns && !s.question.blockedRow ? (t(!0), u(w, { key: 0 }, T(s.question.visibleChoices, (d, c) => (t(), q(i, {
|
|
771
776
|
key: d.value,
|
|
772
777
|
class: l(s.question.getItemClass(d)),
|
|
773
778
|
question: s.question,
|
|
@@ -778,7 +783,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
778
783
|
key: 1,
|
|
779
784
|
class: l(s.question.cssClasses.rootRow)
|
|
780
785
|
}, [
|
|
781
|
-
!s.question.hasColumns && s.question.blockedRow ? (t(!0), u(w, { key: 0 },
|
|
786
|
+
!s.question.hasColumns && s.question.blockedRow ? (t(!0), u(w, { key: 0 }, T(s.question.dataChoices, (d, c) => (t(), q(i, {
|
|
782
787
|
key: d.value,
|
|
783
788
|
class: l(s.question.getItemClass(d)),
|
|
784
789
|
question: s.question,
|
|
@@ -790,11 +795,11 @@ const Oe = /* @__PURE__ */ C({
|
|
|
790
795
|
key: 2,
|
|
791
796
|
class: l(s.question.cssClasses.rootMultiColumn)
|
|
792
797
|
}, [
|
|
793
|
-
s.question.hasColumns ? (t(!0), u(w, { key: 0 },
|
|
798
|
+
s.question.hasColumns ? (t(!0), u(w, { key: 0 }, T(s.question.columns, (d, c) => (t(), u("div", {
|
|
794
799
|
class: l(s.question.getColumnClass()),
|
|
795
800
|
role: "presentation"
|
|
796
801
|
}, [
|
|
797
|
-
(t(!0), u(w, null,
|
|
802
|
+
(t(!0), u(w, null, T(d, (y, h) => (t(), q(i, {
|
|
798
803
|
key: y.value,
|
|
799
804
|
class: l(s.question.getItemClass(y)),
|
|
800
805
|
question: s.question,
|
|
@@ -803,7 +808,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
803
808
|
}, null, 8, ["class", "question", "item", "index"]))), 128))
|
|
804
809
|
], 2))), 256)) : m("", !0)
|
|
805
810
|
], 2)) : m("", !0),
|
|
806
|
-
s.question.hasFootItems ? (t(!0), u(w, { key: 3 },
|
|
811
|
+
s.question.hasFootItems ? (t(!0), u(w, { key: 3 }, T(s.question.footItems, (d, c) => (t(), q(i, {
|
|
807
812
|
key: d.value,
|
|
808
813
|
class: l(s.question.getItemClass(d)),
|
|
809
814
|
question: s.question,
|
|
@@ -814,7 +819,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
814
819
|
key: 4,
|
|
815
820
|
question: s.question
|
|
816
821
|
}, null, 8, ["question"])) : m("", !0),
|
|
817
|
-
s.question.showClearButtonInContent ? (t(), u("div",
|
|
822
|
+
s.question.showClearButtonInContent ? (t(), u("div", bs, [
|
|
818
823
|
p("input", {
|
|
819
824
|
type: "button",
|
|
820
825
|
class: l(s.question.cssClasses.clearButton),
|
|
@@ -822,12 +827,12 @@ const Oe = /* @__PURE__ */ C({
|
|
|
822
827
|
s.question.clearValue();
|
|
823
828
|
}),
|
|
824
829
|
value: s.question.clearButtonCaption
|
|
825
|
-
}, null, 10,
|
|
830
|
+
}, null, 10, ks)
|
|
826
831
|
])) : m("", !0)
|
|
827
|
-
],
|
|
832
|
+
], 10, hs);
|
|
828
833
|
};
|
|
829
834
|
}
|
|
830
|
-
}),
|
|
835
|
+
}), Is = { role: "presentation" }, ws = ["name", "value", "id", "aria-describedby", "disabled"], Ss = ["xlink:href"], Rs = /* @__PURE__ */ C({
|
|
831
836
|
__name: "RadiogroupItem",
|
|
832
837
|
props: {
|
|
833
838
|
question: {},
|
|
@@ -839,13 +844,12 @@ const Oe = /* @__PURE__ */ C({
|
|
|
839
844
|
const o = r, n = (e) => o.question.getLabelClass(e), s = (e) => o.question.getControlLabelClass(e);
|
|
840
845
|
return B(() => o.item), (e, i) => {
|
|
841
846
|
const a = v("survey-string");
|
|
842
|
-
return t(), u("div",
|
|
847
|
+
return t(), u("div", Is, [
|
|
843
848
|
p("label", {
|
|
844
849
|
onMousedown: i[1] || (i[1] = (d) => e.question.onMouseDown()),
|
|
845
|
-
class: l(n(e.item))
|
|
846
|
-
"aria-label": e.question.getAriaItemLabel(e.item)
|
|
850
|
+
class: l(n(e.item))
|
|
847
851
|
}, [
|
|
848
|
-
|
|
852
|
+
L(p("input", {
|
|
849
853
|
type: "radio",
|
|
850
854
|
name: e.question.questionName,
|
|
851
855
|
value: e.item.value,
|
|
@@ -878,11 +882,11 @@ const Oe = /* @__PURE__ */ C({
|
|
|
878
882
|
locString: e.item.locText
|
|
879
883
|
}, null, 8, ["locString"])
|
|
880
884
|
], 2))
|
|
881
|
-
],
|
|
885
|
+
], 34)
|
|
882
886
|
]);
|
|
883
887
|
};
|
|
884
888
|
}
|
|
885
|
-
}),
|
|
889
|
+
}), Ts = ["src", "width", "height"], $s = ["title"], Bs = { key: 0 }, Ls = /* @__PURE__ */ C({
|
|
886
890
|
__name: "Signaturepad",
|
|
887
891
|
props: {
|
|
888
892
|
question: {}
|
|
@@ -900,7 +904,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
900
904
|
width: s.question.signatureWidth + "px"
|
|
901
905
|
})
|
|
902
906
|
}, [
|
|
903
|
-
|
|
907
|
+
L(p("div", {
|
|
904
908
|
class: l(s.question.cssClasses.placeholder)
|
|
905
909
|
}, I(s.question.placeHolderText), 3), [
|
|
906
910
|
[H, s.question.needShowPlaceholder()]
|
|
@@ -912,7 +916,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
912
916
|
src: s.question.backgroundImage,
|
|
913
917
|
width: s.question.signatureWidth,
|
|
914
918
|
height: s.question.signatureHeight
|
|
915
|
-
}, null, 10,
|
|
919
|
+
}, null, 10, Ts)) : m("", !0),
|
|
916
920
|
p("canvas", {
|
|
917
921
|
tabindex: "0",
|
|
918
922
|
class: l(s.question.cssClasses.canvas)
|
|
@@ -973,7 +977,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
973
977
|
ref_key: "root",
|
|
974
978
|
ref: n
|
|
975
979
|
}, [
|
|
976
|
-
e.question.renderedMode === "image" ?
|
|
980
|
+
e.question.renderedMode === "image" ? L((t(), u("img", {
|
|
977
981
|
key: 0,
|
|
978
982
|
class: l(e.question.getImageCss()),
|
|
979
983
|
src: f(s),
|
|
@@ -994,7 +998,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
994
998
|
}, null, 46, Ms)), [
|
|
995
999
|
[H, f(s) && !e.question.contentNotLoaded]
|
|
996
1000
|
]) : m("", !0),
|
|
997
|
-
e.question.renderedMode === "video" ?
|
|
1001
|
+
e.question.renderedMode === "video" ? L((t(), u("video", {
|
|
998
1002
|
key: 1,
|
|
999
1003
|
controls: "",
|
|
1000
1004
|
class: l(e.question.getImageCss()),
|
|
@@ -1052,7 +1056,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1052
1056
|
ref: n
|
|
1053
1057
|
}, I(s.question.formatedValue), 3));
|
|
1054
1058
|
}
|
|
1055
|
-
}), Vs = ["id", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "multiple", "title", "accept", "capture"], Os = ["id", "multiple", "placeholder"], Fs = ["for", "aria-label"], Ws = ["onClick", "href", "title", "download"], zs = ["src"], Us = ["onClick"], Ks = ["onClick", "href", "title", "download"],
|
|
1059
|
+
}), Vs = ["id", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "multiple", "title", "accept", "capture"], Os = ["id", "multiple", "placeholder"], Fs = ["for", "aria-label"], Ws = ["onClick", "href", "title", "download"], zs = ["src"], Us = ["onClick"], Ks = ["onClick", "href", "title", "download"], _s = /* @__PURE__ */ C({
|
|
1056
1060
|
__name: "File",
|
|
1057
1061
|
props: {
|
|
1058
1062
|
question: {}
|
|
@@ -1110,7 +1114,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1110
1114
|
p("div", {
|
|
1111
1115
|
class: l(e.question.cssClasses.wrapper)
|
|
1112
1116
|
}, [
|
|
1113
|
-
e.question.isReadOnly ? m("", !0) :
|
|
1117
|
+
e.question.isReadOnly ? m("", !0) : L((t(), u("label", {
|
|
1114
1118
|
key: 0,
|
|
1115
1119
|
role: "button",
|
|
1116
1120
|
tabindex: "0",
|
|
@@ -1153,7 +1157,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1153
1157
|
key: 1,
|
|
1154
1158
|
class: l(e.question.cssClasses.fileList || void 0)
|
|
1155
1159
|
}, [
|
|
1156
|
-
(t(!0), u(w, null,
|
|
1160
|
+
(t(!0), u(w, null, T(e.question.previewValue, (h, g) => L((t(), u("span", {
|
|
1157
1161
|
key: e.question.inputId + "_" + g,
|
|
1158
1162
|
class: l(e.question.cssClasses.preview)
|
|
1159
1163
|
}, [
|
|
@@ -1234,15 +1238,15 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1234
1238
|
title: e.question.clearButtonCaption
|
|
1235
1239
|
}, null, 8, ["iconName", "title"])) : m("", !0)
|
|
1236
1240
|
], 2)) : m("", !0),
|
|
1237
|
-
e.question.
|
|
1241
|
+
e.question.fileNavigatorVisible ? (t(), q(c, {
|
|
1238
1242
|
key: 3,
|
|
1239
|
-
model: e.question.
|
|
1243
|
+
model: e.question.fileNavigator
|
|
1240
1244
|
}, null, 8, ["model"])) : m("", !0)
|
|
1241
1245
|
], 34)
|
|
1242
1246
|
], 2);
|
|
1243
1247
|
};
|
|
1244
1248
|
}
|
|
1245
|
-
}),
|
|
1249
|
+
}), js = ["aria-label"], Qs = /* @__PURE__ */ C({
|
|
1246
1250
|
__name: "Imagepicker",
|
|
1247
1251
|
props: {
|
|
1248
1252
|
question: {}
|
|
@@ -1259,18 +1263,18 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1259
1263
|
p("legend", {
|
|
1260
1264
|
role: "radio",
|
|
1261
1265
|
"aria-label": s.question.locTitle.renderedHtml
|
|
1262
|
-
}, null, 8,
|
|
1263
|
-
s.question.hasColumns ? m("", !0) : (t(!0), u(w, { key: 0 },
|
|
1266
|
+
}, null, 8, js),
|
|
1267
|
+
s.question.hasColumns ? m("", !0) : (t(!0), u(w, { key: 0 }, T(s.question.visibleChoices, (a) => (t(), q(i, {
|
|
1264
1268
|
key: a.value,
|
|
1265
1269
|
question: s.question,
|
|
1266
1270
|
item: a
|
|
1267
1271
|
}, null, 8, ["question", "item"]))), 128)),
|
|
1268
|
-
s.question.hasColumns ? (t(!0), u(w, { key: 1 },
|
|
1272
|
+
s.question.hasColumns ? (t(!0), u(w, { key: 1 }, T(s.question.columns, (a, d) => (t(), u("div", {
|
|
1269
1273
|
class: l(s.question.getColumnClass()),
|
|
1270
1274
|
key: d,
|
|
1271
1275
|
role: "presentation"
|
|
1272
1276
|
}, [
|
|
1273
|
-
(t(!0), u(w, null,
|
|
1277
|
+
(t(!0), u(w, null, T(a, (c) => (t(), q(i, {
|
|
1274
1278
|
key: c.value,
|
|
1275
1279
|
question: s.question,
|
|
1276
1280
|
item: c
|
|
@@ -1297,7 +1301,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1297
1301
|
p("label", {
|
|
1298
1302
|
class: l(e.question.cssClasses.label)
|
|
1299
1303
|
}, [
|
|
1300
|
-
e.question.multiSelect ?
|
|
1304
|
+
e.question.multiSelect ? L((t(), u("input", {
|
|
1301
1305
|
key: 0,
|
|
1302
1306
|
type: "checkbox",
|
|
1303
1307
|
name: e.question.questionName,
|
|
@@ -1312,7 +1316,7 @@ const Oe = /* @__PURE__ */ C({
|
|
|
1312
1316
|
class: l(e.question.cssClasses.itemControl)
|
|
1313
1317
|
}, null, 10, Zs)), [
|
|
1314
1318
|
[z, e.question.value]
|
|
1315
|
-
]) :
|
|
1319
|
+
]) : L((t(), u("input", {
|
|
1316
1320
|
key: 1,
|
|
1317
1321
|
type: "radio",
|
|
1318
1322
|
name: e.question.questionName,
|
|
@@ -1528,7 +1532,7 @@ const rn = /* @__PURE__ */ C({
|
|
|
1528
1532
|
o.question.onClick(a);
|
|
1529
1533
|
}, e = (a) => {
|
|
1530
1534
|
o.question.onKeyUp(a);
|
|
1531
|
-
}, i =
|
|
1535
|
+
}, i = R({
|
|
1532
1536
|
get() {
|
|
1533
1537
|
var a;
|
|
1534
1538
|
return (a = o.question.value) != null ? a : "";
|
|
@@ -1551,7 +1555,7 @@ const rn = /* @__PURE__ */ C({
|
|
|
1551
1555
|
disabled: "",
|
|
1552
1556
|
id: a.question.inputId,
|
|
1553
1557
|
class: l(a.question.getControlClass())
|
|
1554
|
-
}, I(a.question.readOnlyText), 11, ln)) :
|
|
1558
|
+
}, I(a.question.readOnlyText), 11, ln)) : L((t(), u("select", {
|
|
1555
1559
|
key: 0,
|
|
1556
1560
|
id: a.question.inputId,
|
|
1557
1561
|
"onUpdate:modelValue": d[0] || (d[0] = (g) => i.value = g),
|
|
@@ -1566,7 +1570,7 @@ const rn = /* @__PURE__ */ C({
|
|
|
1566
1570
|
required: a.question.isRequired
|
|
1567
1571
|
}, [
|
|
1568
1572
|
a.question.allowClear ? (t(), u("option", tn, I(a.question.placeholder), 1)) : m("", !0),
|
|
1569
|
-
(t(!0), u(w, null,
|
|
1573
|
+
(t(!0), u(w, null, T(a.question.visibleChoices, (g) => (t(), q(c, {
|
|
1570
1574
|
item: g,
|
|
1571
1575
|
key: g.id
|
|
1572
1576
|
}, null, 8, ["item"]))), 128))
|
|
@@ -1609,7 +1613,7 @@ const rn = /* @__PURE__ */ C({
|
|
|
1609
1613
|
question: {}
|
|
1610
1614
|
},
|
|
1611
1615
|
setup(r) {
|
|
1612
|
-
const o = r, n = S(null), s =
|
|
1616
|
+
const o = r, n = S(null), s = R(() => {
|
|
1613
1617
|
const g = o.question;
|
|
1614
1618
|
return g.dropdownListModel || (g.dropdownListModel = new Ie(g)), o.question.dropdownListModel;
|
|
1615
1619
|
}), e = (g) => {
|
|
@@ -1636,7 +1640,7 @@ const rn = /* @__PURE__ */ C({
|
|
|
1636
1640
|
s.value.inputStringRendered = g.target.value;
|
|
1637
1641
|
};
|
|
1638
1642
|
return B(() => s.value), Z(d), A(d), (g, k) => {
|
|
1639
|
-
const P = v("survey-string"),
|
|
1643
|
+
const P = v("survey-string"), D = v("sv-svg-icon"), E = v("sv-popup");
|
|
1640
1644
|
return t(), u("div", {
|
|
1641
1645
|
class: l(g.question.cssClasses.selectWrapper),
|
|
1642
1646
|
onClick: e
|
|
@@ -1706,12 +1710,12 @@ const rn = /* @__PURE__ */ C({
|
|
|
1706
1710
|
onFocus: y
|
|
1707
1711
|
}, null, 42, cn)
|
|
1708
1712
|
], 2),
|
|
1709
|
-
g.question.allowClear && g.question.cssClasses.cleanButtonIconId ?
|
|
1713
|
+
g.question.allowClear && g.question.cssClasses.cleanButtonIconId ? L((t(), u("div", {
|
|
1710
1714
|
key: 1,
|
|
1711
1715
|
class: l(g.question.cssClasses.cleanButton),
|
|
1712
1716
|
onClick: i
|
|
1713
1717
|
}, [
|
|
1714
|
-
b(
|
|
1718
|
+
b(D, {
|
|
1715
1719
|
class: l(g.question.cssClasses.cleanButtonSvg),
|
|
1716
1720
|
iconName: g.question.cssClasses.cleanButtonIconId,
|
|
1717
1721
|
title: g.question.clearCaption,
|
|
@@ -1740,7 +1744,7 @@ const rn = /* @__PURE__ */ C({
|
|
|
1740
1744
|
key: 3,
|
|
1741
1745
|
class: l(g.question.cssClasses.chevronButton)
|
|
1742
1746
|
}, [
|
|
1743
|
-
b(
|
|
1747
|
+
b(D, {
|
|
1744
1748
|
class: l(g.question.cssClasses.chevronButtonSvg),
|
|
1745
1749
|
iconName: g.question.cssClasses.chevronButtonIconId,
|
|
1746
1750
|
size: "auto"
|
|
@@ -1777,7 +1781,7 @@ const rn = /* @__PURE__ */ C({
|
|
|
1777
1781
|
question: {}
|
|
1778
1782
|
},
|
|
1779
1783
|
setup(r) {
|
|
1780
|
-
const o = r, n =
|
|
1784
|
+
const o = r, n = R(() => {
|
|
1781
1785
|
const d = o.question;
|
|
1782
1786
|
return d.dropdownListModel || (d.dropdownListModel = new Se(d)), o.question.dropdownListModel;
|
|
1783
1787
|
}), s = (d) => {
|
|
@@ -1820,17 +1824,17 @@ const rn = /* @__PURE__ */ C({
|
|
|
1820
1824
|
p("div", {
|
|
1821
1825
|
class: l(d.question.cssClasses.controlValue)
|
|
1822
1826
|
}, [
|
|
1823
|
-
(t(!0), u(w, null,
|
|
1827
|
+
(t(!0), u(w, null, T(d.question.selectedChoices, (P, D) => (t(), q(y, {
|
|
1824
1828
|
item: P,
|
|
1825
1829
|
question: d.question,
|
|
1826
|
-
key: "item" +
|
|
1830
|
+
key: "item" + D
|
|
1827
1831
|
}, null, 8, ["item", "question"]))), 128)),
|
|
1828
1832
|
b(h, {
|
|
1829
1833
|
model: n.value,
|
|
1830
1834
|
question: d.question
|
|
1831
1835
|
}, null, 8, ["model", "question"])
|
|
1832
1836
|
], 2),
|
|
1833
|
-
d.question.allowClear && d.question.cssClasses.cleanButtonIconId ?
|
|
1837
|
+
d.question.allowClear && d.question.cssClasses.cleanButtonIconId ? L((t(), u("div", {
|
|
1834
1838
|
key: 0,
|
|
1835
1839
|
class: l(d.question.cssClasses.cleanButton),
|
|
1836
1840
|
onClick: e
|
|
@@ -1911,7 +1915,7 @@ const rn = /* @__PURE__ */ C({
|
|
|
1911
1915
|
p("span", hn, I(a.model.inputStringRendered), 1),
|
|
1912
1916
|
p("span", null, I(a.model.hintStringSuffix), 1)
|
|
1913
1917
|
], 2)) : m("", !0),
|
|
1914
|
-
|
|
1918
|
+
L(p("input", {
|
|
1915
1919
|
type: "text",
|
|
1916
1920
|
autocomplete: "off",
|
|
1917
1921
|
"onUpdate:modelValue": d[0] || (d[0] = (y) => a.model.inputStringRendered = y),
|
|
@@ -1988,7 +1992,7 @@ const rn = /* @__PURE__ */ C({
|
|
|
1988
1992
|
ref_key: "root",
|
|
1989
1993
|
ref: n
|
|
1990
1994
|
}, [
|
|
1991
|
-
e.question.selectToRankEnabled ? m("", !0) : (t(!0), u(w, { key: 0 },
|
|
1995
|
+
e.question.selectToRankEnabled ? m("", !0) : (t(!0), u(w, { key: 0 }, T(e.question.rankingChoices, (d, c) => (t(), q(a, {
|
|
1992
1996
|
key: d.value + "-" + c + "-item",
|
|
1993
1997
|
class: l(e.question.getItemClass(d)),
|
|
1994
1998
|
text: d.locText,
|
|
@@ -2003,7 +2007,7 @@ const rn = /* @__PURE__ */ C({
|
|
|
2003
2007
|
class: l(e.question.getContainerClasses("from")),
|
|
2004
2008
|
"data-ranking": "from-container"
|
|
2005
2009
|
}, [
|
|
2006
|
-
(t(!0), u(w, null,
|
|
2010
|
+
(t(!0), u(w, null, T(e.question.unRankingChoices, (d, c) => (t(), q(a, {
|
|
2007
2011
|
key: d.value + "-" + c + "-item",
|
|
2008
2012
|
class: l(e.question.getItemClass(d)),
|
|
2009
2013
|
text: d.locText,
|
|
@@ -2028,7 +2032,7 @@ const rn = /* @__PURE__ */ C({
|
|
|
2028
2032
|
class: l(e.question.getContainerClasses("to")),
|
|
2029
2033
|
"data-ranking": "to-container"
|
|
2030
2034
|
}, [
|
|
2031
|
-
(t(!0), u(w, null,
|
|
2035
|
+
(t(!0), u(w, null, T(e.question.rankingChoices, (d, c) => (t(), q(a, {
|
|
2032
2036
|
key: d.value + "-" + c + "-item",
|
|
2033
2037
|
class: l(e.question.getItemClass(d)),
|
|
2034
2038
|
text: d.locText,
|
|
@@ -2046,11 +2050,11 @@ const rn = /* @__PURE__ */ C({
|
|
|
2046
2050
|
], 2);
|
|
2047
2051
|
};
|
|
2048
2052
|
}
|
|
2049
|
-
}), Sn = ["tabindex", "data-sv-drop-target-ranking-item"],
|
|
2053
|
+
}), Sn = ["tabindex", "data-sv-drop-target-ranking-item"], Rn = {
|
|
2050
2054
|
tabindex: "-1",
|
|
2051
2055
|
style: { outline: "none" }
|
|
2052
|
-
},
|
|
2053
|
-
|
|
2056
|
+
}, Tn = /* @__PURE__ */ p("path", { d: "M6 2C6 0.9 6.9 0 8 0C9.1 0 10 0.9 10 2C10 3.1 9.1 4 8 4C6.9 4 6 3.1 6 2ZM2 0C0.9 0 0 0.9 0 2C0 3.1 0.9 4 2 4C3.1 4 4 3.1 4 2C4 0.9 3.1 0 2 0ZM8 6C6.9 6 6 6.9 6 8C6 9.1 6.9 10 8 10C9.1 10 10 9.1 10 8C10 6.9 9.1 6 8 6ZM2 6C0.9 6 0 6.9 0 8C0 9.1 0.9 10 2 10C3.1 10 4 9.1 4 8C4 6.9 3.1 6 2 6ZM8 12C6.9 12 6 12.9 6 14C6 15.1 6.9 16 8 16C9.1 16 10 15.1 10 14C10 12.9 9.1 12 8 12ZM2 12C0.9 12 0 12.9 0 14C0 15.1 0.9 16 2 16C3.1 16 4 15.1 4 14C4 12.9 3.1 12 2 12Z" }, null, -1), $n = [
|
|
2057
|
+
Tn
|
|
2054
2058
|
], Bn = /* @__PURE__ */ p("path", { d: "M10 5L5 0L0 5H4V9H6V5H10Z" }, null, -1), Ln = /* @__PURE__ */ p("path", { d: "M6 19V15H4V19H0L5 24L10 19H6Z" }, null, -1), Dn = [
|
|
2055
2059
|
Bn,
|
|
2056
2060
|
Ln
|
|
@@ -2086,7 +2090,7 @@ const rn = /* @__PURE__ */ C({
|
|
|
2086
2090
|
);
|
|
2087
2091
|
})
|
|
2088
2092
|
}, [
|
|
2089
|
-
p("div",
|
|
2093
|
+
p("div", Rn, [
|
|
2090
2094
|
p("div", {
|
|
2091
2095
|
class: l(n.cssClasses.itemGhostNode)
|
|
2092
2096
|
}, null, 2),
|
|
@@ -2153,7 +2157,7 @@ const rn = /* @__PURE__ */ C({
|
|
|
2153
2157
|
locString: e.question.locMinRateDescription
|
|
2154
2158
|
}, null, 8, ["locString"])
|
|
2155
2159
|
], 2)) : m("", !0),
|
|
2156
|
-
(t(!0), u(w, null,
|
|
2160
|
+
(t(!0), u(w, null, T(e.question.renderedRateItems, (d, c) => (t(), q(N(e.question.itemComponentName), {
|
|
2157
2161
|
key: s(c),
|
|
2158
2162
|
item: d,
|
|
2159
2163
|
index: c,
|
|
@@ -2343,7 +2347,7 @@ const zn = /* @__PURE__ */ C({
|
|
|
2343
2347
|
p("label", {
|
|
2344
2348
|
class: l(i.question.getItemCss())
|
|
2345
2349
|
}, [
|
|
2346
|
-
|
|
2350
|
+
L(p("input", {
|
|
2347
2351
|
type: "checkbox",
|
|
2348
2352
|
name: i.question.name,
|
|
2349
2353
|
value: (c = i.question.booleanValue) != null ? c : "",
|
|
@@ -2410,7 +2414,7 @@ G.Instance.registerRenderer(
|
|
|
2410
2414
|
"radio",
|
|
2411
2415
|
"sv-boolean-radio"
|
|
2412
2416
|
);
|
|
2413
|
-
const
|
|
2417
|
+
const _n = /* @__PURE__ */ C({
|
|
2414
2418
|
__name: "BooleanRadio",
|
|
2415
2419
|
props: {
|
|
2416
2420
|
question: {}
|
|
@@ -2444,7 +2448,7 @@ const jn = /* @__PURE__ */ C({
|
|
|
2444
2448
|
], 2);
|
|
2445
2449
|
};
|
|
2446
2450
|
}
|
|
2447
|
-
}),
|
|
2451
|
+
}), jn = ["name", "value", "checked", "aria-describedby", "disabled"], Qn = ["xlink:href"], Zn = /* @__PURE__ */ C({
|
|
2448
2452
|
__name: "BooleanRadioItem",
|
|
2449
2453
|
props: {
|
|
2450
2454
|
question: {},
|
|
@@ -2474,7 +2478,7 @@ const jn = /* @__PURE__ */ C({
|
|
|
2474
2478
|
disabled: s.question.isInputReadOnly,
|
|
2475
2479
|
class: l(s.question.cssClasses.itemRadioControl),
|
|
2476
2480
|
onChange: n
|
|
2477
|
-
}, null, 42,
|
|
2481
|
+
}, null, 42, jn),
|
|
2478
2482
|
s.question.cssClasses.materialRadioDecorator ? (t(), u("span", {
|
|
2479
2483
|
key: 0,
|
|
2480
2484
|
class: l(s.question.cssClasses.materialRadioDecorator)
|
|
@@ -2485,7 +2489,7 @@ const jn = /* @__PURE__ */ C({
|
|
|
2485
2489
|
}, [
|
|
2486
2490
|
p("use", {
|
|
2487
2491
|
"xlink:href": s.question.itemSvgIcon
|
|
2488
|
-
}, null, 8,
|
|
2492
|
+
}, null, 8, Qn)
|
|
2489
2493
|
], 2)) : m("", !0)
|
|
2490
2494
|
], 2)) : m("", !0),
|
|
2491
2495
|
p("span", {
|
|
@@ -2525,7 +2529,7 @@ const xn = /* @__PURE__ */ C({
|
|
|
2525
2529
|
p("label", {
|
|
2526
2530
|
class: l(s.question.cssClasses.checkboxLabel)
|
|
2527
2531
|
}, [
|
|
2528
|
-
|
|
2532
|
+
L(p("input", {
|
|
2529
2533
|
type: "checkbox",
|
|
2530
2534
|
name: s.question.name,
|
|
2531
2535
|
value: (c = s.question.booleanValue) != null ? c : "",
|
|
@@ -2593,19 +2597,19 @@ const xn = /* @__PURE__ */ C({
|
|
|
2593
2597
|
return M(o, n), (s, e) => {
|
|
2594
2598
|
const i = v("survey-multipletext-item");
|
|
2595
2599
|
return t(), u("table", {
|
|
2596
|
-
class: l(s.question.
|
|
2600
|
+
class: l(s.question.getQuestionRootCss()),
|
|
2597
2601
|
ref_key: "root",
|
|
2598
2602
|
ref: n
|
|
2599
2603
|
}, [
|
|
2600
2604
|
p("tbody", null, [
|
|
2601
|
-
(t(!0), u(w, null,
|
|
2605
|
+
(t(!0), u(w, null, T(s.question.getRows(), (a, d) => (t(), u(w, {
|
|
2602
2606
|
key: s.question.inputId + "rowkey" + d
|
|
2603
2607
|
}, [
|
|
2604
2608
|
a.isVisible ? (t(), u("tr", {
|
|
2605
2609
|
key: 0,
|
|
2606
2610
|
class: l(s.question.cssClasses.row)
|
|
2607
2611
|
}, [
|
|
2608
|
-
(t(!0), u(w, null,
|
|
2612
|
+
(t(!0), u(w, null, T(a.cells, (c) => (t(), u("td", {
|
|
2609
2613
|
key: "item" + c.item.editor.id,
|
|
2610
2614
|
class: l(c.className)
|
|
2611
2615
|
}, [
|
|
@@ -2629,7 +2633,7 @@ const xn = /* @__PURE__ */ C({
|
|
|
2629
2633
|
setup(r) {
|
|
2630
2634
|
const o = r, n = (e) => ee(e);
|
|
2631
2635
|
B(() => o.cell.item.editor);
|
|
2632
|
-
const s =
|
|
2636
|
+
const s = R(() => o.cell.item);
|
|
2633
2637
|
return (e, i) => {
|
|
2634
2638
|
const a = v("survey-string"), d = v("survey-errors");
|
|
2635
2639
|
return e.cell.isErrorsCell ? (t(), q(d, {
|
|
@@ -2708,7 +2712,7 @@ const xn = /* @__PURE__ */ C({
|
|
|
2708
2712
|
i.question.showHeader ? (t(), u("thead", to, [
|
|
2709
2713
|
p("tr", null, [
|
|
2710
2714
|
i.question.hasRows ? (t(), u("td", io)) : m("", !0),
|
|
2711
|
-
(t(!0), u(w, null,
|
|
2715
|
+
(t(!0), u(w, null, T(i.question.visibleColumns, (c, y) => (t(), u("th", {
|
|
2712
2716
|
key: y,
|
|
2713
2717
|
class: l(i.question.cssClasses.headerCell),
|
|
2714
2718
|
style: $({
|
|
@@ -2723,11 +2727,11 @@ const xn = /* @__PURE__ */ C({
|
|
|
2723
2727
|
])
|
|
2724
2728
|
])) : m("", !0),
|
|
2725
2729
|
p("tbody", null, [
|
|
2726
|
-
(t(!0), u(w, null,
|
|
2730
|
+
(t(!0), u(w, null, T(s.value, (c, y) => (t(), u("tr", {
|
|
2727
2731
|
key: "row_" + c.name + "_" + y,
|
|
2728
2732
|
class: l(c.rowClasses || void 0)
|
|
2729
2733
|
}, [
|
|
2730
|
-
|
|
2734
|
+
L(p("td", {
|
|
2731
2735
|
class: l(i.question.cssClasses.rowTextCell),
|
|
2732
2736
|
style: $({
|
|
2733
2737
|
minWidth: i.question.rowTitleWidth,
|
|
@@ -2740,7 +2744,7 @@ const xn = /* @__PURE__ */ C({
|
|
|
2740
2744
|
], 6), [
|
|
2741
2745
|
[H, i.question.hasRows]
|
|
2742
2746
|
]),
|
|
2743
|
-
i.question.hasCellText ? (t(!0), u(w, { key: 0 },
|
|
2747
|
+
i.question.hasCellText ? (t(!0), u(w, { key: 0 }, T(i.question.visibleColumns, (h, g) => (t(), u("td", {
|
|
2744
2748
|
key: g,
|
|
2745
2749
|
class: l(i.question.getItemClass(c, h)),
|
|
2746
2750
|
onClick: (k) => e(c, h)
|
|
@@ -2749,7 +2753,7 @@ const xn = /* @__PURE__ */ C({
|
|
|
2749
2753
|
locString: i.question.getCellDisplayLocText(c.name, h)
|
|
2750
2754
|
}, null, 8, ["locString"])
|
|
2751
2755
|
], 10, lo))), 128)) : m("", !0),
|
|
2752
|
-
i.question.hasCellText ? m("", !0) : (t(!0), u(w, { key: 1 },
|
|
2756
|
+
i.question.hasCellText ? m("", !0) : (t(!0), u(w, { key: 1 }, T(i.question.visibleColumns, (h, g) => (t(), u("td", {
|
|
2753
2757
|
key: g,
|
|
2754
2758
|
"data-responsive-title": h.locText.renderedHtml,
|
|
2755
2759
|
class: l(i.question.cssClasses.cell),
|
|
@@ -2759,7 +2763,7 @@ const xn = /* @__PURE__ */ C({
|
|
|
2759
2763
|
onMousedown: a[0] || (a[0] = (k) => i.question.onMouseDown()),
|
|
2760
2764
|
class: l(i.question.getItemClass(c, h))
|
|
2761
2765
|
}, [
|
|
2762
|
-
|
|
2766
|
+
L(p("input", {
|
|
2763
2767
|
type: "radio",
|
|
2764
2768
|
class: l(i.question.cssClasses.itemValue),
|
|
2765
2769
|
name: c.fullName,
|
|
@@ -2786,7 +2790,7 @@ const xn = /* @__PURE__ */ C({
|
|
|
2786
2790
|
}, null, 8, uo)
|
|
2787
2791
|
], 2)) : m("", !0)
|
|
2788
2792
|
], 2),
|
|
2789
|
-
|
|
2793
|
+
L(p("span", {
|
|
2790
2794
|
class: l(i.question.cssClasses.cellResponsiveTitle)
|
|
2791
2795
|
}, [
|
|
2792
2796
|
b(d, {
|
|
@@ -2826,7 +2830,7 @@ const xn = /* @__PURE__ */ C({
|
|
|
2826
2830
|
question: {}
|
|
2827
2831
|
},
|
|
2828
2832
|
setup(r) {
|
|
2829
|
-
const o = r, n =
|
|
2833
|
+
const o = r, n = R(() => o.question.renderedTable);
|
|
2830
2834
|
return B(
|
|
2831
2835
|
() => n.value,
|
|
2832
2836
|
(s) => {
|
|
@@ -2851,7 +2855,7 @@ const xn = /* @__PURE__ */ C({
|
|
|
2851
2855
|
}, [
|
|
2852
2856
|
n.value.showHeader ? (t(), u("thead", po, [
|
|
2853
2857
|
p("tr", null, [
|
|
2854
|
-
(t(!0), u(w, null,
|
|
2858
|
+
(t(!0), u(w, null, T(n.value.headerRow.cells, (c) => (t(), u(w, null, [
|
|
2855
2859
|
c.hasTitle ? (t(), u("th", {
|
|
2856
2860
|
class: l(c.className),
|
|
2857
2861
|
key: "header_" + c.id,
|
|
@@ -2875,7 +2879,7 @@ const xn = /* @__PURE__ */ C({
|
|
|
2875
2879
|
])
|
|
2876
2880
|
])) : m("", !0),
|
|
2877
2881
|
p("tbody", null, [
|
|
2878
|
-
(t(!0), u(w, null,
|
|
2882
|
+
(t(!0), u(w, null, T(n.value.rows, (c) => (t(), u(w, {
|
|
2879
2883
|
key: s.question.inputId + "_" + c.id
|
|
2880
2884
|
}, [
|
|
2881
2885
|
c.visible ? (t(), u("tr", {
|
|
@@ -2883,7 +2887,7 @@ const xn = /* @__PURE__ */ C({
|
|
|
2883
2887
|
"data-sv-drop-target-matrix-row": c.row && c.row.id,
|
|
2884
2888
|
class: l(c.className)
|
|
2885
2889
|
}, [
|
|
2886
|
-
(t(!0), u(w, null,
|
|
2890
|
+
(t(!0), u(w, null, T(c.cells, (y, h) => (t(), q(d, {
|
|
2887
2891
|
cell: y,
|
|
2888
2892
|
question: s.question,
|
|
2889
2893
|
key: c.id + "_" + h
|
|
@@ -2893,7 +2897,7 @@ const xn = /* @__PURE__ */ C({
|
|
|
2893
2897
|
]),
|
|
2894
2898
|
n.value.showFooter ? (t(), u("tfoot", qo, [
|
|
2895
2899
|
p("tr", null, [
|
|
2896
|
-
(t(!0), u(w, null,
|
|
2900
|
+
(t(!0), u(w, null, T(n.value.footerRow.cells, (c, y) => (t(), q(d, {
|
|
2897
2901
|
cell: c,
|
|
2898
2902
|
question: s.question,
|
|
2899
2903
|
key: "footer_" + y
|
|
@@ -2943,7 +2947,7 @@ const xn = /* @__PURE__ */ C({
|
|
|
2943
2947
|
o.question.survey.matrixAfterCellRender(o.question, y);
|
|
2944
2948
|
}
|
|
2945
2949
|
}), (y, h) => {
|
|
2946
|
-
const g = v("survey-errors"), k = v("sv-matrix-drag-drop-icon"), P = v("sv-action-bar"),
|
|
2950
|
+
const g = v("survey-errors"), k = v("sv-matrix-drag-drop-icon"), P = v("sv-action-bar"), D = v("survey-radiogroup-item"), E = v("survey-checkbox-item"), _ = v("survey-other-choice"), X = v("survey-string");
|
|
2947
2951
|
return t(), u("td", {
|
|
2948
2952
|
class: l(y.cell.className),
|
|
2949
2953
|
"data-responsive-title": e(),
|
|
@@ -2976,19 +2980,19 @@ const xn = /* @__PURE__ */ C({
|
|
|
2976
2980
|
key: 4,
|
|
2977
2981
|
class: l(y.question.cssClasses.cellQuestionWrapper)
|
|
2978
2982
|
}, [
|
|
2979
|
-
!y.cell.isChoice && y.cell.question.isDefaultRendering() ?
|
|
2983
|
+
!y.cell.isChoice && y.cell.question.isDefaultRendering() ? L((t(), q(N(c(y.cell.question)), {
|
|
2980
2984
|
key: 0,
|
|
2981
2985
|
question: y.cell.question
|
|
2982
2986
|
}, null, 8, ["question"])), [
|
|
2983
2987
|
[H, n.value]
|
|
2984
2988
|
]) : m("", !0),
|
|
2985
|
-
!y.cell.isChoice && !y.cell.question.isDefaultRendering() ?
|
|
2989
|
+
!y.cell.isChoice && !y.cell.question.isDefaultRendering() ? L((t(), q(N(y.cell.question.getComponentName()), {
|
|
2986
2990
|
key: 1,
|
|
2987
2991
|
question: y.cell.question
|
|
2988
2992
|
}, null, 8, ["question"])), [
|
|
2989
2993
|
[H, n.value]
|
|
2990
2994
|
]) : m("", !0),
|
|
2991
|
-
y.cell.isRadio ? (t(), q(
|
|
2995
|
+
y.cell.isRadio ? (t(), q(D, {
|
|
2992
2996
|
key: y.cell.item.value,
|
|
2993
2997
|
class: l(y.cell.question.getItemClass(y.cell.item)),
|
|
2994
2998
|
question: y.cell.question,
|
|
@@ -3004,7 +3008,7 @@ const xn = /* @__PURE__ */ C({
|
|
|
3004
3008
|
index: a(),
|
|
3005
3009
|
hideLabel: !0
|
|
3006
3010
|
}, null, 8, ["class", "question", "item", "index"])) : m("", !0),
|
|
3007
|
-
y.cell.isOtherChoice ? (t(), q(
|
|
3011
|
+
y.cell.isOtherChoice ? (t(), q(_, {
|
|
3008
3012
|
key: 4,
|
|
3009
3013
|
question: y.cell.question
|
|
3010
3014
|
}, null, 8, ["question"])) : m("", !0)
|
|
@@ -3105,8 +3109,8 @@ const xn = /* @__PURE__ */ C({
|
|
|
3105
3109
|
});
|
|
3106
3110
|
function se(r, o = !0) {
|
|
3107
3111
|
return {
|
|
3108
|
-
question:
|
|
3109
|
-
row: o ?
|
|
3112
|
+
question: R(() => r.item.data.question),
|
|
3113
|
+
row: o ? R(() => r.item.data.row) : void 0
|
|
3110
3114
|
};
|
|
3111
3115
|
}
|
|
3112
3116
|
const fo = ["disabled"], Io = /* @__PURE__ */ C({
|
|
@@ -3152,7 +3156,7 @@ const fo = ["disabled"], Io = /* @__PURE__ */ C({
|
|
|
3152
3156
|
class: l(f(n).cssClasses.iconDrag)
|
|
3153
3157
|
}, null, 2));
|
|
3154
3158
|
}
|
|
3155
|
-
}),
|
|
3159
|
+
}), Ro = ["aria-expanded", "aria-controls"], To = /* @__PURE__ */ C({
|
|
3156
3160
|
__name: "DetailButton",
|
|
3157
3161
|
props: {
|
|
3158
3162
|
item: {}
|
|
@@ -3173,7 +3177,7 @@ const fo = ["disabled"], Io = /* @__PURE__ */ C({
|
|
|
3173
3177
|
iconName: f(n).getDetailPanelIconId(f(s)),
|
|
3174
3178
|
size: "auto"
|
|
3175
3179
|
}, null, 8, ["class", "iconName"])
|
|
3176
|
-
], 10,
|
|
3180
|
+
], 10, Ro);
|
|
3177
3181
|
};
|
|
3178
3182
|
}
|
|
3179
3183
|
}), $o = /* @__PURE__ */ C({
|
|
@@ -3206,7 +3210,7 @@ const fo = ["disabled"], Io = /* @__PURE__ */ C({
|
|
|
3206
3210
|
};
|
|
3207
3211
|
}
|
|
3208
3212
|
);
|
|
3209
|
-
const e =
|
|
3213
|
+
const e = R(() => {
|
|
3210
3214
|
if (o.question.isRenderModeList)
|
|
3211
3215
|
return o.question.panels;
|
|
3212
3216
|
const a = [];
|
|
@@ -3246,24 +3250,24 @@ const fo = ["disabled"], Io = /* @__PURE__ */ C({
|
|
|
3246
3250
|
key: 2,
|
|
3247
3251
|
question: a.question
|
|
3248
3252
|
}, null, 8, ["question"])) : m("", !0),
|
|
3249
|
-
(t(!0), u(w, null,
|
|
3250
|
-
key:
|
|
3253
|
+
(t(!0), u(w, null, T(e.value, (D, E) => (t(), u(w, {
|
|
3254
|
+
key: D.id
|
|
3251
3255
|
}, [
|
|
3252
3256
|
p("div", {
|
|
3253
3257
|
class: l(a.question.getPanelWrapperCss())
|
|
3254
3258
|
}, [
|
|
3255
3259
|
b(g, {
|
|
3256
|
-
question:
|
|
3260
|
+
question: D,
|
|
3257
3261
|
css: a.css
|
|
3258
3262
|
}, null, 8, ["question", "css"]),
|
|
3259
|
-
a.question.panelRemoveButtonLocation === "right" && a.question.canRemovePanel &&
|
|
3263
|
+
a.question.panelRemoveButtonLocation === "right" && a.question.canRemovePanel && D.state !== "collapsed" ? (t(), q(k, {
|
|
3260
3264
|
key: 0,
|
|
3261
|
-
data: { question: a.question, panel:
|
|
3265
|
+
data: { question: a.question, panel: D }
|
|
3262
3266
|
}, null, 8, ["data"])) : m("", !0)
|
|
3263
3267
|
], 2),
|
|
3264
3268
|
a.question.isRenderModeList && E < a.question.visiblePanelCount - 1 ? (t(), u("hr", {
|
|
3265
3269
|
class: l(a.question.cssClasses.separator),
|
|
3266
|
-
key: "separator" +
|
|
3270
|
+
key: "separator" + D.id
|
|
3267
3271
|
}, null, 2)) : m("", !0)
|
|
3268
3272
|
], 64))), 128)),
|
|
3269
3273
|
i() && a.question.isProgressBottomShowing ? (t(), q(h, {
|
|
@@ -3365,7 +3369,7 @@ const fo = ["disabled"], Io = /* @__PURE__ */ C({
|
|
|
3365
3369
|
}
|
|
3366
3370
|
});
|
|
3367
3371
|
function K(r) {
|
|
3368
|
-
return
|
|
3372
|
+
return R(
|
|
3369
3373
|
() => r.item && r.item.data.question || r.data.question
|
|
3370
3374
|
);
|
|
3371
3375
|
}
|
|
@@ -3445,7 +3449,7 @@ const Do = /* @__PURE__ */ C({
|
|
|
3445
3449
|
data: {}
|
|
3446
3450
|
},
|
|
3447
3451
|
setup(r) {
|
|
3448
|
-
const o = r, n = K(o), s =
|
|
3452
|
+
const o = r, n = K(o), s = R(
|
|
3449
3453
|
() => o.item && o.item.data.panel || o.data.panel
|
|
3450
3454
|
), e = (i) => {
|
|
3451
3455
|
n.value.isInputReadOnly || n.value.removePanelUI(i);
|
|
@@ -3494,7 +3498,7 @@ const Do = /* @__PURE__ */ C({
|
|
|
3494
3498
|
ref_key: "root",
|
|
3495
3499
|
ref: o
|
|
3496
3500
|
}, [
|
|
3497
|
-
(t(!0), u(w, null,
|
|
3501
|
+
(t(!0), u(w, null, T(n.element.errors, (i, a) => (t(), u("div", {
|
|
3498
3502
|
key: "error_" + a
|
|
3499
3503
|
}, [
|
|
3500
3504
|
p("span", {
|
|
@@ -3532,8 +3536,8 @@ const Do = /* @__PURE__ */ C({
|
|
|
3532
3536
|
value: o.question.comment,
|
|
3533
3537
|
maxlength: o.question.getOthersMaxLength(),
|
|
3534
3538
|
placeholder: o.question.renderedCommentPlaceholder,
|
|
3535
|
-
"aria-label": o.question.ariaLabel,
|
|
3536
|
-
"aria-required": o.question.ariaRequired,
|
|
3539
|
+
"aria-label": o.question.ariaLabel || o.question.a11y_input_ariaLabel,
|
|
3540
|
+
"aria-required": o.question.ariaRequired || o.question.a11y_input_ariaRequired,
|
|
3537
3541
|
style: $({ resize: o.question.resizeStyle }),
|
|
3538
3542
|
onChange: n[0] || (n[0] = (s) => {
|
|
3539
3543
|
o.question.onCommentChange(s);
|
|
@@ -3583,7 +3587,7 @@ const Do = /* @__PURE__ */ C({
|
|
|
3583
3587
|
}, 40, ["class", "aria-label", "id", "tabindex", "aria-expanded", "role"])) : m("", !0);
|
|
3584
3588
|
};
|
|
3585
3589
|
}
|
|
3586
|
-
}), Ko = { class: "sv-vue-title-additional-div" },
|
|
3590
|
+
}), Ko = { class: "sv-vue-title-additional-div" }, _o = { key: 3 }, jo = { key: 5 }, Qo = { key: 7 }, Zo = /* @__PURE__ */ C({
|
|
3587
3591
|
__name: "TitleContent",
|
|
3588
3592
|
props: {
|
|
3589
3593
|
element: {},
|
|
@@ -3608,18 +3612,18 @@ const Do = /* @__PURE__ */ C({
|
|
|
3608
3612
|
class: l(o.element.cssTitleNumber),
|
|
3609
3613
|
"aria-hidden": !0
|
|
3610
3614
|
}, I(o.element.no), 3)) : m("", !0),
|
|
3611
|
-
!o.element.isTitleRenderedAsString && o.element.no ? (t(), u("span",
|
|
3615
|
+
!o.element.isTitleRenderedAsString && o.element.no ? (t(), u("span", _o, "\xA0")) : m("", !0),
|
|
3612
3616
|
!o.element.isTitleRenderedAsString && o.element.isRequireTextBeforeTitle ? (t(), u("span", {
|
|
3613
3617
|
key: 4,
|
|
3614
3618
|
class: l(o.element.cssClasses.requiredText),
|
|
3615
3619
|
"aria-hidden": !0
|
|
3616
3620
|
}, I(o.element.requiredText), 3)) : m("", !0),
|
|
3617
|
-
!o.element.isTitleRenderedAsString && o.element.isRequireTextBeforeTitle ? (t(), u("span",
|
|
3621
|
+
!o.element.isTitleRenderedAsString && o.element.isRequireTextBeforeTitle ? (t(), u("span", jo, "\xA0")) : m("", !0),
|
|
3618
3622
|
o.element.isTitleRenderedAsString ? m("", !0) : (t(), q(s, {
|
|
3619
3623
|
key: 6,
|
|
3620
3624
|
locString: o.element.locTitle
|
|
3621
3625
|
}, null, 8, ["locString"])),
|
|
3622
|
-
!o.element.isTitleRenderedAsString && o.element.isRequireTextAfterTitle ? (t(), u("span",
|
|
3626
|
+
!o.element.isTitleRenderedAsString && o.element.isRequireTextAfterTitle ? (t(), u("span", Qo, "\xA0")) : m("", !0),
|
|
3623
3627
|
!o.element.isTitleRenderedAsString && o.element.isRequireTextAfterTitle ? (t(), u("span", {
|
|
3624
3628
|
key: 8,
|
|
3625
3629
|
class: l(o.element.cssClasses.requiredText),
|
|
@@ -3635,7 +3639,7 @@ const Do = /* @__PURE__ */ C({
|
|
|
3635
3639
|
css: {}
|
|
3636
3640
|
},
|
|
3637
3641
|
setup(r) {
|
|
3638
|
-
const o = r, n =
|
|
3642
|
+
const o = r, n = R(() => o.element.getTitleToolbar());
|
|
3639
3643
|
return (s, e) => {
|
|
3640
3644
|
const i = v("survey-string"), a = v("survey-element-title-content"), d = v("sv-action-bar");
|
|
3641
3645
|
return t(), u("div", Go, [
|
|
@@ -3678,7 +3682,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
3678
3682
|
},
|
|
3679
3683
|
setup(r) {
|
|
3680
3684
|
const o = r, n = S(), s = () => {
|
|
3681
|
-
|
|
3685
|
+
Re(
|
|
3682
3686
|
o.size,
|
|
3683
3687
|
o.width,
|
|
3684
3688
|
o.height,
|
|
@@ -3723,7 +3727,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
3723
3727
|
a.stopPropagation();
|
|
3724
3728
|
})
|
|
3725
3729
|
}, [
|
|
3726
|
-
(t(!0), u(w, null,
|
|
3730
|
+
(t(!0), u(w, null, T(s.model.renderedActions, (a) => (t(), q(i, {
|
|
3727
3731
|
key: a.id,
|
|
3728
3732
|
item: a
|
|
3729
3733
|
}, null, 8, ["item"]))), 128))
|
|
@@ -3736,7 +3740,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
3736
3740
|
item: {}
|
|
3737
3741
|
},
|
|
3738
3742
|
setup(r) {
|
|
3739
|
-
const o = r, n =
|
|
3743
|
+
const o = r, n = R(
|
|
3740
3744
|
() => o.item.component || "sv-action-bar-item"
|
|
3741
3745
|
);
|
|
3742
3746
|
return B(() => o.item), (s, e) => {
|
|
@@ -3802,7 +3806,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
3802
3806
|
return B(
|
|
3803
3807
|
() => o.item,
|
|
3804
3808
|
(e) => {
|
|
3805
|
-
s = new
|
|
3809
|
+
s = new Te(e);
|
|
3806
3810
|
},
|
|
3807
3811
|
() => {
|
|
3808
3812
|
s.dispose();
|
|
@@ -3849,7 +3853,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
3849
3853
|
item: {}
|
|
3850
3854
|
},
|
|
3851
3855
|
setup(r) {
|
|
3852
|
-
const o = r, n =
|
|
3856
|
+
const o = r, n = R(() => o.item && o.item.innerCss);
|
|
3853
3857
|
return (s, e) => (t(), u("div", {
|
|
3854
3858
|
class: l(["sv-action-bar-separator", n.value])
|
|
3855
3859
|
}, null, 2));
|
|
@@ -3912,7 +3916,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
3912
3916
|
})
|
|
3913
3917
|
], 2)) : m("", !0)
|
|
3914
3918
|
], 2)) : m("", !0),
|
|
3915
|
-
|
|
3919
|
+
L(p("div", {
|
|
3916
3920
|
class: l(a.model.cssClasses.emptyContainer)
|
|
3917
3921
|
}, [
|
|
3918
3922
|
p("div", {
|
|
@@ -3922,7 +3926,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
3922
3926
|
], 2), [
|
|
3923
3927
|
[H, a.model.isEmpty]
|
|
3924
3928
|
]),
|
|
3925
|
-
a.model.renderElements ?
|
|
3929
|
+
a.model.renderElements ? L((t(), u("ul", {
|
|
3926
3930
|
key: 1,
|
|
3927
3931
|
class: l(a.model.getListClass()),
|
|
3928
3932
|
role: "listbox",
|
|
@@ -3935,7 +3939,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
3935
3939
|
a.model.onKeyDown(h);
|
|
3936
3940
|
})
|
|
3937
3941
|
}, [
|
|
3938
|
-
(t(!0), u(w, null,
|
|
3942
|
+
(t(!0), u(w, null, T(a.model.renderedActions, (h) => (t(), q(y, {
|
|
3939
3943
|
item: h,
|
|
3940
3944
|
model: a.model,
|
|
3941
3945
|
key: h.id
|
|
@@ -3953,7 +3957,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
3953
3957
|
item: {}
|
|
3954
3958
|
},
|
|
3955
3959
|
setup(r) {
|
|
3956
|
-
const o = r, n =
|
|
3960
|
+
const o = r, n = R(() => o.item.elementId), s = (e) => {
|
|
3957
3961
|
o.model.onItemClick(o.item), e.stopPropagation();
|
|
3958
3962
|
};
|
|
3959
3963
|
return B(() => o.item), A(() => {
|
|
@@ -3962,7 +3966,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
3962
3966
|
});
|
|
3963
3967
|
}), (e, i) => {
|
|
3964
3968
|
const a = v("sv-svg-icon"), d = v("survey-string"), c = Y("key2click");
|
|
3965
|
-
return
|
|
3969
|
+
return L((t(), u("li", {
|
|
3966
3970
|
tabindex: "0",
|
|
3967
3971
|
role: "option",
|
|
3968
3972
|
"aria-selected": e.model.isItemSelected(e.item),
|
|
@@ -4010,7 +4014,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
4010
4014
|
const o = r, n = F(
|
|
4011
4015
|
te(o.model, void 0)
|
|
4012
4016
|
), s = S(null);
|
|
4013
|
-
return
|
|
4017
|
+
return Q(
|
|
4014
4018
|
() => o.model,
|
|
4015
4019
|
(e) => {
|
|
4016
4020
|
n.value.dispose(), n.value = te(e, void 0);
|
|
@@ -4034,10 +4038,10 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
4034
4038
|
], 512);
|
|
4035
4039
|
};
|
|
4036
4040
|
}
|
|
4037
|
-
}), wt = { class: "sv-popup__shadow" }, St = { class: "sv-popup__body-content" },
|
|
4041
|
+
}), wt = { class: "sv-popup__shadow" }, St = { class: "sv-popup__body-content" }, Rt = {
|
|
4038
4042
|
key: 0,
|
|
4039
4043
|
class: "sv-popup__body-header"
|
|
4040
|
-
},
|
|
4044
|
+
}, Tt = { class: "sv-popup__scrolling-content" }, $t = { class: "sv-popup__content" }, Bt = {
|
|
4041
4045
|
key: 1,
|
|
4042
4046
|
class: "sv-popup__body-footer"
|
|
4043
4047
|
}, Lt = /* @__PURE__ */ C({
|
|
@@ -4056,7 +4060,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
4056
4060
|
!n && e.isVisible && o.model.updateOnShowing(), n = e.isVisible;
|
|
4057
4061
|
}), (e, i) => {
|
|
4058
4062
|
const a = v("sv-action-bar");
|
|
4059
|
-
return
|
|
4063
|
+
return L((t(), u("div", {
|
|
4060
4064
|
tabindex: "-1",
|
|
4061
4065
|
class: l(["sv-popup", e.model.styleClass]),
|
|
4062
4066
|
onKeydown: i[0] || (i[0] = (d) => {
|
|
@@ -4083,8 +4087,8 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
4083
4087
|
model: e.model
|
|
4084
4088
|
}, null, 8, ["model"])) : m("", !0),
|
|
4085
4089
|
p("div", St, [
|
|
4086
|
-
e.model.title ? (t(), u("div",
|
|
4087
|
-
p("div",
|
|
4090
|
+
e.model.title ? (t(), u("div", Rt, I(e.model.title), 1)) : m("", !0),
|
|
4091
|
+
p("div", Tt, [
|
|
4088
4092
|
p("div", $t, [
|
|
4089
4093
|
(t(), q(N(e.model.contentComponentName), Ce(he(e.model.contentComponentData)), null, 16))
|
|
4090
4094
|
])
|
|
@@ -4127,23 +4131,23 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
4127
4131
|
needRenderWrapper: {}
|
|
4128
4132
|
},
|
|
4129
4133
|
setup(r) {
|
|
4130
|
-
const o = r, n =
|
|
4134
|
+
const o = r, n = R(
|
|
4131
4135
|
() => o.survey.getContainerContent(o.container)
|
|
4132
4136
|
);
|
|
4133
4137
|
return (s, e) => n.value.length > 0 ? (t(), u(w, { key: 0 }, [
|
|
4134
4138
|
s.needRenderWrapper ? (t(), u("div", Pt, [
|
|
4135
|
-
(t(!0), u(w, null,
|
|
4139
|
+
(t(!0), u(w, null, T(n.value, (i, a) => (t(), q(N(i.component), {
|
|
4136
4140
|
survey: s.survey,
|
|
4137
4141
|
container: s.container,
|
|
4138
4142
|
model: i.data
|
|
4139
4143
|
}, null, 8, ["survey", "container", "model"]))), 256))
|
|
4140
|
-
])) : (t(!0), u(w, { key: 1 },
|
|
4144
|
+
])) : (t(!0), u(w, { key: 1 }, T(n.value, (i, a) => (t(), q(N(i.component), {
|
|
4141
4145
|
survey: s.survey,
|
|
4142
4146
|
model: i.data
|
|
4143
4147
|
}, null, 8, ["survey", "model"]))), 256))
|
|
4144
4148
|
], 64)) : m("", !0);
|
|
4145
4149
|
}
|
|
4146
|
-
}),
|
|
4150
|
+
}), j = /* @__PURE__ */ C({
|
|
4147
4151
|
__name: "Progress",
|
|
4148
4152
|
props: {
|
|
4149
4153
|
survey: {},
|
|
@@ -4151,7 +4155,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
4151
4155
|
css: {}
|
|
4152
4156
|
},
|
|
4153
4157
|
setup(r) {
|
|
4154
|
-
const o = r, n =
|
|
4158
|
+
const o = r, n = R(() => o.survey.progressValue + "%"), s = (i) => ie.getProgressTextInBarCss(i), e = (i) => ie.getProgressTextUnderBarCss(i);
|
|
4155
4159
|
return (i, a) => (t(), u("div", {
|
|
4156
4160
|
class: l(i.survey.getProgressCssClasses(i.container))
|
|
4157
4161
|
}, [
|
|
@@ -4177,7 +4181,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
4177
4181
|
survey: {}
|
|
4178
4182
|
},
|
|
4179
4183
|
setup(r) {
|
|
4180
|
-
const o = r, n = new Be(o.survey), s = S(!1), e = S(), i =
|
|
4184
|
+
const o = r, n = new Be(o.survey), s = S(!1), e = S(), i = R(() => o.survey.css);
|
|
4181
4185
|
let a;
|
|
4182
4186
|
const d = (k) => n.isListElementClickable(k), c = (k) => n.getListElementCss(k), y = (k) => {
|
|
4183
4187
|
n.clickListElement(k);
|
|
@@ -4200,7 +4204,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
4200
4204
|
}, [
|
|
4201
4205
|
p("div", {
|
|
4202
4206
|
class: l(h(s.value, !0)),
|
|
4203
|
-
onClick: P[0] || (P[0] = (
|
|
4207
|
+
onClick: P[0] || (P[0] = (D) => g(!0)),
|
|
4204
4208
|
role: "button"
|
|
4205
4209
|
}, null, 2),
|
|
4206
4210
|
p("div", {
|
|
@@ -4211,25 +4215,25 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
4211
4215
|
p("ul", {
|
|
4212
4216
|
class: l(i.value.progressButtonsList)
|
|
4213
4217
|
}, [
|
|
4214
|
-
(t(!0), u(w, null,
|
|
4218
|
+
(t(!0), u(w, null, T(k.survey.visiblePages, (D, E) => (t(), u("li", {
|
|
4215
4219
|
key: "listelement" + E,
|
|
4216
4220
|
class: l(c(E)),
|
|
4217
|
-
onClick: (
|
|
4221
|
+
onClick: (_) => d(E) ? y(E) : null
|
|
4218
4222
|
}, [
|
|
4219
4223
|
p("div", {
|
|
4220
4224
|
class: l(i.value.progressButtonsPageTitle),
|
|
4221
|
-
title:
|
|
4222
|
-
}, I(
|
|
4225
|
+
title: D.renderedNavigationTitle
|
|
4226
|
+
}, I(D.renderedNavigationTitle), 11, Ht),
|
|
4223
4227
|
p("div", {
|
|
4224
4228
|
class: l(i.value.progressButtonsPageDescription),
|
|
4225
|
-
title:
|
|
4226
|
-
}, I(
|
|
4229
|
+
title: D.locNavigationDescription.renderedHtml
|
|
4230
|
+
}, I(D.locNavigationDescription.renderedHtml), 11, At)
|
|
4227
4231
|
], 10, Nt))), 128))
|
|
4228
4232
|
], 2)
|
|
4229
4233
|
], 2),
|
|
4230
4234
|
p("div", {
|
|
4231
4235
|
class: l(h(s.value, !1)),
|
|
4232
|
-
onClick: P[1] || (P[1] = (
|
|
4236
|
+
onClick: P[1] || (P[1] = (D) => g(!1)),
|
|
4233
4237
|
role: "button"
|
|
4234
4238
|
}, null, 2)
|
|
4235
4239
|
], 2)
|
|
@@ -4247,7 +4251,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
4247
4251
|
return t(), u("div", {
|
|
4248
4252
|
class: l(f(n).containerCss)
|
|
4249
4253
|
}, [
|
|
4250
|
-
f(n).isMobile ?
|
|
4254
|
+
f(n).isMobile ? L((t(), u("div", {
|
|
4251
4255
|
key: 0,
|
|
4252
4256
|
onClick: e[0] || (e[0] = (...y) => f(n).togglePopup && f(n).togglePopup(...y))
|
|
4253
4257
|
}, [
|
|
@@ -4270,42 +4274,42 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
4270
4274
|
}), Ot = { onsubmit: "return false;" }, Ft = {
|
|
4271
4275
|
key: 0,
|
|
4272
4276
|
class: "sv_custom_header"
|
|
4273
|
-
}, Wt = ["id"], zt = { key: 1 }, Ut = ["innerHTML"], Kt = ["innerHTML"],
|
|
4277
|
+
}, Wt = ["id"], zt = { key: 1 }, Ut = ["innerHTML"], Kt = ["innerHTML"], _t = ["innerHTML"], re = /* @__PURE__ */ C({
|
|
4274
4278
|
__name: "Survey",
|
|
4275
4279
|
props: {
|
|
4276
4280
|
model: {},
|
|
4277
4281
|
survey: {}
|
|
4278
4282
|
},
|
|
4279
4283
|
setup(r) {
|
|
4280
|
-
const o = r, n = S(), s = S(""), e = S(1), i =
|
|
4284
|
+
const o = r, n = S(), s = S(""), e = S(1), i = R(() => {
|
|
4281
4285
|
const k = o.survey ? o.survey : o.model;
|
|
4282
4286
|
return be(k);
|
|
4283
|
-
}), a =
|
|
4287
|
+
}), a = R(() => i.value.activePage ? i.value.activePage.id : ""), d = () => {
|
|
4284
4288
|
const k = a.value;
|
|
4285
4289
|
return !!i.value && k + e.value.toString();
|
|
4286
|
-
}, c =
|
|
4290
|
+
}, c = R(
|
|
4287
4291
|
() => i.value.showCompletedPage && i.value.state === "completed"
|
|
4288
|
-
), y =
|
|
4292
|
+
), y = R(() => i.value.css), h = R(() => "page" + d()), g = () => c.value ? (s.value || (s.value = i.value.processedCompletedHtml), s.value) : "";
|
|
4289
4293
|
return B(() => i.value), A(() => {
|
|
4290
4294
|
if (!!i.value) {
|
|
4291
4295
|
i.value.needRenderIcons && De.renderIcons();
|
|
4292
4296
|
var k = n.value;
|
|
4293
4297
|
k && i.value.afterRenderSurvey(k), i.value.renderCallback = () => {
|
|
4294
|
-
var P,
|
|
4295
|
-
e.value++, (
|
|
4298
|
+
var P, D;
|
|
4299
|
+
e.value++, (D = (P = x()) == null ? void 0 : P.proxy) == null || D.$forceUpdate();
|
|
4296
4300
|
}, i.value.startTimerFromUI();
|
|
4297
4301
|
}
|
|
4298
4302
|
}), V(() => {
|
|
4299
4303
|
i.value.stopTimer(), i.value.renderCallback = void 0;
|
|
4300
4304
|
}), (k, P) => {
|
|
4301
|
-
const
|
|
4305
|
+
const D = v("survey-popup-modal"), E = v("survey-header"), _ = v("survey-page"), X = v("sv-brand-info"), ne = v("sv-notifier");
|
|
4302
4306
|
return t(), u("div", {
|
|
4303
4307
|
class: l(i.value.getRootCss()),
|
|
4304
4308
|
style: $(i.value.themeVariables),
|
|
4305
4309
|
ref_key: "root",
|
|
4306
4310
|
ref: n
|
|
4307
4311
|
}, [
|
|
4308
|
-
b(
|
|
4312
|
+
b(D),
|
|
4309
4313
|
i.value.renderBackgroundImage ? (t(), u("div", {
|
|
4310
4314
|
key: 0,
|
|
4311
4315
|
class: l(y.value.rootBackgroundImage),
|
|
@@ -4341,7 +4345,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
4341
4345
|
container: "contentTop",
|
|
4342
4346
|
needRenderWrapper: !0
|
|
4343
4347
|
}, null, 8, ["survey"])),
|
|
4344
|
-
(t(), q(
|
|
4348
|
+
(t(), q(_, {
|
|
4345
4349
|
key: h.value,
|
|
4346
4350
|
survey: i.value,
|
|
4347
4351
|
page: i.value.activePage,
|
|
@@ -4379,7 +4383,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
4379
4383
|
key: 3,
|
|
4380
4384
|
class: l(i.value.loadingBodyCss),
|
|
4381
4385
|
innerHTML: i.value.processedLoadingHtml
|
|
4382
|
-
}, null, 10,
|
|
4386
|
+
}, null, 10, _t)) : m("", !0),
|
|
4383
4387
|
i.value.state === "empty" ? (t(), u("div", {
|
|
4384
4388
|
key: 4,
|
|
4385
4389
|
class: l(y.value.bodyEmpty)
|
|
@@ -4393,7 +4397,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
4393
4397
|
], 6);
|
|
4394
4398
|
};
|
|
4395
4399
|
}
|
|
4396
|
-
}),
|
|
4400
|
+
}), jt = /* @__PURE__ */ C({
|
|
4397
4401
|
__name: "Notifier",
|
|
4398
4402
|
props: {
|
|
4399
4403
|
model: {}
|
|
@@ -4402,7 +4406,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
4402
4406
|
const o = r;
|
|
4403
4407
|
return B(() => o.model), (n, s) => {
|
|
4404
4408
|
const e = v("sv-action-bar");
|
|
4405
|
-
return
|
|
4409
|
+
return L((t(), u("div", {
|
|
4406
4410
|
class: l(n.model.css),
|
|
4407
4411
|
style: $({ visibility: n.model.active ? "visible" : "hidden" }),
|
|
4408
4412
|
role: "alert",
|
|
@@ -4417,7 +4421,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
4417
4421
|
]);
|
|
4418
4422
|
};
|
|
4419
4423
|
}
|
|
4420
|
-
}),
|
|
4424
|
+
}), Qt = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], Zt = { key: 1 }, Gt = /* @__PURE__ */ C({
|
|
4421
4425
|
__name: "QuestionOther",
|
|
4422
4426
|
props: {
|
|
4423
4427
|
question: {},
|
|
@@ -4436,8 +4440,8 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
4436
4440
|
value: o.question.otherValue,
|
|
4437
4441
|
maxlength: o.question.getOthersMaxLength(),
|
|
4438
4442
|
placeholder: o.question.otherPlaceholder,
|
|
4439
|
-
"aria-label": o.question.ariaLabel,
|
|
4440
|
-
"aria-required": o.question.ariaRequired,
|
|
4443
|
+
"aria-label": o.question.ariaLabel || o.question.a11y_input_ariaLabel,
|
|
4444
|
+
"aria-required": o.question.ariaRequired || o.question.a11y_input_ariaRequired,
|
|
4441
4445
|
style: $({ resize: o.question.resizeStyle }),
|
|
4442
4446
|
onChange: n[0] || (n[0] = (s) => {
|
|
4443
4447
|
o.question.onOtherValueChange(s);
|
|
@@ -4445,7 +4449,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
4445
4449
|
onInput: n[1] || (n[1] = (s) => {
|
|
4446
4450
|
o.question.onOtherValueInput(s);
|
|
4447
4451
|
})
|
|
4448
|
-
}, null, 46,
|
|
4452
|
+
}, null, 46, Qt)),
|
|
4449
4453
|
o.question.isReadOnlyRenderDiv() ? (t(), u("div", Zt, I(o.question.otherValue), 1)) : m("", !0)
|
|
4450
4454
|
], 2));
|
|
4451
4455
|
}
|
|
@@ -4475,10 +4479,10 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
4475
4479
|
closeOnCompleteTimeout: {}
|
|
4476
4480
|
},
|
|
4477
4481
|
setup(r) {
|
|
4478
|
-
const o = r, n = F(), s =
|
|
4482
|
+
const o = r, n = F(), s = R(() => o.survey ? o.survey.getCss() : {}), e = R(() => {
|
|
4479
4483
|
var g;
|
|
4480
4484
|
return (g = n.value) != null && g.isExpanded ? s.value.window.header.buttonCollapsed : s.value.window.header.buttonExpanded;
|
|
4481
|
-
}), i =
|
|
4485
|
+
}), i = R(() => {
|
|
4482
4486
|
var g;
|
|
4483
4487
|
return (g = n.value) == null ? void 0 : g.isExpanded;
|
|
4484
4488
|
}), a = () => {
|
|
@@ -4489,7 +4493,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
4489
4493
|
n.value.onScroll();
|
|
4490
4494
|
};
|
|
4491
4495
|
B(() => n.value);
|
|
4492
|
-
const h =
|
|
4496
|
+
const h = Q(
|
|
4493
4497
|
() => o.survey,
|
|
4494
4498
|
(g) => {
|
|
4495
4499
|
const k = new Pe(null, g);
|
|
@@ -4502,7 +4506,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
4502
4506
|
return V(() => {
|
|
4503
4507
|
h();
|
|
4504
4508
|
}), (g, k) => {
|
|
4505
|
-
const P = v("survey-string"),
|
|
4509
|
+
const P = v("survey-string"), D = v("sv-svg-icon");
|
|
4506
4510
|
return n.value.isShowing ? (t(), u("div", {
|
|
4507
4511
|
key: 0,
|
|
4508
4512
|
style: $([{ position: "fixed", bottom: "3px", right: "10px" }, {
|
|
@@ -4537,7 +4541,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
4537
4541
|
onClick: d,
|
|
4538
4542
|
style: { transform: "rotate(45deg)", float: "right", cursor: "pointer", "user-select": "none", width: "24px", height: "24px" }
|
|
4539
4543
|
}, [
|
|
4540
|
-
b(
|
|
4544
|
+
b(D, {
|
|
4541
4545
|
iconName: "icon-expanddetail",
|
|
4542
4546
|
size: 16
|
|
4543
4547
|
})
|
|
@@ -4548,7 +4552,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
4548
4552
|
onClick: a,
|
|
4549
4553
|
style: { float: "right", cursor: "pointer", "user-select": "none", width: "24px", height: "24px" }
|
|
4550
4554
|
}, [
|
|
4551
|
-
b(
|
|
4555
|
+
b(D, {
|
|
4552
4556
|
iconName: "icon-collapsedetail",
|
|
4553
4557
|
size: 16
|
|
4554
4558
|
})
|
|
@@ -4571,11 +4575,11 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
4571
4575
|
css: {}
|
|
4572
4576
|
},
|
|
4573
4577
|
setup(r) {
|
|
4574
|
-
const o = r, n = S(), s =
|
|
4578
|
+
const o = r, n = S(), s = R(
|
|
4575
4579
|
() => o.question.customWidget.isDefaultRender
|
|
4576
|
-
), e =
|
|
4580
|
+
), e = R(
|
|
4577
4581
|
() => !!o.question.customWidget.htmlTemplate
|
|
4578
|
-
), i =
|
|
4582
|
+
), i = R(() => o.question.customWidget.htmlTemplate), a = R(() => "survey-" + o.question.getTemplate());
|
|
4579
4583
|
return A(() => {
|
|
4580
4584
|
o.question.customWidget.afterRender(o.question, n.value);
|
|
4581
4585
|
}), U(() => {
|
|
@@ -4658,7 +4662,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
4658
4662
|
setup(r) {
|
|
4659
4663
|
const o = r, n = S(null);
|
|
4660
4664
|
M(o, n);
|
|
4661
|
-
const s =
|
|
4665
|
+
const s = R(() => o.question.contentPanel);
|
|
4662
4666
|
return (e, i) => {
|
|
4663
4667
|
const a = v("survey-panel");
|
|
4664
4668
|
return t(), q(a, {
|
|
@@ -4678,7 +4682,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
4678
4682
|
setup(r) {
|
|
4679
4683
|
const o = r, n = S(null);
|
|
4680
4684
|
M(o, n);
|
|
4681
|
-
const s =
|
|
4685
|
+
const s = R(() => o.question.contentQuestion), e = (i) => ee(i);
|
|
4682
4686
|
return (i, a) => (t(), q(N(e(s.value)), {
|
|
4683
4687
|
ref: n.value,
|
|
4684
4688
|
question: s.value,
|
|
@@ -4694,7 +4698,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
4694
4698
|
css: {}
|
|
4695
4699
|
},
|
|
4696
4700
|
setup(r) {
|
|
4697
|
-
const o = r, n =
|
|
4701
|
+
const o = r, n = R(() => ue * o.model.progress), s = R(() => o.model.text);
|
|
4698
4702
|
return B(() => o.model), (e, i) => e.model.isRunning && e.model.showTimerAsClock ? (t(), u("div", {
|
|
4699
4703
|
key: 0,
|
|
4700
4704
|
class: l(e.model.rootCss)
|
|
@@ -4715,7 +4719,7 @@ const ot = /* @__PURE__ */ me(Yo, [["render", nt]]), tt = ["aria-label"], it = /
|
|
|
4715
4719
|
class: l(e.model.minorTextCss)
|
|
4716
4720
|
}, I(e.model.clockMinorText), 3)) : m("", !0)
|
|
4717
4721
|
], 2)
|
|
4718
|
-
], 2)) :
|
|
4722
|
+
], 2)) : L((t(), u("div", {
|
|
4719
4723
|
key: 1,
|
|
4720
4724
|
class: l(e.model.survey.getCss().timerRoot)
|
|
4721
4725
|
}, I(s.value), 3)), [
|
|
@@ -4735,7 +4739,7 @@ function ui(r, o) {
|
|
|
4735
4739
|
const di = /* @__PURE__ */ me(ri, [["render", ui]]);
|
|
4736
4740
|
He.platform = "vue3";
|
|
4737
4741
|
function mi(r) {
|
|
4738
|
-
r.component("SurveyComponent", re), r.component("PopupSurveyComponent", ae), r.component("survey", re), r.component("popup-survey", ae), r.component("survey-header", ze), r.component("survey-page", Oe), r.component("survey-row", Ue), r.component("survey-element",
|
|
4742
|
+
r.component("SurveyComponent", re), r.component("PopupSurveyComponent", ae), r.component("survey", re), r.component("popup-survey", ae), r.component("survey-header", ze), r.component("survey-page", Oe), r.component("survey-row", Ue), r.component("survey-element", _e), r.component("survey-panel", Ze), r.component("survey-element-header", Ge), r.component("survey-string", Xe), r.component("sv-string-viewer", xe), r.component("sv-string-editor", ss), r.component("sv-skeleton", os), r.component("survey-text", ls), r.component("survey-text-input", ds), r.component("survey-checkbox", ps), r.component("survey-checkbox-item", Cs), r.component("survey-radiogroup", fs), r.component("survey-radiogroup-item", Rs), r.component("survey-signaturepad", Ls), r.component("survey-html", Ps), r.component("survey-image", As), r.component("survey-expression", Es), r.component("survey-file", _s), r.component("survey-imagepicker", Qs), r.component("survey-imagepicker-item", Ys), r.component("survey-comment", sn), r.component("survey-dropdown", nn), r.component("sv-dropdown-select", rn), r.component("sv-dropdown-option-item", un), r.component("sv-dropdown", vn), r.component("survey-tagbox", qn), r.component("sv-tagbox", Cn), r.component("sv-tagbox-item", In), r.component("sv-tagbox-filter", kn), r.component("survey-ranking", wn), r.component("survey-ranking-item", Pn), r.component("survey-rating", Hn), r.component("sv-rating-item", En), r.component("sv-rating-item-smiley", On), r.component("sv-rating-item-star", Wn), r.component("sv-rating-dropdown", zn), r.component("survey-boolean", Kn), r.component("sv-boolean-radio", _n), r.component("sv-boolean-radio-item", Zn), r.component("sv-boolean-checkbox", xn), r.component("survey-multipletext", eo), r.component("survey-multipletext-item", no), r.component("survey-matrix", mo), r.component("survey-matrixdropdown", co), r.component("survey-matrixtable", yo), r.component("survey-matrixheaderrequired", Co), r.component("survey-matrixcell", bo), r.component("survey-matrixdynamic", ko), r.component("sv-matrix-remove-button", Io), r.component("sv-matrix-drag-drop-icon", So), r.component("sv-matrix-detail-button", To), r.component("survey-paneldynamic", $o), r.component("survey-paneldynamicprogress", Bo), r.component("survey-paneldynamicprogress-v2", Lo), r.component("sv-paneldynamic-add-btn", Do), r.component("sv-paneldynamic-next-btn", Mo), r.component("sv-paneldynamic-prev-btn", Ho), r.component("sv-paneldynamic-remove-btn", Ao), r.component("sv-paneldynamic-progress-text", Eo), r.component("sv-components-container", Mt), r.component("sv-progress-buttons", Et), r.component("sv-progress-toc", Vt), r.component("sv-progress-pages", j), r.component("sv-progress-questions", j), r.component("sv-progress-correctquestions", j), r.component("sv-progress-requiredquestions", j), r.component("survey-errors", Oo), r.component("survey-question-comment", zo), r.component("survey-element-title", Uo), r.component("survey-element-title-content", Zo), r.component("sv-title-actions", Jo), r.component("sv-brand-info", ot), r.component("sv-svg-icon", rt), r.component("sv-action-bar", at), r.component("sv-action", mt), r.component("sv-action-bar-item", pt), r.component("sv-action-bar-item-dropdown", qt), r.component("sv-action-bar-separator", yt), r.component("sv-list", bt), r.component("sv-list-item", ft), r.component("sv-popup", It), r.component("sv-popup-container", Lt), r.component("popup-pointer", Dt), r.component("sv-notifier", jt), r.component("survey-other-choice", Gt), r.component("sv-nav-btn", Jt), r.component("survey-customwidget", xt), r.component("survey-popup-modal", ei), r.component("sv-character-counter", si), r.component("survey-composite", ni), r.component("survey-custom", oi), r.component("sv-timerpanel", li), r.component("sv-loading-indicator", di), r.directive("key2click", {
|
|
4739
4743
|
mounted: function(o, n) {
|
|
4740
4744
|
const s = { ...n.value };
|
|
4741
4745
|
s.disableTabStop || (o.tabIndex = 0), o.addEventListener("keyup", (e) => (e.preventDefault(), e.stopPropagation(), de(e, s), !1)), o.addEventListener("keydown", (e) => {
|