survey-vue3-ui 2.2.4 → 2.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/survey-vue3-ui.es.js +590 -576
- package/survey-vue3-ui.umd.js +5 -5
- package/types/QuestionOther.vue.d.ts +2 -1
package/survey-vue3-ui.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var Me = Object.defineProperty;
|
|
2
2
|
var Ie = (u, e, n) => e in u ? Me(u, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : u[e] = n;
|
|
3
3
|
var J = (u, e, n) => (Ie(u, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
-
import { defineComponent as y, computed as
|
|
5
|
-
import { Base as Ne, ScrollViewModel as Ee, RendererFactory as G, Helpers as We, DropdownMultiSelectListModel as Fe, doKey2ClickUp as qe, createSvg as Oe, doKey2ClickDown as ze, doKey2ClickBlur as Ue, ActionDropdownViewModel as Qe, createPopupViewModel as Ke, SurveyProgressModel as pe, ProgressButtonsResponsivityManager as je, addIconsToThemeSet as we, SvgRegistry as _, PopupSurveyModel as Ge, settings as
|
|
4
|
+
import { defineComponent as y, computed as M, openBlock as i, createBlock as g, resolveDynamicComponent as ge, normalizeProps as de, guardReactiveProps as me, createSlots as Ve, renderList as V, withCtx as D, renderSlot as x, shallowReactive as Se, watch as W, onBeforeUnmount as O, onMounted as B, ref as f, shallowRef as E, watchEffect as Re, triggerRef as te, unref as w, isRef as Te, nextTick as ye, createElementBlock as a, normalizeClass as r, createVNode as c, createCommentVNode as p, Fragment as H, mergeProps as $, normalizeStyle as k, createElementVNode as v, onUnmounted as P, withDirectives as Z, vShow as A, toDisplayString as I, vModelCheckbox as oe, vModelRadio as ie, vModelSelect as Be, onUpdated as z, vModelText as Ze, getCurrentInstance as he, createStaticVNode as $e, toRaw as De, Teleport as Ae, useSlots as Pe } from "vue";
|
|
5
|
+
import { Base as Ne, ScrollViewModel as Ee, RendererFactory as G, Helpers as We, DropdownMultiSelectListModel as Fe, doKey2ClickUp as qe, createSvg as Oe, doKey2ClickDown as ze, doKey2ClickBlur as Ue, ActionDropdownViewModel as Qe, createPopupViewModel as Ke, SurveyProgressModel as pe, ProgressButtonsResponsivityManager as je, addIconsToThemeSet as we, SvgRegistry as _, PopupSurveyModel as Ge, settings as ne, createPopupModalViewModel as Xe, ButtonGroupItemModel as Je, SurveyModel as Ye } from "survey-core";
|
|
6
6
|
const ee = class ee {
|
|
7
7
|
constructor() {
|
|
8
8
|
J(this, "creatorHash", {});
|
|
@@ -32,7 +32,7 @@ const m = /* @__PURE__ */ y({
|
|
|
32
32
|
is: {}
|
|
33
33
|
},
|
|
34
34
|
setup(u) {
|
|
35
|
-
const e = u, n =
|
|
35
|
+
const e = u, n = M(
|
|
36
36
|
() => F.Instance.getComponent(e.is)
|
|
37
37
|
);
|
|
38
38
|
return (s, o) => (i(), g(ge(n.value), de(me(s.$attrs)), Ve({ _: 2 }, [
|
|
@@ -63,13 +63,13 @@ function xe(u) {
|
|
|
63
63
|
u.createArrayCoreHandler = (n, s) => {
|
|
64
64
|
const o = [], t = E(o);
|
|
65
65
|
return o.onArrayChanged = () => {
|
|
66
|
-
|
|
66
|
+
te(t), e.add();
|
|
67
67
|
}, n[s] = t, w(n[s]);
|
|
68
68
|
}, u.iteratePropertiesHash((n, s) => {
|
|
69
69
|
if (Array.isArray(n[s])) {
|
|
70
70
|
const o = E(n[s]);
|
|
71
71
|
n[s].onArrayChanged = () => {
|
|
72
|
-
|
|
72
|
+
te(o), e.add();
|
|
73
73
|
}, n[s] = o;
|
|
74
74
|
}
|
|
75
75
|
}), u.getPropertyValueCoreHandler = (n, s) => w(n[s]), u.setPropertyValueCoreHandler = (n, s, o) => {
|
|
@@ -106,7 +106,7 @@ function S(u, e, n) {
|
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
function T(u, e, n, s) {
|
|
109
|
-
S(() => u.question, n, s),
|
|
109
|
+
S(() => u.question, n, s), B(() => {
|
|
110
110
|
u.question && u.question.afterRenderQuestionElement(e.value);
|
|
111
111
|
}), O(() => {
|
|
112
112
|
u.question.beforeDestroyQuestionElement(e.value);
|
|
@@ -132,9 +132,9 @@ function U(u) {
|
|
|
132
132
|
function re(u) {
|
|
133
133
|
return u.customWidget ? "survey-customwidget" : u.isDefaultRendering && u.isDefaultRendering() || u.isPanel ? "survey-" + u.getTemplate() : u.getComponentName();
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function se(u) {
|
|
136
136
|
const e = E(), n = Re(() => {
|
|
137
|
-
e.value = u(),
|
|
137
|
+
e.value = u(), te(e);
|
|
138
138
|
});
|
|
139
139
|
return O(() => {
|
|
140
140
|
n();
|
|
@@ -150,13 +150,13 @@ const ss = /* @__PURE__ */ y({
|
|
|
150
150
|
setup(u) {
|
|
151
151
|
const e = u, n = f(null), s = () => {
|
|
152
152
|
e.survey && n.value && e.survey.afterRenderPage(n.value);
|
|
153
|
-
}, o =
|
|
153
|
+
}, o = M(() => e.page._showDescription);
|
|
154
154
|
return S(
|
|
155
155
|
() => e.page,
|
|
156
156
|
() => {
|
|
157
157
|
s();
|
|
158
158
|
}
|
|
159
|
-
),
|
|
159
|
+
), B(() => {
|
|
160
160
|
s();
|
|
161
161
|
}), (t, l) => (i(), a("div", {
|
|
162
162
|
class: r(t.page.cssRoot),
|
|
@@ -181,7 +181,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
181
181
|
is: "survey-errors",
|
|
182
182
|
element: t.page
|
|
183
183
|
}, null, 8, ["element"]),
|
|
184
|
-
(i(!0), a(
|
|
184
|
+
(i(!0), a(H, null, V(t.page.visibleRows, (d) => (i(), g(m, $({
|
|
185
185
|
key: d.id,
|
|
186
186
|
is: t.page.getSurvey().getRowWrapperComponentName(d)
|
|
187
187
|
}, {
|
|
@@ -206,7 +206,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
206
206
|
},
|
|
207
207
|
setup(u) {
|
|
208
208
|
const e = u, n = f();
|
|
209
|
-
return
|
|
209
|
+
return B(() => {
|
|
210
210
|
var s = n.value;
|
|
211
211
|
s && e.survey && e.survey.afterRenderHeader(s);
|
|
212
212
|
}), (s, o) => s.survey.renderedHasHeader ? (i(), a("div", {
|
|
@@ -268,7 +268,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
268
268
|
(o) => {
|
|
269
269
|
es(o) || (clearTimeout(s), o.setRootElement(void 0), o.stopLazyRendering(), o.isNeedRender = !o.isLazyRendering());
|
|
270
270
|
}
|
|
271
|
-
),
|
|
271
|
+
), B(() => {
|
|
272
272
|
if (e.row && (e.row.setRootElement(n.value), !e.row.isNeedRender)) {
|
|
273
273
|
const o = n.value;
|
|
274
274
|
setTimeout(() => {
|
|
@@ -280,7 +280,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
280
280
|
ref_key: "root",
|
|
281
281
|
ref: n
|
|
282
282
|
}, [
|
|
283
|
-
(i(!0), a(
|
|
283
|
+
(i(!0), a(H, null, V(o.row.visibleElements, (l) => (i(), g(m, {
|
|
284
284
|
is: "survey-element",
|
|
285
285
|
row: o.row,
|
|
286
286
|
css: o.css,
|
|
@@ -300,7 +300,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
300
300
|
css: {}
|
|
301
301
|
},
|
|
302
302
|
setup(u) {
|
|
303
|
-
const e = u, n = f(null), s = (q) => q.cssContent, o = () => e.element.getRootStyle(), t =
|
|
303
|
+
const e = u, n = f(null), s = (q) => q.cssContent, o = () => e.element.getRootStyle(), t = M(() => e.element.singleInputQuestion);
|
|
304
304
|
S(() => e.element);
|
|
305
305
|
const l = () => {
|
|
306
306
|
n.value && e.element.afterRender(n.value);
|
|
@@ -309,7 +309,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
309
309
|
() => {
|
|
310
310
|
l();
|
|
311
311
|
}
|
|
312
|
-
), C =
|
|
312
|
+
), C = M(() => e.element.customWidget ? "survey-customwidget" : e.element.isDefaultRendering() ? "survey-" + e.element.getTemplate() : e.element.getComponentName()), L = M(() => e.element.survey.getQuestionContentWrapperComponentName(e.element)), h = M(() => ({
|
|
313
313
|
componentData: {
|
|
314
314
|
question: e.element,
|
|
315
315
|
data: e.element.survey.getElementWrapperComponentData(e.element)
|
|
@@ -432,8 +432,8 @@ const ss = /* @__PURE__ */ y({
|
|
|
432
432
|
css: {}
|
|
433
433
|
},
|
|
434
434
|
setup(u) {
|
|
435
|
-
const e = u, n = f(null), s =
|
|
436
|
-
return S(() => e.element),
|
|
435
|
+
const e = u, n = f(null), s = M(() => e.element.survey);
|
|
436
|
+
return S(() => e.element), B(() => {
|
|
437
437
|
e.element.survey && e.element.afterRender(n.value);
|
|
438
438
|
}), (o, t) => o.element.getIsContentVisible() ? (i(), a("div", {
|
|
439
439
|
key: 0,
|
|
@@ -468,7 +468,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
468
468
|
"aria-labelledby": o.element.ariaLabelledBy,
|
|
469
469
|
"aria-label": o.element.ariaLabel
|
|
470
470
|
}, [
|
|
471
|
-
(i(!0), a(
|
|
471
|
+
(i(!0), a(H, null, V(o.element.visibleRows, (l) => (i(), g(m, $({
|
|
472
472
|
key: l.id,
|
|
473
473
|
is: o.element.getSurvey().getRowWrapperComponentName(l)
|
|
474
474
|
}, {
|
|
@@ -514,7 +514,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
514
514
|
element: o.element,
|
|
515
515
|
css: o.css
|
|
516
516
|
}, null, 8, ["element", "css"]),
|
|
517
|
-
o.element.hasDescriptionUnderTitle ?
|
|
517
|
+
o.element.hasDescriptionUnderTitle ? Z((i(), a("div", {
|
|
518
518
|
key: 0,
|
|
519
519
|
class: r(o.element.cssDescription),
|
|
520
520
|
id: o.element.ariaDescriptionId
|
|
@@ -614,7 +614,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
614
614
|
e.onInnerHeightChanged && e.onInnerHeightChanged(o);
|
|
615
615
|
};
|
|
616
616
|
const s = f();
|
|
617
|
-
return
|
|
617
|
+
return B(() => {
|
|
618
618
|
n.setRootElement(s.value);
|
|
619
619
|
}), P(() => {
|
|
620
620
|
n.setRootElement(void 0), n.unsubscribeRootElement();
|
|
@@ -662,7 +662,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
662
662
|
v("datalist", {
|
|
663
663
|
id: s.question.dataListId
|
|
664
664
|
}, [
|
|
665
|
-
(i(!0), a(
|
|
665
|
+
(i(!0), a(H, null, V(s.question.dataList, (t, l) => (i(), a("option", {
|
|
666
666
|
key: l,
|
|
667
667
|
value: t
|
|
668
668
|
}, null, 8, Is))), 128))
|
|
@@ -687,7 +687,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
687
687
|
n.getRef && n.getRef(l);
|
|
688
688
|
}, o = f(null);
|
|
689
689
|
e({ root: o }), S(() => n.question);
|
|
690
|
-
const t =
|
|
690
|
+
const t = M(() => n.question.inputStyle);
|
|
691
691
|
return (l, d) => l.question.getMaxLength() ? (i(), a("div", {
|
|
692
692
|
key: 1,
|
|
693
693
|
ref: (C) => s(C)
|
|
@@ -781,7 +781,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
781
781
|
}), Bs = ["role", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], Zs = {
|
|
782
782
|
key: 0,
|
|
783
783
|
class: "sv-hidden"
|
|
784
|
-
}, $s = { key:
|
|
784
|
+
}, $s = { key: 6 }, Ds = ["value"], be = /* @__PURE__ */ y({
|
|
785
785
|
inheritAttrs: !1,
|
|
786
786
|
__name: "SelectBase",
|
|
787
787
|
props: {
|
|
@@ -812,11 +812,11 @@ const ss = /* @__PURE__ */ y({
|
|
|
812
812
|
"aria-errormessage": t.question.a11y_input_ariaErrormessage
|
|
813
813
|
}, [
|
|
814
814
|
t.showLegend ? (i(), a("legend", Zs, I(t.question.locTitle.renderedHtml), 1)) : p("", !0),
|
|
815
|
-
t.question.hasHeadItems ? (i(!0), a(
|
|
815
|
+
t.question.hasHeadItems ? (i(!0), a(H, { key: 1 }, V(t.question.headItems, (d) => (i(), g(m, $({
|
|
816
816
|
key: d.value,
|
|
817
817
|
is: s(d)
|
|
818
818
|
}, o(d)), null, 16, ["is"]))), 128)) : p("", !0),
|
|
819
|
-
!t.question.hasColumns && !t.question.blockedRow ? (i(!0), a(
|
|
819
|
+
!t.question.hasColumns && !t.question.blockedRow ? (i(!0), a(H, { key: 2 }, V(t.question.bodyItems, (d) => (i(), g(m, $({
|
|
820
820
|
key: d.value,
|
|
821
821
|
is: s(d)
|
|
822
822
|
}, o(d)), null, 16, ["is"]))), 128)) : p("", !0),
|
|
@@ -824,7 +824,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
824
824
|
key: 3,
|
|
825
825
|
class: r(t.question.cssClasses.rootRow)
|
|
826
826
|
}, [
|
|
827
|
-
!t.question.hasColumns && t.question.blockedRow ? (i(!0), a(
|
|
827
|
+
!t.question.hasColumns && t.question.blockedRow ? (i(!0), a(H, { key: 0 }, V(t.question.dataChoices, (d) => (i(), g(m, $({
|
|
828
828
|
key: d.value,
|
|
829
829
|
is: s(d)
|
|
830
830
|
}, o(d)), null, 16, ["is"]))), 128)) : p("", !0)
|
|
@@ -833,26 +833,21 @@ const ss = /* @__PURE__ */ y({
|
|
|
833
833
|
key: 4,
|
|
834
834
|
class: r(t.question.cssClasses.rootMultiColumn)
|
|
835
835
|
}, [
|
|
836
|
-
t.question.hasColumns ? (i(!0), a(
|
|
836
|
+
t.question.hasColumns ? (i(!0), a(H, { key: 0 }, V(t.question.columns, (d, C) => (i(), a("div", {
|
|
837
837
|
key: C,
|
|
838
838
|
class: r(t.question.getColumnClass()),
|
|
839
839
|
role: "presentation"
|
|
840
840
|
}, [
|
|
841
|
-
(i(!0), a(
|
|
841
|
+
(i(!0), a(H, null, V(d, (L) => (i(), g(m, $({
|
|
842
842
|
key: L.value,
|
|
843
843
|
is: s(L)
|
|
844
844
|
}, o(L)), null, 16, ["is"]))), 128))
|
|
845
845
|
], 2))), 128)) : p("", !0)
|
|
846
846
|
], 2)) : p("", !0),
|
|
847
|
-
t.question.hasFootItems ? (i(!0), a(
|
|
847
|
+
t.question.hasFootItems ? (i(!0), a(H, { key: 5 }, V(t.question.footItems, (d) => (i(), g(m, $({
|
|
848
848
|
key: d.value,
|
|
849
849
|
is: s(d)
|
|
850
850
|
}, o(d)), null, 16, ["is"]))), 128)) : p("", !0),
|
|
851
|
-
t.question.renderedValue && t.question.isOtherSelected ? (i(), g(m, {
|
|
852
|
-
key: 6,
|
|
853
|
-
is: "survey-other-choice",
|
|
854
|
-
question: t.question
|
|
855
|
-
}, null, 8, ["question"])) : p("", !0),
|
|
856
851
|
t.question.showClearButtonInContent ? (i(), a("div", $s, [
|
|
857
852
|
v("input", {
|
|
858
853
|
type: "button",
|
|
@@ -879,7 +874,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
879
874
|
}
|
|
880
875
|
});
|
|
881
876
|
function Le(u, e, n) {
|
|
882
|
-
|
|
877
|
+
B(() => {
|
|
883
878
|
n.value && (e().isDesignMode || u().setRootElement(n.value));
|
|
884
879
|
}), P(() => {
|
|
885
880
|
e().isDesignMode || u().setRootElement(void 0);
|
|
@@ -906,54 +901,62 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
906
901
|
const s = (o) => {
|
|
907
902
|
n.question.clickItemHandler(n.item, o.target.checked);
|
|
908
903
|
};
|
|
909
|
-
return (o, t) => (i(), a(
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
v("label", {
|
|
916
|
-
class: r(o.question.getLabelClass(o.item))
|
|
904
|
+
return (o, t) => (i(), a(H, null, [
|
|
905
|
+
v("div", {
|
|
906
|
+
role: "presentation",
|
|
907
|
+
class: r(o.question.getItemClass(o.item)),
|
|
908
|
+
ref_key: "root",
|
|
909
|
+
ref: e
|
|
917
910
|
}, [
|
|
918
|
-
v("
|
|
919
|
-
|
|
920
|
-
name: o.question.name + o.item.id,
|
|
921
|
-
checked: o.question.isItemSelected(o.item),
|
|
922
|
-
onInput: t[0] || (t[0] = (l) => {
|
|
923
|
-
s(l);
|
|
924
|
-
}),
|
|
925
|
-
value: o.item.value,
|
|
926
|
-
id: o.question.getItemId(o.item),
|
|
927
|
-
disabled: !o.question.getItemEnabled(o.item),
|
|
928
|
-
readonly: o.question.isReadOnlyAttr,
|
|
929
|
-
class: r(o.question.cssClasses.itemControl),
|
|
930
|
-
required: o.question.hasRequiredError(),
|
|
931
|
-
"aria-label": o.ariaLabel
|
|
932
|
-
}, null, 42, Ps),
|
|
933
|
-
o.question.cssClasses.materialDecorator ? (i(), a("span", {
|
|
934
|
-
key: 0,
|
|
935
|
-
class: r(o.question.cssClasses.materialDecorator)
|
|
911
|
+
v("label", {
|
|
912
|
+
class: r(o.question.getLabelClass(o.item))
|
|
936
913
|
}, [
|
|
937
|
-
|
|
914
|
+
v("input", {
|
|
915
|
+
type: "checkbox",
|
|
916
|
+
name: o.question.name + o.item.id,
|
|
917
|
+
checked: o.question.isItemSelected(o.item),
|
|
918
|
+
onInput: t[0] || (t[0] = (l) => {
|
|
919
|
+
s(l);
|
|
920
|
+
}),
|
|
921
|
+
value: o.item.value,
|
|
922
|
+
id: o.question.getItemId(o.item),
|
|
923
|
+
disabled: !o.question.getItemEnabled(o.item),
|
|
924
|
+
readonly: o.question.isReadOnlyAttr,
|
|
925
|
+
class: r(o.question.cssClasses.itemControl),
|
|
926
|
+
required: o.question.hasRequiredError(),
|
|
927
|
+
"aria-label": o.ariaLabel
|
|
928
|
+
}, null, 42, Ps),
|
|
929
|
+
o.question.cssClasses.materialDecorator ? (i(), a("span", {
|
|
938
930
|
key: 0,
|
|
939
|
-
class: r(o.question.cssClasses.
|
|
931
|
+
class: r(o.question.cssClasses.materialDecorator)
|
|
940
932
|
}, [
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
},
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
933
|
+
o.question.itemSvgIcon ? (i(), a("svg", {
|
|
934
|
+
key: 0,
|
|
935
|
+
class: r(o.question.cssClasses.itemDecorator)
|
|
936
|
+
}, [
|
|
937
|
+
v("use", {
|
|
938
|
+
"xlink:href": o.question.itemSvgIcon
|
|
939
|
+
}, null, 8, Ns)
|
|
940
|
+
], 2)) : p("", !0)
|
|
941
|
+
], 2)) : p("", !0),
|
|
942
|
+
o.hideLabel ? p("", !0) : (i(), a("span", {
|
|
943
|
+
key: 1,
|
|
944
|
+
class: r(o.question.cssClasses.controlLabel)
|
|
945
|
+
}, [
|
|
946
|
+
c(m, {
|
|
947
|
+
is: "survey-string",
|
|
948
|
+
locString: o.item.locText
|
|
949
|
+
}, null, 8, ["locString"])
|
|
950
|
+
], 2))
|
|
951
|
+
], 2)
|
|
952
|
+
], 2),
|
|
953
|
+
o.item.isCommentShowing ? (i(), g(m, {
|
|
954
|
+
key: 0,
|
|
955
|
+
is: "survey-other-choice",
|
|
956
|
+
question: o.question,
|
|
957
|
+
item: o.item
|
|
958
|
+
}, null, 8, ["question", "item"])) : p("", !0)
|
|
959
|
+
], 64));
|
|
957
960
|
}
|
|
958
961
|
}), Ws = /* @__PURE__ */ y({
|
|
959
962
|
inheritAttrs: !1,
|
|
@@ -964,7 +967,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
964
967
|
setup(u) {
|
|
965
968
|
return (e, n) => (i(), g(be, { question: e.question }, null, 8, ["question"]));
|
|
966
969
|
}
|
|
967
|
-
}), Fs = ["name", "value", "id", "aria-errormessage", "disabled", "readonly", "aria-label"], Os = ["xlink:href"], zs = /* @__PURE__ */ y({
|
|
970
|
+
}), Fs = ["name", "value", "id", "aria-errormessage", "checked", "disabled", "readonly", "aria-label"], Os = ["xlink:href"], zs = /* @__PURE__ */ y({
|
|
968
971
|
inheritAttrs: !1,
|
|
969
972
|
__name: "RadiogroupItem",
|
|
970
973
|
props: {
|
|
@@ -974,65 +977,70 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
974
977
|
ariaLabel: {}
|
|
975
978
|
},
|
|
976
979
|
setup(u) {
|
|
977
|
-
const e = f(), n = u, s = (l) => n.question.getLabelClass(l), o = (l) => n.question.getControlLabelClass(l), t =
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
const d = n.question;
|
|
981
|
-
d.renderedValue = l;
|
|
982
|
-
}
|
|
983
|
-
});
|
|
980
|
+
const e = f(), n = u, s = (l) => n.question.getLabelClass(l), o = (l) => n.question.getControlLabelClass(l), t = () => {
|
|
981
|
+
n.question.clickItemHandler(n.item);
|
|
982
|
+
};
|
|
984
983
|
return Le(
|
|
985
984
|
() => n.item,
|
|
986
985
|
() => n.question,
|
|
987
986
|
e
|
|
988
|
-
), (l, d) => (i(), a(
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
v("label", {
|
|
995
|
-
onMousedown: d[1] || (d[1] = (C) => l.question.onMouseDown()),
|
|
996
|
-
class: r(s(l.item))
|
|
987
|
+
), (l, d) => (i(), a(H, null, [
|
|
988
|
+
v("div", {
|
|
989
|
+
role: "presentation",
|
|
990
|
+
class: r(l.question.getItemClass(l.item)),
|
|
991
|
+
ref_key: "root",
|
|
992
|
+
ref: e
|
|
997
993
|
}, [
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
value: l.item.value,
|
|
1002
|
-
id: l.question.getItemId(l.item),
|
|
1003
|
-
"aria-errormessage": l.question.ariaErrormessage,
|
|
1004
|
-
"onUpdate:modelValue": d[0] || (d[0] = (C) => t.value = C),
|
|
1005
|
-
disabled: !l.question.getItemEnabled(l.item),
|
|
1006
|
-
readonly: l.question.isReadOnlyAttr,
|
|
1007
|
-
class: r(l.question.cssClasses.itemControl),
|
|
1008
|
-
"aria-label": l.ariaLabel
|
|
1009
|
-
}, null, 10, Fs), [
|
|
1010
|
-
[se, t.value]
|
|
1011
|
-
]),
|
|
1012
|
-
l.question.cssClasses.materialDecorator ? (i(), a("span", {
|
|
1013
|
-
key: 0,
|
|
1014
|
-
class: r(l.question.cssClasses.materialDecorator)
|
|
994
|
+
v("label", {
|
|
995
|
+
onMousedown: d[1] || (d[1] = (C) => l.question.onMouseDown()),
|
|
996
|
+
class: r(s(l.item))
|
|
1015
997
|
}, [
|
|
1016
|
-
|
|
998
|
+
v("input", {
|
|
999
|
+
type: "radio",
|
|
1000
|
+
name: l.question.questionName,
|
|
1001
|
+
value: l.item.value,
|
|
1002
|
+
id: l.question.getItemId(l.item),
|
|
1003
|
+
"aria-errormessage": l.question.ariaErrormessage,
|
|
1004
|
+
checked: l.question.isItemSelected(l.item),
|
|
1005
|
+
onInput: d[0] || (d[0] = (C) => {
|
|
1006
|
+
t();
|
|
1007
|
+
}),
|
|
1008
|
+
disabled: !l.question.getItemEnabled(l.item),
|
|
1009
|
+
readonly: l.question.isReadOnlyAttr,
|
|
1010
|
+
class: r(l.question.cssClasses.itemControl),
|
|
1011
|
+
"aria-label": l.ariaLabel
|
|
1012
|
+
}, null, 42, Fs),
|
|
1013
|
+
l.question.cssClasses.materialDecorator ? (i(), a("span", {
|
|
1017
1014
|
key: 0,
|
|
1018
|
-
class: r(l.question.cssClasses.
|
|
1015
|
+
class: r(l.question.cssClasses.materialDecorator)
|
|
1019
1016
|
}, [
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
},
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1017
|
+
l.question.itemSvgIcon ? (i(), a("svg", {
|
|
1018
|
+
key: 0,
|
|
1019
|
+
class: r(l.question.cssClasses.itemDecorator)
|
|
1020
|
+
}, [
|
|
1021
|
+
v("use", {
|
|
1022
|
+
"xlink:href": l.question.itemSvgIcon
|
|
1023
|
+
}, null, 8, Os)
|
|
1024
|
+
], 2)) : p("", !0)
|
|
1025
|
+
], 2)) : p("", !0),
|
|
1026
|
+
l.hideLabel ? p("", !0) : (i(), a("span", {
|
|
1027
|
+
key: 1,
|
|
1028
|
+
class: r(o(l.item))
|
|
1029
|
+
}, [
|
|
1030
|
+
c(m, {
|
|
1031
|
+
is: "survey-string",
|
|
1032
|
+
locString: l.item.locText
|
|
1033
|
+
}, null, 8, ["locString"])
|
|
1034
|
+
], 2))
|
|
1035
|
+
], 34)
|
|
1036
|
+
], 2),
|
|
1037
|
+
l.item.isCommentShowing ? (i(), g(m, {
|
|
1038
|
+
key: 0,
|
|
1039
|
+
is: "survey-other-choice",
|
|
1040
|
+
question: l.question,
|
|
1041
|
+
item: l.item
|
|
1042
|
+
}, null, 8, ["question", "item"])) : p("", !0)
|
|
1043
|
+
], 64));
|
|
1036
1044
|
}
|
|
1037
1045
|
}), Us = ["src"], Qs = ["title"], Ks = { key: 0 }, js = /* @__PURE__ */ y({
|
|
1038
1046
|
inheritAttrs: !1,
|
|
@@ -1050,7 +1058,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1050
1058
|
width: s.question.renderedCanvasWidth
|
|
1051
1059
|
})
|
|
1052
1060
|
}, [
|
|
1053
|
-
|
|
1061
|
+
Z(v("div", {
|
|
1054
1062
|
class: r(s.question.cssClasses.placeholder)
|
|
1055
1063
|
}, [
|
|
1056
1064
|
c(m, {
|
|
@@ -1138,7 +1146,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1138
1146
|
ref_key: "root",
|
|
1139
1147
|
ref: n
|
|
1140
1148
|
}, [
|
|
1141
|
-
o.question.renderedMode === "image" ?
|
|
1149
|
+
o.question.renderedMode === "image" ? Z((i(), a("img", {
|
|
1142
1150
|
key: 0,
|
|
1143
1151
|
class: r(o.question.getImageCss()),
|
|
1144
1152
|
src: w(s),
|
|
@@ -1159,7 +1167,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1159
1167
|
}, null, 46, Js)), [
|
|
1160
1168
|
[A, w(s) && !o.question.contentNotLoaded]
|
|
1161
1169
|
]) : p("", !0),
|
|
1162
|
-
o.question.renderedMode === "video" ?
|
|
1170
|
+
o.question.renderedMode === "video" ? Z((i(), a("video", {
|
|
1163
1171
|
key: 1,
|
|
1164
1172
|
controls: "",
|
|
1165
1173
|
class: r(o.question.getImageCss()),
|
|
@@ -1205,7 +1213,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1205
1213
|
], 2)) : p("", !0)
|
|
1206
1214
|
], 2));
|
|
1207
1215
|
}
|
|
1208
|
-
}), e1 = /* @__PURE__ */ y({
|
|
1216
|
+
}), e1 = ["aria-label"], s1 = /* @__PURE__ */ y({
|
|
1209
1217
|
inheritAttrs: !1,
|
|
1210
1218
|
__name: "Expression",
|
|
1211
1219
|
props: {
|
|
@@ -1216,10 +1224,12 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1216
1224
|
return T(e, n), (s, o) => (i(), a("div", {
|
|
1217
1225
|
class: r(s.question.cssClasses.root),
|
|
1218
1226
|
ref_key: "root",
|
|
1219
|
-
ref: n
|
|
1220
|
-
|
|
1227
|
+
ref: n,
|
|
1228
|
+
"aria-live": "polite",
|
|
1229
|
+
"aria-label": s.question.formatedValue
|
|
1230
|
+
}, I(s.question.formatedValue), 11, e1));
|
|
1221
1231
|
}
|
|
1222
|
-
}),
|
|
1232
|
+
}), n1 = ["id", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "multiple", "title", "accept", "capture"], t1 = ["id", "multiple", "placeholder"], o1 = ["id", "multiple", "placeholder"], i1 = /* @__PURE__ */ y({
|
|
1223
1233
|
inheritAttrs: !1,
|
|
1224
1234
|
__name: "File",
|
|
1225
1235
|
props: {
|
|
@@ -1246,7 +1256,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1246
1256
|
title: s.question.inputTitle,
|
|
1247
1257
|
accept: s.question.acceptedTypes,
|
|
1248
1258
|
capture: s.question.renderCapture
|
|
1249
|
-
}, null, 10,
|
|
1259
|
+
}, null, 10, n1)) : p("", !0),
|
|
1250
1260
|
s.question.isReadOnlyAttr ? (i(), a("input", {
|
|
1251
1261
|
key: 1,
|
|
1252
1262
|
type: "file",
|
|
@@ -1256,7 +1266,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1256
1266
|
multiple: s.question.allowMultiple,
|
|
1257
1267
|
placeholder: s.question.title,
|
|
1258
1268
|
style: { color: "transparent" }
|
|
1259
|
-
}, null, 10,
|
|
1269
|
+
}, null, 10, t1)) : p("", !0),
|
|
1260
1270
|
s.question.isDisabledAttr ? (i(), a("input", {
|
|
1261
1271
|
key: 2,
|
|
1262
1272
|
type: "file",
|
|
@@ -1266,7 +1276,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1266
1276
|
multiple: s.question.allowMultiple,
|
|
1267
1277
|
placeholder: s.question.title,
|
|
1268
1278
|
style: { color: "transparent" }
|
|
1269
|
-
}, null, 10,
|
|
1279
|
+
}, null, 10, o1)) : p("", !0),
|
|
1270
1280
|
v("div", {
|
|
1271
1281
|
class: r(s.question.cssClasses.dragArea),
|
|
1272
1282
|
onDrop: o[0] || (o[0] = //@ts-ignore
|
|
@@ -1325,7 +1335,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1325
1335
|
], 34)
|
|
1326
1336
|
], 2));
|
|
1327
1337
|
}
|
|
1328
|
-
}),
|
|
1338
|
+
}), r1 = { class: "sv-hidden" }, Ce = "survey-imagepicker-item", l1 = /* @__PURE__ */ y({
|
|
1329
1339
|
inheritAttrs: !1,
|
|
1330
1340
|
__name: "Imagepicker",
|
|
1331
1341
|
props: {
|
|
@@ -1348,24 +1358,24 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1348
1358
|
ref_key: "root",
|
|
1349
1359
|
ref: n
|
|
1350
1360
|
}, [
|
|
1351
|
-
v("legend",
|
|
1352
|
-
t.question.hasColumns ? p("", !0) : (i(!0), a(
|
|
1361
|
+
v("legend", r1, I(t.question.locTitle.renderedHtml), 1),
|
|
1362
|
+
t.question.hasColumns ? p("", !0) : (i(!0), a(H, { key: 0 }, V(t.question.visibleChoices, (d) => (i(), g(m, $({
|
|
1353
1363
|
key: d.value,
|
|
1354
1364
|
is: s(d)
|
|
1355
1365
|
}, o(d)), null, 16, ["is"]))), 128)),
|
|
1356
|
-
t.question.hasColumns ? (i(!0), a(
|
|
1366
|
+
t.question.hasColumns ? (i(!0), a(H, { key: 1 }, V(t.question.columns, (d, C) => (i(), a("div", {
|
|
1357
1367
|
class: r(t.question.getColumnClass()),
|
|
1358
1368
|
key: C,
|
|
1359
1369
|
role: "presentation"
|
|
1360
1370
|
}, [
|
|
1361
|
-
(i(!0), a(
|
|
1371
|
+
(i(!0), a(H, null, V(d, (L) => (i(), g(m, $({
|
|
1362
1372
|
key: L.value,
|
|
1363
1373
|
is: s(L)
|
|
1364
1374
|
}, o(L)), null, 16, ["is"]))), 128))
|
|
1365
1375
|
], 2))), 128)) : p("", !0)
|
|
1366
1376
|
], 6));
|
|
1367
1377
|
}
|
|
1368
|
-
}),
|
|
1378
|
+
}), a1 = ["name", "value", "id", "disabled", "readonly", "required", "aria-label", "aria-invalid", "aria-errormessage"], u1 = ["name", "value", "id", "disabled", "readonly", "required", "aria-label", "aria-invalid", "aria-errormessage"], d1 = ["src", "width", "height", "alt"], m1 = ["src", "width", "height"], p1 = /* @__PURE__ */ y({
|
|
1369
1379
|
inheritAttrs: !1,
|
|
1370
1380
|
__name: "ImagepickerItem",
|
|
1371
1381
|
props: {
|
|
@@ -1373,7 +1383,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1373
1383
|
item: {}
|
|
1374
1384
|
},
|
|
1375
1385
|
setup(u) {
|
|
1376
|
-
const e = u, n = (t) => e.question.getItemClass(t), s =
|
|
1386
|
+
const e = u, n = (t) => e.question.getItemClass(t), s = M({
|
|
1377
1387
|
get() {
|
|
1378
1388
|
return e.question.value;
|
|
1379
1389
|
},
|
|
@@ -1390,7 +1400,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1390
1400
|
v("label", {
|
|
1391
1401
|
class: r(t.question.cssClasses.label)
|
|
1392
1402
|
}, [
|
|
1393
|
-
t.question.multiSelect ?
|
|
1403
|
+
t.question.multiSelect ? Z((i(), a("input", {
|
|
1394
1404
|
key: 0,
|
|
1395
1405
|
type: "checkbox",
|
|
1396
1406
|
name: t.question.questionName,
|
|
@@ -1399,14 +1409,14 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1399
1409
|
"onUpdate:modelValue": l[0] || (l[0] = (d) => s.value = d),
|
|
1400
1410
|
disabled: !t.question.getItemEnabled(t.item),
|
|
1401
1411
|
readonly: t.question.isReadOnlyAttr,
|
|
1402
|
-
|
|
1412
|
+
required: t.question.inputRequiredAttribute,
|
|
1403
1413
|
"aria-label": t.item.locText.renderedHtml,
|
|
1404
1414
|
"aria-invalid": t.question.ariaInvalid,
|
|
1405
1415
|
"aria-errormessage": t.question.ariaErrormessage,
|
|
1406
1416
|
class: r(t.question.cssClasses.itemControl)
|
|
1407
|
-
}, null, 10,
|
|
1408
|
-
[
|
|
1409
|
-
]) :
|
|
1417
|
+
}, null, 10, a1)), [
|
|
1418
|
+
[oe, s.value]
|
|
1419
|
+
]) : Z((i(), a("input", {
|
|
1410
1420
|
key: 1,
|
|
1411
1421
|
type: "radio",
|
|
1412
1422
|
name: t.question.questionName,
|
|
@@ -1415,13 +1425,13 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1415
1425
|
"onUpdate:modelValue": l[1] || (l[1] = (d) => s.value = d),
|
|
1416
1426
|
disabled: !t.question.getItemEnabled(t.item),
|
|
1417
1427
|
readonly: t.question.isReadOnlyAttr,
|
|
1418
|
-
|
|
1428
|
+
required: t.question.hasRequiredError(),
|
|
1419
1429
|
"aria-label": t.item.locText.renderedHtml,
|
|
1420
1430
|
"aria-invalid": t.question.ariaInvalid,
|
|
1421
1431
|
"aria-errormessage": t.question.ariaErrormessage,
|
|
1422
1432
|
class: r(t.question.cssClasses.itemControl)
|
|
1423
|
-
}, null, 10,
|
|
1424
|
-
[
|
|
1433
|
+
}, null, 10, u1)), [
|
|
1434
|
+
[ie, s.value]
|
|
1425
1435
|
]),
|
|
1426
1436
|
v("div", {
|
|
1427
1437
|
class: r(t.question.cssClasses.itemDecorator)
|
|
@@ -1456,7 +1466,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1456
1466
|
onError: l[3] || (l[3] = (d) => {
|
|
1457
1467
|
t.item.onErrorHandler();
|
|
1458
1468
|
})
|
|
1459
|
-
}, null, 46,
|
|
1469
|
+
}, null, 46, d1)) : p("", !0),
|
|
1460
1470
|
w(o) && !t.item.contentNotLoaded && t.question.contentMode === "video" ? (i(), a("video", {
|
|
1461
1471
|
key: 2,
|
|
1462
1472
|
controls: "",
|
|
@@ -1471,7 +1481,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1471
1481
|
onError: l[5] || (l[5] = (d) => {
|
|
1472
1482
|
t.item.onErrorHandler();
|
|
1473
1483
|
})
|
|
1474
|
-
}, null, 46,
|
|
1484
|
+
}, null, 46, m1)) : p("", !0),
|
|
1475
1485
|
!w(o) || t.item.contentNotLoaded ? (i(), a("div", {
|
|
1476
1486
|
key: 3,
|
|
1477
1487
|
class: r(t.question.cssClasses.itemNoImage),
|
|
@@ -1502,7 +1512,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1502
1512
|
], 2)
|
|
1503
1513
|
], 2));
|
|
1504
1514
|
}
|
|
1505
|
-
}),
|
|
1515
|
+
}), v1 = /* @__PURE__ */ y({
|
|
1506
1516
|
inheritAttrs: !1,
|
|
1507
1517
|
__name: "Comment",
|
|
1508
1518
|
props: {
|
|
@@ -1538,7 +1548,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1538
1548
|
ref: n
|
|
1539
1549
|
}, I(o.question.value), 513));
|
|
1540
1550
|
}
|
|
1541
|
-
}),
|
|
1551
|
+
}), C1 = /* @__PURE__ */ y({
|
|
1542
1552
|
inheritAttrs: !1,
|
|
1543
1553
|
__name: "Dropdown",
|
|
1544
1554
|
props: {
|
|
@@ -1555,23 +1565,24 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1555
1565
|
is: "sv-dropdown",
|
|
1556
1566
|
question: s.question
|
|
1557
1567
|
}, null, 8, ["question"]),
|
|
1558
|
-
s.question.
|
|
1568
|
+
s.question.isShowingChoiceComment ? (i(), g(m, {
|
|
1559
1569
|
key: 0,
|
|
1560
1570
|
is: "survey-other-choice",
|
|
1561
|
-
question: s.question
|
|
1562
|
-
|
|
1571
|
+
question: s.question,
|
|
1572
|
+
item: s.question.selectedItem
|
|
1573
|
+
}, null, 8, ["question", "item"])) : p("", !0)
|
|
1563
1574
|
], 2));
|
|
1564
1575
|
}
|
|
1565
|
-
}),
|
|
1576
|
+
}), c1 = ["id", "autocomplete", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "required"], g1 = {
|
|
1566
1577
|
key: 0,
|
|
1567
1578
|
value: ""
|
|
1568
|
-
},
|
|
1579
|
+
}, y1 = ["id"];
|
|
1569
1580
|
G.Instance.registerRenderer(
|
|
1570
1581
|
"dropdown",
|
|
1571
1582
|
"select",
|
|
1572
1583
|
"sv-dropdown-select"
|
|
1573
1584
|
);
|
|
1574
|
-
const
|
|
1585
|
+
const h1 = /* @__PURE__ */ y({
|
|
1575
1586
|
inheritAttrs: !1,
|
|
1576
1587
|
__name: "DropdownSelect",
|
|
1577
1588
|
props: {
|
|
@@ -1584,7 +1595,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1584
1595
|
e.question.onClick(l);
|
|
1585
1596
|
}, o = (l) => {
|
|
1586
1597
|
e.question.onKeyUp(l);
|
|
1587
|
-
}, t =
|
|
1598
|
+
}, t = M({
|
|
1588
1599
|
get() {
|
|
1589
1600
|
return e.question.value ?? "";
|
|
1590
1601
|
},
|
|
@@ -1606,7 +1617,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1606
1617
|
disabled: "",
|
|
1607
1618
|
id: l.question.inputId,
|
|
1608
1619
|
class: r(l.question.getControlClass())
|
|
1609
|
-
}, I(l.question.readOnlyText), 11,
|
|
1620
|
+
}, I(l.question.readOnlyText), 11, y1)) : Z((i(), a("select", {
|
|
1610
1621
|
key: 0,
|
|
1611
1622
|
id: l.question.inputId,
|
|
1612
1623
|
"onUpdate:modelValue": d[0] || (d[0] = (C) => t.value = C),
|
|
@@ -1620,13 +1631,13 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1620
1631
|
"aria-errormessage": l.question.a11y_input_ariaErrormessage,
|
|
1621
1632
|
required: l.question.isRequired
|
|
1622
1633
|
}, [
|
|
1623
|
-
l.question.allowClear ? (i(), a("option",
|
|
1624
|
-
(i(!0), a(
|
|
1634
|
+
l.question.allowClear ? (i(), a("option", g1, I(l.question.placeholder), 1)) : p("", !0),
|
|
1635
|
+
(i(!0), a(H, null, V(l.question.visibleChoices, (C) => (i(), g(m, {
|
|
1625
1636
|
is: "sv-dropdown-option-item",
|
|
1626
1637
|
item: C,
|
|
1627
1638
|
key: C.id
|
|
1628
1639
|
}, null, 8, ["item"]))), 128))
|
|
1629
|
-
], 42,
|
|
1640
|
+
], 42, c1)), [
|
|
1630
1641
|
[Be, t.value]
|
|
1631
1642
|
]),
|
|
1632
1643
|
l.question.cssClasses.chevronButtonIconId ? (i(), a("div", {
|
|
@@ -1642,14 +1653,15 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1642
1653
|
}, null, 8, ["class", "iconName"])
|
|
1643
1654
|
], 2)) : p("", !0)
|
|
1644
1655
|
], 2),
|
|
1645
|
-
l.question.
|
|
1656
|
+
l.question.isShowingChoiceComment ? (i(), g(m, {
|
|
1646
1657
|
key: 0,
|
|
1647
1658
|
is: "survey-other-choice",
|
|
1648
|
-
question: l.question
|
|
1649
|
-
|
|
1659
|
+
question: l.question,
|
|
1660
|
+
item: l.question.selectedItem
|
|
1661
|
+
}, null, 8, ["question", "item"])) : p("", !0)
|
|
1650
1662
|
], 2));
|
|
1651
1663
|
}
|
|
1652
|
-
}),
|
|
1664
|
+
}), q1 = ["value", "disabled"], w1 = /* @__PURE__ */ y({
|
|
1653
1665
|
__name: "OptionItem",
|
|
1654
1666
|
props: {
|
|
1655
1667
|
item: {}
|
|
@@ -1659,15 +1671,15 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1659
1671
|
return S(() => e.item), (s, o) => (i(), a("option", {
|
|
1660
1672
|
value: s.item.value,
|
|
1661
1673
|
disabled: !s.item.isEnabled
|
|
1662
|
-
}, I(w(n)), 9,
|
|
1674
|
+
}, I(w(n)), 9, q1));
|
|
1663
1675
|
}
|
|
1664
|
-
}),
|
|
1676
|
+
}), b1 = ["id", "disabled", "tabindex", "role", "aria-required", "aria-invalid", "aria-errormessage", "aria-expanded", "aria-label", "aria-labelledby", "aria-describedby", "aria-controls", "aria-activedescendant", "required"], L1 = { style: { visibility: "hidden" } }, k1 = ["disabled", "inputmode", "id", "tabindex", "readonly", "role", "aria-required", "aria-invalid", "aria-errormessage", "aria-expanded", "aria-controls", "aria-label", "aria-labelledby", "aria-describedby", "aria-activedescendant", "placeholder"], f1 = ["id", "role", "aria-label", "aria-labelledby", "aria-describedby", "tabindex"], H1 = /* @__PURE__ */ y({
|
|
1665
1677
|
__name: "Dropdown",
|
|
1666
1678
|
props: {
|
|
1667
1679
|
question: {}
|
|
1668
1680
|
},
|
|
1669
1681
|
setup(u) {
|
|
1670
|
-
const e = u, n = f(null), s =
|
|
1682
|
+
const e = u, n = f(null), s = M(() => e.question.dropdownListModel), o = (b) => {
|
|
1671
1683
|
var R;
|
|
1672
1684
|
(R = s.value) == null || R.onClick(b);
|
|
1673
1685
|
}, t = (b) => {
|
|
@@ -1684,10 +1696,10 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1684
1696
|
e.question.onFocus(b);
|
|
1685
1697
|
}, L = (b) => {
|
|
1686
1698
|
s.value.inputStringRendered = b.target.value;
|
|
1687
|
-
}, h =
|
|
1699
|
+
}, h = M(
|
|
1688
1700
|
() => e.question.showSelectedItemLocText
|
|
1689
|
-
), q =
|
|
1690
|
-
return S(() => s.value), z(l),
|
|
1701
|
+
), q = M(() => e.question.selectedItemLocText);
|
|
1702
|
+
return S(() => s.value), z(l), B(l), (b, R) => {
|
|
1691
1703
|
var N, K, j, ue;
|
|
1692
1704
|
return i(), a("div", {
|
|
1693
1705
|
class: r(b.question.cssClasses.selectWrapper),
|
|
@@ -1731,7 +1743,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1731
1743
|
key: 1,
|
|
1732
1744
|
class: r(b.question.cssClasses.hintSuffix)
|
|
1733
1745
|
}, [
|
|
1734
|
-
v("span",
|
|
1746
|
+
v("span", L1, I(s.value.inputStringRendered), 1),
|
|
1735
1747
|
v("span", null, I(s.value.hintStringSuffix), 1)
|
|
1736
1748
|
], 2)) : p("", !0),
|
|
1737
1749
|
b.question.showInputFieldComponent ? (i(), g(m, {
|
|
@@ -1766,13 +1778,13 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1766
1778
|
onInput: L,
|
|
1767
1779
|
onBlur: d,
|
|
1768
1780
|
onFocus: C
|
|
1769
|
-
}, null, 42,
|
|
1781
|
+
}, null, 42, k1)) : p("", !0)
|
|
1770
1782
|
], 2),
|
|
1771
1783
|
c(m, {
|
|
1772
1784
|
is: "sv-action-bar",
|
|
1773
1785
|
model: s.value.editorButtons
|
|
1774
1786
|
}, null, 8, ["model"])
|
|
1775
|
-
], 42,
|
|
1787
|
+
], 42, b1)),
|
|
1776
1788
|
b.question.isInputReadOnly ? p("", !0) : (i(), g(m, {
|
|
1777
1789
|
key: 1,
|
|
1778
1790
|
is: "sv-popup",
|
|
@@ -1804,11 +1816,11 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1804
1816
|
is: "sv-action-bar",
|
|
1805
1817
|
model: s.value.editorButtons
|
|
1806
1818
|
}, null, 8, ["model"])
|
|
1807
|
-
], 10,
|
|
1819
|
+
], 10, f1)) : p("", !0)
|
|
1808
1820
|
], 2);
|
|
1809
1821
|
};
|
|
1810
1822
|
}
|
|
1811
|
-
}),
|
|
1823
|
+
}), M1 = /* @__PURE__ */ y({
|
|
1812
1824
|
inheritAttrs: !1,
|
|
1813
1825
|
__name: "Tagbox",
|
|
1814
1826
|
props: {
|
|
@@ -1828,17 +1840,18 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1828
1840
|
s.question.isOtherSelected ? (i(), g(m, {
|
|
1829
1841
|
key: 0,
|
|
1830
1842
|
is: "survey-other-choice",
|
|
1831
|
-
question: s.question
|
|
1832
|
-
|
|
1843
|
+
question: s.question,
|
|
1844
|
+
item: s.question.otherItem
|
|
1845
|
+
}, null, 8, ["question", "item"])) : p("", !0)
|
|
1833
1846
|
], 2));
|
|
1834
1847
|
}
|
|
1835
|
-
}),
|
|
1848
|
+
}), I1 = ["id", "tabindex", "disabled", "role", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage", "aria-controls", "aria-expanded", "aria-activedescendant", "required"], V1 = ["id", "role", "aria-label", "aria-labelledby", "aria-describedby", "tabindex"], S1 = /* @__PURE__ */ y({
|
|
1836
1849
|
__name: "Tagbox",
|
|
1837
1850
|
props: {
|
|
1838
1851
|
question: {}
|
|
1839
1852
|
},
|
|
1840
1853
|
setup(u) {
|
|
1841
|
-
const e = u, n =
|
|
1854
|
+
const e = u, n = M(() => {
|
|
1842
1855
|
const d = e.question;
|
|
1843
1856
|
return d.dropdownListModel || (d.dropdownListModel = new Fe(d)), e.question.dropdownListModel;
|
|
1844
1857
|
}), s = (d) => {
|
|
@@ -1850,7 +1863,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1850
1863
|
}, t = (d) => {
|
|
1851
1864
|
var C;
|
|
1852
1865
|
(C = n.value) == null || C.onBlur(d);
|
|
1853
|
-
}, l =
|
|
1866
|
+
}, l = se(() => e.question.selectedChoices);
|
|
1854
1867
|
return S(() => n.value), (d, C) => {
|
|
1855
1868
|
var L, h, q, b;
|
|
1856
1869
|
return i(), a("div", {
|
|
@@ -1880,7 +1893,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1880
1893
|
v("div", {
|
|
1881
1894
|
class: r(d.question.cssClasses.controlValue)
|
|
1882
1895
|
}, [
|
|
1883
|
-
(i(!0), a(
|
|
1896
|
+
(i(!0), a(H, null, V(w(l), (R, N) => (i(), g(m, {
|
|
1884
1897
|
is: "sv-tagbox-item",
|
|
1885
1898
|
item: R,
|
|
1886
1899
|
question: d.question,
|
|
@@ -1897,7 +1910,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1897
1910
|
is: "sv-action-bar",
|
|
1898
1911
|
model: n.value.editorButtons
|
|
1899
1912
|
}, null, 8, ["model"])
|
|
1900
|
-
], 42,
|
|
1913
|
+
], 42, I1)),
|
|
1901
1914
|
d.question.isInputReadOnly ? p("", !0) : (i(), g(m, {
|
|
1902
1915
|
key: 1,
|
|
1903
1916
|
is: "sv-popup",
|
|
@@ -1929,11 +1942,11 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1929
1942
|
is: "sv-action-bar",
|
|
1930
1943
|
model: n.value.editorButtons
|
|
1931
1944
|
}, null, 8, ["model"])
|
|
1932
|
-
], 10,
|
|
1945
|
+
], 10, V1)) : p("", !0)
|
|
1933
1946
|
], 2);
|
|
1934
1947
|
};
|
|
1935
1948
|
}
|
|
1936
|
-
}),
|
|
1949
|
+
}), R1 = { style: { visibility: "hidden" } }, T1 = ["placeholder", "disabled", "inputmode", "role", "aria-required", "aria-invalid", "aria-errormessage", "aria-expanded", "aria-label", "aria-labelledby", "aria-describedby", "aria-controls", "aria-activedescendant", "id", "readonly", "size"], B1 = /* @__PURE__ */ y({
|
|
1937
1950
|
__name: "TagboxFilter",
|
|
1938
1951
|
props: {
|
|
1939
1952
|
question: {},
|
|
@@ -1949,7 +1962,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1949
1962
|
e.question.onBlur(d);
|
|
1950
1963
|
}, t = (d) => {
|
|
1951
1964
|
e.question.onFocus(d);
|
|
1952
|
-
}, l =
|
|
1965
|
+
}, l = M({
|
|
1953
1966
|
get() {
|
|
1954
1967
|
return e.model.inputStringRendered ?? "";
|
|
1955
1968
|
},
|
|
@@ -1979,10 +1992,10 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1979
1992
|
key: 1,
|
|
1980
1993
|
class: r(d.question.cssClasses.hintSuffix)
|
|
1981
1994
|
}, [
|
|
1982
|
-
v("span",
|
|
1995
|
+
v("span", R1, I(d.model.inputStringRendered), 1),
|
|
1983
1996
|
v("span", null, I(d.model.hintStringSuffix), 1)
|
|
1984
1997
|
], 2)) : p("", !0),
|
|
1985
|
-
|
|
1998
|
+
Z(v("input", {
|
|
1986
1999
|
type: "text",
|
|
1987
2000
|
autocomplete: "off",
|
|
1988
2001
|
"onUpdate:modelValue": C[0] || (C[0] = (L) => l.value = L),
|
|
@@ -2007,13 +2020,13 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2007
2020
|
onKeydown: s,
|
|
2008
2021
|
onBlur: o,
|
|
2009
2022
|
onFocus: t
|
|
2010
|
-
}, null, 42,
|
|
2023
|
+
}, null, 42, T1), [
|
|
2011
2024
|
[Ze, l.value]
|
|
2012
2025
|
])
|
|
2013
2026
|
], 2)
|
|
2014
2027
|
], 2));
|
|
2015
2028
|
}
|
|
2016
|
-
}),
|
|
2029
|
+
}), Z1 = { class: "sv-tagbox__item-text" }, $1 = /* @__PURE__ */ y({
|
|
2017
2030
|
__name: "TagboxItem",
|
|
2018
2031
|
props: {
|
|
2019
2032
|
question: {},
|
|
@@ -2027,7 +2040,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2027
2040
|
class: "sv-tagbox__item",
|
|
2028
2041
|
key: s.item.key
|
|
2029
2042
|
}, [
|
|
2030
|
-
v("div",
|
|
2043
|
+
v("div", Z1, [
|
|
2031
2044
|
c(m, {
|
|
2032
2045
|
is: "survey-string",
|
|
2033
2046
|
locString: s.item.locText
|
|
@@ -2046,7 +2059,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2046
2059
|
], 2)
|
|
2047
2060
|
]));
|
|
2048
2061
|
}
|
|
2049
|
-
}),
|
|
2062
|
+
}), D1 = /* @__PURE__ */ y({
|
|
2050
2063
|
inheritAttrs: !1,
|
|
2051
2064
|
__name: "Ranking",
|
|
2052
2065
|
props: {
|
|
@@ -2070,7 +2083,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2070
2083
|
ref_key: "root",
|
|
2071
2084
|
ref: n
|
|
2072
2085
|
}, [
|
|
2073
|
-
t.question.selectToRankEnabled ? p("", !0) : (i(!0), a(
|
|
2086
|
+
t.question.selectToRankEnabled ? p("", !0) : (i(!0), a(H, { key: 0 }, V(t.question.renderedRankingChoices, (d, C) => (i(), g(m, $({
|
|
2074
2087
|
key: d.value + "-" + C + "-item",
|
|
2075
2088
|
is: s(d)
|
|
2076
2089
|
}, o(d, C)), null, 16, ["is"]))), 128)),
|
|
@@ -2079,7 +2092,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2079
2092
|
class: r(t.question.getContainerClasses("from")),
|
|
2080
2093
|
"data-ranking": "from-container"
|
|
2081
2094
|
}, [
|
|
2082
|
-
(i(!0), a(
|
|
2095
|
+
(i(!0), a(H, null, V(t.question.renderedUnRankingChoices, (d, C) => (i(), g(m, $({
|
|
2083
2096
|
key: d.value + "-" + C + "-item",
|
|
2084
2097
|
is: s(d)
|
|
2085
2098
|
}, o(d, C, !0)), null, 16, ["is"]))), 128)),
|
|
@@ -2102,7 +2115,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2102
2115
|
class: r(t.question.getContainerClasses("to")),
|
|
2103
2116
|
"data-ranking": "to-container"
|
|
2104
2117
|
}, [
|
|
2105
|
-
(i(!0), a(
|
|
2118
|
+
(i(!0), a(H, null, V(t.question.renderedRankingChoices, (d, C) => (i(), g(m, $({
|
|
2106
2119
|
key: d.value + "-" + C + "-item",
|
|
2107
2120
|
is: s(d)
|
|
2108
2121
|
}, o(d, C)), null, 16, ["is"]))), 128)),
|
|
@@ -2118,10 +2131,10 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2118
2131
|
], 2)) : p("", !0)
|
|
2119
2132
|
], 2));
|
|
2120
2133
|
}
|
|
2121
|
-
}),
|
|
2134
|
+
}), A1 = ["id", "tabindex", "data-sv-drop-target-ranking-item"], P1 = {
|
|
2122
2135
|
tabindex: "-1",
|
|
2123
2136
|
style: { outline: "none" }
|
|
2124
|
-
},
|
|
2137
|
+
}, N1 = ["xlink:href"], E1 = ["xlink:href"], W1 = ["xlink:href"], F1 = /* @__PURE__ */ y({
|
|
2125
2138
|
inheritAttrs: !1,
|
|
2126
2139
|
__name: "RankingItem",
|
|
2127
2140
|
props: {
|
|
@@ -2131,7 +2144,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2131
2144
|
unrankedItem: { type: Boolean }
|
|
2132
2145
|
},
|
|
2133
2146
|
setup(u) {
|
|
2134
|
-
const e = u, n =
|
|
2147
|
+
const e = u, n = M(() => e.question.getNumberByIndex(e.index));
|
|
2135
2148
|
return S(() => e.item), (s, o) => (i(), a("div", {
|
|
2136
2149
|
id: s.question.getItemId(s.item),
|
|
2137
2150
|
tabindex: s.question.getItemTabIndex(s.item),
|
|
@@ -2157,7 +2170,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2157
2170
|
);
|
|
2158
2171
|
})
|
|
2159
2172
|
}, [
|
|
2160
|
-
v("div",
|
|
2173
|
+
v("div", P1, [
|
|
2161
2174
|
v("div", {
|
|
2162
2175
|
class: r(s.question.cssClasses.itemGhostNode)
|
|
2163
2176
|
}, null, 2),
|
|
@@ -2172,14 +2185,14 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2172
2185
|
}, [
|
|
2173
2186
|
v("use", {
|
|
2174
2187
|
"xlink:href": s.question.dragDropSvgIcon
|
|
2175
|
-
}, null, 8,
|
|
2188
|
+
}, null, 8, N1)
|
|
2176
2189
|
], 2)),
|
|
2177
2190
|
(i(), a("svg", {
|
|
2178
2191
|
class: r(s.question.getIconFocusCss())
|
|
2179
2192
|
}, [
|
|
2180
2193
|
v("use", {
|
|
2181
2194
|
"xlink:href": s.question.arrowsSvgIcon
|
|
2182
|
-
}, null, 8,
|
|
2195
|
+
}, null, 8, E1)
|
|
2183
2196
|
], 2))
|
|
2184
2197
|
], 2),
|
|
2185
2198
|
!s.unrankedItem && n.value ? (i(), a("div", {
|
|
@@ -2192,7 +2205,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2192
2205
|
(i(), a("svg", null, [
|
|
2193
2206
|
v("use", {
|
|
2194
2207
|
"xlink:href": s.question.dashSvgIcon
|
|
2195
|
-
}, null, 8,
|
|
2208
|
+
}, null, 8, W1)
|
|
2196
2209
|
]))
|
|
2197
2210
|
], 2)),
|
|
2198
2211
|
c(m, {
|
|
@@ -2202,9 +2215,9 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2202
2215
|
}, null, 8, ["is", "item", "cssClasses"])
|
|
2203
2216
|
], 2)
|
|
2204
2217
|
])
|
|
2205
|
-
], 42,
|
|
2218
|
+
], 42, A1));
|
|
2206
2219
|
}
|
|
2207
|
-
}),
|
|
2220
|
+
}), O1 = /* @__PURE__ */ y({
|
|
2208
2221
|
inheritAttrs: !1,
|
|
2209
2222
|
__name: "RankingItemContent",
|
|
2210
2223
|
props: {
|
|
@@ -2221,10 +2234,10 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2221
2234
|
}, null, 8, ["locString"])
|
|
2222
2235
|
], 2));
|
|
2223
2236
|
}
|
|
2224
|
-
}),
|
|
2237
|
+
}), z1 = ["role", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], U1 = /* @__PURE__ */ v("legend", {
|
|
2225
2238
|
role: "presentation",
|
|
2226
2239
|
class: "sv-hidden"
|
|
2227
|
-
}, null, -1),
|
|
2240
|
+
}, null, -1), Q1 = /* @__PURE__ */ y({
|
|
2228
2241
|
inheritAttrs: !1,
|
|
2229
2242
|
__name: "Rating",
|
|
2230
2243
|
props: {
|
|
@@ -2239,8 +2252,16 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2239
2252
|
ref_key: "root",
|
|
2240
2253
|
ref: n
|
|
2241
2254
|
}, [
|
|
2242
|
-
v("fieldset",
|
|
2243
|
-
|
|
2255
|
+
v("fieldset", {
|
|
2256
|
+
role: o.question.a11y_input_ariaRole,
|
|
2257
|
+
"aria-required": o.question.a11y_input_ariaRequired,
|
|
2258
|
+
"aria-label": o.question.a11y_input_ariaLabel,
|
|
2259
|
+
"aria-labelledby": o.question.a11y_input_ariaLabelledBy,
|
|
2260
|
+
"aria-describedby": o.question.a11y_input_ariaDescribedBy,
|
|
2261
|
+
"aria-invalid": o.question.a11y_input_ariaInvalid,
|
|
2262
|
+
"aria-errormessage": o.question.a11y_input_ariaErrormessage
|
|
2263
|
+
}, [
|
|
2264
|
+
U1,
|
|
2244
2265
|
o.question.hasMinLabel ? (i(), a("span", {
|
|
2245
2266
|
key: 0,
|
|
2246
2267
|
class: r(o.question.cssClasses.minText)
|
|
@@ -2250,7 +2271,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2250
2271
|
locString: o.question.locMinRateDescription
|
|
2251
2272
|
}, null, 8, ["locString"])
|
|
2252
2273
|
], 2)) : p("", !0),
|
|
2253
|
-
(i(!0), a(
|
|
2274
|
+
(i(!0), a(H, null, V(o.question.renderedRateItems, (l, d) => (i(), g(m, {
|
|
2254
2275
|
key: s(d),
|
|
2255
2276
|
is: o.question.itemComponent,
|
|
2256
2277
|
item: l,
|
|
@@ -2266,10 +2287,10 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2266
2287
|
locString: o.question.locMaxRateDescription
|
|
2267
2288
|
}, null, 8, ["locString"])
|
|
2268
2289
|
], 2)) : p("", !0)
|
|
2269
|
-
])
|
|
2290
|
+
], 8, z1)
|
|
2270
2291
|
], 2));
|
|
2271
2292
|
}
|
|
2272
|
-
}),
|
|
2293
|
+
}), K1 = ["name", "id", "value", "disabled", "readonly", "aria-label"], j1 = ["data-text"], G1 = /* @__PURE__ */ y({
|
|
2273
2294
|
__name: "RatingItem",
|
|
2274
2295
|
props: {
|
|
2275
2296
|
question: {},
|
|
@@ -2292,11 +2313,8 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2292
2313
|
disabled: n.question.isDisabledAttr,
|
|
2293
2314
|
readonly: n.question.isReadOnlyAttr,
|
|
2294
2315
|
onClick: s[0] || (s[0] = (o) => n.question.setValueFromClick(o.target.value)),
|
|
2295
|
-
"aria-
|
|
2296
|
-
|
|
2297
|
-
"aria-invalid": n.question.ariaInvalid,
|
|
2298
|
-
"aria-errormessage": n.question.ariaErrormessage
|
|
2299
|
-
}, null, 8, Q1),
|
|
2316
|
+
"aria-label": n.question.ariaLabel
|
|
2317
|
+
}, null, 8, K1),
|
|
2300
2318
|
v("span", {
|
|
2301
2319
|
class: r(n.question.cssClasses.itemText),
|
|
2302
2320
|
"data-text": n.item.text
|
|
@@ -2305,10 +2323,10 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2305
2323
|
is: "survey-string",
|
|
2306
2324
|
locString: n.item.locText
|
|
2307
2325
|
}, null, 8, ["locString"])
|
|
2308
|
-
], 10,
|
|
2326
|
+
], 10, j1)
|
|
2309
2327
|
], 34));
|
|
2310
2328
|
}
|
|
2311
|
-
}),
|
|
2329
|
+
}), X1 = ["title"], J1 = ["name", "id", "value", "disabled", "readonly", "aria-label"], Y1 = /* @__PURE__ */ y({
|
|
2312
2330
|
__name: "RatingItemSmiley",
|
|
2313
2331
|
props: {
|
|
2314
2332
|
question: {},
|
|
@@ -2335,19 +2353,16 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2335
2353
|
disabled: n.question.isDisabledAttr,
|
|
2336
2354
|
readonly: n.question.isReadOnlyAttr,
|
|
2337
2355
|
onClick: s[0] || (s[0] = (o) => n.question.setValueFromClick(o.target.value)),
|
|
2338
|
-
"aria-
|
|
2339
|
-
|
|
2340
|
-
"aria-invalid": n.question.ariaInvalid,
|
|
2341
|
-
"aria-errormessage": n.question.ariaErrormessage
|
|
2342
|
-
}, null, 8, X1),
|
|
2356
|
+
"aria-label": n.question.ariaLabel
|
|
2357
|
+
}, null, 8, J1),
|
|
2343
2358
|
c(m, {
|
|
2344
2359
|
is: "sv-svg-icon",
|
|
2345
2360
|
iconName: n.question.getItemSmileyIconName(n.item.itemValue),
|
|
2346
2361
|
size: "auto"
|
|
2347
2362
|
}, null, 8, ["iconName"])
|
|
2348
|
-
], 46,
|
|
2363
|
+
], 46, X1));
|
|
2349
2364
|
}
|
|
2350
|
-
}),
|
|
2365
|
+
}), _1 = ["title"], x1 = ["name", "id", "value", "disabled", "readonly", "aria-label"], en = /* @__PURE__ */ y({
|
|
2351
2366
|
__name: "RatingItemStar",
|
|
2352
2367
|
props: {
|
|
2353
2368
|
question: {},
|
|
@@ -2373,11 +2388,8 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2373
2388
|
disabled: n.question.isDisabledAttr,
|
|
2374
2389
|
readonly: n.question.isReadOnlyAttr,
|
|
2375
2390
|
onClick: s[0] || (s[0] = (o) => n.question.setValueFromClick((o == null ? void 0 : o.target).value)),
|
|
2376
|
-
"aria-
|
|
2377
|
-
|
|
2378
|
-
"aria-invalid": n.question.ariaInvalid,
|
|
2379
|
-
"aria-errormessage": n.question.ariaErrormessage
|
|
2380
|
-
}, null, 8, _1),
|
|
2391
|
+
"aria-label": n.question.ariaLabel
|
|
2392
|
+
}, null, 8, x1),
|
|
2381
2393
|
c(m, {
|
|
2382
2394
|
is: "sv-svg-icon",
|
|
2383
2395
|
class: r("sv-star"),
|
|
@@ -2390,12 +2402,12 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2390
2402
|
iconName: n.question.itemStarIconAlt,
|
|
2391
2403
|
size: "auto"
|
|
2392
2404
|
}, null, 8, ["iconName"])
|
|
2393
|
-
], 42,
|
|
2405
|
+
], 42, _1));
|
|
2394
2406
|
}
|
|
2395
|
-
}),
|
|
2407
|
+
}), sn = { class: "sd-rating-dropdown-item" }, nn = { class: "sd-rating-dropdown-item_text" }, tn = {
|
|
2396
2408
|
key: 0,
|
|
2397
2409
|
class: "sd-rating-dropdown-item_description"
|
|
2398
|
-
},
|
|
2410
|
+
}, on = /* @__PURE__ */ y({
|
|
2399
2411
|
__name: "RatingDropdownItem",
|
|
2400
2412
|
props: {
|
|
2401
2413
|
item: {},
|
|
@@ -2403,9 +2415,9 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2403
2415
|
},
|
|
2404
2416
|
setup(u) {
|
|
2405
2417
|
const e = u;
|
|
2406
|
-
return S(() => e.item), (n, s) => (i(), a("div",
|
|
2407
|
-
v("span",
|
|
2408
|
-
n.item.description ? (i(), a("div",
|
|
2418
|
+
return S(() => e.item), (n, s) => (i(), a("div", sn, [
|
|
2419
|
+
v("span", nn, I(n.item.title), 1),
|
|
2420
|
+
n.item.description ? (i(), a("div", tn, [
|
|
2409
2421
|
c(m, {
|
|
2410
2422
|
is: "survey-string",
|
|
2411
2423
|
locString: n.item.description
|
|
@@ -2419,7 +2431,7 @@ G.Instance.registerRenderer(
|
|
|
2419
2431
|
"dropdown",
|
|
2420
2432
|
"sv-rating-dropdown"
|
|
2421
2433
|
);
|
|
2422
|
-
const
|
|
2434
|
+
const rn = /* @__PURE__ */ y({
|
|
2423
2435
|
inheritAttrs: !1,
|
|
2424
2436
|
__name: "RatingDropdown",
|
|
2425
2437
|
props: {
|
|
@@ -2438,7 +2450,7 @@ const on = /* @__PURE__ */ y({
|
|
|
2438
2450
|
}, null, 8, ["question"])
|
|
2439
2451
|
], 2));
|
|
2440
2452
|
}
|
|
2441
|
-
}),
|
|
2453
|
+
}), ln = ["name", "value", "id", ".indeterminate", "disabled", "readonly", "role", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], an = /* @__PURE__ */ y({
|
|
2442
2454
|
inheritAttrs: !1,
|
|
2443
2455
|
__name: "BooleanSwitch",
|
|
2444
2456
|
props: {
|
|
@@ -2461,7 +2473,7 @@ const on = /* @__PURE__ */ y({
|
|
|
2461
2473
|
v("label", {
|
|
2462
2474
|
class: r(t.question.getItemCss())
|
|
2463
2475
|
}, [
|
|
2464
|
-
|
|
2476
|
+
Z(v("input", {
|
|
2465
2477
|
type: "checkbox",
|
|
2466
2478
|
name: t.question.name,
|
|
2467
2479
|
value: t.question.booleanValue ?? "",
|
|
@@ -2478,8 +2490,8 @@ const on = /* @__PURE__ */ y({
|
|
|
2478
2490
|
"aria-describedby": t.question.a11y_input_ariaDescribedBy,
|
|
2479
2491
|
"aria-invalid": t.question.a11y_input_ariaInvalid,
|
|
2480
2492
|
"aria-errormessage": t.question.a11y_input_ariaErrormessage
|
|
2481
|
-
}, null, 42,
|
|
2482
|
-
[
|
|
2493
|
+
}, null, 42, ln), [
|
|
2494
|
+
[oe, t.question.booleanValue]
|
|
2483
2495
|
]),
|
|
2484
2496
|
v("div", {
|
|
2485
2497
|
class: r(t.question.cssClasses.sliderGhost),
|
|
@@ -2534,7 +2546,7 @@ G.Instance.registerRenderer(
|
|
|
2534
2546
|
"radio",
|
|
2535
2547
|
"sv-boolean-radio"
|
|
2536
2548
|
);
|
|
2537
|
-
const
|
|
2549
|
+
const un = /* @__PURE__ */ y({
|
|
2538
2550
|
inheritAttrs: !1,
|
|
2539
2551
|
__name: "BooleanRadio",
|
|
2540
2552
|
props: {
|
|
@@ -2575,7 +2587,7 @@ const an = /* @__PURE__ */ y({
|
|
|
2575
2587
|
], 2)
|
|
2576
2588
|
], 2));
|
|
2577
2589
|
}
|
|
2578
|
-
}),
|
|
2590
|
+
}), dn = ["name", "value", "checked", "aria-errormessage", "disabled", "readonly"], mn = ["xlink:href"], pn = /* @__PURE__ */ y({
|
|
2579
2591
|
__name: "BooleanRadioItem",
|
|
2580
2592
|
props: {
|
|
2581
2593
|
question: {},
|
|
@@ -2604,7 +2616,7 @@ const an = /* @__PURE__ */ y({
|
|
|
2604
2616
|
readonly: s.question.isReadOnlyAttr,
|
|
2605
2617
|
class: r(s.question.cssClasses.itemRadioControl),
|
|
2606
2618
|
onChange: n
|
|
2607
|
-
}, null, 42,
|
|
2619
|
+
}, null, 42, dn),
|
|
2608
2620
|
s.question.cssClasses.materialRadioDecorator ? (i(), a("span", {
|
|
2609
2621
|
key: 0,
|
|
2610
2622
|
class: r(s.question.cssClasses.materialRadioDecorator)
|
|
@@ -2615,7 +2627,7 @@ const an = /* @__PURE__ */ y({
|
|
|
2615
2627
|
}, [
|
|
2616
2628
|
v("use", {
|
|
2617
2629
|
"xlink:href": s.question.itemSvgIcon
|
|
2618
|
-
}, null, 8,
|
|
2630
|
+
}, null, 8, mn)
|
|
2619
2631
|
], 2)) : p("", !0)
|
|
2620
2632
|
], 2)) : p("", !0),
|
|
2621
2633
|
v("span", {
|
|
@@ -2629,13 +2641,13 @@ const an = /* @__PURE__ */ y({
|
|
|
2629
2641
|
], 2)
|
|
2630
2642
|
], 2));
|
|
2631
2643
|
}
|
|
2632
|
-
}),
|
|
2644
|
+
}), vn = ["name", "value", "id", ".indeterminate", "disabled", "readonly", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], Cn = ["xlink:href"], cn = /* @__PURE__ */ v("span", { class: "check" }, null, -1), gn = ["id"], yn = ["id"];
|
|
2633
2645
|
G.Instance.registerRenderer(
|
|
2634
2646
|
"boolean",
|
|
2635
2647
|
"checkbox",
|
|
2636
2648
|
"sv-boolean-checkbox"
|
|
2637
2649
|
);
|
|
2638
|
-
const
|
|
2650
|
+
const hn = /* @__PURE__ */ y({
|
|
2639
2651
|
inheritAttrs: !1,
|
|
2640
2652
|
__name: "BooleanCheckbox",
|
|
2641
2653
|
props: {
|
|
@@ -2655,7 +2667,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2655
2667
|
v("label", {
|
|
2656
2668
|
class: r(s.question.cssClasses.checkboxLabel)
|
|
2657
2669
|
}, [
|
|
2658
|
-
|
|
2670
|
+
Z(v("input", {
|
|
2659
2671
|
type: "checkbox",
|
|
2660
2672
|
name: s.question.name,
|
|
2661
2673
|
value: s.question.booleanValue ?? "",
|
|
@@ -2671,8 +2683,8 @@ const yn = /* @__PURE__ */ y({
|
|
|
2671
2683
|
"aria-describedby": s.question.a11y_input_ariaDescribedBy,
|
|
2672
2684
|
"aria-invalid": s.question.a11y_input_ariaInvalid,
|
|
2673
2685
|
"aria-errormessage": s.question.a11y_input_ariaErrormessage
|
|
2674
|
-
}, null, 42,
|
|
2675
|
-
[
|
|
2686
|
+
}, null, 42, vn), [
|
|
2687
|
+
[oe, s.question.booleanValue]
|
|
2676
2688
|
]),
|
|
2677
2689
|
v("span", {
|
|
2678
2690
|
class: r(s.question.cssClasses.checkboxMaterialDecorator)
|
|
@@ -2683,9 +2695,9 @@ const yn = /* @__PURE__ */ y({
|
|
|
2683
2695
|
}, [
|
|
2684
2696
|
v("use", {
|
|
2685
2697
|
"xlink:href": s.question.svgIcon
|
|
2686
|
-
}, null, 8,
|
|
2698
|
+
}, null, 8, Cn)
|
|
2687
2699
|
], 2)) : p("", !0),
|
|
2688
|
-
|
|
2700
|
+
cn
|
|
2689
2701
|
], 2),
|
|
2690
2702
|
s.question.isLabelRendered ? (i(), a("span", {
|
|
2691
2703
|
key: 0,
|
|
@@ -2704,7 +2716,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2704
2716
|
element: s.question,
|
|
2705
2717
|
css: s.css
|
|
2706
2718
|
}, null, 8, ["element", "css"])) : p("", !0)
|
|
2707
|
-
], 10,
|
|
2719
|
+
], 10, gn)) : p("", !0)
|
|
2708
2720
|
], 2),
|
|
2709
2721
|
s.question.canRenderLabelDescription ? (i(), a("div", {
|
|
2710
2722
|
key: 0,
|
|
@@ -2715,32 +2727,32 @@ const yn = /* @__PURE__ */ y({
|
|
|
2715
2727
|
is: "survey-string",
|
|
2716
2728
|
locString: s.question.locDescription
|
|
2717
2729
|
}, null, 8, ["locString"])
|
|
2718
|
-
], 10,
|
|
2730
|
+
], 10, yn)) : p("", !0)
|
|
2719
2731
|
], 2)
|
|
2720
2732
|
], 2));
|
|
2721
2733
|
}
|
|
2722
|
-
}),
|
|
2734
|
+
}), qn = /* @__PURE__ */ y({
|
|
2723
2735
|
inheritAttrs: !1,
|
|
2724
2736
|
__name: "Multipletext",
|
|
2725
2737
|
props: {
|
|
2726
2738
|
question: {}
|
|
2727
2739
|
},
|
|
2728
2740
|
setup(u) {
|
|
2729
|
-
const e = u, n = f(null), s =
|
|
2741
|
+
const e = u, n = f(null), s = se(() => e.question.getRows());
|
|
2730
2742
|
return T(e, n), (o, t) => (i(), a("table", {
|
|
2731
2743
|
class: r(o.question.getQuestionRootCss()),
|
|
2732
2744
|
ref_key: "root",
|
|
2733
2745
|
ref: n
|
|
2734
2746
|
}, [
|
|
2735
2747
|
v("tbody", null, [
|
|
2736
|
-
(i(!0), a(
|
|
2748
|
+
(i(!0), a(H, null, V(w(s), (l, d) => (i(), a(H, {
|
|
2737
2749
|
key: o.question.inputId + "rowkey" + d
|
|
2738
2750
|
}, [
|
|
2739
2751
|
l.isVisible ? (i(), a("tr", {
|
|
2740
2752
|
key: 0,
|
|
2741
2753
|
class: r(o.question.cssClasses.row)
|
|
2742
2754
|
}, [
|
|
2743
|
-
(i(!0), a(
|
|
2755
|
+
(i(!0), a(H, null, V(l.cells, (C) => (i(), a("td", {
|
|
2744
2756
|
key: "item" + C.item.editor.id,
|
|
2745
2757
|
class: r(C.className)
|
|
2746
2758
|
}, [
|
|
@@ -2755,7 +2767,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2755
2767
|
])
|
|
2756
2768
|
], 2));
|
|
2757
2769
|
}
|
|
2758
|
-
}),
|
|
2770
|
+
}), wn = { key: 1 }, bn = { key: 2 }, Ln = /* @__PURE__ */ y({
|
|
2759
2771
|
__name: "MultipletextItem",
|
|
2760
2772
|
props: {
|
|
2761
2773
|
question: {},
|
|
@@ -2764,7 +2776,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2764
2776
|
setup(u) {
|
|
2765
2777
|
const e = u, n = (o) => re(o);
|
|
2766
2778
|
S(() => e.cell.item.editor);
|
|
2767
|
-
const s =
|
|
2779
|
+
const s = M(() => e.cell.item);
|
|
2768
2780
|
return (o, t) => o.cell.isErrorsCell ? (i(), g(m, {
|
|
2769
2781
|
key: 1,
|
|
2770
2782
|
is: "survey-errors",
|
|
@@ -2784,12 +2796,12 @@ const yn = /* @__PURE__ */ y({
|
|
|
2784
2796
|
key: 0,
|
|
2785
2797
|
class: r(o.question.cssClasses.requiredMark)
|
|
2786
2798
|
}, I(s.value.editor.requiredMark), 3)) : p("", !0),
|
|
2787
|
-
s.value.editor.isRequireTextBeforeTitle || s.value.editor.isRequireTextOnStart ? (i(), a("span",
|
|
2799
|
+
s.value.editor.isRequireTextBeforeTitle || s.value.editor.isRequireTextOnStart ? (i(), a("span", wn, " ")) : p("", !0),
|
|
2788
2800
|
c(m, {
|
|
2789
2801
|
is: "survey-string",
|
|
2790
2802
|
locString: s.value.locTitle
|
|
2791
2803
|
}, null, 8, ["locString"]),
|
|
2792
|
-
s.value.editor.isRequireTextAfterTitle ? (i(), a("span",
|
|
2804
|
+
s.value.editor.isRequireTextAfterTitle ? (i(), a("span", bn, " ")) : p("", !0),
|
|
2793
2805
|
s.value.editor.isRequireTextAfterTitle ? (i(), a("span", {
|
|
2794
2806
|
key: 3,
|
|
2795
2807
|
"aria-hidden": "true",
|
|
@@ -2808,7 +2820,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2808
2820
|
], 34))
|
|
2809
2821
|
], 2));
|
|
2810
2822
|
}
|
|
2811
|
-
}),
|
|
2823
|
+
}), kn = /* @__PURE__ */ y({
|
|
2812
2824
|
inheritAttrs: !1,
|
|
2813
2825
|
__name: "Breadcrumbs",
|
|
2814
2826
|
props: {
|
|
@@ -2821,7 +2833,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2821
2833
|
key: 0,
|
|
2822
2834
|
class: r(n.css.breadcrumbsRoot)
|
|
2823
2835
|
}, [
|
|
2824
|
-
(i(!0), a(
|
|
2836
|
+
(i(!0), a(H, null, V(n.model.actions, (o, t) => (i(), a(H, {
|
|
2825
2837
|
key: o.renderedId
|
|
2826
2838
|
}, [
|
|
2827
2839
|
t ? (i(), g(m, {
|
|
@@ -2838,21 +2850,21 @@ const yn = /* @__PURE__ */ y({
|
|
|
2838
2850
|
], 64))), 128))
|
|
2839
2851
|
], 2)) : p("", !0);
|
|
2840
2852
|
}
|
|
2841
|
-
}),
|
|
2853
|
+
}), fn = ["onClick", "title"], Hn = ["onClick", "title"], Mn = { key: 1 }, In = { key: 1 }, Vn = /* @__PURE__ */ y({
|
|
2842
2854
|
__name: "SingleInputSummary",
|
|
2843
2855
|
props: {
|
|
2844
2856
|
summary: {},
|
|
2845
2857
|
css: {}
|
|
2846
2858
|
},
|
|
2847
2859
|
setup(u) {
|
|
2848
|
-
const e = u, n =
|
|
2849
|
-
return (o, t) => o.summary.isEmpty() ? (i(), a("div",
|
|
2860
|
+
const e = u, n = M(() => "survey-placeholder-" + e.summary.question.getTemplate()), s = M(() => F.Instance.isComponentRegistered(n.value));
|
|
2861
|
+
return (o, t) => o.summary.isEmpty() ? (i(), a("div", Mn, [
|
|
2850
2862
|
s.value ? (i(), g(m, {
|
|
2851
2863
|
key: 0,
|
|
2852
2864
|
is: "survey-placeholder-" + o.summary.question.getTemplate(),
|
|
2853
2865
|
cssClasses: o.css,
|
|
2854
2866
|
question: o.summary.question
|
|
2855
|
-
}, null, 8, ["is", "cssClasses", "question"])) : (i(), a("div",
|
|
2867
|
+
}, null, 8, ["is", "cssClasses", "question"])) : (i(), a("div", In, [
|
|
2856
2868
|
c(m, {
|
|
2857
2869
|
is: "survey-string",
|
|
2858
2870
|
locString: o.summary.noEntry
|
|
@@ -2862,7 +2874,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2862
2874
|
key: 0,
|
|
2863
2875
|
class: r(o.css.summary)
|
|
2864
2876
|
}, [
|
|
2865
|
-
(i(!0), a(
|
|
2877
|
+
(i(!0), a(H, null, V(o.summary.items, (l, d) => (i(), a("div", {
|
|
2866
2878
|
key: d,
|
|
2867
2879
|
class: r(o.css.summaryRow)
|
|
2868
2880
|
}, [
|
|
@@ -2888,7 +2900,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2888
2900
|
iconName: "icon-editsmall-16x16",
|
|
2889
2901
|
size: "auto"
|
|
2890
2902
|
})
|
|
2891
|
-
], 10,
|
|
2903
|
+
], 10, fn)) : p("", !0),
|
|
2892
2904
|
l.showRemove && l.btnRemove ? (i(), a("button", {
|
|
2893
2905
|
key: 1,
|
|
2894
2906
|
class: r(o.css.summaryRowActionDelete),
|
|
@@ -2900,12 +2912,12 @@ const yn = /* @__PURE__ */ y({
|
|
|
2900
2912
|
iconName: "icon-delete-16x16",
|
|
2901
2913
|
size: "auto"
|
|
2902
2914
|
})
|
|
2903
|
-
], 10,
|
|
2915
|
+
], 10, Hn)) : p("", !0)
|
|
2904
2916
|
], 2)
|
|
2905
2917
|
], 2))), 128))
|
|
2906
2918
|
], 2));
|
|
2907
2919
|
}
|
|
2908
|
-
}),
|
|
2920
|
+
}), Sn = ["min", "max", "step"], Rn = ["id", "value", "min", "max", "step", "disabled", "onInput", "onFocus", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], Tn = /* @__PURE__ */ y({
|
|
2909
2921
|
inheritAttrs: !1,
|
|
2910
2922
|
__name: "Slider",
|
|
2911
2923
|
props: {
|
|
@@ -2913,7 +2925,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2913
2925
|
},
|
|
2914
2926
|
setup(u) {
|
|
2915
2927
|
const e = u, n = f(null), s = f(null);
|
|
2916
|
-
return T(e, n),
|
|
2928
|
+
return T(e, n), B(() => {
|
|
2917
2929
|
e.question.refreshInputRange(s.value);
|
|
2918
2930
|
}), (o, t) => (i(), a("div", {
|
|
2919
2931
|
class: r(o.question.rootCss),
|
|
@@ -2942,7 +2954,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2942
2954
|
onPointerup: t[2] || (t[2] = (l) => {
|
|
2943
2955
|
o.question.handleRangePointerUp(l, n.value);
|
|
2944
2956
|
})
|
|
2945
|
-
}, null, 42,
|
|
2957
|
+
}, null, 42, Sn)) : p("", !0),
|
|
2946
2958
|
v("div", {
|
|
2947
2959
|
class: r(o.question.cssClasses.visualContainer),
|
|
2948
2960
|
onPointerup: t[8] || (t[8] = (l) => {
|
|
@@ -2964,7 +2976,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2964
2976
|
class: r(o.question.cssClasses.rangeTrack),
|
|
2965
2977
|
style: k({ left: o.question.getTrackPercentLeft() + "%", right: o.question.getTrackPercentRight() + "%" })
|
|
2966
2978
|
}, null, 6),
|
|
2967
|
-
(i(!0), a(
|
|
2979
|
+
(i(!0), a(H, null, V(o.question.renderedValue, (l, d) => (i(), a(H, { key: d }, [
|
|
2968
2980
|
v("input", {
|
|
2969
2981
|
class: r(o.question.cssClasses.input),
|
|
2970
2982
|
id: "sjs-slider-input-" + d,
|
|
@@ -3001,7 +3013,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3001
3013
|
"aria-describedby": o.question.a11y_input_ariaDescribedBy,
|
|
3002
3014
|
"aria-invalid": o.question.a11y_input_ariaInvalid,
|
|
3003
3015
|
"aria-errormessage": o.question.a11y_input_ariaErrormessage
|
|
3004
|
-
}, null, 42,
|
|
3016
|
+
}, null, 42, Rn),
|
|
3005
3017
|
v("div", {
|
|
3006
3018
|
class: r(o.question.getThumbContainerCss(d)),
|
|
3007
3019
|
style: k({ left: o.question.getPercent(l) + "%" })
|
|
@@ -3034,7 +3046,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3034
3046
|
class: r(o.question.cssClasses.labelsContainer)
|
|
3035
3047
|
}, [
|
|
3036
3048
|
v("div", null, [
|
|
3037
|
-
(i(!0), a(
|
|
3049
|
+
(i(!0), a(H, null, V(o.question.renderedLabels, (l) => (i(), g(m, {
|
|
3038
3050
|
key: l.id,
|
|
3039
3051
|
is: "sv-slider-label-item",
|
|
3040
3052
|
item: l,
|
|
@@ -3044,7 +3056,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3044
3056
|
], 2)) : p("", !0)
|
|
3045
3057
|
], 2));
|
|
3046
3058
|
}
|
|
3047
|
-
}),
|
|
3059
|
+
}), Bn = /* @__PURE__ */ y({
|
|
3048
3060
|
__name: "SliderLabelItem",
|
|
3049
3061
|
props: {
|
|
3050
3062
|
question: {},
|
|
@@ -3072,10 +3084,10 @@ const yn = /* @__PURE__ */ y({
|
|
|
3072
3084
|
], 2)
|
|
3073
3085
|
], 38));
|
|
3074
3086
|
}
|
|
3075
|
-
}),
|
|
3087
|
+
}), Zn = { role: "radiogroup" }, $n = { class: "sv-visuallyhidden" }, Dn = {
|
|
3076
3088
|
key: 0,
|
|
3077
3089
|
role: "presentation"
|
|
3078
|
-
},
|
|
3090
|
+
}, An = { key: 0 }, Pn = ["onClick"], Nn = ["data-responsive-title", "onClick"], En = /* @__PURE__ */ y({
|
|
3079
3091
|
inheritAttrs: !1,
|
|
3080
3092
|
__name: "Matrix",
|
|
3081
3093
|
props: {
|
|
@@ -3104,16 +3116,16 @@ const yn = /* @__PURE__ */ y({
|
|
|
3104
3116
|
ref_key: "root",
|
|
3105
3117
|
ref: n
|
|
3106
3118
|
}, [
|
|
3107
|
-
v("fieldset",
|
|
3108
|
-
v("legend",
|
|
3119
|
+
v("fieldset", Zn, [
|
|
3120
|
+
v("legend", $n, I(t.question.locTitle.renderedHtml), 1),
|
|
3109
3121
|
v("table", {
|
|
3110
3122
|
class: r(t.question.getTableCss()),
|
|
3111
3123
|
role: "presentation"
|
|
3112
3124
|
}, [
|
|
3113
|
-
t.question.showHeader ? (i(), a("thead",
|
|
3125
|
+
t.question.showHeader ? (i(), a("thead", Dn, [
|
|
3114
3126
|
v("tr", null, [
|
|
3115
|
-
t.question.hasRows ? (i(), a("td",
|
|
3116
|
-
(i(!0), a(
|
|
3127
|
+
t.question.hasRows ? (i(), a("td", An)) : p("", !0),
|
|
3128
|
+
(i(!0), a(H, null, V(t.question.visibleColumns, (d, C) => (i(), a("th", {
|
|
3117
3129
|
key: C,
|
|
3118
3130
|
class: r(t.question.cssClasses.headerCell),
|
|
3119
3131
|
style: k({
|
|
@@ -3137,11 +3149,11 @@ const yn = /* @__PURE__ */ y({
|
|
|
3137
3149
|
])
|
|
3138
3150
|
])) : p("", !0),
|
|
3139
3151
|
v("tbody", null, [
|
|
3140
|
-
(i(!0), a(
|
|
3152
|
+
(i(!0), a(H, null, V(s.value, (d, C) => (i(), a("tr", {
|
|
3141
3153
|
key: "row_" + d.name + "_" + C,
|
|
3142
3154
|
class: r(d.rowClasses || void 0)
|
|
3143
3155
|
}, [
|
|
3144
|
-
|
|
3156
|
+
Z(v("td", {
|
|
3145
3157
|
class: r(d.rowTextClasses),
|
|
3146
3158
|
style: k({
|
|
3147
3159
|
minWidth: t.question.rowTitleWidth,
|
|
@@ -3163,7 +3175,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3163
3175
|
], 6), [
|
|
3164
3176
|
[A, t.question.hasRows]
|
|
3165
3177
|
]),
|
|
3166
|
-
t.question.hasCellText ? (i(!0), a(
|
|
3178
|
+
t.question.hasCellText ? (i(!0), a(H, { key: 0 }, V(t.question.visibleColumns, (L, h) => (i(), a("td", {
|
|
3167
3179
|
key: h,
|
|
3168
3180
|
class: r(t.question.getItemClass(d, L)),
|
|
3169
3181
|
onClick: (q) => o(d, L)
|
|
@@ -3172,8 +3184,8 @@ const yn = /* @__PURE__ */ y({
|
|
|
3172
3184
|
is: "survey-string",
|
|
3173
3185
|
locString: t.question.getCellDisplayLocText(d.name, L)
|
|
3174
3186
|
}, null, 8, ["locString"])
|
|
3175
|
-
], 10,
|
|
3176
|
-
t.question.hasCellText ? p("", !0) : (i(!0), a(
|
|
3187
|
+
], 10, Pn))), 128)) : p("", !0),
|
|
3188
|
+
t.question.hasCellText ? p("", !0) : (i(!0), a(H, { key: 1 }, V(t.question.visibleColumns, (L, h) => (i(), a("td", {
|
|
3177
3189
|
key: h,
|
|
3178
3190
|
"data-responsive-title": L.locText.renderedHtml,
|
|
3179
3191
|
class: r(t.question.cssClasses.cell),
|
|
@@ -3186,14 +3198,14 @@ const yn = /* @__PURE__ */ y({
|
|
|
3186
3198
|
column: L,
|
|
3187
3199
|
columnIndex: h
|
|
3188
3200
|
}, null, 8, ["is", "question", "row", "column", "columnIndex"])
|
|
3189
|
-
], 10,
|
|
3201
|
+
], 10, Nn))), 128))
|
|
3190
3202
|
], 2))), 128))
|
|
3191
3203
|
])
|
|
3192
3204
|
], 2)
|
|
3193
3205
|
])
|
|
3194
3206
|
], 2));
|
|
3195
3207
|
}
|
|
3196
|
-
}),
|
|
3208
|
+
}), Wn = ["data-sv-drop-target-matrix-row"], Fn = /* @__PURE__ */ y({
|
|
3197
3209
|
__name: "MatrixRow",
|
|
3198
3210
|
props: {
|
|
3199
3211
|
question: {},
|
|
@@ -3208,7 +3220,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3208
3220
|
t && t.setRootElement(void 0), o.setRootElement(n.value);
|
|
3209
3221
|
}
|
|
3210
3222
|
);
|
|
3211
|
-
return
|
|
3223
|
+
return B(() => {
|
|
3212
3224
|
e.row.setRootElement(n.value);
|
|
3213
3225
|
}), P(() => {
|
|
3214
3226
|
e.row.setRootElement(void 0), s();
|
|
@@ -3220,15 +3232,15 @@ const yn = /* @__PURE__ */ y({
|
|
|
3220
3232
|
ref_key: "root",
|
|
3221
3233
|
ref: n
|
|
3222
3234
|
}, [
|
|
3223
|
-
(i(!0), a(
|
|
3235
|
+
(i(!0), a(H, null, V(o.row.cells, (l) => (i(), g(m, {
|
|
3224
3236
|
is: "survey-matrixdropdown-cell",
|
|
3225
3237
|
cell: l,
|
|
3226
3238
|
question: o.question,
|
|
3227
3239
|
key: o.row.id + "_" + l.id
|
|
3228
3240
|
}, null, 8, ["cell", "question"]))), 128))
|
|
3229
|
-
], 42,
|
|
3241
|
+
], 42, Wn)) : p("", !0);
|
|
3230
3242
|
}
|
|
3231
|
-
}),
|
|
3243
|
+
}), On = ["name", "value", "readonly", "disabled", "id", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], zn = ["xlink:href"], Un = /* @__PURE__ */ y({
|
|
3232
3244
|
inheritAttrs: !1,
|
|
3233
3245
|
__name: "MatrixCell",
|
|
3234
3246
|
props: {
|
|
@@ -3238,7 +3250,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3238
3250
|
columnIndex: {}
|
|
3239
3251
|
},
|
|
3240
3252
|
setup(u) {
|
|
3241
|
-
const e = u, n =
|
|
3253
|
+
const e = u, n = M({
|
|
3242
3254
|
get() {
|
|
3243
3255
|
return e.row.value ?? "";
|
|
3244
3256
|
},
|
|
@@ -3251,7 +3263,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3251
3263
|
onMousedown: o[1] || (o[1] = (t) => s.question.onMouseDown()),
|
|
3252
3264
|
class: r(s.question.getItemClass(s.row, s.column))
|
|
3253
3265
|
}, [
|
|
3254
|
-
|
|
3266
|
+
Z(v("input", {
|
|
3255
3267
|
type: "radio",
|
|
3256
3268
|
class: r(s.question.cssClasses.itemValue),
|
|
3257
3269
|
name: s.row.fullName,
|
|
@@ -3264,8 +3276,8 @@ const yn = /* @__PURE__ */ y({
|
|
|
3264
3276
|
"aria-label": s.question.getCellAriaLabel(s.row, s.column),
|
|
3265
3277
|
"aria-invalid": s.question.a11y_input_ariaInvalid,
|
|
3266
3278
|
"aria-errormessage": s.question.a11y_input_ariaErrormessage
|
|
3267
|
-
}, null, 10,
|
|
3268
|
-
[
|
|
3279
|
+
}, null, 10, On), [
|
|
3280
|
+
[ie, n.value]
|
|
3269
3281
|
]),
|
|
3270
3282
|
v("span", {
|
|
3271
3283
|
class: r(s.question.cssClasses.materialDecorator)
|
|
@@ -3276,7 +3288,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3276
3288
|
}, [
|
|
3277
3289
|
v("use", {
|
|
3278
3290
|
"xlink:href": s.question.itemSvgIcon
|
|
3279
|
-
}, null, 8,
|
|
3291
|
+
}, null, 8, zn)
|
|
3280
3292
|
], 2)) : p("", !0)
|
|
3281
3293
|
], 2),
|
|
3282
3294
|
s.question.isMobile ? (i(), a("span", {
|
|
@@ -3290,7 +3302,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3290
3302
|
], 2)) : p("", !0)
|
|
3291
3303
|
], 34));
|
|
3292
3304
|
}
|
|
3293
|
-
}),
|
|
3305
|
+
}), Qn = /* @__PURE__ */ y({
|
|
3294
3306
|
inheritAttrs: !1,
|
|
3295
3307
|
__name: "MatrixDropdown",
|
|
3296
3308
|
props: {
|
|
@@ -3305,13 +3317,13 @@ const yn = /* @__PURE__ */ y({
|
|
|
3305
3317
|
ref: n
|
|
3306
3318
|
}, null, 8, ["question"]));
|
|
3307
3319
|
}
|
|
3308
|
-
}),
|
|
3320
|
+
}), Kn = { key: 0 }, jn = { key: 1 }, Gn = /* @__PURE__ */ y({
|
|
3309
3321
|
__name: "MatrixTable",
|
|
3310
3322
|
props: {
|
|
3311
3323
|
question: {}
|
|
3312
3324
|
},
|
|
3313
3325
|
setup(u) {
|
|
3314
|
-
const e = u, n =
|
|
3326
|
+
const e = u, n = M(() => e.question.renderedTable);
|
|
3315
3327
|
return S(() => n.value), (s, o) => (i(), a("div", {
|
|
3316
3328
|
style: k({ overflowX: s.question.showHorizontalScroll ? "scroll" : "" }),
|
|
3317
3329
|
class: r(s.question.cssClasses.tableWrapper)
|
|
@@ -3319,9 +3331,9 @@ const yn = /* @__PURE__ */ y({
|
|
|
3319
3331
|
v("table", {
|
|
3320
3332
|
class: r(s.question.getTableCss())
|
|
3321
3333
|
}, [
|
|
3322
|
-
n.value.showHeader ? (i(), a("thead",
|
|
3334
|
+
n.value.showHeader ? (i(), a("thead", Kn, [
|
|
3323
3335
|
v("tr", null, [
|
|
3324
|
-
(i(!0), a(
|
|
3336
|
+
(i(!0), a(H, null, V(n.value.headerRow.cells, (t) => (i(), a(H, null, [
|
|
3325
3337
|
t.hasTitle ? (i(), a("th", {
|
|
3326
3338
|
key: "header_" + t.id,
|
|
3327
3339
|
class: r(t.className),
|
|
@@ -3355,16 +3367,16 @@ const yn = /* @__PURE__ */ y({
|
|
|
3355
3367
|
])
|
|
3356
3368
|
])) : p("", !0),
|
|
3357
3369
|
v("tbody", null, [
|
|
3358
|
-
(i(!0), a(
|
|
3370
|
+
(i(!0), a(H, null, V(n.value.renderedRows, (t) => (i(), g(m, {
|
|
3359
3371
|
key: s.question.inputId + "_" + t.id,
|
|
3360
3372
|
is: "survey-matrix-row",
|
|
3361
3373
|
row: t,
|
|
3362
3374
|
question: s.question
|
|
3363
3375
|
}, null, 8, ["row", "question"]))), 128))
|
|
3364
3376
|
]),
|
|
3365
|
-
n.value.showFooter ? (i(), a("tfoot",
|
|
3377
|
+
n.value.showFooter ? (i(), a("tfoot", jn, [
|
|
3366
3378
|
v("tr", null, [
|
|
3367
|
-
(i(!0), a(
|
|
3379
|
+
(i(!0), a(H, null, V(n.value.footerRow.cells, (t, l) => (i(), g(m, {
|
|
3368
3380
|
is: "survey-matrixdropdown-cell",
|
|
3369
3381
|
cell: t,
|
|
3370
3382
|
question: s.question,
|
|
@@ -3375,7 +3387,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3375
3387
|
], 2)
|
|
3376
3388
|
], 6));
|
|
3377
3389
|
}
|
|
3378
|
-
}),
|
|
3390
|
+
}), Xn = /* @__PURE__ */ v("span", null, " ", -1), Jn = /* @__PURE__ */ y({
|
|
3379
3391
|
__name: "MatrixHeaderRequired",
|
|
3380
3392
|
props: {
|
|
3381
3393
|
question: {},
|
|
@@ -3383,15 +3395,15 @@ const yn = /* @__PURE__ */ y({
|
|
|
3383
3395
|
},
|
|
3384
3396
|
setup(u) {
|
|
3385
3397
|
const e = u;
|
|
3386
|
-
return S(() => e.column), (n, s) => n.column.isRenderedRequired ? (i(), a(
|
|
3387
|
-
|
|
3398
|
+
return S(() => e.column), (n, s) => n.column.isRenderedRequired ? (i(), a(H, { key: 0 }, [
|
|
3399
|
+
Xn,
|
|
3388
3400
|
n.column.isRenderedRequired ? (i(), a("span", {
|
|
3389
3401
|
key: 0,
|
|
3390
3402
|
class: r(n.question.cssClasses.cellRequiredMark)
|
|
3391
3403
|
}, I(n.column.requiredMark), 3)) : p("", !0)
|
|
3392
3404
|
], 64)) : p("", !0);
|
|
3393
3405
|
}
|
|
3394
|
-
}),
|
|
3406
|
+
}), Yn = ["title", "colspan"], _n = /* @__PURE__ */ y({
|
|
3395
3407
|
__name: "MatrixDropdownCellComp",
|
|
3396
3408
|
props: {
|
|
3397
3409
|
question: {},
|
|
@@ -3401,7 +3413,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3401
3413
|
const e = u, n = f(!1), s = f(), o = () => e.cell.width || e.cell.minWidth ? { width: e.cell.width, minWidth: e.cell.minWidth } : null, t = () => e.cell.question.parentQuestion.getCellAriaLabel(e.cell.row, e.cell.column), l = () => {
|
|
3402
3414
|
!e.cell.hasQuestion || !e.question || !e.question.survey || (n.value = e.cell.question.isVisible);
|
|
3403
3415
|
}, d = (h) => re(h);
|
|
3404
|
-
l(),
|
|
3416
|
+
l(), B(() => {
|
|
3405
3417
|
if (!e.cell.hasQuestion || !e.question || !e.question.survey)
|
|
3406
3418
|
return;
|
|
3407
3419
|
e.cell.question.registerPropertyChangedHandlers(["isVisible"], () => {
|
|
@@ -3416,7 +3428,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3416
3428
|
};
|
|
3417
3429
|
e.question.survey.matrixAfterCellRender(b), q && q.afterRenderCore(h);
|
|
3418
3430
|
});
|
|
3419
|
-
const C =
|
|
3431
|
+
const C = M(() => {
|
|
3420
3432
|
const h = e.cell;
|
|
3421
3433
|
if (h.hasPanel) {
|
|
3422
3434
|
const q = h.panel, b = q.survey;
|
|
@@ -3427,7 +3439,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3427
3439
|
}
|
|
3428
3440
|
return "survey-panel";
|
|
3429
3441
|
}
|
|
3430
|
-
}), L =
|
|
3442
|
+
}), L = M(() => {
|
|
3431
3443
|
if (e.cell.hasPanel) {
|
|
3432
3444
|
const q = e.cell.panel, b = q.survey;
|
|
3433
3445
|
let R;
|
|
@@ -3485,7 +3497,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3485
3497
|
question: h.cell.matrix
|
|
3486
3498
|
}, null, 8, ["column", "question"])
|
|
3487
3499
|
], 2)) : p("", !0),
|
|
3488
|
-
h.cell.hasQuestion ?
|
|
3500
|
+
h.cell.hasQuestion ? Z((i(), a("div", {
|
|
3489
3501
|
key: 5,
|
|
3490
3502
|
class: r(h.cell.cellQuestionWrapperClassName)
|
|
3491
3503
|
}, [
|
|
@@ -3535,8 +3547,9 @@ const yn = /* @__PURE__ */ y({
|
|
|
3535
3547
|
h.cell.isOtherChoice ? (i(), g(m, {
|
|
3536
3548
|
key: 3,
|
|
3537
3549
|
is: "survey-other-choice",
|
|
3538
|
-
question: h.cell.question
|
|
3539
|
-
|
|
3550
|
+
question: h.cell.question,
|
|
3551
|
+
item: h.cell.question.otherItem
|
|
3552
|
+
}, null, 8, ["question", "item"])) : p("", !0)
|
|
3540
3553
|
], 2)), [
|
|
3541
3554
|
[A, n.value]
|
|
3542
3555
|
]) : p("", !0),
|
|
@@ -3558,9 +3571,9 @@ const yn = /* @__PURE__ */ y({
|
|
|
3558
3571
|
]),
|
|
3559
3572
|
_: 1
|
|
3560
3573
|
}, 8, ["is", "componentData"])) : p("", !0)
|
|
3561
|
-
], 46,
|
|
3574
|
+
], 46, Yn)) : p("", !0);
|
|
3562
3575
|
}
|
|
3563
|
-
}),
|
|
3576
|
+
}), xn = /* @__PURE__ */ y({
|
|
3564
3577
|
inheritAttrs: !1,
|
|
3565
3578
|
__name: "MatrixDynamic",
|
|
3566
3579
|
props: {
|
|
@@ -3623,7 +3636,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3623
3636
|
], 2)) : p("", !0)
|
|
3624
3637
|
], 512));
|
|
3625
3638
|
}
|
|
3626
|
-
}),
|
|
3639
|
+
}), et = /* @__PURE__ */ y({
|
|
3627
3640
|
__name: "MatrixDynamicPlaceholder",
|
|
3628
3641
|
props: {
|
|
3629
3642
|
question: {}
|
|
@@ -3662,11 +3675,11 @@ const yn = /* @__PURE__ */ y({
|
|
|
3662
3675
|
});
|
|
3663
3676
|
function le(u, e = !0) {
|
|
3664
3677
|
return {
|
|
3665
|
-
question:
|
|
3666
|
-
row: e ?
|
|
3678
|
+
question: M(() => u.item.data.question),
|
|
3679
|
+
row: e ? M(() => u.item.data.row) : void 0
|
|
3667
3680
|
};
|
|
3668
3681
|
}
|
|
3669
|
-
const
|
|
3682
|
+
const st = ["disabled"], nt = /* @__PURE__ */ y({
|
|
3670
3683
|
__name: "RemoveButton",
|
|
3671
3684
|
props: {
|
|
3672
3685
|
item: {}
|
|
@@ -3686,9 +3699,9 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3686
3699
|
v("span", {
|
|
3687
3700
|
class: r(w(n).cssClasses.iconRemove)
|
|
3688
3701
|
}, null, 2)
|
|
3689
|
-
], 10,
|
|
3702
|
+
], 10, st));
|
|
3690
3703
|
}
|
|
3691
|
-
}),
|
|
3704
|
+
}), tt = ["xlink:href"], ot = /* @__PURE__ */ y({
|
|
3692
3705
|
__name: "DragDropIcon",
|
|
3693
3706
|
props: {
|
|
3694
3707
|
item: {}
|
|
@@ -3702,14 +3715,14 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3702
3715
|
}, [
|
|
3703
3716
|
v("use", {
|
|
3704
3717
|
"xlink:href": w(n).iconDragElement
|
|
3705
|
-
}, null, 8,
|
|
3718
|
+
}, null, 8, tt)
|
|
3706
3719
|
], 2)) : (i(), a("span", {
|
|
3707
3720
|
key: 1,
|
|
3708
3721
|
class: r(w(n).cssClasses.iconDrag)
|
|
3709
3722
|
}, null, 2))
|
|
3710
3723
|
]));
|
|
3711
3724
|
}
|
|
3712
|
-
}),
|
|
3725
|
+
}), it = ["title", "aria-expanded", "aria-controls"], rt = /* @__PURE__ */ y({
|
|
3713
3726
|
__name: "DetailButton",
|
|
3714
3727
|
props: {
|
|
3715
3728
|
item: {}
|
|
@@ -3730,9 +3743,9 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3730
3743
|
iconName: w(n).getDetailPanelIconId(w(s)),
|
|
3731
3744
|
size: "auto"
|
|
3732
3745
|
}, null, 8, ["class", "iconName"])
|
|
3733
|
-
], 10,
|
|
3746
|
+
], 10, it));
|
|
3734
3747
|
}
|
|
3735
|
-
}),
|
|
3748
|
+
}), lt = ["aria-label"], at = /* @__PURE__ */ y({
|
|
3736
3749
|
inheritAttrs: !1,
|
|
3737
3750
|
__name: "PanelDynamic",
|
|
3738
3751
|
props: {
|
|
@@ -3807,12 +3820,12 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3807
3820
|
style: k({ width: l.question.progress }),
|
|
3808
3821
|
role: "progressbar",
|
|
3809
3822
|
"aria-label": l.question.progressBarAriaLabel
|
|
3810
|
-
}, null, 14,
|
|
3823
|
+
}, null, 14, lt)
|
|
3811
3824
|
], 2)) : p("", !0),
|
|
3812
3825
|
v("div", {
|
|
3813
3826
|
class: r(l.question.cssClasses.panelsContainer)
|
|
3814
3827
|
}, [
|
|
3815
|
-
(i(!0), a(
|
|
3828
|
+
(i(!0), a(H, null, V(l.question.renderedPanels, (C, L) => (i(), a(H, {
|
|
3816
3829
|
key: C.id
|
|
3817
3830
|
}, [
|
|
3818
3831
|
v("div", {
|
|
@@ -3840,7 +3853,7 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3840
3853
|
}, null, 8, ["question"])) : p("", !0)
|
|
3841
3854
|
], 2));
|
|
3842
3855
|
}
|
|
3843
|
-
}),
|
|
3856
|
+
}), ut = ["aria-label"], dt = /* @__PURE__ */ y({
|
|
3844
3857
|
__name: "PanelDynamicProgress",
|
|
3845
3858
|
props: {
|
|
3846
3859
|
question: {}
|
|
@@ -3870,7 +3883,7 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3870
3883
|
style: k({ width: s.question.progress }),
|
|
3871
3884
|
role: "progressbar",
|
|
3872
3885
|
"aria-label": s.question.progressBarAriaLabel
|
|
3873
|
-
}, null, 14,
|
|
3886
|
+
}, null, 14, ut)
|
|
3874
3887
|
], 2)) : p("", !0),
|
|
3875
3888
|
c(m, {
|
|
3876
3889
|
is: "sv-paneldynamic-next-btn",
|
|
@@ -3888,7 +3901,7 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3888
3901
|
], 2)
|
|
3889
3902
|
], 2));
|
|
3890
3903
|
}
|
|
3891
|
-
}),
|
|
3904
|
+
}), mt = ["aria-label"], pt = /* @__PURE__ */ y({
|
|
3892
3905
|
__name: "PanelDynamicProgressV2",
|
|
3893
3906
|
props: {
|
|
3894
3907
|
question: {}
|
|
@@ -3910,7 +3923,7 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3910
3923
|
style: k({ width: e.question.progress }),
|
|
3911
3924
|
role: "progressbar",
|
|
3912
3925
|
"aria-label": e.question.progressBarAriaLabel
|
|
3913
|
-
}, null, 14,
|
|
3926
|
+
}, null, 14, mt)
|
|
3914
3927
|
], 2)) : p("", !0),
|
|
3915
3928
|
e.question.showFooterToolbar ? (i(), a("div", {
|
|
3916
3929
|
key: 1,
|
|
@@ -3923,7 +3936,7 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3923
3936
|
], 2)) : p("", !0)
|
|
3924
3937
|
], 2)) : p("", !0);
|
|
3925
3938
|
}
|
|
3926
|
-
}),
|
|
3939
|
+
}), vt = /* @__PURE__ */ y({
|
|
3927
3940
|
__name: "PanelDynamicPlaceholder",
|
|
3928
3941
|
props: {
|
|
3929
3942
|
question: {}
|
|
@@ -3946,11 +3959,11 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3946
3959
|
}
|
|
3947
3960
|
});
|
|
3948
3961
|
function X(u) {
|
|
3949
|
-
return
|
|
3962
|
+
return M(
|
|
3950
3963
|
() => u.item && u.item.data.question || u.data.question
|
|
3951
3964
|
);
|
|
3952
3965
|
}
|
|
3953
|
-
const
|
|
3966
|
+
const Ct = ["id"], ct = /* @__PURE__ */ y({
|
|
3954
3967
|
__name: "PaneldynamicAddBtn",
|
|
3955
3968
|
props: {
|
|
3956
3969
|
item: {},
|
|
@@ -3975,9 +3988,9 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
3975
3988
|
locString: w(n).locAddPanelText
|
|
3976
3989
|
}, null, 8, ["locString"])
|
|
3977
3990
|
], 2)
|
|
3978
|
-
], 10,
|
|
3991
|
+
], 10, Ct)) : p("", !0);
|
|
3979
3992
|
}
|
|
3980
|
-
}),
|
|
3993
|
+
}), gt = ["title"], yt = /* @__PURE__ */ y({
|
|
3981
3994
|
__name: "PaneldynamicNextBtn",
|
|
3982
3995
|
props: {
|
|
3983
3996
|
item: {},
|
|
@@ -3997,9 +4010,9 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
3997
4010
|
iconName: w(n).cssClasses.progressBtnIcon,
|
|
3998
4011
|
size: "auto"
|
|
3999
4012
|
}, null, 8, ["iconName"])
|
|
4000
|
-
], 10,
|
|
4013
|
+
], 10, gt));
|
|
4001
4014
|
}
|
|
4002
|
-
}),
|
|
4015
|
+
}), ht = ["title"], qt = /* @__PURE__ */ y({
|
|
4003
4016
|
__name: "PaneldynamicPrevBtn",
|
|
4004
4017
|
props: {
|
|
4005
4018
|
item: {},
|
|
@@ -4019,16 +4032,16 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4019
4032
|
iconName: w(n).cssClasses.progressBtnIcon,
|
|
4020
4033
|
size: "auto"
|
|
4021
4034
|
}, null, 8, ["iconName"])
|
|
4022
|
-
], 10,
|
|
4035
|
+
], 10, ht));
|
|
4023
4036
|
}
|
|
4024
|
-
}),
|
|
4037
|
+
}), wt = ["id"], bt = /* @__PURE__ */ y({
|
|
4025
4038
|
__name: "PaneldynamicRemoveBtn",
|
|
4026
4039
|
props: {
|
|
4027
4040
|
item: {},
|
|
4028
4041
|
data: {}
|
|
4029
4042
|
},
|
|
4030
4043
|
setup(u) {
|
|
4031
|
-
const e = u, n = X(e), s =
|
|
4044
|
+
const e = u, n = X(e), s = M(
|
|
4032
4045
|
() => e.item && e.item.data.panel || e.data.panel
|
|
4033
4046
|
), o = (l) => n.value.getPanelRemoveButtonId(l), t = (l) => {
|
|
4034
4047
|
n.value.isInputReadOnly || n.value.removePanelUI(l);
|
|
@@ -4050,9 +4063,9 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4050
4063
|
v("span", {
|
|
4051
4064
|
class: r(w(n).cssClasses.iconRemove)
|
|
4052
4065
|
}, null, 2)
|
|
4053
|
-
], 10,
|
|
4066
|
+
], 10, wt));
|
|
4054
4067
|
}
|
|
4055
|
-
}),
|
|
4068
|
+
}), Lt = /* @__PURE__ */ y({
|
|
4056
4069
|
__name: "PaneldynamicProgressText",
|
|
4057
4070
|
props: {
|
|
4058
4071
|
item: {},
|
|
@@ -4064,7 +4077,7 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4064
4077
|
class: r(w(n).cssClasses.progressText)
|
|
4065
4078
|
}, I(w(n).progressText), 3));
|
|
4066
4079
|
}
|
|
4067
|
-
}),
|
|
4080
|
+
}), kt = ["id"], ft = /* @__PURE__ */ y({
|
|
4068
4081
|
__name: "Errors",
|
|
4069
4082
|
props: {
|
|
4070
4083
|
element: {},
|
|
@@ -4081,7 +4094,7 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4081
4094
|
ref_key: "root",
|
|
4082
4095
|
ref: e
|
|
4083
4096
|
}, [
|
|
4084
|
-
(i(!0), a(
|
|
4097
|
+
(i(!0), a(H, null, V(n.element.errors, (o, t) => (i(), g(m, {
|
|
4085
4098
|
is: n.element.survey.questionErrorComponent,
|
|
4086
4099
|
element: n.element,
|
|
4087
4100
|
key: "error_" + t,
|
|
@@ -4089,21 +4102,21 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4089
4102
|
error: o,
|
|
4090
4103
|
cssClasses: n.element.cssClasses
|
|
4091
4104
|
}, null, 8, ["is", "element", "errorKey", "error", "cssClasses"]))), 128))
|
|
4092
|
-
], 10,
|
|
4105
|
+
], 10, kt)) : p("", !0);
|
|
4093
4106
|
}
|
|
4094
|
-
}),
|
|
4107
|
+
}), Ht = { key: 0 }, Mt = /* @__PURE__ */ y({
|
|
4095
4108
|
__name: "QuestionComment",
|
|
4096
4109
|
props: {
|
|
4097
4110
|
question: {}
|
|
4098
4111
|
},
|
|
4099
4112
|
setup(u) {
|
|
4100
|
-
return (e, n) => e.question.isReadOnlyRenderDiv() ? (i(), a("div",
|
|
4113
|
+
return (e, n) => e.question.isReadOnlyRenderDiv() ? (i(), a("div", Ht, I(e.question.comment), 1)) : (i(), g(m, {
|
|
4101
4114
|
key: 1,
|
|
4102
4115
|
is: "sv-text-area",
|
|
4103
4116
|
model: e.question.commentTextAreaModel
|
|
4104
4117
|
}, null, 8, ["model"]));
|
|
4105
4118
|
}
|
|
4106
|
-
}),
|
|
4119
|
+
}), It = /* @__PURE__ */ y({
|
|
4107
4120
|
__name: "TitleElement",
|
|
4108
4121
|
props: {
|
|
4109
4122
|
element: {},
|
|
@@ -4156,7 +4169,7 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4156
4169
|
_: 1
|
|
4157
4170
|
}, 40, ["class", "aria-label", "id", "tabindex", "aria-expanded", "role"])) : p("", !0);
|
|
4158
4171
|
}
|
|
4159
|
-
}),
|
|
4172
|
+
}), Vt = { key: 2 }, St = { key: 4 }, Rt = { key: 6 }, Tt = { key: 8 }, Bt = /* @__PURE__ */ y({
|
|
4160
4173
|
inheritAttrs: !1,
|
|
4161
4174
|
__name: "TitleContent",
|
|
4162
4175
|
props: {
|
|
@@ -4164,7 +4177,7 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4164
4177
|
css: {}
|
|
4165
4178
|
},
|
|
4166
4179
|
setup(u) {
|
|
4167
|
-
return (e, n) => (i(), a(
|
|
4180
|
+
return (e, n) => (i(), a(H, null, [
|
|
4168
4181
|
e.element.isTitleRenderedAsString ? (i(), g(m, {
|
|
4169
4182
|
key: 0,
|
|
4170
4183
|
is: "survey-string",
|
|
@@ -4175,26 +4188,26 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4175
4188
|
class: r(e.element.cssRequiredMark),
|
|
4176
4189
|
"aria-hidden": !0
|
|
4177
4190
|
}, I(e.element.requiredMark), 3)) : p("", !0),
|
|
4178
|
-
!e.element.isTitleRenderedAsString && e.element.isRequireTextOnStart ? (i(), a("span",
|
|
4191
|
+
!e.element.isTitleRenderedAsString && e.element.isRequireTextOnStart ? (i(), a("span", Vt, " ")) : p("", !0),
|
|
4179
4192
|
!e.element.isTitleRenderedAsString && e.element.no ? (i(), a("span", {
|
|
4180
4193
|
key: 3,
|
|
4181
4194
|
style: { position: "static" },
|
|
4182
4195
|
class: r(e.element.cssTitleNumber),
|
|
4183
4196
|
"aria-hidden": !0
|
|
4184
4197
|
}, I(e.element.no), 3)) : p("", !0),
|
|
4185
|
-
!e.element.isTitleRenderedAsString && e.element.no ? (i(), a("span",
|
|
4198
|
+
!e.element.isTitleRenderedAsString && e.element.no ? (i(), a("span", St, " ")) : p("", !0),
|
|
4186
4199
|
!e.element.isTitleRenderedAsString && e.element.isRequireTextBeforeTitle ? (i(), a("span", {
|
|
4187
4200
|
key: 5,
|
|
4188
4201
|
class: r(e.element.cssRequiredMark),
|
|
4189
4202
|
"aria-hidden": !0
|
|
4190
4203
|
}, I(e.element.requiredMark), 3)) : p("", !0),
|
|
4191
|
-
!e.element.isTitleRenderedAsString && e.element.isRequireTextBeforeTitle ? (i(), a("span",
|
|
4204
|
+
!e.element.isTitleRenderedAsString && e.element.isRequireTextBeforeTitle ? (i(), a("span", Rt, " ")) : p("", !0),
|
|
4192
4205
|
e.element.isTitleRenderedAsString ? p("", !0) : (i(), g(m, {
|
|
4193
4206
|
key: 7,
|
|
4194
4207
|
is: "survey-string",
|
|
4195
4208
|
locString: e.element.locRenderedTitle
|
|
4196
4209
|
}, null, 8, ["locString"])),
|
|
4197
|
-
!e.element.isTitleRenderedAsString && e.element.isRequireTextAfterTitle ? (i(), a("span",
|
|
4210
|
+
!e.element.isTitleRenderedAsString && e.element.isRequireTextAfterTitle ? (i(), a("span", Tt, " ")) : p("", !0),
|
|
4198
4211
|
!e.element.isTitleRenderedAsString && e.element.isRequireTextAfterTitle ? (i(), a("span", {
|
|
4199
4212
|
key: 9,
|
|
4200
4213
|
class: r(e.element.cssRequiredMark),
|
|
@@ -4202,16 +4215,16 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4202
4215
|
}, I(e.element.requiredMark), 3)) : p("", !0)
|
|
4203
4216
|
], 64));
|
|
4204
4217
|
}
|
|
4205
|
-
}),
|
|
4218
|
+
}), Zt = { class: "sv-title-actions" }, $t = { class: "sv-title-actions__title" }, Dt = /* @__PURE__ */ y({
|
|
4206
4219
|
__name: "TitleActions",
|
|
4207
4220
|
props: {
|
|
4208
4221
|
element: {},
|
|
4209
4222
|
css: {}
|
|
4210
4223
|
},
|
|
4211
4224
|
setup(u) {
|
|
4212
|
-
const e = u, n =
|
|
4213
|
-
return (s, o) => (i(), a("div",
|
|
4214
|
-
v("span",
|
|
4225
|
+
const e = u, n = M(() => e.element.getTitleToolbar());
|
|
4226
|
+
return (s, o) => (i(), a("div", Zt, [
|
|
4227
|
+
v("span", $t, [
|
|
4215
4228
|
s.element.isPage ? (i(), g(m, {
|
|
4216
4229
|
key: 0,
|
|
4217
4230
|
is: "survey-string",
|
|
@@ -4230,20 +4243,20 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4230
4243
|
}, null, 8, ["model"])
|
|
4231
4244
|
]));
|
|
4232
4245
|
}
|
|
4233
|
-
}),
|
|
4246
|
+
}), At = (u, e) => {
|
|
4234
4247
|
const n = u.__vccOpts || u;
|
|
4235
4248
|
for (const [s, o] of e)
|
|
4236
4249
|
n[s] = o;
|
|
4237
4250
|
return n;
|
|
4238
|
-
},
|
|
4239
|
-
|
|
4251
|
+
}, Pt = {}, Nt = { class: "sv-brand-info" }, Et = /* @__PURE__ */ $e('<a class="sv-brand-info__logo" href="https://surveyjs.io/?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=landing_page"><img src="https://surveyjs.io/Content/Images/poweredby.svg"></a><div class="sv-brand-info__text"> Try and see how easy it is to <a href="https://surveyjs.io/create-survey?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=create_survey">create a survey</a></div><div class="sv-brand-info__terms"><a href="https://surveyjs.io/TermsOfUse">Terms of Use & Privacy Statement</a></div>', 3), Wt = [
|
|
4252
|
+
Et
|
|
4240
4253
|
];
|
|
4241
|
-
function
|
|
4242
|
-
return i(), a("div",
|
|
4254
|
+
function Ft(u, e) {
|
|
4255
|
+
return i(), a("div", Nt, Wt);
|
|
4243
4256
|
}
|
|
4244
|
-
const
|
|
4245
|
-
|
|
4246
|
-
],
|
|
4257
|
+
const Ot = /* @__PURE__ */ At(Pt, [["render", Ft]]), zt = /* @__PURE__ */ v("use", null, null, -1), Ut = [
|
|
4258
|
+
zt
|
|
4259
|
+
], Qt = /* @__PURE__ */ y({
|
|
4247
4260
|
__name: "SvgIcon",
|
|
4248
4261
|
props: {
|
|
4249
4262
|
size: {},
|
|
@@ -4265,16 +4278,16 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4265
4278
|
};
|
|
4266
4279
|
return z(() => {
|
|
4267
4280
|
s();
|
|
4268
|
-
}),
|
|
4281
|
+
}), B(() => {
|
|
4269
4282
|
s();
|
|
4270
4283
|
}), (o, t) => (i(), a("svg", {
|
|
4271
4284
|
ref_key: "svgIconElement",
|
|
4272
4285
|
ref: n,
|
|
4273
4286
|
class: "sv-svg-icon",
|
|
4274
4287
|
role: "presentation"
|
|
4275
|
-
},
|
|
4288
|
+
}, Ut, 512));
|
|
4276
4289
|
}
|
|
4277
|
-
}),
|
|
4290
|
+
}), Kt = /* @__PURE__ */ y({
|
|
4278
4291
|
__name: "QuestionError",
|
|
4279
4292
|
props: {
|
|
4280
4293
|
errorKey: {},
|
|
@@ -4302,7 +4315,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4302
4315
|
], 2)
|
|
4303
4316
|
]));
|
|
4304
4317
|
}
|
|
4305
|
-
}),
|
|
4318
|
+
}), jt = /* @__PURE__ */ y({
|
|
4306
4319
|
__name: "ActionBar",
|
|
4307
4320
|
props: {
|
|
4308
4321
|
model: {},
|
|
@@ -4316,13 +4329,13 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4316
4329
|
S(() => e.model, void 0, (l) => {
|
|
4317
4330
|
l.resetResponsivityManager();
|
|
4318
4331
|
});
|
|
4319
|
-
const o =
|
|
4332
|
+
const o = se(() => e.model.renderedActions);
|
|
4320
4333
|
function t() {
|
|
4321
4334
|
e.model.hasVisibleActions && e.model.initResponsivityManager(n.value);
|
|
4322
4335
|
}
|
|
4323
4336
|
return z(() => {
|
|
4324
4337
|
t();
|
|
4325
|
-
}),
|
|
4338
|
+
}), B(() => {
|
|
4326
4339
|
t();
|
|
4327
4340
|
}), (l, d) => l.model.hasActions ? (i(), a("div", {
|
|
4328
4341
|
key: 0,
|
|
@@ -4332,23 +4345,23 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4332
4345
|
class: r(l.model.getRootCss()),
|
|
4333
4346
|
onClick: s
|
|
4334
4347
|
}, [
|
|
4335
|
-
(i(!0), a(
|
|
4348
|
+
(i(!0), a(H, null, V(w(o), (C) => (i(), g(m, {
|
|
4336
4349
|
is: "sv-action",
|
|
4337
4350
|
key: C.renderedId,
|
|
4338
4351
|
item: C
|
|
4339
4352
|
}, null, 8, ["item"]))), 128))
|
|
4340
4353
|
], 6)) : p("", !0);
|
|
4341
4354
|
}
|
|
4342
|
-
}),
|
|
4355
|
+
}), Gt = ["id"], Xt = { class: "sv-action__content" }, Jt = /* @__PURE__ */ y({
|
|
4343
4356
|
__name: "Action",
|
|
4344
4357
|
props: {
|
|
4345
4358
|
item: {}
|
|
4346
4359
|
},
|
|
4347
4360
|
setup(u) {
|
|
4348
|
-
const e = f(), n = u, s =
|
|
4361
|
+
const e = f(), n = u, s = M(
|
|
4349
4362
|
() => n.item.component || "sv-action-bar-item"
|
|
4350
4363
|
);
|
|
4351
|
-
return S(() => n.item),
|
|
4364
|
+
return S(() => n.item), B(() => {
|
|
4352
4365
|
const o = n.item;
|
|
4353
4366
|
o.updateModeCallback = (t, l) => {
|
|
4354
4367
|
o.mode = t, ye(() => {
|
|
@@ -4364,7 +4377,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4364
4377
|
ref_key: "root",
|
|
4365
4378
|
ref: e
|
|
4366
4379
|
}, [
|
|
4367
|
-
v("div",
|
|
4380
|
+
v("div", Xt, [
|
|
4368
4381
|
o.item.needSeparator ? (i(), g(m, {
|
|
4369
4382
|
key: 0,
|
|
4370
4383
|
is: "sv-action-bar-separator"
|
|
@@ -4374,7 +4387,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4374
4387
|
item: o.item
|
|
4375
4388
|
}, null, 8, ["is", "item"])
|
|
4376
4389
|
])
|
|
4377
|
-
], 10,
|
|
4390
|
+
], 10, Gt));
|
|
4378
4391
|
}
|
|
4379
4392
|
}), Q = {
|
|
4380
4393
|
mounted: function(u, e) {
|
|
@@ -4394,17 +4407,17 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4394
4407
|
Ue(s);
|
|
4395
4408
|
});
|
|
4396
4409
|
}
|
|
4397
|
-
},
|
|
4410
|
+
}, Yt = ["disabled", "title", "aria-checked", "aria-expanded", "role"], _t = {
|
|
4398
4411
|
inheritAttrs: !1
|
|
4399
|
-
},
|
|
4400
|
-
...
|
|
4412
|
+
}, xt = /* @__PURE__ */ y({
|
|
4413
|
+
..._t,
|
|
4401
4414
|
__name: "ActionBarItem",
|
|
4402
4415
|
props: {
|
|
4403
4416
|
item: {}
|
|
4404
4417
|
},
|
|
4405
4418
|
setup(u) {
|
|
4406
4419
|
const e = u;
|
|
4407
|
-
return S(() => e.item), (n, s) =>
|
|
4420
|
+
return S(() => e.item), (n, s) => Z((i(), a("button", {
|
|
4408
4421
|
class: r(n.item.getActionBarItemCss()),
|
|
4409
4422
|
type: "button",
|
|
4410
4423
|
onClick: s[0] || (s[0] = (o) => {
|
|
@@ -4437,14 +4450,14 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4437
4450
|
key: 1,
|
|
4438
4451
|
class: r(n.item.getActionBarItemTitleCss())
|
|
4439
4452
|
}, I(n.item.title), 3)) : p("", !0)
|
|
4440
|
-
], 42,
|
|
4453
|
+
], 42, Yt)), [
|
|
4441
4454
|
[w(Q), { processEsc: !1, disableTabStop: n.item.disableTabStop }]
|
|
4442
4455
|
]);
|
|
4443
4456
|
}
|
|
4444
|
-
}),
|
|
4457
|
+
}), eo = ["disabled", "title", "role"], so = {
|
|
4445
4458
|
inheritAttrs: !1
|
|
4446
|
-
},
|
|
4447
|
-
...
|
|
4459
|
+
}, no = /* @__PURE__ */ y({
|
|
4460
|
+
...so,
|
|
4448
4461
|
__name: "ActionBarItemDropdown",
|
|
4449
4462
|
props: {
|
|
4450
4463
|
item: {}
|
|
@@ -4460,8 +4473,8 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4460
4473
|
() => {
|
|
4461
4474
|
n.dispose();
|
|
4462
4475
|
}
|
|
4463
|
-
), (s, o) => (i(), a(
|
|
4464
|
-
|
|
4476
|
+
), (s, o) => (i(), a(H, null, [
|
|
4477
|
+
Z((i(), a("button", {
|
|
4465
4478
|
type: "button",
|
|
4466
4479
|
class: r(s.item.getActionBarItemCss()),
|
|
4467
4480
|
onClick: o[0] || (o[0] = (t) => {
|
|
@@ -4486,7 +4499,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4486
4499
|
key: 1,
|
|
4487
4500
|
class: r(s.item.getActionBarItemTitleCss())
|
|
4488
4501
|
}, I(s.item.title), 3)) : p("", !0)
|
|
4489
|
-
], 42,
|
|
4502
|
+
], 42, eo)), [
|
|
4490
4503
|
[w(Q), { processEsc: !1, disableTabStop: s.item.disableTabStop }]
|
|
4491
4504
|
]),
|
|
4492
4505
|
c(m, {
|
|
@@ -4495,18 +4508,18 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4495
4508
|
}, null, 8, ["model"])
|
|
4496
4509
|
], 64));
|
|
4497
4510
|
}
|
|
4498
|
-
}),
|
|
4511
|
+
}), to = /* @__PURE__ */ y({
|
|
4499
4512
|
__name: "ActionBarSeparator",
|
|
4500
4513
|
props: {
|
|
4501
4514
|
item: {}
|
|
4502
4515
|
},
|
|
4503
4516
|
setup(u) {
|
|
4504
|
-
const e = u, n =
|
|
4517
|
+
const e = u, n = M(() => e.item && e.item.innerCss);
|
|
4505
4518
|
return (s, o) => (i(), a("div", {
|
|
4506
4519
|
class: r(["sv-action-bar-separator", n.value])
|
|
4507
4520
|
}, null, 2));
|
|
4508
4521
|
}
|
|
4509
|
-
}),
|
|
4522
|
+
}), oo = ["aria-label", "placeholder", "value"], io = ["aria-label"], ro = ["role", "aria-label", "id"], lo = /* @__PURE__ */ y({
|
|
4510
4523
|
__name: "List",
|
|
4511
4524
|
props: {
|
|
4512
4525
|
model: {}
|
|
@@ -4520,8 +4533,8 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4520
4533
|
C.filterString = d.target.value, e.model.goToItems(d);
|
|
4521
4534
|
}, t = (d) => {
|
|
4522
4535
|
e.model.onMouseMove(d);
|
|
4523
|
-
}, l =
|
|
4524
|
-
return S(() => e.model),
|
|
4536
|
+
}, l = se(() => e.model.renderedActions);
|
|
4537
|
+
return S(() => e.model), B(() => {
|
|
4525
4538
|
e.model.initListContainerHtmlElement(n.value);
|
|
4526
4539
|
}), P(() => {
|
|
4527
4540
|
e.model && (e.model.removeScrollEventListener(), e.model.initListContainerHtmlElement(void 0));
|
|
@@ -4551,7 +4564,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4551
4564
|
value: d.model.filterString,
|
|
4552
4565
|
onChange: s,
|
|
4553
4566
|
onKeyup: o
|
|
4554
|
-
}, null, 42,
|
|
4567
|
+
}, null, 42, oo),
|
|
4555
4568
|
d.model.showSearchClearButton && d.model.filterString ? (i(), a("button", {
|
|
4556
4569
|
key: 0,
|
|
4557
4570
|
onClick: C[0] || (C[0] = (L) => {
|
|
@@ -4566,17 +4579,17 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4566
4579
|
})
|
|
4567
4580
|
], 2)) : p("", !0)
|
|
4568
4581
|
], 2)) : p("", !0),
|
|
4569
|
-
|
|
4582
|
+
Z(v("div", {
|
|
4570
4583
|
class: r(d.model.cssClasses.emptyContainer)
|
|
4571
4584
|
}, [
|
|
4572
4585
|
v("div", {
|
|
4573
4586
|
class: r(d.model.cssClasses.emptyText),
|
|
4574
4587
|
"aria-label": d.model.emptyMessage
|
|
4575
|
-
}, I(d.model.emptyMessage), 11,
|
|
4588
|
+
}, I(d.model.emptyMessage), 11, io)
|
|
4576
4589
|
], 2), [
|
|
4577
4590
|
[A, d.model.isEmpty]
|
|
4578
4591
|
]),
|
|
4579
|
-
d.model.renderElements ?
|
|
4592
|
+
d.model.renderElements ? Z((i(), a("ul", {
|
|
4580
4593
|
key: 1,
|
|
4581
4594
|
class: r(d.model.getListClass()),
|
|
4582
4595
|
role: d.model.listRole,
|
|
@@ -4590,36 +4603,36 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4590
4603
|
d.model.onKeyDown(L);
|
|
4591
4604
|
})
|
|
4592
4605
|
}, [
|
|
4593
|
-
(i(!0), a(
|
|
4606
|
+
(i(!0), a(H, null, V(w(l), (L) => (i(), g(m, {
|
|
4594
4607
|
is: "sv-list-item",
|
|
4595
4608
|
item: L,
|
|
4596
4609
|
model: d.model,
|
|
4597
4610
|
key: L.id
|
|
4598
4611
|
}, null, 8, ["item", "model"]))), 128))
|
|
4599
|
-
], 42,
|
|
4612
|
+
], 42, ro)), [
|
|
4600
4613
|
[A, !d.model.isEmpty]
|
|
4601
4614
|
]) : p("", !0)
|
|
4602
4615
|
], 2));
|
|
4603
4616
|
}
|
|
4604
|
-
}),
|
|
4617
|
+
}), ao = ["role", "aria-selected", "aria-checked", "id", "tabindex"], uo = ["title"], mo = /* @__PURE__ */ y({
|
|
4605
4618
|
__name: "ListItem",
|
|
4606
4619
|
props: {
|
|
4607
4620
|
model: {},
|
|
4608
4621
|
item: {}
|
|
4609
4622
|
},
|
|
4610
4623
|
setup(u) {
|
|
4611
|
-
const e = u, n =
|
|
4624
|
+
const e = u, n = M(() => e.item.elementId), s = (t) => {
|
|
4612
4625
|
e.model.onItemClick(e.item), t.stopPropagation();
|
|
4613
4626
|
};
|
|
4614
4627
|
S(() => e.item);
|
|
4615
|
-
const o =
|
|
4628
|
+
const o = M(
|
|
4616
4629
|
() => e.item.component || e.model.itemComponent
|
|
4617
4630
|
);
|
|
4618
|
-
return
|
|
4631
|
+
return B(() => {
|
|
4619
4632
|
setTimeout(() => {
|
|
4620
4633
|
e.model.onLastItemRended(e.item);
|
|
4621
4634
|
});
|
|
4622
|
-
}), (t, l) =>
|
|
4635
|
+
}), (t, l) => Z((i(), a("li", {
|
|
4623
4636
|
role: t.model.listItemRole,
|
|
4624
4637
|
"aria-selected": t.model.getA11yItemAriaSelected(t.item),
|
|
4625
4638
|
"aria-checked": t.model.getA11yItemAriaChecked(t.item),
|
|
@@ -4646,13 +4659,13 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4646
4659
|
item: t.item,
|
|
4647
4660
|
model: t.model
|
|
4648
4661
|
}, null, 8, ["is", "item", "model"])
|
|
4649
|
-
], 46,
|
|
4650
|
-
], 42,
|
|
4662
|
+
], 46, uo)
|
|
4663
|
+
], 42, ao)), [
|
|
4651
4664
|
[A, t.model.isItemVisible(t.item)],
|
|
4652
4665
|
[w(Q), { processEsc: !1, disableTabStop: t.item.disableTabStop }]
|
|
4653
4666
|
]);
|
|
4654
4667
|
}
|
|
4655
|
-
}),
|
|
4668
|
+
}), po = /* @__PURE__ */ y({
|
|
4656
4669
|
__name: "ListItemContent",
|
|
4657
4670
|
props: {
|
|
4658
4671
|
model: {},
|
|
@@ -4660,7 +4673,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4660
4673
|
},
|
|
4661
4674
|
setup(u) {
|
|
4662
4675
|
const e = u;
|
|
4663
|
-
return S(() => e.item), (n, s) => (i(), a(
|
|
4676
|
+
return S(() => e.item), (n, s) => (i(), a(H, null, [
|
|
4664
4677
|
n.item.iconName ? (i(), g(m, {
|
|
4665
4678
|
key: 0,
|
|
4666
4679
|
is: "sv-svg-icon",
|
|
@@ -4681,7 +4694,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4681
4694
|
}, null, 8, ["class", "iconName"])) : p("", !0)
|
|
4682
4695
|
], 64));
|
|
4683
4696
|
}
|
|
4684
|
-
}),
|
|
4697
|
+
}), vo = /* @__PURE__ */ y({
|
|
4685
4698
|
__name: "ListItemGroup",
|
|
4686
4699
|
props: {
|
|
4687
4700
|
model: {},
|
|
@@ -4689,7 +4702,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4689
4702
|
},
|
|
4690
4703
|
setup(u) {
|
|
4691
4704
|
const e = u;
|
|
4692
|
-
return S(() => e.item), (n, s) => (i(), a(
|
|
4705
|
+
return S(() => e.item), (n, s) => (i(), a(H, null, [
|
|
4693
4706
|
c(m, {
|
|
4694
4707
|
is: "sv-list-item-content",
|
|
4695
4708
|
item: n.item,
|
|
@@ -4701,7 +4714,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4701
4714
|
}, null, 8, ["model"])
|
|
4702
4715
|
], 64));
|
|
4703
4716
|
}
|
|
4704
|
-
}),
|
|
4717
|
+
}), Co = /* @__PURE__ */ y({
|
|
4705
4718
|
__name: "Popup",
|
|
4706
4719
|
props: {
|
|
4707
4720
|
model: {}
|
|
@@ -4717,7 +4730,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4717
4730
|
n.value && n.value.dispose(), n.value = Ke(t), o();
|
|
4718
4731
|
},
|
|
4719
4732
|
{ immediate: !0 }
|
|
4720
|
-
), S(() => n.value),
|
|
4733
|
+
), S(() => n.value), B(() => {
|
|
4721
4734
|
o();
|
|
4722
4735
|
}), P(() => {
|
|
4723
4736
|
n.value.dispose();
|
|
@@ -4731,13 +4744,13 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4731
4744
|
}, null, 8, ["model"])
|
|
4732
4745
|
], 512));
|
|
4733
4746
|
}
|
|
4734
|
-
}),
|
|
4747
|
+
}), co = { class: "sv-popup__body-content" }, go = {
|
|
4735
4748
|
key: 0,
|
|
4736
4749
|
class: "sv-popup__body-header"
|
|
4737
|
-
},
|
|
4750
|
+
}, yo = { class: "sv-popup__scrolling-content" }, ho = { class: "sv-popup__content" }, qo = {
|
|
4738
4751
|
key: 1,
|
|
4739
4752
|
class: "sv-popup__body-footer"
|
|
4740
|
-
},
|
|
4753
|
+
}, wo = /* @__PURE__ */ y({
|
|
4741
4754
|
__name: "PopupContainer",
|
|
4742
4755
|
props: {
|
|
4743
4756
|
model: {}
|
|
@@ -4749,9 +4762,9 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4749
4762
|
return S(() => e.model), z(() => {
|
|
4750
4763
|
const s = e.model;
|
|
4751
4764
|
s.isVisible && !s.isPositionSet && e.model.updateOnShowing();
|
|
4752
|
-
}),
|
|
4765
|
+
}), B(() => {
|
|
4753
4766
|
e.model.isVisible && e.model.updateOnShowing();
|
|
4754
|
-
}), (s, o) =>
|
|
4767
|
+
}), (s, o) => Z((i(), a("div", {
|
|
4755
4768
|
tabindex: "-1",
|
|
4756
4769
|
class: r(["sv-popup", s.model.styleClass]),
|
|
4757
4770
|
onKeydown: o[0] || (o[0] = (t) => {
|
|
@@ -4777,16 +4790,16 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4777
4790
|
is: s.model.popupHeaderTemplate,
|
|
4778
4791
|
model: s.model
|
|
4779
4792
|
}, null, 8, ["is", "model"])) : p("", !0),
|
|
4780
|
-
v("div",
|
|
4781
|
-
s.model.title ? (i(), a("div",
|
|
4782
|
-
v("div",
|
|
4783
|
-
v("div",
|
|
4793
|
+
v("div", co, [
|
|
4794
|
+
s.model.title ? (i(), a("div", go, I(s.model.title), 1)) : p("", !0),
|
|
4795
|
+
v("div", yo, [
|
|
4796
|
+
v("div", ho, [
|
|
4784
4797
|
c(m, $({
|
|
4785
4798
|
is: s.model.contentComponentName
|
|
4786
4799
|
}, s.model.contentComponentData), null, 16, ["is"])
|
|
4787
4800
|
])
|
|
4788
4801
|
]),
|
|
4789
|
-
s.model.showFooter ? (i(), a("div",
|
|
4802
|
+
s.model.showFooter ? (i(), a("div", qo, [
|
|
4790
4803
|
c(m, {
|
|
4791
4804
|
is: "sv-action-bar",
|
|
4792
4805
|
model: s.model.footerToolbar
|
|
@@ -4798,7 +4811,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4798
4811
|
[A, s.model.isVisible]
|
|
4799
4812
|
]);
|
|
4800
4813
|
}
|
|
4801
|
-
}),
|
|
4814
|
+
}), bo = /* @__PURE__ */ y({
|
|
4802
4815
|
__name: "PopupPointer",
|
|
4803
4816
|
props: {
|
|
4804
4817
|
model: {}
|
|
@@ -4812,7 +4825,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4812
4825
|
})
|
|
4813
4826
|
}, null, 4));
|
|
4814
4827
|
}
|
|
4815
|
-
}),
|
|
4828
|
+
}), Lo = /* @__PURE__ */ y({
|
|
4816
4829
|
__name: "Container",
|
|
4817
4830
|
props: {
|
|
4818
4831
|
survey: {},
|
|
@@ -4820,22 +4833,22 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4820
4833
|
needRenderWrapper: {}
|
|
4821
4834
|
},
|
|
4822
4835
|
setup(u) {
|
|
4823
|
-
const e = u, n =
|
|
4836
|
+
const e = u, n = M(
|
|
4824
4837
|
() => e.survey.getContainerContent(e.container)
|
|
4825
4838
|
);
|
|
4826
|
-
return (s, o) => n.value.length > 0 ? (i(), a(
|
|
4839
|
+
return (s, o) => n.value.length > 0 ? (i(), a(H, { key: 0 }, [
|
|
4827
4840
|
s.needRenderWrapper ? (i(), a("div", {
|
|
4828
4841
|
key: 0,
|
|
4829
4842
|
class: r(["sv-components-column", "sv-components-container-" + s.container])
|
|
4830
4843
|
}, [
|
|
4831
|
-
(i(!0), a(
|
|
4844
|
+
(i(!0), a(H, null, V(n.value, (t) => (i(), g(m, {
|
|
4832
4845
|
key: t.id,
|
|
4833
4846
|
is: t.component,
|
|
4834
4847
|
survey: s.survey,
|
|
4835
4848
|
container: s.container,
|
|
4836
4849
|
model: t.data
|
|
4837
4850
|
}, null, 8, ["is", "survey", "container", "model"]))), 128))
|
|
4838
|
-
], 2)) : (i(!0), a(
|
|
4851
|
+
], 2)) : (i(!0), a(H, { key: 1 }, V(n.value, (t) => (i(), g(m, {
|
|
4839
4852
|
key: t.id,
|
|
4840
4853
|
is: t.component,
|
|
4841
4854
|
survey: s.survey,
|
|
@@ -4844,7 +4857,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4844
4857
|
}, null, 8, ["is", "survey", "container", "model"]))), 128))
|
|
4845
4858
|
], 64)) : p("", !0);
|
|
4846
4859
|
}
|
|
4847
|
-
}),
|
|
4860
|
+
}), ko = ["aria-label"], Y = /* @__PURE__ */ y({
|
|
4848
4861
|
__name: "Progress",
|
|
4849
4862
|
props: {
|
|
4850
4863
|
survey: {},
|
|
@@ -4852,7 +4865,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4852
4865
|
css: {}
|
|
4853
4866
|
},
|
|
4854
4867
|
setup(u) {
|
|
4855
|
-
const e = u, n =
|
|
4868
|
+
const e = u, n = M(() => e.survey.progressValue + "%"), s = (t) => pe.getProgressTextInBarCss(t), o = (t) => pe.getProgressTextUnderBarCss(t);
|
|
4856
4869
|
return (t, l) => (i(), a("div", {
|
|
4857
4870
|
class: r(t.survey.getProgressCssClasses(t.container))
|
|
4858
4871
|
}, [
|
|
@@ -4867,13 +4880,13 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4867
4880
|
v("span", {
|
|
4868
4881
|
class: r(s(t.survey.css))
|
|
4869
4882
|
}, I(t.survey.progressText), 3)
|
|
4870
|
-
], 14,
|
|
4883
|
+
], 14, ko),
|
|
4871
4884
|
v("span", {
|
|
4872
4885
|
class: r(o(t.survey.css))
|
|
4873
4886
|
}, I(t.survey.progressText), 3)
|
|
4874
4887
|
], 2));
|
|
4875
4888
|
}
|
|
4876
|
-
}),
|
|
4889
|
+
}), fo = ["aria-label"], Ho = ["title"], Mo = ["onClick", "data-page-number"], Io = ["title"], Vo = ["title"], So = ["title"], Ro = /* @__PURE__ */ y({
|
|
4877
4890
|
__name: "ProgressButtons",
|
|
4878
4891
|
props: {
|
|
4879
4892
|
survey: {},
|
|
@@ -4881,13 +4894,13 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4881
4894
|
container: {}
|
|
4882
4895
|
},
|
|
4883
4896
|
setup(u) {
|
|
4884
|
-
const e = u, n = f(!1), s = f(!1), o = f(!1), t = f(!0), l = f(), d =
|
|
4897
|
+
const e = u, n = f(!1), s = f(!1), o = f(!1), t = f(!0), l = f(), d = M(() => e.survey.css);
|
|
4885
4898
|
let C = null;
|
|
4886
4899
|
const L = (h) => {
|
|
4887
4900
|
let q = l.value;
|
|
4888
4901
|
q.scrollLeft += (h ? -1 : 1) * 70;
|
|
4889
4902
|
};
|
|
4890
|
-
return
|
|
4903
|
+
return B(() => {
|
|
4891
4904
|
const h = l.value;
|
|
4892
4905
|
C = new je(e.model, h, {
|
|
4893
4906
|
onResize: (q) => {
|
|
@@ -4899,7 +4912,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4899
4912
|
onUpdateSettings: () => {
|
|
4900
4913
|
t.value = e.model.showItemTitles, o.value = !e.model.showItemTitles;
|
|
4901
4914
|
},
|
|
4902
|
-
container:
|
|
4915
|
+
container: M(() => e.container)
|
|
4903
4916
|
});
|
|
4904
4917
|
}), O(() => {
|
|
4905
4918
|
C.dispose();
|
|
@@ -4918,7 +4931,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4918
4931
|
v("div", {
|
|
4919
4932
|
class: r(h.survey.css.progressButtonsPageTitle),
|
|
4920
4933
|
title: h.model.headerText
|
|
4921
|
-
}, I(h.model.headerText), 11,
|
|
4934
|
+
}, I(h.model.headerText), 11, Ho)
|
|
4922
4935
|
], 2)) : p("", !0),
|
|
4923
4936
|
v("div", {
|
|
4924
4937
|
class: r(d.value.progressButtonsContainer)
|
|
@@ -4936,7 +4949,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4936
4949
|
v("ul", {
|
|
4937
4950
|
class: r(d.value.progressButtonsList)
|
|
4938
4951
|
}, [
|
|
4939
|
-
(i(!0), a(
|
|
4952
|
+
(i(!0), a(H, null, V(h.survey.visiblePages, (b, R) => (i(), a("li", {
|
|
4940
4953
|
key: "listelement" + R,
|
|
4941
4954
|
class: r(h.model.getListElementCss(R)),
|
|
4942
4955
|
onClick: (N) => h.model.isListElementClickable(R) ? h.model.clickListElement(b) : null,
|
|
@@ -4954,12 +4967,12 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4954
4967
|
is: "survey-string",
|
|
4955
4968
|
locString: b.locNavigationTitle
|
|
4956
4969
|
}, null, 8, ["locString"])
|
|
4957
|
-
], 10,
|
|
4970
|
+
], 10, Io)) : p("", !0),
|
|
4958
4971
|
t.value ? (i(), a("div", {
|
|
4959
4972
|
key: 1,
|
|
4960
4973
|
class: r(d.value.progressButtonsPageDescription),
|
|
4961
4974
|
title: b.locNavigationDescription.renderedHtml
|
|
4962
|
-
}, I(b.locNavigationDescription.renderedHtml), 11,
|
|
4975
|
+
}, I(b.locNavigationDescription.renderedHtml), 11, Vo)) : p("", !0),
|
|
4963
4976
|
v("div", {
|
|
4964
4977
|
class: r(d.value.progressButtonsButton)
|
|
4965
4978
|
}, [
|
|
@@ -4971,7 +4984,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4971
4984
|
}, null, 2),
|
|
4972
4985
|
v("span", null, I(h.model.getItemNumber(b)), 1)
|
|
4973
4986
|
], 2)
|
|
4974
|
-
], 10,
|
|
4987
|
+
], 10, Mo))), 128))
|
|
4975
4988
|
], 2)
|
|
4976
4989
|
], 2),
|
|
4977
4990
|
v("div", {
|
|
@@ -4987,11 +5000,11 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4987
5000
|
v("div", {
|
|
4988
5001
|
class: r(h.survey.css.progressButtonsPageTitle),
|
|
4989
5002
|
title: h.model.footerText
|
|
4990
|
-
}, I(h.model.footerText), 11,
|
|
5003
|
+
}, I(h.model.footerText), 11, So)
|
|
4991
5004
|
], 2)) : p("", !0)
|
|
4992
|
-
], 14,
|
|
5005
|
+
], 14, fo));
|
|
4993
5006
|
}
|
|
4994
|
-
}),
|
|
5007
|
+
}), To = /* @__PURE__ */ y({
|
|
4995
5008
|
__name: "ProgressToc",
|
|
4996
5009
|
props: {
|
|
4997
5010
|
survey: {},
|
|
@@ -4999,12 +5012,12 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4999
5012
|
},
|
|
5000
5013
|
setup(u) {
|
|
5001
5014
|
const e = u;
|
|
5002
|
-
return
|
|
5015
|
+
return B(() => {
|
|
5003
5016
|
e.model.updateStickyTOCSize(e.survey.rootElement);
|
|
5004
5017
|
}), (n, s) => (i(), a("div", {
|
|
5005
5018
|
class: r(n.model.containerCss)
|
|
5006
5019
|
}, [
|
|
5007
|
-
n.model.isMobile ?
|
|
5020
|
+
n.model.isMobile ? Z((i(), a("div", {
|
|
5008
5021
|
key: 0,
|
|
5009
5022
|
onClick: s[0] || (s[0] = //@ts-ignore
|
|
5010
5023
|
(...o) => n.model.togglePopup && n.model.togglePopup(...o))
|
|
@@ -5029,11 +5042,11 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
5029
5042
|
}
|
|
5030
5043
|
});
|
|
5031
5044
|
/*!
|
|
5032
|
-
* surveyjs - Survey JavaScript library v2.2.
|
|
5045
|
+
* surveyjs - Survey JavaScript library v2.2.6
|
|
5033
5046
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
5034
5047
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5035
5048
|
*/
|
|
5036
|
-
var
|
|
5049
|
+
var Bo = {
|
|
5037
5050
|
modernbooleancheckchecked: '<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><polygon points="19,10 14,10 14,5 10,5 10,10 5,10 5,14 10,14 10,19 14,19 14,14 19,14 "></polygon></svg>',
|
|
5038
5051
|
modernbooleancheckind: '<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M22,0H2C0.9,0,0,0.9,0,2v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V2C24,0.9,23.1,0,22,0z M21,18L6,3h15V18z M3,6l15,15H3V6z"></path></svg>',
|
|
5039
5052
|
modernbooleancheckunchecked: '<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><rect x="5" y="10" width="14" height="4"></rect></svg>',
|
|
@@ -5097,7 +5110,7 @@ var To = {
|
|
|
5097
5110
|
"smiley-rate9-24x24": '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z"></path></svg>'
|
|
5098
5111
|
};
|
|
5099
5112
|
/*!
|
|
5100
|
-
* surveyjs - Survey JavaScript library v2.2.
|
|
5113
|
+
* surveyjs - Survey JavaScript library v2.2.6
|
|
5101
5114
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
5102
5115
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5103
5116
|
*/
|
|
@@ -5164,11 +5177,11 @@ var ke = {
|
|
|
5164
5177
|
"smiley-rate8-24x24": '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85721 24 1.15412 20.96 0.0134987 14.16C-0.0765501 13.62 0.293651 13.1 0.833944 13.01C1.38424 12.92 1.89452 13.29 1.98457 13.83C2.92508 19.47 7.69767 21.99 12 21.99C16.3023 21.99 21.0749 19.47 22.0154 13.83C22.1055 13.29 22.6158 12.92 23.1661 13.01C23.7063 13.1 24.0765 13.62 23.9865 14.16C22.8559 20.95 17.1428 24 11.99 24H12.01ZM8.00783 6V2C8.00783 1.45 7.55759 1 7.00729 1C6.45699 1 6.00675 1.45 6.00675 2V6C6.00675 6.55 6.45699 7 7.00729 7C7.55759 7 8.00783 6.55 8.00783 6ZM18.0133 6V2C18.0133 1.45 17.563 1 17.0127 1C16.4624 1 16.0122 1.45 16.0122 2V6C16.0122 6.55 16.4624 7 17.0127 7C17.563 7 18.0133 6.55 18.0133 6Z"></path></svg>',
|
|
5165
5178
|
"smiley-rate9-24x24": '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z"></path></svg>'
|
|
5166
5179
|
};
|
|
5167
|
-
const
|
|
5180
|
+
const Zo = ["lang", "dir"], $o = { onsubmit: "return false;" }, Do = {
|
|
5168
5181
|
key: 0,
|
|
5169
5182
|
class: "sv_custom_header"
|
|
5170
|
-
},
|
|
5171
|
-
we("v1",
|
|
5183
|
+
}, Ao = { class: "sv-components-column sv-components-column--expandable" }, Po = ["id"], No = { key: 2 }, Eo = ["innerHTML"], Wo = ["innerHTML"], Fo = ["innerHTML"];
|
|
5184
|
+
we("v1", Bo);
|
|
5172
5185
|
we("v2", ke);
|
|
5173
5186
|
_.registerIcons(ke);
|
|
5174
5187
|
const ae = /* @__PURE__ */ y({
|
|
@@ -5178,15 +5191,15 @@ const ae = /* @__PURE__ */ y({
|
|
|
5178
5191
|
survey: {}
|
|
5179
5192
|
},
|
|
5180
5193
|
setup(u) {
|
|
5181
|
-
const e = u, n = f(), s = f(""), o = f(1), t =
|
|
5194
|
+
const e = u, n = f(), s = f(""), o = f(1), t = M(() => {
|
|
5182
5195
|
const R = e.survey ? e.survey : e.model;
|
|
5183
5196
|
return De(R);
|
|
5184
|
-
}), l =
|
|
5197
|
+
}), l = M(() => t.value.activePage ? t.value.activePage.id : ""), d = () => {
|
|
5185
5198
|
const R = l.value;
|
|
5186
5199
|
return !!t.value && R + o.value.toString();
|
|
5187
|
-
}, C =
|
|
5200
|
+
}, C = M(
|
|
5188
5201
|
() => t.value.showCompletedPage && t.value.state === "completed"
|
|
5189
|
-
), L =
|
|
5202
|
+
), L = M(() => t.value.css), h = M(() => "page" + d()), q = () => C.value ? (s.value || (s.value = t.value.processedCompletedHtml), s.value) : "", b = (R) => {
|
|
5190
5203
|
if (R) {
|
|
5191
5204
|
var N = n.value;
|
|
5192
5205
|
N && R.afterRenderSurvey(N), R.renderCallback = () => {
|
|
@@ -5203,7 +5216,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5203
5216
|
(R) => {
|
|
5204
5217
|
R.stopTimer(), R.renderCallback = void 0;
|
|
5205
5218
|
}
|
|
5206
|
-
),
|
|
5219
|
+
), B(() => {
|
|
5207
5220
|
b(t.value);
|
|
5208
5221
|
}), P(() => {
|
|
5209
5222
|
t.value.stopTimer(), t.value.beforeDestroySurveyElement(), t.value.renderCallback = void 0;
|
|
@@ -5233,13 +5246,13 @@ const ae = /* @__PURE__ */ y({
|
|
|
5233
5246
|
class: r(L.value.rootBackgroundImage),
|
|
5234
5247
|
style: k(t.value.backgroundImageStyle)
|
|
5235
5248
|
}, null, 6)) : p("", !0),
|
|
5236
|
-
v("form",
|
|
5249
|
+
v("form", $o, [
|
|
5237
5250
|
c(m, {
|
|
5238
5251
|
is: "sv-scroll",
|
|
5239
5252
|
disabled: t.value.formScrollDisabled
|
|
5240
5253
|
}, {
|
|
5241
5254
|
default: D(() => [
|
|
5242
|
-
t.value.hasLogo ? p("", !0) : (i(), a("div",
|
|
5255
|
+
t.value.hasLogo ? p("", !0) : (i(), a("div", Do)),
|
|
5243
5256
|
v("div", {
|
|
5244
5257
|
class: r(L.value.container)
|
|
5245
5258
|
}, [
|
|
@@ -5264,7 +5277,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5264
5277
|
container: "left",
|
|
5265
5278
|
needRenderWrapper: !0
|
|
5266
5279
|
}, null, 8, ["survey"]),
|
|
5267
|
-
v("div",
|
|
5280
|
+
v("div", Ao, [
|
|
5268
5281
|
c(m, {
|
|
5269
5282
|
is: "sv-components-container",
|
|
5270
5283
|
survey: t.value,
|
|
@@ -5299,7 +5312,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5299
5312
|
key: 0,
|
|
5300
5313
|
is: "sv-brand-info"
|
|
5301
5314
|
})) : p("", !0)
|
|
5302
|
-
], 14,
|
|
5315
|
+
], 14, Po)
|
|
5303
5316
|
]),
|
|
5304
5317
|
c(m, {
|
|
5305
5318
|
is: "sv-components-container",
|
|
@@ -5314,11 +5327,11 @@ const ae = /* @__PURE__ */ y({
|
|
|
5314
5327
|
container: "footer",
|
|
5315
5328
|
needRenderWrapper: !1
|
|
5316
5329
|
}, null, 8, ["survey"]),
|
|
5317
|
-
C.value ? (i(), a("div",
|
|
5330
|
+
C.value ? (i(), a("div", No, [
|
|
5318
5331
|
v("div", {
|
|
5319
5332
|
innerHTML: q(),
|
|
5320
5333
|
class: r(t.value.completedCss)
|
|
5321
|
-
}, null, 10,
|
|
5334
|
+
}, null, 10, Eo),
|
|
5322
5335
|
c(m, {
|
|
5323
5336
|
is: "sv-components-container",
|
|
5324
5337
|
survey: t.value,
|
|
@@ -5330,12 +5343,12 @@ const ae = /* @__PURE__ */ y({
|
|
|
5330
5343
|
key: 3,
|
|
5331
5344
|
class: r(t.value.completedBeforeCss),
|
|
5332
5345
|
innerHTML: t.value.processedCompletedBeforeHtml
|
|
5333
|
-
}, null, 10,
|
|
5346
|
+
}, null, 10, Wo)) : p("", !0),
|
|
5334
5347
|
t.value.state === "loading" ? (i(), a("div", {
|
|
5335
5348
|
key: 4,
|
|
5336
5349
|
class: r(t.value.loadingBodyCss),
|
|
5337
5350
|
innerHTML: t.value.processedLoadingHtml
|
|
5338
|
-
}, null, 10,
|
|
5351
|
+
}, null, 10, Fo)) : p("", !0),
|
|
5339
5352
|
t.value.state === "empty" ? (i(), a("div", {
|
|
5340
5353
|
key: 5,
|
|
5341
5354
|
class: r(L.value.bodyEmpty)
|
|
@@ -5353,9 +5366,9 @@ const ae = /* @__PURE__ */ y({
|
|
|
5353
5366
|
]),
|
|
5354
5367
|
_: 1
|
|
5355
5368
|
}, 8, ["disabled"])
|
|
5356
|
-
], 14,
|
|
5369
|
+
], 14, Zo));
|
|
5357
5370
|
}
|
|
5358
|
-
}),
|
|
5371
|
+
}), Oo = /* @__PURE__ */ y({
|
|
5359
5372
|
__name: "Notifier",
|
|
5360
5373
|
props: {
|
|
5361
5374
|
model: {}
|
|
@@ -5376,23 +5389,24 @@ const ae = /* @__PURE__ */ y({
|
|
|
5376
5389
|
}, null, 8, ["model"])
|
|
5377
5390
|
], 6)) : p("", !0);
|
|
5378
5391
|
}
|
|
5379
|
-
}),
|
|
5392
|
+
}), zo = { key: 0 }, Uo = /* @__PURE__ */ y({
|
|
5380
5393
|
__name: "QuestionOther",
|
|
5381
5394
|
props: {
|
|
5382
|
-
question: {}
|
|
5395
|
+
question: {},
|
|
5396
|
+
item: {}
|
|
5383
5397
|
},
|
|
5384
5398
|
setup(u) {
|
|
5385
5399
|
return (e, n) => (i(), a("div", {
|
|
5386
5400
|
class: r(e.question.getCommentAreaCss(!0))
|
|
5387
5401
|
}, [
|
|
5388
|
-
e.question.isReadOnlyRenderDiv() ? (i(), a("div",
|
|
5402
|
+
e.question.isReadOnlyRenderDiv() ? (i(), a("div", zo, I(e.question.getCommentValue(e.item)), 1)) : (i(), g(m, {
|
|
5389
5403
|
key: 1,
|
|
5390
5404
|
is: "sv-text-area",
|
|
5391
|
-
model: e.question.
|
|
5405
|
+
model: e.question.getCommentTextAreaModel(e.item)
|
|
5392
5406
|
}, null, 8, ["model"]))
|
|
5393
5407
|
], 2));
|
|
5394
5408
|
}
|
|
5395
|
-
}),
|
|
5409
|
+
}), Qo = ["disabled", "value", "title"], Ko = /* @__PURE__ */ y({
|
|
5396
5410
|
__name: "SurveyNavigationButton",
|
|
5397
5411
|
props: {
|
|
5398
5412
|
item: {}
|
|
@@ -5409,7 +5423,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5409
5423
|
onMousedown: n,
|
|
5410
5424
|
onClick: o[0] || (o[0] = //@ts-ignore
|
|
5411
5425
|
(...t) => s.item.action && s.item.action(...t))
|
|
5412
|
-
}, null, 42,
|
|
5426
|
+
}, null, 42, Qo)) : p("", !0);
|
|
5413
5427
|
}
|
|
5414
5428
|
}), fe = /* @__PURE__ */ y({
|
|
5415
5429
|
__name: "PopupSurvey",
|
|
@@ -5525,19 +5539,19 @@ const ae = /* @__PURE__ */ y({
|
|
|
5525
5539
|
], 2)
|
|
5526
5540
|
], 38)) : p("", !0);
|
|
5527
5541
|
}
|
|
5528
|
-
}),
|
|
5542
|
+
}), jo = ["innerHTML"], Go = /* @__PURE__ */ y({
|
|
5529
5543
|
__name: "CustomWidget",
|
|
5530
5544
|
props: {
|
|
5531
5545
|
question: {},
|
|
5532
5546
|
css: {}
|
|
5533
5547
|
},
|
|
5534
5548
|
setup(u) {
|
|
5535
|
-
const e = u, n = f(), s =
|
|
5549
|
+
const e = u, n = f(), s = M(
|
|
5536
5550
|
() => e.question.customWidget.isDefaultRender
|
|
5537
|
-
), o =
|
|
5551
|
+
), o = M(
|
|
5538
5552
|
() => !!e.question.customWidget.htmlTemplate
|
|
5539
|
-
), t =
|
|
5540
|
-
return
|
|
5553
|
+
), t = M(() => e.question.customWidget.htmlTemplate), l = M(() => "survey-" + e.question.getTemplate());
|
|
5554
|
+
return B(() => {
|
|
5541
5555
|
e.question.customWidget.afterRender(e.question, n.value);
|
|
5542
5556
|
}), O(() => {
|
|
5543
5557
|
e.question.customWidget.willUnmount(e.question, n.value);
|
|
@@ -5548,7 +5562,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5548
5562
|
o.value ? (i(), a("div", {
|
|
5549
5563
|
key: 0,
|
|
5550
5564
|
innerHTML: t.value
|
|
5551
|
-
}, null, 8,
|
|
5565
|
+
}, null, 8, jo)) : p("", !0),
|
|
5552
5566
|
s.value ? (i(), g(m, {
|
|
5553
5567
|
key: 1,
|
|
5554
5568
|
is: l.value,
|
|
@@ -5557,7 +5571,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5557
5571
|
}, null, 8, ["is", "question", "css"])) : p("", !0)
|
|
5558
5572
|
], 512));
|
|
5559
5573
|
}
|
|
5560
|
-
}),
|
|
5574
|
+
}), Xo = /* @__PURE__ */ y({
|
|
5561
5575
|
__name: "PopupModal",
|
|
5562
5576
|
setup(u) {
|
|
5563
5577
|
const e = E();
|
|
@@ -5570,8 +5584,8 @@ const ae = /* @__PURE__ */ y({
|
|
|
5570
5584
|
};
|
|
5571
5585
|
return t.onVisibilityChanged.add(l), t.model.isVisible = !0, e.value = t, t;
|
|
5572
5586
|
}
|
|
5573
|
-
return
|
|
5574
|
-
|
|
5587
|
+
return ne.showDialog || (ne.showDialog = n, P(() => {
|
|
5588
|
+
ne.showDialog = void 0;
|
|
5575
5589
|
})), (s, o) => e.value ? (i(), g(Ae, {
|
|
5576
5590
|
key: 0,
|
|
5577
5591
|
to: e.value.container
|
|
@@ -5582,7 +5596,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5582
5596
|
}, null, 8, ["model"])
|
|
5583
5597
|
], 8, ["to"])) : p("", !0);
|
|
5584
5598
|
}
|
|
5585
|
-
}),
|
|
5599
|
+
}), Jo = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], Yo = /* @__PURE__ */ y({
|
|
5586
5600
|
__name: "TextArea",
|
|
5587
5601
|
props: {
|
|
5588
5602
|
model: {},
|
|
@@ -5593,8 +5607,8 @@ const ae = /* @__PURE__ */ y({
|
|
|
5593
5607
|
null
|
|
5594
5608
|
), s = function(t) {
|
|
5595
5609
|
n.value = t, e.getRef && e.getRef(t);
|
|
5596
|
-
}, o =
|
|
5597
|
-
return
|
|
5610
|
+
}, o = M(() => e.model.getTextValue() || "");
|
|
5611
|
+
return B(() => {
|
|
5598
5612
|
e.model.setElement(n.value);
|
|
5599
5613
|
}), z(() => {
|
|
5600
5614
|
e.model.setElement(n.value);
|
|
@@ -5633,9 +5647,9 @@ const ae = /* @__PURE__ */ y({
|
|
|
5633
5647
|
"aria-invalid": t.model.ariaInvalid,
|
|
5634
5648
|
"aria-errormessage": t.model.ariaErrormessage,
|
|
5635
5649
|
style: k({ resize: t.model.question.resizeStyle })
|
|
5636
|
-
}, null, 46,
|
|
5650
|
+
}, null, 46, Jo));
|
|
5637
5651
|
}
|
|
5638
|
-
}),
|
|
5652
|
+
}), _o = /* @__PURE__ */ y({
|
|
5639
5653
|
__name: "CharacterCounter",
|
|
5640
5654
|
props: {
|
|
5641
5655
|
counter: {},
|
|
@@ -5647,7 +5661,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5647
5661
|
class: r(n.remainingCharacterCounter)
|
|
5648
5662
|
}, I(n.counter.remainingCharacterCounter), 3));
|
|
5649
5663
|
}
|
|
5650
|
-
}),
|
|
5664
|
+
}), xo = /* @__PURE__ */ y({
|
|
5651
5665
|
inheritAttrs: !1,
|
|
5652
5666
|
__name: "Composite",
|
|
5653
5667
|
props: {
|
|
@@ -5657,7 +5671,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5657
5671
|
setup(u) {
|
|
5658
5672
|
const e = u, n = f(null);
|
|
5659
5673
|
T(e, n);
|
|
5660
|
-
const s =
|
|
5674
|
+
const s = M(() => e.question.contentPanel);
|
|
5661
5675
|
return (o, t) => (i(), g(m, {
|
|
5662
5676
|
is: "survey-panel",
|
|
5663
5677
|
ref_key: "root",
|
|
@@ -5666,7 +5680,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5666
5680
|
css: o.css
|
|
5667
5681
|
}, null, 8, ["element", "css"]));
|
|
5668
5682
|
}
|
|
5669
|
-
}),
|
|
5683
|
+
}), ei = /* @__PURE__ */ y({
|
|
5670
5684
|
inheritAttrs: !1,
|
|
5671
5685
|
__name: "Custom",
|
|
5672
5686
|
props: {
|
|
@@ -5676,7 +5690,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5676
5690
|
setup(u) {
|
|
5677
5691
|
const e = u, n = f(null);
|
|
5678
5692
|
T(e, n);
|
|
5679
|
-
const s =
|
|
5693
|
+
const s = M(() => e.question.contentQuestion), o = (t) => re(t);
|
|
5680
5694
|
return (t, l) => (i(), g(m, {
|
|
5681
5695
|
ref: n.value,
|
|
5682
5696
|
is: o(s.value),
|
|
@@ -5684,16 +5698,16 @@ const ae = /* @__PURE__ */ y({
|
|
|
5684
5698
|
css: t.css
|
|
5685
5699
|
}, null, 8, ["is", "question", "css"]));
|
|
5686
5700
|
}
|
|
5687
|
-
}),
|
|
5688
|
-
|
|
5689
|
-
], ce = 440,
|
|
5701
|
+
}), si = /* @__PURE__ */ v("use", { "xlink:href": "#icon-timercircle" }, null, -1), ni = [
|
|
5702
|
+
si
|
|
5703
|
+
], ce = 440, ti = /* @__PURE__ */ y({
|
|
5690
5704
|
__name: "TimerPanel",
|
|
5691
5705
|
props: {
|
|
5692
5706
|
model: {},
|
|
5693
5707
|
css: {}
|
|
5694
5708
|
},
|
|
5695
5709
|
setup(u) {
|
|
5696
|
-
const e = u, n =
|
|
5710
|
+
const e = u, n = M(() => ce * e.model.progress), s = M(() => e.model.text);
|
|
5697
5711
|
return S(() => e.model), (o, t) => o.model.isRunning && o.model.showTimerAsClock ? (i(), a("div", {
|
|
5698
5712
|
key: 0,
|
|
5699
5713
|
class: r(o.model.rootCss)
|
|
@@ -5702,7 +5716,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5702
5716
|
key: 0,
|
|
5703
5717
|
class: r(o.model.getProgressCss()),
|
|
5704
5718
|
style: k({ strokeDasharray: ce, strokeDashoffset: n.value })
|
|
5705
|
-
},
|
|
5719
|
+
}, ni, 6)) : p("", !0),
|
|
5706
5720
|
v("div", {
|
|
5707
5721
|
class: r(o.model.textContainerCss)
|
|
5708
5722
|
}, [
|
|
@@ -5714,17 +5728,17 @@ const ae = /* @__PURE__ */ y({
|
|
|
5714
5728
|
class: r(o.model.minorTextCss)
|
|
5715
5729
|
}, I(o.model.clockMinorText), 3)) : p("", !0)
|
|
5716
5730
|
], 2)
|
|
5717
|
-
], 2)) :
|
|
5731
|
+
], 2)) : Z((i(), a("div", {
|
|
5718
5732
|
key: 1,
|
|
5719
5733
|
class: r(o.model.survey.getCss().timerRoot)
|
|
5720
5734
|
}, I(s.value), 3)), [
|
|
5721
5735
|
[A, o.model.isRunning && !o.model.showTimerAsClock]
|
|
5722
5736
|
]);
|
|
5723
5737
|
}
|
|
5724
|
-
}),
|
|
5738
|
+
}), oi = { class: "sd-loading-indicator" }, ii = /* @__PURE__ */ y({
|
|
5725
5739
|
__name: "LoadingIndicator",
|
|
5726
5740
|
setup(u) {
|
|
5727
|
-
return (e, n) => (i(), a("div",
|
|
5741
|
+
return (e, n) => (i(), a("div", oi, [
|
|
5728
5742
|
c(m, {
|
|
5729
5743
|
is: "sv-svg-icon",
|
|
5730
5744
|
iconName: "icon-loading",
|
|
@@ -5732,7 +5746,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5732
5746
|
})
|
|
5733
5747
|
]));
|
|
5734
5748
|
}
|
|
5735
|
-
}),
|
|
5749
|
+
}), ri = { key: 2 }, li = /* @__PURE__ */ y({
|
|
5736
5750
|
__name: "Header",
|
|
5737
5751
|
props: {
|
|
5738
5752
|
model: {},
|
|
@@ -5743,7 +5757,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5743
5757
|
return S(() => {
|
|
5744
5758
|
const n = e.model;
|
|
5745
5759
|
return n.survey = e.survey, e.model;
|
|
5746
|
-
}),
|
|
5760
|
+
}), B(() => {
|
|
5747
5761
|
e.model.processResponsiveness();
|
|
5748
5762
|
}), z(() => {
|
|
5749
5763
|
e.model.processResponsiveness();
|
|
@@ -5762,13 +5776,13 @@ const ae = /* @__PURE__ */ y({
|
|
|
5762
5776
|
class: r(n.model.contentClasses),
|
|
5763
5777
|
style: k({ maxWidth: n.model.maxWidth })
|
|
5764
5778
|
}, [
|
|
5765
|
-
(i(!0), a(
|
|
5779
|
+
(i(!0), a(H, null, V(n.model.cells, (o, t) => (i(), g(m, {
|
|
5766
5780
|
is: "sv-header-cell",
|
|
5767
5781
|
model: o,
|
|
5768
5782
|
key: t
|
|
5769
5783
|
}, null, 8, ["model"]))), 128))
|
|
5770
5784
|
], 6)),
|
|
5771
|
-
n.survey.isMobile ? (i(), a("div",
|
|
5785
|
+
n.survey.isMobile ? (i(), a("div", ri, [
|
|
5772
5786
|
c(m, {
|
|
5773
5787
|
is: "sv-header-mobile",
|
|
5774
5788
|
model: n.model
|
|
@@ -5776,10 +5790,10 @@ const ae = /* @__PURE__ */ y({
|
|
|
5776
5790
|
])) : p("", !0)
|
|
5777
5791
|
], 6)) : p("", !0);
|
|
5778
5792
|
}
|
|
5779
|
-
}),
|
|
5793
|
+
}), ai = {
|
|
5780
5794
|
key: 0,
|
|
5781
5795
|
class: "sv-header__logo"
|
|
5782
|
-
},
|
|
5796
|
+
}, ui = ["src", "width", "height", "alt"], di = /* @__PURE__ */ y({
|
|
5783
5797
|
__name: "HeaderCell",
|
|
5784
5798
|
props: {
|
|
5785
5799
|
model: {}
|
|
@@ -5793,7 +5807,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5793
5807
|
class: "sv-header__cell-content",
|
|
5794
5808
|
style: k(e.model.contentStyle)
|
|
5795
5809
|
}, [
|
|
5796
|
-
e.model.showLogo ? (i(), a("div",
|
|
5810
|
+
e.model.showLogo ? (i(), a("div", ai, [
|
|
5797
5811
|
v("div", {
|
|
5798
5812
|
class: r(e.model.survey.logoClassNames)
|
|
5799
5813
|
}, [
|
|
@@ -5804,7 +5818,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5804
5818
|
height: e.model.survey.renderedLogoHeight,
|
|
5805
5819
|
alt: e.model.survey.locTitle.renderedHtml,
|
|
5806
5820
|
style: k({ objectFit: e.model.survey.logoFit, width: e.model.survey.renderedStyleLogoWidth, height: e.model.survey.renderedStyleLogoHeight })
|
|
5807
|
-
}, null, 14,
|
|
5821
|
+
}, null, 14, ui)
|
|
5808
5822
|
], 2)
|
|
5809
5823
|
])) : p("", !0),
|
|
5810
5824
|
e.model.showTitle ? (i(), a("div", {
|
|
@@ -5836,17 +5850,17 @@ const ae = /* @__PURE__ */ y({
|
|
|
5836
5850
|
], 4)
|
|
5837
5851
|
], 6));
|
|
5838
5852
|
}
|
|
5839
|
-
}),
|
|
5853
|
+
}), mi = { class: "sv-header--mobile" }, pi = {
|
|
5840
5854
|
key: 0,
|
|
5841
5855
|
class: "sv-header__logo"
|
|
5842
|
-
},
|
|
5856
|
+
}, vi = ["src", "width", "height", "alt"], Ci = /* @__PURE__ */ y({
|
|
5843
5857
|
__name: "HeaderMobile",
|
|
5844
5858
|
props: {
|
|
5845
5859
|
model: {}
|
|
5846
5860
|
},
|
|
5847
5861
|
setup(u) {
|
|
5848
|
-
return (e, n) => (i(), a("div",
|
|
5849
|
-
e.model.survey.hasLogo ? (i(), a("div",
|
|
5862
|
+
return (e, n) => (i(), a("div", mi, [
|
|
5863
|
+
e.model.survey.hasLogo ? (i(), a("div", pi, [
|
|
5850
5864
|
v("div", {
|
|
5851
5865
|
class: r(e.model.survey.logoClassNames)
|
|
5852
5866
|
}, [
|
|
@@ -5857,7 +5871,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5857
5871
|
height: e.model.survey.renderedLogoHeight,
|
|
5858
5872
|
alt: e.model.survey.locTitle.renderedHtml,
|
|
5859
5873
|
style: k({ objectFit: e.model.survey.logoFit, width: e.model.survey.renderedStyleLogoWidth, height: e.model.survey.renderedStyleLogoHeight })
|
|
5860
|
-
}, null, 14,
|
|
5874
|
+
}, null, 14, vi)
|
|
5861
5875
|
], 2)
|
|
5862
5876
|
])) : p("", !0),
|
|
5863
5877
|
e.model.survey.hasTitle ? (i(), a("div", {
|
|
@@ -5888,7 +5902,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5888
5902
|
], 4)) : p("", !0)
|
|
5889
5903
|
]));
|
|
5890
5904
|
}
|
|
5891
|
-
}),
|
|
5905
|
+
}), ci = /* @__PURE__ */ y({
|
|
5892
5906
|
__name: "Element",
|
|
5893
5907
|
props: {
|
|
5894
5908
|
element: {},
|
|
@@ -5896,7 +5910,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5896
5910
|
css: {}
|
|
5897
5911
|
},
|
|
5898
5912
|
setup(u) {
|
|
5899
|
-
const e = u, n = f(), s = (C) => C.isPanel ? "survey-panel" : "survey-question", o =
|
|
5913
|
+
const e = u, n = f(), s = (C) => C.isPanel ? "survey-panel" : "survey-question", o = M(() => {
|
|
5900
5914
|
const C = e.element.survey;
|
|
5901
5915
|
if (C) {
|
|
5902
5916
|
const L = C.getElementWrapperComponentName(e.element);
|
|
@@ -5904,7 +5918,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5904
5918
|
return L;
|
|
5905
5919
|
}
|
|
5906
5920
|
return s(e.element);
|
|
5907
|
-
}), t = (C) => C.cssClasses ? C.rootStyle : {}, l =
|
|
5921
|
+
}), t = (C) => C.cssClasses ? C.rootStyle : {}, l = M(() => {
|
|
5908
5922
|
const C = e.element, L = C.survey;
|
|
5909
5923
|
let h;
|
|
5910
5924
|
return L && (h = L.getElementWrapperComponentData(C)), {
|
|
@@ -5923,7 +5937,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5923
5937
|
L && L.setWrapperElement(void 0), C.setWrapperElement(n.value);
|
|
5924
5938
|
}
|
|
5925
5939
|
);
|
|
5926
|
-
return
|
|
5940
|
+
return B(() => {
|
|
5927
5941
|
e.element.setWrapperElement(n.value);
|
|
5928
5942
|
}), P(() => {
|
|
5929
5943
|
e.element.setWrapperElement(void 0), d();
|
|
@@ -5944,20 +5958,20 @@ const ae = /* @__PURE__ */ y({
|
|
|
5944
5958
|
}, null, 8, ["is", "element", "css"])) : p("", !0)
|
|
5945
5959
|
], 6));
|
|
5946
5960
|
}
|
|
5947
|
-
}),
|
|
5961
|
+
}), gi = /* @__PURE__ */ y({
|
|
5948
5962
|
__name: "TemplateRenderer",
|
|
5949
5963
|
props: {
|
|
5950
5964
|
componentName: {},
|
|
5951
5965
|
componentData: {}
|
|
5952
5966
|
},
|
|
5953
5967
|
setup(u) {
|
|
5954
|
-
const e = Pe(), n =
|
|
5968
|
+
const e = Pe(), n = M(() => !!e.default);
|
|
5955
5969
|
return (s, o) => n.value && !s.componentName ? x(s.$slots, "default", { key: 0 }) : (i(), g(m, $({
|
|
5956
5970
|
key: 1,
|
|
5957
5971
|
is: s.componentName
|
|
5958
5972
|
}, s.componentData), null, 16, ["is"]));
|
|
5959
5973
|
}
|
|
5960
|
-
}),
|
|
5974
|
+
}), yi = /* @__PURE__ */ y({
|
|
5961
5975
|
__name: "FileCleanButton",
|
|
5962
5976
|
props: {
|
|
5963
5977
|
question: {},
|
|
@@ -5980,7 +5994,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5980
5994
|
}, null, 8, ["iconName", "title"])) : p("", !0)
|
|
5981
5995
|
], 2));
|
|
5982
5996
|
}
|
|
5983
|
-
}),
|
|
5997
|
+
}), hi = ["id"], qi = /* @__PURE__ */ y({
|
|
5984
5998
|
__name: "FileVideo",
|
|
5985
5999
|
props: {
|
|
5986
6000
|
question: {}
|
|
@@ -6002,27 +6016,27 @@ const ae = /* @__PURE__ */ y({
|
|
|
6002
6016
|
playsinline: "",
|
|
6003
6017
|
id: e.question.videoId,
|
|
6004
6018
|
class: r(e.question.cssClasses.video)
|
|
6005
|
-
}, null, 10,
|
|
6019
|
+
}, null, 10, hi),
|
|
6006
6020
|
c(m, {
|
|
6007
6021
|
is: "sv-action",
|
|
6008
6022
|
item: e.question.takePictureAction
|
|
6009
6023
|
}, null, 8, ["item"])
|
|
6010
6024
|
], 2));
|
|
6011
6025
|
}
|
|
6012
|
-
}),
|
|
6026
|
+
}), wi = ["for", "aria-label"], bi = /* @__PURE__ */ y({
|
|
6013
6027
|
__name: "FileChooseButton",
|
|
6014
6028
|
props: {
|
|
6015
6029
|
data: {},
|
|
6016
6030
|
item: {}
|
|
6017
6031
|
},
|
|
6018
6032
|
setup(u) {
|
|
6019
|
-
const e = u, n =
|
|
6033
|
+
const e = u, n = M(
|
|
6020
6034
|
() => {
|
|
6021
6035
|
var s, o;
|
|
6022
6036
|
return ((s = e.data) == null ? void 0 : s.question) || ((o = e.item) == null ? void 0 : o.data.question);
|
|
6023
6037
|
}
|
|
6024
6038
|
);
|
|
6025
|
-
return (s, o) =>
|
|
6039
|
+
return (s, o) => Z((i(), a("label", {
|
|
6026
6040
|
tabindex: "0",
|
|
6027
6041
|
class: r(n.value.getChooseFileCss()),
|
|
6028
6042
|
for: n.value.inputId,
|
|
@@ -6037,11 +6051,11 @@ const ae = /* @__PURE__ */ y({
|
|
|
6037
6051
|
size: "auto"
|
|
6038
6052
|
}, null, 8, ["title", "iconName"])) : p("", !0),
|
|
6039
6053
|
v("span", null, I(n.value.chooseButtonText), 1)
|
|
6040
|
-
], 10,
|
|
6054
|
+
], 10, wi)), [
|
|
6041
6055
|
[w(Q)]
|
|
6042
6056
|
]);
|
|
6043
6057
|
}
|
|
6044
|
-
}),
|
|
6058
|
+
}), Li = /* @__PURE__ */ y({
|
|
6045
6059
|
__name: "FilePreview",
|
|
6046
6060
|
props: {
|
|
6047
6061
|
question: {}
|
|
@@ -6051,7 +6065,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
6051
6065
|
key: 0,
|
|
6052
6066
|
class: r(e.question.cssClasses.fileList || void 0)
|
|
6053
6067
|
}, [
|
|
6054
|
-
(i(!0), a(
|
|
6068
|
+
(i(!0), a(H, null, V(e.question.renderedPages, (s) => (i(), g(m, {
|
|
6055
6069
|
is: "sv-file-page",
|
|
6056
6070
|
key: s.id,
|
|
6057
6071
|
page: s,
|
|
@@ -6059,7 +6073,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
6059
6073
|
}, null, 8, ["page", "question"]))), 128))
|
|
6060
6074
|
], 2)) : p("", !0);
|
|
6061
6075
|
}
|
|
6062
|
-
}),
|
|
6076
|
+
}), ki = /* @__PURE__ */ y({
|
|
6063
6077
|
__name: "ButtonGroup",
|
|
6064
6078
|
props: {
|
|
6065
6079
|
question: {}
|
|
@@ -6072,7 +6086,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
6072
6086
|
ref_key: "root",
|
|
6073
6087
|
ref: n
|
|
6074
6088
|
}, [
|
|
6075
|
-
(i(!0), a(
|
|
6089
|
+
(i(!0), a(H, null, V(s.question.visibleChoices, (t, l) => (i(), g(m, {
|
|
6076
6090
|
is: "sv-button-group-item",
|
|
6077
6091
|
question: s.question,
|
|
6078
6092
|
key: l,
|
|
@@ -6081,7 +6095,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
6081
6095
|
}, null, 8, ["question", "item", "index"]))), 128))
|
|
6082
6096
|
], 2));
|
|
6083
6097
|
}
|
|
6084
|
-
}),
|
|
6098
|
+
}), fi = ["title"], Hi = ["name", "id", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "disabled", "value"], Mi = ["title"], Ii = /* @__PURE__ */ y({
|
|
6085
6099
|
__name: "ButtonGroupItem",
|
|
6086
6100
|
props: {
|
|
6087
6101
|
item: {},
|
|
@@ -6089,9 +6103,9 @@ const ae = /* @__PURE__ */ y({
|
|
|
6089
6103
|
index: {}
|
|
6090
6104
|
},
|
|
6091
6105
|
setup(u) {
|
|
6092
|
-
const e = u, n =
|
|
6106
|
+
const e = u, n = M(
|
|
6093
6107
|
() => new Je(e.question, e.item, e.index)
|
|
6094
|
-
), s =
|
|
6108
|
+
), s = M({
|
|
6095
6109
|
get: () => e.question.renderedValue,
|
|
6096
6110
|
set: (o) => {
|
|
6097
6111
|
const t = e.question;
|
|
@@ -6102,7 +6116,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
6102
6116
|
class: r(n.value.css.label),
|
|
6103
6117
|
title: n.value.caption.renderedHtml
|
|
6104
6118
|
}, [
|
|
6105
|
-
|
|
6119
|
+
Z(v("input", {
|
|
6106
6120
|
type: "radio",
|
|
6107
6121
|
name: n.value.name,
|
|
6108
6122
|
id: n.value.id,
|
|
@@ -6114,8 +6128,8 @@ const ae = /* @__PURE__ */ y({
|
|
|
6114
6128
|
class: r(n.value.css.control),
|
|
6115
6129
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => s.value = l),
|
|
6116
6130
|
value: n.value.value
|
|
6117
|
-
}, null, 10,
|
|
6118
|
-
[
|
|
6131
|
+
}, null, 10, Hi), [
|
|
6132
|
+
[ie, s.value]
|
|
6119
6133
|
]),
|
|
6120
6134
|
v("div", {
|
|
6121
6135
|
class: r(n.value.css.decorator)
|
|
@@ -6136,9 +6150,9 @@ const ae = /* @__PURE__ */ y({
|
|
|
6136
6150
|
is: "survey-string",
|
|
6137
6151
|
locString: n.value.caption
|
|
6138
6152
|
}, null, 8, ["locString"])
|
|
6139
|
-
], 10,
|
|
6153
|
+
], 10, Mi)) : p("", !0)
|
|
6140
6154
|
], 2)
|
|
6141
|
-
], 10,
|
|
6155
|
+
], 10, fi));
|
|
6142
6156
|
}
|
|
6143
6157
|
});
|
|
6144
6158
|
G.Instance.registerRenderer(
|
|
@@ -6146,7 +6160,7 @@ G.Instance.registerRenderer(
|
|
|
6146
6160
|
"dropdown",
|
|
6147
6161
|
"sv-buttongroup-dropdown"
|
|
6148
6162
|
);
|
|
6149
|
-
const
|
|
6163
|
+
const Vi = /* @__PURE__ */ y({
|
|
6150
6164
|
inheritAttrs: !1,
|
|
6151
6165
|
__name: "ButtonGroupDropdown",
|
|
6152
6166
|
props: {
|
|
@@ -6165,14 +6179,14 @@ const Ii = /* @__PURE__ */ y({
|
|
|
6165
6179
|
}, null, 8, ["question"])
|
|
6166
6180
|
], 2));
|
|
6167
6181
|
}
|
|
6168
|
-
}),
|
|
6182
|
+
}), Si = ["src", "width", "height", "alt"], Ri = /* @__PURE__ */ y({
|
|
6169
6183
|
inheritAttrs: !1,
|
|
6170
6184
|
__name: "Logo",
|
|
6171
6185
|
props: {
|
|
6172
6186
|
data: {}
|
|
6173
6187
|
},
|
|
6174
6188
|
setup(u) {
|
|
6175
|
-
const e = u, n =
|
|
6189
|
+
const e = u, n = M(() => e.data), s = U(() => n.value.locLogo);
|
|
6176
6190
|
return (o, t) => (i(), a("div", {
|
|
6177
6191
|
class: r(n.value.logoClassNames)
|
|
6178
6192
|
}, [
|
|
@@ -6187,20 +6201,20 @@ const Ii = /* @__PURE__ */ y({
|
|
|
6187
6201
|
width: n.value.renderedStyleLogoWidth,
|
|
6188
6202
|
height: n.value.renderedStyleLogoHeight
|
|
6189
6203
|
})
|
|
6190
|
-
}, null, 14,
|
|
6204
|
+
}, null, 14, Si)
|
|
6191
6205
|
], 2));
|
|
6192
6206
|
}
|
|
6193
|
-
}),
|
|
6207
|
+
}), Ti = /* @__PURE__ */ y({
|
|
6194
6208
|
__name: "SvgBundle",
|
|
6195
6209
|
setup(u) {
|
|
6196
6210
|
const e = f(), n = () => {
|
|
6197
6211
|
e.value && (e.value.innerHTML = _.iconsRenderedHtml());
|
|
6198
6212
|
};
|
|
6199
|
-
return
|
|
6213
|
+
return B(() => {
|
|
6200
6214
|
n(), _.onIconsChanged.add(n);
|
|
6201
6215
|
}), P(() => {
|
|
6202
6216
|
_.onIconsChanged.remove(n);
|
|
6203
|
-
}), (s, o) =>
|
|
6217
|
+
}), (s, o) => Z((i(), a("svg", {
|
|
6204
6218
|
id: "sv-icon-holder-global-container",
|
|
6205
6219
|
ref_key: "root",
|
|
6206
6220
|
ref: e
|
|
@@ -6208,7 +6222,7 @@ const Ii = /* @__PURE__ */ y({
|
|
|
6208
6222
|
[A, !1]
|
|
6209
6223
|
]);
|
|
6210
6224
|
}
|
|
6211
|
-
}),
|
|
6225
|
+
}), Bi = ["id"], Zi = /* @__PURE__ */ y({
|
|
6212
6226
|
__name: "FilePage",
|
|
6213
6227
|
props: {
|
|
6214
6228
|
page: {},
|
|
@@ -6220,22 +6234,22 @@ const Ii = /* @__PURE__ */ y({
|
|
|
6220
6234
|
class: r(n.page.css),
|
|
6221
6235
|
id: n.page.id
|
|
6222
6236
|
}, [
|
|
6223
|
-
(i(!0), a(
|
|
6237
|
+
(i(!0), a(H, null, V(n.page.items, (o) => (i(), g(m, {
|
|
6224
6238
|
is: "sv-file-item",
|
|
6225
6239
|
key: o,
|
|
6226
6240
|
item: o,
|
|
6227
6241
|
question: n.question
|
|
6228
6242
|
}, null, 8, ["item", "question"]))), 128))
|
|
6229
|
-
], 10,
|
|
6243
|
+
], 10, Bi));
|
|
6230
6244
|
}
|
|
6231
|
-
}),
|
|
6245
|
+
}), $i = ["href", "title", "download"], Di = ["src"], Ai = ["href", "title", "download"], Pi = /* @__PURE__ */ y({
|
|
6232
6246
|
__name: "FileItem",
|
|
6233
6247
|
props: {
|
|
6234
6248
|
item: {},
|
|
6235
6249
|
question: {}
|
|
6236
6250
|
},
|
|
6237
6251
|
setup(u) {
|
|
6238
|
-
return (e, n) =>
|
|
6252
|
+
return (e, n) => Z((i(), a("span", {
|
|
6239
6253
|
class: r(e.question.cssClasses.previewItem),
|
|
6240
6254
|
onClick: n[3] || (n[3] = (s) => e.question.doDownloadFileFromContainer(s))
|
|
6241
6255
|
}, [
|
|
@@ -6249,7 +6263,7 @@ const Ii = /* @__PURE__ */ y({
|
|
|
6249
6263
|
title: e.item.name,
|
|
6250
6264
|
download: e.item.name,
|
|
6251
6265
|
style: k({ width: e.question.imageWidth })
|
|
6252
|
-
}, I(e.item.name), 13,
|
|
6266
|
+
}, I(e.item.name), 13, $i)
|
|
6253
6267
|
], 2)) : p("", !0),
|
|
6254
6268
|
v("div", {
|
|
6255
6269
|
class: r(e.question.getImageWrapperCss(e.item))
|
|
@@ -6262,7 +6276,7 @@ const Ii = /* @__PURE__ */ y({
|
|
|
6262
6276
|
width: e.question.imageWidth
|
|
6263
6277
|
}),
|
|
6264
6278
|
alt: "File preview"
|
|
6265
|
-
}, null, 12,
|
|
6279
|
+
}, null, 12, Di)) : p("", !0),
|
|
6266
6280
|
e.question.defaultImage(e.item) ? (i(), g(m, {
|
|
6267
6281
|
key: 1,
|
|
6268
6282
|
is: "sv-svg-icon",
|
|
@@ -6298,7 +6312,7 @@ const Ii = /* @__PURE__ */ y({
|
|
|
6298
6312
|
title: e.item.name,
|
|
6299
6313
|
download: e.item.name,
|
|
6300
6314
|
style: k({ width: e.question.imageWidth })
|
|
6301
|
-
}, I(e.item.name), 13,
|
|
6315
|
+
}, I(e.item.name), 13, Ai)
|
|
6302
6316
|
], 2)) : p("", !0)
|
|
6303
6317
|
], 2)), [
|
|
6304
6318
|
[A, e.item]
|
|
@@ -6306,20 +6320,20 @@ const Ii = /* @__PURE__ */ y({
|
|
|
6306
6320
|
}
|
|
6307
6321
|
});
|
|
6308
6322
|
Ye.platform = "vue3";
|
|
6309
|
-
function
|
|
6323
|
+
function Ni(u, e, n) {
|
|
6310
6324
|
u(e, n);
|
|
6311
6325
|
}
|
|
6312
6326
|
function He(u) {
|
|
6313
|
-
const e =
|
|
6327
|
+
const e = Ni.bind(
|
|
6314
6328
|
void 0,
|
|
6315
6329
|
u
|
|
6316
6330
|
);
|
|
6317
|
-
e("sv-svg-bundle",
|
|
6331
|
+
e("sv-svg-bundle", Ti), e("popup-survey", fe), e("survey-header", ns), e("sv-logo-image", Ri), e("survey-page", ss), e("survey-row", ts), e("survey-question", as), e("survey-panel", ps), e("survey-element-header", Cs), e("survey-string", cs), e("sv-string-viewer", ys), e("sv-string-editor", qs), e("sv-skeleton", bs), e("sv-scroll", Hs), e("survey-text", Vs), e("survey-text-input", Ts), e("survey-checkbox", As), e("survey-checkbox-item", Es), e("survey-radiogroup", Ws), e("survey-radiogroup-item", zs), e("survey-signaturepad", js), e("survey-html", Xs), e("survey-image", xs), e("survey-expression", s1), e("survey-file", i1), e("sv-file-choose-btn", bi), e("sv-file-clean-btn", yi), e("sv-file-preview", Li), e("sv-file-page", Zi), e("sv-file-item", Pi), e("sv-file-video", qi), e("survey-imagepicker", l1), e("survey-imagepicker-item", p1), e("survey-comment", v1), e("survey-dropdown", C1), e("sv-dropdown-select", h1), e("sv-dropdown-option-item", w1), e("sv-dropdown", H1), e("survey-tagbox", M1), e("sv-tagbox", S1), e("sv-tagbox-item", $1), e("sv-tagbox-filter", B1), e("survey-ranking", D1), e("survey-ranking-item", F1), e("sv-ranking-item", O1), e("survey-rating", Q1), e("sv-rating-item", G1), e("sv-rating-item-smiley", Y1), e("sv-rating-item-star", en), e("sv-rating-dropdown", rn), e("sv-rating-dropdown-item", on), e("survey-boolean", an), e("sv-boolean-radio", un), e("sv-boolean-radio-item", pn), e("sv-boolean-checkbox", hn), e("survey-multipletext", qn), e("survey-multipletext-item", Ln), e("sv-breadcrumbs", kn), e("sv-single-input-summary", Vn), e("survey-slider", Tn), e("sv-slider-label-item", Bn), e("survey-matrix", En), e("survey-matrix-row", Fn), e("survey-matrix-cell", Un), e("survey-matrixdropdown", Qn), e("survey-matrixtable", Gn), e("survey-matrixheaderrequired", Jn), e("survey-matrixdropdown-cell", _n), e("survey-matrixdynamic", xn), e("survey-placeholder-matrixdynamic", et), e("sv-matrix-remove-button", nt), e("sv-matrix-drag-drop-icon", ot), e("sv-matrix-detail-button", rt), e("survey-paneldynamic", at), e("survey-paneldynamicprogress", dt), e("survey-paneldynamicprogress-v2", pt), e("survey-placeholder-paneldynamic", vt), e("sv-paneldynamic-add-btn", ct), e("sv-paneldynamic-next-btn", yt), e("sv-paneldynamic-prev-btn", qt), e("sv-paneldynamic-remove-btn", bt), e("sv-paneldynamic-progress-text", Lt), e("sv-components-container", Lo), e("sv-progress-buttons", Ro), e("sv-navigation-toc", To), e("sv-progress-pages", Y), e("sv-progress-questions", Y), e("sv-progress-correctquestions", Y), e("sv-progress-requiredquestions", Y), e("survey-errors", ft), e("survey-question-comment", Mt), e("survey-element-title", It), e("survey-element-title-content", Bt), e("sv-title-actions", Dt), e("sv-brand-info", Ot), e("sv-question-error", Kt), e("sv-svg-icon", Qt), e("sv-action-bar", jt), e("sv-action", Jt), e("sv-action-bar-item", xt), e("sv-action-bar-item-dropdown", no), e("sv-action-bar-separator", to), e("sv-list", lo), e("sv-list-item-content", po), e("sv-list-item-group", vo), e("sv-list-item", mo), e("sv-popup", Co), e("sv-popup-container", wo), e("popup-pointer", bo), e("sv-notifier", Oo), e("survey-other-choice", Uo), e("sv-nav-btn", Ko), e("survey-customwidget", Go), e("survey-popup-modal", Xo), e("survey-composite", xo), e("survey-custom", ei), e("sv-timerpanel", ti), e("sv-loading-indicator", ii), e("sv-header", li), e("sv-header-cell", di), e("sv-header-mobile", Ci), e("sv-template-renderer", gi), e("sv-character-counter", _o), e("sv-text-area", Yo), e("survey-element", ci), e("survey-buttongroup", ki), e("sv-button-group-item", Ii), e("sv-buttongroup-dropdown", Vi), e("survey", ae);
|
|
6318
6332
|
}
|
|
6319
6333
|
He(
|
|
6320
6334
|
(u, e) => F.Instance.registerComponent(u, e)
|
|
6321
6335
|
);
|
|
6322
|
-
const
|
|
6336
|
+
const Oi = {
|
|
6323
6337
|
install(u) {
|
|
6324
6338
|
u.component("SurveyComponent", ae), u.component("PopupSurveyComponent", fe), u.directive("key2click", Q), He((e, n) => {
|
|
6325
6339
|
u.component(e, n), F.Instance.registerComponent(e, e);
|
|
@@ -6332,9 +6346,9 @@ export {
|
|
|
6332
6346
|
ae as SurveyComponent,
|
|
6333
6347
|
m as SvComponent,
|
|
6334
6348
|
Q as key2ClickDirective,
|
|
6335
|
-
|
|
6349
|
+
Oi as surveyPlugin,
|
|
6336
6350
|
S as useBase,
|
|
6337
|
-
|
|
6351
|
+
se as useComputedArray,
|
|
6338
6352
|
U as useLocString,
|
|
6339
6353
|
T as useQuestion
|
|
6340
6354
|
};
|