survey-vue3-ui 2.2.5 → 2.3.0
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 +720 -713
- package/survey-vue3-ui.umd.js +5 -5
- package/types/QuestionOther.vue.d.ts +2 -1
package/survey-vue3-ui.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var J = (u, e, n) => (
|
|
4
|
-
import { defineComponent as y, computed as
|
|
5
|
-
import { Base as
|
|
1
|
+
var Ie = Object.defineProperty;
|
|
2
|
+
var Ve = (u, e, n) => e in u ? Ie(u, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : u[e] = n;
|
|
3
|
+
var J = (u, e, n) => (Ve(u, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
+
import { defineComponent as y, computed as M, openBlock as i, createBlock as g, resolveDynamicComponent as ce, normalizeProps as ue, guardReactiveProps as de, createSlots as Se, renderList as V, withCtx as D, renderSlot as x, shallowReactive as Re, watch as W, onBeforeUnmount as O, onMounted as B, ref as f, shallowRef as E, watchEffect as Te, triggerRef as te, unref as w, isRef as ge, nextTick as ye, createElementBlock as a, normalizeClass as r, createVNode as c, createCommentVNode as p, Fragment as H, mergeProps as $, normalizeStyle as k, createElementVNode as v, onUnmounted as P, withDirectives as Z, vShow as A, toDisplayString as I, vModelCheckbox as oe, vModelRadio as he, vModelSelect as Be, onUpdated as z, vModelText as Ze, vModelDynamic as $e, getCurrentInstance as qe, createStaticVNode as De, toRaw as Ae, Teleport as Pe, useSlots as Ne } from "vue";
|
|
5
|
+
import { Base as Ee, ScrollViewModel as We, RendererFactory as G, Helpers as Fe, DropdownMultiSelectListModel as Oe, doKey2ClickUp as we, createSvg as ze, doKey2ClickDown as Ue, doKey2ClickBlur as Qe, ActionDropdownViewModel as Ke, createPopupViewModel as je, SurveyProgressModel as me, ProgressButtonsResponsivityManager as Ge, addIconsToThemeSet as be, SvgRegistry as _, PopupSurveyModel as Xe, settings as ne, createPopupModalViewModel as Je, ButtonGroupItemModel as Ye, SurveyModel as _e } from "survey-core";
|
|
6
6
|
const ee = class ee {
|
|
7
7
|
constructor() {
|
|
8
8
|
J(this, "creatorHash", {});
|
|
@@ -32,21 +32,21 @@ const m = /* @__PURE__ */ y({
|
|
|
32
32
|
is: {}
|
|
33
33
|
},
|
|
34
34
|
setup(u) {
|
|
35
|
-
const e = u, n =
|
|
35
|
+
const e = u, n = M(
|
|
36
36
|
() => F.Instance.getComponent(e.is)
|
|
37
37
|
);
|
|
38
|
-
return (s, o) => (i(), g(
|
|
38
|
+
return (s, o) => (i(), g(ce(n.value), ue(de(s.$attrs)), Se({ _: 2 }, [
|
|
39
39
|
V(s.$slots, (t, l) => ({
|
|
40
40
|
name: l,
|
|
41
41
|
fn: D((d) => [
|
|
42
|
-
x(s.$slots, l, de(
|
|
42
|
+
x(s.$slots, l, ue(de(d)))
|
|
43
43
|
])
|
|
44
44
|
}))
|
|
45
45
|
]), 1040));
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
-
|
|
49
|
-
class
|
|
48
|
+
Ee.createPropertiesHash = () => Re({});
|
|
49
|
+
class xe {
|
|
50
50
|
constructor(e) {
|
|
51
51
|
J(this, "currentNextTickPromise");
|
|
52
52
|
this.element = e;
|
|
@@ -56,33 +56,33 @@ class _e {
|
|
|
56
56
|
this.currentNextTickPromise !== e && (this.currentNextTickPromise = e, await e, e == this.currentNextTickPromise && this.element.afterRerender());
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function es(u) {
|
|
60
60
|
if (u) {
|
|
61
61
|
if (u.__vueImplemented = u.__vueImplemented ?? 0, u.__vueImplemented <= 0) {
|
|
62
|
-
const e = new
|
|
62
|
+
const e = new xe(u);
|
|
63
63
|
u.createArrayCoreHandler = (n, s) => {
|
|
64
64
|
const o = [], t = E(o);
|
|
65
65
|
return o.onArrayChanged = () => {
|
|
66
|
-
|
|
66
|
+
te(t), e.add();
|
|
67
67
|
}, n[s] = t, w(n[s]);
|
|
68
68
|
}, u.iteratePropertiesHash((n, s) => {
|
|
69
69
|
if (Array.isArray(n[s])) {
|
|
70
70
|
const o = E(n[s]);
|
|
71
71
|
n[s].onArrayChanged = () => {
|
|
72
|
-
|
|
72
|
+
te(o), e.add();
|
|
73
73
|
}, n[s] = o;
|
|
74
74
|
}
|
|
75
75
|
}), u.getPropertyValueCoreHandler = (n, s) => w(n[s]), u.setPropertyValueCoreHandler = (n, s, o) => {
|
|
76
|
-
|
|
76
|
+
ge(n[s]) ? n[s].value = o : n[s] = o, e.add();
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
79
|
u.enableOnElementRerenderedEvent(), u.__vueImplemented++;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function ss(u) {
|
|
83
83
|
return !!u.__vueImplemented;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function pe(u) {
|
|
86
86
|
u && (u.__vueImplemented = u.__vueImplemented ?? 0, u.__vueImplemented--, u.__vueImplemented <= 0 && (u.iteratePropertiesHash((e, n) => {
|
|
87
87
|
e[n] = w(e[n]), Array.isArray(e[n]) && (e[n].onArrayChanged = void 0);
|
|
88
88
|
}), delete u.__vueImplemented, u.disableOnElementRerenderedEvent(), u.createArrayCoreHandler = void 0, u.getPropertyValueCoreHandler = void 0, u.setPropertyValueCoreHandler = void 0));
|
|
@@ -91,7 +91,7 @@ function S(u, e, n) {
|
|
|
91
91
|
const s = W(
|
|
92
92
|
u,
|
|
93
93
|
(t, l) => {
|
|
94
|
-
t && e && e(t, l), l && (
|
|
94
|
+
t && e && e(t, l), l && (pe(l), n && n(l)), es(t);
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
immediate: !0
|
|
@@ -101,12 +101,12 @@ function S(u, e, n) {
|
|
|
101
101
|
O(() => {
|
|
102
102
|
if (!o) {
|
|
103
103
|
const t = u();
|
|
104
|
-
t && (
|
|
104
|
+
t && (pe(t), s(), n && n(t)), o = !0;
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
function T(u, e, n, s) {
|
|
109
|
-
S(() => u.question, n, s),
|
|
109
|
+
S(() => u.question, n, s), B(() => {
|
|
110
110
|
u.question && u.question.afterRenderQuestionElement(e.value);
|
|
111
111
|
}), O(() => {
|
|
112
112
|
u.question.beforeDestroyQuestionElement(e.value);
|
|
@@ -129,18 +129,18 @@ function U(u) {
|
|
|
129
129
|
t && t.onStringChanged.remove(n), o();
|
|
130
130
|
}), e;
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function ie(u) {
|
|
133
133
|
return u.customWidget ? "survey-customwidget" : u.isDefaultRendering && u.isDefaultRendering() || u.isPanel ? "survey-" + u.getTemplate() : u.getComponentName();
|
|
134
134
|
}
|
|
135
|
-
function
|
|
136
|
-
const e = E(), n =
|
|
137
|
-
e.value = u(),
|
|
135
|
+
function se(u) {
|
|
136
|
+
const e = E(), n = Te(() => {
|
|
137
|
+
e.value = u(), te(e);
|
|
138
138
|
});
|
|
139
139
|
return O(() => {
|
|
140
140
|
n();
|
|
141
141
|
}), e;
|
|
142
142
|
}
|
|
143
|
-
const
|
|
143
|
+
const ns = /* @__PURE__ */ y({
|
|
144
144
|
__name: "Page",
|
|
145
145
|
props: {
|
|
146
146
|
survey: {},
|
|
@@ -150,13 +150,13 @@ const ss = /* @__PURE__ */ y({
|
|
|
150
150
|
setup(u) {
|
|
151
151
|
const e = u, n = f(null), s = () => {
|
|
152
152
|
e.survey && n.value && e.survey.afterRenderPage(n.value);
|
|
153
|
-
}, o =
|
|
153
|
+
}, o = M(() => e.page._showDescription);
|
|
154
154
|
return S(
|
|
155
155
|
() => e.page,
|
|
156
156
|
() => {
|
|
157
157
|
s();
|
|
158
158
|
}
|
|
159
|
-
),
|
|
159
|
+
), B(() => {
|
|
160
160
|
s();
|
|
161
161
|
}), (t, l) => (i(), a("div", {
|
|
162
162
|
class: r(t.page.cssRoot),
|
|
@@ -181,7 +181,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
181
181
|
is: "survey-errors",
|
|
182
182
|
element: t.page
|
|
183
183
|
}, null, 8, ["element"]),
|
|
184
|
-
(i(!0), a(
|
|
184
|
+
(i(!0), a(H, null, V(t.page.visibleRows, (d) => (i(), g(m, $({
|
|
185
185
|
key: d.id,
|
|
186
186
|
is: t.page.getSurvey().getRowWrapperComponentName(d)
|
|
187
187
|
}, {
|
|
@@ -199,14 +199,14 @@ const ss = /* @__PURE__ */ y({
|
|
|
199
199
|
}, 1040, ["is"]))), 128))
|
|
200
200
|
], 2));
|
|
201
201
|
}
|
|
202
|
-
}),
|
|
202
|
+
}), ts = /* @__PURE__ */ y({
|
|
203
203
|
__name: "Header",
|
|
204
204
|
props: {
|
|
205
205
|
survey: {}
|
|
206
206
|
},
|
|
207
207
|
setup(u) {
|
|
208
208
|
const e = u, n = f();
|
|
209
|
-
return
|
|
209
|
+
return B(() => {
|
|
210
210
|
var s = n.value;
|
|
211
211
|
s && e.survey && e.survey.afterRenderHeader(s);
|
|
212
212
|
}), (s, o) => s.survey.renderedHasHeader ? (i(), a("div", {
|
|
@@ -250,7 +250,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
250
250
|
}, null, 2)
|
|
251
251
|
], 2)) : p("", !0);
|
|
252
252
|
}
|
|
253
|
-
}),
|
|
253
|
+
}), os = /* @__PURE__ */ y({
|
|
254
254
|
__name: "Row",
|
|
255
255
|
props: {
|
|
256
256
|
row: {},
|
|
@@ -266,9 +266,9 @@ const ss = /* @__PURE__ */ y({
|
|
|
266
266
|
o.setRootElement(n.value), t && (o.isNeedRender = t.isNeedRender);
|
|
267
267
|
},
|
|
268
268
|
(o) => {
|
|
269
|
-
|
|
269
|
+
ss(o) || (clearTimeout(s), o.setRootElement(void 0), o.stopLazyRendering(), o.isNeedRender = !o.isLazyRendering());
|
|
270
270
|
}
|
|
271
|
-
),
|
|
271
|
+
), B(() => {
|
|
272
272
|
if (e.row && (e.row.setRootElement(n.value), !e.row.isNeedRender)) {
|
|
273
273
|
const o = n.value;
|
|
274
274
|
setTimeout(() => {
|
|
@@ -280,7 +280,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
280
280
|
ref_key: "root",
|
|
281
281
|
ref: n
|
|
282
282
|
}, [
|
|
283
|
-
(i(!0), a(
|
|
283
|
+
(i(!0), a(H, null, V(o.row.visibleElements, (l) => (i(), g(m, {
|
|
284
284
|
is: "survey-element",
|
|
285
285
|
row: o.row,
|
|
286
286
|
css: o.css,
|
|
@@ -289,10 +289,10 @@ const ss = /* @__PURE__ */ y({
|
|
|
289
289
|
}, null, 8, ["row", "css", "element"]))), 128))
|
|
290
290
|
], 2));
|
|
291
291
|
}
|
|
292
|
-
}),
|
|
292
|
+
}), is = ["id", "role", "aria-required", "aria-invalid", "aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "data-name"], rs = ["aria-hidden"], ls = ["id"], as = {
|
|
293
293
|
inheritAttrs: !1
|
|
294
|
-
},
|
|
295
|
-
...
|
|
294
|
+
}, us = /* @__PURE__ */ y({
|
|
295
|
+
...as,
|
|
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 = f(null), s = (q) => q.cssContent, o = () => e.element.getRootStyle(), t =
|
|
303
|
+
const e = u, n = f(null), s = (q) => q.cssContent, o = () => e.element.getRootStyle(), t = M(() => e.element.singleInputQuestion);
|
|
304
304
|
S(() => e.element);
|
|
305
305
|
const l = () => {
|
|
306
306
|
n.value && e.element.afterRender(n.value);
|
|
@@ -309,7 +309,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
309
309
|
() => {
|
|
310
310
|
l();
|
|
311
311
|
}
|
|
312
|
-
), C =
|
|
312
|
+
), C = M(() => e.element.customWidget ? "survey-customwidget" : e.element.isDefaultRendering() ? "survey-" + e.element.getTemplate() : e.element.getComponentName()), L = M(() => e.element.survey.getQuestionContentWrapperComponentName(e.element)), h = M(() => ({
|
|
313
313
|
componentData: {
|
|
314
314
|
question: e.element,
|
|
315
315
|
data: e.element.survey.getElementWrapperComponentData(e.element)
|
|
@@ -401,8 +401,8 @@ const ss = /* @__PURE__ */ y({
|
|
|
401
401
|
is: "survey-string",
|
|
402
402
|
locString: q.element.locDescription
|
|
403
403
|
}, null, 8, ["locString"])
|
|
404
|
-
], 10,
|
|
405
|
-
], 14,
|
|
404
|
+
], 10, ls)) : p("", !0)
|
|
405
|
+
], 14, rs)
|
|
406
406
|
]),
|
|
407
407
|
_: 1
|
|
408
408
|
}, 16, ["is"])),
|
|
@@ -418,12 +418,12 @@ const ss = /* @__PURE__ */ y({
|
|
|
418
418
|
element: q.element,
|
|
419
419
|
location: "bottom"
|
|
420
420
|
}, null, 8, ["element"])) : p("", !0)
|
|
421
|
-
], 46,
|
|
421
|
+
], 46, is));
|
|
422
422
|
}
|
|
423
|
-
}),
|
|
423
|
+
}), ds = ["id"], ms = ["id", "role", "aria-labelledby", "aria-label"], ps = {
|
|
424
424
|
inheritAttrs: !1
|
|
425
|
-
},
|
|
426
|
-
...
|
|
425
|
+
}, vs = /* @__PURE__ */ y({
|
|
426
|
+
...ps,
|
|
427
427
|
inheritAttrs: !1,
|
|
428
428
|
__name: "Panel",
|
|
429
429
|
props: {
|
|
@@ -432,8 +432,8 @@ const ss = /* @__PURE__ */ y({
|
|
|
432
432
|
css: {}
|
|
433
433
|
},
|
|
434
434
|
setup(u) {
|
|
435
|
-
const e = u, n = f(null), s =
|
|
436
|
-
return S(() => e.element),
|
|
435
|
+
const e = u, n = f(null), s = M(() => e.element.survey);
|
|
436
|
+
return S(() => e.element), B(() => {
|
|
437
437
|
e.element.survey && e.element.afterRender(n.value);
|
|
438
438
|
}), (o, t) => o.element.getIsContentVisible() ? (i(), a("div", {
|
|
439
439
|
key: 0,
|
|
@@ -468,7 +468,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
468
468
|
"aria-labelledby": o.element.ariaLabelledBy,
|
|
469
469
|
"aria-label": o.element.ariaLabel
|
|
470
470
|
}, [
|
|
471
|
-
(i(!0), a(
|
|
471
|
+
(i(!0), a(H, null, V(o.element.visibleRows, (l) => (i(), g(m, $({
|
|
472
472
|
key: l.id,
|
|
473
473
|
is: o.element.getSurvey().getRowWrapperComponentName(l)
|
|
474
474
|
}, {
|
|
@@ -488,10 +488,10 @@ const ss = /* @__PURE__ */ y({
|
|
|
488
488
|
is: "sv-action-bar",
|
|
489
489
|
model: o.element.getFooterToolbar()
|
|
490
490
|
}, null, 8, ["model"])
|
|
491
|
-
], 14,
|
|
492
|
-
], 42,
|
|
491
|
+
], 14, ms)) : p("", !0)
|
|
492
|
+
], 42, ds)) : p("", !0);
|
|
493
493
|
}
|
|
494
|
-
}),
|
|
494
|
+
}), Cs = ["id"], cs = /* @__PURE__ */ y({
|
|
495
495
|
__name: "ElementHeader",
|
|
496
496
|
props: {
|
|
497
497
|
element: {},
|
|
@@ -514,7 +514,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
514
514
|
element: o.element,
|
|
515
515
|
css: o.css
|
|
516
516
|
}, null, 8, ["element", "css"]),
|
|
517
|
-
o.element.hasDescriptionUnderTitle ?
|
|
517
|
+
o.element.hasDescriptionUnderTitle ? Z((i(), a("div", {
|
|
518
518
|
key: 0,
|
|
519
519
|
class: r(o.element.cssDescription),
|
|
520
520
|
id: o.element.ariaDescriptionId
|
|
@@ -523,7 +523,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
523
523
|
is: "survey-string",
|
|
524
524
|
locString: o.element.locDescription
|
|
525
525
|
}, null, 8, ["locString"])
|
|
526
|
-
], 10,
|
|
526
|
+
], 10, Cs)), [
|
|
527
527
|
[A, o.element.hasDescription]
|
|
528
528
|
]) : p("", !0),
|
|
529
529
|
o.element.hasAdditionalTitleToolbar ? (i(), g(m, {
|
|
@@ -533,7 +533,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
533
533
|
}, null, 8, ["model"])) : p("", !0)
|
|
534
534
|
], 6));
|
|
535
535
|
}
|
|
536
|
-
}),
|
|
536
|
+
}), gs = /* @__PURE__ */ y({
|
|
537
537
|
__name: "String",
|
|
538
538
|
props: {
|
|
539
539
|
locString: {}
|
|
@@ -544,7 +544,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
544
544
|
locString: e.locString.renderAsData
|
|
545
545
|
}, null, 8, ["is", "locString"]));
|
|
546
546
|
}
|
|
547
|
-
}),
|
|
547
|
+
}), ys = ["innerHTML"], hs = /* @__PURE__ */ y({
|
|
548
548
|
__name: "StringViewer",
|
|
549
549
|
props: {
|
|
550
550
|
locString: {}
|
|
@@ -555,12 +555,12 @@ const ss = /* @__PURE__ */ y({
|
|
|
555
555
|
key: 0,
|
|
556
556
|
class: r(w(s)),
|
|
557
557
|
innerHTML: w(n)
|
|
558
|
-
}, null, 10,
|
|
558
|
+
}, null, 10, ys)) : (i(), a("span", {
|
|
559
559
|
key: 1,
|
|
560
560
|
class: r(w(s))
|
|
561
561
|
}, I(w(n)), 3));
|
|
562
562
|
}
|
|
563
|
-
}),
|
|
563
|
+
}), qs = ["innerHTML"], ws = /* @__PURE__ */ y({
|
|
564
564
|
__name: "StringEditor",
|
|
565
565
|
props: {
|
|
566
566
|
locString: {}
|
|
@@ -579,7 +579,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
579
579
|
innerHTML: o.locString.renderedHtml,
|
|
580
580
|
onBlur: n,
|
|
581
581
|
onClick: s
|
|
582
|
-
}, null, 40,
|
|
582
|
+
}, null, 40, qs)) : (i(), a("span", {
|
|
583
583
|
key: 1,
|
|
584
584
|
class: "sv-string-editor",
|
|
585
585
|
contenteditable: "true",
|
|
@@ -587,7 +587,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
587
587
|
onClick: s
|
|
588
588
|
}, I(o.locString.renderedHtml), 33));
|
|
589
589
|
}
|
|
590
|
-
}),
|
|
590
|
+
}), bs = ["id"], Ls = /* @__PURE__ */ y({
|
|
591
591
|
__name: "Skeleton",
|
|
592
592
|
props: {
|
|
593
593
|
element: {}
|
|
@@ -598,23 +598,23 @@ const ss = /* @__PURE__ */ y({
|
|
|
598
598
|
class: "sv-skeleton-element",
|
|
599
599
|
id: n.element.id,
|
|
600
600
|
style: k({ height: n.element.skeletonHeight })
|
|
601
|
-
}, null, 12,
|
|
601
|
+
}, null, 12, bs));
|
|
602
602
|
}
|
|
603
|
-
}),
|
|
604
|
-
|
|
605
|
-
],
|
|
603
|
+
}), ks = { class: "sv-scroll__container" }, fs = /* @__PURE__ */ v("div", { class: "sv-scroll__scrollbar-sizer" }, null, -1), Hs = [
|
|
604
|
+
fs
|
|
605
|
+
], Ms = /* @__PURE__ */ y({
|
|
606
606
|
__name: "Scroll",
|
|
607
607
|
props: {
|
|
608
608
|
disabled: {},
|
|
609
609
|
onInnerHeightChanged: { type: Function }
|
|
610
610
|
},
|
|
611
611
|
setup(u) {
|
|
612
|
-
const e = u, n = new
|
|
612
|
+
const e = u, n = new We();
|
|
613
613
|
n.onInnerHeightChanged = (o) => {
|
|
614
614
|
e.onInnerHeightChanged && e.onInnerHeightChanged(o);
|
|
615
615
|
};
|
|
616
616
|
const s = f();
|
|
617
|
-
return
|
|
617
|
+
return B(() => {
|
|
618
618
|
n.setRootElement(s.value);
|
|
619
619
|
}), P(() => {
|
|
620
620
|
n.setRootElement(void 0), n.unsubscribeRootElement();
|
|
@@ -628,17 +628,17 @@ const ss = /* @__PURE__ */ y({
|
|
|
628
628
|
class: "sv-scroll__scroller sv-drag-target-skipped",
|
|
629
629
|
onScroll: t[0] || (t[0] = () => w(n).onScrollContainer())
|
|
630
630
|
}, [
|
|
631
|
-
v("div",
|
|
631
|
+
v("div", ks, [
|
|
632
632
|
x(o.$slots, "default")
|
|
633
633
|
])
|
|
634
634
|
], 32),
|
|
635
635
|
v("div", {
|
|
636
636
|
class: "sv-scroll__scrollbar",
|
|
637
637
|
onScroll: t[1] || (t[1] = () => w(n).onScrollScrollbar())
|
|
638
|
-
},
|
|
638
|
+
}, Hs, 32)
|
|
639
639
|
], 512));
|
|
640
640
|
}
|
|
641
|
-
}),
|
|
641
|
+
}), Is = ["id"], Vs = ["value"], Ss = /* @__PURE__ */ y({
|
|
642
642
|
inheritAttrs: !1,
|
|
643
643
|
__name: "Text",
|
|
644
644
|
props: {
|
|
@@ -662,11 +662,11 @@ const ss = /* @__PURE__ */ y({
|
|
|
662
662
|
v("datalist", {
|
|
663
663
|
id: s.question.dataListId
|
|
664
664
|
}, [
|
|
665
|
-
(i(!0), a(
|
|
665
|
+
(i(!0), a(H, null, V(s.question.dataList, (t, l) => (i(), a("option", {
|
|
666
666
|
key: l,
|
|
667
667
|
value: t
|
|
668
|
-
}, null, 8,
|
|
669
|
-
], 8,
|
|
668
|
+
}, null, 8, Vs))), 128))
|
|
669
|
+
], 8, Is)
|
|
670
670
|
], 512)) : (i(), g(m, {
|
|
671
671
|
key: 2,
|
|
672
672
|
is: "survey-text-input",
|
|
@@ -676,7 +676,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
676
676
|
}
|
|
677
677
|
}, null, 8, ["question", "get-ref"]));
|
|
678
678
|
}
|
|
679
|
-
}),
|
|
679
|
+
}), 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 = ["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"], Bs = /* @__PURE__ */ y({
|
|
680
680
|
__name: "TextInput",
|
|
681
681
|
props: {
|
|
682
682
|
question: {},
|
|
@@ -687,7 +687,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
687
687
|
n.getRef && n.getRef(l);
|
|
688
688
|
}, o = f(null);
|
|
689
689
|
e({ root: o }), S(() => n.question);
|
|
690
|
-
const t =
|
|
690
|
+
const t = M(() => n.question.inputStyle);
|
|
691
691
|
return (l, d) => l.question.getMaxLength() ? (i(), a("div", {
|
|
692
692
|
key: 1,
|
|
693
693
|
ref: (C) => s(C)
|
|
@@ -730,7 +730,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
730
730
|
"aria-describedby": l.question.a11y_input_ariaDescribedBy,
|
|
731
731
|
"aria-invalid": l.question.a11y_input_ariaInvalid,
|
|
732
732
|
"aria-errormessage": l.question.a11y_input_ariaErrormessage
|
|
733
|
-
}, null, 46,
|
|
733
|
+
}, null, 46, Ts),
|
|
734
734
|
c(m, {
|
|
735
735
|
is: "sv-character-counter",
|
|
736
736
|
counter: l.question.characterCounter,
|
|
@@ -776,12 +776,12 @@ const ss = /* @__PURE__ */ y({
|
|
|
776
776
|
"aria-describedby": l.question.a11y_input_ariaDescribedBy,
|
|
777
777
|
"aria-invalid": l.question.a11y_input_ariaInvalid,
|
|
778
778
|
"aria-errormessage": l.question.a11y_input_ariaErrormessage
|
|
779
|
-
}, null, 46,
|
|
779
|
+
}, null, 46, Rs));
|
|
780
780
|
}
|
|
781
|
-
}),
|
|
781
|
+
}), Zs = ["role", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], $s = {
|
|
782
782
|
key: 0,
|
|
783
783
|
class: "sv-hidden"
|
|
784
|
-
},
|
|
784
|
+
}, Ds = { key: 6 }, As = ["value"], Le = /* @__PURE__ */ y({
|
|
785
785
|
inheritAttrs: !1,
|
|
786
786
|
__name: "SelectBase",
|
|
787
787
|
props: {
|
|
@@ -811,12 +811,12 @@ const ss = /* @__PURE__ */ y({
|
|
|
811
811
|
"aria-invalid": t.question.a11y_input_ariaInvalid,
|
|
812
812
|
"aria-errormessage": t.question.a11y_input_ariaErrormessage
|
|
813
813
|
}, [
|
|
814
|
-
t.showLegend ? (i(), a("legend",
|
|
815
|
-
t.question.hasHeadItems ? (i(!0), a(
|
|
814
|
+
t.showLegend ? (i(), a("legend", $s, I(t.question.locTitle.renderedHtml), 1)) : p("", !0),
|
|
815
|
+
t.question.hasHeadItems ? (i(!0), a(H, { key: 1 }, V(t.question.headItems, (d) => (i(), g(m, $({
|
|
816
816
|
key: d.value,
|
|
817
817
|
is: s(d)
|
|
818
818
|
}, o(d)), null, 16, ["is"]))), 128)) : p("", !0),
|
|
819
|
-
!t.question.hasColumns && !t.question.blockedRow ? (i(!0), a(
|
|
819
|
+
!t.question.hasColumns && !t.question.blockedRow ? (i(!0), a(H, { key: 2 }, V(t.question.bodyItems, (d) => (i(), g(m, $({
|
|
820
820
|
key: d.value,
|
|
821
821
|
is: s(d)
|
|
822
822
|
}, o(d)), null, 16, ["is"]))), 128)) : p("", !0),
|
|
@@ -824,7 +824,7 @@ const ss = /* @__PURE__ */ y({
|
|
|
824
824
|
key: 3,
|
|
825
825
|
class: r(t.question.cssClasses.rootRow)
|
|
826
826
|
}, [
|
|
827
|
-
!t.question.hasColumns && t.question.blockedRow ? (i(!0), a(
|
|
827
|
+
!t.question.hasColumns && t.question.blockedRow ? (i(!0), a(H, { key: 0 }, V(t.question.dataChoices, (d) => (i(), g(m, $({
|
|
828
828
|
key: d.value,
|
|
829
829
|
is: s(d)
|
|
830
830
|
}, o(d)), null, 16, ["is"]))), 128)) : p("", !0)
|
|
@@ -833,27 +833,22 @@ const ss = /* @__PURE__ */ y({
|
|
|
833
833
|
key: 4,
|
|
834
834
|
class: r(t.question.cssClasses.rootMultiColumn)
|
|
835
835
|
}, [
|
|
836
|
-
t.question.hasColumns ? (i(!0), a(
|
|
836
|
+
t.question.hasColumns ? (i(!0), a(H, { key: 0 }, V(t.question.columns, (d, C) => (i(), a("div", {
|
|
837
837
|
key: C,
|
|
838
838
|
class: r(t.question.getColumnClass()),
|
|
839
839
|
role: "presentation"
|
|
840
840
|
}, [
|
|
841
|
-
(i(!0), a(
|
|
841
|
+
(i(!0), a(H, null, V(d, (L) => (i(), g(m, $({
|
|
842
842
|
key: L.value,
|
|
843
843
|
is: s(L)
|
|
844
844
|
}, o(L)), null, 16, ["is"]))), 128))
|
|
845
845
|
], 2))), 128)) : p("", !0)
|
|
846
846
|
], 2)) : p("", !0),
|
|
847
|
-
t.question.hasFootItems ? (i(!0), a(
|
|
847
|
+
t.question.hasFootItems ? (i(!0), a(H, { key: 5 }, V(t.question.footItems, (d) => (i(), g(m, $({
|
|
848
848
|
key: d.value,
|
|
849
849
|
is: s(d)
|
|
850
850
|
}, o(d)), null, 16, ["is"]))), 128)) : p("", !0),
|
|
851
|
-
t.question.
|
|
852
|
-
key: 6,
|
|
853
|
-
is: "survey-other-choice",
|
|
854
|
-
question: t.question
|
|
855
|
-
}, null, 8, ["question"])) : p("", !0),
|
|
856
|
-
t.question.showClearButtonInContent ? (i(), a("div", $s, [
|
|
851
|
+
t.question.showClearButtonInContent ? (i(), a("div", Ds, [
|
|
857
852
|
v("input", {
|
|
858
853
|
type: "button",
|
|
859
854
|
class: r(t.question.cssClasses.clearButton),
|
|
@@ -861,25 +856,25 @@ const ss = /* @__PURE__ */ y({
|
|
|
861
856
|
t.question.clearValue(!0);
|
|
862
857
|
}),
|
|
863
858
|
value: t.question.clearButtonCaption
|
|
864
|
-
}, null, 10,
|
|
859
|
+
}, null, 10, As)
|
|
865
860
|
])) : p("", !0)
|
|
866
|
-
], 10,
|
|
861
|
+
], 10, Zs));
|
|
867
862
|
}
|
|
868
|
-
}),
|
|
863
|
+
}), Ps = /* @__PURE__ */ y({
|
|
869
864
|
inheritAttrs: !1,
|
|
870
865
|
__name: "Checkbox",
|
|
871
866
|
props: {
|
|
872
867
|
question: {}
|
|
873
868
|
},
|
|
874
869
|
setup(u) {
|
|
875
|
-
return (e, n) => (i(), g(
|
|
870
|
+
return (e, n) => (i(), g(Le, {
|
|
876
871
|
question: e.question,
|
|
877
872
|
"show-legend": !0
|
|
878
873
|
}, null, 8, ["question"]));
|
|
879
874
|
}
|
|
880
875
|
});
|
|
881
|
-
function
|
|
882
|
-
|
|
876
|
+
function ke(u, e, n) {
|
|
877
|
+
B(() => {
|
|
883
878
|
n.value && (e().isDesignMode || u().setRootElement(n.value));
|
|
884
879
|
}), P(() => {
|
|
885
880
|
e().isDesignMode || u().setRootElement(void 0);
|
|
@@ -887,7 +882,7 @@ function Le(u, e, n) {
|
|
|
887
882
|
e().isDesignMode || (s && n.value && s.setRootElement(n.value), o && o.setRootElement(void 0));
|
|
888
883
|
});
|
|
889
884
|
}
|
|
890
|
-
const
|
|
885
|
+
const Ns = ["name", "checked", "value", "id", "disabled", "readonly", "required", "aria-label"], Es = ["xlink:href"], Ws = /* @__PURE__ */ y({
|
|
891
886
|
inheritAttrs: !1,
|
|
892
887
|
__name: "CheckboxItem",
|
|
893
888
|
props: {
|
|
@@ -898,7 +893,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
898
893
|
},
|
|
899
894
|
setup(u) {
|
|
900
895
|
const e = f(), n = u;
|
|
901
|
-
|
|
896
|
+
ke(
|
|
902
897
|
() => n.item,
|
|
903
898
|
() => n.question,
|
|
904
899
|
e
|
|
@@ -906,65 +901,73 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
906
901
|
const s = (o) => {
|
|
907
902
|
n.question.clickItemHandler(n.item, o.target.checked);
|
|
908
903
|
};
|
|
909
|
-
return (o, t) => (i(), a(
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
v("label", {
|
|
916
|
-
class: r(o.question.getLabelClass(o.item))
|
|
904
|
+
return (o, t) => (i(), a(H, null, [
|
|
905
|
+
v("div", {
|
|
906
|
+
role: "presentation",
|
|
907
|
+
class: r(o.question.getItemClass(o.item)),
|
|
908
|
+
ref_key: "root",
|
|
909
|
+
ref: e
|
|
917
910
|
}, [
|
|
918
|
-
v("
|
|
919
|
-
|
|
920
|
-
name: o.question.name + o.item.id,
|
|
921
|
-
checked: o.question.isItemSelected(o.item),
|
|
922
|
-
onInput: t[0] || (t[0] = (l) => {
|
|
923
|
-
s(l);
|
|
924
|
-
}),
|
|
925
|
-
value: o.item.value,
|
|
926
|
-
id: o.question.getItemId(o.item),
|
|
927
|
-
disabled: !o.question.getItemEnabled(o.item),
|
|
928
|
-
readonly: o.question.isReadOnlyAttr,
|
|
929
|
-
class: r(o.question.cssClasses.itemControl),
|
|
930
|
-
required: o.question.hasRequiredError(),
|
|
931
|
-
"aria-label": o.ariaLabel
|
|
932
|
-
}, null, 42, Ps),
|
|
933
|
-
o.question.cssClasses.materialDecorator ? (i(), a("span", {
|
|
934
|
-
key: 0,
|
|
935
|
-
class: r(o.question.cssClasses.materialDecorator)
|
|
911
|
+
v("label", {
|
|
912
|
+
class: r(o.question.getLabelClass(o.item))
|
|
936
913
|
}, [
|
|
937
|
-
|
|
914
|
+
v("input", {
|
|
915
|
+
type: "checkbox",
|
|
916
|
+
name: o.question.name + o.item.id,
|
|
917
|
+
checked: o.question.isItemSelected(o.item),
|
|
918
|
+
onInput: t[0] || (t[0] = (l) => {
|
|
919
|
+
s(l);
|
|
920
|
+
}),
|
|
921
|
+
value: o.item.value,
|
|
922
|
+
id: o.question.getItemId(o.item),
|
|
923
|
+
disabled: !o.question.getItemEnabled(o.item),
|
|
924
|
+
readonly: o.question.isReadOnlyAttr,
|
|
925
|
+
class: r(o.question.cssClasses.itemControl),
|
|
926
|
+
required: o.question.hasRequiredError(),
|
|
927
|
+
"aria-label": o.ariaLabel
|
|
928
|
+
}, null, 42, Ns),
|
|
929
|
+
o.question.cssClasses.materialDecorator ? (i(), a("span", {
|
|
938
930
|
key: 0,
|
|
939
|
-
class: r(o.question.cssClasses.
|
|
931
|
+
class: r(o.question.cssClasses.materialDecorator)
|
|
940
932
|
}, [
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
},
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
933
|
+
o.question.itemSvgIcon ? (i(), a("svg", {
|
|
934
|
+
key: 0,
|
|
935
|
+
class: r(o.question.cssClasses.itemDecorator)
|
|
936
|
+
}, [
|
|
937
|
+
v("use", {
|
|
938
|
+
"xlink:href": o.question.itemSvgIcon
|
|
939
|
+
}, null, 8, Es)
|
|
940
|
+
], 2)) : p("", !0)
|
|
941
|
+
], 2)) : p("", !0),
|
|
942
|
+
o.hideLabel ? p("", !0) : (i(), a("span", {
|
|
943
|
+
key: 1,
|
|
944
|
+
class: r(o.question.cssClasses.controlLabel)
|
|
945
|
+
}, [
|
|
946
|
+
c(m, {
|
|
947
|
+
is: "survey-string",
|
|
948
|
+
locString: o.item.locText
|
|
949
|
+
}, null, 8, ["locString"])
|
|
950
|
+
], 2))
|
|
951
|
+
], 2)
|
|
952
|
+
], 2),
|
|
953
|
+
o.item.isCommentShowing ? (i(), g(m, {
|
|
954
|
+
key: 0,
|
|
955
|
+
is: "survey-other-choice",
|
|
956
|
+
question: o.question,
|
|
957
|
+
item: o.item
|
|
958
|
+
}, null, 8, ["question", "item"])) : p("", !0)
|
|
959
|
+
], 64));
|
|
957
960
|
}
|
|
958
|
-
}),
|
|
961
|
+
}), Fs = /* @__PURE__ */ y({
|
|
959
962
|
inheritAttrs: !1,
|
|
960
963
|
__name: "Radiogroup",
|
|
961
964
|
props: {
|
|
962
965
|
question: {}
|
|
963
966
|
},
|
|
964
967
|
setup(u) {
|
|
965
|
-
return (e, n) => (i(), g(
|
|
968
|
+
return (e, n) => (i(), g(Le, { question: e.question }, null, 8, ["question"]));
|
|
966
969
|
}
|
|
967
|
-
}),
|
|
970
|
+
}), Os = ["name", "value", "id", "aria-errormessage", "checked", "disabled", "readonly", "aria-label"], zs = ["xlink:href"], Us = /* @__PURE__ */ y({
|
|
968
971
|
inheritAttrs: !1,
|
|
969
972
|
__name: "RadiogroupItem",
|
|
970
973
|
props: {
|
|
@@ -974,67 +977,72 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
974
977
|
ariaLabel: {}
|
|
975
978
|
},
|
|
976
979
|
setup(u) {
|
|
977
|
-
const e = f(), n = u, s = (l) => n.question.getLabelClass(l), o = (l) => n.question.getControlLabelClass(l), t =
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
d.renderedValue = l;
|
|
982
|
-
}
|
|
983
|
-
});
|
|
984
|
-
return Le(
|
|
980
|
+
const e = f(), n = u, s = (l) => n.question.getLabelClass(l), o = (l) => n.question.getControlLabelClass(l), t = () => {
|
|
981
|
+
n.question.clickItemHandler(n.item);
|
|
982
|
+
};
|
|
983
|
+
return ke(
|
|
985
984
|
() => n.item,
|
|
986
985
|
() => n.question,
|
|
987
986
|
e
|
|
988
|
-
), (l, d) => (i(), a(
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
v("label", {
|
|
995
|
-
onMousedown: d[1] || (d[1] = (C) => l.question.onMouseDown()),
|
|
996
|
-
class: r(s(l.item))
|
|
987
|
+
), (l, d) => (i(), a(H, null, [
|
|
988
|
+
v("div", {
|
|
989
|
+
role: "presentation",
|
|
990
|
+
class: r(l.question.getItemClass(l.item)),
|
|
991
|
+
ref_key: "root",
|
|
992
|
+
ref: e
|
|
997
993
|
}, [
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
value: l.item.value,
|
|
1002
|
-
id: l.question.getItemId(l.item),
|
|
1003
|
-
"aria-errormessage": l.question.ariaErrormessage,
|
|
1004
|
-
"onUpdate:modelValue": d[0] || (d[0] = (C) => t.value = C),
|
|
1005
|
-
disabled: !l.question.getItemEnabled(l.item),
|
|
1006
|
-
readonly: l.question.isReadOnlyAttr,
|
|
1007
|
-
class: r(l.question.cssClasses.itemControl),
|
|
1008
|
-
"aria-label": l.ariaLabel
|
|
1009
|
-
}, null, 10, Fs), [
|
|
1010
|
-
[se, t.value]
|
|
1011
|
-
]),
|
|
1012
|
-
l.question.cssClasses.materialDecorator ? (i(), a("span", {
|
|
1013
|
-
key: 0,
|
|
1014
|
-
class: r(l.question.cssClasses.materialDecorator)
|
|
994
|
+
v("label", {
|
|
995
|
+
onMousedown: d[1] || (d[1] = (C) => l.question.onMouseDown()),
|
|
996
|
+
class: r(s(l.item))
|
|
1015
997
|
}, [
|
|
1016
|
-
|
|
998
|
+
v("input", {
|
|
999
|
+
type: "radio",
|
|
1000
|
+
name: l.question.questionName,
|
|
1001
|
+
value: l.item.value,
|
|
1002
|
+
id: l.question.getItemId(l.item),
|
|
1003
|
+
"aria-errormessage": l.question.ariaErrormessage,
|
|
1004
|
+
checked: l.question.isItemSelected(l.item),
|
|
1005
|
+
onInput: d[0] || (d[0] = (C) => {
|
|
1006
|
+
t();
|
|
1007
|
+
}),
|
|
1008
|
+
disabled: !l.question.getItemEnabled(l.item),
|
|
1009
|
+
readonly: l.question.isReadOnlyAttr,
|
|
1010
|
+
class: r(l.question.cssClasses.itemControl),
|
|
1011
|
+
"aria-label": l.ariaLabel
|
|
1012
|
+
}, null, 42, Os),
|
|
1013
|
+
l.question.cssClasses.materialDecorator ? (i(), a("span", {
|
|
1017
1014
|
key: 0,
|
|
1018
|
-
class: r(l.question.cssClasses.
|
|
1015
|
+
class: r(l.question.cssClasses.materialDecorator)
|
|
1019
1016
|
}, [
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
},
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1017
|
+
l.question.itemSvgIcon ? (i(), a("svg", {
|
|
1018
|
+
key: 0,
|
|
1019
|
+
class: r(l.question.cssClasses.itemDecorator)
|
|
1020
|
+
}, [
|
|
1021
|
+
v("use", {
|
|
1022
|
+
"xlink:href": l.question.itemSvgIcon
|
|
1023
|
+
}, null, 8, zs)
|
|
1024
|
+
], 2)) : p("", !0)
|
|
1025
|
+
], 2)) : p("", !0),
|
|
1026
|
+
l.hideLabel ? p("", !0) : (i(), a("span", {
|
|
1027
|
+
key: 1,
|
|
1028
|
+
class: r(o(l.item))
|
|
1029
|
+
}, [
|
|
1030
|
+
c(m, {
|
|
1031
|
+
is: "survey-string",
|
|
1032
|
+
locString: l.item.locText
|
|
1033
|
+
}, null, 8, ["locString"])
|
|
1034
|
+
], 2))
|
|
1035
|
+
], 34)
|
|
1036
|
+
], 2),
|
|
1037
|
+
l.item.isCommentShowing ? (i(), g(m, {
|
|
1038
|
+
key: 0,
|
|
1039
|
+
is: "survey-other-choice",
|
|
1040
|
+
question: l.question,
|
|
1041
|
+
item: l.item
|
|
1042
|
+
}, null, 8, ["question", "item"])) : p("", !0)
|
|
1043
|
+
], 64));
|
|
1036
1044
|
}
|
|
1037
|
-
}),
|
|
1045
|
+
}), Qs = ["src"], Ks = ["title"], js = { key: 0 }, Gs = /* @__PURE__ */ y({
|
|
1038
1046
|
inheritAttrs: !1,
|
|
1039
1047
|
__name: "Signaturepad",
|
|
1040
1048
|
props: {
|
|
@@ -1050,7 +1058,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1050
1058
|
width: s.question.renderedCanvasWidth
|
|
1051
1059
|
})
|
|
1052
1060
|
}, [
|
|
1053
|
-
|
|
1061
|
+
Z(v("div", {
|
|
1054
1062
|
class: r(s.question.cssClasses.placeholder)
|
|
1055
1063
|
}, [
|
|
1056
1064
|
c(m, {
|
|
@@ -1069,7 +1077,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1069
1077
|
style: k({
|
|
1070
1078
|
width: s.question.renderedCanvasWidth
|
|
1071
1079
|
})
|
|
1072
|
-
}, null, 14,
|
|
1080
|
+
}, null, 14, Qs)) : p("", !0),
|
|
1073
1081
|
v("canvas", {
|
|
1074
1082
|
tabindex: "-1",
|
|
1075
1083
|
class: r(s.question.cssClasses.canvas),
|
|
@@ -1089,14 +1097,14 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1089
1097
|
s.question.clearValue(!0);
|
|
1090
1098
|
})
|
|
1091
1099
|
}, [
|
|
1092
|
-
s.question.cssClasses.clearButtonIconId ? p("", !0) : (i(), a("span",
|
|
1100
|
+
s.question.cssClasses.clearButtonIconId ? p("", !0) : (i(), a("span", js, "✖")),
|
|
1093
1101
|
s.question.cssClasses.clearButtonIconId ? (i(), g(m, {
|
|
1094
1102
|
key: 1,
|
|
1095
1103
|
is: "sv-svg-icon",
|
|
1096
1104
|
iconName: s.question.cssClasses.clearButtonIconId,
|
|
1097
1105
|
size: "auto"
|
|
1098
1106
|
}, null, 8, ["iconName"])) : p("", !0)
|
|
1099
|
-
], 10,
|
|
1107
|
+
], 10, Ks)
|
|
1100
1108
|
], 2)) : p("", !0),
|
|
1101
1109
|
s.question.showLoadingIndicator ? (i(), a("div", {
|
|
1102
1110
|
key: 1,
|
|
@@ -1106,7 +1114,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1106
1114
|
], 2)) : p("", !0)
|
|
1107
1115
|
], 6));
|
|
1108
1116
|
}
|
|
1109
|
-
}),
|
|
1117
|
+
}), Xs = ["innerHTML"], Js = /* @__PURE__ */ y({
|
|
1110
1118
|
inheritAttrs: !1,
|
|
1111
1119
|
__name: "Html",
|
|
1112
1120
|
props: {
|
|
@@ -1121,9 +1129,9 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1121
1129
|
ref: n,
|
|
1122
1130
|
class: r(o.question.renderCssRoot),
|
|
1123
1131
|
innerHTML: w(s)
|
|
1124
|
-
}, null, 10,
|
|
1132
|
+
}, null, 10, Xs));
|
|
1125
1133
|
}
|
|
1126
|
-
}),
|
|
1134
|
+
}), Ys = ["src", "alt", "width", "height"], _s = ["src", "width", "height"], xs = ["src", "title", "width", "height"], e1 = /* @__PURE__ */ y({
|
|
1127
1135
|
inheritAttrs: !1,
|
|
1128
1136
|
__name: "Image",
|
|
1129
1137
|
props: {
|
|
@@ -1138,7 +1146,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1138
1146
|
ref_key: "root",
|
|
1139
1147
|
ref: n
|
|
1140
1148
|
}, [
|
|
1141
|
-
o.question.renderedMode === "image" ?
|
|
1149
|
+
o.question.renderedMode === "image" ? Z((i(), a("img", {
|
|
1142
1150
|
key: 0,
|
|
1143
1151
|
class: r(o.question.getImageCss()),
|
|
1144
1152
|
src: w(s),
|
|
@@ -1156,10 +1164,10 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1156
1164
|
onError: t[1] || (t[1] = (l) => {
|
|
1157
1165
|
o.question.onErrorHandler();
|
|
1158
1166
|
})
|
|
1159
|
-
}, null, 46,
|
|
1167
|
+
}, null, 46, Ys)), [
|
|
1160
1168
|
[A, w(s) && !o.question.contentNotLoaded]
|
|
1161
1169
|
]) : p("", !0),
|
|
1162
|
-
o.question.renderedMode === "video" ?
|
|
1170
|
+
o.question.renderedMode === "video" ? Z((i(), a("video", {
|
|
1163
1171
|
key: 1,
|
|
1164
1172
|
controls: "",
|
|
1165
1173
|
class: r(o.question.getImageCss()),
|
|
@@ -1177,7 +1185,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1177
1185
|
onError: t[3] || (t[3] = (l) => {
|
|
1178
1186
|
o.question.onErrorHandler();
|
|
1179
1187
|
})
|
|
1180
|
-
}, null, 46,
|
|
1188
|
+
}, null, 46, _s)), [
|
|
1181
1189
|
[A, w(s) && !o.question.contentNotLoaded]
|
|
1182
1190
|
]) : p("", !0),
|
|
1183
1191
|
o.question.renderedMode === "youtube" ? (i(), a("iframe", {
|
|
@@ -1192,7 +1200,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1192
1200
|
width: o.question.renderedStyleWidth,
|
|
1193
1201
|
height: o.question.renderedStyleHeight
|
|
1194
1202
|
})
|
|
1195
|
-
}, null, 14,
|
|
1203
|
+
}, null, 14, xs)) : p("", !0),
|
|
1196
1204
|
!w(s) || o.question.contentNotLoaded ? (i(), a("div", {
|
|
1197
1205
|
key: 3,
|
|
1198
1206
|
class: r(o.question.cssClasses.noImage)
|
|
@@ -1205,7 +1213,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1205
1213
|
], 2)) : p("", !0)
|
|
1206
1214
|
], 2));
|
|
1207
1215
|
}
|
|
1208
|
-
}),
|
|
1216
|
+
}), s1 = ["aria-label"], n1 = /* @__PURE__ */ y({
|
|
1209
1217
|
inheritAttrs: !1,
|
|
1210
1218
|
__name: "Expression",
|
|
1211
1219
|
props: {
|
|
@@ -1216,10 +1224,12 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1216
1224
|
return T(e, n), (s, o) => (i(), a("div", {
|
|
1217
1225
|
class: r(s.question.cssClasses.root),
|
|
1218
1226
|
ref_key: "root",
|
|
1219
|
-
ref: n
|
|
1220
|
-
|
|
1227
|
+
ref: n,
|
|
1228
|
+
"aria-live": "polite",
|
|
1229
|
+
"aria-label": s.question.formatedValue
|
|
1230
|
+
}, I(s.question.formatedValue), 11, s1));
|
|
1221
1231
|
}
|
|
1222
|
-
}),
|
|
1232
|
+
}), t1 = ["id", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "multiple", "title", "accept", "capture"], o1 = ["id", "multiple", "placeholder"], i1 = ["id", "multiple", "placeholder"], r1 = /* @__PURE__ */ y({
|
|
1223
1233
|
inheritAttrs: !1,
|
|
1224
1234
|
__name: "File",
|
|
1225
1235
|
props: {
|
|
@@ -1246,7 +1256,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1246
1256
|
title: s.question.inputTitle,
|
|
1247
1257
|
accept: s.question.acceptedTypes,
|
|
1248
1258
|
capture: s.question.renderCapture
|
|
1249
|
-
}, null, 10,
|
|
1259
|
+
}, null, 10, t1)) : p("", !0),
|
|
1250
1260
|
s.question.isReadOnlyAttr ? (i(), a("input", {
|
|
1251
1261
|
key: 1,
|
|
1252
1262
|
type: "file",
|
|
@@ -1256,7 +1266,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1256
1266
|
multiple: s.question.allowMultiple,
|
|
1257
1267
|
placeholder: s.question.title,
|
|
1258
1268
|
style: { color: "transparent" }
|
|
1259
|
-
}, null, 10,
|
|
1269
|
+
}, null, 10, o1)) : p("", !0),
|
|
1260
1270
|
s.question.isDisabledAttr ? (i(), a("input", {
|
|
1261
1271
|
key: 2,
|
|
1262
1272
|
type: "file",
|
|
@@ -1266,7 +1276,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1266
1276
|
multiple: s.question.allowMultiple,
|
|
1267
1277
|
placeholder: s.question.title,
|
|
1268
1278
|
style: { color: "transparent" }
|
|
1269
|
-
}, null, 10,
|
|
1279
|
+
}, null, 10, i1)) : p("", !0),
|
|
1270
1280
|
v("div", {
|
|
1271
1281
|
class: r(s.question.cssClasses.dragArea),
|
|
1272
1282
|
onDrop: o[0] || (o[0] = //@ts-ignore
|
|
@@ -1325,7 +1335,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1325
1335
|
], 34)
|
|
1326
1336
|
], 2));
|
|
1327
1337
|
}
|
|
1328
|
-
}),
|
|
1338
|
+
}), l1 = { class: "sv-hidden" }, ve = "survey-imagepicker-item", a1 = /* @__PURE__ */ y({
|
|
1329
1339
|
inheritAttrs: !1,
|
|
1330
1340
|
__name: "Imagepicker",
|
|
1331
1341
|
props: {
|
|
@@ -1334,8 +1344,8 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1334
1344
|
setup(u) {
|
|
1335
1345
|
const e = u, n = f(null);
|
|
1336
1346
|
T(e, n);
|
|
1337
|
-
const s = (t) => e.question.getItemValueWrapperComponentName(t) ||
|
|
1338
|
-
componentName:
|
|
1347
|
+
const s = (t) => e.question.getItemValueWrapperComponentName(t) || ve, o = (t) => ({
|
|
1348
|
+
componentName: ve,
|
|
1339
1349
|
componentData: {
|
|
1340
1350
|
question: e.question,
|
|
1341
1351
|
item: t,
|
|
@@ -1348,24 +1358,24 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1348
1358
|
ref_key: "root",
|
|
1349
1359
|
ref: n
|
|
1350
1360
|
}, [
|
|
1351
|
-
v("legend",
|
|
1352
|
-
t.question.hasColumns ? p("", !0) : (i(!0), a(
|
|
1361
|
+
v("legend", l1, I(t.question.locTitle.renderedHtml), 1),
|
|
1362
|
+
t.question.hasColumns ? p("", !0) : (i(!0), a(H, { key: 0 }, V(t.question.visibleChoices, (d) => (i(), g(m, $({
|
|
1353
1363
|
key: d.value,
|
|
1354
1364
|
is: s(d)
|
|
1355
1365
|
}, o(d)), null, 16, ["is"]))), 128)),
|
|
1356
|
-
t.question.hasColumns ? (i(!0), a(
|
|
1366
|
+
t.question.hasColumns ? (i(!0), a(H, { key: 1 }, V(t.question.columns, (d, C) => (i(), a("div", {
|
|
1357
1367
|
class: r(t.question.getColumnClass()),
|
|
1358
1368
|
key: C,
|
|
1359
1369
|
role: "presentation"
|
|
1360
1370
|
}, [
|
|
1361
|
-
(i(!0), a(
|
|
1371
|
+
(i(!0), a(H, null, V(d, (L) => (i(), g(m, $({
|
|
1362
1372
|
key: L.value,
|
|
1363
1373
|
is: s(L)
|
|
1364
1374
|
}, o(L)), null, 16, ["is"]))), 128))
|
|
1365
1375
|
], 2))), 128)) : p("", !0)
|
|
1366
1376
|
], 6));
|
|
1367
1377
|
}
|
|
1368
|
-
}),
|
|
1378
|
+
}), u1 = ["name", "value", "id", "disabled", "readonly", "required", "aria-label", "aria-invalid", "aria-errormessage"], d1 = ["name", "value", "id", "disabled", "readonly", "required", "aria-label", "aria-invalid", "aria-errormessage"], m1 = ["src", "width", "height", "alt"], p1 = ["src", "width", "height"], v1 = /* @__PURE__ */ y({
|
|
1369
1379
|
inheritAttrs: !1,
|
|
1370
1380
|
__name: "ImagepickerItem",
|
|
1371
1381
|
props: {
|
|
@@ -1373,7 +1383,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1373
1383
|
item: {}
|
|
1374
1384
|
},
|
|
1375
1385
|
setup(u) {
|
|
1376
|
-
const e = u, n = (t) => e.question.getItemClass(t), s =
|
|
1386
|
+
const e = u, n = (t) => e.question.getItemClass(t), s = M({
|
|
1377
1387
|
get() {
|
|
1378
1388
|
return e.question.value;
|
|
1379
1389
|
},
|
|
@@ -1390,7 +1400,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1390
1400
|
v("label", {
|
|
1391
1401
|
class: r(t.question.cssClasses.label)
|
|
1392
1402
|
}, [
|
|
1393
|
-
t.question.multiSelect ?
|
|
1403
|
+
t.question.multiSelect ? Z((i(), a("input", {
|
|
1394
1404
|
key: 0,
|
|
1395
1405
|
type: "checkbox",
|
|
1396
1406
|
name: t.question.questionName,
|
|
@@ -1399,14 +1409,14 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1399
1409
|
"onUpdate:modelValue": l[0] || (l[0] = (d) => s.value = d),
|
|
1400
1410
|
disabled: !t.question.getItemEnabled(t.item),
|
|
1401
1411
|
readonly: t.question.isReadOnlyAttr,
|
|
1402
|
-
|
|
1412
|
+
required: t.question.inputRequiredAttribute,
|
|
1403
1413
|
"aria-label": t.item.locText.renderedHtml,
|
|
1404
1414
|
"aria-invalid": t.question.ariaInvalid,
|
|
1405
1415
|
"aria-errormessage": t.question.ariaErrormessage,
|
|
1406
1416
|
class: r(t.question.cssClasses.itemControl)
|
|
1407
|
-
}, null, 10,
|
|
1408
|
-
[
|
|
1409
|
-
]) :
|
|
1417
|
+
}, null, 10, u1)), [
|
|
1418
|
+
[oe, s.value]
|
|
1419
|
+
]) : Z((i(), a("input", {
|
|
1410
1420
|
key: 1,
|
|
1411
1421
|
type: "radio",
|
|
1412
1422
|
name: t.question.questionName,
|
|
@@ -1415,13 +1425,13 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1415
1425
|
"onUpdate:modelValue": l[1] || (l[1] = (d) => s.value = d),
|
|
1416
1426
|
disabled: !t.question.getItemEnabled(t.item),
|
|
1417
1427
|
readonly: t.question.isReadOnlyAttr,
|
|
1418
|
-
|
|
1428
|
+
required: t.question.hasRequiredError(),
|
|
1419
1429
|
"aria-label": t.item.locText.renderedHtml,
|
|
1420
1430
|
"aria-invalid": t.question.ariaInvalid,
|
|
1421
1431
|
"aria-errormessage": t.question.ariaErrormessage,
|
|
1422
1432
|
class: r(t.question.cssClasses.itemControl)
|
|
1423
|
-
}, null, 10,
|
|
1424
|
-
[
|
|
1433
|
+
}, null, 10, d1)), [
|
|
1434
|
+
[he, s.value]
|
|
1425
1435
|
]),
|
|
1426
1436
|
v("div", {
|
|
1427
1437
|
class: r(t.question.cssClasses.itemDecorator)
|
|
@@ -1456,7 +1466,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1456
1466
|
onError: l[3] || (l[3] = (d) => {
|
|
1457
1467
|
t.item.onErrorHandler();
|
|
1458
1468
|
})
|
|
1459
|
-
}, null, 46,
|
|
1469
|
+
}, null, 46, m1)) : p("", !0),
|
|
1460
1470
|
w(o) && !t.item.contentNotLoaded && t.question.contentMode === "video" ? (i(), a("video", {
|
|
1461
1471
|
key: 2,
|
|
1462
1472
|
controls: "",
|
|
@@ -1471,7 +1481,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1471
1481
|
onError: l[5] || (l[5] = (d) => {
|
|
1472
1482
|
t.item.onErrorHandler();
|
|
1473
1483
|
})
|
|
1474
|
-
}, null, 46,
|
|
1484
|
+
}, null, 46, p1)) : p("", !0),
|
|
1475
1485
|
!w(o) || t.item.contentNotLoaded ? (i(), a("div", {
|
|
1476
1486
|
key: 3,
|
|
1477
1487
|
class: r(t.question.cssClasses.itemNoImage),
|
|
@@ -1502,7 +1512,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1502
1512
|
], 2)
|
|
1503
1513
|
], 2));
|
|
1504
1514
|
}
|
|
1505
|
-
}),
|
|
1515
|
+
}), C1 = /* @__PURE__ */ y({
|
|
1506
1516
|
inheritAttrs: !1,
|
|
1507
1517
|
__name: "Comment",
|
|
1508
1518
|
props: {
|
|
@@ -1538,7 +1548,7 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1538
1548
|
ref: n
|
|
1539
1549
|
}, I(o.question.value), 513));
|
|
1540
1550
|
}
|
|
1541
|
-
}),
|
|
1551
|
+
}), c1 = /* @__PURE__ */ y({
|
|
1542
1552
|
inheritAttrs: !1,
|
|
1543
1553
|
__name: "Dropdown",
|
|
1544
1554
|
props: {
|
|
@@ -1555,23 +1565,24 @@ const Ps = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1555
1565
|
is: "sv-dropdown",
|
|
1556
1566
|
question: s.question
|
|
1557
1567
|
}, null, 8, ["question"]),
|
|
1558
|
-
s.question.
|
|
1568
|
+
s.question.isShowingChoiceComment ? (i(), g(m, {
|
|
1559
1569
|
key: 0,
|
|
1560
1570
|
is: "survey-other-choice",
|
|
1561
|
-
question: s.question
|
|
1562
|
-
|
|
1571
|
+
question: s.question,
|
|
1572
|
+
item: s.question.selectedItem
|
|
1573
|
+
}, null, 8, ["question", "item"])) : p("", !0)
|
|
1563
1574
|
], 2));
|
|
1564
1575
|
}
|
|
1565
|
-
}),
|
|
1576
|
+
}), g1 = ["id", "autocomplete", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "required"], y1 = {
|
|
1566
1577
|
key: 0,
|
|
1567
1578
|
value: ""
|
|
1568
|
-
},
|
|
1579
|
+
}, h1 = ["id"];
|
|
1569
1580
|
G.Instance.registerRenderer(
|
|
1570
1581
|
"dropdown",
|
|
1571
1582
|
"select",
|
|
1572
1583
|
"sv-dropdown-select"
|
|
1573
1584
|
);
|
|
1574
|
-
const
|
|
1585
|
+
const q1 = /* @__PURE__ */ y({
|
|
1575
1586
|
inheritAttrs: !1,
|
|
1576
1587
|
__name: "DropdownSelect",
|
|
1577
1588
|
props: {
|
|
@@ -1584,7 +1595,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1584
1595
|
e.question.onClick(l);
|
|
1585
1596
|
}, o = (l) => {
|
|
1586
1597
|
e.question.onKeyUp(l);
|
|
1587
|
-
}, t =
|
|
1598
|
+
}, t = M({
|
|
1588
1599
|
get() {
|
|
1589
1600
|
return e.question.value ?? "";
|
|
1590
1601
|
},
|
|
@@ -1606,7 +1617,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1606
1617
|
disabled: "",
|
|
1607
1618
|
id: l.question.inputId,
|
|
1608
1619
|
class: r(l.question.getControlClass())
|
|
1609
|
-
}, I(l.question.readOnlyText), 11,
|
|
1620
|
+
}, I(l.question.readOnlyText), 11, h1)) : Z((i(), a("select", {
|
|
1610
1621
|
key: 0,
|
|
1611
1622
|
id: l.question.inputId,
|
|
1612
1623
|
"onUpdate:modelValue": d[0] || (d[0] = (C) => t.value = C),
|
|
@@ -1620,13 +1631,13 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1620
1631
|
"aria-errormessage": l.question.a11y_input_ariaErrormessage,
|
|
1621
1632
|
required: l.question.isRequired
|
|
1622
1633
|
}, [
|
|
1623
|
-
l.question.allowClear ? (i(), a("option",
|
|
1624
|
-
(i(!0), a(
|
|
1634
|
+
l.question.allowClear ? (i(), a("option", y1, I(l.question.placeholder), 1)) : p("", !0),
|
|
1635
|
+
(i(!0), a(H, null, V(l.question.visibleChoices, (C) => (i(), g(m, {
|
|
1625
1636
|
is: "sv-dropdown-option-item",
|
|
1626
1637
|
item: C,
|
|
1627
1638
|
key: C.id
|
|
1628
1639
|
}, null, 8, ["item"]))), 128))
|
|
1629
|
-
], 42,
|
|
1640
|
+
], 42, g1)), [
|
|
1630
1641
|
[Be, t.value]
|
|
1631
1642
|
]),
|
|
1632
1643
|
l.question.cssClasses.chevronButtonIconId ? (i(), a("div", {
|
|
@@ -1642,14 +1653,15 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1642
1653
|
}, null, 8, ["class", "iconName"])
|
|
1643
1654
|
], 2)) : p("", !0)
|
|
1644
1655
|
], 2),
|
|
1645
|
-
l.question.
|
|
1656
|
+
l.question.isShowingChoiceComment ? (i(), g(m, {
|
|
1646
1657
|
key: 0,
|
|
1647
1658
|
is: "survey-other-choice",
|
|
1648
|
-
question: l.question
|
|
1649
|
-
|
|
1659
|
+
question: l.question,
|
|
1660
|
+
item: l.question.selectedItem
|
|
1661
|
+
}, null, 8, ["question", "item"])) : p("", !0)
|
|
1650
1662
|
], 2));
|
|
1651
1663
|
}
|
|
1652
|
-
}),
|
|
1664
|
+
}), w1 = ["value", "disabled"], b1 = /* @__PURE__ */ y({
|
|
1653
1665
|
__name: "OptionItem",
|
|
1654
1666
|
props: {
|
|
1655
1667
|
item: {}
|
|
@@ -1659,15 +1671,15 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1659
1671
|
return S(() => e.item), (s, o) => (i(), a("option", {
|
|
1660
1672
|
value: s.item.value,
|
|
1661
1673
|
disabled: !s.item.isEnabled
|
|
1662
|
-
}, I(w(n)), 9,
|
|
1674
|
+
}, I(w(n)), 9, w1));
|
|
1663
1675
|
}
|
|
1664
|
-
}),
|
|
1676
|
+
}), L1 = ["id", "disabled", "tabindex", "role", "aria-required", "aria-invalid", "aria-errormessage", "aria-expanded", "aria-label", "aria-labelledby", "aria-describedby", "aria-controls", "aria-activedescendant", "required"], k1 = { style: { visibility: "hidden" } }, f1 = ["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"], H1 = ["id", "role", "aria-label", "aria-labelledby", "aria-describedby", "tabindex"], M1 = /* @__PURE__ */ y({
|
|
1665
1677
|
__name: "Dropdown",
|
|
1666
1678
|
props: {
|
|
1667
1679
|
question: {}
|
|
1668
1680
|
},
|
|
1669
1681
|
setup(u) {
|
|
1670
|
-
const e = u, n = f(null), s =
|
|
1682
|
+
const e = u, n = f(null), s = M(() => e.question.dropdownListModel), o = (b) => {
|
|
1671
1683
|
var R;
|
|
1672
1684
|
(R = s.value) == null || R.onClick(b);
|
|
1673
1685
|
}, t = (b) => {
|
|
@@ -1676,7 +1688,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1676
1688
|
}, l = () => {
|
|
1677
1689
|
if (n.value) {
|
|
1678
1690
|
const b = n.value, R = s.value.inputStringRendered;
|
|
1679
|
-
|
|
1691
|
+
Fe.isTwoValueEquals(R, b.value, !1, !0, !1) || (b.value = s.value.inputStringRendered);
|
|
1680
1692
|
}
|
|
1681
1693
|
}, d = (b) => {
|
|
1682
1694
|
e.question.onBlur(b), l();
|
|
@@ -1684,11 +1696,11 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1684
1696
|
e.question.onFocus(b);
|
|
1685
1697
|
}, L = (b) => {
|
|
1686
1698
|
s.value.inputStringRendered = b.target.value;
|
|
1687
|
-
}, h =
|
|
1699
|
+
}, h = M(
|
|
1688
1700
|
() => e.question.showSelectedItemLocText
|
|
1689
|
-
), q =
|
|
1690
|
-
return S(() => s.value), z(l),
|
|
1691
|
-
var N, K, j,
|
|
1701
|
+
), q = M(() => e.question.selectedItemLocText);
|
|
1702
|
+
return S(() => s.value), z(l), B(l), (b, R) => {
|
|
1703
|
+
var N, K, j, ae;
|
|
1692
1704
|
return i(), a("div", {
|
|
1693
1705
|
class: r(b.question.cssClasses.selectWrapper),
|
|
1694
1706
|
onClick: o
|
|
@@ -1731,7 +1743,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1731
1743
|
key: 1,
|
|
1732
1744
|
class: r(b.question.cssClasses.hintSuffix)
|
|
1733
1745
|
}, [
|
|
1734
|
-
v("span",
|
|
1746
|
+
v("span", k1, I(s.value.inputStringRendered), 1),
|
|
1735
1747
|
v("span", null, I(s.value.hintStringSuffix), 1)
|
|
1736
1748
|
], 2)) : p("", !0),
|
|
1737
1749
|
b.question.showInputFieldComponent ? (i(), g(m, {
|
|
@@ -1766,13 +1778,13 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1766
1778
|
onInput: L,
|
|
1767
1779
|
onBlur: d,
|
|
1768
1780
|
onFocus: C
|
|
1769
|
-
}, null, 42,
|
|
1781
|
+
}, null, 42, f1)) : p("", !0)
|
|
1770
1782
|
], 2),
|
|
1771
1783
|
c(m, {
|
|
1772
1784
|
is: "sv-action-bar",
|
|
1773
1785
|
model: s.value.editorButtons
|
|
1774
1786
|
}, null, 8, ["model"])
|
|
1775
|
-
], 42,
|
|
1787
|
+
], 42, L1)),
|
|
1776
1788
|
b.question.isInputReadOnly ? p("", !0) : (i(), g(m, {
|
|
1777
1789
|
key: 1,
|
|
1778
1790
|
is: "sv-popup",
|
|
@@ -1784,7 +1796,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1784
1796
|
role: (N = s.value) == null ? void 0 : N.ariaQuestionRole,
|
|
1785
1797
|
"aria-label": (K = s.value) == null ? void 0 : K.ariaQuestionLabel,
|
|
1786
1798
|
"aria-labelledby": (j = s.value) == null ? void 0 : j.ariaQuestionLabelledby,
|
|
1787
|
-
"aria-describedby": (
|
|
1799
|
+
"aria-describedby": (ae = s.value) == null ? void 0 : ae.ariaQuestionDescribedby,
|
|
1788
1800
|
"aria-expanded": !1,
|
|
1789
1801
|
"aria-readonly": !0,
|
|
1790
1802
|
"aria-disabled": !0,
|
|
@@ -1804,11 +1816,11 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1804
1816
|
is: "sv-action-bar",
|
|
1805
1817
|
model: s.value.editorButtons
|
|
1806
1818
|
}, null, 8, ["model"])
|
|
1807
|
-
], 10,
|
|
1819
|
+
], 10, H1)) : p("", !0)
|
|
1808
1820
|
], 2);
|
|
1809
1821
|
};
|
|
1810
1822
|
}
|
|
1811
|
-
}),
|
|
1823
|
+
}), I1 = /* @__PURE__ */ y({
|
|
1812
1824
|
inheritAttrs: !1,
|
|
1813
1825
|
__name: "Tagbox",
|
|
1814
1826
|
props: {
|
|
@@ -1828,19 +1840,20 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1828
1840
|
s.question.isOtherSelected ? (i(), g(m, {
|
|
1829
1841
|
key: 0,
|
|
1830
1842
|
is: "survey-other-choice",
|
|
1831
|
-
question: s.question
|
|
1832
|
-
|
|
1843
|
+
question: s.question,
|
|
1844
|
+
item: s.question.otherItem
|
|
1845
|
+
}, null, 8, ["question", "item"])) : p("", !0)
|
|
1833
1846
|
], 2));
|
|
1834
1847
|
}
|
|
1835
|
-
}),
|
|
1848
|
+
}), V1 = ["id", "tabindex", "disabled", "role", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage", "aria-controls", "aria-expanded", "aria-activedescendant", "required"], S1 = ["id", "role", "aria-label", "aria-labelledby", "aria-describedby", "tabindex"], R1 = /* @__PURE__ */ y({
|
|
1836
1849
|
__name: "Tagbox",
|
|
1837
1850
|
props: {
|
|
1838
1851
|
question: {}
|
|
1839
1852
|
},
|
|
1840
1853
|
setup(u) {
|
|
1841
|
-
const e = u, n =
|
|
1854
|
+
const e = u, n = M(() => {
|
|
1842
1855
|
const d = e.question;
|
|
1843
|
-
return d.dropdownListModel || (d.dropdownListModel = new
|
|
1856
|
+
return d.dropdownListModel || (d.dropdownListModel = new Oe(d)), e.question.dropdownListModel;
|
|
1844
1857
|
}), s = (d) => {
|
|
1845
1858
|
var C;
|
|
1846
1859
|
(C = n.value) == null || C.onClick(d);
|
|
@@ -1850,7 +1863,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1850
1863
|
}, t = (d) => {
|
|
1851
1864
|
var C;
|
|
1852
1865
|
(C = n.value) == null || C.onBlur(d);
|
|
1853
|
-
}, l =
|
|
1866
|
+
}, l = se(() => e.question.selectedChoices);
|
|
1854
1867
|
return S(() => n.value), (d, C) => {
|
|
1855
1868
|
var L, h, q, b;
|
|
1856
1869
|
return i(), a("div", {
|
|
@@ -1880,7 +1893,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1880
1893
|
v("div", {
|
|
1881
1894
|
class: r(d.question.cssClasses.controlValue)
|
|
1882
1895
|
}, [
|
|
1883
|
-
(i(!0), a(
|
|
1896
|
+
(i(!0), a(H, null, V(w(l), (R, N) => (i(), g(m, {
|
|
1884
1897
|
is: "sv-tagbox-item",
|
|
1885
1898
|
item: R,
|
|
1886
1899
|
question: d.question,
|
|
@@ -1897,7 +1910,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1897
1910
|
is: "sv-action-bar",
|
|
1898
1911
|
model: n.value.editorButtons
|
|
1899
1912
|
}, null, 8, ["model"])
|
|
1900
|
-
], 42,
|
|
1913
|
+
], 42, V1)),
|
|
1901
1914
|
d.question.isInputReadOnly ? p("", !0) : (i(), g(m, {
|
|
1902
1915
|
key: 1,
|
|
1903
1916
|
is: "sv-popup",
|
|
@@ -1929,11 +1942,11 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1929
1942
|
is: "sv-action-bar",
|
|
1930
1943
|
model: n.value.editorButtons
|
|
1931
1944
|
}, null, 8, ["model"])
|
|
1932
|
-
], 10,
|
|
1945
|
+
], 10, S1)) : p("", !0)
|
|
1933
1946
|
], 2);
|
|
1934
1947
|
};
|
|
1935
1948
|
}
|
|
1936
|
-
}),
|
|
1949
|
+
}), T1 = { style: { visibility: "hidden" } }, B1 = ["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"], Z1 = /* @__PURE__ */ y({
|
|
1937
1950
|
__name: "TagboxFilter",
|
|
1938
1951
|
props: {
|
|
1939
1952
|
question: {},
|
|
@@ -1949,7 +1962,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1949
1962
|
e.question.onBlur(d);
|
|
1950
1963
|
}, t = (d) => {
|
|
1951
1964
|
e.question.onFocus(d);
|
|
1952
|
-
}, l =
|
|
1965
|
+
}, l = M({
|
|
1953
1966
|
get() {
|
|
1954
1967
|
return e.model.inputStringRendered ?? "";
|
|
1955
1968
|
},
|
|
@@ -1979,10 +1992,10 @@ const y1 = /* @__PURE__ */ y({
|
|
|
1979
1992
|
key: 1,
|
|
1980
1993
|
class: r(d.question.cssClasses.hintSuffix)
|
|
1981
1994
|
}, [
|
|
1982
|
-
v("span",
|
|
1995
|
+
v("span", T1, I(d.model.inputStringRendered), 1),
|
|
1983
1996
|
v("span", null, I(d.model.hintStringSuffix), 1)
|
|
1984
1997
|
], 2)) : p("", !0),
|
|
1985
|
-
|
|
1998
|
+
Z(v("input", {
|
|
1986
1999
|
type: "text",
|
|
1987
2000
|
autocomplete: "off",
|
|
1988
2001
|
"onUpdate:modelValue": C[0] || (C[0] = (L) => l.value = L),
|
|
@@ -2007,13 +2020,13 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2007
2020
|
onKeydown: s,
|
|
2008
2021
|
onBlur: o,
|
|
2009
2022
|
onFocus: t
|
|
2010
|
-
}, null, 42,
|
|
2023
|
+
}, null, 42, B1), [
|
|
2011
2024
|
[Ze, l.value]
|
|
2012
2025
|
])
|
|
2013
2026
|
], 2)
|
|
2014
2027
|
], 2));
|
|
2015
2028
|
}
|
|
2016
|
-
}),
|
|
2029
|
+
}), $1 = { class: "sv-tagbox__item-text" }, D1 = /* @__PURE__ */ y({
|
|
2017
2030
|
__name: "TagboxItem",
|
|
2018
2031
|
props: {
|
|
2019
2032
|
question: {},
|
|
@@ -2027,7 +2040,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2027
2040
|
class: "sv-tagbox__item",
|
|
2028
2041
|
key: s.item.key
|
|
2029
2042
|
}, [
|
|
2030
|
-
v("div",
|
|
2043
|
+
v("div", $1, [
|
|
2031
2044
|
c(m, {
|
|
2032
2045
|
is: "survey-string",
|
|
2033
2046
|
locString: s.item.locText
|
|
@@ -2046,7 +2059,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2046
2059
|
], 2)
|
|
2047
2060
|
]));
|
|
2048
2061
|
}
|
|
2049
|
-
}),
|
|
2062
|
+
}), A1 = /* @__PURE__ */ y({
|
|
2050
2063
|
inheritAttrs: !1,
|
|
2051
2064
|
__name: "Ranking",
|
|
2052
2065
|
props: {
|
|
@@ -2070,7 +2083,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2070
2083
|
ref_key: "root",
|
|
2071
2084
|
ref: n
|
|
2072
2085
|
}, [
|
|
2073
|
-
t.question.selectToRankEnabled ? p("", !0) : (i(!0), a(
|
|
2086
|
+
t.question.selectToRankEnabled ? p("", !0) : (i(!0), a(H, { key: 0 }, V(t.question.renderedRankingChoices, (d, C) => (i(), g(m, $({
|
|
2074
2087
|
key: d.value + "-" + C + "-item",
|
|
2075
2088
|
is: s(d)
|
|
2076
2089
|
}, o(d, C)), null, 16, ["is"]))), 128)),
|
|
@@ -2079,7 +2092,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2079
2092
|
class: r(t.question.getContainerClasses("from")),
|
|
2080
2093
|
"data-ranking": "from-container"
|
|
2081
2094
|
}, [
|
|
2082
|
-
(i(!0), a(
|
|
2095
|
+
(i(!0), a(H, null, V(t.question.renderedUnRankingChoices, (d, C) => (i(), g(m, $({
|
|
2083
2096
|
key: d.value + "-" + C + "-item",
|
|
2084
2097
|
is: s(d)
|
|
2085
2098
|
}, o(d, C, !0)), null, 16, ["is"]))), 128)),
|
|
@@ -2102,7 +2115,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2102
2115
|
class: r(t.question.getContainerClasses("to")),
|
|
2103
2116
|
"data-ranking": "to-container"
|
|
2104
2117
|
}, [
|
|
2105
|
-
(i(!0), a(
|
|
2118
|
+
(i(!0), a(H, null, V(t.question.renderedRankingChoices, (d, C) => (i(), g(m, $({
|
|
2106
2119
|
key: d.value + "-" + C + "-item",
|
|
2107
2120
|
is: s(d)
|
|
2108
2121
|
}, o(d, C)), null, 16, ["is"]))), 128)),
|
|
@@ -2118,10 +2131,10 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2118
2131
|
], 2)) : p("", !0)
|
|
2119
2132
|
], 2));
|
|
2120
2133
|
}
|
|
2121
|
-
}),
|
|
2134
|
+
}), P1 = ["id", "tabindex", "data-sv-drop-target-ranking-item"], N1 = {
|
|
2122
2135
|
tabindex: "-1",
|
|
2123
2136
|
style: { outline: "none" }
|
|
2124
|
-
},
|
|
2137
|
+
}, E1 = ["xlink:href"], W1 = ["xlink:href"], F1 = ["xlink:href"], O1 = /* @__PURE__ */ y({
|
|
2125
2138
|
inheritAttrs: !1,
|
|
2126
2139
|
__name: "RankingItem",
|
|
2127
2140
|
props: {
|
|
@@ -2131,7 +2144,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2131
2144
|
unrankedItem: { type: Boolean }
|
|
2132
2145
|
},
|
|
2133
2146
|
setup(u) {
|
|
2134
|
-
const e = u, n =
|
|
2147
|
+
const e = u, n = M(() => e.question.getNumberByIndex(e.index));
|
|
2135
2148
|
return S(() => e.item), (s, o) => (i(), a("div", {
|
|
2136
2149
|
id: s.question.getItemId(s.item),
|
|
2137
2150
|
tabindex: s.question.getItemTabIndex(s.item),
|
|
@@ -2157,7 +2170,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2157
2170
|
);
|
|
2158
2171
|
})
|
|
2159
2172
|
}, [
|
|
2160
|
-
v("div",
|
|
2173
|
+
v("div", N1, [
|
|
2161
2174
|
v("div", {
|
|
2162
2175
|
class: r(s.question.cssClasses.itemGhostNode)
|
|
2163
2176
|
}, null, 2),
|
|
@@ -2172,14 +2185,14 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2172
2185
|
}, [
|
|
2173
2186
|
v("use", {
|
|
2174
2187
|
"xlink:href": s.question.dragDropSvgIcon
|
|
2175
|
-
}, null, 8,
|
|
2188
|
+
}, null, 8, E1)
|
|
2176
2189
|
], 2)),
|
|
2177
2190
|
(i(), a("svg", {
|
|
2178
2191
|
class: r(s.question.getIconFocusCss())
|
|
2179
2192
|
}, [
|
|
2180
2193
|
v("use", {
|
|
2181
2194
|
"xlink:href": s.question.arrowsSvgIcon
|
|
2182
|
-
}, null, 8,
|
|
2195
|
+
}, null, 8, W1)
|
|
2183
2196
|
], 2))
|
|
2184
2197
|
], 2),
|
|
2185
2198
|
!s.unrankedItem && n.value ? (i(), a("div", {
|
|
@@ -2192,7 +2205,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2192
2205
|
(i(), a("svg", null, [
|
|
2193
2206
|
v("use", {
|
|
2194
2207
|
"xlink:href": s.question.dashSvgIcon
|
|
2195
|
-
}, null, 8,
|
|
2208
|
+
}, null, 8, F1)
|
|
2196
2209
|
]))
|
|
2197
2210
|
], 2)),
|
|
2198
2211
|
c(m, {
|
|
@@ -2202,9 +2215,9 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2202
2215
|
}, null, 8, ["is", "item", "cssClasses"])
|
|
2203
2216
|
], 2)
|
|
2204
2217
|
])
|
|
2205
|
-
], 42,
|
|
2218
|
+
], 42, P1));
|
|
2206
2219
|
}
|
|
2207
|
-
}),
|
|
2220
|
+
}), z1 = /* @__PURE__ */ y({
|
|
2208
2221
|
inheritAttrs: !1,
|
|
2209
2222
|
__name: "RankingItemContent",
|
|
2210
2223
|
props: {
|
|
@@ -2221,10 +2234,10 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2221
2234
|
}, null, 8, ["locString"])
|
|
2222
2235
|
], 2));
|
|
2223
2236
|
}
|
|
2224
|
-
}),
|
|
2237
|
+
}), U1 = ["role", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], Q1 = /* @__PURE__ */ v("legend", {
|
|
2225
2238
|
role: "presentation",
|
|
2226
2239
|
class: "sv-hidden"
|
|
2227
|
-
}, null, -1),
|
|
2240
|
+
}, null, -1), K1 = /* @__PURE__ */ y({
|
|
2228
2241
|
inheritAttrs: !1,
|
|
2229
2242
|
__name: "Rating",
|
|
2230
2243
|
props: {
|
|
@@ -2248,7 +2261,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2248
2261
|
"aria-invalid": o.question.a11y_input_ariaInvalid,
|
|
2249
2262
|
"aria-errormessage": o.question.a11y_input_ariaErrormessage
|
|
2250
2263
|
}, [
|
|
2251
|
-
|
|
2264
|
+
Q1,
|
|
2252
2265
|
o.question.hasMinLabel ? (i(), a("span", {
|
|
2253
2266
|
key: 0,
|
|
2254
2267
|
class: r(o.question.cssClasses.minText)
|
|
@@ -2258,7 +2271,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2258
2271
|
locString: o.question.locMinRateDescription
|
|
2259
2272
|
}, null, 8, ["locString"])
|
|
2260
2273
|
], 2)) : p("", !0),
|
|
2261
|
-
(i(!0), a(
|
|
2274
|
+
(i(!0), a(H, null, V(o.question.renderedRateItems, (l, d) => (i(), g(m, {
|
|
2262
2275
|
key: s(d),
|
|
2263
2276
|
is: o.question.itemComponent,
|
|
2264
2277
|
item: l,
|
|
@@ -2274,10 +2287,10 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2274
2287
|
locString: o.question.locMaxRateDescription
|
|
2275
2288
|
}, null, 8, ["locString"])
|
|
2276
2289
|
], 2)) : p("", !0)
|
|
2277
|
-
], 8,
|
|
2290
|
+
], 8, U1)
|
|
2278
2291
|
], 2));
|
|
2279
2292
|
}
|
|
2280
|
-
}),
|
|
2293
|
+
}), j1 = ["name", "id", "value", "disabled", "readonly", "aria-label"], G1 = ["data-text"], X1 = /* @__PURE__ */ y({
|
|
2281
2294
|
__name: "RatingItem",
|
|
2282
2295
|
props: {
|
|
2283
2296
|
question: {},
|
|
@@ -2301,7 +2314,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2301
2314
|
readonly: n.question.isReadOnlyAttr,
|
|
2302
2315
|
onClick: s[0] || (s[0] = (o) => n.question.setValueFromClick(o.target.value)),
|
|
2303
2316
|
"aria-label": n.question.ariaLabel
|
|
2304
|
-
}, null, 8,
|
|
2317
|
+
}, null, 8, j1),
|
|
2305
2318
|
v("span", {
|
|
2306
2319
|
class: r(n.question.cssClasses.itemText),
|
|
2307
2320
|
"data-text": n.item.text
|
|
@@ -2310,10 +2323,10 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2310
2323
|
is: "survey-string",
|
|
2311
2324
|
locString: n.item.locText
|
|
2312
2325
|
}, null, 8, ["locString"])
|
|
2313
|
-
], 10,
|
|
2326
|
+
], 10, G1)
|
|
2314
2327
|
], 34));
|
|
2315
2328
|
}
|
|
2316
|
-
}),
|
|
2329
|
+
}), J1 = ["title"], Y1 = ["name", "id", "value", "disabled", "readonly", "aria-label"], _1 = /* @__PURE__ */ y({
|
|
2317
2330
|
__name: "RatingItemSmiley",
|
|
2318
2331
|
props: {
|
|
2319
2332
|
question: {},
|
|
@@ -2341,15 +2354,15 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2341
2354
|
readonly: n.question.isReadOnlyAttr,
|
|
2342
2355
|
onClick: s[0] || (s[0] = (o) => n.question.setValueFromClick(o.target.value)),
|
|
2343
2356
|
"aria-label": n.question.ariaLabel
|
|
2344
|
-
}, null, 8,
|
|
2357
|
+
}, null, 8, Y1),
|
|
2345
2358
|
c(m, {
|
|
2346
2359
|
is: "sv-svg-icon",
|
|
2347
2360
|
iconName: n.question.getItemSmileyIconName(n.item.itemValue),
|
|
2348
2361
|
size: "auto"
|
|
2349
2362
|
}, null, 8, ["iconName"])
|
|
2350
|
-
], 46,
|
|
2363
|
+
], 46, J1));
|
|
2351
2364
|
}
|
|
2352
|
-
}),
|
|
2365
|
+
}), x1 = ["title"], en = ["name", "id", "value", "disabled", "readonly", "aria-label"], sn = /* @__PURE__ */ y({
|
|
2353
2366
|
__name: "RatingItemStar",
|
|
2354
2367
|
props: {
|
|
2355
2368
|
question: {},
|
|
@@ -2376,7 +2389,7 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2376
2389
|
readonly: n.question.isReadOnlyAttr,
|
|
2377
2390
|
onClick: s[0] || (s[0] = (o) => n.question.setValueFromClick((o == null ? void 0 : o.target).value)),
|
|
2378
2391
|
"aria-label": n.question.ariaLabel
|
|
2379
|
-
}, null, 8,
|
|
2392
|
+
}, null, 8, en),
|
|
2380
2393
|
c(m, {
|
|
2381
2394
|
is: "sv-svg-icon",
|
|
2382
2395
|
class: r("sv-star"),
|
|
@@ -2389,12 +2402,12 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2389
2402
|
iconName: n.question.itemStarIconAlt,
|
|
2390
2403
|
size: "auto"
|
|
2391
2404
|
}, null, 8, ["iconName"])
|
|
2392
|
-
], 42,
|
|
2405
|
+
], 42, x1));
|
|
2393
2406
|
}
|
|
2394
|
-
}),
|
|
2407
|
+
}), nn = { class: "sd-rating-dropdown-item" }, tn = { class: "sd-rating-dropdown-item_text" }, on = {
|
|
2395
2408
|
key: 0,
|
|
2396
2409
|
class: "sd-rating-dropdown-item_description"
|
|
2397
|
-
},
|
|
2410
|
+
}, rn = /* @__PURE__ */ y({
|
|
2398
2411
|
__name: "RatingDropdownItem",
|
|
2399
2412
|
props: {
|
|
2400
2413
|
item: {},
|
|
@@ -2402,9 +2415,9 @@ const y1 = /* @__PURE__ */ y({
|
|
|
2402
2415
|
},
|
|
2403
2416
|
setup(u) {
|
|
2404
2417
|
const e = u;
|
|
2405
|
-
return S(() => e.item), (n, s) => (i(), a("div",
|
|
2406
|
-
v("span",
|
|
2407
|
-
n.item.description ? (i(), a("div",
|
|
2418
|
+
return S(() => e.item), (n, s) => (i(), a("div", nn, [
|
|
2419
|
+
v("span", tn, I(n.item.title), 1),
|
|
2420
|
+
n.item.description ? (i(), a("div", on, [
|
|
2408
2421
|
c(m, {
|
|
2409
2422
|
is: "survey-string",
|
|
2410
2423
|
locString: n.item.description
|
|
@@ -2418,7 +2431,7 @@ G.Instance.registerRenderer(
|
|
|
2418
2431
|
"dropdown",
|
|
2419
2432
|
"sv-rating-dropdown"
|
|
2420
2433
|
);
|
|
2421
|
-
const
|
|
2434
|
+
const ln = /* @__PURE__ */ y({
|
|
2422
2435
|
inheritAttrs: !1,
|
|
2423
2436
|
__name: "RatingDropdown",
|
|
2424
2437
|
props: {
|
|
@@ -2437,7 +2450,7 @@ const on = /* @__PURE__ */ y({
|
|
|
2437
2450
|
}, null, 8, ["question"])
|
|
2438
2451
|
], 2));
|
|
2439
2452
|
}
|
|
2440
|
-
}),
|
|
2453
|
+
}), an = ["name", "value", "id", ".indeterminate", "disabled", "readonly", "role", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], un = /* @__PURE__ */ y({
|
|
2441
2454
|
inheritAttrs: !1,
|
|
2442
2455
|
__name: "BooleanSwitch",
|
|
2443
2456
|
props: {
|
|
@@ -2460,7 +2473,7 @@ const on = /* @__PURE__ */ y({
|
|
|
2460
2473
|
v("label", {
|
|
2461
2474
|
class: r(t.question.getItemCss())
|
|
2462
2475
|
}, [
|
|
2463
|
-
|
|
2476
|
+
Z(v("input", {
|
|
2464
2477
|
type: "checkbox",
|
|
2465
2478
|
name: t.question.name,
|
|
2466
2479
|
value: t.question.booleanValue ?? "",
|
|
@@ -2477,8 +2490,8 @@ const on = /* @__PURE__ */ y({
|
|
|
2477
2490
|
"aria-describedby": t.question.a11y_input_ariaDescribedBy,
|
|
2478
2491
|
"aria-invalid": t.question.a11y_input_ariaInvalid,
|
|
2479
2492
|
"aria-errormessage": t.question.a11y_input_ariaErrormessage
|
|
2480
|
-
}, null, 42,
|
|
2481
|
-
[
|
|
2493
|
+
}, null, 42, an), [
|
|
2494
|
+
[oe, t.question.booleanValue]
|
|
2482
2495
|
]),
|
|
2483
2496
|
v("div", {
|
|
2484
2497
|
class: r(t.question.cssClasses.sliderGhost),
|
|
@@ -2533,7 +2546,7 @@ G.Instance.registerRenderer(
|
|
|
2533
2546
|
"radio",
|
|
2534
2547
|
"sv-boolean-radio"
|
|
2535
2548
|
);
|
|
2536
|
-
const
|
|
2549
|
+
const dn = /* @__PURE__ */ y({
|
|
2537
2550
|
inheritAttrs: !1,
|
|
2538
2551
|
__name: "BooleanRadio",
|
|
2539
2552
|
props: {
|
|
@@ -2574,7 +2587,7 @@ const an = /* @__PURE__ */ y({
|
|
|
2574
2587
|
], 2)
|
|
2575
2588
|
], 2));
|
|
2576
2589
|
}
|
|
2577
|
-
}),
|
|
2590
|
+
}), mn = ["name", "value", "checked", "aria-errormessage", "disabled", "readonly"], pn = ["xlink:href"], vn = /* @__PURE__ */ y({
|
|
2578
2591
|
__name: "BooleanRadioItem",
|
|
2579
2592
|
props: {
|
|
2580
2593
|
question: {},
|
|
@@ -2603,7 +2616,7 @@ const an = /* @__PURE__ */ y({
|
|
|
2603
2616
|
readonly: s.question.isReadOnlyAttr,
|
|
2604
2617
|
class: r(s.question.cssClasses.itemRadioControl),
|
|
2605
2618
|
onChange: n
|
|
2606
|
-
}, null, 42,
|
|
2619
|
+
}, null, 42, mn),
|
|
2607
2620
|
s.question.cssClasses.materialRadioDecorator ? (i(), a("span", {
|
|
2608
2621
|
key: 0,
|
|
2609
2622
|
class: r(s.question.cssClasses.materialRadioDecorator)
|
|
@@ -2614,7 +2627,7 @@ const an = /* @__PURE__ */ y({
|
|
|
2614
2627
|
}, [
|
|
2615
2628
|
v("use", {
|
|
2616
2629
|
"xlink:href": s.question.itemSvgIcon
|
|
2617
|
-
}, null, 8,
|
|
2630
|
+
}, null, 8, pn)
|
|
2618
2631
|
], 2)) : p("", !0)
|
|
2619
2632
|
], 2)) : p("", !0),
|
|
2620
2633
|
v("span", {
|
|
@@ -2628,13 +2641,13 @@ const an = /* @__PURE__ */ y({
|
|
|
2628
2641
|
], 2)
|
|
2629
2642
|
], 2));
|
|
2630
2643
|
}
|
|
2631
|
-
}),
|
|
2644
|
+
}), Cn = ["name", "value", "id", ".indeterminate", "disabled", "readonly", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], cn = ["xlink:href"], gn = /* @__PURE__ */ v("span", { class: "check" }, null, -1), yn = ["id"], hn = ["id"];
|
|
2632
2645
|
G.Instance.registerRenderer(
|
|
2633
2646
|
"boolean",
|
|
2634
2647
|
"checkbox",
|
|
2635
2648
|
"sv-boolean-checkbox"
|
|
2636
2649
|
);
|
|
2637
|
-
const
|
|
2650
|
+
const qn = /* @__PURE__ */ y({
|
|
2638
2651
|
inheritAttrs: !1,
|
|
2639
2652
|
__name: "BooleanCheckbox",
|
|
2640
2653
|
props: {
|
|
@@ -2654,7 +2667,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2654
2667
|
v("label", {
|
|
2655
2668
|
class: r(s.question.cssClasses.checkboxLabel)
|
|
2656
2669
|
}, [
|
|
2657
|
-
|
|
2670
|
+
Z(v("input", {
|
|
2658
2671
|
type: "checkbox",
|
|
2659
2672
|
name: s.question.name,
|
|
2660
2673
|
value: s.question.booleanValue ?? "",
|
|
@@ -2670,8 +2683,8 @@ const yn = /* @__PURE__ */ y({
|
|
|
2670
2683
|
"aria-describedby": s.question.a11y_input_ariaDescribedBy,
|
|
2671
2684
|
"aria-invalid": s.question.a11y_input_ariaInvalid,
|
|
2672
2685
|
"aria-errormessage": s.question.a11y_input_ariaErrormessage
|
|
2673
|
-
}, null, 42,
|
|
2674
|
-
[
|
|
2686
|
+
}, null, 42, Cn), [
|
|
2687
|
+
[oe, s.question.booleanValue]
|
|
2675
2688
|
]),
|
|
2676
2689
|
v("span", {
|
|
2677
2690
|
class: r(s.question.cssClasses.checkboxMaterialDecorator)
|
|
@@ -2682,9 +2695,9 @@ const yn = /* @__PURE__ */ y({
|
|
|
2682
2695
|
}, [
|
|
2683
2696
|
v("use", {
|
|
2684
2697
|
"xlink:href": s.question.svgIcon
|
|
2685
|
-
}, null, 8,
|
|
2698
|
+
}, null, 8, cn)
|
|
2686
2699
|
], 2)) : p("", !0),
|
|
2687
|
-
|
|
2700
|
+
gn
|
|
2688
2701
|
], 2),
|
|
2689
2702
|
s.question.isLabelRendered ? (i(), a("span", {
|
|
2690
2703
|
key: 0,
|
|
@@ -2703,7 +2716,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2703
2716
|
element: s.question,
|
|
2704
2717
|
css: s.css
|
|
2705
2718
|
}, null, 8, ["element", "css"])) : p("", !0)
|
|
2706
|
-
], 10,
|
|
2719
|
+
], 10, yn)) : p("", !0)
|
|
2707
2720
|
], 2),
|
|
2708
2721
|
s.question.canRenderLabelDescription ? (i(), a("div", {
|
|
2709
2722
|
key: 0,
|
|
@@ -2714,32 +2727,32 @@ const yn = /* @__PURE__ */ y({
|
|
|
2714
2727
|
is: "survey-string",
|
|
2715
2728
|
locString: s.question.locDescription
|
|
2716
2729
|
}, null, 8, ["locString"])
|
|
2717
|
-
], 10,
|
|
2730
|
+
], 10, hn)) : p("", !0)
|
|
2718
2731
|
], 2)
|
|
2719
2732
|
], 2));
|
|
2720
2733
|
}
|
|
2721
|
-
}),
|
|
2734
|
+
}), wn = /* @__PURE__ */ y({
|
|
2722
2735
|
inheritAttrs: !1,
|
|
2723
2736
|
__name: "Multipletext",
|
|
2724
2737
|
props: {
|
|
2725
2738
|
question: {}
|
|
2726
2739
|
},
|
|
2727
2740
|
setup(u) {
|
|
2728
|
-
const e = u, n = f(null), s =
|
|
2741
|
+
const e = u, n = f(null), s = se(() => e.question.getRows());
|
|
2729
2742
|
return T(e, n), (o, t) => (i(), a("table", {
|
|
2730
2743
|
class: r(o.question.getQuestionRootCss()),
|
|
2731
2744
|
ref_key: "root",
|
|
2732
2745
|
ref: n
|
|
2733
2746
|
}, [
|
|
2734
2747
|
v("tbody", null, [
|
|
2735
|
-
(i(!0), a(
|
|
2748
|
+
(i(!0), a(H, null, V(w(s), (l, d) => (i(), a(H, {
|
|
2736
2749
|
key: o.question.inputId + "rowkey" + d
|
|
2737
2750
|
}, [
|
|
2738
2751
|
l.isVisible ? (i(), a("tr", {
|
|
2739
2752
|
key: 0,
|
|
2740
2753
|
class: r(o.question.cssClasses.row)
|
|
2741
2754
|
}, [
|
|
2742
|
-
(i(!0), a(
|
|
2755
|
+
(i(!0), a(H, null, V(l.cells, (C) => (i(), a("td", {
|
|
2743
2756
|
key: "item" + C.item.editor.id,
|
|
2744
2757
|
class: r(C.className)
|
|
2745
2758
|
}, [
|
|
@@ -2754,16 +2767,16 @@ const yn = /* @__PURE__ */ y({
|
|
|
2754
2767
|
])
|
|
2755
2768
|
], 2));
|
|
2756
2769
|
}
|
|
2757
|
-
}),
|
|
2770
|
+
}), bn = { key: 1 }, Ln = { key: 2 }, kn = /* @__PURE__ */ y({
|
|
2758
2771
|
__name: "MultipletextItem",
|
|
2759
2772
|
props: {
|
|
2760
2773
|
question: {},
|
|
2761
2774
|
cell: {}
|
|
2762
2775
|
},
|
|
2763
2776
|
setup(u) {
|
|
2764
|
-
const e = u, n = (o) =>
|
|
2777
|
+
const e = u, n = (o) => ie(o);
|
|
2765
2778
|
S(() => e.cell.item.editor);
|
|
2766
|
-
const s =
|
|
2779
|
+
const s = M(() => e.cell.item);
|
|
2767
2780
|
return (o, t) => o.cell.isErrorsCell ? (i(), g(m, {
|
|
2768
2781
|
key: 1,
|
|
2769
2782
|
is: "survey-errors",
|
|
@@ -2783,12 +2796,12 @@ const yn = /* @__PURE__ */ y({
|
|
|
2783
2796
|
key: 0,
|
|
2784
2797
|
class: r(o.question.cssClasses.requiredMark)
|
|
2785
2798
|
}, I(s.value.editor.requiredMark), 3)) : p("", !0),
|
|
2786
|
-
s.value.editor.isRequireTextBeforeTitle || s.value.editor.isRequireTextOnStart ? (i(), a("span",
|
|
2799
|
+
s.value.editor.isRequireTextBeforeTitle || s.value.editor.isRequireTextOnStart ? (i(), a("span", bn, " ")) : p("", !0),
|
|
2787
2800
|
c(m, {
|
|
2788
2801
|
is: "survey-string",
|
|
2789
2802
|
locString: s.value.locTitle
|
|
2790
2803
|
}, null, 8, ["locString"]),
|
|
2791
|
-
s.value.editor.isRequireTextAfterTitle ? (i(), a("span",
|
|
2804
|
+
s.value.editor.isRequireTextAfterTitle ? (i(), a("span", Ln, " ")) : p("", !0),
|
|
2792
2805
|
s.value.editor.isRequireTextAfterTitle ? (i(), a("span", {
|
|
2793
2806
|
key: 3,
|
|
2794
2807
|
"aria-hidden": "true",
|
|
@@ -2807,7 +2820,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2807
2820
|
], 34))
|
|
2808
2821
|
], 2));
|
|
2809
2822
|
}
|
|
2810
|
-
}),
|
|
2823
|
+
}), fn = /* @__PURE__ */ y({
|
|
2811
2824
|
inheritAttrs: !1,
|
|
2812
2825
|
__name: "Breadcrumbs",
|
|
2813
2826
|
props: {
|
|
@@ -2820,7 +2833,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2820
2833
|
key: 0,
|
|
2821
2834
|
class: r(n.css.breadcrumbsRoot)
|
|
2822
2835
|
}, [
|
|
2823
|
-
(i(!0), a(
|
|
2836
|
+
(i(!0), a(H, null, V(n.model.actions, (o, t) => (i(), a(H, {
|
|
2824
2837
|
key: o.renderedId
|
|
2825
2838
|
}, [
|
|
2826
2839
|
t ? (i(), g(m, {
|
|
@@ -2837,21 +2850,21 @@ const yn = /* @__PURE__ */ y({
|
|
|
2837
2850
|
], 64))), 128))
|
|
2838
2851
|
], 2)) : p("", !0);
|
|
2839
2852
|
}
|
|
2840
|
-
}),
|
|
2853
|
+
}), Hn = ["onClick", "title"], Mn = ["onClick", "title"], In = { key: 1 }, Vn = { key: 1 }, Sn = /* @__PURE__ */ y({
|
|
2841
2854
|
__name: "SingleInputSummary",
|
|
2842
2855
|
props: {
|
|
2843
2856
|
summary: {},
|
|
2844
2857
|
css: {}
|
|
2845
2858
|
},
|
|
2846
2859
|
setup(u) {
|
|
2847
|
-
const e = u, n =
|
|
2848
|
-
return (o, t) => o.summary.isEmpty() ? (i(), a("div",
|
|
2860
|
+
const e = u, n = M(() => "survey-placeholder-" + e.summary.question.getTemplate()), s = M(() => F.Instance.isComponentRegistered(n.value));
|
|
2861
|
+
return (o, t) => o.summary.isEmpty() ? (i(), a("div", In, [
|
|
2849
2862
|
s.value ? (i(), g(m, {
|
|
2850
2863
|
key: 0,
|
|
2851
2864
|
is: "survey-placeholder-" + o.summary.question.getTemplate(),
|
|
2852
2865
|
cssClasses: o.css,
|
|
2853
2866
|
question: o.summary.question
|
|
2854
|
-
}, null, 8, ["is", "cssClasses", "question"])) : (i(), a("div",
|
|
2867
|
+
}, null, 8, ["is", "cssClasses", "question"])) : (i(), a("div", Vn, [
|
|
2855
2868
|
c(m, {
|
|
2856
2869
|
is: "survey-string",
|
|
2857
2870
|
locString: o.summary.noEntry
|
|
@@ -2861,7 +2874,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2861
2874
|
key: 0,
|
|
2862
2875
|
class: r(o.css.summary)
|
|
2863
2876
|
}, [
|
|
2864
|
-
(i(!0), a(
|
|
2877
|
+
(i(!0), a(H, null, V(o.summary.items, (l, d) => (i(), a("div", {
|
|
2865
2878
|
key: d,
|
|
2866
2879
|
class: r(o.css.summaryRow)
|
|
2867
2880
|
}, [
|
|
@@ -2887,7 +2900,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2887
2900
|
iconName: "icon-editsmall-16x16",
|
|
2888
2901
|
size: "auto"
|
|
2889
2902
|
})
|
|
2890
|
-
], 10,
|
|
2903
|
+
], 10, Hn)) : p("", !0),
|
|
2891
2904
|
l.showRemove && l.btnRemove ? (i(), a("button", {
|
|
2892
2905
|
key: 1,
|
|
2893
2906
|
class: r(o.css.summaryRowActionDelete),
|
|
@@ -2899,12 +2912,12 @@ const yn = /* @__PURE__ */ y({
|
|
|
2899
2912
|
iconName: "icon-delete-16x16",
|
|
2900
2913
|
size: "auto"
|
|
2901
2914
|
})
|
|
2902
|
-
], 10,
|
|
2915
|
+
], 10, Mn)) : p("", !0)
|
|
2903
2916
|
], 2)
|
|
2904
2917
|
], 2))), 128))
|
|
2905
2918
|
], 2));
|
|
2906
2919
|
}
|
|
2907
|
-
}),
|
|
2920
|
+
}), Rn = ["min", "max", "step"], Tn = ["id", "value", "min", "max", "step", "disabled", "onInput", "onFocus", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], Bn = /* @__PURE__ */ y({
|
|
2908
2921
|
inheritAttrs: !1,
|
|
2909
2922
|
__name: "Slider",
|
|
2910
2923
|
props: {
|
|
@@ -2912,7 +2925,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2912
2925
|
},
|
|
2913
2926
|
setup(u) {
|
|
2914
2927
|
const e = u, n = f(null), s = f(null);
|
|
2915
|
-
return T(e, n),
|
|
2928
|
+
return T(e, n), B(() => {
|
|
2916
2929
|
e.question.refreshInputRange(s.value);
|
|
2917
2930
|
}), (o, t) => (i(), a("div", {
|
|
2918
2931
|
class: r(o.question.rootCss),
|
|
@@ -2941,7 +2954,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2941
2954
|
onPointerup: t[2] || (t[2] = (l) => {
|
|
2942
2955
|
o.question.handleRangePointerUp(l, n.value);
|
|
2943
2956
|
})
|
|
2944
|
-
}, null, 42,
|
|
2957
|
+
}, null, 42, Rn)) : p("", !0),
|
|
2945
2958
|
v("div", {
|
|
2946
2959
|
class: r(o.question.cssClasses.visualContainer),
|
|
2947
2960
|
onPointerup: t[8] || (t[8] = (l) => {
|
|
@@ -2963,7 +2976,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
2963
2976
|
class: r(o.question.cssClasses.rangeTrack),
|
|
2964
2977
|
style: k({ left: o.question.getTrackPercentLeft() + "%", right: o.question.getTrackPercentRight() + "%" })
|
|
2965
2978
|
}, null, 6),
|
|
2966
|
-
(i(!0), a(
|
|
2979
|
+
(i(!0), a(H, null, V(o.question.renderedValue, (l, d) => (i(), a(H, { key: d }, [
|
|
2967
2980
|
v("input", {
|
|
2968
2981
|
class: r(o.question.cssClasses.input),
|
|
2969
2982
|
id: "sjs-slider-input-" + d,
|
|
@@ -3000,7 +3013,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3000
3013
|
"aria-describedby": o.question.a11y_input_ariaDescribedBy,
|
|
3001
3014
|
"aria-invalid": o.question.a11y_input_ariaInvalid,
|
|
3002
3015
|
"aria-errormessage": o.question.a11y_input_ariaErrormessage
|
|
3003
|
-
}, null, 42,
|
|
3016
|
+
}, null, 42, Tn),
|
|
3004
3017
|
v("div", {
|
|
3005
3018
|
class: r(o.question.getThumbContainerCss(d)),
|
|
3006
3019
|
style: k({ left: o.question.getPercent(l) + "%" })
|
|
@@ -3033,7 +3046,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3033
3046
|
class: r(o.question.cssClasses.labelsContainer)
|
|
3034
3047
|
}, [
|
|
3035
3048
|
v("div", null, [
|
|
3036
|
-
(i(!0), a(
|
|
3049
|
+
(i(!0), a(H, null, V(o.question.renderedLabels, (l) => (i(), g(m, {
|
|
3037
3050
|
key: l.id,
|
|
3038
3051
|
is: "sv-slider-label-item",
|
|
3039
3052
|
item: l,
|
|
@@ -3043,7 +3056,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3043
3056
|
], 2)) : p("", !0)
|
|
3044
3057
|
], 2));
|
|
3045
3058
|
}
|
|
3046
|
-
}),
|
|
3059
|
+
}), Zn = /* @__PURE__ */ y({
|
|
3047
3060
|
__name: "SliderLabelItem",
|
|
3048
3061
|
props: {
|
|
3049
3062
|
question: {},
|
|
@@ -3071,10 +3084,10 @@ const yn = /* @__PURE__ */ y({
|
|
|
3071
3084
|
], 2)
|
|
3072
3085
|
], 38));
|
|
3073
3086
|
}
|
|
3074
|
-
}),
|
|
3087
|
+
}), $n = { role: "radiogroup" }, Dn = { class: "sv-visuallyhidden" }, An = {
|
|
3075
3088
|
key: 0,
|
|
3076
3089
|
role: "presentation"
|
|
3077
|
-
},
|
|
3090
|
+
}, Pn = { key: 0 }, Nn = ["onClick"], En = ["data-responsive-title", "onClick"], Wn = /* @__PURE__ */ y({
|
|
3078
3091
|
inheritAttrs: !1,
|
|
3079
3092
|
__name: "Matrix",
|
|
3080
3093
|
props: {
|
|
@@ -3096,23 +3109,23 @@ const yn = /* @__PURE__ */ y({
|
|
|
3096
3109
|
}
|
|
3097
3110
|
);
|
|
3098
3111
|
const o = (t, l) => {
|
|
3099
|
-
t.
|
|
3112
|
+
t.cellClick(l);
|
|
3100
3113
|
};
|
|
3101
3114
|
return (t, l) => (i(), a("div", {
|
|
3102
3115
|
class: r(t.question.cssClasses.tableWrapper),
|
|
3103
3116
|
ref_key: "root",
|
|
3104
3117
|
ref: n
|
|
3105
3118
|
}, [
|
|
3106
|
-
v("fieldset",
|
|
3107
|
-
v("legend",
|
|
3119
|
+
v("fieldset", $n, [
|
|
3120
|
+
v("legend", Dn, I(t.question.locTitle.renderedHtml), 1),
|
|
3108
3121
|
v("table", {
|
|
3109
3122
|
class: r(t.question.getTableCss()),
|
|
3110
3123
|
role: "presentation"
|
|
3111
3124
|
}, [
|
|
3112
|
-
t.question.showHeader ? (i(), a("thead",
|
|
3125
|
+
t.question.showHeader ? (i(), a("thead", An, [
|
|
3113
3126
|
v("tr", null, [
|
|
3114
|
-
t.question.hasRows ? (i(), a("td",
|
|
3115
|
-
(i(!0), a(
|
|
3127
|
+
t.question.hasRows ? (i(), a("td", Pn)) : p("", !0),
|
|
3128
|
+
(i(!0), a(H, null, V(t.question.visibleColumns, (d, C) => (i(), a("th", {
|
|
3116
3129
|
key: C,
|
|
3117
3130
|
class: r(t.question.cssClasses.headerCell),
|
|
3118
3131
|
style: k({
|
|
@@ -3136,11 +3149,11 @@ const yn = /* @__PURE__ */ y({
|
|
|
3136
3149
|
])
|
|
3137
3150
|
])) : p("", !0),
|
|
3138
3151
|
v("tbody", null, [
|
|
3139
|
-
(i(!0), a(
|
|
3152
|
+
(i(!0), a(H, null, V(s.value, (d, C) => (i(), a("tr", {
|
|
3140
3153
|
key: "row_" + d.name + "_" + C,
|
|
3141
3154
|
class: r(d.rowClasses || void 0)
|
|
3142
3155
|
}, [
|
|
3143
|
-
|
|
3156
|
+
Z(v("td", {
|
|
3144
3157
|
class: r(d.rowTextClasses),
|
|
3145
3158
|
style: k({
|
|
3146
3159
|
minWidth: t.question.rowTitleWidth,
|
|
@@ -3162,7 +3175,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3162
3175
|
], 6), [
|
|
3163
3176
|
[A, t.question.hasRows]
|
|
3164
3177
|
]),
|
|
3165
|
-
t.question.hasCellText ? (i(!0), a(
|
|
3178
|
+
t.question.hasCellText ? (i(!0), a(H, { key: 0 }, V(t.question.visibleColumns, (L, h) => (i(), a("td", {
|
|
3166
3179
|
key: h,
|
|
3167
3180
|
class: r(t.question.getItemClass(d, L)),
|
|
3168
3181
|
onClick: (q) => o(d, L)
|
|
@@ -3171,8 +3184,8 @@ const yn = /* @__PURE__ */ y({
|
|
|
3171
3184
|
is: "survey-string",
|
|
3172
3185
|
locString: t.question.getCellDisplayLocText(d.name, L)
|
|
3173
3186
|
}, null, 8, ["locString"])
|
|
3174
|
-
], 10,
|
|
3175
|
-
t.question.hasCellText ? p("", !0) : (i(!0), a(
|
|
3187
|
+
], 10, Nn))), 128)) : p("", !0),
|
|
3188
|
+
t.question.hasCellText ? p("", !0) : (i(!0), a(H, { key: 1 }, V(t.question.visibleColumns, (L, h) => (i(), a("td", {
|
|
3176
3189
|
key: h,
|
|
3177
3190
|
"data-responsive-title": L.locText.renderedHtml,
|
|
3178
3191
|
class: r(t.question.cssClasses.cell),
|
|
@@ -3185,14 +3198,14 @@ const yn = /* @__PURE__ */ y({
|
|
|
3185
3198
|
column: L,
|
|
3186
3199
|
columnIndex: h
|
|
3187
3200
|
}, null, 8, ["is", "question", "row", "column", "columnIndex"])
|
|
3188
|
-
], 10,
|
|
3201
|
+
], 10, En))), 128))
|
|
3189
3202
|
], 2))), 128))
|
|
3190
3203
|
])
|
|
3191
3204
|
], 2)
|
|
3192
3205
|
])
|
|
3193
3206
|
], 2));
|
|
3194
3207
|
}
|
|
3195
|
-
}),
|
|
3208
|
+
}), Fn = ["data-sv-drop-target-matrix-row"], On = /* @__PURE__ */ y({
|
|
3196
3209
|
__name: "MatrixRow",
|
|
3197
3210
|
props: {
|
|
3198
3211
|
question: {},
|
|
@@ -3207,7 +3220,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3207
3220
|
t && t.setRootElement(void 0), o.setRootElement(n.value);
|
|
3208
3221
|
}
|
|
3209
3222
|
);
|
|
3210
|
-
return
|
|
3223
|
+
return B(() => {
|
|
3211
3224
|
e.row.setRootElement(n.value);
|
|
3212
3225
|
}), P(() => {
|
|
3213
3226
|
e.row.setRootElement(void 0), s();
|
|
@@ -3219,15 +3232,15 @@ const yn = /* @__PURE__ */ y({
|
|
|
3219
3232
|
ref_key: "root",
|
|
3220
3233
|
ref: n
|
|
3221
3234
|
}, [
|
|
3222
|
-
(i(!0), a(
|
|
3235
|
+
(i(!0), a(H, null, V(o.row.cells, (l) => (i(), g(m, {
|
|
3223
3236
|
is: "survey-matrixdropdown-cell",
|
|
3224
3237
|
cell: l,
|
|
3225
3238
|
question: o.question,
|
|
3226
3239
|
key: o.row.id + "_" + l.id
|
|
3227
3240
|
}, null, 8, ["cell", "question"]))), 128))
|
|
3228
|
-
], 42,
|
|
3241
|
+
], 42, Fn)) : p("", !0);
|
|
3229
3242
|
}
|
|
3230
|
-
}),
|
|
3243
|
+
}), zn = ["type", "name", "value", "readonly", "disabled", "id", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], Un = ["xlink:href"], Qn = /* @__PURE__ */ y({
|
|
3231
3244
|
inheritAttrs: !1,
|
|
3232
3245
|
__name: "MatrixCell",
|
|
3233
3246
|
props: {
|
|
@@ -3237,59 +3250,53 @@ const yn = /* @__PURE__ */ y({
|
|
|
3237
3250
|
columnIndex: {}
|
|
3238
3251
|
},
|
|
3239
3252
|
setup(u) {
|
|
3240
|
-
const e = u, n =
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
}
|
|
3248
|
-
});
|
|
3249
|
-
return (s, o) => (i(), a("label", {
|
|
3250
|
-
onMousedown: o[1] || (o[1] = (t) => s.question.onMouseDown()),
|
|
3251
|
-
class: r(s.question.getItemClass(s.row, s.column))
|
|
3253
|
+
const e = u, n = e.row.isChecked(e.column) ? e.column.value : "", s = () => {
|
|
3254
|
+
const t = e.row, l = e.column;
|
|
3255
|
+
t.cellClick(l);
|
|
3256
|
+
}, o = M(() => e.question.getItemSvgIcon(e.row, e.column));
|
|
3257
|
+
return (t, l) => (i(), a("label", {
|
|
3258
|
+
onMousedown: l[1] || (l[1] = (d) => t.question.onMouseDown()),
|
|
3259
|
+
class: r(t.question.getItemClass(t.row, t.column))
|
|
3252
3260
|
}, [
|
|
3253
|
-
|
|
3254
|
-
type:
|
|
3255
|
-
class: r(
|
|
3256
|
-
name:
|
|
3257
|
-
"onUpdate:modelValue":
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
"aria-
|
|
3264
|
-
"aria-
|
|
3265
|
-
"aria-
|
|
3266
|
-
|
|
3267
|
-
|
|
3261
|
+
Z(v("input", {
|
|
3262
|
+
type: t.question.checkType,
|
|
3263
|
+
class: r(t.question.cssItemValue),
|
|
3264
|
+
name: t.row.fullName,
|
|
3265
|
+
"onUpdate:modelValue": l[0] || (l[0] = (d) => ge(n) ? n.value = d : null),
|
|
3266
|
+
onChange: s,
|
|
3267
|
+
value: t.column.value,
|
|
3268
|
+
readonly: t.row.isReadOnlyAttr,
|
|
3269
|
+
disabled: t.row.isDisabledAttr,
|
|
3270
|
+
id: t.question.inputId + "_" + t.row.name + "_" + t.columnIndex,
|
|
3271
|
+
"aria-required": t.question.a11y_input_ariaRequired,
|
|
3272
|
+
"aria-label": t.question.getCellAriaLabel(t.row, t.column),
|
|
3273
|
+
"aria-invalid": t.question.a11y_input_ariaInvalid,
|
|
3274
|
+
"aria-errormessage": t.question.a11y_input_ariaErrormessage
|
|
3275
|
+
}, null, 42, zn), [
|
|
3276
|
+
[$e, w(n)]
|
|
3268
3277
|
]),
|
|
3269
3278
|
v("span", {
|
|
3270
|
-
class: r(
|
|
3279
|
+
class: r(t.question.cssMaterialDecorator)
|
|
3271
3280
|
}, [
|
|
3272
|
-
|
|
3281
|
+
o.value ? (i(), a("svg", {
|
|
3273
3282
|
key: 0,
|
|
3274
|
-
class: r(
|
|
3283
|
+
class: r(t.question.cssItemDecorator)
|
|
3275
3284
|
}, [
|
|
3276
|
-
v("use", {
|
|
3277
|
-
"xlink:href": s.question.itemSvgIcon
|
|
3278
|
-
}, null, 8, On)
|
|
3285
|
+
v("use", { "xlink:href": o.value }, null, 8, Un)
|
|
3279
3286
|
], 2)) : p("", !0)
|
|
3280
3287
|
], 2),
|
|
3281
|
-
|
|
3288
|
+
t.question.isMobile ? (i(), a("span", {
|
|
3282
3289
|
key: 0,
|
|
3283
|
-
class: r(
|
|
3290
|
+
class: r(t.question.cssClasses.cellResponsiveTitle)
|
|
3284
3291
|
}, [
|
|
3285
3292
|
c(m, {
|
|
3286
3293
|
is: "survey-string",
|
|
3287
|
-
locString:
|
|
3294
|
+
locString: t.column.locText
|
|
3288
3295
|
}, null, 8, ["locString"])
|
|
3289
3296
|
], 2)) : p("", !0)
|
|
3290
3297
|
], 34));
|
|
3291
3298
|
}
|
|
3292
|
-
}),
|
|
3299
|
+
}), Kn = /* @__PURE__ */ y({
|
|
3293
3300
|
inheritAttrs: !1,
|
|
3294
3301
|
__name: "MatrixDropdown",
|
|
3295
3302
|
props: {
|
|
@@ -3304,13 +3311,13 @@ const yn = /* @__PURE__ */ y({
|
|
|
3304
3311
|
ref: n
|
|
3305
3312
|
}, null, 8, ["question"]));
|
|
3306
3313
|
}
|
|
3307
|
-
}),
|
|
3314
|
+
}), jn = { key: 0 }, Gn = { key: 1 }, Xn = /* @__PURE__ */ y({
|
|
3308
3315
|
__name: "MatrixTable",
|
|
3309
3316
|
props: {
|
|
3310
3317
|
question: {}
|
|
3311
3318
|
},
|
|
3312
3319
|
setup(u) {
|
|
3313
|
-
const e = u, n =
|
|
3320
|
+
const e = u, n = M(() => e.question.renderedTable);
|
|
3314
3321
|
return S(() => n.value), (s, o) => (i(), a("div", {
|
|
3315
3322
|
style: k({ overflowX: s.question.showHorizontalScroll ? "scroll" : "" }),
|
|
3316
3323
|
class: r(s.question.cssClasses.tableWrapper)
|
|
@@ -3318,9 +3325,9 @@ const yn = /* @__PURE__ */ y({
|
|
|
3318
3325
|
v("table", {
|
|
3319
3326
|
class: r(s.question.getTableCss())
|
|
3320
3327
|
}, [
|
|
3321
|
-
n.value.showHeader ? (i(), a("thead",
|
|
3328
|
+
n.value.showHeader ? (i(), a("thead", jn, [
|
|
3322
3329
|
v("tr", null, [
|
|
3323
|
-
(i(!0), a(
|
|
3330
|
+
(i(!0), a(H, null, V(n.value.headerRow.cells, (t) => (i(), a(H, null, [
|
|
3324
3331
|
t.hasTitle ? (i(), a("th", {
|
|
3325
3332
|
key: "header_" + t.id,
|
|
3326
3333
|
class: r(t.className),
|
|
@@ -3354,16 +3361,16 @@ const yn = /* @__PURE__ */ y({
|
|
|
3354
3361
|
])
|
|
3355
3362
|
])) : p("", !0),
|
|
3356
3363
|
v("tbody", null, [
|
|
3357
|
-
(i(!0), a(
|
|
3364
|
+
(i(!0), a(H, null, V(n.value.renderedRows, (t) => (i(), g(m, {
|
|
3358
3365
|
key: s.question.inputId + "_" + t.id,
|
|
3359
3366
|
is: "survey-matrix-row",
|
|
3360
3367
|
row: t,
|
|
3361
3368
|
question: s.question
|
|
3362
3369
|
}, null, 8, ["row", "question"]))), 128))
|
|
3363
3370
|
]),
|
|
3364
|
-
n.value.showFooter ? (i(), a("tfoot",
|
|
3371
|
+
n.value.showFooter ? (i(), a("tfoot", Gn, [
|
|
3365
3372
|
v("tr", null, [
|
|
3366
|
-
(i(!0), a(
|
|
3373
|
+
(i(!0), a(H, null, V(n.value.footerRow.cells, (t, l) => (i(), g(m, {
|
|
3367
3374
|
is: "survey-matrixdropdown-cell",
|
|
3368
3375
|
cell: t,
|
|
3369
3376
|
question: s.question,
|
|
@@ -3374,7 +3381,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3374
3381
|
], 2)
|
|
3375
3382
|
], 6));
|
|
3376
3383
|
}
|
|
3377
|
-
}),
|
|
3384
|
+
}), Jn = /* @__PURE__ */ v("span", null, " ", -1), Yn = /* @__PURE__ */ y({
|
|
3378
3385
|
__name: "MatrixHeaderRequired",
|
|
3379
3386
|
props: {
|
|
3380
3387
|
question: {},
|
|
@@ -3382,15 +3389,15 @@ const yn = /* @__PURE__ */ y({
|
|
|
3382
3389
|
},
|
|
3383
3390
|
setup(u) {
|
|
3384
3391
|
const e = u;
|
|
3385
|
-
return S(() => e.column), (n, s) => n.column.isRenderedRequired ? (i(), a(
|
|
3386
|
-
|
|
3392
|
+
return S(() => e.column), (n, s) => n.column.isRenderedRequired ? (i(), a(H, { key: 0 }, [
|
|
3393
|
+
Jn,
|
|
3387
3394
|
n.column.isRenderedRequired ? (i(), a("span", {
|
|
3388
3395
|
key: 0,
|
|
3389
3396
|
class: r(n.question.cssClasses.cellRequiredMark)
|
|
3390
3397
|
}, I(n.column.requiredMark), 3)) : p("", !0)
|
|
3391
3398
|
], 64)) : p("", !0);
|
|
3392
3399
|
}
|
|
3393
|
-
}),
|
|
3400
|
+
}), _n = ["title", "colspan"], xn = /* @__PURE__ */ y({
|
|
3394
3401
|
__name: "MatrixDropdownCellComp",
|
|
3395
3402
|
props: {
|
|
3396
3403
|
question: {},
|
|
@@ -3399,8 +3406,8 @@ const yn = /* @__PURE__ */ y({
|
|
|
3399
3406
|
setup(u) {
|
|
3400
3407
|
const e = u, n = f(!1), s = f(), o = () => e.cell.width || e.cell.minWidth ? { width: e.cell.width, minWidth: e.cell.minWidth } : null, t = () => e.cell.question.parentQuestion.getCellAriaLabel(e.cell.row, e.cell.column), l = () => {
|
|
3401
3408
|
!e.cell.hasQuestion || !e.question || !e.question.survey || (n.value = e.cell.question.isVisible);
|
|
3402
|
-
}, d = (h) =>
|
|
3403
|
-
l(),
|
|
3409
|
+
}, d = (h) => ie(h);
|
|
3410
|
+
l(), B(() => {
|
|
3404
3411
|
if (!e.cell.hasQuestion || !e.question || !e.question.survey)
|
|
3405
3412
|
return;
|
|
3406
3413
|
e.cell.question.registerPropertyChangedHandlers(["isVisible"], () => {
|
|
@@ -3415,7 +3422,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3415
3422
|
};
|
|
3416
3423
|
e.question.survey.matrixAfterCellRender(b), q && q.afterRenderCore(h);
|
|
3417
3424
|
});
|
|
3418
|
-
const C =
|
|
3425
|
+
const C = M(() => {
|
|
3419
3426
|
const h = e.cell;
|
|
3420
3427
|
if (h.hasPanel) {
|
|
3421
3428
|
const q = h.panel, b = q.survey;
|
|
@@ -3426,7 +3433,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3426
3433
|
}
|
|
3427
3434
|
return "survey-panel";
|
|
3428
3435
|
}
|
|
3429
|
-
}), L =
|
|
3436
|
+
}), L = M(() => {
|
|
3430
3437
|
if (e.cell.hasPanel) {
|
|
3431
3438
|
const q = e.cell.panel, b = q.survey;
|
|
3432
3439
|
let R;
|
|
@@ -3484,7 +3491,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3484
3491
|
question: h.cell.matrix
|
|
3485
3492
|
}, null, 8, ["column", "question"])
|
|
3486
3493
|
], 2)) : p("", !0),
|
|
3487
|
-
h.cell.hasQuestion ?
|
|
3494
|
+
h.cell.hasQuestion ? Z((i(), a("div", {
|
|
3488
3495
|
key: 5,
|
|
3489
3496
|
class: r(h.cell.cellQuestionWrapperClassName)
|
|
3490
3497
|
}, [
|
|
@@ -3534,8 +3541,9 @@ const yn = /* @__PURE__ */ y({
|
|
|
3534
3541
|
h.cell.isOtherChoice ? (i(), g(m, {
|
|
3535
3542
|
key: 3,
|
|
3536
3543
|
is: "survey-other-choice",
|
|
3537
|
-
question: h.cell.question
|
|
3538
|
-
|
|
3544
|
+
question: h.cell.question,
|
|
3545
|
+
item: h.cell.question.otherItem
|
|
3546
|
+
}, null, 8, ["question", "item"])) : p("", !0)
|
|
3539
3547
|
], 2)), [
|
|
3540
3548
|
[A, n.value]
|
|
3541
3549
|
]) : p("", !0),
|
|
@@ -3557,9 +3565,9 @@ const yn = /* @__PURE__ */ y({
|
|
|
3557
3565
|
]),
|
|
3558
3566
|
_: 1
|
|
3559
3567
|
}, 8, ["is", "componentData"])) : p("", !0)
|
|
3560
|
-
], 46,
|
|
3568
|
+
], 46, _n)) : p("", !0);
|
|
3561
3569
|
}
|
|
3562
|
-
}),
|
|
3570
|
+
}), et = /* @__PURE__ */ y({
|
|
3563
3571
|
inheritAttrs: !1,
|
|
3564
3572
|
__name: "MatrixDynamic",
|
|
3565
3573
|
props: {
|
|
@@ -3622,7 +3630,7 @@ const yn = /* @__PURE__ */ y({
|
|
|
3622
3630
|
], 2)) : p("", !0)
|
|
3623
3631
|
], 512));
|
|
3624
3632
|
}
|
|
3625
|
-
}),
|
|
3633
|
+
}), st = /* @__PURE__ */ y({
|
|
3626
3634
|
__name: "MatrixDynamicPlaceholder",
|
|
3627
3635
|
props: {
|
|
3628
3636
|
question: {}
|
|
@@ -3659,19 +3667,19 @@ const yn = /* @__PURE__ */ y({
|
|
|
3659
3667
|
], 2));
|
|
3660
3668
|
}
|
|
3661
3669
|
});
|
|
3662
|
-
function
|
|
3670
|
+
function re(u, e = !0) {
|
|
3663
3671
|
return {
|
|
3664
|
-
question:
|
|
3665
|
-
row: e ?
|
|
3672
|
+
question: M(() => u.item.data.question),
|
|
3673
|
+
row: e ? M(() => u.item.data.row) : void 0
|
|
3666
3674
|
};
|
|
3667
3675
|
}
|
|
3668
|
-
const
|
|
3676
|
+
const nt = ["disabled"], tt = /* @__PURE__ */ y({
|
|
3669
3677
|
__name: "RemoveButton",
|
|
3670
3678
|
props: {
|
|
3671
3679
|
item: {}
|
|
3672
3680
|
},
|
|
3673
3681
|
setup(u) {
|
|
3674
|
-
const e = u, { question: n, row: s } =
|
|
3682
|
+
const e = u, { question: n, row: s } = re(e);
|
|
3675
3683
|
return (o, t) => (i(), a("button", {
|
|
3676
3684
|
type: "button",
|
|
3677
3685
|
class: r(w(n).getRemoveRowButtonCss()),
|
|
@@ -3685,15 +3693,15 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3685
3693
|
v("span", {
|
|
3686
3694
|
class: r(w(n).cssClasses.iconRemove)
|
|
3687
3695
|
}, null, 2)
|
|
3688
|
-
], 10,
|
|
3696
|
+
], 10, nt));
|
|
3689
3697
|
}
|
|
3690
|
-
}),
|
|
3698
|
+
}), ot = ["xlink:href"], it = /* @__PURE__ */ y({
|
|
3691
3699
|
__name: "DragDropIcon",
|
|
3692
3700
|
props: {
|
|
3693
3701
|
item: {}
|
|
3694
3702
|
},
|
|
3695
3703
|
setup(u) {
|
|
3696
|
-
const e = u, { question: n } =
|
|
3704
|
+
const e = u, { question: n } = re(e, !1);
|
|
3697
3705
|
return (s, o) => (i(), a("div", null, [
|
|
3698
3706
|
w(n).iconDragElement ? (i(), a("svg", {
|
|
3699
3707
|
key: 0,
|
|
@@ -3701,20 +3709,20 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3701
3709
|
}, [
|
|
3702
3710
|
v("use", {
|
|
3703
3711
|
"xlink:href": w(n).iconDragElement
|
|
3704
|
-
}, null, 8,
|
|
3712
|
+
}, null, 8, ot)
|
|
3705
3713
|
], 2)) : (i(), a("span", {
|
|
3706
3714
|
key: 1,
|
|
3707
3715
|
class: r(w(n).cssClasses.iconDrag)
|
|
3708
3716
|
}, null, 2))
|
|
3709
3717
|
]));
|
|
3710
3718
|
}
|
|
3711
|
-
}),
|
|
3719
|
+
}), rt = ["title", "aria-expanded", "aria-controls"], lt = /* @__PURE__ */ y({
|
|
3712
3720
|
__name: "DetailButton",
|
|
3713
3721
|
props: {
|
|
3714
3722
|
item: {}
|
|
3715
3723
|
},
|
|
3716
3724
|
setup(u) {
|
|
3717
|
-
const e = u, { question: n, row: s } =
|
|
3725
|
+
const e = u, { question: n, row: s } = re(e);
|
|
3718
3726
|
return (o, t) => (i(), a("button", {
|
|
3719
3727
|
type: "button",
|
|
3720
3728
|
class: r(w(n).getDetailPanelButtonCss(w(s))),
|
|
@@ -3729,9 +3737,9 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3729
3737
|
iconName: w(n).getDetailPanelIconId(w(s)),
|
|
3730
3738
|
size: "auto"
|
|
3731
3739
|
}, null, 8, ["class", "iconName"])
|
|
3732
|
-
], 10,
|
|
3740
|
+
], 10, rt));
|
|
3733
3741
|
}
|
|
3734
|
-
}),
|
|
3742
|
+
}), at = ["aria-label"], ut = /* @__PURE__ */ y({
|
|
3735
3743
|
inheritAttrs: !1,
|
|
3736
3744
|
__name: "PanelDynamic",
|
|
3737
3745
|
props: {
|
|
@@ -3739,7 +3747,7 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3739
3747
|
css: {}
|
|
3740
3748
|
},
|
|
3741
3749
|
setup(u) {
|
|
3742
|
-
const e = u, n = f(null), s =
|
|
3750
|
+
const e = u, n = f(null), s = qe();
|
|
3743
3751
|
T(
|
|
3744
3752
|
e,
|
|
3745
3753
|
n,
|
|
@@ -3806,12 +3814,12 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3806
3814
|
style: k({ width: l.question.progress }),
|
|
3807
3815
|
role: "progressbar",
|
|
3808
3816
|
"aria-label": l.question.progressBarAriaLabel
|
|
3809
|
-
}, null, 14,
|
|
3817
|
+
}, null, 14, at)
|
|
3810
3818
|
], 2)) : p("", !0),
|
|
3811
3819
|
v("div", {
|
|
3812
3820
|
class: r(l.question.cssClasses.panelsContainer)
|
|
3813
3821
|
}, [
|
|
3814
|
-
(i(!0), a(
|
|
3822
|
+
(i(!0), a(H, null, V(l.question.renderedPanels, (C, L) => (i(), a(H, {
|
|
3815
3823
|
key: C.id
|
|
3816
3824
|
}, [
|
|
3817
3825
|
v("div", {
|
|
@@ -3839,7 +3847,7 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3839
3847
|
}, null, 8, ["question"])) : p("", !0)
|
|
3840
3848
|
], 2));
|
|
3841
3849
|
}
|
|
3842
|
-
}),
|
|
3850
|
+
}), dt = ["aria-label"], mt = /* @__PURE__ */ y({
|
|
3843
3851
|
__name: "PanelDynamicProgress",
|
|
3844
3852
|
props: {
|
|
3845
3853
|
question: {}
|
|
@@ -3869,7 +3877,7 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3869
3877
|
style: k({ width: s.question.progress }),
|
|
3870
3878
|
role: "progressbar",
|
|
3871
3879
|
"aria-label": s.question.progressBarAriaLabel
|
|
3872
|
-
}, null, 14,
|
|
3880
|
+
}, null, 14, dt)
|
|
3873
3881
|
], 2)) : p("", !0),
|
|
3874
3882
|
c(m, {
|
|
3875
3883
|
is: "sv-paneldynamic-next-btn",
|
|
@@ -3887,7 +3895,7 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3887
3895
|
], 2)
|
|
3888
3896
|
], 2));
|
|
3889
3897
|
}
|
|
3890
|
-
}),
|
|
3898
|
+
}), pt = ["aria-label"], vt = /* @__PURE__ */ y({
|
|
3891
3899
|
__name: "PanelDynamicProgressV2",
|
|
3892
3900
|
props: {
|
|
3893
3901
|
question: {}
|
|
@@ -3909,7 +3917,7 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3909
3917
|
style: k({ width: e.question.progress }),
|
|
3910
3918
|
role: "progressbar",
|
|
3911
3919
|
"aria-label": e.question.progressBarAriaLabel
|
|
3912
|
-
}, null, 14,
|
|
3920
|
+
}, null, 14, pt)
|
|
3913
3921
|
], 2)) : p("", !0),
|
|
3914
3922
|
e.question.showFooterToolbar ? (i(), a("div", {
|
|
3915
3923
|
key: 1,
|
|
@@ -3922,7 +3930,7 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3922
3930
|
], 2)) : p("", !0)
|
|
3923
3931
|
], 2)) : p("", !0);
|
|
3924
3932
|
}
|
|
3925
|
-
}),
|
|
3933
|
+
}), Ct = /* @__PURE__ */ y({
|
|
3926
3934
|
__name: "PanelDynamicPlaceholder",
|
|
3927
3935
|
props: {
|
|
3928
3936
|
question: {}
|
|
@@ -3945,11 +3953,11 @@ const et = ["disabled"], st = /* @__PURE__ */ y({
|
|
|
3945
3953
|
}
|
|
3946
3954
|
});
|
|
3947
3955
|
function X(u) {
|
|
3948
|
-
return
|
|
3956
|
+
return M(
|
|
3949
3957
|
() => u.item && u.item.data.question || u.data.question
|
|
3950
3958
|
);
|
|
3951
3959
|
}
|
|
3952
|
-
const
|
|
3960
|
+
const ct = ["id"], gt = /* @__PURE__ */ y({
|
|
3953
3961
|
__name: "PaneldynamicAddBtn",
|
|
3954
3962
|
props: {
|
|
3955
3963
|
item: {},
|
|
@@ -3974,9 +3982,9 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
3974
3982
|
locString: w(n).locAddPanelText
|
|
3975
3983
|
}, null, 8, ["locString"])
|
|
3976
3984
|
], 2)
|
|
3977
|
-
], 10,
|
|
3985
|
+
], 10, ct)) : p("", !0);
|
|
3978
3986
|
}
|
|
3979
|
-
}),
|
|
3987
|
+
}), yt = ["title"], ht = /* @__PURE__ */ y({
|
|
3980
3988
|
__name: "PaneldynamicNextBtn",
|
|
3981
3989
|
props: {
|
|
3982
3990
|
item: {},
|
|
@@ -3996,9 +4004,9 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
3996
4004
|
iconName: w(n).cssClasses.progressBtnIcon,
|
|
3997
4005
|
size: "auto"
|
|
3998
4006
|
}, null, 8, ["iconName"])
|
|
3999
|
-
], 10,
|
|
4007
|
+
], 10, yt));
|
|
4000
4008
|
}
|
|
4001
|
-
}),
|
|
4009
|
+
}), qt = ["title"], wt = /* @__PURE__ */ y({
|
|
4002
4010
|
__name: "PaneldynamicPrevBtn",
|
|
4003
4011
|
props: {
|
|
4004
4012
|
item: {},
|
|
@@ -4018,16 +4026,16 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4018
4026
|
iconName: w(n).cssClasses.progressBtnIcon,
|
|
4019
4027
|
size: "auto"
|
|
4020
4028
|
}, null, 8, ["iconName"])
|
|
4021
|
-
], 10,
|
|
4029
|
+
], 10, qt));
|
|
4022
4030
|
}
|
|
4023
|
-
}),
|
|
4031
|
+
}), bt = ["id"], Lt = /* @__PURE__ */ y({
|
|
4024
4032
|
__name: "PaneldynamicRemoveBtn",
|
|
4025
4033
|
props: {
|
|
4026
4034
|
item: {},
|
|
4027
4035
|
data: {}
|
|
4028
4036
|
},
|
|
4029
4037
|
setup(u) {
|
|
4030
|
-
const e = u, n = X(e), s =
|
|
4038
|
+
const e = u, n = X(e), s = M(
|
|
4031
4039
|
() => e.item && e.item.data.panel || e.data.panel
|
|
4032
4040
|
), o = (l) => n.value.getPanelRemoveButtonId(l), t = (l) => {
|
|
4033
4041
|
n.value.isInputReadOnly || n.value.removePanelUI(l);
|
|
@@ -4049,9 +4057,9 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4049
4057
|
v("span", {
|
|
4050
4058
|
class: r(w(n).cssClasses.iconRemove)
|
|
4051
4059
|
}, null, 2)
|
|
4052
|
-
], 10,
|
|
4060
|
+
], 10, bt));
|
|
4053
4061
|
}
|
|
4054
|
-
}),
|
|
4062
|
+
}), kt = /* @__PURE__ */ y({
|
|
4055
4063
|
__name: "PaneldynamicProgressText",
|
|
4056
4064
|
props: {
|
|
4057
4065
|
item: {},
|
|
@@ -4063,7 +4071,7 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4063
4071
|
class: r(w(n).cssClasses.progressText)
|
|
4064
4072
|
}, I(w(n).progressText), 3));
|
|
4065
4073
|
}
|
|
4066
|
-
}),
|
|
4074
|
+
}), ft = ["id"], Ht = /* @__PURE__ */ y({
|
|
4067
4075
|
__name: "Errors",
|
|
4068
4076
|
props: {
|
|
4069
4077
|
element: {},
|
|
@@ -4073,14 +4081,12 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4073
4081
|
const e = f();
|
|
4074
4082
|
return (n, s) => n.element.hasVisibleErrors ? (i(), a("div", {
|
|
4075
4083
|
key: 0,
|
|
4076
|
-
role: "alert",
|
|
4077
|
-
"aria-live": "polite",
|
|
4078
4084
|
class: r(n.element.cssError),
|
|
4079
4085
|
id: n.element.id + "_errors",
|
|
4080
4086
|
ref_key: "root",
|
|
4081
4087
|
ref: e
|
|
4082
4088
|
}, [
|
|
4083
|
-
(i(!0), a(
|
|
4089
|
+
(i(!0), a(H, null, V(n.element.errors, (o, t) => (i(), g(m, {
|
|
4084
4090
|
is: n.element.survey.questionErrorComponent,
|
|
4085
4091
|
element: n.element,
|
|
4086
4092
|
key: "error_" + t,
|
|
@@ -4088,21 +4094,21 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4088
4094
|
error: o,
|
|
4089
4095
|
cssClasses: n.element.cssClasses
|
|
4090
4096
|
}, null, 8, ["is", "element", "errorKey", "error", "cssClasses"]))), 128))
|
|
4091
|
-
], 10,
|
|
4097
|
+
], 10, ft)) : p("", !0);
|
|
4092
4098
|
}
|
|
4093
|
-
}),
|
|
4099
|
+
}), Mt = { key: 0 }, It = /* @__PURE__ */ y({
|
|
4094
4100
|
__name: "QuestionComment",
|
|
4095
4101
|
props: {
|
|
4096
4102
|
question: {}
|
|
4097
4103
|
},
|
|
4098
4104
|
setup(u) {
|
|
4099
|
-
return (e, n) => e.question.isReadOnlyRenderDiv() ? (i(), a("div",
|
|
4105
|
+
return (e, n) => e.question.isReadOnlyRenderDiv() ? (i(), a("div", Mt, I(e.question.comment), 1)) : (i(), g(m, {
|
|
4100
4106
|
key: 1,
|
|
4101
4107
|
is: "sv-text-area",
|
|
4102
4108
|
model: e.question.commentTextAreaModel
|
|
4103
4109
|
}, null, 8, ["model"]));
|
|
4104
4110
|
}
|
|
4105
|
-
}),
|
|
4111
|
+
}), Vt = /* @__PURE__ */ y({
|
|
4106
4112
|
__name: "TitleElement",
|
|
4107
4113
|
props: {
|
|
4108
4114
|
element: {},
|
|
@@ -4110,9 +4116,9 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4110
4116
|
},
|
|
4111
4117
|
setup(u) {
|
|
4112
4118
|
const e = (n) => {
|
|
4113
|
-
|
|
4119
|
+
we(n);
|
|
4114
4120
|
};
|
|
4115
|
-
return (n, s) => n.element.hasTitle ? (i(), g(
|
|
4121
|
+
return (n, s) => n.element.hasTitle ? (i(), g(ce(n.element.titleTagName), {
|
|
4116
4122
|
key: 0,
|
|
4117
4123
|
class: r(n.element.cssTitle),
|
|
4118
4124
|
"aria-label": n.element.titleAriaLabel,
|
|
@@ -4155,7 +4161,7 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4155
4161
|
_: 1
|
|
4156
4162
|
}, 40, ["class", "aria-label", "id", "tabindex", "aria-expanded", "role"])) : p("", !0);
|
|
4157
4163
|
}
|
|
4158
|
-
}),
|
|
4164
|
+
}), St = { key: 2 }, Rt = { key: 4 }, Tt = { key: 6 }, Bt = { key: 8 }, Zt = /* @__PURE__ */ y({
|
|
4159
4165
|
inheritAttrs: !1,
|
|
4160
4166
|
__name: "TitleContent",
|
|
4161
4167
|
props: {
|
|
@@ -4163,7 +4169,7 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4163
4169
|
css: {}
|
|
4164
4170
|
},
|
|
4165
4171
|
setup(u) {
|
|
4166
|
-
return (e, n) => (i(), a(
|
|
4172
|
+
return (e, n) => (i(), a(H, null, [
|
|
4167
4173
|
e.element.isTitleRenderedAsString ? (i(), g(m, {
|
|
4168
4174
|
key: 0,
|
|
4169
4175
|
is: "survey-string",
|
|
@@ -4174,26 +4180,26 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4174
4180
|
class: r(e.element.cssRequiredMark),
|
|
4175
4181
|
"aria-hidden": !0
|
|
4176
4182
|
}, I(e.element.requiredMark), 3)) : p("", !0),
|
|
4177
|
-
!e.element.isTitleRenderedAsString && e.element.isRequireTextOnStart ? (i(), a("span",
|
|
4183
|
+
!e.element.isTitleRenderedAsString && e.element.isRequireTextOnStart ? (i(), a("span", St, " ")) : p("", !0),
|
|
4178
4184
|
!e.element.isTitleRenderedAsString && e.element.no ? (i(), a("span", {
|
|
4179
4185
|
key: 3,
|
|
4180
4186
|
style: { position: "static" },
|
|
4181
4187
|
class: r(e.element.cssTitleNumber),
|
|
4182
4188
|
"aria-hidden": !0
|
|
4183
4189
|
}, I(e.element.no), 3)) : p("", !0),
|
|
4184
|
-
!e.element.isTitleRenderedAsString && e.element.no ? (i(), a("span",
|
|
4190
|
+
!e.element.isTitleRenderedAsString && e.element.no ? (i(), a("span", Rt, " ")) : p("", !0),
|
|
4185
4191
|
!e.element.isTitleRenderedAsString && e.element.isRequireTextBeforeTitle ? (i(), a("span", {
|
|
4186
4192
|
key: 5,
|
|
4187
4193
|
class: r(e.element.cssRequiredMark),
|
|
4188
4194
|
"aria-hidden": !0
|
|
4189
4195
|
}, I(e.element.requiredMark), 3)) : p("", !0),
|
|
4190
|
-
!e.element.isTitleRenderedAsString && e.element.isRequireTextBeforeTitle ? (i(), a("span",
|
|
4196
|
+
!e.element.isTitleRenderedAsString && e.element.isRequireTextBeforeTitle ? (i(), a("span", Tt, " ")) : p("", !0),
|
|
4191
4197
|
e.element.isTitleRenderedAsString ? p("", !0) : (i(), g(m, {
|
|
4192
4198
|
key: 7,
|
|
4193
4199
|
is: "survey-string",
|
|
4194
4200
|
locString: e.element.locRenderedTitle
|
|
4195
4201
|
}, null, 8, ["locString"])),
|
|
4196
|
-
!e.element.isTitleRenderedAsString && e.element.isRequireTextAfterTitle ? (i(), a("span",
|
|
4202
|
+
!e.element.isTitleRenderedAsString && e.element.isRequireTextAfterTitle ? (i(), a("span", Bt, " ")) : p("", !0),
|
|
4197
4203
|
!e.element.isTitleRenderedAsString && e.element.isRequireTextAfterTitle ? (i(), a("span", {
|
|
4198
4204
|
key: 9,
|
|
4199
4205
|
class: r(e.element.cssRequiredMark),
|
|
@@ -4201,16 +4207,16 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4201
4207
|
}, I(e.element.requiredMark), 3)) : p("", !0)
|
|
4202
4208
|
], 64));
|
|
4203
4209
|
}
|
|
4204
|
-
}),
|
|
4210
|
+
}), $t = { class: "sv-title-actions" }, Dt = { class: "sv-title-actions__title" }, At = /* @__PURE__ */ y({
|
|
4205
4211
|
__name: "TitleActions",
|
|
4206
4212
|
props: {
|
|
4207
4213
|
element: {},
|
|
4208
4214
|
css: {}
|
|
4209
4215
|
},
|
|
4210
4216
|
setup(u) {
|
|
4211
|
-
const e = u, n =
|
|
4212
|
-
return (s, o) => (i(), a("div",
|
|
4213
|
-
v("span",
|
|
4217
|
+
const e = u, n = M(() => e.element.getTitleToolbar());
|
|
4218
|
+
return (s, o) => (i(), a("div", $t, [
|
|
4219
|
+
v("span", Dt, [
|
|
4214
4220
|
s.element.isPage ? (i(), g(m, {
|
|
4215
4221
|
key: 0,
|
|
4216
4222
|
is: "survey-string",
|
|
@@ -4229,20 +4235,20 @@ const vt = ["id"], Ct = /* @__PURE__ */ y({
|
|
|
4229
4235
|
}, null, 8, ["model"])
|
|
4230
4236
|
]));
|
|
4231
4237
|
}
|
|
4232
|
-
}),
|
|
4238
|
+
}), Pt = (u, e) => {
|
|
4233
4239
|
const n = u.__vccOpts || u;
|
|
4234
4240
|
for (const [s, o] of e)
|
|
4235
4241
|
n[s] = o;
|
|
4236
4242
|
return n;
|
|
4237
|
-
},
|
|
4238
|
-
|
|
4243
|
+
}, Nt = {}, Et = { class: "sv-brand-info" }, Wt = /* @__PURE__ */ De('<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), Ft = [
|
|
4244
|
+
Wt
|
|
4239
4245
|
];
|
|
4240
|
-
function
|
|
4241
|
-
return i(), a("div",
|
|
4246
|
+
function Ot(u, e) {
|
|
4247
|
+
return i(), a("div", Et, Ft);
|
|
4242
4248
|
}
|
|
4243
|
-
const
|
|
4244
|
-
|
|
4245
|
-
],
|
|
4249
|
+
const zt = /* @__PURE__ */ Pt(Nt, [["render", Ot]]), Ut = /* @__PURE__ */ v("use", null, null, -1), Qt = [
|
|
4250
|
+
Ut
|
|
4251
|
+
], Kt = /* @__PURE__ */ y({
|
|
4246
4252
|
__name: "SvgIcon",
|
|
4247
4253
|
props: {
|
|
4248
4254
|
size: {},
|
|
@@ -4253,7 +4259,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4253
4259
|
},
|
|
4254
4260
|
setup(u) {
|
|
4255
4261
|
const e = u, n = f(), s = () => {
|
|
4256
|
-
|
|
4262
|
+
ze(
|
|
4257
4263
|
e.size,
|
|
4258
4264
|
e.width,
|
|
4259
4265
|
e.height,
|
|
@@ -4264,16 +4270,16 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4264
4270
|
};
|
|
4265
4271
|
return z(() => {
|
|
4266
4272
|
s();
|
|
4267
|
-
}),
|
|
4273
|
+
}), B(() => {
|
|
4268
4274
|
s();
|
|
4269
4275
|
}), (o, t) => (i(), a("svg", {
|
|
4270
4276
|
ref_key: "svgIconElement",
|
|
4271
4277
|
ref: n,
|
|
4272
4278
|
class: "sv-svg-icon",
|
|
4273
4279
|
role: "presentation"
|
|
4274
|
-
},
|
|
4280
|
+
}, Qt, 512));
|
|
4275
4281
|
}
|
|
4276
|
-
}),
|
|
4282
|
+
}), jt = /* @__PURE__ */ y({
|
|
4277
4283
|
__name: "QuestionError",
|
|
4278
4284
|
props: {
|
|
4279
4285
|
errorKey: {},
|
|
@@ -4301,7 +4307,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4301
4307
|
], 2)
|
|
4302
4308
|
]));
|
|
4303
4309
|
}
|
|
4304
|
-
}),
|
|
4310
|
+
}), Gt = /* @__PURE__ */ y({
|
|
4305
4311
|
__name: "ActionBar",
|
|
4306
4312
|
props: {
|
|
4307
4313
|
model: {},
|
|
@@ -4315,13 +4321,13 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4315
4321
|
S(() => e.model, void 0, (l) => {
|
|
4316
4322
|
l.resetResponsivityManager();
|
|
4317
4323
|
});
|
|
4318
|
-
const o =
|
|
4324
|
+
const o = se(() => e.model.renderedActions);
|
|
4319
4325
|
function t() {
|
|
4320
4326
|
e.model.hasVisibleActions && e.model.initResponsivityManager(n.value);
|
|
4321
4327
|
}
|
|
4322
4328
|
return z(() => {
|
|
4323
4329
|
t();
|
|
4324
|
-
}),
|
|
4330
|
+
}), B(() => {
|
|
4325
4331
|
t();
|
|
4326
4332
|
}), (l, d) => l.model.hasActions ? (i(), a("div", {
|
|
4327
4333
|
key: 0,
|
|
@@ -4331,23 +4337,23 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4331
4337
|
class: r(l.model.getRootCss()),
|
|
4332
4338
|
onClick: s
|
|
4333
4339
|
}, [
|
|
4334
|
-
(i(!0), a(
|
|
4340
|
+
(i(!0), a(H, null, V(w(o), (C) => (i(), g(m, {
|
|
4335
4341
|
is: "sv-action",
|
|
4336
4342
|
key: C.renderedId,
|
|
4337
4343
|
item: C
|
|
4338
4344
|
}, null, 8, ["item"]))), 128))
|
|
4339
4345
|
], 6)) : p("", !0);
|
|
4340
4346
|
}
|
|
4341
|
-
}),
|
|
4347
|
+
}), Xt = ["id"], Jt = { class: "sv-action__content" }, Yt = /* @__PURE__ */ y({
|
|
4342
4348
|
__name: "Action",
|
|
4343
4349
|
props: {
|
|
4344
4350
|
item: {}
|
|
4345
4351
|
},
|
|
4346
4352
|
setup(u) {
|
|
4347
|
-
const e = f(), n = u, s =
|
|
4353
|
+
const e = f(), n = u, s = M(
|
|
4348
4354
|
() => n.item.component || "sv-action-bar-item"
|
|
4349
4355
|
);
|
|
4350
|
-
return S(() => n.item),
|
|
4356
|
+
return S(() => n.item), B(() => {
|
|
4351
4357
|
const o = n.item;
|
|
4352
4358
|
o.updateModeCallback = (t, l) => {
|
|
4353
4359
|
o.mode = t, ye(() => {
|
|
@@ -4363,7 +4369,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4363
4369
|
ref_key: "root",
|
|
4364
4370
|
ref: e
|
|
4365
4371
|
}, [
|
|
4366
|
-
v("div",
|
|
4372
|
+
v("div", Jt, [
|
|
4367
4373
|
o.item.needSeparator ? (i(), g(m, {
|
|
4368
4374
|
key: 0,
|
|
4369
4375
|
is: "sv-action-bar-separator"
|
|
@@ -4373,7 +4379,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4373
4379
|
item: o.item
|
|
4374
4380
|
}, null, 8, ["is", "item"])
|
|
4375
4381
|
])
|
|
4376
|
-
], 10,
|
|
4382
|
+
], 10, Xt));
|
|
4377
4383
|
}
|
|
4378
4384
|
}), Q = {
|
|
4379
4385
|
mounted: function(u, e) {
|
|
@@ -4387,23 +4393,23 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4387
4393
|
u.tabIndex = -1;
|
|
4388
4394
|
return;
|
|
4389
4395
|
}
|
|
4390
|
-
n.disableTabStop || (u.tabIndex = 0), u.addEventListener("keyup", (s) => (s.preventDefault(), s.stopPropagation(),
|
|
4391
|
-
|
|
4396
|
+
n.disableTabStop || (u.tabIndex = 0), u.addEventListener("keyup", (s) => (s.preventDefault(), s.stopPropagation(), we(s, n), !1)), u.addEventListener("keydown", (s) => {
|
|
4397
|
+
Ue(s, n);
|
|
4392
4398
|
}), u.addEventListener("blur", (s) => {
|
|
4393
|
-
|
|
4399
|
+
Qe(s);
|
|
4394
4400
|
});
|
|
4395
4401
|
}
|
|
4396
|
-
},
|
|
4402
|
+
}, _t = ["disabled", "title", "aria-checked", "aria-expanded", "role"], xt = {
|
|
4397
4403
|
inheritAttrs: !1
|
|
4398
|
-
},
|
|
4399
|
-
...
|
|
4404
|
+
}, eo = /* @__PURE__ */ y({
|
|
4405
|
+
...xt,
|
|
4400
4406
|
__name: "ActionBarItem",
|
|
4401
4407
|
props: {
|
|
4402
4408
|
item: {}
|
|
4403
4409
|
},
|
|
4404
4410
|
setup(u) {
|
|
4405
4411
|
const e = u;
|
|
4406
|
-
return S(() => e.item), (n, s) =>
|
|
4412
|
+
return S(() => e.item), (n, s) => Z((i(), a("button", {
|
|
4407
4413
|
class: r(n.item.getActionBarItemCss()),
|
|
4408
4414
|
type: "button",
|
|
4409
4415
|
onClick: s[0] || (s[0] = (o) => {
|
|
@@ -4436,14 +4442,14 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4436
4442
|
key: 1,
|
|
4437
4443
|
class: r(n.item.getActionBarItemTitleCss())
|
|
4438
4444
|
}, I(n.item.title), 3)) : p("", !0)
|
|
4439
|
-
], 42,
|
|
4445
|
+
], 42, _t)), [
|
|
4440
4446
|
[w(Q), { processEsc: !1, disableTabStop: n.item.disableTabStop }]
|
|
4441
4447
|
]);
|
|
4442
4448
|
}
|
|
4443
|
-
}),
|
|
4449
|
+
}), so = ["disabled", "title", "role"], no = {
|
|
4444
4450
|
inheritAttrs: !1
|
|
4445
|
-
},
|
|
4446
|
-
...
|
|
4451
|
+
}, to = /* @__PURE__ */ y({
|
|
4452
|
+
...no,
|
|
4447
4453
|
__name: "ActionBarItemDropdown",
|
|
4448
4454
|
props: {
|
|
4449
4455
|
item: {}
|
|
@@ -4454,13 +4460,13 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4454
4460
|
return S(
|
|
4455
4461
|
() => e.item,
|
|
4456
4462
|
(s) => {
|
|
4457
|
-
n = new
|
|
4463
|
+
n = new Ke(s);
|
|
4458
4464
|
},
|
|
4459
4465
|
() => {
|
|
4460
4466
|
n.dispose();
|
|
4461
4467
|
}
|
|
4462
|
-
), (s, o) => (i(), a(
|
|
4463
|
-
|
|
4468
|
+
), (s, o) => (i(), a(H, null, [
|
|
4469
|
+
Z((i(), a("button", {
|
|
4464
4470
|
type: "button",
|
|
4465
4471
|
class: r(s.item.getActionBarItemCss()),
|
|
4466
4472
|
onClick: o[0] || (o[0] = (t) => {
|
|
@@ -4485,7 +4491,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4485
4491
|
key: 1,
|
|
4486
4492
|
class: r(s.item.getActionBarItemTitleCss())
|
|
4487
4493
|
}, I(s.item.title), 3)) : p("", !0)
|
|
4488
|
-
], 42,
|
|
4494
|
+
], 42, so)), [
|
|
4489
4495
|
[w(Q), { processEsc: !1, disableTabStop: s.item.disableTabStop }]
|
|
4490
4496
|
]),
|
|
4491
4497
|
c(m, {
|
|
@@ -4494,18 +4500,18 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4494
4500
|
}, null, 8, ["model"])
|
|
4495
4501
|
], 64));
|
|
4496
4502
|
}
|
|
4497
|
-
}),
|
|
4503
|
+
}), oo = /* @__PURE__ */ y({
|
|
4498
4504
|
__name: "ActionBarSeparator",
|
|
4499
4505
|
props: {
|
|
4500
4506
|
item: {}
|
|
4501
4507
|
},
|
|
4502
4508
|
setup(u) {
|
|
4503
|
-
const e = u, n =
|
|
4509
|
+
const e = u, n = M(() => e.item && e.item.innerCss);
|
|
4504
4510
|
return (s, o) => (i(), a("div", {
|
|
4505
4511
|
class: r(["sv-action-bar-separator", n.value])
|
|
4506
4512
|
}, null, 2));
|
|
4507
4513
|
}
|
|
4508
|
-
}),
|
|
4514
|
+
}), io = ["aria-label", "placeholder", "value"], ro = ["aria-label"], lo = ["role", "aria-label", "id"], ao = /* @__PURE__ */ y({
|
|
4509
4515
|
__name: "List",
|
|
4510
4516
|
props: {
|
|
4511
4517
|
model: {}
|
|
@@ -4519,8 +4525,8 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4519
4525
|
C.filterString = d.target.value, e.model.goToItems(d);
|
|
4520
4526
|
}, t = (d) => {
|
|
4521
4527
|
e.model.onMouseMove(d);
|
|
4522
|
-
}, l =
|
|
4523
|
-
return S(() => e.model),
|
|
4528
|
+
}, l = se(() => e.model.renderedActions);
|
|
4529
|
+
return S(() => e.model), B(() => {
|
|
4524
4530
|
e.model.initListContainerHtmlElement(n.value);
|
|
4525
4531
|
}), P(() => {
|
|
4526
4532
|
e.model && (e.model.removeScrollEventListener(), e.model.initListContainerHtmlElement(void 0));
|
|
@@ -4550,7 +4556,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4550
4556
|
value: d.model.filterString,
|
|
4551
4557
|
onChange: s,
|
|
4552
4558
|
onKeyup: o
|
|
4553
|
-
}, null, 42,
|
|
4559
|
+
}, null, 42, io),
|
|
4554
4560
|
d.model.showSearchClearButton && d.model.filterString ? (i(), a("button", {
|
|
4555
4561
|
key: 0,
|
|
4556
4562
|
onClick: C[0] || (C[0] = (L) => {
|
|
@@ -4565,17 +4571,17 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4565
4571
|
})
|
|
4566
4572
|
], 2)) : p("", !0)
|
|
4567
4573
|
], 2)) : p("", !0),
|
|
4568
|
-
|
|
4574
|
+
Z(v("div", {
|
|
4569
4575
|
class: r(d.model.cssClasses.emptyContainer)
|
|
4570
4576
|
}, [
|
|
4571
4577
|
v("div", {
|
|
4572
4578
|
class: r(d.model.cssClasses.emptyText),
|
|
4573
4579
|
"aria-label": d.model.emptyMessage
|
|
4574
|
-
}, I(d.model.emptyMessage), 11,
|
|
4580
|
+
}, I(d.model.emptyMessage), 11, ro)
|
|
4575
4581
|
], 2), [
|
|
4576
4582
|
[A, d.model.isEmpty]
|
|
4577
4583
|
]),
|
|
4578
|
-
d.model.renderElements ?
|
|
4584
|
+
d.model.renderElements ? Z((i(), a("ul", {
|
|
4579
4585
|
key: 1,
|
|
4580
4586
|
class: r(d.model.getListClass()),
|
|
4581
4587
|
role: d.model.listRole,
|
|
@@ -4589,36 +4595,36 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4589
4595
|
d.model.onKeyDown(L);
|
|
4590
4596
|
})
|
|
4591
4597
|
}, [
|
|
4592
|
-
(i(!0), a(
|
|
4598
|
+
(i(!0), a(H, null, V(w(l), (L) => (i(), g(m, {
|
|
4593
4599
|
is: "sv-list-item",
|
|
4594
4600
|
item: L,
|
|
4595
4601
|
model: d.model,
|
|
4596
4602
|
key: L.id
|
|
4597
4603
|
}, null, 8, ["item", "model"]))), 128))
|
|
4598
|
-
], 42,
|
|
4604
|
+
], 42, lo)), [
|
|
4599
4605
|
[A, !d.model.isEmpty]
|
|
4600
4606
|
]) : p("", !0)
|
|
4601
4607
|
], 2));
|
|
4602
4608
|
}
|
|
4603
|
-
}),
|
|
4609
|
+
}), uo = ["role", "aria-selected", "aria-checked", "id", "tabindex"], mo = ["title"], po = /* @__PURE__ */ y({
|
|
4604
4610
|
__name: "ListItem",
|
|
4605
4611
|
props: {
|
|
4606
4612
|
model: {},
|
|
4607
4613
|
item: {}
|
|
4608
4614
|
},
|
|
4609
4615
|
setup(u) {
|
|
4610
|
-
const e = u, n =
|
|
4616
|
+
const e = u, n = M(() => e.item.elementId), s = (t) => {
|
|
4611
4617
|
e.model.onItemClick(e.item), t.stopPropagation();
|
|
4612
4618
|
};
|
|
4613
4619
|
S(() => e.item);
|
|
4614
|
-
const o =
|
|
4620
|
+
const o = M(
|
|
4615
4621
|
() => e.item.component || e.model.itemComponent
|
|
4616
4622
|
);
|
|
4617
|
-
return
|
|
4623
|
+
return B(() => {
|
|
4618
4624
|
setTimeout(() => {
|
|
4619
4625
|
e.model.onLastItemRended(e.item);
|
|
4620
4626
|
});
|
|
4621
|
-
}), (t, l) =>
|
|
4627
|
+
}), (t, l) => Z((i(), a("li", {
|
|
4622
4628
|
role: t.model.listItemRole,
|
|
4623
4629
|
"aria-selected": t.model.getA11yItemAriaSelected(t.item),
|
|
4624
4630
|
"aria-checked": t.model.getA11yItemAriaChecked(t.item),
|
|
@@ -4645,13 +4651,13 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4645
4651
|
item: t.item,
|
|
4646
4652
|
model: t.model
|
|
4647
4653
|
}, null, 8, ["is", "item", "model"])
|
|
4648
|
-
], 46,
|
|
4649
|
-
], 42,
|
|
4654
|
+
], 46, mo)
|
|
4655
|
+
], 42, uo)), [
|
|
4650
4656
|
[A, t.model.isItemVisible(t.item)],
|
|
4651
4657
|
[w(Q), { processEsc: !1, disableTabStop: t.item.disableTabStop }]
|
|
4652
4658
|
]);
|
|
4653
4659
|
}
|
|
4654
|
-
}),
|
|
4660
|
+
}), vo = /* @__PURE__ */ y({
|
|
4655
4661
|
__name: "ListItemContent",
|
|
4656
4662
|
props: {
|
|
4657
4663
|
model: {},
|
|
@@ -4659,7 +4665,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4659
4665
|
},
|
|
4660
4666
|
setup(u) {
|
|
4661
4667
|
const e = u;
|
|
4662
|
-
return S(() => e.item), (n, s) => (i(), a(
|
|
4668
|
+
return S(() => e.item), (n, s) => (i(), a(H, null, [
|
|
4663
4669
|
n.item.iconName ? (i(), g(m, {
|
|
4664
4670
|
key: 0,
|
|
4665
4671
|
is: "sv-svg-icon",
|
|
@@ -4680,7 +4686,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4680
4686
|
}, null, 8, ["class", "iconName"])) : p("", !0)
|
|
4681
4687
|
], 64));
|
|
4682
4688
|
}
|
|
4683
|
-
}),
|
|
4689
|
+
}), Co = /* @__PURE__ */ y({
|
|
4684
4690
|
__name: "ListItemGroup",
|
|
4685
4691
|
props: {
|
|
4686
4692
|
model: {},
|
|
@@ -4688,7 +4694,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4688
4694
|
},
|
|
4689
4695
|
setup(u) {
|
|
4690
4696
|
const e = u;
|
|
4691
|
-
return S(() => e.item), (n, s) => (i(), a(
|
|
4697
|
+
return S(() => e.item), (n, s) => (i(), a(H, null, [
|
|
4692
4698
|
c(m, {
|
|
4693
4699
|
is: "sv-list-item-content",
|
|
4694
4700
|
item: n.item,
|
|
@@ -4700,7 +4706,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4700
4706
|
}, null, 8, ["model"])
|
|
4701
4707
|
], 64));
|
|
4702
4708
|
}
|
|
4703
|
-
}),
|
|
4709
|
+
}), co = /* @__PURE__ */ y({
|
|
4704
4710
|
__name: "Popup",
|
|
4705
4711
|
props: {
|
|
4706
4712
|
model: {}
|
|
@@ -4713,10 +4719,10 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4713
4719
|
return W(
|
|
4714
4720
|
() => e.model,
|
|
4715
4721
|
(t) => {
|
|
4716
|
-
n.value && n.value.dispose(), n.value =
|
|
4722
|
+
n.value && n.value.dispose(), n.value = je(t), o();
|
|
4717
4723
|
},
|
|
4718
4724
|
{ immediate: !0 }
|
|
4719
|
-
), S(() => n.value),
|
|
4725
|
+
), S(() => n.value), B(() => {
|
|
4720
4726
|
o();
|
|
4721
4727
|
}), P(() => {
|
|
4722
4728
|
n.value.dispose();
|
|
@@ -4730,13 +4736,13 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4730
4736
|
}, null, 8, ["model"])
|
|
4731
4737
|
], 512));
|
|
4732
4738
|
}
|
|
4733
|
-
}),
|
|
4739
|
+
}), go = { class: "sv-popup__body-content" }, yo = {
|
|
4734
4740
|
key: 0,
|
|
4735
4741
|
class: "sv-popup__body-header"
|
|
4736
|
-
},
|
|
4742
|
+
}, ho = { class: "sv-popup__scrolling-content" }, qo = { class: "sv-popup__content" }, wo = {
|
|
4737
4743
|
key: 1,
|
|
4738
4744
|
class: "sv-popup__body-footer"
|
|
4739
|
-
},
|
|
4745
|
+
}, bo = /* @__PURE__ */ y({
|
|
4740
4746
|
__name: "PopupContainer",
|
|
4741
4747
|
props: {
|
|
4742
4748
|
model: {}
|
|
@@ -4748,9 +4754,9 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4748
4754
|
return S(() => e.model), z(() => {
|
|
4749
4755
|
const s = e.model;
|
|
4750
4756
|
s.isVisible && !s.isPositionSet && e.model.updateOnShowing();
|
|
4751
|
-
}),
|
|
4757
|
+
}), B(() => {
|
|
4752
4758
|
e.model.isVisible && e.model.updateOnShowing();
|
|
4753
|
-
}), (s, o) =>
|
|
4759
|
+
}), (s, o) => Z((i(), a("div", {
|
|
4754
4760
|
tabindex: "-1",
|
|
4755
4761
|
class: r(["sv-popup", s.model.styleClass]),
|
|
4756
4762
|
onKeydown: o[0] || (o[0] = (t) => {
|
|
@@ -4776,16 +4782,16 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4776
4782
|
is: s.model.popupHeaderTemplate,
|
|
4777
4783
|
model: s.model
|
|
4778
4784
|
}, null, 8, ["is", "model"])) : p("", !0),
|
|
4779
|
-
v("div",
|
|
4780
|
-
s.model.title ? (i(), a("div",
|
|
4781
|
-
v("div",
|
|
4782
|
-
v("div",
|
|
4785
|
+
v("div", go, [
|
|
4786
|
+
s.model.title ? (i(), a("div", yo, I(s.model.title), 1)) : p("", !0),
|
|
4787
|
+
v("div", ho, [
|
|
4788
|
+
v("div", qo, [
|
|
4783
4789
|
c(m, $({
|
|
4784
4790
|
is: s.model.contentComponentName
|
|
4785
4791
|
}, s.model.contentComponentData), null, 16, ["is"])
|
|
4786
4792
|
])
|
|
4787
4793
|
]),
|
|
4788
|
-
s.model.showFooter ? (i(), a("div",
|
|
4794
|
+
s.model.showFooter ? (i(), a("div", wo, [
|
|
4789
4795
|
c(m, {
|
|
4790
4796
|
is: "sv-action-bar",
|
|
4791
4797
|
model: s.model.footerToolbar
|
|
@@ -4797,7 +4803,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4797
4803
|
[A, s.model.isVisible]
|
|
4798
4804
|
]);
|
|
4799
4805
|
}
|
|
4800
|
-
}),
|
|
4806
|
+
}), Lo = /* @__PURE__ */ y({
|
|
4801
4807
|
__name: "PopupPointer",
|
|
4802
4808
|
props: {
|
|
4803
4809
|
model: {}
|
|
@@ -4811,7 +4817,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4811
4817
|
})
|
|
4812
4818
|
}, null, 4));
|
|
4813
4819
|
}
|
|
4814
|
-
}),
|
|
4820
|
+
}), ko = /* @__PURE__ */ y({
|
|
4815
4821
|
__name: "Container",
|
|
4816
4822
|
props: {
|
|
4817
4823
|
survey: {},
|
|
@@ -4819,22 +4825,22 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4819
4825
|
needRenderWrapper: {}
|
|
4820
4826
|
},
|
|
4821
4827
|
setup(u) {
|
|
4822
|
-
const e = u, n =
|
|
4828
|
+
const e = u, n = M(
|
|
4823
4829
|
() => e.survey.getContainerContent(e.container)
|
|
4824
4830
|
);
|
|
4825
|
-
return (s, o) => n.value.length > 0 ? (i(), a(
|
|
4831
|
+
return (s, o) => n.value.length > 0 ? (i(), a(H, { key: 0 }, [
|
|
4826
4832
|
s.needRenderWrapper ? (i(), a("div", {
|
|
4827
4833
|
key: 0,
|
|
4828
4834
|
class: r(["sv-components-column", "sv-components-container-" + s.container])
|
|
4829
4835
|
}, [
|
|
4830
|
-
(i(!0), a(
|
|
4836
|
+
(i(!0), a(H, null, V(n.value, (t) => (i(), g(m, {
|
|
4831
4837
|
key: t.id,
|
|
4832
4838
|
is: t.component,
|
|
4833
4839
|
survey: s.survey,
|
|
4834
4840
|
container: s.container,
|
|
4835
4841
|
model: t.data
|
|
4836
4842
|
}, null, 8, ["is", "survey", "container", "model"]))), 128))
|
|
4837
|
-
], 2)) : (i(!0), a(
|
|
4843
|
+
], 2)) : (i(!0), a(H, { key: 1 }, V(n.value, (t) => (i(), g(m, {
|
|
4838
4844
|
key: t.id,
|
|
4839
4845
|
is: t.component,
|
|
4840
4846
|
survey: s.survey,
|
|
@@ -4843,7 +4849,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4843
4849
|
}, null, 8, ["is", "survey", "container", "model"]))), 128))
|
|
4844
4850
|
], 64)) : p("", !0);
|
|
4845
4851
|
}
|
|
4846
|
-
}),
|
|
4852
|
+
}), fo = ["aria-label"], Y = /* @__PURE__ */ y({
|
|
4847
4853
|
__name: "Progress",
|
|
4848
4854
|
props: {
|
|
4849
4855
|
survey: {},
|
|
@@ -4851,7 +4857,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4851
4857
|
css: {}
|
|
4852
4858
|
},
|
|
4853
4859
|
setup(u) {
|
|
4854
|
-
const e = u, n =
|
|
4860
|
+
const e = u, n = M(() => e.survey.progressValue + "%"), s = (t) => me.getProgressTextInBarCss(t), o = (t) => me.getProgressTextUnderBarCss(t);
|
|
4855
4861
|
return (t, l) => (i(), a("div", {
|
|
4856
4862
|
class: r(t.survey.getProgressCssClasses(t.container))
|
|
4857
4863
|
}, [
|
|
@@ -4866,13 +4872,13 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4866
4872
|
v("span", {
|
|
4867
4873
|
class: r(s(t.survey.css))
|
|
4868
4874
|
}, I(t.survey.progressText), 3)
|
|
4869
|
-
], 14,
|
|
4875
|
+
], 14, fo),
|
|
4870
4876
|
v("span", {
|
|
4871
4877
|
class: r(o(t.survey.css))
|
|
4872
4878
|
}, I(t.survey.progressText), 3)
|
|
4873
4879
|
], 2));
|
|
4874
4880
|
}
|
|
4875
|
-
}),
|
|
4881
|
+
}), Ho = ["aria-label"], Mo = ["title"], Io = ["onClick", "data-page-number"], Vo = ["title"], So = ["title"], Ro = ["title"], To = /* @__PURE__ */ y({
|
|
4876
4882
|
__name: "ProgressButtons",
|
|
4877
4883
|
props: {
|
|
4878
4884
|
survey: {},
|
|
@@ -4880,15 +4886,15 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4880
4886
|
container: {}
|
|
4881
4887
|
},
|
|
4882
4888
|
setup(u) {
|
|
4883
|
-
const e = u, n = f(!1), s = f(!1), o = f(!1), t = f(!0), l = f(), d =
|
|
4889
|
+
const e = u, n = f(!1), s = f(!1), o = f(!1), t = f(!0), l = f(), d = M(() => e.survey.css);
|
|
4884
4890
|
let C = null;
|
|
4885
4891
|
const L = (h) => {
|
|
4886
4892
|
let q = l.value;
|
|
4887
4893
|
q.scrollLeft += (h ? -1 : 1) * 70;
|
|
4888
4894
|
};
|
|
4889
|
-
return
|
|
4895
|
+
return B(() => {
|
|
4890
4896
|
const h = l.value;
|
|
4891
|
-
C = new
|
|
4897
|
+
C = new Ge(e.model, h, {
|
|
4892
4898
|
onResize: (q) => {
|
|
4893
4899
|
t.value = q, s.value = !q;
|
|
4894
4900
|
},
|
|
@@ -4898,7 +4904,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4898
4904
|
onUpdateSettings: () => {
|
|
4899
4905
|
t.value = e.model.showItemTitles, o.value = !e.model.showItemTitles;
|
|
4900
4906
|
},
|
|
4901
|
-
container:
|
|
4907
|
+
container: M(() => e.container)
|
|
4902
4908
|
});
|
|
4903
4909
|
}), O(() => {
|
|
4904
4910
|
C.dispose();
|
|
@@ -4917,7 +4923,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4917
4923
|
v("div", {
|
|
4918
4924
|
class: r(h.survey.css.progressButtonsPageTitle),
|
|
4919
4925
|
title: h.model.headerText
|
|
4920
|
-
}, I(h.model.headerText), 11,
|
|
4926
|
+
}, I(h.model.headerText), 11, Mo)
|
|
4921
4927
|
], 2)) : p("", !0),
|
|
4922
4928
|
v("div", {
|
|
4923
4929
|
class: r(d.value.progressButtonsContainer)
|
|
@@ -4935,7 +4941,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4935
4941
|
v("ul", {
|
|
4936
4942
|
class: r(d.value.progressButtonsList)
|
|
4937
4943
|
}, [
|
|
4938
|
-
(i(!0), a(
|
|
4944
|
+
(i(!0), a(H, null, V(h.survey.visiblePages, (b, R) => (i(), a("li", {
|
|
4939
4945
|
key: "listelement" + R,
|
|
4940
4946
|
class: r(h.model.getListElementCss(R)),
|
|
4941
4947
|
onClick: (N) => h.model.isListElementClickable(R) ? h.model.clickListElement(b) : null,
|
|
@@ -4953,12 +4959,12 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4953
4959
|
is: "survey-string",
|
|
4954
4960
|
locString: b.locNavigationTitle
|
|
4955
4961
|
}, null, 8, ["locString"])
|
|
4956
|
-
], 10,
|
|
4962
|
+
], 10, Vo)) : p("", !0),
|
|
4957
4963
|
t.value ? (i(), a("div", {
|
|
4958
4964
|
key: 1,
|
|
4959
4965
|
class: r(d.value.progressButtonsPageDescription),
|
|
4960
4966
|
title: b.locNavigationDescription.renderedHtml
|
|
4961
|
-
}, I(b.locNavigationDescription.renderedHtml), 11,
|
|
4967
|
+
}, I(b.locNavigationDescription.renderedHtml), 11, So)) : p("", !0),
|
|
4962
4968
|
v("div", {
|
|
4963
4969
|
class: r(d.value.progressButtonsButton)
|
|
4964
4970
|
}, [
|
|
@@ -4970,7 +4976,7 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4970
4976
|
}, null, 2),
|
|
4971
4977
|
v("span", null, I(h.model.getItemNumber(b)), 1)
|
|
4972
4978
|
], 2)
|
|
4973
|
-
], 10,
|
|
4979
|
+
], 10, Io))), 128))
|
|
4974
4980
|
], 2)
|
|
4975
4981
|
], 2),
|
|
4976
4982
|
v("div", {
|
|
@@ -4986,11 +4992,11 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4986
4992
|
v("div", {
|
|
4987
4993
|
class: r(h.survey.css.progressButtonsPageTitle),
|
|
4988
4994
|
title: h.model.footerText
|
|
4989
|
-
}, I(h.model.footerText), 11,
|
|
4995
|
+
}, I(h.model.footerText), 11, Ro)
|
|
4990
4996
|
], 2)) : p("", !0)
|
|
4991
|
-
], 14,
|
|
4997
|
+
], 14, Ho));
|
|
4992
4998
|
}
|
|
4993
|
-
}),
|
|
4999
|
+
}), Bo = /* @__PURE__ */ y({
|
|
4994
5000
|
__name: "ProgressToc",
|
|
4995
5001
|
props: {
|
|
4996
5002
|
survey: {},
|
|
@@ -4998,12 +5004,12 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
4998
5004
|
},
|
|
4999
5005
|
setup(u) {
|
|
5000
5006
|
const e = u;
|
|
5001
|
-
return
|
|
5007
|
+
return B(() => {
|
|
5002
5008
|
e.model.updateStickyTOCSize(e.survey.rootElement);
|
|
5003
5009
|
}), (n, s) => (i(), a("div", {
|
|
5004
5010
|
class: r(n.model.containerCss)
|
|
5005
5011
|
}, [
|
|
5006
|
-
n.model.isMobile ?
|
|
5012
|
+
n.model.isMobile ? Z((i(), a("div", {
|
|
5007
5013
|
key: 0,
|
|
5008
5014
|
onClick: s[0] || (s[0] = //@ts-ignore
|
|
5009
5015
|
(...o) => n.model.togglePopup && n.model.togglePopup(...o))
|
|
@@ -5028,11 +5034,11 @@ const Ft = /* @__PURE__ */ Dt(At, [["render", Wt]]), Ot = /* @__PURE__ */ v("use
|
|
|
5028
5034
|
}
|
|
5029
5035
|
});
|
|
5030
5036
|
/*!
|
|
5031
|
-
* surveyjs - Survey JavaScript library v2.
|
|
5037
|
+
* surveyjs - Survey JavaScript library v2.3.0
|
|
5032
5038
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
5033
5039
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5034
5040
|
*/
|
|
5035
|
-
var
|
|
5041
|
+
var Zo = {
|
|
5036
5042
|
modernbooleancheckchecked: '<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><polygon points="19,10 14,10 14,5 10,5 10,10 5,10 5,14 10,14 10,19 14,19 14,14 19,14 "></polygon></svg>',
|
|
5037
5043
|
modernbooleancheckind: '<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M22,0H2C0.9,0,0,0.9,0,2v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V2C24,0.9,23.1,0,22,0z M21,18L6,3h15V18z M3,6l15,15H3V6z"></path></svg>',
|
|
5038
5044
|
modernbooleancheckunchecked: '<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><rect x="5" y="10" width="14" height="4"></rect></svg>',
|
|
@@ -5096,11 +5102,11 @@ var To = {
|
|
|
5096
5102
|
"smiley-rate9-24x24": '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z"></path></svg>'
|
|
5097
5103
|
};
|
|
5098
5104
|
/*!
|
|
5099
|
-
* surveyjs - Survey JavaScript library v2.
|
|
5105
|
+
* surveyjs - Survey JavaScript library v2.3.0
|
|
5100
5106
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
5101
5107
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5102
5108
|
*/
|
|
5103
|
-
var
|
|
5109
|
+
var fe = {
|
|
5104
5110
|
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>',
|
|
5105
5111
|
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>',
|
|
5106
5112
|
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>',
|
|
@@ -5163,34 +5169,34 @@ var ke = {
|
|
|
5163
5169
|
"smiley-rate8-24x24": '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85721 24 1.15412 20.96 0.0134987 14.16C-0.0765501 13.62 0.293651 13.1 0.833944 13.01C1.38424 12.92 1.89452 13.29 1.98457 13.83C2.92508 19.47 7.69767 21.99 12 21.99C16.3023 21.99 21.0749 19.47 22.0154 13.83C22.1055 13.29 22.6158 12.92 23.1661 13.01C23.7063 13.1 24.0765 13.62 23.9865 14.16C22.8559 20.95 17.1428 24 11.99 24H12.01ZM8.00783 6V2C8.00783 1.45 7.55759 1 7.00729 1C6.45699 1 6.00675 1.45 6.00675 2V6C6.00675 6.55 6.45699 7 7.00729 7C7.55759 7 8.00783 6.55 8.00783 6ZM18.0133 6V2C18.0133 1.45 17.563 1 17.0127 1C16.4624 1 16.0122 1.45 16.0122 2V6C16.0122 6.55 16.4624 7 17.0127 7C17.563 7 18.0133 6.55 18.0133 6Z"></path></svg>',
|
|
5164
5170
|
"smiley-rate9-24x24": '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z"></path></svg>'
|
|
5165
5171
|
};
|
|
5166
|
-
const
|
|
5172
|
+
const $o = ["lang", "dir"], Do = { onsubmit: "return false;" }, Ao = {
|
|
5167
5173
|
key: 0,
|
|
5168
5174
|
class: "sv_custom_header"
|
|
5169
|
-
},
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
_.registerIcons(
|
|
5173
|
-
const
|
|
5175
|
+
}, Po = { class: "sv-components-column sv-components-column--expandable" }, No = ["id"], Eo = { key: 2 }, Wo = ["innerHTML"], Fo = ["innerHTML"], Oo = ["innerHTML"];
|
|
5176
|
+
be("v1", Zo);
|
|
5177
|
+
be("v2", fe);
|
|
5178
|
+
_.registerIcons(fe);
|
|
5179
|
+
const le = /* @__PURE__ */ y({
|
|
5174
5180
|
__name: "Survey",
|
|
5175
5181
|
props: {
|
|
5176
5182
|
model: {},
|
|
5177
5183
|
survey: {}
|
|
5178
5184
|
},
|
|
5179
5185
|
setup(u) {
|
|
5180
|
-
const e = u, n = f(), s = f(""), o = f(1), t =
|
|
5186
|
+
const e = u, n = f(), s = f(""), o = f(1), t = M(() => {
|
|
5181
5187
|
const R = e.survey ? e.survey : e.model;
|
|
5182
|
-
return
|
|
5183
|
-
}), l =
|
|
5188
|
+
return Ae(R);
|
|
5189
|
+
}), l = M(() => t.value.activePage ? t.value.activePage.id : ""), d = () => {
|
|
5184
5190
|
const R = l.value;
|
|
5185
5191
|
return !!t.value && R + o.value.toString();
|
|
5186
|
-
}, C =
|
|
5192
|
+
}, C = M(
|
|
5187
5193
|
() => t.value.showCompletedPage && t.value.state === "completed"
|
|
5188
|
-
), L =
|
|
5194
|
+
), L = M(() => t.value.css), h = M(() => "page" + d()), q = () => C.value ? (s.value || (s.value = t.value.processedCompletedHtml), s.value) : "", b = (R) => {
|
|
5189
5195
|
if (R) {
|
|
5190
5196
|
var N = n.value;
|
|
5191
5197
|
N && R.afterRenderSurvey(N), R.renderCallback = () => {
|
|
5192
5198
|
var K, j;
|
|
5193
|
-
o.value++, (j = (K =
|
|
5199
|
+
o.value++, (j = (K = qe()) == null ? void 0 : K.proxy) == null || j.$forceUpdate();
|
|
5194
5200
|
}, R.startTimerFromUI();
|
|
5195
5201
|
}
|
|
5196
5202
|
};
|
|
@@ -5202,7 +5208,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5202
5208
|
(R) => {
|
|
5203
5209
|
R.stopTimer(), R.renderCallback = void 0;
|
|
5204
5210
|
}
|
|
5205
|
-
),
|
|
5211
|
+
), B(() => {
|
|
5206
5212
|
b(t.value);
|
|
5207
5213
|
}), P(() => {
|
|
5208
5214
|
t.value.stopTimer(), t.value.beforeDestroySurveyElement(), t.value.renderCallback = void 0;
|
|
@@ -5232,13 +5238,13 @@ const ae = /* @__PURE__ */ y({
|
|
|
5232
5238
|
class: r(L.value.rootBackgroundImage),
|
|
5233
5239
|
style: k(t.value.backgroundImageStyle)
|
|
5234
5240
|
}, null, 6)) : p("", !0),
|
|
5235
|
-
v("form",
|
|
5241
|
+
v("form", Do, [
|
|
5236
5242
|
c(m, {
|
|
5237
5243
|
is: "sv-scroll",
|
|
5238
5244
|
disabled: t.value.formScrollDisabled
|
|
5239
5245
|
}, {
|
|
5240
5246
|
default: D(() => [
|
|
5241
|
-
t.value.hasLogo ? p("", !0) : (i(), a("div",
|
|
5247
|
+
t.value.hasLogo ? p("", !0) : (i(), a("div", Ao)),
|
|
5242
5248
|
v("div", {
|
|
5243
5249
|
class: r(L.value.container)
|
|
5244
5250
|
}, [
|
|
@@ -5263,7 +5269,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5263
5269
|
container: "left",
|
|
5264
5270
|
needRenderWrapper: !0
|
|
5265
5271
|
}, null, 8, ["survey"]),
|
|
5266
|
-
v("div",
|
|
5272
|
+
v("div", Po, [
|
|
5267
5273
|
c(m, {
|
|
5268
5274
|
is: "sv-components-container",
|
|
5269
5275
|
survey: t.value,
|
|
@@ -5298,7 +5304,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5298
5304
|
key: 0,
|
|
5299
5305
|
is: "sv-brand-info"
|
|
5300
5306
|
})) : p("", !0)
|
|
5301
|
-
], 14,
|
|
5307
|
+
], 14, No)
|
|
5302
5308
|
]),
|
|
5303
5309
|
c(m, {
|
|
5304
5310
|
is: "sv-components-container",
|
|
@@ -5313,11 +5319,11 @@ const ae = /* @__PURE__ */ y({
|
|
|
5313
5319
|
container: "footer",
|
|
5314
5320
|
needRenderWrapper: !1
|
|
5315
5321
|
}, null, 8, ["survey"]),
|
|
5316
|
-
C.value ? (i(), a("div",
|
|
5322
|
+
C.value ? (i(), a("div", Eo, [
|
|
5317
5323
|
v("div", {
|
|
5318
5324
|
innerHTML: q(),
|
|
5319
5325
|
class: r(t.value.completedCss)
|
|
5320
|
-
}, null, 10,
|
|
5326
|
+
}, null, 10, Wo),
|
|
5321
5327
|
c(m, {
|
|
5322
5328
|
is: "sv-components-container",
|
|
5323
5329
|
survey: t.value,
|
|
@@ -5329,12 +5335,12 @@ const ae = /* @__PURE__ */ y({
|
|
|
5329
5335
|
key: 3,
|
|
5330
5336
|
class: r(t.value.completedBeforeCss),
|
|
5331
5337
|
innerHTML: t.value.processedCompletedBeforeHtml
|
|
5332
|
-
}, null, 10,
|
|
5338
|
+
}, null, 10, Fo)) : p("", !0),
|
|
5333
5339
|
t.value.state === "loading" ? (i(), a("div", {
|
|
5334
5340
|
key: 4,
|
|
5335
5341
|
class: r(t.value.loadingBodyCss),
|
|
5336
5342
|
innerHTML: t.value.processedLoadingHtml
|
|
5337
|
-
}, null, 10,
|
|
5343
|
+
}, null, 10, Oo)) : p("", !0),
|
|
5338
5344
|
t.value.state === "empty" ? (i(), a("div", {
|
|
5339
5345
|
key: 5,
|
|
5340
5346
|
class: r(L.value.bodyEmpty)
|
|
@@ -5352,9 +5358,9 @@ const ae = /* @__PURE__ */ y({
|
|
|
5352
5358
|
]),
|
|
5353
5359
|
_: 1
|
|
5354
5360
|
}, 8, ["disabled"])
|
|
5355
|
-
], 14,
|
|
5361
|
+
], 14, $o));
|
|
5356
5362
|
}
|
|
5357
|
-
}),
|
|
5363
|
+
}), zo = /* @__PURE__ */ y({
|
|
5358
5364
|
__name: "Notifier",
|
|
5359
5365
|
props: {
|
|
5360
5366
|
model: {}
|
|
@@ -5375,23 +5381,24 @@ const ae = /* @__PURE__ */ y({
|
|
|
5375
5381
|
}, null, 8, ["model"])
|
|
5376
5382
|
], 6)) : p("", !0);
|
|
5377
5383
|
}
|
|
5378
|
-
}),
|
|
5384
|
+
}), Uo = { key: 0 }, Qo = /* @__PURE__ */ y({
|
|
5379
5385
|
__name: "QuestionOther",
|
|
5380
5386
|
props: {
|
|
5381
|
-
question: {}
|
|
5387
|
+
question: {},
|
|
5388
|
+
item: {}
|
|
5382
5389
|
},
|
|
5383
5390
|
setup(u) {
|
|
5384
5391
|
return (e, n) => (i(), a("div", {
|
|
5385
5392
|
class: r(e.question.getCommentAreaCss(!0))
|
|
5386
5393
|
}, [
|
|
5387
|
-
e.question.isReadOnlyRenderDiv() ? (i(), a("div",
|
|
5394
|
+
e.question.isReadOnlyRenderDiv() ? (i(), a("div", Uo, I(e.question.getCommentValue(e.item)), 1)) : (i(), g(m, {
|
|
5388
5395
|
key: 1,
|
|
5389
5396
|
is: "sv-text-area",
|
|
5390
|
-
model: e.question.
|
|
5397
|
+
model: e.question.getCommentTextAreaModel(e.item)
|
|
5391
5398
|
}, null, 8, ["model"]))
|
|
5392
5399
|
], 2));
|
|
5393
5400
|
}
|
|
5394
|
-
}),
|
|
5401
|
+
}), Ko = ["disabled", "value", "title"], jo = /* @__PURE__ */ y({
|
|
5395
5402
|
__name: "SurveyNavigationButton",
|
|
5396
5403
|
props: {
|
|
5397
5404
|
item: {}
|
|
@@ -5408,9 +5415,9 @@ const ae = /* @__PURE__ */ y({
|
|
|
5408
5415
|
onMousedown: n,
|
|
5409
5416
|
onClick: o[0] || (o[0] = //@ts-ignore
|
|
5410
5417
|
(...t) => s.item.action && s.item.action(...t))
|
|
5411
|
-
}, null, 42,
|
|
5418
|
+
}, null, 42, Ko)) : p("", !0);
|
|
5412
5419
|
}
|
|
5413
|
-
}),
|
|
5420
|
+
}), He = /* @__PURE__ */ y({
|
|
5414
5421
|
__name: "PopupSurvey",
|
|
5415
5422
|
props: {
|
|
5416
5423
|
survey: {},
|
|
@@ -5437,7 +5444,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5437
5444
|
const C = W(
|
|
5438
5445
|
() => e.survey,
|
|
5439
5446
|
(L) => {
|
|
5440
|
-
const h = new
|
|
5447
|
+
const h = new Xe(null, L);
|
|
5441
5448
|
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;
|
|
5442
5449
|
},
|
|
5443
5450
|
{
|
|
@@ -5519,24 +5526,24 @@ const ae = /* @__PURE__ */ y({
|
|
|
5519
5526
|
v("div", {
|
|
5520
5527
|
class: r(n.value.cssBody)
|
|
5521
5528
|
}, [
|
|
5522
|
-
c(
|
|
5529
|
+
c(le, { survey: L.survey }, null, 8, ["survey"])
|
|
5523
5530
|
], 2)
|
|
5524
5531
|
], 2)
|
|
5525
5532
|
], 38)) : p("", !0);
|
|
5526
5533
|
}
|
|
5527
|
-
}),
|
|
5534
|
+
}), Go = ["innerHTML"], Xo = /* @__PURE__ */ y({
|
|
5528
5535
|
__name: "CustomWidget",
|
|
5529
5536
|
props: {
|
|
5530
5537
|
question: {},
|
|
5531
5538
|
css: {}
|
|
5532
5539
|
},
|
|
5533
5540
|
setup(u) {
|
|
5534
|
-
const e = u, n = f(), s =
|
|
5541
|
+
const e = u, n = f(), s = M(
|
|
5535
5542
|
() => e.question.customWidget.isDefaultRender
|
|
5536
|
-
), o =
|
|
5543
|
+
), o = M(
|
|
5537
5544
|
() => !!e.question.customWidget.htmlTemplate
|
|
5538
|
-
), t =
|
|
5539
|
-
return
|
|
5545
|
+
), t = M(() => e.question.customWidget.htmlTemplate), l = M(() => "survey-" + e.question.getTemplate());
|
|
5546
|
+
return B(() => {
|
|
5540
5547
|
e.question.customWidget.afterRender(e.question, n.value);
|
|
5541
5548
|
}), O(() => {
|
|
5542
5549
|
e.question.customWidget.willUnmount(e.question, n.value);
|
|
@@ -5547,7 +5554,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5547
5554
|
o.value ? (i(), a("div", {
|
|
5548
5555
|
key: 0,
|
|
5549
5556
|
innerHTML: t.value
|
|
5550
|
-
}, null, 8,
|
|
5557
|
+
}, null, 8, Go)) : p("", !0),
|
|
5551
5558
|
s.value ? (i(), g(m, {
|
|
5552
5559
|
key: 1,
|
|
5553
5560
|
is: l.value,
|
|
@@ -5556,12 +5563,12 @@ const ae = /* @__PURE__ */ y({
|
|
|
5556
5563
|
}, null, 8, ["is", "question", "css"])) : p("", !0)
|
|
5557
5564
|
], 512));
|
|
5558
5565
|
}
|
|
5559
|
-
}),
|
|
5566
|
+
}), Jo = /* @__PURE__ */ y({
|
|
5560
5567
|
__name: "PopupModal",
|
|
5561
5568
|
setup(u) {
|
|
5562
5569
|
const e = E();
|
|
5563
5570
|
function n(s, o) {
|
|
5564
|
-
const t =
|
|
5571
|
+
const t = Je(
|
|
5565
5572
|
s,
|
|
5566
5573
|
o
|
|
5567
5574
|
), l = (d, C) => {
|
|
@@ -5569,9 +5576,9 @@ const ae = /* @__PURE__ */ y({
|
|
|
5569
5576
|
};
|
|
5570
5577
|
return t.onVisibilityChanged.add(l), t.model.isVisible = !0, e.value = t, t;
|
|
5571
5578
|
}
|
|
5572
|
-
return
|
|
5573
|
-
|
|
5574
|
-
})), (s, o) => e.value ? (i(), g(
|
|
5579
|
+
return ne.showDialog || (ne.showDialog = n, P(() => {
|
|
5580
|
+
ne.showDialog = void 0;
|
|
5581
|
+
})), (s, o) => e.value ? (i(), g(Pe, {
|
|
5575
5582
|
key: 0,
|
|
5576
5583
|
to: e.value.container
|
|
5577
5584
|
}, [
|
|
@@ -5581,7 +5588,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5581
5588
|
}, null, 8, ["model"])
|
|
5582
5589
|
], 8, ["to"])) : p("", !0);
|
|
5583
5590
|
}
|
|
5584
|
-
}),
|
|
5591
|
+
}), Yo = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], _o = /* @__PURE__ */ y({
|
|
5585
5592
|
__name: "TextArea",
|
|
5586
5593
|
props: {
|
|
5587
5594
|
model: {},
|
|
@@ -5592,8 +5599,8 @@ const ae = /* @__PURE__ */ y({
|
|
|
5592
5599
|
null
|
|
5593
5600
|
), s = function(t) {
|
|
5594
5601
|
n.value = t, e.getRef && e.getRef(t);
|
|
5595
|
-
}, o =
|
|
5596
|
-
return
|
|
5602
|
+
}, o = M(() => e.model.getTextValue() || "");
|
|
5603
|
+
return B(() => {
|
|
5597
5604
|
e.model.setElement(n.value);
|
|
5598
5605
|
}), z(() => {
|
|
5599
5606
|
e.model.setElement(n.value);
|
|
@@ -5632,9 +5639,9 @@ const ae = /* @__PURE__ */ y({
|
|
|
5632
5639
|
"aria-invalid": t.model.ariaInvalid,
|
|
5633
5640
|
"aria-errormessage": t.model.ariaErrormessage,
|
|
5634
5641
|
style: k({ resize: t.model.question.resizeStyle })
|
|
5635
|
-
}, null, 46,
|
|
5642
|
+
}, null, 46, Yo));
|
|
5636
5643
|
}
|
|
5637
|
-
}),
|
|
5644
|
+
}), xo = /* @__PURE__ */ y({
|
|
5638
5645
|
__name: "CharacterCounter",
|
|
5639
5646
|
props: {
|
|
5640
5647
|
counter: {},
|
|
@@ -5646,7 +5653,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5646
5653
|
class: r(n.remainingCharacterCounter)
|
|
5647
5654
|
}, I(n.counter.remainingCharacterCounter), 3));
|
|
5648
5655
|
}
|
|
5649
|
-
}),
|
|
5656
|
+
}), ei = /* @__PURE__ */ y({
|
|
5650
5657
|
inheritAttrs: !1,
|
|
5651
5658
|
__name: "Composite",
|
|
5652
5659
|
props: {
|
|
@@ -5656,7 +5663,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5656
5663
|
setup(u) {
|
|
5657
5664
|
const e = u, n = f(null);
|
|
5658
5665
|
T(e, n);
|
|
5659
|
-
const s =
|
|
5666
|
+
const s = M(() => e.question.contentPanel);
|
|
5660
5667
|
return (o, t) => (i(), g(m, {
|
|
5661
5668
|
is: "survey-panel",
|
|
5662
5669
|
ref_key: "root",
|
|
@@ -5665,7 +5672,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5665
5672
|
css: o.css
|
|
5666
5673
|
}, null, 8, ["element", "css"]));
|
|
5667
5674
|
}
|
|
5668
|
-
}),
|
|
5675
|
+
}), si = /* @__PURE__ */ y({
|
|
5669
5676
|
inheritAttrs: !1,
|
|
5670
5677
|
__name: "Custom",
|
|
5671
5678
|
props: {
|
|
@@ -5675,7 +5682,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5675
5682
|
setup(u) {
|
|
5676
5683
|
const e = u, n = f(null);
|
|
5677
5684
|
T(e, n);
|
|
5678
|
-
const s =
|
|
5685
|
+
const s = M(() => e.question.contentQuestion), o = (t) => ie(t);
|
|
5679
5686
|
return (t, l) => (i(), g(m, {
|
|
5680
5687
|
ref: n.value,
|
|
5681
5688
|
is: o(s.value),
|
|
@@ -5683,16 +5690,16 @@ const ae = /* @__PURE__ */ y({
|
|
|
5683
5690
|
css: t.css
|
|
5684
5691
|
}, null, 8, ["is", "question", "css"]));
|
|
5685
5692
|
}
|
|
5686
|
-
}),
|
|
5687
|
-
|
|
5688
|
-
],
|
|
5693
|
+
}), ni = /* @__PURE__ */ v("use", { "xlink:href": "#icon-timercircle" }, null, -1), ti = [
|
|
5694
|
+
ni
|
|
5695
|
+
], Ce = 440, oi = /* @__PURE__ */ y({
|
|
5689
5696
|
__name: "TimerPanel",
|
|
5690
5697
|
props: {
|
|
5691
5698
|
model: {},
|
|
5692
5699
|
css: {}
|
|
5693
5700
|
},
|
|
5694
5701
|
setup(u) {
|
|
5695
|
-
const e = u, n =
|
|
5702
|
+
const e = u, n = M(() => Ce * e.model.progress), s = M(() => e.model.text);
|
|
5696
5703
|
return S(() => e.model), (o, t) => o.model.isRunning && o.model.showTimerAsClock ? (i(), a("div", {
|
|
5697
5704
|
key: 0,
|
|
5698
5705
|
class: r(o.model.rootCss)
|
|
@@ -5700,8 +5707,8 @@ const ae = /* @__PURE__ */ y({
|
|
|
5700
5707
|
o.model.showProgress ? (i(), a("svg", {
|
|
5701
5708
|
key: 0,
|
|
5702
5709
|
class: r(o.model.getProgressCss()),
|
|
5703
|
-
style: k({ strokeDasharray:
|
|
5704
|
-
},
|
|
5710
|
+
style: k({ strokeDasharray: Ce, strokeDashoffset: n.value })
|
|
5711
|
+
}, ti, 6)) : p("", !0),
|
|
5705
5712
|
v("div", {
|
|
5706
5713
|
class: r(o.model.textContainerCss)
|
|
5707
5714
|
}, [
|
|
@@ -5713,17 +5720,17 @@ const ae = /* @__PURE__ */ y({
|
|
|
5713
5720
|
class: r(o.model.minorTextCss)
|
|
5714
5721
|
}, I(o.model.clockMinorText), 3)) : p("", !0)
|
|
5715
5722
|
], 2)
|
|
5716
|
-
], 2)) :
|
|
5723
|
+
], 2)) : Z((i(), a("div", {
|
|
5717
5724
|
key: 1,
|
|
5718
5725
|
class: r(o.model.survey.getCss().timerRoot)
|
|
5719
5726
|
}, I(s.value), 3)), [
|
|
5720
5727
|
[A, o.model.isRunning && !o.model.showTimerAsClock]
|
|
5721
5728
|
]);
|
|
5722
5729
|
}
|
|
5723
|
-
}),
|
|
5730
|
+
}), ii = { class: "sd-loading-indicator" }, ri = /* @__PURE__ */ y({
|
|
5724
5731
|
__name: "LoadingIndicator",
|
|
5725
5732
|
setup(u) {
|
|
5726
|
-
return (e, n) => (i(), a("div",
|
|
5733
|
+
return (e, n) => (i(), a("div", ii, [
|
|
5727
5734
|
c(m, {
|
|
5728
5735
|
is: "sv-svg-icon",
|
|
5729
5736
|
iconName: "icon-loading",
|
|
@@ -5731,7 +5738,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5731
5738
|
})
|
|
5732
5739
|
]));
|
|
5733
5740
|
}
|
|
5734
|
-
}),
|
|
5741
|
+
}), li = { key: 2 }, ai = /* @__PURE__ */ y({
|
|
5735
5742
|
__name: "Header",
|
|
5736
5743
|
props: {
|
|
5737
5744
|
model: {},
|
|
@@ -5742,7 +5749,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5742
5749
|
return S(() => {
|
|
5743
5750
|
const n = e.model;
|
|
5744
5751
|
return n.survey = e.survey, e.model;
|
|
5745
|
-
}),
|
|
5752
|
+
}), B(() => {
|
|
5746
5753
|
e.model.processResponsiveness();
|
|
5747
5754
|
}), z(() => {
|
|
5748
5755
|
e.model.processResponsiveness();
|
|
@@ -5761,13 +5768,13 @@ const ae = /* @__PURE__ */ y({
|
|
|
5761
5768
|
class: r(n.model.contentClasses),
|
|
5762
5769
|
style: k({ maxWidth: n.model.maxWidth })
|
|
5763
5770
|
}, [
|
|
5764
|
-
(i(!0), a(
|
|
5771
|
+
(i(!0), a(H, null, V(n.model.cells, (o, t) => (i(), g(m, {
|
|
5765
5772
|
is: "sv-header-cell",
|
|
5766
5773
|
model: o,
|
|
5767
5774
|
key: t
|
|
5768
5775
|
}, null, 8, ["model"]))), 128))
|
|
5769
5776
|
], 6)),
|
|
5770
|
-
n.survey.isMobile ? (i(), a("div",
|
|
5777
|
+
n.survey.isMobile ? (i(), a("div", li, [
|
|
5771
5778
|
c(m, {
|
|
5772
5779
|
is: "sv-header-mobile",
|
|
5773
5780
|
model: n.model
|
|
@@ -5775,10 +5782,10 @@ const ae = /* @__PURE__ */ y({
|
|
|
5775
5782
|
])) : p("", !0)
|
|
5776
5783
|
], 6)) : p("", !0);
|
|
5777
5784
|
}
|
|
5778
|
-
}),
|
|
5785
|
+
}), ui = {
|
|
5779
5786
|
key: 0,
|
|
5780
5787
|
class: "sv-header__logo"
|
|
5781
|
-
},
|
|
5788
|
+
}, di = ["src", "width", "height", "alt"], mi = /* @__PURE__ */ y({
|
|
5782
5789
|
__name: "HeaderCell",
|
|
5783
5790
|
props: {
|
|
5784
5791
|
model: {}
|
|
@@ -5792,7 +5799,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5792
5799
|
class: "sv-header__cell-content",
|
|
5793
5800
|
style: k(e.model.contentStyle)
|
|
5794
5801
|
}, [
|
|
5795
|
-
e.model.showLogo ? (i(), a("div",
|
|
5802
|
+
e.model.showLogo ? (i(), a("div", ui, [
|
|
5796
5803
|
v("div", {
|
|
5797
5804
|
class: r(e.model.survey.logoClassNames)
|
|
5798
5805
|
}, [
|
|
@@ -5803,7 +5810,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5803
5810
|
height: e.model.survey.renderedLogoHeight,
|
|
5804
5811
|
alt: e.model.survey.locTitle.renderedHtml,
|
|
5805
5812
|
style: k({ objectFit: e.model.survey.logoFit, width: e.model.survey.renderedStyleLogoWidth, height: e.model.survey.renderedStyleLogoHeight })
|
|
5806
|
-
}, null, 14,
|
|
5813
|
+
}, null, 14, di)
|
|
5807
5814
|
], 2)
|
|
5808
5815
|
])) : p("", !0),
|
|
5809
5816
|
e.model.showTitle ? (i(), a("div", {
|
|
@@ -5835,17 +5842,17 @@ const ae = /* @__PURE__ */ y({
|
|
|
5835
5842
|
], 4)
|
|
5836
5843
|
], 6));
|
|
5837
5844
|
}
|
|
5838
|
-
}),
|
|
5845
|
+
}), pi = { class: "sv-header--mobile" }, vi = {
|
|
5839
5846
|
key: 0,
|
|
5840
5847
|
class: "sv-header__logo"
|
|
5841
|
-
},
|
|
5848
|
+
}, Ci = ["src", "width", "height", "alt"], ci = /* @__PURE__ */ y({
|
|
5842
5849
|
__name: "HeaderMobile",
|
|
5843
5850
|
props: {
|
|
5844
5851
|
model: {}
|
|
5845
5852
|
},
|
|
5846
5853
|
setup(u) {
|
|
5847
|
-
return (e, n) => (i(), a("div",
|
|
5848
|
-
e.model.survey.hasLogo ? (i(), a("div",
|
|
5854
|
+
return (e, n) => (i(), a("div", pi, [
|
|
5855
|
+
e.model.survey.hasLogo ? (i(), a("div", vi, [
|
|
5849
5856
|
v("div", {
|
|
5850
5857
|
class: r(e.model.survey.logoClassNames)
|
|
5851
5858
|
}, [
|
|
@@ -5856,7 +5863,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5856
5863
|
height: e.model.survey.renderedLogoHeight,
|
|
5857
5864
|
alt: e.model.survey.locTitle.renderedHtml,
|
|
5858
5865
|
style: k({ objectFit: e.model.survey.logoFit, width: e.model.survey.renderedStyleLogoWidth, height: e.model.survey.renderedStyleLogoHeight })
|
|
5859
|
-
}, null, 14,
|
|
5866
|
+
}, null, 14, Ci)
|
|
5860
5867
|
], 2)
|
|
5861
5868
|
])) : p("", !0),
|
|
5862
5869
|
e.model.survey.hasTitle ? (i(), a("div", {
|
|
@@ -5887,7 +5894,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5887
5894
|
], 4)) : p("", !0)
|
|
5888
5895
|
]));
|
|
5889
5896
|
}
|
|
5890
|
-
}),
|
|
5897
|
+
}), gi = /* @__PURE__ */ y({
|
|
5891
5898
|
__name: "Element",
|
|
5892
5899
|
props: {
|
|
5893
5900
|
element: {},
|
|
@@ -5895,7 +5902,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5895
5902
|
css: {}
|
|
5896
5903
|
},
|
|
5897
5904
|
setup(u) {
|
|
5898
|
-
const e = u, n = f(), s = (C) => C.isPanel ? "survey-panel" : "survey-question", o =
|
|
5905
|
+
const e = u, n = f(), s = (C) => C.isPanel ? "survey-panel" : "survey-question", o = M(() => {
|
|
5899
5906
|
const C = e.element.survey;
|
|
5900
5907
|
if (C) {
|
|
5901
5908
|
const L = C.getElementWrapperComponentName(e.element);
|
|
@@ -5903,7 +5910,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5903
5910
|
return L;
|
|
5904
5911
|
}
|
|
5905
5912
|
return s(e.element);
|
|
5906
|
-
}), t = (C) => C.cssClasses ? C.rootStyle : {}, l =
|
|
5913
|
+
}), t = (C) => C.cssClasses ? C.rootStyle : {}, l = M(() => {
|
|
5907
5914
|
const C = e.element, L = C.survey;
|
|
5908
5915
|
let h;
|
|
5909
5916
|
return L && (h = L.getElementWrapperComponentData(C)), {
|
|
@@ -5922,7 +5929,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5922
5929
|
L && L.setWrapperElement(void 0), C.setWrapperElement(n.value);
|
|
5923
5930
|
}
|
|
5924
5931
|
);
|
|
5925
|
-
return
|
|
5932
|
+
return B(() => {
|
|
5926
5933
|
e.element.setWrapperElement(n.value);
|
|
5927
5934
|
}), P(() => {
|
|
5928
5935
|
e.element.setWrapperElement(void 0), d();
|
|
@@ -5943,20 +5950,20 @@ const ae = /* @__PURE__ */ y({
|
|
|
5943
5950
|
}, null, 8, ["is", "element", "css"])) : p("", !0)
|
|
5944
5951
|
], 6));
|
|
5945
5952
|
}
|
|
5946
|
-
}),
|
|
5953
|
+
}), yi = /* @__PURE__ */ y({
|
|
5947
5954
|
__name: "TemplateRenderer",
|
|
5948
5955
|
props: {
|
|
5949
5956
|
componentName: {},
|
|
5950
5957
|
componentData: {}
|
|
5951
5958
|
},
|
|
5952
5959
|
setup(u) {
|
|
5953
|
-
const e =
|
|
5960
|
+
const e = Ne(), n = M(() => !!e.default);
|
|
5954
5961
|
return (s, o) => n.value && !s.componentName ? x(s.$slots, "default", { key: 0 }) : (i(), g(m, $({
|
|
5955
5962
|
key: 1,
|
|
5956
5963
|
is: s.componentName
|
|
5957
5964
|
}, s.componentData), null, 16, ["is"]));
|
|
5958
5965
|
}
|
|
5959
|
-
}),
|
|
5966
|
+
}), hi = /* @__PURE__ */ y({
|
|
5960
5967
|
__name: "FileCleanButton",
|
|
5961
5968
|
props: {
|
|
5962
5969
|
question: {},
|
|
@@ -5979,7 +5986,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
5979
5986
|
}, null, 8, ["iconName", "title"])) : p("", !0)
|
|
5980
5987
|
], 2));
|
|
5981
5988
|
}
|
|
5982
|
-
}),
|
|
5989
|
+
}), qi = ["id"], wi = /* @__PURE__ */ y({
|
|
5983
5990
|
__name: "FileVideo",
|
|
5984
5991
|
props: {
|
|
5985
5992
|
question: {}
|
|
@@ -6001,27 +6008,27 @@ const ae = /* @__PURE__ */ y({
|
|
|
6001
6008
|
playsinline: "",
|
|
6002
6009
|
id: e.question.videoId,
|
|
6003
6010
|
class: r(e.question.cssClasses.video)
|
|
6004
|
-
}, null, 10,
|
|
6011
|
+
}, null, 10, qi),
|
|
6005
6012
|
c(m, {
|
|
6006
6013
|
is: "sv-action",
|
|
6007
6014
|
item: e.question.takePictureAction
|
|
6008
6015
|
}, null, 8, ["item"])
|
|
6009
6016
|
], 2));
|
|
6010
6017
|
}
|
|
6011
|
-
}),
|
|
6018
|
+
}), bi = ["for", "aria-label"], Li = /* @__PURE__ */ y({
|
|
6012
6019
|
__name: "FileChooseButton",
|
|
6013
6020
|
props: {
|
|
6014
6021
|
data: {},
|
|
6015
6022
|
item: {}
|
|
6016
6023
|
},
|
|
6017
6024
|
setup(u) {
|
|
6018
|
-
const e = u, n =
|
|
6025
|
+
const e = u, n = M(
|
|
6019
6026
|
() => {
|
|
6020
6027
|
var s, o;
|
|
6021
6028
|
return ((s = e.data) == null ? void 0 : s.question) || ((o = e.item) == null ? void 0 : o.data.question);
|
|
6022
6029
|
}
|
|
6023
6030
|
);
|
|
6024
|
-
return (s, o) =>
|
|
6031
|
+
return (s, o) => Z((i(), a("label", {
|
|
6025
6032
|
tabindex: "0",
|
|
6026
6033
|
class: r(n.value.getChooseFileCss()),
|
|
6027
6034
|
for: n.value.inputId,
|
|
@@ -6036,11 +6043,11 @@ const ae = /* @__PURE__ */ y({
|
|
|
6036
6043
|
size: "auto"
|
|
6037
6044
|
}, null, 8, ["title", "iconName"])) : p("", !0),
|
|
6038
6045
|
v("span", null, I(n.value.chooseButtonText), 1)
|
|
6039
|
-
], 10,
|
|
6046
|
+
], 10, bi)), [
|
|
6040
6047
|
[w(Q)]
|
|
6041
6048
|
]);
|
|
6042
6049
|
}
|
|
6043
|
-
}),
|
|
6050
|
+
}), ki = /* @__PURE__ */ y({
|
|
6044
6051
|
__name: "FilePreview",
|
|
6045
6052
|
props: {
|
|
6046
6053
|
question: {}
|
|
@@ -6050,7 +6057,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
6050
6057
|
key: 0,
|
|
6051
6058
|
class: r(e.question.cssClasses.fileList || void 0)
|
|
6052
6059
|
}, [
|
|
6053
|
-
(i(!0), a(
|
|
6060
|
+
(i(!0), a(H, null, V(e.question.renderedPages, (s) => (i(), g(m, {
|
|
6054
6061
|
is: "sv-file-page",
|
|
6055
6062
|
key: s.id,
|
|
6056
6063
|
page: s,
|
|
@@ -6058,7 +6065,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
6058
6065
|
}, null, 8, ["page", "question"]))), 128))
|
|
6059
6066
|
], 2)) : p("", !0);
|
|
6060
6067
|
}
|
|
6061
|
-
}),
|
|
6068
|
+
}), fi = /* @__PURE__ */ y({
|
|
6062
6069
|
__name: "ButtonGroup",
|
|
6063
6070
|
props: {
|
|
6064
6071
|
question: {}
|
|
@@ -6071,7 +6078,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
6071
6078
|
ref_key: "root",
|
|
6072
6079
|
ref: n
|
|
6073
6080
|
}, [
|
|
6074
|
-
(i(!0), a(
|
|
6081
|
+
(i(!0), a(H, null, V(s.question.visibleChoices, (t, l) => (i(), g(m, {
|
|
6075
6082
|
is: "sv-button-group-item",
|
|
6076
6083
|
question: s.question,
|
|
6077
6084
|
key: l,
|
|
@@ -6080,7 +6087,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
6080
6087
|
}, null, 8, ["question", "item", "index"]))), 128))
|
|
6081
6088
|
], 2));
|
|
6082
6089
|
}
|
|
6083
|
-
}),
|
|
6090
|
+
}), Hi = ["title"], Mi = ["name", "id", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "disabled", "value"], Ii = ["title"], Vi = /* @__PURE__ */ y({
|
|
6084
6091
|
__name: "ButtonGroupItem",
|
|
6085
6092
|
props: {
|
|
6086
6093
|
item: {},
|
|
@@ -6088,9 +6095,9 @@ const ae = /* @__PURE__ */ y({
|
|
|
6088
6095
|
index: {}
|
|
6089
6096
|
},
|
|
6090
6097
|
setup(u) {
|
|
6091
|
-
const e = u, n =
|
|
6092
|
-
() => new
|
|
6093
|
-
), s =
|
|
6098
|
+
const e = u, n = M(
|
|
6099
|
+
() => new Ye(e.question, e.item, e.index)
|
|
6100
|
+
), s = M({
|
|
6094
6101
|
get: () => e.question.renderedValue,
|
|
6095
6102
|
set: (o) => {
|
|
6096
6103
|
const t = e.question;
|
|
@@ -6101,7 +6108,7 @@ const ae = /* @__PURE__ */ y({
|
|
|
6101
6108
|
class: r(n.value.css.label),
|
|
6102
6109
|
title: n.value.caption.renderedHtml
|
|
6103
6110
|
}, [
|
|
6104
|
-
|
|
6111
|
+
Z(v("input", {
|
|
6105
6112
|
type: "radio",
|
|
6106
6113
|
name: n.value.name,
|
|
6107
6114
|
id: n.value.id,
|
|
@@ -6113,8 +6120,8 @@ const ae = /* @__PURE__ */ y({
|
|
|
6113
6120
|
class: r(n.value.css.control),
|
|
6114
6121
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => s.value = l),
|
|
6115
6122
|
value: n.value.value
|
|
6116
|
-
}, null, 10,
|
|
6117
|
-
[
|
|
6123
|
+
}, null, 10, Mi), [
|
|
6124
|
+
[he, s.value]
|
|
6118
6125
|
]),
|
|
6119
6126
|
v("div", {
|
|
6120
6127
|
class: r(n.value.css.decorator)
|
|
@@ -6135,9 +6142,9 @@ const ae = /* @__PURE__ */ y({
|
|
|
6135
6142
|
is: "survey-string",
|
|
6136
6143
|
locString: n.value.caption
|
|
6137
6144
|
}, null, 8, ["locString"])
|
|
6138
|
-
], 10,
|
|
6145
|
+
], 10, Ii)) : p("", !0)
|
|
6139
6146
|
], 2)
|
|
6140
|
-
], 10,
|
|
6147
|
+
], 10, Hi));
|
|
6141
6148
|
}
|
|
6142
6149
|
});
|
|
6143
6150
|
G.Instance.registerRenderer(
|
|
@@ -6145,7 +6152,7 @@ G.Instance.registerRenderer(
|
|
|
6145
6152
|
"dropdown",
|
|
6146
6153
|
"sv-buttongroup-dropdown"
|
|
6147
6154
|
);
|
|
6148
|
-
const
|
|
6155
|
+
const Si = /* @__PURE__ */ y({
|
|
6149
6156
|
inheritAttrs: !1,
|
|
6150
6157
|
__name: "ButtonGroupDropdown",
|
|
6151
6158
|
props: {
|
|
@@ -6164,14 +6171,14 @@ const Ii = /* @__PURE__ */ y({
|
|
|
6164
6171
|
}, null, 8, ["question"])
|
|
6165
6172
|
], 2));
|
|
6166
6173
|
}
|
|
6167
|
-
}),
|
|
6174
|
+
}), Ri = ["src", "width", "height", "alt"], Ti = /* @__PURE__ */ y({
|
|
6168
6175
|
inheritAttrs: !1,
|
|
6169
6176
|
__name: "Logo",
|
|
6170
6177
|
props: {
|
|
6171
6178
|
data: {}
|
|
6172
6179
|
},
|
|
6173
6180
|
setup(u) {
|
|
6174
|
-
const e = u, n =
|
|
6181
|
+
const e = u, n = M(() => e.data), s = U(() => n.value.locLogo);
|
|
6175
6182
|
return (o, t) => (i(), a("div", {
|
|
6176
6183
|
class: r(n.value.logoClassNames)
|
|
6177
6184
|
}, [
|
|
@@ -6186,20 +6193,20 @@ const Ii = /* @__PURE__ */ y({
|
|
|
6186
6193
|
width: n.value.renderedStyleLogoWidth,
|
|
6187
6194
|
height: n.value.renderedStyleLogoHeight
|
|
6188
6195
|
})
|
|
6189
|
-
}, null, 14,
|
|
6196
|
+
}, null, 14, Ri)
|
|
6190
6197
|
], 2));
|
|
6191
6198
|
}
|
|
6192
|
-
}),
|
|
6199
|
+
}), Bi = /* @__PURE__ */ y({
|
|
6193
6200
|
__name: "SvgBundle",
|
|
6194
6201
|
setup(u) {
|
|
6195
6202
|
const e = f(), n = () => {
|
|
6196
6203
|
e.value && (e.value.innerHTML = _.iconsRenderedHtml());
|
|
6197
6204
|
};
|
|
6198
|
-
return
|
|
6205
|
+
return B(() => {
|
|
6199
6206
|
n(), _.onIconsChanged.add(n);
|
|
6200
6207
|
}), P(() => {
|
|
6201
6208
|
_.onIconsChanged.remove(n);
|
|
6202
|
-
}), (s, o) =>
|
|
6209
|
+
}), (s, o) => Z((i(), a("svg", {
|
|
6203
6210
|
id: "sv-icon-holder-global-container",
|
|
6204
6211
|
ref_key: "root",
|
|
6205
6212
|
ref: e
|
|
@@ -6207,7 +6214,7 @@ const Ii = /* @__PURE__ */ y({
|
|
|
6207
6214
|
[A, !1]
|
|
6208
6215
|
]);
|
|
6209
6216
|
}
|
|
6210
|
-
}),
|
|
6217
|
+
}), Zi = ["id"], $i = /* @__PURE__ */ y({
|
|
6211
6218
|
__name: "FilePage",
|
|
6212
6219
|
props: {
|
|
6213
6220
|
page: {},
|
|
@@ -6219,22 +6226,22 @@ const Ii = /* @__PURE__ */ y({
|
|
|
6219
6226
|
class: r(n.page.css),
|
|
6220
6227
|
id: n.page.id
|
|
6221
6228
|
}, [
|
|
6222
|
-
(i(!0), a(
|
|
6229
|
+
(i(!0), a(H, null, V(n.page.items, (o) => (i(), g(m, {
|
|
6223
6230
|
is: "sv-file-item",
|
|
6224
6231
|
key: o,
|
|
6225
6232
|
item: o,
|
|
6226
6233
|
question: n.question
|
|
6227
6234
|
}, null, 8, ["item", "question"]))), 128))
|
|
6228
|
-
], 10,
|
|
6235
|
+
], 10, Zi));
|
|
6229
6236
|
}
|
|
6230
|
-
}),
|
|
6237
|
+
}), Di = ["href", "title", "download"], Ai = ["src"], Pi = ["href", "title", "download"], Ni = /* @__PURE__ */ y({
|
|
6231
6238
|
__name: "FileItem",
|
|
6232
6239
|
props: {
|
|
6233
6240
|
item: {},
|
|
6234
6241
|
question: {}
|
|
6235
6242
|
},
|
|
6236
6243
|
setup(u) {
|
|
6237
|
-
return (e, n) =>
|
|
6244
|
+
return (e, n) => Z((i(), a("span", {
|
|
6238
6245
|
class: r(e.question.cssClasses.previewItem),
|
|
6239
6246
|
onClick: n[3] || (n[3] = (s) => e.question.doDownloadFileFromContainer(s))
|
|
6240
6247
|
}, [
|
|
@@ -6248,7 +6255,7 @@ const Ii = /* @__PURE__ */ y({
|
|
|
6248
6255
|
title: e.item.name,
|
|
6249
6256
|
download: e.item.name,
|
|
6250
6257
|
style: k({ width: e.question.imageWidth })
|
|
6251
|
-
}, I(e.item.name), 13,
|
|
6258
|
+
}, I(e.item.name), 13, Di)
|
|
6252
6259
|
], 2)) : p("", !0),
|
|
6253
6260
|
v("div", {
|
|
6254
6261
|
class: r(e.question.getImageWrapperCss(e.item))
|
|
@@ -6261,7 +6268,7 @@ const Ii = /* @__PURE__ */ y({
|
|
|
6261
6268
|
width: e.question.imageWidth
|
|
6262
6269
|
}),
|
|
6263
6270
|
alt: "File preview"
|
|
6264
|
-
}, null, 12,
|
|
6271
|
+
}, null, 12, Ai)) : p("", !0),
|
|
6265
6272
|
e.question.defaultImage(e.item) ? (i(), g(m, {
|
|
6266
6273
|
key: 1,
|
|
6267
6274
|
is: "sv-svg-icon",
|
|
@@ -6297,43 +6304,43 @@ const Ii = /* @__PURE__ */ y({
|
|
|
6297
6304
|
title: e.item.name,
|
|
6298
6305
|
download: e.item.name,
|
|
6299
6306
|
style: k({ width: e.question.imageWidth })
|
|
6300
|
-
}, I(e.item.name), 13,
|
|
6307
|
+
}, I(e.item.name), 13, Pi)
|
|
6301
6308
|
], 2)) : p("", !0)
|
|
6302
6309
|
], 2)), [
|
|
6303
6310
|
[A, e.item]
|
|
6304
6311
|
]);
|
|
6305
6312
|
}
|
|
6306
6313
|
});
|
|
6307
|
-
|
|
6308
|
-
function
|
|
6314
|
+
_e.platform = "vue3";
|
|
6315
|
+
function Ei(u, e, n) {
|
|
6309
6316
|
u(e, n);
|
|
6310
6317
|
}
|
|
6311
|
-
function
|
|
6312
|
-
const e =
|
|
6318
|
+
function Me(u) {
|
|
6319
|
+
const e = Ei.bind(
|
|
6313
6320
|
void 0,
|
|
6314
6321
|
u
|
|
6315
6322
|
);
|
|
6316
|
-
e("sv-svg-bundle",
|
|
6323
|
+
e("sv-svg-bundle", Bi), e("popup-survey", He), e("survey-header", ts), e("sv-logo-image", Ti), e("survey-page", ns), e("survey-row", os), e("survey-question", us), e("survey-panel", vs), e("survey-element-header", cs), e("survey-string", gs), e("sv-string-viewer", hs), e("sv-string-editor", ws), e("sv-skeleton", Ls), e("sv-scroll", Ms), e("survey-text", Ss), e("survey-text-input", Bs), e("survey-checkbox", Ps), e("survey-checkbox-item", Ws), e("survey-radiogroup", Fs), e("survey-radiogroup-item", Us), e("survey-signaturepad", Gs), e("survey-html", Js), e("survey-image", e1), e("survey-expression", n1), e("survey-file", r1), e("sv-file-choose-btn", Li), e("sv-file-clean-btn", hi), e("sv-file-preview", ki), e("sv-file-page", $i), e("sv-file-item", Ni), e("sv-file-video", wi), e("survey-imagepicker", a1), e("survey-imagepicker-item", v1), e("survey-comment", C1), e("survey-dropdown", c1), e("sv-dropdown-select", q1), e("sv-dropdown-option-item", b1), e("sv-dropdown", M1), e("survey-tagbox", I1), e("sv-tagbox", R1), e("sv-tagbox-item", D1), e("sv-tagbox-filter", Z1), e("survey-ranking", A1), e("survey-ranking-item", O1), e("sv-ranking-item", z1), e("survey-rating", K1), e("sv-rating-item", X1), e("sv-rating-item-smiley", _1), e("sv-rating-item-star", sn), e("sv-rating-dropdown", ln), e("sv-rating-dropdown-item", rn), e("survey-boolean", un), e("sv-boolean-radio", dn), e("sv-boolean-radio-item", vn), e("sv-boolean-checkbox", qn), e("survey-multipletext", wn), e("survey-multipletext-item", kn), e("sv-breadcrumbs", fn), e("sv-single-input-summary", Sn), e("survey-slider", Bn), e("sv-slider-label-item", Zn), e("survey-matrix", Wn), e("survey-matrix-row", On), e("survey-matrix-cell", Qn), e("survey-matrixdropdown", Kn), e("survey-matrixtable", Xn), e("survey-matrixheaderrequired", Yn), e("survey-matrixdropdown-cell", xn), e("survey-matrixdynamic", et), e("survey-placeholder-matrixdynamic", st), e("sv-matrix-remove-button", tt), e("sv-matrix-drag-drop-icon", it), e("sv-matrix-detail-button", lt), e("survey-paneldynamic", ut), e("survey-paneldynamicprogress", mt), e("survey-paneldynamicprogress-v2", vt), e("survey-placeholder-paneldynamic", Ct), e("sv-paneldynamic-add-btn", gt), e("sv-paneldynamic-next-btn", ht), e("sv-paneldynamic-prev-btn", wt), e("sv-paneldynamic-remove-btn", Lt), e("sv-paneldynamic-progress-text", kt), e("sv-components-container", ko), e("sv-progress-buttons", To), e("sv-navigation-toc", Bo), e("sv-progress-pages", Y), e("sv-progress-questions", Y), e("sv-progress-correctquestions", Y), e("sv-progress-requiredquestions", Y), e("survey-errors", Ht), e("survey-question-comment", It), e("survey-element-title", Vt), e("survey-element-title-content", Zt), e("sv-title-actions", At), e("sv-brand-info", zt), e("sv-question-error", jt), e("sv-svg-icon", Kt), e("sv-action-bar", Gt), e("sv-action", Yt), e("sv-action-bar-item", eo), e("sv-action-bar-item-dropdown", to), e("sv-action-bar-separator", oo), e("sv-list", ao), e("sv-list-item-content", vo), e("sv-list-item-group", Co), e("sv-list-item", po), e("sv-popup", co), e("sv-popup-container", bo), e("popup-pointer", Lo), e("sv-notifier", zo), e("survey-other-choice", Qo), e("sv-nav-btn", jo), e("survey-customwidget", Xo), e("survey-popup-modal", Jo), e("survey-composite", ei), e("survey-custom", si), e("sv-timerpanel", oi), e("sv-loading-indicator", ri), e("sv-header", ai), e("sv-header-cell", mi), e("sv-header-mobile", ci), e("sv-template-renderer", yi), e("sv-character-counter", xo), e("sv-text-area", _o), e("survey-element", gi), e("survey-buttongroup", fi), e("sv-button-group-item", Vi), e("sv-buttongroup-dropdown", Si), e("survey", le);
|
|
6317
6324
|
}
|
|
6318
|
-
|
|
6325
|
+
Me(
|
|
6319
6326
|
(u, e) => F.Instance.registerComponent(u, e)
|
|
6320
6327
|
);
|
|
6321
|
-
const
|
|
6328
|
+
const zi = {
|
|
6322
6329
|
install(u) {
|
|
6323
|
-
u.component("SurveyComponent",
|
|
6330
|
+
u.component("SurveyComponent", le), u.component("PopupSurveyComponent", He), u.directive("key2click", Q), Me((e, n) => {
|
|
6324
6331
|
u.component(e, n), F.Instance.registerComponent(e, e);
|
|
6325
6332
|
});
|
|
6326
6333
|
}
|
|
6327
6334
|
};
|
|
6328
6335
|
export {
|
|
6329
6336
|
F as ComponentFactory,
|
|
6330
|
-
|
|
6331
|
-
|
|
6337
|
+
He as PopupSurveyComponent,
|
|
6338
|
+
le as SurveyComponent,
|
|
6332
6339
|
m as SvComponent,
|
|
6333
6340
|
Q as key2ClickDirective,
|
|
6334
|
-
|
|
6341
|
+
zi as surveyPlugin,
|
|
6335
6342
|
S as useBase,
|
|
6336
|
-
|
|
6343
|
+
se as useComputedArray,
|
|
6337
6344
|
U as useLocString,
|
|
6338
6345
|
T as useQuestion
|
|
6339
6346
|
};
|