survey-vue3-ui 1.9.114 → 1.9.116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/survey-vue3-ui.es.js +337 -339
- package/survey-vue3-ui.umd.js +1 -1
package/survey-vue3-ui.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { shallowReactive as ce, watch as K, onBeforeUnmount as j, onMounted as A, ref as $, shallowRef as O, triggerRef as oe, unref as k, isRef as pe, defineComponent as g, computed as
|
|
2
|
-
import { Base as fe, RendererFactory as Y, DropdownListModel as Ie, Helpers as we, DropdownMultiSelectListModel as Se, doKey2ClickUp as de, createSvg as
|
|
1
|
+
import { shallowReactive as ce, watch as K, onBeforeUnmount as j, onMounted as A, ref as $, shallowRef as O, triggerRef as oe, unref as k, isRef as pe, defineComponent as g, computed as R, onUpdated as J, resolveComponent as q, openBlock as t, createElementBlock as u, normalizeClass as l, createVNode as C, createCommentVNode as d, Fragment as S, renderList as B, createBlock as y, createElementVNode as p, normalizeStyle as w, onUnmounted as W, withDirectives as P, resolveDynamicComponent as N, vShow as _, toDisplayString as I, vModelCheckbox as U, vModelRadio as Z, vModelSelect as ve, vModelText as qe, getCurrentInstance as x, withCtx as ye, createStaticVNode as ge, resolveDirective as ee, normalizeProps as he, guardReactiveProps as Ce, toRaw as be, Teleport as ke } from "vue";
|
|
2
|
+
import { Base as fe, RendererFactory as Y, DropdownListModel as Ie, Helpers as we, DropdownMultiSelectListModel as Se, doKey2ClickUp as de, createSvg as Te, ActionDropdownViewModel as Re, getActionDropdownButtonTarget as $e, createPopupViewModel as te, SurveyProgressModel as ie, SurveyProgressButtonsModel as Be, TOCModel as Le, SvgRegistry as De, PopupSurveyModel as Pe, settings as F, createDialogOptions as Me, createPopupModalViewModel as Ne, SurveyModel as He, doKey2ClickDown as _e, doKey2ClickBlur as Ae } from "survey-core";
|
|
3
3
|
fe.createPropertiesHash = () => ce({});
|
|
4
4
|
function Ee(r) {
|
|
5
5
|
return !r || r.__vueImplemented ? !1 : (r.createArrayCoreHandler = (n, o) => {
|
|
@@ -76,7 +76,7 @@ const We = /* @__PURE__ */ g({
|
|
|
76
76
|
setup(r) {
|
|
77
77
|
const n = r, o = $(null);
|
|
78
78
|
L(() => n.page);
|
|
79
|
-
const e =
|
|
79
|
+
const e = R(() => n.page._showDescription), s = R(() => n.page.rows);
|
|
80
80
|
return A(() => {
|
|
81
81
|
n.survey && n.survey.afterRenderPage(o.value);
|
|
82
82
|
}), J(() => {
|
|
@@ -100,9 +100,9 @@ const We = /* @__PURE__ */ g({
|
|
|
100
100
|
locString: i.page.locDescription
|
|
101
101
|
}, null, 8, ["locString"])
|
|
102
102
|
], 2)) : d("", !0),
|
|
103
|
-
(t(!0), u(
|
|
103
|
+
(t(!0), u(S, null, B(s.value, (b, T) => (t(), u(S, null, [
|
|
104
104
|
b.visible ? (t(), y(m, {
|
|
105
|
-
key: i.page.id + "_" +
|
|
105
|
+
key: i.page.id + "_" + T,
|
|
106
106
|
row: b,
|
|
107
107
|
survey: i.survey,
|
|
108
108
|
css: i.css
|
|
@@ -139,7 +139,7 @@ const We = /* @__PURE__ */ g({
|
|
|
139
139
|
width: s.survey.renderedLogoWidth,
|
|
140
140
|
height: s.survey.renderedLogoHeight,
|
|
141
141
|
alt: s.survey.locTitle.renderedHtml,
|
|
142
|
-
style:
|
|
142
|
+
style: w({
|
|
143
143
|
objectFit: s.survey.logoFit,
|
|
144
144
|
width: s.survey.renderedStyleLogoWidth,
|
|
145
145
|
height: s.survey.renderedStyleLogoHeight
|
|
@@ -149,7 +149,7 @@ const We = /* @__PURE__ */ g({
|
|
|
149
149
|
s.survey.renderedHasTitle ? (t(), u("div", {
|
|
150
150
|
key: 1,
|
|
151
151
|
class: l(s.survey.css.headerText),
|
|
152
|
-
style:
|
|
152
|
+
style: w({ maxWidth: s.survey.titleMaxWidth })
|
|
153
153
|
}, [
|
|
154
154
|
C(a, {
|
|
155
155
|
element: s.survey,
|
|
@@ -174,7 +174,7 @@ const We = /* @__PURE__ */ g({
|
|
|
174
174
|
width: s.survey.renderedLogoWidth,
|
|
175
175
|
height: s.survey.renderedLogoHeight,
|
|
176
176
|
alt: s.survey.locTitle.renderedHtml,
|
|
177
|
-
style:
|
|
177
|
+
style: w({
|
|
178
178
|
objectFit: s.survey.logoFit,
|
|
179
179
|
width: s.survey.renderedStyleLogoWidth,
|
|
180
180
|
height: s.survey.renderedStyleLogoHeight
|
|
@@ -195,7 +195,7 @@ const We = /* @__PURE__ */ g({
|
|
|
195
195
|
survey: {}
|
|
196
196
|
},
|
|
197
197
|
setup(r) {
|
|
198
|
-
const n = r, o =
|
|
198
|
+
const n = r, o = R(
|
|
199
199
|
() => n.row.visibleElements
|
|
200
200
|
), e = $();
|
|
201
201
|
return L(() => n.row), A(() => {
|
|
@@ -215,8 +215,8 @@ const We = /* @__PURE__ */ g({
|
|
|
215
215
|
ref_key: "root",
|
|
216
216
|
ref: e
|
|
217
217
|
}, [
|
|
218
|
-
(t(!0), u(
|
|
219
|
-
style:
|
|
218
|
+
(t(!0), u(S, null, B(o.value, (v) => (t(), u("div", {
|
|
219
|
+
style: w(v.rootStyle)
|
|
220
220
|
}, [
|
|
221
221
|
v.isPanel ? d("", !0) : (t(), y(a, {
|
|
222
222
|
key: v.id,
|
|
@@ -224,7 +224,7 @@ const We = /* @__PURE__ */ g({
|
|
|
224
224
|
survey: s.survey,
|
|
225
225
|
css: s.css,
|
|
226
226
|
row: s.row,
|
|
227
|
-
style:
|
|
227
|
+
style: w(v.getRootStyle())
|
|
228
228
|
}, null, 8, ["element", "survey", "css", "row", "style"])),
|
|
229
229
|
v.isPanel ? (t(), y(c, {
|
|
230
230
|
key: v.id,
|
|
@@ -235,7 +235,7 @@ const We = /* @__PURE__ */ g({
|
|
|
235
235
|
], 2);
|
|
236
236
|
};
|
|
237
237
|
}
|
|
238
|
-
}), Ue = ["id", "role", "aria-required", "aria-invalid", "aria-labelledby", "data-name"], Ke = /* @__PURE__ */ g({
|
|
238
|
+
}), Ue = ["id", "role", "aria-required", "aria-invalid", "aria-labelledby", "aria-expanded", "data-name"], Ke = /* @__PURE__ */ g({
|
|
239
239
|
__name: "Element",
|
|
240
240
|
props: {
|
|
241
241
|
survey: {},
|
|
@@ -244,7 +244,7 @@ const We = /* @__PURE__ */ g({
|
|
|
244
244
|
css: {}
|
|
245
245
|
},
|
|
246
246
|
setup(r) {
|
|
247
|
-
const n = r, o = $(null), e =
|
|
247
|
+
const n = r, o = $(null), e = R(() => !n.element.isPanel && n.element.showErrorOnTop), s = R(() => !n.element.isPanel && n.element.showErrorOnBottom), i = (m) => m.customWidget ? "survey-customwidget" : m.getType() === "panel" || m.isDefaultRendering() ? "survey-" + m.getTemplate() : m.getComponentName(), a = (m) => m.cssContent;
|
|
248
248
|
L(() => n.element);
|
|
249
249
|
const c = () => {
|
|
250
250
|
!n.element.isPanel && o.value && n.element.afterRender(o.value);
|
|
@@ -257,7 +257,7 @@ const We = /* @__PURE__ */ g({
|
|
|
257
257
|
return W(() => {
|
|
258
258
|
v();
|
|
259
259
|
}), (m, b) => {
|
|
260
|
-
const
|
|
260
|
+
const T = q("survey-errors"), f = q("survey-element-header"), M = q("survey-string"), h = q("survey-question-comment");
|
|
261
261
|
return m.row.isNeedRender ? (t(), u("div", {
|
|
262
262
|
key: 0,
|
|
263
263
|
class: l(m.element.isPanel ? null : m.element.getRootCss()),
|
|
@@ -269,9 +269,10 @@ const We = /* @__PURE__ */ g({
|
|
|
269
269
|
"aria-required": m.element.ariaRequired,
|
|
270
270
|
"aria-invalid": m.element.ariaInvalid,
|
|
271
271
|
"aria-labelledby": m.element.ariaLabelledBy,
|
|
272
|
+
"aria-expanded": m.element.ariaExpanded === null ? void 0 : m.element.ariaExpanded === "true",
|
|
272
273
|
"data-name": m.element.name
|
|
273
274
|
}, [
|
|
274
|
-
!m.element.isPanel && m.element.showErrorsAboveQuestion ? (t(), y(
|
|
275
|
+
!m.element.isPanel && m.element.showErrorsAboveQuestion ? (t(), y(T, {
|
|
275
276
|
key: 0,
|
|
276
277
|
element: m.element,
|
|
277
278
|
location: "top"
|
|
@@ -285,7 +286,7 @@ const We = /* @__PURE__ */ g({
|
|
|
285
286
|
class: l(a(m.element) || void 0),
|
|
286
287
|
role: "presentation"
|
|
287
288
|
}, [
|
|
288
|
-
e.value ? (t(), y(
|
|
289
|
+
e.value ? (t(), y(T, {
|
|
289
290
|
key: 0,
|
|
290
291
|
element: m.element,
|
|
291
292
|
location: "top"
|
|
@@ -308,7 +309,7 @@ const We = /* @__PURE__ */ g({
|
|
|
308
309
|
question: m.element
|
|
309
310
|
}, null, 8, ["commentClass", "question"])
|
|
310
311
|
], 2)) : d("", !0),
|
|
311
|
-
s.value ? (t(), y(
|
|
312
|
+
s.value ? (t(), y(T, {
|
|
312
313
|
key: 3,
|
|
313
314
|
element: m.element,
|
|
314
315
|
location: "bottom"
|
|
@@ -329,7 +330,7 @@ const We = /* @__PURE__ */ g({
|
|
|
329
330
|
element: m.element,
|
|
330
331
|
css: m.css
|
|
331
332
|
}, null, 8, ["element", "css"])) : d("", !0),
|
|
332
|
-
!m.element.isPanel && m.element.showErrorsBelowQuestion ? (t(), y(
|
|
333
|
+
!m.element.isPanel && m.element.showErrorsBelowQuestion ? (t(), y(T, {
|
|
333
334
|
key: 3,
|
|
334
335
|
element: m.element,
|
|
335
336
|
location: "bottom"
|
|
@@ -349,7 +350,7 @@ const We = /* @__PURE__ */ g({
|
|
|
349
350
|
css: {}
|
|
350
351
|
},
|
|
351
352
|
setup(r) {
|
|
352
|
-
const n = r, o = $(!1), e = $(null), s =
|
|
353
|
+
const n = r, o = $(!1), e = $(null), s = R(() => n.question.rows), i = R(() => n.question.survey), a = R(() => o.value);
|
|
353
354
|
return L(() => n.question), A(() => {
|
|
354
355
|
n.question.survey && n.question.survey.afterRenderPanel(n.question, e.value), o.value = n.question.isCollapsed;
|
|
355
356
|
const c = n.question;
|
|
@@ -360,7 +361,7 @@ const We = /* @__PURE__ */ g({
|
|
|
360
361
|
const c = n.question;
|
|
361
362
|
c.stateChangedCallback = null;
|
|
362
363
|
}), (c, v) => {
|
|
363
|
-
const m = q("survey-errors"), b = q("survey-element-header"),
|
|
364
|
+
const m = q("survey-errors"), b = q("survey-element-header"), T = q("survey-row"), f = q("sv-action-bar");
|
|
364
365
|
return c.question.isVisible ? (t(), u("div", {
|
|
365
366
|
key: 0,
|
|
366
367
|
class: l(c.question.getContainerCss()),
|
|
@@ -384,11 +385,11 @@ const We = /* @__PURE__ */ g({
|
|
|
384
385
|
a.value ? d("", !0) : (t(), u("div", {
|
|
385
386
|
key: 3,
|
|
386
387
|
id: c.question.contentId,
|
|
387
|
-
style:
|
|
388
|
+
style: w({ paddingLeft: c.question.innerPaddingLeft }),
|
|
388
389
|
class: l(c.question.cssClasses.panel.content)
|
|
389
390
|
}, [
|
|
390
|
-
(t(!0), u(
|
|
391
|
-
M.visible ? (t(), y(
|
|
391
|
+
(t(!0), u(S, null, B(s.value, (M, h) => (t(), u(S, null, [
|
|
392
|
+
M.visible ? (t(), y(T, {
|
|
392
393
|
key: c.question.id + "_" + h,
|
|
393
394
|
row: M,
|
|
394
395
|
survey: i.value,
|
|
@@ -463,7 +464,7 @@ const We = /* @__PURE__ */ g({
|
|
|
463
464
|
key: 0,
|
|
464
465
|
class: "sv-string-viewer",
|
|
465
466
|
innerHTML: k(o)
|
|
466
|
-
}, null, 8, Ye)) : (t(), u("span", Ze,
|
|
467
|
+
}, null, 8, Ye)) : (t(), u("span", Ze, I(k(o)), 1));
|
|
467
468
|
}
|
|
468
469
|
}), es = ["innerHTML"], ss = /* @__PURE__ */ g({
|
|
469
470
|
__name: "StringEditor",
|
|
@@ -490,7 +491,7 @@ const We = /* @__PURE__ */ g({
|
|
|
490
491
|
contenteditable: "true",
|
|
491
492
|
onBlur: o,
|
|
492
493
|
onClick: e
|
|
493
|
-
},
|
|
494
|
+
}, I(s.locString.renderedHtml), 33));
|
|
494
495
|
}
|
|
495
496
|
}), ns = ["id"], os = /* @__PURE__ */ g({
|
|
496
497
|
__name: "Skeleton",
|
|
@@ -517,7 +518,7 @@ const We = /* @__PURE__ */ g({
|
|
|
517
518
|
key: 0,
|
|
518
519
|
ref_key: "root",
|
|
519
520
|
ref: o
|
|
520
|
-
},
|
|
521
|
+
}, I(e.question.value), 513)) : e.question.dataListId ? (t(), u("div", {
|
|
521
522
|
key: 1,
|
|
522
523
|
ref_key: "root",
|
|
523
524
|
ref: o
|
|
@@ -526,7 +527,7 @@ const We = /* @__PURE__ */ g({
|
|
|
526
527
|
p("datalist", {
|
|
527
528
|
id: e.question.dataListId
|
|
528
529
|
}, [
|
|
529
|
-
(t(!0), u(
|
|
530
|
+
(t(!0), u(S, null, B(e.question.dataList, (a) => (t(), u("option", { value: a }, null, 8, is))), 256))
|
|
530
531
|
], 8, ts)
|
|
531
532
|
], 512)) : (t(), y(i, {
|
|
532
533
|
key: 2,
|
|
@@ -544,7 +545,7 @@ const We = /* @__PURE__ */ g({
|
|
|
544
545
|
setup(r) {
|
|
545
546
|
const n = r;
|
|
546
547
|
L(() => n.question);
|
|
547
|
-
const o =
|
|
548
|
+
const o = R(() => n.question.inputStyle);
|
|
548
549
|
return (e, s) => {
|
|
549
550
|
const i = q("sv-character-counter");
|
|
550
551
|
return e.question.getMaxLength() ? (t(), u("div", as, [
|
|
@@ -557,7 +558,7 @@ const We = /* @__PURE__ */ g({
|
|
|
557
558
|
max: e.question.renderedMax,
|
|
558
559
|
step: e.question.renderedStep,
|
|
559
560
|
size: e.question.renderedInputSize,
|
|
560
|
-
style:
|
|
561
|
+
style: w(o.value),
|
|
561
562
|
id: e.question.inputId,
|
|
562
563
|
list: e.question.dataListId,
|
|
563
564
|
placeholder: e.question.renderedPlaceholder,
|
|
@@ -589,7 +590,7 @@ const We = /* @__PURE__ */ g({
|
|
|
589
590
|
max: e.question.renderedMax,
|
|
590
591
|
step: e.question.renderedStep,
|
|
591
592
|
size: e.question.renderedInputSize,
|
|
592
|
-
style:
|
|
593
|
+
style: w(o.value),
|
|
593
594
|
id: e.question.inputId,
|
|
594
595
|
list: e.question.dataListId,
|
|
595
596
|
placeholder: e.question.renderedPlaceholder,
|
|
@@ -609,10 +610,7 @@ const We = /* @__PURE__ */ g({
|
|
|
609
610
|
}, null, 46, rs));
|
|
610
611
|
};
|
|
611
612
|
}
|
|
612
|
-
}), ms = ["role", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], cs = /* @__PURE__ */
|
|
613
|
-
role: "presentation",
|
|
614
|
-
class: "sv-hidden"
|
|
615
|
-
}, null, -1), ps = /* @__PURE__ */ g({
|
|
613
|
+
}), ms = ["role", "aria-required", "aria-label", "aria-labelledby", "aria-invalid", "aria-describedby"], cs = { class: "sv-hidden" }, ps = /* @__PURE__ */ g({
|
|
616
614
|
__name: "Checkbox",
|
|
617
615
|
props: {
|
|
618
616
|
question: {}
|
|
@@ -632,15 +630,15 @@ const We = /* @__PURE__ */ g({
|
|
|
632
630
|
"aria-invalid": e.question.a11y_input_ariaInvalid,
|
|
633
631
|
"aria-describedby": e.question.a11y_input_ariaDescribedBy
|
|
634
632
|
}, [
|
|
635
|
-
cs,
|
|
636
|
-
e.question.hasHeadItems ? (t(!0), u(
|
|
633
|
+
p("legend", cs, I(e.question.locTitle.renderedHtml), 1),
|
|
634
|
+
e.question.hasHeadItems ? (t(!0), u(S, { key: 0 }, B(e.question.headItems, (c, v) => (t(), y(i, {
|
|
637
635
|
key: c.value,
|
|
638
636
|
class: l(e.question.getItemClass(c)),
|
|
639
637
|
question: e.question,
|
|
640
638
|
item: c,
|
|
641
639
|
index: "" + v
|
|
642
640
|
}, null, 8, ["class", "question", "item", "index"]))), 128)) : d("", !0),
|
|
643
|
-
!e.question.hasColumns && !e.question.blockedRow ? (t(!0), u(
|
|
641
|
+
!e.question.hasColumns && !e.question.blockedRow ? (t(!0), u(S, { key: 1 }, B(e.question.bodyItems, (c, v) => (t(), y(i, {
|
|
644
642
|
key: c.value,
|
|
645
643
|
class: l(e.question.getItemClass(c)),
|
|
646
644
|
question: e.question,
|
|
@@ -651,7 +649,7 @@ const We = /* @__PURE__ */ g({
|
|
|
651
649
|
key: 2,
|
|
652
650
|
class: l(e.question.cssClasses.rootRow)
|
|
653
651
|
}, [
|
|
654
|
-
!e.question.hasColumns && e.question.blockedRow ? (t(!0), u(
|
|
652
|
+
!e.question.hasColumns && e.question.blockedRow ? (t(!0), u(S, { key: 0 }, B(e.question.dataChoices, (c, v) => (t(), y(i, {
|
|
655
653
|
key: c.value,
|
|
656
654
|
class: l(e.question.getItemClass(c)),
|
|
657
655
|
question: e.question,
|
|
@@ -663,12 +661,12 @@ const We = /* @__PURE__ */ g({
|
|
|
663
661
|
key: 3,
|
|
664
662
|
class: l(e.question.cssClasses.rootMultiColumn)
|
|
665
663
|
}, [
|
|
666
|
-
(t(!0), u(
|
|
664
|
+
(t(!0), u(S, null, B(e.question.columns, (c, v) => (t(), u("div", {
|
|
667
665
|
key: v,
|
|
668
666
|
class: l(e.question.getColumnClass()),
|
|
669
667
|
role: "presentation"
|
|
670
668
|
}, [
|
|
671
|
-
(t(!0), u(
|
|
669
|
+
(t(!0), u(S, null, B(c, (m, b) => (t(), y(i, {
|
|
672
670
|
key: m.value,
|
|
673
671
|
class: l(e.question.getItemClass(m)),
|
|
674
672
|
question: e.question,
|
|
@@ -677,7 +675,7 @@ const We = /* @__PURE__ */ g({
|
|
|
677
675
|
}, null, 8, ["class", "question", "item", "index"]))), 128))
|
|
678
676
|
], 2))), 128))
|
|
679
677
|
], 2)) : d("", !0),
|
|
680
|
-
e.question.hasFootItems ? (t(!0), u(
|
|
678
|
+
e.question.hasFootItems ? (t(!0), u(S, { key: 4 }, B(e.question.footItems, (c, v) => (t(), y(i, {
|
|
681
679
|
key: c.value,
|
|
682
680
|
class: l(e.question.getItemClass(c)),
|
|
683
681
|
question: e.question,
|
|
@@ -700,7 +698,7 @@ const We = /* @__PURE__ */ g({
|
|
|
700
698
|
hideLabel: { type: Boolean }
|
|
701
699
|
},
|
|
702
700
|
setup(r) {
|
|
703
|
-
const n = r, o =
|
|
701
|
+
const n = r, o = R({
|
|
704
702
|
get() {
|
|
705
703
|
return n.question.isAllSelected || "";
|
|
706
704
|
},
|
|
@@ -718,7 +716,8 @@ const We = /* @__PURE__ */ g({
|
|
|
718
716
|
e.item == e.question.selectAllItem ? P((t(), u("input", {
|
|
719
717
|
key: 0,
|
|
720
718
|
type: "checkbox",
|
|
721
|
-
|
|
719
|
+
role: "option",
|
|
720
|
+
name: e.question.name + e.item.value,
|
|
722
721
|
value: o.value,
|
|
723
722
|
"onUpdate:modelValue": s[0] || (s[0] = (a) => o.value = a),
|
|
724
723
|
id: e.question.getItemId(e.item),
|
|
@@ -730,7 +729,8 @@ const We = /* @__PURE__ */ g({
|
|
|
730
729
|
e.item != e.question.selectAllItem ? P((t(), u("input", {
|
|
731
730
|
key: 1,
|
|
732
731
|
type: "checkbox",
|
|
733
|
-
|
|
732
|
+
role: "option",
|
|
733
|
+
name: e.question.name + e.item.value,
|
|
734
734
|
value: e.item.value,
|
|
735
735
|
"onUpdate:modelValue": s[1] || (s[1] = (a) => e.question.renderedValue = a),
|
|
736
736
|
id: e.question.getItemId(e.item),
|
|
@@ -784,7 +784,7 @@ const We = /* @__PURE__ */ g({
|
|
|
784
784
|
"aria-invalid": e.question.a11y_input_ariaInvalid,
|
|
785
785
|
"aria-describedby": e.question.a11y_input_ariaDescribedBy
|
|
786
786
|
}, [
|
|
787
|
-
!e.question.hasColumns && !e.question.blockedRow ? (t(!0), u(
|
|
787
|
+
!e.question.hasColumns && !e.question.blockedRow ? (t(!0), u(S, { key: 0 }, B(e.question.bodyItems, (c, v) => (t(), y(i, {
|
|
788
788
|
key: c.value,
|
|
789
789
|
class: l(e.question.getItemClass(c)),
|
|
790
790
|
question: e.question,
|
|
@@ -795,7 +795,7 @@ const We = /* @__PURE__ */ g({
|
|
|
795
795
|
key: 1,
|
|
796
796
|
class: l(e.question.cssClasses.rootRow)
|
|
797
797
|
}, [
|
|
798
|
-
!e.question.hasColumns && e.question.blockedRow ? (t(!0), u(
|
|
798
|
+
!e.question.hasColumns && e.question.blockedRow ? (t(!0), u(S, { key: 0 }, B(e.question.dataChoices, (c, v) => (t(), y(i, {
|
|
799
799
|
key: c.value,
|
|
800
800
|
class: l(e.question.getItemClass(c)),
|
|
801
801
|
question: e.question,
|
|
@@ -807,11 +807,11 @@ const We = /* @__PURE__ */ g({
|
|
|
807
807
|
key: 2,
|
|
808
808
|
class: l(e.question.cssClasses.rootMultiColumn)
|
|
809
809
|
}, [
|
|
810
|
-
e.question.hasColumns ? (t(!0), u(
|
|
810
|
+
e.question.hasColumns ? (t(!0), u(S, { key: 0 }, B(e.question.columns, (c, v) => (t(), u("div", {
|
|
811
811
|
class: l(e.question.getColumnClass()),
|
|
812
812
|
role: "presentation"
|
|
813
813
|
}, [
|
|
814
|
-
(t(!0), u(
|
|
814
|
+
(t(!0), u(S, null, B(c, (m, b) => (t(), y(i, {
|
|
815
815
|
key: m.value,
|
|
816
816
|
class: l(e.question.getItemClass(m)),
|
|
817
817
|
question: e.question,
|
|
@@ -820,7 +820,7 @@ const We = /* @__PURE__ */ g({
|
|
|
820
820
|
}, null, 8, ["class", "question", "item", "index"]))), 128))
|
|
821
821
|
], 2))), 256)) : d("", !0)
|
|
822
822
|
], 2)) : d("", !0),
|
|
823
|
-
e.question.hasFootItems ? (t(!0), u(
|
|
823
|
+
e.question.hasFootItems ? (t(!0), u(S, { key: 3 }, B(e.question.footItems, (c, v) => (t(), y(i, {
|
|
824
824
|
key: c.value,
|
|
825
825
|
class: l(e.question.getItemClass(c)),
|
|
826
826
|
question: e.question,
|
|
@@ -844,7 +844,7 @@ const We = /* @__PURE__ */ g({
|
|
|
844
844
|
], 10, Cs);
|
|
845
845
|
};
|
|
846
846
|
}
|
|
847
|
-
}), Is = { role: "presentation" }, ws = ["name", "value", "id", "aria-describedby", "disabled"], Ss = ["xlink:href"],
|
|
847
|
+
}), Is = { role: "presentation" }, ws = ["name", "value", "id", "aria-describedby", "disabled"], Ss = ["xlink:href"], Ts = /* @__PURE__ */ g({
|
|
848
848
|
__name: "RadiogroupItem",
|
|
849
849
|
props: {
|
|
850
850
|
question: {},
|
|
@@ -898,7 +898,7 @@ const We = /* @__PURE__ */ g({
|
|
|
898
898
|
]);
|
|
899
899
|
};
|
|
900
900
|
}
|
|
901
|
-
}),
|
|
901
|
+
}), Rs = ["src"], $s = ["title"], Bs = { key: 0 }, Ls = /* @__PURE__ */ g({
|
|
902
902
|
__name: "Signaturepad",
|
|
903
903
|
props: {
|
|
904
904
|
question: {}
|
|
@@ -911,9 +911,8 @@ const We = /* @__PURE__ */ g({
|
|
|
911
911
|
class: l(e.question.cssClasses.root),
|
|
912
912
|
ref_key: "root",
|
|
913
913
|
ref: o,
|
|
914
|
-
style:
|
|
915
|
-
|
|
916
|
-
width: e.question.signatureWidth + "px"
|
|
914
|
+
style: w({
|
|
915
|
+
width: e.question.renderedCanvasWidth
|
|
917
916
|
})
|
|
918
917
|
}, [
|
|
919
918
|
P(p("div", {
|
|
@@ -930,9 +929,10 @@ const We = /* @__PURE__ */ g({
|
|
|
930
929
|
key: 0,
|
|
931
930
|
class: l(e.question.cssClasses.backgroundImage),
|
|
932
931
|
src: e.question.backgroundImage,
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
932
|
+
style: w({
|
|
933
|
+
width: e.question.renderedCanvasWidth
|
|
934
|
+
})
|
|
935
|
+
}, null, 14, Rs)) : d("", !0),
|
|
936
936
|
p("canvas", {
|
|
937
937
|
tabindex: "0",
|
|
938
938
|
class: l(e.question.cssClasses.canvas)
|
|
@@ -1000,7 +1000,7 @@ const We = /* @__PURE__ */ g({
|
|
|
1000
1000
|
alt: s.question.altText || s.question.title,
|
|
1001
1001
|
width: s.question.renderedWidth,
|
|
1002
1002
|
height: s.question.renderedHeight,
|
|
1003
|
-
style:
|
|
1003
|
+
style: w({
|
|
1004
1004
|
objectFit: s.question.imageFit,
|
|
1005
1005
|
width: s.question.renderedStyleWidth,
|
|
1006
1006
|
height: s.question.renderedStyleHeight
|
|
@@ -1021,7 +1021,7 @@ const We = /* @__PURE__ */ g({
|
|
|
1021
1021
|
src: k(e),
|
|
1022
1022
|
width: s.question.renderedWidth,
|
|
1023
1023
|
height: s.question.renderedHeight,
|
|
1024
|
-
style:
|
|
1024
|
+
style: w({
|
|
1025
1025
|
objectFit: s.question.imageFit,
|
|
1026
1026
|
width: s.question.renderedStyleWidth,
|
|
1027
1027
|
height: s.question.renderedStyleHeight
|
|
@@ -1041,7 +1041,7 @@ const We = /* @__PURE__ */ g({
|
|
|
1041
1041
|
src: k(e),
|
|
1042
1042
|
width: s.question.renderedWidth,
|
|
1043
1043
|
height: s.question.renderedHeight,
|
|
1044
|
-
style:
|
|
1044
|
+
style: w({
|
|
1045
1045
|
objectFit: s.question.imageFit,
|
|
1046
1046
|
width: s.question.renderedStyleWidth,
|
|
1047
1047
|
height: s.question.renderedStyleHeight
|
|
@@ -1070,7 +1070,7 @@ const We = /* @__PURE__ */ g({
|
|
|
1070
1070
|
class: l(e.question.cssClasses.root),
|
|
1071
1071
|
ref_key: "root",
|
|
1072
1072
|
ref: o
|
|
1073
|
-
},
|
|
1073
|
+
}, I(e.question.formatedValue), 3));
|
|
1074
1074
|
}
|
|
1075
1075
|
}), Es = ["id", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "multiple", "title", "accept", "capture"], Ws = ["id", "multiple", "placeholder"], Vs = /* @__PURE__ */ g({
|
|
1076
1076
|
__name: "File",
|
|
@@ -1080,7 +1080,7 @@ const We = /* @__PURE__ */ g({
|
|
|
1080
1080
|
setup(r) {
|
|
1081
1081
|
const n = r, o = $(null);
|
|
1082
1082
|
return H(n, o), (e, s) => {
|
|
1083
|
-
const i = q("survey-string"), a = q("sv-file-choose-btn"), c = q("sv-action-bar"), v = q("sv-file-clean-btn"), m = q("sv-loading-indicator"), b = q("sv-file-video"),
|
|
1083
|
+
const i = q("survey-string"), a = q("sv-file-choose-btn"), c = q("sv-action-bar"), v = q("sv-file-clean-btn"), m = q("sv-loading-indicator"), b = q("sv-file-video"), T = q("sv-file-preview");
|
|
1084
1084
|
return t(), u("div", {
|
|
1085
1085
|
class: l(e.question.fileRootCss),
|
|
1086
1086
|
ref_key: "root",
|
|
@@ -1144,7 +1144,7 @@ const We = /* @__PURE__ */ g({
|
|
|
1144
1144
|
e.question.isEmpty() ? (t(), u("span", {
|
|
1145
1145
|
key: 2,
|
|
1146
1146
|
class: l(e.question.cssClasses.noFileChosen)
|
|
1147
|
-
},
|
|
1147
|
+
}, I(e.question.noFileChosenCaption), 3)) : d("", !0)
|
|
1148
1148
|
], 2)
|
|
1149
1149
|
], 2)) : d("", !0),
|
|
1150
1150
|
e.question.showRemoveButton ? (t(), y(v, {
|
|
@@ -1162,7 +1162,7 @@ const We = /* @__PURE__ */ g({
|
|
|
1162
1162
|
key: 3,
|
|
1163
1163
|
question: e.question
|
|
1164
1164
|
}, null, 8, ["question"])) : d("", !0),
|
|
1165
|
-
e.question.allowShowPreview ? (t(), y(
|
|
1165
|
+
e.question.allowShowPreview ? (t(), y(T, {
|
|
1166
1166
|
key: 4,
|
|
1167
1167
|
question: e.question
|
|
1168
1168
|
}, null, 8, ["question"])) : d("", !0),
|
|
@@ -1179,7 +1179,7 @@ const We = /* @__PURE__ */ g({
|
|
|
1179
1179
|
], 2);
|
|
1180
1180
|
};
|
|
1181
1181
|
}
|
|
1182
|
-
}), Fs =
|
|
1182
|
+
}), Fs = { class: "sv-hidden" }, Os = /* @__PURE__ */ g({
|
|
1183
1183
|
__name: "Imagepicker",
|
|
1184
1184
|
props: {
|
|
1185
1185
|
question: {}
|
|
@@ -1193,21 +1193,18 @@ const We = /* @__PURE__ */ g({
|
|
|
1193
1193
|
ref_key: "root",
|
|
1194
1194
|
ref: o
|
|
1195
1195
|
}, [
|
|
1196
|
-
p("legend",
|
|
1197
|
-
|
|
1198
|
-
"aria-label": e.question.locTitle.renderedHtml
|
|
1199
|
-
}, null, 8, Fs),
|
|
1200
|
-
e.question.hasColumns ? d("", !0) : (t(!0), u(w, { key: 0 }, B(e.question.visibleChoices, (a) => (t(), y(i, {
|
|
1196
|
+
p("legend", Fs, I(e.question.locTitle.renderedHtml), 1),
|
|
1197
|
+
e.question.hasColumns ? d("", !0) : (t(!0), u(S, { key: 0 }, B(e.question.visibleChoices, (a) => (t(), y(i, {
|
|
1201
1198
|
key: a.value,
|
|
1202
1199
|
question: e.question,
|
|
1203
1200
|
item: a
|
|
1204
1201
|
}, null, 8, ["question", "item"]))), 128)),
|
|
1205
|
-
e.question.hasColumns ? (t(!0), u(
|
|
1202
|
+
e.question.hasColumns ? (t(!0), u(S, { key: 1 }, B(e.question.columns, (a, c) => (t(), u("div", {
|
|
1206
1203
|
class: l(e.question.getColumnClass()),
|
|
1207
1204
|
key: c,
|
|
1208
1205
|
role: "presentation"
|
|
1209
1206
|
}, [
|
|
1210
|
-
(t(!0), u(
|
|
1207
|
+
(t(!0), u(S, null, B(a, (v) => (t(), y(i, {
|
|
1211
1208
|
key: v.value,
|
|
1212
1209
|
question: e.question,
|
|
1213
1210
|
item: v
|
|
@@ -1288,7 +1285,7 @@ const We = /* @__PURE__ */ g({
|
|
|
1288
1285
|
src: k(e),
|
|
1289
1286
|
width: s.question.renderedImageWidth,
|
|
1290
1287
|
height: s.question.renderedImageHeight,
|
|
1291
|
-
style:
|
|
1288
|
+
style: w({ objectFit: s.question.imageFit }),
|
|
1292
1289
|
alt: s.item.locText.renderedHtml,
|
|
1293
1290
|
onLoad: i[2] || (i[2] = (v) => {
|
|
1294
1291
|
s.question.onContentLoaded(s.item, v);
|
|
@@ -1304,7 +1301,7 @@ const We = /* @__PURE__ */ g({
|
|
|
1304
1301
|
src: k(e),
|
|
1305
1302
|
width: s.question.renderedImageWidth,
|
|
1306
1303
|
height: s.question.renderedImageHeight,
|
|
1307
|
-
style:
|
|
1304
|
+
style: w({ objectFit: s.question.imageFit }),
|
|
1308
1305
|
onLoadedmetadata: i[4] || (i[4] = (v) => {
|
|
1309
1306
|
s.question.onContentLoaded(s.item, v);
|
|
1310
1307
|
}),
|
|
@@ -1315,7 +1312,7 @@ const We = /* @__PURE__ */ g({
|
|
|
1315
1312
|
!k(e) || s.item.contentNotLoaded ? (t(), u("div", {
|
|
1316
1313
|
key: 3,
|
|
1317
1314
|
class: l(s.question.cssClasses.itemNoImage),
|
|
1318
|
-
style:
|
|
1315
|
+
style: w({
|
|
1319
1316
|
width: s.question.renderedImageWidth + "px",
|
|
1320
1317
|
height: s.question.renderedImageHeight + "px",
|
|
1321
1318
|
objectFit: s.question.imageFit
|
|
@@ -1381,7 +1378,7 @@ const We = /* @__PURE__ */ g({
|
|
|
1381
1378
|
"aria-labelledby": s.question.a11y_input_ariaLabelledBy,
|
|
1382
1379
|
"aria-invalid": s.question.a11y_input_ariaInvalid,
|
|
1383
1380
|
"aria-describedby": s.question.a11y_input_ariaDescribedBy,
|
|
1384
|
-
style:
|
|
1381
|
+
style: w({ resize: s.question.resizeStyle })
|
|
1385
1382
|
}, null, 46, Gs)) : !s.question.isReadOnlyRenderDiv() && s.question.getMaxLength() ? (t(), u("div", {
|
|
1386
1383
|
key: 1,
|
|
1387
1384
|
ref_key: "root",
|
|
@@ -1409,7 +1406,7 @@ const We = /* @__PURE__ */ g({
|
|
|
1409
1406
|
"aria-labelledby": s.question.a11y_input_ariaLabelledBy,
|
|
1410
1407
|
"aria-invalid": s.question.a11y_input_ariaInvalid,
|
|
1411
1408
|
"aria-describedby": s.question.a11y_input_ariaDescribedBy,
|
|
1412
|
-
style:
|
|
1409
|
+
style: w({ resize: s.question.resizeStyle })
|
|
1413
1410
|
}, null, 46, Xs),
|
|
1414
1411
|
C(a, {
|
|
1415
1412
|
counter: s.question.characterCounter,
|
|
@@ -1419,7 +1416,7 @@ const We = /* @__PURE__ */ g({
|
|
|
1419
1416
|
key: 2,
|
|
1420
1417
|
ref_key: "root",
|
|
1421
1418
|
ref: o
|
|
1422
|
-
},
|
|
1419
|
+
}, I(s.question.value), 513));
|
|
1423
1420
|
};
|
|
1424
1421
|
}
|
|
1425
1422
|
}), Ys = /* @__PURE__ */ g({
|
|
@@ -1465,7 +1462,7 @@ const sn = /* @__PURE__ */ g({
|
|
|
1465
1462
|
n.question.onClick(a);
|
|
1466
1463
|
}, s = (a) => {
|
|
1467
1464
|
n.question.onKeyUp(a);
|
|
1468
|
-
}, i =
|
|
1465
|
+
}, i = R({
|
|
1469
1466
|
get() {
|
|
1470
1467
|
var a;
|
|
1471
1468
|
return (a = n.question.value) != null ? a : "";
|
|
@@ -1490,10 +1487,10 @@ const sn = /* @__PURE__ */ g({
|
|
|
1490
1487
|
disabled: "",
|
|
1491
1488
|
id: a.question.inputId,
|
|
1492
1489
|
class: l(a.question.getControlClass())
|
|
1493
|
-
},
|
|
1490
|
+
}, I(a.question.readOnlyText), 11, en)) : P((t(), u("select", {
|
|
1494
1491
|
key: 0,
|
|
1495
1492
|
id: a.question.inputId,
|
|
1496
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
1493
|
+
"onUpdate:modelValue": c[0] || (c[0] = (T) => i.value = T),
|
|
1497
1494
|
onClick: e,
|
|
1498
1495
|
onKeyup: s,
|
|
1499
1496
|
autocomplete: a.question.autocomplete,
|
|
@@ -1504,10 +1501,10 @@ const sn = /* @__PURE__ */ g({
|
|
|
1504
1501
|
"aria-describedby": a.question.ariaDescribedBy,
|
|
1505
1502
|
required: a.question.isRequired
|
|
1506
1503
|
}, [
|
|
1507
|
-
a.question.allowClear ? (t(), u("option", xs,
|
|
1508
|
-
(t(!0), u(
|
|
1509
|
-
item:
|
|
1510
|
-
key:
|
|
1504
|
+
a.question.allowClear ? (t(), u("option", xs, I(a.question.placeholder), 1)) : d("", !0),
|
|
1505
|
+
(t(!0), u(S, null, B(a.question.visibleChoices, (T) => (t(), y(v, {
|
|
1506
|
+
item: T,
|
|
1507
|
+
key: T.id
|
|
1511
1508
|
}, null, 8, ["item"]))), 128))
|
|
1512
1509
|
], 42, Zs)), [
|
|
1513
1510
|
[ve, i.value]
|
|
@@ -1540,15 +1537,15 @@ const sn = /* @__PURE__ */ g({
|
|
|
1540
1537
|
return L(() => n.item), (e, s) => (t(), u("option", {
|
|
1541
1538
|
value: e.item.value,
|
|
1542
1539
|
disabled: !e.item.isEnabled
|
|
1543
|
-
},
|
|
1540
|
+
}, I(k(o)), 9, nn));
|
|
1544
1541
|
}
|
|
1545
|
-
}), tn = ["id", "disabled", "tabindex", "role", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], ln = { style: { visibility: "hidden" } }, rn = ["disabled", "inputmode", "role", "id", "tabindex", "readonly", "aria-expanded", "aria-controls", "aria-activedescendant", "placeholder"], an = ["id"], un = /* @__PURE__ */ g({
|
|
1542
|
+
}), tn = ["id", "disabled", "tabindex", "role", "aria-required", "aria-label", "aria-invalid", "aria-describedby", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], ln = { style: { visibility: "hidden" } }, rn = ["disabled", "inputmode", "role", "id", "tabindex", "readonly", "aria-expanded", "aria-controls", "aria-label", "aria-labelledby", "aria-activedescendant", "placeholder"], an = ["id"], un = /* @__PURE__ */ g({
|
|
1546
1543
|
__name: "Dropdown",
|
|
1547
1544
|
props: {
|
|
1548
1545
|
question: {}
|
|
1549
1546
|
},
|
|
1550
1547
|
setup(r) {
|
|
1551
|
-
const n = r, o = $(null), e =
|
|
1548
|
+
const n = r, o = $(null), e = R(() => {
|
|
1552
1549
|
const h = n.question;
|
|
1553
1550
|
return h.dropdownListModel || (h.dropdownListModel = new Ie(h)), n.question.dropdownListModel;
|
|
1554
1551
|
}), s = (h) => {
|
|
@@ -1574,11 +1571,11 @@ const sn = /* @__PURE__ */ g({
|
|
|
1574
1571
|
}, b = (h) => {
|
|
1575
1572
|
var D;
|
|
1576
1573
|
(D = e.value) == null || D.onFocus(h);
|
|
1577
|
-
},
|
|
1574
|
+
}, T = (h) => {
|
|
1578
1575
|
e.value.inputStringRendered = h.target.value;
|
|
1579
|
-
}, f =
|
|
1576
|
+
}, f = R(
|
|
1580
1577
|
() => n.question.showSelectedItemLocText
|
|
1581
|
-
), M =
|
|
1578
|
+
), M = R(() => n.question.selectedItemLocText);
|
|
1582
1579
|
return L(() => e.value), J(v), A(v), (h, D) => {
|
|
1583
1580
|
const E = q("survey-string"), V = q("sv-svg-icon"), G = q("sv-popup");
|
|
1584
1581
|
return t(), u("div", {
|
|
@@ -1607,7 +1604,7 @@ const sn = /* @__PURE__ */ g({
|
|
|
1607
1604
|
key: 0,
|
|
1608
1605
|
class: l(h.question.cssClasses.hintPrefix)
|
|
1609
1606
|
}, [
|
|
1610
|
-
p("span", null,
|
|
1607
|
+
p("span", null, I(e.value.hintStringPrefix), 1)
|
|
1611
1608
|
], 2)) : d("", !0),
|
|
1612
1609
|
p("div", {
|
|
1613
1610
|
class: l(h.question.cssClasses.controlValue)
|
|
@@ -1620,8 +1617,8 @@ const sn = /* @__PURE__ */ g({
|
|
|
1620
1617
|
key: 1,
|
|
1621
1618
|
class: l(h.question.cssClasses.hintSuffix)
|
|
1622
1619
|
}, [
|
|
1623
|
-
p("span", ln,
|
|
1624
|
-
p("span", null,
|
|
1620
|
+
p("span", ln, I(e.value.inputStringRendered), 1),
|
|
1621
|
+
p("span", null, I(e.value.hintStringSuffix), 1)
|
|
1625
1622
|
], 2)) : d("", !0),
|
|
1626
1623
|
h.question.showInputFieldComponent ? (t(), y(N(h.question.inputFieldComponentName), {
|
|
1627
1624
|
key: 2,
|
|
@@ -1642,9 +1639,11 @@ const sn = /* @__PURE__ */ g({
|
|
|
1642
1639
|
readonly: e.value.searchEnabled ? void 0 : !0,
|
|
1643
1640
|
"aria-expanded": h.question.ariaExpanded === null ? void 0 : h.question.ariaExpanded === "true",
|
|
1644
1641
|
"aria-controls": e.value.listElementId,
|
|
1642
|
+
"aria-label": h.question.a11y_input_ariaLabel,
|
|
1643
|
+
"aria-labelledby": h.question.a11y_input_ariaLabelledBy,
|
|
1645
1644
|
"aria-activedescendant": e.value.ariaActivedescendant,
|
|
1646
1645
|
placeholder: e.value.placeholderRendered,
|
|
1647
|
-
onInput:
|
|
1646
|
+
onInput: T,
|
|
1648
1647
|
onBlur: m,
|
|
1649
1648
|
onFocus: b
|
|
1650
1649
|
}, null, 42, rn)
|
|
@@ -1674,7 +1673,7 @@ const sn = /* @__PURE__ */ g({
|
|
|
1674
1673
|
key: 0,
|
|
1675
1674
|
locString: h.question.selectedItemLocText
|
|
1676
1675
|
}, null, 8, ["locString"])) : d("", !0),
|
|
1677
|
-
p("div", null,
|
|
1676
|
+
p("div", null, I(h.question.readOnlyText), 1)
|
|
1678
1677
|
], 10, an)) : (t(), y(G, {
|
|
1679
1678
|
key: 1,
|
|
1680
1679
|
model: h.question.dropdownListModel.popupModel
|
|
@@ -1721,7 +1720,7 @@ const sn = /* @__PURE__ */ g({
|
|
|
1721
1720
|
question: {}
|
|
1722
1721
|
},
|
|
1723
1722
|
setup(r) {
|
|
1724
|
-
const n = r, o =
|
|
1723
|
+
const n = r, o = R(() => {
|
|
1725
1724
|
const m = n.question;
|
|
1726
1725
|
return m.dropdownListModel || (m.dropdownListModel = new Se(m)), n.question.dropdownListModel;
|
|
1727
1726
|
}), e = (m) => {
|
|
@@ -1739,9 +1738,9 @@ const sn = /* @__PURE__ */ g({
|
|
|
1739
1738
|
}, c = (m) => {
|
|
1740
1739
|
var b;
|
|
1741
1740
|
(b = o.value) == null || b.onBlur(m);
|
|
1742
|
-
}, v =
|
|
1741
|
+
}, v = R(() => n.question.selectedChoices);
|
|
1743
1742
|
return L(() => o.value), (m, b) => {
|
|
1744
|
-
const
|
|
1743
|
+
const T = q("sv-tagbox-item"), f = q("sv-tagbox-filter"), M = q("sv-svg-icon"), h = q("sv-popup");
|
|
1745
1744
|
return t(), u("div", {
|
|
1746
1745
|
class: l(m.question.cssClasses.selectWrapper),
|
|
1747
1746
|
onClick: e
|
|
@@ -1767,7 +1766,7 @@ const sn = /* @__PURE__ */ g({
|
|
|
1767
1766
|
p("div", {
|
|
1768
1767
|
class: l(m.question.cssClasses.controlValue)
|
|
1769
1768
|
}, [
|
|
1770
|
-
(t(!0), u(
|
|
1769
|
+
(t(!0), u(S, null, B(v.value, (D, E) => (t(), y(T, {
|
|
1771
1770
|
item: D,
|
|
1772
1771
|
question: m.question,
|
|
1773
1772
|
key: "item" + E
|
|
@@ -1798,7 +1797,7 @@ const sn = /* @__PURE__ */ g({
|
|
|
1798
1797
|
id: m.question.inputId,
|
|
1799
1798
|
class: l(m.question.getControlClass())
|
|
1800
1799
|
}, [
|
|
1801
|
-
p("div", null,
|
|
1800
|
+
p("div", null, I(m.question.readOnlyText), 1)
|
|
1802
1801
|
], 10, cn)) : (t(), y(h, {
|
|
1803
1802
|
key: 1,
|
|
1804
1803
|
model: o.value.popupModel
|
|
@@ -1817,7 +1816,7 @@ const sn = /* @__PURE__ */ g({
|
|
|
1817
1816
|
], 2);
|
|
1818
1817
|
};
|
|
1819
1818
|
}
|
|
1820
|
-
}), vn = { style: { visibility: "hidden" } }, qn = ["placeholder", "disabled", "inputmode", "role", "aria-expanded", "aria-controls", "aria-activedescendant", "id", "readonly", "size"], yn = /* @__PURE__ */ g({
|
|
1819
|
+
}), vn = { style: { visibility: "hidden" } }, qn = ["placeholder", "disabled", "inputmode", "role", "aria-expanded", "aria-controls", "aria-label", "aria-labelledby", "aria-activedescendant", "id", "readonly", "size"], yn = /* @__PURE__ */ g({
|
|
1821
1820
|
__name: "TagboxFilter",
|
|
1822
1821
|
props: {
|
|
1823
1822
|
question: {},
|
|
@@ -1843,7 +1842,7 @@ const sn = /* @__PURE__ */ g({
|
|
|
1843
1842
|
key: 0,
|
|
1844
1843
|
class: l(a.question.cssClasses.hintPrefix)
|
|
1845
1844
|
}, [
|
|
1846
|
-
p("span", null,
|
|
1845
|
+
p("span", null, I(a.model.hintStringPrefix), 1)
|
|
1847
1846
|
], 2)) : d("", !0),
|
|
1848
1847
|
p("div", {
|
|
1849
1848
|
class: l(a.question.cssClasses.hintSuffixWrapper)
|
|
@@ -1856,8 +1855,8 @@ const sn = /* @__PURE__ */ g({
|
|
|
1856
1855
|
key: 1,
|
|
1857
1856
|
class: l(a.question.cssClasses.hintSuffix)
|
|
1858
1857
|
}, [
|
|
1859
|
-
p("span", vn,
|
|
1860
|
-
p("span", null,
|
|
1858
|
+
p("span", vn, I(a.model.inputStringRendered), 1),
|
|
1859
|
+
p("span", null, I(a.model.hintStringSuffix), 1)
|
|
1861
1860
|
], 2)) : d("", !0),
|
|
1862
1861
|
P(p("input", {
|
|
1863
1862
|
type: "text",
|
|
@@ -1870,6 +1869,8 @@ const sn = /* @__PURE__ */ g({
|
|
|
1870
1869
|
role: a.model.filterStringEnabled ? a.question.ariaRole : void 0,
|
|
1871
1870
|
"aria-expanded": a.question.ariaExpanded === null ? void 0 : a.question.ariaExpanded === "true",
|
|
1872
1871
|
"aria-controls": a.model.listElementId,
|
|
1872
|
+
"aria-label": a.question.a11y_input_ariaLabel,
|
|
1873
|
+
"aria-labelledby": a.question.a11y_input_ariaLabelledBy,
|
|
1873
1874
|
"aria-activedescendant": a.model.ariaActivedescendant,
|
|
1874
1875
|
id: a.question.getInputId(),
|
|
1875
1876
|
readonly: a.model.searchEnabled ? void 0 : !0,
|
|
@@ -1935,7 +1936,7 @@ const sn = /* @__PURE__ */ g({
|
|
|
1935
1936
|
ref_key: "root",
|
|
1936
1937
|
ref: o
|
|
1937
1938
|
}, [
|
|
1938
|
-
s.question.selectToRankEnabled ? d("", !0) : (t(!0), u(
|
|
1939
|
+
s.question.selectToRankEnabled ? d("", !0) : (t(!0), u(S, { key: 0 }, B(s.question.rankingChoices, (c, v) => (t(), y(a, {
|
|
1939
1940
|
key: c.value + "-" + v + "-item",
|
|
1940
1941
|
class: l(s.question.getItemClass(c)),
|
|
1941
1942
|
text: c.locText,
|
|
@@ -1950,7 +1951,7 @@ const sn = /* @__PURE__ */ g({
|
|
|
1950
1951
|
class: l(s.question.getContainerClasses("from")),
|
|
1951
1952
|
"data-ranking": "from-container"
|
|
1952
1953
|
}, [
|
|
1953
|
-
(t(!0), u(
|
|
1954
|
+
(t(!0), u(S, null, B(s.question.unRankingChoices, (c, v) => (t(), y(a, {
|
|
1954
1955
|
key: c.value + "-" + v + "-item",
|
|
1955
1956
|
class: l(s.question.getItemClass(c)),
|
|
1956
1957
|
text: c.locText,
|
|
@@ -1964,7 +1965,7 @@ const sn = /* @__PURE__ */ g({
|
|
|
1964
1965
|
s.question.unRankingChoices.length === 0 ? (t(), u("div", {
|
|
1965
1966
|
key: 0,
|
|
1966
1967
|
class: l(s.question.cssClasses.containerPlaceholder)
|
|
1967
|
-
},
|
|
1968
|
+
}, I(s.question.selectToRankEmptyRankedAreaText), 3)) : d("", !0)
|
|
1968
1969
|
], 2)) : d("", !0),
|
|
1969
1970
|
s.question.selectToRankEnabled ? (t(), u("div", {
|
|
1970
1971
|
key: 2,
|
|
@@ -1975,7 +1976,7 @@ const sn = /* @__PURE__ */ g({
|
|
|
1975
1976
|
class: l(s.question.getContainerClasses("to")),
|
|
1976
1977
|
"data-ranking": "to-container"
|
|
1977
1978
|
}, [
|
|
1978
|
-
(t(!0), u(
|
|
1979
|
+
(t(!0), u(S, null, B(s.question.rankingChoices, (c, v) => (t(), y(a, {
|
|
1979
1980
|
key: c.value + "-" + v + "-item",
|
|
1980
1981
|
class: l(s.question.getItemClass(c)),
|
|
1981
1982
|
text: c.locText,
|
|
@@ -1988,7 +1989,7 @@ const sn = /* @__PURE__ */ g({
|
|
|
1988
1989
|
s.question.rankingChoices.length === 0 ? (t(), u("div", {
|
|
1989
1990
|
key: 0,
|
|
1990
1991
|
class: l(s.question.cssClasses.containerPlaceholder)
|
|
1991
|
-
},
|
|
1992
|
+
}, I(s.question.selectToRankEmptyUnrankedAreaText), 3)) : d("", !0)
|
|
1992
1993
|
], 2)) : d("", !0)
|
|
1993
1994
|
], 2);
|
|
1994
1995
|
};
|
|
@@ -2056,7 +2057,7 @@ const sn = /* @__PURE__ */ g({
|
|
|
2056
2057
|
!o.unrankedItem && o.indexText ? (t(), u("div", {
|
|
2057
2058
|
key: 0,
|
|
2058
2059
|
class: l(o.question.getItemIndexClasses(o.item))
|
|
2059
|
-
},
|
|
2060
|
+
}, I(o.indexText), 3)) : (t(), u("div", {
|
|
2060
2061
|
key: 1,
|
|
2061
2062
|
class: l(o.question.getItemIndexClasses(o.item))
|
|
2062
2063
|
}, [
|
|
@@ -2076,7 +2077,7 @@ const sn = /* @__PURE__ */ g({
|
|
|
2076
2077
|
], 42, bn);
|
|
2077
2078
|
};
|
|
2078
2079
|
}
|
|
2079
|
-
}),
|
|
2080
|
+
}), Tn = { role: "radiogroup" }, Rn = /* @__PURE__ */ p("legend", {
|
|
2080
2081
|
role: "presentation",
|
|
2081
2082
|
class: "sv-hidden"
|
|
2082
2083
|
}, null, -1), $n = /* @__PURE__ */ g({
|
|
@@ -2095,8 +2096,8 @@ const sn = /* @__PURE__ */ g({
|
|
|
2095
2096
|
ref_key: "root",
|
|
2096
2097
|
ref: o
|
|
2097
2098
|
}, [
|
|
2098
|
-
p("fieldset",
|
|
2099
|
-
|
|
2099
|
+
p("fieldset", Tn, [
|
|
2100
|
+
Rn,
|
|
2100
2101
|
s.question.hasMinLabel ? (t(), u("span", {
|
|
2101
2102
|
key: 0,
|
|
2102
2103
|
class: l(s.question.cssClasses.minText)
|
|
@@ -2105,7 +2106,7 @@ const sn = /* @__PURE__ */ g({
|
|
|
2105
2106
|
locString: s.question.locMinRateDescription
|
|
2106
2107
|
}, null, 8, ["locString"])
|
|
2107
2108
|
], 2)) : d("", !0),
|
|
2108
|
-
(t(!0), u(
|
|
2109
|
+
(t(!0), u(S, null, B(s.question.renderedRateItems, (c, v) => (t(), y(N(s.question.itemComponent), {
|
|
2109
2110
|
key: e(v),
|
|
2110
2111
|
item: c,
|
|
2111
2112
|
index: v,
|
|
@@ -2176,7 +2177,7 @@ const sn = /* @__PURE__ */ g({
|
|
|
2176
2177
|
return t(), u("label", {
|
|
2177
2178
|
key: o.item.value,
|
|
2178
2179
|
onMousedown: e[1] || (e[1] = (i) => o.question.onMouseDown()),
|
|
2179
|
-
style:
|
|
2180
|
+
style: w(o.question.getItemStyle(o.item.itemValue, o.item.highlight)),
|
|
2180
2181
|
class: l(o.question.getItemClass(o.item.itemValue, o.item.highlight)),
|
|
2181
2182
|
onMouseover: e[2] || (e[2] = (i) => o.question.onItemMouseIn(o.item)),
|
|
2182
2183
|
onMouseleave: e[3] || (e[3] = (i) => o.question.onItemMouseOut(o.item))
|
|
@@ -2552,14 +2553,14 @@ const jn = /* @__PURE__ */ g({
|
|
|
2552
2553
|
ref: o
|
|
2553
2554
|
}, [
|
|
2554
2555
|
p("tbody", null, [
|
|
2555
|
-
(t(!0), u(
|
|
2556
|
+
(t(!0), u(S, null, B(e.question.getRows(), (a, c) => (t(), u(S, {
|
|
2556
2557
|
key: e.question.inputId + "rowkey" + c
|
|
2557
2558
|
}, [
|
|
2558
2559
|
a.isVisible ? (t(), u("tr", {
|
|
2559
2560
|
key: 0,
|
|
2560
2561
|
class: l(e.question.cssClasses.row)
|
|
2561
2562
|
}, [
|
|
2562
|
-
(t(!0), u(
|
|
2563
|
+
(t(!0), u(S, null, B(a.cells, (v) => (t(), u("td", {
|
|
2563
2564
|
key: "item" + v.item.editor.id,
|
|
2564
2565
|
class: l(v.className)
|
|
2565
2566
|
}, [
|
|
@@ -2583,7 +2584,7 @@ const jn = /* @__PURE__ */ g({
|
|
|
2583
2584
|
setup(r) {
|
|
2584
2585
|
const n = r, o = (s) => se(s);
|
|
2585
2586
|
L(() => n.cell.item.editor);
|
|
2586
|
-
const e =
|
|
2587
|
+
const e = R(() => n.cell.item);
|
|
2587
2588
|
return (s, i) => {
|
|
2588
2589
|
const a = q("survey-string"), c = q("survey-errors");
|
|
2589
2590
|
return s.cell.isErrorsCell ? (t(), y(c, {
|
|
@@ -2599,7 +2600,7 @@ const jn = /* @__PURE__ */ g({
|
|
|
2599
2600
|
e.value.editor.isRequireTextBeforeTitle || e.value.editor.isRequireTextOnStart ? (t(), u("span", {
|
|
2600
2601
|
key: 0,
|
|
2601
2602
|
class: l(s.question.cssClasses.requiredText)
|
|
2602
|
-
},
|
|
2603
|
+
}, I(e.value.editor.requiredText), 3)) : d("", !0),
|
|
2603
2604
|
C(a, {
|
|
2604
2605
|
locString: e.value.locTitle
|
|
2605
2606
|
}, null, 8, ["locString"]),
|
|
@@ -2608,7 +2609,7 @@ const jn = /* @__PURE__ */ g({
|
|
|
2608
2609
|
key: 2,
|
|
2609
2610
|
"aria-hidden": "true",
|
|
2610
2611
|
class: l(s.question.cssClasses.requiredText)
|
|
2611
|
-
},
|
|
2612
|
+
}, I(e.value.editor.requiredText), 3)) : d("", !0)
|
|
2612
2613
|
], 2),
|
|
2613
2614
|
(t(), u("div", {
|
|
2614
2615
|
key: e.value.editor.id,
|
|
@@ -2622,7 +2623,7 @@ const jn = /* @__PURE__ */ g({
|
|
|
2622
2623
|
], 2));
|
|
2623
2624
|
};
|
|
2624
2625
|
}
|
|
2625
|
-
}), Jn =
|
|
2626
|
+
}), Jn = { class: "sv-hidden" }, Yn = { key: 0 }, Zn = { key: 0 }, xn = ["onClick"], eo = ["data-responsive-title", "onClick"], so = ["name", "onUpdate:modelValue", "value", "disabled", "id", "aria-required", "aria-label", "aria-invalid", "aria-describedby"], no = ["xlink:href"], oo = /* @__PURE__ */ g({
|
|
2626
2627
|
__name: "Matrix",
|
|
2627
2628
|
props: {
|
|
2628
2629
|
question: {}
|
|
@@ -2653,19 +2654,17 @@ const jn = /* @__PURE__ */ g({
|
|
|
2653
2654
|
ref: o
|
|
2654
2655
|
}, [
|
|
2655
2656
|
p("fieldset", null, [
|
|
2656
|
-
p("legend",
|
|
2657
|
-
"aria-label": i.question.locTitle.renderedHtml
|
|
2658
|
-
}, null, 8, Jn),
|
|
2657
|
+
p("legend", Jn, I(i.question.locTitle.renderedHtml), 1),
|
|
2659
2658
|
p("table", {
|
|
2660
2659
|
class: l(i.question.getTableCss())
|
|
2661
2660
|
}, [
|
|
2662
2661
|
i.question.showHeader ? (t(), u("thead", Yn, [
|
|
2663
2662
|
p("tr", null, [
|
|
2664
2663
|
i.question.hasRows ? (t(), u("td", Zn)) : d("", !0),
|
|
2665
|
-
(t(!0), u(
|
|
2664
|
+
(t(!0), u(S, null, B(i.question.visibleColumns, (v, m) => (t(), u("th", {
|
|
2666
2665
|
key: m,
|
|
2667
2666
|
class: l(i.question.cssClasses.headerCell),
|
|
2668
|
-
style:
|
|
2667
|
+
style: w({
|
|
2669
2668
|
minWidth: i.question.columnMinWidth,
|
|
2670
2669
|
width: i.question.columnMinWidth
|
|
2671
2670
|
})
|
|
@@ -2677,13 +2676,13 @@ const jn = /* @__PURE__ */ g({
|
|
|
2677
2676
|
])
|
|
2678
2677
|
])) : d("", !0),
|
|
2679
2678
|
p("tbody", null, [
|
|
2680
|
-
(t(!0), u(
|
|
2679
|
+
(t(!0), u(S, null, B(e.value, (v, m) => (t(), u("tr", {
|
|
2681
2680
|
key: "row_" + v.name + "_" + m,
|
|
2682
2681
|
class: l(v.rowClasses || void 0)
|
|
2683
2682
|
}, [
|
|
2684
2683
|
P(p("td", {
|
|
2685
2684
|
class: l(i.question.cssClasses.rowTextCell),
|
|
2686
|
-
style:
|
|
2685
|
+
style: w({
|
|
2687
2686
|
minWidth: i.question.rowTitleWidth,
|
|
2688
2687
|
width: i.question.rowTitleWidth
|
|
2689
2688
|
})
|
|
@@ -2694,8 +2693,8 @@ const jn = /* @__PURE__ */ g({
|
|
|
2694
2693
|
], 6), [
|
|
2695
2694
|
[_, i.question.hasRows]
|
|
2696
2695
|
]),
|
|
2697
|
-
i.question.hasCellText ? (t(!0), u(
|
|
2698
|
-
key:
|
|
2696
|
+
i.question.hasCellText ? (t(!0), u(S, { key: 0 }, B(i.question.visibleColumns, (b, T) => (t(), u("td", {
|
|
2697
|
+
key: T,
|
|
2699
2698
|
class: l(i.question.getItemClass(v, b)),
|
|
2700
2699
|
onClick: (f) => s(v, b)
|
|
2701
2700
|
}, [
|
|
@@ -2703,8 +2702,8 @@ const jn = /* @__PURE__ */ g({
|
|
|
2703
2702
|
locString: i.question.getCellDisplayLocText(v.name, b)
|
|
2704
2703
|
}, null, 8, ["locString"])
|
|
2705
2704
|
], 10, xn))), 128)) : d("", !0),
|
|
2706
|
-
i.question.hasCellText ? d("", !0) : (t(!0), u(
|
|
2707
|
-
key:
|
|
2705
|
+
i.question.hasCellText ? d("", !0) : (t(!0), u(S, { key: 1 }, B(i.question.visibleColumns, (b, T) => (t(), u("td", {
|
|
2706
|
+
key: T,
|
|
2708
2707
|
"data-responsive-title": b.locText.renderedHtml,
|
|
2709
2708
|
class: l(i.question.cssClasses.cell),
|
|
2710
2709
|
onClick: (f) => s(v, b)
|
|
@@ -2720,7 +2719,7 @@ const jn = /* @__PURE__ */ g({
|
|
|
2720
2719
|
"onUpdate:modelValue": (f) => v.value = f,
|
|
2721
2720
|
value: b.value,
|
|
2722
2721
|
disabled: i.question.isInputReadOnly,
|
|
2723
|
-
id: i.question.inputId + "_" + v.name + "_" +
|
|
2722
|
+
id: i.question.inputId + "_" + v.name + "_" + T,
|
|
2724
2723
|
"aria-required": i.question.ariaRequired,
|
|
2725
2724
|
"aria-label": b.locText.renderedHtml,
|
|
2726
2725
|
"aria-invalid": i.question.ariaInvalid,
|
|
@@ -2780,7 +2779,7 @@ const jn = /* @__PURE__ */ g({
|
|
|
2780
2779
|
question: {}
|
|
2781
2780
|
},
|
|
2782
2781
|
setup(r) {
|
|
2783
|
-
const n = r, o =
|
|
2782
|
+
const n = r, o = R(() => n.question.renderedTable);
|
|
2784
2783
|
return L(
|
|
2785
2784
|
() => o.value,
|
|
2786
2785
|
(e) => {
|
|
@@ -2797,7 +2796,7 @@ const jn = /* @__PURE__ */ g({
|
|
|
2797
2796
|
), (e, s) => {
|
|
2798
2797
|
const i = q("survey-string"), a = q("survey-matrixheaderrequired"), c = q("survey-matrixcell");
|
|
2799
2798
|
return t(), u("div", {
|
|
2800
|
-
style:
|
|
2799
|
+
style: w({ overflowX: e.question.showHorizontalScroll ? "scroll" : "" }),
|
|
2801
2800
|
class: l(e.question.cssClasses.tableWrapper)
|
|
2802
2801
|
}, [
|
|
2803
2802
|
p("table", {
|
|
@@ -2805,11 +2804,11 @@ const jn = /* @__PURE__ */ g({
|
|
|
2805
2804
|
}, [
|
|
2806
2805
|
o.value.showHeader ? (t(), u("thead", io, [
|
|
2807
2806
|
p("tr", null, [
|
|
2808
|
-
(t(!0), u(
|
|
2807
|
+
(t(!0), u(S, null, B(o.value.headerRow.cells, (v) => (t(), u(S, null, [
|
|
2809
2808
|
v.hasTitle ? (t(), u("th", {
|
|
2810
2809
|
class: l(v.className),
|
|
2811
2810
|
key: "header_" + v.id,
|
|
2812
|
-
style:
|
|
2811
|
+
style: w({ minWidth: v.minWidth, width: v.width })
|
|
2813
2812
|
}, [
|
|
2814
2813
|
C(i, {
|
|
2815
2814
|
locString: v.locTitle
|
|
@@ -2823,13 +2822,13 @@ const jn = /* @__PURE__ */ g({
|
|
|
2823
2822
|
v.hasTitle ? d("", !0) : (t(), u("td", {
|
|
2824
2823
|
class: l(v.className),
|
|
2825
2824
|
key: "header_" + v.id,
|
|
2826
|
-
style:
|
|
2825
|
+
style: w({ minWidth: v.minWidth, width: v.width })
|
|
2827
2826
|
}, null, 6))
|
|
2828
2827
|
], 64))), 256))
|
|
2829
2828
|
])
|
|
2830
2829
|
])) : d("", !0),
|
|
2831
2830
|
p("tbody", null, [
|
|
2832
|
-
(t(!0), u(
|
|
2831
|
+
(t(!0), u(S, null, B(o.value.rows, (v) => (t(), u(S, {
|
|
2833
2832
|
key: e.question.inputId + "_" + v.id
|
|
2834
2833
|
}, [
|
|
2835
2834
|
v.visible ? (t(), u("tr", {
|
|
@@ -2837,7 +2836,7 @@ const jn = /* @__PURE__ */ g({
|
|
|
2837
2836
|
"data-sv-drop-target-matrix-row": v.row && v.row.id,
|
|
2838
2837
|
class: l(v.className)
|
|
2839
2838
|
}, [
|
|
2840
|
-
(t(!0), u(
|
|
2839
|
+
(t(!0), u(S, null, B(v.cells, (m, b) => (t(), y(c, {
|
|
2841
2840
|
cell: m,
|
|
2842
2841
|
question: e.question,
|
|
2843
2842
|
key: v.id + "_" + b
|
|
@@ -2847,7 +2846,7 @@ const jn = /* @__PURE__ */ g({
|
|
|
2847
2846
|
]),
|
|
2848
2847
|
o.value.showFooter ? (t(), u("tfoot", ro, [
|
|
2849
2848
|
p("tr", null, [
|
|
2850
|
-
(t(!0), u(
|
|
2849
|
+
(t(!0), u(S, null, B(o.value.footerRow.cells, (v, m) => (t(), y(c, {
|
|
2851
2850
|
cell: v,
|
|
2852
2851
|
question: e.question,
|
|
2853
2852
|
key: "footer_" + m
|
|
@@ -2866,12 +2865,12 @@ const jn = /* @__PURE__ */ g({
|
|
|
2866
2865
|
},
|
|
2867
2866
|
setup(r) {
|
|
2868
2867
|
const n = r;
|
|
2869
|
-
return L(() => n.column), (o, e) => o.column.isRenderedRequired ? (t(), u(
|
|
2868
|
+
return L(() => n.column), (o, e) => o.column.isRenderedRequired ? (t(), u(S, { key: 0 }, [
|
|
2870
2869
|
uo,
|
|
2871
2870
|
o.column.isRenderedRequired ? (t(), u("span", {
|
|
2872
2871
|
key: 0,
|
|
2873
2872
|
class: l(o.question.cssClasses.cellRequiredText)
|
|
2874
|
-
},
|
|
2873
|
+
}, I(o.column.requiredText), 3)) : d("", !0)
|
|
2875
2874
|
], 64)) : d("", !0);
|
|
2876
2875
|
}
|
|
2877
2876
|
}), co = ["data-responsive-title", "title", "colspan"], po = /* @__PURE__ */ g({
|
|
@@ -2888,27 +2887,27 @@ const jn = /* @__PURE__ */ g({
|
|
|
2888
2887
|
c(), n.cell.question.registerPropertyChangedHandlers(["isVisible"], () => {
|
|
2889
2888
|
c();
|
|
2890
2889
|
});
|
|
2891
|
-
const m = e.value, b = n.cell.question,
|
|
2890
|
+
const m = e.value, b = n.cell.question, T = {
|
|
2892
2891
|
cell: n.cell.cell,
|
|
2893
2892
|
cellQuestion: b,
|
|
2894
2893
|
htmlElement: m,
|
|
2895
2894
|
row: n.cell.row,
|
|
2896
2895
|
column: n.cell.cell.column
|
|
2897
2896
|
};
|
|
2898
|
-
n.question.survey.matrixAfterCellRender(n.question,
|
|
2897
|
+
n.question.survey.matrixAfterCellRender(n.question, T), b && b.afterRenderCore(m);
|
|
2899
2898
|
}), (m, b) => {
|
|
2900
|
-
const
|
|
2899
|
+
const T = q("survey-errors"), f = q("sv-matrix-drag-drop-icon"), M = q("sv-action-bar"), h = q("survey-radiogroup-item"), D = q("survey-checkbox-item"), E = q("survey-other-choice"), V = q("survey-string");
|
|
2901
2900
|
return t(), u("td", {
|
|
2902
2901
|
class: l(m.cell.className),
|
|
2903
2902
|
"data-responsive-title": s(),
|
|
2904
2903
|
title: m.cell.getTitle(),
|
|
2905
|
-
style:
|
|
2904
|
+
style: w(i()),
|
|
2906
2905
|
colspan: m.cell.colSpans,
|
|
2907
2906
|
onFocusin: b[0] || (b[0] = (G) => m.cell.focusIn()),
|
|
2908
2907
|
ref_key: "root",
|
|
2909
2908
|
ref: e
|
|
2910
2909
|
}, [
|
|
2911
|
-
m.cell.isErrorsCell ? (t(), y(
|
|
2910
|
+
m.cell.isErrorsCell ? (t(), y(T, {
|
|
2912
2911
|
key: 0,
|
|
2913
2912
|
element: m.cell.question
|
|
2914
2913
|
}, null, 8, ["element"])) : d("", !0),
|
|
@@ -2970,7 +2969,7 @@ const jn = /* @__PURE__ */ g({
|
|
|
2970
2969
|
m.cell.requiredText ? (t(), u("span", {
|
|
2971
2970
|
key: 6,
|
|
2972
2971
|
class: l(m.question.cssClasses.cellRequiredText)
|
|
2973
|
-
},
|
|
2972
|
+
}, I(m.cell.requiredText), 3)) : d("", !0)
|
|
2974
2973
|
], 46, co);
|
|
2975
2974
|
};
|
|
2976
2975
|
}
|
|
@@ -3060,8 +3059,8 @@ const jn = /* @__PURE__ */ g({
|
|
|
3060
3059
|
});
|
|
3061
3060
|
function ne(r, n = !0) {
|
|
3062
3061
|
return {
|
|
3063
|
-
question:
|
|
3064
|
-
row: n ?
|
|
3062
|
+
question: R(() => r.item.data.question),
|
|
3063
|
+
row: n ? R(() => r.item.data.row) : void 0
|
|
3065
3064
|
};
|
|
3066
3065
|
}
|
|
3067
3066
|
const qo = ["disabled"], yo = /* @__PURE__ */ g({
|
|
@@ -3161,14 +3160,14 @@ const qo = ["disabled"], yo = /* @__PURE__ */ g({
|
|
|
3161
3160
|
};
|
|
3162
3161
|
}
|
|
3163
3162
|
);
|
|
3164
|
-
const s =
|
|
3163
|
+
const s = R(() => {
|
|
3165
3164
|
if (n.question.isRenderModeList)
|
|
3166
3165
|
return n.question.panels;
|
|
3167
3166
|
const a = [];
|
|
3168
3167
|
return n.question.currentPanel && a.push(n.question.currentPanel), a;
|
|
3169
3168
|
}), i = () => n.question.showLegacyNavigation;
|
|
3170
3169
|
return (a, c) => {
|
|
3171
|
-
const v = q("survey-string"), m = q("sv-paneldynamic-add-btn"), b = q("survey-paneldynamicprogress"),
|
|
3170
|
+
const v = q("survey-string"), m = q("sv-paneldynamic-add-btn"), b = q("survey-paneldynamicprogress"), T = q("survey-panel"), f = q("sv-paneldynamic-remove-btn"), M = q("survey-paneldynamicprogress-v2");
|
|
3172
3171
|
return t(), u("div", {
|
|
3173
3172
|
class: l(a.question.cssClasses.root),
|
|
3174
3173
|
ref_key: "root",
|
|
@@ -3193,7 +3192,7 @@ const qo = ["disabled"], yo = /* @__PURE__ */ g({
|
|
|
3193
3192
|
}, [
|
|
3194
3193
|
p("div", {
|
|
3195
3194
|
class: l(a.question.cssClasses.progressBar),
|
|
3196
|
-
style:
|
|
3195
|
+
style: w({ width: a.question.progress }),
|
|
3197
3196
|
role: "progressbar"
|
|
3198
3197
|
}, null, 6)
|
|
3199
3198
|
], 2)) : d("", !0),
|
|
@@ -3201,13 +3200,13 @@ const qo = ["disabled"], yo = /* @__PURE__ */ g({
|
|
|
3201
3200
|
key: 2,
|
|
3202
3201
|
question: a.question
|
|
3203
3202
|
}, null, 8, ["question"])) : d("", !0),
|
|
3204
|
-
(t(!0), u(
|
|
3203
|
+
(t(!0), u(S, null, B(s.value, (h, D) => (t(), u(S, {
|
|
3205
3204
|
key: h.id
|
|
3206
3205
|
}, [
|
|
3207
3206
|
p("div", {
|
|
3208
3207
|
class: l(a.question.getPanelWrapperCss())
|
|
3209
3208
|
}, [
|
|
3210
|
-
C(
|
|
3209
|
+
C(T, {
|
|
3211
3210
|
question: h,
|
|
3212
3211
|
css: a.css
|
|
3213
3212
|
}, null, 8, ["question", "css"]),
|
|
@@ -3264,7 +3263,7 @@ const qo = ["disabled"], yo = /* @__PURE__ */ g({
|
|
|
3264
3263
|
}, [
|
|
3265
3264
|
p("div", {
|
|
3266
3265
|
class: l(e.question.cssClasses.progressBar),
|
|
3267
|
-
style:
|
|
3266
|
+
style: w({ width: e.question.progress }),
|
|
3268
3267
|
role: "progressbar"
|
|
3269
3268
|
}, null, 6)
|
|
3270
3269
|
], 2)) : d("", !0),
|
|
@@ -3303,7 +3302,7 @@ const qo = ["disabled"], yo = /* @__PURE__ */ g({
|
|
|
3303
3302
|
}, [
|
|
3304
3303
|
p("div", {
|
|
3305
3304
|
class: l(n.question.cssClasses.progressBar),
|
|
3306
|
-
style:
|
|
3305
|
+
style: w({ width: n.question.progress }),
|
|
3307
3306
|
role: "progressbar"
|
|
3308
3307
|
}, null, 6)
|
|
3309
3308
|
], 2)) : d("", !0),
|
|
@@ -3320,7 +3319,7 @@ const qo = ["disabled"], yo = /* @__PURE__ */ g({
|
|
|
3320
3319
|
}
|
|
3321
3320
|
});
|
|
3322
3321
|
function Q(r) {
|
|
3323
|
-
return
|
|
3322
|
+
return R(
|
|
3324
3323
|
() => r.item && r.item.data.question || r.data.question
|
|
3325
3324
|
);
|
|
3326
3325
|
}
|
|
@@ -3342,10 +3341,10 @@ const wo = /* @__PURE__ */ g({
|
|
|
3342
3341
|
}, [
|
|
3343
3342
|
p("span", {
|
|
3344
3343
|
class: l(k(o).cssClasses.buttonAddText)
|
|
3345
|
-
},
|
|
3344
|
+
}, I(k(o).panelAddText), 3)
|
|
3346
3345
|
], 2)) : d("", !0);
|
|
3347
3346
|
}
|
|
3348
|
-
}), So = ["title"],
|
|
3347
|
+
}), So = ["title"], To = /* @__PURE__ */ g({
|
|
3349
3348
|
__name: "PaneldynamicNextBtn",
|
|
3350
3349
|
props: {
|
|
3351
3350
|
item: {},
|
|
@@ -3369,7 +3368,7 @@ const wo = /* @__PURE__ */ g({
|
|
|
3369
3368
|
], 10, So);
|
|
3370
3369
|
};
|
|
3371
3370
|
}
|
|
3372
|
-
}),
|
|
3371
|
+
}), Ro = ["title"], $o = /* @__PURE__ */ g({
|
|
3373
3372
|
__name: "PaneldynamicPrevBtn",
|
|
3374
3373
|
props: {
|
|
3375
3374
|
item: {},
|
|
@@ -3390,7 +3389,7 @@ const wo = /* @__PURE__ */ g({
|
|
|
3390
3389
|
iconName: k(o).cssClasses.progressBtnIcon,
|
|
3391
3390
|
size: "auto"
|
|
3392
3391
|
}, null, 8, ["iconName"])
|
|
3393
|
-
], 10,
|
|
3392
|
+
], 10, Ro);
|
|
3394
3393
|
};
|
|
3395
3394
|
}
|
|
3396
3395
|
}), Bo = /* @__PURE__ */ g({
|
|
@@ -3400,7 +3399,7 @@ const wo = /* @__PURE__ */ g({
|
|
|
3400
3399
|
data: {}
|
|
3401
3400
|
},
|
|
3402
3401
|
setup(r) {
|
|
3403
|
-
const n = r, o = Q(n), e =
|
|
3402
|
+
const n = r, o = Q(n), e = R(
|
|
3404
3403
|
() => n.item && n.item.data.panel || n.data.panel
|
|
3405
3404
|
), s = (i) => {
|
|
3406
3405
|
o.value.isInputReadOnly || o.value.removePanelUI(i);
|
|
@@ -3412,7 +3411,7 @@ const wo = /* @__PURE__ */ g({
|
|
|
3412
3411
|
}, [
|
|
3413
3412
|
p("span", {
|
|
3414
3413
|
class: l(k(o).cssClasses.buttonRemoveText)
|
|
3415
|
-
},
|
|
3414
|
+
}, I(k(o).panelRemoveText), 3),
|
|
3416
3415
|
p("span", {
|
|
3417
3416
|
class: l(k(o).cssClasses.iconRemove)
|
|
3418
3417
|
}, null, 2)
|
|
@@ -3428,7 +3427,7 @@ const wo = /* @__PURE__ */ g({
|
|
|
3428
3427
|
const o = Q(r);
|
|
3429
3428
|
return (e, s) => (t(), u("div", {
|
|
3430
3429
|
class: l(k(o).cssClasses.progressText)
|
|
3431
|
-
},
|
|
3430
|
+
}, I(k(o).progressText), 3));
|
|
3432
3431
|
}
|
|
3433
3432
|
}), Do = ["id"], Po = /* @__PURE__ */ g({
|
|
3434
3433
|
__name: "Errors",
|
|
@@ -3449,7 +3448,7 @@ const wo = /* @__PURE__ */ g({
|
|
|
3449
3448
|
ref_key: "root",
|
|
3450
3449
|
ref: n
|
|
3451
3450
|
}, [
|
|
3452
|
-
(t(!0), u(
|
|
3451
|
+
(t(!0), u(S, null, B(o.element.errors, (i, a) => (t(), u("div", {
|
|
3453
3452
|
key: "error_" + a
|
|
3454
3453
|
}, [
|
|
3455
3454
|
p("span", {
|
|
@@ -3478,7 +3477,7 @@ const wo = /* @__PURE__ */ g({
|
|
|
3478
3477
|
commentClass: {}
|
|
3479
3478
|
},
|
|
3480
3479
|
setup(r) {
|
|
3481
|
-
return (n, o) => n.question.isReadOnlyRenderDiv() ? (t(), u("div", Mo,
|
|
3480
|
+
return (n, o) => n.question.isReadOnlyRenderDiv() ? (t(), u("div", Mo, I(n.question.comment), 1)) : (t(), u("textarea", {
|
|
3482
3481
|
key: 1,
|
|
3483
3482
|
id: n.question.commentId,
|
|
3484
3483
|
readonly: n.question.isInputReadOnly,
|
|
@@ -3489,7 +3488,7 @@ const wo = /* @__PURE__ */ g({
|
|
|
3489
3488
|
placeholder: n.question.renderedCommentPlaceholder,
|
|
3490
3489
|
"aria-label": n.question.ariaLabel || n.question.a11y_input_ariaLabel,
|
|
3491
3490
|
"aria-required": n.question.ariaRequired || n.question.a11y_input_ariaRequired,
|
|
3492
|
-
style:
|
|
3491
|
+
style: w({ resize: n.question.resizeStyle }),
|
|
3493
3492
|
onChange: o[0] || (o[0] = (e) => {
|
|
3494
3493
|
n.question.onCommentChange(e);
|
|
3495
3494
|
}),
|
|
@@ -3556,19 +3555,19 @@ const wo = /* @__PURE__ */ g({
|
|
|
3556
3555
|
key: 1,
|
|
3557
3556
|
class: l(n.element.cssClasses.requiredText),
|
|
3558
3557
|
"aria-hidden": !0
|
|
3559
|
-
},
|
|
3558
|
+
}, I(n.element.requiredText), 3)) : d("", !0),
|
|
3560
3559
|
!n.element.isTitleRenderedAsString && n.element.no ? (t(), u("span", {
|
|
3561
3560
|
key: 2,
|
|
3562
3561
|
style: { position: "static" },
|
|
3563
3562
|
class: l(n.element.cssTitleNumber),
|
|
3564
3563
|
"aria-hidden": !0
|
|
3565
|
-
},
|
|
3564
|
+
}, I(n.element.no), 3)) : d("", !0),
|
|
3566
3565
|
!n.element.isTitleRenderedAsString && n.element.no ? (t(), u("span", Eo, "\xA0")) : d("", !0),
|
|
3567
3566
|
!n.element.isTitleRenderedAsString && n.element.isRequireTextBeforeTitle ? (t(), u("span", {
|
|
3568
3567
|
key: 4,
|
|
3569
3568
|
class: l(n.element.cssClasses.requiredText),
|
|
3570
3569
|
"aria-hidden": !0
|
|
3571
|
-
},
|
|
3570
|
+
}, I(n.element.requiredText), 3)) : d("", !0),
|
|
3572
3571
|
!n.element.isTitleRenderedAsString && n.element.isRequireTextBeforeTitle ? (t(), u("span", Wo, "\xA0")) : d("", !0),
|
|
3573
3572
|
n.element.isTitleRenderedAsString ? d("", !0) : (t(), y(e, {
|
|
3574
3573
|
key: 6,
|
|
@@ -3579,7 +3578,7 @@ const wo = /* @__PURE__ */ g({
|
|
|
3579
3578
|
key: 8,
|
|
3580
3579
|
class: l(n.element.cssClasses.requiredText),
|
|
3581
3580
|
"aria-hidden": !0
|
|
3582
|
-
},
|
|
3581
|
+
}, I(n.element.requiredText), 3)) : d("", !0)
|
|
3583
3582
|
]);
|
|
3584
3583
|
};
|
|
3585
3584
|
}
|
|
@@ -3590,7 +3589,7 @@ const wo = /* @__PURE__ */ g({
|
|
|
3590
3589
|
css: {}
|
|
3591
3590
|
},
|
|
3592
3591
|
setup(r) {
|
|
3593
|
-
const n = r, o =
|
|
3592
|
+
const n = r, o = R(() => n.element.getTitleToolbar());
|
|
3594
3593
|
return (e, s) => {
|
|
3595
3594
|
const i = q("survey-string"), a = q("survey-element-title-content"), c = q("sv-action-bar");
|
|
3596
3595
|
return t(), u("div", Oo, [
|
|
@@ -3633,7 +3632,7 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
3633
3632
|
},
|
|
3634
3633
|
setup(r) {
|
|
3635
3634
|
const n = r, o = $(), e = () => {
|
|
3636
|
-
|
|
3635
|
+
Te(
|
|
3637
3636
|
n.size,
|
|
3638
3637
|
n.width,
|
|
3639
3638
|
n.height,
|
|
@@ -3678,7 +3677,7 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
3678
3677
|
a.stopPropagation();
|
|
3679
3678
|
})
|
|
3680
3679
|
}, [
|
|
3681
|
-
(t(!0), u(
|
|
3680
|
+
(t(!0), u(S, null, B(e.model.renderedActions, (a) => (t(), y(i, {
|
|
3682
3681
|
key: a.id,
|
|
3683
3682
|
item: a
|
|
3684
3683
|
}, null, 8, ["item"]))), 128))
|
|
@@ -3691,7 +3690,7 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
3691
3690
|
item: {}
|
|
3692
3691
|
},
|
|
3693
3692
|
setup(r) {
|
|
3694
|
-
const n = r, o =
|
|
3693
|
+
const n = r, o = R(
|
|
3695
3694
|
() => n.item.component || "sv-action-bar-item"
|
|
3696
3695
|
);
|
|
3697
3696
|
return L(() => n.item), (e, s) => {
|
|
@@ -3719,8 +3718,8 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
3719
3718
|
return t(), u("button", {
|
|
3720
3719
|
class: l(o.item.getActionBarItemCss()),
|
|
3721
3720
|
type: "button",
|
|
3722
|
-
onClick: e[0] || (e[0] = () => {
|
|
3723
|
-
o.item.action();
|
|
3721
|
+
onClick: e[0] || (e[0] = (i) => {
|
|
3722
|
+
o.item.action(o.item, !!i.pointerType);
|
|
3724
3723
|
}),
|
|
3725
3724
|
onKeyup: e[1] || (e[1] = (i) => {
|
|
3726
3725
|
i.stopPropagation();
|
|
@@ -3742,7 +3741,7 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
3742
3741
|
o.item.hasTitle ? (t(), u("span", {
|
|
3743
3742
|
key: 1,
|
|
3744
3743
|
class: l(o.item.getActionBarItemTitleCss())
|
|
3745
|
-
},
|
|
3744
|
+
}, I(o.item.title), 3)) : d("", !0)
|
|
3746
3745
|
], 42, it);
|
|
3747
3746
|
};
|
|
3748
3747
|
}
|
|
@@ -3757,14 +3756,14 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
3757
3756
|
return L(
|
|
3758
3757
|
() => n.item,
|
|
3759
3758
|
(s) => {
|
|
3760
|
-
e = new
|
|
3759
|
+
e = new Re(s);
|
|
3761
3760
|
},
|
|
3762
3761
|
() => {
|
|
3763
3762
|
e.dispose();
|
|
3764
3763
|
}
|
|
3765
3764
|
), (s, i) => {
|
|
3766
3765
|
const a = q("sv-svg-icon"), c = q("sv-popup");
|
|
3767
|
-
return t(), u(
|
|
3766
|
+
return t(), u(S, null, [
|
|
3768
3767
|
p("button", {
|
|
3769
3768
|
type: "button",
|
|
3770
3769
|
class: l(s.item.getActionBarItemCss()),
|
|
@@ -3789,7 +3788,7 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
3789
3788
|
s.item.hasTitle ? (t(), u("span", {
|
|
3790
3789
|
key: 1,
|
|
3791
3790
|
class: l(s.item.getActionBarItemTitleCss())
|
|
3792
|
-
},
|
|
3791
|
+
}, I(s.item.title), 3)) : d("", !0)
|
|
3793
3792
|
], 42, rt),
|
|
3794
3793
|
C(c, {
|
|
3795
3794
|
model: s.item.popupModel,
|
|
@@ -3804,7 +3803,7 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
3804
3803
|
item: {}
|
|
3805
3804
|
},
|
|
3806
3805
|
setup(r) {
|
|
3807
|
-
const n = r, o =
|
|
3806
|
+
const n = r, o = R(() => n.item && n.item.innerCss);
|
|
3808
3807
|
return (e, s) => (t(), u("div", {
|
|
3809
3808
|
class: l(["sv-action-bar-separator", o.value])
|
|
3810
3809
|
}, null, 2));
|
|
@@ -3873,7 +3872,7 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
3873
3872
|
p("div", {
|
|
3874
3873
|
class: l(a.model.cssClasses.emptyText),
|
|
3875
3874
|
"aria-label": a.model.emptyMessage
|
|
3876
|
-
},
|
|
3875
|
+
}, I(a.model.emptyMessage), 11, mt)
|
|
3877
3876
|
], 2), [
|
|
3878
3877
|
[_, a.model.isEmpty]
|
|
3879
3878
|
]),
|
|
@@ -3890,7 +3889,7 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
3890
3889
|
a.model.onKeyDown(b);
|
|
3891
3890
|
})
|
|
3892
3891
|
}, [
|
|
3893
|
-
(t(!0), u(
|
|
3892
|
+
(t(!0), u(S, null, B(a.model.renderedActions, (b) => (t(), y(m, {
|
|
3894
3893
|
item: b,
|
|
3895
3894
|
model: a.model,
|
|
3896
3895
|
key: b.id
|
|
@@ -3901,14 +3900,14 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
3901
3900
|
], 2);
|
|
3902
3901
|
};
|
|
3903
3902
|
}
|
|
3904
|
-
}), vt = ["aria-selected", "id"], qt = /* @__PURE__ */ g({
|
|
3903
|
+
}), vt = ["aria-selected", "id"], qt = ["title"], yt = /* @__PURE__ */ g({
|
|
3905
3904
|
__name: "ListItem",
|
|
3906
3905
|
props: {
|
|
3907
3906
|
model: {},
|
|
3908
3907
|
item: {}
|
|
3909
3908
|
},
|
|
3910
3909
|
setup(r) {
|
|
3911
|
-
const n = r, o =
|
|
3910
|
+
const n = r, o = R(() => n.item.elementId), e = (s) => {
|
|
3912
3911
|
n.model.onItemClick(n.item), s.stopPropagation();
|
|
3913
3912
|
};
|
|
3914
3913
|
return L(() => n.item), A(() => {
|
|
@@ -3931,8 +3930,9 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
3931
3930
|
class: l(s.model.cssClasses.itemSeparator)
|
|
3932
3931
|
}, null, 2)) : d("", !0),
|
|
3933
3932
|
p("div", {
|
|
3934
|
-
style:
|
|
3935
|
-
class: l(s.model.cssClasses.itemBody)
|
|
3933
|
+
style: w({ paddingInlineStart: s.model.getItemIndent(s.item) }),
|
|
3934
|
+
class: l(s.model.cssClasses.itemBody),
|
|
3935
|
+
title: s.item.locTitle.calculatedText
|
|
3936
3936
|
}, [
|
|
3937
3937
|
s.item.iconName && !s.item.component ? (t(), y(a, {
|
|
3938
3938
|
key: 0,
|
|
@@ -3948,14 +3948,14 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
3948
3948
|
key: 2,
|
|
3949
3949
|
item: s.item
|
|
3950
3950
|
}, null, 8, ["item"])) : d("", !0)
|
|
3951
|
-
],
|
|
3951
|
+
], 14, qt)
|
|
3952
3952
|
], 10, vt)), [
|
|
3953
3953
|
[_, s.model.isItemVisible(s.item)],
|
|
3954
3954
|
[v]
|
|
3955
3955
|
]);
|
|
3956
3956
|
};
|
|
3957
3957
|
}
|
|
3958
|
-
}),
|
|
3958
|
+
}), gt = /* @__PURE__ */ g({
|
|
3959
3959
|
__name: "Popup",
|
|
3960
3960
|
props: {
|
|
3961
3961
|
getTarget: { type: Function },
|
|
@@ -3989,13 +3989,13 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
3989
3989
|
], 512);
|
|
3990
3990
|
};
|
|
3991
3991
|
}
|
|
3992
|
-
}),
|
|
3992
|
+
}), ht = { class: "sv-popup__shadow" }, Ct = { class: "sv-popup__body-content" }, bt = {
|
|
3993
3993
|
key: 0,
|
|
3994
3994
|
class: "sv-popup__body-header"
|
|
3995
|
-
},
|
|
3995
|
+
}, kt = { class: "sv-popup__scrolling-content" }, ft = { class: "sv-popup__content" }, It = {
|
|
3996
3996
|
key: 1,
|
|
3997
3997
|
class: "sv-popup__body-footer"
|
|
3998
|
-
},
|
|
3998
|
+
}, wt = /* @__PURE__ */ g({
|
|
3999
3999
|
__name: "PopupContainer",
|
|
4000
4000
|
props: {
|
|
4001
4001
|
model: {}
|
|
@@ -4023,7 +4023,7 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4023
4023
|
}, [
|
|
4024
4024
|
p("div", {
|
|
4025
4025
|
class: "sv-popup__container",
|
|
4026
|
-
style:
|
|
4026
|
+
style: w({
|
|
4027
4027
|
left: s.model.left,
|
|
4028
4028
|
top: s.model.top,
|
|
4029
4029
|
height: s.model.height,
|
|
@@ -4032,19 +4032,19 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4032
4032
|
}),
|
|
4033
4033
|
onClick: e
|
|
4034
4034
|
}, [
|
|
4035
|
-
p("div",
|
|
4035
|
+
p("div", ht, [
|
|
4036
4036
|
s.model.showHeader ? (t(), y(N(s.model.popupHeaderTemplate), {
|
|
4037
4037
|
key: 0,
|
|
4038
4038
|
model: s.model
|
|
4039
4039
|
}, null, 8, ["model"])) : d("", !0),
|
|
4040
|
-
p("div",
|
|
4041
|
-
s.model.title ? (t(), u("div",
|
|
4042
|
-
p("div",
|
|
4043
|
-
p("div",
|
|
4040
|
+
p("div", Ct, [
|
|
4041
|
+
s.model.title ? (t(), u("div", bt, I(s.model.title), 1)) : d("", !0),
|
|
4042
|
+
p("div", kt, [
|
|
4043
|
+
p("div", ft, [
|
|
4044
4044
|
(t(), y(N(s.model.contentComponentName), he(Ce(s.model.contentComponentData)), null, 16))
|
|
4045
4045
|
])
|
|
4046
4046
|
]),
|
|
4047
|
-
s.model.showFooter ? (t(), u("div",
|
|
4047
|
+
s.model.showFooter ? (t(), u("div", It, [
|
|
4048
4048
|
C(a, {
|
|
4049
4049
|
model: s.model.footerToolbar
|
|
4050
4050
|
}, null, 8, ["model"])
|
|
@@ -4057,7 +4057,7 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4057
4057
|
]);
|
|
4058
4058
|
};
|
|
4059
4059
|
}
|
|
4060
|
-
}),
|
|
4060
|
+
}), St = /* @__PURE__ */ g({
|
|
4061
4061
|
__name: "PopupPointer",
|
|
4062
4062
|
props: {
|
|
4063
4063
|
model: {}
|
|
@@ -4065,13 +4065,13 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4065
4065
|
setup(r) {
|
|
4066
4066
|
return (n, o) => (t(), u("span", {
|
|
4067
4067
|
class: "sv-popup__pointer",
|
|
4068
|
-
style:
|
|
4068
|
+
style: w({
|
|
4069
4069
|
left: n.model.pointerTarget.left,
|
|
4070
4070
|
top: n.model.pointerTarget.top
|
|
4071
4071
|
})
|
|
4072
4072
|
}, null, 4));
|
|
4073
4073
|
}
|
|
4074
|
-
}),
|
|
4074
|
+
}), Tt = {
|
|
4075
4075
|
key: 0,
|
|
4076
4076
|
class: "sv-components-column"
|
|
4077
4077
|
}, Rt = /* @__PURE__ */ g({
|
|
@@ -4082,17 +4082,17 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4082
4082
|
needRenderWrapper: {}
|
|
4083
4083
|
},
|
|
4084
4084
|
setup(r) {
|
|
4085
|
-
const n = r, o =
|
|
4085
|
+
const n = r, o = R(
|
|
4086
4086
|
() => n.survey.getContainerContent(n.container)
|
|
4087
4087
|
);
|
|
4088
|
-
return (e, s) => o.value.length > 0 ? (t(), u(
|
|
4089
|
-
e.needRenderWrapper ? (t(), u("div",
|
|
4090
|
-
(t(!0), u(
|
|
4088
|
+
return (e, s) => o.value.length > 0 ? (t(), u(S, { key: 0 }, [
|
|
4089
|
+
e.needRenderWrapper ? (t(), u("div", Tt, [
|
|
4090
|
+
(t(!0), u(S, null, B(o.value, (i, a) => (t(), y(N(i.component), {
|
|
4091
4091
|
survey: e.survey,
|
|
4092
4092
|
container: e.container,
|
|
4093
4093
|
model: i.data
|
|
4094
4094
|
}, null, 8, ["survey", "container", "model"]))), 256))
|
|
4095
|
-
])) : (t(!0), u(
|
|
4095
|
+
])) : (t(!0), u(S, { key: 1 }, B(o.value, (i, a) => (t(), y(N(i.component), {
|
|
4096
4096
|
survey: e.survey,
|
|
4097
4097
|
model: i.data
|
|
4098
4098
|
}, null, 8, ["survey", "model"]))), 256))
|
|
@@ -4106,13 +4106,13 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4106
4106
|
css: {}
|
|
4107
4107
|
},
|
|
4108
4108
|
setup(r) {
|
|
4109
|
-
const n = r, o =
|
|
4109
|
+
const n = r, o = R(() => n.survey.progressValue + "%"), e = (i) => ie.getProgressTextInBarCss(i), s = (i) => ie.getProgressTextUnderBarCss(i);
|
|
4110
4110
|
return (i, a) => (t(), u("div", {
|
|
4111
4111
|
class: l(i.survey.getProgressCssClasses(i.container))
|
|
4112
4112
|
}, [
|
|
4113
4113
|
p("div", {
|
|
4114
4114
|
class: l(i.survey.css.progressBar),
|
|
4115
|
-
style:
|
|
4115
|
+
style: w({ width: o.value }),
|
|
4116
4116
|
role: "progressbar",
|
|
4117
4117
|
"aria-valuemin": "0",
|
|
4118
4118
|
"aria-valuemax": "100",
|
|
@@ -4120,24 +4120,24 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4120
4120
|
}, [
|
|
4121
4121
|
p("span", {
|
|
4122
4122
|
class: l(e(i.survey.css))
|
|
4123
|
-
},
|
|
4123
|
+
}, I(i.survey.progressText), 3)
|
|
4124
4124
|
], 6),
|
|
4125
4125
|
p("span", {
|
|
4126
4126
|
class: l(s(i.survey.css))
|
|
4127
|
-
},
|
|
4127
|
+
}, I(i.survey.progressText), 3)
|
|
4128
4128
|
], 2));
|
|
4129
4129
|
}
|
|
4130
|
-
}),
|
|
4130
|
+
}), $t = ["onClick"], Bt = ["title"], Lt = ["title"], Dt = /* @__PURE__ */ g({
|
|
4131
4131
|
__name: "ProgressButtons",
|
|
4132
4132
|
props: {
|
|
4133
4133
|
survey: {}
|
|
4134
4134
|
},
|
|
4135
4135
|
setup(r) {
|
|
4136
|
-
const n = r, o = new Be(n.survey), e = $(!1), s = $(), i =
|
|
4136
|
+
const n = r, o = new Be(n.survey), e = $(!1), s = $(), i = R(() => n.survey.css);
|
|
4137
4137
|
let a;
|
|
4138
4138
|
const c = (f) => o.isListElementClickable(f), v = (f) => o.getListElementCss(f), m = (f) => {
|
|
4139
4139
|
o.clickListElement(f);
|
|
4140
|
-
}, b = (f, M) => o.getScrollButtonCss(f, M),
|
|
4140
|
+
}, b = (f, M) => o.getScrollButtonCss(f, M), T = (f) => {
|
|
4141
4141
|
let M = s.value;
|
|
4142
4142
|
M.scrollLeft += (f ? -1 : 1) * 70;
|
|
4143
4143
|
};
|
|
@@ -4156,7 +4156,7 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4156
4156
|
}, [
|
|
4157
4157
|
p("div", {
|
|
4158
4158
|
class: l(b(e.value, !0)),
|
|
4159
|
-
onClick: M[0] || (M[0] = (h) =>
|
|
4159
|
+
onClick: M[0] || (M[0] = (h) => T(!0)),
|
|
4160
4160
|
role: "button"
|
|
4161
4161
|
}, null, 2),
|
|
4162
4162
|
p("div", {
|
|
@@ -4167,7 +4167,7 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4167
4167
|
p("ul", {
|
|
4168
4168
|
class: l(i.value.progressButtonsList)
|
|
4169
4169
|
}, [
|
|
4170
|
-
(t(!0), u(
|
|
4170
|
+
(t(!0), u(S, null, B(f.survey.visiblePages, (h, D) => (t(), u("li", {
|
|
4171
4171
|
key: "listelement" + D,
|
|
4172
4172
|
class: l(v(D)),
|
|
4173
4173
|
onClick: (E) => c(D) ? m(D) : null
|
|
@@ -4175,23 +4175,23 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4175
4175
|
p("div", {
|
|
4176
4176
|
class: l(i.value.progressButtonsPageTitle),
|
|
4177
4177
|
title: h.renderedNavigationTitle
|
|
4178
|
-
},
|
|
4178
|
+
}, I(h.renderedNavigationTitle), 11, Bt),
|
|
4179
4179
|
p("div", {
|
|
4180
4180
|
class: l(i.value.progressButtonsPageDescription),
|
|
4181
4181
|
title: h.locNavigationDescription.renderedHtml
|
|
4182
|
-
},
|
|
4183
|
-
], 10,
|
|
4182
|
+
}, I(h.locNavigationDescription.renderedHtml), 11, Lt)
|
|
4183
|
+
], 10, $t))), 128))
|
|
4184
4184
|
], 2)
|
|
4185
4185
|
], 2),
|
|
4186
4186
|
p("div", {
|
|
4187
4187
|
class: l(b(e.value, !1)),
|
|
4188
|
-
onClick: M[1] || (M[1] = (h) =>
|
|
4188
|
+
onClick: M[1] || (M[1] = (h) => T(!1)),
|
|
4189
4189
|
role: "button"
|
|
4190
4190
|
}, null, 2)
|
|
4191
4191
|
], 2)
|
|
4192
4192
|
], 2));
|
|
4193
4193
|
}
|
|
4194
|
-
}),
|
|
4194
|
+
}), Pt = /* @__PURE__ */ g({
|
|
4195
4195
|
__name: "ProgressToc",
|
|
4196
4196
|
props: {
|
|
4197
4197
|
survey: {}
|
|
@@ -4223,25 +4223,25 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4223
4223
|
], 2);
|
|
4224
4224
|
};
|
|
4225
4225
|
}
|
|
4226
|
-
}),
|
|
4226
|
+
}), Mt = { onsubmit: "return false;" }, Nt = {
|
|
4227
4227
|
key: 0,
|
|
4228
4228
|
class: "sv_custom_header"
|
|
4229
|
-
},
|
|
4229
|
+
}, Ht = ["id"], _t = { key: 2 }, At = ["innerHTML"], Et = ["innerHTML"], Wt = ["innerHTML"], re = /* @__PURE__ */ g({
|
|
4230
4230
|
__name: "Survey",
|
|
4231
4231
|
props: {
|
|
4232
4232
|
model: {},
|
|
4233
4233
|
survey: {}
|
|
4234
4234
|
},
|
|
4235
4235
|
setup(r) {
|
|
4236
|
-
const n = r, o = $(), e = $(""), s = $(1), i =
|
|
4236
|
+
const n = r, o = $(), e = $(""), s = $(1), i = R(() => {
|
|
4237
4237
|
const f = n.survey ? n.survey : n.model;
|
|
4238
4238
|
return be(f);
|
|
4239
|
-
}), a =
|
|
4239
|
+
}), a = R(() => i.value.activePage ? i.value.activePage.id : ""), c = () => {
|
|
4240
4240
|
const f = a.value;
|
|
4241
4241
|
return !!i.value && f + s.value.toString();
|
|
4242
|
-
}, v =
|
|
4242
|
+
}, v = R(
|
|
4243
4243
|
() => i.value.showCompletedPage && i.value.state === "completed"
|
|
4244
|
-
), m =
|
|
4244
|
+
), m = R(() => i.value.css), b = R(() => "page" + c()), T = () => v.value ? (e.value || (e.value = i.value.processedCompletedHtml), e.value) : "";
|
|
4245
4245
|
return L(() => i.value), A(() => {
|
|
4246
4246
|
if (!!i.value) {
|
|
4247
4247
|
i.value.needRenderIcons && De.renderIcons();
|
|
@@ -4257,7 +4257,7 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4257
4257
|
const h = q("survey-popup-modal"), D = q("survey-header"), E = q("survey-page"), V = q("sv-brand-info"), G = q("sv-notifier");
|
|
4258
4258
|
return t(), u("div", {
|
|
4259
4259
|
class: l(i.value.getRootCss()),
|
|
4260
|
-
style:
|
|
4260
|
+
style: w(i.value.themeVariables),
|
|
4261
4261
|
ref_key: "root",
|
|
4262
4262
|
ref: o
|
|
4263
4263
|
}, [
|
|
@@ -4268,10 +4268,10 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4268
4268
|
i.value.renderBackgroundImage ? (t(), u("div", {
|
|
4269
4269
|
key: 0,
|
|
4270
4270
|
class: l(m.value.rootBackgroundImage),
|
|
4271
|
-
style:
|
|
4271
|
+
style: w(i.value.backgroundImageStyle)
|
|
4272
4272
|
}, null, 6)) : d("", !0),
|
|
4273
|
-
p("form",
|
|
4274
|
-
i.value.hasLogo ? d("", !0) : (t(), u("div",
|
|
4273
|
+
p("form", Mt, [
|
|
4274
|
+
i.value.hasLogo ? d("", !0) : (t(), u("div", Nt)),
|
|
4275
4275
|
p("div", {
|
|
4276
4276
|
class: l(m.value.container)
|
|
4277
4277
|
}, [
|
|
@@ -4295,7 +4295,7 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4295
4295
|
}, null, 8, ["survey"])),
|
|
4296
4296
|
p("div", {
|
|
4297
4297
|
class: l(i.value.bodyCss),
|
|
4298
|
-
style:
|
|
4298
|
+
style: w({ maxWidth: i.value.renderedWidth }),
|
|
4299
4299
|
id: a.value
|
|
4300
4300
|
}, [
|
|
4301
4301
|
(t(), y(N("sv-components-container"), {
|
|
@@ -4314,7 +4314,7 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4314
4314
|
container: "contentBottom",
|
|
4315
4315
|
needRenderWrapper: !0
|
|
4316
4316
|
}, null, 8, ["survey"]))
|
|
4317
|
-
], 14,
|
|
4317
|
+
], 14, Ht),
|
|
4318
4318
|
(t(), y(N("sv-components-container"), {
|
|
4319
4319
|
survey: i.value,
|
|
4320
4320
|
container: "right",
|
|
@@ -4326,11 +4326,11 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4326
4326
|
container: "footer",
|
|
4327
4327
|
needRenderWrapper: !1
|
|
4328
4328
|
}, null, 8, ["survey"])),
|
|
4329
|
-
v.value ? (t(), u("div",
|
|
4329
|
+
v.value ? (t(), u("div", _t, [
|
|
4330
4330
|
p("div", {
|
|
4331
|
-
innerHTML:
|
|
4331
|
+
innerHTML: T(),
|
|
4332
4332
|
class: l(i.value.completedCss)
|
|
4333
|
-
}, null, 10,
|
|
4333
|
+
}, null, 10, At),
|
|
4334
4334
|
(t(), y(N("sv-components-container"), {
|
|
4335
4335
|
survey: i.value,
|
|
4336
4336
|
container: "completePage",
|
|
@@ -4341,16 +4341,16 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4341
4341
|
key: 3,
|
|
4342
4342
|
class: l(i.value.completedBeforeCss),
|
|
4343
4343
|
innerHTML: i.value.processedCompletedBeforeHtml
|
|
4344
|
-
}, null, 10,
|
|
4344
|
+
}, null, 10, Et)) : d("", !0),
|
|
4345
4345
|
i.value.state === "loading" ? (t(), u("div", {
|
|
4346
4346
|
key: 4,
|
|
4347
4347
|
class: l(i.value.loadingBodyCss),
|
|
4348
4348
|
innerHTML: i.value.processedLoadingHtml
|
|
4349
|
-
}, null, 10,
|
|
4349
|
+
}, null, 10, Wt)) : d("", !0),
|
|
4350
4350
|
i.value.state === "empty" ? (t(), u("div", {
|
|
4351
4351
|
key: 5,
|
|
4352
4352
|
class: l(m.value.bodyEmpty)
|
|
4353
|
-
},
|
|
4353
|
+
}, I(i.value.emptySurveyText), 3)) : d("", !0)
|
|
4354
4354
|
], 2)
|
|
4355
4355
|
]),
|
|
4356
4356
|
i.value.showBrandInfo ? (t(), y(V, { key: 1 })) : d("", !0),
|
|
@@ -4361,7 +4361,7 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4361
4361
|
], 6);
|
|
4362
4362
|
};
|
|
4363
4363
|
}
|
|
4364
|
-
}),
|
|
4364
|
+
}), Vt = /* @__PURE__ */ g({
|
|
4365
4365
|
__name: "Notifier",
|
|
4366
4366
|
props: {
|
|
4367
4367
|
model: {}
|
|
@@ -4372,11 +4372,11 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4372
4372
|
const s = q("sv-action-bar");
|
|
4373
4373
|
return P((t(), u("div", {
|
|
4374
4374
|
class: l(o.model.css),
|
|
4375
|
-
style:
|
|
4375
|
+
style: w({ visibility: o.model.active ? "visible" : "hidden" }),
|
|
4376
4376
|
role: "alert",
|
|
4377
4377
|
"aria-live": "polite"
|
|
4378
4378
|
}, [
|
|
4379
|
-
p("span", null,
|
|
4379
|
+
p("span", null, I(o.model.message), 1),
|
|
4380
4380
|
C(s, {
|
|
4381
4381
|
model: o.model.actionBar
|
|
4382
4382
|
}, null, 8, ["model"])
|
|
@@ -4385,7 +4385,7 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4385
4385
|
]);
|
|
4386
4386
|
};
|
|
4387
4387
|
}
|
|
4388
|
-
}),
|
|
4388
|
+
}), Ft = ["id", "readonly", "disabled", "value", "maxlength", "placeholder", "aria-label", "aria-required"], Ot = { key: 1 }, zt = /* @__PURE__ */ g({
|
|
4389
4389
|
__name: "QuestionOther",
|
|
4390
4390
|
props: {
|
|
4391
4391
|
question: {},
|
|
@@ -4406,18 +4406,18 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4406
4406
|
placeholder: n.question.otherPlaceholder,
|
|
4407
4407
|
"aria-label": n.question.ariaLabel || n.question.a11y_input_ariaLabel,
|
|
4408
4408
|
"aria-required": n.question.ariaRequired || n.question.a11y_input_ariaRequired,
|
|
4409
|
-
style:
|
|
4409
|
+
style: w({ resize: n.question.resizeStyle }),
|
|
4410
4410
|
onChange: o[0] || (o[0] = (e) => {
|
|
4411
4411
|
n.question.onOtherValueChange(e);
|
|
4412
4412
|
}),
|
|
4413
4413
|
onInput: o[1] || (o[1] = (e) => {
|
|
4414
4414
|
n.question.onOtherValueInput(e);
|
|
4415
4415
|
})
|
|
4416
|
-
}, null, 46,
|
|
4417
|
-
n.question.isReadOnlyRenderDiv() ? (t(), u("div",
|
|
4416
|
+
}, null, 46, Ft)),
|
|
4417
|
+
n.question.isReadOnlyRenderDiv() ? (t(), u("div", Ot, I(n.question.otherValue), 1)) : d("", !0)
|
|
4418
4418
|
], 2));
|
|
4419
4419
|
}
|
|
4420
|
-
}),
|
|
4420
|
+
}), Ut = ["disabled", "value", "title"], Kt = /* @__PURE__ */ g({
|
|
4421
4421
|
__name: "SurveyNavigationButton",
|
|
4422
4422
|
props: {
|
|
4423
4423
|
item: {}
|
|
@@ -4433,7 +4433,7 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4433
4433
|
title: e.item.getTooltip(),
|
|
4434
4434
|
onMousedown: o,
|
|
4435
4435
|
onClick: s[0] || (s[0] = (...i) => e.item.action && e.item.action(...i))
|
|
4436
|
-
}, null, 42,
|
|
4436
|
+
}, null, 42, Ut)) : d("", !0);
|
|
4437
4437
|
}
|
|
4438
4438
|
}), ae = /* @__PURE__ */ g({
|
|
4439
4439
|
__name: "PopupSurvey",
|
|
@@ -4443,12 +4443,12 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4443
4443
|
closeOnCompleteTimeout: {}
|
|
4444
4444
|
},
|
|
4445
4445
|
setup(r) {
|
|
4446
|
-
const n = r, o = O(), e =
|
|
4447
|
-
var
|
|
4448
|
-
return (
|
|
4449
|
-
}), i =
|
|
4450
|
-
var
|
|
4451
|
-
return (
|
|
4446
|
+
const n = r, o = O(), e = R(() => n.survey ? n.survey.getCss() : {}), s = R(() => {
|
|
4447
|
+
var T;
|
|
4448
|
+
return (T = o.value) != null && T.isExpanded ? e.value.window.header.buttonCollapsed : e.value.window.header.buttonExpanded;
|
|
4449
|
+
}), i = R(() => {
|
|
4450
|
+
var T;
|
|
4451
|
+
return (T = o.value) == null ? void 0 : T.isExpanded;
|
|
4452
4452
|
}), a = () => {
|
|
4453
4453
|
o.value.changeExpandCollapse();
|
|
4454
4454
|
}, c = () => {
|
|
@@ -4459,8 +4459,8 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4459
4459
|
L(() => o.value);
|
|
4460
4460
|
const b = K(
|
|
4461
4461
|
() => n.survey,
|
|
4462
|
-
(
|
|
4463
|
-
const f = new Pe(null,
|
|
4462
|
+
(T) => {
|
|
4463
|
+
const f = new Pe(null, T);
|
|
4464
4464
|
n.isExpanded !== void 0 && (f.isExpanded = n.isExpanded), n.closeOnCompleteTimeout !== void 0 && (f.closeOnCompleteTimeout = n.closeOnCompleteTimeout), f.isShowing = !0, o.value = f;
|
|
4465
4465
|
},
|
|
4466
4466
|
{
|
|
@@ -4469,11 +4469,11 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4469
4469
|
);
|
|
4470
4470
|
return W(() => {
|
|
4471
4471
|
b();
|
|
4472
|
-
}), (
|
|
4472
|
+
}), (T, f) => {
|
|
4473
4473
|
const M = q("survey-string"), h = q("sv-svg-icon");
|
|
4474
4474
|
return o.value.isShowing ? (t(), u("div", {
|
|
4475
4475
|
key: 0,
|
|
4476
|
-
style:
|
|
4476
|
+
style: w([{ position: "fixed", bottom: "3px", right: "10px" }, {
|
|
4477
4477
|
maxWidth: o.value.renderedWidth,
|
|
4478
4478
|
width: o.value.renderedWidth
|
|
4479
4479
|
}]),
|
|
@@ -4491,7 +4491,7 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4491
4491
|
class: l(o.value.cssHeaderTitle)
|
|
4492
4492
|
}, [
|
|
4493
4493
|
C(M, {
|
|
4494
|
-
locString:
|
|
4494
|
+
locString: T.survey.locTitle
|
|
4495
4495
|
}, null, 8, ["locString"])
|
|
4496
4496
|
], 2),
|
|
4497
4497
|
p("span", {
|
|
@@ -4527,23 +4527,23 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4527
4527
|
class: l(o.value.cssBody),
|
|
4528
4528
|
onScroll: m
|
|
4529
4529
|
}, [
|
|
4530
|
-
(t(), y(N(v()), { survey:
|
|
4530
|
+
(t(), y(N(v()), { survey: T.survey }, null, 8, ["survey"]))
|
|
4531
4531
|
], 34)) : d("", !0)
|
|
4532
4532
|
], 6)) : d("", !0);
|
|
4533
4533
|
};
|
|
4534
4534
|
}
|
|
4535
|
-
}),
|
|
4535
|
+
}), jt = ["innerHTML"], Qt = /* @__PURE__ */ g({
|
|
4536
4536
|
__name: "CustomWidget",
|
|
4537
4537
|
props: {
|
|
4538
4538
|
question: {},
|
|
4539
4539
|
css: {}
|
|
4540
4540
|
},
|
|
4541
4541
|
setup(r) {
|
|
4542
|
-
const n = r, o = $(), e =
|
|
4542
|
+
const n = r, o = $(), e = R(
|
|
4543
4543
|
() => n.question.customWidget.isDefaultRender
|
|
4544
|
-
), s =
|
|
4544
|
+
), s = R(
|
|
4545
4545
|
() => !!n.question.customWidget.htmlTemplate
|
|
4546
|
-
), i =
|
|
4546
|
+
), i = R(() => n.question.customWidget.htmlTemplate), a = R(() => "survey-" + n.question.getTemplate());
|
|
4547
4547
|
return A(() => {
|
|
4548
4548
|
n.question.customWidget.afterRender(n.question, o.value);
|
|
4549
4549
|
}), j(() => {
|
|
@@ -4555,7 +4555,7 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4555
4555
|
s.value ? (t(), u("div", {
|
|
4556
4556
|
key: 0,
|
|
4557
4557
|
innerHTML: i.value
|
|
4558
|
-
}, null, 8,
|
|
4558
|
+
}, null, 8, jt)) : d("", !0),
|
|
4559
4559
|
e.value ? (t(), y(N(a.value), {
|
|
4560
4560
|
key: 1,
|
|
4561
4561
|
question: c.question,
|
|
@@ -4563,12 +4563,12 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4563
4563
|
}, null, 8, ["question", "css"])) : d("", !0)
|
|
4564
4564
|
], 512));
|
|
4565
4565
|
}
|
|
4566
|
-
}),
|
|
4566
|
+
}), Gt = /* @__PURE__ */ g({
|
|
4567
4567
|
__name: "PopupModal",
|
|
4568
4568
|
setup(r) {
|
|
4569
4569
|
const n = O();
|
|
4570
4570
|
function o(s, i, a, c, v, m, b = "popup") {
|
|
4571
|
-
const
|
|
4571
|
+
const T = Me(
|
|
4572
4572
|
s,
|
|
4573
4573
|
i,
|
|
4574
4574
|
a,
|
|
@@ -4579,7 +4579,7 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4579
4579
|
m,
|
|
4580
4580
|
b
|
|
4581
4581
|
);
|
|
4582
|
-
return e(
|
|
4582
|
+
return e(T);
|
|
4583
4583
|
}
|
|
4584
4584
|
function e(s, i) {
|
|
4585
4585
|
s.onHide = () => {
|
|
@@ -4605,7 +4605,7 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4605
4605
|
], 8, ["to"])) : d("", !0);
|
|
4606
4606
|
};
|
|
4607
4607
|
}
|
|
4608
|
-
}),
|
|
4608
|
+
}), Xt = /* @__PURE__ */ g({
|
|
4609
4609
|
__name: "CharacterCounter",
|
|
4610
4610
|
props: {
|
|
4611
4611
|
counter: {},
|
|
@@ -4615,9 +4615,9 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4615
4615
|
const n = r;
|
|
4616
4616
|
return L(() => n.counter), (o, e) => (t(), u("div", {
|
|
4617
4617
|
class: l(o.remainingCharacterCounter)
|
|
4618
|
-
},
|
|
4618
|
+
}, I(o.counter.remainingCharacterCounter), 3));
|
|
4619
4619
|
}
|
|
4620
|
-
}),
|
|
4620
|
+
}), Jt = /* @__PURE__ */ g({
|
|
4621
4621
|
__name: "Composite",
|
|
4622
4622
|
props: {
|
|
4623
4623
|
question: {},
|
|
@@ -4626,7 +4626,7 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4626
4626
|
setup(r) {
|
|
4627
4627
|
const n = r, o = $(null);
|
|
4628
4628
|
H(n, o);
|
|
4629
|
-
const e =
|
|
4629
|
+
const e = R(() => n.question.contentPanel);
|
|
4630
4630
|
return (s, i) => {
|
|
4631
4631
|
const a = q("survey-panel");
|
|
4632
4632
|
return t(), y(a, {
|
|
@@ -4637,7 +4637,7 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4637
4637
|
}, null, 8, ["question", "css"]);
|
|
4638
4638
|
};
|
|
4639
4639
|
}
|
|
4640
|
-
}),
|
|
4640
|
+
}), Yt = /* @__PURE__ */ g({
|
|
4641
4641
|
__name: "Custom",
|
|
4642
4642
|
props: {
|
|
4643
4643
|
question: {},
|
|
@@ -4646,23 +4646,23 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4646
4646
|
setup(r) {
|
|
4647
4647
|
const n = r, o = $(null);
|
|
4648
4648
|
H(n, o);
|
|
4649
|
-
const e =
|
|
4649
|
+
const e = R(() => n.question.contentQuestion), s = (i) => se(i);
|
|
4650
4650
|
return (i, a) => (t(), y(N(s(e.value)), {
|
|
4651
4651
|
ref: o.value,
|
|
4652
4652
|
question: e.value,
|
|
4653
4653
|
css: i.css
|
|
4654
4654
|
}, null, 8, ["question", "css"]));
|
|
4655
4655
|
}
|
|
4656
|
-
}),
|
|
4657
|
-
|
|
4658
|
-
], ue = 440,
|
|
4656
|
+
}), Zt = /* @__PURE__ */ p("use", { "xlink:href": "#icon-timercircle" }, null, -1), xt = [
|
|
4657
|
+
Zt
|
|
4658
|
+
], ue = 440, ei = /* @__PURE__ */ g({
|
|
4659
4659
|
__name: "TimerPanel",
|
|
4660
4660
|
props: {
|
|
4661
4661
|
model: {},
|
|
4662
4662
|
css: {}
|
|
4663
4663
|
},
|
|
4664
4664
|
setup(r) {
|
|
4665
|
-
const n = r, o =
|
|
4665
|
+
const n = r, o = R(() => ue * n.model.progress), e = R(() => n.model.text);
|
|
4666
4666
|
return L(() => n.model), (s, i) => s.model.isRunning && s.model.showTimerAsClock ? (t(), u("div", {
|
|
4667
4667
|
key: 0,
|
|
4668
4668
|
class: l(s.model.rootCss)
|
|
@@ -4670,37 +4670,37 @@ const Jo = /* @__PURE__ */ me(Ko, [["render", Xo]]), Yo = ["aria-label"], Zo = /
|
|
|
4670
4670
|
s.model.showProgress ? (t(), u("svg", {
|
|
4671
4671
|
key: 0,
|
|
4672
4672
|
class: l(s.model.getProgressCss()),
|
|
4673
|
-
style:
|
|
4674
|
-
},
|
|
4673
|
+
style: w({ strokeDasharray: ue, strokeDashoffset: o.value })
|
|
4674
|
+
}, xt, 6)) : d("", !0),
|
|
4675
4675
|
p("div", {
|
|
4676
4676
|
class: l(s.model.textContainerCss)
|
|
4677
4677
|
}, [
|
|
4678
4678
|
p("span", {
|
|
4679
4679
|
class: l(s.model.majorTextCss)
|
|
4680
|
-
},
|
|
4680
|
+
}, I(s.model.clockMajorText), 3),
|
|
4681
4681
|
s.model.clockMinorText ? (t(), u("span", {
|
|
4682
4682
|
key: 0,
|
|
4683
4683
|
class: l(s.model.minorTextCss)
|
|
4684
|
-
},
|
|
4684
|
+
}, I(s.model.clockMinorText), 3)) : d("", !0)
|
|
4685
4685
|
], 2)
|
|
4686
4686
|
], 2)) : P((t(), u("div", {
|
|
4687
4687
|
key: 1,
|
|
4688
4688
|
class: l(s.model.survey.getCss().timerRoot)
|
|
4689
|
-
},
|
|
4689
|
+
}, I(e.value), 3)), [
|
|
4690
4690
|
[_, s.model.isRunning && !s.model.showTimerAsClock]
|
|
4691
4691
|
]);
|
|
4692
4692
|
}
|
|
4693
|
-
}),
|
|
4694
|
-
function
|
|
4693
|
+
}), si = {}, ni = { class: "sd-loading-indicator" };
|
|
4694
|
+
function oi(r, n) {
|
|
4695
4695
|
const o = q("sv-svg-icon");
|
|
4696
|
-
return t(), u("div",
|
|
4696
|
+
return t(), u("div", ni, [
|
|
4697
4697
|
C(o, {
|
|
4698
4698
|
iconName: "icon-loading",
|
|
4699
4699
|
size: "'auto'"
|
|
4700
4700
|
})
|
|
4701
4701
|
]);
|
|
4702
4702
|
}
|
|
4703
|
-
const
|
|
4703
|
+
const ti = /* @__PURE__ */ me(si, [["render", oi]]), ii = { key: 2 }, li = /* @__PURE__ */ g({
|
|
4704
4704
|
__name: "Header",
|
|
4705
4705
|
props: {
|
|
4706
4706
|
model: {},
|
|
@@ -4712,30 +4712,30 @@ const oi = /* @__PURE__ */ me(ei, [["render", ni]]), ti = { key: 2 }, ii = /* @_
|
|
|
4712
4712
|
const s = q("sv-header-cell"), i = q("sv-header-mobile");
|
|
4713
4713
|
return t(), u("div", {
|
|
4714
4714
|
class: l(o.model.headerClasses),
|
|
4715
|
-
style:
|
|
4715
|
+
style: w({ height: o.model.renderedHeight })
|
|
4716
4716
|
}, [
|
|
4717
4717
|
o.model.backgroundImage ? (t(), u("div", {
|
|
4718
4718
|
key: 0,
|
|
4719
4719
|
class: l(o.model.backgroundImageClasses),
|
|
4720
|
-
style:
|
|
4720
|
+
style: w(o.model.backgroundImageStyle)
|
|
4721
4721
|
}, null, 6)) : d("", !0),
|
|
4722
4722
|
o.survey.isMobile ? d("", !0) : (t(), u("div", {
|
|
4723
4723
|
key: 1,
|
|
4724
4724
|
class: l(o.model.contentClasses),
|
|
4725
|
-
style:
|
|
4725
|
+
style: w({ maxWidth: o.model.maxWidth })
|
|
4726
4726
|
}, [
|
|
4727
|
-
(t(!0), u(
|
|
4727
|
+
(t(!0), u(S, null, B(o.model.cells, (a) => (t(), y(s, { model: a }, null, 8, ["model"]))), 256))
|
|
4728
4728
|
], 6)),
|
|
4729
|
-
o.survey.isMobile ? (t(), u("div",
|
|
4729
|
+
o.survey.isMobile ? (t(), u("div", ii, [
|
|
4730
4730
|
C(i, { model: o.model }, null, 8, ["model"])
|
|
4731
4731
|
])) : d("", !0)
|
|
4732
4732
|
], 6);
|
|
4733
4733
|
};
|
|
4734
4734
|
}
|
|
4735
|
-
}),
|
|
4735
|
+
}), ri = {
|
|
4736
4736
|
key: 0,
|
|
4737
4737
|
class: "sv-header__logo"
|
|
4738
|
-
},
|
|
4738
|
+
}, ai = ["src", "width", "height", "alt"], ui = /* @__PURE__ */ g({
|
|
4739
4739
|
__name: "HeaderCell",
|
|
4740
4740
|
props: {
|
|
4741
4741
|
model: {}
|
|
@@ -4745,13 +4745,13 @@ const oi = /* @__PURE__ */ me(ei, [["render", ni]]), ti = { key: 2 }, ii = /* @_
|
|
|
4745
4745
|
const e = q("survey-element-title"), s = q("survey-string");
|
|
4746
4746
|
return t(), u("div", {
|
|
4747
4747
|
class: l(n.model.css),
|
|
4748
|
-
style:
|
|
4748
|
+
style: w(n.model.style)
|
|
4749
4749
|
}, [
|
|
4750
4750
|
p("div", {
|
|
4751
4751
|
class: "sv-header__cell-content",
|
|
4752
|
-
style:
|
|
4752
|
+
style: w(n.model.contentStyle)
|
|
4753
4753
|
}, [
|
|
4754
|
-
n.model.showLogo ? (t(), u("div",
|
|
4754
|
+
n.model.showLogo ? (t(), u("div", ri, [
|
|
4755
4755
|
p("div", {
|
|
4756
4756
|
class: l(n.model.survey.logoClassNames)
|
|
4757
4757
|
}, [
|
|
@@ -4761,14 +4761,14 @@ const oi = /* @__PURE__ */ me(ei, [["render", ni]]), ti = { key: 2 }, ii = /* @_
|
|
|
4761
4761
|
width: n.model.survey.renderedLogoWidth,
|
|
4762
4762
|
height: n.model.survey.renderedLogoHeight,
|
|
4763
4763
|
alt: n.model.survey.locTitle.renderedHtml,
|
|
4764
|
-
style:
|
|
4765
|
-
}, null, 14,
|
|
4764
|
+
style: w({ objectFit: n.model.survey.logoFit, width: n.model.survey.renderedStyleLogoWidth, height: n.model.survey.renderedStyleLogoHeight })
|
|
4765
|
+
}, null, 14, ai)
|
|
4766
4766
|
], 2)
|
|
4767
4767
|
])) : d("", !0),
|
|
4768
4768
|
n.model.showTitle ? (t(), u("div", {
|
|
4769
4769
|
key: 1,
|
|
4770
4770
|
class: "sv-header__title",
|
|
4771
|
-
style:
|
|
4771
|
+
style: w({ maxWidth: n.model.textAreaWidth })
|
|
4772
4772
|
}, [
|
|
4773
4773
|
C(e, {
|
|
4774
4774
|
element: n.model.survey,
|
|
@@ -4778,7 +4778,7 @@ const oi = /* @__PURE__ */ me(ei, [["render", ni]]), ti = { key: 2 }, ii = /* @_
|
|
|
4778
4778
|
n.model.showDescription ? (t(), u("div", {
|
|
4779
4779
|
key: 2,
|
|
4780
4780
|
class: "sv-header__description",
|
|
4781
|
-
style:
|
|
4781
|
+
style: w({ maxWidth: n.model.textAreaWidth })
|
|
4782
4782
|
}, [
|
|
4783
4783
|
n.model.survey.renderedHasDescription ? (t(), u("h5", {
|
|
4784
4784
|
key: 0,
|
|
@@ -4793,10 +4793,10 @@ const oi = /* @__PURE__ */ me(ei, [["render", ni]]), ti = { key: 2 }, ii = /* @_
|
|
|
4793
4793
|
], 6);
|
|
4794
4794
|
};
|
|
4795
4795
|
}
|
|
4796
|
-
}),
|
|
4796
|
+
}), di = { class: "sv-header--mobile" }, mi = {
|
|
4797
4797
|
key: 0,
|
|
4798
4798
|
class: "sv-header__logo"
|
|
4799
|
-
},
|
|
4799
|
+
}, ci = ["src", "width", "height", "alt"], pi = /* @__PURE__ */ g({
|
|
4800
4800
|
__name: "HeaderMobile",
|
|
4801
4801
|
props: {
|
|
4802
4802
|
model: {}
|
|
@@ -4804,8 +4804,8 @@ const oi = /* @__PURE__ */ me(ei, [["render", ni]]), ti = { key: 2 }, ii = /* @_
|
|
|
4804
4804
|
setup(r) {
|
|
4805
4805
|
return (n, o) => {
|
|
4806
4806
|
const e = q("survey-element-title"), s = q("survey-string");
|
|
4807
|
-
return t(), u("div",
|
|
4808
|
-
n.model.survey.hasLogo ? (t(), u("div",
|
|
4807
|
+
return t(), u("div", di, [
|
|
4808
|
+
n.model.survey.hasLogo ? (t(), u("div", mi, [
|
|
4809
4809
|
p("div", {
|
|
4810
4810
|
class: l(n.model.survey.logoClassNames)
|
|
4811
4811
|
}, [
|
|
@@ -4815,14 +4815,14 @@ const oi = /* @__PURE__ */ me(ei, [["render", ni]]), ti = { key: 2 }, ii = /* @_
|
|
|
4815
4815
|
width: n.model.survey.renderedLogoWidth,
|
|
4816
4816
|
height: n.model.survey.renderedLogoHeight,
|
|
4817
4817
|
alt: n.model.survey.locTitle.renderedHtml,
|
|
4818
|
-
style:
|
|
4819
|
-
}, null, 14,
|
|
4818
|
+
style: w({ objectFit: n.model.survey.logoFit, width: n.model.survey.renderedStyleLogoWidth, height: n.model.survey.renderedStyleLogoHeight })
|
|
4819
|
+
}, null, 14, ci)
|
|
4820
4820
|
], 2)
|
|
4821
4821
|
])) : d("", !0),
|
|
4822
4822
|
n.model.survey.hasTitle ? (t(), u("div", {
|
|
4823
4823
|
key: 1,
|
|
4824
4824
|
class: "sv-header__title",
|
|
4825
|
-
style:
|
|
4825
|
+
style: w({ maxWidth: n.model.textAreaWidth })
|
|
4826
4826
|
}, [
|
|
4827
4827
|
C(e, {
|
|
4828
4828
|
element: n.model.survey,
|
|
@@ -4832,7 +4832,7 @@ const oi = /* @__PURE__ */ me(ei, [["render", ni]]), ti = { key: 2 }, ii = /* @_
|
|
|
4832
4832
|
n.model.survey.renderedHasDescription ? (t(), u("div", {
|
|
4833
4833
|
key: 2,
|
|
4834
4834
|
class: "sv-header__description",
|
|
4835
|
-
style:
|
|
4835
|
+
style: w({ maxWidth: n.model.textAreaWidth })
|
|
4836
4836
|
}, [
|
|
4837
4837
|
n.model.survey.renderedHasDescription ? (t(), u("h5", {
|
|
4838
4838
|
key: 0,
|
|
@@ -4846,7 +4846,7 @@ const oi = /* @__PURE__ */ me(ei, [["render", ni]]), ti = { key: 2 }, ii = /* @_
|
|
|
4846
4846
|
]);
|
|
4847
4847
|
};
|
|
4848
4848
|
}
|
|
4849
|
-
}),
|
|
4849
|
+
}), vi = /* @__PURE__ */ g({
|
|
4850
4850
|
__name: "FileCleanButton",
|
|
4851
4851
|
props: {
|
|
4852
4852
|
question: {},
|
|
@@ -4860,7 +4860,7 @@ const oi = /* @__PURE__ */ me(ei, [["render", ni]]), ti = { key: 2 }, ii = /* @_
|
|
|
4860
4860
|
class: l(n.css),
|
|
4861
4861
|
onClick: o[0] || (o[0] = (...s) => n.question.doClean && n.question.doClean(...s))
|
|
4862
4862
|
}, [
|
|
4863
|
-
p("span", null,
|
|
4863
|
+
p("span", null, I(n.question.clearButtonCaption), 1),
|
|
4864
4864
|
n.question.cssClasses.removeButtonIconId ? (t(), y(e, {
|
|
4865
4865
|
key: 0,
|
|
4866
4866
|
iconName: n.question.cssClasses.removeButtonIconId,
|
|
@@ -4870,7 +4870,7 @@ const oi = /* @__PURE__ */ me(ei, [["render", ni]]), ti = { key: 2 }, ii = /* @_
|
|
|
4870
4870
|
], 2);
|
|
4871
4871
|
};
|
|
4872
4872
|
}
|
|
4873
|
-
}),
|
|
4873
|
+
}), qi = ["id"], yi = /* @__PURE__ */ g({
|
|
4874
4874
|
__name: "FileVideo",
|
|
4875
4875
|
props: {
|
|
4876
4876
|
question: {}
|
|
@@ -4892,21 +4892,21 @@ const oi = /* @__PURE__ */ me(ei, [["render", ni]]), ti = { key: 2 }, ii = /* @_
|
|
|
4892
4892
|
playsinline: "",
|
|
4893
4893
|
id: n.question.videoId,
|
|
4894
4894
|
class: l(n.question.cssClasses.video)
|
|
4895
|
-
}, null, 10,
|
|
4895
|
+
}, null, 10, qi),
|
|
4896
4896
|
C(e, {
|
|
4897
4897
|
item: n.question.takePictureAction
|
|
4898
4898
|
}, null, 8, ["item"])
|
|
4899
4899
|
], 2);
|
|
4900
4900
|
};
|
|
4901
4901
|
}
|
|
4902
|
-
}),
|
|
4902
|
+
}), gi = ["for", "aria-label"], hi = /* @__PURE__ */ g({
|
|
4903
4903
|
__name: "FileChooseButton",
|
|
4904
4904
|
props: {
|
|
4905
4905
|
data: {},
|
|
4906
4906
|
item: {}
|
|
4907
4907
|
},
|
|
4908
4908
|
setup(r) {
|
|
4909
|
-
const n = r, o =
|
|
4909
|
+
const n = r, o = R(
|
|
4910
4910
|
() => {
|
|
4911
4911
|
var e;
|
|
4912
4912
|
return ((e = n.data) == null ? void 0 : e.question) || n.item.data.question;
|
|
@@ -4914,9 +4914,7 @@ const oi = /* @__PURE__ */ me(ei, [["render", ni]]), ti = { key: 2 }, ii = /* @_
|
|
|
4914
4914
|
);
|
|
4915
4915
|
return (e, s) => {
|
|
4916
4916
|
const i = q("sv-svg-icon"), a = ee("key2click");
|
|
4917
|
-
return
|
|
4918
|
-
key: 0,
|
|
4919
|
-
role: "button",
|
|
4917
|
+
return P((t(), u("label", {
|
|
4920
4918
|
tabindex: "0",
|
|
4921
4919
|
class: l(o.value.getChooseFileCss()),
|
|
4922
4920
|
for: o.value.inputId,
|
|
@@ -4928,13 +4926,13 @@ const oi = /* @__PURE__ */ me(ei, [["render", ni]]), ti = { key: 2 }, ii = /* @_
|
|
|
4928
4926
|
iconName: o.value.cssClasses.chooseFileIconId,
|
|
4929
4927
|
size: "auto"
|
|
4930
4928
|
}, null, 8, ["title", "iconName"])) : d("", !0),
|
|
4931
|
-
p("span", null,
|
|
4932
|
-
], 10,
|
|
4929
|
+
p("span", null, I(o.value.chooseButtonText), 1)
|
|
4930
|
+
], 10, gi)), [
|
|
4933
4931
|
[a]
|
|
4934
4932
|
]);
|
|
4935
4933
|
};
|
|
4936
4934
|
}
|
|
4937
|
-
}),
|
|
4935
|
+
}), Ci = ["onClick", "href", "title", "download"], bi = ["src"], ki = ["onClick"], fi = ["onClick", "href", "title", "download"], Ii = /* @__PURE__ */ g({
|
|
4938
4936
|
__name: "FilePreview",
|
|
4939
4937
|
props: {
|
|
4940
4938
|
question: {}
|
|
@@ -4946,7 +4944,7 @@ const oi = /* @__PURE__ */ me(ei, [["render", ni]]), ti = { key: 2 }, ii = /* @_
|
|
|
4946
4944
|
key: 0,
|
|
4947
4945
|
class: l(n.question.cssClasses.fileList || void 0)
|
|
4948
4946
|
}, [
|
|
4949
|
-
(t(!0), u(
|
|
4947
|
+
(t(!0), u(S, null, B(n.question.previewValue, (s, i) => P((t(), u("span", {
|
|
4950
4948
|
key: n.question.inputId + "_" + i,
|
|
4951
4949
|
class: l(n.question.cssClasses.preview)
|
|
4952
4950
|
}, [
|
|
@@ -4959,21 +4957,21 @@ const oi = /* @__PURE__ */ me(ei, [["render", ni]]), ti = { key: 2 }, ii = /* @_
|
|
|
4959
4957
|
href: s.content,
|
|
4960
4958
|
title: s.name,
|
|
4961
4959
|
download: s.name,
|
|
4962
|
-
style:
|
|
4963
|
-
},
|
|
4960
|
+
style: w({ width: n.question.imageWidth })
|
|
4961
|
+
}, I(s.name), 13, Ci)
|
|
4964
4962
|
], 2)) : d("", !0),
|
|
4965
4963
|
p("div", {
|
|
4966
|
-
class: l(n.question.
|
|
4964
|
+
class: l(n.question.getImageWrapperCss(s))
|
|
4967
4965
|
}, [
|
|
4968
4966
|
n.question.canPreviewImage(s) ? (t(), u("img", {
|
|
4969
4967
|
key: 0,
|
|
4970
4968
|
src: s.content,
|
|
4971
|
-
style:
|
|
4969
|
+
style: w({
|
|
4972
4970
|
height: n.question.imageHeight,
|
|
4973
4971
|
width: n.question.imageWidth
|
|
4974
4972
|
}),
|
|
4975
4973
|
alt: "File preview"
|
|
4976
|
-
}, null, 12,
|
|
4974
|
+
}, null, 12, bi)) : d("", !0),
|
|
4977
4975
|
n.question.defaultImage(s) ? (t(), y(e, {
|
|
4978
4976
|
key: 1,
|
|
4979
4977
|
iconName: n.question.cssClasses.defaultImageIconId,
|
|
@@ -4987,7 +4985,7 @@ const oi = /* @__PURE__ */ me(ei, [["render", ni]]), ti = { key: 2 }, ii = /* @_
|
|
|
4987
4985
|
}, [
|
|
4988
4986
|
p("span", {
|
|
4989
4987
|
class: l(n.question.cssClasses.removeFile)
|
|
4990
|
-
},
|
|
4988
|
+
}, I(n.question.removeFileCaption), 3),
|
|
4991
4989
|
n.question.cssClasses.removeFileSvgIconId ? (t(), y(e, {
|
|
4992
4990
|
key: 0,
|
|
4993
4991
|
title: n.question.removeFileCaption,
|
|
@@ -4995,7 +4993,7 @@ const oi = /* @__PURE__ */ me(ei, [["render", ni]]), ti = { key: 2 }, ii = /* @_
|
|
|
4995
4993
|
iconName: n.question.cssClasses.removeFileSvgIconId,
|
|
4996
4994
|
size: "auto"
|
|
4997
4995
|
}, null, 8, ["title", "class", "iconName"])) : d("", !0)
|
|
4998
|
-
], 10,
|
|
4996
|
+
], 10, ki)) : d("", !0)
|
|
4999
4997
|
], 2),
|
|
5000
4998
|
s.name && n.question.cssClasses.fileSignBottom ? (t(), u("div", {
|
|
5001
4999
|
key: 1,
|
|
@@ -5006,8 +5004,8 @@ const oi = /* @__PURE__ */ me(ei, [["render", ni]]), ti = { key: 2 }, ii = /* @_
|
|
|
5006
5004
|
href: s.content,
|
|
5007
5005
|
title: s.name,
|
|
5008
5006
|
download: s.name,
|
|
5009
|
-
style:
|
|
5010
|
-
},
|
|
5007
|
+
style: w({ width: n.question.imageWidth })
|
|
5008
|
+
}, I(s.name), 13, fi)
|
|
5011
5009
|
], 2)) : d("", !0)
|
|
5012
5010
|
], 2)), [
|
|
5013
5011
|
[_, s && n.question.isPreviewVisible(i)]
|
|
@@ -5017,8 +5015,8 @@ const oi = /* @__PURE__ */ me(ei, [["render", ni]]), ti = { key: 2 }, ii = /* @_
|
|
|
5017
5015
|
}
|
|
5018
5016
|
});
|
|
5019
5017
|
He.platform = "vue3";
|
|
5020
|
-
function
|
|
5021
|
-
r.component("SurveyComponent", re), r.component("PopupSurveyComponent", ae), r.component("survey", re), r.component("popup-survey", ae), r.component("survey-header", Oe), r.component("survey-page", We), r.component("survey-row", ze), r.component("survey-element", Ke), r.component("survey-panel", Ge), r.component("survey-element-header", Xe), r.component("survey-string", Je), r.component("sv-string-viewer", xe), r.component("sv-string-editor", ss), r.component("sv-skeleton", os), r.component("survey-text", ls), r.component("survey-text-input", ds), r.component("survey-checkbox", ps), r.component("survey-checkbox-item", hs), r.component("survey-radiogroup", fs), r.component("survey-radiogroup-item",
|
|
5018
|
+
function wi(r) {
|
|
5019
|
+
r.component("SurveyComponent", re), r.component("PopupSurveyComponent", ae), r.component("survey", re), r.component("popup-survey", ae), r.component("survey-header", Oe), r.component("survey-page", We), r.component("survey-row", ze), r.component("survey-element", Ke), r.component("survey-panel", Ge), r.component("survey-element-header", Xe), r.component("survey-string", Je), r.component("sv-string-viewer", xe), r.component("sv-string-editor", ss), r.component("sv-skeleton", os), r.component("survey-text", ls), r.component("survey-text-input", ds), r.component("survey-checkbox", ps), r.component("survey-checkbox-item", hs), r.component("survey-radiogroup", fs), r.component("survey-radiogroup-item", Ts), r.component("survey-signaturepad", Ls), r.component("survey-html", Ps), r.component("survey-image", _s), r.component("survey-expression", As), r.component("survey-file", Vs), r.component("sv-file-choose-btn", hi), r.component("sv-file-clean-btn", vi), r.component("sv-file-preview", Ii), r.component("sv-file-video", yi), r.component("survey-imagepicker", Os), r.component("survey-imagepicker-item", Qs), r.component("survey-comment", Js), r.component("survey-dropdown", Ys), r.component("sv-dropdown-select", sn), r.component("sv-dropdown-option-item", on), r.component("sv-dropdown", un), r.component("survey-tagbox", dn), r.component("sv-tagbox", pn), r.component("sv-tagbox-item", hn), r.component("sv-tagbox-filter", yn), r.component("survey-ranking", Cn), r.component("survey-ranking-item", Sn), r.component("survey-rating", $n), r.component("sv-rating-item", Ln), r.component("sv-rating-item-smiley", Pn), r.component("sv-rating-item-star", Nn), r.component("sv-rating-dropdown", Hn), r.component("survey-boolean", An), r.component("sv-boolean-radio", En), r.component("sv-boolean-radio-item", Fn), r.component("sv-boolean-checkbox", jn), r.component("survey-multipletext", Qn), r.component("survey-multipletext-item", Xn), r.component("survey-matrix", oo), r.component("survey-matrixdropdown", to), r.component("survey-matrixtable", ao), r.component("survey-matrixheaderrequired", mo), r.component("survey-matrixcell", po), r.component("survey-matrixdynamic", vo), r.component("sv-matrix-remove-button", yo), r.component("sv-matrix-drag-drop-icon", ho), r.component("sv-matrix-detail-button", bo), r.component("survey-paneldynamic", ko), r.component("survey-paneldynamicprogress", fo), r.component("survey-paneldynamicprogress-v2", Io), r.component("sv-paneldynamic-add-btn", wo), r.component("sv-paneldynamic-next-btn", To), r.component("sv-paneldynamic-prev-btn", $o), r.component("sv-paneldynamic-remove-btn", Bo), r.component("sv-paneldynamic-progress-text", Lo), r.component("sv-components-container", Rt), r.component("sv-progress-buttons", Dt), r.component("sv-progress-toc", Pt), r.component("sv-progress-pages", X), r.component("sv-progress-questions", X), r.component("sv-progress-correctquestions", X), r.component("sv-progress-requiredquestions", X), r.component("survey-errors", Po), r.component("survey-question-comment", Ho), r.component("survey-element-title", _o), r.component("survey-element-title-content", Fo), r.component("sv-title-actions", Uo), r.component("sv-brand-info", Jo), r.component("sv-svg-icon", et), r.component("sv-action-bar", st), r.component("sv-action", tt), r.component("sv-action-bar-item", lt), r.component("sv-action-bar-item-dropdown", at), r.component("sv-action-bar-separator", ut), r.component("sv-list", pt), r.component("sv-list-item", yt), r.component("sv-popup", gt), r.component("sv-popup-container", wt), r.component("popup-pointer", St), r.component("sv-notifier", Vt), r.component("survey-other-choice", zt), r.component("sv-nav-btn", Kt), r.component("survey-customwidget", Qt), r.component("survey-popup-modal", Gt), r.component("sv-character-counter", Xt), r.component("survey-composite", Jt), r.component("survey-custom", Yt), r.component("sv-timerpanel", ei), r.component("sv-loading-indicator", ti), r.component("sv-header", li), r.component("sv-header-cell", ui), r.component("sv-header-mobile", pi), r.directive("key2click", {
|
|
5022
5020
|
mounted: function(n, o) {
|
|
5023
5021
|
const e = { ...o.value };
|
|
5024
5022
|
e.disableTabStop || (n.tabIndex = 0), n.addEventListener("keyup", (s) => (s.preventDefault(), s.stopPropagation(), de(s, e), !1)), n.addEventListener("keydown", (s) => {
|
|
@@ -5031,7 +5029,7 @@ function Ii(r) {
|
|
|
5031
5029
|
}
|
|
5032
5030
|
const Ri = {
|
|
5033
5031
|
install(r) {
|
|
5034
|
-
|
|
5032
|
+
wi(r);
|
|
5035
5033
|
}
|
|
5036
5034
|
};
|
|
5037
5035
|
export {
|