survey-vue3-ui 2.0.2 → 2.0.4
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 +893 -837
- package/survey-vue3-ui.umd.js +5 -5
- package/types/components/Scroll.vue.d.ts +34 -0
package/survey-vue3-ui.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
var Me = Object.defineProperty;
|
|
2
2
|
var He = (u, e, n) => e in u ? Me(u, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : u[e] = n;
|
|
3
3
|
var G = (u, e, n) => (He(u, typeof e != "symbol" ? e + "" : e, n), n);
|
|
4
|
-
import { defineComponent as y, computed as
|
|
5
|
-
import { Base as Ne, RendererFactory as
|
|
6
|
-
const
|
|
4
|
+
import { defineComponent as y, computed as f, openBlock as o, createBlock as c, resolveDynamicComponent as ce, normalizeProps as ue, guardReactiveProps as de, createSlots as Ie, renderList as S, withCtx as E, renderSlot as Y, shallowReactive as Se, watch as F, onBeforeUnmount as z, onMounted as Z, ref as b, shallowRef as W, watchEffect as Ve, triggerRef as te, unref as L, isRef as Be, nextTick as ge, createElementBlock as l, normalizeClass as r, createVNode as g, createCommentVNode as m, Fragment as I, mergeProps as D, normalizeStyle as M, createElementVNode as v, onUnmounted as P, withDirectives as R, vShow as N, toDisplayString as H, vModelRadio as x, vModelCheckbox as oe, vModelSelect as Re, onUpdated as j, vModelText as Te, getCurrentInstance as he, createStaticVNode as Ze, toRaw as $e, Teleport as De, useSlots as Ae } from "vue";
|
|
5
|
+
import { Base as Ne, ScrollViewModel as Pe, RendererFactory as ee, Helpers as Ee, DropdownMultiSelectListModel as We, doKey2ClickUp as ye, createSvg as Fe, doKey2ClickDown as ze, doKey2ClickBlur as Oe, ActionDropdownViewModel as Ue, createPopupViewModel as Ke, SurveyProgressModel as me, ProgressButtonsResponsivityManager as je, addIconsToThemeSet as qe, SvgRegistry as X, PopupSurveyModel as Qe, settings as ne, createPopupModalViewModel as Ge, ButtonGroupItemModel as Je, SurveyModel as Xe } from "survey-core";
|
|
6
|
+
const _ = class _ {
|
|
7
7
|
constructor() {
|
|
8
8
|
G(this, "creatorHash", {});
|
|
9
9
|
}
|
|
@@ -23,8 +23,8 @@ const Y = class Y {
|
|
|
23
23
|
return !!this.creatorHash[e];
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
G(
|
|
27
|
-
let K =
|
|
26
|
+
G(_, "Instance", new _());
|
|
27
|
+
let K = _;
|
|
28
28
|
const d = /* @__PURE__ */ y({
|
|
29
29
|
inheritAttrs: !1,
|
|
30
30
|
__name: "SvComponent",
|
|
@@ -32,21 +32,21 @@ const d = /* @__PURE__ */ y({
|
|
|
32
32
|
is: {}
|
|
33
33
|
},
|
|
34
34
|
setup(u) {
|
|
35
|
-
const e = u, n =
|
|
35
|
+
const e = u, n = f(
|
|
36
36
|
() => K.Instance.getComponent(e.is)
|
|
37
37
|
);
|
|
38
|
-
return (s, i) => (o(), c(
|
|
38
|
+
return (s, i) => (o(), c(ce(n.value), ue(de(s.$attrs)), Ie({ _: 2 }, [
|
|
39
39
|
S(s.$slots, (t, a) => ({
|
|
40
40
|
name: a,
|
|
41
41
|
fn: E((p) => [
|
|
42
|
-
|
|
42
|
+
Y(s.$slots, a, ue(de(p)))
|
|
43
43
|
])
|
|
44
44
|
}))
|
|
45
45
|
]), 1040));
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
Ne.createPropertiesHash = () => Se({});
|
|
49
|
-
class
|
|
49
|
+
class Ye {
|
|
50
50
|
constructor(e) {
|
|
51
51
|
G(this, "currentNextTickPromise");
|
|
52
52
|
this.element = e;
|
|
@@ -56,20 +56,20 @@ class Xe {
|
|
|
56
56
|
this.currentNextTickPromise !== e && (this.currentNextTickPromise = e, await e, e == this.currentNextTickPromise && this.element.afterRerender());
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function _e(u) {
|
|
60
60
|
if (u) {
|
|
61
61
|
if (u.__vueImplemented = u.__vueImplemented ?? 0, u.__vueImplemented <= 0) {
|
|
62
|
-
const e = new
|
|
62
|
+
const e = new Ye(u);
|
|
63
63
|
u.createArrayCoreHandler = (n, s) => {
|
|
64
64
|
const i = [], t = W(i);
|
|
65
65
|
return i.onArrayChanged = () => {
|
|
66
|
-
|
|
66
|
+
te(t), e.add();
|
|
67
67
|
}, n[s] = t, L(n[s]);
|
|
68
68
|
}, u.iteratePropertiesHash((n, s) => {
|
|
69
69
|
if (Array.isArray(n[s])) {
|
|
70
70
|
const i = W(n[s]);
|
|
71
71
|
n[s].onArrayChanged = () => {
|
|
72
|
-
|
|
72
|
+
te(i), e.add();
|
|
73
73
|
}, n[s] = i;
|
|
74
74
|
}
|
|
75
75
|
}), u.getPropertyValueCoreHandler = (n, s) => L(n[s]), u.setPropertyValueCoreHandler = (n, s, i) => {
|
|
@@ -79,10 +79,10 @@ function Ye(u) {
|
|
|
79
79
|
u.enableOnElementRerenderedEvent(), u.__vueImplemented++;
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function xe(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] = L(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 V(u, e, n) {
|
|
|
91
91
|
const s = F(
|
|
92
92
|
u,
|
|
93
93
|
(t, a) => {
|
|
94
|
-
t && e && e(t, a), a && (
|
|
94
|
+
t && e && e(t, a), a && (pe(a), n && n(a)), _e(t);
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
immediate: !0
|
|
@@ -101,19 +101,19 @@ function V(u, e, n) {
|
|
|
101
101
|
z(() => {
|
|
102
102
|
if (!i) {
|
|
103
103
|
const t = u();
|
|
104
|
-
t && (
|
|
104
|
+
t && (pe(t), s(), n && n(t)), i = !0;
|
|
105
105
|
}
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
function T(u, e, n, s) {
|
|
109
|
-
V(() => u.question, n, s),
|
|
109
|
+
V(() => u.question, n, s), Z(() => {
|
|
110
110
|
u.question && u.question.afterRenderQuestionElement(e.value);
|
|
111
111
|
}), z(() => {
|
|
112
112
|
u.question.beforeDestroyQuestionElement(e.value);
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
115
|
function O(u) {
|
|
116
|
-
const e =
|
|
116
|
+
const e = b(), n = (t) => {
|
|
117
117
|
e.value = t.renderedHtml;
|
|
118
118
|
}, s = (t) => {
|
|
119
119
|
e.value = t.renderedHtml, t.onStringChanged.add(n);
|
|
@@ -129,18 +129,18 @@ function O(u) {
|
|
|
129
129
|
t && t.onStringChanged.remove(n), i();
|
|
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
|
|
135
|
+
function se(u) {
|
|
136
136
|
const e = W(), n = Ve(() => {
|
|
137
|
-
e.value = u(),
|
|
137
|
+
e.value = u(), te(e);
|
|
138
138
|
});
|
|
139
139
|
return z(() => {
|
|
140
140
|
n();
|
|
141
141
|
}), e;
|
|
142
142
|
}
|
|
143
|
-
const
|
|
143
|
+
const es = /* @__PURE__ */ y({
|
|
144
144
|
__name: "Page",
|
|
145
145
|
props: {
|
|
146
146
|
survey: {},
|
|
@@ -148,22 +148,22 @@ const xe = /* @__PURE__ */ y({
|
|
|
148
148
|
css: {}
|
|
149
149
|
},
|
|
150
150
|
setup(u) {
|
|
151
|
-
const e = u, n =
|
|
151
|
+
const e = u, n = b(null), s = () => {
|
|
152
152
|
e.survey && n.value && e.survey.afterRenderPage(n.value);
|
|
153
|
-
}, i =
|
|
153
|
+
}, i = f(() => e.page._showDescription);
|
|
154
154
|
return V(
|
|
155
155
|
() => e.page,
|
|
156
156
|
() => {
|
|
157
157
|
s();
|
|
158
158
|
}
|
|
159
|
-
),
|
|
159
|
+
), Z(() => {
|
|
160
160
|
s();
|
|
161
161
|
}), (t, a) => (o(), l("div", {
|
|
162
162
|
class: r(t.page.cssRoot),
|
|
163
163
|
ref_key: "root",
|
|
164
164
|
ref: n
|
|
165
165
|
}, [
|
|
166
|
-
|
|
166
|
+
g(d, {
|
|
167
167
|
is: "survey-element-title",
|
|
168
168
|
element: t.page,
|
|
169
169
|
css: t.css
|
|
@@ -172,12 +172,12 @@ const xe = /* @__PURE__ */ y({
|
|
|
172
172
|
key: 0,
|
|
173
173
|
class: r(t.page.cssClasses.page.description)
|
|
174
174
|
}, [
|
|
175
|
-
|
|
175
|
+
g(d, {
|
|
176
176
|
is: "survey-string",
|
|
177
177
|
locString: t.page.locDescription
|
|
178
178
|
}, null, 8, ["locString"])
|
|
179
179
|
], 2)) : m("", !0),
|
|
180
|
-
|
|
180
|
+
g(d, {
|
|
181
181
|
is: "survey-errors",
|
|
182
182
|
element: t.page
|
|
183
183
|
}, null, 8, ["element"]),
|
|
@@ -188,7 +188,7 @@ const xe = /* @__PURE__ */ y({
|
|
|
188
188
|
componentData: t.page.getSurvey().getRowWrapperComponentData(p)
|
|
189
189
|
}), {
|
|
190
190
|
default: E(() => [
|
|
191
|
-
|
|
191
|
+
g(d, {
|
|
192
192
|
is: "survey-row",
|
|
193
193
|
row: p,
|
|
194
194
|
survey: t.survey,
|
|
@@ -199,14 +199,14 @@ const xe = /* @__PURE__ */ y({
|
|
|
199
199
|
}, 1040, ["is"]))), 128))
|
|
200
200
|
], 2));
|
|
201
201
|
}
|
|
202
|
-
}),
|
|
202
|
+
}), ss = /* @__PURE__ */ y({
|
|
203
203
|
__name: "Header",
|
|
204
204
|
props: {
|
|
205
205
|
survey: {}
|
|
206
206
|
},
|
|
207
207
|
setup(u) {
|
|
208
|
-
const e = u, n =
|
|
209
|
-
return
|
|
208
|
+
const e = u, n = b();
|
|
209
|
+
return Z(() => {
|
|
210
210
|
var s = n.value;
|
|
211
211
|
s && e.survey && e.survey.afterRenderHeader(s);
|
|
212
212
|
}), (s, i) => s.survey.renderedHasHeader ? (o(), l("div", {
|
|
@@ -225,7 +225,7 @@ const xe = /* @__PURE__ */ y({
|
|
|
225
225
|
class: r(s.survey.css.headerText),
|
|
226
226
|
style: M({ maxWidth: s.survey.titleMaxWidth })
|
|
227
227
|
}, [
|
|
228
|
-
|
|
228
|
+
g(d, {
|
|
229
229
|
is: "survey-element-title",
|
|
230
230
|
element: s.survey,
|
|
231
231
|
css: s.survey.css
|
|
@@ -234,7 +234,7 @@ const xe = /* @__PURE__ */ y({
|
|
|
234
234
|
key: 0,
|
|
235
235
|
class: r(s.survey.css.description)
|
|
236
236
|
}, [
|
|
237
|
-
|
|
237
|
+
g(d, {
|
|
238
238
|
is: "survey-string",
|
|
239
239
|
locString: s.survey.locDescription
|
|
240
240
|
}, null, 8, ["locString"])
|
|
@@ -250,7 +250,7 @@ const xe = /* @__PURE__ */ y({
|
|
|
250
250
|
}, null, 2)
|
|
251
251
|
], 2)) : m("", !0);
|
|
252
252
|
}
|
|
253
|
-
}),
|
|
253
|
+
}), ns = /* @__PURE__ */ y({
|
|
254
254
|
__name: "Row",
|
|
255
255
|
props: {
|
|
256
256
|
row: {},
|
|
@@ -258,16 +258,16 @@ const xe = /* @__PURE__ */ y({
|
|
|
258
258
|
survey: {}
|
|
259
259
|
},
|
|
260
260
|
setup(u) {
|
|
261
|
-
const e = u, n =
|
|
261
|
+
const e = u, n = b();
|
|
262
262
|
return V(
|
|
263
263
|
() => e.row,
|
|
264
264
|
(s, i) => {
|
|
265
265
|
s.setRootElement(n.value), i && (s.isNeedRender = i.isNeedRender);
|
|
266
266
|
},
|
|
267
267
|
(s) => {
|
|
268
|
-
|
|
268
|
+
xe(s) || (s.setRootElement(void 0), s.stopLazyRendering(), s.isNeedRender = !s.isLazyRendering());
|
|
269
269
|
}
|
|
270
|
-
),
|
|
270
|
+
), Z(() => {
|
|
271
271
|
if (e.row && (e.row.setRootElement(n.value), !e.row.isNeedRender)) {
|
|
272
272
|
const s = n.value;
|
|
273
273
|
setTimeout(() => {
|
|
@@ -288,10 +288,10 @@ const xe = /* @__PURE__ */ y({
|
|
|
288
288
|
}, null, 8, ["row", "css", "element"]))), 128))
|
|
289
289
|
], 2));
|
|
290
290
|
}
|
|
291
|
-
}),
|
|
291
|
+
}), ts = ["id", "role", "aria-required", "aria-invalid", "aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "data-name"], os = ["id"], is = {
|
|
292
292
|
inheritAttrs: !1
|
|
293
|
-
},
|
|
294
|
-
...
|
|
293
|
+
}, rs = /* @__PURE__ */ y({
|
|
294
|
+
...is,
|
|
295
295
|
__name: "Question",
|
|
296
296
|
props: {
|
|
297
297
|
survey: {},
|
|
@@ -299,33 +299,34 @@ const xe = /* @__PURE__ */ y({
|
|
|
299
299
|
css: {}
|
|
300
300
|
},
|
|
301
301
|
setup(u) {
|
|
302
|
-
const e = u, n =
|
|
302
|
+
const e = u, n = b(null), s = f(() => e.element.showErrorOnTop), i = f(() => e.element.showErrorOnBottom), t = (k) => k.cssContent, a = () => e.element.getRootStyle();
|
|
303
303
|
V(() => e.element);
|
|
304
304
|
const p = () => {
|
|
305
305
|
n.value && e.element.afterRender(n.value);
|
|
306
|
-
},
|
|
306
|
+
}, h = F(
|
|
307
307
|
() => n.value,
|
|
308
308
|
() => {
|
|
309
309
|
p();
|
|
310
310
|
}
|
|
311
|
-
), C =
|
|
311
|
+
), C = f(() => e.element.customWidget ? "survey-customwidget" : e.element.isDefaultRendering() ? "survey-" + e.element.getTemplate() : e.element.getComponentName()), q = f(() => e.element.survey.getQuestionContentWrapperComponentName(e.element)), B = f(() => ({
|
|
312
312
|
componentData: {
|
|
313
313
|
question: e.element,
|
|
314
314
|
data: e.element.survey.getElementWrapperComponentData(e.element)
|
|
315
315
|
}
|
|
316
316
|
}));
|
|
317
317
|
return P(() => {
|
|
318
|
-
|
|
319
|
-
}), (k,
|
|
318
|
+
h();
|
|
319
|
+
}), (k, $) => (o(), l("div", {
|
|
320
320
|
class: r(k.element.getRootCss()),
|
|
321
321
|
style: M(a()),
|
|
322
322
|
ref_key: "root",
|
|
323
323
|
ref: n,
|
|
324
|
-
onFocusin:
|
|
324
|
+
onFocusin: $[0] || ($[0] = (w) => k.element.focusIn()),
|
|
325
325
|
id: k.element.id,
|
|
326
326
|
role: k.element.ariaRole,
|
|
327
327
|
"aria-required": k.element.ariaRequired,
|
|
328
328
|
"aria-invalid": k.element.ariaInvalid,
|
|
329
|
+
"aria-label": k.element.ariaLabel,
|
|
329
330
|
"aria-labelledby": k.element.ariaLabelledBy,
|
|
330
331
|
"aria-describedby": k.element.ariaDescribedBy,
|
|
331
332
|
"aria-expanded": k.element.ariaExpanded,
|
|
@@ -343,7 +344,7 @@ const xe = /* @__PURE__ */ y({
|
|
|
343
344
|
element: k.element,
|
|
344
345
|
css: k.css
|
|
345
346
|
}, null, 8, ["element", "css"])) : m("", !0),
|
|
346
|
-
|
|
347
|
+
g(d, D({ is: q.value }, B.value), {
|
|
347
348
|
default: E(() => [
|
|
348
349
|
v("div", {
|
|
349
350
|
class: r(t(k.element) || void 0),
|
|
@@ -356,7 +357,7 @@ const xe = /* @__PURE__ */ y({
|
|
|
356
357
|
element: k.element,
|
|
357
358
|
location: "top"
|
|
358
359
|
}, null, 8, ["element"])) : m("", !0),
|
|
359
|
-
|
|
360
|
+
g(d, {
|
|
360
361
|
is: C.value,
|
|
361
362
|
question: k.element
|
|
362
363
|
}, null, 8, ["is", "question"]),
|
|
@@ -365,12 +366,12 @@ const xe = /* @__PURE__ */ y({
|
|
|
365
366
|
class: r(k.element.getCommentAreaCss())
|
|
366
367
|
}, [
|
|
367
368
|
v("div", null, [
|
|
368
|
-
|
|
369
|
+
g(d, {
|
|
369
370
|
is: "survey-string",
|
|
370
371
|
locString: k.element.locCommentText
|
|
371
372
|
}, null, 8, ["locString"])
|
|
372
373
|
]),
|
|
373
|
-
|
|
374
|
+
g(d, {
|
|
374
375
|
is: "survey-question-comment",
|
|
375
376
|
question: k.element
|
|
376
377
|
}, null, 8, ["question"])
|
|
@@ -386,11 +387,11 @@ const xe = /* @__PURE__ */ y({
|
|
|
386
387
|
class: r(k.element.cssDescription),
|
|
387
388
|
id: k.element.ariaDescriptionId
|
|
388
389
|
}, [
|
|
389
|
-
|
|
390
|
+
g(d, {
|
|
390
391
|
is: "survey-string",
|
|
391
392
|
locString: k.element.locDescription
|
|
392
393
|
}, null, 8, ["locString"])
|
|
393
|
-
], 10,
|
|
394
|
+
], 10, os)) : m("", !0)
|
|
394
395
|
], 6)
|
|
395
396
|
]),
|
|
396
397
|
_: 1
|
|
@@ -407,12 +408,12 @@ const xe = /* @__PURE__ */ y({
|
|
|
407
408
|
element: k.element,
|
|
408
409
|
location: "bottom"
|
|
409
410
|
}, null, 8, ["element"])) : m("", !0)
|
|
410
|
-
], 46,
|
|
411
|
+
], 46, ts));
|
|
411
412
|
}
|
|
412
|
-
}),
|
|
413
|
+
}), ls = ["id"], as = ["id"], us = {
|
|
413
414
|
inheritAttrs: !1
|
|
414
|
-
},
|
|
415
|
-
...
|
|
415
|
+
}, ds = /* @__PURE__ */ y({
|
|
416
|
+
...us,
|
|
416
417
|
inheritAttrs: !1,
|
|
417
418
|
__name: "Panel",
|
|
418
419
|
props: {
|
|
@@ -421,8 +422,8 @@ const xe = /* @__PURE__ */ y({
|
|
|
421
422
|
css: {}
|
|
422
423
|
},
|
|
423
424
|
setup(u) {
|
|
424
|
-
const e = u, n =
|
|
425
|
-
return V(() => e.element),
|
|
425
|
+
const e = u, n = b(null), s = f(() => e.element.survey);
|
|
426
|
+
return V(() => e.element), Z(() => {
|
|
426
427
|
e.element.survey && e.element.afterRender(n.value);
|
|
427
428
|
}), (i, t) => i.element.getIsContentVisible() ? (o(), l("div", {
|
|
428
429
|
key: 0,
|
|
@@ -461,7 +462,7 @@ const xe = /* @__PURE__ */ y({
|
|
|
461
462
|
componentData: i.element.getSurvey().getRowWrapperComponentData(a)
|
|
462
463
|
}), {
|
|
463
464
|
default: E(() => [
|
|
464
|
-
|
|
465
|
+
g(d, {
|
|
465
466
|
is: "survey-row",
|
|
466
467
|
row: a,
|
|
467
468
|
survey: s.value,
|
|
@@ -470,14 +471,14 @@ const xe = /* @__PURE__ */ y({
|
|
|
470
471
|
]),
|
|
471
472
|
_: 2
|
|
472
473
|
}, 1040, ["is"]))), 128)),
|
|
473
|
-
|
|
474
|
+
g(d, {
|
|
474
475
|
is: "sv-action-bar",
|
|
475
476
|
model: i.element.getFooterToolbar()
|
|
476
477
|
}, null, 8, ["model"])
|
|
477
|
-
], 14,
|
|
478
|
-
], 42,
|
|
478
|
+
], 14, as)) : m("", !0)
|
|
479
|
+
], 42, ls)) : m("", !0);
|
|
479
480
|
}
|
|
480
|
-
}),
|
|
481
|
+
}), ms = ["id"], ps = /* @__PURE__ */ y({
|
|
481
482
|
__name: "ElementHeader",
|
|
482
483
|
props: {
|
|
483
484
|
element: {},
|
|
@@ -495,7 +496,7 @@ const xe = /* @__PURE__ */ y({
|
|
|
495
496
|
onClick: n,
|
|
496
497
|
style: M(s())
|
|
497
498
|
}, [
|
|
498
|
-
|
|
499
|
+
g(d, {
|
|
499
500
|
is: "survey-element-title",
|
|
500
501
|
element: i.element,
|
|
501
502
|
css: i.css
|
|
@@ -505,11 +506,11 @@ const xe = /* @__PURE__ */ y({
|
|
|
505
506
|
class: r(i.element.cssDescription),
|
|
506
507
|
id: i.element.ariaDescriptionId
|
|
507
508
|
}, [
|
|
508
|
-
|
|
509
|
+
g(d, {
|
|
509
510
|
is: "survey-string",
|
|
510
511
|
locString: i.element.locDescription
|
|
511
512
|
}, null, 8, ["locString"])
|
|
512
|
-
], 10,
|
|
513
|
+
], 10, ms)), [
|
|
513
514
|
[N, i.element.hasDescription]
|
|
514
515
|
]) : m("", !0),
|
|
515
516
|
i.element.hasAdditionalTitleToolbar ? (o(), c(d, {
|
|
@@ -519,7 +520,7 @@ const xe = /* @__PURE__ */ y({
|
|
|
519
520
|
}, null, 8, ["model"])) : m("", !0)
|
|
520
521
|
], 6));
|
|
521
522
|
}
|
|
522
|
-
}),
|
|
523
|
+
}), Cs = /* @__PURE__ */ y({
|
|
523
524
|
__name: "String",
|
|
524
525
|
props: {
|
|
525
526
|
locString: {}
|
|
@@ -530,7 +531,7 @@ const xe = /* @__PURE__ */ y({
|
|
|
530
531
|
locString: e.locString.renderAsData
|
|
531
532
|
}, null, 8, ["is", "locString"]));
|
|
532
533
|
}
|
|
533
|
-
}),
|
|
534
|
+
}), vs = ["innerHTML"], cs = /* @__PURE__ */ y({
|
|
534
535
|
__name: "StringViewer",
|
|
535
536
|
props: {
|
|
536
537
|
locString: {}
|
|
@@ -541,12 +542,12 @@ const xe = /* @__PURE__ */ y({
|
|
|
541
542
|
key: 0,
|
|
542
543
|
class: r(L(s)),
|
|
543
544
|
innerHTML: L(n)
|
|
544
|
-
}, null, 10,
|
|
545
|
+
}, null, 10, vs)) : (o(), l("span", {
|
|
545
546
|
key: 1,
|
|
546
547
|
class: r(L(s))
|
|
547
548
|
}, H(L(n)), 3));
|
|
548
549
|
}
|
|
549
|
-
}),
|
|
550
|
+
}), gs = ["innerHTML"], hs = /* @__PURE__ */ y({
|
|
550
551
|
__name: "StringEditor",
|
|
551
552
|
props: {
|
|
552
553
|
locString: {}
|
|
@@ -565,7 +566,7 @@ const xe = /* @__PURE__ */ y({
|
|
|
565
566
|
innerHTML: i.locString.renderedHtml,
|
|
566
567
|
onBlur: n,
|
|
567
568
|
onClick: s
|
|
568
|
-
}, null, 40,
|
|
569
|
+
}, null, 40, gs)) : (o(), l("span", {
|
|
569
570
|
key: 1,
|
|
570
571
|
class: "sv-string-editor",
|
|
571
572
|
contenteditable: "true",
|
|
@@ -573,7 +574,7 @@ const xe = /* @__PURE__ */ y({
|
|
|
573
574
|
onClick: s
|
|
574
575
|
}, H(i.locString.renderedHtml), 33));
|
|
575
576
|
}
|
|
576
|
-
}),
|
|
577
|
+
}), ys = ["id"], qs = /* @__PURE__ */ y({
|
|
577
578
|
__name: "Skeleton",
|
|
578
579
|
props: {
|
|
579
580
|
element: {}
|
|
@@ -584,16 +585,49 @@ const xe = /* @__PURE__ */ y({
|
|
|
584
585
|
class: "sv-skeleton-element",
|
|
585
586
|
id: n.element.id,
|
|
586
587
|
style: M({ height: n.element.skeletonHeight })
|
|
587
|
-
}, null, 12,
|
|
588
|
+
}, null, 12, ys));
|
|
588
589
|
}
|
|
589
|
-
}),
|
|
590
|
+
}), ws = { class: "sv-scroll__container" }, Ls = /* @__PURE__ */ v("div", { class: "sv-scroll__scrollbar-sizer" }, null, -1), ks = [
|
|
591
|
+
Ls
|
|
592
|
+
], bs = /* @__PURE__ */ y({
|
|
593
|
+
__name: "Scroll",
|
|
594
|
+
props: {
|
|
595
|
+
disabled: {}
|
|
596
|
+
},
|
|
597
|
+
setup(u) {
|
|
598
|
+
const e = u, n = new Pe(), s = b();
|
|
599
|
+
return Z(() => {
|
|
600
|
+
n.setRootElement(s.value);
|
|
601
|
+
}), P(() => {
|
|
602
|
+
n.setRootElement(void 0), n.unsubscribeRootElement();
|
|
603
|
+
}), (i, t) => e.disabled ? Y(i.$slots, "default", { key: 0 }) : (o(), l("div", {
|
|
604
|
+
key: 1,
|
|
605
|
+
ref_key: "root",
|
|
606
|
+
ref: s,
|
|
607
|
+
class: "sv-scroll__wrapper"
|
|
608
|
+
}, [
|
|
609
|
+
v("div", {
|
|
610
|
+
class: "sv-scroll__scroller sv-drag-target-skipped",
|
|
611
|
+
onScroll: t[0] || (t[0] = () => L(n).onScrollContainer())
|
|
612
|
+
}, [
|
|
613
|
+
v("div", ws, [
|
|
614
|
+
Y(i.$slots, "default")
|
|
615
|
+
])
|
|
616
|
+
], 32),
|
|
617
|
+
v("div", {
|
|
618
|
+
class: "sv-scroll__scrollbar",
|
|
619
|
+
onScroll: t[1] || (t[1] = () => L(n).onScrollScrollbar())
|
|
620
|
+
}, ks, 32)
|
|
621
|
+
], 512));
|
|
622
|
+
}
|
|
623
|
+
}), fs = ["id"], Ms = ["value"], Hs = /* @__PURE__ */ y({
|
|
590
624
|
inheritAttrs: !1,
|
|
591
625
|
__name: "Text",
|
|
592
626
|
props: {
|
|
593
627
|
question: {}
|
|
594
628
|
},
|
|
595
629
|
setup(u) {
|
|
596
|
-
const e = u, n =
|
|
630
|
+
const e = u, n = b(null);
|
|
597
631
|
return T(e, n), (s, i) => s.question.isReadOnlyRenderDiv() ? (o(), l("div", {
|
|
598
632
|
key: 0,
|
|
599
633
|
ref_key: "root",
|
|
@@ -603,7 +637,7 @@ const xe = /* @__PURE__ */ y({
|
|
|
603
637
|
ref_key: "root",
|
|
604
638
|
ref: n
|
|
605
639
|
}, [
|
|
606
|
-
|
|
640
|
+
g(d, {
|
|
607
641
|
is: "survey-text-input",
|
|
608
642
|
question: s.question
|
|
609
643
|
}, null, 8, ["question"]),
|
|
@@ -613,8 +647,8 @@ const xe = /* @__PURE__ */ y({
|
|
|
613
647
|
(o(!0), l(I, null, S(s.question.dataList, (t, a) => (o(), l("option", {
|
|
614
648
|
key: a,
|
|
615
649
|
value: t
|
|
616
|
-
}, null, 8,
|
|
617
|
-
], 8,
|
|
650
|
+
}, null, 8, Ms))), 128))
|
|
651
|
+
], 8, fs)
|
|
618
652
|
], 512)) : (o(), c(d, {
|
|
619
653
|
key: 2,
|
|
620
654
|
is: "survey-text-input",
|
|
@@ -624,7 +658,7 @@ const xe = /* @__PURE__ */ y({
|
|
|
624
658
|
}
|
|
625
659
|
}, null, 8, ["question", "get-ref"]));
|
|
626
660
|
}
|
|
627
|
-
}),
|
|
661
|
+
}), Is = ["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"], Ss = ["disabled", "readonly", "type", "maxlength", "min", "max", "step", "size", "id", "list", "placeholder", "autocomplete", "value", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], Vs = /* @__PURE__ */ y({
|
|
628
662
|
__name: "TextInput",
|
|
629
663
|
props: {
|
|
630
664
|
question: {},
|
|
@@ -633,12 +667,12 @@ const xe = /* @__PURE__ */ y({
|
|
|
633
667
|
setup(u, { expose: e }) {
|
|
634
668
|
const n = u, s = function(a) {
|
|
635
669
|
n.getRef && n.getRef(a);
|
|
636
|
-
}, i =
|
|
670
|
+
}, i = b(null);
|
|
637
671
|
e({ root: i }), V(() => n.question);
|
|
638
|
-
const t =
|
|
672
|
+
const t = f(() => n.question.inputStyle);
|
|
639
673
|
return (a, p) => a.question.getMaxLength() ? (o(), l("div", {
|
|
640
674
|
key: 1,
|
|
641
|
-
ref: (
|
|
675
|
+
ref: (h) => s(h)
|
|
642
676
|
}, [
|
|
643
677
|
v("input", {
|
|
644
678
|
disabled: a.question.isDisabledAttr,
|
|
@@ -657,32 +691,32 @@ const xe = /* @__PURE__ */ y({
|
|
|
657
691
|
autocomplete: a.question.autocomplete,
|
|
658
692
|
value: a.question.inputValue,
|
|
659
693
|
onChange: p[6] || (p[6] = //@ts-ignore
|
|
660
|
-
(...
|
|
694
|
+
(...h) => a.question.onChange && a.question.onChange(...h)),
|
|
661
695
|
onKeyup: p[7] || (p[7] = //@ts-ignore
|
|
662
|
-
(...
|
|
696
|
+
(...h) => a.question.onKeyUp && a.question.onKeyUp(...h)),
|
|
663
697
|
onKeydown: p[8] || (p[8] = //@ts-ignore
|
|
664
|
-
(...
|
|
698
|
+
(...h) => a.question.onKeyDown && a.question.onKeyDown(...h)),
|
|
665
699
|
onCompositionUpdate: p[9] || (p[9] = //@ts-ignore
|
|
666
|
-
(...
|
|
700
|
+
(...h) => a.question.onCompositionUpdate && a.question.onCompositionUpdate(...h)),
|
|
667
701
|
onBlur: p[10] || (p[10] = //@ts-ignore
|
|
668
|
-
(...
|
|
702
|
+
(...h) => a.question.onBlur && a.question.onBlur(...h)),
|
|
669
703
|
onFocus: p[11] || (p[11] = //@ts-ignore
|
|
670
|
-
(...
|
|
704
|
+
(...h) => a.question.onFocus && a.question.onFocus(...h)),
|
|
671
705
|
"aria-required": a.question.a11y_input_ariaRequired,
|
|
672
706
|
"aria-label": a.question.a11y_input_ariaLabel,
|
|
673
707
|
"aria-labelledby": a.question.a11y_input_ariaLabelledBy,
|
|
674
708
|
"aria-describedby": a.question.a11y_input_ariaDescribedBy,
|
|
675
709
|
"aria-invalid": a.question.a11y_input_ariaInvalid,
|
|
676
710
|
"aria-errormessage": a.question.a11y_input_ariaErrormessage
|
|
677
|
-
}, null, 46,
|
|
678
|
-
|
|
711
|
+
}, null, 46, Ss),
|
|
712
|
+
g(d, {
|
|
679
713
|
is: "sv-character-counter",
|
|
680
714
|
counter: a.question.characterCounter,
|
|
681
715
|
remainingCharacterCounter: a.question.cssClasses.remainingCharacterCounter
|
|
682
716
|
}, null, 8, ["counter", "remainingCharacterCounter"])
|
|
683
717
|
], 512)) : (o(), l("input", {
|
|
684
718
|
key: 0,
|
|
685
|
-
ref: (
|
|
719
|
+
ref: (h) => s(h),
|
|
686
720
|
disabled: a.question.isDisabledAttr,
|
|
687
721
|
readonly: a.question.isReadOnlyAttr,
|
|
688
722
|
class: r(a.question.getControlClass()),
|
|
@@ -699,29 +733,29 @@ const xe = /* @__PURE__ */ y({
|
|
|
699
733
|
autocomplete: a.question.autocomplete,
|
|
700
734
|
value: a.question.inputValue,
|
|
701
735
|
onChange: p[0] || (p[0] = //@ts-ignore
|
|
702
|
-
(...
|
|
736
|
+
(...h) => a.question.onChange && a.question.onChange(...h)),
|
|
703
737
|
onKeyup: p[1] || (p[1] = //@ts-ignore
|
|
704
|
-
(...
|
|
738
|
+
(...h) => a.question.onKeyUp && a.question.onKeyUp(...h)),
|
|
705
739
|
onKeydown: p[2] || (p[2] = //@ts-ignore
|
|
706
|
-
(...
|
|
740
|
+
(...h) => a.question.onKeyDown && a.question.onKeyDown(...h)),
|
|
707
741
|
onCompositionUpdate: p[3] || (p[3] = //@ts-ignore
|
|
708
|
-
(...
|
|
742
|
+
(...h) => a.question.onCompositionUpdate && a.question.onCompositionUpdate(...h)),
|
|
709
743
|
onBlur: p[4] || (p[4] = //@ts-ignore
|
|
710
|
-
(...
|
|
744
|
+
(...h) => a.question.onBlur && a.question.onBlur(...h)),
|
|
711
745
|
onFocus: p[5] || (p[5] = //@ts-ignore
|
|
712
|
-
(...
|
|
746
|
+
(...h) => a.question.onFocus && a.question.onFocus(...h)),
|
|
713
747
|
"aria-required": a.question.a11y_input_ariaRequired,
|
|
714
748
|
"aria-label": a.question.a11y_input_ariaLabel,
|
|
715
749
|
"aria-labelledby": a.question.a11y_input_ariaLabelledBy,
|
|
716
750
|
"aria-describedby": a.question.a11y_input_ariaDescribedBy,
|
|
717
751
|
"aria-invalid": a.question.a11y_input_ariaInvalid,
|
|
718
752
|
"aria-errormessage": a.question.a11y_input_ariaErrormessage
|
|
719
|
-
}, null, 46,
|
|
753
|
+
}, null, 46, Is));
|
|
720
754
|
}
|
|
721
|
-
}),
|
|
755
|
+
}), Bs = ["role", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], Rs = {
|
|
722
756
|
key: 0,
|
|
723
757
|
class: "sv-hidden"
|
|
724
|
-
},
|
|
758
|
+
}, Ts = { key: 7 }, Zs = ["value"], we = /* @__PURE__ */ y({
|
|
725
759
|
inheritAttrs: !1,
|
|
726
760
|
__name: "SelectBase",
|
|
727
761
|
props: {
|
|
@@ -729,7 +763,7 @@ const xe = /* @__PURE__ */ y({
|
|
|
729
763
|
showLegend: { type: Boolean }
|
|
730
764
|
},
|
|
731
765
|
setup(u) {
|
|
732
|
-
const e = u, n =
|
|
766
|
+
const e = u, n = b(null);
|
|
733
767
|
T(e, n);
|
|
734
768
|
const s = (t) => e.question.getItemValueWrapperComponentName(t) || e.question.itemComponent, i = (t) => ({
|
|
735
769
|
componentName: e.question.itemComponent,
|
|
@@ -751,7 +785,7 @@ const xe = /* @__PURE__ */ y({
|
|
|
751
785
|
"aria-invalid": t.question.a11y_input_ariaInvalid,
|
|
752
786
|
"aria-errormessage": t.question.a11y_input_ariaErrormessage
|
|
753
787
|
}, [
|
|
754
|
-
t.showLegend ? (o(), l("legend",
|
|
788
|
+
t.showLegend ? (o(), l("legend", Rs, H(t.question.locTitle.renderedHtml), 1)) : m("", !0),
|
|
755
789
|
t.question.hasHeadItems ? (o(!0), l(I, { key: 1 }, S(t.question.headItems, (p) => (o(), c(d, D({
|
|
756
790
|
key: p.value,
|
|
757
791
|
is: s(p)
|
|
@@ -773,8 +807,8 @@ const xe = /* @__PURE__ */ y({
|
|
|
773
807
|
key: 4,
|
|
774
808
|
class: r(t.question.cssClasses.rootMultiColumn)
|
|
775
809
|
}, [
|
|
776
|
-
t.question.hasColumns ? (o(!0), l(I, { key: 0 }, S(t.question.columns, (p,
|
|
777
|
-
key:
|
|
810
|
+
t.question.hasColumns ? (o(!0), l(I, { key: 0 }, S(t.question.columns, (p, h) => (o(), l("div", {
|
|
811
|
+
key: h,
|
|
778
812
|
class: r(t.question.getColumnClass()),
|
|
779
813
|
role: "presentation"
|
|
780
814
|
}, [
|
|
@@ -793,7 +827,7 @@ const xe = /* @__PURE__ */ y({
|
|
|
793
827
|
is: "survey-other-choice",
|
|
794
828
|
question: t.question
|
|
795
829
|
}, null, 8, ["question"])) : m("", !0),
|
|
796
|
-
t.question.showClearButtonInContent ? (o(), l("div",
|
|
830
|
+
t.question.showClearButtonInContent ? (o(), l("div", Ts, [
|
|
797
831
|
v("input", {
|
|
798
832
|
type: "button",
|
|
799
833
|
class: r(t.question.cssClasses.clearButton),
|
|
@@ -801,11 +835,11 @@ const xe = /* @__PURE__ */ y({
|
|
|
801
835
|
t.question.clearValue(!0);
|
|
802
836
|
}),
|
|
803
837
|
value: t.question.clearButtonCaption
|
|
804
|
-
}, null, 10,
|
|
838
|
+
}, null, 10, Zs)
|
|
805
839
|
])) : m("", !0)
|
|
806
|
-
], 10,
|
|
840
|
+
], 10, Bs));
|
|
807
841
|
}
|
|
808
|
-
}),
|
|
842
|
+
}), $s = /* @__PURE__ */ y({
|
|
809
843
|
inheritAttrs: !1,
|
|
810
844
|
__name: "Checkbox",
|
|
811
845
|
props: {
|
|
@@ -819,7 +853,7 @@ const xe = /* @__PURE__ */ y({
|
|
|
819
853
|
}
|
|
820
854
|
});
|
|
821
855
|
function Le(u, e, n) {
|
|
822
|
-
|
|
856
|
+
Z(() => {
|
|
823
857
|
n.value && (e().isDesignMode || u().setRootElement(n.value));
|
|
824
858
|
}), P(() => {
|
|
825
859
|
e().isDesignMode || u().setRootElement(void 0);
|
|
@@ -827,7 +861,7 @@ function Le(u, e, n) {
|
|
|
827
861
|
e().isDesignMode || (s && n.value && s.setRootElement(n.value), i && i.setRootElement(void 0));
|
|
828
862
|
});
|
|
829
863
|
}
|
|
830
|
-
const
|
|
864
|
+
const Ds = ["name", "checked", "value", "id", "disabled", "readonly", "required"], As = ["xlink:href"], Ns = /* @__PURE__ */ y({
|
|
831
865
|
inheritAttrs: !1,
|
|
832
866
|
__name: "CheckboxItem",
|
|
833
867
|
props: {
|
|
@@ -836,7 +870,7 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
836
870
|
hideLabel: { type: Boolean }
|
|
837
871
|
},
|
|
838
872
|
setup(u) {
|
|
839
|
-
const e =
|
|
873
|
+
const e = b(), n = u;
|
|
840
874
|
Le(
|
|
841
875
|
() => n.item,
|
|
842
876
|
() => n.question,
|
|
@@ -867,7 +901,7 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
867
901
|
readonly: i.question.isReadOnlyAttr,
|
|
868
902
|
class: r(i.question.cssClasses.itemControl),
|
|
869
903
|
required: i.question.hasRequiredError()
|
|
870
|
-
}, null, 42,
|
|
904
|
+
}, null, 42, Ds),
|
|
871
905
|
i.question.cssClasses.materialDecorator ? (o(), l("span", {
|
|
872
906
|
key: 0,
|
|
873
907
|
class: r(i.question.cssClasses.materialDecorator)
|
|
@@ -878,14 +912,14 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
878
912
|
}, [
|
|
879
913
|
v("use", {
|
|
880
914
|
"xlink:href": i.question.itemSvgIcon
|
|
881
|
-
}, null, 8,
|
|
915
|
+
}, null, 8, As)
|
|
882
916
|
], 2)) : m("", !0)
|
|
883
917
|
], 2)) : m("", !0),
|
|
884
918
|
i.hideLabel ? m("", !0) : (o(), l("span", {
|
|
885
919
|
key: 1,
|
|
886
920
|
class: r(i.question.cssClasses.controlLabel)
|
|
887
921
|
}, [
|
|
888
|
-
|
|
922
|
+
g(d, {
|
|
889
923
|
is: "survey-string",
|
|
890
924
|
locString: i.item.locText
|
|
891
925
|
}, null, 8, ["locString"])
|
|
@@ -893,7 +927,7 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
893
927
|
], 2)
|
|
894
928
|
], 2));
|
|
895
929
|
}
|
|
896
|
-
}),
|
|
930
|
+
}), Ps = /* @__PURE__ */ y({
|
|
897
931
|
inheritAttrs: !1,
|
|
898
932
|
__name: "Radiogroup",
|
|
899
933
|
props: {
|
|
@@ -902,7 +936,7 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
902
936
|
setup(u) {
|
|
903
937
|
return (e, n) => (o(), c(we, { question: e.question }, null, 8, ["question"]));
|
|
904
938
|
}
|
|
905
|
-
}),
|
|
939
|
+
}), Es = ["name", "value", "id", "aria-errormessage", "disabled", "readonly"], Ws = ["xlink:href"], Fs = /* @__PURE__ */ y({
|
|
906
940
|
inheritAttrs: !1,
|
|
907
941
|
__name: "RadiogroupItem",
|
|
908
942
|
props: {
|
|
@@ -911,7 +945,7 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
911
945
|
hideLabel: { type: Boolean }
|
|
912
946
|
},
|
|
913
947
|
setup(u) {
|
|
914
|
-
const e =
|
|
948
|
+
const e = b(), n = u, s = (a) => n.question.getLabelClass(a), i = (a) => n.question.getControlLabelClass(a), t = f({
|
|
915
949
|
get: () => n.question.renderedValue,
|
|
916
950
|
set: (a) => {
|
|
917
951
|
const p = n.question;
|
|
@@ -929,7 +963,7 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
929
963
|
ref: e
|
|
930
964
|
}, [
|
|
931
965
|
v("label", {
|
|
932
|
-
onMousedown: p[1] || (p[1] = (
|
|
966
|
+
onMousedown: p[1] || (p[1] = (h) => a.question.onMouseDown()),
|
|
933
967
|
class: r(s(a.item))
|
|
934
968
|
}, [
|
|
935
969
|
R(v("input", {
|
|
@@ -938,12 +972,12 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
938
972
|
value: a.item.value,
|
|
939
973
|
id: a.question.getItemId(a.item),
|
|
940
974
|
"aria-errormessage": a.question.ariaErrormessage,
|
|
941
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
975
|
+
"onUpdate:modelValue": p[0] || (p[0] = (h) => t.value = h),
|
|
942
976
|
disabled: !a.question.getItemEnabled(a.item),
|
|
943
977
|
readonly: a.question.isReadOnlyAttr,
|
|
944
978
|
class: r(a.question.cssClasses.itemControl)
|
|
945
|
-
}, null, 10,
|
|
946
|
-
[
|
|
979
|
+
}, null, 10, Es), [
|
|
980
|
+
[x, t.value]
|
|
947
981
|
]),
|
|
948
982
|
a.question.cssClasses.materialDecorator ? (o(), l("span", {
|
|
949
983
|
key: 0,
|
|
@@ -955,14 +989,14 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
955
989
|
}, [
|
|
956
990
|
v("use", {
|
|
957
991
|
"xlink:href": a.question.itemSvgIcon
|
|
958
|
-
}, null, 8,
|
|
992
|
+
}, null, 8, Ws)
|
|
959
993
|
], 2)) : m("", !0)
|
|
960
994
|
], 2)) : m("", !0),
|
|
961
995
|
a.hideLabel ? m("", !0) : (o(), l("span", {
|
|
962
996
|
key: 1,
|
|
963
997
|
class: r(i(a.item))
|
|
964
998
|
}, [
|
|
965
|
-
|
|
999
|
+
g(d, {
|
|
966
1000
|
is: "survey-string",
|
|
967
1001
|
locString: a.item.locText
|
|
968
1002
|
}, null, 8, ["locString"])
|
|
@@ -970,14 +1004,14 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
970
1004
|
], 34)
|
|
971
1005
|
], 2));
|
|
972
1006
|
}
|
|
973
|
-
}),
|
|
1007
|
+
}), zs = ["src"], Os = ["title"], Us = { key: 0 }, Ks = /* @__PURE__ */ y({
|
|
974
1008
|
inheritAttrs: !1,
|
|
975
1009
|
__name: "Signaturepad",
|
|
976
1010
|
props: {
|
|
977
1011
|
question: {}
|
|
978
1012
|
},
|
|
979
1013
|
setup(u) {
|
|
980
|
-
const e = u, n =
|
|
1014
|
+
const e = u, n = b(null);
|
|
981
1015
|
return T(e, n), (s, i) => (o(), l("div", {
|
|
982
1016
|
class: r(s.question.cssClasses.root),
|
|
983
1017
|
ref_key: "root",
|
|
@@ -989,7 +1023,7 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
989
1023
|
R(v("div", {
|
|
990
1024
|
class: r(s.question.cssClasses.placeholder)
|
|
991
1025
|
}, [
|
|
992
|
-
|
|
1026
|
+
g(d, {
|
|
993
1027
|
is: "survey-string",
|
|
994
1028
|
locString: s.question.locRenderedPlaceholder
|
|
995
1029
|
}, null, 8, ["locString"])
|
|
@@ -1004,7 +1038,7 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1004
1038
|
style: M({
|
|
1005
1039
|
width: s.question.renderedCanvasWidth
|
|
1006
1040
|
})
|
|
1007
|
-
}, null, 14,
|
|
1041
|
+
}, null, 14, zs)) : m("", !0),
|
|
1008
1042
|
v("canvas", {
|
|
1009
1043
|
tabindex: "-1",
|
|
1010
1044
|
class: r(s.question.cssClasses.canvas),
|
|
@@ -1024,31 +1058,31 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1024
1058
|
s.question.clearValue(!0);
|
|
1025
1059
|
})
|
|
1026
1060
|
}, [
|
|
1027
|
-
s.question.cssClasses.clearButtonIconId ? m("", !0) : (o(), l("span",
|
|
1061
|
+
s.question.cssClasses.clearButtonIconId ? m("", !0) : (o(), l("span", Us, "✖")),
|
|
1028
1062
|
s.question.cssClasses.clearButtonIconId ? (o(), c(d, {
|
|
1029
1063
|
key: 1,
|
|
1030
1064
|
is: "sv-svg-icon",
|
|
1031
1065
|
iconName: s.question.cssClasses.clearButtonIconId,
|
|
1032
1066
|
size: "auto"
|
|
1033
1067
|
}, null, 8, ["iconName"])) : m("", !0)
|
|
1034
|
-
], 10,
|
|
1068
|
+
], 10, Os)
|
|
1035
1069
|
], 2)) : m("", !0),
|
|
1036
1070
|
s.question.showLoadingIndicator ? (o(), l("div", {
|
|
1037
1071
|
key: 1,
|
|
1038
1072
|
class: r(s.question.cssClasses.loadingIndicator)
|
|
1039
1073
|
}, [
|
|
1040
|
-
|
|
1074
|
+
g(d, { is: "sv-loading-indicator" })
|
|
1041
1075
|
], 2)) : m("", !0)
|
|
1042
1076
|
], 6));
|
|
1043
1077
|
}
|
|
1044
|
-
}),
|
|
1078
|
+
}), js = ["innerHTML"], Qs = /* @__PURE__ */ y({
|
|
1045
1079
|
inheritAttrs: !1,
|
|
1046
1080
|
__name: "Html",
|
|
1047
1081
|
props: {
|
|
1048
1082
|
question: {}
|
|
1049
1083
|
},
|
|
1050
1084
|
setup(u) {
|
|
1051
|
-
const e = u, n =
|
|
1085
|
+
const e = u, n = b(null);
|
|
1052
1086
|
T(e, n);
|
|
1053
1087
|
const s = O(() => e.question.locHtml);
|
|
1054
1088
|
return (i, t) => (o(), l("div", {
|
|
@@ -1056,16 +1090,16 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1056
1090
|
ref: n,
|
|
1057
1091
|
class: r(i.question.renderCssRoot),
|
|
1058
1092
|
innerHTML: L(s)
|
|
1059
|
-
}, null, 10,
|
|
1093
|
+
}, null, 10, js));
|
|
1060
1094
|
}
|
|
1061
|
-
}),
|
|
1095
|
+
}), Gs = ["src", "alt", "width", "height"], Js = ["src", "width", "height"], Xs = ["src", "width", "height"], Ys = /* @__PURE__ */ y({
|
|
1062
1096
|
inheritAttrs: !1,
|
|
1063
1097
|
__name: "Image",
|
|
1064
1098
|
props: {
|
|
1065
1099
|
question: {}
|
|
1066
1100
|
},
|
|
1067
1101
|
setup(u) {
|
|
1068
|
-
const e = u, n =
|
|
1102
|
+
const e = u, n = b(null);
|
|
1069
1103
|
T(e, n);
|
|
1070
1104
|
const s = O(() => e.question.locImageLink);
|
|
1071
1105
|
return (i, t) => (o(), l("div", {
|
|
@@ -1091,7 +1125,7 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1091
1125
|
onError: t[1] || (t[1] = (a) => {
|
|
1092
1126
|
i.question.onErrorHandler();
|
|
1093
1127
|
})
|
|
1094
|
-
}, null, 46,
|
|
1128
|
+
}, null, 46, Gs)), [
|
|
1095
1129
|
[N, L(s) && !i.question.contentNotLoaded]
|
|
1096
1130
|
]) : m("", !0),
|
|
1097
1131
|
i.question.renderedMode === "video" ? R((o(), l("video", {
|
|
@@ -1112,7 +1146,7 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1112
1146
|
onError: t[3] || (t[3] = (a) => {
|
|
1113
1147
|
i.question.onErrorHandler();
|
|
1114
1148
|
})
|
|
1115
|
-
}, null, 46,
|
|
1149
|
+
}, null, 46, Js)), [
|
|
1116
1150
|
[N, L(s) && !i.question.contentNotLoaded]
|
|
1117
1151
|
]) : m("", !0),
|
|
1118
1152
|
i.question.renderedMode === "youtube" ? (o(), l("iframe", {
|
|
@@ -1126,12 +1160,12 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1126
1160
|
width: i.question.renderedStyleWidth,
|
|
1127
1161
|
height: i.question.renderedStyleHeight
|
|
1128
1162
|
})
|
|
1129
|
-
}, null, 14,
|
|
1163
|
+
}, null, 14, Xs)) : m("", !0),
|
|
1130
1164
|
!L(s) || i.question.contentNotLoaded ? (o(), l("div", {
|
|
1131
1165
|
key: 3,
|
|
1132
1166
|
class: r(i.question.cssClasses.noImage)
|
|
1133
1167
|
}, [
|
|
1134
|
-
|
|
1168
|
+
g(d, {
|
|
1135
1169
|
is: "sv-svg-icon",
|
|
1136
1170
|
iconName: i.question.cssClasses.noImageSvgIconId,
|
|
1137
1171
|
size: 48
|
|
@@ -1139,28 +1173,28 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1139
1173
|
], 2)) : m("", !0)
|
|
1140
1174
|
], 2));
|
|
1141
1175
|
}
|
|
1142
|
-
}),
|
|
1176
|
+
}), _s = /* @__PURE__ */ y({
|
|
1143
1177
|
inheritAttrs: !1,
|
|
1144
1178
|
__name: "Expression",
|
|
1145
1179
|
props: {
|
|
1146
1180
|
question: {}
|
|
1147
1181
|
},
|
|
1148
1182
|
setup(u) {
|
|
1149
|
-
const e = u, n =
|
|
1183
|
+
const e = u, n = b(null);
|
|
1150
1184
|
return T(e, n), (s, i) => (o(), l("div", {
|
|
1151
1185
|
class: r(s.question.cssClasses.root),
|
|
1152
1186
|
ref_key: "root",
|
|
1153
1187
|
ref: n
|
|
1154
1188
|
}, H(s.question.formatedValue), 3));
|
|
1155
1189
|
}
|
|
1156
|
-
}),
|
|
1190
|
+
}), xs = ["id", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "multiple", "title", "accept", "capture"], e1 = ["id", "multiple", "placeholder"], s1 = ["id", "multiple", "placeholder"], n1 = /* @__PURE__ */ y({
|
|
1157
1191
|
inheritAttrs: !1,
|
|
1158
1192
|
__name: "File",
|
|
1159
1193
|
props: {
|
|
1160
1194
|
question: {}
|
|
1161
1195
|
},
|
|
1162
1196
|
setup(u) {
|
|
1163
|
-
const e = u, n =
|
|
1197
|
+
const e = u, n = b(null);
|
|
1164
1198
|
return T(e, n), (s, i) => (o(), l("div", {
|
|
1165
1199
|
class: r(s.question.fileRootCss),
|
|
1166
1200
|
ref_key: "root",
|
|
@@ -1180,7 +1214,7 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1180
1214
|
title: s.question.inputTitle,
|
|
1181
1215
|
accept: s.question.acceptedTypes,
|
|
1182
1216
|
capture: s.question.renderCapture
|
|
1183
|
-
}, null, 10,
|
|
1217
|
+
}, null, 10, xs)) : m("", !0),
|
|
1184
1218
|
s.question.isReadOnlyAttr ? (o(), l("input", {
|
|
1185
1219
|
key: 1,
|
|
1186
1220
|
type: "file",
|
|
@@ -1190,7 +1224,7 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1190
1224
|
multiple: s.question.allowMultiple,
|
|
1191
1225
|
placeholder: s.question.title,
|
|
1192
1226
|
style: { color: "transparent" }
|
|
1193
|
-
}, null, 10,
|
|
1227
|
+
}, null, 10, e1)) : m("", !0),
|
|
1194
1228
|
s.question.isDisabledAttr ? (o(), l("input", {
|
|
1195
1229
|
key: 2,
|
|
1196
1230
|
type: "file",
|
|
@@ -1200,7 +1234,7 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1200
1234
|
multiple: s.question.allowMultiple,
|
|
1201
1235
|
placeholder: s.question.title,
|
|
1202
1236
|
style: { color: "transparent" }
|
|
1203
|
-
}, null, 10,
|
|
1237
|
+
}, null, 10, s1)) : m("", !0),
|
|
1204
1238
|
v("div", {
|
|
1205
1239
|
class: r(s.question.cssClasses.dragArea),
|
|
1206
1240
|
onDrop: i[0] || (i[0] = //@ts-ignore
|
|
@@ -1219,7 +1253,7 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1219
1253
|
v("span", {
|
|
1220
1254
|
class: r(s.question.cssClasses.dragAreaPlaceholder)
|
|
1221
1255
|
}, [
|
|
1222
|
-
|
|
1256
|
+
g(d, {
|
|
1223
1257
|
is: "survey-string",
|
|
1224
1258
|
locString: s.question.locRenderedPlaceholder
|
|
1225
1259
|
}, null, 8, ["locString"])
|
|
@@ -1253,7 +1287,7 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1253
1287
|
key: 2,
|
|
1254
1288
|
class: r(s.question.cssClasses.loadingIndicator)
|
|
1255
1289
|
}, [
|
|
1256
|
-
|
|
1290
|
+
g(d, { is: "sv-loading-indicator" })
|
|
1257
1291
|
], 2)) : m("", !0),
|
|
1258
1292
|
s.question.isPlayingVideo ? (o(), c(d, {
|
|
1259
1293
|
key: 3,
|
|
@@ -1279,17 +1313,17 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1279
1313
|
], 34)
|
|
1280
1314
|
], 2));
|
|
1281
1315
|
}
|
|
1282
|
-
}),
|
|
1316
|
+
}), t1 = { class: "sv-hidden" }, Ce = "survey-imagepicker-item", o1 = /* @__PURE__ */ y({
|
|
1283
1317
|
inheritAttrs: !1,
|
|
1284
1318
|
__name: "Imagepicker",
|
|
1285
1319
|
props: {
|
|
1286
1320
|
question: {}
|
|
1287
1321
|
},
|
|
1288
1322
|
setup(u) {
|
|
1289
|
-
const e = u, n =
|
|
1323
|
+
const e = u, n = b(null);
|
|
1290
1324
|
T(e, n);
|
|
1291
|
-
const s = (t) => e.question.getItemValueWrapperComponentName(t) ||
|
|
1292
|
-
componentName:
|
|
1325
|
+
const s = (t) => e.question.getItemValueWrapperComponentName(t) || Ce, i = (t) => ({
|
|
1326
|
+
componentName: Ce,
|
|
1293
1327
|
componentData: {
|
|
1294
1328
|
question: e.question,
|
|
1295
1329
|
item: t,
|
|
@@ -1302,14 +1336,14 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1302
1336
|
ref_key: "root",
|
|
1303
1337
|
ref: n
|
|
1304
1338
|
}, [
|
|
1305
|
-
v("legend",
|
|
1339
|
+
v("legend", t1, H(t.question.locTitle.renderedHtml), 1),
|
|
1306
1340
|
t.question.hasColumns ? m("", !0) : (o(!0), l(I, { key: 0 }, S(t.question.visibleChoices, (p) => (o(), c(d, D({
|
|
1307
1341
|
key: p.value,
|
|
1308
1342
|
is: s(p)
|
|
1309
1343
|
}, i(p)), null, 16, ["is"]))), 128)),
|
|
1310
|
-
t.question.hasColumns ? (o(!0), l(I, { key: 1 }, S(t.question.columns, (p,
|
|
1344
|
+
t.question.hasColumns ? (o(!0), l(I, { key: 1 }, S(t.question.columns, (p, h) => (o(), l("div", {
|
|
1311
1345
|
class: r(t.question.getColumnClass()),
|
|
1312
|
-
key:
|
|
1346
|
+
key: h,
|
|
1313
1347
|
role: "presentation"
|
|
1314
1348
|
}, [
|
|
1315
1349
|
(o(!0), l(I, null, S(p, (C) => (o(), c(d, D({
|
|
@@ -1319,7 +1353,7 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1319
1353
|
], 2))), 128)) : m("", !0)
|
|
1320
1354
|
], 6));
|
|
1321
1355
|
}
|
|
1322
|
-
}),
|
|
1356
|
+
}), i1 = ["name", "value", "id", "disabled", "readonly", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], r1 = ["name", "value", "id", "disabled", "readonly", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], l1 = ["src", "width", "height", "alt"], a1 = ["src", "width", "height"], u1 = /* @__PURE__ */ y({
|
|
1323
1357
|
inheritAttrs: !1,
|
|
1324
1358
|
__name: "ImagepickerItem",
|
|
1325
1359
|
props: {
|
|
@@ -1327,7 +1361,7 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1327
1361
|
item: {}
|
|
1328
1362
|
},
|
|
1329
1363
|
setup(u) {
|
|
1330
|
-
const e = u, n = (t) => e.question.getItemClass(t), s =
|
|
1364
|
+
const e = u, n = (t) => e.question.getItemClass(t), s = f({
|
|
1331
1365
|
get() {
|
|
1332
1366
|
return e.question.value;
|
|
1333
1367
|
},
|
|
@@ -1358,8 +1392,8 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1358
1392
|
"aria-invalid": t.question.ariaInvalid,
|
|
1359
1393
|
"aria-errormessage": t.question.ariaErrormessage,
|
|
1360
1394
|
class: r(t.question.cssClasses.itemControl)
|
|
1361
|
-
}, null, 10,
|
|
1362
|
-
[
|
|
1395
|
+
}, null, 10, i1)), [
|
|
1396
|
+
[oe, s.value]
|
|
1363
1397
|
]) : R((o(), l("input", {
|
|
1364
1398
|
key: 1,
|
|
1365
1399
|
type: "radio",
|
|
@@ -1374,8 +1408,8 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1374
1408
|
"aria-invalid": t.question.ariaInvalid,
|
|
1375
1409
|
"aria-errormessage": t.question.ariaErrormessage,
|
|
1376
1410
|
class: r(t.question.cssClasses.itemControl)
|
|
1377
|
-
}, null, 10,
|
|
1378
|
-
[
|
|
1411
|
+
}, null, 10, r1)), [
|
|
1412
|
+
[x, s.value]
|
|
1379
1413
|
]),
|
|
1380
1414
|
v("div", {
|
|
1381
1415
|
class: r(t.question.cssClasses.itemDecorator)
|
|
@@ -1410,7 +1444,7 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1410
1444
|
onError: a[3] || (a[3] = (p) => {
|
|
1411
1445
|
t.item.onErrorHandler();
|
|
1412
1446
|
})
|
|
1413
|
-
}, null, 46,
|
|
1447
|
+
}, null, 46, l1)) : m("", !0),
|
|
1414
1448
|
L(i) && !t.item.contentNotLoaded && t.question.contentMode === "video" ? (o(), l("video", {
|
|
1415
1449
|
key: 2,
|
|
1416
1450
|
controls: "",
|
|
@@ -1425,7 +1459,7 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1425
1459
|
onError: a[5] || (a[5] = (p) => {
|
|
1426
1460
|
t.item.onErrorHandler();
|
|
1427
1461
|
})
|
|
1428
|
-
}, null, 46,
|
|
1462
|
+
}, null, 46, a1)) : m("", !0),
|
|
1429
1463
|
!L(i) || t.item.contentNotLoaded ? (o(), l("div", {
|
|
1430
1464
|
key: 3,
|
|
1431
1465
|
class: r(t.question.cssClasses.itemNoImage),
|
|
@@ -1435,7 +1469,7 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1435
1469
|
objectFit: t.question.imageFit
|
|
1436
1470
|
})
|
|
1437
1471
|
}, [
|
|
1438
|
-
|
|
1472
|
+
g(d, {
|
|
1439
1473
|
is: "sv-svg-icon",
|
|
1440
1474
|
class: r(t.question.cssClasses.itemNoImageSvgIcon),
|
|
1441
1475
|
iconName: t.question.cssClasses.itemNoImageSvgIconId,
|
|
@@ -1447,7 +1481,7 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1447
1481
|
key: 0,
|
|
1448
1482
|
class: r(t.question.cssClasses.itemText)
|
|
1449
1483
|
}, [
|
|
1450
|
-
|
|
1484
|
+
g(d, {
|
|
1451
1485
|
is: "survey-string",
|
|
1452
1486
|
locString: t.item.locText
|
|
1453
1487
|
}, null, 8, ["locString"])
|
|
@@ -1456,24 +1490,24 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1456
1490
|
], 2)
|
|
1457
1491
|
], 2));
|
|
1458
1492
|
}
|
|
1459
|
-
}),
|
|
1493
|
+
}), d1 = /* @__PURE__ */ y({
|
|
1460
1494
|
inheritAttrs: !1,
|
|
1461
1495
|
__name: "Comment",
|
|
1462
1496
|
props: {
|
|
1463
1497
|
question: {}
|
|
1464
1498
|
},
|
|
1465
1499
|
setup(u) {
|
|
1466
|
-
const e = u, n =
|
|
1500
|
+
const e = u, n = b(null);
|
|
1467
1501
|
return T(e, n), (s, i) => !s.question.isReadOnlyRenderDiv() && s.question.getMaxLength() ? (o(), l("div", {
|
|
1468
1502
|
key: 0,
|
|
1469
1503
|
ref_key: "root",
|
|
1470
1504
|
ref: n
|
|
1471
1505
|
}, [
|
|
1472
|
-
|
|
1506
|
+
g(d, {
|
|
1473
1507
|
is: "sv-text-area",
|
|
1474
1508
|
model: s.question.textAreaModel
|
|
1475
1509
|
}, null, 8, ["model"]),
|
|
1476
|
-
|
|
1510
|
+
g(d, {
|
|
1477
1511
|
is: "sv-character-counter",
|
|
1478
1512
|
counter: s.question.characterCounter,
|
|
1479
1513
|
remainingCharacterCounter: s.question.cssClasses.remainingCharacterCounter
|
|
@@ -1490,20 +1524,20 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1490
1524
|
ref: n
|
|
1491
1525
|
}, H(s.question.value), 513));
|
|
1492
1526
|
}
|
|
1493
|
-
}),
|
|
1527
|
+
}), m1 = /* @__PURE__ */ y({
|
|
1494
1528
|
inheritAttrs: !1,
|
|
1495
1529
|
__name: "Dropdown",
|
|
1496
1530
|
props: {
|
|
1497
1531
|
question: {}
|
|
1498
1532
|
},
|
|
1499
1533
|
setup(u) {
|
|
1500
|
-
const e = u, n =
|
|
1534
|
+
const e = u, n = b(null);
|
|
1501
1535
|
return T(e, n), (s, i) => (o(), l("div", {
|
|
1502
1536
|
class: r(s.question.renderCssRoot),
|
|
1503
1537
|
ref_key: "root",
|
|
1504
1538
|
ref: n
|
|
1505
1539
|
}, [
|
|
1506
|
-
|
|
1540
|
+
g(d, {
|
|
1507
1541
|
is: "sv-dropdown",
|
|
1508
1542
|
question: s.question
|
|
1509
1543
|
}, null, 8, ["question"]),
|
|
@@ -1514,29 +1548,29 @@ const B1 = ["name", "checked", "value", "id", "disabled", "readonly", "required"
|
|
|
1514
1548
|
}, null, 8, ["question"])) : m("", !0)
|
|
1515
1549
|
], 2));
|
|
1516
1550
|
}
|
|
1517
|
-
}),
|
|
1551
|
+
}), p1 = ["id", "autocomplete", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "required"], C1 = {
|
|
1518
1552
|
key: 0,
|
|
1519
1553
|
value: ""
|
|
1520
|
-
},
|
|
1521
|
-
|
|
1554
|
+
}, v1 = ["id"];
|
|
1555
|
+
ee.Instance.registerRenderer(
|
|
1522
1556
|
"dropdown",
|
|
1523
1557
|
"select",
|
|
1524
1558
|
"sv-dropdown-select"
|
|
1525
1559
|
);
|
|
1526
|
-
const
|
|
1560
|
+
const c1 = /* @__PURE__ */ y({
|
|
1527
1561
|
inheritAttrs: !1,
|
|
1528
1562
|
__name: "DropdownSelect",
|
|
1529
1563
|
props: {
|
|
1530
1564
|
question: {}
|
|
1531
1565
|
},
|
|
1532
1566
|
setup(u) {
|
|
1533
|
-
const e = u, n =
|
|
1567
|
+
const e = u, n = b(null);
|
|
1534
1568
|
T(e, n);
|
|
1535
1569
|
const s = (a) => {
|
|
1536
1570
|
e.question.onClick(a);
|
|
1537
1571
|
}, i = (a) => {
|
|
1538
1572
|
e.question.onKeyUp(a);
|
|
1539
|
-
}, t =
|
|
1573
|
+
}, t = f({
|
|
1540
1574
|
get() {
|
|
1541
1575
|
return e.question.value ?? "";
|
|
1542
1576
|
},
|
|
@@ -1558,10 +1592,10 @@ const ds = /* @__PURE__ */ y({
|
|
|
1558
1592
|
disabled: "",
|
|
1559
1593
|
id: a.question.inputId,
|
|
1560
1594
|
class: r(a.question.getControlClass())
|
|
1561
|
-
}, H(a.question.readOnlyText), 11,
|
|
1595
|
+
}, H(a.question.readOnlyText), 11, v1)) : R((o(), l("select", {
|
|
1562
1596
|
key: 0,
|
|
1563
1597
|
id: a.question.inputId,
|
|
1564
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
1598
|
+
"onUpdate:modelValue": p[0] || (p[0] = (h) => t.value = h),
|
|
1565
1599
|
onClick: s,
|
|
1566
1600
|
onKeyup: i,
|
|
1567
1601
|
autocomplete: a.question.autocomplete,
|
|
@@ -1572,13 +1606,13 @@ const ds = /* @__PURE__ */ y({
|
|
|
1572
1606
|
"aria-errormessage": a.question.ariaErrormessage,
|
|
1573
1607
|
required: a.question.isRequired
|
|
1574
1608
|
}, [
|
|
1575
|
-
a.question.allowClear ? (o(), l("option",
|
|
1576
|
-
(o(!0), l(I, null, S(a.question.visibleChoices, (
|
|
1609
|
+
a.question.allowClear ? (o(), l("option", C1, H(a.question.placeholder), 1)) : m("", !0),
|
|
1610
|
+
(o(!0), l(I, null, S(a.question.visibleChoices, (h) => (o(), c(d, {
|
|
1577
1611
|
is: "sv-dropdown-option-item",
|
|
1578
|
-
item:
|
|
1579
|
-
key:
|
|
1612
|
+
item: h,
|
|
1613
|
+
key: h.id
|
|
1580
1614
|
}, null, 8, ["item"]))), 128))
|
|
1581
|
-
], 42,
|
|
1615
|
+
], 42, p1)), [
|
|
1582
1616
|
[Re, t.value]
|
|
1583
1617
|
]),
|
|
1584
1618
|
a.question.cssClasses.chevronButtonIconId ? (o(), l("div", {
|
|
@@ -1586,7 +1620,7 @@ const ds = /* @__PURE__ */ y({
|
|
|
1586
1620
|
class: r(a.question.cssClasses.chevronButton),
|
|
1587
1621
|
"aria-hidden": "true"
|
|
1588
1622
|
}, [
|
|
1589
|
-
|
|
1623
|
+
g(d, {
|
|
1590
1624
|
is: "sv-svg-icon",
|
|
1591
1625
|
class: r(a.question.cssClasses.chevronButtonSvg),
|
|
1592
1626
|
iconName: a.question.cssClasses.chevronButtonIconId,
|
|
@@ -1601,7 +1635,7 @@ const ds = /* @__PURE__ */ y({
|
|
|
1601
1635
|
}, null, 8, ["question"])) : m("", !0)
|
|
1602
1636
|
], 2));
|
|
1603
1637
|
}
|
|
1604
|
-
}),
|
|
1638
|
+
}), g1 = ["value", "disabled"], h1 = /* @__PURE__ */ y({
|
|
1605
1639
|
__name: "OptionItem",
|
|
1606
1640
|
props: {
|
|
1607
1641
|
item: {}
|
|
@@ -1611,15 +1645,15 @@ const ds = /* @__PURE__ */ y({
|
|
|
1611
1645
|
return V(() => e.item), (s, i) => (o(), l("option", {
|
|
1612
1646
|
value: s.item.value,
|
|
1613
1647
|
disabled: !s.item.isEnabled
|
|
1614
|
-
}, H(L(n)), 9,
|
|
1648
|
+
}, H(L(n)), 9, g1));
|
|
1615
1649
|
}
|
|
1616
|
-
}),
|
|
1650
|
+
}), y1 = ["id", "disabled", "tabindex", "role", "aria-required", "aria-labelledby", "aria-label", "aria-invalid", "aria-errormessage", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], q1 = { style: { visibility: "hidden" } }, w1 = ["disabled", "inputmode", "role", "id", "tabindex", "readonly", "aria-expanded", "aria-controls", "aria-label", "aria-labelledby", "aria-describedby", "aria-activedescendant", "placeholder"], L1 = ["id", "aria-label", "aria-labelledby", "aria-describedby", "tabindex"], k1 = /* @__PURE__ */ y({
|
|
1617
1651
|
__name: "Dropdown",
|
|
1618
1652
|
props: {
|
|
1619
1653
|
question: {}
|
|
1620
1654
|
},
|
|
1621
1655
|
setup(u) {
|
|
1622
|
-
const e = u, n =
|
|
1656
|
+
const e = u, n = b(null), s = f(() => e.question.dropdownListModel), i = (w) => {
|
|
1623
1657
|
var A;
|
|
1624
1658
|
(A = s.value) == null || A.onClick(w);
|
|
1625
1659
|
}, t = (w) => {
|
|
@@ -1631,21 +1665,21 @@ const ds = /* @__PURE__ */ y({
|
|
|
1631
1665
|
}, p = (w) => {
|
|
1632
1666
|
var A;
|
|
1633
1667
|
(A = s.value) == null || A.keyHandler(w);
|
|
1634
|
-
},
|
|
1668
|
+
}, h = () => {
|
|
1635
1669
|
if (n.value) {
|
|
1636
1670
|
const w = n.value, A = s.value.inputStringRendered;
|
|
1637
|
-
|
|
1671
|
+
Ee.isTwoValueEquals(A, w.value, !1, !0, !1) || (w.value = s.value.inputStringRendered);
|
|
1638
1672
|
}
|
|
1639
1673
|
}, C = (w) => {
|
|
1640
|
-
e.question.onBlur(w),
|
|
1674
|
+
e.question.onBlur(w), h();
|
|
1641
1675
|
}, q = (w) => {
|
|
1642
1676
|
e.question.onFocus(w);
|
|
1643
1677
|
}, B = (w) => {
|
|
1644
1678
|
s.value.inputStringRendered = w.target.value;
|
|
1645
|
-
}, k =
|
|
1679
|
+
}, k = f(
|
|
1646
1680
|
() => e.question.showSelectedItemLocText
|
|
1647
|
-
),
|
|
1648
|
-
return V(() => s.value), j(
|
|
1681
|
+
), $ = f(() => e.question.selectedItemLocText);
|
|
1682
|
+
return V(() => s.value), j(h), Z(h), (w, A) => (o(), l("div", {
|
|
1649
1683
|
class: r(w.question.cssClasses.selectWrapper),
|
|
1650
1684
|
onClick: i
|
|
1651
1685
|
}, [
|
|
@@ -1659,6 +1693,7 @@ const ds = /* @__PURE__ */ y({
|
|
|
1659
1693
|
class: r(w.question.getControlClass()),
|
|
1660
1694
|
role: w.question.ariaRole,
|
|
1661
1695
|
"aria-required": w.question.ariaRequired,
|
|
1696
|
+
"aria-labelledby": w.question.ariaLabelledBy,
|
|
1662
1697
|
"aria-label": w.question.ariaLabel,
|
|
1663
1698
|
"aria-invalid": w.question.ariaInvalid,
|
|
1664
1699
|
"aria-errormessage": w.question.ariaErrormessage,
|
|
@@ -1679,13 +1714,13 @@ const ds = /* @__PURE__ */ y({
|
|
|
1679
1714
|
k.value ? (o(), c(d, {
|
|
1680
1715
|
key: 0,
|
|
1681
1716
|
is: "survey-string",
|
|
1682
|
-
locString:
|
|
1717
|
+
locString: $.value
|
|
1683
1718
|
}, null, 8, ["locString"])) : m("", !0),
|
|
1684
1719
|
s.value.showHintString ? (o(), l("div", {
|
|
1685
1720
|
key: 1,
|
|
1686
1721
|
class: r(w.question.cssClasses.hintSuffix)
|
|
1687
1722
|
}, [
|
|
1688
|
-
v("span",
|
|
1723
|
+
v("span", q1, H(s.value.inputStringRendered), 1),
|
|
1689
1724
|
v("span", null, H(s.value.hintStringSuffix), 1)
|
|
1690
1725
|
], 2)) : m("", !0),
|
|
1691
1726
|
w.question.showInputFieldComponent ? (o(), c(d, {
|
|
@@ -1716,7 +1751,7 @@ const ds = /* @__PURE__ */ y({
|
|
|
1716
1751
|
onInput: B,
|
|
1717
1752
|
onBlur: C,
|
|
1718
1753
|
onFocus: q
|
|
1719
|
-
}, null, 42,
|
|
1754
|
+
}, null, 42, w1)
|
|
1720
1755
|
], 2),
|
|
1721
1756
|
w.question.allowClear && w.question.cssClasses.cleanButtonIconId ? R((o(), l("div", {
|
|
1722
1757
|
key: 1,
|
|
@@ -1724,7 +1759,7 @@ const ds = /* @__PURE__ */ y({
|
|
|
1724
1759
|
onClick: a,
|
|
1725
1760
|
"aria-hidden": "true"
|
|
1726
1761
|
}, [
|
|
1727
|
-
|
|
1762
|
+
g(d, {
|
|
1728
1763
|
is: "sv-svg-icon",
|
|
1729
1764
|
class: r(w.question.cssClasses.cleanButtonSvg),
|
|
1730
1765
|
iconName: w.question.cssClasses.cleanButtonIconId,
|
|
@@ -1734,7 +1769,7 @@ const ds = /* @__PURE__ */ y({
|
|
|
1734
1769
|
], 2)), [
|
|
1735
1770
|
[N, w.question.showClearButton]
|
|
1736
1771
|
]) : m("", !0)
|
|
1737
|
-
], 42,
|
|
1772
|
+
], 42, y1)),
|
|
1738
1773
|
w.question.isReadOnly ? (o(), l("div", {
|
|
1739
1774
|
key: 2,
|
|
1740
1775
|
id: w.question.inputId,
|
|
@@ -1750,7 +1785,7 @@ const ds = /* @__PURE__ */ y({
|
|
|
1750
1785
|
locString: w.question.selectedItemLocText
|
|
1751
1786
|
}, null, 8, ["locString"])) : m("", !0),
|
|
1752
1787
|
v("div", null, H(w.question.readOnlyText), 1)
|
|
1753
|
-
], 10,
|
|
1788
|
+
], 10, L1)) : (o(), c(d, {
|
|
1754
1789
|
key: 1,
|
|
1755
1790
|
is: "sv-popup",
|
|
1756
1791
|
model: w.question.dropdownListModel.popupModel
|
|
@@ -1761,7 +1796,7 @@ const ds = /* @__PURE__ */ y({
|
|
|
1761
1796
|
onPointerdown: t,
|
|
1762
1797
|
"aria-hidden": "true"
|
|
1763
1798
|
}, [
|
|
1764
|
-
|
|
1799
|
+
g(d, {
|
|
1765
1800
|
is: "sv-svg-icon",
|
|
1766
1801
|
class: r(w.question.cssClasses.chevronButtonSvg),
|
|
1767
1802
|
iconName: w.question.cssClasses.chevronButtonIconId,
|
|
@@ -1770,20 +1805,20 @@ const ds = /* @__PURE__ */ y({
|
|
|
1770
1805
|
], 34)) : m("", !0)
|
|
1771
1806
|
], 2));
|
|
1772
1807
|
}
|
|
1773
|
-
}),
|
|
1808
|
+
}), b1 = /* @__PURE__ */ y({
|
|
1774
1809
|
inheritAttrs: !1,
|
|
1775
1810
|
__name: "Tagbox",
|
|
1776
1811
|
props: {
|
|
1777
1812
|
question: {}
|
|
1778
1813
|
},
|
|
1779
1814
|
setup(u) {
|
|
1780
|
-
const e = u, n =
|
|
1815
|
+
const e = u, n = b(null);
|
|
1781
1816
|
return T(e, n), (s, i) => (o(), l("div", {
|
|
1782
1817
|
class: r(s.question.renderCssRoot),
|
|
1783
1818
|
ref_key: "root",
|
|
1784
1819
|
ref: n
|
|
1785
1820
|
}, [
|
|
1786
|
-
|
|
1821
|
+
g(d, {
|
|
1787
1822
|
is: "sv-tagbox",
|
|
1788
1823
|
question: s.question
|
|
1789
1824
|
}, null, 8, ["question"]),
|
|
@@ -1794,15 +1829,15 @@ const ds = /* @__PURE__ */ y({
|
|
|
1794
1829
|
}, null, 8, ["question"])) : m("", !0)
|
|
1795
1830
|
], 2));
|
|
1796
1831
|
}
|
|
1797
|
-
}),
|
|
1832
|
+
}), f1 = ["id", "tabindex", "disabled", "role", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "aria-expanded", "aria-controls", "aria-activedescendant", "required"], M1 = ["id", "aria-label", "aria-labelledby", "aria-describedby", "tabindex"], H1 = /* @__PURE__ */ y({
|
|
1798
1833
|
__name: "Tagbox",
|
|
1799
1834
|
props: {
|
|
1800
1835
|
question: {}
|
|
1801
1836
|
},
|
|
1802
1837
|
setup(u) {
|
|
1803
|
-
const e = u, n =
|
|
1838
|
+
const e = u, n = f(() => {
|
|
1804
1839
|
const C = e.question;
|
|
1805
|
-
return C.dropdownListModel || (C.dropdownListModel = new
|
|
1840
|
+
return C.dropdownListModel || (C.dropdownListModel = new We(C)), e.question.dropdownListModel;
|
|
1806
1841
|
}), s = (C) => {
|
|
1807
1842
|
var q;
|
|
1808
1843
|
(q = n.value) == null || q.onClick(C);
|
|
@@ -1818,7 +1853,7 @@ const ds = /* @__PURE__ */ y({
|
|
|
1818
1853
|
}, p = (C) => {
|
|
1819
1854
|
var q;
|
|
1820
1855
|
(q = n.value) == null || q.onBlur(C);
|
|
1821
|
-
},
|
|
1856
|
+
}, h = se(() => e.question.selectedChoices);
|
|
1822
1857
|
return V(() => n.value), (C, q) => (o(), l("div", {
|
|
1823
1858
|
class: r(C.question.cssClasses.selectWrapper),
|
|
1824
1859
|
onClick: s
|
|
@@ -1844,13 +1879,13 @@ const ds = /* @__PURE__ */ y({
|
|
|
1844
1879
|
v("div", {
|
|
1845
1880
|
class: r(C.question.cssClasses.controlValue)
|
|
1846
1881
|
}, [
|
|
1847
|
-
(o(!0), l(I, null, S(L(
|
|
1882
|
+
(o(!0), l(I, null, S(L(h), (B, k) => (o(), c(d, {
|
|
1848
1883
|
is: "sv-tagbox-item",
|
|
1849
1884
|
item: B,
|
|
1850
1885
|
question: C.question,
|
|
1851
1886
|
key: "item" + k
|
|
1852
1887
|
}, null, 8, ["item", "question"]))), 128)),
|
|
1853
|
-
|
|
1888
|
+
g(d, {
|
|
1854
1889
|
is: "sv-tagbox-filter",
|
|
1855
1890
|
model: n.value,
|
|
1856
1891
|
question: C.question
|
|
@@ -1862,7 +1897,7 @@ const ds = /* @__PURE__ */ y({
|
|
|
1862
1897
|
onClick: t,
|
|
1863
1898
|
"aria-hidden": "true"
|
|
1864
1899
|
}, [
|
|
1865
|
-
|
|
1900
|
+
g(d, {
|
|
1866
1901
|
is: "sv-svg-icon",
|
|
1867
1902
|
class: r(C.question.cssClasses.cleanButtonSvg),
|
|
1868
1903
|
iconName: C.question.cssClasses.cleanButtonIconId,
|
|
@@ -1872,7 +1907,7 @@ const ds = /* @__PURE__ */ y({
|
|
|
1872
1907
|
], 2)), [
|
|
1873
1908
|
[N, C.question.showClearButton]
|
|
1874
1909
|
]) : m("", !0)
|
|
1875
|
-
], 42,
|
|
1910
|
+
], 42, f1)),
|
|
1876
1911
|
C.question.isReadOnly ? (o(), l("div", {
|
|
1877
1912
|
key: 2,
|
|
1878
1913
|
id: C.question.inputId,
|
|
@@ -1887,7 +1922,7 @@ const ds = /* @__PURE__ */ y({
|
|
|
1887
1922
|
is: "survey-string",
|
|
1888
1923
|
locString: C.question.locReadOnlyText
|
|
1889
1924
|
}, null, 8, ["locString"])) : m("", !0)
|
|
1890
|
-
], 10,
|
|
1925
|
+
], 10, M1)) : (o(), c(d, {
|
|
1891
1926
|
key: 1,
|
|
1892
1927
|
is: "sv-popup",
|
|
1893
1928
|
model: n.value.popupModel
|
|
@@ -1898,7 +1933,7 @@ const ds = /* @__PURE__ */ y({
|
|
|
1898
1933
|
onPointerdown: i,
|
|
1899
1934
|
"aria-hidden": "true"
|
|
1900
1935
|
}, [
|
|
1901
|
-
|
|
1936
|
+
g(d, {
|
|
1902
1937
|
is: "sv-svg-icon",
|
|
1903
1938
|
class: r(C.question.cssClasses.chevronButtonSvg),
|
|
1904
1939
|
iconName: C.question.cssClasses.chevronButtonIconId,
|
|
@@ -1907,7 +1942,7 @@ const ds = /* @__PURE__ */ y({
|
|
|
1907
1942
|
], 34)) : m("", !0)
|
|
1908
1943
|
], 2));
|
|
1909
1944
|
}
|
|
1910
|
-
}),
|
|
1945
|
+
}), I1 = { style: { visibility: "hidden" } }, S1 = ["placeholder", "disabled", "inputmode", "role", "aria-expanded", "aria-controls", "aria-label", "aria-labelledby", "aria-describedby", "aria-activedescendant", "id", "readonly", "size"], V1 = /* @__PURE__ */ y({
|
|
1911
1946
|
__name: "TagboxFilter",
|
|
1912
1947
|
props: {
|
|
1913
1948
|
question: {},
|
|
@@ -1945,13 +1980,13 @@ const ds = /* @__PURE__ */ y({
|
|
|
1945
1980
|
key: 1,
|
|
1946
1981
|
class: r(a.question.cssClasses.hintSuffix)
|
|
1947
1982
|
}, [
|
|
1948
|
-
v("span",
|
|
1983
|
+
v("span", I1, H(a.model.inputStringRendered), 1),
|
|
1949
1984
|
v("span", null, H(a.model.hintStringSuffix), 1)
|
|
1950
1985
|
], 2)) : m("", !0),
|
|
1951
1986
|
R(v("input", {
|
|
1952
1987
|
type: "text",
|
|
1953
1988
|
autocomplete: "off",
|
|
1954
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
1989
|
+
"onUpdate:modelValue": p[0] || (p[0] = (h) => a.model.inputStringRendered = h),
|
|
1955
1990
|
class: r(a.question.cssClasses.filterStringInput),
|
|
1956
1991
|
placeholder: a.model.filterStringPlaceholder,
|
|
1957
1992
|
disabled: a.question.isDisabledAttr,
|
|
@@ -1970,13 +2005,13 @@ const ds = /* @__PURE__ */ y({
|
|
|
1970
2005
|
onKeydown: s,
|
|
1971
2006
|
onBlur: i,
|
|
1972
2007
|
onFocus: t
|
|
1973
|
-
}, null, 42,
|
|
2008
|
+
}, null, 42, S1), [
|
|
1974
2009
|
[Te, a.model.inputStringRendered]
|
|
1975
2010
|
])
|
|
1976
2011
|
], 2)
|
|
1977
2012
|
], 2));
|
|
1978
2013
|
}
|
|
1979
|
-
}),
|
|
2014
|
+
}), B1 = { class: "sv-tagbox__item-text" }, R1 = /* @__PURE__ */ y({
|
|
1980
2015
|
__name: "TagboxItem",
|
|
1981
2016
|
props: {
|
|
1982
2017
|
question: {},
|
|
@@ -1990,8 +2025,8 @@ const ds = /* @__PURE__ */ y({
|
|
|
1990
2025
|
class: "sv-tagbox__item",
|
|
1991
2026
|
key: s.item.key
|
|
1992
2027
|
}, [
|
|
1993
|
-
v("div",
|
|
1994
|
-
|
|
2028
|
+
v("div", B1, [
|
|
2029
|
+
g(d, {
|
|
1995
2030
|
is: "survey-string",
|
|
1996
2031
|
locString: s.item.locText
|
|
1997
2032
|
}, null, 8, ["locString"])
|
|
@@ -2000,7 +2035,7 @@ const ds = /* @__PURE__ */ y({
|
|
|
2000
2035
|
class: r(s.question.cssClasses.cleanItemButton),
|
|
2001
2036
|
onClick: n
|
|
2002
2037
|
}, [
|
|
2003
|
-
|
|
2038
|
+
g(d, {
|
|
2004
2039
|
is: "sv-svg-icon",
|
|
2005
2040
|
class: r(s.question.cssClasses.cleanItemButtonSvg),
|
|
2006
2041
|
iconName: s.question.cssClasses.cleanItemButtonIconId,
|
|
@@ -2009,14 +2044,14 @@ const ds = /* @__PURE__ */ y({
|
|
|
2009
2044
|
], 2)
|
|
2010
2045
|
]));
|
|
2011
2046
|
}
|
|
2012
|
-
}),
|
|
2047
|
+
}), T1 = /* @__PURE__ */ y({
|
|
2013
2048
|
inheritAttrs: !1,
|
|
2014
2049
|
__name: "Ranking",
|
|
2015
2050
|
props: {
|
|
2016
2051
|
question: {}
|
|
2017
2052
|
},
|
|
2018
2053
|
setup(u) {
|
|
2019
|
-
const e = u, n =
|
|
2054
|
+
const e = u, n = b(null);
|
|
2020
2055
|
T(e, n);
|
|
2021
2056
|
const s = (t) => e.question.getItemValueWrapperComponentName(t) || "survey-ranking-item", i = (t, a, p) => ({
|
|
2022
2057
|
componentName: "survey-ranking-item",
|
|
@@ -2033,24 +2068,24 @@ const ds = /* @__PURE__ */ y({
|
|
|
2033
2068
|
ref_key: "root",
|
|
2034
2069
|
ref: n
|
|
2035
2070
|
}, [
|
|
2036
|
-
t.question.selectToRankEnabled ? m("", !0) : (o(!0), l(I, { key: 0 }, S(t.question.renderedRankingChoices, (p,
|
|
2037
|
-
key: p.value + "-" +
|
|
2071
|
+
t.question.selectToRankEnabled ? m("", !0) : (o(!0), l(I, { key: 0 }, S(t.question.renderedRankingChoices, (p, h) => (o(), c(d, D({
|
|
2072
|
+
key: p.value + "-" + h + "-item",
|
|
2038
2073
|
is: s(p)
|
|
2039
|
-
}, i(p,
|
|
2074
|
+
}, i(p, h)), null, 16, ["is"]))), 128)),
|
|
2040
2075
|
t.question.selectToRankEnabled ? (o(), l("div", {
|
|
2041
2076
|
key: 1,
|
|
2042
2077
|
class: r(t.question.getContainerClasses("from")),
|
|
2043
2078
|
"data-ranking": "from-container"
|
|
2044
2079
|
}, [
|
|
2045
|
-
(o(!0), l(I, null, S(t.question.renderedUnRankingChoices, (p,
|
|
2046
|
-
key: p.value + "-" +
|
|
2080
|
+
(o(!0), l(I, null, S(t.question.renderedUnRankingChoices, (p, h) => (o(), c(d, D({
|
|
2081
|
+
key: p.value + "-" + h + "-item",
|
|
2047
2082
|
is: s(p)
|
|
2048
|
-
}, i(p,
|
|
2083
|
+
}, i(p, h, !0)), null, 16, ["is"]))), 128)),
|
|
2049
2084
|
t.question.renderedUnRankingChoices.length === 0 ? (o(), l("div", {
|
|
2050
2085
|
key: 0,
|
|
2051
2086
|
class: r(t.question.cssClasses.containerPlaceholder)
|
|
2052
2087
|
}, [
|
|
2053
|
-
|
|
2088
|
+
g(d, {
|
|
2054
2089
|
is: "survey-string",
|
|
2055
2090
|
locString: t.question.locSelectToRankEmptyRankedAreaText
|
|
2056
2091
|
}, null, 8, ["locString"])
|
|
@@ -2065,15 +2100,15 @@ const ds = /* @__PURE__ */ y({
|
|
|
2065
2100
|
class: r(t.question.getContainerClasses("to")),
|
|
2066
2101
|
"data-ranking": "to-container"
|
|
2067
2102
|
}, [
|
|
2068
|
-
(o(!0), l(I, null, S(t.question.renderedRankingChoices, (p,
|
|
2069
|
-
key: p.value + "-" +
|
|
2103
|
+
(o(!0), l(I, null, S(t.question.renderedRankingChoices, (p, h) => (o(), c(d, D({
|
|
2104
|
+
key: p.value + "-" + h + "-item",
|
|
2070
2105
|
is: s(p)
|
|
2071
|
-
}, i(p,
|
|
2106
|
+
}, i(p, h)), null, 16, ["is"]))), 128)),
|
|
2072
2107
|
t.question.renderedRankingChoices.length === 0 ? (o(), l("div", {
|
|
2073
2108
|
key: 0,
|
|
2074
2109
|
class: r(t.question.cssClasses.containerPlaceholder)
|
|
2075
2110
|
}, [
|
|
2076
|
-
|
|
2111
|
+
g(d, {
|
|
2077
2112
|
is: "survey-string",
|
|
2078
2113
|
locString: t.question.locSelectToRankEmptyUnrankedAreaText
|
|
2079
2114
|
}, null, 8, ["locString"])
|
|
@@ -2081,10 +2116,10 @@ const ds = /* @__PURE__ */ y({
|
|
|
2081
2116
|
], 2)) : m("", !0)
|
|
2082
2117
|
], 2));
|
|
2083
2118
|
}
|
|
2084
|
-
}),
|
|
2119
|
+
}), Z1 = ["tabindex", "data-sv-drop-target-ranking-item"], $1 = {
|
|
2085
2120
|
tabindex: "-1",
|
|
2086
2121
|
style: { outline: "none" }
|
|
2087
|
-
},
|
|
2122
|
+
}, D1 = ["xlink:href"], A1 = ["xlink:href"], N1 = ["xlink:href"], P1 = /* @__PURE__ */ y({
|
|
2088
2123
|
inheritAttrs: !1,
|
|
2089
2124
|
__name: "RankingItem",
|
|
2090
2125
|
props: {
|
|
@@ -2094,7 +2129,7 @@ const ds = /* @__PURE__ */ y({
|
|
|
2094
2129
|
unrankedItem: { type: Boolean }
|
|
2095
2130
|
},
|
|
2096
2131
|
setup(u) {
|
|
2097
|
-
const e = u, n =
|
|
2132
|
+
const e = u, n = f(() => e.question.getNumberByIndex(e.index));
|
|
2098
2133
|
return V(() => e.item), (s, i) => (o(), l("div", {
|
|
2099
2134
|
tabindex: s.question.getItemTabIndex(s.item),
|
|
2100
2135
|
"data-sv-drop-target-ranking-item": s.index,
|
|
@@ -2119,7 +2154,7 @@ const ds = /* @__PURE__ */ y({
|
|
|
2119
2154
|
);
|
|
2120
2155
|
})
|
|
2121
2156
|
}, [
|
|
2122
|
-
v("div",
|
|
2157
|
+
v("div", $1, [
|
|
2123
2158
|
v("div", {
|
|
2124
2159
|
class: r(s.question.cssClasses.itemGhostNode)
|
|
2125
2160
|
}, null, 2),
|
|
@@ -2134,14 +2169,14 @@ const ds = /* @__PURE__ */ y({
|
|
|
2134
2169
|
}, [
|
|
2135
2170
|
v("use", {
|
|
2136
2171
|
"xlink:href": s.question.dragDropSvgIcon
|
|
2137
|
-
}, null, 8,
|
|
2172
|
+
}, null, 8, D1)
|
|
2138
2173
|
], 2)),
|
|
2139
2174
|
(o(), l("svg", {
|
|
2140
2175
|
class: r(s.question.getIconFocusCss())
|
|
2141
2176
|
}, [
|
|
2142
2177
|
v("use", {
|
|
2143
2178
|
"xlink:href": s.question.arrowsSvgIcon
|
|
2144
|
-
}, null, 8,
|
|
2179
|
+
}, null, 8, A1)
|
|
2145
2180
|
], 2))
|
|
2146
2181
|
], 2),
|
|
2147
2182
|
!s.unrankedItem && n.value ? (o(), l("div", {
|
|
@@ -2154,19 +2189,19 @@ const ds = /* @__PURE__ */ y({
|
|
|
2154
2189
|
(o(), l("svg", null, [
|
|
2155
2190
|
v("use", {
|
|
2156
2191
|
"xlink:href": s.question.dashSvgIcon
|
|
2157
|
-
}, null, 8,
|
|
2192
|
+
}, null, 8, N1)
|
|
2158
2193
|
]))
|
|
2159
2194
|
], 2)),
|
|
2160
|
-
|
|
2195
|
+
g(d, {
|
|
2161
2196
|
is: s.question.itemComponent,
|
|
2162
2197
|
item: s.item,
|
|
2163
2198
|
cssClasses: s.question.cssClasses
|
|
2164
2199
|
}, null, 8, ["is", "item", "cssClasses"])
|
|
2165
2200
|
], 2)
|
|
2166
2201
|
])
|
|
2167
|
-
], 42,
|
|
2202
|
+
], 42, Z1));
|
|
2168
2203
|
}
|
|
2169
|
-
}),
|
|
2204
|
+
}), E1 = /* @__PURE__ */ y({
|
|
2170
2205
|
inheritAttrs: !1,
|
|
2171
2206
|
__name: "RankingItemContent",
|
|
2172
2207
|
props: {
|
|
@@ -2177,23 +2212,23 @@ const ds = /* @__PURE__ */ y({
|
|
|
2177
2212
|
return (e, n) => (o(), l("div", {
|
|
2178
2213
|
class: r(e.cssClasses.controlLabel)
|
|
2179
2214
|
}, [
|
|
2180
|
-
|
|
2215
|
+
g(d, {
|
|
2181
2216
|
is: "survey-string",
|
|
2182
2217
|
locString: e.item.locText
|
|
2183
2218
|
}, null, 8, ["locString"])
|
|
2184
2219
|
], 2));
|
|
2185
2220
|
}
|
|
2186
|
-
}),
|
|
2221
|
+
}), W1 = { role: "radiogroup" }, F1 = /* @__PURE__ */ v("legend", {
|
|
2187
2222
|
role: "presentation",
|
|
2188
2223
|
class: "sv-hidden"
|
|
2189
|
-
}, null, -1),
|
|
2224
|
+
}, null, -1), z1 = /* @__PURE__ */ y({
|
|
2190
2225
|
inheritAttrs: !1,
|
|
2191
2226
|
__name: "Rating",
|
|
2192
2227
|
props: {
|
|
2193
2228
|
question: {}
|
|
2194
2229
|
},
|
|
2195
2230
|
setup(u) {
|
|
2196
|
-
const e = u, n =
|
|
2231
|
+
const e = u, n = b(null);
|
|
2197
2232
|
T(e, n);
|
|
2198
2233
|
const s = (i) => e.question.getInputId(i);
|
|
2199
2234
|
return (i, t) => (o(), l("div", {
|
|
@@ -2201,13 +2236,13 @@ const ds = /* @__PURE__ */ y({
|
|
|
2201
2236
|
ref_key: "root",
|
|
2202
2237
|
ref: n
|
|
2203
2238
|
}, [
|
|
2204
|
-
v("fieldset",
|
|
2205
|
-
|
|
2239
|
+
v("fieldset", W1, [
|
|
2240
|
+
F1,
|
|
2206
2241
|
i.question.hasMinLabel ? (o(), l("span", {
|
|
2207
2242
|
key: 0,
|
|
2208
2243
|
class: r(i.question.cssClasses.minText)
|
|
2209
2244
|
}, [
|
|
2210
|
-
|
|
2245
|
+
g(d, {
|
|
2211
2246
|
is: "survey-string",
|
|
2212
2247
|
locString: i.question.locMinRateDescription
|
|
2213
2248
|
}, null, 8, ["locString"])
|
|
@@ -2223,7 +2258,7 @@ const ds = /* @__PURE__ */ y({
|
|
|
2223
2258
|
key: 1,
|
|
2224
2259
|
class: r(i.question.cssClasses.maxText)
|
|
2225
2260
|
}, [
|
|
2226
|
-
|
|
2261
|
+
g(d, {
|
|
2227
2262
|
is: "survey-string",
|
|
2228
2263
|
locString: i.question.locMaxRateDescription
|
|
2229
2264
|
}, null, 8, ["locString"])
|
|
@@ -2231,7 +2266,7 @@ const ds = /* @__PURE__ */ y({
|
|
|
2231
2266
|
])
|
|
2232
2267
|
], 2));
|
|
2233
2268
|
}
|
|
2234
|
-
}),
|
|
2269
|
+
}), O1 = ["name", "id", "value", "disabled", "readonly", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], U1 = ["data-text"], K1 = /* @__PURE__ */ y({
|
|
2235
2270
|
__name: "RatingItem",
|
|
2236
2271
|
props: {
|
|
2237
2272
|
question: {},
|
|
@@ -2258,19 +2293,19 @@ const ds = /* @__PURE__ */ y({
|
|
|
2258
2293
|
"aria-label": n.question.ariaLabel,
|
|
2259
2294
|
"aria-invalid": n.question.ariaInvalid,
|
|
2260
2295
|
"aria-errormessage": n.question.ariaErrormessage
|
|
2261
|
-
}, null, 8,
|
|
2296
|
+
}, null, 8, O1),
|
|
2262
2297
|
v("span", {
|
|
2263
2298
|
class: r(n.question.cssClasses.itemText),
|
|
2264
2299
|
"data-text": n.item.text
|
|
2265
2300
|
}, [
|
|
2266
|
-
|
|
2301
|
+
g(d, {
|
|
2267
2302
|
is: "survey-string",
|
|
2268
2303
|
locString: n.item.locText
|
|
2269
2304
|
}, null, 8, ["locString"])
|
|
2270
|
-
], 10,
|
|
2305
|
+
], 10, U1)
|
|
2271
2306
|
], 34));
|
|
2272
2307
|
}
|
|
2273
|
-
}),
|
|
2308
|
+
}), j1 = ["name", "id", "value", "disabled", "readonly", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], Q1 = /* @__PURE__ */ y({
|
|
2274
2309
|
__name: "RatingItemSmiley",
|
|
2275
2310
|
props: {
|
|
2276
2311
|
question: {},
|
|
@@ -2300,8 +2335,8 @@ const ds = /* @__PURE__ */ y({
|
|
|
2300
2335
|
"aria-label": n.question.ariaLabel,
|
|
2301
2336
|
"aria-invalid": n.question.ariaInvalid,
|
|
2302
2337
|
"aria-errormessage": n.question.ariaErrormessage
|
|
2303
|
-
}, null, 8,
|
|
2304
|
-
|
|
2338
|
+
}, null, 8, j1),
|
|
2339
|
+
g(d, {
|
|
2305
2340
|
is: "sv-svg-icon",
|
|
2306
2341
|
iconName: n.question.getItemSmileyIconName(n.item.itemValue),
|
|
2307
2342
|
size: "auto",
|
|
@@ -2309,7 +2344,7 @@ const ds = /* @__PURE__ */ y({
|
|
|
2309
2344
|
}, null, 8, ["iconName", "title"])
|
|
2310
2345
|
], 38));
|
|
2311
2346
|
}
|
|
2312
|
-
}),
|
|
2347
|
+
}), G1 = ["name", "id", "value", "disabled", "readonly", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], J1 = /* @__PURE__ */ y({
|
|
2313
2348
|
__name: "RatingItemStar",
|
|
2314
2349
|
props: {
|
|
2315
2350
|
question: {},
|
|
@@ -2338,15 +2373,15 @@ const ds = /* @__PURE__ */ y({
|
|
|
2338
2373
|
"aria-label": n.question.ariaLabel,
|
|
2339
2374
|
"aria-invalid": n.question.ariaInvalid,
|
|
2340
2375
|
"aria-errormessage": n.question.ariaErrormessage
|
|
2341
|
-
}, null, 8,
|
|
2342
|
-
|
|
2376
|
+
}, null, 8, G1),
|
|
2377
|
+
g(d, {
|
|
2343
2378
|
is: "sv-svg-icon",
|
|
2344
2379
|
class: r("sv-star"),
|
|
2345
2380
|
iconName: n.question.itemStarIcon,
|
|
2346
2381
|
size: "auto",
|
|
2347
2382
|
title: n.item.text
|
|
2348
2383
|
}, null, 8, ["iconName", "title"]),
|
|
2349
|
-
|
|
2384
|
+
g(d, {
|
|
2350
2385
|
is: "sv-svg-icon",
|
|
2351
2386
|
class: r("sv-star-2"),
|
|
2352
2387
|
iconName: n.question.itemStarIconAlt,
|
|
@@ -2355,10 +2390,10 @@ const ds = /* @__PURE__ */ y({
|
|
|
2355
2390
|
}, null, 8, ["iconName", "title"])
|
|
2356
2391
|
], 34));
|
|
2357
2392
|
}
|
|
2358
|
-
}),
|
|
2393
|
+
}), X1 = { class: "sd-rating-dropdown-item" }, Y1 = { class: "sd-rating-dropdown-item_text" }, _1 = {
|
|
2359
2394
|
key: 0,
|
|
2360
2395
|
class: "sd-rating-dropdown-item_description"
|
|
2361
|
-
},
|
|
2396
|
+
}, x1 = /* @__PURE__ */ y({
|
|
2362
2397
|
__name: "RatingDropdownItem",
|
|
2363
2398
|
props: {
|
|
2364
2399
|
item: {},
|
|
@@ -2366,10 +2401,10 @@ const ds = /* @__PURE__ */ y({
|
|
|
2366
2401
|
},
|
|
2367
2402
|
setup(u) {
|
|
2368
2403
|
const e = u;
|
|
2369
|
-
return V(() => e.item), (n, s) => (o(), l("div",
|
|
2370
|
-
v("span",
|
|
2371
|
-
n.item.description ? (o(), l("div",
|
|
2372
|
-
|
|
2404
|
+
return V(() => e.item), (n, s) => (o(), l("div", X1, [
|
|
2405
|
+
v("span", Y1, H(n.item.title), 1),
|
|
2406
|
+
n.item.description ? (o(), l("div", _1, [
|
|
2407
|
+
g(d, {
|
|
2373
2408
|
is: "survey-string",
|
|
2374
2409
|
locString: n.item.description
|
|
2375
2410
|
}, null, 8, ["locString"])
|
|
@@ -2377,38 +2412,38 @@ const ds = /* @__PURE__ */ y({
|
|
|
2377
2412
|
]));
|
|
2378
2413
|
}
|
|
2379
2414
|
});
|
|
2380
|
-
|
|
2415
|
+
ee.Instance.registerRenderer(
|
|
2381
2416
|
"rating",
|
|
2382
2417
|
"dropdown",
|
|
2383
2418
|
"sv-rating-dropdown"
|
|
2384
2419
|
);
|
|
2385
|
-
const
|
|
2420
|
+
const en = /* @__PURE__ */ y({
|
|
2386
2421
|
inheritAttrs: !1,
|
|
2387
2422
|
__name: "RatingDropdown",
|
|
2388
2423
|
props: {
|
|
2389
2424
|
question: {}
|
|
2390
2425
|
},
|
|
2391
2426
|
setup(u) {
|
|
2392
|
-
const e = u, n =
|
|
2427
|
+
const e = u, n = b(null);
|
|
2393
2428
|
return T(e, n), (s, i) => (o(), l("div", {
|
|
2394
2429
|
class: r(s.question.cssClasses.rootDropdown),
|
|
2395
2430
|
ref_key: "root",
|
|
2396
2431
|
ref: n
|
|
2397
2432
|
}, [
|
|
2398
|
-
|
|
2433
|
+
g(d, {
|
|
2399
2434
|
is: "sv-dropdown",
|
|
2400
2435
|
question: s.question
|
|
2401
2436
|
}, null, 8, ["question"])
|
|
2402
2437
|
], 2));
|
|
2403
2438
|
}
|
|
2404
|
-
}),
|
|
2439
|
+
}), sn = ["name", "value", "id", ".indeterminate", "disabled", "readonly", "role", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], nn = /* @__PURE__ */ y({
|
|
2405
2440
|
inheritAttrs: !1,
|
|
2406
2441
|
__name: "BooleanSwitch",
|
|
2407
2442
|
props: {
|
|
2408
2443
|
question: {}
|
|
2409
2444
|
},
|
|
2410
2445
|
setup(u) {
|
|
2411
|
-
const e = u, n =
|
|
2446
|
+
const e = u, n = b(null);
|
|
2412
2447
|
T(e, n);
|
|
2413
2448
|
const s = (t, a) => {
|
|
2414
2449
|
e.question.onLabelClick(t, a);
|
|
@@ -2441,8 +2476,8 @@ const Js = /* @__PURE__ */ y({
|
|
|
2441
2476
|
"aria-describedby": t.question.a11y_input_ariaDescribedBy,
|
|
2442
2477
|
"aria-invalid": t.question.a11y_input_ariaInvalid,
|
|
2443
2478
|
"aria-errormessage": t.question.a11y_input_ariaErrormessage
|
|
2444
|
-
}, null, 42,
|
|
2445
|
-
[
|
|
2479
|
+
}, null, 42, sn), [
|
|
2480
|
+
[oe, t.question.booleanValue]
|
|
2446
2481
|
]),
|
|
2447
2482
|
v("div", {
|
|
2448
2483
|
class: r(t.question.cssClasses.sliderGhost),
|
|
@@ -2451,7 +2486,7 @@ const Js = /* @__PURE__ */ y({
|
|
|
2451
2486
|
v("span", {
|
|
2452
2487
|
class: r(t.question.getLabelCss(t.question.swapOrder))
|
|
2453
2488
|
}, [
|
|
2454
|
-
|
|
2489
|
+
g(d, {
|
|
2455
2490
|
is: "survey-string",
|
|
2456
2491
|
locString: t.question.locLabelLeft
|
|
2457
2492
|
}, null, 8, ["locString"])
|
|
@@ -2468,7 +2503,7 @@ const Js = /* @__PURE__ */ y({
|
|
|
2468
2503
|
key: 0,
|
|
2469
2504
|
class: r(t.question.cssClasses.sliderText)
|
|
2470
2505
|
}, [
|
|
2471
|
-
|
|
2506
|
+
g(d, {
|
|
2472
2507
|
is: "survey-string",
|
|
2473
2508
|
locString: t.question.getCheckedLabel()
|
|
2474
2509
|
}, null, 8, ["locString"])
|
|
@@ -2482,7 +2517,7 @@ const Js = /* @__PURE__ */ y({
|
|
|
2482
2517
|
v("span", {
|
|
2483
2518
|
class: r(t.question.getLabelCss(!t.question.swapOrder))
|
|
2484
2519
|
}, [
|
|
2485
|
-
|
|
2520
|
+
g(d, {
|
|
2486
2521
|
is: "survey-string",
|
|
2487
2522
|
locString: t.question.locLabelRight
|
|
2488
2523
|
}, null, 8, ["locString"])
|
|
@@ -2492,19 +2527,19 @@ const Js = /* @__PURE__ */ y({
|
|
|
2492
2527
|
], 34));
|
|
2493
2528
|
}
|
|
2494
2529
|
});
|
|
2495
|
-
|
|
2530
|
+
ee.Instance.registerRenderer(
|
|
2496
2531
|
"boolean",
|
|
2497
2532
|
"radio",
|
|
2498
2533
|
"sv-boolean-radio"
|
|
2499
2534
|
);
|
|
2500
|
-
const
|
|
2535
|
+
const tn = /* @__PURE__ */ y({
|
|
2501
2536
|
inheritAttrs: !1,
|
|
2502
2537
|
__name: "BooleanRadio",
|
|
2503
2538
|
props: {
|
|
2504
2539
|
question: {}
|
|
2505
2540
|
},
|
|
2506
2541
|
setup(u) {
|
|
2507
|
-
const e =
|
|
2542
|
+
const e = b(null);
|
|
2508
2543
|
return T(u, e), (s, i) => (o(), l("div", {
|
|
2509
2544
|
class: r(s.question.cssClasses.rootRadio),
|
|
2510
2545
|
ref_key: "root",
|
|
@@ -2538,7 +2573,7 @@ const _s = /* @__PURE__ */ y({
|
|
|
2538
2573
|
], 2)
|
|
2539
2574
|
], 2));
|
|
2540
2575
|
}
|
|
2541
|
-
}),
|
|
2576
|
+
}), on = ["name", "value", "checked", "aria-errormessage", "disabled", "readonly"], rn = ["xlink:href"], ln = /* @__PURE__ */ y({
|
|
2542
2577
|
__name: "BooleanRadioItem",
|
|
2543
2578
|
props: {
|
|
2544
2579
|
question: {},
|
|
@@ -2567,7 +2602,7 @@ const _s = /* @__PURE__ */ y({
|
|
|
2567
2602
|
readonly: s.question.isReadOnlyAttr,
|
|
2568
2603
|
class: r(s.question.cssClasses.itemRadioControl),
|
|
2569
2604
|
onChange: n
|
|
2570
|
-
}, null, 42,
|
|
2605
|
+
}, null, 42, on),
|
|
2571
2606
|
s.question.cssClasses.materialRadioDecorator ? (o(), l("span", {
|
|
2572
2607
|
key: 0,
|
|
2573
2608
|
class: r(s.question.cssClasses.materialRadioDecorator)
|
|
@@ -2578,13 +2613,13 @@ const _s = /* @__PURE__ */ y({
|
|
|
2578
2613
|
}, [
|
|
2579
2614
|
v("use", {
|
|
2580
2615
|
"xlink:href": s.question.itemSvgIcon
|
|
2581
|
-
}, null, 8,
|
|
2616
|
+
}, null, 8, rn)
|
|
2582
2617
|
], 2)) : m("", !0)
|
|
2583
2618
|
], 2)) : m("", !0),
|
|
2584
2619
|
v("span", {
|
|
2585
2620
|
class: r(s.question.cssClasses.radioControlLabel)
|
|
2586
2621
|
}, [
|
|
2587
|
-
|
|
2622
|
+
g(d, {
|
|
2588
2623
|
is: "survey-string",
|
|
2589
2624
|
locString: s.locText
|
|
2590
2625
|
}, null, 8, ["locString"])
|
|
@@ -2592,13 +2627,13 @@ const _s = /* @__PURE__ */ y({
|
|
|
2592
2627
|
], 2)
|
|
2593
2628
|
], 2));
|
|
2594
2629
|
}
|
|
2595
|
-
}),
|
|
2596
|
-
|
|
2630
|
+
}), an = ["name", "value", "id", ".indeterminate", "disabled", "readonly", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], un = ["xlink:href"], dn = /* @__PURE__ */ v("span", { class: "check" }, null, -1), mn = ["id"], pn = ["id"];
|
|
2631
|
+
ee.Instance.registerRenderer(
|
|
2597
2632
|
"boolean",
|
|
2598
2633
|
"checkbox",
|
|
2599
2634
|
"sv-boolean-checkbox"
|
|
2600
2635
|
);
|
|
2601
|
-
const
|
|
2636
|
+
const Cn = /* @__PURE__ */ y({
|
|
2602
2637
|
inheritAttrs: !1,
|
|
2603
2638
|
__name: "BooleanCheckbox",
|
|
2604
2639
|
props: {
|
|
@@ -2606,7 +2641,7 @@ const an = /* @__PURE__ */ y({
|
|
|
2606
2641
|
css: {}
|
|
2607
2642
|
},
|
|
2608
2643
|
setup(u) {
|
|
2609
|
-
const e = u, n =
|
|
2644
|
+
const e = u, n = b(null);
|
|
2610
2645
|
return T(e, n), (s, i) => (o(), l("div", {
|
|
2611
2646
|
class: r(s.question.cssClasses.rootCheckbox),
|
|
2612
2647
|
ref_key: "root",
|
|
@@ -2628,12 +2663,14 @@ const an = /* @__PURE__ */ y({
|
|
|
2628
2663
|
".indeterminate": s.question.isIndeterminate,
|
|
2629
2664
|
disabled: s.question.isDisabledAttr,
|
|
2630
2665
|
readonly: s.question.isReadOnlyAttr,
|
|
2631
|
-
"aria-required": s.question.
|
|
2632
|
-
"aria-label": s.question.
|
|
2633
|
-
"aria-
|
|
2634
|
-
"aria-
|
|
2635
|
-
|
|
2636
|
-
|
|
2666
|
+
"aria-required": s.question.a11y_input_ariaRequired,
|
|
2667
|
+
"aria-label": s.question.a11y_input_ariaLabel,
|
|
2668
|
+
"aria-labelledby": s.question.a11y_input_ariaLabelledBy,
|
|
2669
|
+
"aria-describedby": s.question.a11y_input_ariaDescribedBy,
|
|
2670
|
+
"aria-invalid": s.question.a11y_input_ariaInvalid,
|
|
2671
|
+
"aria-errormessage": s.question.a11y_input_ariaErrormessage
|
|
2672
|
+
}, null, 42, an), [
|
|
2673
|
+
[oe, s.question.booleanValue]
|
|
2637
2674
|
]),
|
|
2638
2675
|
v("span", {
|
|
2639
2676
|
class: r(s.question.cssClasses.checkboxMaterialDecorator)
|
|
@@ -2644,9 +2681,9 @@ const an = /* @__PURE__ */ y({
|
|
|
2644
2681
|
}, [
|
|
2645
2682
|
v("use", {
|
|
2646
2683
|
"xlink:href": s.question.svgIcon
|
|
2647
|
-
}, null, 8,
|
|
2684
|
+
}, null, 8, un)
|
|
2648
2685
|
], 2)) : m("", !0),
|
|
2649
|
-
|
|
2686
|
+
dn
|
|
2650
2687
|
], 2),
|
|
2651
2688
|
s.question.isLabelRendered ? (o(), l("span", {
|
|
2652
2689
|
key: 0,
|
|
@@ -2665,29 +2702,29 @@ const an = /* @__PURE__ */ y({
|
|
|
2665
2702
|
element: s.question,
|
|
2666
2703
|
css: s.css
|
|
2667
2704
|
}, null, 8, ["element", "css"])) : m("", !0)
|
|
2668
|
-
], 10,
|
|
2705
|
+
], 10, mn)) : m("", !0)
|
|
2669
2706
|
], 2),
|
|
2670
2707
|
s.question.canRenderLabelDescription ? (o(), l("div", {
|
|
2671
2708
|
key: 0,
|
|
2672
2709
|
class: r(s.question.cssDescription),
|
|
2673
2710
|
id: s.question.ariaDescriptionId
|
|
2674
2711
|
}, [
|
|
2675
|
-
|
|
2712
|
+
g(d, {
|
|
2676
2713
|
is: "survey-string",
|
|
2677
2714
|
locString: s.question.locDescription
|
|
2678
2715
|
}, null, 8, ["locString"])
|
|
2679
|
-
], 10,
|
|
2716
|
+
], 10, pn)) : m("", !0)
|
|
2680
2717
|
], 2)
|
|
2681
2718
|
], 2));
|
|
2682
2719
|
}
|
|
2683
|
-
}),
|
|
2720
|
+
}), vn = /* @__PURE__ */ y({
|
|
2684
2721
|
inheritAttrs: !1,
|
|
2685
2722
|
__name: "Multipletext",
|
|
2686
2723
|
props: {
|
|
2687
2724
|
question: {}
|
|
2688
2725
|
},
|
|
2689
2726
|
setup(u) {
|
|
2690
|
-
const e = u, n =
|
|
2727
|
+
const e = u, n = b(null), s = se(() => e.question.getRows());
|
|
2691
2728
|
return T(e, n), (i, t) => (o(), l("table", {
|
|
2692
2729
|
class: r(i.question.getQuestionRootCss()),
|
|
2693
2730
|
ref_key: "root",
|
|
@@ -2701,14 +2738,14 @@ const an = /* @__PURE__ */ y({
|
|
|
2701
2738
|
key: 0,
|
|
2702
2739
|
class: r(i.question.cssClasses.row)
|
|
2703
2740
|
}, [
|
|
2704
|
-
(o(!0), l(I, null, S(a.cells, (
|
|
2705
|
-
key: "item" +
|
|
2706
|
-
class: r(
|
|
2741
|
+
(o(!0), l(I, null, S(a.cells, (h) => (o(), l("td", {
|
|
2742
|
+
key: "item" + h.item.editor.id,
|
|
2743
|
+
class: r(h.className)
|
|
2707
2744
|
}, [
|
|
2708
|
-
|
|
2745
|
+
g(d, {
|
|
2709
2746
|
is: "survey-multipletext-item",
|
|
2710
2747
|
question: i.question,
|
|
2711
|
-
cell:
|
|
2748
|
+
cell: h
|
|
2712
2749
|
}, null, 8, ["question", "cell"])
|
|
2713
2750
|
], 2))), 128))
|
|
2714
2751
|
], 2)) : m("", !0)
|
|
@@ -2716,16 +2753,16 @@ const an = /* @__PURE__ */ y({
|
|
|
2716
2753
|
])
|
|
2717
2754
|
], 2));
|
|
2718
2755
|
}
|
|
2719
|
-
}),
|
|
2756
|
+
}), cn = { key: 1 }, gn = /* @__PURE__ */ y({
|
|
2720
2757
|
__name: "MultipletextItem",
|
|
2721
2758
|
props: {
|
|
2722
2759
|
question: {},
|
|
2723
2760
|
cell: {}
|
|
2724
2761
|
},
|
|
2725
2762
|
setup(u) {
|
|
2726
|
-
const e = u, n = (i) =>
|
|
2763
|
+
const e = u, n = (i) => ie(i);
|
|
2727
2764
|
V(() => e.cell.item.editor);
|
|
2728
|
-
const s =
|
|
2765
|
+
const s = f(() => e.cell.item);
|
|
2729
2766
|
return (i, t) => i.cell.isErrorsCell ? (o(), c(d, {
|
|
2730
2767
|
key: 1,
|
|
2731
2768
|
is: "survey-errors",
|
|
@@ -2745,11 +2782,11 @@ const an = /* @__PURE__ */ y({
|
|
|
2745
2782
|
key: 0,
|
|
2746
2783
|
class: r(i.question.cssClasses.requiredMark)
|
|
2747
2784
|
}, H(s.value.editor.requiredMark), 3)) : m("", !0),
|
|
2748
|
-
|
|
2785
|
+
g(d, {
|
|
2749
2786
|
is: "survey-string",
|
|
2750
2787
|
locString: s.value.locTitle
|
|
2751
2788
|
}, null, 8, ["locString"]),
|
|
2752
|
-
s.value.editor.isRequireTextAfterTitle ? (o(), l("span",
|
|
2789
|
+
s.value.editor.isRequireTextAfterTitle ? (o(), l("span", cn, " ")) : m("", !0),
|
|
2753
2790
|
s.value.editor.isRequireTextAfterTitle ? (o(), l("span", {
|
|
2754
2791
|
key: 2,
|
|
2755
2792
|
"aria-hidden": "true",
|
|
@@ -2761,21 +2798,21 @@ const an = /* @__PURE__ */ y({
|
|
|
2761
2798
|
class: r(i.question.getItemCss()),
|
|
2762
2799
|
onFocusin: t[0] || (t[0] = (a) => s.value.focusIn())
|
|
2763
2800
|
}, [
|
|
2764
|
-
|
|
2801
|
+
g(d, {
|
|
2765
2802
|
is: n(s.value.editor),
|
|
2766
2803
|
question: s.value.editor
|
|
2767
2804
|
}, null, 8, ["is", "question"])
|
|
2768
2805
|
], 34))
|
|
2769
2806
|
], 2));
|
|
2770
2807
|
}
|
|
2771
|
-
}),
|
|
2808
|
+
}), hn = { class: "sv-hidden" }, yn = { key: 0 }, qn = { key: 0 }, wn = ["onClick"], Ln = ["data-responsive-title", "onClick"], kn = /* @__PURE__ */ y({
|
|
2772
2809
|
inheritAttrs: !1,
|
|
2773
2810
|
__name: "Matrix",
|
|
2774
2811
|
props: {
|
|
2775
2812
|
question: {}
|
|
2776
2813
|
},
|
|
2777
2814
|
setup(u) {
|
|
2778
|
-
const e = u, n =
|
|
2815
|
+
const e = u, n = b(null), s = W();
|
|
2779
2816
|
T(
|
|
2780
2817
|
e,
|
|
2781
2818
|
n,
|
|
@@ -2798,27 +2835,27 @@ const an = /* @__PURE__ */ y({
|
|
|
2798
2835
|
ref: n
|
|
2799
2836
|
}, [
|
|
2800
2837
|
v("fieldset", null, [
|
|
2801
|
-
v("legend",
|
|
2838
|
+
v("legend", hn, H(t.question.locTitle.renderedHtml), 1),
|
|
2802
2839
|
v("table", {
|
|
2803
2840
|
class: r(t.question.getTableCss())
|
|
2804
2841
|
}, [
|
|
2805
|
-
t.question.showHeader ? (o(), l("thead",
|
|
2842
|
+
t.question.showHeader ? (o(), l("thead", yn, [
|
|
2806
2843
|
v("tr", null, [
|
|
2807
|
-
t.question.hasRows ? (o(), l("td",
|
|
2808
|
-
(o(!0), l(I, null, S(t.question.visibleColumns, (p,
|
|
2809
|
-
key:
|
|
2844
|
+
t.question.hasRows ? (o(), l("td", qn)) : m("", !0),
|
|
2845
|
+
(o(!0), l(I, null, S(t.question.visibleColumns, (p, h) => (o(), l("th", {
|
|
2846
|
+
key: h,
|
|
2810
2847
|
class: r(t.question.cssClasses.headerCell),
|
|
2811
2848
|
style: M({
|
|
2812
2849
|
minWidth: t.question.columnMinWidth,
|
|
2813
2850
|
width: t.question.columnMinWidth
|
|
2814
2851
|
})
|
|
2815
2852
|
}, [
|
|
2816
|
-
|
|
2853
|
+
g(d, {
|
|
2817
2854
|
is: t.question.getColumnHeaderWrapperComponentName(p),
|
|
2818
2855
|
componentData: t.question.getColumnHeaderWrapperComponentData(p)
|
|
2819
2856
|
}, {
|
|
2820
2857
|
default: E(() => [
|
|
2821
|
-
|
|
2858
|
+
g(d, {
|
|
2822
2859
|
is: "survey-string",
|
|
2823
2860
|
locString: p.locText
|
|
2824
2861
|
}, null, 8, ["locString"])
|
|
@@ -2829,8 +2866,8 @@ const an = /* @__PURE__ */ y({
|
|
|
2829
2866
|
])
|
|
2830
2867
|
])) : m("", !0),
|
|
2831
2868
|
v("tbody", null, [
|
|
2832
|
-
(o(!0), l(I, null, S(s.value, (p,
|
|
2833
|
-
key: "row_" + p.name + "_" +
|
|
2869
|
+
(o(!0), l(I, null, S(s.value, (p, h) => (o(), l("tr", {
|
|
2870
|
+
key: "row_" + p.name + "_" + h,
|
|
2834
2871
|
class: r(p.rowClasses || void 0)
|
|
2835
2872
|
}, [
|
|
2836
2873
|
R(v("td", {
|
|
@@ -2840,12 +2877,12 @@ const an = /* @__PURE__ */ y({
|
|
|
2840
2877
|
width: t.question.rowTitleWidth
|
|
2841
2878
|
})
|
|
2842
2879
|
}, [
|
|
2843
|
-
|
|
2880
|
+
g(d, {
|
|
2844
2881
|
is: t.question.getRowHeaderWrapperComponentName(p),
|
|
2845
2882
|
componentData: t.question.getRowHeaderWrapperComponentData(p)
|
|
2846
2883
|
}, {
|
|
2847
2884
|
default: E(() => [
|
|
2848
|
-
|
|
2885
|
+
g(d, {
|
|
2849
2886
|
is: "survey-string",
|
|
2850
2887
|
locString: p.locText
|
|
2851
2888
|
}, null, 8, ["locString"])
|
|
@@ -2860,39 +2897,39 @@ const an = /* @__PURE__ */ y({
|
|
|
2860
2897
|
class: r(t.question.getItemClass(p, C)),
|
|
2861
2898
|
onClick: (B) => i(p, C)
|
|
2862
2899
|
}, [
|
|
2863
|
-
|
|
2900
|
+
g(d, {
|
|
2864
2901
|
is: "survey-string",
|
|
2865
2902
|
locString: t.question.getCellDisplayLocText(p.name, C)
|
|
2866
2903
|
}, null, 8, ["locString"])
|
|
2867
|
-
], 10,
|
|
2904
|
+
], 10, wn))), 128)) : m("", !0),
|
|
2868
2905
|
t.question.hasCellText ? m("", !0) : (o(!0), l(I, { key: 1 }, S(t.question.visibleColumns, (C, q) => (o(), l("td", {
|
|
2869
2906
|
key: q,
|
|
2870
2907
|
"data-responsive-title": C.locText.renderedHtml,
|
|
2871
2908
|
class: r(t.question.cssClasses.cell),
|
|
2872
2909
|
onClick: (B) => i(p, C)
|
|
2873
2910
|
}, [
|
|
2874
|
-
|
|
2911
|
+
g(d, {
|
|
2875
2912
|
is: t.question.cellComponent,
|
|
2876
2913
|
question: t.question,
|
|
2877
2914
|
row: p,
|
|
2878
2915
|
column: C,
|
|
2879
2916
|
columnIndex: q
|
|
2880
2917
|
}, null, 8, ["is", "question", "row", "column", "columnIndex"])
|
|
2881
|
-
], 10,
|
|
2918
|
+
], 10, Ln))), 128))
|
|
2882
2919
|
], 2))), 128))
|
|
2883
2920
|
])
|
|
2884
2921
|
], 2)
|
|
2885
2922
|
])
|
|
2886
2923
|
], 2));
|
|
2887
2924
|
}
|
|
2888
|
-
}),
|
|
2925
|
+
}), bn = ["data-sv-drop-target-matrix-row"], fn = /* @__PURE__ */ y({
|
|
2889
2926
|
__name: "MatrixRow",
|
|
2890
2927
|
props: {
|
|
2891
2928
|
question: {},
|
|
2892
2929
|
row: {}
|
|
2893
2930
|
},
|
|
2894
2931
|
setup(u) {
|
|
2895
|
-
const e = u, n =
|
|
2932
|
+
const e = u, n = b();
|
|
2896
2933
|
V(() => e.row);
|
|
2897
2934
|
const s = F(
|
|
2898
2935
|
() => e.row,
|
|
@@ -2900,7 +2937,7 @@ const an = /* @__PURE__ */ y({
|
|
|
2900
2937
|
t && t.setRootElement(void 0), i.setRootElement(n.value);
|
|
2901
2938
|
}
|
|
2902
2939
|
);
|
|
2903
|
-
return
|
|
2940
|
+
return Z(() => {
|
|
2904
2941
|
e.row.setRootElement(n.value);
|
|
2905
2942
|
}), P(() => {
|
|
2906
2943
|
e.row.setRootElement(void 0), s();
|
|
@@ -2918,9 +2955,9 @@ const an = /* @__PURE__ */ y({
|
|
|
2918
2955
|
question: i.question,
|
|
2919
2956
|
key: i.row.id + "_" + a.id
|
|
2920
2957
|
}, null, 8, ["cell", "question"]))), 128))
|
|
2921
|
-
], 42,
|
|
2958
|
+
], 42, bn)) : m("", !0);
|
|
2922
2959
|
}
|
|
2923
|
-
}),
|
|
2960
|
+
}), Mn = ["name", "value", "readonly", "disabled", "id", "aria-required", "aria-label", "aria-invalid", "aria-errormessage"], Hn = ["xlink:href"], In = /* @__PURE__ */ y({
|
|
2924
2961
|
inheritAttrs: !1,
|
|
2925
2962
|
__name: "MatrixCell",
|
|
2926
2963
|
props: {
|
|
@@ -2950,8 +2987,8 @@ const an = /* @__PURE__ */ y({
|
|
|
2950
2987
|
),
|
|
2951
2988
|
"aria-invalid": e.question.a11y_input_ariaInvalid,
|
|
2952
2989
|
"aria-errormessage": e.question.a11y_input_ariaErrormessage
|
|
2953
|
-
}, null, 10,
|
|
2954
|
-
[
|
|
2990
|
+
}, null, 10, Mn), [
|
|
2991
|
+
[x, e.row.value]
|
|
2955
2992
|
]),
|
|
2956
2993
|
v("span", {
|
|
2957
2994
|
class: r(e.question.cssClasses.materialDecorator)
|
|
@@ -2962,28 +2999,28 @@ const an = /* @__PURE__ */ y({
|
|
|
2962
2999
|
}, [
|
|
2963
3000
|
v("use", {
|
|
2964
3001
|
"xlink:href": e.question.itemSvgIcon
|
|
2965
|
-
}, null, 8,
|
|
3002
|
+
}, null, 8, Hn)
|
|
2966
3003
|
], 2)) : m("", !0)
|
|
2967
3004
|
], 2),
|
|
2968
3005
|
e.question.isMobile ? (o(), l("span", {
|
|
2969
3006
|
key: 0,
|
|
2970
3007
|
class: r(e.question.cssClasses.cellResponsiveTitle)
|
|
2971
3008
|
}, [
|
|
2972
|
-
|
|
3009
|
+
g(d, {
|
|
2973
3010
|
is: "survey-string",
|
|
2974
3011
|
locString: e.column.locText
|
|
2975
3012
|
}, null, 8, ["locString"])
|
|
2976
3013
|
], 2)) : m("", !0)
|
|
2977
3014
|
], 34));
|
|
2978
3015
|
}
|
|
2979
|
-
}),
|
|
3016
|
+
}), Sn = /* @__PURE__ */ y({
|
|
2980
3017
|
inheritAttrs: !1,
|
|
2981
3018
|
__name: "MatrixDropdown",
|
|
2982
3019
|
props: {
|
|
2983
3020
|
question: {}
|
|
2984
3021
|
},
|
|
2985
3022
|
setup(u) {
|
|
2986
|
-
const e = u, n =
|
|
3023
|
+
const e = u, n = b(null);
|
|
2987
3024
|
return T(e, n), (s, i) => (o(), c(d, {
|
|
2988
3025
|
is: "survey-matrixtable",
|
|
2989
3026
|
question: s.question,
|
|
@@ -2991,13 +3028,13 @@ const an = /* @__PURE__ */ y({
|
|
|
2991
3028
|
ref: n
|
|
2992
3029
|
}, null, 8, ["question"]));
|
|
2993
3030
|
}
|
|
2994
|
-
}),
|
|
3031
|
+
}), Vn = { key: 0 }, Bn = { key: 1 }, Rn = /* @__PURE__ */ y({
|
|
2995
3032
|
__name: "MatrixTable",
|
|
2996
3033
|
props: {
|
|
2997
3034
|
question: {}
|
|
2998
3035
|
},
|
|
2999
3036
|
setup(u) {
|
|
3000
|
-
const e = u, n =
|
|
3037
|
+
const e = u, n = f(() => e.question.renderedTable);
|
|
3001
3038
|
return V(() => n.value), (s, i) => (o(), l("div", {
|
|
3002
3039
|
style: M({ overflowX: s.question.showHorizontalScroll ? "scroll" : "" }),
|
|
3003
3040
|
class: r(s.question.cssClasses.tableWrapper)
|
|
@@ -3005,7 +3042,7 @@ const an = /* @__PURE__ */ y({
|
|
|
3005
3042
|
v("table", {
|
|
3006
3043
|
class: r(s.question.getTableCss())
|
|
3007
3044
|
}, [
|
|
3008
|
-
n.value.showHeader ? (o(), l("thead",
|
|
3045
|
+
n.value.showHeader ? (o(), l("thead", Vn, [
|
|
3009
3046
|
v("tr", null, [
|
|
3010
3047
|
(o(!0), l(I, null, S(n.value.headerRow.cells, (t) => (o(), l(I, null, [
|
|
3011
3048
|
t.hasTitle ? (o(), l("th", {
|
|
@@ -3013,12 +3050,12 @@ const an = /* @__PURE__ */ y({
|
|
|
3013
3050
|
class: r(t.className),
|
|
3014
3051
|
style: M({ minWidth: t.minWidth, width: t.width })
|
|
3015
3052
|
}, [
|
|
3016
|
-
|
|
3053
|
+
g(d, {
|
|
3017
3054
|
is: s.question.getColumnHeaderWrapperComponentName(t),
|
|
3018
3055
|
componentData: s.question.getColumnHeaderWrapperComponentData(t)
|
|
3019
3056
|
}, {
|
|
3020
3057
|
default: E(() => [
|
|
3021
|
-
|
|
3058
|
+
g(d, {
|
|
3022
3059
|
is: "survey-string",
|
|
3023
3060
|
locString: t.locTitle
|
|
3024
3061
|
}, null, 8, ["locString"]),
|
|
@@ -3048,7 +3085,7 @@ const an = /* @__PURE__ */ y({
|
|
|
3048
3085
|
question: s.question
|
|
3049
3086
|
}, null, 8, ["row", "question"]))), 128))
|
|
3050
3087
|
]),
|
|
3051
|
-
n.value.showFooter ? (o(), l("tfoot",
|
|
3088
|
+
n.value.showFooter ? (o(), l("tfoot", Bn, [
|
|
3052
3089
|
v("tr", null, [
|
|
3053
3090
|
(o(!0), l(I, null, S(n.value.footerRow.cells, (t, a) => (o(), c(d, {
|
|
3054
3091
|
is: "survey-matrixdropdown-cell",
|
|
@@ -3061,7 +3098,7 @@ const an = /* @__PURE__ */ y({
|
|
|
3061
3098
|
], 2)
|
|
3062
3099
|
], 6));
|
|
3063
3100
|
}
|
|
3064
|
-
}),
|
|
3101
|
+
}), Tn = /* @__PURE__ */ v("span", null, " ", -1), Zn = /* @__PURE__ */ y({
|
|
3065
3102
|
__name: "MatrixHeaderRequired",
|
|
3066
3103
|
props: {
|
|
3067
3104
|
question: {},
|
|
@@ -3070,24 +3107,24 @@ const an = /* @__PURE__ */ y({
|
|
|
3070
3107
|
setup(u) {
|
|
3071
3108
|
const e = u;
|
|
3072
3109
|
return V(() => e.column), (n, s) => n.column.isRenderedRequired ? (o(), l(I, { key: 0 }, [
|
|
3073
|
-
|
|
3110
|
+
Tn,
|
|
3074
3111
|
n.column.isRenderedRequired ? (o(), l("span", {
|
|
3075
3112
|
key: 0,
|
|
3076
3113
|
class: r(n.question.cssClasses.cellRequiredMark)
|
|
3077
3114
|
}, H(n.column.requiredMark), 3)) : m("", !0)
|
|
3078
3115
|
], 64)) : m("", !0);
|
|
3079
3116
|
}
|
|
3080
|
-
}),
|
|
3117
|
+
}), $n = ["title", "colspan"], Dn = /* @__PURE__ */ y({
|
|
3081
3118
|
__name: "MatrixDropdownCellComp",
|
|
3082
3119
|
props: {
|
|
3083
3120
|
question: {},
|
|
3084
3121
|
cell: {}
|
|
3085
3122
|
},
|
|
3086
3123
|
setup(u) {
|
|
3087
|
-
const e = u, n =
|
|
3124
|
+
const e = u, n = b(!1), s = b(), i = () => e.cell.width || e.cell.minWidth ? { width: e.cell.width, minWidth: e.cell.minWidth } : null, t = () => {
|
|
3088
3125
|
!e.cell.hasQuestion || !e.question || !e.question.survey || (n.value = e.cell.question.isVisible);
|
|
3089
|
-
}, a = (C) =>
|
|
3090
|
-
t(),
|
|
3126
|
+
}, a = (C) => ie(C);
|
|
3127
|
+
t(), Z(() => {
|
|
3091
3128
|
if (!e.cell.hasQuestion || !e.question || !e.question.survey)
|
|
3092
3129
|
return;
|
|
3093
3130
|
e.cell.question.registerPropertyChangedHandlers(["isVisible"], () => {
|
|
@@ -3102,7 +3139,7 @@ const an = /* @__PURE__ */ y({
|
|
|
3102
3139
|
};
|
|
3103
3140
|
e.question.survey.matrixAfterCellRender(e.question, B), q && q.afterRenderCore(C);
|
|
3104
3141
|
});
|
|
3105
|
-
const p =
|
|
3142
|
+
const p = f(() => {
|
|
3106
3143
|
const C = e.cell;
|
|
3107
3144
|
if (C.hasPanel) {
|
|
3108
3145
|
const q = C.panel, B = q.survey;
|
|
@@ -3113,7 +3150,7 @@ const an = /* @__PURE__ */ y({
|
|
|
3113
3150
|
}
|
|
3114
3151
|
return "survey-panel";
|
|
3115
3152
|
}
|
|
3116
|
-
}),
|
|
3153
|
+
}), h = f(() => {
|
|
3117
3154
|
if (e.cell.hasPanel) {
|
|
3118
3155
|
const q = e.cell.panel, B = q.survey;
|
|
3119
3156
|
let k;
|
|
@@ -3156,16 +3193,16 @@ const an = /* @__PURE__ */ y({
|
|
|
3156
3193
|
C.cell.hasPanel ? (o(), c(d, D({
|
|
3157
3194
|
key: 3,
|
|
3158
3195
|
is: p.value
|
|
3159
|
-
},
|
|
3196
|
+
}, h.value), null, 16, ["is"])) : m("", !0),
|
|
3160
3197
|
C.cell.showResponsiveTitle ? (o(), l("span", {
|
|
3161
3198
|
key: 4,
|
|
3162
3199
|
class: r(C.cell.responsiveTitleCss)
|
|
3163
3200
|
}, [
|
|
3164
|
-
|
|
3201
|
+
g(d, {
|
|
3165
3202
|
is: "survey-string",
|
|
3166
3203
|
locString: C.cell.responsiveLocTitle
|
|
3167
3204
|
}, null, 8, ["locString"]),
|
|
3168
|
-
|
|
3205
|
+
g(d, {
|
|
3169
3206
|
is: "survey-matrixheaderrequired",
|
|
3170
3207
|
column: C.cell.column,
|
|
3171
3208
|
question: C.cell.matrix
|
|
@@ -3181,7 +3218,7 @@ const an = /* @__PURE__ */ y({
|
|
|
3181
3218
|
componentData: C.question.getCellWrapperComponentData(C.cell.cell)
|
|
3182
3219
|
}, {
|
|
3183
3220
|
default: E(() => [
|
|
3184
|
-
|
|
3221
|
+
g(d, {
|
|
3185
3222
|
is: a(C.cell.question),
|
|
3186
3223
|
question: C.cell.question
|
|
3187
3224
|
}, null, 8, ["is", "question"])
|
|
@@ -3242,16 +3279,16 @@ const an = /* @__PURE__ */ y({
|
|
|
3242
3279
|
]),
|
|
3243
3280
|
_: 1
|
|
3244
3281
|
}, 8, ["is", "componentData"])) : m("", !0)
|
|
3245
|
-
], 46,
|
|
3282
|
+
], 46, $n)) : m("", !0);
|
|
3246
3283
|
}
|
|
3247
|
-
}),
|
|
3284
|
+
}), An = /* @__PURE__ */ y({
|
|
3248
3285
|
inheritAttrs: !1,
|
|
3249
3286
|
__name: "MatrixDynamic",
|
|
3250
3287
|
props: {
|
|
3251
3288
|
question: {}
|
|
3252
3289
|
},
|
|
3253
3290
|
setup(u) {
|
|
3254
|
-
const e = u, n =
|
|
3291
|
+
const e = u, n = b(null);
|
|
3255
3292
|
T(e, n);
|
|
3256
3293
|
const s = () => {
|
|
3257
3294
|
e.question.addRowUI();
|
|
@@ -3269,7 +3306,7 @@ const an = /* @__PURE__ */ y({
|
|
|
3269
3306
|
class: r(i.question.getAddRowButtonCss()),
|
|
3270
3307
|
onClick: s
|
|
3271
3308
|
}, [
|
|
3272
|
-
|
|
3309
|
+
g(d, {
|
|
3273
3310
|
is: "survey-string",
|
|
3274
3311
|
locString: i.question.locAddRowText
|
|
3275
3312
|
}, null, 8, ["locString"]),
|
|
@@ -3290,7 +3327,7 @@ const an = /* @__PURE__ */ y({
|
|
|
3290
3327
|
v("div", {
|
|
3291
3328
|
class: r(i.question.cssClasses.noRowsText)
|
|
3292
3329
|
}, [
|
|
3293
|
-
|
|
3330
|
+
g(d, {
|
|
3294
3331
|
is: "survey-string",
|
|
3295
3332
|
locString: i.question.locNoRowsText
|
|
3296
3333
|
}, null, 8, ["locString"])
|
|
@@ -3301,7 +3338,7 @@ const an = /* @__PURE__ */ y({
|
|
|
3301
3338
|
class: r(i.question.getAddRowButtonCss(!0)),
|
|
3302
3339
|
onClick: s
|
|
3303
3340
|
}, [
|
|
3304
|
-
|
|
3341
|
+
g(d, {
|
|
3305
3342
|
is: "survey-string",
|
|
3306
3343
|
locString: i.question.locAddRowText
|
|
3307
3344
|
}, null, 8, ["locString"]),
|
|
@@ -3319,7 +3356,7 @@ const an = /* @__PURE__ */ y({
|
|
|
3319
3356
|
class: r(i.question.getAddRowButtonCss()),
|
|
3320
3357
|
onClick: s
|
|
3321
3358
|
}, [
|
|
3322
|
-
|
|
3359
|
+
g(d, {
|
|
3323
3360
|
is: "survey-string",
|
|
3324
3361
|
locString: i.question.locAddRowText
|
|
3325
3362
|
}, null, 8, ["locString"]),
|
|
@@ -3331,41 +3368,41 @@ const an = /* @__PURE__ */ y({
|
|
|
3331
3368
|
], 512));
|
|
3332
3369
|
}
|
|
3333
3370
|
});
|
|
3334
|
-
function
|
|
3371
|
+
function re(u, e = !0) {
|
|
3335
3372
|
return {
|
|
3336
|
-
question:
|
|
3337
|
-
row: e ?
|
|
3373
|
+
question: f(() => u.item.data.question),
|
|
3374
|
+
row: e ? f(() => u.item.data.row) : void 0
|
|
3338
3375
|
};
|
|
3339
3376
|
}
|
|
3340
|
-
const
|
|
3377
|
+
const Nn = ["disabled"], Pn = /* @__PURE__ */ y({
|
|
3341
3378
|
__name: "RemoveButton",
|
|
3342
3379
|
props: {
|
|
3343
3380
|
item: {}
|
|
3344
3381
|
},
|
|
3345
3382
|
setup(u) {
|
|
3346
|
-
const e = u, { question: n, row: s } =
|
|
3383
|
+
const e = u, { question: n, row: s } = re(e);
|
|
3347
3384
|
return (i, t) => (o(), l("button", {
|
|
3348
3385
|
type: "button",
|
|
3349
3386
|
class: r(L(n).getRemoveRowButtonCss()),
|
|
3350
3387
|
disabled: L(n).isInputReadOnly,
|
|
3351
3388
|
onClick: t[0] || (t[0] = () => L(n).removeRowUI(L(s)))
|
|
3352
3389
|
}, [
|
|
3353
|
-
|
|
3390
|
+
g(d, {
|
|
3354
3391
|
is: "survey-string",
|
|
3355
3392
|
locString: L(n).locRemoveRowText
|
|
3356
3393
|
}, null, 8, ["locString"]),
|
|
3357
3394
|
v("span", {
|
|
3358
3395
|
class: r(L(n).cssClasses.iconRemove)
|
|
3359
3396
|
}, null, 2)
|
|
3360
|
-
], 10,
|
|
3397
|
+
], 10, Nn));
|
|
3361
3398
|
}
|
|
3362
|
-
}),
|
|
3399
|
+
}), En = ["xlink:href"], Wn = /* @__PURE__ */ y({
|
|
3363
3400
|
__name: "DragDropIcon",
|
|
3364
3401
|
props: {
|
|
3365
3402
|
item: {}
|
|
3366
3403
|
},
|
|
3367
3404
|
setup(u) {
|
|
3368
|
-
const e = u, { question: n } =
|
|
3405
|
+
const e = u, { question: n } = re(e, !1);
|
|
3369
3406
|
return (s, i) => (o(), l("div", null, [
|
|
3370
3407
|
L(n).iconDragElement ? (o(), l("svg", {
|
|
3371
3408
|
key: 0,
|
|
@@ -3373,20 +3410,20 @@ const Tn = ["disabled"], Zn = /* @__PURE__ */ y({
|
|
|
3373
3410
|
}, [
|
|
3374
3411
|
v("use", {
|
|
3375
3412
|
"xlink:href": L(n).iconDragElement
|
|
3376
|
-
}, null, 8,
|
|
3413
|
+
}, null, 8, En)
|
|
3377
3414
|
], 2)) : (o(), l("span", {
|
|
3378
3415
|
key: 1,
|
|
3379
3416
|
class: r(L(n).cssClasses.iconDrag)
|
|
3380
3417
|
}, null, 2))
|
|
3381
3418
|
]));
|
|
3382
3419
|
}
|
|
3383
|
-
}),
|
|
3420
|
+
}), Fn = ["aria-expanded", "aria-controls"], zn = /* @__PURE__ */ y({
|
|
3384
3421
|
__name: "DetailButton",
|
|
3385
3422
|
props: {
|
|
3386
3423
|
item: {}
|
|
3387
3424
|
},
|
|
3388
3425
|
setup(u) {
|
|
3389
|
-
const e = u, { question: n, row: s } =
|
|
3426
|
+
const e = u, { question: n, row: s } = re(e);
|
|
3390
3427
|
return (i, t) => (o(), l("button", {
|
|
3391
3428
|
type: "button",
|
|
3392
3429
|
class: r(L(n).getDetailPanelButtonCss(L(s))),
|
|
@@ -3394,15 +3431,15 @@ const Tn = ["disabled"], Zn = /* @__PURE__ */ y({
|
|
|
3394
3431
|
"aria-expanded": L(n).getIsDetailPanelShowing(L(s)) ? "true" : "false",
|
|
3395
3432
|
"aria-controls": L(n).getIsDetailPanelShowing(L(s)) ? L(s).detailPanelId : null
|
|
3396
3433
|
}, [
|
|
3397
|
-
|
|
3434
|
+
g(d, {
|
|
3398
3435
|
is: "sv-svg-icon",
|
|
3399
3436
|
class: r(L(n).getDetailPanelIconCss(L(s))),
|
|
3400
3437
|
iconName: L(n).getDetailPanelIconId(L(s)),
|
|
3401
3438
|
size: "auto"
|
|
3402
3439
|
}, null, 8, ["class", "iconName"])
|
|
3403
|
-
], 10,
|
|
3440
|
+
], 10, Fn));
|
|
3404
3441
|
}
|
|
3405
|
-
}),
|
|
3442
|
+
}), On = /* @__PURE__ */ y({
|
|
3406
3443
|
inheritAttrs: !1,
|
|
3407
3444
|
__name: "PanelDynamic",
|
|
3408
3445
|
props: {
|
|
@@ -3410,20 +3447,20 @@ const Tn = ["disabled"], Zn = /* @__PURE__ */ y({
|
|
|
3410
3447
|
css: {}
|
|
3411
3448
|
},
|
|
3412
3449
|
setup(u) {
|
|
3413
|
-
const e = u, n =
|
|
3450
|
+
const e = u, n = b(null), s = he();
|
|
3414
3451
|
T(
|
|
3415
3452
|
e,
|
|
3416
3453
|
n,
|
|
3417
3454
|
(p) => {
|
|
3418
3455
|
p.panelCountChangedCallback = () => {
|
|
3419
|
-
var
|
|
3420
|
-
(
|
|
3456
|
+
var h;
|
|
3457
|
+
(h = s == null ? void 0 : s.proxy) == null || h.$forceUpdate();
|
|
3421
3458
|
}, p.currentIndexChangedCallback = () => {
|
|
3422
|
-
var
|
|
3423
|
-
(
|
|
3459
|
+
var h;
|
|
3460
|
+
(h = s == null ? void 0 : s.proxy) == null || h.$forceUpdate();
|
|
3424
3461
|
}, p.renderModeChangedCallback = () => {
|
|
3425
|
-
var
|
|
3426
|
-
(
|
|
3462
|
+
var h;
|
|
3463
|
+
(h = s == null ? void 0 : s.proxy) == null || h.$forceUpdate();
|
|
3427
3464
|
};
|
|
3428
3465
|
},
|
|
3429
3466
|
(p) => {
|
|
@@ -3431,17 +3468,17 @@ const Tn = ["disabled"], Zn = /* @__PURE__ */ y({
|
|
|
3431
3468
|
}
|
|
3432
3469
|
);
|
|
3433
3470
|
const i = () => e.question.showLegacyNavigation, t = (p) => {
|
|
3434
|
-
const
|
|
3435
|
-
if (
|
|
3436
|
-
const C =
|
|
3471
|
+
const h = e.question.getSurvey();
|
|
3472
|
+
if (h) {
|
|
3473
|
+
const C = h.getElementWrapperComponentName(p);
|
|
3437
3474
|
if (C)
|
|
3438
3475
|
return C;
|
|
3439
3476
|
}
|
|
3440
3477
|
return "panel";
|
|
3441
3478
|
}, a = (p) => {
|
|
3442
|
-
const
|
|
3479
|
+
const h = e.question.getSurvey();
|
|
3443
3480
|
let C;
|
|
3444
|
-
return
|
|
3481
|
+
return h && (C = h.getElementWrapperComponentData(p)), {
|
|
3445
3482
|
componentName: "survey-panel",
|
|
3446
3483
|
componentData: {
|
|
3447
3484
|
element: p,
|
|
@@ -3449,7 +3486,7 @@ const Tn = ["disabled"], Zn = /* @__PURE__ */ y({
|
|
|
3449
3486
|
}
|
|
3450
3487
|
};
|
|
3451
3488
|
};
|
|
3452
|
-
return (p,
|
|
3489
|
+
return (p, h) => (o(), l("div", {
|
|
3453
3490
|
class: r(p.question.cssClasses.root),
|
|
3454
3491
|
ref_key: "root",
|
|
3455
3492
|
ref: n
|
|
@@ -3458,7 +3495,7 @@ const Tn = ["disabled"], Zn = /* @__PURE__ */ y({
|
|
|
3458
3495
|
key: 0,
|
|
3459
3496
|
class: r(p.question.getTabsContainerCss())
|
|
3460
3497
|
}, [
|
|
3461
|
-
|
|
3498
|
+
g(d, {
|
|
3462
3499
|
is: "sv-action-bar",
|
|
3463
3500
|
model: p.question.tabbedMenu
|
|
3464
3501
|
}, null, 8, ["model"])
|
|
@@ -3468,12 +3505,12 @@ const Tn = ["disabled"], Zn = /* @__PURE__ */ y({
|
|
|
3468
3505
|
class: r(p.question.cssClasses.noEntriesPlaceholder)
|
|
3469
3506
|
}, [
|
|
3470
3507
|
v("span", null, [
|
|
3471
|
-
|
|
3508
|
+
g(d, {
|
|
3472
3509
|
is: "survey-string",
|
|
3473
3510
|
locString: p.question.locNoEntriesText
|
|
3474
3511
|
}, null, 8, ["locString"])
|
|
3475
3512
|
]),
|
|
3476
|
-
|
|
3513
|
+
g(d, {
|
|
3477
3514
|
is: "sv-paneldynamic-add-btn",
|
|
3478
3515
|
data: { question: p.question }
|
|
3479
3516
|
}, null, 8, ["data"])
|
|
@@ -3502,7 +3539,7 @@ const Tn = ["disabled"], Zn = /* @__PURE__ */ y({
|
|
|
3502
3539
|
v("div", {
|
|
3503
3540
|
class: r(p.question.getPanelWrapperCss(C))
|
|
3504
3541
|
}, [
|
|
3505
|
-
|
|
3542
|
+
g(d, D({
|
|
3506
3543
|
is: t(C)
|
|
3507
3544
|
}, a(C)), null, 16, ["is"]),
|
|
3508
3545
|
p.question.canRenderRemovePanelOnRight(C) ? (o(), c(d, {
|
|
@@ -3534,7 +3571,7 @@ const Tn = ["disabled"], Zn = /* @__PURE__ */ y({
|
|
|
3534
3571
|
}, null, 8, ["question"])) : m("", !0)
|
|
3535
3572
|
], 2));
|
|
3536
3573
|
}
|
|
3537
|
-
}),
|
|
3574
|
+
}), Un = /* @__PURE__ */ y({
|
|
3538
3575
|
__name: "PanelDynamicProgress",
|
|
3539
3576
|
props: {
|
|
3540
3577
|
question: {}
|
|
@@ -3551,7 +3588,7 @@ const Tn = ["disabled"], Zn = /* @__PURE__ */ y({
|
|
|
3551
3588
|
v("div", {
|
|
3552
3589
|
class: r(s.question.cssClasses.progressContainer)
|
|
3553
3590
|
}, [
|
|
3554
|
-
|
|
3591
|
+
g(d, {
|
|
3555
3592
|
is: "sv-paneldynamic-prev-btn",
|
|
3556
3593
|
data: { question: s.question }
|
|
3557
3594
|
}, null, 8, ["data"]),
|
|
@@ -3565,23 +3602,23 @@ const Tn = ["disabled"], Zn = /* @__PURE__ */ y({
|
|
|
3565
3602
|
role: "progressbar"
|
|
3566
3603
|
}, null, 6)
|
|
3567
3604
|
], 2)) : m("", !0),
|
|
3568
|
-
|
|
3605
|
+
g(d, {
|
|
3569
3606
|
is: "sv-paneldynamic-next-btn",
|
|
3570
3607
|
data: { question: s.question }
|
|
3571
3608
|
}, null, 8, ["data"])
|
|
3572
3609
|
], 2),
|
|
3573
|
-
|
|
3610
|
+
g(d, {
|
|
3574
3611
|
is: "sv-paneldynamic-add-btn",
|
|
3575
3612
|
data: { question: s.question }
|
|
3576
3613
|
}, null, 8, ["data"]),
|
|
3577
|
-
|
|
3614
|
+
g(d, {
|
|
3578
3615
|
is: "sv-paneldynamic-progress-text",
|
|
3579
3616
|
data: { question: s.question }
|
|
3580
3617
|
}, null, 8, ["data"])
|
|
3581
3618
|
], 2)
|
|
3582
3619
|
], 2));
|
|
3583
3620
|
}
|
|
3584
|
-
}),
|
|
3621
|
+
}), Kn = /* @__PURE__ */ y({
|
|
3585
3622
|
__name: "PanelDynamicProgressV2",
|
|
3586
3623
|
props: {
|
|
3587
3624
|
question: {}
|
|
@@ -3608,7 +3645,7 @@ const Tn = ["disabled"], Zn = /* @__PURE__ */ y({
|
|
|
3608
3645
|
key: 1,
|
|
3609
3646
|
class: r(e.question.cssClasses.footerButtonsContainer)
|
|
3610
3647
|
}, [
|
|
3611
|
-
|
|
3648
|
+
g(d, {
|
|
3612
3649
|
is: "sv-action-bar",
|
|
3613
3650
|
model: e.question.footerToolbar
|
|
3614
3651
|
}, null, 8, ["model"])
|
|
@@ -3617,11 +3654,11 @@ const Tn = ["disabled"], Zn = /* @__PURE__ */ y({
|
|
|
3617
3654
|
}
|
|
3618
3655
|
});
|
|
3619
3656
|
function Q(u) {
|
|
3620
|
-
return
|
|
3657
|
+
return f(
|
|
3621
3658
|
() => u.item && u.item.data.question || u.data.question
|
|
3622
3659
|
);
|
|
3623
3660
|
}
|
|
3624
|
-
const
|
|
3661
|
+
const jn = ["id"], Qn = /* @__PURE__ */ y({
|
|
3625
3662
|
__name: "PaneldynamicAddBtn",
|
|
3626
3663
|
props: {
|
|
3627
3664
|
item: {},
|
|
@@ -3641,14 +3678,14 @@ const Fn = ["id"], zn = /* @__PURE__ */ y({
|
|
|
3641
3678
|
v("span", {
|
|
3642
3679
|
class: r(L(n).cssClasses.buttonAddText)
|
|
3643
3680
|
}, [
|
|
3644
|
-
|
|
3681
|
+
g(d, {
|
|
3645
3682
|
is: "survey-string",
|
|
3646
3683
|
locString: L(n).locAddPanelText
|
|
3647
3684
|
}, null, 8, ["locString"])
|
|
3648
3685
|
], 2)
|
|
3649
|
-
], 10,
|
|
3686
|
+
], 10, jn)) : m("", !0);
|
|
3650
3687
|
}
|
|
3651
|
-
}),
|
|
3688
|
+
}), Gn = ["title"], Jn = /* @__PURE__ */ y({
|
|
3652
3689
|
__name: "PaneldynamicNextBtn",
|
|
3653
3690
|
props: {
|
|
3654
3691
|
item: {},
|
|
@@ -3663,14 +3700,14 @@ const Fn = ["id"], zn = /* @__PURE__ */ y({
|
|
|
3663
3700
|
onClick: s,
|
|
3664
3701
|
class: r(L(n).getNextButtonCss())
|
|
3665
3702
|
}, [
|
|
3666
|
-
|
|
3703
|
+
g(d, {
|
|
3667
3704
|
is: "sv-svg-icon",
|
|
3668
3705
|
iconName: L(n).cssClasses.progressBtnIcon,
|
|
3669
3706
|
size: "auto"
|
|
3670
3707
|
}, null, 8, ["iconName"])
|
|
3671
|
-
], 10,
|
|
3708
|
+
], 10, Gn));
|
|
3672
3709
|
}
|
|
3673
|
-
}),
|
|
3710
|
+
}), Xn = ["title"], Yn = /* @__PURE__ */ y({
|
|
3674
3711
|
__name: "PaneldynamicPrevBtn",
|
|
3675
3712
|
props: {
|
|
3676
3713
|
item: {},
|
|
@@ -3685,21 +3722,21 @@ const Fn = ["id"], zn = /* @__PURE__ */ y({
|
|
|
3685
3722
|
onClick: s,
|
|
3686
3723
|
class: r(L(n).getPrevButtonCss())
|
|
3687
3724
|
}, [
|
|
3688
|
-
|
|
3725
|
+
g(d, {
|
|
3689
3726
|
is: "sv-svg-icon",
|
|
3690
3727
|
iconName: L(n).cssClasses.progressBtnIcon,
|
|
3691
3728
|
size: "auto"
|
|
3692
3729
|
}, null, 8, ["iconName"])
|
|
3693
|
-
], 10,
|
|
3730
|
+
], 10, Xn));
|
|
3694
3731
|
}
|
|
3695
|
-
}),
|
|
3732
|
+
}), _n = ["id"], xn = /* @__PURE__ */ y({
|
|
3696
3733
|
__name: "PaneldynamicRemoveBtn",
|
|
3697
3734
|
props: {
|
|
3698
3735
|
item: {},
|
|
3699
3736
|
data: {}
|
|
3700
3737
|
},
|
|
3701
3738
|
setup(u) {
|
|
3702
|
-
const e = u, n = Q(e), s =
|
|
3739
|
+
const e = u, n = Q(e), s = f(
|
|
3703
3740
|
() => e.item && e.item.data.panel || e.data.panel
|
|
3704
3741
|
), i = (a) => n.value.getPanelRemoveButtonId(a), t = (a) => {
|
|
3705
3742
|
n.value.isInputReadOnly || n.value.removePanelUI(a);
|
|
@@ -3708,12 +3745,12 @@ const Fn = ["id"], zn = /* @__PURE__ */ y({
|
|
|
3708
3745
|
type: "button",
|
|
3709
3746
|
id: i(s.value),
|
|
3710
3747
|
class: r(L(n).getPanelRemoveButtonCss()),
|
|
3711
|
-
onClick: p[0] || (p[0] = (
|
|
3748
|
+
onClick: p[0] || (p[0] = (h) => t(s.value))
|
|
3712
3749
|
}, [
|
|
3713
3750
|
v("span", {
|
|
3714
3751
|
class: r(L(n).cssClasses.buttonRemoveText)
|
|
3715
3752
|
}, [
|
|
3716
|
-
|
|
3753
|
+
g(d, {
|
|
3717
3754
|
is: "survey-string",
|
|
3718
3755
|
locString: L(n).locRemovePanelText
|
|
3719
3756
|
}, null, 8, ["locString"])
|
|
@@ -3721,9 +3758,9 @@ const Fn = ["id"], zn = /* @__PURE__ */ y({
|
|
|
3721
3758
|
v("span", {
|
|
3722
3759
|
class: r(L(n).cssClasses.iconRemove)
|
|
3723
3760
|
}, null, 2)
|
|
3724
|
-
], 10,
|
|
3761
|
+
], 10, _n));
|
|
3725
3762
|
}
|
|
3726
|
-
}),
|
|
3763
|
+
}), et = /* @__PURE__ */ y({
|
|
3727
3764
|
__name: "PaneldynamicProgressText",
|
|
3728
3765
|
props: {
|
|
3729
3766
|
item: {},
|
|
@@ -3735,14 +3772,14 @@ const Fn = ["id"], zn = /* @__PURE__ */ y({
|
|
|
3735
3772
|
class: r(L(n).cssClasses.progressText)
|
|
3736
3773
|
}, H(L(n).progressText), 3));
|
|
3737
3774
|
}
|
|
3738
|
-
}),
|
|
3775
|
+
}), st = ["id"], nt = /* @__PURE__ */ y({
|
|
3739
3776
|
__name: "Errors",
|
|
3740
3777
|
props: {
|
|
3741
3778
|
element: {},
|
|
3742
3779
|
location: {}
|
|
3743
3780
|
},
|
|
3744
3781
|
setup(u) {
|
|
3745
|
-
const e =
|
|
3782
|
+
const e = b();
|
|
3746
3783
|
return (n, s) => n.element.hasVisibleErrors ? (o(), l("div", {
|
|
3747
3784
|
key: 0,
|
|
3748
3785
|
role: "alert",
|
|
@@ -3760,21 +3797,21 @@ const Fn = ["id"], zn = /* @__PURE__ */ y({
|
|
|
3760
3797
|
error: i,
|
|
3761
3798
|
cssClasses: n.element.cssClasses
|
|
3762
3799
|
}, null, 8, ["is", "element", "errorKey", "error", "cssClasses"]))), 128))
|
|
3763
|
-
], 10,
|
|
3800
|
+
], 10, st)) : m("", !0);
|
|
3764
3801
|
}
|
|
3765
|
-
}),
|
|
3802
|
+
}), tt = { key: 0 }, ot = /* @__PURE__ */ y({
|
|
3766
3803
|
__name: "QuestionComment",
|
|
3767
3804
|
props: {
|
|
3768
3805
|
question: {}
|
|
3769
3806
|
},
|
|
3770
3807
|
setup(u) {
|
|
3771
|
-
return (e, n) => e.question.isReadOnlyRenderDiv() ? (o(), l("div",
|
|
3808
|
+
return (e, n) => e.question.isReadOnlyRenderDiv() ? (o(), l("div", tt, H(e.question.comment), 1)) : (o(), c(d, {
|
|
3772
3809
|
key: 1,
|
|
3773
3810
|
is: "sv-text-area",
|
|
3774
3811
|
model: e.question.commentTextAreaModel
|
|
3775
3812
|
}, null, 8, ["model"]));
|
|
3776
3813
|
}
|
|
3777
|
-
}),
|
|
3814
|
+
}), it = /* @__PURE__ */ y({
|
|
3778
3815
|
__name: "TitleElement",
|
|
3779
3816
|
props: {
|
|
3780
3817
|
element: {},
|
|
@@ -3784,7 +3821,7 @@ const Fn = ["id"], zn = /* @__PURE__ */ y({
|
|
|
3784
3821
|
const e = (n) => {
|
|
3785
3822
|
ye(n);
|
|
3786
3823
|
};
|
|
3787
|
-
return (n, s) => n.element.hasTitle ? (o(), c(
|
|
3824
|
+
return (n, s) => n.element.hasTitle ? (o(), c(ce(n.element.titleTagName), {
|
|
3788
3825
|
key: 0,
|
|
3789
3826
|
class: r(n.element.cssTitle),
|
|
3790
3827
|
"aria-label": n.element.titleAriaLabel,
|
|
@@ -3827,7 +3864,7 @@ const Fn = ["id"], zn = /* @__PURE__ */ y({
|
|
|
3827
3864
|
_: 1
|
|
3828
3865
|
}, 40, ["class", "aria-label", "id", "tabindex", "aria-expanded", "role"])) : m("", !0);
|
|
3829
3866
|
}
|
|
3830
|
-
}),
|
|
3867
|
+
}), rt = { key: 3 }, lt = { key: 5 }, at = { key: 7 }, ut = /* @__PURE__ */ y({
|
|
3831
3868
|
inheritAttrs: !1,
|
|
3832
3869
|
__name: "TitleContent",
|
|
3833
3870
|
props: {
|
|
@@ -3836,7 +3873,7 @@ const Fn = ["id"], zn = /* @__PURE__ */ y({
|
|
|
3836
3873
|
},
|
|
3837
3874
|
setup(u) {
|
|
3838
3875
|
const e = u;
|
|
3839
|
-
return
|
|
3876
|
+
return f(
|
|
3840
3877
|
() => (e.element.isPanel ? e.element.cssClasses.panel : e.element.cssClasses) || {}
|
|
3841
3878
|
), (n, s) => (o(), l(I, null, [
|
|
3842
3879
|
n.element.isTitleRenderedAsString ? (o(), c(d, {
|
|
@@ -3855,19 +3892,19 @@ const Fn = ["id"], zn = /* @__PURE__ */ y({
|
|
|
3855
3892
|
class: r(n.element.cssTitleNumber),
|
|
3856
3893
|
"aria-hidden": !0
|
|
3857
3894
|
}, H(n.element.no), 3)) : m("", !0),
|
|
3858
|
-
!n.element.isTitleRenderedAsString && n.element.no ? (o(), l("span",
|
|
3895
|
+
!n.element.isTitleRenderedAsString && n.element.no ? (o(), l("span", rt, " ")) : m("", !0),
|
|
3859
3896
|
!n.element.isTitleRenderedAsString && n.element.isRequireTextBeforeTitle ? (o(), l("span", {
|
|
3860
3897
|
key: 4,
|
|
3861
3898
|
class: r(n.element.cssRequiredMark),
|
|
3862
3899
|
"aria-hidden": !0
|
|
3863
3900
|
}, H(n.element.requiredMark), 3)) : m("", !0),
|
|
3864
|
-
!n.element.isTitleRenderedAsString && n.element.isRequireTextBeforeTitle ? (o(), l("span",
|
|
3901
|
+
!n.element.isTitleRenderedAsString && n.element.isRequireTextBeforeTitle ? (o(), l("span", lt, " ")) : m("", !0),
|
|
3865
3902
|
n.element.isTitleRenderedAsString ? m("", !0) : (o(), c(d, {
|
|
3866
3903
|
key: 6,
|
|
3867
3904
|
is: "survey-string",
|
|
3868
3905
|
locString: n.element.locTitle
|
|
3869
3906
|
}, null, 8, ["locString"])),
|
|
3870
|
-
!n.element.isTitleRenderedAsString && n.element.isRequireTextAfterTitle ? (o(), l("span",
|
|
3907
|
+
!n.element.isTitleRenderedAsString && n.element.isRequireTextAfterTitle ? (o(), l("span", at, " ")) : m("", !0),
|
|
3871
3908
|
!n.element.isTitleRenderedAsString && n.element.isRequireTextAfterTitle ? (o(), l("span", {
|
|
3872
3909
|
key: 8,
|
|
3873
3910
|
class: r(n.element.cssRequiredMark),
|
|
@@ -3875,16 +3912,16 @@ const Fn = ["id"], zn = /* @__PURE__ */ y({
|
|
|
3875
3912
|
}, H(n.element.requiredMark), 3)) : m("", !0)
|
|
3876
3913
|
], 64));
|
|
3877
3914
|
}
|
|
3878
|
-
}),
|
|
3915
|
+
}), dt = { class: "sv-title-actions" }, mt = { class: "sv-title-actions__title" }, pt = /* @__PURE__ */ y({
|
|
3879
3916
|
__name: "TitleActions",
|
|
3880
3917
|
props: {
|
|
3881
3918
|
element: {},
|
|
3882
3919
|
css: {}
|
|
3883
3920
|
},
|
|
3884
3921
|
setup(u) {
|
|
3885
|
-
const e = u, n =
|
|
3886
|
-
return (s, i) => (o(), l("div",
|
|
3887
|
-
v("span",
|
|
3922
|
+
const e = u, n = f(() => e.element.getTitleToolbar());
|
|
3923
|
+
return (s, i) => (o(), l("div", dt, [
|
|
3924
|
+
v("span", mt, [
|
|
3888
3925
|
s.element.isPage ? (o(), c(d, {
|
|
3889
3926
|
key: 0,
|
|
3890
3927
|
is: "survey-string",
|
|
@@ -3897,26 +3934,26 @@ const Fn = ["id"], zn = /* @__PURE__ */ y({
|
|
|
3897
3934
|
css: s.css
|
|
3898
3935
|
}, null, 8, ["element", "css"]))
|
|
3899
3936
|
]),
|
|
3900
|
-
|
|
3937
|
+
g(d, {
|
|
3901
3938
|
is: "sv-action-bar",
|
|
3902
3939
|
model: n.value
|
|
3903
3940
|
}, null, 8, ["model"])
|
|
3904
3941
|
]));
|
|
3905
3942
|
}
|
|
3906
|
-
}),
|
|
3943
|
+
}), Ct = (u, e) => {
|
|
3907
3944
|
const n = u.__vccOpts || u;
|
|
3908
3945
|
for (const [s, i] of e)
|
|
3909
3946
|
n[s] = i;
|
|
3910
3947
|
return n;
|
|
3911
|
-
},
|
|
3912
|
-
|
|
3948
|
+
}, vt = {}, ct = { class: "sv-brand-info" }, gt = /* @__PURE__ */ Ze('<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), ht = [
|
|
3949
|
+
gt
|
|
3913
3950
|
];
|
|
3914
|
-
function
|
|
3915
|
-
return o(), l("div",
|
|
3951
|
+
function yt(u, e) {
|
|
3952
|
+
return o(), l("div", ct, ht);
|
|
3916
3953
|
}
|
|
3917
|
-
const
|
|
3918
|
-
|
|
3919
|
-
],
|
|
3954
|
+
const qt = /* @__PURE__ */ Ct(vt, [["render", yt]]), wt = /* @__PURE__ */ v("use", null, null, -1), Lt = [
|
|
3955
|
+
wt
|
|
3956
|
+
], kt = /* @__PURE__ */ y({
|
|
3920
3957
|
__name: "SvgIcon",
|
|
3921
3958
|
props: {
|
|
3922
3959
|
size: {},
|
|
@@ -3926,8 +3963,8 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
3926
3963
|
title: {}
|
|
3927
3964
|
},
|
|
3928
3965
|
setup(u) {
|
|
3929
|
-
const e = u, n =
|
|
3930
|
-
|
|
3966
|
+
const e = u, n = b(), s = () => {
|
|
3967
|
+
Fe(
|
|
3931
3968
|
e.size,
|
|
3932
3969
|
e.width,
|
|
3933
3970
|
e.height,
|
|
@@ -3938,16 +3975,16 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
3938
3975
|
};
|
|
3939
3976
|
return j(() => {
|
|
3940
3977
|
s();
|
|
3941
|
-
}),
|
|
3978
|
+
}), Z(() => {
|
|
3942
3979
|
s();
|
|
3943
3980
|
}), (i, t) => (o(), l("svg", {
|
|
3944
3981
|
ref_key: "svgIconElement",
|
|
3945
3982
|
ref: n,
|
|
3946
3983
|
class: "sv-svg-icon",
|
|
3947
3984
|
role: "presentation"
|
|
3948
|
-
},
|
|
3985
|
+
}, Lt, 512));
|
|
3949
3986
|
}
|
|
3950
|
-
}),
|
|
3987
|
+
}), bt = /* @__PURE__ */ y({
|
|
3951
3988
|
__name: "QuestionError",
|
|
3952
3989
|
props: {
|
|
3953
3990
|
errorKey: {},
|
|
@@ -3968,14 +4005,14 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
3968
4005
|
e.cssClasses ? e.cssClasses.error.item || void 0 : "panel-error-item"
|
|
3969
4006
|
)
|
|
3970
4007
|
}, [
|
|
3971
|
-
|
|
4008
|
+
g(d, {
|
|
3972
4009
|
is: "survey-string",
|
|
3973
4010
|
locString: e.error.locText
|
|
3974
4011
|
}, null, 8, ["locString"])
|
|
3975
4012
|
], 2)
|
|
3976
4013
|
]));
|
|
3977
4014
|
}
|
|
3978
|
-
}),
|
|
4015
|
+
}), ft = /* @__PURE__ */ y({
|
|
3979
4016
|
__name: "ActionBar",
|
|
3980
4017
|
props: {
|
|
3981
4018
|
model: {},
|
|
@@ -3983,12 +4020,12 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
3983
4020
|
handleClick: { type: Boolean, default: !0 }
|
|
3984
4021
|
},
|
|
3985
4022
|
setup(u) {
|
|
3986
|
-
const e = u, n =
|
|
4023
|
+
const e = u, n = b(null), s = (t) => {
|
|
3987
4024
|
e.handleClick && t.stopPropagation();
|
|
3988
4025
|
};
|
|
3989
4026
|
V(() => e.model);
|
|
3990
|
-
const i =
|
|
3991
|
-
return
|
|
4027
|
+
const i = se(() => e.model.renderedActions);
|
|
4028
|
+
return Z(() => {
|
|
3992
4029
|
e.model.hasActions && e.model.initResponsivityManager(n.value);
|
|
3993
4030
|
}), P(() => {
|
|
3994
4031
|
e.model.resetResponsivityManager();
|
|
@@ -4006,16 +4043,16 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4006
4043
|
}, null, 8, ["item"]))), 128))
|
|
4007
4044
|
], 2)) : m("", !0);
|
|
4008
4045
|
}
|
|
4009
|
-
}),
|
|
4046
|
+
}), Mt = ["id"], Ht = { class: "sv-action__content" }, It = /* @__PURE__ */ y({
|
|
4010
4047
|
__name: "Action",
|
|
4011
4048
|
props: {
|
|
4012
4049
|
item: {}
|
|
4013
4050
|
},
|
|
4014
4051
|
setup(u) {
|
|
4015
|
-
const e =
|
|
4052
|
+
const e = b(), n = u, s = f(
|
|
4016
4053
|
() => n.item.component || "sv-action-bar-item"
|
|
4017
4054
|
);
|
|
4018
|
-
return V(() => n.item),
|
|
4055
|
+
return V(() => n.item), Z(() => {
|
|
4019
4056
|
const i = n.item;
|
|
4020
4057
|
i.updateModeCallback = (t, a) => {
|
|
4021
4058
|
i.mode = t, ge(() => {
|
|
@@ -4031,17 +4068,17 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4031
4068
|
ref_key: "root",
|
|
4032
4069
|
ref: e
|
|
4033
4070
|
}, [
|
|
4034
|
-
v("div",
|
|
4071
|
+
v("div", Ht, [
|
|
4035
4072
|
i.item.needSeparator ? (o(), c(d, {
|
|
4036
4073
|
key: 0,
|
|
4037
4074
|
is: "sv-action-bar-separator"
|
|
4038
4075
|
})) : m("", !0),
|
|
4039
|
-
|
|
4076
|
+
g(d, {
|
|
4040
4077
|
is: s.value,
|
|
4041
4078
|
item: i.item
|
|
4042
4079
|
}, null, 8, ["is", "item"])
|
|
4043
4080
|
])
|
|
4044
|
-
], 10,
|
|
4081
|
+
], 10, Mt));
|
|
4045
4082
|
}
|
|
4046
4083
|
}), U = {
|
|
4047
4084
|
mounted: function(u, e) {
|
|
@@ -4056,15 +4093,15 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4056
4093
|
return;
|
|
4057
4094
|
}
|
|
4058
4095
|
n.disableTabStop || (u.tabIndex = 0), u.addEventListener("keyup", (s) => (s.preventDefault(), s.stopPropagation(), ye(s, n), !1)), u.addEventListener("keydown", (s) => {
|
|
4059
|
-
|
|
4096
|
+
ze(s, n);
|
|
4060
4097
|
}), u.addEventListener("blur", (s) => {
|
|
4061
|
-
|
|
4098
|
+
Oe(s);
|
|
4062
4099
|
});
|
|
4063
4100
|
}
|
|
4064
|
-
},
|
|
4101
|
+
}, St = ["disabled", "title", "aria-checked", "aria-expanded", "role"], Vt = {
|
|
4065
4102
|
inheritAttrs: !1
|
|
4066
|
-
},
|
|
4067
|
-
...
|
|
4103
|
+
}, Bt = /* @__PURE__ */ y({
|
|
4104
|
+
...Vt,
|
|
4068
4105
|
__name: "ActionBarItem",
|
|
4069
4106
|
props: {
|
|
4070
4107
|
item: {}
|
|
@@ -4104,14 +4141,14 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4104
4141
|
key: 1,
|
|
4105
4142
|
class: r(n.item.getActionBarItemTitleCss())
|
|
4106
4143
|
}, H(n.item.title), 3)) : m("", !0)
|
|
4107
|
-
], 42,
|
|
4144
|
+
], 42, St)), [
|
|
4108
4145
|
[L(U), { processEsc: !1, disableTabStop: n.item.disableTabStop }]
|
|
4109
4146
|
]);
|
|
4110
4147
|
}
|
|
4111
|
-
}),
|
|
4148
|
+
}), Rt = ["disabled", "title", "role"], Tt = {
|
|
4112
4149
|
inheritAttrs: !1
|
|
4113
|
-
},
|
|
4114
|
-
...
|
|
4150
|
+
}, Zt = /* @__PURE__ */ y({
|
|
4151
|
+
...Tt,
|
|
4115
4152
|
__name: "ActionBarItemDropdown",
|
|
4116
4153
|
props: {
|
|
4117
4154
|
item: {}
|
|
@@ -4122,7 +4159,7 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4122
4159
|
return V(
|
|
4123
4160
|
() => e.item,
|
|
4124
4161
|
(s) => {
|
|
4125
|
-
n = new
|
|
4162
|
+
n = new Ue(s);
|
|
4126
4163
|
},
|
|
4127
4164
|
() => {
|
|
4128
4165
|
n.dispose();
|
|
@@ -4153,46 +4190,46 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4153
4190
|
key: 1,
|
|
4154
4191
|
class: r(s.item.getActionBarItemTitleCss())
|
|
4155
4192
|
}, H(s.item.title), 3)) : m("", !0)
|
|
4156
|
-
], 42,
|
|
4193
|
+
], 42, Rt)), [
|
|
4157
4194
|
[L(U), { processEsc: !1, disableTabStop: s.item.disableTabStop }]
|
|
4158
4195
|
]),
|
|
4159
|
-
|
|
4196
|
+
g(d, {
|
|
4160
4197
|
is: "sv-popup",
|
|
4161
4198
|
model: s.item.popupModel
|
|
4162
4199
|
}, null, 8, ["model"])
|
|
4163
4200
|
], 64));
|
|
4164
4201
|
}
|
|
4165
|
-
}),
|
|
4202
|
+
}), $t = /* @__PURE__ */ y({
|
|
4166
4203
|
__name: "ActionBarSeparator",
|
|
4167
4204
|
props: {
|
|
4168
4205
|
item: {}
|
|
4169
4206
|
},
|
|
4170
4207
|
setup(u) {
|
|
4171
|
-
const e = u, n =
|
|
4208
|
+
const e = u, n = f(() => e.item && e.item.innerCss);
|
|
4172
4209
|
return (s, i) => (o(), l("div", {
|
|
4173
4210
|
class: r(["sv-action-bar-separator", n.value])
|
|
4174
4211
|
}, null, 2));
|
|
4175
4212
|
}
|
|
4176
|
-
}),
|
|
4213
|
+
}), Dt = ["aria-label", "placeholder", "value"], At = ["aria-label"], Nt = ["id"], Pt = /* @__PURE__ */ y({
|
|
4177
4214
|
__name: "List",
|
|
4178
4215
|
props: {
|
|
4179
4216
|
model: {}
|
|
4180
4217
|
},
|
|
4181
4218
|
setup(u) {
|
|
4182
|
-
const e = u, n =
|
|
4183
|
-
const
|
|
4184
|
-
|
|
4219
|
+
const e = u, n = b(null), s = (p) => {
|
|
4220
|
+
const h = e.model;
|
|
4221
|
+
h.filterString = p.target.value;
|
|
4185
4222
|
}, i = (p) => {
|
|
4186
|
-
const
|
|
4187
|
-
|
|
4223
|
+
const h = e.model;
|
|
4224
|
+
h.filterString = p.target.value, e.model.goToItems(p);
|
|
4188
4225
|
}, t = (p) => {
|
|
4189
4226
|
e.model.onMouseMove(p);
|
|
4190
|
-
}, a =
|
|
4191
|
-
return V(() => e.model),
|
|
4227
|
+
}, a = se(() => e.model.renderedActions);
|
|
4228
|
+
return V(() => e.model), Z(() => {
|
|
4192
4229
|
e.model.initListContainerHtmlElement(n.value);
|
|
4193
4230
|
}), P(() => {
|
|
4194
4231
|
e.model && (e.model.removeScrollEventListener(), e.model.initListContainerHtmlElement(void 0));
|
|
4195
|
-
}), (p,
|
|
4232
|
+
}), (p, h) => (o(), l("div", {
|
|
4196
4233
|
class: r(p.model.cssClasses.root),
|
|
4197
4234
|
ref_key: "listContainerElement",
|
|
4198
4235
|
ref: n
|
|
@@ -4204,7 +4241,7 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4204
4241
|
v("div", {
|
|
4205
4242
|
class: r(p.model.cssClasses.filterIcon)
|
|
4206
4243
|
}, [
|
|
4207
|
-
|
|
4244
|
+
g(d, {
|
|
4208
4245
|
is: "sv-svg-icon",
|
|
4209
4246
|
iconName: "icon-search",
|
|
4210
4247
|
size: "auto"
|
|
@@ -4218,15 +4255,15 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4218
4255
|
value: p.model.filterString,
|
|
4219
4256
|
onChange: s,
|
|
4220
4257
|
onKeyup: i
|
|
4221
|
-
}, null, 42,
|
|
4258
|
+
}, null, 42, Dt),
|
|
4222
4259
|
p.model.showSearchClearButton && p.model.filterString ? (o(), l("button", {
|
|
4223
4260
|
key: 0,
|
|
4224
|
-
onClick:
|
|
4261
|
+
onClick: h[0] || (h[0] = (C) => {
|
|
4225
4262
|
p.model.onClickSearchClearButton(C);
|
|
4226
4263
|
}),
|
|
4227
4264
|
class: r(p.model.cssClasses.searchClearButtonIcon)
|
|
4228
4265
|
}, [
|
|
4229
|
-
|
|
4266
|
+
g(d, {
|
|
4230
4267
|
is: "sv-svg-icon",
|
|
4231
4268
|
iconName: "icon-searchclear",
|
|
4232
4269
|
size: "auto"
|
|
@@ -4239,7 +4276,7 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4239
4276
|
v("div", {
|
|
4240
4277
|
class: r(p.model.cssClasses.emptyText),
|
|
4241
4278
|
"aria-label": p.model.emptyMessage
|
|
4242
|
-
}, H(p.model.emptyMessage), 11,
|
|
4279
|
+
}, H(p.model.emptyMessage), 11, At)
|
|
4243
4280
|
], 2), [
|
|
4244
4281
|
[N, p.model.isEmpty]
|
|
4245
4282
|
]),
|
|
@@ -4248,11 +4285,11 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4248
4285
|
class: r(p.model.getListClass()),
|
|
4249
4286
|
role: "listbox",
|
|
4250
4287
|
id: p.model.elementId,
|
|
4251
|
-
onMousedown:
|
|
4288
|
+
onMousedown: h[1] || (h[1] = (C) => {
|
|
4252
4289
|
C.preventDefault();
|
|
4253
4290
|
}),
|
|
4254
4291
|
onMousemove: t,
|
|
4255
|
-
onKeydown:
|
|
4292
|
+
onKeydown: h[2] || (h[2] = (C) => {
|
|
4256
4293
|
p.model.onKeyDown(C);
|
|
4257
4294
|
})
|
|
4258
4295
|
}, [
|
|
@@ -4262,26 +4299,26 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4262
4299
|
model: p.model,
|
|
4263
4300
|
key: C.id
|
|
4264
4301
|
}, null, 8, ["item", "model"]))), 128))
|
|
4265
|
-
], 42,
|
|
4302
|
+
], 42, Nt)), [
|
|
4266
4303
|
[N, !p.model.isEmpty]
|
|
4267
4304
|
]) : m("", !0)
|
|
4268
4305
|
], 2));
|
|
4269
4306
|
}
|
|
4270
|
-
}),
|
|
4307
|
+
}), Et = ["aria-selected", "id", "tabindex"], Wt = ["title"], Ft = /* @__PURE__ */ y({
|
|
4271
4308
|
__name: "ListItem",
|
|
4272
4309
|
props: {
|
|
4273
4310
|
model: {},
|
|
4274
4311
|
item: {}
|
|
4275
4312
|
},
|
|
4276
4313
|
setup(u) {
|
|
4277
|
-
const e = u, n =
|
|
4314
|
+
const e = u, n = f(() => e.item.elementId), s = (t) => {
|
|
4278
4315
|
e.model.onItemClick(e.item), t.stopPropagation();
|
|
4279
4316
|
};
|
|
4280
4317
|
V(() => e.item);
|
|
4281
|
-
const i =
|
|
4318
|
+
const i = f(
|
|
4282
4319
|
() => e.item.component || e.model.itemComponent
|
|
4283
4320
|
);
|
|
4284
|
-
return
|
|
4321
|
+
return Z(() => {
|
|
4285
4322
|
setTimeout(() => {
|
|
4286
4323
|
e.model.onLastItemRended(e.item);
|
|
4287
4324
|
});
|
|
@@ -4306,18 +4343,18 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4306
4343
|
onMouseover: a[0] || (a[0] = (p) => t.model.onItemHover(t.item)),
|
|
4307
4344
|
onMouseleave: a[1] || (a[1] = (p) => t.model.onItemLeave(t.item))
|
|
4308
4345
|
}, [
|
|
4309
|
-
|
|
4346
|
+
g(d, {
|
|
4310
4347
|
is: i.value,
|
|
4311
4348
|
item: t.item,
|
|
4312
4349
|
model: t.model
|
|
4313
4350
|
}, null, 8, ["is", "item", "model"])
|
|
4314
|
-
], 46,
|
|
4315
|
-
], 42,
|
|
4351
|
+
], 46, Wt)
|
|
4352
|
+
], 42, Et)), [
|
|
4316
4353
|
[N, t.model.isItemVisible(t.item)],
|
|
4317
4354
|
[L(U), { processEsc: !1, disableTabStop: t.item.disableTabStop }]
|
|
4318
4355
|
]);
|
|
4319
4356
|
}
|
|
4320
|
-
}),
|
|
4357
|
+
}), zt = /* @__PURE__ */ y({
|
|
4321
4358
|
__name: "ListItemContent",
|
|
4322
4359
|
props: {
|
|
4323
4360
|
model: {},
|
|
@@ -4333,7 +4370,7 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4333
4370
|
iconName: n.item.iconName,
|
|
4334
4371
|
size: n.item.iconSize
|
|
4335
4372
|
}, null, 8, ["class", "iconName", "size"])) : m("", !0),
|
|
4336
|
-
|
|
4373
|
+
g(d, {
|
|
4337
4374
|
is: "survey-string",
|
|
4338
4375
|
locString: n.item.locTitle
|
|
4339
4376
|
}, null, 8, ["locString"]),
|
|
@@ -4346,7 +4383,7 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4346
4383
|
}, null, 8, ["class", "iconName"])) : m("", !0)
|
|
4347
4384
|
], 64));
|
|
4348
4385
|
}
|
|
4349
|
-
}),
|
|
4386
|
+
}), Ot = /* @__PURE__ */ y({
|
|
4350
4387
|
__name: "ListItemGroup",
|
|
4351
4388
|
props: {
|
|
4352
4389
|
model: {},
|
|
@@ -4355,34 +4392,34 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4355
4392
|
setup(u) {
|
|
4356
4393
|
const e = u;
|
|
4357
4394
|
return V(() => e.item), (n, s) => (o(), l(I, null, [
|
|
4358
|
-
|
|
4395
|
+
g(d, {
|
|
4359
4396
|
is: "sv-list-item-content",
|
|
4360
4397
|
item: n.item,
|
|
4361
4398
|
model: n.model
|
|
4362
4399
|
}, null, 8, ["item", "model"]),
|
|
4363
|
-
|
|
4400
|
+
g(d, {
|
|
4364
4401
|
is: "sv-popup",
|
|
4365
4402
|
model: n.item.popupModel
|
|
4366
4403
|
}, null, 8, ["model"])
|
|
4367
4404
|
], 64));
|
|
4368
4405
|
}
|
|
4369
|
-
}),
|
|
4406
|
+
}), Ut = /* @__PURE__ */ y({
|
|
4370
4407
|
__name: "Popup",
|
|
4371
4408
|
props: {
|
|
4372
4409
|
model: {}
|
|
4373
4410
|
},
|
|
4374
4411
|
setup(u) {
|
|
4375
|
-
const e = u, n = W(), s =
|
|
4412
|
+
const e = u, n = W(), s = b(null), i = () => {
|
|
4376
4413
|
const t = s.value;
|
|
4377
4414
|
t && n.value.setComponentElement(t);
|
|
4378
4415
|
};
|
|
4379
4416
|
return F(
|
|
4380
4417
|
() => e.model,
|
|
4381
4418
|
(t) => {
|
|
4382
|
-
n.value && n.value.dispose(), n.value =
|
|
4419
|
+
n.value && n.value.dispose(), n.value = Ke(t), i();
|
|
4383
4420
|
},
|
|
4384
4421
|
{ immediate: !0 }
|
|
4385
|
-
), V(() => n.value),
|
|
4422
|
+
), V(() => n.value), Z(() => {
|
|
4386
4423
|
i();
|
|
4387
4424
|
}), P(() => {
|
|
4388
4425
|
n.value.dispose();
|
|
@@ -4390,19 +4427,19 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4390
4427
|
ref_key: "root",
|
|
4391
4428
|
ref: s
|
|
4392
4429
|
}, [
|
|
4393
|
-
|
|
4430
|
+
g(d, {
|
|
4394
4431
|
is: "sv-popup-container",
|
|
4395
4432
|
model: n.value
|
|
4396
4433
|
}, null, 8, ["model"])
|
|
4397
4434
|
], 512));
|
|
4398
4435
|
}
|
|
4399
|
-
}),
|
|
4436
|
+
}), Kt = { class: "sv-popup__body-content" }, jt = {
|
|
4400
4437
|
key: 0,
|
|
4401
4438
|
class: "sv-popup__body-header"
|
|
4402
|
-
},
|
|
4439
|
+
}, Qt = { class: "sv-popup__scrolling-content" }, Gt = { class: "sv-popup__content" }, Jt = {
|
|
4403
4440
|
key: 1,
|
|
4404
4441
|
class: "sv-popup__body-footer"
|
|
4405
|
-
},
|
|
4442
|
+
}, Xt = /* @__PURE__ */ y({
|
|
4406
4443
|
__name: "PopupContainer",
|
|
4407
4444
|
props: {
|
|
4408
4445
|
model: {}
|
|
@@ -4414,7 +4451,7 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4414
4451
|
return V(() => e.model), j(() => {
|
|
4415
4452
|
const s = e.model;
|
|
4416
4453
|
s.isVisible && !s.isPositionSet && e.model.updateOnShowing();
|
|
4417
|
-
}),
|
|
4454
|
+
}), Z(() => {
|
|
4418
4455
|
e.model.isVisible && e.model.updateOnShowing();
|
|
4419
4456
|
}), (s, i) => R((o(), l("div", {
|
|
4420
4457
|
tabindex: "-1",
|
|
@@ -4442,17 +4479,17 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4442
4479
|
is: s.model.popupHeaderTemplate,
|
|
4443
4480
|
model: s.model
|
|
4444
4481
|
}, null, 8, ["is", "model"])) : m("", !0),
|
|
4445
|
-
v("div",
|
|
4446
|
-
s.model.title ? (o(), l("div",
|
|
4447
|
-
v("div",
|
|
4448
|
-
v("div",
|
|
4449
|
-
|
|
4482
|
+
v("div", Kt, [
|
|
4483
|
+
s.model.title ? (o(), l("div", jt, H(s.model.title), 1)) : m("", !0),
|
|
4484
|
+
v("div", Qt, [
|
|
4485
|
+
v("div", Gt, [
|
|
4486
|
+
g(d, D({
|
|
4450
4487
|
is: s.model.contentComponentName
|
|
4451
4488
|
}, s.model.contentComponentData), null, 16, ["is"])
|
|
4452
4489
|
])
|
|
4453
4490
|
]),
|
|
4454
|
-
s.model.showFooter ? (o(), l("div",
|
|
4455
|
-
|
|
4491
|
+
s.model.showFooter ? (o(), l("div", Jt, [
|
|
4492
|
+
g(d, {
|
|
4456
4493
|
is: "sv-action-bar",
|
|
4457
4494
|
model: s.model.footerToolbar
|
|
4458
4495
|
}, null, 8, ["model"])
|
|
@@ -4463,7 +4500,7 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4463
4500
|
[N, s.model.isVisible]
|
|
4464
4501
|
]);
|
|
4465
4502
|
}
|
|
4466
|
-
}),
|
|
4503
|
+
}), Yt = /* @__PURE__ */ y({
|
|
4467
4504
|
__name: "PopupPointer",
|
|
4468
4505
|
props: {
|
|
4469
4506
|
model: {}
|
|
@@ -4477,7 +4514,7 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4477
4514
|
})
|
|
4478
4515
|
}, null, 4));
|
|
4479
4516
|
}
|
|
4480
|
-
}),
|
|
4517
|
+
}), _t = /* @__PURE__ */ y({
|
|
4481
4518
|
__name: "Container",
|
|
4482
4519
|
props: {
|
|
4483
4520
|
survey: {},
|
|
@@ -4485,7 +4522,7 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4485
4522
|
needRenderWrapper: {}
|
|
4486
4523
|
},
|
|
4487
4524
|
setup(u) {
|
|
4488
|
-
const e = u, n =
|
|
4525
|
+
const e = u, n = f(
|
|
4489
4526
|
() => e.survey.getContainerContent(e.container)
|
|
4490
4527
|
);
|
|
4491
4528
|
return (s, i) => n.value.length > 0 ? (o(), l(I, { key: 0 }, [
|
|
@@ -4517,7 +4554,7 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4517
4554
|
css: {}
|
|
4518
4555
|
},
|
|
4519
4556
|
setup(u) {
|
|
4520
|
-
const e = u, n =
|
|
4557
|
+
const e = u, n = f(() => e.survey.progressValue + "%"), s = (t) => me.getProgressTextInBarCss(t), i = (t) => me.getProgressTextUnderBarCss(t);
|
|
4521
4558
|
return (t, a) => (o(), l("div", {
|
|
4522
4559
|
class: r(t.survey.getProgressCssClasses(t.container))
|
|
4523
4560
|
}, [
|
|
@@ -4538,7 +4575,7 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4538
4575
|
}, H(t.survey.progressText), 3)
|
|
4539
4576
|
], 2));
|
|
4540
4577
|
}
|
|
4541
|
-
}),
|
|
4578
|
+
}), xt = ["title"], eo = ["onClick", "data-page-number"], so = ["title"], no = ["title"], to = ["title"], oo = /* @__PURE__ */ y({
|
|
4542
4579
|
__name: "ProgressButtons",
|
|
4543
4580
|
props: {
|
|
4544
4581
|
survey: {},
|
|
@@ -4546,15 +4583,15 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4546
4583
|
container: {}
|
|
4547
4584
|
},
|
|
4548
4585
|
setup(u) {
|
|
4549
|
-
const e = u, n =
|
|
4550
|
-
let
|
|
4586
|
+
const e = u, n = b(!1), s = b(!1), i = b(!1), t = b(!0), a = b(), p = f(() => e.survey.css);
|
|
4587
|
+
let h = null;
|
|
4551
4588
|
const C = (q) => {
|
|
4552
4589
|
let B = a.value;
|
|
4553
4590
|
B.scrollLeft += (q ? -1 : 1) * 70;
|
|
4554
4591
|
};
|
|
4555
|
-
return
|
|
4592
|
+
return Z(() => {
|
|
4556
4593
|
const q = a.value;
|
|
4557
|
-
|
|
4594
|
+
h = new je(e.model, q, {
|
|
4558
4595
|
onResize: (B) => {
|
|
4559
4596
|
t.value = B, s.value = !B;
|
|
4560
4597
|
},
|
|
@@ -4564,10 +4601,10 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4564
4601
|
onUpdateSettings: () => {
|
|
4565
4602
|
t.value = e.model.showItemTitles, i.value = !e.model.showItemTitles;
|
|
4566
4603
|
},
|
|
4567
|
-
container:
|
|
4604
|
+
container: f(() => e.container)
|
|
4568
4605
|
});
|
|
4569
4606
|
}), z(() => {
|
|
4570
|
-
|
|
4607
|
+
h.dispose();
|
|
4571
4608
|
}), (q, B) => (o(), l("div", {
|
|
4572
4609
|
class: r(q.model.getRootCss(q.container)),
|
|
4573
4610
|
style: M({ maxWidth: q.model.progressWidth }),
|
|
@@ -4583,7 +4620,7 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4583
4620
|
v("div", {
|
|
4584
4621
|
class: r(q.survey.css.progressButtonsPageTitle),
|
|
4585
4622
|
title: q.model.headerText
|
|
4586
|
-
}, H(q.model.headerText), 11,
|
|
4623
|
+
}, H(q.model.headerText), 11, xt)
|
|
4587
4624
|
], 2)) : m("", !0),
|
|
4588
4625
|
v("div", {
|
|
4589
4626
|
class: r(p.value.progressButtonsContainer)
|
|
@@ -4601,10 +4638,10 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4601
4638
|
v("ul", {
|
|
4602
4639
|
class: r(p.value.progressButtonsList)
|
|
4603
4640
|
}, [
|
|
4604
|
-
(o(!0), l(I, null, S(q.survey.visiblePages, (k,
|
|
4605
|
-
key: "listelement" +
|
|
4606
|
-
class: r(q.model.getListElementCss(
|
|
4607
|
-
onClick: (w) => q.model.isListElementClickable(
|
|
4641
|
+
(o(!0), l(I, null, S(q.survey.visiblePages, (k, $) => (o(), l("li", {
|
|
4642
|
+
key: "listelement" + $,
|
|
4643
|
+
class: r(q.model.getListElementCss($)),
|
|
4644
|
+
onClick: (w) => q.model.isListElementClickable($) ? q.model.clickListElement(k) : null,
|
|
4608
4645
|
"data-page-number": q.model.getItemNumber(k)
|
|
4609
4646
|
}, [
|
|
4610
4647
|
v("div", {
|
|
@@ -4615,16 +4652,16 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4615
4652
|
class: r(p.value.progressButtonsPageTitle),
|
|
4616
4653
|
title: k.renderedNavigationTitle
|
|
4617
4654
|
}, [
|
|
4618
|
-
|
|
4655
|
+
g(d, {
|
|
4619
4656
|
is: "survey-string",
|
|
4620
4657
|
locString: k.locNavigationTitle
|
|
4621
4658
|
}, null, 8, ["locString"])
|
|
4622
|
-
], 10,
|
|
4659
|
+
], 10, so)) : m("", !0),
|
|
4623
4660
|
t.value ? (o(), l("div", {
|
|
4624
4661
|
key: 1,
|
|
4625
4662
|
class: r(p.value.progressButtonsPageDescription),
|
|
4626
4663
|
title: k.locNavigationDescription.renderedHtml
|
|
4627
|
-
}, H(k.locNavigationDescription.renderedHtml), 11,
|
|
4664
|
+
}, H(k.locNavigationDescription.renderedHtml), 11, no)) : m("", !0),
|
|
4628
4665
|
v("div", {
|
|
4629
4666
|
class: r(p.value.progressButtonsButton)
|
|
4630
4667
|
}, [
|
|
@@ -4636,7 +4673,7 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4636
4673
|
}, null, 2),
|
|
4637
4674
|
v("span", null, H(q.model.getItemNumber(k)), 1)
|
|
4638
4675
|
], 2)
|
|
4639
|
-
], 10,
|
|
4676
|
+
], 10, eo))), 128))
|
|
4640
4677
|
], 2)
|
|
4641
4678
|
], 2),
|
|
4642
4679
|
v("div", {
|
|
@@ -4652,50 +4689,53 @@ const vt = /* @__PURE__ */ at(ut, [["render", Ct]]), ct = /* @__PURE__ */ v("use
|
|
|
4652
4689
|
v("div", {
|
|
4653
4690
|
class: r(q.survey.css.progressButtonsPageTitle),
|
|
4654
4691
|
title: q.model.footerText
|
|
4655
|
-
}, H(q.model.footerText), 11,
|
|
4692
|
+
}, H(q.model.footerText), 11, to)
|
|
4656
4693
|
], 2)) : m("", !0)
|
|
4657
4694
|
], 6));
|
|
4658
4695
|
}
|
|
4659
|
-
}),
|
|
4696
|
+
}), io = /* @__PURE__ */ y({
|
|
4660
4697
|
__name: "ProgressToc",
|
|
4661
4698
|
props: {
|
|
4662
4699
|
survey: {},
|
|
4663
4700
|
model: {}
|
|
4664
4701
|
},
|
|
4665
4702
|
setup(u) {
|
|
4666
|
-
|
|
4667
|
-
|
|
4703
|
+
const e = u;
|
|
4704
|
+
return Z(() => {
|
|
4705
|
+
e.model.updateStickyTOCSize(e.survey.rootElement);
|
|
4706
|
+
}), (n, s) => (o(), l("div", {
|
|
4707
|
+
class: r(n.model.containerCss)
|
|
4668
4708
|
}, [
|
|
4669
|
-
|
|
4709
|
+
n.model.isMobile ? R((o(), l("div", {
|
|
4670
4710
|
key: 0,
|
|
4671
|
-
onClick:
|
|
4672
|
-
(...
|
|
4711
|
+
onClick: s[0] || (s[0] = //@ts-ignore
|
|
4712
|
+
(...i) => n.model.togglePopup && n.model.togglePopup(...i))
|
|
4673
4713
|
}, [
|
|
4674
|
-
|
|
4714
|
+
g(d, {
|
|
4675
4715
|
is: "sv-svg-icon",
|
|
4676
|
-
iconName:
|
|
4716
|
+
iconName: n.model.icon,
|
|
4677
4717
|
size: 24
|
|
4678
4718
|
}, null, 8, ["iconName"]),
|
|
4679
|
-
|
|
4719
|
+
g(d, {
|
|
4680
4720
|
is: "sv-popup",
|
|
4681
|
-
model:
|
|
4721
|
+
model: n.model.popupModel
|
|
4682
4722
|
}, null, 8, ["model"])
|
|
4683
4723
|
])), [
|
|
4684
4724
|
[L(U)]
|
|
4685
4725
|
]) : (o(), c(d, {
|
|
4686
4726
|
key: 1,
|
|
4687
4727
|
is: "sv-list",
|
|
4688
|
-
model:
|
|
4728
|
+
model: n.model.listModel
|
|
4689
4729
|
}, null, 8, ["model"]))
|
|
4690
4730
|
], 2));
|
|
4691
4731
|
}
|
|
4692
4732
|
});
|
|
4693
4733
|
/*!
|
|
4694
|
-
* surveyjs - Survey JavaScript library v2.0.
|
|
4734
|
+
* surveyjs - Survey JavaScript library v2.0.4
|
|
4695
4735
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4696
4736
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
4697
4737
|
*/
|
|
4698
|
-
var
|
|
4738
|
+
var ro = {
|
|
4699
4739
|
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>',
|
|
4700
4740
|
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>',
|
|
4701
4741
|
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>',
|
|
@@ -4757,7 +4797,7 @@ var so = {
|
|
|
4757
4797
|
"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>'
|
|
4758
4798
|
};
|
|
4759
4799
|
/*!
|
|
4760
|
-
* surveyjs - Survey JavaScript library v2.0.
|
|
4800
|
+
* surveyjs - Survey JavaScript library v2.0.4
|
|
4761
4801
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4762
4802
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
4763
4803
|
*/
|
|
@@ -4822,50 +4862,50 @@ var ke = {
|
|
|
4822
4862
|
"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>',
|
|
4823
4863
|
"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>'
|
|
4824
4864
|
};
|
|
4825
|
-
const
|
|
4865
|
+
const lo = ["lang", "dir"], ao = { onsubmit: "return false;" }, uo = {
|
|
4826
4866
|
key: 0,
|
|
4827
4867
|
class: "sv_custom_header"
|
|
4828
|
-
},
|
|
4829
|
-
qe("v1",
|
|
4868
|
+
}, mo = { class: "sv-components-column sv-components-column--expandable" }, po = ["id"], Co = { key: 2 }, vo = ["innerHTML"], co = ["innerHTML"], go = ["innerHTML"];
|
|
4869
|
+
qe("v1", ro);
|
|
4830
4870
|
qe("v2", ke);
|
|
4831
4871
|
X.registerIcons(ke);
|
|
4832
|
-
const
|
|
4872
|
+
const le = /* @__PURE__ */ y({
|
|
4833
4873
|
__name: "Survey",
|
|
4834
4874
|
props: {
|
|
4835
4875
|
model: {},
|
|
4836
4876
|
survey: {}
|
|
4837
4877
|
},
|
|
4838
4878
|
setup(u) {
|
|
4839
|
-
const e = u, n =
|
|
4840
|
-
const
|
|
4841
|
-
return $e(
|
|
4842
|
-
}), a =
|
|
4843
|
-
const
|
|
4844
|
-
return !!t.value &&
|
|
4845
|
-
},
|
|
4879
|
+
const e = u, n = b(), s = b(""), i = b(1), t = f(() => {
|
|
4880
|
+
const $ = e.survey ? e.survey : e.model;
|
|
4881
|
+
return $e($);
|
|
4882
|
+
}), a = f(() => t.value.activePage ? t.value.activePage.id : ""), p = () => {
|
|
4883
|
+
const $ = a.value;
|
|
4884
|
+
return !!t.value && $ + i.value.toString();
|
|
4885
|
+
}, h = f(
|
|
4846
4886
|
() => t.value.showCompletedPage && t.value.state === "completed"
|
|
4847
|
-
), C =
|
|
4848
|
-
if (
|
|
4887
|
+
), C = f(() => t.value.css), q = f(() => "page" + p()), B = () => h.value ? (s.value || (s.value = t.value.processedCompletedHtml), s.value) : "", k = ($) => {
|
|
4888
|
+
if ($) {
|
|
4849
4889
|
var w = n.value;
|
|
4850
|
-
w &&
|
|
4851
|
-
var A,
|
|
4852
|
-
i.value++, (
|
|
4853
|
-
},
|
|
4890
|
+
w && $.afterRenderSurvey(w), $.renderCallback = () => {
|
|
4891
|
+
var A, ae;
|
|
4892
|
+
i.value++, (ae = (A = he()) == null ? void 0 : A.proxy) == null || ae.$forceUpdate();
|
|
4893
|
+
}, $.startTimerFromUI();
|
|
4854
4894
|
}
|
|
4855
4895
|
};
|
|
4856
4896
|
return V(
|
|
4857
4897
|
() => t.value,
|
|
4858
|
-
(
|
|
4859
|
-
|
|
4898
|
+
($, w) => {
|
|
4899
|
+
$ && w && k($);
|
|
4860
4900
|
},
|
|
4861
|
-
(
|
|
4862
|
-
|
|
4901
|
+
($) => {
|
|
4902
|
+
$.stopTimer(), $.renderCallback = void 0;
|
|
4863
4903
|
}
|
|
4864
|
-
),
|
|
4904
|
+
), Z(() => {
|
|
4865
4905
|
k(t.value);
|
|
4866
4906
|
}), P(() => {
|
|
4867
4907
|
t.value.stopTimer(), t.value.beforeDestroySurveyElement(), t.value.renderCallback = void 0;
|
|
4868
|
-
}), (
|
|
4908
|
+
}), ($, w) => (o(), l("div", {
|
|
4869
4909
|
class: r(t.value.getRootCss()),
|
|
4870
4910
|
style: M(t.value.themeVariables),
|
|
4871
4911
|
lang: t.value.locale || "en",
|
|
@@ -4873,131 +4913,147 @@ const re = /* @__PURE__ */ y({
|
|
|
4873
4913
|
ref_key: "root",
|
|
4874
4914
|
ref: n
|
|
4875
4915
|
}, [
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
}
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
key: 0,
|
|
4886
|
-
class: r(C.value.rootBackgroundImage),
|
|
4887
|
-
style: M(t.value.backgroundImageStyle)
|
|
4888
|
-
}, null, 6)) : m("", !0),
|
|
4889
|
-
v("form", to, [
|
|
4890
|
-
t.value.hasLogo ? m("", !0) : (o(), l("div", oo)),
|
|
4916
|
+
g(d, {
|
|
4917
|
+
is: "sv-scroll",
|
|
4918
|
+
disabled: t.value.rootScrollDisabled
|
|
4919
|
+
}, {
|
|
4920
|
+
default: E(() => [
|
|
4921
|
+
t.value.needRenderIcons ? (o(), c(d, {
|
|
4922
|
+
key: 0,
|
|
4923
|
+
is: "sv-svg-bundle"
|
|
4924
|
+
})) : m("", !0),
|
|
4891
4925
|
v("div", {
|
|
4892
|
-
class: r(
|
|
4926
|
+
class: r(t.value.wrapperFormCss)
|
|
4893
4927
|
}, [
|
|
4894
|
-
|
|
4928
|
+
g(d, { is: "survey-popup-modal" }),
|
|
4929
|
+
t.value.renderBackgroundImage ? (o(), l("div", {
|
|
4895
4930
|
key: 0,
|
|
4896
|
-
|
|
4897
|
-
|
|
4898
|
-
}, null,
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4931
|
+
class: r(C.value.rootBackgroundImage),
|
|
4932
|
+
style: M(t.value.backgroundImageStyle)
|
|
4933
|
+
}, null, 6)) : m("", !0),
|
|
4934
|
+
v("form", ao, [
|
|
4935
|
+
g(d, {
|
|
4936
|
+
is: "sv-scroll",
|
|
4937
|
+
disabled: t.value.formScrollDisabled
|
|
4938
|
+
}, {
|
|
4939
|
+
default: E(() => [
|
|
4940
|
+
t.value.hasLogo ? m("", !0) : (o(), l("div", uo)),
|
|
4941
|
+
v("div", {
|
|
4942
|
+
class: r(C.value.container)
|
|
4943
|
+
}, [
|
|
4944
|
+
t.value.headerView === "basic" ? (o(), c(d, {
|
|
4945
|
+
key: 0,
|
|
4946
|
+
is: "survey-header",
|
|
4947
|
+
survey: t.value
|
|
4948
|
+
}, null, 8, ["survey"])) : m("", !0),
|
|
4949
|
+
g(d, {
|
|
4950
|
+
is: "sv-components-container",
|
|
4951
|
+
survey: t.value,
|
|
4952
|
+
container: "header",
|
|
4953
|
+
needRenderWrapper: !1
|
|
4954
|
+
}, null, 8, ["survey"]),
|
|
4955
|
+
t.value.isShowingPage ? (o(), l("div", {
|
|
4956
|
+
key: 1,
|
|
4957
|
+
class: r(t.value.bodyContainerCss)
|
|
4958
|
+
}, [
|
|
4959
|
+
g(d, {
|
|
4960
|
+
is: "sv-components-container",
|
|
4961
|
+
survey: t.value,
|
|
4962
|
+
container: "left",
|
|
4963
|
+
needRenderWrapper: !0
|
|
4964
|
+
}, null, 8, ["survey"]),
|
|
4965
|
+
v("div", mo, [
|
|
4966
|
+
g(d, {
|
|
4967
|
+
is: "sv-components-container",
|
|
4968
|
+
survey: t.value,
|
|
4969
|
+
container: "center",
|
|
4970
|
+
needRenderWrapper: !0
|
|
4971
|
+
}, null, 8, ["survey"]),
|
|
4972
|
+
v("div", {
|
|
4973
|
+
class: r(t.value.bodyCss),
|
|
4974
|
+
style: M({ maxWidth: t.value.renderedWidth }),
|
|
4975
|
+
id: a.value
|
|
4976
|
+
}, [
|
|
4977
|
+
g(d, {
|
|
4978
|
+
is: "sv-components-container",
|
|
4979
|
+
survey: t.value,
|
|
4980
|
+
container: "contentTop",
|
|
4981
|
+
needRenderWrapper: !0
|
|
4982
|
+
}, null, 8, ["survey"]),
|
|
4983
|
+
(o(), c(d, {
|
|
4984
|
+
is: "survey-page",
|
|
4985
|
+
key: q.value,
|
|
4986
|
+
survey: t.value,
|
|
4987
|
+
page: t.value.activePage,
|
|
4988
|
+
css: C.value
|
|
4989
|
+
}, null, 8, ["survey", "page", "css"])),
|
|
4990
|
+
g(d, {
|
|
4991
|
+
is: "sv-components-container",
|
|
4992
|
+
survey: t.value,
|
|
4993
|
+
container: "contentBottom",
|
|
4994
|
+
needRenderWrapper: !0
|
|
4995
|
+
}, null, 8, ["survey"]),
|
|
4996
|
+
t.value.showBrandInfo ? (o(), c(d, {
|
|
4997
|
+
key: 0,
|
|
4998
|
+
is: "sv-brand-info"
|
|
4999
|
+
})) : m("", !0)
|
|
5000
|
+
], 14, po)
|
|
5001
|
+
]),
|
|
5002
|
+
g(d, {
|
|
5003
|
+
is: "sv-components-container",
|
|
5004
|
+
survey: t.value,
|
|
5005
|
+
container: "right",
|
|
5006
|
+
needRenderWrapper: !0
|
|
5007
|
+
}, null, 8, ["survey"])
|
|
5008
|
+
], 2)) : m("", !0),
|
|
5009
|
+
g(d, {
|
|
5010
|
+
is: "sv-components-container",
|
|
5011
|
+
survey: t.value,
|
|
5012
|
+
container: "footer",
|
|
5013
|
+
needRenderWrapper: !1
|
|
5014
|
+
}, null, 8, ["survey"]),
|
|
5015
|
+
h.value ? (o(), l("div", Co, [
|
|
5016
|
+
v("div", {
|
|
5017
|
+
innerHTML: B(),
|
|
5018
|
+
class: r(t.value.completedCss)
|
|
5019
|
+
}, null, 10, vo),
|
|
5020
|
+
g(d, {
|
|
5021
|
+
is: "sv-components-container",
|
|
5022
|
+
survey: t.value,
|
|
5023
|
+
container: "completePage",
|
|
5024
|
+
needRenderWrapper: !0
|
|
5025
|
+
}, null, 8, ["survey"])
|
|
5026
|
+
])) : m("", !0),
|
|
5027
|
+
t.value.state === "completedbefore" ? (o(), l("div", {
|
|
5028
|
+
key: 3,
|
|
5029
|
+
class: r(t.value.completedBeforeCss),
|
|
5030
|
+
innerHTML: t.value.processedCompletedBeforeHtml
|
|
5031
|
+
}, null, 10, co)) : m("", !0),
|
|
5032
|
+
t.value.state === "loading" ? (o(), l("div", {
|
|
5033
|
+
key: 4,
|
|
5034
|
+
class: r(t.value.loadingBodyCss),
|
|
5035
|
+
innerHTML: t.value.processedLoadingHtml
|
|
5036
|
+
}, null, 10, go)) : m("", !0),
|
|
5037
|
+
t.value.state === "empty" ? (o(), l("div", {
|
|
5038
|
+
key: 5,
|
|
5039
|
+
class: r(C.value.bodyEmpty)
|
|
5040
|
+
}, H(t.value.emptySurveyText), 3)) : m("", !0)
|
|
5041
|
+
], 2)
|
|
5042
|
+
]),
|
|
5043
|
+
_: 1
|
|
5044
|
+
}, 8, ["disabled"])
|
|
5045
|
+
]),
|
|
5046
|
+
g(d, {
|
|
5047
|
+
is: "sv-notifier",
|
|
5048
|
+
model: t.value.notifier
|
|
5049
|
+
}, null, 8, ["model"])
|
|
4991
5050
|
], 2)
|
|
4992
5051
|
]),
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
}, null, 8, ["model"])
|
|
4997
|
-
], 2)
|
|
4998
|
-
], 14, no));
|
|
5052
|
+
_: 1
|
|
5053
|
+
}, 8, ["disabled"])
|
|
5054
|
+
], 14, lo));
|
|
4999
5055
|
}
|
|
5000
|
-
}),
|
|
5056
|
+
}), ho = /* @__PURE__ */ y({
|
|
5001
5057
|
__name: "Notifier",
|
|
5002
5058
|
props: {
|
|
5003
5059
|
model: {}
|
|
@@ -5012,13 +5068,13 @@ const re = /* @__PURE__ */ y({
|
|
|
5012
5068
|
"aria-live": "polite"
|
|
5013
5069
|
}, [
|
|
5014
5070
|
v("span", null, H(n.model.message), 1),
|
|
5015
|
-
|
|
5071
|
+
g(d, {
|
|
5016
5072
|
is: "sv-action-bar",
|
|
5017
5073
|
model: n.model.actionBar
|
|
5018
5074
|
}, null, 8, ["model"])
|
|
5019
5075
|
], 6)) : m("", !0);
|
|
5020
5076
|
}
|
|
5021
|
-
}),
|
|
5077
|
+
}), yo = { key: 0 }, qo = /* @__PURE__ */ y({
|
|
5022
5078
|
__name: "QuestionOther",
|
|
5023
5079
|
props: {
|
|
5024
5080
|
question: {}
|
|
@@ -5027,14 +5083,14 @@ const re = /* @__PURE__ */ y({
|
|
|
5027
5083
|
return (e, n) => (o(), l("div", {
|
|
5028
5084
|
class: r(e.question.getCommentAreaCss(!0))
|
|
5029
5085
|
}, [
|
|
5030
|
-
e.question.isReadOnlyRenderDiv() ? (o(), l("div",
|
|
5086
|
+
e.question.isReadOnlyRenderDiv() ? (o(), l("div", yo, H(e.question.otherValue), 1)) : (o(), c(d, {
|
|
5031
5087
|
key: 1,
|
|
5032
5088
|
is: "sv-text-area",
|
|
5033
5089
|
model: e.question.otherTextAreaModel
|
|
5034
5090
|
}, null, 8, ["model"]))
|
|
5035
5091
|
], 2));
|
|
5036
5092
|
}
|
|
5037
|
-
}),
|
|
5093
|
+
}), wo = ["disabled", "value", "title"], Lo = /* @__PURE__ */ y({
|
|
5038
5094
|
__name: "SurveyNavigationButton",
|
|
5039
5095
|
props: {
|
|
5040
5096
|
item: {}
|
|
@@ -5051,9 +5107,9 @@ const re = /* @__PURE__ */ y({
|
|
|
5051
5107
|
onMousedown: n,
|
|
5052
5108
|
onClick: i[0] || (i[0] = //@ts-ignore
|
|
5053
5109
|
(...t) => s.item.action && s.item.action(...t))
|
|
5054
|
-
}, null, 42,
|
|
5110
|
+
}, null, 42, wo)) : m("", !0);
|
|
5055
5111
|
}
|
|
5056
|
-
}),
|
|
5112
|
+
}), be = /* @__PURE__ */ y({
|
|
5057
5113
|
__name: "PopupSurvey",
|
|
5058
5114
|
props: {
|
|
5059
5115
|
survey: {},
|
|
@@ -5077,10 +5133,10 @@ const re = /* @__PURE__ */ y({
|
|
|
5077
5133
|
return n.value.isCollapsed && (C += " " + n.value.cssRootCollapsedMod), C;
|
|
5078
5134
|
};
|
|
5079
5135
|
V(() => n.value);
|
|
5080
|
-
const
|
|
5136
|
+
const h = F(
|
|
5081
5137
|
() => e.survey,
|
|
5082
5138
|
(C) => {
|
|
5083
|
-
const q = new
|
|
5139
|
+
const q = new Qe(null, C);
|
|
5084
5140
|
e.isExpanded !== void 0 && (q.isExpanded = e.isExpanded), e.closeOnCompleteTimeout !== void 0 && (q.closeOnCompleteTimeout = e.closeOnCompleteTimeout), e.allowClose !== void 0 && (q.allowClose = e.allowClose), e.allowFullScreen !== void 0 && (q.allowFullScreen = e.allowFullScreen), q.isShowing = !0, n.value = q;
|
|
5085
5141
|
},
|
|
5086
5142
|
{
|
|
@@ -5088,7 +5144,7 @@ const re = /* @__PURE__ */ y({
|
|
|
5088
5144
|
}
|
|
5089
5145
|
);
|
|
5090
5146
|
return P(() => {
|
|
5091
|
-
|
|
5147
|
+
h();
|
|
5092
5148
|
}), (C, q) => n.value.isShowing ? (o(), l("div", {
|
|
5093
5149
|
key: 0,
|
|
5094
5150
|
style: M({
|
|
@@ -5151,7 +5207,7 @@ const re = /* @__PURE__ */ y({
|
|
|
5151
5207
|
class: r(n.value.cssHeaderCloseButton),
|
|
5152
5208
|
onClick: i
|
|
5153
5209
|
}, [
|
|
5154
|
-
|
|
5210
|
+
g(d, {
|
|
5155
5211
|
is: "sv-svg-icon",
|
|
5156
5212
|
iconName: "icon-close_16x16",
|
|
5157
5213
|
size: 16
|
|
@@ -5162,35 +5218,35 @@ const re = /* @__PURE__ */ y({
|
|
|
5162
5218
|
v("div", {
|
|
5163
5219
|
class: r(n.value.cssBody)
|
|
5164
5220
|
}, [
|
|
5165
|
-
|
|
5221
|
+
g(le, { survey: C.survey }, null, 8, ["survey"])
|
|
5166
5222
|
], 2)
|
|
5167
5223
|
], 2)
|
|
5168
5224
|
], 38)) : m("", !0);
|
|
5169
5225
|
}
|
|
5170
|
-
}),
|
|
5226
|
+
}), ko = ["innerHTML"], bo = /* @__PURE__ */ y({
|
|
5171
5227
|
__name: "CustomWidget",
|
|
5172
5228
|
props: {
|
|
5173
5229
|
question: {},
|
|
5174
5230
|
css: {}
|
|
5175
5231
|
},
|
|
5176
5232
|
setup(u) {
|
|
5177
|
-
const e = u, n =
|
|
5233
|
+
const e = u, n = b(), s = f(
|
|
5178
5234
|
() => e.question.customWidget.isDefaultRender
|
|
5179
|
-
), i =
|
|
5235
|
+
), i = f(
|
|
5180
5236
|
() => !!e.question.customWidget.htmlTemplate
|
|
5181
|
-
), t =
|
|
5182
|
-
return
|
|
5237
|
+
), t = f(() => e.question.customWidget.htmlTemplate), a = f(() => "survey-" + e.question.getTemplate());
|
|
5238
|
+
return Z(() => {
|
|
5183
5239
|
e.question.customWidget.afterRender(e.question, n.value);
|
|
5184
5240
|
}), z(() => {
|
|
5185
5241
|
e.question.customWidget.willUnmount(e.question, n.value);
|
|
5186
|
-
}), (p,
|
|
5242
|
+
}), (p, h) => (o(), l("div", {
|
|
5187
5243
|
ref_key: "root",
|
|
5188
5244
|
ref: n
|
|
5189
5245
|
}, [
|
|
5190
5246
|
i.value ? (o(), l("div", {
|
|
5191
5247
|
key: 0,
|
|
5192
5248
|
innerHTML: t.value
|
|
5193
|
-
}, null, 8,
|
|
5249
|
+
}, null, 8, ko)) : m("", !0),
|
|
5194
5250
|
s.value ? (o(), c(d, {
|
|
5195
5251
|
key: 1,
|
|
5196
5252
|
is: a.value,
|
|
@@ -5199,41 +5255,41 @@ const re = /* @__PURE__ */ y({
|
|
|
5199
5255
|
}, null, 8, ["is", "question", "css"])) : m("", !0)
|
|
5200
5256
|
], 512));
|
|
5201
5257
|
}
|
|
5202
|
-
}),
|
|
5258
|
+
}), fo = /* @__PURE__ */ y({
|
|
5203
5259
|
__name: "PopupModal",
|
|
5204
5260
|
setup(u) {
|
|
5205
5261
|
const e = W();
|
|
5206
5262
|
function n(s, i) {
|
|
5207
|
-
const t =
|
|
5263
|
+
const t = Ge(
|
|
5208
5264
|
s,
|
|
5209
5265
|
i
|
|
5210
|
-
), a = (p,
|
|
5211
|
-
|
|
5266
|
+
), a = (p, h) => {
|
|
5267
|
+
h.isVisible || (e.value = void 0, t.dispose(), t.onVisibilityChanged.remove(a));
|
|
5212
5268
|
};
|
|
5213
5269
|
return t.onVisibilityChanged.add(a), t.model.isVisible = !0, e.value = t, t;
|
|
5214
5270
|
}
|
|
5215
|
-
return
|
|
5216
|
-
|
|
5271
|
+
return ne.showDialog || (ne.showDialog = n, P(() => {
|
|
5272
|
+
ne.showDialog = void 0;
|
|
5217
5273
|
})), (s, i) => e.value ? (o(), c(De, {
|
|
5218
5274
|
key: 0,
|
|
5219
5275
|
to: e.value.container
|
|
5220
5276
|
}, [
|
|
5221
|
-
|
|
5277
|
+
g(d, {
|
|
5222
5278
|
is: "sv-popup-container",
|
|
5223
5279
|
model: e.value
|
|
5224
5280
|
}, null, 8, ["model"])
|
|
5225
5281
|
], 8, ["to"])) : m("", !0);
|
|
5226
5282
|
}
|
|
5227
|
-
}),
|
|
5283
|
+
}), Mo = ["readonly", "disabled", "value", "id", "maxlength", "cols", "rows", "placeholder", "aria-required", "aria-label", "aria-labelledby", "aria-describedby", "aria-invalid", "aria-errormessage"], Ho = /* @__PURE__ */ y({
|
|
5228
5284
|
__name: "TextArea",
|
|
5229
5285
|
props: {
|
|
5230
5286
|
model: {}
|
|
5231
5287
|
},
|
|
5232
5288
|
setup(u) {
|
|
5233
|
-
const e = u, n =
|
|
5289
|
+
const e = u, n = b(
|
|
5234
5290
|
null
|
|
5235
|
-
), s =
|
|
5236
|
-
return
|
|
5291
|
+
), s = f(() => e.model.getTextValue() || "");
|
|
5292
|
+
return Z(() => {
|
|
5237
5293
|
e.model.setElement(n.value);
|
|
5238
5294
|
}), j(() => {
|
|
5239
5295
|
e.model.setElement(n.value);
|
|
@@ -5273,9 +5329,9 @@ const re = /* @__PURE__ */ y({
|
|
|
5273
5329
|
"aria-invalid": i.model.ariaInvalid,
|
|
5274
5330
|
"aria-errormessage": i.model.ariaErrormessage,
|
|
5275
5331
|
style: M({ resize: i.model.question.resizeStyle })
|
|
5276
|
-
}, null, 46,
|
|
5332
|
+
}, null, 46, Mo));
|
|
5277
5333
|
}
|
|
5278
|
-
}),
|
|
5334
|
+
}), Io = /* @__PURE__ */ y({
|
|
5279
5335
|
__name: "CharacterCounter",
|
|
5280
5336
|
props: {
|
|
5281
5337
|
counter: {},
|
|
@@ -5287,7 +5343,7 @@ const re = /* @__PURE__ */ y({
|
|
|
5287
5343
|
class: r(n.remainingCharacterCounter)
|
|
5288
5344
|
}, H(n.counter.remainingCharacterCounter), 3));
|
|
5289
5345
|
}
|
|
5290
|
-
}),
|
|
5346
|
+
}), So = /* @__PURE__ */ y({
|
|
5291
5347
|
inheritAttrs: !1,
|
|
5292
5348
|
__name: "Composite",
|
|
5293
5349
|
props: {
|
|
@@ -5295,9 +5351,9 @@ const re = /* @__PURE__ */ y({
|
|
|
5295
5351
|
css: {}
|
|
5296
5352
|
},
|
|
5297
5353
|
setup(u) {
|
|
5298
|
-
const e = u, n =
|
|
5354
|
+
const e = u, n = b(null);
|
|
5299
5355
|
T(e, n);
|
|
5300
|
-
const s =
|
|
5356
|
+
const s = f(() => e.question.contentPanel);
|
|
5301
5357
|
return (i, t) => (o(), c(d, {
|
|
5302
5358
|
is: "survey-panel",
|
|
5303
5359
|
ref_key: "root",
|
|
@@ -5306,7 +5362,7 @@ const re = /* @__PURE__ */ y({
|
|
|
5306
5362
|
css: i.css
|
|
5307
5363
|
}, null, 8, ["element", "css"]));
|
|
5308
5364
|
}
|
|
5309
|
-
}),
|
|
5365
|
+
}), Vo = /* @__PURE__ */ y({
|
|
5310
5366
|
inheritAttrs: !1,
|
|
5311
5367
|
__name: "Custom",
|
|
5312
5368
|
props: {
|
|
@@ -5314,9 +5370,9 @@ const re = /* @__PURE__ */ y({
|
|
|
5314
5370
|
css: {}
|
|
5315
5371
|
},
|
|
5316
5372
|
setup(u) {
|
|
5317
|
-
const e = u, n =
|
|
5373
|
+
const e = u, n = b(null);
|
|
5318
5374
|
T(e, n);
|
|
5319
|
-
const s =
|
|
5375
|
+
const s = f(() => e.question.contentQuestion), i = (t) => ie(t);
|
|
5320
5376
|
return (t, a) => (o(), c(d, {
|
|
5321
5377
|
ref: n.value,
|
|
5322
5378
|
is: i(s.value),
|
|
@@ -5324,16 +5380,16 @@ const re = /* @__PURE__ */ y({
|
|
|
5324
5380
|
css: t.css
|
|
5325
5381
|
}, null, 8, ["is", "question", "css"]));
|
|
5326
5382
|
}
|
|
5327
|
-
}),
|
|
5328
|
-
|
|
5329
|
-
],
|
|
5383
|
+
}), Bo = /* @__PURE__ */ v("use", { "xlink:href": "#icon-timercircle" }, null, -1), Ro = [
|
|
5384
|
+
Bo
|
|
5385
|
+
], ve = 440, To = /* @__PURE__ */ y({
|
|
5330
5386
|
__name: "TimerPanel",
|
|
5331
5387
|
props: {
|
|
5332
5388
|
model: {},
|
|
5333
5389
|
css: {}
|
|
5334
5390
|
},
|
|
5335
5391
|
setup(u) {
|
|
5336
|
-
const e = u, n =
|
|
5392
|
+
const e = u, n = f(() => ve * e.model.progress), s = f(() => e.model.text);
|
|
5337
5393
|
return V(() => e.model), (i, t) => i.model.isRunning && i.model.showTimerAsClock ? (o(), l("div", {
|
|
5338
5394
|
key: 0,
|
|
5339
5395
|
class: r(i.model.rootCss)
|
|
@@ -5341,8 +5397,8 @@ const re = /* @__PURE__ */ y({
|
|
|
5341
5397
|
i.model.showProgress ? (o(), l("svg", {
|
|
5342
5398
|
key: 0,
|
|
5343
5399
|
class: r(i.model.getProgressCss()),
|
|
5344
|
-
style: M({ strokeDasharray:
|
|
5345
|
-
},
|
|
5400
|
+
style: M({ strokeDasharray: ve, strokeDashoffset: n.value })
|
|
5401
|
+
}, Ro, 6)) : m("", !0),
|
|
5346
5402
|
v("div", {
|
|
5347
5403
|
class: r(i.model.textContainerCss)
|
|
5348
5404
|
}, [
|
|
@@ -5361,18 +5417,18 @@ const re = /* @__PURE__ */ y({
|
|
|
5361
5417
|
[N, i.model.isRunning && !i.model.showTimerAsClock]
|
|
5362
5418
|
]);
|
|
5363
5419
|
}
|
|
5364
|
-
}),
|
|
5420
|
+
}), Zo = { class: "sd-loading-indicator" }, $o = /* @__PURE__ */ y({
|
|
5365
5421
|
__name: "LoadingIndicator",
|
|
5366
5422
|
setup(u) {
|
|
5367
|
-
return (e, n) => (o(), l("div",
|
|
5368
|
-
|
|
5423
|
+
return (e, n) => (o(), l("div", Zo, [
|
|
5424
|
+
g(d, {
|
|
5369
5425
|
is: "sv-svg-icon",
|
|
5370
5426
|
iconName: "icon-loading",
|
|
5371
5427
|
size: "'auto'"
|
|
5372
5428
|
})
|
|
5373
5429
|
]));
|
|
5374
5430
|
}
|
|
5375
|
-
}),
|
|
5431
|
+
}), Do = { key: 2 }, Ao = /* @__PURE__ */ y({
|
|
5376
5432
|
__name: "Header",
|
|
5377
5433
|
props: {
|
|
5378
5434
|
model: {},
|
|
@@ -5383,7 +5439,7 @@ const re = /* @__PURE__ */ y({
|
|
|
5383
5439
|
return V(() => {
|
|
5384
5440
|
const n = e.model;
|
|
5385
5441
|
return n.survey = e.survey, e.model;
|
|
5386
|
-
}),
|
|
5442
|
+
}), Z(() => {
|
|
5387
5443
|
e.model.processResponsiveness();
|
|
5388
5444
|
}), j(() => {
|
|
5389
5445
|
e.model.processResponsiveness();
|
|
@@ -5408,18 +5464,18 @@ const re = /* @__PURE__ */ y({
|
|
|
5408
5464
|
key: t
|
|
5409
5465
|
}, null, 8, ["model"]))), 128))
|
|
5410
5466
|
], 6)),
|
|
5411
|
-
n.survey.isMobile ? (o(), l("div",
|
|
5412
|
-
|
|
5467
|
+
n.survey.isMobile ? (o(), l("div", Do, [
|
|
5468
|
+
g(d, {
|
|
5413
5469
|
is: "sv-header-mobile",
|
|
5414
5470
|
model: n.model
|
|
5415
5471
|
}, null, 8, ["model"])
|
|
5416
5472
|
])) : m("", !0)
|
|
5417
5473
|
], 6)) : m("", !0);
|
|
5418
5474
|
}
|
|
5419
|
-
}),
|
|
5475
|
+
}), No = {
|
|
5420
5476
|
key: 0,
|
|
5421
5477
|
class: "sv-header__logo"
|
|
5422
|
-
},
|
|
5478
|
+
}, Po = ["src", "width", "height", "alt"], Eo = /* @__PURE__ */ y({
|
|
5423
5479
|
__name: "HeaderCell",
|
|
5424
5480
|
props: {
|
|
5425
5481
|
model: {}
|
|
@@ -5433,7 +5489,7 @@ const re = /* @__PURE__ */ y({
|
|
|
5433
5489
|
class: "sv-header__cell-content",
|
|
5434
5490
|
style: M(e.model.contentStyle)
|
|
5435
5491
|
}, [
|
|
5436
|
-
e.model.showLogo ? (o(), l("div",
|
|
5492
|
+
e.model.showLogo ? (o(), l("div", No, [
|
|
5437
5493
|
v("div", {
|
|
5438
5494
|
class: r(e.model.survey.logoClassNames)
|
|
5439
5495
|
}, [
|
|
@@ -5444,7 +5500,7 @@ const re = /* @__PURE__ */ y({
|
|
|
5444
5500
|
height: e.model.survey.renderedLogoHeight,
|
|
5445
5501
|
alt: e.model.survey.locTitle.renderedHtml,
|
|
5446
5502
|
style: M({ objectFit: e.model.survey.logoFit, width: e.model.survey.renderedStyleLogoWidth, height: e.model.survey.renderedStyleLogoHeight })
|
|
5447
|
-
}, null, 14,
|
|
5503
|
+
}, null, 14, Po)
|
|
5448
5504
|
], 2)
|
|
5449
5505
|
])) : m("", !0),
|
|
5450
5506
|
e.model.showTitle ? (o(), l("div", {
|
|
@@ -5452,7 +5508,7 @@ const re = /* @__PURE__ */ y({
|
|
|
5452
5508
|
class: "sv-header__title",
|
|
5453
5509
|
style: M({ maxWidth: e.model.textAreaWidth })
|
|
5454
5510
|
}, [
|
|
5455
|
-
|
|
5511
|
+
g(d, {
|
|
5456
5512
|
is: "survey-element-title",
|
|
5457
5513
|
element: e.model.survey,
|
|
5458
5514
|
css: e.model.survey.css
|
|
@@ -5467,7 +5523,7 @@ const re = /* @__PURE__ */ y({
|
|
|
5467
5523
|
key: 0,
|
|
5468
5524
|
class: r(e.model.survey.css.description)
|
|
5469
5525
|
}, [
|
|
5470
|
-
|
|
5526
|
+
g(d, {
|
|
5471
5527
|
is: "survey-string",
|
|
5472
5528
|
locString: e.model.survey.locDescription
|
|
5473
5529
|
}, null, 8, ["locString"])
|
|
@@ -5476,17 +5532,17 @@ const re = /* @__PURE__ */ y({
|
|
|
5476
5532
|
], 4)
|
|
5477
5533
|
], 6));
|
|
5478
5534
|
}
|
|
5479
|
-
}),
|
|
5535
|
+
}), Wo = { class: "sv-header--mobile" }, Fo = {
|
|
5480
5536
|
key: 0,
|
|
5481
5537
|
class: "sv-header__logo"
|
|
5482
|
-
},
|
|
5538
|
+
}, zo = ["src", "width", "height", "alt"], Oo = /* @__PURE__ */ y({
|
|
5483
5539
|
__name: "HeaderMobile",
|
|
5484
5540
|
props: {
|
|
5485
5541
|
model: {}
|
|
5486
5542
|
},
|
|
5487
5543
|
setup(u) {
|
|
5488
|
-
return (e, n) => (o(), l("div",
|
|
5489
|
-
e.model.survey.hasLogo ? (o(), l("div",
|
|
5544
|
+
return (e, n) => (o(), l("div", Wo, [
|
|
5545
|
+
e.model.survey.hasLogo ? (o(), l("div", Fo, [
|
|
5490
5546
|
v("div", {
|
|
5491
5547
|
class: r(e.model.survey.logoClassNames)
|
|
5492
5548
|
}, [
|
|
@@ -5497,7 +5553,7 @@ const re = /* @__PURE__ */ y({
|
|
|
5497
5553
|
height: e.model.survey.renderedLogoHeight,
|
|
5498
5554
|
alt: e.model.survey.locTitle.renderedHtml,
|
|
5499
5555
|
style: M({ objectFit: e.model.survey.logoFit, width: e.model.survey.renderedStyleLogoWidth, height: e.model.survey.renderedStyleLogoHeight })
|
|
5500
|
-
}, null, 14,
|
|
5556
|
+
}, null, 14, zo)
|
|
5501
5557
|
], 2)
|
|
5502
5558
|
])) : m("", !0),
|
|
5503
5559
|
e.model.survey.hasTitle ? (o(), l("div", {
|
|
@@ -5505,7 +5561,7 @@ const re = /* @__PURE__ */ y({
|
|
|
5505
5561
|
class: "sv-header__title",
|
|
5506
5562
|
style: M({ maxWidth: e.model.renderedTextAreaWidth })
|
|
5507
5563
|
}, [
|
|
5508
|
-
|
|
5564
|
+
g(d, {
|
|
5509
5565
|
is: "survey-element-title",
|
|
5510
5566
|
element: e.model.survey,
|
|
5511
5567
|
css: e.model.survey.css
|
|
@@ -5520,7 +5576,7 @@ const re = /* @__PURE__ */ y({
|
|
|
5520
5576
|
key: 0,
|
|
5521
5577
|
class: r(e.model.survey.css.description)
|
|
5522
5578
|
}, [
|
|
5523
|
-
|
|
5579
|
+
g(d, {
|
|
5524
5580
|
is: "survey-string",
|
|
5525
5581
|
locString: e.model.survey.locDescription
|
|
5526
5582
|
}, null, 8, ["locString"])
|
|
@@ -5528,7 +5584,7 @@ const re = /* @__PURE__ */ y({
|
|
|
5528
5584
|
], 4)) : m("", !0)
|
|
5529
5585
|
]));
|
|
5530
5586
|
}
|
|
5531
|
-
}),
|
|
5587
|
+
}), Uo = /* @__PURE__ */ y({
|
|
5532
5588
|
__name: "Element",
|
|
5533
5589
|
props: {
|
|
5534
5590
|
element: {},
|
|
@@ -5536,21 +5592,21 @@ const re = /* @__PURE__ */ y({
|
|
|
5536
5592
|
css: {}
|
|
5537
5593
|
},
|
|
5538
5594
|
setup(u) {
|
|
5539
|
-
const e = u, n =
|
|
5540
|
-
const
|
|
5541
|
-
if (
|
|
5542
|
-
const C =
|
|
5595
|
+
const e = u, n = b(), s = (h) => h.isPanel ? "survey-panel" : "survey-question", i = f(() => {
|
|
5596
|
+
const h = e.element.survey;
|
|
5597
|
+
if (h) {
|
|
5598
|
+
const C = h.getElementWrapperComponentName(e.element);
|
|
5543
5599
|
if (C)
|
|
5544
5600
|
return C;
|
|
5545
5601
|
}
|
|
5546
5602
|
return s(e.element);
|
|
5547
|
-
}), t = (
|
|
5548
|
-
const
|
|
5603
|
+
}), t = (h) => h.cssClasses ? h.rootStyle : {}, a = f(() => {
|
|
5604
|
+
const h = e.element, C = h.survey;
|
|
5549
5605
|
let q;
|
|
5550
|
-
return C && (q = C.getElementWrapperComponentData(
|
|
5551
|
-
componentName: s(
|
|
5606
|
+
return C && (q = C.getElementWrapperComponentData(h)), {
|
|
5607
|
+
componentName: s(h),
|
|
5552
5608
|
componentData: {
|
|
5553
|
-
element:
|
|
5609
|
+
element: h,
|
|
5554
5610
|
survey: C,
|
|
5555
5611
|
row: e.row,
|
|
5556
5612
|
css: e.css,
|
|
@@ -5559,45 +5615,45 @@ const re = /* @__PURE__ */ y({
|
|
|
5559
5615
|
};
|
|
5560
5616
|
}), p = F(
|
|
5561
5617
|
() => e.element,
|
|
5562
|
-
(
|
|
5563
|
-
C && C.setWrapperElement(void 0),
|
|
5618
|
+
(h, C) => {
|
|
5619
|
+
C && C.setWrapperElement(void 0), h.setWrapperElement(n.value);
|
|
5564
5620
|
}
|
|
5565
5621
|
);
|
|
5566
|
-
return
|
|
5622
|
+
return Z(() => {
|
|
5567
5623
|
e.element.setWrapperElement(n.value);
|
|
5568
5624
|
}), P(() => {
|
|
5569
5625
|
e.element.setWrapperElement(void 0), p();
|
|
5570
|
-
}), (
|
|
5626
|
+
}), (h, C) => (o(), l("div", {
|
|
5571
5627
|
ref_key: "root",
|
|
5572
5628
|
ref: n,
|
|
5573
|
-
style: M(t(
|
|
5574
|
-
class: r(
|
|
5629
|
+
style: M(t(h.element)),
|
|
5630
|
+
class: r(h.element.cssClasses.questionWrapper)
|
|
5575
5631
|
}, [
|
|
5576
|
-
|
|
5632
|
+
h.row.isNeedRender ? (o(), c(d, D({
|
|
5577
5633
|
key: 0,
|
|
5578
5634
|
is: i.value
|
|
5579
|
-
}, a.value), null, 16, ["is"])) :
|
|
5635
|
+
}, a.value), null, 16, ["is"])) : h.element.skeletonComponentName ? (o(), c(d, {
|
|
5580
5636
|
key: 1,
|
|
5581
|
-
is:
|
|
5582
|
-
element:
|
|
5583
|
-
css:
|
|
5637
|
+
is: h.element.skeletonComponentName,
|
|
5638
|
+
element: h.element,
|
|
5639
|
+
css: h.css
|
|
5584
5640
|
}, null, 8, ["is", "element", "css"])) : m("", !0)
|
|
5585
5641
|
], 6));
|
|
5586
5642
|
}
|
|
5587
|
-
}),
|
|
5643
|
+
}), Ko = /* @__PURE__ */ y({
|
|
5588
5644
|
__name: "TemplateRenderer",
|
|
5589
5645
|
props: {
|
|
5590
5646
|
componentName: {},
|
|
5591
5647
|
componentData: {}
|
|
5592
5648
|
},
|
|
5593
5649
|
setup(u) {
|
|
5594
|
-
const e = Ae(), n =
|
|
5595
|
-
return (s, i) => n.value && !s.componentName ?
|
|
5650
|
+
const e = Ae(), n = f(() => !!e.default);
|
|
5651
|
+
return (s, i) => n.value && !s.componentName ? Y(s.$slots, "default", { key: 0 }) : (o(), c(d, D({
|
|
5596
5652
|
key: 1,
|
|
5597
5653
|
is: s.componentName
|
|
5598
5654
|
}, s.componentData), null, 16, ["is"]));
|
|
5599
5655
|
}
|
|
5600
|
-
}),
|
|
5656
|
+
}), jo = /* @__PURE__ */ y({
|
|
5601
5657
|
__name: "FileCleanButton",
|
|
5602
5658
|
props: {
|
|
5603
5659
|
question: {},
|
|
@@ -5620,7 +5676,7 @@ const re = /* @__PURE__ */ y({
|
|
|
5620
5676
|
}, null, 8, ["iconName", "title"])) : m("", !0)
|
|
5621
5677
|
], 2));
|
|
5622
5678
|
}
|
|
5623
|
-
}),
|
|
5679
|
+
}), Qo = ["id"], Go = /* @__PURE__ */ y({
|
|
5624
5680
|
__name: "FileVideo",
|
|
5625
5681
|
props: {
|
|
5626
5682
|
question: {}
|
|
@@ -5629,11 +5685,11 @@ const re = /* @__PURE__ */ y({
|
|
|
5629
5685
|
return (e, n) => (o(), l("div", {
|
|
5630
5686
|
class: r(e.question.cssClasses.videoContainer)
|
|
5631
5687
|
}, [
|
|
5632
|
-
|
|
5688
|
+
g(d, {
|
|
5633
5689
|
is: "sv-action",
|
|
5634
5690
|
item: e.question.changeCameraAction
|
|
5635
5691
|
}, null, 8, ["item"]),
|
|
5636
|
-
|
|
5692
|
+
g(d, {
|
|
5637
5693
|
is: "sv-action",
|
|
5638
5694
|
item: e.question.closeCameraAction
|
|
5639
5695
|
}, null, 8, ["item"]),
|
|
@@ -5642,21 +5698,21 @@ const re = /* @__PURE__ */ y({
|
|
|
5642
5698
|
playsinline: "",
|
|
5643
5699
|
id: e.question.videoId,
|
|
5644
5700
|
class: r(e.question.cssClasses.video)
|
|
5645
|
-
}, null, 10,
|
|
5646
|
-
|
|
5701
|
+
}, null, 10, Qo),
|
|
5702
|
+
g(d, {
|
|
5647
5703
|
is: "sv-action",
|
|
5648
5704
|
item: e.question.takePictureAction
|
|
5649
5705
|
}, null, 8, ["item"])
|
|
5650
5706
|
], 2));
|
|
5651
5707
|
}
|
|
5652
|
-
}),
|
|
5708
|
+
}), Jo = ["for", "aria-label"], Xo = /* @__PURE__ */ y({
|
|
5653
5709
|
__name: "FileChooseButton",
|
|
5654
5710
|
props: {
|
|
5655
5711
|
data: {},
|
|
5656
5712
|
item: {}
|
|
5657
5713
|
},
|
|
5658
5714
|
setup(u) {
|
|
5659
|
-
const e = u, n =
|
|
5715
|
+
const e = u, n = f(
|
|
5660
5716
|
() => {
|
|
5661
5717
|
var s, i;
|
|
5662
5718
|
return ((s = e.data) == null ? void 0 : s.question) || ((i = e.item) == null ? void 0 : i.data.question);
|
|
@@ -5677,11 +5733,11 @@ const re = /* @__PURE__ */ y({
|
|
|
5677
5733
|
size: "auto"
|
|
5678
5734
|
}, null, 8, ["title", "iconName"])) : m("", !0),
|
|
5679
5735
|
v("span", null, H(n.value.chooseButtonText), 1)
|
|
5680
|
-
], 10,
|
|
5736
|
+
], 10, Jo)), [
|
|
5681
5737
|
[L(U)]
|
|
5682
5738
|
]);
|
|
5683
5739
|
}
|
|
5684
|
-
}),
|
|
5740
|
+
}), Yo = /* @__PURE__ */ y({
|
|
5685
5741
|
__name: "FilePreview",
|
|
5686
5742
|
props: {
|
|
5687
5743
|
question: {}
|
|
@@ -5705,13 +5761,13 @@ const re = /* @__PURE__ */ y({
|
|
|
5705
5761
|
}, null, 8, ["item", "question"]))), 128))
|
|
5706
5762
|
], 2)) : m("", !0);
|
|
5707
5763
|
}
|
|
5708
|
-
}),
|
|
5764
|
+
}), _o = /* @__PURE__ */ y({
|
|
5709
5765
|
__name: "ButtonGroup",
|
|
5710
5766
|
props: {
|
|
5711
5767
|
question: {}
|
|
5712
5768
|
},
|
|
5713
5769
|
setup(u) {
|
|
5714
|
-
const e = u, n =
|
|
5770
|
+
const e = u, n = b();
|
|
5715
5771
|
return T(e, n), (s, i) => (o(), l("div", {
|
|
5716
5772
|
role: "group",
|
|
5717
5773
|
class: r(s.question.cssClasses.root),
|
|
@@ -5727,7 +5783,7 @@ const re = /* @__PURE__ */ y({
|
|
|
5727
5783
|
}, null, 8, ["question", "item", "index"]))), 128))
|
|
5728
5784
|
], 2));
|
|
5729
5785
|
}
|
|
5730
|
-
}),
|
|
5786
|
+
}), xo = ["title"], ei = ["name", "id", "aria-required", "aria-label", "aria-invalid", "aria-errormessage", "disabled", "value"], si = ["title"], ni = /* @__PURE__ */ y({
|
|
5731
5787
|
__name: "ButtonGroupItem",
|
|
5732
5788
|
props: {
|
|
5733
5789
|
item: {},
|
|
@@ -5735,9 +5791,9 @@ const re = /* @__PURE__ */ y({
|
|
|
5735
5791
|
index: {}
|
|
5736
5792
|
},
|
|
5737
5793
|
setup(u) {
|
|
5738
|
-
const e = u, n =
|
|
5739
|
-
() => new
|
|
5740
|
-
), s =
|
|
5794
|
+
const e = u, n = f(
|
|
5795
|
+
() => new Je(e.question, e.item, e.index)
|
|
5796
|
+
), s = f({
|
|
5741
5797
|
get: () => e.question.renderedValue,
|
|
5742
5798
|
set: (i) => {
|
|
5743
5799
|
const t = e.question;
|
|
@@ -5760,8 +5816,8 @@ const re = /* @__PURE__ */ y({
|
|
|
5760
5816
|
class: r(n.value.css.control),
|
|
5761
5817
|
"onUpdate:modelValue": t[0] || (t[0] = (a) => s.value = a),
|
|
5762
5818
|
value: n.value.value
|
|
5763
|
-
}, null, 10,
|
|
5764
|
-
[
|
|
5819
|
+
}, null, 10, ei), [
|
|
5820
|
+
[x, s.value]
|
|
5765
5821
|
]),
|
|
5766
5822
|
v("div", {
|
|
5767
5823
|
class: r(n.value.css.decorator)
|
|
@@ -5778,22 +5834,22 @@ const re = /* @__PURE__ */ y({
|
|
|
5778
5834
|
class: r(n.value.css.caption),
|
|
5779
5835
|
title: n.value.caption.renderedHtml
|
|
5780
5836
|
}, [
|
|
5781
|
-
|
|
5837
|
+
g(d, {
|
|
5782
5838
|
is: "survey-string",
|
|
5783
5839
|
locString: n.value.caption
|
|
5784
5840
|
}, null, 8, ["locString"])
|
|
5785
|
-
], 10,
|
|
5841
|
+
], 10, si)) : m("", !0)
|
|
5786
5842
|
], 2)
|
|
5787
|
-
], 10,
|
|
5843
|
+
], 10, xo));
|
|
5788
5844
|
}
|
|
5789
|
-
}),
|
|
5845
|
+
}), ti = ["src", "width", "height", "alt"], oi = /* @__PURE__ */ y({
|
|
5790
5846
|
inheritAttrs: !1,
|
|
5791
5847
|
__name: "Logo",
|
|
5792
5848
|
props: {
|
|
5793
5849
|
data: {}
|
|
5794
5850
|
},
|
|
5795
5851
|
setup(u) {
|
|
5796
|
-
const e = u, n =
|
|
5852
|
+
const e = u, n = f(() => e.data), s = O(() => n.value.locLogo);
|
|
5797
5853
|
return (i, t) => (o(), l("div", {
|
|
5798
5854
|
class: r(n.value.logoClassNames)
|
|
5799
5855
|
}, [
|
|
@@ -5808,16 +5864,16 @@ const re = /* @__PURE__ */ y({
|
|
|
5808
5864
|
width: n.value.renderedStyleLogoWidth,
|
|
5809
5865
|
height: n.value.renderedStyleLogoHeight
|
|
5810
5866
|
})
|
|
5811
|
-
}, null, 14,
|
|
5867
|
+
}, null, 14, ti)
|
|
5812
5868
|
], 2));
|
|
5813
5869
|
}
|
|
5814
|
-
}),
|
|
5870
|
+
}), ii = /* @__PURE__ */ y({
|
|
5815
5871
|
__name: "SvgBundle",
|
|
5816
5872
|
setup(u) {
|
|
5817
|
-
const e =
|
|
5873
|
+
const e = b(), n = () => {
|
|
5818
5874
|
e.value && (e.value.innerHTML = X.iconsRenderedHtml());
|
|
5819
5875
|
};
|
|
5820
|
-
return
|
|
5876
|
+
return Z(() => {
|
|
5821
5877
|
n(), X.onIconsChanged.add(n);
|
|
5822
5878
|
}), P(() => {
|
|
5823
5879
|
X.onIconsChanged.remove(n);
|
|
@@ -5829,7 +5885,7 @@ const re = /* @__PURE__ */ y({
|
|
|
5829
5885
|
[N, !1]
|
|
5830
5886
|
]);
|
|
5831
5887
|
}
|
|
5832
|
-
}),
|
|
5888
|
+
}), ri = ["id"], li = /* @__PURE__ */ y({
|
|
5833
5889
|
__name: "FilePage",
|
|
5834
5890
|
props: {
|
|
5835
5891
|
page: {},
|
|
@@ -5847,9 +5903,9 @@ const re = /* @__PURE__ */ y({
|
|
|
5847
5903
|
item: i,
|
|
5848
5904
|
question: n.question
|
|
5849
5905
|
}, null, 8, ["item", "question"]))), 128))
|
|
5850
|
-
], 10,
|
|
5906
|
+
], 10, ri));
|
|
5851
5907
|
}
|
|
5852
|
-
}),
|
|
5908
|
+
}), ai = ["href", "title", "download"], ui = ["src"], di = ["href", "title", "download"], mi = /* @__PURE__ */ y({
|
|
5853
5909
|
__name: "FileItem",
|
|
5854
5910
|
props: {
|
|
5855
5911
|
item: {},
|
|
@@ -5870,7 +5926,7 @@ const re = /* @__PURE__ */ y({
|
|
|
5870
5926
|
title: e.item.name,
|
|
5871
5927
|
download: e.item.name,
|
|
5872
5928
|
style: M({ width: e.question.imageWidth })
|
|
5873
|
-
}, H(e.item.name), 13,
|
|
5929
|
+
}, H(e.item.name), 13, ai)
|
|
5874
5930
|
], 2)) : m("", !0),
|
|
5875
5931
|
v("div", {
|
|
5876
5932
|
class: r(e.question.getImageWrapperCss(e.item))
|
|
@@ -5883,7 +5939,7 @@ const re = /* @__PURE__ */ y({
|
|
|
5883
5939
|
width: e.question.imageWidth
|
|
5884
5940
|
}),
|
|
5885
5941
|
alt: "File preview"
|
|
5886
|
-
}, null, 12,
|
|
5942
|
+
}, null, 12, ui)) : m("", !0),
|
|
5887
5943
|
e.question.defaultImage(e.item) ? (o(), c(d, {
|
|
5888
5944
|
key: 1,
|
|
5889
5945
|
is: "sv-svg-icon",
|
|
@@ -5919,43 +5975,43 @@ const re = /* @__PURE__ */ y({
|
|
|
5919
5975
|
title: e.item.name,
|
|
5920
5976
|
download: e.item.name,
|
|
5921
5977
|
style: M({ width: e.question.imageWidth })
|
|
5922
|
-
}, H(e.item.name), 13,
|
|
5978
|
+
}, H(e.item.name), 13, di)
|
|
5923
5979
|
], 2)) : m("", !0)
|
|
5924
5980
|
], 2)), [
|
|
5925
5981
|
[N, e.item]
|
|
5926
5982
|
]);
|
|
5927
5983
|
}
|
|
5928
5984
|
});
|
|
5929
|
-
|
|
5930
|
-
function
|
|
5985
|
+
Xe.platform = "vue3";
|
|
5986
|
+
function pi(u, e, n) {
|
|
5931
5987
|
u(e, n);
|
|
5932
5988
|
}
|
|
5933
|
-
function
|
|
5934
|
-
const e =
|
|
5989
|
+
function fe(u) {
|
|
5990
|
+
const e = pi.bind(
|
|
5935
5991
|
void 0,
|
|
5936
5992
|
u
|
|
5937
5993
|
);
|
|
5938
|
-
e("sv-svg-bundle",
|
|
5994
|
+
e("sv-svg-bundle", ii), e("popup-survey", be), e("survey-header", ss), e("sv-logo-image", oi), e("survey-page", es), e("survey-row", ns), e("survey-question", rs), e("survey-panel", ds), e("survey-element-header", ps), e("survey-string", Cs), e("sv-string-viewer", cs), e("sv-string-editor", hs), e("sv-skeleton", qs), e("sv-scroll", bs), e("survey-text", Hs), e("survey-text-input", Vs), e("survey-checkbox", $s), e("survey-checkbox-item", Ns), e("survey-radiogroup", Ps), e("survey-radiogroup-item", Fs), e("survey-signaturepad", Ks), e("survey-html", Qs), e("survey-image", Ys), e("survey-expression", _s), e("survey-file", n1), e("sv-file-choose-btn", Xo), e("sv-file-clean-btn", jo), e("sv-file-preview", Yo), e("sv-file-page", li), e("sv-file-item", mi), e("sv-file-video", Go), e("survey-imagepicker", o1), e("survey-imagepicker-item", u1), e("survey-comment", d1), e("survey-dropdown", m1), e("sv-dropdown-select", c1), e("sv-dropdown-option-item", h1), e("sv-dropdown", k1), e("survey-tagbox", b1), e("sv-tagbox", H1), e("sv-tagbox-item", R1), e("sv-tagbox-filter", V1), e("survey-ranking", T1), e("survey-ranking-item", P1), e("sv-ranking-item", E1), e("survey-rating", z1), e("sv-rating-item", K1), e("sv-rating-item-smiley", Q1), e("sv-rating-item-star", J1), e("sv-rating-dropdown", en), e("sv-rating-dropdown-item", x1), e("survey-boolean", nn), e("sv-boolean-radio", tn), e("sv-boolean-radio-item", ln), e("sv-boolean-checkbox", Cn), e("survey-multipletext", vn), e("survey-multipletext-item", gn), e("survey-matrix", kn), e("survey-matrix-row", fn), e("survey-matrix-cell", In), e("survey-matrixdropdown", Sn), e("survey-matrixtable", Rn), e("survey-matrixheaderrequired", Zn), e("survey-matrixdropdown-cell", Dn), e("survey-matrixdynamic", An), e("sv-matrix-remove-button", Pn), e("sv-matrix-drag-drop-icon", Wn), e("sv-matrix-detail-button", zn), e("survey-paneldynamic", On), e("survey-paneldynamicprogress", Un), e("survey-paneldynamicprogress-v2", Kn), e("sv-paneldynamic-add-btn", Qn), e("sv-paneldynamic-next-btn", Jn), e("sv-paneldynamic-prev-btn", Yn), e("sv-paneldynamic-remove-btn", xn), e("sv-paneldynamic-progress-text", et), e("sv-components-container", _t), e("sv-progress-buttons", oo), e("sv-navigation-toc", io), e("sv-progress-pages", J), e("sv-progress-questions", J), e("sv-progress-correctquestions", J), e("sv-progress-requiredquestions", J), e("survey-errors", nt), e("survey-question-comment", ot), e("survey-element-title", it), e("survey-element-title-content", ut), e("sv-title-actions", pt), e("sv-brand-info", qt), e("sv-question-error", bt), e("sv-svg-icon", kt), e("sv-action-bar", ft), e("sv-action", It), e("sv-action-bar-item", Bt), e("sv-action-bar-item-dropdown", Zt), e("sv-action-bar-separator", $t), e("sv-list", Pt), e("sv-list-item-content", zt), e("sv-list-item-group", Ot), e("sv-list-item", Ft), e("sv-popup", Ut), e("sv-popup-container", Xt), e("popup-pointer", Yt), e("sv-notifier", ho), e("survey-other-choice", qo), e("sv-nav-btn", Lo), e("survey-customwidget", bo), e("survey-popup-modal", fo), e("survey-composite", So), e("survey-custom", Vo), e("sv-timerpanel", To), e("sv-loading-indicator", $o), e("sv-header", Ao), e("sv-header-cell", Eo), e("sv-header-mobile", Oo), e("sv-template-renderer", Ko), e("sv-character-counter", Io), e("sv-text-area", Ho), e("survey-element", Uo), e("survey-buttongroup", _o), e("sv-button-group-item", ni), e("survey", le);
|
|
5939
5995
|
}
|
|
5940
|
-
|
|
5996
|
+
fe(
|
|
5941
5997
|
(u, e) => K.Instance.registerComponent(u, e)
|
|
5942
5998
|
);
|
|
5943
|
-
const
|
|
5999
|
+
const gi = {
|
|
5944
6000
|
install(u) {
|
|
5945
|
-
u.component("SurveyComponent",
|
|
6001
|
+
u.component("SurveyComponent", le), u.component("PopupSurveyComponent", be), u.directive("key2click", U), fe((e, n) => {
|
|
5946
6002
|
u.component(e, n), K.Instance.registerComponent(e, e);
|
|
5947
6003
|
});
|
|
5948
6004
|
}
|
|
5949
6005
|
};
|
|
5950
6006
|
export {
|
|
5951
6007
|
K as ComponentFactory,
|
|
5952
|
-
|
|
5953
|
-
|
|
6008
|
+
be as PopupSurveyComponent,
|
|
6009
|
+
le as SurveyComponent,
|
|
5954
6010
|
d as SvComponent,
|
|
5955
6011
|
U as key2ClickDirective,
|
|
5956
|
-
|
|
6012
|
+
gi as surveyPlugin,
|
|
5957
6013
|
V as useBase,
|
|
5958
|
-
|
|
6014
|
+
se as useComputedArray,
|
|
5959
6015
|
O as useLocString,
|
|
5960
6016
|
T as useQuestion
|
|
5961
6017
|
};
|