survey-vue3-ui 2.2.0 → 2.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/survey-vue3-ui.es.js +657 -645
- package/survey-vue3-ui.umd.js +5 -5
package/survey-vue3-ui.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Me = Object.defineProperty;
|
|
2
2
|
var Ie = (u, e, n) => e in u ? Me(u, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : u[e] = n;
|
|
3
3
|
var J = (u, e, n) => (Ie(u, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
-
import { defineComponent as y, computed as H, openBlock as i, createBlock as g, resolveDynamicComponent as ge, normalizeProps as de, guardReactiveProps as me, createSlots as Ve, renderList as V, withCtx as
|
|
4
|
+
import { defineComponent as y, computed as H, openBlock as i, createBlock as g, resolveDynamicComponent as ge, normalizeProps as de, guardReactiveProps as me, createSlots as Ve, renderList as V, withCtx as D, renderSlot as x, shallowReactive as Se, watch as W, onBeforeUnmount as O, onMounted as Z, ref as f, shallowRef as E, watchEffect as Re, triggerRef as oe, unref as w, isRef as Te, nextTick as ye, createElementBlock as a, normalizeClass as r, createVNode as c, createCommentVNode as p, Fragment as M, mergeProps as $, normalizeStyle as k, createElementVNode as v, onUnmounted as P, withDirectives as B, vShow as A, toDisplayString as I, vModelRadio as se, vModelCheckbox as ie, vModelSelect as Be, onUpdated as z, vModelText as Ze, getCurrentInstance as he, createStaticVNode as $e, toRaw as De, Teleport as Ae, useSlots as Pe } from "vue";
|
|
5
5
|
import { Base as Ne, ScrollViewModel as Ee, RendererFactory as G, Helpers as We, DropdownMultiSelectListModel as Fe, doKey2ClickUp as qe, createSvg as Oe, doKey2ClickDown as ze, doKey2ClickBlur as Ue, ActionDropdownViewModel as Qe, createPopupViewModel as Ke, SurveyProgressModel as pe, ProgressButtonsResponsivityManager as je, addIconsToThemeSet as we, SvgRegistry as _, PopupSurveyModel as Ge, settings as te, createPopupModalViewModel as Xe, ButtonGroupItemModel as Je, SurveyModel as Ye } from "survey-core";
|
|
6
6
|
const ee = class ee {
|
|
7
7
|
constructor() {
|
|
@@ -38,7 +38,7 @@ const m = /* @__PURE__ */ y({
|
|
|
38
38
|
return (s, o) => (i(), g(ge(n.value), de(me(s.$attrs)), Ve({ _: 2 }, [
|
|
39
39
|
V(s.$slots, (t, l) => ({
|
|
40
40
|
name: l,
|
|
41
|
-
fn:
|
|
41
|
+
fn: D((d) => [
|
|
42
42
|
x(s.$slots, l, de(me(d)))
|
|
43
43
|
])
|
|
44
44
|
}))
|
|
@@ -112,8 +112,8 @@ function T(u, e, n, s) {
|
|
|
112
112
|
u.question.beforeDestroyQuestionElement(e.value);
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
const e =
|
|
115
|
+
function U(u) {
|
|
116
|
+
const e = f(), n = (t) => {
|
|
117
117
|
e.value = t.renderedHtml;
|
|
118
118
|
}, s = (t) => {
|
|
119
119
|
e.value = t.renderedHtml, t.onStringChanged.add(n);
|
|
@@ -148,7 +148,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
148
148
|
css: {}
|
|
149
149
|
},
|
|
150
150
|
setup(u) {
|
|
151
|
-
const e = u, n =
|
|
151
|
+
const e = u, n = f(null), s = () => {
|
|
152
152
|
e.survey && n.value && e.survey.afterRenderPage(n.value);
|
|
153
153
|
}, o = H(() => e.page._showDescription);
|
|
154
154
|
return S(
|
|
@@ -187,7 +187,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
187
187
|
}, {
|
|
188
188
|
componentData: t.page.getSurvey().getRowWrapperComponentData(d)
|
|
189
189
|
}), {
|
|
190
|
-
default:
|
|
190
|
+
default: D(() => [
|
|
191
191
|
c(m, {
|
|
192
192
|
is: "survey-row",
|
|
193
193
|
row: d,
|
|
@@ -205,7 +205,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
205
205
|
survey: {}
|
|
206
206
|
},
|
|
207
207
|
setup(u) {
|
|
208
|
-
const e = u, n =
|
|
208
|
+
const e = u, n = f();
|
|
209
209
|
return Z(() => {
|
|
210
210
|
var s = n.value;
|
|
211
211
|
s && e.survey && e.survey.afterRenderHeader(s);
|
|
@@ -223,7 +223,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
223
223
|
s.survey.renderedHasTitle ? (i(), a("div", {
|
|
224
224
|
key: 1,
|
|
225
225
|
class: r(s.survey.css.headerText),
|
|
226
|
-
style:
|
|
226
|
+
style: k({ maxWidth: s.survey.titleMaxWidth })
|
|
227
227
|
}, [
|
|
228
228
|
c(m, {
|
|
229
229
|
is: "survey-element-title",
|
|
@@ -258,7 +258,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
258
258
|
survey: {}
|
|
259
259
|
},
|
|
260
260
|
setup(u) {
|
|
261
|
-
const e = u, n =
|
|
261
|
+
const e = u, n = f();
|
|
262
262
|
let s;
|
|
263
263
|
return S(
|
|
264
264
|
() => e.row,
|
|
@@ -289,10 +289,10 @@ const ss = /* @__PURE__ */ y({
|
|
|
289
289
|
}, null, 8, ["row", "css", "element"]))), 128))
|
|
290
290
|
], 2));
|
|
291
291
|
}
|
|
292
|
-
}), os = ["id", "role", "aria-required", "aria-invalid", "aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "data-name"], is = ["
|
|
292
|
+
}), os = ["id", "role", "aria-required", "aria-invalid", "aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "data-name"], is = ["aria-hidden"], rs = ["id"], ls = {
|
|
293
293
|
inheritAttrs: !1
|
|
294
|
-
},
|
|
295
|
-
...
|
|
294
|
+
}, as = /* @__PURE__ */ y({
|
|
295
|
+
...ls,
|
|
296
296
|
__name: "Question",
|
|
297
297
|
props: {
|
|
298
298
|
survey: {},
|
|
@@ -300,7 +300,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
300
300
|
css: {}
|
|
301
301
|
},
|
|
302
302
|
setup(u) {
|
|
303
|
-
const e = u, n =
|
|
303
|
+
const e = u, n = f(null), s = (q) => q.cssContent, o = () => e.element.getRootStyle(), t = H(() => e.element.singleInputQuestion);
|
|
304
304
|
S(() => e.element);
|
|
305
305
|
const l = () => {
|
|
306
306
|
n.value && e.element.afterRender(n.value);
|
|
@@ -309,20 +309,20 @@ const ss = /* @__PURE__ */ y({
|
|
|
309
309
|
() => {
|
|
310
310
|
l();
|
|
311
311
|
}
|
|
312
|
-
), C = H(() => e.element.customWidget ? "survey-customwidget" : e.element.isDefaultRendering() ? "survey-" + e.element.getTemplate() : e.element.getComponentName()),
|
|
312
|
+
), C = H(() => e.element.customWidget ? "survey-customwidget" : e.element.isDefaultRendering() ? "survey-" + e.element.getTemplate() : e.element.getComponentName()), L = H(() => e.element.survey.getQuestionContentWrapperComponentName(e.element)), h = H(() => ({
|
|
313
313
|
componentData: {
|
|
314
314
|
question: e.element,
|
|
315
315
|
data: e.element.survey.getElementWrapperComponentData(e.element)
|
|
316
316
|
}
|
|
317
317
|
}));
|
|
318
|
-
return
|
|
318
|
+
return P(() => {
|
|
319
319
|
d();
|
|
320
|
-
}), (q,
|
|
320
|
+
}), (q, b) => (i(), a("div", {
|
|
321
321
|
class: r(q.element.getRootCss()),
|
|
322
|
-
style:
|
|
322
|
+
style: k(o()),
|
|
323
323
|
ref_key: "root",
|
|
324
324
|
ref: n,
|
|
325
|
-
onFocusin:
|
|
325
|
+
onFocusin: b[0] || (b[0] = (R) => q.element.focusIn()),
|
|
326
326
|
id: q.element.id,
|
|
327
327
|
role: q.element.ariaRole,
|
|
328
328
|
"aria-required": q.element.ariaRequired,
|
|
@@ -364,12 +364,13 @@ const ss = /* @__PURE__ */ y({
|
|
|
364
364
|
key: t.value.id
|
|
365
365
|
}, null, 8, ["css", "element", "survey"])) : (i(), g(m, $({
|
|
366
366
|
key: 5,
|
|
367
|
-
is:
|
|
367
|
+
is: L.value
|
|
368
368
|
}, h.value), {
|
|
369
|
-
default:
|
|
369
|
+
default: D(() => [
|
|
370
370
|
v("div", {
|
|
371
371
|
class: r(s(q.element) || void 0),
|
|
372
|
-
|
|
372
|
+
"aria-hidden": q.element.contentAriaHidden,
|
|
373
|
+
style: k({ display: q.element.renderedIsExpanded ? void 0 : "none" }),
|
|
373
374
|
role: "presentation"
|
|
374
375
|
}, [
|
|
375
376
|
c(m, {
|
|
@@ -400,8 +401,8 @@ const ss = /* @__PURE__ */ y({
|
|
|
400
401
|
is: "survey-string",
|
|
401
402
|
locString: q.element.locDescription
|
|
402
403
|
}, null, 8, ["locString"])
|
|
403
|
-
], 10,
|
|
404
|
-
],
|
|
404
|
+
], 10, rs)) : p("", !0)
|
|
405
|
+
], 14, is)
|
|
405
406
|
]),
|
|
406
407
|
_: 1
|
|
407
408
|
}, 16, ["is"])),
|
|
@@ -419,10 +420,10 @@ const ss = /* @__PURE__ */ y({
|
|
|
419
420
|
}, null, 8, ["element"])) : p("", !0)
|
|
420
421
|
], 46, os));
|
|
421
422
|
}
|
|
422
|
-
}),
|
|
423
|
+
}), us = ["id"], ds = ["id", "role", "aria-labelledby", "aria-label"], ms = {
|
|
423
424
|
inheritAttrs: !1
|
|
424
|
-
},
|
|
425
|
-
...
|
|
425
|
+
}, ps = /* @__PURE__ */ y({
|
|
426
|
+
...ms,
|
|
426
427
|
inheritAttrs: !1,
|
|
427
428
|
__name: "Panel",
|
|
428
429
|
props: {
|
|
@@ -431,7 +432,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
431
432
|
css: {}
|
|
432
433
|
},
|
|
433
434
|
setup(u) {
|
|
434
|
-
const e = u, n =
|
|
435
|
+
const e = u, n = f(null), s = H(() => e.element.survey);
|
|
435
436
|
return S(() => e.element), Z(() => {
|
|
436
437
|
e.element.survey && e.element.afterRender(n.value);
|
|
437
438
|
}), (o, t) => o.element.getIsContentVisible() ? (i(), a("div", {
|
|
@@ -461,7 +462,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
461
462
|
o.element.renderedIsExpanded ? (i(), a("div", {
|
|
462
463
|
key: 3,
|
|
463
464
|
id: o.element.contentId,
|
|
464
|
-
style:
|
|
465
|
+
style: k({ paddingLeft: o.element.innerPaddingLeft }),
|
|
465
466
|
class: r(o.element.cssClasses.panel.content),
|
|
466
467
|
role: o.element.ariaRole,
|
|
467
468
|
"aria-labelledby": o.element.ariaLabelledBy,
|
|
@@ -473,7 +474,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
473
474
|
}, {
|
|
474
475
|
componentData: o.element.getSurvey().getRowWrapperComponentData(l)
|
|
475
476
|
}), {
|
|
476
|
-
default:
|
|
477
|
+
default: D(() => [
|
|
477
478
|
c(m, {
|
|
478
479
|
is: "survey-row",
|
|
479
480
|
row: l,
|
|
@@ -487,10 +488,10 @@ const ss = /* @__PURE__ */ y({
|
|
|
487
488
|
is: "sv-action-bar",
|
|
488
489
|
model: o.element.getFooterToolbar()
|
|
489
490
|
}, null, 8, ["model"])
|
|
490
|
-
], 14,
|
|
491
|
-
], 42,
|
|
491
|
+
], 14, ds)) : p("", !0)
|
|
492
|
+
], 42, us)) : p("", !0);
|
|
492
493
|
}
|
|
493
|
-
}),
|
|
494
|
+
}), vs = ["id"], Cs = /* @__PURE__ */ y({
|
|
494
495
|
__name: "ElementHeader",
|
|
495
496
|
props: {
|
|
496
497
|
element: {},
|
|
@@ -506,7 +507,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
506
507
|
return (o, t) => (i(), a("div", {
|
|
507
508
|
class: r(o.element.cssHeader),
|
|
508
509
|
onClick: n,
|
|
509
|
-
style:
|
|
510
|
+
style: k(s())
|
|
510
511
|
}, [
|
|
511
512
|
c(m, {
|
|
512
513
|
is: "survey-element-title",
|
|
@@ -522,8 +523,8 @@ const ss = /* @__PURE__ */ y({
|
|
|
522
523
|
is: "survey-string",
|
|
523
524
|
locString: o.element.locDescription
|
|
524
525
|
}, null, 8, ["locString"])
|
|
525
|
-
], 10,
|
|
526
|
-
[
|
|
526
|
+
], 10, vs)), [
|
|
527
|
+
[A, o.element.hasDescription]
|
|
527
528
|
]) : p("", !0),
|
|
528
529
|
o.element.hasAdditionalTitleToolbar ? (i(), g(m, {
|
|
529
530
|
key: 1,
|
|
@@ -532,7 +533,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
532
533
|
}, null, 8, ["model"])) : p("", !0)
|
|
533
534
|
], 6));
|
|
534
535
|
}
|
|
535
|
-
}),
|
|
536
|
+
}), cs = /* @__PURE__ */ y({
|
|
536
537
|
__name: "String",
|
|
537
538
|
props: {
|
|
538
539
|
locString: {}
|
|
@@ -543,23 +544,23 @@ const ss = /* @__PURE__ */ y({
|
|
|
543
544
|
locString: e.locString.renderAsData
|
|
544
545
|
}, null, 8, ["is", "locString"]));
|
|
545
546
|
}
|
|
546
|
-
}),
|
|
547
|
+
}), gs = ["innerHTML"], ys = /* @__PURE__ */ y({
|
|
547
548
|
__name: "StringViewer",
|
|
548
549
|
props: {
|
|
549
550
|
locString: {}
|
|
550
551
|
},
|
|
551
552
|
setup(u) {
|
|
552
|
-
const e = u, n =
|
|
553
|
+
const e = u, n = U(() => e.locString), s = e.locString.allowLineBreaks ? "sv-string-viewer sv-string-viewer--multiline" : "sv-string-viewer";
|
|
553
554
|
return (o, t) => o.locString.hasHtml ? (i(), a("span", {
|
|
554
555
|
key: 0,
|
|
555
556
|
class: r(w(s)),
|
|
556
557
|
innerHTML: w(n)
|
|
557
|
-
}, null, 10,
|
|
558
|
+
}, null, 10, gs)) : (i(), a("span", {
|
|
558
559
|
key: 1,
|
|
559
560
|
class: r(w(s))
|
|
560
561
|
}, I(w(n)), 3));
|
|
561
562
|
}
|
|
562
|
-
}),
|
|
563
|
+
}), hs = ["innerHTML"], qs = /* @__PURE__ */ y({
|
|
563
564
|
__name: "StringEditor",
|
|
564
565
|
props: {
|
|
565
566
|
locString: {}
|
|
@@ -578,7 +579,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
578
579
|
innerHTML: o.locString.renderedHtml,
|
|
579
580
|
onBlur: n,
|
|
580
581
|
onClick: s
|
|
581
|
-
}, null, 40,
|
|
582
|
+
}, null, 40, hs)) : (i(), a("span", {
|
|
582
583
|
key: 1,
|
|
583
584
|
class: "sv-string-editor",
|
|
584
585
|
contenteditable: "true",
|
|
@@ -586,7 +587,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
586
587
|
onClick: s
|
|
587
588
|
}, I(o.locString.renderedHtml), 33));
|
|
588
589
|
}
|
|
589
|
-
}),
|
|
590
|
+
}), ws = ["id"], bs = /* @__PURE__ */ y({
|
|
590
591
|
__name: "Skeleton",
|
|
591
592
|
props: {
|
|
592
593
|
element: {}
|
|
@@ -596,12 +597,12 @@ const ss = /* @__PURE__ */ y({
|
|
|
596
597
|
return S(() => e.element), (n, s) => (i(), a("div", {
|
|
597
598
|
class: "sv-skeleton-element",
|
|
598
599
|
id: n.element.id,
|
|
599
|
-
style:
|
|
600
|
-
}, null, 12,
|
|
600
|
+
style: k({ height: n.element.skeletonHeight })
|
|
601
|
+
}, null, 12, ws));
|
|
601
602
|
}
|
|
602
|
-
}),
|
|
603
|
-
|
|
604
|
-
],
|
|
603
|
+
}), Ls = { class: "sv-scroll__container" }, ks = /* @__PURE__ */ v("div", { class: "sv-scroll__scrollbar-sizer" }, null, -1), fs = [
|
|
604
|
+
ks
|
|
605
|
+
], Hs = /* @__PURE__ */ y({
|
|
605
606
|
__name: "Scroll",
|
|
606
607
|
props: {
|
|
607
608
|
disabled: {},
|
|
@@ -612,10 +613,10 @@ const ss = /* @__PURE__ */ y({
|
|
|
612
613
|
n.onInnerHeightChanged = (o) => {
|
|
613
614
|
e.onInnerHeightChanged && e.onInnerHeightChanged(o);
|
|
614
615
|
};
|
|
615
|
-
const s =
|
|
616
|
+
const s = f();
|
|
616
617
|
return Z(() => {
|
|
617
618
|
n.setRootElement(s.value);
|
|
618
|
-
}),
|
|
619
|
+
}), P(() => {
|
|
619
620
|
n.setRootElement(void 0), n.unsubscribeRootElement();
|
|
620
621
|
}), (o, t) => e.disabled ? x(o.$slots, "default", { key: 0 }) : (i(), a("div", {
|
|
621
622
|
key: 1,
|
|
@@ -627,24 +628,24 @@ const ss = /* @__PURE__ */ y({
|
|
|
627
628
|
class: "sv-scroll__scroller sv-drag-target-skipped",
|
|
628
629
|
onScroll: t[0] || (t[0] = () => w(n).onScrollContainer())
|
|
629
630
|
}, [
|
|
630
|
-
v("div",
|
|
631
|
+
v("div", Ls, [
|
|
631
632
|
x(o.$slots, "default")
|
|
632
633
|
])
|
|
633
634
|
], 32),
|
|
634
635
|
v("div", {
|
|
635
636
|
class: "sv-scroll__scrollbar",
|
|
636
637
|
onScroll: t[1] || (t[1] = () => w(n).onScrollScrollbar())
|
|
637
|
-
},
|
|
638
|
+
}, fs, 32)
|
|
638
639
|
], 512));
|
|
639
640
|
}
|
|
640
|
-
}),
|
|
641
|
+
}), Ms = ["id"], Is = ["value"], Vs = /* @__PURE__ */ y({
|
|
641
642
|
inheritAttrs: !1,
|
|
642
643
|
__name: "Text",
|
|
643
644
|
props: {
|
|
644
645
|
question: {}
|
|
645
646
|
},
|
|
646
647
|
setup(u) {
|
|
647
|
-
const e = u, n =
|
|
648
|
+
const e = u, n = f(null);
|
|
648
649
|
return T(e, n), (s, o) => s.question.isReadOnlyRenderDiv() ? (i(), a("div", {
|
|
649
650
|
key: 0,
|
|
650
651
|
ref_key: "root",
|
|
@@ -664,8 +665,8 @@ const ss = /* @__PURE__ */ y({
|
|
|
664
665
|
(i(!0), a(M, null, V(s.question.dataList, (t, l) => (i(), a("option", {
|
|
665
666
|
key: l,
|
|
666
667
|
value: t
|
|
667
|
-
}, null, 8,
|
|
668
|
-
], 8,
|
|
668
|
+
}, null, 8, Is))), 128))
|
|
669
|
+
], 8, Ms)
|
|
669
670
|
], 512)) : (i(), g(m, {
|
|
670
671
|
key: 2,
|
|
671
672
|
is: "survey-text-input",
|
|
@@ -675,7 +676,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
675
676
|
}
|
|
676
677
|
}, null, 8, ["question", "get-ref"]));
|
|
677
678
|
}
|
|
678
|
-
}),
|
|
679
|
+
}), Ss = ["disabled", "readonly", "type", "maxlength", "min", "max", "step", "size", "id", "list", "placeholder", "autocomplete", "value", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], Rs = ["disabled", "readonly", "type", "maxlength", "min", "max", "step", "size", "id", "list", "placeholder", "autocomplete", "value", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], Ts = /* @__PURE__ */ y({
|
|
679
680
|
__name: "TextInput",
|
|
680
681
|
props: {
|
|
681
682
|
question: {},
|
|
@@ -684,7 +685,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
684
685
|
setup(u, { expose: e }) {
|
|
685
686
|
const n = u, s = function(l) {
|
|
686
687
|
n.getRef && n.getRef(l);
|
|
687
|
-
}, o =
|
|
688
|
+
}, o = f(null);
|
|
688
689
|
e({ root: o }), S(() => n.question);
|
|
689
690
|
const t = H(() => n.question.inputStyle);
|
|
690
691
|
return (l, d) => l.question.getMaxLength() ? (i(), a("div", {
|
|
@@ -701,7 +702,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
701
702
|
max: l.question.renderedMax,
|
|
702
703
|
step: l.question.renderedStep,
|
|
703
704
|
size: l.question.renderedInputSize,
|
|
704
|
-
style:
|
|
705
|
+
style: k(t.value),
|
|
705
706
|
id: l.question.inputId,
|
|
706
707
|
list: l.question.dataListId,
|
|
707
708
|
placeholder: l.question.renderedPlaceholder,
|
|
@@ -729,7 +730,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
729
730
|
"aria-describedby": l.question.a11y_input_ariaDescribedBy,
|
|
730
731
|
"aria-invalid": l.question.a11y_input_ariaInvalid,
|
|
731
732
|
"aria-errormessage": l.question.a11y_input_ariaErrormessage
|
|
732
|
-
}, null, 46,
|
|
733
|
+
}, null, 46, Rs),
|
|
733
734
|
c(m, {
|
|
734
735
|
is: "sv-character-counter",
|
|
735
736
|
counter: l.question.characterCounter,
|
|
@@ -747,7 +748,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
747
748
|
max: l.question.renderedMax,
|
|
748
749
|
step: l.question.renderedStep,
|
|
749
750
|
size: l.question.renderedInputSize,
|
|
750
|
-
style:
|
|
751
|
+
style: k(t.value),
|
|
751
752
|
id: l.question.inputId,
|
|
752
753
|
list: l.question.dataListId,
|
|
753
754
|
placeholder: l.question.renderedPlaceholder,
|
|
@@ -775,12 +776,12 @@ const ss = /* @__PURE__ */ y({
|
|
|
775
776
|
"aria-describedby": l.question.a11y_input_ariaDescribedBy,
|
|
776
777
|
"aria-invalid": l.question.a11y_input_ariaInvalid,
|
|
777
778
|
"aria-errormessage": l.question.a11y_input_ariaErrormessage
|
|
778
|
-
}, null, 46,
|
|
779
|
+
}, null, 46, Ss));
|
|
779
780
|
}
|
|
780
|
-
}),
|
|
781
|
+
}), Bs = ["role", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], Zs = {
|
|
781
782
|
key: 0,
|
|
782
783
|
class: "sv-hidden"
|
|
783
|
-
},
|
|
784
|
+
}, $s = { key: 7 }, Ds = ["value"], be = /* @__PURE__ */ y({
|
|
784
785
|
inheritAttrs: !1,
|
|
785
786
|
__name: "SelectBase",
|
|
786
787
|
props: {
|
|
@@ -788,7 +789,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
788
789
|
showLegend: { type: Boolean }
|
|
789
790
|
},
|
|
790
791
|
setup(u) {
|
|
791
|
-
const e = u, n =
|
|
792
|
+
const e = u, n = f(null);
|
|
792
793
|
T(e, n);
|
|
793
794
|
const s = (t) => e.question.getItemValueWrapperComponentName(t) || e.question.itemComponent, o = (t) => ({
|
|
794
795
|
componentName: e.question.itemComponent,
|
|
@@ -810,7 +811,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
810
811
|
"aria-invalid": t.question.a11y_input_ariaInvalid,
|
|
811
812
|
"aria-errormessage": t.question.a11y_input_ariaErrormessage
|
|
812
813
|
}, [
|
|
813
|
-
t.showLegend ? (i(), a("legend",
|
|
814
|
+
t.showLegend ? (i(), a("legend", Zs, I(t.question.locTitle.renderedHtml), 1)) : p("", !0),
|
|
814
815
|
t.question.hasHeadItems ? (i(!0), a(M, { key: 1 }, V(t.question.headItems, (d) => (i(), g(m, $({
|
|
815
816
|
key: d.value,
|
|
816
817
|
is: s(d)
|
|
@@ -837,10 +838,10 @@ const ss = /* @__PURE__ */ y({
|
|
|
837
838
|
class: r(t.question.getColumnClass()),
|
|
838
839
|
role: "presentation"
|
|
839
840
|
}, [
|
|
840
|
-
(i(!0), a(M, null, V(d, (
|
|
841
|
-
key:
|
|
842
|
-
is: s(
|
|
843
|
-
}, o(
|
|
841
|
+
(i(!0), a(M, null, V(d, (L) => (i(), g(m, $({
|
|
842
|
+
key: L.value,
|
|
843
|
+
is: s(L)
|
|
844
|
+
}, o(L)), null, 16, ["is"]))), 128))
|
|
844
845
|
], 2))), 128)) : p("", !0)
|
|
845
846
|
], 2)) : p("", !0),
|
|
846
847
|
t.question.hasFootItems ? (i(!0), a(M, { key: 5 }, V(t.question.footItems, (d) => (i(), g(m, $({
|
|
@@ -852,7 +853,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
852
853
|
is: "survey-other-choice",
|
|
853
854
|
question: t.question
|
|
854
855
|
}, null, 8, ["question"])) : p("", !0),
|
|
855
|
-
t.question.showClearButtonInContent ? (i(), a("div",
|
|
856
|
+
t.question.showClearButtonInContent ? (i(), a("div", $s, [
|
|
856
857
|
v("input", {
|
|
857
858
|
type: "button",
|
|
858
859
|
class: r(t.question.cssClasses.clearButton),
|
|
@@ -860,11 +861,11 @@ const ss = /* @__PURE__ */ y({
|
|
|
860
861
|
t.question.clearValue(!0);
|
|
861
862
|
}),
|
|
862
863
|
value: t.question.clearButtonCaption
|
|
863
|
-
}, null, 10,
|
|
864
|
+
}, null, 10, Ds)
|
|
864
865
|
])) : p("", !0)
|
|
865
|
-
], 10,
|
|
866
|
+
], 10, Bs));
|
|
866
867
|
}
|
|
867
|
-
}),
|
|
868
|
+
}), As = /* @__PURE__ */ y({
|
|
868
869
|
inheritAttrs: !1,
|
|
869
870
|
__name: "Checkbox",
|
|
870
871
|
props: {
|
|
@@ -880,13 +881,13 @@ const ss = /* @__PURE__ */ y({
|
|
|
880
881
|
function Le(u, e, n) {
|
|
881
882
|
Z(() => {
|
|
882
883
|
n.value && (e().isDesignMode || u().setRootElement(n.value));
|
|
883
|
-
}),
|
|
884
|
+
}), P(() => {
|
|
884
885
|
e().isDesignMode || u().setRootElement(void 0);
|
|
885
886
|
}), S(u, (s, o) => {
|
|
886
887
|
e().isDesignMode || (s && n.value && s.setRootElement(n.value), o && o.setRootElement(void 0));
|
|
887
888
|
});
|
|
888
889
|
}
|
|
889
|
-
const
|
|
890
|
+
const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required", "aria-label"], Ns = ["xlink:href"], Es = /* @__PURE__ */ y({
|
|
890
891
|
inheritAttrs: !1,
|
|
891
892
|
__name: "CheckboxItem",
|
|
892
893
|
props: {
|
|
@@ -896,7 +897,7 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
896
897
|
ariaLabel: {}
|
|
897
898
|
},
|
|
898
899
|
setup(u) {
|
|
899
|
-
const e =
|
|
900
|
+
const e = f(), n = u;
|
|
900
901
|
Le(
|
|
901
902
|
() => n.item,
|
|
902
903
|
() => n.question,
|
|
@@ -928,7 +929,7 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
928
929
|
class: r(o.question.cssClasses.itemControl),
|
|
929
930
|
required: o.question.hasRequiredError(),
|
|
930
931
|
"aria-label": o.ariaLabel
|
|
931
|
-
}, null, 42,
|
|
932
|
+
}, null, 42, Ps),
|
|
932
933
|
o.question.cssClasses.materialDecorator ? (i(), a("span", {
|
|
933
934
|
key: 0,
|
|
934
935
|
class: r(o.question.cssClasses.materialDecorator)
|
|
@@ -939,7 +940,7 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
939
940
|
}, [
|
|
940
941
|
v("use", {
|
|
941
942
|
"xlink:href": o.question.itemSvgIcon
|
|
942
|
-
}, null, 8,
|
|
943
|
+
}, null, 8, Ns)
|
|
943
944
|
], 2)) : p("", !0)
|
|
944
945
|
], 2)) : p("", !0),
|
|
945
946
|
o.hideLabel ? p("", !0) : (i(), a("span", {
|
|
@@ -954,7 +955,7 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
954
955
|
], 2)
|
|
955
956
|
], 2));
|
|
956
957
|
}
|
|
957
|
-
}),
|
|
958
|
+
}), Ws = /* @__PURE__ */ y({
|
|
958
959
|
inheritAttrs: !1,
|
|
959
960
|
__name: "Radiogroup",
|
|
960
961
|
props: {
|
|
@@ -963,7 +964,7 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
963
964
|
setup(u) {
|
|
964
965
|
return (e, n) => (i(), g(be, { question: e.question }, null, 8, ["question"]));
|
|
965
966
|
}
|
|
966
|
-
}),
|
|
967
|
+
}), Fs = ["name", "value", "id", "aria-errormessage", "disabled", "readonly", "aria-label"], Os = ["xlink:href"], zs = /* @__PURE__ */ y({
|
|
967
968
|
inheritAttrs: !1,
|
|
968
969
|
__name: "RadiogroupItem",
|
|
969
970
|
props: {
|
|
@@ -973,7 +974,7 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
973
974
|
ariaLabel: {}
|
|
974
975
|
},
|
|
975
976
|
setup(u) {
|
|
976
|
-
const e =
|
|
977
|
+
const e = f(), n = u, s = (l) => n.question.getLabelClass(l), o = (l) => n.question.getControlLabelClass(l), t = H({
|
|
977
978
|
get: () => n.question.renderedValue,
|
|
978
979
|
set: (l) => {
|
|
979
980
|
const d = n.question;
|
|
@@ -1005,7 +1006,7 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1005
1006
|
readonly: l.question.isReadOnlyAttr,
|
|
1006
1007
|
class: r(l.question.cssClasses.itemControl),
|
|
1007
1008
|
"aria-label": l.ariaLabel
|
|
1008
|
-
}, null, 10,
|
|
1009
|
+
}, null, 10, Fs), [
|
|
1009
1010
|
[se, t.value]
|
|
1010
1011
|
]),
|
|
1011
1012
|
l.question.cssClasses.materialDecorator ? (i(), a("span", {
|
|
@@ -1018,7 +1019,7 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1018
1019
|
}, [
|
|
1019
1020
|
v("use", {
|
|
1020
1021
|
"xlink:href": l.question.itemSvgIcon
|
|
1021
|
-
}, null, 8,
|
|
1022
|
+
}, null, 8, Os)
|
|
1022
1023
|
], 2)) : p("", !0)
|
|
1023
1024
|
], 2)) : p("", !0),
|
|
1024
1025
|
l.hideLabel ? p("", !0) : (i(), a("span", {
|
|
@@ -1033,19 +1034,19 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1033
1034
|
], 34)
|
|
1034
1035
|
], 2));
|
|
1035
1036
|
}
|
|
1036
|
-
}),
|
|
1037
|
+
}), Us = ["src"], Qs = ["title"], Ks = { key: 0 }, js = /* @__PURE__ */ y({
|
|
1037
1038
|
inheritAttrs: !1,
|
|
1038
1039
|
__name: "Signaturepad",
|
|
1039
1040
|
props: {
|
|
1040
1041
|
question: {}
|
|
1041
1042
|
},
|
|
1042
1043
|
setup(u) {
|
|
1043
|
-
const e = u, n =
|
|
1044
|
+
const e = u, n = f(null);
|
|
1044
1045
|
return T(e, n), (s, o) => (i(), a("div", {
|
|
1045
1046
|
class: r(s.question.cssClasses.root),
|
|
1046
1047
|
ref_key: "root",
|
|
1047
1048
|
ref: n,
|
|
1048
|
-
style:
|
|
1049
|
+
style: k({
|
|
1049
1050
|
width: s.question.renderedCanvasWidth
|
|
1050
1051
|
})
|
|
1051
1052
|
}, [
|
|
@@ -1057,7 +1058,7 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1057
1058
|
locString: s.question.locRenderedPlaceholder
|
|
1058
1059
|
}, null, 8, ["locString"])
|
|
1059
1060
|
], 2), [
|
|
1060
|
-
[
|
|
1061
|
+
[A, s.question.needShowPlaceholder()]
|
|
1061
1062
|
]),
|
|
1062
1063
|
v("div", null, [
|
|
1063
1064
|
s.question.backgroundImage ? (i(), a("img", {
|
|
@@ -1065,10 +1066,10 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1065
1066
|
role: "presentation",
|
|
1066
1067
|
class: r(s.question.cssClasses.backgroundImage),
|
|
1067
1068
|
src: s.question.backgroundImage,
|
|
1068
|
-
style:
|
|
1069
|
+
style: k({
|
|
1069
1070
|
width: s.question.renderedCanvasWidth
|
|
1070
1071
|
})
|
|
1071
|
-
}, null, 14,
|
|
1072
|
+
}, null, 14, Us)) : p("", !0),
|
|
1072
1073
|
v("canvas", {
|
|
1073
1074
|
tabindex: "-1",
|
|
1074
1075
|
class: r(s.question.cssClasses.canvas),
|
|
@@ -1088,14 +1089,14 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1088
1089
|
s.question.clearValue(!0);
|
|
1089
1090
|
})
|
|
1090
1091
|
}, [
|
|
1091
|
-
s.question.cssClasses.clearButtonIconId ? p("", !0) : (i(), a("span",
|
|
1092
|
+
s.question.cssClasses.clearButtonIconId ? p("", !0) : (i(), a("span", Ks, "✖")),
|
|
1092
1093
|
s.question.cssClasses.clearButtonIconId ? (i(), g(m, {
|
|
1093
1094
|
key: 1,
|
|
1094
1095
|
is: "sv-svg-icon",
|
|
1095
1096
|
iconName: s.question.cssClasses.clearButtonIconId,
|
|
1096
1097
|
size: "auto"
|
|
1097
1098
|
}, null, 8, ["iconName"])) : p("", !0)
|
|
1098
|
-
], 10,
|
|
1099
|
+
], 10, Qs)
|
|
1099
1100
|
], 2)) : p("", !0),
|
|
1100
1101
|
s.question.showLoadingIndicator ? (i(), a("div", {
|
|
1101
1102
|
key: 1,
|
|
@@ -1105,33 +1106,33 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1105
1106
|
], 2)) : p("", !0)
|
|
1106
1107
|
], 6));
|
|
1107
1108
|
}
|
|
1108
|
-
}),
|
|
1109
|
+
}), Gs = ["innerHTML"], Xs = /* @__PURE__ */ y({
|
|
1109
1110
|
inheritAttrs: !1,
|
|
1110
1111
|
__name: "Html",
|
|
1111
1112
|
props: {
|
|
1112
1113
|
question: {}
|
|
1113
1114
|
},
|
|
1114
1115
|
setup(u) {
|
|
1115
|
-
const e = u, n =
|
|
1116
|
+
const e = u, n = f(null);
|
|
1116
1117
|
T(e, n);
|
|
1117
|
-
const s =
|
|
1118
|
+
const s = U(() => e.question.locHtml);
|
|
1118
1119
|
return (o, t) => (i(), a("div", {
|
|
1119
1120
|
ref_key: "root",
|
|
1120
1121
|
ref: n,
|
|
1121
1122
|
class: r(o.question.renderCssRoot),
|
|
1122
1123
|
innerHTML: w(s)
|
|
1123
|
-
}, null, 10,
|
|
1124
|
+
}, null, 10, Gs));
|
|
1124
1125
|
}
|
|
1125
|
-
}),
|
|
1126
|
+
}), Js = ["src", "alt", "width", "height"], Ys = ["src", "width", "height"], _s = ["src", "title", "width", "height"], xs = /* @__PURE__ */ y({
|
|
1126
1127
|
inheritAttrs: !1,
|
|
1127
1128
|
__name: "Image",
|
|
1128
1129
|
props: {
|
|
1129
1130
|
question: {}
|
|
1130
1131
|
},
|
|
1131
1132
|
setup(u) {
|
|
1132
|
-
const e = u, n =
|
|
1133
|
+
const e = u, n = f(null);
|
|
1133
1134
|
T(e, n);
|
|
1134
|
-
const s =
|
|
1135
|
+
const s = U(() => e.question.locImageLink);
|
|
1135
1136
|
return (o, t) => (i(), a("div", {
|
|
1136
1137
|
class: r(o.question.cssClasses.root),
|
|
1137
1138
|
ref_key: "root",
|
|
@@ -1144,7 +1145,7 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1144
1145
|
alt: o.question.altText || o.question.title,
|
|
1145
1146
|
width: o.question.renderedWidth,
|
|
1146
1147
|
height: o.question.renderedHeight,
|
|
1147
|
-
style:
|
|
1148
|
+
style: k({
|
|
1148
1149
|
objectFit: o.question.imageFit,
|
|
1149
1150
|
width: o.question.renderedStyleWidth,
|
|
1150
1151
|
height: o.question.renderedStyleHeight
|
|
@@ -1155,8 +1156,8 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1155
1156
|
onError: t[1] || (t[1] = (l) => {
|
|
1156
1157
|
o.question.onErrorHandler();
|
|
1157
1158
|
})
|
|
1158
|
-
}, null, 46,
|
|
1159
|
-
[
|
|
1159
|
+
}, null, 46, Js)), [
|
|
1160
|
+
[A, w(s) && !o.question.contentNotLoaded]
|
|
1160
1161
|
]) : p("", !0),
|
|
1161
1162
|
o.question.renderedMode === "video" ? B((i(), a("video", {
|
|
1162
1163
|
key: 1,
|
|
@@ -1165,7 +1166,7 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1165
1166
|
src: w(s),
|
|
1166
1167
|
width: o.question.renderedWidth,
|
|
1167
1168
|
height: o.question.renderedHeight,
|
|
1168
|
-
style:
|
|
1169
|
+
style: k({
|
|
1169
1170
|
objectFit: o.question.imageFit,
|
|
1170
1171
|
width: o.question.renderedStyleWidth,
|
|
1171
1172
|
height: o.question.renderedStyleHeight
|
|
@@ -1176,8 +1177,8 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1176
1177
|
onError: t[3] || (t[3] = (l) => {
|
|
1177
1178
|
o.question.onErrorHandler();
|
|
1178
1179
|
})
|
|
1179
|
-
}, null, 46,
|
|
1180
|
-
[
|
|
1180
|
+
}, null, 46, Ys)), [
|
|
1181
|
+
[A, w(s) && !o.question.contentNotLoaded]
|
|
1181
1182
|
]) : p("", !0),
|
|
1182
1183
|
o.question.renderedMode === "youtube" ? (i(), a("iframe", {
|
|
1183
1184
|
key: 2,
|
|
@@ -1186,12 +1187,12 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1186
1187
|
title: o.question.renderedAltText,
|
|
1187
1188
|
width: o.question.renderedWidth,
|
|
1188
1189
|
height: o.question.renderedHeight,
|
|
1189
|
-
style:
|
|
1190
|
+
style: k({
|
|
1190
1191
|
objectFit: o.question.imageFit,
|
|
1191
1192
|
width: o.question.renderedStyleWidth,
|
|
1192
1193
|
height: o.question.renderedStyleHeight
|
|
1193
1194
|
})
|
|
1194
|
-
}, null, 14,
|
|
1195
|
+
}, null, 14, _s)) : p("", !0),
|
|
1195
1196
|
!w(s) || o.question.contentNotLoaded ? (i(), a("div", {
|
|
1196
1197
|
key: 3,
|
|
1197
1198
|
class: r(o.question.cssClasses.noImage)
|
|
@@ -1204,28 +1205,28 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1204
1205
|
], 2)) : p("", !0)
|
|
1205
1206
|
], 2));
|
|
1206
1207
|
}
|
|
1207
|
-
}),
|
|
1208
|
+
}), e1 = /* @__PURE__ */ y({
|
|
1208
1209
|
inheritAttrs: !1,
|
|
1209
1210
|
__name: "Expression",
|
|
1210
1211
|
props: {
|
|
1211
1212
|
question: {}
|
|
1212
1213
|
},
|
|
1213
1214
|
setup(u) {
|
|
1214
|
-
const e = u, n =
|
|
1215
|
+
const e = u, n = f(null);
|
|
1215
1216
|
return T(e, n), (s, o) => (i(), a("div", {
|
|
1216
1217
|
class: r(s.question.cssClasses.root),
|
|
1217
1218
|
ref_key: "root",
|
|
1218
1219
|
ref: n
|
|
1219
1220
|
}, I(s.question.formatedValue), 3));
|
|
1220
1221
|
}
|
|
1221
|
-
}),
|
|
1222
|
+
}), s1 = ["id", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "multiple", "title", "accept", "capture"], n1 = ["id", "multiple", "placeholder"], t1 = ["id", "multiple", "placeholder"], o1 = /* @__PURE__ */ y({
|
|
1222
1223
|
inheritAttrs: !1,
|
|
1223
1224
|
__name: "File",
|
|
1224
1225
|
props: {
|
|
1225
1226
|
question: {}
|
|
1226
1227
|
},
|
|
1227
1228
|
setup(u) {
|
|
1228
|
-
const e = u, n =
|
|
1229
|
+
const e = u, n = f(null);
|
|
1229
1230
|
return T(e, n), (s, o) => (i(), a("div", {
|
|
1230
1231
|
class: r(s.question.fileRootCss),
|
|
1231
1232
|
ref_key: "root",
|
|
@@ -1245,7 +1246,7 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1245
1246
|
title: s.question.inputTitle,
|
|
1246
1247
|
accept: s.question.acceptedTypes,
|
|
1247
1248
|
capture: s.question.renderCapture
|
|
1248
|
-
}, null, 10,
|
|
1249
|
+
}, null, 10, s1)) : p("", !0),
|
|
1249
1250
|
s.question.isReadOnlyAttr ? (i(), a("input", {
|
|
1250
1251
|
key: 1,
|
|
1251
1252
|
type: "file",
|
|
@@ -1255,7 +1256,7 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1255
1256
|
multiple: s.question.allowMultiple,
|
|
1256
1257
|
placeholder: s.question.title,
|
|
1257
1258
|
style: { color: "transparent" }
|
|
1258
|
-
}, null, 10,
|
|
1259
|
+
}, null, 10, n1)) : p("", !0),
|
|
1259
1260
|
s.question.isDisabledAttr ? (i(), a("input", {
|
|
1260
1261
|
key: 2,
|
|
1261
1262
|
type: "file",
|
|
@@ -1265,7 +1266,7 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1265
1266
|
multiple: s.question.allowMultiple,
|
|
1266
1267
|
placeholder: s.question.title,
|
|
1267
1268
|
style: { color: "transparent" }
|
|
1268
|
-
}, null, 10,
|
|
1269
|
+
}, null, 10, t1)) : p("", !0),
|
|
1269
1270
|
v("div", {
|
|
1270
1271
|
class: r(s.question.cssClasses.dragArea),
|
|
1271
1272
|
onDrop: o[0] || (o[0] = //@ts-ignore
|
|
@@ -1324,14 +1325,14 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1324
1325
|
], 34)
|
|
1325
1326
|
], 2));
|
|
1326
1327
|
}
|
|
1327
|
-
}),
|
|
1328
|
+
}), i1 = { class: "sv-hidden" }, Ce = "survey-imagepicker-item", r1 = /* @__PURE__ */ y({
|
|
1328
1329
|
inheritAttrs: !1,
|
|
1329
1330
|
__name: "Imagepicker",
|
|
1330
1331
|
props: {
|
|
1331
1332
|
question: {}
|
|
1332
1333
|
},
|
|
1333
1334
|
setup(u) {
|
|
1334
|
-
const e = u, n =
|
|
1335
|
+
const e = u, n = f(null);
|
|
1335
1336
|
T(e, n);
|
|
1336
1337
|
const s = (t) => e.question.getItemValueWrapperComponentName(t) || Ce, o = (t) => ({
|
|
1337
1338
|
componentName: Ce,
|
|
@@ -1343,11 +1344,11 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1343
1344
|
});
|
|
1344
1345
|
return (t, l) => (i(), a("fieldset", {
|
|
1345
1346
|
class: r(t.question.getSelectBaseRootCss()),
|
|
1346
|
-
style:
|
|
1347
|
+
style: k(t.question.getContainerStyle()),
|
|
1347
1348
|
ref_key: "root",
|
|
1348
1349
|
ref: n
|
|
1349
1350
|
}, [
|
|
1350
|
-
v("legend",
|
|
1351
|
+
v("legend", i1, I(t.question.locTitle.renderedHtml), 1),
|
|
1351
1352
|
t.question.hasColumns ? p("", !0) : (i(!0), a(M, { key: 0 }, V(t.question.visibleChoices, (d) => (i(), g(m, $({
|
|
1352
1353
|
key: d.value,
|
|
1353
1354
|
is: s(d)
|
|
@@ -1357,14 +1358,14 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1357
1358
|
key: C,
|
|
1358
1359
|
role: "presentation"
|
|
1359
1360
|
}, [
|
|
1360
|
-
(i(!0), a(M, null, V(d, (
|
|
1361
|
-
key:
|
|
1362
|
-
is: s(
|
|
1363
|
-
}, o(
|
|
1361
|
+
(i(!0), a(M, null, V(d, (L) => (i(), g(m, $({
|
|
1362
|
+
key: L.value,
|
|
1363
|
+
is: s(L)
|
|
1364
|
+
}, o(L)), null, 16, ["is"]))), 128))
|
|
1364
1365
|
], 2))), 128)) : p("", !0)
|
|
1365
1366
|
], 6));
|
|
1366
1367
|
}
|
|
1367
|
-
}),
|
|
1368
|
+
}), l1 = ["name", "value", "id", "disabled", "readonly", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], a1 = ["name", "value", "id", "disabled", "readonly", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], u1 = ["src", "width", "height", "alt"], d1 = ["src", "width", "height"], m1 = /* @__PURE__ */ y({
|
|
1368
1369
|
inheritAttrs: !1,
|
|
1369
1370
|
__name: "ImagepickerItem",
|
|
1370
1371
|
props: {
|
|
@@ -1382,7 +1383,7 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1382
1383
|
}
|
|
1383
1384
|
});
|
|
1384
1385
|
S(() => e.item);
|
|
1385
|
-
const o =
|
|
1386
|
+
const o = U(() => e.item.locImageLink);
|
|
1386
1387
|
return (t, l) => (i(), a("div", {
|
|
1387
1388
|
class: r(n(t.item))
|
|
1388
1389
|
}, [
|
|
@@ -1403,7 +1404,7 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1403
1404
|
"aria-invalid": t.question.ariaInvalid,
|
|
1404
1405
|
"aria-errormessage": t.question.ariaErrormessage,
|
|
1405
1406
|
class: r(t.question.cssClasses.itemControl)
|
|
1406
|
-
}, null, 10,
|
|
1407
|
+
}, null, 10, l1)), [
|
|
1407
1408
|
[ie, s.value]
|
|
1408
1409
|
]) : B((i(), a("input", {
|
|
1409
1410
|
key: 1,
|
|
@@ -1419,7 +1420,7 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1419
1420
|
"aria-invalid": t.question.ariaInvalid,
|
|
1420
1421
|
"aria-errormessage": t.question.ariaErrormessage,
|
|
1421
1422
|
class: r(t.question.cssClasses.itemControl)
|
|
1422
|
-
}, null, 10,
|
|
1423
|
+
}, null, 10, a1)), [
|
|
1423
1424
|
[se, s.value]
|
|
1424
1425
|
]),
|
|
1425
1426
|
v("div", {
|
|
@@ -1447,7 +1448,7 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1447
1448
|
src: w(o),
|
|
1448
1449
|
width: t.question.renderedImageWidth,
|
|
1449
1450
|
height: t.question.renderedImageHeight,
|
|
1450
|
-
style:
|
|
1451
|
+
style: k({ objectFit: t.question.imageFit }),
|
|
1451
1452
|
alt: t.item.locText.renderedHtml,
|
|
1452
1453
|
onLoad: l[2] || (l[2] = (d) => {
|
|
1453
1454
|
t.question.onContentLoaded(t.item, d);
|
|
@@ -1455,7 +1456,7 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1455
1456
|
onError: l[3] || (l[3] = (d) => {
|
|
1456
1457
|
t.item.onErrorHandler();
|
|
1457
1458
|
})
|
|
1458
|
-
}, null, 46,
|
|
1459
|
+
}, null, 46, u1)) : p("", !0),
|
|
1459
1460
|
w(o) && !t.item.contentNotLoaded && t.question.contentMode === "video" ? (i(), a("video", {
|
|
1460
1461
|
key: 2,
|
|
1461
1462
|
controls: "",
|
|
@@ -1463,18 +1464,18 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1463
1464
|
src: w(o),
|
|
1464
1465
|
width: t.question.renderedImageWidth,
|
|
1465
1466
|
height: t.question.renderedImageHeight,
|
|
1466
|
-
style:
|
|
1467
|
+
style: k({ objectFit: t.question.imageFit }),
|
|
1467
1468
|
onLoadedmetadata: l[4] || (l[4] = (d) => {
|
|
1468
1469
|
t.question.onContentLoaded(t.item, d);
|
|
1469
1470
|
}),
|
|
1470
1471
|
onError: l[5] || (l[5] = (d) => {
|
|
1471
1472
|
t.item.onErrorHandler();
|
|
1472
1473
|
})
|
|
1473
|
-
}, null, 46,
|
|
1474
|
+
}, null, 46, d1)) : p("", !0),
|
|
1474
1475
|
!w(o) || t.item.contentNotLoaded ? (i(), a("div", {
|
|
1475
1476
|
key: 3,
|
|
1476
1477
|
class: r(t.question.cssClasses.itemNoImage),
|
|
1477
|
-
style:
|
|
1478
|
+
style: k({
|
|
1478
1479
|
width: t.question.renderedImageWidth + "px",
|
|
1479
1480
|
height: t.question.renderedImageHeight + "px",
|
|
1480
1481
|
objectFit: t.question.imageFit
|
|
@@ -1501,14 +1502,14 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1501
1502
|
], 2)
|
|
1502
1503
|
], 2));
|
|
1503
1504
|
}
|
|
1504
|
-
}),
|
|
1505
|
+
}), p1 = /* @__PURE__ */ y({
|
|
1505
1506
|
inheritAttrs: !1,
|
|
1506
1507
|
__name: "Comment",
|
|
1507
1508
|
props: {
|
|
1508
1509
|
question: {}
|
|
1509
1510
|
},
|
|
1510
1511
|
setup(u) {
|
|
1511
|
-
const e = u, n =
|
|
1512
|
+
const e = u, n = f();
|
|
1512
1513
|
function s(o) {
|
|
1513
1514
|
n.value = o;
|
|
1514
1515
|
}
|
|
@@ -1537,14 +1538,14 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1537
1538
|
ref: n
|
|
1538
1539
|
}, I(o.question.value), 513));
|
|
1539
1540
|
}
|
|
1540
|
-
}),
|
|
1541
|
+
}), v1 = /* @__PURE__ */ y({
|
|
1541
1542
|
inheritAttrs: !1,
|
|
1542
1543
|
__name: "Dropdown",
|
|
1543
1544
|
props: {
|
|
1544
1545
|
question: {}
|
|
1545
1546
|
},
|
|
1546
1547
|
setup(u) {
|
|
1547
|
-
const e = u, n =
|
|
1548
|
+
const e = u, n = f(null);
|
|
1548
1549
|
return T(e, n), (s, o) => (i(), a("div", {
|
|
1549
1550
|
class: r(s.question.renderCssRoot),
|
|
1550
1551
|
ref_key: "root",
|
|
@@ -1561,23 +1562,23 @@ const As = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1561
1562
|
}, null, 8, ["question"])) : p("", !0)
|
|
1562
1563
|
], 2));
|
|
1563
1564
|
}
|
|
1564
|
-
}),
|
|
1565
|
+
}), C1 = ["id", "autocomplete", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "required"], c1 = {
|
|
1565
1566
|
key: 0,
|
|
1566
1567
|
value: ""
|
|
1567
|
-
},
|
|
1568
|
+
}, g1 = ["id"];
|
|
1568
1569
|
G.Instance.registerRenderer(
|
|
1569
1570
|
"dropdown",
|
|
1570
1571
|
"select",
|
|
1571
1572
|
"sv-dropdown-select"
|
|
1572
1573
|
);
|
|
1573
|
-
const
|
|
1574
|
+
const y1 = /* @__PURE__ */ y({
|
|
1574
1575
|
inheritAttrs: !1,
|
|
1575
1576
|
__name: "DropdownSelect",
|
|
1576
1577
|
props: {
|
|
1577
1578
|
question: {}
|
|
1578
1579
|
},
|
|
1579
1580
|
setup(u) {
|
|
1580
|
-
const e = u, n =
|
|
1581
|
+
const e = u, n = f(null);
|
|
1581
1582
|
T(e, n);
|
|
1582
1583
|
const s = (l) => {
|
|
1583
1584
|
e.question.onClick(l);
|
|
@@ -1605,7 +1606,7 @@ const g1 = /* @__PURE__ */ y({
|
|
|
1605
1606
|
disabled: "",
|
|
1606
1607
|
id: l.question.inputId,
|
|
1607
1608
|
class: r(l.question.getControlClass())
|
|
1608
|
-
}, I(l.question.readOnlyText), 11,
|
|
1609
|
+
}, I(l.question.readOnlyText), 11, g1)) : B((i(), a("select", {
|
|
1609
1610
|
key: 0,
|
|
1610
1611
|
id: l.question.inputId,
|
|
1611
1612
|
"onUpdate:modelValue": d[0] || (d[0] = (C) => t.value = C),
|
|
@@ -1619,13 +1620,13 @@ const g1 = /* @__PURE__ */ y({
|
|
|
1619
1620
|
"aria-errormessage": l.question.a11y_input_ariaErrormessage,
|
|
1620
1621
|
required: l.question.isRequired
|
|
1621
1622
|
}, [
|
|
1622
|
-
l.question.allowClear ? (i(), a("option",
|
|
1623
|
+
l.question.allowClear ? (i(), a("option", c1, I(l.question.placeholder), 1)) : p("", !0),
|
|
1623
1624
|
(i(!0), a(M, null, V(l.question.visibleChoices, (C) => (i(), g(m, {
|
|
1624
1625
|
is: "sv-dropdown-option-item",
|
|
1625
1626
|
item: C,
|
|
1626
1627
|
key: C.id
|
|
1627
1628
|
}, null, 8, ["item"]))), 128))
|
|
1628
|
-
], 42,
|
|
1629
|
+
], 42, C1)), [
|
|
1629
1630
|
[Be, t.value]
|
|
1630
1631
|
]),
|
|
1631
1632
|
l.question.cssClasses.chevronButtonIconId ? (i(), a("div", {
|
|
@@ -1648,58 +1649,58 @@ const g1 = /* @__PURE__ */ y({
|
|
|
1648
1649
|
}, null, 8, ["question"])) : p("", !0)
|
|
1649
1650
|
], 2));
|
|
1650
1651
|
}
|
|
1651
|
-
}),
|
|
1652
|
+
}), h1 = ["value", "disabled"], q1 = /* @__PURE__ */ y({
|
|
1652
1653
|
__name: "OptionItem",
|
|
1653
1654
|
props: {
|
|
1654
1655
|
item: {}
|
|
1655
1656
|
},
|
|
1656
1657
|
setup(u) {
|
|
1657
|
-
const e = u, n =
|
|
1658
|
+
const e = u, n = U(() => e.item.locText);
|
|
1658
1659
|
return S(() => e.item), (s, o) => (i(), a("option", {
|
|
1659
1660
|
value: s.item.value,
|
|
1660
1661
|
disabled: !s.item.isEnabled
|
|
1661
|
-
}, I(w(n)), 9,
|
|
1662
|
+
}, I(w(n)), 9, h1));
|
|
1662
1663
|
}
|
|
1663
|
-
}),
|
|
1664
|
+
}), w1 = ["id", "disabled", "tabindex", "role", "aria-required", "aria-invalid", "aria-errormessage", "aria-expanded", "aria-label", "aria-labelledby", "aria-describedby", "aria-controls", "aria-activedescendant", "required"], b1 = { style: { visibility: "hidden" } }, L1 = ["disabled", "inputmode", "id", "tabindex", "readonly", "role", "aria-required", "aria-invalid", "aria-errormessage", "aria-expanded", "aria-controls", "aria-label", "aria-labelledby", "aria-describedby", "aria-activedescendant", "placeholder"], k1 = ["id", "role", "aria-label", "aria-labelledby", "aria-describedby", "tabindex"], f1 = /* @__PURE__ */ y({
|
|
1664
1665
|
__name: "Dropdown",
|
|
1665
1666
|
props: {
|
|
1666
1667
|
question: {}
|
|
1667
1668
|
},
|
|
1668
1669
|
setup(u) {
|
|
1669
|
-
const e = u, n =
|
|
1670
|
+
const e = u, n = f(null), s = H(() => e.question.dropdownListModel), o = (b) => {
|
|
1670
1671
|
var R;
|
|
1671
|
-
(R = s.value) == null || R.onClick(
|
|
1672
|
-
}, t = (
|
|
1672
|
+
(R = s.value) == null || R.onClick(b);
|
|
1673
|
+
}, t = (b) => {
|
|
1673
1674
|
var R;
|
|
1674
|
-
(R = s.value) == null || R.keyHandler(
|
|
1675
|
+
(R = s.value) == null || R.keyHandler(b);
|
|
1675
1676
|
}, l = () => {
|
|
1676
1677
|
if (n.value) {
|
|
1677
|
-
const
|
|
1678
|
-
We.isTwoValueEquals(R,
|
|
1678
|
+
const b = n.value, R = s.value.inputStringRendered;
|
|
1679
|
+
We.isTwoValueEquals(R, b.value, !1, !0, !1) || (b.value = s.value.inputStringRendered);
|
|
1679
1680
|
}
|
|
1680
|
-
}, d = (
|
|
1681
|
-
e.question.onBlur(
|
|
1682
|
-
}, C = (
|
|
1683
|
-
e.question.onFocus(
|
|
1684
|
-
},
|
|
1685
|
-
s.value.inputStringRendered =
|
|
1681
|
+
}, d = (b) => {
|
|
1682
|
+
e.question.onBlur(b), l();
|
|
1683
|
+
}, C = (b) => {
|
|
1684
|
+
e.question.onFocus(b);
|
|
1685
|
+
}, L = (b) => {
|
|
1686
|
+
s.value.inputStringRendered = b.target.value;
|
|
1686
1687
|
}, h = H(
|
|
1687
1688
|
() => e.question.showSelectedItemLocText
|
|
1688
1689
|
), q = H(() => e.question.selectedItemLocText);
|
|
1689
|
-
return S(() => s.value),
|
|
1690
|
-
var N,
|
|
1690
|
+
return S(() => s.value), z(l), Z(l), (b, R) => {
|
|
1691
|
+
var N, K, j, ue;
|
|
1691
1692
|
return i(), a("div", {
|
|
1692
|
-
class: r(
|
|
1693
|
+
class: r(b.question.cssClasses.selectWrapper),
|
|
1693
1694
|
onClick: o
|
|
1694
1695
|
}, [
|
|
1695
|
-
|
|
1696
|
+
b.question.isReadOnly ? p("", !0) : (i(), a("div", {
|
|
1696
1697
|
key: 0,
|
|
1697
|
-
id:
|
|
1698
|
-
disabled:
|
|
1698
|
+
id: b.question.inputId,
|
|
1699
|
+
disabled: b.question.isDisabledAttr ? !0 : null,
|
|
1699
1700
|
tabindex: s.value.noTabIndex ? void 0 : 0,
|
|
1700
1701
|
onKeydown: t,
|
|
1701
1702
|
onBlur: d,
|
|
1702
|
-
class: r(
|
|
1703
|
+
class: r(b.question.getControlClass()),
|
|
1703
1704
|
role: s.value.ariaQuestionRole,
|
|
1704
1705
|
"aria-required": s.value.ariaQuestionRequired,
|
|
1705
1706
|
"aria-invalid": s.value.ariaQuestionInvalid,
|
|
@@ -1710,16 +1711,16 @@ const g1 = /* @__PURE__ */ y({
|
|
|
1710
1711
|
"aria-describedby": s.value.ariaQuestionDescribedby,
|
|
1711
1712
|
"aria-controls": s.value.ariaQuestionControls,
|
|
1712
1713
|
"aria-activedescendant": s.value.ariaQuestionActivedescendant,
|
|
1713
|
-
required:
|
|
1714
|
+
required: b.question.isRequired ? !0 : null
|
|
1714
1715
|
}, [
|
|
1715
1716
|
s.value.showHintPrefix ? (i(), a("div", {
|
|
1716
1717
|
key: 0,
|
|
1717
|
-
class: r(
|
|
1718
|
+
class: r(b.question.cssClasses.hintPrefix)
|
|
1718
1719
|
}, [
|
|
1719
1720
|
v("span", null, I(s.value.hintStringPrefix), 1)
|
|
1720
1721
|
], 2)) : p("", !0),
|
|
1721
1722
|
v("div", {
|
|
1722
|
-
class: r(
|
|
1723
|
+
class: r(b.question.cssClasses.controlValue)
|
|
1723
1724
|
}, [
|
|
1724
1725
|
h.value ? (i(), g(m, {
|
|
1725
1726
|
key: 0,
|
|
@@ -1728,26 +1729,27 @@ const g1 = /* @__PURE__ */ y({
|
|
|
1728
1729
|
}, null, 8, ["locString"])) : p("", !0),
|
|
1729
1730
|
s.value.showHintString ? (i(), a("div", {
|
|
1730
1731
|
key: 1,
|
|
1731
|
-
class: r(
|
|
1732
|
+
class: r(b.question.cssClasses.hintSuffix)
|
|
1732
1733
|
}, [
|
|
1733
|
-
v("span",
|
|
1734
|
+
v("span", b1, I(s.value.inputStringRendered), 1),
|
|
1734
1735
|
v("span", null, I(s.value.hintStringSuffix), 1)
|
|
1735
1736
|
], 2)) : p("", !0),
|
|
1736
|
-
|
|
1737
|
+
b.question.showInputFieldComponent ? (i(), g(m, {
|
|
1737
1738
|
key: 2,
|
|
1738
|
-
is:
|
|
1739
|
+
is: b.question.inputFieldComponentName,
|
|
1739
1740
|
item: s.value.getSelectedAction(),
|
|
1740
|
-
question:
|
|
1741
|
+
question: b.question
|
|
1741
1742
|
}, null, 8, ["is", "item", "question"])) : p("", !0),
|
|
1742
|
-
|
|
1743
|
+
s.value.needRenderInput ? (i(), a("input", {
|
|
1744
|
+
key: 3,
|
|
1743
1745
|
type: "text",
|
|
1744
1746
|
ref_key: "inputElement",
|
|
1745
1747
|
ref: n,
|
|
1746
|
-
class: r(
|
|
1747
|
-
disabled:
|
|
1748
|
+
class: r(b.question.cssClasses.filterStringInput),
|
|
1749
|
+
disabled: b.question.isDisabledAttr,
|
|
1748
1750
|
autocomplete: "off",
|
|
1749
1751
|
inputmode: s.value.inputMode,
|
|
1750
|
-
id:
|
|
1752
|
+
id: b.question.getInputId(),
|
|
1751
1753
|
tabindex: s.value.noTabIndex ? void 0 : -1,
|
|
1752
1754
|
readonly: s.value.filterReadOnly ? !0 : void 0,
|
|
1753
1755
|
role: s.value.ariaInputRole,
|
|
@@ -1761,58 +1763,59 @@ const g1 = /* @__PURE__ */ y({
|
|
|
1761
1763
|
"aria-describedby": s.value.ariaInputDescribedby,
|
|
1762
1764
|
"aria-activedescendant": s.value.ariaInputActivedescendant,
|
|
1763
1765
|
placeholder: s.value.placeholderRendered,
|
|
1764
|
-
onInput:
|
|
1766
|
+
onInput: L,
|
|
1765
1767
|
onBlur: d,
|
|
1766
1768
|
onFocus: C
|
|
1767
|
-
}, null, 42,
|
|
1769
|
+
}, null, 42, L1)) : p("", !0)
|
|
1768
1770
|
], 2),
|
|
1769
1771
|
c(m, {
|
|
1770
1772
|
is: "sv-action-bar",
|
|
1771
1773
|
model: s.value.editorButtons
|
|
1772
1774
|
}, null, 8, ["model"])
|
|
1773
|
-
], 42,
|
|
1774
|
-
|
|
1775
|
+
], 42, w1)),
|
|
1776
|
+
b.question.isInputReadOnly ? p("", !0) : (i(), g(m, {
|
|
1777
|
+
key: 1,
|
|
1778
|
+
is: "sv-popup",
|
|
1779
|
+
model: s.value.popupModel
|
|
1780
|
+
}, null, 8, ["model"])),
|
|
1781
|
+
b.question.isReadOnly ? (i(), a("div", {
|
|
1775
1782
|
key: 2,
|
|
1776
|
-
id:
|
|
1783
|
+
id: b.question.inputId,
|
|
1777
1784
|
role: (N = s.value) == null ? void 0 : N.ariaQuestionRole,
|
|
1778
|
-
"aria-label": (
|
|
1779
|
-
"aria-labelledby": (
|
|
1785
|
+
"aria-label": (K = s.value) == null ? void 0 : K.ariaQuestionLabel,
|
|
1786
|
+
"aria-labelledby": (j = s.value) == null ? void 0 : j.ariaQuestionLabelledby,
|
|
1780
1787
|
"aria-describedby": (ue = s.value) == null ? void 0 : ue.ariaQuestionDescribedby,
|
|
1781
1788
|
"aria-expanded": !1,
|
|
1782
1789
|
"aria-readonly": !0,
|
|
1783
1790
|
"aria-disabled": !0,
|
|
1784
|
-
tabindex:
|
|
1785
|
-
class: r(
|
|
1791
|
+
tabindex: b.question.isDisabledAttr ? void 0 : 0,
|
|
1792
|
+
class: r(b.question.getControlClass())
|
|
1786
1793
|
}, [
|
|
1787
1794
|
v("div", {
|
|
1788
|
-
class: r(
|
|
1795
|
+
class: r(b.question.cssClasses.controlValue)
|
|
1789
1796
|
}, [
|
|
1790
|
-
|
|
1797
|
+
b.question.locReadOnlyText ? (i(), g(m, {
|
|
1791
1798
|
key: 0,
|
|
1792
1799
|
is: "survey-string",
|
|
1793
|
-
locString:
|
|
1800
|
+
locString: b.question.locReadOnlyText
|
|
1794
1801
|
}, null, 8, ["locString"])) : p("", !0)
|
|
1795
1802
|
], 2),
|
|
1796
1803
|
c(m, {
|
|
1797
1804
|
is: "sv-action-bar",
|
|
1798
1805
|
model: s.value.editorButtons
|
|
1799
1806
|
}, null, 8, ["model"])
|
|
1800
|
-
], 10,
|
|
1801
|
-
key: 1,
|
|
1802
|
-
is: "sv-popup",
|
|
1803
|
-
model: s.value.popupModel
|
|
1804
|
-
}, null, 8, ["model"]))
|
|
1807
|
+
], 10, k1)) : p("", !0)
|
|
1805
1808
|
], 2);
|
|
1806
1809
|
};
|
|
1807
1810
|
}
|
|
1808
|
-
}),
|
|
1811
|
+
}), H1 = /* @__PURE__ */ y({
|
|
1809
1812
|
inheritAttrs: !1,
|
|
1810
1813
|
__name: "Tagbox",
|
|
1811
1814
|
props: {
|
|
1812
1815
|
question: {}
|
|
1813
1816
|
},
|
|
1814
1817
|
setup(u) {
|
|
1815
|
-
const e = u, n =
|
|
1818
|
+
const e = u, n = f(null);
|
|
1816
1819
|
return T(e, n), (s, o) => (i(), a("div", {
|
|
1817
1820
|
class: r(s.question.renderCssRoot),
|
|
1818
1821
|
ref_key: "root",
|
|
@@ -1829,7 +1832,7 @@ const g1 = /* @__PURE__ */ y({
|
|
|
1829
1832
|
}, null, 8, ["question"])) : p("", !0)
|
|
1830
1833
|
], 2));
|
|
1831
1834
|
}
|
|
1832
|
-
}),
|
|
1835
|
+
}), M1 = ["id", "tabindex", "disabled", "role", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage", "aria-controls", "aria-expanded", "aria-activedescendant", "required"], I1 = ["id", "role", "aria-label", "aria-labelledby", "aria-describedby", "tabindex"], V1 = /* @__PURE__ */ y({
|
|
1833
1836
|
__name: "Tagbox",
|
|
1834
1837
|
props: {
|
|
1835
1838
|
question: {}
|
|
@@ -1849,7 +1852,7 @@ const g1 = /* @__PURE__ */ y({
|
|
|
1849
1852
|
(C = n.value) == null || C.onBlur(d);
|
|
1850
1853
|
}, l = ne(() => e.question.selectedChoices);
|
|
1851
1854
|
return S(() => n.value), (d, C) => {
|
|
1852
|
-
var
|
|
1855
|
+
var L, h, q, b;
|
|
1853
1856
|
return i(), a("div", {
|
|
1854
1857
|
class: r(d.question.cssClasses.selectWrapper),
|
|
1855
1858
|
onClick: s
|
|
@@ -1883,24 +1886,30 @@ const g1 = /* @__PURE__ */ y({
|
|
|
1883
1886
|
question: d.question,
|
|
1884
1887
|
key: "item" + N
|
|
1885
1888
|
}, null, 8, ["item", "question"]))), 128)),
|
|
1886
|
-
|
|
1889
|
+
n.value.needRenderInput ? (i(), g(m, {
|
|
1890
|
+
key: 0,
|
|
1887
1891
|
is: "sv-tagbox-filter",
|
|
1888
1892
|
model: n.value,
|
|
1889
1893
|
question: d.question
|
|
1890
|
-
}, null, 8, ["model", "question"])
|
|
1894
|
+
}, null, 8, ["model", "question"])) : p("", !0)
|
|
1891
1895
|
], 2),
|
|
1892
1896
|
c(m, {
|
|
1893
1897
|
is: "sv-action-bar",
|
|
1894
1898
|
model: n.value.editorButtons
|
|
1895
1899
|
}, null, 8, ["model"])
|
|
1896
|
-
], 42,
|
|
1900
|
+
], 42, M1)),
|
|
1901
|
+
d.question.isInputReadOnly ? p("", !0) : (i(), g(m, {
|
|
1902
|
+
key: 1,
|
|
1903
|
+
is: "sv-popup",
|
|
1904
|
+
model: n.value.popupModel
|
|
1905
|
+
}, null, 8, ["model"])),
|
|
1897
1906
|
d.question.isReadOnly ? (i(), a("div", {
|
|
1898
1907
|
key: 2,
|
|
1899
1908
|
id: d.question.inputId,
|
|
1900
|
-
role: (
|
|
1909
|
+
role: (L = n.value) == null ? void 0 : L.ariaQuestionRole,
|
|
1901
1910
|
"aria-label": (h = n.value) == null ? void 0 : h.ariaQuestionLabel,
|
|
1902
1911
|
"aria-labelledby": (q = n.value) == null ? void 0 : q.ariaQuestionLabelledby,
|
|
1903
|
-
"aria-describedby": (
|
|
1912
|
+
"aria-describedby": (b = n.value) == null ? void 0 : b.ariaQuestionDescribedby,
|
|
1904
1913
|
"aria-expanded": !1,
|
|
1905
1914
|
"aria-readonly": !0,
|
|
1906
1915
|
"aria-disabled": !0,
|
|
@@ -1920,15 +1929,11 @@ const g1 = /* @__PURE__ */ y({
|
|
|
1920
1929
|
is: "sv-action-bar",
|
|
1921
1930
|
model: n.value.editorButtons
|
|
1922
1931
|
}, null, 8, ["model"])
|
|
1923
|
-
], 10,
|
|
1924
|
-
key: 1,
|
|
1925
|
-
is: "sv-popup",
|
|
1926
|
-
model: n.value.popupModel
|
|
1927
|
-
}, null, 8, ["model"]))
|
|
1932
|
+
], 10, I1)) : p("", !0)
|
|
1928
1933
|
], 2);
|
|
1929
1934
|
};
|
|
1930
1935
|
}
|
|
1931
|
-
}),
|
|
1936
|
+
}), S1 = { style: { visibility: "hidden" } }, R1 = ["placeholder", "disabled", "inputmode", "role", "aria-required", "aria-invalid", "aria-errormessage", "aria-expanded", "aria-label", "aria-labelledby", "aria-describedby", "aria-controls", "aria-activedescendant", "id", "readonly", "size"], T1 = /* @__PURE__ */ y({
|
|
1932
1937
|
__name: "TagboxFilter",
|
|
1933
1938
|
props: {
|
|
1934
1939
|
question: {},
|
|
@@ -1974,13 +1979,13 @@ const g1 = /* @__PURE__ */ y({
|
|
|
1974
1979
|
key: 1,
|
|
1975
1980
|
class: r(d.question.cssClasses.hintSuffix)
|
|
1976
1981
|
}, [
|
|
1977
|
-
v("span",
|
|
1982
|
+
v("span", S1, I(d.model.inputStringRendered), 1),
|
|
1978
1983
|
v("span", null, I(d.model.hintStringSuffix), 1)
|
|
1979
1984
|
], 2)) : p("", !0),
|
|
1980
1985
|
B(v("input", {
|
|
1981
1986
|
type: "text",
|
|
1982
1987
|
autocomplete: "off",
|
|
1983
|
-
"onUpdate:modelValue": C[0] || (C[0] = (
|
|
1988
|
+
"onUpdate:modelValue": C[0] || (C[0] = (L) => l.value = L),
|
|
1984
1989
|
class: r(d.question.cssClasses.filterStringInput),
|
|
1985
1990
|
placeholder: d.model.filterStringPlaceholder,
|
|
1986
1991
|
disabled: d.question.isDisabledAttr,
|
|
@@ -2002,13 +2007,13 @@ const g1 = /* @__PURE__ */ y({
|
|
|
2002
2007
|
onKeydown: s,
|
|
2003
2008
|
onBlur: o,
|
|
2004
2009
|
onFocus: t
|
|
2005
|
-
}, null, 42,
|
|
2010
|
+
}, null, 42, R1), [
|
|
2006
2011
|
[Ze, l.value]
|
|
2007
2012
|
])
|
|
2008
2013
|
], 2)
|
|
2009
2014
|
], 2));
|
|
2010
2015
|
}
|
|
2011
|
-
}),
|
|
2016
|
+
}), B1 = { class: "sv-tagbox__item-text" }, Z1 = /* @__PURE__ */ y({
|
|
2012
2017
|
__name: "TagboxItem",
|
|
2013
2018
|
props: {
|
|
2014
2019
|
question: {},
|
|
@@ -2022,7 +2027,7 @@ const g1 = /* @__PURE__ */ y({
|
|
|
2022
2027
|
class: "sv-tagbox__item",
|
|
2023
2028
|
key: s.item.key
|
|
2024
2029
|
}, [
|
|
2025
|
-
v("div",
|
|
2030
|
+
v("div", B1, [
|
|
2026
2031
|
c(m, {
|
|
2027
2032
|
is: "survey-string",
|
|
2028
2033
|
locString: s.item.locText
|
|
@@ -2041,14 +2046,14 @@ const g1 = /* @__PURE__ */ y({
|
|
|
2041
2046
|
], 2)
|
|
2042
2047
|
]));
|
|
2043
2048
|
}
|
|
2044
|
-
}),
|
|
2049
|
+
}), $1 = /* @__PURE__ */ y({
|
|
2045
2050
|
inheritAttrs: !1,
|
|
2046
2051
|
__name: "Ranking",
|
|
2047
2052
|
props: {
|
|
2048
2053
|
question: {}
|
|
2049
2054
|
},
|
|
2050
2055
|
setup(u) {
|
|
2051
|
-
const e = u, n =
|
|
2056
|
+
const e = u, n = f(null);
|
|
2052
2057
|
T(e, n);
|
|
2053
2058
|
const s = (t) => e.question.getItemValueWrapperComponentName(t) || "survey-ranking-item", o = (t, l, d) => ({
|
|
2054
2059
|
componentName: "survey-ranking-item",
|
|
@@ -2113,10 +2118,10 @@ const g1 = /* @__PURE__ */ y({
|
|
|
2113
2118
|
], 2)) : p("", !0)
|
|
2114
2119
|
], 2));
|
|
2115
2120
|
}
|
|
2116
|
-
}),
|
|
2121
|
+
}), D1 = ["id", "tabindex", "data-sv-drop-target-ranking-item"], A1 = {
|
|
2117
2122
|
tabindex: "-1",
|
|
2118
2123
|
style: { outline: "none" }
|
|
2119
|
-
},
|
|
2124
|
+
}, P1 = ["xlink:href"], N1 = ["xlink:href"], E1 = ["xlink:href"], W1 = /* @__PURE__ */ y({
|
|
2120
2125
|
inheritAttrs: !1,
|
|
2121
2126
|
__name: "RankingItem",
|
|
2122
2127
|
props: {
|
|
@@ -2152,7 +2157,7 @@ const g1 = /* @__PURE__ */ y({
|
|
|
2152
2157
|
);
|
|
2153
2158
|
})
|
|
2154
2159
|
}, [
|
|
2155
|
-
v("div",
|
|
2160
|
+
v("div", A1, [
|
|
2156
2161
|
v("div", {
|
|
2157
2162
|
class: r(s.question.cssClasses.itemGhostNode)
|
|
2158
2163
|
}, null, 2),
|
|
@@ -2167,14 +2172,14 @@ const g1 = /* @__PURE__ */ y({
|
|
|
2167
2172
|
}, [
|
|
2168
2173
|
v("use", {
|
|
2169
2174
|
"xlink:href": s.question.dragDropSvgIcon
|
|
2170
|
-
}, null, 8,
|
|
2175
|
+
}, null, 8, P1)
|
|
2171
2176
|
], 2)),
|
|
2172
2177
|
(i(), a("svg", {
|
|
2173
2178
|
class: r(s.question.getIconFocusCss())
|
|
2174
2179
|
}, [
|
|
2175
2180
|
v("use", {
|
|
2176
2181
|
"xlink:href": s.question.arrowsSvgIcon
|
|
2177
|
-
}, null, 8,
|
|
2182
|
+
}, null, 8, N1)
|
|
2178
2183
|
], 2))
|
|
2179
2184
|
], 2),
|
|
2180
2185
|
!s.unrankedItem && n.value ? (i(), a("div", {
|
|
@@ -2187,7 +2192,7 @@ const g1 = /* @__PURE__ */ y({
|
|
|
2187
2192
|
(i(), a("svg", null, [
|
|
2188
2193
|
v("use", {
|
|
2189
2194
|
"xlink:href": s.question.dashSvgIcon
|
|
2190
|
-
}, null, 8,
|
|
2195
|
+
}, null, 8, E1)
|
|
2191
2196
|
]))
|
|
2192
2197
|
], 2)),
|
|
2193
2198
|
c(m, {
|
|
@@ -2197,9 +2202,9 @@ const g1 = /* @__PURE__ */ y({
|
|
|
2197
2202
|
}, null, 8, ["is", "item", "cssClasses"])
|
|
2198
2203
|
], 2)
|
|
2199
2204
|
])
|
|
2200
|
-
], 42,
|
|
2205
|
+
], 42, D1));
|
|
2201
2206
|
}
|
|
2202
|
-
}),
|
|
2207
|
+
}), F1 = /* @__PURE__ */ y({
|
|
2203
2208
|
inheritAttrs: !1,
|
|
2204
2209
|
__name: "RankingItemContent",
|
|
2205
2210
|
props: {
|
|
@@ -2216,17 +2221,17 @@ const g1 = /* @__PURE__ */ y({
|
|
|
2216
2221
|
}, null, 8, ["locString"])
|
|
2217
2222
|
], 2));
|
|
2218
2223
|
}
|
|
2219
|
-
}),
|
|
2224
|
+
}), O1 = { role: "radiogroup" }, z1 = /* @__PURE__ */ v("legend", {
|
|
2220
2225
|
role: "presentation",
|
|
2221
2226
|
class: "sv-hidden"
|
|
2222
|
-
}, null, -1),
|
|
2227
|
+
}, null, -1), U1 = /* @__PURE__ */ y({
|
|
2223
2228
|
inheritAttrs: !1,
|
|
2224
2229
|
__name: "Rating",
|
|
2225
2230
|
props: {
|
|
2226
2231
|
question: {}
|
|
2227
2232
|
},
|
|
2228
2233
|
setup(u) {
|
|
2229
|
-
const e = u, n =
|
|
2234
|
+
const e = u, n = f(null);
|
|
2230
2235
|
T(e, n);
|
|
2231
2236
|
const s = (o) => e.question.getInputId(o);
|
|
2232
2237
|
return (o, t) => (i(), a("div", {
|
|
@@ -2234,8 +2239,8 @@ const g1 = /* @__PURE__ */ y({
|
|
|
2234
2239
|
ref_key: "root",
|
|
2235
2240
|
ref: n
|
|
2236
2241
|
}, [
|
|
2237
|
-
v("fieldset",
|
|
2238
|
-
|
|
2242
|
+
v("fieldset", O1, [
|
|
2243
|
+
z1,
|
|
2239
2244
|
o.question.hasMinLabel ? (i(), a("span", {
|
|
2240
2245
|
key: 0,
|
|
2241
2246
|
class: r(o.question.cssClasses.minText)
|
|
@@ -2264,7 +2269,7 @@ const g1 = /* @__PURE__ */ y({
|
|
|
2264
2269
|
])
|
|
2265
2270
|
], 2));
|
|
2266
2271
|
}
|
|
2267
|
-
}),
|
|
2272
|
+
}), Q1 = ["name", "id", "value", "disabled", "readonly", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], K1 = ["data-text"], j1 = /* @__PURE__ */ y({
|
|
2268
2273
|
__name: "RatingItem",
|
|
2269
2274
|
props: {
|
|
2270
2275
|
question: {},
|
|
@@ -2291,7 +2296,7 @@ const g1 = /* @__PURE__ */ y({
|
|
|
2291
2296
|
"aria-label": n.question.ariaLabel,
|
|
2292
2297
|
"aria-invalid": n.question.ariaInvalid,
|
|
2293
2298
|
"aria-errormessage": n.question.ariaErrormessage
|
|
2294
|
-
}, null, 8,
|
|
2299
|
+
}, null, 8, Q1),
|
|
2295
2300
|
v("span", {
|
|
2296
2301
|
class: r(n.question.cssClasses.itemText),
|
|
2297
2302
|
"data-text": n.item.text
|
|
@@ -2300,10 +2305,10 @@ const g1 = /* @__PURE__ */ y({
|
|
|
2300
2305
|
is: "survey-string",
|
|
2301
2306
|
locString: n.item.locText
|
|
2302
2307
|
}, null, 8, ["locString"])
|
|
2303
|
-
], 10,
|
|
2308
|
+
], 10, K1)
|
|
2304
2309
|
], 34));
|
|
2305
2310
|
}
|
|
2306
|
-
}),
|
|
2311
|
+
}), G1 = ["title"], X1 = ["name", "id", "value", "disabled", "readonly", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], J1 = /* @__PURE__ */ y({
|
|
2307
2312
|
__name: "RatingItemSmiley",
|
|
2308
2313
|
props: {
|
|
2309
2314
|
question: {},
|
|
@@ -2315,7 +2320,7 @@ const g1 = /* @__PURE__ */ y({
|
|
|
2315
2320
|
return S(() => e.item), (n, s) => (i(), a("label", {
|
|
2316
2321
|
key: n.item.value,
|
|
2317
2322
|
onMousedown: s[1] || (s[1] = (o) => n.question.onMouseDown()),
|
|
2318
|
-
style:
|
|
2323
|
+
style: k(n.question.getItemStyle(n.item.itemValue, n.item.highlight)),
|
|
2319
2324
|
class: r(n.question.getItemClass(n.item.itemValue, n.item.highlight)),
|
|
2320
2325
|
onMouseover: s[2] || (s[2] = (o) => n.question.onItemMouseIn(n.item)),
|
|
2321
2326
|
onMouseleave: s[3] || (s[3] = (o) => n.question.onItemMouseOut(n.item)),
|
|
@@ -2334,15 +2339,15 @@ const g1 = /* @__PURE__ */ y({
|
|
|
2334
2339
|
"aria-label": n.question.ariaLabel,
|
|
2335
2340
|
"aria-invalid": n.question.ariaInvalid,
|
|
2336
2341
|
"aria-errormessage": n.question.ariaErrormessage
|
|
2337
|
-
}, null, 8,
|
|
2342
|
+
}, null, 8, X1),
|
|
2338
2343
|
c(m, {
|
|
2339
2344
|
is: "sv-svg-icon",
|
|
2340
2345
|
iconName: n.question.getItemSmileyIconName(n.item.itemValue),
|
|
2341
2346
|
size: "auto"
|
|
2342
2347
|
}, null, 8, ["iconName"])
|
|
2343
|
-
], 46,
|
|
2348
|
+
], 46, G1));
|
|
2344
2349
|
}
|
|
2345
|
-
}),
|
|
2350
|
+
}), Y1 = ["title"], _1 = ["name", "id", "value", "disabled", "readonly", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], x1 = /* @__PURE__ */ y({
|
|
2346
2351
|
__name: "RatingItemStar",
|
|
2347
2352
|
props: {
|
|
2348
2353
|
question: {},
|
|
@@ -2372,7 +2377,7 @@ const g1 = /* @__PURE__ */ y({
|
|
|
2372
2377
|
"aria-label": n.question.ariaLabel,
|
|
2373
2378
|
"aria-invalid": n.question.ariaInvalid,
|
|
2374
2379
|
"aria-errormessage": n.question.ariaErrormessage
|
|
2375
|
-
}, null, 8,
|
|
2380
|
+
}, null, 8, _1),
|
|
2376
2381
|
c(m, {
|
|
2377
2382
|
is: "sv-svg-icon",
|
|
2378
2383
|
class: r("sv-star"),
|
|
@@ -2385,12 +2390,12 @@ const g1 = /* @__PURE__ */ y({
|
|
|
2385
2390
|
iconName: n.question.itemStarIconAlt,
|
|
2386
2391
|
size: "auto"
|
|
2387
2392
|
}, null, 8, ["iconName"])
|
|
2388
|
-
], 42,
|
|
2393
|
+
], 42, Y1));
|
|
2389
2394
|
}
|
|
2390
|
-
}),
|
|
2395
|
+
}), en = { class: "sd-rating-dropdown-item" }, sn = { class: "sd-rating-dropdown-item_text" }, nn = {
|
|
2391
2396
|
key: 0,
|
|
2392
2397
|
class: "sd-rating-dropdown-item_description"
|
|
2393
|
-
},
|
|
2398
|
+
}, tn = /* @__PURE__ */ y({
|
|
2394
2399
|
__name: "RatingDropdownItem",
|
|
2395
2400
|
props: {
|
|
2396
2401
|
item: {},
|
|
@@ -2398,9 +2403,9 @@ const g1 = /* @__PURE__ */ y({
|
|
|
2398
2403
|
},
|
|
2399
2404
|
setup(u) {
|
|
2400
2405
|
const e = u;
|
|
2401
|
-
return S(() => e.item), (n, s) => (i(), a("div",
|
|
2402
|
-
v("span",
|
|
2403
|
-
n.item.description ? (i(), a("div",
|
|
2406
|
+
return S(() => e.item), (n, s) => (i(), a("div", en, [
|
|
2407
|
+
v("span", sn, I(n.item.title), 1),
|
|
2408
|
+
n.item.description ? (i(), a("div", nn, [
|
|
2404
2409
|
c(m, {
|
|
2405
2410
|
is: "survey-string",
|
|
2406
2411
|
locString: n.item.description
|
|
@@ -2414,14 +2419,14 @@ G.Instance.registerRenderer(
|
|
|
2414
2419
|
"dropdown",
|
|
2415
2420
|
"sv-rating-dropdown"
|
|
2416
2421
|
);
|
|
2417
|
-
const
|
|
2422
|
+
const on = /* @__PURE__ */ y({
|
|
2418
2423
|
inheritAttrs: !1,
|
|
2419
2424
|
__name: "RatingDropdown",
|
|
2420
2425
|
props: {
|
|
2421
2426
|
question: {}
|
|
2422
2427
|
},
|
|
2423
2428
|
setup(u) {
|
|
2424
|
-
const e = u, n =
|
|
2429
|
+
const e = u, n = f(null);
|
|
2425
2430
|
return T(e, n), (s, o) => (i(), a("div", {
|
|
2426
2431
|
class: r(s.question.cssClasses.rootDropdown),
|
|
2427
2432
|
ref_key: "root",
|
|
@@ -2433,14 +2438,14 @@ const tn = /* @__PURE__ */ y({
|
|
|
2433
2438
|
}, null, 8, ["question"])
|
|
2434
2439
|
], 2));
|
|
2435
2440
|
}
|
|
2436
|
-
}),
|
|
2441
|
+
}), rn = ["name", "value", "id", ".indeterminate", "disabled", "readonly", "role", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], ln = /* @__PURE__ */ y({
|
|
2437
2442
|
inheritAttrs: !1,
|
|
2438
2443
|
__name: "BooleanSwitch",
|
|
2439
2444
|
props: {
|
|
2440
2445
|
question: {}
|
|
2441
2446
|
},
|
|
2442
2447
|
setup(u) {
|
|
2443
|
-
const e = u, n =
|
|
2448
|
+
const e = u, n = f(null);
|
|
2444
2449
|
T(e, n);
|
|
2445
2450
|
const s = (t, l) => {
|
|
2446
2451
|
e.question.onLabelClick(t, l);
|
|
@@ -2473,7 +2478,7 @@ const tn = /* @__PURE__ */ y({
|
|
|
2473
2478
|
"aria-describedby": t.question.a11y_input_ariaDescribedBy,
|
|
2474
2479
|
"aria-invalid": t.question.a11y_input_ariaInvalid,
|
|
2475
2480
|
"aria-errormessage": t.question.a11y_input_ariaErrormessage
|
|
2476
|
-
}, null, 42,
|
|
2481
|
+
}, null, 42, rn), [
|
|
2477
2482
|
[ie, t.question.booleanValue]
|
|
2478
2483
|
]),
|
|
2479
2484
|
v("div", {
|
|
@@ -2529,14 +2534,14 @@ G.Instance.registerRenderer(
|
|
|
2529
2534
|
"radio",
|
|
2530
2535
|
"sv-boolean-radio"
|
|
2531
2536
|
);
|
|
2532
|
-
const
|
|
2537
|
+
const an = /* @__PURE__ */ y({
|
|
2533
2538
|
inheritAttrs: !1,
|
|
2534
2539
|
__name: "BooleanRadio",
|
|
2535
2540
|
props: {
|
|
2536
2541
|
question: {}
|
|
2537
2542
|
},
|
|
2538
2543
|
setup(u) {
|
|
2539
|
-
const e =
|
|
2544
|
+
const e = f(null);
|
|
2540
2545
|
return T(u, e), (s, o) => (i(), a("div", {
|
|
2541
2546
|
class: r(s.question.cssClasses.rootRadio),
|
|
2542
2547
|
ref_key: "root",
|
|
@@ -2570,7 +2575,7 @@ const ln = /* @__PURE__ */ y({
|
|
|
2570
2575
|
], 2)
|
|
2571
2576
|
], 2));
|
|
2572
2577
|
}
|
|
2573
|
-
}),
|
|
2578
|
+
}), un = ["name", "value", "checked", "aria-errormessage", "disabled", "readonly"], dn = ["xlink:href"], mn = /* @__PURE__ */ y({
|
|
2574
2579
|
__name: "BooleanRadioItem",
|
|
2575
2580
|
props: {
|
|
2576
2581
|
question: {},
|
|
@@ -2599,7 +2604,7 @@ const ln = /* @__PURE__ */ y({
|
|
|
2599
2604
|
readonly: s.question.isReadOnlyAttr,
|
|
2600
2605
|
class: r(s.question.cssClasses.itemRadioControl),
|
|
2601
2606
|
onChange: n
|
|
2602
|
-
}, null, 42,
|
|
2607
|
+
}, null, 42, un),
|
|
2603
2608
|
s.question.cssClasses.materialRadioDecorator ? (i(), a("span", {
|
|
2604
2609
|
key: 0,
|
|
2605
2610
|
class: r(s.question.cssClasses.materialRadioDecorator)
|
|
@@ -2610,7 +2615,7 @@ const ln = /* @__PURE__ */ y({
|
|
|
2610
2615
|
}, [
|
|
2611
2616
|
v("use", {
|
|
2612
2617
|
"xlink:href": s.question.itemSvgIcon
|
|
2613
|
-
}, null, 8,
|
|
2618
|
+
}, null, 8, dn)
|
|
2614
2619
|
], 2)) : p("", !0)
|
|
2615
2620
|
], 2)) : p("", !0),
|
|
2616
2621
|
v("span", {
|
|
@@ -2624,13 +2629,13 @@ const ln = /* @__PURE__ */ y({
|
|
|
2624
2629
|
], 2)
|
|
2625
2630
|
], 2));
|
|
2626
2631
|
}
|
|
2627
|
-
}),
|
|
2632
|
+
}), pn = ["name", "value", "id", ".indeterminate", "disabled", "readonly", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], vn = ["xlink:href"], Cn = /* @__PURE__ */ v("span", { class: "check" }, null, -1), cn = ["id"], gn = ["id"];
|
|
2628
2633
|
G.Instance.registerRenderer(
|
|
2629
2634
|
"boolean",
|
|
2630
2635
|
"checkbox",
|
|
2631
2636
|
"sv-boolean-checkbox"
|
|
2632
2637
|
);
|
|
2633
|
-
const
|
|
2638
|
+
const yn = /* @__PURE__ */ y({
|
|
2634
2639
|
inheritAttrs: !1,
|
|
2635
2640
|
__name: "BooleanCheckbox",
|
|
2636
2641
|
props: {
|
|
@@ -2638,7 +2643,7 @@ const gn = /* @__PURE__ */ y({
|
|
|
2638
2643
|
css: {}
|
|
2639
2644
|
},
|
|
2640
2645
|
setup(u) {
|
|
2641
|
-
const e = u, n =
|
|
2646
|
+
const e = u, n = f(null);
|
|
2642
2647
|
return T(e, n), (s, o) => (i(), a("div", {
|
|
2643
2648
|
class: r(s.question.cssClasses.rootCheckbox),
|
|
2644
2649
|
ref_key: "root",
|
|
@@ -2666,7 +2671,7 @@ const gn = /* @__PURE__ */ y({
|
|
|
2666
2671
|
"aria-describedby": s.question.a11y_input_ariaDescribedBy,
|
|
2667
2672
|
"aria-invalid": s.question.a11y_input_ariaInvalid,
|
|
2668
2673
|
"aria-errormessage": s.question.a11y_input_ariaErrormessage
|
|
2669
|
-
}, null, 42,
|
|
2674
|
+
}, null, 42, pn), [
|
|
2670
2675
|
[ie, s.question.booleanValue]
|
|
2671
2676
|
]),
|
|
2672
2677
|
v("span", {
|
|
@@ -2678,9 +2683,9 @@ const gn = /* @__PURE__ */ y({
|
|
|
2678
2683
|
}, [
|
|
2679
2684
|
v("use", {
|
|
2680
2685
|
"xlink:href": s.question.svgIcon
|
|
2681
|
-
}, null, 8,
|
|
2686
|
+
}, null, 8, vn)
|
|
2682
2687
|
], 2)) : p("", !0),
|
|
2683
|
-
|
|
2688
|
+
Cn
|
|
2684
2689
|
], 2),
|
|
2685
2690
|
s.question.isLabelRendered ? (i(), a("span", {
|
|
2686
2691
|
key: 0,
|
|
@@ -2699,7 +2704,7 @@ const gn = /* @__PURE__ */ y({
|
|
|
2699
2704
|
element: s.question,
|
|
2700
2705
|
css: s.css
|
|
2701
2706
|
}, null, 8, ["element", "css"])) : p("", !0)
|
|
2702
|
-
], 10,
|
|
2707
|
+
], 10, cn)) : p("", !0)
|
|
2703
2708
|
], 2),
|
|
2704
2709
|
s.question.canRenderLabelDescription ? (i(), a("div", {
|
|
2705
2710
|
key: 0,
|
|
@@ -2710,18 +2715,18 @@ const gn = /* @__PURE__ */ y({
|
|
|
2710
2715
|
is: "survey-string",
|
|
2711
2716
|
locString: s.question.locDescription
|
|
2712
2717
|
}, null, 8, ["locString"])
|
|
2713
|
-
], 10,
|
|
2718
|
+
], 10, gn)) : p("", !0)
|
|
2714
2719
|
], 2)
|
|
2715
2720
|
], 2));
|
|
2716
2721
|
}
|
|
2717
|
-
}),
|
|
2722
|
+
}), hn = /* @__PURE__ */ y({
|
|
2718
2723
|
inheritAttrs: !1,
|
|
2719
2724
|
__name: "Multipletext",
|
|
2720
2725
|
props: {
|
|
2721
2726
|
question: {}
|
|
2722
2727
|
},
|
|
2723
2728
|
setup(u) {
|
|
2724
|
-
const e = u, n =
|
|
2729
|
+
const e = u, n = f(null), s = ne(() => e.question.getRows());
|
|
2725
2730
|
return T(e, n), (o, t) => (i(), a("table", {
|
|
2726
2731
|
class: r(o.question.getQuestionRootCss()),
|
|
2727
2732
|
ref_key: "root",
|
|
@@ -2750,7 +2755,7 @@ const gn = /* @__PURE__ */ y({
|
|
|
2750
2755
|
])
|
|
2751
2756
|
], 2));
|
|
2752
2757
|
}
|
|
2753
|
-
}),
|
|
2758
|
+
}), qn = { key: 1 }, wn = { key: 2 }, bn = /* @__PURE__ */ y({
|
|
2754
2759
|
__name: "MultipletextItem",
|
|
2755
2760
|
props: {
|
|
2756
2761
|
question: {},
|
|
@@ -2770,7 +2775,7 @@ const gn = /* @__PURE__ */ y({
|
|
|
2770
2775
|
}, [
|
|
2771
2776
|
v("span", {
|
|
2772
2777
|
class: r(o.question.getItemTitleCss()),
|
|
2773
|
-
style:
|
|
2778
|
+
style: k({
|
|
2774
2779
|
minWidth: o.question.itemTitleWidth,
|
|
2775
2780
|
width: o.question.itemTitleWidth
|
|
2776
2781
|
})
|
|
@@ -2779,12 +2784,12 @@ const gn = /* @__PURE__ */ y({
|
|
|
2779
2784
|
key: 0,
|
|
2780
2785
|
class: r(o.question.cssClasses.requiredMark)
|
|
2781
2786
|
}, I(s.value.editor.requiredMark), 3)) : p("", !0),
|
|
2782
|
-
s.value.editor.isRequireTextBeforeTitle || s.value.editor.isRequireTextOnStart ? (i(), a("span",
|
|
2787
|
+
s.value.editor.isRequireTextBeforeTitle || s.value.editor.isRequireTextOnStart ? (i(), a("span", qn, " ")) : p("", !0),
|
|
2783
2788
|
c(m, {
|
|
2784
2789
|
is: "survey-string",
|
|
2785
2790
|
locString: s.value.locTitle
|
|
2786
2791
|
}, null, 8, ["locString"]),
|
|
2787
|
-
s.value.editor.isRequireTextAfterTitle ? (i(), a("span",
|
|
2792
|
+
s.value.editor.isRequireTextAfterTitle ? (i(), a("span", wn, " ")) : p("", !0),
|
|
2788
2793
|
s.value.editor.isRequireTextAfterTitle ? (i(), a("span", {
|
|
2789
2794
|
key: 3,
|
|
2790
2795
|
"aria-hidden": "true",
|
|
@@ -2803,7 +2808,7 @@ const gn = /* @__PURE__ */ y({
|
|
|
2803
2808
|
], 34))
|
|
2804
2809
|
], 2));
|
|
2805
2810
|
}
|
|
2806
|
-
}),
|
|
2811
|
+
}), Ln = /* @__PURE__ */ y({
|
|
2807
2812
|
inheritAttrs: !1,
|
|
2808
2813
|
__name: "Breadcrumbs",
|
|
2809
2814
|
props: {
|
|
@@ -2833,7 +2838,7 @@ const gn = /* @__PURE__ */ y({
|
|
|
2833
2838
|
], 64))), 128))
|
|
2834
2839
|
], 2)) : p("", !0);
|
|
2835
2840
|
}
|
|
2836
|
-
}),
|
|
2841
|
+
}), kn = ["onClick", "title"], fn = ["onClick", "title"], Hn = { key: 1 }, Mn = { key: 1 }, In = /* @__PURE__ */ y({
|
|
2837
2842
|
__name: "SingleInputSummary",
|
|
2838
2843
|
props: {
|
|
2839
2844
|
summary: {},
|
|
@@ -2841,13 +2846,13 @@ const gn = /* @__PURE__ */ y({
|
|
|
2841
2846
|
},
|
|
2842
2847
|
setup(u) {
|
|
2843
2848
|
const e = u, n = H(() => "survey-placeholder-" + e.summary.question.getTemplate()), s = H(() => F.Instance.isComponentRegistered(n.value));
|
|
2844
|
-
return (o, t) => o.summary.isEmpty() ? (i(), a("div",
|
|
2849
|
+
return (o, t) => o.summary.isEmpty() ? (i(), a("div", Hn, [
|
|
2845
2850
|
s.value ? (i(), g(m, {
|
|
2846
2851
|
key: 0,
|
|
2847
2852
|
is: "survey-placeholder-" + o.summary.question.getTemplate(),
|
|
2848
2853
|
cssClasses: o.css,
|
|
2849
2854
|
question: o.summary.question
|
|
2850
|
-
}, null, 8, ["is", "cssClasses", "question"])) : (i(), a("div",
|
|
2855
|
+
}, null, 8, ["is", "cssClasses", "question"])) : (i(), a("div", Mn, [
|
|
2851
2856
|
c(m, {
|
|
2852
2857
|
is: "survey-string",
|
|
2853
2858
|
locString: o.summary.noEntry
|
|
@@ -2883,7 +2888,7 @@ const gn = /* @__PURE__ */ y({
|
|
|
2883
2888
|
iconName: "icon-editsmall-16x16",
|
|
2884
2889
|
size: "auto"
|
|
2885
2890
|
})
|
|
2886
|
-
], 10,
|
|
2891
|
+
], 10, kn)) : p("", !0),
|
|
2887
2892
|
l.showRemove && l.btnRemove ? (i(), a("button", {
|
|
2888
2893
|
key: 1,
|
|
2889
2894
|
class: r(o.css.summaryRowActionDelete),
|
|
@@ -2895,19 +2900,19 @@ const gn = /* @__PURE__ */ y({
|
|
|
2895
2900
|
iconName: "icon-delete-16x16",
|
|
2896
2901
|
size: "auto"
|
|
2897
2902
|
})
|
|
2898
|
-
], 10,
|
|
2903
|
+
], 10, fn)) : p("", !0)
|
|
2899
2904
|
], 2)
|
|
2900
2905
|
], 2))), 128))
|
|
2901
2906
|
], 2));
|
|
2902
2907
|
}
|
|
2903
|
-
}),
|
|
2908
|
+
}), Vn = ["min", "max", "step"], Sn = ["id", "value", "min", "max", "step", "disabled", "onInput", "onFocus", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], Rn = /* @__PURE__ */ y({
|
|
2904
2909
|
inheritAttrs: !1,
|
|
2905
2910
|
__name: "Slider",
|
|
2906
2911
|
props: {
|
|
2907
2912
|
question: {}
|
|
2908
2913
|
},
|
|
2909
2914
|
setup(u) {
|
|
2910
|
-
const e = u, n =
|
|
2915
|
+
const e = u, n = f(null), s = f(null);
|
|
2911
2916
|
return T(e, n), Z(() => {
|
|
2912
2917
|
e.question.refreshInputRange(s.value);
|
|
2913
2918
|
}), (o, t) => (i(), a("div", {
|
|
@@ -2927,6 +2932,7 @@ const gn = /* @__PURE__ */ y({
|
|
|
2927
2932
|
max: o.question.max,
|
|
2928
2933
|
step: o.question.step,
|
|
2929
2934
|
"aria-hidden": "true",
|
|
2935
|
+
id: "sjs-slider-input-range-input",
|
|
2930
2936
|
onInput: t[0] || (t[0] = (l) => {
|
|
2931
2937
|
o.question.handleRangeOnChange(l);
|
|
2932
2938
|
}),
|
|
@@ -2936,7 +2942,7 @@ const gn = /* @__PURE__ */ y({
|
|
|
2936
2942
|
onPointerup: t[2] || (t[2] = (l) => {
|
|
2937
2943
|
o.question.handleRangePointerUp(l, n.value);
|
|
2938
2944
|
})
|
|
2939
|
-
}, null, 42,
|
|
2945
|
+
}, null, 42, Vn)) : p("", !0),
|
|
2940
2946
|
v("div", {
|
|
2941
2947
|
class: r(o.question.cssClasses.visualContainer),
|
|
2942
2948
|
onPointerup: t[8] || (t[8] = (l) => {
|
|
@@ -2948,15 +2954,15 @@ const gn = /* @__PURE__ */ y({
|
|
|
2948
2954
|
}, [
|
|
2949
2955
|
v("div", {
|
|
2950
2956
|
class: r(o.question.cssClasses.inverseTrackLeft),
|
|
2951
|
-
style:
|
|
2957
|
+
style: k({ width: o.question.getTrackPercentLeft() + "%" })
|
|
2952
2958
|
}, null, 6),
|
|
2953
2959
|
v("div", {
|
|
2954
2960
|
class: r(o.question.cssClasses.inverseTrackRight),
|
|
2955
|
-
style:
|
|
2961
|
+
style: k({ width: o.question.getTrackPercentRight() + "%" })
|
|
2956
2962
|
}, null, 6),
|
|
2957
2963
|
v("div", {
|
|
2958
2964
|
class: r(o.question.cssClasses.rangeTrack),
|
|
2959
|
-
style:
|
|
2965
|
+
style: k({ left: o.question.getTrackPercentLeft() + "%", right: o.question.getTrackPercentRight() + "%" })
|
|
2960
2966
|
}, null, 6),
|
|
2961
2967
|
(i(!0), a(M, null, V(o.question.renderedValue, (l, d) => (i(), a(M, { key: d }, [
|
|
2962
2968
|
v("input", {
|
|
@@ -2995,10 +3001,10 @@ const gn = /* @__PURE__ */ y({
|
|
|
2995
3001
|
"aria-describedby": o.question.a11y_input_ariaDescribedBy,
|
|
2996
3002
|
"aria-invalid": o.question.a11y_input_ariaInvalid,
|
|
2997
3003
|
"aria-errormessage": o.question.a11y_input_ariaErrormessage
|
|
2998
|
-
}, null, 42,
|
|
3004
|
+
}, null, 42, Sn),
|
|
2999
3005
|
v("div", {
|
|
3000
3006
|
class: r(o.question.getThumbContainerCss(d)),
|
|
3001
|
-
style:
|
|
3007
|
+
style: k({ left: o.question.getPercent(l) + "%" })
|
|
3002
3008
|
}, [
|
|
3003
3009
|
o.question.tooltipVisibility !== "never" ? (i(), a("div", {
|
|
3004
3010
|
key: 0,
|
|
@@ -3038,7 +3044,7 @@ const gn = /* @__PURE__ */ y({
|
|
|
3038
3044
|
], 2)) : p("", !0)
|
|
3039
3045
|
], 2));
|
|
3040
3046
|
}
|
|
3041
|
-
}),
|
|
3047
|
+
}), Tn = /* @__PURE__ */ y({
|
|
3042
3048
|
__name: "SliderLabelItem",
|
|
3043
3049
|
props: {
|
|
3044
3050
|
question: {},
|
|
@@ -3048,7 +3054,7 @@ const gn = /* @__PURE__ */ y({
|
|
|
3048
3054
|
const e = u;
|
|
3049
3055
|
return S(() => e.item), (n, s) => (i(), a("div", {
|
|
3050
3056
|
class: r(n.question.getLabelCss(n.item.locText)),
|
|
3051
|
-
style:
|
|
3057
|
+
style: k({ left: n.question.getPercent(n.item.value) + "%" }),
|
|
3052
3058
|
onPointerup: s[0] || (s[0] = (o) => {
|
|
3053
3059
|
n.question.handleLabelPointerUp(o, n.item.value);
|
|
3054
3060
|
})
|
|
@@ -3066,17 +3072,17 @@ const gn = /* @__PURE__ */ y({
|
|
|
3066
3072
|
], 2)
|
|
3067
3073
|
], 38));
|
|
3068
3074
|
}
|
|
3069
|
-
}),
|
|
3075
|
+
}), Bn = { role: "radiogroup" }, Zn = { class: "sv-visuallyhidden" }, $n = {
|
|
3070
3076
|
key: 0,
|
|
3071
3077
|
role: "presentation"
|
|
3072
|
-
},
|
|
3078
|
+
}, Dn = { key: 0 }, An = ["onClick"], Pn = ["data-responsive-title", "onClick"], Nn = /* @__PURE__ */ y({
|
|
3073
3079
|
inheritAttrs: !1,
|
|
3074
3080
|
__name: "Matrix",
|
|
3075
3081
|
props: {
|
|
3076
3082
|
question: {}
|
|
3077
3083
|
},
|
|
3078
3084
|
setup(u) {
|
|
3079
|
-
const e = u, n =
|
|
3085
|
+
const e = u, n = f(null), s = E();
|
|
3080
3086
|
T(
|
|
3081
3087
|
e,
|
|
3082
3088
|
n,
|
|
@@ -3098,19 +3104,19 @@ const gn = /* @__PURE__ */ y({
|
|
|
3098
3104
|
ref_key: "root",
|
|
3099
3105
|
ref: n
|
|
3100
3106
|
}, [
|
|
3101
|
-
v("fieldset",
|
|
3102
|
-
v("legend",
|
|
3107
|
+
v("fieldset", Bn, [
|
|
3108
|
+
v("legend", Zn, I(t.question.locTitle.renderedHtml), 1),
|
|
3103
3109
|
v("table", {
|
|
3104
3110
|
class: r(t.question.getTableCss()),
|
|
3105
3111
|
role: "presentation"
|
|
3106
3112
|
}, [
|
|
3107
|
-
t.question.showHeader ? (i(), a("thead",
|
|
3113
|
+
t.question.showHeader ? (i(), a("thead", $n, [
|
|
3108
3114
|
v("tr", null, [
|
|
3109
|
-
t.question.hasRows ? (i(), a("td",
|
|
3115
|
+
t.question.hasRows ? (i(), a("td", Dn)) : p("", !0),
|
|
3110
3116
|
(i(!0), a(M, null, V(t.question.visibleColumns, (d, C) => (i(), a("th", {
|
|
3111
3117
|
key: C,
|
|
3112
3118
|
class: r(t.question.cssClasses.headerCell),
|
|
3113
|
-
style:
|
|
3119
|
+
style: k({
|
|
3114
3120
|
minWidth: t.question.columnMinWidth,
|
|
3115
3121
|
width: t.question.columnMinWidth
|
|
3116
3122
|
})
|
|
@@ -3119,7 +3125,7 @@ const gn = /* @__PURE__ */ y({
|
|
|
3119
3125
|
is: t.question.getColumnHeaderWrapperComponentName(d),
|
|
3120
3126
|
componentData: t.question.getColumnHeaderWrapperComponentData(d)
|
|
3121
3127
|
}, {
|
|
3122
|
-
default:
|
|
3128
|
+
default: D(() => [
|
|
3123
3129
|
c(m, {
|
|
3124
3130
|
is: "survey-string",
|
|
3125
3131
|
locString: d.locText
|
|
@@ -3137,7 +3143,7 @@ const gn = /* @__PURE__ */ y({
|
|
|
3137
3143
|
}, [
|
|
3138
3144
|
B(v("td", {
|
|
3139
3145
|
class: r(d.rowTextClasses),
|
|
3140
|
-
style:
|
|
3146
|
+
style: k({
|
|
3141
3147
|
minWidth: t.question.rowTitleWidth,
|
|
3142
3148
|
width: t.question.rowTitleWidth
|
|
3143
3149
|
})
|
|
@@ -3146,7 +3152,7 @@ const gn = /* @__PURE__ */ y({
|
|
|
3146
3152
|
is: t.question.getRowHeaderWrapperComponentName(d),
|
|
3147
3153
|
componentData: t.question.getRowHeaderWrapperComponentData(d)
|
|
3148
3154
|
}, {
|
|
3149
|
-
default:
|
|
3155
|
+
default: D(() => [
|
|
3150
3156
|
c(m, {
|
|
3151
3157
|
is: "survey-string",
|
|
3152
3158
|
locString: d.locText
|
|
@@ -3155,46 +3161,46 @@ const gn = /* @__PURE__ */ y({
|
|
|
3155
3161
|
_: 2
|
|
3156
3162
|
}, 1032, ["is", "componentData"])
|
|
3157
3163
|
], 6), [
|
|
3158
|
-
[
|
|
3164
|
+
[A, t.question.hasRows]
|
|
3159
3165
|
]),
|
|
3160
|
-
t.question.hasCellText ? (i(!0), a(M, { key: 0 }, V(t.question.visibleColumns, (
|
|
3166
|
+
t.question.hasCellText ? (i(!0), a(M, { key: 0 }, V(t.question.visibleColumns, (L, h) => (i(), a("td", {
|
|
3161
3167
|
key: h,
|
|
3162
|
-
class: r(t.question.getItemClass(d,
|
|
3163
|
-
onClick: (q) => o(d,
|
|
3168
|
+
class: r(t.question.getItemClass(d, L)),
|
|
3169
|
+
onClick: (q) => o(d, L)
|
|
3164
3170
|
}, [
|
|
3165
3171
|
c(m, {
|
|
3166
3172
|
is: "survey-string",
|
|
3167
|
-
locString: t.question.getCellDisplayLocText(d.name,
|
|
3173
|
+
locString: t.question.getCellDisplayLocText(d.name, L)
|
|
3168
3174
|
}, null, 8, ["locString"])
|
|
3169
|
-
], 10,
|
|
3170
|
-
t.question.hasCellText ? p("", !0) : (i(!0), a(M, { key: 1 }, V(t.question.visibleColumns, (
|
|
3175
|
+
], 10, An))), 128)) : p("", !0),
|
|
3176
|
+
t.question.hasCellText ? p("", !0) : (i(!0), a(M, { key: 1 }, V(t.question.visibleColumns, (L, h) => (i(), a("td", {
|
|
3171
3177
|
key: h,
|
|
3172
|
-
"data-responsive-title":
|
|
3178
|
+
"data-responsive-title": L.locText.renderedHtml,
|
|
3173
3179
|
class: r(t.question.cssClasses.cell),
|
|
3174
|
-
onClick: (q) => o(d,
|
|
3180
|
+
onClick: (q) => o(d, L)
|
|
3175
3181
|
}, [
|
|
3176
3182
|
c(m, {
|
|
3177
3183
|
is: t.question.cellComponent,
|
|
3178
3184
|
question: t.question,
|
|
3179
3185
|
row: d,
|
|
3180
|
-
column:
|
|
3186
|
+
column: L,
|
|
3181
3187
|
columnIndex: h
|
|
3182
3188
|
}, null, 8, ["is", "question", "row", "column", "columnIndex"])
|
|
3183
|
-
], 10,
|
|
3189
|
+
], 10, Pn))), 128))
|
|
3184
3190
|
], 2))), 128))
|
|
3185
3191
|
])
|
|
3186
3192
|
], 2)
|
|
3187
3193
|
])
|
|
3188
3194
|
], 2));
|
|
3189
3195
|
}
|
|
3190
|
-
}),
|
|
3196
|
+
}), En = ["data-sv-drop-target-matrix-row"], Wn = /* @__PURE__ */ y({
|
|
3191
3197
|
__name: "MatrixRow",
|
|
3192
3198
|
props: {
|
|
3193
3199
|
question: {},
|
|
3194
3200
|
row: {}
|
|
3195
3201
|
},
|
|
3196
3202
|
setup(u) {
|
|
3197
|
-
const e = u, n =
|
|
3203
|
+
const e = u, n = f();
|
|
3198
3204
|
S(() => e.row);
|
|
3199
3205
|
const s = W(
|
|
3200
3206
|
() => e.row,
|
|
@@ -3204,11 +3210,11 @@ const gn = /* @__PURE__ */ y({
|
|
|
3204
3210
|
);
|
|
3205
3211
|
return Z(() => {
|
|
3206
3212
|
e.row.setRootElement(n.value);
|
|
3207
|
-
}),
|
|
3213
|
+
}), P(() => {
|
|
3208
3214
|
e.row.setRootElement(void 0), s();
|
|
3209
3215
|
}), (o, t) => o.row.visible ? (i(), a("tr", {
|
|
3210
3216
|
key: 0,
|
|
3211
|
-
"data-sv-drop-target-matrix-row": o.row.
|
|
3217
|
+
"data-sv-drop-target-matrix-row": o.row.dropTargetId,
|
|
3212
3218
|
onPointerdown: t[0] || (t[0] = (l) => o.question.onPointerDown(l, o.row.row)),
|
|
3213
3219
|
class: r(o.row.className),
|
|
3214
3220
|
ref_key: "root",
|
|
@@ -3220,9 +3226,9 @@ const gn = /* @__PURE__ */ y({
|
|
|
3220
3226
|
question: o.question,
|
|
3221
3227
|
key: o.row.id + "_" + l.id
|
|
3222
3228
|
}, null, 8, ["cell", "question"]))), 128))
|
|
3223
|
-
], 42,
|
|
3229
|
+
], 42, En)) : p("", !0);
|
|
3224
3230
|
}
|
|
3225
|
-
}),
|
|
3231
|
+
}), Fn = ["name", "value", "readonly", "disabled", "id", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], On = ["xlink:href"], zn = /* @__PURE__ */ y({
|
|
3226
3232
|
inheritAttrs: !1,
|
|
3227
3233
|
__name: "MatrixCell",
|
|
3228
3234
|
props: {
|
|
@@ -3258,7 +3264,7 @@ const gn = /* @__PURE__ */ y({
|
|
|
3258
3264
|
"aria-label": s.question.getCellAriaLabel(s.row, s.column),
|
|
3259
3265
|
"aria-invalid": s.question.a11y_input_ariaInvalid,
|
|
3260
3266
|
"aria-errormessage": s.question.a11y_input_ariaErrormessage
|
|
3261
|
-
}, null, 10,
|
|
3267
|
+
}, null, 10, Fn), [
|
|
3262
3268
|
[se, n.value]
|
|
3263
3269
|
]),
|
|
3264
3270
|
v("span", {
|
|
@@ -3270,7 +3276,7 @@ const gn = /* @__PURE__ */ y({
|
|
|
3270
3276
|
}, [
|
|
3271
3277
|
v("use", {
|
|
3272
3278
|
"xlink:href": s.question.itemSvgIcon
|
|
3273
|
-
}, null, 8,
|
|
3279
|
+
}, null, 8, On)
|
|
3274
3280
|
], 2)) : p("", !0)
|
|
3275
3281
|
], 2),
|
|
3276
3282
|
s.question.isMobile ? (i(), a("span", {
|
|
@@ -3284,14 +3290,14 @@ const gn = /* @__PURE__ */ y({
|
|
|
3284
3290
|
], 2)) : p("", !0)
|
|
3285
3291
|
], 34));
|
|
3286
3292
|
}
|
|
3287
|
-
}),
|
|
3293
|
+
}), Un = /* @__PURE__ */ y({
|
|
3288
3294
|
inheritAttrs: !1,
|
|
3289
3295
|
__name: "MatrixDropdown",
|
|
3290
3296
|
props: {
|
|
3291
3297
|
question: {}
|
|
3292
3298
|
},
|
|
3293
3299
|
setup(u) {
|
|
3294
|
-
const e = u, n =
|
|
3300
|
+
const e = u, n = f(null);
|
|
3295
3301
|
return T(e, n), (s, o) => (i(), g(m, {
|
|
3296
3302
|
is: "survey-matrixtable",
|
|
3297
3303
|
question: s.question,
|
|
@@ -3299,7 +3305,7 @@ const gn = /* @__PURE__ */ y({
|
|
|
3299
3305
|
ref: n
|
|
3300
3306
|
}, null, 8, ["question"]));
|
|
3301
3307
|
}
|
|
3302
|
-
}),
|
|
3308
|
+
}), Qn = { key: 0 }, Kn = { key: 1 }, jn = /* @__PURE__ */ y({
|
|
3303
3309
|
__name: "MatrixTable",
|
|
3304
3310
|
props: {
|
|
3305
3311
|
question: {}
|
|
@@ -3307,25 +3313,25 @@ const gn = /* @__PURE__ */ y({
|
|
|
3307
3313
|
setup(u) {
|
|
3308
3314
|
const e = u, n = H(() => e.question.renderedTable);
|
|
3309
3315
|
return S(() => n.value), (s, o) => (i(), a("div", {
|
|
3310
|
-
style:
|
|
3316
|
+
style: k({ overflowX: s.question.showHorizontalScroll ? "scroll" : "" }),
|
|
3311
3317
|
class: r(s.question.cssClasses.tableWrapper)
|
|
3312
3318
|
}, [
|
|
3313
3319
|
v("table", {
|
|
3314
3320
|
class: r(s.question.getTableCss())
|
|
3315
3321
|
}, [
|
|
3316
|
-
n.value.showHeader ? (i(), a("thead",
|
|
3322
|
+
n.value.showHeader ? (i(), a("thead", Qn, [
|
|
3317
3323
|
v("tr", null, [
|
|
3318
3324
|
(i(!0), a(M, null, V(n.value.headerRow.cells, (t) => (i(), a(M, null, [
|
|
3319
3325
|
t.hasTitle ? (i(), a("th", {
|
|
3320
3326
|
key: "header_" + t.id,
|
|
3321
3327
|
class: r(t.className),
|
|
3322
|
-
style:
|
|
3328
|
+
style: k({ minWidth: t.minWidth, width: t.width })
|
|
3323
3329
|
}, [
|
|
3324
3330
|
c(m, {
|
|
3325
3331
|
is: s.question.getColumnHeaderWrapperComponentName(t),
|
|
3326
3332
|
componentData: s.question.getColumnHeaderWrapperComponentData(t)
|
|
3327
3333
|
}, {
|
|
3328
|
-
default:
|
|
3334
|
+
default: D(() => [
|
|
3329
3335
|
c(m, {
|
|
3330
3336
|
is: "survey-string",
|
|
3331
3337
|
locString: t.locTitle
|
|
@@ -3343,7 +3349,7 @@ const gn = /* @__PURE__ */ y({
|
|
|
3343
3349
|
t.hasTitle ? p("", !0) : (i(), a("td", {
|
|
3344
3350
|
class: r(t.className),
|
|
3345
3351
|
key: "header_" + t.id,
|
|
3346
|
-
style:
|
|
3352
|
+
style: k({ minWidth: t.minWidth, width: t.width })
|
|
3347
3353
|
}, null, 6))
|
|
3348
3354
|
], 64))), 256))
|
|
3349
3355
|
])
|
|
@@ -3356,7 +3362,7 @@ const gn = /* @__PURE__ */ y({
|
|
|
3356
3362
|
question: s.question
|
|
3357
3363
|
}, null, 8, ["row", "question"]))), 128))
|
|
3358
3364
|
]),
|
|
3359
|
-
n.value.showFooter ? (i(), a("tfoot",
|
|
3365
|
+
n.value.showFooter ? (i(), a("tfoot", Kn, [
|
|
3360
3366
|
v("tr", null, [
|
|
3361
3367
|
(i(!0), a(M, null, V(n.value.footerRow.cells, (t, l) => (i(), g(m, {
|
|
3362
3368
|
is: "survey-matrixdropdown-cell",
|
|
@@ -3369,7 +3375,7 @@ const gn = /* @__PURE__ */ y({
|
|
|
3369
3375
|
], 2)
|
|
3370
3376
|
], 6));
|
|
3371
3377
|
}
|
|
3372
|
-
}),
|
|
3378
|
+
}), Gn = /* @__PURE__ */ v("span", null, " ", -1), Xn = /* @__PURE__ */ y({
|
|
3373
3379
|
__name: "MatrixHeaderRequired",
|
|
3374
3380
|
props: {
|
|
3375
3381
|
question: {},
|
|
@@ -3378,21 +3384,21 @@ const gn = /* @__PURE__ */ y({
|
|
|
3378
3384
|
setup(u) {
|
|
3379
3385
|
const e = u;
|
|
3380
3386
|
return S(() => e.column), (n, s) => n.column.isRenderedRequired ? (i(), a(M, { key: 0 }, [
|
|
3381
|
-
|
|
3387
|
+
Gn,
|
|
3382
3388
|
n.column.isRenderedRequired ? (i(), a("span", {
|
|
3383
3389
|
key: 0,
|
|
3384
3390
|
class: r(n.question.cssClasses.cellRequiredMark)
|
|
3385
3391
|
}, I(n.column.requiredMark), 3)) : p("", !0)
|
|
3386
3392
|
], 64)) : p("", !0);
|
|
3387
3393
|
}
|
|
3388
|
-
}),
|
|
3394
|
+
}), Jn = ["title", "colspan"], Yn = /* @__PURE__ */ y({
|
|
3389
3395
|
__name: "MatrixDropdownCellComp",
|
|
3390
3396
|
props: {
|
|
3391
3397
|
question: {},
|
|
3392
3398
|
cell: {}
|
|
3393
3399
|
},
|
|
3394
3400
|
setup(u) {
|
|
3395
|
-
const e = u, n =
|
|
3401
|
+
const e = u, n = f(!1), s = f(), o = () => e.cell.width || e.cell.minWidth ? { width: e.cell.width, minWidth: e.cell.minWidth } : null, t = () => e.cell.question.parentQuestion.getCellAriaLabel(e.cell.row, e.cell.column), l = () => {
|
|
3396
3402
|
!e.cell.hasQuestion || !e.question || !e.question.survey || (n.value = e.cell.question.isVisible);
|
|
3397
3403
|
}, d = (h) => re(h);
|
|
3398
3404
|
l(), Z(() => {
|
|
@@ -3401,31 +3407,31 @@ const gn = /* @__PURE__ */ y({
|
|
|
3401
3407
|
e.cell.question.registerPropertyChangedHandlers(["isVisible"], () => {
|
|
3402
3408
|
l();
|
|
3403
3409
|
});
|
|
3404
|
-
const h = s.value, q = e.cell.question,
|
|
3410
|
+
const h = s.value, q = e.cell.question, b = {
|
|
3405
3411
|
cell: e.cell.cell,
|
|
3406
3412
|
cellQuestion: q,
|
|
3407
3413
|
htmlElement: h,
|
|
3408
3414
|
row: e.cell.row,
|
|
3409
3415
|
column: e.cell.cell.column
|
|
3410
3416
|
};
|
|
3411
|
-
e.question.survey.matrixAfterCellRender(
|
|
3417
|
+
e.question.survey.matrixAfterCellRender(b), q && q.afterRenderCore(h);
|
|
3412
3418
|
});
|
|
3413
3419
|
const C = H(() => {
|
|
3414
3420
|
const h = e.cell;
|
|
3415
3421
|
if (h.hasPanel) {
|
|
3416
|
-
const q = h.panel,
|
|
3417
|
-
if (
|
|
3418
|
-
const R =
|
|
3422
|
+
const q = h.panel, b = q.survey;
|
|
3423
|
+
if (b) {
|
|
3424
|
+
const R = b.getElementWrapperComponentName(q);
|
|
3419
3425
|
if (R)
|
|
3420
3426
|
return R;
|
|
3421
3427
|
}
|
|
3422
3428
|
return "survey-panel";
|
|
3423
3429
|
}
|
|
3424
|
-
}),
|
|
3430
|
+
}), L = H(() => {
|
|
3425
3431
|
if (e.cell.hasPanel) {
|
|
3426
|
-
const q = e.cell.panel,
|
|
3432
|
+
const q = e.cell.panel, b = q.survey;
|
|
3427
3433
|
let R;
|
|
3428
|
-
return
|
|
3434
|
+
return b && (R = b.getElementWrapperComponentData(q)), {
|
|
3429
3435
|
componentName: "survey-panel",
|
|
3430
3436
|
componentData: {
|
|
3431
3437
|
element: q,
|
|
@@ -3439,9 +3445,9 @@ const gn = /* @__PURE__ */ y({
|
|
|
3439
3445
|
key: 0,
|
|
3440
3446
|
class: r(h.cell.className),
|
|
3441
3447
|
title: h.cell.getTitle(),
|
|
3442
|
-
style:
|
|
3448
|
+
style: k(o()),
|
|
3443
3449
|
colspan: h.cell.colSpans,
|
|
3444
|
-
onFocusin: q[0] || (q[0] = (
|
|
3450
|
+
onFocusin: q[0] || (q[0] = (b) => h.cell.focusIn()),
|
|
3445
3451
|
ref_key: "root",
|
|
3446
3452
|
ref: s
|
|
3447
3453
|
}, [
|
|
@@ -3464,7 +3470,7 @@ const gn = /* @__PURE__ */ y({
|
|
|
3464
3470
|
h.cell.hasPanel ? (i(), g(m, $({
|
|
3465
3471
|
key: 3,
|
|
3466
3472
|
is: C.value
|
|
3467
|
-
},
|
|
3473
|
+
}, L.value), null, 16, ["is"])) : p("", !0),
|
|
3468
3474
|
h.cell.showResponsiveTitle ? (i(), a("span", {
|
|
3469
3475
|
key: 4,
|
|
3470
3476
|
class: r(h.cell.responsiveTitleCss)
|
|
@@ -3488,7 +3494,7 @@ const gn = /* @__PURE__ */ y({
|
|
|
3488
3494
|
is: h.question.getCellWrapperComponentName(h.cell.cell),
|
|
3489
3495
|
componentData: h.question.getCellWrapperComponentData(h.cell.cell)
|
|
3490
3496
|
}, {
|
|
3491
|
-
default:
|
|
3497
|
+
default: D(() => [
|
|
3492
3498
|
c(m, {
|
|
3493
3499
|
is: d(h.cell.question),
|
|
3494
3500
|
question: h.cell.question
|
|
@@ -3506,7 +3512,7 @@ const gn = /* @__PURE__ */ y({
|
|
|
3506
3512
|
is: h.question.getCellWrapperComponentName(h.cell.cell),
|
|
3507
3513
|
componentData: h.question.getCellWrapperComponentData(h.cell.cell)
|
|
3508
3514
|
}, {
|
|
3509
|
-
default:
|
|
3515
|
+
default: D(() => [
|
|
3510
3516
|
h.cell.isRadio ? (i(), g(m, {
|
|
3511
3517
|
is: "survey-radiogroup-item",
|
|
3512
3518
|
key: h.cell.item.value,
|
|
@@ -3532,14 +3538,14 @@ const gn = /* @__PURE__ */ y({
|
|
|
3532
3538
|
question: h.cell.question
|
|
3533
3539
|
}, null, 8, ["question"])) : p("", !0)
|
|
3534
3540
|
], 2)), [
|
|
3535
|
-
[
|
|
3541
|
+
[A, n.value]
|
|
3536
3542
|
]) : p("", !0),
|
|
3537
3543
|
h.cell.hasTitle ? (i(), g(m, {
|
|
3538
3544
|
key: 6,
|
|
3539
3545
|
is: h.question.getCellWrapperComponentName(h.cell),
|
|
3540
3546
|
componentData: h.question.getCellWrapperComponentData(h.cell)
|
|
3541
3547
|
}, {
|
|
3542
|
-
default:
|
|
3548
|
+
default: D(() => [
|
|
3543
3549
|
h.cell.hasTitle ? (i(), g(m, {
|
|
3544
3550
|
key: 0,
|
|
3545
3551
|
is: "survey-string",
|
|
@@ -3552,16 +3558,16 @@ const gn = /* @__PURE__ */ y({
|
|
|
3552
3558
|
]),
|
|
3553
3559
|
_: 1
|
|
3554
3560
|
}, 8, ["is", "componentData"])) : p("", !0)
|
|
3555
|
-
], 46,
|
|
3561
|
+
], 46, Jn)) : p("", !0);
|
|
3556
3562
|
}
|
|
3557
|
-
}),
|
|
3563
|
+
}), _n = /* @__PURE__ */ y({
|
|
3558
3564
|
inheritAttrs: !1,
|
|
3559
3565
|
__name: "MatrixDynamic",
|
|
3560
3566
|
props: {
|
|
3561
3567
|
question: {}
|
|
3562
3568
|
},
|
|
3563
3569
|
setup(u) {
|
|
3564
|
-
const e = u, n =
|
|
3570
|
+
const e = u, n = f(null);
|
|
3565
3571
|
T(e, n);
|
|
3566
3572
|
const s = () => {
|
|
3567
3573
|
e.question.addRowUI();
|
|
@@ -3617,7 +3623,7 @@ const gn = /* @__PURE__ */ y({
|
|
|
3617
3623
|
], 2)) : p("", !0)
|
|
3618
3624
|
], 512));
|
|
3619
3625
|
}
|
|
3620
|
-
}),
|
|
3626
|
+
}), xn = /* @__PURE__ */ y({
|
|
3621
3627
|
__name: "MatrixDynamicPlaceholder",
|
|
3622
3628
|
props: {
|
|
3623
3629
|
question: {}
|
|
@@ -3660,7 +3666,7 @@ function le(u, e = !0) {
|
|
|
3660
3666
|
row: e ? H(() => u.item.data.row) : void 0
|
|
3661
3667
|
};
|
|
3662
3668
|
}
|
|
3663
|
-
const
|
|
3669
|
+
const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
3664
3670
|
__name: "RemoveButton",
|
|
3665
3671
|
props: {
|
|
3666
3672
|
item: {}
|
|
@@ -3680,9 +3686,9 @@ const xn = ["disabled"], et = /* @__PURE__ */ y({
|
|
|
3680
3686
|
v("span", {
|
|
3681
3687
|
class: r(w(n).cssClasses.iconRemove)
|
|
3682
3688
|
}, null, 2)
|
|
3683
|
-
], 10,
|
|
3689
|
+
], 10, et));
|
|
3684
3690
|
}
|
|
3685
|
-
}),
|
|
3691
|
+
}), nt = ["xlink:href"], tt = /* @__PURE__ */ y({
|
|
3686
3692
|
__name: "DragDropIcon",
|
|
3687
3693
|
props: {
|
|
3688
3694
|
item: {}
|
|
@@ -3696,14 +3702,14 @@ const xn = ["disabled"], et = /* @__PURE__ */ y({
|
|
|
3696
3702
|
}, [
|
|
3697
3703
|
v("use", {
|
|
3698
3704
|
"xlink:href": w(n).iconDragElement
|
|
3699
|
-
}, null, 8,
|
|
3705
|
+
}, null, 8, nt)
|
|
3700
3706
|
], 2)) : (i(), a("span", {
|
|
3701
3707
|
key: 1,
|
|
3702
3708
|
class: r(w(n).cssClasses.iconDrag)
|
|
3703
3709
|
}, null, 2))
|
|
3704
3710
|
]));
|
|
3705
3711
|
}
|
|
3706
|
-
}),
|
|
3712
|
+
}), ot = ["title", "aria-expanded", "aria-controls"], it = /* @__PURE__ */ y({
|
|
3707
3713
|
__name: "DetailButton",
|
|
3708
3714
|
props: {
|
|
3709
3715
|
item: {}
|
|
@@ -3724,9 +3730,9 @@ const xn = ["disabled"], et = /* @__PURE__ */ y({
|
|
|
3724
3730
|
iconName: w(n).getDetailPanelIconId(w(s)),
|
|
3725
3731
|
size: "auto"
|
|
3726
3732
|
}, null, 8, ["class", "iconName"])
|
|
3727
|
-
], 10,
|
|
3733
|
+
], 10, ot));
|
|
3728
3734
|
}
|
|
3729
|
-
}),
|
|
3735
|
+
}), rt = ["aria-label"], lt = /* @__PURE__ */ y({
|
|
3730
3736
|
inheritAttrs: !1,
|
|
3731
3737
|
__name: "PanelDynamic",
|
|
3732
3738
|
props: {
|
|
@@ -3734,7 +3740,7 @@ const xn = ["disabled"], et = /* @__PURE__ */ y({
|
|
|
3734
3740
|
css: {}
|
|
3735
3741
|
},
|
|
3736
3742
|
setup(u) {
|
|
3737
|
-
const e = u, n =
|
|
3743
|
+
const e = u, n = f(null), s = he();
|
|
3738
3744
|
T(
|
|
3739
3745
|
e,
|
|
3740
3746
|
n,
|
|
@@ -3798,15 +3804,15 @@ const xn = ["disabled"], et = /* @__PURE__ */ y({
|
|
|
3798
3804
|
}, [
|
|
3799
3805
|
v("div", {
|
|
3800
3806
|
class: r(l.question.cssClasses.progressBar),
|
|
3801
|
-
style:
|
|
3807
|
+
style: k({ width: l.question.progress }),
|
|
3802
3808
|
role: "progressbar",
|
|
3803
3809
|
"aria-label": l.question.progressBarAriaLabel
|
|
3804
|
-
}, null, 14,
|
|
3810
|
+
}, null, 14, rt)
|
|
3805
3811
|
], 2)) : p("", !0),
|
|
3806
3812
|
v("div", {
|
|
3807
3813
|
class: r(l.question.cssClasses.panelsContainer)
|
|
3808
3814
|
}, [
|
|
3809
|
-
(i(!0), a(M, null, V(l.question.renderedPanels, (C,
|
|
3815
|
+
(i(!0), a(M, null, V(l.question.renderedPanels, (C, L) => (i(), a(M, {
|
|
3810
3816
|
key: C.id
|
|
3811
3817
|
}, [
|
|
3812
3818
|
v("div", {
|
|
@@ -3821,7 +3827,7 @@ const xn = ["disabled"], et = /* @__PURE__ */ y({
|
|
|
3821
3827
|
data: { question: l.question, panel: C }
|
|
3822
3828
|
}, null, 8, ["data"])) : p("", !0)
|
|
3823
3829
|
], 2),
|
|
3824
|
-
l.question.isRenderModeList &&
|
|
3830
|
+
l.question.isRenderModeList && L < l.question.visiblePanelCount - 1 ? (i(), a("hr", {
|
|
3825
3831
|
class: r(l.question.cssClasses.separator),
|
|
3826
3832
|
key: "separator" + C.id
|
|
3827
3833
|
}, null, 2)) : p("", !0)
|
|
@@ -3834,7 +3840,7 @@ const xn = ["disabled"], et = /* @__PURE__ */ y({
|
|
|
3834
3840
|
}, null, 8, ["question"])) : p("", !0)
|
|
3835
3841
|
], 2));
|
|
3836
3842
|
}
|
|
3837
|
-
}),
|
|
3843
|
+
}), at = ["aria-label"], ut = /* @__PURE__ */ y({
|
|
3838
3844
|
__name: "PanelDynamicProgress",
|
|
3839
3845
|
props: {
|
|
3840
3846
|
question: {}
|
|
@@ -3861,10 +3867,10 @@ const xn = ["disabled"], et = /* @__PURE__ */ y({
|
|
|
3861
3867
|
}, [
|
|
3862
3868
|
v("div", {
|
|
3863
3869
|
class: r(s.question.cssClasses.progressBar),
|
|
3864
|
-
style:
|
|
3870
|
+
style: k({ width: s.question.progress }),
|
|
3865
3871
|
role: "progressbar",
|
|
3866
3872
|
"aria-label": s.question.progressBarAriaLabel
|
|
3867
|
-
}, null, 14,
|
|
3873
|
+
}, null, 14, at)
|
|
3868
3874
|
], 2)) : p("", !0),
|
|
3869
3875
|
c(m, {
|
|
3870
3876
|
is: "sv-paneldynamic-next-btn",
|
|
@@ -3882,7 +3888,7 @@ const xn = ["disabled"], et = /* @__PURE__ */ y({
|
|
|
3882
3888
|
], 2)
|
|
3883
3889
|
], 2));
|
|
3884
3890
|
}
|
|
3885
|
-
}),
|
|
3891
|
+
}), dt = ["aria-label"], mt = /* @__PURE__ */ y({
|
|
3886
3892
|
__name: "PanelDynamicProgressV2",
|
|
3887
3893
|
props: {
|
|
3888
3894
|
question: {}
|
|
@@ -3901,12 +3907,12 @@ const xn = ["disabled"], et = /* @__PURE__ */ y({
|
|
|
3901
3907
|
}, [
|
|
3902
3908
|
v("div", {
|
|
3903
3909
|
class: r(e.question.cssClasses.progressBar),
|
|
3904
|
-
style:
|
|
3910
|
+
style: k({ width: e.question.progress }),
|
|
3905
3911
|
role: "progressbar",
|
|
3906
3912
|
"aria-label": e.question.progressBarAriaLabel
|
|
3907
|
-
}, null, 14,
|
|
3913
|
+
}, null, 14, dt)
|
|
3908
3914
|
], 2)) : p("", !0),
|
|
3909
|
-
e.question.footerToolbar.
|
|
3915
|
+
e.question.footerToolbar.hasVisibleActions ? (i(), a("div", {
|
|
3910
3916
|
key: 1,
|
|
3911
3917
|
class: r(e.question.cssClasses.footerButtonsContainer)
|
|
3912
3918
|
}, [
|
|
@@ -3917,7 +3923,7 @@ const xn = ["disabled"], et = /* @__PURE__ */ y({
|
|
|
3917
3923
|
], 2)) : p("", !0)
|
|
3918
3924
|
], 2)) : p("", !0);
|
|
3919
3925
|
}
|
|
3920
|
-
}),
|
|
3926
|
+
}), pt = /* @__PURE__ */ y({
|
|
3921
3927
|
__name: "PanelDynamicPlaceholder",
|
|
3922
3928
|
props: {
|
|
3923
3929
|
question: {}
|
|
@@ -3944,7 +3950,7 @@ function X(u) {
|
|
|
3944
3950
|
() => u.item && u.item.data.question || u.data.question
|
|
3945
3951
|
);
|
|
3946
3952
|
}
|
|
3947
|
-
const
|
|
3953
|
+
const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
3948
3954
|
__name: "PaneldynamicAddBtn",
|
|
3949
3955
|
props: {
|
|
3950
3956
|
item: {},
|
|
@@ -3969,9 +3975,9 @@ const pt = ["id"], vt = /* @__PURE__ */ y({
|
|
|
3969
3975
|
locString: w(n).locAddPanelText
|
|
3970
3976
|
}, null, 8, ["locString"])
|
|
3971
3977
|
], 2)
|
|
3972
|
-
], 10,
|
|
3978
|
+
], 10, vt)) : p("", !0);
|
|
3973
3979
|
}
|
|
3974
|
-
}),
|
|
3980
|
+
}), ct = ["title"], gt = /* @__PURE__ */ y({
|
|
3975
3981
|
__name: "PaneldynamicNextBtn",
|
|
3976
3982
|
props: {
|
|
3977
3983
|
item: {},
|
|
@@ -3991,9 +3997,9 @@ const pt = ["id"], vt = /* @__PURE__ */ y({
|
|
|
3991
3997
|
iconName: w(n).cssClasses.progressBtnIcon,
|
|
3992
3998
|
size: "auto"
|
|
3993
3999
|
}, null, 8, ["iconName"])
|
|
3994
|
-
], 10,
|
|
4000
|
+
], 10, ct));
|
|
3995
4001
|
}
|
|
3996
|
-
}),
|
|
4002
|
+
}), yt = ["title"], ht = /* @__PURE__ */ y({
|
|
3997
4003
|
__name: "PaneldynamicPrevBtn",
|
|
3998
4004
|
props: {
|
|
3999
4005
|
item: {},
|
|
@@ -4013,9 +4019,9 @@ const pt = ["id"], vt = /* @__PURE__ */ y({
|
|
|
4013
4019
|
iconName: w(n).cssClasses.progressBtnIcon,
|
|
4014
4020
|
size: "auto"
|
|
4015
4021
|
}, null, 8, ["iconName"])
|
|
4016
|
-
], 10,
|
|
4022
|
+
], 10, yt));
|
|
4017
4023
|
}
|
|
4018
|
-
}),
|
|
4024
|
+
}), qt = ["id"], wt = /* @__PURE__ */ y({
|
|
4019
4025
|
__name: "PaneldynamicRemoveBtn",
|
|
4020
4026
|
props: {
|
|
4021
4027
|
item: {},
|
|
@@ -4044,9 +4050,9 @@ const pt = ["id"], vt = /* @__PURE__ */ y({
|
|
|
4044
4050
|
v("span", {
|
|
4045
4051
|
class: r(w(n).cssClasses.iconRemove)
|
|
4046
4052
|
}, null, 2)
|
|
4047
|
-
], 10,
|
|
4053
|
+
], 10, qt));
|
|
4048
4054
|
}
|
|
4049
|
-
}),
|
|
4055
|
+
}), bt = /* @__PURE__ */ y({
|
|
4050
4056
|
__name: "PaneldynamicProgressText",
|
|
4051
4057
|
props: {
|
|
4052
4058
|
item: {},
|
|
@@ -4058,14 +4064,14 @@ const pt = ["id"], vt = /* @__PURE__ */ y({
|
|
|
4058
4064
|
class: r(w(n).cssClasses.progressText)
|
|
4059
4065
|
}, I(w(n).progressText), 3));
|
|
4060
4066
|
}
|
|
4061
|
-
}),
|
|
4067
|
+
}), Lt = ["id"], kt = /* @__PURE__ */ y({
|
|
4062
4068
|
__name: "Errors",
|
|
4063
4069
|
props: {
|
|
4064
4070
|
element: {},
|
|
4065
4071
|
location: {}
|
|
4066
4072
|
},
|
|
4067
4073
|
setup(u) {
|
|
4068
|
-
const e =
|
|
4074
|
+
const e = f();
|
|
4069
4075
|
return (n, s) => n.element.hasVisibleErrors ? (i(), a("div", {
|
|
4070
4076
|
key: 0,
|
|
4071
4077
|
role: "alert",
|
|
@@ -4083,21 +4089,21 @@ const pt = ["id"], vt = /* @__PURE__ */ y({
|
|
|
4083
4089
|
error: o,
|
|
4084
4090
|
cssClasses: n.element.cssClasses
|
|
4085
4091
|
}, null, 8, ["is", "element", "errorKey", "error", "cssClasses"]))), 128))
|
|
4086
|
-
], 10,
|
|
4092
|
+
], 10, Lt)) : p("", !0);
|
|
4087
4093
|
}
|
|
4088
|
-
}),
|
|
4094
|
+
}), ft = { key: 0 }, Ht = /* @__PURE__ */ y({
|
|
4089
4095
|
__name: "QuestionComment",
|
|
4090
4096
|
props: {
|
|
4091
4097
|
question: {}
|
|
4092
4098
|
},
|
|
4093
4099
|
setup(u) {
|
|
4094
|
-
return (e, n) => e.question.isReadOnlyRenderDiv() ? (i(), a("div",
|
|
4100
|
+
return (e, n) => e.question.isReadOnlyRenderDiv() ? (i(), a("div", ft, I(e.question.comment), 1)) : (i(), g(m, {
|
|
4095
4101
|
key: 1,
|
|
4096
4102
|
is: "sv-text-area",
|
|
4097
4103
|
model: e.question.commentTextAreaModel
|
|
4098
4104
|
}, null, 8, ["model"]));
|
|
4099
4105
|
}
|
|
4100
|
-
}),
|
|
4106
|
+
}), Mt = /* @__PURE__ */ y({
|
|
4101
4107
|
__name: "TitleElement",
|
|
4102
4108
|
props: {
|
|
4103
4109
|
element: {},
|
|
@@ -4119,7 +4125,7 @@ const pt = ["id"], vt = /* @__PURE__ */ y({
|
|
|
4119
4125
|
e(o);
|
|
4120
4126
|
})
|
|
4121
4127
|
}, {
|
|
4122
|
-
default:
|
|
4128
|
+
default: D(() => [
|
|
4123
4129
|
!n.element.isExpanded && n.element.getCssTitleExpandableSvg() ? (i(), g(m, {
|
|
4124
4130
|
key: 0,
|
|
4125
4131
|
is: "sv-svg-icon",
|
|
@@ -4150,7 +4156,7 @@ const pt = ["id"], vt = /* @__PURE__ */ y({
|
|
|
4150
4156
|
_: 1
|
|
4151
4157
|
}, 40, ["class", "aria-label", "id", "tabindex", "aria-expanded", "role"])) : p("", !0);
|
|
4152
4158
|
}
|
|
4153
|
-
}),
|
|
4159
|
+
}), It = { key: 2 }, Vt = { key: 4 }, St = { key: 6 }, Rt = { key: 8 }, Tt = /* @__PURE__ */ y({
|
|
4154
4160
|
inheritAttrs: !1,
|
|
4155
4161
|
__name: "TitleContent",
|
|
4156
4162
|
props: {
|
|
@@ -4169,26 +4175,26 @@ const pt = ["id"], vt = /* @__PURE__ */ y({
|
|
|
4169
4175
|
class: r(e.element.cssRequiredMark),
|
|
4170
4176
|
"aria-hidden": !0
|
|
4171
4177
|
}, I(e.element.requiredMark), 3)) : p("", !0),
|
|
4172
|
-
!e.element.isTitleRenderedAsString && e.element.isRequireTextOnStart ? (i(), a("span",
|
|
4178
|
+
!e.element.isTitleRenderedAsString && e.element.isRequireTextOnStart ? (i(), a("span", It, " ")) : p("", !0),
|
|
4173
4179
|
!e.element.isTitleRenderedAsString && e.element.no ? (i(), a("span", {
|
|
4174
4180
|
key: 3,
|
|
4175
4181
|
style: { position: "static" },
|
|
4176
4182
|
class: r(e.element.cssTitleNumber),
|
|
4177
4183
|
"aria-hidden": !0
|
|
4178
4184
|
}, I(e.element.no), 3)) : p("", !0),
|
|
4179
|
-
!e.element.isTitleRenderedAsString && e.element.no ? (i(), a("span",
|
|
4185
|
+
!e.element.isTitleRenderedAsString && e.element.no ? (i(), a("span", Vt, " ")) : p("", !0),
|
|
4180
4186
|
!e.element.isTitleRenderedAsString && e.element.isRequireTextBeforeTitle ? (i(), a("span", {
|
|
4181
4187
|
key: 5,
|
|
4182
4188
|
class: r(e.element.cssRequiredMark),
|
|
4183
4189
|
"aria-hidden": !0
|
|
4184
4190
|
}, I(e.element.requiredMark), 3)) : p("", !0),
|
|
4185
|
-
!e.element.isTitleRenderedAsString && e.element.isRequireTextBeforeTitle ? (i(), a("span",
|
|
4191
|
+
!e.element.isTitleRenderedAsString && e.element.isRequireTextBeforeTitle ? (i(), a("span", St, " ")) : p("", !0),
|
|
4186
4192
|
e.element.isTitleRenderedAsString ? p("", !0) : (i(), g(m, {
|
|
4187
4193
|
key: 7,
|
|
4188
4194
|
is: "survey-string",
|
|
4189
4195
|
locString: e.element.locRenderedTitle
|
|
4190
4196
|
}, null, 8, ["locString"])),
|
|
4191
|
-
!e.element.isTitleRenderedAsString && e.element.isRequireTextAfterTitle ? (i(), a("span",
|
|
4197
|
+
!e.element.isTitleRenderedAsString && e.element.isRequireTextAfterTitle ? (i(), a("span", Rt, " ")) : p("", !0),
|
|
4192
4198
|
!e.element.isTitleRenderedAsString && e.element.isRequireTextAfterTitle ? (i(), a("span", {
|
|
4193
4199
|
key: 9,
|
|
4194
4200
|
class: r(e.element.cssRequiredMark),
|
|
@@ -4196,7 +4202,7 @@ const pt = ["id"], vt = /* @__PURE__ */ y({
|
|
|
4196
4202
|
}, I(e.element.requiredMark), 3)) : p("", !0)
|
|
4197
4203
|
], 64));
|
|
4198
4204
|
}
|
|
4199
|
-
}),
|
|
4205
|
+
}), Bt = { class: "sv-title-actions" }, Zt = { class: "sv-title-actions__title" }, $t = /* @__PURE__ */ y({
|
|
4200
4206
|
__name: "TitleActions",
|
|
4201
4207
|
props: {
|
|
4202
4208
|
element: {},
|
|
@@ -4204,8 +4210,8 @@ const pt = ["id"], vt = /* @__PURE__ */ y({
|
|
|
4204
4210
|
},
|
|
4205
4211
|
setup(u) {
|
|
4206
4212
|
const e = u, n = H(() => e.element.getTitleToolbar());
|
|
4207
|
-
return (s, o) => (i(), a("div",
|
|
4208
|
-
v("span",
|
|
4213
|
+
return (s, o) => (i(), a("div", Bt, [
|
|
4214
|
+
v("span", Zt, [
|
|
4209
4215
|
s.element.isPage ? (i(), g(m, {
|
|
4210
4216
|
key: 0,
|
|
4211
4217
|
is: "survey-string",
|
|
@@ -4224,20 +4230,20 @@ const pt = ["id"], vt = /* @__PURE__ */ y({
|
|
|
4224
4230
|
}, null, 8, ["model"])
|
|
4225
4231
|
]));
|
|
4226
4232
|
}
|
|
4227
|
-
}),
|
|
4233
|
+
}), Dt = (u, e) => {
|
|
4228
4234
|
const n = u.__vccOpts || u;
|
|
4229
4235
|
for (const [s, o] of e)
|
|
4230
4236
|
n[s] = o;
|
|
4231
4237
|
return n;
|
|
4232
|
-
},
|
|
4233
|
-
|
|
4238
|
+
}, At = {}, Pt = { class: "sv-brand-info" }, Nt = /* @__PURE__ */ $e('<a class="sv-brand-info__logo" href="https://surveyjs.io/?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=landing_page"><img src="https://surveyjs.io/Content/Images/poweredby.svg"></a><div class="sv-brand-info__text"> Try and see how easy it is to <a href="https://surveyjs.io/create-survey?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=create_survey">create a survey</a></div><div class="sv-brand-info__terms"><a href="https://surveyjs.io/TermsOfUse">Terms of Use & Privacy Statement</a></div>', 3), Et = [
|
|
4239
|
+
Nt
|
|
4234
4240
|
];
|
|
4235
|
-
function
|
|
4236
|
-
return i(), a("div",
|
|
4241
|
+
function Wt(u, e) {
|
|
4242
|
+
return i(), a("div", Pt, Et);
|
|
4237
4243
|
}
|
|
4238
|
-
const
|
|
4239
|
-
|
|
4240
|
-
],
|
|
4244
|
+
const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use", null, null, -1), zt = [
|
|
4245
|
+
Ot
|
|
4246
|
+
], Ut = /* @__PURE__ */ y({
|
|
4241
4247
|
__name: "SvgIcon",
|
|
4242
4248
|
props: {
|
|
4243
4249
|
size: {},
|
|
@@ -4247,7 +4253,7 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4247
4253
|
title: {}
|
|
4248
4254
|
},
|
|
4249
4255
|
setup(u) {
|
|
4250
|
-
const e = u, n =
|
|
4256
|
+
const e = u, n = f(), s = () => {
|
|
4251
4257
|
Oe(
|
|
4252
4258
|
e.size,
|
|
4253
4259
|
e.width,
|
|
@@ -4257,7 +4263,7 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4257
4263
|
e.title
|
|
4258
4264
|
);
|
|
4259
4265
|
};
|
|
4260
|
-
return
|
|
4266
|
+
return z(() => {
|
|
4261
4267
|
s();
|
|
4262
4268
|
}), Z(() => {
|
|
4263
4269
|
s();
|
|
@@ -4266,9 +4272,9 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4266
4272
|
ref: n,
|
|
4267
4273
|
class: "sv-svg-icon",
|
|
4268
4274
|
role: "presentation"
|
|
4269
|
-
},
|
|
4275
|
+
}, zt, 512));
|
|
4270
4276
|
}
|
|
4271
|
-
}),
|
|
4277
|
+
}), Qt = /* @__PURE__ */ y({
|
|
4272
4278
|
__name: "QuestionError",
|
|
4273
4279
|
props: {
|
|
4274
4280
|
errorKey: {},
|
|
@@ -4296,7 +4302,7 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4296
4302
|
], 2)
|
|
4297
4303
|
]));
|
|
4298
4304
|
}
|
|
4299
|
-
}),
|
|
4305
|
+
}), Kt = /* @__PURE__ */ y({
|
|
4300
4306
|
__name: "ActionBar",
|
|
4301
4307
|
props: {
|
|
4302
4308
|
model: {},
|
|
@@ -4304,36 +4310,42 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4304
4310
|
handleClick: { type: Boolean, default: !0 }
|
|
4305
4311
|
},
|
|
4306
4312
|
setup(u) {
|
|
4307
|
-
const e = u, n =
|
|
4308
|
-
e.handleClick &&
|
|
4313
|
+
const e = u, n = f(null), s = (l) => {
|
|
4314
|
+
e.handleClick && l.stopPropagation();
|
|
4309
4315
|
};
|
|
4310
|
-
S(() => e.model)
|
|
4316
|
+
S(() => e.model, void 0, (l) => {
|
|
4317
|
+
l.resetResponsivityManager();
|
|
4318
|
+
});
|
|
4311
4319
|
const o = ne(() => e.model.renderedActions);
|
|
4312
|
-
|
|
4313
|
-
e.model.
|
|
4314
|
-
}
|
|
4315
|
-
|
|
4316
|
-
|
|
4320
|
+
function t() {
|
|
4321
|
+
e.model.hasVisibleActions && e.model.initResponsivityManager(n.value);
|
|
4322
|
+
}
|
|
4323
|
+
return z(() => {
|
|
4324
|
+
t();
|
|
4325
|
+
}), Z(() => {
|
|
4326
|
+
t();
|
|
4327
|
+
}), (l, d) => l.model.hasActions ? (i(), a("div", {
|
|
4317
4328
|
key: 0,
|
|
4318
4329
|
ref_key: "root",
|
|
4319
4330
|
ref: n,
|
|
4320
|
-
|
|
4331
|
+
style: k(l.model.getRootStyle()),
|
|
4332
|
+
class: r(l.model.getRootCss()),
|
|
4321
4333
|
onClick: s
|
|
4322
4334
|
}, [
|
|
4323
|
-
(i(!0), a(M, null, V(w(o), (
|
|
4335
|
+
(i(!0), a(M, null, V(w(o), (C) => (i(), g(m, {
|
|
4324
4336
|
is: "sv-action",
|
|
4325
|
-
key:
|
|
4326
|
-
item:
|
|
4337
|
+
key: C.renderedId,
|
|
4338
|
+
item: C
|
|
4327
4339
|
}, null, 8, ["item"]))), 128))
|
|
4328
|
-
],
|
|
4340
|
+
], 6)) : p("", !0);
|
|
4329
4341
|
}
|
|
4330
|
-
}),
|
|
4342
|
+
}), jt = ["id"], Gt = { class: "sv-action__content" }, Xt = /* @__PURE__ */ y({
|
|
4331
4343
|
__name: "Action",
|
|
4332
4344
|
props: {
|
|
4333
4345
|
item: {}
|
|
4334
4346
|
},
|
|
4335
4347
|
setup(u) {
|
|
4336
|
-
const e =
|
|
4348
|
+
const e = f(), n = u, s = H(
|
|
4337
4349
|
() => n.item.component || "sv-action-bar-item"
|
|
4338
4350
|
);
|
|
4339
4351
|
return S(() => n.item), Z(() => {
|
|
@@ -4343,7 +4355,7 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4343
4355
|
l(t, e.value);
|
|
4344
4356
|
});
|
|
4345
4357
|
};
|
|
4346
|
-
}),
|
|
4358
|
+
}), P(() => {
|
|
4347
4359
|
const o = n.item;
|
|
4348
4360
|
o.updateModeCallback = void 0;
|
|
4349
4361
|
}), (o, t) => (i(), a("div", {
|
|
@@ -4352,7 +4364,7 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4352
4364
|
ref_key: "root",
|
|
4353
4365
|
ref: e
|
|
4354
4366
|
}, [
|
|
4355
|
-
v("div",
|
|
4367
|
+
v("div", Gt, [
|
|
4356
4368
|
o.item.needSeparator ? (i(), g(m, {
|
|
4357
4369
|
key: 0,
|
|
4358
4370
|
is: "sv-action-bar-separator"
|
|
@@ -4362,9 +4374,9 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4362
4374
|
item: o.item
|
|
4363
4375
|
}, null, 8, ["is", "item"])
|
|
4364
4376
|
])
|
|
4365
|
-
], 10,
|
|
4377
|
+
], 10, jt));
|
|
4366
4378
|
}
|
|
4367
|
-
}),
|
|
4379
|
+
}), Q = {
|
|
4368
4380
|
mounted: function(u, e) {
|
|
4369
4381
|
const n = Object.assign(
|
|
4370
4382
|
{
|
|
@@ -4382,10 +4394,10 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4382
4394
|
Ue(s);
|
|
4383
4395
|
});
|
|
4384
4396
|
}
|
|
4385
|
-
},
|
|
4397
|
+
}, Jt = ["disabled", "title", "aria-checked", "aria-expanded", "role"], Yt = {
|
|
4386
4398
|
inheritAttrs: !1
|
|
4387
|
-
},
|
|
4388
|
-
...
|
|
4399
|
+
}, _t = /* @__PURE__ */ y({
|
|
4400
|
+
...Yt,
|
|
4389
4401
|
__name: "ActionBarItem",
|
|
4390
4402
|
props: {
|
|
4391
4403
|
item: {}
|
|
@@ -4425,14 +4437,14 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4425
4437
|
key: 1,
|
|
4426
4438
|
class: r(n.item.getActionBarItemTitleCss())
|
|
4427
4439
|
}, I(n.item.title), 3)) : p("", !0)
|
|
4428
|
-
], 42,
|
|
4429
|
-
[w(
|
|
4440
|
+
], 42, Jt)), [
|
|
4441
|
+
[w(Q), { processEsc: !1, disableTabStop: n.item.disableTabStop }]
|
|
4430
4442
|
]);
|
|
4431
4443
|
}
|
|
4432
|
-
}),
|
|
4444
|
+
}), xt = ["disabled", "title", "role"], eo = {
|
|
4433
4445
|
inheritAttrs: !1
|
|
4434
|
-
},
|
|
4435
|
-
...
|
|
4446
|
+
}, so = /* @__PURE__ */ y({
|
|
4447
|
+
...eo,
|
|
4436
4448
|
__name: "ActionBarItemDropdown",
|
|
4437
4449
|
props: {
|
|
4438
4450
|
item: {}
|
|
@@ -4474,8 +4486,8 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4474
4486
|
key: 1,
|
|
4475
4487
|
class: r(s.item.getActionBarItemTitleCss())
|
|
4476
4488
|
}, I(s.item.title), 3)) : p("", !0)
|
|
4477
|
-
], 42,
|
|
4478
|
-
[w(
|
|
4489
|
+
], 42, xt)), [
|
|
4490
|
+
[w(Q), { processEsc: !1, disableTabStop: s.item.disableTabStop }]
|
|
4479
4491
|
]),
|
|
4480
4492
|
c(m, {
|
|
4481
4493
|
is: "sv-popup",
|
|
@@ -4483,7 +4495,7 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4483
4495
|
}, null, 8, ["model"])
|
|
4484
4496
|
], 64));
|
|
4485
4497
|
}
|
|
4486
|
-
}),
|
|
4498
|
+
}), no = /* @__PURE__ */ y({
|
|
4487
4499
|
__name: "ActionBarSeparator",
|
|
4488
4500
|
props: {
|
|
4489
4501
|
item: {}
|
|
@@ -4494,13 +4506,13 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4494
4506
|
class: r(["sv-action-bar-separator", n.value])
|
|
4495
4507
|
}, null, 2));
|
|
4496
4508
|
}
|
|
4497
|
-
}),
|
|
4509
|
+
}), to = ["aria-label", "placeholder", "value"], oo = ["aria-label"], io = ["role", "aria-label", "id"], ro = /* @__PURE__ */ y({
|
|
4498
4510
|
__name: "List",
|
|
4499
4511
|
props: {
|
|
4500
4512
|
model: {}
|
|
4501
4513
|
},
|
|
4502
4514
|
setup(u) {
|
|
4503
|
-
const e = u, n =
|
|
4515
|
+
const e = u, n = f(null), s = (d) => {
|
|
4504
4516
|
const C = e.model;
|
|
4505
4517
|
C.filterString = d.target.value;
|
|
4506
4518
|
}, o = (d) => {
|
|
@@ -4511,7 +4523,7 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4511
4523
|
}, l = ne(() => e.model.renderedActions);
|
|
4512
4524
|
return S(() => e.model), Z(() => {
|
|
4513
4525
|
e.model.initListContainerHtmlElement(n.value);
|
|
4514
|
-
}),
|
|
4526
|
+
}), P(() => {
|
|
4515
4527
|
e.model && (e.model.removeScrollEventListener(), e.model.initListContainerHtmlElement(void 0));
|
|
4516
4528
|
}), (d, C) => (i(), a("div", {
|
|
4517
4529
|
class: r(d.model.cssClasses.root),
|
|
@@ -4539,11 +4551,11 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4539
4551
|
value: d.model.filterString,
|
|
4540
4552
|
onChange: s,
|
|
4541
4553
|
onKeyup: o
|
|
4542
|
-
}, null, 42,
|
|
4554
|
+
}, null, 42, to),
|
|
4543
4555
|
d.model.showSearchClearButton && d.model.filterString ? (i(), a("button", {
|
|
4544
4556
|
key: 0,
|
|
4545
|
-
onClick: C[0] || (C[0] = (
|
|
4546
|
-
d.model.onClickSearchClearButton(
|
|
4557
|
+
onClick: C[0] || (C[0] = (L) => {
|
|
4558
|
+
d.model.onClickSearchClearButton(L);
|
|
4547
4559
|
}),
|
|
4548
4560
|
class: r(d.model.cssClasses.searchClearButtonIcon)
|
|
4549
4561
|
}, [
|
|
@@ -4560,9 +4572,9 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4560
4572
|
v("div", {
|
|
4561
4573
|
class: r(d.model.cssClasses.emptyText),
|
|
4562
4574
|
"aria-label": d.model.emptyMessage
|
|
4563
|
-
}, I(d.model.emptyMessage), 11,
|
|
4575
|
+
}, I(d.model.emptyMessage), 11, oo)
|
|
4564
4576
|
], 2), [
|
|
4565
|
-
[
|
|
4577
|
+
[A, d.model.isEmpty]
|
|
4566
4578
|
]),
|
|
4567
4579
|
d.model.renderElements ? B((i(), a("ul", {
|
|
4568
4580
|
key: 1,
|
|
@@ -4570,26 +4582,26 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4570
4582
|
role: d.model.listRole,
|
|
4571
4583
|
"aria-label": d.model.a11ya11y_input_ariaLabel,
|
|
4572
4584
|
id: d.model.elementId,
|
|
4573
|
-
onMousedown: C[1] || (C[1] = (
|
|
4574
|
-
|
|
4585
|
+
onMousedown: C[1] || (C[1] = (L) => {
|
|
4586
|
+
L.preventDefault();
|
|
4575
4587
|
}),
|
|
4576
4588
|
onMousemove: t,
|
|
4577
|
-
onKeydown: C[2] || (C[2] = (
|
|
4578
|
-
d.model.onKeyDown(
|
|
4589
|
+
onKeydown: C[2] || (C[2] = (L) => {
|
|
4590
|
+
d.model.onKeyDown(L);
|
|
4579
4591
|
})
|
|
4580
4592
|
}, [
|
|
4581
|
-
(i(!0), a(M, null, V(w(l), (
|
|
4593
|
+
(i(!0), a(M, null, V(w(l), (L) => (i(), g(m, {
|
|
4582
4594
|
is: "sv-list-item",
|
|
4583
|
-
item:
|
|
4595
|
+
item: L,
|
|
4584
4596
|
model: d.model,
|
|
4585
|
-
key:
|
|
4597
|
+
key: L.id
|
|
4586
4598
|
}, null, 8, ["item", "model"]))), 128))
|
|
4587
|
-
], 42,
|
|
4588
|
-
[
|
|
4599
|
+
], 42, io)), [
|
|
4600
|
+
[A, !d.model.isEmpty]
|
|
4589
4601
|
]) : p("", !0)
|
|
4590
4602
|
], 2));
|
|
4591
4603
|
}
|
|
4592
|
-
}),
|
|
4604
|
+
}), lo = ["role", "aria-selected", "aria-checked", "id", "tabindex"], ao = ["title"], uo = /* @__PURE__ */ y({
|
|
4593
4605
|
__name: "ListItem",
|
|
4594
4606
|
props: {
|
|
4595
4607
|
model: {},
|
|
@@ -4623,7 +4635,7 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4623
4635
|
class: r(t.model.cssClasses.itemSeparator)
|
|
4624
4636
|
}, null, 2)) : p("", !0),
|
|
4625
4637
|
v("div", {
|
|
4626
|
-
style:
|
|
4638
|
+
style: k(t.model.getItemStyle(t.item)),
|
|
4627
4639
|
class: r(t.model.cssClasses.itemBody),
|
|
4628
4640
|
title: t.item.getTooltip(),
|
|
4629
4641
|
onMouseover: l[0] || (l[0] = (d) => t.model.onItemHover(t.item)),
|
|
@@ -4634,13 +4646,13 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4634
4646
|
item: t.item,
|
|
4635
4647
|
model: t.model
|
|
4636
4648
|
}, null, 8, ["is", "item", "model"])
|
|
4637
|
-
], 46,
|
|
4638
|
-
], 42,
|
|
4639
|
-
[
|
|
4640
|
-
[w(
|
|
4649
|
+
], 46, ao)
|
|
4650
|
+
], 42, lo)), [
|
|
4651
|
+
[A, t.model.isItemVisible(t.item)],
|
|
4652
|
+
[w(Q), { processEsc: !1, disableTabStop: t.item.disableTabStop }]
|
|
4641
4653
|
]);
|
|
4642
4654
|
}
|
|
4643
|
-
}),
|
|
4655
|
+
}), mo = /* @__PURE__ */ y({
|
|
4644
4656
|
__name: "ListItemContent",
|
|
4645
4657
|
props: {
|
|
4646
4658
|
model: {},
|
|
@@ -4669,7 +4681,7 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4669
4681
|
}, null, 8, ["class", "iconName"])) : p("", !0)
|
|
4670
4682
|
], 64));
|
|
4671
4683
|
}
|
|
4672
|
-
}),
|
|
4684
|
+
}), po = /* @__PURE__ */ y({
|
|
4673
4685
|
__name: "ListItemGroup",
|
|
4674
4686
|
props: {
|
|
4675
4687
|
model: {},
|
|
@@ -4689,13 +4701,13 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4689
4701
|
}, null, 8, ["model"])
|
|
4690
4702
|
], 64));
|
|
4691
4703
|
}
|
|
4692
|
-
}),
|
|
4704
|
+
}), vo = /* @__PURE__ */ y({
|
|
4693
4705
|
__name: "Popup",
|
|
4694
4706
|
props: {
|
|
4695
4707
|
model: {}
|
|
4696
4708
|
},
|
|
4697
4709
|
setup(u) {
|
|
4698
|
-
const e = u, n = E(), s =
|
|
4710
|
+
const e = u, n = E(), s = f(null), o = () => {
|
|
4699
4711
|
const t = s.value;
|
|
4700
4712
|
t && n.value.setComponentElement(t);
|
|
4701
4713
|
};
|
|
@@ -4707,7 +4719,7 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4707
4719
|
{ immediate: !0 }
|
|
4708
4720
|
), S(() => n.value), Z(() => {
|
|
4709
4721
|
o();
|
|
4710
|
-
}),
|
|
4722
|
+
}), P(() => {
|
|
4711
4723
|
n.value.dispose();
|
|
4712
4724
|
}), (t, l) => (i(), a("div", {
|
|
4713
4725
|
ref_key: "root",
|
|
@@ -4719,13 +4731,13 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4719
4731
|
}, null, 8, ["model"])
|
|
4720
4732
|
], 512));
|
|
4721
4733
|
}
|
|
4722
|
-
}),
|
|
4734
|
+
}), Co = { class: "sv-popup__body-content" }, co = {
|
|
4723
4735
|
key: 0,
|
|
4724
4736
|
class: "sv-popup__body-header"
|
|
4725
|
-
},
|
|
4737
|
+
}, go = { class: "sv-popup__scrolling-content" }, yo = { class: "sv-popup__content" }, ho = {
|
|
4726
4738
|
key: 1,
|
|
4727
4739
|
class: "sv-popup__body-footer"
|
|
4728
|
-
},
|
|
4740
|
+
}, qo = /* @__PURE__ */ y({
|
|
4729
4741
|
__name: "PopupContainer",
|
|
4730
4742
|
props: {
|
|
4731
4743
|
model: {}
|
|
@@ -4734,7 +4746,7 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4734
4746
|
const e = u, n = (s) => {
|
|
4735
4747
|
s.stopPropagation();
|
|
4736
4748
|
};
|
|
4737
|
-
return S(() => e.model),
|
|
4749
|
+
return S(() => e.model), z(() => {
|
|
4738
4750
|
const s = e.model;
|
|
4739
4751
|
s.isVisible && !s.isPositionSet && e.model.updateOnShowing();
|
|
4740
4752
|
}), Z(() => {
|
|
@@ -4751,7 +4763,7 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4751
4763
|
}, [
|
|
4752
4764
|
v("div", {
|
|
4753
4765
|
class: "sv-popup__container",
|
|
4754
|
-
style:
|
|
4766
|
+
style: k({
|
|
4755
4767
|
left: s.model.left,
|
|
4756
4768
|
top: s.model.top,
|
|
4757
4769
|
height: s.model.height,
|
|
@@ -4765,16 +4777,16 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4765
4777
|
is: s.model.popupHeaderTemplate,
|
|
4766
4778
|
model: s.model
|
|
4767
4779
|
}, null, 8, ["is", "model"])) : p("", !0),
|
|
4768
|
-
v("div",
|
|
4769
|
-
s.model.title ? (i(), a("div",
|
|
4770
|
-
v("div",
|
|
4771
|
-
v("div",
|
|
4780
|
+
v("div", Co, [
|
|
4781
|
+
s.model.title ? (i(), a("div", co, I(s.model.title), 1)) : p("", !0),
|
|
4782
|
+
v("div", go, [
|
|
4783
|
+
v("div", yo, [
|
|
4772
4784
|
c(m, $({
|
|
4773
4785
|
is: s.model.contentComponentName
|
|
4774
4786
|
}, s.model.contentComponentData), null, 16, ["is"])
|
|
4775
4787
|
])
|
|
4776
4788
|
]),
|
|
4777
|
-
s.model.showFooter ? (i(), a("div",
|
|
4789
|
+
s.model.showFooter ? (i(), a("div", ho, [
|
|
4778
4790
|
c(m, {
|
|
4779
4791
|
is: "sv-action-bar",
|
|
4780
4792
|
model: s.model.footerToolbar
|
|
@@ -4783,10 +4795,10 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4783
4795
|
])
|
|
4784
4796
|
], 4)
|
|
4785
4797
|
], 34)), [
|
|
4786
|
-
[
|
|
4798
|
+
[A, s.model.isVisible]
|
|
4787
4799
|
]);
|
|
4788
4800
|
}
|
|
4789
|
-
}),
|
|
4801
|
+
}), wo = /* @__PURE__ */ y({
|
|
4790
4802
|
__name: "PopupPointer",
|
|
4791
4803
|
props: {
|
|
4792
4804
|
model: {}
|
|
@@ -4794,13 +4806,13 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4794
4806
|
setup(u) {
|
|
4795
4807
|
return (e, n) => (i(), a("span", {
|
|
4796
4808
|
class: "sv-popup__pointer",
|
|
4797
|
-
style:
|
|
4809
|
+
style: k({
|
|
4798
4810
|
left: e.model.pointerTarget.left,
|
|
4799
4811
|
top: e.model.pointerTarget.top
|
|
4800
4812
|
})
|
|
4801
4813
|
}, null, 4));
|
|
4802
4814
|
}
|
|
4803
|
-
}),
|
|
4815
|
+
}), bo = /* @__PURE__ */ y({
|
|
4804
4816
|
__name: "Container",
|
|
4805
4817
|
props: {
|
|
4806
4818
|
survey: {},
|
|
@@ -4832,7 +4844,7 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4832
4844
|
}, null, 8, ["is", "survey", "container", "model"]))), 128))
|
|
4833
4845
|
], 64)) : p("", !0);
|
|
4834
4846
|
}
|
|
4835
|
-
}),
|
|
4847
|
+
}), Lo = ["aria-label"], Y = /* @__PURE__ */ y({
|
|
4836
4848
|
__name: "Progress",
|
|
4837
4849
|
props: {
|
|
4838
4850
|
survey: {},
|
|
@@ -4846,7 +4858,7 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4846
4858
|
}, [
|
|
4847
4859
|
v("div", {
|
|
4848
4860
|
class: r(t.survey.css.progressBar),
|
|
4849
|
-
style:
|
|
4861
|
+
style: k({ width: n.value }),
|
|
4850
4862
|
role: "progressbar",
|
|
4851
4863
|
"aria-valuemin": "0",
|
|
4852
4864
|
"aria-valuemax": "100",
|
|
@@ -4855,13 +4867,13 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4855
4867
|
v("span", {
|
|
4856
4868
|
class: r(s(t.survey.css))
|
|
4857
4869
|
}, I(t.survey.progressText), 3)
|
|
4858
|
-
], 14,
|
|
4870
|
+
], 14, Lo),
|
|
4859
4871
|
v("span", {
|
|
4860
4872
|
class: r(o(t.survey.css))
|
|
4861
4873
|
}, I(t.survey.progressText), 3)
|
|
4862
4874
|
], 2));
|
|
4863
4875
|
}
|
|
4864
|
-
}),
|
|
4876
|
+
}), ko = ["aria-label"], fo = ["title"], Ho = ["onClick", "data-page-number"], Mo = ["title"], Io = ["title"], Vo = ["title"], So = /* @__PURE__ */ y({
|
|
4865
4877
|
__name: "ProgressButtons",
|
|
4866
4878
|
props: {
|
|
4867
4879
|
survey: {},
|
|
@@ -4869,9 +4881,9 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4869
4881
|
container: {}
|
|
4870
4882
|
},
|
|
4871
4883
|
setup(u) {
|
|
4872
|
-
const e = u, n =
|
|
4884
|
+
const e = u, n = f(!1), s = f(!1), o = f(!1), t = f(!0), l = f(), d = H(() => e.survey.css);
|
|
4873
4885
|
let C = null;
|
|
4874
|
-
const
|
|
4886
|
+
const L = (h) => {
|
|
4875
4887
|
let q = l.value;
|
|
4876
4888
|
q.scrollLeft += (h ? -1 : 1) * 70;
|
|
4877
4889
|
};
|
|
@@ -4893,7 +4905,7 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4893
4905
|
C.dispose();
|
|
4894
4906
|
}), (h, q) => (i(), a("div", {
|
|
4895
4907
|
class: r(h.model.getRootCss(h.container)),
|
|
4896
|
-
style:
|
|
4908
|
+
style: k({ maxWidth: h.model.progressWidth }),
|
|
4897
4909
|
role: "progressbar",
|
|
4898
4910
|
"aria-valuemin": "0",
|
|
4899
4911
|
"aria-valuemax": "100",
|
|
@@ -4906,14 +4918,14 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4906
4918
|
v("div", {
|
|
4907
4919
|
class: r(h.survey.css.progressButtonsPageTitle),
|
|
4908
4920
|
title: h.model.headerText
|
|
4909
|
-
}, I(h.model.headerText), 11,
|
|
4921
|
+
}, I(h.model.headerText), 11, fo)
|
|
4910
4922
|
], 2)) : p("", !0),
|
|
4911
4923
|
v("div", {
|
|
4912
4924
|
class: r(d.value.progressButtonsContainer)
|
|
4913
4925
|
}, [
|
|
4914
4926
|
v("div", {
|
|
4915
4927
|
class: r(h.model.getScrollButtonCss(n.value, !0)),
|
|
4916
|
-
onClick: q[0] || (q[0] = (
|
|
4928
|
+
onClick: q[0] || (q[0] = (b) => L(!0)),
|
|
4917
4929
|
role: "button"
|
|
4918
4930
|
}, null, 2),
|
|
4919
4931
|
v("div", {
|
|
@@ -4924,11 +4936,11 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4924
4936
|
v("ul", {
|
|
4925
4937
|
class: r(d.value.progressButtonsList)
|
|
4926
4938
|
}, [
|
|
4927
|
-
(i(!0), a(M, null, V(h.survey.visiblePages, (
|
|
4939
|
+
(i(!0), a(M, null, V(h.survey.visiblePages, (b, R) => (i(), a("li", {
|
|
4928
4940
|
key: "listelement" + R,
|
|
4929
4941
|
class: r(h.model.getListElementCss(R)),
|
|
4930
|
-
onClick: (N) => h.model.isListElementClickable(R) ? h.model.clickListElement(
|
|
4931
|
-
"data-page-number": h.model.getItemNumber(
|
|
4942
|
+
onClick: (N) => h.model.isListElementClickable(R) ? h.model.clickListElement(b) : null,
|
|
4943
|
+
"data-page-number": h.model.getItemNumber(b)
|
|
4932
4944
|
}, [
|
|
4933
4945
|
v("div", {
|
|
4934
4946
|
class: r(d.value.progressButtonsConnector)
|
|
@@ -4936,18 +4948,18 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4936
4948
|
t.value ? (i(), a("div", {
|
|
4937
4949
|
key: 0,
|
|
4938
4950
|
class: r(d.value.progressButtonsPageTitle),
|
|
4939
|
-
title:
|
|
4951
|
+
title: b.renderedNavigationTitle
|
|
4940
4952
|
}, [
|
|
4941
4953
|
c(m, {
|
|
4942
4954
|
is: "survey-string",
|
|
4943
|
-
locString:
|
|
4955
|
+
locString: b.locNavigationTitle
|
|
4944
4956
|
}, null, 8, ["locString"])
|
|
4945
|
-
], 10,
|
|
4957
|
+
], 10, Mo)) : p("", !0),
|
|
4946
4958
|
t.value ? (i(), a("div", {
|
|
4947
4959
|
key: 1,
|
|
4948
4960
|
class: r(d.value.progressButtonsPageDescription),
|
|
4949
|
-
title:
|
|
4950
|
-
}, I(
|
|
4961
|
+
title: b.locNavigationDescription.renderedHtml
|
|
4962
|
+
}, I(b.locNavigationDescription.renderedHtml), 11, Io)) : p("", !0),
|
|
4951
4963
|
v("div", {
|
|
4952
4964
|
class: r(d.value.progressButtonsButton)
|
|
4953
4965
|
}, [
|
|
@@ -4957,14 +4969,14 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4957
4969
|
v("div", {
|
|
4958
4970
|
class: r(d.value.progressButtonsButtonContent)
|
|
4959
4971
|
}, null, 2),
|
|
4960
|
-
v("span", null, I(h.model.getItemNumber(
|
|
4972
|
+
v("span", null, I(h.model.getItemNumber(b)), 1)
|
|
4961
4973
|
], 2)
|
|
4962
|
-
], 10,
|
|
4974
|
+
], 10, Ho))), 128))
|
|
4963
4975
|
], 2)
|
|
4964
4976
|
], 2),
|
|
4965
4977
|
v("div", {
|
|
4966
4978
|
class: r(h.model.getScrollButtonCss(n.value, !1)),
|
|
4967
|
-
onClick: q[1] || (q[1] = (
|
|
4979
|
+
onClick: q[1] || (q[1] = (b) => L(!1)),
|
|
4968
4980
|
role: "button"
|
|
4969
4981
|
}, null, 2)
|
|
4970
4982
|
], 2),
|
|
@@ -4975,11 +4987,11 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
4975
4987
|
v("div", {
|
|
4976
4988
|
class: r(h.survey.css.progressButtonsPageTitle),
|
|
4977
4989
|
title: h.model.footerText
|
|
4978
|
-
}, I(h.model.footerText), 11,
|
|
4990
|
+
}, I(h.model.footerText), 11, Vo)
|
|
4979
4991
|
], 2)) : p("", !0)
|
|
4980
|
-
], 14,
|
|
4992
|
+
], 14, ko));
|
|
4981
4993
|
}
|
|
4982
|
-
}),
|
|
4994
|
+
}), Ro = /* @__PURE__ */ y({
|
|
4983
4995
|
__name: "ProgressToc",
|
|
4984
4996
|
props: {
|
|
4985
4997
|
survey: {},
|
|
@@ -5007,7 +5019,7 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
5007
5019
|
model: n.model.popupModel
|
|
5008
5020
|
}, null, 8, ["model"])
|
|
5009
5021
|
])), [
|
|
5010
|
-
[w(
|
|
5022
|
+
[w(Q)]
|
|
5011
5023
|
]) : (i(), g(m, {
|
|
5012
5024
|
key: 1,
|
|
5013
5025
|
is: "sv-list",
|
|
@@ -5017,11 +5029,11 @@ const Wt = /* @__PURE__ */ $t(Dt, [["render", Et]]), Ft = /* @__PURE__ */ v("use
|
|
|
5017
5029
|
}
|
|
5018
5030
|
});
|
|
5019
5031
|
/*!
|
|
5020
|
-
* surveyjs - Survey JavaScript library v2.2.
|
|
5032
|
+
* surveyjs - Survey JavaScript library v2.2.2
|
|
5021
5033
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
5022
5034
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5023
5035
|
*/
|
|
5024
|
-
var
|
|
5036
|
+
var To = {
|
|
5025
5037
|
modernbooleancheckchecked: '<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><polygon points="19,10 14,10 14,5 10,5 10,10 5,10 5,14 10,14 10,19 14,19 14,14 19,14 "></polygon></svg>',
|
|
5026
5038
|
modernbooleancheckind: '<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M22,0H2C0.9,0,0,0.9,0,2v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V2C24,0.9,23.1,0,22,0z M21,18L6,3h15V18z M3,6l15,15H3V6z"></path></svg>',
|
|
5027
5039
|
modernbooleancheckunchecked: '<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><rect x="5" y="10" width="14" height="4"></rect></svg>',
|
|
@@ -5085,7 +5097,7 @@ var Ro = {
|
|
|
5085
5097
|
"smiley-rate9-24x24": '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z"></path></svg>'
|
|
5086
5098
|
};
|
|
5087
5099
|
/*!
|
|
5088
|
-
* surveyjs - Survey JavaScript library v2.2.
|
|
5100
|
+
* surveyjs - Survey JavaScript library v2.2.2
|
|
5089
5101
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
5090
5102
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5091
5103
|
*/
|
|
@@ -5152,11 +5164,11 @@ var ke = {
|
|
|
5152
5164
|
"smiley-rate8-24x24": '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85721 24 1.15412 20.96 0.0134987 14.16C-0.0765501 13.62 0.293651 13.1 0.833944 13.01C1.38424 12.92 1.89452 13.29 1.98457 13.83C2.92508 19.47 7.69767 21.99 12 21.99C16.3023 21.99 21.0749 19.47 22.0154 13.83C22.1055 13.29 22.6158 12.92 23.1661 13.01C23.7063 13.1 24.0765 13.62 23.9865 14.16C22.8559 20.95 17.1428 24 11.99 24H12.01ZM8.00783 6V2C8.00783 1.45 7.55759 1 7.00729 1C6.45699 1 6.00675 1.45 6.00675 2V6C6.00675 6.55 6.45699 7 7.00729 7C7.55759 7 8.00783 6.55 8.00783 6ZM18.0133 6V2C18.0133 1.45 17.563 1 17.0127 1C16.4624 1 16.0122 1.45 16.0122 2V6C16.0122 6.55 16.4624 7 17.0127 7C17.563 7 18.0133 6.55 18.0133 6Z"></path></svg>',
|
|
5153
5165
|
"smiley-rate9-24x24": '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z"></path></svg>'
|
|
5154
5166
|
};
|
|
5155
|
-
const
|
|
5167
|
+
const Bo = ["lang", "dir"], Zo = { onsubmit: "return false;" }, $o = {
|
|
5156
5168
|
key: 0,
|
|
5157
5169
|
class: "sv_custom_header"
|
|
5158
|
-
},
|
|
5159
|
-
we("v1",
|
|
5170
|
+
}, Do = { class: "sv-components-column sv-components-column--expandable" }, Ao = ["id"], Po = { key: 2 }, No = ["innerHTML"], Eo = ["innerHTML"], Wo = ["innerHTML"];
|
|
5171
|
+
we("v1", To);
|
|
5160
5172
|
we("v2", ke);
|
|
5161
5173
|
_.registerIcons(ke);
|
|
5162
5174
|
const ae = /* @__PURE__ */ y({
|
|
@@ -5166,7 +5178,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5166
5178
|
survey: {}
|
|
5167
5179
|
},
|
|
5168
5180
|
setup(u) {
|
|
5169
|
-
const e = u, n =
|
|
5181
|
+
const e = u, n = f(), s = f(""), o = f(1), t = H(() => {
|
|
5170
5182
|
const R = e.survey ? e.survey : e.model;
|
|
5171
5183
|
return De(R);
|
|
5172
5184
|
}), l = H(() => t.value.activePage ? t.value.activePage.id : ""), d = () => {
|
|
@@ -5174,30 +5186,30 @@ const ae = /* @__PURE__ */ y({
|
|
|
5174
5186
|
return !!t.value && R + o.value.toString();
|
|
5175
5187
|
}, C = H(
|
|
5176
5188
|
() => t.value.showCompletedPage && t.value.state === "completed"
|
|
5177
|
-
),
|
|
5189
|
+
), L = H(() => t.value.css), h = H(() => "page" + d()), q = () => C.value ? (s.value || (s.value = t.value.processedCompletedHtml), s.value) : "", b = (R) => {
|
|
5178
5190
|
if (R) {
|
|
5179
5191
|
var N = n.value;
|
|
5180
5192
|
N && R.afterRenderSurvey(N), R.renderCallback = () => {
|
|
5181
|
-
var
|
|
5182
|
-
o.value++, (
|
|
5193
|
+
var K, j;
|
|
5194
|
+
o.value++, (j = (K = he()) == null ? void 0 : K.proxy) == null || j.$forceUpdate();
|
|
5183
5195
|
}, R.startTimerFromUI();
|
|
5184
5196
|
}
|
|
5185
5197
|
};
|
|
5186
5198
|
return S(
|
|
5187
5199
|
() => t.value,
|
|
5188
5200
|
(R, N) => {
|
|
5189
|
-
R && N &&
|
|
5201
|
+
R && N && b(R);
|
|
5190
5202
|
},
|
|
5191
5203
|
(R) => {
|
|
5192
5204
|
R.stopTimer(), R.renderCallback = void 0;
|
|
5193
5205
|
}
|
|
5194
5206
|
), Z(() => {
|
|
5195
|
-
|
|
5196
|
-
}),
|
|
5207
|
+
b(t.value);
|
|
5208
|
+
}), P(() => {
|
|
5197
5209
|
t.value.stopTimer(), t.value.beforeDestroySurveyElement(), t.value.renderCallback = void 0;
|
|
5198
5210
|
}), (R, N) => (i(), a("div", {
|
|
5199
5211
|
class: r(t.value.getRootCss()),
|
|
5200
|
-
style:
|
|
5212
|
+
style: k(t.value.themeVariables),
|
|
5201
5213
|
lang: t.value.locale || "en",
|
|
5202
5214
|
dir: t.value.localeDir,
|
|
5203
5215
|
ref_key: "root",
|
|
@@ -5207,7 +5219,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5207
5219
|
is: "sv-scroll",
|
|
5208
5220
|
disabled: t.value.rootScrollDisabled
|
|
5209
5221
|
}, {
|
|
5210
|
-
default:
|
|
5222
|
+
default: D(() => [
|
|
5211
5223
|
t.value.needRenderIcons ? (i(), g(m, {
|
|
5212
5224
|
key: 0,
|
|
5213
5225
|
is: "sv-svg-bundle"
|
|
@@ -5218,18 +5230,18 @@ const ae = /* @__PURE__ */ y({
|
|
|
5218
5230
|
c(m, { is: "survey-popup-modal" }),
|
|
5219
5231
|
t.value.renderBackgroundImage ? (i(), a("div", {
|
|
5220
5232
|
key: 0,
|
|
5221
|
-
class: r(
|
|
5222
|
-
style:
|
|
5233
|
+
class: r(L.value.rootBackgroundImage),
|
|
5234
|
+
style: k(t.value.backgroundImageStyle)
|
|
5223
5235
|
}, null, 6)) : p("", !0),
|
|
5224
|
-
v("form",
|
|
5236
|
+
v("form", Zo, [
|
|
5225
5237
|
c(m, {
|
|
5226
5238
|
is: "sv-scroll",
|
|
5227
5239
|
disabled: t.value.formScrollDisabled
|
|
5228
5240
|
}, {
|
|
5229
|
-
default:
|
|
5230
|
-
t.value.hasLogo ? p("", !0) : (i(), a("div",
|
|
5241
|
+
default: D(() => [
|
|
5242
|
+
t.value.hasLogo ? p("", !0) : (i(), a("div", $o)),
|
|
5231
5243
|
v("div", {
|
|
5232
|
-
class: r(
|
|
5244
|
+
class: r(L.value.container)
|
|
5233
5245
|
}, [
|
|
5234
5246
|
t.value.headerView === "basic" ? (i(), g(m, {
|
|
5235
5247
|
key: 0,
|
|
@@ -5252,7 +5264,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5252
5264
|
container: "left",
|
|
5253
5265
|
needRenderWrapper: !0
|
|
5254
5266
|
}, null, 8, ["survey"]),
|
|
5255
|
-
v("div",
|
|
5267
|
+
v("div", Do, [
|
|
5256
5268
|
c(m, {
|
|
5257
5269
|
is: "sv-components-container",
|
|
5258
5270
|
survey: t.value,
|
|
@@ -5261,7 +5273,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5261
5273
|
}, null, 8, ["survey"]),
|
|
5262
5274
|
v("div", {
|
|
5263
5275
|
class: r(t.value.bodyCss),
|
|
5264
|
-
style:
|
|
5276
|
+
style: k({ maxWidth: t.value.renderedWidth }),
|
|
5265
5277
|
id: l.value
|
|
5266
5278
|
}, [
|
|
5267
5279
|
c(m, {
|
|
@@ -5275,7 +5287,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5275
5287
|
key: h.value,
|
|
5276
5288
|
survey: t.value,
|
|
5277
5289
|
page: t.value.activePage,
|
|
5278
|
-
css:
|
|
5290
|
+
css: L.value
|
|
5279
5291
|
}, null, 8, ["survey", "page", "css"])),
|
|
5280
5292
|
c(m, {
|
|
5281
5293
|
is: "sv-components-container",
|
|
@@ -5287,7 +5299,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5287
5299
|
key: 0,
|
|
5288
5300
|
is: "sv-brand-info"
|
|
5289
5301
|
})) : p("", !0)
|
|
5290
|
-
], 14,
|
|
5302
|
+
], 14, Ao)
|
|
5291
5303
|
]),
|
|
5292
5304
|
c(m, {
|
|
5293
5305
|
is: "sv-components-container",
|
|
@@ -5302,11 +5314,11 @@ const ae = /* @__PURE__ */ y({
|
|
|
5302
5314
|
container: "footer",
|
|
5303
5315
|
needRenderWrapper: !1
|
|
5304
5316
|
}, null, 8, ["survey"]),
|
|
5305
|
-
C.value ? (i(), a("div",
|
|
5317
|
+
C.value ? (i(), a("div", Po, [
|
|
5306
5318
|
v("div", {
|
|
5307
5319
|
innerHTML: q(),
|
|
5308
5320
|
class: r(t.value.completedCss)
|
|
5309
|
-
}, null, 10,
|
|
5321
|
+
}, null, 10, No),
|
|
5310
5322
|
c(m, {
|
|
5311
5323
|
is: "sv-components-container",
|
|
5312
5324
|
survey: t.value,
|
|
@@ -5318,15 +5330,15 @@ const ae = /* @__PURE__ */ y({
|
|
|
5318
5330
|
key: 3,
|
|
5319
5331
|
class: r(t.value.completedBeforeCss),
|
|
5320
5332
|
innerHTML: t.value.processedCompletedBeforeHtml
|
|
5321
|
-
}, null, 10,
|
|
5333
|
+
}, null, 10, Eo)) : p("", !0),
|
|
5322
5334
|
t.value.state === "loading" ? (i(), a("div", {
|
|
5323
5335
|
key: 4,
|
|
5324
5336
|
class: r(t.value.loadingBodyCss),
|
|
5325
5337
|
innerHTML: t.value.processedLoadingHtml
|
|
5326
|
-
}, null, 10,
|
|
5338
|
+
}, null, 10, Wo)) : p("", !0),
|
|
5327
5339
|
t.value.state === "empty" ? (i(), a("div", {
|
|
5328
5340
|
key: 5,
|
|
5329
|
-
class: r(
|
|
5341
|
+
class: r(L.value.bodyEmpty)
|
|
5330
5342
|
}, I(t.value.emptySurveyText), 3)) : p("", !0)
|
|
5331
5343
|
], 2)
|
|
5332
5344
|
]),
|
|
@@ -5341,9 +5353,9 @@ const ae = /* @__PURE__ */ y({
|
|
|
5341
5353
|
]),
|
|
5342
5354
|
_: 1
|
|
5343
5355
|
}, 8, ["disabled"])
|
|
5344
|
-
], 14,
|
|
5356
|
+
], 14, Bo));
|
|
5345
5357
|
}
|
|
5346
|
-
}),
|
|
5358
|
+
}), Fo = /* @__PURE__ */ y({
|
|
5347
5359
|
__name: "Notifier",
|
|
5348
5360
|
props: {
|
|
5349
5361
|
model: {}
|
|
@@ -5353,7 +5365,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5353
5365
|
return S(() => e.model), (n, s) => n.model.isDisplayed ? (i(), a("div", {
|
|
5354
5366
|
key: 0,
|
|
5355
5367
|
class: r(n.model.css),
|
|
5356
|
-
style:
|
|
5368
|
+
style: k({ visibility: n.model.active ? "visible" : "hidden" }),
|
|
5357
5369
|
role: "alert",
|
|
5358
5370
|
"aria-live": "polite"
|
|
5359
5371
|
}, [
|
|
@@ -5364,7 +5376,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5364
5376
|
}, null, 8, ["model"])
|
|
5365
5377
|
], 6)) : p("", !0);
|
|
5366
5378
|
}
|
|
5367
|
-
}),
|
|
5379
|
+
}), Oo = { key: 0 }, zo = /* @__PURE__ */ y({
|
|
5368
5380
|
__name: "QuestionOther",
|
|
5369
5381
|
props: {
|
|
5370
5382
|
question: {}
|
|
@@ -5373,14 +5385,14 @@ const ae = /* @__PURE__ */ y({
|
|
|
5373
5385
|
return (e, n) => (i(), a("div", {
|
|
5374
5386
|
class: r(e.question.getCommentAreaCss(!0))
|
|
5375
5387
|
}, [
|
|
5376
|
-
e.question.isReadOnlyRenderDiv() ? (i(), a("div",
|
|
5388
|
+
e.question.isReadOnlyRenderDiv() ? (i(), a("div", Oo, I(e.question.otherValue), 1)) : (i(), g(m, {
|
|
5377
5389
|
key: 1,
|
|
5378
5390
|
is: "sv-text-area",
|
|
5379
5391
|
model: e.question.otherTextAreaModel
|
|
5380
5392
|
}, null, 8, ["model"]))
|
|
5381
5393
|
], 2));
|
|
5382
5394
|
}
|
|
5383
|
-
}),
|
|
5395
|
+
}), Uo = ["disabled", "value", "title"], Qo = /* @__PURE__ */ y({
|
|
5384
5396
|
__name: "SurveyNavigationButton",
|
|
5385
5397
|
props: {
|
|
5386
5398
|
item: {}
|
|
@@ -5397,7 +5409,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5397
5409
|
onMousedown: n,
|
|
5398
5410
|
onClick: o[0] || (o[0] = //@ts-ignore
|
|
5399
5411
|
(...t) => s.item.action && s.item.action(...t))
|
|
5400
|
-
}, null, 42,
|
|
5412
|
+
}, null, 42, Uo)) : p("", !0);
|
|
5401
5413
|
}
|
|
5402
5414
|
}), fe = /* @__PURE__ */ y({
|
|
5403
5415
|
__name: "PopupSurvey",
|
|
@@ -5419,25 +5431,25 @@ const ae = /* @__PURE__ */ y({
|
|
|
5419
5431
|
}, l = () => {
|
|
5420
5432
|
n.value.onScroll();
|
|
5421
5433
|
}, d = () => {
|
|
5422
|
-
let
|
|
5423
|
-
return n.value.isCollapsed && (
|
|
5434
|
+
let L = n.value.cssHeaderRoot;
|
|
5435
|
+
return n.value.isCollapsed && (L += " " + n.value.cssRootCollapsedMod), L;
|
|
5424
5436
|
};
|
|
5425
5437
|
S(() => n.value);
|
|
5426
5438
|
const C = W(
|
|
5427
5439
|
() => e.survey,
|
|
5428
|
-
(
|
|
5429
|
-
const h = new Ge(null,
|
|
5440
|
+
(L) => {
|
|
5441
|
+
const h = new Ge(null, L);
|
|
5430
5442
|
e.isExpanded !== void 0 && (h.isExpanded = e.isExpanded), e.closeOnCompleteTimeout !== void 0 && (h.closeOnCompleteTimeout = e.closeOnCompleteTimeout), e.allowClose !== void 0 && (h.allowClose = e.allowClose), e.allowFullScreen !== void 0 && (h.allowFullScreen = e.allowFullScreen), h.isShowing = !0, n.value = h;
|
|
5431
5443
|
},
|
|
5432
5444
|
{
|
|
5433
5445
|
immediate: !0
|
|
5434
5446
|
}
|
|
5435
5447
|
);
|
|
5436
|
-
return
|
|
5448
|
+
return P(() => {
|
|
5437
5449
|
C();
|
|
5438
|
-
}), (
|
|
5450
|
+
}), (L, h) => n.value.isShowing ? (i(), a("div", {
|
|
5439
5451
|
key: 0,
|
|
5440
|
-
style:
|
|
5452
|
+
style: k({
|
|
5441
5453
|
maxWidth: n.value.renderedWidth,
|
|
5442
5454
|
width: n.value.renderedWidth
|
|
5443
5455
|
}),
|
|
@@ -5508,19 +5520,19 @@ const ae = /* @__PURE__ */ y({
|
|
|
5508
5520
|
v("div", {
|
|
5509
5521
|
class: r(n.value.cssBody)
|
|
5510
5522
|
}, [
|
|
5511
|
-
c(ae, { survey:
|
|
5523
|
+
c(ae, { survey: L.survey }, null, 8, ["survey"])
|
|
5512
5524
|
], 2)
|
|
5513
5525
|
], 2)
|
|
5514
5526
|
], 38)) : p("", !0);
|
|
5515
5527
|
}
|
|
5516
|
-
}),
|
|
5528
|
+
}), Ko = ["innerHTML"], jo = /* @__PURE__ */ y({
|
|
5517
5529
|
__name: "CustomWidget",
|
|
5518
5530
|
props: {
|
|
5519
5531
|
question: {},
|
|
5520
5532
|
css: {}
|
|
5521
5533
|
},
|
|
5522
5534
|
setup(u) {
|
|
5523
|
-
const e = u, n =
|
|
5535
|
+
const e = u, n = f(), s = H(
|
|
5524
5536
|
() => e.question.customWidget.isDefaultRender
|
|
5525
5537
|
), o = H(
|
|
5526
5538
|
() => !!e.question.customWidget.htmlTemplate
|
|
@@ -5536,7 +5548,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5536
5548
|
o.value ? (i(), a("div", {
|
|
5537
5549
|
key: 0,
|
|
5538
5550
|
innerHTML: t.value
|
|
5539
|
-
}, null, 8,
|
|
5551
|
+
}, null, 8, Ko)) : p("", !0),
|
|
5540
5552
|
s.value ? (i(), g(m, {
|
|
5541
5553
|
key: 1,
|
|
5542
5554
|
is: l.value,
|
|
@@ -5545,7 +5557,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5545
5557
|
}, null, 8, ["is", "question", "css"])) : p("", !0)
|
|
5546
5558
|
], 512));
|
|
5547
5559
|
}
|
|
5548
|
-
}),
|
|
5560
|
+
}), Go = /* @__PURE__ */ y({
|
|
5549
5561
|
__name: "PopupModal",
|
|
5550
5562
|
setup(u) {
|
|
5551
5563
|
const e = E();
|
|
@@ -5558,7 +5570,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5558
5570
|
};
|
|
5559
5571
|
return t.onVisibilityChanged.add(l), t.model.isVisible = !0, e.value = t, t;
|
|
5560
5572
|
}
|
|
5561
|
-
return te.showDialog || (te.showDialog = n,
|
|
5573
|
+
return te.showDialog || (te.showDialog = n, P(() => {
|
|
5562
5574
|
te.showDialog = void 0;
|
|
5563
5575
|
})), (s, o) => e.value ? (i(), g(Ae, {
|
|
5564
5576
|
key: 0,
|
|
@@ -5570,23 +5582,23 @@ const ae = /* @__PURE__ */ y({
|
|
|
5570
5582
|
}, null, 8, ["model"])
|
|
5571
5583
|
], 8, ["to"])) : p("", !0);
|
|
5572
5584
|
}
|
|
5573
|
-
}),
|
|
5585
|
+
}), Xo = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], Jo = /* @__PURE__ */ y({
|
|
5574
5586
|
__name: "TextArea",
|
|
5575
5587
|
props: {
|
|
5576
5588
|
model: {},
|
|
5577
5589
|
getRef: { type: Function }
|
|
5578
5590
|
},
|
|
5579
5591
|
setup(u) {
|
|
5580
|
-
const e = u, n =
|
|
5592
|
+
const e = u, n = f(
|
|
5581
5593
|
null
|
|
5582
5594
|
), s = function(t) {
|
|
5583
5595
|
n.value = t, e.getRef && e.getRef(t);
|
|
5584
5596
|
}, o = H(() => e.model.getTextValue() || "");
|
|
5585
5597
|
return Z(() => {
|
|
5586
5598
|
e.model.setElement(n.value);
|
|
5587
|
-
}),
|
|
5599
|
+
}), z(() => {
|
|
5588
5600
|
e.model.setElement(n.value);
|
|
5589
|
-
}),
|
|
5601
|
+
}), P(() => {
|
|
5590
5602
|
e.model.resetElement();
|
|
5591
5603
|
}), (t, l) => (i(), a("textarea", {
|
|
5592
5604
|
ref: (d) => s(d),
|
|
@@ -5620,10 +5632,10 @@ const ae = /* @__PURE__ */ y({
|
|
|
5620
5632
|
"aria-describedby": t.model.ariaDescribedBy,
|
|
5621
5633
|
"aria-invalid": t.model.ariaInvalid,
|
|
5622
5634
|
"aria-errormessage": t.model.ariaErrormessage,
|
|
5623
|
-
style:
|
|
5624
|
-
}, null, 46,
|
|
5635
|
+
style: k({ resize: t.model.question.resizeStyle })
|
|
5636
|
+
}, null, 46, Xo));
|
|
5625
5637
|
}
|
|
5626
|
-
}),
|
|
5638
|
+
}), Yo = /* @__PURE__ */ y({
|
|
5627
5639
|
__name: "CharacterCounter",
|
|
5628
5640
|
props: {
|
|
5629
5641
|
counter: {},
|
|
@@ -5635,7 +5647,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5635
5647
|
class: r(n.remainingCharacterCounter)
|
|
5636
5648
|
}, I(n.counter.remainingCharacterCounter), 3));
|
|
5637
5649
|
}
|
|
5638
|
-
}),
|
|
5650
|
+
}), _o = /* @__PURE__ */ y({
|
|
5639
5651
|
inheritAttrs: !1,
|
|
5640
5652
|
__name: "Composite",
|
|
5641
5653
|
props: {
|
|
@@ -5643,7 +5655,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5643
5655
|
css: {}
|
|
5644
5656
|
},
|
|
5645
5657
|
setup(u) {
|
|
5646
|
-
const e = u, n =
|
|
5658
|
+
const e = u, n = f(null);
|
|
5647
5659
|
T(e, n);
|
|
5648
5660
|
const s = H(() => e.question.contentPanel);
|
|
5649
5661
|
return (o, t) => (i(), g(m, {
|
|
@@ -5654,7 +5666,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5654
5666
|
css: o.css
|
|
5655
5667
|
}, null, 8, ["element", "css"]));
|
|
5656
5668
|
}
|
|
5657
|
-
}),
|
|
5669
|
+
}), xo = /* @__PURE__ */ y({
|
|
5658
5670
|
inheritAttrs: !1,
|
|
5659
5671
|
__name: "Custom",
|
|
5660
5672
|
props: {
|
|
@@ -5662,7 +5674,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5662
5674
|
css: {}
|
|
5663
5675
|
},
|
|
5664
5676
|
setup(u) {
|
|
5665
|
-
const e = u, n =
|
|
5677
|
+
const e = u, n = f(null);
|
|
5666
5678
|
T(e, n);
|
|
5667
5679
|
const s = H(() => e.question.contentQuestion), o = (t) => re(t);
|
|
5668
5680
|
return (t, l) => (i(), g(m, {
|
|
@@ -5672,9 +5684,9 @@ const ae = /* @__PURE__ */ y({
|
|
|
5672
5684
|
css: t.css
|
|
5673
5685
|
}, null, 8, ["is", "question", "css"]));
|
|
5674
5686
|
}
|
|
5675
|
-
}),
|
|
5676
|
-
|
|
5677
|
-
], ce = 440,
|
|
5687
|
+
}), ei = /* @__PURE__ */ v("use", { "xlink:href": "#icon-timercircle" }, null, -1), si = [
|
|
5688
|
+
ei
|
|
5689
|
+
], ce = 440, ni = /* @__PURE__ */ y({
|
|
5678
5690
|
__name: "TimerPanel",
|
|
5679
5691
|
props: {
|
|
5680
5692
|
model: {},
|
|
@@ -5689,8 +5701,8 @@ const ae = /* @__PURE__ */ y({
|
|
|
5689
5701
|
o.model.showProgress ? (i(), a("svg", {
|
|
5690
5702
|
key: 0,
|
|
5691
5703
|
class: r(o.model.getProgressCss()),
|
|
5692
|
-
style:
|
|
5693
|
-
},
|
|
5704
|
+
style: k({ strokeDasharray: ce, strokeDashoffset: n.value })
|
|
5705
|
+
}, si, 6)) : p("", !0),
|
|
5694
5706
|
v("div", {
|
|
5695
5707
|
class: r(o.model.textContainerCss)
|
|
5696
5708
|
}, [
|
|
@@ -5706,13 +5718,13 @@ const ae = /* @__PURE__ */ y({
|
|
|
5706
5718
|
key: 1,
|
|
5707
5719
|
class: r(o.model.survey.getCss().timerRoot)
|
|
5708
5720
|
}, I(s.value), 3)), [
|
|
5709
|
-
[
|
|
5721
|
+
[A, o.model.isRunning && !o.model.showTimerAsClock]
|
|
5710
5722
|
]);
|
|
5711
5723
|
}
|
|
5712
|
-
}),
|
|
5724
|
+
}), ti = { class: "sd-loading-indicator" }, oi = /* @__PURE__ */ y({
|
|
5713
5725
|
__name: "LoadingIndicator",
|
|
5714
5726
|
setup(u) {
|
|
5715
|
-
return (e, n) => (i(), a("div",
|
|
5727
|
+
return (e, n) => (i(), a("div", ti, [
|
|
5716
5728
|
c(m, {
|
|
5717
5729
|
is: "sv-svg-icon",
|
|
5718
5730
|
iconName: "icon-loading",
|
|
@@ -5720,7 +5732,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5720
5732
|
})
|
|
5721
5733
|
]));
|
|
5722
5734
|
}
|
|
5723
|
-
}),
|
|
5735
|
+
}), ii = { key: 2 }, ri = /* @__PURE__ */ y({
|
|
5724
5736
|
__name: "Header",
|
|
5725
5737
|
props: {
|
|
5726
5738
|
model: {},
|
|
@@ -5733,22 +5745,22 @@ const ae = /* @__PURE__ */ y({
|
|
|
5733
5745
|
return n.survey = e.survey, e.model;
|
|
5734
5746
|
}), Z(() => {
|
|
5735
5747
|
e.model.processResponsiveness();
|
|
5736
|
-
}),
|
|
5748
|
+
}), z(() => {
|
|
5737
5749
|
e.model.processResponsiveness();
|
|
5738
5750
|
}), (n, s) => n.survey.headerView === "advanced" && !n.model.isEmpty ? (i(), a("div", {
|
|
5739
5751
|
key: 0,
|
|
5740
5752
|
class: r(n.model.headerClasses),
|
|
5741
|
-
style:
|
|
5753
|
+
style: k({ height: n.model.renderedHeight })
|
|
5742
5754
|
}, [
|
|
5743
5755
|
n.model.backgroundImage ? (i(), a("div", {
|
|
5744
5756
|
key: 0,
|
|
5745
5757
|
class: r(n.model.backgroundImageClasses),
|
|
5746
|
-
style:
|
|
5758
|
+
style: k(n.model.backgroundImageStyle)
|
|
5747
5759
|
}, null, 6)) : p("", !0),
|
|
5748
5760
|
n.survey.isMobile ? p("", !0) : (i(), a("div", {
|
|
5749
5761
|
key: 1,
|
|
5750
5762
|
class: r(n.model.contentClasses),
|
|
5751
|
-
style:
|
|
5763
|
+
style: k({ maxWidth: n.model.maxWidth })
|
|
5752
5764
|
}, [
|
|
5753
5765
|
(i(!0), a(M, null, V(n.model.cells, (o, t) => (i(), g(m, {
|
|
5754
5766
|
is: "sv-header-cell",
|
|
@@ -5756,7 +5768,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5756
5768
|
key: t
|
|
5757
5769
|
}, null, 8, ["model"]))), 128))
|
|
5758
5770
|
], 6)),
|
|
5759
|
-
n.survey.isMobile ? (i(), a("div",
|
|
5771
|
+
n.survey.isMobile ? (i(), a("div", ii, [
|
|
5760
5772
|
c(m, {
|
|
5761
5773
|
is: "sv-header-mobile",
|
|
5762
5774
|
model: n.model
|
|
@@ -5764,10 +5776,10 @@ const ae = /* @__PURE__ */ y({
|
|
|
5764
5776
|
])) : p("", !0)
|
|
5765
5777
|
], 6)) : p("", !0);
|
|
5766
5778
|
}
|
|
5767
|
-
}),
|
|
5779
|
+
}), li = {
|
|
5768
5780
|
key: 0,
|
|
5769
5781
|
class: "sv-header__logo"
|
|
5770
|
-
},
|
|
5782
|
+
}, ai = ["src", "width", "height", "alt"], ui = /* @__PURE__ */ y({
|
|
5771
5783
|
__name: "HeaderCell",
|
|
5772
5784
|
props: {
|
|
5773
5785
|
model: {}
|
|
@@ -5775,13 +5787,13 @@ const ae = /* @__PURE__ */ y({
|
|
|
5775
5787
|
setup(u) {
|
|
5776
5788
|
return (e, n) => (i(), a("div", {
|
|
5777
5789
|
class: r(e.model.css),
|
|
5778
|
-
style:
|
|
5790
|
+
style: k(e.model.style)
|
|
5779
5791
|
}, [
|
|
5780
5792
|
v("div", {
|
|
5781
5793
|
class: "sv-header__cell-content",
|
|
5782
|
-
style:
|
|
5794
|
+
style: k(e.model.contentStyle)
|
|
5783
5795
|
}, [
|
|
5784
|
-
e.model.showLogo ? (i(), a("div",
|
|
5796
|
+
e.model.showLogo ? (i(), a("div", li, [
|
|
5785
5797
|
v("div", {
|
|
5786
5798
|
class: r(e.model.survey.logoClassNames)
|
|
5787
5799
|
}, [
|
|
@@ -5791,14 +5803,14 @@ const ae = /* @__PURE__ */ y({
|
|
|
5791
5803
|
width: e.model.survey.renderedLogoWidth,
|
|
5792
5804
|
height: e.model.survey.renderedLogoHeight,
|
|
5793
5805
|
alt: e.model.survey.locTitle.renderedHtml,
|
|
5794
|
-
style:
|
|
5795
|
-
}, null, 14,
|
|
5806
|
+
style: k({ objectFit: e.model.survey.logoFit, width: e.model.survey.renderedStyleLogoWidth, height: e.model.survey.renderedStyleLogoHeight })
|
|
5807
|
+
}, null, 14, ai)
|
|
5796
5808
|
], 2)
|
|
5797
5809
|
])) : p("", !0),
|
|
5798
5810
|
e.model.showTitle ? (i(), a("div", {
|
|
5799
5811
|
key: 1,
|
|
5800
5812
|
class: "sv-header__title",
|
|
5801
|
-
style:
|
|
5813
|
+
style: k({ maxWidth: e.model.textAreaWidth })
|
|
5802
5814
|
}, [
|
|
5803
5815
|
c(m, {
|
|
5804
5816
|
is: "survey-element-title",
|
|
@@ -5809,7 +5821,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5809
5821
|
e.model.showDescription ? (i(), a("div", {
|
|
5810
5822
|
key: 2,
|
|
5811
5823
|
class: "sv-header__description",
|
|
5812
|
-
style:
|
|
5824
|
+
style: k({ maxWidth: e.model.textAreaWidth })
|
|
5813
5825
|
}, [
|
|
5814
5826
|
e.model.survey.renderedHasDescription ? (i(), a("div", {
|
|
5815
5827
|
key: 0,
|
|
@@ -5824,17 +5836,17 @@ const ae = /* @__PURE__ */ y({
|
|
|
5824
5836
|
], 4)
|
|
5825
5837
|
], 6));
|
|
5826
5838
|
}
|
|
5827
|
-
}),
|
|
5839
|
+
}), di = { class: "sv-header--mobile" }, mi = {
|
|
5828
5840
|
key: 0,
|
|
5829
5841
|
class: "sv-header__logo"
|
|
5830
|
-
},
|
|
5842
|
+
}, pi = ["src", "width", "height", "alt"], vi = /* @__PURE__ */ y({
|
|
5831
5843
|
__name: "HeaderMobile",
|
|
5832
5844
|
props: {
|
|
5833
5845
|
model: {}
|
|
5834
5846
|
},
|
|
5835
5847
|
setup(u) {
|
|
5836
|
-
return (e, n) => (i(), a("div",
|
|
5837
|
-
e.model.survey.hasLogo ? (i(), a("div",
|
|
5848
|
+
return (e, n) => (i(), a("div", di, [
|
|
5849
|
+
e.model.survey.hasLogo ? (i(), a("div", mi, [
|
|
5838
5850
|
v("div", {
|
|
5839
5851
|
class: r(e.model.survey.logoClassNames)
|
|
5840
5852
|
}, [
|
|
@@ -5844,14 +5856,14 @@ const ae = /* @__PURE__ */ y({
|
|
|
5844
5856
|
width: e.model.survey.renderedLogoWidth,
|
|
5845
5857
|
height: e.model.survey.renderedLogoHeight,
|
|
5846
5858
|
alt: e.model.survey.locTitle.renderedHtml,
|
|
5847
|
-
style:
|
|
5848
|
-
}, null, 14,
|
|
5859
|
+
style: k({ objectFit: e.model.survey.logoFit, width: e.model.survey.renderedStyleLogoWidth, height: e.model.survey.renderedStyleLogoHeight })
|
|
5860
|
+
}, null, 14, pi)
|
|
5849
5861
|
], 2)
|
|
5850
5862
|
])) : p("", !0),
|
|
5851
5863
|
e.model.survey.hasTitle ? (i(), a("div", {
|
|
5852
5864
|
key: 1,
|
|
5853
5865
|
class: "sv-header__title",
|
|
5854
|
-
style:
|
|
5866
|
+
style: k({ maxWidth: e.model.renderedTextAreaWidth })
|
|
5855
5867
|
}, [
|
|
5856
5868
|
c(m, {
|
|
5857
5869
|
is: "survey-element-title",
|
|
@@ -5862,7 +5874,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5862
5874
|
e.model.survey.renderedHasDescription ? (i(), a("div", {
|
|
5863
5875
|
key: 2,
|
|
5864
5876
|
class: "sv-header__description",
|
|
5865
|
-
style:
|
|
5877
|
+
style: k({ maxWidth: e.model.renderedTextAreaWidth })
|
|
5866
5878
|
}, [
|
|
5867
5879
|
e.model.survey.renderedHasDescription ? (i(), a("div", {
|
|
5868
5880
|
key: 0,
|
|
@@ -5876,7 +5888,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5876
5888
|
], 4)) : p("", !0)
|
|
5877
5889
|
]));
|
|
5878
5890
|
}
|
|
5879
|
-
}),
|
|
5891
|
+
}), Ci = /* @__PURE__ */ y({
|
|
5880
5892
|
__name: "Element",
|
|
5881
5893
|
props: {
|
|
5882
5894
|
element: {},
|
|
@@ -5884,22 +5896,22 @@ const ae = /* @__PURE__ */ y({
|
|
|
5884
5896
|
css: {}
|
|
5885
5897
|
},
|
|
5886
5898
|
setup(u) {
|
|
5887
|
-
const e = u, n =
|
|
5899
|
+
const e = u, n = f(), s = (C) => C.isPanel ? "survey-panel" : "survey-question", o = H(() => {
|
|
5888
5900
|
const C = e.element.survey;
|
|
5889
5901
|
if (C) {
|
|
5890
|
-
const
|
|
5891
|
-
if (
|
|
5892
|
-
return
|
|
5902
|
+
const L = C.getElementWrapperComponentName(e.element);
|
|
5903
|
+
if (L)
|
|
5904
|
+
return L;
|
|
5893
5905
|
}
|
|
5894
5906
|
return s(e.element);
|
|
5895
5907
|
}), t = (C) => C.cssClasses ? C.rootStyle : {}, l = H(() => {
|
|
5896
|
-
const C = e.element,
|
|
5908
|
+
const C = e.element, L = C.survey;
|
|
5897
5909
|
let h;
|
|
5898
|
-
return
|
|
5910
|
+
return L && (h = L.getElementWrapperComponentData(C)), {
|
|
5899
5911
|
componentName: s(C),
|
|
5900
5912
|
componentData: {
|
|
5901
5913
|
element: C,
|
|
5902
|
-
survey:
|
|
5914
|
+
survey: L,
|
|
5903
5915
|
row: e.row,
|
|
5904
5916
|
css: e.css,
|
|
5905
5917
|
data: h
|
|
@@ -5907,18 +5919,18 @@ const ae = /* @__PURE__ */ y({
|
|
|
5907
5919
|
};
|
|
5908
5920
|
}), d = W(
|
|
5909
5921
|
() => e.element,
|
|
5910
|
-
(C,
|
|
5911
|
-
|
|
5922
|
+
(C, L) => {
|
|
5923
|
+
L && L.setWrapperElement(void 0), C.setWrapperElement(n.value);
|
|
5912
5924
|
}
|
|
5913
5925
|
);
|
|
5914
5926
|
return Z(() => {
|
|
5915
5927
|
e.element.setWrapperElement(n.value);
|
|
5916
|
-
}),
|
|
5928
|
+
}), P(() => {
|
|
5917
5929
|
e.element.setWrapperElement(void 0), d();
|
|
5918
|
-
}), (C,
|
|
5930
|
+
}), (C, L) => (i(), a("div", {
|
|
5919
5931
|
ref_key: "root",
|
|
5920
5932
|
ref: n,
|
|
5921
|
-
style:
|
|
5933
|
+
style: k(t(C.element)),
|
|
5922
5934
|
class: r(C.element.cssClasses.questionWrapper)
|
|
5923
5935
|
}, [
|
|
5924
5936
|
C.row.isNeedRender ? (i(), g(m, $({
|
|
@@ -5932,7 +5944,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5932
5944
|
}, null, 8, ["is", "element", "css"])) : p("", !0)
|
|
5933
5945
|
], 6));
|
|
5934
5946
|
}
|
|
5935
|
-
}),
|
|
5947
|
+
}), ci = /* @__PURE__ */ y({
|
|
5936
5948
|
__name: "TemplateRenderer",
|
|
5937
5949
|
props: {
|
|
5938
5950
|
componentName: {},
|
|
@@ -5945,7 +5957,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5945
5957
|
is: s.componentName
|
|
5946
5958
|
}, s.componentData), null, 16, ["is"]));
|
|
5947
5959
|
}
|
|
5948
|
-
}),
|
|
5960
|
+
}), gi = /* @__PURE__ */ y({
|
|
5949
5961
|
__name: "FileCleanButton",
|
|
5950
5962
|
props: {
|
|
5951
5963
|
question: {},
|
|
@@ -5968,7 +5980,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5968
5980
|
}, null, 8, ["iconName", "title"])) : p("", !0)
|
|
5969
5981
|
], 2));
|
|
5970
5982
|
}
|
|
5971
|
-
}),
|
|
5983
|
+
}), yi = ["id"], hi = /* @__PURE__ */ y({
|
|
5972
5984
|
__name: "FileVideo",
|
|
5973
5985
|
props: {
|
|
5974
5986
|
question: {}
|
|
@@ -5990,14 +6002,14 @@ const ae = /* @__PURE__ */ y({
|
|
|
5990
6002
|
playsinline: "",
|
|
5991
6003
|
id: e.question.videoId,
|
|
5992
6004
|
class: r(e.question.cssClasses.video)
|
|
5993
|
-
}, null, 10,
|
|
6005
|
+
}, null, 10, yi),
|
|
5994
6006
|
c(m, {
|
|
5995
6007
|
is: "sv-action",
|
|
5996
6008
|
item: e.question.takePictureAction
|
|
5997
6009
|
}, null, 8, ["item"])
|
|
5998
6010
|
], 2));
|
|
5999
6011
|
}
|
|
6000
|
-
}),
|
|
6012
|
+
}), qi = ["for", "aria-label"], wi = /* @__PURE__ */ y({
|
|
6001
6013
|
__name: "FileChooseButton",
|
|
6002
6014
|
props: {
|
|
6003
6015
|
data: {},
|
|
@@ -6025,11 +6037,11 @@ const ae = /* @__PURE__ */ y({
|
|
|
6025
6037
|
size: "auto"
|
|
6026
6038
|
}, null, 8, ["title", "iconName"])) : p("", !0),
|
|
6027
6039
|
v("span", null, I(n.value.chooseButtonText), 1)
|
|
6028
|
-
], 10,
|
|
6029
|
-
[w(
|
|
6040
|
+
], 10, qi)), [
|
|
6041
|
+
[w(Q)]
|
|
6030
6042
|
]);
|
|
6031
6043
|
}
|
|
6032
|
-
}),
|
|
6044
|
+
}), bi = /* @__PURE__ */ y({
|
|
6033
6045
|
__name: "FilePreview",
|
|
6034
6046
|
props: {
|
|
6035
6047
|
question: {}
|
|
@@ -6047,13 +6059,13 @@ const ae = /* @__PURE__ */ y({
|
|
|
6047
6059
|
}, null, 8, ["page", "question"]))), 128))
|
|
6048
6060
|
], 2)) : p("", !0);
|
|
6049
6061
|
}
|
|
6050
|
-
}),
|
|
6062
|
+
}), Li = /* @__PURE__ */ y({
|
|
6051
6063
|
__name: "ButtonGroup",
|
|
6052
6064
|
props: {
|
|
6053
6065
|
question: {}
|
|
6054
6066
|
},
|
|
6055
6067
|
setup(u) {
|
|
6056
|
-
const e = u, n =
|
|
6068
|
+
const e = u, n = f();
|
|
6057
6069
|
return T(e, n), (s, o) => (i(), a("div", {
|
|
6058
6070
|
role: "group",
|
|
6059
6071
|
class: r(s.question.cssClasses.root),
|
|
@@ -6069,7 +6081,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
6069
6081
|
}, null, 8, ["question", "item", "index"]))), 128))
|
|
6070
6082
|
], 2));
|
|
6071
6083
|
}
|
|
6072
|
-
}),
|
|
6084
|
+
}), ki = ["title"], fi = ["name", "id", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "disabled", "value"], Hi = ["title"], Mi = /* @__PURE__ */ y({
|
|
6073
6085
|
__name: "ButtonGroupItem",
|
|
6074
6086
|
props: {
|
|
6075
6087
|
item: {},
|
|
@@ -6102,7 +6114,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
6102
6114
|
class: r(n.value.css.control),
|
|
6103
6115
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => s.value = l),
|
|
6104
6116
|
value: n.value.value
|
|
6105
|
-
}, null, 10,
|
|
6117
|
+
}, null, 10, fi), [
|
|
6106
6118
|
[se, s.value]
|
|
6107
6119
|
]),
|
|
6108
6120
|
v("div", {
|
|
@@ -6124,9 +6136,9 @@ const ae = /* @__PURE__ */ y({
|
|
|
6124
6136
|
is: "survey-string",
|
|
6125
6137
|
locString: n.value.caption
|
|
6126
6138
|
}, null, 8, ["locString"])
|
|
6127
|
-
], 10,
|
|
6139
|
+
], 10, Hi)) : p("", !0)
|
|
6128
6140
|
], 2)
|
|
6129
|
-
], 10,
|
|
6141
|
+
], 10, ki));
|
|
6130
6142
|
}
|
|
6131
6143
|
});
|
|
6132
6144
|
G.Instance.registerRenderer(
|
|
@@ -6134,14 +6146,14 @@ G.Instance.registerRenderer(
|
|
|
6134
6146
|
"dropdown",
|
|
6135
6147
|
"sv-buttongroup-dropdown"
|
|
6136
6148
|
);
|
|
6137
|
-
const
|
|
6149
|
+
const Ii = /* @__PURE__ */ y({
|
|
6138
6150
|
inheritAttrs: !1,
|
|
6139
6151
|
__name: "ButtonGroupDropdown",
|
|
6140
6152
|
props: {
|
|
6141
6153
|
question: {}
|
|
6142
6154
|
},
|
|
6143
6155
|
setup(u) {
|
|
6144
|
-
const e = u, n =
|
|
6156
|
+
const e = u, n = f(null);
|
|
6145
6157
|
return T(e, n), (s, o) => (i(), a("div", {
|
|
6146
6158
|
class: r(s.question.cssClasses.rootDropdown),
|
|
6147
6159
|
ref_key: "root",
|
|
@@ -6153,14 +6165,14 @@ const Mi = /* @__PURE__ */ y({
|
|
|
6153
6165
|
}, null, 8, ["question"])
|
|
6154
6166
|
], 2));
|
|
6155
6167
|
}
|
|
6156
|
-
}),
|
|
6168
|
+
}), Vi = ["src", "width", "height", "alt"], Si = /* @__PURE__ */ y({
|
|
6157
6169
|
inheritAttrs: !1,
|
|
6158
6170
|
__name: "Logo",
|
|
6159
6171
|
props: {
|
|
6160
6172
|
data: {}
|
|
6161
6173
|
},
|
|
6162
6174
|
setup(u) {
|
|
6163
|
-
const e = u, n = H(() => e.data), s =
|
|
6175
|
+
const e = u, n = H(() => e.data), s = U(() => n.value.locLogo);
|
|
6164
6176
|
return (o, t) => (i(), a("div", {
|
|
6165
6177
|
class: r(n.value.logoClassNames)
|
|
6166
6178
|
}, [
|
|
@@ -6170,33 +6182,33 @@ const Mi = /* @__PURE__ */ y({
|
|
|
6170
6182
|
width: n.value.renderedLogoWidth,
|
|
6171
6183
|
height: n.value.renderedLogoHeight,
|
|
6172
6184
|
alt: n.value.locTitle.renderedHtml,
|
|
6173
|
-
style:
|
|
6185
|
+
style: k({
|
|
6174
6186
|
objectFit: n.value.logoFit,
|
|
6175
6187
|
width: n.value.renderedStyleLogoWidth,
|
|
6176
6188
|
height: n.value.renderedStyleLogoHeight
|
|
6177
6189
|
})
|
|
6178
|
-
}, null, 14,
|
|
6190
|
+
}, null, 14, Vi)
|
|
6179
6191
|
], 2));
|
|
6180
6192
|
}
|
|
6181
|
-
}),
|
|
6193
|
+
}), Ri = /* @__PURE__ */ y({
|
|
6182
6194
|
__name: "SvgBundle",
|
|
6183
6195
|
setup(u) {
|
|
6184
|
-
const e =
|
|
6196
|
+
const e = f(), n = () => {
|
|
6185
6197
|
e.value && (e.value.innerHTML = _.iconsRenderedHtml());
|
|
6186
6198
|
};
|
|
6187
6199
|
return Z(() => {
|
|
6188
6200
|
n(), _.onIconsChanged.add(n);
|
|
6189
|
-
}),
|
|
6201
|
+
}), P(() => {
|
|
6190
6202
|
_.onIconsChanged.remove(n);
|
|
6191
6203
|
}), (s, o) => B((i(), a("svg", {
|
|
6192
6204
|
id: "sv-icon-holder-global-container",
|
|
6193
6205
|
ref_key: "root",
|
|
6194
6206
|
ref: e
|
|
6195
6207
|
}, null, 512)), [
|
|
6196
|
-
[
|
|
6208
|
+
[A, !1]
|
|
6197
6209
|
]);
|
|
6198
6210
|
}
|
|
6199
|
-
}),
|
|
6211
|
+
}), Ti = ["id"], Bi = /* @__PURE__ */ y({
|
|
6200
6212
|
__name: "FilePage",
|
|
6201
6213
|
props: {
|
|
6202
6214
|
page: {},
|
|
@@ -6214,9 +6226,9 @@ const Mi = /* @__PURE__ */ y({
|
|
|
6214
6226
|
item: o,
|
|
6215
6227
|
question: n.question
|
|
6216
6228
|
}, null, 8, ["item", "question"]))), 128))
|
|
6217
|
-
], 10,
|
|
6229
|
+
], 10, Ti));
|
|
6218
6230
|
}
|
|
6219
|
-
}),
|
|
6231
|
+
}), Zi = ["href", "title", "download"], $i = ["src"], Di = ["href", "title", "download"], Ai = /* @__PURE__ */ y({
|
|
6220
6232
|
__name: "FileItem",
|
|
6221
6233
|
props: {
|
|
6222
6234
|
item: {},
|
|
@@ -6236,8 +6248,8 @@ const Mi = /* @__PURE__ */ y({
|
|
|
6236
6248
|
href: e.item.content,
|
|
6237
6249
|
title: e.item.name,
|
|
6238
6250
|
download: e.item.name,
|
|
6239
|
-
style:
|
|
6240
|
-
}, I(e.item.name), 13,
|
|
6251
|
+
style: k({ width: e.question.imageWidth })
|
|
6252
|
+
}, I(e.item.name), 13, Zi)
|
|
6241
6253
|
], 2)) : p("", !0),
|
|
6242
6254
|
v("div", {
|
|
6243
6255
|
class: r(e.question.getImageWrapperCss(e.item))
|
|
@@ -6245,12 +6257,12 @@ const Mi = /* @__PURE__ */ y({
|
|
|
6245
6257
|
e.question.canPreviewImage(e.item) ? (i(), a("img", {
|
|
6246
6258
|
key: 0,
|
|
6247
6259
|
src: e.item.content,
|
|
6248
|
-
style:
|
|
6260
|
+
style: k({
|
|
6249
6261
|
height: e.question.imageHeight,
|
|
6250
6262
|
width: e.question.imageWidth
|
|
6251
6263
|
}),
|
|
6252
6264
|
alt: "File preview"
|
|
6253
|
-
}, null, 12,
|
|
6265
|
+
}, null, 12, $i)) : p("", !0),
|
|
6254
6266
|
e.question.defaultImage(e.item) ? (i(), g(m, {
|
|
6255
6267
|
key: 1,
|
|
6256
6268
|
is: "sv-svg-icon",
|
|
@@ -6285,31 +6297,31 @@ const Mi = /* @__PURE__ */ y({
|
|
|
6285
6297
|
href: e.item.content,
|
|
6286
6298
|
title: e.item.name,
|
|
6287
6299
|
download: e.item.name,
|
|
6288
|
-
style:
|
|
6289
|
-
}, I(e.item.name), 13,
|
|
6300
|
+
style: k({ width: e.question.imageWidth })
|
|
6301
|
+
}, I(e.item.name), 13, Di)
|
|
6290
6302
|
], 2)) : p("", !0)
|
|
6291
6303
|
], 2)), [
|
|
6292
|
-
[
|
|
6304
|
+
[A, e.item]
|
|
6293
6305
|
]);
|
|
6294
6306
|
}
|
|
6295
6307
|
});
|
|
6296
6308
|
Ye.platform = "vue3";
|
|
6297
|
-
function
|
|
6309
|
+
function Pi(u, e, n) {
|
|
6298
6310
|
u(e, n);
|
|
6299
6311
|
}
|
|
6300
6312
|
function He(u) {
|
|
6301
|
-
const e =
|
|
6313
|
+
const e = Pi.bind(
|
|
6302
6314
|
void 0,
|
|
6303
6315
|
u
|
|
6304
6316
|
);
|
|
6305
|
-
e("sv-svg-bundle",
|
|
6317
|
+
e("sv-svg-bundle", Ri), e("popup-survey", fe), e("survey-header", ns), e("sv-logo-image", Si), e("survey-page", ss), e("survey-row", ts), e("survey-question", as), e("survey-panel", ps), e("survey-element-header", Cs), e("survey-string", cs), e("sv-string-viewer", ys), e("sv-string-editor", qs), e("sv-skeleton", bs), e("sv-scroll", Hs), e("survey-text", Vs), e("survey-text-input", Ts), e("survey-checkbox", As), e("survey-checkbox-item", Es), e("survey-radiogroup", Ws), e("survey-radiogroup-item", zs), e("survey-signaturepad", js), e("survey-html", Xs), e("survey-image", xs), e("survey-expression", e1), e("survey-file", o1), e("sv-file-choose-btn", wi), e("sv-file-clean-btn", gi), e("sv-file-preview", bi), e("sv-file-page", Bi), e("sv-file-item", Ai), e("sv-file-video", hi), e("survey-imagepicker", r1), e("survey-imagepicker-item", m1), e("survey-comment", p1), e("survey-dropdown", v1), e("sv-dropdown-select", y1), e("sv-dropdown-option-item", q1), e("sv-dropdown", f1), e("survey-tagbox", H1), e("sv-tagbox", V1), e("sv-tagbox-item", Z1), e("sv-tagbox-filter", T1), e("survey-ranking", $1), e("survey-ranking-item", W1), e("sv-ranking-item", F1), e("survey-rating", U1), e("sv-rating-item", j1), e("sv-rating-item-smiley", J1), e("sv-rating-item-star", x1), e("sv-rating-dropdown", on), e("sv-rating-dropdown-item", tn), e("survey-boolean", ln), e("sv-boolean-radio", an), e("sv-boolean-radio-item", mn), e("sv-boolean-checkbox", yn), e("survey-multipletext", hn), e("survey-multipletext-item", bn), e("sv-breadcrumbs", Ln), e("sv-single-input-summary", In), e("survey-slider", Rn), e("sv-slider-label-item", Tn), e("survey-matrix", Nn), e("survey-matrix-row", Wn), e("survey-matrix-cell", zn), e("survey-matrixdropdown", Un), e("survey-matrixtable", jn), e("survey-matrixheaderrequired", Xn), e("survey-matrixdropdown-cell", Yn), e("survey-matrixdynamic", _n), e("survey-placeholder-matrixdynamic", xn), e("sv-matrix-remove-button", st), e("sv-matrix-drag-drop-icon", tt), e("sv-matrix-detail-button", it), e("survey-paneldynamic", lt), e("survey-paneldynamicprogress", ut), e("survey-paneldynamicprogress-v2", mt), e("survey-placeholder-paneldynamic", pt), e("sv-paneldynamic-add-btn", Ct), e("sv-paneldynamic-next-btn", gt), e("sv-paneldynamic-prev-btn", ht), e("sv-paneldynamic-remove-btn", wt), e("sv-paneldynamic-progress-text", bt), e("sv-components-container", bo), e("sv-progress-buttons", So), e("sv-navigation-toc", Ro), e("sv-progress-pages", Y), e("sv-progress-questions", Y), e("sv-progress-correctquestions", Y), e("sv-progress-requiredquestions", Y), e("survey-errors", kt), e("survey-question-comment", Ht), e("survey-element-title", Mt), e("survey-element-title-content", Tt), e("sv-title-actions", $t), e("sv-brand-info", Ft), e("sv-question-error", Qt), e("sv-svg-icon", Ut), e("sv-action-bar", Kt), e("sv-action", Xt), e("sv-action-bar-item", _t), e("sv-action-bar-item-dropdown", so), e("sv-action-bar-separator", no), e("sv-list", ro), e("sv-list-item-content", mo), e("sv-list-item-group", po), e("sv-list-item", uo), e("sv-popup", vo), e("sv-popup-container", qo), e("popup-pointer", wo), e("sv-notifier", Fo), e("survey-other-choice", zo), e("sv-nav-btn", Qo), e("survey-customwidget", jo), e("survey-popup-modal", Go), e("survey-composite", _o), e("survey-custom", xo), e("sv-timerpanel", ni), e("sv-loading-indicator", oi), e("sv-header", ri), e("sv-header-cell", ui), e("sv-header-mobile", vi), e("sv-template-renderer", ci), e("sv-character-counter", Yo), e("sv-text-area", Jo), e("survey-element", Ci), e("survey-buttongroup", Li), e("sv-button-group-item", Mi), e("sv-buttongroup-dropdown", Ii), e("survey", ae);
|
|
6306
6318
|
}
|
|
6307
6319
|
He(
|
|
6308
6320
|
(u, e) => F.Instance.registerComponent(u, e)
|
|
6309
6321
|
);
|
|
6310
|
-
const
|
|
6322
|
+
const Fi = {
|
|
6311
6323
|
install(u) {
|
|
6312
|
-
u.component("SurveyComponent", ae), u.component("PopupSurveyComponent", fe), u.directive("key2click",
|
|
6324
|
+
u.component("SurveyComponent", ae), u.component("PopupSurveyComponent", fe), u.directive("key2click", Q), He((e, n) => {
|
|
6313
6325
|
u.component(e, n), F.Instance.registerComponent(e, e);
|
|
6314
6326
|
});
|
|
6315
6327
|
}
|
|
@@ -6319,10 +6331,10 @@ export {
|
|
|
6319
6331
|
fe as PopupSurveyComponent,
|
|
6320
6332
|
ae as SurveyComponent,
|
|
6321
6333
|
m as SvComponent,
|
|
6322
|
-
|
|
6323
|
-
|
|
6334
|
+
Q as key2ClickDirective,
|
|
6335
|
+
Fi as surveyPlugin,
|
|
6324
6336
|
S as useBase,
|
|
6325
6337
|
ne as useComputedArray,
|
|
6326
|
-
|
|
6338
|
+
U as useLocString,
|
|
6327
6339
|
T as useQuestion
|
|
6328
6340
|
};
|