survey-vue3-ui 2.2.5 → 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 +578 -563
- 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: {
|
|
@@ -2248,7 +2261,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2248
2261
|
"aria-invalid": o.question.a11y_input_ariaInvalid,
|
|
2249
2262
|
"aria-errormessage": o.question.a11y_input_ariaErrormessage
|
|
2250
2263
|
}, [
|
|
2251
|
-
|
|
2264
|
+
U1,
|
|
2252
2265
|
o.question.hasMinLabel ? (i(), a("span", {
|
|
2253
2266
|
key: 0,
|
|
2254
2267
|
class: r(o.question.cssClasses.minText)
|
|
@@ -2258,7 +2271,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2258
2271
|
locString: o.question.locMinRateDescription
|
|
2259
2272
|
}, null, 8, ["locString"])
|
|
2260
2273
|
], 2)) : p("", !0),
|
|
2261
|
-
(i(!0), a(
|
|
2274
|
+
(i(!0), a(H, null, V(o.question.renderedRateItems, (l, d) => (i(), g(m, {
|
|
2262
2275
|
key: s(d),
|
|
2263
2276
|
is: o.question.itemComponent,
|
|
2264
2277
|
item: l,
|
|
@@ -2274,10 +2287,10 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2274
2287
|
locString: o.question.locMaxRateDescription
|
|
2275
2288
|
}, null, 8, ["locString"])
|
|
2276
2289
|
], 2)) : p("", !0)
|
|
2277
|
-
], 8,
|
|
2290
|
+
], 8, z1)
|
|
2278
2291
|
], 2));
|
|
2279
2292
|
}
|
|
2280
|
-
}),
|
|
2293
|
+
}), K1 = ["name", "id", "value", "disabled", "readonly", "aria-label"], j1 = ["data-text"], G1 = /* @__PURE__ */ y({
|
|
2281
2294
|
__name: "RatingItem",
|
|
2282
2295
|
props: {
|
|
2283
2296
|
question: {},
|
|
@@ -2301,7 +2314,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2301
2314
|
readonly: n.question.isReadOnlyAttr,
|
|
2302
2315
|
onClick: s[0] || (s[0] = (o) => n.question.setValueFromClick(o.target.value)),
|
|
2303
2316
|
"aria-label": n.question.ariaLabel
|
|
2304
|
-
}, null, 8,
|
|
2317
|
+
}, null, 8, K1),
|
|
2305
2318
|
v("span", {
|
|
2306
2319
|
class: r(n.question.cssClasses.itemText),
|
|
2307
2320
|
"data-text": n.item.text
|
|
@@ -2310,10 +2323,10 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2310
2323
|
is: "survey-string",
|
|
2311
2324
|
locString: n.item.locText
|
|
2312
2325
|
}, null, 8, ["locString"])
|
|
2313
|
-
], 10,
|
|
2326
|
+
], 10, j1)
|
|
2314
2327
|
], 34));
|
|
2315
2328
|
}
|
|
2316
|
-
}),
|
|
2329
|
+
}), X1 = ["title"], J1 = ["name", "id", "value", "disabled", "readonly", "aria-label"], Y1 = /* @__PURE__ */ y({
|
|
2317
2330
|
__name: "RatingItemSmiley",
|
|
2318
2331
|
props: {
|
|
2319
2332
|
question: {},
|
|
@@ -2341,15 +2354,15 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2341
2354
|
readonly: n.question.isReadOnlyAttr,
|
|
2342
2355
|
onClick: s[0] || (s[0] = (o) => n.question.setValueFromClick(o.target.value)),
|
|
2343
2356
|
"aria-label": n.question.ariaLabel
|
|
2344
|
-
}, null, 8,
|
|
2357
|
+
}, null, 8, J1),
|
|
2345
2358
|
c(m, {
|
|
2346
2359
|
is: "sv-svg-icon",
|
|
2347
2360
|
iconName: n.question.getItemSmileyIconName(n.item.itemValue),
|
|
2348
2361
|
size: "auto"
|
|
2349
2362
|
}, null, 8, ["iconName"])
|
|
2350
|
-
], 46,
|
|
2363
|
+
], 46, X1));
|
|
2351
2364
|
}
|
|
2352
|
-
}),
|
|
2365
|
+
}), _1 = ["title"], x1 = ["name", "id", "value", "disabled", "readonly", "aria-label"], en = /* @__PURE__ */ y({
|
|
2353
2366
|
__name: "RatingItemStar",
|
|
2354
2367
|
props: {
|
|
2355
2368
|
question: {},
|
|
@@ -2376,7 +2389,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2376
2389
|
readonly: n.question.isReadOnlyAttr,
|
|
2377
2390
|
onClick: s[0] || (s[0] = (o) => n.question.setValueFromClick((o == null ? void 0 : o.target).value)),
|
|
2378
2391
|
"aria-label": n.question.ariaLabel
|
|
2379
|
-
}, null, 8,
|
|
2392
|
+
}, null, 8, x1),
|
|
2380
2393
|
c(m, {
|
|
2381
2394
|
is: "sv-svg-icon",
|
|
2382
2395
|
class: r("sv-star"),
|
|
@@ -2389,12 +2402,12 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2389
2402
|
iconName: n.question.itemStarIconAlt,
|
|
2390
2403
|
size: "auto"
|
|
2391
2404
|
}, null, 8, ["iconName"])
|
|
2392
|
-
], 42,
|
|
2405
|
+
], 42, _1));
|
|
2393
2406
|
}
|
|
2394
|
-
}),
|
|
2407
|
+
}), sn = { class: "sd-rating-dropdown-item" }, nn = { class: "sd-rating-dropdown-item_text" }, tn = {
|
|
2395
2408
|
key: 0,
|
|
2396
2409
|
class: "sd-rating-dropdown-item_description"
|
|
2397
|
-
},
|
|
2410
|
+
}, on = /* @__PURE__ */ y({
|
|
2398
2411
|
__name: "RatingDropdownItem",
|
|
2399
2412
|
props: {
|
|
2400
2413
|
item: {},
|
|
@@ -2402,9 +2415,9 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2402
2415
|
},
|
|
2403
2416
|
setup(u) {
|
|
2404
2417
|
const e = u;
|
|
2405
|
-
return S(() => e.item), (n, s) => (i(), a("div",
|
|
2406
|
-
v("span",
|
|
2407
|
-
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, [
|
|
2408
2421
|
c(m, {
|
|
2409
2422
|
is: "survey-string",
|
|
2410
2423
|
locString: n.item.description
|
|
@@ -2418,7 +2431,7 @@ G.Instance.registerRenderer(
|
|
|
2418
2431
|
"dropdown",
|
|
2419
2432
|
"sv-rating-dropdown"
|
|
2420
2433
|
);
|
|
2421
|
-
const
|
|
2434
|
+
const rn = /* @__PURE__ */ y({
|
|
2422
2435
|
inheritAttrs: !1,
|
|
2423
2436
|
__name: "RatingDropdown",
|
|
2424
2437
|
props: {
|
|
@@ -2437,7 +2450,7 @@ const on = /* @__PURE__ */ y({
|
|
|
2437
2450
|
}, null, 8, ["question"])
|
|
2438
2451
|
], 2));
|
|
2439
2452
|
}
|
|
2440
|
-
}),
|
|
2453
|
+
}), ln = ["name", "value", "id", ".indeterminate", "disabled", "readonly", "role", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], an = /* @__PURE__ */ y({
|
|
2441
2454
|
inheritAttrs: !1,
|
|
2442
2455
|
__name: "BooleanSwitch",
|
|
2443
2456
|
props: {
|
|
@@ -2460,7 +2473,7 @@ const on = /* @__PURE__ */ y({
|
|
|
2460
2473
|
v("label", {
|
|
2461
2474
|
class: r(t.question.getItemCss())
|
|
2462
2475
|
}, [
|
|
2463
|
-
|
|
2476
|
+
Z(v("input", {
|
|
2464
2477
|
type: "checkbox",
|
|
2465
2478
|
name: t.question.name,
|
|
2466
2479
|
value: t.question.booleanValue ?? "",
|
|
@@ -2477,8 +2490,8 @@ const on = /* @__PURE__ */ y({
|
|
|
2477
2490
|
"aria-describedby": t.question.a11y_input_ariaDescribedBy,
|
|
2478
2491
|
"aria-invalid": t.question.a11y_input_ariaInvalid,
|
|
2479
2492
|
"aria-errormessage": t.question.a11y_input_ariaErrormessage
|
|
2480
|
-
}, null, 42,
|
|
2481
|
-
[
|
|
2493
|
+
}, null, 42, ln), [
|
|
2494
|
+
[oe, t.question.booleanValue]
|
|
2482
2495
|
]),
|
|
2483
2496
|
v("div", {
|
|
2484
2497
|
class: r(t.question.cssClasses.sliderGhost),
|
|
@@ -2533,7 +2546,7 @@ G.Instance.registerRenderer(
|
|
|
2533
2546
|
"radio",
|
|
2534
2547
|
"sv-boolean-radio"
|
|
2535
2548
|
);
|
|
2536
|
-
const
|
|
2549
|
+
const un = /* @__PURE__ */ y({
|
|
2537
2550
|
inheritAttrs: !1,
|
|
2538
2551
|
__name: "BooleanRadio",
|
|
2539
2552
|
props: {
|
|
@@ -2574,7 +2587,7 @@ const an = /* @__PURE__ */ y({
|
|
|
2574
2587
|
], 2)
|
|
2575
2588
|
], 2));
|
|
2576
2589
|
}
|
|
2577
|
-
}),
|
|
2590
|
+
}), dn = ["name", "value", "checked", "aria-errormessage", "disabled", "readonly"], mn = ["xlink:href"], pn = /* @__PURE__ */ y({
|
|
2578
2591
|
__name: "BooleanRadioItem",
|
|
2579
2592
|
props: {
|
|
2580
2593
|
question: {},
|
|
@@ -2603,7 +2616,7 @@ const an = /* @__PURE__ */ y({
|
|
|
2603
2616
|
readonly: s.question.isReadOnlyAttr,
|
|
2604
2617
|
class: r(s.question.cssClasses.itemRadioControl),
|
|
2605
2618
|
onChange: n
|
|
2606
|
-
}, null, 42,
|
|
2619
|
+
}, null, 42, dn),
|
|
2607
2620
|
s.question.cssClasses.materialRadioDecorator ? (i(), a("span", {
|
|
2608
2621
|
key: 0,
|
|
2609
2622
|
class: r(s.question.cssClasses.materialRadioDecorator)
|
|
@@ -2614,7 +2627,7 @@ const an = /* @__PURE__ */ y({
|
|
|
2614
2627
|
}, [
|
|
2615
2628
|
v("use", {
|
|
2616
2629
|
"xlink:href": s.question.itemSvgIcon
|
|
2617
|
-
}, null, 8,
|
|
2630
|
+
}, null, 8, mn)
|
|
2618
2631
|
], 2)) : p("", !0)
|
|
2619
2632
|
], 2)) : p("", !0),
|
|
2620
2633
|
v("span", {
|
|
@@ -2628,13 +2641,13 @@ const an = /* @__PURE__ */ y({
|
|
|
2628
2641
|
], 2)
|
|
2629
2642
|
], 2));
|
|
2630
2643
|
}
|
|
2631
|
-
}),
|
|
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"];
|
|
2632
2645
|
G.Instance.registerRenderer(
|
|
2633
2646
|
"boolean",
|
|
2634
2647
|
"checkbox",
|
|
2635
2648
|
"sv-boolean-checkbox"
|
|
2636
2649
|
);
|
|
2637
|
-
const
|
|
2650
|
+
const hn = /* @__PURE__ */ y({
|
|
2638
2651
|
inheritAttrs: !1,
|
|
2639
2652
|
__name: "BooleanCheckbox",
|
|
2640
2653
|
props: {
|
|
@@ -2654,7 +2667,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2654
2667
|
v("label", {
|
|
2655
2668
|
class: r(s.question.cssClasses.checkboxLabel)
|
|
2656
2669
|
}, [
|
|
2657
|
-
|
|
2670
|
+
Z(v("input", {
|
|
2658
2671
|
type: "checkbox",
|
|
2659
2672
|
name: s.question.name,
|
|
2660
2673
|
value: s.question.booleanValue ?? "",
|
|
@@ -2670,8 +2683,8 @@ const yn = /* @__PURE__ */ y({
|
|
|
2670
2683
|
"aria-describedby": s.question.a11y_input_ariaDescribedBy,
|
|
2671
2684
|
"aria-invalid": s.question.a11y_input_ariaInvalid,
|
|
2672
2685
|
"aria-errormessage": s.question.a11y_input_ariaErrormessage
|
|
2673
|
-
}, null, 42,
|
|
2674
|
-
[
|
|
2686
|
+
}, null, 42, vn), [
|
|
2687
|
+
[oe, s.question.booleanValue]
|
|
2675
2688
|
]),
|
|
2676
2689
|
v("span", {
|
|
2677
2690
|
class: r(s.question.cssClasses.checkboxMaterialDecorator)
|
|
@@ -2682,9 +2695,9 @@ const yn = /* @__PURE__ */ y({
|
|
|
2682
2695
|
}, [
|
|
2683
2696
|
v("use", {
|
|
2684
2697
|
"xlink:href": s.question.svgIcon
|
|
2685
|
-
}, null, 8,
|
|
2698
|
+
}, null, 8, Cn)
|
|
2686
2699
|
], 2)) : p("", !0),
|
|
2687
|
-
|
|
2700
|
+
cn
|
|
2688
2701
|
], 2),
|
|
2689
2702
|
s.question.isLabelRendered ? (i(), a("span", {
|
|
2690
2703
|
key: 0,
|
|
@@ -2703,7 +2716,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2703
2716
|
element: s.question,
|
|
2704
2717
|
css: s.css
|
|
2705
2718
|
}, null, 8, ["element", "css"])) : p("", !0)
|
|
2706
|
-
], 10,
|
|
2719
|
+
], 10, gn)) : p("", !0)
|
|
2707
2720
|
], 2),
|
|
2708
2721
|
s.question.canRenderLabelDescription ? (i(), a("div", {
|
|
2709
2722
|
key: 0,
|
|
@@ -2714,32 +2727,32 @@ const yn = /* @__PURE__ */ y({
|
|
|
2714
2727
|
is: "survey-string",
|
|
2715
2728
|
locString: s.question.locDescription
|
|
2716
2729
|
}, null, 8, ["locString"])
|
|
2717
|
-
], 10,
|
|
2730
|
+
], 10, yn)) : p("", !0)
|
|
2718
2731
|
], 2)
|
|
2719
2732
|
], 2));
|
|
2720
2733
|
}
|
|
2721
|
-
}),
|
|
2734
|
+
}), qn = /* @__PURE__ */ y({
|
|
2722
2735
|
inheritAttrs: !1,
|
|
2723
2736
|
__name: "Multipletext",
|
|
2724
2737
|
props: {
|
|
2725
2738
|
question: {}
|
|
2726
2739
|
},
|
|
2727
2740
|
setup(u) {
|
|
2728
|
-
const e = u, n = f(null), s =
|
|
2741
|
+
const e = u, n = f(null), s = se(() => e.question.getRows());
|
|
2729
2742
|
return T(e, n), (o, t) => (i(), a("table", {
|
|
2730
2743
|
class: r(o.question.getQuestionRootCss()),
|
|
2731
2744
|
ref_key: "root",
|
|
2732
2745
|
ref: n
|
|
2733
2746
|
}, [
|
|
2734
2747
|
v("tbody", null, [
|
|
2735
|
-
(i(!0), a(
|
|
2748
|
+
(i(!0), a(H, null, V(w(s), (l, d) => (i(), a(H, {
|
|
2736
2749
|
key: o.question.inputId + "rowkey" + d
|
|
2737
2750
|
}, [
|
|
2738
2751
|
l.isVisible ? (i(), a("tr", {
|
|
2739
2752
|
key: 0,
|
|
2740
2753
|
class: r(o.question.cssClasses.row)
|
|
2741
2754
|
}, [
|
|
2742
|
-
(i(!0), a(
|
|
2755
|
+
(i(!0), a(H, null, V(l.cells, (C) => (i(), a("td", {
|
|
2743
2756
|
key: "item" + C.item.editor.id,
|
|
2744
2757
|
class: r(C.className)
|
|
2745
2758
|
}, [
|
|
@@ -2754,7 +2767,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2754
2767
|
])
|
|
2755
2768
|
], 2));
|
|
2756
2769
|
}
|
|
2757
|
-
}),
|
|
2770
|
+
}), wn = { key: 1 }, bn = { key: 2 }, Ln = /* @__PURE__ */ y({
|
|
2758
2771
|
__name: "MultipletextItem",
|
|
2759
2772
|
props: {
|
|
2760
2773
|
question: {},
|
|
@@ -2763,7 +2776,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2763
2776
|
setup(u) {
|
|
2764
2777
|
const e = u, n = (o) => re(o);
|
|
2765
2778
|
S(() => e.cell.item.editor);
|
|
2766
|
-
const s =
|
|
2779
|
+
const s = M(() => e.cell.item);
|
|
2767
2780
|
return (o, t) => o.cell.isErrorsCell ? (i(), g(m, {
|
|
2768
2781
|
key: 1,
|
|
2769
2782
|
is: "survey-errors",
|
|
@@ -2783,12 +2796,12 @@ const yn = /* @__PURE__ */ y({
|
|
|
2783
2796
|
key: 0,
|
|
2784
2797
|
class: r(o.question.cssClasses.requiredMark)
|
|
2785
2798
|
}, I(s.value.editor.requiredMark), 3)) : p("", !0),
|
|
2786
|
-
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),
|
|
2787
2800
|
c(m, {
|
|
2788
2801
|
is: "survey-string",
|
|
2789
2802
|
locString: s.value.locTitle
|
|
2790
2803
|
}, null, 8, ["locString"]),
|
|
2791
|
-
s.value.editor.isRequireTextAfterTitle ? (i(), a("span",
|
|
2804
|
+
s.value.editor.isRequireTextAfterTitle ? (i(), a("span", bn, " ")) : p("", !0),
|
|
2792
2805
|
s.value.editor.isRequireTextAfterTitle ? (i(), a("span", {
|
|
2793
2806
|
key: 3,
|
|
2794
2807
|
"aria-hidden": "true",
|
|
@@ -2807,7 +2820,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2807
2820
|
], 34))
|
|
2808
2821
|
], 2));
|
|
2809
2822
|
}
|
|
2810
|
-
}),
|
|
2823
|
+
}), kn = /* @__PURE__ */ y({
|
|
2811
2824
|
inheritAttrs: !1,
|
|
2812
2825
|
__name: "Breadcrumbs",
|
|
2813
2826
|
props: {
|
|
@@ -2820,7 +2833,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2820
2833
|
key: 0,
|
|
2821
2834
|
class: r(n.css.breadcrumbsRoot)
|
|
2822
2835
|
}, [
|
|
2823
|
-
(i(!0), a(
|
|
2836
|
+
(i(!0), a(H, null, V(n.model.actions, (o, t) => (i(), a(H, {
|
|
2824
2837
|
key: o.renderedId
|
|
2825
2838
|
}, [
|
|
2826
2839
|
t ? (i(), g(m, {
|
|
@@ -2837,21 +2850,21 @@ const yn = /* @__PURE__ */ y({
|
|
|
2837
2850
|
], 64))), 128))
|
|
2838
2851
|
], 2)) : p("", !0);
|
|
2839
2852
|
}
|
|
2840
|
-
}),
|
|
2853
|
+
}), fn = ["onClick", "title"], Hn = ["onClick", "title"], Mn = { key: 1 }, In = { key: 1 }, Vn = /* @__PURE__ */ y({
|
|
2841
2854
|
__name: "SingleInputSummary",
|
|
2842
2855
|
props: {
|
|
2843
2856
|
summary: {},
|
|
2844
2857
|
css: {}
|
|
2845
2858
|
},
|
|
2846
2859
|
setup(u) {
|
|
2847
|
-
const e = u, n =
|
|
2848
|
-
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, [
|
|
2849
2862
|
s.value ? (i(), g(m, {
|
|
2850
2863
|
key: 0,
|
|
2851
2864
|
is: "survey-placeholder-" + o.summary.question.getTemplate(),
|
|
2852
2865
|
cssClasses: o.css,
|
|
2853
2866
|
question: o.summary.question
|
|
2854
|
-
}, null, 8, ["is", "cssClasses", "question"])) : (i(), a("div",
|
|
2867
|
+
}, null, 8, ["is", "cssClasses", "question"])) : (i(), a("div", In, [
|
|
2855
2868
|
c(m, {
|
|
2856
2869
|
is: "survey-string",
|
|
2857
2870
|
locString: o.summary.noEntry
|
|
@@ -2861,7 +2874,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2861
2874
|
key: 0,
|
|
2862
2875
|
class: r(o.css.summary)
|
|
2863
2876
|
}, [
|
|
2864
|
-
(i(!0), a(
|
|
2877
|
+
(i(!0), a(H, null, V(o.summary.items, (l, d) => (i(), a("div", {
|
|
2865
2878
|
key: d,
|
|
2866
2879
|
class: r(o.css.summaryRow)
|
|
2867
2880
|
}, [
|
|
@@ -2887,7 +2900,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2887
2900
|
iconName: "icon-editsmall-16x16",
|
|
2888
2901
|
size: "auto"
|
|
2889
2902
|
})
|
|
2890
|
-
], 10,
|
|
2903
|
+
], 10, fn)) : p("", !0),
|
|
2891
2904
|
l.showRemove && l.btnRemove ? (i(), a("button", {
|
|
2892
2905
|
key: 1,
|
|
2893
2906
|
class: r(o.css.summaryRowActionDelete),
|
|
@@ -2899,12 +2912,12 @@ const yn = /* @__PURE__ */ y({
|
|
|
2899
2912
|
iconName: "icon-delete-16x16",
|
|
2900
2913
|
size: "auto"
|
|
2901
2914
|
})
|
|
2902
|
-
], 10,
|
|
2915
|
+
], 10, Hn)) : p("", !0)
|
|
2903
2916
|
], 2)
|
|
2904
2917
|
], 2))), 128))
|
|
2905
2918
|
], 2));
|
|
2906
2919
|
}
|
|
2907
|
-
}),
|
|
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({
|
|
2908
2921
|
inheritAttrs: !1,
|
|
2909
2922
|
__name: "Slider",
|
|
2910
2923
|
props: {
|
|
@@ -2912,7 +2925,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2912
2925
|
},
|
|
2913
2926
|
setup(u) {
|
|
2914
2927
|
const e = u, n = f(null), s = f(null);
|
|
2915
|
-
return T(e, n),
|
|
2928
|
+
return T(e, n), B(() => {
|
|
2916
2929
|
e.question.refreshInputRange(s.value);
|
|
2917
2930
|
}), (o, t) => (i(), a("div", {
|
|
2918
2931
|
class: r(o.question.rootCss),
|
|
@@ -2941,7 +2954,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2941
2954
|
onPointerup: t[2] || (t[2] = (l) => {
|
|
2942
2955
|
o.question.handleRangePointerUp(l, n.value);
|
|
2943
2956
|
})
|
|
2944
|
-
}, null, 42,
|
|
2957
|
+
}, null, 42, Sn)) : p("", !0),
|
|
2945
2958
|
v("div", {
|
|
2946
2959
|
class: r(o.question.cssClasses.visualContainer),
|
|
2947
2960
|
onPointerup: t[8] || (t[8] = (l) => {
|
|
@@ -2963,7 +2976,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2963
2976
|
class: r(o.question.cssClasses.rangeTrack),
|
|
2964
2977
|
style: k({ left: o.question.getTrackPercentLeft() + "%", right: o.question.getTrackPercentRight() + "%" })
|
|
2965
2978
|
}, null, 6),
|
|
2966
|
-
(i(!0), a(
|
|
2979
|
+
(i(!0), a(H, null, V(o.question.renderedValue, (l, d) => (i(), a(H, { key: d }, [
|
|
2967
2980
|
v("input", {
|
|
2968
2981
|
class: r(o.question.cssClasses.input),
|
|
2969
2982
|
id: "sjs-slider-input-" + d,
|
|
@@ -3000,7 +3013,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3000
3013
|
"aria-describedby": o.question.a11y_input_ariaDescribedBy,
|
|
3001
3014
|
"aria-invalid": o.question.a11y_input_ariaInvalid,
|
|
3002
3015
|
"aria-errormessage": o.question.a11y_input_ariaErrormessage
|
|
3003
|
-
}, null, 42,
|
|
3016
|
+
}, null, 42, Rn),
|
|
3004
3017
|
v("div", {
|
|
3005
3018
|
class: r(o.question.getThumbContainerCss(d)),
|
|
3006
3019
|
style: k({ left: o.question.getPercent(l) + "%" })
|
|
@@ -3033,7 +3046,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3033
3046
|
class: r(o.question.cssClasses.labelsContainer)
|
|
3034
3047
|
}, [
|
|
3035
3048
|
v("div", null, [
|
|
3036
|
-
(i(!0), a(
|
|
3049
|
+
(i(!0), a(H, null, V(o.question.renderedLabels, (l) => (i(), g(m, {
|
|
3037
3050
|
key: l.id,
|
|
3038
3051
|
is: "sv-slider-label-item",
|
|
3039
3052
|
item: l,
|
|
@@ -3043,7 +3056,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3043
3056
|
], 2)) : p("", !0)
|
|
3044
3057
|
], 2));
|
|
3045
3058
|
}
|
|
3046
|
-
}),
|
|
3059
|
+
}), Bn = /* @__PURE__ */ y({
|
|
3047
3060
|
__name: "SliderLabelItem",
|
|
3048
3061
|
props: {
|
|
3049
3062
|
question: {},
|
|
@@ -3071,10 +3084,10 @@ const yn = /* @__PURE__ */ y({
|
|
|
3071
3084
|
], 2)
|
|
3072
3085
|
], 38));
|
|
3073
3086
|
}
|
|
3074
|
-
}),
|
|
3087
|
+
}), Zn = { role: "radiogroup" }, $n = { class: "sv-visuallyhidden" }, Dn = {
|
|
3075
3088
|
key: 0,
|
|
3076
3089
|
role: "presentation"
|
|
3077
|
-
},
|
|
3090
|
+
}, An = { key: 0 }, Pn = ["onClick"], Nn = ["data-responsive-title", "onClick"], En = /* @__PURE__ */ y({
|
|
3078
3091
|
inheritAttrs: !1,
|
|
3079
3092
|
__name: "Matrix",
|
|
3080
3093
|
props: {
|
|
@@ -3103,16 +3116,16 @@ const yn = /* @__PURE__ */ y({
|
|
|
3103
3116
|
ref_key: "root",
|
|
3104
3117
|
ref: n
|
|
3105
3118
|
}, [
|
|
3106
|
-
v("fieldset",
|
|
3107
|
-
v("legend",
|
|
3119
|
+
v("fieldset", Zn, [
|
|
3120
|
+
v("legend", $n, I(t.question.locTitle.renderedHtml), 1),
|
|
3108
3121
|
v("table", {
|
|
3109
3122
|
class: r(t.question.getTableCss()),
|
|
3110
3123
|
role: "presentation"
|
|
3111
3124
|
}, [
|
|
3112
|
-
t.question.showHeader ? (i(), a("thead",
|
|
3125
|
+
t.question.showHeader ? (i(), a("thead", Dn, [
|
|
3113
3126
|
v("tr", null, [
|
|
3114
|
-
t.question.hasRows ? (i(), a("td",
|
|
3115
|
-
(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", {
|
|
3116
3129
|
key: C,
|
|
3117
3130
|
class: r(t.question.cssClasses.headerCell),
|
|
3118
3131
|
style: k({
|
|
@@ -3136,11 +3149,11 @@ const yn = /* @__PURE__ */ y({
|
|
|
3136
3149
|
])
|
|
3137
3150
|
])) : p("", !0),
|
|
3138
3151
|
v("tbody", null, [
|
|
3139
|
-
(i(!0), a(
|
|
3152
|
+
(i(!0), a(H, null, V(s.value, (d, C) => (i(), a("tr", {
|
|
3140
3153
|
key: "row_" + d.name + "_" + C,
|
|
3141
3154
|
class: r(d.rowClasses || void 0)
|
|
3142
3155
|
}, [
|
|
3143
|
-
|
|
3156
|
+
Z(v("td", {
|
|
3144
3157
|
class: r(d.rowTextClasses),
|
|
3145
3158
|
style: k({
|
|
3146
3159
|
minWidth: t.question.rowTitleWidth,
|
|
@@ -3162,7 +3175,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3162
3175
|
], 6), [
|
|
3163
3176
|
[A, t.question.hasRows]
|
|
3164
3177
|
]),
|
|
3165
|
-
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", {
|
|
3166
3179
|
key: h,
|
|
3167
3180
|
class: r(t.question.getItemClass(d, L)),
|
|
3168
3181
|
onClick: (q) => o(d, L)
|
|
@@ -3171,8 +3184,8 @@ const yn = /* @__PURE__ */ y({
|
|
|
3171
3184
|
is: "survey-string",
|
|
3172
3185
|
locString: t.question.getCellDisplayLocText(d.name, L)
|
|
3173
3186
|
}, null, 8, ["locString"])
|
|
3174
|
-
], 10,
|
|
3175
|
-
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", {
|
|
3176
3189
|
key: h,
|
|
3177
3190
|
"data-responsive-title": L.locText.renderedHtml,
|
|
3178
3191
|
class: r(t.question.cssClasses.cell),
|
|
@@ -3185,14 +3198,14 @@ const yn = /* @__PURE__ */ y({
|
|
|
3185
3198
|
column: L,
|
|
3186
3199
|
columnIndex: h
|
|
3187
3200
|
}, null, 8, ["is", "question", "row", "column", "columnIndex"])
|
|
3188
|
-
], 10,
|
|
3201
|
+
], 10, Nn))), 128))
|
|
3189
3202
|
], 2))), 128))
|
|
3190
3203
|
])
|
|
3191
3204
|
], 2)
|
|
3192
3205
|
])
|
|
3193
3206
|
], 2));
|
|
3194
3207
|
}
|
|
3195
|
-
}),
|
|
3208
|
+
}), Wn = ["data-sv-drop-target-matrix-row"], Fn = /* @__PURE__ */ y({
|
|
3196
3209
|
__name: "MatrixRow",
|
|
3197
3210
|
props: {
|
|
3198
3211
|
question: {},
|
|
@@ -3207,7 +3220,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3207
3220
|
t && t.setRootElement(void 0), o.setRootElement(n.value);
|
|
3208
3221
|
}
|
|
3209
3222
|
);
|
|
3210
|
-
return
|
|
3223
|
+
return B(() => {
|
|
3211
3224
|
e.row.setRootElement(n.value);
|
|
3212
3225
|
}), P(() => {
|
|
3213
3226
|
e.row.setRootElement(void 0), s();
|
|
@@ -3219,15 +3232,15 @@ const yn = /* @__PURE__ */ y({
|
|
|
3219
3232
|
ref_key: "root",
|
|
3220
3233
|
ref: n
|
|
3221
3234
|
}, [
|
|
3222
|
-
(i(!0), a(
|
|
3235
|
+
(i(!0), a(H, null, V(o.row.cells, (l) => (i(), g(m, {
|
|
3223
3236
|
is: "survey-matrixdropdown-cell",
|
|
3224
3237
|
cell: l,
|
|
3225
3238
|
question: o.question,
|
|
3226
3239
|
key: o.row.id + "_" + l.id
|
|
3227
3240
|
}, null, 8, ["cell", "question"]))), 128))
|
|
3228
|
-
], 42,
|
|
3241
|
+
], 42, Wn)) : p("", !0);
|
|
3229
3242
|
}
|
|
3230
|
-
}),
|
|
3243
|
+
}), On = ["name", "value", "readonly", "disabled", "id", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], zn = ["xlink:href"], Un = /* @__PURE__ */ y({
|
|
3231
3244
|
inheritAttrs: !1,
|
|
3232
3245
|
__name: "MatrixCell",
|
|
3233
3246
|
props: {
|
|
@@ -3237,7 +3250,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3237
3250
|
columnIndex: {}
|
|
3238
3251
|
},
|
|
3239
3252
|
setup(u) {
|
|
3240
|
-
const e = u, n =
|
|
3253
|
+
const e = u, n = M({
|
|
3241
3254
|
get() {
|
|
3242
3255
|
return e.row.value ?? "";
|
|
3243
3256
|
},
|
|
@@ -3250,7 +3263,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3250
3263
|
onMousedown: o[1] || (o[1] = (t) => s.question.onMouseDown()),
|
|
3251
3264
|
class: r(s.question.getItemClass(s.row, s.column))
|
|
3252
3265
|
}, [
|
|
3253
|
-
|
|
3266
|
+
Z(v("input", {
|
|
3254
3267
|
type: "radio",
|
|
3255
3268
|
class: r(s.question.cssClasses.itemValue),
|
|
3256
3269
|
name: s.row.fullName,
|
|
@@ -3263,8 +3276,8 @@ const yn = /* @__PURE__ */ y({
|
|
|
3263
3276
|
"aria-label": s.question.getCellAriaLabel(s.row, s.column),
|
|
3264
3277
|
"aria-invalid": s.question.a11y_input_ariaInvalid,
|
|
3265
3278
|
"aria-errormessage": s.question.a11y_input_ariaErrormessage
|
|
3266
|
-
}, null, 10,
|
|
3267
|
-
[
|
|
3279
|
+
}, null, 10, On), [
|
|
3280
|
+
[ie, n.value]
|
|
3268
3281
|
]),
|
|
3269
3282
|
v("span", {
|
|
3270
3283
|
class: r(s.question.cssClasses.materialDecorator)
|
|
@@ -3275,7 +3288,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3275
3288
|
}, [
|
|
3276
3289
|
v("use", {
|
|
3277
3290
|
"xlink:href": s.question.itemSvgIcon
|
|
3278
|
-
}, null, 8,
|
|
3291
|
+
}, null, 8, zn)
|
|
3279
3292
|
], 2)) : p("", !0)
|
|
3280
3293
|
], 2),
|
|
3281
3294
|
s.question.isMobile ? (i(), a("span", {
|
|
@@ -3289,7 +3302,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3289
3302
|
], 2)) : p("", !0)
|
|
3290
3303
|
], 34));
|
|
3291
3304
|
}
|
|
3292
|
-
}),
|
|
3305
|
+
}), Qn = /* @__PURE__ */ y({
|
|
3293
3306
|
inheritAttrs: !1,
|
|
3294
3307
|
__name: "MatrixDropdown",
|
|
3295
3308
|
props: {
|
|
@@ -3304,13 +3317,13 @@ const yn = /* @__PURE__ */ y({
|
|
|
3304
3317
|
ref: n
|
|
3305
3318
|
}, null, 8, ["question"]));
|
|
3306
3319
|
}
|
|
3307
|
-
}),
|
|
3320
|
+
}), Kn = { key: 0 }, jn = { key: 1 }, Gn = /* @__PURE__ */ y({
|
|
3308
3321
|
__name: "MatrixTable",
|
|
3309
3322
|
props: {
|
|
3310
3323
|
question: {}
|
|
3311
3324
|
},
|
|
3312
3325
|
setup(u) {
|
|
3313
|
-
const e = u, n =
|
|
3326
|
+
const e = u, n = M(() => e.question.renderedTable);
|
|
3314
3327
|
return S(() => n.value), (s, o) => (i(), a("div", {
|
|
3315
3328
|
style: k({ overflowX: s.question.showHorizontalScroll ? "scroll" : "" }),
|
|
3316
3329
|
class: r(s.question.cssClasses.tableWrapper)
|
|
@@ -3318,9 +3331,9 @@ const yn = /* @__PURE__ */ y({
|
|
|
3318
3331
|
v("table", {
|
|
3319
3332
|
class: r(s.question.getTableCss())
|
|
3320
3333
|
}, [
|
|
3321
|
-
n.value.showHeader ? (i(), a("thead",
|
|
3334
|
+
n.value.showHeader ? (i(), a("thead", Kn, [
|
|
3322
3335
|
v("tr", null, [
|
|
3323
|
-
(i(!0), a(
|
|
3336
|
+
(i(!0), a(H, null, V(n.value.headerRow.cells, (t) => (i(), a(H, null, [
|
|
3324
3337
|
t.hasTitle ? (i(), a("th", {
|
|
3325
3338
|
key: "header_" + t.id,
|
|
3326
3339
|
class: r(t.className),
|
|
@@ -3354,16 +3367,16 @@ const yn = /* @__PURE__ */ y({
|
|
|
3354
3367
|
])
|
|
3355
3368
|
])) : p("", !0),
|
|
3356
3369
|
v("tbody", null, [
|
|
3357
|
-
(i(!0), a(
|
|
3370
|
+
(i(!0), a(H, null, V(n.value.renderedRows, (t) => (i(), g(m, {
|
|
3358
3371
|
key: s.question.inputId + "_" + t.id,
|
|
3359
3372
|
is: "survey-matrix-row",
|
|
3360
3373
|
row: t,
|
|
3361
3374
|
question: s.question
|
|
3362
3375
|
}, null, 8, ["row", "question"]))), 128))
|
|
3363
3376
|
]),
|
|
3364
|
-
n.value.showFooter ? (i(), a("tfoot",
|
|
3377
|
+
n.value.showFooter ? (i(), a("tfoot", jn, [
|
|
3365
3378
|
v("tr", null, [
|
|
3366
|
-
(i(!0), a(
|
|
3379
|
+
(i(!0), a(H, null, V(n.value.footerRow.cells, (t, l) => (i(), g(m, {
|
|
3367
3380
|
is: "survey-matrixdropdown-cell",
|
|
3368
3381
|
cell: t,
|
|
3369
3382
|
question: s.question,
|
|
@@ -3374,7 +3387,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3374
3387
|
], 2)
|
|
3375
3388
|
], 6));
|
|
3376
3389
|
}
|
|
3377
|
-
}),
|
|
3390
|
+
}), Xn = /* @__PURE__ */ v("span", null, " ", -1), Jn = /* @__PURE__ */ y({
|
|
3378
3391
|
__name: "MatrixHeaderRequired",
|
|
3379
3392
|
props: {
|
|
3380
3393
|
question: {},
|
|
@@ -3382,15 +3395,15 @@ const yn = /* @__PURE__ */ y({
|
|
|
3382
3395
|
},
|
|
3383
3396
|
setup(u) {
|
|
3384
3397
|
const e = u;
|
|
3385
|
-
return S(() => e.column), (n, s) => n.column.isRenderedRequired ? (i(), a(
|
|
3386
|
-
|
|
3398
|
+
return S(() => e.column), (n, s) => n.column.isRenderedRequired ? (i(), a(H, { key: 0 }, [
|
|
3399
|
+
Xn,
|
|
3387
3400
|
n.column.isRenderedRequired ? (i(), a("span", {
|
|
3388
3401
|
key: 0,
|
|
3389
3402
|
class: r(n.question.cssClasses.cellRequiredMark)
|
|
3390
3403
|
}, I(n.column.requiredMark), 3)) : p("", !0)
|
|
3391
3404
|
], 64)) : p("", !0);
|
|
3392
3405
|
}
|
|
3393
|
-
}),
|
|
3406
|
+
}), Yn = ["title", "colspan"], _n = /* @__PURE__ */ y({
|
|
3394
3407
|
__name: "MatrixDropdownCellComp",
|
|
3395
3408
|
props: {
|
|
3396
3409
|
question: {},
|
|
@@ -3400,7 +3413,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3400
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 = () => {
|
|
3401
3414
|
!e.cell.hasQuestion || !e.question || !e.question.survey || (n.value = e.cell.question.isVisible);
|
|
3402
3415
|
}, d = (h) => re(h);
|
|
3403
|
-
l(),
|
|
3416
|
+
l(), B(() => {
|
|
3404
3417
|
if (!e.cell.hasQuestion || !e.question || !e.question.survey)
|
|
3405
3418
|
return;
|
|
3406
3419
|
e.cell.question.registerPropertyChangedHandlers(["isVisible"], () => {
|
|
@@ -3415,7 +3428,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3415
3428
|
};
|
|
3416
3429
|
e.question.survey.matrixAfterCellRender(b), q && q.afterRenderCore(h);
|
|
3417
3430
|
});
|
|
3418
|
-
const C =
|
|
3431
|
+
const C = M(() => {
|
|
3419
3432
|
const h = e.cell;
|
|
3420
3433
|
if (h.hasPanel) {
|
|
3421
3434
|
const q = h.panel, b = q.survey;
|
|
@@ -3426,7 +3439,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3426
3439
|
}
|
|
3427
3440
|
return "survey-panel";
|
|
3428
3441
|
}
|
|
3429
|
-
}), L =
|
|
3442
|
+
}), L = M(() => {
|
|
3430
3443
|
if (e.cell.hasPanel) {
|
|
3431
3444
|
const q = e.cell.panel, b = q.survey;
|
|
3432
3445
|
let R;
|
|
@@ -3484,7 +3497,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3484
3497
|
question: h.cell.matrix
|
|
3485
3498
|
}, null, 8, ["column", "question"])
|
|
3486
3499
|
], 2)) : p("", !0),
|
|
3487
|
-
h.cell.hasQuestion ?
|
|
3500
|
+
h.cell.hasQuestion ? Z((i(), a("div", {
|
|
3488
3501
|
key: 5,
|
|
3489
3502
|
class: r(h.cell.cellQuestionWrapperClassName)
|
|
3490
3503
|
}, [
|
|
@@ -3534,8 +3547,9 @@ const yn = /* @__PURE__ */ y({
|
|
|
3534
3547
|
h.cell.isOtherChoice ? (i(), g(m, {
|
|
3535
3548
|
key: 3,
|
|
3536
3549
|
is: "survey-other-choice",
|
|
3537
|
-
question: h.cell.question
|
|
3538
|
-
|
|
3550
|
+
question: h.cell.question,
|
|
3551
|
+
item: h.cell.question.otherItem
|
|
3552
|
+
}, null, 8, ["question", "item"])) : p("", !0)
|
|
3539
3553
|
], 2)), [
|
|
3540
3554
|
[A, n.value]
|
|
3541
3555
|
]) : p("", !0),
|
|
@@ -3557,9 +3571,9 @@ const yn = /* @__PURE__ */ y({
|
|
|
3557
3571
|
]),
|
|
3558
3572
|
_: 1
|
|
3559
3573
|
}, 8, ["is", "componentData"])) : p("", !0)
|
|
3560
|
-
], 46,
|
|
3574
|
+
], 46, Yn)) : p("", !0);
|
|
3561
3575
|
}
|
|
3562
|
-
}),
|
|
3576
|
+
}), xn = /* @__PURE__ */ y({
|
|
3563
3577
|
inheritAttrs: !1,
|
|
3564
3578
|
__name: "MatrixDynamic",
|
|
3565
3579
|
props: {
|
|
@@ -3622,7 +3636,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3622
3636
|
], 2)) : p("", !0)
|
|
3623
3637
|
], 512));
|
|
3624
3638
|
}
|
|
3625
|
-
}),
|
|
3639
|
+
}), et = /* @__PURE__ */ y({
|
|
3626
3640
|
__name: "MatrixDynamicPlaceholder",
|
|
3627
3641
|
props: {
|
|
3628
3642
|
question: {}
|
|
@@ -3661,11 +3675,11 @@ const yn = /* @__PURE__ */ y({
|
|
|
3661
3675
|
});
|
|
3662
3676
|
function le(u, e = !0) {
|
|
3663
3677
|
return {
|
|
3664
|
-
question:
|
|
3665
|
-
row: e ?
|
|
3678
|
+
question: M(() => u.item.data.question),
|
|
3679
|
+
row: e ? M(() => u.item.data.row) : void 0
|
|
3666
3680
|
};
|
|
3667
3681
|
}
|
|
3668
|
-
const
|
|
3682
|
+
const st = ["disabled"], nt = /* @__PURE__ */ y({
|
|
3669
3683
|
__name: "RemoveButton",
|
|
3670
3684
|
props: {
|
|
3671
3685
|
item: {}
|
|
@@ -3685,9 +3699,9 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3685
3699
|
v("span", {
|
|
3686
3700
|
class: r(w(n).cssClasses.iconRemove)
|
|
3687
3701
|
}, null, 2)
|
|
3688
|
-
], 10,
|
|
3702
|
+
], 10, st));
|
|
3689
3703
|
}
|
|
3690
|
-
}),
|
|
3704
|
+
}), tt = ["xlink:href"], ot = /* @__PURE__ */ y({
|
|
3691
3705
|
__name: "DragDropIcon",
|
|
3692
3706
|
props: {
|
|
3693
3707
|
item: {}
|
|
@@ -3701,14 +3715,14 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3701
3715
|
}, [
|
|
3702
3716
|
v("use", {
|
|
3703
3717
|
"xlink:href": w(n).iconDragElement
|
|
3704
|
-
}, null, 8,
|
|
3718
|
+
}, null, 8, tt)
|
|
3705
3719
|
], 2)) : (i(), a("span", {
|
|
3706
3720
|
key: 1,
|
|
3707
3721
|
class: r(w(n).cssClasses.iconDrag)
|
|
3708
3722
|
}, null, 2))
|
|
3709
3723
|
]));
|
|
3710
3724
|
}
|
|
3711
|
-
}),
|
|
3725
|
+
}), it = ["title", "aria-expanded", "aria-controls"], rt = /* @__PURE__ */ y({
|
|
3712
3726
|
__name: "DetailButton",
|
|
3713
3727
|
props: {
|
|
3714
3728
|
item: {}
|
|
@@ -3729,9 +3743,9 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3729
3743
|
iconName: w(n).getDetailPanelIconId(w(s)),
|
|
3730
3744
|
size: "auto"
|
|
3731
3745
|
}, null, 8, ["class", "iconName"])
|
|
3732
|
-
], 10,
|
|
3746
|
+
], 10, it));
|
|
3733
3747
|
}
|
|
3734
|
-
}),
|
|
3748
|
+
}), lt = ["aria-label"], at = /* @__PURE__ */ y({
|
|
3735
3749
|
inheritAttrs: !1,
|
|
3736
3750
|
__name: "PanelDynamic",
|
|
3737
3751
|
props: {
|
|
@@ -3806,12 +3820,12 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3806
3820
|
style: k({ width: l.question.progress }),
|
|
3807
3821
|
role: "progressbar",
|
|
3808
3822
|
"aria-label": l.question.progressBarAriaLabel
|
|
3809
|
-
}, null, 14,
|
|
3823
|
+
}, null, 14, lt)
|
|
3810
3824
|
], 2)) : p("", !0),
|
|
3811
3825
|
v("div", {
|
|
3812
3826
|
class: r(l.question.cssClasses.panelsContainer)
|
|
3813
3827
|
}, [
|
|
3814
|
-
(i(!0), a(
|
|
3828
|
+
(i(!0), a(H, null, V(l.question.renderedPanels, (C, L) => (i(), a(H, {
|
|
3815
3829
|
key: C.id
|
|
3816
3830
|
}, [
|
|
3817
3831
|
v("div", {
|
|
@@ -3839,7 +3853,7 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3839
3853
|
}, null, 8, ["question"])) : p("", !0)
|
|
3840
3854
|
], 2));
|
|
3841
3855
|
}
|
|
3842
|
-
}),
|
|
3856
|
+
}), ut = ["aria-label"], dt = /* @__PURE__ */ y({
|
|
3843
3857
|
__name: "PanelDynamicProgress",
|
|
3844
3858
|
props: {
|
|
3845
3859
|
question: {}
|
|
@@ -3869,7 +3883,7 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3869
3883
|
style: k({ width: s.question.progress }),
|
|
3870
3884
|
role: "progressbar",
|
|
3871
3885
|
"aria-label": s.question.progressBarAriaLabel
|
|
3872
|
-
}, null, 14,
|
|
3886
|
+
}, null, 14, ut)
|
|
3873
3887
|
], 2)) : p("", !0),
|
|
3874
3888
|
c(m, {
|
|
3875
3889
|
is: "sv-paneldynamic-next-btn",
|
|
@@ -3887,7 +3901,7 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3887
3901
|
], 2)
|
|
3888
3902
|
], 2));
|
|
3889
3903
|
}
|
|
3890
|
-
}),
|
|
3904
|
+
}), mt = ["aria-label"], pt = /* @__PURE__ */ y({
|
|
3891
3905
|
__name: "PanelDynamicProgressV2",
|
|
3892
3906
|
props: {
|
|
3893
3907
|
question: {}
|
|
@@ -3909,7 +3923,7 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3909
3923
|
style: k({ width: e.question.progress }),
|
|
3910
3924
|
role: "progressbar",
|
|
3911
3925
|
"aria-label": e.question.progressBarAriaLabel
|
|
3912
|
-
}, null, 14,
|
|
3926
|
+
}, null, 14, mt)
|
|
3913
3927
|
], 2)) : p("", !0),
|
|
3914
3928
|
e.question.showFooterToolbar ? (i(), a("div", {
|
|
3915
3929
|
key: 1,
|
|
@@ -3922,7 +3936,7 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3922
3936
|
], 2)) : p("", !0)
|
|
3923
3937
|
], 2)) : p("", !0);
|
|
3924
3938
|
}
|
|
3925
|
-
}),
|
|
3939
|
+
}), vt = /* @__PURE__ */ y({
|
|
3926
3940
|
__name: "PanelDynamicPlaceholder",
|
|
3927
3941
|
props: {
|
|
3928
3942
|
question: {}
|
|
@@ -3945,11 +3959,11 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3945
3959
|
}
|
|
3946
3960
|
});
|
|
3947
3961
|
function X(u) {
|
|
3948
|
-
return
|
|
3962
|
+
return M(
|
|
3949
3963
|
() => u.item && u.item.data.question || u.data.question
|
|
3950
3964
|
);
|
|
3951
3965
|
}
|
|
3952
|
-
const
|
|
3966
|
+
const Ct = ["id"], ct = /* @__PURE__ */ y({
|
|
3953
3967
|
__name: "PaneldynamicAddBtn",
|
|
3954
3968
|
props: {
|
|
3955
3969
|
item: {},
|
|
@@ -3974,9 +3988,9 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
3974
3988
|
locString: w(n).locAddPanelText
|
|
3975
3989
|
}, null, 8, ["locString"])
|
|
3976
3990
|
], 2)
|
|
3977
|
-
], 10,
|
|
3991
|
+
], 10, Ct)) : p("", !0);
|
|
3978
3992
|
}
|
|
3979
|
-
}),
|
|
3993
|
+
}), gt = ["title"], yt = /* @__PURE__ */ y({
|
|
3980
3994
|
__name: "PaneldynamicNextBtn",
|
|
3981
3995
|
props: {
|
|
3982
3996
|
item: {},
|
|
@@ -3996,9 +4010,9 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
3996
4010
|
iconName: w(n).cssClasses.progressBtnIcon,
|
|
3997
4011
|
size: "auto"
|
|
3998
4012
|
}, null, 8, ["iconName"])
|
|
3999
|
-
], 10,
|
|
4013
|
+
], 10, gt));
|
|
4000
4014
|
}
|
|
4001
|
-
}),
|
|
4015
|
+
}), ht = ["title"], qt = /* @__PURE__ */ y({
|
|
4002
4016
|
__name: "PaneldynamicPrevBtn",
|
|
4003
4017
|
props: {
|
|
4004
4018
|
item: {},
|
|
@@ -4018,16 +4032,16 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4018
4032
|
iconName: w(n).cssClasses.progressBtnIcon,
|
|
4019
4033
|
size: "auto"
|
|
4020
4034
|
}, null, 8, ["iconName"])
|
|
4021
|
-
], 10,
|
|
4035
|
+
], 10, ht));
|
|
4022
4036
|
}
|
|
4023
|
-
}),
|
|
4037
|
+
}), wt = ["id"], bt = /* @__PURE__ */ y({
|
|
4024
4038
|
__name: "PaneldynamicRemoveBtn",
|
|
4025
4039
|
props: {
|
|
4026
4040
|
item: {},
|
|
4027
4041
|
data: {}
|
|
4028
4042
|
},
|
|
4029
4043
|
setup(u) {
|
|
4030
|
-
const e = u, n = X(e), s =
|
|
4044
|
+
const e = u, n = X(e), s = M(
|
|
4031
4045
|
() => e.item && e.item.data.panel || e.data.panel
|
|
4032
4046
|
), o = (l) => n.value.getPanelRemoveButtonId(l), t = (l) => {
|
|
4033
4047
|
n.value.isInputReadOnly || n.value.removePanelUI(l);
|
|
@@ -4049,9 +4063,9 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4049
4063
|
v("span", {
|
|
4050
4064
|
class: r(w(n).cssClasses.iconRemove)
|
|
4051
4065
|
}, null, 2)
|
|
4052
|
-
], 10,
|
|
4066
|
+
], 10, wt));
|
|
4053
4067
|
}
|
|
4054
|
-
}),
|
|
4068
|
+
}), Lt = /* @__PURE__ */ y({
|
|
4055
4069
|
__name: "PaneldynamicProgressText",
|
|
4056
4070
|
props: {
|
|
4057
4071
|
item: {},
|
|
@@ -4063,7 +4077,7 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4063
4077
|
class: r(w(n).cssClasses.progressText)
|
|
4064
4078
|
}, I(w(n).progressText), 3));
|
|
4065
4079
|
}
|
|
4066
|
-
}),
|
|
4080
|
+
}), kt = ["id"], ft = /* @__PURE__ */ y({
|
|
4067
4081
|
__name: "Errors",
|
|
4068
4082
|
props: {
|
|
4069
4083
|
element: {},
|
|
@@ -4080,7 +4094,7 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4080
4094
|
ref_key: "root",
|
|
4081
4095
|
ref: e
|
|
4082
4096
|
}, [
|
|
4083
|
-
(i(!0), a(
|
|
4097
|
+
(i(!0), a(H, null, V(n.element.errors, (o, t) => (i(), g(m, {
|
|
4084
4098
|
is: n.element.survey.questionErrorComponent,
|
|
4085
4099
|
element: n.element,
|
|
4086
4100
|
key: "error_" + t,
|
|
@@ -4088,21 +4102,21 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4088
4102
|
error: o,
|
|
4089
4103
|
cssClasses: n.element.cssClasses
|
|
4090
4104
|
}, null, 8, ["is", "element", "errorKey", "error", "cssClasses"]))), 128))
|
|
4091
|
-
], 10,
|
|
4105
|
+
], 10, kt)) : p("", !0);
|
|
4092
4106
|
}
|
|
4093
|
-
}),
|
|
4107
|
+
}), Ht = { key: 0 }, Mt = /* @__PURE__ */ y({
|
|
4094
4108
|
__name: "QuestionComment",
|
|
4095
4109
|
props: {
|
|
4096
4110
|
question: {}
|
|
4097
4111
|
},
|
|
4098
4112
|
setup(u) {
|
|
4099
|
-
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, {
|
|
4100
4114
|
key: 1,
|
|
4101
4115
|
is: "sv-text-area",
|
|
4102
4116
|
model: e.question.commentTextAreaModel
|
|
4103
4117
|
}, null, 8, ["model"]));
|
|
4104
4118
|
}
|
|
4105
|
-
}),
|
|
4119
|
+
}), It = /* @__PURE__ */ y({
|
|
4106
4120
|
__name: "TitleElement",
|
|
4107
4121
|
props: {
|
|
4108
4122
|
element: {},
|
|
@@ -4155,7 +4169,7 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4155
4169
|
_: 1
|
|
4156
4170
|
}, 40, ["class", "aria-label", "id", "tabindex", "aria-expanded", "role"])) : p("", !0);
|
|
4157
4171
|
}
|
|
4158
|
-
}),
|
|
4172
|
+
}), Vt = { key: 2 }, St = { key: 4 }, Rt = { key: 6 }, Tt = { key: 8 }, Bt = /* @__PURE__ */ y({
|
|
4159
4173
|
inheritAttrs: !1,
|
|
4160
4174
|
__name: "TitleContent",
|
|
4161
4175
|
props: {
|
|
@@ -4163,7 +4177,7 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4163
4177
|
css: {}
|
|
4164
4178
|
},
|
|
4165
4179
|
setup(u) {
|
|
4166
|
-
return (e, n) => (i(), a(
|
|
4180
|
+
return (e, n) => (i(), a(H, null, [
|
|
4167
4181
|
e.element.isTitleRenderedAsString ? (i(), g(m, {
|
|
4168
4182
|
key: 0,
|
|
4169
4183
|
is: "survey-string",
|
|
@@ -4174,26 +4188,26 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4174
4188
|
class: r(e.element.cssRequiredMark),
|
|
4175
4189
|
"aria-hidden": !0
|
|
4176
4190
|
}, I(e.element.requiredMark), 3)) : p("", !0),
|
|
4177
|
-
!e.element.isTitleRenderedAsString && e.element.isRequireTextOnStart ? (i(), a("span",
|
|
4191
|
+
!e.element.isTitleRenderedAsString && e.element.isRequireTextOnStart ? (i(), a("span", Vt, " ")) : p("", !0),
|
|
4178
4192
|
!e.element.isTitleRenderedAsString && e.element.no ? (i(), a("span", {
|
|
4179
4193
|
key: 3,
|
|
4180
4194
|
style: { position: "static" },
|
|
4181
4195
|
class: r(e.element.cssTitleNumber),
|
|
4182
4196
|
"aria-hidden": !0
|
|
4183
4197
|
}, I(e.element.no), 3)) : p("", !0),
|
|
4184
|
-
!e.element.isTitleRenderedAsString && e.element.no ? (i(), a("span",
|
|
4198
|
+
!e.element.isTitleRenderedAsString && e.element.no ? (i(), a("span", St, " ")) : p("", !0),
|
|
4185
4199
|
!e.element.isTitleRenderedAsString && e.element.isRequireTextBeforeTitle ? (i(), a("span", {
|
|
4186
4200
|
key: 5,
|
|
4187
4201
|
class: r(e.element.cssRequiredMark),
|
|
4188
4202
|
"aria-hidden": !0
|
|
4189
4203
|
}, I(e.element.requiredMark), 3)) : p("", !0),
|
|
4190
|
-
!e.element.isTitleRenderedAsString && e.element.isRequireTextBeforeTitle ? (i(), a("span",
|
|
4204
|
+
!e.element.isTitleRenderedAsString && e.element.isRequireTextBeforeTitle ? (i(), a("span", Rt, " ")) : p("", !0),
|
|
4191
4205
|
e.element.isTitleRenderedAsString ? p("", !0) : (i(), g(m, {
|
|
4192
4206
|
key: 7,
|
|
4193
4207
|
is: "survey-string",
|
|
4194
4208
|
locString: e.element.locRenderedTitle
|
|
4195
4209
|
}, null, 8, ["locString"])),
|
|
4196
|
-
!e.element.isTitleRenderedAsString && e.element.isRequireTextAfterTitle ? (i(), a("span",
|
|
4210
|
+
!e.element.isTitleRenderedAsString && e.element.isRequireTextAfterTitle ? (i(), a("span", Tt, " ")) : p("", !0),
|
|
4197
4211
|
!e.element.isTitleRenderedAsString && e.element.isRequireTextAfterTitle ? (i(), a("span", {
|
|
4198
4212
|
key: 9,
|
|
4199
4213
|
class: r(e.element.cssRequiredMark),
|
|
@@ -4201,16 +4215,16 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4201
4215
|
}, I(e.element.requiredMark), 3)) : p("", !0)
|
|
4202
4216
|
], 64));
|
|
4203
4217
|
}
|
|
4204
|
-
}),
|
|
4218
|
+
}), Zt = { class: "sv-title-actions" }, $t = { class: "sv-title-actions__title" }, Dt = /* @__PURE__ */ y({
|
|
4205
4219
|
__name: "TitleActions",
|
|
4206
4220
|
props: {
|
|
4207
4221
|
element: {},
|
|
4208
4222
|
css: {}
|
|
4209
4223
|
},
|
|
4210
4224
|
setup(u) {
|
|
4211
|
-
const e = u, n =
|
|
4212
|
-
return (s, o) => (i(), a("div",
|
|
4213
|
-
v("span",
|
|
4225
|
+
const e = u, n = M(() => e.element.getTitleToolbar());
|
|
4226
|
+
return (s, o) => (i(), a("div", Zt, [
|
|
4227
|
+
v("span", $t, [
|
|
4214
4228
|
s.element.isPage ? (i(), g(m, {
|
|
4215
4229
|
key: 0,
|
|
4216
4230
|
is: "survey-string",
|
|
@@ -4229,20 +4243,20 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4229
4243
|
}, null, 8, ["model"])
|
|
4230
4244
|
]));
|
|
4231
4245
|
}
|
|
4232
|
-
}),
|
|
4246
|
+
}), At = (u, e) => {
|
|
4233
4247
|
const n = u.__vccOpts || u;
|
|
4234
4248
|
for (const [s, o] of e)
|
|
4235
4249
|
n[s] = o;
|
|
4236
4250
|
return n;
|
|
4237
|
-
},
|
|
4238
|
-
|
|
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
|
|
4239
4253
|
];
|
|
4240
|
-
function
|
|
4241
|
-
return i(), a("div",
|
|
4254
|
+
function Ft(u, e) {
|
|
4255
|
+
return i(), a("div", Nt, Wt);
|
|
4242
4256
|
}
|
|
4243
|
-
const
|
|
4244
|
-
|
|
4245
|
-
],
|
|
4257
|
+
const Ot = /* @__PURE__ */ At(Pt, [["render", Ft]]), zt = /* @__PURE__ */ v("use", null, null, -1), Ut = [
|
|
4258
|
+
zt
|
|
4259
|
+
], Qt = /* @__PURE__ */ y({
|
|
4246
4260
|
__name: "SvgIcon",
|
|
4247
4261
|
props: {
|
|
4248
4262
|
size: {},
|
|
@@ -4264,16 +4278,16 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4264
4278
|
};
|
|
4265
4279
|
return z(() => {
|
|
4266
4280
|
s();
|
|
4267
|
-
}),
|
|
4281
|
+
}), B(() => {
|
|
4268
4282
|
s();
|
|
4269
4283
|
}), (o, t) => (i(), a("svg", {
|
|
4270
4284
|
ref_key: "svgIconElement",
|
|
4271
4285
|
ref: n,
|
|
4272
4286
|
class: "sv-svg-icon",
|
|
4273
4287
|
role: "presentation"
|
|
4274
|
-
},
|
|
4288
|
+
}, Ut, 512));
|
|
4275
4289
|
}
|
|
4276
|
-
}),
|
|
4290
|
+
}), Kt = /* @__PURE__ */ y({
|
|
4277
4291
|
__name: "QuestionError",
|
|
4278
4292
|
props: {
|
|
4279
4293
|
errorKey: {},
|
|
@@ -4301,7 +4315,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4301
4315
|
], 2)
|
|
4302
4316
|
]));
|
|
4303
4317
|
}
|
|
4304
|
-
}),
|
|
4318
|
+
}), jt = /* @__PURE__ */ y({
|
|
4305
4319
|
__name: "ActionBar",
|
|
4306
4320
|
props: {
|
|
4307
4321
|
model: {},
|
|
@@ -4315,13 +4329,13 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4315
4329
|
S(() => e.model, void 0, (l) => {
|
|
4316
4330
|
l.resetResponsivityManager();
|
|
4317
4331
|
});
|
|
4318
|
-
const o =
|
|
4332
|
+
const o = se(() => e.model.renderedActions);
|
|
4319
4333
|
function t() {
|
|
4320
4334
|
e.model.hasVisibleActions && e.model.initResponsivityManager(n.value);
|
|
4321
4335
|
}
|
|
4322
4336
|
return z(() => {
|
|
4323
4337
|
t();
|
|
4324
|
-
}),
|
|
4338
|
+
}), B(() => {
|
|
4325
4339
|
t();
|
|
4326
4340
|
}), (l, d) => l.model.hasActions ? (i(), a("div", {
|
|
4327
4341
|
key: 0,
|
|
@@ -4331,23 +4345,23 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4331
4345
|
class: r(l.model.getRootCss()),
|
|
4332
4346
|
onClick: s
|
|
4333
4347
|
}, [
|
|
4334
|
-
(i(!0), a(
|
|
4348
|
+
(i(!0), a(H, null, V(w(o), (C) => (i(), g(m, {
|
|
4335
4349
|
is: "sv-action",
|
|
4336
4350
|
key: C.renderedId,
|
|
4337
4351
|
item: C
|
|
4338
4352
|
}, null, 8, ["item"]))), 128))
|
|
4339
4353
|
], 6)) : p("", !0);
|
|
4340
4354
|
}
|
|
4341
|
-
}),
|
|
4355
|
+
}), Gt = ["id"], Xt = { class: "sv-action__content" }, Jt = /* @__PURE__ */ y({
|
|
4342
4356
|
__name: "Action",
|
|
4343
4357
|
props: {
|
|
4344
4358
|
item: {}
|
|
4345
4359
|
},
|
|
4346
4360
|
setup(u) {
|
|
4347
|
-
const e = f(), n = u, s =
|
|
4361
|
+
const e = f(), n = u, s = M(
|
|
4348
4362
|
() => n.item.component || "sv-action-bar-item"
|
|
4349
4363
|
);
|
|
4350
|
-
return S(() => n.item),
|
|
4364
|
+
return S(() => n.item), B(() => {
|
|
4351
4365
|
const o = n.item;
|
|
4352
4366
|
o.updateModeCallback = (t, l) => {
|
|
4353
4367
|
o.mode = t, ye(() => {
|
|
@@ -4363,7 +4377,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4363
4377
|
ref_key: "root",
|
|
4364
4378
|
ref: e
|
|
4365
4379
|
}, [
|
|
4366
|
-
v("div",
|
|
4380
|
+
v("div", Xt, [
|
|
4367
4381
|
o.item.needSeparator ? (i(), g(m, {
|
|
4368
4382
|
key: 0,
|
|
4369
4383
|
is: "sv-action-bar-separator"
|
|
@@ -4373,7 +4387,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4373
4387
|
item: o.item
|
|
4374
4388
|
}, null, 8, ["is", "item"])
|
|
4375
4389
|
])
|
|
4376
|
-
], 10,
|
|
4390
|
+
], 10, Gt));
|
|
4377
4391
|
}
|
|
4378
4392
|
}), Q = {
|
|
4379
4393
|
mounted: function(u, e) {
|
|
@@ -4393,17 +4407,17 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4393
4407
|
Ue(s);
|
|
4394
4408
|
});
|
|
4395
4409
|
}
|
|
4396
|
-
},
|
|
4410
|
+
}, Yt = ["disabled", "title", "aria-checked", "aria-expanded", "role"], _t = {
|
|
4397
4411
|
inheritAttrs: !1
|
|
4398
|
-
},
|
|
4399
|
-
...
|
|
4412
|
+
}, xt = /* @__PURE__ */ y({
|
|
4413
|
+
..._t,
|
|
4400
4414
|
__name: "ActionBarItem",
|
|
4401
4415
|
props: {
|
|
4402
4416
|
item: {}
|
|
4403
4417
|
},
|
|
4404
4418
|
setup(u) {
|
|
4405
4419
|
const e = u;
|
|
4406
|
-
return S(() => e.item), (n, s) =>
|
|
4420
|
+
return S(() => e.item), (n, s) => Z((i(), a("button", {
|
|
4407
4421
|
class: r(n.item.getActionBarItemCss()),
|
|
4408
4422
|
type: "button",
|
|
4409
4423
|
onClick: s[0] || (s[0] = (o) => {
|
|
@@ -4436,14 +4450,14 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4436
4450
|
key: 1,
|
|
4437
4451
|
class: r(n.item.getActionBarItemTitleCss())
|
|
4438
4452
|
}, I(n.item.title), 3)) : p("", !0)
|
|
4439
|
-
], 42,
|
|
4453
|
+
], 42, Yt)), [
|
|
4440
4454
|
[w(Q), { processEsc: !1, disableTabStop: n.item.disableTabStop }]
|
|
4441
4455
|
]);
|
|
4442
4456
|
}
|
|
4443
|
-
}),
|
|
4457
|
+
}), eo = ["disabled", "title", "role"], so = {
|
|
4444
4458
|
inheritAttrs: !1
|
|
4445
|
-
},
|
|
4446
|
-
...
|
|
4459
|
+
}, no = /* @__PURE__ */ y({
|
|
4460
|
+
...so,
|
|
4447
4461
|
__name: "ActionBarItemDropdown",
|
|
4448
4462
|
props: {
|
|
4449
4463
|
item: {}
|
|
@@ -4459,8 +4473,8 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4459
4473
|
() => {
|
|
4460
4474
|
n.dispose();
|
|
4461
4475
|
}
|
|
4462
|
-
), (s, o) => (i(), a(
|
|
4463
|
-
|
|
4476
|
+
), (s, o) => (i(), a(H, null, [
|
|
4477
|
+
Z((i(), a("button", {
|
|
4464
4478
|
type: "button",
|
|
4465
4479
|
class: r(s.item.getActionBarItemCss()),
|
|
4466
4480
|
onClick: o[0] || (o[0] = (t) => {
|
|
@@ -4485,7 +4499,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4485
4499
|
key: 1,
|
|
4486
4500
|
class: r(s.item.getActionBarItemTitleCss())
|
|
4487
4501
|
}, I(s.item.title), 3)) : p("", !0)
|
|
4488
|
-
], 42,
|
|
4502
|
+
], 42, eo)), [
|
|
4489
4503
|
[w(Q), { processEsc: !1, disableTabStop: s.item.disableTabStop }]
|
|
4490
4504
|
]),
|
|
4491
4505
|
c(m, {
|
|
@@ -4494,18 +4508,18 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4494
4508
|
}, null, 8, ["model"])
|
|
4495
4509
|
], 64));
|
|
4496
4510
|
}
|
|
4497
|
-
}),
|
|
4511
|
+
}), to = /* @__PURE__ */ y({
|
|
4498
4512
|
__name: "ActionBarSeparator",
|
|
4499
4513
|
props: {
|
|
4500
4514
|
item: {}
|
|
4501
4515
|
},
|
|
4502
4516
|
setup(u) {
|
|
4503
|
-
const e = u, n =
|
|
4517
|
+
const e = u, n = M(() => e.item && e.item.innerCss);
|
|
4504
4518
|
return (s, o) => (i(), a("div", {
|
|
4505
4519
|
class: r(["sv-action-bar-separator", n.value])
|
|
4506
4520
|
}, null, 2));
|
|
4507
4521
|
}
|
|
4508
|
-
}),
|
|
4522
|
+
}), oo = ["aria-label", "placeholder", "value"], io = ["aria-label"], ro = ["role", "aria-label", "id"], lo = /* @__PURE__ */ y({
|
|
4509
4523
|
__name: "List",
|
|
4510
4524
|
props: {
|
|
4511
4525
|
model: {}
|
|
@@ -4519,8 +4533,8 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4519
4533
|
C.filterString = d.target.value, e.model.goToItems(d);
|
|
4520
4534
|
}, t = (d) => {
|
|
4521
4535
|
e.model.onMouseMove(d);
|
|
4522
|
-
}, l =
|
|
4523
|
-
return S(() => e.model),
|
|
4536
|
+
}, l = se(() => e.model.renderedActions);
|
|
4537
|
+
return S(() => e.model), B(() => {
|
|
4524
4538
|
e.model.initListContainerHtmlElement(n.value);
|
|
4525
4539
|
}), P(() => {
|
|
4526
4540
|
e.model && (e.model.removeScrollEventListener(), e.model.initListContainerHtmlElement(void 0));
|
|
@@ -4550,7 +4564,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4550
4564
|
value: d.model.filterString,
|
|
4551
4565
|
onChange: s,
|
|
4552
4566
|
onKeyup: o
|
|
4553
|
-
}, null, 42,
|
|
4567
|
+
}, null, 42, oo),
|
|
4554
4568
|
d.model.showSearchClearButton && d.model.filterString ? (i(), a("button", {
|
|
4555
4569
|
key: 0,
|
|
4556
4570
|
onClick: C[0] || (C[0] = (L) => {
|
|
@@ -4565,17 +4579,17 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4565
4579
|
})
|
|
4566
4580
|
], 2)) : p("", !0)
|
|
4567
4581
|
], 2)) : p("", !0),
|
|
4568
|
-
|
|
4582
|
+
Z(v("div", {
|
|
4569
4583
|
class: r(d.model.cssClasses.emptyContainer)
|
|
4570
4584
|
}, [
|
|
4571
4585
|
v("div", {
|
|
4572
4586
|
class: r(d.model.cssClasses.emptyText),
|
|
4573
4587
|
"aria-label": d.model.emptyMessage
|
|
4574
|
-
}, I(d.model.emptyMessage), 11,
|
|
4588
|
+
}, I(d.model.emptyMessage), 11, io)
|
|
4575
4589
|
], 2), [
|
|
4576
4590
|
[A, d.model.isEmpty]
|
|
4577
4591
|
]),
|
|
4578
|
-
d.model.renderElements ?
|
|
4592
|
+
d.model.renderElements ? Z((i(), a("ul", {
|
|
4579
4593
|
key: 1,
|
|
4580
4594
|
class: r(d.model.getListClass()),
|
|
4581
4595
|
role: d.model.listRole,
|
|
@@ -4589,36 +4603,36 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4589
4603
|
d.model.onKeyDown(L);
|
|
4590
4604
|
})
|
|
4591
4605
|
}, [
|
|
4592
|
-
(i(!0), a(
|
|
4606
|
+
(i(!0), a(H, null, V(w(l), (L) => (i(), g(m, {
|
|
4593
4607
|
is: "sv-list-item",
|
|
4594
4608
|
item: L,
|
|
4595
4609
|
model: d.model,
|
|
4596
4610
|
key: L.id
|
|
4597
4611
|
}, null, 8, ["item", "model"]))), 128))
|
|
4598
|
-
], 42,
|
|
4612
|
+
], 42, ro)), [
|
|
4599
4613
|
[A, !d.model.isEmpty]
|
|
4600
4614
|
]) : p("", !0)
|
|
4601
4615
|
], 2));
|
|
4602
4616
|
}
|
|
4603
|
-
}),
|
|
4617
|
+
}), ao = ["role", "aria-selected", "aria-checked", "id", "tabindex"], uo = ["title"], mo = /* @__PURE__ */ y({
|
|
4604
4618
|
__name: "ListItem",
|
|
4605
4619
|
props: {
|
|
4606
4620
|
model: {},
|
|
4607
4621
|
item: {}
|
|
4608
4622
|
},
|
|
4609
4623
|
setup(u) {
|
|
4610
|
-
const e = u, n =
|
|
4624
|
+
const e = u, n = M(() => e.item.elementId), s = (t) => {
|
|
4611
4625
|
e.model.onItemClick(e.item), t.stopPropagation();
|
|
4612
4626
|
};
|
|
4613
4627
|
S(() => e.item);
|
|
4614
|
-
const o =
|
|
4628
|
+
const o = M(
|
|
4615
4629
|
() => e.item.component || e.model.itemComponent
|
|
4616
4630
|
);
|
|
4617
|
-
return
|
|
4631
|
+
return B(() => {
|
|
4618
4632
|
setTimeout(() => {
|
|
4619
4633
|
e.model.onLastItemRended(e.item);
|
|
4620
4634
|
});
|
|
4621
|
-
}), (t, l) =>
|
|
4635
|
+
}), (t, l) => Z((i(), a("li", {
|
|
4622
4636
|
role: t.model.listItemRole,
|
|
4623
4637
|
"aria-selected": t.model.getA11yItemAriaSelected(t.item),
|
|
4624
4638
|
"aria-checked": t.model.getA11yItemAriaChecked(t.item),
|
|
@@ -4645,13 +4659,13 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4645
4659
|
item: t.item,
|
|
4646
4660
|
model: t.model
|
|
4647
4661
|
}, null, 8, ["is", "item", "model"])
|
|
4648
|
-
], 46,
|
|
4649
|
-
], 42,
|
|
4662
|
+
], 46, uo)
|
|
4663
|
+
], 42, ao)), [
|
|
4650
4664
|
[A, t.model.isItemVisible(t.item)],
|
|
4651
4665
|
[w(Q), { processEsc: !1, disableTabStop: t.item.disableTabStop }]
|
|
4652
4666
|
]);
|
|
4653
4667
|
}
|
|
4654
|
-
}),
|
|
4668
|
+
}), po = /* @__PURE__ */ y({
|
|
4655
4669
|
__name: "ListItemContent",
|
|
4656
4670
|
props: {
|
|
4657
4671
|
model: {},
|
|
@@ -4659,7 +4673,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4659
4673
|
},
|
|
4660
4674
|
setup(u) {
|
|
4661
4675
|
const e = u;
|
|
4662
|
-
return S(() => e.item), (n, s) => (i(), a(
|
|
4676
|
+
return S(() => e.item), (n, s) => (i(), a(H, null, [
|
|
4663
4677
|
n.item.iconName ? (i(), g(m, {
|
|
4664
4678
|
key: 0,
|
|
4665
4679
|
is: "sv-svg-icon",
|
|
@@ -4680,7 +4694,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4680
4694
|
}, null, 8, ["class", "iconName"])) : p("", !0)
|
|
4681
4695
|
], 64));
|
|
4682
4696
|
}
|
|
4683
|
-
}),
|
|
4697
|
+
}), vo = /* @__PURE__ */ y({
|
|
4684
4698
|
__name: "ListItemGroup",
|
|
4685
4699
|
props: {
|
|
4686
4700
|
model: {},
|
|
@@ -4688,7 +4702,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4688
4702
|
},
|
|
4689
4703
|
setup(u) {
|
|
4690
4704
|
const e = u;
|
|
4691
|
-
return S(() => e.item), (n, s) => (i(), a(
|
|
4705
|
+
return S(() => e.item), (n, s) => (i(), a(H, null, [
|
|
4692
4706
|
c(m, {
|
|
4693
4707
|
is: "sv-list-item-content",
|
|
4694
4708
|
item: n.item,
|
|
@@ -4700,7 +4714,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4700
4714
|
}, null, 8, ["model"])
|
|
4701
4715
|
], 64));
|
|
4702
4716
|
}
|
|
4703
|
-
}),
|
|
4717
|
+
}), Co = /* @__PURE__ */ y({
|
|
4704
4718
|
__name: "Popup",
|
|
4705
4719
|
props: {
|
|
4706
4720
|
model: {}
|
|
@@ -4716,7 +4730,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4716
4730
|
n.value && n.value.dispose(), n.value = Ke(t), o();
|
|
4717
4731
|
},
|
|
4718
4732
|
{ immediate: !0 }
|
|
4719
|
-
), S(() => n.value),
|
|
4733
|
+
), S(() => n.value), B(() => {
|
|
4720
4734
|
o();
|
|
4721
4735
|
}), P(() => {
|
|
4722
4736
|
n.value.dispose();
|
|
@@ -4730,13 +4744,13 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4730
4744
|
}, null, 8, ["model"])
|
|
4731
4745
|
], 512));
|
|
4732
4746
|
}
|
|
4733
|
-
}),
|
|
4747
|
+
}), co = { class: "sv-popup__body-content" }, go = {
|
|
4734
4748
|
key: 0,
|
|
4735
4749
|
class: "sv-popup__body-header"
|
|
4736
|
-
},
|
|
4750
|
+
}, yo = { class: "sv-popup__scrolling-content" }, ho = { class: "sv-popup__content" }, qo = {
|
|
4737
4751
|
key: 1,
|
|
4738
4752
|
class: "sv-popup__body-footer"
|
|
4739
|
-
},
|
|
4753
|
+
}, wo = /* @__PURE__ */ y({
|
|
4740
4754
|
__name: "PopupContainer",
|
|
4741
4755
|
props: {
|
|
4742
4756
|
model: {}
|
|
@@ -4748,9 +4762,9 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4748
4762
|
return S(() => e.model), z(() => {
|
|
4749
4763
|
const s = e.model;
|
|
4750
4764
|
s.isVisible && !s.isPositionSet && e.model.updateOnShowing();
|
|
4751
|
-
}),
|
|
4765
|
+
}), B(() => {
|
|
4752
4766
|
e.model.isVisible && e.model.updateOnShowing();
|
|
4753
|
-
}), (s, o) =>
|
|
4767
|
+
}), (s, o) => Z((i(), a("div", {
|
|
4754
4768
|
tabindex: "-1",
|
|
4755
4769
|
class: r(["sv-popup", s.model.styleClass]),
|
|
4756
4770
|
onKeydown: o[0] || (o[0] = (t) => {
|
|
@@ -4776,16 +4790,16 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4776
4790
|
is: s.model.popupHeaderTemplate,
|
|
4777
4791
|
model: s.model
|
|
4778
4792
|
}, null, 8, ["is", "model"])) : p("", !0),
|
|
4779
|
-
v("div",
|
|
4780
|
-
s.model.title ? (i(), a("div",
|
|
4781
|
-
v("div",
|
|
4782
|
-
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, [
|
|
4783
4797
|
c(m, $({
|
|
4784
4798
|
is: s.model.contentComponentName
|
|
4785
4799
|
}, s.model.contentComponentData), null, 16, ["is"])
|
|
4786
4800
|
])
|
|
4787
4801
|
]),
|
|
4788
|
-
s.model.showFooter ? (i(), a("div",
|
|
4802
|
+
s.model.showFooter ? (i(), a("div", qo, [
|
|
4789
4803
|
c(m, {
|
|
4790
4804
|
is: "sv-action-bar",
|
|
4791
4805
|
model: s.model.footerToolbar
|
|
@@ -4797,7 +4811,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4797
4811
|
[A, s.model.isVisible]
|
|
4798
4812
|
]);
|
|
4799
4813
|
}
|
|
4800
|
-
}),
|
|
4814
|
+
}), bo = /* @__PURE__ */ y({
|
|
4801
4815
|
__name: "PopupPointer",
|
|
4802
4816
|
props: {
|
|
4803
4817
|
model: {}
|
|
@@ -4811,7 +4825,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4811
4825
|
})
|
|
4812
4826
|
}, null, 4));
|
|
4813
4827
|
}
|
|
4814
|
-
}),
|
|
4828
|
+
}), Lo = /* @__PURE__ */ y({
|
|
4815
4829
|
__name: "Container",
|
|
4816
4830
|
props: {
|
|
4817
4831
|
survey: {},
|
|
@@ -4819,22 +4833,22 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4819
4833
|
needRenderWrapper: {}
|
|
4820
4834
|
},
|
|
4821
4835
|
setup(u) {
|
|
4822
|
-
const e = u, n =
|
|
4836
|
+
const e = u, n = M(
|
|
4823
4837
|
() => e.survey.getContainerContent(e.container)
|
|
4824
4838
|
);
|
|
4825
|
-
return (s, o) => n.value.length > 0 ? (i(), a(
|
|
4839
|
+
return (s, o) => n.value.length > 0 ? (i(), a(H, { key: 0 }, [
|
|
4826
4840
|
s.needRenderWrapper ? (i(), a("div", {
|
|
4827
4841
|
key: 0,
|
|
4828
4842
|
class: r(["sv-components-column", "sv-components-container-" + s.container])
|
|
4829
4843
|
}, [
|
|
4830
|
-
(i(!0), a(
|
|
4844
|
+
(i(!0), a(H, null, V(n.value, (t) => (i(), g(m, {
|
|
4831
4845
|
key: t.id,
|
|
4832
4846
|
is: t.component,
|
|
4833
4847
|
survey: s.survey,
|
|
4834
4848
|
container: s.container,
|
|
4835
4849
|
model: t.data
|
|
4836
4850
|
}, null, 8, ["is", "survey", "container", "model"]))), 128))
|
|
4837
|
-
], 2)) : (i(!0), a(
|
|
4851
|
+
], 2)) : (i(!0), a(H, { key: 1 }, V(n.value, (t) => (i(), g(m, {
|
|
4838
4852
|
key: t.id,
|
|
4839
4853
|
is: t.component,
|
|
4840
4854
|
survey: s.survey,
|
|
@@ -4843,7 +4857,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4843
4857
|
}, null, 8, ["is", "survey", "container", "model"]))), 128))
|
|
4844
4858
|
], 64)) : p("", !0);
|
|
4845
4859
|
}
|
|
4846
|
-
}),
|
|
4860
|
+
}), ko = ["aria-label"], Y = /* @__PURE__ */ y({
|
|
4847
4861
|
__name: "Progress",
|
|
4848
4862
|
props: {
|
|
4849
4863
|
survey: {},
|
|
@@ -4851,7 +4865,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4851
4865
|
css: {}
|
|
4852
4866
|
},
|
|
4853
4867
|
setup(u) {
|
|
4854
|
-
const e = u, n =
|
|
4868
|
+
const e = u, n = M(() => e.survey.progressValue + "%"), s = (t) => pe.getProgressTextInBarCss(t), o = (t) => pe.getProgressTextUnderBarCss(t);
|
|
4855
4869
|
return (t, l) => (i(), a("div", {
|
|
4856
4870
|
class: r(t.survey.getProgressCssClasses(t.container))
|
|
4857
4871
|
}, [
|
|
@@ -4866,13 +4880,13 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4866
4880
|
v("span", {
|
|
4867
4881
|
class: r(s(t.survey.css))
|
|
4868
4882
|
}, I(t.survey.progressText), 3)
|
|
4869
|
-
], 14,
|
|
4883
|
+
], 14, ko),
|
|
4870
4884
|
v("span", {
|
|
4871
4885
|
class: r(o(t.survey.css))
|
|
4872
4886
|
}, I(t.survey.progressText), 3)
|
|
4873
4887
|
], 2));
|
|
4874
4888
|
}
|
|
4875
|
-
}),
|
|
4889
|
+
}), fo = ["aria-label"], Ho = ["title"], Mo = ["onClick", "data-page-number"], Io = ["title"], Vo = ["title"], So = ["title"], Ro = /* @__PURE__ */ y({
|
|
4876
4890
|
__name: "ProgressButtons",
|
|
4877
4891
|
props: {
|
|
4878
4892
|
survey: {},
|
|
@@ -4880,13 +4894,13 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4880
4894
|
container: {}
|
|
4881
4895
|
},
|
|
4882
4896
|
setup(u) {
|
|
4883
|
-
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);
|
|
4884
4898
|
let C = null;
|
|
4885
4899
|
const L = (h) => {
|
|
4886
4900
|
let q = l.value;
|
|
4887
4901
|
q.scrollLeft += (h ? -1 : 1) * 70;
|
|
4888
4902
|
};
|
|
4889
|
-
return
|
|
4903
|
+
return B(() => {
|
|
4890
4904
|
const h = l.value;
|
|
4891
4905
|
C = new je(e.model, h, {
|
|
4892
4906
|
onResize: (q) => {
|
|
@@ -4898,7 +4912,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4898
4912
|
onUpdateSettings: () => {
|
|
4899
4913
|
t.value = e.model.showItemTitles, o.value = !e.model.showItemTitles;
|
|
4900
4914
|
},
|
|
4901
|
-
container:
|
|
4915
|
+
container: M(() => e.container)
|
|
4902
4916
|
});
|
|
4903
4917
|
}), O(() => {
|
|
4904
4918
|
C.dispose();
|
|
@@ -4917,7 +4931,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4917
4931
|
v("div", {
|
|
4918
4932
|
class: r(h.survey.css.progressButtonsPageTitle),
|
|
4919
4933
|
title: h.model.headerText
|
|
4920
|
-
}, I(h.model.headerText), 11,
|
|
4934
|
+
}, I(h.model.headerText), 11, Ho)
|
|
4921
4935
|
], 2)) : p("", !0),
|
|
4922
4936
|
v("div", {
|
|
4923
4937
|
class: r(d.value.progressButtonsContainer)
|
|
@@ -4935,7 +4949,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4935
4949
|
v("ul", {
|
|
4936
4950
|
class: r(d.value.progressButtonsList)
|
|
4937
4951
|
}, [
|
|
4938
|
-
(i(!0), a(
|
|
4952
|
+
(i(!0), a(H, null, V(h.survey.visiblePages, (b, R) => (i(), a("li", {
|
|
4939
4953
|
key: "listelement" + R,
|
|
4940
4954
|
class: r(h.model.getListElementCss(R)),
|
|
4941
4955
|
onClick: (N) => h.model.isListElementClickable(R) ? h.model.clickListElement(b) : null,
|
|
@@ -4953,12 +4967,12 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4953
4967
|
is: "survey-string",
|
|
4954
4968
|
locString: b.locNavigationTitle
|
|
4955
4969
|
}, null, 8, ["locString"])
|
|
4956
|
-
], 10,
|
|
4970
|
+
], 10, Io)) : p("", !0),
|
|
4957
4971
|
t.value ? (i(), a("div", {
|
|
4958
4972
|
key: 1,
|
|
4959
4973
|
class: r(d.value.progressButtonsPageDescription),
|
|
4960
4974
|
title: b.locNavigationDescription.renderedHtml
|
|
4961
|
-
}, I(b.locNavigationDescription.renderedHtml), 11,
|
|
4975
|
+
}, I(b.locNavigationDescription.renderedHtml), 11, Vo)) : p("", !0),
|
|
4962
4976
|
v("div", {
|
|
4963
4977
|
class: r(d.value.progressButtonsButton)
|
|
4964
4978
|
}, [
|
|
@@ -4970,7 +4984,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4970
4984
|
}, null, 2),
|
|
4971
4985
|
v("span", null, I(h.model.getItemNumber(b)), 1)
|
|
4972
4986
|
], 2)
|
|
4973
|
-
], 10,
|
|
4987
|
+
], 10, Mo))), 128))
|
|
4974
4988
|
], 2)
|
|
4975
4989
|
], 2),
|
|
4976
4990
|
v("div", {
|
|
@@ -4986,11 +5000,11 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4986
5000
|
v("div", {
|
|
4987
5001
|
class: r(h.survey.css.progressButtonsPageTitle),
|
|
4988
5002
|
title: h.model.footerText
|
|
4989
|
-
}, I(h.model.footerText), 11,
|
|
5003
|
+
}, I(h.model.footerText), 11, So)
|
|
4990
5004
|
], 2)) : p("", !0)
|
|
4991
|
-
], 14,
|
|
5005
|
+
], 14, fo));
|
|
4992
5006
|
}
|
|
4993
|
-
}),
|
|
5007
|
+
}), To = /* @__PURE__ */ y({
|
|
4994
5008
|
__name: "ProgressToc",
|
|
4995
5009
|
props: {
|
|
4996
5010
|
survey: {},
|
|
@@ -4998,12 +5012,12 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4998
5012
|
},
|
|
4999
5013
|
setup(u) {
|
|
5000
5014
|
const e = u;
|
|
5001
|
-
return
|
|
5015
|
+
return B(() => {
|
|
5002
5016
|
e.model.updateStickyTOCSize(e.survey.rootElement);
|
|
5003
5017
|
}), (n, s) => (i(), a("div", {
|
|
5004
5018
|
class: r(n.model.containerCss)
|
|
5005
5019
|
}, [
|
|
5006
|
-
n.model.isMobile ?
|
|
5020
|
+
n.model.isMobile ? Z((i(), a("div", {
|
|
5007
5021
|
key: 0,
|
|
5008
5022
|
onClick: s[0] || (s[0] = //@ts-ignore
|
|
5009
5023
|
(...o) => n.model.togglePopup && n.model.togglePopup(...o))
|
|
@@ -5028,11 +5042,11 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
5028
5042
|
}
|
|
5029
5043
|
});
|
|
5030
5044
|
/*!
|
|
5031
|
-
* surveyjs - Survey JavaScript library v2.2.
|
|
5045
|
+
* surveyjs - Survey JavaScript library v2.2.6
|
|
5032
5046
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
5033
5047
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5034
5048
|
*/
|
|
5035
|
-
var
|
|
5049
|
+
var Bo = {
|
|
5036
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>',
|
|
5037
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>',
|
|
5038
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>',
|
|
@@ -5096,7 +5110,7 @@ var To = {
|
|
|
5096
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>'
|
|
5097
5111
|
};
|
|
5098
5112
|
/*!
|
|
5099
|
-
* surveyjs - Survey JavaScript library v2.2.
|
|
5113
|
+
* surveyjs - Survey JavaScript library v2.2.6
|
|
5100
5114
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
5101
5115
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5102
5116
|
*/
|
|
@@ -5163,11 +5177,11 @@ var ke = {
|
|
|
5163
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>',
|
|
5164
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>'
|
|
5165
5179
|
};
|
|
5166
|
-
const
|
|
5180
|
+
const Zo = ["lang", "dir"], $o = { onsubmit: "return false;" }, Do = {
|
|
5167
5181
|
key: 0,
|
|
5168
5182
|
class: "sv_custom_header"
|
|
5169
|
-
},
|
|
5170
|
-
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);
|
|
5171
5185
|
we("v2", ke);
|
|
5172
5186
|
_.registerIcons(ke);
|
|
5173
5187
|
const ae = /* @__PURE__ */ y({
|
|
@@ -5177,15 +5191,15 @@ const ae = /* @__PURE__ */ y({
|
|
|
5177
5191
|
survey: {}
|
|
5178
5192
|
},
|
|
5179
5193
|
setup(u) {
|
|
5180
|
-
const e = u, n = f(), s = f(""), o = f(1), t =
|
|
5194
|
+
const e = u, n = f(), s = f(""), o = f(1), t = M(() => {
|
|
5181
5195
|
const R = e.survey ? e.survey : e.model;
|
|
5182
5196
|
return De(R);
|
|
5183
|
-
}), l =
|
|
5197
|
+
}), l = M(() => t.value.activePage ? t.value.activePage.id : ""), d = () => {
|
|
5184
5198
|
const R = l.value;
|
|
5185
5199
|
return !!t.value && R + o.value.toString();
|
|
5186
|
-
}, C =
|
|
5200
|
+
}, C = M(
|
|
5187
5201
|
() => t.value.showCompletedPage && t.value.state === "completed"
|
|
5188
|
-
), 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) => {
|
|
5189
5203
|
if (R) {
|
|
5190
5204
|
var N = n.value;
|
|
5191
5205
|
N && R.afterRenderSurvey(N), R.renderCallback = () => {
|
|
@@ -5202,7 +5216,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5202
5216
|
(R) => {
|
|
5203
5217
|
R.stopTimer(), R.renderCallback = void 0;
|
|
5204
5218
|
}
|
|
5205
|
-
),
|
|
5219
|
+
), B(() => {
|
|
5206
5220
|
b(t.value);
|
|
5207
5221
|
}), P(() => {
|
|
5208
5222
|
t.value.stopTimer(), t.value.beforeDestroySurveyElement(), t.value.renderCallback = void 0;
|
|
@@ -5232,13 +5246,13 @@ const ae = /* @__PURE__ */ y({
|
|
|
5232
5246
|
class: r(L.value.rootBackgroundImage),
|
|
5233
5247
|
style: k(t.value.backgroundImageStyle)
|
|
5234
5248
|
}, null, 6)) : p("", !0),
|
|
5235
|
-
v("form",
|
|
5249
|
+
v("form", $o, [
|
|
5236
5250
|
c(m, {
|
|
5237
5251
|
is: "sv-scroll",
|
|
5238
5252
|
disabled: t.value.formScrollDisabled
|
|
5239
5253
|
}, {
|
|
5240
5254
|
default: D(() => [
|
|
5241
|
-
t.value.hasLogo ? p("", !0) : (i(), a("div",
|
|
5255
|
+
t.value.hasLogo ? p("", !0) : (i(), a("div", Do)),
|
|
5242
5256
|
v("div", {
|
|
5243
5257
|
class: r(L.value.container)
|
|
5244
5258
|
}, [
|
|
@@ -5263,7 +5277,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5263
5277
|
container: "left",
|
|
5264
5278
|
needRenderWrapper: !0
|
|
5265
5279
|
}, null, 8, ["survey"]),
|
|
5266
|
-
v("div",
|
|
5280
|
+
v("div", Ao, [
|
|
5267
5281
|
c(m, {
|
|
5268
5282
|
is: "sv-components-container",
|
|
5269
5283
|
survey: t.value,
|
|
@@ -5298,7 +5312,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5298
5312
|
key: 0,
|
|
5299
5313
|
is: "sv-brand-info"
|
|
5300
5314
|
})) : p("", !0)
|
|
5301
|
-
], 14,
|
|
5315
|
+
], 14, Po)
|
|
5302
5316
|
]),
|
|
5303
5317
|
c(m, {
|
|
5304
5318
|
is: "sv-components-container",
|
|
@@ -5313,11 +5327,11 @@ const ae = /* @__PURE__ */ y({
|
|
|
5313
5327
|
container: "footer",
|
|
5314
5328
|
needRenderWrapper: !1
|
|
5315
5329
|
}, null, 8, ["survey"]),
|
|
5316
|
-
C.value ? (i(), a("div",
|
|
5330
|
+
C.value ? (i(), a("div", No, [
|
|
5317
5331
|
v("div", {
|
|
5318
5332
|
innerHTML: q(),
|
|
5319
5333
|
class: r(t.value.completedCss)
|
|
5320
|
-
}, null, 10,
|
|
5334
|
+
}, null, 10, Eo),
|
|
5321
5335
|
c(m, {
|
|
5322
5336
|
is: "sv-components-container",
|
|
5323
5337
|
survey: t.value,
|
|
@@ -5329,12 +5343,12 @@ const ae = /* @__PURE__ */ y({
|
|
|
5329
5343
|
key: 3,
|
|
5330
5344
|
class: r(t.value.completedBeforeCss),
|
|
5331
5345
|
innerHTML: t.value.processedCompletedBeforeHtml
|
|
5332
|
-
}, null, 10,
|
|
5346
|
+
}, null, 10, Wo)) : p("", !0),
|
|
5333
5347
|
t.value.state === "loading" ? (i(), a("div", {
|
|
5334
5348
|
key: 4,
|
|
5335
5349
|
class: r(t.value.loadingBodyCss),
|
|
5336
5350
|
innerHTML: t.value.processedLoadingHtml
|
|
5337
|
-
}, null, 10,
|
|
5351
|
+
}, null, 10, Fo)) : p("", !0),
|
|
5338
5352
|
t.value.state === "empty" ? (i(), a("div", {
|
|
5339
5353
|
key: 5,
|
|
5340
5354
|
class: r(L.value.bodyEmpty)
|
|
@@ -5352,9 +5366,9 @@ const ae = /* @__PURE__ */ y({
|
|
|
5352
5366
|
]),
|
|
5353
5367
|
_: 1
|
|
5354
5368
|
}, 8, ["disabled"])
|
|
5355
|
-
], 14,
|
|
5369
|
+
], 14, Zo));
|
|
5356
5370
|
}
|
|
5357
|
-
}),
|
|
5371
|
+
}), Oo = /* @__PURE__ */ y({
|
|
5358
5372
|
__name: "Notifier",
|
|
5359
5373
|
props: {
|
|
5360
5374
|
model: {}
|
|
@@ -5375,23 +5389,24 @@ const ae = /* @__PURE__ */ y({
|
|
|
5375
5389
|
}, null, 8, ["model"])
|
|
5376
5390
|
], 6)) : p("", !0);
|
|
5377
5391
|
}
|
|
5378
|
-
}),
|
|
5392
|
+
}), zo = { key: 0 }, Uo = /* @__PURE__ */ y({
|
|
5379
5393
|
__name: "QuestionOther",
|
|
5380
5394
|
props: {
|
|
5381
|
-
question: {}
|
|
5395
|
+
question: {},
|
|
5396
|
+
item: {}
|
|
5382
5397
|
},
|
|
5383
5398
|
setup(u) {
|
|
5384
5399
|
return (e, n) => (i(), a("div", {
|
|
5385
5400
|
class: r(e.question.getCommentAreaCss(!0))
|
|
5386
5401
|
}, [
|
|
5387
|
-
e.question.isReadOnlyRenderDiv() ? (i(), a("div",
|
|
5402
|
+
e.question.isReadOnlyRenderDiv() ? (i(), a("div", zo, I(e.question.getCommentValue(e.item)), 1)) : (i(), g(m, {
|
|
5388
5403
|
key: 1,
|
|
5389
5404
|
is: "sv-text-area",
|
|
5390
|
-
model: e.question.
|
|
5405
|
+
model: e.question.getCommentTextAreaModel(e.item)
|
|
5391
5406
|
}, null, 8, ["model"]))
|
|
5392
5407
|
], 2));
|
|
5393
5408
|
}
|
|
5394
|
-
}),
|
|
5409
|
+
}), Qo = ["disabled", "value", "title"], Ko = /* @__PURE__ */ y({
|
|
5395
5410
|
__name: "SurveyNavigationButton",
|
|
5396
5411
|
props: {
|
|
5397
5412
|
item: {}
|
|
@@ -5408,7 +5423,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5408
5423
|
onMousedown: n,
|
|
5409
5424
|
onClick: o[0] || (o[0] = //@ts-ignore
|
|
5410
5425
|
(...t) => s.item.action && s.item.action(...t))
|
|
5411
|
-
}, null, 42,
|
|
5426
|
+
}, null, 42, Qo)) : p("", !0);
|
|
5412
5427
|
}
|
|
5413
5428
|
}), fe = /* @__PURE__ */ y({
|
|
5414
5429
|
__name: "PopupSurvey",
|
|
@@ -5524,19 +5539,19 @@ const ae = /* @__PURE__ */ y({
|
|
|
5524
5539
|
], 2)
|
|
5525
5540
|
], 38)) : p("", !0);
|
|
5526
5541
|
}
|
|
5527
|
-
}),
|
|
5542
|
+
}), jo = ["innerHTML"], Go = /* @__PURE__ */ y({
|
|
5528
5543
|
__name: "CustomWidget",
|
|
5529
5544
|
props: {
|
|
5530
5545
|
question: {},
|
|
5531
5546
|
css: {}
|
|
5532
5547
|
},
|
|
5533
5548
|
setup(u) {
|
|
5534
|
-
const e = u, n = f(), s =
|
|
5549
|
+
const e = u, n = f(), s = M(
|
|
5535
5550
|
() => e.question.customWidget.isDefaultRender
|
|
5536
|
-
), o =
|
|
5551
|
+
), o = M(
|
|
5537
5552
|
() => !!e.question.customWidget.htmlTemplate
|
|
5538
|
-
), t =
|
|
5539
|
-
return
|
|
5553
|
+
), t = M(() => e.question.customWidget.htmlTemplate), l = M(() => "survey-" + e.question.getTemplate());
|
|
5554
|
+
return B(() => {
|
|
5540
5555
|
e.question.customWidget.afterRender(e.question, n.value);
|
|
5541
5556
|
}), O(() => {
|
|
5542
5557
|
e.question.customWidget.willUnmount(e.question, n.value);
|
|
@@ -5547,7 +5562,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5547
5562
|
o.value ? (i(), a("div", {
|
|
5548
5563
|
key: 0,
|
|
5549
5564
|
innerHTML: t.value
|
|
5550
|
-
}, null, 8,
|
|
5565
|
+
}, null, 8, jo)) : p("", !0),
|
|
5551
5566
|
s.value ? (i(), g(m, {
|
|
5552
5567
|
key: 1,
|
|
5553
5568
|
is: l.value,
|
|
@@ -5556,7 +5571,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5556
5571
|
}, null, 8, ["is", "question", "css"])) : p("", !0)
|
|
5557
5572
|
], 512));
|
|
5558
5573
|
}
|
|
5559
|
-
}),
|
|
5574
|
+
}), Xo = /* @__PURE__ */ y({
|
|
5560
5575
|
__name: "PopupModal",
|
|
5561
5576
|
setup(u) {
|
|
5562
5577
|
const e = E();
|
|
@@ -5569,8 +5584,8 @@ const ae = /* @__PURE__ */ y({
|
|
|
5569
5584
|
};
|
|
5570
5585
|
return t.onVisibilityChanged.add(l), t.model.isVisible = !0, e.value = t, t;
|
|
5571
5586
|
}
|
|
5572
|
-
return
|
|
5573
|
-
|
|
5587
|
+
return ne.showDialog || (ne.showDialog = n, P(() => {
|
|
5588
|
+
ne.showDialog = void 0;
|
|
5574
5589
|
})), (s, o) => e.value ? (i(), g(Ae, {
|
|
5575
5590
|
key: 0,
|
|
5576
5591
|
to: e.value.container
|
|
@@ -5581,7 +5596,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5581
5596
|
}, null, 8, ["model"])
|
|
5582
5597
|
], 8, ["to"])) : p("", !0);
|
|
5583
5598
|
}
|
|
5584
|
-
}),
|
|
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({
|
|
5585
5600
|
__name: "TextArea",
|
|
5586
5601
|
props: {
|
|
5587
5602
|
model: {},
|
|
@@ -5592,8 +5607,8 @@ const ae = /* @__PURE__ */ y({
|
|
|
5592
5607
|
null
|
|
5593
5608
|
), s = function(t) {
|
|
5594
5609
|
n.value = t, e.getRef && e.getRef(t);
|
|
5595
|
-
}, o =
|
|
5596
|
-
return
|
|
5610
|
+
}, o = M(() => e.model.getTextValue() || "");
|
|
5611
|
+
return B(() => {
|
|
5597
5612
|
e.model.setElement(n.value);
|
|
5598
5613
|
}), z(() => {
|
|
5599
5614
|
e.model.setElement(n.value);
|
|
@@ -5632,9 +5647,9 @@ const ae = /* @__PURE__ */ y({
|
|
|
5632
5647
|
"aria-invalid": t.model.ariaInvalid,
|
|
5633
5648
|
"aria-errormessage": t.model.ariaErrormessage,
|
|
5634
5649
|
style: k({ resize: t.model.question.resizeStyle })
|
|
5635
|
-
}, null, 46,
|
|
5650
|
+
}, null, 46, Jo));
|
|
5636
5651
|
}
|
|
5637
|
-
}),
|
|
5652
|
+
}), _o = /* @__PURE__ */ y({
|
|
5638
5653
|
__name: "CharacterCounter",
|
|
5639
5654
|
props: {
|
|
5640
5655
|
counter: {},
|
|
@@ -5646,7 +5661,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5646
5661
|
class: r(n.remainingCharacterCounter)
|
|
5647
5662
|
}, I(n.counter.remainingCharacterCounter), 3));
|
|
5648
5663
|
}
|
|
5649
|
-
}),
|
|
5664
|
+
}), xo = /* @__PURE__ */ y({
|
|
5650
5665
|
inheritAttrs: !1,
|
|
5651
5666
|
__name: "Composite",
|
|
5652
5667
|
props: {
|
|
@@ -5656,7 +5671,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5656
5671
|
setup(u) {
|
|
5657
5672
|
const e = u, n = f(null);
|
|
5658
5673
|
T(e, n);
|
|
5659
|
-
const s =
|
|
5674
|
+
const s = M(() => e.question.contentPanel);
|
|
5660
5675
|
return (o, t) => (i(), g(m, {
|
|
5661
5676
|
is: "survey-panel",
|
|
5662
5677
|
ref_key: "root",
|
|
@@ -5665,7 +5680,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5665
5680
|
css: o.css
|
|
5666
5681
|
}, null, 8, ["element", "css"]));
|
|
5667
5682
|
}
|
|
5668
|
-
}),
|
|
5683
|
+
}), ei = /* @__PURE__ */ y({
|
|
5669
5684
|
inheritAttrs: !1,
|
|
5670
5685
|
__name: "Custom",
|
|
5671
5686
|
props: {
|
|
@@ -5675,7 +5690,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5675
5690
|
setup(u) {
|
|
5676
5691
|
const e = u, n = f(null);
|
|
5677
5692
|
T(e, n);
|
|
5678
|
-
const s =
|
|
5693
|
+
const s = M(() => e.question.contentQuestion), o = (t) => re(t);
|
|
5679
5694
|
return (t, l) => (i(), g(m, {
|
|
5680
5695
|
ref: n.value,
|
|
5681
5696
|
is: o(s.value),
|
|
@@ -5683,16 +5698,16 @@ const ae = /* @__PURE__ */ y({
|
|
|
5683
5698
|
css: t.css
|
|
5684
5699
|
}, null, 8, ["is", "question", "css"]));
|
|
5685
5700
|
}
|
|
5686
|
-
}),
|
|
5687
|
-
|
|
5688
|
-
], ce = 440,
|
|
5701
|
+
}), si = /* @__PURE__ */ v("use", { "xlink:href": "#icon-timercircle" }, null, -1), ni = [
|
|
5702
|
+
si
|
|
5703
|
+
], ce = 440, ti = /* @__PURE__ */ y({
|
|
5689
5704
|
__name: "TimerPanel",
|
|
5690
5705
|
props: {
|
|
5691
5706
|
model: {},
|
|
5692
5707
|
css: {}
|
|
5693
5708
|
},
|
|
5694
5709
|
setup(u) {
|
|
5695
|
-
const e = u, n =
|
|
5710
|
+
const e = u, n = M(() => ce * e.model.progress), s = M(() => e.model.text);
|
|
5696
5711
|
return S(() => e.model), (o, t) => o.model.isRunning && o.model.showTimerAsClock ? (i(), a("div", {
|
|
5697
5712
|
key: 0,
|
|
5698
5713
|
class: r(o.model.rootCss)
|
|
@@ -5701,7 +5716,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5701
5716
|
key: 0,
|
|
5702
5717
|
class: r(o.model.getProgressCss()),
|
|
5703
5718
|
style: k({ strokeDasharray: ce, strokeDashoffset: n.value })
|
|
5704
|
-
},
|
|
5719
|
+
}, ni, 6)) : p("", !0),
|
|
5705
5720
|
v("div", {
|
|
5706
5721
|
class: r(o.model.textContainerCss)
|
|
5707
5722
|
}, [
|
|
@@ -5713,17 +5728,17 @@ const ae = /* @__PURE__ */ y({
|
|
|
5713
5728
|
class: r(o.model.minorTextCss)
|
|
5714
5729
|
}, I(o.model.clockMinorText), 3)) : p("", !0)
|
|
5715
5730
|
], 2)
|
|
5716
|
-
], 2)) :
|
|
5731
|
+
], 2)) : Z((i(), a("div", {
|
|
5717
5732
|
key: 1,
|
|
5718
5733
|
class: r(o.model.survey.getCss().timerRoot)
|
|
5719
5734
|
}, I(s.value), 3)), [
|
|
5720
5735
|
[A, o.model.isRunning && !o.model.showTimerAsClock]
|
|
5721
5736
|
]);
|
|
5722
5737
|
}
|
|
5723
|
-
}),
|
|
5738
|
+
}), oi = { class: "sd-loading-indicator" }, ii = /* @__PURE__ */ y({
|
|
5724
5739
|
__name: "LoadingIndicator",
|
|
5725
5740
|
setup(u) {
|
|
5726
|
-
return (e, n) => (i(), a("div",
|
|
5741
|
+
return (e, n) => (i(), a("div", oi, [
|
|
5727
5742
|
c(m, {
|
|
5728
5743
|
is: "sv-svg-icon",
|
|
5729
5744
|
iconName: "icon-loading",
|
|
@@ -5731,7 +5746,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5731
5746
|
})
|
|
5732
5747
|
]));
|
|
5733
5748
|
}
|
|
5734
|
-
}),
|
|
5749
|
+
}), ri = { key: 2 }, li = /* @__PURE__ */ y({
|
|
5735
5750
|
__name: "Header",
|
|
5736
5751
|
props: {
|
|
5737
5752
|
model: {},
|
|
@@ -5742,7 +5757,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5742
5757
|
return S(() => {
|
|
5743
5758
|
const n = e.model;
|
|
5744
5759
|
return n.survey = e.survey, e.model;
|
|
5745
|
-
}),
|
|
5760
|
+
}), B(() => {
|
|
5746
5761
|
e.model.processResponsiveness();
|
|
5747
5762
|
}), z(() => {
|
|
5748
5763
|
e.model.processResponsiveness();
|
|
@@ -5761,13 +5776,13 @@ const ae = /* @__PURE__ */ y({
|
|
|
5761
5776
|
class: r(n.model.contentClasses),
|
|
5762
5777
|
style: k({ maxWidth: n.model.maxWidth })
|
|
5763
5778
|
}, [
|
|
5764
|
-
(i(!0), a(
|
|
5779
|
+
(i(!0), a(H, null, V(n.model.cells, (o, t) => (i(), g(m, {
|
|
5765
5780
|
is: "sv-header-cell",
|
|
5766
5781
|
model: o,
|
|
5767
5782
|
key: t
|
|
5768
5783
|
}, null, 8, ["model"]))), 128))
|
|
5769
5784
|
], 6)),
|
|
5770
|
-
n.survey.isMobile ? (i(), a("div",
|
|
5785
|
+
n.survey.isMobile ? (i(), a("div", ri, [
|
|
5771
5786
|
c(m, {
|
|
5772
5787
|
is: "sv-header-mobile",
|
|
5773
5788
|
model: n.model
|
|
@@ -5775,10 +5790,10 @@ const ae = /* @__PURE__ */ y({
|
|
|
5775
5790
|
])) : p("", !0)
|
|
5776
5791
|
], 6)) : p("", !0);
|
|
5777
5792
|
}
|
|
5778
|
-
}),
|
|
5793
|
+
}), ai = {
|
|
5779
5794
|
key: 0,
|
|
5780
5795
|
class: "sv-header__logo"
|
|
5781
|
-
},
|
|
5796
|
+
}, ui = ["src", "width", "height", "alt"], di = /* @__PURE__ */ y({
|
|
5782
5797
|
__name: "HeaderCell",
|
|
5783
5798
|
props: {
|
|
5784
5799
|
model: {}
|
|
@@ -5792,7 +5807,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5792
5807
|
class: "sv-header__cell-content",
|
|
5793
5808
|
style: k(e.model.contentStyle)
|
|
5794
5809
|
}, [
|
|
5795
|
-
e.model.showLogo ? (i(), a("div",
|
|
5810
|
+
e.model.showLogo ? (i(), a("div", ai, [
|
|
5796
5811
|
v("div", {
|
|
5797
5812
|
class: r(e.model.survey.logoClassNames)
|
|
5798
5813
|
}, [
|
|
@@ -5803,7 +5818,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5803
5818
|
height: e.model.survey.renderedLogoHeight,
|
|
5804
5819
|
alt: e.model.survey.locTitle.renderedHtml,
|
|
5805
5820
|
style: k({ objectFit: e.model.survey.logoFit, width: e.model.survey.renderedStyleLogoWidth, height: e.model.survey.renderedStyleLogoHeight })
|
|
5806
|
-
}, null, 14,
|
|
5821
|
+
}, null, 14, ui)
|
|
5807
5822
|
], 2)
|
|
5808
5823
|
])) : p("", !0),
|
|
5809
5824
|
e.model.showTitle ? (i(), a("div", {
|
|
@@ -5835,17 +5850,17 @@ const ae = /* @__PURE__ */ y({
|
|
|
5835
5850
|
], 4)
|
|
5836
5851
|
], 6));
|
|
5837
5852
|
}
|
|
5838
|
-
}),
|
|
5853
|
+
}), mi = { class: "sv-header--mobile" }, pi = {
|
|
5839
5854
|
key: 0,
|
|
5840
5855
|
class: "sv-header__logo"
|
|
5841
|
-
},
|
|
5856
|
+
}, vi = ["src", "width", "height", "alt"], Ci = /* @__PURE__ */ y({
|
|
5842
5857
|
__name: "HeaderMobile",
|
|
5843
5858
|
props: {
|
|
5844
5859
|
model: {}
|
|
5845
5860
|
},
|
|
5846
5861
|
setup(u) {
|
|
5847
|
-
return (e, n) => (i(), a("div",
|
|
5848
|
-
e.model.survey.hasLogo ? (i(), a("div",
|
|
5862
|
+
return (e, n) => (i(), a("div", mi, [
|
|
5863
|
+
e.model.survey.hasLogo ? (i(), a("div", pi, [
|
|
5849
5864
|
v("div", {
|
|
5850
5865
|
class: r(e.model.survey.logoClassNames)
|
|
5851
5866
|
}, [
|
|
@@ -5856,7 +5871,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5856
5871
|
height: e.model.survey.renderedLogoHeight,
|
|
5857
5872
|
alt: e.model.survey.locTitle.renderedHtml,
|
|
5858
5873
|
style: k({ objectFit: e.model.survey.logoFit, width: e.model.survey.renderedStyleLogoWidth, height: e.model.survey.renderedStyleLogoHeight })
|
|
5859
|
-
}, null, 14,
|
|
5874
|
+
}, null, 14, vi)
|
|
5860
5875
|
], 2)
|
|
5861
5876
|
])) : p("", !0),
|
|
5862
5877
|
e.model.survey.hasTitle ? (i(), a("div", {
|
|
@@ -5887,7 +5902,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5887
5902
|
], 4)) : p("", !0)
|
|
5888
5903
|
]));
|
|
5889
5904
|
}
|
|
5890
|
-
}),
|
|
5905
|
+
}), ci = /* @__PURE__ */ y({
|
|
5891
5906
|
__name: "Element",
|
|
5892
5907
|
props: {
|
|
5893
5908
|
element: {},
|
|
@@ -5895,7 +5910,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5895
5910
|
css: {}
|
|
5896
5911
|
},
|
|
5897
5912
|
setup(u) {
|
|
5898
|
-
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(() => {
|
|
5899
5914
|
const C = e.element.survey;
|
|
5900
5915
|
if (C) {
|
|
5901
5916
|
const L = C.getElementWrapperComponentName(e.element);
|
|
@@ -5903,7 +5918,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5903
5918
|
return L;
|
|
5904
5919
|
}
|
|
5905
5920
|
return s(e.element);
|
|
5906
|
-
}), t = (C) => C.cssClasses ? C.rootStyle : {}, l =
|
|
5921
|
+
}), t = (C) => C.cssClasses ? C.rootStyle : {}, l = M(() => {
|
|
5907
5922
|
const C = e.element, L = C.survey;
|
|
5908
5923
|
let h;
|
|
5909
5924
|
return L && (h = L.getElementWrapperComponentData(C)), {
|
|
@@ -5922,7 +5937,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5922
5937
|
L && L.setWrapperElement(void 0), C.setWrapperElement(n.value);
|
|
5923
5938
|
}
|
|
5924
5939
|
);
|
|
5925
|
-
return
|
|
5940
|
+
return B(() => {
|
|
5926
5941
|
e.element.setWrapperElement(n.value);
|
|
5927
5942
|
}), P(() => {
|
|
5928
5943
|
e.element.setWrapperElement(void 0), d();
|
|
@@ -5943,20 +5958,20 @@ const ae = /* @__PURE__ */ y({
|
|
|
5943
5958
|
}, null, 8, ["is", "element", "css"])) : p("", !0)
|
|
5944
5959
|
], 6));
|
|
5945
5960
|
}
|
|
5946
|
-
}),
|
|
5961
|
+
}), gi = /* @__PURE__ */ y({
|
|
5947
5962
|
__name: "TemplateRenderer",
|
|
5948
5963
|
props: {
|
|
5949
5964
|
componentName: {},
|
|
5950
5965
|
componentData: {}
|
|
5951
5966
|
},
|
|
5952
5967
|
setup(u) {
|
|
5953
|
-
const e = Pe(), n =
|
|
5968
|
+
const e = Pe(), n = M(() => !!e.default);
|
|
5954
5969
|
return (s, o) => n.value && !s.componentName ? x(s.$slots, "default", { key: 0 }) : (i(), g(m, $({
|
|
5955
5970
|
key: 1,
|
|
5956
5971
|
is: s.componentName
|
|
5957
5972
|
}, s.componentData), null, 16, ["is"]));
|
|
5958
5973
|
}
|
|
5959
|
-
}),
|
|
5974
|
+
}), yi = /* @__PURE__ */ y({
|
|
5960
5975
|
__name: "FileCleanButton",
|
|
5961
5976
|
props: {
|
|
5962
5977
|
question: {},
|
|
@@ -5979,7 +5994,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5979
5994
|
}, null, 8, ["iconName", "title"])) : p("", !0)
|
|
5980
5995
|
], 2));
|
|
5981
5996
|
}
|
|
5982
|
-
}),
|
|
5997
|
+
}), hi = ["id"], qi = /* @__PURE__ */ y({
|
|
5983
5998
|
__name: "FileVideo",
|
|
5984
5999
|
props: {
|
|
5985
6000
|
question: {}
|
|
@@ -6001,27 +6016,27 @@ const ae = /* @__PURE__ */ y({
|
|
|
6001
6016
|
playsinline: "",
|
|
6002
6017
|
id: e.question.videoId,
|
|
6003
6018
|
class: r(e.question.cssClasses.video)
|
|
6004
|
-
}, null, 10,
|
|
6019
|
+
}, null, 10, hi),
|
|
6005
6020
|
c(m, {
|
|
6006
6021
|
is: "sv-action",
|
|
6007
6022
|
item: e.question.takePictureAction
|
|
6008
6023
|
}, null, 8, ["item"])
|
|
6009
6024
|
], 2));
|
|
6010
6025
|
}
|
|
6011
|
-
}),
|
|
6026
|
+
}), wi = ["for", "aria-label"], bi = /* @__PURE__ */ y({
|
|
6012
6027
|
__name: "FileChooseButton",
|
|
6013
6028
|
props: {
|
|
6014
6029
|
data: {},
|
|
6015
6030
|
item: {}
|
|
6016
6031
|
},
|
|
6017
6032
|
setup(u) {
|
|
6018
|
-
const e = u, n =
|
|
6033
|
+
const e = u, n = M(
|
|
6019
6034
|
() => {
|
|
6020
6035
|
var s, o;
|
|
6021
6036
|
return ((s = e.data) == null ? void 0 : s.question) || ((o = e.item) == null ? void 0 : o.data.question);
|
|
6022
6037
|
}
|
|
6023
6038
|
);
|
|
6024
|
-
return (s, o) =>
|
|
6039
|
+
return (s, o) => Z((i(), a("label", {
|
|
6025
6040
|
tabindex: "0",
|
|
6026
6041
|
class: r(n.value.getChooseFileCss()),
|
|
6027
6042
|
for: n.value.inputId,
|
|
@@ -6036,11 +6051,11 @@ const ae = /* @__PURE__ */ y({
|
|
|
6036
6051
|
size: "auto"
|
|
6037
6052
|
}, null, 8, ["title", "iconName"])) : p("", !0),
|
|
6038
6053
|
v("span", null, I(n.value.chooseButtonText), 1)
|
|
6039
|
-
], 10,
|
|
6054
|
+
], 10, wi)), [
|
|
6040
6055
|
[w(Q)]
|
|
6041
6056
|
]);
|
|
6042
6057
|
}
|
|
6043
|
-
}),
|
|
6058
|
+
}), Li = /* @__PURE__ */ y({
|
|
6044
6059
|
__name: "FilePreview",
|
|
6045
6060
|
props: {
|
|
6046
6061
|
question: {}
|
|
@@ -6050,7 +6065,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
6050
6065
|
key: 0,
|
|
6051
6066
|
class: r(e.question.cssClasses.fileList || void 0)
|
|
6052
6067
|
}, [
|
|
6053
|
-
(i(!0), a(
|
|
6068
|
+
(i(!0), a(H, null, V(e.question.renderedPages, (s) => (i(), g(m, {
|
|
6054
6069
|
is: "sv-file-page",
|
|
6055
6070
|
key: s.id,
|
|
6056
6071
|
page: s,
|
|
@@ -6058,7 +6073,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
6058
6073
|
}, null, 8, ["page", "question"]))), 128))
|
|
6059
6074
|
], 2)) : p("", !0);
|
|
6060
6075
|
}
|
|
6061
|
-
}),
|
|
6076
|
+
}), ki = /* @__PURE__ */ y({
|
|
6062
6077
|
__name: "ButtonGroup",
|
|
6063
6078
|
props: {
|
|
6064
6079
|
question: {}
|
|
@@ -6071,7 +6086,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
6071
6086
|
ref_key: "root",
|
|
6072
6087
|
ref: n
|
|
6073
6088
|
}, [
|
|
6074
|
-
(i(!0), a(
|
|
6089
|
+
(i(!0), a(H, null, V(s.question.visibleChoices, (t, l) => (i(), g(m, {
|
|
6075
6090
|
is: "sv-button-group-item",
|
|
6076
6091
|
question: s.question,
|
|
6077
6092
|
key: l,
|
|
@@ -6080,7 +6095,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
6080
6095
|
}, null, 8, ["question", "item", "index"]))), 128))
|
|
6081
6096
|
], 2));
|
|
6082
6097
|
}
|
|
6083
|
-
}),
|
|
6098
|
+
}), fi = ["title"], Hi = ["name", "id", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "disabled", "value"], Mi = ["title"], Ii = /* @__PURE__ */ y({
|
|
6084
6099
|
__name: "ButtonGroupItem",
|
|
6085
6100
|
props: {
|
|
6086
6101
|
item: {},
|
|
@@ -6088,9 +6103,9 @@ const ae = /* @__PURE__ */ y({
|
|
|
6088
6103
|
index: {}
|
|
6089
6104
|
},
|
|
6090
6105
|
setup(u) {
|
|
6091
|
-
const e = u, n =
|
|
6106
|
+
const e = u, n = M(
|
|
6092
6107
|
() => new Je(e.question, e.item, e.index)
|
|
6093
|
-
), s =
|
|
6108
|
+
), s = M({
|
|
6094
6109
|
get: () => e.question.renderedValue,
|
|
6095
6110
|
set: (o) => {
|
|
6096
6111
|
const t = e.question;
|
|
@@ -6101,7 +6116,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
6101
6116
|
class: r(n.value.css.label),
|
|
6102
6117
|
title: n.value.caption.renderedHtml
|
|
6103
6118
|
}, [
|
|
6104
|
-
|
|
6119
|
+
Z(v("input", {
|
|
6105
6120
|
type: "radio",
|
|
6106
6121
|
name: n.value.name,
|
|
6107
6122
|
id: n.value.id,
|
|
@@ -6113,8 +6128,8 @@ const ae = /* @__PURE__ */ y({
|
|
|
6113
6128
|
class: r(n.value.css.control),
|
|
6114
6129
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => s.value = l),
|
|
6115
6130
|
value: n.value.value
|
|
6116
|
-
}, null, 10,
|
|
6117
|
-
[
|
|
6131
|
+
}, null, 10, Hi), [
|
|
6132
|
+
[ie, s.value]
|
|
6118
6133
|
]),
|
|
6119
6134
|
v("div", {
|
|
6120
6135
|
class: r(n.value.css.decorator)
|
|
@@ -6135,9 +6150,9 @@ const ae = /* @__PURE__ */ y({
|
|
|
6135
6150
|
is: "survey-string",
|
|
6136
6151
|
locString: n.value.caption
|
|
6137
6152
|
}, null, 8, ["locString"])
|
|
6138
|
-
], 10,
|
|
6153
|
+
], 10, Mi)) : p("", !0)
|
|
6139
6154
|
], 2)
|
|
6140
|
-
], 10,
|
|
6155
|
+
], 10, fi));
|
|
6141
6156
|
}
|
|
6142
6157
|
});
|
|
6143
6158
|
G.Instance.registerRenderer(
|
|
@@ -6145,7 +6160,7 @@ G.Instance.registerRenderer(
|
|
|
6145
6160
|
"dropdown",
|
|
6146
6161
|
"sv-buttongroup-dropdown"
|
|
6147
6162
|
);
|
|
6148
|
-
const
|
|
6163
|
+
const Vi = /* @__PURE__ */ y({
|
|
6149
6164
|
inheritAttrs: !1,
|
|
6150
6165
|
__name: "ButtonGroupDropdown",
|
|
6151
6166
|
props: {
|
|
@@ -6164,14 +6179,14 @@ const Ii = /* @__PURE__ */ y({
|
|
|
6164
6179
|
}, null, 8, ["question"])
|
|
6165
6180
|
], 2));
|
|
6166
6181
|
}
|
|
6167
|
-
}),
|
|
6182
|
+
}), Si = ["src", "width", "height", "alt"], Ri = /* @__PURE__ */ y({
|
|
6168
6183
|
inheritAttrs: !1,
|
|
6169
6184
|
__name: "Logo",
|
|
6170
6185
|
props: {
|
|
6171
6186
|
data: {}
|
|
6172
6187
|
},
|
|
6173
6188
|
setup(u) {
|
|
6174
|
-
const e = u, n =
|
|
6189
|
+
const e = u, n = M(() => e.data), s = U(() => n.value.locLogo);
|
|
6175
6190
|
return (o, t) => (i(), a("div", {
|
|
6176
6191
|
class: r(n.value.logoClassNames)
|
|
6177
6192
|
}, [
|
|
@@ -6186,20 +6201,20 @@ const Ii = /* @__PURE__ */ y({
|
|
|
6186
6201
|
width: n.value.renderedStyleLogoWidth,
|
|
6187
6202
|
height: n.value.renderedStyleLogoHeight
|
|
6188
6203
|
})
|
|
6189
|
-
}, null, 14,
|
|
6204
|
+
}, null, 14, Si)
|
|
6190
6205
|
], 2));
|
|
6191
6206
|
}
|
|
6192
|
-
}),
|
|
6207
|
+
}), Ti = /* @__PURE__ */ y({
|
|
6193
6208
|
__name: "SvgBundle",
|
|
6194
6209
|
setup(u) {
|
|
6195
6210
|
const e = f(), n = () => {
|
|
6196
6211
|
e.value && (e.value.innerHTML = _.iconsRenderedHtml());
|
|
6197
6212
|
};
|
|
6198
|
-
return
|
|
6213
|
+
return B(() => {
|
|
6199
6214
|
n(), _.onIconsChanged.add(n);
|
|
6200
6215
|
}), P(() => {
|
|
6201
6216
|
_.onIconsChanged.remove(n);
|
|
6202
|
-
}), (s, o) =>
|
|
6217
|
+
}), (s, o) => Z((i(), a("svg", {
|
|
6203
6218
|
id: "sv-icon-holder-global-container",
|
|
6204
6219
|
ref_key: "root",
|
|
6205
6220
|
ref: e
|
|
@@ -6207,7 +6222,7 @@ const Ii = /* @__PURE__ */ y({
|
|
|
6207
6222
|
[A, !1]
|
|
6208
6223
|
]);
|
|
6209
6224
|
}
|
|
6210
|
-
}),
|
|
6225
|
+
}), Bi = ["id"], Zi = /* @__PURE__ */ y({
|
|
6211
6226
|
__name: "FilePage",
|
|
6212
6227
|
props: {
|
|
6213
6228
|
page: {},
|
|
@@ -6219,22 +6234,22 @@ const Ii = /* @__PURE__ */ y({
|
|
|
6219
6234
|
class: r(n.page.css),
|
|
6220
6235
|
id: n.page.id
|
|
6221
6236
|
}, [
|
|
6222
|
-
(i(!0), a(
|
|
6237
|
+
(i(!0), a(H, null, V(n.page.items, (o) => (i(), g(m, {
|
|
6223
6238
|
is: "sv-file-item",
|
|
6224
6239
|
key: o,
|
|
6225
6240
|
item: o,
|
|
6226
6241
|
question: n.question
|
|
6227
6242
|
}, null, 8, ["item", "question"]))), 128))
|
|
6228
|
-
], 10,
|
|
6243
|
+
], 10, Bi));
|
|
6229
6244
|
}
|
|
6230
|
-
}),
|
|
6245
|
+
}), $i = ["href", "title", "download"], Di = ["src"], Ai = ["href", "title", "download"], Pi = /* @__PURE__ */ y({
|
|
6231
6246
|
__name: "FileItem",
|
|
6232
6247
|
props: {
|
|
6233
6248
|
item: {},
|
|
6234
6249
|
question: {}
|
|
6235
6250
|
},
|
|
6236
6251
|
setup(u) {
|
|
6237
|
-
return (e, n) =>
|
|
6252
|
+
return (e, n) => Z((i(), a("span", {
|
|
6238
6253
|
class: r(e.question.cssClasses.previewItem),
|
|
6239
6254
|
onClick: n[3] || (n[3] = (s) => e.question.doDownloadFileFromContainer(s))
|
|
6240
6255
|
}, [
|
|
@@ -6248,7 +6263,7 @@ const Ii = /* @__PURE__ */ y({
|
|
|
6248
6263
|
title: e.item.name,
|
|
6249
6264
|
download: e.item.name,
|
|
6250
6265
|
style: k({ width: e.question.imageWidth })
|
|
6251
|
-
}, I(e.item.name), 13,
|
|
6266
|
+
}, I(e.item.name), 13, $i)
|
|
6252
6267
|
], 2)) : p("", !0),
|
|
6253
6268
|
v("div", {
|
|
6254
6269
|
class: r(e.question.getImageWrapperCss(e.item))
|
|
@@ -6261,7 +6276,7 @@ const Ii = /* @__PURE__ */ y({
|
|
|
6261
6276
|
width: e.question.imageWidth
|
|
6262
6277
|
}),
|
|
6263
6278
|
alt: "File preview"
|
|
6264
|
-
}, null, 12,
|
|
6279
|
+
}, null, 12, Di)) : p("", !0),
|
|
6265
6280
|
e.question.defaultImage(e.item) ? (i(), g(m, {
|
|
6266
6281
|
key: 1,
|
|
6267
6282
|
is: "sv-svg-icon",
|
|
@@ -6297,7 +6312,7 @@ const Ii = /* @__PURE__ */ y({
|
|
|
6297
6312
|
title: e.item.name,
|
|
6298
6313
|
download: e.item.name,
|
|
6299
6314
|
style: k({ width: e.question.imageWidth })
|
|
6300
|
-
}, I(e.item.name), 13,
|
|
6315
|
+
}, I(e.item.name), 13, Ai)
|
|
6301
6316
|
], 2)) : p("", !0)
|
|
6302
6317
|
], 2)), [
|
|
6303
6318
|
[A, e.item]
|
|
@@ -6305,20 +6320,20 @@ const Ii = /* @__PURE__ */ y({
|
|
|
6305
6320
|
}
|
|
6306
6321
|
});
|
|
6307
6322
|
Ye.platform = "vue3";
|
|
6308
|
-
function
|
|
6323
|
+
function Ni(u, e, n) {
|
|
6309
6324
|
u(e, n);
|
|
6310
6325
|
}
|
|
6311
6326
|
function He(u) {
|
|
6312
|
-
const e =
|
|
6327
|
+
const e = Ni.bind(
|
|
6313
6328
|
void 0,
|
|
6314
6329
|
u
|
|
6315
6330
|
);
|
|
6316
|
-
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);
|
|
6317
6332
|
}
|
|
6318
6333
|
He(
|
|
6319
6334
|
(u, e) => F.Instance.registerComponent(u, e)
|
|
6320
6335
|
);
|
|
6321
|
-
const
|
|
6336
|
+
const Oi = {
|
|
6322
6337
|
install(u) {
|
|
6323
6338
|
u.component("SurveyComponent", ae), u.component("PopupSurveyComponent", fe), u.directive("key2click", Q), He((e, n) => {
|
|
6324
6339
|
u.component(e, n), F.Instance.registerComponent(e, e);
|
|
@@ -6331,9 +6346,9 @@ export {
|
|
|
6331
6346
|
ae as SurveyComponent,
|
|
6332
6347
|
m as SvComponent,
|
|
6333
6348
|
Q as key2ClickDirective,
|
|
6334
|
-
|
|
6349
|
+
Oi as surveyPlugin,
|
|
6335
6350
|
S as useBase,
|
|
6336
|
-
|
|
6351
|
+
se as useComputedArray,
|
|
6337
6352
|
U as useLocString,
|
|
6338
6353
|
T as useQuestion
|
|
6339
6354
|
};
|