survey-vue3-ui 1.10.3 → 1.10.5
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 +240 -233
- package/survey-vue3-ui.umd.js +1 -1
package/survey-vue3-ui.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { shallowReactive as
|
|
2
|
-
import { Base as
|
|
3
|
-
|
|
1
|
+
import { shallowReactive as be, watch as K, onBeforeUnmount as G, onMounted as E, ref as $, shallowRef as U, watchEffect as ke, triggerRef as se, unref as w, isRef as fe, defineComponent as h, computed as S, resolveComponent as y, openBlock as i, createElementBlock as u, normalizeClass as a, createVNode as C, createCommentVNode as d, Fragment as D, renderList as B, createBlock as g, resolveDynamicComponent as T, normalizeProps as z, mergeProps as M, withCtx as V, normalizeStyle as I, createElementVNode as p, onUnmounted as O, guardReactiveProps as ne, withDirectives as P, vShow as H, toDisplayString as R, vModelRadio as x, vModelCheckbox as oe, vModelSelect as we, onUpdated as te, vModelText as Ie, getCurrentInstance as ie, createStaticVNode as Se, resolveDirective as X, toRaw as Re, Teleport as Te, useSlots as $e, renderSlot as _e } from "vue";
|
|
2
|
+
import { Base as De, RendererFactory as ee, Helpers as Be, DropdownMultiSelectListModel as Le, doKey2ClickUp as ye, createSvg as Ne, ActionDropdownViewModel as Pe, getActionDropdownButtonTarget as Ae, createPopupViewModel as Ee, SurveyProgressModel as de, ProgressButtonsResponsivityManager as He, PopupSurveyModel as Me, settings as j, createDialogOptions as We, createPopupModalViewModel as Fe, ButtonGroupItemModel as Ve, SvgRegistry as Oe, SurveyModel as ze, doKey2ClickDown as Ue, doKey2ClickBlur as Ke } from "survey-core";
|
|
3
|
+
De.createPropertiesHash = () => be({});
|
|
4
4
|
function Qe(r) {
|
|
5
5
|
var s;
|
|
6
6
|
!r || (r.__vueImplemented = (s = r.__vueImplemented) != null ? s : 0, r.__vueImplemented <= 0 && (r.createArrayCoreHandler = (n, e) => {
|
|
@@ -16,7 +16,7 @@ function Qe(r) {
|
|
|
16
16
|
}, n[e] = o;
|
|
17
17
|
}
|
|
18
18
|
}), r.getPropertyValueCoreHandler = (n, e) => w(n[e]), r.setPropertyValueCoreHandler = (n, e, o) => {
|
|
19
|
-
|
|
19
|
+
fe(n[e]) ? n[e].value = o : n[e] = o;
|
|
20
20
|
}), r.__vueImplemented++);
|
|
21
21
|
}
|
|
22
22
|
function me(r) {
|
|
@@ -25,7 +25,7 @@ function me(r) {
|
|
|
25
25
|
n[e] = w(n[e]), Array.isArray(n[e]) && (n[e].onArrayChanged = void 0);
|
|
26
26
|
}), delete r.__vueImplemented, r.createArrayCoreHandler = void 0, r.getPropertyValueCoreHandler = void 0, r.setPropertyValueCoreHandler = void 0));
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function L(r, s, n) {
|
|
29
29
|
const e = K(
|
|
30
30
|
r,
|
|
31
31
|
(o, t) => {
|
|
@@ -41,7 +41,7 @@ function B(r, s, n) {
|
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
function A(r, s, n, e) {
|
|
44
|
-
|
|
44
|
+
L(() => r.question, n, e), E(() => {
|
|
45
45
|
r.question && r.question.afterRenderQuestionElement(s.value);
|
|
46
46
|
}), G(() => {
|
|
47
47
|
r.question.beforeDestroyQuestionElement(s.value);
|
|
@@ -68,7 +68,7 @@ function re(r) {
|
|
|
68
68
|
return r.customWidget ? "survey-customwidget" : r.isDefaultRendering && r.isDefaultRendering() || r.isPanel ? "survey-" + r.getTemplate() : r.getComponentName();
|
|
69
69
|
}
|
|
70
70
|
function le(r) {
|
|
71
|
-
const s = U(), n =
|
|
71
|
+
const s = U(), n = ke(() => {
|
|
72
72
|
s.value = r(), se(s);
|
|
73
73
|
});
|
|
74
74
|
return G(() => {
|
|
@@ -86,12 +86,12 @@ const je = /* @__PURE__ */ h({
|
|
|
86
86
|
const s = r, n = $(null), e = () => {
|
|
87
87
|
s.survey && n.value && s.survey.afterRenderPage(n.value);
|
|
88
88
|
}, o = S(() => s.page._showDescription);
|
|
89
|
-
return
|
|
89
|
+
return L(
|
|
90
90
|
() => s.page,
|
|
91
91
|
() => {
|
|
92
92
|
e();
|
|
93
93
|
}
|
|
94
|
-
),
|
|
94
|
+
), E(() => {
|
|
95
95
|
e();
|
|
96
96
|
}), (t, l) => {
|
|
97
97
|
const m = y("survey-element-title"), v = y("survey-string"), c = y("survey-errors"), q = y("survey-row");
|
|
@@ -113,12 +113,12 @@ const je = /* @__PURE__ */ h({
|
|
|
113
113
|
}, null, 8, ["locString"])
|
|
114
114
|
], 2)) : d("", !0),
|
|
115
115
|
C(c, { element: t.page }, null, 8, ["element"]),
|
|
116
|
-
(i(!0), u(
|
|
116
|
+
(i(!0), u(D, null, B(t.page.visibleRows, (f) => (i(), g(T(t.page.getSurvey().getRowWrapperComponentName(f)), z(M({
|
|
117
117
|
key: f.id
|
|
118
118
|
}, {
|
|
119
119
|
componentData: t.page.getSurvey().getRowWrapperComponentData(f)
|
|
120
120
|
})), {
|
|
121
|
-
default:
|
|
121
|
+
default: V(() => [
|
|
122
122
|
C(q, {
|
|
123
123
|
row: f,
|
|
124
124
|
survey: t.survey,
|
|
@@ -137,7 +137,7 @@ const je = /* @__PURE__ */ h({
|
|
|
137
137
|
},
|
|
138
138
|
setup(r) {
|
|
139
139
|
const s = r, n = $();
|
|
140
|
-
return
|
|
140
|
+
return E(() => {
|
|
141
141
|
var e = n.value;
|
|
142
142
|
e && s.survey && s.survey.afterRenderHeader(e);
|
|
143
143
|
}), (e, o) => {
|
|
@@ -189,7 +189,7 @@ const je = /* @__PURE__ */ h({
|
|
|
189
189
|
},
|
|
190
190
|
setup(r) {
|
|
191
191
|
const s = r, n = $();
|
|
192
|
-
return
|
|
192
|
+
return L(
|
|
193
193
|
() => s.row,
|
|
194
194
|
(e, o) => {
|
|
195
195
|
e.setRootElement(n.value), o && (e.isNeedRender = o.isNeedRender);
|
|
@@ -197,7 +197,7 @@ const je = /* @__PURE__ */ h({
|
|
|
197
197
|
(e) => {
|
|
198
198
|
e.setRootElement(void 0), e.stopLazyRendering(), e.isNeedRender = !e.isLazyRendering();
|
|
199
199
|
}
|
|
200
|
-
),
|
|
200
|
+
), E(() => {
|
|
201
201
|
if (s.row && (s.row.setRootElement(n.value), !s.row.isNeedRender)) {
|
|
202
202
|
const e = n.value;
|
|
203
203
|
setTimeout(() => {
|
|
@@ -211,7 +211,7 @@ const je = /* @__PURE__ */ h({
|
|
|
211
211
|
ref_key: "root",
|
|
212
212
|
ref: n
|
|
213
213
|
}, [
|
|
214
|
-
(i(!0), u(
|
|
214
|
+
(i(!0), u(D, null, B(e.row.visibleElements, (l) => (i(), g(t, {
|
|
215
215
|
row: e.row,
|
|
216
216
|
css: e.css,
|
|
217
217
|
element: l,
|
|
@@ -232,7 +232,7 @@ const je = /* @__PURE__ */ h({
|
|
|
232
232
|
},
|
|
233
233
|
setup(r) {
|
|
234
234
|
const s = r, n = $(null), e = S(() => s.element.showErrorOnTop), o = S(() => s.element.showErrorOnBottom), t = (k) => k.cssContent, l = () => s.element.getRootStyle();
|
|
235
|
-
|
|
235
|
+
L(() => s.element);
|
|
236
236
|
const m = () => {
|
|
237
237
|
n.value && s.element.afterRender(n.value);
|
|
238
238
|
}, v = K(
|
|
@@ -248,14 +248,14 @@ const je = /* @__PURE__ */ h({
|
|
|
248
248
|
}));
|
|
249
249
|
return O(() => {
|
|
250
250
|
v();
|
|
251
|
-
}), (k,
|
|
252
|
-
const b = y("survey-errors"), N = y("survey-element-header"), W = y("survey-string"),
|
|
251
|
+
}), (k, _) => {
|
|
252
|
+
const b = y("survey-errors"), N = y("survey-element-header"), W = y("survey-string"), F = y("survey-question-comment");
|
|
253
253
|
return i(), u("div", {
|
|
254
254
|
class: a(k.element.getRootCss()),
|
|
255
255
|
style: I(l()),
|
|
256
256
|
ref_key: "root",
|
|
257
257
|
ref: n,
|
|
258
|
-
onFocusin:
|
|
258
|
+
onFocusin: _[0] || (_[0] = (Q) => k.element.focusIn()),
|
|
259
259
|
id: k.element.id,
|
|
260
260
|
role: k.element.ariaRole,
|
|
261
261
|
"aria-required": k.element.ariaRequired,
|
|
@@ -276,7 +276,7 @@ const je = /* @__PURE__ */ h({
|
|
|
276
276
|
css: k.css
|
|
277
277
|
}, null, 8, ["element", "css"])) : d("", !0),
|
|
278
278
|
(i(), g(T(q.value), z(ne(f.value)), {
|
|
279
|
-
default:
|
|
279
|
+
default: V(() => [
|
|
280
280
|
P(p("div", {
|
|
281
281
|
class: a(t(k.element) || void 0),
|
|
282
282
|
role: "presentation"
|
|
@@ -296,7 +296,7 @@ const je = /* @__PURE__ */ h({
|
|
|
296
296
|
locString: k.element.locCommentText
|
|
297
297
|
}, null, 8, ["locString"])
|
|
298
298
|
]),
|
|
299
|
-
C(
|
|
299
|
+
C(F, { question: k.element }, null, 8, ["question"])
|
|
300
300
|
], 2)) : d("", !0),
|
|
301
301
|
o.value ? (i(), g(b, {
|
|
302
302
|
key: 2,
|
|
@@ -313,7 +313,7 @@ const je = /* @__PURE__ */ h({
|
|
|
313
313
|
}, null, 8, ["locString"])
|
|
314
314
|
], 10, Ye)) : d("", !0)
|
|
315
315
|
], 2), [
|
|
316
|
-
[
|
|
316
|
+
[H, k.element.renderedIsExpanded]
|
|
317
317
|
])
|
|
318
318
|
]),
|
|
319
319
|
_: 1
|
|
@@ -344,7 +344,7 @@ const je = /* @__PURE__ */ h({
|
|
|
344
344
|
},
|
|
345
345
|
setup(r) {
|
|
346
346
|
const s = r, n = $(null), e = S(() => s.element.survey);
|
|
347
|
-
return
|
|
347
|
+
return L(() => s.element), E(() => {
|
|
348
348
|
s.element.survey && s.element.survey.afterRenderPanel(s.element, n.value);
|
|
349
349
|
}), (o, t) => {
|
|
350
350
|
const l = y("survey-errors"), m = y("survey-element-header"), v = y("survey-row"), c = y("sv-action-bar");
|
|
@@ -375,12 +375,12 @@ const je = /* @__PURE__ */ h({
|
|
|
375
375
|
style: I({ paddingLeft: o.element.innerPaddingLeft }),
|
|
376
376
|
class: a(o.element.cssClasses.panel.content)
|
|
377
377
|
}, [
|
|
378
|
-
(i(!0), u(
|
|
378
|
+
(i(!0), u(D, null, B(o.element.visibleRows, (q) => (i(), g(T(o.element.getSurvey().getRowWrapperComponentName(q)), z(M({
|
|
379
379
|
key: q.id
|
|
380
380
|
}, {
|
|
381
381
|
componentData: o.element.getSurvey().getRowWrapperComponentData(q)
|
|
382
382
|
})), {
|
|
383
|
-
default:
|
|
383
|
+
default: V(() => [
|
|
384
384
|
C(v, {
|
|
385
385
|
row: q,
|
|
386
386
|
survey: e.value,
|
|
@@ -425,7 +425,7 @@ const je = /* @__PURE__ */ h({
|
|
|
425
425
|
locString: e.element.locDescription
|
|
426
426
|
}, null, 8, ["locString"])
|
|
427
427
|
], 10, ts)), [
|
|
428
|
-
[
|
|
428
|
+
[H, e.element.hasDescription]
|
|
429
429
|
]) : d("", !0),
|
|
430
430
|
e.element.hasAdditionalTitleToolbar ? (i(), g(m, {
|
|
431
431
|
key: 1,
|
|
@@ -494,7 +494,7 @@ const je = /* @__PURE__ */ h({
|
|
|
494
494
|
},
|
|
495
495
|
setup(r) {
|
|
496
496
|
const s = r;
|
|
497
|
-
return
|
|
497
|
+
return L(() => s.element), (n, e) => (i(), u("div", {
|
|
498
498
|
class: "sv-skeleton-element",
|
|
499
499
|
id: n.element.id
|
|
500
500
|
}, null, 8, ms));
|
|
@@ -522,7 +522,7 @@ const je = /* @__PURE__ */ h({
|
|
|
522
522
|
p("datalist", {
|
|
523
523
|
id: e.question.dataListId
|
|
524
524
|
}, [
|
|
525
|
-
(i(!0), u(
|
|
525
|
+
(i(!0), u(D, null, B(e.question.dataList, (l) => (i(), u("option", { value: l }, null, 8, vs))), 256))
|
|
526
526
|
], 8, ps)
|
|
527
527
|
], 512)) : (i(), g(t, {
|
|
528
528
|
key: 2,
|
|
@@ -543,7 +543,7 @@ const je = /* @__PURE__ */ h({
|
|
|
543
543
|
const n = r, e = function(l) {
|
|
544
544
|
n.getRef && n.getRef(l);
|
|
545
545
|
}, o = $(null);
|
|
546
|
-
s({ root: o }),
|
|
546
|
+
s({ root: o }), L(() => n.question);
|
|
547
547
|
const t = S(() => n.question.inputStyle);
|
|
548
548
|
return (l, m) => {
|
|
549
549
|
const v = y("sv-character-counter");
|
|
@@ -651,17 +651,17 @@ const je = /* @__PURE__ */ h({
|
|
|
651
651
|
"aria-errormessage": t.question.a11y_input_ariaErrormessage
|
|
652
652
|
}, [
|
|
653
653
|
t.showLegend ? (i(), u("legend", bs, R(t.question.locTitle.renderedHtml), 1)) : d("", !0),
|
|
654
|
-
t.question.hasHeadItems ? (i(!0), u(
|
|
654
|
+
t.question.hasHeadItems ? (i(!0), u(D, { key: 1 }, B(t.question.headItems, (v) => (i(), g(T(e(v)), M({
|
|
655
655
|
key: v.value
|
|
656
656
|
}, o(v)), null, 16))), 128)) : d("", !0),
|
|
657
|
-
!t.question.hasColumns && !t.question.blockedRow ? (i(!0), u(
|
|
657
|
+
!t.question.hasColumns && !t.question.blockedRow ? (i(!0), u(D, { key: 2 }, B(t.question.bodyItems, (v) => (i(), g(T(e(v)), M({
|
|
658
658
|
key: v.value
|
|
659
659
|
}, o(v)), null, 16))), 128)) : d("", !0),
|
|
660
660
|
t.question.blockedRow ? (i(), u("div", {
|
|
661
661
|
key: 3,
|
|
662
662
|
class: a(t.question.cssClasses.rootRow)
|
|
663
663
|
}, [
|
|
664
|
-
!t.question.hasColumns && t.question.blockedRow ? (i(!0), u(
|
|
664
|
+
!t.question.hasColumns && t.question.blockedRow ? (i(!0), u(D, { key: 0 }, B(t.question.dataChoices, (v) => (i(), g(T(e(v)), M({
|
|
665
665
|
key: v.value
|
|
666
666
|
}, o(v)), null, 16))), 128)) : d("", !0)
|
|
667
667
|
], 2)) : d("", !0),
|
|
@@ -669,17 +669,17 @@ const je = /* @__PURE__ */ h({
|
|
|
669
669
|
key: 4,
|
|
670
670
|
class: a(t.question.cssClasses.rootMultiColumn)
|
|
671
671
|
}, [
|
|
672
|
-
t.question.hasColumns ? (i(!0), u(
|
|
672
|
+
t.question.hasColumns ? (i(!0), u(D, { key: 0 }, B(t.question.columns, (v, c) => (i(), u("div", {
|
|
673
673
|
key: c,
|
|
674
674
|
class: a(t.question.getColumnClass()),
|
|
675
675
|
role: "presentation"
|
|
676
676
|
}, [
|
|
677
|
-
(i(!0), u(
|
|
677
|
+
(i(!0), u(D, null, B(v, (q) => (i(), g(T(e(q)), M({
|
|
678
678
|
key: q.value
|
|
679
679
|
}, o(q)), null, 16))), 128))
|
|
680
680
|
], 2))), 128)) : d("", !0)
|
|
681
681
|
], 2)) : d("", !0),
|
|
682
|
-
t.question.hasFootItems ? (i(!0), u(
|
|
682
|
+
t.question.hasFootItems ? (i(!0), u(D, { key: 5 }, B(t.question.footItems, (v) => (i(), g(T(e(v)), M({
|
|
683
683
|
key: v.value
|
|
684
684
|
}, o(v)), null, 16))), 128)) : d("", !0),
|
|
685
685
|
t.question.renderedValue && t.question.isOtherSelected ? (i(), g(m, {
|
|
@@ -691,7 +691,7 @@ const je = /* @__PURE__ */ h({
|
|
|
691
691
|
type: "button",
|
|
692
692
|
class: a(t.question.cssClasses.clearButton),
|
|
693
693
|
onClick: l[0] || (l[0] = () => {
|
|
694
|
-
t.question.clearValue();
|
|
694
|
+
t.question.clearValue(!0);
|
|
695
695
|
}),
|
|
696
696
|
value: t.question.clearButtonCaption
|
|
697
697
|
}, null, 10, fs)
|
|
@@ -721,7 +721,7 @@ const je = /* @__PURE__ */ h({
|
|
|
721
721
|
},
|
|
722
722
|
setup(r) {
|
|
723
723
|
const s = r;
|
|
724
|
-
|
|
724
|
+
L(() => s.item);
|
|
725
725
|
const n = (e) => {
|
|
726
726
|
s.question.clickItemHandler(s.item, e.target.checked);
|
|
727
727
|
};
|
|
@@ -797,7 +797,7 @@ const je = /* @__PURE__ */ h({
|
|
|
797
797
|
l.renderedValue = t;
|
|
798
798
|
}
|
|
799
799
|
});
|
|
800
|
-
return
|
|
800
|
+
return L(() => s.item), (t, l) => {
|
|
801
801
|
const m = y("survey-string");
|
|
802
802
|
return i(), u("div", {
|
|
803
803
|
role: "presentation",
|
|
@@ -869,7 +869,7 @@ const je = /* @__PURE__ */ h({
|
|
|
869
869
|
locString: e.question.locRenderedPlaceholder
|
|
870
870
|
}, null, 8, ["locString"])
|
|
871
871
|
], 2), [
|
|
872
|
-
[
|
|
872
|
+
[H, e.question.needShowPlaceholder()]
|
|
873
873
|
]),
|
|
874
874
|
p("div", null, [
|
|
875
875
|
e.question.backgroundImage ? (i(), u("img", {
|
|
@@ -895,7 +895,7 @@ const je = /* @__PURE__ */ h({
|
|
|
895
895
|
class: a(e.question.cssClasses.clearButton),
|
|
896
896
|
title: e.question.clearButtonCaption,
|
|
897
897
|
onClick: o[1] || (o[1] = () => {
|
|
898
|
-
e.question.clearValue();
|
|
898
|
+
e.question.clearValue(!0);
|
|
899
899
|
})
|
|
900
900
|
}, [
|
|
901
901
|
e.question.cssClasses.clearButtonIconId ? d("", !0) : (i(), u("span", Ns, "\u2716")),
|
|
@@ -915,7 +915,7 @@ const je = /* @__PURE__ */ h({
|
|
|
915
915
|
], 6);
|
|
916
916
|
};
|
|
917
917
|
}
|
|
918
|
-
}), As = ["innerHTML"],
|
|
918
|
+
}), As = ["innerHTML"], Es = /* @__PURE__ */ h({
|
|
919
919
|
inheritAttrs: !1,
|
|
920
920
|
__name: "Html",
|
|
921
921
|
props: {
|
|
@@ -932,7 +932,7 @@ const je = /* @__PURE__ */ h({
|
|
|
932
932
|
innerHTML: w(e)
|
|
933
933
|
}, null, 10, As));
|
|
934
934
|
}
|
|
935
|
-
}),
|
|
935
|
+
}), Hs = ["src", "alt", "width", "height"], Ms = ["src", "width", "height"], Ws = ["src", "width", "height"], Fs = /* @__PURE__ */ h({
|
|
936
936
|
inheritAttrs: !1,
|
|
937
937
|
__name: "Image",
|
|
938
938
|
props: {
|
|
@@ -967,8 +967,8 @@ const je = /* @__PURE__ */ h({
|
|
|
967
967
|
onError: t[1] || (t[1] = (m) => {
|
|
968
968
|
o.question.onErrorHandler();
|
|
969
969
|
})
|
|
970
|
-
}, null, 46,
|
|
971
|
-
[
|
|
970
|
+
}, null, 46, Hs)), [
|
|
971
|
+
[H, w(e) && !o.question.contentNotLoaded]
|
|
972
972
|
]) : d("", !0),
|
|
973
973
|
o.question.renderedMode === "video" ? P((i(), u("video", {
|
|
974
974
|
key: 1,
|
|
@@ -988,8 +988,8 @@ const je = /* @__PURE__ */ h({
|
|
|
988
988
|
onError: t[3] || (t[3] = (m) => {
|
|
989
989
|
o.question.onErrorHandler();
|
|
990
990
|
})
|
|
991
|
-
}, null, 46,
|
|
992
|
-
[
|
|
991
|
+
}, null, 46, Ms)), [
|
|
992
|
+
[H, w(e) && !o.question.contentNotLoaded]
|
|
993
993
|
]) : d("", !0),
|
|
994
994
|
o.question.renderedMode === "youtube" ? (i(), u("iframe", {
|
|
995
995
|
key: 2,
|
|
@@ -1015,7 +1015,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1015
1015
|
], 2);
|
|
1016
1016
|
};
|
|
1017
1017
|
}
|
|
1018
|
-
}),
|
|
1018
|
+
}), Vs = /* @__PURE__ */ h({
|
|
1019
1019
|
inheritAttrs: !1,
|
|
1020
1020
|
__name: "Expression",
|
|
1021
1021
|
props: {
|
|
@@ -1159,15 +1159,15 @@ const je = /* @__PURE__ */ h({
|
|
|
1159
1159
|
ref: n
|
|
1160
1160
|
}, [
|
|
1161
1161
|
p("legend", Ks, R(t.question.locTitle.renderedHtml), 1),
|
|
1162
|
-
t.question.hasColumns ? d("", !0) : (i(!0), u(
|
|
1162
|
+
t.question.hasColumns ? d("", !0) : (i(!0), u(D, { key: 0 }, B(t.question.visibleChoices, (m) => (i(), g(T(e(m)), M({
|
|
1163
1163
|
key: m.value
|
|
1164
1164
|
}, o(m)), null, 16))), 128)),
|
|
1165
|
-
t.question.hasColumns ? (i(!0), u(
|
|
1165
|
+
t.question.hasColumns ? (i(!0), u(D, { key: 1 }, B(t.question.columns, (m, v) => (i(), u("div", {
|
|
1166
1166
|
class: a(t.question.getColumnClass()),
|
|
1167
1167
|
key: v,
|
|
1168
1168
|
role: "presentation"
|
|
1169
1169
|
}, [
|
|
1170
|
-
(i(!0), u(
|
|
1170
|
+
(i(!0), u(D, null, B(m, (c) => (i(), g(T(e(c)), M({
|
|
1171
1171
|
key: c.value
|
|
1172
1172
|
}, o(c)), null, 16))), 128))
|
|
1173
1173
|
], 2))), 128)) : d("", !0)
|
|
@@ -1182,7 +1182,7 @@ const je = /* @__PURE__ */ h({
|
|
|
1182
1182
|
},
|
|
1183
1183
|
setup(r) {
|
|
1184
1184
|
const s = r, n = (o) => s.question.getItemClass(o);
|
|
1185
|
-
|
|
1185
|
+
L(() => s.item);
|
|
1186
1186
|
const e = J(() => s.item.locImageLink);
|
|
1187
1187
|
return (o, t) => {
|
|
1188
1188
|
const l = y("sv-svg-icon"), m = y("survey-string");
|
|
@@ -1468,12 +1468,12 @@ const rn = /* @__PURE__ */ h({
|
|
|
1468
1468
|
required: l.question.isRequired
|
|
1469
1469
|
}, [
|
|
1470
1470
|
l.question.allowClear ? (i(), u("option", on, R(l.question.placeholder), 1)) : d("", !0),
|
|
1471
|
-
(i(!0), u(
|
|
1471
|
+
(i(!0), u(D, null, B(l.question.visibleChoices, (f) => (i(), g(v, {
|
|
1472
1472
|
item: f,
|
|
1473
1473
|
key: f.id
|
|
1474
1474
|
}, null, 8, ["item"]))), 128))
|
|
1475
1475
|
], 42, nn)), [
|
|
1476
|
-
[
|
|
1476
|
+
[we, t.value]
|
|
1477
1477
|
]),
|
|
1478
1478
|
l.question.cssClasses.chevronButtonIconId ? (i(), u("div", {
|
|
1479
1479
|
key: 2,
|
|
@@ -1500,7 +1500,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1500
1500
|
},
|
|
1501
1501
|
setup(r) {
|
|
1502
1502
|
const s = r, n = J(() => s.item.locText);
|
|
1503
|
-
return
|
|
1503
|
+
return L(() => s.item), (e, o) => (i(), u("option", {
|
|
1504
1504
|
value: e.item.value,
|
|
1505
1505
|
disabled: !e.item.isEnabled
|
|
1506
1506
|
}, R(w(n)), 9, ln));
|
|
@@ -1511,10 +1511,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1511
1511
|
question: {}
|
|
1512
1512
|
},
|
|
1513
1513
|
setup(r) {
|
|
1514
|
-
const s = r, n = $(null), e = S(() => {
|
|
1515
|
-
const b = s.question;
|
|
1516
|
-
return b.dropdownListModel || (b.dropdownListModel = new De(b)), s.question.dropdownListModel;
|
|
1517
|
-
}), o = (b) => {
|
|
1514
|
+
const s = r, n = $(null), e = S(() => s.question.dropdownListModel), o = (b) => {
|
|
1518
1515
|
var N;
|
|
1519
1516
|
(N = e.value) == null || N.onClick(b);
|
|
1520
1517
|
}, t = (b) => {
|
|
@@ -1541,9 +1538,9 @@ const rn = /* @__PURE__ */ h({
|
|
|
1541
1538
|
e.value.inputStringRendered = b.target.value;
|
|
1542
1539
|
}, k = S(
|
|
1543
1540
|
() => s.question.showSelectedItemLocText
|
|
1544
|
-
),
|
|
1545
|
-
return
|
|
1546
|
-
const W = y("survey-string"),
|
|
1541
|
+
), _ = S(() => s.question.selectedItemLocText);
|
|
1542
|
+
return L(() => e.value), te(v), E(v), (b, N) => {
|
|
1543
|
+
const W = y("survey-string"), F = y("sv-svg-icon"), Q = y("sv-popup");
|
|
1547
1544
|
return i(), u("div", {
|
|
1548
1545
|
class: a(b.question.cssClasses.selectWrapper),
|
|
1549
1546
|
onClick: o
|
|
@@ -1577,7 +1574,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1577
1574
|
}, [
|
|
1578
1575
|
k.value ? (i(), g(W, {
|
|
1579
1576
|
key: 0,
|
|
1580
|
-
locString:
|
|
1577
|
+
locString: _.value
|
|
1581
1578
|
}, null, 8, ["locString"])) : d("", !0),
|
|
1582
1579
|
e.value.showHintString ? (i(), u("div", {
|
|
1583
1580
|
key: 1,
|
|
@@ -1621,14 +1618,14 @@ const rn = /* @__PURE__ */ h({
|
|
|
1621
1618
|
onClick: l,
|
|
1622
1619
|
"aria-hidden": "true"
|
|
1623
1620
|
}, [
|
|
1624
|
-
C(
|
|
1621
|
+
C(F, {
|
|
1625
1622
|
class: a(b.question.cssClasses.cleanButtonSvg),
|
|
1626
1623
|
iconName: b.question.cssClasses.cleanButtonIconId,
|
|
1627
1624
|
title: b.question.clearCaption,
|
|
1628
1625
|
size: "auto"
|
|
1629
1626
|
}, null, 8, ["class", "iconName", "title"])
|
|
1630
1627
|
], 2)), [
|
|
1631
|
-
[
|
|
1628
|
+
[H, b.question.showClearButton]
|
|
1632
1629
|
]) : d("", !0)
|
|
1633
1630
|
], 42, un)),
|
|
1634
1631
|
b.question.isReadOnly ? (i(), u("div", {
|
|
@@ -1652,7 +1649,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1652
1649
|
onPointerdown: t,
|
|
1653
1650
|
"aria-hidden": "true"
|
|
1654
1651
|
}, [
|
|
1655
|
-
C(
|
|
1652
|
+
C(F, {
|
|
1656
1653
|
class: a(b.question.cssClasses.chevronButtonSvg),
|
|
1657
1654
|
iconName: b.question.cssClasses.chevronButtonIconId,
|
|
1658
1655
|
size: "auto"
|
|
@@ -1709,8 +1706,8 @@ const rn = /* @__PURE__ */ h({
|
|
|
1709
1706
|
var q;
|
|
1710
1707
|
(q = n.value) == null || q.onBlur(c);
|
|
1711
1708
|
}, v = le(() => s.question.selectedChoices);
|
|
1712
|
-
return
|
|
1713
|
-
const f = y("sv-tagbox-item"), k = y("sv-tagbox-filter"),
|
|
1709
|
+
return L(() => n.value), (c, q) => {
|
|
1710
|
+
const f = y("sv-tagbox-item"), k = y("sv-tagbox-filter"), _ = y("sv-svg-icon"), b = y("sv-popup"), N = y("survey-string");
|
|
1714
1711
|
return i(), u("div", {
|
|
1715
1712
|
class: a(c.question.cssClasses.selectWrapper),
|
|
1716
1713
|
onClick: e
|
|
@@ -1736,10 +1733,10 @@ const rn = /* @__PURE__ */ h({
|
|
|
1736
1733
|
p("div", {
|
|
1737
1734
|
class: a(c.question.cssClasses.controlValue)
|
|
1738
1735
|
}, [
|
|
1739
|
-
(i(!0), u(
|
|
1736
|
+
(i(!0), u(D, null, B(w(v), (W, F) => (i(), g(f, {
|
|
1740
1737
|
item: W,
|
|
1741
1738
|
question: c.question,
|
|
1742
|
-
key: "item" +
|
|
1739
|
+
key: "item" + F
|
|
1743
1740
|
}, null, 8, ["item", "question"]))), 128)),
|
|
1744
1741
|
C(k, {
|
|
1745
1742
|
model: n.value,
|
|
@@ -1752,14 +1749,14 @@ const rn = /* @__PURE__ */ h({
|
|
|
1752
1749
|
onClick: t,
|
|
1753
1750
|
"aria-hidden": "true"
|
|
1754
1751
|
}, [
|
|
1755
|
-
C(
|
|
1752
|
+
C(_, {
|
|
1756
1753
|
class: a(c.question.cssClasses.cleanButtonSvg),
|
|
1757
1754
|
iconName: c.question.cssClasses.cleanButtonIconId,
|
|
1758
1755
|
title: c.question.clearCaption,
|
|
1759
1756
|
size: "auto"
|
|
1760
1757
|
}, null, 8, ["class", "iconName", "title"])
|
|
1761
1758
|
], 2)), [
|
|
1762
|
-
[
|
|
1759
|
+
[H, c.question.showClearButton]
|
|
1763
1760
|
]) : d("", !0)
|
|
1764
1761
|
], 42, qn)),
|
|
1765
1762
|
c.question.isReadOnly ? (i(), u("div", {
|
|
@@ -1782,7 +1779,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1782
1779
|
onPointerdown: o,
|
|
1783
1780
|
"aria-hidden": "true"
|
|
1784
1781
|
}, [
|
|
1785
|
-
C(
|
|
1782
|
+
C(_, {
|
|
1786
1783
|
class: a(c.question.cssClasses.chevronButtonSvg),
|
|
1787
1784
|
iconName: c.question.cssClasses.chevronButtonIconId,
|
|
1788
1785
|
size: "auto"
|
|
@@ -1808,7 +1805,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1808
1805
|
}, t = (l) => {
|
|
1809
1806
|
s.model.onFocus(l);
|
|
1810
1807
|
};
|
|
1811
|
-
return
|
|
1808
|
+
return L(() => s.model), (l, m) => {
|
|
1812
1809
|
const v = y("survey-string");
|
|
1813
1810
|
return i(), u("div", {
|
|
1814
1811
|
class: a(l.question.cssClasses.hint)
|
|
@@ -1856,7 +1853,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1856
1853
|
onBlur: o,
|
|
1857
1854
|
onFocus: t
|
|
1858
1855
|
}, null, 42, Cn), [
|
|
1859
|
-
[
|
|
1856
|
+
[Ie, l.model.inputStringRendered]
|
|
1860
1857
|
])
|
|
1861
1858
|
], 2)
|
|
1862
1859
|
], 2);
|
|
@@ -1872,7 +1869,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1872
1869
|
const s = r, n = (e) => {
|
|
1873
1870
|
s.question.dropdownListModel.deselectItem(s.item.value), e.stopPropagation();
|
|
1874
1871
|
};
|
|
1875
|
-
return
|
|
1872
|
+
return L(() => s.item), (e, o) => {
|
|
1876
1873
|
const t = y("survey-string"), l = y("sv-svg-icon");
|
|
1877
1874
|
return i(), u("div", {
|
|
1878
1875
|
class: "sv-tagbox__item",
|
|
@@ -1924,7 +1921,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1924
1921
|
ref_key: "root",
|
|
1925
1922
|
ref: n
|
|
1926
1923
|
}, [
|
|
1927
|
-
t.question.selectToRankEnabled ? d("", !0) : (i(!0), u(
|
|
1924
|
+
t.question.selectToRankEnabled ? d("", !0) : (i(!0), u(D, { key: 0 }, B(t.question.rankingChoices, (v, c) => (i(), g(T(e(v)), M({
|
|
1928
1925
|
key: v.value + "-" + c + "-item"
|
|
1929
1926
|
}, o(v, c)), null, 16))), 128)),
|
|
1930
1927
|
t.question.selectToRankEnabled ? (i(), u("div", {
|
|
@@ -1932,7 +1929,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1932
1929
|
class: a(t.question.getContainerClasses("from")),
|
|
1933
1930
|
"data-ranking": "from-container"
|
|
1934
1931
|
}, [
|
|
1935
|
-
(i(!0), u(
|
|
1932
|
+
(i(!0), u(D, null, B(t.question.unRankingChoices, (v, c) => (i(), g(T(e(v)), M({
|
|
1936
1933
|
key: v.value + "-" + c + "-item"
|
|
1937
1934
|
}, o(v, c, !0)), null, 16))), 128)),
|
|
1938
1935
|
t.question.unRankingChoices.length === 0 ? (i(), u("div", {
|
|
@@ -1953,7 +1950,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1953
1950
|
class: a(t.question.getContainerClasses("to")),
|
|
1954
1951
|
"data-ranking": "to-container"
|
|
1955
1952
|
}, [
|
|
1956
|
-
(i(!0), u(
|
|
1953
|
+
(i(!0), u(D, null, B(t.question.rankingChoices, (v, c) => (i(), g(T(e(v)), M({
|
|
1957
1954
|
key: v.value + "-" + c + "-item"
|
|
1958
1955
|
}, o(v, c)), null, 16))), 128)),
|
|
1959
1956
|
t.question.rankingChoices.length === 0 ? (i(), u("div", {
|
|
@@ -1982,7 +1979,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
1982
1979
|
},
|
|
1983
1980
|
setup(r) {
|
|
1984
1981
|
const s = r, n = S(() => s.question.getNumberByIndex(s.index));
|
|
1985
|
-
return
|
|
1982
|
+
return L(() => s.item), (e, o) => {
|
|
1986
1983
|
const t = y("survey-string");
|
|
1987
1984
|
return i(), u("div", {
|
|
1988
1985
|
tabindex: e.question.getItemTabIndex(e.item),
|
|
@@ -2088,7 +2085,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2088
2085
|
locString: o.question.locMinRateDescription
|
|
2089
2086
|
}, null, 8, ["locString"])
|
|
2090
2087
|
], 2)) : d("", !0),
|
|
2091
|
-
(i(!0), u(
|
|
2088
|
+
(i(!0), u(D, null, B(o.question.renderedRateItems, (m, v) => (i(), g(T(o.question.itemComponent), {
|
|
2092
2089
|
key: e(v),
|
|
2093
2090
|
item: m,
|
|
2094
2091
|
index: v,
|
|
@@ -2115,7 +2112,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2115
2112
|
},
|
|
2116
2113
|
setup(r) {
|
|
2117
2114
|
const s = r;
|
|
2118
|
-
return
|
|
2115
|
+
return L(() => s.item), (n, e) => {
|
|
2119
2116
|
const o = y("survey-string");
|
|
2120
2117
|
return i(), u("label", {
|
|
2121
2118
|
key: n.item.value,
|
|
@@ -2145,7 +2142,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2145
2142
|
], 34);
|
|
2146
2143
|
};
|
|
2147
2144
|
}
|
|
2148
|
-
}), An = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"],
|
|
2145
|
+
}), An = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], En = /* @__PURE__ */ h({
|
|
2149
2146
|
__name: "RatingItemSmiley",
|
|
2150
2147
|
props: {
|
|
2151
2148
|
question: {},
|
|
@@ -2154,7 +2151,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2154
2151
|
},
|
|
2155
2152
|
setup(r) {
|
|
2156
2153
|
const s = r;
|
|
2157
|
-
return
|
|
2154
|
+
return L(() => s.item), (n, e) => {
|
|
2158
2155
|
const o = y("sv-svg-icon");
|
|
2159
2156
|
return i(), u("label", {
|
|
2160
2157
|
key: n.item.value,
|
|
@@ -2185,7 +2182,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2185
2182
|
], 38);
|
|
2186
2183
|
};
|
|
2187
2184
|
}
|
|
2188
|
-
}),
|
|
2185
|
+
}), Hn = ["name", "id", "value", "disabled", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], Mn = /* @__PURE__ */ h({
|
|
2189
2186
|
__name: "RatingItemStar",
|
|
2190
2187
|
props: {
|
|
2191
2188
|
question: {},
|
|
@@ -2194,7 +2191,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2194
2191
|
},
|
|
2195
2192
|
setup(r) {
|
|
2196
2193
|
const s = r;
|
|
2197
|
-
return
|
|
2194
|
+
return L(() => s.item), (n, e) => {
|
|
2198
2195
|
const o = y("sv-svg-icon");
|
|
2199
2196
|
return i(), u("label", {
|
|
2200
2197
|
key: n.item.value,
|
|
@@ -2215,7 +2212,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2215
2212
|
"aria-label": n.question.ariaLabel,
|
|
2216
2213
|
"aria-invalid": n.question.ariaInvalid,
|
|
2217
2214
|
"aria-errormessage": n.question.ariaErrormessage
|
|
2218
|
-
}, null, 8,
|
|
2215
|
+
}, null, 8, Hn),
|
|
2219
2216
|
C(o, {
|
|
2220
2217
|
class: a("sv-star"),
|
|
2221
2218
|
iconName: n.question.itemStarIcon,
|
|
@@ -2231,7 +2228,7 @@ const rn = /* @__PURE__ */ h({
|
|
|
2231
2228
|
], 34);
|
|
2232
2229
|
};
|
|
2233
2230
|
}
|
|
2234
|
-
}), Wn = { class: "sd-rating-dropdown-item" },
|
|
2231
|
+
}), Wn = { class: "sd-rating-dropdown-item" }, Fn = { class: "sd-rating-dropdown-item_text" }, Vn = {
|
|
2235
2232
|
key: 0,
|
|
2236
2233
|
class: "sd-rating-dropdown-item_description"
|
|
2237
2234
|
}, On = /* @__PURE__ */ h({
|
|
@@ -2241,11 +2238,11 @@ const rn = /* @__PURE__ */ h({
|
|
|
2241
2238
|
},
|
|
2242
2239
|
setup(r) {
|
|
2243
2240
|
const s = r;
|
|
2244
|
-
return
|
|
2241
|
+
return L(() => s.item), (n, e) => {
|
|
2245
2242
|
const o = y("survey-string");
|
|
2246
2243
|
return i(), u("div", Wn, [
|
|
2247
|
-
p("span",
|
|
2248
|
-
n.item.description ? (i(), u("div",
|
|
2244
|
+
p("span", Fn, R(n.item.title), 1),
|
|
2245
|
+
n.item.description ? (i(), u("div", Vn, [
|
|
2249
2246
|
C(o, {
|
|
2250
2247
|
locString: n.item.description
|
|
2251
2248
|
}, null, 8, ["locString"])
|
|
@@ -2573,14 +2570,14 @@ const so = /* @__PURE__ */ h({
|
|
|
2573
2570
|
ref: n
|
|
2574
2571
|
}, [
|
|
2575
2572
|
p("tbody", null, [
|
|
2576
|
-
(i(!0), u(
|
|
2573
|
+
(i(!0), u(D, null, B(w(e), (m, v) => (i(), u(D, {
|
|
2577
2574
|
key: o.question.inputId + "rowkey" + v
|
|
2578
2575
|
}, [
|
|
2579
2576
|
m.isVisible ? (i(), u("tr", {
|
|
2580
2577
|
key: 0,
|
|
2581
2578
|
class: a(o.question.cssClasses.row)
|
|
2582
2579
|
}, [
|
|
2583
|
-
(i(!0), u(
|
|
2580
|
+
(i(!0), u(D, null, B(m.cells, (c) => (i(), u("td", {
|
|
2584
2581
|
key: "item" + c.item.editor.id,
|
|
2585
2582
|
class: a(c.className)
|
|
2586
2583
|
}, [
|
|
@@ -2603,7 +2600,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2603
2600
|
},
|
|
2604
2601
|
setup(r) {
|
|
2605
2602
|
const s = r, n = (o) => re(o);
|
|
2606
|
-
|
|
2603
|
+
L(() => s.cell.item.editor);
|
|
2607
2604
|
const e = S(() => s.cell.item);
|
|
2608
2605
|
return (o, t) => {
|
|
2609
2606
|
const l = y("survey-string"), m = y("survey-errors");
|
|
@@ -2683,7 +2680,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2683
2680
|
t.question.showHeader ? (i(), u("thead", ro, [
|
|
2684
2681
|
p("tr", null, [
|
|
2685
2682
|
t.question.hasRows ? (i(), u("td", lo)) : d("", !0),
|
|
2686
|
-
(i(!0), u(
|
|
2683
|
+
(i(!0), u(D, null, B(t.question.visibleColumns, (v, c) => (i(), u("th", {
|
|
2687
2684
|
key: c,
|
|
2688
2685
|
class: a(t.question.cssClasses.headerCell),
|
|
2689
2686
|
style: I({
|
|
@@ -2694,7 +2691,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2694
2691
|
(i(), g(T(t.question.getColumnHeaderWrapperComponentName(v)), {
|
|
2695
2692
|
componentData: t.question.getColumnHeaderWrapperComponentData(v)
|
|
2696
2693
|
}, {
|
|
2697
|
-
default:
|
|
2694
|
+
default: V(() => [
|
|
2698
2695
|
C(m, {
|
|
2699
2696
|
locString: v.locText
|
|
2700
2697
|
}, null, 8, ["locString"])
|
|
@@ -2705,7 +2702,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2705
2702
|
])
|
|
2706
2703
|
])) : d("", !0),
|
|
2707
2704
|
p("tbody", null, [
|
|
2708
|
-
(i(!0), u(
|
|
2705
|
+
(i(!0), u(D, null, B(e.value, (v, c) => (i(), u("tr", {
|
|
2709
2706
|
key: "row_" + v.name + "_" + c,
|
|
2710
2707
|
class: a(v.rowClasses || void 0)
|
|
2711
2708
|
}, [
|
|
@@ -2719,7 +2716,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2719
2716
|
(i(), g(T(t.question.getRowHeaderWrapperComponentName(v)), {
|
|
2720
2717
|
componentData: t.question.getRowHeaderWrapperComponentData(v)
|
|
2721
2718
|
}, {
|
|
2722
|
-
default:
|
|
2719
|
+
default: V(() => [
|
|
2723
2720
|
C(m, {
|
|
2724
2721
|
locString: v.locText
|
|
2725
2722
|
}, null, 8, ["locString"])
|
|
@@ -2727,9 +2724,9 @@ const so = /* @__PURE__ */ h({
|
|
|
2727
2724
|
_: 2
|
|
2728
2725
|
}, 1032, ["componentData"]))
|
|
2729
2726
|
], 6), [
|
|
2730
|
-
[
|
|
2727
|
+
[H, t.question.hasRows]
|
|
2731
2728
|
]),
|
|
2732
|
-
t.question.hasCellText ? (i(!0), u(
|
|
2729
|
+
t.question.hasCellText ? (i(!0), u(D, { key: 0 }, B(t.question.visibleColumns, (q, f) => (i(), u("td", {
|
|
2733
2730
|
key: f,
|
|
2734
2731
|
class: a(t.question.getItemClass(v, q)),
|
|
2735
2732
|
onClick: (k) => o(v, q)
|
|
@@ -2738,7 +2735,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2738
2735
|
locString: t.question.getCellDisplayLocText(v.name, q)
|
|
2739
2736
|
}, null, 8, ["locString"])
|
|
2740
2737
|
], 10, ao))), 128)) : d("", !0),
|
|
2741
|
-
t.question.hasCellText ? d("", !0) : (i(!0), u(
|
|
2738
|
+
t.question.hasCellText ? d("", !0) : (i(!0), u(D, { key: 1 }, B(t.question.visibleColumns, (q, f) => (i(), u("td", {
|
|
2742
2739
|
key: f,
|
|
2743
2740
|
"data-responsive-title": q.locText.renderedHtml,
|
|
2744
2741
|
class: a(t.question.cssClasses.cell),
|
|
@@ -2766,14 +2763,14 @@ const so = /* @__PURE__ */ h({
|
|
|
2766
2763
|
},
|
|
2767
2764
|
setup(r) {
|
|
2768
2765
|
const s = r, n = $();
|
|
2769
|
-
|
|
2766
|
+
L(() => s.row);
|
|
2770
2767
|
const e = K(
|
|
2771
2768
|
() => s.row,
|
|
2772
2769
|
(o, t) => {
|
|
2773
2770
|
t && t.setRootElement(void 0), o.setRootElement(n.value);
|
|
2774
2771
|
}
|
|
2775
2772
|
);
|
|
2776
|
-
return
|
|
2773
|
+
return E(() => {
|
|
2777
2774
|
s.row.setRootElement(n.value);
|
|
2778
2775
|
}), O(() => {
|
|
2779
2776
|
s.row.setRootElement(void 0), e();
|
|
@@ -2787,7 +2784,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2787
2784
|
ref_key: "root",
|
|
2788
2785
|
ref: n
|
|
2789
2786
|
}, [
|
|
2790
|
-
(i(!0), u(
|
|
2787
|
+
(i(!0), u(D, null, B(o.row.cells, (m, v) => (i(), g(l, {
|
|
2791
2788
|
cell: m,
|
|
2792
2789
|
question: o.question,
|
|
2793
2790
|
key: o.row.id + "_" + v
|
|
@@ -2876,7 +2873,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2876
2873
|
},
|
|
2877
2874
|
setup(r) {
|
|
2878
2875
|
const s = r, n = S(() => s.question.renderedTable);
|
|
2879
|
-
return
|
|
2876
|
+
return L(
|
|
2880
2877
|
() => n.value,
|
|
2881
2878
|
(e) => {
|
|
2882
2879
|
const o = ie();
|
|
@@ -2900,7 +2897,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2900
2897
|
}, [
|
|
2901
2898
|
n.value.showHeader ? (i(), u("thead", ho, [
|
|
2902
2899
|
p("tr", null, [
|
|
2903
|
-
(i(!0), u(
|
|
2900
|
+
(i(!0), u(D, null, B(n.value.headerRow.cells, (c) => (i(), u(D, null, [
|
|
2904
2901
|
c.hasTitle ? (i(), u("th", {
|
|
2905
2902
|
key: "header_" + c.id,
|
|
2906
2903
|
class: a(c.className),
|
|
@@ -2909,7 +2906,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2909
2906
|
(i(), g(T(e.question.getColumnHeaderWrapperComponentName(c)), {
|
|
2910
2907
|
componentData: e.question.getColumnHeaderWrapperComponentData(c)
|
|
2911
2908
|
}, {
|
|
2912
|
-
default:
|
|
2909
|
+
default: V(() => [
|
|
2913
2910
|
C(t, {
|
|
2914
2911
|
locString: c.locTitle
|
|
2915
2912
|
}, null, 8, ["locString"]),
|
|
@@ -2931,7 +2928,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2931
2928
|
])
|
|
2932
2929
|
])) : d("", !0),
|
|
2933
2930
|
p("tbody", null, [
|
|
2934
|
-
(i(!0), u(
|
|
2931
|
+
(i(!0), u(D, null, B(n.value.renderedRows, (c) => (i(), g(m, {
|
|
2935
2932
|
key: e.question.inputId + "_" + c.id,
|
|
2936
2933
|
row: c,
|
|
2937
2934
|
question: e.question
|
|
@@ -2939,7 +2936,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2939
2936
|
]),
|
|
2940
2937
|
n.value.showFooter ? (i(), u("tfoot", Co, [
|
|
2941
2938
|
p("tr", null, [
|
|
2942
|
-
(i(!0), u(
|
|
2939
|
+
(i(!0), u(D, null, B(n.value.footerRow.cells, (c, q) => (i(), g(v, {
|
|
2943
2940
|
cell: c,
|
|
2944
2941
|
question: e.question,
|
|
2945
2942
|
key: "footer_" + q
|
|
@@ -2958,7 +2955,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2958
2955
|
},
|
|
2959
2956
|
setup(r) {
|
|
2960
2957
|
const s = r;
|
|
2961
|
-
return
|
|
2958
|
+
return L(() => s.column), (n, e) => n.column.isRenderedRequired ? (i(), u(D, { key: 0 }, [
|
|
2962
2959
|
ko,
|
|
2963
2960
|
n.column.isRenderedRequired ? (i(), u("span", {
|
|
2964
2961
|
key: 0,
|
|
@@ -2974,7 +2971,7 @@ const so = /* @__PURE__ */ h({
|
|
|
2974
2971
|
},
|
|
2975
2972
|
setup(r) {
|
|
2976
2973
|
const s = r, n = $(!1), e = $(), o = () => s.cell.headers, t = () => !!s.cell.width || !!s.cell.minWidth ? { width: s.cell.width, minWidth: s.cell.minWidth } : null, l = () => n.value = s.cell.question.isVisible, m = (q) => re(q);
|
|
2977
|
-
|
|
2974
|
+
E(() => {
|
|
2978
2975
|
if (!s.cell.hasQuestion || !s.question || !s.question.survey)
|
|
2979
2976
|
return;
|
|
2980
2977
|
l(), s.cell.question.registerPropertyChangedHandlers(["isVisible"], () => {
|
|
@@ -2994,28 +2991,28 @@ const so = /* @__PURE__ */ h({
|
|
|
2994
2991
|
if (q.hasPanel) {
|
|
2995
2992
|
const f = q.panel, k = f.survey;
|
|
2996
2993
|
if (k) {
|
|
2997
|
-
const
|
|
2998
|
-
if (
|
|
2999
|
-
return
|
|
2994
|
+
const _ = k.getElementWrapperComponentName(f);
|
|
2995
|
+
if (_)
|
|
2996
|
+
return _;
|
|
3000
2997
|
}
|
|
3001
2998
|
return "survey-panel";
|
|
3002
2999
|
}
|
|
3003
3000
|
}), c = S(() => {
|
|
3004
3001
|
if (s.cell.hasPanel) {
|
|
3005
3002
|
const f = s.cell.panel, k = f.survey;
|
|
3006
|
-
let
|
|
3007
|
-
return k && (
|
|
3003
|
+
let _;
|
|
3004
|
+
return k && (_ = k.getElementWrapperComponentData(f)), {
|
|
3008
3005
|
componentName: "survey-panel",
|
|
3009
3006
|
componentData: {
|
|
3010
3007
|
element: f,
|
|
3011
|
-
data:
|
|
3008
|
+
data: _,
|
|
3012
3009
|
css: s.question.cssClasses
|
|
3013
3010
|
}
|
|
3014
3011
|
};
|
|
3015
3012
|
}
|
|
3016
3013
|
});
|
|
3017
3014
|
return (q, f) => {
|
|
3018
|
-
const k = y("survey-errors"),
|
|
3015
|
+
const k = y("survey-errors"), _ = y("sv-matrix-drag-drop-icon"), b = y("sv-action-bar"), N = y("survey-radiogroup-item"), W = y("survey-checkbox-item"), F = y("survey-other-choice"), Q = y("survey-string");
|
|
3019
3016
|
return i(), u("td", {
|
|
3020
3017
|
class: a(q.cell.className),
|
|
3021
3018
|
"data-responsive-title": o(),
|
|
@@ -3030,7 +3027,7 @@ const so = /* @__PURE__ */ h({
|
|
|
3030
3027
|
key: 0,
|
|
3031
3028
|
element: q.cell.question
|
|
3032
3029
|
}, null, 8, ["element"])) : d("", !0),
|
|
3033
|
-
q.cell.isDragHandlerCell ? (i(), g(
|
|
3030
|
+
q.cell.isDragHandlerCell ? (i(), g(_, {
|
|
3034
3031
|
key: 1,
|
|
3035
3032
|
item: { data: { row: q.cell.row, question: q.question } }
|
|
3036
3033
|
}, null, 8, ["item"])) : d("", !0),
|
|
@@ -3039,7 +3036,7 @@ const so = /* @__PURE__ */ h({
|
|
|
3039
3036
|
model: q.cell.item.getData(),
|
|
3040
3037
|
handleClick: !1
|
|
3041
3038
|
}, null, 8, ["model"])) : d("", !0),
|
|
3042
|
-
q.cell.hasPanel ? (i(), g(T(v.value), z(
|
|
3039
|
+
q.cell.hasPanel ? (i(), g(T(v.value), z(M({ key: 3 }, c.value)), null, 16)) : d("", !0),
|
|
3043
3040
|
q.cell.hasQuestion ? P((i(), u("div", {
|
|
3044
3041
|
key: 4,
|
|
3045
3042
|
class: a(q.cell.cellQuestionWrapperClassName)
|
|
@@ -3048,7 +3045,7 @@ const so = /* @__PURE__ */ h({
|
|
|
3048
3045
|
key: 0,
|
|
3049
3046
|
componentData: q.question.getCellWrapperComponentData(q.cell.cell)
|
|
3050
3047
|
}, {
|
|
3051
|
-
default:
|
|
3048
|
+
default: V(() => [
|
|
3052
3049
|
(i(), g(T(m(q.cell.question)), {
|
|
3053
3050
|
question: q.cell.question
|
|
3054
3051
|
}, null, 8, ["question"]))
|
|
@@ -3063,7 +3060,7 @@ const so = /* @__PURE__ */ h({
|
|
|
3063
3060
|
key: 2,
|
|
3064
3061
|
componentData: q.question.getCellWrapperComponentData(q.cell.cell)
|
|
3065
3062
|
}, {
|
|
3066
|
-
default:
|
|
3063
|
+
default: V(() => [
|
|
3067
3064
|
q.cell.isRadio ? (i(), g(N, {
|
|
3068
3065
|
key: q.cell.item.value,
|
|
3069
3066
|
question: q.cell.question,
|
|
@@ -3079,18 +3076,18 @@ const so = /* @__PURE__ */ h({
|
|
|
3079
3076
|
]),
|
|
3080
3077
|
_: 1
|
|
3081
3078
|
}, 8, ["componentData"])) : d("", !0),
|
|
3082
|
-
q.cell.isOtherChoice ? (i(), g(
|
|
3079
|
+
q.cell.isOtherChoice ? (i(), g(F, {
|
|
3083
3080
|
key: 3,
|
|
3084
3081
|
question: q.cell.question
|
|
3085
3082
|
}, null, 8, ["question"])) : d("", !0)
|
|
3086
3083
|
], 2)), [
|
|
3087
|
-
[
|
|
3084
|
+
[H, n.value]
|
|
3088
3085
|
]) : d("", !0),
|
|
3089
3086
|
q.cell.hasTitle ? (i(), g(T(q.question.getCellWrapperComponentName(q.cell)), {
|
|
3090
3087
|
key: 5,
|
|
3091
3088
|
componentData: q.question.getCellWrapperComponentData(q.cell)
|
|
3092
3089
|
}, {
|
|
3093
|
-
default:
|
|
3090
|
+
default: V(() => [
|
|
3094
3091
|
q.cell.hasTitle ? (i(), g(Q, {
|
|
3095
3092
|
key: 0,
|
|
3096
3093
|
locString: q.cell.locTitle
|
|
@@ -3314,7 +3311,7 @@ const Ro = ["disabled"], To = /* @__PURE__ */ h({
|
|
|
3314
3311
|
};
|
|
3315
3312
|
};
|
|
3316
3313
|
return (m, v) => {
|
|
3317
|
-
const c = y("survey-string"), q = y("sv-paneldynamic-add-btn"), f = y("survey-paneldynamicprogress"), k = y("sv-paneldynamic-remove-btn"),
|
|
3314
|
+
const c = y("survey-string"), q = y("sv-paneldynamic-add-btn"), f = y("survey-paneldynamicprogress"), k = y("sv-paneldynamic-remove-btn"), _ = y("survey-paneldynamicprogress-v2");
|
|
3318
3315
|
return i(), u("div", {
|
|
3319
3316
|
class: a(m.question.cssClasses.root),
|
|
3320
3317
|
ref_key: "root",
|
|
@@ -3350,7 +3347,7 @@ const Ro = ["disabled"], To = /* @__PURE__ */ h({
|
|
|
3350
3347
|
p("div", {
|
|
3351
3348
|
class: a(m.question.cssClasses.panelsContainer)
|
|
3352
3349
|
}, [
|
|
3353
|
-
(i(!0), u(
|
|
3350
|
+
(i(!0), u(D, null, B(m.question.renderedPanels, (b, N) => (i(), u(D, {
|
|
3354
3351
|
key: b.id
|
|
3355
3352
|
}, [
|
|
3356
3353
|
p("div", {
|
|
@@ -3376,7 +3373,7 @@ const Ro = ["disabled"], To = /* @__PURE__ */ h({
|
|
|
3376
3373
|
key: 4,
|
|
3377
3374
|
data: { question: m.question }
|
|
3378
3375
|
}, null, 8, ["data"])) : d("", !0),
|
|
3379
|
-
m.question.showNavigation ? (i(), g(
|
|
3376
|
+
m.question.showNavigation ? (i(), g(_, {
|
|
3380
3377
|
key: 5,
|
|
3381
3378
|
question: m.question
|
|
3382
3379
|
}, null, 8, ["question"])) : d("", !0)
|
|
@@ -3499,7 +3496,7 @@ const Ao = /* @__PURE__ */ h({
|
|
|
3499
3496
|
], 2)) : d("", !0);
|
|
3500
3497
|
};
|
|
3501
3498
|
}
|
|
3502
|
-
}),
|
|
3499
|
+
}), Eo = ["title"], Ho = /* @__PURE__ */ h({
|
|
3503
3500
|
__name: "PaneldynamicNextBtn",
|
|
3504
3501
|
props: {
|
|
3505
3502
|
item: {},
|
|
@@ -3520,10 +3517,10 @@ const Ao = /* @__PURE__ */ h({
|
|
|
3520
3517
|
iconName: w(n).cssClasses.progressBtnIcon,
|
|
3521
3518
|
size: "auto"
|
|
3522
3519
|
}, null, 8, ["iconName"])
|
|
3523
|
-
], 10,
|
|
3520
|
+
], 10, Eo);
|
|
3524
3521
|
};
|
|
3525
3522
|
}
|
|
3526
|
-
}),
|
|
3523
|
+
}), Mo = ["title"], Wo = /* @__PURE__ */ h({
|
|
3527
3524
|
__name: "PaneldynamicPrevBtn",
|
|
3528
3525
|
props: {
|
|
3529
3526
|
item: {},
|
|
@@ -3544,10 +3541,10 @@ const Ao = /* @__PURE__ */ h({
|
|
|
3544
3541
|
iconName: w(n).cssClasses.progressBtnIcon,
|
|
3545
3542
|
size: "auto"
|
|
3546
3543
|
}, null, 8, ["iconName"])
|
|
3547
|
-
], 10,
|
|
3544
|
+
], 10, Mo);
|
|
3548
3545
|
};
|
|
3549
3546
|
}
|
|
3550
|
-
}),
|
|
3547
|
+
}), Fo = /* @__PURE__ */ h({
|
|
3551
3548
|
__name: "PaneldynamicRemoveBtn",
|
|
3552
3549
|
props: {
|
|
3553
3550
|
item: {},
|
|
@@ -3579,7 +3576,7 @@ const Ao = /* @__PURE__ */ h({
|
|
|
3579
3576
|
], 2);
|
|
3580
3577
|
};
|
|
3581
3578
|
}
|
|
3582
|
-
}),
|
|
3579
|
+
}), Vo = /* @__PURE__ */ h({
|
|
3583
3580
|
__name: "PaneldynamicProgressText",
|
|
3584
3581
|
props: {
|
|
3585
3582
|
item: {},
|
|
@@ -3608,7 +3605,7 @@ const Ao = /* @__PURE__ */ h({
|
|
|
3608
3605
|
ref_key: "root",
|
|
3609
3606
|
ref: s
|
|
3610
3607
|
}, [
|
|
3611
|
-
(i(!0), u(
|
|
3608
|
+
(i(!0), u(D, null, B(n.element.errors, (o, t) => (i(), g(T(n.element.survey.questionErrorComponent), {
|
|
3612
3609
|
element: n.element,
|
|
3613
3610
|
key: "error_" + t,
|
|
3614
3611
|
errorKey: "error_" + t,
|
|
@@ -3667,7 +3664,7 @@ const Ao = /* @__PURE__ */ h({
|
|
|
3667
3664
|
s(l);
|
|
3668
3665
|
})
|
|
3669
3666
|
}, {
|
|
3670
|
-
default:
|
|
3667
|
+
default: V(() => [
|
|
3671
3668
|
n.element.hasTitleActions ? d("", !0) : (i(), g(o, {
|
|
3672
3669
|
key: 0,
|
|
3673
3670
|
element: n.element,
|
|
@@ -3696,7 +3693,7 @@ const Ao = /* @__PURE__ */ h({
|
|
|
3696
3693
|
);
|
|
3697
3694
|
return (e, o) => {
|
|
3698
3695
|
const t = y("survey-string");
|
|
3699
|
-
return i(), u(
|
|
3696
|
+
return i(), u(D, null, [
|
|
3700
3697
|
e.element.isTitleRenderedAsString ? (i(), g(t, {
|
|
3701
3698
|
key: 0,
|
|
3702
3699
|
locString: e.element.locTitle
|
|
@@ -3763,7 +3760,7 @@ const Ao = /* @__PURE__ */ h({
|
|
|
3763
3760
|
for (const [e, o] of s)
|
|
3764
3761
|
n[e] = o;
|
|
3765
3762
|
return n;
|
|
3766
|
-
}, st = {}, nt = { class: "sv-brand-info" }, ot = /* @__PURE__ */
|
|
3763
|
+
}, st = {}, nt = { class: "sv-brand-info" }, ot = /* @__PURE__ */ Se('<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), tt = [
|
|
3767
3764
|
ot
|
|
3768
3765
|
];
|
|
3769
3766
|
function it(r, s) {
|
|
@@ -3793,7 +3790,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
3793
3790
|
};
|
|
3794
3791
|
return te(() => {
|
|
3795
3792
|
e();
|
|
3796
|
-
}),
|
|
3793
|
+
}), E(() => {
|
|
3797
3794
|
e();
|
|
3798
3795
|
}), (o, t) => (i(), u("svg", {
|
|
3799
3796
|
ref_key: "svgIconElement",
|
|
@@ -3843,9 +3840,9 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
3843
3840
|
const s = r, n = $(null), e = (t) => {
|
|
3844
3841
|
s.handleClick && t.stopPropagation();
|
|
3845
3842
|
};
|
|
3846
|
-
|
|
3843
|
+
L(() => s.model);
|
|
3847
3844
|
const o = le(() => s.model.renderedActions);
|
|
3848
|
-
return
|
|
3845
|
+
return E(() => {
|
|
3849
3846
|
!s.model.hasActions || s.model.initResponsivityManager(n.value);
|
|
3850
3847
|
}), O(() => {
|
|
3851
3848
|
s.model.resetResponsivityManager();
|
|
@@ -3858,7 +3855,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
3858
3855
|
class: a(t.model.getRootCss()),
|
|
3859
3856
|
onClick: e
|
|
3860
3857
|
}, [
|
|
3861
|
-
(i(!0), u(
|
|
3858
|
+
(i(!0), u(D, null, B(w(o), (v) => (i(), g(m, {
|
|
3862
3859
|
key: v.id,
|
|
3863
3860
|
item: v
|
|
3864
3861
|
}, null, 8, ["item"]))), 128))
|
|
@@ -3874,7 +3871,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
3874
3871
|
const s = r, n = S(
|
|
3875
3872
|
() => s.item.component || "sv-action-bar-item"
|
|
3876
3873
|
);
|
|
3877
|
-
return
|
|
3874
|
+
return L(() => s.item), (e, o) => {
|
|
3878
3875
|
const t = y("sv-action-bar-separator");
|
|
3879
3876
|
return i(), u("div", {
|
|
3880
3877
|
class: a(e.item.getActionRootCss()),
|
|
@@ -3897,7 +3894,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
3897
3894
|
},
|
|
3898
3895
|
setup(r) {
|
|
3899
3896
|
const s = r;
|
|
3900
|
-
return
|
|
3897
|
+
return L(() => s.item), (n, e) => {
|
|
3901
3898
|
const o = y("sv-svg-icon"), t = X("key2click");
|
|
3902
3899
|
return P((i(), u("button", {
|
|
3903
3900
|
class: a(n.item.getActionBarItemCss()),
|
|
@@ -3941,7 +3938,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
3941
3938
|
setup(r) {
|
|
3942
3939
|
const s = r, n = Ae;
|
|
3943
3940
|
let e;
|
|
3944
|
-
return
|
|
3941
|
+
return L(
|
|
3945
3942
|
() => s.item,
|
|
3946
3943
|
(o) => {
|
|
3947
3944
|
e = new Pe(o);
|
|
@@ -3951,7 +3948,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
3951
3948
|
}
|
|
3952
3949
|
), (o, t) => {
|
|
3953
3950
|
const l = y("sv-svg-icon"), m = y("sv-popup"), v = X("key2click");
|
|
3954
|
-
return i(), u(
|
|
3951
|
+
return i(), u(D, null, [
|
|
3955
3952
|
P((i(), u("button", {
|
|
3956
3953
|
type: "button",
|
|
3957
3954
|
class: a(o.item.getActionBarItemCss()),
|
|
@@ -4012,7 +4009,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4012
4009
|
}, t = (l) => {
|
|
4013
4010
|
s.model.onMouseMove(l);
|
|
4014
4011
|
};
|
|
4015
|
-
return
|
|
4012
|
+
return L(() => s.model), E(() => {
|
|
4016
4013
|
s.model.initListContainerHtmlElement(n.value);
|
|
4017
4014
|
}), (l, m) => {
|
|
4018
4015
|
const v = y("sv-svg-icon"), c = y("sv-list-item");
|
|
@@ -4063,7 +4060,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4063
4060
|
"aria-label": l.model.emptyMessage
|
|
4064
4061
|
}, R(l.model.emptyMessage), 11, wt)
|
|
4065
4062
|
], 2), [
|
|
4066
|
-
[
|
|
4063
|
+
[H, l.model.isEmpty]
|
|
4067
4064
|
]),
|
|
4068
4065
|
l.model.renderElements ? P((i(), u("ul", {
|
|
4069
4066
|
key: 1,
|
|
@@ -4078,13 +4075,13 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4078
4075
|
l.model.onKeyDown(q);
|
|
4079
4076
|
})
|
|
4080
4077
|
}, [
|
|
4081
|
-
(i(!0), u(
|
|
4078
|
+
(i(!0), u(D, null, B(l.model.renderedActions, (q) => (i(), g(c, {
|
|
4082
4079
|
item: q,
|
|
4083
4080
|
model: l.model,
|
|
4084
4081
|
key: q.id
|
|
4085
4082
|
}, null, 8, ["item", "model"]))), 128))
|
|
4086
4083
|
], 42, It)), [
|
|
4087
|
-
[
|
|
4084
|
+
[H, !l.model.isEmpty]
|
|
4088
4085
|
]) : d("", !0)
|
|
4089
4086
|
], 2);
|
|
4090
4087
|
};
|
|
@@ -4099,7 +4096,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4099
4096
|
const s = r, n = S(() => s.item.elementId), e = (o) => {
|
|
4100
4097
|
s.model.onItemClick(s.item), o.stopPropagation();
|
|
4101
4098
|
};
|
|
4102
|
-
return
|
|
4099
|
+
return L(() => s.item), E(() => {
|
|
4103
4100
|
setTimeout(() => {
|
|
4104
4101
|
s.model.onLastItemRended(s.item);
|
|
4105
4102
|
});
|
|
@@ -4140,7 +4137,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4140
4137
|
}, null, 8, ["item"])) : d("", !0)
|
|
4141
4138
|
], 14, Tt)
|
|
4142
4139
|
], 42, Rt)), [
|
|
4143
|
-
[
|
|
4140
|
+
[H, o.model.isItemVisible(o.item)],
|
|
4144
4141
|
[v, { processEsc: !1, disableTabStop: o.item.disableTabStop }]
|
|
4145
4142
|
]);
|
|
4146
4143
|
};
|
|
@@ -4156,10 +4153,10 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4156
4153
|
return K(
|
|
4157
4154
|
() => s.model,
|
|
4158
4155
|
(o) => {
|
|
4159
|
-
n.value && n.value.dispose(), n.value =
|
|
4156
|
+
n.value && n.value.dispose(), n.value = Ee(o, void 0);
|
|
4160
4157
|
},
|
|
4161
4158
|
{ immediate: !0 }
|
|
4162
|
-
),
|
|
4159
|
+
), L(() => n.value), E(() => {
|
|
4163
4160
|
const o = e.value;
|
|
4164
4161
|
n.value.setComponentElement(
|
|
4165
4162
|
o,
|
|
@@ -4183,7 +4180,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4183
4180
|
}, Nt = { class: "sv-popup__scrolling-content" }, Pt = { class: "sv-popup__content" }, At = {
|
|
4184
4181
|
key: 1,
|
|
4185
4182
|
class: "sv-popup__body-footer"
|
|
4186
|
-
},
|
|
4183
|
+
}, Et = /* @__PURE__ */ h({
|
|
4187
4184
|
__name: "PopupContainer",
|
|
4188
4185
|
props: {
|
|
4189
4186
|
model: {}
|
|
@@ -4192,10 +4189,10 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4192
4189
|
const s = r, n = (e) => {
|
|
4193
4190
|
e.stopPropagation();
|
|
4194
4191
|
};
|
|
4195
|
-
return
|
|
4192
|
+
return L(() => s.model), te(() => {
|
|
4196
4193
|
const e = s.model;
|
|
4197
4194
|
e.isVisible && !e.isPositionSet && s.model.updateOnShowing();
|
|
4198
|
-
}),
|
|
4195
|
+
}), E(() => {
|
|
4199
4196
|
s.model.isVisible && s.model.updateOnShowing();
|
|
4200
4197
|
}), (e, o) => {
|
|
4201
4198
|
const t = y("sv-action-bar");
|
|
@@ -4241,11 +4238,11 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4241
4238
|
])
|
|
4242
4239
|
], 4)
|
|
4243
4240
|
], 34)), [
|
|
4244
|
-
[
|
|
4241
|
+
[H, e.model.isVisible]
|
|
4245
4242
|
]);
|
|
4246
4243
|
};
|
|
4247
4244
|
}
|
|
4248
|
-
}),
|
|
4245
|
+
}), Ht = /* @__PURE__ */ h({
|
|
4249
4246
|
__name: "PopupPointer",
|
|
4250
4247
|
props: {
|
|
4251
4248
|
model: {}
|
|
@@ -4259,7 +4256,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4259
4256
|
})
|
|
4260
4257
|
}, null, 4));
|
|
4261
4258
|
}
|
|
4262
|
-
}),
|
|
4259
|
+
}), Mt = {
|
|
4263
4260
|
key: 0,
|
|
4264
4261
|
class: "sv-components-column"
|
|
4265
4262
|
}, Wt = /* @__PURE__ */ h({
|
|
@@ -4273,14 +4270,14 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4273
4270
|
const s = r, n = S(
|
|
4274
4271
|
() => s.survey.getContainerContent(s.container)
|
|
4275
4272
|
);
|
|
4276
|
-
return (e, o) => n.value.length > 0 ? (i(), u(
|
|
4277
|
-
e.needRenderWrapper ? (i(), u("div",
|
|
4278
|
-
(i(!0), u(
|
|
4273
|
+
return (e, o) => n.value.length > 0 ? (i(), u(D, { key: 0 }, [
|
|
4274
|
+
e.needRenderWrapper ? (i(), u("div", Mt, [
|
|
4275
|
+
(i(!0), u(D, null, B(n.value, (t, l) => (i(), g(T(t.component), {
|
|
4279
4276
|
survey: e.survey,
|
|
4280
4277
|
container: e.container,
|
|
4281
4278
|
model: t.data
|
|
4282
4279
|
}, null, 8, ["survey", "container", "model"]))), 256))
|
|
4283
|
-
])) : (i(!0), u(
|
|
4280
|
+
])) : (i(!0), u(D, { key: 1 }, B(n.value, (t, l) => (i(), g(T(t.component), {
|
|
4284
4281
|
survey: e.survey,
|
|
4285
4282
|
container: e.container,
|
|
4286
4283
|
model: t.data
|
|
@@ -4316,7 +4313,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4316
4313
|
}, R(t.survey.progressText), 3)
|
|
4317
4314
|
], 2));
|
|
4318
4315
|
}
|
|
4319
|
-
}),
|
|
4316
|
+
}), Ft = ["title"], Vt = ["onClick", "data-page-number"], Ot = ["title"], zt = ["title"], Ut = ["title"], Kt = /* @__PURE__ */ h({
|
|
4320
4317
|
__name: "ProgressButtons",
|
|
4321
4318
|
props: {
|
|
4322
4319
|
survey: {},
|
|
@@ -4330,9 +4327,9 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4330
4327
|
let f = l.value;
|
|
4331
4328
|
f.scrollLeft += (q ? -1 : 1) * 70;
|
|
4332
4329
|
};
|
|
4333
|
-
return
|
|
4330
|
+
return E(() => {
|
|
4334
4331
|
const q = l.value;
|
|
4335
|
-
v = new
|
|
4332
|
+
v = new He(s.model, q, {
|
|
4336
4333
|
onResize: (f) => {
|
|
4337
4334
|
t.value = f, e.value = !f;
|
|
4338
4335
|
},
|
|
@@ -4363,14 +4360,14 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4363
4360
|
p("div", {
|
|
4364
4361
|
class: a(q.survey.css.progressButtonsPageTitle),
|
|
4365
4362
|
title: q.model.headerText
|
|
4366
|
-
}, R(q.model.headerText), 11,
|
|
4363
|
+
}, R(q.model.headerText), 11, Ft)
|
|
4367
4364
|
], 2)) : d("", !0),
|
|
4368
4365
|
p("div", {
|
|
4369
4366
|
class: a(m.value.progressButtonsContainer)
|
|
4370
4367
|
}, [
|
|
4371
4368
|
p("div", {
|
|
4372
4369
|
class: a(q.model.getScrollButtonCss(n.value, !0)),
|
|
4373
|
-
onClick: f[0] || (f[0] = (
|
|
4370
|
+
onClick: f[0] || (f[0] = (_) => c(!0)),
|
|
4374
4371
|
role: "button"
|
|
4375
4372
|
}, null, 2),
|
|
4376
4373
|
p("div", {
|
|
@@ -4381,11 +4378,11 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4381
4378
|
p("ul", {
|
|
4382
4379
|
class: a(m.value.progressButtonsList)
|
|
4383
4380
|
}, [
|
|
4384
|
-
(i(!0), u(
|
|
4381
|
+
(i(!0), u(D, null, B(q.survey.visiblePages, (_, b) => (i(), u("li", {
|
|
4385
4382
|
key: "listelement" + b,
|
|
4386
4383
|
class: a(q.model.getListElementCss(b)),
|
|
4387
|
-
onClick: (N) => q.model.isListElementClickable(b) ? q.model.clickListElement(
|
|
4388
|
-
"data-page-number": q.model.getItemNumber(
|
|
4384
|
+
onClick: (N) => q.model.isListElementClickable(b) ? q.model.clickListElement(_) : null,
|
|
4385
|
+
"data-page-number": q.model.getItemNumber(_)
|
|
4389
4386
|
}, [
|
|
4390
4387
|
p("div", {
|
|
4391
4388
|
class: a(m.value.progressButtonsConnector)
|
|
@@ -4393,17 +4390,17 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4393
4390
|
t.value ? (i(), u("div", {
|
|
4394
4391
|
key: 0,
|
|
4395
4392
|
class: a(m.value.progressButtonsPageTitle),
|
|
4396
|
-
title:
|
|
4393
|
+
title: _.renderedNavigationTitle
|
|
4397
4394
|
}, [
|
|
4398
4395
|
C(k, {
|
|
4399
|
-
locString:
|
|
4396
|
+
locString: _.locNavigationTitle
|
|
4400
4397
|
}, null, 8, ["locString"])
|
|
4401
4398
|
], 10, Ot)) : d("", !0),
|
|
4402
4399
|
t.value ? (i(), u("div", {
|
|
4403
4400
|
key: 1,
|
|
4404
4401
|
class: a(m.value.progressButtonsPageDescription),
|
|
4405
|
-
title:
|
|
4406
|
-
}, R(
|
|
4402
|
+
title: _.locNavigationDescription.renderedHtml
|
|
4403
|
+
}, R(_.locNavigationDescription.renderedHtml), 11, zt)) : d("", !0),
|
|
4407
4404
|
p("div", {
|
|
4408
4405
|
class: a(m.value.progressButtonsButton)
|
|
4409
4406
|
}, [
|
|
@@ -4413,14 +4410,14 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4413
4410
|
p("div", {
|
|
4414
4411
|
class: a(m.value.progressButtonsButtonContent)
|
|
4415
4412
|
}, null, 2),
|
|
4416
|
-
p("span", null, R(q.model.getItemNumber(
|
|
4413
|
+
p("span", null, R(q.model.getItemNumber(_)), 1)
|
|
4417
4414
|
], 2)
|
|
4418
|
-
], 10,
|
|
4415
|
+
], 10, Vt))), 128))
|
|
4419
4416
|
], 2)
|
|
4420
4417
|
], 2),
|
|
4421
4418
|
p("div", {
|
|
4422
4419
|
class: a(q.model.getScrollButtonCss(n.value, !1)),
|
|
4423
|
-
onClick: f[1] || (f[1] = (
|
|
4420
|
+
onClick: f[1] || (f[1] = (_) => c(!1)),
|
|
4424
4421
|
role: "button"
|
|
4425
4422
|
}, null, 2)
|
|
4426
4423
|
], 2),
|
|
@@ -4479,37 +4476,47 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4479
4476
|
},
|
|
4480
4477
|
setup(r) {
|
|
4481
4478
|
const s = r, n = $(), e = $(""), o = $(1), t = S(() => {
|
|
4482
|
-
const
|
|
4483
|
-
return
|
|
4479
|
+
const _ = s.survey ? s.survey : s.model;
|
|
4480
|
+
return Re(_);
|
|
4484
4481
|
}), l = S(() => t.value.activePage ? t.value.activePage.id : ""), m = () => {
|
|
4485
|
-
const
|
|
4486
|
-
return !!t.value &&
|
|
4482
|
+
const _ = l.value;
|
|
4483
|
+
return !!t.value && _ + o.value.toString();
|
|
4487
4484
|
}, v = S(
|
|
4488
4485
|
() => t.value.showCompletedPage && t.value.state === "completed"
|
|
4489
|
-
), c = S(() => t.value.css), q = S(() => "page" + m()), f = () => v.value ? (e.value || (e.value = t.value.processedCompletedHtml), e.value) : ""
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4486
|
+
), c = S(() => t.value.css), q = S(() => "page" + m()), f = () => v.value ? (e.value || (e.value = t.value.processedCompletedHtml), e.value) : "", k = (_) => {
|
|
4487
|
+
if (!!_) {
|
|
4488
|
+
var b = n.value;
|
|
4489
|
+
b && _.afterRenderSurvey(b), _.renderCallback = () => {
|
|
4490
|
+
var N, W;
|
|
4491
|
+
o.value++, (W = (N = ie()) == null ? void 0 : N.proxy) == null || W.$forceUpdate();
|
|
4492
|
+
}, _.startTimerFromUI();
|
|
4493
|
+
}
|
|
4494
|
+
};
|
|
4495
|
+
return L(
|
|
4496
|
+
() => t.value,
|
|
4497
|
+
(_, b) => {
|
|
4498
|
+
_ && b && k(_);
|
|
4499
|
+
},
|
|
4500
|
+
(_) => {
|
|
4501
|
+
_.stopTimer(), _.renderCallback = void 0;
|
|
4497
4502
|
}
|
|
4503
|
+
), E(() => {
|
|
4504
|
+
k(t.value);
|
|
4498
4505
|
}), O(() => {
|
|
4499
4506
|
t.value.stopTimer(), t.value.renderCallback = void 0;
|
|
4500
|
-
}), (
|
|
4501
|
-
const
|
|
4507
|
+
}), (_, b) => {
|
|
4508
|
+
const N = y("sv-svg-bundle"), W = y("survey-popup-modal"), F = y("survey-header"), Q = y("survey-page"), ue = y("sv-brand-info"), Ce = y("sv-notifier");
|
|
4502
4509
|
return i(), u("div", {
|
|
4503
4510
|
class: a(t.value.getRootCss()),
|
|
4504
4511
|
style: I(t.value.themeVariables),
|
|
4505
4512
|
ref_key: "root",
|
|
4506
4513
|
ref: n
|
|
4507
4514
|
}, [
|
|
4508
|
-
t.value.needRenderIcons ? (i(), g(
|
|
4515
|
+
t.value.needRenderIcons ? (i(), g(N, { key: 0 })) : d("", !0),
|
|
4509
4516
|
p("div", {
|
|
4510
4517
|
class: a(t.value.wrapperFormCss)
|
|
4511
4518
|
}, [
|
|
4512
|
-
C(
|
|
4519
|
+
C(W),
|
|
4513
4520
|
t.value.renderBackgroundImage ? (i(), u("div", {
|
|
4514
4521
|
key: 0,
|
|
4515
4522
|
class: a(c.value.rootBackgroundImage),
|
|
@@ -4520,7 +4527,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4520
4527
|
p("div", {
|
|
4521
4528
|
class: a(c.value.container)
|
|
4522
4529
|
}, [
|
|
4523
|
-
t.value.headerView === "basic" ? (i(), g(
|
|
4530
|
+
t.value.headerView === "basic" ? (i(), g(F, {
|
|
4524
4531
|
key: 0,
|
|
4525
4532
|
survey: t.value
|
|
4526
4533
|
}, null, 8, ["survey"])) : d("", !0),
|
|
@@ -4554,7 +4561,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4554
4561
|
container: "contentTop",
|
|
4555
4562
|
needRenderWrapper: !0
|
|
4556
4563
|
}, null, 8, ["survey"])),
|
|
4557
|
-
(i(), g(
|
|
4564
|
+
(i(), g(Q, {
|
|
4558
4565
|
key: q.value,
|
|
4559
4566
|
survey: t.value,
|
|
4560
4567
|
page: t.value.activePage,
|
|
@@ -4605,8 +4612,8 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4605
4612
|
}, R(t.value.emptySurveyText), 3)) : d("", !0)
|
|
4606
4613
|
], 2)
|
|
4607
4614
|
]),
|
|
4608
|
-
t.value.showBrandInfo ? (i(), g(
|
|
4609
|
-
C(
|
|
4615
|
+
t.value.showBrandInfo ? (i(), g(ue, { key: 1 })) : d("", !0),
|
|
4616
|
+
C(Ce, {
|
|
4610
4617
|
model: t.value.notifier
|
|
4611
4618
|
}, null, 8, ["model"])
|
|
4612
4619
|
], 2)
|
|
@@ -4620,7 +4627,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4620
4627
|
},
|
|
4621
4628
|
setup(r) {
|
|
4622
4629
|
const s = r;
|
|
4623
|
-
return
|
|
4630
|
+
return L(() => s.model), (n, e) => {
|
|
4624
4631
|
const o = y("sv-action-bar");
|
|
4625
4632
|
return n.model.isDisplayed ? (i(), u("div", {
|
|
4626
4633
|
key: 0,
|
|
@@ -4675,7 +4682,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4675
4682
|
},
|
|
4676
4683
|
setup(r) {
|
|
4677
4684
|
const s = r, n = () => s.item.data && s.item.data.mouseDown();
|
|
4678
|
-
return
|
|
4685
|
+
return L(() => s.item), (e, o) => e.item.visible ? (i(), u("input", {
|
|
4679
4686
|
key: 0,
|
|
4680
4687
|
type: "button",
|
|
4681
4688
|
disabled: e.item.disabled,
|
|
@@ -4716,11 +4723,11 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4716
4723
|
let f = n.value.cssHeaderRoot;
|
|
4717
4724
|
return n.value.isCollapsed && (f += " " + n.value.cssRootCollapsedMod), f;
|
|
4718
4725
|
};
|
|
4719
|
-
|
|
4726
|
+
L(() => n.value);
|
|
4720
4727
|
const q = K(
|
|
4721
4728
|
() => s.survey,
|
|
4722
4729
|
(f) => {
|
|
4723
|
-
const k = new
|
|
4730
|
+
const k = new Me(null, f);
|
|
4724
4731
|
s.isExpanded !== void 0 && (k.isExpanded = s.isExpanded), s.closeOnCompleteTimeout !== void 0 && (k.closeOnCompleteTimeout = s.closeOnCompleteTimeout), s.allowClose !== void 0 && (k.allowClose = s.allowClose), s.allowFullScreen !== void 0 && (k.allowFullScreen = s.allowFullScreen), k.isShowing = !0, n.value = k;
|
|
4725
4732
|
},
|
|
4726
4733
|
{
|
|
@@ -4730,7 +4737,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4730
4737
|
return O(() => {
|
|
4731
4738
|
q();
|
|
4732
4739
|
}), (f, k) => {
|
|
4733
|
-
const
|
|
4740
|
+
const _ = y("sv-svg-icon");
|
|
4734
4741
|
return n.value.isShowing ? (i(), u("div", {
|
|
4735
4742
|
key: 0,
|
|
4736
4743
|
style: I({ maxWidth: n.value.renderedWidth, width: n.value.renderedWidth }),
|
|
@@ -4755,12 +4762,12 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4755
4762
|
class: a(n.value.cssHeaderFullScreenButton),
|
|
4756
4763
|
onClick: l
|
|
4757
4764
|
}, [
|
|
4758
|
-
n.value.isFullScreen ? (i(), g(
|
|
4765
|
+
n.value.isFullScreen ? (i(), g(_, {
|
|
4759
4766
|
key: 0,
|
|
4760
4767
|
iconName: "icon-back-to-panel_16x16",
|
|
4761
4768
|
size: 16
|
|
4762
4769
|
})) : d("", !0),
|
|
4763
|
-
n.value.isFullScreen ? d("", !0) : (i(), g(
|
|
4770
|
+
n.value.isFullScreen ? d("", !0) : (i(), g(_, {
|
|
4764
4771
|
key: 1,
|
|
4765
4772
|
iconName: "icon-full-screen_16x16",
|
|
4766
4773
|
size: 16
|
|
@@ -4770,12 +4777,12 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4770
4777
|
class: a(n.value.cssHeaderCollapseButton),
|
|
4771
4778
|
onClick: o
|
|
4772
4779
|
}, [
|
|
4773
|
-
n.value.isExpanded ? (i(), g(
|
|
4780
|
+
n.value.isExpanded ? (i(), g(_, {
|
|
4774
4781
|
key: 0,
|
|
4775
4782
|
iconName: "icon-minimize_16x16",
|
|
4776
4783
|
size: 16
|
|
4777
4784
|
})) : d("", !0),
|
|
4778
|
-
n.value.isCollapsed ? (i(), g(
|
|
4785
|
+
n.value.isCollapsed ? (i(), g(_, {
|
|
4779
4786
|
key: 1,
|
|
4780
4787
|
iconName: "icon-restore_16x16",
|
|
4781
4788
|
size: 16
|
|
@@ -4786,7 +4793,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4786
4793
|
class: a(n.value.cssHeaderCloseButton),
|
|
4787
4794
|
onClick: t
|
|
4788
4795
|
}, [
|
|
4789
|
-
C(
|
|
4796
|
+
C(_, {
|
|
4790
4797
|
iconName: "icon-close_16x16",
|
|
4791
4798
|
size: 16
|
|
4792
4799
|
})
|
|
@@ -4814,7 +4821,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4814
4821
|
), o = S(
|
|
4815
4822
|
() => !!s.question.customWidget.htmlTemplate
|
|
4816
4823
|
), t = S(() => s.question.customWidget.htmlTemplate), l = S(() => "survey-" + s.question.getTemplate());
|
|
4817
|
-
return
|
|
4824
|
+
return E(() => {
|
|
4818
4825
|
s.question.customWidget.afterRender(s.question, n.value);
|
|
4819
4826
|
}), G(() => {
|
|
4820
4827
|
s.question.customWidget.willUnmount(s.question, n.value);
|
|
@@ -4852,7 +4859,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4852
4859
|
return e(f);
|
|
4853
4860
|
}
|
|
4854
4861
|
function e(o, t) {
|
|
4855
|
-
const l =
|
|
4862
|
+
const l = Fe(
|
|
4856
4863
|
o,
|
|
4857
4864
|
t
|
|
4858
4865
|
), m = (v, c) => {
|
|
@@ -4866,7 +4873,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4866
4873
|
j.showDialog = void 0;
|
|
4867
4874
|
})), (o, t) => {
|
|
4868
4875
|
const l = y("sv-popup-container");
|
|
4869
|
-
return s.value ? (i(), g(
|
|
4876
|
+
return s.value ? (i(), g(Te, {
|
|
4870
4877
|
key: 0,
|
|
4871
4878
|
to: s.value.container
|
|
4872
4879
|
}, [
|
|
@@ -4882,7 +4889,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4882
4889
|
},
|
|
4883
4890
|
setup(r) {
|
|
4884
4891
|
const s = r;
|
|
4885
|
-
return
|
|
4892
|
+
return L(() => s.counter), (n, e) => (i(), u("div", {
|
|
4886
4893
|
class: a(n.remainingCharacterCounter)
|
|
4887
4894
|
}, R(n.counter.remainingCharacterCounter), 3));
|
|
4888
4895
|
}
|
|
@@ -4934,7 +4941,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4934
4941
|
},
|
|
4935
4942
|
setup(r) {
|
|
4936
4943
|
const s = r, n = S(() => qe * s.model.progress), e = S(() => s.model.text);
|
|
4937
|
-
return
|
|
4944
|
+
return L(() => s.model), (o, t) => o.model.isRunning && o.model.showTimerAsClock ? (i(), u("div", {
|
|
4938
4945
|
key: 0,
|
|
4939
4946
|
class: a(o.model.rootCss)
|
|
4940
4947
|
}, [
|
|
@@ -4958,7 +4965,7 @@ const rt = /* @__PURE__ */ he(st, [["render", it]]), lt = /* @__PURE__ */ p("use
|
|
|
4958
4965
|
key: 1,
|
|
4959
4966
|
class: a(o.model.survey.getCss().timerRoot)
|
|
4960
4967
|
}, R(e.value), 3)), [
|
|
4961
|
-
[
|
|
4968
|
+
[H, o.model.isRunning && !o.model.showTimerAsClock]
|
|
4962
4969
|
]);
|
|
4963
4970
|
}
|
|
4964
4971
|
}), yi = {}, gi = { class: "sd-loading-indicator" };
|
|
@@ -4979,7 +4986,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
4979
4986
|
},
|
|
4980
4987
|
setup(r) {
|
|
4981
4988
|
const s = r;
|
|
4982
|
-
return
|
|
4989
|
+
return L(() => {
|
|
4983
4990
|
const n = s.model;
|
|
4984
4991
|
return n.survey = s.survey, s.model;
|
|
4985
4992
|
}), (n, e) => {
|
|
@@ -4998,7 +5005,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
4998
5005
|
class: a(n.model.contentClasses),
|
|
4999
5006
|
style: I({ maxWidth: n.model.maxWidth })
|
|
5000
5007
|
}, [
|
|
5001
|
-
(i(!0), u(
|
|
5008
|
+
(i(!0), u(D, null, B(n.model.cells, (l, m) => (i(), g(o, {
|
|
5002
5009
|
model: l,
|
|
5003
5010
|
key: m
|
|
5004
5011
|
}, null, 8, ["model"]))), 128))
|
|
@@ -5158,7 +5165,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5158
5165
|
c && c.setWrapperElement(void 0), v.setWrapperElement(n.value);
|
|
5159
5166
|
}
|
|
5160
5167
|
);
|
|
5161
|
-
return
|
|
5168
|
+
return E(() => {
|
|
5162
5169
|
s.element.setWrapperElement(n.value);
|
|
5163
5170
|
}), O(() => {
|
|
5164
5171
|
s.element.setWrapperElement(void 0), m();
|
|
@@ -5168,7 +5175,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5168
5175
|
style: I(t(v.element)),
|
|
5169
5176
|
class: a(v.element.cssClasses.questionWrapper)
|
|
5170
5177
|
}, [
|
|
5171
|
-
v.row.isNeedRender ? (i(), g(T(o.value), z(
|
|
5178
|
+
v.row.isNeedRender ? (i(), g(T(o.value), z(M({ key: 0 }, l.value)), null, 16)) : v.element.skeletonComponentName ? (i(), g(T(v.element.skeletonComponentName), {
|
|
5172
5179
|
key: 1,
|
|
5173
5180
|
element: v.element,
|
|
5174
5181
|
css: v.css
|
|
@@ -5182,8 +5189,8 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5182
5189
|
componentData: {}
|
|
5183
5190
|
},
|
|
5184
5191
|
setup(r) {
|
|
5185
|
-
const s =
|
|
5186
|
-
return (e, o) => n.value && !e.componentName ?
|
|
5192
|
+
const s = $e(), n = S(() => !!s.default);
|
|
5193
|
+
return (e, o) => n.value && !e.componentName ? _e(e.$slots, "default", { key: 0 }) : (i(), g(T(e.componentName), z(M({ key: 1 }, e.componentData)), null, 16));
|
|
5187
5194
|
}
|
|
5188
5195
|
}), Bi = /* @__PURE__ */ h({
|
|
5189
5196
|
__name: "FileCleanButton",
|
|
@@ -5272,7 +5279,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5272
5279
|
]);
|
|
5273
5280
|
};
|
|
5274
5281
|
}
|
|
5275
|
-
}),
|
|
5282
|
+
}), Ei = ["onClick", "href", "title", "download"], Hi = ["src"], Mi = ["onClick"], Wi = ["onClick", "href", "title", "download"], Fi = /* @__PURE__ */ h({
|
|
5276
5283
|
__name: "FilePreview",
|
|
5277
5284
|
props: {
|
|
5278
5285
|
question: {}
|
|
@@ -5284,7 +5291,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5284
5291
|
key: 0,
|
|
5285
5292
|
class: a(s.question.cssClasses.fileList || void 0)
|
|
5286
5293
|
}, [
|
|
5287
|
-
(i(!0), u(
|
|
5294
|
+
(i(!0), u(D, null, B(s.question.previewValue, (o, t) => P((i(), u("span", {
|
|
5288
5295
|
key: s.question.inputId + "_" + t,
|
|
5289
5296
|
class: a(s.question.cssClasses.previewItem)
|
|
5290
5297
|
}, [
|
|
@@ -5298,7 +5305,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5298
5305
|
title: o.name,
|
|
5299
5306
|
download: o.name,
|
|
5300
5307
|
style: I({ width: s.question.imageWidth })
|
|
5301
|
-
}, R(o.name), 13,
|
|
5308
|
+
}, R(o.name), 13, Ei)
|
|
5302
5309
|
], 2)) : d("", !0),
|
|
5303
5310
|
p("div", {
|
|
5304
5311
|
class: a(s.question.getImageWrapperCss(o))
|
|
@@ -5311,7 +5318,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5311
5318
|
width: s.question.imageWidth
|
|
5312
5319
|
}),
|
|
5313
5320
|
alt: "File preview"
|
|
5314
|
-
}, null, 12,
|
|
5321
|
+
}, null, 12, Hi)) : d("", !0),
|
|
5315
5322
|
s.question.defaultImage(o) ? (i(), g(e, {
|
|
5316
5323
|
key: 1,
|
|
5317
5324
|
iconName: s.question.cssClasses.defaultImageIconId,
|
|
@@ -5333,7 +5340,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5333
5340
|
iconName: s.question.cssClasses.removeFileSvgIconId,
|
|
5334
5341
|
size: "auto"
|
|
5335
5342
|
}, null, 8, ["title", "class", "iconName"])) : d("", !0)
|
|
5336
|
-
], 10,
|
|
5343
|
+
], 10, Mi)) : d("", !0)
|
|
5337
5344
|
], 2),
|
|
5338
5345
|
o.name && s.question.cssClasses.fileSignBottom ? (i(), u("div", {
|
|
5339
5346
|
key: 1,
|
|
@@ -5348,12 +5355,12 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5348
5355
|
}, R(o.name), 13, Wi)
|
|
5349
5356
|
], 2)) : d("", !0)
|
|
5350
5357
|
], 2)), [
|
|
5351
|
-
[
|
|
5358
|
+
[H, o && s.question.isPreviewVisible(t)]
|
|
5352
5359
|
])), 128))
|
|
5353
5360
|
], 2)) : d("", !0);
|
|
5354
5361
|
};
|
|
5355
5362
|
}
|
|
5356
|
-
}),
|
|
5363
|
+
}), Vi = /* @__PURE__ */ h({
|
|
5357
5364
|
__name: "ButtonGroup",
|
|
5358
5365
|
props: {
|
|
5359
5366
|
question: {}
|
|
@@ -5368,7 +5375,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5368
5375
|
ref_key: "root",
|
|
5369
5376
|
ref: n
|
|
5370
5377
|
}, [
|
|
5371
|
-
(i(!0), u(
|
|
5378
|
+
(i(!0), u(D, null, B(e.question.visibleChoices, (l, m) => (i(), g(t, {
|
|
5372
5379
|
question: e.question,
|
|
5373
5380
|
key: m,
|
|
5374
5381
|
item: l,
|
|
@@ -5386,7 +5393,7 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5386
5393
|
},
|
|
5387
5394
|
setup(r) {
|
|
5388
5395
|
const s = r, n = S(
|
|
5389
|
-
() => new
|
|
5396
|
+
() => new Ve(s.question, s.item, s.index)
|
|
5390
5397
|
), e = S({
|
|
5391
5398
|
get: () => s.question.renderedValue,
|
|
5392
5399
|
set: (o) => {
|
|
@@ -5468,20 +5475,20 @@ const Ci = /* @__PURE__ */ he(yi, [["render", hi]]), bi = { key: 2 }, ki = /* @_
|
|
|
5468
5475
|
__name: "SvgBundle",
|
|
5469
5476
|
setup(r) {
|
|
5470
5477
|
const s = $();
|
|
5471
|
-
return
|
|
5478
|
+
return E(() => {
|
|
5472
5479
|
s.value.innerHTML = Oe.iconsRenderedHtml();
|
|
5473
5480
|
}), (n, e) => P((i(), u("svg", {
|
|
5474
5481
|
id: "sv-icon-holder-global-container",
|
|
5475
5482
|
ref_key: "root",
|
|
5476
5483
|
ref: s
|
|
5477
5484
|
}, null, 512)), [
|
|
5478
|
-
[
|
|
5485
|
+
[H, !1]
|
|
5479
5486
|
]);
|
|
5480
5487
|
}
|
|
5481
5488
|
});
|
|
5482
5489
|
ze.platform = "vue3";
|
|
5483
5490
|
function Ji(r) {
|
|
5484
|
-
r.component("SurveyComponent", pe), r.component("sv-svg-bundle", Gi), r.component("PopupSurveyComponent", ve), r.component("survey", pe), r.component("popup-survey", ve), r.component("survey-header", Ge), r.component("sv-logo-image", ji), r.component("survey-page", je), r.component("survey-row", Je), r.component("survey-question", xe), r.component("survey-panel", os), r.component("survey-element-header", is), r.component("survey-string", rs), r.component("sv-string-viewer", as), r.component("sv-string-editor", ds), r.component("sv-skeleton", cs), r.component("survey-text", qs), r.component("survey-text-input", hs), r.component("survey-checkbox", ws), r.component("survey-checkbox-item", Rs), r.component("survey-radiogroup", Ts), r.component("survey-radiogroup-item", Ds), r.component("survey-signaturepad", Ps), r.component("survey-html",
|
|
5491
|
+
r.component("SurveyComponent", pe), r.component("sv-svg-bundle", Gi), r.component("PopupSurveyComponent", ve), r.component("survey", pe), r.component("popup-survey", ve), r.component("survey-header", Ge), r.component("sv-logo-image", ji), r.component("survey-page", je), r.component("survey-row", Je), r.component("survey-question", xe), r.component("survey-panel", os), r.component("survey-element-header", is), r.component("survey-string", rs), r.component("sv-string-viewer", as), r.component("sv-string-editor", ds), r.component("sv-skeleton", cs), r.component("survey-text", qs), r.component("survey-text-input", hs), r.component("survey-checkbox", ws), r.component("survey-checkbox-item", Rs), r.component("survey-radiogroup", Ts), r.component("survey-radiogroup-item", Ds), r.component("survey-signaturepad", Ps), r.component("survey-html", Es), r.component("survey-image", Fs), r.component("survey-expression", Vs), r.component("survey-file", Us), r.component("sv-file-choose-btn", Ai), r.component("sv-file-clean-btn", Bi), r.component("sv-file-preview", Fi), r.component("sv-file-video", Ni), r.component("survey-imagepicker", Qs), r.component("survey-imagepicker-item", Ys), r.component("survey-comment", en), r.component("survey-dropdown", sn), r.component("sv-dropdown-select", rn), r.component("sv-dropdown-option-item", an), r.component("sv-dropdown", pn), r.component("survey-tagbox", vn), r.component("sv-tagbox", gn), r.component("sv-tagbox-item", fn), r.component("sv-tagbox-filter", bn), r.component("survey-ranking", wn), r.component("survey-ranking-item", _n), r.component("survey-rating", Ln), r.component("sv-rating-item", Pn), r.component("sv-rating-item-smiley", En), r.component("sv-rating-item-star", Mn), r.component("sv-rating-dropdown", zn), r.component("sv-rating-dropdown-item", On), r.component("survey-boolean", Kn), r.component("sv-boolean-radio", Qn), r.component("sv-boolean-radio-item", Jn), r.component("sv-boolean-checkbox", so), r.component("survey-multipletext", no), r.component("survey-multipletext-item", to), r.component("survey-matrix", mo), r.component("survey-matrix-row", po), r.component("survey-matrix-cell", yo), r.component("survey-matrixdropdown", go), r.component("survey-matrixtable", bo), r.component("survey-matrixheaderrequired", fo), r.component("survey-matrixdropdown-cell", Io), r.component("survey-matrixdynamic", So), r.component("sv-matrix-remove-button", To), r.component("sv-matrix-drag-drop-icon", _o), r.component("sv-matrix-detail-button", Bo), r.component("survey-paneldynamic", Lo), r.component("survey-paneldynamicprogress", No), r.component("survey-paneldynamicprogress-v2", Po), r.component("sv-paneldynamic-add-btn", Ao), r.component("sv-paneldynamic-next-btn", Ho), r.component("sv-paneldynamic-prev-btn", Wo), r.component("sv-paneldynamic-remove-btn", Fo), r.component("sv-paneldynamic-progress-text", Vo), r.component("sv-components-container", Wt), r.component("sv-progress-buttons", Kt), r.component("sv-navigation-toc", Qt), r.component("sv-progress-pages", Z), r.component("sv-progress-questions", Z), r.component("sv-progress-correctquestions", Z), r.component("sv-progress-requiredquestions", Z), r.component("survey-errors", zo), r.component("survey-question-comment", Qo), r.component("survey-element-title", jo), r.component("survey-element-title-content", Yo), r.component("sv-title-actions", et), r.component("sv-brand-info", rt), r.component("sv-question-error", dt), r.component("sv-svg-icon", ut), r.component("sv-action-bar", mt), r.component("sv-action", vt), r.component("sv-action-bar-item", gt), r.component("sv-action-bar-item-dropdown", bt), r.component("sv-action-bar-separator", kt), r.component("sv-list", St), r.component("sv-list-item", $t), r.component("sv-popup", _t), r.component("sv-popup-container", Et), r.component("popup-pointer", Ht), r.component("sv-notifier", si), r.component("survey-other-choice", ti), r.component("sv-nav-btn", ri), r.component("survey-customwidget", ai), r.component("survey-popup-modal", ui), r.component("sv-character-counter", di), r.component("survey-composite", mi), r.component("survey-custom", ci), r.component("sv-timerpanel", qi), r.component("sv-loading-indicator", Ci), r.component("sv-header", ki), r.component("sv-header-cell", Ii), r.component("sv-header-mobile", $i), r.component("sv-template-renderer", Di), r.component("survey-element", _i), r.component("survey-buttongroup", Vi), r.component("sv-button-group-item", Ki), r.directive("key2click", {
|
|
5485
5492
|
mounted: function(s, n) {
|
|
5486
5493
|
const e = { ...n.value };
|
|
5487
5494
|
if (e.disableTabStop) {
|
|
@@ -5503,7 +5510,7 @@ const Zi = {
|
|
|
5503
5510
|
};
|
|
5504
5511
|
export {
|
|
5505
5512
|
Zi as surveyPlugin,
|
|
5506
|
-
|
|
5513
|
+
L as useBase,
|
|
5507
5514
|
le as useComputedArray,
|
|
5508
5515
|
J as useLocString,
|
|
5509
5516
|
A as useQuestion
|